diff --git a/add-layers.html b/add-layers.html new file mode 100644 index 00000000000..9f4e9166b10 --- /dev/null +++ b/add-layers.html @@ -0,0 +1,97 @@ +Canadian Geospatial Platform Viewer

Package - Layers Panel

Main
Default Configuration
This page is used to showcase loading "Layers Panel" with the ability to add various layer types.

1. Default Configuration

Top

Add Layer Examples

ESRI Feature Service Layer
ESRI Dynamic Service Layer
ESRI Image Layer
WMS Layer
WFS Layer
XYZ Layer
GeoJson Layer
OGC API Feature Layer
GeoPackage Layer
CSV Layer
GeoCore UUID Layer


\ No newline at end of file diff --git a/cgpv-main.js b/cgpv-main.js index 0986cc195b4..27393363c53 100644 --- a/cgpv-main.js +++ b/cgpv-main.js @@ -1,4 +1,4 @@ -/*! Package:cgpv-main: 0.1.0 - "c6dcf2ac46f31d61a67d4822747ad014c58ab6f3" - 2024-06-06T20:43:38.982Z */(()=>{var e,t,n,r={12347:(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(x,--v):0,m--,10===b&&(m=1,g--),b}function C(){return b=v2||T(b)>3?"":" "}function L(e,t){for(;--t&&C()&&!(b<48||b>102||b>57&&b<65||b>70&&b<97););return k(e,_()+(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"/*"+k(t,v-1)+"*"+o(47===e?e:C())}function F(e){for(;!T(E());)C();return k(e,v)}var D="-ms-",N="-moz-",z="-webkit-",V="comm",B="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===T)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,w=k=1,O=N="",y=s;break;case 58:y=1+h(N),b=x;default:if(w<1)if(123==T)--w;else if(125==T&&0==w++&&125==S())continue;switch(N+=o(T),T*w){case 38:k=m>0?1:(N+="\f",-1);break;case 44:d[g++]=(h(N)-1)*k,k=1;break;case 64:45===E()&&(N+=I(C())),v=E(),m=y=h(O=N+=F(_())),T++;break;case 45:45===x&&2==h(N)&&(w=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,x=0,A=0;b0?y[S]+" "+C:l(C,/&\f/g,y[S])))&&(h[A++]=E);return w(e,t,n,0===o?B:u,h,f,g)}function K(e,t,n){return w(e,t,n,V,o(b),d(e,2,-2),0)}function X(e,t,n,r){return w(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),!T(i);)C();return k(e,v)},J=function(e,t){return P(function(e,t){var n=-1,r=44;do{switch(T(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"+z+"$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,":",":"+z)+e;case 101:return l(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+z+(45===u(e,14)?"inline-":"")+"box$3$1"+z+"$2$3$1"+D+"$2box$3")+e}break;case 5936:switch(u(e,t+11)){case 114:return z+e+D+l(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return z+e+D+l(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return z+e+D+l(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return z+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,"@","@"+z)})],r);case B: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+)/,":"+z+"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=e.stylisPlugins||re;var o,a,s={},l=[];o=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})},18321:(e,t,n)=>{"use strict";n.d(t,{C:()=>s,T:()=>c,i:()=>o,w:()=>l});var r=n(30538),i=n(12347),o=(n(93372),n(88946),!0),a=r.createContext("undefined"!=typeof HTMLElement?(0,i.A)({key:"css"}):null);var s=a.Provider,l=function(e){return(0,r.forwardRef)((function(t,n){var i=(0,r.useContext)(a);return e(t,i,n)}))};o||(l=function(e){return function(t){var n=(0,r.useContext)(a);return null===n?(n=(0,i.A)({key:"css"}),r.createElement(a.Provider,{value:n},e(t,n))):e(t,n)}});var c=r.createContext({})},5345:(e,t,n)=>{"use strict";n.d(t,{AH:()=>c,i7:()=>u,mL:()=>l});var r=n(18321),i=n(30538),o=n(40106),a=n(88946),s=n(93372),l=(n(12347),n(78535),(0,r.w)((function(e,t){var n=e.styles,l=(0,s.J)([n],void 0,i.useContext(r.T));if(!r.i){for(var c,u=l.name,d=l.styles,h=l.next;void 0!==h;)u+=" "+h.name,d+=h.styles,h=h.next;var p=!0===t.compat,f=t.insert("",{name:u,styles:d},t.sheet,p);return p?null:i.createElement("style",((c={})["data-emotion"]=t.key+"-global "+u,c.dangerouslySetInnerHTML={__html:f},c.nonce=t.sheet.nonce,c))}var g=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])),g.current=[n,r],function(){n.flush()}}),[t]),(0,a.i)((function(){var e=g.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:()=>f});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,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(48998),o=/[A-Z]|^ms/g,a=/_EMO_([^_]+?)_([^]*?)_EMO_/g,s=function(e){return 45===e.charCodeAt(1)},l=function(e){return null!=e&&"boolean"!=typeof e},c=(0,i.A)((function(e){return s(e)?e:e.replace(o,"-$&").toLowerCase()})),u=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(a,(function(e,t,n){return h={name:t,styles:n,next:h},t}))}return 1===r[e]||s(e)||"number"!=typeof t||0===t?t:t+"px"};function d(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return h={name:n.name,styles:n.styles,next:h},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)h={name:r.name,styles:r.styles,next:h},r=r.next;return n.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:h}}},88946:(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},40106:(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)}}},23799:(e,t,n)=>{"use strict";n.d(t,{s:()=>u});var r=n(30538),i=n(18029),o=n(74311),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),x=r.useRef(null),w=(0,i.A)(t.ref,x),A=r.useRef(null);r.useEffect((()=>{p&&x.current&&(b.current=!n)}),[n,p]),r.useEffect((()=>{if(!p||!x.current)return;const e=(0,o.A)(x.current);return x.current.contains(e.activeElement)||(x.current.hasAttribute("tabIndex")||x.current.setAttribute("tabIndex","-1"),b.current&&x.current.focus()),()=>{u||(y.current&&y.current.focus&&(f.current=!0,y.current.focus()),y.current=null)}}),[p]),r.useEffect((()=>{if(!p||!x.current)return;const e=(0,o.A)(x.current),t=t=>{A.current=t,!s&&h()&&"Tab"===t.key&&e.activeElement===x.current&&t.shiftKey&&(f.current=!0,m.current&&m.current.focus())},n=()=>{const t=x.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(x.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:w,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"})]})}},26985:(e,t,n)=>{"use strict";function r(e,t,n){return"function"==typeof e?e(t,n):e}n.d(t,{Y:()=>r})},94267:(e,t,n)=>{"use strict";n.d(t,{Q:()=>d});var r=n(51559),i=n(73342),o=n(18029);var a=n(87286);function s(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}function l(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:i,externalForwardedProps:o,className:l}=e;if(!t){const e=(0,a.A)(null==n?void 0:n.className,l,null==o?void 0:o.className,null==i?void 0:i.className),t=(0,r.A)({},null==n?void 0:n.style,null==o?void 0:o.style,null==i?void 0:i.style),s=(0,r.A)({},n,o,i);return e.length>0&&(s.className=e),Object.keys(t).length>0&&(s.style=t),{props:s,internalRef:void 0}}const c=function(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}((0,r.A)({},o,i)),u=s(i),d=s(o),h=t(c),p=(0,a.A)(null==h?void 0:h.className,null==n?void 0:n.className,l,null==o?void 0:o.className,null==i?void 0:i.className),f=(0,r.A)({},null==h?void 0:h.style,null==n?void 0:n.style,null==o?void 0:o.style,null==i?void 0:i.style),g=(0,r.A)({},h,n,d,u);return p.length>0&&(g.className=p),Object.keys(f).length>0&&(g.style=f),{props:g,internalRef:h.ref}}var c=n(26985);const u=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function d(e){var t;const{elementType:n,externalSlotProps:a,ownerState:s,skipResolvingSlotProps:d=!1}=e,h=(0,i.A)(e,u),p=d?{}:(0,c.Y)(a,s),{props:f,internalRef:g}=l((0,r.A)({},h,{externalSlotProps:p})),m=(0,o.A)(g,null==p?void 0:p.ref,null==(t=e.additionalProps)?void 0:t.ref),y=function(e,t,n){return void 0===e||"string"==typeof e?t:(0,r.A)({},t,{ownerState:(0,r.A)({},t.ownerState,n)})}(n,(0,r.A)({},f,{ref:m}),s);return y}},26565:(e,t,n)=>{"use strict";n.d(t,{x:()=>c});var r=n(30538),i=n(18029),o=n(18605),a=n(74311),s=n(97282);function l(e){return e.substring(2).toLowerCase()}function c(e){const{children:t,disableReactTree:n=!1,mouseEvent:c="onClick",onClickAway:u,touchEvent:d="onTouchEnd"}=e,h=r.useRef(!1),p=r.useRef(null),f=r.useRef(!1),g=r.useRef(!1);r.useEffect((()=>(setTimeout((()=>{f.current=!0}),0),()=>{f.current=!1})),[]);const m=(0,i.A)(t.ref,p),y=(0,o.A)((e=>{const t=g.current;g.current=!1;const r=(0,a.A)(p.current);if(!f.current||!p.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth-1:!r.documentElement.contains(e.target)||p.current.contains(e.target),i||!n&&t||u(e)})),v=e=>n=>{g.current=!0;const r=t.props[e];r&&r(n)},b={ref:m};return!1!==d&&(b[d]=v(d)),r.useEffect((()=>{if(!1!==d){const e=l(d),t=(0,a.A)(p.current),n=()=>{h.current=!0};return t.addEventListener(e,y),t.addEventListener("touchmove",n),()=>{t.removeEventListener(e,y),t.removeEventListener("touchmove",n)}}}),[y,d]),!1!==c&&(b[c]=v(c)),r.useEffect((()=>{if(!1!==c){const e=l(c),t=(0,a.A)(p.current);return t.addEventListener(e,y),()=>{t.removeEventListener(e,y)}}}),[y,c]),(0,s.jsx)(r.Fragment,{children:r.cloneElement(t,b)})}},48265:(e,t,n)=>{"use strict";n.d(t,{s:()=>u});var r=n(30538),i=n(18029),o=n(74311),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),x=r.useRef(null),w=(0,i.A)(t.ref,x),A=r.useRef(null);r.useEffect((()=>{p&&x.current&&(b.current=!n)}),[n,p]),r.useEffect((()=>{if(!p||!x.current)return;const e=(0,o.A)(x.current);return x.current.contains(e.activeElement)||(x.current.hasAttribute("tabIndex")||x.current.setAttribute("tabIndex","-1"),b.current&&x.current.focus()),()=>{u||(y.current&&y.current.focus&&(f.current=!0,y.current.focus()),y.current=null)}}),[p]),r.useEffect((()=>{if(!p||!x.current)return;const e=(0,o.A)(x.current),t=t=>{A.current=t,!s&&h()&&"Tab"===t.key&&e.activeElement===x.current&&t.shiftKey&&(f.current=!0,m.current&&m.current.focus())},n=()=>{const t=x.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(x.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:w,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"})]})}},45583:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(30538),i=n(95491),o=n(18029),a=n(43107),s=n(54175),l=n(97282);const c=r.forwardRef((function(e,t){const{children:n,container:c,disablePortal:u=!1}=e,[d,h]=r.useState(null),p=(0,o.A)(r.isValidElement(n)?n.ref:null,t);if((0,a.A)((()=>{u||h(function(e){return"function"==typeof e?e():e}(c)||document.body)}),[c,u]),(0,a.A)((()=>{if(d&&!u)return(0,s.A)(t,d),()=>{(0,s.A)(t,null)}}),[t,d,u]),u){if(r.isValidElement(n)){const e={ref:p};return r.cloneElement(n,e)}return(0,l.jsx)(r.Fragment,{children:n})}return(0,l.jsx)(r.Fragment,{children:d?i.createPortal(n,d):d})}))},23130:(e,t,n)=>{"use strict";n.d(t,{X:()=>o});var r=n(51559),i=n(2665);function o(e,t,n){return void 0===e||(0,i.g)(e)?t:(0,r.A)({},t,{ownerState:(0,r.A)({},t.ownerState,n)})}},75188:(e,t,n)=>{"use strict";function r(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}n.d(t,{h:()=>r})},2665:(e,t,n)=>{"use strict";function r(e){return"string"==typeof e}n.d(t,{g:()=>r})},63261:(e,t,n)=>{"use strict";n.d(t,{p:()=>s});var r=n(51559),i=n(87286),o=n(75188);function a(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}function s(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:s,externalForwardedProps:l,className:c}=e;if(!t){const e=(0,i.A)(null==n?void 0:n.className,c,null==l?void 0:l.className,null==s?void 0:s.className),t=(0,r.A)({},null==n?void 0:n.style,null==l?void 0:l.style,null==s?void 0:s.style),o=(0,r.A)({},n,l,s);return e.length>0&&(o.className=e),Object.keys(t).length>0&&(o.style=t),{props:o,internalRef:void 0}}const u=(0,o.h)((0,r.A)({},l,s)),d=a(s),h=a(l),p=t(u),f=(0,i.A)(null==p?void 0:p.className,null==n?void 0:n.className,c,null==l?void 0:l.className,null==s?void 0:s.className),g=(0,r.A)({},null==p?void 0:p.style,null==n?void 0:n.style,null==l?void 0:l.style,null==s?void 0:s.style),m=(0,r.A)({},p,n,h,d);return f.length>0&&(m.className=f),Object.keys(g).length>0&&(m.style=g),{props:m,internalRef:p.ref}}},66567:(e,t,n)=>{"use strict";function r(e,t,n){return"function"==typeof e?e(t,n):e}n.d(t,{Y:()=>r})},12277:(e,t,n)=>{"use strict";n.d(t,{Q:()=>u});var r=n(51559),i=n(73342),o=n(18029),a=n(23130),s=n(63261),l=n(66567);const c=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function u(e){var t;const{elementType:n,externalSlotProps:u,ownerState:d,skipResolvingSlotProps:h=!1}=e,p=(0,i.A)(e,c),f=h?{}:(0,l.Y)(u,d),{props:g,internalRef:m}=(0,s.p)((0,r.A)({},p,{externalSlotProps:f})),y=(0,o.A)(m,null==f?void 0:f.ref,null==(t=e.additionalProps)?void 0:t.ref);return(0,a.X)(n,(0,r.A)({},g,{ref:y}),d)}},16299:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),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")},35103:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"m10 17 5-5-5-5z"}),"ArrowRight")},26332:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),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")},34790:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),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")},1617:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),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")},50110:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M5 13h14v-2H5zm-2 4h14v-2H3zM7 7v2h14V7z"}),"ClearAll")},98788:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),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")},18904:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),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")},87981:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M3 3h18v2H3zm0 16h18v2H3z"}),"DensityLarge")},33815:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M3 3h18v2H3zm0 16h18v2H3zm0-8h18v2H3z"}),"DensityMedium")},38537:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M3 2h18v2H3zm0 18h18v2H3zm0-6h18v2H3zm0-6h18v2H3z"}),"DensitySmall")},33330:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M20 9H4v2h16zM4 15h16v-2H4z"}),"DragHandle")},20317:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),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")},44182:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),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.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit")},86663:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),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")},91465:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),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")},64712:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"}),"FilterList")},81439:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),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")},4113:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),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")},43219:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M7 14H5v5h5v-2H7zm-2-4h2V7h3V5H5zm12 7h-3v2h5v-5h-2zM14 5v2h3v3h2V5z"}),"Fullscreen")},29667:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M5 16h3v3h2v-5H5zm3-8H5v2h5V5H8zm6 11h2v-3h3v-2h-5zm2-11V5h-2v5h5V8z"}),"FullscreenExit")},28217:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),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")},11689:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),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")},57897:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),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")},50836:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),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")},10575:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),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")},88523:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),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")},59843:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),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")},26638:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),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")},14821:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),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")},70422:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M3 18h6v-2H3zM3 6v2h18V6zm0 7h12v-2H3z"}),"Sort")},65534:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),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")},98993:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M14.67 5v14H9.33V5zm1 14H21V5h-5.33zm-7.34 0V5H3v14z"}),"ViewColumn")},98073:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),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")},78918:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(65127),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")},75311:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(65127),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")},13659:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(65127),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")},2890:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(65127),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")},60192:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(65127),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")},98533:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});n(30538);var r=n(65127),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")},15789:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(65127),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.77C6.85 17.09 6.44 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")},19512:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(65127),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")},15470:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(65127),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")},96898:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(65127),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")},25297:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(65127),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")},27927:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(65127),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")},94321:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(65127),i=n(97282);const o=(0,r.A)((0,i.jsx)("path",{d:"M2 20h20v-4H2zm2-3h2v2H4zM2 4v4h20V4zm4 3H4V5h2zm-4 7h20v-4H2zm2-3h2v2H4z"}),"Storage")},91693:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(65127),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")},43957:(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(90202)},94653:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var r=n(73342),i=n(51559),o=n(30538),a=n(87286),s=n(32829),l=n(58990),c=n(87507),u=n(68127),d=n(5007),h=n(24115);function p(e){return(0,h.Ay)("MuiBackdrop",e)}(0,d.A)("MuiBackdrop",["root","invisible"]);var f=n(97282);const g=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],m=(0,l.Ay)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>(0,i.A)({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"}))),y=o.forwardRef((function(e,t){var n,o,l;const d=(0,c.A)({props:e,name:"MuiBackdrop"}),{children:h,className:y,component:v="div",components:b={},componentsProps:x={},invisible:w=!1,open:A,slotProps:S={},slots:C={},TransitionComponent:E=u.A,transitionDuration:_}=d,k=(0,r.A)(d,g),T=(0,i.A)({},d,{component:v,invisible:w}),O=(e=>{const{classes:t,invisible:n}=e,r={root:["root",n&&"invisible"]};return(0,s.A)(r,p,t)})(T),P=null!=(n=S.root)?n:x.root;return(0,f.jsx)(E,(0,i.A)({in:A,timeout:_},k,{children:(0,f.jsx)(m,(0,i.A)({"aria-hidden":!0},P,{as:null!=(o=null!=(l=C.root)?l:b.Root)?o:v,className:(0,a.A)(O.root,y,null==P?void 0:P.className),ownerState:(0,i.A)({},T,null==P?void 0:P.ownerState),classes:O,ref:t,children:h}))}))}))},66469:(e,t,n)=>{"use strict";n.d(t,{A:()=>b});var r=n(51559),i=n(73342),o=n(30538),a=n(87286),s=n(77753),l=n(22311),c=n(25779),u=n(38382),d=n(97282);const h=["className","component"];var p=n(58337),f=n(76014),g=n(38358);const m=(0,n(5007).A)("MuiBox",["root"]),y=(0,f.A)(),v=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:p="MuiBox-root",generateClassName:f}=e,g=(0,s.default)("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(l.A);return o.forwardRef((function(e,o){const s=(0,u.A)(n),l=(0,c.A)(e),{className:m,component:y="div"}=l,v=(0,i.A)(l,h);return(0,d.jsx)(g,(0,r.A)({as:y,ref:o,className:(0,a.A)(m,f?f(p):p),theme:t&&s[t]||s},v))}))}({themeId:g.A,defaultTheme:y,defaultClassName:m.root,generateClassName:p.A.generate}),b=v},92004:(e,t,n)=>{"use strict";n.d(t,{A:()=>D});var r=n(51559),i=n(73342),o=n(30538),a=n(87286),s=n(32829),l=n(58990),c=n(87507),u=n(47258),d=n(36064),h=n(65741),p=n(37091),f=n(5345),g=n(8734),m=n(97282);const y=function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:s,rippleSize:l,in:c,onExited:u,timeout:d}=e,[h,p]=o.useState(!1),f=(0,a.A)(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),g={width:l,height:l,top:-l/2+s,left:-l/2+i},y=(0,a.A)(n.child,h&&n.childLeaving,r&&n.childPulsate);return c||h||p(!0),o.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(5007);const b=(0,v.A)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),x=["center","classes","className"];let w,A,S,C,E=e=>e;const _=(0,f.i7)(w||(w=E` +/*! Package:cgpv-main: 0.1.0 - "303d9fabc6ac1c37422d67e5f874f8fb0be8339f" - 2024-06-17T17:53:36.564Z */(()=>{var e,t,n,r={12347:(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||T(b)>3?"":" "}function L(e,t){for(;--t&&C()&&!(b<48||b>102||b>57&&b<65||b>70&&b<97););return k(e,_()+(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"/*"+k(t,v-1)+"*"+o(47===e?e:C())}function F(e){for(;!T(E());)C();return k(e,v)}var D="-ms-",N="-moz-",z="-webkit-",V="comm",B="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===T)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=k=1,O=N="",y=s;break;case 58:y=1+h(N),b=w;default:if(x<1)if(123==T)--x;else if(125==T&&0==x++&&125==S())continue;switch(N+=o(T),T*x){case 38:k=m>0?1:(N+="\f",-1);break;case 44:d[g++]=(h(N)-1)*k,k=1;break;case 64:45===E()&&(N+=I(C())),v=E(),m=y=h(O=N+=F(_())),T++;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?B:u,h,f,g)}function K(e,t,n){return x(e,t,n,V,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),!T(i);)C();return k(e,v)},J=function(e,t){return P(function(e,t){var n=-1,r=44;do{switch(T(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"+z+"$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,":",":"+z)+e;case 101:return l(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+z+(45===u(e,14)?"inline-":"")+"box$3$1"+z+"$2$3$1"+D+"$2box$3")+e}break;case 5936:switch(u(e,t+11)){case 114:return z+e+D+l(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return z+e+D+l(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return z+e+D+l(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return z+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,"@","@"+z)})],r);case B: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+)/,":"+z+"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=e.stylisPlugins||re;var o,a,s={},l=[];o=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})},18321:(e,t,n)=>{"use strict";n.d(t,{C:()=>s,T:()=>c,i:()=>o,w:()=>l});var r=n(30538),i=n(12347),o=(n(93372),n(88946),!0),a=r.createContext("undefined"!=typeof HTMLElement?(0,i.A)({key:"css"}):null);var s=a.Provider,l=function(e){return(0,r.forwardRef)((function(t,n){var i=(0,r.useContext)(a);return e(t,i,n)}))};o||(l=function(e){return function(t){var n=(0,r.useContext)(a);return null===n?(n=(0,i.A)({key:"css"}),r.createElement(a.Provider,{value:n},e(t,n))):e(t,n)}});var c=r.createContext({})},5345:(e,t,n)=>{"use strict";n.d(t,{AH:()=>c,i7:()=>u,mL:()=>l});var r=n(18321),i=n(30538),o=n(40106),a=n(88946),s=n(93372),l=(n(12347),n(78535),(0,r.w)((function(e,t){var n=e.styles,l=(0,s.J)([n],void 0,i.useContext(r.T));if(!r.i){for(var c,u=l.name,d=l.styles,h=l.next;void 0!==h;)u+=" "+h.name,d+=h.styles,h=h.next;var p=!0===t.compat,f=t.insert("",{name:u,styles:d},t.sheet,p);return p?null:i.createElement("style",((c={})["data-emotion"]=t.key+"-global "+u,c.dangerouslySetInnerHTML={__html:f},c.nonce=t.sheet.nonce,c))}var g=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])),g.current=[n,r],function(){n.flush()}}),[t]),(0,a.i)((function(){var e=g.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:()=>f});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,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(48998),o=/[A-Z]|^ms/g,a=/_EMO_([^_]+?)_([^]*?)_EMO_/g,s=function(e){return 45===e.charCodeAt(1)},l=function(e){return null!=e&&"boolean"!=typeof e},c=(0,i.A)((function(e){return s(e)?e:e.replace(o,"-$&").toLowerCase()})),u=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(a,(function(e,t,n){return h={name:t,styles:n,next:h},t}))}return 1===r[e]||s(e)||"number"!=typeof t||0===t?t:t+"px"};function d(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return h={name:n.name,styles:n.styles,next:h},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)h={name:r.name,styles:r.styles,next:h},r=r.next;return n.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:h}}},88946:(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},40106:(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)}}},23799:(e,t,n)=>{"use strict";n.d(t,{s:()=>u});var r=n(30538),i=n(18029),o=n(74311),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"})]})}},26565:(e,t,n)=>{"use strict";n.d(t,{x:()=>c});var r=n(30538),i=n(18029),o=n(18605),a=n(74311),s=n(97282);function l(e){return e.substring(2).toLowerCase()}function c(e){const{children:t,disableReactTree:n=!1,mouseEvent:c="onClick",onClickAway:u,touchEvent:d="onTouchEnd"}=e,h=r.useRef(!1),p=r.useRef(null),f=r.useRef(!1),g=r.useRef(!1);r.useEffect((()=>(setTimeout((()=>{f.current=!0}),0),()=>{f.current=!1})),[]);const m=(0,i.A)(t.ref,p),y=(0,o.A)((e=>{const t=g.current;g.current=!1;const r=(0,a.A)(p.current);if(!f.current||!p.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth-1:!r.documentElement.contains(e.target)||p.current.contains(e.target),i||!n&&t||u(e)})),v=e=>n=>{g.current=!0;const r=t.props[e];r&&r(n)},b={ref:m};return!1!==d&&(b[d]=v(d)),r.useEffect((()=>{if(!1!==d){const e=l(d),t=(0,a.A)(p.current),n=()=>{h.current=!0};return t.addEventListener(e,y),t.addEventListener("touchmove",n),()=>{t.removeEventListener(e,y),t.removeEventListener("touchmove",n)}}}),[y,d]),!1!==c&&(b[c]=v(c)),r.useEffect((()=>{if(!1!==c){const e=l(c),t=(0,a.A)(p.current);return t.addEventListener(e,y),()=>{t.removeEventListener(e,y)}}}),[y,c]),(0,s.jsx)(r.Fragment,{children:r.cloneElement(t,b)})}},23130:(e,t,n)=>{"use strict";n.d(t,{X:()=>o});var r=n(51559),i=n(2665);function o(e,t,n){return void 0===e||(0,i.g)(e)?t:(0,r.A)({},t,{ownerState:(0,r.A)({},t.ownerState,n)})}},75188:(e,t,n)=>{"use strict";function r(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}n.d(t,{h:()=>r})},2665:(e,t,n)=>{"use strict";function r(e){return"string"==typeof e}n.d(t,{g:()=>r})},63261:(e,t,n)=>{"use strict";n.d(t,{p:()=>s});var r=n(51559),i=n(87286),o=n(75188);function a(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}function s(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:s,externalForwardedProps:l,className:c}=e;if(!t){const e=(0,i.A)(null==n?void 0:n.className,c,null==l?void 0:l.className,null==s?void 0:s.className),t=(0,r.A)({},null==n?void 0:n.style,null==l?void 0:l.style,null==s?void 0:s.style),o=(0,r.A)({},n,l,s);return e.length>0&&(o.className=e),Object.keys(t).length>0&&(o.style=t),{props:o,internalRef:void 0}}const u=(0,o.h)((0,r.A)({},l,s)),d=a(s),h=a(l),p=t(u),f=(0,i.A)(null==p?void 0:p.className,null==n?void 0:n.className,c,null==l?void 0:l.className,null==s?void 0:s.className),g=(0,r.A)({},null==p?void 0:p.style,null==n?void 0:n.style,null==l?void 0:l.style,null==s?void 0:s.style),m=(0,r.A)({},p,n,h,d);return f.length>0&&(m.className=f),Object.keys(g).length>0&&(m.style=g),{props:m,internalRef:p.ref}}},66567:(e,t,n)=>{"use strict";function r(e,t,n){return"function"==typeof e?e(t,n):e}n.d(t,{Y:()=>r})},12277:(e,t,n)=>{"use strict";n.d(t,{Q:()=>u});var r=n(51559),i=n(73342),o=n(18029),a=n(23130),s=n(63261),l=n(66567);const c=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function u(e){var t;const{elementType:n,externalSlotProps:u,ownerState:d,skipResolvingSlotProps:h=!1}=e,p=(0,i.A)(e,c),f=h?{}:(0,l.Y)(u,d),{props:g,internalRef:m}=(0,s.p)((0,r.A)({},p,{externalSlotProps:f})),y=(0,o.A)(m,null==f?void 0:f.ref,null==(t=e.additionalProps)?void 0:t.ref);return(0,a.X)(n,(0,r.A)({},g,{ref:y}),d)}},16299:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),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")},35103:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"m10 17 5-5-5-5z"}),"ArrowRight")},26332:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),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")},34790:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),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")},1617:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),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")},50110:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M5 13h14v-2H5zm-2 4h14v-2H3zM7 7v2h14V7z"}),"ClearAll")},98788:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),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")},18904:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),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")},87981:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M3 3h18v2H3zm0 16h18v2H3z"}),"DensityLarge")},33815:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M3 3h18v2H3zm0 16h18v2H3zm0-8h18v2H3z"}),"DensityMedium")},38537:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M3 2h18v2H3zm0 18h18v2H3zm0-6h18v2H3zm0-6h18v2H3z"}),"DensitySmall")},33330:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M20 9H4v2h16zM4 15h16v-2H4z"}),"DragHandle")},20317:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),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")},44182:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),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.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit")},86663:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),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")},91465:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),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")},64712:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"}),"FilterList")},81439:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),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")},4113:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),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")},43219:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M7 14H5v5h5v-2H7zm-2-4h2V7h3V5H5zm12 7h-3v2h5v-5h-2zM14 5v2h3v3h2V5z"}),"Fullscreen")},29667:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M5 16h3v3h2v-5H5zm3-8H5v2h5V5H8zm6 11h2v-3h3v-2h-5zm2-11V5h-2v5h5V8z"}),"FullscreenExit")},28217:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),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")},11689:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),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")},57897:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),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")},50836:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),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")},10575:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),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")},88523:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),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")},59843:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),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")},26638:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),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")},14821:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),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")},70422:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M3 18h6v-2H3zM3 6v2h18V6zm0 7h12v-2H3z"}),"Sort")},65534:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),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")},98993:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),o=n(97282);t.A=(0,i.default)((0,o.jsx)("path",{d:"M14.67 5v14H9.33V5zm1 14H21V5h-5.33zm-7.34 0V5H3v14z"}),"ViewColumn")},98073:(e,t,n)=>{"use strict";var r=n(43501);t.A=void 0;var i=r(n(43957)),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")},78918:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(65127),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")},75311:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(65127),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")},13659:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(65127),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")},2890:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(65127),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")},60192:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(65127),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")},98533:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});n(30538);var r=n(65127),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")},15789:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(65127),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.77C6.85 17.09 6.44 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")},19512:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(65127),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")},15470:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(65127),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")},96898:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(65127),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")},25297:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(65127),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")},27927:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(65127),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")},94321:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(65127),i=n(97282);const o=(0,r.A)((0,i.jsx)("path",{d:"M2 20h20v-4H2zm2-3h2v2H4zM2 4v4h20V4zm4 3H4V5h2zm-4 7h20v-4H2zm2-3h2v2H4z"}),"Storage")},91693:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(65127),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")},43957:(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(90202)},66469:(e,t,n)=>{"use strict";n.d(t,{A:()=>b});var r=n(51559),i=n(73342),o=n(30538),a=n(87286),s=n(77753),l=n(22311),c=n(25779),u=n(38382),d=n(97282);const h=["className","component"];var p=n(58337),f=n(76014),g=n(38358);const m=(0,n(5007).A)("MuiBox",["root"]),y=(0,f.A)(),v=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:p="MuiBox-root",generateClassName:f}=e,g=(0,s.default)("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(l.A);return o.forwardRef((function(e,o){const s=(0,u.A)(n),l=(0,c.A)(e),{className:m,component:y="div"}=l,v=(0,i.A)(l,h);return(0,d.jsx)(g,(0,r.A)({as:y,ref:o,className:(0,a.A)(m,f?f(p):p),theme:t&&s[t]||s},v))}))}({themeId:g.A,defaultTheme:y,defaultClassName:m.root,generateClassName:p.A.generate}),b=v},92004:(e,t,n)=>{"use strict";n.d(t,{A:()=>D});var r=n(51559),i=n(73342),o=n(30538),a=n(87286),s=n(32829),l=n(58990),c=n(87507),u=n(47258),d=n(36064),h=n(65741),p=n(37091),f=n(5345),g=n(8734),m=n(97282);const y=function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:s,rippleSize:l,in:c,onExited:u,timeout:d}=e,[h,p]=o.useState(!1),f=(0,a.A)(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),g={width:l,height:l,top:-l/2+s,left:-l/2+i},y=(0,a.A)(n.child,h&&n.childLeaving,r&&n.childPulsate);return c||h||p(!0),o.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(5007);const b=(0,v.A)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),w=["center","classes","className"];let x,A,S,C,E=e=>e;const _=(0,f.i7)(x||(x=E` 0% { transform: scale(0); opacity: 0.1; @@ -71,13 +71,13 @@ animation-iteration-count: infinite; animation-delay: 200ms; } -`),b.rippleVisible,_,550,(({theme:e})=>e.transitions.easing.easeInOut),b.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),b.child,b.childLeaving,k,550,(({theme:e})=>e.transitions.easing.easeInOut),b.childPulsate,T,(({theme:e})=>e.transitions.easing.easeInOut)),I=o.forwardRef((function(e,t){const n=(0,c.A)({props:e,name:"MuiTouchRipple"}),{center:s=!1,classes:l={},className:u}=n,d=(0,i.A)(n,x),[h,f]=o.useState([]),y=o.useRef(0),v=o.useRef(null);o.useEffect((()=>{v.current&&(v.current(),v.current=null)}),[h]);const w=o.useRef(!1),A=(0,g.A)(),S=o.useRef(null),C=o.useRef(null),E=o.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:o}=e;f((e=>[...e,(0,m.jsx)(P,{classes:{ripple:(0,a.A)(l.ripple,b.ripple),rippleVisible:(0,a.A)(l.rippleVisible,b.rippleVisible),ripplePulsate:(0,a.A)(l.ripplePulsate,b.ripplePulsate),child:(0,a.A)(l.child,b.child),childLeaving:(0,a.A)(l.childLeaving,b.childLeaving),childPulsate:(0,a.A)(l.childPulsate,b.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},y.current)])),y.current+=1,v.current=o}),[l]),_=o.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:r=!1,center:i=s||t.pulsate,fakeElement:o=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&w.current)return void(w.current=!1);"touchstart"===(null==e?void 0:e.type)&&(w.current=!0);const a=o?null:C.current,l=a?a.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,d;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),u=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),u=Math.round(n-l.top)}if(i)d=Math.sqrt((2*l.width**2+l.height**2)/3),d%2==0&&(d+=1);else{const e=2*Math.max(Math.abs((a?a.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((a?a.clientHeight:0)-u),u)+2;d=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===S.current&&(S.current=()=>{E({pulsate:r,rippleX:c,rippleY:u,rippleSize:d,cb:n})},A.start(80,(()=>{S.current&&(S.current(),S.current=null)}))):E({pulsate:r,rippleX:c,rippleY:u,rippleSize:d,cb:n})}),[s,E,A]),k=o.useCallback((()=>{_({},{pulsate:!0})}),[_]),T=o.useCallback(((e,t)=>{if(A.clear(),"touchend"===(null==e?void 0:e.type)&&S.current)return S.current(),S.current=null,void A.start(0,(()=>{T(e,t)}));S.current=null,f((e=>e.length>0?e.slice(1):e)),v.current=t}),[A]);return o.useImperativeHandle(t,(()=>({pulsate:k,start:_,stop:T})),[k,_,T]),(0,m.jsx)(O,(0,r.A)({className:(0,a.A)(b.root,l.root,u),ref:C},d,{children:(0,m.jsx)(p.A,{component:null,exit:!0,children:h})}))}));var M=n(24115);function L(e){return(0,M.Ay)("MuiButtonBase",e)}const R=(0,v.A)("MuiButtonBase",["root","disabled","focusVisible"]),j=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],F=(0,l.Ay)("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${R.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),D=o.forwardRef((function(e,t){const n=(0,c.A)({props:e,name:"MuiButtonBase"}),{action:l,centerRipple:p=!1,children:f,className:g,component:y="button",disabled:v=!1,disableRipple:b=!1,disableTouchRipple:x=!1,focusRipple:w=!1,LinkComponent:A="a",onBlur:S,onClick:C,onContextMenu:E,onDragLeave:_,onFocus:k,onFocusVisible:T,onKeyDown:O,onKeyUp:P,onMouseDown:M,onMouseLeave:R,onMouseUp:D,onTouchEnd:N,onTouchMove:z,onTouchStart:V,tabIndex:B=0,TouchRippleProps:$,touchRippleRef:G,type:U}=n,W=(0,i.A)(n,j),q=o.useRef(null),H=o.useRef(null),Y=(0,u.A)(H,G),{isFocusVisibleRef:K,onFocus:X,onBlur:Z,ref:J}=(0,h.A)(),[Q,ee]=o.useState(!1);v&&Q&&ee(!1),o.useImperativeHandle(l,(()=>({focusVisible:()=>{ee(!0),q.current.focus()}})),[]);const[te,ne]=o.useState(!1);o.useEffect((()=>{ne(!0)}),[]);const re=te&&!b&&!v;function ie(e,t,n=x){return(0,d.A)((r=>{t&&t(r);return!n&&H.current&&H.current[e](r),!0}))}o.useEffect((()=>{Q&&w&&!b&&te&&H.current.pulsate()}),[b,w,Q,te]);const oe=ie("start",M),ae=ie("stop",E),se=ie("stop",_),le=ie("stop",D),ce=ie("stop",(e=>{Q&&e.preventDefault(),R&&R(e)})),ue=ie("start",V),de=ie("stop",N),he=ie("stop",z),pe=ie("stop",(e=>{Z(e),!1===K.current&&ee(!1),S&&S(e)}),!1),fe=(0,d.A)((e=>{q.current||(q.current=e.currentTarget),X(e),!0===K.current&&(ee(!0),T&&T(e)),k&&k(e)})),ge=()=>{const e=q.current;return y&&"button"!==y&&!("A"===e.tagName&&e.href)},me=o.useRef(!1),ye=(0,d.A)((e=>{w&&!me.current&&Q&&H.current&&" "===e.key&&(me.current=!0,H.current.stop(e,(()=>{H.current.start(e)}))),e.target===e.currentTarget&&ge()&&" "===e.key&&e.preventDefault(),O&&O(e),e.target===e.currentTarget&&ge()&&"Enter"===e.key&&!v&&(e.preventDefault(),C&&C(e))})),ve=(0,d.A)((e=>{w&&" "===e.key&&H.current&&Q&&!e.defaultPrevented&&(me.current=!1,H.current.stop(e,(()=>{H.current.pulsate(e)}))),P&&P(e),C&&e.target===e.currentTarget&&ge()&&" "===e.key&&!e.defaultPrevented&&C(e)}));let be=y;"button"===be&&(W.href||W.to)&&(be=A);const xe={};"button"===be?(xe.type=void 0===U?"button":U,xe.disabled=v):(W.href||W.to||(xe.role="button"),v&&(xe["aria-disabled"]=v));const we=(0,u.A)(t,J,q);const Ae=(0,r.A)({},n,{centerRipple:p,component:y,disabled:v,disableRipple:b,disableTouchRipple:x,focusRipple:w,tabIndex:B,focusVisible:Q}),Se=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,o={root:["root",t&&"disabled",n&&"focusVisible"]},a=(0,s.A)(o,L,i);return n&&r&&(a.root+=` ${r}`),a})(Ae);return(0,m.jsxs)(F,(0,r.A)({as:be,className:(0,a.A)(Se.root,g),ownerState:Ae,onBlur:pe,onClick:C,onContextMenu:ae,onFocus:fe,onKeyDown:ye,onKeyUp:ve,onMouseDown:oe,onMouseLeave:ce,onMouseUp:le,onDragLeave:se,onTouchEnd:de,onTouchMove:he,onTouchStart:ue,ref:we,tabIndex:v?-1:B,type:U},xe,W,{children:[f,re?(0,m.jsx)(I,(0,r.A)({ref:Y,center:p},$)):null]}))}))},75706:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(30538).createContext(void 0)},13298:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(30538).createContext({})},50926:(e,t,n)=>{"use strict";n.d(t,{A:()=>k});var r=n(73342),i=n(51559),o=n(30538),a=n(87286),s=n(7757),l=n(32829),c=n(59015),u=n(58990),d=n(49968),h=n(87507),p=n(92004),f=n(19508),g=n(5007),m=n(24115);function y(e){return(0,m.Ay)("MuiButton",e)}const v=(0,g.A)("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);var b=n(13298),x=n(75706),w=n(97282);const A=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],S=e=>(0,i.A)({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),C=(0,u.Ay)(p.A,{shouldForwardProp:e=>(0,d.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,f.A)(n.color)}`],t[`size${(0,f.A)(n.size)}`],t[`${n.variant}Size${(0,f.A)(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],a="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return(0,i.A)({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":(0,i.A)({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,c.X4)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,c.X4)(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,c.X4)(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:a,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":(0,i.A)({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${v.focusVisible}`]:(0,i.A)({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${v.disabled}`]:(0,i.A)({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${(0,c.X4)(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${v.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${v.disabled}`]:{boxShadow:"none"}})),E=(0,u.Ay)("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${(0,f.A)(n.size)}`]]}})((({ownerState:e})=>(0,i.A)({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},S(e)))),_=(0,u.Ay)("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${(0,f.A)(n.size)}`]]}})((({ownerState:e})=>(0,i.A)({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},S(e)))),k=o.forwardRef((function(e,t){const n=o.useContext(b.A),c=o.useContext(x.A),u=(0,s.A)(n,e),d=(0,h.A)({props:u,name:"MuiButton"}),{children:p,color:g="primary",component:m="button",className:v,disabled:S=!1,disableElevation:k=!1,disableFocusRipple:T=!1,endIcon:O,focusVisibleClassName:P,fullWidth:I=!1,size:M="medium",startIcon:L,type:R,variant:j="text"}=d,F=(0,r.A)(d,A),D=(0,i.A)({},d,{color:g,component:m,disabled:S,disableElevation:k,disableFocusRipple:T,fullWidth:I,size:M,type:R,variant:j}),N=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:a,classes:s}=e,c={root:["root",a,`${a}${(0,f.A)(t)}`,`size${(0,f.A)(o)}`,`${a}Size${(0,f.A)(o)}`,`color${(0,f.A)(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${(0,f.A)(o)}`],endIcon:["icon","endIcon",`iconSize${(0,f.A)(o)}`]},u=(0,l.A)(c,y,s);return(0,i.A)({},s,u)})(D),z=L&&(0,w.jsx)(E,{className:N.startIcon,ownerState:D,children:L}),V=O&&(0,w.jsx)(_,{className:N.endIcon,ownerState:D,children:O}),B=c||"";return(0,w.jsxs)(C,(0,i.A)({ownerState:D,className:(0,a.A)(n.className,N.root,v,B),component:m,disabled:S,focusRipple:!T,focusVisibleClassName:(0,a.A)(N.focusVisible,P),ref:t,type:R},F,{classes:N,children:[z,p,V]}))}))},83188:(e,t,n)=>{"use strict";n.d(t,{A:()=>E});var r=n(73342),i=n(51559),o=n(30538),a=n(87286),s=n(32829),l=n(59015),c=n(65127),u=n(97282);const d=(0,c.A)((0,u.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 h=n(47258),p=n(19508),f=n(92004),g=n(87507),m=n(58990),y=n(5007),v=n(24115);function b(e){return(0,v.Ay)("MuiChip",e)}const x=(0,y.A)("MuiChip",["root","sizeSmall","sizeMedium","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"]),w=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],A=(0,m.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[{[`& .${x.avatar}`]:t.avatar},{[`& .${x.avatar}`]:t[`avatar${(0,p.A)(s)}`]},{[`& .${x.avatar}`]:t[`avatarColor${(0,p.A)(r)}`]},{[`& .${x.icon}`]:t.icon},{[`& .${x.icon}`]:t[`icon${(0,p.A)(s)}`]},{[`& .${x.icon}`]:t[`iconColor${(0,p.A)(i)}`]},{[`& .${x.deleteIcon}`]:t.deleteIcon},{[`& .${x.deleteIcon}`]:t[`deleteIcon${(0,p.A)(s)}`]},{[`& .${x.deleteIcon}`]:t[`deleteIconColor${(0,p.A)(r)}`]},{[`& .${x.deleteIcon}`]:t[`deleteIcon${(0,p.A)(l)}Color${(0,p.A)(r)}`]},t.root,t[`size${(0,p.A)(s)}`],t[`color${(0,p.A)(r)}`],o&&t.clickable,o&&"default"!==r&&t[`clickableColor${(0,p.A)(r)})`],a&&t.deletable,a&&"default"!==r&&t[`deletableColor${(0,p.A)(r)}`],t[l],t[`${l}${(0,p.A)(r)}`]]}})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?e.palette.grey[700]:e.palette.grey[300];return(0,i.A)({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",[`&.${x.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${x.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${x.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${x.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${x.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${x.icon}`]:(0,i.A)({marginLeft:5,marginRight:-6},"small"===t.size&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&(0,i.A)({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},"default"!==t.color&&{color:"inherit"})),[`& .${x.deleteIcon}`]:(0,i.A)({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:(0,l.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,l.X4)(e.palette.text.primary,.4)}},"small"===t.size&&{fontSize:16,marginRight:4,marginLeft:-4},"default"!==t.color&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:(0,l.X4)(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},"small"===t.size&&{height:24},"default"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${x.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,l.X4)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&"default"!==t.color&&{[`&.${x.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})}),(({theme:e,ownerState:t})=>(0,i.A)({},t.clickable&&{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,l.X4)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${x.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,l.X4)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&"default"!==t.color&&{[`&:hover, &.${x.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})),(({theme:e,ownerState:t})=>(0,i.A)({},"outlined"===t.variant&&{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]}`,[`&.${x.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${x.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${x.avatar}`]:{marginLeft:4},[`& .${x.avatarSmall}`]:{marginLeft:2},[`& .${x.icon}`]:{marginLeft:4},[`& .${x.iconSmall}`]:{marginLeft:2},[`& .${x.deleteIcon}`]:{marginRight:5},[`& .${x.deleteIconSmall}`]:{marginRight:3}},"outlined"===t.variant&&"default"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:(0,l.X4)(e.palette[t.color].main,.7)}`,[`&.${x.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,l.X4)(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${x.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:(0,l.X4)(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${x.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:(0,l.X4)(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}}))),S=(0,m.Ay)("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${(0,p.A)(r)}`]]}})((({ownerState:e})=>(0,i.A)({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},"outlined"===e.variant&&{paddingLeft:11,paddingRight:11},"small"===e.size&&{paddingLeft:8,paddingRight:8},"small"===e.size&&"outlined"===e.variant&&{paddingLeft:7,paddingRight:7})));function C(e){return"Backspace"===e.key||"Delete"===e.key}const E=o.forwardRef((function(e,t){const n=(0,g.A)({props:e,name:"MuiChip"}),{avatar:l,className:c,clickable:m,color:y="default",component:v,deleteIcon:x,disabled:E=!1,icon:_,label:k,onClick:T,onDelete:O,onKeyDown:P,onKeyUp:I,size:M="medium",variant:L="filled",tabIndex:R,skipFocusWhenDisabled:j=!1}=n,F=(0,r.A)(n,w),D=o.useRef(null),N=(0,h.A)(D,t),z=e=>{e.stopPropagation(),O&&O(e)},V=!(!1===m||!T)||m,B=V||O?f.A:v||"div",$=(0,i.A)({},n,{component:B,disabled:E,size:M,color:y,iconColor:o.isValidElement(_)&&_.props.color||y,onDelete:!!O,clickable:V,variant:L}),G=(e=>{const{classes:t,disabled:n,size:r,color:i,iconColor:o,onDelete:a,clickable:l,variant:c}=e,u={root:["root",c,n&&"disabled",`size${(0,p.A)(r)}`,`color${(0,p.A)(i)}`,l&&"clickable",l&&`clickableColor${(0,p.A)(i)}`,a&&"deletable",a&&`deletableColor${(0,p.A)(i)}`,`${c}${(0,p.A)(i)}`],label:["label",`label${(0,p.A)(r)}`],avatar:["avatar",`avatar${(0,p.A)(r)}`,`avatarColor${(0,p.A)(i)}`],icon:["icon",`icon${(0,p.A)(r)}`,`iconColor${(0,p.A)(o)}`],deleteIcon:["deleteIcon",`deleteIcon${(0,p.A)(r)}`,`deleteIconColor${(0,p.A)(i)}`,`deleteIcon${(0,p.A)(c)}Color${(0,p.A)(i)}`]};return(0,s.A)(u,b,t)})($),U=B===f.A?(0,i.A)({component:v||"div",focusVisibleClassName:G.focusVisible},O&&{disableRipple:!0}):{};let W=null;O&&(W=x&&o.isValidElement(x)?o.cloneElement(x,{className:(0,a.A)(x.props.className,G.deleteIcon),onClick:z}):(0,u.jsx)(d,{className:(0,a.A)(G.deleteIcon),onClick:z}));let q=null;l&&o.isValidElement(l)&&(q=o.cloneElement(l,{className:(0,a.A)(G.avatar,l.props.className)}));let H=null;return _&&o.isValidElement(_)&&(H=o.cloneElement(_,{className:(0,a.A)(G.icon,_.props.className)})),(0,u.jsxs)(A,(0,i.A)({as:B,className:(0,a.A)(G.root,c),disabled:!(!V||!E)||void 0,onClick:T,onKeyDown:e=>{e.currentTarget===e.target&&C(e)&&e.preventDefault(),P&&P(e)},onKeyUp:e=>{e.currentTarget===e.target&&(O&&C(e)?O(e):"Escape"===e.key&&D.current&&D.current.blur()),I&&I(e)},ref:N,tabIndex:j&&E?-1:R,ownerState:$},U,F,{children:[q||H,(0,u.jsx)(S,{className:(0,a.A)(G.label),ownerState:$,children:k}),W]}))}))},49773:(e,t,n)=>{"use strict";n.d(t,{A:()=>m});var r=n(73342),i=n(51559),o=n(30538),a=n(87286),s=n(32829),l=n(58990),c=n(87507),u=n(5007),d=n(24115);function h(e){return(0,d.Ay)("MuiDialogActions",e)}(0,u.A)("MuiDialogActions",["root","spacing"]);var p=n(97282);const f=["className","disableSpacing"],g=(0,l.Ay)("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})((({ownerState:e})=>(0,i.A)({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}}))),m=o.forwardRef((function(e,t){const n=(0,c.A)({props:e,name:"MuiDialogActions"}),{className:o,disableSpacing:l=!1}=n,u=(0,r.A)(n,f),d=(0,i.A)({},n,{disableSpacing:l}),m=(e=>{const{classes:t,disableSpacing:n}=e,r={root:["root",!n&&"spacing"]};return(0,s.A)(r,h,t)})(d);return(0,p.jsx)(g,(0,i.A)({className:(0,a.A)(m.root,o),ownerState:d,ref:t},u))}))},99311:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var r=n(73342),i=n(51559),o=n(30538),a=n(87286),s=n(32829),l=n(58990),c=n(87507),u=n(5007),d=n(24115);function h(e){return(0,d.Ay)("MuiDialogContent",e)}(0,u.A)("MuiDialogContent",["root","dividers"]);var p=n(44713),f=n(97282);const g=["className","dividers"],m=(0,l.Ay)("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})((({theme:e,ownerState:t})=>(0,i.A)({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${p.A.root} + &`]:{paddingTop:0}}))),y=o.forwardRef((function(e,t){const n=(0,c.A)({props:e,name:"MuiDialogContent"}),{className:o,dividers:l=!1}=n,u=(0,r.A)(n,g),d=(0,i.A)({},n,{dividers:l}),p=(e=>{const{classes:t,dividers:n}=e,r={root:["root",n&&"dividers"]};return(0,s.A)(r,h,t)})(d);return(0,f.jsx)(m,(0,i.A)({className:(0,a.A)(p.root,o),ownerState:d,ref:t},u))}))},44713:(e,t,n)=>{"use strict";n.d(t,{A:()=>a,t:()=>o});var r=n(5007),i=n(24115);function o(e){return(0,i.Ay)("MuiDialogTitle",e)}const a=(0,r.A)("MuiDialogTitle",["root"])},53279:(e,t,n)=>{"use strict";n.d(t,{A:()=>E});var r=n(73342),i=n(51559),o=n(30538),a=n(87286),s=n(32829),l=n(5391),c=n(19508),u=n(13027),d=n(68127),h=n(8088),p=n(87507),f=n(58990),g=n(11371),m=n(71352),y=n(94653),v=n(94145),b=n(97282);const x=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],w=(0,f.Ay)(y.A,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),A=(0,f.Ay)(u.A,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),S=(0,f.Ay)("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${(0,c.A)(n.scroll)}`]]}})((({ownerState:e})=>(0,i.A)({height:"100%","@media print":{height:"auto"},outline:0},"paper"===e.scroll&&{display:"flex",justifyContent:"center",alignItems:"center"},"body"===e.scroll&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}))),C=(0,f.Ay)(h.A,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${(0,c.A)(n.scroll)}`],t[`paperWidth${(0,c.A)(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})((({theme:e,ownerState:t})=>(0,i.A)({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},"paper"===t.scroll&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},"body"===t.scroll&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},"xs"===t.maxWidth&&{maxWidth:"px"===e.breakpoints.unit?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${g.A.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&"xs"!==t.maxWidth&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${g.A.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+64)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${g.A.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}))),E=o.forwardRef((function(e,t){const n=(0,p.A)({props:e,name:"MuiDialog"}),u=(0,v.A)(),f={enter:u.transitions.duration.enteringScreen,exit:u.transitions.duration.leavingScreen},{"aria-describedby":y,"aria-labelledby":E,BackdropComponent:_,BackdropProps:k,children:T,className:O,disableEscapeKeyDown:P=!1,fullScreen:I=!1,fullWidth:M=!1,maxWidth:L="sm",onBackdropClick:R,onClick:j,onClose:F,open:D,PaperComponent:N=h.A,PaperProps:z={},scroll:V="paper",TransitionComponent:B=d.A,transitionDuration:$=f,TransitionProps:G}=n,U=(0,r.A)(n,x),W=(0,i.A)({},n,{disableEscapeKeyDown:P,fullScreen:I,fullWidth:M,maxWidth:L,scroll:V}),q=(e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:o}=e,a={root:["root"],container:["container",`scroll${(0,c.A)(n)}`],paper:["paper",`paperScroll${(0,c.A)(n)}`,`paperWidth${(0,c.A)(String(r))}`,i&&"paperFullWidth",o&&"paperFullScreen"]};return(0,s.A)(a,g.f,t)})(W),H=o.useRef(),Y=(0,l.A)(E),K=o.useMemo((()=>({titleId:Y})),[Y]);return(0,b.jsx)(A,(0,i.A)({className:(0,a.A)(q.root,O),closeAfterTransition:!0,components:{Backdrop:w},componentsProps:{backdrop:(0,i.A)({transitionDuration:$,as:_},k)},disableEscapeKeyDown:P,onClose:F,open:D,ref:t,onClick:e=>{j&&j(e),H.current&&(H.current=null,R&&R(e),F&&F(e,"backdropClick"))},ownerState:W},U,{children:(0,b.jsx)(B,(0,i.A)({appear:!0,in:D,timeout:$,role:"presentation"},G,{children:(0,b.jsx)(S,{className:(0,a.A)(q.container),onMouseDown:e=>{H.current=e.target===e.currentTarget},ownerState:W,children:(0,b.jsx)(C,(0,i.A)({as:N,elevation:24,role:"dialog","aria-describedby":y,"aria-labelledby":Y},z,{className:(0,a.A)(q.paper,z.className),ownerState:W,children:(0,b.jsx)(m.A.Provider,{value:K,children:T})}))})}))}))}))},71352:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(30538).createContext({})},11371:(e,t,n)=>{"use strict";n.d(t,{A:()=>a,f:()=>o});var r=n(5007),i=n(24115);function o(e){return(0,i.Ay)("MuiDialog",e)}const a=(0,r.A)("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"])},66865:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var r=n(73342),i=n(51559),o=n(30538),a=n(87286),s=n(32829),l=n(59015),c=n(58990),u=n(87507),d=n(99425),h=n(97282);const p=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],f=(0,c.Ay)("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>(0,i.A)({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:(0,l.X4)(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({ownerState:e})=>(0,i.A)({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>(0,i.A)({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>(0,i.A)({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>(0,i.A)({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),g=(0,c.Ay)("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>(0,i.A)({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}))),m=o.forwardRef((function(e,t){const n=(0,u.A)({props:e,name:"MuiDivider"}),{absolute:o=!1,children:l,className:c,component:m=(l?"div":"hr"),flexItem:y=!1,light:v=!1,orientation:b="horizontal",role:x=("hr"!==m?"separator":void 0),textAlign:w="center",variant:A="fullWidth"}=n,S=(0,r.A)(n,p),C=(0,i.A)({},n,{absolute:o,component:m,flexItem:y,light:v,orientation:b,role:x,textAlign:w,variant:A}),E=(e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:o,orientation:a,textAlign:l,variant:c}=e,u={root:["root",t&&"absolute",c,o&&"light","vertical"===a&&"vertical",i&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===l&&"vertical"!==a&&"textAlignRight","left"===l&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]};return(0,s.A)(u,d.K,r)})(C);return(0,h.jsx)(f,(0,i.A)({as:m,className:(0,a.A)(E.root,c),role:x,ref:t,ownerState:C},S,{children:l?(0,h.jsx)(g,{className:E.wrapper,ownerState:C,children:l}):null}))}));m.muiSkipListHighlight=!0;const y=m},99425:(e,t,n)=>{"use strict";n.d(t,{A:()=>a,K:()=>o});var r=n(5007),i=n(24115);function o(e){return(0,i.Ay)("MuiDivider",e)}const a=(0,r.A)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"])},68127:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(51559),i=n(73342),o=n(30538),a=n(89272),s=n(94145),l=n(97880),c=n(47258),u=n(97282);const d=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],h={entering:{opacity:1},entered:{opacity:1}},p=o.forwardRef((function(e,t){const n=(0,s.A)(),p={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:f,appear:g=!0,children:m,easing:y,in:v,onEnter:b,onEntered:x,onEntering:w,onExit:A,onExited:S,onExiting:C,style:E,timeout:_=p,TransitionComponent:k=a.Ay}=e,T=(0,i.A)(e,d),O=o.useRef(null),P=(0,c.A)(O,m.ref,t),I=e=>t=>{if(e){const n=O.current;void 0===t?e(n):e(n,t)}},M=I(w),L=I(((e,t)=>{(0,l.q)(e);const r=(0,l.c)({style:E,timeout:_,easing:y},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),b&&b(e,t)})),R=I(x),j=I(C),F=I((e=>{const t=(0,l.c)({style:E,timeout:_,easing:y},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),A&&A(e)})),D=I(S);return(0,u.jsx)(k,(0,r.A)({appear:g,in:v,nodeRef:O,onEnter:L,onEntered:R,onEntering:M,onExit:F,onExited:D,onExiting:j,addEndListener:e=>{f&&f(O.current,e)},timeout:_},T,{children:(e,t)=>o.cloneElement(m,(0,r.A)({style:(0,r.A)({opacity:0,visibility:"exited"!==e||v?void 0:"hidden"},h[e],E,m.props.style),ref:P},t))}))}))},81933:(e,t,n)=>{"use strict";n.d(t,{A:()=>v});var r=n(73342),i=n(51559),o=n(30538),a=n(43271),s=n(32829),l=n(28566),c=n(58990),u=n(49968),d=n(87507),h=n(70501),p=n(97282);const f=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],g=(0,c.Ay)(l.Sh,{shouldForwardProp:e=>(0,u.A)(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...(0,l.WC)(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var n;const r="light"===e.palette.mode,o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",a=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return(0,i.A)({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:s,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a}},[`&.${h.A.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a},[`&.${h.A.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:l}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(n=(e.vars||e).palette[t.color||"primary"])?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${h.A.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${h.A.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${h.A.disabled}, .${h.A.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${h.A.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&(0,i.A)({padding:"25px 12px 8px"},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9}))})),m=(0,c.Ay)(l.f3,{name:"MuiFilledInput",slot:"Input",overridesResolver:l.Oj})((({theme:e,ownerState:t})=>(0,i.A)({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}))),y=o.forwardRef((function(e,t){var n,o,c,u;const y=(0,d.A)({props:e,name:"MuiFilledInput"}),{components:v={},componentsProps:b,fullWidth:x=!1,inputComponent:w="input",multiline:A=!1,slotProps:S,slots:C={},type:E="text"}=y,_=(0,r.A)(y,f),k=(0,i.A)({},y,{fullWidth:x,inputComponent:w,multiline:A,type:E}),T=(e=>{const{classes:t,disableUnderline:n}=e,r={root:["root",!n&&"underline"],input:["input"]},o=(0,s.A)(r,h.N,t);return(0,i.A)({},t,o)})(y),O={root:{ownerState:k},input:{ownerState:k}},P=(null!=S?S:b)?(0,a.A)(O,null!=S?S:b):O,I=null!=(n=null!=(o=C.root)?o:v.Root)?n:g,M=null!=(c=null!=(u=C.input)?u:v.Input)?c:m;return(0,p.jsx)(l.Ay,(0,i.A)({slots:{root:I,input:M},componentsProps:P,fullWidth:x,inputComponent:w,multiline:A,ref:t,type:E},_,{classes:T}))}));y.muiName="Input";const v=y},70501:(e,t,n)=>{"use strict";n.d(t,{A:()=>l,N:()=>s});var r=n(51559),i=n(5007),o=n(24115),a=n(8253);function s(e){return(0,o.Ay)("MuiFilledInput",e)}const l=(0,r.A)({},a.A,(0,i.A)("MuiFilledInput",["root","underline","input"]))},90645:(e,t,n)=>{"use strict";n.d(t,{A:()=>x});var r=n(73342),i=n(51559),o=n(30538),a=n(87286),s=n(32829),l=n(87507),c=n(58990),u=n(29421),d=n(19508),h=n(75361),p=n(2994),f=n(5007),g=n(24115);function m(e){return(0,g.Ay)("MuiFormControl",e)}(0,f.A)("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);var y=n(97282);const v=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],b=(0,c.Ay)("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>(0,i.A)({},t.root,t[`margin${(0,d.A)(e.margin)}`],e.fullWidth&&t.fullWidth)})((({ownerState:e})=>(0,i.A)({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},"normal"===e.margin&&{marginTop:16,marginBottom:8},"dense"===e.margin&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"}))),x=o.forwardRef((function(e,t){const n=(0,l.A)({props:e,name:"MuiFormControl"}),{children:c,className:f,color:g="primary",component:x="div",disabled:w=!1,error:A=!1,focused:S,fullWidth:C=!1,hiddenLabel:E=!1,margin:_="none",required:k=!1,size:T="medium",variant:O="outlined"}=n,P=(0,r.A)(n,v),I=(0,i.A)({},n,{color:g,component:x,disabled:w,error:A,fullWidth:C,hiddenLabel:E,margin:_,required:k,size:T,variant:O}),M=(e=>{const{classes:t,margin:n,fullWidth:r}=e,i={root:["root","none"!==n&&`margin${(0,d.A)(n)}`,r&&"fullWidth"]};return(0,s.A)(i,m,t)})(I),[L,R]=o.useState((()=>{let e=!1;return c&&o.Children.forEach(c,(t=>{if(!(0,h.A)(t,["Input","Select"]))return;const n=(0,h.A)(t,["Select"])?t.props.input:t;n&&(0,u.gr)(n.props)&&(e=!0)})),e})),[j,F]=o.useState((()=>{let e=!1;return c&&o.Children.forEach(c,(t=>{(0,h.A)(t,["Input","Select"])&&((0,u.lq)(t.props,!0)||(0,u.lq)(t.props.inputProps,!0))&&(e=!0)})),e})),[D,N]=o.useState(!1);w&&D&&N(!1);const z=void 0===S||w?D:S;let V;const B=o.useMemo((()=>({adornedStart:L,setAdornedStart:R,color:g,disabled:w,error:A,filled:j,focused:z,fullWidth:C,hiddenLabel:E,size:T,onBlur:()=>{N(!1)},onEmpty:()=>{F(!1)},onFilled:()=>{F(!0)},onFocus:()=>{N(!0)},registerEffect:V,required:k,variant:O})),[L,g,w,A,j,z,C,E,V,k,T,O]);return(0,y.jsx)(p.A.Provider,{value:B,children:(0,y.jsx)(b,(0,i.A)({as:x,ownerState:I,className:(0,a.A)(M.root,f),ref:t},P,{children:c}))})}))},2994:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(30538).createContext(void 0)},73336:(e,t,n)=>{"use strict";function r({props:e,states:t,muiFormControl:n}){return t.reduce(((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t)),{})}n.d(t,{A:()=>r})},39230:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(30538),i=n(2994);function o(){return r.useContext(i.A)}},45769:(e,t,n)=>{"use strict";n.d(t,{A:()=>w});var r=n(73342),i=n(51559),o=n(30538),a=n(87286),s=n(32829),l=n(73336),c=n(39230),u=n(58990),d=n(19508),h=n(5007),p=n(24115);function f(e){return(0,p.Ay)("MuiFormHelperText",e)}const g=(0,h.A)("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var m,y=n(87507),v=n(97282);const b=["children","className","component","disabled","error","filled","focused","margin","required","variant"],x=(0,u.Ay)("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${(0,d.A)(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})((({theme:e,ownerState:t})=>(0,i.A)({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${g.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${g.error}`]:{color:(e.vars||e).palette.error.main}},"small"===t.size&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14}))),w=o.forwardRef((function(e,t){const n=(0,y.A)({props:e,name:"MuiFormHelperText"}),{children:o,className:u,component:h="p"}=n,p=(0,r.A)(n,b),g=(0,c.A)(),w=(0,l.A)({props:n,muiFormControl:g,states:["variant","size","disabled","error","filled","focused","required"]}),A=(0,i.A)({},n,{component:h,contained:"filled"===w.variant||"outlined"===w.variant,variant:w.variant,size:w.size,disabled:w.disabled,error:w.error,filled:w.filled,focused:w.focused,required:w.required}),S=(e=>{const{classes:t,contained:n,size:r,disabled:i,error:o,filled:a,focused:l,required:c}=e,u={root:["root",i&&"disabled",o&&"error",r&&`size${(0,d.A)(r)}`,n&&"contained",l&&"focused",a&&"filled",c&&"required"]};return(0,s.A)(u,f,t)})(A);return(0,v.jsx)(x,(0,i.A)({as:h,ownerState:A,className:(0,a.A)(S.root,u),ref:t},p,{children:" "===o?m||(m=(0,v.jsx)("span",{className:"notranslate",children:"​"})):o}))}))},36797:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var r=n(51559),i=n(73342),o=n(30538),a=n(8734),s=n(89272),l=n(94145),c=n(97880),u=n(47258),d=n(97282);const h=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function p(e){return`scale(${e}, ${e**2})`}const f={entering:{opacity:1,transform:p(1)},entered:{opacity:1,transform:"none"}},g="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),m=o.forwardRef((function(e,t){const{addEndListener:n,appear:m=!0,children:y,easing:v,in:b,onEnter:x,onEntered:w,onEntering:A,onExit:S,onExited:C,onExiting:E,style:_,timeout:k="auto",TransitionComponent:T=s.Ay}=e,O=(0,i.A)(e,h),P=(0,a.A)(),I=o.useRef(),M=(0,l.A)(),L=o.useRef(null),R=(0,u.A)(L,y.ref,t),j=e=>t=>{if(e){const n=L.current;void 0===t?e(n):e(n,t)}},F=j(A),D=j(((e,t)=>{(0,c.q)(e);const{duration:n,delay:r,easing:i}=(0,c.c)({style:_,timeout:k,easing:v},{mode:"enter"});let o;"auto"===k?(o=M.transitions.getAutoHeightDuration(e.clientHeight),I.current=o):o=n,e.style.transition=[M.transitions.create("opacity",{duration:o,delay:r}),M.transitions.create("transform",{duration:g?o:.666*o,delay:r,easing:i})].join(","),x&&x(e,t)})),N=j(w),z=j(E),V=j((e=>{const{duration:t,delay:n,easing:r}=(0,c.c)({style:_,timeout:k,easing:v},{mode:"exit"});let i;"auto"===k?(i=M.transitions.getAutoHeightDuration(e.clientHeight),I.current=i):i=t,e.style.transition=[M.transitions.create("opacity",{duration:i,delay:n}),M.transitions.create("transform",{duration:g?i:.666*i,delay:g?n:n||.333*i,easing:r})].join(","),e.style.opacity=0,e.style.transform=p(.75),S&&S(e)})),B=j(C);return(0,d.jsx)(T,(0,r.A)({appear:m,in:b,nodeRef:L,onEnter:D,onEntered:N,onEntering:F,onExit:V,onExited:B,onExiting:z,addEndListener:e=>{"auto"===k&&P.start(I.current||0,e),n&&n(L.current,e)},timeout:"auto"===k?null:k},O,{children:(e,t)=>o.cloneElement(y,(0,r.A)({style:(0,r.A)({opacity:0,transform:p(.75),visibility:"exited"!==e||b?void 0:"hidden"},f[e],_,y.props.style),ref:R},t))}))}));m.muiSupportAuto=!0;const y=m},90703:(e,t,n)=>{"use strict";n.d(t,{A:()=>x});var r=n(73342),i=n(51559),o=n(30538),a=n(87286),s=n(32829),l=n(59015),c=n(58990),u=n(87507),d=n(92004),h=n(19508),p=n(5007),f=n(24115);function g(e){return(0,f.Ay)("MuiIconButton",e)}const m=(0,p.A)("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]);var y=n(97282);const v=["edge","children","className","color","disabled","disableFocusRipple","size"],b=(0,c.Ay)(d.A,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${(0,h.A)(n.color)}`],n.edge&&t[`edge${(0,h.A)(n.edge)}`],t[`size${(0,h.A)(n.size)}`]]}})((({theme:e,ownerState:t})=>(0,i.A)({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,l.X4)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})),(({theme:e,ownerState:t})=>{var n;const r=null==(n=(e.vars||e).palette)?void 0:n[t.color];return(0,i.A)({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&(0,i.A)({color:null==r?void 0:r.main},!t.disableRipple&&{"&:hover":(0,i.A)({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,l.X4)(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===t.size&&{padding:5,fontSize:e.typography.pxToRem(18)},"large"===t.size&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${m.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})})),x=o.forwardRef((function(e,t){const n=(0,u.A)({props:e,name:"MuiIconButton"}),{edge:o=!1,children:l,className:c,color:d="default",disabled:p=!1,disableFocusRipple:f=!1,size:m="medium"}=n,x=(0,r.A)(n,v),w=(0,i.A)({},n,{edge:o,color:d,disabled:p,disableFocusRipple:f,size:m}),A=(e=>{const{classes:t,disabled:n,color:r,edge:i,size:o}=e,a={root:["root",n&&"disabled","default"!==r&&`color${(0,h.A)(r)}`,i&&`edge${(0,h.A)(i)}`,`size${(0,h.A)(o)}`]};return(0,s.A)(a,g,t)})(w);return(0,y.jsx)(b,(0,i.A)({className:(0,a.A)(A.root,c),centerRipple:!0,focusRipple:!f,disabled:p,ref:t},x,{ownerState:w,children:l}))}))},99893:(e,t,n)=>{"use strict";n.d(t,{A:()=>A});var r=n(73342),i=n(51559),o=n(30538),a=n(87286),s=n(32829),l=n(19508),c=n(91031),u=n(2994),d=n(39230),h=n(58990),p=n(5007),f=n(24115);function g(e){return(0,f.Ay)("MuiInputAdornment",e)}const m=(0,p.A)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var y,v=n(87507),b=n(97282);const x=["children","className","component","disablePointerEvents","disableTypography","position","variant"],w=(0,h.Ay)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${(0,l.A)(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})((({theme:e,ownerState:t})=>(0,i.A)({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===t.variant&&{[`&.${m.positionStart}&:not(.${m.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"}))),A=o.forwardRef((function(e,t){const n=(0,v.A)({props:e,name:"MuiInputAdornment"}),{children:h,className:p,component:f="div",disablePointerEvents:m=!1,disableTypography:A=!1,position:S,variant:C}=n,E=(0,r.A)(n,x),_=(0,d.A)()||{};let k=C;C&&_.variant,_&&!k&&(k=_.variant);const T=(0,i.A)({},n,{hiddenLabel:_.hiddenLabel,size:_.size,disablePointerEvents:m,position:S,variant:k}),O=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:i,size:o,variant:a}=e,c={root:["root",n&&"disablePointerEvents",i&&`position${(0,l.A)(i)}`,a,r&&"hiddenLabel",o&&`size${(0,l.A)(o)}`]};return(0,s.A)(c,g,t)})(T);return(0,b.jsx)(u.A.Provider,{value:null,children:(0,b.jsx)(w,(0,i.A)({as:f,ownerState:T,className:(0,a.A)(O.root,p),ref:t},E,{children:"string"!=typeof h||A?(0,b.jsxs)(o.Fragment,{children:["start"===S?y||(y=(0,b.jsx)("span",{className:"notranslate",children:"​"})):null,h]}):(0,b.jsx)(c.A,{color:"text.secondary",children:h})}))})}))},28566:(e,t,n)=>{"use strict";n.d(t,{f3:()=>z,Sh:()=>N,Ay:()=>B,Oj:()=>D,WC:()=>F});var r=n(73342),i=n(51559),o=n(88207),a=n(30538),s=n(87286),l=n(18029),c=n(56023),u=n(43107),d=n(6995),h=n(97282);const p=["onChange","maxRows","minRows","style","value"];function f(e){return parseInt(e,10)||0}const g={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};const m=a.forwardRef((function(e,t){const{onChange:n,maxRows:o,minRows:s=1,style:m,value:y}=e,v=(0,r.A)(e,p),{current:b}=a.useRef(null!=y),x=a.useRef(null),w=(0,l.A)(t,x),A=a.useRef(null),S=a.useCallback((()=>{const t=x.current,n=(0,c.A)(t).getComputedStyle(t);if("0px"===n.width)return{outerHeightStyle:0,overflowing:!1};const r=A.current;r.style.width=n.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");const i=n.boxSizing,a=f(n.paddingBottom)+f(n.paddingTop),l=f(n.borderBottomWidth)+f(n.borderTopWidth),u=r.scrollHeight;r.value="x";const d=r.scrollHeight;let h=u;s&&(h=Math.max(Number(s)*d,h)),o&&(h=Math.min(Number(o)*d,h)),h=Math.max(h,d);return{outerHeightStyle:h+("border-box"===i?a+l:0),overflowing:Math.abs(h-u)<=1}}),[o,s,e.placeholder]),C=a.useCallback((()=>{const e=S();if(null==(t=e)||0===Object.keys(t).length||0===t.outerHeightStyle&&!t.overflowing)return;var t;const n=x.current;n.style.height=`${e.outerHeightStyle}px`,n.style.overflow=e.overflowing?"hidden":""}),[S]);(0,u.A)((()=>{const e=()=>{C()};let t;const n=(0,d.A)(e),r=x.current,i=(0,c.A)(r);let o;return i.addEventListener("resize",n),"undefined"!=typeof ResizeObserver&&(o=new ResizeObserver(e),o.observe(r)),()=>{n.clear(),cancelAnimationFrame(t),i.removeEventListener("resize",n),o&&o.disconnect()}}),[S,C]),(0,u.A)((()=>{C()}));return(0,h.jsxs)(a.Fragment,{children:[(0,h.jsx)("textarea",(0,i.A)({value:y,onChange:e=>{b||C(),n&&n(e)},ref:w,rows:s,style:m},v)),(0,h.jsx)("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:A,tabIndex:-1,style:(0,i.A)({},g,m,{paddingTop:0,paddingBottom:0})})]})}));var y=n(2665),v=n(32829),b=n(73336),x=n(2994),w=n(39230),A=n(58990),S=n(87507),C=n(19508),E=n(47258),_=n(65420),k=n(78790),T=n(38382);const O=function({styles:e,themeId:t,defaultTheme:n={}}){const r=(0,T.A)(n),i="function"==typeof e?e(t&&r[t]||r):e;return(0,h.jsx)(k.A,{styles:i})};var P=n(75947),I=n(38358);const M=function(e){return(0,h.jsx)(O,(0,i.A)({},e,{defaultTheme:P.A,themeId:I.A}))};var L=n(29421),R=n(8253);const j=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],F=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${(0,C.A)(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},D=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},N=(0,A.Ay)("div",{name:"MuiInputBase",slot:"Root",overridesResolver:F})((({theme:e,ownerState:t})=>(0,i.A)({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${R.A.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&(0,i.A)({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),z=(0,A.Ay)("input",{name:"MuiInputBase",slot:"Input",overridesResolver:D})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=(0,i.A)({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return(0,i.A)({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${R.A.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${R.A.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})})),V=(0,h.jsx)(M,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),B=a.forwardRef((function(e,t){var n;const l=(0,S.A)({props:e,name:"MuiInputBase"}),{"aria-describedby":c,autoComplete:u,autoFocus:d,className:p,components:f={},componentsProps:g={},defaultValue:A,disabled:k,disableInjectingGlobalStyles:T,endAdornment:O,fullWidth:P=!1,id:I,inputComponent:M="input",inputProps:F={},inputRef:D,maxRows:B,minRows:$,multiline:G=!1,name:U,onBlur:W,onChange:q,onClick:H,onFocus:Y,onKeyDown:K,onKeyUp:X,placeholder:Z,readOnly:J,renderSuffix:Q,rows:ee,slotProps:te={},slots:ne={},startAdornment:re,type:ie="text",value:oe}=l,ae=(0,r.A)(l,j),se=null!=F.value?F.value:oe,{current:le}=a.useRef(null!=se),ce=a.useRef(),ue=a.useCallback((e=>{0}),[]),de=(0,E.A)(ce,D,F.ref,ue),[he,pe]=a.useState(!1),fe=(0,w.A)();const ge=(0,b.A)({props:l,muiFormControl:fe,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ge.focused=fe?fe.focused:he,a.useEffect((()=>{!fe&&k&&he&&(pe(!1),W&&W())}),[fe,k,he,W]);const me=fe&&fe.onFilled,ye=fe&&fe.onEmpty,ve=a.useCallback((e=>{(0,L.lq)(e)?me&&me():ye&&ye()}),[me,ye]);(0,_.A)((()=>{le&&ve({value:se})}),[se,ve,le]);a.useEffect((()=>{ve(ce.current)}),[]);let be=M,xe=F;G&&"input"===be&&(xe=ee?(0,i.A)({type:void 0,minRows:ee,maxRows:ee},xe):(0,i.A)({type:void 0,maxRows:B,minRows:$},xe),be=m);a.useEffect((()=>{fe&&fe.setAdornedStart(Boolean(re))}),[fe,re]);const we=(0,i.A)({},l,{color:ge.color||"primary",disabled:ge.disabled,endAdornment:O,error:ge.error,focused:ge.focused,formControl:fe,fullWidth:P,hiddenLabel:ge.hiddenLabel,multiline:G,size:ge.size,startAdornment:re,type:ie}),Ae=(e=>{const{classes:t,color:n,disabled:r,error:i,endAdornment:o,focused:a,formControl:s,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:d,size:h,startAdornment:p,type:f}=e,g={root:["root",`color${(0,C.A)(n)}`,r&&"disabled",i&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",h&&"medium"!==h&&`size${(0,C.A)(h)}`,u&&"multiline",p&&"adornedStart",o&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===f&&"inputTypeSearch",u&&"inputMultiline","small"===h&&"inputSizeSmall",c&&"inputHiddenLabel",p&&"inputAdornedStart",o&&"inputAdornedEnd",d&&"readOnly"]};return(0,v.A)(g,R.g,t)})(we),Se=ne.root||f.Root||N,Ce=te.root||g.root||{},Ee=ne.input||f.Input||z;return xe=(0,i.A)({},xe,null!=(n=te.input)?n:g.input),(0,h.jsxs)(a.Fragment,{children:[!T&&V,(0,h.jsxs)(Se,(0,i.A)({},Ce,!(0,y.g)(Se)&&{ownerState:(0,i.A)({},we,Ce.ownerState)},{ref:t,onClick:e=>{ce.current&&e.currentTarget===e.target&&ce.current.focus(),H&&H(e)}},ae,{className:(0,s.A)(Ae.root,Ce.className,p,J&&"MuiInputBase-readOnly"),children:[re,(0,h.jsx)(x.A.Provider,{value:null,children:(0,h.jsx)(Ee,(0,i.A)({ownerState:we,"aria-invalid":ge.error,"aria-describedby":c,autoComplete:u,autoFocus:d,defaultValue:A,disabled:ge.disabled,id:I,onAnimationStart:e=>{ve("mui-auto-fill-cancel"===e.animationName?ce.current:{value:"x"})},name:U,placeholder:Z,readOnly:J,required:ge.required,rows:ee,value:se,onKeyDown:K,onKeyUp:X,type:ie},xe,!(0,y.g)(Ee)&&{as:be,ownerState:(0,i.A)({},we,xe.ownerState)},{ref:de,className:(0,s.A)(Ae.input,xe.className,J&&"MuiInputBase-readOnly"),onBlur:e=>{W&&W(e),F.onBlur&&F.onBlur(e),fe&&fe.onBlur?fe.onBlur(e):pe(!1)},onChange:(e,...t)=>{if(!le){const t=e.target||ce.current;if(null==t)throw new Error((0,o.A)(1));ve({value:t.value})}F.onChange&&F.onChange(e,...t),q&&q(e,...t)},onFocus:e=>{ge.disabled?e.stopPropagation():(Y&&Y(e),F.onFocus&&F.onFocus(e),fe&&fe.onFocus?fe.onFocus(e):pe(!0))}}))}),O,Q?Q((0,i.A)({},ge,{startAdornment:re})):null]}))]})}))},8253:(e,t,n)=>{"use strict";n.d(t,{A:()=>a,g:()=>o});var r=n(5007),i=n(24115);function o(e){return(0,i.Ay)("MuiInputBase",e)}const a=(0,r.A)("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"])},29421:(e,t,n)=>{"use strict";function r(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function i(e,t=!1){return e&&(r(e.value)&&""!==e.value||t&&r(e.defaultValue)&&""!==e.defaultValue)}function o(e){return e.startAdornment}n.d(t,{gr:()=>o,lq:()=>i})},5323:(e,t,n)=>{"use strict";n.d(t,{A:()=>_});var r=n(73342),i=n(51559),o=n(30538),a=n(32829),s=n(87286),l=n(73336),c=n(39230),u=n(19508),d=n(87507),h=n(58990),p=n(5007),f=n(24115);function g(e){return(0,f.Ay)("MuiFormLabel",e)}const m=(0,p.A)("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]);var y=n(97282);const v=["children","className","color","component","disabled","error","filled","focused","required"],b=(0,h.Ay)("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>(0,i.A)({},t.root,"secondary"===e.color&&t.colorSecondary,e.filled&&t.filled)})((({theme:e,ownerState:t})=>(0,i.A)({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${m.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${m.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${m.error}`]:{color:(e.vars||e).palette.error.main}}))),x=(0,h.Ay)("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${m.error}`]:{color:(e.vars||e).palette.error.main}}))),w=o.forwardRef((function(e,t){const n=(0,d.A)({props:e,name:"MuiFormLabel"}),{children:o,className:h,component:p="label"}=n,f=(0,r.A)(n,v),m=(0,c.A)(),w=(0,l.A)({props:n,muiFormControl:m,states:["color","required","focused","disabled","error","filled"]}),A=(0,i.A)({},n,{color:w.color||"primary",component:p,disabled:w.disabled,error:w.error,filled:w.filled,focused:w.focused,required:w.required}),S=(e=>{const{classes:t,color:n,focused:r,disabled:i,error:o,filled:s,required:l}=e,c={root:["root",`color${(0,u.A)(n)}`,i&&"disabled",o&&"error",s&&"filled",r&&"focused",l&&"required"],asterisk:["asterisk",o&&"error"]};return(0,a.A)(c,g,t)})(A);return(0,y.jsxs)(b,(0,i.A)({as:p,ownerState:A,className:(0,s.A)(S.root,h),ref:t},f,{children:[o,w.required&&(0,y.jsxs)(x,{ownerState:A,"aria-hidden":!0,className:S.asterisk,children:[" ","*"]})]}))}));var A=n(49968);function S(e){return(0,f.Ay)("MuiInputLabel",e)}(0,p.A)("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const C=["disableAnimation","margin","shrink","variant","className"],E=(0,h.Ay)(w,{shouldForwardProp:e=>(0,A.A)(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${m.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,"small"===n.size&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})((({theme:e,ownerState:t})=>(0,i.A)({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===t.size&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},"filled"===t.variant&&(0,i.A)({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===t.size&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&(0,i.A)({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===t.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===t.variant&&(0,i.A)({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===t.size&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"})))),_=o.forwardRef((function(e,t){const n=(0,d.A)({name:"MuiInputLabel",props:e}),{disableAnimation:o=!1,shrink:h,className:p}=n,f=(0,r.A)(n,C),g=(0,c.A)();let m=h;void 0===m&&g&&(m=g.filled||g.focused||g.adornedStart);const v=(0,l.A)({props:n,muiFormControl:g,states:["size","variant","required","focused"]}),b=(0,i.A)({},n,{disableAnimation:o,formControl:g,shrink:m,size:v.size,variant:v.variant,required:v.required,focused:v.focused}),x=(e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:s,variant:l,required:c}=e,d={root:["root",n&&"formControl",!s&&"animated",o&&"shrink",r&&"normal"!==r&&`size${(0,u.A)(r)}`,l],asterisk:[c&&"asterisk"]},h=(0,a.A)(d,S,t);return(0,i.A)({},t,h)})(b);return(0,y.jsx)(E,(0,i.A)({"data-shrink":m,ownerState:b,ref:t,className:(0,s.A)(x.root,p)},f,{classes:x}))}))},20553:(e,t,n)=>{"use strict";n.d(t,{A:()=>v});var r=n(73342),i=n(51559),o=n(30538),a=n(32829),s=n(43271),l=n(28566),c=n(58990),u=n(49968),d=n(87507),h=n(52441),p=n(97282);const f=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],g=(0,c.Ay)(l.Sh,{shouldForwardProp:e=>(0,u.A)(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...(0,l.WC)(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{let n="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),(0,i.A)({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${h.A.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${h.A.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${h.A.disabled}, .${h.A.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${h.A.disabled}:before`]:{borderBottomStyle:"dotted"}})})),m=(0,c.Ay)(l.f3,{name:"MuiInput",slot:"Input",overridesResolver:l.Oj})({}),y=o.forwardRef((function(e,t){var n,o,c,u;const y=(0,d.A)({props:e,name:"MuiInput"}),{disableUnderline:v,components:b={},componentsProps:x,fullWidth:w=!1,inputComponent:A="input",multiline:S=!1,slotProps:C,slots:E={},type:_="text"}=y,k=(0,r.A)(y,f),T=(e=>{const{classes:t,disableUnderline:n}=e,r={root:["root",!n&&"underline"],input:["input"]},o=(0,a.A)(r,h.B,t);return(0,i.A)({},t,o)})(y),O={root:{ownerState:{disableUnderline:v}}},P=(null!=C?C:x)?(0,s.A)(null!=C?C:x,O):O,I=null!=(n=null!=(o=E.root)?o:b.Root)?n:g,M=null!=(c=null!=(u=E.input)?u:b.Input)?c:m;return(0,p.jsx)(l.Ay,(0,i.A)({slots:{root:I,input:M},slotProps:P,fullWidth:w,inputComponent:A,multiline:S,ref:t,type:_},k,{classes:T}))}));y.muiName="Input";const v=y},52441:(e,t,n)=>{"use strict";n.d(t,{A:()=>l,B:()=>s});var r=n(51559),i=n(5007),o=n(24115),a=n(8253);function s(e){return(0,o.Ay)("MuiInput",e)}const l=(0,r.A)({},a.A,(0,i.A)("MuiInput",["root","underline","input"]))},64987:(e,t,n)=>{"use strict";n.d(t,{A:()=>E});var r=n(73342),i=n(51559),o=n(30538),a=n(87286),s=n(32829),l=n(19508),c=n(58990),u=n(87507),d=n(65741),h=n(47258),p=n(91031),f=n(5007),g=n(24115);function m(e){return(0,g.Ay)("MuiLink",e)}const y=(0,f.A)("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);var v=n(44197),b=n(59015);const x={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},w=({theme:e,ownerState:t})=>{const n=(e=>x[e]||e)(t.color),r=(0,v.Yn)(e,`palette.${n}`,!1)||t.color,i=(0,v.Yn)(e,`palette.${n}Channel`);return"vars"in e&&i?`rgba(${i} / 0.4)`:(0,b.X4)(r,.4)};var A=n(97282);const S=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],C=(0,c.Ay)(p.A,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${(0,l.A)(n.underline)}`],"button"===n.component&&t.button]}})((({theme:e,ownerState:t})=>(0,i.A)({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&(0,i.A)({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:w({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===t.component&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${y.focusVisible}`]:{outline:"auto"}}))),E=o.forwardRef((function(e,t){const n=(0,u.A)({props:e,name:"MuiLink"}),{className:c,color:p="primary",component:f="a",onBlur:g,onFocus:y,TypographyClasses:v,underline:b="always",variant:w="inherit",sx:E}=n,_=(0,r.A)(n,S),{isFocusVisibleRef:k,onBlur:T,onFocus:O,ref:P}=(0,d.A)(),[I,M]=o.useState(!1),L=(0,h.A)(t,P),R=(0,i.A)({},n,{color:p,component:f,focusVisible:I,underline:b,variant:w}),j=(e=>{const{classes:t,component:n,focusVisible:r,underline:i}=e,o={root:["root",`underline${(0,l.A)(i)}`,"button"===n&&"button",r&&"focusVisible"]};return(0,s.A)(o,m,t)})(R);return(0,A.jsx)(C,(0,i.A)({color:p,className:(0,a.A)(j.root,c),classes:v,component:f,onBlur:e=>{T(e),!1===k.current&&M(!1),g&&g(e)},onFocus:e=>{O(e),!0===k.current&&M(!0),y&&y(e)},ref:L,ownerState:R,variant:w,sx:[...Object.keys(x).includes(p)?[]:[{color:p}],...Array.isArray(E)?E:[E]]},_))}))},15517:(e,t,n)=>{"use strict";n.d(t,{A:()=>a,Y:()=>o});var r=n(5007),i=n(24115);function o(e){return(0,i.Ay)("MuiListItemButton",e)}const a=(0,r.A)("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"])},15444:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>M});var r=n(73342),i=n(51559),o=n(30538),a=n(87286),s=n(2665),l=n(32829),c=n(59015),u=n(58990),d=n(87507),h=n(92004),p=n(75361),f=n(65420),g=n(47258),m=n(21268),y=n(5007),v=n(24115);function b(e){return(0,v.Ay)("MuiListItem",e)}const x=(0,y.A)("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);var w=n(15517);function A(e){return(0,v.Ay)("MuiListItemSecondaryAction",e)}(0,y.A)("MuiListItemSecondaryAction",["root","disableGutters"]);var S=n(97282);const C=["className"],E=(0,u.Ay)("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})((({ownerState:e})=>(0,i.A)({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0}))),_=o.forwardRef((function(e,t){const n=(0,d.A)({props:e,name:"MuiListItemSecondaryAction"}),{className:s}=n,c=(0,r.A)(n,C),u=o.useContext(m.A),h=(0,i.A)({},n,{disableGutters:u.disableGutters}),p=(e=>{const{disableGutters:t,classes:n}=e,r={root:["root",t&&"disableGutters"]};return(0,l.A)(r,A,n)})(h);return(0,S.jsx)(E,(0,i.A)({className:(0,a.A)(p.root,s),ownerState:h,ref:t},c))}));_.muiName="ListItemSecondaryAction";const k=_,T=["className"],O=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],P=(0,u.Ay)("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]}})((({theme:e,ownerState:t})=>(0,i.A)({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&(0,i.A)({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${w.A.root}`]:{paddingRight:48}},{[`&.${x.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${x.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,c.X4)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${x.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,c.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${x.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},"flex-start"===t.alignItems&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${x.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,c.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,c.X4)(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48}))),I=(0,u.Ay)("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),M=o.forwardRef((function(e,t){const n=(0,d.A)({props:e,name:"MuiListItem"}),{alignItems:c="center",autoFocus:u=!1,button:y=!1,children:v,className:w,component:A,components:C={},componentsProps:E={},ContainerComponent:_="li",ContainerProps:{className:M}={},dense:L=!1,disabled:R=!1,disableGutters:j=!1,disablePadding:F=!1,divider:D=!1,focusVisibleClassName:N,secondaryAction:z,selected:V=!1,slotProps:B={},slots:$={}}=n,G=(0,r.A)(n.ContainerProps,T),U=(0,r.A)(n,O),W=o.useContext(m.A),q=o.useMemo((()=>({dense:L||W.dense||!1,alignItems:c,disableGutters:j})),[c,W.dense,L,j]),H=o.useRef(null);(0,f.A)((()=>{u&&H.current&&H.current.focus()}),[u]);const Y=o.Children.toArray(v),K=Y.length&&(0,p.A)(Y[Y.length-1],["ListItemSecondaryAction"]),X=(0,i.A)({},n,{alignItems:c,autoFocus:u,button:y,dense:q.dense,disabled:R,disableGutters:j,disablePadding:F,divider:D,hasSecondaryAction:K,selected:V}),Z=(e=>{const{alignItems:t,button:n,classes:r,dense:i,disabled:o,disableGutters:a,disablePadding:s,divider:c,hasSecondaryAction:u,selected:d}=e,h={root:["root",i&&"dense",!a&&"gutters",!s&&"padding",c&&"divider",o&&"disabled",n&&"button","flex-start"===t&&"alignItemsFlexStart",u&&"secondaryAction",d&&"selected"],container:["container"]};return(0,l.A)(h,b,r)})(X),J=(0,g.A)(H,t),Q=$.root||C.Root||P,ee=B.root||E.root||{},te=(0,i.A)({className:(0,a.A)(Z.root,ee.className,w),disabled:R},U);let ne=A||"li";return y&&(te.component=A||"div",te.focusVisibleClassName=(0,a.A)(x.focusVisible,N),ne=h.A),K?(ne=te.component||A?ne:"div","li"===_&&("li"===ne?ne="div":"li"===te.component&&(te.component="div")),(0,S.jsx)(m.A.Provider,{value:q,children:(0,S.jsxs)(I,(0,i.A)({as:_,className:(0,a.A)(Z.container,M),ref:J,ownerState:X},G,{children:[(0,S.jsx)(Q,(0,i.A)({},ee,!(0,s.g)(Q)&&{as:ne,ownerState:(0,i.A)({},X,ee.ownerState)},te,{children:Y})),Y.pop()]}))})):(0,S.jsx)(m.A.Provider,{value:q,children:(0,S.jsxs)(Q,(0,i.A)({},ee,{as:ne,ref:J},!(0,s.g)(Q)&&{ownerState:(0,i.A)({},X,ee.ownerState)},te,{children:[Y,z&&(0,S.jsx)(k,{children:z})]}))})}))},57029:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var r=n(73342),i=n(51559),o=n(30538),a=n(87286),s=n(32829),l=n(58990),c=n(87507),u=n(21268),d=n(5007),h=n(24115);function p(e){return(0,h.Ay)("MuiList",e)}(0,d.A)("MuiList",["root","padding","dense","subheader"]);var f=n(97282);const g=["children","className","component","dense","disablePadding","subheader"],m=(0,l.Ay)("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((({ownerState:e})=>(0,i.A)({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),y=o.forwardRef((function(e,t){const n=(0,c.A)({props:e,name:"MuiList"}),{children:l,className:d,component:h="ul",dense:y=!1,disablePadding:v=!1,subheader:b}=n,x=(0,r.A)(n,g),w=o.useMemo((()=>({dense:y})),[y]),A=(0,i.A)({},n,{component:h,dense:y,disablePadding:v}),S=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e,o={root:["root",!n&&"padding",r&&"dense",i&&"subheader"]};return(0,s.A)(o,p,t)})(A);return(0,f.jsx)(u.A.Provider,{value:w,children:(0,f.jsxs)(m,(0,i.A)({as:h,className:(0,a.A)(S.root,d),ref:t,ownerState:A},x,{children:[b,l]}))})}))},21268:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(30538).createContext({})},70430:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var r=n(51559),i=n(73342),o=n(30538),a=(n(91272),n(8018)),s=n(57029);const l=n(38935).A;var c=n(47258),u=n(65420),d=n(97282);const h=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function p(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function f(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function g(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function m(e,t,n,r,i,o){let a=!1,s=i(e,t,!!t&&n);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&g(s,o)&&!t)return s.focus(),!0;s=i(e,s,n)}return!1}const y=o.forwardRef((function(e,t){const{actions:n,autoFocus:y=!1,autoFocusItem:v=!1,children:b,className:x,disabledItemsFocusable:w=!1,disableListWrap:A=!1,onKeyDown:S,variant:C="selectedMenu"}=e,E=(0,i.A)(e,h),_=o.useRef(null),k=o.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});(0,u.A)((()=>{y&&_.current.focus()}),[y]),o.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!_.current.style.width;if(e.clientHeight<_.current.clientHeight&&n){const n=`${l((0,a.A)(e))}px`;_.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,_.current.style.width=`calc(100% + ${n})`}return _.current}})),[]);const T=(0,c.A)(_,t);let O=-1;o.Children.forEach(b,((e,t)=>{o.isValidElement(e)?(e.props.disabled||("selectedMenu"===C&&e.props.selected||-1===O)&&(O=t),O===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(O+=1,O>=b.length&&(O=-1))):O===t&&(O+=1,O>=b.length&&(O=-1))}));const P=o.Children.map(b,((e,t)=>{if(t===O){const t={};return v&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===C&&(t.tabIndex=0),o.cloneElement(e,t)}return e}));return(0,d.jsx)(s.A,(0,r.A)({role:"menu",ref:T,className:x,onKeyDown:e=>{const t=_.current,n=e.key,r=(0,a.A)(t).activeElement;if("ArrowDown"===n)e.preventDefault(),m(t,r,A,w,p);else if("ArrowUp"===n)e.preventDefault(),m(t,r,A,w,f);else if("Home"===n)e.preventDefault(),m(t,null,A,w,p);else if("End"===n)e.preventDefault(),m(t,null,A,w,f);else if(1===n.length){const i=k.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&&g(r,i);i.previousKeyMatched&&(s||m(t,r,!1,w,p,i))?e.preventDefault():i.previousKeyMatched=!1}S&&S(e)},tabIndex:y?0:-1},E,{children:P}))}))},92595:(e,t,n)=>{"use strict";n.d(t,{A:()=>_});var r=n(51559),i=n(73342),o=n(30538),a=(n(91272),n(87286)),s=n(32829),l=n(12277),c=n(39160),u=n(70430),d=n(87699),h=n(58990),p=n(49968),f=n(87507),g=n(5007),m=n(24115);function y(e){return(0,m.Ay)("MuiMenu",e)}(0,g.A)("MuiMenu",["root","paper","list"]);var v=n(97282);const b=["onEntering"],x=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],w={vertical:"top",horizontal:"right"},A={vertical:"top",horizontal:"left"},S=(0,h.Ay)(d.Ay,{shouldForwardProp:e=>(0,p.A)(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),C=(0,h.Ay)(d.IJ,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),E=(0,h.Ay)(u.A,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),_=o.forwardRef((function(e,t){var n,u;const d=(0,f.A)({props:e,name:"MuiMenu"}),{autoFocus:h=!0,children:p,className:g,disableAutoFocusItem:m=!1,MenuListProps:_={},onClose:k,open:T,PaperProps:O={},PopoverClasses:P,transitionDuration:I="auto",TransitionProps:{onEntering:M}={},variant:L="selectedMenu",slots:R={},slotProps:j={}}=d,F=(0,i.A)(d.TransitionProps,b),D=(0,i.A)(d,x),N=(0,c.I)(),z=(0,r.A)({},d,{autoFocus:h,disableAutoFocusItem:m,MenuListProps:_,onEntering:M,PaperProps:O,transitionDuration:I,TransitionProps:F,variant:L}),V=(e=>{const{classes:t}=e;return(0,s.A)({root:["root"],paper:["paper"],list:["list"]},y,t)})(z),B=h&&!m&&T,$=o.useRef(null);let G=-1;o.Children.map(p,((e,t)=>{o.isValidElement(e)&&(e.props.disabled||("selectedMenu"===L&&e.props.selected||-1===G)&&(G=t))}));const U=null!=(n=R.paper)?n:C,W=null!=(u=j.paper)?u:O,q=(0,l.Q)({elementType:R.root,externalSlotProps:j.root,ownerState:z,className:[V.root,g]}),H=(0,l.Q)({elementType:U,externalSlotProps:W,ownerState:z,className:V.paper});return(0,v.jsx)(S,(0,r.A)({onClose:k,anchorOrigin:{vertical:"bottom",horizontal:N?"right":"left"},transformOrigin:N?w:A,slots:{paper:U,root:R.root},slotProps:{root:q,paper:H},open:T,ref:t,transitionDuration:I,TransitionProps:(0,r.A)({onEntering:(e,t)=>{$.current&&$.current.adjustStyleForScrollbar(e,{direction:N?"rtl":"ltr"}),M&&M(e,t)}},F),ownerState:z},D,{classes:P,children:(0,v.jsx)(E,(0,r.A)({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),k&&k(e,"tabKeyDown"))},actions:$,autoFocus:h&&(-1===G||m),autoFocusItem:B,variant:L},_,{className:(0,a.A)(V.list,_.className),children:p}))}))}))},13027:(e,t,n)=>{"use strict";n.d(t,{A:()=>j});var r=n(73342),i=n(51559),o=n(30538),a=n(87286),s=n(12277),l=n(18029),c=n(74311),u=n(18605),d=n(96339),h=n(75188),p=n(56023),f=n(38935);function g(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function m(e){return parseInt((0,p.A)(e).getComputedStyle(e).paddingRight,10)||0}function y(e,t,n,r,i){const o=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===o.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&g(e,i)}))}function v(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function b(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=(0,c.A)(e);return t.body===e?(0,p.A)(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=(0,f.A)((0,c.A)(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${m(r)+e}px`;const t=(0,c.A)(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${m(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=(0,c.A)(r).body;else{const t=r.parentElement,n=(0,p.A)(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}const x=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&g(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);y(t,e.mount,e.modalRef,r,!0);const i=v(this.containers,(e=>e.container===t));return-1!==i?(this.containers[i].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=v(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=b(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=v(this.containers,(t=>-1!==t.modals.indexOf(e))),i=this.containers[r];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(n,1),0===i.modals.length)i.restore&&i.restore(),e.modalRef&&g(e.modalRef,t),y(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=i.modals[i.modals.length-1];e.modalRef&&g(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function w(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:a=x,closeAfterTransition:s=!1,onTransitionEnter:p,onTransitionExited:f,children:m,onClose:y,open:v,rootRef:b}=e,w=o.useRef({}),A=o.useRef(null),S=o.useRef(null),C=(0,l.A)(S,b),[E,_]=o.useState(!v),k=function(e){return!!e&&e.props.hasOwnProperty("in")}(m);let T=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(T=!1);const O=()=>(w.current.modalRef=S.current,w.current.mount=A.current,w.current),P=()=>{a.mount(O(),{disableScrollLock:r}),S.current&&(S.current.scrollTop=0)},I=(0,u.A)((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||(0,c.A)(A.current).body;a.add(O(),e),S.current&&P()})),M=o.useCallback((()=>a.isTopModal(O())),[a]),L=(0,u.A)((e=>{A.current=e,e&&(v&&M()?P():S.current&&g(S.current,T))})),R=o.useCallback((()=>{a.remove(O(),T)}),[T,a]);o.useEffect((()=>()=>{R()}),[R]),o.useEffect((()=>{v?I():k&&s||R()}),[v,R,k,s,I]);const j=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&M()&&(n||(t.stopPropagation(),y&&y(t,"escapeKeyDown")))},F=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&y&&y(t,"backdropClick")};return{getRootProps:(t={})=>{const n=(0,h.h)(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=(0,i.A)({},n,t);return(0,i.A)({role:"presentation"},r,{onKeyDown:j(r),ref:C})},getBackdropProps:(e={})=>{const t=e;return(0,i.A)({"aria-hidden":!0},t,{onClick:F(t),open:v})},getTransitionProps:()=>({onEnter:(0,d.A)((()=>{_(!1),p&&p()}),null==m?void 0:m.props.onEnter),onExited:(0,d.A)((()=>{_(!0),f&&f(),s&&R()}),null==m?void 0:m.props.onExited)}),rootRef:C,portalRef:L,isTopModal:M,exited:E,hasTransition:k}}var A=n(32829),S=n(48265),C=n(45583),E=n(58990),_=n(87507),k=n(94653),T=n(5007),O=n(24115);function P(e){return(0,O.Ay)("MuiModal",e)}(0,T.A)("MuiModal",["root","hidden","backdrop"]);var I=n(97282);const M=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],L=(0,E.Ay)("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>(0,i.A)({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),R=(0,E.Ay)(k.A,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),j=o.forwardRef((function(e,t){var n,l,c,u,d,h;const p=(0,_.A)({name:"MuiModal",props:e}),{BackdropComponent:f=R,BackdropProps:g,className:m,closeAfterTransition:y=!1,children:v,container:b,component:x,components:E={},componentsProps:k={},disableAutoFocus:T=!1,disableEnforceFocus:O=!1,disableEscapeKeyDown:j=!1,disablePortal:F=!1,disableRestoreFocus:D=!1,disableScrollLock:N=!1,hideBackdrop:z=!1,keepMounted:V=!1,onBackdropClick:B,open:$,slotProps:G,slots:U}=p,W=(0,r.A)(p,M),q=(0,i.A)({},p,{closeAfterTransition:y,disableAutoFocus:T,disableEnforceFocus:O,disableEscapeKeyDown:j,disablePortal:F,disableRestoreFocus:D,disableScrollLock:N,hideBackdrop:z,keepMounted:V}),{getRootProps:H,getBackdropProps:Y,getTransitionProps:K,portalRef:X,isTopModal:Z,exited:J,hasTransition:Q}=w((0,i.A)({},q,{rootRef:t})),ee=(0,i.A)({},q,{exited:J}),te=(e=>{const{open:t,exited:n,classes:r}=e,i={root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]};return(0,A.A)(i,P,r)})(ee),ne={};if(void 0===v.props.tabIndex&&(ne.tabIndex="-1"),Q){const{onEnter:e,onExited:t}=K();ne.onEnter=e,ne.onExited=t}const re=null!=(n=null!=(l=null==U?void 0:U.root)?l:E.Root)?n:L,ie=null!=(c=null!=(u=null==U?void 0:U.backdrop)?u:E.Backdrop)?c:f,oe=null!=(d=null==G?void 0:G.root)?d:k.root,ae=null!=(h=null==G?void 0:G.backdrop)?h:k.backdrop,se=(0,s.Q)({elementType:re,externalSlotProps:oe,externalForwardedProps:W,getSlotProps:H,additionalProps:{ref:t,as:x},ownerState:ee,className:(0,a.A)(m,null==oe?void 0:oe.className,null==te?void 0:te.root,!ee.open&&ee.exited&&(null==te?void 0:te.hidden))}),le=(0,s.Q)({elementType:ie,externalSlotProps:ae,additionalProps:g,getSlotProps:e=>Y((0,i.A)({},e,{onClick:t=>{B&&B(t),null!=e&&e.onClick&&e.onClick(t)}})),className:(0,a.A)(null==ae?void 0:ae.className,null==g?void 0:g.className,null==te?void 0:te.backdrop),ownerState:ee});return V||$||Q&&!J?(0,I.jsx)(C.Z,{ref:X,container:b,disablePortal:F,children:(0,I.jsxs)(re,(0,i.A)({},se,{children:[!z&&f?(0,I.jsx)(ie,(0,i.A)({},le)):null,(0,I.jsx)(S.s,{disableEnforceFocus:O,disableAutoFocus:T,disableRestoreFocus:D,isEnabled:Z,open:$,children:o.cloneElement(v,ne)})]}))}):null}))},64049:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>v,Ku:()=>f,XV:()=>m});var r=n(73342),i=n(51559),o=n(30538),a=n(87286),s=n(32829),l=n(19508),c=n(61165),u=n(58990),d=n(49968),h=n(97282);const p=["className","disabled","error","IconComponent","inputRef","variant"],f=({ownerState:e,theme:t})=>(0,i.A)({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":(0,i.A)({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:"light"===t.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${c.A.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===e.variant&&{"&&&":{paddingRight:32}},"outlined"===e.variant&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),g=(0,u.Ay)("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:d.A,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${c.A.multiple}`]:t.multiple}]}})(f),m=({ownerState:e,theme:t})=>(0,i.A)({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${c.A.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),y=(0,u.Ay)("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${(0,l.A)(n.variant)}`],n.open&&t.iconOpen]}})(m),v=o.forwardRef((function(e,t){const{className:n,disabled:u,error:d,IconComponent:f,inputRef:m,variant:v="standard"}=e,b=(0,r.A)(e,p),x=(0,i.A)({},e,{disabled:u,variant:v,error:d}),w=(e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:o,error:a}=e,u={select:["select",n,r&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${(0,l.A)(n)}`,o&&"iconOpen",r&&"disabled"]};return(0,s.A)(u,c.w,t)})(x);return(0,h.jsxs)(o.Fragment,{children:[(0,h.jsx)(g,(0,i.A)({ownerState:x,className:(0,a.A)(w.select,n),disabled:u,ref:m||t},b)),e.multiple?null:(0,h.jsx)(y,{as:f,ownerState:x,className:w.icon})]})}))},61165:(e,t,n)=>{"use strict";n.d(t,{A:()=>a,w:()=>o});var r=n(5007),i=n(24115);function o(e){return(0,i.Ay)("MuiNativeSelect",e)}const a=(0,r.A)("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"])},32951:(e,t,n)=>{"use strict";n.d(t,{A:()=>C});var r,i=n(73342),o=n(51559),a=n(30538),s=n(32829),l=n(58990),c=n(49968),u=n(97282);const d=["children","classes","className","label","notched"],h=(0,l.Ay)("fieldset",{shouldForwardProp:c.A})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),p=(0,l.Ay)("legend",{shouldForwardProp:c.A})((({ownerState:e,theme:t})=>(0,o.A)({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&(0,o.A)({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}))));var f=n(39230),g=n(73336),m=n(44053),y=n(28566),v=n(87507);const b=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],x=(0,l.Ay)(y.Sh,{shouldForwardProp:e=>(0,c.A)(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:y.WC})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return(0,o.A)({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${m.A.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${m.A.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${m.A.focused} .${m.A.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${m.A.error} .${m.A.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${m.A.disabled} .${m.A.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&(0,o.A)({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),w=(0,l.Ay)((function(e){const{className:t,label:n,notched:a}=e,s=(0,i.A)(e,d),l=null!=n&&""!==n,c=(0,o.A)({},e,{notched:a,withLabel:l});return(0,u.jsx)(h,(0,o.A)({"aria-hidden":!0,className:t,ownerState:c},s,{children:(0,u.jsx)(p,{ownerState:c,children:l?(0,u.jsx)("span",{children:n}):r||(r=(0,u.jsx)("span",{className:"notranslate",children:"​"}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})((({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),A=(0,l.Ay)(y.f3,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:y.Oj})((({theme:e,ownerState:t})=>(0,o.A)({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0}))),S=a.forwardRef((function(e,t){var n,r,l,c,d;const h=(0,v.A)({props:e,name:"MuiOutlinedInput"}),{components:p={},fullWidth:S=!1,inputComponent:C="input",label:E,multiline:_=!1,notched:k,slots:T={},type:O="text"}=h,P=(0,i.A)(h,b),I=(e=>{const{classes:t}=e,n=(0,s.A)({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},m.v,t);return(0,o.A)({},t,n)})(h),M=(0,f.A)(),L=(0,g.A)({props:h,muiFormControl:M,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),R=(0,o.A)({},h,{color:L.color||"primary",disabled:L.disabled,error:L.error,focused:L.focused,formControl:M,fullWidth:S,hiddenLabel:L.hiddenLabel,multiline:_,size:L.size,type:O}),j=null!=(n=null!=(r=T.root)?r:p.Root)?n:x,F=null!=(l=null!=(c=T.input)?c:p.Input)?l:A;return(0,u.jsx)(y.Ay,(0,o.A)({slots:{root:j,input:F},renderSuffix:e=>(0,u.jsx)(w,{ownerState:R,className:I.notchedOutline,label:null!=E&&""!==E&&L.required?d||(d=(0,u.jsxs)(a.Fragment,{children:[E," ","*"]})):E,notched:void 0!==k?k:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:S,inputComponent:C,multiline:_,ref:t,type:O},P,{classes:(0,o.A)({},I,{notchedOutline:null})}))}));S.muiName="Input";const C=S},44053:(e,t,n)=>{"use strict";n.d(t,{A:()=>l,v:()=>s});var r=n(51559),i=n(5007),o=n(24115),a=n(8253);function s(e){return(0,o.Ay)("MuiOutlinedInput",e)}const l=(0,r.A)({},a.A,(0,i.A)("MuiOutlinedInput",["root","notchedOutline","input"]))},8088:(e,t,n)=>{"use strict";n.d(t,{A:()=>v});var r=n(73342),i=n(51559),o=n(30538),a=n(87286),s=n(32829),l=n(59015),c=n(58990);const u=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};var d=n(87507),h=n(5007),p=n(24115);function f(e){return(0,p.Ay)("MuiPaper",e)}(0,h.A)("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);var g=n(97282);const m=["className","component","elevation","square","variant"],y=(0,c.Ay)("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((({theme:e,ownerState:t})=>{var n;return(0,i.A)({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&(0,i.A)({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${(0,l.X4)("#fff",u(t.elevation))}, ${(0,l.X4)("#fff",u(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))})),v=o.forwardRef((function(e,t){const n=(0,d.A)({props:e,name:"MuiPaper"}),{className:o,component:l="div",elevation:c=1,square:u=!1,variant:h="elevation"}=n,p=(0,r.A)(n,m),v=(0,i.A)({},n,{component:l,elevation:c,square:u,variant:h}),b=(e=>{const{square:t,elevation:n,variant:r,classes:i}=e,o={root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]};return(0,s.A)(o,f,i)})(v);return(0,g.jsx)(y,(0,i.A)({as:l,ownerState:v,className:(0,a.A)(b.root,o),ref:t},p))}))},87699:(e,t,n)=>{"use strict";n.d(t,{IJ:()=>I,Ay:()=>M});var r=n(51559),i=n(73342),o=n(30538),a=n(87286),s=n(12277),l=n(2665),c=n(32829),u=n(58990),d=n(87507),h=n(44545),p=n(8018),f=n(38579),g=n(47258),m=n(36797),y=n(13027),v=n(8088),b=n(5007),x=n(24115);function w(e){return(0,x.Ay)("MuiPopover",e)}(0,b.A)("MuiPopover",["root","paper"]);var A=n(97282);const S=["onEntering"],C=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],E=["slotProps"];function _(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function k(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function T(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function O(e){return"function"==typeof e?e():e}const P=(0,u.Ay)(y.A,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),I=(0,u.Ay)(v.A,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),M=o.forwardRef((function(e,t){var n,u,y;const v=(0,d.A)({props:e,name:"MuiPopover"}),{action:b,anchorEl:x,anchorOrigin:M={vertical:"top",horizontal:"left"},anchorPosition:L,anchorReference:R="anchorEl",children:j,className:F,container:D,elevation:N=8,marginThreshold:z=16,open:V,PaperProps:B={},slots:$,slotProps:G,transformOrigin:U={vertical:"top",horizontal:"left"},TransitionComponent:W=m.A,transitionDuration:q="auto",TransitionProps:{onEntering:H}={},disableScrollLock:Y=!1}=v,K=(0,i.A)(v.TransitionProps,S),X=(0,i.A)(v,C),Z=null!=(n=null==G?void 0:G.paper)?n:B,J=o.useRef(),Q=(0,g.A)(J,Z.ref),ee=(0,r.A)({},v,{anchorOrigin:M,anchorReference:R,elevation:N,marginThreshold:z,externalPaperSlotProps:Z,transformOrigin:U,TransitionComponent:W,transitionDuration:q,TransitionProps:K}),te=(e=>{const{classes:t}=e;return(0,c.A)({root:["root"],paper:["paper"]},w,t)})(ee),ne=o.useCallback((()=>{if("anchorPosition"===R)return L;const e=O(x),t=(e&&1===e.nodeType?e:(0,p.A)(J.current).body).getBoundingClientRect();return{top:t.top+_(t,M.vertical),left:t.left+k(t,M.horizontal)}}),[x,M.horizontal,M.vertical,L,R]),re=o.useCallback((e=>({vertical:_(e,U.vertical),horizontal:k(e,U.horizontal)})),[U.horizontal,U.vertical]),ie=o.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=re(t);if("none"===R)return{top:null,left:null,transformOrigin:T(n)};const r=ne();let i=r.top-n.vertical,o=r.left-n.horizontal;const a=i+t.height,s=o+t.width,l=(0,f.A)(O(x)),c=l.innerHeight-z,u=l.innerWidth-z;if(null!==z&&ic){const e=a-c;i-=e,n.vertical+=e}if(null!==z&&ou){const e=s-u;o-=e,n.horizontal+=e}return{top:`${Math.round(i)}px`,left:`${Math.round(o)}px`,transformOrigin:T(n)}}),[x,R,ne,re,z]),[oe,ae]=o.useState(V),se=o.useCallback((()=>{const e=J.current;if(!e)return;const t=ie(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,ae(!0)}),[ie]);o.useEffect((()=>(Y&&window.addEventListener("scroll",se),()=>window.removeEventListener("scroll",se))),[x,Y,se]);o.useEffect((()=>{V&&se()})),o.useImperativeHandle(b,(()=>V?{updatePosition:()=>{se()}}:null),[V,se]),o.useEffect((()=>{if(!V)return;const e=(0,h.A)((()=>{se()})),t=(0,f.A)(x);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[x,V,se]);let le=q;"auto"!==q||W.muiSupportAuto||(le=void 0);const ce=D||(x?(0,p.A)(O(x)).body:void 0),ue=null!=(u=null==$?void 0:$.root)?u:P,de=null!=(y=null==$?void 0:$.paper)?y:I,he=(0,s.Q)({elementType:de,externalSlotProps:(0,r.A)({},Z,{style:oe?Z.style:(0,r.A)({},Z.style,{opacity:0})}),additionalProps:{elevation:N,ref:Q},ownerState:ee,className:(0,a.A)(te.paper,null==Z?void 0:Z.className)}),pe=(0,s.Q)({elementType:ue,externalSlotProps:(null==G?void 0:G.root)||{},externalForwardedProps:X,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:ce,open:V},ownerState:ee,className:(0,a.A)(te.root,F)}),{slotProps:fe}=pe,ge=(0,i.A)(pe,E);return(0,A.jsx)(ue,(0,r.A)({},ge,!(0,l.g)(ue)&&{slotProps:fe,disableScrollLock:Y},{children:(0,A.jsx)(W,(0,r.A)({appear:!0,in:V,onEntering:(e,t)=>{H&&H(e,t),se()},onExited:()=>{ae(!1)},timeout:le},K,{children:(0,A.jsx)(de,(0,r.A)({},he,{children:j}))}))}))}))},47059:(e,t,n)=>{"use strict";n.d(t,{A:()=>He});var r=n(51559),i=n(73342),o=n(30538),a=n(18029),s=n(43107),l=n(74311);function c(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function u(e){return e instanceof c(e).Element||e instanceof Element}function d(e){return e instanceof c(e).HTMLElement||e instanceof HTMLElement}function h(e){return"undefined"!=typeof ShadowRoot&&(e instanceof c(e).ShadowRoot||e instanceof ShadowRoot)}var p=Math.max,f=Math.min,g=Math.round;function m(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function y(){return!/^((?!chrome|android).)*safari/i.test(m())}function v(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&d(e)&&(i=e.offsetWidth>0&&g(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&g(r.height)/e.offsetHeight||1);var a=(u(e)?c(e):window).visualViewport,s=!y()&&n,l=(r.left+(s&&a?a.offsetLeft:0))/i,h=(r.top+(s&&a?a.offsetTop:0))/o,p=r.width/i,f=r.height/o;return{width:p,height:f,top:h,right:l+p,bottom:h+f,left:l,x:l,y:h}}function b(e){var t=c(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function x(e){return e?(e.nodeName||"").toLowerCase():null}function w(e){return((u(e)?e.ownerDocument:e.document)||window.document).documentElement}function A(e){return v(w(e)).left+b(e).scrollLeft}function S(e){return c(e).getComputedStyle(e)}function C(e){var t=S(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function E(e,t,n){void 0===n&&(n=!1);var r,i,o=d(t),a=d(t)&&function(e){var t=e.getBoundingClientRect(),n=g(t.width)/e.offsetWidth||1,r=g(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),s=w(t),l=v(e,a,n),u={scrollLeft:0,scrollTop:0},h={x:0,y:0};return(o||!o&&!n)&&(("body"!==x(t)||C(s))&&(u=(r=t)!==c(r)&&d(r)?{scrollLeft:(i=r).scrollLeft,scrollTop:i.scrollTop}:b(r)),d(t)?((h=v(t,!0)).x+=t.clientLeft,h.y+=t.clientTop):s&&(h.x=A(s))),{x:l.left+u.scrollLeft-h.x,y:l.top+u.scrollTop-h.y,width:l.width,height:l.height}}function _(e){var t=v(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function k(e){return"html"===x(e)?e:e.assignedSlot||e.parentNode||(h(e)?e.host:null)||w(e)}function T(e){return["html","body","#document"].indexOf(x(e))>=0?e.ownerDocument.body:d(e)&&C(e)?e:T(k(e))}function O(e,t){var n;void 0===t&&(t=[]);var r=T(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=c(r),a=i?[o].concat(o.visualViewport||[],C(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(O(k(a)))}function P(e){return["table","td","th"].indexOf(x(e))>=0}function I(e){return d(e)&&"fixed"!==S(e).position?e.offsetParent:null}function M(e){for(var t=c(e),n=I(e);n&&P(n)&&"static"===S(n).position;)n=I(n);return n&&("html"===x(n)||"body"===x(n)&&"static"===S(n).position)?t:n||function(e){var t=/firefox/i.test(m());if(/Trident/i.test(m())&&d(e)&&"fixed"===S(e).position)return null;var n=k(e);for(h(n)&&(n=n.host);d(n)&&["html","body"].indexOf(x(n))<0;){var r=S(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var L="top",R="bottom",j="right",F="left",D="auto",N=[L,R,j,F],z="start",V="end",B="clippingParents",$="viewport",G="popper",U="reference",W=N.reduce((function(e,t){return e.concat([t+"-"+z,t+"-"+V])}),[]),q=[].concat(N,[D]).reduce((function(e,t){return e.concat([t,t+"-"+z,t+"-"+V])}),[]),H=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Y(e){var t=new Map,n=new Set,r=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||i(e)})),r}var K={placement:"bottom",modifiers:[],strategy:"absolute"};function X(){for(var e=arguments.length,t=new Array(e),n=0;n=0?"x":"y"}function ne(e){var t,n=e.reference,r=e.element,i=e.placement,o=i?Q(i):null,a=i?ee(i):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(o){case L:t={x:s,y:n.y-r.height};break;case R:t={x:s,y:n.y+n.height};break;case j:t={x:n.x+n.width,y:l};break;case F:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=o?te(o):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case z:t[c]=t[c]-(n[u]/2-r[u]/2);break;case V:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}var re={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ie(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,h=e.isFixed,p=a.x,f=void 0===p?0:p,m=a.y,y=void 0===m?0:m,v="function"==typeof d?d({x:f,y}):{x:f,y};f=v.x,y=v.y;var b=a.hasOwnProperty("x"),x=a.hasOwnProperty("y"),A=F,C=L,E=window;if(u){var _=M(n),k="clientHeight",T="clientWidth";if(_===c(n)&&"static"!==S(_=w(n)).position&&"absolute"===s&&(k="scrollHeight",T="scrollWidth"),i===L||(i===F||i===j)&&o===V)C=R,y-=(h&&_===E&&E.visualViewport?E.visualViewport.height:_[k])-r.height,y*=l?1:-1;if(i===F||(i===L||i===R)&&o===V)A=j,f-=(h&&_===E&&E.visualViewport?E.visualViewport.width:_[T])-r.width,f*=l?1:-1}var O,P=Object.assign({position:s},u&&re),I=!0===d?function(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:g(n*i)/i||0,y:g(r*i)/i||0}}({x:f,y},c(n)):{x:f,y};return f=I.x,y=I.y,l?Object.assign({},P,((O={})[C]=x?"0":"",O[A]=b?"0":"",O.transform=(E.devicePixelRatio||1)<=1?"translate("+f+"px, "+y+"px)":"translate3d("+f+"px, "+y+"px, 0)",O)):Object.assign({},P,((t={})[C]=x?y+"px":"",t[A]=b?f+"px":"",t.transform="",t))}const oe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=void 0===i?[0,0]:i,a=q.reduce((function(e,n){return e[n]=function(e,t,n){var r=Q(e),i=[F,L].indexOf(r)>=0?-1:1,o="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[F,j].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,o),e}),{}),s=a[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}};var ae={left:"right",right:"left",bottom:"top",top:"bottom"};function se(e){return e.replace(/left|right|bottom|top/g,(function(e){return ae[e]}))}var le={start:"end",end:"start"};function ce(e){return e.replace(/start|end/g,(function(e){return le[e]}))}function ue(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&h(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function de(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function he(e,t,n){return t===$?de(function(e,t){var n=c(e),r=w(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var u=y();(u||!u&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+A(e),y:l}}(e,n)):u(t)?function(e,t){var n=v(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):de(function(e){var t,n=w(e),r=b(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=p(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=p(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+A(e),l=-r.scrollTop;return"rtl"===S(i||n).direction&&(s+=p(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}(w(e)))}function pe(e,t,n,r){var i="clippingParents"===t?function(e){var t=O(k(e)),n=["absolute","fixed"].indexOf(S(e).position)>=0&&d(e)?M(e):e;return u(n)?t.filter((function(e){return u(e)&&ue(e,n)&&"body"!==x(e)})):[]}(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce((function(t,n){var i=he(e,n,r);return t.top=p(i.top,t.top),t.right=f(i.right,t.right),t.bottom=f(i.bottom,t.bottom),t.left=p(i.left,t.left),t}),he(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function fe(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function ge(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function me(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=void 0===r?e.placement:r,o=n.strategy,a=void 0===o?e.strategy:o,s=n.boundary,l=void 0===s?B:s,c=n.rootBoundary,d=void 0===c?$:c,h=n.elementContext,p=void 0===h?G:h,f=n.altBoundary,g=void 0!==f&&f,m=n.padding,y=void 0===m?0:m,b=fe("number"!=typeof y?y:ge(y,N)),x=p===G?U:G,A=e.rects.popper,S=e.elements[g?x:p],C=pe(u(S)?S:S.contextElement||w(e.elements.popper),l,d,a),E=v(e.elements.reference),_=ne({reference:E,element:A,strategy:"absolute",placement:i}),k=de(Object.assign({},A,_)),T=p===G?k:E,O={top:C.top-T.top+b.top,bottom:T.bottom-C.bottom+b.bottom,left:C.left-T.left+b.left,right:T.right-C.right+b.right},P=e.modifiersData.offset;if(p===G&&P){var I=P[i];Object.keys(O).forEach((function(e){var t=[j,R].indexOf(e)>=0?1:-1,n=[L,R].indexOf(e)>=0?"y":"x";O[e]+=I[n]*t}))}return O}function ye(e,t,n){return p(e,f(t,n))}const ve={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0!==a&&a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,h=n.tether,g=void 0===h||h,m=n.tetherOffset,y=void 0===m?0:m,v=me(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),b=Q(t.placement),x=ee(t.placement),w=!x,A=te(b),S="x"===A?"y":"x",C=t.modifiersData.popperOffsets,E=t.rects.reference,k=t.rects.popper,T="function"==typeof y?y(Object.assign({},t.rects,{placement:t.placement})):y,O="number"==typeof T?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),P=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,I={x:0,y:0};if(C){if(o){var D,N="y"===A?L:F,V="y"===A?R:j,B="y"===A?"height":"width",$=C[A],G=$+v[N],U=$-v[V],W=g?-k[B]/2:0,q=x===z?E[B]:k[B],H=x===z?-k[B]:-E[B],Y=t.elements.arrow,K=g&&Y?_(Y):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Z=X[N],J=X[V],ne=ye(0,E[B],K[B]),re=w?E[B]/2-W-ne-Z-O.mainAxis:q-ne-Z-O.mainAxis,ie=w?-E[B]/2+W+ne+J+O.mainAxis:H+ne+J+O.mainAxis,oe=t.elements.arrow&&M(t.elements.arrow),ae=oe?"y"===A?oe.clientTop||0:oe.clientLeft||0:0,se=null!=(D=null==P?void 0:P[A])?D:0,le=$+ie-se,ce=ye(g?f(G,$+re-se-ae):G,$,g?p(U,le):U);C[A]=ce,I[A]=ce-$}if(s){var ue,de="x"===A?L:F,he="x"===A?R:j,pe=C[S],fe="y"===S?"height":"width",ge=pe+v[de],ve=pe-v[he],be=-1!==[L,F].indexOf(b),xe=null!=(ue=null==P?void 0:P[S])?ue:0,we=be?ge:pe-E[fe]-k[fe]-xe+O.altAxis,Ae=be?pe+E[fe]+k[fe]-xe-O.altAxis:ve,Se=g&&be?function(e,t,n){var r=ye(e,t,n);return r>n?n:r}(we,pe,Ae):ye(g?we:ge,pe,g?Ae:ve);C[S]=Se,I[S]=Se-pe}t.modifiersData[r]=I}},requiresIfExists:["offset"]};const be={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Q(n.placement),l=te(s),c=[F,j].indexOf(s)>=0?"height":"width";if(o&&a){var u=function(e,t){return fe("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:ge(e,N))}(i.padding,n),d=_(o),h="y"===l?L:F,p="y"===l?R:j,f=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],g=a[l]-n.rects.reference[l],m=M(o),y=m?"y"===l?m.clientHeight||0:m.clientWidth||0:0,v=f/2-g/2,b=u[h],x=y-d[c]-u[p],w=y/2-d[c]/2+v,A=ye(b,w,x),S=l;n.modifiersData[r]=((t={})[S]=A,t.centerOffset=A-w,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&ue(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function xe(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function we(e){return[L,j,R,F].some((function(t){return e[t]>=0}))}var Ae=Z({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=void 0===i||i,a=r.resize,s=void 0===a||a,l=c(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach((function(e){e.addEventListener("scroll",n.update,J)})),s&&l.addEventListener("resize",n.update,J),function(){o&&u.forEach((function(e){e.removeEventListener("scroll",n.update,J)})),s&&l.removeEventListener("resize",n.update,J)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=ne({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=void 0===r||r,o=n.adaptive,a=void 0===o||o,s=n.roundOffsets,l=void 0===s||s,c={placement:Q(t.placement),variation:ee(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,ie(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ie(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];d(i)&&x(i)&&(Object.assign(i.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],i=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});d(r)&&x(r)&&(Object.assign(r.style,o),Object.keys(i).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]},oe,{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,h=n.altBoundary,p=n.flipVariations,f=void 0===p||p,g=n.allowedAutoPlacements,m=t.options.placement,y=Q(m),v=l||(y===m||!f?[se(m)]:function(e){if(Q(e)===D)return[];var t=se(e);return[ce(e),t,ce(t)]}(m)),b=[m].concat(v).reduce((function(e,n){return e.concat(Q(n)===D?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?q:l,u=ee(r),d=u?s?W:W.filter((function(e){return ee(e)===u})):N,h=d.filter((function(e){return c.indexOf(e)>=0}));0===h.length&&(h=d);var p=h.reduce((function(t,n){return t[n]=me(e,{placement:n,boundary:i,rootBoundary:o,padding:a})[Q(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:f,allowedAutoPlacements:g}):n)}),[]),x=t.rects.reference,w=t.rects.popper,A=new Map,S=!0,C=b[0],E=0;E=0,P=O?"width":"height",I=me(t,{placement:_,boundary:u,rootBoundary:d,altBoundary:h,padding:c}),M=O?T?j:F:T?R:L;x[P]>w[P]&&(M=se(M));var V=se(M),B=[];if(o&&B.push(I[k]<=0),s&&B.push(I[M]<=0,I[V]<=0),B.every((function(e){return e}))){C=_,S=!1;break}A.set(_,B)}if(S)for(var $=function(e){var t=b.find((function(t){var n=A.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return C=t,"break"},G=f?3:1;G>0;G--){if("break"===$(G))break}t.placement!==C&&(t.modifiersData[r]._skip=!0,t.placement=C,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},ve,be,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=me(t,{elementContext:"reference"}),s=me(t,{altBoundary:!0}),l=xe(a,r),c=xe(s,i,o),u=we(l),d=we(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]}),Se=n(32829),Ce=n(45583),Ee=n(24115);const _e="base";function ke(e,t){const n=Ee.li[t];return n?`${_e}--${n}`:function(e,t){return`${_e}-${e}-${t}`}(e,t)}const Te="Popper";function Oe(e){return ke(Te,e)}!function(e,t){const n={};t.forEach((t=>{n[t]=ke(e,t)}))}(Te,["root"]);var Pe=n(12277),Ie=n(97282);const Me={disableDefaultClasses:!1},Le=o.createContext(Me);const Re=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],je=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Fe(e){return"function"==typeof e?e():e}function De(e){return void 0!==e.nodeType}const Ne=()=>(0,Se.A)({root:["root"]},function(e){const{disableDefaultClasses:t}=o.useContext(Le);return n=>t?"":e(n)}(Oe)),ze={},Ve=o.forwardRef((function(e,t){var n;const{anchorEl:l,children:c,direction:u,disablePortal:d,modifiers:h,open:p,placement:f,popperOptions:g,popperRef:m,slotProps:y={},slots:v={},TransitionProps:b}=e,x=(0,i.A)(e,Re),w=o.useRef(null),A=(0,a.A)(w,t),S=o.useRef(null),C=(0,a.A)(S,m),E=o.useRef(C);(0,s.A)((()=>{E.current=C}),[C]),o.useImperativeHandle(m,(()=>S.current),[]);const _=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(f,u),[k,T]=o.useState(_),[O,P]=o.useState(Fe(l));o.useEffect((()=>{S.current&&S.current.forceUpdate()})),o.useEffect((()=>{l&&P(Fe(l))}),[l]),(0,s.A)((()=>{if(!O||!p)return;let e=[{name:"preventOverflow",options:{altBoundary:d}},{name:"flip",options:{altBoundary:d}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{T(e.placement)}}];null!=h&&(e=e.concat(h)),g&&null!=g.modifiers&&(e=e.concat(g.modifiers));const t=Ae(O,w.current,(0,r.A)({placement:_},g,{modifiers:e}));return E.current(t),()=>{t.destroy(),E.current(null)}}),[O,d,h,p,g,_]);const I={placement:k};null!==b&&(I.TransitionProps=b);const M=Ne(),L=null!=(n=v.root)?n:"div",R=(0,Pe.Q)({elementType:L,externalSlotProps:y.root,externalForwardedProps:x,additionalProps:{role:"tooltip",ref:A},ownerState:e,className:M.root});return(0,Ie.jsx)(L,(0,r.A)({},R,{children:"function"==typeof c?c(I):c}))})),Be=o.forwardRef((function(e,t){const{anchorEl:n,children:a,container:s,direction:c="ltr",disablePortal:u=!1,keepMounted:d=!1,modifiers:h,open:p,placement:f="bottom",popperOptions:g=ze,popperRef:m,style:y,transition:v=!1,slotProps:b={},slots:x={}}=e,w=(0,i.A)(e,je),[A,S]=o.useState(!0);if(!d&&!p&&(!v||A))return null;let C;if(s)C=s;else if(n){const e=Fe(n);C=e&&De(e)?(0,l.A)(e).body:(0,l.A)(null).body}const E=p||!d||v&&!A?void 0:"none",_=v?{in:p,onEnter:()=>{S(!1)},onExited:()=>{S(!0)}}:void 0;return(0,Ie.jsx)(Ce.Z,{disablePortal:u,container:C,children:(0,Ie.jsx)(Ve,(0,r.A)({anchorEl:n,direction:c,disablePortal:u,modifiers:h,ref:t,open:v?!A:p,placement:f,popperOptions:g,popperRef:m,slotProps:b,slots:x},w,{style:(0,r.A)({position:"fixed",top:0,left:0,display:E},y),TransitionProps:_,children:a}))})}));var $e=n(98767),Ge=n(58990),Ue=n(87507);const We=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],qe=(0,Ge.Ay)(Be,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),He=o.forwardRef((function(e,t){var n;const o=(0,$e.A)(),a=(0,Ue.A)({props:e,name:"MuiPopper"}),{anchorEl:s,component:l,components:c,componentsProps:u,container:d,disablePortal:h,keepMounted:p,modifiers:f,open:g,placement:m,popperOptions:y,popperRef:v,transition:b,slots:x,slotProps:w}=a,A=(0,i.A)(a,We),S=null!=(n=null==x?void 0:x.root)?n:null==c?void 0:c.Root,C=(0,r.A)({anchorEl:s,container:d,disablePortal:h,keepMounted:p,modifiers:f,open:g,placement:m,popperOptions:y,popperRef:v,transition:b},A);return(0,Ie.jsx)(qe,(0,r.A)({as:l,direction:null==o?void 0:o.direction,slots:{root:S},slotProps:null!=w?w:u},C,{ref:t}))}))},35246:(e,t,n)=>{"use strict";n.d(t,{A:()=>Y});var r=n(51559),i=n(73342),o=n(30538),a=n(87286),s=n(43271),l=n(88207),c=(n(91272),n(32829)),u=n(5391),d=n(8018),h=n(19508),p=n(92595),f=n(64049),g=n(29421),m=n(58990),y=n(57088),v=n(47258),b=n(58245),x=n(5007),w=n(24115);function A(e){return(0,w.Ay)("MuiSelect",e)}const S=(0,x.A)("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var C,E=n(97282);const _=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],k=(0,m.Ay)("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${S.select}`]:t.select},{[`&.${S.select}`]:t[n.variant]},{[`&.${S.error}`]:t.error},{[`&.${S.multiple}`]:t.multiple}]}})(f.Ku,{[`&.${S.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),T=(0,m.Ay)("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${(0,h.A)(n.variant)}`],n.open&&t.iconOpen]}})(f.XV),O=(0,m.Ay)("input",{shouldForwardProp:e=>(0,y.A)(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function P(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function I(e){return null==e||"string"==typeof e&&!e.trim()}const M=o.forwardRef((function(e,t){var n;const{"aria-describedby":s,"aria-label":f,autoFocus:m,autoWidth:y,children:x,className:w,defaultOpen:S,defaultValue:M,disabled:L,displayEmpty:R,error:j=!1,IconComponent:F,inputRef:D,labelId:N,MenuProps:z={},multiple:V,name:B,onBlur:$,onChange:G,onClose:U,onFocus:W,onOpen:q,open:H,readOnly:Y,renderValue:K,SelectDisplayProps:X={},tabIndex:Z,value:J,variant:Q="standard"}=e,ee=(0,i.A)(e,_),[te,ne]=(0,b.A)({controlled:J,default:M,name:"Select"}),[re,ie]=(0,b.A)({controlled:H,default:S,name:"Select"}),oe=o.useRef(null),ae=o.useRef(null),[se,le]=o.useState(null),{current:ce}=o.useRef(null!=H),[ue,de]=o.useState(),he=(0,v.A)(t,D),pe=o.useCallback((e=>{ae.current=e,e&&le(e)}),[]),fe=null==se?void 0:se.parentNode;o.useImperativeHandle(he,(()=>({focus:()=>{ae.current.focus()},node:oe.current,value:te})),[te]),o.useEffect((()=>{S&&re&&se&&!ce&&(de(y?null:fe.clientWidth),ae.current.focus())}),[se,y]),o.useEffect((()=>{m&&ae.current.focus()}),[m]),o.useEffect((()=>{if(!N)return;const e=(0,d.A)(ae.current).getElementById(N);if(e){const t=()=>{getSelection().isCollapsed&&ae.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[N]);const ge=(e,t)=>{e?q&&q(t):U&&U(t),ce||(de(y?null:fe.clientWidth),ie(e))},me=o.Children.toArray(x),ye=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(V){n=Array.isArray(te)?te.slice():[];const t=te.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),te!==n&&(ne(n),G)){const r=t.nativeEvent||t,i=new r.constructor(r.type,r);Object.defineProperty(i,"target",{writable:!0,value:{value:n,name:B}}),G(i,e)}V||ge(!1,t)}},ve=null!==se&&re;let be,xe;delete ee["aria-invalid"];const we=[];let Ae=!1,Se=!1;((0,g.lq)({value:te})||R)&&(K?be=K(te):Ae=!0);const Ce=me.map((e=>{if(!o.isValidElement(e))return null;let t;if(V){if(!Array.isArray(te))throw new Error((0,l.A)(2));t=te.some((t=>P(t,e.props.value))),t&&Ae&&we.push(e.props.children)}else t=P(te,e.props.value),t&&Ae&&(xe=e.props.children);return t&&(Se=!0),o.cloneElement(e,{"aria-selected":t?"true":"false",onClick:ye(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));Ae&&(be=V?0===we.length?null:we.reduce(((e,t,n)=>(e.push(t),n{const{classes:t,variant:n,disabled:r,multiple:i,open:o,error:a}=e,s={select:["select",n,r&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${(0,h.A)(n)}`,o&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return(0,c.A)(s,A,t)})(Te),Pe=(0,r.A)({},z.PaperProps,null==(n=z.slotProps)?void 0:n.paper),Ie=(0,u.A)();return(0,E.jsxs)(o.Fragment,{children:[(0,E.jsx)(k,(0,r.A)({ref:pe,tabIndex:Ee,role:"combobox","aria-controls":Ie,"aria-disabled":L?"true":void 0,"aria-expanded":ve?"true":"false","aria-haspopup":"listbox","aria-label":f,"aria-labelledby":[N,ke].filter(Boolean).join(" ")||void 0,"aria-describedby":s,onKeyDown:e=>{if(!Y){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),ge(!0,e))}},onMouseDown:L||Y?null:e=>{0===e.button&&(e.preventDefault(),ae.current.focus(),ge(!0,e))},onBlur:e=>{!ve&&$&&(Object.defineProperty(e,"target",{writable:!0,value:{value:te,name:B}}),$(e))},onFocus:W},X,{ownerState:Te,className:(0,a.A)(X.className,Oe.select,w),id:ke,children:I(be)?C||(C=(0,E.jsx)("span",{className:"notranslate",children:"​"})):be})),(0,E.jsx)(O,(0,r.A)({"aria-invalid":j,value:Array.isArray(te)?te.join(","):te,name:B,ref:oe,"aria-hidden":!0,onChange:e=>{const t=me.find((t=>t.props.value===e.target.value));void 0!==t&&(ne(t.props.value),G&&G(e,t))},tabIndex:-1,disabled:L,className:Oe.nativeInput,autoFocus:m,ownerState:Te},ee)),(0,E.jsx)(T,{as:F,className:Oe.icon,ownerState:Te}),(0,E.jsx)(p.A,(0,r.A)({id:`menu-${B||""}`,anchorEl:fe,open:ve,onClose:e=>{ge(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},z,{MenuListProps:(0,r.A)({"aria-labelledby":N,role:"listbox","aria-multiselectable":V?"true":void 0,disableListWrap:!0,id:Ie},z.MenuListProps),slotProps:(0,r.A)({},z.slotProps,{paper:(0,r.A)({},Pe,{style:(0,r.A)({minWidth:_e},null!=Pe?Pe.style:null)})}),children:Ce}))]})}));var L=n(73336),R=n(39230),j=n(69216),F=n(20553),D=n(81933),N=n(32951),z=n(87507),V=n(49968);const B=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],$=["root"],G={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>(0,V.A)(e)&&"variant"!==e,slot:"Root"},U=(0,m.Ay)(F.A,G)(""),W=(0,m.Ay)(N.A,G)(""),q=(0,m.Ay)(D.A,G)(""),H=o.forwardRef((function(e,t){const n=(0,z.A)({name:"MuiSelect",props:e}),{autoWidth:l=!1,children:c,classes:u={},className:d,defaultOpen:h=!1,displayEmpty:p=!1,IconComponent:g=j.A,id:m,input:y,inputProps:b,label:x,labelId:w,MenuProps:A,multiple:S=!1,native:C=!1,onClose:_,onOpen:k,open:T,renderValue:O,SelectDisplayProps:P,variant:I="outlined"}=n,F=(0,i.A)(n,B),D=C?f.Ay:M,N=(0,R.A)(),V=(0,L.A)({props:n,muiFormControl:N,states:["variant","error"]}),G=V.variant||I,H=(0,r.A)({},n,{variant:G,classes:u}),Y=(e=>{const{classes:t}=e;return t})(H),K=(0,i.A)(Y,$),X=y||{standard:(0,E.jsx)(U,{ownerState:H}),outlined:(0,E.jsx)(W,{label:x,ownerState:H}),filled:(0,E.jsx)(q,{ownerState:H})}[G],Z=(0,v.A)(t,X.ref);return(0,E.jsx)(o.Fragment,{children:o.cloneElement(X,(0,r.A)({inputComponent:D,inputProps:(0,r.A)({children:c,error:V.error,IconComponent:g,variant:G,type:void 0,multiple:S},C?{id:m}:{autoWidth:l,defaultOpen:h,displayEmpty:p,labelId:w,MenuProps:A,onClose:_,onOpen:k,open:T,renderValue:O,SelectDisplayProps:(0,r.A)({id:m},P)},b,{classes:b?(0,s.A)(K,b.classes):K},y?y.props.inputProps:{})},(S&&C||p)&&"outlined"===G?{notched:!0}:{},{ref:Z,className:(0,a.A)(X.props.className,d,Y.root)},!y&&{variant:G},F))})}));H.muiName="Select";const Y=H},23296:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>ne});var r=n(73342),i=n(51559),o=n(30538),a=n(87286),s=n(12277),l=n(2665),c=n(32829),u=n(74311),d=n(63095),h=n(75031),p=n(73499),f=n(18029),g=n(43107),m=n(18605);const y={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};var v=n(75188);function b(e,t){return e-t}function x(e,t){var n;const{index:r}=null!=(n=e.reduce(((e,n,r)=>{const i=Math.abs(t-n);return null===e||ie===t)){return e.length===t.length&&e.every(((e,r)=>n(e,t[r])))}(e,t)}const k={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},T=e=>e;let O;function P(){return void 0===O&&(O="undefined"==typeof CSS||"function"!=typeof CSS.supports||CSS.supports("touch-action","none")),O}function I(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:a=!1,isRtl:s=!1,marks:l=!1,max:c=100,min:O=0,name:I,onChange:M,onChangeCommitted:L,orientation:R="horizontal",rootRef:j,scale:F=T,step:D=1,shiftStep:N=10,tabIndex:z,value:V}=e,B=o.useRef(),[$,G]=o.useState(-1),[U,W]=o.useState(-1),[q,H]=o.useState(!1),Y=o.useRef(0),[K,X]=(0,d.A)({controlled:V,default:null!=n?n:O,name:"Slider"}),Z=M&&((e,t,n)=>{const r=e.nativeEvent||e,i=new r.constructor(r.type,r);Object.defineProperty(i,"target",{writable:!0,value:{value:t,name:I}}),M(i,t,n)}),J=Array.isArray(K);let Q=J?K.slice().sort(b):[K];Q=Q.map((e=>null==e?O:(0,h.A)(e,O,c)));const ee=!0===l&&null!==D?[...Array(Math.floor((c-O)/D)+1)].map(((e,t)=>({value:O+D*t}))):l||[],te=ee.map((e=>e.value)),{isFocusVisibleRef:ne,onBlur:re,onFocus:ie,ref:oe}=(0,p.A)(),[ae,se]=o.useState(-1),le=o.useRef(),ce=(0,f.A)(oe,le),ue=(0,f.A)(j,ce),de=e=>t=>{var n;const r=Number(t.currentTarget.getAttribute("data-index"));ie(t),!0===ne.current&&se(r),W(r),null==e||null==(n=e.onFocus)||n.call(e,t)},he=e=>t=>{var n;re(t),!1===ne.current&&se(-1),W(-1),null==e||null==(n=e.onBlur)||n.call(e,t)},pe=(e,t)=>{const n=Number(e.currentTarget.getAttribute("data-index")),r=Q[n],i=te.indexOf(r);let o=t;if(ee&&null==D){const e=te[te.length-1];o=o>e?e:ot=>{var n;if(null!==D){const e=Number(t.currentTarget.getAttribute("data-index")),n=Q[e];let r=null;("ArrowLeft"===t.key||"ArrowDown"===t.key)&&t.shiftKey||"PageDown"===t.key?r=Math.max(n-N,O):(("ArrowRight"===t.key||"ArrowUp"===t.key)&&t.shiftKey||"PageUp"===t.key)&&(r=Math.min(n+N,c)),null!==r&&(pe(t,r),t.preventDefault())}null==e||null==(n=e.onKeyDown)||n.call(e,t)};(0,g.A)((()=>{var e;r&&le.current.contains(document.activeElement)&&(null==(e=document.activeElement)||e.blur())}),[r]),r&&-1!==$&&G(-1),r&&-1!==ae&&se(-1);const ge=o.useRef();let me=R;s&&"horizontal"===R&&(me+="-reverse");const ye=({finger:e,move:t=!1})=>{const{current:n}=le,{width:r,height:i,bottom:o,left:s}=n.getBoundingClientRect();let l,u;if(l=0===me.indexOf("vertical")?(o-e.y)/i:(e.x-s)/r,-1!==me.indexOf("-reverse")&&(l=1-l),u=function(e,t,n){return(n-t)*e+t}(l,O,c),D)u=S(u,D,O);else{const e=x(te,u);u=te[e]}u=(0,h.A)(u,O,c);let d=0;if(J){d=t?ge.current:x(Q,u),a&&(u=(0,h.A)(u,Q[d-1]||-1/0,Q[d+1]||1/0));const e=u;u=C({values:Q,newValue:u,index:d}),a&&t||(d=u.indexOf(e),ge.current=d)}return{newValue:u,activeIndex:d}},ve=(0,m.A)((e=>{const t=w(e,B);if(!t)return;if(Y.current+=1,"mousemove"===e.type&&0===e.buttons)return void be(e);const{newValue:n,activeIndex:r}=ye({finger:t,move:!0});E({sliderRef:le,activeIndex:r,setActive:G}),X(n),!q&&Y.current>2&&H(!0),Z&&!_(n,K)&&Z(e,n,r)})),be=(0,m.A)((e=>{const t=w(e,B);if(H(!1),!t)return;const{newValue:n}=ye({finger:t,move:!0});G(-1),"touchend"===e.type&&W(-1),L&&L(e,n),B.current=void 0,we()})),xe=(0,m.A)((e=>{if(r)return;P()||e.preventDefault();const t=e.changedTouches[0];null!=t&&(B.current=t.identifier);const n=w(e,B);if(!1!==n){const{newValue:t,activeIndex:r}=ye({finger:n});E({sliderRef:le,activeIndex:r,setActive:G}),X(t),Z&&!_(t,K)&&Z(e,t,r)}Y.current=0;const i=(0,u.A)(le.current);i.addEventListener("touchmove",ve,{passive:!0}),i.addEventListener("touchend",be,{passive:!0})})),we=o.useCallback((()=>{const e=(0,u.A)(le.current);e.removeEventListener("mousemove",ve),e.removeEventListener("mouseup",be),e.removeEventListener("touchmove",ve),e.removeEventListener("touchend",be)}),[be,ve]);o.useEffect((()=>{const{current:e}=le;return e.addEventListener("touchstart",xe,{passive:P()}),()=>{e.removeEventListener("touchstart",xe),we()}}),[we,xe]),o.useEffect((()=>{r&&we()}),[r,we]);const Ae=A(J?Q[0]:O,O,c),Se=A(Q[Q.length-1],O,c)-Ae,Ce=e=>t=>{var n;null==(n=e.onMouseLeave)||n.call(e,t),W(-1)};return{active:$,axis:me,axisProps:k,dragging:q,focusedThumbIndex:ae,getHiddenInputProps:(n={})=>{var o;const a=(0,v.h)(n),l={onChange:(u=a||{},e=>{var t;null==(t=u.onChange)||t.call(u,e),pe(e,e.target.valueAsNumber)}),onFocus:de(a||{}),onBlur:he(a||{}),onKeyDown:fe(a||{})};var u;const d=(0,i.A)({},a,l);return(0,i.A)({tabIndex:z,"aria-labelledby":t,"aria-orientation":R,"aria-valuemax":F(c),"aria-valuemin":F(O),name:I,type:"range",min:e.min,max:e.max,step:null===e.step&&e.marks?"any":null!=(o=e.step)?o:void 0,disabled:r},n,d,{style:(0,i.A)({},y,{direction:s?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:(e={})=>{const t=(0,v.h)(e),n={onMouseDown:(o=t||{},e=>{var t;if(null==(t=o.onMouseDown)||t.call(o,e),r)return;if(e.defaultPrevented)return;if(0!==e.button)return;e.preventDefault();const n=w(e,B);if(!1!==n){const{newValue:t,activeIndex:r}=ye({finger:n});E({sliderRef:le,activeIndex:r,setActive:G}),X(t),Z&&!_(t,K)&&Z(e,t,r)}Y.current=0;const i=(0,u.A)(le.current);i.addEventListener("mousemove",ve,{passive:!0}),i.addEventListener("mouseup",be)})};var o;const a=(0,i.A)({},t,n);return(0,i.A)({},e,{ref:ue},a)},getThumbProps:(e={})=>{const t=(0,v.h)(e),n={onMouseOver:(r=t||{},e=>{var t;null==(t=r.onMouseOver)||t.call(r,e);const n=Number(e.currentTarget.getAttribute("data-index"));W(n)}),onMouseLeave:Ce(t||{})};var r;return(0,i.A)({},e,t,n)},marks:ee,open:U,range:J,rootRef:ue,trackLeap:Se,trackOffset:Ae,values:Q,getThumbStyle:e=>({pointerEvents:-1!==$&&$!==e?"none":void 0})}}var M=n(59015),L=n(39160),R=n(99191),j=n(58990),F=n(57088);const D=e=>!e||!(0,l.g)(e);var N=n(19508),z=n(5007),V=n(24115);function B(e){return(0,V.Ay)("MuiSlider",e)}const $=(0,z.A)("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]);var G=n(97282);const U=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","shiftStep","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"],W=(0,R.h)("MuiSlider");function q(e){return e}const H=(0,j.Ay)("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${(0,N.A)(n.color)}`],"medium"!==n.size&&t[`size${(0,N.A)(n.size)}`],n.marked&&t.marked,"vertical"===n.orientation&&t.vertical,"inverted"===n.track&&t.trackInverted,!1===n.track&&t.trackFalse]}})((({theme:e})=>{var t;return{borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${$.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${$.dragging}`]:{[`& .${$.thumb}, & .${$.track}`]:{transition:"none"}},variants:[...Object.keys((null!=(t=e.vars)?t:e).palette).filter((t=>{var n;return(null!=(n=e.vars)?n:e).palette[t].main})).map((t=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}})),Y=(0,j.Ay)("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),K=(0,j.Ay)("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})((({theme:e})=>{var t;return{display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.keys((null!=(t=e.vars)?t:e).palette).filter((t=>{var n;return(null!=(n=e.vars)?n:e).palette[t].main})).map((t=>({props:{color:t,track:"inverted"},style:(0,i.A)({},e.vars?{backgroundColor:e.vars.palette.Slider[`${t}Track`],borderColor:e.vars.palette.Slider[`${t}Track`]}:(0,i.A)({backgroundColor:(0,M.a)(e.palette[t].main,.62),borderColor:(0,M.a)(e.palette[t].main,.62)},e.applyStyles("dark",{backgroundColor:(0,M.e$)(e.palette[t].main,.5)}),e.applyStyles("dark",{borderColor:(0,M.e$)(e.palette[t].main,.5)})))})))]}})),X=(0,j.Ay)("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${(0,N.A)(n.color)}`],"medium"!==n.size&&t[`thumbSize${(0,N.A)(n.size)}`]]}})((({theme:e})=>{var t;return{position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${$.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.keys((null!=(t=e.vars)?t:e).palette).filter((t=>{var n;return(null!=(n=e.vars)?n:e).palette[t].main})).map((t=>({props:{color:t},style:{[`&:hover, &.${$.focusVisible}`]:(0,i.A)({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[t].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${(0,M.X4)(e.palette[t].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${$.active}`]:(0,i.A)({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[t].mainChannel} / 0.16)}`}:{boxShadow:`0px 0px 0px 14px ${(0,M.X4)(e.palette[t].main,.16)}`})}})))]}})),Z=(0,j.Ay)((function(e){const{children:t,className:n,value:r}=e,i=(e=>{const{open:t}=e;return{offset:(0,a.A)(t&&$.valueLabelOpen),circle:$.valueLabelCircle,label:$.valueLabelLabel}})(e);return t?o.cloneElement(t,{className:(0,a.A)(t.props.className)},(0,G.jsxs)(o.Fragment,{children:[t.props.children,(0,G.jsx)("span",{className:(0,a.A)(i.offset,n),"aria-hidden":!0,children:(0,G.jsx)("span",{className:i.circle,children:(0,G.jsx)("span",{className:i.label,children:r})})})]})):null}),{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})((({theme:e})=>(0,i.A)({zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${$.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${$.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]}))),J=(0,j.Ay)("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>(0,F.A)(e)&&"markActive"!==e,overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})((({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]}))),Q=(0,j.Ay)("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>(0,F.A)(e)&&"markLabelActive"!==e,overridesResolver:(e,t)=>t.markLabel})((({theme:e})=>(0,i.A)({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]}))),ee=({children:e})=>e,te=o.forwardRef((function(e,t){var n,u,d,h,p,f,g,m,y,v,b,x,w,S,C,E,_,k,T,O,P,M,R,j;const F=W({props:e,name:"MuiSlider"}),z=(0,L.I)(),{"aria-label":V,"aria-valuetext":$,"aria-labelledby":te,component:ne="span",components:re={},componentsProps:ie={},color:oe="primary",classes:ae,className:se,disableSwap:le=!1,disabled:ce=!1,getAriaLabel:ue,getAriaValueText:de,marks:he=!1,max:pe=100,min:fe=0,orientation:ge="horizontal",shiftStep:me=10,size:ye="medium",step:ve=1,scale:be=q,slotProps:xe,slots:we,track:Ae="normal",valueLabelDisplay:Se="off",valueLabelFormat:Ce=q}=F,Ee=(0,r.A)(F,U),_e=(0,i.A)({},F,{isRtl:z,max:pe,min:fe,classes:ae,disabled:ce,disableSwap:le,orientation:ge,marks:he,color:oe,size:ye,step:ve,shiftStep:me,scale:be,track:Ae,valueLabelDisplay:Se,valueLabelFormat:Ce}),{axisProps:ke,getRootProps:Te,getHiddenInputProps:Oe,getThumbProps:Pe,open:Ie,active:Me,axis:Le,focusedThumbIndex:Re,range:je,dragging:Fe,marks:De,values:Ne,trackOffset:ze,trackLeap:Ve,getThumbStyle:Be}=I((0,i.A)({},_e,{rootRef:t}));_e.marked=De.length>0&&De.some((e=>e.label)),_e.dragging=Fe,_e.focusedThumbIndex=Re;const $e=(e=>{const{disabled:t,dragging:n,marked:r,orientation:i,track:o,classes:a,color:s,size:l}=e,u={root:["root",t&&"disabled",n&&"dragging",r&&"marked","vertical"===i&&"vertical","inverted"===o&&"trackInverted",!1===o&&"trackFalse",s&&`color${(0,N.A)(s)}`,l&&`size${(0,N.A)(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${(0,N.A)(l)}`,s&&`thumbColor${(0,N.A)(s)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return(0,c.A)(u,B,a)})(_e),Ge=null!=(n=null!=(u=null==we?void 0:we.root)?u:re.Root)?n:H,Ue=null!=(d=null!=(h=null==we?void 0:we.rail)?h:re.Rail)?d:Y,We=null!=(p=null!=(f=null==we?void 0:we.track)?f:re.Track)?p:K,qe=null!=(g=null!=(m=null==we?void 0:we.thumb)?m:re.Thumb)?g:X,He=null!=(y=null!=(v=null==we?void 0:we.valueLabel)?v:re.ValueLabel)?y:Z,Ye=null!=(b=null!=(x=null==we?void 0:we.mark)?x:re.Mark)?b:J,Ke=null!=(w=null!=(S=null==we?void 0:we.markLabel)?S:re.MarkLabel)?w:Q,Xe=null!=(C=null!=(E=null==we?void 0:we.input)?E:re.Input)?C:"input",Ze=null!=(_=null==xe?void 0:xe.root)?_:ie.root,Je=null!=(k=null==xe?void 0:xe.rail)?k:ie.rail,Qe=null!=(T=null==xe?void 0:xe.track)?T:ie.track,et=null!=(O=null==xe?void 0:xe.thumb)?O:ie.thumb,tt=null!=(P=null==xe?void 0:xe.valueLabel)?P:ie.valueLabel,nt=null!=(M=null==xe?void 0:xe.mark)?M:ie.mark,rt=null!=(R=null==xe?void 0:xe.markLabel)?R:ie.markLabel,it=null!=(j=null==xe?void 0:xe.input)?j:ie.input,ot=(0,s.Q)({elementType:Ge,getSlotProps:Te,externalSlotProps:Ze,externalForwardedProps:Ee,additionalProps:(0,i.A)({},D(Ge)&&{as:ne}),ownerState:(0,i.A)({},_e,null==Ze?void 0:Ze.ownerState),className:[$e.root,se]}),at=(0,s.Q)({elementType:Ue,externalSlotProps:Je,ownerState:_e,className:$e.rail}),st=(0,s.Q)({elementType:We,externalSlotProps:Qe,additionalProps:{style:(0,i.A)({},ke[Le].offset(ze),ke[Le].leap(Ve))},ownerState:(0,i.A)({},_e,null==Qe?void 0:Qe.ownerState),className:$e.track}),lt=(0,s.Q)({elementType:qe,getSlotProps:Pe,externalSlotProps:et,ownerState:(0,i.A)({},_e,null==et?void 0:et.ownerState),className:$e.thumb}),ct=(0,s.Q)({elementType:He,externalSlotProps:tt,ownerState:(0,i.A)({},_e,null==tt?void 0:tt.ownerState),className:$e.valueLabel}),ut=(0,s.Q)({elementType:Ye,externalSlotProps:nt,ownerState:_e,className:$e.mark}),dt=(0,s.Q)({elementType:Ke,externalSlotProps:rt,ownerState:_e,className:$e.markLabel}),ht=(0,s.Q)({elementType:Xe,getSlotProps:Oe,externalSlotProps:it,ownerState:_e});return(0,G.jsxs)(Ge,(0,i.A)({},ot,{children:[(0,G.jsx)(Ue,(0,i.A)({},at)),(0,G.jsx)(We,(0,i.A)({},st)),De.filter((e=>e.value>=fe&&e.value<=pe)).map(((e,t)=>{const n=A(e.value,fe,pe),r=ke[Le].offset(n);let s;return s=!1===Ae?-1!==Ne.indexOf(e.value):"normal"===Ae&&(je?e.value>=Ne[0]&&e.value<=Ne[Ne.length-1]:e.value<=Ne[0])||"inverted"===Ae&&(je?e.value<=Ne[0]||e.value>=Ne[Ne.length-1]:e.value>=Ne[0]),(0,G.jsxs)(o.Fragment,{children:[(0,G.jsx)(Ye,(0,i.A)({"data-index":t},ut,!(0,l.g)(Ye)&&{markActive:s},{style:(0,i.A)({},r,ut.style),className:(0,a.A)(ut.className,s&&$e.markActive)})),null!=e.label?(0,G.jsx)(Ke,(0,i.A)({"aria-hidden":!0,"data-index":t},dt,!(0,l.g)(Ke)&&{markLabelActive:s},{style:(0,i.A)({},r,dt.style),className:(0,a.A)($e.markLabel,dt.className,s&&$e.markLabelActive),children:e.label})):null]},t)})),Ne.map(((e,t)=>{const n=A(e,fe,pe),r=ke[Le].offset(n),o="off"===Se?ee:He;return(0,G.jsx)(o,(0,i.A)({},!(0,l.g)(o)&&{valueLabelFormat:Ce,valueLabelDisplay:Se,value:"function"==typeof Ce?Ce(be(e),t):Ce,index:t,open:Ie===t||Me===t||"on"===Se,disabled:ce},ct,{children:(0,G.jsx)(qe,(0,i.A)({"data-index":t},lt,{className:(0,a.A)($e.thumb,lt.className,Me===t&&$e.active,Re===t&&$e.focusVisible),style:(0,i.A)({},r,Be(t),lt.style),children:(0,G.jsx)(Xe,(0,i.A)({"data-index":t,"aria-label":ue?ue(t):V,"aria-valuenow":be(e),"aria-labelledby":te,"aria-valuetext":de?de(be(e),t):$,value:Ne[t]},ht))}))}),t)}))]}))})),ne=te},41019:(e,t,n)=>{"use strict";n.d(t,{A:()=>v});var r=n(51559),i=n(73342),o=n(30538),a=n(87286),s=n(32829),l=n(19508),c=n(87507),u=n(58990),d=n(5007),h=n(24115);function p(e){return(0,h.Ay)("MuiSvgIcon",e)}(0,d.A)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var f=n(97282);const g=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],m=(0,u.Ay)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${(0,l.A)(n.color)}`],t[`fontSize${(0,l.A)(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,i,o,a,s,l,c,u,d,h,p,f;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(i=e.transitions)||null==(i=i.duration)?void 0:i.shorter}),fontSize:{inherit:"inherit",small:(null==(o=e.typography)||null==(a=o.pxToRem)?void 0:a.call(o,20))||"1.25rem",medium:(null==(s=e.typography)||null==(l=s.pxToRem)?void 0:l.call(s,24))||"1.5rem",large:(null==(c=e.typography)||null==(u=c.pxToRem)?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(h=(e.vars||e).palette)||null==(h=h[t.color])?void 0:h.main)?d:{action:null==(p=(e.vars||e).palette)||null==(p=p.action)?void 0:p.active,disabled:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.disabled,inherit:void 0}[t.color]}})),y=o.forwardRef((function(e,t){const n=(0,c.A)({props:e,name:"MuiSvgIcon"}),{children:u,className:d,color:h="inherit",component:y="svg",fontSize:v="medium",htmlColor:b,inheritViewBox:x=!1,titleAccess:w,viewBox:A="0 0 24 24"}=n,S=(0,i.A)(n,g),C=o.isValidElement(u)&&"svg"===u.type,E=(0,r.A)({},n,{color:h,component:y,fontSize:v,instanceFontSize:e.fontSize,inheritViewBox:x,viewBox:A,hasSvgAsChild:C}),_={};x||(_.viewBox=A);const k=(e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root","inherit"!==t&&`color${(0,l.A)(t)}`,`fontSize${(0,l.A)(n)}`]};return(0,s.A)(i,p,r)})(E);return(0,f.jsxs)(m,(0,r.A)({as:y,className:(0,a.A)(k.root,d),focusable:"false",color:b,"aria-hidden":!w||void 0,role:w?"img":void 0,ref:t},_,S,C&&u.props,{ownerState:E,children:[C?u.props.children:u,w?(0,f.jsx)("title",{children:w}):null]}))}));y.muiName="SvgIcon";const v=y},68599:(e,t,n)=>{"use strict";n.d(t,{A:()=>C});var r=n(73342),i=n(51559),o=n(30538),a=n(87286),s=n(32829),l=n(59015),c=n(19508),u=n(15230),d=n(99191),h=n(58990),p=n(5007),f=n(24115);function g(e){return(0,f.Ay)("MuiSwitch",e)}const m=(0,p.A)("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]);var y=n(97282);const v=["className","color","edge","size","sx"],b=(0,d.h)("MuiSwitch"),x=(0,h.Ay)("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${(0,c.A)(n.edge)}`],t[`size${(0,c.A)(n.size)}`]]}})({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${m.thumb}`]:{width:16,height:16},[`& .${m.switchBase}`]:{padding:4,[`&.${m.checked}`]:{transform:"translateX(16px)"}}}}]}),w=(0,h.Ay)(u.A,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${m.input}`]:t.input},"default"!==n.color&&t[`color${(0,c.A)(n.color)}`]]}})((({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${"light"===e.palette.mode?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${m.checked}`]:{transform:"translateX(20px)"},[`&.${m.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${"light"===e.palette.mode?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${m.checked} + .${m.track}`]:{opacity:.5},[`&.${m.disabled} + .${m.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:""+("light"===e.palette.mode?.12:.2)},[`& .${m.input}`]:{left:"-100%",width:"300%"}})),(({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,l.X4)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter((([,e])=>e.main&&e.light)).map((([t])=>({props:{color:t},style:{[`&.${m.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,l.X4)(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${m.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${"light"===e.palette.mode?(0,l.a)(e.palette[t].main,.62):(0,l.e$)(e.palette[t].main,.55)}`}},[`&.${m.checked} + .${m.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}})))]}))),A=(0,h.Ay)("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})((({theme:e})=>({height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${"light"===e.palette.mode?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:""+("light"===e.palette.mode?.38:.3)}))),S=(0,h.Ay)("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})((({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),C=o.forwardRef((function(e,t){const n=b({props:e,name:"MuiSwitch"}),{className:o,color:l="primary",edge:u=!1,size:d="medium",sx:h}=n,p=(0,r.A)(n,v),f=(0,i.A)({},n,{color:l,edge:u,size:d}),m=(e=>{const{classes:t,edge:n,size:r,color:o,checked:a,disabled:l}=e,u={root:["root",n&&`edge${(0,c.A)(n)}`,`size${(0,c.A)(r)}`],switchBase:["switchBase",`color${(0,c.A)(o)}`,a&&"checked",l&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},d=(0,s.A)(u,g,t);return(0,i.A)({},t,d)})(f),C=(0,y.jsx)(S,{className:m.thumb,ownerState:f});return(0,y.jsxs)(x,{className:(0,a.A)(m.root,o),sx:h,ownerState:f,children:[(0,y.jsx)(w,(0,i.A)({type:"checkbox",icon:C,checkedIcon:C,ref:t,ownerState:f},p,{classes:(0,i.A)({},m,{root:m.switchBase})})),(0,y.jsx)(A,{className:m.track,ownerState:f})]})}))},76964:(e,t,n)=>{"use strict";n.d(t,{A:()=>E});var r=n(51559),i=n(73342),o=n(30538),a=n(87286),s=n(32829),l=n(5391),c=n(58990),u=n(87507),d=n(20553),h=n(81933),p=n(32951),f=n(5323),g=n(90645),m=n(45769),y=n(35246),v=n(5007),b=n(24115);function x(e){return(0,b.Ay)("MuiTextField",e)}(0,v.A)("MuiTextField",["root"]);var w=n(97282);const A=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],S={standard:d.A,filled:h.A,outlined:p.A},C=(0,c.Ay)(g.A,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),E=o.forwardRef((function(e,t){const n=(0,u.A)({props:e,name:"MuiTextField"}),{autoComplete:o,autoFocus:c=!1,children:d,className:h,color:p="primary",defaultValue:g,disabled:v=!1,error:b=!1,FormHelperTextProps:E,fullWidth:_=!1,helperText:k,id:T,InputLabelProps:O,inputProps:P,InputProps:I,inputRef:M,label:L,maxRows:R,minRows:j,multiline:F=!1,name:D,onBlur:N,onChange:z,onFocus:V,placeholder:B,required:$=!1,rows:G,select:U=!1,SelectProps:W,type:q,value:H,variant:Y="outlined"}=n,K=(0,i.A)(n,A),X=(0,r.A)({},n,{autoFocus:c,color:p,disabled:v,error:b,fullWidth:_,multiline:F,required:$,select:U,variant:Y}),Z=(e=>{const{classes:t}=e;return(0,s.A)({root:["root"]},x,t)})(X);const J={};"outlined"===Y&&(O&&void 0!==O.shrink&&(J.notched=O.shrink),J.label=L),U&&(W&&W.native||(J.id=void 0),J["aria-describedby"]=void 0);const Q=(0,l.A)(T),ee=k&&Q?`${Q}-helper-text`:void 0,te=L&&Q?`${Q}-label`:void 0,ne=S[Y],re=(0,w.jsx)(ne,(0,r.A)({"aria-describedby":ee,autoComplete:o,autoFocus:c,defaultValue:g,fullWidth:_,multiline:F,name:D,rows:G,maxRows:R,minRows:j,type:q,value:H,id:Q,inputRef:M,onBlur:N,onChange:z,onFocus:V,placeholder:B,inputProps:P},J,I));return(0,w.jsxs)(C,(0,r.A)({className:(0,a.A)(Z.root,h),disabled:v,error:b,fullWidth:_,ref:t,required:$,color:p,variant:Y,ownerState:X},K,{children:[null!=L&&""!==L&&(0,w.jsx)(f.A,(0,r.A)({htmlFor:Q,id:te},O,{children:L})),U?(0,w.jsx)(y.A,(0,r.A)({"aria-describedby":ee,id:Q,labelId:te,value:H,input:re},W,{children:d})):re,k&&(0,w.jsx)(m.A,(0,r.A)({id:ee},E,{children:k}))]}))}))},91031:(e,t,n)=>{"use strict";n.d(t,{A:()=>x});var r=n(73342),i=n(51559),o=n(30538),a=n(87286),s=n(25779),l=n(32829),c=n(58990),u=n(87507),d=n(19508),h=n(5007),p=n(24115);function f(e){return(0,p.Ay)("MuiTypography",e)}(0,h.A)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);var g=n(97282);const m=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],y=(0,c.Ay)("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${(0,d.A)(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>(0,i.A)({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),v={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},b={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},x=o.forwardRef((function(e,t){const n=(0,u.A)({props:e,name:"MuiTypography"}),o=(e=>b[e]||e)(n.color),c=(0,s.A)((0,i.A)({},n,{color:o})),{align:h="inherit",className:p,component:x,gutterBottom:w=!1,noWrap:A=!1,paragraph:S=!1,variant:C="body1",variantMapping:E=v}=c,_=(0,r.A)(c,m),k=(0,i.A)({},c,{align:h,color:o,className:p,component:x,gutterBottom:w,noWrap:A,paragraph:S,variant:C,variantMapping:E}),T=x||(S?"p":E[C]||v[C])||"span",O=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:o,classes:a}=e,s={root:["root",o,"inherit"!==e.align&&`align${(0,d.A)(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return(0,l.A)(s,f,a)})(k);return(0,g.jsx)(y,(0,i.A)({as:T,ref:t,ownerState:k,className:(0,a.A)(O.root,p)},_))}))},15230:(e,t,n)=>{"use strict";n.d(t,{A:()=>w});var r=n(73342),i=n(51559),o=n(30538),a=n(87286),s=n(32829),l=n(19508),c=n(58990),u=n(49968),d=n(58245),h=n(39230),p=n(92004),f=n(5007),g=n(24115);function m(e){return(0,g.Ay)("PrivateSwitchBase",e)}(0,f.A)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);var y=n(97282);const v=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],b=(0,c.Ay)(p.A)((({ownerState:e})=>(0,i.A)({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12}))),x=(0,c.Ay)("input",{shouldForwardProp:u.A})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),w=o.forwardRef((function(e,t){const{autoFocus:n,checked:o,checkedIcon:c,className:u,defaultChecked:p,disabled:f,disableFocusRipple:g=!1,edge:w=!1,icon:A,id:S,inputProps:C,inputRef:E,name:_,onBlur:k,onChange:T,onFocus:O,readOnly:P,required:I=!1,tabIndex:M,type:L,value:R}=e,j=(0,r.A)(e,v),[F,D]=(0,d.A)({controlled:o,default:Boolean(p),name:"SwitchBase",state:"checked"}),N=(0,h.A)();let z=f;N&&void 0===z&&(z=N.disabled);const V="checkbox"===L||"radio"===L,B=(0,i.A)({},e,{checked:F,disabled:z,disableFocusRipple:g,edge:w}),$=(e=>{const{classes:t,checked:n,disabled:r,edge:i}=e,o={root:["root",n&&"checked",r&&"disabled",i&&`edge${(0,l.A)(i)}`],input:["input"]};return(0,s.A)(o,m,t)})(B);return(0,y.jsxs)(b,(0,i.A)({component:"span",className:(0,a.A)($.root,u),centerRipple:!0,focusRipple:!g,disabled:z,tabIndex:null,role:void 0,onFocus:e=>{O&&O(e),N&&N.onFocus&&N.onFocus(e)},onBlur:e=>{k&&k(e),N&&N.onBlur&&N.onBlur(e)},ownerState:B,ref:t},j,{children:[(0,y.jsx)(x,(0,i.A)({autoFocus:n,checked:o,defaultChecked:p,className:$.input,disabled:z,id:V?S:void 0,name:_,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;D(t),T&&T(e,t)},readOnly:P,ref:E,required:I,ownerState:B,tabIndex:M,type:L},"checkbox"===L&&void 0===R?{}:{value:R},C)),F?c:A]}))}))},69216:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});n(30538);var r=n(65127),i=n(97282);const o=(0,r.A)((0,i.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown")},333:(e,t,n)=>{"use strict";n.d(t,{A:()=>b});var r=n(51559),i=n(73342),o=n(30538),a=n(35403),s=n(67139),l=n(5050),c=n(97282);const u=function(e){const{children:t,theme:n}=e,i=(0,a.A)(),u=o.useMemo((()=>{const e=null===i?n:function(e,t){if("function"==typeof t)return t(e);return(0,r.A)({},e,t)}(i,n);return null!=e&&(e[l.A]=null!==i),e}),[n,i]);return(0,c.jsx)(s.A.Provider,{value:u,children:t})};var d=n(18321),h=n(80187),p=n(39160);const f={};function g(e,t,n,i=!1){return o.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof n){const a=n(o),s=e?(0,r.A)({},t,{[e]:a}):a;return i?()=>s:s}return e?(0,r.A)({},t,{[e]:n}):(0,r.A)({},t,n)}),[e,t,n,i])}const m=function(e){const{children:t,theme:n,themeId:r}=e,i=(0,h.A)(f),o=(0,a.A)()||f,s=g(r,i,n),l=g(r,o,n,!0),m="rtl"===s.direction;return(0,c.jsx)(u,{theme:l,children:(0,c.jsx)(d.T.Provider,{value:s,children:(0,c.jsx)(p.A,{value:m,children:t})})})};var y=n(38358);const v=["theme"];function b(e){let{theme:t}=e,n=(0,i.A)(e,v);const o=t[y.A];return(0,c.jsx)(m,(0,r.A)({},n,{themeId:o?y.A:void 0,theme:o||t}))}},76014:(e,t,n)=>{"use strict";n.d(t,{A:()=>R});var r=n(51559),i=n(73342),o=n(88207),a=n(43271),s=n(6856),l=n(22311),c=n(84657);var u=n(59015);const d={black:"#000",white:"#fff"},h={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},p={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},f={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},g={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},m={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},y={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},v={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},b=["mode","contrastThreshold","tonalOffset"],x={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:d.white,default:d.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},w={text:{primary:d.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:d.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function A(e,t,n,r){const i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,u.a)(e.main,i):"dark"===t&&(e.dark=(0,u.e$)(e.main,o)))}function S(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:s=.2}=e,l=(0,i.A)(e,b),c=e.primary||function(e="light"){return"dark"===e?{main:m[200],light:m[50],dark:m[400]}:{main:m[700],light:m[400],dark:m[800]}}(t),S=e.secondary||function(e="light"){return"dark"===e?{main:p[200],light:p[50],dark:p[400]}:{main:p[500],light:p[300],dark:p[700]}}(t),C=e.error||function(e="light"){return"dark"===e?{main:f[500],light:f[300],dark:f[700]}:{main:f[700],light:f[400],dark:f[800]}}(t),E=e.info||function(e="light"){return"dark"===e?{main:y[400],light:y[300],dark:y[700]}:{main:y[700],light:y[500],dark:y[900]}}(t),_=e.success||function(e="light"){return"dark"===e?{main:v[400],light:v[300],dark:v[700]}:{main:v[800],light:v[500],dark:v[900]}}(t),k=e.warning||function(e="light"){return"dark"===e?{main:g[400],light:g[300],dark:g[700]}:{main:"#ed6c02",light:g[500],dark:g[900]}}(t);function T(e){return(0,u.eM)(e,w.text.primary)>=n?w.text.primary:x.text.primary}const O=({color:e,name:t,mainShade:n=500,lightShade:i=300,darkShade:a=700})=>{if(!(e=(0,r.A)({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error((0,o.A)(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error((0,o.A)(12,t?` (${t})`:"",JSON.stringify(e.main)));return A(e,"light",i,s),A(e,"dark",a,s),e.contrastText||(e.contrastText=T(e.main)),e},P={dark:w,light:x};return(0,a.A)((0,r.A)({common:(0,r.A)({},d),mode:t,primary:O({color:c,name:"primary"}),secondary:O({color:S,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:O({color:C,name:"error"}),warning:O({color:k,name:"warning"}),info:O({color:E,name:"info"}),success:O({color:_,name:"success"}),grey:h,contrastThreshold:n,getContrastText:T,augmentColor:O,tonalOffset:s},P[t]),l)}const C=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const E={textTransform:"uppercase"},_='"Roboto", "Helvetica", "Arial", sans-serif';function k(e,t){const n="function"==typeof t?t(e):t,{fontFamily:o=_,fontSize:s=14,fontWeightLight:l=300,fontWeightRegular:c=400,fontWeightMedium:u=500,fontWeightBold:d=700,htmlFontSize:h=16,allVariants:p,pxToRem:f}=n,g=(0,i.A)(n,C);const m=s/14,y=f||(e=>e/h*m+"rem"),v=(e,t,n,i,a)=>{return(0,r.A)({fontFamily:o,fontWeight:e,fontSize:y(t),lineHeight:n},o===_?{letterSpacing:(s=i/t,Math.round(1e5*s)/1e5)+"em"}:{},a,p);var s},b={h1:v(l,96,1.167,-1.5),h2:v(l,60,1.2,-.5),h3:v(c,48,1.167,0),h4:v(c,34,1.235,.25),h5:v(c,24,1.334,0),h6:v(u,20,1.6,.15),subtitle1:v(c,16,1.75,.15),subtitle2:v(u,14,1.57,.1),body1:v(c,16,1.5,.15),body2:v(c,14,1.43,.15),button:v(u,14,1.75,.4,E),caption:v(c,12,1.66,.4),overline:v(c,12,2.66,1,E),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return(0,a.A)((0,r.A)({htmlFontSize:h,pxToRem:y,fontFamily:o,fontSize:s,fontWeightLight:l,fontWeightRegular:c,fontWeightMedium:u,fontWeightBold:d},b),g,{clone:!1})}function T(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const O=["none",T(0,2,1,-1,0,1,1,0,0,1,3,0),T(0,3,1,-2,0,2,2,0,0,1,5,0),T(0,3,3,-2,0,3,4,0,0,1,8,0),T(0,2,4,-1,0,4,5,0,0,1,10,0),T(0,3,5,-1,0,5,8,0,0,1,14,0),T(0,3,5,-1,0,6,10,0,0,1,18,0),T(0,4,5,-2,0,7,10,1,0,2,16,1),T(0,5,5,-3,0,8,10,1,0,3,14,2),T(0,5,6,-3,0,9,12,1,0,3,16,2),T(0,6,6,-3,0,10,14,1,0,4,18,3),T(0,6,7,-4,0,11,15,1,0,4,20,3),T(0,7,8,-4,0,12,17,2,0,5,22,4),T(0,7,8,-4,0,13,19,2,0,5,24,4),T(0,7,9,-4,0,14,21,2,0,5,26,4),T(0,8,9,-5,0,15,22,2,0,6,28,5),T(0,8,10,-5,0,16,24,2,0,6,30,5),T(0,8,11,-5,0,17,26,2,0,6,32,5),T(0,9,11,-5,0,18,28,2,0,7,34,6),T(0,9,12,-6,0,19,29,2,0,7,36,6),T(0,10,13,-6,0,20,31,3,0,8,38,7),T(0,10,13,-6,0,21,33,3,0,8,40,7),T(0,10,14,-6,0,22,35,3,0,8,42,7),T(0,11,14,-7,0,23,36,3,0,9,44,8),T(0,11,15,-7,0,24,38,3,0,9,46,8)];var P=n(2297);const I={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},M=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function L(e={},...t){const{mixins:n={},palette:u={},transitions:d={},typography:h={}}=e,p=(0,i.A)(e,M);if(e.vars)throw new Error((0,o.A)(18));const f=S(u),g=(0,c.A)(e);let m=(0,a.A)(g,{mixins:(y=g.breakpoints,v=n,(0,r.A)({toolbar:{minHeight:56,[y.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[y.up("sm")]:{minHeight:64}}},v)),palette:f,shadows:O.slice(),typography:k(f,h),transitions:(0,P.Ay)(d),zIndex:(0,r.A)({},I)});var y,v;return m=(0,a.A)(m,p),m=t.reduce(((e,t)=>(0,a.A)(e,t)),m),m.unstable_sxConfig=(0,r.A)({},s.A,null==p?void 0:p.unstable_sxConfig),m.unstable_sx=function(e){return(0,l.A)({sx:e,theme:this})},m}const R=L},2297:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>u,p0:()=>s});var r=n(73342),i=n(51559);const o=["duration","easing","delay"],a={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},s={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function l(e){return`${Math.round(e)}ms`}function c(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function u(e){const t=(0,i.A)({},a,e.easing),n=(0,i.A)({},s,e.duration);return(0,i.A)({getAutoHeightDuration:c,create:(e=["all"],i={})=>{const{duration:a=n.standard,easing:s=t.easeInOut,delay:c=0}=i;(0,r.A)(i,o);return(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof a?a:l(a)} ${s} ${"string"==typeof c?c:l(c)}`)).join(",")}},e,{easing:t,duration:n})}},75947:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(76014).A)()},38358:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r="$$material"},49968:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(57088);const i=e=>(0,r.A)(e)&&"classes"!==e},57088:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}},58990:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s});var r=n(15841),i=n(75947),o=n(38358),a=n(49968);const s=(0,r.Ay)({themeId:o.A,defaultTheme:i.A,rootShouldForwardProp:a.A})},94145:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});n(30538);var r=n(38382),i=n(75947),o=n(38358);function a(){const e=(0,r.A)(i.A);return e[o.A]||e}},87507:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(92775),i=n(75947),o=n(38358);function a({props:e,name:t}){return(0,r.A)({props:e,name:t,defaultTheme:i.A,themeId:o.A})}},97880:(e,t,n)=>{"use strict";n.d(t,{c:()=>i,q:()=>r});const r=e=>e.scrollTop;function i(e,t){var n,r;const{timeout:i,easing:o,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof i?i:i[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof o?o[t.mode]:o,delay:a.transitionDelay}}},19508:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(2681).A},17416:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(96339).A},65127:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(51559),i=n(30538),o=n(41019),a=n(97282);function s(e,t){function n(n,i){return(0,a.jsx)(o.A,(0,r.A)({"data-testid":`${t}Icon`,ref:i},n,{children:e}))}return n.muiName=o.A.muiName,i.memo(i.forwardRef(n))}},44545:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(6995).A},90202:(e,t,n)=>{"use strict";n.r(t),n.d(t,{capitalize:()=>i.A,createChainedFunction:()=>o.A,createSvgIcon:()=>a.A,debounce:()=>s.A,deprecatedPropType:()=>l,isMuiElement:()=>c.A,ownerDocument:()=>u.A,ownerWindow:()=>d.A,requirePropFactory:()=>h,setRef:()=>p,unstable_ClassNameGenerator:()=>w,unstable_useEnhancedEffect:()=>f.A,unstable_useId:()=>g.A,unsupportedProp:()=>m,useControlled:()=>y.A,useEventCallback:()=>v.A,useForkRef:()=>b.A,useIsFocusVisible:()=>x.A});var r=n(58337),i=n(19508),o=n(17416),a=n(65127),s=n(44545);const l=function(e,t){return()=>null};var c=n(75361),u=n(8018),d=n(38579);n(51559);const h=function(e,t){return()=>null};const p=n(54175).A;var f=n(65420),g=n(35566);const m=function(e,t,n,r,i){return null};var y=n(58245),v=n(36064),b=n(47258),x=n(65741);const w={configure:e=>{r.A.configure(e)}}},75361:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(30538);const i=function(e,t){var n,i;return r.isValidElement(e)&&-1!==t.indexOf(null!=(n=e.type.muiName)?n:null==(i=e.type)||null==(i=i._payload)||null==(i=i.value)?void 0:i.muiName)}},8018:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(74311).A},38579:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(56023).A},58245:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(63095).A},65420:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(43107).A},36064:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(18605).A},47258:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(18029).A},35566:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(5391).A},65741:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(73499).A},99191:(e,t,n)=>{"use strict";n.d(t,{h:()=>i});var r=n(87507);function i(e){return r.A}},5050:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__"},67139:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(30538).createContext(null)},35403:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(30538),i=n(67139);function o(){return r.useContext(i.A)}},78790:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});n(30538);var r=n(5345),i=n(97282);function o(e){const{styles:t,defaultTheme:n={}}=e,o="function"==typeof t?e=>{return t(null==(r=e)||0===Object.keys(r).length?n:e);var r}:t;return(0,i.jsx)(r.mL,{styles:o})}},29224:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});n(30538);var r=n(18321),i=n(12347),o=n(97282);let a;function s(e){const{injectFirst:t,children:n}=e;return t&&a?(0,o.jsx)(r.C,{value:a,children:n}):n}"object"==typeof document&&(a=(0,i.A)({key:"css",prepend:!0}))},77753:(e,t,n)=>{"use strict";n.r(t),n.d(t,{GlobalStyles:()=>x.A,StyledEngineProvider:()=>b.A,ThemeContext:()=>l.T,css:()=>v.AH,default:()=>w,internal_processStyles:()=>A,keyframes:()=>v.i7});var r=n(51559),i=n(30538),o=n(48998),a=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,s=(0,o.A)((function(e){return a.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),l=n(18321),c=n(40106),u=n(93372),d=n(88946),h=s,p=function(e){return"theme"!==e},f=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?h:p},g=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},m=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return(0,c.SF)(t,n,r),(0,d.s)((function(){return(0,c.sk)(t,n,r)})),null},y=function e(t,n){var o,a,s=t.__emotion_real===t,d=s&&t.__emotion_base||t;void 0!==n&&(o=n.label,a=n.target);var h=g(t,n,s),p=h||f(d),y=!p("as");return function(){var v=arguments,b=s&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==o&&b.push("label:"+o+";"),null==v[0]||void 0===v[0].raw)b.push.apply(b,v);else{0,b.push(v[0][0]);for(var x=v.length,w=1;w{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}},59015:(e,t,n)=>{"use strict";var r=n(43501);t.X4=p,t.e$=f,t.tL=m,t.eM=function(e,t){const n=h(e),r=h(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},t.a=g;var i=r(n(25286)),o=r(n(76772));function a(e,t=0,n=1){return(0,o.default)(e,t,n)}function s(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function l(e){if(e.type)return e;if("#"===e.charAt(0))return l(s(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,i.default)(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error((0,i.default)(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}const c=e=>{const t=l(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};function u(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function d(e){e=l(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),a=(e,t=(e+n/30)%12)=>i-o*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const c=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",c.push(t[3])),u({type:s,values:c})}function h(e){let t="hsl"===(e=l(e)).type||"hsla"===e.type?l(d(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function p(e,t){return e=l(e),t=a(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,u(e)}function f(e,t){if(e=l(e),t=a(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return u(e)}function g(e,t){if(e=l(e),t=a(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return u(e)}function m(e,t=.15){return h(e)>.5?f(e,t):g(e,t)}},15841:(e,t,n)=>{"use strict";var r=n(43501);t.Ay=function(e={}){const{themeId:t,defaultTheme:n=g,rootShouldForwardProp:r=f,slotShouldForwardProp:l=f}=e,u=e=>(0,c.default)((0,i.default)({},e,{theme:y((0,i.default)({},e,{defaultTheme:n,themeId:t}))}));return u.__mui_systemSx=!0,(e,c={})=>{(0,a.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:d,slot:p,skipVariantsResolver:g,skipSx:x,overridesResolver:w=v(m(p))}=c,A=(0,o.default)(c,h),S=void 0!==g?g:p&&"Root"!==p&&"root"!==p||!1,C=x||!1;let E=f;"Root"===p||"root"===p?E=r:p?E=l:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(E=void 0);const _=(0,a.default)(e,(0,i.default)({shouldForwardProp:E,label:undefined},A)),k=e=>"function"==typeof e&&e.__emotion_real!==e||(0,s.isPlainObject)(e)?r=>b(e,(0,i.default)({},r,{theme:y({theme:r.theme,defaultTheme:n,themeId:t})})):e,T=(r,...o)=>{let a=k(r);const s=o?o.map(k):[];d&&w&&s.push((e=>{const r=y((0,i.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[d]||!r.components[d].styleOverrides)return null;const o=r.components[d].styleOverrides,a={};return Object.entries(o).forEach((([t,n])=>{a[t]=b(n,(0,i.default)({},e,{theme:r}))})),w(e,a)})),d&&!S&&s.push((e=>{var r;const o=y((0,i.default)({},e,{defaultTheme:n,themeId:t}));return b({variants:null==o||null==(r=o.components)||null==(r=r[d])?void 0:r.variants},(0,i.default)({},e,{theme:o}))})),C||s.push(u);const l=s.length-o.length;if(Array.isArray(r)&&l>0){const e=new Array(l).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const c=_(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return _.withConfig&&(T.withConfig=_.withConfig),T}};var i=r(n(52305)),o=r(n(16112)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=p(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(77753)),s=n(82629),l=(r(n(8295)),r(n(63526)),r(n(21050))),c=r(n(4725));const u=["ownerState"],d=["variants"],h=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(p=function(e){return e?n:t})(e)}function f(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const g=(0,l.default)(),m=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function y({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function v(e){return e?(t,n)=>n[e]:null}function b(e,t){let{ownerState:n}=t,r=(0,o.default)(t,u);const a="function"==typeof e?e((0,i.default)({ownerState:n},r)):e;if(Array.isArray(a))return a.flatMap((e=>b(e,(0,i.default)({ownerState:n},r))));if(a&&"object"==typeof a&&Array.isArray(a.variants)){const{variants:e=[]}=a;let t=(0,o.default)(a,d);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,i.default)({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,i.default)({ownerState:n},r,n)):e.style))})),t}return a}},39160:(e,t,n)=>{"use strict";n.d(t,{A:()=>u,I:()=>c});var r=n(51559),i=n(73342),o=n(30538),a=n(97282);const s=["value"],l=o.createContext();const c=()=>{const e=o.useContext(l);return null!=e&&e},u=function(e){let{value:t}=e,n=(0,i.A)(e,s);return(0,a.jsx)(l.Provider,(0,r.A)({value:null==t||t},n))}},63496:(e,t,n)=>{"use strict";n.d(t,{EU:()=>s,NI:()=>a,iZ:()=>c,kW:()=>u,vf:()=>l,zu:()=>i});var r=n(43271);const i={xs:0,sm:600,md:900,lg:1200,xl:1536},o={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${i[e]}px)`};function a(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||o;return t.reduce(((r,i,o)=>(r[e.up(e.keys[o])]=n(t[o]),r)),{})}if("object"==typeof t){const e=r.breakpoints||o;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||i).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function s(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}function l(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}function c(e,...t){const n=s(e),i=[n,...t].reduce(((e,t)=>(0,r.A)(e,t)),{});return l(Object.keys(n),i)}function u({values:e,breakpoints:t,base:n}){const r=n||function(e,t){if("object"!=typeof e)return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach(((t,r)=>{r{null!=e[t]&&(n[t]=!0)})),n}(e,t),i=Object.keys(r);if(0===i.length)return e;let o;return i.reduce(((t,n,r)=>(Array.isArray(e)?(t[n]=null!=e[r]?e[r]:e[o],o=r):"object"==typeof e?(t[n]=null!=e[n]?e[n]:e[o],o=n):t[n]=e,t)),{})}},41795:(e,t,n)=>{"use strict";n.d(t,{X4:()=>l,a:()=>u,e$:()=>c});var r=n(88207),i=n(75031);function o(e,t=0,n=1){return(0,i.A)(e,t,n)}function a(e){if(e.type)return e;if("#"===e.charAt(0))return a(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,r.A)(9,e));let i,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),i=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i))throw new Error((0,r.A)(10,i))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:i}}function s(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function l(e,t){return e=a(e),t=o(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,s(e)}function c(e,t){if(e=a(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return s(e)}function u(e,t){if(e=a(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return s(e)}},10380:(e,t,n)=>{"use strict";function r(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){const r=n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[r]:t}}return n.palette.mode===e?t:{}}n.d(t,{A:()=>r})},99314:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(73342),i=n(51559);const o=["values","unit","step"],a=e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>(0,i.A)({},e,{[t.key]:t.val})),{})};function s(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:s=5}=e,l=(0,r.A)(e,o),c=a(t),u=Object.keys(c);function d(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function h(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-s/100}${n})`}function p(e,r){const i=u.indexOf(r);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[u[i]]?t[u[i]]:r)-s/100}${n})`}return(0,i.A)({keys:u,values:c,up:d,down:h,between:p,only:function(e){return u.indexOf(e)+1{"use strict";n.d(t,{A:()=>p});var r=n(51559),i=n(73342),o=n(43271),a=n(99314);const s={borderRadius:4};var l=n(3820);var c=n(22311),u=n(6856),d=n(10380);const h=["breakpoints","palette","spacing","shape"];const p=function(e={},...t){const{breakpoints:n={},palette:p={},spacing:f,shape:g={}}=e,m=(0,i.A)(e,h),y=(0,a.A)(n),v=function(e=8){if(e.mui)return e;const t=(0,l.LX)({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}(f);let b=(0,o.A)({breakpoints:y,direction:"ltr",components:{},palette:(0,r.A)({mode:"light"},p),spacing:v,shape:(0,r.A)({},s,g)},m);return b.applyStyles=d.A,b=t.reduce(((e,t)=>(0,o.A)(e,t)),b),b.unstable_sxConfig=(0,r.A)({},u.A,null==m?void 0:m.unstable_sxConfig),b.unstable_sx=function(e){return(0,c.A)({sx:e,theme:this})},b}},21050:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A,private_createBreakpoints:()=>i.A,unstable_applyStyles:()=>o.A});var r=n(84657),i=n(99314),o=n(10380)},62648:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(43271);const i=function(e,t){return t?(0,r.A)(e,t,{clone:!1}):e}},3820:(e,t,n)=>{"use strict";n.d(t,{LX:()=>f,MA:()=>p,_W:()=>g,Lc:()=>v,Ms:()=>b});var r=n(63496),i=n(44197),o=n(62648);const a={m:"margin",p:"padding"},s={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},l={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},c=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!l[e])return[e];e=l[e]}const[t,n]=e.split(""),r=a[t],i=s[n]||"";return Array.isArray(i)?i.map((e=>r+e)):[r+i]})),u=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],d=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],h=[...u,...d];function p(e,t,n,r){var o;const a=null!=(o=(0,i.Yn)(e,t,!1))?o:n;return"number"==typeof a?e=>"string"==typeof e?e:a*e:Array.isArray(a)?e=>"string"==typeof e?e:a[e]:"function"==typeof a?a:()=>{}}function f(e){return p(e,"spacing",8)}function g(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function m(e,t,n,i){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=g(t,n),e)),{})}(c(n),i),a=e[n];return(0,r.NI)(e,a,o)}function y(e,t){const n=f(e.theme);return Object.keys(e).map((r=>m(e,t,r,n))).reduce(o.A,{})}function v(e){return y(e,u)}function b(e){return y(e,d)}function x(e){return y(e,h)}v.propTypes={},v.filterProps=u,b.propTypes={},b.filterProps=d,x.propTypes={},x.filterProps=h},44197:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s,BO:()=>a,Yn:()=>o});var r=n(2681),i=n(63496);function o(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function a(e,t,n,r=n){let i;return i="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:o(e,n)||r,t&&(i=t(i,r,e)),i}const s=function(e){const{prop:t,cssProperty:n=e.prop,themeKey:s,transform:l}=e,c=e=>{if(null==e[t])return null;const c=e[t],u=o(e.theme,s)||{};return(0,i.NI)(e,c,(e=>{let i=a(u,l,e);return e===i&&"string"==typeof e&&(i=a(u,l,`${t}${"default"===e?"":(0,r.A)(e)}`,e)),!1===n?i:{[n]:i}}))};return c.propTypes={},c.filterProps=[t],c}},6856:(e,t,n)=>{"use strict";n.d(t,{A:()=>R});var r=n(3820),i=n(44197),o=n(62648);const a=function(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?(0,o.A)(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n};var s=n(63496);function l(e){return"number"!=typeof e?e:`${e}px solid`}function c(e,t){return(0,i.Ay)({prop:e,themeKey:"borders",transform:t})}const u=c("border",l),d=c("borderTop",l),h=c("borderRight",l),p=c("borderBottom",l),f=c("borderLeft",l),g=c("borderColor"),m=c("borderTopColor"),y=c("borderRightColor"),v=c("borderBottomColor"),b=c("borderLeftColor"),x=c("outline",l),w=c("outlineColor"),A=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=(0,r.MA)(e.theme,"shape.borderRadius",4,"borderRadius"),n=e=>({borderRadius:(0,r._W)(t,e)});return(0,s.NI)(e,e.borderRadius,n)}return null};A.propTypes={},A.filterProps=["borderRadius"];a(u,d,h,p,f,g,m,y,v,b,A,x,w);const S=e=>{if(void 0!==e.gap&&null!==e.gap){const t=(0,r.MA)(e.theme,"spacing",8,"gap"),n=e=>({gap:(0,r._W)(t,e)});return(0,s.NI)(e,e.gap,n)}return null};S.propTypes={},S.filterProps=["gap"];const C=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=(0,r.MA)(e.theme,"spacing",8,"columnGap"),n=e=>({columnGap:(0,r._W)(t,e)});return(0,s.NI)(e,e.columnGap,n)}return null};C.propTypes={},C.filterProps=["columnGap"];const E=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=(0,r.MA)(e.theme,"spacing",8,"rowGap"),n=e=>({rowGap:(0,r._W)(t,e)});return(0,s.NI)(e,e.rowGap,n)}return null};E.propTypes={},E.filterProps=["rowGap"];a(S,C,E,(0,i.Ay)({prop:"gridColumn"}),(0,i.Ay)({prop:"gridRow"}),(0,i.Ay)({prop:"gridAutoFlow"}),(0,i.Ay)({prop:"gridAutoColumns"}),(0,i.Ay)({prop:"gridAutoRows"}),(0,i.Ay)({prop:"gridTemplateColumns"}),(0,i.Ay)({prop:"gridTemplateRows"}),(0,i.Ay)({prop:"gridTemplateAreas"}),(0,i.Ay)({prop:"gridArea"}));function _(e,t){return"grey"===t?t:e}a((0,i.Ay)({prop:"color",themeKey:"palette",transform:_}),(0,i.Ay)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:_}),(0,i.Ay)({prop:"backgroundColor",themeKey:"palette",transform:_}));function k(e){return e<=1&&0!==e?100*e+"%":e}const T=(0,i.Ay)({prop:"width",transform:k}),O=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const i=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||s.zu[t];return i?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:k(t)}};return(0,s.NI)(e,e.maxWidth,t)}return null};O.filterProps=["maxWidth"];const P=(0,i.Ay)({prop:"minWidth",transform:k}),I=(0,i.Ay)({prop:"height",transform:k}),M=(0,i.Ay)({prop:"maxHeight",transform:k}),L=(0,i.Ay)({prop:"minHeight",transform:k}),R=((0,i.Ay)({prop:"size",cssProperty:"width",transform:k}),(0,i.Ay)({prop:"size",cssProperty:"height",transform:k}),a(T,O,P,I,M,L,(0,i.Ay)({prop:"boxSizing"})),{border:{themeKey:"borders",transform:l},borderTop:{themeKey:"borders",transform:l},borderRight:{themeKey:"borders",transform:l},borderBottom:{themeKey:"borders",transform:l},borderLeft:{themeKey:"borders",transform:l},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:l},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:A},color:{themeKey:"palette",transform:_},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:_},backgroundColor:{themeKey:"palette",transform:_},p:{style:r.Ms},pt:{style:r.Ms},pr:{style:r.Ms},pb:{style:r.Ms},pl:{style:r.Ms},px:{style:r.Ms},py:{style:r.Ms},padding:{style:r.Ms},paddingTop:{style:r.Ms},paddingRight:{style:r.Ms},paddingBottom:{style:r.Ms},paddingLeft:{style:r.Ms},paddingX:{style:r.Ms},paddingY:{style:r.Ms},paddingInline:{style:r.Ms},paddingInlineStart:{style:r.Ms},paddingInlineEnd:{style:r.Ms},paddingBlock:{style:r.Ms},paddingBlockStart:{style:r.Ms},paddingBlockEnd:{style:r.Ms},m:{style:r.Lc},mt:{style:r.Lc},mr:{style:r.Lc},mb:{style:r.Lc},ml:{style:r.Lc},mx:{style:r.Lc},my:{style:r.Lc},margin:{style:r.Lc},marginTop:{style:r.Lc},marginRight:{style:r.Lc},marginBottom:{style:r.Lc},marginLeft:{style:r.Lc},marginX:{style:r.Lc},marginY:{style:r.Lc},marginInline:{style:r.Lc},marginInlineStart:{style:r.Lc},marginInlineEnd:{style:r.Lc},marginBlock:{style:r.Lc},marginBlockStart:{style:r.Lc},marginBlockEnd:{style:r.Lc},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:S},rowGap:{style:E},columnGap:{style:C},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:k},maxWidth:{style:O},minWidth:{transform:k},height:{transform:k},maxHeight:{transform:k},minHeight:{transform:k},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}})},25779:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(51559),i=n(73342),o=n(43271),a=n(6856);const s=["sx"],l=e=>{var t,n;const r={systemProps:{},otherProps:{}},i=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:a.A;return Object.keys(e).forEach((t=>{i[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function c(e){const{sx:t}=e,n=(0,i.A)(e,s),{systemProps:a,otherProps:c}=l(n);let u;return u=Array.isArray(t)?[a,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return(0,o.Q)(n)?(0,r.A)({},a,n):a}:(0,r.A)({},a,t),(0,r.A)({},c,{sx:u})}},4725:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A,extendSxProp:()=>i.A,unstable_createStyleFunctionSx:()=>r.k,unstable_defaultSxConfig:()=>o.A});var r=n(22311),i=n(25779),o=n(6856)},22311:(e,t,n)=>{"use strict";n.d(t,{A:()=>u,k:()=>l});var r=n(2681),i=n(62648),o=n(44197),a=n(63496),s=n(6856);function l(){function e(e,t,n,i){const s={[e]:t,theme:n},l=i[e];if(!l)return{[e]:t};const{cssProperty:c=e,themeKey:u,transform:d,style:h}=l;if(null==t)return null;if("typography"===u&&"inherit"===t)return{[e]:t};const p=(0,o.Yn)(n,u)||{};if(h)return h(s);return(0,a.NI)(s,t,(t=>{let n=(0,o.BO)(p,d,t);return t===n&&"string"==typeof t&&(n=(0,o.BO)(p,d,`${e}${"default"===t?"":(0,r.A)(t)}`,t)),!1===c?n:{[c]:n}}))}return function t(n){var r;const{sx:o,theme:l={}}=n||{};if(!o)return null;const c=null!=(r=l.unstable_sxConfig)?r:s.A;function u(n){let r=n;if("function"==typeof n)r=n(l);else if("object"!=typeof n)return n;if(!r)return null;const o=(0,a.EU)(l.breakpoints),s=Object.keys(o);let u=o;return Object.keys(r).forEach((n=>{const o=(s=r[n],d=l,"function"==typeof s?s(d):s);var s,d;if(null!=o)if("object"==typeof o)if(c[n])u=(0,i.A)(u,e(n,o,l,c));else{const e=(0,a.NI)({theme:l},o,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,o)?u=(0,i.A)(u,e):u[n]=t({sx:o,theme:l})}else u=(0,i.A)(u,e(n,o,l,c))})),(0,a.vf)(s,u)}return Array.isArray(o)?o.map(u):u(o)}}const c=l();c.filterProps=["sx"];const u=c},6467:(e,t,n)=>{"use strict";var r;n.d(t,{A:()=>d});var i=n(30538),o=n(43107),a=n(17112),s=n(80187);function l(e,t,n,r,a){const[s,l]=i.useState((()=>a&&n?n(e).matches:r?r(e).matches:t));return(0,o.A)((()=>{let t=!0;if(!n)return;const r=n(e),i=()=>{t&&l(r.matches)};return i(),r.addListener(i),()=>{t=!1,r.removeListener(i)}}),[e,n]),s}const c=(r||(r=n.t(i,2))).useSyncExternalStore;function u(e,t,n,r,o){const a=i.useCallback((()=>t),[t]),s=i.useMemo((()=>{if(o&&n)return()=>n(e).matches;if(null!==r){const{matches:t}=r(e);return()=>t}return a}),[a,e,r,o,n]),[l,u]=i.useMemo((()=>{if(null===n)return[a,()=>()=>{}];const t=n(e);return[()=>t.matches,e=>(t.addListener(e),()=>{t.removeListener(e)})]}),[a,n,e]);return c(u,l,s)}function d(e,t={}){const n=(0,s.A)(),r="undefined"!=typeof window&&void 0!==window.matchMedia,{defaultMatches:i=!1,matchMedia:o=(r?window.matchMedia:null),ssrMatchMedia:d=null,noSsr:h=!1}=(0,a.A)({name:"MuiUseMediaQuery",props:t,theme:n});let p="function"==typeof e?e(n):e;p=p.replace(/^@media( ?)/m,"");return(void 0!==c?u:l)(p,i,o,d,h)}},38382:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(84657),i=n(80187);const o=(0,r.A)();const a=function(e=o){return(0,i.A)(e)}},17112:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(7757);function i(e){const{theme:t,name:n,props:i}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?(0,r.A)(t.components[n].defaultProps,i):i}},92775:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(17112),i=n(38382);function o({props:e,name:t,defaultTheme:n,themeId:o}){let a=(0,i.A)(n);o&&(a=a[o]||a);return(0,r.A)({theme:a,name:t,props:e})}},80187:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(30538),i=n(18321);const o=function(e=null){const t=r.useContext(i.T);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}},98767:(e,t,n)=>{"use strict";t.A=void 0;var r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(n(30538)),i=n(77753);function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}t.A=function(e=null){const t=r.useContext(i.ThemeContext);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}},58337:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});const r=e=>e,i=(()=>{let e=r;return{configure(t){e=t},generate:t=>e(t),reset(){e=r}}})()},2681:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(88207);function i(e){if("string"!=typeof e)throw new Error((0,r.A)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},8295:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A});var r=n(2681)},75031:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}},76772:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A});var r=n(75031)},32829:(e,t,n)=>{"use strict";function r(e,t,n=void 0){const r={};return Object.keys(e).forEach((i=>{r[i]=e[i].reduce(((e,r)=>{if(r){const i=t(r);""!==i&&e.push(i),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}n.d(t,{A:()=>r})},96339:(e,t,n)=>{"use strict";function r(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}n.d(t,{A:()=>r})},6995:(e,t,n)=>{"use strict";function r(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}n.d(t,{A:()=>r})},43271:(e,t,n)=>{"use strict";n.d(t,{A:()=>a,Q:()=>i});var r=n(51559);function i(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function o(e){if(!i(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=o(e[n])})),t}function a(e,t,n={clone:!0}){const s=n.clone?(0,r.A)({},e):e;return i(e)&&i(t)&&Object.keys(t).forEach((r=>{"__proto__"!==r&&(i(t[r])&&r in e&&i(e[r])?s[r]=a(e[r],t[r],n):n.clone?s[r]=i(t[r])?o(t[r]):t[r]:s[r]=t[r])})),s}},82629:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A,isPlainObject:()=>r.Q});var r=n(43271)},88207:(e,t,n)=>{"use strict";function r(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;er})},25286:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A});var r=n(88207)},24115:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>o,li:()=>i});var r=n(58337);const i={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function o(e,t,n="Mui"){const o=i[t];return o?`${n}-${o}`:`${r.A.generate(e)}-${t}`}},5007:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(24115);function i(e,t,n="Mui"){const i={};return t.forEach((t=>{i[t]=(0,r.Ay)(e,t,n)})),i}},63526:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l,getFunctionName:()=>o});var r=n(91272);const i=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function o(e){const t=`${e}`.match(i);return t&&t[1]||""}function a(e,t=""){return e.displayName||e.name||o(e)||t}function s(e,t,n){const r=a(t);return e.displayName||(""!==r?`${n}(${r})`:n)}function l(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return a(e,"Component");if("object"==typeof e)switch(e.$$typeof){case r.ForwardRef:return s(e,e.render,"ForwardRef");case r.Memo:return s(e,e.type,"memo");default:return}}}},38935:(e,t,n)=>{"use strict";function r(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}n.d(t,{A:()=>r})},74311:(e,t,n)=>{"use strict";function r(e){return e&&e.ownerDocument||document}n.d(t,{A:()=>r})},56023:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(74311);function i(e){return(0,r.A)(e).defaultView||window}},1967:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(22300),i=n.n(r);const o=i().oneOfType([i().func,i().object])},7757:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(51559);function i(e,t){const n=(0,r.A)({},t);return Object.keys(e).forEach((o=>{if(o.toString().match(/^(components|slots)$/))n[o]=(0,r.A)({},e[o],n[o]);else if(o.toString().match(/^(componentsProps|slotProps)$/)){const a=e[o]||{},s=t[o];n[o]={},s&&Object.keys(s)?a&&Object.keys(a)?(n[o]=(0,r.A)({},s),Object.keys(a).forEach((e=>{n[o][e]=i(a[e],s[e])}))):n[o]=s:n[o]=a}else void 0===n[o]&&(n[o]=e[o])})),n}},54175:(e,t,n)=>{"use strict";function r(e,t){"function"==typeof e?e(t):e&&(e.current=t)}n.d(t,{A:()=>r})},63095:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(30538);function i({controlled:e,default:t,name:n,state:i="value"}){const{current:o}=r.useRef(void 0!==e),[a,s]=r.useState(t);return[o?e:a,r.useCallback((e=>{o||s(e)}),[])]}},43107:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(30538);const i="undefined"!=typeof window?r.useLayoutEffect:r.useEffect},18605:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(30538),i=n(43107);const o=function(e){const t=r.useRef(e);return(0,i.A)((()=>{t.current=e})),r.useRef(((...e)=>(0,t.current)(...e))).current}},18029:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(30538),i=n(54175);function o(...e){return r.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{(0,i.A)(e,t)}))}),e)}},5391:(e,t,n)=>{"use strict";var r;n.d(t,{A:()=>s});var i=n(30538);let o=0;const a=(r||(r=n.t(i,2)))["useId".toString()];function s(e){if(void 0!==a){const t=a();return null!=e?e:t}return function(e){const[t,n]=i.useState(e),r=e||t;return i.useEffect((()=>{null==t&&(o+=1,n(`mui-${o}`))}),[t]),r}(e)}},73499:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(30538),i=n(8734);let o=!0,a=!1;const s=new i.E,l={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function c(e){e.metaKey||e.altKey||e.ctrlKey||(o=!0)}function u(){o=!1}function d(){"hidden"===this.visibilityState&&a&&(o=!0)}function h(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return o||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!l[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function p(){const e=r.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",c,!0),t.addEventListener("mousedown",u,!0),t.addEventListener("pointerdown",u,!0),t.addEventListener("touchstart",u,!0),t.addEventListener("visibilitychange",d,!0))}),[]),t=r.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!h(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(a=!0,s.start(100,(()=>{a=!1})),t.current=!1,!0)},ref:e}}},8734:(e,t,n)=>{"use strict";n.d(t,{E:()=>a,A:()=>s});var r=n(30538);const i={};const o=[];class a{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new a}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function s(){const e=function(e,t){const n=r.useRef(i);return n.current===i&&(n.current=e(t)),n}(a.create).current;var t;return t=e.disposeEffect,r.useEffect(t,o),e}},48269:(e,t,n)=>{"use strict";n.d(t,{x:()=>st});var r=n(73342),i=n(51559),o=n(30538),a=n(87286),s=n(94267),l=n(87507),c=n(58990),u=n(32829),d=n(5391),h=n(18605),p=n(61228),f=n(34667);const g=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:i,disableFuture:a,disablePast:s,timezone:l})=>{const c=(0,f.u)();return o.useCallback((o=>null!==(0,p.Z)({adapter:c,value:o,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:i,disableFuture:a,disablePast:s,timezone:l}})),[c,e,t,n,r,i,a,s,l])};var m=n(99559),y=n(57696);const v=e=>{const{value:t,referenceDate:n,defaultCalendarMonth:r,disableFuture:a,disablePast:s,disableSwitchToMonthOnDayFocus:l=!1,maxDate:c,minDate:u,onMonthChange:d,reduceAnimations:p,shouldDisableDate:v,timezone:b}=e,x=(0,f.hc)(),w=o.useRef(((e,t,n)=>(r,o)=>{switch(o.type){case"changeMonth":return(0,i.A)({},r,{slideDirection:o.direction,currentMonth:o.newMonth,isMonthSwitchingAnimating:!e});case"finishMonthSwitchingAnimation":return(0,i.A)({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(null!=r.focusedDay&&null!=o.focusedDay&&n.isSameDay(o.focusedDay,r.focusedDay))return r;const a=null!=o.focusedDay&&!t&&!n.isSameMonth(r.currentMonth,o.focusedDay);return(0,i.A)({},r,{focusedDay:o.focusedDay,isMonthSwitchingAnimating:a&&!e&&!o.withoutMonthSwitchingAnimation,currentMonth:a?n.startOfMonth(o.focusedDay):r.currentMonth,slideDirection:null!=o.focusedDay&&n.isAfterDay(o.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}})(Boolean(p),l,x)).current,A=o.useMemo((()=>{let i=null;return n?i=n:r&&(i=x.startOfMonth(r)),m.W.getInitialReferenceValue({value:t,utils:x,timezone:b,props:e,referenceDate:i,granularity:y.yX.day})}),[]),[S,C]=o.useReducer(w,{isMonthSwitchingAnimating:!1,focusedDay:A,currentMonth:x.startOfMonth(A),slideDirection:"left"}),E=o.useCallback((e=>{C((0,i.A)({type:"changeMonth"},e)),d&&d(e.newMonth)}),[d]),_=o.useCallback((e=>{const t=e;x.isSameMonth(t,S.currentMonth)||E({newMonth:x.startOfMonth(t),direction:x.isAfterDay(t,S.currentMonth)?"left":"right"})}),[S.currentMonth,E,x]),k=g({shouldDisableDate:v,minDate:u,maxDate:c,disableFuture:a,disablePast:s,timezone:b}),T=o.useCallback((()=>{C({type:"finishMonthSwitchingAnimation"})}),[]),O=(0,h.A)(((e,t)=>{k(e)||C({type:"changeFocusedDay",focusedDay:e,withoutMonthSwitchingAnimation:t})}));return{referenceDate:A,calendarState:S,changeMonth:_,changeFocusedDay:O,isDateDisabled:k,onMonthSwitchingAnimationEnd:T,handleChangeMonth:E}};var b=n(37091),x=n(68127),w=n(94145),A=n(24115),S=n(5007);const C=e=>(0,A.Ay)("MuiPickersFadeTransitionGroup",e);(0,S.A)("MuiPickersFadeTransitionGroup",["root"]);var E=n(97282);const _=(0,c.Ay)(b.A,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function k(e){const t=(0,l.A)({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:i,transKey:o}=t,s=(e=>{const{classes:t}=e;return(0,u.A)({root:["root"]},C,t)})(t),c=(0,w.A)();return i?n:(0,E.jsx)(_,{className:(0,a.A)(s.root,r),children:(0,E.jsx)(x.A,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:c.transitions.duration.enteringScreen,enter:c.transitions.duration.enteringScreen,exit:0},children:n},o)})}var T=n(91031),O=n(63095),P=n(92004),I=n(18029),M=n(43107),L=n(41795),R=n(8589);function j(e){return(0,A.Ay)("MuiPickersDay",e)}const F=(0,S.A)("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),D=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],N=({theme:e,ownerState:t})=>(0,i.A)({},e.typography.caption,{width:R.B3,height:R.B3,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),color:(e.vars||e).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,L.X4)(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:(0,L.X4)(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${F.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${F.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightMedium,"&:hover":{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${F.disabled}:not(.${F.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${F.disabled}&.${F.selected}`]:{opacity:.6}},!t.disableMargin&&{margin:`0 ${R.y0}px`},t.outsideCurrentMonth&&t.showDaysOutsideCurrentMonth&&{color:(e.vars||e).palette.text.secondary},!t.disableHighlightToday&&t.today&&{[`&:not(.${F.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}),z=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.today&&t.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},V=(0,c.Ay)(P.A,{name:"MuiPickersDay",slot:"Root",overridesResolver:z})(N),B=(0,c.Ay)("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:z})((({theme:e,ownerState:t})=>(0,i.A)({},N({theme:e,ownerState:t}),{opacity:0,pointerEvents:"none"}))),$=()=>{},G=o.forwardRef((function(e,t){const n=(0,l.A)({props:e,name:"MuiPickersDay"}),{autoFocus:s=!1,className:c,day:d,disabled:h=!1,disableHighlightToday:p=!1,disableMargin:g=!1,isAnimating:m,onClick:y,onDaySelect:v,onFocus:b=$,onBlur:x=$,onKeyDown:w=$,onMouseDown:A=$,onMouseEnter:S=$,outsideCurrentMonth:C,selected:_=!1,showDaysOutsideCurrentMonth:k=!1,children:T,today:O=!1}=n,P=(0,r.A)(n,D),L=(0,i.A)({},n,{autoFocus:s,disabled:h,disableHighlightToday:p,disableMargin:g,selected:_,showDaysOutsideCurrentMonth:k,today:O}),R=(e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:i,disabled:o,outsideCurrentMonth:a,showDaysOutsideCurrentMonth:s,classes:l}=e,c=a&&!s,d={root:["root",t&&!c&&"selected",o&&"disabled",!n&&"dayWithMargin",!r&&i&&"today",a&&s&&"dayOutsideMonth",c&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]};return(0,u.A)(d,j,l)})(L),F=(0,f.hc)(),N=o.useRef(null),z=(0,I.A)(N,t);(0,M.A)((()=>{!s||h||m||C||N.current.focus()}),[s,h,m,C]);return C&&!k?(0,E.jsx)(B,{className:(0,a.A)(R.root,R.hiddenDaySpacingFiller,c),ownerState:L,role:P.role}):(0,E.jsx)(V,(0,i.A)({className:(0,a.A)(R.root,c),ref:z,centerRipple:!0,disabled:h,tabIndex:_?0:-1,onKeyDown:e=>w(e,d),onFocus:e=>b(e,d),onBlur:e=>x(e,d),onMouseEnter:e=>S(e,d),onClick:e=>{h||v(d),C&&e.currentTarget.focus(),y&&y(e)},onMouseDown:e=>{A(e),C&&e.preventDefault()}},P,{ownerState:L,children:T||F.format(d,"dayOfMonth")}))})),U=o.memo(G);var W=n(99364);function q(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var H=n(89272),Y=n(97814),K=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"==typeof n.className?n.className=q(n.className,r):n.setAttribute("class",q(n.className&&n.className.baseVal||"",r)));var n,r}))},X=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i(0,A.Ay)("MuiPickersSlideTransition",e),Q=(0,S.A)("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),ee=["children","className","reduceAnimations","slideDirection","transKey","classes"],te=(0,c.Ay)(b.A,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${Q["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${Q["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${Q.slideEnterActive}`]:t.slideEnterActive},{[`.${Q.slideExit}`]:t.slideExit},{[`.${Q["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${Q["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})((({theme:e})=>{const t=e.transitions.create("transform",{duration:e.transitions.duration.complex,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${Q["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${Q["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${Q.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${Q.slideExit}`]:{transform:"translate(0%)"},[`& .${Q["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${Q["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}}));var ne=n(84316);const re=e=>(0,A.Ay)("MuiDayCalendar",e),ie=((0,S.A)("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]),["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"]),oe=["ownerState"],ae=6*(R.B3+2*R.y0),se=(0,c.Ay)("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),le=(0,c.Ay)("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),ce=(0,c.Ay)(T.A,{name:"MuiDayCalendar",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.weekDayLabel})((({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.secondary}))),ue=(0,c.Ay)(T.A,{name:"MuiDayCalendar",slot:"WeekNumberLabel",overridesResolver:(e,t)=>t.weekNumberLabel})((({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.disabled}))),de=(0,c.Ay)(T.A,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})((({theme:e})=>(0,i.A)({},e.typography.caption,{width:R.B3,height:R.B3,padding:0,margin:`0 ${R.y0}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"}))),he=(0,c.Ay)("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:ae}),pe=(0,c.Ay)((function(e){const t=(0,l.A)({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:s,reduceAnimations:c,transKey:d}=t,h=(0,r.A)(t,ee),p=(e=>{const{classes:t,slideDirection:n}=e,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return(0,u.A)(r,J,t)})(t),f=(0,w.A)();if(c)return(0,E.jsx)("div",{className:(0,a.A)(p.root,s),children:n});const g={exit:p.exit,enterActive:p.enterActive,enter:p.enter,exitActive:p.exitActive};return(0,E.jsx)(te,{className:(0,a.A)(p.root,s),childFactory:e=>o.cloneElement(e,{classNames:g}),role:"presentation",children:(0,E.jsx)(Z,(0,i.A)({mountOnEnter:!0,unmountOnExit:!0,timeout:f.transitions.duration.complex,classNames:g},h,{children:n}),d)})}),{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:ae}),fe=(0,c.Ay)("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),ge=(0,c.Ay)("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${R.y0}px 0`,display:"flex",justifyContent:"center"});function me(e){var t,n,a;let{parentProps:l,day:c,focusableDay:u,selectedDays:d,isDateDisabled:h,currentMonthNumber:p,isViewFocused:g}=e,m=(0,r.A)(e,ie);const{disabled:y,disableHighlightToday:v,isMonthSwitchingAnimating:b,showDaysOutsideCurrentMonth:x,components:w,componentsProps:A,slots:S,slotProps:C,timezone:_}=l,k=(0,f.hc)(),T=(0,f.cB)(_),O=null!==u&&k.isSameDay(c,u),P=d.some((e=>k.isSameDay(e,c))),I=k.isSameDay(c,T),M=null!=(t=null!=(n=null==S?void 0:S.day)?n:null==w?void 0:w.Day)?t:U,L=(0,s.Q)({elementType:M,externalSlotProps:null!=(a=null==C?void 0:C.day)?a:null==A?void 0:A.day,additionalProps:(0,i.A)({disableHighlightToday:v,showDaysOutsideCurrentMonth:x,role:"gridcell",isAnimating:b,"data-timestamp":k.toJsDate(c).valueOf()},m),ownerState:(0,i.A)({},l,{day:c,selected:P})}),R=(0,r.A)(L,oe),j=o.useMemo((()=>y||h(c)),[y,h,c]),F=o.useMemo((()=>k.getMonth(c)!==p),[k,c,p]),D=o.useMemo((()=>{const e=k.startOfMonth(k.setMonth(c,p));return x?k.isSameDay(c,k.startOfWeek(e)):k.isSameDay(c,e)}),[p,c,x,k]),N=o.useMemo((()=>{const e=k.endOfMonth(k.setMonth(c,p));return x?k.isSameDay(c,k.endOfWeek(e)):k.isSameDay(c,e)}),[p,c,x,k]);return(0,E.jsx)(M,(0,i.A)({},R,{day:c,disabled:j,autoFocus:g&&O,today:I,outsideCurrentMonth:F,isFirstVisibleCell:D,isLastVisibleCell:N,selected:P,tabIndex:O?0:-1,"aria-selected":P,"aria-current":I?"date":void 0}))}function ye(e){const t=(0,l.A)({props:e,name:"MuiDayCalendar"}),{onFocusedDayChange:n,className:r,currentMonth:s,selectedDays:c,focusedDay:d,loading:p,onSelectedDaysChange:m,onMonthSwitchingAnimationEnd:y,readOnly:v,reduceAnimations:b,renderLoading:x=(()=>(0,E.jsx)("span",{children:"..."})),slideDirection:A,TransitionProps:S,disablePast:C,disableFuture:_,minDate:k,maxDate:T,shouldDisableDate:P,shouldDisableMonth:I,shouldDisableYear:M,dayOfWeekFormatter:L,hasFocus:R,onFocusedViewChange:j,gridLabelId:F,displayWeekNumber:D,fixedWeekNumber:N,autoFocus:z,timezone:V}=t,B=(0,f.cB)(V),$=(0,f.hc)(),G=(e=>{const{classes:t}=e;return(0,u.A)({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},re,t)})(t),U="rtl"===(0,w.A)().direction,W=L||((e,t)=>$.format(t,"weekdayShort").charAt(0).toUpperCase()),q=g({shouldDisableDate:P,shouldDisableMonth:I,shouldDisableYear:M,minDate:k,maxDate:T,disablePast:C,disableFuture:_,timezone:V}),H=(0,f.Nq)(),[Y,K]=(0,O.A)({name:"DayCalendar",state:"hasFocus",controlled:R,default:null!=z&&z}),[X,Z]=o.useState((()=>d||B)),J=(0,h.A)((e=>{v||m(e)})),Q=e=>{q(e)||(n(e),Z(e),null==j||j(!0),K(!0))},ee=(0,h.A)(((e,t)=>{switch(e.key){case"ArrowUp":Q($.addDays(t,-7)),e.preventDefault();break;case"ArrowDown":Q($.addDays(t,7)),e.preventDefault();break;case"ArrowLeft":{const n=$.addDays(t,U?1:-1),r=$.addMonths(t,U?1:-1),i=(0,ne.il)({utils:$,date:n,minDate:U?n:$.startOfMonth(r),maxDate:U?$.endOfMonth(r):n,isDateDisabled:q,timezone:V});Q(i||n),e.preventDefault();break}case"ArrowRight":{const n=$.addDays(t,U?-1:1),r=$.addMonths(t,U?-1:1),i=(0,ne.il)({utils:$,date:n,minDate:U?$.startOfMonth(r):n,maxDate:U?n:$.endOfMonth(r),isDateDisabled:q,timezone:V});Q(i||n),e.preventDefault();break}case"Home":Q($.startOfWeek(t)),e.preventDefault();break;case"End":Q($.endOfWeek(t)),e.preventDefault();break;case"PageUp":Q($.addMonths(t,1)),e.preventDefault();break;case"PageDown":Q($.addMonths(t,-1)),e.preventDefault()}})),te=(0,h.A)(((e,t)=>Q(t))),ie=(0,h.A)(((e,t)=>{Y&&$.isSameDay(X,t)&&(null==j||j(!1))})),oe=$.getMonth(s),ae=o.useMemo((()=>c.filter((e=>!!e)).map((e=>$.startOfDay(e)))),[$,c]),ye=oe,ve=o.useMemo((()=>o.createRef()),[ye]),be=$.startOfWeek(B),xe=o.useMemo((()=>{const e=$.startOfMonth(s),t=$.endOfMonth(s);return q(X)||$.isAfterDay(X,t)||$.isBeforeDay(X,e)?(0,ne.il)({utils:$,date:X,minDate:e,maxDate:t,disablePast:C,disableFuture:_,isDateDisabled:q,timezone:V}):X}),[s,_,C,X,q,$,V]),we=o.useMemo((()=>{const e=$.setTimezone(s,V),t=$.getWeekArray(e);let n=$.addMonths(e,1);for(;N&&t.length{t.length{var n;const r=$.format(e,"weekdayShort");return(0,E.jsx)(ce,{variant:"caption",role:"columnheader","aria-label":$.format($.addDays(be,t),"weekday"),className:G.weekDayLabel,children:null!=(n=null==W?void 0:W(r,e))?n:r},r+t.toString())}))]}),p?(0,E.jsx)(he,{className:G.loadingContainer,children:x()}):(0,E.jsx)(pe,(0,i.A)({transKey:ye,onExited:y,reduceAnimations:b,slideDirection:A,className:(0,a.A)(r,G.slideTransition)},S,{nodeRef:ve,children:(0,E.jsx)(fe,{ref:ve,role:"rowgroup",className:G.monthContainer,children:we.map(((e,n)=>(0,E.jsxs)(ge,{role:"row",className:G.weekContainer,"aria-rowindex":n+1,children:[D&&(0,E.jsx)(de,{className:G.weekNumber,role:"rowheader","aria-label":H.calendarWeekNumberAriaLabelText($.getWeekNumber(e[0])),children:H.calendarWeekNumberText($.getWeekNumber(e[0]))}),e.map(((e,n)=>(0,E.jsx)(me,{parentProps:t,day:e,selectedDays:ae,focusableDay:xe,onKeyDown:ee,onFocus:te,onBlur:ie,onDaySelect:J,isDateDisabled:q,currentMonthNumber:oe,isViewFocused:Y,"aria-colindex":n+1},e.toString())))]},`week-${e[0]}`)))})}))]})}var ve=n(38382);function be(e){return(0,A.Ay)("MuiPickersMonth",e)}const xe=(0,S.A)("MuiPickersMonth",["root","monthButton","disabled","selected"]),we=["autoFocus","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow"],Ae=(0,c.Ay)("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root]})((({ownerState:e})=>({flexBasis:3===e.monthsPerRow?"33.3%":"25%",display:"flex",alignItems:"center",justifyContent:"center"}))),Se=(0,c.Ay)("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${xe.disabled}`]:t.disabled},{[`&.${xe.selected}`]:t.selected}]})((({theme:e})=>(0,i.A)({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,L.X4)(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,L.X4)(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${xe.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${xe.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}}))),Ce=o.memo((function(e){const t=(0,l.A)({props:e,name:"MuiPickersMonth"}),{autoFocus:n,children:a,disabled:s,selected:c,value:d,tabIndex:h,onClick:p,onKeyDown:f,onFocus:g,onBlur:m,"aria-current":y,"aria-label":v}=t,b=(0,r.A)(t,we),x=o.useRef(null),w=(e=>{const{disabled:t,selected:n,classes:r}=e,i={root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]};return(0,u.A)(i,be,r)})(t);return(0,M.A)((()=>{var e;n&&(null==(e=x.current)||e.focus())}),[n]),(0,E.jsx)(Ae,(0,i.A)({className:w.root,ownerState:t},b,{children:(0,E.jsx)(Se,{ref:x,disabled:s,type:"button",role:"radio",tabIndex:s?-1:h,"aria-current":y,"aria-checked":c,"aria-label":v,onClick:e=>p(e,d),onKeyDown:e=>f(e,d),onFocus:e=>g(e,d),onBlur:e=>m(e,d),className:w.monthButton,ownerState:t,children:a})}))}));function Ee(e){return(0,A.Ay)("MuiMonthCalendar",e)}(0,S.A)("MuiMonthCalendar",["root"]);var _e=n(16944);const ke=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId"];const Te=(0,c.Ay)("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:R.eX,boxSizing:"border-box"}),Oe=o.forwardRef((function(e,t){const n=function(e,t){const n=(0,f.hc)(),r=(0,f.Yg)(),o=(0,l.A)({props:e,name:t});return(0,i.A)({disableFuture:!1,disablePast:!1},o,{minDate:(0,ne.IP)(n,o.minDate,r.minDate),maxDate:(0,ne.IP)(n,o.maxDate,r.maxDate)})}(e,"MuiMonthCalendar"),{className:s,value:c,defaultValue:d,referenceDate:p,disabled:g,disableFuture:v,disablePast:b,maxDate:x,minDate:w,onChange:A,shouldDisableMonth:S,readOnly:C,disableHighlightToday:_,autoFocus:k=!1,onMonthFocus:T,hasFocus:P,onFocusedViewChange:I,monthsPerRow:M=3,timezone:L,gridLabelId:R}=n,j=(0,r.A)(n,ke),{value:F,handleValueChange:D,timezone:N}=(0,_e.Y)({name:"MonthCalendar",timezone:L,value:c,defaultValue:d,onChange:A,valueManager:m.W}),z=(0,f.cB)(N),V=(0,ve.A)(),B=(0,f.hc)(),$=o.useMemo((()=>m.W.getInitialReferenceValue({value:F,utils:B,props:n,timezone:N,referenceDate:p,granularity:y.yX.month})),[]),G=n,U=(e=>{const{classes:t}=e;return(0,u.A)({root:["root"]},Ee,t)})(G),W=o.useMemo((()=>B.getMonth(z)),[B,z]),q=o.useMemo((()=>null!=F?B.getMonth(F):_?null:B.getMonth($)),[F,B,_,$]),[H,Y]=o.useState((()=>q||W)),[K,X]=(0,O.A)({name:"MonthCalendar",state:"hasFocus",controlled:P,default:null!=k&&k}),Z=(0,h.A)((e=>{X(e),I&&I(e)})),J=o.useCallback((e=>{const t=B.startOfMonth(b&&B.isAfter(z,w)?z:w),n=B.startOfMonth(v&&B.isBefore(z,x)?z:x),r=B.startOfMonth(e);return!!B.isBefore(r,t)||(!!B.isAfter(r,n)||!!S&&S(r))}),[v,b,x,w,z,S,B]),Q=(0,h.A)(((e,t)=>{if(C)return;const n=B.setMonth(null!=F?F:$,t);D(n)})),ee=(0,h.A)((e=>{J(B.setMonth(null!=F?F:$,e))||(Y(e),Z(!0),T&&T(e))}));o.useEffect((()=>{Y((e=>null!==q&&e!==q?q:e))}),[q]);const te=(0,h.A)(((e,t)=>{const n=12;switch(e.key){case"ArrowUp":ee((n+t-3)%n),e.preventDefault();break;case"ArrowDown":ee((n+t+3)%n),e.preventDefault();break;case"ArrowLeft":ee((n+t+("ltr"===V.direction?-1:1))%n),e.preventDefault();break;case"ArrowRight":ee((n+t+("ltr"===V.direction?1:-1))%n),e.preventDefault()}})),re=(0,h.A)(((e,t)=>{ee(t)})),ie=(0,h.A)(((e,t)=>{H===t&&Z(!1)}));return(0,E.jsx)(Te,(0,i.A)({ref:t,className:(0,a.A)(U.root,s),ownerState:G,role:"radiogroup","aria-labelledby":R},j,{children:(0,ne.YQ)(B,null!=F?F:$).map((e=>{const t=B.getMonth(e),n=B.format(e,"monthShort"),r=B.format(e,"month"),i=t===q,o=g||J(e);return(0,E.jsx)(Ce,{selected:i,value:t,onClick:Q,onKeyDown:te,autoFocus:K&&t===H,disabled:o,tabIndex:t===H?0:-1,onFocus:re,onBlur:ie,"aria-current":W===t?"date":void 0,"aria-label":r,monthsPerRow:M,children:n},n)}))}))}));function Pe(e){return(0,A.Ay)("MuiPickersYear",e)}const Ie=(0,S.A)("MuiPickersYear",["root","yearButton","selected","disabled"]),Me=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow"],Le=(0,c.Ay)("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root]})((({ownerState:e})=>({flexBasis:3===e.yearsPerRow?"33.3%":"25%",display:"flex",alignItems:"center",justifyContent:"center"}))),Re=(0,c.Ay)("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${Ie.disabled}`]:t.disabled},{[`&.${Ie.selected}`]:t.selected}]})((({theme:e})=>(0,i.A)({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"6px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:(0,L.X4)(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,L.X4)(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Ie.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Ie.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}}))),je=o.memo((function(e){const t=(0,l.A)({props:e,name:"MuiPickersYear"}),{autoFocus:n,className:s,children:c,disabled:d,selected:h,value:p,tabIndex:f,onClick:g,onKeyDown:m,onFocus:y,onBlur:v,"aria-current":b}=t,x=(0,r.A)(t,Me),w=o.useRef(null),A=(e=>{const{disabled:t,selected:n,classes:r}=e,i={root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]};return(0,u.A)(i,Pe,r)})(t);return o.useEffect((()=>{n&&w.current.focus()}),[n]),(0,E.jsx)(Le,(0,i.A)({className:(0,a.A)(A.root,s),ownerState:t},x,{children:(0,E.jsx)(Re,{ref:w,disabled:d,type:"button",role:"radio",tabIndex:d?-1:f,"aria-current":b,"aria-checked":h,onClick:e=>g(e,p),onKeyDown:e=>m(e,p),onFocus:e=>y(e,p),onBlur:e=>v(e,p),className:A.yearButton,ownerState:t,children:c})}))}));function Fe(e){return(0,A.Ay)("MuiYearCalendar",e)}(0,S.A)("MuiYearCalendar",["root"]);const De=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsPerRow","timezone","gridLabelId"];const Ne=(0,c.Ay)("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:R.eX,maxHeight:R.Yq,boxSizing:"border-box",position:"relative"}),ze=o.forwardRef((function(e,t){const n=function(e,t){var n;const r=(0,f.hc)(),o=(0,f.Yg)(),a=(0,l.A)({props:e,name:t});return(0,i.A)({disablePast:!1,disableFuture:!1},a,{yearsPerRow:null!=(n=a.yearsPerRow)?n:3,minDate:(0,ne.IP)(r,a.minDate,o.minDate),maxDate:(0,ne.IP)(r,a.maxDate,o.maxDate)})}(e,"MuiYearCalendar"),{autoFocus:s,className:c,value:d,defaultValue:p,referenceDate:g,disabled:v,disableFuture:b,disablePast:x,maxDate:w,minDate:A,onChange:S,readOnly:C,shouldDisableYear:_,disableHighlightToday:k,onYearFocus:T,hasFocus:P,onFocusedViewChange:M,yearsPerRow:L,timezone:R,gridLabelId:j}=n,F=(0,r.A)(n,De),{value:D,handleValueChange:N,timezone:z}=(0,_e.Y)({name:"YearCalendar",timezone:R,value:d,defaultValue:p,onChange:S,valueManager:m.W}),V=(0,f.cB)(z),B=(0,ve.A)(),$=(0,f.hc)(),G=o.useMemo((()=>m.W.getInitialReferenceValue({value:D,utils:$,props:n,timezone:z,referenceDate:g,granularity:y.yX.year})),[]),U=n,W=(e=>{const{classes:t}=e;return(0,u.A)({root:["root"]},Fe,t)})(U),q=o.useMemo((()=>$.getYear(V)),[$,V]),H=o.useMemo((()=>null!=D?$.getYear(D):k?null:$.getYear(G)),[D,$,k,G]),[Y,K]=o.useState((()=>H||q)),[X,Z]=(0,O.A)({name:"YearCalendar",state:"hasFocus",controlled:P,default:null!=s&&s}),J=(0,h.A)((e=>{Z(e),M&&M(e)})),Q=o.useCallback((e=>{if(x&&$.isBeforeYear(e,V))return!0;if(b&&$.isAfterYear(e,V))return!0;if(A&&$.isBeforeYear(e,A))return!0;if(w&&$.isAfterYear(e,w))return!0;if(!_)return!1;const t=$.startOfYear(e);return _(t)}),[b,x,w,A,V,_,$]),ee=(0,h.A)(((e,t)=>{if(C)return;const n=$.setYear(null!=D?D:G,t);N(n)})),te=(0,h.A)((e=>{Q($.setYear(null!=D?D:G,e))||(K(e),J(!0),null==T||T(e))}));o.useEffect((()=>{K((e=>null!==H&&e!==H?H:e))}),[H]);const re=(0,h.A)(((e,t)=>{switch(e.key){case"ArrowUp":te(t-L),e.preventDefault();break;case"ArrowDown":te(t+L),e.preventDefault();break;case"ArrowLeft":te(t+("ltr"===B.direction?-1:1)),e.preventDefault();break;case"ArrowRight":te(t+("ltr"===B.direction?1:-1)),e.preventDefault()}})),ie=(0,h.A)(((e,t)=>{te(t)})),oe=(0,h.A)(((e,t)=>{Y===t&&J(!1)})),ae=o.useRef(null),se=(0,I.A)(t,ae);return o.useEffect((()=>{if(s||null===ae.current)return;const e=ae.current.querySelector('[tabindex="0"]');if(!e)return;const t=e.offsetHeight,n=e.offsetTop,r=ae.current.clientHeight,i=ae.current.scrollTop,o=n+t;t>r||n{const t=$.getYear(e),n=t===H,r=v||Q(e);return(0,E.jsx)(je,{selected:n,value:t,onClick:ee,onKeyDown:re,autoFocus:X&&t===Y,disabled:r,tabIndex:t===Y?0:-1,onFocus:ie,onBlur:oe,"aria-current":q===t?"date":void 0,yearsPerRow:L,children:$.format(e,"year")},$.format(e,"year"))}))}))}));var Ve=n(56468),Be=n(90703),$e=n(46260),Ge=n(58896),Ue=n(40774);const We=e=>(0,A.Ay)("MuiPickersCalendarHeader",e),qe=(0,S.A)("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),He=["slots","slotProps","components","componentsProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone"],Ye=["ownerState"],Ke=(0,c.Ay)("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:16,marginBottom:8,paddingLeft:24,paddingRight:12,maxHeight:30,minHeight:30}),Xe=(0,c.Ay)("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})((({theme:e})=>(0,i.A)({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium}))),Ze=(0,c.Ay)("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),Je=(0,c.Ay)(Be.A,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})((({ownerState:e})=>(0,i.A)({marginRight:"auto"},"year"===e.view&&{[`.${qe.switchViewIcon}`]:{transform:"rotate(180deg)"}}))),Qe=(0,c.Ay)($e.iV,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})((({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"}))),et=o.forwardRef((function(e,t){var n,o,c,d;const h=(0,f.Nq)(),p=(0,f.hc)(),g=(0,l.A)({props:e,name:"MuiPickersCalendarHeader"}),{slots:m,slotProps:y,components:v,currentMonth:b,disabled:w,disableFuture:A,disablePast:S,maxDate:C,minDate:_,onMonthChange:T,onViewChange:O,view:P,reduceAnimations:I,views:M,labelId:L,className:R,timezone:j}=g,F=(0,r.A)(g,He),D=g,N=(e=>{const{classes:t}=e;return(0,u.A)({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},We,t)})(g),z=null!=(n=null!=(o=null==m?void 0:m.switchViewButton)?o:null==v?void 0:v.SwitchViewButton)?n:Je,V=(0,s.Q)({elementType:z,externalSlotProps:null==y?void 0:y.switchViewButton,additionalProps:{size:"small","aria-label":h.calendarViewSwitchingButtonAriaLabel(P)},ownerState:D,className:N.switchViewButton}),B=null!=(c=null!=(d=null==m?void 0:m.switchViewIcon)?d:null==v?void 0:v.SwitchViewIcon)?c:Qe,$=(0,s.Q)({elementType:B,externalSlotProps:null==y?void 0:y.switchViewIcon,ownerState:void 0,className:N.switchViewIcon}),G=(0,r.A)($,Ye),U=(0,Ue.bH)(b,{disableFuture:A,maxDate:C,timezone:j}),W=(0,Ue.p_)(b,{disablePast:S,minDate:_,timezone:j});return 1===M.length&&"year"===M[0]?null:(0,E.jsxs)(Ke,(0,i.A)({},F,{ownerState:D,className:(0,a.A)(R,N.root),ref:t,children:[(0,E.jsxs)(Xe,{role:"presentation",onClick:()=>{if(1!==M.length&&O&&!w)if(2===M.length)O(M.find((e=>e!==P))||M[0]);else{const e=0!==M.indexOf(P)?0:1;O(M[e])}},ownerState:D,"aria-live":"polite",className:N.labelContainer,children:[(0,E.jsx)(k,{reduceAnimations:I,transKey:p.format(b,"monthAndYear"),children:(0,E.jsx)(Ze,{id:L,ownerState:D,className:N.label,children:p.format(b,"monthAndYear")})}),M.length>1&&!w&&(0,E.jsx)(z,(0,i.A)({},V,{children:(0,E.jsx)(B,(0,i.A)({},G))}))]}),(0,E.jsx)(x.A,{in:"day"===P,children:(0,E.jsx)(Ge.Y,{slots:m,slotProps:y,onGoToPrevious:()=>T(p.addMonths(b,-1),"right"),isPreviousDisabled:W,previousLabel:h.previousMonth,onGoToNext:()=>T(p.addMonths(b,1),"left"),isNextDisabled:U,nextLabel:h.nextMonth})})]}))}));var tt=n(44206),nt=n(57834);const rt=e=>(0,A.Ay)("MuiDateCalendar",e),it=((0,S.A)("MuiDateCalendar",["root","viewTransitionContainer"]),["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","defaultCalendarMonth","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","components","componentsProps","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsPerRow","monthsPerRow","timezone"]);const ot=(0,c.Ay)(tt.I,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:R.Y2}),at=(0,c.Ay)(k,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),st=o.forwardRef((function(e,t){var n,c,p;const g=(0,f.hc)(),y=(0,d.A)(),b=function(e,t){var n,r,o,a,s,c,u;const d=(0,f.hc)(),h=(0,f.Yg)(),p=(0,nt.q)(),g=(0,l.A)({props:e,name:t});return(0,i.A)({},g,{loading:null!=(n=g.loading)&&n,disablePast:null!=(r=g.disablePast)&&r,disableFuture:null!=(o=g.disableFuture)&&o,openTo:null!=(a=g.openTo)?a:"day",views:null!=(s=g.views)?s:["year","day"],reduceAnimations:null!=(c=g.reduceAnimations)?c:p,renderLoading:null!=(u=g.renderLoading)?u:()=>(0,E.jsx)("span",{children:"..."}),minDate:(0,ne.IP)(d,g.minDate,h.minDate),maxDate:(0,ne.IP)(d,g.maxDate,h.maxDate)})}(e,"MuiDateCalendar"),{autoFocus:x,onViewChange:w,value:A,defaultValue:S,referenceDate:C,disableFuture:_,disablePast:k,defaultCalendarMonth:T,onChange:O,onYearChange:P,onMonthChange:I,reduceAnimations:M,shouldDisableDate:L,shouldDisableMonth:R,shouldDisableYear:j,view:F,views:D,openTo:N,className:z,disabled:V,readOnly:B,minDate:$,maxDate:G,disableHighlightToday:U,focusedView:W,onFocusedViewChange:q,showDaysOutsideCurrentMonth:H,fixedWeekNumber:Y,dayOfWeekFormatter:K,components:X,componentsProps:Z,slots:J,slotProps:Q,loading:ee,renderLoading:te,displayWeekNumber:re,yearsPerRow:ie,monthsPerRow:oe,timezone:ae}=b,se=(0,r.A)(b,it),{value:le,handleValueChange:ce,timezone:ue}=(0,_e.Y)({name:"DateCalendar",timezone:ae,value:A,defaultValue:S,onChange:O,valueManager:m.W}),{view:de,setView:he,focusedView:pe,setFocusedView:fe,goToNextView:ge,setValueAndGoToNextView:me}=(0,Ve.o)({view:F,views:D,openTo:N,onChange:ce,onViewChange:w,autoFocus:x,focusedView:W,onFocusedViewChange:q}),{referenceDate:ve,calendarState:be,changeFocusedDay:xe,changeMonth:we,handleChangeMonth:Ae,isDateDisabled:Se,onMonthSwitchingAnimationEnd:Ce}=v({value:le,defaultCalendarMonth:T,referenceDate:C,reduceAnimations:M,onMonthChange:I,minDate:$,maxDate:G,shouldDisableDate:L,disablePast:k,disableFuture:_,timezone:ue}),Ee=V&&le||$,ke=V&&le||G,Te=`${y}-grid-label`,Pe=null!==pe,Ie=null!=(n=null!=(c=null==J?void 0:J.calendarHeader)?c:null==X?void 0:X.CalendarHeader)?n:et,Me=(0,s.Q)({elementType:Ie,externalSlotProps:null!=(p=null==Q?void 0:Q.calendarHeader)?p:null==Z?void 0:Z.calendarHeader,additionalProps:{views:D,view:de,currentMonth:be.currentMonth,onViewChange:he,onMonthChange:(e,t)=>Ae({newMonth:e,direction:t}),minDate:Ee,maxDate:ke,disabled:V,disablePast:k,disableFuture:_,reduceAnimations:M,timezone:ue,labelId:Te,slots:J,slotProps:Q},ownerState:b}),Le=(0,h.A)((e=>{const t=g.startOfMonth(e),n=g.endOfMonth(e),r=Se(e)?(0,ne.il)({utils:g,date:e,minDate:g.isBefore($,t)?t:$,maxDate:g.isAfter(G,n)?n:G,disablePast:k,disableFuture:_,isDateDisabled:Se,timezone:ue}):e;r?(me(r,"finish"),null==I||I(t)):(ge(),we(t)),xe(r,!0)})),Re=(0,h.A)((e=>{const t=g.startOfYear(e),n=g.endOfYear(e),r=Se(e)?(0,ne.il)({utils:g,date:e,minDate:g.isBefore($,t)?t:$,maxDate:g.isAfter(G,n)?n:G,disablePast:k,disableFuture:_,isDateDisabled:Se,timezone:ue}):e;r?(me(r,"finish"),null==P||P(r)):(ge(),we(t)),xe(r,!0)})),je=(0,h.A)((e=>ce(e?(0,ne.jH)(g,e,null!=le?le:ve):e,"finish",de)));o.useEffect((()=>{null!=le&&g.isValid(le)&&we(le)}),[le]);const Fe=b,De=(e=>{const{classes:t}=e;return(0,u.A)({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},rt,t)})(Fe),Ne={disablePast:k,disableFuture:_,maxDate:G,minDate:$},Be={disableHighlightToday:U,readOnly:B,disabled:V,timezone:ue,gridLabelId:Te},$e=o.useRef(de);o.useEffect((()=>{$e.current!==de&&(pe===$e.current&&fe(de,!0),$e.current=de)}),[pe,fe,de]);const Ge=o.useMemo((()=>[le]),[le]);return(0,E.jsxs)(ot,(0,i.A)({ref:t,className:(0,a.A)(De.root,z),ownerState:Fe},se,{children:[(0,E.jsx)(Ie,(0,i.A)({},Me)),(0,E.jsx)(at,{reduceAnimations:M,className:De.viewTransitionContainer,transKey:de,ownerState:Fe,children:(0,E.jsxs)("div",{children:["year"===de&&(0,E.jsx)(ze,(0,i.A)({},Ne,Be,{value:le,onChange:Re,shouldDisableYear:j,hasFocus:Pe,onFocusedViewChange:e=>fe("year",e),yearsPerRow:ie,referenceDate:ve})),"month"===de&&(0,E.jsx)(Oe,(0,i.A)({},Ne,Be,{hasFocus:Pe,className:z,value:le,onChange:Le,shouldDisableMonth:R,onFocusedViewChange:e=>fe("month",e),monthsPerRow:oe,referenceDate:ve})),"day"===de&&(0,E.jsx)(ye,(0,i.A)({},be,Ne,Be,{onMonthSwitchingAnimationEnd:Ce,onFocusedDayChange:xe,reduceAnimations:M,selectedDays:Ge,onSelectedDaysChange:je,shouldDisableDate:L,shouldDisableMonth:R,shouldDisableYear:j,hasFocus:Pe,onFocusedViewChange:e=>fe("day",e),showDaysOutsideCurrentMonth:H,fixedWeekNumber:Y,dayOfWeekFormatter:K,displayWeekNumber:re,components:X,componentsProps:Z,slots:J,slotProps:Q,loading:ee,renderLoading:te}))]})})]}))}))},61821:(e,t,n)=>{"use strict";n.d(t,{l:()=>X});var r=n(51559),i=n(73342),o=n(30538),a=n(6467),s=n(87507),l=n(22300),c=n.n(l),u=n(26985),d=n(1967),h=n(99559),p=n(34667),f=n(77928),g=n(84316),m=n(87286),y=n(91031),v=n(58990),b=n(32829),x=n(65703),w=n(24115);function A(e){return(0,w.Ay)("MuiDatePickerToolbar",e)}(0,n(5007).A)("MuiDatePickerToolbar",["root","title"]);var S=n(97282);const C=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views","className"],E=(0,v.Ay)(x.Z,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),_=(0,v.Ay)(y.A,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})((({ownerState:e})=>(0,r.A)({},e.isLandscape&&{margin:"auto 16px auto auto"}))),k=o.forwardRef((function(e,t){const n=(0,s.A)({props:e,name:"MuiDatePickerToolbar"}),{value:a,isLandscape:l,toolbarFormat:c,toolbarPlaceholder:u="––",views:d,className:h}=n,f=(0,i.A)(n,C),y=(0,p.hc)(),v=(0,p.Nq)(),x=(e=>{const{classes:t}=e;return(0,b.A)({root:["root"],title:["title"]},A,t)})(n),w=o.useMemo((()=>{if(!a)return u;const e=(0,g.Wq)(y,{format:c,views:d},!0);return y.formatByString(a,e)}),[a,c,u,y,d]),k=n;return(0,S.jsx)(E,(0,r.A)({ref:t,toolbarTitle:v.datePickerToolbarTitle,isLandscape:l,className:(0,m.A)(x.root,h)},f,{children:(0,S.jsx)(_,{variant:"h4",align:l?"left":"center",ownerState:k,className:x.title,children:w})}))}));var T=n(84474);function O(e,t){var n,i,a,l;const c=(0,p.hc)(),u=(0,p.Yg)(),d=(0,s.A)({props:e,name:t}),h=o.useMemo((()=>{var e;return null==(null==(e=d.localeText)?void 0:e.toolbarTitle)?d.localeText:(0,r.A)({},d.localeText,{datePickerToolbarTitle:d.localeText.toolbarTitle})}),[d.localeText]),m=null!=(n=d.slots)?n:(0,T.p)(d.components);return(0,r.A)({},d,{localeText:h},(0,f.R)({views:d.views,openTo:d.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:null!=(i=d.disableFuture)&&i,disablePast:null!=(a=d.disablePast)&&a,minDate:(0,g.IP)(c,d.minDate,u.minDate),maxDate:(0,g.IP)(c,d.maxDate,u.maxDate),slots:(0,r.A)({toolbar:k},m),slotProps:null!=(l=d.slotProps)?l:d.componentsProps})}var P=n(61228),I=n(38019),M=n(46260),L=n(76964),R=n(94267),j=n(68317),F=n(48361);const D=({props:e,inputRef:t})=>{const n=(e=>{var t,n,i;const o=(0,p.hc)(),a=(0,p.Yg)();return(0,r.A)({},e,{disablePast:null!=(t=e.disablePast)&&t,disableFuture:null!=(n=e.disableFuture)&&n,format:null!=(i=e.format)?i:o.formats.keyboardDate,minDate:(0,g.IP)(o,e.minDate,a.minDate),maxDate:(0,g.IP)(o,e.maxDate,a.maxDate)})})(e),{forwardedProps:i,internalProps:o}=(0,F.D)(n,"date");return(0,j.M)({inputRef:t,forwardedProps:i,internalProps:o,valueManager:h.W,fieldValueManager:h.o,validator:P.Z,valueType:"date"})};var N=n(29110);const z=["components","componentsProps","slots","slotProps","InputProps","inputProps"],V=["inputRef"],B=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],$=o.forwardRef((function(e,t){var n,o,a;const l=(0,s.A)({props:e,name:"MuiDateField"}),{components:c,componentsProps:u,slots:d,slotProps:h,InputProps:p,inputProps:f}=l,g=(0,i.A)(l,z),m=l,y=null!=(n=null!=(o=null==d?void 0:d.textField)?o:null==c?void 0:c.TextField)?n:L.A,v=(0,R.Q)({elementType:y,externalSlotProps:null!=(a=null==h?void 0:h.textField)?a:null==u?void 0:u.textField,externalForwardedProps:g,ownerState:m}),{inputRef:b}=v,x=(0,i.A)(v,V);x.inputProps=(0,r.A)({},f,x.inputProps),x.InputProps=(0,r.A)({},p,x.InputProps);const w=D({props:x,inputRef:b}),{ref:A,onPaste:C,onKeyDown:E,inputMode:_,readOnly:k,clearable:T,onClear:O}=w,P=(0,i.A)(w,B),{InputProps:I,fieldProps:M}=(0,N.Z)({onClear:O,clearable:T,fieldProps:P,InputProps:P.InputProps,slots:d,slotProps:h,components:c,componentsProps:u});return(0,S.jsx)(y,(0,r.A)({ref:t},M,{InputProps:(0,r.A)({},I,{readOnly:k}),inputProps:(0,r.A)({},P.inputProps,{inputMode:_,onPaste:C,onKeyDown:E,ref:A})}))}));var G=n(64066),U=n(29162);const W=o.forwardRef((function(e,t){var n,i,o,a;const s=(0,p.Nq)(),l=(0,p.hc)(),c=O(e,"MuiDesktopDatePicker"),d=(0,r.A)({day:U.W,month:U.W,year:U.W},c.viewRenderers),f=(0,r.A)({},c,{viewRenderers:d,format:(0,g.Wq)(l,c,!1),yearsPerRow:null!=(n=c.yearsPerRow)?n:4,slots:(0,r.A)({openPickerIcon:M.CT,field:$},c.slots),slotProps:(0,r.A)({},c.slotProps,{field:e=>{var n;return(0,r.A)({},(0,u.Y)(null==(n=c.slotProps)?void 0:n.field,e),(0,G.zd)(c),{ref:t})},toolbar:(0,r.A)({hidden:!0},null==(i=c.slotProps)?void 0:i.toolbar)})}),{renderPicker:m}=(0,I.U)({props:f,valueManager:h.W,valueType:"date",getOpenDialogAriaText:null!=(o=null==(a=f.localeText)?void 0:a.openDatePickerDialogue)?o:s.openDatePickerDialogue,validator:P.Z});return m()}));W.propTypes={autoFocus:c().bool,className:c().string,closeOnSelect:c().bool,components:c().object,componentsProps:c().object,dayOfWeekFormatter:c().func,defaultCalendarMonth:c().any,defaultValue:c().any,disabled:c().bool,disableFuture:c().bool,disableHighlightToday:c().bool,disableOpenPicker:c().bool,disablePast:c().bool,displayWeekNumber:c().bool,fixedWeekNumber:c().number,format:c().string,formatDensity:c().oneOf(["dense","spacious"]),inputRef:d.A,label:c().node,loading:c().bool,localeText:c().object,maxDate:c().any,minDate:c().any,monthsPerRow:c().oneOf([3,4]),name:c().string,onAccept:c().func,onChange:c().func,onClose:c().func,onError:c().func,onMonthChange:c().func,onOpen:c().func,onSelectedSectionsChange:c().func,onViewChange:c().func,onYearChange:c().func,open:c().bool,openTo:c().oneOf(["day","month","year"]),orientation:c().oneOf(["landscape","portrait"]),readOnly:c().bool,reduceAnimations:c().bool,referenceDate:c().any,renderLoading:c().func,selectedSections:c().oneOfType([c().oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),c().number,c().shape({endIndex:c().number.isRequired,startIndex:c().number.isRequired})]),shouldDisableDate:c().func,shouldDisableMonth:c().func,shouldDisableYear:c().func,showDaysOutsideCurrentMonth:c().bool,slotProps:c().object,slots:c().object,sx:c().oneOfType([c().arrayOf(c().oneOfType([c().func,c().object,c().bool])),c().func,c().object]),timezone:c().string,value:c().any,view:c().oneOf(["day","month","year"]),viewRenderers:c().shape({day:c().func,month:c().func,year:c().func}),views:c().arrayOf(c().oneOf(["day","month","year"]).isRequired),yearsPerRow:c().oneOf([3,4])};var q=n(69136);const H=o.forwardRef((function(e,t){var n,i,o;const a=(0,p.Nq)(),s=(0,p.hc)(),l=O(e,"MuiMobileDatePicker"),c=(0,r.A)({day:U.W,month:U.W,year:U.W},l.viewRenderers),d=(0,r.A)({},l,{viewRenderers:c,format:(0,g.Wq)(s,l,!1),slots:(0,r.A)({field:$},l.slots),slotProps:(0,r.A)({},l.slotProps,{field:e=>{var n;return(0,r.A)({},(0,u.Y)(null==(n=l.slotProps)?void 0:n.field,e),(0,G.zd)(l),{ref:t})},toolbar:(0,r.A)({hidden:!1},null==(n=l.slotProps)?void 0:n.toolbar)})}),{renderPicker:f}=(0,q.C)({props:d,valueManager:h.W,valueType:"date",getOpenDialogAriaText:null!=(i=null==(o=d.localeText)?void 0:o.openDatePickerDialogue)?i:a.openDatePickerDialogue,validator:P.Z});return f()}));H.propTypes={autoFocus:c().bool,className:c().string,closeOnSelect:c().bool,components:c().object,componentsProps:c().object,dayOfWeekFormatter:c().func,defaultCalendarMonth:c().any,defaultValue:c().any,disabled:c().bool,disableFuture:c().bool,disableHighlightToday:c().bool,disableOpenPicker:c().bool,disablePast:c().bool,displayWeekNumber:c().bool,fixedWeekNumber:c().number,format:c().string,formatDensity:c().oneOf(["dense","spacious"]),inputRef:d.A,label:c().node,loading:c().bool,localeText:c().object,maxDate:c().any,minDate:c().any,monthsPerRow:c().oneOf([3,4]),name:c().string,onAccept:c().func,onChange:c().func,onClose:c().func,onError:c().func,onMonthChange:c().func,onOpen:c().func,onSelectedSectionsChange:c().func,onViewChange:c().func,onYearChange:c().func,open:c().bool,openTo:c().oneOf(["day","month","year"]),orientation:c().oneOf(["landscape","portrait"]),readOnly:c().bool,reduceAnimations:c().bool,referenceDate:c().any,renderLoading:c().func,selectedSections:c().oneOfType([c().oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),c().number,c().shape({endIndex:c().number.isRequired,startIndex:c().number.isRequired})]),shouldDisableDate:c().func,shouldDisableMonth:c().func,shouldDisableYear:c().func,showDaysOutsideCurrentMonth:c().bool,slotProps:c().object,slots:c().object,sx:c().oneOfType([c().arrayOf(c().oneOfType([c().func,c().object,c().bool])),c().func,c().object]),timezone:c().string,value:c().any,view:c().oneOf(["day","month","year"]),viewRenderers:c().shape({day:c().func,month:c().func,year:c().func}),views:c().arrayOf(c().oneOf(["day","month","year"]).isRequired),yearsPerRow:c().oneOf([3,4])};var Y=n(40159);const K=["desktopModeMediaQuery"],X=o.forwardRef((function(e,t){const n=(0,s.A)({props:e,name:"MuiDatePicker"}),{desktopModeMediaQuery:o=Y.jX}=n,l=(0,i.A)(n,K);return(0,a.A)(o,{defaultMatches:!0})?(0,S.jsx)(W,(0,r.A)({ref:t},l)):(0,S.jsx)(H,(0,r.A)({ref:t},l))}))},38540:(e,t,n)=>{"use strict";n.d(t,{$:()=>u,F:()=>c});var r=n(51559),i=n(73342),o=n(30538),a=n(87507),s=n(97282);const l=["localeText"],c=o.createContext(null);const u=function(e){var t;const{localeText:n}=e,u=(0,i.A)(e,l),{utils:d,localeText:h}=null!=(t=o.useContext(c))?t:{utils:void 0,localeText:void 0},p=(0,a.A)({props:u,name:"MuiLocalizationProvider"}),{children:f,dateAdapter:g,dateFormats:m,dateLibInstance:y,adapterLocale:v,localeText:b}=p,x=o.useMemo((()=>(0,r.A)({},b,h,n)),[b,h,n]),w=o.useMemo((()=>{if(!g)return d||null;const e=new g({locale:v,formats:m,instance:y});if(!e.isMUIAdapter)throw new Error(["MUI: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join("\n"));return e}),[g,v,m,y,d]),A=o.useMemo((()=>w?{minDate:w.date("1900-01-01T00:00:00.000"),maxDate:w.date("2099-12-31T00:00:00.000")}:null),[w]),S=o.useMemo((()=>({utils:w,defaultDates:A,localeText:x})),[A,w,x]);return(0,s.jsx)(c.Provider,{value:S,children:f})}},17614:(e,t,n)=>{"use strict";n.d(t,{CJ:()=>L});var r=n(30538),i=n(22300),o=n.n(i),a=n(87286),s=n(58990),l=n(87507),c=n(32829),u=n(24115);function d(e){return(0,u.Ay)("MuiPickersLayout",e)}const h=(0,n(5007).A)("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]);var p=n(51559),f=n(94267),g=n(73342),m=n(50926),y=n(49773),v=n(34667),b=n(97282);const x=["onAccept","onClear","onCancel","onSetToday","actions"];function w(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:i,actions:o}=e,a=(0,g.A)(e,x),s=(0,v.Nq)();if(null==o||0===o.length)return null;const l=null==o?void 0:o.map((e=>{switch(e){case"clear":return(0,b.jsx)(m.A,{onClick:n,children:s.clearButtonLabel},e);case"cancel":return(0,b.jsx)(m.A,{onClick:r,children:s.cancelButtonLabel},e);case"accept":return(0,b.jsx)(m.A,{onClick:t,children:s.okButtonLabel},e);case"today":return(0,b.jsx)(m.A,{onClick:i,children:s.todayButtonLabel},e);default:return null}}));return(0,b.jsx)(y.A,(0,p.A)({},a,{children:l}))}var A=n(57029),S=n(15444),C=n(83188),E=n(8589);const _=["items","changeImportance","isLandscape","onChange","isValid"],k=["getValue"];function T(e){const{items:t,changeImportance:n,onChange:r,isValid:i}=e,o=(0,g.A)(e,_);if(null==t||0===t.length)return null;const a=t.map((e=>{let{getValue:t}=e,o=(0,g.A)(e,k);const a=t({isValid:i});return{label:o.label,onClick:()=>{r(a,n,o)},disabled:!i(a)}}));return(0,b.jsx)(A.A,(0,p.A)({dense:!0,sx:[{maxHeight:E.Y2,maxWidth:200,overflow:"auto"},...Array.isArray(o.sx)?o.sx:[o.sx]]},o,{children:a.map((e=>(0,b.jsx)(S.Ay,{children:(0,b.jsx)(C.A,(0,p.A)({},e))},e.label)))}))}var O=n(84474);const P=e=>{var t,n;const{wrapperVariant:r,onAccept:i,onClear:o,onCancel:a,onSetToday:s,view:l,views:u,onViewChange:h,value:g,onChange:m,onSelectShortcut:y,isValid:v,isLandscape:x,disabled:A,readOnly:S,children:C,components:E,componentsProps:_,slots:k,slotProps:P}=e,I=null!=k?k:(0,O.p)(E),M=null!=P?P:_,L=(e=>{const{classes:t,isLandscape:n}=e,r={root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]};return(0,c.A)(r,d,t)})(e),R=null!=(t=null==I?void 0:I.actionBar)?t:w,j=(0,f.Q)({elementType:R,externalSlotProps:null==M?void 0:M.actionBar,additionalProps:{onAccept:i,onClear:o,onCancel:a,onSetToday:s,actions:"desktop"===r?[]:["cancel","accept"],className:L.actionBar},ownerState:(0,p.A)({},e,{wrapperVariant:r})}),F=(0,b.jsx)(R,(0,p.A)({},j)),D=null==I?void 0:I.toolbar,N=(0,f.Q)({elementType:D,externalSlotProps:null==M?void 0:M.toolbar,additionalProps:{isLandscape:x,onChange:m,value:g,view:l,onViewChange:h,views:u,disabled:A,readOnly:S,className:L.toolbar},ownerState:(0,p.A)({},e,{wrapperVariant:r})}),z=function(e){return null!==e.view}(N)&&D?(0,b.jsx)(D,(0,p.A)({},N)):null,V=C,B=null==I?void 0:I.tabs,$=l&&B?(0,b.jsx)(B,(0,p.A)({view:l,onViewChange:h,className:L.tabs},null==M?void 0:M.tabs)):null,G=null!=(n=null==I?void 0:I.shortcuts)?n:T,U=(0,f.Q)({elementType:G,externalSlotProps:null==M?void 0:M.shortcuts,additionalProps:{isValid:v,isLandscape:x,onChange:y,className:L.shortcuts},ownerState:{isValid:v,isLandscape:x,onChange:y,className:L.shortcuts,wrapperVariant:r}});return{toolbar:z,content:V,tabs:$,actionBar:F,shortcuts:l&&G?(0,b.jsx)(G,(0,p.A)({},U)):null}},I=(0,s.Ay)("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e,ownerState:t})=>({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${h.toolbar}`]:t.isLandscape?{gridColumn:"rtl"===e.direction?3:1,gridRow:"2 / 3"}:{gridColumn:"2 / 4",gridRow:1},[`.${h.shortcuts}`]:t.isLandscape?{gridColumn:"2 / 4",gridRow:1}:{gridColumn:"rtl"===e.direction?3:1,gridRow:"2 / 3"},[`& .${h.actionBar}`]:{gridColumn:"1 / 4",gridRow:3}})));I.propTypes={as:o().elementType,ownerState:o().shape({isLandscape:o().bool.isRequired}).isRequired,sx:o().oneOfType([o().arrayOf(o().oneOfType([o().func,o().object,o().bool])),o().func,o().object])};const M=(0,s.Ay)("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),L=function(e){const t=(0,l.A)({props:e,name:"MuiPickersLayout"}),{toolbar:n,content:i,tabs:o,actionBar:s,shortcuts:u}=P(t),{sx:h,className:p,isLandscape:f,ref:g,wrapperVariant:m}=t,y=t,v=(e=>{const{isLandscape:t,classes:n}=e,r={root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]};return(0,c.A)(r,d,n)})(y);return(0,b.jsxs)(I,{ref:g,sx:h,className:(0,a.A)(p,v.root),ownerState:y,children:[f?u:n,f?n:u,(0,b.jsx)(M,{className:v.contentWrapper,children:"desktop"===m?(0,b.jsxs)(r.Fragment,{children:[i,o]}):(0,b.jsxs)(r.Fragment,{children:[o,i]})}),s]})}},29162:(e,t,n)=>{"use strict";n.d(t,{W:()=>a});n(30538);var r=n(48269),i=n(84316),o=n(97282);const a=({view:e,onViewChange:t,views:n,focusedView:a,onFocusedViewChange:s,value:l,defaultValue:c,referenceDate:u,onChange:d,className:h,classes:p,disableFuture:f,disablePast:g,minDate:m,maxDate:y,shouldDisableDate:v,shouldDisableMonth:b,shouldDisableYear:x,reduceAnimations:w,onMonthChange:A,monthsPerRow:S,onYearChange:C,yearsPerRow:E,defaultCalendarMonth:_,components:k,componentsProps:T,slots:O,slotProps:P,loading:I,renderLoading:M,disableHighlightToday:L,readOnly:R,disabled:j,showDaysOutsideCurrentMonth:F,dayOfWeekFormatter:D,sx:N,autoFocus:z,fixedWeekNumber:V,displayWeekNumber:B,timezone:$})=>(0,o.jsx)(r.x,{view:e,onViewChange:t,views:n.filter(i.sC),focusedView:a&&(0,i.sC)(a)?a:null,onFocusedViewChange:s,value:l,defaultValue:c,referenceDate:u,onChange:d,className:h,classes:p,disableFuture:f,disablePast:g,minDate:m,maxDate:y,shouldDisableDate:v,shouldDisableMonth:b,shouldDisableYear:x,reduceAnimations:w,onMonthChange:A,monthsPerRow:S,onYearChange:C,yearsPerRow:E,defaultCalendarMonth:_,components:k,componentsProps:T,slots:O,slotProps:P,loading:I,renderLoading:M,disableHighlightToday:L,readOnly:R,disabled:j,showDaysOutsideCurrentMonth:F,dayOfWeekFormatter:D,sx:N,autoFocus:z,fixedWeekNumber:V,displayWeekNumber:B,timezone:$})},29110:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(51559),i=n(73342),o=n(30538),a=n(94267),s=n(90703),l=n(99893),c=n(46260),u=n(34667),d=n(97282);const h=["ownerState"],p=({clearable:e,fieldProps:t,InputProps:n,onClear:p,slots:f,slotProps:g,components:m,componentsProps:y})=>{var v,b,x,w,A,S;const C=(0,u.Nq)(),E=null!=(v=null!=(b=null==f?void 0:f.clearButton)?b:null==m?void 0:m.ClearButton)?v:s.A,_=(0,a.Q)({elementType:E,externalSlotProps:null!=(x=null==g?void 0:g.clearButton)?x:null==y?void 0:y.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:C.fieldClearLabel}}),k=(0,i.A)(_,h),T=null!=(w=null!=(A=null==f?void 0:f.clearIcon)?A:null==m?void 0:m.ClearIcon)?w:c.vu,O=(0,a.Q)({elementType:T,externalSlotProps:null!=(S=null==g?void 0:g.clearIcon)?S:null==y?void 0:y.clearIcon,ownerState:{}});return{InputProps:(0,r.A)({},n,{endAdornment:(0,d.jsxs)(o.Fragment,{children:[e&&(0,d.jsx)(l.A,{position:"end",sx:{marginRight:null!=n&&n.endAdornment?-1:-1.5},children:(0,d.jsx)(E,(0,r.A)({},k,{onClick:p,children:(0,d.jsx)(T,(0,r.A)({fontSize:"small"},O))}))}),null==n?void 0:n.endAdornment]})}),fieldProps:(0,r.A)({},t,{sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(t.sx)?t.sx:[t.sx]]})}}},46260:(e,t,n)=>{"use strict";n.d(t,{A6:()=>s,CT:()=>c,O4:()=>u,Z5:()=>d,b1:()=>h,fl:()=>l,iV:()=>a,vu:()=>p});var r=n(65127),i=n(30538),o=n(97282);const a=(0,r.A)((0,o.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),s=(0,r.A)((0,o.jsx)("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),l=(0,r.A)((0,o.jsx)("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),c=(0,r.A)((0,o.jsx)("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar"),u=(0,r.A)((0,o.jsxs)(i.Fragment,{children:[(0,o.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),(0,o.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock"),d=(0,r.A)((0,o.jsx)("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange"),h=(0,r.A)((0,o.jsxs)(i.Fragment,{children:[(0,o.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),(0,o.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time"),p=(0,r.A)((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"}),"Clear")},44206:(e,t,n)=>{"use strict";n.d(t,{I:()=>o});var r=n(58990),i=n(8589);const o=(0,r.Ay)("div")({overflow:"hidden",width:i.eX,maxHeight:i.Y2,display:"flex",flexDirection:"column",margin:"0 auto"})},58896:(e,t,n)=>{"use strict";n.d(t,{Y:()=>C});var r=n(73342),i=n(51559),o=n(30538),a=n(87286),s=n(91031),l=n(58990),c=n(94145),u=n(87507),d=n(32829),h=n(94267),p=n(90703),f=n(46260),g=n(24115);function m(e){return(0,g.Ay)("MuiPickersArrowSwitcher",e)}(0,n(5007).A)("MuiPickersArrowSwitcher",["root","spacer","button"]);var y=n(97282);const v=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel"],b=["ownerState"],x=["ownerState"],w=(0,l.Ay)("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),A=(0,l.Ay)("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})((({theme:e})=>({width:e.spacing(3)}))),S=(0,l.Ay)(p.A,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})((({ownerState:e})=>(0,i.A)({},e.hidden&&{visibility:"hidden"}))),C=o.forwardRef((function(e,t){var n,o,l,p;const g="rtl"===(0,c.A)().direction,C=(0,u.A)({props:e,name:"MuiPickersArrowSwitcher"}),{children:E,className:_,slots:k,slotProps:T,isNextDisabled:O,isNextHidden:P,onGoToNext:I,nextLabel:M,isPreviousDisabled:L,isPreviousHidden:R,onGoToPrevious:j,previousLabel:F}=C,D=(0,r.A)(C,v),N=C,z=(e=>{const{classes:t}=e;return(0,d.A)({root:["root"],spacer:["spacer"],button:["button"]},m,t)})(N),V={isDisabled:O,isHidden:P,goTo:I,label:M},B={isDisabled:L,isHidden:R,goTo:j,label:F},$=null!=(n=null==k?void 0:k.previousIconButton)?n:S,G=(0,h.Q)({elementType:$,externalSlotProps:null==T?void 0:T.previousIconButton,additionalProps:{size:"medium",title:B.label,"aria-label":B.label,disabled:B.isDisabled,edge:"end",onClick:B.goTo},ownerState:(0,i.A)({},N,{hidden:B.isHidden}),className:z.button}),U=null!=(o=null==k?void 0:k.nextIconButton)?o:S,W=(0,h.Q)({elementType:U,externalSlotProps:null==T?void 0:T.nextIconButton,additionalProps:{size:"medium",title:V.label,"aria-label":V.label,disabled:V.isDisabled,edge:"start",onClick:V.goTo},ownerState:(0,i.A)({},N,{hidden:V.isHidden}),className:z.button}),q=null!=(l=null==k?void 0:k.leftArrowIcon)?l:f.A6,H=(0,h.Q)({elementType:q,externalSlotProps:null==T?void 0:T.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),Y=(0,r.A)(H,b),K=null!=(p=null==k?void 0:k.rightArrowIcon)?p:f.fl,X=(0,h.Q)({elementType:K,externalSlotProps:null==T?void 0:T.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),Z=(0,r.A)(X,x);return(0,y.jsxs)(w,(0,i.A)({ref:t,className:(0,a.A)(z.root,_),ownerState:N},D,{children:[(0,y.jsx)($,(0,i.A)({},G,{children:g?(0,y.jsx)(K,(0,i.A)({},Z)):(0,y.jsx)(q,(0,i.A)({},Y))})),E?(0,y.jsx)(s.A,{variant:"subtitle1",component:"span",children:E}):(0,y.jsx)(A,{className:z.spacer,ownerState:N}),(0,y.jsx)(U,(0,i.A)({},W,{children:g?(0,y.jsx)(q,(0,i.A)({},Y)):(0,y.jsx)(K,(0,i.A)({},Z))}))]}))}))},65703:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var r=n(51559),i=n(30538),o=n(87286),a=n(91031),s=n(58990),l=n(87507),c=n(32829),u=n(57491),d=n(97282);const h=(0,s.Ay)("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e,ownerState:t})=>(0,r.A)({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3)},t.isLandscape&&{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"}))),p=(0,s.Ay)("div",{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})((({ownerState:e})=>{var t;return{display:"flex",flexWrap:"wrap",width:"100%",justifyContent:e.isLandscape?"flex-start":"space-between",flexDirection:e.isLandscape?null!=(t=e.landscapeDirection)?t:"column":"row",flex:1,alignItems:e.isLandscape?"flex-start":"center"}})),f=i.forwardRef((function(e,t){const n=(0,l.A)({props:e,name:"MuiPickersToolbar"}),{children:r,className:i,toolbarTitle:s,hidden:f,titleId:g}=n,m=n,y=(e=>{const{classes:t,isLandscape:n}=e,r={root:["root"],content:["content"],penIconButton:["penIconButton",n&&"penIconButtonLandscape"]};return(0,c.A)(r,u.B,t)})(m);return f?null:(0,d.jsxs)(h,{ref:t,className:(0,o.A)(y.root,i),ownerState:m,children:[(0,d.jsx)(a.A,{color:"text.secondary",variant:"overline",id:g,children:s}),(0,d.jsx)(p,{className:y.content,ownerState:m,children:r})]})}))},57491:(e,t,n)=>{"use strict";n.d(t,{B:()=>i});var r=n(24115);function i(e){return(0,r.Ay)("MuiPickersToolbar",e)}(0,n(5007).A)("MuiPickersToolbar",["root","content"])},8589:(e,t,n)=>{"use strict";n.d(t,{B3:()=>r,Y2:()=>s,Yq:()=>a,aG:()=>c,eX:()=>o,kP:()=>l,y0:()=>i});const r=36,i=2,o=320,a=280,s=334,l=232,c=48},40774:(e,t,n)=>{"use strict";n.d(t,{bH:()=>a,p_:()=>s,r7:()=>l});var r=n(30538),i=n(34667),o=n(32357);function a(e,{disableFuture:t,maxDate:n,timezone:o}){const a=(0,i.hc)();return r.useMemo((()=>{const r=a.dateWithTimezone(void 0,o),i=a.startOfMonth(t&&a.isBefore(r,n)?r:n);return!a.isAfter(i,e)}),[t,n,e,a,o])}function s(e,{disablePast:t,minDate:n,timezone:o}){const a=(0,i.hc)();return r.useMemo((()=>{const r=a.dateWithTimezone(void 0,o),i=a.startOfMonth(t&&a.isAfter(r,n)?r:n);return!a.isBefore(i,e)}),[t,n,e,a,o])}function l(e,t,n,a){const s=(0,i.hc)();return{meridiemMode:(0,o.fX)(e,s),handleMeridiemChange:r.useCallback((r=>{const i=null==e?null:(0,o.tB)(e,r,Boolean(t),s);n(i,null!=a?a:"partial")}),[t,e,n,a,s])}}},57834:(e,t,n)=>{"use strict";n.d(t,{q:()=>l});var r=n(6467);const i="undefined"!=typeof navigator&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),o=i&&i[1]?parseInt(i[1],10):null,a=i&&i[2]?parseInt(i[2],10):null,s=o&&o<10||a&&a<13||!1,l=()=>(0,r.A)("@media (prefers-reduced-motion: reduce)",{defaultMatches:!1})||s},38019:(e,t,n)=>{"use strict";n.d(t,{U:()=>N});var r=n(51559),i=n(73342),o=n(30538),a=n(94267),s=n(99893),l=n(90703),c=n(18029),u=n(5391),d=n(36797),h=n(68127),p=n(8088),f=n(47059),g=n(48265),m=n(32829),y=n(18605),v=n(74311),b=n(58990),x=n(87507),w=n(24115);function A(e){return(0,w.Ay)("MuiPickersPopper",e)}(0,n(5007).A)("MuiPickersPopper",["root","paper"]);var S=n(40159),C=n(57834),E=n(97282);const _=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],k=(0,b.Ay)(f.A,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({zIndex:e.zIndex.modal}))),T=(0,b.Ay)(p.A,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})((({ownerState:e})=>(0,r.A)({outline:0,transformOrigin:"top center"},e.placement.includes("top")&&{transformOrigin:"bottom center"})));const O=o.forwardRef(((e,t)=>{const{PaperComponent:n,popperPlacement:o,ownerState:s,children:l,paperSlotProps:c,paperClasses:u,onPaperClick:d,onPaperTouchStart:h}=e,p=(0,i.A)(e,_),f=(0,r.A)({},s,{placement:o}),g=(0,a.Q)({elementType:n,externalSlotProps:c,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:u,ownerState:f});return(0,E.jsx)(n,(0,r.A)({},p,g,{onClick:e=>{var t;d(e),null==(t=g.onClick)||t.call(g,e)},onTouchStart:e=>{var t;h(e),null==(t=g.onTouchStart)||t.call(g,e)},ownerState:f,children:l}))}));function P(e){var t,n,i,s;const l=(0,x.A)({props:e,name:"MuiPickersPopper"}),{anchorEl:u,children:p,containerRef:f=null,shouldRestoreFocus:b,onBlur:w,onDismiss:_,open:P,role:I,placement:M,slots:L,slotProps:R,reduceAnimations:j}=l;o.useEffect((()=>{function e(e){!P||"Escape"!==e.key&&"Esc"!==e.key||_()}return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[_,P]);const F=o.useRef(null);o.useEffect((()=>{"tooltip"===I||b&&!b()||(P?F.current=(0,S.bq)(document):F.current&&F.current instanceof HTMLElement&&setTimeout((()=>{F.current instanceof HTMLElement&&F.current.focus()})))}),[P,I,b]);const[D,N,z]=function(e,t){const n=o.useRef(!1),r=o.useRef(!1),i=o.useRef(null),a=o.useRef(!1);o.useEffect((()=>{if(e)return document.addEventListener("mousedown",t,!0),document.addEventListener("touchstart",t,!0),()=>{document.removeEventListener("mousedown",t,!0),document.removeEventListener("touchstart",t,!0),a.current=!1};function t(){a.current=!0}}),[e]);const s=(0,y.A)((e=>{if(!a.current)return;const o=r.current;r.current=!1;const s=(0,v.A)(i.current);if(!i.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth-1:!s.documentElement.contains(e.target)||i.current.contains(e.target),l||o||t(e)})),l=()=>{r.current=!0};return o.useEffect((()=>{if(e){const e=(0,v.A)(i.current),t=()=>{n.current=!0};return e.addEventListener("touchstart",s),e.addEventListener("touchmove",t),()=>{e.removeEventListener("touchstart",s),e.removeEventListener("touchmove",t)}}}),[e,s]),o.useEffect((()=>{if(e){const e=(0,v.A)(i.current);return e.addEventListener("click",s),()=>{e.removeEventListener("click",s),r.current=!1}}}),[e,s]),[i,l,l]}(P,null!=w?w:_),V=o.useRef(null),B=(0,c.A)(V,f),$=(0,c.A)(B,D),G=l,U=(e=>{const{classes:t}=e;return(0,m.A)({root:["root"],paper:["paper"]},A,t)})(G),W=(0,C.q)(),q=null!=j?j:W,H=(null!=(t=null==L?void 0:L.desktopTransition)?t:q)?h.A:d.A,Y=null!=(n=null==L?void 0:L.desktopTrapFocus)?n:g.s,K=null!=(i=null==L?void 0:L.desktopPaper)?i:T,X=null!=(s=null==L?void 0:L.popper)?s:k,Z=(0,a.Q)({elementType:X,externalSlotProps:null==R?void 0:R.popper,additionalProps:{transition:!0,role:I,open:P,anchorEl:u,placement:M,onKeyDown:e=>{"Escape"===e.key&&(e.stopPropagation(),_())}},className:U.root,ownerState:l});return(0,E.jsx)(X,(0,r.A)({},Z,{children:({TransitionProps:e,placement:t})=>(0,E.jsx)(Y,(0,r.A)({open:P,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:"tooltip"===I,isEnabled:()=>!0},null==R?void 0:R.desktopTrapFocus,{children:(0,E.jsx)(H,(0,r.A)({},e,null==R?void 0:R.desktopTransition,{children:(0,E.jsx)(O,{PaperComponent:K,ownerState:G,popperPlacement:t,ref:$,onPaperClick:N,onPaperTouchStart:z,paperClasses:U.paper,paperSlotProps:null==R?void 0:R.desktopPaper,children:p})}))}))}))}var I=n(34667),M=n(34039),L=n(38540),R=n(17614);const j=["props","getOpenDialogAriaText"],F=["ownerState"],D=["ownerState"],N=e=>{var t,n,d,h,p;let{props:f,getOpenDialogAriaText:g}=e,m=(0,i.A)(e,j);const{slots:y,slotProps:v,className:b,sx:x,format:w,formatDensity:A,timezone:S,name:C,label:_,inputRef:k,readOnly:T,disabled:O,autoFocus:N,localeText:z,reduceAnimations:V}=f,B=(0,I.hc)(),$=o.useRef(null),G=o.useRef(null),U=(0,u.A)(),W=null!=(t=null==v||null==(n=v.toolbar)?void 0:n.hidden)&&t,{open:q,actions:H,hasUIView:Y,layoutProps:K,renderCurrentView:X,shouldRestoreFocus:Z,fieldProps:J}=(0,M.k)((0,r.A)({},m,{props:f,inputRef:$,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),Q=null!=(d=y.inputAdornment)?d:s.A,ee=(0,a.Q)({elementType:Q,externalSlotProps:null==v?void 0:v.inputAdornment,additionalProps:{position:"end"},ownerState:f}),te=(0,i.A)(ee,F),ne=null!=(h=y.openPickerButton)?h:l.A,re=(0,a.Q)({elementType:ne,externalSlotProps:null==v?void 0:v.openPickerButton,additionalProps:{disabled:O||T,onClick:q?H.onClose:H.onOpen,"aria-label":g(J.value,B),edge:te.position},ownerState:f}),ie=(0,i.A)(re,D),oe=y.openPickerIcon,ae=y.field,se=(0,a.Q)({elementType:ae,externalSlotProps:null==v?void 0:v.field,additionalProps:(0,r.A)({},J,W&&{id:U},{readOnly:T,disabled:O,className:b,sx:x,format:w,formatDensity:A,timezone:S,label:_,name:C,autoFocus:N&&!f.open,focused:!!q||void 0}),ownerState:f});Y&&(se.InputProps=(0,r.A)({},se.InputProps,{ref:G,[`${te.position}Adornment`]:(0,E.jsx)(Q,(0,r.A)({},te,{children:(0,E.jsx)(ne,(0,r.A)({},ie,{children:(0,E.jsx)(oe,(0,r.A)({},null==v?void 0:v.openPickerIcon))}))}))}));const le=(0,r.A)({textField:y.textField,clearIcon:y.clearIcon,clearButton:y.clearButton},se.slots),ce=null!=(p=y.layout)?p:R.CJ,ue=(0,c.A)($,se.inputRef,k);let de=U;W&&(de=_?`${U}-label`:void 0);const he=(0,r.A)({},v,{toolbar:(0,r.A)({},null==v?void 0:v.toolbar,{titleId:U}),popper:(0,r.A)({"aria-labelledby":de},null==v?void 0:v.popper)});return{renderPicker:()=>(0,E.jsxs)(L.$,{localeText:z,children:[(0,E.jsx)(ae,(0,r.A)({},se,{slots:le,slotProps:he,inputRef:ue})),(0,E.jsx)(P,(0,r.A)({role:"dialog",placement:"bottom-start",anchorEl:G.current},H,{open:q,slots:y,slotProps:he,shouldRestoreFocus:Z,reduceAnimations:V,children:(0,E.jsx)(ce,(0,r.A)({},K,null==he?void 0:he.layout,{slots:y,slotProps:he,children:X()}))}))]})}}},68317:(e,t,n)=>{"use strict";n.d(t,{M:()=>x});var r=n(51559),i=n(73342),o=n(30538),a=n(43107),s=n(18605),l=n(18029),c=n(94145),u=n(88899),d=n(34667),h=n(36423),p=n(63095),f=n(16944),g=n(57696);const m=e=>null!=e.saveQuery,y=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,setTempAndroidValueStr:i,timezone:a})=>{const l=(0,d.hc)(),[c,u]=o.useState(null),p=(0,s.A)((()=>u(null)));o.useEffect((()=>{var t;null!=c&&(null==(t=e[c.sectionIndex])?void 0:t.type)!==c.sectionType&&p()}),[e,c,p]),o.useEffect((()=>{if(null!=c){const e=setTimeout((()=>p()),5e3);return()=>{window.clearTimeout(e)}}return()=>{}}),[c,p]);const f=({keyPressed:t,sectionIndex:n},r,i)=>{const o=t.toLowerCase(),a=e[n];if(null!=c&&(!i||i(c.value))&&c.sectionIndex===n){const e=`${c.value}${o}`,t=r(e,a);if(!m(t))return u({sectionIndex:n,value:e,sectionType:a.type}),t}const s=r(o,a);return m(s)&&!s.saveQuery?(p(),null):(u({sectionIndex:n,value:o,sectionType:a.type}),m(s)?null:s)};return{applyCharacterEditing:(0,s.A)((o=>{const s=e[o.sectionIndex],c=!Number.isNaN(Number(o.keyPressed))?(e=>{const t=(e,t)=>{const r=Number(`${e}`),i=n[t.type]({currentDate:null,format:t.format,contentType:t.contentType});if(r>i.maximum)return{saveQuery:!1};if(ri.maximum||e.length===i.maximum.toString().length;return{sectionValue:(0,h.bQ)(l,a,r,i,t),shouldGoToNextSection:o}};return f(e,((e,n)=>{if("digit"===n.contentType||"digit-with-letter"===n.contentType)return t(e,n);if("month"===n.type){const i=(0,h.Xw)(l,a,"digit","month","MM"),o=t(e,{type:n.type,format:"MM",hasLeadingZerosInFormat:i,hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(m(o))return o;const s=(0,h.C7)(l,o.sectionValue,"MM",n.format);return(0,r.A)({},o,{sectionValue:s})}if("weekDay"===n.type){const i=t(e,n);if(m(i))return i;const o=(0,h.s8)(l,a,n.format)[Number(i.sectionValue)-1];return(0,r.A)({},i,{sectionValue:o})}return{saveQuery:!1}}),(e=>!Number.isNaN(Number(e))))})(o):(e=>{const t=(e,t,n)=>{const r=t.filter((e=>e.toLowerCase().startsWith(n)));return 0===r.length?{saveQuery:!1}:{sectionValue:r[0],shouldGoToNextSection:1===r.length}},n=(e,n,i,o)=>{const s=e=>(0,h.hk)(l,a,n.type,e);if("letter"===n.contentType)return t(n.format,s(n.format),e);if(i&&null!=o&&"letter"===(0,h.wp)(l,i).contentType){const n=s(i),a=t(0,n,e);return m(a)?{saveQuery:!1}:(0,r.A)({},a,{sectionValue:o(a.sectionValue,n)})}return{saveQuery:!1}};return f(e,((e,t)=>{switch(t.type){case"month":{const r=e=>(0,h.C7)(l,e,l.formats.month,t.format);return n(e,t,l.formats.month,r)}case"weekDay":{const r=(e,t)=>t.indexOf(e).toString();return n(e,t,l.formats.weekday,r)}case"meridiem":return n(e,t);default:return{saveQuery:!1}}}))})(o);null==c?i(null):t({activeSection:s,newSectionValue:c.sectionValue,shouldGoToNextSection:c.shouldGoToNextSection})})),resetCharacterQuery:p}};var v=n(40159);const b=["onClick","onKeyDown","onFocus","onBlur","onMouseUp","onPaste","error","clearable","onClear","disabled"],x=e=>{const t=(0,d.hc)(),{state:n,selectedSectionIndexes:m,setSelectedSections:x,clearValue:w,clearActiveSection:A,updateSectionValue:S,updateValueFromValueStr:C,setTempAndroidValueStr:E,sectionsValueBoundaries:_,placeholder:k,timezone:T}=(e=>{const t=(0,d.hc)(),n=(0,d.Nq)(),i=(0,d.u)(),a="rtl"===(0,c.A)().direction,{valueManager:s,fieldValueManager:l,valueType:u,validator:m,internalProps:y,internalProps:{value:v,defaultValue:b,referenceDate:x,onChange:w,format:A,formatDensity:S="dense",selectedSections:C,onSelectedSectionsChange:E,shouldRespectLeadingZeros:_=!1,timezone:k}}=e,{timezone:T,value:O,handleValueChange:P}=(0,f.M)({timezone:k,value:v,defaultValue:b,onChange:w,valueManager:s}),I=o.useMemo((()=>(0,h.Lz)(t,T)),[t,T]),M=o.useCallback(((e,r=null)=>l.getSectionsFromValue(t,e,r,a,(e=>(0,h.MQ)(t,T,n,A,e,S,_,a)))),[l,A,n,a,_,t,S,T]),L=o.useMemo((()=>l.getValueStrFromSections(M(s.emptyValue),a)),[l,M,s.emptyValue,a]),[R,j]=o.useState((()=>{const e=M(O);(0,h.xL)(e,u);const n={sections:e,value:O,referenceValue:s.emptyValue,tempValueStrAndroid:null},i=(0,g.kI)(e),o=s.getInitialReferenceValue({referenceDate:x,value:O,utils:t,props:y,granularity:i,timezone:T});return(0,r.A)({},n,{referenceValue:o})})),[F,D]=(0,p.A)({controlled:C,default:null,name:"useField",state:"selectedSectionIndexes"}),N=e=>{D(e),null==E||E(e),j((e=>(0,r.A)({},e,{selectedSectionQuery:null})))},z=o.useMemo((()=>{if(null==F)return null;if("all"===F)return{startIndex:0,endIndex:R.sections.length-1,shouldSelectBoundarySelectors:!0};if("number"==typeof F)return{startIndex:F,endIndex:F};if("string"==typeof F){const e=R.sections.findIndex((e=>e.type===F));return{startIndex:e,endIndex:e}}return F}),[F,R.sections]),V=({value:e,referenceValue:n,sections:o})=>{if(j((t=>(0,r.A)({},t,{sections:o,value:e,referenceValue:n,tempValueStrAndroid:null}))),s.areValuesEqual(t,R.value,e))return;const a={validationError:m({adapter:i,value:e,props:(0,r.A)({},y,{value:e,timezone:T})})};P(e,a)},B=(e,t)=>{const n=[...R.sections];return n[e]=(0,r.A)({},n[e],{value:t,modified:!0}),(0,h.H6)(n,a)};return o.useEffect((()=>{const e=M(R.value);(0,h.xL)(e,u),j((t=>(0,r.A)({},t,{sections:e})))}),[A,t.locale]),o.useEffect((()=>{let e=!1;e=!s.areValuesEqual(t,R.value,O)||s.getTimezone(t,R.value)!==s.getTimezone(t,O),e&&j((e=>(0,r.A)({},e,{value:O,referenceValue:l.updateReferenceValue(t,O,e.referenceValue),sections:M(O)})))}),[O]),{state:R,selectedSectionIndexes:z,setSelectedSections:N,clearValue:()=>{V({value:s.emptyValue,referenceValue:R.referenceValue,sections:M(s.emptyValue)})},clearActiveSection:()=>{if(null==z)return;const e=R.sections[z.startIndex],n=l.getActiveDateManager(t,R,e),i=n.getSections(R.sections).filter((e=>""!==e.value)).length===(""===e.value?0:1),o=B(z.startIndex,""),a=i?null:t.date(new Date("")),s=n.getNewValuesFromNewActiveDate(a);(null!=a&&!t.isValid(a))!=(null!=n.date&&!t.isValid(n.date))?V((0,r.A)({},s,{sections:o})):j((e=>(0,r.A)({},e,s,{sections:o,tempValueStrAndroid:null})))},updateSectionValue:({activeSection:e,newSectionValue:n,shouldGoToNextSection:i})=>{i&&z&&z.startIndex(0,r.A)({},e,u,{sections:a,tempValueStrAndroid:null})))},updateValueFromValueStr:e=>{const r=l.parseValueStr(e,R.referenceValue,((e,r)=>{const i=t.parse(e,A);if(null==i||!t.isValid(i))return null;const o=(0,h.MQ)(t,T,n,A,i,S,_,a);return(0,h.Sp)(t,T,i,o,r,!1)})),i=l.updateReferenceValue(t,r,R.referenceValue);V({value:r,referenceValue:i,sections:M(r,R.sections)})},setTempAndroidValueStr:e=>j((t=>(0,r.A)({},t,{tempValueStrAndroid:e}))),sectionsValueBoundaries:I,placeholder:L,timezone:T}})(e),{inputRef:O,internalProps:P,internalProps:{readOnly:I=!1,unstableFieldRef:M,minutesStep:L},forwardedProps:{onClick:R,onKeyDown:j,onFocus:F,onBlur:D,onMouseUp:N,onPaste:z,error:V,clearable:B,onClear:$,disabled:G},fieldValueManager:U,valueManager:W,validator:q}=e,H=(0,i.A)(e.forwardedProps,b),{applyCharacterEditing:Y,resetCharacterQuery:K}=y({sections:n.sections,updateSectionValue:S,sectionsValueBoundaries:_,setTempAndroidValueStr:E,timezone:T}),X=o.useRef(null),Z=(0,l.A)(O,X),J=o.useRef(void 0),Q="rtl"===(0,c.A)().direction,ee=o.useMemo((()=>(0,h.gS)(n.sections,Q)),[n.sections,Q]),te=()=>{var e;if(I)return void x(null);const t=null!=(e=X.current.selectionStart)?e:0;let r;r=t<=n.sections[0].startInInput||t>=n.sections[n.sections.length-1].endInInput?1:n.sections.findIndex((e=>e.startInInput-e.startSeparator.length>t));const i=-1===r?n.sections.length-1:r-1;x(i)},ne=(0,s.A)(((e,...t)=>{e.isDefaultPrevented()||(null==R||R(e,...t),te())})),re=(0,s.A)((e=>{null==N||N(e),e.preventDefault()})),ie=(0,s.A)(((...e)=>{null==F||F(...e);const t=X.current;window.clearTimeout(J.current),J.current=setTimeout((()=>{t&&t===X.current&&(null!=m||I||(t.value.length&&Number(t.selectionEnd)-Number(t.selectionStart)===t.value.length?x("all"):te()))}))})),oe=(0,s.A)(((...e)=>{null==D||D(...e),x(null)})),ae=(0,s.A)((e=>{if(null==z||z(e),I)return void e.preventDefault();const t=e.clipboardData.getData("text");if(m&&m.startIndex===m.endIndex){const r=n.sections[m.startIndex],i=/^[a-zA-Z]+$/.test(t),o=/^[0-9]+$/.test(t),a=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(t);if("letter"===r.contentType&&i||"digit"===r.contentType&&o||"digit-with-letter"===r.contentType&&a)return K(),S({activeSection:r,newSectionValue:t,shouldGoToNextSection:!0}),void e.preventDefault();if(i||o)return void e.preventDefault()}e.preventDefault(),K(),C(t)})),se=(0,s.A)((e=>{if(I)return;const t=e.target.value;if(""===t)return K(),void w();const r=e.nativeEvent.data,i=r&&r.length>1,o=i?r:t,a=(0,h.HI)(o);if(null==m||i)return void C(i?r:a);let s;if(0===m.startIndex&&m.endIndex===n.sections.length-1&&1===a.length)s=a;else{const e=(0,h.HI)(U.getValueStrFromSections(n.sections,Q));let t=-1,r=-1;for(let n=0;ni.end)return;const o=a.length-e.length+i.end-(0,h.HI)(i.endSeparator||"").length;s=a.slice(i.start+(0,h.HI)(i.startSeparator||"").length,o)}0!==s.length?Y({keyPressed:s,sectionIndex:m.startIndex}):(0,h.m0)()?E(o):(K(),A())})),le=(0,s.A)((e=>{switch(null==j||j(e),!0){case"a"===e.key&&(e.ctrlKey||e.metaKey):e.preventDefault(),x("all");break;case"ArrowRight"===e.key:if(e.preventDefault(),null==m)x(ee.startIndex);else if(m.startIndex!==m.endIndex)x(m.endIndex);else{const e=ee.neighbors[m.startIndex].rightIndex;null!==e&&x(e)}break;case"ArrowLeft"===e.key:if(e.preventDefault(),null==m)x(ee.endIndex);else if(m.startIndex!==m.endIndex)x(m.startIndex);else{const e=ee.neighbors[m.startIndex].leftIndex;null!==e&&x(e)}break;case"Delete"===e.key:if(e.preventDefault(),I)break;null==m||0===m.startIndex&&m.endIndex===n.sections.length-1?w():A(),K();break;case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(e.key):{if(e.preventDefault(),I||null==m)break;const r=n.sections[m.startIndex],i=U.getActiveDateManager(t,n,r),o=(0,h.UY)(t,T,r,e.key,_,i.date,{minutesStep:L});S({activeSection:r,newSectionValue:o,shouldGoToNextSection:!1});break}}}));(0,a.A)((()=>{if(!X.current)return;if(null==m)return void(X.current.scrollLeft&&(X.current.scrollLeft=0));const e=n.sections[m.startIndex],t=n.sections[m.endIndex];let r=e.startInInput,i=t.endInInput;if(m.shouldSelectBoundarySelectors&&(r-=e.startSeparator.length,i+=t.endSeparator.length),r!==X.current.selectionStart||i!==X.current.selectionEnd){const e=X.current.scrollTop;X.current===(0,v.bq)(document)&&X.current.setSelectionRange(r,i),X.current.scrollTop=e}}));const ce=(0,u.$)((0,r.A)({},P,{value:n.value,timezone:T}),q,W.isSameError,W.defaultErrorState),ue=o.useMemo((()=>void 0!==V?V:W.hasError(ce)),[W,ce,V]);o.useEffect((()=>{ue||m||K()}),[n.referenceValue,m,ue]),o.useEffect((()=>(X.current&&X.current===document.activeElement&&x("all"),()=>window.clearTimeout(J.current))),[]),o.useEffect((()=>{null!=n.tempValueStrAndroid&&null!=m&&(K(),A())}),[n.tempValueStrAndroid]);const de=o.useMemo((()=>{var e;return null!=(e=n.tempValueStrAndroid)?e:U.getValueStrFromSections(n.sections,Q)}),[n.sections,U,n.tempValueStrAndroid,Q]),he=o.useMemo((()=>null==m||"letter"===n.sections[m.startIndex].contentType?"text":"numeric"),[m,n.sections]),pe=X.current&&X.current===(0,v.bq)(document),fe=W.areValuesEqual(t,n.value,W.emptyValue),ge=!pe&&fe;o.useImperativeHandle(M,(()=>({getSections:()=>n.sections,getActiveSectionIndex:()=>{var e,t,r;const i=null!=(e=X.current.selectionStart)?e:0,o=null!=(t=X.current.selectionEnd)?t:0,a=!(null==(r=X.current)||!r.readOnly);if(0===i&&0===o||a)return null;const s=i<=n.sections[0].startInInput?1:n.sections.findIndex((e=>e.startInInput-e.startSeparator.length>i));return-1===s?n.sections.length-1:s-1},setSelectedSections:e=>x(e)})));const me=(0,s.A)(((e,...t)=>{var n;e.preventDefault(),null==$||$(e,...t),w(),null==X||null==(n=X.current)||n.focus(),x(0)}));return(0,r.A)({placeholder:k,autoComplete:"off",disabled:Boolean(G)},H,{value:ge?"":de,inputMode:he,readOnly:I,onClick:ne,onFocus:ie,onBlur:oe,onPaste:ae,onChange:se,onKeyDown:le,onMouseUp:re,onClear:me,error:ue,ref:Z,clearable:Boolean(B&&!fe&&!I&&!G)})}},36423:(e,t,n)=>{"use strict";n.d(t,{$i:()=>b,C7:()=>g,H6:()=>p,HI:()=>h,Lz:()=>w,MQ:()=>v,Sp:()=>C,UY:()=>u,Xw:()=>y,bQ:()=>c,bl:()=>x,gS:()=>_,hk:()=>s,m0:()=>E,s8:()=>a,wp:()=>o,xL:()=>A});var r=n(51559),i=n(84316);const o=(e,t)=>{const n=e.formatTokenMap[t];if(null==n)throw new Error([`MUI: The token "${t}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join("\n"));return"string"==typeof n?{type:n,contentType:"meridiem"===n?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},a=(e,t,n)=>{const r=[],i=e.dateWithTimezone(void 0,t),o=e.startOfWeek(i),a=e.endOfWeek(i);let s=o;for(;e.isBefore(s,a);)r.push(s),s=e.addDays(s,1);return r.map((t=>e.formatByString(t,n)))},s=(e,t,n,r)=>{switch(n){case"month":return(0,i.YQ)(e,e.dateWithTimezone(void 0,t)).map((t=>e.formatByString(t,r)));case"weekDay":return a(e,t,r);case"meridiem":{const n=e.dateWithTimezone(void 0,t);return[e.startOfDay(n),e.endOfDay(n)].map((t=>e.formatByString(t,r)))}default:return[]}},l=(e,t,n)=>{let r=t;for(r=Number(r).toString();r.length{if("day"===i.type&&"digit-with-letter"===i.contentType){const t=e.setDate(r.longestMonth,n);return e.formatByString(t,i.format)}const o=n.toString();return i.hasLeadingZerosInInput?l(0,o,i.maxLength):o},u=(e,t,n,r,i,o,a)=>{const l=(e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}})(r),u="Home"===r,d="End"===r,h=""===n.value||u||d;return"digit"===n.contentType||"digit-with-letter"===n.contentType?(()=>{const r=i[n.type]({currentDate:o,format:n.format,contentType:n.contentType}),s=i=>c(e,t,i,r,n),p="minutes"===n.type&&null!=a&&a.minutesStep?a.minutesStep:1;let f=parseInt(n.value,10)+l*p;if(h){if("year"===n.type&&!d&&!u)return e.formatByString(e.dateWithTimezone(void 0,t),n.format);f=l>0||u?r.minimum:r.maximum}return f%p!=0&&((l<0||u)&&(f+=p-(p+f)%p),(l>0||d)&&(f-=f%p)),f>r.maximum?s(r.minimum+(f-r.maximum-1)%(r.maximum-r.minimum+1)):f{const r=s(e,t,n.type,n.format);if(0===r.length)return n.value;if(h)return l>0||u?r[0]:r[r.length-1];const i=r.indexOf(n.value);return r[(i+r.length+l)%r.length]})()},d=(e,t)=>{let n=e.value||e.placeholder;const r="non-input"===t?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;"non-input"===t&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(n=Number(n).toString());return["input-rtl","input-ltr"].includes(t)&&"digit"===e.contentType&&!r&&1===n.length&&(n=`${n}‎`),"input-rtl"===t&&(n=`⁨${n}⁩`),n},h=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),p=(e,t)=>{let n=0,i=t?1:0;const o=[];for(let a=0;a{switch(r.type){case"year":return n.fieldYearPlaceholder({digitAmount:e.formatByString(e.dateWithTimezone(void 0,t),i).length,format:i});case"month":return n.fieldMonthPlaceholder({contentType:r.contentType,format:i});case"day":return n.fieldDayPlaceholder({format:i});case"weekDay":return n.fieldWeekDayPlaceholder({contentType:r.contentType,format:i});case"hours":return n.fieldHoursPlaceholder({format:i});case"minutes":return n.fieldMinutesPlaceholder({format:i});case"seconds":return n.fieldSecondsPlaceholder({format:i});case"meridiem":return n.fieldMeridiemPlaceholder({format:i});default:return i}},g=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),m=(e,t,n)=>4===e.formatByString(e.dateWithTimezone(void 0,t),n).length,y=(e,t,n,r,i)=>{if("digit"!==n)return!1;const o=e.dateWithTimezone(void 0,t);switch(r){case"year":if(m(e,t,i)){return"0001"===e.formatByString(e.setYear(o,1),i)}return"01"===e.formatByString(e.setYear(o,2001),i);case"month":return e.formatByString(e.startOfYear(o),i).length>1;case"day":return e.formatByString(e.startOfMonth(o),i).length>1;case"weekDay":return e.formatByString(e.startOfWeek(o),i).length>1;case"hours":return e.formatByString(e.setHours(o,1),i).length>1;case"minutes":return e.formatByString(e.setMinutes(o,1),i).length>1;case"seconds":return e.formatByString(e.setSeconds(o,1),i).length>1;default:throw new Error("Invalid section type")}},v=(e,t,n,i,a,s,c,u)=>{let d="";const h=[],p=e.date(),g=i=>{if(""===i)return null;const s=o(e,i),u=y(e,t,s.contentType,s.type,i),g=c?u:"digit"===s.contentType,m=null!=a&&e.isValid(a);let v=m?e.formatByString(a,i):"",b=null;if(g)if(u)b=""===v?e.formatByString(p,i).length:v.length;else{if(null==s.maxLength)throw new Error(`MUI: The token ${i} should have a 'maxDigitNumber' property on it's adapter`);b=s.maxLength,m&&(v=l(0,v,b))}return h.push((0,r.A)({},s,{format:i,maxLength:b,value:v,placeholder:f(e,t,n,s,i),hasLeadingZeros:u,hasLeadingZerosInFormat:u,hasLeadingZerosInInput:g,startSeparator:0===h.length?d:"",endSeparator:"",modified:!1})),null};let m=10,v=i,b=e.expandFormat(i);for(;b!==v;)if(v=b,b=e.expandFormat(v),m-=1,m<0)throw new Error("MUI: The format expansion seems to be enter in an infinite loop. Please open an issue with the format passed to the picker component");const x=b,w=((e,t)=>{const n=[],{start:r,end:i}=e.escapedCharacters,o=new RegExp(`(\\${r}[^\\${i}]*\\${i})+`,"g");let a=null;for(;a=o.exec(t);)n.push({start:a.index,end:o.lastIndex-1});return n})(e,x),A=new RegExp(`^(${Object.keys(e.formatTokenMap).sort(((e,t)=>t.length-e.length)).join("|")})`,"g");let S="";for(let e=0;et.start<=e&&t.end>=e)),n=x[e],r=null!=t,i=`${S}${x.slice(e)}`,o=A.test(i);if(!r&&n.match(/([A-Za-z]+)/)&&o)S=i.slice(0,A.lastIndex),e+=A.lastIndex-1;else{r&&(null==t?void 0:t.start)===e||(null==t?void 0:t.end)===e||(g(S),S="",0===h.length?d+=n:h[h.length-1].endSeparator+=n)}}return g(S),h.map((e=>{const t=e=>{let t=e;return u&&null!==t&&t.includes(" ")&&(t=`⁩${t}⁦`),"spacious"===s&&["/",".","-"].includes(t)&&(t=` ${t} `),t};return e.startSeparator=t(e.startSeparator),e.endSeparator=t(e.endSeparator),e}))},b=(e,t)=>{const n=t.some((e=>"day"===e.type)),r=[],i=[];for(let e=0;e{const n=e.map((e=>{const n=d(e,t?"input-rtl":"input-ltr");return`${e.startSeparator}${n}${e.endSeparator}`})).join("");return t?`⁦${n}⁩`:n},w=(e,t)=>{const n=e.dateWithTimezone(void 0,t),r=e.endOfYear(n),o=e.endOfDay(n),{maxDaysInMonth:s,longestMonth:l}=(0,i.YQ)(e,n).reduce(((t,n)=>{const r=e.getDaysInMonth(n);return r>t.maxDaysInMonth?{maxDaysInMonth:r,longestMonth:n}:t}),{maxDaysInMonth:0,longestMonth:null});return{year:({format:n})=>({minimum:0,maximum:m(e,t,n)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(r)+1}),day:({currentDate:t})=>({minimum:1,maximum:null!=t&&e.isValid(t)?e.getDaysInMonth(t):s,longestMonth:l}),weekDay:({format:n,contentType:r})=>{if("digit"===r){const r=a(e,t,n).map(Number);return{minimum:Math.min(...r),maximum:Math.max(...r)}}return{minimum:1,maximum:7}},hours:({format:t})=>{const r=e.getHours(o);return e.formatByString(e.endOfDay(n),t)!==r.toString()?{minimum:1,maximum:Number(e.formatByString(e.startOfDay(n),t))}:{minimum:0,maximum:r}},minutes:()=>({minimum:0,maximum:e.getMinutes(o)}),seconds:()=>({minimum:0,maximum:e.getSeconds(o)}),meridiem:()=>({minimum:0,maximum:0})}};const A=(e,t)=>{0},S={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8},C=(e,t,n,r,i,o)=>[...r].sort(((e,t)=>S[e.type]-S[t.type])).reduce(((r,i)=>!o||i.modified?((e,t,n,r,i)=>{switch(n.type){case"year":return e.setYear(i,e.getYear(r));case"month":return e.setMonth(i,e.getMonth(r));case"weekDay":{const i=a(e,t,n.format),o=e.formatByString(r,n.format),s=i.indexOf(o),l=i.indexOf(n.value)-s;return e.addDays(r,l)}case"day":return e.setDate(i,e.getDate(r));case"meridiem":{const t=e.getHours(r)<12,n=e.getHours(i);return t&&n>=12?e.addHours(i,-12):!t&&n<12?e.addHours(i,12):i}case"hours":return e.setHours(i,e.getHours(r));case"minutes":return e.setMinutes(i,e.getMinutes(r));case"seconds":return e.setSeconds(i,e.getSeconds(r));default:return i}})(e,t,i,n,r):r),i),E=()=>navigator.userAgent.toLowerCase().indexOf("android")>-1,_=(e,t)=>{const n={};if(!t)return e.forEach(((t,r)=>{const i=0===r?null:r-1,o=r===e.length-1?null:r+1;n[r]={leftIndex:i,rightIndex:o}})),{neighbors:n,startIndex:0,endIndex:e.length-1};const r={},i={};let o=0,a=0,s=e.length-1;for(;s>=0;){a=e.findIndex(((e,t)=>{var n;return t>=o&&(null==(n=e.endSeparator)?void 0:n.includes(" "))&&" / "!==e.endSeparator})),-1===a&&(a=e.length-1);for(let e=a;e>=o;e-=1)i[e]=s,r[s]=e,s-=1;o=a+1}return e.forEach(((t,o)=>{const a=i[o],s=0===a?null:r[a-1],l=a===e.length-1?null:r[a+1];n[o]={leftIndex:s,rightIndex:l}})),{neighbors:n,startIndex:r[0],endIndex:r[e.length-1]}}},69136:(e,t,n)=>{"use strict";n.d(t,{C:()=>E});var r=n(51559),i=n(73342),o=n(30538),a=n(94267),s=n(18029),l=n(5391),c=n(99311),u=n(68127),d=n(53279),h=n(11371),p=n(58990),f=n(8589),g=n(97282);const m=(0,p.Ay)(d.A)({[`& .${h.A.container}`]:{outline:0},[`& .${h.A.paper}`]:{outline:0,minWidth:f.eX}}),y=(0,p.Ay)(c.A)({"&:first-of-type":{padding:0}});function v(e){var t,n;const{children:i,onDismiss:o,open:a,slots:s,slotProps:l}=e,c=null!=(t=null==s?void 0:s.dialog)?t:m,d=null!=(n=null==s?void 0:s.mobileTransition)?n:u.A;return(0,g.jsx)(c,(0,r.A)({open:a,onClose:o},null==l?void 0:l.dialog,{TransitionComponent:d,TransitionProps:null==l?void 0:l.mobileTransition,PaperComponent:null==s?void 0:s.mobilePaper,PaperProps:null==l?void 0:l.mobilePaper,children:(0,g.jsx)(y,{children:i})}))}var b=n(34039),x=n(40159),w=n(34667),A=n(38540),S=n(17614);const C=["props","getOpenDialogAriaText"],E=e=>{var t,n,c;let{props:u,getOpenDialogAriaText:d}=e,h=(0,i.A)(e,C);const{slots:p,slotProps:f,className:m,sx:y,format:E,formatDensity:_,timezone:k,name:T,label:O,inputRef:P,readOnly:I,disabled:M,localeText:L}=u,R=(0,w.hc)(),j=o.useRef(null),F=(0,l.A)(),D=null!=(t=null==f||null==(n=f.toolbar)?void 0:n.hidden)&&t,{open:N,actions:z,layoutProps:V,renderCurrentView:B,fieldProps:$}=(0,b.k)((0,r.A)({},h,{props:u,inputRef:j,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),G=p.field,U=(0,a.Q)({elementType:G,externalSlotProps:null==f?void 0:f.field,additionalProps:(0,r.A)({},$,D&&{id:F},!(M||I)&&{onClick:z.onOpen,onKeyDown:(0,x.rQ)(z.onOpen)},{readOnly:null==I||I,disabled:M,className:m,sx:y,format:E,formatDensity:_,timezone:k,label:O,name:T}),ownerState:u});U.inputProps=(0,r.A)({},U.inputProps,{"aria-label":d($.value,R)});const W=(0,r.A)({textField:p.textField},U.slots),q=null!=(c=p.layout)?c:S.CJ,H=(0,s.A)(j,U.inputRef,P);let Y=F;D&&(Y=O?`${F}-label`:void 0);const K=(0,r.A)({},f,{toolbar:(0,r.A)({},null==f?void 0:f.toolbar,{titleId:F}),mobilePaper:(0,r.A)({"aria-labelledby":Y},null==f?void 0:f.mobilePaper)});return{renderPicker:()=>(0,g.jsxs)(A.$,{localeText:L,children:[(0,g.jsx)(G,(0,r.A)({},U,{slots:W,slotProps:K,inputRef:H})),(0,g.jsx)(v,(0,r.A)({},z,{open:N,slots:p,slotProps:K,children:(0,g.jsx)(q,(0,r.A)({},V,null==K?void 0:K.layout,{slots:p,slotProps:K,children:B()}))}))]})}}},34039:(e,t,n)=>{"use strict";n.d(t,{k:()=>b});var r=n(51559),i=n(30538),o=n(63095),a=n(18605);var s=n(34667),l=n(88899),c=n(16944);const u=({props:e,valueManager:t,valueType:n,wrapperVariant:u,validator:d})=>{const{onAccept:h,onChange:p,value:f,defaultValue:g,closeOnSelect:m="desktop"===u,selectedSections:y,onSelectedSectionsChange:v,timezone:b}=e,{current:x}=i.useRef(g),{current:w}=i.useRef(void 0!==f);const A=(0,s.hc)(),S=(0,s.u)(),[C,E]=(0,o.A)({controlled:y,default:null,name:"usePickerValue",state:"selectedSections"}),{isOpen:_,setIsOpen:k}=(({open:e,onOpen:t,onClose:n})=>{const r=i.useRef("boolean"==typeof e).current,[o,a]=i.useState(!1);return i.useEffect((()=>{if(r){if("boolean"!=typeof e)throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");a(e)}}),[r,e]),{isOpen:o,setIsOpen:i.useCallback((e=>{r||a(e),e&&t&&t(),!e&&n&&n()}),[r,t,n])}})(e),[T,O]=i.useState((()=>{let e;return e=void 0!==f?f:void 0!==x?x:t.emptyValue,{draft:e,lastPublishedValue:e,lastCommittedValue:e,lastControlledValue:f,hasBeenModifiedSinceMount:!1}})),{timezone:P,handleValueChange:I}=(0,c.M)({timezone:b,value:f,defaultValue:x,onChange:p,valueManager:t});(0,l.$)((0,r.A)({},e,{value:T.draft,timezone:P}),d,t.isSameError,t.defaultErrorState);const M=(0,a.A)((n=>{const i={action:n,dateState:T,hasChanged:e=>!t.areValuesEqual(A,n.value,e),isControlled:w,closeOnSelect:m},o=(e=>{const{action:t,hasChanged:n,dateState:r,isControlled:i}=e,o=!i&&!r.hasBeenModifiedSinceMount;return"setValueFromField"===t.name||("setValueFromAction"===t.name?!(!o||!["accept","today","clear"].includes(t.pickerAction))||n(r.lastPublishedValue):("setValueFromView"===t.name&&"shallow"!==t.selectionState||"setValueFromShortcut"===t.name)&&(!!o||n(r.lastPublishedValue)))})(i),a=(e=>{const{action:t,hasChanged:n,dateState:r,isControlled:i,closeOnSelect:o}=e,a=!i&&!r.hasBeenModifiedSinceMount;return"setValueFromAction"===t.name?!(!a||!["accept","today","clear"].includes(t.pickerAction))||n(r.lastCommittedValue):"setValueFromView"===t.name&&"finish"===t.selectionState&&o?!!a||n(r.lastCommittedValue):"setValueFromShortcut"===t.name&&"accept"===t.changeImportance&&n(r.lastCommittedValue)})(i),s=(e=>{const{action:t,closeOnSelect:n}=e;return"setValueFromAction"===t.name||("setValueFromView"===t.name?"finish"===t.selectionState&&n:"setValueFromShortcut"===t.name&&"accept"===t.changeImportance)})(i);if(O((e=>(0,r.A)({},e,{draft:n.value,lastPublishedValue:o?n.value:e.lastPublishedValue,lastCommittedValue:a?n.value:e.lastCommittedValue,hasBeenModifiedSinceMount:!0}))),o){const t={validationError:"setValueFromField"===n.name?n.context.validationError:d({adapter:S,value:n.value,props:(0,r.A)({},e,{value:n.value,timezone:P})})};"setValueFromShortcut"===n.name&&null!=n.shortcut&&(t.shortcut=n.shortcut),I(n.value,t)}a&&h&&h(n.value),s&&k(!1)}));if(void 0!==f&&(void 0===T.lastControlledValue||!t.areValuesEqual(A,T.lastControlledValue,f))){const e=t.areValuesEqual(A,T.draft,f);O((t=>(0,r.A)({},t,{lastControlledValue:f},e?{}:{lastCommittedValue:f,lastPublishedValue:f,draft:f,hasBeenModifiedSinceMount:!0})))}const L=(0,a.A)((()=>{M({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})})),R=(0,a.A)((()=>{M({value:T.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})})),j=(0,a.A)((()=>{M({value:T.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})})),F=(0,a.A)((()=>{M({value:T.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})})),D=(0,a.A)((()=>{M({value:t.getTodayValue(A,P,n),name:"setValueFromAction",pickerAction:"today"})})),N=(0,a.A)((()=>k(!0))),z=(0,a.A)((()=>k(!1))),V=(0,a.A)(((e,t="partial")=>M({name:"setValueFromView",value:e,selectionState:t}))),B=(0,a.A)(((e,t,n)=>M({name:"setValueFromShortcut",value:e,changeImportance:null!=t?t:"accept",shortcut:n}))),$=(0,a.A)(((e,t)=>M({name:"setValueFromField",value:e,context:t}))),G=(0,a.A)((e=>{E(e),null==v||v(e)})),U={onClear:L,onAccept:R,onDismiss:j,onCancel:F,onSetToday:D,onOpen:N,onClose:z},W={value:T.draft,onChange:$,selectedSections:C,onSelectedSectionsChange:G},q=i.useMemo((()=>t.cleanValue(A,T.draft)),[A,t,T.draft]);return{open:_,fieldProps:W,viewProps:{value:q,onChange:V,onClose:z,open:_,onSelectedSectionsChange:G},layoutProps:(0,r.A)({},U,{value:q,onChange:V,onSelectShortcut:B,isValid:n=>{const i=d({adapter:S,value:n,props:(0,r.A)({},e,{value:n,timezone:P})});return!t.hasError(i)}}),actions:U}};var d=n(73342),h=n(43107),p=n(56468),f=n(32357);const g=["className","sx"];var m=n(40159);function y(){return"undefined"==typeof window?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?90===Math.abs(window.screen.orientation.angle)?"landscape":"portrait":window.orientation&&90===Math.abs(Number(window.orientation))?"landscape":"portrait"}const v=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:o})=>{const{orientation:a}=e,s=((e,t)=>{const[n,r]=i.useState(y);return(0,h.A)((()=>{const e=()=>{r(y())};return window.addEventListener("orientationchange",e),()=>{window.removeEventListener("orientationchange",e)}}),[]),!(0,m.Xk)(e,["hours","minutes","seconds"])&&"landscape"===(t||n)})(n.views,a);return{layoutProps:(0,r.A)({},n,t,{isLandscape:s,wrapperVariant:o,disabled:e.disabled,readOnly:e.readOnly})}};(0,n(54370).f)(["The `renderInput` prop has been removed in version 6.0 of the Date and Time Pickers.","You can replace it with the `textField` component slot in most cases.","For more information, please have a look at the migration guide (https://mui.com/x/migration/migration-pickers-v5/#input-renderer-required-in-v5)."]);const b=({props:e,valueManager:t,valueType:n,wrapperVariant:o,inputRef:s,additionalViewProps:l,validator:c,autoFocusView:m})=>{const y=u({props:e,valueManager:t,valueType:n,wrapperVariant:o,validator:c}),b=(({props:e,propsFromPickerValue:t,additionalViewProps:n,inputRef:o,autoFocusView:s})=>{const{onChange:l,open:c,onSelectedSectionsChange:u,onClose:m}=t,{views:y,openTo:v,onViewChange:b,disableOpenPicker:x,viewRenderers:w,timezone:A}=e,S=(0,d.A)(e,g),{view:C,setView:E,defaultView:_,focusedView:k,setFocusedView:T,setValueAndGoToNextView:O}=(0,p.o)({view:void 0,views:y,openTo:v,onChange:l,onViewChange:b,autoFocus:s}),{hasUIView:P,viewModeLookup:I}=i.useMemo((()=>y.reduce(((e,t)=>{let n;return n=x?"field":null!=w[t]?"UI":"field",e.viewModeLookup[t]=n,"UI"===n&&(e.hasUIView=!0),e}),{hasUIView:!1,viewModeLookup:{}})),[x,w,y]),M=i.useMemo((()=>y.reduce(((e,t)=>null!=w[t]&&(0,f.hW)(t)?e+1:e),0)),[w,y]),L=I[C],R=(0,a.A)((()=>"UI"===L)),[j,F]=i.useState("UI"===L?C:null);return j!==C&&"UI"===I[C]&&F(C),(0,h.A)((()=>{"field"===L&&c&&(m(),setTimeout((()=>{null==o||o.current.focus(),u(C)})))}),[C]),(0,h.A)((()=>{if(!c)return;let e=C;"field"===L&&null!=j&&(e=j),e!==_&&"UI"===I[e]&&"UI"===I[_]&&(e=_),e!==C&&E(e),T(e,!0)}),[c]),{hasUIView:P,shouldRestoreFocus:R,layoutProps:{views:y,view:j,onViewChange:E},renderCurrentView:()=>{if(null==j)return null;const e=w[j];return null==e?null:e((0,r.A)({},S,n,t,{views:y,timezone:A,onChange:O,view:j,onViewChange:E,focusedView:k,onFocusedViewChange:T,showViewSwitcher:M>1,timeViewsCount:M}))}}})({props:e,inputRef:s,additionalViewProps:l,autoFocusView:m,propsFromPickerValue:y.viewProps}),x=v({props:e,wrapperVariant:o,propsFromPickerValue:y.layoutProps,propsFromPickerViews:b.layoutProps});return{open:y.open,actions:y.actions,fieldProps:y.fieldProps,renderCurrentView:b.renderCurrentView,hasUIView:b.hasUIView,shouldRestoreFocus:b.shouldRestoreFocus,layoutProps:x.layoutProps}}},34667:(e,t,n)=>{"use strict";n.d(t,{Yg:()=>d,Nq:()=>h,u:()=>c,cB:()=>p,hc:()=>u});var r=n(51559),i=n(30538),o=n(38540);const a={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"open previous view",openNextView:"open next view",calendarViewSwitchingButtonAriaLabel:e=>"year"===e?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",clockLabelText:(e,t,n)=>`Select ${e}. ${null===t?"No time selected":`Selected time is ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:(e,t)=>null!==e&&t.isValid(e)?`Choose date, selected date is ${t.format(e,"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t)=>null!==e&&t.isValid(e)?`Choose time, selected time is ${t.format(e,"fullTime")}`:"Choose time",fieldClearLabel:"Clear value",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>"letter"===e.contentType?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>"letter"===e.contentType?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa"},s=a;l=a,(0,r.A)({},l);var l;const c=()=>{const e=i.useContext(o.F);if(null===e)throw new Error(["MUI: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join("\n"));if(null===e.utils)throw new Error(["MUI: Can not find the date and time pickers adapter from its localization context.","It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider."].join("\n"));const t=i.useMemo((()=>(0,r.A)({},s,e.localeText)),[e.localeText]);return i.useMemo((()=>(0,r.A)({},e,{localeText:t})),[e,t])},u=()=>c().utils,d=()=>c().defaultDates,h=()=>c().localeText,p=e=>{const t=u(),n=i.useRef();return void 0===n.current&&(n.current=t.dateWithTimezone(void 0,e)),n.current}},88899:(e,t,n)=>{"use strict";n.d(t,{$:()=>o});var r=n(30538),i=n(34667);function o(e,t,n,o){const{value:a,onError:s}=e,l=(0,i.u)(),c=r.useRef(o),u=t({adapter:l,value:a,props:e});return r.useEffect((()=>{s&&!n(u,c.current)&&s(u,a),c.current=u}),[n,s,c,u,a]),u}},16944:(e,t,n)=>{"use strict";n.d(t,{M:()=>s,Y:()=>l});var r=n(30538),i=n(18605),o=n(63095),a=n(34667);const s=({timezone:e,value:t,defaultValue:n,onChange:o,valueManager:s})=>{var l,c;const u=(0,a.hc)(),d=r.useRef(n),h=null!=(l=null!=t?t:d.current)?l:s.emptyValue,p=r.useMemo((()=>s.getTimezone(u,h)),[u,s,h]),f=(0,i.A)((e=>null==p?e:s.setTimezone(u,p,e))),g=null!=(c=null!=e?e:p)?c:"default";return{value:r.useMemo((()=>s.setTimezone(u,g,h)),[s,u,g,h]),handleValueChange:(0,i.A)(((e,...t)=>{const n=f(e);null==o||o(n,...t)})),timezone:g}},l=({name:e,timezone:t,value:n,defaultValue:r,onChange:a,valueManager:l})=>{const[c,u]=(0,o.A)({name:e,state:"value",controlled:n,default:null!=r?r:l.emptyValue}),d=(0,i.A)(((e,...t)=>{u(e),null==a||a(e,...t)}));return s({timezone:t,value:c,defaultValue:void 0,onChange:d,valueManager:l})}},56468:(e,t,n)=>{"use strict";n.d(t,{o:()=>a});var r=n(30538),i=n(18605),o=n(63095);function a({onChange:e,onViewChange:t,openTo:n,view:a,views:s,autoFocus:l,focusedView:c,onFocusedViewChange:u}){var d,h;const p=r.useRef(n),f=r.useRef(s),g=r.useRef(s.includes(n)?n:s[0]),[m,y]=(0,o.A)({name:"useViews",state:"view",controlled:a,default:g.current}),v=r.useRef(l?m:null),[b,x]=(0,o.A)({name:"useViews",state:"focusedView",controlled:c,default:v.current});r.useEffect((()=>{(p.current&&p.current!==n||f.current&&f.current.some((e=>!s.includes(e))))&&(y(s.includes(n)?n:s[0]),f.current=s,p.current=n)}),[n,y,m,s]);const w=s.indexOf(m),A=null!=(d=s[w-1])?d:null,S=null!=(h=s[w+1])?h:null,C=(0,i.A)(((e,t)=>{x(t?e:t=>e===t?null:t),null==u||u(e,t)})),E=(0,i.A)((e=>{C(e,!0),e!==m&&(y(e),t&&t(e))})),_=(0,i.A)((()=>{S&&E(S)})),k=(0,i.A)(((t,n,r)=>{const i="finish"===n,o=r?s.indexOf(r){"use strict";n.d(t,{IP:()=>s,Q6:()=>a,Wq:()=>f,YQ:()=>c,_S:()=>d,ak:()=>u,cH:()=>g,iH:()=>l,il:()=>o,jH:()=>i,sC:()=>p});var r=n(77928);const i=(e,t,n)=>{let r=t;return r=e.setHours(r,e.getHours(n)),r=e.setMinutes(r,e.getMinutes(n)),r=e.setSeconds(r,e.getSeconds(n)),r},o=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:o,isDateDisabled:a,utils:s,timezone:l})=>{const c=i(s,s.dateWithTimezone(void 0,l),e);n&&s.isBefore(o,c)&&(o=c),t&&s.isAfter(r,c)&&(r=c);let u=e,d=e;for(s.isBefore(e,o)&&(u=o,d=null),s.isAfter(e,r)&&(d&&(d=r),u=null);u||d;){if(u&&s.isAfter(u,r)&&(u=null),d&&s.isBefore(d,o)&&(d=null),u){if(!a(u))return u;u=s.addDays(u,1)}if(d){if(!a(d))return d;d=s.addDays(d,-1)}}return null},a=(e,t)=>null!=t&&e.isValid(t)?t:null,s=(e,t,n)=>null!=t&&e.isValid(t)?t:n,l=(e,t,n)=>!e.isValid(t)&&null!=t&&!e.isValid(n)&&null!=n||e.isEqual(t,n),c=(e,t)=>{const n=[e.startOfYear(t)];for(;n.length<12;){const t=n[n.length-1];n.push(e.addMonths(t,1))}return n},u=(e,t,n)=>"date"===n?e.startOfDay(e.dateWithTimezone(void 0,t)):e.dateWithTimezone(void 0,t),d=(e,t)=>{const n=e.setHours(e.date(),"am"===t?2:14);return e.format(n,"meridiem")},h=["year","month","day"],p=e=>h.includes(e),f=(e,{format:t,views:n},i)=>{if(null!=t)return t;const o=e.formats;return(0,r.f)(n,["year"])?o.year:(0,r.f)(n,["month"])?o.month:(0,r.f)(n,["day"])?o.dayOfMonth:(0,r.f)(n,["month","year"])?`${o.month} ${o.year}`:(0,r.f)(n,["day","month"])?`${o.month} ${o.dayOfMonth}`:i?/en/.test(e.getCurrentLocaleCode())?o.normalDateWithWeekday:o.normalDate:o.keyboardDate},g=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map((t=>e.addDays(n,t)))}},48361:(e,t,n)=>{"use strict";n.d(t,{D:()=>a});var r=n(51559),i=n(64066);const o=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","readOnly","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef"],a=(e,t)=>{const n=(0,r.A)({},e),a={},s=e=>{n.hasOwnProperty(e)&&(a[e]=n[e],delete n[e])};return o.forEach(s),"date"===t?i.eu.forEach(s):"time"===t?i.$5.forEach(s):"date-time"===t&&(i.eu.forEach(s),i.$5.forEach(s),i.QG.forEach(s)),{forwardedProps:n,internalProps:a}}},57696:(e,t,n)=>{"use strict";n.d(t,{$9:()=>l,kI:()=>a,yX:()=>o});var r=n(32357),i=n(84316);const o={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},a=e=>Math.max(...e.map((e=>{var t;return null!=(t=o[e.type])?t:1}))),s=(e,t,n)=>{if(t===o.year)return e.startOfYear(n);if(t===o.month)return e.startOfMonth(n);if(t===o.day)return e.startOfDay(n);let r=n;return t{var l;let c=a?a():s(t,n,(0,i.ak)(t,o));null!=e.minDate&&t.isAfterDay(e.minDate,c)&&(c=s(t,n,e.minDate)),null!=e.maxDate&&t.isBeforeDay(e.maxDate,c)&&(c=s(t,n,e.maxDate));const u=(0,r.iF)(null!=(l=e.disableIgnoringDatePartForTimeValidation)&&l,t);return null!=e.minTime&&u(e.minTime,c)&&(c=s(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:(0,i.jH)(t,c,e.minTime))),null!=e.maxTime&&u(c,e.maxTime)&&(c=s(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:(0,i.jH)(t,c,e.maxTime))),c}},84474:(e,t,n)=>{"use strict";n.d(t,{p:()=>i});var r=n(51559);const i=e=>{if(void 0!==e)return Object.keys(e).reduce(((t,n)=>(0,r.A)({},t,{[`${n.slice(0,1).toLowerCase()}${n.slice(1)}`]:e[n]})),{})}},32357:(e,t,n)=>{"use strict";n.d(t,{Sq:()=>a,b$:()=>h,fX:()=>s,gY:()=>l,hW:()=>o,iF:()=>d,tB:()=>c});var r=n(77928);const i=["hours","minutes","seconds"],o=e=>i.includes(e),a=e=>i.includes(e)||"meridiem"===e,s=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,l=(e,t,n)=>{if(n){if((e>=12?"pm":"am")!==t)return"am"===t?e-12:e+12}return e},c=(e,t,n,r)=>{const i=l(r.getHours(e),t,n);return r.setHours(e,i)},u=(e,t)=>3600*t.getHours(e)+60*t.getMinutes(e)+t.getSeconds(e),d=(e,t)=>(n,r)=>e?t.isAfter(n,r):u(n,t)>u(r,t),h=(e,{format:t,views:n,ampm:i})=>{if(null!=t)return t;const o=e.formats;return(0,r.f)(n,["hours"])?i?`${o.hours12h} ${o.meridiem}`:o.hours24h:(0,r.f)(n,["minutes"])?o.minutes:(0,r.f)(n,["seconds"])?o.seconds:(0,r.f)(n,["minutes","seconds"])?`${o.minutes}:${o.seconds}`:(0,r.f)(n,["hours","minutes","seconds"])?i?`${o.hours12h}:${o.minutes}:${o.seconds} ${o.meridiem}`:`${o.hours24h}:${o.minutes}:${o.seconds}`:i?`${o.hours12h}:${o.minutes} ${o.meridiem}`:`${o.hours24h}:${o.minutes}`}},40159:(e,t,n)=>{"use strict";function r(e,t){return Array.isArray(t)?t.every((t=>-1!==e.indexOf(t))):-1!==e.indexOf(t)}n.d(t,{Xk:()=>r,bq:()=>o,jX:()=>a,rQ:()=>i});const i=(e,t)=>n=>{"Enter"!==n.key&&" "!==n.key||(e(n),n.preventDefault(),n.stopPropagation()),t&&t(n)},o=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?o(t.shadowRoot):t:null},a="@media (pointer: fine)"},64066:(e,t,n)=>{"use strict";n.d(t,{$5:()=>i,QG:()=>o,eu:()=>r,zd:()=>s});const r=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],i=["disablePast","disableFuture","minTime","maxTime","shouldDisableClock","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],o=["minDateTime","maxDateTime"],a=[...r,...i,...o],s=e=>a.reduce(((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t)),{})},61228:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(84316);const i=({props:e,value:t,adapter:n})=>{if(null===t)return null;const{shouldDisableDate:i,shouldDisableMonth:o,shouldDisableYear:a,disablePast:s,disableFuture:l,timezone:c}=e,u=n.utils.dateWithTimezone(void 0,c),d=(0,r.IP)(n.utils,e.minDate,n.defaultDates.minDate),h=(0,r.IP)(n.utils,e.maxDate,n.defaultDates.maxDate);switch(!0){case!n.utils.isValid(t):return"invalidDate";case Boolean(i&&i(t)):return"shouldDisableDate";case Boolean(o&&o(t)):return"shouldDisableMonth";case Boolean(a&&a(t)):return"shouldDisableYear";case Boolean(l&&n.utils.isAfterDay(t,u)):return"disableFuture";case Boolean(s&&n.utils.isBeforeDay(t,u)):return"disablePast";case Boolean(d&&n.utils.isBeforeDay(t,d)):return"minDate";case Boolean(h&&n.utils.isAfterDay(t,h)):return"maxDate";default:return null}}},99559:(e,t,n)=>{"use strict";n.d(t,{W:()=>l,o:()=>c});var r=n(73342),i=n(84316),o=n(57696),a=n(36423);const s=["value","referenceDate"],l={emptyValue:null,getTodayValue:i.ak,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,i=(0,r.A)(e,s);return null!=t&&i.utils.isValid(t)?t:null!=n?n:(0,o.$9)(i)},cleanValue:i.Q6,areValuesEqual:i.iH,isSameError:(e,t)=>e===t,hasError:e=>null!=e,defaultErrorState:null,getTimezone:(e,t)=>null!=t&&e.isValid(t)?e.getTimezone(t):null,setTimezone:(e,t,n)=>null==n?null:e.setTimezone(n,t)},c={updateReferenceValue:(e,t,n)=>null!=t&&e.isValid(t)?t:n,getSectionsFromValue:(e,t,n,r,i)=>!e.isValid(t)&&!!n?n:(0,a.H6)(i(t),r),getValueStrFromSections:a.bl,getActiveDateManager:(e,t)=>({date:t.value,referenceDate:t.referenceValue,getSections:e=>e,getNewValuesFromNewActiveDate:n=>({value:n,referenceValue:null!=n&&e.isValid(n)?n:t.referenceValue})}),parseValueStr:(e,t,n)=>n(e.trim(),t)}},77928:(e,t,n)=>{"use strict";n.d(t,{R:()=>i,f:()=>r});const r=(e,t)=>e.length===t.length&&t.every((t=>e.includes(t))),i=({openTo:e,defaultOpenTo:t,views:n,defaultViews:r})=>{const i=null!=n?n:r;let o;if(null!=e)o=e;else if(i.includes(t))o=t;else{if(!(i.length>0))throw new Error("MUI: The `views` prop must contain at least one view");o=i[0]}return{views:i,openTo:o}}},54370:(e,t,n)=>{"use strict";n.d(t,{f:()=>r});const r=(e,t="warning")=>{let n=!1;const r=Array.isArray(e)?e.join("\n"):e;return()=>{n||(n=!0,"error"===t?console.error(r):console.warn(r))}}},59790:function(e,t,n){!function(e,t,n,r,i,o){"use strict";var a="comparison",s=["PropertyIsEqualTo","PropertyIsNotEqualTo","PropertyIsLessThan","PropertyIsLessThanOrEqualTo","PropertyIsGreaterThan","PropertyIsGreaterThanOrEqualTo"],l=s.concat(["PropertyIsLike","PropertyIsNull","PropertyIsBetween"]);function c(e,t){var n=e.getElementsByTagNameNS(e.namespaceURI,t).item(0);if(!n)return null;if(n.parentNode!==e)throw new Error("Expected direct descant");return n?n.textContent.trim():null}function u(e){return l.includes(e.localName)}function d(e){return["or","and"].includes(e.localName.toLowerCase())}function h(e){if(s.includes(e.localName))return p(e);if("PropertyIsBetween"===e.localName)return m(e);if("PropertyIsNull"===e.localName)return g(e);if("PropertyIsLike"===e.localName)return f(e);throw new Error("Unknown comparison element "+e.localName)}function p(e){var t=c(e,"PropertyName"),n=c(e,"Literal");return{type:a,operator:e.localName.toLowerCase(),propertyname:t,literal:n,matchcase:"false"!==e.getAttribute("matchCase")}}function f(e){var t=c(e,"PropertyName"),n=c(e,"Literal");return{type:a,operator:e.localName.toLowerCase(),propertyname:t,literal:n,wildcard:e.getAttribute("wildCard"),singlechar:e.getAttribute("singleChar"),escapechar:e.getAttribute("escapeChar"),matchcase:"false"!==e.getAttribute("matchCase")}}function g(e){var t=c(e,"PropertyName");return{type:a,operator:e.localName.toLowerCase(),propertyname:t}}function m(e){var t=c(e,"PropertyName"),n=c(e,"LowerBoundary"),r=c(e,"UpperBoundary");return{type:a,operator:e.localName.toLowerCase(),lowerboundary:n,upperboundary:r,propertyname:t,matchcase:"false"!==e.getAttribute("matchCase")}}function y(e){for(var t=[],n=e.firstElementChild;n;n=n.nextElementSibling)u(n)&&t.push(h(n));return{type:e.localName.toLowerCase(),predicates:t}}function v(e){var t=null,n=e.firstElementChild;return n&&u(n)&&(t=h(n)),n&&d(n)&&(t=y(n)),{type:e.localName.toLowerCase(),predicate:t}}function b(e){for(var t={},n=e.firstElementChild;n;n=n.nextElementSibling)u(n)&&(t=h(n)),d(n)&&(t=y(n)),"not"===n.localName.toLowerCase()&&(t=v(n)),"featureid"===n.localName.toLowerCase()&&(t.type="featureid",t.fids=t.fids||[],t.fids.push(n.getAttribute("fid")));return t}var x=new Set(["strokeWidth","strokeOpacity","strokeDashoffset","fillOpacity","fontSize"]);function w(e,t,n){var r=n.toLowerCase();t[r]=t[r]||[];var i={};L(e,i),t[r].push(i)}function A(e,t,n){var r=n.toLowerCase();t[r]={},L(e,t[r])}function S(e,t,n,r){void 0===r&&(r=!1);var i=n.toLowerCase();t[i]=r?e.textContent.trim():e.textContent}function C(e,t,n){var r=n.toLowerCase(),i=parseFloat(e.textContent.trim());t[r]=i}function E(e,t){if(!Array.isArray(e))return e;var n=e.map((function(e){return"literal"===e.type?e.value:e})).filter((function(e){return""!==e}));return n.every((function(e){return"object"!=typeof e||null===e}))?n.join(""):1===n.length?n[0]:{type:"expression",typeHint:t,children:n}}function _(e,t,n,r){void 0===r&&(r={});for(var i={skipEmptyNodes:!0,forceLowerCase:!0,typeHint:"string"},o=Object.assign({},i,r),a=[],s=0;s0}function B(e,t){if(j(t))return!1;var n=e.lowerboundary;if(j(n))return!1;var r=e.upperboundary;return!j(r)&&N(n,t)<=0&&N(r,t)>=0}function $(e,t){return!j(t)&&!j(e.literal)&&(e.matchcase?t==e.literal:0===N(e.literal,t,!1))}function G(e,t){return!j(t)&&!$(e,t)}function U(e,t){var n=e.literal;if(j(t))return!1;var r=e.wildcard,i=e.singlechar,o=e.escapechar,a=e.matchcase,s=n.replace(new RegExp("["+r+"]","g"),".*");return s=s.replace(new RegExp("["+i+"]","g"),"."),"\\"!==o&&(s=s.replace(new RegExp("["+o+"]","g"),"\\")),s="^"+s+"$",(!1===a?new RegExp(s,"i"):new RegExp(s)).test(t)}function W(e,t,n){var r=n(t,e.propertyname);switch(e.operator){case"propertyislessthan":return z(e,r);case"propertyisequalto":return $(e,r);case"propertyislessthanorequalto":return $(e,r)||z(e,r);case"propertyisnotequalto":return G(e,r);case"propertyisgreaterthan":return V(e,r);case"propertyisgreaterthanorequalto":return $(e,r)||V(e,r);case"propertyisbetween":return B(e,r);case"propertyisnull":return j(r);case"propertyislike":return U(e,r);default:throw new Error("Unkown comparison operator "+e.operator)}}function q(e,t){for(var n=0;ne.minscaledenominator:void 0!==e.maxscaledenominator?t/28e-5e.minscaledenominator}function Z(e){return e.layers.map((function(e){return e.name}))}function J(e,t){return t?e.layers.find((function(e){return e.name===t})):e.layers[0]}function Q(e){return e.styles.map((function(e){return e.name}))}function ee(e,t){if(t)return e.styles.find((function(e){return e.name===t}));var n=e.styles.find((function(e){return e.default}));return n||e.styles[0]}function te(e,t,n,r){void 0===r&&(r={});for(var i=[],o=0,a=0;a-1&&(e.stroke.graphicstroke.__invalidated=!0))}}function Ce(e,t){if(e)if(Array.isArray(e))for(var n=0;n=2&&0!==a[0]&&(o=a[1]/a[0]+1)}return o*t}function Ve(e){return e.stroke.graphicstroke.initialgap||0}function Be(e,n,r,i,o){void 0===o&&(o=0);var a,s=n/2,l=Math.PI*o/180;switch(i&&i.getColor()&&(a=i.getColor()),e){case"circle":return new t.Circle({fill:i,radius:s,stroke:r});case"triangle":return new t.RegularShape({fill:i,points:3,radius:s,stroke:r,rotation:l});case"star":return new t.RegularShape({fill:i,points:5,radius1:s,radius2:s/2.5,stroke:r,rotation:l});case"cross":return new t.RegularShape({fill:i,points:4,radius1:s,radius2:0,stroke:r||new t.Stroke({color:a,width:s/2}),rotation:l});case"hexagon":return new t.RegularShape({fill:i,points:6,radius:s,stroke:r||new t.Stroke({color:a,width:s/2}),rotation:l});case"octagon":return new t.RegularShape({angle:Math.PI/8,fill:i,points:8,radius:s/Math.cos(Math.PI/8),stroke:r||new t.Stroke({color:a,width:s/2}),rotation:l});case"cross2":case"x":return new t.RegularShape({angle:Math.PI/4,fill:i,points:4,radius1:Math.sqrt(2)*s,radius2:0,stroke:r||new t.Stroke({color:a,width:s/2}),rotation:l});case"diamond":return new t.RegularShape({fill:i,points:4,radius1:s,stroke:r,rotation:l});case"horline":return new t.RegularShape({fill:i,points:2,radius:s,angle:Math.PI/2,stroke:r,rotation:l});case"line":return new t.RegularShape({fill:i,points:2,radius:s,angle:0,stroke:r,rotation:l});case"backslash":return new t.RegularShape({fill:i,points:2,radius:s*Math.sqrt(2),angle:-Math.PI/4,stroke:r,rotation:l});case"slash":return new t.RegularShape({fill:i,points:2,radius:s*Math.sqrt(2),angle:Math.PI/4,stroke:r,rotation:l});default:return new t.RegularShape({angle:Math.PI/4,fill:i,points:4,radius1:s*Math.sqrt(2),stroke:r,rotation:l})}}function $e(e){switch((e||{}).type){case"expression":case"propertyname":case"function":return!0;default:return!1}}function Ge(e,t,n,r){void 0===r&&(r=null);var i=null,o=typeof e;if("string"===o||"number"===o||"undefined"===o||null===e)i=e;else if("literal"===e.type)i=e.value;else if("propertyname"===e.type)i=t?n(t,e.value):r;else if("expression"===e.type)if(1===e.children.length)i=Ge(e.children[0],t,n,r);else{for(var a=[],s=0;s1&&(o.stroke.styling.strokeWidth=t*a)}return n}function Et(e){var i=e.fill.graphicfill,a=i.graphic,s=a.mark,l=(s||{}).wellknownname;if(l&&0===l.indexOf("brush://")){var c="#000000";return s.fill&&s.fill.styling&&s.fill.styling.fill&&(c=s.fill.styling.fill),wt(l,c)}var u=Number(a.size)||le,d=u*o.DEVICE_PIXEL_RATIO,h=null,p=2;try{var f=document.createElement("canvas");f.width=d*p,f.height=d*p;var g=f.getContext("2d"),m=Qe(Ct(i,p)),y=n.toContext(g,{size:[u*p,u*p]});g.imageSmoothingEnabled=!1,y.setStyle(m);var v=p*(u/2),b=p*(u/2);y.drawGeometry(new r.Point([v,b])),l&&l.indexOf("slash")>-1&&(y.drawGeometry(new r.Point([v-p*u,b])),y.drawGeometry(new r.Point([v+p*u,b])),y.drawGeometry(new r.Point([v,b-p*u])),y.drawGeometry(new r.Point([v,b+p*u])));var x=document.createElement("canvas");x.width=d,x.height=d;var w=x.getContext("2d");w.drawImage(f,0,0,d*p,d*p,0,0,d,d);var A=w.createPattern(x,"repeat");h=new t.Fill({color:A})}catch(e){h=new t.Fill({color:"#000000"})}return h}function _t(e){var i=e.fill&&e.fill.graphicfill&&e.fill.graphicfill.graphic&&e.fill.graphicfill.graphic.externalgraphic&&e.fill.graphicfill.graphic.externalgraphic.onlineresource,o=e.fill&&e.fill.graphicfill&&e.fill.graphicfill.graphic&&e.fill.graphicfill.graphic.mark,a=null;if(a=i?St(e):o?Et(e):We(e.fill),e.stroke&&e.stroke.graphicstroke){var s=st(e);return new t.Style({renderer:function(e,t){if(a){var i=t.feature,o=t.context,l=n.toContext(o);l.setFillStrokeStyle(a,void 0);var c=i.getGeometry().getType();"Polygon"===c?l.drawPolygon(new r.Polygon(e)):"MultiPolygon"===c&&l.drawMultiPolygon(new r.MultiPolygon(e))}s(e,t)}})}var l=Ue(e.stroke);return new t.Style({fill:a,stroke:l})}var kt=Fe(_t);function Tt(e,t,n){var r=kt(e);return qe(r,e,t,n),He(r,e,t,n),r}function Ot(e){if(!e||!e.label)return Pe;var n=Ge(e.label,null,null,""),r=e.font&&e.font.styling||{},i=Ge(r.fontFamily,null,null,"sans-serif"),o=Ge(r.fontSize,null,null,10),a=Ge(r.fontStyle,null,null,"")+" "+Ge(r.fontWeight,null,null,"")+" "+o+"px "+i,s=e&&e.labelplacement&&e.labelplacement.pointplacement?e.labelplacement.pointplacement:{},l=Ge(s.rotation,null,null,0),c=s&&s.displacement?s.displacement:{},u=Ge(c.displacementx,null,null,0),d=Ge(c.displacementy,null,null,0),h=s&&s.anchorpoint||{},p="center",f=Ge(h.anchorpointx,null,null,NaN);f<.25?p="left":f>.75&&(p="right");var g="middle",m=Ge(h.anchorpointy,null,null,NaN);m<.25?g="bottom":m>.75&&(g="top");var y=e.fill?e.fill.styling:{},v=Ge(y.fill,null,null,"#000000"),b=Ge(y.fillOpacity,null,null,1),x={text:n,font:a,offsetX:u,offsetY:d,rotation:Math.PI*l/180,textAlign:p,textBaseline:g,fill:new t.Fill({color:Ne(v,b)})};if(e.halo){var w=e.halo&&e.halo.fill?e.halo.fill.styling:{},A=Ge(w.fill,null,null,"#FFFFFF"),S=Ge(w.fillOpacity,null,null,1),C=Ge(e.halo.radius,null,null,1);x.stroke=new t.Stroke({color:Ne(A,S),width:2*(2===C||4===C?C-1e-5:C)})}return new t.Style({text:new t.Text(x)})}var Pt=Fe(Ot);function It(e,t,n){var r=Pt(e),i=r.getText();if(!i)return r;var o=e.label,a=e.labelplacement;if($e(o)){var s=Ge(o,t,n,"");i.setText(s.toString())}if(a){var l=a.pointplacement&&a.pointplacement.rotation||0;if($e(l)){var c=Ge(l,t,n,0);i.setRotation(Math.PI*c/180)}}var u=t.getGeometry?t.getGeometry():t.geometry,d=u.getType?u.getType():u.type,h=e&&e.labelplacement&&e.labelplacement.lineplacement?e.labelplacement.lineplacement:null,p="point"!==d&&h?"line":"point";if(i.setPlacement(p),Ye(r,e,t,n),e.font&&e.font.styling){var f=e.font.styling||{};if($e(f.fontFamily)||$e(f.fontStyle)||$e(f.fontWeight)||$e(f.fontSize)){var g=Ge(f.fontFamily,t,n,"sans-serif"),m=Ge(f.fontStyle,t,n,"")+" "+Ge(f.fontWeight,t,n,"")+" "+Ge(f.fontSize,t,n,10)+"px "+g;i.setFont(m)}}return r}function Mt(e){var t=rt(e,e.getLength()/2)[1];return[t[0],t[1]]}function Lt(e,t){if("function"!=typeof t.getGeometry)return null;var n=t.getGeometry();if(!n)return null;var i=null,o=n.getType();if("LineString"===o)(i=Qe(e,t)).setGeometry(new r.Point(Mt(n)));else if("MultiLineString"===o){var a=n.getLineStrings().map(Mt);(i=Qe(e,t)).setGeometry(new r.MultiPoint(a))}return i}function Rt(e){var t=e.getInteriorPoint().getCoordinates();return[t[0],t[1]]}function jt(e,t){if("function"!=typeof t.getGeometry)return null;var n=t.getGeometry();if(!n)return null;var i=null,o=n.getType();if("Polygon"===o)(i=Qe(e,t)).setGeometry(new r.Point(Rt(n)));else if("MultiPolygon"===o){var a=n.getPolygons().map(Rt);(i=Qe(e,t)).setGeometry(new r.MultiPoint(a))}return i}var Ft=[Ie];function Dt(e,t,n,r,i){(t||[]).forEach((function(t){var o=r(t,n,i);o&&e.push(o)}))}function Nt(e,t,n,r){void 0===r&&(r={});var i=e.polygonSymbolizers,o=e.lineSymbolizers,a=e.pointSymbolizers,s=e.textSymbolizers,l={strictGeometryMatch:!1,useFallbackStyles:!0},c=Object.assign({},l,r),u=t.getGeometry?t.getGeometry():t.geometry,d=[];switch(u.getType?u.getType():u.type){case"Point":case"MultiPoint":Dt(d,a,t,Qe,n),Dt(d,s,t,It,n);break;case"LineString":case"MultiLineString":Dt(d,o,t,dt,n),c.strictGeometryMatch||Dt(d,a,t,Lt,n),Dt(d,s,t,It,n);break;case"Polygon":case"MultiPolygon":Dt(d,i,t,Tt,n),c.strictGeometryMatch||Dt(d,o,t,dt,n),Dt(d,a,t,jt,n),Dt(d,s,t,It,n);break;default:c.useFallbackStyles&&(d=Ft)}return d.forEach((function(e,t){return e.setZIndex(t)})),d}function zt(e){return e.getId()}function Vt(e,t){return e.get(t)}function Bt(e,t){void 0===t&&(t={});var n=t.imageLoadedCallback||function(){},r={};return function(i,o){var a="function"==typeof t.convertResolution?t.convertResolution(o):o,s="function"==typeof t.getProperty?t.getProperty:Vt,l=te(e,i,a,{getProperty:s,getFeatureId:zt});return Te(l,e,n,r),Nt(ie(l),i,s)}}function $t(e,t){return Nt(ie([e]),{geometry:{type:t}},(function(){return null}),{strictGeometryMatch:!0,useFallbackStyles:!1}).filter((function(e){return null!==e}))}e.OlStyler=Nt,e.Reader=R,e.categorizeSymbolizers=ie,e.createOlStyle=$t,e.createOlStyleFunction=Bt,e.getByPath=re,e.getLayer=J,e.getLayerNames=Z,e.getRuleSymbolizers=ne,e.getRules=te,e.getStyle=ee,e.getStyleNames=Q}(t,n(6473),n(11574),n(78278),n(41218),n(27144))},58839:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv=void 0;const r=n(86557),i=n(82797),o=n(83246),a=n(10962),s=["/properties"],l="http://json-schema.org/draft-07/schema";class c extends r.default{_addVocabularies(){super._addVocabularies(),i.default.forEach((e=>this.addVocabulary(e))),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const e=this.opts.$data?this.$dataMetaSchema(a,s):a;this.addMetaSchema(e,l,!1),this.refs["http://json-schema.org/schema"]=l}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(l)?l:void 0)}}t.Ajv=c,e.exports=t=c,e.exports.Ajv=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var u=n(13809);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var d=n(28468);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return d._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return d.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return d.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return d.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return d.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return d.CodeGen}});var h=n(22917);Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return h.default}});var p=n(21698);Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return p.default}})},61823:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.regexpCode=t.getEsmExportName=t.getProperty=t.safeStringify=t.stringify=t.strConcat=t.addCodeArg=t.str=t._=t.nil=t._Code=t.Name=t.IDENTIFIER=t._CodeOrName=void 0;class n{}t._CodeOrName=n,t.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends n{constructor(e){if(super(),!t.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}t.Name=r;class i extends n{constructor(e){super(),this._items="string"==typeof e?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const e=this._items[0];return""===e||'""'===e}get str(){var e;return null!==(e=this._str)&&void 0!==e?e:this._str=this._items.reduce(((e,t)=>`${e}${t}`),"")}get names(){var e;return null!==(e=this._names)&&void 0!==e?e:this._names=this._items.reduce(((e,t)=>(t instanceof r&&(e[t.str]=(e[t.str]||0)+1),e)),{})}}function o(e,...t){const n=[e[0]];let r=0;for(;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.or=t.and=t.not=t.CodeGen=t.operators=t.varKinds=t.ValueScopeName=t.ValueScope=t.Scope=t.Name=t.regexpCode=t.stringify=t.getProperty=t.nil=t.strConcat=t.str=t._=void 0;const r=n(61823),i=n(95284);var o=n(61823);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return o._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return o.str}}),Object.defineProperty(t,"strConcat",{enumerable:!0,get:function(){return o.strConcat}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return o.nil}}),Object.defineProperty(t,"getProperty",{enumerable:!0,get:function(){return o.getProperty}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return o.stringify}}),Object.defineProperty(t,"regexpCode",{enumerable:!0,get:function(){return o.regexpCode}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return o.Name}});var a=n(95284);Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return a.Scope}}),Object.defineProperty(t,"ValueScope",{enumerable:!0,get:function(){return a.ValueScope}}),Object.defineProperty(t,"ValueScopeName",{enumerable:!0,get:function(){return a.ValueScopeName}}),Object.defineProperty(t,"varKinds",{enumerable:!0,get:function(){return a.varKinds}}),t.operators={GT:new r._Code(">"),GTE:new r._Code(">="),LT:new r._Code("<"),LTE:new r._Code("<="),EQ:new r._Code("==="),NEQ:new r._Code("!=="),NOT:new r._Code("!"),OR:new r._Code("||"),AND:new r._Code("&&"),ADD:new r._Code("+")};class s{optimizeNodes(){return this}optimizeNames(e,t){return this}}class l extends s{constructor(e,t,n){super(),this.varKind=e,this.name=t,this.rhs=n}render({es5:e,_n:t}){const n=e?i.varKinds.var:this.varKind,r=void 0===this.rhs?"":` = ${this.rhs}`;return`${n} ${this.name}${r};`+t}optimizeNames(e,t){if(e[this.name.str])return this.rhs&&(this.rhs=I(this.rhs,e,t)),this}get names(){return this.rhs instanceof r._CodeOrName?this.rhs.names:{}}}class c extends s{constructor(e,t,n){super(),this.lhs=e,this.rhs=t,this.sideEffects=n}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,t){if(!(this.lhs instanceof r.Name)||e[this.lhs.str]||this.sideEffects)return this.rhs=I(this.rhs,e,t),this}get names(){return P(this.lhs instanceof r.Name?{}:{...this.lhs.names},this.rhs)}}class u extends c{constructor(e,t,n,r){super(e,n,r),this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}}class d extends s{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}}class h extends s{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}}class p extends s{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}}class f extends s{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,t){return this.code=I(this.code,e,t),this}get names(){return this.code instanceof r._CodeOrName?this.code.names:{}}}class g extends s{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce(((t,n)=>t+n.render(e)),"")}optimizeNodes(){const{nodes:e}=this;let t=e.length;for(;t--;){const n=e[t].optimizeNodes();Array.isArray(n)?e.splice(t,1,...n):n?e[t]=n:e.splice(t,1)}return e.length>0?this:void 0}optimizeNames(e,t){const{nodes:n}=this;let r=n.length;for(;r--;){const i=n[r];i.optimizeNames(e,t)||(M(e,i.names),n.splice(r,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce(((e,t)=>O(e,t.names)),{})}}class m extends g{render(e){return"{"+e._n+super.render(e)+"}"+e._n}}class y extends g{}class v extends m{}v.kind="else";class b extends m{constructor(e,t){super(t),this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);return this.else&&(t+="else "+this.else.render(e)),t}optimizeNodes(){super.optimizeNodes();const e=this.condition;if(!0===e)return this.nodes;let t=this.else;if(t){const e=t.optimizeNodes();t=this.else=Array.isArray(e)?new v(e):e}return t?!1===e?t instanceof b?t:t.nodes:this.nodes.length?this:new b(L(e),t instanceof b?[t]:t.nodes):!1!==e&&this.nodes.length?this:void 0}optimizeNames(e,t){var n;if(this.else=null===(n=this.else)||void 0===n?void 0:n.optimizeNames(e,t),super.optimizeNames(e,t)||this.else)return this.condition=I(this.condition,e,t),this}get names(){const e=super.names;return P(e,this.condition),this.else&&O(e,this.else.names),e}}b.kind="if";class x extends m{}x.kind="for";class w extends x{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iteration=I(this.iteration,e,t),this}get names(){return O(super.names,this.iteration.names)}}class A extends x{constructor(e,t,n,r){super(),this.varKind=e,this.name=t,this.from=n,this.to=r}render(e){const t=e.es5?i.varKinds.var:this.varKind,{name:n,from:r,to:o}=this;return`for(${t} ${n}=${r}; ${n}<${o}; ${n}++)`+super.render(e)}get names(){const e=P(super.names,this.from);return P(e,this.to)}}class S extends x{constructor(e,t,n,r){super(),this.loop=e,this.varKind=t,this.name=n,this.iterable=r}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iterable=I(this.iterable,e,t),this}get names(){return O(super.names,this.iterable.names)}}class C extends m{constructor(e,t,n){super(),this.name=e,this.args=t,this.async=n}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}}C.kind="func";class E extends g{render(e){return"return "+super.render(e)}}E.kind="return";class _ extends m{render(e){let t="try"+super.render(e);return this.catch&&(t+=this.catch.render(e)),this.finally&&(t+=this.finally.render(e)),t}optimizeNodes(){var e,t;return super.optimizeNodes(),null===(e=this.catch)||void 0===e||e.optimizeNodes(),null===(t=this.finally)||void 0===t||t.optimizeNodes(),this}optimizeNames(e,t){var n,r;return super.optimizeNames(e,t),null===(n=this.catch)||void 0===n||n.optimizeNames(e,t),null===(r=this.finally)||void 0===r||r.optimizeNames(e,t),this}get names(){const e=super.names;return this.catch&&O(e,this.catch.names),this.finally&&O(e,this.finally.names),e}}class k extends m{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}k.kind="catch";class T extends m{render(e){return"finally"+super.render(e)}}T.kind="finally";function O(e,t){for(const n in t)e[n]=(e[n]||0)+(t[n]||0);return e}function P(e,t){return t instanceof r._CodeOrName?O(e,t.names):e}function I(e,t,n){return e instanceof r.Name?o(e):(i=e)instanceof r._Code&&i._items.some((e=>e instanceof r.Name&&1===t[e.str]&&void 0!==n[e.str]))?new r._Code(e._items.reduce(((e,t)=>(t instanceof r.Name&&(t=o(t)),t instanceof r._Code?e.push(...t._items):e.push(t),e)),[])):e;var i;function o(e){const r=n[e.str];return void 0===r||1!==t[e.str]?e:(delete t[e.str],r)}}function M(e,t){for(const n in t)e[n]=(e[n]||0)-(t[n]||0)}function L(e){return"boolean"==typeof e||"number"==typeof e||null===e?!e:r._`!${D(e)}`}t.CodeGen=class{constructor(e,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...t,_n:t.lines?"\n":""},this._extScope=e,this._scope=new i.Scope({parent:e}),this._nodes=[new y]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){const n=this._extScope.value(e,t);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,n,r){const i=this._scope.toName(t);return void 0!==n&&r&&(this._constants[i.str]=n),this._leafNode(new l(e,i,n)),i}const(e,t,n){return this._def(i.varKinds.const,e,t,n)}let(e,t,n){return this._def(i.varKinds.let,e,t,n)}var(e,t,n){return this._def(i.varKinds.var,e,t,n)}assign(e,t,n){return this._leafNode(new c(e,t,n))}add(e,n){return this._leafNode(new u(e,t.operators.ADD,n))}code(e){return"function"==typeof e?e():e!==r.nil&&this._leafNode(new f(e)),this}object(...e){const t=["{"];for(const[n,i]of e)t.length>1&&t.push(","),t.push(n),(n!==i||this.opts.es5)&&(t.push(":"),(0,r.addCodeArg)(t,i));return t.push("}"),new r._Code(t)}if(e,t,n){if(this._blockNode(new b(e)),t&&n)this.code(t).else().code(n).endIf();else if(t)this.code(t).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new b(e))}else(){return this._elseNode(new v)}endIf(){return this._endBlockNode(b,v)}_for(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}for(e,t){return this._for(new w(e),t)}forRange(e,t,n,r,o=(this.opts.es5?i.varKinds.var:i.varKinds.let)){const a=this._scope.toName(e);return this._for(new A(o,a,t,n),(()=>r(a)))}forOf(e,t,n,o=i.varKinds.const){const a=this._scope.toName(e);if(this.opts.es5){const e=t instanceof r.Name?t:this.var("_arr",t);return this.forRange("_i",0,r._`${e}.length`,(t=>{this.var(a,r._`${e}[${t}]`),n(a)}))}return this._for(new S("of",o,a,t),(()=>n(a)))}forIn(e,t,n,o=(this.opts.es5?i.varKinds.var:i.varKinds.const)){if(this.opts.ownProperties)return this.forOf(e,r._`Object.keys(${t})`,n);const a=this._scope.toName(e);return this._for(new S("in",o,a,t),(()=>n(a)))}endFor(){return this._endBlockNode(x)}label(e){return this._leafNode(new d(e))}break(e){return this._leafNode(new h(e))}return(e){const t=new E;if(this._blockNode(t),this.code(e),1!==t.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(E)}try(e,t,n){if(!t&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');const r=new _;if(this._blockNode(r),this.code(e),t){const e=this.name("e");this._currNode=r.catch=new k(e),t(e)}return n&&(this._currNode=r.finally=new T,this.code(n)),this._endBlockNode(k,T)}throw(e){return this._leafNode(new p(e))}block(e,t){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(t),this}endBlock(e){const t=this._blockStarts.pop();if(void 0===t)throw new Error("CodeGen: not in self-balancing block");const n=this._nodes.length-t;if(n<0||void 0!==e&&n!==e)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${e} expected`);return this._nodes.length=t,this}func(e,t=r.nil,n,i){return this._blockNode(new C(e,t,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(C)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,t){const n=this._currNode;if(n instanceof e||t&&n instanceof t)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${t?`${e.kind}/${t.kind}`:e.kind}"`)}_elseNode(e){const t=this._currNode;if(!(t instanceof b))throw new Error('CodeGen: "else" without "if"');return this._currNode=t.else=e,this}get _root(){return this._nodes[0]}get _currNode(){const e=this._nodes;return e[e.length-1]}set _currNode(e){const t=this._nodes;t[t.length-1]=e}},t.not=L;const R=F(t.operators.AND);t.and=function(...e){return e.reduce(R)};const j=F(t.operators.OR);function F(e){return(t,n)=>t===r.nil?n:n===r.nil?t:r._`${D(t)} ${e} ${D(n)}`}function D(e){return e instanceof r.Name?e:r._`(${e})`}t.or=function(...e){return e.reduce(j)}},95284:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ValueScope=t.ValueScopeName=t.Scope=t.varKinds=t.UsedValueState=void 0;const r=n(61823);class i extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}}var o;!function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"}(o||(t.UsedValueState=o={})),t.varKinds={const:new r.Name("const"),let:new r.Name("let"),var:new r.Name("var")};class a{constructor({prefixes:e,parent:t}={}){this._names={},this._prefixes=e,this._parent=t}toName(e){return e instanceof r.Name?e:this.name(e)}name(e){return new r.Name(this._newName(e))}_newName(e){return`${e}${(this._names[e]||this._nameGroup(e)).index++}`}_nameGroup(e){var t,n;if((null===(n=null===(t=this._parent)||void 0===t?void 0:t._prefixes)||void 0===n?void 0:n.has(e))||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}}t.Scope=a;class s extends r.Name{constructor(e,t){super(t),this.prefix=e}setValue(e,{property:t,itemIndex:n}){this.value=e,this.scopePath=r._`.${new r.Name(t)}[${n}]`}}t.ValueScopeName=s;const l=r._`\n`;t.ValueScope=class extends a{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?l:r.nil}}get(){return this._scope}name(e){return new s(e,this._newName(e))}value(e,t){var n;if(void 0===t.ref)throw new Error("CodeGen: ref must be passed in value");const r=this.toName(e),{prefix:i}=r,o=null!==(n=t.key)&&void 0!==n?n:t.ref;let a=this._values[i];if(a){const e=a.get(o);if(e)return e}else a=this._values[i]=new Map;a.set(o,r);const s=this._scope[i]||(this._scope[i]=[]),l=s.length;return s[l]=t.ref,r.setValue(t,{property:i,itemIndex:l}),r}getValue(e,t){const n=this._values[e];if(n)return n.get(t)}scopeRefs(e,t=this._values){return this._reduceValues(t,(t=>{if(void 0===t.scopePath)throw new Error(`CodeGen: name "${t}" has no value`);return r._`${e}${t.scopePath}`}))}scopeCode(e=this._values,t,n){return this._reduceValues(e,(e=>{if(void 0===e.value)throw new Error(`CodeGen: name "${e}" has no value`);return e.value.code}),t,n)}_reduceValues(e,n,a={},s){let l=r.nil;for(const c in e){const u=e[c];if(!u)continue;const d=a[c]=a[c]||new Map;u.forEach((e=>{if(d.has(e))return;d.set(e,o.Started);let a=n(e);if(a){const n=this.opts.es5?t.varKinds.var:t.varKinds.const;l=r._`${l}${n} ${e} = ${a};${this.opts._n}`}else{if(!(a=null==s?void 0:s(e)))throw new i(e);l=r._`${l}${a}${this.opts._n}`}d.set(e,o.Completed)}))}return l}}},32507:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendErrors=t.resetErrorsCount=t.reportExtraError=t.reportError=t.keyword$DataError=t.keywordError=void 0;const r=n(28468),i=n(93880),o=n(42302);function a(e,t){const n=e.const("err",t);e.if(r._`${o.default.vErrors} === null`,(()=>e.assign(o.default.vErrors,r._`[${n}]`)),r._`${o.default.vErrors}.push(${n})`),e.code(r._`${o.default.errors}++`)}function s(e,t){const{gen:n,validateName:i,schemaEnv:o}=e;o.$async?n.throw(r._`new ${e.ValidationError}(${t})`):(n.assign(r._`${i}.errors`,t),n.return(!1))}t.keywordError={message:({keyword:e})=>r.str`must pass "${e}" keyword validation`},t.keyword$DataError={message:({keyword:e,schemaType:t})=>t?r.str`"${e}" keyword must be ${t} ($data)`:r.str`"${e}" keyword is invalid ($data)`},t.reportError=function(e,n=t.keywordError,i,o){const{it:l}=e,{gen:u,compositeRule:d,allErrors:h}=l,p=c(e,n,i);(null!=o?o:d||h)?a(u,p):s(l,r._`[${p}]`)},t.reportExtraError=function(e,n=t.keywordError,r){const{it:i}=e,{gen:l,compositeRule:u,allErrors:d}=i;a(l,c(e,n,r)),u||d||s(i,o.default.vErrors)},t.resetErrorsCount=function(e,t){e.assign(o.default.errors,t),e.if(r._`${o.default.vErrors} !== null`,(()=>e.if(t,(()=>e.assign(r._`${o.default.vErrors}.length`,t)),(()=>e.assign(o.default.vErrors,null)))))},t.extendErrors=function({gen:e,keyword:t,schemaValue:n,data:i,errsCount:a,it:s}){if(void 0===a)throw new Error("ajv implementation error");const l=e.name("err");e.forRange("i",a,o.default.errors,(a=>{e.const(l,r._`${o.default.vErrors}[${a}]`),e.if(r._`${l}.instancePath === undefined`,(()=>e.assign(r._`${l}.instancePath`,(0,r.strConcat)(o.default.instancePath,s.errorPath)))),e.assign(r._`${l}.schemaPath`,r.str`${s.errSchemaPath}/${t}`),s.opts.verbose&&(e.assign(r._`${l}.schema`,n),e.assign(r._`${l}.data`,i))}))};const l={keyword:new r.Name("keyword"),schemaPath:new r.Name("schemaPath"),params:new r.Name("params"),propertyName:new r.Name("propertyName"),message:new r.Name("message"),schema:new r.Name("schema"),parentSchema:new r.Name("parentSchema")};function c(e,t,n){const{createErrors:i}=e.it;return!1===i?r._`{}`:function(e,t,n={}){const{gen:i,it:a}=e,s=[u(a,n),d(e,n)];return function(e,{params:t,message:n},i){const{keyword:a,data:s,schemaValue:c,it:u}=e,{opts:d,propertyName:h,topSchemaRef:p,schemaPath:f}=u;i.push([l.keyword,a],[l.params,"function"==typeof t?t(e):t||r._`{}`]),d.messages&&i.push([l.message,"function"==typeof n?n(e):n]);d.verbose&&i.push([l.schema,c],[l.parentSchema,r._`${p}${f}`],[o.default.data,s]);h&&i.push([l.propertyName,h])}(e,t,s),i.object(...s)}(e,t,n)}function u({errorPath:e},{instancePath:t}){const n=t?r.str`${e}${(0,i.getErrorPath)(t,i.Type.Str)}`:e;return[o.default.instancePath,(0,r.strConcat)(o.default.instancePath,n)]}function d({keyword:e,it:{errSchemaPath:t}},{schemaPath:n,parentSchema:o}){let a=o?t:r.str`${t}/${e}`;return n&&(a=r.str`${a}${(0,i.getErrorPath)(n,i.Type.Str)}`),[l.schemaPath,a]}},93638:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveSchema=t.getCompilingSchema=t.resolveRef=t.compileSchema=t.SchemaEnv=void 0;const r=n(28468),i=n(22917),o=n(42302),a=n(6450),s=n(93880),l=n(13809);class c{constructor(e){var t;let n;this.refs={},this.dynamicAnchors={},"object"==typeof e.schema&&(n=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=null!==(t=e.baseId)&&void 0!==t?t:(0,a.normalizeId)(null==n?void 0:n[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=null==n?void 0:n.$async,this.refs={}}}function u(e){const t=h.call(this,e);if(t)return t;const n=(0,a.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:s,lines:c}=this.opts.code,{ownProperties:u}=this.opts,d=new r.CodeGen(this.scope,{es5:s,lines:c,ownProperties:u});let p;e.$async&&(p=d.scopeValue("Error",{ref:i.default,code:r._`require("ajv/dist/runtime/validation_error").default`}));const f=d.scopeName("validate");e.validateName=f;const g={gen:d,allErrors:this.opts.allErrors,data:o.default.data,parentData:o.default.parentData,parentDataProperty:o.default.parentDataProperty,dataNames:[o.default.data],dataPathArr:[r.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:d.scopeValue("schema",!0===this.opts.code.source?{ref:e.schema,code:(0,r.stringify)(e.schema)}:{ref:e.schema}),validateName:f,ValidationError:p,schema:e.schema,schemaEnv:e,rootId:n,baseId:e.baseId||n,schemaPath:r.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:r._`""`,opts:this.opts,self:this};let m;try{this._compilations.add(e),(0,l.validateFunctionCode)(g),d.optimize(this.opts.code.optimize);const t=d.toString();m=`${d.scopeRefs(o.default.scope)}return ${t}`,this.opts.code.process&&(m=this.opts.code.process(m,e));const n=new Function(`${o.default.self}`,`${o.default.scope}`,m)(this,this.scope.get());if(this.scope.value(f,{ref:n}),n.errors=null,n.schema=e.schema,n.schemaEnv=e,e.$async&&(n.$async=!0),!0===this.opts.code.source&&(n.source={validateName:f,validateCode:t,scopeValues:d._values}),this.opts.unevaluated){const{props:e,items:t}=g;n.evaluated={props:e instanceof r.Name?void 0:e,items:t instanceof r.Name?void 0:t,dynamicProps:e instanceof r.Name,dynamicItems:t instanceof r.Name},n.source&&(n.source.evaluated=(0,r.stringify)(n.evaluated))}return e.validate=n,e}catch(t){throw delete e.validate,delete e.validateName,m&&this.logger.error("Error compiling schema, function code:",m),t}finally{this._compilations.delete(e)}}function d(e){return(0,a.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:u.call(this,e)}function h(e){for(const r of this._compilations)if(n=e,(t=r).schema===n.schema&&t.root===n.root&&t.baseId===n.baseId)return r;var t,n}function p(e,t){let n;for(;"string"==typeof(n=this.refs[t]);)t=n;return n||this.schemas[t]||f.call(this,e,t)}function f(e,t){const n=this.opts.uriResolver.parse(t),r=(0,a._getFullPath)(this.opts.uriResolver,n);let i=(0,a.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&r===i)return m.call(this,n,e);const o=(0,a.normalizeId)(r),s=this.refs[o]||this.schemas[o];if("string"==typeof s){const t=f.call(this,e,s);if("object"!=typeof(null==t?void 0:t.schema))return;return m.call(this,n,t)}if("object"==typeof(null==s?void 0:s.schema)){if(s.validate||u.call(this,s),o===(0,a.normalizeId)(t)){const{schema:t}=s,{schemaId:n}=this.opts,r=t[n];return r&&(i=(0,a.resolveUrl)(this.opts.uriResolver,i,r)),new c({schema:t,schemaId:n,root:e,baseId:i})}return m.call(this,n,s)}}t.SchemaEnv=c,t.compileSchema=u,t.resolveRef=function(e,t,n){var r;n=(0,a.resolveUrl)(this.opts.uriResolver,t,n);const i=e.refs[n];if(i)return i;let o=p.call(this,e,n);if(void 0===o){const i=null===(r=e.localRefs)||void 0===r?void 0:r[n],{schemaId:a}=this.opts;i&&(o=new c({schema:i,schemaId:a,root:e,baseId:t}))}return void 0!==o?e.refs[n]=d.call(this,o):void 0},t.getCompilingSchema=h,t.resolveSchema=f;const g=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function m(e,{baseId:t,schema:n,root:r}){var i;if("/"!==(null===(i=e.fragment)||void 0===i?void 0:i[0]))return;for(const r of e.fragment.slice(1).split("/")){if("boolean"==typeof n)return;const e=n[(0,s.unescapeFragment)(r)];if(void 0===e)return;const i="object"==typeof(n=e)&&n[this.opts.schemaId];!g.has(r)&&i&&(t=(0,a.resolveUrl)(this.opts.uriResolver,t,i))}let o;if("boolean"!=typeof n&&n.$ref&&!(0,s.schemaHasRulesButRef)(n,this.RULES)){const e=(0,a.resolveUrl)(this.opts.uriResolver,t,n.$ref);o=f.call(this,r,e)}const{schemaId:l}=this.opts;return o=o||new c({schema:n,schemaId:l,root:r,baseId:t}),o.schema!==o.root.schema?o:void 0}},42302:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(28468),i={data:new r.Name("data"),valCxt:new r.Name("valCxt"),instancePath:new r.Name("instancePath"),parentData:new r.Name("parentData"),parentDataProperty:new r.Name("parentDataProperty"),rootData:new r.Name("rootData"),dynamicAnchors:new r.Name("dynamicAnchors"),vErrors:new r.Name("vErrors"),errors:new r.Name("errors"),this:new r.Name("this"),self:new r.Name("self"),scope:new r.Name("scope"),json:new r.Name("json"),jsonPos:new r.Name("jsonPos"),jsonLen:new r.Name("jsonLen"),jsonPart:new r.Name("jsonPart")};t.default=i},21698:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(6450);class i extends Error{constructor(e,t,n,i){super(i||`can't resolve reference ${n} from id ${t}`),this.missingRef=(0,r.resolveUrl)(e,t,n),this.missingSchema=(0,r.normalizeId)((0,r.getFullPath)(e,this.missingRef))}}t.default=i},6450:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSchemaRefs=t.resolveUrl=t.normalizeId=t._getFullPath=t.getFullPath=t.inlineRef=void 0;const r=n(93880),i=n(92792),o=n(23018),a=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);t.inlineRef=function(e,t=!0){return"boolean"==typeof e||(!0===t?!l(e):!!t&&c(e)<=t)};const s=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function l(e){for(const t in e){if(s.has(t))return!0;const n=e[t];if(Array.isArray(n)&&n.some(l))return!0;if("object"==typeof n&&l(n))return!0}return!1}function c(e){let t=0;for(const n in e){if("$ref"===n)return 1/0;if(t++,!a.has(n)&&("object"==typeof e[n]&&(0,r.eachItem)(e[n],(e=>t+=c(e))),t===1/0))return 1/0}return t}function u(e,t="",n){!1!==n&&(t=p(t));const r=e.parse(t);return d(e,r)}function d(e,t){return e.serialize(t).split("#")[0]+"#"}t.getFullPath=u,t._getFullPath=d;const h=/#\/?$/;function p(e){return e?e.replace(h,""):""}t.normalizeId=p,t.resolveUrl=function(e,t,n){return n=p(n),e.resolve(t,n)};const f=/^[a-z_][-a-z0-9._]*$/i;t.getSchemaRefs=function(e,t){if("boolean"==typeof e)return{};const{schemaId:n,uriResolver:r}=this.opts,a=p(e[n]||t),s={"":a},l=u(r,a,!1),c={},d=new Set;return o(e,{allKeys:!0},((e,t,r,i)=>{if(void 0===i)return;const o=l+t;let a=s[i];function u(t){const n=this.opts.uriResolver.resolve;if(t=p(a?n(a,t):t),d.has(t))throw g(t);d.add(t);let r=this.refs[t];return"string"==typeof r&&(r=this.refs[r]),"object"==typeof r?h(e,r.schema,t):t!==p(o)&&("#"===t[0]?(h(e,c[t],t),c[t]=e):this.refs[t]=o),t}function m(e){if("string"==typeof e){if(!f.test(e))throw new Error(`invalid anchor "${e}"`);u.call(this,`#${e}`)}}"string"==typeof e[n]&&(a=u.call(this,e[n])),m.call(this,e.$anchor),m.call(this,e.$dynamicAnchor),s[t]=a})),c;function h(e,t,n){if(void 0!==t&&!i(e,t))throw g(n)}function g(e){return new Error(`reference "${e}" resolves to more than one schema`)}}},56417:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRules=t.isJSONType=void 0;const n=new Set(["string","number","integer","boolean","null","object","array"]);t.isJSONType=function(e){return"string"==typeof e&&n.has(e)},t.getRules=function(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}},93880:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkStrictMode=t.getErrorPath=t.Type=t.useFunc=t.setEvaluated=t.evaluatedPropsToName=t.mergeEvaluated=t.eachItem=t.unescapeJsonPointer=t.escapeJsonPointer=t.escapeFragment=t.unescapeFragment=t.schemaRefOrVal=t.schemaHasRulesButRef=t.schemaHasRules=t.checkUnknownRules=t.alwaysValidSchema=t.toHash=void 0;const r=n(28468),i=n(61823);function o(e,t=e.schema){const{opts:n,self:r}=e;if(!n.strictSchema)return;if("boolean"==typeof t)return;const i=r.RULES.keywords;for(const n in t)i[n]||f(e,`unknown keyword: "${n}"`)}function a(e,t){if("boolean"==typeof e)return!e;for(const n in e)if(t[n])return!0;return!1}function s(e){return"number"==typeof e?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}function l(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function c({mergeNames:e,mergeToName:t,mergeValues:n,resultToName:i}){return(o,a,s,l)=>{const c=void 0===s?a:s instanceof r.Name?(a instanceof r.Name?e(o,a,s):t(o,a,s),s):a instanceof r.Name?(t(o,s,a),a):n(a,s);return l!==r.Name||c instanceof r.Name?c:i(o,c)}}function u(e,t){if(!0===t)return e.var("props",!0);const n=e.var("props",r._`{}`);return void 0!==t&&d(e,n,t),n}function d(e,t,n){Object.keys(n).forEach((n=>e.assign(r._`${t}${(0,r.getProperty)(n)}`,!0)))}t.toHash=function(e){const t={};for(const n of e)t[n]=!0;return t},t.alwaysValidSchema=function(e,t){return"boolean"==typeof t?t:0===Object.keys(t).length||(o(e,t),!a(t,e.self.RULES.all))},t.checkUnknownRules=o,t.schemaHasRules=a,t.schemaHasRulesButRef=function(e,t){if("boolean"==typeof e)return!e;for(const n in e)if("$ref"!==n&&t.all[n])return!0;return!1},t.schemaRefOrVal=function({topSchemaRef:e,schemaPath:t},n,i,o){if(!o){if("number"==typeof n||"boolean"==typeof n)return n;if("string"==typeof n)return r._`${n}`}return r._`${e}${t}${(0,r.getProperty)(i)}`},t.unescapeFragment=function(e){return l(decodeURIComponent(e))},t.escapeFragment=function(e){return encodeURIComponent(s(e))},t.escapeJsonPointer=s,t.unescapeJsonPointer=l,t.eachItem=function(e,t){if(Array.isArray(e))for(const n of e)t(n);else t(e)},t.mergeEvaluated={props:c({mergeNames:(e,t,n)=>e.if(r._`${n} !== true && ${t} !== undefined`,(()=>{e.if(r._`${t} === true`,(()=>e.assign(n,!0)),(()=>e.assign(n,r._`${n} || {}`).code(r._`Object.assign(${n}, ${t})`)))})),mergeToName:(e,t,n)=>e.if(r._`${n} !== true`,(()=>{!0===t?e.assign(n,!0):(e.assign(n,r._`${n} || {}`),d(e,n,t))})),mergeValues:(e,t)=>!0===e||{...e,...t},resultToName:u}),items:c({mergeNames:(e,t,n)=>e.if(r._`${n} !== true && ${t} !== undefined`,(()=>e.assign(n,r._`${t} === true ? true : ${n} > ${t} ? ${n} : ${t}`))),mergeToName:(e,t,n)=>e.if(r._`${n} !== true`,(()=>e.assign(n,!0===t||r._`${n} > ${t} ? ${n} : ${t}`))),mergeValues:(e,t)=>!0===e||Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})},t.evaluatedPropsToName=u,t.setEvaluated=d;const h={};var p;function f(e,t,n=e.opts.strictSchema){if(n){if(t=`strict mode: ${t}`,!0===n)throw new Error(t);e.self.logger.warn(t)}}t.useFunc=function(e,t){return e.scopeValue("func",{ref:t,code:h[t.code]||(h[t.code]=new i._Code(t.code))})},function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"}(p||(t.Type=p={})),t.getErrorPath=function(e,t,n){if(e instanceof r.Name){const i=t===p.Num;return n?i?r._`"[" + ${e} + "]"`:r._`"['" + ${e} + "']"`:i?r._`"/" + ${e}`:r._`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return n?(0,r.getProperty)(e).toString():"/"+s(e)},t.checkStrictMode=f},65012:(e,t)=>{"use strict";function n(e,t){return t.rules.some((t=>r(e,t)))}function r(e,t){var n;return void 0!==e[t.keyword]||(null===(n=t.definition.implements)||void 0===n?void 0:n.some((t=>void 0!==e[t])))}Object.defineProperty(t,"__esModule",{value:!0}),t.shouldUseRule=t.shouldUseGroup=t.schemaHasRulesForType=void 0,t.schemaHasRulesForType=function({schema:e,self:t},r){const i=t.RULES.types[r];return i&&!0!==i&&n(e,i)},t.shouldUseGroup=n,t.shouldUseRule=r},82474:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.boolOrEmptySchema=t.topBoolOrEmptySchema=void 0;const r=n(32507),i=n(28468),o=n(42302),a={message:"boolean schema is false"};function s(e,t){const{gen:n,data:i}=e,o={gen:n,keyword:"false schema",data:i,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,r.reportError)(o,a,void 0,t)}t.topBoolOrEmptySchema=function(e){const{gen:t,schema:n,validateName:r}=e;!1===n?s(e,!1):"object"==typeof n&&!0===n.$async?t.return(o.default.data):(t.assign(i._`${r}.errors`,null),t.return(!0))},t.boolOrEmptySchema=function(e,t){const{gen:n,schema:r}=e;!1===r?(n.var(t,!1),s(e)):n.var(t,!0)}},42965:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reportTypeError=t.checkDataTypes=t.checkDataType=t.coerceAndCheckDataType=t.getJSONTypes=t.getSchemaTypes=t.DataType=void 0;const r=n(56417),i=n(65012),o=n(32507),a=n(28468),s=n(93880);var l;function c(e){const t=Array.isArray(e)?e:e?[e]:[];if(t.every(r.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}!function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"}(l||(t.DataType=l={})),t.getSchemaTypes=function(e){const t=c(e.type);if(t.includes("null")){if(!1===e.nullable)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&void 0!==e.nullable)throw new Error('"nullable" cannot be used without "type"');!0===e.nullable&&t.push("null")}return t},t.getJSONTypes=c,t.coerceAndCheckDataType=function(e,t){const{gen:n,data:r,opts:o}=e,s=function(e,t){return t?e.filter((e=>u.has(e)||"array"===t&&"array"===e)):[]}(t,o.coerceTypes),c=t.length>0&&!(0===s.length&&1===t.length&&(0,i.schemaHasRulesForType)(e,t[0]));if(c){const i=h(t,r,o.strictNumbers,l.Wrong);n.if(i,(()=>{s.length?function(e,t,n){const{gen:r,data:i,opts:o}=e,s=r.let("dataType",a._`typeof ${i}`),l=r.let("coerced",a._`undefined`);"array"===o.coerceTypes&&r.if(a._`${s} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,(()=>r.assign(i,a._`${i}[0]`).assign(s,a._`typeof ${i}`).if(h(t,i,o.strictNumbers),(()=>r.assign(l,i)))));r.if(a._`${l} !== undefined`);for(const e of n)(u.has(e)||"array"===e&&"array"===o.coerceTypes)&&c(e);function c(e){switch(e){case"string":return void r.elseIf(a._`${s} == "number" || ${s} == "boolean"`).assign(l,a._`"" + ${i}`).elseIf(a._`${i} === null`).assign(l,a._`""`);case"number":return void r.elseIf(a._`${s} == "boolean" || ${i} === null +`),b.rippleVisible,_,550,(({theme:e})=>e.transitions.easing.easeInOut),b.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),b.child,b.childLeaving,k,550,(({theme:e})=>e.transitions.easing.easeInOut),b.childPulsate,T,(({theme:e})=>e.transitions.easing.easeInOut)),I=o.forwardRef((function(e,t){const n=(0,c.A)({props:e,name:"MuiTouchRipple"}),{center:s=!1,classes:l={},className:u}=n,d=(0,i.A)(n,w),[h,f]=o.useState([]),y=o.useRef(0),v=o.useRef(null);o.useEffect((()=>{v.current&&(v.current(),v.current=null)}),[h]);const x=o.useRef(!1),A=(0,g.A)(),S=o.useRef(null),C=o.useRef(null),E=o.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:o}=e;f((e=>[...e,(0,m.jsx)(P,{classes:{ripple:(0,a.A)(l.ripple,b.ripple),rippleVisible:(0,a.A)(l.rippleVisible,b.rippleVisible),ripplePulsate:(0,a.A)(l.ripplePulsate,b.ripplePulsate),child:(0,a.A)(l.child,b.child),childLeaving:(0,a.A)(l.childLeaving,b.childLeaving),childPulsate:(0,a.A)(l.childPulsate,b.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},y.current)])),y.current+=1,v.current=o}),[l]),_=o.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:r=!1,center:i=s||t.pulsate,fakeElement:o=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&x.current)return void(x.current=!1);"touchstart"===(null==e?void 0:e.type)&&(x.current=!0);const a=o?null:C.current,l=a?a.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,d;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),u=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),u=Math.round(n-l.top)}if(i)d=Math.sqrt((2*l.width**2+l.height**2)/3),d%2==0&&(d+=1);else{const e=2*Math.max(Math.abs((a?a.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((a?a.clientHeight:0)-u),u)+2;d=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===S.current&&(S.current=()=>{E({pulsate:r,rippleX:c,rippleY:u,rippleSize:d,cb:n})},A.start(80,(()=>{S.current&&(S.current(),S.current=null)}))):E({pulsate:r,rippleX:c,rippleY:u,rippleSize:d,cb:n})}),[s,E,A]),k=o.useCallback((()=>{_({},{pulsate:!0})}),[_]),T=o.useCallback(((e,t)=>{if(A.clear(),"touchend"===(null==e?void 0:e.type)&&S.current)return S.current(),S.current=null,void A.start(0,(()=>{T(e,t)}));S.current=null,f((e=>e.length>0?e.slice(1):e)),v.current=t}),[A]);return o.useImperativeHandle(t,(()=>({pulsate:k,start:_,stop:T})),[k,_,T]),(0,m.jsx)(O,(0,r.A)({className:(0,a.A)(b.root,l.root,u),ref:C},d,{children:(0,m.jsx)(p.A,{component:null,exit:!0,children:h})}))}));var M=n(24115);function L(e){return(0,M.Ay)("MuiButtonBase",e)}const R=(0,v.A)("MuiButtonBase",["root","disabled","focusVisible"]),j=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],F=(0,l.Ay)("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${R.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),D=o.forwardRef((function(e,t){const n=(0,c.A)({props:e,name:"MuiButtonBase"}),{action:l,centerRipple:p=!1,children:f,className:g,component:y="button",disabled:v=!1,disableRipple:b=!1,disableTouchRipple:w=!1,focusRipple:x=!1,LinkComponent:A="a",onBlur:S,onClick:C,onContextMenu:E,onDragLeave:_,onFocus:k,onFocusVisible:T,onKeyDown:O,onKeyUp:P,onMouseDown:M,onMouseLeave:R,onMouseUp:D,onTouchEnd:N,onTouchMove:z,onTouchStart:V,tabIndex:B=0,TouchRippleProps:$,touchRippleRef:G,type:U}=n,W=(0,i.A)(n,j),q=o.useRef(null),H=o.useRef(null),Y=(0,u.A)(H,G),{isFocusVisibleRef:K,onFocus:X,onBlur:Z,ref:J}=(0,h.A)(),[Q,ee]=o.useState(!1);v&&Q&&ee(!1),o.useImperativeHandle(l,(()=>({focusVisible:()=>{ee(!0),q.current.focus()}})),[]);const[te,ne]=o.useState(!1);o.useEffect((()=>{ne(!0)}),[]);const re=te&&!b&&!v;function ie(e,t,n=w){return(0,d.A)((r=>{t&&t(r);return!n&&H.current&&H.current[e](r),!0}))}o.useEffect((()=>{Q&&x&&!b&&te&&H.current.pulsate()}),[b,x,Q,te]);const oe=ie("start",M),ae=ie("stop",E),se=ie("stop",_),le=ie("stop",D),ce=ie("stop",(e=>{Q&&e.preventDefault(),R&&R(e)})),ue=ie("start",V),de=ie("stop",N),he=ie("stop",z),pe=ie("stop",(e=>{Z(e),!1===K.current&&ee(!1),S&&S(e)}),!1),fe=(0,d.A)((e=>{q.current||(q.current=e.currentTarget),X(e),!0===K.current&&(ee(!0),T&&T(e)),k&&k(e)})),ge=()=>{const e=q.current;return y&&"button"!==y&&!("A"===e.tagName&&e.href)},me=o.useRef(!1),ye=(0,d.A)((e=>{x&&!me.current&&Q&&H.current&&" "===e.key&&(me.current=!0,H.current.stop(e,(()=>{H.current.start(e)}))),e.target===e.currentTarget&&ge()&&" "===e.key&&e.preventDefault(),O&&O(e),e.target===e.currentTarget&&ge()&&"Enter"===e.key&&!v&&(e.preventDefault(),C&&C(e))})),ve=(0,d.A)((e=>{x&&" "===e.key&&H.current&&Q&&!e.defaultPrevented&&(me.current=!1,H.current.stop(e,(()=>{H.current.pulsate(e)}))),P&&P(e),C&&e.target===e.currentTarget&&ge()&&" "===e.key&&!e.defaultPrevented&&C(e)}));let be=y;"button"===be&&(W.href||W.to)&&(be=A);const we={};"button"===be?(we.type=void 0===U?"button":U,we.disabled=v):(W.href||W.to||(we.role="button"),v&&(we["aria-disabled"]=v));const xe=(0,u.A)(t,J,q);const Ae=(0,r.A)({},n,{centerRipple:p,component:y,disabled:v,disableRipple:b,disableTouchRipple:w,focusRipple:x,tabIndex:B,focusVisible:Q}),Se=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,o={root:["root",t&&"disabled",n&&"focusVisible"]},a=(0,s.A)(o,L,i);return n&&r&&(a.root+=` ${r}`),a})(Ae);return(0,m.jsxs)(F,(0,r.A)({as:be,className:(0,a.A)(Se.root,g),ownerState:Ae,onBlur:pe,onClick:C,onContextMenu:ae,onFocus:fe,onKeyDown:ye,onKeyUp:ve,onMouseDown:oe,onMouseLeave:ce,onMouseUp:le,onDragLeave:se,onTouchEnd:de,onTouchMove:he,onTouchStart:ue,ref:xe,tabIndex:v?-1:B,type:U},we,W,{children:[f,re?(0,m.jsx)(I,(0,r.A)({ref:Y,center:p},$)):null]}))}))},66865:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var r=n(73342),i=n(51559),o=n(30538),a=n(87286),s=n(32829),l=n(59015),c=n(58990),u=n(87507),d=n(99425),h=n(97282);const p=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],f=(0,c.Ay)("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>(0,i.A)({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:(0,l.X4)(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({ownerState:e})=>(0,i.A)({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>(0,i.A)({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>(0,i.A)({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>(0,i.A)({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),g=(0,c.Ay)("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>(0,i.A)({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}))),m=o.forwardRef((function(e,t){const n=(0,u.A)({props:e,name:"MuiDivider"}),{absolute:o=!1,children:l,className:c,component:m=(l?"div":"hr"),flexItem:y=!1,light:v=!1,orientation:b="horizontal",role:w=("hr"!==m?"separator":void 0),textAlign:x="center",variant:A="fullWidth"}=n,S=(0,r.A)(n,p),C=(0,i.A)({},n,{absolute:o,component:m,flexItem:y,light:v,orientation:b,role:w,textAlign:x,variant:A}),E=(e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:o,orientation:a,textAlign:l,variant:c}=e,u={root:["root",t&&"absolute",c,o&&"light","vertical"===a&&"vertical",i&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===l&&"vertical"!==a&&"textAlignRight","left"===l&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]};return(0,s.A)(u,d.K,r)})(C);return(0,h.jsx)(f,(0,i.A)({as:m,className:(0,a.A)(E.root,c),role:w,ref:t,ownerState:C},S,{children:l?(0,h.jsx)(g,{className:E.wrapper,ownerState:C,children:l}):null}))}));m.muiSkipListHighlight=!0;const y=m},99425:(e,t,n)=>{"use strict";n.d(t,{A:()=>a,K:()=>o});var r=n(5007),i=n(24115);function o(e){return(0,i.Ay)("MuiDivider",e)}const a=(0,r.A)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"])},90645:(e,t,n)=>{"use strict";n.d(t,{A:()=>w});var r=n(73342),i=n(51559),o=n(30538),a=n(87286),s=n(32829),l=n(87507),c=n(58990),u=n(29421),d=n(19508),h=n(75361),p=n(2994),f=n(5007),g=n(24115);function m(e){return(0,g.Ay)("MuiFormControl",e)}(0,f.A)("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);var y=n(97282);const v=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],b=(0,c.Ay)("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>(0,i.A)({},t.root,t[`margin${(0,d.A)(e.margin)}`],e.fullWidth&&t.fullWidth)})((({ownerState:e})=>(0,i.A)({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},"normal"===e.margin&&{marginTop:16,marginBottom:8},"dense"===e.margin&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"}))),w=o.forwardRef((function(e,t){const n=(0,l.A)({props:e,name:"MuiFormControl"}),{children:c,className:f,color:g="primary",component:w="div",disabled:x=!1,error:A=!1,focused:S,fullWidth:C=!1,hiddenLabel:E=!1,margin:_="none",required:k=!1,size:T="medium",variant:O="outlined"}=n,P=(0,r.A)(n,v),I=(0,i.A)({},n,{color:g,component:w,disabled:x,error:A,fullWidth:C,hiddenLabel:E,margin:_,required:k,size:T,variant:O}),M=(e=>{const{classes:t,margin:n,fullWidth:r}=e,i={root:["root","none"!==n&&`margin${(0,d.A)(n)}`,r&&"fullWidth"]};return(0,s.A)(i,m,t)})(I),[L,R]=o.useState((()=>{let e=!1;return c&&o.Children.forEach(c,(t=>{if(!(0,h.A)(t,["Input","Select"]))return;const n=(0,h.A)(t,["Select"])?t.props.input:t;n&&(0,u.gr)(n.props)&&(e=!0)})),e})),[j,F]=o.useState((()=>{let e=!1;return c&&o.Children.forEach(c,(t=>{(0,h.A)(t,["Input","Select"])&&((0,u.lq)(t.props,!0)||(0,u.lq)(t.props.inputProps,!0))&&(e=!0)})),e})),[D,N]=o.useState(!1);x&&D&&N(!1);const z=void 0===S||x?D:S;let V;const B=o.useMemo((()=>({adornedStart:L,setAdornedStart:R,color:g,disabled:x,error:A,filled:j,focused:z,fullWidth:C,hiddenLabel:E,size:T,onBlur:()=>{N(!1)},onEmpty:()=>{F(!1)},onFilled:()=>{F(!0)},onFocus:()=>{N(!0)},registerEffect:V,required:k,variant:O})),[L,g,x,A,j,z,C,E,V,k,T,O]);return(0,y.jsx)(p.A.Provider,{value:B,children:(0,y.jsx)(b,(0,i.A)({as:w,ownerState:I,className:(0,a.A)(M.root,f),ref:t},P,{children:c}))})}))},2994:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(30538).createContext(void 0)},73336:(e,t,n)=>{"use strict";function r({props:e,states:t,muiFormControl:n}){return t.reduce(((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t)),{})}n.d(t,{A:()=>r})},39230:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(30538),i=n(2994);function o(){return r.useContext(i.A)}},28566:(e,t,n)=>{"use strict";n.d(t,{f3:()=>z,Sh:()=>N,Ay:()=>B,Oj:()=>D,WC:()=>F});var r=n(73342),i=n(51559),o=n(88207),a=n(30538),s=n(87286),l=n(18029),c=n(56023),u=n(43107),d=n(6995),h=n(97282);const p=["onChange","maxRows","minRows","style","value"];function f(e){return parseInt(e,10)||0}const g={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};const m=a.forwardRef((function(e,t){const{onChange:n,maxRows:o,minRows:s=1,style:m,value:y}=e,v=(0,r.A)(e,p),{current:b}=a.useRef(null!=y),w=a.useRef(null),x=(0,l.A)(t,w),A=a.useRef(null),S=a.useCallback((()=>{const t=w.current,n=(0,c.A)(t).getComputedStyle(t);if("0px"===n.width)return{outerHeightStyle:0,overflowing:!1};const r=A.current;r.style.width=n.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");const i=n.boxSizing,a=f(n.paddingBottom)+f(n.paddingTop),l=f(n.borderBottomWidth)+f(n.borderTopWidth),u=r.scrollHeight;r.value="x";const d=r.scrollHeight;let h=u;s&&(h=Math.max(Number(s)*d,h)),o&&(h=Math.min(Number(o)*d,h)),h=Math.max(h,d);return{outerHeightStyle:h+("border-box"===i?a+l:0),overflowing:Math.abs(h-u)<=1}}),[o,s,e.placeholder]),C=a.useCallback((()=>{const e=S();if(null==(t=e)||0===Object.keys(t).length||0===t.outerHeightStyle&&!t.overflowing)return;var t;const n=w.current;n.style.height=`${e.outerHeightStyle}px`,n.style.overflow=e.overflowing?"hidden":""}),[S]);(0,u.A)((()=>{const e=()=>{C()};let t;const n=(0,d.A)(e),r=w.current,i=(0,c.A)(r);let o;return i.addEventListener("resize",n),"undefined"!=typeof ResizeObserver&&(o=new ResizeObserver(e),o.observe(r)),()=>{n.clear(),cancelAnimationFrame(t),i.removeEventListener("resize",n),o&&o.disconnect()}}),[S,C]),(0,u.A)((()=>{C()}));return(0,h.jsxs)(a.Fragment,{children:[(0,h.jsx)("textarea",(0,i.A)({value:y,onChange:e=>{b||C(),n&&n(e)},ref:x,rows:s,style:m},v)),(0,h.jsx)("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:A,tabIndex:-1,style:(0,i.A)({},g,m,{paddingTop:0,paddingBottom:0})})]})}));var y=n(2665),v=n(32829),b=n(73336),w=n(2994),x=n(39230),A=n(58990),S=n(87507),C=n(19508),E=n(47258),_=n(65420),k=n(78790),T=n(38382);const O=function({styles:e,themeId:t,defaultTheme:n={}}){const r=(0,T.A)(n),i="function"==typeof e?e(t&&r[t]||r):e;return(0,h.jsx)(k.A,{styles:i})};var P=n(75947),I=n(38358);const M=function(e){return(0,h.jsx)(O,(0,i.A)({},e,{defaultTheme:P.A,themeId:I.A}))};var L=n(29421),R=n(8253);const j=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],F=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${(0,C.A)(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},D=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},N=(0,A.Ay)("div",{name:"MuiInputBase",slot:"Root",overridesResolver:F})((({theme:e,ownerState:t})=>(0,i.A)({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${R.A.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&(0,i.A)({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),z=(0,A.Ay)("input",{name:"MuiInputBase",slot:"Input",overridesResolver:D})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=(0,i.A)({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return(0,i.A)({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${R.A.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${R.A.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})})),V=(0,h.jsx)(M,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),B=a.forwardRef((function(e,t){var n;const l=(0,S.A)({props:e,name:"MuiInputBase"}),{"aria-describedby":c,autoComplete:u,autoFocus:d,className:p,components:f={},componentsProps:g={},defaultValue:A,disabled:k,disableInjectingGlobalStyles:T,endAdornment:O,fullWidth:P=!1,id:I,inputComponent:M="input",inputProps:F={},inputRef:D,maxRows:B,minRows:$,multiline:G=!1,name:U,onBlur:W,onChange:q,onClick:H,onFocus:Y,onKeyDown:K,onKeyUp:X,placeholder:Z,readOnly:J,renderSuffix:Q,rows:ee,slotProps:te={},slots:ne={},startAdornment:re,type:ie="text",value:oe}=l,ae=(0,r.A)(l,j),se=null!=F.value?F.value:oe,{current:le}=a.useRef(null!=se),ce=a.useRef(),ue=a.useCallback((e=>{0}),[]),de=(0,E.A)(ce,D,F.ref,ue),[he,pe]=a.useState(!1),fe=(0,x.A)();const ge=(0,b.A)({props:l,muiFormControl:fe,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ge.focused=fe?fe.focused:he,a.useEffect((()=>{!fe&&k&&he&&(pe(!1),W&&W())}),[fe,k,he,W]);const me=fe&&fe.onFilled,ye=fe&&fe.onEmpty,ve=a.useCallback((e=>{(0,L.lq)(e)?me&&me():ye&&ye()}),[me,ye]);(0,_.A)((()=>{le&&ve({value:se})}),[se,ve,le]);a.useEffect((()=>{ve(ce.current)}),[]);let be=M,we=F;G&&"input"===be&&(we=ee?(0,i.A)({type:void 0,minRows:ee,maxRows:ee},we):(0,i.A)({type:void 0,maxRows:B,minRows:$},we),be=m);a.useEffect((()=>{fe&&fe.setAdornedStart(Boolean(re))}),[fe,re]);const xe=(0,i.A)({},l,{color:ge.color||"primary",disabled:ge.disabled,endAdornment:O,error:ge.error,focused:ge.focused,formControl:fe,fullWidth:P,hiddenLabel:ge.hiddenLabel,multiline:G,size:ge.size,startAdornment:re,type:ie}),Ae=(e=>{const{classes:t,color:n,disabled:r,error:i,endAdornment:o,focused:a,formControl:s,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:d,size:h,startAdornment:p,type:f}=e,g={root:["root",`color${(0,C.A)(n)}`,r&&"disabled",i&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",h&&"medium"!==h&&`size${(0,C.A)(h)}`,u&&"multiline",p&&"adornedStart",o&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===f&&"inputTypeSearch",u&&"inputMultiline","small"===h&&"inputSizeSmall",c&&"inputHiddenLabel",p&&"inputAdornedStart",o&&"inputAdornedEnd",d&&"readOnly"]};return(0,v.A)(g,R.g,t)})(xe),Se=ne.root||f.Root||N,Ce=te.root||g.root||{},Ee=ne.input||f.Input||z;return we=(0,i.A)({},we,null!=(n=te.input)?n:g.input),(0,h.jsxs)(a.Fragment,{children:[!T&&V,(0,h.jsxs)(Se,(0,i.A)({},Ce,!(0,y.g)(Se)&&{ownerState:(0,i.A)({},xe,Ce.ownerState)},{ref:t,onClick:e=>{ce.current&&e.currentTarget===e.target&&ce.current.focus(),H&&H(e)}},ae,{className:(0,s.A)(Ae.root,Ce.className,p,J&&"MuiInputBase-readOnly"),children:[re,(0,h.jsx)(w.A.Provider,{value:null,children:(0,h.jsx)(Ee,(0,i.A)({ownerState:xe,"aria-invalid":ge.error,"aria-describedby":c,autoComplete:u,autoFocus:d,defaultValue:A,disabled:ge.disabled,id:I,onAnimationStart:e=>{ve("mui-auto-fill-cancel"===e.animationName?ce.current:{value:"x"})},name:U,placeholder:Z,readOnly:J,required:ge.required,rows:ee,value:se,onKeyDown:K,onKeyUp:X,type:ie},we,!(0,y.g)(Ee)&&{as:be,ownerState:(0,i.A)({},xe,we.ownerState)},{ref:de,className:(0,s.A)(Ae.input,we.className,J&&"MuiInputBase-readOnly"),onBlur:e=>{W&&W(e),F.onBlur&&F.onBlur(e),fe&&fe.onBlur?fe.onBlur(e):pe(!1)},onChange:(e,...t)=>{if(!le){const t=e.target||ce.current;if(null==t)throw new Error((0,o.A)(1));ve({value:t.value})}F.onChange&&F.onChange(e,...t),q&&q(e,...t)},onFocus:e=>{ge.disabled?e.stopPropagation():(Y&&Y(e),F.onFocus&&F.onFocus(e),fe&&fe.onFocus?fe.onFocus(e):pe(!0))}}))}),O,Q?Q((0,i.A)({},ge,{startAdornment:re})):null]}))]})}))},8253:(e,t,n)=>{"use strict";n.d(t,{A:()=>a,g:()=>o});var r=n(5007),i=n(24115);function o(e){return(0,i.Ay)("MuiInputBase",e)}const a=(0,r.A)("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"])},29421:(e,t,n)=>{"use strict";function r(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function i(e,t=!1){return e&&(r(e.value)&&""!==e.value||t&&r(e.defaultValue)&&""!==e.defaultValue)}function o(e){return e.startAdornment}n.d(t,{gr:()=>o,lq:()=>i})},5323:(e,t,n)=>{"use strict";n.d(t,{A:()=>_});var r=n(73342),i=n(51559),o=n(30538),a=n(32829),s=n(87286),l=n(73336),c=n(39230),u=n(19508),d=n(87507),h=n(58990),p=n(5007),f=n(24115);function g(e){return(0,f.Ay)("MuiFormLabel",e)}const m=(0,p.A)("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]);var y=n(97282);const v=["children","className","color","component","disabled","error","filled","focused","required"],b=(0,h.Ay)("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>(0,i.A)({},t.root,"secondary"===e.color&&t.colorSecondary,e.filled&&t.filled)})((({theme:e,ownerState:t})=>(0,i.A)({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${m.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${m.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${m.error}`]:{color:(e.vars||e).palette.error.main}}))),w=(0,h.Ay)("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${m.error}`]:{color:(e.vars||e).palette.error.main}}))),x=o.forwardRef((function(e,t){const n=(0,d.A)({props:e,name:"MuiFormLabel"}),{children:o,className:h,component:p="label"}=n,f=(0,r.A)(n,v),m=(0,c.A)(),x=(0,l.A)({props:n,muiFormControl:m,states:["color","required","focused","disabled","error","filled"]}),A=(0,i.A)({},n,{color:x.color||"primary",component:p,disabled:x.disabled,error:x.error,filled:x.filled,focused:x.focused,required:x.required}),S=(e=>{const{classes:t,color:n,focused:r,disabled:i,error:o,filled:s,required:l}=e,c={root:["root",`color${(0,u.A)(n)}`,i&&"disabled",o&&"error",s&&"filled",r&&"focused",l&&"required"],asterisk:["asterisk",o&&"error"]};return(0,a.A)(c,g,t)})(A);return(0,y.jsxs)(b,(0,i.A)({as:p,ownerState:A,className:(0,s.A)(S.root,h),ref:t},f,{children:[o,x.required&&(0,y.jsxs)(w,{ownerState:A,"aria-hidden":!0,className:S.asterisk,children:[" ","*"]})]}))}));var A=n(49968);function S(e){return(0,f.Ay)("MuiInputLabel",e)}(0,p.A)("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const C=["disableAnimation","margin","shrink","variant","className"],E=(0,h.Ay)(x,{shouldForwardProp:e=>(0,A.A)(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${m.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,"small"===n.size&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})((({theme:e,ownerState:t})=>(0,i.A)({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===t.size&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},"filled"===t.variant&&(0,i.A)({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===t.size&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&(0,i.A)({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===t.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===t.variant&&(0,i.A)({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===t.size&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"})))),_=o.forwardRef((function(e,t){const n=(0,d.A)({name:"MuiInputLabel",props:e}),{disableAnimation:o=!1,shrink:h,className:p}=n,f=(0,r.A)(n,C),g=(0,c.A)();let m=h;void 0===m&&g&&(m=g.filled||g.focused||g.adornedStart);const v=(0,l.A)({props:n,muiFormControl:g,states:["size","variant","required","focused"]}),b=(0,i.A)({},n,{disableAnimation:o,formControl:g,shrink:m,size:v.size,variant:v.variant,required:v.required,focused:v.focused}),w=(e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:s,variant:l,required:c}=e,d={root:["root",n&&"formControl",!s&&"animated",o&&"shrink",r&&"normal"!==r&&`size${(0,u.A)(r)}`,l],asterisk:[c&&"asterisk"]},h=(0,a.A)(d,S,t);return(0,i.A)({},t,h)})(b);return(0,y.jsx)(E,(0,i.A)({"data-shrink":m,ownerState:b,ref:t,className:(0,s.A)(w.root,p)},f,{classes:w}))}))},20553:(e,t,n)=>{"use strict";n.d(t,{A:()=>v});var r=n(73342),i=n(51559),o=n(30538),a=n(32829),s=n(43271),l=n(28566),c=n(58990),u=n(49968),d=n(87507),h=n(52441),p=n(97282);const f=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],g=(0,c.Ay)(l.Sh,{shouldForwardProp:e=>(0,u.A)(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...(0,l.WC)(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{let n="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),(0,i.A)({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${h.A.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${h.A.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${h.A.disabled}, .${h.A.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${h.A.disabled}:before`]:{borderBottomStyle:"dotted"}})})),m=(0,c.Ay)(l.f3,{name:"MuiInput",slot:"Input",overridesResolver:l.Oj})({}),y=o.forwardRef((function(e,t){var n,o,c,u;const y=(0,d.A)({props:e,name:"MuiInput"}),{disableUnderline:v,components:b={},componentsProps:w,fullWidth:x=!1,inputComponent:A="input",multiline:S=!1,slotProps:C,slots:E={},type:_="text"}=y,k=(0,r.A)(y,f),T=(e=>{const{classes:t,disableUnderline:n}=e,r={root:["root",!n&&"underline"],input:["input"]},o=(0,a.A)(r,h.B,t);return(0,i.A)({},t,o)})(y),O={root:{ownerState:{disableUnderline:v}}},P=(null!=C?C:w)?(0,s.A)(null!=C?C:w,O):O,I=null!=(n=null!=(o=E.root)?o:b.Root)?n:g,M=null!=(c=null!=(u=E.input)?u:b.Input)?c:m;return(0,p.jsx)(l.Ay,(0,i.A)({slots:{root:I,input:M},slotProps:P,fullWidth:x,inputComponent:A,multiline:S,ref:t,type:_},k,{classes:T}))}));y.muiName="Input";const v=y},52441:(e,t,n)=>{"use strict";n.d(t,{A:()=>l,B:()=>s});var r=n(51559),i=n(5007),o=n(24115),a=n(8253);function s(e){return(0,o.Ay)("MuiInput",e)}const l=(0,r.A)({},a.A,(0,i.A)("MuiInput",["root","underline","input"]))},64987:(e,t,n)=>{"use strict";n.d(t,{A:()=>E});var r=n(73342),i=n(51559),o=n(30538),a=n(87286),s=n(32829),l=n(19508),c=n(58990),u=n(87507),d=n(65741),h=n(47258),p=n(91031),f=n(5007),g=n(24115);function m(e){return(0,g.Ay)("MuiLink",e)}const y=(0,f.A)("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);var v=n(44197),b=n(59015);const w={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},x=({theme:e,ownerState:t})=>{const n=(e=>w[e]||e)(t.color),r=(0,v.Yn)(e,`palette.${n}`,!1)||t.color,i=(0,v.Yn)(e,`palette.${n}Channel`);return"vars"in e&&i?`rgba(${i} / 0.4)`:(0,b.X4)(r,.4)};var A=n(97282);const S=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],C=(0,c.Ay)(p.A,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${(0,l.A)(n.underline)}`],"button"===n.component&&t.button]}})((({theme:e,ownerState:t})=>(0,i.A)({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&(0,i.A)({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:x({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===t.component&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${y.focusVisible}`]:{outline:"auto"}}))),E=o.forwardRef((function(e,t){const n=(0,u.A)({props:e,name:"MuiLink"}),{className:c,color:p="primary",component:f="a",onBlur:g,onFocus:y,TypographyClasses:v,underline:b="always",variant:x="inherit",sx:E}=n,_=(0,r.A)(n,S),{isFocusVisibleRef:k,onBlur:T,onFocus:O,ref:P}=(0,d.A)(),[I,M]=o.useState(!1),L=(0,h.A)(t,P),R=(0,i.A)({},n,{color:p,component:f,focusVisible:I,underline:b,variant:x}),j=(e=>{const{classes:t,component:n,focusVisible:r,underline:i}=e,o={root:["root",`underline${(0,l.A)(i)}`,"button"===n&&"button",r&&"focusVisible"]};return(0,s.A)(o,m,t)})(R);return(0,A.jsx)(C,(0,i.A)({color:p,className:(0,a.A)(j.root,c),classes:v,component:f,onBlur:e=>{T(e),!1===k.current&&M(!1),g&&g(e)},onFocus:e=>{O(e),!0===k.current&&M(!0),y&&y(e)},ref:L,ownerState:R,variant:x,sx:[...Object.keys(w).includes(p)?[]:[{color:p}],...Array.isArray(E)?E:[E]]},_))}))},64049:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>v,Ku:()=>f,XV:()=>m});var r=n(73342),i=n(51559),o=n(30538),a=n(87286),s=n(32829),l=n(19508),c=n(61165),u=n(58990),d=n(49968),h=n(97282);const p=["className","disabled","error","IconComponent","inputRef","variant"],f=({ownerState:e,theme:t})=>(0,i.A)({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":(0,i.A)({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:"light"===t.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${c.A.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===e.variant&&{"&&&":{paddingRight:32}},"outlined"===e.variant&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),g=(0,u.Ay)("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:d.A,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${c.A.multiple}`]:t.multiple}]}})(f),m=({ownerState:e,theme:t})=>(0,i.A)({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${c.A.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),y=(0,u.Ay)("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${(0,l.A)(n.variant)}`],n.open&&t.iconOpen]}})(m),v=o.forwardRef((function(e,t){const{className:n,disabled:u,error:d,IconComponent:f,inputRef:m,variant:v="standard"}=e,b=(0,r.A)(e,p),w=(0,i.A)({},e,{disabled:u,variant:v,error:d}),x=(e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:o,error:a}=e,u={select:["select",n,r&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${(0,l.A)(n)}`,o&&"iconOpen",r&&"disabled"]};return(0,s.A)(u,c.w,t)})(w);return(0,h.jsxs)(o.Fragment,{children:[(0,h.jsx)(g,(0,i.A)({ownerState:w,className:(0,a.A)(x.select,n),disabled:u,ref:m||t},b)),e.multiple?null:(0,h.jsx)(y,{as:f,ownerState:w,className:x.icon})]})}))},61165:(e,t,n)=>{"use strict";n.d(t,{A:()=>a,w:()=>o});var r=n(5007),i=n(24115);function o(e){return(0,i.Ay)("MuiNativeSelect",e)}const a=(0,r.A)("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"])},8088:(e,t,n)=>{"use strict";n.d(t,{A:()=>v});var r=n(73342),i=n(51559),o=n(30538),a=n(87286),s=n(32829),l=n(59015),c=n(58990);const u=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};var d=n(87507),h=n(5007),p=n(24115);function f(e){return(0,p.Ay)("MuiPaper",e)}(0,h.A)("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);var g=n(97282);const m=["className","component","elevation","square","variant"],y=(0,c.Ay)("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((({theme:e,ownerState:t})=>{var n;return(0,i.A)({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&(0,i.A)({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${(0,l.X4)("#fff",u(t.elevation))}, ${(0,l.X4)("#fff",u(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))})),v=o.forwardRef((function(e,t){const n=(0,d.A)({props:e,name:"MuiPaper"}),{className:o,component:l="div",elevation:c=1,square:u=!1,variant:h="elevation"}=n,p=(0,r.A)(n,m),v=(0,i.A)({},n,{component:l,elevation:c,square:u,variant:h}),b=(e=>{const{square:t,elevation:n,variant:r,classes:i}=e,o={root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]};return(0,s.A)(o,f,i)})(v);return(0,g.jsx)(y,(0,i.A)({as:l,ownerState:v,className:(0,a.A)(b.root,o),ref:t},p))}))},23296:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>ne});var r=n(73342),i=n(51559),o=n(30538),a=n(87286),s=n(12277),l=n(2665),c=n(32829),u=n(74311),d=n(63095),h=n(75031),p=n(73499),f=n(18029),g=n(43107),m=n(18605);const y={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};var v=n(75188);function b(e,t){return e-t}function w(e,t){var n;const{index:r}=null!=(n=e.reduce(((e,n,r)=>{const i=Math.abs(t-n);return null===e||ie===t)){return e.length===t.length&&e.every(((e,r)=>n(e,t[r])))}(e,t)}const k={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},T=e=>e;let O;function P(){return void 0===O&&(O="undefined"==typeof CSS||"function"!=typeof CSS.supports||CSS.supports("touch-action","none")),O}function I(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:a=!1,isRtl:s=!1,marks:l=!1,max:c=100,min:O=0,name:I,onChange:M,onChangeCommitted:L,orientation:R="horizontal",rootRef:j,scale:F=T,step:D=1,shiftStep:N=10,tabIndex:z,value:V}=e,B=o.useRef(),[$,G]=o.useState(-1),[U,W]=o.useState(-1),[q,H]=o.useState(!1),Y=o.useRef(0),[K,X]=(0,d.A)({controlled:V,default:null!=n?n:O,name:"Slider"}),Z=M&&((e,t,n)=>{const r=e.nativeEvent||e,i=new r.constructor(r.type,r);Object.defineProperty(i,"target",{writable:!0,value:{value:t,name:I}}),M(i,t,n)}),J=Array.isArray(K);let Q=J?K.slice().sort(b):[K];Q=Q.map((e=>null==e?O:(0,h.A)(e,O,c)));const ee=!0===l&&null!==D?[...Array(Math.floor((c-O)/D)+1)].map(((e,t)=>({value:O+D*t}))):l||[],te=ee.map((e=>e.value)),{isFocusVisibleRef:ne,onBlur:re,onFocus:ie,ref:oe}=(0,p.A)(),[ae,se]=o.useState(-1),le=o.useRef(),ce=(0,f.A)(oe,le),ue=(0,f.A)(j,ce),de=e=>t=>{var n;const r=Number(t.currentTarget.getAttribute("data-index"));ie(t),!0===ne.current&&se(r),W(r),null==e||null==(n=e.onFocus)||n.call(e,t)},he=e=>t=>{var n;re(t),!1===ne.current&&se(-1),W(-1),null==e||null==(n=e.onBlur)||n.call(e,t)},pe=(e,t)=>{const n=Number(e.currentTarget.getAttribute("data-index")),r=Q[n],i=te.indexOf(r);let o=t;if(ee&&null==D){const e=te[te.length-1];o=o>e?e:ot=>{var n;if(null!==D){const e=Number(t.currentTarget.getAttribute("data-index")),n=Q[e];let r=null;("ArrowLeft"===t.key||"ArrowDown"===t.key)&&t.shiftKey||"PageDown"===t.key?r=Math.max(n-N,O):(("ArrowRight"===t.key||"ArrowUp"===t.key)&&t.shiftKey||"PageUp"===t.key)&&(r=Math.min(n+N,c)),null!==r&&(pe(t,r),t.preventDefault())}null==e||null==(n=e.onKeyDown)||n.call(e,t)};(0,g.A)((()=>{var e;r&&le.current.contains(document.activeElement)&&(null==(e=document.activeElement)||e.blur())}),[r]),r&&-1!==$&&G(-1),r&&-1!==ae&&se(-1);const ge=o.useRef();let me=R;s&&"horizontal"===R&&(me+="-reverse");const ye=({finger:e,move:t=!1})=>{const{current:n}=le,{width:r,height:i,bottom:o,left:s}=n.getBoundingClientRect();let l,u;if(l=0===me.indexOf("vertical")?(o-e.y)/i:(e.x-s)/r,-1!==me.indexOf("-reverse")&&(l=1-l),u=function(e,t,n){return(n-t)*e+t}(l,O,c),D)u=S(u,D,O);else{const e=w(te,u);u=te[e]}u=(0,h.A)(u,O,c);let d=0;if(J){d=t?ge.current:w(Q,u),a&&(u=(0,h.A)(u,Q[d-1]||-1/0,Q[d+1]||1/0));const e=u;u=C({values:Q,newValue:u,index:d}),a&&t||(d=u.indexOf(e),ge.current=d)}return{newValue:u,activeIndex:d}},ve=(0,m.A)((e=>{const t=x(e,B);if(!t)return;if(Y.current+=1,"mousemove"===e.type&&0===e.buttons)return void be(e);const{newValue:n,activeIndex:r}=ye({finger:t,move:!0});E({sliderRef:le,activeIndex:r,setActive:G}),X(n),!q&&Y.current>2&&H(!0),Z&&!_(n,K)&&Z(e,n,r)})),be=(0,m.A)((e=>{const t=x(e,B);if(H(!1),!t)return;const{newValue:n}=ye({finger:t,move:!0});G(-1),"touchend"===e.type&&W(-1),L&&L(e,n),B.current=void 0,xe()})),we=(0,m.A)((e=>{if(r)return;P()||e.preventDefault();const t=e.changedTouches[0];null!=t&&(B.current=t.identifier);const n=x(e,B);if(!1!==n){const{newValue:t,activeIndex:r}=ye({finger:n});E({sliderRef:le,activeIndex:r,setActive:G}),X(t),Z&&!_(t,K)&&Z(e,t,r)}Y.current=0;const i=(0,u.A)(le.current);i.addEventListener("touchmove",ve,{passive:!0}),i.addEventListener("touchend",be,{passive:!0})})),xe=o.useCallback((()=>{const e=(0,u.A)(le.current);e.removeEventListener("mousemove",ve),e.removeEventListener("mouseup",be),e.removeEventListener("touchmove",ve),e.removeEventListener("touchend",be)}),[be,ve]);o.useEffect((()=>{const{current:e}=le;return e.addEventListener("touchstart",we,{passive:P()}),()=>{e.removeEventListener("touchstart",we),xe()}}),[xe,we]),o.useEffect((()=>{r&&xe()}),[r,xe]);const Ae=A(J?Q[0]:O,O,c),Se=A(Q[Q.length-1],O,c)-Ae,Ce=e=>t=>{var n;null==(n=e.onMouseLeave)||n.call(e,t),W(-1)};return{active:$,axis:me,axisProps:k,dragging:q,focusedThumbIndex:ae,getHiddenInputProps:(n={})=>{var o;const a=(0,v.h)(n),l={onChange:(u=a||{},e=>{var t;null==(t=u.onChange)||t.call(u,e),pe(e,e.target.valueAsNumber)}),onFocus:de(a||{}),onBlur:he(a||{}),onKeyDown:fe(a||{})};var u;const d=(0,i.A)({},a,l);return(0,i.A)({tabIndex:z,"aria-labelledby":t,"aria-orientation":R,"aria-valuemax":F(c),"aria-valuemin":F(O),name:I,type:"range",min:e.min,max:e.max,step:null===e.step&&e.marks?"any":null!=(o=e.step)?o:void 0,disabled:r},n,d,{style:(0,i.A)({},y,{direction:s?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:(e={})=>{const t=(0,v.h)(e),n={onMouseDown:(o=t||{},e=>{var t;if(null==(t=o.onMouseDown)||t.call(o,e),r)return;if(e.defaultPrevented)return;if(0!==e.button)return;e.preventDefault();const n=x(e,B);if(!1!==n){const{newValue:t,activeIndex:r}=ye({finger:n});E({sliderRef:le,activeIndex:r,setActive:G}),X(t),Z&&!_(t,K)&&Z(e,t,r)}Y.current=0;const i=(0,u.A)(le.current);i.addEventListener("mousemove",ve,{passive:!0}),i.addEventListener("mouseup",be)})};var o;const a=(0,i.A)({},t,n);return(0,i.A)({},e,{ref:ue},a)},getThumbProps:(e={})=>{const t=(0,v.h)(e),n={onMouseOver:(r=t||{},e=>{var t;null==(t=r.onMouseOver)||t.call(r,e);const n=Number(e.currentTarget.getAttribute("data-index"));W(n)}),onMouseLeave:Ce(t||{})};var r;return(0,i.A)({},e,t,n)},marks:ee,open:U,range:J,rootRef:ue,trackLeap:Se,trackOffset:Ae,values:Q,getThumbStyle:e=>({pointerEvents:-1!==$&&$!==e?"none":void 0})}}var M=n(59015),L=n(39160),R=n(99191),j=n(58990),F=n(57088);const D=e=>!e||!(0,l.g)(e);var N=n(19508),z=n(5007),V=n(24115);function B(e){return(0,V.Ay)("MuiSlider",e)}const $=(0,z.A)("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]);var G=n(97282);const U=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","shiftStep","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"],W=(0,R.h)("MuiSlider");function q(e){return e}const H=(0,j.Ay)("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${(0,N.A)(n.color)}`],"medium"!==n.size&&t[`size${(0,N.A)(n.size)}`],n.marked&&t.marked,"vertical"===n.orientation&&t.vertical,"inverted"===n.track&&t.trackInverted,!1===n.track&&t.trackFalse]}})((({theme:e})=>{var t;return{borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${$.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${$.dragging}`]:{[`& .${$.thumb}, & .${$.track}`]:{transition:"none"}},variants:[...Object.keys((null!=(t=e.vars)?t:e).palette).filter((t=>{var n;return(null!=(n=e.vars)?n:e).palette[t].main})).map((t=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}})),Y=(0,j.Ay)("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),K=(0,j.Ay)("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})((({theme:e})=>{var t;return{display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.keys((null!=(t=e.vars)?t:e).palette).filter((t=>{var n;return(null!=(n=e.vars)?n:e).palette[t].main})).map((t=>({props:{color:t,track:"inverted"},style:(0,i.A)({},e.vars?{backgroundColor:e.vars.palette.Slider[`${t}Track`],borderColor:e.vars.palette.Slider[`${t}Track`]}:(0,i.A)({backgroundColor:(0,M.a)(e.palette[t].main,.62),borderColor:(0,M.a)(e.palette[t].main,.62)},e.applyStyles("dark",{backgroundColor:(0,M.e$)(e.palette[t].main,.5)}),e.applyStyles("dark",{borderColor:(0,M.e$)(e.palette[t].main,.5)})))})))]}})),X=(0,j.Ay)("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${(0,N.A)(n.color)}`],"medium"!==n.size&&t[`thumbSize${(0,N.A)(n.size)}`]]}})((({theme:e})=>{var t;return{position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${$.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.keys((null!=(t=e.vars)?t:e).palette).filter((t=>{var n;return(null!=(n=e.vars)?n:e).palette[t].main})).map((t=>({props:{color:t},style:{[`&:hover, &.${$.focusVisible}`]:(0,i.A)({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[t].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${(0,M.X4)(e.palette[t].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${$.active}`]:(0,i.A)({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[t].mainChannel} / 0.16)}`}:{boxShadow:`0px 0px 0px 14px ${(0,M.X4)(e.palette[t].main,.16)}`})}})))]}})),Z=(0,j.Ay)((function(e){const{children:t,className:n,value:r}=e,i=(e=>{const{open:t}=e;return{offset:(0,a.A)(t&&$.valueLabelOpen),circle:$.valueLabelCircle,label:$.valueLabelLabel}})(e);return t?o.cloneElement(t,{className:(0,a.A)(t.props.className)},(0,G.jsxs)(o.Fragment,{children:[t.props.children,(0,G.jsx)("span",{className:(0,a.A)(i.offset,n),"aria-hidden":!0,children:(0,G.jsx)("span",{className:i.circle,children:(0,G.jsx)("span",{className:i.label,children:r})})})]})):null}),{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})((({theme:e})=>(0,i.A)({zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${$.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${$.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]}))),J=(0,j.Ay)("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>(0,F.A)(e)&&"markActive"!==e,overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})((({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]}))),Q=(0,j.Ay)("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>(0,F.A)(e)&&"markLabelActive"!==e,overridesResolver:(e,t)=>t.markLabel})((({theme:e})=>(0,i.A)({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]}))),ee=({children:e})=>e,te=o.forwardRef((function(e,t){var n,u,d,h,p,f,g,m,y,v,b,w,x,S,C,E,_,k,T,O,P,M,R,j;const F=W({props:e,name:"MuiSlider"}),z=(0,L.I)(),{"aria-label":V,"aria-valuetext":$,"aria-labelledby":te,component:ne="span",components:re={},componentsProps:ie={},color:oe="primary",classes:ae,className:se,disableSwap:le=!1,disabled:ce=!1,getAriaLabel:ue,getAriaValueText:de,marks:he=!1,max:pe=100,min:fe=0,orientation:ge="horizontal",shiftStep:me=10,size:ye="medium",step:ve=1,scale:be=q,slotProps:we,slots:xe,track:Ae="normal",valueLabelDisplay:Se="off",valueLabelFormat:Ce=q}=F,Ee=(0,r.A)(F,U),_e=(0,i.A)({},F,{isRtl:z,max:pe,min:fe,classes:ae,disabled:ce,disableSwap:le,orientation:ge,marks:he,color:oe,size:ye,step:ve,shiftStep:me,scale:be,track:Ae,valueLabelDisplay:Se,valueLabelFormat:Ce}),{axisProps:ke,getRootProps:Te,getHiddenInputProps:Oe,getThumbProps:Pe,open:Ie,active:Me,axis:Le,focusedThumbIndex:Re,range:je,dragging:Fe,marks:De,values:Ne,trackOffset:ze,trackLeap:Ve,getThumbStyle:Be}=I((0,i.A)({},_e,{rootRef:t}));_e.marked=De.length>0&&De.some((e=>e.label)),_e.dragging=Fe,_e.focusedThumbIndex=Re;const $e=(e=>{const{disabled:t,dragging:n,marked:r,orientation:i,track:o,classes:a,color:s,size:l}=e,u={root:["root",t&&"disabled",n&&"dragging",r&&"marked","vertical"===i&&"vertical","inverted"===o&&"trackInverted",!1===o&&"trackFalse",s&&`color${(0,N.A)(s)}`,l&&`size${(0,N.A)(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${(0,N.A)(l)}`,s&&`thumbColor${(0,N.A)(s)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return(0,c.A)(u,B,a)})(_e),Ge=null!=(n=null!=(u=null==xe?void 0:xe.root)?u:re.Root)?n:H,Ue=null!=(d=null!=(h=null==xe?void 0:xe.rail)?h:re.Rail)?d:Y,We=null!=(p=null!=(f=null==xe?void 0:xe.track)?f:re.Track)?p:K,qe=null!=(g=null!=(m=null==xe?void 0:xe.thumb)?m:re.Thumb)?g:X,He=null!=(y=null!=(v=null==xe?void 0:xe.valueLabel)?v:re.ValueLabel)?y:Z,Ye=null!=(b=null!=(w=null==xe?void 0:xe.mark)?w:re.Mark)?b:J,Ke=null!=(x=null!=(S=null==xe?void 0:xe.markLabel)?S:re.MarkLabel)?x:Q,Xe=null!=(C=null!=(E=null==xe?void 0:xe.input)?E:re.Input)?C:"input",Ze=null!=(_=null==we?void 0:we.root)?_:ie.root,Je=null!=(k=null==we?void 0:we.rail)?k:ie.rail,Qe=null!=(T=null==we?void 0:we.track)?T:ie.track,et=null!=(O=null==we?void 0:we.thumb)?O:ie.thumb,tt=null!=(P=null==we?void 0:we.valueLabel)?P:ie.valueLabel,nt=null!=(M=null==we?void 0:we.mark)?M:ie.mark,rt=null!=(R=null==we?void 0:we.markLabel)?R:ie.markLabel,it=null!=(j=null==we?void 0:we.input)?j:ie.input,ot=(0,s.Q)({elementType:Ge,getSlotProps:Te,externalSlotProps:Ze,externalForwardedProps:Ee,additionalProps:(0,i.A)({},D(Ge)&&{as:ne}),ownerState:(0,i.A)({},_e,null==Ze?void 0:Ze.ownerState),className:[$e.root,se]}),at=(0,s.Q)({elementType:Ue,externalSlotProps:Je,ownerState:_e,className:$e.rail}),st=(0,s.Q)({elementType:We,externalSlotProps:Qe,additionalProps:{style:(0,i.A)({},ke[Le].offset(ze),ke[Le].leap(Ve))},ownerState:(0,i.A)({},_e,null==Qe?void 0:Qe.ownerState),className:$e.track}),lt=(0,s.Q)({elementType:qe,getSlotProps:Pe,externalSlotProps:et,ownerState:(0,i.A)({},_e,null==et?void 0:et.ownerState),className:$e.thumb}),ct=(0,s.Q)({elementType:He,externalSlotProps:tt,ownerState:(0,i.A)({},_e,null==tt?void 0:tt.ownerState),className:$e.valueLabel}),ut=(0,s.Q)({elementType:Ye,externalSlotProps:nt,ownerState:_e,className:$e.mark}),dt=(0,s.Q)({elementType:Ke,externalSlotProps:rt,ownerState:_e,className:$e.markLabel}),ht=(0,s.Q)({elementType:Xe,getSlotProps:Oe,externalSlotProps:it,ownerState:_e});return(0,G.jsxs)(Ge,(0,i.A)({},ot,{children:[(0,G.jsx)(Ue,(0,i.A)({},at)),(0,G.jsx)(We,(0,i.A)({},st)),De.filter((e=>e.value>=fe&&e.value<=pe)).map(((e,t)=>{const n=A(e.value,fe,pe),r=ke[Le].offset(n);let s;return s=!1===Ae?-1!==Ne.indexOf(e.value):"normal"===Ae&&(je?e.value>=Ne[0]&&e.value<=Ne[Ne.length-1]:e.value<=Ne[0])||"inverted"===Ae&&(je?e.value<=Ne[0]||e.value>=Ne[Ne.length-1]:e.value>=Ne[0]),(0,G.jsxs)(o.Fragment,{children:[(0,G.jsx)(Ye,(0,i.A)({"data-index":t},ut,!(0,l.g)(Ye)&&{markActive:s},{style:(0,i.A)({},r,ut.style),className:(0,a.A)(ut.className,s&&$e.markActive)})),null!=e.label?(0,G.jsx)(Ke,(0,i.A)({"aria-hidden":!0,"data-index":t},dt,!(0,l.g)(Ke)&&{markLabelActive:s},{style:(0,i.A)({},r,dt.style),className:(0,a.A)($e.markLabel,dt.className,s&&$e.markLabelActive),children:e.label})):null]},t)})),Ne.map(((e,t)=>{const n=A(e,fe,pe),r=ke[Le].offset(n),o="off"===Se?ee:He;return(0,G.jsx)(o,(0,i.A)({},!(0,l.g)(o)&&{valueLabelFormat:Ce,valueLabelDisplay:Se,value:"function"==typeof Ce?Ce(be(e),t):Ce,index:t,open:Ie===t||Me===t||"on"===Se,disabled:ce},ct,{children:(0,G.jsx)(qe,(0,i.A)({"data-index":t},lt,{className:(0,a.A)($e.thumb,lt.className,Me===t&&$e.active,Re===t&&$e.focusVisible),style:(0,i.A)({},r,Be(t),lt.style),children:(0,G.jsx)(Xe,(0,i.A)({"data-index":t,"aria-label":ue?ue(t):V,"aria-valuenow":be(e),"aria-labelledby":te,"aria-valuetext":de?de(be(e),t):$,value:Ne[t]},ht))}))}),t)}))]}))})),ne=te},41019:(e,t,n)=>{"use strict";n.d(t,{A:()=>v});var r=n(51559),i=n(73342),o=n(30538),a=n(87286),s=n(32829),l=n(19508),c=n(87507),u=n(58990),d=n(5007),h=n(24115);function p(e){return(0,h.Ay)("MuiSvgIcon",e)}(0,d.A)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var f=n(97282);const g=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],m=(0,u.Ay)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${(0,l.A)(n.color)}`],t[`fontSize${(0,l.A)(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,i,o,a,s,l,c,u,d,h,p,f;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(i=e.transitions)||null==(i=i.duration)?void 0:i.shorter}),fontSize:{inherit:"inherit",small:(null==(o=e.typography)||null==(a=o.pxToRem)?void 0:a.call(o,20))||"1.25rem",medium:(null==(s=e.typography)||null==(l=s.pxToRem)?void 0:l.call(s,24))||"1.5rem",large:(null==(c=e.typography)||null==(u=c.pxToRem)?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(h=(e.vars||e).palette)||null==(h=h[t.color])?void 0:h.main)?d:{action:null==(p=(e.vars||e).palette)||null==(p=p.action)?void 0:p.active,disabled:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.disabled,inherit:void 0}[t.color]}})),y=o.forwardRef((function(e,t){const n=(0,c.A)({props:e,name:"MuiSvgIcon"}),{children:u,className:d,color:h="inherit",component:y="svg",fontSize:v="medium",htmlColor:b,inheritViewBox:w=!1,titleAccess:x,viewBox:A="0 0 24 24"}=n,S=(0,i.A)(n,g),C=o.isValidElement(u)&&"svg"===u.type,E=(0,r.A)({},n,{color:h,component:y,fontSize:v,instanceFontSize:e.fontSize,inheritViewBox:w,viewBox:A,hasSvgAsChild:C}),_={};w||(_.viewBox=A);const k=(e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root","inherit"!==t&&`color${(0,l.A)(t)}`,`fontSize${(0,l.A)(n)}`]};return(0,s.A)(i,p,r)})(E);return(0,f.jsxs)(m,(0,r.A)({as:y,className:(0,a.A)(k.root,d),focusable:"false",color:b,"aria-hidden":!x||void 0,role:x?"img":void 0,ref:t},_,S,C&&u.props,{ownerState:E,children:[C?u.props.children:u,x?(0,f.jsx)("title",{children:x}):null]}))}));y.muiName="SvgIcon";const v=y},68599:(e,t,n)=>{"use strict";n.d(t,{A:()=>C});var r=n(73342),i=n(51559),o=n(30538),a=n(87286),s=n(32829),l=n(59015),c=n(19508),u=n(15230),d=n(99191),h=n(58990),p=n(5007),f=n(24115);function g(e){return(0,f.Ay)("MuiSwitch",e)}const m=(0,p.A)("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]);var y=n(97282);const v=["className","color","edge","size","sx"],b=(0,d.h)("MuiSwitch"),w=(0,h.Ay)("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${(0,c.A)(n.edge)}`],t[`size${(0,c.A)(n.size)}`]]}})({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${m.thumb}`]:{width:16,height:16},[`& .${m.switchBase}`]:{padding:4,[`&.${m.checked}`]:{transform:"translateX(16px)"}}}}]}),x=(0,h.Ay)(u.A,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${m.input}`]:t.input},"default"!==n.color&&t[`color${(0,c.A)(n.color)}`]]}})((({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${"light"===e.palette.mode?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${m.checked}`]:{transform:"translateX(20px)"},[`&.${m.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${"light"===e.palette.mode?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${m.checked} + .${m.track}`]:{opacity:.5},[`&.${m.disabled} + .${m.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:""+("light"===e.palette.mode?.12:.2)},[`& .${m.input}`]:{left:"-100%",width:"300%"}})),(({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,l.X4)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter((([,e])=>e.main&&e.light)).map((([t])=>({props:{color:t},style:{[`&.${m.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,l.X4)(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${m.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${"light"===e.palette.mode?(0,l.a)(e.palette[t].main,.62):(0,l.e$)(e.palette[t].main,.55)}`}},[`&.${m.checked} + .${m.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}})))]}))),A=(0,h.Ay)("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})((({theme:e})=>({height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${"light"===e.palette.mode?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:""+("light"===e.palette.mode?.38:.3)}))),S=(0,h.Ay)("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})((({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),C=o.forwardRef((function(e,t){const n=b({props:e,name:"MuiSwitch"}),{className:o,color:l="primary",edge:u=!1,size:d="medium",sx:h}=n,p=(0,r.A)(n,v),f=(0,i.A)({},n,{color:l,edge:u,size:d}),m=(e=>{const{classes:t,edge:n,size:r,color:o,checked:a,disabled:l}=e,u={root:["root",n&&`edge${(0,c.A)(n)}`,`size${(0,c.A)(r)}`],switchBase:["switchBase",`color${(0,c.A)(o)}`,a&&"checked",l&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},d=(0,s.A)(u,g,t);return(0,i.A)({},t,d)})(f),C=(0,y.jsx)(S,{className:m.thumb,ownerState:f});return(0,y.jsxs)(w,{className:(0,a.A)(m.root,o),sx:h,ownerState:f,children:[(0,y.jsx)(x,(0,i.A)({type:"checkbox",icon:C,checkedIcon:C,ref:t,ownerState:f},p,{classes:(0,i.A)({},m,{root:m.switchBase})})),(0,y.jsx)(A,{className:m.track,ownerState:f})]})}))},91031:(e,t,n)=>{"use strict";n.d(t,{A:()=>w});var r=n(73342),i=n(51559),o=n(30538),a=n(87286),s=n(25779),l=n(32829),c=n(58990),u=n(87507),d=n(19508),h=n(5007),p=n(24115);function f(e){return(0,p.Ay)("MuiTypography",e)}(0,h.A)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);var g=n(97282);const m=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],y=(0,c.Ay)("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${(0,d.A)(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>(0,i.A)({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),v={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},b={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},w=o.forwardRef((function(e,t){const n=(0,u.A)({props:e,name:"MuiTypography"}),o=(e=>b[e]||e)(n.color),c=(0,s.A)((0,i.A)({},n,{color:o})),{align:h="inherit",className:p,component:w,gutterBottom:x=!1,noWrap:A=!1,paragraph:S=!1,variant:C="body1",variantMapping:E=v}=c,_=(0,r.A)(c,m),k=(0,i.A)({},c,{align:h,color:o,className:p,component:w,gutterBottom:x,noWrap:A,paragraph:S,variant:C,variantMapping:E}),T=w||(S?"p":E[C]||v[C])||"span",O=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:o,classes:a}=e,s={root:["root",o,"inherit"!==e.align&&`align${(0,d.A)(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return(0,l.A)(s,f,a)})(k);return(0,g.jsx)(y,(0,i.A)({as:T,ref:t,ownerState:k,className:(0,a.A)(O.root,p)},_))}))},15230:(e,t,n)=>{"use strict";n.d(t,{A:()=>x});var r=n(73342),i=n(51559),o=n(30538),a=n(87286),s=n(32829),l=n(19508),c=n(58990),u=n(49968),d=n(58245),h=n(39230),p=n(92004),f=n(5007),g=n(24115);function m(e){return(0,g.Ay)("PrivateSwitchBase",e)}(0,f.A)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);var y=n(97282);const v=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],b=(0,c.Ay)(p.A)((({ownerState:e})=>(0,i.A)({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12}))),w=(0,c.Ay)("input",{shouldForwardProp:u.A})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),x=o.forwardRef((function(e,t){const{autoFocus:n,checked:o,checkedIcon:c,className:u,defaultChecked:p,disabled:f,disableFocusRipple:g=!1,edge:x=!1,icon:A,id:S,inputProps:C,inputRef:E,name:_,onBlur:k,onChange:T,onFocus:O,readOnly:P,required:I=!1,tabIndex:M,type:L,value:R}=e,j=(0,r.A)(e,v),[F,D]=(0,d.A)({controlled:o,default:Boolean(p),name:"SwitchBase",state:"checked"}),N=(0,h.A)();let z=f;N&&void 0===z&&(z=N.disabled);const V="checkbox"===L||"radio"===L,B=(0,i.A)({},e,{checked:F,disabled:z,disableFocusRipple:g,edge:x}),$=(e=>{const{classes:t,checked:n,disabled:r,edge:i}=e,o={root:["root",n&&"checked",r&&"disabled",i&&`edge${(0,l.A)(i)}`],input:["input"]};return(0,s.A)(o,m,t)})(B);return(0,y.jsxs)(b,(0,i.A)({component:"span",className:(0,a.A)($.root,u),centerRipple:!0,focusRipple:!g,disabled:z,tabIndex:null,role:void 0,onFocus:e=>{O&&O(e),N&&N.onFocus&&N.onFocus(e)},onBlur:e=>{k&&k(e),N&&N.onBlur&&N.onBlur(e)},ownerState:B,ref:t},j,{children:[(0,y.jsx)(w,(0,i.A)({autoFocus:n,checked:o,defaultChecked:p,className:$.input,disabled:z,id:V?S:void 0,name:_,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;D(t),T&&T(e,t)},readOnly:P,ref:E,required:I,ownerState:B,tabIndex:M,type:L},"checkbox"===L&&void 0===R?{}:{value:R},C)),F?c:A]}))}))},69216:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});n(30538);var r=n(65127),i=n(97282);const o=(0,r.A)((0,i.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown")},333:(e,t,n)=>{"use strict";n.d(t,{A:()=>b});var r=n(51559),i=n(73342),o=n(30538),a=n(35403),s=n(67139),l=n(5050),c=n(97282);const u=function(e){const{children:t,theme:n}=e,i=(0,a.A)(),u=o.useMemo((()=>{const e=null===i?n:function(e,t){if("function"==typeof t)return t(e);return(0,r.A)({},e,t)}(i,n);return null!=e&&(e[l.A]=null!==i),e}),[n,i]);return(0,c.jsx)(s.A.Provider,{value:u,children:t})};var d=n(18321),h=n(80187),p=n(39160);const f={};function g(e,t,n,i=!1){return o.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof n){const a=n(o),s=e?(0,r.A)({},t,{[e]:a}):a;return i?()=>s:s}return e?(0,r.A)({},t,{[e]:n}):(0,r.A)({},t,n)}),[e,t,n,i])}const m=function(e){const{children:t,theme:n,themeId:r}=e,i=(0,h.A)(f),o=(0,a.A)()||f,s=g(r,i,n),l=g(r,o,n,!0),m="rtl"===s.direction;return(0,c.jsx)(u,{theme:l,children:(0,c.jsx)(d.T.Provider,{value:s,children:(0,c.jsx)(p.A,{value:m,children:t})})})};var y=n(38358);const v=["theme"];function b(e){let{theme:t}=e,n=(0,i.A)(e,v);const o=t[y.A];return(0,c.jsx)(m,(0,r.A)({},n,{themeId:o?y.A:void 0,theme:o||t}))}},76014:(e,t,n)=>{"use strict";n.d(t,{A:()=>R});var r=n(51559),i=n(73342),o=n(88207),a=n(43271),s=n(6856),l=n(22311),c=n(84657);var u=n(59015);const d={black:"#000",white:"#fff"},h={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},p={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},f={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},g={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},m={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},y={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},v={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},b=["mode","contrastThreshold","tonalOffset"],w={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:d.white,default:d.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},x={text:{primary:d.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:d.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function A(e,t,n,r){const i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,u.a)(e.main,i):"dark"===t&&(e.dark=(0,u.e$)(e.main,o)))}function S(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:s=.2}=e,l=(0,i.A)(e,b),c=e.primary||function(e="light"){return"dark"===e?{main:m[200],light:m[50],dark:m[400]}:{main:m[700],light:m[400],dark:m[800]}}(t),S=e.secondary||function(e="light"){return"dark"===e?{main:p[200],light:p[50],dark:p[400]}:{main:p[500],light:p[300],dark:p[700]}}(t),C=e.error||function(e="light"){return"dark"===e?{main:f[500],light:f[300],dark:f[700]}:{main:f[700],light:f[400],dark:f[800]}}(t),E=e.info||function(e="light"){return"dark"===e?{main:y[400],light:y[300],dark:y[700]}:{main:y[700],light:y[500],dark:y[900]}}(t),_=e.success||function(e="light"){return"dark"===e?{main:v[400],light:v[300],dark:v[700]}:{main:v[800],light:v[500],dark:v[900]}}(t),k=e.warning||function(e="light"){return"dark"===e?{main:g[400],light:g[300],dark:g[700]}:{main:"#ed6c02",light:g[500],dark:g[900]}}(t);function T(e){return(0,u.eM)(e,x.text.primary)>=n?x.text.primary:w.text.primary}const O=({color:e,name:t,mainShade:n=500,lightShade:i=300,darkShade:a=700})=>{if(!(e=(0,r.A)({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error((0,o.A)(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error((0,o.A)(12,t?` (${t})`:"",JSON.stringify(e.main)));return A(e,"light",i,s),A(e,"dark",a,s),e.contrastText||(e.contrastText=T(e.main)),e},P={dark:x,light:w};return(0,a.A)((0,r.A)({common:(0,r.A)({},d),mode:t,primary:O({color:c,name:"primary"}),secondary:O({color:S,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:O({color:C,name:"error"}),warning:O({color:k,name:"warning"}),info:O({color:E,name:"info"}),success:O({color:_,name:"success"}),grey:h,contrastThreshold:n,getContrastText:T,augmentColor:O,tonalOffset:s},P[t]),l)}const C=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const E={textTransform:"uppercase"},_='"Roboto", "Helvetica", "Arial", sans-serif';function k(e,t){const n="function"==typeof t?t(e):t,{fontFamily:o=_,fontSize:s=14,fontWeightLight:l=300,fontWeightRegular:c=400,fontWeightMedium:u=500,fontWeightBold:d=700,htmlFontSize:h=16,allVariants:p,pxToRem:f}=n,g=(0,i.A)(n,C);const m=s/14,y=f||(e=>e/h*m+"rem"),v=(e,t,n,i,a)=>{return(0,r.A)({fontFamily:o,fontWeight:e,fontSize:y(t),lineHeight:n},o===_?{letterSpacing:(s=i/t,Math.round(1e5*s)/1e5)+"em"}:{},a,p);var s},b={h1:v(l,96,1.167,-1.5),h2:v(l,60,1.2,-.5),h3:v(c,48,1.167,0),h4:v(c,34,1.235,.25),h5:v(c,24,1.334,0),h6:v(u,20,1.6,.15),subtitle1:v(c,16,1.75,.15),subtitle2:v(u,14,1.57,.1),body1:v(c,16,1.5,.15),body2:v(c,14,1.43,.15),button:v(u,14,1.75,.4,E),caption:v(c,12,1.66,.4),overline:v(c,12,2.66,1,E),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return(0,a.A)((0,r.A)({htmlFontSize:h,pxToRem:y,fontFamily:o,fontSize:s,fontWeightLight:l,fontWeightRegular:c,fontWeightMedium:u,fontWeightBold:d},b),g,{clone:!1})}function T(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const O=["none",T(0,2,1,-1,0,1,1,0,0,1,3,0),T(0,3,1,-2,0,2,2,0,0,1,5,0),T(0,3,3,-2,0,3,4,0,0,1,8,0),T(0,2,4,-1,0,4,5,0,0,1,10,0),T(0,3,5,-1,0,5,8,0,0,1,14,0),T(0,3,5,-1,0,6,10,0,0,1,18,0),T(0,4,5,-2,0,7,10,1,0,2,16,1),T(0,5,5,-3,0,8,10,1,0,3,14,2),T(0,5,6,-3,0,9,12,1,0,3,16,2),T(0,6,6,-3,0,10,14,1,0,4,18,3),T(0,6,7,-4,0,11,15,1,0,4,20,3),T(0,7,8,-4,0,12,17,2,0,5,22,4),T(0,7,8,-4,0,13,19,2,0,5,24,4),T(0,7,9,-4,0,14,21,2,0,5,26,4),T(0,8,9,-5,0,15,22,2,0,6,28,5),T(0,8,10,-5,0,16,24,2,0,6,30,5),T(0,8,11,-5,0,17,26,2,0,6,32,5),T(0,9,11,-5,0,18,28,2,0,7,34,6),T(0,9,12,-6,0,19,29,2,0,7,36,6),T(0,10,13,-6,0,20,31,3,0,8,38,7),T(0,10,13,-6,0,21,33,3,0,8,40,7),T(0,10,14,-6,0,22,35,3,0,8,42,7),T(0,11,14,-7,0,23,36,3,0,9,44,8),T(0,11,15,-7,0,24,38,3,0,9,46,8)];var P=n(2297);const I={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},M=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function L(e={},...t){const{mixins:n={},palette:u={},transitions:d={},typography:h={}}=e,p=(0,i.A)(e,M);if(e.vars)throw new Error((0,o.A)(18));const f=S(u),g=(0,c.A)(e);let m=(0,a.A)(g,{mixins:(y=g.breakpoints,v=n,(0,r.A)({toolbar:{minHeight:56,[y.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[y.up("sm")]:{minHeight:64}}},v)),palette:f,shadows:O.slice(),typography:k(f,h),transitions:(0,P.Ay)(d),zIndex:(0,r.A)({},I)});var y,v;return m=(0,a.A)(m,p),m=t.reduce(((e,t)=>(0,a.A)(e,t)),m),m.unstable_sxConfig=(0,r.A)({},s.A,null==p?void 0:p.unstable_sxConfig),m.unstable_sx=function(e){return(0,l.A)({sx:e,theme:this})},m}const R=L},2297:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>u,p0:()=>s});var r=n(73342),i=n(51559);const o=["duration","easing","delay"],a={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},s={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function l(e){return`${Math.round(e)}ms`}function c(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function u(e){const t=(0,i.A)({},a,e.easing),n=(0,i.A)({},s,e.duration);return(0,i.A)({getAutoHeightDuration:c,create:(e=["all"],i={})=>{const{duration:a=n.standard,easing:s=t.easeInOut,delay:c=0}=i;(0,r.A)(i,o);return(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof a?a:l(a)} ${s} ${"string"==typeof c?c:l(c)}`)).join(",")}},e,{easing:t,duration:n})}},75947:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(76014).A)()},38358:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r="$$material"},49968:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(57088);const i=e=>(0,r.A)(e)&&"classes"!==e},57088:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}},58990:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s});var r=n(15841),i=n(75947),o=n(38358),a=n(49968);const s=(0,r.Ay)({themeId:o.A,defaultTheme:i.A,rootShouldForwardProp:a.A})},94145:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});n(30538);var r=n(38382),i=n(75947),o=n(38358);function a(){const e=(0,r.A)(i.A);return e[o.A]||e}},87507:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(92775),i=n(75947),o=n(38358);function a({props:e,name:t}){return(0,r.A)({props:e,name:t,defaultTheme:i.A,themeId:o.A})}},19508:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(2681).A},17416:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(96339).A},65127:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(51559),i=n(30538),o=n(41019),a=n(97282);function s(e,t){function n(n,i){return(0,a.jsx)(o.A,(0,r.A)({"data-testid":`${t}Icon`,ref:i},n,{children:e}))}return n.muiName=o.A.muiName,i.memo(i.forwardRef(n))}},44545:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(6995).A},90202:(e,t,n)=>{"use strict";n.r(t),n.d(t,{capitalize:()=>i.A,createChainedFunction:()=>o.A,createSvgIcon:()=>a.A,debounce:()=>s.A,deprecatedPropType:()=>l,isMuiElement:()=>c.A,ownerDocument:()=>u.A,ownerWindow:()=>d.A,requirePropFactory:()=>h,setRef:()=>p,unstable_ClassNameGenerator:()=>x,unstable_useEnhancedEffect:()=>f.A,unstable_useId:()=>g.A,unsupportedProp:()=>m,useControlled:()=>y.A,useEventCallback:()=>v.A,useForkRef:()=>b.A,useIsFocusVisible:()=>w.A});var r=n(58337),i=n(19508),o=n(17416),a=n(65127),s=n(44545);const l=function(e,t){return()=>null};var c=n(75361),u=n(8018),d=n(38579);n(51559);const h=function(e,t){return()=>null};const p=n(54175).A;var f=n(65420),g=n(35566);const m=function(e,t,n,r,i){return null};var y=n(58245),v=n(36064),b=n(47258),w=n(65741);const x={configure:e=>{r.A.configure(e)}}},75361:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(30538);const i=function(e,t){var n,i;return r.isValidElement(e)&&-1!==t.indexOf(null!=(n=e.type.muiName)?n:null==(i=e.type)||null==(i=i._payload)||null==(i=i.value)?void 0:i.muiName)}},8018:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(74311).A},38579:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(56023).A},58245:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(63095).A},65420:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(43107).A},36064:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(18605).A},47258:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(18029).A},35566:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(5391).A},65741:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(73499).A},99191:(e,t,n)=>{"use strict";n.d(t,{h:()=>i});var r=n(87507);function i(e){return r.A}},5050:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__"},67139:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(30538).createContext(null)},35403:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(30538),i=n(67139);function o(){return r.useContext(i.A)}},78790:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});n(30538);var r=n(5345),i=n(97282);function o(e){const{styles:t,defaultTheme:n={}}=e,o="function"==typeof t?e=>{return t(null==(r=e)||0===Object.keys(r).length?n:e);var r}:t;return(0,i.jsx)(r.mL,{styles:o})}},29224:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});n(30538);var r=n(18321),i=n(12347),o=n(97282);let a;function s(e){const{injectFirst:t,children:n}=e;return t&&a?(0,o.jsx)(r.C,{value:a,children:n}):n}"object"==typeof document&&(a=(0,i.A)({key:"css",prepend:!0}))},77753:(e,t,n)=>{"use strict";n.r(t),n.d(t,{GlobalStyles:()=>w.A,StyledEngineProvider:()=>b.A,ThemeContext:()=>l.T,css:()=>v.AH,default:()=>x,internal_processStyles:()=>A,keyframes:()=>v.i7});var r=n(51559),i=n(30538),o=n(48998),a=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,s=(0,o.A)((function(e){return a.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),l=n(18321),c=n(40106),u=n(93372),d=n(88946),h=s,p=function(e){return"theme"!==e},f=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?h:p},g=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},m=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return(0,c.SF)(t,n,r),(0,d.s)((function(){return(0,c.sk)(t,n,r)})),null},y=function e(t,n){var o,a,s=t.__emotion_real===t,d=s&&t.__emotion_base||t;void 0!==n&&(o=n.label,a=n.target);var h=g(t,n,s),p=h||f(d),y=!p("as");return function(){var v=arguments,b=s&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==o&&b.push("label:"+o+";"),null==v[0]||void 0===v[0].raw)b.push.apply(b,v);else{0,b.push(v[0][0]);for(var w=v.length,x=1;x{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}},59015:(e,t,n)=>{"use strict";var r=n(43501);t.X4=p,t.e$=f,t.tL=m,t.eM=function(e,t){const n=h(e),r=h(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},t.a=g;var i=r(n(25286)),o=r(n(76772));function a(e,t=0,n=1){return(0,o.default)(e,t,n)}function s(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function l(e){if(e.type)return e;if("#"===e.charAt(0))return l(s(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,i.default)(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error((0,i.default)(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}const c=e=>{const t=l(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};function u(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function d(e){e=l(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),a=(e,t=(e+n/30)%12)=>i-o*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const c=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",c.push(t[3])),u({type:s,values:c})}function h(e){let t="hsl"===(e=l(e)).type||"hsla"===e.type?l(d(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function p(e,t){return e=l(e),t=a(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,u(e)}function f(e,t){if(e=l(e),t=a(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return u(e)}function g(e,t){if(e=l(e),t=a(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return u(e)}function m(e,t=.15){return h(e)>.5?f(e,t):g(e,t)}},15841:(e,t,n)=>{"use strict";var r=n(43501);t.Ay=function(e={}){const{themeId:t,defaultTheme:n=g,rootShouldForwardProp:r=f,slotShouldForwardProp:l=f}=e,u=e=>(0,c.default)((0,i.default)({},e,{theme:y((0,i.default)({},e,{defaultTheme:n,themeId:t}))}));return u.__mui_systemSx=!0,(e,c={})=>{(0,a.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:d,slot:p,skipVariantsResolver:g,skipSx:w,overridesResolver:x=v(m(p))}=c,A=(0,o.default)(c,h),S=void 0!==g?g:p&&"Root"!==p&&"root"!==p||!1,C=w||!1;let E=f;"Root"===p||"root"===p?E=r:p?E=l:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(E=void 0);const _=(0,a.default)(e,(0,i.default)({shouldForwardProp:E,label:undefined},A)),k=e=>"function"==typeof e&&e.__emotion_real!==e||(0,s.isPlainObject)(e)?r=>b(e,(0,i.default)({},r,{theme:y({theme:r.theme,defaultTheme:n,themeId:t})})):e,T=(r,...o)=>{let a=k(r);const s=o?o.map(k):[];d&&x&&s.push((e=>{const r=y((0,i.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[d]||!r.components[d].styleOverrides)return null;const o=r.components[d].styleOverrides,a={};return Object.entries(o).forEach((([t,n])=>{a[t]=b(n,(0,i.default)({},e,{theme:r}))})),x(e,a)})),d&&!S&&s.push((e=>{var r;const o=y((0,i.default)({},e,{defaultTheme:n,themeId:t}));return b({variants:null==o||null==(r=o.components)||null==(r=r[d])?void 0:r.variants},(0,i.default)({},e,{theme:o}))})),C||s.push(u);const l=s.length-o.length;if(Array.isArray(r)&&l>0){const e=new Array(l).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const c=_(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return _.withConfig&&(T.withConfig=_.withConfig),T}};var i=r(n(52305)),o=r(n(16112)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=p(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(77753)),s=n(82629),l=(r(n(8295)),r(n(63526)),r(n(21050))),c=r(n(4725));const u=["ownerState"],d=["variants"],h=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(p=function(e){return e?n:t})(e)}function f(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const g=(0,l.default)(),m=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function y({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function v(e){return e?(t,n)=>n[e]:null}function b(e,t){let{ownerState:n}=t,r=(0,o.default)(t,u);const a="function"==typeof e?e((0,i.default)({ownerState:n},r)):e;if(Array.isArray(a))return a.flatMap((e=>b(e,(0,i.default)({ownerState:n},r))));if(a&&"object"==typeof a&&Array.isArray(a.variants)){const{variants:e=[]}=a;let t=(0,o.default)(a,d);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,i.default)({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,i.default)({ownerState:n},r,n)):e.style))})),t}return a}},39160:(e,t,n)=>{"use strict";n.d(t,{A:()=>u,I:()=>c});var r=n(51559),i=n(73342),o=n(30538),a=n(97282);const s=["value"],l=o.createContext();const c=()=>{const e=o.useContext(l);return null!=e&&e},u=function(e){let{value:t}=e,n=(0,i.A)(e,s);return(0,a.jsx)(l.Provider,(0,r.A)({value:null==t||t},n))}},63496:(e,t,n)=>{"use strict";n.d(t,{EU:()=>s,NI:()=>a,iZ:()=>c,kW:()=>u,vf:()=>l,zu:()=>i});var r=n(43271);const i={xs:0,sm:600,md:900,lg:1200,xl:1536},o={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${i[e]}px)`};function a(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||o;return t.reduce(((r,i,o)=>(r[e.up(e.keys[o])]=n(t[o]),r)),{})}if("object"==typeof t){const e=r.breakpoints||o;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||i).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function s(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}function l(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}function c(e,...t){const n=s(e),i=[n,...t].reduce(((e,t)=>(0,r.A)(e,t)),{});return l(Object.keys(n),i)}function u({values:e,breakpoints:t,base:n}){const r=n||function(e,t){if("object"!=typeof e)return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach(((t,r)=>{r{null!=e[t]&&(n[t]=!0)})),n}(e,t),i=Object.keys(r);if(0===i.length)return e;let o;return i.reduce(((t,n,r)=>(Array.isArray(e)?(t[n]=null!=e[r]?e[r]:e[o],o=r):"object"==typeof e?(t[n]=null!=e[n]?e[n]:e[o],o=n):t[n]=e,t)),{})}},41795:(e,t,n)=>{"use strict";n.d(t,{X4:()=>l,a:()=>u,e$:()=>c});var r=n(88207),i=n(75031);function o(e,t=0,n=1){return(0,i.A)(e,t,n)}function a(e){if(e.type)return e;if("#"===e.charAt(0))return a(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,r.A)(9,e));let i,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),i=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i))throw new Error((0,r.A)(10,i))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:i}}function s(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function l(e,t){return e=a(e),t=o(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,s(e)}function c(e,t){if(e=a(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return s(e)}function u(e,t){if(e=a(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return s(e)}},10380:(e,t,n)=>{"use strict";function r(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){const r=n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[r]:t}}return n.palette.mode===e?t:{}}n.d(t,{A:()=>r})},99314:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(73342),i=n(51559);const o=["values","unit","step"],a=e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>(0,i.A)({},e,{[t.key]:t.val})),{})};function s(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:s=5}=e,l=(0,r.A)(e,o),c=a(t),u=Object.keys(c);function d(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function h(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-s/100}${n})`}function p(e,r){const i=u.indexOf(r);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[u[i]]?t[u[i]]:r)-s/100}${n})`}return(0,i.A)({keys:u,values:c,up:d,down:h,between:p,only:function(e){return u.indexOf(e)+1{"use strict";n.d(t,{A:()=>p});var r=n(51559),i=n(73342),o=n(43271),a=n(99314);const s={borderRadius:4};var l=n(3820);var c=n(22311),u=n(6856),d=n(10380);const h=["breakpoints","palette","spacing","shape"];const p=function(e={},...t){const{breakpoints:n={},palette:p={},spacing:f,shape:g={}}=e,m=(0,i.A)(e,h),y=(0,a.A)(n),v=function(e=8){if(e.mui)return e;const t=(0,l.LX)({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}(f);let b=(0,o.A)({breakpoints:y,direction:"ltr",components:{},palette:(0,r.A)({mode:"light"},p),spacing:v,shape:(0,r.A)({},s,g)},m);return b.applyStyles=d.A,b=t.reduce(((e,t)=>(0,o.A)(e,t)),b),b.unstable_sxConfig=(0,r.A)({},u.A,null==m?void 0:m.unstable_sxConfig),b.unstable_sx=function(e){return(0,c.A)({sx:e,theme:this})},b}},21050:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A,private_createBreakpoints:()=>i.A,unstable_applyStyles:()=>o.A});var r=n(84657),i=n(99314),o=n(10380)},62648:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(43271);const i=function(e,t){return t?(0,r.A)(e,t,{clone:!1}):e}},3820:(e,t,n)=>{"use strict";n.d(t,{LX:()=>f,MA:()=>p,_W:()=>g,Lc:()=>v,Ms:()=>b});var r=n(63496),i=n(44197),o=n(62648);const a={m:"margin",p:"padding"},s={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},l={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},c=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!l[e])return[e];e=l[e]}const[t,n]=e.split(""),r=a[t],i=s[n]||"";return Array.isArray(i)?i.map((e=>r+e)):[r+i]})),u=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],d=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],h=[...u,...d];function p(e,t,n,r){var o;const a=null!=(o=(0,i.Yn)(e,t,!1))?o:n;return"number"==typeof a?e=>"string"==typeof e?e:a*e:Array.isArray(a)?e=>"string"==typeof e?e:a[e]:"function"==typeof a?a:()=>{}}function f(e){return p(e,"spacing",8)}function g(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function m(e,t,n,i){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=g(t,n),e)),{})}(c(n),i),a=e[n];return(0,r.NI)(e,a,o)}function y(e,t){const n=f(e.theme);return Object.keys(e).map((r=>m(e,t,r,n))).reduce(o.A,{})}function v(e){return y(e,u)}function b(e){return y(e,d)}function w(e){return y(e,h)}v.propTypes={},v.filterProps=u,b.propTypes={},b.filterProps=d,w.propTypes={},w.filterProps=h},44197:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s,BO:()=>a,Yn:()=>o});var r=n(2681),i=n(63496);function o(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function a(e,t,n,r=n){let i;return i="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:o(e,n)||r,t&&(i=t(i,r,e)),i}const s=function(e){const{prop:t,cssProperty:n=e.prop,themeKey:s,transform:l}=e,c=e=>{if(null==e[t])return null;const c=e[t],u=o(e.theme,s)||{};return(0,i.NI)(e,c,(e=>{let i=a(u,l,e);return e===i&&"string"==typeof e&&(i=a(u,l,`${t}${"default"===e?"":(0,r.A)(e)}`,e)),!1===n?i:{[n]:i}}))};return c.propTypes={},c.filterProps=[t],c}},6856:(e,t,n)=>{"use strict";n.d(t,{A:()=>R});var r=n(3820),i=n(44197),o=n(62648);const a=function(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?(0,o.A)(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n};var s=n(63496);function l(e){return"number"!=typeof e?e:`${e}px solid`}function c(e,t){return(0,i.Ay)({prop:e,themeKey:"borders",transform:t})}const u=c("border",l),d=c("borderTop",l),h=c("borderRight",l),p=c("borderBottom",l),f=c("borderLeft",l),g=c("borderColor"),m=c("borderTopColor"),y=c("borderRightColor"),v=c("borderBottomColor"),b=c("borderLeftColor"),w=c("outline",l),x=c("outlineColor"),A=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=(0,r.MA)(e.theme,"shape.borderRadius",4,"borderRadius"),n=e=>({borderRadius:(0,r._W)(t,e)});return(0,s.NI)(e,e.borderRadius,n)}return null};A.propTypes={},A.filterProps=["borderRadius"];a(u,d,h,p,f,g,m,y,v,b,A,w,x);const S=e=>{if(void 0!==e.gap&&null!==e.gap){const t=(0,r.MA)(e.theme,"spacing",8,"gap"),n=e=>({gap:(0,r._W)(t,e)});return(0,s.NI)(e,e.gap,n)}return null};S.propTypes={},S.filterProps=["gap"];const C=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=(0,r.MA)(e.theme,"spacing",8,"columnGap"),n=e=>({columnGap:(0,r._W)(t,e)});return(0,s.NI)(e,e.columnGap,n)}return null};C.propTypes={},C.filterProps=["columnGap"];const E=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=(0,r.MA)(e.theme,"spacing",8,"rowGap"),n=e=>({rowGap:(0,r._W)(t,e)});return(0,s.NI)(e,e.rowGap,n)}return null};E.propTypes={},E.filterProps=["rowGap"];a(S,C,E,(0,i.Ay)({prop:"gridColumn"}),(0,i.Ay)({prop:"gridRow"}),(0,i.Ay)({prop:"gridAutoFlow"}),(0,i.Ay)({prop:"gridAutoColumns"}),(0,i.Ay)({prop:"gridAutoRows"}),(0,i.Ay)({prop:"gridTemplateColumns"}),(0,i.Ay)({prop:"gridTemplateRows"}),(0,i.Ay)({prop:"gridTemplateAreas"}),(0,i.Ay)({prop:"gridArea"}));function _(e,t){return"grey"===t?t:e}a((0,i.Ay)({prop:"color",themeKey:"palette",transform:_}),(0,i.Ay)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:_}),(0,i.Ay)({prop:"backgroundColor",themeKey:"palette",transform:_}));function k(e){return e<=1&&0!==e?100*e+"%":e}const T=(0,i.Ay)({prop:"width",transform:k}),O=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const i=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||s.zu[t];return i?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:k(t)}};return(0,s.NI)(e,e.maxWidth,t)}return null};O.filterProps=["maxWidth"];const P=(0,i.Ay)({prop:"minWidth",transform:k}),I=(0,i.Ay)({prop:"height",transform:k}),M=(0,i.Ay)({prop:"maxHeight",transform:k}),L=(0,i.Ay)({prop:"minHeight",transform:k}),R=((0,i.Ay)({prop:"size",cssProperty:"width",transform:k}),(0,i.Ay)({prop:"size",cssProperty:"height",transform:k}),a(T,O,P,I,M,L,(0,i.Ay)({prop:"boxSizing"})),{border:{themeKey:"borders",transform:l},borderTop:{themeKey:"borders",transform:l},borderRight:{themeKey:"borders",transform:l},borderBottom:{themeKey:"borders",transform:l},borderLeft:{themeKey:"borders",transform:l},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:l},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:A},color:{themeKey:"palette",transform:_},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:_},backgroundColor:{themeKey:"palette",transform:_},p:{style:r.Ms},pt:{style:r.Ms},pr:{style:r.Ms},pb:{style:r.Ms},pl:{style:r.Ms},px:{style:r.Ms},py:{style:r.Ms},padding:{style:r.Ms},paddingTop:{style:r.Ms},paddingRight:{style:r.Ms},paddingBottom:{style:r.Ms},paddingLeft:{style:r.Ms},paddingX:{style:r.Ms},paddingY:{style:r.Ms},paddingInline:{style:r.Ms},paddingInlineStart:{style:r.Ms},paddingInlineEnd:{style:r.Ms},paddingBlock:{style:r.Ms},paddingBlockStart:{style:r.Ms},paddingBlockEnd:{style:r.Ms},m:{style:r.Lc},mt:{style:r.Lc},mr:{style:r.Lc},mb:{style:r.Lc},ml:{style:r.Lc},mx:{style:r.Lc},my:{style:r.Lc},margin:{style:r.Lc},marginTop:{style:r.Lc},marginRight:{style:r.Lc},marginBottom:{style:r.Lc},marginLeft:{style:r.Lc},marginX:{style:r.Lc},marginY:{style:r.Lc},marginInline:{style:r.Lc},marginInlineStart:{style:r.Lc},marginInlineEnd:{style:r.Lc},marginBlock:{style:r.Lc},marginBlockStart:{style:r.Lc},marginBlockEnd:{style:r.Lc},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:S},rowGap:{style:E},columnGap:{style:C},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:k},maxWidth:{style:O},minWidth:{transform:k},height:{transform:k},maxHeight:{transform:k},minHeight:{transform:k},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}})},25779:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(51559),i=n(73342),o=n(43271),a=n(6856);const s=["sx"],l=e=>{var t,n;const r={systemProps:{},otherProps:{}},i=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:a.A;return Object.keys(e).forEach((t=>{i[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function c(e){const{sx:t}=e,n=(0,i.A)(e,s),{systemProps:a,otherProps:c}=l(n);let u;return u=Array.isArray(t)?[a,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return(0,o.Q)(n)?(0,r.A)({},a,n):a}:(0,r.A)({},a,t),(0,r.A)({},c,{sx:u})}},4725:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A,extendSxProp:()=>i.A,unstable_createStyleFunctionSx:()=>r.k,unstable_defaultSxConfig:()=>o.A});var r=n(22311),i=n(25779),o=n(6856)},22311:(e,t,n)=>{"use strict";n.d(t,{A:()=>u,k:()=>l});var r=n(2681),i=n(62648),o=n(44197),a=n(63496),s=n(6856);function l(){function e(e,t,n,i){const s={[e]:t,theme:n},l=i[e];if(!l)return{[e]:t};const{cssProperty:c=e,themeKey:u,transform:d,style:h}=l;if(null==t)return null;if("typography"===u&&"inherit"===t)return{[e]:t};const p=(0,o.Yn)(n,u)||{};if(h)return h(s);return(0,a.NI)(s,t,(t=>{let n=(0,o.BO)(p,d,t);return t===n&&"string"==typeof t&&(n=(0,o.BO)(p,d,`${e}${"default"===t?"":(0,r.A)(t)}`,t)),!1===c?n:{[c]:n}}))}return function t(n){var r;const{sx:o,theme:l={}}=n||{};if(!o)return null;const c=null!=(r=l.unstable_sxConfig)?r:s.A;function u(n){let r=n;if("function"==typeof n)r=n(l);else if("object"!=typeof n)return n;if(!r)return null;const o=(0,a.EU)(l.breakpoints),s=Object.keys(o);let u=o;return Object.keys(r).forEach((n=>{const o=(s=r[n],d=l,"function"==typeof s?s(d):s);var s,d;if(null!=o)if("object"==typeof o)if(c[n])u=(0,i.A)(u,e(n,o,l,c));else{const e=(0,a.NI)({theme:l},o,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,o)?u=(0,i.A)(u,e):u[n]=t({sx:o,theme:l})}else u=(0,i.A)(u,e(n,o,l,c))})),(0,a.vf)(s,u)}return Array.isArray(o)?o.map(u):u(o)}}const c=l();c.filterProps=["sx"];const u=c},6467:(e,t,n)=>{"use strict";var r;n.d(t,{A:()=>d});var i=n(30538),o=n(43107),a=n(17112),s=n(80187);function l(e,t,n,r,a){const[s,l]=i.useState((()=>a&&n?n(e).matches:r?r(e).matches:t));return(0,o.A)((()=>{let t=!0;if(!n)return;const r=n(e),i=()=>{t&&l(r.matches)};return i(),r.addListener(i),()=>{t=!1,r.removeListener(i)}}),[e,n]),s}const c=(r||(r=n.t(i,2))).useSyncExternalStore;function u(e,t,n,r,o){const a=i.useCallback((()=>t),[t]),s=i.useMemo((()=>{if(o&&n)return()=>n(e).matches;if(null!==r){const{matches:t}=r(e);return()=>t}return a}),[a,e,r,o,n]),[l,u]=i.useMemo((()=>{if(null===n)return[a,()=>()=>{}];const t=n(e);return[()=>t.matches,e=>(t.addListener(e),()=>{t.removeListener(e)})]}),[a,n,e]);return c(u,l,s)}function d(e,t={}){const n=(0,s.A)(),r="undefined"!=typeof window&&void 0!==window.matchMedia,{defaultMatches:i=!1,matchMedia:o=(r?window.matchMedia:null),ssrMatchMedia:d=null,noSsr:h=!1}=(0,a.A)({name:"MuiUseMediaQuery",props:t,theme:n});let p="function"==typeof e?e(n):e;p=p.replace(/^@media( ?)/m,"");return(void 0!==c?u:l)(p,i,o,d,h)}},38382:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(84657),i=n(80187);const o=(0,r.A)();const a=function(e=o){return(0,i.A)(e)}},17112:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(7757);function i(e){const{theme:t,name:n,props:i}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?(0,r.A)(t.components[n].defaultProps,i):i}},92775:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(17112),i=n(38382);function o({props:e,name:t,defaultTheme:n,themeId:o}){let a=(0,i.A)(n);o&&(a=a[o]||a);return(0,r.A)({theme:a,name:t,props:e})}},80187:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(30538),i=n(18321);const o=function(e=null){const t=r.useContext(i.T);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}},98767:(e,t,n)=>{"use strict";t.A=void 0;var r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(n(30538)),i=n(77753);function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}t.A=function(e=null){const t=r.useContext(i.ThemeContext);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}},58337:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});const r=e=>e,i=(()=>{let e=r;return{configure(t){e=t},generate:t=>e(t),reset(){e=r}}})()},2681:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(88207);function i(e){if("string"!=typeof e)throw new Error((0,r.A)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},8295:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A});var r=n(2681)},75031:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}},76772:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A});var r=n(75031)},32829:(e,t,n)=>{"use strict";function r(e,t,n=void 0){const r={};return Object.keys(e).forEach((i=>{r[i]=e[i].reduce(((e,r)=>{if(r){const i=t(r);""!==i&&e.push(i),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}n.d(t,{A:()=>r})},96339:(e,t,n)=>{"use strict";function r(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}n.d(t,{A:()=>r})},6995:(e,t,n)=>{"use strict";function r(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}n.d(t,{A:()=>r})},43271:(e,t,n)=>{"use strict";n.d(t,{A:()=>a,Q:()=>i});var r=n(51559);function i(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function o(e){if(!i(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=o(e[n])})),t}function a(e,t,n={clone:!0}){const s=n.clone?(0,r.A)({},e):e;return i(e)&&i(t)&&Object.keys(t).forEach((r=>{"__proto__"!==r&&(i(t[r])&&r in e&&i(e[r])?s[r]=a(e[r],t[r],n):n.clone?s[r]=i(t[r])?o(t[r]):t[r]:s[r]=t[r])})),s}},82629:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A,isPlainObject:()=>r.Q});var r=n(43271)},88207:(e,t,n)=>{"use strict";function r(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;er})},25286:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A});var r=n(88207)},24115:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>o,li:()=>i});var r=n(58337);const i={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function o(e,t,n="Mui"){const o=i[t];return o?`${n}-${o}`:`${r.A.generate(e)}-${t}`}},5007:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(24115);function i(e,t,n="Mui"){const i={};return t.forEach((t=>{i[t]=(0,r.Ay)(e,t,n)})),i}},63526:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l,getFunctionName:()=>o});var r=n(91272);const i=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function o(e){const t=`${e}`.match(i);return t&&t[1]||""}function a(e,t=""){return e.displayName||e.name||o(e)||t}function s(e,t,n){const r=a(t);return e.displayName||(""!==r?`${n}(${r})`:n)}function l(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return a(e,"Component");if("object"==typeof e)switch(e.$$typeof){case r.ForwardRef:return s(e,e.render,"ForwardRef");case r.Memo:return s(e,e.type,"memo");default:return}}}},74311:(e,t,n)=>{"use strict";function r(e){return e&&e.ownerDocument||document}n.d(t,{A:()=>r})},56023:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(74311);function i(e){return(0,r.A)(e).defaultView||window}},7757:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(51559);function i(e,t){const n=(0,r.A)({},t);return Object.keys(e).forEach((o=>{if(o.toString().match(/^(components|slots)$/))n[o]=(0,r.A)({},e[o],n[o]);else if(o.toString().match(/^(componentsProps|slotProps)$/)){const a=e[o]||{},s=t[o];n[o]={},s&&Object.keys(s)?a&&Object.keys(a)?(n[o]=(0,r.A)({},s),Object.keys(a).forEach((e=>{n[o][e]=i(a[e],s[e])}))):n[o]=s:n[o]=a}else void 0===n[o]&&(n[o]=e[o])})),n}},54175:(e,t,n)=>{"use strict";function r(e,t){"function"==typeof e?e(t):e&&(e.current=t)}n.d(t,{A:()=>r})},63095:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(30538);function i({controlled:e,default:t,name:n,state:i="value"}){const{current:o}=r.useRef(void 0!==e),[a,s]=r.useState(t);return[o?e:a,r.useCallback((e=>{o||s(e)}),[])]}},43107:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(30538);const i="undefined"!=typeof window?r.useLayoutEffect:r.useEffect},18605:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(30538),i=n(43107);const o=function(e){const t=r.useRef(e);return(0,i.A)((()=>{t.current=e})),r.useRef(((...e)=>(0,t.current)(...e))).current}},18029:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(30538),i=n(54175);function o(...e){return r.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{(0,i.A)(e,t)}))}),e)}},5391:(e,t,n)=>{"use strict";var r;n.d(t,{A:()=>s});var i=n(30538);let o=0;const a=(r||(r=n.t(i,2)))["useId".toString()];function s(e){if(void 0!==a){const t=a();return null!=e?e:t}return function(e){const[t,n]=i.useState(e),r=e||t;return i.useEffect((()=>{null==t&&(o+=1,n(`mui-${o}`))}),[t]),r}(e)}},73499:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(30538),i=n(8734);let o=!0,a=!1;const s=new i.E,l={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function c(e){e.metaKey||e.altKey||e.ctrlKey||(o=!0)}function u(){o=!1}function d(){"hidden"===this.visibilityState&&a&&(o=!0)}function h(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return o||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!l[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function p(){const e=r.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",c,!0),t.addEventListener("mousedown",u,!0),t.addEventListener("pointerdown",u,!0),t.addEventListener("touchstart",u,!0),t.addEventListener("visibilitychange",d,!0))}),[]),t=r.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!h(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(a=!0,s.start(100,(()=>{a=!1})),t.current=!1,!0)},ref:e}}},8734:(e,t,n)=>{"use strict";n.d(t,{E:()=>a,A:()=>s});var r=n(30538);const i={};const o=[];class a{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new a}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function s(){const e=function(e,t){const n=r.useRef(i);return n.current===i&&(n.current=e(t)),n}(a.create).current;var t;return t=e.disposeEffect,r.useEffect(t,o),e}},38540:(e,t,n)=>{"use strict";n.d(t,{$:()=>u,F:()=>c});var r=n(51559),i=n(73342),o=n(30538),a=n(87507),s=n(97282);const l=["localeText"],c=o.createContext(null);const u=function(e){var t;const{localeText:n}=e,u=(0,i.A)(e,l),{utils:d,localeText:h}=null!=(t=o.useContext(c))?t:{utils:void 0,localeText:void 0},p=(0,a.A)({props:u,name:"MuiLocalizationProvider"}),{children:f,dateAdapter:g,dateFormats:m,dateLibInstance:y,adapterLocale:v,localeText:b}=p,w=o.useMemo((()=>(0,r.A)({},b,h,n)),[b,h,n]),x=o.useMemo((()=>{if(!g)return d||null;const e=new g({locale:v,formats:m,instance:y});if(!e.isMUIAdapter)throw new Error(["MUI: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join("\n"));return e}),[g,v,m,y,d]),A=o.useMemo((()=>x?{minDate:x.date("1900-01-01T00:00:00.000"),maxDate:x.date("2099-12-31T00:00:00.000")}:null),[x]),S=o.useMemo((()=>({utils:x,defaultDates:A,localeText:w})),[A,x,w]);return(0,s.jsx)(c.Provider,{value:S,children:f})}},54370:(e,t,n)=>{"use strict";n.d(t,{f:()=>r});const r=(e,t="warning")=>{let n=!1;const r=Array.isArray(e)?e.join("\n"):e;return()=>{n||(n=!0,"error"===t?console.error(r):console.warn(r))}}},59790:function(e,t,n){!function(e,t,n,r,i,o){"use strict";var a="comparison",s=["PropertyIsEqualTo","PropertyIsNotEqualTo","PropertyIsLessThan","PropertyIsLessThanOrEqualTo","PropertyIsGreaterThan","PropertyIsGreaterThanOrEqualTo"],l=s.concat(["PropertyIsLike","PropertyIsNull","PropertyIsBetween"]);function c(e,t){var n=e.getElementsByTagNameNS(e.namespaceURI,t).item(0);if(!n)return null;if(n.parentNode!==e)throw new Error("Expected direct descant");return n?n.textContent.trim():null}function u(e){return l.includes(e.localName)}function d(e){return["or","and"].includes(e.localName.toLowerCase())}function h(e){if(s.includes(e.localName))return p(e);if("PropertyIsBetween"===e.localName)return m(e);if("PropertyIsNull"===e.localName)return g(e);if("PropertyIsLike"===e.localName)return f(e);throw new Error("Unknown comparison element "+e.localName)}function p(e){var t=c(e,"PropertyName"),n=c(e,"Literal");return{type:a,operator:e.localName.toLowerCase(),propertyname:t,literal:n,matchcase:"false"!==e.getAttribute("matchCase")}}function f(e){var t=c(e,"PropertyName"),n=c(e,"Literal");return{type:a,operator:e.localName.toLowerCase(),propertyname:t,literal:n,wildcard:e.getAttribute("wildCard"),singlechar:e.getAttribute("singleChar"),escapechar:e.getAttribute("escapeChar"),matchcase:"false"!==e.getAttribute("matchCase")}}function g(e){var t=c(e,"PropertyName");return{type:a,operator:e.localName.toLowerCase(),propertyname:t}}function m(e){var t=c(e,"PropertyName"),n=c(e,"LowerBoundary"),r=c(e,"UpperBoundary");return{type:a,operator:e.localName.toLowerCase(),lowerboundary:n,upperboundary:r,propertyname:t,matchcase:"false"!==e.getAttribute("matchCase")}}function y(e){for(var t=[],n=e.firstElementChild;n;n=n.nextElementSibling)u(n)&&t.push(h(n));return{type:e.localName.toLowerCase(),predicates:t}}function v(e){var t=null,n=e.firstElementChild;return n&&u(n)&&(t=h(n)),n&&d(n)&&(t=y(n)),{type:e.localName.toLowerCase(),predicate:t}}function b(e){for(var t={},n=e.firstElementChild;n;n=n.nextElementSibling)u(n)&&(t=h(n)),d(n)&&(t=y(n)),"not"===n.localName.toLowerCase()&&(t=v(n)),"featureid"===n.localName.toLowerCase()&&(t.type="featureid",t.fids=t.fids||[],t.fids.push(n.getAttribute("fid")));return t}var w=new Set(["strokeWidth","strokeOpacity","strokeDashoffset","fillOpacity","fontSize"]);function x(e,t,n){var r=n.toLowerCase();t[r]=t[r]||[];var i={};L(e,i),t[r].push(i)}function A(e,t,n){var r=n.toLowerCase();t[r]={},L(e,t[r])}function S(e,t,n,r){void 0===r&&(r=!1);var i=n.toLowerCase();t[i]=r?e.textContent.trim():e.textContent}function C(e,t,n){var r=n.toLowerCase(),i=parseFloat(e.textContent.trim());t[r]=i}function E(e,t){if(!Array.isArray(e))return e;var n=e.map((function(e){return"literal"===e.type?e.value:e})).filter((function(e){return""!==e}));return n.every((function(e){return"object"!=typeof e||null===e}))?n.join(""):1===n.length?n[0]:{type:"expression",typeHint:t,children:n}}function _(e,t,n,r){void 0===r&&(r={});for(var i={skipEmptyNodes:!0,forceLowerCase:!0,typeHint:"string"},o=Object.assign({},i,r),a=[],s=0;s0}function B(e,t){if(j(t))return!1;var n=e.lowerboundary;if(j(n))return!1;var r=e.upperboundary;return!j(r)&&N(n,t)<=0&&N(r,t)>=0}function $(e,t){return!j(t)&&!j(e.literal)&&(e.matchcase?t==e.literal:0===N(e.literal,t,!1))}function G(e,t){return!j(t)&&!$(e,t)}function U(e,t){var n=e.literal;if(j(t))return!1;var r=e.wildcard,i=e.singlechar,o=e.escapechar,a=e.matchcase,s=n.replace(new RegExp("["+r+"]","g"),".*");return s=s.replace(new RegExp("["+i+"]","g"),"."),"\\"!==o&&(s=s.replace(new RegExp("["+o+"]","g"),"\\")),s="^"+s+"$",(!1===a?new RegExp(s,"i"):new RegExp(s)).test(t)}function W(e,t,n){var r=n(t,e.propertyname);switch(e.operator){case"propertyislessthan":return z(e,r);case"propertyisequalto":return $(e,r);case"propertyislessthanorequalto":return $(e,r)||z(e,r);case"propertyisnotequalto":return G(e,r);case"propertyisgreaterthan":return V(e,r);case"propertyisgreaterthanorequalto":return $(e,r)||V(e,r);case"propertyisbetween":return B(e,r);case"propertyisnull":return j(r);case"propertyislike":return U(e,r);default:throw new Error("Unkown comparison operator "+e.operator)}}function q(e,t){for(var n=0;ne.minscaledenominator:void 0!==e.maxscaledenominator?t/28e-5e.minscaledenominator}function Z(e){return e.layers.map((function(e){return e.name}))}function J(e,t){return t?e.layers.find((function(e){return e.name===t})):e.layers[0]}function Q(e){return e.styles.map((function(e){return e.name}))}function ee(e,t){if(t)return e.styles.find((function(e){return e.name===t}));var n=e.styles.find((function(e){return e.default}));return n||e.styles[0]}function te(e,t,n,r){void 0===r&&(r={});for(var i=[],o=0,a=0;a-1&&(e.stroke.graphicstroke.__invalidated=!0))}}function Ce(e,t){if(e)if(Array.isArray(e))for(var n=0;n=2&&0!==a[0]&&(o=a[1]/a[0]+1)}return o*t}function Ve(e){return e.stroke.graphicstroke.initialgap||0}function Be(e,n,r,i,o){void 0===o&&(o=0);var a,s=n/2,l=Math.PI*o/180;switch(i&&i.getColor()&&(a=i.getColor()),e){case"circle":return new t.Circle({fill:i,radius:s,stroke:r});case"triangle":return new t.RegularShape({fill:i,points:3,radius:s,stroke:r,rotation:l});case"star":return new t.RegularShape({fill:i,points:5,radius1:s,radius2:s/2.5,stroke:r,rotation:l});case"cross":return new t.RegularShape({fill:i,points:4,radius1:s,radius2:0,stroke:r||new t.Stroke({color:a,width:s/2}),rotation:l});case"hexagon":return new t.RegularShape({fill:i,points:6,radius:s,stroke:r||new t.Stroke({color:a,width:s/2}),rotation:l});case"octagon":return new t.RegularShape({angle:Math.PI/8,fill:i,points:8,radius:s/Math.cos(Math.PI/8),stroke:r||new t.Stroke({color:a,width:s/2}),rotation:l});case"cross2":case"x":return new t.RegularShape({angle:Math.PI/4,fill:i,points:4,radius1:Math.sqrt(2)*s,radius2:0,stroke:r||new t.Stroke({color:a,width:s/2}),rotation:l});case"diamond":return new t.RegularShape({fill:i,points:4,radius1:s,stroke:r,rotation:l});case"horline":return new t.RegularShape({fill:i,points:2,radius:s,angle:Math.PI/2,stroke:r,rotation:l});case"line":return new t.RegularShape({fill:i,points:2,radius:s,angle:0,stroke:r,rotation:l});case"backslash":return new t.RegularShape({fill:i,points:2,radius:s*Math.sqrt(2),angle:-Math.PI/4,stroke:r,rotation:l});case"slash":return new t.RegularShape({fill:i,points:2,radius:s*Math.sqrt(2),angle:Math.PI/4,stroke:r,rotation:l});default:return new t.RegularShape({angle:Math.PI/4,fill:i,points:4,radius1:s*Math.sqrt(2),stroke:r,rotation:l})}}function $e(e){switch((e||{}).type){case"expression":case"propertyname":case"function":return!0;default:return!1}}function Ge(e,t,n,r){void 0===r&&(r=null);var i=null,o=typeof e;if("string"===o||"number"===o||"undefined"===o||null===e)i=e;else if("literal"===e.type)i=e.value;else if("propertyname"===e.type)i=t?n(t,e.value):r;else if("expression"===e.type)if(1===e.children.length)i=Ge(e.children[0],t,n,r);else{for(var a=[],s=0;s1&&(o.stroke.styling.strokeWidth=t*a)}return n}function Et(e){var i=e.fill.graphicfill,a=i.graphic,s=a.mark,l=(s||{}).wellknownname;if(l&&0===l.indexOf("brush://")){var c="#000000";return s.fill&&s.fill.styling&&s.fill.styling.fill&&(c=s.fill.styling.fill),xt(l,c)}var u=Number(a.size)||le,d=u*o.DEVICE_PIXEL_RATIO,h=null,p=2;try{var f=document.createElement("canvas");f.width=d*p,f.height=d*p;var g=f.getContext("2d"),m=Qe(Ct(i,p)),y=n.toContext(g,{size:[u*p,u*p]});g.imageSmoothingEnabled=!1,y.setStyle(m);var v=p*(u/2),b=p*(u/2);y.drawGeometry(new r.Point([v,b])),l&&l.indexOf("slash")>-1&&(y.drawGeometry(new r.Point([v-p*u,b])),y.drawGeometry(new r.Point([v+p*u,b])),y.drawGeometry(new r.Point([v,b-p*u])),y.drawGeometry(new r.Point([v,b+p*u])));var w=document.createElement("canvas");w.width=d,w.height=d;var x=w.getContext("2d");x.drawImage(f,0,0,d*p,d*p,0,0,d,d);var A=x.createPattern(w,"repeat");h=new t.Fill({color:A})}catch(e){h=new t.Fill({color:"#000000"})}return h}function _t(e){var i=e.fill&&e.fill.graphicfill&&e.fill.graphicfill.graphic&&e.fill.graphicfill.graphic.externalgraphic&&e.fill.graphicfill.graphic.externalgraphic.onlineresource,o=e.fill&&e.fill.graphicfill&&e.fill.graphicfill.graphic&&e.fill.graphicfill.graphic.mark,a=null;if(a=i?St(e):o?Et(e):We(e.fill),e.stroke&&e.stroke.graphicstroke){var s=st(e);return new t.Style({renderer:function(e,t){if(a){var i=t.feature,o=t.context,l=n.toContext(o);l.setFillStrokeStyle(a,void 0);var c=i.getGeometry().getType();"Polygon"===c?l.drawPolygon(new r.Polygon(e)):"MultiPolygon"===c&&l.drawMultiPolygon(new r.MultiPolygon(e))}s(e,t)}})}var l=Ue(e.stroke);return new t.Style({fill:a,stroke:l})}var kt=Fe(_t);function Tt(e,t,n){var r=kt(e);return qe(r,e,t,n),He(r,e,t,n),r}function Ot(e){if(!e||!e.label)return Pe;var n=Ge(e.label,null,null,""),r=e.font&&e.font.styling||{},i=Ge(r.fontFamily,null,null,"sans-serif"),o=Ge(r.fontSize,null,null,10),a=Ge(r.fontStyle,null,null,"")+" "+Ge(r.fontWeight,null,null,"")+" "+o+"px "+i,s=e&&e.labelplacement&&e.labelplacement.pointplacement?e.labelplacement.pointplacement:{},l=Ge(s.rotation,null,null,0),c=s&&s.displacement?s.displacement:{},u=Ge(c.displacementx,null,null,0),d=Ge(c.displacementy,null,null,0),h=s&&s.anchorpoint||{},p="center",f=Ge(h.anchorpointx,null,null,NaN);f<.25?p="left":f>.75&&(p="right");var g="middle",m=Ge(h.anchorpointy,null,null,NaN);m<.25?g="bottom":m>.75&&(g="top");var y=e.fill?e.fill.styling:{},v=Ge(y.fill,null,null,"#000000"),b=Ge(y.fillOpacity,null,null,1),w={text:n,font:a,offsetX:u,offsetY:d,rotation:Math.PI*l/180,textAlign:p,textBaseline:g,fill:new t.Fill({color:Ne(v,b)})};if(e.halo){var x=e.halo&&e.halo.fill?e.halo.fill.styling:{},A=Ge(x.fill,null,null,"#FFFFFF"),S=Ge(x.fillOpacity,null,null,1),C=Ge(e.halo.radius,null,null,1);w.stroke=new t.Stroke({color:Ne(A,S),width:2*(2===C||4===C?C-1e-5:C)})}return new t.Style({text:new t.Text(w)})}var Pt=Fe(Ot);function It(e,t,n){var r=Pt(e),i=r.getText();if(!i)return r;var o=e.label,a=e.labelplacement;if($e(o)){var s=Ge(o,t,n,"");i.setText(s.toString())}if(a){var l=a.pointplacement&&a.pointplacement.rotation||0;if($e(l)){var c=Ge(l,t,n,0);i.setRotation(Math.PI*c/180)}}var u=t.getGeometry?t.getGeometry():t.geometry,d=u.getType?u.getType():u.type,h=e&&e.labelplacement&&e.labelplacement.lineplacement?e.labelplacement.lineplacement:null,p="point"!==d&&h?"line":"point";if(i.setPlacement(p),Ye(r,e,t,n),e.font&&e.font.styling){var f=e.font.styling||{};if($e(f.fontFamily)||$e(f.fontStyle)||$e(f.fontWeight)||$e(f.fontSize)){var g=Ge(f.fontFamily,t,n,"sans-serif"),m=Ge(f.fontStyle,t,n,"")+" "+Ge(f.fontWeight,t,n,"")+" "+Ge(f.fontSize,t,n,10)+"px "+g;i.setFont(m)}}return r}function Mt(e){var t=rt(e,e.getLength()/2)[1];return[t[0],t[1]]}function Lt(e,t){if("function"!=typeof t.getGeometry)return null;var n=t.getGeometry();if(!n)return null;var i=null,o=n.getType();if("LineString"===o)(i=Qe(e,t)).setGeometry(new r.Point(Mt(n)));else if("MultiLineString"===o){var a=n.getLineStrings().map(Mt);(i=Qe(e,t)).setGeometry(new r.MultiPoint(a))}return i}function Rt(e){var t=e.getInteriorPoint().getCoordinates();return[t[0],t[1]]}function jt(e,t){if("function"!=typeof t.getGeometry)return null;var n=t.getGeometry();if(!n)return null;var i=null,o=n.getType();if("Polygon"===o)(i=Qe(e,t)).setGeometry(new r.Point(Rt(n)));else if("MultiPolygon"===o){var a=n.getPolygons().map(Rt);(i=Qe(e,t)).setGeometry(new r.MultiPoint(a))}return i}var Ft=[Ie];function Dt(e,t,n,r,i){(t||[]).forEach((function(t){var o=r(t,n,i);o&&e.push(o)}))}function Nt(e,t,n,r){void 0===r&&(r={});var i=e.polygonSymbolizers,o=e.lineSymbolizers,a=e.pointSymbolizers,s=e.textSymbolizers,l={strictGeometryMatch:!1,useFallbackStyles:!0},c=Object.assign({},l,r),u=t.getGeometry?t.getGeometry():t.geometry,d=[];switch(u.getType?u.getType():u.type){case"Point":case"MultiPoint":Dt(d,a,t,Qe,n),Dt(d,s,t,It,n);break;case"LineString":case"MultiLineString":Dt(d,o,t,dt,n),c.strictGeometryMatch||Dt(d,a,t,Lt,n),Dt(d,s,t,It,n);break;case"Polygon":case"MultiPolygon":Dt(d,i,t,Tt,n),c.strictGeometryMatch||Dt(d,o,t,dt,n),Dt(d,a,t,jt,n),Dt(d,s,t,It,n);break;default:c.useFallbackStyles&&(d=Ft)}return d.forEach((function(e,t){return e.setZIndex(t)})),d}function zt(e){return e.getId()}function Vt(e,t){return e.get(t)}function Bt(e,t){void 0===t&&(t={});var n=t.imageLoadedCallback||function(){},r={};return function(i,o){var a="function"==typeof t.convertResolution?t.convertResolution(o):o,s="function"==typeof t.getProperty?t.getProperty:Vt,l=te(e,i,a,{getProperty:s,getFeatureId:zt});return Te(l,e,n,r),Nt(ie(l),i,s)}}function $t(e,t){return Nt(ie([e]),{geometry:{type:t}},(function(){return null}),{strictGeometryMatch:!0,useFallbackStyles:!1}).filter((function(e){return null!==e}))}e.OlStyler=Nt,e.Reader=R,e.categorizeSymbolizers=ie,e.createOlStyle=$t,e.createOlStyleFunction=Bt,e.getByPath=re,e.getLayer=J,e.getLayerNames=Z,e.getRuleSymbolizers=ne,e.getRules=te,e.getStyle=ee,e.getStyleNames=Q}(t,n(6473),n(11574),n(78278),n(41218),n(27144))},58839:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv=void 0;const r=n(86557),i=n(82797),o=n(83246),a=n(10962),s=["/properties"],l="http://json-schema.org/draft-07/schema";class c extends r.default{_addVocabularies(){super._addVocabularies(),i.default.forEach((e=>this.addVocabulary(e))),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const e=this.opts.$data?this.$dataMetaSchema(a,s):a;this.addMetaSchema(e,l,!1),this.refs["http://json-schema.org/schema"]=l}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(l)?l:void 0)}}t.Ajv=c,e.exports=t=c,e.exports.Ajv=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var u=n(13809);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var d=n(28468);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return d._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return d.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return d.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return d.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return d.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return d.CodeGen}});var h=n(22917);Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return h.default}});var p=n(21698);Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return p.default}})},61823:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.regexpCode=t.getEsmExportName=t.getProperty=t.safeStringify=t.stringify=t.strConcat=t.addCodeArg=t.str=t._=t.nil=t._Code=t.Name=t.IDENTIFIER=t._CodeOrName=void 0;class n{}t._CodeOrName=n,t.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends n{constructor(e){if(super(),!t.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}t.Name=r;class i extends n{constructor(e){super(),this._items="string"==typeof e?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const e=this._items[0];return""===e||'""'===e}get str(){var e;return null!==(e=this._str)&&void 0!==e?e:this._str=this._items.reduce(((e,t)=>`${e}${t}`),"")}get names(){var e;return null!==(e=this._names)&&void 0!==e?e:this._names=this._items.reduce(((e,t)=>(t instanceof r&&(e[t.str]=(e[t.str]||0)+1),e)),{})}}function o(e,...t){const n=[e[0]];let r=0;for(;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.or=t.and=t.not=t.CodeGen=t.operators=t.varKinds=t.ValueScopeName=t.ValueScope=t.Scope=t.Name=t.regexpCode=t.stringify=t.getProperty=t.nil=t.strConcat=t.str=t._=void 0;const r=n(61823),i=n(95284);var o=n(61823);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return o._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return o.str}}),Object.defineProperty(t,"strConcat",{enumerable:!0,get:function(){return o.strConcat}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return o.nil}}),Object.defineProperty(t,"getProperty",{enumerable:!0,get:function(){return o.getProperty}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return o.stringify}}),Object.defineProperty(t,"regexpCode",{enumerable:!0,get:function(){return o.regexpCode}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return o.Name}});var a=n(95284);Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return a.Scope}}),Object.defineProperty(t,"ValueScope",{enumerable:!0,get:function(){return a.ValueScope}}),Object.defineProperty(t,"ValueScopeName",{enumerable:!0,get:function(){return a.ValueScopeName}}),Object.defineProperty(t,"varKinds",{enumerable:!0,get:function(){return a.varKinds}}),t.operators={GT:new r._Code(">"),GTE:new r._Code(">="),LT:new r._Code("<"),LTE:new r._Code("<="),EQ:new r._Code("==="),NEQ:new r._Code("!=="),NOT:new r._Code("!"),OR:new r._Code("||"),AND:new r._Code("&&"),ADD:new r._Code("+")};class s{optimizeNodes(){return this}optimizeNames(e,t){return this}}class l extends s{constructor(e,t,n){super(),this.varKind=e,this.name=t,this.rhs=n}render({es5:e,_n:t}){const n=e?i.varKinds.var:this.varKind,r=void 0===this.rhs?"":` = ${this.rhs}`;return`${n} ${this.name}${r};`+t}optimizeNames(e,t){if(e[this.name.str])return this.rhs&&(this.rhs=I(this.rhs,e,t)),this}get names(){return this.rhs instanceof r._CodeOrName?this.rhs.names:{}}}class c extends s{constructor(e,t,n){super(),this.lhs=e,this.rhs=t,this.sideEffects=n}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,t){if(!(this.lhs instanceof r.Name)||e[this.lhs.str]||this.sideEffects)return this.rhs=I(this.rhs,e,t),this}get names(){return P(this.lhs instanceof r.Name?{}:{...this.lhs.names},this.rhs)}}class u extends c{constructor(e,t,n,r){super(e,n,r),this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}}class d extends s{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}}class h extends s{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}}class p extends s{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}}class f extends s{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,t){return this.code=I(this.code,e,t),this}get names(){return this.code instanceof r._CodeOrName?this.code.names:{}}}class g extends s{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce(((t,n)=>t+n.render(e)),"")}optimizeNodes(){const{nodes:e}=this;let t=e.length;for(;t--;){const n=e[t].optimizeNodes();Array.isArray(n)?e.splice(t,1,...n):n?e[t]=n:e.splice(t,1)}return e.length>0?this:void 0}optimizeNames(e,t){const{nodes:n}=this;let r=n.length;for(;r--;){const i=n[r];i.optimizeNames(e,t)||(M(e,i.names),n.splice(r,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce(((e,t)=>O(e,t.names)),{})}}class m extends g{render(e){return"{"+e._n+super.render(e)+"}"+e._n}}class y extends g{}class v extends m{}v.kind="else";class b extends m{constructor(e,t){super(t),this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);return this.else&&(t+="else "+this.else.render(e)),t}optimizeNodes(){super.optimizeNodes();const e=this.condition;if(!0===e)return this.nodes;let t=this.else;if(t){const e=t.optimizeNodes();t=this.else=Array.isArray(e)?new v(e):e}return t?!1===e?t instanceof b?t:t.nodes:this.nodes.length?this:new b(L(e),t instanceof b?[t]:t.nodes):!1!==e&&this.nodes.length?this:void 0}optimizeNames(e,t){var n;if(this.else=null===(n=this.else)||void 0===n?void 0:n.optimizeNames(e,t),super.optimizeNames(e,t)||this.else)return this.condition=I(this.condition,e,t),this}get names(){const e=super.names;return P(e,this.condition),this.else&&O(e,this.else.names),e}}b.kind="if";class w extends m{}w.kind="for";class x extends w{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iteration=I(this.iteration,e,t),this}get names(){return O(super.names,this.iteration.names)}}class A extends w{constructor(e,t,n,r){super(),this.varKind=e,this.name=t,this.from=n,this.to=r}render(e){const t=e.es5?i.varKinds.var:this.varKind,{name:n,from:r,to:o}=this;return`for(${t} ${n}=${r}; ${n}<${o}; ${n}++)`+super.render(e)}get names(){const e=P(super.names,this.from);return P(e,this.to)}}class S extends w{constructor(e,t,n,r){super(),this.loop=e,this.varKind=t,this.name=n,this.iterable=r}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iterable=I(this.iterable,e,t),this}get names(){return O(super.names,this.iterable.names)}}class C extends m{constructor(e,t,n){super(),this.name=e,this.args=t,this.async=n}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}}C.kind="func";class E extends g{render(e){return"return "+super.render(e)}}E.kind="return";class _ extends m{render(e){let t="try"+super.render(e);return this.catch&&(t+=this.catch.render(e)),this.finally&&(t+=this.finally.render(e)),t}optimizeNodes(){var e,t;return super.optimizeNodes(),null===(e=this.catch)||void 0===e||e.optimizeNodes(),null===(t=this.finally)||void 0===t||t.optimizeNodes(),this}optimizeNames(e,t){var n,r;return super.optimizeNames(e,t),null===(n=this.catch)||void 0===n||n.optimizeNames(e,t),null===(r=this.finally)||void 0===r||r.optimizeNames(e,t),this}get names(){const e=super.names;return this.catch&&O(e,this.catch.names),this.finally&&O(e,this.finally.names),e}}class k extends m{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}k.kind="catch";class T extends m{render(e){return"finally"+super.render(e)}}T.kind="finally";function O(e,t){for(const n in t)e[n]=(e[n]||0)+(t[n]||0);return e}function P(e,t){return t instanceof r._CodeOrName?O(e,t.names):e}function I(e,t,n){return e instanceof r.Name?o(e):(i=e)instanceof r._Code&&i._items.some((e=>e instanceof r.Name&&1===t[e.str]&&void 0!==n[e.str]))?new r._Code(e._items.reduce(((e,t)=>(t instanceof r.Name&&(t=o(t)),t instanceof r._Code?e.push(...t._items):e.push(t),e)),[])):e;var i;function o(e){const r=n[e.str];return void 0===r||1!==t[e.str]?e:(delete t[e.str],r)}}function M(e,t){for(const n in t)e[n]=(e[n]||0)-(t[n]||0)}function L(e){return"boolean"==typeof e||"number"==typeof e||null===e?!e:r._`!${D(e)}`}t.CodeGen=class{constructor(e,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...t,_n:t.lines?"\n":""},this._extScope=e,this._scope=new i.Scope({parent:e}),this._nodes=[new y]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){const n=this._extScope.value(e,t);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,n,r){const i=this._scope.toName(t);return void 0!==n&&r&&(this._constants[i.str]=n),this._leafNode(new l(e,i,n)),i}const(e,t,n){return this._def(i.varKinds.const,e,t,n)}let(e,t,n){return this._def(i.varKinds.let,e,t,n)}var(e,t,n){return this._def(i.varKinds.var,e,t,n)}assign(e,t,n){return this._leafNode(new c(e,t,n))}add(e,n){return this._leafNode(new u(e,t.operators.ADD,n))}code(e){return"function"==typeof e?e():e!==r.nil&&this._leafNode(new f(e)),this}object(...e){const t=["{"];for(const[n,i]of e)t.length>1&&t.push(","),t.push(n),(n!==i||this.opts.es5)&&(t.push(":"),(0,r.addCodeArg)(t,i));return t.push("}"),new r._Code(t)}if(e,t,n){if(this._blockNode(new b(e)),t&&n)this.code(t).else().code(n).endIf();else if(t)this.code(t).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new b(e))}else(){return this._elseNode(new v)}endIf(){return this._endBlockNode(b,v)}_for(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}for(e,t){return this._for(new x(e),t)}forRange(e,t,n,r,o=(this.opts.es5?i.varKinds.var:i.varKinds.let)){const a=this._scope.toName(e);return this._for(new A(o,a,t,n),(()=>r(a)))}forOf(e,t,n,o=i.varKinds.const){const a=this._scope.toName(e);if(this.opts.es5){const e=t instanceof r.Name?t:this.var("_arr",t);return this.forRange("_i",0,r._`${e}.length`,(t=>{this.var(a,r._`${e}[${t}]`),n(a)}))}return this._for(new S("of",o,a,t),(()=>n(a)))}forIn(e,t,n,o=(this.opts.es5?i.varKinds.var:i.varKinds.const)){if(this.opts.ownProperties)return this.forOf(e,r._`Object.keys(${t})`,n);const a=this._scope.toName(e);return this._for(new S("in",o,a,t),(()=>n(a)))}endFor(){return this._endBlockNode(w)}label(e){return this._leafNode(new d(e))}break(e){return this._leafNode(new h(e))}return(e){const t=new E;if(this._blockNode(t),this.code(e),1!==t.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(E)}try(e,t,n){if(!t&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');const r=new _;if(this._blockNode(r),this.code(e),t){const e=this.name("e");this._currNode=r.catch=new k(e),t(e)}return n&&(this._currNode=r.finally=new T,this.code(n)),this._endBlockNode(k,T)}throw(e){return this._leafNode(new p(e))}block(e,t){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(t),this}endBlock(e){const t=this._blockStarts.pop();if(void 0===t)throw new Error("CodeGen: not in self-balancing block");const n=this._nodes.length-t;if(n<0||void 0!==e&&n!==e)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${e} expected`);return this._nodes.length=t,this}func(e,t=r.nil,n,i){return this._blockNode(new C(e,t,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(C)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,t){const n=this._currNode;if(n instanceof e||t&&n instanceof t)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${t?`${e.kind}/${t.kind}`:e.kind}"`)}_elseNode(e){const t=this._currNode;if(!(t instanceof b))throw new Error('CodeGen: "else" without "if"');return this._currNode=t.else=e,this}get _root(){return this._nodes[0]}get _currNode(){const e=this._nodes;return e[e.length-1]}set _currNode(e){const t=this._nodes;t[t.length-1]=e}},t.not=L;const R=F(t.operators.AND);t.and=function(...e){return e.reduce(R)};const j=F(t.operators.OR);function F(e){return(t,n)=>t===r.nil?n:n===r.nil?t:r._`${D(t)} ${e} ${D(n)}`}function D(e){return e instanceof r.Name?e:r._`(${e})`}t.or=function(...e){return e.reduce(j)}},95284:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ValueScope=t.ValueScopeName=t.Scope=t.varKinds=t.UsedValueState=void 0;const r=n(61823);class i extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}}var o;!function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"}(o||(t.UsedValueState=o={})),t.varKinds={const:new r.Name("const"),let:new r.Name("let"),var:new r.Name("var")};class a{constructor({prefixes:e,parent:t}={}){this._names={},this._prefixes=e,this._parent=t}toName(e){return e instanceof r.Name?e:this.name(e)}name(e){return new r.Name(this._newName(e))}_newName(e){return`${e}${(this._names[e]||this._nameGroup(e)).index++}`}_nameGroup(e){var t,n;if((null===(n=null===(t=this._parent)||void 0===t?void 0:t._prefixes)||void 0===n?void 0:n.has(e))||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}}t.Scope=a;class s extends r.Name{constructor(e,t){super(t),this.prefix=e}setValue(e,{property:t,itemIndex:n}){this.value=e,this.scopePath=r._`.${new r.Name(t)}[${n}]`}}t.ValueScopeName=s;const l=r._`\n`;t.ValueScope=class extends a{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?l:r.nil}}get(){return this._scope}name(e){return new s(e,this._newName(e))}value(e,t){var n;if(void 0===t.ref)throw new Error("CodeGen: ref must be passed in value");const r=this.toName(e),{prefix:i}=r,o=null!==(n=t.key)&&void 0!==n?n:t.ref;let a=this._values[i];if(a){const e=a.get(o);if(e)return e}else a=this._values[i]=new Map;a.set(o,r);const s=this._scope[i]||(this._scope[i]=[]),l=s.length;return s[l]=t.ref,r.setValue(t,{property:i,itemIndex:l}),r}getValue(e,t){const n=this._values[e];if(n)return n.get(t)}scopeRefs(e,t=this._values){return this._reduceValues(t,(t=>{if(void 0===t.scopePath)throw new Error(`CodeGen: name "${t}" has no value`);return r._`${e}${t.scopePath}`}))}scopeCode(e=this._values,t,n){return this._reduceValues(e,(e=>{if(void 0===e.value)throw new Error(`CodeGen: name "${e}" has no value`);return e.value.code}),t,n)}_reduceValues(e,n,a={},s){let l=r.nil;for(const c in e){const u=e[c];if(!u)continue;const d=a[c]=a[c]||new Map;u.forEach((e=>{if(d.has(e))return;d.set(e,o.Started);let a=n(e);if(a){const n=this.opts.es5?t.varKinds.var:t.varKinds.const;l=r._`${l}${n} ${e} = ${a};${this.opts._n}`}else{if(!(a=null==s?void 0:s(e)))throw new i(e);l=r._`${l}${a}${this.opts._n}`}d.set(e,o.Completed)}))}return l}}},32507:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendErrors=t.resetErrorsCount=t.reportExtraError=t.reportError=t.keyword$DataError=t.keywordError=void 0;const r=n(28468),i=n(93880),o=n(42302);function a(e,t){const n=e.const("err",t);e.if(r._`${o.default.vErrors} === null`,(()=>e.assign(o.default.vErrors,r._`[${n}]`)),r._`${o.default.vErrors}.push(${n})`),e.code(r._`${o.default.errors}++`)}function s(e,t){const{gen:n,validateName:i,schemaEnv:o}=e;o.$async?n.throw(r._`new ${e.ValidationError}(${t})`):(n.assign(r._`${i}.errors`,t),n.return(!1))}t.keywordError={message:({keyword:e})=>r.str`must pass "${e}" keyword validation`},t.keyword$DataError={message:({keyword:e,schemaType:t})=>t?r.str`"${e}" keyword must be ${t} ($data)`:r.str`"${e}" keyword is invalid ($data)`},t.reportError=function(e,n=t.keywordError,i,o){const{it:l}=e,{gen:u,compositeRule:d,allErrors:h}=l,p=c(e,n,i);(null!=o?o:d||h)?a(u,p):s(l,r._`[${p}]`)},t.reportExtraError=function(e,n=t.keywordError,r){const{it:i}=e,{gen:l,compositeRule:u,allErrors:d}=i;a(l,c(e,n,r)),u||d||s(i,o.default.vErrors)},t.resetErrorsCount=function(e,t){e.assign(o.default.errors,t),e.if(r._`${o.default.vErrors} !== null`,(()=>e.if(t,(()=>e.assign(r._`${o.default.vErrors}.length`,t)),(()=>e.assign(o.default.vErrors,null)))))},t.extendErrors=function({gen:e,keyword:t,schemaValue:n,data:i,errsCount:a,it:s}){if(void 0===a)throw new Error("ajv implementation error");const l=e.name("err");e.forRange("i",a,o.default.errors,(a=>{e.const(l,r._`${o.default.vErrors}[${a}]`),e.if(r._`${l}.instancePath === undefined`,(()=>e.assign(r._`${l}.instancePath`,(0,r.strConcat)(o.default.instancePath,s.errorPath)))),e.assign(r._`${l}.schemaPath`,r.str`${s.errSchemaPath}/${t}`),s.opts.verbose&&(e.assign(r._`${l}.schema`,n),e.assign(r._`${l}.data`,i))}))};const l={keyword:new r.Name("keyword"),schemaPath:new r.Name("schemaPath"),params:new r.Name("params"),propertyName:new r.Name("propertyName"),message:new r.Name("message"),schema:new r.Name("schema"),parentSchema:new r.Name("parentSchema")};function c(e,t,n){const{createErrors:i}=e.it;return!1===i?r._`{}`:function(e,t,n={}){const{gen:i,it:a}=e,s=[u(a,n),d(e,n)];return function(e,{params:t,message:n},i){const{keyword:a,data:s,schemaValue:c,it:u}=e,{opts:d,propertyName:h,topSchemaRef:p,schemaPath:f}=u;i.push([l.keyword,a],[l.params,"function"==typeof t?t(e):t||r._`{}`]),d.messages&&i.push([l.message,"function"==typeof n?n(e):n]);d.verbose&&i.push([l.schema,c],[l.parentSchema,r._`${p}${f}`],[o.default.data,s]);h&&i.push([l.propertyName,h])}(e,t,s),i.object(...s)}(e,t,n)}function u({errorPath:e},{instancePath:t}){const n=t?r.str`${e}${(0,i.getErrorPath)(t,i.Type.Str)}`:e;return[o.default.instancePath,(0,r.strConcat)(o.default.instancePath,n)]}function d({keyword:e,it:{errSchemaPath:t}},{schemaPath:n,parentSchema:o}){let a=o?t:r.str`${t}/${e}`;return n&&(a=r.str`${a}${(0,i.getErrorPath)(n,i.Type.Str)}`),[l.schemaPath,a]}},93638:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveSchema=t.getCompilingSchema=t.resolveRef=t.compileSchema=t.SchemaEnv=void 0;const r=n(28468),i=n(22917),o=n(42302),a=n(6450),s=n(93880),l=n(13809);class c{constructor(e){var t;let n;this.refs={},this.dynamicAnchors={},"object"==typeof e.schema&&(n=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=null!==(t=e.baseId)&&void 0!==t?t:(0,a.normalizeId)(null==n?void 0:n[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=null==n?void 0:n.$async,this.refs={}}}function u(e){const t=h.call(this,e);if(t)return t;const n=(0,a.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:s,lines:c}=this.opts.code,{ownProperties:u}=this.opts,d=new r.CodeGen(this.scope,{es5:s,lines:c,ownProperties:u});let p;e.$async&&(p=d.scopeValue("Error",{ref:i.default,code:r._`require("ajv/dist/runtime/validation_error").default`}));const f=d.scopeName("validate");e.validateName=f;const g={gen:d,allErrors:this.opts.allErrors,data:o.default.data,parentData:o.default.parentData,parentDataProperty:o.default.parentDataProperty,dataNames:[o.default.data],dataPathArr:[r.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:d.scopeValue("schema",!0===this.opts.code.source?{ref:e.schema,code:(0,r.stringify)(e.schema)}:{ref:e.schema}),validateName:f,ValidationError:p,schema:e.schema,schemaEnv:e,rootId:n,baseId:e.baseId||n,schemaPath:r.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:r._`""`,opts:this.opts,self:this};let m;try{this._compilations.add(e),(0,l.validateFunctionCode)(g),d.optimize(this.opts.code.optimize);const t=d.toString();m=`${d.scopeRefs(o.default.scope)}return ${t}`,this.opts.code.process&&(m=this.opts.code.process(m,e));const n=new Function(`${o.default.self}`,`${o.default.scope}`,m)(this,this.scope.get());if(this.scope.value(f,{ref:n}),n.errors=null,n.schema=e.schema,n.schemaEnv=e,e.$async&&(n.$async=!0),!0===this.opts.code.source&&(n.source={validateName:f,validateCode:t,scopeValues:d._values}),this.opts.unevaluated){const{props:e,items:t}=g;n.evaluated={props:e instanceof r.Name?void 0:e,items:t instanceof r.Name?void 0:t,dynamicProps:e instanceof r.Name,dynamicItems:t instanceof r.Name},n.source&&(n.source.evaluated=(0,r.stringify)(n.evaluated))}return e.validate=n,e}catch(t){throw delete e.validate,delete e.validateName,m&&this.logger.error("Error compiling schema, function code:",m),t}finally{this._compilations.delete(e)}}function d(e){return(0,a.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:u.call(this,e)}function h(e){for(const r of this._compilations)if(n=e,(t=r).schema===n.schema&&t.root===n.root&&t.baseId===n.baseId)return r;var t,n}function p(e,t){let n;for(;"string"==typeof(n=this.refs[t]);)t=n;return n||this.schemas[t]||f.call(this,e,t)}function f(e,t){const n=this.opts.uriResolver.parse(t),r=(0,a._getFullPath)(this.opts.uriResolver,n);let i=(0,a.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&r===i)return m.call(this,n,e);const o=(0,a.normalizeId)(r),s=this.refs[o]||this.schemas[o];if("string"==typeof s){const t=f.call(this,e,s);if("object"!=typeof(null==t?void 0:t.schema))return;return m.call(this,n,t)}if("object"==typeof(null==s?void 0:s.schema)){if(s.validate||u.call(this,s),o===(0,a.normalizeId)(t)){const{schema:t}=s,{schemaId:n}=this.opts,r=t[n];return r&&(i=(0,a.resolveUrl)(this.opts.uriResolver,i,r)),new c({schema:t,schemaId:n,root:e,baseId:i})}return m.call(this,n,s)}}t.SchemaEnv=c,t.compileSchema=u,t.resolveRef=function(e,t,n){var r;n=(0,a.resolveUrl)(this.opts.uriResolver,t,n);const i=e.refs[n];if(i)return i;let o=p.call(this,e,n);if(void 0===o){const i=null===(r=e.localRefs)||void 0===r?void 0:r[n],{schemaId:a}=this.opts;i&&(o=new c({schema:i,schemaId:a,root:e,baseId:t}))}return void 0!==o?e.refs[n]=d.call(this,o):void 0},t.getCompilingSchema=h,t.resolveSchema=f;const g=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function m(e,{baseId:t,schema:n,root:r}){var i;if("/"!==(null===(i=e.fragment)||void 0===i?void 0:i[0]))return;for(const r of e.fragment.slice(1).split("/")){if("boolean"==typeof n)return;const e=n[(0,s.unescapeFragment)(r)];if(void 0===e)return;const i="object"==typeof(n=e)&&n[this.opts.schemaId];!g.has(r)&&i&&(t=(0,a.resolveUrl)(this.opts.uriResolver,t,i))}let o;if("boolean"!=typeof n&&n.$ref&&!(0,s.schemaHasRulesButRef)(n,this.RULES)){const e=(0,a.resolveUrl)(this.opts.uriResolver,t,n.$ref);o=f.call(this,r,e)}const{schemaId:l}=this.opts;return o=o||new c({schema:n,schemaId:l,root:r,baseId:t}),o.schema!==o.root.schema?o:void 0}},42302:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(28468),i={data:new r.Name("data"),valCxt:new r.Name("valCxt"),instancePath:new r.Name("instancePath"),parentData:new r.Name("parentData"),parentDataProperty:new r.Name("parentDataProperty"),rootData:new r.Name("rootData"),dynamicAnchors:new r.Name("dynamicAnchors"),vErrors:new r.Name("vErrors"),errors:new r.Name("errors"),this:new r.Name("this"),self:new r.Name("self"),scope:new r.Name("scope"),json:new r.Name("json"),jsonPos:new r.Name("jsonPos"),jsonLen:new r.Name("jsonLen"),jsonPart:new r.Name("jsonPart")};t.default=i},21698:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(6450);class i extends Error{constructor(e,t,n,i){super(i||`can't resolve reference ${n} from id ${t}`),this.missingRef=(0,r.resolveUrl)(e,t,n),this.missingSchema=(0,r.normalizeId)((0,r.getFullPath)(e,this.missingRef))}}t.default=i},6450:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSchemaRefs=t.resolveUrl=t.normalizeId=t._getFullPath=t.getFullPath=t.inlineRef=void 0;const r=n(93880),i=n(92792),o=n(23018),a=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);t.inlineRef=function(e,t=!0){return"boolean"==typeof e||(!0===t?!l(e):!!t&&c(e)<=t)};const s=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function l(e){for(const t in e){if(s.has(t))return!0;const n=e[t];if(Array.isArray(n)&&n.some(l))return!0;if("object"==typeof n&&l(n))return!0}return!1}function c(e){let t=0;for(const n in e){if("$ref"===n)return 1/0;if(t++,!a.has(n)&&("object"==typeof e[n]&&(0,r.eachItem)(e[n],(e=>t+=c(e))),t===1/0))return 1/0}return t}function u(e,t="",n){!1!==n&&(t=p(t));const r=e.parse(t);return d(e,r)}function d(e,t){return e.serialize(t).split("#")[0]+"#"}t.getFullPath=u,t._getFullPath=d;const h=/#\/?$/;function p(e){return e?e.replace(h,""):""}t.normalizeId=p,t.resolveUrl=function(e,t,n){return n=p(n),e.resolve(t,n)};const f=/^[a-z_][-a-z0-9._]*$/i;t.getSchemaRefs=function(e,t){if("boolean"==typeof e)return{};const{schemaId:n,uriResolver:r}=this.opts,a=p(e[n]||t),s={"":a},l=u(r,a,!1),c={},d=new Set;return o(e,{allKeys:!0},((e,t,r,i)=>{if(void 0===i)return;const o=l+t;let a=s[i];function u(t){const n=this.opts.uriResolver.resolve;if(t=p(a?n(a,t):t),d.has(t))throw g(t);d.add(t);let r=this.refs[t];return"string"==typeof r&&(r=this.refs[r]),"object"==typeof r?h(e,r.schema,t):t!==p(o)&&("#"===t[0]?(h(e,c[t],t),c[t]=e):this.refs[t]=o),t}function m(e){if("string"==typeof e){if(!f.test(e))throw new Error(`invalid anchor "${e}"`);u.call(this,`#${e}`)}}"string"==typeof e[n]&&(a=u.call(this,e[n])),m.call(this,e.$anchor),m.call(this,e.$dynamicAnchor),s[t]=a})),c;function h(e,t,n){if(void 0!==t&&!i(e,t))throw g(n)}function g(e){return new Error(`reference "${e}" resolves to more than one schema`)}}},56417:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRules=t.isJSONType=void 0;const n=new Set(["string","number","integer","boolean","null","object","array"]);t.isJSONType=function(e){return"string"==typeof e&&n.has(e)},t.getRules=function(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}},93880:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkStrictMode=t.getErrorPath=t.Type=t.useFunc=t.setEvaluated=t.evaluatedPropsToName=t.mergeEvaluated=t.eachItem=t.unescapeJsonPointer=t.escapeJsonPointer=t.escapeFragment=t.unescapeFragment=t.schemaRefOrVal=t.schemaHasRulesButRef=t.schemaHasRules=t.checkUnknownRules=t.alwaysValidSchema=t.toHash=void 0;const r=n(28468),i=n(61823);function o(e,t=e.schema){const{opts:n,self:r}=e;if(!n.strictSchema)return;if("boolean"==typeof t)return;const i=r.RULES.keywords;for(const n in t)i[n]||f(e,`unknown keyword: "${n}"`)}function a(e,t){if("boolean"==typeof e)return!e;for(const n in e)if(t[n])return!0;return!1}function s(e){return"number"==typeof e?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}function l(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function c({mergeNames:e,mergeToName:t,mergeValues:n,resultToName:i}){return(o,a,s,l)=>{const c=void 0===s?a:s instanceof r.Name?(a instanceof r.Name?e(o,a,s):t(o,a,s),s):a instanceof r.Name?(t(o,s,a),a):n(a,s);return l!==r.Name||c instanceof r.Name?c:i(o,c)}}function u(e,t){if(!0===t)return e.var("props",!0);const n=e.var("props",r._`{}`);return void 0!==t&&d(e,n,t),n}function d(e,t,n){Object.keys(n).forEach((n=>e.assign(r._`${t}${(0,r.getProperty)(n)}`,!0)))}t.toHash=function(e){const t={};for(const n of e)t[n]=!0;return t},t.alwaysValidSchema=function(e,t){return"boolean"==typeof t?t:0===Object.keys(t).length||(o(e,t),!a(t,e.self.RULES.all))},t.checkUnknownRules=o,t.schemaHasRules=a,t.schemaHasRulesButRef=function(e,t){if("boolean"==typeof e)return!e;for(const n in e)if("$ref"!==n&&t.all[n])return!0;return!1},t.schemaRefOrVal=function({topSchemaRef:e,schemaPath:t},n,i,o){if(!o){if("number"==typeof n||"boolean"==typeof n)return n;if("string"==typeof n)return r._`${n}`}return r._`${e}${t}${(0,r.getProperty)(i)}`},t.unescapeFragment=function(e){return l(decodeURIComponent(e))},t.escapeFragment=function(e){return encodeURIComponent(s(e))},t.escapeJsonPointer=s,t.unescapeJsonPointer=l,t.eachItem=function(e,t){if(Array.isArray(e))for(const n of e)t(n);else t(e)},t.mergeEvaluated={props:c({mergeNames:(e,t,n)=>e.if(r._`${n} !== true && ${t} !== undefined`,(()=>{e.if(r._`${t} === true`,(()=>e.assign(n,!0)),(()=>e.assign(n,r._`${n} || {}`).code(r._`Object.assign(${n}, ${t})`)))})),mergeToName:(e,t,n)=>e.if(r._`${n} !== true`,(()=>{!0===t?e.assign(n,!0):(e.assign(n,r._`${n} || {}`),d(e,n,t))})),mergeValues:(e,t)=>!0===e||{...e,...t},resultToName:u}),items:c({mergeNames:(e,t,n)=>e.if(r._`${n} !== true && ${t} !== undefined`,(()=>e.assign(n,r._`${t} === true ? true : ${n} > ${t} ? ${n} : ${t}`))),mergeToName:(e,t,n)=>e.if(r._`${n} !== true`,(()=>e.assign(n,!0===t||r._`${n} > ${t} ? ${n} : ${t}`))),mergeValues:(e,t)=>!0===e||Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})},t.evaluatedPropsToName=u,t.setEvaluated=d;const h={};var p;function f(e,t,n=e.opts.strictSchema){if(n){if(t=`strict mode: ${t}`,!0===n)throw new Error(t);e.self.logger.warn(t)}}t.useFunc=function(e,t){return e.scopeValue("func",{ref:t,code:h[t.code]||(h[t.code]=new i._Code(t.code))})},function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"}(p||(t.Type=p={})),t.getErrorPath=function(e,t,n){if(e instanceof r.Name){const i=t===p.Num;return n?i?r._`"[" + ${e} + "]"`:r._`"['" + ${e} + "']"`:i?r._`"/" + ${e}`:r._`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return n?(0,r.getProperty)(e).toString():"/"+s(e)},t.checkStrictMode=f},65012:(e,t)=>{"use strict";function n(e,t){return t.rules.some((t=>r(e,t)))}function r(e,t){var n;return void 0!==e[t.keyword]||(null===(n=t.definition.implements)||void 0===n?void 0:n.some((t=>void 0!==e[t])))}Object.defineProperty(t,"__esModule",{value:!0}),t.shouldUseRule=t.shouldUseGroup=t.schemaHasRulesForType=void 0,t.schemaHasRulesForType=function({schema:e,self:t},r){const i=t.RULES.types[r];return i&&!0!==i&&n(e,i)},t.shouldUseGroup=n,t.shouldUseRule=r},82474:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.boolOrEmptySchema=t.topBoolOrEmptySchema=void 0;const r=n(32507),i=n(28468),o=n(42302),a={message:"boolean schema is false"};function s(e,t){const{gen:n,data:i}=e,o={gen:n,keyword:"false schema",data:i,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,r.reportError)(o,a,void 0,t)}t.topBoolOrEmptySchema=function(e){const{gen:t,schema:n,validateName:r}=e;!1===n?s(e,!1):"object"==typeof n&&!0===n.$async?t.return(o.default.data):(t.assign(i._`${r}.errors`,null),t.return(!0))},t.boolOrEmptySchema=function(e,t){const{gen:n,schema:r}=e;!1===r?(n.var(t,!1),s(e)):n.var(t,!0)}},42965:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reportTypeError=t.checkDataTypes=t.checkDataType=t.coerceAndCheckDataType=t.getJSONTypes=t.getSchemaTypes=t.DataType=void 0;const r=n(56417),i=n(65012),o=n(32507),a=n(28468),s=n(93880);var l;function c(e){const t=Array.isArray(e)?e:e?[e]:[];if(t.every(r.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}!function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"}(l||(t.DataType=l={})),t.getSchemaTypes=function(e){const t=c(e.type);if(t.includes("null")){if(!1===e.nullable)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&void 0!==e.nullable)throw new Error('"nullable" cannot be used without "type"');!0===e.nullable&&t.push("null")}return t},t.getJSONTypes=c,t.coerceAndCheckDataType=function(e,t){const{gen:n,data:r,opts:o}=e,s=function(e,t){return t?e.filter((e=>u.has(e)||"array"===t&&"array"===e)):[]}(t,o.coerceTypes),c=t.length>0&&!(0===s.length&&1===t.length&&(0,i.schemaHasRulesForType)(e,t[0]));if(c){const i=h(t,r,o.strictNumbers,l.Wrong);n.if(i,(()=>{s.length?function(e,t,n){const{gen:r,data:i,opts:o}=e,s=r.let("dataType",a._`typeof ${i}`),l=r.let("coerced",a._`undefined`);"array"===o.coerceTypes&&r.if(a._`${s} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,(()=>r.assign(i,a._`${i}[0]`).assign(s,a._`typeof ${i}`).if(h(t,i,o.strictNumbers),(()=>r.assign(l,i)))));r.if(a._`${l} !== undefined`);for(const e of n)(u.has(e)||"array"===e&&"array"===o.coerceTypes)&&c(e);function c(e){switch(e){case"string":return void r.elseIf(a._`${s} == "number" || ${s} == "boolean"`).assign(l,a._`"" + ${i}`).elseIf(a._`${i} === null`).assign(l,a._`""`);case"number":return void r.elseIf(a._`${s} == "boolean" || ${i} === null || (${s} == "string" && ${i} && ${i} == +${i})`).assign(l,a._`+${i}`);case"integer":return void r.elseIf(a._`${s} === "boolean" || ${i} === null || (${s} === "string" && ${i} && ${i} == +${i} && !(${i} % 1))`).assign(l,a._`+${i}`);case"boolean":return void r.elseIf(a._`${i} === "false" || ${i} === 0 || ${i} === null`).assign(l,!1).elseIf(a._`${i} === "true" || ${i} === 1`).assign(l,!0);case"null":return r.elseIf(a._`${i} === "" || ${i} === 0 || ${i} === false`),void r.assign(l,null);case"array":r.elseIf(a._`${s} === "string" || ${s} === "number" - || ${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},85483:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assignDefaults=void 0;const r=n(28468),i=n(93880);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)))}},13809:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getData=t.KeywordCxt=t.validateFunctionCode=void 0;const r=n(82474),i=n(42965),o=n(65012),a=n(42965),s=n(85483),l=n(91754),c=n(35728),u=n(28468),d=n(42302),h=n(6450),p=n(93880),f=n(32507);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)&&(x(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);w(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 x(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 w(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=>{_(e.dataTypes,t)||k(e,`type "${t}" not allowed by context "${e.dataTypes.join(",")}"`)})),function(e,t){const n=[];for(const r of e.dataTypes)_(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"))&&k(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)))&&k(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 _(e,t){return e.includes(t)||"integer"===t&&e.includes("number")}function k(e,t){t+=` at "${e.schemaEnv.baseId+e.errSchemaPath}" (strictTypes)`,(0,p.checkStrictMode)(e,t,e.opts.strictTypes)}t.validateFunctionCode=function(e){b(e)&&(x(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),w(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 T{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 T(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=T;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},91754:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateKeywordUsage=t.validSchemaType=t.funcKeywordCode=t.macroKeywordCode=void 0;const r=n(28468),i=n(42302),o=n(4828),a=n(32507);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)}}}},35728:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendSubschemaMode=t.extendSubschemaData=t.getSubschema=void 0;const r=n(28468),i=n(93880);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}},86557:(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(13809);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return r.KeywordCxt}});var i=n(28468);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(22917),a=n(21698),s=n(56417),l=n(93638),c=n(28468),u=n(6450),d=n(42965),h=n(93880),p=n(98560),f=n(83253),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 x(e){var t,n,r,i,o,a,s,l,c,u,d,h,p,m,y,v,b,x,w,A,S,C,E,_,k;const T=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:T)||void 0===a||a,strictNumbers:null===(l=null!==(s=e.strictNumbers)&&void 0!==s?s:T)||void 0===l||l,strictTypes:null!==(u=null!==(c=e.strictTypes)&&void 0!==c?c:T)&&void 0!==u?u:"log",strictTuples:null!==(h=null!==(d=e.strictTuples)&&void 0!==d?d:T)&&void 0!==h?h:"log",strictRequired:null!==(m=null!==(p=e.strictRequired)&&void 0!==p?p:T)&&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===(x=e.messages)||void 0===x||x,inlineRefs:null===(w=e.inlineRefs)||void 0===w||w,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===(_=e.unicodeRegExp)||void 0===_||_,int32range:null===(k=e.int32range)||void 0===k||k,uriResolver:M}}class w{constructor(e={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...x(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 T;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=k.call(this),e.formats&&E.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&_.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 _(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 k(){const e={...this.opts};for(const t of m)delete e[t];return e}w.ValidationError=o.default,w.MissingRefError=a.default,t.default=w;const T={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]}}},69903:(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},42462:(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(21188);r.code='require("ajv/dist/runtime/uri").default',t.default=r},22917:(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},7424:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateAdditionalItems=void 0;const r=n(28468),i=n(93880),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},78887:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4828),i=n(28468),o=n(42302),a=n(93880),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},10077:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(93880),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},56924:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:n(4828).validateUnion,error:{message:"must match a schema in anyOf"}};t.default=r},30670:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(28468),i=n(93880),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},76730:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateSchemaDeps=t.validatePropertyDeps=t.error=void 0;const r=n(28468),i=n(93880),o=n(4828);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}, + || ${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},85483:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assignDefaults=void 0;const r=n(28468),i=n(93880);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)))}},13809:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getData=t.KeywordCxt=t.validateFunctionCode=void 0;const r=n(82474),i=n(42965),o=n(65012),a=n(42965),s=n(85483),l=n(91754),c=n(35728),u=n(28468),d=n(42302),h=n(6450),p=n(93880),f=n(32507);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=>{_(e.dataTypes,t)||k(e,`type "${t}" not allowed by context "${e.dataTypes.join(",")}"`)})),function(e,t){const n=[];for(const r of e.dataTypes)_(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"))&&k(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)))&&k(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 _(e,t){return e.includes(t)||"integer"===t&&e.includes("number")}function k(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 T{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 T(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=T;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},91754:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateKeywordUsage=t.validSchemaType=t.funcKeywordCode=t.macroKeywordCode=void 0;const r=n(28468),i=n(42302),o=n(4828),a=n(32507);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)}}}},35728:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendSubschemaMode=t.extendSubschemaData=t.getSubschema=void 0;const r=n(28468),i=n(93880);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}},86557:(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(13809);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return r.KeywordCxt}});var i=n(28468);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(22917),a=n(21698),s=n(56417),l=n(93638),c=n(28468),u=n(6450),d=n(42965),h=n(93880),p=n(98560),f=n(83253),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;const T=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:T)||void 0===a||a,strictNumbers:null===(l=null!==(s=e.strictNumbers)&&void 0!==s?s:T)||void 0===l||l,strictTypes:null!==(u=null!==(c=e.strictTypes)&&void 0!==c?c:T)&&void 0!==u?u:"log",strictTuples:null!==(h=null!==(d=e.strictTuples)&&void 0!==d?d:T)&&void 0!==h?h:"log",strictRequired:null!==(m=null!==(p=e.strictRequired)&&void 0!==p?p:T)&&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===(_=e.unicodeRegExp)||void 0===_||_,int32range:null===(k=e.int32range)||void 0===k||k,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 T;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=k.call(this),e.formats&&E.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&_.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 _(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 k(){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 T={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]}}},69903:(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},42462:(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(21188);r.code='require("ajv/dist/runtime/uri").default',t.default=r},22917:(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},7424:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateAdditionalItems=void 0;const r=n(28468),i=n(93880),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},78887:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4828),i=n(28468),o=n(42302),a=n(93880),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},10077:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(93880),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},56924:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:n(4828).validateUnion,error:{message:"must match a schema in anyOf"}};t.default=r},30670:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(28468),i=n(93880),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},76730:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateSchemaDeps=t.validatePropertyDeps=t.error=void 0;const r=n(28468),i=n(93880),o=n(4828);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},2032:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(28468),i=n(93880),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},88671:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(7424),i=n(64939),o=n(90007),a=n(16391),s=n(30670),l=n(76730),c=n(19284),u=n(78887),d=n(16706),h=n(94560),p=n(3974),f=n(56924),g=n(31410),m=n(10077),y=n(2032),v=n(45301);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}},90007:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateTuple=void 0;const r=n(28468),i=n(93880),o=n(4828),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},16391:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(28468),i=n(93880),o=n(4828),a=n(7424),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},3974:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(93880),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},31410:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(28468),i=n(93880),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},94560:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4828),i=n(28468),o=n(93880),a=n(93880),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},64939:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(90007),i={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,r.validateTuple)(e,"items")};t.default=i},16706:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(13809),i=n(4828),o=n(93880),a=n(78887),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},19284:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(28468),i=n(93880),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},45301:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(93880),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},4828:(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(28468),i=n(93880),o=n(42302),a=n(93880);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)))}},25048:(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},39245:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(25048),i=n(95628),o=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",r.default,i.default];t.default=o},95628:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.callRef=t.getValidate=void 0;const r=n(21698),i=n(4828),o=n(28468),a=n(42302),s=n(93638),l=n(93880),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},83246:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(28468),i=n(70243),o=n(93638),a=n(93880),s={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:s,parentSchema:l,it:c}=e,{oneOf:u}=l;if(!c.opts.discriminator)throw new Error("discriminator: requires discriminator option");const d=s.propertyName;if("string"!=typeof d)throw new Error("discriminator: requires propertyName");if(s.mapping)throw new Error("discriminator: mapping is not supported");if(!u)throw new Error("discriminator: requires oneOf keyword");const h=t.let("valid",!1),p=t.const("tag",r._`${n}${(0,r.getProperty)(d)}`);function f(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 ${p} == "string"`,(()=>function(){const n=function(){var e;const t={},n=i(l);let r=!0;for(let t=0;te.error(!1,{discrError:i.DiscrError.Tag,tag:p,tagName:d}))),e.ok(h)}};t.default=s},70243:(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={}))},82797:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(39245),i=n(11169),o=n(88671),a=n(59009),s=n(74276),l=[r.default,i.default,(0,o.default)(),a.default,s.metadataVocabulary,s.contentVocabulary];t.default=l},71498:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(28468),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},59009:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=[n(71498).default];t.default=r},74276:(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"]},39090:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(28468),i=n(93880),o=n(69903),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},57352:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(28468),i=n(93880),o=n(69903),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},11169:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(52083),i=n(98876),o=n(29770),a=n(49615),s=n(36263),l=n(56560),c=n(53248),u=n(6324),d=n(39090),h=n(57352),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},53248:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(28468),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},29770:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(28468),i=n(93880),o=n(42462),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},52083:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(28468),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},36263:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(28468),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},98876:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(28468),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},49615:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4828),i=n(28468),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},56560:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4828),i=n(28468),o=n(93880),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},6324:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(42965),i=n(28468),o=n(93880),a=n(69903),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},8259:(e,t,n)=>{"use strict";n.d(t,{FU:()=>A,JE:()=>i,NA:()=>w,NF:()=>C,Nt:()=>b,OD:()=>g,Su:()=>l,VN:()=>x,Zr:()=>s,fW:()=>a,if:()=>p,ir:()=>u,mq:()=>v,nC:()=>y,ns:()=>d,oR:()=>o,qf:()=>h,t7:()=>S,wJ:()=>m,y5:()=>c});var r=n(86891),i={VECTOR:"vector",VECTOR_TILE:"vector-tile",RASTER_TILE:"raster-tile",RASTER_IMAGE:"raster-image",GROUP:"group"},o={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"},a={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"},s={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:""},l="https://cgpv/schema#/definitions/MapFeatureConfig",c="https://cgpv/schema#/definitions/TypeLayerGroupEntryConfig",u=["1.0"],d=["en","fr"],h=["dark","light","geo.ca"],p=[3978,3857],f=["transport","osm","simple","nogeom","shaded"],g={3857:f,3978:f},m={3857:[!0,!1],3978:[!0,!1]},y={3857:[!0,!1],3978:[!0,!1]},v={3857:{lat:[-90,90],long:[-180,180]},3978:{lat:[40,90],long:[-140,40]}},b={3857:[-170,35,-20,84],3978:[-135,25,-50,89]},x={3857:[-90,55],3978:[-90,60]},w=(0,r.K)({map:{basemapOptions:{basemapId:"transport",shaded:!0,labeled:!0},interaction:"dynamic",listOfGeoviewLayerConfig:[],highlightColor:"black",viewSettings:{initialView:{zoomAndCenter:[3.5,x[3978]]},enableRotation:!0,rotation:0,minZoom:0,maxZoom:50,maxExtent:b[3978],projection:3978},extraOptions:{}},theme:"geo.ca",navBar:["zoom","fullscreen","home"],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"},schemaVersionUsed:"1.0"}),A={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}},S=["geolocator","legend","layers","details","data-table","guide"],C={GEOLOCATOR:"geolocator",EXPORT:"export",GUIDE:"guide",DETAILS:"details",LEGEND:"legend",DATA_TABLE:"data-table",LAYERS:"layers"}},86891:(e,t,n)=>{"use strict";n.d(t,{K:()=>i,N:()=>o});var r=n(31625);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}},37189:(e,t,n)=>{"use strict";n.d(t,{F:()=>g});var r=n(43994),i=n(28249),o=n(70640),a=n(32814),s=n(59615),l=n.n(s),c=n(58643),u=n(60854),d=n(79913);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}()},92288:(e,t,n)=>{"use strict";n.d(t,{K:()=>b});var r=n(43994),i=n(70640),o=n(32814),a=n(71149),s=n(66138),l=n(99979),c=n(38096),u=n(59615),d=n.n(u),h=n(37189),p=n(79913),f=n(26098),g=n(98030),m=n(60854);function y(e,t,n){return t=(0,l.A)(t),(0,a.A)(e,v()?Reflect.construct(t,n||[],(0,l.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){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(0,s.A)((0,l.A)(t),"getState",this).call(this,e).appState}},{key:"getAppStateAsync",value:(u=(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,(0,s.A)((0,l.A)(t),"getStateAsync",this).call(this,n);case 2:return e.abrupt("return",e.sent.appState);case 3:case"end":return e.stop()}}),e,this)}))),function(e){return u.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:"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,u}(h.F)},38890:(e,t,n)=>{"use strict";n.d(t,{F:()=>g});var r=n(28249),i=n(70640),o=n(32814),a=n(71149),s=n(66138),l=n(99979),c=n(38096),u=n(37189),d=n(60854),h=n(98030);function p(e,t,n){return t=(0,l.A)(t),(0,a.A)(e,f()?Reflect.construct(t,n||[],(0,l.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(){return(0,i.A)(this,t),p(this,t,arguments)}return(0,c.A)(t,e),(0,o.A)(t,null,[{key:"getDataTableState",value:function(e){return(0,s.A)((0,l.A)(t),"getState",this).call(this,e).dataTableState}},{key:"applyFilters",value:function(e,t,n,r){var i=h.d.getMapViewerLayerAPI(e).getGeoviewLayerHybrid(t),o=null==i?void 0:i.getLayerConfig(t);r&&void 0!==o&&n.length?null==i||i.applyViewFilter(t,n):null==i||i.applyViewFilter(t,"")}},{key:"setInitialSettings",value:function(e,t){this.getDataTableState(e).setterActions.setInitiallayerDataTableSetting(t)}},{key:"triggerGetAllFeatureInfo",value:function(e,t){return h.d.getMapViewerLayerAPI(e).allFeatureInfoLayerSet.queryLayer(t,"all")}},{key:"propagateFeatureInfoToStore",value:function(e,t){var n=(0,r.A)(this.getDataTableState(e).allFeaturesDataArray);n.find((function(e){return e.layerPath===t.layerPath}))||n.push(t),this.getDataTableState(e).setterActions.setAllFeaturesDataArray(n)}},{key:"deleteFeatureAllInfo",value:function(e,n){var r=this;(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")})(t,this,m).call(this,this.getDataTableState(e).allFeaturesDataArray,n,(function(t){r.getDataTableState(e).setterActions.setAllFeaturesDataArray(t),d.vF.logInfo("Removed Data Table Info in stores for layer path:",n)}))}}])}(u.F);function m(e,t,n){var r=e.findIndex((function(e){return e.layerPath===t}));r>=0&&(e.splice(r,1),n(e))}},77914:(e,t,n)=>{"use strict";n.d(t,{h:()=>y});var r,i=n(28249),o=n(70640),a=n(32814),s=n(71149),l=n(66138),c=n(99979),u=n(38096),d=n(60854),h=n(37189),p=n(38829);function f(e,t,n){return t=(0,c.A)(t),(0,s.A)(e,g()?Reflect.construct(t,n||[],(0,c.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){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=function(e){function t(){return(0,o.A)(this,t),f(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),b.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(0,l.A)((0,c.A)(t),"getState",this).call(this,e).detailsState}},{key:"deleteFeatureInfo",value:function(e,n){var r=this.getFeatureInfoState(e);m(t,this,v).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,"AppbarPanelButtonDetails","details",!0))}else"name"===t&&r.setterActions.setLayerDataArray(o);return Promise.resolve()}}])}(h.F);function v(e,t,n){var r=e.findIndex((function(e){return e.layerPath===t}));r>=0&&(e.splice(r,1),n(e))}function b(e,t){var n=this.getFeatureInfoState(e);return this.helperPropagateArrayStoreBatch(e,t,m(r,this,x)._,m(r,this,w)._,n.setterActions.setLayerDataArrayBatch,"feature-info-processor",n.layerDataArrayBatchLayerPathBypass,n.setterActions.setLayerDataArrayBatchLayerPathBypass)}r=y;var x={_:{}},w={_:1e3}},80084:(e,t,n)=>{"use strict";n.d(t,{U:()=>y});var r,i=n(64426),o=n(70640),a=n(32814),s=n(71149),l=n(66138),c=n(99979),u=n(38096),d=n(60854);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,{K:()=>A});var r,i=n(47361),o=n(70640),a=n(32814),s=n(71149),l=n(66138),c=n(99979),u=n(38096),d=n(18260),h=n.n(d),p=n(85813),f=n(79913),g=n(37189),m=n(48660),y=n(92288),v=n(98030);function b(e,t,n){return t=(0,c.A)(t),(0,s.A)(e,x()?Reflect.construct(t,n||[],(0,c.A)(e).constructor):t.apply(e,n))}function x(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(x=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 A=function(e){function t(){return(0,o.A)(this,t),b(this,t,arguments)}return(0,u.A)(t,e),(0,a.A)(t,null,[{key:"getLayerState",value:function(e){return(0,l.A)((0,c.A)(t),"getState",this).call(this,e).layerState}},{key:"getLayerIconImage",value:function(e){var t=[];if(e){if((0,p.XY)(e)||(0,p.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,p.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,m.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,m.$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,m.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,i=r.split("/"),o=function(e){var t,n,r,i,o,a,s,l,c,u,d,h,p,f,g,m;return{highlight:void 0===(null===(t=e.initialSettings)||void 0===t||null===(t=t.controls)||void 0===t?void 0:t.highlight)||(null===(n=e.initialSettings)||void 0===n||null===(n=n.controls)||void 0===n?void 0:n.highlight),hover:void 0===(null===(r=e.initialSettings)||void 0===r||null===(r=r.controls)||void 0===r?void 0:r.hover)||(null===(i=e.initialSettings)||void 0===i||null===(i=i.controls)||void 0===i?void 0:i.hover),opacity:void 0===(null===(o=e.initialSettings)||void 0===o||null===(o=o.controls)||void 0===o?void 0:o.opacity)||(null===(a=e.initialSettings)||void 0===a||null===(a=a.controls)||void 0===a?void 0:a.opacity),query:void 0===(null===(s=e.initialSettings)||void 0===s||null===(s=s.controls)||void 0===s?void 0:s.query)||(null===(l=e.initialSettings)||void 0===l||null===(l=l.controls)||void 0===l?void 0:l.query),remove:void 0===(null===(c=e.initialSettings)||void 0===c||null===(c=c.controls)||void 0===c?void 0:c.remove)||(null===(u=e.initialSettings)||void 0===u||null===(u=u.controls)||void 0===u?void 0:u.remove),table:void 0===(null===(d=e.initialSettings)||void 0===d||null===(d=d.controls)||void 0===d?void 0:d.table)||(null===(h=e.initialSettings)||void 0===h||null===(h=h.controls)||void 0===h?void 0:h.table),visibility:void 0===(null===(p=e.initialSettings)||void 0===p||null===(p=p.controls)||void 0===p?void 0:p.visibility)||(null===(f=e.initialSettings)||void 0===f||null===(f=f.controls)||void 0===f?void 0:f.visibility),zoom:void 0===(null===(g=e.initialSettings)||void 0===g||null===(g=g.controls)||void 0===g?void 0:g.zoom)||(null===(m=e.initialSettings)||void 0===m||null===(m=m.controls)||void 0===m?void 0:m.zoom)}},a=this.getLayerState(e).legendLayers;!function a(s,l){if(!(i.length0){var o=t.findLayerByPath(e.children,n);o&&(r=o)}})),r}},{key:"deleteLayerFromLegendLayers",value:function(e,n){var r=this.getLayerState(e).legendLayers;S.call(t,e,r,n)}},{key:"deleteLayer",value:function(e,t){v.d.getMapViewerLayerAPI(e).removeLayerUsingPath(t)}},{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){v.d.getMapViewerLayerAPI(e).setItemVisibility(t,n,!n.isVisible)}},{key:"setAllItemsVisibility",value:function(e,t,n){v.d.setOrToggleMapLayerVisibility(e,t,!0);var r=this.getLayerState(e).legendLayers,i=this.findLayerByPath(r,t);i&&i.items.forEach((function(r){v.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,o=t.findLayerByPath(i,n);o&&(o.opacity=r,w(t,this,C).call(this,e,o,r)),this.getLayerState(e).setterActions.setLegendLayers(i)}}])}(g.F);function S(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&&S.call(r,e,t.children,n)}))}function C(e,t,n){var i,o=this,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];h()(t,"opacity",n),null===(i=v.d.getMapViewerLayerAPI(e).getGeoviewLayer(t.layerPath))||void 0===i||i.setOpacity(n,t.layerPath),a&&h()(t,"opacityFromParent",n),t.children&&t.children.length>0&&t.children.forEach((function(t){w(r,o,C).call(o,e,t,n,!0)}))}r=A},98030:(e,t,n)=>{"use strict";n.d(t,{d:()=>D});var r=n(47361),i=n(43994),o=n(28249),a=n(70640),s=n(32814),l=n(71149),c=n(99979),u=n(38096),d=n(64426),h=n(59615),p=n.n(h),f=n(55731),g=n(99423),m=n(34336);const y="units",v=[1,2,5],b=25.4/.28;class x 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 x=this.scaleBar_?this.createScaleBar(d,u,c):u.toFixed(h<0?-h:0)+" "+c;this.renderedHTML_!=x&&(this.innerElement_.innerHTML=x,this.renderedHTML_=x),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 w=x;var A,S=n(8584),C=n(11989),E=n(8259),_=n(86784),k=n(58368),T=n(85813),O=n(12311),P=n(58643),I=n(46457),M=n(60854),L=n(79913),R=n(92288);function j(e,t,n){return t=(0,c.A)(t),(0,l.A)(e,F()?Reflect.construct(t,n||[],(0,c.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 D=function(e){function t(){return(0,a.A)(this,t),j(this,t,arguments)}return(0,u.A)(t,e),(0,s.A)(t,[{key:"onInitialize",value:function(e){var n=e.getState().mapId;return[e.subscribe((function(e){return e.mapState.highlightedFeatures}),(function(e,r){if(M.vF.logTraceCoreStoreSubscription("MAP EVENT PROCESSOR - highlightedFeatures",n,e),0===e.length)t.getMapViewerLayerAPI(n).featureHighlight.removeHighlight("all");else{for(var i=e.map((function(e){return e.geometry.ol_uid})),o=r.map((function(e){return e.geometry.ol_uid})),a=e.filter((function(e){return!o.includes(e.geometry.ol_uid)})),s=r.filter((function(e){return!i.includes(e.geometry.ol_uid)})),l=0;l2&&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:"getMapIndexFromOrderedLayerInfo",value:function(e,t){for(var n=this.getMapStateProtected(e).orderedLayerInfo,r=0;r0;)(d+=r)===a.length||0===d?i=0:a[d].layerPath.split("/").length===h&&i--;a.splice.apply(a,[d,0].concat((0,o.A)(u))),this.setMapOrderedLayerInfo(e,a)}},{key:"replaceOrderedLayerInfo",value:function(e,t,n){var r=this.getMapStateProtected(e).orderedLayerInfo,i=t.geoviewLayerId?"".concat(t.geoviewLayerId,"/").concat(t.geoviewLayerId):t.layerPath,a=this.getMapIndexFromOrderedLayerInfo(e,n||i),s=r.filter((function(e){return e.layerPath.startsWith(n||i)})),l=k.A.generateArrayOfLayerOrderInfo(t);r.splice.apply(r,[a,s.length].concat((0,o.A)(l))),this.setMapOrderedLayerInfo(e,r)}},{key:"addOrderedLayerInfo",value:function(e,t,n){var r=this.getMapStateProtected(e).orderedLayerInfo,i=k.A.generateArrayOfLayerOrderInfo(t);n?r.splice.apply(r,[n,0].concat((0,o.A)(i))):r.unshift.apply(r,(0,o.A)(i)),this.setMapOrderedLayerInfo(e,r)}},{key:"removeOrderedLayerInfo",value:function(e,t){var n=this.getMapStateProtected(e).orderedLayerInfo.filter((function(e){return!e.layerPath.startsWith(t)}));this.setMapOrderedLayerInfo(e,n)}},{key:"createOverviewMapBasemap",value:function(e){return this.getMapViewer(e).basemap.getOverviewMap()}},{key:"resetBasemap",value:function(e){var t=R.K.getDisplayLanguage(e),n=this.getMapState(e).currentProjection;return this.getMapViewer(e).basemap.loadDefaultBasemaps(n,t)}},{key:"setMapKeyboardPanInteractions",value:function(e,t){var n=this.getMapViewer(e).map;n.getInteractions().forEach((function(e){e instanceof C.A&&n.removeInteraction(e)})),n.addInteraction(new C.A({pixelDelta:t}))}},{key:"setMapOverviewMapRoot",value:function(e,t){this.getMapViewer(e).overviewRoot=t}},{key:"zoomToExtent",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{padding:[100,100,100,100],maxZoom:11,duration:1e3};return this.getMapViewer(e).getView().fit(t,n),new Promise((function(e){setTimeout((function(){e()}),(n.duration||1e3)+150)}))}},{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(28249),i=n(70640),o=n(32814),a=n(71149),s=n(66138),l=n(99979),c=n(38096),u=n(60854);function d(e,t,n){return t=(0,l.A)(t),(0,a.A)(e,h()?Reflect.construct(t,n||[],(0,l.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(0,s.A)((0,l.A)(t),"getState",this).call(this,e).swiperState}},{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(37189).F)},6106:(e,t,n)=>{"use strict";n.d(t,{t:()=>x});var r=n(64426),i=n(70640),o=n(32814),a=n(71149),s=n(66138),l=n(99979),c=n(38096),u=n(37189),d=n(79913),h=n(30560),p=n(21838),f=n(92288),g=n(98030),m=n(64873),y=n(82015);function v(e,t,n){return t=(0,l.A)(t),(0,a.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})()}var x=function(e){function t(){return(0,i.A)(this,t),v(this,t,arguments)}return(0,c.A)(t,e),(0,o.A)(t,null,[{key:"getTimesliderState",value:function(e){return(0,s.A)((0,l.A)(t),"getState",this).call(this,e).timeSliderState}},{key:"checkInitTimeSliderLayerAndApplyFilters",value:function(e,t){if(this.getTimesliderState(e)){var n=this.getInitialTimeSliderValues(e,t);n&&this.addTimeSliderLayerAndApplyFilters(e,t.layerPath,n)}}},{key:"addTimeSliderLayerAndApplyFilters",value:function(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.applyFilters(e,t,s,l,c,u,d)}}},{key:"removeTimeSliderLayer",value:function(e,t){var n;null===(n=this.getTimesliderState(e))||void 0===n||n.setterActions.removeTimeSliderLayer(t)}},{key:"getInitialTimeSliderValues",value:function(e,t){var n,r;if(t.layerPath){var i=g.d.getMapViewerLayerAPI(e).getGeoviewLayerHybrid(t.layerPath).getTemporalDimension(t.layerPath);if(i&&i.range){var o,a,s=i.range.range,l=Array.isArray(i.default),c=l?i.default[0]:i.default,u=[new Date(s[0]).getTime(),new Date(s[s.length-1]).getTime()],h=i.field,p=i.singleHandle,m=i.nearestValues,y=h,v=t.source.featureInfo;if(v){var b,x,w=v,A=w.aliasFields,S=w.outfields;a=null===(b=(0,d.getLocalizedValue)(S,f.K.getDisplayLanguage(e)))||void 0===b?void 0:b.split(","),o=null===(x=(0,d.getLocalizedValue)(A,f.K.getDisplayLanguage(e)))||void 0===x?void 0:x.split(",")}var C=a?a.indexOf(h):-1;return-1!==C&&o&&a&&(null===(n=o)||void 0===n?void 0:n.length)===(null===(r=a)||void 0===r?void 0:r.length)&&(y=o[C]),{range:s,defaultValue:c,discreteValues:"discrete"===m,minAndMax:u,field:h,fieldAlias:y,singleHandle:p,filtering:!0,values:p?[new Date(i.default).getTime()]:l?[new Date(i.default[0]).getTime(),new Date(i.default[1]).getTime()]:[].concat(u),delay:1e3,locked:void 0,reversed:void 0}}}}},{key:"applyFilters",value:function(e,t,n,r,i,o,a){var s,l,c=g.d.getMapViewerLayerAPI(e).getGeoviewLayerHybrid(t);if(c instanceof h.GB||c instanceof m.V)if(i){var u="".concat(new Date(a[0]).toISOString().slice(0,new Date(a[0]).toISOString().length-5),"Z"),d="".concat(r,"=date '").concat(u,"'");c.applyViewFilter(t,d)}else{var f="".concat(r,"=date '").concat(n,"'");c.applyViewFilter(t,f)}else if(c instanceof p.$x||c instanceof y.o)if(i){var v="time=".concat(o[0],",").concat(a[0]);c.applyViewFilter(t,v)}else{var b="time=".concat(o[0],",").concat(n);c.applyViewFilter(t,b)}else if(i){var x="".concat(r," >= date '").concat(new Date(a[0]).toISOString(),"'");a.length>1&&(x+=" and ".concat(r," <= date '").concat(new Date(a[1]).toISOString(),"'")),c.applyViewFilter(t,x)}else{var w="".concat(r," >= date '").concat(new Date(o[0]).toISOString(),"'");a.length>1&&(w+="and ".concat(r," <= date '").concat(new Date(o[1]).toISOString(),"'")),c.applyViewFilter(t,w)}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)}}])}(u.F)},38829:(e,t,n)=>{"use strict";n.d(t,{d:()=>d});var r=n(70640),i=n(32814),o=n(71149),a=n(66138),s=n(99979),l=n(38096);function c(e,t,n){return t=(0,s.A)(t),(0,o.A)(e,u()?Reflect.construct(t,n||[],(0,s.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(){return(0,r.A)(this,t),c(this,t,arguments)}return(0,l.A)(t,e),(0,i.A)(t,null,[{key:"getUIState",value:function(e){return(0,a.A)((0,s.A)(t),"getState",this).call(this,e).uiState}},{key:"getActiveFooterBarTab",value:function(e){return this.getUIState(e).activeFooterBarTabId}},{key:"getAppBarComponents",value:function(e){return this.getUIState(e).appBarComponents}},{key:"getCorePackageComponents",value:function(e){return this.getUIState(e).corePackagesComponents}},{key:"setActiveFooterBarTab",value:function(e,t){this.getUIState(e).setterActions.setActiveFooterBarTab(t)}},{key:"setActiveAppBarTab",value:function(e,t,n,r){this.getUIState(e).setterActions.setActiveAppBarTab(t,n,r)}},{key:"getActiveAppBarTab",value:function(e){return this.getUIState(e).activeAppBarTab}}])}(n(37189).F)},16221:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(70640),i=n(32814),o=function(){return(0,i.A)((function e(){(0,r.A)(this,e)}),null,[{key:"emitEvent",value:function(e,t,n){t.forEach((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)}}])}()},50196:(e,t,n)=>{"use strict";n.d(t,{G:()=>s});var r=n(70640),i=n(32814),o=n(64426),a=n(60854),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)))}}])}()},90763:(e,t,n)=>{"use strict";n.d(t,{k:()=>x});var r=n(31625),i=n(43994),o=n(70640),a=n(32814),s=n(64426),l=n(59615),c=n.n(l),u=n(30538),d=n(65868),h=n(43331),p=n(94145),f=n(58839),g=n.n(f),m=n(79913),y=n(86784),v=n(60854),b=n(98030),x=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,x,w,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(),x=s.defaultConfig(),w=new(g())({strict:!1,allErrors:!0}),A=w.compile(m),l=x,!(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(_=0;_{"use strict";n.d(t,{FHQ:()=>jt,WDX:()=>Ut,d1f:()=>Dt});var r=n(43994),i=n(59615),o=n.n(i),a=n(30538),s=n(17004),l=n(6467),c=n(94145),u=n(27612),d=n.n(u),h=n(15397),p=n.n(h),f=n(76743),g=n.n(f),m=n(34804),y=n.n(m),v=n(74032),b=n.n(v),x=n(60605),w=n.n(x),A=n(77946),S={};S.styleTagTransform=w(),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(3836),E={};E.styleTagTransform=w(),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 _=n(98189),k={};k.styleTagTransform=w(),k.setAttributes=y(),k.insert=g().bind(null,"head"),k.domAPI=p(),k.insertStyleElement=b();d()(_.A,k);_.A&&_.A.locals&&_.A.locals;var T=n(20522),O={};O.styleTagTransform=w(),O.setAttributes=y(),O.insert=g().bind(null,"head"),O.domAPI=p(),O.insertStyleElement=b();d()(T.A,O);T.A&&T.A.locals&&T.A.locals;var P=n(82942),I=n(68179),M=n(70640),L=n(32814),R=n(64426),j=n(47361),F=n(8259),D=n(86891),N=n(28249),z=n(80363),V=n.n(z),B=n(79950),$=n.n(B),G=n(71149),U=n(99979),W=n(38096),q=n(58839),H=n.n(q);const Y=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"}},"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"},"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"]},"TypeNavBarProps":{"description":"Controls available on the navigation bar.","additionalProperties":false,"type":"array","uniqueItems":true,"items":{"$ref":"#/definitions/TypeValidNavBarProps"},"default":["zoom","fullscreen","home"],"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}},"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"]},"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}}}},"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"]},"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"],"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"},"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 (default \'DD/MM/YYYY HH:MM:SSZ\').","type":"string"},"externalDateFormat":{"description":"Date format used by the getFeatureInfo to output date variable (default \'DD/MM/YYYY HH:MM:SSZ\').","type":"string"},"initialSettings":{"description":"Initial settings to apply to the GeoView layer at creation time.","$ref":"#/definitions/TypeLayerInitialSettings"},"listOfLayerEntryConfig":{"description":"The layer entries to use from the GeoView layer.","$ref":"#/definitions/TypeListOfLayerEntryConfig"}},"if":{"properties":{"isGeocore":{"description":"The isGeocore property is not defined by the user but by the viewer according to the geoview layer type. It is used as a flag indicating the type of schema used (input/internal).","enum":[true,false]}},"required":["isGeocore"]},"then":{"description":"Use Internal Schema","properties":{"geoviewLayerName":{"description":"The display name of the layer.","type":"string"},"geoviewLayerType":{"description":"Type of GeoView layer.","$ref":"#/definitions/TypeGeoviewLayerType"}}},"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"},"geoviewLayerType":{"description":"Type of GeoView layer.","type":"string","enum":["CSV","esriDynamic","esriFeature","esriImage","GeoJSON","imageStatic","ogcFeature","ogcWfs","ogcWms","vectorTiles","xyzTiles","geoCore"]}}},"required":["geoviewLayerId","geoviewLayerName","geoviewLayerType","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"},"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","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":"Which UI controls are available.","additionalProperties":false,"type":"object","properties":{"visible":{"description":"Initial visibility setting.","type":"boolean","default":true},"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":"ID(s) of layer(s) to use as initial map focus.","type":"array","minItems":1,"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":[{"$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":[{"$ref":"#/definitions/AbstractGeoviewLayerConfig"},{"type":"object","properties":{"geoviewLayerType":{"enum":["esriFeature"]}}}]},"ConfigBaseClass":{"description":"Base class from which we derive all the nodes (group and leaves) in the layer tree.","type":"object","properties":{"layerId":{"description":"The id of the layer to display on the map.","type":"string"},"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 (default: 0).","type":"number","default":0},"maxScale":{"description":"Maximum scale the layer can display (default: 0).","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"}},"if":{"properties":{"entryType":{"description":"The entryType property is not defined by the user but by the viewer according to the geoview layer type. It is used as a flag indicating the type of schema used (input/internal).","enum":["vector","raster-image","group"]}},"required":["entryType"]},"then":{"properties":{"layerName":{"description":"Used by the internal schema.","type":"string"}}},"else":{"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"}}},"required":["layerId"]},"AbstractBaseLayerEntryConfig":{"description":"Base class from which we derive all the leaf nodes in the layer tree.","type":"object","allOf":[{"$ref":"#/definitions/ConfigBaseClass"},{"type":"object","properties":{"geometryType":{"description":"The geometry type of the leaf node.","$ref":"#/definitions/TypeGeometryType"},"source":{"$ref":"#/definitions/TypeBaseSourceInitialConfig"},"temporalDimension":{"$ref":"#/definitions/TypeTemporalDimension"}}}]},"EsriDynamicLayerEntryConfig":{"description":"Class from which we derive all the ESRI Dynamic leaf nodes in the layer tree.","type":"object","allOf":[{"$ref":"#/definitions/AbstractBaseLayerEntryConfig"},{"type":"object","properties":{"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":[{"$ref":"#/definitions/AbstractBaseLayerEntryConfig"},{"type":"object","properties":{"source":{"$ref":"#/definitions/TypeSourceEsriFeatureInitialConfig"},"style":{"$ref":"#/definitions/TypeStyleConfig"}}}]},"TypeGeometryType":{"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"}}},"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"}}}]},"TypeSourceImageWmsInitialConfig":{"description":"Initial settings for tile image sources.","additionalProperties":false,"type":"object","allOf":[{"$ref":"#/definitions/TypeBaseSourceInitialConfig"},{"additionalProperties":false,"type":"object","properties":{"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":{"description":"The type of the remote WMS server. The default value is mapserver.","enum":["mapserver","geoserver","qgis"]},"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 (default: 0).","type":"number"},"layerFilter":{"description":"Filter to apply on features of this layer.","type":"string"},"featureInfo":{"$ref":"#/definitions/TypeFeatureInfoLayerConfig"},"format":{"$ref":"#/definitions/TypeVectorSourceFormats"},"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."}}}]},"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 (default: 0).","type":"number"},"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. The default format is png.","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 (default: 0).","type":"number"},"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. Default = false.","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.","type":"string"},"domain":{"description":"An array of values that constitute the domain.","type":"array"}},"required":["name","alias","type","domain"]},"TypeOutfieldsType":{"description":"The types supported by the outfields object.","additionalProperties":false,"enum":["string","number","date","url"]},"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"},"minItems":1},"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 (default: true).","type":"boolean"},"label":{"type":"string"},"values":{"description":"Simple type has a single value at index 0; 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"}]},"minItems":1},"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.","oneOf":[{"$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"}}}],"required":["type","stroke"]},"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. Default = 8","type":"number"},"paternWidth":{"description":"Patern line width.default = 1.","type":"number"},"fillStyle":{"description":"Kind of filling for vector features. Default = solid. ","$ref":"#/definitions/TypeFillStyle"}}}],"required":["type","stroke"]},"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"}}}],"required":["type","symbol"]},"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"}}}],"required":["type","mimeType","src"]},"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 K=n(60854);function X(e,t){var n,r,i=new(H())({strict:!1,allErrors:!1});i.compile(Y);var o=i.getSchema(e);if(o){if(!o(t)){for(var a,s,l=0;l0&&void 0!==arguments[0]?arguments[0]:2;return JSON.stringify(this,void 0,e||void 0)}}])}(),ae=function(e){return null==e?void 0:e.isLayerGroup};function se(e,t,n){return t=(0,U.A)(t),(0,G.A)(e,le()?Reflect.construct(t,n||[],(0,U.A)(e).constructor):t.apply(e,n))}function le(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(le=function(){return!!e})()}var ce=function(e){function t(e,n,r,i,o){var a;return(0,M.A)(this,t),a=se(this,t,[e,n,r,i,o]),(0,R.A)(a,"entryType",F.JE.GROUP),(0,R.A)(a,"listOfLayerEntryConfig",[]),a.listOfLayerEntryConfig=e.listOfLayerEntryConfig.map((function(e){return ae(e)?new t(e,n,r,i,a):i.createLeafNode(e,n,r,i,a)})).filter((function(e){return e})),a}return(0,W.A)(t,e),(0,L.A)(t,[{key:"schemaPath",get:function(){return F.y5}},{key:"getEntryType",value:function(){return F.JE.GROUP}}])}(oe),ue=n(79913);function de(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 he(e){for(var t=1;t1&&(fe(ve,this).listOfLayerEntryConfig=[{layerId:fe(ve,this).geoviewLayerId,initialSettings:this.initialSettings,layerName:he({},fe(ve,this).geoviewLayerName),isLayerGroup:!0,listOfLayerEntryConfig:fe(ve,this).listOfLayerEntryConfig}]),this.geoviewLayerId=fe(ve,this).geoviewLayerId||(0,ue.generateId)(),this.geoviewLayerName=Z(null===(o=fe(ve,this))||void 0===o?void 0:o.geoviewLayerName)[fe(ye,this)],this.metadataAccessPath=Z(fe(ve,this).metadataAccessPath)[fe(ye,this)],this.serviceDateFormat=fe(ve,this).serviceDateFormat||"DD/MM/YYYY HH:MM:SSZ",this.externalDateFormat=fe(ve,this).externalDateFormat||"DD/MM/YYYY HH:MM:SSZ",this.listOfLayerEntryConfig=null===(a=fe(ve,this))||void 0===a||null===(a=a.listOfLayerEntryConfig)||void 0===a||null===(a=a.map((function(e){return ae(e)?new ce(e,s.initialSettings,n,s):s.createLeafNode(e,s.initialSettings,n,s)})))||void 0===a?void 0:a.filter((function(e){return e}))}),[{key:"validate",value:function(){if(!this.geoviewLayerType)throw new Error("Property geoviewLayerType is mandatory for GeoView layer ".concat(this.geoviewLayerId," of type ").concat(this.geoviewLayerType,"."));if(!this.geoviewLayerId)throw new Error("geoviewLayerId is mandatory for GeoView layer of type ".concat(this.geoviewLayerType,"."));if(!this.geoviewLayerName)throw new Error("Property geoviewLayerName is mandatory for GeoView layer ".concat(this.geoviewLayerId," of type ").concat(this.geoviewLayerType,"."));if(!this.metadataAccessPath)throw new Error("metadataAccessPath is mandatory for GeoView layer ".concat(this.geoviewLayerId," of type ").concat(this.geoviewLayerType,"."))}},{key:"propagateError",value:function(){var e;ge(xe,this,!0),null===(e=fe(be,this))||void 0===e||e.propagateError()}},{key:"isValid",get:function(){return!fe(xe,this)}},{key:"getJsonString",value:function(){return this.getIndentedJsonString(null)}},{key:"getIndentedJsonString",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:2;return JSON.stringify(this,void 0,e||void 0)}}])}();function Ae(e,t,n){return t=(0,U.A)(t),(0,G.A)(e,Se()?Reflect.construct(t,n||[],(0,U.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,o){var a;return(0,M.A)(this,t),a=Ae(this,t,[e,n,r,i,o]),(0,R.A)(a,"geometryType",void 0),(0,R.A)(a,"source",void 0),(0,R.A)(a,"temporalDimension",void 0),a.geometryType=e.geometryType,e.source?a.source=(0,D.K)(V()(e.source)):a.source=(0,D.K)({projection:F.NA.map.viewSettings.projection}),e.temporalDimension&&(a.temporalDimension=(0,D.K)(V()(e.temporalDimension))),a}return(0,W.A)(t,e),(0,L.A)(t)}(oe);function Ee(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,t,n){return t=(0,U.A)(t),(0,G.A)(e,ke()?Reflect.construct(t,n||[],(0,U.A)(e).constructor):t.apply(e,n))}function ke(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ke=function(){return!!e})()}var Te=function(e){function t(e,n,r,i,o){var a,s;if((0,M.A)(this,t),s=_e(this,t,[e,n,r,i,o]),(0,R.A)(s,"style",void 0),s.source=$()(s.source,{maxRecordCount:0,format:"png",featureInfo:{queryable:!1}}),s.style=e.style?function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:2;return JSON.stringify(this,void 0,e||void 0)}},{key:"propagateError",value:function(){$e(qe,this,!0)}}],[{key:"nodeFactory",value:function(e,t,n){switch(e.geoviewLayerType){case F.oR.ESRI_DYNAMIC:return new Ie(e,t,n);case F.oR.ESRI_FEATURE:return new Ne(e,t,n)}}}])}();function Ke(e){var t=e&&F.if.includes(e)?e:F.NA.map.viewSettings.projection,n=V()(F.NA.map);return n.viewSettings.maxExtent=(0,N.A)(F.Nt[t]),n.viewSettings.initialView||(n.viewSettings.initialView={zoomAndCenter:[3.5,F.VN[t]]}),n}function Xe(){this.map.viewSettings.projection=this.map.viewSettings.projection&&F.if.includes(this.map.viewSettings.projection)?this.map.viewSettings.projection:F.NA.map.viewSettings.projection,Ge(He,this,Ze).call(this);var e=this.map.viewSettings.initialView.zoomAndCenter[0];this.map.viewSettings.initialView.zoomAndCenter[0]=!Number.isNaN(e)&&e>=0&&e<=28?e:F.NA.map.viewSettings.initialView.zoomAndCenter[0],Ge(He,this,Je).call(this),this.schemaVersionUsed=F.ir.includes(this.schemaVersionUsed)?this.schemaVersionUsed:F.NA.schemaVersionUsed;var t=this.map.viewSettings.minZoom;this.map.viewSettings.minZoom=!Number.isNaN(t)&&t>=0&&t<=50?t:F.NA.map.viewSettings.minZoom;var n=this.map.viewSettings.maxZoom;this.map.viewSettings.maxZoom=!Number.isNaN(n)&&n>=0&&n<=50?n:F.NA.map.viewSettings.maxZoom,Ge(He,this,Qe).call(this),Ge(He,this,et).call(this)}function Ze(){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>F.mq[n].long[0]&&eF.mq[n].lat[0]&&tt[0]?a:F.mq[e].long[1],d=!Number.isNaN(s)&&s>t[1]?s:F.mq[e].lat[1];this.map.viewSettings.maxExtent=[l,c,u,d]}function et(){var e,t,n,r,i,o,a,s,l,c,u=this;(Object.keys(Be(We,this)).forEach((function(e){e in u||K.vF.logWarning("- Key '".concat(e,"' is invalid -"))})),(null===(e=Be(We,this))||void 0===e||null===(e=e.map)||void 0===e||null===(e=e.viewSettings)||void 0===e?void 0:e.projection)!==this.map.viewSettings.projection)&&K.vF.logWarning("- Invalid projection code ".concat(null===(s=Be(We,this))||void 0===s||null===(s=s.map)||void 0===s||null===(s=s.viewSettings)||void 0===s?void 0:s.projection," replaced by ").concat(this.map.viewSettings.projection," -"));null!==(t=Be(We,this))&&void 0!==t&&null!==(t=t.map)&&void 0!==t&&null!==(t=t.viewSettings)&&void 0!==t&&null!==(t=t.initialView)&&void 0!==t&&t.zoomAndCenter&&null!==(n=this.map.viewSettings.initialView)&&void 0!==n&&n.zoomAndCenter&&(null===(r=Be(We,this))||void 0===r||null===(r=r.map)||void 0===r||null===(r=r.viewSettings)||void 0===r||null===(r=r.initialView)||void 0===r?void 0:r.zoomAndCenter[0])!==(null===(i=this.map.viewSettings.initialView)||void 0===i?void 0:i.zoomAndCenter[0])&&K.vF.logWarning("- Invalid zoom level ".concat(null===(l=Be(We,this))||void 0===l||null===(l=l.map)||void 0===l||null===(l=l.viewSettings)||void 0===l||null===(l=l.initialView)||void 0===l?void 0:l.zoomAndCenter[0],"\n replaced by ").concat(null===(c=this.map.viewSettings.initialView)||void 0===c?void 0:c.zoomAndCenter[0]," -"));var d,h=null===(o=Be(We,this))||void 0===o||null===(o=o.map)||void 0===o||null===(o=o.viewSettings)||void 0===o||null===(o=o.initialView)||void 0===o?void 0:o.zoomAndCenter;(h&&Array.isArray(h)&&2===h.length&&Array.isArray(h[1])&&2===h[1].length&&(0,D.K)(h[1])!==this.map.viewSettings.initialView.zoomAndCenter[1]&&K.vF.logWarning("- Invalid center ".concat(h[1],"\n replaced by ").concat(this.map.viewSettings.initialView.zoomAndCenter[1])),JSON.stringify(null===(a=Be(We,this))||void 0===a||null===(a=a.map)||void 0===a?void 0:a.basemapOptions)!==JSON.stringify(this.map.basemapOptions))&&K.vF.logWarning("- Invalid basemap options ".concat(JSON.stringify(null===(d=Be(We,this))||void 0===d||null===(d=d.map)||void 0===d?void 0:d.basemapOptions)," replaced by ").concat(JSON.stringify(this.map.basemapOptions)," -"))}var tt=n(97493);function nt(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 rt=function(){function e(){(0,M.A)(this,e)}return(0,L.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,tt.A.get(a);case 3:return s=t.sent,t.abrupt("return",nt(e,this,it).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 it(e,t){if(!(null!=e&&e.data&&e.data.reponse&&e.data.reponse.rcs&&e.data.reponse.rcs[t]))throw new Error("Invalid response from GeoCore service");if(0===e.data.reponse.rcs[t].length)throw new Error("No layers returned by GeoCore service");for(var n=[],r=0;r0){var o=i.layers[0];if(o){var a=o.layerType,s=o.layerEntries,l=o.name,c=o.url,u=o.id,d=c.indexOf("FeatureServer")>-1;if(a!==F.oR.ESRI_DYNAMIC||d)if(d)for(var h=0;h{"use strict";n.d(t,{w:()=>O,A:()=>P});var r=n(30538),i=(n(82810),n(65868)),o=n(43331),a=n(333),s=n(29224),l=n(73342),c=n(51559),u=n(87286),d=n(32829),h=n(87507),p=n(58990),f=n(97282);const g=(e,t)=>(0,c.A)({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),m=e=>(0,c.A)({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}});var y=n(5007),v=n(24115);function b(e){return(0,v.Ay)("MuiScopedCssBaseline",e)}(0,y.A)("MuiScopedCssBaseline",["root"]);const x=["className","component","enableColorScheme"],w=(0,p.Ay)("div",{name:"MuiScopedCssBaseline",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e,ownerState:t})=>{const n={};return t.enableColorScheme&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach((([t,r])=>{var i;n[`&${e.getColorSchemeSelector(t).replace(/\s*&/,"")}`]={colorScheme:null==(i=r.palette)?void 0:i.mode}})),(0,c.A)({},g(e,t.enableColorScheme),m(e),{"& *, & *::before, & *::after":{boxSizing:"inherit"},"& strong, & b":{fontWeight:e.typography.fontWeightBold}},n)})),A=r.forwardRef((function(e,t){const n=(0,h.A)({props:e,name:"MuiScopedCssBaseline"}),{className:r,component:i="div"}=n,o=(0,l.A)(n,x),a=(0,c.A)({},n,{component:i}),s=(e=>{const{classes:t}=e;return(0,d.A)({root:["root"]},b,t)})(a);return(0,f.jsx)(w,(0,c.A)({as:i,className:(0,u.A)(s.root,r),ref:t,ownerState:a},o))}));var S=n(25329),C=n(3389),E=n(26098),_=n(86784),k=n(60854),T=n(31726),O=(0,r.createContext)({mapId:"",mapFeaturesConfig:void 0});const P=function(e){k.vF.logTraceRender("components/app-start");var t=e.mapFeaturesConfig,n=e.onMapViewerInit,l=t.mapId,c=(0,r.useMemo)((function(){return k.vF.logTraceUseMemo("APP-START - mapContextValue",l),{mapId:l}}),[l]),u=(0,T.lk)(l),d=(0,T.iO)(l);return(0,f.jsx)(s.A,{injectFirst:!0,children:(0,f.jsx)(a.A,{theme:C.w,children:(0,f.jsx)(A,{children:(0,f.jsx)(r.Suspense,{fallback:"",children:function(){var e=i.Ay.cloneInstance({lng:u,fallbackLng:u});if(!(l in _.FHQ.maps)){var r=new E.F(t,e);_.FHQ.maps[l]=r}return _.FHQ.maps[l].onMapInit((function(e){null==n||n(e)})),(0,f.jsx)(o.I18nextProvider,{i18n:e,children:(0,f.jsx)(O.Provider,{value:c,children:(0,f.jsx)(a.A,{theme:(0,C.O)(d),children:(0,f.jsx)(S.$,{mapViewer:_.FHQ.maps[l]})})})})}()})})})})}},97886:(e,t,n)=>{"use strict";n.d(t,{r:()=>b});var r=n(70640),i=n(32814),o=n(64426),a=n(64941),s=n(79913),l=n(16221),c=n(38829);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;t2&&void 0!==arguments[2])||arguments[2];c.d.setActiveAppBarTab(this.mapId,e,t,n)}}])}();function x(e){l.A.emitEvent(this,f(m,this),e)}function w(e){l.A.emitEvent(this,f(y,this),e)}function A(){this.buttons.default={}}},95811:(e,t,n)=>{"use strict";n.d(t,{h:()=>z});var r=n(64426),i=n(47361),o=n(76390),a=n.n(o),s=n(46900),l=n.n(s),c=n(43331),u=n(30538),d=n(94145),h=n(82942),p=n(90763),f=n(79437),g=n(58726),m=n(69495),y=n(28187),v=n(31726),b=n(15247),x=n(60854),w=n(8124),A=n(12805),S=n(96974),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(28249);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 k(e){for(var t=1;t{"use strict";n.d(t,{A:()=>v});var r=n(47361),i=n(30538),o=n(43331),a=n(26565),s=n(66469),l=n(41019),c=n(8088),u=n(91031),d=n(64987),h=n(46457),p=n(82942),f=n(15247),g=n(28187),m=n(98533),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),x=(0,r.A)(b,2),w=x[0],A=x[1],S=(0,i.useState)(!1),C=(0,r.A)(S,2),E=C[0],_=C[1],k=function(){E&&(_(!1),A(null))},T={versionInfoPanel:{width:"200px",backgroundColor:function(e){return e.palette.geoViewColor.bgColor.light[200]},borderRadius:"5px",boxShadow:2,marginLeft:"15px",padding:"10px","& 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:"10px",color:function(e){return e.palette.geoViewColor.textColor.main},borderBottom:function(e){return"1px solid ".concat(e.palette.geoViewColor.bgColor.dark[300],"}")},marginBottom:"10px"}};return(0,y.jsx)(a.x,{mouseEvent:"onMouseDown",touchEvent:"onTouchStart",onClickAway:k,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),_(!E)},className:"".concat("dynamic"===n?"buttonFilled":"style4"," ").concat(E?"active":""),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:w,placement:"right-end",onClose:k,container:v,children:(0,y.jsxs)(c.A,{sx:T.versionInfoPanel,children:[(0,y.jsx)(u.A,{sx:T.versionsInfoTitle,component:"h3",children:e("appbar.version")}),(0,y.jsxs)(s.A,{sx:{padding:"10px",gap:"5px",display:"flex",flexDirection:"column"},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(0,".").concat(1,".").concat(0)}),(0,y.jsx)(u.A,{component:"div",children:new Date(1717706620057).toLocaleDateString()})]})]})})]})})}},17161:(e,t,n)=>{"use strict";n.d(t,{m:()=>f});var r=n(64426),i=n(47361),o=n(30538),a=n(94145),s=n(82942),l=n(69495),c=n(28187),u=n(79913),d=n(15247),h=n(60854),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)(),x=(0,l.dY)(),w=(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:w,className:v?"active":"",tooltipPlacement:"top",tooltip:"mapctrl.attribution.tooltip",sx:(0,r.A)((0,r.A)((0,r.A)({color:e.palette.geoViewColor.bgColor.light[800],marginTop:x?"0.75rem":"0.25rem"},e.breakpoints.up("md"),{marginTop:x?"1.4375rem":"none"}),"width","30px"),"height","30px"),"aria-label":"mapctrl.attribution.tooltip",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)())}))})})]})}},57449:(e,t,n)=>{"use strict";n.d(t,{n:()=>c});var r=n(30538),i=n(82942),o=n(28187),a=n(60854),s=n(15247),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"})})}},95785:(e,t,n)=>{"use strict";n.d(t,{y:()=>u});var r=n(30538),i=n(43331),o=n(23799),a=n(69495),s=n(82942),l=n(60854),c=n(97282);function u(e){var t=e.id,n=e.content,u=(0,i.useTranslation)().t,d=(0,a.A6)().closeModal,h=(0,a.XP)(),p=(0,a.NP)();return(0,r.useEffect)((function(){l.vF.logTraceUseEffect("FOCUS-TRAP-ELEMENT - activeTrapGeoView",h),h||d()}),[h,d]),(0,r.useEffect)((function(){l.vF.logTraceUseEffect("FOCUS-TRAP-ELEMENT - focusItem",p),t===p.activeElementId&&setTimeout((function(){var e;return null===(e=document.getElementById("".concat(t,"-exit-btn")))||void 0===e?void 0:e.focus()}),0)}),[p,t]),(0,c.jsx)(o.s,{open:t===p.activeElementId,children:(0,c.jsxs)(s.Box,{children:[(0,c.jsx)(s.Button,{id:"".concat(t,"-exit-btn"),type:"text",autoFocus:!0,onClick:function(){var e;d(),null===(e=document.getElementById(p.callbackElementId))||void 0===e||e.focus()},sx:{display:h?"block":"none",width:"95%",margin:"10px auto"},children:u("general.exit")}),n]})})}},78383:(e,t,n)=>{"use strict";n.d(t,{PE:()=>v,Wu:()=>b.W,xk:()=>A});n(95785),n(43367);var r=n(30538),i=n(94145),o=n(43331),a=n(78283),s=n(82942),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(46182),u=n(97282),d=(0,r.memo)((function(e){var t=e.isSelected,n=e.layer,d=e.onListItemClick,h=e.layerIndex,p=(0,i.A)(),f=l(p),g=(0,o.useTranslation)().t,m=0===(null==n?void 0:n.numOffeatures)||null===(null==n?void 0:n.features),y=0===(null==n?void 0:n.numOffeatures)||null===(null==n?void 0:n.features)||"processing"===n.queryStatus||"loading"===n.layerStatus||"processing"===n.layerStatus,v=(0,r.useCallback)((function(){var e;return"error"===n.layerStatus||"error"===(null==n?void 0:n.queryStatus)?"".concat(g("legend.layerError")):["init","processing"].includes(n.queryStatus)?"".concat(g("layers.querying"),"..."):(0,u.jsxs)(u.Fragment,{children:[n.layerFeatures," ",null!==(e=null==n?void 0:n.mapFilteredIcon)&&void 0!==e?e:""]})}),[n,g]);var b,x,w=(0,a.zh)({delay:150*h,from:{opacity:.1},to:{opacity:1}}),A=(0,r.useCallback)((function(e,t){"Enter"===e.key&&d(t)}),[d]),S=(0,a.CS)(s.Paper);return(0,u.jsx)(S,{sx:{marginBottom:"1rem"},style:w,className:(x=["layer-panel","bordered",null!==(b=n.layerStatus)&&void 0!==b?b:"","query-".concat(n.queryStatus)],t&&x.push("selectedLayer bordered-primary"),x.join(" ")),children:(0,u.jsx)(s.Tooltip,{title:n.tooltip,placement:"top",arrow:!0,children:(0,u.jsx)(s.Box,{children:(0,u.jsx)(s.ListItem,{disablePadding:!0,onKeyDown:function(e){return A(e,n)},tabIndex:0,children:(0,u.jsxs)(s.ListItemButton,{tabIndex:-1,selected:t,disabled:m||y,onClick:function(){return d(n)},"aria-label":n.layerName,children:[n.layerPath&&!n.content?(0,u.jsx)(s.ListItemIcon,{"aria-hidden":"true",children:(0,u.jsx)(c.B,{layer:n})}):null,(0,u.jsxs)(s.Box,{sx:f.listPrimaryText,children:[(0,u.jsx)(s.Typography,{className:"layerTitle",children:n.layerName}),(0,u.jsx)(s.Box,{display:"flex",alignContent:"center",children:(0,u.jsx)(s.Typography,{component:"p",variant:"subtitle1",noWrap:!0,display:"flex",children:v()})})]})]})})})})})}));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;return(0,u.jsx)(d,{isSelected:(null!==(i=null==e?void 0:e.numOffeatures)&&void 0!==i?i:1)>0&&e.layerPath===n,layer:e,onListItemClick:r,layerIndex:t},e.layerPath)})),!t.length&&(0,u.jsx)(d,{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(64426),f=n(60854),g=n(27892),m=n(46457);function y(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 v(e){var t=e.children,n=e.guideContentIds,o=e.layerList,a=e.selectedLayerPath,l=e.onLayerListClicked,c=e.onIsEnlargeClicked,d=e.fullWidth,v=e.onGuideIsOpen,b=e.containerType,x=void 0===b?m.vB.FOOTER_BAR:b,w=(0,r.useRef)(null),A=(0,i.A)(),S=(0,r.useCallback)((function(e){var t;null==l||l(e),null===(t=w.current)||void 0===t||t.setIsRightPanelVisible(!0)}),[l]),C=(0,r.useCallback)((function(){return f.vF.logTraceUseCallback("LAYOUT - renderLayerList"),(0,u.jsx)(h,{selectedLayerPath:a,onListItemClick:S,layerList:o})}),[a,o,S]),E=(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(94145),i=n(82942),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(91140),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)("img",{alt:"icon",src:h,style: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)("img",{alt:"icon",src:p,style: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)("img",{alt:"icon",src:h,style: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})}},27892:(e,t,n)=>{"use strict";n.d(t,{z:()=>S});var r=n(64426),i=n(47361),o=n(30538),a=n(43331),s=n(94145),l=n(34089),c=n(82942),u=n(43367),d=n(43422),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(60854),g=n(13659),m=n(78918),y=n(60192),v=n(27927),b=n(31726),x=n(46457);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 A(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"}}}}}}(N),V=(0,a.useTranslation)().t,B=(0,b.DR)(),$=(0,b.kv)(),G=(0,o.useState)(!1),U=(0,i.A)(G,2),W=U[0],q=U[1],H=(0,o.useState)(!1),Y=(0,i.A)(H,2),K=Y[0],X=Y[1],Z=(0,o.useState)(!1),J=(0,i.A)(Z,2),Q=J[0],ee=J[1],te=(0,o.useState)(!1),ne=(0,i.A)(te,2),re=ne[0],ie=ne[1],oe=(0,d.W)({footerPanelTab:"default"}),ae=oe.leftPanelRef,se=oe.rightPanelRef,le=oe.panelTitleRef;(0,o.useImperativeHandle)(t,(function(){return{setIsRightPanelVisible:function(e){return q(e)}}})),(0,o.useEffect)((function(){X(!T&&!!M)}),[T,M]),(0,o.useEffect)((function(){null==R||R(K)}),[K,R]),(0,o.useEffect)((function(){F&&Q&&ee(!1)}),[F,Q]);var ce=(0,o.useCallback)((function(e){f.vF.logTraceUseCallback("LAYOUT - handleIsEnlarge"),ee(e),null==L||L(e)}),[L]),ue=(0,o.useCallback)((function(){M&&X(!0)}),[X,M]);N.breakpoints.down("md")&&(C||w||W||P||q(!0));var de,he;return(0,h.jsxs)(c.Box,{ref:t,children:[(0,h.jsxs)(u.N.Root,{sx:{pt:8,pb:0},ref:le,children:[!P&&(0,h.jsx)(u.N.Left,{isRightPanelVisible:W,isEnlarged:Q,"aria-hidden":!W,sxProps:{zIndex:re?"unset":200},className:"responsive-layout-left-top",children:w}),(0,h.jsx)(u.N.Right,{isRightPanelVisible:W,isEnlarged:Q,fullWidth:P,sxProps:{zIndex:re?"unset":100},className:"responsive-layout-right-top",children:(0,h.jsxs)(c.Box,{sx:(0,r.A)((0,r.A)({display:"flex",alignItems:P||D===x.vB.APP_BAR?"end":"center",flexDirection:P||D===x.vB.APP_BAR?"column":"row",gap:P||D===x.vB.APP_BAR?"10px":"0"},N.breakpoints.up("md"),{justifyContent:P||D===x.vB.APP_BAR?"space-between":"right"}),N.breakpoints.down("md"),{justifyContent:"space-between"}),children:[null!=_?_:(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:[!P&&!F&&(window.innerWidth<=N.breakpoints.values.md?null:(0,h.jsx)(c.Button,{makeResponsive:!0,type:"text",size:"small",variant:"outlined",startIcon:Q?(0,h.jsx)(g.A,{}):(0,h.jsx)(m.A,{}),sx:{boxShadow:"none"},onClick:function(){return ce(!Q)},tooltip:V(Q?"dataTable.reduceBtn":"dataTable.enlargeBtn"),children:V(Q?"dataTable.reduceBtn":"dataTable.enlargeBtn")})),!(null==M||!M.length)&&(window.innerWidth<=N.breakpoints.values.md?null:(0,h.jsx)(c.Button,{makeResponsive:!0,type:"text",disabled:K,variant:"outlined",size:"small",onClick:function(){return ue()},tooltip:V("general.openGuide"),startIcon:(0,h.jsx)(v.A,{}),children:V("general.guide")})),!$&&(0,h.jsx)(c.Button,{makeResponsive:!0,type:"text",variant:"outlined",size:"small",onClick:function(){return ie(!re)},tooltip:V(re?"general.closeFullscreen":"general.openFullscreen"),startIcon:(0,h.jsx)(c.FullscreenIcon,{}),children:V("general.fullScreen")}),!(!C&&!w)&&(P||!(window.innerWidth>=N.breakpoints.values.md)&&W?(0,h.jsx)(c.Button,{makeResponsive:!0,type:"text",size:"small",variant:"outlined",color:"primary",className:"buttonFilledOutline",startIcon:(0,h.jsx)(y.A,{fontSize:N.palette.geoViewFontSize.sm}),sx:A({},P?z.appBarEnlargeButton:z.footerBarEnlargeButton),onClick:function(){return q(!1)},tooltip:null!==(he=V("dataTable.close"))&&void 0!==he?he:"",children:V("dataTable.close")}):null)]})})]})})]}),(0,h.jsxs)(u.N.Root,{children:[(0,h.jsx)(u.N.Left,A(A({},!P&&{ref:ae}),{},{isEnlarged:Q,isRightPanelVisible:W,fullWidth:P,"aria-hidden":!W,sxProps:{zIndex:re?"unset":200},className:"responsive-layout-left-main",children:C})),(0,h.jsx)(u.N.Right,A(A({},!P&&{ref:se}),{},{isEnlarged:Q,isRightPanelVisible:W,fullWidth:P,sxProps:{zIndex:re?"unset":100},className:"responsive-layout-right-main",children:(de=K?function(){var e=null==M?void 0:M.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==B||null===(t=B.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}():T,(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(p,{open:re,onClose:function(){return ie(!1)},children:(0,h.jsx)(c.Box,{sx:z.rightGridContent,className:"responsive-layout-right-main-content fullscreen-mode",children:de})}),(0,h.jsx)(c.Box,{sx:z.rightGridContent,className:K?"responsive-layout-right-main-content guide-container":"responsive-layout-right-main-content",children:de})]}))}))]})]})}));S.displayName="ResponsiveGridLayout"},43367:(e,t,n)=>{"use strict";n.d(t,{N:()=>y});var r=n(64426),i=n(55594),o=n(30538),a=n(94145),s=n(82942),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(94145),o=n(6467),a=n(31726),s=n(69495),l=n(62e3),c=n(74624),u=n(60854),d=n(46457),h=n(15247),p=n(8259),f=n(28187);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),x=(0,r.useRef)(0),w=(0,o.A)(m.breakpoints.down("md")),A=(0,r.useCallback)((function(e){var t,n;e&&(x.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)(),_=(0,s.g_)(),k=(0,l.yU)(),T=(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&&(_===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-x.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",_===d.DF.DATA_TABLE||P===p.NF.DATA_TABLE)I("".concat(a,"px")),O("".concat(a-100,"px"));else if(_===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(),_===d.DF.DATA_TABLE||P===p.NF.DATA_TABLE)O("".concat(500,"px"));else if(_===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,_,n,y,O,k,T,P]),(0,r.useEffect)((function(){v.current&&!S&&(P!==p.NF.DATA_TABLE&&P!==p.NF.LAYERS||!w?v.current.style.maxHeight="".concat(g,"px"):v.current.style.maxHeight="100%")}),[C,S,P,w]),{leftPanelRef:v,rightPanelRef:b,panelTitleRef:A,activeFooterBarTabId:_}}},89971:(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"})})})}},77082:(e,t,n)=>{"use strict";n.d(t,{B:()=>m});var r=n(64426),i=n(30538),o=n(94145),a=n(43331),s=n(82942),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(89971),u=n(31726),d=n(28187),h=n(60854),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:()=>S});var r=n(64426),i=n(47361),o=n(75299),a=n.n(o),s=n(30538),l=n(43331),c=n(94145),u=n(82942),d=n(87485),h=n(74624),p=n(28187),f=n(69495),g=n(78383),m=n(60854),y=n(15560),v=n(46457),b=n(8259),x=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 A(e){for(var t=1;t0&&(r="".concat(i," ").concat(w("dataTable.features"))),r}),[I,B,w]),W=(0,s.useCallback)((function(e,t){return m.vF.logTraceUseCallback("DATA-PANEL - getLayerTooltip"),(0,x.jsxs)(u.Box,{sx:{display:"flex",alignContent:"center","& svg ":{width:"0.75em",height:"0.75em"}},children:["".concat(e,", ").concat(U(t)),G(t)&&(0,x.jsx)(u.FilterAltIcon,{})]})}),[U,G]),q=(0,s.useMemo)((function(){return m.vF.logTraceUseMemo("DATA-PANEL - isLayerDisabled",P),function(){return!!B.find((function(e){return e.layerPath===P&&null===e.features}))}}),[B,P]),H=(0,s.useMemo)((function(){return m.vF.logTraceUseMemo("DATA-PANEL - isSelectedLayerHasFeatures",P),function(){return B.find((function(e){var t;return e.layerPath===P&&(null==e||null===(t=e.features)||void 0===t?void 0:t.length)}))}}),[P,B]);(0,s.useEffect)((function(){m.vF.logTraceUseEffect("DATA-PANEL - isLoading",k,P);var e=a()((function(){T(!1)}),100);return function(){return clearTimeout(e)}}),[k,P]),(0,s.useEffect)((function(){m.vF.logTraceUseEffect("DATA-PANEL - unmount",P),R!==v.DF.DATA_TABLE&&M("")}),[R]),(0,s.useEffect)((function(){D===b.NF.DATA_TABLE&&N||!z.includes(b.NF.DATA_TABLE)||M("")}),[D,N,M,z]);var Y=(0,s.useMemo)((function(){return m.vF.logTraceUseMemo("DATA-PANEL - order layer status processing."),function(){return!!B.find((function(e){return e.queryStatus===v.RI.PROCESSING}))}}),[B]),K=(0,s.useCallback)((function(e){e&&M("")}),[M]),X=(0,s.useMemo)((function(){return m.vF.logTraceUseMemo("DATA-PANEL - memoLayersList",B),B.map((function(e){var t;return A(A({},e),{},{layerFeatures:U(e.layerPath),tooltip:W(null!==(t=e.layerName)&&void 0!==t?t:"",e.layerPath),mapFilteredIcon:G(e.layerPath)&&(0,x.jsx)(u.FilterAltIcon,{sx:{color:S.palette.geoViewColor.grey.main}})})}))}),[G,B]);return(0,x.jsx)(g.PE,{containerType:o,selectedLayerPath:P||"",layerList:X,onLayerListClicked:$,fullWidth:n,onGuideIsOpen:K,guideContentIds:["dataTable","dataTable.children.filterData","dataTable.children.sortingAndReordering","dataTable.children.keyboardNavigation"],children:k||Y()?(0,x.jsx)(u.Skeleton,{variant:"rounded",width:"100%",height:400,sx:{bgcolor:S.palette.grey[400]}}):!q()&&H()?(0,x.jsx)(x.Fragment,{children:B.map((function(e){return(0,x.jsx)(u.Box,{children:e.layerPath===P?(0,x.jsx)(d.A,{data:e,layerPath:e.layerPath,tableHeight:O}):null},e.layerPath)}))}):null})}},39647:(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}}}},87485:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=n(31625),i=n(43994),o=n(64426),a=n(47361),s=n(59615),l=n.n(s),c=n(30538),u=n(43331),d=n(44481),h=n.n(d),p=n(58452),f=n.n(p),g=n(41218),m=n(51559),y=n(78185),v=n.n(y),b=n(41294),x=n.n(b),w=n(76853),A=n.n(w),S=n(13246),C=n.n(S),E=n(45816),_=n.n(E),k=n(54370);v().extend(A()),v().extend(C()),v().extend(_());const T=(0,k.f)(["Your locale has not been found.","Either the locale key is not a supported one. Locales supported by dayjs are available here: https://github.com/iamkun/dayjs/tree/dev/src/locale","Or you forget to import the locale from 'dayjs/locale/{localeUsed}'","fallback on English locale"]),O={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"},P={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",weekday:"dddd",weekdayShort:"dd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",fullDateWithWeekday:"dddd, LL",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",monthAndYear:"MMMM YYYY",monthAndDate:"MMMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",fullDateTime:"lll",fullDateTime12h:"ll hh:mm A",fullDateTime24h:"ll HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},I=["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"),M=["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 L{constructor({locale:e,formats:t,instance:n}={}){var r,i,o;this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="dayjs",this.rawDayJsInstance=void 0,this.dayjs=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=O,this.setLocaleToValue=e=>{const t=this.getCurrentLocaleCode();return t===e.locale()?e:e.locale(t)},this.hasUTCPlugin=()=>void 0!==v().utc,this.hasTimezonePlugin=()=>void 0!==v().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 v().tz.guess();default:return e}},this.createSystemDate=e=>{if(this.rawDayJsInstance)return this.rawDayJsInstance(e);if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const t=v().tz.guess();return"UTC"!==t?v().tz(e,t):v()(e)}return v()(e)},this.createUTCDate=e=>{if(!this.hasUTCPlugin())throw new Error(I);return v().utc(e)},this.createTZDate=(e,t)=>{if(!this.hasUTCPlugin())throw new Error(I);if(!this.hasTimezonePlugin())throw new Error(M);const n=void 0!==e&&!e.endsWith("Z");return v()(e).tz(this.cleanTimezone(t),n)},this.getLocaleFormats=()=>{const e=v().Ls;let t=e[this.locale||"en"];return void 0===t&&(T(),t=e.en),t.formats},this.adjustOffset=e=>{if(!this.hasTimezonePlugin())return e;const t=this.getTimezone(e);if("UTC"!==t){var n,r;const i=e.tz(this.cleanTimezone(t),!0);return(null!=(n=i.$offset)?n:0)===(null!=(r=e.$offset)?r:0)?e:i}return e},this.date=e=>null===e?null:this.dayjs(e),this.dateWithTimezone=(e,t)=>{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.getTimezone=e=>{if(this.hasTimezonePlugin()){var t;const n=null==(t=e.$x)?void 0:t.$timezone;if(n)return n}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(I);return e.utc()}if("system"===t)return e.local();if(!this.hasTimezonePlugin()){if("default"===t)return e;throw new Error(M)}return v().tz(e,this.cleanTimezone(t))},this.toJsDate=e=>e.toDate(),this.parseISO=e=>this.dayjs(e),this.toISO=e=>e.toISOString(),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.getFormatHelperText=e=>this.expandFormat(e).replace(/a/gi,"(a|p)m").toLocaleLowerCase(),this.isNull=e=>null===e,this.isValid=e=>this.dayjs(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.getDiff=(e,t,n)=>e.diff(t,n),this.isEqual=(e,t)=>null===e&&null===t||this.dayjs(e).toDate().getTime()===this.dayjs(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(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(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.getNextMonth=e=>this.addMonths(e,1),this.getPreviousMonth=e=>this.addMonths(e,-1),this.getMonthArray=e=>{const t=[e.startOf("year")];for(;t.length<12;){const e=t[t.length-1];t.push(this.addMonths(e,1))}return t},this.mergeDateAndTime=(e,t)=>e.hour(t.hour()).minute(t.minute()).second(t.second()),this.getWeekdays=()=>{const e=this.dayjs().startOf("week");return[0,1,2,3,4,5,6].map((t=>this.formatByString(this.addDays(e,t),"dd")))},this.getWeekArray=e=>{const t=this.setLocaleToValue(e),n=t.startOf("month").startOf("week"),r=t.endOf("month").endOf("week");let i=0,o=n;const a=[];for(;oe.week(),this.getYearRange=(e,t)=>{const n=e.startOf("year"),r=t.endOf("year"),i=[];let o=n;for(;o"am"===e?"AM":"PM",this.rawDayJsInstance=n,this.dayjs=(i=null!=(r=this.rawDayJsInstance)?r:v(),(o=e)?(...e)=>i(...e).locale(o):i),this.locale=e,this.formats=(0,m.A)({},P,t),v().extend(x())}}var R=n(38540),j=n(61821);const F={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"},D={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 N=n(94145),z=n(43975),V=n(82942),B=n(28187),$=n(74624),G=n(31726),U=n(69495),W=n(34028),q=n(79913),H=n(60854),Y=n(15560),K=n(39647),X=n(81247),Z=n(74468),J=n(45457),Q=n(78383),ee=n(46457),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(){H.vF.logTraceUseEffect("DATA-TABLE - sorting",E);var e=Ie.getRowCount();try{var t,n;if(e>0)null===(t=A.current)||void 0===t||null===(n=t.scrollToIndex)||void 0===n||n.call(t,0)}catch(e){H.vF.logError("Data table error on sorting action",e)}}),[E]);var Me=(0,c.useCallback)((function(e){H.vF.logTraceUseEffect("DATA-TABLE - buildFilterList");var t=Ie.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(ee.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=ee.Ax[u],h=W.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=ee.Fz[p];return"".concat(f.replace("filterId",o).replace("value",i))})):[""]}),[]),Le=h()((function(e){var t=Me(e).filter((function(e){return e.length})).join(" and ");oe(t)}),1e3),Re=(0,c.useCallback)((function(e){return Le(e)}),[null===(t=le[o])||void 0===t?void 0:t.mapFilteredRecord]);return(0,c.useEffect)((function(){H.vF.logTraceUseEffect("DATA-TABLE - columnFilters",ye),ye&&le[o].mapFilteredRecord&&Re(ye)}),[ye]),(0,c.useEffect)((function(){H.vF.logTraceUseEffect("DATA-TABLE - mapFilteredRecord",le[o].mapFilteredRecord),Le(ye)}),[le[o].mapFilteredRecord]),(0,Y.iI)({data:n,columnFilters:ye,globalFilter:xe,layerPath:o,tableInstance:Ie}),(0,te.jsxs)(V.Box,{sx:y.dataTableWrapper,children:[(0,te.jsx)(V.MaterialReactTable,{table:Ie}),(0,te.jsx)(ge,{})]})}const oe=(0,c.memo)(ie)},81247:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(47361),i=n(30538),o=n(43331),a=n(68312),s=n(82942),l=n(60854),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]),x=(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)}),[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:x,children:d("dataTable.downloadAsCSV")}),u]})]})}},45457:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(43331),i=n(68599),o=n(94145),a=n(82942),s=n(39647),l=n(74624),c=n(60854),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]?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})})}},15560:(e,t,n)=>{"use strict";n.d(t,{bc:()=>p,j8:()=>s,bv:()=>f,iI:()=>c});var r=n(47361),i=n(30538),o=n(74624),a=n(60854);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(64426);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(17567),a=n(24438),s=n(62767),l=n(4180),c=n(82942),u=n(28187),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")})}},48495:(e,t,n)=>{"use strict";n.d(t,{r:()=>k});var r=n(64426),i=n(47361),o=n(30538),a=n(43331),s=n(94145),l=n(82942),c=n(62e3),u=n(28187),d=n(60854),h=n(78383),p=n(55587),f=n(43994),g=n(59615),m=n.n(g),y=n(41218),v=n(79913),b=n(10247),x=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 A(e){for(var t=1;t1?"s":"")}),[f]),Z=(0,o.useMemo)((function(){return d.vF.logTraceUseMemo("DETAILS-PANEL - memoLayersList",w,v),w.map((function(e){return v.find((function(t){return t.layerPath===e}))})).filter((function(e){return e})).map((function(e){var t,n,r;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:X(e),tooltip:"".concat(e.layerName,", ").concat(X(e))}}))}),[w,v,X]),J=(0,o.useMemo)((function(){return d.vF.logTraceUseMemo("DETAILS-PANEL - memoLayerSelectedItem",Z,y),Z.find((function(e){return e.layerPath===y}))}),[Z,y]),Q=(0,o.useMemo)((function(){return d.vF.logTraceUseMemo("DETAILS-PANEL - memoSelectedLayerData",v,y),v.find((function(e){return e.layerPath===y}))}),[v,y]),ee=(0,o.useMemo)((function(){return d.vF.logTraceUseMemo("DETAILS-PANEL - memoSelectedLayerDataFeatures",null==Q?void 0:Q.features),null==Q?void 0:Q.features}),[null==Q?void 0:Q.features]),te=(0,o.useCallback)((function(e,t){var n,r,i;(d.vF.logTraceUseCallback("DETAILS-PANEL - updateFeatureSelected"),null!=t&&t.features)&&(r=null==t||null===(i=t.features)||void 0===i?void 0:i[H.current]);r&&!Y(r)&&M(r);var o=null==Q||null===(n=Q.features)||void 0===n?void 0:n[e];o&&I(o),F(e)}),[Q,Y,M,I]);(0,o.useEffect)((function(){d.vF.logTraceUseEffect("DETAILS-PANEL - memoLayersList changed",Z),M("all"),Z.length||k("")}),[Z,k,M]),(0,o.useEffect)((function(){d.vF.logTraceUseEffect("DETAILS-PANEL - memoSelectedLayerDataFeatures changed",Z,ee),K(q.current),K(ee),ee&&ee.length&&I(ee[j])}),[Z,ee,j,I,M,K]),(0,o.useEffect)((function(){d.vF.logTraceUseEffect("DETAILS-PANEL - update layer data bypass",y),O(y)}),[y,O]),(0,o.useEffect)((function(){if(d.vF.logTraceUseEffect("DETAILS-PANEL - check selection",J),(!J||"processed"===J.queryStatus||"error"===J.queryStatus)&&""!==y)if(null!=J&&J.numOffeatures)d.vF.logDebug("DETAILS-PANEL","keep selection",J),O(J.layerPath);else{var e=Z.find((function(e){return Z.find((function(t){return e.layerPath===t.layerPath&&t.numOffeatures}))}));e?(d.vF.logDebug("DETAILS-PANEL","select another",J,e.layerPath),k(e.layerPath)):d.vF.logDebug("DETAILS-PANEL","select none",J)}}),[J,Z]);var ne=(0,o.useCallback)((function(e){d.vF.logTraceUseCallback("DETAILS PANEL - handleFeatureNavigateChange",j),H.current=j,te(j+e,Q)}),[j,Q,te]),re=(0,o.useCallback)((function(e){d.vF.logTraceUseCallback("DETAILS-PANEL - handleLayerChange",e.layerPath),k(e.layerPath)}),[k]),ie=function(){var e;W.current=v.find((function(e){return e.layerPath===z})),q.current=null===(e=W.current)||void 0===e?void 0:e.features,H.current=j,F(0)};G!==Z&&(U(Z),ie()),z!==y&&(V(y),ie());var oe=(0,o.useCallback)((function(e){d.vF.logTraceUseCallback("DETAILS PANEL - handleGuideIsOpen"),e&&k("")}),[k]);(0,o.useEffect)((function(){if(d.vF.logTraceUseEffect("DETAILS-PANEL- mapClickCoordinates",A),A&&null!=Z&&Z.length&&!y.length){var e,t=Z.find((function(e){return!!e.numOffeatures}));k(null!==(e=null==t?void 0:t.layerPath)&&void 0!==e?e:"")}}),[A,Z]);var ae=(0,o.useMemo)((function(){return d.vF.logTraceUseMemo("DETAILS-PANEL - order layer status processing."),function(){return!(null==v||!v.find((function(e){return e.queryStatus===C.RI.PROCESSING})))}}),[v]);return(0,x.jsx)(h.PE,{selectedLayerPath:y||"",layerList:Z,onLayerListClicked:function(e){return re(e)},fullWidth:n,onGuideIsOpen:oe,guideContentIds:["details"],children:ae()?(0,x.jsx)(l.Skeleton,{variant:"rounded",width:"100%",height:500,sx:{bgcolor:g.palette.grey[400]}}):ee&&ee.length>0?(0,x.jsxs)(l.Box,{sx:n?m.rightPanelContainer:_({},m.rightPanelContainer),children:[(0,x.jsxs)(l.Grid,{container:!0,sx:m.rightPanelBtnHolder,children:[(0,x.jsx)(l.Grid,{item:!0,xs:6,children:(0,x.jsxs)(l.Box,{style:{marginLeft:"1.375rem"},children:[f("details.featureDetailsTitle").replace("{count}","".concat(j+1)).replace("{total}","".concat(null==ee?void 0:ee.length)),(0,x.jsx)(l.IconButton,{sx:(0,r.A)({marginLeft:"1.25rem"},g.breakpoints.down("sm"),{display:"none"}),"aria-label":"clear-all-features",tooltip:"details.clearAllfeatures",tooltipPlacement:"top",onClick:function(){return M("all"),T("all"),void I(null==Q||null===(e=Q.features)||void 0===e?void 0:e[j]);var e},className:"buttonOutline",disabled:0===b.length,children:(0,x.jsx)(l.LayersClearOutlinedIcon,{})})]})}),(0,x.jsx)(l.Grid,{item:!0,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 ne(-1)},disabled:j<=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 ne(1)},disabled:!(null!=Q&&Q.features)||j+1>=Q.features.length,className:"buttonOutline",children:(0,x.jsx)(l.ArrowForwardIosOutlinedIcon,{})})]})})]}),(0,x.jsx)(S,{features:null==Q?void 0:Q.features,currentFeatureIndex:j})]}):null})}},55587:(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"}}}}}},10247:(e,t,n)=>{"use strict";n.d(t,{P:()=>Mt});var r=n(64426),i=n(30538),o=n(43331),a=n(94145);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 x(e,t){return e in t||(t[e]=[]),t[e]}function w(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=x(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);w(o,e,r)}else n&&w(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),_=(e,t,n,r,i)=>e.tt(t,n,r,i),k="WORD",T="UWORD",O="LOCALHOST",P="TLD",I="UTLD",M="SCHEME",L="SLASH_SCHEME",R="NUM",j="WS",F="NL",D="OPENBRACE",N="CLOSEBRACE",z="OPENBRACKET",V="CLOSEBRACKET",B="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",xe="SLASH",we="TILDE",Ae="UNDERSCORE",Se="EMOJI",Ce="SYM";var Ee=Object.freeze({__proto__:null,WORD:k,UWORD:T,LOCALHOST:O,TLD:P,UTLD:I,SCHEME:M,SLASH_SCHEME:L,NUM:R,WS:j,NL:F,OPENBRACE:D,CLOSEBRACE:N,OPENBRACKET:z,CLOSEBRACKET:V,OPENPAREN:B,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:xe,TILDE:we,UNDERSCORE:Ae,EMOJI:Se,SYM:Ce});const _e=/[a-z]/,ke=/\p{L}/u,Te=/\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:Ve,formatHref:Ve,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function ze(e,t){void 0===t&&(t=null);let n=c({},Ne);e&&(n=c(n,e instanceof ze?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 Be(e,t){this.t="token",this.v=e,this.tk=t}function $e(e,t){class n extends Be{constructor(t,n){super(t,n),this.t=e}}for(const e in t)n.prototype[e]=t[e];return n.t=e,n}Be.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)),_(n,"'",ee),_(n,"{",D),_(n,"}",N),_(n,"[",z),_(n,"]",V),_(n,"(",B),_(n,")",$),_(n,"<",G),_(n,">",U),_(n,"(",W),_(n,")",q),_(n,"「",H),_(n,"」",Y),_(n,"『",K),_(n,"』",X),_(n,"<",Z),_(n,">",J),_(n,"&",Q),_(n,"*",te),_(n,"@",ne),_(n,"`",ie),_(n,"^",oe),_(n,":",ae),_(n,",",se),_(n,"$",le),_(n,".",ce),_(n,"=",ue),_(n,"!",de),_(n,"-",he),_(n,"%",pe),_(n,"|",fe),_(n,"+",ge),_(n,"#",me),_(n,"?",ye),_(n,'"',ve),_(n,"/",xe),_(n,";",be),_(n,"~",we),_(n,"_",Ae),_(n,"\\",re);const r=C(n,Oe,R,{[u]:!0});C(r,Oe,r);const i=C(n,_e,k,{[d]:!0});C(i,_e,i);const o=C(n,ke,T,{[h]:!0});C(o,_e),C(o,ke,o);const a=C(n,Pe,j,{[b]:!0});_(n,Ie,F,{[b]:!0}),_(a,Ie),C(a,Pe,a);const f=C(n,Te,Se,{[m]:!0});C(f,Te,f),_(f,Me,f);const x=_(f,Le);C(x,Te,f);const S=[[_e,i]],Ne=[[_e,null],[ke,o]];for(let e=0;ee[0]>t[0]?1:-1));for(let t=0;t=0?i[g]=!0:_e.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(xt(t.chars));break;case ft:i.push(`\x3c!--${xt(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}="${wt(r)}"`)}return t.join(" ")}(n)}>${xt(r)}`}function xt(e){return e.replace(//g,">")}function wt(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,{item:!0,xs:"auto",sx:{fontWeight:"bold",width:"80% !important"},children:e.alias}),(0,Ot.jsx)(St.Grid,{item:!0,sx:{ml:"auto",wordWrap:"break-word",pr:"0.3125rem"},children:h(e)})]},"".concat(e.alias," ").concat(t.toString()))})),(0,Ot.jsx)(u,{})]})}},58726:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(82942),i=n(69495),o=n(15247),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)().openModal;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,children:(0,a.jsx)(r.DownloadIcon,{})})}},28184:(e,t,n)=>{"use strict";n.d(t,{A:()=>ie});var r=n(47361),i=n(30538),o=n(43331),a=n(94145);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 x(e){const t=function(e){const t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""}(e).toLowerCase();return b[t]||""}function w(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 _(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=x(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 k=e=>null!=e.tagName&&"SLOT"===e.tagName.toUpperCase();function T(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=>_(e,t))).then((n=>async function(e,t,n){var r,i;let o=[];return o=k(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=>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=>!w(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||w(e.src))&&(!f(e,SVGImageElement)||w(e.href.baseVal)))return;const r=n?e.src:e.href.baseVal,i=await E(r,x(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 z(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 V(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 B(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=z(e.href).then((e=>V(e,t))).then((e=>B(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(z(n.href).then((e=>V(e,t))).then((e=>B(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(82942),Y=n(79913),K=n(34028),X=n(69495),Z=n(15247),J=n(31726),Q=n(52315),ee=n(28187),te=n(46686),ne=n(60854),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=(0,a.A)(),d=(0,i.useState)(!0),h=(0,r.A)(d,2),p=h[0],f=h[1],g=(0,i.useState)(!0),m=(0,r.A)(g,2),y=m[0],v=m[1],b=(0,i.useState)(!1),x=(0,r.A)(b,2),w=x[0],A=x[1],S=(0,i.useState)(""),C=(0,r.A)(S,2),E=C[0],_=C[1],k=(0,i.useRef)(null),T=(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,ee.Mk)(),R=(0,ee.gx)(),j=(0,ee.re)(),F=(0,te.A)().rotationAngle,D=(0,X.A6)(),N=D.closeModal,z=D.setActiveAppBarTab,V=(0,X.NP)().activeElementId,B=(0,X.bd)().isOpen,$=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&&T.current&&O.current){var n=T.current,r=O.current;c&&!l&&z("AppbarPanelButtonLegend","legend",!0),e=setTimeout((function(){f(!0),q(s).then((function(e){f(!1);var t=new Image;t.src=e,t.style.maxWidth="".concat($(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&&P.current){var i;e.removeAttribute("style"),v(!0);var o=document.getElementById("".concat(t,"-legend")),a=null!==(i=null==o?void 0:o.hasAttribute("hidden"))&&void 0!==i?i:null;a&&o.removeAttribute("hidden"),q(e).then((function(e){var t;v(!1);var n=new Image;n.src=e,n.style.maxWidth="".concat($(r),"px"),null===(t=P.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)}))}}),500)}return function(){e&&clearTimeout(e),f(!0),v(!0)}}),[V,B]),(0,re.jsxs)(H.Dialog,{open:"export"===V,onClose:N,fullWidth:!0,maxWidth:"xl",disablePortal:!0,children:[(0,re.jsx)(H.DialogTitle,{children:e("exportModal.title")}),(0,re.jsx)(H.DialogContent,{dividers:!0,ref:O,children:(0,re.jsxs)(H.Box,{ref:k,textAlign:"center",children:[(0,re.jsx)(H.Box,{ref:I,children:(0,re.jsx)(H.TextField,{label:e("exportModal.exportTitle"),variant:"standard",value:E,onChange:function(e){return _(e.target.value)},sx:{paddingBottom:"1rem",minWidth:300}})}),(0,re.jsx)(H.Box,{ref:M}),(0,re.jsx)(H.Box,{ref:T,children:p&&(0,re.jsx)(H.Skeleton,{variant:"rounded",width:"100%",height:500,sx:{bgcolor:u.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:!!R.labelGraphic.length&&(0,re.jsxs)(H.Box,{children:[R.labelGraphic," ",e("exportModal.approx")," ",(0,re.jsx)("hr",{})]})}),L&&(0,re.jsx)(H.Box,{textAlign:"right",style:{transform:"rotate(".concat(F.angle,"deg)")},children:(0,re.jsx)(Q.e,{width:44,height:44})})]}),(0,re.jsx)(H.Box,{ref:P,children:y&&(0,re.jsx)(H.Skeleton,{variant:"rounded",width:"100%",height:500,sx:{bgcolor:u.palette.grey[500]}})}),(0,re.jsx)(H.Box,{textAlign:"center",children:j.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("AppbarPanelButtonLegend","legend",!1),N()},type:"text",size:"small",role:"button",tabIndex:-1,autoFocus:!0,"aria-hidden":"true",sx:{width:"inherit",fontSize:u.palette.geoViewFontSize.sm,color:u.palette.common.white,padding:"0.7rem 1rem",backgroundColor:u.palette.geoViewColor.primary.main},children:e("exportModal.cancelBtn")}),(0,re.jsx)(H.LoadingButton,{loading:w,variant:"contained",onClick:function(){k.current&&I.current&&M.current&&(I.current.style.display="none",M.current.style.padding="1rem",M.current.innerHTML=E,A(!0),q(k.current,{backgroundColor:u.palette.common.white}).then((function(e){A(!1),(0,Y.exportPNG)(e,t),z("AppbarPanelButtonLegend","legend",!1),N()})).catch((function(e){ne.vF.logError("Error while exporting the image",e)})))},size:"small",sx:{fontSize:u.palette.geoViewFontSize.sm,padding:"0.7rem 1rem",backgroundColor:u.palette.geoViewColor.primary.main,height:"50px"},disabled:y||p,children:e("exportModal.exportBtn")})]})]})}},18114:(e,t,n)=>{"use strict";n.d(t,{x:()=>m});var r=n(70640),i=n(32814),o=n(64426),a=n(38829),s=n(16221),l=n(79913);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)}},21793:(e,t,n)=>{"use strict";n.d(t,{N:()=>j});var r=n(64426),i=n(47361),o=n(76390),a=n.n(o),s=n(30538),l=n(94145),c=n(82942),u=n(90763),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]}}}},h=n(23296),p=n(15247),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(69495),m=n(60854),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]),x=function(){v(null)},w=Boolean(d);return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(c.IconButton,{onClick:function(e){return(t=e).preventDefault(),void v(t.currentTarget);var t},tooltip:"footerBar.resizeTooltip",children:(0,y.jsx)(c.HeightIcon,{})}),(0,y.jsx)(c.Popover,{open:w,anchorEl:d,onClose:x,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),x()},min:o[0],max:o[o.length-1]})})})]})}var b=n(31726),x=n(62e3),w=n(76262),A=n(15789),S=n(15470),C=n(19512),E=n(94321),_=n(27927),k=n(14476),T=n(97182),O=n(48495),P=n(53191),I=n(82875),M=n(98030);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 R(e){for(var t=1;t0?(0,y.jsx)(c.Box,{ref:z,sx:L.tabsContainer,className:"tabsContainer",id:"".concat(h,"-tabsContainer"),children:(0,y.jsx)(c.Tabs,{activeTrap:W,isCollapsed:q,onToggleCollapse:function(){J(!q)},onSelectedTabChanged:function(e){K(e.id)},onOpenKeyboard:X,onCloseKeyboard:Z,selectedTab:ae.findIndex((function(e){return e.id===U})),tabsProps:{variant:"scrollable"},tabs:ae,TabContentVisibilty:q?"hidden":"visible",rightButtons:(0,y.jsxs)(y.Fragment,{children:[!q&&V&&(0,y.jsx)(v,{}),(0,y.jsx)(c.IconButton,{onClick:ue,tooltip:D?"footerBar.focusToMap":"footerBar.focusToFooter",className:"buttonFilled",disabled:q||V||G[G.length-1]===$,children:D?(0,y.jsx)(c.MoveUpRoundedIcon,{}):(0,y.jsx)(c.MoveDownRoundedIcon,{})})]})})}):null}},84050:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(30538),i=n(82942),o=n(65423),a=n(28187),s=n(43975),l=n(60854),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;l.vF.logTraceUseCallback("GEOLOCATOR - geolist - getTooltipTitle",t,n,r);var i=t;return r&&"null"!==r&&(i+=", ".concat(r)),n&&"null"!==n&&(i+=", ".concat(n)),i}),[]),h=(0,r.useCallback)((function(e,t,n){l.vF.logTraceUseCallback("GEOLOCATOR - geolist - transformListTitle",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,{item:!0,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,{item:!0,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()))}))})}},65423:(e,t,n)=>{"use strict";n.d(t,{K9:()=>o,aP:()=>a,cm:()=>s});var r=n(58990),i=n(20553),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%"}}}))},79437:(e,t,n)=>{"use strict";n.d(t,{u:()=>C});var r=n(43994),i=n(47361),o=n(59615),a=n.n(o),s=n(30538),l=n(43331),c=n(44481),u=n.n(c),d=n(94145),h=n(82942),p=n(65423),f=n(46457),g=n(69495),m=n(31726),y=n(28249),v=n(84050),b=n(28187),x=n(60854),w=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),_=E[0],k=E[1],T=(0,b.ht)(),O=(0,d.A)(),P=(0,s.useMemo)((function(){x.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(){x.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 x.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(){x.vF.logTraceUseEffect("GEOLOCATOR-RESULT - geoLocationData",t),k(t)}),[t]),(0,s.useEffect)((function(){x.vF.logTraceUseEffect("GEOLOCATOR-RESULT - geoLocationData province category",M),k(M)}),[M]),(0,s.useEffect)((function(){x.vF.logTraceUseEffect("GEOLOCATOR-RESULT - geoLocationData reset",t),t.length||(f(""),S(""))}),[t]),(0,w.jsxs)(h.Paper,{component:"div",elevation:4,square:!0,sx:{width:350},children:[!r&&(0,w.jsxs)(h.Box,{sx:p.K9.filter,children:[(0,w.jsx)(h.Box,{sx:{flexGrow:2,paddingRight:"8px",maxWidth:150},children:(0,w.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,w.jsx)(h.Box,{sx:{flexGrow:2,paddingRight:"8px",maxWidth:150},children:(0,w.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,w.jsx)(h.Box,{children:(0,w.jsx)(h.IconButton,{size:"small",edge:"end",color:"inherit",tooltip:"geolocator.clearFilters",onClick:function(){(u||A)&&(f(""),S(""),k(t))},disabled:!t.length,children:(0,w.jsx)(h.FilterAltOffIcon,{fontSize:O.palette.geoViewFontSize.sm})})})]}),(0,w.jsx)(h.Divider,{}),(0,w.jsxs)(h.Box,{sx:{maxHeight:T[1]-160,overflowY:"auto"},children:[!!_.length&&(0,w.jsx)(v.A,{geoListItems:_,searchValue:n}),(!_.length||r)&&(0,w.jsxs)(h.Box,{sx:{p:10},children:[(0,w.jsxs)(h.Typography,{component:"p",sx:{fontSize:O.palette.geoViewFontSize.md},children:[o("geolocator.errorMessage")," ",(0,w.jsx)("b",{children:n})]}),!(!u.length&&!A.length)&&(0,w.jsxs)(h.List,{sx:p.K9.filterListError,children:[!!u.length&&(0,w.jsx)(h.ListItem,{children:(0,w.jsx)(h.ListItemText,{primary:"".concat(o("geolocator.province"),": ").concat(u)})}),!!A.length&&(0,w.jsx)(h.ListItem,{children:(0,w.jsx)(h.ListItemText,{primary:"".concat(o("geolocator.category"),": ").concat(A)})})]})]})]})]})}var S=n(8259);function C(){x.vF.logTraceRender("components/geolocator/geolocator");var e=(0,l.useTranslation)().t,t=(0,d.A)(),n=(0,s.useState)(),o=(0,i.A)(n,2),c=o[0],y=o[1],v=(0,s.useState)(),b=(0,i.A)(v,2),C=b[0],E=b[1],_=(0,s.useState)(!1),k=(0,i.A)(_,2),T=k[0],O=k[1],P=(0,s.useState)(""),I=(0,i.A)(P,2),M=I[0],L=I[1],R=(0,m.t)(),j=(0,m._V)(),F=(0,g.A6)().setActiveAppBarTab,D=(0,g.bd)(),N=D.tabGroup,z=D.isOpen,V=(0,s.useRef)("".concat(j,"&lang=").concat(R)),B=(0,s.useRef)(null),$=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"}},G=(0,s.useCallback)(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,O(!0),B.current&&B.current.abort(),n=new AbortController,B.current=n,e.next=7,fetch("".concat(V.current,"&q=").concat(encodeURIComponent("".concat(t,"*"))),{signal:B.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(!1),(o=$(t))&&i.unshift(o),y(i),e.next=23;break;case 19:e.prev=19,e.t0=e.catch(0),O(!1),E(e.t0);case 23:case"end":return e.stop()}}),e,null,[[0,19]])})));return function(t){return e.apply(this,arguments)}}(),[]),U=(0,s.useCallback)((function(){L(""),y(void 0),F("AppbarPanelButtonGeolocator",S.NF.GEOLOCATOR,!1)}),[F]),W=u()((function(e){G(e).catch((function(e){x.vF.logPromiseFailed("getGeolocations in deRequest in Geolocator",e)}))}),f.Xl),q=(0,s.useCallback)((function(e){return W(e)}),[]),H=(0,s.useCallback)((function(){M.length>=3&&(W.cancel(),G(M).catch((function(e){x.vF.logPromiseFailed("getGeolocations in Geolocator",e)})))}),[W,G,M]);return(0,s.useEffect)((function(){return function(){B.current&&B.current.abort()}}),[]),(0,w.jsxs)(h.Box,{sx:p.K9.root,visibility:N===S.NF.GEOLOCATOR&&z?"visible":"hidden",id:"geolocator-search",children:[(0,w.jsx)(h.Box,{sx:p.K9.geolocator,children:(0,w.jsx)(h.AppBarUI,{position:"static",children:(0,w.jsx)(h.Toolbar,{variant:"dense",children:(0,w.jsxs)("form",{onSubmit:function(e){e.preventDefault(),H()},children:[(0,w.jsx)(p.cm,{placeholder:e("geolocator.search"),autoFocus:!0,onChange:function(e){var t=e.target.value;L(t),t.length>=3&&q(t),(!t.length||t.length<3)&&(B.current&&B.current.abort(),W.cancel(),y(void 0))},value:M}),(0,w.jsxs)(h.Box,{sx:{display:"flex",marginLeft:"auto",alignItems:"center"},children:[(0,w.jsx)(h.IconButton,{size:"small",edge:"end",color:"inherit",sx:{mr:4},disabled:!M.length,onClick:H,children:(0,w.jsx)(h.SearchIcon,{fontSize:t.palette.geoViewFontSize.sm})}),(0,w.jsx)(h.Divider,{orientation:"vertical",variant:"middle",flexItem:!0}),(0,w.jsx)(h.IconButton,{size:"small",edge:"end",color:"inherit",sx:{mr:2,ml:4},onClick:U,children:(0,w.jsx)(h.CloseIcon,{fontSize:t.palette.geoViewFontSize.sm})})]})]})})})}),T&&(0,w.jsx)(h.Box,{sx:p.K9.progressBar,children:(0,w.jsx)(h.ProgressBar,{})}),!!c&&(null==M?void 0:M.length)>=3&&(0,w.jsx)(h.Box,{sx:p.K9.searchResult,children:(0,w.jsx)(A,{geoLocationData:c,searchValue:M,error:C})})]})}},82875:(e,t,n)=>{"use strict";n.d(t,{r:()=>f});var r=n(47361),i=n(30538),o=n(34089),a=n(43331),s=n(94145),l=n(82942),c=n(31726),u=n(60854),d=function(e){return{guideContainer:{"& .responsive-layout-right-main-content":{backgroundColor:e.palette.geoViewColor.white}},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(78383),p=n(97282);function f(e){var t,n=e.fullWidth,f=(0,a.useTranslation)().t,g=(0,s.A)(),m=d(g),y=(0,c.DR)(),v=(0,i.useState)(""),b=(0,r.A)(v,2),x=b[0],w=b[1],A=(0,i.useState)(0),S=(0,r.A)(A,2),C=S[0],E=S[1],_=(0,i.useCallback)((function(){return u.vF.logTraceUseCallback("GUIDE_PANEL - getListOfGuides"),y?Object.keys(y).map((function(e){var t=y[e].content;return y[e].children&&Object.keys(y[e].children).forEach((function(n){t+="\n".concat(y[e].children[n].content),y[e].children[n].children&&Object.keys(y[e].children[n].children).forEach((function(r){t+="\n".concat(y[e].children[n].children[r].content)}))})),{layerName:y[e].heading,layerPath:e,layerStatus:"loaded",queryStatus:"processed",content:(0,p.jsx)(o.Ay,{options:{wrapper:"article"},children:t})}})):[]}),[y]),k=(0,i.useMemo)((function(){return u.vF.logTraceUseMemo("GUIDE_PANEL - layerlist"),w("navigationControls"),_()}),[_]),T=(0,i.useCallback)((function(e){u.vF.logTraceUseCallback("GUIDE PANEL - handleGuideItemClick",e);var t=k.findIndex((function(t){return t.layerName===e.layerName}));E(t),w(e.layerPath)}),[k]);return(0,p.jsx)(l.Box,{sx:m.guideContainer,children:(0,p.jsx)(h.PE,{selectedLayerPath:x||"",layerList:k,onLayerListClicked:T,fullWidth:n,"aria-label":f("guide.title"),children:(0,p.jsx)(l.Box,{sx:m.rightPanelContainer,"aria-label":f("guide.title"),className:"guidebox-container",children:(0,p.jsx)(l.Box,{className:"guideBox",children:null===(t=k[C])||void 0===t?void 0:t.content})})})})}},16154:(e,t,n)=>{"use strict";n.d(t,{s:()=>f});var r=n(47361),i=n(30538),o=n(43331),a=n(94145),s=n(82942),l=n(60854),c=n(28187),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(15247),h=n(31726),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),x=b[0],w=b[1],A=(0,i.useState)(!1),S=(0,r.A)(A,2),C=S[0],E=S[1],_=u(n),k=(0,c.kI)(),T=(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",k),k)&&(y(null===(e=k.fieldInfo)||void 0===e?void 0:e.value),w(k.featureIcon.toDataURL()),E(!0))}),[k]),(0,i.useEffect)((function(){y(""),w(""),E(!1)}),[T]),(0,i.useEffect)((function(){if(l.vF.logTraceUseEffect("HOVER-TOOLTIP - tooltipValue changed",m),O&&P.current&&T&&T.pixel&&m){var e=O.getBoundingClientRect(),t=P.current.getBoundingClientRect(),n=T.pixel[0]+10,r=T.pixel[1]-35;T.pixel[0]+t.width>e.width&&(n=T.pixel[0]-t.width-10),T.pixel[1]-t.height{"use strict";n.d(t,{$:()=>s.$,re:()=>o.r,rn:()=>i.r,s$:()=>a.s,tk:()=>r.t});n(96974),n(95811),n(97886),n(17161),n(57449),n(89971),n(77082),n(81247),n(45457),n(74468),n(87485);var r=n(53191),i=n(48495),o=(n(58726),n(28184),n(55147),n(98625),n(55589),n(6017),n(18114),n(21793),n(84050),n(79437),n(65423),n(82875)),a=(n(16154),n(14476)),s=n(97182);n(77143),n(55284),n(45094),n(93201),n(33859),n(21343),n(35971),n(89780),n(21350),n(69561),n(52315),n(94044),n(12805),n(62523),n(67121),n(5099)},97182:(e,t,n)=>{"use strict";n.d(t,{$:()=>Ae});var r=n(64426),i=n(47361),o=n(30538),a=n(94145),s=n(82942),l=n(91140),c=n(43331),u=n(97282);function d(){var e=(0,a.A)(),t=(0,c.useTranslation)().t,n=(0,l.y5)(),r=(0,l.Yo)(),i=(0,l.$T)().setDisplayState,o=function(e){i(e)};return(0,u.jsx)(s.Box,{id:"layers-toolbar",sx:{padding:"8px 18px 0px 18px"},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:!r.length,size:"small",tooltip:"general.view",variant:"view"===n?"contained":"outlined",startIcon:(0,u.jsx)(s.VisibilityOutlinedIcon,{fontSize:e.palette.geoViewFontSize.sm}),onClick:function(){return o("view")},children:t("general.view")}),(0,u.jsx)(s.Button,{makeResponsive:!0,type:"text",size:"small",tooltip:"legend.addLayer",variant:"add"===n?"contained":"outlined",startIcon:(0,u.jsx)(s.AddCircleOutlineIcon,{fontSize:e.palette.geoViewFontSize.sm}),onClick:function(){return o("add")},children:t("general.add")}),(0,u.jsx)(s.Button,{makeResponsive:!0,type:"text",disabled:!r.length,size:"small",tooltip:"legend.sortLayers",variant:"order"===n?"contained":"outlined",startIcon:(0,u.jsx)(s.HandleIcon,{fontSize:e.palette.geoViewFontSize.sm}),onClick:function(){return o("order")},children:t("legend.sort")}),(0,u.jsx)(s.Button,{makeResponsive:!0,type:"text",disabled:!r.length,size:"small",tooltip:"legend.removeLayer",variant:"remove"===n?"contained":"outlined",startIcon:(0,u.jsx)(s.DeleteOutlineIcon,{fontSize:e.palette.geoViewFontSize.sm}),onClick:function(){return o("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(69495),m=n(74624),y=n(79913),v=n(46182),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}}}},x=n(60854);function w(e){x.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})]})})}function A(e){var t,n;x.vF.logTraceRender("components/layers/right-panel/layer-details");var d=e.layerDetails,h=(0,c.useTranslation)().t,b=(0,a.A)(),A=f(b),S=(0,o.useState)(!1),C=(0,i.A)(S,2),E=C[0],_=C[1],k=(0,l.Zt)(),T=(0,l.$T)(),O=T.setAllItemsVisibility,P=T.toggleItemVisibility,I=T.setHighlightLayer,M=T.zoomToLayerExtent,L=T.getLayerBounds,R=(0,g.A6)().openModal,j=(0,m.Xh)(),F=j.find((function(e){return e.layerPath===(null==d?void 0:d.layerPath)}));(0,o.useEffect)((function(){var e;return x.vF.logTraceUseEffect("LAYER DETAILS",F,d),F?e=setTimeout((function(){_(!0)}),100):_(!0),function(){_(!1),e&&clearTimeout(e)}}),[j,d,F]);var D=function(){M(d.layerPath).catch((function(e){x.vF.logPromiseFailed("in zoomToLayerExtent in layer-details.handleZoomTo",e)}))},N=function(){R({activeElementId:"layerDataTable",callbackElementId:"table-details"})};if(void 0===d.bounds||d.bounds[0]===1/0){var z=L(d.layerPath);z&&(d.bounds=z)}var V=function(){x.vF.logDebug("Refresh is not implemented")},B=function(){I(d.layerPath)},$=function(){return p()(d.items,(function(e){return!1!==e.isVisible}))};function G(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 P(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 U,W,q,H;return(0,u.jsx)(s.Paper,{sx:A.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:A.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:[E&&(null==F||null===(U=F.features)||void 0===U?void 0:U.length)&&(!1!==(null===(H=d.controls)||void 0===H?void 0:H.table)?(0,u.jsx)(s.IconButton,{id:"table-details",tooltip:"legend.tableDetails",className:"buttonOutline",onClick:N,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:V,children:(0,u.jsx)(s.RestartAltIcon,{})}),!1!==(null===(q=d.controls)||void 0===q?void 0:q.highlight)?(0,u.jsx)(s.IconButton,{tooltip:"legend.highlightLayer",onClick:B,className:k===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===(W=d.controls)||void 0===W?void 0:W.zoom)?(0,u.jsx)(s.IconButton,{tooltip:"legend.zoomTo",onClick:D,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:A.layerOpacityControlContainer,children:(0,u.jsx)(s.Box,{id:"layerOpacity",children:(0,u.jsx)(w,{layerDetails:d})})}),"ogcWms"===d.type&&d.icons.length&&d.icons[0].iconImage&&"no data"!==d.icons[0].iconImage?(0,u.jsx)(s.Box,{sx:{marginTop:"10px"},children:(0,u.jsx)("img",{alt:"icon",src:d.icons[0].iconImage,style:A.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:A.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,{item:!0,xs:"auto",children:d.canToggle?(0,u.jsx)(s.IconButton,{color:"primary",onClick:function(){return O(d.layerPath,!$())},children:$()?(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,{item:!0,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,{item:!0,xs:"auto",children:G(e)}),(0,u.jsxs)(s.Grid,{item:!0,xs:"auto",children:[e.icon?(0,u.jsx)("img",{alt:e.name,src:e.icon}):(0,u.jsx)(s.BrowserNotSupportedIcon,{}),(0,u.jsx)(s.Box,{component:"span",style:A.tableIconLabel,children:e.name})]})]},e.name)}))]}),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 S=n(28187),C=n(30886),E=n.n(C),_=n(78283);function k(e){x.vF.logTraceRender("components/layers/left-panel/delete-undo-button/UndoButtonWithProgress");var t=e.progressValue,n=e.onUndo;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",children:(0,u.jsx)(s.UndoIcon,{})})})]})}function T(e){var t;x.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],g=p[1],m=(0,l.$T)(),y=m.deleteLayer,v=m.setLayerDeleteInProgress,b=m.getLayerDeleteInProgress,w=(0,S.U6)(),A=w.getVisibilityFromOrderedLayerInfo,C=w.setOrToggleLayerVisibility,E=function(){A(n.layerPath)&&C(n.layerPath),g(!0),v(!0)};return(0,o.useEffect)((function(){100===c&&(y(n.layerPath),g(!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)||b()?f?(0,u.jsx)(k,{progressValue:c,onUndo:function(){C(n.layerPath),g(!1),v(!1)}}):(0,u.jsx)(s.IconButton,{onClick:E,edge:"end",size:"small",disabled:!0,children:(0,u.jsx)(s.DeleteOutlineIcon,{color:"disabled"})}):(0,u.jsx)(s.IconButton,{onClick:E,edge:"end",size:"small",children:(0,u.jsx)(s.DeleteOutlineIcon,{color:"error"})})}var O=n(46457),P=n(91693),I=n(2890),M=n(75311),L=n(37112);function R(e){var t=e.depth,n=e.layer,r=e.setIsLayersListPanelVisible,a=e.index,d=e.isFirst,h=e.isLast,p=e.isLayoutEnlarged;x.vF.logTraceRender("components/layers/left-panel/single-layer");var f=(0,c.useTranslation)().t,g=(0,l.$T)().setSelectedLayerPath,y=(0,S.U6)(),b=y.getVisibilityFromOrderedLayerInfo,w=y.setOrToggleLayerVisibility,A=y.reorderLayer,C=(0,l.u1)(),k=(0,l.y5)(),R=(0,m._M)(),j=(0,m.Xh)(),F=(0,m.eQ)().triggerGetAllFeatureInfo,N=function e(t){return"view"===k&&(!!(t.children&&t.children.length>0)&&(t.children.filter((function(e){return e.layerPath===C})).length>0||E()(t.children,(function(t){return e(t)}))))}(n),z=n.layerPath===C&&"view"===k,V=function e(t){var n;if(!1===(null===(n=t.controls)||void 0===n?void 0:n.visibility))return!0;var r=!1;return t.children&&t.children.length>0&&(r=t.children.some((function(t){return e(t)}))),r}(n),B=(0,o.useState)(z||N),$=(0,i.A)(B,2),G=$[0],U=$[1],W=function(){U(!G)},q=function(){["processed","loaded"].includes(n.layerStatus)&&(g(n.layerPath),r&&(n.children.length>0&&U(!0),r(!0),j.filter((function(e){var t;return e.layerPath===n.layerPath&&!(null==e||null===(t=e.features)||void 0===t||!t.length)})).length&&n.layerStatus!==O.RI.ERROR||F(n.layerPath).catch((function(e){x.vF.logPromiseFailed("Failed to triggerGetAllFeatureInfo in single-layer.handleLayerClick",e)}))))};var H,Y,K,X,Z=(0,_.zh)({delay:150*a+150*t/2,from:{opacity:.1},to:{opacity:1}}),J=(0,_.CS)(s.Paper);return(0,u.jsxs)(J,{className:(X=["layer-panel ",null!==(K=n.layerStatus)&&void 0!==K?K:""],0===t&&X.push("bordered"),!N||z||G||X.push("selectedLayer bordered-primary"),z&&X.push("selectedLayer bordered-primary"),X.join(" ")),style:Z,"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,{divider:!0,tabIndex:0,onKeyDown:function(e){return function(e){"Enter"===e.key&&q()}(e)},children:(0,u.jsxs)(s.ListItemButton,{selected:z||N&&!G,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 f("legend.layerError");if("processing"===n.layerStatus||"loading"===n.layerStatus)return f("legend.layerLoading");if(n.children.length>0)return f("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=f("legend.itemsCount").replace("{count}",e.toString()).replace("{totalCount}",t.toString());return t<=1&&(r=""),R[n.layerPath]?(0,u.jsxs)(s.Typography,{sx:{color:"unset",fontSize:"unset"},component:"span",children:[r,"  ",(0,u.jsx)(P.A,{sx:{marginBottom:"-5px"},fontSize:"small"})]}):r}(),onClick:q}),!p&&(0,u.jsxs)(s.ListItemIcon,{className:"rightIcons-container",children:["processing"===n.layerStatus||"loading"===n.layerStatus||"view"!==k?null:"error"===n.layerStatus?(0,u.jsx)(T,{layer:n}):V?(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(){w(n.layerPath)},tooltip:"layers.toggleVisibility",className:"buttonOutline",children:b(n.layerPath)?(0,u.jsx)(s.VisibilityOutlinedIcon,{}):(0,u.jsx)(s.VisibilityOffOutlinedIcon,{})}),null!==(Y=n.children)&&void 0!==Y&&Y.length?(0,u.jsx)(s.IconButton,{color:"primary",edge:"end",size:"small",onClick:W,tooltip:"layers.toggleCollapse",className:"buttonOutline",children:G?(0,u.jsx)(s.KeyboardArrowUpIcon,{}):(0,u.jsx)(s.KeyboardArrowDownIcon,{})}):null,"remove"===k?(0,u.jsx)(T,{layer:n}):"order"===k?(0,u.jsxs)(u.Fragment,{children:[(null===(H=n.children)||void 0===H?void 0:H.length)>0&&(0,u.jsx)(L.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,{disabled:d,edge:"end",size:"small",onClick:function(){return A(n.layerPath,-1)},children:(0,u.jsx)(I.A,{})}),(0,u.jsx)(s.IconButton,{disabled:h,edge:"end",size:"small",onClick:function(){return A(n.layerPath,1)},children:(0,u.jsx)(M.A,{})})]}):null]})]})},n.layerName)}),n.children&&n.children.length?(0,u.jsx)(s.Collapse,{in:G,timeout:"auto",children:(0,u.jsx)(D,{depth:1+t,layersList:n.children,isLayoutEnlarged:p,setIsLayersListPanelVisible:r})}):null]})}var j=function(e){return{list:{color:"text.primary",width:"100%",padding:"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"}}}},F=n(46910);function D(e){var t=e.layersList,n=e.setIsLayersListPanelVisible,r=e.isLayoutEnlarged,i=e.depth;x.vF.logTraceRender("components/layers/left-panel/layers-list");var o=(0,a.A)(),l=j(o),c=(0,F.U6)().getIndexFromOrderedLayerInfo,d=t.sort((function(e,t){return c(e.layerPath)>c(t.layerPath)?1:-1})),h=d.map((function(e,t){var o=0===t,a=t===d.length-1;return(0,u.jsx)(R,{depth:i,layer:e,setIsLayersListPanelVisible: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:h})}var N=n(43994),z=n(59615),V=n.n(z),B=n(12311),$=n(55373),G=n(30560),U=n(78752),W=n(38509),q=n(76262),H=n(15247),Y=n(86784),K=n(21838),X=n(98030),Z=n(74490),J=n(91777),Q=n(45380),ee=n(39225),te=n(97752),ne=n(51397),re=n(16535),ie=n(80995),oe=n(5715),ae=n(91195),se=n(71587),le=n(62754),ce=n(85813),ue=n(48660),de=n(10454),he=n(12764),pe=n(52375),fe=n(12358),ge=n(68709);function me(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 ye(e){for(var t=1;t0&&t.Layer.forEach((function(t){var n=t.Name;(0===u.length||u.includes(n))&&(x.vF.logDebug("NAME",n),f.push(new ae.Q({geoviewLayerConfig:d,layerId:t.Name,layerName:(0,y.createLocalizedString)(t.Title)}))),e(t)}))},p.Capability.Layer&&m(p.Capability.Layer),1===f.length?(ke(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?it("WMS",t,n):rt("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)}}(),at=function(){var e=(0,N.A)(V().mark((function e(){var t,n,r,i;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t={geoviewLayerType:m,listOfLayerEntryConfig:[],metadataAccessPath:(0,y.createLocalizedString)(M)},n=new U.dS(Ke,t),t.geoviewLayerId=n.geoviewLayerId,E(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 Z.q({geoviewLayerConfig:t,layerId:e.Name["#text"].split(":")[1],layerName:(0,y.createLocalizedString)(e.Title["#text"])})}))).length?(ke(i[0].layerName.en),Ie([i[0]])):Se(i),e.next=19;break;case 15:return e.prev=15,e.t0=e.catch(0),rt("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)}}(),st=function(){var e=(0,N.A)(V().mark((function e(){var t,n,r,i;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t={geoviewLayerType:v,listOfLayerEntryConfig:[],metadataAccessPath:(0,y.createLocalizedString)(M.split("collections")[0])},n=new $.ke(Ke,t),t.geoviewLayerId=n.geoviewLayerId,E(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 rt("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===M.split("/collections/").length&&r.collections.forEach((function(e){M.split("/collections/")[1]===e.id&&i.push(new J.j({geoviewLayerConfig:t,layerId:e.id,layerName:(0,y.createLocalizedString)(e.title)}))})),0===i.length&&(i=r.collections.map((function(e){return new J.j({geoviewLayerConfig:t,layerId:e.id,layerName:(0,y.createLocalizedString)(e.title)})}))),1===i.length?(ke(i[0].layerName.en),Ie([i[0]])):Se(i),e.next=28;break;case 24:return e.prev=24,e.t0=e.catch(0),rt("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)}}(),lt=function(){var e=(0,N.A)(V().mark((function e(){var t,n;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,-1===M.indexOf("/")&&32===M.replaceAll("-","").length){e.next=4;break}throw new Error("err");case 4:return t=new le.h(Ke,Y.FHQ.maps[Ke].getDisplayLanguage()),e.next=7,t.createLayersFromUUID(M);case 7:1===(n=e.sent).length&&(1===n.length?(ke(n[0].geoviewLayerName.en),Ie(n)):Se(n)),e.next=15;break;case 11:return e.prev=11,e.t0=e.catch(0),rt("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)}}(),ct=function(){var e=(0,N.A)(V().mark((function e(t){var n,i,o,a;return V().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)(M)}:{geoviewLayerType:t,listOfLayerEntryConfig:[],metadataAccessPath:(0,y.createLocalizedString)(M.substring(0,M.lastIndexOf("/")))},i=t===r?new de.zt(Ke,n):new pe.Uw(Ke,n),n.geoviewLayerId=i.geoviewLayerId,E(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(tt(t).capability)){e.next=15;break}"layers"in o&&(a=[],t===r?o.layers.forEach((function(e){return a.push(new ie.q({geoviewLayerConfig:n,layerId:e.id,layerName:(0,y.createLocalizedString)(e.name)}))})):a.push(new te.h({geoviewLayerConfig:n,layerId:o.layers[0].id,layerName:(0,y.createLocalizedString)(o.layers[0].name)})),1===a.length?(ke(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),rt(tt(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)}}(),ut=function(){var e=(0,N.A)(V().mark((function e(){var t,n,r,i,o;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,r={geoviewLayerType:h,listOfLayerEntryConfig:[],metadataAccessPath:(0,y.createLocalizedString)(M)},i=new K.$x(Ke,r),r.geoviewLayerId=i.geoviewLayerId,E(i),e.next=7,i.createGeoViewLayers();case 7:o=[new oe.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)(M)}})],ke(o[0].layerName.en),Ie([o[0]]),e.next=16;break;case 12:return e.prev=12,e.t0=e.catch(0),rt("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)}}(),dt=function(){var e=(0,N.A)(V().mark((function e(){var t,n,r,i,o;return V().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=Y.FHQ.maps[Ke].layer.addGeoviewLayer(t);n&&e.push(n)})):Pe.length>0&&Pe.forEach((function(t){var n=Y.FHQ.maps[Ke].layer.addGeoviewLayer(t);n&&e.push(n)})),Promise.allSettled(e.map((function(e){return e.promiseLayer}))).then((function(){ft(),e.forEach((function(e){return gt(e.layer)}))})).catch((function(e){x.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)(_e),ve===b&&(Pe[0].layerName=(0,y.createLocalizedString)(_e)),1===t.listOfLayerEntryConfig.length&&(t.listOfLayerEntryConfig[0].layerName=t.geoviewLayerName);var n=Y.FHQ.maps[Ke].layer.addGeoviewLayer(t);n?n.promiseLayer.then((function(){ft(),gt(n.layer)})).catch((function(e){x.vF.logPromiseFailed("addedLayer.promiseLayer in handleStepLast in AddNewLayer",e)})):je(!1)}},yt=function(){O((function(e){return e-1})),He(!1)},vt=function(e){var t=URL.createObjectURL(e);D(e.name),L(t);var n=e.name.split(".")[0];be(""),Se([]),ke(n),Ie([])},bt=function(e,t){He(!0),Je()?0!==t.length&&(Ie(t),ke(t.map((function(e){return e.layerName.en})).join(", ")),He(!1)):(Ie([t]),ke(t.layerName.en),He(!1))},xt=function(e){He(!1),ke(e.target.value)};(0,o.useEffect)((function(){2===T&&Pe.length>0&&He(!1)}),[_e,T,Pe]);var wt=function(e){var t;if(e.preventDefault(),e.stopPropagation(),ze(!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")?vt(n):Y.FHQ.maps[Ke].notifications.showError("layers.errorFile",[],!1)}};function At(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:et.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:yt,children:e("layers.back")})]})}var St=(0,u.jsx)(s.CheckBoxOutlineBlankIcon,{fontSize:t.palette.geoViewFontSize.sm}),Ct=(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:T,orientation:"vertical",steps:[{stepLabel:{children:e("layers.stepOne")},stepContent:{children:(0,u.jsxs)(s.Box,{className:"dropzone",style:{position:"relative"},onDrop:function(e){return wt(e)},onDragOver:function(e){return(t=e).preventDefault(),void t.stopPropagation();var t},onDragEnter:function(e){return(t=e).preventDefault(),t.stopPropagation(),void(t.target!==Ye.current&&ze(!0));var t},onDragLeave:function(e){return(t=e).preventDefault(),t.stopPropagation(),void(t.target===Ye.current&&ze(!1));var t},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&&vt(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",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:F,onChange:function(e){D(e.target.value.trim()),L(e.target.value.trim()),be(""),Se([]),ke(""),Ie([]),He(!(e.target.value.trim().startsWith("https://")||35!==e.target.value.trim().length))},multiline:!0}),(0,u.jsx)("br",{}),(0,u.jsx)(At,{isFirst:!0,handleNext:function(){var e,t,i=!0;""===M.trim()&&(i=!1,je(!1),Y.FHQ.maps[Ke].notifications.showError("layers.errorNone",[],!1)),i&&(e=F.toUpperCase().split("/"),t=parseInt(e[e.length-1],10),F.toUpperCase().endsWith("MAPSERVER")||F.toUpperCase().endsWith("MAPSERVER/")?be(r):-1!==F.toUpperCase().indexOf("FEATURESERVER")||-1!==F.toUpperCase().indexOf("MAPSERVER")&&!Number.isNaN(t)?be(d):-1!==F.toUpperCase().indexOf("IMAGESERVER")?be(h):-1!==e.indexOf("WFS")?be(m):F.toUpperCase().endsWith(".JSON")||F.toUpperCase().endsWith(".GEOJSON")?be(p):F.toUpperCase().endsWith(".GPKG")?be(f):-1!==F.toUpperCase().indexOf("{Z}/{X}/{Y}")||-1!==F.toUpperCase().indexOf("{Z}/{Y}/{X}")?be(b):-1===F.indexOf("/")&&32===F.replaceAll("-","").length?be(w):-1!==F.toUpperCase().indexOf("WMS")?be(g):F.toUpperCase().endsWith(".CSV")?be(n):(be(""),He(!0)),O(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:ve,onChange:function(e){be(e.target.value),Se([]),Ie([]),He(!1)},label:e("layers.service"),variant:"standard",inputLabel:{id:"service-type-label"},menuItems:Qe.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)(At,{handleNext:function(){var t;je(!0),void 0===ve?(je(!1),nt(e("layers.service"))):ve===g?t=ot():ve===m?t=at():ve===v?t=st():ve===b?t=dt():ve===r?t=ct(r):ve===d?t=ct(d):ve===h?t=ut():ve===p?t=pt():ve===f?t=Promise.resolve(function(){try{Ge(!1);var e={geoviewLayerType:f,listOfLayerEntryConfig:[]},t=new se.OH(Ke,e);e.geoviewLayerId=t.geoviewLayerId,E(t);var n=[new ne.X({geoviewLayerConfig:e,layerId:e.geoviewLayerId,layerName:(0,y.createLocalizedString)(""),source:{dataAccessPath:(0,y.createLocalizedString)(M)}})];ke(n[0].layerName.en),Ie([n[0]])}catch(e){return rt("GeoPackage"),!1}return!0}()):ve===w?t=lt():ve===n&&(t=ht()),t&&t.then((function(e){e&&(je(!1),O(2),He(!0))})).catch((function(e){x.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:_e,onChange:xt}),Ae.length>1&&Ae[0].layerName&&(0,u.jsx)(s.Autocomplete,{fullWidth:!0,multiple:Je(),disableClearable:!Je(),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,u.jsxs)("li",ye(ye({},e),{},{children:[(0,u.jsx)(s.Checkbox,{icon:St,checkedIcon:Ct,style:{marginRight:8},checked:r}),t.layerName.en]}))},onChange:bt,renderInput:function(t){return(0,u.jsx)(s.TextField,ye(ye({},t),{},{label:e("layers.layerSelect")}))}}),Ae.length>1&&Ae[0].geoviewLayerName&&(0,u.jsx)(s.Autocomplete,{fullWidth:!0,multiple:Je(),disableClearable:!Je(),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,u.jsxs)("li",ye(ye({},e),{},{children:[(0,u.jsx)(s.Checkbox,{icon:St,checkedIcon:Ct,style:{marginRight:8},checked:r}),t.geoviewLayerName.en]}))},onChange:bt,renderInput:function(t){return(0,u.jsx)(s.TextField,ye(ye({},t),{},{label:e("layers.layerSelect")}))}}),(0,u.jsx)("br",{}),(0,u.jsx)(At,{isLast:!Je(),handleNext:Je()?function(){var t=!0;0===Pe.length&&(t=!1,nt(e("layers.layer"))),t&&O(3)}:mt})]})}},Je()?{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:_e,onChange:xt}),(0,u.jsx)("br",{}),(0,u.jsx)(At,{isLast:!0,handleNext:mt})]})}}:null]})})}function be(e){var t=e.setIsLayersListPanelVisible,n=e.isLayoutEnlarged;x.vF.logTraceRender("components/layers/left-panel/left-panel");var r=(0,l.Yo)(),a=(0,l.y5)(),s=(0,S._I)(),c=(0,S.U6)().getIndexFromOrderedLayerInfo,d=(0,l.$T)().setDisplayState,h=(0,o.useState)([]),p=(0,i.A)(h,2),f=p[0],g=p[1];return(0,o.useEffect)((function(){var e=r.sort((function(e,t){return c(e.layerPath)>c(t.layerPath)?1:-1}));g(e)}),[s,r,c]),(0,o.useEffect)((function(){"add"===a||r.length||d("add")}),[a,r,d]),"add"===a?(0,u.jsx)(ve,{}):(0,u.jsx)(D,{layersList:f,depth:0,setIsLayersListPanelVisible:t,isLayoutEnlarged:n})}var xe=n(27892),we=n(67207);function Ae(e){var t=e.containerType,n=(0,a.A)();x.vF.logTraceRender("components/layers/layers-panel");var c,h=(0,l.wU)(),p=(0,l.y5)(),f=(0,l.$T)().setSelectedLayerPath,g=(0,o.useState)(!1),m=(0,i.A)(g,2),y=m[0],v=m[1],b=(0,o.useRef)(null),w=function(){var e;null===(e=b.current)||void 0===e||e.setIsRightPanelVisible(!0)},S=(0,o.useCallback)((function(e){e&&f("")}),[f]),C=(0,o.useCallback)((function(e){v(e)}),[v]);return(0,u.jsx)(xe.z,{ref:b,leftTop:(0,u.jsx)(d,{}),leftMain:(0,u.jsx)(s.Box,{children:(0,u.jsx)(be,{setIsLayersListPanelVisible:w,isLayoutEnlarged:y})}),rightTop:(0,u.jsx)(we.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)(A,{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:S,hideEnlargeBtn:"view"!==p,containerType:t,onIsEnlargeClicked:C})}},14476:(e,t,n)=>{"use strict";n.d(t,{s:()=>b});var r=n(64426),i=n(47361),o=n(94145),a=n(30538),s=n(43331),l=n(82942),c=n(46910),u=n(60854),d=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:{"& button":{padding:"0.25rem","& svg":{width:"1.25rem",height:"1.25rem"}}}}},h=n(91140),p=n(46182),f=n(97282);function g(e){var t,n,r,m;u.vF.logTraceRender("components/legend/legend-layer");var y,v,b,x,w=e.layer,A=(0,s.useTranslation)().t,S=(0,o.A)(),C=d(S),E=(0,a.useState)(!0),_=(0,i.A)(E,2),k=_[0],T=_[1],O=(0,h.Zt)(),P=(0,c.U6)(),I=P.getVisibilityFromOrderedLayerInfo,M=P.setOrToggleLayerVisibility,L=(0,h.$T)(),R=L.setHighlightLayer,j=L.zoomToLayerExtent,F=function(){var e;return null===(e=w.children)||void 0===e?void 0:e.filter((function(e){var t;return["processed","loaded"].includes(null!==(t=e.layerStatus)&&void 0!==t?t:"")}))},D=!I(w.layerPath),N=null!==(t=null===(n=w.controls)||void 0===n?void 0:n.visibility)&&void 0!==t&&t;return(0,f.jsxs)(l.Box,{sx:C.legendLayerListItem,children:[(0,f.jsxs)(l.ListItem,{divider:!0,onClick:function(){T(!k)},children:[(0,f.jsx)(p.B,{layer:w}),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(l.Tooltip,{title:w.layerName,placement:"top",children:(0,f.jsx)(l.ListItemText,{sx:{"&:hover":{cursor:"pointer"}},primary:w.layerName,className:"layerTitle",disableTypography:!0,secondary:function(){if(F().length)return(0,f.jsx)(l.Typography,{component:"p",children:A("legend.subLayersCount").replace("{count}",F().length.toString())});if(w.items.length){var e="";return w.items.length>1&&(e=A("legend.itemsCount").replace("{count}",w.items.length.toString()).replace("{totalCount}",w.items.length.toString())),(0,f.jsxs)(l.Stack,{direction:"row",alignItems:"center",sx:C.layerStackIcons,children:[(0,f.jsx)(l.Typography,{component:"span",fontSize:14,children:e}),(0,f.jsx)(l.IconButton,{edge:"end",tooltip:"layers.toggleVisibility",className:"buttonOutline",onClick:function(e){return function(e){e.stopPropagation(),M(w.layerPath)}(e)},disabled:!N,children:D?(0,f.jsx)(l.VisibilityOffOutlinedIcon,{}):(0,f.jsx)(l.VisibilityOutlinedIcon,{})}),(0,f.jsx)(l.IconButton,{tooltip:"legend.highlightLayer",sx:{marginTop:"-0.3125rem"},className:"buttonOutline",onClick:function(e){return function(e){e.stopPropagation(),R(w.layerPath)}(e)},children:O===w.layerPath?(0,f.jsx)(l.HighlightIcon,{}):(0,f.jsx)(l.HighlightOutlinedIcon,{})}),(0,f.jsx)(l.IconButton,{tooltip:"legend.zoomTo",className:"buttonOutline",onClick:function(e){return function(e){e.stopPropagation(),j(w.layerPath).catch((function(e){u.vF.logPromiseFailed("in zoomToLayerExtent in legend-layer.handleZoomTo",e)}))}(e)},children:(0,f.jsx)(l.ZoomInSearchIcon,{})})]})}return(0,f.jsx)(l.Box,{})}()})}),!!((null===(r=w.children)||void 0===r?void 0:r.length)>1||(null===(m=w.items)||void 0===m?void 0:m.length)>1)&&(0,f.jsx)(l.IconButton,{sx:{marginBottom:"20px"},className:"buttonOutline",edge:"end",size:"small",tooltip:"layers.toggleCollapse",children:k?(0,f.jsx)(l.KeyboardArrowUpIcon,{}):(0,f.jsx)(l.KeyboardArrowDownIcon,{})})]})]},w.layerName),"ogcWms"===w.type&&w.icons.length&&w.icons[0].iconImage&&"no data"!==w.icons[0].iconImage?(0,f.jsx)(l.Collapse,{in:k,sx:C.collapsibleContainer,timeout:"auto",children:(0,f.jsx)(l.Box,{component:"img",alt:"icon",src:w.icons[0].iconImage,sx:{maxWidth:"100%"}})}):(null===(y=w.children)||void 0===y?void 0:y.length)>1||(null===(v=w.items)||void 0===v?void 0:v.length)>1?(0,f.jsxs)(l.Collapse,{in:k,sx:C.collapsibleContainer,timeout:"auto",children:[null!==(x=w.children)&&void 0!==x&&x.length?(0,f.jsx)(l.List,{sx:{width:"100%",padding:"20px",margin:"20px 0px"},children:w.children.filter((function(e){var t;return!["error","processing"].includes(null!==(t=e.layerStatus)&&void 0!==t?t:"")})).map((function(e){return(0,f.jsx)(g,{layer:e},e.layerPath)}))}):null,null!==(b=w.items)&&void 0!==b&&b.length?(0,f.jsx)(l.List,{sx:C.subList,children:w.items.map((function(e){return(0,f.jsxs)(l.ListItem,{className:e.isVisible?"":"unchecked",children:[(0,f.jsx)(l.ListItemIcon,{children:e.icon?(0,f.jsx)(l.Box,{component:"img",alt:e.name,src:e.icon}):(0,f.jsx)(l.BrowserNotSupportedIcon,{})}),(0,f.jsx)(l.Tooltip,{title:e.name,placement:"top",enterDelay:1e3,children:(0,f.jsx)(l.ListItemText,{primary:e.name})})]},"".concat(e.icon,"/").concat(e.name))}))}):null]}):null]})}var m=n(78383);function y(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 v(e){for(var t=1;t{"use strict";n.d(t,{h:()=>qt});var r=n(47361),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",x="next",w="swipe",A="close",S="onPointerDown",C="onPointerMove",E="onPointerUp",_="onPointerLeave",k="onPointerCancel",T="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 z="yarl__";function V(...e){return[...e].filter(Boolean).join(" ")}function B(e){return`${z}${e}`}function $(e){return`--${z}${e}`}function G(e,t){return`${e}${t?`_${t}`:""}`}function U(e){return t=>G(e,t)}function W(e,t){var n;return null!==(n=null==e?void 0:e[t])&&void 0!==n?n:t}function q(...e){return()=>{e.forEach((e=>{e()}))}}function H(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 Y(){return"undefined"!=typeof window}function K(e){return void 0===e.type||"image"===e.type}function X(e){return"string"==typeof e?Number.parseInt(e,10):e}function Z(e){if("number"==typeof e)return{pixel:e};if("string"==typeof e){const t=X(e);return e.endsWith("%")?{percent:t}:{pixel:t}}return{pixel:0}}function J(e,t){const n=Z(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 Q(e,t){return t>0?(e%t+t)%t:0}function ee(e){return e.length>0}function te(e,t){return e[Q(t,e.length)]}function ne(e,t){return ee(e)?te(e,t):void 0}function re(e){return K(e)?e.src:void 0}function ie(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 oe={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 ae(e,t){return{name:e,component:t}}function se(e,t){return{module:e,children:t}}function le(e,t,n){return e.module.name===t?n(e):e.children?[se(e.module,e.children.flatMap((e=>{var r;return null!==(r=le(e,t,n))&&void 0!==r?r:[]})))]:[e]}function ce(e,t,n){return e.flatMap((e=>{var r;return null!==(r=le(e,t,n))&&void 0!==r?r:[]}))}const ue=i.createContext(null),de=H("useEvents","EventsContext",ue);function he({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(ue.Provider,{value:n},e)}const pe=i.createContext(null),fe=H("useLightboxProps","LightboxPropsContext",pe);function ge({children:e,...t}){return i.createElement(pe.Provider,{value:t},e)}const me=i.createContext(null),ye=H("useLightboxState","LightboxStateContext",me),ve=i.createContext(null),be=H("useLightboxDispatch","LightboxDispatchContext",ve);function xe(e,t){switch(t.type){case"swipe":{const{slides:n}=e,r=(null==t?void 0:t.increment)||0,i=e.globalIndex+r,o=Q(i,n.length);return{slides:n,currentIndex:o,globalIndex:i,currentSlide:ne(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:ne(t.slides,t.index)}:e;default:throw new Error(D)}}function we({slides:e,index:t,children:n}){const[r,o]=i.useReducer(xe,{slides:e,currentIndex:t,globalIndex:t,currentSlide:ne(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(ve.Provider,{value:o},i.createElement(me.Provider,{value:a},n))}const Ae=i.createContext(null),Se=H("useTimeouts","TimeoutsContext",Ae);function Ce({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(Ae.Provider,{value:n},e)}const Ee=i.forwardRef((function({label:e,className:t,icon:n,renderIcon:r,onClick:o,style:a,...s},l){const{styles:c,labels:u}=fe();return i.createElement("button",{ref:l,type:"button","aria-label":W(u,e),className:V(B("button"),t),onClick:o,style:{...a,...c.button},...s},r?r():i.createElement(n,{className:B(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 ke(e,t){return _e(e,i.createElement("g",{fill:"currentColor"},i.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),t))}const Te=ke("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"})),Oe=ke("Previous",i.createElement("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})),Pe=ke("Next",i.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),Ie=ke("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)`}))))),Me=ke("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"})),Le=Y()?i.useLayoutEffect:i.useEffect;function Re(){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 je(e,t){const n=i.useRef(),r=i.useRef(),o=Re();return Le((()=>{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(X);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 Fe(){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 De(){const e=i.useRef(),{setTimeout:t,clearTimeout:n}=Se();return i.useCallback(((r,i)=>{n(e.current),e.current=t(r,i>0?i:0)}),[t,n])}function Ne(e){const t=i.useRef(e);return Le((()=>{t.current=e})),i.useCallback(((...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)}),[])}function ze(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function Ve(e,t){return i.useMemo((()=>null==e&&null==t?null:n=>{ze(e,n),ze(t,n)}),[e,t])}function Be(e,t=!1){const n=i.useRef();Le((()=>{t&&n.current&&(n.current=!1,e())}),[t,e]);return{onFocus:i.useCallback((()=>{n.current=!0}),[]),onBlur:i.useCallback((()=>{n.current=!1}),[])}}function $e(){const[e,t]=i.useState(!1);return Le((()=>{t("rtl"===window.getComputedStyle(window.document.documentElement).direction)}),[]),e}function Ge(e,t){const n=i.useRef(0),r=De(),o=Ne(((...t)=>{n.current=Date.now(),e(t)}));return i.useCallback(((...e)=>{r((()=>{o(e)}),t-(Date.now()-n.current))}),[t,o,r])}const Ue=U("slide"),We=U("slide_image");function qe({slide:e,offset:t,render:n,rect:r,imageFit:o,imageProps:a,onClick:s,onLoad:l,style:c}){var u,m,y,v,b,x,w;const[A,S]=i.useState(d),{publish:C}=de(),{setTimeout:E}=Se(),_=i.useRef(null);i.useEffect((()=>{0===t&&C(g(A))}),[t,A,C]);const k=Ne((e=>{("decode"in e?e.decode():Promise.resolve()).catch((()=>{})).then((()=>{e.parentNode&&(S(p),E((()=>{null==l||l(e)}),0))}))})),T=i.useCallback((e=>{_.current=e,(null==e?void 0:e.complete)&&k(e)}),[k]),O=i.useCallback((e=>{k(e.currentTarget)}),[k]),P=i.useCallback((()=>{S(h)}),[]),I=function(e,t){return e.imageFit===F||e.imageFit!==j&&t===F}(e,o),M=(e,t)=>Number.isFinite(e)?e:t,L=M(Math.max(...(null!==(m=null===(u=e.srcSet)||void 0===u?void 0:u.map((e=>e.width)))&&void 0!==m?m:[]).concat(e.width?[e.width]:[]).filter(Boolean)),(null===(y=_.current)||void 0===y?void 0:y.naturalWidth)||0),D=M(Math.max(...(null!==(b=null===(v=e.srcSet)||void 0===v?void 0:v.map((e=>e.height)))&&void 0!==b?b:[]).concat(e.height?[e.height]:[]).filter(Boolean)),(null===(x=_.current)||void 0===x?void 0:x.naturalHeight)||0),N=L&&D?{maxWidth:`min(${L}px, 100%)`,maxHeight:`min(${D}px, 100%)`}:{maxWidth:"100%",maxHeight:"100%"},z=null===(w=e.srcSet)||void 0===w?void 0:w.sort(((e,t)=>e.width-t.width)).map((e=>`${e.src} ${e.width}w`)).join(", "),$=z&&r&&Y()?`${Math.round(Math.min(r&&!I&&e.width&&e.height?r.height/e.height*e.width:Number.MAX_VALUE,r.width))}px`:void 0,{style:G,className:U,...W}=a||{};return i.createElement(i.Fragment,null,i.createElement("img",{ref:T,onLoad:O,onError:P,onClick:s,draggable:!1,className:V(B(We()),I&&B(We("cover")),A!==p&&B(We("loading")),U),style:{...N,...c,...G},...W,alt:e.alt,sizes:$,srcSet:z,src:e.src}),A!==p&&i.createElement("div",{className:B(Ue(f))},A===d&&((null==n?void 0:n.iconLoading)?n.iconLoading():i.createElement(Ie,{className:V(B(R),B(Ue(d)))})),A===h&&((null==n?void 0:n.iconError)?n.iconError():i.createElement(Me,{className:V(B(R),B(Ue(h)))}))))}var He,Ye;!function(e){e[e.NONE=0]="NONE",e[e.SWIPE=1]="SWIPE",e[e.PULL=2]="PULL",e[e.ANIMATION=3]="ANIMATION"}(He||(He={})),function(e){e[e.NONE=0]="NONE",e[e.SWIPE=1]="SWIPE",e[e.PULL=2]="PULL"}(Ye||(Ye={}));const Ke=30;function Xe(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(Ye.NONE),x=i.useCallback((e=>{y.current===e.pointerId&&(y.current=void 0,b.current=Ye.NONE);const t=m.current;t.splice(0,t.length,...t.filter((t=>t.pointerId!==e.pointerId)))}),[]),w=i.useCallback((e=>{x(e),e.persist(),m.current.push(e)}),[x]),A=Ne((e=>{w(e)})),T=(e,t)=>u&&e>t||c&&e<-t,O=Ne((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===Ye.SWIPE?Math.abs(t)>.3*n||Math.abs(t)>5&&eo?()=>{}:q(e(S,t),e(C,n),e(E,r),e(_,r),e(k,r))),[e,t,n,r,o])}(e,A,Ne((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):x(n));const i=e.clientX-n.clientX,s=e.clientY-n.clientY;if(void 0===y.current){const n=t=>{w(e),y.current=e.pointerId,v.current=Date.now(),b.current=t};Math.abs(i)>Math.abs(s)&&Math.abs(i)>Ke&&t(i)?(n(Ye.SWIPE),o()):Math.abs(s)>Math.abs(i)&&T(s,Ke)&&(n(Ye.PULL),d())}else r&&(b.current===Ye.SWIPE?(g.current=i,a(i)):b.current===Ye.PULL&&(g.current=s,h(s)))}})),O)}const Ze=U("container"),Je=i.createContext(null),Qe=H("useController","ControllerContext",Je);const et=ae(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=ye(),I=be(),[M,L]=i.useState(He.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(_,e),onPointerCancel:e=>t(k,e),onKeyDown:e=>t(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:z,publish:G}=de(),U=De(),W=De(),H=De(),{containerRef:Y,setContainerRef:K,containerRect:X}=Fe(),Q=Ve(function({preventDefaultWheelX:e,preventDefaultWheelY:t}){const n=i.useRef(null),r=Ne((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=Ve(ee,void 0),ne=$e(),re=e=>(ne?-1:1)*("number"==typeof e?e:1),ie=Ne((()=>{var e;return null===(e=Y.current)||void 0===e?void 0:e.focus()})),oe=Ne((()=>t)),ae=Ne((()=>v)),se=i.useCallback((e=>G(b,e)),[G]),le=i.useCallback((e=>G(x,e)),[G]),ce=i.useCallback((()=>G(A)),[G]),ue=e=>!(r.finite&&(re(e)>0&&0===v.currentIndex||re(e)<0&&v.currentIndex===v.slides.length-1)),he=e=>{var t;R.current=e,null===(t=Y.current)||void 0===t||t.style.setProperty($("swipe_offset"),`${Math.round(e)}px`)},pe=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:fe}=je(ee,((e,t,n)=>{if(ee.current&&X)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}})),ge=(e,t)=>{if(d||h){pe(e);let n=0;ee.current&&(n=o.fade*(t?2:1),fe({rect:ee.current.getBoundingClientRect(),opacity:F.current,duration:n})),H((()=>{pe(0),L(He.NONE)}),n),L(He.ANIMATION),t||ce()}},{prepareAnimation:me,isAnimationPlaying:ve}=je(ee,((e,t,n)=>{var i;if(ee.current&&X&&(null===(i=v.animation)||void 0===i?void 0:i.duration)){const i=Z(r.spacing),o=(i.percent?i.percent*X.width/100:i.pixel)||0;return{keyframes:[{transform:`translate(${re(v.globalIndex-e.index)*(X.width+o)+e.rect.x-t.x+n.x}px, 0)`},{transform:"translate(0, 0)"}],duration:v.animation.duration,easing:v.animation.easing}}})),xe=Ne((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||ve()?o.easing.swipe:o.easing.navigation;let{direction:s}=e;const l=null!==(n=e.count)&&void 0!==n?n:1;let c=He.ANIMATION,u=i*l;if(!s){const t=null==X?void 0:X.width,n=e.duration||0,o=t?i/t*Math.abs(r):i;0!==l?(n0?b:x):u=i/2}let d=0;s===b?ue(re(1))?d=-l:(c=He.NONE,u=i):s===x&&(ue(re(-1))?d=l:(c=He.NONE,u=i)),u=Math.round(u),W((()=>{he(0),L(He.NONE)}),u),ee.current&&me({rect:ee.current.getBoundingClientRect(),index:v.globalIndex}),L(c),G(w,{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 we=[N,ue,(null==X?void 0:X.width)||0,o.swipe,()=>L(He.SWIPE),e=>he(e),(e,t)=>xe({offset:e,duration:t,count:1}),e=>xe({offset:e,count:0})],Ae=[()=>{h&&L(He.PULL)},e=>pe(e),e=>ge(e),e=>ge(e,!0)];Xe(...we,d,h,...Ae),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}=Se(),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]),x=Ne((()=>{e!==He.SWIPE&&(u.current=0,g.current=0,v(),b())}));i.useEffect(x,[e,x]);const w=Ne((e=>{p.current=void 0,u.current===e&&c(u.current)})),A=Ne((t=>{if(!(t.ctrlKey||Math.abs(t.deltaY)>Math.abs(t.deltaX)))if(e===He.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===He.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((()=>w(e)),2*o)}else f.current=t.deltaX}));i.useEffect((()=>t(P,A)),[t,A])}(M,...we);const Ce=Ne((()=>{a.focus&&document.querySelector(`.${B(l)} .${B(Ze())}`)&&ie()}));i.useEffect(Ce,[Ce]);const Ee=Ne((()=>{var e;null===(e=s.view)||void 0===e||e.call(s,{index:v.currentIndex})}));i.useEffect(Ee,[v.globalIndex,Ee]),i.useEffect((()=>q(z(b,(e=>xe({direction:b,...e}))),z(x,(e=>xe({direction:x,...e}))),z(w,(e=>I(e))))),[z,xe,I]);const _e=i.useMemo((()=>({prev:se,next:le,close:ce,focus:ie,slideRect:X?J(X,r.padding):{width:0,height:0},containerRect:X||{width:0,height:0},subscribeSensors:N,containerRef:Y,setCarouselRef:te,toolbarWidth:g,setToolbarWidth:y})),[se,le,ce,ie,N,X,Y,te,g,y,r.padding]);return i.useImperativeHandle(a.ref,(()=>({prev:se,next:le,close:ce,focus:ie,getLightboxProps:oe,getLightboxState:ae})),[se,le,ce,ie,oe,ae]),i.createElement("div",{ref:Q,className:V(B(Ze()),B(m)),style:{...M===He.SWIPE?{[$("swipe_offset")]:`${Math.round(R.current)}px`}:null,...M===He.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},X&&i.createElement(Je.Provider,{value:_e},e,null===(n=u.controls)||void 0===n?void 0:n.call(u)))}));function tt(e){return G(a,e)}function nt(e){return G("slide",e)}function rt({slide:e,offset:t}){const n=i.useRef(null),{currentIndex:r}=ye(),{slideRect:o,close:a}=Qe(),{render:s,carousel:{imageFit:l,imageProps:c},on:{click:u},controller:{closeOnBackdropClick:d},styles:{slide:h}}=fe();return i.createElement("div",{ref:n,className:V(B(nt()),0===t&&B(nt("current")),B(m)),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(B(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&&K(e)&&(p=i.createElement(qe,{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 it(){const e=fe().styles.slide;return i.createElement("div",{className:B("slide"),style:e})}const ot=ae(a,(function({carousel:e}){const{slides:t,currentIndex:n,globalIndex:r}=ye(),{setCarouselRef:o}=Qe(),a=Z(e.spacing),s=Z(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(ee(t))for(let i=n-l;i<=n+l;i+=1){const o=te(t,i),a=r-n+i,s=e.finite&&(i<0||i>t.length-1);c.push(s?{key:a}:{key:[`${a}`,re(o)].filter(Boolean).join("|"),offset:i-n,slide:o})}return i.createElement("div",{ref:o,className:V(B(tt()),c.length>0&&B(tt("with_slides"))),style:{[`${$(tt("slides_count"))}`]:c.length,[`${$(tt("spacing_px"))}`]:a.pixel||0,[`${$(tt("spacing_percent"))}`]:a.percent||0,[`${$(tt("padding_px"))}`]:s.pixel||0,[`${$(tt("padding_percent"))}`]:s.percent||0}},c.map((({key:e,slide:t,offset:n})=>t?i.createElement(rt,{key:e,slide:t,offset:n}):i.createElement(it,{key:e}))))}));function at(){const{carousel:e}=fe(),{slides:t,currentIndex:n}=ye();return{prevDisabled:0===t.length||e.finite&&0===n,nextDisabled:0===t.length||e.finite&&n===t.length-1}}function st({label:e,icon:t,renderIcon:n,action:r,onClick:o,disabled:a,style:s}){return i.createElement(Ee,{label:e,icon:t,renderIcon:n,className:B(`navigation_${r}`),disabled:a,onClick:o,style:s,...Be(Qe().focus,a)})}const lt=ae("navigation",(function({render:{buttonPrev:e,buttonNext:t,iconPrev:n,iconNext:r},styles:o}){const{prev:a,next:s,subscribeSensors:l}=Qe(),{prevDisabled:c,nextDisabled:u}=at();return function(e){var t;const n=$e(),{publish:r}=de(),{animation:o}=fe(),{prevDisabled:a,nextDisabled:s}=at(),l=(null!==(t=o.navigation)&&void 0!==t?t:o.swipe)/2,c=Ge((()=>r(b)),l),u=Ge((()=>r(x)),l),d=Ne((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(T,d)),[e,d])}(l),i.createElement(i.Fragment,null,e?e():i.createElement(st,{label:"Previous",action:b,icon:Oe,renderIcon:n,style:o.navigationPrev,disabled:c,onClick:a}),t?t():i.createElement(st,{label:"Next",action:x,icon:Pe,renderIcon:r,style:o.navigationNext,disabled:u,onClick:s}))})),ct=B("no_scroll"),ut=B(y);function dt(e){return"style"in e}function ht(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,`${(X(o)||0)+t}px`),()=>{a?e.style.setProperty(i,a):e.style.removeProperty(i)}}const pt=ae("no-scroll",(function({noScroll:{disabled:e},children:t}){const n=$e();return Le((()=>{if(e)return()=>{};const t=[],{body:r,documentElement:i}=document,o=Math.round(window.innerWidth-i.clientWidth);if(o>0){t.push(ht(r,o,n));const e=r.getElementsByTagName("*");for(let r=0;r{r.classList.remove(ct),t.forEach((e=>e()))}}),[n,e]),i.createElement(i.Fragment,null,t)}));function ft(e){return G(l,e)}function gt(e,t,n){const r=e.getAttribute(t);return e.setAttribute(t,n),()=>{r?e.setAttribute(t,r):e.removeAttribute(t)}}const mt=ae(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}=Se(),{subscribe:g}=de(),m=Re()?0:t.fade;i.useEffect((()=>(c(!0),()=>{c(!1),d(!1)})),[]);const v=Ne((()=>{h.current.forEach((e=>e())),h.current=[]})),b=Ne((()=>{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 x=Ne((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)})),w=i.useCallback((e=>{e?x(e):v()}),[x,v]);return l?(0,N.createPortal)(i.createElement("div",{ref:w,className:V(r,B("root"),B(ft()),B(y),u&&B(ft("open"))),role:"presentation","aria-live":"polite",style:{...t.fade!==oe.animation.fade?{[$("fade_animation_duration")]:`${m}ms`}:null,...t.easing.fade!==oe.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 yt=ae("root",(function({children:e}){return i.createElement(i.Fragment,null,e)}));const vt=ae(c,(function({toolbar:{buttons:e},render:{buttonClose:t,iconClose:n},styles:r}){const{close:o,setToolbarWidth:a}=Qe(),{setContainerRef:s,containerRect:l}=Fe();return Le((()=>{a(null==l?void 0:l.width)}),[a,null==l?void 0:l.width]),i.createElement("div",{ref:s,style:r.toolbar,className:B(G(c,u))},null==e?void 0:e.map((e=>e===A?t?t():i.createElement(Ee,{key:A,label:"Close",icon:Te,renderIcon:n,onClick:o}):e)));var u}));function bt(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=>bt(e,t))))}function xt(e,t={}){const{easing:n,...r}=e,{easing:i,...o}=t;return{easing:{...n,...i},...r,...o}}function wt({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:x,index:w,plugins:A,...S}=oe,{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?ce(r,e,(e=>[se(t,[e])])):[se(t,r)]},a=(e,t)=>{r=ce(r,e,(e=>[se(e.module,[se(t,e.children)])]))},l=(e,t,n)=>{r=ce(r,e,(e=>{var r;return[se(e.module,[...n?[se(t)]:[],...null!==(r=e.children)&&void 0!==r?r:[],...n?[]:[se(t)]])]}))},c=(e,t,n)=>{r=ce(r,e,(e=>[...n?[se(t)]:[],e,...n?[]:[se(t)]]))},u=e=>{a(s,e)},d=(e,t)=>{r=ce(r,e,(e=>[se(t,e.children)]))},h=e=>{r=ce(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)}}([se(mt,[se(pt,[se(et,[se(ot),se(vt),se(lt)])])])],c||A),_=E({animation:xt(p,t),carousel:{...f,...e},render:{...g,...n},toolbar:{...m,...r},controller:{...y,...o},noScroll:{...v,...a},on:{...b,...l},...S,...h});return _.open?i.createElement(ge,{..._},i.createElement(we,{slides:u||x,index:X(d||w)},i.createElement(Ce,null,i.createElement(he,null,bt(se(yt,C),_))))):null}const At={download:void 0},St=e=>({...At,...e});function Ct(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 Et(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=()=>{Et(n.response,t)},n.onerror=()=>{console.error("Failed to download file")},n.send()}(e,t):(n.target="_blank",Ct(n)):Ct(n)):(n.href=URL.createObjectURL(e),setTimeout((()=>URL.revokeObjectURL(n.href)),3e4),setTimeout((()=>Ct(n)),0))}const _t=ke("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 kt(){const{render:e,on:t,download:n}=fe(),{download:r}=St(n),{currentSlide:o,currentIndex:a}=ye();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||K(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;Et(s,e)}};return i.createElement(Ee,{label:"Download",icon:_t,renderIcon:e.iconDownload,disabled:!l,onClick:()=>{var e;o&&((r||c)({slide:o,saveAs:Et}),null===(e=t.download)||void 0===e||e.call(t,{index:a}))}})}function Tt({augment:e}){e((({toolbar:e,download:t,...n})=>({toolbar:ie(e,u,i.createElement(kt,null)),download:St(t),...n})))}var Ot=n(27612),Pt=n.n(Ot),It=n(15397),Mt=n.n(It),Lt=n(76743),Rt=n.n(Lt),jt=n(34804),Ft=n.n(jt),Dt=n(74032),Nt=n.n(Dt),zt=n(60605),Vt=n.n(zt),Bt=n(11355),$t={};$t.styleTagTransform=Vt(),$t.setAttributes=Ft(),$t.insert=Rt().bind(null,"head"),$t.domAPI=Mt(),$t.insertStyleElement=Nt();Pt()(Bt.A,$t);Bt.A&&Bt.A.locals&&Bt.A.locals;var Gt=n(82942),Ut=n(60854),Wt=n(97282);function qt(e){Ut.vF.logTraceRender("components/lightbox/lightbox");var t=e.open,n=e.slides,a=e.index,s=e.exited,l=(0,o.useTranslation)().t,c=(0,i.useState)(t),u=(0,r.A)(c,2),d=u[0],h=u[1],p=(0,i.useState)(!0),f=(0,r.A)(p,1)[0],g=(0,i.useState)(!0),m=(0,r.A)(g,1)[0],y=(0,i.useState)(250),v=(0,r.A)(y,1)[0],b=(0,i.useState)(500),x=(0,r.A)(b,1)[0];return(0,i.useEffect)((function(){Ut.vF.logTraceUseEffect("LIGHTBOX - open",t),h(t)}),[t]),(0,Wt.jsx)(wt,{styles:{root:{width:"90%",height:"90%",margin:"auto"},container:{backgroundColor:"rgba(0, 0, 0, .9)"}},open:d,close:function(){return h(!1)},slides:n,index:a,carousel:{finite:!0},controller:{closeOnPullDown:f,closeOnBackdropClick:m},animation:{fade:v,swipe:x},labels:{Next:l("lightbox.next"),Previous:l("lightbox.previous"),Close:l("lightbox.close"),Download:l("lightbox.download")},on:{entered:function(){},exited:s},render:{iconClose:function(){return(0,Wt.jsx)(Gt.Tooltip,{title:l("lightbox.close"),placement:"top",children:(0,Wt.jsx)(Gt.CloseIcon,{})})},iconNext:function(){return(0,Wt.jsx)(Gt.Tooltip,{title:l("lightbox.next"),placement:"top",children:(0,Wt.jsx)(Gt.ArrowRightIcon,{})})},iconPrev:function(){return(0,Wt.jsx)(Gt.Tooltip,{title:l("lightbox.previous"),placement:"top",children:(0,Wt.jsx)(Gt.ArrowLeftIcon,{})})},iconDownload:function(){return(0,Wt.jsx)(Gt.Tooltip,{title:l("lightbox.download"),placement:"top",children:(0,Wt.jsx)(Gt.DownloadIcon,{})})}},plugins:[Tt]})}},55147:(e,t,n)=>{"use strict";n.d(t,{p:()=>d});var r=n(30538),i=n(94145),o=n(82942),a=n(87167),s=n(69495),l=n(60854),c=n(15247),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"}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,{})})})}},98625:(e,t,n)=>{"use strict";n.d(t,{F:()=>f});var r=n(64426),i=n(30538),o=n(43331),a=n(94145),s=n(6467),l=n(82942),c=n(12311),u=n(69495),d=n(28187),h=n(60854),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,x=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||x(0)},title:e("mapctrl.rotation.fixedNorth"),checked:m}):null})}},55589:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(30538),i=n(43331),o=n(94145),a=n(82942),s=n(87167),l=n(28187),c=n(97282);function u(){var e=(0,i.useTranslation)().t,t=(0,o.A)(),n=(0,s.S)(t),u="mapctrl.rotation.resetRotation",d=(0,r.useRef)(null),h=(0,l.uE)(),p=(0,l.U6)().setRotation;return(0,c.jsx)(a.IconButton,{sx:n.rotationButton.rotationButton,tooltipPlacement:"top",tooltip:u,"aria-label":u,title:e("mapctrl.rotation.resetRotation"),onClick:function(){return p(0)},children:(0,c.jsx)(a.ArrowUpIcon,{ref:d,sx:n.rotationButton.rotationIcon,style:{transform:"rotate(".concat(h,"rad)")}})})}},87167:(e,t,n)=>{"use strict";n.d(t,{S:()=>r});var r=function(e){return{mapInfoContainer:{flexGrow:1,zIndex:200,display:"flex",flexDirection:"row",justifyContent:"space-between",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","& 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]}}}}},6017:(e,t,n)=>{"use strict";n.d(t,{p:()=>w});var r=n(64426),i=n(30538),o=n(94145),a=n(82942),s=n(17161),l=n(45094),c=n(5099),u=n(55147),d=n(55589),h=n(98625),p=n(87167),f=n(28187),g=n(69495),m=n(60854),y=n(15247),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 x(e){for(var t=1;t{"use strict";n.d(t,{T:()=>b});var r=n(30538),i=n(6467),o=n(66469),a=n(94145),s=n(94044),l=n(77082),c=n(67121),u=n(57449),d=n(16154),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(28187),f=n(15247),g=n(90763),m=n(60854),y=n(76262),v=n(97282);function b(e){m.vF.logTraceRender("components/map/map");var t=e.viewer,n=(0,a.A)(),b=(0,r.useRef)(),x=(0,i.A)(n.breakpoints.up("md")),w=(0,f.Jh)(),A=(0,p.JQ)(),S=(0,p.Mk)(),C=(0,p.Nt)(),E=(0,f.oy)(),_=(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,w,n,(0,y.NK)({mapId:w,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)}))}))}),[w,null==E?void 0:E.corePackages,t]);return(0,r.useEffect)((function(){m.vF.logTraceUseEffect("map.initMap"),t.createMap(b.current),_()}),[_,t]),(0,v.jsx)(o.A,{id:"mapTargetElement-".concat(w),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,{}),x&&A&&t.map&&(0,v.jsx)(c.G,{olMap:t.map})]})})}},45094:(e,t,n)=>{"use strict";n.d(t,{d:()=>m});var r=n(64426),i=n(47361),o=n(30538),a=n(43331),s=n(94145),l=n(82942),c=n(69495),u=n(28187),d=n(62338),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:()=>d});var r=n(30538),i=n(94145),o=n(82942),a=n(22279),s=n(31726),l=n(15247),c=n(60854),u=n(97282);function d(){c.vF.logTraceRender("components/nav-bar/buttons/fullscreen");var e=(0,l.Jh)(),t=(0,i.A)(),n=(0,a.S)(t),d=(0,s.kv)(),h=(0,s.dD)().setFullScreenActive;return(0,r.useEffect)((function(){function e(){document.fullscreenElement||h(!1)}return c.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,u.jsx)(o.IconButton,{id:"fullscreen",tooltip:"mapnav.fullscreen",tooltipPlacement:"left",onClick:function(){var t;(t=document.getElementById("shell-".concat(e)))&&h(!d,t)},sx:n.navButton,children:d?(0,u.jsx)(o.FullscreenExitIcon,{}):(0,u.jsx)(o.FullscreenIcon,{})})}},33859:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(94145),i=n(82942),o=n(22279),a=n(28187),s=n(60854),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,{})})}},21343:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(94145),i=n(82942),o=n(22279),a=n(28187),s=n(31726),l=n(60854),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,{})})}},35971:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(94145),i=n(82942),o=n(22279),a=n(28187),s=n(60854),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,{})})}},89780:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(94145),i=n(82942),o=n(22279),a=n(28187),s=n(60854),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,{})})}},21350:(e,t,n)=>{"use strict";n.d(t,{v:()=>y});var r=n(70640),i=n(32814),o=n(64426),a=n(16221),s=n(79913);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,{S:()=>r});var r=function(e){return{navBarRef:{position:"absolute",right:e.spacing(5),display:"flex",flexDirection:"row",marginRight:0,zIndex:150,pointerEvents:"all",justifyContent:"center",backgroundColor:"transparent",transition:"bottom 300ms ease-in-out",bottom:"6rem"},navBtnGroupContainer:{display:"flex",position:"relative",flexDirection:"column",pointerEvents:"auto",justifyContent:"end",overflowY:"hidden",padding:5},navBtnGroup:{borderRadius:e.spacing(5),backgroundColor:e.palette.geoViewColor.bgColor.light[500],"&:not(:last-child)":{marginBottom:e.spacing(11)},"& .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]}}}}},69561:(e,t,n)=>{"use strict";n.d(t,{j:()=>m});var r=n(30538),i=n(43331),o=n(94145),a=n(35971),s=n(89780),l=n(93201),c=n(33859),u=n(21343),d=n(82942),h=n(22279),p=n(69495),f=n(60854),g=n(97282);function m(e){f.vF.logTraceRender("components/nav-bar/nav-bar");var t=e.api,n=(0,i.useTranslation)().t,m=(0,o.A)(),y=(0,h.S)(m),v=(0,r.useRef)(null),b=(0,p.m)();return(0,r.useEffect)((function(){f.vF.logTraceUseEffect("NAV-BAR - mount");var e=function(){return f.vF.logInfo("NavbarCreated")};return t.onNavbarCreated(e),function(){t.offNavbarCreated(e)}}),[t]),(0,g.jsx)(d.Box,{ref:v,sx:[y.navBarRef],children:(0,g.jsxs)(d.Box,{sx:y.navBtnGroupContainer,children:[(0,g.jsxs)(d.ButtonGroup,{orientation:"vertical","aria-label":n("mapnav.arianavbar"),variant:"contained",sx:y.navBtnGroup,children:[(0,g.jsx)(a.A,{}),(0,g.jsx)(s.A,{})]}),(0,g.jsxs)(d.ButtonGroup,{orientation:"vertical","aria-label":n("mapnav.arianavbar"),variant:"contained",sx:y.navBtnGroup,children:[b.includes("fullscreen")&&(0,g.jsx)(l.A,{}),b.includes("location")&&(0,g.jsx)(u.A,{}),b.includes("home")&&(0,g.jsx)(c.A,{})]})]})})}},46686:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(47361),i=n(30538),o=n(12311),a=n(46457),s=n(28187),l=n(60854);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)(),x=(0,s.a7)(),w=(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=w[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(x)[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}}},52315:(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"})]})}},94044:(e,t,n)=>{"use strict";n.d(t,{l:()=>f,g:()=>g});var r=n(30538),i=n(94145),o=n(82942),a=n(12311),s=n(52315),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(28187),u=n(46686),d=n(15247),h=n(60854),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,{})})}},12805:(e,t,n)=>{"use strict";n.d(t,{A:()=>C});var r=n(64426),i=n(43994),o=n(47361),a=n(67970),s=n.n(a),l=n(59615),c=n.n(l),u=n(30538),d=n(43331),h=n(94145),p=n(26565),f=n(78283),g=n(82942),m=function(e){return{notificationPanel:{display:"flex",flexDirection:"column",width:"350px",maxHeight:"500px",overflowY:"hidden",gap:"8px",marginLeft:"15px",backgroundColor:e.palette.geoViewColor.bgColor.light[200],borderRadius:"5px",boxShadow:2,padding:"10px"},notificationsTitle:{fontSize:e.palette.geoViewFontSize.default,fontWeight:"700",padding:"10px",color:e.palette.geoViewColor.textColor.main,borderBottom:"1px solid ".concat(e.palette.geoViewColor.bgColor.dark[300],"}"),marginBottom:"10px"},notificationsList:{overflowY:"auto",padding:"0px 0px 10px 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"}}},y=n(31726),v=n(15247),b=n(60854),x=n(28187),w=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;tM&&O(!0),L(e)}),[N,M]),(0,u.useEffect)((function(){if(b.vF.logTraceUseEffect("Notifications - hasNewNotification change",T),T){var e=setTimeout((function(){return O(!1)}),1e3);return function(){return clearTimeout(e)}}}),[T]);var B,$=function(){F&&D(!1)},G=(0,f.zh)({from:{x:0,scale:1},to:(B=(0,i.A)(c().mark((function e(t){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t({x:2});case 2:return e.next=4,t({x:-2});case 4:return e.next=6,t({x:0});case 6:case"end":return e.stop()}}),e)}))),function(e){return B.apply(this,arguments)}),config:{duration:50},loop:!0}),U=(0,f.CS)(g.Box);function W(e){switch(e.notificationType){case"success":return(0,w.jsx)(g.CheckCircleIcon,{color:"success"});case"info":return(0,w.jsx)(g.InfoIcon,{color:"info"});case"warning":return(0,w.jsx)(g.WarningIcon,{color:"warning"});default:return(0,w.jsx)(g.ErrorIcon,{color:"error"})}}function q(e,r){return(0,w.jsxs)(g.Box,{sx:n.notificationItem,children:[(0,w.jsx)(g.Box,{children:W(e)}),(0,w.jsx)(g.Box,{sx:{flexGrow:1,fontSize:t.palette.geoViewFontSize.sm,color:t.palette.geoViewColor.textColor.light[250]},children:(0,w.jsx)(g.Box,{component:"span",children:e.message})}),e.count>1?(0,w.jsx)(g.Box,{children:(0,w.jsx)(g.Box,{sx:n.notificationsCount,children:e.count})}):null,(0,w.jsx)(g.IconButton,{onClick:function(){return function(e){V(e.key)}(e)},children:(0,w.jsx)(g.CloseIcon,{})})]},r)}return(0,w.jsx)(p.x,{mouseEvent:"onMouseDown",touchEvent:"onTouchStart",onClickAway:$,children:(0,w.jsxs)(g.Box,{children:[(0,w.jsx)(g.Badge,{badgeContent:M>99?"99+":M,color:"error",children:(0,w.jsxs)(g.IconButton,{id:"notification",tooltip:"appbar.notifications",tooltipPlacement:"bottom-end",onClick:function(e){E(e.currentTarget),D(!F)},className:"".concat("dynamic"===z?"buttonFilled":"style4"," ").concat(F?"active":""),color:"primary",children:[!T&&(0,w.jsx)(g.NotificationsIcon,{}),T&&(0,w.jsx)(U,{style:S({},G),children:(0,w.jsx)(g.NotificationsActiveIcon,{})})]})}),(0,w.jsx)(g.Popper,{open:F,anchorEl:C,placement:"right-end",onClose:$,container:a,children:(0,w.jsxs)(g.Paper,{sx:n.notificationPanel,children:[(0,w.jsx)(g.Typography,{component:"h3",sx:n.notificationsTitle,children:e("appbar.notifications")}),(0,w.jsx)(g.Box,{sx:n.notificationsList,children:N.length>0?N.map((function(e,t){return q(e,t)})):(0,w.jsx)(g.Typography,{component:"div",sx:{padding:"10px 15px"},children:e("appbar.no_notifications_available")})})]})})]})})}},62523:(e,t,n)=>{"use strict";n.d(t,{I:()=>d});var r=n(47361),i=n(30538),o=n(43331),a=n(82942),s=n(60854),l=n(66469),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,{})})})})}},67121:(e,t,n)=>{"use strict";n.d(t,{G:()=>D});var r=n(30538),i=n(17004),o=n(65868),a=n(43331),s=n(333),l=n(12791),c=n(64874),u=n(55731),d=n(41320),h=n(66143),p=n(67760),f=n(56035),g=n(1841),m=n(8584),y=n(36203),v=n(1970),b=n(99423),x=n(41218),w=n(24363),A=n(17567),S=n(31752);const C=.75,E=.1;class _ 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.getEventCoordinateInternal(t);g.setPosition(r)},x=function(e){const t=s.getEventCoordinateInternal(e);f.getMap().getView().setCenterInternal(t),window.removeEventListener("mousemove",v),window.removeEventListener("mouseup",x)};y.addEventListener("mousedown",(function(){window.addEventListener("mousemove",v),window.addEventListener("mouseup",x)}))}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,w.KT)(e,g.A.PROPERTYCHANGE,this.handleMapPropertyChange_,this));const t=e.getView();t&&(this.bindView_(t),t.isDef()&&(this.ovmap_.updateSize(),this.resetExtent_())),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_()}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,x.equals)(r,this.viewExtent_))return;this.viewExtent_=r;const i=t.getSize(),o=t.getView().calculateExtentInternal(i),a=t.getPixelFromCoordinateInternal((0,x.getTopLeft)(r)),s=t.getPixelFromCoordinateInternal((0,x.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,x.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,x.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.getCenterInternal(),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,w.Jz)(this.ovmap_,p.A.POSTRENDER,(function(e){delete this.ovmapPostrenderKey_,this.updateBox_()}),this))}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 k=_;var T=n(3389),O=n(62523),P=n(15247),I=n(31726),M=n(28187),L=n(98030),R=n(60854),j=n(66469),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 k}))[0];e&&(u{"use strict";n.d(t,{F:()=>y});var r=n(64426),i=n(47361),o=n(30538),a=n(43331),s=n(94145),l=n(82942),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":{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(28187),d=n(69495),h=n(15247),p=n(60854),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%",height:"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"},"& *::-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"}}}}},51098:(e,t,n)=>{"use strict";n.d(t,{S:()=>m});var r=n(47361),i=n(30538),o=n(43331),a=n(94145),s=n(6467),l=n(82942),c=n(43975),u=n(80430),d=n(46457),h=n(31726),p=n(69495),f=n(60854),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")),x=(0,i.useState)(!1),w=(0,r.A)(x,2),A=w[0],S=w[1],C=(0,i.useRef)(),E=(0,h.dD)().setCrosshairActive,_=(0,p.A6)().setActiveTrapGeoView,k=(0,h.sd)(),T=k.querySelector('[id^="mapTargetElement-"]'),O=(0,i.useRef)(T);O.current=T;var P=(0,i.useRef)();function I(e){var t;t=e,O.current===document.activeElement&&"Space"===t.code&&t.preventDefault()}function M(){_(!1),k.classList.remove("map-focus-trap"),k.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)||(T.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),k.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=k.querySelector(".geoview-shell"),_(!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")})]})})}},43975:(e,t,n)=>{"use strict";n.d(t,{S:()=>d});var r=n(64426),i=n(31625),o=n(31082);o.domToReact,o.htmlToDOM,o.attributesToProps,o.Element;const a=o;var s=n(66469),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(64426),i=n(47361),o=n(30538),a=n(43331),s=n(94145),l=n(23799),c=n(55284),u=n(95811),d=n(69561),h=n(21793),p=n(6017),f=n(82942),g=n(80430),m=n(28187),y=n(31726),v=n(69495),b=n(28184),x=n(91140),w=n(39647),A=n(60854),S=n(74624),C=n(15560),E=n(97282);function _(){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,w.S)(u),h=(0,o.useState)(!0),p=(0,i.A)(h,2),g=p[0],m=p[1],y=(0,v.A6)().closeModal,b=(0,v.NP)().activeElementId,_=(0,x.u1)(),k=(0,S.Xh)(),T=(0,C.bc)(k),O=(0,o.useMemo)((function(){return A.vF.logTraceUseMemo("DATA-TABLE-MODAL - layer",T,_),null==T?void 0:T.find((function(e){return e.layerPath===_}))}),[T,_]),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(){var e,t;A.vF.logTraceUseEffect("DATA-TABLE-MODAL - isLoading",g,_);var n=setTimeout((function(){m(!1)}),(null!==(e=null==O||null===(t=O.features)||void 0===t?void 0:t.length)&&void 0!==e?e:0)>100?1e3:0);return function(){return clearTimeout(n)}}),[g,_]),(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:_)}),(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.Table,{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 k=n(55587),T=n(10247);function O(){var e;A.vF.logTraceRender("components/details/feature-detail-modal");var t=(0,a.useTranslation)().t,n=(0,s.A)(),r=(0,k.S)(n),i=(0,v.A6)().closeModal,l=(0,v.NP)().activeElementId,c=(0,S.j3)(),u=(0,o.useMemo)((function(){var e;return A.vF.logTraceUseMemo("DETAILS PANEL - Feature Detail Modal - featureInfoList"),Object.keys(null!==(e=null==c?void 0:c.fieldInfo)&&void 0!==e?e:{}).map((function(e){return{fieldKey:c.fieldInfo[e].fieldKey,value:c.fieldInfo[e].value,dataType:c.fieldInfo[e].dataType,alias:c.fieldInfo[e].alias?c.fieldInfo[e].alias:e,domain:null}}))}),[c]);return(0,E.jsxs)(f.Dialog,{open:"featureDetailDataTable"===l&&!!c,onClose:i,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==c?void 0:c.nameField)&&void 0!==e?e:"",src:c.featureIcon.toDataURL().toString(),className:"layer-icon"}),(0,E.jsx)(f.Typography,{sx:{display:"inline-block"},component:"div",children:c.nameField})]}),(0,E.jsx)(f.List,{sx:r.featureDetailListContainer,children:(0,E.jsx)(T.P,{featureInfoList:u})})]}),(0,E.jsx)(f.DialogActions,{children:(0,E.jsx)(f.Button,{fullWidth:!0,variant:"contained",className:"buttonOutlineFilled",onClick:i,type:"text",size:"small",autoFocus:!0,children:t("general.close")})})]})}var P=n(15247),I=n(51098);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:()=>w,Jh:()=>x});var r=n(71129);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(58643),l=n(31726),c=n(62e3),u=n(91140),d=n(28187),h=n(74624),p=n(21160),f=n(22374),g=n(47521),m=n(69495),y=n(60854),v=n(48660),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)}})),x=((0,r.vt)()(b),function(){return(0,r.Pj)((0,s.Ni)(),(function(e){return e.mapId}))}),w=function(){return(0,r.Pj)((0,s.Ni)(),(function(e){return e.mapConfig}))}},46910:(e,t,n)=>{"use strict";n.d(t,{Jh:()=>r.Jh,U6:()=>o.U6,Yo:()=>i.Yo,wE:()=>o.wE});var r=n(15247),i=(n(31726),n(74624),n(62e3),n(22374),n(91140)),o=n(28187);n(21160),n(69495),n(58643)},31726:(e,t,n)=>{"use strict";n.d(t,{$g:()=>h,D4:()=>p,DR:()=>x,MF:()=>m,_V:()=>v,dD:()=>C,e_:()=>f,iO:()=>S,kv:()=>y,lk:()=>A,sd:()=>b,t:()=>g,v9:()=>w});var r=n(28249),i=n(64426),o=n(71129),a=n(92288),s=n(58643),l=n(60854),c=n(79913);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,{D5:()=>d,Mo:()=>c,Xh:()=>u,_M:()=>h,eQ:()=>g,j3:()=>f,x9:()=>p});var r=n(64426),i=n(71129),o=n(38890),a=n(58643);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(28249),i=n(64426),o=n(71129),a=n(58643);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(64426),i=n(71129),o=n(58643);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:()=>y,Uk:()=>b,Yo:()=>f,Zt:()=>p,tK:()=>h,u1:()=>g,wU:()=>v,y5:()=>m});var r=n(28249),i=n(64426),o=n(71129),a=n(58643),s=n(46457),l=n(98030),c=n(55950);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:()=>M,C0:()=>y,GT:()=>v,HA:()=>k,JQ:()=>C,KE:()=>_,Mk:()=>w,Nt:()=>x,Rs:()=>m,U6:()=>L,_I:()=>S,a7:()=>f,aM:()=>h,ej:()=>A,gx:()=>O,ht:()=>P,kI:()=>b,kg:()=>E,re:()=>p,uE:()=>T,wE:()=>I,yC:()=>g});var r=n(28249),i=n(64426),o=n(71129),a=n(58643),s=n(12311),l=n(98030),c=n(8259);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,rotation:n.map.viewSettings.rotation||0,zoom:null!==(i=n.map.viewSettings.initialView)&&void 0!==i&&i.zoomAndCenter?n.map.viewSettings.initialView.zoomAndCenter[0]:3.5})})},actions:{createBaseMapFromOptions:function(){return l.d.resetBasemap(t().mapId)},getPixelFromCoordinate:function(e){return l.d.getPixelFromCoordinate(t().mapId,e)},getIndexFromOrderedLayerInfo:function(e){return l.d.getMapIndexFromOrderedLayerInfo(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)},reorderLayer:function(e,n){l.d.reorderLayer(t().mapId,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})})},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})})},setMapMoveEnd:function(n,r,i,o,a){e({mapState:d(d({},t().mapState),{},{centerCoordinates:n,northArrowElement:{degreeRotation:i,isNorthVisible:o},scale:a})}),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))},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.centerCoordinates}))},g=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.clickMarker}))},m=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.clickCoordinates}))},y=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.fixNorth}))},v=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.interaction}))},b=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}))},w=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.northArrow}))},A=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.northArrowElement}))},S=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.orderedLayerInfo}))},C=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.overviewMap}))},E=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.overviewMapHideZoom}))},_=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.pointerPosition}))},k=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.currentProjection}))},T=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.rotation}))},O=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.scale}))},P=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.size}))},I=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.visibleLayers}))},M=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.zoom}))},L=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.actions}))}},47521:(e,t,n)=>{"use strict";n.d(t,{eC:()=>c,lT:()=>u});var r=n(64426),i=n(71129),o=n(58643),a=n(35587);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:()=>d,ky:()=>u,mU:()=>c});var r=n(64426),i=n(71129),o=n(58643),a=n(6106);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:()=>b,NP:()=>c,OZ:()=>p,Oz:()=>l,PK:()=>v,XP:()=>h,bd:()=>d,dY:()=>m,ex:()=>f,g_:()=>u,m:()=>y,r4:()=>g});var r=n(64426),i=n(71129),o=n(58643);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,{dE:()=>I,Ic:()=>M,gU:()=>L,e4:()=>R,Ni:()=>j});var r=n(64426),i=n(30538),o=n(55756),a=n(71129),s=n(17004);var l=n(92288),c=n(77914),u=n(55950),d=n(98030),h=n(6106),p=n(80084),f=n(38890),g=n(35587),m=new l.K,y=new c.h,v=new u.K,b=new d.d,x=new f.F,w=new h.t,A=new p.U,S=new g.Z;var C=n(15247),E=n(68179),_=n(60854),k=n(79913);function T(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,k.whenThisThen)((function(){return M(e)}))},R=function(e){var t,n,r,i;t=M(e),m.destroy(),y.destroy(),v.destroy(),b.destroy(),x.destroy(),null!==(n=t.getState().mapConfig.footerBar)&&void 0!==n&&n.tabs.core.includes("time-slider")&&w.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"]}},82810:(e,t,n)=>{"use strict";var r=n(65868),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","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"},"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"},"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","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"},"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"},"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(60854);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)}))},76262:(e,t,n)=>{"use strict";n.d(t,{KX:()=>i,NK:()=>o});var r=n(31625);n(58643);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}},23222:(e,t,n)=>{"use strict";n.d(t,{z:()=>x});var r=n(43994),i=n(70640),o=n(32814),a=n(59615),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,x=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,_).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,w).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,w).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,_).call(this),n()}}function _(){var e=function(){};d(v,this,new Promise((function(t){e=t}))),d(y,this,e)}},68709:(e,t,n)=>{"use strict";n.d(t,{O:()=>Y});var r=n(31625),i=n(70640),o=n(32814),a=n(58839),s=n.n(a),l=n(79950),c=n.n(l),u=n(30560),d=n(78643),h=n(12764),p=n(98178),f=n(10454),g=n(52375),m=n(78752),y=n(55373),v=n(12358),b=n(38509),x=n(71587),w=n(48660),A=n(76262),S=n(85813),C=n(21838),E=n(60854),_=n(79913);const k=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."},"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":"Which UI controls are available."},"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"},"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"],"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."},"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."},"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","minItems":1,"items":{"type":"string"},"description":"ID(s) of layer(s) to use as initial map focus."}}},"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)"}},"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}},"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."},"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"}},"required":["map"]}}}');var T,O=n(74490),P=n(91777),I=n(45380),M=n(22769),L=n(39225),R=n(97752),j=n(51397),F=n(16535),D=n(91195),N=n(27918),z=n(80995),V=n(5715),B=n(66372),$=n(86784);function G(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function U(e,t,n){return e.set(W(e,t),n),n}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 q=new WeakMap,H=new WeakSet,Y=function(){function e(){var t,n;(0,i.A)(this,e),G(t=this,n=H),n.add(t),function(e,t,n){G(e,t),t.set(e,n)}(this,q,void 0),U(q,this,(0,_.generateId)())}return(0,o.A)(e,[{key:"mapId",get:function(){return t=this,(e=q).get(W(e,t));var e,t},set:function(e){U(q,this,e)}},{key:"validateMapConfigAgainstSchema",value:function(t){var n=new(s())({strict:!1,allErrors:!1});n.compile(k);for(var r=!0,i=0;i{"use strict";n.d(t,{d:()=>m});var r=n(70640),i=n(32814),o=n(71149),a=n(66138),s=n(99979),l=n(38096),c=n(64426),u=n(85182);function d(e,t,n){return t=(0,s.A)(t),(0,o.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})()}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){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 g=new WeakMap,m=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,g,void 0),(0,c.A)(n,"filterEquation",void 0),(0,c.A)(n,"legendFilterIsOff",!1),(0,c.A)(n,"source",void 0),Object.assign(n,e),n}return(0,l.A)(t,e),(0,i.A)(t,[{key:"getMetadata",value:function(){return t=this,(e=g).get(f(e,t));var e,t}},{key:"setMetadata",value:function(e){var t,n,r;n=this,r=e,(t=g).set(f(t,n),r)}},{key:"onSerialize",value:function(){var e=(0,a.A)((0,s.A)(t.prototype),"onSerialize",this).call(this);return e.layerIdExtension=this.layerIdExtension,e.layerName=this.layerName,e.initialSettings=this.initialSettings,e}}])}(u.c)},85182:(e,t,n)=>{"use strict";n.d(t,{c:()=>v});var r,i=n(70640),o=n(32814),a=n(64426),s=n(16221),l=n(48660),c=n(60854);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 WeakMap,y=new WeakSet,v=function(){function e(t){var n,r;(0,i.A)(this,e),d(n=this,r=y),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,[]),u(this,m,[]),Object.assign(this,t),this.geoviewLayerConfig?this._layerPath=b.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=b.call(e,this)}},{key:"layerPath",get:function(){return this._layerPath=b.call(e,this),this._layerPath}},{key:"layerStatus",get:function(){return this._layerStatus},set:function(t){if("loaded"===t&&!(0,l.KD)(this)&&!this.isGreaterThanOrEqualTo("loading")&&!h(f,this))return r=this,i=!0,void(n=f).set(p(n,r),i);var n,r,i;this.isGreaterThanOrEqualTo(t)||(this._layerStatus=t,p(y,this,x).call(this,{layerStatus:t})),"processed"===t&&h(f,this)&&(this.layerStatus="loaded"),"loaded"===this._layerStatus&&this.parentLayerConfig&&e.allLayerStatusAreGreaterThanOrEqualTo("loaded",[this.parentLayerConfig])&&(this.parentLayerConfig.layerStatus="loaded")}},{key:"isGreaterThanOrEqualTo",value:function(e){return A._[this.layerStatus]>=A._[e]}},{key:"serialize",value:function(){return this.onSerialize()}},{key:"onSerialize",value:function(){return{layerIdExtension:this.layerIdExtension,schemaTag:this.schemaTag,entryType:this.entryType,layerStatus:this.layerStatus,isMetadataLayerGroup:this.isMetadataLayerGroup}}},{key:"addDefaultStyle",value:function(e,t){var n=this;n.style||(n.style={}),n.style[e]=t,p(y,this,w).call(this,{geometryType:e,style:t})}},{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:"onLayerStyleChanged",value:function(e){s.A.onEvent(h(m,this),e)}},{key:"offLayerStyleChanged",value:function(e){s.A.offEvent(h(m,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 b(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,b).call(this,e.parentLayerConfig,"".concat(e.parentLayerConfig.layerId,"/").concat(n)):"".concat(e.geoviewLayerConfig.geoviewLayerId,"/").concat(n)}function x(e){s.A.emitEvent(this,h(g,this),e)}function w(e){s.A.emitEvent(this,h(m,this),e)}r=v;var A={_:{newInstance:10,registered:20,processing:30,processed:40,loading:50,loaded:60,error:70}}},66372:(e,t,n)=>{"use strict";n.d(t,{x:()=>h});var r=n(32814),i=n(70640),o=n(71149),a=n(99979),s=n(38096),l=n(64426),c=n(48660);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.GROUP),(0,l.A)(n,"listOfLayerEntryConfig",[]),Object.assign(n,e),n}return(0,s.A)(t,e),(0,r.A)(t)}(n(85182).c)},80995:(e,t,n)=>{"use strict";n.d(t,{q:()=>f});var r=n(70640),i=n(32814),o=n(71149),a=n(99979),s=n(38096),l=n(64426),c=n(85813),u=n(48660);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,r.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),(0,l.A)(n,"style",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(32814),i=n(70640),o=n(71149),a=n(99979),s=n(38096),l=n(64426),c=n(85813),u=n(48660);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),(0,l.A)(n,"style",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(32814),i=n(70640),o=n(71149),a=n(99979),s=n(38096),l=n(64426),c=n(85813),u=n(48660);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(60133).d)},91195:(e,t,n)=>{"use strict";n.d(t,{Q:()=>g});var r=n(32814),i=n(70640),o=n(71149),a=n(99979),s=n(38096),l=n(64426),c=n(85813),u=n(48660),d=n(60133),h=n(79913);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),(0,l.A)(n,"style",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)},22769:(e,t,n)=>{"use strict";n.d(t,{E:()=>d});var r=n(32814),i=n(70640),o=n(71149),a=n(99979),s=n(38096),l=n(64426);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,"style",void 0),(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(30177).q)},16535:(e,t,n)=>{"use strict";n.d(t,{m:()=>u});var r=n(32814),i=n(70640),o=n(71149),a=n(99979),s=n(38096);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(30177).q)},30177:(e,t,n)=>{"use strict";n.d(t,{q:()=>h});var r=n(32814),i=n(70640),o=n(71149),a=n(99979),s=n(38096),l=n(64426),c=n(48660);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(60133).d)},98208:(e,t,n)=>{"use strict";n.d(t,{T:()=>h});var r=n(32814),i=n(70640),o=n(71149),a=n(99979),s=n(38096),l=n(64426),c=n(48660);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),(0,l.A)(n,"style",void 0),Object.assign(n,e),n}return(0,s.A)(t,e),(0,r.A)(t)}(n(60133).d)},45380:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(32814),i=n(70640),o=n(71149),a=n(99979),s=n(38096),l=n(64426),c=n(98208),u=n(48660),d=n(12311);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),"style"in s||(s.style=void 0),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)},97752:(e,t,n)=>{"use strict";n.d(t,{h:()=>h});var r=n(64426),i=n(32814),o=n(70640),a=n(71149),s=n(99979),l=n(38096);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"style"in n||(n.style=void 0),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(32814),i=n(70640),o=n(71149),a=n(99979),s=n(38096),l=n(98208),c=n(48660),u=n(12311);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),"style"in h||(h.style=void 0),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)},51397:(e,t,n)=>{"use strict";n.d(t,{X:()=>p});var r=n(32814),i=n(70640),o=n(71149),a=n(99979),s=n(38096),l=n(98208),c=n(48660),u=n(12311);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),"style"in s||(s.style=void 0),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)},91777:(e,t,n)=>{"use strict";n.d(t,{j:()=>f});var r=n(64426),i=n(32814),o=n(70640),a=n(71149),s=n(99979),l=n(38096),c=n(98208),u=n(12311);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),"style"in i||(i.style=void 0),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(64426),i=n(32814),o=n(70640),a=n(71149),s=n(99979),l=n(38096),c=n(98208),u=n(12311);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),"style"in n||(n.style=void 0),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:()=>u,Ax:()=>p,DF:()=>d,Dy:()=>r,Fz:()=>f,LK:()=>h,MK:()=>s,RI:()=>l,Tg:()=>a,Xl:()=>o,un:()=>i,vB:()=>g,xb:()=>c});var r="https://github.com/Canadian-Geospatial-Platform/geoview",i={url:"https://geo.ca/",text:"Geo.ca"},o=500,a=[90,-95],s=[100,100,100,100],l={NEW_INSTANCE:"newInstance",PROCESSING:"processing",LOADING:"loading",LOADED:"loaded",ERROR:"error"},c=["ArrowUp","ArrowRight","ArrowDown","ArrowLefts"],u=[].concat(c,["Space"]),d={LEGEND:"legend",DETAILS:"details",LAYERS:"layers",DATA_TABLE:"data-table",GUIDE:"guide",TIME_SLIDER:"time-slider",GEO_CHART:"geochart"},h={lessThanOrEqualTo:"<=",lessThan:"<",greaterThan:">",greaterThanOrEqualTo:">=",empty:"is null",notEmpty:"is not null",between:">",betweenInclusive:">=",equals:"=",notEquals:"<>"},p={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'"},f={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'"},g={APP_BAR:"appBar",FOOTER_BAR:"footerBar"}},34028:(e,t,n)=>{"use strict";n.d(t,{P:()=>E});var r=n(28249),i=n(31625),o=n(47361),a=n(70640),s=n(32814),l=n(78185),c=n.n(l),u=n(31770),d=n.n(u),h=n(75274),p=n.n(h),f=n(13246),g=n.n(f);n(20851),n(47658);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"},x={esriTimeUnitsHours:"H",esriTimeUnitsDays:"D",esriTimeUnitsWeeks:"W",esriTimeUnitsMonths:"M",esriTimeUnitsYears:"Y"};c().extend(d()),c().extend(p()),c().extend(g());var w="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(w," (convertToLocal)"));return c()(e).local().format()}},{key:"formatDate",value:function(e,t){if("string"==typeof e&&!S(e))throw new Error("".concat(w," (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(w," (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(w," (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(w," (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!==x[a]&&(t="/P".concat(o).concat(x[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,_).call(this,t)}):n={type:"relative",range:m(e,this,k).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}}])}();function _(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(w," (createAbsoluteInterval)"));if(!S(i))throw new Error("".concat(w," (createAbsoluteInterval)"));if(!C(a))throw A;var s="Z"===r.slice(-1).toUpperCase(),l=this.extractDateFormat(r),u=s?"".concat(c()(r).utc(!1).format(l).slice(0,-6),"Z"):c()(r).utc(!1).format(l),d=s?"".concat(c()(i).utc(!1).format(l).slice(0,-6),"Z"):c()(i).utc(!1).format(l),h=c().duration(a).asMilliseconds(),p=c().duration(h),f=[],g=0;f.push(u);do{var m=c()(f[g]).add(p).utc(!1).format(l);s&&(m="".concat(m.slice(0,-6),"Z")),f.push(m),31536e6===h&&f[g].slice(4,10)!==f[g+1].slice(4,10)&&(m=c()(f[g]).add(c().duration({milliseconds:316224e5})).utc(!1).format(l),s&&(m="".concat(m.slice(0,-6),"Z")),f[g+1]=m),g++}while(c()(f[f.length-1]).isBefore(d));return f.push(d),f}function k(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(w," (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)]}},60854:(e,t,n)=>{"use strict";n.d(t,{vF:()=>D});var r,i=n(70640),o=n(32814),a=n(64426),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,x=6,w=8,A=9,S=10,C=20,E=30,_=40,k=50,T=!!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(T){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.r(t),n.d(t,{addUiComponent:()=>A,createGuideObject:()=>F,createLocalizedString:()=>h,delay:()=>L,escapeRegExp:()=>R,exportPNG:()=>_,findPropertyNameByRegex:()=>k,generateId:()=>m,getLocalizedMessage:()=>f,getLocalizedValue:()=>p,getScriptAndAssetURL:()=>g,getXMLHttpRequest:()=>w,isImage:()=>T,isJsonString:()=>b,parseJSONConfig:()=>E,removeCommentsFromJSON:()=>C,replaceParams:()=>y,sanitizeHtmlContent:()=>S,setAlphaColor:()=>v,stringify:()=>O,whenThisThen:()=>M,whenThisThenThat:()=>I,xmlToJson:()=>x});var r=n(43994),i=n(59615),o=n.n(i),a=n(17004),s=n(65868),l=n(17309),c=n.n(l),u=n(76262),d=n(60854);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 x(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,x,w,A,S,C,E,_,k;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:()=>ue});var r=n(70640),i=n(32814),o=n(71149),a=n(66138),s=n(99979),l=n(38096),c=n(82449),u=n(22288),d=n(41320),h=n(20662),p=n(31997),f=n(49878),g=n(24438),m=n(1786),y=n(98962),v=n(67087),b=n(4180),x=n(1660),w=n(62767),A=n(80366),S=n(17567),C=n(44999),E=n(83605),_=n(92425),k=n(99565),T=n(41218),O=n(24356),P=n(25899),I=n(45800),M=n(34336),L=n(6819);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 z(e,t){const n=e.length;return t<0?e[t+n]:t>=n?e[t-n]:e[t]}function V(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=_.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:_.rT,this.geometryLayout_=e.geometryLayout?e.geometryLayout:"XY";let n=e.geometryFunction;if(!n){const e=this.mode_;if("Circle"===e)n=function(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=w.A:"LineString"===e?t=g.A:"Polygon"===e&&(t=S.Ay),n=function(n,r,i){return 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:k.TS,this.freehandCondition_,e.freehand?this.freehandCondition_=k.Gk:this.freehandCondition_=e.freehandCondition?e.freehandCondition:k.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?k.Gk:e:k.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,T.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(z(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 x.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:()=>$});var r=n(70640),i=n(32814),o=n(71149),a=n(66138),s=n(99979),l=n(38096),c=n(22288),u=n(20662),d=n(98962),h=n(62767),p=n(80366),f=n(44999),g=n(83605),m=n(99565),y=n(41218),v=n(45800),b=n(25899),x=n(17567),w=n(34336);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:_(),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,x.VY)(e)):t.setGeometry(void 0):(t=e?new u.A((0,x.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_=k(o(i)):null!==e?this.pointerHandler_=T(o([e,r[1]]),o([e,r[3]])):null!==t&&(this.pointerHandler_=T(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_=k(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,w.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 _(){const e=(0,b.mY)();return function(t,n){return e.Point}}function k(e){return function(t){return(0,y.boundingExtent)([e,t])}}function T(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(16221),I=n(62338),M=n(38902);function L(e,t,n){return t=(0,s.A)(t),(0,o.A)(e,R()?Reflect.construct(t,n||[],(0,s.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){F(e,t),t.set(e,n)}function F(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(N(e,t))}function N(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,B=new WeakSet,$=function(e){function t(e){var n,i,o;(0,r.A)(this,t),n=L(this,t,[e]),F(i=n,o=B),o.add(i),j(n,z,void 0),j(n,V,[]);var a,s,l,c={condition:m.Kg,boxStyle:(0,I.convertTypeFeatureStyleToOpenLayersStyle)(e.boxStyle),pixelTolerance:e.pixelTolerance||0};return a=z,s=n,l=new O(c),a.set(N(a,s),l),D(z,n).on("extentchanged",N(B,n,G).bind(n)),n}return(0,l.A)(t,e),(0,i.A)(t,[{key:"startInteraction",value:function(){(0,a.A)((0,s.A)(t.prototype),"startInteraction",this).call(this,D(z,this))}},{key:"stopInteraction",value:function(){(0,a.A)((0,s.A)(t.prototype),"stopInteraction",this).call(this,D(z,this))}},{key:"onExtentChanged",value:function(e){P.A.onEvent(D(V,this),e)}},{key:"offExtentChanged",value:function(e){P.A.offEvent(D(V,this),e)}}])}(M.N);function G(e){P.A.emitEvent(this,D(V,this),e)}},38902:(e,t,n)=>{"use strict";n.d(t,{N:()=>a});var r=n(70640),i=n(32814),o=n(64426),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)}}])}()},91424:(e,t,n)=>{"use strict";n.d(t,{B:()=>Q});var r=n(70640),i=n(32814),o=n(71149),a=n(66138),s=n(99979),l=n(38096),c=n(64874),u=n(75320),d=n(22288),h=n(41320),p=n(20662),f=n(98962),g=n(62767),m=n(80366),y=n(6013),v=n(10809),b=n(44999),x=n(83605),w=n(99565),A=n(41218),S=n(45800),C=n(25899),E=n(17217),_=n(17567),k=n(34336),T=n(94994);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:w.fs,this.defaultDeleteCondition_=function(e){return(0,w.Js)(e)&&(0,w.t5)(e)},this.deleteCondition_=e.deleteCondition?e.deleteCondition:this.defaultDeleteCondition_,this.insertVertexCondition_=e.insertVertexCondition?e.insertVertexCondition:w.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 x.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,k.Tf)();if(s){const t=e.map.getView().getProjection();a=a.clone().transform(s,t),a=(0,_.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,k.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,k.SD)((0,A.createOrUpdateFromCoordinate)(r,O),i),n=t.getView().getResolution()*this.pixelTolerance_,o=(0,k.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,T.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,T.v6)(n.geometry)]=!0;for(let t=1,n=a.length;t=0;--a)i=e[a],d=i[0],h=(0,T.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,k.Tf)();t&&(i=i.clone().transform(t,n));const r=(0,S.hG)(i.getCenter(),(0,k.Ad)(e,n)),o=Math.sqrt(r)-i.getRadius();return o*o}}const i=(0,k.Ad)(e,n);return P[0]=(0,k.Ad)(t.segment[0],n),P[1]=(0,k.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,k.Tf)();return i&&(t=t.clone().transform(i,n)),(0,k.te)(t.getClosestPoint((0,k.Ad)(e,n)),n)}const i=(0,k.Ad)(e,n);return P[0]=(0,k.Ad)(t.segment[0],n),P[1]=(0,k.Ad)(t.segment[1],n),(0,k.te)((0,S.sG)(i,P),n)}function N(){const e=(0,C.mY)();return function(t,n){return e.Point}}const z=R;var V=n(16221),B=n(62338),$=n(38902);function G(e,t,n){return t=(0,s.A)(t),(0,o.A)(e,U()?Reflect.construct(t,n||[],(0,s.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){q(e,t),t.set(e,n)}function q(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(Y(e,t))}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 K=new WeakMap,X=new WeakMap,Z=new WeakMap,J=new WeakSet,Q=function(e){function t(e){var n,i,o;(0,r.A)(this,t),n=G(this,t,[e]),q(i=n,o=J),o.add(i),W(n,K,void 0),W(n,X,[]),W(n,Z,[]);var a,s,l,c={style:(0,B.convertTypeFeatureStyleToOpenLayersStyle)(e.style)};if(e.features)c.features=e.features;else if(e.geometryGroupKey){var u,d=null===(u=n.mapViewer.layer.geometry)||void 0===u?void 0:u.createGeometryGroup(e.geometryGroupKey);c.source=null==d?void 0:d.vectorSource}return a=K,s=n,l=new z(c),a.set(Y(a,s),l),H(K,n).on("modifystart",Y(J,n,ee).bind(n)),H(K,n).on("modifyend",Y(J,n,te).bind(n)),n}return(0,l.A)(t,e),(0,i.A)(t,[{key:"startInteraction",value:function(){(0,a.A)((0,s.A)(t.prototype),"startInteraction",this).call(this,H(K,this))}},{key:"stopInteraction",value:function(){(0,a.A)((0,s.A)(t.prototype),"stopInteraction",this).call(this,H(K,this))}},{key:"onModifyStarted",value:function(e){V.A.onEvent(H(X,this),e)}},{key:"offModifyStarted",value:function(e){V.A.offEvent(H(X,this),e)}},{key:"onModifyEnded",value:function(e){V.A.onEvent(H(Z,this),e)}},{key:"offModifyEnded",value:function(e){V.A.offEvent(H(Z,this),e)}}])}($.N);function ee(e){V.A.emitEvent(this,H(X,this),e)}function te(e){V.A.emitEvent(this,H(Z,this),e)}},48818:(e,t,n)=>{"use strict";n.d(t,{P:()=>j});var r=n(70640),i=n(32814),o=n(71149),a=n(66138),s=n(99979),l=n(38096),c=n(75320),u=n(41320),d=n(80366),h=n(6013),p=n(10809),f=n(92425),g=n(22288);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(41218),b=n(45800),x=n(17567),w=n(34336),A=n(94994),S=n(24363);function C(e){return e.feature?e.feature:e.element?e.element:null}const E=[];class _ 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,w.Ad)(t,r),o=(0,w.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,w.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:()=>j});var r=n(70640),i=n(32814),o=n(71149),a=n(66138),s=n(99979),l=n(38096),c=n(64874),u=n(22288),d=n(20662),h=n(49878),p=n(80366),f=n(92425),g=n(99565),m=n(34336);const y="translatestart",v="translating",b="translateend";class x extends u.Ay{constructor(e,t,n,r,i){super(e),this.features=t,this.coordinate=n,this.startCoordinate=r,this.mapBrowserEvent=i}}class w 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 x(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 x(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 x(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=w;var S=n(16221),C=n(38902);function E(e,t,n){return t=(0,s.A)(t),(0,o.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})()}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 O(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 I=new WeakMap,M=new WeakMap,L=new WeakMap,R=new WeakSet,j=function(e){function t(e){var n,i,o;(0,r.A)(this,t),n=E(this,t,[e]),T(i=n,o=R),o.add(i),k(n,I,void 0),k(n,M,[]),k(n,L,[]);var a,s,l,c={};return e.features&&(c.features=e.features),a=I,s=n,l=new A(c),a.set(P(a,s),l),O(I,n).on("translatestart",P(R,n,F).bind(n)),O(I,n).on("translateend",P(R,n,D).bind(n)),n}return(0,l.A)(t,e),(0,i.A)(t,[{key:"startInteraction",value:function(){(0,a.A)((0,s.A)(t.prototype),"startInteraction",this).call(this,O(I,this))}},{key:"stopInteraction",value:function(){(0,a.A)((0,s.A)(t.prototype),"stopInteraction",this).call(this,O(I,this))}},{key:"onTranslateStarted",value:function(e){S.A.onEvent(O(M,this),e)}},{key:"offTranslateStarted",value:function(e){S.A.offEvent(O(M,this),e)}},{key:"onTranslateEnded",value:function(e){S.A.onEvent(O(L,this),e)}},{key:"offTranslateEnded",value:function(e){S.A.offEvent(O(L,this),e)}}])}(C.N);function F(e){S.A.emitEvent(this,O(M,this),e)}function D(e){S.A.emitEvent(this,O(L,this),e)}},39534:(e,t,n)=>{"use strict";n.d(t,{i:()=>T});var r=n(43994),i=n(70640),o=n(32814),a=n(64426),s=n(59615),l=n.n(s),c=n(97493),u=n(9063);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,opaque:void 0===e.opaque||e.opaque,reprojectionErrorThreshold:e.reprojectionErrorThreshold,tileLoadFunction:e.tileLoadFunction,transition:e.transition,url:r,wrapX:e.wrapX,zDirection:e.zDirection})}}const h=d;var p,f=n(70861),g=n(12791),m=n(86784),y=n(76262),v=n(79913),b=n(12311),x=n(98030),w=n(92288),A=n(60854);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;t0||0===i.length&&"nogeom"===m.basemapId)){e.next=34;break}return O={basemapId:o.join(""),layers:i,type:o.join("-"),basemapOptions:m,attribution:"osm"===m.basemapId?["© OpenStreetMap",(0,v.getLocalizedMessage)("mapctrl.attribution.defaultnrcan",w.K.getDisplayLanguage(this.mapId))]:[(0,v.getLocalizedMessage)("mapctrl.attribution.defaultnrcan",w.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 34:return e.abrupt("return",void 0);case 35: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?w.K.getDisplayLanguage(this.mapId):n,c=C({},e);return c.name="en"===l?i.en:i.fr,c.layers=e.layers.map((function(e){return C(C({},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(x.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,x.d.setMapAttribution(this.mapId,e?e.attribution:[""]),null!=e&&e.layers){for(var n=x.d.getMapViewer(this.mapId).map.getAllLayers(),r=0;r=k&&(o.push(n),I[t]=e)})),h=[(null==P||null===(S=P.origin)||void 0===S?void 0:S.x)||0,(null==P||null===(C=P.origin)||void 0===C?void 0:C.y)||0],a=I[_].level,s=I[k].level,d=[T.xmin,T.ymin,T.xmax,T.ymax],g=O.call(p,n.url),e.abrupt("return",{basemapId:t,type:t,url:n.url,jsonUrl:n.jsonUrl,source:new u.A({attributions:(0,v.getLocalizedMessage)("mapctrl.attribution.defaultnrcan",w.K.getDisplayLanguage(this.mapId)),projection:b.M.PROJECTIONS[g],url:n.url,crossOrigin:"Anonymous",tileGrid:new f.A({extent:d,origin:h,resolutions:o})}),opacity:r,origin:h,extent:d,resolutions:o,minScale:a,maxScale:s});case 26:e.next=31;break;case 28:return e.prev=28,e.t0=e.catch(8),e.abrupt("return",null);case 31:return e.abrupt("return",null);case 32:case"end":return e.stop()}}),e,this,[[8,28]])})))).apply(this,arguments)}p=T,(0,a.A)(T,"REQUEST_DELAY_MAX",3e3)},61970:(e,t,n)=>{"use strict";n.d(t,{Kz:()=>g,ns:()=>f});var r=n(32814),i=n(70640),o=n(71149),a=n(99979),s=n(38096),l=n(64426);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(31611).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)},48690:(e,t,n)=>{"use strict";n.d(t,{p:()=>M});var r=n(70640),i=n(32814),o=n(64426),a=n(44999),s=n(83605),l=n(20662),c=n(24438),u=n(17567),d=n(82449),h=n(62767),p=n(13645),f=n(22840),g=n(25899),m=n(39605),y=n(78862),v=n(16221),b=n(79913),x=n(12311),w=n(98030),A=n(60854);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:()=>oe,FB:()=>re,XY:()=>ie,_B:()=>te,qt:()=>G,y6:()=>ee});var r=n(43994),i=n(70640),o=n(32814),a=n(64426),s=n(59615),l=n.n(s),c=n(64874),u=n(44773),d=n(79913),h=n(76262),p=n(34028),f=n(60854),g=n(23222),m=n(66372),y=n(16221),v=n(92288),b=n(55950),x=n(98030),w=n(48660),A=n(61970),S=n(12311),C=n(10011),E=n(85182),_=n(58368);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 O(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 I={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"},M=new WeakMap,L=new WeakMap,R=new WeakMap,j=new WeakMap,F=new WeakMap,D=new WeakMap,N=new WeakMap,z=new WeakMap,V=new WeakMap,B=new WeakMap,$=new WeakSet,G=function(){return(0,o.A)((function e(t,n,r){var o,s,l,c,u,h;(0,i.A)(this,e),T(u=this,h=$),h.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,d.createLocalizedString)("")),(0,a.A)(this,"metadataAccessPath",(0,d.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),k(this,M,{}),k(this,L,{}),k(this,R,{}),(0,a.A)(this,"attributions",[]),(0,a.A)(this,"serverDateFragmentsOrder",void 0),(0,a.A)(this,"externalFragmentsOrder",void 0),k(this,j,[]),k(this,F,[]),k(this,D,[]),k(this,N,[]),k(this,z,[]),k(this,V,[]),k(this,B,[]),this.mapId=r,this.type=t,this.geoviewLayerId=n.geoviewLayerId||(0,d.generateId)(""),this.geoviewLayerName.en=null!=n&&null!==(o=n.geoviewLayerName)&&void 0!==o&&o.en?n.geoviewLayerName.en:I[t],this.geoviewLayerName.fr=null!=n&&null!==(s=n.geoviewLayerName)&&void 0!==s&&s.fr?n.geoviewLayerName.fr:I[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?p.P.getDateFragmentsOrder(n.serviceDateFormat):void 0,this.externalFragmentsOrder=p.P.getDateFragmentsOrder(n.externalDateFormat),P($,this,U).call(this,n,n.listOfLayerEntryConfig)}),[{key:"getMapViewer",value:function(){return x.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 O(M,this)[e]?O(M,this)[e]:null===(t=this.getLayerConfig(e))||void 0===t?void 0:t.layerName}},{key:"setLayerName",value:function(e,t){O(M,this)[e]=t,P($,this,Q).call(this,{layerPath:e,layerName:t})}},{key:"getLayerMetadata",value:function(e){return O(L,this)[e]}},{key:"setLayerMetadata",value:function(e,t){O(L,this)[e]=t}},{key:"getTemporalDimension",value:function(e){return O(R,this)[e]}},{key:"setTemporalDimension",value:function(e,t){O(R,this)[e]=t}},{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,w.KD)(n)?t+e.countErrorStatus(n.listOfLayerEntryConfig):"error"===n.layerStatus?t+1:t}),0)}},{key:"createGeoViewLayers",value:(ne=(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 f.vF.logTraceCore("ABSTRACT-GEOVIEW-LAYERS - createGeoViewLayers",this.listOfLayerEntryConfig),this.listOfLayerEntryConfig.length>0&&(t="".concat(this.mapId," | ").concat(this.listOfLayerEntryConfig[0].layerPath)),t&&f.vF.logMarkerStart(t),e.next=6,this.getAdditionalServiceDefinition();case 6:return t&&f.vF.logMarkerCheck(t,"to get additional service definition"),e.next=9,this.processListOfLayerEntryConfig(this.listOfLayerEntryConfig);case 9:this.olRootLayer=e.sent,t&&f.vF.logMarkerCheck(t,"to process list of layer entry config"),e.next=14;break;case 13:throw new A.Kz(this,this.mapId);case 14:case"end":return e.stop()}}),e,this)}))),function(){return ne.apply(this,arguments)})},{key:"getAdditionalServiceDefinition",value:(te=(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),f.vF.logError(e.t0);case 11:case"end":return e.stop()}}),e,this,[[0,8]])}))),function(){return te.apply(this,arguments)})},{key:"validateAndExtractLayerMetadata",value:(ee=(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),f.vF.logError(e.t0);case 9:case"end":return e.stop()}}),e,this,[[0,6]])}))),function(){return ee.apply(this,arguments)})},{key:"fetchServiceMetadata",value:(q=(0,r.A)(l().mark((function e(){var t,n,r;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t=(0,d.getLocalizedValue)(this.metadataAccessPath,v.K.getDisplayLanguage(this.mapId)))){e.next=13;break}return e.prev=2,e.next=5,(0,d.getXMLHttpRequest)("".concat(t,"?f=json"));case 5:"{}"===(n=e.sent)?this.metadata=null:(this.metadata=(0,h.NK)(JSON.parse(n)),(r=this.metadata.copyrightText)&&!this.attributions.includes(r)&&this.attributions.push(r)),e.next=13;break;case 9:e.prev=9,e.t0=e.catch(2),f.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 q.apply(this,arguments)})},{key:"processListOfLayerEntryMetadata",value:(G=(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 f.vF.logError("Layer at path ".concat(o.layerPath," is not queryable")),e.abrupt("return",null);case 6:f.vF.logTraceCore("ABSTRACT-GEOVIEW-LAYERS - getFeatureInfo",t,n),a="".concat(t," | ").concat(n),f.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([]),f.vF.logError("Queries using ".concat(t," are invalid."));case 26:return e.next=28,s;case 28:return c=e.sent,f.vF.logMarkerCheck(a,"to getFeatureInfo",c),e.abrupt("return",c);case 33:return e.prev=33,e.t1=e.catch(1),f.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 f.vF.logError("getAllFeatureInfo is not implemented! for ".concat(e)),Promise.resolve(null)}},{key:"getFeatureInfoAtPixel",value:function(e,t){return f.vF.logError("getFeatureInfoAtPixel is not implemented! for ".concat(t," - ").concat(e)),Promise.resolve(null)}},{key:"getFeatureInfoAtCoordinate",value:function(e,t){return f.vF.logError("getFeatureInfoAtCoordinate is not implemented! for ".concat(t," - ").concat(e)),Promise.resolve(null)}},{key:"getFeatureInfoAtLongLat",value:function(e,t){return f.vF.logError("getFeatureInfoAtLongLat is not implemented for ".concat(t," - ").concat(e,"!")),Promise.resolve(null)}},{key:"getFeatureInfoUsingBBox",value:function(e,t){return f.vF.logError("getFeatureInfoUsingBBox is not implemented! for ".concat(t," - ").concat(e)),Promise.resolve(null)}},{key:"getFeatureInfoUsingPolygon",value:function(e,t){return f.vF.logError("getFeatureInfoUsingPolygon is not implemented! for ".concat(t," - ").concat(e)),Promise.resolve(null)}},{key:"queryLegend",value:function(e){var t=this;P($,this,Y).call(this,{layerPath:e});var n=this.getLegend(e);return n.then((function(n){n&&P($,t,K).call(t,{layerPath:e,legend:n})})).catch((function(e){f.vF.logPromiseFailed("promiseLegend in queryLegend in AbstractGeoviewLayer",e)})),n}},{key:"createLayerGroup",value:function(e,t){var n,r,i={layers:new c.A,properties:{layerConfig:e}};void 0!==(null==t?void 0:t.extent)&&(i.extent=t.extent),void 0!==(null==t?void 0:t.maxZoom)&&(i.maxZoom=t.maxZoom),void 0!==(null==t?void 0:t.minZoom)&&(i.minZoom=t.minZoom),void 0!==(null==t||null===(n=t.states)||void 0===n?void 0:n.opacity)&&(i.opacity=t.states.opacity),void 0!==(null==t||null===(r=t.states)||void 0===r?void 0:r.visible)&&(i.visible=t.states.visible);var o=new u.A(i);return P($,this,J).call(this,{layer:o,config:e}),o}},{key:"getMetadataBounds",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,r=function e(n){n.forEach((function(n){var r;(0,w.KD)(n)?e(n.listOfLayerEntryConfig):null!==(r=n.initialSettings)&&void 0!==r&&r.bounds&&(t=t?[Math.min(n.initialSettings.bounds[0],t[0]),Math.min(n.initialSettings.bounds[1],t[1]),Math.max(n.initialSettings.bounds[2],t[2]),Math.max(n.initialSettings.bounds[3],t[3])]:[n.initialSettings.bounds[0],n.initialSettings.bounds[1],n.initialSettings.bounds[2],n.initialSettings.bounds[3]])}))},i=e.includes("/")?this.getLayerConfig(e):this.listOfLayerEntryConfig;return i&&(Array.isArray(i)?r(i):r([i]),n&&t)?S.M.transformExtent(t,"EPSG:4326","EPSG:".concat(n)):t}},{key:"getFieldDomain",value:function(e,t){return f.vF.logWarning("getFieldDomain is not implemented for ".concat(e," - ").concat(t)),null}},{key:"getFieldType",value:function(e,t){return f.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)}},{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);n&&(n.setVisible(e),e!==this.getVisible(t)&&P($,this,X).call(this,{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,r,i,o;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,n=this.getLayerConfig(t)){e.next=5;break}return r={type:this.type,layerName:{en:"config not found",fr:"config inexistante"},styleConfig:null,legend:null},e.abrupt("return",r);case 5:if(n.style){e.next=8;break}return i={type:this.type,layerName:n.layerName,styleConfig:n.style,legend:null},e.abrupt("return",i);case 8:return e.t0=this.type,e.t1=null==n?void 0:n.layerName,e.t2=null==n?void 0:n.style,e.next=13,(0,C.qC)(n);case 13:return e.t3=e.sent,o={type:e.t0,layerName:e.t1,styleConfig:e.t2,legend:e.t3},e.abrupt("return",o);case 18:return e.prev=18,e.t4=e.catch(0),f.vF.logError(e.t4),e.abrupt("return",null);case 22:case"end":return e.stop()}}),e,this,[[0,18]])}))),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=p.P.getDateFragmentsOrder(p.P.deduceDateFormat(i))),r=p.P.applyInputDateFormat(i,this.serverDateFragmentsOrder)):r=p.P.convertToUTC("".concat(p.P.convertMilisecondsToDate(i),"Z"));return this.externalFragmentsOrder&&(r=p.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,h,p,m,y,x,w,A,S,E,_,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 g.z(1),h=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,T.queryLegend(n.layerPath);case 4:t=e.sent,(r=b.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,m=null==p||null===(o=p.fieldTypes)||void 0===o?void 0:o.split(","),y=null===(a=(0,d.getLocalizedValue)(null==p?void 0:p.outfields,v.K.getDisplayLanguage(this.mapId)))||void 0===a?void 0:a.split(","),x=null===(s=(0,d.getLocalizedValue)(null==p?void 0:p.aliasFields,v.K.getDisplayLanguage(this.mapId)))||void 0===s?void 0:s.split(","),w=[],t.forEach((function(e){w.push(new Promise((function(t){(0,C.$G)(e,n,h).then((function(n){t({feature:e,canvas:n})})).catch((function(e){f.vF.logPromiseFailed("getFeatureCanvas in featureNeedingItsCanvas loop in formatFeatureInfoResult in AbstractGeoViewLayer",e)}))})))})),A={},S={},E=0,_=0,k=[],e.next=18,Promise.all(w);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:E++,geoviewLayerType:T.type,extent:r,geometry:i,featureIcon:o,fieldInfo:{},nameField:(0,d.getLocalizedValue)(null==n||null===(t=n.source)||void 0===t||null===(t=t.featureInfo)||void 0===t?void 0:t.nameField,v.K.getDisplayLanguage(T.mapId))||null};i.getKeys().forEach((function(e){if("geometry"!==e){e in A||(A[e]=T.getFieldDomain(e,n));var t=A[e];e in S||(S[e]=T.getFieldType(e,n));var r=S[e];if(null!=y&&y.includes(e)){var o=y.indexOf(e);a.fieldInfo[e]={fieldKey:_++,value:T.getFieldValue(i,e,m[o]),dataType:m[o],alias:x[o],domain:t}}else y||(a.fieldInfo[e]={fieldKey:_++,value:T.getFieldValue(i,e,r),dataType:r,alias:e,domain:t})}})),k.push(a)})),e.abrupt("return",k);case 23:return e.prev=23,e.t0=e.catch(0),f.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",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:"calculateBounds",value:function(e){var t=this;try{var n,r=function e(r){r.forEach((function(r){(0,w.KD)(r)?e(r.listOfLayerEntryConfig):n=t.getBounds(r.layerPath,n)}))},i=this.getLayerConfig(e);return i&&(Array.isArray(i)?r(i):r([i])),n}catch(t){return void f.vF.logError("Couldn't calculate bounds on layer ".concat(e),t)}}},{key:"setAllLayerStatusTo",value:function(e,t,n){var r=this;t.forEach((function(t){if((0,w.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){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.listOfLayerEntryConfig;return E.c.allLayerStatusAreGreaterThanOrEqualTo(e,t)}},{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,d.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(e.entryType!==w.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)},_.A.LAYERS_HYBRID_MODE||(t.get("source").once("".concat(n,"loaderror"),i),t.get("source").once("".concat(n,"loadend"),o))}P($,this,J).call(this,{layer:t,config:e})}},{key:"getAllLayerEntryConfigs",value:function(){var e=this,t=[];return this.listOfLayerEntryConfig.forEach((function(n){P($,e,H).call(e,t,n)})),t}},{key:"onLegendQuerying",value:function(e){y.A.onEvent(O(j,this),e)}},{key:"offLegendQuerying",value:function(e){y.A.offEvent(O(j,this),e)}},{key:"onLegendQueried",value:function(e){y.A.onEvent(O(F,this),e)}},{key:"offLegendQueried",value:function(e){y.A.offEvent(O(F,this),e)}},{key:"onVisibleChanged",value:function(e){y.A.onEvent(O(D,this),e)}},{key:"offVisibleChanged",value:function(e){y.A.offEvent(O(D,this),e)}},{key:"onLayerEntryProcessed",value:function(e){y.A.onEvent(O(N,this),e)}},{key:"offLayerEntryProcessed",value:function(e){y.A.offEvent(O(N,this),e)}},{key:"onLayerCreation",value:function(e){y.A.onEvent(O(z,this),e)}},{key:"offLayerCreation",value:function(e){y.A.offEvent(O(z,this),e)}},{key:"emitLayerFilterApplied",value:function(e){y.A.emitEvent(this,O(V,this),e)}},{key:"onLayerFilterApplied",value:function(e){y.A.onEvent(O(V,this),e)}},{key:"offLayerFilterApplied",value:function(e){y.A.offEvent(O(V,this),e)}},{key:"onLayerNameChanged",value:function(e){y.A.onEvent(O(B,this),e)}},{key:"offLayerNameChanged",value:function(e){y.A.offEvent(O(B,this),e)}}]);var e,t,n,s,m,G,q,ee,te,ne}();function U(e,t){if(0!==t.length){if(1===t.length)this.listOfLayerEntryConfig=t;else{var n=new m.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 W(e){return q.apply(this,arguments)}function q(){return(q=(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.processLayerMetadata(t);case 3:return e.next=5,this.processListOfLayerEntryMetadata(t.listOfLayerEntryConfig);case 5:return t.layerStatus="processed",P($,this,Z).call(this,{config:t}),e.abrupt("return",t);case 10:e.prev=10,e.t0=e.catch(0),f.vF.logError(e.t0);case 13:return e.abrupt("return",t);case 14:case"end":return e.stop()}}),e,this,[[0,10]])})))).apply(this,arguments)}function H(e,t){var n,r=this;e.push(t),null===(n=t.listOfLayerEntryConfig)||void 0===n||n.forEach((function(t){P($,r,H).call(r,e,t)}))}function Y(e){y.A.emitEvent(this,O(j,this),e)}function K(e){y.A.emitEvent(this,O(F,this),e)}function X(e){y.A.emitEvent(this,O(D,this),e)}function Z(e){y.A.emitEvent(this,O(N,this),e)}function J(e){y.A.emitEvent(this,O(z,this),e)}function Q(e){y.A.emitEvent(this,O(B,this),e)}(0,a.A)(G,"DEFAULT_HIT_TOLERANCE",4);var ee={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"},te={CSV:"TypeVectorLayerEntryConfig",imageStatic:"TypeImageStaticLayerEntryConfig",esriDynamic:"TypeEsriDynamicLayerEntryConfig",esriFeature:"TypeVectorLayerEntryConfig",esriImage:"TypeEsriImageLayerEntryConfig",GeoJSON:"TypeVectorLayerEntryConfig",GeoPackage:"TypeVectorLayerEntryConfig",xyzTiles:"TypeTileLayerEntryConfig",vectorTiles:"TypeTileLayerEntryConfig",ogcFeature:"TypeVectorLayerEntryConfig",ogcWfs:"TypeVectorLayerEntryConfig",ogcWms:"TypeOgcWmsLayerEntryConfig"},ne=[ee.CSV,ee.GEOJSON,ee.ESRI_DYNAMIC,ee.ESRI_FEATURE,ee.ESRI_IMAGE,ee.OGC_FEATURE,ee.WFS,ee.GEOPACKAGE],re=function(e){return ne.includes(null==e?void 0:e.type)},ie=function(e){return(null==e?void 0:e.type)===ee.WMS},oe=function(e){return(null==e?void 0:e.type)===ee.IMAGE_STATIC}},80104:(e,t,n)=>{"use strict";n.d(t,{$A:()=>L,KS:()=>P,Nf:()=>j,RW:()=>M,Sh:()=>O,YX:()=>I,gm:()=>R,mF:()=>k});var r=n(64426),i=n(43994),o=n(59615),a=n.n(o),s=n(97493),l=n(80363),c=n.n(l),u=n(98030),d=n(76262),h=n(79913),p=n(12311),f=n(34028),g=n(60854),m=n(97752),y=n(80995),v=n(66372),b=n(48660),x=n(85813),w=n(10454),A=n(52375),S=n(49848),C=n(92288);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 _(e){for(var t=1;t{"use strict";n.d(t,{A:()=>u});var r=n(32814),i=n(70640),o=n(71149),a=n(99979),s=n(38096);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(){return(0,i.A)(this,t),l(this,t,arguments)}return(0,s.A)(t,e),(0,r.A)(t)}(n(85813).qt)},10454:(e,t,n)=>{"use strict";n.d(t,{IU:()=>j,xM:()=>F,zt:()=>N});var r=n(28249),i=n(43994),o=n(70640),a=n(32814),s=n(71149),l=n(66138),c=n(99979),u=n(38096),d=n(64426),h=n(59615),p=n.n(h),f=n(76352),g=n(28596),m=n(987),y=n(20662),v=n(48690),b=n(79913),x=n(85813),w=n(86203),A=n(12311),S=n(62338),C=n(60854),E=n(34028),_=n(48660),k=n(80104),T=n(92288);function O(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= ").concat(R(D,this,$).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(R(D,this,$).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(R(D,this,$).call(this,a.field,a.classBreakStyleInfo[p].minValue,n.source.featureInfo))),p+1===a.classBreakStyleInfo.length&&d.push("".concat(a.field," <= ").concat(R(D,this,$).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(R(D,this,$).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(R(D,this,$).call(this,a.field,a.classBreakStyleInfo[p-1].maxValue,n.source.featureInfo))):p+1===a.classBreakStyleInfo.length&&d.push("".concat(a.field," <= ").concat(R(D,this,$).call(this,a.field,a.classBreakStyleInfo[p].maxValue,n.source.featureInfo))):!1!==a.classBreakStyleInfo[p].visible?(d.push("".concat(a.field," > ").concat(R(D,this,$).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(R(D,this,$).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){(0,l.A)((0,c.A)(t.prototype),"onLoaded",this).call(this,e),this.applyViewFilter(e.layerPath,e.layerFilter||"")}},{key:"applyViewFilter",value:function(e,t){var n=this,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];C.vF.logTraceCore("ESRI-DYNAMIC - applyViewFilter",e);var o=this.getLayerConfig(e),a=this.getOLLayer(e),s=t.replaceAll(/\s{2,}/g," ").trim();o.legendFilterIsOff=!i,o.layerFilter=s,i&&(s=this.getViewFilter(e));var l=(0,r.A)(s.matchAll(/(?<=^date\b\s')[\d/\-T\s:+Z]{4,25}(?=')|(?<=[(\s]date\b\s')[\d/\-T\s:+Z]{4,25}(?=')/gi));l.reverse(),l.forEach((function(e){var t=![20,25].includes(e[0].length),r=E.P.applyInputDateFormat(e[0],n.externalFragmentsOrder,t);r=(r=r.slice(0,20===r.length?-1:-6)).replace("T"," "),s="".concat(s.slice(0,e.index)).concat(r).concat(s.slice(e.index+e[0].length))})),null==a||a.getSource().updateParams({layerDefs:'{"'.concat(o.layerId,'": "').concat(s,'"}')}),null==a||a.changed(),this.emitLayerFilterApplied({layerPath:e,filter:s})}},{key:"getBounds",value:function(e,t){var n,r,i,o,a,s,l,c=this.getLayerConfig(e),u=(null==c||null===(n=c.initialSettings)||void 0===n?void 0:n.bounds)||[],d=(null===(r=this.metadata)||void 0===r||null===(r=r.fullExtent)||void 0===r||null===(r=r.spatialReference)||void 0===r?void 0:r.wkid)||this.getMapViewer().getProjection().getCode().replace("EPSG:","");null!==(i=this.metadata)&&void 0!==i&&i.fullExtent&&(u[0]=null===(o=this.metadata)||void 0===o?void 0:o.fullExtent.xmin,u[1]=null===(a=this.metadata)||void 0===a?void 0:a.fullExtent.ymin,u[2]=null===(s=this.metadata)||void 0===s?void 0:s.fullExtent.xmax,u[3]=null===(l=this.metadata)||void 0===l?void 0:l.fullExtent.ymax);if(u){var h,p=u;(null===(h=this.metadata)||void 0===h||null===(h=h.fullExtent)||void 0===h||null===(h=h.spatialReference)||void 0===h?void 0:h.wkid)!==this.getMapViewer().getProjection().getCode().replace("EPSG:","")&&(p=this.getMapViewer().convertExtentFromProjToMapProj(u,"EPSG:".concat(d))),t=t?(0,S.getMinOrMaxExtents)(t,p):[p[0],p[1],p[2],p[3]]}return t}}]);var n,s,h}(w.A);function z(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 V(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:()=>P,sV:()=>O,yl:()=>T});var r=n(64426),i=n(28249),o=n(43994),a=n(70640),s=n(32814),l=n(71149),c=n(66138),u=n(99979),d=n(38096),h=n(59615),p=n.n(h),f=n(76352),g=n(28596),m=n(79913),y=n(62338),v=n(34028),b=n(60854),x=n(85813),w=n(86203),A=n(48660),S=n(80104),C=n(92288),E=n(10011);function _(e,t,n){return t=(0,u.A)(t),(0,l.A)(e,k()?Reflect.construct(t,n||[],(0,u.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})()}var T=function(e){return(null==e?void 0:e.geoviewLayerType)===x.y6.ESRI_IMAGE},O=function(e){var t;return(null==e||null===(t=e.geoviewLayerConfig)||void 0===t?void 0:t.geoviewLayerType)===x.y6.ESRI_IMAGE},P=function(e){function t(e,n){return(0,a.A)(this,t),n.serviceDateFormat||(n.serviceDateFormat="DD/MM/YYYY HH:MM:SSZ"),_(this,t,[x.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=pjson"),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:this.type,layerName:n.layerName,styleConfig:n.style,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}},n.style=u,e.t0=this.type,e.t1=null==n?void 0:n.layerName,e.t2=u,e.next=25,(0,E.qC)(n);case 25:return e.t3=e.sent,d={type:e.t0,layerName:e.t1,styleConfig:e.t2,legend:e.t3},e.abrupt("return",d);case 30:return e.prev=30,e.t4=e.catch(0),b.vF.logError("Get Legend for ".concat(t," error"),e.t4),e.abrupt("return",null);case 34:case"end":return e.stop()}}),e,this,[[0,30]])}))),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){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,d,h;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,c.A)((0,u.A)(t.prototype),"processOneLayerEntry",this).call(this,n);case 2:return(l={}).attributions=[this.metadata.copyrightText?this.metadata.copyrightText:""],l.url=(0,m.getLocalizedValue)(n.source.dataAccessPath,C.K.getDisplayLanguage(this.mapId)),l.params={LAYERS:"show:".concat(n.layerId)},n.source.transparent&&Object.defineProperty(l.params,"transparent",n.source.transparent),n.source.format&&Object.defineProperty(l.params,"format",n.source.format),n.source.crossOrigin?l.crossOrigin=n.source.crossOrigin:l.crossOrigin="Anonymous",n.source.projection&&(l.projection="EPSG:".concat(n.source.projection)),d={source:new f.A(l),properties:{layerConfig:n}},void 0!==(null===(r=n.initialSettings)||void 0===r?void 0:r.className)&&(d.className=n.initialSettings.className),void 0!==(null===(i=n.initialSettings)||void 0===i?void 0:i.extent)&&(d.extent=n.initialSettings.extent),void 0!==(null===(o=n.initialSettings)||void 0===o?void 0:o.maxZoom)&&(d.maxZoom=n.initialSettings.maxZoom),void 0!==(null===(a=n.initialSettings)||void 0===a?void 0:a.minZoom)&&(d.minZoom=n.initialSettings.minZoom),void 0!==(null===(s=n.initialSettings)||void 0===s||null===(s=s.states)||void 0===s?void 0:s.opacity)&&(d.opacity=n.initialSettings.states.opacity),h=new g.A(d),this.setLayerAndLoadEndListeners(n,h,"image"),e.abrupt("return",Promise.resolve(h));case 19:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"onLoaded",value:function(e){(0,c.A)((0,u.A)(t.prototype),"onLoaded",this).call(this,e),this.applyViewFilter(e.layerPath,e.layerFilter||"")}},{key:"applyViewFilter",value:function(e,t,n){var o=this;b.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=v.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,t){var n,r,i,o,a,s,l,c=this.getLayerConfig(e),u=(null===(n=this.metadata)||void 0===n||null===(n=n.fullExtent)||void 0===n||null===(n=n.spatialReference)||void 0===n?void 0:n.wkid)||this.getMapViewer().getProjection().getCode().replace("EPSG:",""),d=(null==c||null===(r=c.initialSettings)||void 0===r?void 0:r.bounds)||[];null!==(i=this.metadata)&&void 0!==i&&i.fullExtent&&(d[0]=null===(o=this.metadata)||void 0===o?void 0:o.fullExtent.xmin,d[1]=null===(a=this.metadata)||void 0===a?void 0:a.fullExtent.ymin,d[2]=null===(s=this.metadata)||void 0===s?void 0:s.fullExtent.xmax,d[3]=null===(l=this.metadata)||void 0===l?void 0:l.fullExtent.ymax);if(d){var h,p=d;(null===(h=this.metadata)||void 0===h||null===(h=h.fullExtent)||void 0===h||null===(h=h.spatialReference)||void 0===h?void 0:h.wkid)!==this.getMapViewer().getProjection().getCode().replace("EPSG:","")&&(p=this.getMapViewer().convertExtentFromProjToMapProj(d,"EPSG:".concat(u))),t=t?(0,y.getMinOrMaxExtents)(t,p):[p[0],p[1],p[2],p[3]]}return t}}]);var n,l}(w.A)},78643:(e,t,n)=>{"use strict";n.d(t,{S6:()=>D,Qn:()=>j,HO:()=>R});var r=n(43994),i=n(70640),o=n(32814),a=n(71149),s=n(66138),l=n(99979),c=n(38096),u=n(59615),d=n.n(u),h=n(97493),p=n(28596),f=n(41320),g=n(82402),m=n(62661),y=n(41218);var v=n(34336);class b extends g.Ay{constructor(e){const t=void 0!==e.crossOrigin?e.crossOrigin:null,n=void 0!==e.imageLoadFunction?e.imageLoadFunction:g.VV;super({attributions:e.attributions,interpolate:e.interpolate,projection:(0,v.Jt)(e.projection)}),this.url_=e.url,this.imageExtent_=e.imageExtent,this.image=null,this.image=new m.Ay(this.imageExtent_,void 0,1,function(e){const t=e.load||m.D4,n=e.imageExtent,r=new Image;return null!==e.crossOrigin&&(r.crossOrigin=e.crossOrigin),()=>t(r,e.url).then((e=>{const t=(0,y.getWidth)(n)/e.width,r=(0,y.getHeight)(n)/e.height;return{image:e,extent:n,resolution:t!==r?[t,r]:r,pixelRatio:1}}))}({url:e.url,imageExtent:e.imageExtent,crossOrigin:t,load:(e,t)=>(this.image.setImage(e),n(this.image,t),(0,m.D4)(e))})),this.image.addEventListener(f.A.CHANGE,this.handleImageChange.bind(this))}getImageExtent(){return this.imageExtent_}getImageInternal(e,t,n,r){return(0,y.intersects)(e,this.image.getExtent())?this.image:null}getUrl(){return this.url_}}const x=b;var w=n(76262),A=n(85813),S=n(86203),C=n(48660),E=n(79913),_=n(62338),k=n(60854),T=n(92288),O=n(10011);function P(e,t,n){return t=(0,l.A)(t),(0,a.A)(e,I()?Reflect.construct(t,n||[],(0,l.A)(e).constructor):t.apply(e,n))}function I(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(I=function(){return!!e})()}function M(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 L(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 R=function(e){return(null==e?void 0:e.geoviewLayerType)===A.y6.IMAGE_STATIC},j=function(e){var t;return(null==e||null===(t=e.geoviewLayerConfig)||void 0===t?void 0:t.geoviewLayerType)===A.y6.IMAGE_STATIC},F=new WeakSet,D=function(e){function t(e,n){var r;return(0,i.A)(this,t),M(r=P(this,t,[A.y6.IMAGE_STATIC,n,e]),F),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,L(F,this,N).call(this,n);case 6:if(r=e.sent){e.next=10;break}return i={type:this.type,layerName:n.layerName,legend:null},e.abrupt("return",i);case 10:return e.next=12,(0,O.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:this.type,layerName:n.layerName,legend:a},e.abrupt("return",s);case 21:return l={type:this.type,layerName:n.layerName,legend:null},e.abrupt("return",l);case 25:return e.prev=25,e.t0=e.catch(0),k.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,C.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,w.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,c,u,h,f,g,m;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,s.A)((0,l.A)(t.prototype),"processOneLayerEntry",this).call(this,n);case 2:if(null!=n&&null!==(r=n.source)&&void 0!==r&&r.extent){e.next=4;break}throw new Error("Parameter extent is not defined in source element of layerConfig.");case 4:if(f={url:(0,E.getLocalizedValue)(n.source.dataAccessPath,T.K.getDisplayLanguage(this.mapId))||"",imageExtent:n.source.extent},null!=n&&null!==(i=n.source)&&void 0!==i&&i.crossOrigin?f.crossOrigin=n.source.crossOrigin:f.crossOrigin="Anonymous",null==n||null===(o=n.source)||void 0===o||!o.projection){e.next=10;break}f.projection="EPSG:".concat(n.source.projection),e.next=11;break;case 10:throw new Error("Parameter projection is not define in source element of layerConfig.");case 11:return g={source:new x(f)},void 0!==(null===(a=n.initialSettings)||void 0===a?void 0:a.extent)&&(g.extent=n.initialSettings.extent),void 0!==(null===(c=n.initialSettings)||void 0===c?void 0:c.maxZoom)&&(g.maxZoom=n.initialSettings.maxZoom),void 0!==(null===(u=n.initialSettings)||void 0===u?void 0:u.minZoom)&&(g.minZoom=n.initialSettings.minZoom),void 0!==(null===(h=n.initialSettings)||void 0===h||null===(h=h.states)||void 0===h?void 0:h.opacity)&&(g.opacity=n.initialSettings.states.opacity),m=new p.A(g),this.setLayerAndLoadEndListeners(n,m,"image"),e.abrupt("return",Promise.resolve(m));case 19:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"getBounds",value:function(e,t){var n,r,i=this.getOLLayer(e),o=null==i||null===(n=i.getSource())||void 0===n?void 0:n.getImageExtent(),a=(null==i||null===(r=i.getSource())||void 0===r||null===(r=r.getProjection())||void 0===r?void 0:r.getCode())||this.getMapViewer().getProjection().getCode();if(o){var s,l=o;(null===(s=this.metadata)||void 0===s||null===(s=s.fullExtent)||void 0===s||null===(s=s.spatialReference)||void 0===s?void 0:s.wkid)!==this.getMapViewer().getProjection().getCode().replace("EPSG:","")&&(l=this.getMapViewer().convertExtentFromProjToMapProj(o,a)),t=t?(0,_.getMinOrMaxExtents)(t,l):[l[0],l[1],l[2],l[3]]}return t}}]);var n,a}(S.A);function N(e){var t=this;return new Promise((function(n){var r=(0,E.getLocalizedValue)(e.source.dataAccessPath,T.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,w.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)}))}},98178:(e,t,n)=>{"use strict";n.d(t,{RZ:()=>Yo,Pg:()=>Ho,c9:()=>qo});var r=n(64426),i=n(43994),o=n(70640),a=n(32814),s=n(71149),l=n(66138),c=n(99979),u=n(38096),d=n(59615),h=n.n(d),p=n(36203),f=n(36116),g=n(41320),m=n(82562),y=n(66749);class v extends m.A{constructor(e,t,n,r,i,o){super(e,t,o),this.extent=null,this.format_=r,this.features_=null,this.loader_,this.projection=null,this.resolution,this.tileLoadFunction_=i,this.url_=n,this.key=n}getFormat(){return this.format_}getFeatures(){return this.features_}load(){this.state==y.A.IDLE&&(this.setState(y.A.LOADING),this.tileLoadFunction_(this,this.url_),this.loader_&&this.loader_(this.extent,this.resolution,this.projection))}onLoad(e,t){this.setFeatures(e)}onError(){this.setState(y.A.ERROR)}setFeatures(e){this.features_=e,this.setState(y.A.LOADED)}setLoader(e){this.loader_=e}}const b=v;var x=n(75005),w=n(70861),A=n(39966),S=n(31752),C=n(94994);const E=[];class _ extends m.A{constructor(e,t,n,r){super(e,t,{transition:0}),this.context_={},this.executorGroups={},this.loadingSourceTiles=0,this.hitDetectionImageData={},this.replayState_={},this.sourceTiles=[],this.errorTileKeys={},this.wantedResolution,this.getSourceTiles=r.bind(void 0,this),this.wrappedTileCoord=n}getContext(e){const t=(0,C.v6)(e);return t in this.context_||(this.context_[t]=(0,S.Y)(1,1,E)),this.context_[t]}hasContext(e){return(0,C.v6)(e)in this.context_}getImage(e){return this.hasContext(e)?this.getContext(e).canvas:null}getReplayState(e){const t=(0,C.v6)(e);return t in this.replayState_||(this.replayState_[t]={dirty:!1,renderedRenderOrder:null,renderedResolution:NaN,renderedRevision:-1,renderedTileResolution:NaN,renderedTileRevision:-1,renderedTileZ:-1}),this.replayState_[t]}load(){this.getSourceTiles()}release(){for(const e in this.context_){const t=this.context_[e];(0,S.Yg)(t),E.push(t.canvas),delete this.context_[e]}super.release()}}const k=_;var T=n(43636),O=n(41218),P=n(73478),I=n(54869),M=n(62821),L=n(16405),R=n(48179);class j extends A.A{constructor(e){const t=e.projection||"EPSG:3857",n=e.extent||(0,P.kZ)(t),r=e.tileGrid||(0,P.EN)({extent:n,maxResolution:e.maxResolution,maxZoom:void 0!==e.maxZoom?e.maxZoom:22,minZoom:e.minZoom,tileSize:e.tileSize||512});super({attributions:e.attributions,attributionsCollapsible:e.attributionsCollapsible,cacheSize:e.cacheSize,interpolate:!0,opaque:!1,projection:t,state:e.state,tileGrid:r,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:D,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:void 0===e.wrapX||e.wrapX,transition:e.transition,zDirection:void 0===e.zDirection?1:e.zDirection}),this.format_=e.format?e.format:null,this.sourceTileCache=new x.A(this.tileCache.highWaterMark),this.overlaps_=null==e.overlaps||e.overlaps,this.tileClass=e.tileClass?e.tileClass:b,this.tileGrids_={}}getFeaturesInExtent(e){const t=[],n=this.tileCache;if(0===n.getCount())return t;const r=(0,I.K)(n.peekFirstKey())[0],i=this.tileGrid;return n.forEach((function(n){if(n.tileCoord[0]!==r||n.getState()!==y.A.LOADED)return;const o=n.getSourceTiles();for(let n=0,r=o.length;n{const r=(0,I.gr)(t),i=n.peek(r);if(i){const t=i.sourceTiles;for(let n=0,r=t.length;n{const i=this.tileUrlFunction(r,e,t),o=this.sourceTileCache.containsKey(i)?this.sourceTileCache.get(i):new this.tileClass(r,i?y.A.IDLE:y.A.EMPTY,i,this.format_,this.tileLoadFunction);n.sourceTiles.push(o);const a=o.getState();if(a{this.handleTileChange(t);const r=o.getState();if(r===y.A.LOADED||r===y.A.ERROR){const t=o.getKey();t in n.errorTileKeys?o.getState()===y.A.LOADED&&delete n.errorTileKeys[t]:n.loadingSourceTiles--,r===y.A.ERROR?n.errorTileKeys[t]=!0:o.removeEventListener(g.A.CHANGE,e),0===n.loadingSourceTiles&&n.setState((0,M.p)(n.errorTileKeys)?y.A.LOADED:y.A.ERROR)}};o.addEventListener(g.A.CHANGE,e),n.loadingSourceTiles++}a===y.A.IDLE&&(o.extent=l.getTileCoordExtent(r),o.projection=t,o.resolution=l.getResolution(r[0]),this.sourceTileCache.set(i,o),o.load())})),n.loadingSourceTiles||n.setState(n.sourceTiles.some((e=>e.getState()===y.A.ERROR))?y.A.ERROR:y.A.LOADED)}return n.sourceTiles}getTile(e,t,n,r,i){const o=(0,I.dp)(e,t,n),a=this.getKey();let s;if(this.tileCache.containsKey(o)&&(s=this.tileCache.get(o),s.key===a))return s;const l=[e,t,n];let c=this.getTileCoordForTileUrlFunction(l,i);const u=this.getTileGrid().getExtent(),d=this.getTileGridForProjection(i);if(c&&u){const t=d.getTileCoordExtent(c);(0,O.buffer)(t,-d.getResolution(e),t),(0,O.intersects)(u,t)||(c=null)}let h=!0;if(null!==c){const t=this.tileGrid,n=d.getResolution(e),o=t.getZForResolution(n,1),a=d.getTileCoordExtent(c);(0,O.buffer)(a,-n,a),t.forEachTileCoord(a,o,(e=>{h=h&&!this.tileUrlFunction(e,r,i)}))}const p=new k(l,h?y.A.EMPTY:y.A.IDLE,c,this.getSourceTiles.bind(this,r,i));return p.key=a,s?(p.interimTile=s,p.refreshInterimChain(),this.tileCache.replace(o,p)):this.tileCache.set(o,p),p}getTileGridForProjection(e){const t=e.getCode();let n=this.tileGrids_[t];if(!n){const e=this.tileGrid,r=e.getResolutions().slice(),i=r.map((function(t,n){return e.getOrigin(n)})),o=r.map((function(t,n){return e.getTileSize(n)})),a=T.L+1;for(let e=r.length;e>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,se.yJ)(s,l);e=t.length>1?new te.A(s,"XY",t):new ie.Ay(s,"XY",l)}else e="Point"===c?new re.A(s,"XY"):"LineString"===c?new J.A(s,"XY"):"MultiPoint"===c?new ee.A(s,"XY"):"MultiLineString"===c?new Q.A(s,"XY",l):null;i=new(0,this.featureClass_),this.geometryName_&&i.setGeometryName(this.geometryName_);const t=(0,Z.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,ae.Jt)(t.dataProjection);r.setWorldExtent(t.extent),t.dataProjection=r;const i=new ne(e),o=i.readFields(ce,{}),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 de(e,t,n){if(1==e)t.id=n.readVarint();else if(2==e){const e=n.readVarint()+n.pos;for(;n.posthis._maxQueueLength;)this._queue.shift().callback(null,null)}_dispatch(){if(this._running||0===this._queue.length)return;const e=this._queue.shift();this._job=e;const t=e.inputs[0].width,n=e.inputs[0].height,r=e.inputs.map((function(e){return e.data.buffer})),i=this._workers.length;if(this._running=i,1===i)return void this._workers[0].postMessage({buffers:r,meta:e.meta,imageOps:this._imageOps,width:t,height:n},r);const o=e.inputs[0].data.length,a=4*Math.ceil(o/4/i);for(let o=0;o=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,ae.Jt)("EPSG:4326"),n=this.getProjection();let r;if(void 0!==e.bounds){const i=(0,ae.FO)(t,n);r=(0,O.applyTransform)(e.bounds,i)}const i=(0,P.kZ)(n),o=e.minzoom||0,a=e.maxzoom||22,s=(0,P.EN)({extent:i,maxZoom:a,minZoom:o,tileSize:this.tileSize_});if(this.tileGrid=s,this.tileUrlFunction=(0,H.Qz)(e.tiles,s),e.attribution&&!this.getAttributions()){const t=void 0!==r?r:i;this.setAttributions((function(n){return(0,O.intersects)(t,n.extent)?[e.attribution]:null}))}this.tileJSON_=e,this.setState("ready")}handleTileJSONError(){this.setState("error")}}const ze=Ne;var Ve=n(44999),Be=n(83605),$e=n(32753),Ge=n(98949);function Ue(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var We,qe={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 He(e){return(e=Math.round(e))<0?0:e>255?255:e}function Ye(e){return e<0?0:e>1?1:e}function Ke(e){return"%"===e[e.length-1]?He(parseFloat(e)/100*255):He(parseInt(e))}function Xe(e){return"%"===e[e.length-1]?Ye(parseFloat(e)/100):Ye(parseFloat(e))}function Ze(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{We={}.parseCSSColor=function(e){var t,n=e.replace(/ /g,"").toLowerCase();if(n in qe)return qe[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=Xe(a.pop());case"rgb":return 3!==a.length?null:[Ke(a[0]),Ke(a[1]),Ke(a[2]),s];case"hsla":if(4!==a.length)return null;s=Xe(a.pop());case"hsl":if(3!==a.length)return null;var l=(parseFloat(a[0])%360+360)%360/360,c=Xe(a[1]),u=Xe(a[2]),d=u<=.5?u*(c+1):u+c-u*c,h=2*u-d;return[He(255*Ze(h,d,l+1/3)),He(255*Ze(h,d,l)),He(255*Ze(h,d,l-1/3)),s];default:return null}}return null}}catch(e){}class Je{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 Je)return e;if("string"!=typeof e)return;const t=We(e);return t?new Je(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]}}Je.black=new Je(0,0,0,1),Je.white=new Je(1,1,1,1),Je.transparent=new Je(0,0,0,0),Je.red=new Je(1,0,0,1),Je.blue=new Je(0,0,1,1);var Qe=Je;function et(e){return"object"==typeof e?["literal",e]:e}function tt(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,et(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],lt(e[1])]:[e[0],et(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 st(e,t){return e.type?e.type:t.expression.interpolated?"exponential":"interval"}function lt(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 Et=[pt,ft,gt,mt,yt,wt,vt,St(bt),At];function _t(e,t){if("error"===t.kind)return null;if("array"===e.kind){if("array"===t.kind&&(0===t.N&&"value"===t.itemType.kind||!_t(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 Et)if(!_t(e,t))return null}return`Expected ${Ct(e)} but found ${Ct(t)} instead.`}function kt(e,t){return t.some((t=>t.kind===e.kind))}function Tt(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 Ot{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 Pt{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 It{constructor(e){this.sections=e}static fromString(e){return new It([new Pt(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 It?e:It.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 Mt{constructor(e){this.name=e.name,this.available=e.available}toString(){return this.name}static fromString(e){return e?new Mt({name:e,available:!1}):null}serialize(){return["image",this.name]}}function Lt(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 Rt(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 Qe)return!0;if(e instanceof Ot)return!0;if(e instanceof It)return!0;if(e instanceof Mt)return!0;if(Array.isArray(e)){for(const t of e)if(!Rt(t))return!1;return!0}if("object"==typeof e){for(const t in e)if(!Rt(e[t]))return!1;return!0}return!1}function jt(e){if(null===e)return pt;if("string"==typeof e)return gt;if("boolean"==typeof e)return mt;if("number"==typeof e)return ft;if(e instanceof Qe)return yt;if(e instanceof Ot)return xt;if(e instanceof It)return wt;if(e instanceof Mt)return At;if(Array.isArray(e)){const t=e.length;let n;for(const t of e){const e=jt(t);if(n){if(n===e)continue;n=bt;break}n=e}return St(n||bt,t)}return vt}function Ft(e){const t=typeof e;return null===e?"":"string"===t||"number"===t||"boolean"===t?String(e):e instanceof Qe||e instanceof It||e instanceof Mt?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(!Rt(e[1]))return t.error("invalid value");const n=e[1];let r=jt(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 Qe?["rgba"].concat(this.value.toArray()):this.value instanceof It?this.value.serialize():this.value}}var Nt=Dt;var zt=class{constructor(e){this.name="ExpressionEvaluationError",this.message=e}toJSON(){return this.message}};const Vt={string:gt,number:ft,boolean:mt,object:vt};class Bt{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 Vt)||"object"===n)return t.error('The item type argument of "array" must be one of string, number, boolean',1);i=Vt[n],r++}else i=bt;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=St(i,o)}else n=Vt[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 $t=Bt;class Gt{constructor(e){this.type=wt,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,ft),!e))return null;let n=null;if(o["text-font"]&&(n=t.parse(o["text-font"],1,St(gt)),!n))return null;let a=null;if(o["text-color"]&&(a=t.parse(o["text-color"],1,yt),!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,bt);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 Gt(r)}evaluate(e){return new It(this.sections.map((t=>{const n=t.content.evaluate(e);return jt(n)===At?new Pt("",n,null,null,null):new Pt(Ft(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 Ut{constructor(e){this.type=At,this.input=e}static parse(e,t){if(2!==e.length)return t.error("Expected two arguments.");const n=t.parse(e[1],1,gt);return n?new Ut(n):t.error("No image name provided.")}evaluate(e){const t=this.input.evaluate(e),n=Mt.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 Wt={"to-boolean":mt,"to-color":yt,"to-number":ft,"to-string":gt};class qt{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=Wt[n],i=[];for(let n=1;n4?`Invalid rbga value ${JSON.stringify(t)}: expected an array containing either three or four numeric values.`:Lt(t[0],t[1],t[2],t[3]),!n))return new Qe(t[0]/255,t[1]/255,t[2]/255,t[3])}throw new zt(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 zt(`Could not convert ${JSON.stringify(t)} to number.`)}return"formatted"===this.type.kind?It.fromString(Ft(this.args[0].evaluate(e))):"resolvedImage"===this.type.kind?Mt.fromString(Ft(this.args[0].evaluate(e))):Ft(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 Gt([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if("resolvedImage"===this.type.kind)return new Ut(this.args[0]).serialize();const e=[`to-${this.type.kind}`];return this.eachChild((t=>{e.push(t.serialize())})),e}}var Ht=qt;const Yt=["Unknown","Point","LineString","Polygon"];var Kt=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?Yt[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]=Qe.parse(e)),t}};class Xt{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=Xt.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 En(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(Ct).join(", ")})`:`(${Ct(t.type)}...)`;var t})).join(" | "),r=[];for(let n=1;n=t[2])&&(!(e[1]<=t[1])&&!(e[3]>=t[3])))}function nn(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*Qt),Math.round(r*o*Qt)]}function rn(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 on(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 an(e,t){for(let n=0;n0&&d<0||u<0&&d>0}function ln(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]&&!(!sn(e,t,n,r)||!sn(n,r,e,t));var a,s}function cn(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}en(t,e)}function gn(e,t,n,r){const i=Math.pow(2,r.z)*Qt,o=[r.x*Qt,r.y*Qt],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]];fn(r,t,n,i),a.push(r)}return a}function mn(e,t,n,r){const i=Math.pow(2,r.z)*Qt,o=[r.x*Qt,r.y*Qt],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]];en(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)fn(r,t,n,i)}var s;return a}class yn{constructor(e,t){this.type=mt,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(Rt(e[1])){const t=e[1];if("FeatureCollection"===t.type)for(let e=0;e{t&&!bn(e)&&(t=!1)})),t}function xn(e){if(e instanceof Zt&&"feature-state"===e.name)return!1;let t=!0;return e.eachChild((e=>{t&&!xn(e)&&(t=!1)})),t}function wn(e,t){if(e instanceof Zt&&t.indexOf(e.name)>=0)return!1;let n=!0;return e.eachChild((e=>{n&&!wn(e,t)&&(n=!1)})),n}class An{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 An(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 Sn=An;class Cn{constructor(e,t=[],n,r=new ht,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 $t(t,[e]):"coerce"===n?new Ht(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 Nt)&&"resolvedImage"!==r.type.kind&&_n(r)){const e=new Kt;try{r=new Nt(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 Cn(this.registry,r,t||null,i,this.errors)}error(e,...t){const n=`${this.key}${t.map((e=>`[${e}]`)).join("")}`;this.errors.push(new ut(n,e))}checkSubtype(e,t){const n=_t(e,t);return n&&this.error(n),n}}var En=Cn;function _n(e){if(e instanceof Sn)return _n(e.boundExpression);if(e instanceof Zt&&"error"===e.name)return!1;if(e instanceof Jt)return!1;if(e instanceof vn)return!1;const t=e instanceof Ht||e instanceof $t;let n=!0;return e.eachChild((e=>{n=t?n&&_n(e):n&&e instanceof Nt})),!!n&&(bn(e)&&wn(e,["zoom","heatmap-density","line-progress","sky-radial-progress","accumulated","is-supported-script","pitch","distance-from-center"]))}function kn(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 zt("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,ft);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[kn(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 On=Tn,Pn=In;function In(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}In.prototype.sampleCurveX=function(e){return((this.ax*e+this.bx)*e+this.cx)*e},In.prototype.sampleCurveY=function(e){return((this.ay*e+this.by)*e+this.cy)*e},In.prototype.sampleCurveDerivativeX=function(e){return(3*this.ax*e+2*this.bx)*e+this.cx},In.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},In.prototype.solve=function(e,t){return this.sampleCurveY(this.solveCurveX(e,t))};var Mn=Ue(Pn);function Ln(e,t,n){return e*(1-n)+t*n}var Rn=Object.freeze({__proto__:null,number:Ln,color:function(e,t,n){return new Qe(Ln(e.r,t.r,n),Ln(e.g,t.g,n),Ln(e.b,t.b,n),Ln(e.a,t.a,n))},array:function(e,t,n){return e.map(((e,r)=>Ln(e,t[r],n)))}});const jn=.95047,Fn=1,Dn=1.08883,Nn=4/29,zn=6/29,Vn=3*zn*zn,Bn=zn*zn*zn,$n=Math.PI/180,Gn=180/Math.PI;function Un(e){return e>Bn?Math.pow(e,1/3):e/Vn+Nn}function Wn(e){return e>zn?e*e*e:Vn*(e-Nn)}function qn(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Hn(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Yn(e){const t=Hn(e.r),n=Hn(e.g),r=Hn(e.b),i=Un((.4124564*t+.3575761*n+.1804375*r)/jn),o=Un((.2126729*t+.7151522*n+.072175*r)/Fn);return{l:116*o-16,a:500*(i-o),b:200*(o-Un((.0193339*t+.119192*n+.9503041*r)/Dn)),alpha:e.a}}function Kn(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=Fn*Wn(t),n=jn*Wn(n),r=Dn*Wn(r),new Qe(qn(3.2404542*n-1.5371385*t-.4985314*r),qn(-.969266*n+1.8760108*t+.041556*r),qn(.0556434*n-.2040259*t+1.0572252*r),e.alpha)}function Xn(e,t,n){const r=t-e;return e+n*(r>180||r<-180?r-360*Math.round(r/360):r)}const Zn={forward:Yn,reverse:Kn,interpolate:function(e,t,n){return{l:Ln(e.l,t.l,n),a:Ln(e.a,t.a,n),b:Ln(e.b,t.b,n),alpha:Ln(e.alpha,t.alpha,n)}}},Jn={forward:function(e){const{l:t,a:n,b:r}=Yn(e),i=Math.atan2(r,n)*Gn;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*$n,n=e.c;return Kn({l:e.l,a:Math.cos(t)*n,b:Math.sin(t)*n,alpha:e.alpha})},interpolate:function(e,t,n){return{h:Xn(e.h,t.h,n),c:Ln(e.c,t.c,n),l:Ln(e.l,t.l,n),alpha:Ln(e.alpha,t.alpha,n)}}};class Qn{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=er(t,e.base,n,r);else if("linear"===e.name)i=er(t,1,n,r);else if("cubic-bezier"===e.name){const o=e.controlPoints;i=new Mn(o[0],o[1],o[2],o[3]).solve(er(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,ft),!i)return null;const a=[];let s=null;"interpolate-hcl"===n||"interpolate-lab"===n?s=yt: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 Qn(s,n,r,i,a):t.error(`Type ${Ct(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=kn(t,r),a=t[o],s=t[o+1],l=Qn.interpolationFactor(this.interpolation,r,a,s),c=n[o].evaluate(e),u=n[o+1].evaluate(e);return"interpolate"===this.operator?Rn[this.type.kind.toLowerCase()](c,u,l):"interpolate-hcl"===this.operator?Jn.reverse(Jn.interpolate(Jn.forward(c),Jn.forward(u),l)):Zn.reverse(Zn.interpolate(Zn.forward(c),Zn.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;e_t(r,e.type)));return new nr(o?bt: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 Mt&&!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 rr=nr;class ir{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 zt(`Array index out of bounds: ${t} > ${n.length-1}.`);if(t!==Math.floor(t))throw new zt(`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 sr=ar;class lr{constructor(e,t){this.type=mt,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,bt),r=t.parse(e[2],2,bt);return n&&r?kt(n.type,[mt,gt,ft,pt,bt])?new lr(n,r):t.error(`Expected first argument to be of type boolean, string, number or null, but found ${Ct(n.type)} instead`):null}evaluate(e){const t=this.needle.evaluate(e),n=this.haystack.evaluate(e);if(null==n)return!1;if(!Tt(t,["boolean","string","number","null"]))throw new zt(`Expected first argument to be of type boolean, string, number or null, but found ${Ct(jt(t))} instead.`);if(!Tt(n,["string","array"]))throw new zt(`Expected second argument to be of type array or string, but found ${Ct(jt(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 cr=lr;class ur{constructor(e,t,n){this.type=ft,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,bt),r=t.parse(e[2],2,bt);if(!n||!r)return null;if(!kt(n.type,[mt,gt,ft,pt,bt]))return t.error(`Expected first argument to be of type boolean, string, number or null, but found ${Ct(n.type)} instead`);if(4===e.length){const i=t.parse(e[3],3,ft);return i?new ur(n,r,i):null}return new ur(n,r)}evaluate(e){const t=this.needle.evaluate(e),n=this.haystack.evaluate(e);if(!Tt(t,["boolean","string","number","null"]))throw new zt(`Expected first argument to be of type boolean, string, number or null, but found ${Ct(jt(t))} instead.`);if(!Tt(n,["string","array"]))throw new zt(`Expected second argument to be of type array or string, but found ${Ct(jt(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 dr=ur;class hr{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,jt(e)))return null}else n=jt(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,bt);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 hr(n,r,a,i,o,s):null}evaluate(e){const t=this.input.evaluate(e);return(jt(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 pr=hr;class fr{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 gr=fr;class mr{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,bt),r=t.parse(e[2],2,ft);if(!n||!r)return null;if(!kt(n.type,[St(bt),gt,bt]))return t.error(`Expected first argument to be of type array or string, but found ${Ct(n.type)} instead`);if(4===e.length){const i=t.parse(e[3],3,ft);return i?new mr(n.type,n,r,i):null}return new mr(n.type,n,r)}evaluate(e){const t=this.input.evaluate(e),n=this.beginIndex.evaluate(e);if(!Tt(t,["string","array"]))throw new zt(`Expected first argument to be of type array or string, but found ${Ct(jt(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 yr=mr;function vr(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 br(e,t,n,r){return 0===r.compare(t,n)}function xr(e,t,n){const r="=="!==e&&"!="!==e;return class i{constructor(e,t,n){this.type=mt,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,bt);if(!o)return null;if(!vr(n,o.type))return t.concat(1).error(`"${n}" comparisons are not supported for type '${Ct(o.type)}'.`);let a=t.parse(e[2],2,bt);if(!a)return null;if(!vr(n,a.type))return t.concat(2).error(`"${n}" comparisons are not supported for type '${Ct(a.type)}'.`);if(o.type.kind!==a.type.kind&&"value"!==o.type.kind&&"value"!==a.type.kind)return t.error(`Cannot compare types '${Ct(o.type)}' and '${Ct(a.type)}'.`);r&&("value"===o.type.kind&&"value"!==a.type.kind?o=new $t(a.type,[o]):"value"!==o.type.kind&&"value"===a.type.kind&&(a=new $t(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,xt),!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=jt(o),n=jt(a);if(t.kind!==n.kind||"string"!==t.kind&&"number"!==t.kind)throw new zt(`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=jt(o),n=jt(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 wr=xr("==",(function(e,t,n){return t===n}),br),Ar=xr("!=",(function(e,t,n){return t!==n}),(function(e,t,n,r){return!br(0,t,n,r)})),Sr=xr("<",(function(e,t,n){return t",(function(e,t,n){return t>n}),(function(e,t,n,r){return r.compare(t,n)>0})),Er=xr("<=",(function(e,t,n){return t<=n}),(function(e,t,n,r){return r.compare(t,n)<=0})),_r=xr(">=",(function(e,t,n){return t>=n}),(function(e,t,n,r){return r.compare(t,n)>=0}));class kr{constructor(e,t,n,r,i,o){this.type=gt,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,ft);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,gt),!i))return null;let o=null;if(r.currency&&(o=t.parse(r.currency,1,gt),!o))return null;let a=null;if(r.unit&&(a=t.parse(r.unit,1,gt),!a))return null;let s=null;if(r["min-fraction-digits"]&&(s=t.parse(r["min-fraction-digits"],1,ft),!s))return null;let l=null;return r["max-fraction-digits"]&&(l=t.parse(r["max-fraction-digits"],1,ft),!l)?null:new kr(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 Tr{constructor(e){this.type=ft,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 ${Ct(n.type)} instead.`):new Tr(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 zt(`Expected value to be of type string or array, but found ${Ct(jt(t))} instead.`)}eachChild(e){e(this.input)}outputDefined(){return!1}serialize(){const e=["length"];return this.eachChild((t=>{e.push(t.serialize())})),e}}const Or={"==":wr,"!=":Ar,">":Cr,"<":Sr,">=":_r,"<=":Er,array:$t,at:sr,boolean:$t,case:gr,coalesce:rr,collator:Jt,format:Gt,image:Ut,in:cr,"index-of":dr,interpolate:tr,"interpolate-hcl":tr,"interpolate-lab":tr,length:Tr,let:or,literal:Nt,match:pr,number:$t,"number-format":kr,object:$t,slice:yr,step:On,string:$t,"to-boolean":Ht,"to-color":Ht,"to-number":Ht,"to-string":Ht,var:Sn,within:vn};function Pr(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=Lt(t,n,r,o);if(a)throw new zt(a);return new Qe(t/255*o,n/255*o,r/255*o,o)}function Ir(e,t){return e in t}function Mr(e,t){const n=t[e];return void 0===n?null:n}function Lr(e){return{type:e}}Zt.register(Or,{error:[{kind:"error"},[gt],(e,[t])=>{throw new zt(t.evaluate(e))}],typeof:[gt,[bt],(e,[t])=>Ct(jt(t.evaluate(e)))],"to-rgba":[St(ft,4),[yt],(e,[t])=>t.evaluate(e).toArray()],rgb:[yt,[ft,ft,ft],Pr],rgba:[yt,[ft,ft,ft,ft],Pr],has:{type:mt,overloads:[[[gt],(e,[t])=>Ir(t.evaluate(e),e.properties())],[[gt,vt],(e,[t,n])=>Ir(t.evaluate(e),n.evaluate(e))]]},get:{type:bt,overloads:[[[gt],(e,[t])=>Mr(t.evaluate(e),e.properties())],[[gt,vt],(e,[t,n])=>Mr(t.evaluate(e),n.evaluate(e))]]},"feature-state":[bt,[gt],(e,[t])=>Mr(t.evaluate(e),e.featureState||{})],properties:[vt,[],e=>e.properties()],"geometry-type":[gt,[],e=>e.geometryType()],id:[bt,[],e=>e.id()],zoom:[ft,[],e=>e.globals.zoom],pitch:[ft,[],e=>e.globals.pitch||0],"distance-from-center":[ft,[],e=>e.distanceFromCenter()],"heatmap-density":[ft,[],e=>e.globals.heatmapDensity||0],"line-progress":[ft,[],e=>e.globals.lineProgress||0],"sky-radial-progress":[ft,[],e=>e.globals.skyRadialProgress||0],accumulated:[bt,[],e=>void 0===e.globals.accumulated?null:e.globals.accumulated],"+":[ft,Lr(ft),(e,t)=>{let n=0;for(const r of t)n+=r.evaluate(e);return n}],"*":[ft,Lr(ft),(e,t)=>{let n=1;for(const r of t)n*=r.evaluate(e);return n}],"-":{type:ft,overloads:[[[ft,ft],(e,[t,n])=>t.evaluate(e)-n.evaluate(e)],[[ft],(e,[t])=>-t.evaluate(e)]]},"/":[ft,[ft,ft],(e,[t,n])=>t.evaluate(e)/n.evaluate(e)],"%":[ft,[ft,ft],(e,[t,n])=>t.evaluate(e)%n.evaluate(e)],ln2:[ft,[],()=>Math.LN2],pi:[ft,[],()=>Math.PI],e:[ft,[],()=>Math.E],"^":[ft,[ft,ft],(e,[t,n])=>Math.pow(t.evaluate(e),n.evaluate(e))],sqrt:[ft,[ft],(e,[t])=>Math.sqrt(t.evaluate(e))],log10:[ft,[ft],(e,[t])=>Math.log(t.evaluate(e))/Math.LN10],ln:[ft,[ft],(e,[t])=>Math.log(t.evaluate(e))],log2:[ft,[ft],(e,[t])=>Math.log(t.evaluate(e))/Math.LN2],sin:[ft,[ft],(e,[t])=>Math.sin(t.evaluate(e))],cos:[ft,[ft],(e,[t])=>Math.cos(t.evaluate(e))],tan:[ft,[ft],(e,[t])=>Math.tan(t.evaluate(e))],asin:[ft,[ft],(e,[t])=>Math.asin(t.evaluate(e))],acos:[ft,[ft],(e,[t])=>Math.acos(t.evaluate(e))],atan:[ft,[ft],(e,[t])=>Math.atan(t.evaluate(e))],min:[ft,Lr(ft),(e,t)=>Math.min(...t.map((t=>t.evaluate(e))))],max:[ft,Lr(ft),(e,t)=>Math.max(...t.map((t=>t.evaluate(e))))],abs:[ft,[ft],(e,[t])=>Math.abs(t.evaluate(e))],round:[ft,[ft],(e,[t])=>{const n=t.evaluate(e);return n<0?-Math.round(-n):Math.round(n)}],floor:[ft,[ft],(e,[t])=>Math.floor(t.evaluate(e))],ceil:[ft,[ft],(e,[t])=>Math.ceil(t.evaluate(e))],"filter-==":[mt,[gt,bt],(e,[t,n])=>e.properties()[t.value]===n.value],"filter-id-==":[mt,[bt],(e,[t])=>e.id()===t.value],"filter-type-==":[mt,[gt],(e,[t])=>e.geometryType()===t.value],"filter-<":[mt,[gt,bt],(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":[mt,[gt,bt],(e,[t,n])=>{const r=e.properties()[t.value],i=n.value;return typeof r==typeof i&&r>i}],"filter-id->":[mt,[bt],(e,[t])=>{const n=e.id(),r=t.value;return typeof n==typeof r&&n>r}],"filter-<=":[mt,[gt,bt],(e,[t,n])=>{const r=e.properties()[t.value],i=n.value;return typeof r==typeof i&&r<=i}],"filter-id-<=":[mt,[bt],(e,[t])=>{const n=e.id(),r=t.value;return typeof n==typeof r&&n<=r}],"filter->=":[mt,[gt,bt],(e,[t,n])=>{const r=e.properties()[t.value],i=n.value;return typeof r==typeof i&&r>=i}],"filter-id->=":[mt,[bt],(e,[t])=>{const n=e.id(),r=t.value;return typeof n==typeof r&&n>=r}],"filter-has":[mt,[bt],(e,[t])=>t.value in e.properties()],"filter-has-id":[mt,[],e=>null!==e.id()&&void 0!==e.id()],"filter-type-in":[mt,[St(gt)],(e,[t])=>t.value.indexOf(e.geometryType())>=0],"filter-id-in":[mt,[St(bt)],(e,[t])=>t.value.indexOf(e.id())>=0],"filter-in-small":[mt,[gt,St(bt)],(e,[t,n])=>n.value.indexOf(e.properties()[t.value])>=0],"filter-in-large":[mt,[gt,St(bt)],(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:mt,overloads:[[[mt,mt],(e,[t,n])=>t.evaluate(e)&&n.evaluate(e)],[Lr(mt),(e,t)=>{for(const n of t)if(!n.evaluate(e))return!1;return!0}]]},any:{type:mt,overloads:[[[mt,mt],(e,[t,n])=>t.evaluate(e)||n.evaluate(e)],[Lr(mt),(e,t)=>{for(const n of t)if(n.evaluate(e))return!0;return!1}]]},"!":[mt,[mt],(e,[t])=>!t.evaluate(e)],"is-supported-script":[mt,[gt],(e,[t])=>{const n=e.globals&&e.globals.isSupportedScript;return!n||n(t.evaluate(e))}],upcase:[gt,[gt],(e,[t])=>t.evaluate(e).toUpperCase()],downcase:[gt,[gt],(e,[t])=>t.evaluate(e).toLowerCase()],concat:[gt,Lr(bt),(e,t)=>t.map((t=>Ft(t.evaluate(e)))).join("")],"resolved-locale":[gt,[xt],(e,[t])=>t.evaluate(e).resolvedLocale()]});var Rr=Or;function jr(e){return{result:"success",value:e}}function Fr(e){return{result:"error",value:e}}function Dr(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}class Nr{constructor(e,t){this.expression=e,this._warningHistory={},this._evaluator=new Kt,this._defaultValue=t?function(e){return"color"===e.type&&(Dr(e.default)||Array.isArray(e.default))?new Qe(0,0,0,0):"color"===e.type?Qe.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 zt(`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 zr(e,t){const n=new En(Rr,[],t?function(e){const t={color:yt,string:gt,number:ft,enum:gt,boolean:mt,formatted:wt,resolvedImage:At};if("array"===e.type)return St(t[e.value]||bt,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?jr(new Nr(r,t)):Fr(n.errors)}class Vr{constructor(e,t){this.kind=e,this._styleExpression=t,this.isStateDependent="constant"!==e&&!xn(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 Br{constructor(e,t,n,r){this.kind=e,this.zoomStops=n,this._styleExpression=t,this.isStateDependent="camera"!==e&&!xn(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?tr.interpolationFactor(this.interpolationType,e,t,n):0}}function $r(e,t){if("error"===(e=zr(e,t)).result)return e;const n=e.value.expression,r=bn(n);if(!r&&!function(e){return"data-driven"===e["property-type"]}(t))return Fr([new ut("","data expressions not supported")]);const i=wn(n,["zoom","pitch","distance-from-center"]);if(!i&&!function(e){return!!e.expression&&e.expression.parameters.indexOf("zoom")>-1}(t))return Fr([new ut("","zoom expressions not supported")]);const o=Gr(n);if(!o&&!i)return Fr([new ut("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(o instanceof ut)return Fr([o]);if(o instanceof tr&&!function(e){return!!e.expression&&e.expression.interpolated}(t))return Fr([new ut("",'"interpolate" expressions cannot be used with this property')]);if(!o)return jr(new Vr(r?"constant":"source",e.value));const a=o instanceof tr?o.interpolation:void 0;return jr(new Br(r?"camera":"composite",e.value,o.labels,a))}function Gr(e){let t=null;if(e instanceof or)t=Gr(e.result);else if(e instanceof rr){for(const n of e.args)if(t=Gr(n),t)break}else(e instanceof On||e instanceof tr)&&e.input instanceof Zt&&"zoom"===e.input.name&&(t=e);return t instanceof ut||e.eachChild((e=>{const n=Gr(e);n instanceof ut?t=n:!t&&n?t=new ut("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):t&&n&&t!==n&&(t=new ut("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))})),t}function Ur(e){if(Array.isArray(e))return e.map(Ur);if(e instanceof Object&&!(e instanceof Number||e instanceof String||e instanceof Boolean)){const t={};for(const n in e)t[n]=Ur(e[n]);return t}return function(e){return e instanceof Number||e instanceof String||e instanceof Boolean?e.valueOf():e}(e)}var Wr={$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 qr(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(!qr(t)&&"boolean"!=typeof t)return!1;return!0;default:return!0}}function Hr(e,t="fill"){if(null==e)return{filter:()=>!0,needGeometry:!1,needFeature:!1};qr(e)||(e=ei(e));const n=e;let r=!0;try{r=function(e){if(!Xr(e))return e;let t=Ur(e);return Kr(t),t=Yr(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=Wr[`filter_${t}`],o=zr(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=zr(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=!bn(e.value.expression)}return{filter:a,dynamicFilter:s||void 0,needGeometry:Qr(r),needFeature:!!l}}function Yr(e){if(!Array.isArray(e))return e;const t=function(e){if(Zr.has(e[0]))for(let t=1;tYr(e)))}function Kr(e){let t=!1;const n=[];if("case"===e[0]){for(let r=1;r",">=","<","<=","to-boolean"]);function Jr(e,t){return et?1:0}function Qr(e){if(!Array.isArray(e))return!1;if("within"===e[0])return!0;for(let t=1;t"===t||"<="===t||">="===t?ti(e[1],e[2],t):"any"===t?(n=e.slice(1),["any"].concat(n.map(ei))):"all"===t?["all"].concat(e.slice(1).map(ei)):"none"===t?["all"].concat(e.slice(1).map(ei).map(ii)):"in"===t?ni(e[1],e.slice(2)):"!in"===t?ii(ni(e[1],e.slice(2))):"has"===t?ri(e[1]):"!has"===t?ii(ri(e[1])):"within"!==t||e}function ti(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 ni(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(Jr)]]:["filter-in-small",e,["literal",t]]}}function ri(e){switch(e){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",e]}}function ii(e){return["!",e]}var oi=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function ai(e,t){const n={};for(const t in e)"ref"!==t&&(n[t]=e[t]);return oi.forEach((e=>{e in t&&(n[e]=t[e])})),n}function si(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:li[p],d.pop(),f&&p.startsWith(f)&&d.pop();break}}i||"number"!=typeof h||(a=h,i=!0);var g=d.join(ci).replace("Klokantech Noto Sans","Noto Sans");-1!==g.indexOf(ci)&&(g='"'+g+'"'),l.push(g)}r=di[e]=[s,a,l]}return r[0]+ci+r[1]+ci+t+"px"+(n?"/"+n:"")+ci+r[2]},pi=Ue(hi);const fi="https://api.mapbox.com";function gi(e){const t="mapbox://";return 0!==e.indexOf(t)?"":e.slice(9)}function mi(e,t){const n=gi(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`${fi}/styles/v1/${i}?&access_token=${t}`}function yi(e,t,n,r){const i=new URL(e,r),o=gi(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 vi={},bi={};let xi=0;function wi(e){return e.id||(e.id=xi++),e.id}function Ai(e,t){return wi(e)+"."+(0,C.v6)(t)}function Si(e){let t=vi[e.id];return t||(t={},vi[wi(e)]=t),t}function Ci(e){let t=bi[e.id];return t||(t={},bi[wi(e)]=t),t}function Ei(e){return e*Math.PI/180}const _i=function(){const e=[];for(let t=78271.51696402048;e.length<=24;t/=2)e.push(t);return e}();function ki(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 Pi[t],e.ok?e.json():Promise.reject(new Error("Error fetching source "+t))})).catch((function(e){return delete Pi[t],Promise.reject(new Error("Error fetching source "+t))})))));return Pi[t]=[i,o],o}function Mi(e,t){if("string"!=typeof e)return Promise.resolve(e);if(!e.trim().startsWith("{"))return Ii("Style",e=mi(e,t.accessToken),t);try{const t=JSON.parse(e);return Promise.resolve(t)}catch(e){return Promise.reject(e)}}const Li={};function Ri(e,t,n={}){const r=[t,JSON.stringify(e)].toString();let i=Li[r];if(!i||n.transformRequest){let o;n.transformRequest&&(o=(e,t)=>{const r=n.transformRequest&&n.transformRequest(t,"Tiles")||t;if(e instanceof b)e.setLoader(((t,n,i)=>{(0,W.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(y.A.ERROR)))}))}));else{const t=e.getImage();(0,W.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(y.A.ERROR))):t.src=n}))}});const a=e.url;if(a&&!e.tiles){const r=yi(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,H.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}")),yi(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}")),yi(r,n.accessToken,n.accessTokenParam||"access_token",t||location.href)}))}),i=Promise.resolve({tileJson:Object.assign({},e),tileLoadFunction:o});Li[r]=i}return i}function ji(e,t,n,r){const i=[2*n*t.pixelRatio+t.width,2*n*t.pixelRatio+t.height],o=ki(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 Fi(e,t,n){const r=Math.max(0,Math.min(1,(n-e)/(t-e)));return r*r*(3-2*r)}function Di(e,t,n){const r=ki(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 Ni=Array(256).join(" ");function zi(e,t){if(t>=.05){let n="";const r=e.split("\n"),i=Ni.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 Vi;function Bi(){return Vi||(Vi=ki(1,1).getContext("2d")),Vi}function $i(e,t){return Bi().measureText(e).width+(e.length-1)*t}const Gi={};function Ui(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=Bi();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($i(n,r)<.35*i){const i=e>0?$i(l[e-1],r):1/0,o=e.7*i&&$i(o,r)<.6*i){const a=n.split(" "),s=a.pop();$i(s,r)<.2*i&&(l[e]=a.join(" "),l[e+1]=s+" "+o),t-=1}}o=l.join("\n")}else o=e;o=zi(o,r),Gi[i]=o}return o}const Wi=/font-family: ?([^;]*);/,qi=/("|')/g;let Hi;function Yi(e){if(!Hi){Hi={};const e=document.styleSheets;for(let t=0,n=e.length;t`${e.key}: ${e.message}`)).join(", "));return n.value},Qi={},eo={zoom:0};let to,no;function ro(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]||Qi)[n];const i=Wr[`${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 Rr);if(!o&&Dr(r)&&(r=tt(r,i),o=!0),o){const e=Ji(r,i);l[n]=e.evaluate.bind(e)}else"color"==i.type&&(r=Qe.parse(r)),l[n]=function(){return r}}var c;return eo.zoom=r,l[n](eo,i,a)}function io(e,t,n,r,i){if(!ro(e,"layout",`${r}-allow-overlap`,t,n,i))return"declutter";return ro(e,"layout",`${r}-ignore-placement`,t,n,i)?"none":"obstacle"}function oo(e,t,n,r,i){return i||console.warn("No filterCache provided to evaluateFilter()"),e in i||(i[e]=Hr(t).filter),eo.zoom=r,i[e](eo,n)}let ao=!1;function so(e,t){if(e){if(!ao&&(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 lo=/\{[^{}}]*\}/g;function co(e,t){return e.replace(lo,(function(e){return t[e.slice(1,-1)]||""}))}let uo=!1;const ho={};function po(e,t,n,r=_i,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(ho[Ai(t,e)]=Array.from(arguments),o)if("undefined"!=typeof Image){const t=new Image;let n;(0,W.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=si(t.layers),h={},p=[],f={},g={},m=Si(t),y=Ci(t);let v;for(let e=0,r=d.length;e=T.maxzoom)continue;const M=T.filter;if(!M||oo(O,M,C,A,y)){let r,d,y,v,O,M;_=T;const L=h.index;if(3==S&&("fill"==T.type||"fill-extrusion"==T.type))if(d=ro(T,"paint",T.type+"-opacity",A,C,m,E),T.type+"-pattern"in I){const e=ro(T,"paint",T.type+"-pattern",A,C,m,E);if(e){const t="string"==typeof e?co(e,p):e.toString();if(l&&i&&i[t]){++k,M=w[k],M&&M.getFill()&&!M.getStroke()&&!M.getText()||(M=new G.Ay({fill:new z.A}),w[k]=M),y=M.getFill(),M.setZIndex(L);const e=t+"."+d;let n=g[e];if(!n){const r=i[t],o=ki(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}y.setColor(n)}}}else r=so(ro(T,"paint",T.type+"-color",A,C,m,E),d),T.type+"-outline-color"in I&&(O=so(ro(T,"paint",T.type+"-outline-color",A,C,m,E),d)),O||(O=r),(r||O)&&(++k,M=w[k],(!M||r&&!M.getFill()||!r&&M.getFill()||O&&!M.getStroke()||!O&&M.getStroke()||M.getText())&&(M=new G.Ay({fill:r?new z.A:void 0,stroke:O?new $.A:void 0}),w[k]=M),r&&(y=M.getFill(),y.setColor(r)),O&&(v=M.getStroke(),v.setColor(O),v.setWidth(.5)),M.setZIndex(L));if(1!=S&&"line"==T.type){r="line-pattern"in I?void 0:so(ro(T,"paint","line-color",A,C,m,E),ro(T,"paint","line-opacity",A,C,m,E));const e=ro(T,"paint","line-width",A,C,m,E);r&&e>0&&(++k,M=w[k],M&&M.getStroke()&&!M.getFill()&&!M.getText()||(M=new G.Ay({stroke:new $.A}),w[k]=M),v=M.getStroke(),v.setLineCap(ro(T,"layout","line-cap",A,C,m,E)),v.setLineJoin(ro(T,"layout","line-join",A,C,m,E)),v.setMiterLimit(ro(T,"layout","line-miter-limit",A,C,m,E)),v.setColor(r),v.setWidth(e),v.setLineDash(I["line-dasharray"]?ro(T,"paint","line-dasharray",A,C,m,E).map((function(t){return t*e})):null),M.setZIndex(L))}let R,j,F,D,W,q,H,Y,K,X=!1,Z=null,J=0;if((1==S||2==S)&&"icon-image"in P){const t=ro(T,"layout","icon-image",A,C,m,E);if(t){let r;R="string"==typeof t?co(t,p):t.toString();const a=s?s(e,R):void 0;if(l&&i&&i[R]||a){const e=ro(T,"layout","icon-rotation-alignment",A,C,m,E);if(2==S){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();no||(to=[NaN,NaN],no=new B.Ay("Point",to,[],2,{},void 0)),r=no,to[0]=n[0],to[1]=n[1];if("line"===ro(T,"layout","symbol-placement",A,C,m,E)&&"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!==S||r){const t=ro(T,"layout","icon-size",A,C,m,E),n=void 0!==I["icon-color"]?ro(T,"paint","icon-color",A,C,m,E):null;if(!n||0!==n.a){const r=ro(T,"paint","icon-halo-color",A,C,m,E),o=ro(T,"paint","icon-halo-width",A,C,m,E);let s=`${R}.${t}.${o}.${r}`;if(null!==n&&(s+=`.${n}`),j=f[s],!j){const d=io(T,A,C,"icon",m);let h;"icon-offset"in P&&(h=ro(T,"layout","icon-offset",A,C,m,E).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]),j=new V.A(n)}else{const a=i[R];let s,f,g;o?a.sdf?(s=ji(Di(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=ji(l,a,o,r):(a.sdf?(u||(u=Di(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]),j=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]=j}}j&&(++k,M=w[k],M&&M.getImage()&&!M.getFill()&&!M.getStroke()||(M=new G.Ay,w[k]=M),M.setGeometry(r),j.setRotation(J+Ei(ro(T,"layout","icon-rotate",A,C,m,E))),j.setOpacity(ro(T,"paint","icon-opacity",A,C,m,E)),j.setAnchor(Zi[ro(T,"layout","icon-anchor",A,C,m,E)]),M.setImage(j),Z=M.getText(),M.setText(void 0),M.setZIndex(L),X=!0,F=!1)}else F=!0}}}if(1==S&&"circle"===T.type){++k,M=w[k],M&&M.getImage()&&!M.getFill()&&!M.getStroke()||(M=new G.Ay,w[k]=M);const e="circle-radius"in I?ro(T,"paint","circle-radius",A,C,m,E):5,t=so(ro(T,"paint","circle-stroke-color",A,C,m,E),ro(T,"paint","circle-stroke-opacity",A,C,m,E)),n=ro(T,"paint","circle-translate",A,C,m,E),r=so(ro(T,"paint","circle-color",A,C,m,E),ro(T,"paint","circle-opacity",A,C,m,E)),i=ro(T,"paint","circle-stroke-width",A,C,m,E),o=e+"."+t+"."+r+"."+i+"."+n[0]+"."+n[1];j=f[o],j||(j=new N.A({radius:e,displacement:[n[0],-n[1]],stroke:t&&i>0?new $.A({width:i,color:t}):void 0,fill:r?new z.A({color:r}):void 0,declutterMode:"none"}),f[o]=j),M.setImage(j),Z=M.getText(),M.setText(void 0),M.setGeometry(void 0),M.setZIndex(L),X=!0}if("text-field"in P){H=Math.round(ro(T,"layout","text-size",A,C,m,E));const e=ro(T,"layout","text-font",A,C,m,E);q=ro(T,"layout","text-line-height",A,C,m,E),W=pi(a?a(e,t.metadata?t.metadata["ol:webfonts"]:void 0):e,H,q),W.includes("sans-serif")||(W+=",sans-serif"),Y=ro(T,"layout","text-letter-spacing",A,C,m,E),K=ro(T,"layout","text-max-width",A,C,m,E);const n=ro(T,"layout","text-field",A,C,m,E);D="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=pi(a?a(i):i,H*(n.scale||1),q);let s=n.text;if("\n"===s)return t.push("\n",""),t;if(2!=S){s=Ui(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(zi(s,Y),o)}),[]):co(n,p).trim(),d=ro(T,"paint","text-opacity",A,C,m,E)}if(D&&d&&!F){X||(++k,M=w[k],M&&M.getText()&&!M.getFill()&&!M.getStroke()||(M=new G.Ay,w[k]=M),M.setImage(void 0),M.setGeometry(void 0));const e=io(T,A,C,"text",m);M.getText()||M.setText(Z),Z=M.getText(),(!Z||"getDeclutterMode"in Z&&Z.getDeclutterMode()!==e)&&(Z=new U.A({padding:[2,2,2,2],declutterMode:e}),M.setText(Z));const t=ro(T,"layout","text-transform",A,C,m,E);"uppercase"==t?D=Array.isArray(D)?D.map(((e,t)=>t%2?e:e.toUpperCase())):D.toUpperCase():"lowercase"==t&&(D=Array.isArray(D)?D.map(((e,t)=>t%2?e:e.toLowerCase())):D.toLowerCase());const n=Array.isArray(D)?D:2==S?zi(D,Y):Ui(D,W,K,Y);Z.setText(n),Z.setFont(W),Z.setRotation(Ei(ro(T,"layout","text-rotate",A,C,m,E)));const r=ro(T,"layout","text-anchor",A,C,m,E),i=X||1==S?"point":ro(T,"layout","symbol-placement",A,C,m,E);let o;if("line-center"===i?(Z.setPlacement("line"),o="center"):Z.setPlacement(i),"line"===i&&"function"==typeof Z.setRepeat){const e=ro(T,"layout","symbol-spacing",A,C,m,E);Z.setRepeat(2*e)}Z.setOverflow("point"===i);let a=ro(T,"paint","text-halo-width",A,C,m,E);const s=ro(T,"layout","text-offset",A,C,m,E),l=ro(T,"paint","text-translate",A,C,m,E);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=ro(T,"layout","text-rotation-alignment",A,C,m,E);Z.setRotateWithView("map"==e)}else Z.setMaxAngle(Ei(ro(T,"layout","text-max-angle",A,C,m,E))*D.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=ro(T,"layout","text-justify",A,C,m,E);Z.setJustify("auto"===p?void 0:p),Z.setOffsetX(s[0]*H+u+l[0]),Z.setOffsetY(s[1]*H+c+l[1]),x.setColor(so(ro(T,"paint","text-color",A,C,m,E),d)),Z.setFill(x);const f=so(ro(T,"paint","text-halo-color",A,C,m,E),d);if(f&&a>0){b.setColor(f),a*=2;const e=.5*H;b.setWidth(a<=e?a:e),Z.setStroke(b)}else Z.setStroke(void 0);const g=ro(T,"layout","text-padding",A,C,m,E),y=Z.getPadding();g!==y[0]&&(y[0]=g,y[1]=g,y[2]=g,y[3]=g),M.setZIndex(L)}}}return k>-1?(w.length=k+1,uo&&("set"in n?n.set("mapbox-layer",_):n.getProperties()["mapbox-layer"]=_),w):void 0};return e.setStyle(A),e.set("mapbox-source",v),e.set("mapbox-layers",p),e.set("mapbox-featurestate",e.get("mapbox-featurestate")||{}),A}function fo(e,t){const n=e[0],r=n.width,i=n.height,o=n.data,a=new Uint8ClampedArray(o.length),s=2*t.resolution,l=r-1,c=i-1,u=[0,0,0,0],d=2*Math.PI,h=Math.PI/2,p=Math.PI*t.sunEl/180,f=Math.PI*t.sunAz/180,g=Math.cos(p),m=Math.sin(p),y=t.highlightColor,v=t.shadowColor,b=t.accentColor,x=t.encoding;let w,A,S,C,E,_,k,T,O,P,I,M,L,R,j,F,D,N,z,V,B,$;function G(e,t="mapbox"){return"mapbox"===t?.1*(256*e[0]*256+256*e[1]+e[2])-1e4:"terrarium"===t?256*e[0]+e[1]+e[2]/256-32768:void 0}for(A=0;A<=c;++A)for(E=0===A?0:A-1,_=A===c?c:A+1,w=0;w<=l;++w)S=0===w?0:w-1,C=w===l?l:w+1,k=4*(A*r+S),u[0]=o[k],u[1]=o[k+1],u[2]=o[k+2],u[3]=o[k+3],T=t.vert*G(u,x),k=4*(A*r+C),u[0]=o[k],u[1]=o[k+1],u[2]=o[k+2],u[3]=o[k+3],O=t.vert*G(u,x),P=(O-T)/s,k=4*(E*r+w),u[0]=o[k],u[1]=o[k+1],u[2]=o[k+2],u[3]=o[k+3],T=t.vert*G(u,x),k=4*(_*r+w),u[0]=o[k],u[1]=o[k+1],u[2]=o[k+2],u[3]=o[k+3],O=t.vert*G(u,x),I=(O-T)/s,L=Math.atan2(I,-P),L=L<0?h-L:L>h?d-L+h:h-L,M=Math.atan(Math.sqrt(P*P+I*I)),$=m*Math.cos(M)+g*Math.sin(M)*Math.cos(f-L),R=Math.cos(M),j=255*$,z=Math.min(Math.max(2*t.sunEl,0),1),V=1.875-1.75*t.opacity,B=.5!==t.opacity?h*((Math.pow(V,M)-1)/(Math.pow(V,h)-1)):M,D={r:(1-R)*b.r*z*255,g:(1-R)*b.g*z*255,b:(1-R)*b.b*z*255,a:(1-R)*b.a*z*255},F=Math.abs(((L+f)/Math.PI+.5)%2-1),N={r:(y.r*(1-F)+v.r*F)*j,g:(y.g*(1-F)+v.g*F)*j,b:(y.b*(1-F)+v.b*F)*j,a:(y.a*(1-F)+v.a*F)*j},k=4*(A*r+w),a[k]=D.r*(1-F)+N.r,a[k+1]=D.g*(1-F)+N.g,a[k+2]=D.b*(1-F)+N.b,a[k+3]=o[k+3]*t.opacity*z*Math.sin(B);return new ImageData(a,r,i)}function go(e,t=512){return e.getExtent()?(0,P.EN)({extent:e.getExtent(),tileSize:t,maxZoom:22}).getResolutions():_i}function mo(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 yo(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:mi(o,s.accessToken),s=mo(o,s)),new Promise((function(n,r){Mi(t,s).then((function(t){if(8!=t.version)return r(new Error("glStyle version 8 required."));if(!(e instanceof Ve.A||e instanceof f.A))return r(new Error("Can only apply to VectorLayer or VectorTileLayer"));const u=e instanceof f.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 f.A)return So(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()===D&&n.setTileLoadFunction(t.getTileLoadFunction()),(0,ae.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(Oi(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=ko(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,p,g,m;function y(){if(m||t.sprite&&!p)m?(e.setStyle(m),d().then(n).catch(r)):r(new Error("Something went wrong trying to apply style."));else{if(s.projection&&!i){const e=(0,ae.Jt)(s.projection).getUnits();"m"!==e&&(i=_i.map((t=>t/$e.I[e])))}m=po(e,t,l,i,p,g,((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 Ki)return Ki[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.")),p=t,g=e.origin+e.pathname+n+".png"+e.search,s.transformRequest){const e=s.transformRequest(g,"SpriteImage")||g;(e instanceof Request||e instanceof Promise)&&(g=e)}y()})).catch((function(e){r(new Error(`Sprites cannot be loaded: ${i}: ${e.message}`))}))}else y()})).catch(r)}))}const vo={};function bo(e,t){let n;return e.some((function(e){if(e.id==t)return n=e.source,!0})),n}function xo(e,t,n){const r=new ze({tileJSON:t,tileSize:e.tileSize||t.tileSize||512}),i=r.getTileJSON(),o=r.getTileGrid(),a=(0,ae.Jt)(n.projection||"EPSG:3857"),s=function(e,t){const n=e.bounds;if(n){const e=(0,ae.Rb)([n[0],n[1]],t),r=(0,ae.Rb)([n[2],n[3]],t);return[e[0],e[1],r[0],r[1]]}return(0,ae.Jt)(t).getExtent()}(i,a),l=a.getExtent(),c=i.minzoom||0,u=i.maxzoom||22,d={attributions:r.getAttributions(),projection:a,tileGrid:new w.A({origin:l?(0,O.getTopLeft)(l):o.getOrigin(0),extent:s||o.getExtent(),minZoom:c,resolutions:go(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 wo(e,t,n,r){const i={id:e.id,type:e.type},o=e.layout||{},a=e.paint||{};i.paint=a;const s=Ti(t,n.resolutions||_i);let l;const c=ro(i,"paint","background-color",s,vo,r);return void 0!==a["background-opacity"]&&(l=ro(i,"paint","background-opacity",s,vo,r)),"none"==o.visibility?void 0:so(c,l)}function Ao(e,t,n){const r=document.createElement("div");return r.className="ol-mapbox-style-background",r.style.position="absolute",r.style.width="100%",r.style.height="100%",new X.A({source:new be.A({}),render(i){const o=wo(e,i.viewState.resolution,t,n);return r.style.backgroundColor=o,r}})}function So(e,t,n){return new Promise((function(r,i){Ri(e,t,n).then((function({tileJson:t,tileLoadFunction:i}){const o=xo(e,t,n);o.tileLoadFunction=i,o.format=new pe,r(new F(o))})).catch(i)}))}function Co(e){return`{bbox-${(e?e.getCode():"EPSG:3857").toLowerCase().replace(/[^a-z0-9]/g,"-")}}`}function Eo(e,t,n){return new Promise((function(r,i){Ri(e,t,n).then((function({tileJson:t,tileLoadFunction:i}){const o=new ze({interpolate:void 0===n.interpolate||n.interpolate,transition:0,crossOrigin:"anonymous",tileJSON:t});o.tileGrid=xo(e,t,n).tileGrid,n.projection&&(o.projection=(0,ae.Jt)(n.projection));const a=o.getTileUrlFunction();i&&o.setTileLoadFunction(i),o.setTileUrlFunction((function(e,t,n){const r=Co(n);let i=a(e,t,n);if(-1!=i.indexOf(r)){const t=o.getTileGrid().getTileCoordExtent(e);i=i.replace(r,t.toString())}return i})),o.set("mapbox-source",e),r(o)})).catch((function(e){i(e)}))}))}function _o(e,t,n){const r=new xe.A;return Eo(e,t,n).then((function(e){r.setSource(e)})).catch((function(){r.setSource(void 0)})),r}function ko(e,t,n){const r=n.projection?new Y.A({dataProjection:n.projection}):new Y.A,i=e.data,o={};if("string"==typeof i){const o=yi(i,n.accessToken,n.accessTokenParam||"access_token",t||location.href);if(/\{bbox-[0-9a-z-]+\}/.test(o)){const t=(e,t,n)=>{const r=Co(n);return o.replace(r,`${e.join(",")}`)},i=new Be.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:Ge.Qk});return i.set("mapbox-source",e),i}const a=new Be.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,ae.Tf)()||"EPSG:3857"});const a=new Be.A(Object.assign({attributions:e.attribution,format:r},o));return a.set("mapbox-source",e),a}function To(e,t,n){let r=null;return function(i){e.paint&&"raster-opacity"in e.paint&&i.frameState.viewState.zoom!==r&&(r=i.frameState.viewState.zoom,delete n[e.id],function(e,t,n,r){const i=ro(e,"paint","raster-opacity",n,vo,r);t.setOpacity(i)}(e,t,r,n))}}function Oo(e,t,n,r){const i=Si(e),o=e.layers,a=n.type,s=n.source||bo(o,n.ref),l=e.sources[s];let c;if("background"==a)c=Ao(n,r,i);else if("vector"==l.type)c=function(e,t,n){const r=new f.A({declutter:!0,visible:!1});return So(e,t,n).then((function(t){t.set("mapbox-source",e),r.setSource(t)})).catch((function(e){r.setSource(void 0)})),r}(l,t,r);else if("raster"==l.type)c=_o(l,t,r),c.setVisible(!n.layout||"none"!==n.layout.visibility),c.on("prerender",To(n,c,i));else if("geojson"==l.type)c=function(e,t,n){return new Ve.A({declutter:!0,source:ko(e,t,n),visible:!1})}(l,t,r);else if("raster-dem"==l.type&&"hillshade"==n.type){const e=function(e,t,n){const r=_o(e,t,n);return new K.A({source:new Fe({operationType:"image",operation:fo,sources:[r]})})}(l,t,r);c=e,e.getSource().on("beforeoperations",(function(e){const t=e.data;t.resolution=(0,ae.hO)(r.projection||"EPSG:3857",e.resolution,(0,O.getCenter)(e.extent),"m");const o=Ti(e.resolution,r.resolutions||_i);t.encoding=l.encoding,t.vert=5*ro(n,"paint","hillshade-exaggeration",o,vo,i),t.sunAz=ro(n,"paint","hillshade-illumination-direction",o,vo,i),t.sunEl=35,t.opacity=.3,t.highlightColor=ro(n,"paint","hillshade-highlight-color",o,vo,i),t.shadowColor=ro(n,"paint","hillshade-shadow-color",o,vo,i),t.accentColor=ro(n,"paint","hillshade-accent-color",o,vo,i)})),c.setVisible(!n.layout||"none"!==n.layout.visibility)}const u=s;return c&&c.set("mapbox-source",u),c}function Po(e,t,n,r){const i=[];let o=null;if(t instanceof fe.A){if(o=t.getView(),!o.isDef()&&!o.getRotation()&&!o.getResolutions()){const e=r.projection?(0,ae.Jt)(r.projection):o.getProjection();o=new p.Ay(Object.assign(o.getProperties(),{maxResolution:_i[0]/$e.I[e.getUnits()],projection:r.projection||o.getProjection()})),t.setView(o)}"center"in e&&!o.getCenter()&&o.setCenter((0,ae.Rb)(e.center,o.getProjection())),"zoom"in e&&void 0===o.getZoom()&&o.setResolution(_i[0]/$e.I[o.getProjection().getUnits()]/Math.pow(2,e.zoom)),o.getCenter()&&void 0!==o.getZoom()||o.fit(o.getProjection().getExtent(),{nearest:!0,size:t.getSize()})}t.set("mapbox-style",e),t.set("mapbox-metadata",{styleUrl:n,options:r});const a=e.layers;let s,l,c,u=[];for(let o=0,d=a.length;o0||n>0)&&e.setMaxResolution(Math.min(Oi(Math.max(0,a-1e-12),_i),Oi(Math.max(0,n-1e-12),t.getResolutions()))),s<24&&e.setMinResolution(Oi(s,_i))}}else a>0&&e.setMaxResolution(Oi(Math.max(0,a-1e-12),_i));u instanceof Be.A||u instanceof F?yo(e,n,t,Object.assign({styleUrl:r},o)).then((function(){!function(e,t){function n(){const n=t.get("mapbox-style");if(!n)return;const r=si(n.layers),i=e.get("mapbox-layers"),o=r.filter((function(e){return i.includes(e.id)})).some((function(e){return!e.layout||!e.layout.visibility||"visible"===e.layout.visibility}));e.get("visible")!==o&&e.setVisible(o)}e.on("change",n),n()}(e,i),l()})).catch(c):l()}else c(new Error("Error accessing data for source "+e.get("mapbox-source")))};e.set("mapbox-layers",t);const d=i.getLayers();-1===d.getArray().indexOf(e)&&d.push(e),e.getSource()?u():e.once("change:source",u)}))}me.Ay;f.A;var Lo=n(85813),Ro=n(86203),jo=n(48660),Fo=n(62338),Do=n(79913),No=n(76262),zo=n(86784),Vo=n(60854),Bo=n(92288);function $o(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 Go(e){for(var t=1;t{"use strict";n.d(t,{GB:()=>te,w6:()=>Q,Xx:()=>J});var r=n(47361),i=n(28249),o=n(43994),a=n(70640),s=n(32814),l=n(71149),c=n(66138),u=n(99979),d=n(38096),h=n(64426),p=n(59615),f=n.n(p),g=n(97493),m=n(28596),y=n(82402),v=n(97792),b=n(13043),x=n(21062);function w(e,t){const n=(""+e).split("."),r=(""+t).split(".");for(let e=0;ei)return 1;if(i>t)return-1}return 0}var A=n(62661),S=n(24356),C=n(41218),E=n(34336);const _="1.3.0",k=[101,101];function T(e,t,n,r,i){i.WIDTH=n[0],i.HEIGHT=n[1];const o=r.getAxisOrientation();let a;const s=w(i.VERSION,"1.3")>=0;return i[s?"CRS":"SRS"]=r.getCode(),a=s&&"ne"==o.substr(0,2)?[t[1],t[0],t[3],t[2]]:t,i.BBOX=a.join(","),(0,x.L)(e,i)}function O(e,t){return Object.assign({REQUEST:t,SERVICE:"WMS",VERSION:_,FORMAT:"image/png",STYLES:"",TRANSPARENT:!0},e)}function P(e){const t=void 0===e.hidpi||e.hidpi,n=(0,E.Jt)(e.projection||"EPSG:3857"),r=e.ratio||1.5,i=e.load||A.D4;return(o,a,s)=>{o=(0,y.QD)(o,a,s,r),1==s||t&&void 0!==e.serverType||(s=1);const l=function(e,t,n,r,i,o,a){o=Object.assign({REQUEST:"GetMap"},o);const s=t/n,l=[(0,S.LI)((0,C.getWidth)(e)/s,b.B),(0,S.LI)((0,C.getHeight)(e)/s,b.B)];if(1!=n)switch(a){case"geoserver":const e=90*n+.5|0;"FORMAT_OPTIONS"in o?o.FORMAT_OPTIONS+=";dpi:"+e:o.FORMAT_OPTIONS="dpi:"+e;break;case"mapserver":o.MAP_RESOLUTION=90*n;break;case"carmentaserver":case"qgis":o.DPI=90*n;break;default:throw new Error("Unknown `serverType` configured")}return T(i,e,l,r,o)}(o,a,s,n,e.url,O(e.params,"GetMap"),e.serverType),c=new Image;return null!==e.crossOrigin&&(c.crossOrigin=e.crossOrigin),i(c,l).then((e=>({image:e,extent:o,pixelRatio:s})))}}class I extends y.Ay{constructor(e){super({attributions:(e=e||{}).attributions,interpolate:e.interpolate,projection:e.projection,resolutions:e.resolutions}),this.crossOrigin_=void 0!==e.crossOrigin?e.crossOrigin:null,this.url_=e.url,this.imageLoadFunction_=void 0!==e.imageLoadFunction?e.imageLoadFunction:y.VV,this.params_=Object.assign({},e.params),this.serverType_=e.serverType,this.hidpi_=void 0===e.hidpi||e.hidpi,this.renderedRevision_=0,this.ratio_=void 0!==e.ratio?e.ratio:1.5,this.loaderProjection_=null}getFeatureInfoUrl(e,t,n,r){const i=(0,E.Jt)(n),o=this.getProjection();o&&o!==i&&(t=(0,v.KQ)(o,i,e,t),e=(0,E.pd)(e,i,o));return function(e,t,n){if(void 0===e.url)return;const r=(0,E.Jt)(e.projection||"EPSG:3857"),i=(0,C.getForViewAndSize)(t,n,0,k),o={QUERY_LAYERS:e.params.LAYERS,INFO_FORMAT:"application/json"};Object.assign(o,O(e.params,"GetFeatureInfo"),e.params);const a=(0,S.RI)((t[0]-i[0])/n,b.B),s=(0,S.RI)((i[3]-t[1])/n,b.B),l=w(o.VERSION,"1.3")>=0;return o[l?"I":"X"]=a,o[l?"J":"Y"]=s,T(e.url,i,k,r,o)}({url:this.url_,params:{...this.params_,...r},projection:o||i},e,t)}getLegendUrl(e,t){return function(e,t){if(void 0===e.url)return;const n={SERVICE:"WMS",VERSION:_,REQUEST:"GetLegendGraphic",FORMAT:"image/png"};if(void 0===e.params||void 0===e.params.LAYER){const t=e.params.LAYERS;if(Array.isArray(t)&&1!==t.length)return;n.LAYER=t}if(void 0!==t){const r=(0,E.Jt)(e.projection||"EPSG:3857").getMetersPerUnit()||1,i=28e-5;n.SCALE=t*r/i}return Object.assign(n,e.params),(0,x.L)(e.url,n)}({url:this.url_,params:{...this.params_,...t}},e)}getParams(){return this.params_}getImageInternal(e,t,n,r){return void 0===this.url_?null:(this.loader&&this.loaderProjection_===r||(this.loaderProjection_=r,this.loader=P({crossOrigin:this.crossOrigin_,params:this.params_,projection:r,serverType:this.serverType_,hidpi:this.hidpi_,url:this.url_,ratio:this.ratio_,load:(e,t)=>(this.image.setImage(e),this.imageLoadFunction_(this.image,t),(0,A.D4)(e))})),super.getImageInternal(e,t,n,r))}getImageLoadFunction(){return this.imageLoadFunction_}getUrl(){return this.url_}setImageLoadFunction(e){this.imageLoadFunction_=e,this.changed()}setUrl(e){e!=this.url_&&(this.url_=e,this.loader=null,this.changed())}updateParams(e){Object.assign(this.params_,e),this.changed()}changed(){this.image=null,super.changed()}}const M=I;var L=n(72192),R=n(80363),j=n.n(R),F=n(76262),D=n(85813),N=n(86203),z=n(48660),V=n(79913),B=n(34028),$=n(62338),G=n(86784),U=n(98030),W=n(60854),q=n(92288),H=n(10011);function Y(e,t,n){return t=(0,u.A)(t),(0,l.A)(e,K()?Reflect.construct(t,n||[],(0,u.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 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 Z(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 J=function(e){return(null==e?void 0:e.geoviewLayerType)===D.y6.WMS},Q=function(e){var t;return(null==e||null===(t=e.geoviewLayerConfig)||void 0===t?void 0:t.geoviewLayerType)===D.y6.WMS},ee=new WeakSet,te=function(e){function t(e,n){var r;return(0,a.A)(this,t),X(r=Y(this,t,[D.y6.WMS,n,e]),ee),(0,h.A)(r,"WMSStyles",void 0),r.WMSStyles=[],r}return(0,d.A)(t,e),(0,s.A)(t,[{key:"fetchServiceMetadata",value:(p=(0,o.A)(f().mark((function e(){var t,n,r,i,o,a,s,l,c,u,d=this;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t=(0,V.getLocalizedValue)(this.metadataAccessPath,q.K.getDisplayLanguage(this.mapId)))){e.next=40;break}if(".xml"!==t.slice(-4).toLowerCase()){e.next=8;break}return e.next=6,Z(ee,this,ie).call(this,t);case 6:e.next=38;break;case 8:if(0!==(n=Z(ee,this,le).call(this)).length){e.next=23;break}return e.prev=10,e.next=13,Z(ee,this,ne).call(this,"".concat(t,"?service=WMS&version=1.3.0&request=GetCapabilities"));case 13:r=e.sent,this.metadata=r,Z(ee,this,ce).call(this),e.next=21;break;case 18:e.prev=18,e.t0=e.catch(10),W.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(Z(ee,d,ne).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=[],x=0;x1)){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),W.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){(0,c.A)((0,u.A)(t.prototype),"onLoaded",this).call(this,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],o=this.getLayerConfig(e),a=this.getOLLayer(e);W.vF.logTraceCore("WMS - applyViewFilter",e);var s=a.getSource();if(s){var l=t;if(o.legendFilterIsOff=!r,r&&(o.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,i.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=B.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,h.A)({},u,l.replace(/\s*/g,""))),a.changed(),this.emitLayerFilterApplied({layerPath:e,filter:l})}}}},{key:"getBounds",value:function(e,t){var n,r,i,o=this.getLayerConfig(e),a=this.getOLLayer(e),s=(null==a||null===(n=a.getSource())||void 0===n||null===(n=n.getProjection())||void 0===n?void 0:n.getCode())||this.getMapViewer().getProjection().getCode(),l=(null==o||null===(r=o.initialSettings)||void 0===r?void 0:r.bounds)||[];l=this.getMapViewer().convertExtentFromProjToMapProj(l,"EPSG:4326");var c,u=null===(i=this.metadata)||void 0===i?void 0:i.Capability.Layer.BoundingBox;if(u)for(var d=0;d2&&void 0!==arguments[2]?arguments[2]:[],r=(0,i.A)(n);if(Array.isArray(t))for(var o=0;o0&&void 0!==arguments[0]?arguments[0]:e.listOfLayerEntryConfig;r.length&&r.forEach((function(e){(0,z.KD)(e)?n(e.listOfLayerEntryConfig):t.push(e)}))}(),t}function ce(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 Z(ee,n,ce).call(n,r,e)}))}function ue(e,t){var n=this,r=[];(Array.isArray(e.Layer)?e.Layer:[e.Layer]).forEach((function(e){W.vF.logTraceCore("WMS - createGroupLayer","Cloning the layer config",t.layerPath);var i=j()(t);i.parentLayerConfig=(0,F.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,F.KX)(t);i.entryType=z.hJ.GROUP,i.layerName={en:e.Title,fr:e.Title},i.isMetadataLayerGroup=!0,i.listOfLayerEntryConfig=r,this.validateListOfLayerEntryConfig(r)}function de(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(t).forEach((function(r){if(!r.endsWith("Geometry")&&!r.startsWith("@")){var i=r.split(":").slice(-1)[0];"#text"in t[r]?f.fieldInfo["".concat(n).concat(n?".":"").concat(i)]={fieldKey:p++,value:t[r]["#text"],dataType:"string",alias:"".concat(n).concat(n?".":"").concat(i),domain:null}:e(t[r],i)}}))}(e),l)?(p=0,Object.keys(f.fieldInfo).filter((function(e){if(null!=l&&l.includes(e)){var t=l.indexOf(e);return f.fieldInfo[e].fieldKey=p++,f.fieldInfo[e].alias=u[t],f.fieldInfo[e].dataType=c[t],!1}return!0})).forEach((function(e){delete f.fieldInfo[e]})),d.push(f)):d.push(f);return d}function ye(e,t){var n=Object.keys(e).find((function(e){return e.endsWith(t)}));return n?e[n]:void 0}},12764:(e,t,n)=>{"use strict";n.d(t,{P5:()=>k,ik:()=>_,nd:()=>T});var r=n(43994),i=n(70640),o=n(32814),a=n(71149),s=n(66138),l=n(99979),c=n(38096),u=n(59615),d=n.n(u),h=n(12791),p=n(9063),f=n(70861),g=n(79950),m=n.n(g),y=n(85813),v=n(86203),b=n(48660),x=n(62338),w=n(79913),A=n(76262),S=n(92288);function C(e,t,n){return t=(0,l.A)(t),(0,a.A)(e,E()?Reflect.construct(t,n||[],(0,l.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})()}var _=function(e){return(null==e?void 0:e.geoviewLayerType)===y.y6.XYZ_TILES},k=function(e){var t;return(null==e||null===(t=e.geoviewLayerConfig)||void 0===t?void 0:t.geoviewLayerType)===y.y6.XYZ_TILES},T=function(e){function t(e,n){return(0,i.A)(this,t),C(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,A.KX)(r.outfields),S.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,A.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,c,u,g,m,y,v,b,x,A,C,E;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,s.A)((0,l.A)(t.prototype),"processOneLayerEntry",this).call(this,n);case 2:return u={url:(0,w.getLocalizedValue)(n.source.dataAccessPath,S.K.getDisplayLanguage(this.mapId))},n.source.crossOrigin?u.crossOrigin=n.source.crossOrigin:u.crossOrigin="Anonymous",n.source.projection&&(u.projection="EPSG:".concat(n.source.projection)),n.source.tileGrid&&(A={origin:null===(g=n.source.tileGrid)||void 0===g?void 0:g.origin,resolutions:null===(m=n.source.tileGrid)||void 0===m?void 0:m.resolutions},null!==(y=n.source.tileGrid)&&void 0!==y&&y.tileSize&&(A.tileSize=null===(v=n.source.tileGrid)||void 0===v?void 0:v.tileSize),null!==(b=n.source.tileGrid)&&void 0!==b&&b.extent&&(A.extent=null===(x=n.source.tileGrid)||void 0===x?void 0:x.extent),u.tileGrid=new f.A(A)),C={source:new p.A(u)},void 0!==(null===(r=n.initialSettings)||void 0===r?void 0:r.className)&&(C.className=n.initialSettings.className),void 0!==(null===(i=n.initialSettings)||void 0===i?void 0:i.extent)&&(C.extent=n.initialSettings.extent),void 0!==(null===(o=n.initialSettings)||void 0===o?void 0:o.maxZoom)&&(C.maxZoom=n.initialSettings.maxZoom),void 0!==(null===(a=n.initialSettings)||void 0===a?void 0:a.minZoom)&&(C.minZoom=n.initialSettings.minZoom),void 0!==(null===(c=n.initialSettings)||void 0===c||null===(c=c.states)||void 0===c?void 0:c.opacity)&&(C.opacity=n.initialSettings.states.opacity),E=new h.A(C),this.setLayerAndLoadEndListeners(n,E,"tile"),e.abrupt("return",Promise.resolve(E));case 15:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"processLayerMetadata",value:function(e){if(this.metadata){var t,n,r=(0,A.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,A.NK)(r)),e.source=m()(e.source,r.source),e.initialSettings=m()(e.initialSettings,r.initialSettings),null!==(n=e.initialSettings)&&void 0!==n&&n.extent&&(e.initialSettings.extent=this.getMapViewer().convertExtentLngLatToMapProj(e.initialSettings.extent))}return Promise.resolve(e)}},{key:"getBounds",value:function(e,t){var n,r,i=this.getOLLayer(e),o=(null==i||null===(n=i.getSource())||void 0===n||null===(n=n.getProjection())||void 0===n?void 0:n.getCode())||this.getMapViewer().getProjection().getCode(),a=null==i||null===(r=i.getSource())||void 0===r||null===(r=r.getTileGrid())||void 0===r?void 0:r.getExtent();if(a){var s,l=a;(null===(s=this.metadata)||void 0===s||null===(s=s.fullExtent)||void 0===s||null===(s=s.spatialReference)||void 0===s?void 0:s.wkid)!==this.getMapViewer().getProjection().getCode().replace("EPSG:","")&&(l=this.getMapViewer().convertExtentFromProjToMapProj(a,o)),t=t?(0,x.getMinOrMaxExtents)(t,l):[l[0],l[1],l[2],l[3]]}return t}}]);var n}(v.A)},46752:(e,t,n)=>{"use strict";n.d(t,{W:()=>P});var r=n(28249),i=n(64426),o=n(43994),a=n(70640),s=n(32814),l=n(71149),c=n(66138),u=n(99979),d=n(38096),h=n(59615),p=n.n(h),f=n(83605),g=n(23201),m=n(98949),y=n(85813),v=n(79913),b=n(34028),x=n(62338),w=n(5739),A=(n(46457),n(60854)),S=n(76262),C=n(92288),E=n(10011);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 k(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=e.layerPath;return 0!==this.attributions.length&&(r.attributions=this.attributions),r.strategy="bbox"===e.source.strategy?m.Qk:m.Q7,r.loader=function(r,a,s,l,c){var u,d,h=t.getUrl();"function"==typeof h&&(h=h(r,a,s));var p=new XMLHttpRequest;if(null!=e&&null!==(u=e.source)&&void 0!==u&&u.postSettings){var f=e.source.postSettings;p.open("POST",h),f.header&&Object.keys(f.header).forEach((function(e){p.setRequestHeader(e,f.header[e])}))}else p.open("GET",h);var g=function(){t.removeLoadedExtent(r),c&&c()};p.onerror=g,p.onload=function(){if(200===p.status){var a,c;if(c=e.schemaTag===y.y6.CSV?n.getMapViewer().layer.getGeoviewLayer(o).convertCsv(p.responseText,e):t.getFormat().readFeatures(p.responseText,k(k({},i),{},{featureProjection:s,extent:r})),null!==(a=e.source)&&void 0!==a&&null!==(a=a.featureInfo)&&void 0!==a&&a.queryable&&c){var u,d=e.source.featureInfo,h=null===(u=d.fieldTypes)||void 0===u?void 0:u.split(","),f=(0,v.getLocalizedValue)(d.outfields,C.K.getDisplayLanguage(n.mapId)).split(","),m=null==h?void 0:h.reduce((function(e,t,n){return"date"===t&&e.push(f[n]),e}),[]);null!=m&&m.length&&c.forEach((function(e){m.forEach((function(t){var r=e.get(t);if("number"==typeof r){var i=b.P.convertMilisecondsToDate(r);i=b.P.applyInputDateFormat(i,n.serverDateFragmentsOrder),e.set(t,b.P.convertToMilliseconds(i),!0)}else n.serverDateFragmentsOrder||(n.serverDateFragmentsOrder=b.P.getDateFragmentsOrder(b.P.deduceDateFormat(r))),r=b.P.applyInputDateFormat(r,n.serverDateFragmentsOrder),e.set(t,b.P.convertToMilliseconds(r),!0)}))}))}if(c){t.addFeatures(c),l&&l(c);var x=n.getOLLayer(e.layerPath);null==x||x.changed()}}else g()},p.send(JSON.stringify(null===(d=e.source.postSettings)||void 0===d?void 0:d.data))},t=new f.A(r)}},{key:"createVectorLayer",value:function(e,t){var n,r,i,o,a=C.K.getDisplayLanguage(this.mapId),s=(0,v.getLocalizedValue)(e.layerName,a)||e.layerId,l={properties:{layerConfig:e},source:t,style:function(t){if("style"in e)return(0,E.nS)(t,e,s)}},c=new g.A(l);return this.setLayerAndLoadEndListeners(e,c,"features"),void 0!==(null===(n=e.initialSettings)||void 0===n?void 0:n.extent)&&this.setExtent(e.initialSettings.extent,e.layerPath),void 0!==(null===(r=e.initialSettings)||void 0===r?void 0:r.maxZoom)&&this.setMaxZoom(e.initialSettings.maxZoom,e.layerPath),void 0!==(null===(i=e.initialSettings)||void 0===i?void 0:i.minZoom)&&this.setMinZoom(e.initialSettings.minZoom,e.layerPath),void 0!==(null===(o=e.initialSettings)||void 0===o||null===(o=o.states)||void 0===o?void 0:o.opacity)&&this.setOpacity(e.initialSettings.states.opacity,e.layerPath),c}},{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),A.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 A.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,t){var n,r=this.getOLLayer(e),i=null==r||null===(n=r.getSource())||void 0===n?void 0:n.getExtent();return i&&(t=t?(0,x.getMinOrMaxExtents)(t,i):[i[0],i[1],i[2],i[3]]),t}},{key:"onLoaded",value:function(e){(0,c.A)((0,u.A)(t.prototype),"onLoaded",this).call(this,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];A.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,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=b.P.applyInputDateFormat(e[0],i.externalFragmentsOrder,t);l="".concat(l.slice(0,e.index)).concat(n).concat(l.slice(e.index+e[0].length))}));try{var u=(0,E.WN)([{nodeType:w.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})}}]);var n,i}(y.qt)},38509:(e,t,n)=>{"use strict";n.d(t,{WW:()=>_,fK:()=>k,pf:()=>T});var r=n(64426),i=n(70640),o=n(32814),a=n(71149),s=n(66138),l=n(99979),c=n(38096),u=n(45917),d=n(20662),h=n(62767),p=n(86891),f=n(85813),g=n(46752),m=n(12311),y=n(48660),v=n(86784),b=n(60854),x=n(79913),w=n(92288);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&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return r.dataProjection=e.source.dataProjection,n.url=(0,x.getLocalizedValue)(e.source.dataAccessPath,w.K.getDisplayLanguage(this.mapId)),n.format=new u.A,(0,s.A)((0,l.A)(t.prototype),"createVectorSource",this).call(this,e,n,r)}}])}(g.W);function O(e,t){for(var n,r=new RegExp("(\\".concat(t,'|\\r?\\n|\\r|^)(?:"([^"]*(?:""[^"]*)*)"|([^\\').concat(t,"\\r\\n]*))"),"gi"),i=[[]];n=r.exec(e);)n[1].length&&n[1]!==t&&i.push([]),i[i.length-1].push(void 0!==n[2]?n[2].replace(/""/g,'"'):n[3]);return i}function P(e,t,n,r){var i,o;if(r.source||(r.source={}),r.source.featureInfo||(r.source.featureInfo={queryable:!0}),null===(i=r.source.featureInfo.outfields)||void 0===i||!i.en||null===(o=r.source.featureInfo.aliasFields)||void 0===o||!o.en){var a,s,l,c,u,d,h,p=!(null!==(a=r.source.featureInfo.outfields)&&void 0!==a&&a.en),f=!(null!==(s=r.source.featureInfo.aliasFields)&&void 0!==s&&s.en);p&&(r.source.featureInfo.outfields={en:""},r.source.featureInfo.fieldTypes=""),f&&(r.source.featureInfo.aliasFields={en:""}),e.forEach((function(i){var o=e.indexOf(i);if(o!==n[0]&&o!==n[1]){var a="string";t[o]&&""!==t[o]&&Number(t[o])&&(a="number"),p&&(r.source.featureInfo.outfields.en="".concat(r.source.featureInfo.outfields.en).concat(i,","),r.source.featureInfo.fieldTypes="".concat(r.source.featureInfo.fieldTypes).concat(a,",")),r.source.featureInfo.aliasFields.en="".concat(r.source.featureInfo.outfields.en).concat(i,",")}})),r.source.featureInfo.outfields.en=null===(l=r.source.featureInfo.outfields)||void 0===l||null===(l=l.en)||void 0===l?void 0:l.slice(0,-1),r.source.featureInfo.fieldTypes=null===(c=r.source.featureInfo.fieldTypes)||void 0===c?void 0:c.slice(0,-1),r.source.featureInfo.aliasFields.en=null===(u=r.source.featureInfo.aliasFields)||void 0===u||null===(u=u.en)||void 0===u?void 0:u.slice(0,-1),r.source.featureInfo.outfields.fr=null===(d=r.source.featureInfo.outfields)||void 0===d?void 0:d.en,r.source.featureInfo.aliasFields.fr=null===(h=r.source.featureInfo.aliasFields)||void 0===h?void 0:h.en}if(!r.source.featureInfo.nameField){var g,m,y=(null===(g=r.source.featureInfo.outfields.en)||void 0===g?void 0:g.split(",")[0])||(null===(m=r.source.featureInfo.outfields.fr)||void 0===m?void 0:m.split(",")[0]),v=y;y&&(r.source.featureInfo.nameField={en:y,fr:v})}}},52375:(e,t,n)=>{"use strict";n.d(t,{$f:()=>y,SP:()=>v,Uw:()=>b});var r=n(70640),i=n(32814),o=n(71149),a=n(66138),s=n(99979),l=n(38096),c=n(987),u=n(79913),d=n(46752),h=n(85813),p=n(80104),f=n(92288);function g(e,t,n){return t=(0,s.A)(t),(0,o.A)(e,m()?Reflect.construct(t,n||[],(0,s.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})()}var y=function(e){return(null==e?void 0:e.geoviewLayerType)===h.y6.ESRI_FEATURE},v=function(e){var t;return(null==e||null===(t=e.geoviewLayerConfig)||void 0===t?void 0:t.geoviewLayerType)===h.y6.ESRI_FEATURE},b=function(e){function t(e,n){return(0,r.A)(this,t),g(this,t,[h.y6.ESRI_FEATURE,n,e])}return(0,l.A)(t,e),(0,i.A)(t,[{key:"fetchServiceMetadata",value:function(){return(0,p.mF)(this)}},{key:"validateListOfLayerEntryConfig",value:function(e){(0,p.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,p.KS)(this,e,t)}},{key:"getFieldDomain",value:function(e,t){return(0,p.YX)(this,e,t)}},{key:"processTemporalDimension",value:function(e,t){(0,p.RW)(this,e,t)}},{key:"processFeatureInfoConfig",value:function(e){(0,p.$A)(this,e)}},{key:"processInitialSettings",value:function(e){(0,p.gm)(this,e)}},{key:"processLayerMetadata",value:function(e){return(0,p.Nf)(this,e)}},{key:"createVectorSource",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.url=(0,u.getLocalizedValue)(e.source.dataAccessPath,f.K.getDisplayLanguage(this.mapId)),n.url="".concat(n.url,"/").concat(e.layerId,"/query?f=pjson&outfields=*&where=1%3D1"),n.format=new c.A,(0,a.A)((0,s.A)(t.prototype),"createVectorSource",this).call(this,e,n,r)}}])}(d.W)},12358:(e,t,n)=>{"use strict";n.d(t,{eq:()=>S,kx:()=>C,vM:()=>A});var r=n(64426),i=n(70640),o=n(32814),a=n(71149),s=n(66138),l=n(99979),c=n(38096),u=n(45917),d=n(79950),h=n.n(d),p=n(85813),f=n(46752),g=n(48660),m=n(76262),y=n(79913),v=n(92288);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 x(e,t,n){return t=(0,l.A)(t),(0,a.A)(e,w()?Reflect.construct(t,n||[],(0,l.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})()}var A=function(e){return(null==e?void 0:e.geoviewLayerType)===p.y6.GEOJSON},S=function(e){var t;return(null==e||null===(t=e.geoviewLayerConfig)||void 0===t?void 0:t.geoviewLayerType)===p.y6.GEOJSON},C=function(e){function t(e,n){return(0,i.A)(this,t),x(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,m.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(this.metadata){var t,n,i=(0,m.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(i){var o;this.setLayerMetadata(e.layerPath,(0,m.NK)(i)),e.layerName=e.layerName||i.layerName,e.source=h()(e.source,i.source),e.initialSettings=h()(e.initialSettings,i.initialSettings),e.style=h()(e.style,i.style);var a,s,l=(0,y.getLocalizedValue)(null===(o=e.geoviewLayerConfig)||void 0===o?void 0:o.metadataAccessPath,v.K.getDisplayLanguage(this.mapId));if(l)l=l.split("/").length>1?l.split("/").slice(0,-1).join("/"):"./","".concat(l,"/").concat(e.layerId)===(0,y.getLocalizedValue)(null===(a=e.source)||void 0===a?void 0:a.dataAccessPath,v.K.getDisplayLanguage(this.mapId))&&(0,y.getLocalizedValue)(null===(s=i.source)||void 0===s?void 0:s.dataAccessPath,v.K.getDisplayLanguage(this.mapId))&&(e.source.dataAccessPath=function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return r.dataProjection=e.source.dataProjection,n.url=(0,y.getLocalizedValue)(e.source.dataAccessPath,v.K.getDisplayLanguage(this.mapId)),n.format=new u.A,(0,s.A)((0,l.A)(t.prototype),"createVectorSource",this).call(this,e,n,r)}}])}(f.W)},71587:(e,t,n)=>{"use strict";n.d(t,{OH:()=>ae,wm:()=>oe,P0:()=>ie});var r=n(31625),i=n(43994),o=n(64426),a=n(47361),s=n(70640),l=n(32814),c=n(71149),u=n(66138),d=n(99979),h=n(38096),p=n(80363),f=n.n(p),g=n(59615),m=n.n(g),y=n(20662),v=n(42024),b=n(31997),x=n(24438),w=n(67087),A=n(4180),S=n(1660),C=n(62767),E=n(17567),_=n(34336),k=n(6819);const T=1,O=2,P=3,I=4,M=5,L=6,R=7,j=15,F=16,D=17;class N{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 T:return this.readPoint();case O:return this.readLineString();case P:case D:return this.readPolygon();case I:return this.readMultiPoint();case M:return this.readMultiLineString();case L:case j:case F:return this.readMultiPolygon();case R: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 V extends v.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 y.A({geometry:this.readGeometry(e,t)})}readFeatures(e,t){let n=[];const r=this.readGeometry(e,t);return n=this.splitCollection&&r instanceof b.A?r.getGeometriesArray():[r],n.map((e=>new y.A({geometry:e})))}readGeometry(e,t){const n=B(e);if(!n)return null;const r=new N(n).readGeometry();return this.viewCache_=n,t=this.getReadOptions(e,t),this.viewCache_=null,(0,v.hX)(r,!1,t)}readProjection(e){const t=this.viewCache_||B(e);if(!t)return;const n=new N(t);return n.readWkbHeader(),n.getSrid()&&(0,_.Jt)("EPSG:"+n.getSrid())||void 0}writeFeature(e,t){return this.writeGeometry(e.getGeometry(),t)}writeFeatures(e,t){return this.writeGeometry(new b.A(e.map((e=>e.getGeometry()))),t)}writeGeometry(e,t){t=this.adaptOptions(t);const n=new z({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,_.Jt)(t.dataProjection);if(e){const t=e.getCode();t.startsWith("EPSG:")&&(r=Number(t.substring(5)))}}n.writeGeometry((0,v.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,X.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){Q.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){Q.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){Q.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,J.getLocalizedValue)(e.source.dataAccessPath,Z.K.getDisplayLanguage(n.mapId));0!==n.attributions.length&&(r.attributions=n.attributions);var l=[],c={},u=new XMLHttpRequest;u.responseType="arraybuffer",W()({locateFile:function(e){return"https://sql.js.org/dist/".concat(e)}}).then((function(e){u.open("GET",s),u.onload=function(){if(200===u.status){for(var s=new e.Database(new Uint8Array(u.response)),d=[],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();d.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);c[g[0]]=m[1]}}for(var y=new $,v=function(){var e,o=d[b],a=o.table_name,c="EPSG:".concat(o.srs_id),u=o.geometry_column_name,p=[];for(h=s.prepare("SELECT * FROM '".concat(a,"'"));h.step();){var f=(e=h.getAsObject())[u];delete e[u];var g=t.parseGpkgGeom(f),m=y.readFeatures(g,te(te({},i),{},{dataProjection:c,featureProjection:n.getMapViewer().getProjection().getCode()}));m[0].setProperties(e),p.push(m[0])}var v=new G.A(te(te({},r),{},{loader:function(e,t,n,r,i){void 0!==p?(v.addFeatures(p),r(p)):i()}}));l.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}(K.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})}}},55373:(e,t,n)=>{"use strict";n.d(t,{UU:()=>C,dr:()=>S,ke:()=>E});var r=n(43994),i=n(70640),o=n(32814),a=n(71149),s=n(66138),l=n(99979),c=n(38096),u=n(59615),d=n.n(u),h=n(97493),p=n(45917),f=n(85813),g=n(46752),m=n(48660),y=n(12311),v=n(60854),b=n(79913),x=n(92288);function w(e,t,n){return t=(0,l.A)(t),(0,a.A)(e,A()?Reflect.construct(t,n||[],(0,l.A)(e).constructor):t.apply(e,n))}function A(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(A=function(){return!!e})()}var S=function(e){return(null==e?void 0:e.geoviewLayerType)===f.y6.OGC_FEATURE},C=function(e){var t;return(null==e||null===(t=e.geoviewLayerConfig)||void 0===t?void 0:t.geoviewLayerType)===f.y6.OGC_FEATURE},E=function(e){function t(e,n){return(0,i.A)(this,t),w(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,b.getLocalizedValue)(e.metadataAccessPath,x.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"),v.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)){var r,i,o,a,s=t.metadata.collections.find((function(t){return t.id===e.layerId}));return s?(s.description&&(e.layerName={en:s.description,fr:s.description}),null!==(r=e.initialSettings)&&void 0!==r&&r.extent&&(e.initialSettings.extent=t.getMapViewer().convertExtentLngLatToMapProj(e.initialSettings.extent)),void(null!==(i=e.initialSettings)&&void 0!==i&&i.bounds||null===(o=s.extent)||void 0===o||null===(o=o.spatial)||void 0===o||!o.bbox||null===(a=s.extent)||void 0===a||null===(a=a.spatial)||void 0===a||!a.crs||(e.initialSettings.bounds=t.getMapViewer().convertExtentFromProjToMapProj(s.extent.spatial.bbox[0],y.M.getProjection(s.extent.spatial.crs))))):(t.layerLoadError.push({layer:n,loggerMessage:"OGC feature layer not found (mapId: ".concat(t.mapId,", layerPath: ").concat(n,")")}),void(e.layerStatus="error"))}throw new Error("Invalid collection's metadata prevent loading of layer (mapId: ".concat(t.mapId,", layerPath: ").concat(n,")"))}))}},{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(e.prev=0,!(r=(0,b.getLocalizedValue)(this.metadataAccessPath,x.K.getDisplayLanguage(this.mapId)))){e.next=8;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=6,h.A.get(i);case 6:(o=e.sent).data.properties&&(this.setLayerMetadata(n.layerPath,o.data.properties),_.call(t,o.data.properties,n));case 8:e.next=14;break;case 10:e.prev=10,e.t0=e.catch(0),v.vF.logError('Error processing layer metadata for layer path "'.concat(n.layerPath),e.t0),n.layerStatus="error";case 14:return e.abrupt("return",n);case 15:case"end":return e.stop()}}),e,this,[[0,10]])}))),function(e){return n.apply(this,arguments)})},{key:"createVectorSource",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return r.dataProjection=e.source.dataProjection,n.url=(0,b.getLocalizedValue)(e.source.dataAccessPath,x.K.getDisplayLanguage(this.mapId)),n.url="".concat(n.url,"/collections/").concat(e.layerId,"/items?f=json"),n.format=new p.A,(0,s.A)((0,l.A)(t.prototype),"createVectorSource",this).call(this,e,n,r)}}]);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})}}},78752:(e,t,n)=>{"use strict";n.d(t,{dS:()=>nt,Vk:()=>Qe,OV:()=>Je});var r=n(43994),i=n(70640),o=n(32814),a=n(71149),s=n(66138),l=n(99979),c=n(38096),u=n(59615),d=n.n(u),h=n(20662),p=n(78853),f=n(24438),g=n(62650),m=n(67087),y=n(4180),v=n(1660),b=n(62767),x=n(17567),w=n(42024),A=n(94994),S=n(17217),C=n(98785);class E extends w.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 _=E;var k=n(34336);const T="http://www.opengis.net/gml",O=/^\s*$/;class P extends _{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":B,"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?B.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,k.Jt)(e.pop().srsName)}return null}};var Ve=n(98949),Be=n(85813),$e=n(46752),Ge=n(48660),Ue=n(79913),We=n(60854),qe=n(92288);function He(e,t,n){return t=(0,l.A)(t),(0,a.A)(e,Ye()?Reflect.construct(t,n||[],(0,l.A)(e).constructor):t.apply(e,n))}function Ye(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ye=function(){return!!e})()}function Ke(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Xe(e,t){return e.get(Ze(e,t))}function Ze(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 Je=function(e){return(null==e?void 0:e.geoviewLayerType)===Be.y6.WFS},Qe=function(e){var t;return(null==e||null===(t=e.geoviewLayerConfig)||void 0===t?void 0:t.geoviewLayerType)===Be.y6.WFS},et=new WeakMap,tt=new WeakSet,nt=function(e){function t(e,n){var r,o,a;return(0,i.A)(this,t),r=He(this,t,[Be.y6.WFS,n,e]),Ke(o=r,a=tt),a.add(o),function(e,t,n){Ke(e,t),t.set(e,n)}(r,et,"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,qe.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=et,s=e,l=o["@attributes"].version,a.set(Ze(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,c=(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(!c)return t.layerLoadError.push({layer:o,loggerMessage:"WFS feature layer not found (mapId: ".concat(t.mapId,", layerPath: ").concat(o,")")}),void(e.layerStatus="error");if(null!==(s=e.initialSettings)&&void 0!==s&&s.extent&&(e.initialSettings.extent=t.getMapViewer().convertExtentLngLatToMapProj(e.initialSettings.extent)),(null===(l=e.initialSettings)||void 0===l||!l.bounds)&&c["ows:WGS84BoundingBox"]){var u=c["ows:WGS84BoundingBox"]["ows:LowerCorner"]["#text"].split(" "),d=c["ows:WGS84BoundingBox"]["ows:UpperCorner"]["#text"].split(" "),h=[Number(u[0]),Number(u[1]),Number(d[0]),Number(d[1])];e.initialSettings.bounds=t.getMapViewer().convertExtentLngLatToMapProj(h)}}}))}},{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(e.prev=0,n=(n=(0,Ue.getLocalizedValue)(t.source.dataAccessPath,qe.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(Xe(et,this),"&outputFormat=").concat(encodeURIComponent(o),"&typeName=").concat(t.layerId))||"application/json"!==o){e.next=17;break}return e.next=11,fetch(a);case 11:return e.next=13,e.sent.json();case 13:s=e.sent,Array.isArray(s.featureTypes)&&Array.isArray(s.featureTypes[0].properties)&&(this.setLayerMetadata(t.layerPath,s.featureTypes[0].properties),Ze(tt,this,rt).call(this,s.featureTypes[0].properties,t)),e.next=29;break;case 17:if(!a||!o.toUpperCase().includes("XML")){e.next=29;break}return e.next=20,fetch(a);case 20:return e.next=22,e.sent.text();case 22: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),Ze(tt,this,rt).call(this,g,t));case 29:e.next=35;break;case 31:e.prev=31,e.t0=e.catch(0),We.vF.logError('Error processing layer metadata for layer path "'.concat(t.layerPath),e.t0),t.layerStatus="error";case 35:return e.abrupt("return",t);case 36:case"end":return e.stop()}}),e,this,[[0,31]])}))),function(e){return n.apply(this,arguments)})},{key:"createVectorSource",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 i.dataProjection=e.source.dataProjection,r.url=function(t){var i=(0,Ue.getLocalizedValue)(e.source.dataAccessPath,qe.K.getDisplayLanguage(n.mapId));return i=i.indexOf("?")>-1?i.substring(0,i.indexOf("?")):i,i="".concat(i,"?service=WFS&request=getFeature&version=").concat(Xe(et,n)),i="".concat(i,"&typeName=").concat(e.layerId),r.strategy===Ve.Qk&&Number.isFinite(t[0])&&(i="".concat(i,"&bbox=").concat(t,",").concat(n.getMapViewer().getProjection().getCode())),i},r.format=new ze({version:Xe(et,this)}),(0,s.A)((0,l.A)(t.prototype),"createVectorSource",this).call(this,e,r,i)}}]);var n}($e.W);function rt(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})}}},93866:(e,t,n)=>{"use strict";n.d(t,{Z:()=>z});var r=n(43994),i=n(70640),o=n(32814),a=n(64426),s=n(59615),l=n.n(s),c=n(36116),u=n(20687),d=n(28596),h=n(79913),p=n(34028),f=n(60854),g=n(23222),m=n(16221),y=n(55950),v=n(10011),b=n(98030);function x(e,t,n){w(e,t),t.set(e,n)}function w(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,_=new WeakMap,k=new WeakMap,T=new WeakMap,O=new WeakMap,P=new WeakMap,I=new WeakMap,M=new WeakMap,L=new WeakMap,R=new WeakMap,j=new WeakMap,F=new WeakMap,D=new WeakMap,N=new WeakSet,z=function(){return(0,o.A)((function e(t,n,r){var o,s;(0,i.A)(this,e),w(o=this,s=N),s.add(o),(0,a.A)(this,"hitTolerance",e.DEFAULT_HIT_TOLERANCE),x(this,E,void 0),x(this,_,void 0),x(this,k,void 0),x(this,T,void 0),x(this,O,void 0),x(this,P,void 0),x(this,I,void 0),x(this,M,void 0),x(this,L,[]),x(this,R,[]),x(this,j,[]),x(this,F,[]),x(this,D,[]),S(E,this,t),S(_,this,n),S(k,this,r),S(O,this,r.layerName),S(T,this,"loading"),S(I,this,r.geoviewLayerConfig.serviceDateFormat?p.P.getDateFragmentsOrder(r.geoviewLayerConfig.serviceDateFormat):void 0),S(M,this,p.P.getDateFragmentsOrder(r.geoviewLayerConfig.externalDateFormat))}),[{key:"init",value:function(){var e;if(A(_,this)instanceof d.A)e="image";else if(A(_,this)instanceof c.A)e="tile";else{if(!(A(_,this)instanceof u.A))throw new Error("Unsupported OpenLayer type: ".concat(A(_,this).constructor.name));e="features"}var t=A(_,this).get("source").getState();"ready"===t?this.onLoaded():"error"===t?this.onError():(A(_,this).get("source").once("".concat(e,"loaderror"),this.onLoaded.bind(this)),A(_,this).get("source").once("".concat(e,"loadend"),this.onError.bind(this)))}},{key:"getMapId",value:function(){return A(E,this)}},{key:"getMapViewer",value:function(){return b.d.getMapViewer(this.getMapId())}},{key:"getOLLayer",value:function(){return A(_,this)}},{key:"getOLSource",value:function(){return this.getOLLayer().get("source")||void 0}},{key:"getLayerConfig",value:function(){return A(k,this)}},{key:"getLayerPath",value:function(){return A(k,this).layerPath}},{key:"getGeoviewLayerId",value:function(){return A(k,this).geoviewLayerConfig.geoviewLayerId}},{key:"getGeoviewLayerName",value:function(){return A(k,this).geoviewLayerConfig.geoviewLayerName}},{key:"getLayerStatus",value:function(){return A(T,this)}},{key:"getLayerConfigStatus",value:function(){return A(k,this).layerStatus}},{key:"getLayerName",value:function(e){return A(O,this)}},{key:"setLayerName",value:function(e,t){S(O,this,t),C(N,this,V).call(this,{layerPath:e,layerName:t})}},{key:"getTemporalDimension",value:function(){return A(P,this)}},{key:"setTemporalDimension",value:function(e){S(P,this,e)}},{key:"getExternalFragmentsOrder",value:function(){return A(M,this)}},{key:"onLoaded",value:function(){var e;A(k,this).layerStatus="loaded",S(T,this,"loaded"),this.setVisible(!1!==(null===(e=A(k,this).initialSettings)||void 0===e||null===(e=e.states)||void 0===e?void 0:e.visible))}},{key:"onError",value:function(){A(k,this).layerStatus="error",S(T,this,"error")}},{key:"getFeatureInfo",value:(n=(0,r.A)(l().mark((function e(t,n){var r,i,o,a,s,c,u=arguments;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=u.length>2&&void 0!==u[2]?u[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 f.vF.logError("Layer at path ".concat(o.layerPath," is not queryable")),e.abrupt("return",null);case 6:f.vF.logTraceCore("ABSTRACT-GV-LAYERS - getFeatureInfo",t),a="".concat(t),f.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([]),f.vF.logError("Queries using ".concat(t," are invalid."));case 26:return e.next=28,s;case 28:return c=e.sent,f.vF.logMarkerCheck(a,"to getFeatureInfo",c),e.abrupt("return",c);case 33:return e.prev=33,e.t1=e.catch(1),f.vF.logError(e.t1),e.abrupt("return",null);case 37:case"end":return e.stop()}}),e,this,[[1,33]])}))),function(e,t){return n.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 f.vF.logWarning("getFieldDomain is not implemented for ".concat(e," on layer path ").concat(this.getLayerPath())),null}},{key:"getFieldType",value:function(e){return f.vF.logWarning("getFieldType is not implemented for ".concat(e," on layer path ").concat(this.getLayerPath())),"string"}},{key:"getExtent",value:function(){return this.getOLLayer().getExtent()}},{key:"setExtent",value:function(e){this.getOLLayer().setExtent(e)}},{key:"getOpacity",value:function(){return this.getOLLayer().getOpacity()}},{key:"setOpacity",value:function(e){this.getOLLayer().setOpacity(e)}},{key:"getVisible",value:function(){return this.getOLLayer().getVisible()}},{key:"setVisible",value:function(e){var t=this.getVisible();this.getOLLayer().setVisible(e),e!==t&&C(N,this,G).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:"queryLegend",value:function(){var e=this;C(N,this,B).call(this);var t=this.getLegend();return t.then((function(t){t&&C(N,e,$).call(e,{legend:t})})).catch((function(e){f.vF.logPromiseFailed("promiseLegend in queryLegend in AbstractGVLayer",e)})),t}},{key:"getLegend",value:(t=(0,r.A)(l().mark((function e(){var t,n,r;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,(t=this.getLayerConfig()).style){e.next=5;break}return n={type:t.geoviewLayerConfig.geoviewLayerType,layerName:t.layerName,styleConfig:t.style,legend:null},e.abrupt("return",n);case 5:return e.t0=t.geoviewLayerConfig.geoviewLayerType,e.t1=null==t?void 0:t.layerName,e.t2=null==t?void 0:t.style,e.next=10,(0,v.qC)(t);case 10:return e.t3=e.sent,r={type:e.t0,layerName:e.t1,styleConfig:e.t2,legend:e.t3},e.abrupt("return",r);case 15:return e.prev=15,e.t4=e.catch(0),f.vF.logError(e.t4),e.abrupt("return",null);case 19:case"end":return e.stop()}}),e,this,[[0,15]])}))),function(){return t.apply(this,arguments)})},{key:"getFieldValue",value:function(e,t,n){var r,i=e.get(t);if("date"===n){"string"==typeof i?(A(I,this)||S(I,this,p.P.getDateFragmentsOrder(p.P.deduceDateFormat(i))),r=p.P.applyInputDateFormat(i,A(I,this))):r=p.P.convertToUTC("".concat(p.P.convertMilisecondsToDate(i),"Z"));return A(M,this)&&(r=p.P.applyOutputDateFormat(r,A(M,this),!0)),r}return i}},{key:"formatFeatureInfoResult",value:(e=(0,r.A)(l().mark((function e(t,n){var i,o,a,s,c,u,d,p,m,b,x,w,A,S,C,E,_,k=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 g.z(1),d=function(){return u.withLock((0,r.A)(l().mark((function e(){var t,n;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,k.queryLegend();case 4:t=e.sent,(n=y.K.getLayerIconImage(t))&&(c=n[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,m=null==p||null===(o=p.fieldTypes)||void 0===o?void 0:o.split(","),b=null===(a=(0,h.getLocalizedValue)(null==p?void 0:p.outfields,"en"))||void 0===a?void 0:a.split(","),x=null===(s=(0,h.getLocalizedValue)(null==p?void 0:p.aliasFields,"en"))||void 0===s?void 0:s.split(","),w=[],t.forEach((function(e){w.push(new Promise((function(t){(0,v.$G)(e,n,d).then((function(n){t({feature:e,canvas:n})})).catch((function(e){f.vF.logPromiseFailed("getFeatureCanvas in featureNeedingItsCanvas loop in formatFeatureInfoResult in AbstractGeoViewLayer",e)}))})))})),A={},S={},C=0,E=0,_=[],e.next=18,Promise.all(w);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:k.getLayerConfig().geoviewLayerConfig.geoviewLayerType,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,"en")||null};i.getKeys().forEach((function(e){if("geometry"!==e){e in A||(A[e]=k.getFieldDomain(e));var t=A[e];e in S||(S[e]=k.getFieldType(e));var n=S[e];if(null!=b&&b.includes(e)){var r=b.indexOf(e);a.fieldInfo[e]={fieldKey:E++,value:k.getFieldValue(i,e,m[r]),dataType:m[r],alias:x[r],domain:t}}else b||(a.fieldInfo[e]={fieldKey:E++,value:k.getFieldValue(i,e,n),dataType:n,alias:e,domain:t})}})),_.push(a)})),e.abrupt("return",_);case 23:return e.prev=23,e.t0=e.catch(0),f.vF.logError(e.t0),e.abrupt("return",[]);case 27:case"end":return e.stop()}}),e,null,[[0,23]])}))),function(t,n){return e.apply(this,arguments)})},{key:"getLayerFilter",value:function(e){var t=this.getLayerConfig();return null==t?void 0:t.layerFilter}},{key:"onLayerNameChanged",value:function(e){m.A.onEvent(A(L,this),e)}},{key:"offLayerNameChanged",value:function(e){m.A.offEvent(A(L,this),e)}},{key:"onLegendQuerying",value:function(e){m.A.onEvent(A(R,this),e)}},{key:"offLegendQuerying",value:function(e){m.A.offEvent(A(R,this),e)}},{key:"onLegendQueried",value:function(e){m.A.onEvent(A(j,this),e)}},{key:"offLegendQueried",value:function(e){m.A.offEvent(A(j,this),e)}},{key:"onVisibleChanged",value:function(e){m.A.onEvent(A(F,this),e)}},{key:"offVisibleChanged",value:function(e){m.A.offEvent(A(F,this),e)}},{key:"emitLayerFilterApplied",value:function(e){m.A.emitEvent(this,A(D,this),e)}},{key:"onLayerFilterApplied",value:function(e){m.A.onEvent(A(D,this),e)}},{key:"offLayerFilterApplied",value:function(e){m.A.offEvent(A(D,this),e)}}]);var e,t,n}();function V(e){m.A.emitEvent(this,A(L,this),e)}function B(){m.A.emitEvent(this,A(R,this),void 0)}function $(e){m.A.emitEvent(this,A(j,this),e)}function G(e){m.A.emitEvent(this,A(F,this),e)}(0,a.A)(z,"DEFAULT_HIT_TOLERANCE",4)},47598:(e,t,n)=>{"use strict";n.d(t,{z:()=>d});var r=n(70640),i=n(32814),o=n(71149),a=n(66138),s=n(99979),l=n(38096);function c(e,t,n){return t=(0,s.A)(t),(0,o.A)(e,u()?Reflect.construct(t,n||[],(0,s.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(){return(0,r.A)(this,t),c(this,t,arguments)}return(0,l.A)(t,e),(0,i.A)(t,[{key:"getOLLayer",value:function(){return(0,a.A)((0,s.A)(t.prototype),"getOLLayer",this).call(this)}}])}(n(93866).Z)},81603:(e,t,n)=>{"use strict";n.d(t,{Y:()=>L});var r=n(28249),i=n(43994),o=n(70640),a=n(32814),s=n(71149),l=n(66138),c=n(99979),u=n(38096),d=n(64426),h=n(59615),p=n.n(h),f=n(987),g=n(20662),m=n(48690),y=n(79913),v=n(62338),b=n(12311),x=n(92288),w=n(60854),A=n(34028),S=n(48660),C=n(13019),E=n(47598);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 k(e){for(var t=1;t= ").concat(I(M,this,N).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(I(M,this,N).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(I(M,this,N).call(this,o.field,o.classBreakStyleInfo[h].minValue,e.source.featureInfo))),h+1===o.classBreakStyleInfo.length&&u.push("".concat(o.field," <= ").concat(I(M,this,N).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(I(M,this,N).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(I(M,this,N).call(this,o.field,o.classBreakStyleInfo[h-1].maxValue,e.source.featureInfo))):h+1===o.classBreakStyleInfo.length&&u.push("".concat(o.field," <= ").concat(I(M,this,N).call(this,o.field,o.classBreakStyleInfo[h].maxValue,e.source.featureInfo))):!1!==o.classBreakStyleInfo[h].visible?(u.push("".concat(o.field," > ").concat(I(M,this,N).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(I(M,this,N).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(){(0,l.A)((0,c.A)(t.prototype),"onLoaded",this).call(this),this.applyViewFilter("",this.getLayerConfig().layerFilter||"")}},{key:"applyViewFilter",value:function(e,t){var n=this,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];w.vF.logTraceCore("GV-ESRI-DYNAMIC - applyViewFilter");var o=this.getLayerConfig(),a=this.getOLLayer(),s=t.replaceAll(/\s{2,}/g," ").trim();o.legendFilterIsOff=!i,o.layerFilter=s,i&&(s=this.getViewFilter());var l=(0,r.A)(s.matchAll(/(?<=^date\b\s')[\d/\-T\s:+Z]{4,25}(?=')|(?<=[(\s]date\b\s')[\d/\-T\s:+Z]{4,25}(?=')/gi));l.reverse(),l.forEach((function(e){var t=![20,25].includes(e[0].length),r=A.P.applyInputDateFormat(e[0],n.getExternalFragmentsOrder(),t);r=(r=r.slice(0,20===r.length?-1:-6)).replace("T"," "),s="".concat(s.slice(0,e.index)).concat(r).concat(s.slice(e.index+e[0].length))})),a.getSource().updateParams({layerDefs:'{"'.concat(o.layerId,'": "').concat(s,'"}')}),a.changed(),this.emitLayerFilterApplied({layerPath:e,filter:s})}},{key:"getBounds",value:function(e,t){var n,r,i,o,a,s,l,c=this.getLayerConfig(),u=(null==c||null===(n=c.initialSettings)||void 0===n?void 0:n.bounds)||[],d=(null===(r=c.getMetadata())||void 0===r||null===(r=r.fullExtent)||void 0===r||null===(r=r.spatialReference)||void 0===r?void 0:r.wkid)||this.getMapViewer().getProjection().getCode().replace("EPSG:","");null!==(i=c.getMetadata())&&void 0!==i&&i.fullExtent&&(u[0]=null===(o=c.getMetadata())||void 0===o?void 0:o.fullExtent.xmin,u[1]=null===(a=c.getMetadata())||void 0===a?void 0:a.fullExtent.ymin,u[2]=null===(s=c.getMetadata())||void 0===s?void 0:s.fullExtent.xmax,u[3]=null===(l=c.getMetadata())||void 0===l?void 0:l.fullExtent.ymax);if(u){var h,p=u;(null===(h=c.getMetadata())||void 0===h||null===(h=h.fullExtent)||void 0===h||null===(h=h.spatialReference)||void 0===h?void 0:h.wkid)!==this.getMapViewer().getProjection().getCode().replace("EPSG:","")&&(p=this.getMapViewer().convertExtentFromProjToMapProj(u,"EPSG:".concat(d))),t=t?(0,v.getMinOrMaxExtents)(t,p):[p[0],p[1],p[2],p[3]]}return t}}]);var n,s}(E.z);function R(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 j(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:()=>C});var r=n(64426),i=n(28249),o=n(43994),a=n(70640),s=n(32814),l=n(71149),c=n(66138),u=n(99979),d=n(38096),h=n(59615),p=n.n(h),f=n(79913),g=n(62338),m=n(34028),y=n(60854),v=n(85813),b=n(13019),x=n(92288),w=n(10011);function A(e,t,n){return t=(0,u.A)(t),(0,l.A)(e,S()?Reflect.construct(t,n||[],(0,u.A)(e).constructor):t.apply(e,n))}function S(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(S=function(){return!!e})()}var C=function(e){function t(e,n,r){return(0,a.A)(this,t),A(this,t,[e,n,r])}return(0,d.A)(t,e),(0,s.A)(t,[{key:"getOLLayer",value:function(){return(0,c.A)((0,u.A)(t.prototype),"getOLLayer",this).call(this)}},{key:"getOLSource",value:function(){return this.getOLLayer().getSource()||void 0}},{key:"getLayerConfig",value:function(){return(0,c.A)((0,u.A)(t.prototype),"getLayerConfig",this).call(this)}},{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,f.getLocalizedValue)(t.geoviewLayerConfig.metadataAccessPath,x.K.getDisplayLanguage(this.getMapId())),"/legend?f=pjson"),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,layerName:t.layerName,styleConfig:t.style,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}},t.style=c,e.t0=v.y6.ESRI_IMAGE,e.t1=null==t?void 0:t.layerName,e.t2=c,e.next=25,(0,w.qC)(t);case 25:return e.t3=e.sent,u={type:e.t0,layerName:e.t1,styleConfig:e.t2,legend:e.t3},e.abrupt("return",u);case 30:return e.prev=30,e.t4=e.catch(1),y.vF.logError("Get Legend for ".concat(t.layerPath," error"),e.t4),e.abrupt("return",null);case 34:case"end":return e.stop()}}),e,this,[[1,30]])}))),function(){return n.apply(this,arguments)})},{key:"onLoaded",value:function(){(0,c.A)((0,u.A)(t.prototype),"onLoaded",this).call(this),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,t){var n,r,i,o,a,s,l,c=this.getLayerConfig(),u=(null==c||null===(n=c.initialSettings)||void 0===n?void 0:n.bounds)||[],d=(null===(r=c.getMetadata())||void 0===r||null===(r=r.fullExtent)||void 0===r||null===(r=r.spatialReference)||void 0===r?void 0:r.wkid)||this.getMapViewer().getProjection().getCode().replace("EPSG:","");null!==(i=c.getMetadata())&&void 0!==i&&i.fullExtent&&(u[0]=null===(o=c.getMetadata())||void 0===o?void 0:o.fullExtent.xmin,u[1]=null===(a=c.getMetadata())||void 0===a?void 0:a.fullExtent.ymin,u[2]=null===(s=c.getMetadata())||void 0===s?void 0:s.fullExtent.xmax,u[3]=null===(l=c.getMetadata())||void 0===l?void 0:l.fullExtent.ymax);if(u){var h,p=u;(null===(h=c.getMetadata())||void 0===h||null===(h=h.fullExtent)||void 0===h||null===(h=h.spatialReference)||void 0===h?void 0:h.wkid)!==this.getMapViewer().getProjection().getCode().replace("EPSG:","")&&(p=this.getMapViewer().convertExtentFromProjToMapProj(u,"EPSG:".concat(d))),t=t?(0,g.getMinOrMaxExtents)(t,p):[p[0],p[1],p[2],p[3]]}return t}}]);var n}(n(47598).z)},64873:(e,t,n)=>{"use strict";n.d(t,{V:()=>P});var r=n(47361),i=n(28249),o=n(43994),a=n(70640),s=n(32814),l=n(71149),c=n(66138),u=n(99979),d=n(38096),h=n(64426),p=n(59615),f=n.n(p),g=n(97493),m=n(76262),y=n(85813),v=n(79913),b=n(34028),x=n(62338),w=n(60854),A=n(92288),S=n(10011),C=n(47598);function E(e,t,n){return t=(0,u.A)(t),(0,l.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 k(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 T(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=new WeakSet,P=function(e){function t(e,n,r){var i;return(0,a.A)(this,t),k(i=E(this,t,[e,n,r]),O),(0,h.A)(i,"WMSStyles",[]),i}return(0,d.A)(t,e),(0,s.A)(t,[{key:"getOLLayer",value:function(){return(0,c.A)((0,u.A)(t.prototype),"getOLLayer",this).call(this)}},{key:"getOLSource",value:function(){return this.getOLLayer().getSource()||void 0}},{key:"getLayerConfig",value:function(){return(0,c.A)((0,u.A)(t.prototype),"getLayerConfig",this).call(this)}},{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,o.A)(f().mark((function e(n){var r,i,o,a,s,l,c,u,d,h,p,y,b,x,A,S,C,E;return f().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),w.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(){(0,c.A)((0,u.A)(t.prototype),"onLoaded",this).call(this),this.applyViewFilter("",this.getLayerConfig().layerFilter||"")}},{key:"applyViewFilter",value:function(e,t){var n=this,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=this.getLayerConfig(),a=this.getOLLayer();w.vF.logTraceCore("GVWMS - applyViewFilter",e);var s=a.getSource();if(s){var l=t;if(o.legendFilterIsOff=!r,r&&(o.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,i.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=b.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,h.A)({},u,l.replace(/\s*/g,""))),a.changed(),this.emitLayerFilterApplied({layerPath:e,filter:l})}}}},{key:"getBounds",value:function(e,t){var n,r,i,o=this.getLayerConfig(),a=(null===(n=this.getOLSource())||void 0===n||null===(n=n.getProjection())||void 0===n?void 0:n.getCode())||this.getMapViewer().getProjection().getCode(),s=(null==o||null===(r=o.initialSettings)||void 0===r?void 0:r.bounds)||[];s=this.getMapViewer().convertExtentFromProjToMapProj(s,"EPSG:4326");var l,c=null===(i=o.getMetadata())||void 0===i?void 0:i.Capability.Layer.BoundingBox;if(c)for(var u=0;u1&&void 0!==arguments[1]?arguments[1]:null===(t=this.getLayerConfig().getMetadata())||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(t).forEach((function(r){if(!r.endsWith("Geometry")&&!r.startsWith("@")){var i=r.split(":").slice(-1)[0];"#text"in t[r]?f.fieldInfo["".concat(n).concat(n?".":"").concat(i)]={fieldKey:p++,value:t[r]["#text"],dataType:"string",alias:"".concat(n).concat(n?".":"").concat(i),domain:null}:e(t[r],i)}}))}(e),l)?(p=0,Object.keys(f.fieldInfo).filter((function(e){if(null!=l&&l.includes(e)){var t=l.indexOf(e);return f.fieldInfo[e].fieldKey=p++,f.fieldInfo[e].alias=u[t],f.fieldInfo[e].dataType=c[t],!1}return!0})).forEach((function(e){delete f.fieldInfo[e]})),d.push(f)):d.push(f);return d}function D(e,t){var n=Object.keys(e).find((function(e){return e.endsWith(t)}));return n?e[n]:void 0}},13019:(e,t,n)=>{"use strict";n.d(t,{UB:()=>a,Vk:()=>o,k7:()=>s});n(59615);var r=n(76262),i=(n(60854),n(79913));function o(e,t,n){var o,a=e.getMetadata().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.getMetadata())||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.getMetadata())||void 0===n?void 0:n.fields).find((function(e){return e.name===t}));return i?(0,r.KX)(i.domain):null}},18934:(e,t,n)=>{"use strict";n.d(t,{p:()=>b});var r=n(28249),i=n(70640),o=n(32814),a=n(71149),s=n(66138),l=n(99979),c=n(38096),u=n(34028),d=n(62338),h=n(5739),p=n(92288),f=n(60854),g=n(10011),m=n(13019);function y(e,t,n){return t=(0,l.A)(t),(0,a.A)(e,v()?Reflect.construct(t,n||[],(0,l.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){function t(){return(0,i.A)(this,t),y(this,t,arguments)}return(0,c.A)(t,e),(0,o.A)(t,[{key:"getOLLayer",value:function(){return(0,s.A)((0,l.A)(t.prototype),"getOLLayer",this).call(this)}},{key:"getOLSource",value:function(){return this.getOLLayer().getSource()||void 0}},{key:"getLayerConfig",value:function(){return(0,s.A)((0,l.A)(t.prototype),"getLayerConfig",this).call(this)}},{key:"getFieldType",value:function(e){return(0,m.Vk)(this.getLayerConfig(),e,p.K.getDisplayLanguage(this.getMapId()))}},{key:"getAllFeatureInfo",value:function(){try{var e=this.getLayerConfig(),t=this.getOLSource().getFeatures();return this.formatFeatureInfoResult(t,e)}catch(e){return f.vF.logError("abstract-gv-vector.getAllFeatureInfo()\n",e),Promise.resolve(null)}}},{key:"getFeatureInfoAtPixel",value:function(e){try{var t=this.getOLSource(),n=this.getMapViewer().map.getFeaturesAtPixel(e,{hitTolerance:this.hitTolerance,layerFilter:function(e){var n=e.get("source");return t&&n&&t===n}});return this.formatFeatureInfoResult(n,this.getLayerConfig())}catch(e){return f.vF.logError("abstract-gv-vector.getFeatureInfoAtPixel()\n",e),Promise.resolve(null)}}},{key:"getFeatureInfoAtCoordinate",value:function(e){return this.getFeatureInfoAtPixel(this.getMapViewer().map.getPixelFromCoordinate(e))}},{key:"getFeatureInfoAtLongLat",value:function(e){var t=this.getMapViewer().convertCoordinateLngLatToMapProj(e);return this.getFeatureInfoAtPixel(this.getMapViewer().map.getPixelFromCoordinate(t))}},{key:"onLoaded",value:function(){(0,s.A)((0,l.A)(t.prototype),"onLoaded",this).call(this),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];f.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,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=u.P.applyInputDateFormat(e[0],i.getExternalFragmentsOrder(),t);l="".concat(l.slice(0,e.index)).concat(n).concat(l.slice(e.index+e[0].length))}));try{var d=(0,g.WN)([{nodeType:h.Z6.unprocessedNode,nodeValue:l}]);a.filterEquation=d}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,t){var n,r=null===(n=this.getOLSource())||void 0===n?void 0:n.getExtent();return r&&(t=t?(0,d.getMinOrMaxExtents)(t,r):[r[0],r[1],r[2],r[3]]),t}}])}(n(93866).Z)},98010:(e,t,n)=>{"use strict";n.d(t,{M:()=>I});var r=n(43994),i=n(70640),o=n(32814),a=n(64426),s=n(59615),l=n.n(s),c=n(16221),u=n(79913),d=n(92288),h=n(10454),p=n(46752),f=n(30560),g=n(81603),m=n(18934),y=n(64873),v=n(60854);function b(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 w(e,t){return e.get(S(e,t))}function A(e,t,n){return e.set(S(e,t),n),n}function S(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 C=new WeakMap,E=new WeakMap,_=new WeakMap,k=new WeakMap,T=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",{}),b(this,C,!1),b(this,E,!0),b(this,_,[]),b(this,k,[]),b(this,T,void 0),b(this,O,void 0),this.layerApi=t,A(T,this,S(P,this,L).bind(this)),A(O,this,S(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)),S(P,this,M).call(this,e)}},{key:"onRegisterLayerConfigCheck",value:function(e){return w(C,this)}},{key:"onRegisterLayerConfig",value:function(e){this.resultSet[e.layerPath]={layerPath:e.layerPath,layerStatus:e.layerStatus,layerName:(0,u.getLocalizedValue)(e.layerName,d.K.getDisplayLanguage(this.getMapId()))},e.onLayerStatusChanged(w(T,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:if(!w(_,this).includes(t)){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,(0,u.whenThisThen)((function(){var e;return"loaded"===(null===(e=t.getLayerConfig(n))||void 0===e?void 0:e.layerStatus)}),2e4);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){return w(E,this)}},{key:"onRegisterLayer",value:function(e,t){var n=(0,u.getLocalizedValue)(e.getLayerName(t),d.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},w(_,this).push(e),e.onLayerNameChanged(w(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(w(T,this))}},{key:"onUnregisterLayer",value:function(e){null==e||e.offLayerNameChanged(w(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,d.K.getDisplayLanguage(this.getMapId()))}},{key:"onProcessNameChanged",value:function(e,t){this.resultSet[e].layerName=t}},{key:"onLayerSetUpdatedProcess",value:function(e){S(P,this,j).call(this,{layerPath:e,resultSet:this.resultSet})}},{key:"onLayerSetUpdated",value:function(e){c.A.onEvent(w(k,this),e)}},{key:"offLayerSetUpdated",value:function(e){c.A.offEvent(w(k,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 p.W||e instanceof m.p||e instanceof h.zt||e instanceof g.Y||e instanceof f.GB||e instanceof y.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&&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){var n=t.layerApi.getGeoviewLayerHybrid(e.layerPath);n&&t.registerLayer(n,e.layerPath).catch((function(e){v.vF.logPromiseFailed("in registerLayer in registerLayerConfig",e)}))}}catch(e){v.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){v.vF.logError("CAUGHT in handleLayerStatusChanged",e.layerPath,t)}}function R(e,t){try{this.onProcessNameChanged(t.layerPath,(0,u.getLocalizedValue)(t.layerName,d.K.getDisplayLanguage(this.getMapId()))),this.onPropagateToStore(this.resultSet[t.layerPath],"layerName"),this.onLayerSetUpdatedProcess(t.layerPath)}catch(e){v.vF.logError("CAUGHT in handleLayerStatusChanged",t.layerPath,e)}}function j(e){c.A.emitEvent(this,w(k,this),e)}},49731:(e,t,n)=>{"use strict";n.d(t,{P:()=>w});var r=n(43994),i=n(70640),o=n(32814),a=n(71149),s=n(66138),l=n(99979),c=n(38096),u=n(59615),d=n.n(u),h=n(38890),p=n(30560),f=n(64873),g=n(98010);function m(e,t,n){return t=(0,l.A)(t),(0,a.A)(e,y()?Reflect.construct(t,n||[],(0,l.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})()}function v(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 x=new WeakSet,w=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))){e.next=18;break}if(g.M.isStateQueryable(r,t)){e.next=8;break}return e.abrupt("return",Promise.resolve());case 8:return this.resultSet[t].queryStatus="processing",b(x,this,A).call(this,this.resultSet[t]),i=g.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:b(x,this,A).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}(g.M);function A(e){"loaded"===e.layerStatus&&h.F.propagateFeatureInfoToStore(this.getMapId(),e)}},50573:(e,t,n)=>{"use strict";n.d(t,{I:()=>S});var r=n(43994),i=n(70640),o=n(32814),a=n(71149),s=n(66138),l=n(99979),c=n(38096),u=n(59615),d=n.n(u),h=n(77914),p=n(16221),f=n(60854),g=n(98010);function m(e,t,n){return t=(0,l.A)(t),(0,a.A)(e,y()?Reflect.construct(t,n||[],(0,l.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})()}function v(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function b(e,t){return e.get(x(e,t))}function x(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 w=new WeakMap,A=new WeakSet,S=function(e){function t(e){var n,r,o;return(0,i.A)(this,t),n=m(this,t,[e]),v(r=n,o=A),o.add(r),function(e,t,n){v(e,t),t.set(e,n)}(n,w,[]),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,t){return g.M.isQueryableType(e)&&g.M.isSourceQueryable(e,t)}},{key:"onRegisterLayer",value:function(e,n){(0,s.A)((0,l.A)(t.prototype),"onRegisterLayer",this).call(this,e,n),this.resultSet[n].eventListenerEnabled=!0,this.resultSet[n].queryStatus="processed",this.resultSet[n].features=[]}},{key:"onPropagateToStore",value:function(e,t){x(A,this,C).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){if(!g.M.isStateQueryable(i,e))return;r.resultSet[e].features=void 0,r.resultSet[e].queryStatus="processing",x(A,r,C).call(r,r.resultSet[e]);var o=g.M.queryLayerFeatures(r.resultSet[e],i,"at_long_lat",t);n.push(o),o.then((function(t){r.resultSet[e].features=t,r.resultSet[e].queryStatus=t?"processed":"error",x(A,r,C).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 x(A,this,_).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?x(A,this,E).call(this,e,!0):Object.keys(this.resultSet).forEach((function(e){x(A,t,E).call(t,e,!0)}))}},{key:"disableClickListener",value:function(e){var t=this;e?x(A,this,E).call(this,e,!1):Object.keys(this.resultSet).forEach((function(e){x(A,t,E).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:"onQueryEnded",value:function(e){p.A.onEvent(b(w,this),e)}},{key:"offQueryEnded",value:function(e){p.A.offEvent(b(w,this),e)}}]);var n}(g.M);function C(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 E(e,t){this.resultSet[e].eventListenerEnabled=t,this.resultSet[e].features=[],x(A,this,C).call(this,this.resultSet[e])}function _(e){p.A.emitEvent(this,b(w,this),e)}},51520:(e,t,n)=>{"use strict";n.d(t,{E:()=>v});var r=n(70640),i=n(32814),o=n(71149),a=n(66138),s=n(99979),l=n(38096),c=n(44481),u=n.n(c),d=n(60854),h=n(30560),p=n(64873),f=n(98010),g=n(98030);function m(e,t,n){return t=(0,s.A)(t),(0,o.A)(e,y()?Reflect.construct(t,n||[],(0,s.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){function t(e){var n;return(0,r.A)(this,t),n=m(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,t){return f.M.isQueryableType(e)&&!(e instanceof h.GB)&&!(e instanceof p.V)&&f.M.isSourceQueryable(e,t)}},{key:"onRegisterLayer",value:function(e,n){(0,a.A)((0,s.A)(t.prototype),"onRegisterLayer",this).call(this,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){if(!f.M.isStateQueryable(r,n))return;t.resultSet[n].feature=void 0,t.resultSet[n].queryStatus="init",g.d.setMapHoverFeatureInfo(t.getMapId(),t.resultSet[n].feature),f.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"}g.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",g.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)}}])}(f.M)},52842:(e,t,n)=>{"use strict";n.d(t,{C:()=>y});var r=n(70640),i=n(32814),o=n(71149),a=n(66138),s=n(99979),l=n(38096),c=n(55950),u=n(60854),d=n(98010);function h(e,t,n){return t=(0,s.A)(t),(0,o.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})()}function f(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 g(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,y=function(e){function t(){var e;(0,r.A)(this,t);for(var n=arguments.length,i=new Array(n),o=0;o{"use strict";n.d(t,{A:()=>ut});var r=n(28249),i=n(43994),o=n(70640),a=n(32814),s=n(64426),l=n(59615),c=n.n(l),u=n(23201),d=n(28596),h=n(36116),p=n(20687),f=n(12791),g=n(62754),m=n(48690),y=n(2399),v=n(98030),b=n(68709),x=n(79913),w=n(60854),A=n(48660),S=n(12358),C=n(71587),E=n(30560),_=n(10454),k=n(52375),T=n(21838),O=n(78643),P=n(78752),I=n(55373),M=n(12764),L=n(98178),R=n(38509),j=n(51520),F=n(49731),D=n(52842),N=n(50573),z=n(61970),V=n(62338),B=n(16221),$=n(86784),G=n(6106),U=n(80084),W=n(35587),q=n(60133),H=n(81603),Y=n(82015),K=n(71149),X=n(66138),Z=n(99979),J=n(38096),Q=n(97493),ee=n(76262),te=n(85813),ne=n(92288),re=n(10011),ie=n(47598);function oe(e,t,n){return t=(0,Z.A)(t),(0,K.A)(e,ae()?Reflect.construct(t,n||[],(0,Z.A)(e).constructor):t.apply(e,n))}function ae(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ae=function(){return!!e})()}function se(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 le(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 ce=new WeakSet,ue=function(e){function t(e,n,r){var i;return(0,o.A)(this,t),se(i=oe(this,t,[e,n,r]),ce),i}return(0,J.A)(t,e),(0,a.A)(t,[{key:"getOLLayer",value:function(){return(0,X.A)((0,Z.A)(t.prototype),"getOLLayer",this).call(this)}},{key:"getOLSource",value:function(){return this.getOLLayer().getSource()||void 0}},{key:"getLayerConfig",value:function(){return(0,X.A)((0,Z.A)(t.prototype),"getLayerConfig",this).call(this)}},{key:"getLegend",value:(n=(0,i.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,le(ce,this,de).call(this,t);case 4:if(n=e.sent){e.next=8;break}return r={type:te.y6.IMAGE_STATIC,layerName:t.layerName,legend:null},e.abrupt("return",r);case 8:return e.next=10,(0,re.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:te.y6.IMAGE_STATIC,layerName:t.layerName,legend:o},e.abrupt("return",a);case 19:return s={type:te.y6.IMAGE_STATIC,layerName:t.layerName,legend:null},e.abrupt("return",s);case 23:return e.prev=23,e.t0=e.catch(1),w.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,t){var n,r,i=this.getLayerConfig(),o=(null===(n=this.getOLSource())||void 0===n||null===(n=n.getProjection())||void 0===n?void 0:n.getCode())||this.getMapViewer().getProjection().getCode(),a=null===(r=this.getOLSource())||void 0===r?void 0:r.getImageExtent();if(a){var s,l=a;(null===(s=i.getMetadata())||void 0===s||null===(s=s.fullExtent)||void 0===s||null===(s=s.spatialReference)||void 0===s?void 0:s.wkid)!==this.getMapViewer().getProjection().getCode().replace("EPSG:","")&&(l=this.getMapViewer().convertExtentFromProjToMapProj(a,o)),t=t?(0,V.getMinOrMaxExtents)(t,l):[l[0],l[1],l[2],l[3]]}return t}}]);var n}(ie.z);function de(e){var t=this;return new Promise((function(n){var r=(0,x.getLocalizedValue)(e.source.dataAccessPath,ne.K.getDisplayLanguage(t.getMapId()));r?(r=r.toLowerCase().startsWith("http:")?"https".concat(r.slice(4)):r,Q.A.get(r,{responseType:"blob",withCredentials:!1}).then((function(e){var t;n((t=(0,ee.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 he=n(64873),pe=n(93866);function fe(e,t,n){return t=(0,Z.A)(t),(0,K.A)(e,ge()?Reflect.construct(t,n||[],(0,Z.A)(e).constructor):t.apply(e,n))}function ge(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ge=function(){return!!e})()}var me=function(e){function t(){return(0,o.A)(this,t),fe(this,t,arguments)}return(0,J.A)(t,e),(0,a.A)(t,[{key:"getOLLayer",value:function(){return(0,X.A)((0,Z.A)(t.prototype),"getOLLayer",this).call(this)}}])}(pe.Z),ye=n(13019);function ve(e,t,n){return t=(0,Z.A)(t),(0,K.A)(e,be()?Reflect.construct(t,n||[],(0,Z.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})()}var xe=function(e){function t(e,n,r){return(0,o.A)(this,t),ve(this,t,[e,n,r])}return(0,J.A)(t,e),(0,a.A)(t,[{key:"getOLLayer",value:function(){return(0,X.A)((0,Z.A)(t.prototype),"getOLLayer",this).call(this)}},{key:"getOLSource",value:function(){return this.getOLLayer().getSource()||void 0}},{key:"getLayerConfig",value:function(){return(0,X.A)((0,Z.A)(t.prototype),"getLayerConfig",this).call(this)}},{key:"getFieldType",value:function(e){return(0,ye.Vk)(this.getLayerConfig(),e,ne.K.getDisplayLanguage(this.getMapId()))}},{key:"getBounds",value:function(e,t){var n,r,i=this.getLayerConfig(),o=(null===(n=this.getOLSource())||void 0===n||null===(n=n.getProjection())||void 0===n?void 0:n.getCode())||this.getMapViewer().getProjection().getCode(),a=null===(r=this.getOLSource())||void 0===r||null===(r=r.getTileGrid())||void 0===r?void 0:r.getExtent();if(a){var s,l=a;(null===(s=i.getMetadata())||void 0===s||null===(s=s.fullExtent)||void 0===s||null===(s=s.spatialReference)||void 0===s?void 0:s.wkid)!==this.getMapViewer().getProjection().getCode().replace("EPSG:","")&&(l=this.getMapViewer().convertExtentFromProjToMapProj(a,o)),t=t?(0,V.getMinOrMaxExtents)(t,l):[l[0],l[1],l[2],l[3]]}return t}}])}(me),we=n(18934);function Ae(e,t,n){return t=(0,Z.A)(t),(0,K.A)(e,Se()?Reflect.construct(t,n||[],(0,Z.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){return(0,o.A)(this,t),Ae(this,t,[e,n,r])}return(0,J.A)(t,e),(0,a.A)(t,[{key:"getOLLayer",value:function(){return(0,X.A)((0,Z.A)(t.prototype),"getOLLayer",this).call(this)}},{key:"getLayerConfig",value:function(){return(0,X.A)((0,Z.A)(t.prototype),"getLayerConfig",this).call(this)}},{key:"getFieldType",value:function(e){return(0,ye.UB)(this.getLayerConfig(),e)}},{key:"getFieldDomain",value:function(e){return(0,ye.k7)(this.getLayerConfig(),e)}}])}(we.p);function Ee(e,t,n){return t=(0,Z.A)(t),(0,K.A)(e,_e()?Reflect.construct(t,n||[],(0,Z.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})()}var ke=function(e){function t(e,n,r){return(0,o.A)(this,t),Ee(this,t,[e,n,r])}return(0,J.A)(t,e),(0,a.A)(t,[{key:"getLayerConfig",value:function(){return(0,X.A)((0,Z.A)(t.prototype),"getLayerConfig",this).call(this)}}])}(we.p);function Te(e,t,n){return t=(0,Z.A)(t),(0,K.A)(e,Oe()?Reflect.construct(t,n||[],(0,Z.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),Te(this,t,[e,n,r])}return(0,J.A)(t,e),(0,a.A)(t,[{key:"getLayerConfig",value:function(){return(0,X.A)((0,Z.A)(t.prototype),"getLayerConfig",this).call(this)}},{key:"getFieldType",value:function(e){var t=this.getLayerConfig().getMetadata()[e].type.split(":").slice(-1)[0];return"date"===t?"date":["int","number"].includes(t)?"number":"string"}}])}(we.p);function Ie(e,t,n){return t=(0,Z.A)(t),(0,K.A)(e,Me()?Reflect.construct(t,n||[],(0,Z.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})()}function Le(e,t,n){return t=(0,Z.A)(t),(0,K.A)(e,Re()?Reflect.construct(t,n||[],(0,Z.A)(e).constructor):t.apply(e,n))}function Re(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Re=function(){return!!e})()}var je,Fe=function(e){function t(e,n,r){return(0,o.A)(this,t),Le(this,t,[e,n,r])}return(0,J.A)(t,e),(0,a.A)(t,[{key:"getOLLayer",value:function(){return(0,X.A)((0,Z.A)(t.prototype),"getOLLayer",this).call(this)}},{key:"getOLSource",value:function(){return this.getOLLayer().getSource()||void 0}},{key:"getLayerConfig",value:function(){return(0,X.A)((0,Z.A)(t.prototype),"getLayerConfig",this).call(this)}},{key:"getFieldType",value:function(e){return(0,ye.Vk)(this.getLayerConfig(),e,ne.K.getDisplayLanguage(this.getMapId()))}},{key:"getBounds",value:function(e,t){var n,r,i=this.getLayerConfig(),o=(null===(n=this.getOLSource())||void 0===n||null===(n=n.getProjection())||void 0===n?void 0:n.getCode())||this.getMapViewer().getProjection().getCode(),a=null===(r=this.getOLSource())||void 0===r||null===(r=r.getTileGrid())||void 0===r?void 0:r.getExtent();if(a){var s,l=a;(null===(s=i.getMetadata())||void 0===s||null===(s=s.fullExtent)||void 0===s||null===(s=s.spatialReference)||void 0===s?void 0:s.wkid)!==this.getMapViewer().getProjection().getCode().replace("EPSG:","")&&(l=this.getMapViewer().convertExtentFromProjToMapProj(a,o)),t=t?(0,V.getMinOrMaxExtents)(t,l):[l[0],l[1],l[2],l[3]]}return t}}])}(function(e){function t(){return(0,o.A)(this,t),Ie(this,t,arguments)}return(0,J.A)(t,e),(0,a.A)(t,[{key:"getOLLayer",value:function(){return(0,X.A)((0,Z.A)(t.prototype),"getOLLayer",this).call(this)}}])}(pe.Z)),De=n(97752),Ne=n(80995),ze=n(39225),Ve=n(91777),Be=n(91195),$e=n(5715),Ge=n(27918),Ue=n(22769),We=n(16535),qe=n(77914),He=n(55950);function Ye(e,t,n){Ke(e,t),t.set(e,n)}function Ke(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Xe(e,t){return e.get(Je(e,t))}function Ze(e,t,n){return e.set(Je(e,t),n),n}function Je(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 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 WeakSet,ut=function(){function e(t){var n,r;(0,o.A)(this,e),Ke(n=this,r=ct),r.add(n),(0,s.A)(this,"mapViewer",void 0),(0,s.A)(this,"geometry",void 0),(0,s.A)(this,"initialLayerOrder",[]),(0,s.A)(this,"featureHighlight",void 0),(0,s.A)(this,"legendsLayerSet",void 0),(0,s.A)(this,"hoverFeatureInfoLayerSet",void 0),(0,s.A)(this,"allFeatureInfoLayerSet",void 0),(0,s.A)(this,"featureInfoLayerSet",void 0),Ye(this,Qe,void 0),Ye(this,et,{}),Ye(this,tt,{}),Ye(this,nt,{}),Ye(this,rt,{}),Ye(this,it,{layerPath:void 0,originalOpacity:void 0}),Ye(this,ot,[]),Ye(this,at,[]),Ye(this,st,[]),Ye(this,lt,[]),this.mapViewer=t,this.legendsLayerSet=new D.C(this),this.hoverFeatureInfoLayerSet=new j.E(this),this.allFeatureInfoLayerSet=new F.P(this),this.featureInfoLayerSet=new N.I(this),Ze(Qe,this,[this.legendsLayerSet,this.hoverFeatureInfoLayerSet,this.featureInfoLayerSet,this.allFeatureInfoLayerSet]),this.geometry=new m.p(this.mapViewer),this.featureHighlight=new y.H(this.mapViewer)}return(0,a.A)(e,[{key:"getMapId",value:function(){return this.mapViewer.mapId}},{key:"getGeoviewLayerIds",value:function(){return Object.keys(Xe(tt,this))}},{key:"getGeoviewLayers",value:function(){return Object.values(Xe(tt,this))}},{key:"getGeoviewLayer",value:function(e){return Xe(tt,this)[e.split("/")[0]]}},{key:"getGeoviewLayerByIdAsync",value:(n=(0,i.A)(c().mark((function e(t,n,r,i){var o;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(o=this.getGeoviewLayer(t))){e.next=13;break}if(n){e.next=4;break}return e.abrupt("return",Promise.resolve(o));case 4:return e.prev=4,e.next=7,o.waitForAllLayerStatusAreGreaterThanOrEqualTo(r,i);case 7:return e.abrupt("return",o);case 10:throw e.prev=10,e.t0=e.catch(4),new Error("Took too long for layer ".concat(t," to get in 'processed' phase"));case 13:throw new Error("Layer ".concat(t," not found."));case 14:case"end":return e.stop()}}),e,this,[[4,10]])}))),function(e,t,r,i){return n.apply(this,arguments)})},{key:"getGeoviewLayerIdsNew",value:function(){return Object.keys(Xe(rt,this))}},{key:"getGeoviewLayersNew",value:function(){return Object.values(Xe(rt,this))}},{key:"getGeoviewLayerNew",value:function(e){return Xe(rt,this)[e]}},{key:"getGeoviewLayerIdsHybrid",value:function(){return e.LAYERS_HYBRID_MODE?this.getGeoviewLayerIdsNew():this.getGeoviewLayerIds()}},{key:"getGeoviewLayersHybrid",value:function(){return e.LAYERS_HYBRID_MODE?this.getGeoviewLayersNew():this.getGeoviewLayers()}},{key:"getGeoviewLayerHybrid",value:function(t){return e.LAYERS_HYBRID_MODE?this.getGeoviewLayerNew(t):this.getGeoviewLayer(t)}},{key:"isLayerEntryConfigRegistered",value:function(e){return!!Xe(et,this)[e]}},{key:"getLayerEntryConfigIds",value:function(){return Object.keys(Xe(et,this))}},{key:"getLayerEntryConfigs",value:function(){return Object.values(Xe(et,this))}},{key:"getLayerEntryConfig",value:function(e){var t;return null===(t=Xe(et,this))||void 0===t?void 0:t[e]}},{key:"setLayerEntryConfigObsolete",value:function(e){Xe(et,this)[e.layerPath]=e}},{key:"getOLLayer",value:function(t){var n;return e.LAYERS_HYBRID_MODE?null===(n=this.getGeoviewLayerNew(t))||void 0===n?void 0:n.getOLLayer():Xe(nt,this)[t]}},{key:"getOLLayerAsync",value:function(e,t,n){var r=this;return(0,x.whenThisThen)((function(){return r.getOLLayer(e)}),t,n)}},{key:"loadListOfGeoviewLayer",value:function(t){for(var n=this,i=Je(ct,this,dt).call(this,t),o=[],a=0;a0;return this.getGeoviewLayers().forEach((function(t){t.allLayerStatusAreGreaterThanOrEqualTo(e)||(null==n||n(t),r=!1)})),[r,Object.keys(Xe(tt,this)).length]}},{key:"checkFeatureInfoLayerResultSetsReady",value:function(e){var t=this,n=!0;return this.getLayerEntryConfigs().forEach((function(r){var i;if(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=Xe(et,this)[e]?null===(t=Xe(et,this)[e].parentLayerConfig)||void 0===t?void 0:t.listOfLayerEntryConfig.findIndex((function(t){return t===Xe(et,r)[e]})):void 0,a=null===(n=Xe(et,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 Xe(et,r)[e])})),a&&a.splice(o,1),Xe(tt,this)[i[0]]){var s=Xe(tt,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 Xe(tt,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(Xe(et,this)),n=[];return t.forEach((function(t){Object.keys(Xe(et,e)).filter((function(e){return e.includes(t)})).forEach((function(t){var r,i=null===(r=e.getGeoviewLayer(t))||void 0===r?void 0:r.calculateBounds(t);!n.length&&i?n=i:i&&(n=(0,V.getMinOrMaxExtents)(n,i))}))})),n}},{key:"refreshLayers",value:function(){this.getGeoviewLayers().forEach((function(e){!function e(t){if(t){var n=t.get("layers");if(n)n.forEach((function(t){e(t)}));else t.get("source").refresh()}}(e.olRootLayer)}))}},{key:"setItemVisibility",value:function(e,t,n){var r,i,o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=Xe(et,this)[e];if(n&&!v.d.getMapVisibilityFromOrderedLayerInfo(this.getMapId(),e)&&v.d.setOrToggleMapLayerVisibility(this.getMapId(),e,!0),"classBreaks"===(null===(r=a.style[t.geometryType])||void 0===r?void 0:r.styleType)){var s=a.style[t.geometryType],l=s.classBreakStyleInfo.find((function(e){return e.label===t.name}));l?l.visible=n:s.defaultVisible=n}else if("uniqueValue"===(null===(i=a.style[t.geometryType])||void 0===i?void 0:i.styleType)){var c=a.style[t.geometryType],u=c.uniqueValueStyleInfo.find((function(e){return e.label===t.name}));u?u.visible=n:c.defaultVisible=n}o&&He.K.setItemVisibility(this.getMapId(),t,n),this.getGeoviewLayer(e).applyViewFilter(e,""),Je(ct,this,Ct).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){v.d.setOrToggleMapLayerVisibility(this.getMapId(),e,t)}},{key:"setLayerName",value:function(e,t){var n=this.getGeoviewLayerHybrid(e);n?n.setLayerName(e,(0,x.createLocalizedString)(t)):w.vF.logError("Unable to find layer ".concat(e))}},{key:"redefineFeatureFields",value:function(e,t,n){var r,i,o=Xe(et,this)[e];o?null!==(r=o.source)&&void 0!==r&&r.featureInfo&&!1!==(null===(i=o.source)||void 0===i?void 0:i.featureInfo.queryable)?o.source.featureInfo[n]=(0,x.createLocalizedString)(t):w.vF.logError("".concat(e," is not queryable")):w.vF.logError("Unable to find layer ".concat(e))}},{key:"onLayerAdded",value:function(e){B.A.onEvent(Xe(ot,this),e)}},{key:"offLayerAdded",value:function(e){B.A.offEvent(Xe(ot,this),e)}},{key:"emitLayerRemoved",value:function(e){B.A.emitEvent(this,Xe(at,this),e)}},{key:"onLayerRemoved",value:function(e){B.A.onEvent(Xe(at,this),e)}},{key:"offLayerRemoved",value:function(e){B.A.offEvent(Xe(at,this),e)}},{key:"emitLayerVisibilityToggled",value:function(e){B.A.emitEvent(this,Xe(st,this),e)}},{key:"onLayerVisibilityToggled",value:function(e){B.A.onEvent(Xe(st,this),e)}},{key:"offLayerVisibilityToggled",value:function(e){B.A.offEvent(Xe(st,this),e)}},{key:"onLayerItemVisibilityToggled",value:function(e){B.A.onEvent(Xe(lt,this),e)}},{key:"offLayerItemVisibilityToggled",value:function(e){B.A.offEvent(Xe(lt,this),e)}}],[{key:"generateArrayOfLayerOrderInfo",value:function(e){var t=[],n=function e(n,r){var i,o,a,s,l,c,u,d=r.endsWith(n.layerId)?r:"".concat(r,"/").concat(n.layerId),h={layerPath:d,visible:!1!==(null===(i=n.initialSettings)||void 0===i||null===(i=i.states)||void 0===i?void 0:i.visible),queryable:void 0===(null===(o=n.source)||void 0===o||null===(o=o.featureInfo)||void 0===o?void 0:o.queryable)||(null===(a=n.source)||void 0===a||null===(a=a.featureInfo)||void 0===a?void 0:a.queryable),hoverable:void 0===(null===(s=n.initialSettings)||void 0===s||null===(s=s.states)||void 0===s?void 0:s.hoverable)||(null===(l=n.initialSettings)||void 0===l||null===(l=l.states)||void 0===l?void 0:l.hoverable)};(t.push(h),null!==(c=n.listOfLayerEntryConfig)&&void 0!==c&&c.length)&&(null===(u=n.listOfLayerEntryConfig)||void 0===u||u.forEach((function(t){e(t,d)})))};if(e.geoviewLayerId)if(e.listOfLayerEntryConfig.length>1){var r,i="".concat(e.geoviewLayerId,"/").concat(e.geoviewLayerId),o={layerPath:i,visible:!1!==(null===(r=e.initialSettings)||void 0===r||null===(r=r.states)||void 0===r?void 0:r.visible)};t.push(o),e.listOfLayerEntryConfig.forEach((function(e){n(e,i)}))}else{var a=e.listOfLayerEntryConfig[0];n(a,a.layerPath)}else n(e,e.layerPath);return t}}]);var t,n}();function dt(e){var t=this;return e&&e.length>0?e.filter((function(n,r){for(var i=0;ii)return Je(ct,t,ht).call(t,n),!1;return!0})):[]}function ht(e){$.FHQ.maps[this.getMapId()].notifications.showError("validation.layer.usedtwice",[e.geoviewLayerId,this.getMapId()]),w.vF.logError("Duplicate use of geoview layer identifier ".concat(e.geoviewLayerId," on map ").concat(this.getMapId()))}function pt(e){var t,n=this;if((0,S.vM)(e)?t=new S.kx(this.getMapId(),e):(0,C.P0)(e)?t=new C.OH(this.getMapId(),e):(0,R.WW)(e)?t=new R.pf(this.getMapId(),e):(0,E.Xx)(e)?t=new E.GB(this.getMapId(),e):(0,_.IU)(e)?t=new _.zt(this.getMapId(),e):(0,k.$f)(e)?t=new k.Uw(this.getMapId(),e):(0,T.yl)(e)?t=new T.$x(this.getMapId(),e):(0,O.HO)(e)?t=new O.S6(this.getMapId(),e):(0,P.OV)(e)?t=new P.dS(this.getMapId(),e):(0,I.dr)(e)?t=new I.ke(this.getMapId(),e):(0,M.ik)(e)?t=new M.nd(this.getMapId(),e):(0,L.c9)(e)&&(t=new L.RZ(this.getMapId(),e)),t){Xe(tt,this)[t.geoviewLayerId]=t,t.getAllLayerEntryConfigs().forEach((function(e){w.vF.logDebug("Layer entry config being registered for ".concat(e.layerPath," on map ").concat(n.getMapId()),e),n.registerLayerConfigInit(e)})),t.onLayerEntryProcessed((function(e,t){w.vF.logDebug("Layer entry config processed for ".concat(t.config.layerPath," on map ").concat(n.getMapId()),t.config)})),t.onLayerCreation((function(e,t){w.vF.logDebug("OpenLayer created for ".concat(t.config.layerPath," on map ").concat(n.getMapId()),t.config),Xe(nt,n)[t.config.layerPath]=t.layer,je.LAYERS_HYBRID_MODE&&Je(ct,n,ft).call(n,n.getMapId(),e,t.layer,t.config)}));var r=new Promise((function(e,r){t.createGeoViewLayers().then((function(){Je(ct,n,gt).call(n,t),e(),Je(ct,n,St).call(n,{layer:t})})).catch((function(e){r(e)}))}));return{layer:t,promiseLayer:r}}}function ft(e,t,n,r){var i,o,a;if(je.LAYERS_HYBRID_MODE&&(i=t.getLayerMetadata(r.layerPath),o=t.getTemporalDimension(r.layerPath),i&&r instanceof q.d&&r.setMetadata(i)),n instanceof d.A&&r instanceof Ne.q?a=new H.Y(e,n,r):n instanceof d.A&&r instanceof $e.Q?a=new Y.o(e,n,r):n instanceof d.A&&r instanceof Ge.V?a=new ue(e,n,r):n instanceof d.A&&r instanceof Be.Q?a=new he.V(e,n,r):n instanceof f.A&&r instanceof We.m?a=new xe(e,n,r):n instanceof u.A&&r instanceof De.h?a=new Ce(e,n,r):n instanceof p.A&&r instanceof ze.d?a=new ke(e,n,r):n instanceof p.A&&r instanceof Ve.j?a=new Pe(e,n,r):n instanceof h.A&&r instanceof Ue.E&&(a=new Fe(e,n,r)),a)return Xe(rt,this)[r.layerPath]=a,o&&a.setTemporalDimension(o),a.init(),a;w.vF.logError("Unsupported GVLayer for ".concat(r.layerPath))}function gt(e){var t=this;0!==e.layerLoadError.length&&e.layerLoadError.forEach((function(e){var n=e.layer,r=e.loggerMessage;w.vF.logError(r),$.FHQ.maps[t.getMapId()].notifications.showError("validation.layer.loadfailed",[n,t.getMapId()])})),e.allLayerStatusAreGreaterThanOrEqualTo("error")||this.mapViewer.map.addLayer(e.olRootLayer),w.vF.logInfo("GeoView Layer ".concat(e.geoviewLayerId," added to map ").concat(this.getMapId()),e),v.d.setLayerZIndices(this.getMapId())}function mt(e){if(-1===v.d.getMapIndexFromOrderedLayerInfo(this.getMapId(),e.layerPath)){var t=e.layerPath.split(".")[1];if(-1!==v.d.getMapIndexFromOrderedLayerInfo(this.getMapId(),t))v.d.replaceOrderedLayerInfo(this.getMapId(),e,t);else if(e.parentLayerConfig){var n=e.layerPath.split("/");n.pop();var r=n.join("/"),i=v.d.getMapIndexFromOrderedLayerInfo(this.getMapId(),r),o=v.d.getMapOrderedLayerInfo(this.getMapId()).filter((function(e){return e.layerPath.startsWith(r)})).length;-1!==i?v.d.addOrderedLayerInfo(this.getMapId(),e,i+o):v.d.addOrderedLayerInfo(this.getMapId(),e.parentLayerConfig)}else v.d.addOrderedLayerInfo(this.getMapId(),e)}}function yt(e){return vt.apply(this,arguments)}function vt(){return(vt=(0,i.A)(c().mark((function e(t){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,x.whenThisThen)((function(){return t.isGreaterThanOrEqualTo("processed")}),Et._);case 3:this.getGeoviewLayerHybrid(t.layerPath)&&G.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 bt(e){v.d.removeOrderedLayerInfo(this.getMapId(),e.layerPath)}function xt(e){G.t.removeTimeSliderLayer(this.getMapId(),e.layerPath)}function wt(e){U.U.removeGeochartChart(this.getMapId(),e.layerPath)}function At(e){W.Z.removeLayerPath(this.getMapId(),e.layerPath)}function St(e){B.A.emitEvent(this,Xe(ot,this),e)}function Ct(e){B.A.emitEvent(this,Xe(lt,this),e)}je=ut;var Et={_:2e4};(0,s.A)(ut,"LAYERS_HYBRID_MODE",!1)},62754:(e,t,n)=>{"use strict";n.d(t,{h:()=>V});var r=n(43994),i=n(70640),o=n(32814),a=n(59615),s=n.n(a),l=n(64426),c=n(97493),u=n(48660),d=n(85813),h=n(79913),p=n(60854),f=n(74490),g=n(91777),m=n(22769),y=n(39225),v=n(97752),b=n(51397),x=n(16535),w=n(27918),A=n(91195),S=n(80995);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){var o=r.layers[0];if(o){var a=o.layerType,s=o.layerEntries,l=o.name,c=o.url,C=o.id,E=o.serverType,_=c.indexOf("FeatureServer")>-1;if(a!==d.y6.ESRI_DYNAMIC||_)if(_)for(var k=function(){var e="".concat(c,"/").concat(s[T].index),t={geoviewLayerId:"".concat(C),geoviewLayerName:(0,h.createLocalizedString)(l),metadataAccessPath:(0,h.createLocalizedString)(e),geoviewLayerType:d.y6.ESRI_FEATURE,listOfLayerEntryConfig:[]};t.listOfLayerEntryConfig=s.map((function(e){return new v.h({geoviewLayerConfig:t,schemaTag:d.y6.ESRI_FEATURE,entryType:u.hJ.VECTOR,layerId:"".concat(e.index),source:{format:"EsriJSON",dataAccessPath:(0,h.createLocalizedString)(c)}})})),n.push(t)},T=0;T{"use strict";n.d(t,{H:()=>j});var r=n(70640),i=n(32814),o=n(64426),a=n(94994),s=n(44999),l=n(83605),c=n(13645),u=n(25899),d=n(22840),h=n(47616),p=n(20662),f=n(17567),g=n(24438),m=n(67087),y=n(4180),v=n(62767),b=n(1660),x=n(41218),w=n(60854);function A(e,t,n){S(e,t),t.set(e,n)}function S(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function C(e,t,n){return e.set(_(e,t),n),n}function E(e,t){return e.get(_(e,t))}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 k=new WeakMap,T=new WeakMap,O=new WeakMap,P=new WeakMap,I=new WeakMap,M=new WeakMap,L=new WeakMap,R=new WeakSet,j=function(){return(0,i.A)((function e(t){var n,i;(0,r.A)(this,e),S(n=this,i=R),i.add(n),A(this,k,new l.A),(0,o.A)(this,"overlayLayer",void 0),A(this,T,"black"),A(this,O,new c.A({color:[0,0,0,.3]})),A(this,P,new u.Ay({stroke:new d.A({color:"black",width:1.25}),fill:E(O,this)})),A(this,I,new u.Ay({stroke:new d.A({color:"black",width:1.25})})),A(this,M,[]),A(this,L,null),this.overlayLayer=new s.A({source:E(k,this),map:t.map})}),[{key:"changeHighlightColor",value:function(e){C(T,this,e);var t=new d.A({color:"black",width:1.25}),n=[0,0,0,.3];switch(e){case"white":n=[255,255,255,.3],t=new d.A({color:"white",width:1.25});break;case"red":n=[255,0,0,.3],t=new d.A({color:"red",width:1.25});break;case"green":n=[0,255,255,.3],t=new d.A({color:"green",width:1.25});break;case"black":break;default:w.vF.logWarning("Ineligible color - defaulted to black")}E(O,this).setColor(n),E(P,this).setStroke(t),E(P,this).setFill(E(O,this))}},{key:"removeHighlight",value:function(e){if("all"===e&&E(M,this).length){for(var t=0;t=0;n--)(E(M,this)[n]===e||E(M,this)[n].startsWith("".concat(e,"-")))&&(E(k,this).getFeatureById(E(M,this)[n])&&E(k,this).removeFeature(E(k,this).getFeatureById(E(M,this)[n])),E(M,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);_(R,this,F).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);_(R,this,F).call(this,l,c)}else if(t instanceof y.A)for(var w=e.featureIcon,A=w.height,S=w.width,C=Math.min(A,S)/2-2<7?7:Math.min(A,S)/2-2,k=t.getCoordinates(),P=(0,a.v6)(e.geometry),I=0;I1&&void 0!==arguments[1]&&arguments[1];E(k,this).getFeatureById("geoLocatorFeature")&&(E(k,this).removeFeature(E(k,this).getFeatureById("geoLocatorFeature")),clearTimeout(E(L,this)));var r=(0,f.VY)(e),i=new p.A(r),o=E(I,this);i.setStyle(o),i.setId("geoLocatorFeature"),E(k,this).addFeature(i),n||C(L,this,setTimeout((function(){return E(k,t).removeFeature(E(k,t).getFeatureById("geoLocatorFeature"))}),5e3))}},{key:"removeBBoxHighlight",value:function(){E(k,this).removeFeature(E(k,this).getFeatureById("geoLocatorFeature"))}}])}();function F(e,t){e.setStyle(E(P,this)),e.setId(t),E(M,this).push(t),E(k,this).addFeature(e)}},48660:(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(85813),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,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)}},26098:(e,t,n)=>{"use strict";n.d(t,{F:()=>Ze});var r=n(47361),i=n(43994),o=n(70640),a=n(32814),s=n(64426),l=n(44481),c=n.n(l),u=n(59615),d=n.n(u),h=n(66143),p=n(36203),f=n(86458),g=n(8259),m=n(58643),y=n(39534),v=n(58368),b=n(12311),x=n(86784),w=n(90763),A=n(97886),S=n(21350),C=n(18114),E=n(71149),_=n(66138),k=n(99979),T=n(38096),O=n(64874),P=n(75320),I=n(22288),M=n(20662),L=n(33611),R=n(44999),j=n(92425),F=n(62821),D=n(25899),N=n(17217),z=n(94994),V=n(99565);const B="select";class $ extends I.Ay{constructor(e,t,n,r){super(e),this.selected=t,this.deselected=n,this.mapBrowserEvent=r}}const G={};class U extends L.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:V.t5,this.addCondition_=e.addCondition?e.addCondition:V.Zm,this.removeCondition_=e.removeCondition?e.removeCondition:V.Zm,this.toggleCondition_=e.toggleCondition?e.toggleCondition:V.Kg,this.multi_=!!e.multi&&e.multi,this.filter_=e.filter?e.filter:j.rT,this.hitTolerance_=e.hitTolerance?e.hitTolerance:0,this.style_=void 0!==e.style?e.style:function(){const e=(0,D.mY)();return(0,N.X$)(e.Polygon,e.LineString),(0,N.X$)(e.GeometryCollection,e.LineString),function(t){return t.getGeometry()?e[t.getGeometry().getType()]:null}}(),this.features_=e.features||new O.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=j.rT;this.layerFilter_=t,this.featureLayerAssociation_={}}addFeatureLayerAssociation_(e,t){this.featureLayerAssociation_[(0,z.v6)(e)]=t}getFeatures(){return this.features_}getHitTolerance(){return this.hitTolerance_}getLayer(e){return this.featureLayerAssociation_[(0,z.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(P.A.ADD,this.boundAddFeature_),this.features_.addEventListener(P.A.REMOVE,this.boundRemoveFeature_),this.style_&&this.features_.forEach(this.applySelectedStyle_.bind(this))):(this.features_.removeEventListener(P.A.ADD,this.boundAddFeature_),this.features_.removeEventListener(P.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 R.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,z.v6)(e);t in G||(G[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 U&&r.getStyle()&&-1!==r.getFeatures().getArray().lastIndexOf(e))return void e.setStyle(r.getStyle())}const n=(0,z.v6)(e);e.setStyle(G[n]),delete G[n]}removeFeatureLayerAssociation_(e){delete this.featureLayerAssociation_[(0,z.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,F.I)(this.featureLayerAssociation_),o.forEachFeatureAtPixel(e.pixel,((e,t)=>{if(e instanceof M.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 M.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 $(B,l,s,e)),!0}}const W=U;var q=n(16221),H=n(62338),Y=n(38902);function K(e,t,n){return t=(0,k.A)(t),(0,E.A)(e,X()?Reflect.construct(t,n||[],(0,k.A)(e).constructor):t.apply(e,n))}function X(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(X=function(){return!!e})()}function Z(e,t,n){J(e,t),t.set(e,n)}function J(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Q(e,t){return e.get(ee(e,t))}function ee(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 te=new WeakMap,ne=new WeakMap,re=new WeakSet,ie=function(e){function t(e){var n;(0,o.A)(this,t),function(e,t){J(e,t),t.add(e)}(n=K(this,t,[e]),re),Z(n,te,void 0),Z(n,ne,[]);var r,i,a,s={features:e.features,style:(0,H.convertTypeFeatureStyleToOpenLayersStyle)(e.style),hitTolerance:e.hitTolerance||0};return r=te,i=n,a=new W(s),r.set(ee(r,i),a),Q(te,n).on("select",ee(re,n,oe).bind(n)),n}return(0,T.A)(t,e),(0,a.A)(t,[{key:"startInteraction",value:function(){(0,_.A)((0,k.A)(t.prototype),"startInteraction",this).call(this,Q(te,this))}},{key:"stopInteraction",value:function(){(0,_.A)((0,k.A)(t.prototype),"stopInteraction",this).call(this,Q(te,this))}},{key:"getFeatures",value:function(){return Q(te,this).getFeatures()}},{key:"onSelectChanged",value:function(e){q.A.onEvent(Q(ne,this),e)}},{key:"offSelectChanged",value:function(e){q.A.offEvent(Q(ne,this),e)}}])}(Y.N);function oe(e){q.A.emitEvent(this,Q(ne,this),e)}var ae=n(83271),se=n(23989),le=n(91424),ce=n(48818),ue=n(23523),de=n(82942),he=n(79913),pe=n(60854),fe=n(46457),ge=n(98030),me=n(92288);function ye(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function ve(e,t){return e.get(be(e,t))}function be(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 xe=new WeakMap,we=new WeakSet,Ae=function(){return(0,a.A)((function e(t){(0,o.A)(this,e),function(e,t){ye(e,t),t.add(e)}(this,we),(0,s.A)(this,"mapId",void 0),function(e,t,n){ye(e,t),t.set(e,n)}(this,xe,[]),this.mapId=t}),[{key:"addNotificationMessage",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];be(we,this,Ce).call(this,"info",e,t)}},{key:"addNotificationSuccess",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];be(we,this,Ce).call(this,"success",e,t)}},{key:"addNotificationWarning",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];be(we,this,Ce).call(this,"warning",e,t)}},{key:"addNotificationError",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];be(we,this,Ce).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]:{};be(we,this,Ee).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]:{};be(we,this,Ee).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]:{};be(we,this,Ee).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]:{};be(we,this,Ee).call(this,"error",e,t,r),n&&this.addNotificationError(e,t)}},{key:"onSnackbarOpen",value:function(e){q.A.onEvent(ve(xe,this),e)}},{key:"offSnackbarOpen",value:function(e){q.A.offEvent(ve(xe,this),e)}}])}();function Se(e,t){var n=(0,he.getLocalizedMessage)(e,me.K.getDisplayLanguage(this.mapId));return t.length>0&&(n=(0,he.replaceParams)(t,n)),n}function Ce(e,t,n){var r={key:(0,he.generateId)(),notificationType:e,message:be(we,this,Se).call(this,t,n),count:1};me.K.addNotification(this.mapId,r).catch((function(e){pe.vF.logPromiseFailed("addNotification in Notifications",e)}))}function Ee(e,t,n,r){var i={snackbarType:e,message:be(we,this,Se).call(this,t,n),button:r};be(we,this,_e).call(this,i)}function _e(e){q.A.emitEvent(this,ve(xe,this),e)}function ke(e,t,n){Te(e,t),t.set(e,n)}function Te(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Oe(e,t,n){return e.set(Ie(e,t),n),n}function Pe(e,t){return e.get(Ie(e,t))}function Ie(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,Le=new WeakMap,Re=new WeakMap,je=new WeakMap,Fe=new WeakMap,De=new WeakMap,Ne=new WeakMap,ze=new WeakMap,Ve=new WeakMap,Be=new WeakMap,$e=new WeakMap,Ge=new WeakMap,Ue=new WeakMap,We=new WeakMap,qe=new WeakMap,He=new WeakMap,Ye=new WeakMap,Ke=new WeakMap,Xe=new WeakSet,Ze=function(){return(0,a.A)((function e(t,n){(0,o.A)(this,e),function(e,t){Te(e,t),t.add(e)}(this,Xe),(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,"basemap",void 0),(0,s.A)(this,"notifications",void 0),(0,s.A)(this,"layer",void 0),(0,s.A)(this,"modal",void 0),ke(this,Me,void 0),ke(this,Le,!1),ke(this,Re,!1),ke(this,je,!1),ke(this,Fe,!1),ke(this,De,[]),ke(this,Ne,[]),ke(this,ze,[]),ke(this,Ve,[]),ke(this,Be,[]),ke(this,$e,[]),ke(this,Ge,[]),ke(this,Ue,[]),ke(this,We,[]),ke(this,qe,[]),ke(this,He,[]),ke(this,Ye,[]),ke(this,Ke,void 0),this.mapId=t.mapId,this.mapFeaturesConfig=t,Oe(Me,this,n),this.appBarApi=new A.r(this.mapId),this.navBarApi=new S.v(this.mapId),this.footerBarApi=new C.x(this.mapId),this.notifications=new Ae(this.mapId),this.modal=new de.ModalApi,this.basemap=new y.i(ge.d.getBasemapOptions(this.mapId),this.mapId)}),[{key:"mapInit",get:function(){return Pe(Le,this)}},{key:"mapReady",get:function(){return Pe(Re,this)}},{key:"mapLayersProcessed",get:function(){return Pe(je,this)}},{key:"mapLayersLoaded",get:function(){return Pe(Fe,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,H.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}),controls:[],keyboardEventTarget:document.getElementById("map-".concat(this.mapId))});return this.map=c,this.initMap(),c}},{key:"initMap",value:function(){this.map.on("moveend",Ie(Xe,this,Qe).bind(this)),Ie(Xe,this,Je).call(this,this.getView()),"static"!==this.mapFeaturesConfig.map.interaction&&(this.map.on("pointermove",c()(Ie(Xe,this,tt).bind(this),10,{leading:!0}).bind(this)),this.map.on("singleclick",c()(Ie(Xe,this,nt).bind(this),1e3,{leading:!0}).bind(this))),Oe(Ke,this,Date.now()),this.layer=new v.A(this),this.layer.loadListOfGeoviewLayer(this.mapFeaturesConfig.map.listOfGeoviewLayerConfig).catch((function(e){pe.vF.logPromiseFailed("loadListOfGeoviewLayer in initMap in MapViewer",e)})),this.loadGeometries(),Oe(Le,this,!0),Ie(Xe,this,pt).call(this),ge.d.resetBasemap(this.mapId).then().catch((function(e){pe.vF.logPromiseFailed(" MapEventProcessor.resetBasemap in map-viewer",e)})),Ie(Xe,this,st).call(this)}},{key:"addComponent",value:function(e,t){e&&t&&Ie(Xe,this,St).call(this,{mapComponentId:e,component:t})}},{key:"removeComponent",value:function(e){e&&Ie(Xe,this,Ct).call(this,{mapComponentId:e})}},{key:"addLocalizeRessourceBundle",value:function(e,t){Pe(Me,this).addResourceBundle(e,"translation",t,!0,!1)}},{key:"getDisplayLanguage",value:function(){return me.K.getDisplayLanguage(this.mapId)}},{key:"getDisplayTheme",value:function(){return me.K.getDisplayTheme(this.mapId)}},{key:"getMapState",value:function(){return ge.d.getMapState(this.mapId)}},{key:"getView",value:function(){return this.map.getView()}},{key:"getProjection",value:function(){return this.getView().getProjection()}},{key:"setInteraction",value:function(e){ge.d.setInteraction(this.mapId,e)}},{key:"setLanguage",value:function(e,t){if(g.ns.includes(e)){var n=me.K.setDisplayLanguage(this.mapId,e);return t&&pe.vF.logInfo("reset layers not implemented yet"),n}return this.notifications.addNotificationError((0,he.getLocalizedMessage)("validation.changeDisplayLanguage",e)),Promise.resolve([void 0,void 0])}},{key:"setProjection",value:function(e){return g.if.includes(Number(e))?ge.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)?me.K.setDisplayTheme(this.mapId,e):this.notifications.addNotificationError((0,he.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(),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),Ie(Xe,this,Je).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:(e=(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,ge.d.zoomToExtent(this.mapId,t);case 2:case"end":return e.stop()}}),e,this)}))),function(t){return e.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(){ge.d.clickMarkerIconHide(this.mapId)}},{key:"clickMarkerIconShow",value:function(e){ge.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,he.generateId)(null))})).catch((function(e){pe.vF.logPromiseFailed("response.json in loadGeometry in MapViewer",e)}))})).catch((function(e){pe.vF.logPromiseFailed("fetch in loadGeometries in MapViewer",e)}))}))}},{key:"remove",value:function(e){var t=this,n=document.getElementById(this.mapId);return n.classList.remove("geoview-map"),w.k.removePlugins(this.mapId).then((function(){var r;try{t.layer.removeAllGeoviewLayers()}catch(e){}t.overviewRoot&&(null===(r=t.overviewRoot)||void 0===r||r.unmount()),(0,x.d1f)(t.mapId),(0,m.e4)(t.mapId),e&&n.remove(),setTimeout((function(){return delete x.FHQ.maps[t.mapId]}),1e3)})).catch((function(e){pe.vF.logError("Couldn't remove map in map-viewer",e)})),n}},{key:"reload",value:function(){var e=this.remove(!1),t=ge.d.getStoreConfig(this.mapId);setTimeout((function(){return x.FHQ.createMapFromConfig(e.id,JSON.stringify(t)).catch((function(e){pe.vF.logError("Couldn't reload the map in map-viewer",e)}))}),1500)}},{key:"zoomToExtent",value:function(e,t){return ge.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 ge.d.zoomToExtent(this.mapId,r,t)}},{key:"fitBounds",value:function(e){var t,n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(e){var i=this.getMapState().currentProjection;t=r?b.M.transformExtent(e,"EPSG:".concat(r),b.M.PROJECTIONS[i],20):b.M.transformExtent(e,b.M.PROJECTIONS[i],b.M.PROJECTIONS[i],25)}else this.layer.getGeoviewLayerIds().forEach((function(e){var r;if(t){var i,o=null===(i=n.layer.getGeoviewLayer(e))||void 0===i?void 0:i.getMetadataBounds(e);o&&(t=[Math.min(o[0],t[0]),Math.min(o[1],t[1]),Math.max(o[2],t[2]),Math.max(o[3],t[3])])}else t=null===(r=n.layer.getGeoviewLayer(e))||void 0===r?void 0:r.getMetadataBounds(e)}));t&&(this.getView().fit(t,{size:this.map.getSize()}),this.getView().setZoom(this.getView().getZoom()-.15))}},{key:"initSelectInteractions",value:function(){var e=new ie({mapViewer:this,hitTolerance:5});return e.startInteraction(),e}},{key:"initExtentInteractions",value:function(){var e=new se.z({mapViewer:this,pixelTolerance:5});return e.startInteraction(),e}},{key:"initTranslateInteractions",value:function(){var e=this.initSelectInteractions().getFeatures(),t=new ue.H({mapViewer:this,features:e});return t.startInteraction(),t}},{key:"initDrawInteractions",value:function(e,t,n){var r=new ae.X({mapViewer:this,geometryGroupKey:e,type:t,style:n});return r.startInteraction(),r}},{key:"initModifyInteractions",value:function(e){var t=new le.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:"checkNorth",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:fe.Tg[1],y:fe.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 b.M.transform(e,t,this.getProjection())}},{key:"convertCoordinateFromMapProjToProj",value:function(e,t){return b.M.transform(e,this.getProjection(),t)}},{key:"convertExtentFromProjToMapProj",value:function(e,t){return b.M.transformExtent(e,t,this.getProjection())}},{key:"convertExtentFromMapProjToProj",value:function(e,t){return b.M.transformExtent(e,this.getProjection(),t)}},{key:"onMapInit",value:function(e){q.A.onEvent(Pe(De,this),e)}},{key:"offMapInit",value:function(e){q.A.offEvent(Pe(De,this),e)}},{key:"onMapReady",value:function(e){q.A.onEvent(Pe(Ne,this),e)}},{key:"offMapReady",value:function(e){q.A.offEvent(Pe(Ne,this),e)}},{key:"onMapLayersProcessed",value:function(e){q.A.onEvent(Pe(ze,this),e)}},{key:"offMapLayersProcessed",value:function(e){q.A.offEvent(Pe(ze,this),e)}},{key:"onMapLayersLoaded",value:function(e){q.A.onEvent(Pe(Ve,this),e)}},{key:"offMapLayersLoaded",value:function(e){q.A.offEvent(Pe(Ve,this),e)}},{key:"onMapMoveEnd",value:function(e){q.A.onEvent(Pe(Be,this),e)}},{key:"offMapMoveEnd",value:function(e){q.A.offEvent(Pe(Be,this),e)}},{key:"onMapPointerMove",value:function(e){q.A.onEvent(Pe($e,this),e)}},{key:"offMapPointerMove",value:function(e){q.A.offEvent(Pe($e,this),e)}},{key:"onMapSingleClick",value:function(e){q.A.onEvent(Pe(Ge,this),e)}},{key:"offMapSingleClick",value:function(e){q.A.offEvent(Pe(Ge,this),e)}},{key:"onMapZoomEnd",value:function(e){q.A.onEvent(Pe(Ue,this),e)}},{key:"offMapZoomEnd",value:function(e){q.A.offEvent(Pe(Ue,this),e)}},{key:"onMapRotation",value:function(e){q.A.onEvent(Pe(We,this),e)}},{key:"offMapRotation",value:function(e){q.A.offEvent(Pe(We,this),e)}},{key:"onMapChangeSize",value:function(e){q.A.onEvent(Pe(qe,this),e)}},{key:"offMapChangeSize",value:function(e){q.A.offEvent(Pe(qe,this),e)}},{key:"onMapComponentAdded",value:function(e){q.A.onEvent(Pe(He,this),e)}},{key:"offMapComponentAdded",value:function(e){q.A.offEvent(Pe(He,this),e)}},{key:"onMapComponentRemoved",value:function(e){q.A.onEvent(Pe(Ye,this),e)}},{key:"offMapComponentRemoved",value:function(e){q.A.offEvent(Pe(Ye,this),e)}}],[{key:"setFullscreen",value:function(e,t){e&&(t.requestFullscreen?t.requestFullscreen().catch((function(e){pe.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){pe.vF.logPromiseFailed("document.exitFullscreen",e)})):document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen?document.msExitFullscreen():document.mozCancelFullScreen&&document.mozCancelFullScreen())}}]);var e}();function Je(e){e.on("change:resolution",c()(Ie(Xe,this,rt).bind(this),100).bind(this)),e.on("change:rotation",c()(Ie(Xe,this,it).bind(this),100).bind(this))}function Qe(e){return et.apply(this,arguments)}function et(){return(et=(0,i.A)(d().mark((function e(t){var n,r,i,o,a,s;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return 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.checkNorth(),e.next=7,ge.d.getScaleInfoFromDomElement(this.mapId);case 7:s=e.sent,ge.d.setMapMoveEnd(this.mapId,n,i,o,a,s),Ie(Xe,this,yt).call(this,{lnglat:n});case 10:case"end":return e.stop()}}),e,this)})))).apply(this,arguments)}function tt(e){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};ge.d.setMapPointerPosition(this.mapId,n),Ie(Xe,this,vt).call(this,n)}function nt(e){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};ge.d.setClickCoordinates(this.mapId,n).catch((function(e){pe.vF.logPromiseFailed("setClickCoordinates in #handleMapSingleClick in MapViewer",e)})),Ie(Xe,this,bt).call(this,n)}function rt(e){var t=this.getView().getZoom();ge.d.setZoom(this.mapId,t),Ie(Xe,this,xt).call(this,{zoom:t})}function it(e){var t=this.getView().getRotation();ge.d.setRotation(this.mapId,t),Ie(Xe,this,wt).call(this,{rotation:t})}function ot(e){return at.apply(this,arguments)}function at(){return(at=(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.next=2,ge.d.getScaleInfoFromDomElement(this.mapId);case 2:n=e.sent,r=this.map.getSize(),ge.d.setMapChangeSize(this.mapId,r,n),Ie(Xe,this,At).call(this,{size:r});case 6:case"end":return e.stop()}}),e,this)})))).apply(this,arguments)}function st(){var e=this;pe.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){pe.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),pe.vF.logInfo("Map is ready with ".concat(a," registered layers"),e.mapId),pe.vF.logMarkerCheck("mapReady-".concat(e.mapId),"for map to be ready. Layers are still being processed..."),Ie(Xe,e,lt).call(e).catch((function(e){pe.vF.logPromiseFailed("checkMapReadyGo in checkMapReady in MapViewer",e)})))}}),250)}function lt(){return ct.apply(this,arguments)}function ct(){return(ct=(0,i.A)(d().mark((function e(){var t,n,r,i;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Oe(Re,this,!0),Ie(Xe,this,ft).call(this),ge.d.initMapControls(this.mapId),me.K.setGuide(this.mapId).catch((function(e){pe.vF.logPromiseFailed("in setGuide in #checkMapReadyGo",e)})),this.map.on("change:size",Ie(Xe,this,ot).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()})),Ie(Xe,this,ht).call(this).catch((function(e){pe.vF.logError("Failed in #checkLayerResultSetReady",e)})),null===(t=this.mapFeaturesConfig.map.viewSettings.initialView)||void 0===t||!t.extent){e.next=13;break}return e.next=13,this.zoomToExtent(b.M.transformExtent(null===(n=this.mapFeaturesConfig.map.viewSettings.initialView)||void 0===n?void 0:n.extent,b.M.PROJECTION_NAMES.LNGLAT,"EPSG:".concat(this.mapFeaturesConfig.map.viewSettings.projection)));case 13:return Ie(Xe,this,ut).call(this),i=Date.now()-Pe(Ke,this),e.next=17,(0,he.delay)(Et._-i);case 17:ge.d.setMapLoaded(this.mapId,!0);case 18:case"end":return e.stop()}}),e,this)})))).apply(this,arguments)}function ut(){var e=this,t=setInterval((function(){if(e.layer){var n=e.layer.checkLayerStatus("processed",e.mapFeaturesConfig.map.listOfGeoviewLayerConfig,(function(e){pe.vF.logTraceDetailed("checkMapReady - 2 - waiting on layer processed...",e.geoviewLayerId)})),i=(0,r.A)(n,2),o=i[0],a=i[1];if(o){var s;if(clearInterval(t),pe.vF.logInfo("Map is ready with ".concat(a," processed layers"),e.mapId),pe.vF.logMarkerCheck("mapReady-".concat(e.mapId),"for all ".concat(a," layers to be processed")),null!==(s=e.mapFeaturesConfig.map.viewSettings.initialView)&&void 0!==s&&s.layerIds){var l=e.layer.getExtentOfMultipleLayers(e.mapFeaturesConfig.map.viewSettings.initialView.layerIds);l.includes(1/0)&&(l=b.M.transformExtent(g.Nt[e.mapFeaturesConfig.map.viewSettings.projection],b.M.PROJECTION_NAMES.LNGLAT,"EPSG:".concat(e.mapFeaturesConfig.map.viewSettings.projection))),l.length&&e.zoomToExtent(l).catch((function(e){return pe.vF.logPromiseFailed("promiseMapLayers in #checkMapLayersProcessed in map-viewer",e)}))}Oe(je,e,!0),Ie(Xe,e,gt).call(e),Ie(Xe,e,dt).call(e)}}}),250)}function dt(){var e=this,t=setInterval((function(){if(e.layer){var n=e.layer.checkLayerStatus("loaded",e.mapFeaturesConfig.map.listOfGeoviewLayerConfig,(function(e){pe.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),pe.vF.logInfo("Map is ready with ".concat(a," loaded layers"),e.mapId),pe.vF.logMarkerCheck("mapReady-".concat(e.mapId),"for all ".concat(a," layers to be loaded")),Oe(Fe,e,!0),Ie(Xe,e,mt).call(e))}}),250)}function ht(){var e=this;return new Promise((function(t){var n=setInterval((function(){if(e.layer&&e.layer.checkFeatureInfoLayerResultSetsReady((function(e){pe.vF.logTraceDetailed("checkMapReady - 4 - waiting on layer resultSet...",e.layerPath)}))){clearInterval(n);var r=Object.keys(e.layer.featureInfoLayerSet.resultSet).length;pe.vF.logMarkerCheck("mapReady-".concat(e.mapId),"for layer result set of ".concat(r," layers to be instanciated")),t()}}),250)}))}function pt(){q.A.emitEvent(this,Pe(De,this),void 0)}function ft(){q.A.emitEvent(this,Pe(Ne,this),void 0)}function gt(){q.A.emitEvent(this,Pe(ze,this),void 0)}function mt(){q.A.emitEvent(this,Pe(Ve,this),void 0)}function yt(e){q.A.emitEvent(this,Pe(Be,this),e)}function vt(e){q.A.emitEvent(this,Pe($e,this),e)}function bt(e){q.A.emitEvent(this,Pe(Ge,this),e)}function xt(e){q.A.emitEvent(this,Pe(Ue,this),e)}function wt(e){q.A.emitEvent(this,Pe(We,this),e)}function At(e){q.A.emitEvent(this,Pe(qe,this),e)}function St(e){q.A.emitEvent(this,Pe(He,this),e)}function Ct(e){q.A.emitEvent(this,Pe(Ye,this),e)}var Et={_:2e3}},12311:(e,t,n)=>{"use strict";n.d(t,{M:()=>Zn});var r=n(70640),i=n(32814),o=n(64426);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,x=57.29577951308232,w=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 _=/[\s_\-\/\(\)]/g;function k(e,t){if(e[t])return e[t];for(var n,r=Object.keys(e),i=t.toLowerCase().replace(_,""),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=V(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]=T(arguments[1]):$[e]=B(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=B(e);if(function(e){var t=k(e,"authority");if(t){var n=k(t,"epsg");return n&&W.indexOf(n)>-1}}(t))return G["EPSG:3857"];var n=function(e){var t=k(e,"extension");if(t)return k(t,"proj4")}(t);return n?T(n):t}return function(e){return"+"===e[0]}(e)?T(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*x>90&&i*x<-90&&r*x>180&&r*x<-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(w+.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,g,m,y,v,b,x=1e-12,w=e.x,A=e.y,S=e.z?e.z:0;if(i=Math.sqrt(w*w+A*A),o=Math.sqrt(w*w+A*A+S*S),i/n1e-24&&y<30);return{x:v,y:Math.atan(g/Math.abs(p)),z:b}}function xe(e){return e===a||e===s}function we(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&&!xe(e.datum_type)&&!xe(t.datum_type))return n;if((n=ve(n,i,r),xe(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)),xe(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),x=(1-a)*s;return l.x=b*c+v*d+x*g+y*p,l.y=b*u+v*h+x*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 _e(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 ke(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 Te(e,t,n,r){var i,o=void 0!==(n=Array.isArray(n)?_e(n):{x:n.x,y:n.y,z:n.z,m:n.m}).z;if(function(e){ke(e.x),ke(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=Te(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=we(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*x,y:n.y*x,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=Te(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=Te(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,ze=86,Ve=90;const Be={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>Ve&&(u=u-Ve+Fe-1,h=!0),(u===De||lDe||(u>De||lNe||(u>Ne||lVe&&(u=u-Ve+Fe-1),d>ze?(d=d-ze+Fe-1,h=!0):h=!1,(d===De||cDe||(d>De||cNe||(d>Ne||cze&&(d=d-ze+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 x=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);x=We(x);var w,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});w={top:S.lat,right:S.lon,bottom:x,left:A}}else w={lat:x,lon:A};return w}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>Ve){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>ze){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),x=this.lat0+a/this.k0,w=Math.cos(x);t=Math.sqrt((1-Math.pow(w,2))/(1+Math.pow(b,2))),r=Math.asin(t),a<0&&(r=-r),i=0===b&&0===w?0:X(Math.atan2(b,w)+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 xt(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 wt={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=xt(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=xt(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,wt.init.apply(this),this.forward=wt.forward,this.inverse=wt.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+w)/(Math.pow(Math.tan(.5*this.lat0+w),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+w),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+w)/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 _t={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 kt={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 Tt=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,x=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 _=!1;if("rectified_grid_angle"in this&&(_=!0),E&&(C=this.alpha),_&&(p=this.rectified_grid_angle*b),E||_)g=this.longc;else if(m=this.long1,x=this.lat1,y=this.long2,S=this.lat2,Math.abs(x-S)<=Tt||(e=Math.abs(x))<=Tt||Math.abs(e-f)<=Tt||Math.abs(Math.abs(this.lat0)-f)<=Tt||Math.abs(Math.abs(S)-f)<=Tt)throw new Error;var k=1-this.es;t=Math.sqrt(k),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/k),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||_?(E?(u=Math.asin(Math.sin(C)/r),_||(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,x,Math.sin(x)),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(w-i)),this.v_pole_s=this.ArB*Math.log(Math.tan(w+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=Bt(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=Bt(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=Bt(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=Bt(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=zt(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=zt(((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=zt(((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),x=-(b=this.e*this.cos_p12*y)*b/(1-this.es),w=3*this.es*(1-x)*this.sin_p12*this.cos_p12*y/(1-this.es),C=1-x*(S=(A=t/p)-x*(1+x)*Math.pow(A,3)/6-w*(1+3*x)*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),1,((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 ew&&i<=f+w?(r.value=mn.AREA_1,i-=f):i>f+w||i<=-(f+w)?(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-w/2?this.face=fn:this.lat0<=-(f-w/2)?this.face=gn:Math.abs(this.long0)<=w?this.face=un:Math.abs(this.long0)<=f+w?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>=w&&n<=f+w?(l.value=mn.AREA_0,r=n-f):n>f+w||n<=-(f+w)?(l.value=mn.AREA_1,r=n>0?n-S:n+S):n>-(f+w)&&n<=-w?(l.value=mn.AREA_2,r=n+f):(l.value=mn.AREA_3,r=n);else if(this.face===gn)i=f+t,n>=w&&n<=f+w?(l.value=mn.AREA_0,r=-n+f):n=-w?(l.value=mn.AREA_1,r=-n):n<-w&&n>=-(f+w)?(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(w))-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 xn=[[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]],wn=[[-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=x/5,En=1/Cn,_n=18,kn=function(e,t){return e[0]+t*(e[1]+t*(e[2]+t*e[3]))};const Tn={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>=_n&&(r=17);var i={x:kn(xn[r],n=x*(n-En*r))*t,y:kn(wn[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/=xn[18][0],t.y=e.y<0?-f:f;else{var n=Math.floor(t.y*_n);for(n<0?n=0:n>=_n&&(n=17);;)if(wn[n][0]>t.y)--n;else{if(!(wn[n+1][0]<=t.y))break;++n}var r=wn[n],i=5*(t.y-r[0])/(wn[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,zn=893e-6,Vn=.003796,Bn=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(Bn*Math.sin(n)),i=r*r,o=i*i*i;return e.x=t*Math.cos(r)/(Bn*(Dn+3*Nn*i+o*(7*zn+9*Vn*i))),e.y=r*(Dn+Nn*i+o*(zn+Vn*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)*(zn+Vn*t))-e.y)/(Dn+3*Nn*t+n*(7*zn+9*Vn*t)),!(Math.abs(r)<1e-9));++i);return n=(t=o*o)*t*t,e.x=Bn*e.x*(Dn+3*Nn*t+n*(7*zn+9*Vn*t))/Math.cos(o),e.y=Math.asin(Math.sin(o)/Bn),e.x=X(e.x+this.long0),e},names:["eqearth","Equal Earth","Equal_Earth"]};Me.defaultDatum="WGS84",Me.Proj=ye,Me.WGS84=new Me.Proj("WGS84"),Me.Point=Je,Me.toPoint=_e,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(78862),i=n(48660),o=n(60854),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 x=[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:x}}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.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}]},10011:(e,t,n)=>{"use strict";n.d(t,{$G:()=>ge,WN:()=>ve,nS:()=>fe,qC:()=>ce,yt:()=>V});var r=n(64426),i=n(31625),o=n(47361),a=n(43994),s=n(59615),l=n.n(s),c=n(78862),u=n(22840),d=n(13645),h=n(25899),p=n(47616),f=n(64745),g=n(39605),m=n(62767),y=n(24438),v=n(17567),b=n(11574),x=n(79913),w=n(34028),A=n(48660),S=n(5739),C=n(60854);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 _(e){for(var t=1;t1&&void 0!==arguments[1]&&arguments[1],n=(0,c.oJ)((0,x.setAlphaColor)((0,c._j)(S.fT[k]),e));return t&&k++,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,z=50;function V(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 B(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,V(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||z,(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,V(t);case 3:if(!(n=e.sent)){e.next=13;break}return r=n.width||N,i=n.height||z,(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,z],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=z;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=z;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,x.setAlphaColor)((0,c._j)(e.color),1)):T(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=w.P.applyInputDateFormat(n.nodeValue),t.push({nodeType:S.Z6.variable,nodeValue:w.P.convertToMilliseconds(w.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(_({},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=T(.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=T(.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=T(.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=T(.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){var r=O(e);if(!t.style||!t.style[r]){var i=function(e,t){return"Point"===e?{styleType:"simple",label:t,settings:{type:"simpleSymbol",color:T(.25),stroke:{color:T(1,!0),lineStyle:"solid",width:1},symbol:"circle"}}:"LineString"===e?{styleType:"simple",label:t,settings:{type:"lineString",stroke:{color:T(1,!0)}}}:"Polygon"===e?{styleType:"simple",label:t,settings:{type:"filledPolygon",color:T(.25),stroke:{color:T(1,!0)},fillStyle:"solid"}}:void C.vF.logError("Geometry type ".concat(e," is not supported by the GeoView viewer."))}(r,n);i&&t.addDefaultStyle(r,i)}if(t.style[r]){var o=t.style[r],a=o.styleType;return pe[a][r].call("",o,e,t.filterEquation,t.legendFilterIsOff)}}function ge(e,t,n){return me.apply(this,arguments)}function me(){return(me=(0,a.A)(l().mark((function e(t,n,r){var i,o,a,s,c,u,d;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.getGeometry()){e.next=22;break}if(o=O(t),void 0===(a=n.style)[o]){e.next=22;break}if(s=a[o],c=s.styleType,!(u=pe[c][o](s,t,n.filterEquation,n.legendFilterIsOff))){e.next=22;break}if("Point"!==o){e.next=21;break}if(!((0,A.s0)(s)&&(0,A.cw)(s.settings)||(0,A.IG)(s)&&(0,A.cw)(s.uniqueValueStyleInfo[0].settings)||(0,A.$h)(s)&&(0,A.cw)(s.classBreakStyleInfo[0].settings))){e.next=13;break}i=W(u),e.next=19;break;case 13:return e.next=15,B(u);case 15:if(e.t0=e.sent,e.t0){e.next=18;break}e.t0=void 0;case 18:i=e.t0;case 19:e.next=22;break;case 21:i="LineString"===o?q(u):H(u);case 22:if(!i){e.next=24;break}return e.abrupt("return",i);case 24:return e.next=26,null==r?void 0:r();case 26:if(!(d=e.sent)){e.next=36;break}return e.next=30,G(d);case 30:if(e.t1=e.sent,e.t1){e.next=33;break}e.t1=void 0;case 33:if(!(i=e.t1)){e.next=36;break}return e.abrupt("return",i);case 36:return e.next=38,G(P);case 38:return e.abrupt("return",e.sent);case 39:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ye(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 ve(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=ye(n,"'")),n=ye(n,"("),(n=ye(n,")")).reduce((function(e,t){return t.nodeType===S.Z6.group?e+1:e}),0)%2)throw new Error("unbalanced parentheses");return n=ye(n,"date",/^date°$|^date°|(?<=\s)date°/g),n=ye(n,"upper",/^upper\b|(?<=\s)upper\b/gi),n=ye(n,"lower",/^lower\b|(?<=\s)lower\b/gi),n=ye(n,"is not",/^is\s+not\b|(?<=\s)is\s+not\b/gi),n=ye(n,"is",/^is\b(?!\s*not\b)|(?<=\s)is\b(?!\s*not\b)/gi),n=ye(n,"in",/^in\b|(?<=\s)in\b/gi),n=ye(n,","),n=ye(n,"not",/^not\b|(?<=\s)not\b/gi),n=ye(n,"and",/^and\b|(?<=\s)and\b/gi),n=ye(n,"or",/^or\b|(?<=\s)or\b/gi),n=ye(n,"like",/^like\b|(?<=\s)like\b/gi),n=ye(n,"=",/(?<])=/g),n=ye(n,"<",/<(?![>=])/g),n=ye(n,">",/(?(?!=)/g),n=ye(n,"<>"),n=ye(n,"<="),n=ye(n,">="),n=ye(n,"+"),n=ye(n,"-"),n=ye(n,"*"),n=ye(n,"/"),n=ye(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}))}},62338:(e,t,n)=>{"use strict";n.r(t),n.d(t,{convertTypeFeatureStyleToOpenLayersStyle:()=>ye,coordFormatDMS:()=>me,createEmptyBasemap:()=>pe,extentToPolygon:()=>be,geojsonToGeometry:()=>ue,geometryToWKT:()=>le,getArea:()=>de,getDefaultDrawingStyle:()=>he,getESRIServiceMetadata:()=>ee,getLegendStylesFromConfig:()=>fe,getMapServerUrl:()=>ae,getMinOrMaxExtents:()=>ve,getOGCServerUrl:()=>se,getTranslateValues:()=>ge,getWFSServiceMetadata:()=>ie,getWMSServiceMetadata:()=>ne,layerTypes:()=>Q,polygonToExtent:()=>xe,wktToGeometry:()=>ce});var r=n(43994),i=n(59615),o=n.n(i),a=n(97493),s=n(72192),l=n(20662),c=n(31997),u=n(24438),d=n(67087),h=n(4180),p=n(1660),f=n(62767),g=n(17567),m=n(42024),y=n(94994);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 x=v,w={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,_=1,k=2,T=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=k;else if(","==e)n=P;else if(")"==e)n=T;else if(this.isNumeric_(e)||"-"==e)n=O,r=this.readNumber_();else if(this.isAlpha_(e))n=_,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(_)){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(k)){const e=[];do{e.push(this.parseGeometry_())}while(this.match(P));if(this.match(T))return e}throw new Error(this.formatErrorMessage_())}parsePointText_(){if(this.match(k)){const e=this.parsePoint_();if(this.match(T))return e}throw new Error(this.formatErrorMessage_())}parseLineStringText_(){if(this.match(k)){const e=this.parsePointList_();if(this.match(T))return e}throw new Error(this.formatErrorMessage_())}parsePolygonText_(){if(this.match(k)){const e=this.parseLineStringTextList_();if(this.match(T))return e}throw new Error(this.formatErrorMessage_())}parseMultiPointText_(){if(this.match(k)){let e;if(e=this.token_.type==k?this.parsePointTextList_():this.parsePointList_(),this.match(T))return e}throw new Error(this.formatErrorMessage_())}parseMultiLineStringText_(){if(this.match(k)){const e=this.parseLineStringTextList_();if(this.match(T))return e}throw new Error(this.formatErrorMessage_())}parseMultiPolygonText_(){if(this.match(k)){const e=this.parsePolygonTextList_();if(this.match(T))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 V=class extends x{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 ie(e){return oe.apply(this,arguments)}function oe(){return(oe=(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 ae(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 se(e){var t=e;return t.includes("collections")&&(t=t.slice(0,t.indexOf("collections"))),t}function le(e){return e?(new V).writeGeometry(e):null}function ce(e,t){return e?(new V).readGeometry(e,t):null}function ue(e,t){return e?(new B.A).readGeometry(e,t):null}function de(e){return(0,q.UG)(e)}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,J.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){return new g.Ay([[[e[0],e[1]],[e[0],e[3]],[e[2],e[3]],[e[2],e[1]]]])}function xe(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;a{"use strict";n.d(t,{c:()=>u});var r=n(64426),i=n(94145),o=n(66865),a=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}}},s=n(97282);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,{Accordion:()=>ce,AddCircleOutlineIcon:()=>Ui,AddIcon:()=>Gi,AppBarUI:()=>Se,AppsIcon:()=>Wi,ArrowBackIcon:()=>qi.A,ArrowBackIosOutlinedIcon:()=>Hi,ArrowDownIcon:()=>Gn,ArrowDownwardIcon:()=>Yi.A,ArrowForwardIcon:()=>Ki.A,ArrowForwardIosOutlinedIcon:()=>Xi,ArrowLeftIcon:()=>Zi,ArrowRightIcon:()=>Ji,ArrowUpIcon:()=>Qi.A,Autocomplete:()=>wt,Avatar:()=>Mt,Badge:()=>Gt,Box:()=>a.A,BrowserNotSupportedIcon:()=>eo,Button:()=>hn,ButtonDropDown:()=>Hn,ButtonGroup:()=>Bn,CONST_PANEL_TYPES:()=>fh.v,Card:()=>fr,CardMedia:()=>Ar,ChartIcon:()=>ua.A,CheckBoxIcon:()=>ro,CheckBoxOutinedIcon:()=>oo,CheckBoxOutlineBlankIcon:()=>io,CheckCircleIcon:()=>no,CheckIcon:()=>to,Checkbox:()=>Fr,CheckboxList:()=>ol,ChevronLeftIcon:()=>ao,ChevronRightIcon:()=>so,CircularProgress:()=>ii,CircularProgressBase:()=>ei,ClickMapMarker:()=>Ma,CloseIcon:()=>lo.A,Collapse:()=>al,CollapseIcon:()=>Go,Container:()=>rs,CustomSelect:()=>jh,CustomStepper:()=>zf,CustomTextField:()=>TE,DefaultPanel:()=>ph,DeleteIcon:()=>co,DeleteOutlineIcon:()=>uo,DetailsIcon:()=>ho,Dialog:()=>is.A,DialogActions:()=>os.A,DialogContent:()=>ws.A,DialogTitle:()=>us,Divider:()=>oi.c,DownloadIcon:()=>po,DownloadingIcon:()=>fo,Drawer:()=>Ei,EmojiPeopleIcon:()=>mo,ErrorIcon:()=>yo,ExpandIcon:()=>vo,ExpandLessIcon:()=>bo,ExpandMoreIcon:()=>xo,Fade:()=>_i,FileUploadIcon:()=>wo,FilterAltIcon:()=>Ao,FilterAltOffIcon:()=>So,FullscreenExitIcon:()=>Eo,FullscreenIcon:()=>Co,GeoCaIcon:()=>qf,GitHubIcon:()=>_o.A,Grid:()=>Vi,GroupIcon:()=>ko,GroupWorkIcon:()=>To,GroupWorkOutlinedIcon:()=>Oo,HandleIcon:()=>go,HeightIcon:()=>jo,HelpIcon:()=>Po,HighlightIcon:()=>Mo,HighlightOutlinedIcon:()=>Io,HomeIcon:()=>Lo,HubOutlinedIcon:()=>Ro.A,IconButton:()=>Bi,InfoIcon:()=>Do,InfoOutlinedIcon:()=>No.A,KeyboardArrowDownIcon:()=>zo,KeyboardArrowLeftIcon:()=>$o,KeyboardArrowRightIcon:()=>Bo,KeyboardArrowUpIcon:()=>Vo,LayersClearOutlinedIcon:()=>Wo,LayersIcon:()=>Uo,LayersOutlinedIcon:()=>qo.A,Link:()=>ds.A,List:()=>Pl,ListAltIcon:()=>Ho,ListItem:()=>_l,ListItemButton:()=>fl,ListItemIcon:()=>gl,ListItemText:()=>Al,LoadingButton:()=>Ms,LockIcon:()=>Ko,LockOpenIcon:()=>Xo,LoopIcon:()=>Zo,MRT_ActionMenuItem:()=>MS,MRT_AggregationFns:()=>sS,MRT_BottomToolbar:()=>QC,MRT_ColumnActionMenu:()=>TC,MRT_ColumnPinningButtons:()=>eE,MRT_CopyButton:()=>uC,MRT_DefaultColumn:()=>XS,MRT_DefaultDisplayColumn:()=>ZS,MRT_EditActionButtons:()=>CS,MRT_EditCellTextField:()=>dC,MRT_EditRowModal:()=>qC,MRT_ExpandAllButton:()=>VS,MRT_ExpandButton:()=>BS,MRT_FilterCheckbox:()=>PC,MRT_FilterFns:()=>AS,MRT_FilterOptionMenu:()=>kC,MRT_FilterRangeFields:()=>MC,MRT_FilterRangeSlider:()=>LC,MRT_FilterTextField:()=>IC,MRT_GlobalFilterTextField:()=>cE,MRT_GrabHandleButton:()=>DS,MRT_LinearProgressBar:()=>KC,MRT_RowActionMenu:()=>LS,MRT_RowPinButton:()=>US,MRT_SelectCheckbox:()=>qS,MRT_ShowHideColumnsButton:()=>rE,MRT_ShowHideColumnsMenu:()=>nE,MRT_ShowHideColumnsMenuItems:()=>tE,MRT_SortingFns:()=>QA,MRT_Table:()=>GC,MRT_TableBody:()=>yC,MRT_TableBodyCell:()=>hC,MRT_TableBodyCellValue:()=>cC,MRT_TableBodyRow:()=>gC,MRT_TableBodyRowGrabHandle:()=>NS,MRT_TableBodyRowPinButton:()=>WS,MRT_TableContainer:()=>YC,MRT_TableDetailPanel:()=>fC,MRT_TableFooter:()=>wC,MRT_TableFooterCell:()=>bC,MRT_TableFooterRow:()=>xC,MRT_TableHead:()=>$C,MRT_TableHeadCell:()=>zC,MRT_TableHeadCellColumnActionsButton:()=>OC,MRT_TableHeadCellFilterContainer:()=>RC,MRT_TableHeadCellFilterLabel:()=>jC,MRT_TableHeadCellGrabHandle:()=>FC,MRT_TableHeadCellResizeHandle:()=>DC,MRT_TableHeadCellSortLabel:()=>NC,MRT_TableHeadRow:()=>VC,MRT_TableLoadingOverlay:()=>UC,MRT_TablePagination:()=>ZC,MRT_TablePaper:()=>dE,MRT_ToggleDensePaddingButton:()=>iE,MRT_ToggleFiltersButton:()=>oE,MRT_ToggleFullScreenButton:()=>aE,MRT_ToggleGlobalFilterButton:()=>sE,MRT_ToggleRowActionMenuButton:()=>jS,MRT_ToolbarAlertBanner:()=>BC,MRT_ToolbarDropZone:()=>JC,MRT_ToolbarInternalButtons:()=>lE,MRT_TopToolbar:()=>uE,MapIcon:()=>ea.A,MaterialReactTable:()=>hE,Memo_MRT_TableBody:()=>vC,Memo_MRT_TableBodyCell:()=>pC,Memo_MRT_TableBodyRow:()=>mC,Menu:()=>Dl,MenuIcon:()=>ta,MenuItem:()=>Ll,Modal:()=>uh,ModalApi:()=>Yl,MoreHorizIcon:()=>na,MoreVertIcon:()=>ra,MoveDownRoundedIcon:()=>ia,MoveUpRoundedIcon:()=>oa,NotificationsActiveIcon:()=>Qo,NotificationsIcon:()=>Jo,OpacityIcon:()=>aa,OpenInBrowserIcon:()=>sa,Panel:()=>Sh,Paper:()=>hh,PauseIcon:()=>la,PlayArrowIcon:()=>ca,Popover:()=>kh,Popper:()=>WE,ProgressBar:()=>Js,QuestionMarkIcon:()=>da.A,RadioButtonCheckedIcon:()=>ha,RadioButtonUncheckedIcon:()=>pa,RemoveCircleOutlineIcon:()=>ga,ReorderIcon:()=>Fo,RestartAltIcon:()=>ma,SchoolIcon:()=>ya,SearchIcon:()=>va,Select:()=>Vh,SendIcon:()=>ba,Skeleton:()=>ip,Slider:()=>up,Snackbar:()=>Vp,Stack:()=>xs,Stepper:()=>Uf,StorageIcon:()=>xa.A,Switch:()=>sg,SwitchLeftIcon:()=>Aa,SwitchRightIcon:()=>wa,Table:()=>fE,TableChartOutlinedIcon:()=>Ca,TableViewIcon:()=>Sa.A,Tabs:()=>CE,TextField:()=>IE,TimeSliderIcon:()=>$i,TodoIcon:()=>Yo,Toolbar:()=>DE,Tooltip:()=>VE,Typography:()=>BE.o,UndoIcon:()=>Ea,UploadFileIcon:()=>_a,VisibilityIcon:()=>ka,VisibilityOffIcon:()=>Ta,VisibilityOffOutlinedIcon:()=>Pa,VisibilityOutlinedIcon:()=>Oa,WarningIcon:()=>Ia,ZoomInIcon:()=>Gi,ZoomInSearchIcon:()=>La,ZoomOutIcon:()=>fa,ZoomOutSearchIcon:()=>Ra,cgpvTheme:()=>Wf.w,createMRTColumnHelper:()=>FA,createRow:()=>DA,defaultDisplayColumnProps:()=>$A,flexRender:()=>jA,getAllLeafColumnDefs:()=>OA,getCanRankRows:()=>nS,getColumnFilterInfo:()=>LA,getColumnId:()=>TA,getDefaultColumnFilterFn:()=>MA,getDefaultColumnOrderIds:()=>JA,getIsRankingRows:()=>rS,getIsRowSelected:()=>iS,getLeadingDisplayColumnIds:()=>XA,getMRT_RowSelectionHandler:()=>oS,getMRT_Rows:()=>tS,getMRT_SelectAllHandler:()=>aS,getTheme:()=>Wf.O,getTrailingDisplayColumnIds:()=>ZA,isCellEditable:()=>VA,mrtFilterOptions:()=>AC,openEditingCell:()=>BA,prepareColumns:()=>PA,rankGlobalFuzzy:()=>eS,reorderColumn:()=>IA,showRowActionsColumn:()=>qA,showRowDragColumn:()=>UA,showRowExpandColumn:()=>WA,showRowNumbersColumn:()=>YA,showRowPinningColumn:()=>GA,showRowSelectionColumn:()=>HA,showRowSpacerColumn:()=>KA,useDropdownOptions:()=>RA,useMRT_ColumnVirtualizer:()=>oC,useMRT_Effects:()=>tC,useMRT_RowVirtualizer:()=>aC,useMRT_Rows:()=>sC,useMRT_TableInstance:()=>nC,useMRT_TableOptions:()=>JS,useMaterialReactTable:()=>rC});var r=n(28249),i=n(47361),o=n(30538),a=n(66469),s=n(51559),l=n(73342),c=(n(91272),n(87286)),u=n(32829),d=n(99191),h=n(58990),p=n(89272),f=n(8734),g=n(87507),m=n(2297),y=n(97880),v=n(94145),b=n(47258),x=n(5007),w=n(24115);function A(e){return(0,w.Ay)("MuiCollapse",e)}(0,x.A)("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);var S=n(97282);const C=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],E=(0,h.Ay)("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],"entered"===n.state&&t.entered,"exited"===n.state&&!n.in&&"0px"===n.collapsedSize&&t.hidden]}})((({theme:e,ownerState:t})=>(0,s.A)({height:0,overflow:"hidden",transition:e.transitions.create("height")},"horizontal"===t.orientation&&{height:"auto",width:0,transition:e.transitions.create("width")},"entered"===t.state&&(0,s.A)({height:"auto",overflow:"visible"},"horizontal"===t.orientation&&{width:"auto"}),"exited"===t.state&&!t.in&&"0px"===t.collapsedSize&&{visibility:"hidden"}))),_=(0,h.Ay)("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})((({ownerState:e})=>(0,s.A)({display:"flex",width:"100%"},"horizontal"===e.orientation&&{width:"auto",height:"100%"}))),k=(0,h.Ay)("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})((({ownerState:e})=>(0,s.A)({width:"100%"},"horizontal"===e.orientation&&{width:"auto",height:"100%"}))),T=o.forwardRef((function(e,t){const n=(0,g.A)({props:e,name:"MuiCollapse"}),{addEndListener:r,children:i,className:a,collapsedSize:d="0px",component:h,easing:x,in:w,onEnter:T,onEntered:O,onEntering:P,onExit:I,onExited:M,onExiting:L,orientation:R="vertical",style:j,timeout:F=m.p0.standard,TransitionComponent:D=p.Ay}=n,N=(0,l.A)(n,C),z=(0,s.A)({},n,{orientation:R,collapsedSize:d}),V=(e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return(0,u.A)(r,A,n)})(z),B=(0,v.A)(),$=(0,f.A)(),G=o.useRef(null),U=o.useRef(),W="number"==typeof d?`${d}px`:d,q="horizontal"===R,H=q?"width":"height",Y=o.useRef(null),K=(0,b.A)(t,Y),X=e=>t=>{if(e){const n=Y.current;void 0===t?e(n):e(n,t)}},Z=()=>G.current?G.current[q?"clientWidth":"clientHeight"]:0,J=X(((e,t)=>{G.current&&q&&(G.current.style.position="absolute"),e.style[H]=W,T&&T(e,t)})),Q=X(((e,t)=>{const n=Z();G.current&&q&&(G.current.style.position="");const{duration:r,easing:i}=(0,y.c)({style:j,timeout:F,easing:x},{mode:"enter"});if("auto"===F){const t=B.transitions.getAutoHeightDuration(n);e.style.transitionDuration=`${t}ms`,U.current=t}else e.style.transitionDuration="string"==typeof r?r:`${r}ms`;e.style[H]=`${n}px`,e.style.transitionTimingFunction=i,P&&P(e,t)})),ee=X(((e,t)=>{e.style[H]="auto",O&&O(e,t)})),te=X((e=>{e.style[H]=`${Z()}px`,I&&I(e)})),ne=X(M),re=X((e=>{const t=Z(),{duration:n,easing:r}=(0,y.c)({style:j,timeout:F,easing:x},{mode:"exit"});if("auto"===F){const n=B.transitions.getAutoHeightDuration(t);e.style.transitionDuration=`${n}ms`,U.current=n}else e.style.transitionDuration="string"==typeof n?n:`${n}ms`;e.style[H]=W,e.style.transitionTimingFunction=r,L&&L(e)}));return(0,S.jsx)(D,(0,s.A)({in:w,onEnter:J,onEntered:ee,onEntering:Q,onExit:te,onExited:ne,onExiting:re,addEndListener:e=>{"auto"===F&&$.start(U.current||0,e),r&&r(Y.current,e)},nodeRef:Y,timeout:"auto"===F?null:F},N,{children:(e,t)=>(0,S.jsx)(E,(0,s.A)({as:h,className:(0,c.A)(V.root,a,{entered:V.entered,exited:!w&&"0px"===W&&V.hidden}[e]),style:(0,s.A)({[q?"minWidth":"minHeight"]:W},j),ref:K},t,{ownerState:(0,s.A)({},z,{state:e}),children:(0,S.jsx)(_,{ownerState:(0,s.A)({},z,{state:e}),className:V.wrapper,ref:G,children:(0,S.jsx)(k,{ownerState:(0,s.A)({},z,{state:e}),className:V.wrapperInner,children:i})})}))}))}));T.muiSupportAuto=!0;const O=T;var P=n(8088);const I=o.createContext({});var M=n(58245),L=n(18029),R=n(66567),j=n(63261),F=n(23130);const D=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],N=["component","slots","slotProps"],z=["component"];function V(e,t){const{className:n,elementType:r,ownerState:i,externalForwardedProps:o,getSlotOwnerState:a,internalForwardedProps:c}=t,u=(0,l.A)(t,D),{component:d,slots:h={[e]:void 0},slotProps:p={[e]:void 0}}=o,f=(0,l.A)(o,N),g=h[e]||r,m=(0,R.Y)(p[e],i),y=(0,j.p)((0,s.A)({className:n},u,{externalForwardedProps:"root"===e?f:void 0,externalSlotProps:m})),{props:{component:v},internalRef:b}=y,x=(0,l.A)(y.props,z),w=(0,L.A)(b,null==m?void 0:m.ref,t.ref),A=a?a(x):{},S=(0,s.A)({},i,A),C="root"===e?v||d:v,E=(0,F.X)(g,(0,s.A)({},"root"===e&&!d&&!h[e]&&c,"root"!==e&&!h[e]&&c,x,C&&{as:C},{ref:w}),S);return Object.keys(A).forEach((e=>{delete E[e]})),[g,E]}function B(e){return(0,w.Ay)("MuiAccordion",e)}const $=(0,x.A)("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]),G=["children","className","defaultExpanded","disabled","disableGutters","expanded","onChange","square","slots","slotProps","TransitionComponent","TransitionProps"],U=(0,d.h)("MuiAccordion"),W=(0,h.Ay)(P.A,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${$.region}`]:t.region},t.root,!n.square&&t.rounded,!n.disableGutters&&t.gutters]}})((({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"}},[`&.${$.expanded}`]:{"&::before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&::before":{display:"none"}}},[`&.${$.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}}),(({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:{[`&.${$.expanded}`]:{margin:"16px 0"}}}]}))),q=o.forwardRef((function(e,t){const n=U({props:e,name:"MuiAccordion"}),{children:r,className:i,defaultExpanded:a=!1,disabled:d=!1,disableGutters:h=!1,expanded:p,onChange:f,square:g=!1,slots:m={},slotProps:y={},TransitionComponent:v,TransitionProps:b}=n,x=(0,l.A)(n,G),[w,A]=(0,M.A)({controlled:p,default:a,name:"Accordion",state:"expanded"}),C=o.useCallback((e=>{A(!w),f&&f(e,!w)}),[w,f,A]),[E,..._]=o.Children.toArray(r),k=o.useMemo((()=>({expanded:w,disabled:d,disableGutters:h,toggle:C})),[w,d,h,C]),T=(0,s.A)({},n,{square:g,disabled:d,disableGutters:h,expanded:w}),P=(e=>{const{classes:t,square:n,expanded:r,disabled:i,disableGutters:o}=e,a={root:["root",!n&&"rounded",r&&"expanded",i&&"disabled",!o&&"gutters"],region:["region"]};return(0,u.A)(a,B,t)})(T),L=(0,s.A)({transition:v},m),R=(0,s.A)({transition:b},y),[j,F]=V("transition",{elementType:O,externalForwardedProps:{slots:L,slotProps:R},ownerState:T});return(0,S.jsxs)(W,(0,s.A)({className:(0,c.A)(P.root,i),ref:t,ownerState:T,square:g},x,{children:[(0,S.jsx)(I.Provider,{value:k,children:E}),(0,S.jsx)(j,(0,s.A)({in:w,timeout:"auto"},F,{children:(0,S.jsx)("div",{"aria-labelledby":E.props.id,id:E.props["aria-controls"],role:"region",className:P.region,children:_})}))]}))}));var H=n(92004);function Y(e){return(0,w.Ay)("MuiAccordionSummary",e)}const K=(0,x.A)("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),X=["children","className","expandIcon","focusVisibleClassName","onClick"],Z=(0,d.h)("MuiAccordionSummary"),J=(0,h.Ay)(H.A,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})((({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),[`&.${K.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${K.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${K.disabled})`]:{cursor:"pointer"},variants:[{props:e=>!e.disableGutters,style:{[`&.${K.expanded}`]:{minHeight:64}}}]}})),Q=(0,h.Ay)("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})((({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}),[`&.${K.expanded}`]:{margin:"20px 0"}}}]}))),ee=(0,h.Ay)("div",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(e,t)=>t.expandIconWrapper})((({theme:e})=>({display:"flex",color:(e.vars||e).palette.action.active,transform:"rotate(0deg)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),[`&.${K.expanded}`]:{transform:"rotate(180deg)"}}))),te=o.forwardRef((function(e,t){const n=Z({props:e,name:"MuiAccordionSummary"}),{children:r,className:i,expandIcon:a,focusVisibleClassName:d,onClick:h}=n,p=(0,l.A)(n,X),{disabled:f=!1,disableGutters:g,expanded:m,toggle:y}=o.useContext(I),v=(0,s.A)({},n,{expanded:m,disabled:f,disableGutters:g}),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,u.A)(o,Y,t)})(v);return(0,S.jsxs)(J,(0,s.A)({focusRipple:!1,disableRipple:!0,disabled:f,component:"div","aria-expanded":m,className:(0,c.A)(b.root,i),focusVisibleClassName:(0,c.A)(b.focusVisible,d),onClick:e=>{y&&y(e),h&&h(e)},ref:t,ownerState:v},p,{children:[(0,S.jsx)(Q,{className:b.content,ownerState:v,children:r}),a&&(0,S.jsx)(ee,{className:b.expandIconWrapper,ownerState:v,children:a})]}))}));function ne(e){return(0,w.Ay)("MuiAccordionDetails",e)}(0,x.A)("MuiAccordionDetails",["root"]);const re=["className"],ie=(0,d.h)("MuiAccordionDetails"),oe=(0,h.Ay)("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({padding:e.spacing(1,2,2)}))),ae=o.forwardRef((function(e,t){const n=ie({props:e,name:"MuiAccordionDetails"}),{className:r}=n,i=(0,l.A)(n,re),o=n,a=(e=>{const{classes:t}=e;return(0,u.A)({root:["root"]},ne,t)})(o);return(0,S.jsx)(oe,(0,s.A)({className:(0,c.A)(a.root,r),ref:t,ownerState:o},i))}));var se=n(79913),le={loadingIcon:{animation:"rotate 1s infinite linear","@keyframes rotate":{from:{transform:"rotate(360deg)"},to:{transform:"rotate(0deg)"}}}};function ce(e){var t=e.id,n=e.sx,s=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(s.length).fill(u)),f=(0,i.A)(p,2),g=f[0],m=f[1],y=(0,o.useState)(Array(s.length).fill(!1)),v=(0,i.A)(y,2),b=v[0],x=v[1],w=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,x(n),"height"===t.propertyName){var i=(0,r.A)(b);i[e]=!1,x(i)}}}}),[g,h,b]);return(0,S.jsx)(a.A,{id:(0,se.generateId)(t),sx:n,className:"accordion-group",children:s.map((function(e,t){return(0,S.jsxs)(q,{className:l,expanded:g[t],onChange:w(t),onTransitionEnd:A(t),children:[(0,S.jsx)(te,{expandIcon:h&&b[t]?(0,S.jsx)(Zo,{sx:le.loadingIcon}):(0,S.jsx)(xo,{}),"aria-controls":"accordion-panel-".concat(t,"-a-content"),children:(0,S.jsx)("div",{children:e.title})}),(0,S.jsx)(ae,{children:e.content})]},t)}))})}var ue=n(64426),de=n(19508);function he(e){return(0,w.Ay)("MuiAppBar",e)}(0,x.A)("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const pe=["className","color","enableColorOnDark","position"],fe=(e,t)=>e?`${null==e?void 0:e.replace(")","")}, ${t})`:t,ge=(0,h.Ay)(P.A,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${(0,de.A)(n.position)}`],t[`color${(0,de.A)(n.color)}`]]}})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?e.palette.grey[100]:e.palette.grey[900];return(0,s.A)({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},"fixed"===t.position&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},"absolute"===t.position&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},"sticky"===t.position&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},"static"===t.position&&{position:"static"},"relative"===t.position&&{position:"relative"},!e.vars&&(0,s.A)({},"default"===t.color&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&"default"!==t.color&&"inherit"!==t.color&&"transparent"!==t.color&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},"inherit"===t.color&&{color:"inherit"},"dark"===e.palette.mode&&!t.enableColorOnDark&&{backgroundColor:null,color:null},"transparent"===t.color&&(0,s.A)({backgroundColor:"transparent",color:"inherit"},"dark"===e.palette.mode&&{backgroundImage:"none"})),e.vars&&(0,s.A)({},"default"===t.color&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:fe(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:fe(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:fe(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:fe(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:"inherit"===t.color?"inherit":"var(--AppBar-color)"},"transparent"===t.color&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))})),me=o.forwardRef((function(e,t){const n=(0,g.A)({props:e,name:"MuiAppBar"}),{className:r,color:i="primary",enableColorOnDark:o=!1,position:a="fixed"}=n,d=(0,l.A)(n,pe),h=(0,s.A)({},n,{color:i,position:a,enableColorOnDark:o}),p=(e=>{const{color:t,position:n,classes:r}=e,i={root:["root",`color${(0,de.A)(t)}`,`position${(0,de.A)(n)}`]};return(0,u.A)(i,he,r)})(h);return(0,S.jsx)(ge,(0,s.A)({square:!0,component:"header",ownerState:h,elevation:4,className:(0,c.A)(p.root,r,"fixed"===a&&"mui-fixed"),ref:t},d))}));var ye=n(78283);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;t{const t=o.useRef({});return o.useEffect((()=>{t.current=e})),t.current};var Oe=n(18605),Pe=n(54175);function Ie(e){return void 0!==e.normalize?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function Me(e,t){for(let n=0;n{let c=a?s.trim():s;n&&(c=c.toLowerCase()),t&&(c=Ie(c));const u=c?e.filter((e=>{let r=(o||l)(e);return n&&(r=r.toLowerCase()),t&&(r=Ie(r)),"start"===i?0===r.indexOf(c):r.indexOf(c)>-1})):e;return"number"==typeof r?u.slice(0,r):u}}(),Re=e=>{var t;return null!==e.current&&(null==(t=e.current.parentElement)?void 0:t.contains(document.activeElement))};function je(e){const{unstable_isActiveElementInListbox:t=Re,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:i=!1,autoSelect:a=!1,blurOnSelect:l=!1,clearOnBlur:c=!e.freeSolo,clearOnEscape:u=!1,componentName:d="useAutocomplete",defaultValue:h=(e.multiple?[]:null),disableClearable:p=!1,disableCloseOnSelect:f=!1,disabled:g,disabledItemsFocusable:m=!1,disableListWrap:y=!1,filterOptions:v=Le,filterSelectedOptions:b=!1,freeSolo:x=!1,getOptionDisabled:w,getOptionKey:A,getOptionLabel:S=(e=>{var t;return null!=(t=e.label)?t:e}),groupBy:C,handleHomeEndKeys:E=!e.freeSolo,id:_,includeInputInList:k=!1,inputValue:T,isOptionEqualToValue:O=((e,t)=>e===t),multiple:P=!1,onChange:I,onClose:M,onHighlightChange:L,onInputChange:R,onOpen:j,open:F,openOnFocus:D=!1,options:N,readOnly:z=!1,selectOnFocus:V=!e.freeSolo,value:B}=e,$=(0,_e.A)(_);let G=S;G=e=>{const t=S(e);return"string"!=typeof t?String(t):t};const U=o.useRef(!1),W=o.useRef(!0),q=o.useRef(null),H=o.useRef(null),[Y,K]=o.useState(null),[X,Z]=o.useState(-1),J=i?0:-1,Q=o.useRef(J),[ee,te]=(0,ke.A)({controlled:B,default:h,name:d}),[ne,re]=(0,ke.A)({controlled:T,default:"",name:d,state:"inputValue"}),[ie,oe]=o.useState(!1),ae=o.useCallback(((e,t)=>{if(!(P?ee.length!b||!(P?ee:[ee]).some((t=>null!==t&&O(e,t))))),{inputValue:de&&ce?"":ne,getOptionLabel:G}):[],fe=Te({filteredOptions:pe,value:ee,inputValue:ne});o.useEffect((()=>{const e=ee!==fe.value;ie&&!e||x&&!e||ae(null,ee)}),[ee,ae,ie,fe.value,x]);const ge=se&&pe.length>0&&!z;const me=(0,Oe.A)((e=>{-1===e?q.current.focus():Y.querySelector(`[data-tag-index="${e}"]`).focus()}));o.useEffect((()=>{P&&X>ee.length-1&&(Z(-1),me(-1))}),[ee,P,X,me]);const ye=(0,Oe.A)((({event:e,index:t,reason:r="auto"})=>{if(Q.current=t,-1===t?q.current.removeAttribute("aria-activedescendant"):q.current.setAttribute("aria-activedescendant",`${$}-option-${t}`),L&&L(e,-1===t?null:pe[t],r),!H.current)return;const i=H.current.querySelector(`[role="option"].${n}-focused`);i&&(i.classList.remove(`${n}-focused`),i.classList.remove(`${n}-focusVisible`));let o=H.current;if("listbox"!==H.current.getAttribute("role")&&(o=H.current.parentElement.querySelector('[role="listbox"]')),!o)return;if(-1===t)return void(o.scrollTop=0);const a=H.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*(C?1.3:0){if(!he)return;const o=function(e,t){if(!H.current||e<0||e>=pe.length)return-1;let n=e;for(;;){const r=H.current.querySelector(`[data-option-index="${n}"]`),i=!m&&(!r||r.disabled||"true"===r.getAttribute("aria-disabled"));if(r&&r.hasAttribute("tabindex")&&!i)return n;if(n="next"===t?(n+1)%pe.length:(n-1+pe.length)%pe.length,n===e)return-1}}((()=>{const e=pe.length-1;if("reset"===t)return J;if("start"===t)return 0;if("end"===t)return e;const n=Q.current+t;return n<0?-1===n&&k?-1:y&&-1!==Q.current||Math.abs(t)>1?0:e:n>e?n===e+1&&k?-1:y||Math.abs(t)>1?e:0:n})(),n);if(ye({index:o,reason:i,event:e}),r&&"reset"!==t)if(-1===o)q.current.value=ne;else{const e=G(pe[o]);q.current.value=e;0===e.toLowerCase().indexOf(ne.toLowerCase())&&ne.length>0&&q.current.setSelectionRange(ne.length,e.length)}})),be=o.useCallback((()=>{if(!he)return;const e=(()=>{if(-1!==Q.current&&fe.filteredOptions&&fe.filteredOptions.length!==pe.length&&fe.inputValue===ne&&(P?ee.length===fe.value.length&&fe.value.every(((e,t)=>G(ee[t])===G(e))):(e=fe.value,t=ee,(e?G(e):"")===(t?G(t):"")))){const e=fe.filteredOptions[Q.current];if(e)return Me(pe,(t=>G(t)===G(e)))}var e,t;return-1})();if(-1!==e)return void(Q.current=e);const t=P?ee[0]:ee;if(0!==pe.length&&null!=t){if(H.current)if(null==t)Q.current>=pe.length-1?ye({index:pe.length-1}):ye({index:Q.current});else{const e=pe[Q.current];if(P&&e&&-1!==Me(ee,(t=>O(e,t))))return;const n=Me(pe,(e=>O(e,t)));-1===n?ve({diff:"reset"}):ye({index:n})}}else ve({diff:"reset"})}),[pe.length,!P&&ee,b,ve,ye,he,ne,P]),xe=(0,Oe.A)((e=>{(0,Pe.A)(H,e),e&&be()}));o.useEffect((()=>{be()}),[be]);const we=e=>{se||(le(!0),ue(!0),j&&j(e))},Ae=(e,t)=>{se&&(le(!1),M&&M(e,t))},Se=(e,t,n,r)=>{if(P){if(ee.length===t.length&&ee.every(((e,n)=>e===t[n])))return}else if(ee===t)return;I&&I(e,t,n,r),te(t)},Ce=o.useRef(!1),Ee=(e,t,n="selectOption",r="options")=>{let i=n,o=t;if(P){o=Array.isArray(ee)?ee.slice():[];const e=Me(o,(e=>O(t,e)));-1===e?o.push(t):"freeSolo"!==r&&(o.splice(e,1),i="removeOption")}ae(e,o),Se(e,o,i,{option:t}),f||e&&(e.ctrlKey||e.metaKey)||Ae(e,i),(!0===l||"touch"===l&&Ce.current||"mouse"===l&&!Ce.current)&&q.current.blur()};const Ie=(e,t)=>{if(!P)return;""===ne&&Ae(e,"toggleInput");let n=X;-1===X?""===ne&&"previous"===t&&(n=ee.length-1):(n+="next"===t?1:-1,n<0&&(n=0),n===ee.length&&(n=-1)),n=function(e,t){if(-1===e)return-1;let n=e;for(;;){if("next"===t&&n===ee.length||"previous"===t&&-1===n)return-1;const e=Y.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),Z(n),me(n)},je=e=>{U.current=!0,re(""),R&&R(e,"","clear"),Se(e,P?[]:null,"clear")},Fe=e=>t=>{if(e.onKeyDown&&e.onKeyDown(t),!t.defaultMuiPrevented&&(-1!==X&&-1===["ArrowLeft","ArrowRight"].indexOf(t.key)&&(Z(-1),me(-1)),229!==t.which))switch(t.key){case"Home":he&&E&&(t.preventDefault(),ve({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":he&&E&&(t.preventDefault(),ve({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),ve({diff:-5,direction:"previous",reason:"keyboard",event:t}),we(t);break;case"PageDown":t.preventDefault(),ve({diff:5,direction:"next",reason:"keyboard",event:t}),we(t);break;case"ArrowDown":t.preventDefault(),ve({diff:1,direction:"next",reason:"keyboard",event:t}),we(t);break;case"ArrowUp":t.preventDefault(),ve({diff:-1,direction:"previous",reason:"keyboard",event:t}),we(t);break;case"ArrowLeft":Ie(t,"previous");break;case"ArrowRight":Ie(t,"next");break;case"Enter":if(-1!==Q.current&&he){const e=pe[Q.current],n=!!w&&w(e);if(t.preventDefault(),n)return;Ee(t,e,"selectOption"),r&&q.current.setSelectionRange(q.current.value.length,q.current.value.length)}else x&&""!==ne&&!1===de&&(P&&t.preventDefault(),Ee(t,ne,"createOption","freeSolo"));break;case"Escape":he?(t.preventDefault(),t.stopPropagation(),Ae(t,"escape")):u&&(""!==ne||P&&ee.length>0)&&(t.preventDefault(),t.stopPropagation(),je(t));break;case"Backspace":if(P&&!z&&""===ne&&ee.length>0){const e=-1===X?ee.length-1:X,n=ee.slice();n.splice(e,1),Se(t,n,"removeOption",{option:ee[e]})}break;case"Delete":if(P&&!z&&""===ne&&ee.length>0&&-1!==X){const e=X,n=ee.slice();n.splice(e,1),Se(t,n,"removeOption",{option:ee[e]})}}},De=e=>{oe(!0),D&&!U.current&&we(e)},Ne=e=>{t(H)?q.current.focus():(oe(!1),W.current=!0,U.current=!1,a&&-1!==Q.current&&he?Ee(e,pe[Q.current],"blur"):a&&x&&""!==ne?Ee(e,ne,"blur","freeSolo"):c&&ae(e,ee),Ae(e,"blur"))},ze=e=>{const t=e.target.value;ne!==t&&(re(t),ue(!1),R&&R(e,t,"input")),""===t?p||P||Se(e,null,"clear"):we(e)},Ve=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));Q.current!==t&&ye({event:e,index:t,reason:"mouse"})},Be=e=>{ye({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Ce.current=!0},$e=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));Ee(e,pe[t],"selectOption"),Ce.current=!1},Ge=e=>t=>{const n=ee.slice();n.splice(e,1),Se(t,n,"removeOption",{option:ee[e]})},Ue=e=>{se?Ae(e,"toggleInput"):we(e)},We=e=>{e.currentTarget.contains(e.target)&&e.target.getAttribute("id")!==$&&e.preventDefault()},qe=e=>{e.currentTarget.contains(e.target)&&(q.current.focus(),V&&W.current&&q.current.selectionEnd-q.current.selectionStart==0&&q.current.select(),W.current=!1)},He=e=>{g||""!==ne&&se||Ue(e)};let Ye=x&&ne.length>0;Ye=Ye||(P?ee.length>0:null!==ee);let Ke=pe;if(C){new Map;Ke=pe.reduce(((e,t,n)=>{const r=C(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 g&&ie&&Ne(),{getRootProps:(e={})=>(0,s.A)({"aria-owns":ge?`${$}-listbox`:null},e,{onKeyDown:Fe(e),onMouseDown:We,onClick:qe}),getInputLabelProps:()=>({id:`${$}-label`,htmlFor:$}),getInputProps:()=>({id:$,value:ne,onBlur:Ne,onFocus:De,onChange:ze,onMouseDown:He,"aria-activedescendant":he?"":null,"aria-autocomplete":r?"both":"list","aria-controls":ge?`${$}-listbox`:void 0,"aria-expanded":ge,autoComplete:"off",ref:q,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:g}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:je}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:Ue}),getTagProps:({index:e})=>(0,s.A)({key:e,"data-tag-index":e,tabIndex:-1},!z&&{onDelete:Ge(e)}),getListboxProps:()=>({role:"listbox",id:`${$}-listbox`,"aria-labelledby":`${$}-label`,ref:xe,onMouseDown:e=>{e.preventDefault()}}),getOptionProps:({index:e,option:t})=>{var n;const r=(P?ee:[ee]).some((e=>null!=e&&O(t,e))),i=!!w&&w(t);return{key:null!=(n=null==A?void 0:A(t))?n:G(t),tabIndex:-1,role:"option",id:`${$}-option-${e}`,onMouseMove:Ve,onClick:$e,onTouchStart:Be,"data-option-index":e,"aria-disabled":i,"aria-selected":r}},id:$,inputValue:ne,value:ee,dirty:Ye,expanded:he&&Y,popupOpen:he,focused:ie||-1!==X,anchorEl:Y,setAnchorEl:K,focusedTag:X,groupedOptions:Ke}}var Fe=n(59015),De=n(47059);function Ne(e){return(0,w.Ay)("MuiListSubheader",e)}(0,x.A)("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const ze=["className","color","component","disableGutters","disableSticky","inset"],Ve=(0,h.Ay)("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${(0,de.A)(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})((({theme:e,ownerState:t})=>(0,s.A)({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)},"primary"===t.color&&{color:(e.vars||e).palette.primary.main},"inherit"===t.color&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}))),Be=o.forwardRef((function(e,t){const n=(0,g.A)({props:e,name:"MuiListSubheader"}),{className:r,color:i="default",component:o="li",disableGutters:a=!1,disableSticky:d=!1,inset:h=!1}=n,p=(0,l.A)(n,ze),f=(0,s.A)({},n,{color:i,component:o,disableGutters:a,disableSticky:d,inset:h}),m=(e=>{const{classes:t,color:n,disableGutters:r,inset:i,disableSticky:o}=e,a={root:["root","default"!==n&&`color${(0,de.A)(n)}`,!r&&"gutters",i&&"inset",!o&&"sticky"]};return(0,u.A)(a,Ne,t)})(f);return(0,S.jsx)(Ve,(0,s.A)({as:o,className:(0,c.A)(m.root,r),ref:t,ownerState:f},p))}));Be.muiSkipListHighlight=!0;const $e=Be;var Ge=n(90703),Ue=n(83188),We=n(52441),qe=n(8253),He=n(44053),Ye=n(70501),Ke=n(65127);const Xe=(0,Ke.A)((0,S.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 Ze=n(69216);function Je(e){return(0,w.Ay)("MuiAutocomplete",e)}const Qe=(0,x.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 et,tt;const nt=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],rt=["ref"],it=(0,d.h)("MuiAutocomplete"),ot=(0,h.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[{[`& .${Qe.tag}`]:t.tag},{[`& .${Qe.tag}`]:t[`tagSize${(0,de.A)(s)}`]},{[`& .${Qe.inputRoot}`]:t.inputRoot},{[`& .${Qe.input}`]:t.input},{[`& .${Qe.input}`]:a&&t.inputFocused},t.root,r&&t.fullWidth,o&&t.hasPopupIcon,i&&t.hasClearIcon]}})({[`&.${Qe.focused} .${Qe.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Qe.clearIndicator}`]:{visibility:"visible"}},[`& .${Qe.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${Qe.inputRoot}`]:{flexWrap:"wrap",[`.${Qe.hasPopupIcon}&, .${Qe.hasClearIcon}&`]:{paddingRight:30},[`.${Qe.hasPopupIcon}.${Qe.hasClearIcon}&`]:{paddingRight:56},[`& .${Qe.input}`]:{width:0,minWidth:30}},[`& .${We.A.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${We.A.root}.${qe.A.sizeSmall}`]:{[`& .${We.A.input}`]:{padding:"2px 4px 3px 0"}},[`& .${He.A.root}`]:{padding:9,[`.${Qe.hasPopupIcon}&, .${Qe.hasClearIcon}&`]:{paddingRight:39},[`.${Qe.hasPopupIcon}.${Qe.hasClearIcon}&`]:{paddingRight:65},[`& .${Qe.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${Qe.endAdornment}`]:{right:9}},[`& .${He.A.root}.${qe.A.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Qe.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Ye.A.root}`]:{paddingTop:19,paddingLeft:8,[`.${Qe.hasPopupIcon}&, .${Qe.hasClearIcon}&`]:{paddingRight:39},[`.${Qe.hasPopupIcon}.${Qe.hasClearIcon}&`]:{paddingRight:65},[`& .${Ye.A.input}`]:{padding:"7px 4px"},[`& .${Qe.endAdornment}`]:{right:9}},[`& .${Ye.A.root}.${qe.A.sizeSmall}`]:{paddingBottom:1,[`& .${Ye.A.input}`]:{padding:"2.5px 4px"}},[`& .${qe.A.hiddenLabel}`]:{paddingTop:8},[`& .${Ye.A.root}.${qe.A.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Qe.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Ye.A.root}.${qe.A.hiddenLabel}.${qe.A.sizeSmall}`]:{[`& .${Qe.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Qe.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${Qe.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${Qe.input}`]:{opacity:1}}}]}),at=(0,h.Ay)("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),st=(0,h.Ay)(Ge.A,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),lt=(0,h.Ay)(Ge.A,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>(0,s.A)({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),ct=(0,h.Ay)(De.A,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Qe.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})((({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),ut=(0,h.Ay)(P.A,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})((({theme:e})=>(0,s.A)({},e.typography.body1,{overflow:"auto"}))),dt=(0,h.Ay)("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})((({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),ht=(0,h.Ay)("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})((({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),pt=(0,h.Ay)("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})((({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${Qe.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"},[`&.${Qe.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"},[`&.${Qe.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,Fe.X4)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Qe.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,Fe.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Qe.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,Fe.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}}))),ft=(0,h.Ay)($e,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})((({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),gt=(0,h.Ay)("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${Qe.option}`]:{paddingLeft:24}}),mt=o.forwardRef((function(e,t){var n,r,i,a;const d=it({props:e,name:"MuiAutocomplete"}),{autoComplete:h=!1,autoHighlight:p=!1,autoSelect:f=!1,blurOnSelect:g=!1,ChipProps:m,className:y,clearIcon:v=et||(et=(0,S.jsx)(Xe,{fontSize:"small"})),clearOnBlur:x=!d.freeSolo,clearOnEscape:w=!1,clearText:A="Clear",closeText:C="Close",componentsProps:E={},defaultValue:_=(d.multiple?[]:null),disableClearable:k=!1,disableCloseOnSelect:T=!1,disabled:O=!1,disabledItemsFocusable:I=!1,disableListWrap:M=!1,disablePortal:L=!1,filterSelectedOptions:R=!1,forcePopupIcon:j="auto",freeSolo:F=!1,fullWidth:D=!1,getLimitTagsText:N=(e=>`+${e}`),getOptionLabel:z,groupBy:V,handleHomeEndKeys:B=!d.freeSolo,includeInputInList:$=!1,limitTags:G=-1,ListboxComponent:U="ul",ListboxProps:W,loading:q=!1,loadingText:H="Loading…",multiple:Y=!1,noOptionsText:K="No options",openOnFocus:X=!1,openText:Z="Open",PaperComponent:J=P.A,PopperComponent:Q=De.A,popupIcon:ee=tt||(tt=(0,S.jsx)(Ze.A,{})),readOnly:te=!1,renderGroup:ne,renderInput:re,renderOption:ie,renderTags:oe,selectOnFocus:ae=!d.freeSolo,size:se="medium",slotProps:le={}}=d,ce=(0,l.A)(d,nt),{getRootProps:ue,getInputProps:he,getInputLabelProps:pe,getPopupIndicatorProps:fe,getClearProps:ge,getTagProps:me,getListboxProps:ye,getOptionProps:ve,value:be,dirty:xe,expanded:we,id:Ae,popupOpen:Se,focused:Ce,focusedTag:Ee,anchorEl:_e,setAnchorEl:ke,inputValue:Te,groupedOptions:Oe}=je((0,s.A)({},d,{componentName:"Autocomplete"})),Pe=!k&&!O&&xe&&!te,Ie=(!F||!0===j)&&!1!==j,{onMouseDown:Me}=he(),{ref:Le}=null!=W?W:{},Re=ye(),{ref:Fe}=Re,Ne=(0,l.A)(Re,rt),ze=(0,b.A)(Fe,Le),Ve=z||(e=>{var t;return null!=(t=e.label)?t:e}),Be=(0,s.A)({},d,{disablePortal:L,expanded:we,focused:Ce,fullWidth:D,getOptionLabel:Ve,hasClearIcon:Pe,hasPopupIcon:Ie,inputFocused:-1===Ee,popupOpen:Se,size:se}),$e=(e=>{const{classes:t,disablePortal:n,expanded:r,focused:i,fullWidth:o,hasClearIcon:a,hasPopupIcon:s,inputFocused:l,popupOpen:c,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,de.A)(d)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",c&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return(0,u.A)(h,Je,t)})(Be);let Ge;if(Y&&be.length>0){const e=e=>(0,s.A)({className:$e.tag,disabled:O},me(e));Ge=oe?oe(be,e,Be):be.map(((t,n)=>(0,S.jsx)(Ue.A,(0,s.A)({label:Ve(t),size:se},e({index:n}),m))))}if(G>-1&&Array.isArray(Ge)){const e=Ge.length-G;!Ce&&e>0&&(Ge=Ge.splice(0,G),Ge.push((0,S.jsx)("span",{className:$e.tag,children:N(e)},Ge.length)))}const We=ne||(e=>(0,S.jsxs)("li",{children:[(0,S.jsx)(ft,{className:$e.groupLabel,ownerState:Be,component:"div",children:e.group}),(0,S.jsx)(gt,{className:$e.groupUl,ownerState:Be,children:e.children})]},e.key)),qe=ie||((e,t)=>(0,o.createElement)("li",(0,s.A)({},e,{key:e.key}),Ve(t))),He=(e,t)=>{const n=ve({option:e,index:t});return qe((0,s.A)({},n,{className:$e.option}),e,{selected:n["aria-selected"],index:t,inputValue:Te},Be)},Ye=null!=(n=le.clearIndicator)?n:E.clearIndicator,Ke=null!=(r=le.paper)?r:E.paper,Qe=null!=(i=le.popper)?i:E.popper,mt=null!=(a=le.popupIndicator)?a:E.popupIndicator,yt=e=>(0,S.jsx)(ct,(0,s.A)({as:Q,disablePortal:L,style:{width:_e?_e.clientWidth:null},ownerState:Be,role:"presentation",anchorEl:_e,open:Se},Qe,{className:(0,c.A)($e.popper,null==Qe?void 0:Qe.className),children:(0,S.jsx)(ut,(0,s.A)({ownerState:Be,as:J},Ke,{className:(0,c.A)($e.paper,null==Ke?void 0:Ke.className),children:e}))}));let vt=null;return Oe.length>0?vt=yt((0,S.jsx)(pt,(0,s.A)({as:U,className:$e.listbox,ownerState:Be},Ne,W,{ref:ze,children:Oe.map(((e,t)=>V?We({key:e.key,group:e.group,children:e.options.map(((t,n)=>He(t,e.index+n)))}):He(e,t)))}))):q&&0===Oe.length?vt=yt((0,S.jsx)(dt,{className:$e.loading,ownerState:Be,children:H})):0!==Oe.length||F||q||(vt=yt((0,S.jsx)(ht,{className:$e.noOptions,ownerState:Be,role:"presentation",onMouseDown:e=>{e.preventDefault()},children:K}))),(0,S.jsxs)(o.Fragment,{children:[(0,S.jsx)(ot,(0,s.A)({ref:t,className:(0,c.A)($e.root,y),ownerState:Be},ue(ce),{children:re({id:Ae,disabled:O,fullWidth:!0,size:"small"===se?"small":void 0,InputLabelProps:pe(),InputProps:(0,s.A)({ref:ke,className:$e.inputRoot,startAdornment:Ge,onClick:e=>{e.target===e.currentTarget&&Me(e)}},(Pe||Ie)&&{endAdornment:(0,S.jsxs)(at,{className:$e.endAdornment,ownerState:Be,children:[Pe?(0,S.jsx)(st,(0,s.A)({},ge(),{"aria-label":A,title:A,ownerState:Be},Ye,{className:(0,c.A)($e.clearIndicator,null==Ye?void 0:Ye.className),children:v})):null,Ie?(0,S.jsx)(lt,(0,s.A)({},fe(),{disabled:O,"aria-label":Se?C:Z,title:Se?C:Z,ownerState:Be},mt,{className:(0,c.A)($e.popupIndicator,null==mt?void 0:mt.className),children:ee})):null]})}),inputProps:(0,s.A)({className:$e.input,disabled:O,readOnly:te},he())})})),_e?vt:null]})})),yt=mt;var vt=["fullWidth"];function bt(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){for(var t=1;t{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})((({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:(0,s.A)({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:(0,s.A)({backgroundColor:e.palette.grey[400]},e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})))}]}))),kt=(0,h.Ay)("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),Tt=(0,h.Ay)(At,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});const Ot=o.forwardRef((function(e,t){const n=Et({props:e,name:"MuiAvatar"}),{alt:r,children:i,className:a,component:d="div",slots:h={},slotProps:p={},imgProps:f,sizes:g,src:m,srcSet:y,variant:v="circular"}=n,b=(0,l.A)(n,Ct);let x=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}((0,s.A)({},f,{src:m,srcSet:y})),A=m||y,C=A&&"error"!==w,E=(0,s.A)({},n,{colorDefault:!C,component:d,variant:v}),_=(e=>{const{classes:t,variant:n,colorDefault:r}=e,i={root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]};return(0,u.A)(i,St,t)})(E),[k,T]=V("img",{className:_.img,elementType:kt,externalForwardedProps:{slots:h,slotProps:{img:(0,s.A)({},f,p.img)}},additionalProps:{alt:r,src:m,srcSet:y,sizes:g},ownerState:E});return x=C?(0,S.jsx)(k,(0,s.A)({},T)):i||0===i?i:A&&r?r[0]:(0,S.jsx)(Tt,{ownerState:E,className:_.fallback}),(0,S.jsx)(_t,(0,s.A)({as:d,ownerState:E,className:(0,c.A)(_.root,a),ref:t},b,{children:x}))}));function Pt(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 It(e){for(var t=1;tt.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),zt=(0,h.Ay)("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${(0,de.A)(n.anchorOrigin.vertical)}${(0,de.A)(n.anchorOrigin.horizontal)}${(0,de.A)(n.overlap)}`],"default"!==n.color&&t[`color${(0,de.A)(n.color)}`],n.invisible&&t.invisible]}})((({theme:e})=>{var t;return{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.keys((null!=(t=e.vars)?t:e).palette).filter((t=>{var n,r;return(null!=(n=e.vars)?n:e).palette[t].main&&(null!=(r=e.vars)?r:e).palette[t].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%",[`&.${jt.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%",[`&.${jt.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%",[`&.${jt.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%",[`&.${jt.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%",[`&.${jt.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%",[`&.${jt.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%",[`&.${jt.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%",[`&.${jt.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){var n,r,i,o,a,d;const h=Dt({props:e,name:"MuiBadge"}),{anchorOrigin:p={vertical:"top",horizontal:"right"},className:f,component:g,components:m={},componentsProps:y={},children:v,overlap:b="rectangular",color:x="default",invisible:w=!1,max:A=99,badgeContent:C,slots:E,slotProps:_,showZero:k=!1,variant:T="standard"}=h,O=(0,l.A)(h,Ft),{badgeContent:P,invisible:I,max:M,displayValue:L}=function(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:i=!1}=e,o=Te({badgeContent:t,max:r});let a=n;!1!==n||0!==t||i||(a=!0);const{badgeContent:s,max:l=r}=a?o:e;return{badgeContent:s,invisible:a,max:l,displayValue:s&&Number(s)>l?`${l}+`:s}}({max:A,invisible:w,badgeContent:C,showZero:k}),R=Te({anchorOrigin:p,color:x,overlap:b,variant:T,badgeContent:C}),j=I||null==P&&"dot"!==T,{color:F=x,overlap:D=b,anchorOrigin:N=p,variant:z=T}=j?R:h,V="dot"!==z?L:void 0,B=(0,s.A)({},h,{badgeContent:P,invisible:j,max:M,displayValue:V,showZero:k,anchorOrigin:N,color:F,overlap:D,variant:z}),$=(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,de.A)(n.vertical)}${(0,de.A)(n.horizontal)}`,`anchorOrigin${(0,de.A)(n.vertical)}${(0,de.A)(n.horizontal)}${(0,de.A)(i)}`,`overlap${(0,de.A)(i)}`,"default"!==t&&`color${(0,de.A)(t)}`]};return(0,u.A)(s,Rt,a)})(B),G=null!=(n=null!=(r=null==E?void 0:E.root)?r:m.Root)?n:Nt,U=null!=(i=null!=(o=null==E?void 0:E.badge)?o:m.Badge)?i:zt,W=null!=(a=null==_?void 0:_.root)?a:y.root,q=null!=(d=null==_?void 0:_.badge)?d:y.badge,H=(0,Lt.Q)({elementType:G,externalSlotProps:W,externalForwardedProps:O,additionalProps:{ref:t,as:g},ownerState:B,className:(0,c.A)(null==W?void 0:W.className,$.root,f)}),Y=(0,Lt.Q)({elementType:U,externalSlotProps:q,ownerState:B,className:(0,c.A)($.badge,null==q?void 0:q.className)});return(0,S.jsxs)(G,(0,s.A)({},H,{children:[v,(0,S.jsx)(U,(0,s.A)({},Y,{children:V}))]}))})),Bt=Vt;function $t(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 Gt(e){return(0,S.jsx)(Bt,function(e){for(var t=1;t{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})((({theme:e,ownerState:t,open:n})=>(0,s.A)({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Jt.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Jt.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Jt.arrow}`]:(0,s.A)({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Jt.arrow}`]:(0,s.A)({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})}))),tn=(0,h.Ay)("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${(0,de.A)(n.placement.split("-")[0])}`]]}})((({theme:e,ownerState:t})=>{return(0,s.A)({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:(0,Fe.X4)(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:(n=16/14,Math.round(1e5*n)/1e5)+"em",fontWeight:e.typography.fontWeightRegular},{[`.${Jt.popper}[data-popper-placement*="left"] &`]:(0,s.A)({transformOrigin:"right center"},t.isRtl?(0,s.A)({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):(0,s.A)({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Jt.popper}[data-popper-placement*="right"] &`]:(0,s.A)({transformOrigin:"left center"},t.isRtl?(0,s.A)({marginRight:"14px"},t.touch&&{marginRight:"24px"}):(0,s.A)({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Jt.popper}[data-popper-placement*="top"] &`]:(0,s.A)({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Jt.popper}[data-popper-placement*="bottom"] &`]:(0,s.A)({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})});var n})),nn=(0,h.Ay)("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})((({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:(0,Fe.X4)(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let rn=!1;const on=new f.E;let an={x:0,y:0};function sn(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const ln=o.forwardRef((function(e,t){var n,r,i,a,d,h,p,m,y,x,w,A,C,E,_,k,T,O,P;const I=(0,g.A)({props:e,name:"MuiTooltip"}),{arrow:L=!1,children:R,components:j={},componentsProps:D={},describeChild:N=!1,disableFocusListener:z=!1,disableHoverListener:V=!1,disableInteractive:B=!1,disableTouchListener:$=!1,enterDelay:G=100,enterNextDelay:U=0,enterTouchDelay:W=700,followCursor:q=!1,id:H,leaveDelay:Y=0,leaveTouchDelay:K=1500,onClose:X,onOpen:Z,open:J,placement:Q="bottom",PopperComponent:ee,PopperProps:te={},slotProps:ne={},slots:re={},title:ie,TransitionComponent:oe=Ht.A,TransitionProps:ae}=I,se=(0,l.A)(I,Qt),le=o.isValidElement(R)?R:(0,S.jsx)("span",{children:R}),ce=(0,v.A)(),ue=(0,qt.I)(),[he,pe]=o.useState(),[fe,ge]=o.useState(null),me=o.useRef(!1),ye=B||q,ve=(0,f.A)(),be=(0,f.A)(),xe=(0,f.A)(),we=(0,f.A)(),[Ae,Se]=(0,M.A)({controlled:J,default:!1,name:"Tooltip",state:"open"});let Ce=Ae;const Ee=(0,Kt.A)(H),_e=o.useRef(),ke=(0,Yt.A)((()=>{void 0!==_e.current&&(document.body.style.WebkitUserSelect=_e.current,_e.current=void 0),we.clear()}));o.useEffect((()=>ke),[ke]);const Te=e=>{on.clear(),rn=!0,Se(!0),Z&&!Ce&&Z(e)},Oe=(0,Yt.A)((e=>{on.start(800+Y,(()=>{rn=!1})),Se(!1),X&&Ce&&X(e),ve.start(ce.transitions.duration.shortest,(()=>{me.current=!1}))})),Pe=e=>{me.current&&"touchstart"!==e.type||(he&&he.removeAttribute("title"),be.clear(),xe.clear(),G||rn&&U?be.start(rn?U:G,(()=>{Te(e)})):Te(e))},Ie=e=>{be.clear(),xe.start(Y,(()=>{Oe(e)}))},{isFocusVisibleRef:Me,onBlur:Le,onFocus:Re,ref:je}=(0,Xt.A)(),[,Fe]=o.useState(!1),Ne=e=>{Le(e),!1===Me.current&&(Fe(!1),Ie(e))},ze=e=>{he||pe(e.currentTarget),Re(e),!0===Me.current&&(Fe(!0),Pe(e))},Ve=e=>{me.current=!0;const t=le.props;t.onTouchStart&&t.onTouchStart(e)},Be=e=>{Ve(e),xe.clear(),ve.clear(),ke(),_e.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",we.start(W,(()=>{document.body.style.WebkitUserSelect=_e.current,Pe(e)}))},$e=e=>{le.props.onTouchEnd&&le.props.onTouchEnd(e),ke(),xe.start(K,(()=>{Oe(e)}))};o.useEffect((()=>{if(Ce)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||Oe(e)}}),[Oe,Ce]);const Ge=(0,b.A)(le.ref,je,pe,t);ie||0===ie||(Ce=!1);const Ue=o.useRef(),We={},qe="string"==typeof ie;N?(We.title=Ce||!qe||V?null:ie,We["aria-describedby"]=Ce?Ee:null):(We["aria-label"]=qe?ie:null,We["aria-labelledby"]=Ce&&!qe?Ee:null);const He=(0,s.A)({},We,se,le.props,{className:(0,c.A)(se.className,le.props.className),onTouchStart:Ve,ref:Ge},q?{onMouseMove:e=>{const t=le.props;t.onMouseMove&&t.onMouseMove(e),an={x:e.clientX,y:e.clientY},Ue.current&&Ue.current.update()}}:{});const Ye={};$||(He.onTouchStart=Be,He.onTouchEnd=$e),V||(He.onMouseOver=sn(Pe,He.onMouseOver),He.onMouseLeave=sn(Ie,He.onMouseLeave),ye||(Ye.onMouseOver=Pe,Ye.onMouseLeave=Ie)),z||(He.onFocus=sn(ze,He.onFocus),He.onBlur=sn(Ne,He.onBlur),ye||(Ye.onFocus=ze,Ye.onBlur=Ne));const Ke=o.useMemo((()=>{var e;let t=[{name:"arrow",enabled:Boolean(fe),options:{element:fe,padding:4}}];return null!=(e=te.popperOptions)&&e.modifiers&&(t=t.concat(te.popperOptions.modifiers)),(0,s.A)({},te.popperOptions,{modifiers:t})}),[fe,te]),Xe=(0,s.A)({},I,{isRtl:ue,arrow:L,disableInteractive:ye,placement:Q,PopperComponentProp:ee,touch:me.current}),Ze=(e=>{const{classes:t,disableInteractive:n,arrow:r,touch:i,placement:o}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",i&&"touch",`tooltipPlacement${(0,de.A)(o.split("-")[0])}`],arrow:["arrow"]};return(0,u.A)(a,Zt,t)})(Xe),Je=null!=(n=null!=(r=re.popper)?r:j.Popper)?n:en,Qe=null!=(i=null!=(a=null!=(d=re.transition)?d:j.Transition)?a:oe)?i:Ht.A,et=null!=(h=null!=(p=re.tooltip)?p:j.Tooltip)?h:tn,tt=null!=(m=null!=(y=re.arrow)?y:j.Arrow)?m:nn,nt=(0,F.X)(Je,(0,s.A)({},te,null!=(x=ne.popper)?x:D.popper,{className:(0,c.A)(Ze.popper,null==te?void 0:te.className,null==(w=null!=(A=ne.popper)?A:D.popper)?void 0:w.className)}),Xe),rt=(0,F.X)(Qe,(0,s.A)({},ae,null!=(C=ne.transition)?C:D.transition),Xe),it=(0,F.X)(et,(0,s.A)({},null!=(E=ne.tooltip)?E:D.tooltip,{className:(0,c.A)(Ze.tooltip,null==(_=null!=(k=ne.tooltip)?k:D.tooltip)?void 0:_.className)}),Xe),ot=(0,F.X)(tt,(0,s.A)({},null!=(T=ne.arrow)?T:D.arrow,{className:(0,c.A)(Ze.arrow,null==(O=null!=(P=ne.arrow)?P:D.arrow)?void 0:O.className)}),Xe);return(0,S.jsxs)(o.Fragment,{children:[o.cloneElement(le,He),(0,S.jsx)(Je,(0,s.A)({as:null!=ee?ee:De.A,placement:Q,anchorEl:q?{getBoundingClientRect:()=>({top:an.y,left:an.x,right:an.x,bottom:an.y,width:0,height:0})}:he,popperRef:Ue,open:!!he&&Ce,id:Ee,transition:!0},Ye,nt,{popperOptions:Ke,children:({TransitionProps:e})=>(0,S.jsx)(Qe,(0,s.A)({timeout:ce.transitions.duration.shorter},e,rt,{children:(0,S.jsxs)(et,(0,s.A)({},it,{children:[ie,L?(0,S.jsx)(tt,(0,s.A)({},ot,{ref:ge})):null]}))}))}))]})})),cn=ln;var un=n(68127),dn=n(50926);function hn(e){var t=e.id,n=e.sx,r=e.variant,i=e.tooltip,o=e.tooltipPlacement,a=e.onClick,s=e.className,l=e.children,c=e.autoFocus,u=e.disabled,d=e.disableRipple,h=void 0!==d&&d,p=e.startIcon,f=e.endIcon,g=e.size,m=e.makeResponsive,y=e.fullWidth,b=(0,Ut.useTranslation)().t,x=(0,v.A)(),w=(0,Wt.A)(x.breakpoints.down("md"));return(0,S.jsx)(cn,{title:b(i||""),placement:o||"bottom",TransitionComponent:un.A,children:(0,S.jsx)(dn.A,{fullWidth:y,id:t,size:g||"medium",sx:n,variant:r||"text",className:"".concat(s||""),onClick:a,autoFocus:c,disabled:u,disableRipple:h,startIcon:p,endIcon:f,children:m&&w?null:l})})}var pn=n(26565),fn=n(70430),gn=n(49968),mn=n(21268),yn=n(65420),vn=n(99425);function bn(e){return(0,w.Ay)("MuiListItemIcon",e)}const xn=(0,x.A)("MuiListItemIcon",["root","alignItemsFlexStart"]);function wn(e){return(0,w.Ay)("MuiListItemText",e)}const An=(0,x.A)("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function Sn(e){return(0,w.Ay)("MuiMenuItem",e)}const Cn=(0,x.A)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),En=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],_n=(0,h.Ay)(H.A,{shouldForwardProp:e=>(0,gn.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]}})((({theme:e,ownerState:t})=>(0,s.A)({},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"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Cn.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,Fe.X4)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Cn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,Fe.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Cn.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,Fe.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,Fe.X4)(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Cn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Cn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${vn.A.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${vn.A.inset}`]:{marginLeft:52},[`& .${An.root}`]:{marginTop:0,marginBottom:0},[`& .${An.inset}`]:{paddingLeft:36},[`& .${xn.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&(0,s.A)({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${xn.root} svg`]:{fontSize:"1.25rem"}})))),kn=o.forwardRef((function(e,t){const n=(0,g.A)({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:i="li",dense:a=!1,divider:d=!1,disableGutters:h=!1,focusVisibleClassName:p,role:f="menuitem",tabIndex:m,className:y}=n,v=(0,l.A)(n,En),x=o.useContext(mn.A),w=o.useMemo((()=>({dense:a||x.dense||!1,disableGutters:h})),[x.dense,a,h]),A=o.useRef(null);(0,yn.A)((()=>{r&&A.current&&A.current.focus()}),[r]);const C=(0,s.A)({},n,{dense:w.dense,divider:d,disableGutters:h}),E=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:o,classes:a}=e,l={root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",o&&"selected"]},c=(0,u.A)(l,Sn,a);return(0,s.A)({},a,c)})(n),_=(0,b.A)(A,t);let k;return n.disabled||(k=void 0!==m?m:-1),(0,S.jsx)(mn.A.Provider,{value:w,children:(0,S.jsx)(_n,(0,s.A)({ref:_,role:f,tabIndex:k,component:i,focusVisibleClassName:(0,c.A)(E.focusVisible,p),className:(0,c.A)(E.root,y)},v,{ownerState:C,classes:E}))})})),Tn=kn;function On(e){return(0,w.Ay)("MuiButtonGroup",e)}const Pn=(0,x.A)("MuiButtonGroup",["root","contained","outlined","text","disableElevation","disabled","firstButton","fullWidth","vertical","grouped","groupedHorizontal","groupedVertical","groupedText","groupedTextHorizontal","groupedTextVertical","groupedTextPrimary","groupedTextSecondary","groupedOutlined","groupedOutlinedHorizontal","groupedOutlinedVertical","groupedOutlinedPrimary","groupedOutlinedSecondary","groupedContained","groupedContainedHorizontal","groupedContainedVertical","groupedContainedPrimary","groupedContainedSecondary","lastButton","middleButton"]);var In=n(13298),Mn=n(75706);const Ln=["children","className","color","component","disabled","disableElevation","disableFocusRipple","disableRipple","fullWidth","orientation","size","variant"],Rn=(0,h.Ay)("div",{name:"MuiButtonGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Pn.grouped}`]:t.grouped},{[`& .${Pn.grouped}`]:t[`grouped${(0,de.A)(n.orientation)}`]},{[`& .${Pn.grouped}`]:t[`grouped${(0,de.A)(n.variant)}`]},{[`& .${Pn.grouped}`]:t[`grouped${(0,de.A)(n.variant)}${(0,de.A)(n.orientation)}`]},{[`& .${Pn.grouped}`]:t[`grouped${(0,de.A)(n.variant)}${(0,de.A)(n.color)}`]},{[`& .${Pn.firstButton}`]:t.firstButton},{[`& .${Pn.lastButton}`]:t.lastButton},{[`& .${Pn.middleButton}`]:t.middleButton},t.root,t[n.variant],!0===n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,"vertical"===n.orientation&&t.vertical]}})((({theme:e,ownerState:t})=>(0,s.A)({display:"inline-flex",borderRadius:(e.vars||e).shape.borderRadius},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[2]},t.disableElevation&&{boxShadow:"none"},t.fullWidth&&{width:"100%"},"vertical"===t.orientation&&{flexDirection:"column"},{[`& .${Pn.grouped}`]:(0,s.A)({minWidth:40,"&:hover":(0,s.A)({},"contained"===t.variant&&{boxShadow:"none"})},"contained"===t.variant&&{boxShadow:"none"}),[`& .${Pn.firstButton},& .${Pn.middleButton}`]:(0,s.A)({},"horizontal"===t.orientation&&{borderTopRightRadius:0,borderBottomRightRadius:0},"vertical"===t.orientation&&{borderBottomRightRadius:0,borderBottomLeftRadius:0},"text"===t.variant&&"horizontal"===t.orientation&&{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)"),[`&.${Pn.disabled}`]:{borderRight:`1px solid ${(e.vars||e).palette.action.disabled}`}},"text"===t.variant&&"vertical"===t.orientation&&{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)"),[`&.${Pn.disabled}`]:{borderBottom:`1px solid ${(e.vars||e).palette.action.disabled}`}},"text"===t.variant&&"inherit"!==t.color&&{borderColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:(0,Fe.X4)(e.palette[t.color].main,.5)},"outlined"===t.variant&&"horizontal"===t.orientation&&{borderRightColor:"transparent"},"outlined"===t.variant&&"vertical"===t.orientation&&{borderBottomColor:"transparent"},"contained"===t.variant&&"horizontal"===t.orientation&&{borderRight:`1px solid ${(e.vars||e).palette.grey[400]}`,[`&.${Pn.disabled}`]:{borderRight:`1px solid ${(e.vars||e).palette.action.disabled}`}},"contained"===t.variant&&"vertical"===t.orientation&&{borderBottom:`1px solid ${(e.vars||e).palette.grey[400]}`,[`&.${Pn.disabled}`]:{borderBottom:`1px solid ${(e.vars||e).palette.action.disabled}`}},"contained"===t.variant&&"inherit"!==t.color&&{borderColor:(e.vars||e).palette[t.color].dark},{"&:hover":(0,s.A)({},"outlined"===t.variant&&"horizontal"===t.orientation&&{borderRightColor:"currentColor"},"outlined"===t.variant&&"vertical"===t.orientation&&{borderBottomColor:"currentColor"})}),[`& .${Pn.lastButton},& .${Pn.middleButton}`]:(0,s.A)({},"horizontal"===t.orientation&&{borderTopLeftRadius:0,borderBottomLeftRadius:0},"vertical"===t.orientation&&{borderTopRightRadius:0,borderTopLeftRadius:0},"outlined"===t.variant&&"horizontal"===t.orientation&&{marginLeft:-1},"outlined"===t.variant&&"vertical"===t.orientation&&{marginTop:-1})}))),jn=o.forwardRef((function(e,t){const n=(0,g.A)({props:e,name:"MuiButtonGroup"}),{children:r,className:i,color:a="primary",component:d="div",disabled:h=!1,disableElevation:p=!1,disableFocusRipple:f=!1,disableRipple:m=!1,fullWidth:y=!1,orientation:v="horizontal",size:b="medium",variant:x="outlined"}=n,w=(0,l.A)(n,Ln),A=(0,s.A)({},n,{color:a,component:d,disabled:h,disableElevation:p,disableFocusRipple:f,disableRipple:m,fullWidth:y,orientation:v,size:b,variant:x}),C=(e=>{const{classes:t,color:n,disabled:r,disableElevation:i,fullWidth:o,orientation:a,variant:s}=e,l={root:["root",s,"vertical"===a&&"vertical",o&&"fullWidth",i&&"disableElevation"],grouped:["grouped",`grouped${(0,de.A)(a)}`,`grouped${(0,de.A)(s)}`,`grouped${(0,de.A)(s)}${(0,de.A)(a)}`,`grouped${(0,de.A)(s)}${(0,de.A)(n)}`,r&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return(0,u.A)(l,On,t)})(A),E=o.useMemo((()=>({className:C.grouped,color:a,disabled:h,disableElevation:p,disableFocusRipple:f,disableRipple:m,fullWidth:y,size:b,variant:x})),[a,h,p,f,m,y,b,x,C.grouped]),_=function(e){return o.Children.toArray(e).filter((e=>o.isValidElement(e)))}(r),k=_.length,T=e=>{const t=0===e,n=e===k-1;return t&&n?"":t?C.firstButton:n?C.lastButton:C.middleButton};return(0,S.jsx)(Rn,(0,s.A)({as:d,role:"group",className:(0,c.A)(C.root,i),ref:t,ownerState:A},w,{children:(0,S.jsx)(In.A.Provider,{value:E,children:_.map(((e,t)=>(0,S.jsx)(Mn.A.Provider,{value:T(t),children:e},t)))})}))})),Fn=jn;var Dn=["children"];function Nn(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 zn(e){for(var t=1;tt.root})((()=>({overflow:"hidden"}))),Zn=o.forwardRef((function(e,t){const n=(0,g.A)({props:e,name:"MuiCard"}),{className:r,raised:i=!1}=n,o=(0,l.A)(n,Kn),a=(0,s.A)({},n,{raised:i}),d=(e=>{const{classes:t}=e;return(0,u.A)({root:["root"]},Yn,t)})(a);return(0,S.jsx)(Xn,(0,s.A)({className:(0,c.A)(d.root,r),elevation:i?8:void 0,ref:t,ownerState:a},o))}));var Jn=n(91031);function Qn(e){return(0,w.Ay)("MuiCardHeader",e)}const er=(0,x.A)("MuiCardHeader",["root","avatar","action","content","title","subheader"]),tr=["action","avatar","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"],nr=(0,h.Ay)("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>(0,s.A)({[`& .${er.title}`]:t.title,[`& .${er.subheader}`]:t.subheader},t.root)})({display:"flex",alignItems:"center",padding:16}),rr=(0,h.Ay)("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),ir=(0,h.Ay)("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),or=(0,h.Ay)("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto"}),ar=o.forwardRef((function(e,t){const n=(0,g.A)({props:e,name:"MuiCardHeader"}),{action:r,avatar:i,className:o,component:a="div",disableTypography:d=!1,subheader:h,subheaderTypographyProps:p,title:f,titleTypographyProps:m}=n,y=(0,l.A)(n,tr),v=(0,s.A)({},n,{component:a,disableTypography:d}),b=(e=>{const{classes:t}=e;return(0,u.A)({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},Qn,t)})(v);let x=f;null==x||x.type===Jn.A||d||(x=(0,S.jsx)(Jn.A,(0,s.A)({variant:i?"body2":"h5",className:b.title,component:"span",display:"block"},m,{children:x})));let w=h;return null==w||w.type===Jn.A||d||(w=(0,S.jsx)(Jn.A,(0,s.A)({variant:i?"body2":"body1",className:b.subheader,color:"text.secondary",component:"span",display:"block"},p,{children:w}))),(0,S.jsxs)(nr,(0,s.A)({className:(0,c.A)(b.root,o),as:a,ref:t,ownerState:v},y,{children:[i&&(0,S.jsx)(rr,{className:b.avatar,ownerState:v,children:i}),(0,S.jsxs)(or,{className:b.content,ownerState:v,children:[x,w]}),r&&(0,S.jsx)(ir,{className:b.action,ownerState:v,children:r})]}))}));function sr(e){return(0,w.Ay)("MuiCardContent",e)}(0,x.A)("MuiCardContent",["root"]);const lr=["className","component"],cr=(0,h.Ay)("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})((()=>({padding:16,"&:last-child":{paddingBottom:24}}))),ur=o.forwardRef((function(e,t){const n=(0,g.A)({props:e,name:"MuiCardContent"}),{className:r,component:i="div"}=n,o=(0,l.A)(n,lr),a=(0,s.A)({},n,{component:i}),d=(e=>{const{classes:t}=e;return(0,u.A)({root:["root"]},sr,t)})(a);return(0,S.jsx)(cr,(0,s.A)({as:i,className:(0,c.A)(d.root,r),ownerState:a,ref:t},o))}));var dr=["title","contentCard"];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}function pr(e){for(var t=1;t{const{ownerState:n}=e,{isMediaComponent:r,isImageComponent:i}=n;return[t.root,r&&t.media,i&&t.img]}})((({ownerState:e})=>(0,s.A)({display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center"},e.isMediaComponent&&{width:"100%"},e.isImageComponent&&{objectFit:"cover"}))),vr=["video","audio","picture","iframe","img"],br=["picture","img"],xr=o.forwardRef((function(e,t){const n=(0,g.A)({props:e,name:"MuiCardMedia"}),{children:r,className:i,component:o="div",image:a,src:d,style:h}=n,p=(0,l.A)(n,mr),f=-1!==vr.indexOf(o),m=!f&&a?(0,s.A)({backgroundImage:`url("${a}")`},h):h,y=(0,s.A)({},n,{component:o,isMediaComponent:f,isImageComponent:-1!==br.indexOf(o)}),v=(e=>{const{classes:t,isMediaComponent:n,isImageComponent:r}=e,i={root:["root",n&&"media",r&&"img"]};return(0,u.A)(i,gr,t)})(y);return(0,S.jsx)(yr,(0,s.A)({className:(0,c.A)(v.root,i),as:o,role:!f&&a?"img":void 0,ref:t,style:m,ownerState:y,src:f?a||d:void 0},p,{children:r}))})),wr=xr;function Ar(e){var t=e.sx,n=e.src,r=e.alt,i=e.click,o=e.keyDown;return(0,S.jsx)(wr,{component:"img",sx:t,alt:r,src:n,tabIndex:0,onClick:i,onKeyDown:o})}var Sr=n(15230);const Cr=(0,Ke.A)((0,S.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),Er=(0,Ke.A)((0,S.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),_r=(0,Ke.A)((0,S.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-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function kr(e){return(0,w.Ay)("MuiCheckbox",e)}const Tr=(0,x.A)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Or=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],Pr=(0,h.Ay)(Sr.A,{shouldForwardProp:e=>(0,gn.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,de.A)(n.size)}`],"default"!==n.color&&t[`color${(0,de.A)(n.color)}`]]}})((({theme:e,ownerState:t})=>(0,s.A)({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,Fe.X4)("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${Tr.checked}, &.${Tr.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Tr.disabled}`]:{color:(e.vars||e).palette.action.disabled}}))),Ir=(0,S.jsx)(Er,{}),Mr=(0,S.jsx)(Cr,{}),Lr=(0,S.jsx)(_r,{}),Rr=o.forwardRef((function(e,t){var n,r;const i=(0,g.A)({props:e,name:"MuiCheckbox"}),{checkedIcon:a=Ir,color:d="primary",icon:h=Mr,indeterminate:p=!1,indeterminateIcon:f=Lr,inputProps:m,size:y="medium",className:v}=i,b=(0,l.A)(i,Or),x=p?f:h,w=p?f:a,A=(0,s.A)({},i,{color:d,indeterminate:p,size:y}),C=(e=>{const{classes:t,indeterminate:n,color:r,size:i}=e,o={root:["root",n&&"indeterminate",`color${(0,de.A)(r)}`,`size${(0,de.A)(i)}`]},a=(0,u.A)(o,kr,t);return(0,s.A)({},t,a)})(A);return(0,S.jsx)(Pr,(0,s.A)({type:"checkbox",inputProps:(0,s.A)({"data-indeterminate":p},m),icon:o.cloneElement(x,{fontSize:null!=(n=x.props.fontSize)?n:y}),checkedIcon:o.cloneElement(w,{fontSize:null!=(r=w.props.fontSize)?r:y}),ownerState:A,ref:t,className:(0,c.A)(C.root,v)},b,{classes:C}))}));function jr(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 Fr=(0,o.forwardRef)((function(e,t){return(0,S.jsx)(Rr,function(e){for(var t=1;te;const Wr=44,qr=(0,Dr.i7)(Vr||(Vr=Ur` + 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},2032:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(28468),i=n(93880),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},88671:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(7424),i=n(64939),o=n(90007),a=n(16391),s=n(30670),l=n(76730),c=n(19284),u=n(78887),d=n(16706),h=n(94560),p=n(3974),f=n(56924),g=n(31410),m=n(10077),y=n(2032),v=n(45301);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}},90007:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateTuple=void 0;const r=n(28468),i=n(93880),o=n(4828),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},16391:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(28468),i=n(93880),o=n(4828),a=n(7424),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},3974:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(93880),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},31410:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(28468),i=n(93880),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},94560:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4828),i=n(28468),o=n(93880),a=n(93880),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},64939:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(90007),i={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,r.validateTuple)(e,"items")};t.default=i},16706:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(13809),i=n(4828),o=n(93880),a=n(78887),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},19284:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(28468),i=n(93880),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},45301:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(93880),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},4828:(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(28468),i=n(93880),o=n(42302),a=n(93880);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)))}},25048:(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},39245:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(25048),i=n(95628),o=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",r.default,i.default];t.default=o},95628:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.callRef=t.getValidate=void 0;const r=n(21698),i=n(4828),o=n(28468),a=n(42302),s=n(93638),l=n(93880),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},83246:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(28468),i=n(70243),o=n(93638),a=n(93880),s={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:s,parentSchema:l,it:c}=e,{oneOf:u}=l;if(!c.opts.discriminator)throw new Error("discriminator: requires discriminator option");const d=s.propertyName;if("string"!=typeof d)throw new Error("discriminator: requires propertyName");if(s.mapping)throw new Error("discriminator: mapping is not supported");if(!u)throw new Error("discriminator: requires oneOf keyword");const h=t.let("valid",!1),p=t.const("tag",r._`${n}${(0,r.getProperty)(d)}`);function f(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 ${p} == "string"`,(()=>function(){const n=function(){var e;const t={},n=i(l);let r=!0;for(let t=0;te.error(!1,{discrError:i.DiscrError.Tag,tag:p,tagName:d}))),e.ok(h)}};t.default=s},70243:(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={}))},82797:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(39245),i=n(11169),o=n(88671),a=n(59009),s=n(74276),l=[r.default,i.default,(0,o.default)(),a.default,s.metadataVocabulary,s.contentVocabulary];t.default=l},71498:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(28468),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},59009:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=[n(71498).default];t.default=r},74276:(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"]},39090:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(28468),i=n(93880),o=n(69903),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},57352:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(28468),i=n(93880),o=n(69903),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},11169:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(52083),i=n(98876),o=n(29770),a=n(49615),s=n(36263),l=n(56560),c=n(53248),u=n(6324),d=n(39090),h=n(57352),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},53248:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(28468),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},29770:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(28468),i=n(93880),o=n(42462),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},52083:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(28468),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},36263:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(28468),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},98876:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(28468),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},49615:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4828),i=n(28468),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},56560:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4828),i=n(28468),o=n(93880),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},6324:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(42965),i=n(28468),o=n(93880),a=n(69903),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},8259:(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(86891),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:""},c="https://cgpv/schema#/definitions/MapFeatureConfig",u="https://cgpv/schema#/definitions/TypeLayerGroupEntryConfig",d=["1.0"],h=["en","fr"],p=["dark","light","geo.ca"],f=[3978,3857],g=["transport","osm","simple","nogeom","shaded"],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",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"],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"},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","legend","layers","details","data-table","guide"],E={GEOLOCATOR:"geolocator",EXPORT:"export",GUIDE:"guide",DETAILS:"details",LEGEND:"legend",DATA_TABLE:"data-table",LAYERS:"layers"}},86891:(e,t,n)=>{"use strict";n.d(t,{K:()=>i,N:()=>o});var r=n(31625);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}},37189:(e,t,n)=>{"use strict";n.d(t,{F:()=>g});var r=n(43994),i=n(28249),o=n(70640),a=n(32814),s=n(59615),l=n.n(s),c=n(58643),u=n(60854),d=n(79913);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}()},92288:(e,t,n)=>{"use strict";n.d(t,{K:()=>b});var r=n(43994),i=n(70640),o=n(32814),a=n(71149),s=n(66138),l=n(99979),c=n(38096),u=n(59615),d=n.n(u),h=n(37189),p=n(79913),f=n(30924),g=n(98030),m=n(60854);function y(e,t,n){return t=(0,l.A)(t),(0,a.A)(e,v()?Reflect.construct(t,n||[],(0,l.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){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(0,s.A)((0,l.A)(t),"getState",this).call(this,e).appState}},{key:"getAppStateAsync",value:(u=(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,(0,s.A)((0,l.A)(t),"getStateAsync",this).call(this,n);case 2:return e.abrupt("return",e.sent.appState);case 3:case"end":return e.stop()}}),e,this)}))),function(e){return u.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,u}(h.F)},38890:(e,t,n)=>{"use strict";n.d(t,{F:()=>g});var r=n(28249),i=n(70640),o=n(32814),a=n(71149),s=n(66138),l=n(99979),c=n(38096),u=n(37189),d=n(60854),h=n(98030);function p(e,t,n){return t=(0,l.A)(t),(0,a.A)(e,f()?Reflect.construct(t,n||[],(0,l.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(){return(0,i.A)(this,t),p(this,t,arguments)}return(0,c.A)(t,e),(0,o.A)(t,null,[{key:"getDataTableState",value:function(e){return(0,s.A)((0,l.A)(t),"getState",this).call(this,e).dataTableState}},{key:"applyFilters",value:function(e,t,n,r){var i=h.d.getMapViewerLayerAPI(e).getGeoviewLayerHybrid(t),o=null==i?void 0:i.getLayerConfig(t);r&&void 0!==o&&n.length?null==i||i.applyViewFilter(t,n):null==i||i.applyViewFilter(t,"")}},{key:"setInitialSettings",value:function(e,t){this.getDataTableState(e).setterActions.setInitiallayerDataTableSetting(t)}},{key:"triggerGetAllFeatureInfo",value:function(e,t){return h.d.getMapViewerLayerAPI(e).allFeatureInfoLayerSet.queryLayer(t,"all")}},{key:"propagateFeatureInfoToStore",value:function(e,t){var n=(0,r.A)(this.getDataTableState(e).allFeaturesDataArray);n.find((function(e){return e.layerPath===t.layerPath}))||n.push(t),this.getDataTableState(e).setterActions.setAllFeaturesDataArray(n)}},{key:"deleteFeatureAllInfo",value:function(e,n){var r=this;(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")})(t,this,m).call(this,this.getDataTableState(e).allFeaturesDataArray,n,(function(t){r.getDataTableState(e).setterActions.setAllFeaturesDataArray(t),d.vF.logInfo("Removed Data Table Info in stores for layer path:",n)}))}}])}(u.F);function m(e,t,n){var r=e.findIndex((function(e){return e.layerPath===t}));r>=0&&(e.splice(r,1),n(e))}},77914:(e,t,n)=>{"use strict";n.d(t,{h:()=>y});var r,i=n(28249),o=n(70640),a=n(32814),s=n(71149),l=n(66138),c=n(99979),u=n(38096),d=n(60854),h=n(37189),p=n(38829);function f(e,t,n){return t=(0,c.A)(t),(0,s.A)(e,g()?Reflect.construct(t,n||[],(0,c.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){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=function(e){function t(){return(0,o.A)(this,t),f(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),b.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(0,l.A)((0,c.A)(t),"getState",this).call(this,e).detailsState}},{key:"deleteFeatureInfo",value:function(e,n){var r=this.getFeatureInfoState(e);m(t,this,v).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,"AppbarPanelButtonDetails","details",!0))}else"name"===t&&r.setterActions.setLayerDataArray(o);return Promise.resolve()}}])}(h.F);function v(e,t,n){var r=e.findIndex((function(e){return e.layerPath===t}));r>=0&&(e.splice(r,1),n(e))}function b(e,t){var n=this.getFeatureInfoState(e);return this.helperPropagateArrayStoreBatch(e,t,m(r,this,w)._,m(r,this,x)._,n.setterActions.setLayerDataArrayBatch,"feature-info-processor",n.layerDataArrayBatchLayerPathBypass,n.setterActions.setLayerDataArrayBatchLayerPathBypass)}r=y;var w={_:{}},x={_:1e3}},80084:(e,t,n)=>{"use strict";n.d(t,{U:()=>y});var r,i=n(64426),o=n(70640),a=n(32814),s=n(71149),l=n(66138),c=n(99979),u=n(38096),d=n(60854);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,{K:()=>x});var r,i=n(47361),o=n(70640),a=n(32814),s=n(71149),l=n(66138),c=n(99979),u=n(38096),d=n(85813),h=n(85182),p=n(79913),f=n(37189),g=n(48660),m=n(92288),y=n(98030);function v(e,t,n){return t=(0,c.A)(t),(0,s.A)(e,b()?Reflect.construct(t,n||[],(0,c.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(0,l.A)((0,c.A)(t),"getState",this).call(this,e).layerState}},{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=t.getLayerState(e).legendLayers,i=this.findLayerByPath(r,n);if(i&&i.bounds)return i.bounds}},{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(e){var t,n,r,i,o,a,s,l,c,u,d,h,p,f,g,m;return{highlight:void 0===(null===(t=e.initialSettings)||void 0===t||null===(t=t.controls)||void 0===t?void 0:t.highlight)||(null===(n=e.initialSettings)||void 0===n||null===(n=n.controls)||void 0===n?void 0:n.highlight),hover:void 0===(null===(r=e.initialSettings)||void 0===r||null===(r=r.controls)||void 0===r?void 0:r.hover)||(null===(i=e.initialSettings)||void 0===i||null===(i=i.controls)||void 0===i?void 0:i.hover),opacity:void 0===(null===(o=e.initialSettings)||void 0===o||null===(o=o.controls)||void 0===o?void 0:o.opacity)||(null===(a=e.initialSettings)||void 0===a||null===(a=a.controls)||void 0===a?void 0:a.opacity),query:void 0===(null===(s=e.initialSettings)||void 0===s||null===(s=s.controls)||void 0===s?void 0:s.query)||(null===(l=e.initialSettings)||void 0===l||null===(l=l.controls)||void 0===l?void 0:l.query),remove:void 0===(null===(c=e.initialSettings)||void 0===c||null===(c=c.controls)||void 0===c?void 0:c.remove)||(null===(u=e.initialSettings)||void 0===u||null===(u=u.controls)||void 0===u?void 0:u.remove),table:void 0===(null===(d=e.initialSettings)||void 0===d||null===(d=d.controls)||void 0===d?void 0:d.table)||(null===(h=e.initialSettings)||void 0===h||null===(h=h.controls)||void 0===h?void 0:h.table),visibility:void 0===(null===(p=e.initialSettings)||void 0===p||null===(p=p.controls)||void 0===p?void 0:p.visibility)||(null===(f=e.initialSettings)||void 0===f||null===(f=f.controls)||void 0===f?void 0:f.visibility),zoom:void 0===(null===(g=e.initialSettings)||void 0===g||null===(g=g.controls)||void 0===g?void 0:g.zoom)||(null===(m=e.initialSettings)||void 0===m||null===(m=m.controls)||void 0===m?void 0:m.zoom)}},o=this.getLayerState(e).legendLayers;!function o(a,s){if(!(r.length0){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:"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},98030:(e,t,n)=>{"use strict";n.d(t,{d:()=>z});var r=n(47361),i=n(43994),o=n(28249),a=n(70640),s=n(32814),l=n(71149),c=n(99979),u=n(38096),d=n(64426),h=n(59615),p=n.n(h),f=n(55731),g=n(99423),m=n(34336);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(8584),C=n(11989),E=n(8259),_=n(69070),k=n(45564),T=n(85813),O=n(12311),P=n(58643),I=n(46457),M=n(60854),L=n(79913),R=n(92288),j=n(37189),F=n(55950);function D(e,t,n){return t=(0,c.A)(t),(0,l.A)(e,N()?Reflect.construct(t,n||[],(0,c.A)(e).constructor):t.apply(e,n))}function N(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(N=function(){return!!e})()}var z=function(e){function t(){return(0,a.A)(this,t),D(this,t,arguments)}return(0,u.A)(t,e),(0,s.A)(t,[{key:"onInitialize",value:function(e){var n=e.getState().mapId;return[e.subscribe((function(e){return e.mapState.highlightedFeatures}),(function(e,r){if(M.vF.logTraceCoreStoreSubscription("MAP EVENT PROCESSOR - highlightedFeatures",n,e),0===e.length)t.getMapViewerLayerAPI(n).featureHighlight.removeHighlight("all");else{for(var i=e.map((function(e){return e.geometry.ol_uid})),o=r.map((function(e){return e.geometry.ol_uid})),a=e.filter((function(e){return!o.includes(e.geometry.ol_uid)})),s=r.filter((function(e){return!i.includes(e.geometry.ol_uid)})),l=0;l2&&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:"getMapIndexFromOrderedLayerInfo",value:function(e,t){for(var n=this.getMapStateProtected(e).orderedLayerInfo,r=0;r2&&void 0!==arguments[2]?arguments[2]:{padding:[100,100,100,100],maxZoom:11,duration:1e3};return this.getMapViewer(e).getView().fit(t,n),new Promise((function(e){setTimeout((function(){e()}),(n.duration||1e3)+150)}))}},{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(28249),i=n(70640),o=n(32814),a=n(71149),s=n(66138),l=n(99979),c=n(38096),u=n(60854);function d(e,t,n){return t=(0,l.A)(t),(0,a.A)(e,h()?Reflect.construct(t,n||[],(0,l.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(0,s.A)((0,l.A)(t),"getState",this).call(this,e).swiperState}},{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(37189).F)},6106:(e,t,n)=>{"use strict";n.d(t,{t:()=>w});var r=n(64426),i=n(70640),o=n(32814),a=n(71149),s=n(66138),l=n(99979),c=n(38096),u=n(37189),d=n(79913),h=n(27174),p=n(21838),f=n(92288),g=n(98030),m=n(64873),y=n(82015);function v(e,t,n){return t=(0,l.A)(t),(0,a.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})()}var w=function(e){function t(){return(0,i.A)(this,t),v(this,t,arguments)}return(0,c.A)(t,e),(0,o.A)(t,null,[{key:"getTimesliderState",value:function(e){return(0,s.A)((0,l.A)(t),"getState",this).call(this,e).timeSliderState}},{key:"getTimeSliderLayers",value:function(e){var t;return null===(t=this.getTimesliderState(e))||void 0===t?void 0:t.timeSliderLayers}},{key:"checkInitTimeSliderLayerAndApplyFilters",value:function(e,t){if(this.getTimesliderState(e)){var n=this.getInitialTimeSliderValues(e,t);n&&this.addTimeSliderLayerAndApplyFilters(e,t.layerPath,n)}}},{key:"addTimeSliderLayerAndApplyFilters",value:function(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.applyFilters(e,t,s,l,c,u,d)}}},{key:"removeTimeSliderLayer",value:function(e,t){var n;null===(n=this.getTimesliderState(e))||void 0===n||n.setterActions.removeTimeSliderLayer(t)}},{key:"getInitialTimeSliderValues",value:function(e,t){var n,r;if(t.layerPath){var i=g.d.getMapViewerLayerAPI(e).getGeoviewLayerHybrid(t.layerPath).getTemporalDimension(t.layerPath);if(i&&i.range){var o,a,s=i.range.range,l=Array.isArray(i.default),c=l?i.default[0]:i.default,u=[new Date(s[0]).getTime(),new Date(s[s.length-1]).getTime()],h=i.field,p=i.singleHandle,m=i.nearestValues,y=h,v=t.source.featureInfo;if(v){var b,w,x=v,A=x.aliasFields,S=x.outfields;a=null===(b=(0,d.getLocalizedValue)(S,f.K.getDisplayLanguage(e)))||void 0===b?void 0:b.split(","),o=null===(w=(0,d.getLocalizedValue)(A,f.K.getDisplayLanguage(e)))||void 0===w?void 0:w.split(",")}var C=a?a.indexOf(h):-1;return-1!==C&&o&&a&&(null===(n=o)||void 0===n?void 0:n.length)===(null===(r=a)||void 0===r?void 0:r.length)&&(y=o[C]),{range:s,defaultValue:c,discreteValues:"discrete"===m,minAndMax:u,field:h,fieldAlias:y,singleHandle:p,filtering:!0,values:p?[new Date(i.default).getTime()]:l?[new Date(i.default[0]).getTime(),new Date(i.default[1]).getTime()]:[].concat(u),delay:1e3,locked:void 0,reversed:void 0}}}}},{key:"applyFilters",value:function(e,t,n,r,i,o,a){var s,l,c=g.d.getMapViewerLayerAPI(e).getGeoviewLayerHybrid(t);if(c instanceof h.GB||c instanceof m.V)if(i){var u="".concat(new Date(a[0]).toISOString().slice(0,new Date(a[0]).toISOString().length-5),"Z"),d="".concat(r,"=date '").concat(u,"'");c.applyViewFilter(t,d)}else{var f="".concat(r,"=date '").concat(n,"'");c.applyViewFilter(t,f)}else if(c instanceof p.$x||c instanceof y.o)if(i){var v="time=".concat(o[0],",").concat(a[0]);c.applyViewFilter(t,v)}else{var b="time=".concat(o[0],",").concat(n);c.applyViewFilter(t,b)}else if(i){var w="".concat(r," >= date '").concat(new Date(a[0]).toISOString(),"'");a.length>1&&(w+=" and ".concat(r," <= date '").concat(new Date(a[1]).toISOString(),"'")),c.applyViewFilter(t,w)}else{var x="".concat(r," >= date '").concat(new Date(o[0]).toISOString(),"'");a.length>1&&(x+="and ".concat(r," <= date '").concat(new Date(o[1]).toISOString(),"'")),c.applyViewFilter(t,x)}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)}}])}(u.F)},38829:(e,t,n)=>{"use strict";n.d(t,{d:()=>d});var r=n(70640),i=n(32814),o=n(71149),a=n(66138),s=n(99979),l=n(38096);function c(e,t,n){return t=(0,s.A)(t),(0,o.A)(e,u()?Reflect.construct(t,n||[],(0,s.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(){return(0,r.A)(this,t),c(this,t,arguments)}return(0,l.A)(t,e),(0,i.A)(t,null,[{key:"getUIState",value:function(e){return(0,a.A)((0,s.A)(t),"getState",this).call(this,e).uiState}},{key:"getActiveFooterBarTab",value:function(e){return this.getUIState(e).activeFooterBarTabId}},{key:"getAppBarComponents",value:function(e){return this.getUIState(e).appBarComponents}},{key:"getCorePackageComponents",value:function(e){return this.getUIState(e).corePackagesComponents}},{key:"setActiveFooterBarTab",value:function(e,t){this.getUIState(e).setterActions.setActiveFooterBarTab(t)}},{key:"setActiveAppBarTab",value:function(e,t,n,r){this.getUIState(e).setterActions.setActiveAppBarTab(t,n,r)}},{key:"getActiveAppBarTab",value:function(e){return this.getUIState(e).activeAppBarTab}}])}(n(37189).F)},16221:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(70640),i=n(32814),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)}}])}()},50196:(e,t,n)=>{"use strict";n.d(t,{G:()=>s});var r=n(70640),i=n(32814),o=n(64426),a=n(60854),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)))}}])}()},90763:(e,t,n)=>{"use strict";n.d(t,{k:()=>w});var r=n(31625),i=n(43994),o=n(70640),a=n(32814),s=n(64426),l=n(59615),c=n.n(l),u=n(30538),d=n(65868),h=n(43331),p=n(94145),f=n(58839),g=n.n(f),m=n(79913),y=n(69070),v=n(60854),b=n(98030),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(_=0;_{"use strict";n.d(t,{FHQ:()=>on,WDX:()=>fn,d1f:()=>sn});var r=n(43994),i=n(59615),o=n.n(i),a=n(30538),s=n(17004),l=n(6467),c=n(94145),u=n(27612),d=n.n(u),h=n(15397),p=n.n(h),f=n(76743),g=n.n(f),m=n(34804),y=n.n(m),v=n(74032),b=n.n(v),w=n(60605),x=n.n(w),A=n(77946),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(3836),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 _=n(98189),k={};k.styleTagTransform=x(),k.setAttributes=y(),k.insert=g().bind(null,"head"),k.domAPI=p(),k.insertStyleElement=b();d()(_.A,k);_.A&&_.A.locals&&_.A.locals;var T=n(20522),O={};O.styleTagTransform=x(),O.setAttributes=y(),O.insert=g().bind(null,"head"),O.domAPI=p(),O.insertStyleElement=b();d()(T.A,O);T.A&&T.A.locals&&T.A.locals;var P=n(3104),I=n(68179),M=n(70640),L=n(32814),R=n(64426),j=n(47361),F=n(8259),D=n(86891),N=n(28249),z=n(80363),V=n.n(z),B=n(79950),$=n.n(B),G=n(71149),U=n(99979),W=n(38096),q=n(58839),H=n.n(q);const Y=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"}},"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"},"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"]},"TypeNavBarProps":{"description":"Controls available on the navigation bar.","additionalProperties":false,"type":"array","uniqueItems":true,"items":{"$ref":"#/definitions/TypeValidNavBarProps"},"default":["zoom","fullscreen","home"],"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}},"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"]},"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}}}},"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"]},"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"],"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"},"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 (default \'DD/MM/YYYY HH:MM:SSZ\').","type":"string"},"externalDateFormat":{"description":"Date format used by the getFeatureInfo to output date variable (default \'DD/MM/YYYY HH:MM:SSZ\').","type":"string"},"initialSettings":{"description":"Initial settings to apply to the GeoView layer at creation time.","$ref":"#/definitions/TypeLayerInitialSettings"},"listOfLayerEntryConfig":{"description":"The layer entries to use from the GeoView layer.","$ref":"#/definitions/TypeListOfLayerEntryConfig"}},"if":{"properties":{"isGeocore":{"description":"The isGeocore property is not defined by the user but by the viewer according to the geoview layer type. It is used as a flag indicating the type of schema used (input/internal).","enum":[true,false]}},"required":["isGeocore"]},"then":{"description":"Use Internal Schema","properties":{"geoviewLayerName":{"description":"The display name of the layer.","type":"string"},"geoviewLayerType":{"description":"Type of GeoView layer.","$ref":"#/definitions/TypeGeoviewLayerType"}}},"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"},"geoviewLayerType":{"description":"Type of GeoView layer.","type":"string","enum":["CSV","esriDynamic","esriFeature","esriImage","GeoJSON","imageStatic","ogcFeature","ogcWfs","ogcWms","vectorTiles","xyzTiles","geoCore"]}}},"required":["geoviewLayerId","geoviewLayerName","geoviewLayerType","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"},"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","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":"ID(s) of layer(s) to use as initial map focus.","type":"array","minItems":1,"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":[{"$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":[{"$ref":"#/definitions/AbstractGeoviewLayerConfig"},{"type":"object","properties":{"geoviewLayerType":{"enum":["esriFeature"]}}}]},"EntryConfigBaseClass":{"description":"Base class from which we derive all the nodes (group and leaves) in the layer tree.","type":"object","properties":{"layerId":{"description":"The id of the layer to display on the map.","type":"string"},"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 (default: 0).","type":"number","default":0},"maxScale":{"description":"Maximum scale the layer can display (default: 0).","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"}},"if":{"properties":{"entryType":{"description":"The entryType property is not defined by the user but by the viewer according to the geoview layer type. It is used as a flag indicating the type of schema used (input/internal).","enum":["vector","raster-image","group"]}},"required":["entryType"]},"then":{"properties":{"layerName":{"description":"Used by the internal schema.","type":"string"}}},"else":{"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"}}},"required":["layerId"]},"AbstractBaseLayerEntryConfig":{"description":"Base class from which we derive all the leaf nodes in the layer tree.","type":"object","allOf":[{"$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"}}}]},"EsriDynamicLayerEntryConfig":{"description":"Class from which we derive all the ESRI Dynamic leaf nodes in the layer tree.","type":"object","allOf":[{"$ref":"#/definitions/AbstractBaseLayerEntryConfig"},{"type":"object","properties":{"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":[{"$ref":"#/definitions/AbstractBaseLayerEntryConfig"},{"type":"object","properties":{"source":{"$ref":"#/definitions/TypeSourceEsriFeatureInitialConfig"},"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"}}},"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"}}}]},"TypeSourceImageWmsInitialConfig":{"description":"Initial settings for tile image sources.","additionalProperties":false,"type":"object","allOf":[{"$ref":"#/definitions/TypeBaseSourceInitialConfig"},{"additionalProperties":false,"type":"object","properties":{"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":{"description":"The type of the remote WMS server. The default value is mapserver.","enum":["mapserver","geoserver","qgis"]},"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 (default: 0).","type":"number"},"layerFilter":{"description":"Filter to apply on features of this layer.","type":"string"},"featureInfo":{"$ref":"#/definitions/TypeFeatureInfoLayerConfig"},"format":{"$ref":"#/definitions/TypeVectorSourceFormats"},"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."}}}]},"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 (default: 0).","type":"number"},"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. The default format is png.","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 (default: 0).","type":"number"},"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. Default = false.","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.","type":"string"},"domain":{"description":"An array of values that constitute the domain.","type":"array"}},"required":["name","alias","type","domain"]},"TypeOutfieldsType":{"description":"The types supported by the outfields object.","additionalProperties":false,"enum":["string","number","date","url"]},"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"},"minItems":1},"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 (default: true).","type":"boolean"},"label":{"type":"string"},"values":{"description":"Simple type has a single value at index 0; 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"}]},"minItems":1},"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.","oneOf":[{"$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"}}}],"required":["type","stroke"]},"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. Default = 8","type":"number"},"paternWidth":{"description":"Patern line width.default = 1.","type":"number"},"fillStyle":{"description":"Kind of filling for vector features. Default = solid. ","$ref":"#/definitions/TypeFillStyle"}}}],"required":["type","stroke"]},"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"}}}],"required":["type","symbol"]},"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"}}}],"required":["type","mimeType","src"]},"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 K=n(60854);function X(e,t){var n,r,i=new(H())({strict:!1,allErrors:!1});i.compile(Y);var o=i.getSchema(e);if(o){if(!o(t)){for(var a,s,l=0;l0&&void 0!==arguments[0]?arguments[0]:2;return JSON.stringify(this,void 0,e||void 0)}}])}();function se(e,t,n){return t=(0,U.A)(t),(0,G.A)(e,le()?Reflect.construct(t,n||[],(0,U.A)(e).constructor):t.apply(e,n))}function le(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(le=function(){return!!e})()}function ce(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 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 de=new WeakMap,he=function(e){function t(e,n,r,i,o){var a;return(0,M.A)(this,t),ce(a=se(this,t,[e,n,r,i,o]),de,{}),(0,R.A)(a,"geometryType",void 0),(0,R.A)(a,"source",void 0),(0,R.A)(a,"temporalDimension",void 0),a.geometryType=e.geometryType,e.source?a.source=(0,D.K)(V()(e.source)):a.source=(0,D.K)({projection:F.NA.map.viewSettings.projection}),e.temporalDimension&&(a.temporalDimension=(0,D.K)(V()(e.temporalDimension))),a}return(0,W.A)(t,e),(0,L.A)(t,[{key:"metadata",get:function(){return t=this,(e=de).get(ue(e,t));var e,t},set:function(e){var t,n,r;n=this,r=e,(t=de).set(ue(t,n),r)}}])}(ae),pe=n(97493);function fe(e,t,n){return t=(0,U.A)(t),(0,G.A)(e,ge()?Reflect.construct(t,n||[],(0,U.A)(e).constructor):t.apply(e,n))}function ge(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ge=function(){return!!e})()}var me=function(e){function t(){return(0,M.A)(this,t),fe(this,t,arguments)}return(0,W.A)(t,e),(0,L.A)(t,[{key:"fetchLayerMetadata",value:(n=(0,r.A)(o().mark((function e(){var t,n,r,i,a,s;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.geoviewLayerConfigInstance.metadataAccessPath.split("/"),n=parseInt(t.slice(-1)[0],10).toString()===t.slice(-1)[0],r=n?"".concat(t.slice(0,-1).join("/"),"/"):this.geoviewLayerConfigInstance.metadataAccessPath,i=r.endsWith("/")?"".concat(r).concat(this.layerId):"".concat(r,"/").concat(this.layerId),e.prev=4,e.next=7,pe.A.get("".concat(i,"?f=pjson"));case 7:a=e.sent,"error"in(s=a.data)?K.vF.logError("Error detected while reading layer metadata.",s.error):this.metadata=s,e.next=15;break;case 12:e.prev=12,e.t0=e.catch(4),K.vF.logError("Error detected in fetchEsriLayerMetadata while reading ESRI metadata.",e.t0);case 15:this.setErrorDetectedFlag(),this.metadata={};case 17:case"end":return e.stop()}}),e,this,[[4,12]])}))),function(){return n.apply(this,arguments)})}]);var n}(he);function ye(e,t,n){return t=(0,U.A)(t),(0,G.A)(e,ve()?Reflect.construct(t,n||[],(0,U.A)(e).constructor):t.apply(e,n))}function ve(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ve=function(){return!!e})()}var be=function(e){function t(){var e;return(0,M.A)(this,t),e=ye(this,t,["A config validation error occured."]),Object.setPrototypeOf(e,t.prototype),e}return(0,W.A)(t,e),(0,L.A)(t)}((0,n(31611).A)(Error)),we=function(e){function t(e){var n;return(0,M.A)(this,t),(n=ye(this,t)).message="Map Config Error: ".concat(e,"."),Object.setPrototypeOf(n,t.prototype),n}return(0,W.A)(t,e),(0,L.A)(t)}(be),xe=function(e){function t(e,n){var r;(0,M.A)(this,t),r=ye(this,t),(0,R.A)(r,"messageList",{LayerTypeMandatory:"Property geoviewLayerType is mandatory for GeoView layer <=> of type <=>.",LayerIdMandatory:"Property geoviewLayerId is mandatory for GeoView layer of type <=>.",LayerNameMandatory:"Property geoviewLayerName is mandatory for GeoView layer",MetadataAccessPathMandatory:"Property metadataAccessPath is mandatory for GeoView layer"}),(0,R.A)(r,"messageKey",void 0),(0,R.A)(r,"messageVariables",void 0),r.messageKey=e,r.messageVariables=n;var i=r.messageList[e].split("<=>").reduce((function(e,t,r){return r in the metadata.",LayerIdInvalidType:"The layerId of entry <=> must be an integer string."}),(0,R.A)(r,"messageKey",void 0),(0,R.A)(r,"messageVariables",void 0),r.messageKey=e,r.messageVariables=n;var i=r.messageList[e].split("<=>").reduce((function(e,t,r){return r1&&(Fe(Ve,this).listOfLayerEntryConfig=[{layerId:Fe(Ve,this).geoviewLayerId,initialSettings:this.initialSettings,layerName:Re({},Fe(Ve,this).geoviewLayerName),isLayerGroup:!0,listOfLayerEntryConfig:Fe(Ve,this).listOfLayerEntryConfig}]),this.geoviewLayerId=Fe(Ve,this).geoviewLayerId||(0,Me.generateId)(),this.geoviewLayerName=Z(null===(o=Fe(Ve,this))||void 0===o?void 0:o.geoviewLayerName)[Fe(ze,this)],this.metadataAccessPath=Z(Fe(Ve,this).metadataAccessPath)[Fe(ze,this)],this.serviceDateFormat=Fe(Ve,this).serviceDateFormat||"DD/MM/YYYY HH:MM:SSZ",this.externalDateFormat=Fe(Ve,this).externalDateFormat||"DD/MM/YYYY HH:MM:SSZ",this.listOfLayerEntryConfig=null===(a=Fe(Ve,this))||void 0===a||null===(a=a.listOfLayerEntryConfig)||void 0===a||null===(a=a.map((function(e){return ke(e)?new Ie(e,s.initialSettings,n,s):s.createLeafNode(e,s.initialSettings,n,s)})))||void 0===a?void 0:a.filter((function(e){return e}))}),[{key:"validate",value:function(){if(De($e,this,Fe($e,this)||!this.geoviewLayerType||!this.geoviewLayerId||!this.geoviewLayerName||!this.metadataAccessPath),!this.geoviewLayerType)throw new xe("LayerTypeMandatory",[this.geoviewLayerId,this.geoviewLayerType]);if(!this.geoviewLayerId)throw new xe("LayerIdMandatory",[this.geoviewLayerType]);if(!this.geoviewLayerName)throw new xe("LayerNameMandatory",[this.geoviewLayerId,this.geoviewLayerType]);if(!this.metadataAccessPath)throw new xe("MetadataAccessPathMandatory",[this.geoviewLayerId,this.geoviewLayerType])}},{key:"metadata",get:function(){return Fe(Ge,this)},set:function(e){De(Ge,this,e)}},{key:"metadataLayerTree",get:function(){return Fe(Ue,this)},set:function(e){De(Ue,this,e)}},{key:"language",get:function(){return Fe(ze,this)}},{key:"setErrorDetectedFlag",value:function(){var e;De($e,this,!0),null===(e=Fe(Be,this))||void 0===e||e.setErrorDetectedFlag()}},{key:"errorDetected",get:function(){return Fe($e,this)}},{key:"serialize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:2;return JSON.stringify(this,void 0,e)}}])}();function qe(e,t,n){return t=(0,U.A)(t),(0,G.A)(e,He()?Reflect.construct(t,n||[],(0,U.A)(e).constructor):t.apply(e,n))}function He(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(He=function(){return!!e})()}function Ye(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Ke(e,t){return e.get(Xe(e,t))}function Xe(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 Ze=new WeakSet,Je=new WeakMap,Qe=function(e){function t(){var e,n,r;(0,M.A)(this,t);for(var i=arguments.length,o=new Array(i),a=0;a0&&void 0!==arguments[0]?arguments[0]:2;return JSON.stringify(this,void 0,e)}},{key:"setErrorDetectedFlag",value:function(){gt(bt,this,!0)}}],[{key:"nodeFactory",value:function(e,t,n){switch(e.geoviewLayerType){case F.oR.ESRI_DYNAMIC:return new it(e,t,n);case F.oR.ESRI_FEATURE:return new dt(e,t,n)}}}]);var e}();function At(e){var t=e&&F.if.includes(e)?e:F.NA.map.viewSettings.projection,n=V()(F.NA.map);return n.viewSettings.maxExtent=(0,N.A)(F.Nt[t]),n.viewSettings.initialView||(n.viewSettings.initialView={zoomAndCenter:[3.5,F.VN[t]]}),n}function St(){this.map.viewSettings.projection=this.map.viewSettings.projection&&F.if.includes(this.map.viewSettings.projection)?this.map.viewSettings.projection:F.NA.map.viewSettings.projection,mt(wt,this,Ct).call(this);var e=this.map.viewSettings.initialView.zoomAndCenter[0];this.map.viewSettings.initialView.zoomAndCenter[0]=!Number.isNaN(e)&&e>=0&&e<=28?e:F.NA.map.viewSettings.initialView.zoomAndCenter[0],mt(wt,this,Et).call(this),this.schemaVersionUsed=F.ir.includes(this.schemaVersionUsed)?this.schemaVersionUsed:F.NA.schemaVersionUsed;var t=this.map.viewSettings.minZoom;this.map.viewSettings.minZoom=!Number.isNaN(t)&&t>=0&&t<=50?t:F.NA.map.viewSettings.minZoom;var n=this.map.viewSettings.maxZoom;this.map.viewSettings.maxZoom=!Number.isNaN(n)&&n>=0&&n<=50?n:F.NA.map.viewSettings.maxZoom,mt(wt,this,_t).call(this),mt(wt,this,kt).call(this)}function Ct(){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>F.mq[n].long[0]&&eF.mq[n].lat[0]&&tt[0]?a:F.mq[e].long[1],d=!Number.isNaN(s)&&s>t[1]?s:F.mq[e].lat[1];this.map.viewSettings.maxExtent=[l,c,u,d]}function kt(){var e,t,n,r,i,o,a,s,l,c,u=this;(Object.keys(ft(vt,this)).forEach((function(e){e in u||K.vF.logWarning("- Key '".concat(e,"' is invalid -"))})),(null===(e=ft(vt,this))||void 0===e||null===(e=e.map)||void 0===e||null===(e=e.viewSettings)||void 0===e?void 0:e.projection)!==this.map.viewSettings.projection)&&K.vF.logWarning("- Invalid projection code ".concat(null===(s=ft(vt,this))||void 0===s||null===(s=s.map)||void 0===s||null===(s=s.viewSettings)||void 0===s?void 0:s.projection," replaced by ").concat(this.map.viewSettings.projection," -"));null!==(t=ft(vt,this))&&void 0!==t&&null!==(t=t.map)&&void 0!==t&&null!==(t=t.viewSettings)&&void 0!==t&&null!==(t=t.initialView)&&void 0!==t&&t.zoomAndCenter&&null!==(n=this.map.viewSettings.initialView)&&void 0!==n&&n.zoomAndCenter&&(null===(r=ft(vt,this))||void 0===r||null===(r=r.map)||void 0===r||null===(r=r.viewSettings)||void 0===r||null===(r=r.initialView)||void 0===r?void 0:r.zoomAndCenter[0])!==(null===(i=this.map.viewSettings.initialView)||void 0===i?void 0:i.zoomAndCenter[0])&&K.vF.logWarning("- Invalid zoom level ".concat(null===(l=ft(vt,this))||void 0===l||null===(l=l.map)||void 0===l||null===(l=l.viewSettings)||void 0===l||null===(l=l.initialView)||void 0===l?void 0:l.zoomAndCenter[0],"\n replaced by ").concat(null===(c=this.map.viewSettings.initialView)||void 0===c?void 0:c.zoomAndCenter[0]," -"));var d,h=null===(o=ft(vt,this))||void 0===o||null===(o=o.map)||void 0===o||null===(o=o.viewSettings)||void 0===o||null===(o=o.initialView)||void 0===o?void 0:o.zoomAndCenter;(h&&Array.isArray(h)&&2===h.length&&Array.isArray(h[1])&&2===h[1].length&&(0,D.K)(h[1])!==this.map.viewSettings.initialView.zoomAndCenter[1]&&K.vF.logWarning("- Invalid center ".concat(h[1],"\n replaced by ").concat(this.map.viewSettings.initialView.zoomAndCenter[1])),JSON.stringify(null===(a=ft(vt,this))||void 0===a||null===(a=a.map)||void 0===a?void 0:a.basemapOptions)!==JSON.stringify(this.map.basemapOptions))&&K.vF.logWarning("- Invalid basemap options ".concat(JSON.stringify(null===(d=ft(vt,this))||void 0===d||null===(d=d.map)||void 0===d?void 0:d.basemapOptions)," replaced by ").concat(JSON.stringify(this.map.basemapOptions)," -"))}function Tt(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 Ot=function(){function e(){(0,M.A)(this,e)}return(0,L.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,pe.A.get(a);case 3:return s=t.sent,t.abrupt("return",Tt(e,this,Pt).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 Pt(e,t){if(!(null!=e&&e.data&&e.data.reponse&&e.data.reponse.rcs&&e.data.reponse.rcs[t]))throw new Error("Invalid response from GeoCore service");if(0===e.data.reponse.rcs[t].length)throw new Error("No layers returned by GeoCore service");for(var n=[],r=0;r0){var o=i.layers[0];if(o){var a=o.layerType,s=o.layerEntries,l=o.name,c=o.url,u=o.id,d=c.indexOf("FeatureServer")>-1;if(a!==F.oR.ESRI_DYNAMIC||d)if(d)for(var h=0;h2&&void 0!==u[2]?u[2]:"en",r!==F.JF){t.next=19;break}return t.prev=2,s={geoviewLayerId:n,geoviewLayerType:r},t.next=6,jt.call(e,i,(0,D.K)([s]));case 6:if(l=t.sent,c=(0,j.A)(l,1),(a=c[0]).geoviewLayerType!==F.JF){t.next=11;break}return t.abrupt("return",void 0);case 11:t.next=17;break;case 13:return t.prev=13,t.t0=t.catch(2),K.vF.logError("Unable to convert GeoCore layer (Id=".concat(n,").")),t.abrupt("return",void 0);case 17:t.next=20;break;case 19:a=(0,D.K)({geoviewLayerId:(0,Me.generateId)(),geoviewLayerName:{en:"unknown",fr:"inconnu"},geoviewLayerType:r,metadataAccessPath:{en:n},listOfLayerEntryConfig:[]});case 20:return e.lastLayerConfigCreated=xt.nodeFactory(a,i),t.abrupt("return",e.lastLayerConfigCreated);case 22:case"end":return t.stop()}}),t,null,[[2,13]])}))),function(e,n){return t.apply(this,arguments)})}]);var t,n,i}();function Mt(e){var t={};if(void 0!==e)for(var n=e.split("&"),r=0;r{"use strict";n.d(t,{w:()=>O,A:()=>P});var r=n(30538),i=(n(82810),n(65868)),o=n(43331),a=n(333),s=n(29224),l=n(73342),c=n(51559),u=n(87286),d=n(32829),h=n(87507),p=n(58990),f=n(97282);const g=(e,t)=>(0,c.A)({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),m=e=>(0,c.A)({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}});var y=n(5007),v=n(24115);function b(e){return(0,v.Ay)("MuiScopedCssBaseline",e)}(0,y.A)("MuiScopedCssBaseline",["root"]);const w=["className","component","enableColorScheme"],x=(0,p.Ay)("div",{name:"MuiScopedCssBaseline",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e,ownerState:t})=>{const n={};return t.enableColorScheme&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach((([t,r])=>{var i;n[`&${e.getColorSchemeSelector(t).replace(/\s*&/,"")}`]={colorScheme:null==(i=r.palette)?void 0:i.mode}})),(0,c.A)({},g(e,t.enableColorScheme),m(e),{"& *, & *::before, & *::after":{boxSizing:"inherit"},"& strong, & b":{fontWeight:e.typography.fontWeightBold}},n)})),A=r.forwardRef((function(e,t){const n=(0,h.A)({props:e,name:"MuiScopedCssBaseline"}),{className:r,component:i="div"}=n,o=(0,l.A)(n,w),a=(0,c.A)({},n,{component:i}),s=(e=>{const{classes:t}=e;return(0,d.A)({root:["root"]},b,t)})(a);return(0,f.jsx)(x,(0,c.A)({as:i,className:(0,u.A)(s.root,r),ref:t,ownerState:a},o))}));var S=n(25329),C=n(3389),E=n(30924),_=n(69070),k=n(60854),T=n(31726),O=(0,r.createContext)({mapId:"",mapFeaturesConfig:void 0});const P=function(e){k.vF.logTraceRender("components/app-start");var t=e.mapFeaturesConfig,n=e.onMapViewerInit,l=t.mapId,c=(0,r.useMemo)((function(){return k.vF.logTraceUseMemo("APP-START - mapContextValue",l),{mapId:l}}),[l]),u=(0,T.lk)(l),d=(0,T.iO)(l);return(0,f.jsx)(s.A,{injectFirst:!0,children:(0,f.jsx)(a.A,{theme:C.w,children:(0,f.jsx)(A,{children:(0,f.jsx)(r.Suspense,{fallback:"",children:function(){var e=i.Ay.cloneInstance({lng:u,fallbackLng:u});if(!(l in _.FHQ.maps)){var s=new E.F(t,e);_.FHQ.maps[l]=s}return _.FHQ.maps[l].onMapInit((function(e){null==n||n(e)})),(0,f.jsx)(o.I18nextProvider,{i18n:e,children:(0,f.jsx)(O.Provider,{value:c,children:(0,f.jsx)(a.A,{theme:(0,C.O)(d),children:(0,f.jsx)(r.StrictMode,{children:(0,f.jsx)(S.$,{mapViewer:_.FHQ.maps[l]})})})})})}()})})})})}},97886:(e,t,n)=>{"use strict";n.d(t,{r:()=>b});var r=n(70640),i=n(32814),o=n(64426),a=n(64941),s=n(79913),l=n(16221),c=n(38829);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;t2&&void 0!==arguments[2])||arguments[2];c.d.setActiveAppBarTab(this.mapId,e,t,n)}}])}();function w(e){l.A.emitEvent(this,f(m,this),e)}function x(e){l.A.emitEvent(this,f(y,this),e)}function A(){this.buttons.default={}}},95811:(e,t,n)=>{"use strict";n.d(t,{h:()=>z});var r=n(64426),i=n(47361),o=n(76390),a=n.n(o),s=n(46900),l=n.n(s),c=n(43331),u=n(30538),d=n(94145),h=n(3104),p=n(90763),f=n(79437),g=n(58726),m=n(69495),y=n(28187),v=n(31726),b=n(15247),w=n(60854),x=n(8124),A=n(12805),S=n(96974),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(28249);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 k(e){for(var t=1;t{"use strict";n.d(t,{A:()=>v});var r=n(47361),i=n(30538),o=n(43331),a=n(26565),s=n(66469),l=n(41019),c=n(8088),u=n(91031),d=n(64987),h=n(46457),p=n(3104),f=n(15247),g=n(28187),m=n(98533),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],_=C[1],k=function(){E&&(_(!1),A(null))},T={versionInfoPanel:{width:"200px",backgroundColor:function(e){return e.palette.geoViewColor.bgColor.light[200]},borderRadius:"5px",boxShadow:2,marginLeft:"15px",padding:"10px","& 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:"10px",color:function(e){return e.palette.geoViewColor.textColor.main},borderBottom:function(e){return"1px solid ".concat(e.palette.geoViewColor.bgColor.dark[300],"}")},marginBottom:"10px"}};return(0,y.jsx)(a.x,{mouseEvent:"onMouseDown",touchEvent:"onTouchStart",onClickAway:k,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),_(!E)},className:"".concat("dynamic"===n?"buttonFilled":"style4"," ").concat(E?"active":""),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:k,container:v,children:(0,y.jsxs)(c.A,{sx:T.versionInfoPanel,children:[(0,y.jsx)(u.A,{sx:T.versionsInfoTitle,component:"h3",children:e("appbar.version")}),(0,y.jsxs)(s.A,{sx:{padding:"10px",gap:"5px",display:"flex",flexDirection:"column"},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(0,".").concat(1,".").concat(0)}),(0,y.jsx)(u.A,{component:"div",children:new Date(1718646817635).toLocaleDateString()})]})]})})]})})}},17161:(e,t,n)=>{"use strict";n.d(t,{m:()=>f});var r=n(64426),i=n(47361),o=n(30538),a=n(94145),s=n(3104),l=n(69495),c=n(28187),u=n(79913),d=n(15247),h=n(60854),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",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"),"aria-label":"mapctrl.attribution.tooltip",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)())}))})})]})}},57449:(e,t,n)=>{"use strict";n.d(t,{n:()=>c});var r=n(30538),i=n(3104),o=n(28187),a=n(60854),s=n(15247),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"})})}},95785:(e,t,n)=>{"use strict";n.d(t,{y:()=>u});var r=n(30538),i=n(43331),o=n(23799),a=n(69495),s=n(3104),l=n(60854),c=n(97282);function u(e){var t=e.id,n=e.content,u=(0,i.useTranslation)().t,d=(0,a.A6)().closeModal,h=(0,a.XP)(),p=(0,a.NP)();return(0,r.useEffect)((function(){l.vF.logTraceUseEffect("FOCUS-TRAP-ELEMENT - activeTrapGeoView",h),h||d()}),[h,d]),(0,r.useEffect)((function(){l.vF.logTraceUseEffect("FOCUS-TRAP-ELEMENT - focusItem",p),t===p.activeElementId&&setTimeout((function(){var e;return null===(e=document.getElementById("".concat(t,"-exit-btn")))||void 0===e?void 0:e.focus()}),0)}),[p,t]),(0,c.jsx)(o.s,{open:t===p.activeElementId,children:(0,c.jsxs)(s.Box,{children:[(0,c.jsx)(s.Button,{id:"".concat(t,"-exit-btn"),type:"text",autoFocus:!0,onClick:function(){var e;d(),null===(e=document.getElementById(p.callbackElementId))||void 0===e||e.focus()},sx:{display:h?"block":"none",width:"95%",margin:"10px auto"},children:u("general.exit")}),n]})})}},78383:(e,t,n)=>{"use strict";n.d(t,{PE:()=>v,Wu:()=>b.W,xk:()=>A});n(95785),n(43367);var r=n(30538),i=n(94145),o=n(43331),a=n(78283),s=n(3104),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(46182),u=n(97282),d=(0,r.memo)((function(e){var t=e.isSelected,n=e.layer,d=e.onListItemClick,h=e.layerIndex,p=(0,i.A)(),f=l(p),g=(0,o.useTranslation)().t,m=0===(null==n?void 0:n.numOffeatures)||null===(null==n?void 0:n.features),y=0===(null==n?void 0:n.numOffeatures)||null===(null==n?void 0:n.features)||"processing"===n.queryStatus||"loading"===n.layerStatus||"processing"===n.layerStatus,v=(0,r.useCallback)((function(){var e;return"error"===n.layerStatus||"error"===(null==n?void 0:n.queryStatus)?"".concat(g("legend.layerError")):["init","processing"].includes(n.queryStatus)?"".concat(g("layers.querying"),"..."):(0,u.jsxs)(u.Fragment,{children:[n.layerFeatures," ",null!==(e=null==n?void 0:n.mapFilteredIcon)&&void 0!==e?e:""]})}),[n,g]);var b,w,x=(0,a.zh)({delay:150*h,from:{opacity:.1},to:{opacity:1}}),A=(0,r.useCallback)((function(e,t){"Enter"===e.key&&d(t)}),[d]),S=(0,a.CS)(s.Paper);return(0,u.jsx)(S,{sx:{marginBottom:"1rem"},style:x,className:(w=["layer-panel","bordered",null!==(b=n.layerStatus)&&void 0!==b?b:"","query-".concat(n.queryStatus)],t&&w.push("selectedLayer bordered-primary"),w.join(" ")),children:(0,u.jsx)(s.Tooltip,{title:n.tooltip,placement:"top",arrow:!0,children:(0,u.jsx)(s.Box,{children:(0,u.jsx)(s.ListItem,{disablePadding:!0,onKeyDown:function(e){return A(e,n)},tabIndex:0,children:(0,u.jsxs)(s.ListItemButton,{tabIndex:-1,selected:t,disabled:m||y,onClick:function(){return d(n)},"aria-label":n.layerName,children:[n.layerPath&&!n.content?(0,u.jsx)(s.ListItemIcon,{"aria-hidden":"true",children:(0,u.jsx)(c.B,{layer:n})}):null,(0,u.jsxs)(s.Box,{sx:f.listPrimaryText,children:[(0,u.jsx)(s.Typography,{className:"layerTitle",children:n.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:v()})})]})]})})})})})}));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;return(0,u.jsx)(d,{isSelected:(null!==(i=null==e?void 0:e.numOffeatures)&&void 0!==i?i:1)>0&&e.layerPath===n,layer:e,onListItemClick:r,layerIndex:t},e.layerPath)})),!t.length&&(0,u.jsx)(d,{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(64426),f=n(60854),g=n(27892),m=n(46457);function y(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 v(e){var t=e.children,n=e.guideContentIds,o=e.layerList,a=e.selectedLayerPath,l=e.onLayerListClicked,c=e.onIsEnlargeClicked,d=e.fullWidth,v=e.onGuideIsOpen,b=e.containerType,w=void 0===b?m.vB.FOOTER_BAR:b,x=(0,r.useRef)(null),A=(0,i.A)(),S=(0,r.useCallback)((function(e){var t;null==l||l(e),null===(t=x.current)||void 0===t||t.setIsRightPanelVisible(!0)}),[l]),C=(0,r.useCallback)((function(){return f.vF.logTraceUseCallback("LAYOUT - renderLayerList"),(0,u.jsx)(h,{selectedLayerPath:a,onListItemClick:S,layerList:o})}),[a,o,S]),E=(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(94145),i=n(3104),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(91140),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})}},27892:(e,t,n)=>{"use strict";n.d(t,{z:()=>S});var r=n(64426),i=n(47361),o=n(30538),a=n(43331),s=n(94145),l=n(34089),c=n(3104),u=n(43367),d=n(43422),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(60854),g=n(13659),m=n(78918),y=n(60192),v=n(27927),b=n(31726),w=n(46457);function x(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 A(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"}}}}}}(N),V=(0,a.useTranslation)().t,B=(0,b.DR)(),$=(0,b.kv)(),G=(0,o.useState)(!1),U=(0,i.A)(G,2),W=U[0],q=U[1],H=(0,o.useState)(!1),Y=(0,i.A)(H,2),K=Y[0],X=Y[1],Z=(0,o.useState)(!1),J=(0,i.A)(Z,2),Q=J[0],ee=J[1],te=(0,o.useState)(!1),ne=(0,i.A)(te,2),re=ne[0],ie=ne[1],oe=(0,d.W)({footerPanelTab:"default"}),ae=oe.leftPanelRef,se=oe.rightPanelRef,le=oe.panelTitleRef;(0,o.useImperativeHandle)(t,(function(){return{setIsRightPanelVisible:function(e){return q(e)}}})),(0,o.useEffect)((function(){X(!T&&!!M)}),[T,M]),(0,o.useEffect)((function(){null==R||R(K)}),[K,R]),(0,o.useEffect)((function(){F&&Q&&ee(!1)}),[F,Q]);var ce=(0,o.useCallback)((function(e){f.vF.logTraceUseCallback("LAYOUT - handleIsEnlarge"),ee(e),null==L||L(e)}),[L]),ue=(0,o.useCallback)((function(){M&&X(!0)}),[X,M]);N.breakpoints.down("md")&&(C||x||W||P||q(!0));var de,he;return(0,h.jsxs)(c.Box,{ref:t,children:[(0,h.jsxs)(u.N.Root,{sx:{pt:8,pb:0},ref:le,children:[!P&&(0,h.jsx)(u.N.Left,{isRightPanelVisible:W,isEnlarged:Q,"aria-hidden":!W,sxProps:{zIndex:re?"unset":200},className:"responsive-layout-left-top",children:x}),(0,h.jsx)(u.N.Right,{isRightPanelVisible:W,isEnlarged:Q,fullWidth:P,sxProps:{zIndex:re?"unset":100},className:"responsive-layout-right-top",children:(0,h.jsxs)(c.Box,{sx:(0,r.A)((0,r.A)({display:"flex",alignItems:P||D===w.vB.APP_BAR?"end":"center",flexDirection:P||D===w.vB.APP_BAR?"column":"row",gap:P||D===w.vB.APP_BAR?"10px":"0"},N.breakpoints.up("md"),{justifyContent:P||D===w.vB.APP_BAR?"space-between":"right"}),N.breakpoints.down("md"),{justifyContent:"space-between"}),children:[null!=_?_:(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:[!P&&!F&&(window.innerWidth<=N.breakpoints.values.md?null:(0,h.jsx)(c.Button,{makeResponsive:!0,type:"text",size:"small",variant:"outlined",startIcon:Q?(0,h.jsx)(g.A,{}):(0,h.jsx)(m.A,{}),sx:{boxShadow:"none"},onClick:function(){return ce(!Q)},tooltip:V(Q?"dataTable.reduceBtn":"dataTable.enlargeBtn"),children:V(Q?"dataTable.reduceBtn":"dataTable.enlargeBtn")})),!(null==M||!M.length)&&(window.innerWidth<=N.breakpoints.values.md?null:(0,h.jsx)(c.Button,{makeResponsive:!0,type:"text",disabled:K,variant:"outlined",size:"small",onClick:function(){return ue()},tooltip:V("general.openGuide"),startIcon:(0,h.jsx)(v.A,{}),children:V("general.guide")})),!$&&(0,h.jsx)(c.Button,{makeResponsive:!0,type:"text",variant:"outlined",size:"small",onClick:function(){return ie(!re)},tooltip:V(re?"general.closeFullscreen":"general.openFullscreen"),startIcon:(0,h.jsx)(c.FullscreenIcon,{}),children:V("general.fullScreen")}),!(!C&&!x)&&(P||!(window.innerWidth>=N.breakpoints.values.md)&&W?(0,h.jsx)(c.Button,{makeResponsive:!0,type:"text",size:"small",variant:"outlined",color:"primary",className:"buttonFilledOutline",startIcon:(0,h.jsx)(y.A,{fontSize:N.palette.geoViewFontSize.sm}),sx:A({},P?z.appBarEnlargeButton:z.footerBarEnlargeButton),onClick:function(){return q(!1)},tooltip:null!==(he=V("dataTable.close"))&&void 0!==he?he:"",children:V("dataTable.close")}):null)]})})]})})]}),(0,h.jsxs)(u.N.Root,{children:[(0,h.jsx)(u.N.Left,A(A({},!P&&{ref:ae}),{},{isEnlarged:Q,isRightPanelVisible:W,fullWidth:P,"aria-hidden":!W,sxProps:{zIndex:re?"unset":200},className:"responsive-layout-left-main",children:C})),(0,h.jsx)(u.N.Right,A(A({},!P&&{ref:se}),{},{isEnlarged:Q,isRightPanelVisible:W,fullWidth:P,sxProps:{zIndex:re?"unset":100},className:"responsive-layout-right-main",children:(de=K?function(){var e=null==M?void 0:M.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==B||null===(t=B.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}():T,(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(p,{open:re,onClose:function(){return ie(!1)},children:(0,h.jsx)(c.Box,{sx:z.rightGridContent,className:"responsive-layout-right-main-content fullscreen-mode",children:de})}),(0,h.jsx)(c.Box,{sx:z.rightGridContent,className:K?"responsive-layout-right-main-content guide-container":"responsive-layout-right-main-content",children:de})]}))}))]})]})}));S.displayName="ResponsiveGridLayout"},43367:(e,t,n)=>{"use strict";n.d(t,{N:()=>y});var r=n(64426),i=n(55594),o=n(30538),a=n(94145),s=n(3104),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(94145),o=n(6467),a=n(31726),s=n(69495),l=n(62e3),c=n(74624),u=n(60854),d=n(46457),h=n(15247),p=n(8259),f=n(28187);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)(),_=(0,s.g_)(),k=(0,l.yU)(),T=(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&&(_===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",_===d.DF.DATA_TABLE||P===p.NF.DATA_TABLE)I("".concat(a,"px")),O("".concat(a-100,"px"));else if(_===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(),_===d.DF.DATA_TABLE||P===p.NF.DATA_TABLE)O("".concat(500,"px"));else if(_===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,_,n,y,O,k,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:_}}},89971:(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"})})})}},77082:(e,t,n)=>{"use strict";n.d(t,{B:()=>m});var r=n(64426),i=n(30538),o=n(94145),a=n(43331),s=n(3104),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(89971),u=n(31726),d=n(28187),h=n(60854),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:()=>S});var r=n(64426),i=n(47361),o=n(75299),a=n.n(o),s=n(30538),l=n(43331),c=n(94145),u=n(3104),d=n(87485),h=n(74624),p=n(28187),f=n(69495),g=n(78383),m=n(60854),y=n(15560),v=n(46457),b=n(8259),w=n(97282);function x(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 A(e){for(var t=1;t0&&(r="".concat(i," ").concat(x("dataTable.features"))),r}),[I,B,x]),W=(0,s.useCallback)((function(e,t){return m.vF.logTraceUseCallback("DATA-PANEL - getLayerTooltip"),(0,w.jsxs)(u.Box,{sx:{display:"flex",alignContent:"center","& svg ":{width:"0.75em",height:"0.75em"}},children:["".concat(e,", ").concat(U(t)),G(t)&&(0,w.jsx)(u.FilterAltIcon,{})]})}),[U,G]),q=(0,s.useMemo)((function(){return m.vF.logTraceUseMemo("DATA-PANEL - isLayerDisabled",P),function(){return!!B.find((function(e){return e.layerPath===P&&null===e.features}))}}),[B,P]),H=(0,s.useMemo)((function(){return m.vF.logTraceUseMemo("DATA-PANEL - isSelectedLayerHasFeatures",P),function(){return B.find((function(e){var t;return e.layerPath===P&&(null==e||null===(t=e.features)||void 0===t?void 0:t.length)}))}}),[P,B]);(0,s.useEffect)((function(){m.vF.logTraceUseEffect("DATA-PANEL - isLoading",k,P);var e=a()((function(){T(!1)}),100);return function(){return clearTimeout(e)}}),[k,P]),(0,s.useEffect)((function(){m.vF.logTraceUseEffect("DATA-PANEL - unmount",P),R!==v.DF.DATA_TABLE&&M("")}),[R]),(0,s.useEffect)((function(){D===b.NF.DATA_TABLE&&N||!z.includes(b.NF.DATA_TABLE)||M("")}),[D,N,M,z]);var Y=(0,s.useMemo)((function(){return m.vF.logTraceUseMemo("DATA-PANEL - order layer status processing."),function(){return!!B.find((function(e){return e.queryStatus===v.RI.PROCESSING}))}}),[B]),K=(0,s.useCallback)((function(e){e&&M("")}),[M]),X=(0,s.useMemo)((function(){return m.vF.logTraceUseMemo("DATA-PANEL - memoLayersList",B),B.map((function(e){var t;return A(A({},e),{},{layerFeatures:U(e.layerPath),tooltip:W(null!==(t=e.layerName)&&void 0!==t?t:"",e.layerPath),mapFilteredIcon:G(e.layerPath)&&(0,w.jsx)(u.FilterAltIcon,{sx:{color:S.palette.geoViewColor.grey.main}})})}))}),[G,B]);return(0,w.jsx)(g.PE,{containerType:o,selectedLayerPath:P||"",layerList:X,onLayerListClicked:$,fullWidth:n,onGuideIsOpen:K,guideContentIds:["dataTable","dataTable.children.filterData","dataTable.children.sortingAndReordering","dataTable.children.keyboardNavigation"],children:k||Y()?(0,w.jsx)(u.Skeleton,{variant:"rounded",width:"100%",height:400,sx:{bgcolor:S.palette.grey[400]}}):!q()&&H()?(0,w.jsx)(w.Fragment,{children:B.map((function(e){return(0,w.jsx)(u.Box,{children:e.layerPath===P?(0,w.jsx)(d.A,{data:e,layerPath:e.layerPath,tableHeight:O}):null},e.layerPath)}))}):null})}},39647:(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}}}},87485:(e,t,n)=>{"use strict";n.d(t,{A:()=>re});var r=n(31625),i=n(43994),o=n(64426),a=n(47361),s=n(59615),l=n.n(s),c=n(30538),u=n(43331),d=n(44481),h=n.n(d),p=n(41218),f=n(51559),g=n(78185),m=n.n(g),y=n(41294),v=n.n(y),b=n(76853),w=n.n(b),x=n(13246),A=n.n(x),S=n(45816),C=n.n(S),E=n(54370);m().extend(w()),m().extend(A()),m().extend(C());const _=(0,E.f)(["Your locale has not been found.","Either the locale key is not a supported one. Locales supported by dayjs are available here: https://github.com/iamkun/dayjs/tree/dev/src/locale","Or you forget to import the locale from 'dayjs/locale/{localeUsed}'","fallback on English locale"]),k={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"},T={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",weekday:"dddd",weekdayShort:"dd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",fullDateWithWeekday:"dddd, LL",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",monthAndYear:"MMMM YYYY",monthAndDate:"MMMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",fullDateTime:"lll",fullDateTime12h:"ll hh:mm A",fullDateTime24h:"ll 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,instance:n}={}){var r,i,o;this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="dayjs",this.rawDayJsInstance=void 0,this.dayjs=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=k,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.rawDayJsInstance)return this.rawDayJsInstance(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){var n,r;const i=e.tz(this.cleanTimezone(t),!0);return(null!=(n=i.$offset)?n:0)===(null!=(r=e.$offset)?r:0)?e:i}return e},this.date=e=>null===e?null:this.dayjs(e),this.dateWithTimezone=(e,t)=>{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.getTimezone=e=>{if(this.hasTimezonePlugin()){var t;const n=null==(t=e.$x)?void 0:t.$timezone;if(n)return n}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.parseISO=e=>this.dayjs(e),this.toISO=e=>e.toISOString(),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.getFormatHelperText=e=>this.expandFormat(e).replace(/a/gi,"(a|p)m").toLocaleLowerCase(),this.isNull=e=>null===e,this.isValid=e=>this.dayjs(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.getDiff=(e,t,n)=>e.diff(t,n),this.isEqual=(e,t)=>null===e&&null===t||this.dayjs(e).toDate().getTime()===this.dayjs(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(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(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.getNextMonth=e=>this.addMonths(e,1),this.getPreviousMonth=e=>this.addMonths(e,-1),this.getMonthArray=e=>{const t=[e.startOf("year")];for(;t.length<12;){const e=t[t.length-1];t.push(this.addMonths(e,1))}return t},this.mergeDateAndTime=(e,t)=>e.hour(t.hour()).minute(t.minute()).second(t.second()),this.getWeekdays=()=>{const e=this.dayjs().startOf("week");return[0,1,2,3,4,5,6].map((t=>this.formatByString(this.addDays(e,t),"dd")))},this.getWeekArray=e=>{const t=this.setLocaleToValue(e),n=t.startOf("month").startOf("week"),r=t.endOf("month").endOf("week");let i=0,o=n;const a=[];for(;oe.week(),this.getYearRange=(e,t)=>{const n=e.startOf("year"),r=t.endOf("year"),i=[];let o=n;for(;o"am"===e?"AM":"PM",this.rawDayJsInstance=n,this.dayjs=(i=null!=(r=this.rawDayJsInstance)?r:m(),(o=e)?(...e)=>i(...e).locale(o):i),this.locale=e,this.formats=(0,f.A)({},T,t),m().extend(v())}}var M=n(38540);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(94145),F=n(43975),D=n(3104),N=n(28187),z=n(74624),V=n(31726),B=n(69495),$=n(34028),G=n(79913),U=n(60854),W=n(15560),q=n(39647),H=n(81247),Y=n(74468),K=n(45457),X=n(78383),Z=n(46457),J=n(8259),Q=n(97282);function ee(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 te(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(){U.vF.logTraceUseEffect("DATA-TABLE - sorting",C);var e=Oe.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){U.vF.logError("Data table error on sorting action",e)}}),[C]);var Pe=(0,c.useCallback)((function(e){U.vF.logTraceUseEffect("DATA-TABLE - buildFilterList");var t=Oe.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(Z.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=Z.Ax[u],h=$.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=Z.Fz[p];return"".concat(f.replace("filterId",o).replace("value",i))})):[""]}),[]),Ie=h()((function(e){var t=Pe(e).filter((function(e){return e.length})).join(" and ");ie(t)}),1e3),Me=(0,c.useCallback)((function(e){return Ie(e)}),[null===(t=se[o])||void 0===t?void 0:t.mapFilteredRecord]);return(0,c.useEffect)((function(){U.vF.logTraceUseEffect("DATA-TABLE - columnFilters",me),me&&se[o].mapFilteredRecord&&Me(me)}),[me]),(0,c.useEffect)((function(){U.vF.logTraceUseEffect("DATA-TABLE - mapFilteredRecord",se[o].mapFilteredRecord),Ie(me)}),[se[o].mapFilteredRecord]),(0,W.iI)({data:n,columnFilters:me,globalFilter:be,layerPath:o,tableInstance:Oe}),(0,Q.jsxs)(D.Box,{sx:m.dataTableWrapper,children:[(0,Q.jsx)(M.$,{dateAdapter:I,adapterLocale:ae,children:(0,Q.jsx)(D.MaterialReactTable,{table:Oe})}),(0,Q.jsx)(fe,{})]})}const re=(0,c.memo)(ne)},81247:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(47361),i=n(30538),o=n(43331),a=n(68312),s=n(3104),l=n(60854),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)}),[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]})]})}},45457:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(43331),i=n(68599),o=n(94145),a=n(3104),s=n(39647),l=n(74624),c=n(60854),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]?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})})}},15560:(e,t,n)=>{"use strict";n.d(t,{bc:()=>p,j8:()=>s,bv:()=>f,iI:()=>c});var r=n(47361),i=n(30538),o=n(74624),a=n(60854);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(64426);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(17567),a=n(24438),s=n(62767),l=n(4180),c=n(3104),u=n(28187),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")})}},48495:(e,t,n)=>{"use strict";n.d(t,{r:()=>k});var r=n(64426),i=n(47361),o=n(30538),a=n(43331),s=n(94145),l=n(3104),c=n(62e3),u=n(28187),d=n(60854),h=n(78383),p=n(55587),f=n(43994),g=n(59615),m=n.n(g),y=n(41218),v=n(79913),b=n(10247),w=n(97282);function x(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 A(e){for(var t=1;t1?"s":"")}),[f]),Z=(0,o.useMemo)((function(){return d.vF.logTraceUseMemo("DETAILS-PANEL - memoLayersList",x,v),x.map((function(e){return v.find((function(t){return t.layerPath===e}))})).filter((function(e){return e})).map((function(e){var t,n,r;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:X(e),tooltip:"".concat(e.layerName,", ").concat(X(e))}}))}),[x,v,X]),J=(0,o.useMemo)((function(){return d.vF.logTraceUseMemo("DETAILS-PANEL - memoLayerSelectedItem",Z,y),Z.find((function(e){return e.layerPath===y}))}),[Z,y]),Q=(0,o.useMemo)((function(){return d.vF.logTraceUseMemo("DETAILS-PANEL - memoSelectedLayerData",v,y),v.find((function(e){return e.layerPath===y}))}),[v,y]),ee=(0,o.useMemo)((function(){return d.vF.logTraceUseMemo("DETAILS-PANEL - memoSelectedLayerDataFeatures",null==Q?void 0:Q.features),null==Q?void 0:Q.features}),[null==Q?void 0:Q.features]),te=(0,o.useCallback)((function(e,t){var n,r,i;(d.vF.logTraceUseCallback("DETAILS-PANEL - updateFeatureSelected"),null!=t&&t.features)&&(r=null==t||null===(i=t.features)||void 0===i?void 0:i[H.current]);r&&!Y(r)&&M(r);var o=null==Q||null===(n=Q.features)||void 0===n?void 0:n[e];o&&I(o),F(e)}),[Q,Y,M,I]);(0,o.useEffect)((function(){d.vF.logTraceUseEffect("DETAILS-PANEL - memoLayersList changed",Z),M("all"),Z.length||k("")}),[Z,k,M]),(0,o.useEffect)((function(){d.vF.logTraceUseEffect("DETAILS-PANEL - memoSelectedLayerDataFeatures changed",Z,ee),K(q.current),K(ee),ee&&ee.length&&I(ee[j])}),[Z,ee,j,I,M,K]),(0,o.useEffect)((function(){d.vF.logTraceUseEffect("DETAILS-PANEL - update layer data bypass",y),O(y)}),[y,O]),(0,o.useEffect)((function(){if(d.vF.logTraceUseEffect("DETAILS-PANEL - check selection",J),(!J||"processed"===J.queryStatus||"error"===J.queryStatus)&&""!==y)if(null!=J&&J.numOffeatures)d.vF.logDebug("DETAILS-PANEL","keep selection",J),O(J.layerPath);else{var e=Z.find((function(e){return Z.find((function(t){return e.layerPath===t.layerPath&&t.numOffeatures}))}));e?(d.vF.logDebug("DETAILS-PANEL","select another",J,e.layerPath),k(e.layerPath)):d.vF.logDebug("DETAILS-PANEL","select none",J)}}),[J,Z]);var ne=(0,o.useCallback)((function(e){d.vF.logTraceUseCallback("DETAILS PANEL - handleFeatureNavigateChange",j),H.current=j,te(j+e,Q)}),[j,Q,te]),re=(0,o.useCallback)((function(e){d.vF.logTraceUseCallback("DETAILS-PANEL - handleLayerChange",e.layerPath),k(e.layerPath)}),[k]),ie=function(){var e;W.current=v.find((function(e){return e.layerPath===z})),q.current=null===(e=W.current)||void 0===e?void 0:e.features,H.current=j,F(0)};G!==Z&&(U(Z),ie()),z!==y&&(V(y),ie());var oe=(0,o.useCallback)((function(e){d.vF.logTraceUseCallback("DETAILS PANEL - handleGuideIsOpen"),e&&k("")}),[k]);(0,o.useEffect)((function(){if(d.vF.logTraceUseEffect("DETAILS-PANEL- mapClickCoordinates",A),A&&null!=Z&&Z.length&&!y.length){var e,t=Z.find((function(e){return!!e.numOffeatures}));k(null!==(e=null==t?void 0:t.layerPath)&&void 0!==e?e:"")}}),[A,Z]);var ae=(0,o.useMemo)((function(){return d.vF.logTraceUseMemo("DETAILS-PANEL - order layer status processing."),function(){return!(null==v||!v.find((function(e){return e.queryStatus===C.RI.PROCESSING})))}}),[v]);return(0,w.jsx)(h.PE,{selectedLayerPath:y||"",layerList:Z,onLayerListClicked:function(e){return re(e)},fullWidth:n,onGuideIsOpen:oe,guideContentIds:["details"],children:ae()?(0,w.jsx)(l.Skeleton,{variant:"rounded",width:"100%",height:500,sx:{bgcolor:g.palette.grey[400]}}):ee&&ee.length>0?(0,w.jsxs)(l.Box,{sx:n?m.rightPanelContainer:_({},m.rightPanelContainer),children:[(0,w.jsxs)(l.Grid,{container:!0,sx:m.rightPanelBtnHolder,children:[(0,w.jsx)(l.Grid,{item:!0,xs:6,children:(0,w.jsxs)(l.Box,{style:{marginLeft:"1.375rem"},children:[f("details.featureDetailsTitle").replace("{count}","".concat(j+1)).replace("{total}","".concat(null==ee?void 0:ee.length)),(0,w.jsx)(l.IconButton,{sx:(0,r.A)({marginLeft:"1.25rem"},g.breakpoints.down("sm"),{display:"none"}),"aria-label":"clear-all-features",tooltip:"details.clearAllfeatures",tooltipPlacement:"top",onClick:function(){return M("all"),T("all"),void I(null==Q||null===(e=Q.features)||void 0===e?void 0:e[j]);var e},className:"buttonOutline",disabled:0===b.length,children:(0,w.jsx)(l.LayersClearOutlinedIcon,{})})]})}),(0,w.jsx)(l.Grid,{item:!0,xs:6,children:(0,w.jsxs)(l.Box,{sx:{textAlign:"right",marginRight:"1.625rem"},children:[(0,w.jsx)(l.IconButton,{"aria-label":"backward",tooltip:"details.previousFeatureBtn",tooltipPlacement:"top",onClick:function(){return ne(-1)},disabled:j<=0,className:"buttonOutline",children:(0,w.jsx)(l.ArrowBackIosOutlinedIcon,{})}),(0,w.jsx)(l.IconButton,{sx:{marginLeft:"1.25rem"},"aria-label":"forward",tooltip:"details.nextFeatureBtn",tooltipPlacement:"top",onClick:function(){return ne(1)},disabled:!(null!=Q&&Q.features)||j+1>=Q.features.length,className:"buttonOutline",children:(0,w.jsx)(l.ArrowForwardIosOutlinedIcon,{})})]})})]}),(0,w.jsx)(S,{features:null==Q?void 0:Q.features,currentFeatureIndex:j})]}):null})}},55587:(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"}}}}}},10247:(e,t,n)=>{"use strict";n.d(t,{P:()=>Mt});var r=n(64426),i=n(30538),o=n(43331),a=n(94145);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),_=(e,t,n,r,i)=>e.tt(t,n,r,i),k="WORD",T="UWORD",O="LOCALHOST",P="TLD",I="UTLD",M="SCHEME",L="SLASH_SCHEME",R="NUM",j="WS",F="NL",D="OPENBRACE",N="CLOSEBRACE",z="OPENBRACKET",V="CLOSEBRACKET",B="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:k,UWORD:T,LOCALHOST:O,TLD:P,UTLD:I,SCHEME:M,SLASH_SCHEME:L,NUM:R,WS:j,NL:F,OPENBRACE:D,CLOSEBRACE:N,OPENBRACKET:z,CLOSEBRACKET:V,OPENPAREN:B,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 _e=/[a-z]/,ke=/\p{L}/u,Te=/\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:Ve,formatHref:Ve,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function ze(e,t){void 0===t&&(t=null);let n=c({},Ne);e&&(n=c(n,e instanceof ze?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 Be(e,t){this.t="token",this.v=e,this.tk=t}function $e(e,t){class n extends Be{constructor(t,n){super(t,n),this.t=e}}for(const e in t)n.prototype[e]=t[e];return n.t=e,n}Be.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)),_(n,"'",ee),_(n,"{",D),_(n,"}",N),_(n,"[",z),_(n,"]",V),_(n,"(",B),_(n,")",$),_(n,"<",G),_(n,">",U),_(n,"(",W),_(n,")",q),_(n,"「",H),_(n,"」",Y),_(n,"『",K),_(n,"』",X),_(n,"<",Z),_(n,">",J),_(n,"&",Q),_(n,"*",te),_(n,"@",ne),_(n,"`",ie),_(n,"^",oe),_(n,":",ae),_(n,",",se),_(n,"$",le),_(n,".",ce),_(n,"=",ue),_(n,"!",de),_(n,"-",he),_(n,"%",pe),_(n,"|",fe),_(n,"+",ge),_(n,"#",me),_(n,"?",ye),_(n,'"',ve),_(n,"/",we),_(n,";",be),_(n,"~",xe),_(n,"_",Ae),_(n,"\\",re);const r=C(n,Oe,R,{[u]:!0});C(r,Oe,r);const i=C(n,_e,k,{[d]:!0});C(i,_e,i);const o=C(n,ke,T,{[h]:!0});C(o,_e),C(o,ke,o);const a=C(n,Pe,j,{[b]:!0});_(n,Ie,F,{[b]:!0}),_(a,Ie),C(a,Pe,a);const f=C(n,Te,Se,{[m]:!0});C(f,Te,f),_(f,Me,f);const w=_(f,Le);C(w,Te,f);const S=[[_e,i]],Ne=[[_e,null],[ke,o]];for(let e=0;ee[0]>t[0]?1:-1));for(let t=0;t=0?i[g]=!0:_e.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,{item:!0,xs:"auto",sx:{fontWeight:"bold",width:"80% !important"},children:e.alias}),(0,Ot.jsx)(St.Grid,{item:!0,sx:{ml:"auto",wordWrap:"break-word",pr:"0.3125rem"},children:h(e)})]},"".concat(e.alias," ").concat(t.toString()))})),(0,Ot.jsx)(u,{})]})}},58726:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(3104),i=n(69495),o=n(15247),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)().openModal;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,children:(0,a.jsx)(r.DownloadIcon,{})})}},28184:(e,t,n)=>{"use strict";n.d(t,{A:()=>ie});var r=n(47361),i=n(30538),o=n(43331),a=n(94145);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 _(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 k=e=>null!=e.tagName&&"SLOT"===e.tagName.toUpperCase();function T(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=>_(e,t))).then((n=>async function(e,t,n){var r,i;let o=[];return o=k(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=>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 z(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 V(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 B(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=z(e.href).then((e=>V(e,t))).then((e=>B(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(z(n.href).then((e=>V(e,t))).then((e=>B(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(3104),Y=n(79913),K=n(34028),X=n(69495),Z=n(15247),J=n(31726),Q=n(52315),ee=n(28187),te=n(46686),ne=n(60854),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=(0,a.A)(),d=(0,i.useState)(!0),h=(0,r.A)(d,2),p=h[0],f=h[1],g=(0,i.useState)(!0),m=(0,r.A)(g,2),y=m[0],v=m[1],b=(0,i.useState)(!1),w=(0,r.A)(b,2),x=w[0],A=w[1],S=(0,i.useState)(""),C=(0,r.A)(S,2),E=C[0],_=C[1],k=(0,i.useRef)(null),T=(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,ee.Mk)(),R=(0,ee.gx)(),j=(0,ee.re)(),F=(0,te.A)().rotationAngle,D=(0,X.A6)(),N=D.closeModal,z=D.setActiveAppBarTab,V=(0,X.NP)().activeElementId,B=(0,X.bd)().isOpen,$=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&&T.current&&O.current){var n=T.current,r=O.current;c&&!l&&z("AppbarPanelButtonLegend","legend",!0),e=setTimeout((function(){f(!0),q(s).then((function(e){f(!1);var t=new Image;t.src=e,t.style.maxWidth="".concat($(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&&P.current){var i;e.removeAttribute("style"),v(!0);var o=document.getElementById("".concat(t,"-legend")),a=null!==(i=null==o?void 0:o.hasAttribute("hidden"))&&void 0!==i?i:null;a&&o.removeAttribute("hidden"),q(e).then((function(e){var t;v(!1);var n=new Image;n.src=e,n.style.maxWidth="".concat($(r),"px"),null===(t=P.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)}))}}),500)}return function(){e&&clearTimeout(e),f(!0),v(!0)}}),[V,B]),(0,re.jsxs)(H.Dialog,{open:"export"===V,onClose:N,fullWidth:!0,maxWidth:"xl",disablePortal:!0,children:[(0,re.jsx)(H.DialogTitle,{children:e("exportModal.title")}),(0,re.jsx)(H.DialogContent,{dividers:!0,ref:O,children:(0,re.jsxs)(H.Box,{ref:k,textAlign:"center",children:[(0,re.jsx)(H.Box,{ref:I,children:(0,re.jsx)(H.TextField,{label:e("exportModal.exportTitle"),variant:"standard",value:E,onChange:function(e){return _(e.target.value)},sx:{paddingBottom:"1rem",minWidth:300}})}),(0,re.jsx)(H.Box,{ref:M}),(0,re.jsx)(H.Box,{ref:T,children:p&&(0,re.jsx)(H.Skeleton,{variant:"rounded",width:"100%",height:500,sx:{bgcolor:u.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:!!R.labelGraphic.length&&(0,re.jsxs)(H.Box,{children:[R.labelGraphic," ",e("exportModal.approx")," ",(0,re.jsx)("hr",{})]})}),L&&(0,re.jsx)(H.Box,{textAlign:"right",style:{transform:"rotate(".concat(F.angle,"deg)")},children:(0,re.jsx)(Q.e,{width:44,height:44})})]}),(0,re.jsx)(H.Box,{ref:P,children:y&&(0,re.jsx)(H.Skeleton,{variant:"rounded",width:"100%",height:500,sx:{bgcolor:u.palette.grey[500]}})}),(0,re.jsx)(H.Box,{textAlign:"center",children:j.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("AppbarPanelButtonLegend","legend",!1),N()},type:"text",size:"small",role:"button",tabIndex:-1,autoFocus:!0,"aria-hidden":"true",sx:{width:"inherit",fontSize:u.palette.geoViewFontSize.sm,color:u.palette.common.white,padding:"0.7rem 1rem",backgroundColor:u.palette.geoViewColor.primary.main},children:e("exportModal.cancelBtn")}),(0,re.jsx)(H.LoadingButton,{loading:x,variant:"contained",onClick:function(){k.current&&I.current&&M.current&&(I.current.style.display="none",M.current.style.padding="1rem",M.current.innerHTML=E,A(!0),q(k.current,{backgroundColor:u.palette.common.white}).then((function(e){A(!1),(0,Y.exportPNG)(e,t),z("AppbarPanelButtonLegend","legend",!1),N()})).catch((function(e){ne.vF.logError("Error while exporting the image",e)})))},size:"small",sx:{fontSize:u.palette.geoViewFontSize.sm,padding:"0.7rem 1rem",backgroundColor:u.palette.geoViewColor.primary.main,height:"50px"},disabled:y||p,children:e("exportModal.exportBtn")})]})]})}},18114:(e,t,n)=>{"use strict";n.d(t,{x:()=>m});var r=n(70640),i=n(32814),o=n(64426),a=n(38829),s=n(16221),l=n(79913);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)}},21793:(e,t,n)=>{"use strict";n.d(t,{N:()=>j});var r=n(64426),i=n(47361),o=n(76390),a=n.n(o),s=n(30538),l=n(94145),c=n(3104),u=n(90763),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]},"& .MuiTabs-root":{height:"56px"},"& .MuiTabs-flexContainer":{alignItems:"center",height:"56px"},"& .MuiTabs-indicator":{display:"none"},"& .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(23296),p=n(15247),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(69495),m=n(60854),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(t=e).preventDefault(),void v(t.currentTarget);var t},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(31726),w=n(62e3),x=n(76262),A=n(15789),S=n(15470),C=n(19512),E=n(94321),_=n(27927),k=n(14476),T=n(97182),O=n(48495),P=n(53191),I=n(82875),M=n(98030);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 R(e){for(var t=1;t0?(0,y.jsx)(c.Box,{ref:z,sx:L.tabsContainer,className:"tabsContainer",id:"".concat(h,"-tabsContainer"),children:(0,y.jsx)(c.Tabs,{shellContainer:H,activeTrap:W,isCollapsed:q,onToggleCollapse:function(){Q(!q)},onSelectedTabChanged:function(e){X(e.id),Q(!1)},onOpenKeyboard:Z,onCloseKeyboard:J,selectedTab:se.findIndex((function(e){return e.id===U})),tabsProps:{variant:"scrollable",scrollButtons:"auto",allowScrollButtonsMobile:!0,sx:{"& .MuiTabs-scrollButtons":(0,r.A)({},f.breakpoints.up("lg"),{visibility:"hidden"})}},tabProps:{disableRipple:!0},tabs:se,TabContentVisibilty:q?"hidden":"visible",rightButtons:(0,y.jsxs)(y.Fragment,{children:[!q&&V&&(0,y.jsx)(v,{}),(0,y.jsx)(c.IconButton,{onClick:de,tooltip:D?"footerBar.focusToMap":"footerBar.focusToFooter",className:"buttonFilled",disabled:q||V||G[G.length-1]===$,children:D?(0,y.jsx)(c.MoveUpRoundedIcon,{}):(0,y.jsx)(c.MoveDownRoundedIcon,{})})]})})}):null}},84050:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(30538),i=n(3104),o=n(65423),a=n(28187),s=n(43975),l=n(60854),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,{item:!0,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,{item:!0,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()))}))})}},65423:(e,t,n)=>{"use strict";n.d(t,{K9:()=>o,aP:()=>a,cm:()=>s});var r=n(58990),i=n(20553),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%"}}}))},79437:(e,t,n)=>{"use strict";n.d(t,{u:()=>C});var r=n(43994),i=n(47361),o=n(59615),a=n.n(o),s=n(30538),l=n(43331),c=n(44481),u=n.n(c),d=n(94145),h=n(3104),p=n(65423),f=n(46457),g=n(69495),m=n(31726),y=n(28249),v=n(84050),b=n(28187),w=n(60854),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),_=E[0],k=E[1],T=(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),k(t)}),[t]),(0,s.useEffect)((function(){w.vF.logTraceUseEffect("GEOLOCATOR-RESULT - geoLocationData province category",M),k(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(""),k(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:T[1]-160,overflowY:"auto"},children:[!!_.length&&(0,x.jsx)(v.A,{geoListItems:_,searchValue:n}),(!_.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(8259);function C(){w.vF.logTraceRender("components/geolocator/geolocator");var e=(0,l.useTranslation)().t,t=(0,d.A)(),n=(0,s.useState)(),o=(0,i.A)(n,2),c=o[0],y=o[1],v=(0,s.useState)(null),b=(0,i.A)(v,2),C=b[0],E=b[1],_=(0,s.useState)(!1),k=(0,i.A)(_,2),T=k[0],O=k[1],P=(0,s.useState)(""),I=(0,i.A)(P,2),M=I[0],L=I[1],R=(0,m.t)(),j=(0,m._V)(),F=(0,g.A6)().setActiveAppBarTab,D=(0,g.bd)(),N=D.tabGroup,z=D.isOpen,V=(0,s.useRef)("".concat(j,"&lang=").concat(R)),B=(0,s.useRef)(null),$=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"}},G=(0,s.useCallback)(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,O(!0),B.current&&B.current.abort(),n=new AbortController,B.current=n,e.next=7,fetch("".concat(V.current,"&q=").concat(encodeURIComponent("".concat(t,"*"))),{signal:B.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=$(t))&&i.unshift(o),y(i),E(null),O(!1),e.next=23;break;case 20:e.prev=20,e.t0=e.catch(0),E(e.t0);case 23:case"end":return e.stop()}}),e,null,[[0,20]])})));return function(t){return e.apply(this,arguments)}}(),[]),U=(0,s.useCallback)((function(){L(""),y(void 0),F("AppbarPanelButtonGeolocator",S.NF.GEOLOCATOR,!1)}),[F]),W=u()((function(e){G(e).catch((function(e){w.vF.logPromiseFailed("getGeolocations in deRequest in Geolocator",e)}))}),f.Xl),q=(0,s.useCallback)((function(e){return W(e)}),[]),H=(0,s.useCallback)((function(){M.length>=3&&(W.cancel(),G(M).catch((function(e){w.vF.logPromiseFailed("getGeolocations in Geolocator",e)})))}),[W,G,M]);return(0,s.useEffect)((function(){return function(){B.current&&B.current.abort()}}),[]),(0,x.jsxs)(h.Box,{sx:p.K9.root,visibility:N===S.NF.GEOLOCATOR&&z?"visible":"hidden",id:"geolocator-search",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(),T||H()},children:[(0,x.jsx)(p.cm,{placeholder:e("geolocator.search"),autoFocus:!0,onChange:function(e){var t=e.target.value;L(t),t.length>=3&&q(t),(!t.length||t.length<3)&&(B.current&&B.current.abort(),W.cancel(),y(void 0))},value:M}),(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:!M.length,onClick:H,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:U,children:(0,x.jsx)(h.CloseIcon,{fontSize:t.palette.geoViewFontSize.sm})})]})]})})})}),T&&(0,x.jsx)(h.Box,{sx:p.K9.progressBar,children:(0,x.jsx)(h.ProgressBar,{})}),!!c&&(null==M?void 0:M.length)>=3&&!C&&(0,x.jsx)(h.Box,{sx:p.K9.searchResult,children:(0,x.jsx)(A,{geoLocationData:c,searchValue:M,error:C})})]})}},82875:(e,t,n)=>{"use strict";n.d(t,{r:()=>f});var r=n(47361),i=n(30538),o=n(34089),a=n(43331),s=n(94145),l=n(3104),c=n(31726),u=n(60854),d=function(e){return{guideContainer:{"& .responsive-layout-right-main-content":{backgroundColor:e.palette.geoViewColor.white}},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(78383),p=n(97282);function f(e){var t,n=e.fullWidth,f=(0,a.useTranslation)().t,g=(0,s.A)(),m=d(g),y=(0,c.DR)(),v=(0,i.useState)(""),b=(0,r.A)(v,2),w=b[0],x=b[1],A=(0,i.useState)(0),S=(0,r.A)(A,2),C=S[0],E=S[1],_=(0,i.useCallback)((function(){return u.vF.logTraceUseCallback("GUIDE_PANEL - getListOfGuides"),y?Object.keys(y).map((function(e){var t=y[e].content;return y[e].children&&Object.keys(y[e].children).forEach((function(n){t+="\n".concat(y[e].children[n].content),y[e].children[n].children&&Object.keys(y[e].children[n].children).forEach((function(r){t+="\n".concat(y[e].children[n].children[r].content)}))})),{layerName:y[e].heading,layerPath:e,layerStatus:"loaded",queryStatus:"processed",content:(0,p.jsx)(o.Ay,{options:{wrapper:"article"},children:t})}})):[]}),[y]),k=(0,i.useMemo)((function(){return u.vF.logTraceUseMemo("GUIDE_PANEL - layerlist"),x("navigationControls"),_()}),[_]),T=(0,i.useCallback)((function(e){u.vF.logTraceUseCallback("GUIDE PANEL - handleGuideItemClick",e);var t=k.findIndex((function(t){return t.layerName===e.layerName}));E(t),x(e.layerPath)}),[k]);return(0,p.jsx)(l.Box,{sx:m.guideContainer,children:(0,p.jsx)(h.PE,{selectedLayerPath:w||"",layerList:k,onLayerListClicked:T,fullWidth:n,"aria-label":f("guide.title"),children:(0,p.jsx)(l.Box,{sx:m.rightPanelContainer,"aria-label":f("guide.title"),className:"guidebox-container",children:(0,p.jsx)(l.Box,{className:"guideBox",children:null===(t=k[C])||void 0===t?void 0:t.content})})})})}},16154:(e,t,n)=>{"use strict";n.d(t,{s:()=>f});var r=n(47361),i=n(30538),o=n(43331),a=n(94145),s=n(3104),l=n(60854),c=n(28187),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(15247),h=n(31726),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],_=u(n),k=(0,c.kI)(),T=(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",k),k)&&(y(null===(e=k.fieldInfo)||void 0===e?void 0:e.value),x(k.featureIcon.toDataURL()),E(!0))}),[k]),(0,i.useEffect)((function(){y(""),x(""),E(!1)}),[T]),(0,i.useEffect)((function(){if(l.vF.logTraceUseEffect("HOVER-TOOLTIP - tooltipValue changed",m),O&&P.current&&T&&T.pixel&&m){var e=O.getBoundingClientRect(),t=P.current.getBoundingClientRect(),n=T.pixel[0]+10,r=T.pixel[1]-35;T.pixel[0]+t.width>e.width&&(n=T.pixel[0]-t.width-10),T.pixel[1]-t.height{"use strict";n.d(t,{$:()=>s.$,re:()=>o.r,rn:()=>i.r,s$:()=>a.s,tk:()=>r.t});n(96974),n(95811),n(97886),n(17161),n(57449),n(89971),n(77082),n(81247),n(45457),n(74468),n(87485);var r=n(53191),i=n(48495),o=(n(58726),n(28184),n(55147),n(98625),n(55589),n(6017),n(18114),n(21793),n(84050),n(79437),n(65423),n(82875)),a=(n(16154),n(14476)),s=n(97182);n(77143),n(55284),n(45094),n(93201),n(33859),n(21343),n(35971),n(89780),n(21350),n(69561),n(52315),n(94044),n(12805),n(62523),n(67121),n(5099)},97182:(e,t,n)=>{"use strict";n.d(t,{$:()=>Ae});var r=n(64426),i=n(47361),o=n(30538),a=n(94145),s=n(3104),l=n(91140),c=n(43331),u=n(97282);function d(){var e=(0,a.A)(),t=(0,c.useTranslation)().t,n=(0,l.y5)(),r=(0,l.Yo)(),i=(0,l.$T)().setDisplayState,o=function(e){i(e)};return(0,u.jsx)(s.Box,{id:"layers-toolbar",sx:{padding:"8px 18px 0px 18px"},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:!r.length,size:"small",tooltip:"general.view",variant:"view"===n?"contained":"outlined",startIcon:(0,u.jsx)(s.VisibilityOutlinedIcon,{fontSize:e.palette.geoViewFontSize.sm}),onClick:function(){return o("view")},children:t("general.view")}),(0,u.jsx)(s.Button,{makeResponsive:!0,type:"text",size:"small",tooltip:"legend.addLayer",variant:"add"===n?"contained":"outlined",startIcon:(0,u.jsx)(s.AddCircleOutlineIcon,{fontSize:e.palette.geoViewFontSize.sm}),onClick:function(){return o("add")},children:t("general.add")}),(0,u.jsx)(s.Button,{makeResponsive:!0,type:"text",disabled:!r.length,size:"small",tooltip:"legend.sortLayers",variant:"order"===n?"contained":"outlined",startIcon:(0,u.jsx)(s.HandleIcon,{fontSize:e.palette.geoViewFontSize.sm}),onClick:function(){return o("order")},children:t("legend.sort")}),(0,u.jsx)(s.Button,{makeResponsive:!0,type:"text",disabled:!r.length,size:"small",tooltip:"legend.removeLayer",variant:"remove"===n?"contained":"outlined",startIcon:(0,u.jsx)(s.DeleteOutlineIcon,{fontSize:e.palette.geoViewFontSize.sm}),onClick:function(){return o("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(69495),m=n(74624),y=n(79913),v=n(46182),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(60854);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})]})})}function A(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)(),A=f(b),S=(0,o.useState)(!1),C=(0,i.A)(S,2),E=C[0],_=C[1],k=(0,l.Zt)(),T=(0,l.$T)(),O=T.setAllItemsVisibility,P=T.toggleItemVisibility,I=T.setHighlightLayer,M=T.zoomToLayerExtent,L=T.getLayerBounds,R=(0,g.A6)().openModal,j=(0,m.Xh)(),F=j.find((function(e){return e.layerPath===(null==d?void 0:d.layerPath)}));(0,o.useEffect)((function(){var e;return w.vF.logTraceUseEffect("LAYER DETAILS",F,d),F?e=setTimeout((function(){_(!0)}),100):_(!0),function(){_(!1),e&&clearTimeout(e)}}),[j,d,F]);var D=function(){M(d.layerPath).catch((function(e){w.vF.logPromiseFailed("in zoomToLayerExtent in layer-details.handleZoomTo",e)}))},N=function(){R({activeElementId:"layerDataTable",callbackElementId:"table-details"})};if(void 0===d.bounds||d.bounds[0]===1/0){var z=L(d.layerPath);z&&(d.bounds=z)}var V=function(){w.vF.logDebug("Refresh is not implemented")},B=function(){I(d.layerPath)},$=function(){return p()(d.items,(function(e){return!1!==e.isVisible}))};function G(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 P(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 U,W,q,H;return(0,u.jsx)(s.Paper,{sx:A.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:A.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:[E&&(null==F||null===(U=F.features)||void 0===U?void 0:U.length)&&(!1!==(null===(H=d.controls)||void 0===H?void 0:H.table)?(0,u.jsx)(s.IconButton,{id:"table-details",tooltip:"legend.tableDetails",className:"buttonOutline",onClick:N,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:V,children:(0,u.jsx)(s.RestartAltIcon,{})}),!1!==(null===(q=d.controls)||void 0===q?void 0:q.highlight)?(0,u.jsx)(s.IconButton,{tooltip:"legend.highlightLayer",onClick:B,className:k===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===(W=d.controls)||void 0===W?void 0:W.zoom)?(0,u.jsx)(s.IconButton,{tooltip:"legend.zoomTo",onClick:D,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:A.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:A.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:A.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:A.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,{item:!0,xs:"auto",children:d.canToggle?(0,u.jsx)(s.IconButton,{color:"primary",onClick:function(){return O(d.layerPath,!$())},children:$()?(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,{item:!0,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,{item:!0,xs:"auto",children:G(e)}),(0,u.jsxs)(s.Grid,{item:!0,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:A.tableIconLabel,children:e.name})]})]},e.name)}))]}),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 S=n(28187),C=n(30886),E=n.n(C),_=n(78283);function k(e){w.vF.logTraceRender("components/layers/left-panel/delete-undo-button/UndoButtonWithProgress");var t=e.progressValue,n=e.onUndo;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",children:(0,u.jsx)(s.UndoIcon,{})})})]})}function T(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],g=p[1],m=(0,l.$T)(),y=m.deleteLayer,v=m.setLayerDeleteInProgress,b=m.getLayerDeleteInProgress,x=(0,S.U6)(),A=x.getVisibilityFromOrderedLayerInfo,C=x.setOrToggleLayerVisibility,E=function(){A(n.layerPath)&&C(n.layerPath),g(!0),v(!0)};return(0,o.useEffect)((function(){100===c&&(y(n.layerPath),g(!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)||b()?f?(0,u.jsx)(k,{progressValue:c,onUndo:function(){C(n.layerPath),g(!1),v(!1)}}):(0,u.jsx)(s.IconButton,{onClick:E,edge:"end",size:"small",disabled:!0,children:(0,u.jsx)(s.DeleteOutlineIcon,{color:"disabled"})}):(0,u.jsx)(s.IconButton,{onClick:E,edge:"end",size:"small",children:(0,u.jsx)(s.DeleteOutlineIcon,{color:"error"})})}var O=n(46457),P=n(91693),I=n(2890),M=n(75311),L=n(37112);function R(e){var t=e.depth,n=e.layer,r=e.setIsLayersListPanelVisible,i=e.index,o=e.isFirst,a=e.isLast,d=e.isLayoutEnlarged;w.vF.logTraceRender("components/layers/left-panel/single-layer");var h=(0,c.useTranslation)().t,p=(0,l.$T)().setSelectedLayerPath,f=(0,S.U6)(),g=f.getVisibilityFromOrderedLayerInfo,y=f.setOrToggleLayerVisibility,b=f.getLegendCollapsedFromOrderedLayerInfo,x=f.setLegendCollapsed,A=f.reorderLayer,C=(0,l.u1)(),k=(0,l.y5)(),R=(0,m._M)(),j=(0,m.Xh)(),F=(0,m.eQ)().triggerGetAllFeatureInfo,N=!b(n.layerPath),z=function e(t){return"view"===k&&(!!(t.children&&t.children.length>0)&&(t.children.filter((function(e){return e.layerPath===C})).length>0||E()(t.children,(function(t){return e(t)}))))}(n),V=n.layerPath===C&&"view"===k,B=function e(t){var n;if(!1===(null===(n=t.controls)||void 0===n?void 0:n.visibility))return!0;var r=!1;return t.children&&t.children.length>0&&(r=t.children.some((function(t){return e(t)}))),r}(n),$=function(){x(n.layerPath)},G=function(){["processed","loaded"].includes(n.layerStatus)&&(p(n.layerPath),r&&(r(!0),j.filter((function(e){var t;return e.layerPath===n.layerPath&&!(null==e||null===(t=e.features)||void 0===t||!t.length)})).length&&n.layerStatus!==O.RI.ERROR||F(n.layerPath).catch((function(e){w.vF.logPromiseFailed("Failed to triggerGetAllFeatureInfo in single-layer.handleLayerClick",e)}))))};var U,W,q,H,Y=(0,_.zh)({delay:150*i+150*t/2,from:{opacity:.1},to:{opacity:1}}),K=(0,_.CS)(s.Paper);return(0,u.jsxs)(K,{className:(H=["layer-panel ",null!==(q=n.layerStatus)&&void 0!==q?q:""],0===t&&H.push("bordered"),!z||V||N||H.push("selectedLayer bordered-primary"),V&&H.push("selectedLayer bordered-primary"),H.join(" ")),style:Y,"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,{divider:!0,tabIndex:0,onKeyDown:function(e){return function(e){"Enter"===e.key&&G()}(e)},children:(0,u.jsxs)(s.ListItemButton,{selected:V||z&&!N,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 h("legend.layerError");if("processing"===n.layerStatus||"loading"===n.layerStatus)return h("legend.layerLoading");if(n.children.length>0)return h("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=h("legend.itemsCount").replace("{count}",e.toString()).replace("{totalCount}",t.toString());return t<=1&&(r=""),R[n.layerPath]?(0,u.jsxs)(s.Typography,{sx:{color:"unset",fontSize:"unset"},component:"span",children:[r,"  ",(0,u.jsx)(P.A,{sx:{marginBottom:"-5px"},fontSize:"small"})]}):r}(),onClick:G}),!d&&(0,u.jsxs)(s.ListItemIcon,{className:"rightIcons-container",children:["processing"===n.layerStatus||"loading"===n.layerStatus||"view"!==k?null:"error"===n.layerStatus?(0,u.jsx)(T,{layer:n}):B?(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(){y(n.layerPath)},tooltip:"layers.toggleVisibility",className:"buttonOutline",children:g(n.layerPath)?(0,u.jsx)(s.VisibilityOutlinedIcon,{}):(0,u.jsx)(s.VisibilityOffOutlinedIcon,{})}),null!==(W=n.children)&&void 0!==W&&W.length?(0,u.jsx)(s.IconButton,{color:"primary",edge:"end",size:"small",onClick:$,tooltip:"layers.toggleCollapse",className:"buttonOutline",children:N?(0,u.jsx)(s.KeyboardArrowUpIcon,{}):(0,u.jsx)(s.KeyboardArrowDownIcon,{})}):null,"remove"===k?(0,u.jsx)(T,{layer:n}):"order"===k?(0,u.jsxs)(u.Fragment,{children:[(null===(U=n.children)||void 0===U?void 0:U.length)>0&&(0,u.jsx)(L.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,{disabled:o,edge:"end",size:"small",onClick:function(){return A(n.layerPath,-1)},children:(0,u.jsx)(I.A,{})}),(0,u.jsx)(s.IconButton,{disabled:a,edge:"end",size:"small",onClick:function(){return A(n.layerPath,1)},children:(0,u.jsx)(M.A,{})})]}):null]})]})},n.layerName)}),n.children&&n.children.length?(0,u.jsx)(s.Collapse,{in:N,timeout:"auto",children:(0,u.jsx)(D,{depth:1+t,layersList:n.children,isLayoutEnlarged:d,setIsLayersListPanelVisible:r})}):null]})}var j=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"}}}},F=n(46910);function D(e){var t=e.layersList,n=e.setIsLayersListPanelVisible,r=e.isLayoutEnlarged,i=e.depth;w.vF.logTraceRender("components/layers/left-panel/layers-list");var o=(0,a.A)(),l=j(o),c=(0,F.U6)().getIndexFromOrderedLayerInfo,d=t.sort((function(e,t){return c(e.layerPath)>c(t.layerPath)?1:-1})),h=d.map((function(e,t){var o=0===t,a=t===d.length-1;return(0,u.jsx)(R,{depth:i,layer:e,setIsLayersListPanelVisible: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:h})}var N=n(43994),z=n(59615),V=n.n(z),B=n(12311),$=n(55373),G=n(27174),U=n(78752),W=n(38509),q=n(76262),H=n(15247),Y=n(69070),K=n(21838),X=n(98030),Z=n(74490),J=n(91777),Q=n(45380),ee=n(39225),te=n(97752),ne=n(51397),re=n(16535),ie=n(80995),oe=n(5715),ae=n(91195),se=n(71587),le=n(62754),ce=n(85813),ue=n(48660),de=n(10454),he=n(12764),pe=n(52375),fe=n(12358),ge=n(68709);function me(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 ye(e){for(var t=1;t0&&t.Layer.forEach((function(t){var n=t.Name;(0===u.length||u.includes(n))&&(w.vF.logDebug("NAME",n),f.push(new ae.Q({geoviewLayerConfig:d,layerId:t.Name,layerName:(0,y.createLocalizedString)(t.Title)}))),e(t)}))},p.Capability.Layer&&m(p.Capability.Layer),1===f.length?(ke(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?it("WMS",t,n):rt("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)}}(),at=function(){var e=(0,N.A)(V().mark((function e(){var t,n,r,i;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t={geoviewLayerType:m,listOfLayerEntryConfig:[],metadataAccessPath:(0,y.createLocalizedString)(M)},n=new U.dS(Ke,t),t.geoviewLayerId=n.geoviewLayerId,E(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 Z.q({geoviewLayerConfig:t,layerId:e.Name["#text"].split(":")[1],layerName:(0,y.createLocalizedString)(e.Title["#text"])})}))).length?(ke(i[0].layerName.en),Ie([i[0]])):Se(i),e.next=19;break;case 15:return e.prev=15,e.t0=e.catch(0),rt("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)}}(),st=function(){var e=(0,N.A)(V().mark((function e(){var t,n,r,i;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t={geoviewLayerType:v,listOfLayerEntryConfig:[],metadataAccessPath:(0,y.createLocalizedString)(M.split("collections")[0])},n=new $.ke(Ke,t),t.geoviewLayerId=n.geoviewLayerId,E(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 rt("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===M.split("/collections/").length&&r.collections.forEach((function(e){M.split("/collections/")[1]===e.id&&i.push(new J.j({geoviewLayerConfig:t,layerId:e.id,layerName:(0,y.createLocalizedString)(e.title)}))})),0===i.length&&(i=r.collections.map((function(e){return new J.j({geoviewLayerConfig:t,layerId:e.id,layerName:(0,y.createLocalizedString)(e.title)})}))),1===i.length?(ke(i[0].layerName.en),Ie([i[0]])):Se(i),e.next=28;break;case 24:return e.prev=24,e.t0=e.catch(0),rt("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)}}(),lt=function(){var e=(0,N.A)(V().mark((function e(){var t,n;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,-1===M.indexOf("/")&&32===M.replaceAll("-","").length){e.next=4;break}throw new Error("err");case 4:return t=new le.h(Ke,Y.FHQ.maps[Ke].getDisplayLanguage()),e.next=7,t.createLayersFromUUID(M);case 7:1===(n=e.sent).length&&(1===n.length?(ke(n[0].geoviewLayerName.en),Ie(n)):Se(n)),e.next=15;break;case 11:return e.prev=11,e.t0=e.catch(0),rt("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)}}(),ct=function(){var e=(0,N.A)(V().mark((function e(t){var n,i,o,a;return V().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)(M)}:{geoviewLayerType:t,listOfLayerEntryConfig:[],metadataAccessPath:(0,y.createLocalizedString)(M.substring(0,M.lastIndexOf("/")))},i=t===r?new de.zt(Ke,n):new pe.Uw(Ke,n),n.geoviewLayerId=i.geoviewLayerId,E(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(tt(t).capability)){e.next=15;break}"layers"in o&&(a=[],t===r?o.layers.forEach((function(e){return a.push(new ie.q({geoviewLayerConfig:n,layerId:e.id,layerName:(0,y.createLocalizedString)(e.name)}))})):a.push(new te.h({geoviewLayerConfig:n,layerId:o.layers[0].id,layerName:(0,y.createLocalizedString)(o.layers[0].name)})),1===a.length?(ke(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),rt(tt(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)}}(),ut=function(){var e=(0,N.A)(V().mark((function e(){var t,n,r,i,o;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,r={geoviewLayerType:h,listOfLayerEntryConfig:[],metadataAccessPath:(0,y.createLocalizedString)(M)},i=new K.$x(Ke,r),r.geoviewLayerId=i.geoviewLayerId,E(i),e.next=7,i.createGeoViewLayers();case 7:o=[new oe.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)(M)}})],ke(o[0].layerName.en),Ie([o[0]]),e.next=16;break;case 12:return e.prev=12,e.t0=e.catch(0),rt("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)}}(),dt=function(){var e=(0,N.A)(V().mark((function e(){var t,n,r,i,o;return V().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=Y.FHQ.maps[Ke].layer.addGeoviewLayer(t);n&&e.push(n)})):Pe.length>0&&Pe.forEach((function(t){var n=Y.FHQ.maps[Ke].layer.addGeoviewLayer(t);n&&e.push(n)})),Promise.allSettled(e.map((function(e){return e.promiseLayer}))).then((function(){ft(),e.forEach((function(e){return gt(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)(_e),ve===b&&(Pe[0].layerName=(0,y.createLocalizedString)(_e)),1===t.listOfLayerEntryConfig.length&&(t.listOfLayerEntryConfig[0].layerName=t.geoviewLayerName);var n=Y.FHQ.maps[Ke].layer.addGeoviewLayer(t);n?n.promiseLayer.then((function(){ft(),gt(n.layer)})).catch((function(e){w.vF.logPromiseFailed("addedLayer.promiseLayer in handleStepLast in AddNewLayer",e)})):je(!1)}},yt=function(){O((function(e){return e-1})),He(!1)},vt=function(e){var t=URL.createObjectURL(e);D(e.name),L(t);var n=e.name.split(".")[0];be(""),Se([]),ke(n),Ie([])},bt=function(e,t){He(!0),Je()?0!==t.length&&(Ie(t),ke(t.map((function(e){return e.layerName.en})).join(", ")),He(!1)):(Ie([t]),ke(t.layerName.en),He(!1))},wt=function(e){He(!1),ke(e.target.value)};(0,o.useEffect)((function(){2===T&&Pe.length>0&&He(!1)}),[_e,T,Pe]);var xt=function(e){var t;if(e.preventDefault(),e.stopPropagation(),ze(!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")?vt(n):Y.FHQ.maps[Ke].notifications.showError("layers.errorFile",[],!1)}};function At(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:et.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:yt,children:e("layers.back")})]})}var St=(0,u.jsx)(s.CheckBoxOutlineBlankIcon,{fontSize:t.palette.geoViewFontSize.sm}),Ct=(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:T,orientation:"vertical",steps:[{stepLabel:{children:e("layers.stepOne")},stepContent:{children:(0,u.jsxs)(s.Box,{className:"dropzone",style:{position:"relative"},onDrop:function(e){return xt(e)},onDragOver:function(e){return(t=e).preventDefault(),void t.stopPropagation();var t},onDragEnter:function(e){return(t=e).preventDefault(),t.stopPropagation(),void(t.target!==Ye.current&&ze(!0));var t},onDragLeave:function(e){return(t=e).preventDefault(),t.stopPropagation(),void(t.target===Ye.current&&ze(!1));var t},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&&vt(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",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:F,onChange:function(e){D(e.target.value.trim()),L(e.target.value.trim()),be(""),Se([]),ke(""),Ie([]),He(!(e.target.value.trim().startsWith("https://")||35!==e.target.value.trim().length))},multiline:!0}),(0,u.jsx)("br",{}),(0,u.jsx)(At,{isFirst:!0,handleNext:function(){var e,t,i=!0;""===M.trim()&&(i=!1,je(!1),Y.FHQ.maps[Ke].notifications.showError("layers.errorNone",[],!1)),i&&(e=F.toUpperCase().split("/"),t=parseInt(e[e.length-1],10),F.toUpperCase().endsWith("MAPSERVER")||F.toUpperCase().endsWith("MAPSERVER/")?be(r):-1!==F.toUpperCase().indexOf("FEATURESERVER")||-1!==F.toUpperCase().indexOf("MAPSERVER")&&!Number.isNaN(t)?be(d):-1!==F.toUpperCase().indexOf("IMAGESERVER")?be(h):-1!==e.indexOf("WFS")?be(m):F.toUpperCase().endsWith(".JSON")||F.toUpperCase().endsWith(".GEOJSON")?be(p):F.toUpperCase().endsWith(".GPKG")?be(f):-1!==F.toUpperCase().indexOf("{Z}/{X}/{Y}")||-1!==F.toUpperCase().indexOf("{Z}/{Y}/{X}")?be(b):-1===F.indexOf("/")&&32===F.replaceAll("-","").length?be(x):-1!==F.toUpperCase().indexOf("WMS")?be(g):F.toUpperCase().endsWith(".CSV")?be(n):(be(""),He(!0)),O(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:ve,onChange:function(e){be(e.target.value),Se([]),Ie([]),He(!1)},label:e("layers.service"),variant:"standard",inputLabel:{id:"service-type-label"},menuItems:Qe.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)(At,{handleNext:function(){var t;je(!0),void 0===ve?(je(!1),nt(e("layers.service"))):ve===g?t=ot():ve===m?t=at():ve===v?t=st():ve===b?t=dt():ve===r?t=ct(r):ve===d?t=ct(d):ve===h?t=ut():ve===p?t=pt():ve===f?t=Promise.resolve(function(){try{Ge(!1);var e={geoviewLayerType:f,listOfLayerEntryConfig:[]},t=new se.OH(Ke,e);e.geoviewLayerId=t.geoviewLayerId,E(t);var n=[new ne.X({geoviewLayerConfig:e,layerId:e.geoviewLayerId,layerName:(0,y.createLocalizedString)(""),source:{dataAccessPath:(0,y.createLocalizedString)(M)}})];ke(n[0].layerName.en),Ie([n[0]])}catch(e){return rt("GeoPackage"),!1}return!0}()):ve===x?t=lt():ve===n&&(t=ht()),t&&t.then((function(e){e&&(je(!1),O(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:_e,onChange:wt}),Ae.length>1&&Ae[0].layerName&&(0,u.jsx)(s.Autocomplete,{fullWidth:!0,multiple:Je(),disableClearable:!Je(),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,u.jsxs)("li",ye(ye({},e),{},{children:[(0,u.jsx)(s.Checkbox,{icon:St,checkedIcon:Ct,style:{marginRight:8},checked:r}),t.layerName.en]}))},onChange:bt,renderInput:function(t){return(0,u.jsx)(s.TextField,ye(ye({},t),{},{label:e("layers.layerSelect")}))}}),Ae.length>1&&Ae[0].geoviewLayerName&&(0,u.jsx)(s.Autocomplete,{fullWidth:!0,multiple:Je(),disableClearable:!Je(),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,u.jsxs)("li",ye(ye({},e),{},{children:[(0,u.jsx)(s.Checkbox,{icon:St,checkedIcon:Ct,style:{marginRight:8},checked:r}),t.geoviewLayerName.en]}))},onChange:bt,renderInput:function(t){return(0,u.jsx)(s.TextField,ye(ye({},t),{},{label:e("layers.layerSelect")}))}}),(0,u.jsx)("br",{}),(0,u.jsx)(At,{isLast:!Je(),handleNext:Je()?function(){var t=!0;0===Pe.length&&(t=!1,nt(e("layers.layer"))),t&&O(3)}:mt})]})}},Je()?{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:_e,onChange:wt}),(0,u.jsx)("br",{}),(0,u.jsx)(At,{isLast:!0,handleNext:mt})]})}}:null]})})}function be(e){var t=e.setIsLayersListPanelVisible,n=e.isLayoutEnlarged;w.vF.logTraceRender("components/layers/left-panel/left-panel");var r=(0,l.Yo)(),a=(0,l.y5)(),s=(0,S._I)(),c=(0,S.U6)().getIndexFromOrderedLayerInfo,d=(0,l.$T)().setDisplayState,h=(0,o.useState)([]),p=(0,i.A)(h,2),f=p[0],g=p[1];return(0,o.useEffect)((function(){var e=r.sort((function(e,t){return c(e.layerPath)>c(t.layerPath)?1:-1}));g(e)}),[s,r,c]),(0,o.useEffect)((function(){"add"===a||r.length||d("add")}),[a,r,d]),"add"===a?(0,u.jsx)(ve,{}):(0,u.jsx)(D,{layersList:f,depth:0,setIsLayersListPanelVisible:t,isLayoutEnlarged:n})}var we=n(27892),xe=n(67207);function Ae(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,l.$T)().setSelectedLayerPath,g=(0,o.useState)(!1),m=(0,i.A)(g,2),y=m[0],v=m[1],b=(0,o.useRef)(null),x=function(){var e;null===(e=b.current)||void 0===e||e.setIsRightPanelVisible(!0)},S=(0,o.useCallback)((function(e){e&&f("")}),[f]),C=(0,o.useCallback)((function(e){v(e)}),[v]);return(0,u.jsx)(we.z,{ref:b,leftTop:(0,u.jsx)(d,{}),leftMain:(0,u.jsx)(s.Box,{children:(0,u.jsx)(be,{setIsLayersListPanelVisible:x,isLayoutEnlarged:y})}),rightTop:(0,u.jsx)(xe.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)(A,{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:S,hideEnlargeBtn:"view"!==p,containerType:t,onIsEnlargeClicked:C})}},14476:(e,t,n)=>{"use strict";n.d(t,{s:()=>x});var r=n(64426),i=n(47361),o=n(94145),a=n(30538),s=n(43331),l=n(3104),c=n(46910),u=n(91140),d=n(28187),h=n(60854),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","& svg":{width:"1.25rem",height:"1.25rem"}}}}},f=n(46182),g=n(8259),m=n(97282);function y(e){var t,n,r,i,a=e.layer;h.vF.logTraceRender("components/legend/legend-layer");var d,v,b,w,x=(0,s.useTranslation)().t,A=(0,o.A)(),S=p(A),C=(0,u.Zt)(),E=(0,c.U6)(),_=E.getVisibilityFromOrderedLayerInfo,k=E.setOrToggleLayerVisibility,T=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=!T(a.layerPath),j=!_(a.layerPath),F=null!==(t=null===(n=a.controls)||void 0===n?void 0:n.visibility)&&void 0!==t&&t;return(0,m.jsxs)(l.Box,{sx:S.legendLayerListItem,children:[(0,m.jsxs)(l.ListItem,{divider:!0,onClick:function(){O(a.layerPath)},children:[(0,m.jsx)(f.B,{layer:a}),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(l.Tooltip,{title:a.layerName,placement:"top",children:(0,m.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,m.jsx)(l.Box,{});var t="";return L().length?t=x("legend.subLayersCount").replace("{count}",L().length.toString()):a.items.length>1&&(t=x("legend.itemsCount").replace("{count}",a.items.length.toString()).replace("{totalCount}",a.items.length.toString())),(0,m.jsxs)(l.Stack,{direction:"row",alignItems:"center",sx:S.layerStackIcons,children:[!!t.length&&(0,m.jsx)(l.Typography,{fontSize:14,children:t}),(0,m.jsxs)(l.Box,{children:[(0,m.jsx)(l.IconButton,{edge:"end",tooltip:"layers.toggleVisibility",className:"buttonOutline",onClick:function(e){return function(e){e.stopPropagation(),k(a.layerPath)}(e)},disabled:!F,children:j?(0,m.jsx)(l.VisibilityOffOutlinedIcon,{}):(0,m.jsx)(l.VisibilityOutlinedIcon,{})}),(0,m.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,m.jsx)(l.HighlightIcon,{}):(0,m.jsx)(l.HighlightOutlinedIcon,{})}),(0,m.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,m.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,m.jsx)(l.IconButton,{sx:{marginBottom:"20px"},className:"buttonOutline",edge:"end",size:"small",tooltip:"layers.toggleCollapse",children:R?(0,m.jsx)(l.KeyboardArrowUpIcon,{}):(0,m.jsx)(l.KeyboardArrowDownIcon,{})})]})]},a.layerName),a.type===g.oR.WMS&&a.icons.length&&a.icons[0].iconImage&&"no data"!==a.icons[0].iconImage?(0,m.jsx)(l.Collapse,{in:R,sx:S.collapsibleContainer,timeout:"auto",children:(0,m.jsx)(l.Box,{component:"img",alt:"icon",src:a.icons[0].iconImage,sx:{maxWidth:"100%"}})}):(null===(d=a.children)||void 0===d?void 0:d.length)>1||(null===(v=a.items)||void 0===v?void 0:v.length)>1?(0,m.jsxs)(l.Collapse,{in:R,sx:S.collapsibleContainer,timeout:"auto",children:[null!==(w=a.children)&&void 0!==w&&w.length?(0,m.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,m.jsx)(y,{layer:e},e.layerPath)}))}):null,null!==(b=a.items)&&void 0!==b&&b.length?(0,m.jsx)(l.List,{sx:S.subList,children:a.items.map((function(e){return(0,m.jsxs)(l.ListItem,{className:e.isVisible?"":"unchecked",children:[(0,m.jsx)(l.ListItemIcon,{children:e.icon?(0,m.jsx)(l.Box,{component:"img",alt:e.name,src:e.icon}):(0,m.jsx)(l.BrowserNotSupportedIcon,{})}),(0,m.jsx)(l.Tooltip,{title:e.name,placement:"top",enterDelay:1e3,children:(0,m.jsx)(l.ListItemText,{primary:e.name})})]},"".concat(e.icon,"/").concat(e.name))}))}):null]}):null]})}var v=n(78383);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,{h:()=>qt});var r=n(47361),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",_="onPointerLeave",k="onPointerCancel",T="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 z="yarl__";function V(...e){return[...e].filter(Boolean).join(" ")}function B(e){return`${z}${e}`}function $(e){return`--${z}${e}`}function G(e,t){return`${e}${t?`_${t}`:""}`}function U(e){return t=>G(e,t)}function W(e,t){var n;return null!==(n=null==e?void 0:e[t])&&void 0!==n?n:t}function q(...e){return()=>{e.forEach((e=>{e()}))}}function H(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 Y(){return"undefined"!=typeof window}function K(e){return void 0===e.type||"image"===e.type}function X(e){return"string"==typeof e?Number.parseInt(e,10):e}function Z(e){if("number"==typeof e)return{pixel:e};if("string"==typeof e){const t=X(e);return e.endsWith("%")?{percent:t}:{pixel:t}}return{pixel:0}}function J(e,t){const n=Z(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 Q(e,t){return t>0?(e%t+t)%t:0}function ee(e){return e.length>0}function te(e,t){return e[Q(t,e.length)]}function ne(e,t){return ee(e)?te(e,t):void 0}function re(e){return K(e)?e.src:void 0}function ie(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 oe={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 ae(e,t){return{name:e,component:t}}function se(e,t){return{module:e,children:t}}function le(e,t,n){return e.module.name===t?n(e):e.children?[se(e.module,e.children.flatMap((e=>{var r;return null!==(r=le(e,t,n))&&void 0!==r?r:[]})))]:[e]}function ce(e,t,n){return e.flatMap((e=>{var r;return null!==(r=le(e,t,n))&&void 0!==r?r:[]}))}const ue=i.createContext(null),de=H("useEvents","EventsContext",ue);function he({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(ue.Provider,{value:n},e)}const pe=i.createContext(null),fe=H("useLightboxProps","LightboxPropsContext",pe);function ge({children:e,...t}){return i.createElement(pe.Provider,{value:t},e)}const me=i.createContext(null),ye=H("useLightboxState","LightboxStateContext",me),ve=i.createContext(null),be=H("useLightboxDispatch","LightboxDispatchContext",ve);function we(e,t){switch(t.type){case"swipe":{const{slides:n}=e,r=(null==t?void 0:t.increment)||0,i=e.globalIndex+r,o=Q(i,n.length);return{slides:n,currentIndex:o,globalIndex:i,currentSlide:ne(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:ne(t.slides,t.index)}:e;default:throw new Error(D)}}function xe({slides:e,index:t,children:n}){const[r,o]=i.useReducer(we,{slides:e,currentIndex:t,globalIndex:t,currentSlide:ne(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(ve.Provider,{value:o},i.createElement(me.Provider,{value:a},n))}const Ae=i.createContext(null),Se=H("useTimeouts","TimeoutsContext",Ae);function Ce({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(Ae.Provider,{value:n},e)}const Ee=i.forwardRef((function({label:e,className:t,icon:n,renderIcon:r,onClick:o,style:a,...s},l){const{styles:c,labels:u}=fe();return i.createElement("button",{ref:l,type:"button","aria-label":W(u,e),className:V(B("button"),t),onClick:o,style:{...a,...c.button},...s},r?r():i.createElement(n,{className:B(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 ke(e,t){return _e(e,i.createElement("g",{fill:"currentColor"},i.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),t))}const Te=ke("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"})),Oe=ke("Previous",i.createElement("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})),Pe=ke("Next",i.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),Ie=ke("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)`}))))),Me=ke("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"})),Le=Y()?i.useLayoutEffect:i.useEffect;function Re(){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 je(e,t){const n=i.useRef(),r=i.useRef(),o=Re();return Le((()=>{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(X);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 Fe(){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 De(){const e=i.useRef(),{setTimeout:t,clearTimeout:n}=Se();return i.useCallback(((r,i)=>{n(e.current),e.current=t(r,i>0?i:0)}),[t,n])}function Ne(e){const t=i.useRef(e);return Le((()=>{t.current=e})),i.useCallback(((...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)}),[])}function ze(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function Ve(e,t){return i.useMemo((()=>null==e&&null==t?null:n=>{ze(e,n),ze(t,n)}),[e,t])}function Be(e,t=!1){const n=i.useRef();Le((()=>{t&&n.current&&(n.current=!1,e())}),[t,e]);return{onFocus:i.useCallback((()=>{n.current=!0}),[]),onBlur:i.useCallback((()=>{n.current=!1}),[])}}function $e(){const[e,t]=i.useState(!1);return Le((()=>{t("rtl"===window.getComputedStyle(window.document.documentElement).direction)}),[]),e}function Ge(e,t){const n=i.useRef(0),r=De(),o=Ne(((...t)=>{n.current=Date.now(),e(t)}));return i.useCallback(((...e)=>{r((()=>{o(e)}),t-(Date.now()-n.current))}),[t,o,r])}const Ue=U("slide"),We=U("slide_image");function qe({slide:e,offset:t,render:n,rect:r,imageFit:o,imageProps:a,onClick:s,onLoad:l,style:c}){var u,m,y,v,b,w,x;const[A,S]=i.useState(d),{publish:C}=de(),{setTimeout:E}=Se(),_=i.useRef(null);i.useEffect((()=>{0===t&&C(g(A))}),[t,A,C]);const k=Ne((e=>{("decode"in e?e.decode():Promise.resolve()).catch((()=>{})).then((()=>{e.parentNode&&(S(p),E((()=>{null==l||l(e)}),0))}))})),T=i.useCallback((e=>{_.current=e,(null==e?void 0:e.complete)&&k(e)}),[k]),O=i.useCallback((e=>{k(e.currentTarget)}),[k]),P=i.useCallback((()=>{S(h)}),[]),I=function(e,t){return e.imageFit===F||e.imageFit!==j&&t===F}(e,o),M=(e,t)=>Number.isFinite(e)?e:t,L=M(Math.max(...(null!==(m=null===(u=e.srcSet)||void 0===u?void 0:u.map((e=>e.width)))&&void 0!==m?m:[]).concat(e.width?[e.width]:[]).filter(Boolean)),(null===(y=_.current)||void 0===y?void 0:y.naturalWidth)||0),D=M(Math.max(...(null!==(b=null===(v=e.srcSet)||void 0===v?void 0:v.map((e=>e.height)))&&void 0!==b?b:[]).concat(e.height?[e.height]:[]).filter(Boolean)),(null===(w=_.current)||void 0===w?void 0:w.naturalHeight)||0),N=L&&D?{maxWidth:`min(${L}px, 100%)`,maxHeight:`min(${D}px, 100%)`}:{maxWidth:"100%",maxHeight:"100%"},z=null===(x=e.srcSet)||void 0===x?void 0:x.sort(((e,t)=>e.width-t.width)).map((e=>`${e.src} ${e.width}w`)).join(", "),$=z&&r&&Y()?`${Math.round(Math.min(r&&!I&&e.width&&e.height?r.height/e.height*e.width:Number.MAX_VALUE,r.width))}px`:void 0,{style:G,className:U,...W}=a||{};return i.createElement(i.Fragment,null,i.createElement("img",{ref:T,onLoad:O,onError:P,onClick:s,draggable:!1,className:V(B(We()),I&&B(We("cover")),A!==p&&B(We("loading")),U),style:{...N,...c,...G},...W,alt:e.alt,sizes:$,srcSet:z,src:e.src}),A!==p&&i.createElement("div",{className:B(Ue(f))},A===d&&((null==n?void 0:n.iconLoading)?n.iconLoading():i.createElement(Ie,{className:V(B(R),B(Ue(d)))})),A===h&&((null==n?void 0:n.iconError)?n.iconError():i.createElement(Me,{className:V(B(R),B(Ue(h)))}))))}var He,Ye;!function(e){e[e.NONE=0]="NONE",e[e.SWIPE=1]="SWIPE",e[e.PULL=2]="PULL",e[e.ANIMATION=3]="ANIMATION"}(He||(He={})),function(e){e[e.NONE=0]="NONE",e[e.SWIPE=1]="SWIPE",e[e.PULL=2]="PULL"}(Ye||(Ye={}));const Ke=30;function Xe(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(Ye.NONE),w=i.useCallback((e=>{y.current===e.pointerId&&(y.current=void 0,b.current=Ye.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=Ne((e=>{x(e)})),T=(e,t)=>u&&e>t||c&&e<-t,O=Ne((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===Ye.SWIPE?Math.abs(t)>.3*n||Math.abs(t)>5&&eo?()=>{}:q(e(S,t),e(C,n),e(E,r),e(_,r),e(k,r))),[e,t,n,r,o])}(e,A,Ne((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)>Ke&&t(i)?(n(Ye.SWIPE),o()):Math.abs(s)>Math.abs(i)&&T(s,Ke)&&(n(Ye.PULL),d())}else r&&(b.current===Ye.SWIPE?(g.current=i,a(i)):b.current===Ye.PULL&&(g.current=s,h(s)))}})),O)}const Ze=U("container"),Je=i.createContext(null),Qe=H("useController","ControllerContext",Je);const et=ae(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=ye(),I=be(),[M,L]=i.useState(He.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(_,e),onPointerCancel:e=>t(k,e),onKeyDown:e=>t(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:z,publish:G}=de(),U=De(),W=De(),H=De(),{containerRef:Y,setContainerRef:K,containerRect:X}=Fe(),Q=Ve(function({preventDefaultWheelX:e,preventDefaultWheelY:t}){const n=i.useRef(null),r=Ne((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=Ve(ee,void 0),ne=$e(),re=e=>(ne?-1:1)*("number"==typeof e?e:1),ie=Ne((()=>{var e;return null===(e=Y.current)||void 0===e?void 0:e.focus()})),oe=Ne((()=>t)),ae=Ne((()=>v)),se=i.useCallback((e=>G(b,e)),[G]),le=i.useCallback((e=>G(w,e)),[G]),ce=i.useCallback((()=>G(A)),[G]),ue=e=>!(r.finite&&(re(e)>0&&0===v.currentIndex||re(e)<0&&v.currentIndex===v.slides.length-1)),he=e=>{var t;R.current=e,null===(t=Y.current)||void 0===t||t.style.setProperty($("swipe_offset"),`${Math.round(e)}px`)},pe=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:fe}=je(ee,((e,t,n)=>{if(ee.current&&X)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}})),ge=(e,t)=>{if(d||h){pe(e);let n=0;ee.current&&(n=o.fade*(t?2:1),fe({rect:ee.current.getBoundingClientRect(),opacity:F.current,duration:n})),H((()=>{pe(0),L(He.NONE)}),n),L(He.ANIMATION),t||ce()}},{prepareAnimation:me,isAnimationPlaying:ve}=je(ee,((e,t,n)=>{var i;if(ee.current&&X&&(null===(i=v.animation)||void 0===i?void 0:i.duration)){const i=Z(r.spacing),o=(i.percent?i.percent*X.width/100:i.pixel)||0;return{keyframes:[{transform:`translate(${re(v.globalIndex-e.index)*(X.width+o)+e.rect.x-t.x+n.x}px, 0)`},{transform:"translate(0, 0)"}],duration:v.animation.duration,easing:v.animation.easing}}})),we=Ne((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||ve()?o.easing.swipe:o.easing.navigation;let{direction:s}=e;const l=null!==(n=e.count)&&void 0!==n?n:1;let c=He.ANIMATION,u=i*l;if(!s){const t=null==X?void 0:X.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?ue(re(1))?d=-l:(c=He.NONE,u=i):s===w&&(ue(re(-1))?d=l:(c=He.NONE,u=i)),u=Math.round(u),W((()=>{he(0),L(He.NONE)}),u),ee.current&&me({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 xe=[N,ue,(null==X?void 0:X.width)||0,o.swipe,()=>L(He.SWIPE),e=>he(e),(e,t)=>we({offset:e,duration:t,count:1}),e=>we({offset:e,count:0})],Ae=[()=>{h&&L(He.PULL)},e=>pe(e),e=>ge(e),e=>ge(e,!0)];Xe(...xe,d,h,...Ae),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}=Se(),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=Ne((()=>{e!==He.SWIPE&&(u.current=0,g.current=0,v(),b())}));i.useEffect(w,[e,w]);const x=Ne((e=>{p.current=void 0,u.current===e&&c(u.current)})),A=Ne((t=>{if(!(t.ctrlKey||Math.abs(t.deltaY)>Math.abs(t.deltaX)))if(e===He.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===He.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,...xe);const Ce=Ne((()=>{a.focus&&document.querySelector(`.${B(l)} .${B(Ze())}`)&&ie()}));i.useEffect(Ce,[Ce]);const Ee=Ne((()=>{var e;null===(e=s.view)||void 0===e||e.call(s,{index:v.currentIndex})}));i.useEffect(Ee,[v.globalIndex,Ee]),i.useEffect((()=>q(z(b,(e=>we({direction:b,...e}))),z(w,(e=>we({direction:w,...e}))),z(x,(e=>I(e))))),[z,we,I]);const _e=i.useMemo((()=>({prev:se,next:le,close:ce,focus:ie,slideRect:X?J(X,r.padding):{width:0,height:0},containerRect:X||{width:0,height:0},subscribeSensors:N,containerRef:Y,setCarouselRef:te,toolbarWidth:g,setToolbarWidth:y})),[se,le,ce,ie,N,X,Y,te,g,y,r.padding]);return i.useImperativeHandle(a.ref,(()=>({prev:se,next:le,close:ce,focus:ie,getLightboxProps:oe,getLightboxState:ae})),[se,le,ce,ie,oe,ae]),i.createElement("div",{ref:Q,className:V(B(Ze()),B(m)),style:{...M===He.SWIPE?{[$("swipe_offset")]:`${Math.round(R.current)}px`}:null,...M===He.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},X&&i.createElement(Je.Provider,{value:_e},e,null===(n=u.controls)||void 0===n?void 0:n.call(u)))}));function tt(e){return G(a,e)}function nt(e){return G("slide",e)}function rt({slide:e,offset:t}){const n=i.useRef(null),{currentIndex:r}=ye(),{slideRect:o,close:a}=Qe(),{render:s,carousel:{imageFit:l,imageProps:c},on:{click:u},controller:{closeOnBackdropClick:d},styles:{slide:h}}=fe();return i.createElement("div",{ref:n,className:V(B(nt()),0===t&&B(nt("current")),B(m)),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(B(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&&K(e)&&(p=i.createElement(qe,{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 it(){const e=fe().styles.slide;return i.createElement("div",{className:B("slide"),style:e})}const ot=ae(a,(function({carousel:e}){const{slides:t,currentIndex:n,globalIndex:r}=ye(),{setCarouselRef:o}=Qe(),a=Z(e.spacing),s=Z(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(ee(t))for(let i=n-l;i<=n+l;i+=1){const o=te(t,i),a=r-n+i,s=e.finite&&(i<0||i>t.length-1);c.push(s?{key:a}:{key:[`${a}`,re(o)].filter(Boolean).join("|"),offset:i-n,slide:o})}return i.createElement("div",{ref:o,className:V(B(tt()),c.length>0&&B(tt("with_slides"))),style:{[`${$(tt("slides_count"))}`]:c.length,[`${$(tt("spacing_px"))}`]:a.pixel||0,[`${$(tt("spacing_percent"))}`]:a.percent||0,[`${$(tt("padding_px"))}`]:s.pixel||0,[`${$(tt("padding_percent"))}`]:s.percent||0}},c.map((({key:e,slide:t,offset:n})=>t?i.createElement(rt,{key:e,slide:t,offset:n}):i.createElement(it,{key:e}))))}));function at(){const{carousel:e}=fe(),{slides:t,currentIndex:n}=ye();return{prevDisabled:0===t.length||e.finite&&0===n,nextDisabled:0===t.length||e.finite&&n===t.length-1}}function st({label:e,icon:t,renderIcon:n,action:r,onClick:o,disabled:a,style:s}){return i.createElement(Ee,{label:e,icon:t,renderIcon:n,className:B(`navigation_${r}`),disabled:a,onClick:o,style:s,...Be(Qe().focus,a)})}const lt=ae("navigation",(function({render:{buttonPrev:e,buttonNext:t,iconPrev:n,iconNext:r},styles:o}){const{prev:a,next:s,subscribeSensors:l}=Qe(),{prevDisabled:c,nextDisabled:u}=at();return function(e){var t;const n=$e(),{publish:r}=de(),{animation:o}=fe(),{prevDisabled:a,nextDisabled:s}=at(),l=(null!==(t=o.navigation)&&void 0!==t?t:o.swipe)/2,c=Ge((()=>r(b)),l),u=Ge((()=>r(w)),l),d=Ne((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(T,d)),[e,d])}(l),i.createElement(i.Fragment,null,e?e():i.createElement(st,{label:"Previous",action:b,icon:Oe,renderIcon:n,style:o.navigationPrev,disabled:c,onClick:a}),t?t():i.createElement(st,{label:"Next",action:w,icon:Pe,renderIcon:r,style:o.navigationNext,disabled:u,onClick:s}))})),ct=B("no_scroll"),ut=B(y);function dt(e){return"style"in e}function ht(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,`${(X(o)||0)+t}px`),()=>{a?e.style.setProperty(i,a):e.style.removeProperty(i)}}const pt=ae("no-scroll",(function({noScroll:{disabled:e},children:t}){const n=$e();return Le((()=>{if(e)return()=>{};const t=[],{body:r,documentElement:i}=document,o=Math.round(window.innerWidth-i.clientWidth);if(o>0){t.push(ht(r,o,n));const e=r.getElementsByTagName("*");for(let r=0;r{r.classList.remove(ct),t.forEach((e=>e()))}}),[n,e]),i.createElement(i.Fragment,null,t)}));function ft(e){return G(l,e)}function gt(e,t,n){const r=e.getAttribute(t);return e.setAttribute(t,n),()=>{r?e.setAttribute(t,r):e.removeAttribute(t)}}const mt=ae(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}=Se(),{subscribe:g}=de(),m=Re()?0:t.fade;i.useEffect((()=>(c(!0),()=>{c(!1),d(!1)})),[]);const v=Ne((()=>{h.current.forEach((e=>e())),h.current=[]})),b=Ne((()=>{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=Ne((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("div",{ref:x,className:V(r,B("root"),B(ft()),B(y),u&&B(ft("open"))),role:"presentation","aria-live":"polite",style:{...t.fade!==oe.animation.fade?{[$("fade_animation_duration")]:`${m}ms`}:null,...t.easing.fade!==oe.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 yt=ae("root",(function({children:e}){return i.createElement(i.Fragment,null,e)}));const vt=ae(c,(function({toolbar:{buttons:e},render:{buttonClose:t,iconClose:n},styles:r}){const{close:o,setToolbarWidth:a}=Qe(),{setContainerRef:s,containerRect:l}=Fe();return Le((()=>{a(null==l?void 0:l.width)}),[a,null==l?void 0:l.width]),i.createElement("div",{ref:s,style:r.toolbar,className:B(G(c,u))},null==e?void 0:e.map((e=>e===A?t?t():i.createElement(Ee,{key:A,label:"Close",icon:Te,renderIcon:n,onClick:o}):e)));var u}));function bt(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=>bt(e,t))))}function wt(e,t={}){const{easing:n,...r}=e,{easing:i,...o}=t;return{easing:{...n,...i},...r,...o}}function xt({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}=oe,{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?ce(r,e,(e=>[se(t,[e])])):[se(t,r)]},a=(e,t)=>{r=ce(r,e,(e=>[se(e.module,[se(t,e.children)])]))},l=(e,t,n)=>{r=ce(r,e,(e=>{var r;return[se(e.module,[...n?[se(t)]:[],...null!==(r=e.children)&&void 0!==r?r:[],...n?[]:[se(t)]])]}))},c=(e,t,n)=>{r=ce(r,e,(e=>[...n?[se(t)]:[],e,...n?[]:[se(t)]]))},u=e=>{a(s,e)},d=(e,t)=>{r=ce(r,e,(e=>[se(t,e.children)]))},h=e=>{r=ce(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)}}([se(mt,[se(pt,[se(et,[se(ot),se(vt),se(lt)])])])],c||A),_=E({animation:wt(p,t),carousel:{...f,...e},render:{...g,...n},toolbar:{...m,...r},controller:{...y,...o},noScroll:{...v,...a},on:{...b,...l},...S,...h});return _.open?i.createElement(ge,{..._},i.createElement(xe,{slides:u||w,index:X(d||x)},i.createElement(Ce,null,i.createElement(he,null,bt(se(yt,C),_))))):null}const At={download:void 0},St=e=>({...At,...e});function Ct(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 Et(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=()=>{Et(n.response,t)},n.onerror=()=>{console.error("Failed to download file")},n.send()}(e,t):(n.target="_blank",Ct(n)):Ct(n)):(n.href=URL.createObjectURL(e),setTimeout((()=>URL.revokeObjectURL(n.href)),3e4),setTimeout((()=>Ct(n)),0))}const _t=ke("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 kt(){const{render:e,on:t,download:n}=fe(),{download:r}=St(n),{currentSlide:o,currentIndex:a}=ye();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||K(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;Et(s,e)}};return i.createElement(Ee,{label:"Download",icon:_t,renderIcon:e.iconDownload,disabled:!l,onClick:()=>{var e;o&&((r||c)({slide:o,saveAs:Et}),null===(e=t.download)||void 0===e||e.call(t,{index:a}))}})}function Tt({augment:e}){e((({toolbar:e,download:t,...n})=>({toolbar:ie(e,u,i.createElement(kt,null)),download:St(t),...n})))}var Ot=n(27612),Pt=n.n(Ot),It=n(15397),Mt=n.n(It),Lt=n(76743),Rt=n.n(Lt),jt=n(34804),Ft=n.n(jt),Dt=n(74032),Nt=n.n(Dt),zt=n(60605),Vt=n.n(zt),Bt=n(11355),$t={};$t.styleTagTransform=Vt(),$t.setAttributes=Ft(),$t.insert=Rt().bind(null,"head"),$t.domAPI=Mt(),$t.insertStyleElement=Nt();Pt()(Bt.A,$t);Bt.A&&Bt.A.locals&&Bt.A.locals;var Gt=n(3104),Ut=n(60854),Wt=n(97282);function qt(e){Ut.vF.logTraceRender("components/lightbox/lightbox");var t=e.open,n=e.slides,a=e.index,s=e.exited,l=(0,o.useTranslation)().t,c=(0,i.useState)(t),u=(0,r.A)(c,2),d=u[0],h=u[1],p=(0,i.useState)(!0),f=(0,r.A)(p,1)[0],g=(0,i.useState)(!0),m=(0,r.A)(g,1)[0],y=(0,i.useState)(250),v=(0,r.A)(y,1)[0],b=(0,i.useState)(500),w=(0,r.A)(b,1)[0];return(0,i.useEffect)((function(){Ut.vF.logTraceUseEffect("LIGHTBOX - open",t),h(t)}),[t]),(0,Wt.jsx)(xt,{styles:{root:{width:"90%",height:"90%",margin:"auto"},container:{backgroundColor:"rgba(0, 0, 0, .9)"}},open:d,close:function(){return h(!1)},slides:n,index:a,carousel:{finite:!0},controller:{closeOnPullDown:f,closeOnBackdropClick:m},animation:{fade:v,swipe:w},labels:{Next:l("lightbox.next"),Previous:l("lightbox.previous"),Close:l("lightbox.close"),Download:l("lightbox.download")},on:{entered:function(){},exited:s},render:{iconClose:function(){return(0,Wt.jsx)(Gt.Tooltip,{title:l("lightbox.close"),placement:"top",children:(0,Wt.jsx)(Gt.CloseIcon,{})})},iconNext:function(){return(0,Wt.jsx)(Gt.Tooltip,{title:l("lightbox.next"),placement:"top",children:(0,Wt.jsx)(Gt.ArrowRightIcon,{})})},iconPrev:function(){return(0,Wt.jsx)(Gt.Tooltip,{title:l("lightbox.previous"),placement:"top",children:(0,Wt.jsx)(Gt.ArrowLeftIcon,{})})},iconDownload:function(){return(0,Wt.jsx)(Gt.Tooltip,{title:l("lightbox.download"),placement:"top",children:(0,Wt.jsx)(Gt.DownloadIcon,{})})}},plugins:[Tt]})}},55147:(e,t,n)=>{"use strict";n.d(t,{p:()=>d});var r=n(30538),i=n(94145),o=n(3104),a=n(87167),s=n(69495),l=n(60854),c=n(15247),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"}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,{})})})}},98625:(e,t,n)=>{"use strict";n.d(t,{F:()=>f});var r=n(64426),i=n(30538),o=n(43331),a=n(94145),s=n(6467),l=n(3104),c=n(12311),u=n(69495),d=n(28187),h=n(60854),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})}},55589:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(30538),i=n(43331),o=n(94145),a=n(3104),s=n(87167),l=n(28187),c=n(97282);function u(){var e=(0,i.useTranslation)().t,t=(0,o.A)(),n=(0,s.S)(t),u="mapctrl.rotation.resetRotation",d=(0,r.useRef)(null),h=(0,l.uE)(),p=(0,l.U6)().setRotation;return(0,c.jsx)(a.IconButton,{sx:n.rotationButton.rotationButton,tooltipPlacement:"top",tooltip:u,"aria-label":u,title:e("mapctrl.rotation.resetRotation"),onClick:function(){return p(0)},children:(0,c.jsx)(a.ArrowUpIcon,{ref:d,sx:n.rotationButton.rotationIcon,style:{transform:"rotate(".concat(h,"rad)")}})})}},87167:(e,t,n)=>{"use strict";n.d(t,{S:()=>r});var r=function(e){return{mapInfoContainer:{flexGrow:1,zIndex:200,display:"flex",flexDirection:"row",justifyContent:"space-between",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","& 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]}}}}},6017:(e,t,n)=>{"use strict";n.d(t,{p:()=>x});var r=n(64426),i=n(30538),o=n(94145),a=n(3104),s=n(17161),l=n(45094),c=n(5099),u=n(55147),d=n(55589),h=n(98625),p=n(87167),f=n(28187),g=n(69495),m=n(60854),y=n(15247),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(6467),o=n(66469),a=n(94145),s=n(94044),l=n(77082),c=n(67121),u=n(57449),d=n(16154),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(28187),f=n(15247),g=n(90763),m=n(60854),y=n(76262),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)(),_=(0,r.useRef)(!1),k=(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"),_.current||(t.createMap(b.current),k(),_.current=!0)}),[k,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})]})})}},45094:(e,t,n)=>{"use strict";n.d(t,{d:()=>m});var r=n(64426),i=n(47361),o=n(30538),a=n(43331),s=n(94145),l=n(3104),c=n(69495),u=n(28187),d=n(62338),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:()=>h});var r=n(30538),i=n(94145),o=n(3104),a=n(22279),s=n(31726),l=n(69495),c=n(15247),u=n(60854),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,{})})}},33859:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(94145),i=n(3104),o=n(22279),a=n(28187),s=n(60854),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,{})})}},21343:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(94145),i=n(3104),o=n(22279),a=n(28187),s=n(31726),l=n(60854),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,{})})}},35971:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(94145),i=n(3104),o=n(22279),a=n(28187),s=n(60854),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,{})})}},89780:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(94145),i=n(3104),o=n(22279),a=n(28187),s=n(60854),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,{})})}},21350:(e,t,n)=>{"use strict";n.d(t,{v:()=>y});var r=n(70640),i=n(32814),o=n(64426),a=n(16221),s=n(79913);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,{S:()=>r});var r=function(e){return{navBarRef:{position:"absolute",right:e.spacing(5),display:"flex",flexDirection:"row",marginRight:0,zIndex:150,pointerEvents:"all",justifyContent:"center",backgroundColor:"transparent",transition:"bottom 300ms ease-in-out",bottom:"6rem"},navBtnGroupContainer:{display:"flex",position:"relative",flexDirection:"column",pointerEvents:"auto",justifyContent:"end",overflowY:"hidden",padding:5},navBtnGroup:{borderRadius:e.spacing(5),backgroundColor:e.palette.geoViewColor.bgColor.light[500],"&:not(:last-child)":{marginBottom:e.spacing(11)},"& .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]}}}}},69561:(e,t,n)=>{"use strict";n.d(t,{j:()=>m});var r=n(30538),i=n(43331),o=n(94145),a=n(35971),s=n(89780),l=n(93201),c=n(33859),u=n(21343),d=n(3104),h=n(22279),p=n(69495),f=n(60854),g=n(97282);function m(e){f.vF.logTraceRender("components/nav-bar/nav-bar");var t=e.api,n=(0,i.useTranslation)().t,m=(0,o.A)(),y=(0,h.S)(m),v=(0,r.useRef)(null),b=(0,p.m)();return(0,r.useEffect)((function(){f.vF.logTraceUseEffect("NAV-BAR - mount");var e=function(){return f.vF.logInfo("NavbarCreated")};return t.onNavbarCreated(e),function(){t.offNavbarCreated(e)}}),[t]),(0,g.jsx)(d.Box,{ref:v,sx:[y.navBarRef],children:(0,g.jsxs)(d.Box,{sx:y.navBtnGroupContainer,children:[(0,g.jsxs)(d.ButtonGroup,{orientation:"vertical","aria-label":n("mapnav.arianavbar"),variant:"contained",sx:y.navBtnGroup,children:[(0,g.jsx)(a.A,{}),(0,g.jsx)(s.A,{})]}),(0,g.jsxs)(d.ButtonGroup,{orientation:"vertical","aria-label":n("mapnav.arianavbar"),variant:"contained",sx:y.navBtnGroup,children:[b.includes("fullscreen")&&(0,g.jsx)(l.A,{}),b.includes("location")&&(0,g.jsx)(u.A,{}),b.includes("home")&&(0,g.jsx)(c.A,{})]})]})})}},46686:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(47361),i=n(30538),o=n(12311),a=n(46457),s=n(28187),l=n(60854);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}}},52315:(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"})]})}},94044:(e,t,n)=>{"use strict";n.d(t,{l:()=>f,g:()=>g});var r=n(30538),i=n(94145),o=n(3104),a=n(12311),s=n(52315),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(28187),u=n(46686),d=n(15247),h=n(60854),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,{})})}},12805:(e,t,n)=>{"use strict";n.d(t,{A:()=>x});var r=n(43994),i=n(47361),o=n(67970),a=n.n(o),s=n(59615),l=n.n(s),c=n(30538),u=n(43331),d=n(94145),h=n(26565),p=n(78283),f=n(3104),g=function(e){return{notificationPanel:{display:"flex",flexDirection:"column",width:"350px",maxHeight:"500px",overflowY:"hidden",gap:"8px",marginLeft:"15px",backgroundColor:e.palette.geoViewColor.bgColor.light[200],borderRadius:"5px",boxShadow:2,padding:"10px"},notificationsHeader:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",padding:"10px",borderBottom:"1px solid ".concat(e.palette.geoViewColor.bgColor.dark[300],"}")},notificationsTitle:{fontSize:e.palette.geoViewFontSize.default,fontWeight:"700",color:e.palette.geoViewColor.textColor.main},notificationsList:{overflowY:"auto",padding:"0px 0px 10px 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"}}},m=n(31726),y=n(15247),v=n(60854),b=n(28187),w=n(97282);function x(){v.vF.logTraceRender("components/notifications/notifications");var e=(0,u.useTranslation)().t,t=(0,d.A)(),n=g(t),o=(0,y.Jh)(),s=document.getElementById("shell-".concat(o)),x=(0,c.useState)(null),A=(0,i.A)(x,2),S=A[0],C=A[1],E=(0,c.useState)(!1),_=(0,i.A)(E,2),k=_[0],T=_[1],O=(0,c.useState)(0),P=(0,i.A)(O,2),I=P[0],M=P[1],L=(0,c.useState)(!1),R=(0,i.A)(L,2),j=R[0],F=R[1],D=(0,m.v9)(),N=(0,b.GT)(),z=(0,m.dD)(),V=z.removeNotification,B=z.removeAllNotifications;(0,c.useEffect)((function(){v.vF.logTraceUseEffect("Notifications - notifications list changed",I,D);var e=a()(D,(function(e){return e.count}));e>I&&T(!0),M(e)}),[D,I]),(0,c.useEffect)((function(){if(v.vF.logTraceUseEffect("Notifications - hasNewNotification change",k),k){var e=setTimeout((function(){return T(!1)}),1e3);return function(){return clearTimeout(e)}}}),[k,I]);var $,G=function(){j&&F(!1)},U=(0,p.zh)({from:{x:0,scale:1},to:($=(0,r.A)(l().mark((function e(t){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t({x:2});case 2:return e.next=4,t({x:-2});case 4:return e.next=6,t({x:0});case 6:case"end":return e.stop()}}),e)}))),function(e){return $.apply(this,arguments)}),config:{duration:50},loop:!0}),W=(0,p.CS)(f.Box);function q(e){switch(e.notificationType){case"success":return(0,w.jsx)(f.CheckCircleIcon,{color:"success"});case"info":return(0,w.jsx)(f.InfoIcon,{color:"info"});case"warning":return(0,w.jsx)(f.WarningIcon,{color:"warning"});default:return(0,w.jsx)(f.ErrorIcon,{color:"error"})}}function H(e,r){return(0,w.jsxs)(f.Box,{sx:n.notificationItem,children:[(0,w.jsx)(f.Box,{children:q(e)}),(0,w.jsx)(f.Box,{sx:{flexGrow:1,fontSize:t.palette.geoViewFontSize.sm,color:t.palette.geoViewColor.textColor.light[250]},children:(0,w.jsx)(f.Box,{component:"span",children:e.message})}),e.count>1?(0,w.jsx)(f.Box,{children:(0,w.jsx)(f.Box,{sx:n.notificationsCount,children:e.count})}):null,(0,w.jsx)(f.IconButton,{onClick:function(){return function(e){V(e.key)}(e)},children:(0,w.jsx)(f.CloseIcon,{})})]},r)}return(0,w.jsx)(h.x,{mouseEvent:"onMouseDown",touchEvent:"onTouchStart",onClickAway:G,children:(0,w.jsxs)(f.Box,{children:[(0,w.jsx)(f.Badge,{badgeContent:I>99?"99+":I,color:"error",children:(0,w.jsxs)(f.IconButton,{id:"notification",tooltip:"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:[!k&&(0,w.jsx)(f.Box,{sx:{display:"inline-flex",alignItems:"center"},children:(0,w.jsx)(f.NotificationsIcon,{})}),k&&(0,w.jsx)(W,{sx:{display:"inline-flex",alignItems:"center"},style:U,children:(0,w.jsx)(f.NotificationsActiveIcon,{})})]})}),(0,w.jsx)(f.Popper,{open:j,anchorEl:S,placement:"right-end",onClose:G,container:s,children:(0,w.jsxs)(f.Paper,{sx:n.notificationPanel,children:[(0,w.jsxs)(f.Box,{sx:n.notificationsHeader,children:[(0,w.jsx)(f.Typography,{component:"h3",sx:n.notificationsTitle,children:e("appbar.notifications")}),(0,w.jsx)(f.Button,{type:"text",variant:"contained",disabled:0===D.length,size:"small",onClick:function(){B()},children:e("appbar.removeAllNotifications")})]}),(0,w.jsx)(f.Box,{sx:n.notificationsList,children:D.length>0?D.map((function(e,t){return H(e,t)})):(0,w.jsx)(f.Typography,{component:"div",sx:{padding:"10px 15px"},children:e("appbar.no_notifications_available")})})]})})]})})}},62523:(e,t,n)=>{"use strict";n.d(t,{I:()=>d});var r=n(47361),i=n(30538),o=n(43331),a=n(3104),s=n(60854),l=n(66469),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,{})})})})}},67121:(e,t,n)=>{"use strict";n.d(t,{G:()=>D});var r=n(30538),i=n(17004),o=n(65868),a=n(43331),s=n(333),l=n(12791),c=n(64874),u=n(55731),d=n(41320),h=n(66143),p=n(67760),f=n(56035),g=n(1841),m=n(8584),y=n(36203),v=n(1970),b=n(99423),w=n(41218),x=n(24363),A=n(17567),S=n(31752);const C=.75,E=.1;class _ 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.getEventCoordinateInternal(t);g.setPosition(r)},w=function(e){const t=s.getEventCoordinateInternal(e);f.getMap().getView().setCenterInternal(t),window.removeEventListener("mousemove",v),window.removeEventListener("mouseup",w)};y.addEventListener("mousedown",(function(){window.addEventListener("mousemove",v),window.addEventListener("mouseup",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),t.isDef()&&(this.ovmap_.updateSize(),this.resetExtent_())),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_()}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.getCenterInternal(),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,(function(e){delete this.ovmapPostrenderKey_,this.updateBox_()}),this))}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 k=_;var T=n(3389),O=n(62523),P=n(15247),I=n(31726),M=n(28187),L=n(98030),R=n(60854),j=n(66469),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 k}))[0];e&&(u{"use strict";n.d(t,{F:()=>y});var r=n(64426),i=n(47361),o=n(30538),a=n(43331),s=n(94145),l=n(3104),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":{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(28187),d=n(69495),h=n(15247),p=n(60854),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%",height:"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"},"& *::-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"}}}}},51098:(e,t,n)=>{"use strict";n.d(t,{S:()=>m});var r=n(47361),i=n(30538),o=n(43331),a=n(94145),s=n(6467),l=n(3104),c=n(43975),u=n(80430),d=n(46457),h=n(31726),p=n(69495),f=n(60854),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,_=(0,p.A6)().setActiveTrapGeoView,k=(0,h.sd)(),T=k.querySelector('[id^="mapTargetElement-"]'),O=(0,i.useRef)(T);O.current=T;var P=(0,i.useRef)();function I(e){var t;t=e,O.current===document.activeElement&&"Space"===t.code&&t.preventDefault()}function M(){_(!1),k.classList.remove("map-focus-trap"),k.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)||(T.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),k.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=k.querySelector(".geoview-shell"),_(!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")})]})})}},43975:(e,t,n)=>{"use strict";n.d(t,{S:()=>d});var r=n(64426),i=n(31625),o=n(31082);o.domToReact,o.htmlToDOM,o.attributesToProps,o.Element;const a=o;var s=n(66469),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(64426),i=n(47361),o=n(30538),a=n(43331),s=n(94145),l=n(23799),c=n(55284),u=n(95811),d=n(69561),h=n(21793),p=n(6017),f=n(3104),g=n(80430),m=n(28187),y=n(31726),v=n(69495),b=n(28184),w=n(91140),x=n(39647),A=n(60854),S=n(74624),C=n(15560),E=n(97282);function _(){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)().closeModal,b=(0,v.NP)().activeElementId,_=(0,w.u1)(),k=(0,S.Xh)(),T=(0,C.bc)(k),O=(0,o.useMemo)((function(){return A.vF.logTraceUseMemo("DATA-TABLE-MODAL - layer",T,_),null==T?void 0:T.find((function(e){return e.layerPath===_}))}),[T,_]),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(){var e,t;A.vF.logTraceUseEffect("DATA-TABLE-MODAL - isLoading",g,_);var n=setTimeout((function(){m(!1)}),(null!==(e=null==O||null===(t=O.features)||void 0===t?void 0:t.length)&&void 0!==e?e:0)>100?1e3:0);return function(){return clearTimeout(n)}}),[g,_]),(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:_)}),(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.Table,{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 k=n(55587),T=n(10247);function O(){var e;A.vF.logTraceRender("components/details/feature-detail-modal");var t=(0,a.useTranslation)().t,n=(0,s.A)(),r=(0,k.S)(n),i=(0,v.A6)().closeModal,l=(0,v.NP)().activeElementId,c=(0,S.j3)(),u=(0,o.useMemo)((function(){var e;return A.vF.logTraceUseMemo("DETAILS PANEL - Feature Detail Modal - featureInfoList"),Object.keys(null!==(e=null==c?void 0:c.fieldInfo)&&void 0!==e?e:{}).map((function(e){return{fieldKey:c.fieldInfo[e].fieldKey,value:c.fieldInfo[e].value,dataType:c.fieldInfo[e].dataType,alias:c.fieldInfo[e].alias?c.fieldInfo[e].alias:e,domain:null}}))}),[c]);return(0,E.jsxs)(f.Dialog,{open:"featureDetailDataTable"===l&&!!c,onClose:i,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==c?void 0:c.nameField)&&void 0!==e?e:"",src:c.featureIcon.toDataURL().toString(),className:"layer-icon"}),(0,E.jsx)(f.Typography,{sx:{display:"inline-block"},component:"div",children:c.nameField})]}),(0,E.jsx)(f.List,{sx:r.featureDetailListContainer,children:(0,E.jsx)(T.P,{featureInfoList:u})})]}),(0,E.jsx)(f.DialogActions,{children:(0,E.jsx)(f.Button,{fullWidth:!0,variant:"contained",className:"buttonOutlineFilled",onClick:i,type:"text",size:"small",autoFocus:!0,children:t("general.close")})})]})}var P=n(15247),I=n(51098);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(71129);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(58643),l=n(31726),c=n(62e3),u=n(91140),d=n(28187),h=n(74624),p=n(21160),f=n(22374),g=n(47521),m=n(69495),y=n(60854),v=n(48660),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}))}},46910:(e,t,n)=>{"use strict";n.d(t,{Jh:()=>r.Jh,U6:()=>i.U6});var r=n(15247),i=(n(31726),n(74624),n(62e3),n(22374),n(91140),n(28187));n(21160),n(69495),n(58643)},31726:(e,t,n)=>{"use strict";n.d(t,{$g:()=>h,D4:()=>p,DR:()=>w,MF:()=>m,_V:()=>v,dD:()=>C,e_:()=>f,iO:()=>S,kv:()=>y,lk:()=>A,sd:()=>b,t:()=>g,v9:()=>x});var r=n(28249),i=n(64426),o=n(71129),a=n(92288),s=n(58643),l=n(60854),c=n(79913);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,{D5:()=>d,Mo:()=>c,Xh:()=>u,_M:()=>h,eQ:()=>g,j3:()=>f,x9:()=>p});var r=n(64426),i=n(71129),o=n(38890),a=n(58643);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(28249),i=n(64426),o=n(71129),a=n(58643);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(64426),i=n(71129),o=n(58643);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:()=>y,Uk:()=>b,Yo:()=>f,Zt:()=>p,tK:()=>h,u1:()=>g,wU:()=>v,y5:()=>m});var r=n(28249),i=n(64426),o=n(71129),a=n(58643),s=n(46457),l=n(98030),c=n(55950);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:()=>M,C0:()=>y,GT:()=>v,HA:()=>k,JQ:()=>C,KE:()=>_,Mk:()=>x,Nt:()=>w,Rs:()=>m,U6:()=>L,_I:()=>S,a7:()=>f,aM:()=>h,ej:()=>A,gx:()=>O,ht:()=>P,kI:()=>b,kg:()=>E,re:()=>p,uE:()=>T,wE:()=>I,yC:()=>g});var r=n(28249),i=n(64426),o=n(71129),a=n(58643),s=n(12311),l=n(98030),c=n(8259);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,rotation:n.map.viewSettings.rotation||0,zoom:null!==(i=n.map.viewSettings.initialView)&&void 0!==i&&i.zoomAndCenter?n.map.viewSettings.initialView.zoomAndCenter[0]:3.5})})},actions:{createBaseMapFromOptions:function(){return l.d.resetBasemap(t().mapId)},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)},reorderLayer:function(e,n){l.d.reorderLayer(t().mapId,e,n)},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})})},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})})},setMapMoveEnd:function(n,r,i,o,a){e({mapState:d(d({},t().mapState),{},{centerCoordinates:n,northArrowElement:{degreeRotation:i,isNorthVisible:o},scale:a})}),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.centerCoordinates}))},g=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.clickMarker}))},m=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.clickCoordinates}))},y=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.fixNorth}))},v=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.interaction}))},b=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.hoverFeatureInfo}))},w=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.mapLoaded}))},x=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.northArrow}))},A=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.northArrowElement}))},S=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.orderedLayerInfo}))},C=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.overviewMap}))},E=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.overviewMapHideZoom}))},_=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.pointerPosition}))},k=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.currentProjection}))},T=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.rotation}))},O=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.scale}))},P=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.size}))},I=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.visibleLayers}))},M=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.zoom}))},L=function(){return(0,o.Pj)((0,a.Ni)(),(function(e){return e.mapState.actions}))}},47521:(e,t,n)=>{"use strict";n.d(t,{eC:()=>c,lT:()=>u});var r=n(64426),i=n(71129),o=n(58643),a=n(35587);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:()=>d,ky:()=>u,mU:()=>c});var r=n(64426),i=n(71129),o=n(58643),a=n(6106);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:()=>b,NP:()=>c,OZ:()=>p,Oz:()=>l,PK:()=>v,XP:()=>h,bd:()=>d,dY:()=>m,ex:()=>f,g_:()=>u,m:()=>y,r4:()=>g});var r=n(64426),i=n(71129),o=n(58643);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,{dE:()=>I,Ic:()=>M,gU:()=>L,e4:()=>R,Ni:()=>j});var r=n(64426),i=n(30538),o=n(55756),a=n(71129),s=n(17004);var l=n(92288),c=n(77914),u=n(55950),d=n(98030),h=n(6106),p=n(80084),f=n(38890),g=n(35587),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(15247),E=n(68179),_=n(60854),k=n(79913);function T(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,k.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"]}},82810:(e,t,n)=>{"use strict";var r=n(65868),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","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"},"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","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"},"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(60854);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)}))},76262:(e,t,n)=>{"use strict";n.d(t,{KX:()=>i,NK:()=>o});var r=n(31625);n(58643);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}},23222:(e,t,n)=>{"use strict";n.d(t,{z:()=>w});var r=n(43994),i=n(70640),o=n(32814),a=n(59615),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,_).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,_).call(this),n()}}function _(){var e=function(){};d(v,this,new Promise((function(t){e=t}))),d(y,this,e)}},68709:(e,t,n)=>{"use strict";n.d(t,{O:()=>Y});var r=n(31625),i=n(70640),o=n(32814),a=n(58839),s=n.n(a),l=n(79950),c=n.n(l),u=n(27174),d=n(26029),h=n(12764),p=n(59128),f=n(10454),g=n(52375),m=n(78752),y=n(55373),v=n(12358),b=n(38509),w=n(71587),x=n(48660),A=n(76262),S=n(85813),C=n(21838),E=n(60854),_=n(79913);const k=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"},"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"],"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."},"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."},"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","minItems":1,"items":{"type":"string"},"description":"ID(s) of layer(s) to use as initial map focus."}}},"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)"}},"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}},"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."},"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"}},"required":["map"]}}}');var T,O=n(74490),P=n(91777),I=n(45380),M=n(22769),L=n(39225),R=n(97752),j=n(51397),F=n(16535),D=n(91195),N=n(27918),z=n(80995),V=n(5715),B=n(66372),$=n(69070);function G(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function U(e,t,n){return e.set(W(e,t),n),n}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 q=new WeakMap,H=new WeakSet,Y=function(){function e(){var t,n;(0,i.A)(this,e),G(t=this,n=H),n.add(t),function(e,t,n){G(e,t),t.set(e,n)}(this,q,void 0),U(q,this,(0,_.generateId)())}return(0,o.A)(e,[{key:"mapId",get:function(){return t=this,(e=q).get(W(e,t));var e,t},set:function(e){U(q,this,e)}},{key:"validateMapConfigAgainstSchema",value:function(t){var n=new(s())({strict:!1,allErrors:!1});n.compile(k);for(var r=!0,i=0;i{"use strict";n.d(t,{d:()=>m});var r=n(70640),i=n(32814),o=n(71149),a=n(66138),s=n(99979),l=n(38096),c=n(64426),u=n(85182);function d(e,t,n){return t=(0,s.A)(t),(0,o.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})()}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){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 g=new WeakMap,m=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,g,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:"getMetadata",value:function(){return t=this,(e=g).get(f(e,t));var e,t}},{key:"setMetadata",value:function(e){var t,n,r;n=this,r=e,(t=g).set(f(t,n),r)}},{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=(0,a.A)((0,s.A)(t.prototype),"onSerialize",this).call(this);return e.layerIdExtension=this.layerIdExtension,e.layerName=this.layerName,e.initialSettings=this.initialSettings,e}}])}(u.c)},85182:(e,t,n)=>{"use strict";n.d(t,{c:()=>y});var r,i=n(70640),o=n(32814),a=n(64426),s=n(16221),l=n(48660),c=n(60854);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{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}}},66372:(e,t,n)=>{"use strict";n.d(t,{x:()=>h});var r=n(32814),i=n(70640),o=n(71149),a=n(99979),s=n(38096),l=n(64426),c=n(48660);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.GROUP),(0,l.A)(n,"listOfLayerEntryConfig",[]),Object.assign(n,e),n}return(0,s.A)(t,e),(0,r.A)(t)}(n(85182).c)},80995:(e,t,n)=>{"use strict";n.d(t,{q:()=>f});var r=n(32814),i=n(70640),o=n(71149),a=n(99979),s=n(38096),l=n(64426),c=n(85813),u=n(48660);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(32814),i=n(70640),o=n(71149),a=n(99979),s=n(38096),l=n(64426),c=n(85813),u=n(48660);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(32814),i=n(70640),o=n(71149),a=n(99979),s=n(38096),l=n(64426),c=n(85813),u=n(48660);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(60133).d)},91195:(e,t,n)=>{"use strict";n.d(t,{Q:()=>g});var r=n(32814),i=n(70640),o=n(71149),a=n(99979),s=n(38096),l=n(64426),c=n(85813),u=n(48660),d=n(60133),h=n(79913);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)},22769:(e,t,n)=>{"use strict";n.d(t,{E:()=>d});var r=n(32814),i=n(70640),o=n(71149),a=n(99979),s=n(38096),l=n(64426);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(30177).q)},16535:(e,t,n)=>{"use strict";n.d(t,{m:()=>u});var r=n(32814),i=n(70640),o=n(71149),a=n(99979),s=n(38096);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(30177).q)},30177:(e,t,n)=>{"use strict";n.d(t,{q:()=>h});var r=n(32814),i=n(70640),o=n(71149),a=n(99979),s=n(38096),l=n(64426),c=n(48660);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(60133).d)},98208:(e,t,n)=>{"use strict";n.d(t,{T:()=>h});var r=n(32814),i=n(70640),o=n(71149),a=n(99979),s=n(38096),l=n(64426),c=n(48660);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(60133).d)},45380:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(32814),i=n(70640),o=n(71149),a=n(99979),s=n(38096),l=n(64426),c=n(98208),u=n(48660),d=n(12311);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)},97752:(e,t,n)=>{"use strict";n.d(t,{h:()=>h});var r=n(64426),i=n(32814),o=n(70640),a=n(71149),s=n(99979),l=n(38096);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(32814),i=n(70640),o=n(71149),a=n(99979),s=n(38096),l=n(98208),c=n(48660),u=n(12311);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)},51397:(e,t,n)=>{"use strict";n.d(t,{X:()=>p});var r=n(32814),i=n(70640),o=n(71149),a=n(99979),s=n(38096),l=n(98208),c=n(48660),u=n(12311);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)},91777:(e,t,n)=>{"use strict";n.d(t,{j:()=>f});var r=n(64426),i=n(32814),o=n(70640),a=n(71149),s=n(99979),l=n(38096),c=n(98208),u=n(12311);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(64426),i=n(32814),o=n(70640),a=n(71149),s=n(99979),l=n(38096),c=n(98208),u=n(12311);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:()=>u,Ax:()=>p,DF:()=>d,Dy:()=>r,Fz:()=>f,LK:()=>h,MK:()=>s,RI:()=>l,Tg:()=>a,Xl:()=>o,un:()=>i,vB:()=>g,xb:()=>c});var r="https://github.com/Canadian-Geospatial-Platform/geoview",i={url:"https://geo.ca/",text:"Geo.ca"},o=500,a=[90,-95],s=[100,100,100,100],l={NEW_INSTANCE:"newInstance",PROCESSING:"processing",LOADING:"loading",LOADED:"loaded",ERROR:"error"},c=["ArrowUp","ArrowRight","ArrowDown","ArrowLefts"],u=[].concat(c,["Space"]),d={LEGEND:"legend",DETAILS:"details",LAYERS:"layers",DATA_TABLE:"data-table",GUIDE:"guide",TIME_SLIDER:"time-slider",GEO_CHART:"geochart"},h={lessThanOrEqualTo:"<=",lessThan:"<",greaterThan:">",greaterThanOrEqualTo:">=",empty:"is null",notEmpty:"is not null",between:">",betweenInclusive:">=",equals:"=",notEquals:"<>"},p={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'"},f={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'"},g={APP_BAR:"appBar",FOOTER_BAR:"footerBar"}},34028:(e,t,n)=>{"use strict";n.d(t,{P:()=>E});var r=n(28249),i=n(31625),o=n(47361),a=n(70640),s=n(32814),l=n(78185),c=n.n(l),u=n(31770),d=n.n(u),h=n(75274),p=n.n(h),f=n(13246),g=n.n(f);n(20851),n(47658);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,_).call(this,t)}):n={type:"relative",range:m(e,this,k).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 _(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="Z"===r.slice(-1).toUpperCase(),l=this.extractDateFormat(r),u=s?"".concat(c()(r).utc(!1).format(l).slice(0,-6),"Z"):c()(r).utc(!1).format(l),d=s?"".concat(c()(i).utc(!1).format(l).slice(0,-6),"Z"):c()(i).utc(!1).format(l),h=c().duration(a).asMilliseconds(),p=c().duration(h),f=[],g=0;f.push(u);do{var m=c()(f[g]).add(p).utc(!1).format(l);s&&(m="".concat(m.slice(0,-6),"Z")),f.push(m),31536e6===h&&f[g].slice(4,10)!==f[g+1].slice(4,10)&&(m=c()(f[g]).add(c().duration({milliseconds:316224e5})).utc(!1).format(l),s&&(m="".concat(m.slice(0,-6),"Z")),f[g+1]=m),g++}while(c()(f[f.length-1]).isBefore(d));return f.push(d),f}function k(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)]}},60854:(e,t,n)=>{"use strict";n.d(t,{vF:()=>D});var r,i=n(70640),o=n(32814),a=n(64426),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,_=40,k=50,T=!!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(T){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.r(t),n.d(t,{addUiComponent:()=>A,createGuideObject:()=>F,createLocalizedString:()=>h,delay:()=>L,escapeRegExp:()=>R,exportPNG:()=>_,findPropertyNameByRegex:()=>k,generateId:()=>m,getLocalizedMessage:()=>f,getLocalizedValue:()=>p,getScriptAndAssetURL:()=>g,getXMLHttpRequest:()=>x,isImage:()=>T,isJsonString:()=>b,parseJSONConfig:()=>E,removeCommentsFromJSON:()=>C,replaceParams:()=>y,sanitizeHtmlContent:()=>S,setAlphaColor:()=>v,stringify:()=>O,whenThisThen:()=>M,whenThisThenThat:()=>I,xmlToJson:()=>w});var r=n(43994),i=n(59615),o=n.n(i),a=n(17004),s=n(65868),l=n(17309),c=n.n(l),u=n(76262),d=n(60854);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;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:()=>ue});var r=n(70640),i=n(32814),o=n(71149),a=n(66138),s=n(99979),l=n(38096),c=n(82449),u=n(22288),d=n(41320),h=n(20662),p=n(31997),f=n(49878),g=n(24438),m=n(1786),y=n(98962),v=n(67087),b=n(4180),w=n(1660),x=n(62767),A=n(80366),S=n(17567),C=n(44999),E=n(83605),_=n(92425),k=n(99565),T=n(41218),O=n(24356),P=n(25899),I=n(45800),M=n(34336),L=n(6819);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 z(e,t){const n=e.length;return t<0?e[t+n]:t>=n?e[t-n]:e[t]}function V(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=_.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:_.rT,this.geometryLayout_=e.geometryLayout?e.geometryLayout:"XY";let n=e.geometryFunction;if(!n){const e=this.mode_;if("Circle"===e)n=function(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=function(n,r,i){return 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:k.TS,this.freehandCondition_,e.freehand?this.freehandCondition_=k.Gk:this.freehandCondition_=e.freehandCondition?e.freehandCondition:k.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?k.Gk:e:k.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,T.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(z(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:()=>$});var r=n(70640),i=n(32814),o=n(71149),a=n(66138),s=n(99979),l=n(38096),c=n(22288),u=n(20662),d=n(98962),h=n(62767),p=n(80366),f=n(44999),g=n(83605),m=n(99565),y=n(41218),v=n(45800),b=n(25899),w=n(17567),x=n(34336);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:_(),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_=k(o(i)):null!==e?this.pointerHandler_=T(o([e,r[1]]),o([e,r[3]])):null!==t&&(this.pointerHandler_=T(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_=k(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 _(){const e=(0,b.mY)();return function(t,n){return e.Point}}function k(e){return function(t){return(0,y.boundingExtent)([e,t])}}function T(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(16221),I=n(62338),M=n(38902);function L(e,t,n){return t=(0,s.A)(t),(0,o.A)(e,R()?Reflect.construct(t,n||[],(0,s.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){F(e,t),t.set(e,n)}function F(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(N(e,t))}function N(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,B=new WeakSet,$=function(e){function t(e){var n,i,o;(0,r.A)(this,t),n=L(this,t,[e]),F(i=n,o=B),o.add(i),j(n,z,void 0),j(n,V,[]);var a,s,l,c={condition:m.Kg,boxStyle:(0,I.convertTypeFeatureStyleToOpenLayersStyle)(e.boxStyle),pixelTolerance:e.pixelTolerance||0};return a=z,s=n,l=new O(c),a.set(N(a,s),l),D(z,n).on("extentchanged",N(B,n,G).bind(n)),n}return(0,l.A)(t,e),(0,i.A)(t,[{key:"startInteraction",value:function(){(0,a.A)((0,s.A)(t.prototype),"startInteraction",this).call(this,D(z,this))}},{key:"stopInteraction",value:function(){(0,a.A)((0,s.A)(t.prototype),"stopInteraction",this).call(this,D(z,this))}},{key:"onExtentChanged",value:function(e){P.A.onEvent(D(V,this),e)}},{key:"offExtentChanged",value:function(e){P.A.offEvent(D(V,this),e)}}])}(M.N);function G(e){P.A.emitEvent(this,D(V,this),e)}},38902:(e,t,n)=>{"use strict";n.d(t,{N:()=>a});var r=n(70640),i=n(32814),o=n(64426),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)}}])}()},91424:(e,t,n)=>{"use strict";n.d(t,{B:()=>Q});var r=n(70640),i=n(32814),o=n(71149),a=n(66138),s=n(99979),l=n(38096),c=n(64874),u=n(75320),d=n(22288),h=n(41320),p=n(20662),f=n(98962),g=n(62767),m=n(80366),y=n(6013),v=n(10809),b=n(44999),w=n(83605),x=n(99565),A=n(41218),S=n(45800),C=n(25899),E=n(17217),_=n(17567),k=n(34336),T=n(94994);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,k.Tf)();if(s){const t=e.map.getView().getProjection();a=a.clone().transform(s,t),a=(0,_.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,k.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,k.SD)((0,A.createOrUpdateFromCoordinate)(r,O),i),n=t.getView().getResolution()*this.pixelTolerance_,o=(0,k.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,T.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,T.v6)(n.geometry)]=!0;for(let t=1,n=a.length;t=0;--a)i=e[a],d=i[0],h=(0,T.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,k.Tf)();t&&(i=i.clone().transform(t,n));const r=(0,S.hG)(i.getCenter(),(0,k.Ad)(e,n)),o=Math.sqrt(r)-i.getRadius();return o*o}}const i=(0,k.Ad)(e,n);return P[0]=(0,k.Ad)(t.segment[0],n),P[1]=(0,k.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,k.Tf)();return i&&(t=t.clone().transform(i,n)),(0,k.te)(t.getClosestPoint((0,k.Ad)(e,n)),n)}const i=(0,k.Ad)(e,n);return P[0]=(0,k.Ad)(t.segment[0],n),P[1]=(0,k.Ad)(t.segment[1],n),(0,k.te)((0,S.sG)(i,P),n)}function N(){const e=(0,C.mY)();return function(t,n){return e.Point}}const z=R;var V=n(16221),B=n(62338),$=n(38902);function G(e,t,n){return t=(0,s.A)(t),(0,o.A)(e,U()?Reflect.construct(t,n||[],(0,s.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){q(e,t),t.set(e,n)}function q(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(Y(e,t))}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 K=new WeakMap,X=new WeakMap,Z=new WeakMap,J=new WeakSet,Q=function(e){function t(e){var n,i,o;(0,r.A)(this,t),n=G(this,t,[e]),q(i=n,o=J),o.add(i),W(n,K,void 0),W(n,X,[]),W(n,Z,[]);var a,s,l,c={style:(0,B.convertTypeFeatureStyleToOpenLayersStyle)(e.style)};if(e.features)c.features=e.features;else if(e.geometryGroupKey){var u,d=null===(u=n.mapViewer.layer.geometry)||void 0===u?void 0:u.createGeometryGroup(e.geometryGroupKey);c.source=null==d?void 0:d.vectorSource}return a=K,s=n,l=new z(c),a.set(Y(a,s),l),H(K,n).on("modifystart",Y(J,n,ee).bind(n)),H(K,n).on("modifyend",Y(J,n,te).bind(n)),n}return(0,l.A)(t,e),(0,i.A)(t,[{key:"startInteraction",value:function(){(0,a.A)((0,s.A)(t.prototype),"startInteraction",this).call(this,H(K,this))}},{key:"stopInteraction",value:function(){(0,a.A)((0,s.A)(t.prototype),"stopInteraction",this).call(this,H(K,this))}},{key:"onModifyStarted",value:function(e){V.A.onEvent(H(X,this),e)}},{key:"offModifyStarted",value:function(e){V.A.offEvent(H(X,this),e)}},{key:"onModifyEnded",value:function(e){V.A.onEvent(H(Z,this),e)}},{key:"offModifyEnded",value:function(e){V.A.offEvent(H(Z,this),e)}}])}($.N);function ee(e){V.A.emitEvent(this,H(X,this),e)}function te(e){V.A.emitEvent(this,H(Z,this),e)}},48818:(e,t,n)=>{"use strict";n.d(t,{P:()=>j});var r=n(70640),i=n(32814),o=n(71149),a=n(66138),s=n(99979),l=n(38096),c=n(75320),u=n(41320),d=n(80366),h=n(6013),p=n(10809),f=n(92425),g=n(22288);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(41218),b=n(45800),w=n(17567),x=n(34336),A=n(94994),S=n(24363);function C(e){return e.feature?e.feature:e.element?e.element:null}const E=[];class _ 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:()=>j});var r=n(70640),i=n(32814),o=n(71149),a=n(66138),s=n(99979),l=n(38096),c=n(64874),u=n(22288),d=n(20662),h=n(49878),p=n(80366),f=n(92425),g=n(99565),m=n(34336);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(16221),C=n(38902);function E(e,t,n){return t=(0,s.A)(t),(0,o.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})()}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 O(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 I=new WeakMap,M=new WeakMap,L=new WeakMap,R=new WeakSet,j=function(e){function t(e){var n,i,o;(0,r.A)(this,t),n=E(this,t,[e]),T(i=n,o=R),o.add(i),k(n,I,void 0),k(n,M,[]),k(n,L,[]);var a,s,l,c={};return e.features&&(c.features=e.features),a=I,s=n,l=new A(c),a.set(P(a,s),l),O(I,n).on("translatestart",P(R,n,F).bind(n)),O(I,n).on("translateend",P(R,n,D).bind(n)),n}return(0,l.A)(t,e),(0,i.A)(t,[{key:"startInteraction",value:function(){(0,a.A)((0,s.A)(t.prototype),"startInteraction",this).call(this,O(I,this))}},{key:"stopInteraction",value:function(){(0,a.A)((0,s.A)(t.prototype),"stopInteraction",this).call(this,O(I,this))}},{key:"onTranslateStarted",value:function(e){S.A.onEvent(O(M,this),e)}},{key:"offTranslateStarted",value:function(e){S.A.offEvent(O(M,this),e)}},{key:"onTranslateEnded",value:function(e){S.A.onEvent(O(L,this),e)}},{key:"offTranslateEnded",value:function(e){S.A.offEvent(O(L,this),e)}}])}(C.N);function F(e){S.A.emitEvent(this,O(M,this),e)}function D(e){S.A.emitEvent(this,O(L,this),e)}},39534:(e,t,n)=>{"use strict";n.d(t,{i:()=>I});var r=n(43994),i=n(70640),o=n(32814),a=n(64426),s=n(59615),l=n.n(s),c=n(97493),u=n(9063);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,opaque:void 0===e.opaque||e.opaque,reprojectionErrorThreshold:e.reprojectionErrorThreshold,tileLoadFunction:e.tileLoadFunction,transition:e.transition,url:r,wrapX:e.wrapX,zDirection:e.zDirection})}}const h=d;var p,f=n(70861),g=n(12791),m=n(69070),y=n(76262),v=n(79913),b=n(12311),w=n(98030),x=n(92288),A=n(60854),S=n(16221);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=34;break}return k={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",k);case 34:return e.abrupt("return",void 0);case 35: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=k&&(o.push(n),P[t]=e)})),h=[(null==O||null===(S=O.origin)||void 0===S?void 0:S.x)||0,(null==O||null===(C=O.origin)||void 0===C?void 0:C.y)||0],a=P[_].level,s=P[k].level,d=[T.xmin,T.ymin,T.xmax,T.ymax],g=M.call(p,n.url),e.abrupt("return",{basemapId:t,type:t,url:n.url,jsonUrl:n.jsonUrl,source:new u.A({attributions:(0,v.getLocalizedMessage)("mapctrl.attribution.defaultnrcan",x.K.getDisplayLanguage(this.mapId)),projection:b.M.PROJECTIONS[g],url:n.url,crossOrigin:"Anonymous",tileGrid:new f.A({extent:d,origin:h,resolutions:o})}),opacity:r,origin:h,extent:d,resolutions:o,minScale:a,maxScale:s});case 26:e.next=31;break;case 28:return e.prev=28,e.t0=e.catch(8),e.abrupt("return",null);case 31:return e.abrupt("return",null);case 32:case"end":return e.stop()}}),e,this,[[8,28]])})))).apply(this,arguments)}function j(e){S.A.emitEvent(this,k(O,this),e)}p=I,(0,a.A)(I,"REQUEST_DELAY_MAX",3e3)},61970:(e,t,n)=>{"use strict";n.d(t,{Kz:()=>g,ns:()=>f});var r=n(32814),i=n(70640),o=n(71149),a=n(99979),s=n(38096),l=n(64426);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(31611).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)},48690:(e,t,n)=>{"use strict";n.d(t,{p:()=>M});var r=n(70640),i=n(32814),o=n(64426),a=n(44999),s=n(83605),l=n(20662),c=n(24438),u=n(17567),d=n(82449),h=n(62767),p=n(13645),f=n(22840),g=n(25899),m=n(39605),y=n(78862),v=n(16221),b=n(79913),w=n(12311),x=n(98030),A=n(60854);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:()=>he,FB:()=>ue,XY:()=>de,_B:()=>le,qt:()=>K,y6:()=>se});var r=n(43994),i=n(70640),o=n(32814),a=n(64426),s=n(59615),l=n.n(s),c=n(64874),u=n(44773),d=n(79913),h=n(76262),p=n(34028),f=n(60854),g=n(23222),m=n(60133),y=n(66372),v=n(16221),b=n(92288),w=n(55950),x=n(98030),A=n(48660),S=n(61970),C=n(12311),E=n(10011),_=n(85182),k=n(45564);function T(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={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"},L=new WeakMap,R=new WeakMap,j=new WeakMap,F=new WeakMap,D=new WeakMap,N=new WeakMap,z=new WeakMap,V=new WeakMap,B=new WeakMap,$=new WeakMap,G=new WeakMap,U=new WeakMap,W=new WeakMap,q=new WeakMap,H=new WeakMap,Y=new WeakSet,K=function(){return(0,o.A)((function e(t,n,r){var o,s,l,c,u,h;(0,i.A)(this,e),O(u=this,h=Y),h.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,d.createLocalizedString)("")),(0,a.A)(this,"metadataAccessPath",(0,d.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),T(this,L,{}),T(this,R,{}),T(this,j,{}),T(this,F,{}),T(this,D,[]),(0,a.A)(this,"serverDateFragmentsOrder",void 0),(0,a.A)(this,"externalFragmentsOrder",void 0),T(this,N,[]),T(this,z,[]),T(this,V,[]),T(this,B,[]),T(this,$,[]),T(this,G,[]),T(this,U,[]),T(this,W,[]),T(this,q,[]),T(this,H,[]),this.mapId=r,this.type=t,this.geoviewLayerId=n.geoviewLayerId||(0,d.generateId)(""),this.geoviewLayerName.en=null!=n&&null!==(o=n.geoviewLayerName)&&void 0!==o&&o.en?n.geoviewLayerName.en:M[t],this.geoviewLayerName.fr=null!=n&&null!==(s=n.geoviewLayerName)&&void 0!==s&&s.fr?n.geoviewLayerName.fr:M[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?p.P.getDateFragmentsOrder(n.serviceDateFormat):void 0,this.externalFragmentsOrder=p.P.getDateFragmentsOrder(n.externalDateFormat),I(Y,this,X).call(this,n,n.listOfLayerEntryConfig)}),[{key:"getMapViewer",value:function(){return x.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(L,this)[e]?P(L,this)[e]:null===(t=this.getLayerConfig(e))||void 0===t?void 0:t.layerName}},{key:"setLayerName",value:function(e,t){P(L,this)[e]=t,I(Y,this,ee).call(this,{layerPath:e,layerName:t})}},{key:"getStyle",value:function(e){return P(F,this)[e]}},{key:"setStyle",value:function(e,t){P(F,this)[e]=t,I(Y,this,oe).call(this,{style:t,layerPath:e})}},{key:"getAttributions",value:function(){return P(D,this)}},{key:"setAttributions",value:function(e){var t,n,r;n=this,r=e,(t=D).set(I(t,n),r)}},{key:"getLayerMetadata",value:function(e){return P(R,this)[e]}},{key:"setLayerMetadata",value:function(e,t){P(R,this)[e]=t}},{key:"getTemporalDimension",value:function(e){return P(j,this)[e]}},{key:"setTemporalDimension",value:function(e,t){P(j,this)[e]=t}},{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,A.KD)(n)?t+e.countErrorStatus(n.listOfLayerEntryConfig):"error"===n.layerStatus?t+1:t}),0)}},{key:"createGeoViewLayers",value:(ce=(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 f.vF.logTraceCore("ABSTRACT-GEOVIEW-LAYERS - createGeoViewLayers",this.listOfLayerEntryConfig),this.listOfLayerEntryConfig.length>0&&(t="".concat(this.mapId," | ").concat(this.listOfLayerEntryConfig[0].layerPath)),t&&f.vF.logMarkerStart(t),e.next=6,this.getAdditionalServiceDefinition();case 6:return t&&f.vF.logMarkerCheck(t,"to get additional service definition"),e.next=9,this.processListOfLayerEntryConfig(this.listOfLayerEntryConfig);case 9:this.olRootLayer=e.sent,t&&f.vF.logMarkerCheck(t,"to process list of layer entry config"),e.next=14;break;case 13:throw new S.Kz(this,this.mapId);case 14:case"end":return e.stop()}}),e,this)}))),function(){return ce.apply(this,arguments)})},{key:"getAdditionalServiceDefinition",value:(le=(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),f.vF.logError(e.t0);case 11:case"end":return e.stop()}}),e,this,[[0,8]])}))),function(){return le.apply(this,arguments)})},{key:"validateAndExtractLayerMetadata",value:(se=(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),f.vF.logError(e.t0);case 9:case"end":return e.stop()}}),e,this,[[0,6]])}))),function(){return se.apply(this,arguments)})},{key:"fetchServiceMetadata",value:(J=(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,d.getLocalizedValue)(this.metadataAccessPath,b.K.getDisplayLanguage(this.mapId)))){e.next=13;break}return e.prev=2,e.next=5,(0,d.getXMLHttpRequest)("".concat(t,"?f=json"));case 5:"{}"===(n=e.sent)?this.metadata=null:(this.metadata=(0,h.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),f.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 J.apply(this,arguments)})},{key:"processListOfLayerEntryMetadata",value:(K=(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 f.vF.logError("Layer at path ".concat(o.layerPath," is not queryable")),e.abrupt("return",null);case 6:f.vF.logTraceCore("ABSTRACT-GEOVIEW-LAYERS - getFeatureInfo",t,n),a="".concat(t," | ").concat(n),f.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([]),f.vF.logError("Queries using ".concat(t," are invalid."));case 26:return e.next=28,s;case 28:return c=e.sent,f.vF.logMarkerCheck(a,"to getFeatureInfo",c),e.abrupt("return",c);case 33:return e.prev=33,e.t1=e.catch(1),f.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 f.vF.logError("getAllFeatureInfo is not implemented! for ".concat(e)),Promise.resolve(null)}},{key:"getFeatureInfoAtPixel",value:function(e,t){return f.vF.logError("getFeatureInfoAtPixel is not implemented! for ".concat(t," - ").concat(e)),Promise.resolve(null)}},{key:"getFeatureInfoAtCoordinate",value:function(e,t){return f.vF.logError("getFeatureInfoAtCoordinate is not implemented! for ".concat(t," - ").concat(e)),Promise.resolve(null)}},{key:"getFeatureInfoAtLongLat",value:function(e,t){return f.vF.logError("getFeatureInfoAtLongLat is not implemented for ".concat(t," - ").concat(e,"!")),Promise.resolve(null)}},{key:"getFeatureInfoUsingBBox",value:function(e,t){return f.vF.logError("getFeatureInfoUsingBBox is not implemented! for ".concat(t," - ").concat(e)),Promise.resolve(null)}},{key:"getFeatureInfoUsingPolygon",value:function(e,t){return f.vF.logError("getFeatureInfoUsingPolygon is not implemented! for ".concat(t," - ").concat(e)),Promise.resolve(null)}},{key:"queryLegend",value:function(e){var t=this;I(Y,this,te).call(this,{layerPath:e});var n=this.getLegend(e);return n.then((function(n){n&&I(Y,t,ne).call(t,{layerPath:e,legend:n})})).catch((function(e){f.vF.logPromiseFailed("promiseLegend in queryLegend in AbstractGeoviewLayer",e)})),n}},{key:"createLayerGroup",value:function(e,t){var n,r,i={layers:new c.A,properties:{layerConfig:e}};void 0!==(null==t?void 0:t.extent)&&(i.extent=t.extent),void 0!==(null==t?void 0:t.maxZoom)&&(i.maxZoom=t.maxZoom),void 0!==(null==t?void 0:t.minZoom)&&(i.minZoom=t.minZoom),void 0!==(null==t||null===(n=t.states)||void 0===n?void 0:n.opacity)&&(i.opacity=t.states.opacity),void 0!==(null==t||null===(r=t.states)||void 0===r?void 0:r.visible)&&(i.visible=t.states.visible);var o=new u.A(i);return this.emitLayerCreation({config:e,layer:o}),o}},{key:"getMetadataBounds",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,r=function e(n){n.forEach((function(n){var r;(0,A.KD)(n)?e(n.listOfLayerEntryConfig):null!==(r=n.initialSettings)&&void 0!==r&&r.bounds&&(t=t?[Math.min(n.initialSettings.bounds[0],t[0]),Math.min(n.initialSettings.bounds[1],t[1]),Math.max(n.initialSettings.bounds[2],t[2]),Math.max(n.initialSettings.bounds[3],t[3])]:[n.initialSettings.bounds[0],n.initialSettings.bounds[1],n.initialSettings.bounds[2],n.initialSettings.bounds[3]])}))},i=e.includes("/")?this.getLayerConfig(e):this.listOfLayerEntryConfig;return i&&(Array.isArray(i)?r(i):r([i]),n&&t)?C.M.transformExtent(t,"EPSG:4326","EPSG:".concat(n)):t}},{key:"getFieldDomain",value:function(e,t){return f.vF.logWarning("getFieldDomain is not implemented for ".concat(e," - ").concat(t)),null}},{key:"getFieldType",value:function(e,t){return f.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),I(Y,this,ae).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&&I(Y,this,re).call(this,{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),f.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=p.P.getDateFragmentsOrder(p.P.deduceDateFormat(i))),r=p.P.applyInputDateFormat(i,this.serverDateFragmentsOrder)):r=p.P.convertToUTC("".concat(p.P.convertMilisecondsToDate(i),"Z"));return this.externalFragmentsOrder&&(r=p.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,h,p,m,y,v,x,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 g.z(1),h=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,T.queryLegend(n.layerPath);case 4:t=e.sent,(r=w.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,m=null==p||null===(o=p.fieldTypes)||void 0===o?void 0:o.split(","),y=null===(a=(0,d.getLocalizedValue)(null==p?void 0:p.outfields,b.K.getDisplayLanguage(this.mapId)))||void 0===a?void 0:a.split(","),v=null===(s=(0,d.getLocalizedValue)(null==p?void 0:p.aliasFields,b.K.getDisplayLanguage(this.mapId)))||void 0===s?void 0:s.split(","),x=[],t.forEach((function(e){x.push(new Promise((function(t){(0,E.$G)(e,T.getStyle(n.layerPath),n.filterEquation,n.legendFilterIsOff,h).then((function(n){t({feature:e,canvas:n})})).catch((function(e){f.vF.logPromiseFailed("getFeatureCanvas in featureNeedingItsCanvas loop in formatFeatureInfoResult in AbstractGeoViewLayer",e)}))})))})),A={},S={},C=0,_=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.type,extent:r,geometry:i,featureIcon:o,fieldInfo:{},nameField:(0,d.getLocalizedValue)(null==n||null===(t=n.source)||void 0===t||null===(t=t.featureInfo)||void 0===t?void 0:t.nameField,b.K.getDisplayLanguage(T.mapId))||null};i.getKeys().forEach((function(e){if("geometry"!==e){e in A||(A[e]=T.getFieldDomain(e,n));var t=A[e];e in S||(S[e]=T.getFieldType(e,n));var r=S[e];if(null!=y&&y.includes(e)){var o=y.indexOf(e);a.fieldInfo[e]={fieldKey:_++,value:T.getFieldValue(i,e,m[o]),dataType:m[o],alias:v[o],domain:t}}else y||(a.fieldInfo[e]={fieldKey:_++,value:T.getFieldValue(i,e,r),dataType:r,alias:e,domain:t})}})),k.push(a)})),e.abrupt("return",k);case 23:return e.prev=23,e.t0=e.catch(0),f.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",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:"setAllLayerStatusTo",value:function(e,t,n){var r=this;t.forEach((function(t){if((0,A.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 _.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,d.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(!k.A.LAYERS_HYBRID_MODE&&e.entryType!==A.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){I(Y,e,Q).call(e,t,n)})),t}},{key:"onLayerNameChanged",value:function(e){v.A.onEvent(P(N,this),e)}},{key:"offLayerNameChanged",value:function(e){v.A.offEvent(P(N,this),e)}},{key:"onLegendQuerying",value:function(e){v.A.onEvent(P(V,this),e)}},{key:"offLegendQuerying",value:function(e){v.A.offEvent(P(V,this),e)}},{key:"onLegendQueried",value:function(e){v.A.onEvent(P(B,this),e)}},{key:"offLegendQueried",value:function(e){v.A.offEvent(P(B,this),e)}},{key:"onVisibleChanged",value:function(e){v.A.onEvent(P($,this),e)}},{key:"offVisibleChanged",value:function(e){v.A.offEvent(P($,this),e)}},{key:"onLayerEntryProcessed",value:function(e){v.A.onEvent(P(G,this),e)}},{key:"offLayerEntryProcessed",value:function(e){v.A.offEvent(P(G,this),e)}},{key:"emitLayerRequesting",value:function(e){return v.A.emitEvent(this,P(U,this),e)}},{key:"onLayerRequesting",value:function(e){v.A.onEvent(P(U,this),e)}},{key:"offLayerRequesting",value:function(e){v.A.offEvent(P(U,this),e)}},{key:"emitLayerCreation",value:function(e){v.A.emitEvent(this,P(W,this),e)}},{key:"onLayerCreation",value:function(e){v.A.onEvent(P(W,this),e)}},{key:"offLayerCreation",value:function(e){v.A.offEvent(P(W,this),e)}},{key:"emitLayerFilterApplied",value:function(e){v.A.emitEvent(this,P(q,this),e)}},{key:"onLayerFilterApplied",value:function(e){v.A.onEvent(P(q,this),e)}},{key:"offLayerFilterApplied",value:function(e){v.A.offEvent(P(q,this),e)}},{key:"onLayerStyleChanged",value:function(e){v.A.onEvent(P(z,this),e)}},{key:"offLayerStyleChanged",value:function(e){v.A.offEvent(P(z,this),e)}},{key:"onLayerOpacityChanged",value:function(e){v.A.onEvent(P(H,this),e)}},{key:"offLayerOpacityChanged",value:function(e){v.A.offEvent(P(H,this),e)}}]);var e,t,n,s,y,K,J,se,le,ce}();function X(e,t){if(0!==t.length){if(1===t.length)this.listOfLayerEntryConfig=t;else{var n=new y.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 Z(e){return J.apply(this,arguments)}function J(){return(J=(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",I(Y,this,ie).call(this,{config:t}),e.abrupt("return",t);case 8:e.prev=8,e.t0=e.catch(0),f.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 Q(e,t){var n,r=this;e.push(t),null===(n=t.listOfLayerEntryConfig)||void 0===n||n.forEach((function(t){I(Y,r,Q).call(r,e,t)}))}function ee(e){v.A.emitEvent(this,P(N,this),e)}function te(e){v.A.emitEvent(this,P(V,this),e)}function ne(e){v.A.emitEvent(this,P(B,this),e)}function re(e){v.A.emitEvent(this,P($,this),e)}function ie(e){v.A.emitEvent(this,P(G,this),e)}function oe(e){v.A.emitEvent(this,P(z,this),e)}function ae(e){v.A.emitEvent(this,P(H,this),e)}(0,a.A)(K,"DEFAULT_HIT_TOLERANCE",4);var se={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"},le={CSV:"TypeVectorLayerEntryConfig",imageStatic:"TypeImageStaticLayerEntryConfig",esriDynamic:"TypeEsriDynamicLayerEntryConfig",esriFeature:"TypeVectorLayerEntryConfig",esriImage:"TypeEsriImageLayerEntryConfig",GeoJSON:"TypeVectorLayerEntryConfig",GeoPackage:"TypeVectorLayerEntryConfig",xyzTiles:"TypeTileLayerEntryConfig",vectorTiles:"TypeTileLayerEntryConfig",ogcFeature:"TypeVectorLayerEntryConfig",ogcWfs:"TypeVectorLayerEntryConfig",ogcWms:"TypeOgcWmsLayerEntryConfig"},ce=[se.CSV,se.GEOJSON,se.ESRI_DYNAMIC,se.ESRI_FEATURE,se.ESRI_IMAGE,se.OGC_FEATURE,se.WFS,se.GEOPACKAGE],ue=function(e){return ce.includes(null==e?void 0:e.type)},de=function(e){return(null==e?void 0:e.type)===se.WMS},he=function(e){return(null==e?void 0:e.type)===se.IMAGE_STATIC}},80104:(e,t,n)=>{"use strict";n.d(t,{$A:()=>L,KS:()=>P,Nf:()=>j,RW:()=>M,Sh:()=>O,YX:()=>I,gm:()=>R,mF:()=>k});var r=n(64426),i=n(43994),o=n(59615),a=n.n(o),s=n(97493),l=n(80363),c=n.n(l),u=n(98030),d=n(76262),h=n(79913),p=n(12311),f=n(34028),g=n(60854),m=n(97752),y=n(80995),v=n(66372),b=n(48660),w=n(85813),x=n(10454),A=n(52375),S=n(49848),C=n(92288);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 _(e){for(var t=1;t{"use strict";n.d(t,{A:()=>p});var r=n(70640),i=n(32814),o=n(71149),a=n(66138),s=n(99979),l=n(38096),c=n(85813),u=n(12311);function d(e,t,n){return t=(0,s.A)(t),(0,o.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,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;return(null===(n=(0,a.A)((0,s.A)(t.prototype),"getOLLayer",this).call(this,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)},10454:(e,t,n)=>{"use strict";n.d(t,{IU:()=>F,xM:()=>D,zt:()=>z});var r=n(28249),i=n(47361),o=n(43994),a=n(70640),s=n(32814),l=n(71149),c=n(66138),u=n(99979),d=n(38096),h=n(64426),p=n(59615),f=n.n(p),g=n(76352),m=n(28596),y=n(987),v=n(20662),b=n(48690),w=n(79913),x=n(85813),A=n(86203),S=n(12311),C=n(60854),E=n(34028),_=n(80995),k=n(48660),T=n(80104),O=n(92288);function P(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 I(e){for(var t=1;t0&&(l=s[0]),l||(b={source:a,properties:{layerConfig:n}},void 0!==(null===(d=n.initialSettings)||void 0===d?void 0:d.className)&&(b.className=n.initialSettings.className),void 0!==(null===(h=n.initialSettings)||void 0===h?void 0:h.extent)&&(b.extent=n.initialSettings.extent),void 0!==(null===(p=n.initialSettings)||void 0===p?void 0:p.maxZoom)&&(b.maxZoom=n.initialSettings.maxZoom),void 0!==(null===(y=n.initialSettings)||void 0===y?void 0:y.minZoom)&&(b.minZoom=n.initialSettings.minZoom),void 0!==(null===(v=n.initialSettings)||void 0===v||null===(v=v.states)||void 0===v?void 0:v.opacity)&&(b.opacity=n.initialSettings.states.opacity),l=new m.A(b),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 p.apply(this,arguments)})},{key:"getAllFeatureInfo",value:(l=(0,o.A)(f().mark((function e(t){var n,r,o,a,s,l,c,u,d;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n=this.getLayerConfig(t),r=n.getTypeGeometries(),o=(0,i.A)(r,1),a=o[0],(s=n.geoviewLayerConfig.metadataAccessPath[O.K.getDisplayLanguage(this.mapId)]).endsWith("/")||(s+="/"),l="".concat(s).concat(n.layerId,"/query?where=1=1&outFields=*&f=json&returnGeometry=false"),e.next=8,fetch(l);case 8:return c=e.sent,e.next=11,c.json();case 11:if(!(u=e.sent).features){e.next=15;break}return d=u.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(a,n)}var r=e.attributes;return new v.A(I(I({},r),{},{geometry:t}))})),e.abrupt("return",this.formatFeatureInfoResult(d,n));case 15:throw new Error("Error querying service. No features were returned.");case 18:return e.prev=18,e.t0=e.catch(0),C.vF.logError("esri-dynamic.getAllFeatureInfo()\n",e.t0),e.abrupt("return",null);case 22:case"end":return e.stop()}}),e,this,[[0,18]])}))),function(e){return l.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:(n=(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;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,O.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.convertExtentMapProjToLngLat(l.getView().calculateExtent()),u={xmin:c[0],ymin:c[1],xmax:c[2],ymax:c[3]},d=a.getSource(),h=(null==d?void 0:d.getParams().layerDefs)||"",p=l.map.getSize(),s="".concat(s,"identify?f=json&tolerance=").concat(this.hitTolerance)+"&mapExtent=".concat(u.xmin,",").concat(u.ymin,",").concat(u.xmax,",").concat(u.ymax)+"&imageDisplay=".concat(p[0],",").concat(p[1],",96")+"&layers=visible:".concat(o.layerId)+"&layerDefs=".concat(h)+"&returnFieldName=true&sr=4326&returnGeometry=true"+"&geometryType=esriGeometryPoint&geometry=".concat(t[0],",").concat(t[1]),e.next=20,fetch(s);case 20:return g=e.sent,e.next=23,g.json();case 23:if(!(m=e.sent).error){e.next=27;break}throw C.vF.logInfo("There is a problem with this query: ",s),new Error("Error code = ".concat(m.error.code," ").concat(m.error.message)||0);case 27:return v=(new y.A).readFeatures({features:m.results},{dataProjection:S.M.PROJECTION_NAMES.LNGLAT,featureProjection:l.getProjection().getCode()}),e.next=30,this.formatFeatureInfoResult(v,o);case 30:return b=e.sent,e.abrupt("return",b);case 34:return e.prev=34,e.t0=e.catch(0),C.vF.logError("esri-dynamic.getFeatureInfoAtLongLat()\n",e.t0),e.abrupt("return",null);case 38:case"end":return e.stop()}}),e,this,[[0,34]])}))),function(e,t){return n.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,k.IG)(e)?e.uniqueValueStyleInfo:e.classBreakStyleInfo,n=0;n= ").concat(j(N,this,G).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(j(N,this,G).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(j(N,this,G).call(this,a.field,a.classBreakStyleInfo[p].minValue,n.source.featureInfo))),p+1===a.classBreakStyleInfo.length&&d.push("".concat(a.field," <= ").concat(j(N,this,G).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(j(N,this,G).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(j(N,this,G).call(this,a.field,a.classBreakStyleInfo[p-1].maxValue,n.source.featureInfo))):p+1===a.classBreakStyleInfo.length&&d.push("".concat(a.field," <= ").concat(j(N,this,G).call(this,a.field,a.classBreakStyleInfo[p].maxValue,n.source.featureInfo))):!1!==a.classBreakStyleInfo[p].visible?(d.push("".concat(a.field," > ").concat(j(N,this,G).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(j(N,this,G).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){(0,c.A)((0,u.A)(t.prototype),"onLoaded",this).call(this,e),this.applyViewFilter(e.layerPath,e.layerFilter||"")}},{key:"applyViewFilter",value:function(e,t){var n=this,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];C.vF.logTraceCore("ESRI-DYNAMIC - applyViewFilter",e);var o=this.getLayerConfig(e),a=this.getOLLayer(e),s=t.replaceAll(/\s{2,}/g," ").trim();o.legendFilterIsOff=!i,o.layerFilter=s,i&&(s=this.getViewFilter(e));var l=(0,r.A)(s.matchAll(/(?<=^date\b\s')[\d/\-T\s:+Z]{4,25}(?=')|(?<=[(\s]date\b\s')[\d/\-T\s:+Z]{4,25}(?=')/gi));l.reverse(),l.forEach((function(e){var t=![20,25].includes(e[0].length),r=E.P.applyInputDateFormat(e[0],n.externalFragmentsOrder,t);r=(r=r.slice(0,20===r.length?-1:-6)).replace("T"," "),s="".concat(s.slice(0,e.index)).concat(r).concat(s.slice(e.index+e[0].length))})),null==a||a.getSource().updateParams({layerDefs:'{"'.concat(o.layerId,'": "').concat(s,'"}')}),null==a||a.changed(),this.emitLayerFilterApplied({layerPath:e,filter:s})}},{key:"getBounds",value:function(e){var t,n=this.getMetadataExtent();if(n){var r=this.getMetadataProjection();t=this.getMapViewer().convertExtentFromProjToMapProj(n,r)}return t}}]);var n,l,p}(A.A);function V(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 B(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:()=>P,sV:()=>O,yl:()=>T});var r=n(64426),i=n(28249),o=n(43994),a=n(70640),s=n(32814),l=n(71149),c=n(66138),u=n(99979),d=n(38096),h=n(59615),p=n.n(h),f=n(76352),g=n(28596),m=n(79913),y=n(34028),v=n(60854),b=n(5715),w=n(85813),x=n(86203),A=n(48660),S=n(80104),C=n(92288),E=n(10011);function _(e,t,n){return t=(0,u.A)(t),(0,l.A)(e,k()?Reflect.construct(t,n||[],(0,u.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})()}var T=function(e){return(null==e?void 0:e.geoviewLayerType)===w.y6.ESRI_IMAGE},O=function(e){var t;return(null==e||null===(t=e.geoviewLayerConfig)||void 0===t?void 0:t.geoviewLayerType)===w.y6.ESRI_IMAGE},P=function(e){function t(e,n){return(0,a.A)(this,t),n.serviceDateFormat||(n.serviceDateFormat="DD/MM/YYYY HH:MM:SSZ"),_(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=pjson"),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,E.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,d,h,y,v;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,c.A)((0,u.A)(t.prototype),"processOneLayerEntry",this).call(this,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||(v={source:i,properties:{layerConfig:n}},void 0!==(null===(s=n.initialSettings)||void 0===s?void 0:s.className)&&(v.className=n.initialSettings.className),void 0!==(null===(l=n.initialSettings)||void 0===l?void 0:l.extent)&&(v.extent=n.initialSettings.extent),void 0!==(null===(d=n.initialSettings)||void 0===d?void 0:d.maxZoom)&&(v.maxZoom=n.initialSettings.maxZoom),void 0!==(null===(h=n.initialSettings)||void 0===h?void 0:h.minZoom)&&(v.minZoom=n.initialSettings.minZoom),void 0!==(null===(y=n.initialSettings)||void 0===y||null===(y=y.states)||void 0===y?void 0:y.opacity)&&(v.opacity=n.initialSettings.states.opacity),a=new g.A(v),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){(0,c.A)((0,u.A)(t.prototype),"onLoaded",this).call(this,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)}return t}}]);var n,l}(x.A)},26029:(e,t,n)=>{"use strict";n.d(t,{HO:()=>T,Qn:()=>O,S6:()=>I});var r=n(43994),i=n(70640),o=n(32814),a=n(71149),s=n(66138),l=n(99979),c=n(38096),u=n(59615),d=n.n(u),h=n(97493),p=n(31421),f=n(28596),g=n(76262),m=n(85813),y=n(86203),v=n(48660),b=n(79913),w=n(60854),x=n(27918),A=n(92288),S=n(10011);function C(e,t,n){return t=(0,l.A)(t),(0,a.A)(e,E()?Reflect.construct(t,n||[],(0,l.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 _(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 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 T=function(e){return(null==e?void 0:e.geoviewLayerType)===m.y6.IMAGE_STATIC},O=function(e){var t;return(null==e||null===(t=e.geoviewLayerConfig)||void 0===t?void 0:t.geoviewLayerType)===m.y6.IMAGE_STATIC},P=new WeakSet,I=function(e){function t(e,n){var r;return(0,i.A)(this,t),_(r=C(this,t,[m.y6.IMAGE_STATIC,n,e]),P),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,k(P,this,M).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,c,u,h,g,m,y,v,w;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,s.A)((0,l.A)(t.prototype),"processOneLayerEntry",this).call(this,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 c=new p.A(a),(u=this.emitLayerRequesting({config:n,source:c})).length>0&&(h=u[0]),h||(w={source:c},void 0!==(null===(g=n.initialSettings)||void 0===g?void 0:g.extent)&&(w.extent=n.initialSettings.extent),void 0!==(null===(m=n.initialSettings)||void 0===m?void 0:m.maxZoom)&&(w.maxZoom=n.initialSettings.maxZoom),void 0!==(null===(y=n.initialSettings)||void 0===y?void 0:y.minZoom)&&(w.minZoom=n.initialSettings.minZoom),void 0!==(null===(v=n.initialSettings)||void 0===v||null===(v=v.states)||void 0===v?void 0:v.opacity)&&(w.opacity=n.initialSettings.states.opacity),h=new f.A(w),this.setLayerAndLoadEndListeners(n,h,"image")),this.emitLayerCreation({config:n,layer:h}),e.abrupt("return",Promise.resolve(h));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 M(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)}))}},59128:(e,t,n)=>{"use strict";n.d(t,{RZ:()=>Lo,Pg:()=>Mo,c9:()=>Io});var r=n(64426),i=n(43994),o=n(70640),a=n(32814),s=n(71149),l=n(66138),c=n(99979),u=n(38096),d=n(59615),h=n.n(d),p=n(36203),f=n(36116),g=n(73846),m=n(70861),y=n(47616),v=n(13645),b=n(39605),w=n(82607),x=n(22840),A=n(25899),S=n(28371),C=n(92425),E=n(63221),_=n(66749),k=n(51585),T=n(75601),O=n(94994),P=n(45917),I=n(28596),M=n(81571),L=(n(44773),n(42024)),R=n(24438),j=n(67087),F=n(4180),D=n(1660),N=n(60101),z=n(62767),V=n(17567),B=n(14641),$=n(34336),G=n(16897);class U extends L.Ay{constructor(e){super(),e=e||{},this.dataProjection=new B.A({code:"",units:"tile-pixels"}),this.featureClass_=e.featureClass?e.featureClass:w.Ay,this.geometryName_=e.geometryName,this.layerName_=e.layerName?e.layerName:"layer",this.layers_=e.layers?e.layers:null,this.idProperty_=e.idProperty,this.supportedMediaTypes=["application/vnd.mapbox-vector-tile","application/x-protobuf"]}readRawGeometry_(e,t,n,r){e.pos=t.geometry;const i=e.readVarint()+e.pos;let o=1,a=0,s=0,l=0,c=0,u=0;for(;e.pos>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_===w.Ay)i=new this.featureClass_(c,s,l,2,o,a),i.transform(n.dataProjection);else{let e;if("Polygon"==c){const t=(0,G.yJ)(s,l);e=t.length>1?new D.A(s,"XY",t):new V.Ay(s,"XY",l)}else e="Point"===c?new z.A(s,"XY"):"LineString"===c?new R.A(s,"XY"):"MultiPoint"===c?new F.A(s,"XY"):"MultiLineString"===c?new j.A(s,"XY",l):null;i=new(0,this.featureClass_),this.geometryName_&&i.setGeometryName(this.geometryName_);const t=(0,L.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,$.Jt)(t.dataProjection);r.setWorldExtent(t.extent),t.dataProjection=r;const i=new N(e),o=i.readFields(W,{}),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 H(e,t,n){if(1==e)t.id=n.readVarint();else if(2==e){const e=n.readVarint()+n.pos;for(;n.posthis._maxQueueLength;)this._queue.shift().callback(null,null)}_dispatch(){if(this._running||0===this._queue.length)return;const e=this._queue.shift();this._job=e;const t=e.inputs[0].width,n=e.inputs[0].height,r=e.inputs.map((function(e){return e.data.buffer})),i=this._workers.length;if(this._running=i,1===i)return void this._workers[0].postMessage({buffers:r,meta:e.meta,imageOps:this._imageOps,width:t,height:n},r);const o=e.inputs[0].data.length,a=4*Math.ceil(o/4/i);for(let o=0;o=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,$.Jt)("EPSG:4326"),n=this.getProjection();let r;if(void 0!==e.bounds){const i=(0,$.FO)(t,n);r=(0,le.applyTransform)(e.bounds,i)}const i=(0,Se.kZ)(n),o=e.minzoom||0,a=e.maxzoom||22,s=(0,Se.EN)({extent:i,maxZoom:a,minZoom:o,tileSize:this.tileSize_});if(this.tileGrid=s,this.tileUrlFunction=(0,T.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 Ee=Ce;var _e=n(44999),ke=n(83605),Te=n(32753),Oe=n(98949);function Pe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ie,Me={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 Le(e){return(e=Math.round(e))<0?0:e>255?255:e}function Re(e){return e<0?0:e>1?1:e}function je(e){return"%"===e[e.length-1]?Le(parseFloat(e)/100*255):Le(parseInt(e))}function Fe(e){return"%"===e[e.length-1]?Re(parseFloat(e)/100):Re(parseFloat(e))}function De(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{Ie={}.parseCSSColor=function(e){var t,n=e.replace(/ /g,"").toLowerCase();if(n in Me)return Me[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=Fe(a.pop());case"rgb":return 3!==a.length?null:[je(a[0]),je(a[1]),je(a[2]),s];case"hsla":if(4!==a.length)return null;s=Fe(a.pop());case"hsl":if(3!==a.length)return null;var l=(parseFloat(a[0])%360+360)%360/360,c=Fe(a[1]),u=Fe(a[2]),d=u<=.5?u*(c+1):u+c-u*c,h=2*u-d;return[Le(255*De(h,d,l+1/3)),Le(255*De(h,d,l)),Le(255*De(h,d,l-1/3)),s];default:return null}}return null}}catch(e){}class Ne{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 Ne)return e;if("string"!=typeof e)return;const t=Ie(e);return t?new Ne(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]}}Ne.black=new Ne(0,0,0,1),Ne.white=new Ne(1,1,1,1),Ne.transparent=new Ne(0,0,0,0),Ne.red=new Ne(1,0,0,1),Ne.blue=new Ne(0,0,1,1);var ze=Ne;function Ve(e){return"object"==typeof e?["literal",e]:e}function Be(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,Ve(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],Ye(e[1])]:[e[0],Ve(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 He(e,t){return e.type?e.type:t.expression.interpolated?"exponential":"interval"}function Ye(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 dt=[Qe,et,tt,nt,rt,st,it,ct(ot),lt];function ht(e,t){if("error"===t.kind)return null;if("array"===e.kind){if("array"===t.kind&&(0===t.N&&"value"===t.itemType.kind||!ht(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 dt)if(!ht(e,t))return null}return`Expected ${ut(e)} but found ${ut(t)} instead.`}function pt(e,t){return t.some((t=>t.kind===e.kind))}function ft(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 gt{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 mt{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 yt{constructor(e){this.sections=e}static fromString(e){return new yt([new mt(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 yt?e:yt.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 vt{constructor(e){this.name=e.name,this.available=e.available}toString(){return this.name}static fromString(e){return e?new vt({name:e,available:!1}):null}serialize(){return["image",this.name]}}function bt(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 wt(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 ze)return!0;if(e instanceof gt)return!0;if(e instanceof yt)return!0;if(e instanceof vt)return!0;if(Array.isArray(e)){for(const t of e)if(!wt(t))return!1;return!0}if("object"==typeof e){for(const t in e)if(!wt(e[t]))return!1;return!0}return!1}function xt(e){if(null===e)return Qe;if("string"==typeof e)return tt;if("boolean"==typeof e)return nt;if("number"==typeof e)return et;if(e instanceof ze)return rt;if(e instanceof gt)return at;if(e instanceof yt)return st;if(e instanceof vt)return lt;if(Array.isArray(e)){const t=e.length;let n;for(const t of e){const e=xt(t);if(n){if(n===e)continue;n=ot;break}n=e}return ct(n||ot,t)}return it}function At(e){const t=typeof e;return null===e?"":"string"===t||"number"===t||"boolean"===t?String(e):e instanceof ze||e instanceof yt||e instanceof vt?e.toString():JSON.stringify(e)}class St{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(!wt(e[1]))return t.error("invalid value");const n=e[1];let r=xt(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 St(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 ze?["rgba"].concat(this.value.toArray()):this.value instanceof yt?this.value.serialize():this.value}}var Ct=St;var Et=class{constructor(e){this.name="ExpressionEvaluationError",this.message=e}toJSON(){return this.message}};const _t={string:tt,number:et,boolean:nt,object:it};class kt{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 _t)||"object"===n)return t.error('The item type argument of "array" must be one of string, number, boolean',1);i=_t[n],r++}else i=ot;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=ct(i,o)}else n=_t[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 Tt=kt;class Ot{constructor(e){this.type=st,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,et),!e))return null;let n=null;if(o["text-font"]&&(n=t.parse(o["text-font"],1,ct(tt)),!n))return null;let a=null;if(o["text-color"]&&(a=t.parse(o["text-color"],1,rt),!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,ot);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 Ot(r)}evaluate(e){return new yt(this.sections.map((t=>{const n=t.content.evaluate(e);return xt(n)===lt?new mt("",n,null,null,null):new mt(At(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 Pt{constructor(e){this.type=lt,this.input=e}static parse(e,t){if(2!==e.length)return t.error("Expected two arguments.");const n=t.parse(e[1],1,tt);return n?new Pt(n):t.error("No image name provided.")}evaluate(e){const t=this.input.evaluate(e),n=vt.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 It={"to-boolean":nt,"to-color":rt,"to-number":et,"to-string":tt};class Mt{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=It[n],i=[];for(let n=1;n4?`Invalid rbga value ${JSON.stringify(t)}: expected an array containing either three or four numeric values.`:bt(t[0],t[1],t[2],t[3]),!n))return new ze(t[0]/255,t[1]/255,t[2]/255,t[3])}throw new Et(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 Et(`Could not convert ${JSON.stringify(t)} to number.`)}return"formatted"===this.type.kind?yt.fromString(At(this.args[0].evaluate(e))):"resolvedImage"===this.type.kind?vt.fromString(At(this.args[0].evaluate(e))):At(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 Ot([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if("resolvedImage"===this.type.kind)return new Pt(this.args[0]).serialize();const e=[`to-${this.type.kind}`];return this.eachChild((t=>{e.push(t.serialize())})),e}}var Lt=Mt;const Rt=["Unknown","Point","LineString","Polygon"];var jt=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?Rt[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]=ze.parse(e)),t}};class Ft{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=Ft.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 dn(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(ut).join(", ")})`:`(${ut(t.type)}...)`;var t})).join(" | "),r=[];for(let n=1;n=t[2])&&(!(e[1]<=t[1])&&!(e[3]>=t[3])))}function $t(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*zt),Math.round(r*o*zt)]}function Gt(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 Ut(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 Wt(e,t){for(let n=0;n0&&d<0||u<0&&d>0}function Ht(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]&&!(!qt(e,t,n,r)||!qt(n,r,e,t));var a,s}function Yt(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}Vt(t,e)}function en(e,t,n,r){const i=Math.pow(2,r.z)*zt,o=[r.x*zt,r.y*zt],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]];Qt(r,t,n,i),a.push(r)}return a}function tn(e,t,n,r){const i=Math.pow(2,r.z)*zt,o=[r.x*zt,r.y*zt],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]];Vt(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)Qt(r,t,n,i)}var s;return a}class nn{constructor(e,t){this.type=nt,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(wt(e[1])){const t=e[1];if("FeatureCollection"===t.type)for(let e=0;e{t&&!on(e)&&(t=!1)})),t}function an(e){if(e instanceof Dt&&"feature-state"===e.name)return!1;let t=!0;return e.eachChild((e=>{t&&!an(e)&&(t=!1)})),t}function sn(e,t){if(e instanceof Dt&&t.indexOf(e.name)>=0)return!1;let n=!0;return e.eachChild((e=>{n&&!sn(e,t)&&(n=!1)})),n}class ln{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 ln(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 cn=ln;class un{constructor(e,t=[],n,r=new Je,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 Tt(t,[e]):"coerce"===n?new Lt(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 Ct)&&"resolvedImage"!==r.type.kind&&hn(r)){const e=new jt;try{r=new Ct(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 un(this.registry,r,t||null,i,this.errors)}error(e,...t){const n=`${this.key}${t.map((e=>`[${e}]`)).join("")}`;this.errors.push(new Xe(n,e))}checkSubtype(e,t){const n=ht(e,t);return n&&this.error(n),n}}var dn=un;function hn(e){if(e instanceof cn)return hn(e.boundExpression);if(e instanceof Dt&&"error"===e.name)return!1;if(e instanceof Nt)return!1;if(e instanceof rn)return!1;const t=e instanceof Lt||e instanceof Tt;let n=!0;return e.eachChild((e=>{n=t?n&&hn(e):n&&e instanceof Ct})),!!n&&(on(e)&&sn(e,["zoom","heatmap-density","line-progress","sky-radial-progress","accumulated","is-supported-script","pitch","distance-from-center"]))}function pn(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 Et("Input is not a number.");a=s-1}return 0}class fn{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,et);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 fn(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[pn(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 gn=fn,mn=yn;function yn(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}yn.prototype.sampleCurveX=function(e){return((this.ax*e+this.bx)*e+this.cx)*e},yn.prototype.sampleCurveY=function(e){return((this.ay*e+this.by)*e+this.cy)*e},yn.prototype.sampleCurveDerivativeX=function(e){return(3*this.ax*e+2*this.bx)*e+this.cx},yn.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},yn.prototype.solve=function(e,t){return this.sampleCurveY(this.solveCurveX(e,t))};var vn=Pe(mn);function bn(e,t,n){return e*(1-n)+t*n}var wn=Object.freeze({__proto__:null,number:bn,color:function(e,t,n){return new ze(bn(e.r,t.r,n),bn(e.g,t.g,n),bn(e.b,t.b,n),bn(e.a,t.a,n))},array:function(e,t,n){return e.map(((e,r)=>bn(e,t[r],n)))}});const xn=.95047,An=1,Sn=1.08883,Cn=4/29,En=6/29,_n=3*En*En,kn=En*En*En,Tn=Math.PI/180,On=180/Math.PI;function Pn(e){return e>kn?Math.pow(e,1/3):e/_n+Cn}function In(e){return e>En?e*e*e:_n*(e-Cn)}function Mn(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Ln(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Rn(e){const t=Ln(e.r),n=Ln(e.g),r=Ln(e.b),i=Pn((.4124564*t+.3575761*n+.1804375*r)/xn),o=Pn((.2126729*t+.7151522*n+.072175*r)/An);return{l:116*o-16,a:500*(i-o),b:200*(o-Pn((.0193339*t+.119192*n+.9503041*r)/Sn)),alpha:e.a}}function jn(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=An*In(t),n=xn*In(n),r=Sn*In(r),new ze(Mn(3.2404542*n-1.5371385*t-.4985314*r),Mn(-.969266*n+1.8760108*t+.041556*r),Mn(.0556434*n-.2040259*t+1.0572252*r),e.alpha)}function Fn(e,t,n){const r=t-e;return e+n*(r>180||r<-180?r-360*Math.round(r/360):r)}const Dn={forward:Rn,reverse:jn,interpolate:function(e,t,n){return{l:bn(e.l,t.l,n),a:bn(e.a,t.a,n),b:bn(e.b,t.b,n),alpha:bn(e.alpha,t.alpha,n)}}},Nn={forward:function(e){const{l:t,a:n,b:r}=Rn(e),i=Math.atan2(r,n)*On;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*Tn,n=e.c;return jn({l:e.l,a:Math.cos(t)*n,b:Math.sin(t)*n,alpha:e.alpha})},interpolate:function(e,t,n){return{h:Fn(e.h,t.h,n),c:bn(e.c,t.c,n),l:bn(e.l,t.l,n),alpha:bn(e.alpha,t.alpha,n)}}};class zn{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=Vn(t,e.base,n,r);else if("linear"===e.name)i=Vn(t,1,n,r);else if("cubic-bezier"===e.name){const o=e.controlPoints;i=new vn(o[0],o[1],o[2],o[3]).solve(Vn(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,et),!i)return null;const a=[];let s=null;"interpolate-hcl"===n||"interpolate-lab"===n?s=rt: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 zn(s,n,r,i,a):t.error(`Type ${ut(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=pn(t,r),a=t[o],s=t[o+1],l=zn.interpolationFactor(this.interpolation,r,a,s),c=n[o].evaluate(e),u=n[o+1].evaluate(e);return"interpolate"===this.operator?wn[this.type.kind.toLowerCase()](c,u,l):"interpolate-hcl"===this.operator?Nn.reverse(Nn.interpolate(Nn.forward(c),Nn.forward(u),l)):Dn.reverse(Dn.interpolate(Dn.forward(c),Dn.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;eht(r,e.type)));return new $n(o?ot: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 vt&&!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 Gn=$n;class Un{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 Et(`Array index out of bounds: ${t} > ${n.length-1}.`);if(t!==Math.floor(t))throw new Et(`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 Hn=qn;class Yn{constructor(e,t){this.type=nt,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,ot),r=t.parse(e[2],2,ot);return n&&r?pt(n.type,[nt,tt,et,Qe,ot])?new Yn(n,r):t.error(`Expected first argument to be of type boolean, string, number or null, but found ${ut(n.type)} instead`):null}evaluate(e){const t=this.needle.evaluate(e),n=this.haystack.evaluate(e);if(null==n)return!1;if(!ft(t,["boolean","string","number","null"]))throw new Et(`Expected first argument to be of type boolean, string, number or null, but found ${ut(xt(t))} instead.`);if(!ft(n,["string","array"]))throw new Et(`Expected second argument to be of type array or string, but found ${ut(xt(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 Kn=Yn;class Xn{constructor(e,t,n){this.type=et,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,ot),r=t.parse(e[2],2,ot);if(!n||!r)return null;if(!pt(n.type,[nt,tt,et,Qe,ot]))return t.error(`Expected first argument to be of type boolean, string, number or null, but found ${ut(n.type)} instead`);if(4===e.length){const i=t.parse(e[3],3,et);return i?new Xn(n,r,i):null}return new Xn(n,r)}evaluate(e){const t=this.needle.evaluate(e),n=this.haystack.evaluate(e);if(!ft(t,["boolean","string","number","null"]))throw new Et(`Expected first argument to be of type boolean, string, number or null, but found ${ut(xt(t))} instead.`);if(!ft(n,["string","array"]))throw new Et(`Expected second argument to be of type array or string, but found ${ut(xt(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 Zn=Xn;class Jn{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,xt(e)))return null}else n=xt(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,ot);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 Jn(n,r,a,i,o,s):null}evaluate(e){const t=this.input.evaluate(e);return(xt(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 Qn=Jn;class er{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 tr=er;class nr{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,ot),r=t.parse(e[2],2,et);if(!n||!r)return null;if(!pt(n.type,[ct(ot),tt,ot]))return t.error(`Expected first argument to be of type array or string, but found ${ut(n.type)} instead`);if(4===e.length){const i=t.parse(e[3],3,et);return i?new nr(n.type,n,r,i):null}return new nr(n.type,n,r)}evaluate(e){const t=this.input.evaluate(e),n=this.beginIndex.evaluate(e);if(!ft(t,["string","array"]))throw new Et(`Expected first argument to be of type array or string, but found ${ut(xt(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 rr=nr;function ir(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 or(e,t,n,r){return 0===r.compare(t,n)}function ar(e,t,n){const r="=="!==e&&"!="!==e;return class i{constructor(e,t,n){this.type=nt,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,ot);if(!o)return null;if(!ir(n,o.type))return t.concat(1).error(`"${n}" comparisons are not supported for type '${ut(o.type)}'.`);let a=t.parse(e[2],2,ot);if(!a)return null;if(!ir(n,a.type))return t.concat(2).error(`"${n}" comparisons are not supported for type '${ut(a.type)}'.`);if(o.type.kind!==a.type.kind&&"value"!==o.type.kind&&"value"!==a.type.kind)return t.error(`Cannot compare types '${ut(o.type)}' and '${ut(a.type)}'.`);r&&("value"===o.type.kind&&"value"!==a.type.kind?o=new Tt(a.type,[o]):"value"!==o.type.kind&&"value"===a.type.kind&&(a=new Tt(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,at),!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=xt(o),n=xt(a);if(t.kind!==n.kind||"string"!==t.kind&&"number"!==t.kind)throw new Et(`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=xt(o),n=xt(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 sr=ar("==",(function(e,t,n){return t===n}),or),lr=ar("!=",(function(e,t,n){return t!==n}),(function(e,t,n,r){return!or(0,t,n,r)})),cr=ar("<",(function(e,t,n){return t",(function(e,t,n){return t>n}),(function(e,t,n,r){return r.compare(t,n)>0})),dr=ar("<=",(function(e,t,n){return t<=n}),(function(e,t,n,r){return r.compare(t,n)<=0})),hr=ar(">=",(function(e,t,n){return t>=n}),(function(e,t,n,r){return r.compare(t,n)>=0}));class pr{constructor(e,t,n,r,i,o){this.type=tt,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,et);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,tt),!i))return null;let o=null;if(r.currency&&(o=t.parse(r.currency,1,tt),!o))return null;let a=null;if(r.unit&&(a=t.parse(r.unit,1,tt),!a))return null;let s=null;if(r["min-fraction-digits"]&&(s=t.parse(r["min-fraction-digits"],1,et),!s))return null;let l=null;return r["max-fraction-digits"]&&(l=t.parse(r["max-fraction-digits"],1,et),!l)?null:new pr(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 fr{constructor(e){this.type=et,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 ${ut(n.type)} instead.`):new fr(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 Et(`Expected value to be of type string or array, but found ${ut(xt(t))} instead.`)}eachChild(e){e(this.input)}outputDefined(){return!1}serialize(){const e=["length"];return this.eachChild((t=>{e.push(t.serialize())})),e}}const gr={"==":sr,"!=":lr,">":ur,"<":cr,">=":hr,"<=":dr,array:Tt,at:Hn,boolean:Tt,case:tr,coalesce:Gn,collator:Nt,format:Ot,image:Pt,in:Kn,"index-of":Zn,interpolate:Bn,"interpolate-hcl":Bn,"interpolate-lab":Bn,length:fr,let:Wn,literal:Ct,match:Qn,number:Tt,"number-format":pr,object:Tt,slice:rr,step:gn,string:Tt,"to-boolean":Lt,"to-color":Lt,"to-number":Lt,"to-string":Lt,var:cn,within:rn};function mr(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=bt(t,n,r,o);if(a)throw new Et(a);return new ze(t/255*o,n/255*o,r/255*o,o)}function yr(e,t){return e in t}function vr(e,t){const n=t[e];return void 0===n?null:n}function br(e){return{type:e}}Dt.register(gr,{error:[{kind:"error"},[tt],(e,[t])=>{throw new Et(t.evaluate(e))}],typeof:[tt,[ot],(e,[t])=>ut(xt(t.evaluate(e)))],"to-rgba":[ct(et,4),[rt],(e,[t])=>t.evaluate(e).toArray()],rgb:[rt,[et,et,et],mr],rgba:[rt,[et,et,et,et],mr],has:{type:nt,overloads:[[[tt],(e,[t])=>yr(t.evaluate(e),e.properties())],[[tt,it],(e,[t,n])=>yr(t.evaluate(e),n.evaluate(e))]]},get:{type:ot,overloads:[[[tt],(e,[t])=>vr(t.evaluate(e),e.properties())],[[tt,it],(e,[t,n])=>vr(t.evaluate(e),n.evaluate(e))]]},"feature-state":[ot,[tt],(e,[t])=>vr(t.evaluate(e),e.featureState||{})],properties:[it,[],e=>e.properties()],"geometry-type":[tt,[],e=>e.geometryType()],id:[ot,[],e=>e.id()],zoom:[et,[],e=>e.globals.zoom],pitch:[et,[],e=>e.globals.pitch||0],"distance-from-center":[et,[],e=>e.distanceFromCenter()],"heatmap-density":[et,[],e=>e.globals.heatmapDensity||0],"line-progress":[et,[],e=>e.globals.lineProgress||0],"sky-radial-progress":[et,[],e=>e.globals.skyRadialProgress||0],accumulated:[ot,[],e=>void 0===e.globals.accumulated?null:e.globals.accumulated],"+":[et,br(et),(e,t)=>{let n=0;for(const r of t)n+=r.evaluate(e);return n}],"*":[et,br(et),(e,t)=>{let n=1;for(const r of t)n*=r.evaluate(e);return n}],"-":{type:et,overloads:[[[et,et],(e,[t,n])=>t.evaluate(e)-n.evaluate(e)],[[et],(e,[t])=>-t.evaluate(e)]]},"/":[et,[et,et],(e,[t,n])=>t.evaluate(e)/n.evaluate(e)],"%":[et,[et,et],(e,[t,n])=>t.evaluate(e)%n.evaluate(e)],ln2:[et,[],()=>Math.LN2],pi:[et,[],()=>Math.PI],e:[et,[],()=>Math.E],"^":[et,[et,et],(e,[t,n])=>Math.pow(t.evaluate(e),n.evaluate(e))],sqrt:[et,[et],(e,[t])=>Math.sqrt(t.evaluate(e))],log10:[et,[et],(e,[t])=>Math.log(t.evaluate(e))/Math.LN10],ln:[et,[et],(e,[t])=>Math.log(t.evaluate(e))],log2:[et,[et],(e,[t])=>Math.log(t.evaluate(e))/Math.LN2],sin:[et,[et],(e,[t])=>Math.sin(t.evaluate(e))],cos:[et,[et],(e,[t])=>Math.cos(t.evaluate(e))],tan:[et,[et],(e,[t])=>Math.tan(t.evaluate(e))],asin:[et,[et],(e,[t])=>Math.asin(t.evaluate(e))],acos:[et,[et],(e,[t])=>Math.acos(t.evaluate(e))],atan:[et,[et],(e,[t])=>Math.atan(t.evaluate(e))],min:[et,br(et),(e,t)=>Math.min(...t.map((t=>t.evaluate(e))))],max:[et,br(et),(e,t)=>Math.max(...t.map((t=>t.evaluate(e))))],abs:[et,[et],(e,[t])=>Math.abs(t.evaluate(e))],round:[et,[et],(e,[t])=>{const n=t.evaluate(e);return n<0?-Math.round(-n):Math.round(n)}],floor:[et,[et],(e,[t])=>Math.floor(t.evaluate(e))],ceil:[et,[et],(e,[t])=>Math.ceil(t.evaluate(e))],"filter-==":[nt,[tt,ot],(e,[t,n])=>e.properties()[t.value]===n.value],"filter-id-==":[nt,[ot],(e,[t])=>e.id()===t.value],"filter-type-==":[nt,[tt],(e,[t])=>e.geometryType()===t.value],"filter-<":[nt,[tt,ot],(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":[nt,[tt,ot],(e,[t,n])=>{const r=e.properties()[t.value],i=n.value;return typeof r==typeof i&&r>i}],"filter-id->":[nt,[ot],(e,[t])=>{const n=e.id(),r=t.value;return typeof n==typeof r&&n>r}],"filter-<=":[nt,[tt,ot],(e,[t,n])=>{const r=e.properties()[t.value],i=n.value;return typeof r==typeof i&&r<=i}],"filter-id-<=":[nt,[ot],(e,[t])=>{const n=e.id(),r=t.value;return typeof n==typeof r&&n<=r}],"filter->=":[nt,[tt,ot],(e,[t,n])=>{const r=e.properties()[t.value],i=n.value;return typeof r==typeof i&&r>=i}],"filter-id->=":[nt,[ot],(e,[t])=>{const n=e.id(),r=t.value;return typeof n==typeof r&&n>=r}],"filter-has":[nt,[ot],(e,[t])=>t.value in e.properties()],"filter-has-id":[nt,[],e=>null!==e.id()&&void 0!==e.id()],"filter-type-in":[nt,[ct(tt)],(e,[t])=>t.value.indexOf(e.geometryType())>=0],"filter-id-in":[nt,[ct(ot)],(e,[t])=>t.value.indexOf(e.id())>=0],"filter-in-small":[nt,[tt,ct(ot)],(e,[t,n])=>n.value.indexOf(e.properties()[t.value])>=0],"filter-in-large":[nt,[tt,ct(ot)],(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:nt,overloads:[[[nt,nt],(e,[t,n])=>t.evaluate(e)&&n.evaluate(e)],[br(nt),(e,t)=>{for(const n of t)if(!n.evaluate(e))return!1;return!0}]]},any:{type:nt,overloads:[[[nt,nt],(e,[t,n])=>t.evaluate(e)||n.evaluate(e)],[br(nt),(e,t)=>{for(const n of t)if(n.evaluate(e))return!0;return!1}]]},"!":[nt,[nt],(e,[t])=>!t.evaluate(e)],"is-supported-script":[nt,[tt],(e,[t])=>{const n=e.globals&&e.globals.isSupportedScript;return!n||n(t.evaluate(e))}],upcase:[tt,[tt],(e,[t])=>t.evaluate(e).toUpperCase()],downcase:[tt,[tt],(e,[t])=>t.evaluate(e).toLowerCase()],concat:[tt,br(ot),(e,t)=>t.map((t=>At(t.evaluate(e)))).join("")],"resolved-locale":[tt,[at],(e,[t])=>t.evaluate(e).resolvedLocale()]});var wr=gr;function xr(e){return{result:"success",value:e}}function Ar(e){return{result:"error",value:e}}function Sr(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}class Cr{constructor(e,t){this.expression=e,this._warningHistory={},this._evaluator=new jt,this._defaultValue=t?function(e){return"color"===e.type&&(Sr(e.default)||Array.isArray(e.default))?new ze(0,0,0,0):"color"===e.type?ze.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 Et(`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 Er(e,t){const n=new dn(wr,[],t?function(e){const t={color:rt,string:tt,number:et,enum:tt,boolean:nt,formatted:st,resolvedImage:lt};if("array"===e.type)return ct(t[e.value]||ot,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?xr(new Cr(r,t)):Ar(n.errors)}class _r{constructor(e,t){this.kind=e,this._styleExpression=t,this.isStateDependent="constant"!==e&&!an(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 kr{constructor(e,t,n,r){this.kind=e,this.zoomStops=n,this._styleExpression=t,this.isStateDependent="camera"!==e&&!an(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?Bn.interpolationFactor(this.interpolationType,e,t,n):0}}function Tr(e,t){if("error"===(e=Er(e,t)).result)return e;const n=e.value.expression,r=on(n);if(!r&&!function(e){return"data-driven"===e["property-type"]}(t))return Ar([new Xe("","data expressions not supported")]);const i=sn(n,["zoom","pitch","distance-from-center"]);if(!i&&!function(e){return!!e.expression&&e.expression.parameters.indexOf("zoom")>-1}(t))return Ar([new Xe("","zoom expressions not supported")]);const o=Or(n);if(!o&&!i)return Ar([new Xe("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(o instanceof Xe)return Ar([o]);if(o instanceof Bn&&!function(e){return!!e.expression&&e.expression.interpolated}(t))return Ar([new Xe("",'"interpolate" expressions cannot be used with this property')]);if(!o)return xr(new _r(r?"constant":"source",e.value));const a=o instanceof Bn?o.interpolation:void 0;return xr(new kr(r?"camera":"composite",e.value,o.labels,a))}function Or(e){let t=null;if(e instanceof Wn)t=Or(e.result);else if(e instanceof Gn){for(const n of e.args)if(t=Or(n),t)break}else(e instanceof gn||e instanceof Bn)&&e.input instanceof Dt&&"zoom"===e.input.name&&(t=e);return t instanceof Xe||e.eachChild((e=>{const n=Or(e);n instanceof Xe?t=n:!t&&n?t=new Xe("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):t&&n&&t!==n&&(t=new Xe("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))})),t}function Pr(e){if(Array.isArray(e))return e.map(Pr);if(e instanceof Object&&!(e instanceof Number||e instanceof String||e instanceof Boolean)){const t={};for(const n in e)t[n]=Pr(e[n]);return t}return function(e){return e instanceof Number||e instanceof String||e instanceof Boolean?e.valueOf():e}(e)}var Ir={$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 Mr(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(!Mr(t)&&"boolean"!=typeof t)return!1;return!0;default:return!0}}function Lr(e,t="fill"){if(null==e)return{filter:()=>!0,needGeometry:!1,needFeature:!1};Mr(e)||(e=Vr(e));const n=e;let r=!0;try{r=function(e){if(!Fr(e))return e;let t=Pr(e);return jr(t),t=Rr(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=Ir[`filter_${t}`],o=Er(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=Er(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=!on(e.value.expression)}return{filter:a,dynamicFilter:s||void 0,needGeometry:zr(r),needFeature:!!l}}function Rr(e){if(!Array.isArray(e))return e;const t=function(e){if(Dr.has(e[0]))for(let t=1;tRr(e)))}function jr(e){let t=!1;const n=[];if("case"===e[0]){for(let r=1;r",">=","<","<=","to-boolean"]);function Nr(e,t){return et?1:0}function zr(e){if(!Array.isArray(e))return!1;if("within"===e[0])return!0;for(let t=1;t"===t||"<="===t||">="===t?Br(e[1],e[2],t):"any"===t?(n=e.slice(1),["any"].concat(n.map(Vr))):"all"===t?["all"].concat(e.slice(1).map(Vr)):"none"===t?["all"].concat(e.slice(1).map(Vr).map(Ur)):"in"===t?$r(e[1],e.slice(2)):"!in"===t?Ur($r(e[1],e.slice(2))):"has"===t?Gr(e[1]):"!has"===t?Ur(Gr(e[1])):"within"!==t||e}function Br(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 $r(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(Nr)]]:["filter-in-small",e,["literal",t]]}}function Gr(e){switch(e){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",e]}}function Ur(e){return["!",e]}var Wr=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function qr(e,t){const n={};for(const t in e)"ref"!==t&&(n[t]=e[t]);return Wr.forEach((e=>{e in t&&(n[e]=t[e])})),n}function Hr(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:Yr[p],d.pop(),f&&p.startsWith(f)&&d.pop();break}}i||"number"!=typeof h||(a=h,i=!0);var g=d.join(Kr).replace("Klokantech Noto Sans","Noto Sans");-1!==g.indexOf(Kr)&&(g='"'+g+'"'),l.push(g)}r=Zr[e]=[s,a,l]}return r[0]+Kr+r[1]+Kr+t+"px"+(n?"/"+n:"")+Kr+r[2]}));const Qr="https://api.mapbox.com";function ei(e){const t="mapbox://";return 0!==e.indexOf(t)?"":e.slice(9)}function ti(e,t){const n=ei(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`${Qr}/styles/v1/${i}?&access_token=${t}`}function ni(e,t,n,r){const i=new URL(e,r),o=ei(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 ri={},ii={};let oi=0;function ai(e){return e.id||(e.id=oi++),e.id}function si(e,t){return ai(e)+"."+(0,O.v6)(t)}function li(e){let t=ri[e.id];return t||(t={},ri[ai(e)]=t),t}function ci(e){let t=ii[e.id];return t||(t={},ii[ai(e)]=t),t}function ui(e){return e*Math.PI/180}const di=function(){const e=[];for(let t=78271.51696402048;e.length<=24;t/=2)e.push(t);return e}();function hi(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 pi(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 gi[t],e.ok?e.json():Promise.reject(new Error("Error fetching source "+t))})).catch((function(e){return delete gi[t],Promise.reject(new Error("Error fetching source "+t))})))));return gi[t]=[i,o],o}function yi(e,t){if("string"!=typeof e)return Promise.resolve(e);if(!e.trim().startsWith("{"))return mi("Style",e=ti(e,t.accessToken),t);try{const t=JSON.parse(e);return Promise.resolve(t)}catch(e){return Promise.reject(e)}}const vi={};function bi(e,t,n={}){const r=[t,JSON.stringify(e)].toString();let i=vi[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,C.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(_.A.ERROR)))}))}));else{const t=e.getImage();(0,C.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(_.A.ERROR))):t.src=n}))}});const a=e.url;if(a&&!e.tiles){const r=ni(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=mi("Source",r,n,e).then((function(t){return t.tiles=t.tiles.map((function(r){return"tms"===t.scheme&&(r=r.replace("{y}","{-y}")),ni(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}")),ni(r,n.accessToken,n.accessTokenParam||"access_token",t||location.href)}))}),i=Promise.resolve({tileJson:Object.assign({},e),tileLoadFunction:o});vi[r]=i}return i}function wi(e,t,n,r){const i=[2*n*t.pixelRatio+t.width,2*n*t.pixelRatio+t.height],o=hi(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 xi(e,t,n){const r=Math.max(0,Math.min(1,(n-e)/(t-e)));return r*r*(3-2*r)}function Ai(e,t,n){const r=hi(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 Si=Array(256).join(" ");function Ci(e,t){if(t>=.05){let n="";const r=e.split("\n"),i=Si.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 Ei;function _i(){return Ei||(Ei=hi(1,1).getContext("2d")),Ei}function ki(e,t){return _i().measureText(e).width+(e.length-1)*t}const Ti={};function Oi(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=_i();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(ki(n,r)<.35*i){const i=e>0?ki(l[e-1],r):1/0,o=e.7*i&&ki(o,r)<.6*i){const a=n.split(" "),s=a.pop();ki(s,r)<.2*i&&(l[e]=a.join(" "),l[e+1]=s+" "+o),t-=1}}o=l.join("\n")}else o=e;o=Ci(o,r),Ti[i]=o}return o}const Pi=/font-family: ?([^;]*);/,Ii=/("|')/g;let Mi;function Li(e){if(!Mi){Mi={};const e=document.styleSheets;for(let t=0,n=e.length;t`${e.key}: ${e.message}`)).join(", "));return n.value},Ni={},zi={zoom:0};let Vi,Bi;function $i(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]||Ni)[n];const i=Ir[`${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 wr);if(!o&&Sr(r)&&(r=Be(r,i),o=!0),o){const e=Di(r,i);l[n]=e.evaluate.bind(e)}else"color"==i.type&&(r=ze.parse(r)),l[n]=function(){return r}}var c;return zi.zoom=r,l[n](zi,i,a)}function Gi(e,t,n,r,i){if(!$i(e,"layout",`${r}-allow-overlap`,t,n,i))return"declutter";return $i(e,"layout",`${r}-ignore-placement`,t,n,i)?"none":"obstacle"}function Ui(e,t,n,r,i){return i||console.warn("No filterCache provided to evaluateFilter()"),e in i||(i[e]=Lr(t).filter),zi.zoom=r,i[e](zi,n)}let Wi=!1;function qi(e,t){if(e){if(!Wi&&(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 Hi=/\{[^{}}]*\}/g;function Yi(e,t){return e.replace(Hi,(function(e){return t[e.slice(1,-1)]||""}))}let Ki=!1;const Xi={};function Zi(e,t,n,r=di,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(Xi[si(t,e)]=Array.from(arguments),o)if("undefined"!=typeof Image){const t=new Image;let n;(0,C.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=Hr(t.layers),h={},p=[],f={},g={},m=li(t),E=ci(t);let _;for(let e=0,r=d.length;e=j.maxzoom)continue;const z=j.filter;if(!z||Ui(F,z,I,_,E)){let r,d,C,E,F,z;L=j;const V=h.index;if(3==P&&("fill"==j.type||"fill-extrusion"==j.type))if(d=$i(j,"paint",j.type+"-opacity",_,I,m,M),j.type+"-pattern"in N){const e=$i(j,"paint",j.type+"-pattern",_,I,m,M);if(e){const t="string"==typeof e?Yi(e,p):e.toString();if(l&&i&&i[t]){++R,z=O[R],z&&z.getFill()&&!z.getStroke()&&!z.getText()||(z=new A.Ay({fill:new v.A}),O[R]=z),C=z.getFill(),z.setZIndex(V);const e=t+"."+d;let n=g[e];if(!n){const r=i[t],o=hi(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}C.setColor(n)}}}else r=qi($i(j,"paint",j.type+"-color",_,I,m,M),d),j.type+"-outline-color"in N&&(F=qi($i(j,"paint",j.type+"-outline-color",_,I,m,M),d)),F||(F=r),(r||F)&&(++R,z=O[R],(!z||r&&!z.getFill()||!r&&z.getFill()||F&&!z.getStroke()||!F&&z.getStroke()||z.getText())&&(z=new A.Ay({fill:r?new v.A:void 0,stroke:F?new x.A:void 0}),O[R]=z),r&&(C=z.getFill(),C.setColor(r)),F&&(E=z.getStroke(),E.setColor(F),E.setWidth(.5)),z.setZIndex(V));if(1!=P&&"line"==j.type){r="line-pattern"in N?void 0:qi($i(j,"paint","line-color",_,I,m,M),$i(j,"paint","line-opacity",_,I,m,M));const e=$i(j,"paint","line-width",_,I,m,M);r&&e>0&&(++R,z=O[R],z&&z.getStroke()&&!z.getFill()&&!z.getText()||(z=new A.Ay({stroke:new x.A}),O[R]=z),E=z.getStroke(),E.setLineCap($i(j,"layout","line-cap",_,I,m,M)),E.setLineJoin($i(j,"layout","line-join",_,I,m,M)),E.setMiterLimit($i(j,"layout","line-miter-limit",_,I,m,M)),E.setColor(r),E.setWidth(e),E.setLineDash(N["line-dasharray"]?$i(j,"paint","line-dasharray",_,I,m,M).map((function(t){return t*e})):null),z.setZIndex(V))}let B,$,G,U,W,q,H,Y,K,X=!1,Z=null,J=0;if((1==P||2==P)&&"icon-image"in D){const t=$i(j,"layout","icon-image",_,I,m,M);if(t){let r;B="string"==typeof t?Yi(t,p):t.toString();const a=s?s(e,B):void 0;if(l&&i&&i[B]||a){const e=$i(j,"layout","icon-rotation-alignment",_,I,m,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();Bi||(Vi=[NaN,NaN],Bi=new w.Ay("Point",Vi,[],2,{},void 0)),r=Bi,Vi[0]=n[0],Vi[1]=n[1];if("line"===$i(j,"layout","symbol-placement",_,I,m,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=$i(j,"layout","icon-size",_,I,m,M),n=void 0!==N["icon-color"]?$i(j,"paint","icon-color",_,I,m,M):null;if(!n||0!==n.a){const r=$i(j,"paint","icon-halo-color",_,I,m,M),o=$i(j,"paint","icon-halo-width",_,I,m,M);let s=`${B}.${t}.${o}.${r}`;if(null!==n&&(s+=`.${n}`),$=f[s],!$){const d=Gi(j,_,I,"icon",m);let h;"icon-offset"in D&&(h=$i(j,"layout","icon-offset",_,I,m,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 b.A(n)}else{const a=i[B];let s,f,g;o?a.sdf?(s=wi(Ai(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=wi(l,a,o,r):(a.sdf?(u||(u=Ai(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 b.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,z=O[R],z&&z.getImage()&&!z.getFill()&&!z.getStroke()||(z=new A.Ay,O[R]=z),z.setGeometry(r),$.setRotation(J+ui($i(j,"layout","icon-rotate",_,I,m,M))),$.setOpacity($i(j,"paint","icon-opacity",_,I,m,M)),$.setAnchor(Fi[$i(j,"layout","icon-anchor",_,I,m,M)]),z.setImage($),Z=z.getText(),z.setText(void 0),z.setZIndex(V),X=!0,G=!1)}else G=!0}}}if(1==P&&"circle"===j.type){++R,z=O[R],z&&z.getImage()&&!z.getFill()&&!z.getStroke()||(z=new A.Ay,O[R]=z);const e="circle-radius"in N?$i(j,"paint","circle-radius",_,I,m,M):5,t=qi($i(j,"paint","circle-stroke-color",_,I,m,M),$i(j,"paint","circle-stroke-opacity",_,I,m,M)),n=$i(j,"paint","circle-translate",_,I,m,M),r=qi($i(j,"paint","circle-color",_,I,m,M),$i(j,"paint","circle-opacity",_,I,m,M)),i=$i(j,"paint","circle-stroke-width",_,I,m,M),o=e+"."+t+"."+r+"."+i+"."+n[0]+"."+n[1];$=f[o],$||($=new y.A({radius:e,displacement:[n[0],-n[1]],stroke:t&&i>0?new x.A({width:i,color:t}):void 0,fill:r?new v.A({color:r}):void 0,declutterMode:"none"}),f[o]=$),z.setImage($),Z=z.getText(),z.setText(void 0),z.setGeometry(void 0),z.setZIndex(V),X=!0}if("text-field"in D){H=Math.round($i(j,"layout","text-size",_,I,m,M));const e=$i(j,"layout","text-font",_,I,m,M);q=$i(j,"layout","text-line-height",_,I,m,M),W=Jr(a?a(e,t.metadata?t.metadata["ol:webfonts"]:void 0):e,H,q),W.includes("sans-serif")||(W+=",sans-serif"),Y=$i(j,"layout","text-letter-spacing",_,I,m,M),K=$i(j,"layout","text-max-width",_,I,m,M);const n=$i(j,"layout","text-field",_,I,m,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=Jr(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=Oi(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(Ci(s,Y),o)}),[]):Yi(n,p).trim(),d=$i(j,"paint","text-opacity",_,I,m,M)}if(U&&d&&!G){X||(++R,z=O[R],z&&z.getText()&&!z.getFill()&&!z.getStroke()||(z=new A.Ay,O[R]=z),z.setImage(void 0),z.setGeometry(void 0));const e=Gi(j,_,I,"text",m);z.getText()||z.setText(Z),Z=z.getText(),(!Z||"getDeclutterMode"in Z&&Z.getDeclutterMode()!==e)&&(Z=new S.A({padding:[2,2,2,2],declutterMode:e}),z.setText(Z));const t=$i(j,"layout","text-transform",_,I,m,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?Ci(U,Y):Oi(U,W,K,Y);Z.setText(n),Z.setFont(W),Z.setRotation(ui($i(j,"layout","text-rotate",_,I,m,M)));const r=$i(j,"layout","text-anchor",_,I,m,M),i=X||1==P?"point":$i(j,"layout","symbol-placement",_,I,m,M);let o;if("line-center"===i?(Z.setPlacement("line"),o="center"):Z.setPlacement(i),"line"===i&&"function"==typeof Z.setRepeat){const e=$i(j,"layout","symbol-spacing",_,I,m,M);Z.setRepeat(2*e)}Z.setOverflow("point"===i);let a=$i(j,"paint","text-halo-width",_,I,m,M);const s=$i(j,"layout","text-offset",_,I,m,M),l=$i(j,"paint","text-translate",_,I,m,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=$i(j,"layout","text-rotation-alignment",_,I,m,M);Z.setRotateWithView("map"==e)}else Z.setMaxAngle(ui($i(j,"layout","text-max-angle",_,I,m,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=$i(j,"layout","text-justify",_,I,m,M);Z.setJustify("auto"===p?void 0:p),Z.setOffsetX(s[0]*H+u+l[0]),Z.setOffsetY(s[1]*H+c+l[1]),T.setColor(qi($i(j,"paint","text-color",_,I,m,M),d)),Z.setFill(T);const f=qi($i(j,"paint","text-halo-color",_,I,m,M),d);if(f&&a>0){k.setColor(f),a*=2;const e=.5*H;k.setWidth(a<=e?a:e),Z.setStroke(k)}else Z.setStroke(void 0);const g=$i(j,"layout","text-padding",_,I,m,M),y=Z.getPadding();g!==y[0]&&(y[0]=g,y[1]=g,y[2]=g,y[3]=g),z.setZIndex(V)}}}return R>-1?(O.length=R+1,Ki&&("set"in n?n.set("mapbox-layer",L):n.getProperties()["mapbox-layer"]=L),O):void 0};return e.setStyle(P),e.set("mapbox-source",_),e.set("mapbox-layers",p),e.set("mapbox-featurestate",e.get("mapbox-featurestate")||{}),P}function Ji(e,t){const n=e[0],r=n.width,i=n.height,o=n.data,a=new Uint8ClampedArray(o.length),s=2*t.resolution,l=r-1,c=i-1,u=[0,0,0,0],d=2*Math.PI,h=Math.PI/2,p=Math.PI*t.sunEl/180,f=Math.PI*t.sunAz/180,g=Math.cos(p),m=Math.sin(p),y=t.highlightColor,v=t.shadowColor,b=t.accentColor,w=t.encoding;let x,A,S,C,E,_,k,T,O,P,I,M,L,R,j,F,D,N,z,V,B,$;function G(e,t="mapbox"){return"mapbox"===t?.1*(256*e[0]*256+256*e[1]+e[2])-1e4:"terrarium"===t?256*e[0]+e[1]+e[2]/256-32768:void 0}for(A=0;A<=c;++A)for(E=0===A?0:A-1,_=A===c?c:A+1,x=0;x<=l;++x)S=0===x?0:x-1,C=x===l?l:x+1,k=4*(A*r+S),u[0]=o[k],u[1]=o[k+1],u[2]=o[k+2],u[3]=o[k+3],T=t.vert*G(u,w),k=4*(A*r+C),u[0]=o[k],u[1]=o[k+1],u[2]=o[k+2],u[3]=o[k+3],O=t.vert*G(u,w),P=(O-T)/s,k=4*(E*r+x),u[0]=o[k],u[1]=o[k+1],u[2]=o[k+2],u[3]=o[k+3],T=t.vert*G(u,w),k=4*(_*r+x),u[0]=o[k],u[1]=o[k+1],u[2]=o[k+2],u[3]=o[k+3],O=t.vert*G(u,w),I=(O-T)/s,L=Math.atan2(I,-P),L=L<0?h-L:L>h?d-L+h:h-L,M=Math.atan(Math.sqrt(P*P+I*I)),$=m*Math.cos(M)+g*Math.sin(M)*Math.cos(f-L),R=Math.cos(M),j=255*$,z=Math.min(Math.max(2*t.sunEl,0),1),V=1.875-1.75*t.opacity,B=.5!==t.opacity?h*((Math.pow(V,M)-1)/(Math.pow(V,h)-1)):M,D={r:(1-R)*b.r*z*255,g:(1-R)*b.g*z*255,b:(1-R)*b.b*z*255,a:(1-R)*b.a*z*255},F=Math.abs(((L+f)/Math.PI+.5)%2-1),N={r:(y.r*(1-F)+v.r*F)*j,g:(y.g*(1-F)+v.g*F)*j,b:(y.b*(1-F)+v.b*F)*j,a:(y.a*(1-F)+v.a*F)*j},k=4*(A*r+x),a[k]=D.r*(1-F)+N.r,a[k+1]=D.g*(1-F)+N.g,a[k+2]=D.b*(1-F)+N.b,a[k+3]=o[k+3]*t.opacity*z*Math.sin(B);return new ImageData(a,r,i)}function Qi(e,t=512){return e.getExtent()?(0,Se.EN)({extent:e.getExtent(),tileSize:t,maxZoom:22}).getResolutions():di}function eo(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 to(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:ti(o,s.accessToken),s=eo(o,s)),new Promise((function(n,r){yi(t,s).then((function(t){if(8!=t.version)return r(new Error("glStyle version 8 required."));if(!(e instanceof _e.A||e instanceof f.A))return r(new Error("Can only apply to VectorLayer or VectorTileLayer"));const u=e instanceof f.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 f.A)return so(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()===g.Y&&n.setTileLoadFunction(t.getTileLoadFunction()),(0,$.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(fi(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=ho(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,p,m,y;function v(){if(y||t.sprite&&!p)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,$.Jt)(s.projection).getUnits();"m"!==e&&(i=di.map((t=>t/Te.I[e])))}y=Zi(e,t,l,i,p,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 Ri)return Ri[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){mi("Sprite",i,s).then(t).catch((function(r){i=e.origin+e.pathname+".json"+e.search,mi("Sprite",i,s).then(t).catch(n)}))})).then((function(t){if(void 0===t&&r(new Error("No sprites found.")),p=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)}))}const no={};function ro(e,t){let n;return e.some((function(e){if(e.id==t)return n=e.source,!0})),n}function io(e,t,n){const r=new Ee({tileJSON:t,tileSize:e.tileSize||t.tileSize||512}),i=r.getTileJSON(),o=r.getTileGrid(),a=(0,$.Jt)(n.projection||"EPSG:3857"),s=function(e,t){const n=e.bounds;if(n){const e=(0,$.Rb)([n[0],n[1]],t),r=(0,$.Rb)([n[2],n[3]],t);return[e[0],e[1],r[0],r[1]]}return(0,$.Jt)(t).getExtent()}(i,a),l=a.getExtent(),c=i.minzoom||0,u=i.maxzoom||22,d={attributions:r.getAttributions(),projection:a,tileGrid:new m.A({origin:l?(0,le.getTopLeft)(l):o.getOrigin(0),extent:s||o.getExtent(),minZoom:c,resolutions:Qi(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 oo(e,t,n,r){const i={id:e.id,type:e.type},o=e.layout||{},a=e.paint||{};i.paint=a;const s=pi(t,n.resolutions||di);let l;const c=$i(i,"paint","background-color",s,no,r);return void 0!==a["background-opacity"]&&(l=$i(i,"paint","background-opacity",s,no,r)),"none"==o.visibility?void 0:qi(c,l)}function ao(e,t,n){const r=document.createElement("div");return r.className="ol-mapbox-style-background",r.style.position="absolute",r.style.width="100%",r.style.height="100%",new M.A({source:new ne.A({}),render(i){const o=oo(e,i.viewState.resolution,t,n);return r.style.backgroundColor=o,r}})}function so(e,t,n){return new Promise((function(r,i){bi(e,t,n).then((function({tileJson:t,tileLoadFunction:i}){const o=io(e,t,n);o.tileLoadFunction=i,o.format=new K,r(new g.A(o))})).catch(i)}))}function lo(e){return`{bbox-${(e?e.getCode():"EPSG:3857").toLowerCase().replace(/[^a-z0-9]/g,"-")}}`}function co(e,t,n){return new Promise((function(r,i){bi(e,t,n).then((function({tileJson:t,tileLoadFunction:i}){const o=new Ee({interpolate:void 0===n.interpolate||n.interpolate,transition:0,crossOrigin:"anonymous",tileJSON:t});o.tileGrid=io(e,t,n).tileGrid,n.projection&&(o.projection=(0,$.Jt)(n.projection));const a=o.getTileUrlFunction();i&&o.setTileLoadFunction(i),o.setTileUrlFunction((function(e,t,n){const r=lo(n);let i=a(e,t,n);if(-1!=i.indexOf(r)){const t=o.getTileGrid().getTileCoordExtent(e);i=i.replace(r,t.toString())}return i})),o.set("mapbox-source",e),r(o)})).catch((function(e){i(e)}))}))}function uo(e,t,n){const r=new re.A;return co(e,t,n).then((function(e){r.setSource(e)})).catch((function(){r.setSource(void 0)})),r}function ho(e,t,n){const r=n.projection?new P.A({dataProjection:n.projection}):new P.A,i=e.data,o={};if("string"==typeof i){const o=ni(i,n.accessToken,n.accessTokenParam||"access_token",t||location.href);if(/\{bbox-[0-9a-z-]+\}/.test(o)){const t=(e,t,n)=>{const r=lo(n);return o.replace(r,`${e.join(",")}`)},i=new ke.A({attributions:e.attribution,format:r,loader:(e,r,o,a,s)=>{mi("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:Oe.Qk});return i.set("mapbox-source",e),i}const a=new ke.A({attributions:e.attribution,format:r,url:o,loader:(e,t,r,i,s)=>{mi("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,$.Tf)()||"EPSG:3857"});const a=new ke.A(Object.assign({attributions:e.attribution,format:r},o));return a.set("mapbox-source",e),a}function po(e,t,n){let r=null;return function(i){e.paint&&"raster-opacity"in e.paint&&i.frameState.viewState.zoom!==r&&(r=i.frameState.viewState.zoom,delete n[e.id],function(e,t,n,r){const i=$i(e,"paint","raster-opacity",n,no,r);t.setOpacity(i)}(e,t,r,n))}}function fo(e,t,n,r){const i=li(e),o=e.layers,a=n.type,s=n.source||ro(o,n.ref),l=e.sources[s];let c;if("background"==a)c=ao(n,r,i);else if("vector"==l.type)c=function(e,t,n){const r=new f.A({declutter:!0,visible:!1});return so(e,t,n).then((function(t){t.set("mapbox-source",e),r.setSource(t)})).catch((function(e){r.setSource(void 0)})),r}(l,t,r);else if("raster"==l.type)c=uo(l,t,r),c.setVisible(!n.layout||"none"!==n.layout.visibility),c.on("prerender",po(n,c,i));else if("geojson"==l.type)c=function(e,t,n){return new _e.A({declutter:!0,source:ho(e,t,n),visible:!1})}(l,t,r);else if("raster-dem"==l.type&&"hillshade"==n.type){const e=function(e,t,n){const r=uo(e,t,n);return new I.A({source:new xe({operationType:"image",operation:Ji,sources:[r]})})}(l,t,r);c=e,e.getSource().on("beforeoperations",(function(e){const t=e.data;t.resolution=(0,$.hO)(r.projection||"EPSG:3857",e.resolution,(0,le.getCenter)(e.extent),"m");const o=pi(e.resolution,r.resolutions||di);t.encoding=l.encoding,t.vert=5*$i(n,"paint","hillshade-exaggeration",o,no,i),t.sunAz=$i(n,"paint","hillshade-illumination-direction",o,no,i),t.sunEl=35,t.opacity=.3,t.highlightColor=$i(n,"paint","hillshade-highlight-color",o,no,i),t.shadowColor=$i(n,"paint","hillshade-shadow-color",o,no,i),t.accentColor=$i(n,"paint","hillshade-accent-color",o,no,i)})),c.setVisible(!n.layout||"none"!==n.layout.visibility)}const u=s;return c&&c.set("mapbox-source",u),c}function go(e,t,n,r){const i=[];let o=null;if(t instanceof X.A){if(o=t.getView(),!o.isDef()&&!o.getRotation()&&!o.getResolutions()){const e=r.projection?(0,$.Jt)(r.projection):o.getProjection();o=new p.Ay(Object.assign(o.getProperties(),{maxResolution:di[0]/Te.I[e.getUnits()],projection:r.projection||o.getProjection()})),t.setView(o)}"center"in e&&!o.getCenter()&&o.setCenter((0,$.Rb)(e.center,o.getProjection())),"zoom"in e&&void 0===o.getZoom()&&o.setResolution(di[0]/Te.I[o.getProjection().getUnits()]/Math.pow(2,e.zoom)),o.getCenter()&&void 0!==o.getZoom()||o.fit(o.getProjection().getExtent(),{nearest:!0,size:t.getSize()})}t.set("mapbox-style",e),t.set("mapbox-metadata",{styleUrl:n,options:r});const a=e.layers;let s,l,c,u=[];for(let o=0,d=a.length;o0||n>0)&&e.setMaxResolution(Math.min(fi(Math.max(0,a-1e-12),di),fi(Math.max(0,n-1e-12),t.getResolutions()))),s<24&&e.setMinResolution(fi(s,di))}}else a>0&&e.setMaxResolution(fi(Math.max(0,a-1e-12),di));u instanceof ke.A||u instanceof g.A?to(e,n,t,Object.assign({styleUrl:r},o)).then((function(){!function(e,t){function n(){const n=t.get("mapbox-style");if(!n)return;const r=Hr(n.layers),i=e.get("mapbox-layers"),o=r.filter((function(e){return i.includes(e.id)})).some((function(e){return!e.layout||!e.layout.visibility||"visible"===e.layout.visibility}));e.get("visible")!==o&&e.setVisible(o)}e.on("change",n),n()}(e,i),l()})).catch(c):l()}else c(new Error("Error accessing data for source "+e.get("mapbox-source")))};e.set("mapbox-layers",t);const d=i.getLayers();-1===d.getArray().indexOf(e)&&d.push(e),e.getSource()?u():e.once("change:source",u)}))}J.Ay;f.A;var vo=n(85813),bo=n(86203),wo=n(48660),xo=n(79913),Ao=n(76262),So=n(69070),Co=n(22769),Eo=n(60854),_o=n(92288);function ko(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 To(e){for(var t=1;t0&&(x=w[0]),x||(k={source:b},void 0!==(null===(A=n.initialSettings)||void 0===A?void 0:A.className)&&(k.className=n.initialSettings.className),void 0!==(null===(S=n.initialSettings)||void 0===S?void 0:S.extent)&&(k.extent=n.initialSettings.extent),void 0!==(null===(C=n.initialSettings)||void 0===C?void 0:C.maxZoom)&&(k.maxZoom=n.initialSettings.maxZoom),void 0!==(null===(E=n.initialSettings)||void 0===E?void 0:E.minZoom)&&(k.minZoom=n.initialSettings.minZoom),void 0!==(null===(_=n.initialSettings)||void 0===_||null===(_=_.states)||void 0===_?void 0:_.opacity)&&(k.opacity=n.initialSettings.states.opacity),T="LYR2"!==this.mapId,x=new f.A(To(To({},k),{},{declutter:T})),this.setLayerAndLoadEndListeners(n,x,"tile")),this.emitLayerCreation({config:n,layer:x}),O=o.tileGrid.getResolutions(),null!==(i=this.metadata)&&void 0!==i&&i.defaultStyles&&to(x,"".concat((0,xo.getLocalizedValue)(this.metadataAccessPath,_o.K.getDisplayLanguage(this.mapId))).concat(this.metadata.defaultStyles,"/root.json"),{resolutions:null!=O&&O.length?O:[]}).catch((function(e){Eo.vF.logPromiseFailed("applyStyle in processOneLayerEntry in VectorTiles",e)})),e.abrupt("return",Promise.resolve(x));case 23:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"processLayerMetadata",value:function(e){if(!(e instanceof Co.E))throw new Error("Invalid layer configuration type provided");if(this.metadata){var t,n=this.metadata.tileInfo,r=this.metadata.fullExtent,i={extent:[r.xmin,r.ymin,r.xmax,r.ymax],origin:[n.origin.x,n.origin.y],resolutions:n.lods.map((function(e){return e.resolution})),tileSize:[n.rows,n.cols]};e.source.tileGrid=i,null!==(t=e.initialSettings)&&void 0!==t&&t.extent&&(e.initialSettings.extent=this.getMapViewer().convertExtentLngLatToMapProj(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 to(this.getMapViewer().layer.getOLLayer(e),t)}}],[{key:"addVectorTileLayer",value:(n=(0,i.A)(h().mark((function e(){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,mo("LYR3","https://tiles.arcgis.com/tiles/HsjBaDykC1mjhXz9/arcgis/rest/services/CBMT3978_v11/VectorTileServer/resources/styles/root.json?f=json");case 2:e.sent.setView(new p.Ay({projection:"EPSG:3857",center:[-1843634.2627000008,4121569.7534000017],zoom:5}));case 4:case"end":return e.stop()}}),e)}))),function(){return n.apply(this,arguments)})}]);var n,r}(bo.A)},27174:(e,t,n)=>{"use strict";n.d(t,{GB:()=>B,Xx:()=>N,w6:()=>z});var r=n(47361),i=n(28249),o=n(43994),a=n(70640),s=n(32814),l=n(71149),c=n(66138),u=n(99979),d=n(38096),h=n(64426),p=n(59615),f=n.n(p),g=n(97493),m=n(28596),y=n(86253),v=n(72192),b=n(80363),w=n.n(b),x=n(76262),A=n(85813),S=n(86203),C=n(48660),E=n(79913),_=n(34028),k=n(62338),T=n(69070),O=n(98030),P=n(60854),I=n(91195),M=n(92288),L=n(10011);function R(e,t,n){return t=(0,u.A)(t),(0,l.A)(e,j()?Reflect.construct(t,n||[],(0,u.A)(e).constructor):t.apply(e,n))}function j(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(j=function(){return!!e})()}function F(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 N=function(e){return(null==e?void 0:e.geoviewLayerType)===A.y6.WMS},z=function(e){var t;return(null==e||null===(t=e.geoviewLayerConfig)||void 0===t?void 0:t.geoviewLayerType)===A.y6.WMS},V=new WeakSet,B=function(e){function t(e,n){var r;return(0,a.A)(this,t),F(r=R(this,t,[A.y6.WMS,n,e]),V),(0,h.A)(r,"WMSStyles",void 0),r.WMSStyles=[],r}return(0,d.A)(t,e),(0,s.A)(t,[{key:"fetchServiceMetadata",value:(v=(0,o.A)(f().mark((function e(){var t,n,r,i,o,a,s,l,c,u,d=this;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t=(0,E.getLocalizedValue)(this.metadataAccessPath,M.K.getDisplayLanguage(this.mapId)))){e.next=40;break}if(".xml"!==t.slice(-4).toLowerCase()){e.next=8;break}return e.next=6,D(V,this,U).call(this,t);case 6:e.next=38;break;case 8:if(0!==(n=D(V,this,Y).call(this)).length){e.next=23;break}return e.prev=10,e.next=13,D(V,this,$).call(this,"".concat(t,"?service=WMS&version=1.3.0&request=GetCapabilities"));case 13:r=e.sent,this.metadata=r,D(V,this,K).call(this),e.next=21;break;case 18:e.prev=18,e.t0=e.catch(10),P.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(D(V,d,$).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=[],p=0;p0&&(w=b[0]),w||(O={source:v,properties:{layerCapabilities:r,layerConfig:n}},void 0!==(null===(x=n.initialSettings)||void 0===x?void 0:x.className)&&(O.className=n.initialSettings.className),void 0!==(null===(S=n.initialSettings)||void 0===S?void 0:S.extent)&&(O.extent=n.initialSettings.extent),void 0!==(null===(C=n.initialSettings)||void 0===C?void 0:C.maxZoom)&&(O.maxZoom=n.initialSettings.maxZoom),void 0!==(null===(_=n.initialSettings)||void 0===_?void 0:_.minZoom)&&(O.minZoom=n.initialSettings.minZoom),void 0!==(null===(k=n.initialSettings)||void 0===k||null===(k=k.states)||void 0===k?void 0:k.opacity)&&(O.opacity=n.initialSettings.states.opacity),w=new m.A(O),this.setLayerAndLoadEndListeners(n,w,"image")),this.emitLayerCreation({config:n,layer:w}),e.abrupt("return",Promise.resolve(w));case 22:return T.FHQ.maps[this.mapId].notifications.showError("validation.layer.notfound",[n.layerId,this.geoviewLayerId]),e.abrupt("return",Promise.resolve(void 0));case 24:return P.vF.logError("geoviewLayerType must be ".concat(A.y6.WMS)),e.abrupt("return",Promise.resolve(void 0));case 26:case"end":return e.stop()}}),e,this)}))),function(e){return p.apply(this,arguments)})},{key:"processLayerMetadata",value:function(e){if(!(e instanceof I.Q))throw new Error("Invalid layer configuration type provided");if(z(e)){var t=D(V,this,Z).call(this,e.layerId);if(this.setLayerMetadata(e.layerPath,t),t){var n,r,i,o=this.getAttributions();if(t.Attribution&&!o.includes(null===(n=t.Attribution)||void 0===n?void 0:n.Title)&&(o.push(t.Attribution.Title),this.setAttributions(o)),e.source.featureInfo||(e.source.featureInfo={queryable:!!t.queryable}),O.d.setMapLayerQueryable(this.mapId,e.layerPath,e.source.featureInfo.queryable),null!==(r=e.initialSettings)&&void 0!==r&&r.extent&&(e.initialSettings.extent=this.getMapViewer().convertExtentLngLatToMapProj(e.initialSettings.extent)),null!==(i=e.initialSettings)&&void 0!==i&&i.bounds||!t.EX_GeographicBoundingBox||(e.initialSettings.bounds=t.EX_GeographicBoundingBox),t.Dimension){var a=t.Dimension.find((function(e){return"time"===e.name}));a&&this.processTemporalDimension(a,e)}}}return Promise.resolve(e)}},{key:"processTemporalDimension",value:function(e,t){void 0!==e&&this.setTemporalDimension(t.layerPath,_.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:(l=(0,o.A)(f().mark((function e(n,r){var i,o,a,s,l,c,u,d,h,p,m,y,v,b,w,A,S,C,_;return f().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),P.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){(0,c.A)((0,u.A)(t.prototype),"onLoaded",this).call(this,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],o=this.getLayerConfig(e),a=this.getOLLayer(e);P.vF.logTraceCore("WMS - applyViewFilter",e);var s=a.getSource();if(s){var l=t;if(o.legendFilterIsOff=!r,r&&(o.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,i.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=_.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,h.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),i=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=D(V,this,ie).call(this,(null==i?void 0:i.getCode())||"");if(s){var l=(0,r.A)(s,2),c=l[0],u=l[1];a=this.getMapViewer().convertExtentFromProjToMapProj(u,c)}return o&&a&&(a=(0,k.getExtentIntersection)(a,o)),a||o}}]);var n,l,p,v}(S.A);function $(e){return G.apply(this,arguments)}function G(){return(G=(0,o.A)(f().mark((function e(t){var n,r,i,o;return f().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 v.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 U(e){return W.apply(this,arguments)}function W(){return(W=(0,o.A)(f().mark((function e(t){var n,r,i,o,a,s,l;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n=new v.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?(D(V,this,K).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,function e(t){t.forEach((function(t){(0,C.KD)(t)?e(t.listOfLayerEntryConfig):(t.source.dataAccessPath.en=l,t.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 q(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=(0,i.A)(n);if(Array.isArray(t))for(var o=0;o0&&void 0!==arguments[0]?arguments[0]:e.listOfLayerEntryConfig;r.length&&r.forEach((function(e){(0,C.KD)(e)?n(e.listOfLayerEntryConfig):t.push(e)}))}(),t}function K(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 D(V,n,K).call(n,r,e)}))}function X(e,t){var n=this,r=[];(Array.isArray(e.Layer)?e.Layer:[e.Layer]).forEach((function(e){P.vF.logTraceCore("WMS - createGroupLayer","Cloning the layer config",t.layerPath);var i=w()(t);i.parentLayerConfig=(0,x.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,x.KX)(t);i.entryType=C.hJ.GROUP,i.layerName={en:e.Title,fr:e.Title},i.isMetadataLayerGroup=!0,i.listOfLayerEntryConfig=r,this.validateListOfLayerEntryConfig(r)}function Z(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(t).forEach((function(r){if(!r.endsWith("Geometry")&&!r.startsWith("@")){var i=r.split(":").slice(-1)[0];"#text"in t[r]?f.fieldInfo["".concat(n).concat(n?".":"").concat(i)]={fieldKey:p++,value:t[r]["#text"],dataType:"string",alias:"".concat(n).concat(n?".":"").concat(i),domain:null}:e(t[r],i)}}))}(e),l)?(p=0,Object.keys(f.fieldInfo).filter((function(e){if(null!=l&&l.includes(e)){var t=l.indexOf(e);return f.fieldInfo[e].fieldKey=p++,f.fieldInfo[e].alias=u[t],f.fieldInfo[e].dataType=c[t],!1}return!0})).forEach((function(e){delete f.fieldInfo[e]})),d.push(f)):d.push(f);return d}function re(e,t){var n=Object.keys(e).find((function(e){return e.endsWith(t)}));return n?e[n]:void 0}function ie(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]]]}}},12764:(e,t,n)=>{"use strict";n.d(t,{P5:()=>k,ik:()=>_,nd:()=>T});var r=n(43994),i=n(70640),o=n(32814),a=n(71149),s=n(66138),l=n(99979),c=n(38096),u=n(59615),d=n.n(u),h=n(12791),p=n(9063),f=n(70861),g=n(79950),m=n.n(g),y=n(85813),v=n(86203),b=n(48660),w=n(79913),x=n(76262),A=n(16535),S=n(92288);function C(e,t,n){return t=(0,l.A)(t),(0,a.A)(e,E()?Reflect.construct(t,n||[],(0,l.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})()}var _=function(e){return(null==e?void 0:e.geoviewLayerType)===y.y6.XYZ_TILES},k=function(e){var t;return(null==e||null===(t=e.geoviewLayerConfig)||void 0===t?void 0:t.geoviewLayerType)===y.y6.XYZ_TILES},T=function(e){function t(e,n){return(0,i.A)(this,t),C(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),S.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,c,u,g,m,y,v,b,x,C,E,_,k,T;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,s.A)((0,l.A)(t.prototype),"processOneLayerEntry",this).call(this,n);case 2:if(n instanceof A.m){e.next=4;break}throw new Error("Invalid layer configuration type provided");case 4:return r={url:(0,w.getLocalizedValue)(n.source.dataAccessPath,S.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&&(m={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&&(m.tileSize=null===(c=n.source.tileGrid)||void 0===c?void 0:c.tileSize),null!==(u=n.source.tileGrid)&&void 0!==u&&u.extent&&(m.extent=null===(g=n.source.tileGrid)||void 0===g?void 0:g.extent),r.tileGrid=new f.A(m)),y=new p.A(r),(v=this.emitLayerRequesting({config:n,source:y})).length>0&&(b=v[0]),b||(T={source:y},void 0!==(null===(x=n.initialSettings)||void 0===x?void 0:x.className)&&(T.className=n.initialSettings.className),void 0!==(null===(C=n.initialSettings)||void 0===C?void 0:C.extent)&&(T.extent=n.initialSettings.extent),void 0!==(null===(E=n.initialSettings)||void 0===E?void 0:E.maxZoom)&&(T.maxZoom=n.initialSettings.maxZoom),void 0!==(null===(_=n.initialSettings)||void 0===_?void 0:_.minZoom)&&(T.minZoom=n.initialSettings.minZoom),void 0!==(null===(k=n.initialSettings)||void 0===k||null===(k=k.states)||void 0===k?void 0:k.opacity)&&(T.opacity=n.initialSettings.states.opacity),b=new h.A(T),this.setLayerAndLoadEndListeners(n,b,"tile")),this.emitLayerCreation({config:n,layer:b}),e.abrupt("return",Promise.resolve(b));case 14:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"processLayerMetadata",value:function(e){if(!(e instanceof A.m))throw new Error("Invalid layer configuration type provided");if(this.metadata){var t,n,r=(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)(r)),e.source=m()(e.source,r.source),e.initialSettings=m()(e.initialSettings,r.initialSettings),null!==(n=e.initialSettings)&&void 0!==n&&n.extent&&(e.initialSettings.extent=this.getMapViewer().convertExtentLngLatToMapProj(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)},22238:(e,t,n)=>{"use strict";n.d(t,{W:()=>X});var r=n(28249),i=n(64426),o=n(43994),a=n(70640),s=n(32814),l=n(71149),c=n(66138),u=n(99979),d=n(38096),h=n(59615),p=n.n(h),f=n(20662),g=n(83605),m=n(20687),y=n(70945),v=n(75079),b=n(41320),w=n(69473),x=n(39124),A=n(37565),S=n(25914),C=n(10840),E=n(4668),_=n(41218);class k extends y.A{constructor(e){super(e),this.vectorRenderer_=new v.A(e),this.layerImageRatio_=e.getImageRatio(),this.coordinateToVectorPixelTransform_=(0,C.vt)(),this.renderedPixelToCoordinateTransform_=null}disposeInternal(){this.vectorRenderer_.dispose(),super.disposeInternal()}getFeatures(e){if(!this.vectorRenderer_)return Promise.resolve([]);const t=(0,C.Bb)(this.coordinateToVectorPixelTransform_,(0,C.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[S.A.ANIMATING]&&!i[S.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 A(9)});let p=!0;const f=new w.A(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()!==x.A.LOADED)return;this.image_=p?null:f;const e=f.getPixelRatio(),r=(0,E.m)(f.getResolution())*t/e;this.renderedResolution=r,this.coordinateToVectorPixelTransform_=(0,C.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 T=k;class O 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 T(this)}}const P=O;var I=n(98949),M=n(62767),L=n(69070),R=n(85813),j=n(79913),F=n(34028),D=n(5739),N=(n(46457),n(60854)),z=n(98208),V=n(76262),B=n(92288),$=n(10011),G=n(18934),U=n(98030),W=n(12311);function q(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;t1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getAttributions().length>0&&(i.attributions=this.getAttributions()),i.strategy="bbox"===e.source.strategy?I.Qk:I.Q7,i.loader=function(i,a,s,l,c){var u,d,h=n.getUrl();"function"==typeof h&&(h=h(i,a,s));var p=new XMLHttpRequest;if(null!=e&&null!==(u=e.source)&&void 0!==u&&u.postSettings){var f=e.source.postSettings;p.open("POST",h),f.header&&Object.keys(f.header).forEach((function(e){p.setRequestHeader(e,f.header[e])}))}else p.open("GET",h);var g=function(){n.removeLoadedExtent(i),c&&c()};p.onerror=g,p.onload=function(){if(200===p.status){var a,c;if(c=e.schemaTag===R.y6.CSV?t.convertCsv(r.mapId,p.responseText,e):n.getFormat().readFeatures(p.responseText,H(H({},o),{},{featureProjection:s,extent:i})),null!==(a=e.source)&&void 0!==a&&null!==(a=a.featureInfo)&&void 0!==a&&a.queryable&&c){var u,d=e.source.featureInfo,h=null===(u=d.fieldTypes)||void 0===u?void 0:u.split(","),f=(0,j.getLocalizedValue)(d.outfields,B.K.getDisplayLanguage(r.mapId)).split(","),m=null==h?void 0:h.reduce((function(e,t,n){return"date"===t&&e.push(f[n]),e}),[]);null!=m&&m.length&&c.forEach((function(e){m.forEach((function(t){var n=e.get(t);if("number"==typeof n){var i=F.P.convertMilisecondsToDate(n);i=F.P.applyInputDateFormat(i,r.serverDateFragmentsOrder),e.set(t,F.P.convertToMilliseconds(i),!0)}else r.serverDateFragmentsOrder||(r.serverDateFragmentsOrder=F.P.getDateFragmentsOrder(F.P.deduceDateFormat(n))),n=F.P.applyInputDateFormat(n,r.serverDateFragmentsOrder),e.set(t,F.P.convertToMilliseconds(n),!0)}))}))}if(c){n.addFeatures(c),l&&l(c);var y=r.getOLLayer(e.layerPath);null==y||y.changed()}}else g()},p.send(JSON.stringify(null===(d=e.source.postSettings)||void 0===d?void 0:d.data))},n=new g.A(i)}},{key:"createVectorLayer",value:function(e,t){var n,r=this,i=B.K.getDisplayLanguage(this.mapId),o=(0,j.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 G.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 P(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),N.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 N.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:"onLoaded",value:function(e){(0,c.A)((0,u.A)(t.prototype),"onLoaded",this).call(this,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];N.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,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=F.P.applyInputDateFormat(e[0],i.externalFragmentsOrder,t);l="".concat(l.slice(0,e.index)).concat(n).concat(l.slice(e.index+e[0].length))}));try{var u=(0,$.WN)([{nodeType:D.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:"convertCsv",value:function(e,n,r){for(var i,o,a=r.source.dataProjection||W.M.PROJECTION_NAMES.LNGLAT,s=U.d.getMapViewer(e).getProjection().getCode(),l=["latitude","lat","y","ycoord","latitude/latitude","latitude / latitude"],c=["longitude","lon","x","xcoord","longitude/longitude","longitude / longitude"],u=[],d=Z.call(t,n,r.source.separator||","),h=d[0],p=0;p{"use strict";n.d(t,{WW:()=>b,fK:()=>w,pf:()=>x});var r=n(70640),i=n(32814),o=n(71149),a=n(66138),s=n(99979),l=n(38096),c=n(45917),u=n(86891),d=n(85813),h=n(22238),p=n(48660),f=n(79913),g=n(98208),m=n(92288);function y(e,t,n){return t=(0,s.A)(t),(0,o.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})()}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=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return r.dataProjection=e.source.dataProjection,n.url=(0,f.getLocalizedValue)(e.source.dataAccessPath,m.K.getDisplayLanguage(this.mapId)),n.format=new c.A,(0,a.A)((0,s.A)(t.prototype),"createVectorSource",this).call(this,e,n,r)}}])}(h.W)},52375:(e,t,n)=>{"use strict";n.d(t,{$f:()=>v,SP:()=>b,Uw:()=>w});var r=n(70640),i=n(32814),o=n(71149),a=n(66138),s=n(99979),l=n(38096),c=n(987),u=n(79913),d=n(22238),h=n(97752),p=n(85813),f=n(80104),g=n(92288);function m(e,t,n){return t=(0,s.A)(t),(0,o.A)(e,y()?Reflect.construct(t,n||[],(0,s.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=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.url=(0,u.getLocalizedValue)(e.source.dataAccessPath,g.K.getDisplayLanguage(this.mapId)),n.url="".concat(n.url,"/").concat(e.layerId,"/query?f=pjson&outfields=*&where=1%3D1"),n.format=new c.A,(0,a.A)((0,s.A)(t.prototype),"createVectorSource",this).call(this,e,n,r)}}])}(d.W)},12358:(e,t,n)=>{"use strict";n.d(t,{eq:()=>C,kx:()=>E,vM:()=>S});var r=n(64426),i=n(70640),o=n(32814),a=n(71149),s=n(66138),l=n(99979),c=n(38096),u=n(45917),d=n(79950),h=n.n(d),p=n(85813),f=n(22238),g=n(48660),m=n(76262),y=n(79913),v=n(98208),b=n(92288);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,t,n){return t=(0,l.A)(t),(0,a.A)(e,A()?Reflect.construct(t,n||[],(0,l.A)(e).constructor):t.apply(e,n))}function A(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(A=function(){return!!e})()}var S=function(e){return(null==e?void 0:e.geoviewLayerType)===p.y6.GEOJSON},C=function(e){var t;return(null==e||null===(t=e.geoviewLayerConfig)||void 0===t?void 0:t.geoviewLayerType)===p.y6.GEOJSON},E=function(e){function t(e,n){return(0,i.A)(this,t),x(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,m.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 v.T))throw new Error("Invalid layer configuration type provided");if(this.metadata){var t,n,i=(0,m.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(i){var o;this.setLayerMetadata(e.layerPath,(0,m.NK)(i)),e.layerName=e.layerName||i.layerName,e.source=h()(e.source,i.source),e.initialSettings=h()(e.initialSettings,i.initialSettings),e.style=h()(e.style,i.style);var a,s,l=(0,y.getLocalizedValue)(null===(o=e.geoviewLayerConfig)||void 0===o?void 0:o.metadataAccessPath,b.K.getDisplayLanguage(this.mapId));if(l)l=l.split("/").length>1?l.split("/").slice(0,-1).join("/"):"./","".concat(l,"/").concat(e.layerId)===(0,y.getLocalizedValue)(null===(a=e.source)||void 0===a?void 0:a.dataAccessPath,b.K.getDisplayLanguage(this.mapId))&&(0,y.getLocalizedValue)(null===(s=i.source)||void 0===s?void 0:s.dataAccessPath,b.K.getDisplayLanguage(this.mapId))&&(e.source.dataAccessPath=function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return r.dataProjection=e.source.dataProjection,n.url=(0,y.getLocalizedValue)(e.source.dataAccessPath,b.K.getDisplayLanguage(this.mapId)),n.format=new u.A,(0,s.A)((0,l.A)(t.prototype),"createVectorSource",this).call(this,e,n,r)}}])}(f.W)},71587:(e,t,n)=>{"use strict";n.d(t,{OH:()=>ae,wm:()=>oe,P0:()=>ie});var r=n(31625),i=n(43994),o=n(64426),a=n(47361),s=n(70640),l=n(32814),c=n(71149),u=n(66138),d=n(99979),h=n(38096),p=n(80363),f=n.n(p),g=n(59615),m=n.n(g),y=n(20662),v=n(42024),b=n(31997),w=n(24438),x=n(67087),A=n(4180),S=n(1660),C=n(62767),E=n(17567),_=n(34336),k=n(6819);const T=1,O=2,P=3,I=4,M=5,L=6,R=7,j=15,F=16,D=17;class N{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 T:return this.readPoint();case O:return this.readLineString();case P:case D:return this.readPolygon();case I:return this.readMultiPoint();case M:return this.readMultiLineString();case L:case j:case F:return this.readMultiPolygon();case R: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 V extends v.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 y.A({geometry:this.readGeometry(e,t)})}readFeatures(e,t){let n=[];const r=this.readGeometry(e,t);return n=this.splitCollection&&r instanceof b.A?r.getGeometriesArray():[r],n.map((e=>new y.A({geometry:e})))}readGeometry(e,t){const n=B(e);if(!n)return null;const r=new N(n).readGeometry();return this.viewCache_=n,t=this.getReadOptions(e,t),this.viewCache_=null,(0,v.hX)(r,!1,t)}readProjection(e){const t=this.viewCache_||B(e);if(!t)return;const n=new N(t);return n.readWkbHeader(),n.getSrid()&&(0,_.Jt)("EPSG:"+n.getSrid())||void 0}writeFeature(e,t){return this.writeGeometry(e.getGeometry(),t)}writeFeatures(e,t){return this.writeGeometry(new b.A(e.map((e=>e.getGeometry()))),t)}writeGeometry(e,t){t=this.adaptOptions(t);const n=new z({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,_.Jt)(t.dataProjection);if(e){const t=e.getCode();t.startsWith("EPSG:")&&(r=Number(t.substring(5)))}}n.writeGeometry((0,v.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,X.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){Q.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){Q.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){Q.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,J.getLocalizedValue)(e.source.dataAccessPath,Z.K.getDisplayLanguage(n.mapId)),l=n.getAttributions();l.length>0&&(r.attributions=l);var c=[],u={},d=new XMLHttpRequest;d.responseType="arraybuffer",W()({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 $,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,te(te({},i),{},{dataProjection:u,featureProjection:n.getMapViewer().getProjection().getCode()}));m[0].setProperties(e),p.push(m[0])}var v=new G.A(te(te({},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}(K.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})}}},55373:(e,t,n)=>{"use strict";n.d(t,{UU:()=>E,dr:()=>C,ke:()=>_});var r=n(43994),i=n(70640),o=n(32814),a=n(71149),s=n(66138),l=n(99979),c=n(38096),u=n(59615),d=n.n(u),h=n(97493),p=n(45917),f=n(85813),g=n(22238),m=n(48660),y=n(12311),v=n(60854),b=n(98208),w=n(79913),x=n(92288);function A(e,t,n){return t=(0,l.A)(t),(0,a.A)(e,S()?Reflect.construct(t,n||[],(0,l.A)(e).constructor):t.apply(e,n))}function S(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(S=function(){return!!e})()}var C=function(e){return(null==e?void 0:e.geoviewLayerType)===f.y6.OGC_FEATURE},E=function(e){var t;return(null==e||null===(t=e.geoviewLayerConfig)||void 0===t?void 0:t.geoviewLayerType)===f.y6.OGC_FEATURE},_=function(e){function t(e,n){return(0,i.A)(this,t),A(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,w.getLocalizedValue)(e.metadataAccessPath,x.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"),v.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)){var r,i,o,a,s=t.metadata.collections.find((function(t){return t.id===e.layerId}));return s?(s.description&&(e.layerName={en:s.description,fr:s.description}),null!==(r=e.initialSettings)&&void 0!==r&&r.extent&&(e.initialSettings.extent=t.getMapViewer().convertExtentLngLatToMapProj(e.initialSettings.extent)),void(null!==(i=e.initialSettings)&&void 0!==i&&i.bounds||null===(o=s.extent)||void 0===o||null===(o=o.spatial)||void 0===o||!o.bbox||null===(a=s.extent)||void 0===a||null===(a=a.spatial)||void 0===a||!a.crs||(e.initialSettings.bounds=t.getMapViewer().convertExtentFromProjToMapProj(s.extent.spatial.bbox[0],y.M.getProjection(s.extent.spatial.crs))))):(t.layerLoadError.push({layer:n,loggerMessage:"OGC feature layer not found (mapId: ".concat(t.mapId,", layerPath: ").concat(n,")")}),void(e.layerStatus="error"))}throw new Error("Invalid collection's metadata prevent loading of layer (mapId: ".concat(t.mapId,", layerPath: ").concat(n,")"))}))}},{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 b.T){e.next=2;break}throw new Error("Invalid layer configuration type provided");case 2:if(e.prev=2,!(r=(0,w.getLocalizedValue)(this.metadataAccessPath,x.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),k.call(t,o.data.properties,n));case 10:e.next=16;break;case 12:e.prev=12,e.t0=e.catch(2),v.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=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return r.dataProjection=e.source.dataProjection,n.url=(0,w.getLocalizedValue)(e.source.dataAccessPath,x.K.getDisplayLanguage(this.mapId)),n.url="".concat(n.url,"/collections/").concat(e.layerId,"/items?f=json"),n.format=new p.A,(0,s.A)((0,l.A)(t.prototype),"createVectorSource",this).call(this,e,n,r)}}]);var n}(g.W);function k(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})}}},78752:(e,t,n)=>{"use strict";n.d(t,{dS:()=>rt,Vk:()=>et,OV:()=>Qe});var r=n(43994),i=n(70640),o=n(32814),a=n(71149),s=n(66138),l=n(99979),c=n(38096),u=n(59615),d=n.n(u),h=n(20662),p=n(78853),f=n(24438),g=n(62650),m=n(67087),y=n(4180),v=n(1660),b=n(62767),w=n(17567),x=n(42024),A=n(94994),S=n(17217),C=n(98785);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 _=E;var k=n(34336);const T="http://www.opengis.net/gml",O=/^\s*$/;class P extends _{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":B,"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?B.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,k.Jt)(e.pop().srsName)}return null}};var Ve=n(98949),Be=n(85813),$e=n(22238),Ge=n(48660),Ue=n(79913),We=n(60854),qe=n(98208),He=n(92288);function Ye(e,t,n){return t=(0,l.A)(t),(0,a.A)(e,Ke()?Reflect.construct(t,n||[],(0,l.A)(e).constructor):t.apply(e,n))}function Ke(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ke=function(){return!!e})()}function Xe(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Ze(e,t){return e.get(Je(e,t))}function Je(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 Qe=function(e){return(null==e?void 0:e.geoviewLayerType)===Be.y6.WFS},et=function(e){var t;return(null==e||null===(t=e.geoviewLayerConfig)||void 0===t?void 0:t.geoviewLayerType)===Be.y6.WFS},tt=new WeakMap,nt=new WeakSet,rt=function(e){function t(e,n){var r,o,a;return(0,i.A)(this,t),r=Ye(this,t,[Be.y6.WFS,n,e]),Xe(o=r,a=nt),a.add(o),function(e,t,n){Xe(e,t),t.set(e,n)}(r,tt,"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=tt,s=e,l=o["@attributes"].version,a.set(Je(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,c=(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(!c)return t.layerLoadError.push({layer:o,loggerMessage:"WFS feature layer not found (mapId: ".concat(t.mapId,", layerPath: ").concat(o,")")}),void(e.layerStatus="error");if(null!==(s=e.initialSettings)&&void 0!==s&&s.extent&&(e.initialSettings.extent=t.getMapViewer().convertExtentLngLatToMapProj(e.initialSettings.extent)),(null===(l=e.initialSettings)||void 0===l||!l.bounds)&&c["ows:WGS84BoundingBox"]){var u=c["ows:WGS84BoundingBox"]["ows:LowerCorner"]["#text"].split(" "),d=c["ows:WGS84BoundingBox"]["ows:UpperCorner"]["#text"].split(" "),h=[Number(u[0]),Number(u[1]),Number(d[0]),Number(d[1])];e.initialSettings.bounds=t.getMapViewer().convertExtentLngLatToMapProj(h)}}}))}},{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(Ze(tt,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),Je(nt,this,it).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),Je(nt,this,it).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=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return i.dataProjection=e.source.dataProjection,r.url=function(t){var i=(0,Ue.getLocalizedValue)(e.source.dataAccessPath,He.K.getDisplayLanguage(n.mapId));return i=i.indexOf("?")>-1?i.substring(0,i.indexOf("?")):i,i="".concat(i,"?service=WFS&request=getFeature&version=").concat(Ze(tt,n)),i="".concat(i,"&typeName=").concat(e.layerId),r.strategy===Ve.Qk&&Number.isFinite(t[0])&&(i="".concat(i,"&bbox=").concat(t,",").concat(n.getMapViewer().getProjection().getCode())),i},r.format=new ze({version:Ze(tt,this)}),(0,s.A)((0,l.A)(t.prototype),"createVectorSource",this).call(this,e,r,i)}}]);var n}($e.W);function it(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})}}},93866:(e,t,n)=>{"use strict";n.d(t,{Z:()=>G});var r=n(43994),i=n(70640),o=n(32814),a=n(64426),s=n(59615),l=n.n(s),c=n(12791),u=n(36116),d=n(20687),h=n(28596),p=n(79913),f=n(34028),g=n(60854),m=n(23222),y=n(16221),v=n(55950),b=n(10011),w=n(98030);function x(e,t,n){A(e,t),t.set(e,n)}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(E(e,t))}function C(e,t,n){return e.set(E(e,t),n),n}function E(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 _=new WeakMap,k=new WeakMap,T=new WeakMap,O=new WeakMap,P=new WeakMap,I=new WeakMap,M=new WeakMap,L=new WeakMap,R=new WeakMap,j=new WeakMap,F=new WeakMap,D=new WeakMap,N=new WeakMap,z=new WeakMap,V=new WeakMap,B=new WeakMap,$=new WeakSet,G=function(){return(0,o.A)((function e(t,n,r){var o,s;(0,i.A)(this,e),A(o=this,s=$),s.add(o),(0,a.A)(this,"hitTolerance",e.DEFAULT_HIT_TOLERANCE),x(this,_,void 0),(0,a.A)(this,"olLayer",void 0),x(this,k,void 0),x(this,T,void 0),x(this,O,void 0),x(this,P,void 0),x(this,I,void 0),x(this,M,void 0),x(this,L,void 0),x(this,R,void 0),x(this,j,[]),x(this,F,[]),x(this,D,[]),x(this,N,[]),x(this,z,[]),x(this,V,[]),x(this,B,[]),C(_,this,t),C(k,this,n),C(T,this,r),C(P,this,r.layerName),C(O,this,"loading"),C(L,this,r.geoviewLayerConfig.serviceDateFormat?f.P.getDateFragmentsOrder(r.geoviewLayerConfig.serviceDateFormat):void 0),C(R,this,f.P.getDateFragmentsOrder(r.geoviewLayerConfig.externalDateFormat))}),[{key:"init",value:function(){var e;if(this.olLayer instanceof h.A)e="image";else if(this.olLayer instanceof u.A||this.olLayer instanceof c.A)e="tile";else{if(!(this.olLayer instanceof d.A))throw new Error("Unsupported OpenLayer type: ".concat(this.olLayer.constructor.name));e="features"}var t=S(k,this).getState();"ready"===t?this.onLoaded():"error"===t?this.onError():(S(k,this).once("".concat(e,"loadend"),this.onLoaded.bind(this)),S(k,this).once("".concat(e,"loaderror"),this.onError.bind(this)))}},{key:"getMapId",value:function(){return S(_,this)}},{key:"getMapViewer",value:function(){return w.d.getMapViewer(this.getMapId())}},{key:"getOLLayer",value:function(){return this.olLayer}},{key:"getOLSource",value:function(){return S(k,this)}},{key:"getLayerConfig",value:function(){return S(T,this)}},{key:"getLayerPath",value:function(){return S(T,this).layerPath}},{key:"getGeoviewLayerId",value:function(){return S(T,this).geoviewLayerConfig.geoviewLayerId}},{key:"getGeoviewLayerName",value:function(){return S(T,this).geoviewLayerConfig.geoviewLayerName}},{key:"getLayerStatus",value:function(){return S(O,this)}},{key:"getLayerConfigStatus",value:function(){return S(T,this).layerStatus}},{key:"getLayerName",value:function(e){return S(P,this)}},{key:"setLayerName",value:function(e,t){C(P,this,t),E($,this,U).call(this,{layerPath:e,layerName:t})}},{key:"getStyle",value:function(e){return S(I,this)}},{key:"setStyle",value:function(e,t){C(I,this,t),E($,this,K).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 S(M,this)}},{key:"setTemporalDimension",value:function(e){C(M,this,e)}},{key:"getExternalFragmentsOrder",value:function(){return S(R,this)}},{key:"onLoaded",value:function(){var e;S(T,this).layerStatus="loaded",C(O,this,"loaded"),this.setVisible(!1!==(null===(e=S(T,this).initialSettings)||void 0===e||null===(e=e.states)||void 0===e?void 0:e.visible))}},{key:"onError",value:function(){S(T,this).layerStatus="error",C(O,this,"error")}},{key:"getFeatureInfo",value:(n=(0,r.A)(l().mark((function e(t,n){var r,i,o,a,s,c,u=arguments;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=u.length>2&&void 0!==u[2]?u[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 g.vF.logError("Layer at path ".concat(o.layerPath," is not queryable")),e.abrupt("return",null);case 6:g.vF.logTraceCore("ABSTRACT-GV-LAYERS - getFeatureInfo",t),a="".concat(t),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(),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([]),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 n.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 g.vF.logWarning("getFieldDomain is not implemented for ".concat(e," on layer path ").concat(this.getLayerPath())),null}},{key:"getFieldType",value:function(e){return g.vF.logWarning("getFieldType is not implemented for ".concat(e," on layer path ").concat(this.getLayerPath())),"string"}},{key:"getExtent",value:function(){return this.getOLLayer().getExtent()}},{key:"setExtent",value:function(e){this.getOLLayer().setExtent(e)}},{key:"getOpacity",value:function(){return this.getOLLayer().getOpacity()}},{key:"setOpacity",value:function(e){this.getOLLayer().setOpacity(e),E($,this,Y).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&&E($,this,H).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:"queryLegend",value:function(){var e=this;E($,this,W).call(this);var t=this.getLegend();return t.then((function(t){t&&E($,e,q).call(e,{legend:t})})).catch((function(e){g.vF.logPromiseFailed("promiseLegend in queryLegend in AbstractGVLayer",e)})),t}},{key:"getLegend",value:(t=(0,r.A)(l().mark((function e(){var t;return l().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,b.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),g.vF.logError(e.t3),e.abrupt("return",null);case 14:case"end":return e.stop()}}),e,this,[[0,10]])}))),function(){return t.apply(this,arguments)})},{key:"getFieldValue",value:function(e,t,n){var r,i=e.get(t);if("date"===n){"string"==typeof i?(S(L,this)||C(L,this,f.P.getDateFragmentsOrder(f.P.deduceDateFormat(i))),r=f.P.applyInputDateFormat(i,S(L,this))):r=f.P.convertToUTC("".concat(f.P.convertMilisecondsToDate(i),"Z"));return S(R,this)&&(r=f.P.applyOutputDateFormat(r,S(R,this),!0)),r}return i}},{key:"formatFeatureInfoResult",value:(e=(0,r.A)(l().mark((function e(t,n){var i,o,a,s,c,u,d,h,f,y,w,x,A,S,C,E,_,k=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,n;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,k.queryLegend();case 4:t=e.sent,(n=v.K.getLayerIconImage(t))&&(c=n[0].iconImage||null);case 7:return e.abrupt("return",c);case 8:case"end":return e.stop()}}),e)}))))},h=null==n||null===(i=n.source)||void 0===i?void 0:i.featureInfo,f=null==h||null===(o=h.fieldTypes)||void 0===o?void 0:o.split(","),y=null===(a=(0,p.getLocalizedValue)(null==h?void 0:h.outfields,"en"))||void 0===a?void 0:a.split(","),w=null===(s=(0,p.getLocalizedValue)(null==h?void 0:h.aliasFields,"en"))||void 0===s?void 0:s.split(","),x=[],t.forEach((function(e){x.push(new Promise((function(t){(0,b.$G)(e,k.getStyle(n.layerPath),n.filterEquation,n.legendFilterIsOff,d).then((function(n){t({feature:e,canvas:n})})).catch((function(e){g.vF.logPromiseFailed("getFeatureCanvas in featureNeedingItsCanvas loop in formatFeatureInfoResult in AbstractGVLayer",e)}))})))})),A={},S={},C=0,E=0,_=[],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:k.getLayerConfig().geoviewLayerConfig.geoviewLayerType,extent:r,geometry:i,featureIcon:o,fieldInfo:{},nameField:(0,p.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]=k.getFieldDomain(e));var t=A[e];e in S||(S[e]=k.getFieldType(e));var n=S[e];if(null!=y&&y.includes(e)){var r=y.indexOf(e);a.fieldInfo[e]={fieldKey:E++,value:k.getFieldValue(i,e,f[r]),dataType:f[r],alias:w[r],domain:t}}else y||(a.fieldInfo[e]={fieldKey:E++,value:k.getFieldValue(i,e,n),dataType:n,alias:e,domain:t})}})),_.push(a)})),e.abrupt("return",_);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,null,[[0,23]])}))),function(t,n){return e.apply(this,arguments)})},{key:"getLayerFilter",value:function(e){var t=this.getLayerConfig();return null==t?void 0:t.layerFilter}},{key:"onLayerNameChanged",value:function(e){y.A.onEvent(S(j,this),e)}},{key:"offLayerNameChanged",value:function(e){y.A.offEvent(S(j,this),e)}},{key:"onLegendQuerying",value:function(e){y.A.onEvent(S(D,this),e)}},{key:"offLegendQuerying",value:function(e){y.A.offEvent(S(D,this),e)}},{key:"onLegendQueried",value:function(e){y.A.onEvent(S(N,this),e)}},{key:"offLegendQueried",value:function(e){y.A.offEvent(S(N,this),e)}},{key:"onVisibleChanged",value:function(e){y.A.onEvent(S(z,this),e)}},{key:"offVisibleChanged",value:function(e){y.A.offEvent(S(z,this),e)}},{key:"emitLayerFilterApplied",value:function(e){y.A.emitEvent(this,S(V,this),e)}},{key:"onLayerFilterApplied",value:function(e){y.A.onEvent(S(V,this),e)}},{key:"offLayerFilterApplied",value:function(e){y.A.offEvent(S(V,this),e)}},{key:"onLayerOpacityChanged",value:function(e){y.A.onEvent(S(B,this),e)}},{key:"offLayerOpacityChanged",value:function(e){y.A.offEvent(S(B,this),e)}},{key:"onLayerStyleChanged",value:function(e){y.A.onEvent(S(F,this),e)}},{key:"offLayerStyleChanged",value:function(e){y.A.offEvent(S(F,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 e,t,n}();function U(e){y.A.emitEvent(this,S(j,this),e)}function W(){y.A.emitEvent(this,S(D,this),void 0)}function q(e){y.A.emitEvent(this,S(N,this),e)}function H(e){y.A.emitEvent(this,S(z,this),e)}function Y(e){y.A.emitEvent(this,S(B,this),e)}function K(e){y.A.emitEvent(this,S(F,this),e)}(0,a.A)(G,"DEFAULT_HIT_TOLERANCE",4)},47598:(e,t,n)=>{"use strict";n.d(t,{z:()=>h});var r=n(70640),i=n(32814),o=n(71149),a=n(66138),s=n(99979),l=n(38096),c=n(12311);function u(e,t,n){return t=(0,s.A)(t),(0,o.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,r.A)(this,t),u(this,t,arguments)}return(0,l.A)(t,e),(0,i.A)(t,[{key:"getOLLayer",value:function(){return(0,a.A)((0,s.A)(t.prototype),"getOLLayer",this).call(this)}},{key:"getMetadataProjection",value:function(){var e;return c.M.getProjection("EPSG:".concat(null===(e=this.getLayerConfig().getMetadata())||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().getMetadata();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(93866).Z)},81603:(e,t,n)=>{"use strict";n.d(t,{Y:()=>R});var r=n(28249),i=n(47361),o=n(43994),a=n(70640),s=n(32814),l=n(71149),c=n(66138),u=n(99979),d=n(38096),h=n(64426),p=n(59615),f=n.n(p),g=n(28596),m=n(987),y=n(20662),v=n(48690),b=n(79913),w=n(12311),x=n(92288),A=n(60854),S=n(34028),C=n(48660),E=n(13019),_=n(47598);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= ").concat(M(L,this,z).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(M(L,this,z).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(M(L,this,z).call(this,o.field,o.classBreakStyleInfo[h].minValue,e.source.featureInfo))),h+1===o.classBreakStyleInfo.length&&u.push("".concat(o.field," <= ").concat(M(L,this,z).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(M(L,this,z).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(M(L,this,z).call(this,o.field,o.classBreakStyleInfo[h-1].maxValue,e.source.featureInfo))):h+1===o.classBreakStyleInfo.length&&u.push("".concat(o.field," <= ").concat(M(L,this,z).call(this,o.field,o.classBreakStyleInfo[h].maxValue,e.source.featureInfo))):!1!==o.classBreakStyleInfo[h].visible?(u.push("".concat(o.field," > ").concat(M(L,this,z).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(M(L,this,z).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(){(0,c.A)((0,u.A)(t.prototype),"onLoaded",this).call(this),this.applyViewFilter("",this.getLayerConfig().layerFilter||"")}},{key:"applyViewFilter",value:function(e,t){var n=this,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];A.vF.logTraceCore("GV-ESRI-DYNAMIC - applyViewFilter");var o=this.getLayerConfig(),a=this.getOLLayer(),s=t.replaceAll(/\s{2,}/g," ").trim();o.legendFilterIsOff=!i,o.layerFilter=s,i&&(s=this.getViewFilter());var l=(0,r.A)(s.matchAll(/(?<=^date\b\s')[\d/\-T\s:+Z]{4,25}(?=')|(?<=[(\s]date\b\s')[\d/\-T\s:+Z]{4,25}(?=')/gi));l.reverse(),l.forEach((function(e){var t=![20,25].includes(e[0].length),r=S.P.applyInputDateFormat(e[0],n.getExternalFragmentsOrder(),t);r=(r=r.slice(0,20===r.length?-1:-6)).replace("T"," "),s="".concat(s.slice(0,e.index)).concat(r).concat(s.slice(e.index+e[0].length))})),a.getSource().updateParams({layerDefs:'{"'.concat(o.layerId,'": "').concat(s,'"}')}),a.changed(),this.emitLayerFilterApplied({layerPath:e,filter:s})}},{key:"getBounds",value:function(e){var t,n=this.getMetadataExtent();if(n){var r=this.getMetadataProjection();t=this.getMapViewer().convertExtentFromProjToMapProj(n,r)}return t}}]);var n,l}(_.z);function j(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 F(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:()=>E});var r=n(64426),i=n(28249),o=n(43994),a=n(70640),s=n(32814),l=n(71149),c=n(66138),u=n(99979),d=n(38096),h=n(59615),p=n.n(h),f=n(28596),g=n(79913),m=n(34028),y=n(60854),v=n(85813),b=n(13019),w=n(92288),x=n(10011),A=n(47598);function S(e,t,n){return t=(0,u.A)(t),(0,l.A)(e,C()?Reflect.construct(t,n||[],(0,u.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){function t(e,n,r){var i;(0,a.A)(this,t),i=S(this,t,[e,n,r]);var o={source:n,properties:{layerConfig:r}};return A.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(0,c.A)((0,u.A)(t.prototype),"getOLLayer",this).call(this)}},{key:"getOLSource",value:function(){return(0,c.A)((0,u.A)(t.prototype),"getOLSource",this).call(this)}},{key:"getLayerConfig",value:function(){return(0,c.A)((0,u.A)(t.prototype),"getLayerConfig",this).call(this)}},{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=pjson"),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,x.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(){(0,c.A)((0,u.A)(t.prototype),"onLoaded",this).call(this),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)}return t}}]);var n}(A.z)},64873:(e,t,n)=>{"use strict";n.d(t,{V:()=>I});var r=n(47361),i=n(28249),o=n(43994),a=n(70640),s=n(32814),l=n(71149),c=n(66138),u=n(99979),d=n(38096),h=n(64426),p=n(59615),f=n.n(p),g=n(97493),m=n(28596),y=n(76262),v=n(85813),b=n(79913),w=n(34028),x=n(62338),A=n(60854),S=n(92288),C=n(10011),E=n(47598);function _(e,t,n){return t=(0,u.A)(t),(0,l.A)(e,k()?Reflect.construct(t,n||[],(0,u.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){!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 O(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 WeakSet,I=function(e){function t(e,n,r,i){var o;if((0,a.A)(this,t),T(o=_(this,t,[e,n,r]),P),(0,h.A)(o,"WMSStyles",[]),!i)throw new Error("No layer capabilities were provided");var s={source:n,properties:{layerCapabilities:i,layerConfig:r}};return E.z.initOptionsWithInitialSettings(s,r),o.olLayer=new m.A(s),o}return(0,d.A)(t,e),(0,s.A)(t,[{key:"getOLLayer",value:function(){return(0,c.A)((0,u.A)(t.prototype),"getOLLayer",this).call(this)}},{key:"getOLSource",value:function(){return(0,c.A)((0,u.A)(t.prototype),"getOLSource",this).call(this)}},{key:"getLayerConfig",value:function(){return(0,c.A)((0,u.A)(t.prototype),"getLayerConfig",this).call(this)}},{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:(l=(0,o.A)(f().mark((function e(n){var r,i,o,a,s,l,c,u,d,h,p,m,v,w,x,S,C,E;return f().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),A.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(){(0,c.A)((0,u.A)(t.prototype),"onLoaded",this).call(this),this.applyViewFilter("",this.getLayerConfig().layerFilter||"")}},{key:"applyViewFilter",value:function(e,t){var n=this,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=this.getLayerConfig(),a=this.getOLLayer();A.vF.logTraceCore("GVWMS - applyViewFilter",e);var s=a.getSource();if(s){var l=t;if(o.legendFilterIsOff=!r,r&&(o.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,i.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=w.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,h.A)({},u,l.replace(/\s*/g,""))),a.changed(),this.emitLayerFilterApplied({layerPath:e,filter:l})}}}},{key:"getBounds",value:function(e){var t,n=this.getLayerConfig(),i=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=O(P,this,z).call(this,(null==i?void 0:i.getCode())||"");if(s){var l=(0,r.A)(s,2),c=l[0],u=l[1];a=this.getMapViewer().convertExtentFromProjToMapProj(u,c)}return o&&a&&(a=(0,x.getExtentIntersection)(a,o)),a}}]);var n,l}(E.z);function M(e,t){var n=O(P,this,L).call(this,e.layerId);if(Array.isArray(null==n?void 0:n.Style)){var i,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,r.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===(i=o)||void 0===i?void 0:i.LegendURL))return o.LegendURL.find((function(e){return"image/png"===e.Format}))||null}return null}function L(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=this.getLayerConfig().getMetadata())||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(t).forEach((function(r){if(!r.endsWith("Geometry")&&!r.startsWith("@")){var i=r.split(":").slice(-1)[0];"#text"in t[r]?f.fieldInfo["".concat(n).concat(n?".":"").concat(i)]={fieldKey:p++,value:t[r]["#text"],dataType:"string",alias:"".concat(n).concat(n?".":"").concat(i),domain:null}:e(t[r],i)}}))}(e),l)?(p=0,Object.keys(f.fieldInfo).filter((function(e){if(null!=l&&l.includes(e)){var t=l.indexOf(e);return f.fieldInfo[e].fieldKey=p++,f.fieldInfo[e].alias=u[t],f.fieldInfo[e].dataType=c[t],!1}return!0})).forEach((function(e){delete f.fieldInfo[e]})),d.push(f)):d.push(f);return d}function N(e,t){var n=Object.keys(e).find((function(e){return e.endsWith(t)}));return n?e[n]:void 0}function z(e){var t,n=null===(t=this.getLayerConfig().getMetadata())||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]]]}}},13019:(e,t,n)=>{"use strict";n.d(t,{UB:()=>a,Vk:()=>o,k7:()=>s});n(59615);var r=n(76262),i=(n(60854),n(79913));function o(e,t,n){var o,a=e.getMetadata().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.getMetadata())||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.getMetadata())||void 0===n?void 0:n.fields).find((function(e){return e.name===t}));return i?(0,r.KX)(i.domain):null}},18934:(e,t,n)=>{"use strict";n.d(t,{p:()=>C});var r=n(64426),i=n(28249),o=n(70640),a=n(32814),s=n(71149),l=n(66138),c=n(99979),u=n(38096),d=n(44999),h=n(34028),p=n(5739),f=n(92288),g=n(60854),m=n(10011),y=n(13019),v=n(93866),b=n(79913);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;t2&&void 0!==arguments[2])||arguments[2];g.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=h.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,m.WN)([{nodeType:p.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:"calculateStyleForFeature",value:function(e,t,n,i,o,a){var s=e.getStyle(i)||{};return(0,m.nS)(t,s,n,o,a,(function(t,n){g.vF.logDebug("A new style has been created on-the-fly",t,e),e.setStyle(i,x(x({},s),(0,r.A)({},t,n)))}))}}])}(v.Z)},98010:(e,t,n)=>{"use strict";n.d(t,{M:()=>I});var r=n(43994),i=n(70640),o=n(32814),a=n(64426),s=n(59615),l=n.n(s),c=n(16221),u=n(79913),d=n(85182),h=n(92288),p=n(10454),f=n(22238),g=n(27174),m=n(81603),y=n(18934),v=n(64873),b=n(60854);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,_=new WeakMap,k=new WeakMap,T=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,_,[]),w(this,k,[]),w(this,T,void 0),w(this,O,void 0),this.layerApi=t,S(T,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(T,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(){var e;return"loaded"===(null===(e=t.getLayerConfig(n))||void 0===e?void 0:e.layerStatus)}),2e4);case 2:if(!A(_,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(_,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(T,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(k,this),e)}},{key:"offLayerSetUpdated",value:function(e){c.A.offEvent(A(k,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(k,this),e)}},49731:(e,t,n)=>{"use strict";n.d(t,{P:()=>x});var r=n(43994),i=n(70640),o=n(32814),a=n(71149),s=n(66138),l=n(99979),c=n(38096),u=n(59615),d=n.n(u),h=n(38890),p=n(27174),f=n(64873),g=n(98010);function m(e,t,n){return t=(0,l.A)(t),(0,a.A)(e,y()?Reflect.construct(t,n||[],(0,l.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})()}function v(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 w=new WeakSet,x=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))){e.next=18;break}if(g.M.isStateQueryable(r,t)){e.next=8;break}return e.abrupt("return",Promise.resolve());case 8:return this.resultSet[t].queryStatus="processing",b(w,this,A).call(this,this.resultSet[t]),i=g.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:b(w,this,A).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}(g.M);function A(e){"loaded"===e.layerStatus&&h.F.propagateFeatureInfoToStore(this.getMapId(),e)}},50573:(e,t,n)=>{"use strict";n.d(t,{I:()=>C});var r=n(43994),i=n(70640),o=n(32814),a=n(71149),s=n(66138),l=n(99979),c=n(38096),u=n(59615),d=n.n(u),h=n(77914),p=n(16221),f=n(60854),g=n(98010),m=n(79913);function y(e,t,n){return t=(0,l.A)(t),(0,a.A)(e,v()?Reflect.construct(t,n||[],(0,l.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){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function w(e,t){return e.get(x(e,t))}function x(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 A=new WeakMap,S=new WeakSet,C=function(e){function t(e){var n,r,o;return(0,i.A)(this,t),n=y(this,t,[e]),b(r=n,o=S),o.add(r),function(e,t,n){b(e,t),t.set(e,n)}(n,A,[]),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(0,s.A)((0,l.A)(t.prototype),"onRegisterLayerCheck",this).call(this,e,n)&&g.M.isQueryableType(e)&&g.M.isSourceQueryable(e,n)}},{key:"onRegisterLayer",value:function(e,n){(0,s.A)((0,l.A)(t.prototype),"onRegisterLayer",this).call(this,e,n),this.resultSet[n].eventListenerEnabled=!0,this.resultSet[n].queryStatus="processed",this.resultSet[n].features=[]}},{key:"onPropagateToStore",value:function(e,t){x(S,this,E).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){if(!g.M.isStateQueryable(i,e))return;r.resultSet[e].features=void 0,r.resultSet[e].queryStatus="processing",x(S,r,E).call(r,r.resultSet[e]);var o=g.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",x(S,r,E).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 x(S,this,k).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?x(S,this,_).call(this,e,!0):Object.keys(this.resultSet).forEach((function(e){x(S,t,_).call(t,e,!0)}))}},{key:"disableClickListener",value:function(e){var t=this;e?x(S,this,_).call(this,e,!1):Object.keys(this.resultSet).forEach((function(e){x(S,t,_).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,m.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,m.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(w(A,this),e)}},{key:"offQueryEnded",value:function(e){p.A.offEvent(w(A,this),e)}}]);var n}(g.M);function E(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 _(e,t){this.resultSet[e].eventListenerEnabled=t,this.resultSet[e].features=[],x(S,this,E).call(this,this.resultSet[e])}function k(e){p.A.emitEvent(this,w(A,this),e)}},51520:(e,t,n)=>{"use strict";n.d(t,{E:()=>v});var r=n(70640),i=n(32814),o=n(71149),a=n(66138),s=n(99979),l=n(38096),c=n(44481),u=n.n(c),d=n(60854),h=n(27174),p=n(64873),f=n(98010),g=n(98030);function m(e,t,n){return t=(0,s.A)(t),(0,o.A)(e,y()?Reflect.construct(t,n||[],(0,s.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){function t(e){var n;return(0,r.A)(this,t),n=m(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(0,a.A)((0,s.A)(t.prototype),"onRegisterLayerCheck",this).call(this,e,n)&&f.M.isQueryableType(e)&&!(e instanceof h.GB)&&!(e instanceof p.V)&&f.M.isSourceQueryable(e,n)}},{key:"onRegisterLayer",value:function(e,n){(0,a.A)((0,s.A)(t.prototype),"onRegisterLayer",this).call(this,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){if(!f.M.isStateQueryable(r,n))return;t.resultSet[n].feature=void 0,t.resultSet[n].queryStatus="init",g.d.setMapHoverFeatureInfo(t.getMapId(),t.resultSet[n].feature),f.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"}g.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",g.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)}}])}(f.M)},52842:(e,t,n)=>{"use strict";n.d(t,{C:()=>v});var r=n(70640),i=n(32814),o=n(71149),a=n(66138),s=n(99979),l=n(38096),c=n(55950),u=n(60854),d=n(98010);function h(e,t,n){return t=(0,s.A)(t),(0,o.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})()}function f(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function g(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,y=new WeakSet,v=function(e){function t(e){var n,i,o,a,s,l;return(0,r.A)(this,t),n=h(this,t,[e]),f(i=n,o=y),o.add(i),function(e,t,n){f(e,t),t.set(e,n)}(n,m,void 0),a=m,s=n,l=g(y,n,A).bind(n),a.set(g(a,s),l),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){(0,a.A)((0,s.A)(t.prototype),"onRegisterLayerConfig",this).call(this,e),this.resultSet[e.layerPath].legendQueryStatus="init",g(y,this,w).call(this,e.layerPath,!1)}},{key:"onRegisterLayer",value:function(e,n){var r,i;(0,a.A)((0,s.A)(t.prototype),"onRegisterLayer",this).call(this,e,n),e.onLayerStyleChanged((i=this,(r=m).get(g(r,i))))}},{key:"onProcessLayerStatusChanged",value:function(e,n){(0,a.A)((0,s.A)(t.prototype),"onProcessLayerStatusChanged",this).call(this,e,n),g(y,this,w).call(this,e.layerPath,!1)}},{key:"onPropagateToStore",value:function(e,t){g(y,this,b).call(this,e)}},{key:"onDeleteFromStore",value:function(e){c.K.deleteLayerFromLegendLayers(this.getMapId(),e)}}])}(d.M);function b(e){c.K.propagateLegendToStore(this.getMapId(),e)}function w(e,t){var n=this,r=this.layerApi.getGeoviewLayerHybrid(e),i=null==r?void 0:r.getLayerConfig(e);if(r&&i&&"querying"!==this.resultSet[e].legendQueryStatus&&(g(y,this,x).call(this,i)||t)){this.resultSet[e].legendQueryStatus="querying",g(y,this,b).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,g(y,n,b).call(n,n.resultSet[e]),n.onLayerSetUpdatedProcess(e))})).catch((function(e){u.vF.logPromiseFailed("legendPromise in #checkQueryLegend in LegendsLayerSet",e)}))}}function x(e){return!(null==e||!e.isGreaterThanOrEqualTo("processed"))&&"init"===this.resultSet[e.layerPath].legendQueryStatus}function A(e,t){g(y,this,w).call(this,t.layerPath,!0)}},45564:(e,t,n)=>{"use strict";n.d(t,{A:()=>St});var r=n(43994),i=n(28249),o=n(70640),a=n(32814),s=n(64426),l=n(59615),c=n.n(l),u=n(76352),d=n(86253),h=n(73846),p=n(9063),f=n(31421),g=n(83605),m=n(62754),y=n(48690),v=n(2399),b=n(98030),w=n(68709),x=n(79913),A=n(60854),S=n(48660),C=n(12358),E=n(71587),_=n(27174),k=n(10454),T=n(52375),O=n(21838),P=n(26029),I=n(78752),M=n(55373),L=n(12764),R=n(59128),j=n(38509),F=n(51520),D=n(49731),N=n(52842),z=n(50573),V=n(61970),B=n(62338),$=n(16221),G=n(69070),U=n(6106),W=n(80084),q=n(35587),H=n(60133),Y=n(81603),K=n(82015),X=n(71149),Z=n(66138),J=n(99979),Q=n(38096),ee=n(28596),te=n(97493),ne=n(76262),re=n(85813),ie=n(92288),oe=n(10011),ae=n(47598);function se(e,t,n){return t=(0,J.A)(t),(0,X.A)(e,le()?Reflect.construct(t,n||[],(0,J.A)(e).constructor):t.apply(e,n))}function le(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(le=function(){return!!e})()}function ce(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 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 de=new WeakSet,he=function(e){function t(e,n,r){var i;(0,o.A)(this,t),ce(i=se(this,t,[e,n,r]),de);var a={source:n};return ae.z.initOptionsWithInitialSettings(a,r),i.olLayer=new ee.A(a),i}return(0,Q.A)(t,e),(0,a.A)(t,[{key:"getOLLayer",value:function(){return(0,Z.A)((0,J.A)(t.prototype),"getOLLayer",this).call(this)}},{key:"getOLSource",value:function(){return(0,Z.A)((0,J.A)(t.prototype),"getOLSource",this).call(this)}},{key:"getLayerConfig",value:function(){return(0,Z.A)((0,J.A)(t.prototype),"getLayerConfig",this).call(this)}},{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,ue(de,this,pe).call(this,t);case 4:if(n=e.sent){e.next=8;break}return r={type:re.y6.IMAGE_STATIC,legend:null},e.abrupt("return",r);case 8:return e.next=10,(0,oe.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:re.y6.IMAGE_STATIC,legend:o},e.abrupt("return",a);case 19:return s={type:re.y6.IMAGE_STATIC,legend:null},e.abrupt("return",s);case 23:return e.prev=23,e.t0=e.catch(1),A.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}(ae.z);function pe(e){var t=this;return new Promise((function(n){var r=(0,x.getLocalizedValue)(e.source.dataAccessPath,ie.K.getDisplayLanguage(t.getMapId()));r?(r=r.toLowerCase().startsWith("http:")?"https".concat(r.slice(4)):r,te.A.get(r,{responseType:"blob",withCredentials:!1}).then((function(e){var t;n((t=(0,ne.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 fe=n(64873),ge=n(12791),me=n(93866);function ye(e,t,n){return t=(0,J.A)(t),(0,X.A)(e,ve()?Reflect.construct(t,n||[],(0,J.A)(e).constructor):t.apply(e,n))}function ve(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ve=function(){return!!e})()}var be=function(e){function t(){return(0,o.A)(this,t),ye(this,t,arguments)}return(0,Q.A)(t,e),(0,a.A)(t,[{key:"getOLLayer",value:function(){return(0,Z.A)((0,J.A)(t.prototype),"getOLLayer",this).call(this)}}])}(me.Z),we=n(13019);function xe(e,t,n){return t=(0,J.A)(t),(0,X.A)(e,Ae()?Reflect.construct(t,n||[],(0,J.A)(e).constructor):t.apply(e,n))}function Ae(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ae=function(){return!!e})()}var Se=function(e){function t(e,n,r){var i;(0,o.A)(this,t),i=xe(this,t,[e,n,r]);var a={source:n};return be.initOptionsWithInitialSettings(a,r),i.olLayer=new ge.A(a),i}return(0,Q.A)(t,e),(0,a.A)(t,[{key:"getOLLayer",value:function(){return(0,Z.A)((0,J.A)(t.prototype),"getOLLayer",this).call(this)}},{key:"getOLSource",value:function(){return(0,Z.A)((0,J.A)(t.prototype),"getOLSource",this).call(this)}},{key:"getLayerConfig",value:function(){return(0,Z.A)((0,J.A)(t.prototype),"getLayerConfig",this).call(this)}},{key:"getFieldType",value:function(e){return(0,we.Vk)(this.getLayerConfig(),e,ie.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}}])}(be),Ce=n(18934);function Ee(e,t,n){return t=(0,J.A)(t),(0,X.A)(e,_e()?Reflect.construct(t,n||[],(0,J.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})()}var ke=function(e){function t(e,n,r){return(0,o.A)(this,t),Ee(this,t,[e,n,r])}return(0,Q.A)(t,e),(0,a.A)(t,[{key:"getOLLayer",value:function(){return(0,Z.A)((0,J.A)(t.prototype),"getOLLayer",this).call(this)}},{key:"getLayerConfig",value:function(){return(0,Z.A)((0,J.A)(t.prototype),"getLayerConfig",this).call(this)}},{key:"getFieldType",value:function(e){return(0,we.UB)(this.getLayerConfig(),e)}},{key:"getFieldDomain",value:function(e){return(0,we.k7)(this.getLayerConfig(),e)}}])}(Ce.p);function Te(e,t,n){return t=(0,J.A)(t),(0,X.A)(e,Oe()?Reflect.construct(t,n||[],(0,J.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),Te(this,t,[e,n,r])}return(0,Q.A)(t,e),(0,a.A)(t,[{key:"getLayerConfig",value:function(){return(0,Z.A)((0,J.A)(t.prototype),"getLayerConfig",this).call(this)}}])}(Ce.p);function Ie(e,t,n){return t=(0,J.A)(t),(0,X.A)(e,Me()?Reflect.construct(t,n||[],(0,J.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,Q.A)(t,e),(0,a.A)(t,[{key:"getLayerConfig",value:function(){return(0,Z.A)((0,J.A)(t.prototype),"getLayerConfig",this).call(this)}},{key:"getFieldType",value:function(e){var t=this.getLayerConfig().getMetadata()[e].type.split(":").slice(-1)[0];return"date"===t?"date":["int","number"].includes(t)?"number":"string"}}])}(Ce.p),Re=n(36116);function je(e,t,n){return t=(0,J.A)(t),(0,X.A)(e,Fe()?Reflect.construct(t,n||[],(0,J.A)(e).constructor):t.apply(e,n))}function Fe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Fe=function(){return!!e})()}var De=function(e){function t(){return(0,o.A)(this,t),je(this,t,arguments)}return(0,Q.A)(t,e),(0,a.A)(t,[{key:"getOLLayer",value:function(){return(0,Z.A)((0,J.A)(t.prototype),"getOLLayer",this).call(this)}},{key:"getOLSource",value:function(){return(0,Z.A)((0,J.A)(t.prototype),"getOLSource",this).call(this)}},{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}}])}(me.Z);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 ze(e,t,n){return t=(0,J.A)(t),(0,X.A)(e,Ve()?Reflect.construct(t,n||[],(0,J.A)(e).constructor):t.apply(e,n))}function Ve(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ve=function(){return!!e})()}var Be=function(e){function t(e,n,r){var i;(0,o.A)(this,t),i=ze(this,t,[e,n,r]);var a={source:n};return De.initOptionsWithInitialSettings(a,r),i.olLayer=new Re.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(ut(gt,this)).length]}},{key:"checkFeatureInfoLayerResultSetsReady",value:function(e){var t=this,n=!0;return this.getLayerEntryConfigs().forEach((function(r){var i;if(r instanceof H.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=ut(ft,this)[e]?null===(t=ut(ft,this)[e].parentLayerConfig)||void 0===t?void 0:t.listOfLayerEntryConfig.findIndex((function(t){return t===ut(ft,r)[e]})):void 0,a=null===(n=ut(ft,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 ut(ft,r)[e])})),a&&a.splice(o,1),ut(gt,this)[i[0]]){var s=ut(gt,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 ut(gt,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(ut(ft,this)),n=[];return t.forEach((function(t){Object.keys(ut(ft,e)).filter((function(e){return e.startsWith(t)})).forEach((function(t){var r=st.K.getLayerBounds(e.getMapId(),t);!n.length&&r?n=r:r&&(n=(0,B.getMinOrMaxExtents)(n,r))}))})),n}},{key:"refreshLayers",value:function(){this.getGeoviewLayers().forEach((function(e){!function e(t){if(t){var n=t.get("layers");if(n)n.forEach((function(t){e(t)}));else t.get("source").refresh()}}(e.olRootLayer)}))}},{key:"setItemVisibility",value:function(e,t,n){var r,i,o,a,s=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],l=this.getGeoviewLayerHybrid(e);if(n&&!b.d.getMapVisibilityFromOrderedLayerInfo(this.getMapId(),e)&&b.d.setOrToggleMapLayerVisibility(this.getMapId(),e,!0),"classBreaks"===(null==l||null===(r=l.getStyle(e))||void 0===r||null===(r=r[t.geometryType])||void 0===r?void 0:r.styleType)){var c=l.getStyle(e)[t.geometryType],u=c.classBreakStyleInfo.find((function(e){return e.label===t.name}));u?u.visible=n:c.defaultVisible=n}else if("uniqueValue"===(null==l||null===(i=l.getStyle(e))||void 0===i||null===(i=i[t.geometryType])||void 0===i?void 0:i.styleType)){var d=l.getStyle(e)[t.geometryType],h=d.uniqueValueStyleInfo.find((function(e){return e.label===t.name}));h?h.visible=n:d.defaultVisible=n}s&&st.K.setItemVisibility(this.getMapId(),t,n),null===(o=(a=this.getGeoviewLayerHybrid(e)).applyViewFilter)||void 0===o||o.call(a,e,""),ht(At,this,zt).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){b.d.setOrToggleMapLayerVisibility(this.getMapId(),e,t)}},{key:"setLayerName",value:function(e,t){var n=this.getGeoviewLayerHybrid(e);n?n.setLayerName(e,(0,x.createLocalizedString)(t)):A.vF.logError("Unable to find layer ".concat(e))}},{key:"redefineFeatureFields",value:function(e,t,n){var r,i=ut(ft,this)[e];i?null!==(r=i.source)&&void 0!==r&&r.featureInfo&&!1!==i.source.featureInfo.queryable?i.source.featureInfo[n]=(0,x.createLocalizedString)(t):A.vF.logError("".concat(e," is not queryable")):A.vF.logError("Unable to find layer ".concat(e))}},{key:"calculateBounds",value:function(e){var t,n=this.getLayerEntryConfig(e),r=[];return n&&ht(At,this,Ft).call(this,n,r),r.forEach((function(e){t=(0,B.getExtentUnionMaybe)(t,e)})),t}},{key:"onLayerAdded",value:function(e){$.A.onEvent(ut(bt,this),e)}},{key:"offLayerAdded",value:function(e){$.A.offEvent(ut(bt,this),e)}},{key:"onLayerRemoved",value:function(e){$.A.onEvent(ut(wt,this),e)}},{key:"offLayerRemoved",value:function(e){$.A.offEvent(ut(wt,this),e)}},{key:"onLayerItemVisibilityToggled",value:function(e){$.A.onEvent(ut(xt,this),e)}},{key:"offLayerItemVisibilityToggled",value:function(e){$.A.offEvent(ut(xt,this),e)}}],[{key:"generateArrayOfLayerOrderInfo",value:function(e){var t=[],n=function e(n,r){var i,o,a,s,l,c,u,d,h,p=r.endsWith(n.layerId)?r:"".concat(r,"/").concat(n.layerId),f={layerPath:p,visible:!1!==(null===(i=n.initialSettings)||void 0===i||null===(i=i.states)||void 0===i?void 0:i.visible),queryable:void 0===(null===(o=n.source)||void 0===o||null===(o=o.featureInfo)||void 0===o?void 0:o.queryable)||(null===(a=n.source)||void 0===a||null===(a=a.featureInfo)||void 0===a?void 0:a.queryable),hoverable:void 0===(null===(s=n.initialSettings)||void 0===s||null===(s=s.states)||void 0===s?void 0:s.hoverable)||(null===(l=n.initialSettings)||void 0===l||null===(l=l.states)||void 0===l?void 0:l.hoverable),legendCollapsed:void 0!==(null===(c=n.initialSettings)||void 0===c||null===(c=c.states)||void 0===c?void 0:c.legendCollapsed)&&(null===(u=n.initialSettings)||void 0===u||null===(u=u.states)||void 0===u?void 0:u.legendCollapsed)};(t.push(f),null!==(d=n.listOfLayerEntryConfig)&&void 0!==d&&d.length)&&(null===(h=n.listOfLayerEntryConfig)||void 0===h||h.forEach((function(t){e(t,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 Ct(e){var t=this;return e&&e.length>0?e.filter((function(n,r){for(var i=0;ii)return ht(At,t,Et).call(t,n),!1;return!0})):[]}function Et(e){G.FHQ.maps[this.getMapId()].notifications.showError("validation.layer.usedtwice",[e.geoviewLayerId,this.getMapId()]),A.vF.logError("Duplicate use of geoview layer identifier ".concat(e.geoviewLayerId," on map ").concat(this.getMapId()))}function _t(e){var t,n=this;if((0,C.vM)(e)?t=new C.kx(this.getMapId(),e):(0,E.P0)(e)?t=new E.OH(this.getMapId(),e):(0,j.WW)(e)?t=new j.pf(this.getMapId(),e):(0,_.Xx)(e)?t=new _.GB(this.getMapId(),e):(0,k.IU)(e)?t=new k.zt(this.getMapId(),e):(0,T.$f)(e)?t=new T.Uw(this.getMapId(),e):(0,O.yl)(e)?t=new O.$x(this.getMapId(),e):(0,P.HO)(e)?t=new P.S6(this.getMapId(),e):(0,I.OV)(e)?t=new I.dS(this.getMapId(),e):(0,M.dr)(e)?t=new M.ke(this.getMapId(),e):(0,L.ik)(e)?t=new L.nd(this.getMapId(),e):(0,R.c9)(e)&&(t=new R.RZ(this.getMapId(),e)),t){ut(gt,this)[t.geoviewLayerId]=t,t.getAllLayerEntryConfigs().forEach((function(e){A.vF.logDebug("Layer entry config being registered for ".concat(e.layerPath," on map ").concat(n.getMapId()),e),n.registerLayerConfigInit(e)})),t.onLayerEntryProcessed((function(e,t){A.vF.logDebug("Layer entry config processed for ".concat(t.config.layerPath," on map ").concat(n.getMapId()),t.config)})),t.onLayerRequesting((function(e,t){if(A.vF.logDebug("Requesting layer for ".concat(t.config.layerPath," on map ").concat(n.getMapId()),t.config),He.LAYERS_HYBRID_MODE){var r=ht(At,n,kt).call(n,n.getMapId(),e,t.source,t.config,t.extraConfig);if(r)return r.getOLLayer()}})),t.onLayerCreation((function(e,t){A.vF.logDebug("OpenLayer created for ".concat(t.config.layerPath," on map ").concat(n.getMapId()),t.config),ut(mt,n)[t.config.layerPath]=t.layer}));var r=new Promise((function(e,r){t.createGeoViewLayers().then((function(){ht(At,n,Tt).call(n,t),e(),ht(At,n,Dt).call(n,{layer:t})})).catch((function(e){r(e)}))}));return{layer:t,promiseLayer:r}}}function kt(e,t,n,r,i){var o,a,s,l;if(He.LAYERS_HYBRID_MODE&&(o=t.getLayerMetadata(r.layerPath),a=t.getTemporalDimension(r.layerPath),s=t.getStyle(r.layerPath),r instanceof H.d&&o&&r.setMetadata(o)),n instanceof u.A&&r instanceof Xe.q?l=new Y.Y(e,n,r):n instanceof u.A&&r instanceof et.Q?l=new K.o(e,n,r):n instanceof f.A&&r instanceof tt.V?l=new he(e,n,r):n instanceof d.A&&r instanceof Qe.Q?l=new fe.V(e,n,r,i.layerCapabilities):n instanceof g.A&&r instanceof Ke.h?l=new ke(e,n,r):n instanceof g.A&&r instanceof Ze.d?l=new Pe(e,n,r):n instanceof g.A&&r instanceof Je.j?l=new Le(e,n,r):n instanceof g.A&&r instanceof it.q?l=new Ue(e,n,r):n instanceof g.A&&r instanceof ot.A?l=new Ye(e,n,r):n instanceof h.A&&r instanceof nt.E?l=new Be(e,n,r):n instanceof p.A&&r instanceof rt.m&&(l=new Se(e,n,r)),l)return ut(yt,this)[r.layerPath]=l,a&&l.setTemporalDimension(a),s&&l.setStyle(r.layerPath,s),l.init(),l;A.vF.logError("Unsupported GVLayer for ".concat(r.layerPath))}function Tt(e){var t=this;0!==e.layerLoadError.length&&e.layerLoadError.forEach((function(e){var n=e.layer,r=e.loggerMessage;A.vF.logError(r),G.FHQ.maps[t.getMapId()].notifications.showError("validation.layer.loadfailed",[n,t.getMapId()])})),e.allLayerStatusAreGreaterThanOrEqualTo("error")||this.mapViewer.map.addLayer(e.olRootLayer),A.vF.logInfo("GeoView Layer ".concat(e.geoviewLayerId," added to map ").concat(this.getMapId()),e),b.d.setLayerZIndices(this.getMapId())}function Ot(e){if(-1===b.d.getMapIndexFromOrderedLayerInfo(this.getMapId(),e.layerPath)){var t=e.layerPath.split(".")[1];if(-1!==b.d.getMapIndexFromOrderedLayerInfo(this.getMapId(),t))b.d.replaceOrderedLayerInfo(this.getMapId(),e,t);else if(e.parentLayerConfig){var n=e.layerPath.split("/");n.pop();var r=n.join("/"),i=b.d.getMapIndexFromOrderedLayerInfo(this.getMapId(),r),o=b.d.getMapOrderedLayerInfo(this.getMapId()).filter((function(e){return e.layerPath.startsWith(r)})).length;-1!==i?b.d.addOrderedLayerInfo(this.getMapId(),e,i+o):b.d.addOrderedLayerInfo(this.getMapId(),e.parentLayerConfig)}else b.d.addOrderedLayerInfo(this.getMapId(),e)}}function Pt(e){return It.apply(this,arguments)}function It(){return(It=(0,r.A)(c().mark((function e(t){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,x.whenThisThen)((function(){return t.isGreaterThanOrEqualTo("processed")}),Vt._);case 3:this.getGeoviewLayerHybrid(t.layerPath)&&U.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 Mt(e){b.d.removeOrderedLayerInfo(this.getMapId(),e.layerPath)}function Lt(e){U.t.removeTimeSliderLayer(this.getMapId(),e.layerPath)}function Rt(e){W.U.removeGeochartChart(this.getMapId(),e.layerPath)}function jt(e){q.Z.removeLayerPath(this.getMapId(),e.layerPath)}function Ft(e,t){var n=this;if((0,S.KD)(e))e.listOfLayerEntryConfig.forEach((function(e){ht(At,n,Ft).call(n,e,t)}));else{var r,i=null===(r=this.getGeoviewLayerHybrid(e.layerPath))||void 0===r?void 0:r.getBounds(e.layerPath);i&&t.push(i)}}function Dt(e){$.A.emitEvent(this,ut(bt,this),e)}function Nt(e){$.A.emitEvent(this,ut(wt,this),e)}function zt(e){$.A.emitEvent(this,ut(xt,this),e)}He=St;var Vt={_:2e4};(0,s.A)(St,"LAYERS_HYBRID_MODE",!1)},62754:(e,t,n)=>{"use strict";n.d(t,{h:()=>V});var r=n(43994),i=n(70640),o=n(32814),a=n(59615),s=n.n(a),l=n(64426),c=n(97493),u=n(48660),d=n(85813),h=n(79913),p=n(60854),f=n(74490),g=n(91777),m=n(22769),y=n(39225),v=n(97752),b=n(51397),w=n(16535),x=n(27918),A=n(91195),S=n(80995);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){var o=r.layers[0];if(o){var a=o.layerType,s=o.layerEntries,l=o.name,c=o.url,C=o.id,E=o.serverType,_=c.indexOf("FeatureServer")>-1;if(a!==d.y6.ESRI_DYNAMIC||_)if(_)for(var k=function(){var e="".concat(c,"/").concat(s[T].index),t={geoviewLayerId:"".concat(C),geoviewLayerName:(0,h.createLocalizedString)(l),metadataAccessPath:(0,h.createLocalizedString)(e),geoviewLayerType:d.y6.ESRI_FEATURE,listOfLayerEntryConfig:[]};t.listOfLayerEntryConfig=s.map((function(e){return new v.h({geoviewLayerConfig:t,schemaTag:d.y6.ESRI_FEATURE,entryType:u.hJ.VECTOR,layerId:"".concat(e.index),source:{format:"EsriJSON",dataAccessPath:(0,h.createLocalizedString)(c)}})})),n.push(t)},T=0;T{"use strict";n.d(t,{H:()=>j});var r=n(70640),i=n(32814),o=n(64426),a=n(94994),s=n(44999),l=n(83605),c=n(13645),u=n(25899),d=n(22840),h=n(47616),p=n(20662),f=n(17567),g=n(24438),m=n(67087),y=n(4180),v=n(62767),b=n(1660),w=n(41218),x=n(60854);function A(e,t,n){S(e,t),t.set(e,n)}function S(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function C(e,t,n){return e.set(_(e,t),n),n}function E(e,t){return e.get(_(e,t))}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 k=new WeakMap,T=new WeakMap,O=new WeakMap,P=new WeakMap,I=new WeakMap,M=new WeakMap,L=new WeakMap,R=new WeakSet,j=function(){return(0,i.A)((function e(t){var n,i;(0,r.A)(this,e),S(n=this,i=R),i.add(n),A(this,k,new l.A),(0,o.A)(this,"overlayLayer",void 0),A(this,T,"black"),A(this,O,new c.A({color:[0,0,0,.3]})),A(this,P,new u.Ay({stroke:new d.A({color:"black",width:1.25}),fill:E(O,this)})),A(this,I,new u.Ay({stroke:new d.A({color:"black",width:1.25})})),A(this,M,[]),A(this,L,null),this.overlayLayer=new s.A({source:E(k,this),map:t.map})}),[{key:"changeHighlightColor",value:function(e){C(T,this,e);var t=new d.A({color:"black",width:1.25}),n=[0,0,0,.3];switch(e){case"white":n=[255,255,255,.3],t=new d.A({color:"white",width:1.25});break;case"red":n=[255,0,0,.3],t=new d.A({color:"red",width:1.25});break;case"green":n=[0,255,255,.3],t=new d.A({color:"green",width:1.25});break;case"black":break;default:x.vF.logWarning("Ineligible color - defaulted to black")}E(O,this).setColor(n),E(P,this).setStroke(t),E(P,this).setFill(E(O,this))}},{key:"removeHighlight",value:function(e){if("all"===e&&E(M,this).length){for(var t=0;t=0;n--)(E(M,this)[n]===e||E(M,this)[n].startsWith("".concat(e,"-")))&&(E(k,this).getFeatureById(E(M,this)[n])&&E(k,this).removeFeature(E(k,this).getFeatureById(E(M,this)[n])),E(M,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);_(R,this,F).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);_(R,this,F).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,k=t.getCoordinates(),P=(0,a.v6)(e.geometry),I=0;I1&&void 0!==arguments[1]&&arguments[1];E(k,this).getFeatureById("geoLocatorFeature")&&(E(k,this).removeFeature(E(k,this).getFeatureById("geoLocatorFeature")),clearTimeout(E(L,this)));var r=(0,f.VY)(e),i=new p.A(r),o=E(I,this);i.setStyle(o),i.setId("geoLocatorFeature"),E(k,this).addFeature(i),n||C(L,this,setTimeout((function(){return E(k,t).removeFeature(E(k,t).getFeatureById("geoLocatorFeature"))}),5e3))}},{key:"removeBBoxHighlight",value:function(){E(k,this).removeFeature(E(k,this).getFeatureById("geoLocatorFeature"))}}])}();function F(e,t){e.setStyle(E(P,this)),e.setId(t),E(M,this).push(t),E(k,this).addFeature(e)}},48660:(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(85813),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,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)}},30924:(e,t,n)=>{"use strict";n.d(t,{F:()=>ut});var r=n(47361),i=n(43994),o=n(70640),a=n(32814),s=n(64426),l=n(44481),c=n.n(l),u=n(59615),d=n.n(u),h=n(66143),p=n(36203),f=n(86458),g=n(8259),m=n(58643),y=n(39534),v=n(45564),b=n(12311),w=n(69070),x=n(90763),A=n(97886),S=n(21350),C=n(18114),E=n(28249),_=n(80084),k=n(55950),T=n(98030),O=n(35587),P=n(6106),I=n(60854),M=n(16221);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){(0,o.A)(this,e),function(e,t){L(e,t),t.add(e)}(this,D),(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 k.K.getLayerPanelState(this.mapId,e)}},{key:"getLegendLayerInfo",value:function(e){return k.K.getLegendLayerInfo(this.mapId,e)}},{key:"getLegendCollapsedState",value:function(e){return T.d.getMapLegendCollapsedFromOrderedLayerInfo(this.mapId,e)}},{key:"getPluginState",value:function(e,t){if("geochart"===e){if(["geochartChartsConfig","layerDataArray","layerDataArrayBatchLayerPathBypass","selectedLayerPath"].includes(t))return _.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){T.d.setMapLegendCollapsed(this.mapId,e,t)}},{key:"setSelectedLayersTabLayer",value:function(e){k.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)(T.d.getMapLayerOrder(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))),T.d.setMapOrderedLayerInfo(e,o),j(D,this,z).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 z(e){M.A.emitEvent(this,R(F,this),e)}var V=n(71149),B=n(66138),$=n(99979),G=n(38096),U=n(64874),W=n(75320),q=n(22288),H=n(20662),Y=n(33611),K=n(44999),X=n(92425),Z=n(62821),J=n(25899),Q=n(17217),ee=n(94994),te=n(99565);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(62338),le=n(38902);function ce(e,t,n){return t=(0,$.A)(t),(0,V.A)(e,ue()?Reflect.construct(t,n||[],(0,$.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){he(e,t),t.set(e,n)}function he(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function pe(e,t){return e.get(fe(e,t))}function fe(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 ge=new WeakMap,me=new WeakMap,ye=new WeakSet,ve=function(e){function t(e){var n;(0,o.A)(this,t),function(e,t){he(e,t),t.add(e)}(n=ce(this,t,[e]),ye),de(n,ge,void 0),de(n,me,[]);var r,i,a,s={features:e.features,style:(0,se.convertTypeFeatureStyleToOpenLayersStyle)(e.style),hitTolerance:e.hitTolerance||0};return r=ge,i=n,a=new ae(s),r.set(fe(r,i),a),pe(ge,n).on("select",fe(ye,n,be).bind(n)),n}return(0,G.A)(t,e),(0,a.A)(t,[{key:"startInteraction",value:function(){(0,B.A)((0,$.A)(t.prototype),"startInteraction",this).call(this,pe(ge,this))}},{key:"stopInteraction",value:function(){(0,B.A)((0,$.A)(t.prototype),"stopInteraction",this).call(this,pe(ge,this))}},{key:"getFeatures",value:function(){return pe(ge,this).getFeatures()}},{key:"onSelectChanged",value:function(e){M.A.onEvent(pe(me,this),e)}},{key:"offSelectChanged",value:function(e){M.A.offEvent(pe(me,this),e)}}])}(le.N);function be(e){M.A.emitEvent(this,pe(me,this),e)}var we=n(83271),xe=n(23989),Ae=n(91424),Se=n(48818),Ce=n(23523),Ee=n(3104),_e=n(79913),ke=n(46457),Te=n(92288);function Oe(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Pe(e,t){return e.get(Ie(e,t))}function Ie(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,Le=new WeakSet,Re=function(){return(0,a.A)((function e(t){(0,o.A)(this,e),function(e,t){Oe(e,t),t.add(e)}(this,Le),(0,s.A)(this,"mapId",void 0),function(e,t,n){Oe(e,t),t.set(e,n)}(this,Me,[]),this.mapId=t}),[{key:"addNotificationMessage",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];Ie(Le,this,Fe).call(this,"info",e,t)}},{key:"addNotificationSuccess",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];Ie(Le,this,Fe).call(this,"success",e,t)}},{key:"addNotificationWarning",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];Ie(Le,this,Fe).call(this,"warning",e,t)}},{key:"addNotificationError",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];Ie(Le,this,Fe).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]:{};Ie(Le,this,De).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]:{};Ie(Le,this,De).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]:{};Ie(Le,this,De).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]:{};Ie(Le,this,De).call(this,"error",e,t,r),n&&this.addNotificationError(e,t)}},{key:"onSnackbarOpen",value:function(e){M.A.onEvent(Pe(Me,this),e)}},{key:"offSnackbarOpen",value:function(e){M.A.offEvent(Pe(Me,this),e)}}])}();function je(e,t){var n=(0,_e.getLocalizedMessage)(e,Te.K.getDisplayLanguage(this.mapId));return t.length>0&&(n=(0,_e.replaceParams)(t,n)),n}function Fe(e,t,n){var r={key:(0,_e.generateId)(),notificationType:e,message:Ie(Le,this,je).call(this,t,n),count:1};Te.K.addNotification(this.mapId,r).catch((function(e){I.vF.logPromiseFailed("addNotification in Notifications",e)}))}function De(e,t,n,r){var i={snackbarType:e,message:Ie(Le,this,je).call(this,t,n),button:r};Ie(Le,this,Ne).call(this,i)}function Ne(e){M.A.emitEvent(this,Pe(Me,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 Be(e,t,n){return e.set(Ge(e,t),n),n}function $e(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 Ue=new WeakMap,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 WeakSet,ut=function(){return(0,a.A)((function e(t,n){(0,o.A)(this,e),function(e,t){Ve(e,t),t.add(e)}(this,ct),(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),ze(this,Ue,void 0),ze(this,We,!1),ze(this,qe,!1),ze(this,He,!1),ze(this,Ye,!1),ze(this,Ke,[]),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,void 0),this.mapId=t.mapId,this.mapFeaturesConfig=t,Be(Ue,this,n),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 Re(this.mapId),this.modal=new Ee.ModalApi,this.basemap=new y.i(T.d.getBasemapOptions(this.mapId),this.mapId)}),[{key:"mapInit",get:function(){return $e(We,this)}},{key:"mapReady",get:function(){return $e(qe,this)}},{key:"mapLayersProcessed",get:function(){return $e(He,this)}},{key:"mapLayersLoaded",get:function(){return $e(Ye,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}),controls:[],keyboardEventTarget:document.getElementById("map-".concat(this.mapId))});return this.map=c,this.initMap(),c}},{key:"initMap",value:function(){this.map.on("moveend",Ge(ct,this,ht).bind(this)),Ge(ct,this,dt).call(this,this.getView()),"static"!==this.mapFeaturesConfig.map.interaction&&(this.map.on("pointermove",c()(Ge(ct,this,ft).bind(this),10,{leading:!0}).bind(this)),this.map.on("singleclick",c()(Ge(ct,this,gt).bind(this),1e3,{leading:!0}).bind(this))),Be(lt,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(),Be(We,this,!0),Ge(ct,this,_t).call(this),T.d.resetBasemap(this.mapId).then().catch((function(e){I.vF.logPromiseFailed(" MapEventProcessor.resetBasemap in map-viewer",e)})),Ge(ct,this,wt).call(this)}},{key:"addComponent",value:function(e,t){e&&t&&Ge(ct,this,Ft).call(this,{mapComponentId:e,component:t})}},{key:"removeComponent",value:function(e){e&&Ge(ct,this,Dt).call(this,{mapComponentId:e})}},{key:"addLocalizeRessourceBundle",value:function(e,t){$e(Ue,this).addResourceBundle(e,"translation",t,!0,!1)}},{key:"getDisplayLanguage",value:function(){return Te.K.getDisplayLanguage(this.mapId)}},{key:"getDisplayTheme",value:function(){return Te.K.getDisplayTheme(this.mapId)}},{key:"getMapState",value:function(){return T.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 T.d.getMapLayerOrder(this.mapId)}},{key:"setInteraction",value:function(e){T.d.setInteraction(this.mapId,e)}},{key:"setLanguage",value:function(e,t){if(g.ns.includes(e)){var n=Te.K.setDisplayLanguage(this.mapId,e);return t&&I.vF.logInfo("reset layers not implemented yet"),Ge(ct,this,Nt).call(this,{language:e}),n}return this.notifications.addNotificationError((0,_e.getLocalizedMessage)("validation.changeDisplayLanguage",e)),Promise.resolve([void 0,void 0])}},{key:"setProjection",value:function(e){return g.if.includes(Number(e))?T.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)?Te.K.setDisplayTheme(this.mapId,e):this.notifications.addNotificationError((0,_e.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(),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),Ge(ct,this,dt).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:(e=(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,T.d.zoomToExtent(this.mapId,t);case 2:case"end":return e.stop()}}),e,this)}))),function(t){return e.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(){T.d.clickMarkerIconHide(this.mapId)}},{key:"clickMarkerIconShow",value:function(e){T.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,_e.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:function(e){var t=this,n=document.getElementById(this.mapId);return n.classList.remove("geoview-map"),x.k.removePlugins(this.mapId).then((function(){var r;try{t.layer.removeAllGeoviewLayers()}catch(e){}t.overviewRoot&&(null===(r=t.overviewRoot)||void 0===r||r.unmount()),(0,w.d1f)(t.mapId),(0,m.e4)(t.mapId),e&&n.remove(),setTimeout((function(){return delete w.FHQ.maps[t.mapId]}),1e3)})).catch((function(e){I.vF.logError("Couldn't remove map in map-viewer",e)})),n}},{key:"reload",value:function(){var e=this.remove(!1),t=T.d.getStoreConfig(this.mapId);setTimeout((function(){return w.FHQ.createMapFromConfig(e.id,JSON.stringify(t)).catch((function(e){I.vF.logError("Couldn't reload the map in map-viewer",e)}))}),1500)}},{key:"zoomToExtent",value:function(e,t){return T.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 T.d.zoomToExtent(this.mapId,r,t)}},{key:"fitBounds",value:function(e){var t,n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(e){var i=this.getMapState().currentProjection;t=r?b.M.transformExtent(e,"EPSG:".concat(r),b.M.PROJECTIONS[i],20):b.M.transformExtent(e,b.M.PROJECTIONS[i],b.M.PROJECTIONS[i],25)}else this.layer.getGeoviewLayerIds().forEach((function(e){var r;if(t){var i,o=null===(i=n.layer.getGeoviewLayer(e))||void 0===i?void 0:i.getMetadataBounds(e);o&&(t=[Math.min(o[0],t[0]),Math.min(o[1],t[1]),Math.max(o[2],t[2]),Math.max(o[3],t[3])])}else t=null===(r=n.layer.getGeoviewLayer(e))||void 0===r?void 0:r.getMetadataBounds(e)}));t&&(this.getView().fit(t,{size:this.map.getSize()}),this.getView().setZoom(this.getView().getZoom()-.15))}},{key:"initSelectInteractions",value:function(){var e=new ve({mapViewer:this,hitTolerance:5});return e.startInteraction(),e}},{key:"initExtentInteractions",value:function(){var e=new xe.z({mapViewer:this,pixelTolerance:5});return e.startInteraction(),e}},{key:"initTranslateInteractions",value:function(){var e=this.initSelectInteractions().getFeatures(),t=new Ce.H({mapViewer:this,features:e});return t.startInteraction(),t}},{key:"initDrawInteractions",value:function(e,t,n){var r=new we.X({mapViewer:this,geometryGroupKey:e,type:t,style:n});return r.startInteraction(),r}},{key:"initModifyInteractions",value:function(e){var t=new Ae.B({mapViewer:this,geometryGroupKey:e});return t.startInteraction(),t}},{key:"initSnapInteractions",value:function(e){var t=new Se.P({mapViewer:this,geometryGroupKey:e});return t.startInteraction(),t}},{key:"checkNorth",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:ke.Tg[1],y:ke.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:"onMapInit",value:function(e){M.A.onEvent($e(Ke,this),e)}},{key:"offMapInit",value:function(e){M.A.offEvent($e(Ke,this),e)}},{key:"onMapReady",value:function(e){M.A.onEvent($e(Xe,this),e)}},{key:"offMapReady",value:function(e){M.A.offEvent($e(Xe,this),e)}},{key:"onMapLayersProcessed",value:function(e){M.A.onEvent($e(Ze,this),e)}},{key:"offMapLayersProcessed",value:function(e){M.A.offEvent($e(Ze,this),e)}},{key:"onMapLayersLoaded",value:function(e){M.A.onEvent($e(Je,this),e)}},{key:"offMapLayersLoaded",value:function(e){M.A.offEvent($e(Je,this),e)}},{key:"onMapMoveEnd",value:function(e){M.A.onEvent($e(Qe,this),e)}},{key:"offMapMoveEnd",value:function(e){M.A.offEvent($e(Qe,this),e)}},{key:"onMapPointerMove",value:function(e){M.A.onEvent($e(et,this),e)}},{key:"offMapPointerMove",value:function(e){M.A.offEvent($e(et,this),e)}},{key:"onMapSingleClick",value:function(e){M.A.onEvent($e(tt,this),e)}},{key:"offMapSingleClick",value:function(e){M.A.offEvent($e(tt,this),e)}},{key:"onMapZoomEnd",value:function(e){M.A.onEvent($e(nt,this),e)}},{key:"offMapZoomEnd",value:function(e){M.A.offEvent($e(nt,this),e)}},{key:"onMapRotation",value:function(e){M.A.onEvent($e(rt,this),e)}},{key:"offMapRotation",value:function(e){M.A.offEvent($e(rt,this),e)}},{key:"onMapChangeSize",value:function(e){M.A.onEvent($e(it,this),e)}},{key:"offMapChangeSize",value:function(e){M.A.offEvent($e(it,this),e)}},{key:"onMapComponentAdded",value:function(e){M.A.onEvent($e(ot,this),e)}},{key:"offMapComponentAdded",value:function(e){M.A.offEvent($e(ot,this),e)}},{key:"onMapComponentRemoved",value:function(e){M.A.onEvent($e(at,this),e)}},{key:"offMapComponentRemoved",value:function(e){M.A.offEvent($e(at,this),e)}},{key:"onMapLanguageChanged",value:function(e){M.A.onEvent($e(st,this),e)}},{key:"offMapLanguageChanged",value:function(e){M.A.offEvent($e(st,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}();function dt(e){e.on("change:resolution",c()(Ge(ct,this,mt).bind(this),100).bind(this)),e.on("change:rotation",c()(Ge(ct,this,yt).bind(this),100).bind(this))}function ht(e){return pt.apply(this,arguments)}function pt(){return(pt=(0,i.A)(d().mark((function e(t){var n,r,i,o,a,s;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return 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.checkNorth(),e.next=7,T.d.getScaleInfoFromDomElement(this.mapId);case 7:s=e.sent,T.d.setMapMoveEnd(this.mapId,n,i,o,a,s),Ge(ct,this,Pt).call(this,{lnglat:n});case 10:case"end":return e.stop()}}),e,this)})))).apply(this,arguments)}function ft(e){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};T.d.setMapPointerPosition(this.mapId,n),Ge(ct,this,It).call(this,n)}function gt(e){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};T.d.setClickCoordinates(this.mapId,n).catch((function(e){I.vF.logPromiseFailed("setClickCoordinates in #handleMapSingleClick in MapViewer",e)})),Ge(ct,this,Mt).call(this,n)}function mt(e){var t=this.getView().getZoom();T.d.setZoom(this.mapId,t),Ge(ct,this,Lt).call(this,{zoom:t})}function yt(e){var t=this.getView().getRotation();T.d.setRotation(this.mapId,t),Ge(ct,this,Rt).call(this,{rotation:t})}function vt(e){return bt.apply(this,arguments)}function bt(){return(bt=(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.next=2,T.d.getScaleInfoFromDomElement(this.mapId);case 2:n=e.sent,r=this.map.getSize(),T.d.setMapChangeSize(this.mapId,r,n),Ge(ct,this,jt).call(this,{size:r});case 6:case"end":return e.stop()}}),e,this)})))).apply(this,arguments)}function wt(){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..."),Ge(ct,e,xt).call(e).catch((function(e){I.vF.logPromiseFailed("checkMapReadyGo in checkMapReady in MapViewer",e)})))}}),250)}function xt(){return At.apply(this,arguments)}function At(){return(At=(0,i.A)(d().mark((function e(){var t,n,r,i;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Be(qe,this,!0),Ge(ct,this,kt).call(this),T.d.initMapControls(this.mapId),Te.K.setGuide(this.mapId).catch((function(e){I.vF.logPromiseFailed("in setGuide in #checkMapReadyGo",e)})),this.map.on("change:size",Ge(ct,this,vt).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()})),Ge(ct,this,Et).call(this).catch((function(e){I.vF.logError("Failed in #checkLayerResultSetReady",e)})),null===(t=this.mapFeaturesConfig.map.viewSettings.initialView)||void 0===t||!t.extent){e.next=13;break}return e.next=13,this.zoomToExtent(b.M.transformExtent(null===(n=this.mapFeaturesConfig.map.viewSettings.initialView)||void 0===n?void 0:n.extent,b.M.PROJECTION_NAMES.LNGLAT,"EPSG:".concat(this.mapFeaturesConfig.map.viewSettings.projection)));case 13:return Ge(ct,this,St).call(this),i=Date.now()-$e(lt,this),e.next=17,(0,_e.delay)(zt._-i);case 17:T.d.setMapLoaded(this.mapId,!0);case 18:case"end":return e.stop()}}),e,this)})))).apply(this,arguments)}function St(){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];if(o){var s;if(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")),null!==(s=e.mapFeaturesConfig.map.viewSettings.initialView)&&void 0!==s&&s.layerIds){var l=e.layer.getExtentOfMultipleLayers(e.mapFeaturesConfig.map.viewSettings.initialView.layerIds);l.includes(1/0)&&(l=b.M.transformExtent(g.Nt[e.mapFeaturesConfig.map.viewSettings.projection],b.M.PROJECTION_NAMES.LNGLAT,"EPSG:".concat(e.mapFeaturesConfig.map.viewSettings.projection))),l.length&&e.zoomToExtent(l).catch((function(e){return I.vF.logPromiseFailed("promiseMapLayers in #checkMapLayersProcessed in map-viewer",e)}))}Be(He,e,!0),Ge(ct,e,Tt).call(e),Ge(ct,e,Ct).call(e)}}}),250)}function Ct(){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")),Be(Ye,e,!0),Ge(ct,e,Ot).call(e))}}),250)}function Et(){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 _t(){M.A.emitEvent(this,$e(Ke,this),void 0)}function kt(){M.A.emitEvent(this,$e(Xe,this),void 0)}function Tt(){M.A.emitEvent(this,$e(Ze,this),void 0)}function Ot(){M.A.emitEvent(this,$e(Je,this),void 0)}function Pt(e){M.A.emitEvent(this,$e(Qe,this),e)}function It(e){M.A.emitEvent(this,$e(et,this),e)}function Mt(e){M.A.emitEvent(this,$e(tt,this),e)}function Lt(e){M.A.emitEvent(this,$e(nt,this),e)}function Rt(e){M.A.emitEvent(this,$e(rt,this),e)}function jt(e){M.A.emitEvent(this,$e(it,this),e)}function Ft(e){M.A.emitEvent(this,$e(ot,this),e)}function Dt(e){M.A.emitEvent(this,$e(at,this),e)}function Nt(e){M.A.emitEvent(this,$e(st,this),e)}var zt={_:2e3}},12311:(e,t,n)=>{"use strict";n.d(t,{M:()=>Zn});var r=n(70640),i=n(32814),o=n(64426);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 _=/[\s_\-\/\(\)]/g;function k(e,t){if(e[t])return e[t];for(var n,r=Object.keys(e),i=t.toLowerCase().replace(_,""),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=V(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]=T(arguments[1]):$[e]=B(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=B(e);if(function(e){var t=k(e,"authority");if(t){var n=k(t,"epsg");return n&&W.indexOf(n)>-1}}(t))return G["EPSG:3857"];var n=function(e){var t=k(e,"extension");if(t)return k(t,"proj4")}(t);return n?T(n):t}return function(e){return"+"===e[0]}(e)?T(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,g,m,y,v,b,w=1e-12,x=e.x,A=e.y,S=e.z?e.z:0;if(i=Math.sqrt(x*x+A*A),o=Math.sqrt(x*x+A*A+S*S),i/n1e-24&&y<30);return{x:v,y:Math.atan(g/Math.abs(p)),z:b}}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 _e(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 ke(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 Te(e,t,n,r){var i,o=void 0!==(n=Array.isArray(n)?_e(n):{x:n.x,y:n.y,z:n.z,m:n.m}).z;if(function(e){ke(e.x),ke(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=Te(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=Te(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=Te(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,ze=86,Ve=90;const Be={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>Ve&&(u=u-Ve+Fe-1,h=!0),(u===De||lDe||(u>De||lNe||(u>Ne||lVe&&(u=u-Ve+Fe-1),d>ze?(d=d-ze+Fe-1,h=!0):h=!1,(d===De||cDe||(d>De||cNe||(d>Ne||cze&&(d=d-ze+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>Ve){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>ze){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 _t={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 kt={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 Tt=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 _=!1;if("rectified_grid_angle"in this&&(_=!0),E&&(C=this.alpha),_&&(p=this.rectified_grid_angle*b),E||_)g=this.longc;else if(m=this.long1,w=this.lat1,y=this.long2,S=this.lat2,Math.abs(w-S)<=Tt||(e=Math.abs(w))<=Tt||Math.abs(e-f)<=Tt||Math.abs(Math.abs(this.lat0)-f)<=Tt||Math.abs(Math.abs(S)-f)<=Tt)throw new Error;var k=1-this.es;t=Math.sqrt(k),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/k),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||_?(E?(u=Math.asin(Math.sin(C)/r),_||(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=Bt(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=Bt(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=Bt(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=Bt(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=zt(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=zt(((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=zt(((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),1,((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,_n=18,kn=function(e,t){return e[0]+t*(e[1]+t*(e[2]+t*e[3]))};const Tn={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>=_n&&(r=17);var i={x:kn(wn[r],n=w*(n-En*r))*t,y:kn(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*_n);for(n<0?n=0:n>=_n&&(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,zn=893e-6,Vn=.003796,Bn=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(Bn*Math.sin(n)),i=r*r,o=i*i*i;return e.x=t*Math.cos(r)/(Bn*(Dn+3*Nn*i+o*(7*zn+9*Vn*i))),e.y=r*(Dn+Nn*i+o*(zn+Vn*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)*(zn+Vn*t))-e.y)/(Dn+3*Nn*t+n*(7*zn+9*Vn*t)),!(Math.abs(r)<1e-9));++i);return n=(t=o*o)*t*t,e.x=Bn*e.x*(Dn+3*Nn*t+n*(7*zn+9*Vn*t))/Math.cos(o),e.y=Math.asin(Math.sin(o)/Bn),e.x=X(e.x+this.long0),e},names:["eqearth","Equal Earth","Equal_Earth"]};Me.defaultDatum="WGS84",Me.Proj=ye,Me.WGS84=new Me.Proj("WGS84"),Me.Point=Je,Me.toPoint=_e,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(78862),i=n(48660),o=n(60854),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.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}]},10011:(e,t,n)=>{"use strict";n.d(t,{$G:()=>ge,WN:()=>ve,nS:()=>fe,qC:()=>ce,yt:()=>V});var r=n(64426),i=n(31625),o=n(47361),a=n(43994),s=n(59615),l=n.n(s),c=n(78862),u=n(22840),d=n(13645),h=n(25899),p=n(47616),f=n(64745),g=n(39605),m=n(62767),y=n(24438),v=n(17567),b=n(11574),w=n(79913),x=n(34028),A=n(48660),S=n(5739),C=n(60854);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 _(e){for(var t=1;t1&&void 0!==arguments[1]&&arguments[1],n=(0,c.oJ)((0,w.setAlphaColor)((0,c._j)(S.fT[k]),e));return t&&k++,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,z=50;function V(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 B(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,V(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||z,(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,V(t);case 3:if(!(n=e.sent)){e.next=13;break}return r=n.width||N,i=n.height||z,(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,z],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=z;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=z;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)):T(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(_({},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=T(.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=T(.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=T(.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=T(.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:T(.25),stroke:{color:T(1,!0),lineStyle:"solid",width:1},symbol:"circle"}}:"LineString"===e?{styleType:"simple",label:t,settings:{type:"lineString",stroke:{color:T(1,!0)}}}:"Polygon"===e?{styleType:"simple",label:t,settings:{type:"filledPolygon",color:T(.25),stroke:{color:T(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)}}function ge(e,t,n,r,i){return me.apply(this,arguments)}function me(){return(me=(0,a.A)(l().mark((function e(t,n,r,i,o){var a,s,c,u,d,h;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.getGeometry()){e.next=21;break}if(s=O(t),!n[s]){e.next=21;break}if(c=n[s],u=c.styleType,!(d=pe[u][s](c,t,r,i))){e.next=21;break}if("Point"!==s){e.next=20;break}if(!((0,A.s0)(c)&&(0,A.cw)(c.settings)||(0,A.IG)(c)&&(0,A.cw)(c.uniqueValueStyleInfo[0].settings)||(0,A.$h)(c)&&(0,A.cw)(c.classBreakStyleInfo[0].settings))){e.next=12;break}a=W(d),e.next=18;break;case 12:return e.next=14,B(d);case 14:if(e.t0=e.sent,e.t0){e.next=17;break}e.t0=void 0;case 17:a=e.t0;case 18:e.next=21;break;case 20:a="LineString"===s?q(d):H(d);case 21:if(!a){e.next=23;break}return e.abrupt("return",a);case 23:return e.next=25,null==o?void 0:o();case 25:if(!(h=e.sent)){e.next=35;break}return e.next=29,G(h);case 29:if(e.t1=e.sent,e.t1){e.next=32;break}e.t1=void 0;case 32:if(!(a=e.t1)){e.next=35;break}return e.abrupt("return",a);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 ye(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 ve(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=ye(n,"'")),n=ye(n,"("),(n=ye(n,")")).reduce((function(e,t){return t.nodeType===S.Z6.group?e+1:e}),0)%2)throw new Error("unbalanced parentheses");return n=ye(n,"date",/^date°$|^date°|(?<=\s)date°/g),n=ye(n,"upper",/^upper\b|(?<=\s)upper\b/gi),n=ye(n,"lower",/^lower\b|(?<=\s)lower\b/gi),n=ye(n,"is not",/^is\s+not\b|(?<=\s)is\s+not\b/gi),n=ye(n,"is",/^is\b(?!\s*not\b)|(?<=\s)is\b(?!\s*not\b)/gi),n=ye(n,"in",/^in\b|(?<=\s)in\b/gi),n=ye(n,","),n=ye(n,"not",/^not\b|(?<=\s)not\b/gi),n=ye(n,"and",/^and\b|(?<=\s)and\b/gi),n=ye(n,"or",/^or\b|(?<=\s)or\b/gi),n=ye(n,"like",/^like\b|(?<=\s)like\b/gi),n=ye(n,"=",/(?<])=/g),n=ye(n,"<",/<(?![>=])/g),n=ye(n,">",/(?(?!=)/g),n=ye(n,"<>"),n=ye(n,"<="),n=ye(n,">="),n=ye(n,"+"),n=ye(n,"-"),n=ye(n,"*"),n=ye(n,"/"),n=ye(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}))}},62338:(e,t,n)=>{"use strict";n.r(t),n.d(t,{convertTypeFeatureStyleToOpenLayersStyle:()=>ye,coordFormatDMS:()=>me,createEmptyBasemap:()=>pe,extentToPolygon:()=>Se,geojsonToGeometry:()=>ue,geometryToWKT:()=>le,getArea:()=>de,getDefaultDrawingStyle:()=>he,getESRIServiceMetadata:()=>ee,getExtentIntersection:()=>xe,getExtentIntersectionMaybe:()=>Ae,getExtentUnion:()=>be,getExtentUnionMaybe:()=>we,getLegendStylesFromConfig:()=>fe,getMapServerUrl:()=>ae,getMinOrMaxExtents:()=>ve,getOGCServerUrl:()=>se,getTranslateValues:()=>ge,getWFSServiceMetadata:()=>ie,getWMSServiceMetadata:()=>ne,layerTypes:()=>Q,polygonToExtent:()=>Ce,wktToGeometry:()=>ce});var r=n(43994),i=n(59615),o=n.n(i),a=n(97493),s=n(72192),l=n(20662),c=n(31997),u=n(24438),d=n(67087),h=n(4180),p=n(1660),f=n(62767),g=n(17567),m=n(42024),y=n(94994);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,_=1,k=2,T=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=k;else if(","==e)n=P;else if(")"==e)n=T;else if(this.isNumeric_(e)||"-"==e)n=O,r=this.readNumber_();else if(this.isAlpha_(e))n=_,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(_)){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(k)){const e=[];do{e.push(this.parseGeometry_())}while(this.match(P));if(this.match(T))return e}throw new Error(this.formatErrorMessage_())}parsePointText_(){if(this.match(k)){const e=this.parsePoint_();if(this.match(T))return e}throw new Error(this.formatErrorMessage_())}parseLineStringText_(){if(this.match(k)){const e=this.parsePointList_();if(this.match(T))return e}throw new Error(this.formatErrorMessage_())}parsePolygonText_(){if(this.match(k)){const e=this.parseLineStringTextList_();if(this.match(T))return e}throw new Error(this.formatErrorMessage_())}parseMultiPointText_(){if(this.match(k)){let e;if(e=this.token_.type==k?this.parsePointTextList_():this.parsePointList_(),this.match(T))return e}throw new Error(this.formatErrorMessage_())}parseMultiLineStringText_(){if(this.match(k)){const e=this.parseLineStringTextList_();if(this.match(T))return e}throw new Error(this.formatErrorMessage_())}parseMultiPolygonText_(){if(this.match(k)){const e=this.parsePolygonTextList_();if(this.match(T))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 V=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 ie(e){return oe.apply(this,arguments)}function oe(){return(oe=(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 ae(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 se(e){var t=e;return t.includes("collections")&&(t=t.slice(0,t.indexOf("collections"))),t}function le(e){return e?(new V).writeGeometry(e):null}function ce(e,t){return e?(new V).readGeometry(e,t):null}function ue(e,t){return e?(new B.A).readGeometry(e,t):null}function de(e){return(0,q.UG)(e)}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,J.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;a{"use strict";n.d(t,{c:()=>u});var r=n(64426),i=n(94145),o=n(66865),a=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}}},s=n(97282);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,{Accordion:()=>Ae,AddCircleOutlineIcon:()=>Zs,AddIcon:()=>Xs,AppBarUI:()=>Fe,AppsIcon:()=>Js,ArrowBackIcon:()=>Qs.A,ArrowBackIosOutlinedIcon:()=>el,ArrowDownIcon:()=>ko,ArrowDownwardIcon:()=>tl.A,ArrowForwardIcon:()=>nl.A,ArrowForwardIosOutlinedIcon:()=>rl,ArrowLeftIcon:()=>il,ArrowRightIcon:()=>ol,ArrowUpIcon:()=>al.A,Autocomplete:()=>Ir,Avatar:()=>$r,Badge:()=>Jr,Box:()=>a.A,BrowserNotSupportedIcon:()=>sl,Button:()=>zi,ButtonDropDown:()=>Io,ButtonGroup:()=>Eo,CONST_PANEL_TYPES:()=>gm.v,Card:()=>Jo,CardMedia:()=>aa,ChartIcon:()=>mc.A,CheckBoxIcon:()=>ul,CheckBoxOutinedIcon:()=>hl,CheckBoxOutlineBlankIcon:()=>dl,CheckCircleIcon:()=>cl,CheckIcon:()=>ll,Checkbox:()=>wa,CheckboxList:()=>Vd,ChevronLeftIcon:()=>pl,ChevronRightIcon:()=>fl,CircularProgress:()=>$a,CircularProgressBase:()=>Na,ClickMapMarker:()=>Nc,CloseIcon:()=>gl.A,Collapse:()=>Bd,CollapseIcon:()=>Kl,Container:()=>cu,CustomSelect:()=>ky,CustomStepper:()=>Tb,CustomTextField:()=>cR,DefaultPanel:()=>fm,DeleteIcon:()=>ml,DeleteOutlineIcon:()=>yl,DetailsIcon:()=>vl,Dialog:()=>bu,DialogActions:()=>Su,DialogContent:()=>$u,DialogTitle:()=>Tu,Divider:()=>Ga.c,DownloadIcon:()=>bl,DownloadingIcon:()=>wl,Drawer:()=>Ms,EmojiPeopleIcon:()=>Al,ErrorIcon:()=>Sl,ExpandIcon:()=>Cl,ExpandLessIcon:()=>El,ExpandMoreIcon:()=>_l,Fade:()=>Ls,FileUploadIcon:()=>kl,FilterAltIcon:()=>Tl,FilterAltOffIcon:()=>Ol,FullscreenExitIcon:()=>Il,FullscreenIcon:()=>Pl,GeoCaIcon:()=>jb,GitHubIcon:()=>Ml.A,Grid:()=>Hs,GroupIcon:()=>Ll,GroupWorkIcon:()=>Rl,GroupWorkOutlinedIcon:()=>jl,HandleIcon:()=>xl,HeightIcon:()=>Bl,HelpIcon:()=>Fl,HighlightIcon:()=>Nl,HighlightOutlinedIcon:()=>Dl,HomeIcon:()=>zl,HubOutlinedIcon:()=>Vl.A,IconButton:()=>Ys,InfoIcon:()=>Gl,InfoOutlinedIcon:()=>Ul.A,KeyboardArrowDownIcon:()=>Wl,KeyboardArrowLeftIcon:()=>Yl,KeyboardArrowRightIcon:()=>Hl,KeyboardArrowUpIcon:()=>ql,LayersClearOutlinedIcon:()=>Zl,LayersIcon:()=>Xl,LayersOutlinedIcon:()=>Jl.A,Link:()=>Ou.A,List:()=>uh,ListAltIcon:()=>Ql,ListItem:()=>ah,ListItemButton:()=>Yd,ListItemIcon:()=>Kd,ListItemText:()=>nh,LoadingButton:()=>Ju,LockIcon:()=>tc,LockOpenIcon:()=>nc,LoopIcon:()=>rc,MRT_ActionMenuItem:()=>fM,MRT_AggregationFns:()=>GI,MRT_BottomToolbar:()=>jL,MRT_ColumnActionMenu:()=>uL,MRT_ColumnPinningButtons:()=>FL,MRT_CopyButton:()=>qM,MRT_DefaultColumn:()=>MM,MRT_DefaultDisplayColumn:()=>LM,MRT_EditActionButtons:()=>aM,MRT_EditCellTextField:()=>HM,MRT_EditRowModal:()=>TL,MRT_ExpandAllButton:()=>AM,MRT_ExpandButton:()=>SM,MRT_FilterCheckbox:()=>hL,MRT_FilterFns:()=>iM,MRT_FilterOptionMenu:()=>cL,MRT_FilterRangeFields:()=>fL,MRT_FilterRangeSlider:()=>gL,MRT_FilterTextField:()=>pL,MRT_GlobalFilterTextField:()=>WL,MRT_GrabHandleButton:()=>bM,MRT_LinearProgressBar:()=>IL,MRT_RowActionMenu:()=>gM,MRT_RowPinButton:()=>_M,MRT_SelectCheckbox:()=>TM,MRT_ShowHideColumnsButton:()=>zL,MRT_ShowHideColumnsMenu:()=>NL,MRT_ShowHideColumnsMenuItems:()=>DL,MRT_SortingFns:()=>jI,MRT_Table:()=>EL,MRT_TableBody:()=>QM,MRT_TableBodyCell:()=>YM,MRT_TableBodyCellValue:()=>WM,MRT_TableBodyRow:()=>ZM,MRT_TableBodyRowGrabHandle:()=>wM,MRT_TableBodyRowPinButton:()=>kM,MRT_TableContainer:()=>PL,MRT_TableDetailPanel:()=>XM,MRT_TableFooter:()=>rL,MRT_TableFooterCell:()=>tL,MRT_TableFooterRow:()=>nL,MRT_TableHead:()=>CL,MRT_TableHeadCell:()=>xL,MRT_TableHeadCellColumnActionsButton:()=>dL,MRT_TableHeadCellFilterContainer:()=>mL,MRT_TableHeadCellFilterLabel:()=>yL,MRT_TableHeadCellGrabHandle:()=>vL,MRT_TableHeadCellResizeHandle:()=>bL,MRT_TableHeadCellSortLabel:()=>wL,MRT_TableHeadRow:()=>AL,MRT_TableLoadingOverlay:()=>_L,MRT_TablePagination:()=>LL,MRT_TablePaper:()=>HL,MRT_ToggleDensePaddingButton:()=>VL,MRT_ToggleFiltersButton:()=>BL,MRT_ToggleFullScreenButton:()=>$L,MRT_ToggleGlobalFilterButton:()=>GL,MRT_ToggleRowActionMenuButton:()=>yM,MRT_ToolbarAlertBanner:()=>SL,MRT_ToolbarDropZone:()=>RL,MRT_ToolbarInternalButtons:()=>UL,MRT_TopToolbar:()=>qL,MapIcon:()=>ac.A,MaterialReactTable:()=>YL,Memo_MRT_TableBody:()=>eL,Memo_MRT_TableBodyCell:()=>KM,Memo_MRT_TableBodyRow:()=>JM,Menu:()=>Nh,MenuIcon:()=>sc,MenuItem:()=>ph,Modal:()=>dm,ModalApi:()=>Kh,MoreHorizIcon:()=>lc,MoreVertIcon:()=>cc,MoveDownRoundedIcon:()=>uc,MoveUpRoundedIcon:()=>dc,NotificationsActiveIcon:()=>oc,NotificationsIcon:()=>ic,OpacityIcon:()=>hc,OpenInBrowserIcon:()=>pc,Panel:()=>Cm,Paper:()=>pm,PauseIcon:()=>fc,PlayArrowIcon:()=>gc,Popover:()=>km,Popper:()=>_R,ProgressBar:()=>vd,QuestionMarkIcon:()=>yc.A,RadioButtonCheckedIcon:()=>vc,RadioButtonUncheckedIcon:()=>bc,RemoveCircleOutlineIcon:()=>xc,ReorderIcon:()=>$l,RestartAltIcon:()=>Ac,SchoolIcon:()=>Sc,SearchIcon:()=>Cc,Select:()=>My,SendIcon:()=>Ec,Skeleton:()=>Xy,Slider:()=>nv,Snackbar:()=>Iv,Stack:()=>Nu,Stepper:()=>Lb,StorageIcon:()=>_c.A,Switch:()=>Yb,SwitchLeftIcon:()=>Tc,SwitchRightIcon:()=>kc,Table:()=>XL,TableChartOutlinedIcon:()=>Pc,TableViewIcon:()=>Oc.A,Tabs:()=>oR,TextField:()=>hR,TimeSliderIcon:()=>Ks,TodoIcon:()=>ec,Toolbar:()=>vR,Tooltip:()=>xR,Typography:()=>AR.o,UndoIcon:()=>Ic,UploadFileIcon:()=>Mc,VisibilityIcon:()=>Lc,VisibilityOffIcon:()=>Rc,VisibilityOffOutlinedIcon:()=>Fc,VisibilityOutlinedIcon:()=>jc,WarningIcon:()=>Dc,ZoomInIcon:()=>Xs,ZoomInSearchIcon:()=>zc,ZoomOutIcon:()=>wc,ZoomOutSearchIcon:()=>Vc,cgpvTheme:()=>Rb.w,createMRTColumnHelper:()=>vI,createRow:()=>bI,defaultDisplayColumnProps:()=>CI,flexRender:()=>yI,getAllLeafColumnDefs:()=>dI,getCanRankRows:()=>NI,getColumnFilterInfo:()=>gI,getColumnId:()=>uI,getDefaultColumnFilterFn:()=>fI,getDefaultColumnOrderIds:()=>RI,getIsRankingRows:()=>zI,getIsRowSelected:()=>VI,getLeadingDisplayColumnIds:()=>MI,getMRT_RowSelectionHandler:()=>BI,getMRT_Rows:()=>DI,getMRT_SelectAllHandler:()=>$I,getTheme:()=>Rb.O,getTrailingDisplayColumnIds:()=>LI,isCellEditable:()=>AI,mrtFilterOptions:()=>iL,openEditingCell:()=>SI,prepareColumns:()=>hI,rankGlobalFuzzy:()=>FI,reorderColumn:()=>pI,showRowActionsColumn:()=>TI,showRowDragColumn:()=>_I,showRowExpandColumn:()=>kI,showRowNumbersColumn:()=>PI,showRowPinningColumn:()=>EI,showRowSelectionColumn:()=>OI,showRowSpacerColumn:()=>II,useDropdownOptions:()=>mI,useMRT_ColumnVirtualizer:()=>BM,useMRT_Effects:()=>DM,useMRT_RowVirtualizer:()=>$M,useMRT_Rows:()=>GM,useMRT_TableInstance:()=>NM,useMRT_TableOptions:()=>RM,useMaterialReactTable:()=>zM});var r=n(28249),i=n(47361),o=n(30538),a=n(66469),s=n(51559),l=n(73342),c=(n(91272),n(87286)),u=n(32829),d=n(99191),h=n(58990),p=n(99364),f=n(95491);const g=!1;var m=n(59780),y=function(e){return e.scrollTop},v="unmounted",b="exited",w="entering",x="entered",A="exiting",S=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=b,r.appearStatus=w):i=x:i=t.unmountOnExit||t.mountOnEnter?v:b,r.state={status:i},r.nextCallback=null,r}(0,p.A)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===v?{status:b}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==w&&n!==x&&(t=w):n!==w&&n!==x||(t=A)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===w){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:f.findDOMNode(this);n&&y(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===b&&this.setState({status:v})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[f.findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||g?this.safeSetState({status:x},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:w},(function(){t.props.onEntering(o,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:x},(function(){t.props.onEntered(o,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:f.findDOMNode(this);t&&!g?(this.props.onExit(r),this.safeSetState({status:A},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:b},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:b},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:f.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===v)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,l.A)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return o.createElement(m.A.Provider,{value:null},"function"==typeof n?n(e,r):o.cloneElement(o.Children.only(n),r))},t}(o.Component);function C(){}S.contextType=m.A,S.propTypes={},S.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:C,onEntering:C,onEntered:C,onExit:C,onExiting:C,onExited:C},S.UNMOUNTED=v,S.EXITED=b,S.ENTERING=w,S.ENTERED=x,S.EXITING=A;const E=S;var _=n(8734),k=n(87507),T=n(2297);const O=e=>e.scrollTop;function P(e,t){var n,r;const{timeout:i,easing:o,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof i?i:i[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof o?o[t.mode]:o,delay:a.transitionDelay}}var I=n(94145),M=n(47258),L=n(5007),R=n(24115);function j(e){return(0,R.Ay)("MuiCollapse",e)}(0,L.A)("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);var F=n(97282);const D=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],N=(0,h.Ay)("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],"entered"===n.state&&t.entered,"exited"===n.state&&!n.in&&"0px"===n.collapsedSize&&t.hidden]}})((({theme:e,ownerState:t})=>(0,s.A)({height:0,overflow:"hidden",transition:e.transitions.create("height")},"horizontal"===t.orientation&&{height:"auto",width:0,transition:e.transitions.create("width")},"entered"===t.state&&(0,s.A)({height:"auto",overflow:"visible"},"horizontal"===t.orientation&&{width:"auto"}),"exited"===t.state&&!t.in&&"0px"===t.collapsedSize&&{visibility:"hidden"}))),z=(0,h.Ay)("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})((({ownerState:e})=>(0,s.A)({display:"flex",width:"100%"},"horizontal"===e.orientation&&{width:"auto",height:"100%"}))),V=(0,h.Ay)("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})((({ownerState:e})=>(0,s.A)({width:"100%"},"horizontal"===e.orientation&&{width:"auto",height:"100%"}))),B=o.forwardRef((function(e,t){const n=(0,k.A)({props:e,name:"MuiCollapse"}),{addEndListener:r,children:i,className:a,collapsedSize:d="0px",component:h,easing:p,in:f,onEnter:g,onEntered:m,onEntering:y,onExit:v,onExited:b,onExiting:w,orientation:x="vertical",style:A,timeout:S=T.p0.standard,TransitionComponent:C=E}=n,O=(0,l.A)(n,D),L=(0,s.A)({},n,{orientation:x,collapsedSize:d}),R=(e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return(0,u.A)(r,j,n)})(L),B=(0,I.A)(),$=(0,_.A)(),G=o.useRef(null),U=o.useRef(),W="number"==typeof d?`${d}px`:d,q="horizontal"===x,H=q?"width":"height",Y=o.useRef(null),K=(0,M.A)(t,Y),X=e=>t=>{if(e){const n=Y.current;void 0===t?e(n):e(n,t)}},Z=()=>G.current?G.current[q?"clientWidth":"clientHeight"]:0,J=X(((e,t)=>{G.current&&q&&(G.current.style.position="absolute"),e.style[H]=W,g&&g(e,t)})),Q=X(((e,t)=>{const n=Z();G.current&&q&&(G.current.style.position="");const{duration:r,easing:i}=P({style:A,timeout:S,easing:p},{mode:"enter"});if("auto"===S){const t=B.transitions.getAutoHeightDuration(n);e.style.transitionDuration=`${t}ms`,U.current=t}else e.style.transitionDuration="string"==typeof r?r:`${r}ms`;e.style[H]=`${n}px`,e.style.transitionTimingFunction=i,y&&y(e,t)})),ee=X(((e,t)=>{e.style[H]="auto",m&&m(e,t)})),te=X((e=>{e.style[H]=`${Z()}px`,v&&v(e)})),ne=X(b),re=X((e=>{const t=Z(),{duration:n,easing:r}=P({style:A,timeout:S,easing:p},{mode:"exit"});if("auto"===S){const n=B.transitions.getAutoHeightDuration(t);e.style.transitionDuration=`${n}ms`,U.current=n}else e.style.transitionDuration="string"==typeof n?n:`${n}ms`;e.style[H]=W,e.style.transitionTimingFunction=r,w&&w(e)}));return(0,F.jsx)(C,(0,s.A)({in:f,onEnter:J,onEntered:ee,onEntering:Q,onExit:te,onExited:ne,onExiting:re,addEndListener:e=>{"auto"===S&&$.start(U.current||0,e),r&&r(Y.current,e)},nodeRef:Y,timeout:"auto"===S?null:S},O,{children:(e,t)=>(0,F.jsx)(N,(0,s.A)({as:h,className:(0,c.A)(R.root,a,{entered:R.entered,exited:!f&&"0px"===W&&R.hidden}[e]),style:(0,s.A)({[q?"minWidth":"minHeight"]:W},A),ref:K},t,{ownerState:(0,s.A)({},L,{state:e}),children:(0,F.jsx)(z,{ownerState:(0,s.A)({},L,{state:e}),className:R.wrapper,ref:G,children:(0,F.jsx)(V,{ownerState:(0,s.A)({},L,{state:e}),className:R.wrapperInner,children:i})})}))}))}));B.muiSupportAuto=!0;const $=B;var G=n(8088);const U=o.createContext({});var W=n(58245),q=n(18029),H=n(66567),Y=n(63261),K=n(23130);const X=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],Z=["component","slots","slotProps"],J=["component"];function Q(e,t){const{className:n,elementType:r,ownerState:i,externalForwardedProps:o,getSlotOwnerState:a,internalForwardedProps:c}=t,u=(0,l.A)(t,X),{component:d,slots:h={[e]:void 0},slotProps:p={[e]:void 0}}=o,f=(0,l.A)(o,Z),g=h[e]||r,m=(0,H.Y)(p[e],i),y=(0,Y.p)((0,s.A)({className:n},u,{externalForwardedProps:"root"===e?f:void 0,externalSlotProps:m})),{props:{component:v},internalRef:b}=y,w=(0,l.A)(y.props,J),x=(0,q.A)(b,null==m?void 0:m.ref,t.ref),A=a?a(w):{},S=(0,s.A)({},i,A),C="root"===e?v||d:v,E=(0,K.X)(g,(0,s.A)({},"root"===e&&!d&&!h[e]&&c,"root"!==e&&!h[e]&&c,w,C&&{as:C},{ref:x}),S);return Object.keys(A).forEach((e=>{delete E[e]})),[g,E]}function ee(e){return(0,R.Ay)("MuiAccordion",e)}const te=(0,L.A)("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]),ne=["children","className","defaultExpanded","disabled","disableGutters","expanded","onChange","square","slots","slotProps","TransitionComponent","TransitionProps"],re=(0,d.h)("MuiAccordion"),ie=(0,h.Ay)(G.A,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${te.region}`]:t.region},t.root,!n.square&&t.rounded,!n.disableGutters&&t.gutters]}})((({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"}},[`&.${te.expanded}`]:{"&::before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&::before":{display:"none"}}},[`&.${te.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}}),(({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:{[`&.${te.expanded}`]:{margin:"16px 0"}}}]}))),oe=o.forwardRef((function(e,t){const n=re({props:e,name:"MuiAccordion"}),{children:r,className:i,defaultExpanded:a=!1,disabled:d=!1,disableGutters:h=!1,expanded:p,onChange:f,square:g=!1,slots:m={},slotProps:y={},TransitionComponent:v,TransitionProps:b}=n,w=(0,l.A)(n,ne),[x,A]=(0,W.A)({controlled:p,default:a,name:"Accordion",state:"expanded"}),S=o.useCallback((e=>{A(!x),f&&f(e,!x)}),[x,f,A]),[C,...E]=o.Children.toArray(r),_=o.useMemo((()=>({expanded:x,disabled:d,disableGutters:h,toggle:S})),[x,d,h,S]),k=(0,s.A)({},n,{square:g,disabled:d,disableGutters:h,expanded:x}),T=(e=>{const{classes:t,square:n,expanded:r,disabled:i,disableGutters:o}=e,a={root:["root",!n&&"rounded",r&&"expanded",i&&"disabled",!o&&"gutters"],region:["region"]};return(0,u.A)(a,ee,t)})(k),O=(0,s.A)({transition:v},m),P=(0,s.A)({transition:b},y),[I,M]=Q("transition",{elementType:$,externalForwardedProps:{slots:O,slotProps:P},ownerState:k});return(0,F.jsxs)(ie,(0,s.A)({className:(0,c.A)(T.root,i),ref:t,ownerState:k,square:g},w,{children:[(0,F.jsx)(U.Provider,{value:_,children:C}),(0,F.jsx)(I,(0,s.A)({in:x,timeout:"auto"},M,{children:(0,F.jsx)("div",{"aria-labelledby":C.props.id,id:C.props["aria-controls"],role:"region",className:T.region,children:E})}))]}))}));var ae=n(92004);function se(e){return(0,R.Ay)("MuiAccordionSummary",e)}const le=(0,L.A)("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),ce=["children","className","expandIcon","focusVisibleClassName","onClick"],ue=(0,d.h)("MuiAccordionSummary"),de=(0,h.Ay)(ae.A,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})((({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),[`&.${le.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${le.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${le.disabled})`]:{cursor:"pointer"},variants:[{props:e=>!e.disableGutters,style:{[`&.${le.expanded}`]:{minHeight:64}}}]}})),he=(0,h.Ay)("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})((({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}),[`&.${le.expanded}`]:{margin:"20px 0"}}}]}))),pe=(0,h.Ay)("div",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(e,t)=>t.expandIconWrapper})((({theme:e})=>({display:"flex",color:(e.vars||e).palette.action.active,transform:"rotate(0deg)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),[`&.${le.expanded}`]:{transform:"rotate(180deg)"}}))),fe=o.forwardRef((function(e,t){const n=ue({props:e,name:"MuiAccordionSummary"}),{children:r,className:i,expandIcon:a,focusVisibleClassName:d,onClick:h}=n,p=(0,l.A)(n,ce),{disabled:f=!1,disableGutters:g,expanded:m,toggle:y}=o.useContext(U),v=(0,s.A)({},n,{expanded:m,disabled:f,disableGutters:g}),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,u.A)(o,se,t)})(v);return(0,F.jsxs)(de,(0,s.A)({focusRipple:!1,disableRipple:!0,disabled:f,component:"div","aria-expanded":m,className:(0,c.A)(b.root,i),focusVisibleClassName:(0,c.A)(b.focusVisible,d),onClick:e=>{y&&y(e),h&&h(e)},ref:t,ownerState:v},p,{children:[(0,F.jsx)(he,{className:b.content,ownerState:v,children:r}),a&&(0,F.jsx)(pe,{className:b.expandIconWrapper,ownerState:v,children:a})]}))}));function ge(e){return(0,R.Ay)("MuiAccordionDetails",e)}(0,L.A)("MuiAccordionDetails",["root"]);const me=["className"],ye=(0,d.h)("MuiAccordionDetails"),ve=(0,h.Ay)("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({padding:e.spacing(1,2,2)}))),be=o.forwardRef((function(e,t){const n=ye({props:e,name:"MuiAccordionDetails"}),{className:r}=n,i=(0,l.A)(n,me),o=n,a=(e=>{const{classes:t}=e;return(0,u.A)({root:["root"]},ge,t)})(o);return(0,F.jsx)(ve,(0,s.A)({className:(0,c.A)(a.root,r),ref:t,ownerState:o},i))}));var we=n(79913),xe={loadingIcon:{animation:"rotate 1s infinite linear","@keyframes rotate":{from:{transform:"rotate(360deg)"},to:{transform:"rotate(0deg)"}}}};function Ae(e){var t=e.id,n=e.sx,s=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(s.length).fill(u)),f=(0,i.A)(p,2),g=f[0],m=f[1],y=(0,o.useState)(Array(s.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,F.jsx)(a.A,{id:(0,we.generateId)(t),sx:n,className:"accordion-group",children:s.map((function(e,t){return(0,F.jsxs)(oe,{className:l,expanded:g[t],onChange:x(t),onTransitionEnd:A(t),children:[(0,F.jsx)(fe,{expandIcon:h&&b[t]?(0,F.jsx)(rc,{sx:xe.loadingIcon}):(0,F.jsx)(_l,{}),"aria-controls":"accordion-panel-".concat(t,"-a-content"),children:(0,F.jsx)("div",{children:e.title})}),(0,F.jsx)(be,{children:e.content})]},t)}))})}var Se=n(64426),Ce=n(19508);function Ee(e){return(0,R.Ay)("MuiAppBar",e)}(0,L.A)("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const _e=["className","color","enableColorOnDark","position"],ke=(e,t)=>e?`${null==e?void 0:e.replace(")","")}, ${t})`:t,Te=(0,h.Ay)(G.A,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${(0,Ce.A)(n.position)}`],t[`color${(0,Ce.A)(n.color)}`]]}})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?e.palette.grey[100]:e.palette.grey[900];return(0,s.A)({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},"fixed"===t.position&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},"absolute"===t.position&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},"sticky"===t.position&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},"static"===t.position&&{position:"static"},"relative"===t.position&&{position:"relative"},!e.vars&&(0,s.A)({},"default"===t.color&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&"default"!==t.color&&"inherit"!==t.color&&"transparent"!==t.color&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},"inherit"===t.color&&{color:"inherit"},"dark"===e.palette.mode&&!t.enableColorOnDark&&{backgroundColor:null,color:null},"transparent"===t.color&&(0,s.A)({backgroundColor:"transparent",color:"inherit"},"dark"===e.palette.mode&&{backgroundImage:"none"})),e.vars&&(0,s.A)({},"default"===t.color&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:ke(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:ke(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:ke(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:ke(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:"inherit"===t.color?"inherit":"var(--AppBar-color)"},"transparent"===t.color&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))})),Oe=o.forwardRef((function(e,t){const n=(0,k.A)({props:e,name:"MuiAppBar"}),{className:r,color:i="primary",enableColorOnDark:o=!1,position:a="fixed"}=n,d=(0,l.A)(n,_e),h=(0,s.A)({},n,{color:i,position:a,enableColorOnDark:o}),p=(e=>{const{color:t,position:n,classes:r}=e,i={root:["root",`color${(0,Ce.A)(t)}`,`position${(0,Ce.A)(n)}`]};return(0,u.A)(i,Ee,r)})(h);return(0,F.jsx)(Te,(0,s.A)({square:!0,component:"header",ownerState:h,elevation:4,className:(0,c.A)(p.root,r,"fixed"===a&&"mui-fixed"),ref:t},d))}));var Pe=n(78283);function Ie(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 Me(e){for(var t=1;t{const t=o.useRef({});return o.useEffect((()=>{t.current=e})),t.current};var $e=n(18605),Ge=n(54175);function Ue(e){return void 0!==e.normalize?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function We(e,t){for(let n=0;n{let c=a?s.trim():s;n&&(c=c.toLowerCase()),t&&(c=Ue(c));const u=c?e.filter((e=>{let r=(o||l)(e);return n&&(r=r.toLowerCase()),t&&(r=Ue(r)),"start"===i?0===r.indexOf(c):r.indexOf(c)>-1})):e;return"number"==typeof r?u.slice(0,r):u}}(),He=e=>{var t;return null!==e.current&&(null==(t=e.current.parentElement)?void 0:t.contains(document.activeElement))};function Ye(e){const{unstable_isActiveElementInListbox:t=He,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:i=!1,autoSelect:a=!1,blurOnSelect:l=!1,clearOnBlur:c=!e.freeSolo,clearOnEscape:u=!1,componentName:d="useAutocomplete",defaultValue:h=(e.multiple?[]:null),disableClearable:p=!1,disableCloseOnSelect:f=!1,disabled:g,disabledItemsFocusable:m=!1,disableListWrap:y=!1,filterOptions:v=qe,filterSelectedOptions:b=!1,freeSolo:w=!1,getOptionDisabled:x,getOptionKey:A,getOptionLabel:S=(e=>{var t;return null!=(t=e.label)?t:e}),groupBy:C,handleHomeEndKeys:E=!e.freeSolo,id:_,includeInputInList:k=!1,inputValue:T,isOptionEqualToValue:O=((e,t)=>e===t),multiple:P=!1,onChange:I,onClose:M,onHighlightChange:L,onInputChange:R,onOpen:j,open:F,openOnFocus:D=!1,options:N,readOnly:z=!1,selectOnFocus:V=!e.freeSolo,value:B}=e,$=(0,ze.A)(_);let G=S;G=e=>{const t=S(e);return"string"!=typeof t?String(t):t};const U=o.useRef(!1),W=o.useRef(!0),q=o.useRef(null),H=o.useRef(null),[Y,K]=o.useState(null),[X,Z]=o.useState(-1),J=i?0:-1,Q=o.useRef(J),[ee,te]=(0,Ve.A)({controlled:B,default:h,name:d}),[ne,re]=(0,Ve.A)({controlled:T,default:"",name:d,state:"inputValue"}),[ie,oe]=o.useState(!1),ae=o.useCallback(((e,t)=>{if(!(P?ee.length!b||!(P?ee:[ee]).some((t=>null!==t&&O(e,t))))),{inputValue:de&&ce?"":ne,getOptionLabel:G}):[],fe=Be({filteredOptions:pe,value:ee,inputValue:ne});o.useEffect((()=>{const e=ee!==fe.value;ie&&!e||w&&!e||ae(null,ee)}),[ee,ae,ie,fe.value,w]);const ge=se&&pe.length>0&&!z;const me=(0,$e.A)((e=>{-1===e?q.current.focus():Y.querySelector(`[data-tag-index="${e}"]`).focus()}));o.useEffect((()=>{P&&X>ee.length-1&&(Z(-1),me(-1))}),[ee,P,X,me]);const ye=(0,$e.A)((({event:e,index:t,reason:r="auto"})=>{if(Q.current=t,-1===t?q.current.removeAttribute("aria-activedescendant"):q.current.setAttribute("aria-activedescendant",`${$}-option-${t}`),L&&L(e,-1===t?null:pe[t],r),!H.current)return;const i=H.current.querySelector(`[role="option"].${n}-focused`);i&&(i.classList.remove(`${n}-focused`),i.classList.remove(`${n}-focusVisible`));let o=H.current;if("listbox"!==H.current.getAttribute("role")&&(o=H.current.parentElement.querySelector('[role="listbox"]')),!o)return;if(-1===t)return void(o.scrollTop=0);const a=H.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*(C?1.3:0){if(!he)return;const o=function(e,t){if(!H.current||e<0||e>=pe.length)return-1;let n=e;for(;;){const r=H.current.querySelector(`[data-option-index="${n}"]`),i=!m&&(!r||r.disabled||"true"===r.getAttribute("aria-disabled"));if(r&&r.hasAttribute("tabindex")&&!i)return n;if(n="next"===t?(n+1)%pe.length:(n-1+pe.length)%pe.length,n===e)return-1}}((()=>{const e=pe.length-1;if("reset"===t)return J;if("start"===t)return 0;if("end"===t)return e;const n=Q.current+t;return n<0?-1===n&&k?-1:y&&-1!==Q.current||Math.abs(t)>1?0:e:n>e?n===e+1&&k?-1:y||Math.abs(t)>1?e:0:n})(),n);if(ye({index:o,reason:i,event:e}),r&&"reset"!==t)if(-1===o)q.current.value=ne;else{const e=G(pe[o]);q.current.value=e;0===e.toLowerCase().indexOf(ne.toLowerCase())&&ne.length>0&&q.current.setSelectionRange(ne.length,e.length)}})),be=o.useCallback((()=>{if(!he)return;const e=(()=>{if(-1!==Q.current&&fe.filteredOptions&&fe.filteredOptions.length!==pe.length&&fe.inputValue===ne&&(P?ee.length===fe.value.length&&fe.value.every(((e,t)=>G(ee[t])===G(e))):(e=fe.value,t=ee,(e?G(e):"")===(t?G(t):"")))){const e=fe.filteredOptions[Q.current];if(e)return We(pe,(t=>G(t)===G(e)))}var e,t;return-1})();if(-1!==e)return void(Q.current=e);const t=P?ee[0]:ee;if(0!==pe.length&&null!=t){if(H.current)if(null==t)Q.current>=pe.length-1?ye({index:pe.length-1}):ye({index:Q.current});else{const e=pe[Q.current];if(P&&e&&-1!==We(ee,(t=>O(e,t))))return;const n=We(pe,(e=>O(e,t)));-1===n?ve({diff:"reset"}):ye({index:n})}}else ve({diff:"reset"})}),[pe.length,!P&&ee,b,ve,ye,he,ne,P]),we=(0,$e.A)((e=>{(0,Ge.A)(H,e),e&&be()}));o.useEffect((()=>{be()}),[be]);const xe=e=>{se||(le(!0),ue(!0),j&&j(e))},Ae=(e,t)=>{se&&(le(!1),M&&M(e,t))},Se=(e,t,n,r)=>{if(P){if(ee.length===t.length&&ee.every(((e,n)=>e===t[n])))return}else if(ee===t)return;I&&I(e,t,n,r),te(t)},Ce=o.useRef(!1),Ee=(e,t,n="selectOption",r="options")=>{let i=n,o=t;if(P){o=Array.isArray(ee)?ee.slice():[];const e=We(o,(e=>O(t,e)));-1===e?o.push(t):"freeSolo"!==r&&(o.splice(e,1),i="removeOption")}ae(e,o),Se(e,o,i,{option:t}),f||e&&(e.ctrlKey||e.metaKey)||Ae(e,i),(!0===l||"touch"===l&&Ce.current||"mouse"===l&&!Ce.current)&&q.current.blur()};const _e=(e,t)=>{if(!P)return;""===ne&&Ae(e,"toggleInput");let n=X;-1===X?""===ne&&"previous"===t&&(n=ee.length-1):(n+="next"===t?1:-1,n<0&&(n=0),n===ee.length&&(n=-1)),n=function(e,t){if(-1===e)return-1;let n=e;for(;;){if("next"===t&&n===ee.length||"previous"===t&&-1===n)return-1;const e=Y.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),Z(n),me(n)},ke=e=>{U.current=!0,re(""),R&&R(e,"","clear"),Se(e,P?[]:null,"clear")},Te=e=>t=>{if(e.onKeyDown&&e.onKeyDown(t),!t.defaultMuiPrevented&&(-1!==X&&-1===["ArrowLeft","ArrowRight"].indexOf(t.key)&&(Z(-1),me(-1)),229!==t.which))switch(t.key){case"Home":he&&E&&(t.preventDefault(),ve({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":he&&E&&(t.preventDefault(),ve({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),ve({diff:-5,direction:"previous",reason:"keyboard",event:t}),xe(t);break;case"PageDown":t.preventDefault(),ve({diff:5,direction:"next",reason:"keyboard",event:t}),xe(t);break;case"ArrowDown":t.preventDefault(),ve({diff:1,direction:"next",reason:"keyboard",event:t}),xe(t);break;case"ArrowUp":t.preventDefault(),ve({diff:-1,direction:"previous",reason:"keyboard",event:t}),xe(t);break;case"ArrowLeft":_e(t,"previous");break;case"ArrowRight":_e(t,"next");break;case"Enter":if(-1!==Q.current&&he){const e=pe[Q.current],n=!!x&&x(e);if(t.preventDefault(),n)return;Ee(t,e,"selectOption"),r&&q.current.setSelectionRange(q.current.value.length,q.current.value.length)}else w&&""!==ne&&!1===de&&(P&&t.preventDefault(),Ee(t,ne,"createOption","freeSolo"));break;case"Escape":he?(t.preventDefault(),t.stopPropagation(),Ae(t,"escape")):u&&(""!==ne||P&&ee.length>0)&&(t.preventDefault(),t.stopPropagation(),ke(t));break;case"Backspace":if(P&&!z&&""===ne&&ee.length>0){const e=-1===X?ee.length-1:X,n=ee.slice();n.splice(e,1),Se(t,n,"removeOption",{option:ee[e]})}break;case"Delete":if(P&&!z&&""===ne&&ee.length>0&&-1!==X){const e=X,n=ee.slice();n.splice(e,1),Se(t,n,"removeOption",{option:ee[e]})}}},Oe=e=>{oe(!0),D&&!U.current&&xe(e)},Pe=e=>{t(H)?q.current.focus():(oe(!1),W.current=!0,U.current=!1,a&&-1!==Q.current&&he?Ee(e,pe[Q.current],"blur"):a&&w&&""!==ne?Ee(e,ne,"blur","freeSolo"):c&&ae(e,ee),Ae(e,"blur"))},Ie=e=>{const t=e.target.value;ne!==t&&(re(t),ue(!1),R&&R(e,t,"input")),""===t?p||P||Se(e,null,"clear"):xe(e)},Me=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));Q.current!==t&&ye({event:e,index:t,reason:"mouse"})},Le=e=>{ye({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Ce.current=!0},Re=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));Ee(e,pe[t],"selectOption"),Ce.current=!1},je=e=>t=>{const n=ee.slice();n.splice(e,1),Se(t,n,"removeOption",{option:ee[e]})},Fe=e=>{se?Ae(e,"toggleInput"):xe(e)},De=e=>{e.currentTarget.contains(e.target)&&e.target.getAttribute("id")!==$&&e.preventDefault()},Ne=e=>{e.currentTarget.contains(e.target)&&(q.current.focus(),V&&W.current&&q.current.selectionEnd-q.current.selectionStart==0&&q.current.select(),W.current=!1)},Ue=e=>{g||""!==ne&&se||Fe(e)};let Ye=w&&ne.length>0;Ye=Ye||(P?ee.length>0:null!==ee);let Ke=pe;if(C){new Map;Ke=pe.reduce(((e,t,n)=>{const r=C(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 g&&ie&&Pe(),{getRootProps:(e={})=>(0,s.A)({"aria-owns":ge?`${$}-listbox`:null},e,{onKeyDown:Te(e),onMouseDown:De,onClick:Ne}),getInputLabelProps:()=>({id:`${$}-label`,htmlFor:$}),getInputProps:()=>({id:$,value:ne,onBlur:Pe,onFocus:Oe,onChange:Ie,onMouseDown:Ue,"aria-activedescendant":he?"":null,"aria-autocomplete":r?"both":"list","aria-controls":ge?`${$}-listbox`:void 0,"aria-expanded":ge,autoComplete:"off",ref:q,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:g}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:ke}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:Fe}),getTagProps:({index:e})=>(0,s.A)({key:e,"data-tag-index":e,tabIndex:-1},!z&&{onDelete:je(e)}),getListboxProps:()=>({role:"listbox",id:`${$}-listbox`,"aria-labelledby":`${$}-label`,ref:we,onMouseDown:e=>{e.preventDefault()}}),getOptionProps:({index:e,option:t})=>{var n;const r=(P?ee:[ee]).some((e=>null!=e&&O(t,e))),i=!!x&&x(t);return{key:null!=(n=null==A?void 0:A(t))?n:G(t),tabIndex:-1,role:"option",id:`${$}-option-${e}`,onMouseMove:Me,onClick:Re,onTouchStart:Le,"data-option-index":e,"aria-disabled":i,"aria-selected":r}},id:$,inputValue:ne,value:ee,dirty:Ye,expanded:he&&Y,popupOpen:he,focused:ie||-1!==X,anchorEl:Y,setAnchorEl:K,focusedTag:X,groupedOptions:Ke}}var Ke=n(59015),Xe=n(43107),Ze=n(74311);function Je(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Qe(e){return e instanceof Je(e).Element||e instanceof Element}function et(e){return e instanceof Je(e).HTMLElement||e instanceof HTMLElement}function tt(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Je(e).ShadowRoot||e instanceof ShadowRoot)}var nt=Math.max,rt=Math.min,it=Math.round;function ot(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function at(){return!/^((?!chrome|android).)*safari/i.test(ot())}function st(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&et(e)&&(i=e.offsetWidth>0&&it(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&it(r.height)/e.offsetHeight||1);var a=(Qe(e)?Je(e):window).visualViewport,s=!at()&&n,l=(r.left+(s&&a?a.offsetLeft:0))/i,c=(r.top+(s&&a?a.offsetTop:0))/o,u=r.width/i,d=r.height/o;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l,x:l,y:c}}function lt(e){var t=Je(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function ct(e){return e?(e.nodeName||"").toLowerCase():null}function ut(e){return((Qe(e)?e.ownerDocument:e.document)||window.document).documentElement}function dt(e){return st(ut(e)).left+lt(e).scrollLeft}function ht(e){return Je(e).getComputedStyle(e)}function pt(e){var t=ht(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function ft(e,t,n){void 0===n&&(n=!1);var r,i,o=et(t),a=et(t)&&function(e){var t=e.getBoundingClientRect(),n=it(t.width)/e.offsetWidth||1,r=it(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),s=ut(t),l=st(e,a,n),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(o||!o&&!n)&&(("body"!==ct(t)||pt(s))&&(c=(r=t)!==Je(r)&&et(r)?{scrollLeft:(i=r).scrollLeft,scrollTop:i.scrollTop}:lt(r)),et(t)?((u=st(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):s&&(u.x=dt(s))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function gt(e){var t=st(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function mt(e){return"html"===ct(e)?e:e.assignedSlot||e.parentNode||(tt(e)?e.host:null)||ut(e)}function yt(e){return["html","body","#document"].indexOf(ct(e))>=0?e.ownerDocument.body:et(e)&&pt(e)?e:yt(mt(e))}function vt(e,t){var n;void 0===t&&(t=[]);var r=yt(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=Je(r),a=i?[o].concat(o.visualViewport||[],pt(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(vt(mt(a)))}function bt(e){return["table","td","th"].indexOf(ct(e))>=0}function wt(e){return et(e)&&"fixed"!==ht(e).position?e.offsetParent:null}function xt(e){for(var t=Je(e),n=wt(e);n&&bt(n)&&"static"===ht(n).position;)n=wt(n);return n&&("html"===ct(n)||"body"===ct(n)&&"static"===ht(n).position)?t:n||function(e){var t=/firefox/i.test(ot());if(/Trident/i.test(ot())&&et(e)&&"fixed"===ht(e).position)return null;var n=mt(e);for(tt(n)&&(n=n.host);et(n)&&["html","body"].indexOf(ct(n))<0;){var r=ht(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var At="top",St="bottom",Ct="right",Et="left",_t="auto",kt=[At,St,Ct,Et],Tt="start",Ot="end",Pt="clippingParents",It="viewport",Mt="popper",Lt="reference",Rt=kt.reduce((function(e,t){return e.concat([t+"-"+Tt,t+"-"+Ot])}),[]),jt=[].concat(kt,[_t]).reduce((function(e,t){return e.concat([t,t+"-"+Tt,t+"-"+Ot])}),[]),Ft=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Dt(e){var t=new Map,n=new Set,r=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||i(e)})),r}var Nt={placement:"bottom",modifiers:[],strategy:"absolute"};function zt(){for(var e=arguments.length,t=new Array(e),n=0;n=0?"x":"y"}function Wt(e){var t,n=e.reference,r=e.element,i=e.placement,o=i?$t(i):null,a=i?Gt(i):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(o){case At:t={x:s,y:n.y-r.height};break;case St:t={x:s,y:n.y+n.height};break;case Ct:t={x:n.x+n.width,y:l};break;case Et:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=o?Ut(o):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case Tt:t[c]=t[c]-(n[u]/2-r[u]/2);break;case Ot:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}var qt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ht(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,h=a.x,p=void 0===h?0:h,f=a.y,g=void 0===f?0:f,m="function"==typeof u?u({x:p,y:g}):{x:p,y:g};p=m.x,g=m.y;var y=a.hasOwnProperty("x"),v=a.hasOwnProperty("y"),b=Et,w=At,x=window;if(c){var A=xt(n),S="clientHeight",C="clientWidth";if(A===Je(n)&&"static"!==ht(A=ut(n)).position&&"absolute"===s&&(S="scrollHeight",C="scrollWidth"),i===At||(i===Et||i===Ct)&&o===Ot)w=St,g-=(d&&A===x&&x.visualViewport?x.visualViewport.height:A[S])-r.height,g*=l?1:-1;if(i===Et||(i===At||i===St)&&o===Ot)b=Ct,p-=(d&&A===x&&x.visualViewport?x.visualViewport.width:A[C])-r.width,p*=l?1:-1}var E,_=Object.assign({position:s},c&&qt),k=!0===u?function(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:it(n*i)/i||0,y:it(r*i)/i||0}}({x:p,y:g},Je(n)):{x:p,y:g};return p=k.x,g=k.y,l?Object.assign({},_,((E={})[w]=v?"0":"",E[b]=y?"0":"",E.transform=(x.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",E)):Object.assign({},_,((t={})[w]=v?g+"px":"",t[b]=y?p+"px":"",t.transform="",t))}const Yt={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];et(i)&&ct(i)&&(Object.assign(i.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],i=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});et(r)&&ct(r)&&(Object.assign(r.style,o),Object.keys(i).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};const Kt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=void 0===i?[0,0]:i,a=jt.reduce((function(e,n){return e[n]=function(e,t,n){var r=$t(e),i=[Et,At].indexOf(r)>=0?-1:1,o="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[Et,Ct].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,o),e}),{}),s=a[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}};var Xt={left:"right",right:"left",bottom:"top",top:"bottom"};function Zt(e){return e.replace(/left|right|bottom|top/g,(function(e){return Xt[e]}))}var Jt={start:"end",end:"start"};function Qt(e){return e.replace(/start|end/g,(function(e){return Jt[e]}))}function en(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&tt(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function tn(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function nn(e,t,n){return t===It?tn(function(e,t){var n=Je(e),r=ut(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var c=at();(c||!c&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+dt(e),y:l}}(e,n)):Qe(t)?function(e,t){var n=st(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):tn(function(e){var t,n=ut(e),r=lt(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=nt(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=nt(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+dt(e),l=-r.scrollTop;return"rtl"===ht(i||n).direction&&(s+=nt(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}(ut(e)))}function rn(e,t,n,r){var i="clippingParents"===t?function(e){var t=vt(mt(e)),n=["absolute","fixed"].indexOf(ht(e).position)>=0&&et(e)?xt(e):e;return Qe(n)?t.filter((function(e){return Qe(e)&&en(e,n)&&"body"!==ct(e)})):[]}(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce((function(t,n){var i=nn(e,n,r);return t.top=nt(i.top,t.top),t.right=rt(i.right,t.right),t.bottom=rt(i.bottom,t.bottom),t.left=nt(i.left,t.left),t}),nn(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function on(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function an(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function sn(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=void 0===r?e.placement:r,o=n.strategy,a=void 0===o?e.strategy:o,s=n.boundary,l=void 0===s?Pt:s,c=n.rootBoundary,u=void 0===c?It:c,d=n.elementContext,h=void 0===d?Mt:d,p=n.altBoundary,f=void 0!==p&&p,g=n.padding,m=void 0===g?0:g,y=on("number"!=typeof m?m:an(m,kt)),v=h===Mt?Lt:Mt,b=e.rects.popper,w=e.elements[f?v:h],x=rn(Qe(w)?w:w.contextElement||ut(e.elements.popper),l,u,a),A=st(e.elements.reference),S=Wt({reference:A,element:b,strategy:"absolute",placement:i}),C=tn(Object.assign({},b,S)),E=h===Mt?C:A,_={top:x.top-E.top+y.top,bottom:E.bottom-x.bottom+y.bottom,left:x.left-E.left+y.left,right:E.right-x.right+y.right},k=e.modifiersData.offset;if(h===Mt&&k){var T=k[i];Object.keys(_).forEach((function(e){var t=[Ct,St].indexOf(e)>=0?1:-1,n=[At,St].indexOf(e)>=0?"y":"x";_[e]+=T[n]*t}))}return _}function ln(e,t,n){return nt(e,rt(t,n))}const cn={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0!==a&&a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,h=n.tether,p=void 0===h||h,f=n.tetherOffset,g=void 0===f?0:f,m=sn(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),y=$t(t.placement),v=Gt(t.placement),b=!v,w=Ut(y),x="x"===w?"y":"x",A=t.modifiersData.popperOffsets,S=t.rects.reference,C=t.rects.popper,E="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,_="number"==typeof E?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),k=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,T={x:0,y:0};if(A){if(o){var O,P="y"===w?At:Et,I="y"===w?St:Ct,M="y"===w?"height":"width",L=A[w],R=L+m[P],j=L-m[I],F=p?-C[M]/2:0,D=v===Tt?S[M]:C[M],N=v===Tt?-C[M]:-S[M],z=t.elements.arrow,V=p&&z?gt(z):{width:0,height:0},B=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},$=B[P],G=B[I],U=ln(0,S[M],V[M]),W=b?S[M]/2-F-U-$-_.mainAxis:D-U-$-_.mainAxis,q=b?-S[M]/2+F+U+G+_.mainAxis:N+U+G+_.mainAxis,H=t.elements.arrow&&xt(t.elements.arrow),Y=H?"y"===w?H.clientTop||0:H.clientLeft||0:0,K=null!=(O=null==k?void 0:k[w])?O:0,X=L+q-K,Z=ln(p?rt(R,L+W-K-Y):R,L,p?nt(j,X):j);A[w]=Z,T[w]=Z-L}if(s){var J,Q="x"===w?At:Et,ee="x"===w?St:Ct,te=A[x],ne="y"===x?"height":"width",re=te+m[Q],ie=te-m[ee],oe=-1!==[At,Et].indexOf(y),ae=null!=(J=null==k?void 0:k[x])?J:0,se=oe?re:te-S[ne]-C[ne]-ae+_.altAxis,le=oe?te+S[ne]+C[ne]-ae-_.altAxis:ie,ce=p&&oe?function(e,t,n){var r=ln(e,t,n);return r>n?n:r}(se,te,le):ln(p?se:re,te,p?le:ie);A[x]=ce,T[x]=ce-te}t.modifiersData[r]=T}},requiresIfExists:["offset"]};const un={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=$t(n.placement),l=Ut(s),c=[Et,Ct].indexOf(s)>=0?"height":"width";if(o&&a){var u=function(e,t){return on("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:an(e,kt))}(i.padding,n),d=gt(o),h="y"===l?At:Et,p="y"===l?St:Ct,f=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],g=a[l]-n.rects.reference[l],m=xt(o),y=m?"y"===l?m.clientHeight||0:m.clientWidth||0:0,v=f/2-g/2,b=u[h],w=y-d[c]-u[p],x=y/2-d[c]/2+v,A=ln(b,x,w),S=l;n.modifiersData[r]=((t={})[S]=A,t.centerOffset=A-x,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&en(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function dn(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function hn(e){return[At,Ct,St,Et].some((function(t){return e[t]>=0}))}var pn=Vt({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=void 0===i||i,a=r.resize,s=void 0===a||a,l=Je(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach((function(e){e.addEventListener("scroll",n.update,Bt)})),s&&l.addEventListener("resize",n.update,Bt),function(){o&&c.forEach((function(e){e.removeEventListener("scroll",n.update,Bt)})),s&&l.removeEventListener("resize",n.update,Bt)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Wt({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=void 0===r||r,o=n.adaptive,a=void 0===o||o,s=n.roundOffsets,l=void 0===s||s,c={placement:$t(t.placement),variation:Gt(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Ht(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ht(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Yt,Kt,{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,h=n.altBoundary,p=n.flipVariations,f=void 0===p||p,g=n.allowedAutoPlacements,m=t.options.placement,y=$t(m),v=l||(y===m||!f?[Zt(m)]:function(e){if($t(e)===_t)return[];var t=Zt(e);return[Qt(e),t,Qt(t)]}(m)),b=[m].concat(v).reduce((function(e,n){return e.concat($t(n)===_t?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?jt:l,u=Gt(r),d=u?s?Rt:Rt.filter((function(e){return Gt(e)===u})):kt,h=d.filter((function(e){return c.indexOf(e)>=0}));0===h.length&&(h=d);var p=h.reduce((function(t,n){return t[n]=sn(e,{placement:n,boundary:i,rootBoundary:o,padding:a})[$t(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:f,allowedAutoPlacements:g}):n)}),[]),w=t.rects.reference,x=t.rects.popper,A=new Map,S=!0,C=b[0],E=0;E=0,P=O?"width":"height",I=sn(t,{placement:_,boundary:u,rootBoundary:d,altBoundary:h,padding:c}),M=O?T?Ct:Et:T?St:At;w[P]>x[P]&&(M=Zt(M));var L=Zt(M),R=[];if(o&&R.push(I[k]<=0),s&&R.push(I[M]<=0,I[L]<=0),R.every((function(e){return e}))){C=_,S=!1;break}A.set(_,R)}if(S)for(var j=function(e){var t=b.find((function(t){var n=A.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return C=t,"break"},F=f?3:1;F>0;F--){if("break"===j(F))break}t.placement!==C&&(t.modifiersData[r]._skip=!0,t.placement=C,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},cn,un,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=sn(t,{elementContext:"reference"}),s=sn(t,{altBoundary:!0}),l=dn(a,r),c=dn(s,i,o),u=hn(l),d=hn(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]});const fn=o.forwardRef((function(e,t){const{children:n,container:r,disablePortal:i=!1}=e,[a,s]=o.useState(null),l=(0,q.A)(o.isValidElement(n)?n.ref:null,t);if((0,Xe.A)((()=>{i||s(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,i]),(0,Xe.A)((()=>{if(a&&!i)return(0,Ge.A)(t,a),()=>{(0,Ge.A)(t,null)}}),[t,a,i]),i){if(o.isValidElement(n)){const e={ref:l};return o.cloneElement(n,e)}return(0,F.jsx)(o.Fragment,{children:n})}return(0,F.jsx)(o.Fragment,{children:a?f.createPortal(n,a):a})}));const gn="base";function mn(e,t){const n=R.li[t];return n?`${gn}--${n}`:function(e,t){return`${gn}-${e}-${t}`}(e,t)}const yn="Popper";function vn(e){return mn(yn,e)}!function(e,t){const n={};t.forEach((t=>{n[t]=mn(e,t)}))}(yn,["root"]);var bn=n(12277);const wn={disableDefaultClasses:!1},xn=o.createContext(wn);const An=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Sn=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Cn(e){return"function"==typeof e?e():e}function En(e){return void 0!==e.nodeType}const _n=()=>(0,u.A)({root:["root"]},function(e){const{disableDefaultClasses:t}=o.useContext(xn);return n=>t?"":e(n)}(vn)),kn={},Tn=o.forwardRef((function(e,t){var n;const{anchorEl:r,children:i,direction:a,disablePortal:c,modifiers:u,open:d,placement:h,popperOptions:p,popperRef:f,slotProps:g={},slots:m={},TransitionProps:y}=e,v=(0,l.A)(e,An),b=o.useRef(null),w=(0,q.A)(b,t),x=o.useRef(null),A=(0,q.A)(x,f),S=o.useRef(A);(0,Xe.A)((()=>{S.current=A}),[A]),o.useImperativeHandle(f,(()=>x.current),[]);const C=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(h,a),[E,_]=o.useState(C),[k,T]=o.useState(Cn(r));o.useEffect((()=>{x.current&&x.current.forceUpdate()})),o.useEffect((()=>{r&&T(Cn(r))}),[r]),(0,Xe.A)((()=>{if(!k||!d)return;let e=[{name:"preventOverflow",options:{altBoundary:c}},{name:"flip",options:{altBoundary:c}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{_(e.placement)}}];null!=u&&(e=e.concat(u)),p&&null!=p.modifiers&&(e=e.concat(p.modifiers));const t=pn(k,b.current,(0,s.A)({placement:C},p,{modifiers:e}));return S.current(t),()=>{t.destroy(),S.current(null)}}),[k,c,u,d,p,C]);const O={placement:E};null!==y&&(O.TransitionProps=y);const P=_n(),I=null!=(n=m.root)?n:"div",M=(0,bn.Q)({elementType:I,externalSlotProps:g.root,externalForwardedProps:v,additionalProps:{role:"tooltip",ref:w},ownerState:e,className:P.root});return(0,F.jsx)(I,(0,s.A)({},M,{children:"function"==typeof i?i(O):i}))})),On=o.forwardRef((function(e,t){const{anchorEl:n,children:r,container:i,direction:a="ltr",disablePortal:c=!1,keepMounted:u=!1,modifiers:d,open:h,placement:p="bottom",popperOptions:f=kn,popperRef:g,style:m,transition:y=!1,slotProps:v={},slots:b={}}=e,w=(0,l.A)(e,Sn),[x,A]=o.useState(!0);if(!u&&!h&&(!y||x))return null;let S;if(i)S=i;else if(n){const e=Cn(n);S=e&&En(e)?(0,Ze.A)(e).body:(0,Ze.A)(null).body}const C=h||!u||y&&!x?void 0:"none",E=y?{in:h,onEnter:()=>{A(!1)},onExited:()=>{A(!0)}}:void 0;return(0,F.jsx)(fn,{disablePortal:c,container:S,children:(0,F.jsx)(Tn,(0,s.A)({anchorEl:n,direction:a,disablePortal:c,modifiers:d,ref:t,open:y?!x:h,placement:p,popperOptions:f,popperRef:g,slotProps:v,slots:b},w,{style:(0,s.A)({position:"fixed",top:0,left:0,display:C},m),TransitionProps:E,children:r}))})}));var Pn=n(98767);const In=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],Mn=(0,h.Ay)(On,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Ln=o.forwardRef((function(e,t){var n;const r=(0,Pn.A)(),i=(0,k.A)({props:e,name:"MuiPopper"}),{anchorEl:o,component:a,components:c,componentsProps:u,container:d,disablePortal:h,keepMounted:p,modifiers:f,open:g,placement:m,popperOptions:y,popperRef:v,transition:b,slots:w,slotProps:x}=i,A=(0,l.A)(i,In),S=null!=(n=null==w?void 0:w.root)?n:null==c?void 0:c.Root,C=(0,s.A)({anchorEl:o,container:d,disablePortal:h,keepMounted:p,modifiers:f,open:g,placement:m,popperOptions:y,popperRef:v,transition:b},A);return(0,F.jsx)(Mn,(0,s.A)({as:a,direction:null==r?void 0:r.direction,slots:{root:S},slotProps:null!=x?x:u},C,{ref:t}))})),Rn=Ln;function jn(e){return(0,R.Ay)("MuiListSubheader",e)}(0,L.A)("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const Fn=["className","color","component","disableGutters","disableSticky","inset"],Dn=(0,h.Ay)("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${(0,Ce.A)(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})((({theme:e,ownerState:t})=>(0,s.A)({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)},"primary"===t.color&&{color:(e.vars||e).palette.primary.main},"inherit"===t.color&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}))),Nn=o.forwardRef((function(e,t){const n=(0,k.A)({props:e,name:"MuiListSubheader"}),{className:r,color:i="default",component:o="li",disableGutters:a=!1,disableSticky:d=!1,inset:h=!1}=n,p=(0,l.A)(n,Fn),f=(0,s.A)({},n,{color:i,component:o,disableGutters:a,disableSticky:d,inset:h}),g=(e=>{const{classes:t,color:n,disableGutters:r,inset:i,disableSticky:o}=e,a={root:["root","default"!==n&&`color${(0,Ce.A)(n)}`,!r&&"gutters",i&&"inset",!o&&"sticky"]};return(0,u.A)(a,jn,t)})(f);return(0,F.jsx)(Dn,(0,s.A)({as:o,className:(0,c.A)(g.root,r),ref:t,ownerState:f},p))}));Nn.muiSkipListHighlight=!0;const zn=Nn;function Vn(e){return(0,R.Ay)("MuiIconButton",e)}const Bn=(0,L.A)("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),$n=["edge","children","className","color","disabled","disableFocusRipple","size"],Gn=(0,h.Ay)(ae.A,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${(0,Ce.A)(n.color)}`],n.edge&&t[`edge${(0,Ce.A)(n.edge)}`],t[`size${(0,Ce.A)(n.size)}`]]}})((({theme:e,ownerState:t})=>(0,s.A)({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,Ke.X4)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})),(({theme:e,ownerState:t})=>{var n;const r=null==(n=(e.vars||e).palette)?void 0:n[t.color];return(0,s.A)({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&(0,s.A)({color:null==r?void 0:r.main},!t.disableRipple&&{"&:hover":(0,s.A)({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,Ke.X4)(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===t.size&&{padding:5,fontSize:e.typography.pxToRem(18)},"large"===t.size&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${Bn.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})})),Un=o.forwardRef((function(e,t){const n=(0,k.A)({props:e,name:"MuiIconButton"}),{edge:r=!1,children:i,className:o,color:a="default",disabled:d=!1,disableFocusRipple:h=!1,size:p="medium"}=n,f=(0,l.A)(n,$n),g=(0,s.A)({},n,{edge:r,color:a,disabled:d,disableFocusRipple:h,size:p}),m=(e=>{const{classes:t,disabled:n,color:r,edge:i,size:o}=e,a={root:["root",n&&"disabled","default"!==r&&`color${(0,Ce.A)(r)}`,i&&`edge${(0,Ce.A)(i)}`,`size${(0,Ce.A)(o)}`]};return(0,u.A)(a,Vn,t)})(g);return(0,F.jsx)(Gn,(0,s.A)({className:(0,c.A)(m.root,o),centerRipple:!0,focusRipple:!h,disabled:d,ref:t},f,{ownerState:g,children:i}))}));var Wn=n(65127);const qn=(0,Wn.A)((0,F.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");function Hn(e){return(0,R.Ay)("MuiChip",e)}const Yn=(0,L.A)("MuiChip",["root","sizeSmall","sizeMedium","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"]),Kn=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],Xn=(0,h.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[{[`& .${Yn.avatar}`]:t.avatar},{[`& .${Yn.avatar}`]:t[`avatar${(0,Ce.A)(s)}`]},{[`& .${Yn.avatar}`]:t[`avatarColor${(0,Ce.A)(r)}`]},{[`& .${Yn.icon}`]:t.icon},{[`& .${Yn.icon}`]:t[`icon${(0,Ce.A)(s)}`]},{[`& .${Yn.icon}`]:t[`iconColor${(0,Ce.A)(i)}`]},{[`& .${Yn.deleteIcon}`]:t.deleteIcon},{[`& .${Yn.deleteIcon}`]:t[`deleteIcon${(0,Ce.A)(s)}`]},{[`& .${Yn.deleteIcon}`]:t[`deleteIconColor${(0,Ce.A)(r)}`]},{[`& .${Yn.deleteIcon}`]:t[`deleteIcon${(0,Ce.A)(l)}Color${(0,Ce.A)(r)}`]},t.root,t[`size${(0,Ce.A)(s)}`],t[`color${(0,Ce.A)(r)}`],o&&t.clickable,o&&"default"!==r&&t[`clickableColor${(0,Ce.A)(r)})`],a&&t.deletable,a&&"default"!==r&&t[`deletableColor${(0,Ce.A)(r)}`],t[l],t[`${l}${(0,Ce.A)(r)}`]]}})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?e.palette.grey[700]:e.palette.grey[300];return(0,s.A)({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",[`&.${Yn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Yn.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${Yn.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Yn.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Yn.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Yn.icon}`]:(0,s.A)({marginLeft:5,marginRight:-6},"small"===t.size&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&(0,s.A)({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},"default"!==t.color&&{color:"inherit"})),[`& .${Yn.deleteIcon}`]:(0,s.A)({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:(0,Ke.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,Ke.X4)(e.palette.text.primary,.4)}},"small"===t.size&&{fontSize:16,marginRight:4,marginLeft:-4},"default"!==t.color&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:(0,Ke.X4)(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},"small"===t.size&&{height:24},"default"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${Yn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,Ke.X4)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&"default"!==t.color&&{[`&.${Yn.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})}),(({theme:e,ownerState:t})=>(0,s.A)({},t.clickable&&{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,Ke.X4)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Yn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,Ke.X4)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&"default"!==t.color&&{[`&:hover, &.${Yn.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})),(({theme:e,ownerState:t})=>(0,s.A)({},"outlined"===t.variant&&{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]}`,[`&.${Yn.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Yn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Yn.avatar}`]:{marginLeft:4},[`& .${Yn.avatarSmall}`]:{marginLeft:2},[`& .${Yn.icon}`]:{marginLeft:4},[`& .${Yn.iconSmall}`]:{marginLeft:2},[`& .${Yn.deleteIcon}`]:{marginRight:5},[`& .${Yn.deleteIconSmall}`]:{marginRight:3}},"outlined"===t.variant&&"default"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:(0,Ke.X4)(e.palette[t.color].main,.7)}`,[`&.${Yn.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,Ke.X4)(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${Yn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:(0,Ke.X4)(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${Yn.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:(0,Ke.X4)(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}}))),Zn=(0,h.Ay)("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${(0,Ce.A)(r)}`]]}})((({ownerState:e})=>(0,s.A)({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},"outlined"===e.variant&&{paddingLeft:11,paddingRight:11},"small"===e.size&&{paddingLeft:8,paddingRight:8},"small"===e.size&&"outlined"===e.variant&&{paddingLeft:7,paddingRight:7})));function Jn(e){return"Backspace"===e.key||"Delete"===e.key}const Qn=o.forwardRef((function(e,t){const n=(0,k.A)({props:e,name:"MuiChip"}),{avatar:r,className:i,clickable:a,color:d="default",component:h,deleteIcon:p,disabled:f=!1,icon:g,label:m,onClick:y,onDelete:v,onKeyDown:b,onKeyUp:w,size:x="medium",variant:A="filled",tabIndex:S,skipFocusWhenDisabled:C=!1}=n,E=(0,l.A)(n,Kn),_=o.useRef(null),T=(0,M.A)(_,t),O=e=>{e.stopPropagation(),v&&v(e)},P=!(!1===a||!y)||a,I=P||v?ae.A:h||"div",L=(0,s.A)({},n,{component:I,disabled:f,size:x,color:d,iconColor:o.isValidElement(g)&&g.props.color||d,onDelete:!!v,clickable:P,variant:A}),R=(e=>{const{classes:t,disabled:n,size:r,color:i,iconColor:o,onDelete:a,clickable:s,variant:l}=e,c={root:["root",l,n&&"disabled",`size${(0,Ce.A)(r)}`,`color${(0,Ce.A)(i)}`,s&&"clickable",s&&`clickableColor${(0,Ce.A)(i)}`,a&&"deletable",a&&`deletableColor${(0,Ce.A)(i)}`,`${l}${(0,Ce.A)(i)}`],label:["label",`label${(0,Ce.A)(r)}`],avatar:["avatar",`avatar${(0,Ce.A)(r)}`,`avatarColor${(0,Ce.A)(i)}`],icon:["icon",`icon${(0,Ce.A)(r)}`,`iconColor${(0,Ce.A)(o)}`],deleteIcon:["deleteIcon",`deleteIcon${(0,Ce.A)(r)}`,`deleteIconColor${(0,Ce.A)(i)}`,`deleteIcon${(0,Ce.A)(l)}Color${(0,Ce.A)(i)}`]};return(0,u.A)(c,Hn,t)})(L),j=I===ae.A?(0,s.A)({component:h||"div",focusVisibleClassName:R.focusVisible},v&&{disableRipple:!0}):{};let D=null;v&&(D=p&&o.isValidElement(p)?o.cloneElement(p,{className:(0,c.A)(p.props.className,R.deleteIcon),onClick:O}):(0,F.jsx)(qn,{className:(0,c.A)(R.deleteIcon),onClick:O}));let N=null;r&&o.isValidElement(r)&&(N=o.cloneElement(r,{className:(0,c.A)(R.avatar,r.props.className)}));let z=null;return g&&o.isValidElement(g)&&(z=o.cloneElement(g,{className:(0,c.A)(R.icon,g.props.className)})),(0,F.jsxs)(Xn,(0,s.A)({as:I,className:(0,c.A)(R.root,i),disabled:!(!P||!f)||void 0,onClick:y,onKeyDown:e=>{e.currentTarget===e.target&&Jn(e)&&e.preventDefault(),b&&b(e)},onKeyUp:e=>{e.currentTarget===e.target&&(v&&Jn(e)?v(e):"Escape"===e.key&&_.current&&_.current.blur()),w&&w(e)},ref:T,tabIndex:C&&f?-1:S,ownerState:L},j,E,{children:[N||z,(0,F.jsx)(Zn,{className:(0,c.A)(R.label),ownerState:L,children:m}),D]}))}));var er=n(52441),tr=n(8253);function nr(e){return(0,R.Ay)("MuiOutlinedInput",e)}const rr=(0,s.A)({},tr.A,(0,L.A)("MuiOutlinedInput",["root","notchedOutline","input"]));function ir(e){return(0,R.Ay)("MuiFilledInput",e)}const or=(0,s.A)({},tr.A,(0,L.A)("MuiFilledInput",["root","underline","input"])),ar=(0,Wn.A)((0,F.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 sr=n(69216);function lr(e){return(0,R.Ay)("MuiAutocomplete",e)}const cr=(0,L.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 ur,dr;const hr=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],pr=["ref"],fr=(0,d.h)("MuiAutocomplete"),gr=(0,h.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[{[`& .${cr.tag}`]:t.tag},{[`& .${cr.tag}`]:t[`tagSize${(0,Ce.A)(s)}`]},{[`& .${cr.inputRoot}`]:t.inputRoot},{[`& .${cr.input}`]:t.input},{[`& .${cr.input}`]:a&&t.inputFocused},t.root,r&&t.fullWidth,o&&t.hasPopupIcon,i&&t.hasClearIcon]}})({[`&.${cr.focused} .${cr.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${cr.clearIndicator}`]:{visibility:"visible"}},[`& .${cr.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${cr.inputRoot}`]:{flexWrap:"wrap",[`.${cr.hasPopupIcon}&, .${cr.hasClearIcon}&`]:{paddingRight:30},[`.${cr.hasPopupIcon}.${cr.hasClearIcon}&`]:{paddingRight:56},[`& .${cr.input}`]:{width:0,minWidth:30}},[`& .${er.A.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${er.A.root}.${tr.A.sizeSmall}`]:{[`& .${er.A.input}`]:{padding:"2px 4px 3px 0"}},[`& .${rr.root}`]:{padding:9,[`.${cr.hasPopupIcon}&, .${cr.hasClearIcon}&`]:{paddingRight:39},[`.${cr.hasPopupIcon}.${cr.hasClearIcon}&`]:{paddingRight:65},[`& .${cr.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${cr.endAdornment}`]:{right:9}},[`& .${rr.root}.${tr.A.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${cr.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${or.root}`]:{paddingTop:19,paddingLeft:8,[`.${cr.hasPopupIcon}&, .${cr.hasClearIcon}&`]:{paddingRight:39},[`.${cr.hasPopupIcon}.${cr.hasClearIcon}&`]:{paddingRight:65},[`& .${or.input}`]:{padding:"7px 4px"},[`& .${cr.endAdornment}`]:{right:9}},[`& .${or.root}.${tr.A.sizeSmall}`]:{paddingBottom:1,[`& .${or.input}`]:{padding:"2.5px 4px"}},[`& .${tr.A.hiddenLabel}`]:{paddingTop:8},[`& .${or.root}.${tr.A.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${cr.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${or.root}.${tr.A.hiddenLabel}.${tr.A.sizeSmall}`]:{[`& .${cr.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${cr.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${cr.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${cr.input}`]:{opacity:1}}}]}),mr=(0,h.Ay)("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),yr=(0,h.Ay)(Un,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),vr=(0,h.Ay)(Un,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>(0,s.A)({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),br=(0,h.Ay)(Rn,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${cr.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})((({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),wr=(0,h.Ay)(G.A,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})((({theme:e})=>(0,s.A)({},e.typography.body1,{overflow:"auto"}))),xr=(0,h.Ay)("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})((({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),Ar=(0,h.Ay)("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})((({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),Sr=(0,h.Ay)("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})((({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${cr.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"},[`&.${cr.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"},[`&.${cr.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,Ke.X4)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${cr.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,Ke.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${cr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,Ke.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}}))),Cr=(0,h.Ay)(zn,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})((({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),Er=(0,h.Ay)("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${cr.option}`]:{paddingLeft:24}}),_r=o.forwardRef((function(e,t){var n,r,i,a;const d=fr({props:e,name:"MuiAutocomplete"}),{autoComplete:h=!1,autoHighlight:p=!1,autoSelect:f=!1,blurOnSelect:g=!1,ChipProps:m,className:y,clearIcon:v=ur||(ur=(0,F.jsx)(ar,{fontSize:"small"})),clearOnBlur:b=!d.freeSolo,clearOnEscape:w=!1,clearText:x="Clear",closeText:A="Close",componentsProps:S={},defaultValue:C=(d.multiple?[]:null),disableClearable:E=!1,disableCloseOnSelect:_=!1,disabled:k=!1,disabledItemsFocusable:T=!1,disableListWrap:O=!1,disablePortal:P=!1,filterSelectedOptions:I=!1,forcePopupIcon:L="auto",freeSolo:R=!1,fullWidth:j=!1,getLimitTagsText:D=(e=>`+${e}`),getOptionLabel:N,groupBy:z,handleHomeEndKeys:V=!d.freeSolo,includeInputInList:B=!1,limitTags:$=-1,ListboxComponent:U="ul",ListboxProps:W,loading:q=!1,loadingText:H="Loading…",multiple:Y=!1,noOptionsText:K="No options",openOnFocus:X=!1,openText:Z="Open",PaperComponent:J=G.A,PopperComponent:Q=Rn,popupIcon:ee=dr||(dr=(0,F.jsx)(sr.A,{})),readOnly:te=!1,renderGroup:ne,renderInput:re,renderOption:ie,renderTags:oe,selectOnFocus:ae=!d.freeSolo,size:se="medium",slotProps:le={}}=d,ce=(0,l.A)(d,hr),{getRootProps:ue,getInputProps:de,getInputLabelProps:he,getPopupIndicatorProps:pe,getClearProps:fe,getTagProps:ge,getListboxProps:me,getOptionProps:ye,value:ve,dirty:be,expanded:we,id:xe,popupOpen:Ae,focused:Se,focusedTag:Ee,anchorEl:_e,setAnchorEl:ke,inputValue:Te,groupedOptions:Oe}=Ye((0,s.A)({},d,{componentName:"Autocomplete"})),Pe=!E&&!k&&be&&!te,Ie=(!R||!0===L)&&!1!==L,{onMouseDown:Me}=de(),{ref:Le}=null!=W?W:{},Re=me(),{ref:je}=Re,Fe=(0,l.A)(Re,pr),De=(0,M.A)(je,Le),Ne=N||(e=>{var t;return null!=(t=e.label)?t:e}),ze=(0,s.A)({},d,{disablePortal:P,expanded:we,focused:Se,fullWidth:j,getOptionLabel:Ne,hasClearIcon:Pe,hasPopupIcon:Ie,inputFocused:-1===Ee,popupOpen:Ae,size:se}),Ve=(e=>{const{classes:t,disablePortal:n,expanded:r,focused:i,fullWidth:o,hasClearIcon:a,hasPopupIcon:s,inputFocused:l,popupOpen:c,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,Ce.A)(d)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",c&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return(0,u.A)(h,lr,t)})(ze);let Be;if(Y&&ve.length>0){const e=e=>(0,s.A)({className:Ve.tag,disabled:k},ge(e));Be=oe?oe(ve,e,ze):ve.map(((t,n)=>(0,F.jsx)(Qn,(0,s.A)({label:Ne(t),size:se},e({index:n}),m))))}if($>-1&&Array.isArray(Be)){const e=Be.length-$;!Se&&e>0&&(Be=Be.splice(0,$),Be.push((0,F.jsx)("span",{className:Ve.tag,children:D(e)},Be.length)))}const $e=ne||(e=>(0,F.jsxs)("li",{children:[(0,F.jsx)(Cr,{className:Ve.groupLabel,ownerState:ze,component:"div",children:e.group}),(0,F.jsx)(Er,{className:Ve.groupUl,ownerState:ze,children:e.children})]},e.key)),Ge=ie||((e,t)=>(0,o.createElement)("li",(0,s.A)({},e,{key:e.key}),Ne(t))),Ue=(e,t)=>{const n=ye({option:e,index:t});return Ge((0,s.A)({},n,{className:Ve.option}),e,{selected:n["aria-selected"],index:t,inputValue:Te},ze)},We=null!=(n=le.clearIndicator)?n:S.clearIndicator,qe=null!=(r=le.paper)?r:S.paper,He=null!=(i=le.popper)?i:S.popper,Ke=null!=(a=le.popupIndicator)?a:S.popupIndicator,Xe=e=>(0,F.jsx)(br,(0,s.A)({as:Q,disablePortal:P,style:{width:_e?_e.clientWidth:null},ownerState:ze,role:"presentation",anchorEl:_e,open:Ae},He,{className:(0,c.A)(Ve.popper,null==He?void 0:He.className),children:(0,F.jsx)(wr,(0,s.A)({ownerState:ze,as:J},qe,{className:(0,c.A)(Ve.paper,null==qe?void 0:qe.className),children:e}))}));let Ze=null;return Oe.length>0?Ze=Xe((0,F.jsx)(Sr,(0,s.A)({as:U,className:Ve.listbox,ownerState:ze},Fe,W,{ref:De,children:Oe.map(((e,t)=>z?$e({key:e.key,group:e.group,children:e.options.map(((t,n)=>Ue(t,e.index+n)))}):Ue(e,t)))}))):q&&0===Oe.length?Ze=Xe((0,F.jsx)(xr,{className:Ve.loading,ownerState:ze,children:H})):0!==Oe.length||R||q||(Ze=Xe((0,F.jsx)(Ar,{className:Ve.noOptions,ownerState:ze,role:"presentation",onMouseDown:e=>{e.preventDefault()},children:K}))),(0,F.jsxs)(o.Fragment,{children:[(0,F.jsx)(gr,(0,s.A)({ref:t,className:(0,c.A)(Ve.root,y),ownerState:ze},ue(ce),{children:re({id:xe,disabled:k,fullWidth:!0,size:"small"===se?"small":void 0,InputLabelProps:he(),InputProps:(0,s.A)({ref:ke,className:Ve.inputRoot,startAdornment:Be,onClick:e=>{e.target===e.currentTarget&&Me(e)}},(Pe||Ie)&&{endAdornment:(0,F.jsxs)(mr,{className:Ve.endAdornment,ownerState:ze,children:[Pe?(0,F.jsx)(yr,(0,s.A)({},fe(),{"aria-label":x,title:x,ownerState:ze},We,{className:(0,c.A)(Ve.clearIndicator,null==We?void 0:We.className),children:v})):null,Ie?(0,F.jsx)(vr,(0,s.A)({},pe(),{disabled:k,"aria-label":Ae?A:Z,title:Ae?A:Z,ownerState:ze},Ke,{className:(0,c.A)(Ve.popupIndicator,null==Ke?void 0:Ke.className),children:ee})):null]})}),inputProps:(0,s.A)({className:Ve.input,disabled:k,readOnly:te},de())})})),_e?Ze:null]})})),kr=_r;var Tr=["fullWidth"];function Or(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 Pr(e){for(var t=1;t{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})((({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:(0,s.A)({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:(0,s.A)({backgroundColor:e.palette.grey[400]},e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})))}]}))),Dr=(0,h.Ay)("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),Nr=(0,h.Ay)(Mr,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});const zr=o.forwardRef((function(e,t){const n=jr({props:e,name:"MuiAvatar"}),{alt:r,children:i,className:a,component:d="div",slots:h={},slotProps:p={},imgProps:f,sizes:g,src:m,srcSet:y,variant:v="circular"}=n,b=(0,l.A)(n,Rr);let w=null;const x=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}((0,s.A)({},f,{src:m,srcSet:y})),A=m||y,S=A&&"error"!==x,C=(0,s.A)({},n,{colorDefault:!S,component:d,variant:v}),E=(e=>{const{classes:t,variant:n,colorDefault:r}=e,i={root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]};return(0,u.A)(i,Lr,t)})(C),[_,k]=Q("img",{className:E.img,elementType:Dr,externalForwardedProps:{slots:h,slotProps:{img:(0,s.A)({},f,p.img)}},additionalProps:{alt:r,src:m,srcSet:y,sizes:g},ownerState:C});return w=S?(0,F.jsx)(_,(0,s.A)({},k)):i||0===i?i:A&&r?r[0]:(0,F.jsx)(Nr,{ownerState:C,className:E.fallback}),(0,F.jsx)(Fr,(0,s.A)({as:d,ownerState:C,className:(0,c.A)(E.root,a),ref:t},b,{children:w}))}));function Vr(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 Br(e){for(var t=1;tt.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),Yr=(0,h.Ay)("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${(0,Ce.A)(n.anchorOrigin.vertical)}${(0,Ce.A)(n.anchorOrigin.horizontal)}${(0,Ce.A)(n.overlap)}`],"default"!==n.color&&t[`color${(0,Ce.A)(n.color)}`],n.invisible&&t.invisible]}})((({theme:e})=>{var t;return{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.keys((null!=(t=e.vars)?t:e).palette).filter((t=>{var n,r;return(null!=(n=e.vars)?n:e).palette[t].main&&(null!=(r=e.vars)?r:e).palette[t].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%",[`&.${Ur.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%",[`&.${Ur.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%",[`&.${Ur.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%",[`&.${Ur.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%",[`&.${Ur.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%",[`&.${Ur.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%",[`&.${Ur.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%",[`&.${Ur.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})}}]}})),Kr=o.forwardRef((function(e,t){var n,r,i,o,a,d;const h=qr({props:e,name:"MuiBadge"}),{anchorOrigin:p={vertical:"top",horizontal:"right"},className:f,component:g,components:m={},componentsProps:y={},children:v,overlap:b="rectangular",color:w="default",invisible:x=!1,max:A=99,badgeContent:S,slots:C,slotProps:E,showZero:_=!1,variant:k="standard"}=h,T=(0,l.A)(h,Wr),{badgeContent:O,invisible:P,max:I,displayValue:M}=function(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:i=!1}=e,o=Be({badgeContent:t,max:r});let a=n;!1!==n||0!==t||i||(a=!0);const{badgeContent:s,max:l=r}=a?o:e;return{badgeContent:s,invisible:a,max:l,displayValue:s&&Number(s)>l?`${l}+`:s}}({max:A,invisible:x,badgeContent:S,showZero:_}),L=Be({anchorOrigin:p,color:w,overlap:b,variant:k,badgeContent:S}),R=P||null==O&&"dot"!==k,{color:j=w,overlap:D=b,anchorOrigin:N=p,variant:z=k}=R?L:h,V="dot"!==z?M:void 0,B=(0,s.A)({},h,{badgeContent:O,invisible:R,max:I,displayValue:V,showZero:_,anchorOrigin:N,color:j,overlap:D,variant:z}),$=(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,Ce.A)(n.vertical)}${(0,Ce.A)(n.horizontal)}`,`anchorOrigin${(0,Ce.A)(n.vertical)}${(0,Ce.A)(n.horizontal)}${(0,Ce.A)(i)}`,`overlap${(0,Ce.A)(i)}`,"default"!==t&&`color${(0,Ce.A)(t)}`]};return(0,u.A)(s,Gr,a)})(B),G=null!=(n=null!=(r=null==C?void 0:C.root)?r:m.Root)?n:Hr,U=null!=(i=null!=(o=null==C?void 0:C.badge)?o:m.Badge)?i:Yr,W=null!=(a=null==E?void 0:E.root)?a:y.root,q=null!=(d=null==E?void 0:E.badge)?d:y.badge,H=(0,bn.Q)({elementType:G,externalSlotProps:W,externalForwardedProps:T,additionalProps:{ref:t,as:g},ownerState:B,className:(0,c.A)(null==W?void 0:W.className,$.root,f)}),Y=(0,bn.Q)({elementType:U,externalSlotProps:q,ownerState:B,className:(0,c.A)($.badge,null==q?void 0:q.className)});return(0,F.jsxs)(G,(0,s.A)({},H,{children:[v,(0,F.jsx)(U,(0,s.A)({},Y,{children:V}))]}))})),Xr=Kr;function Zr(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 Jr(e){return(0,F.jsx)(Xr,function(e){for(var t=1;tt=>{if(e){const n=S.current;void 0===t?e(n):e(n,t)}},T=k(h),L=k(((e,t)=>{O(e);const{duration:n,delay:r,easing:i}=P({style:m,timeout:y,easing:a},{mode:"enter"});let o;"auto"===y?(o=A.transitions.getAutoHeightDuration(e.clientHeight),x.current=o):o=n,e.style.transition=[A.transitions.create("opacity",{duration:o,delay:r}),A.transitions.create("transform",{duration:oi?o:.666*o,delay:r,easing:i})].join(","),u&&u(e,t)})),R=k(d),j=k(g),D=k((e=>{const{duration:t,delay:n,easing:r}=P({style:m,timeout:y,easing:a},{mode:"exit"});let i;"auto"===y?(i=A.transitions.getAutoHeightDuration(e.clientHeight),x.current=i):i=t,e.style.transition=[A.transitions.create("opacity",{duration:i,delay:n}),A.transitions.create("transform",{duration:oi?i:.666*i,delay:oi?n:n||.333*i,easing:r})].join(","),e.style.opacity=0,e.style.transform=ri(.75),p&&p(e)})),N=k(f);return(0,F.jsx)(v,(0,s.A)({appear:r,in:c,nodeRef:S,onEnter:L,onEntered:R,onEntering:T,onExit:D,onExited:N,onExiting:j,addEndListener:e=>{"auto"===y&&w.start(x.current||0,e),n&&n(S.current,e)},timeout:"auto"===y?null:y},b,{children:(e,t)=>o.cloneElement(i,(0,s.A)({style:(0,s.A)({opacity:0,transform:ri(.75),visibility:"exited"!==e||c?void 0:"hidden"},ii[e],m,i.props.style),ref:C},t))}))}));ai.muiSupportAuto=!0;const si=ai;var li=n(36064),ci=n(35566),ui=n(65741);function di(e){return(0,R.Ay)("MuiTooltip",e)}const hi=(0,L.A)("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),pi=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];const fi=(0,h.Ay)(Rn,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})((({theme:e,ownerState:t,open:n})=>(0,s.A)({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${hi.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${hi.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${hi.arrow}`]:(0,s.A)({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${hi.arrow}`]:(0,s.A)({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})}))),gi=(0,h.Ay)("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${(0,Ce.A)(n.placement.split("-")[0])}`]]}})((({theme:e,ownerState:t})=>{return(0,s.A)({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:(0,Ke.X4)(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:(n=16/14,Math.round(1e5*n)/1e5)+"em",fontWeight:e.typography.fontWeightRegular},{[`.${hi.popper}[data-popper-placement*="left"] &`]:(0,s.A)({transformOrigin:"right center"},t.isRtl?(0,s.A)({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):(0,s.A)({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${hi.popper}[data-popper-placement*="right"] &`]:(0,s.A)({transformOrigin:"left center"},t.isRtl?(0,s.A)({marginRight:"14px"},t.touch&&{marginRight:"24px"}):(0,s.A)({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${hi.popper}[data-popper-placement*="top"] &`]:(0,s.A)({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${hi.popper}[data-popper-placement*="bottom"] &`]:(0,s.A)({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})});var n})),mi=(0,h.Ay)("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})((({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:(0,Ke.X4)(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let yi=!1;const vi=new _.E;let bi={x:0,y:0};function wi(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const xi=o.forwardRef((function(e,t){var n,r,i,a,d,h,p,f,g,m,y,v,b,w,x,A,S,C,E;const T=(0,k.A)({props:e,name:"MuiTooltip"}),{arrow:O=!1,children:P,components:L={},componentsProps:R={},describeChild:j=!1,disableFocusListener:D=!1,disableHoverListener:N=!1,disableInteractive:z=!1,disableTouchListener:V=!1,enterDelay:B=100,enterNextDelay:$=0,enterTouchDelay:G=700,followCursor:U=!1,id:q,leaveDelay:H=0,leaveTouchDelay:Y=1500,onClose:X,onOpen:Z,open:J,placement:Q="bottom",PopperComponent:ee,PopperProps:te={},slotProps:ne={},slots:re={},title:ie,TransitionComponent:oe=si,TransitionProps:ae}=T,se=(0,l.A)(T,pi),le=o.isValidElement(P)?P:(0,F.jsx)("span",{children:P}),ce=(0,I.A)(),ue=(0,ti.I)(),[de,he]=o.useState(),[pe,fe]=o.useState(null),ge=o.useRef(!1),me=z||U,ye=(0,_.A)(),ve=(0,_.A)(),be=(0,_.A)(),we=(0,_.A)(),[xe,Ae]=(0,W.A)({controlled:J,default:!1,name:"Tooltip",state:"open"});let Se=xe;const Ee=(0,ci.A)(q),_e=o.useRef(),ke=(0,li.A)((()=>{void 0!==_e.current&&(document.body.style.WebkitUserSelect=_e.current,_e.current=void 0),we.clear()}));o.useEffect((()=>ke),[ke]);const Te=e=>{vi.clear(),yi=!0,Ae(!0),Z&&!Se&&Z(e)},Oe=(0,li.A)((e=>{vi.start(800+H,(()=>{yi=!1})),Ae(!1),X&&Se&&X(e),ye.start(ce.transitions.duration.shortest,(()=>{ge.current=!1}))})),Pe=e=>{ge.current&&"touchstart"!==e.type||(de&&de.removeAttribute("title"),ve.clear(),be.clear(),B||yi&&$?ve.start(yi?$:B,(()=>{Te(e)})):Te(e))},Ie=e=>{ve.clear(),be.start(H,(()=>{Oe(e)}))},{isFocusVisibleRef:Me,onBlur:Le,onFocus:Re,ref:je}=(0,ui.A)(),[,Fe]=o.useState(!1),De=e=>{Le(e),!1===Me.current&&(Fe(!1),Ie(e))},Ne=e=>{de||he(e.currentTarget),Re(e),!0===Me.current&&(Fe(!0),Pe(e))},ze=e=>{ge.current=!0;const t=le.props;t.onTouchStart&&t.onTouchStart(e)},Ve=e=>{ze(e),be.clear(),ye.clear(),ke(),_e.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",we.start(G,(()=>{document.body.style.WebkitUserSelect=_e.current,Pe(e)}))},Be=e=>{le.props.onTouchEnd&&le.props.onTouchEnd(e),ke(),be.start(Y,(()=>{Oe(e)}))};o.useEffect((()=>{if(Se)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||Oe(e)}}),[Oe,Se]);const $e=(0,M.A)(le.ref,je,he,t);ie||0===ie||(Se=!1);const Ge=o.useRef(),Ue={},We="string"==typeof ie;j?(Ue.title=Se||!We||N?null:ie,Ue["aria-describedby"]=Se?Ee:null):(Ue["aria-label"]=We?ie:null,Ue["aria-labelledby"]=Se&&!We?Ee:null);const qe=(0,s.A)({},Ue,se,le.props,{className:(0,c.A)(se.className,le.props.className),onTouchStart:ze,ref:$e},U?{onMouseMove:e=>{const t=le.props;t.onMouseMove&&t.onMouseMove(e),bi={x:e.clientX,y:e.clientY},Ge.current&&Ge.current.update()}}:{});const He={};V||(qe.onTouchStart=Ve,qe.onTouchEnd=Be),N||(qe.onMouseOver=wi(Pe,qe.onMouseOver),qe.onMouseLeave=wi(Ie,qe.onMouseLeave),me||(He.onMouseOver=Pe,He.onMouseLeave=Ie)),D||(qe.onFocus=wi(Ne,qe.onFocus),qe.onBlur=wi(De,qe.onBlur),me||(He.onFocus=Ne,He.onBlur=De));const Ye=o.useMemo((()=>{var e;let t=[{name:"arrow",enabled:Boolean(pe),options:{element:pe,padding:4}}];return null!=(e=te.popperOptions)&&e.modifiers&&(t=t.concat(te.popperOptions.modifiers)),(0,s.A)({},te.popperOptions,{modifiers:t})}),[pe,te]),Ke=(0,s.A)({},T,{isRtl:ue,arrow:O,disableInteractive:me,placement:Q,PopperComponentProp:ee,touch:ge.current}),Xe=(e=>{const{classes:t,disableInteractive:n,arrow:r,touch:i,placement:o}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",i&&"touch",`tooltipPlacement${(0,Ce.A)(o.split("-")[0])}`],arrow:["arrow"]};return(0,u.A)(a,di,t)})(Ke),Ze=null!=(n=null!=(r=re.popper)?r:L.Popper)?n:fi,Je=null!=(i=null!=(a=null!=(d=re.transition)?d:L.Transition)?a:oe)?i:si,Qe=null!=(h=null!=(p=re.tooltip)?p:L.Tooltip)?h:gi,et=null!=(f=null!=(g=re.arrow)?g:L.Arrow)?f:mi,tt=(0,K.X)(Ze,(0,s.A)({},te,null!=(m=ne.popper)?m:R.popper,{className:(0,c.A)(Xe.popper,null==te?void 0:te.className,null==(y=null!=(v=ne.popper)?v:R.popper)?void 0:y.className)}),Ke),nt=(0,K.X)(Je,(0,s.A)({},ae,null!=(b=ne.transition)?b:R.transition),Ke),rt=(0,K.X)(Qe,(0,s.A)({},null!=(w=ne.tooltip)?w:R.tooltip,{className:(0,c.A)(Xe.tooltip,null==(x=null!=(A=ne.tooltip)?A:R.tooltip)?void 0:x.className)}),Ke),it=(0,K.X)(et,(0,s.A)({},null!=(S=ne.arrow)?S:R.arrow,{className:(0,c.A)(Xe.arrow,null==(C=null!=(E=ne.arrow)?E:R.arrow)?void 0:C.className)}),Ke);return(0,F.jsxs)(o.Fragment,{children:[o.cloneElement(le,qe),(0,F.jsx)(Ze,(0,s.A)({as:null!=ee?ee:Rn,placement:Q,anchorEl:U?{getBoundingClientRect:()=>({top:bi.y,left:bi.x,right:bi.x,bottom:bi.y,width:0,height:0})}:de,popperRef:Ge,open:!!de&&Se,id:Ee,transition:!0},He,tt,{popperOptions:Ye,children:({TransitionProps:e})=>(0,F.jsx)(Je,(0,s.A)({timeout:ce.transitions.duration.shorter},e,nt,{children:(0,F.jsxs)(Qe,(0,s.A)({},rt,{children:[ie,O?(0,F.jsx)(et,(0,s.A)({},it,{ref:fe})):null]}))}))}))]})})),Ai=xi,Si=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Ci={entering:{opacity:1},entered:{opacity:1}},Ei=o.forwardRef((function(e,t){const n=(0,I.A)(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:c,easing:u,in:d,onEnter:h,onEntered:p,onEntering:f,onExit:g,onExited:m,onExiting:y,style:v,timeout:b=r,TransitionComponent:w=E}=e,x=(0,l.A)(e,Si),A=o.useRef(null),S=(0,M.A)(A,c.ref,t),C=e=>t=>{if(e){const n=A.current;void 0===t?e(n):e(n,t)}},_=C(f),k=C(((e,t)=>{O(e);const r=P({style:v,timeout:b,easing:u},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),h&&h(e,t)})),T=C(p),L=C(y),R=C((e=>{const t=P({style:v,timeout:b,easing:u},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),g&&g(e)})),j=C(m);return(0,F.jsx)(w,(0,s.A)({appear:a,in:d,nodeRef:A,onEnter:k,onEntered:T,onEntering:_,onExit:R,onExited:j,onExiting:L,addEndListener:e=>{i&&i(A.current,e)},timeout:b},x,{children:(e,t)=>o.cloneElement(c,(0,s.A)({style:(0,s.A)({opacity:0,visibility:"exited"!==e||d?void 0:"hidden"},Ci[e],v,c.props.style),ref:S},t))}))})),_i=Ei;var ki=n(7757),Ti=n(49968);function Oi(e){return(0,R.Ay)("MuiButton",e)}const Pi=(0,L.A)("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);const Ii=o.createContext({});const Mi=o.createContext(void 0),Li=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Ri=e=>(0,s.A)({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),ji=(0,h.Ay)(ae.A,{shouldForwardProp:e=>(0,Ti.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,Ce.A)(n.color)}`],t[`size${(0,Ce.A)(n.size)}`],t[`${n.variant}Size${(0,Ce.A)(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;const i="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],o="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return(0,s.A)({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":(0,s.A)({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,Ke.X4)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,Ke.X4)(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,Ke.X4)(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:o,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":(0,s.A)({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Pi.focusVisible}`]:(0,s.A)({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Pi.disabled}`]:(0,s.A)({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${(0,Ke.X4)(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:i,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Pi.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Pi.disabled}`]:{boxShadow:"none"}})),Fi=(0,h.Ay)("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${(0,Ce.A)(n.size)}`]]}})((({ownerState:e})=>(0,s.A)({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Ri(e)))),Di=(0,h.Ay)("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${(0,Ce.A)(n.size)}`]]}})((({ownerState:e})=>(0,s.A)({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Ri(e)))),Ni=o.forwardRef((function(e,t){const n=o.useContext(Ii),r=o.useContext(Mi),i=(0,ki.A)(n,e),a=(0,k.A)({props:i,name:"MuiButton"}),{children:d,color:h="primary",component:p="button",className:f,disabled:g=!1,disableElevation:m=!1,disableFocusRipple:y=!1,endIcon:v,focusVisibleClassName:b,fullWidth:w=!1,size:x="medium",startIcon:A,type:S,variant:C="text"}=a,E=(0,l.A)(a,Li),_=(0,s.A)({},a,{color:h,component:p,disabled:g,disableElevation:m,disableFocusRipple:y,fullWidth:w,size:x,type:S,variant:C}),T=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:o,classes:a}=e,l={root:["root",o,`${o}${(0,Ce.A)(t)}`,`size${(0,Ce.A)(i)}`,`${o}Size${(0,Ce.A)(i)}`,`color${(0,Ce.A)(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${(0,Ce.A)(i)}`],endIcon:["icon","endIcon",`iconSize${(0,Ce.A)(i)}`]},c=(0,u.A)(l,Oi,a);return(0,s.A)({},a,c)})(_),O=A&&(0,F.jsx)(Fi,{className:T.startIcon,ownerState:_,children:A}),P=v&&(0,F.jsx)(Di,{className:T.endIcon,ownerState:_,children:v}),I=r||"";return(0,F.jsxs)(ji,(0,s.A)({ownerState:_,className:(0,c.A)(n.className,T.root,f,I),component:p,disabled:g,focusRipple:!y,focusVisibleClassName:(0,c.A)(T.focusVisible,b),ref:t,type:S},E,{classes:T,children:[O,d,P]}))}));function zi(e){var t=e.id,n=e.sx,r=e.variant,i=e.tooltip,o=e.tooltipPlacement,a=e.onClick,s=e.className,l=e.children,c=e.autoFocus,u=e.disabled,d=e.disableRipple,h=void 0!==d&&d,p=e.startIcon,f=e.endIcon,g=e.size,m=e.makeResponsive,y=e.fullWidth,v=(0,Qr.useTranslation)().t,b=(0,I.A)(),w=(0,ei.A)(b.breakpoints.down("md"));return(0,F.jsx)(Ai,{title:v(i||""),placement:o||"bottom",TransitionComponent:_i,children:(0,F.jsx)(Ni,{fullWidth:y,id:t,size:g||"medium",sx:n,variant:r||"text",className:"".concat(s||""),onClick:a,autoFocus:c,disabled:u,disableRipple:h,startIcon:p,endIcon:f,children:m&&w?null:l})})}var Vi=n(26565),Bi=n(8018);const $i=o.createContext({});function Gi(e){return(0,R.Ay)("MuiList",e)}(0,L.A)("MuiList",["root","padding","dense","subheader"]);const Ui=["children","className","component","dense","disablePadding","subheader"],Wi=(0,h.Ay)("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((({ownerState:e})=>(0,s.A)({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),qi=o.forwardRef((function(e,t){const n=(0,k.A)({props:e,name:"MuiList"}),{children:r,className:i,component:a="ul",dense:d=!1,disablePadding:h=!1,subheader:p}=n,f=(0,l.A)(n,Ui),g=o.useMemo((()=>({dense:d})),[d]),m=(0,s.A)({},n,{component:a,dense:d,disablePadding:h}),y=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e,o={root:["root",!n&&"padding",r&&"dense",i&&"subheader"]};return(0,u.A)(o,Gi,t)})(m);return(0,F.jsx)($i.Provider,{value:g,children:(0,F.jsxs)(Wi,(0,s.A)({as:a,className:(0,c.A)(y.root,i),ref:t,ownerState:m},f,{children:[p,r]}))})}));function Hi(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const Yi=Hi;var Ki=n(65420);const Xi=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Zi(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Ji(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Qi(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function eo(e,t,n,r,i,o){let a=!1,s=i(e,t,!!t&&n);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&Qi(s,o)&&!t)return s.focus(),!0;s=i(e,s,n)}return!1}const to=o.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:i=!1,children:a,className:c,disabledItemsFocusable:u=!1,disableListWrap:d=!1,onKeyDown:h,variant:p="selectedMenu"}=e,f=(0,l.A)(e,Xi),g=o.useRef(null),m=o.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});(0,Ki.A)((()=>{r&&g.current.focus()}),[r]),o.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!g.current.style.width;if(e.clientHeight{o.isValidElement(e)?(e.props.disabled||("selectedMenu"===p&&e.props.selected||-1===v)&&(v=t),v===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(v+=1,v>=a.length&&(v=-1))):v===t&&(v+=1,v>=a.length&&(v=-1))}));const b=o.Children.map(a,((e,t)=>{if(t===v){const t={};return i&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===p&&(t.tabIndex=0),o.cloneElement(e,t)}return e}));return(0,F.jsx)(qi,(0,s.A)({role:"menu",ref:y,className:c,onKeyDown:e=>{const t=g.current,n=e.key,r=(0,Bi.A)(t).activeElement;if("ArrowDown"===n)e.preventDefault(),eo(t,r,d,u,Zi);else if("ArrowUp"===n)e.preventDefault(),eo(t,r,d,u,Ji);else if("Home"===n)e.preventDefault(),eo(t,null,d,u,Zi);else if("End"===n)e.preventDefault(),eo(t,null,d,u,Ji);else if(1===n.length){const i=m.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&&Qi(r,i);i.previousKeyMatched&&(s||eo(t,r,!1,u,Zi,i))?e.preventDefault():i.previousKeyMatched=!1}h&&h(e)},tabIndex:r?0:-1},f,{children:b}))})),no=to;var ro=n(99425);function io(e){return(0,R.Ay)("MuiListItemIcon",e)}const oo=(0,L.A)("MuiListItemIcon",["root","alignItemsFlexStart"]);function ao(e){return(0,R.Ay)("MuiListItemText",e)}const so=(0,L.A)("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function lo(e){return(0,R.Ay)("MuiMenuItem",e)}const co=(0,L.A)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),uo=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],ho=(0,h.Ay)(ae.A,{shouldForwardProp:e=>(0,Ti.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]}})((({theme:e,ownerState:t})=>(0,s.A)({},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"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${co.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,Ke.X4)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${co.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,Ke.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${co.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,Ke.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,Ke.X4)(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${co.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${co.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${ro.A.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${ro.A.inset}`]:{marginLeft:52},[`& .${so.root}`]:{marginTop:0,marginBottom:0},[`& .${so.inset}`]:{paddingLeft:36},[`& .${oo.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&(0,s.A)({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${oo.root} svg`]:{fontSize:"1.25rem"}})))),po=o.forwardRef((function(e,t){const n=(0,k.A)({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:i="li",dense:a=!1,divider:d=!1,disableGutters:h=!1,focusVisibleClassName:p,role:f="menuitem",tabIndex:g,className:m}=n,y=(0,l.A)(n,uo),v=o.useContext($i),b=o.useMemo((()=>({dense:a||v.dense||!1,disableGutters:h})),[v.dense,a,h]),w=o.useRef(null);(0,Ki.A)((()=>{r&&w.current&&w.current.focus()}),[r]);const x=(0,s.A)({},n,{dense:b.dense,divider:d,disableGutters:h}),A=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:o,classes:a}=e,l={root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",o&&"selected"]},c=(0,u.A)(l,lo,a);return(0,s.A)({},a,c)})(n),S=(0,M.A)(w,t);let C;return n.disabled||(C=void 0!==g?g:-1),(0,F.jsx)($i.Provider,{value:b,children:(0,F.jsx)(ho,(0,s.A)({ref:S,role:f,tabIndex:C,component:i,focusVisibleClassName:(0,c.A)(A.focusVisible,p),className:(0,c.A)(A.root,m)},y,{ownerState:x,classes:A}))})})),fo=po;function go(e){return(0,R.Ay)("MuiButtonGroup",e)}const mo=(0,L.A)("MuiButtonGroup",["root","contained","outlined","text","disableElevation","disabled","firstButton","fullWidth","vertical","grouped","groupedHorizontal","groupedVertical","groupedText","groupedTextHorizontal","groupedTextVertical","groupedTextPrimary","groupedTextSecondary","groupedOutlined","groupedOutlinedHorizontal","groupedOutlinedVertical","groupedOutlinedPrimary","groupedOutlinedSecondary","groupedContained","groupedContainedHorizontal","groupedContainedVertical","groupedContainedPrimary","groupedContainedSecondary","lastButton","middleButton"]),yo=["children","className","color","component","disabled","disableElevation","disableFocusRipple","disableRipple","fullWidth","orientation","size","variant"],vo=(0,h.Ay)("div",{name:"MuiButtonGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${mo.grouped}`]:t.grouped},{[`& .${mo.grouped}`]:t[`grouped${(0,Ce.A)(n.orientation)}`]},{[`& .${mo.grouped}`]:t[`grouped${(0,Ce.A)(n.variant)}`]},{[`& .${mo.grouped}`]:t[`grouped${(0,Ce.A)(n.variant)}${(0,Ce.A)(n.orientation)}`]},{[`& .${mo.grouped}`]:t[`grouped${(0,Ce.A)(n.variant)}${(0,Ce.A)(n.color)}`]},{[`& .${mo.firstButton}`]:t.firstButton},{[`& .${mo.lastButton}`]:t.lastButton},{[`& .${mo.middleButton}`]:t.middleButton},t.root,t[n.variant],!0===n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,"vertical"===n.orientation&&t.vertical]}})((({theme:e,ownerState:t})=>(0,s.A)({display:"inline-flex",borderRadius:(e.vars||e).shape.borderRadius},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[2]},t.disableElevation&&{boxShadow:"none"},t.fullWidth&&{width:"100%"},"vertical"===t.orientation&&{flexDirection:"column"},{[`& .${mo.grouped}`]:(0,s.A)({minWidth:40,"&:hover":(0,s.A)({},"contained"===t.variant&&{boxShadow:"none"})},"contained"===t.variant&&{boxShadow:"none"}),[`& .${mo.firstButton},& .${mo.middleButton}`]:(0,s.A)({},"horizontal"===t.orientation&&{borderTopRightRadius:0,borderBottomRightRadius:0},"vertical"===t.orientation&&{borderBottomRightRadius:0,borderBottomLeftRadius:0},"text"===t.variant&&"horizontal"===t.orientation&&{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)"),[`&.${mo.disabled}`]:{borderRight:`1px solid ${(e.vars||e).palette.action.disabled}`}},"text"===t.variant&&"vertical"===t.orientation&&{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)"),[`&.${mo.disabled}`]:{borderBottom:`1px solid ${(e.vars||e).palette.action.disabled}`}},"text"===t.variant&&"inherit"!==t.color&&{borderColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:(0,Ke.X4)(e.palette[t.color].main,.5)},"outlined"===t.variant&&"horizontal"===t.orientation&&{borderRightColor:"transparent"},"outlined"===t.variant&&"vertical"===t.orientation&&{borderBottomColor:"transparent"},"contained"===t.variant&&"horizontal"===t.orientation&&{borderRight:`1px solid ${(e.vars||e).palette.grey[400]}`,[`&.${mo.disabled}`]:{borderRight:`1px solid ${(e.vars||e).palette.action.disabled}`}},"contained"===t.variant&&"vertical"===t.orientation&&{borderBottom:`1px solid ${(e.vars||e).palette.grey[400]}`,[`&.${mo.disabled}`]:{borderBottom:`1px solid ${(e.vars||e).palette.action.disabled}`}},"contained"===t.variant&&"inherit"!==t.color&&{borderColor:(e.vars||e).palette[t.color].dark},{"&:hover":(0,s.A)({},"outlined"===t.variant&&"horizontal"===t.orientation&&{borderRightColor:"currentColor"},"outlined"===t.variant&&"vertical"===t.orientation&&{borderBottomColor:"currentColor"})}),[`& .${mo.lastButton},& .${mo.middleButton}`]:(0,s.A)({},"horizontal"===t.orientation&&{borderTopLeftRadius:0,borderBottomLeftRadius:0},"vertical"===t.orientation&&{borderTopRightRadius:0,borderTopLeftRadius:0},"outlined"===t.variant&&"horizontal"===t.orientation&&{marginLeft:-1},"outlined"===t.variant&&"vertical"===t.orientation&&{marginTop:-1})}))),bo=o.forwardRef((function(e,t){const n=(0,k.A)({props:e,name:"MuiButtonGroup"}),{children:r,className:i,color:a="primary",component:d="div",disabled:h=!1,disableElevation:p=!1,disableFocusRipple:f=!1,disableRipple:g=!1,fullWidth:m=!1,orientation:y="horizontal",size:v="medium",variant:b="outlined"}=n,w=(0,l.A)(n,yo),x=(0,s.A)({},n,{color:a,component:d,disabled:h,disableElevation:p,disableFocusRipple:f,disableRipple:g,fullWidth:m,orientation:y,size:v,variant:b}),A=(e=>{const{classes:t,color:n,disabled:r,disableElevation:i,fullWidth:o,orientation:a,variant:s}=e,l={root:["root",s,"vertical"===a&&"vertical",o&&"fullWidth",i&&"disableElevation"],grouped:["grouped",`grouped${(0,Ce.A)(a)}`,`grouped${(0,Ce.A)(s)}`,`grouped${(0,Ce.A)(s)}${(0,Ce.A)(a)}`,`grouped${(0,Ce.A)(s)}${(0,Ce.A)(n)}`,r&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return(0,u.A)(l,go,t)})(x),S=o.useMemo((()=>({className:A.grouped,color:a,disabled:h,disableElevation:p,disableFocusRipple:f,disableRipple:g,fullWidth:m,size:v,variant:b})),[a,h,p,f,g,m,v,b,A.grouped]),C=function(e){return o.Children.toArray(e).filter((e=>o.isValidElement(e)))}(r),E=C.length,_=e=>{const t=0===e,n=e===E-1;return t&&n?"":t?A.firstButton:n?A.lastButton:A.middleButton};return(0,F.jsx)(vo,(0,s.A)({as:d,role:"group",className:(0,c.A)(A.root,i),ref:t,ownerState:x},w,{children:(0,F.jsx)(Ii.Provider,{value:S,children:C.map(((e,t)=>(0,F.jsx)(Mi.Provider,{value:_(t),children:e},t)))})}))})),wo=bo;var xo=["children"];function Ao(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 So(e){for(var t=1;tt.root})((()=>({overflow:"hidden"}))),jo=o.forwardRef((function(e,t){const n=(0,k.A)({props:e,name:"MuiCard"}),{className:r,raised:i=!1}=n,o=(0,l.A)(n,Lo),a=(0,s.A)({},n,{raised:i}),d=(e=>{const{classes:t}=e;return(0,u.A)({root:["root"]},Mo,t)})(a);return(0,F.jsx)(Ro,(0,s.A)({className:(0,c.A)(d.root,r),elevation:i?8:void 0,ref:t,ownerState:a},o))}));var Fo=n(91031);function Do(e){return(0,R.Ay)("MuiCardHeader",e)}const No=(0,L.A)("MuiCardHeader",["root","avatar","action","content","title","subheader"]),zo=["action","avatar","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"],Vo=(0,h.Ay)("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>(0,s.A)({[`& .${No.title}`]:t.title,[`& .${No.subheader}`]:t.subheader},t.root)})({display:"flex",alignItems:"center",padding:16}),Bo=(0,h.Ay)("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),$o=(0,h.Ay)("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),Go=(0,h.Ay)("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto"}),Uo=o.forwardRef((function(e,t){const n=(0,k.A)({props:e,name:"MuiCardHeader"}),{action:r,avatar:i,className:o,component:a="div",disableTypography:d=!1,subheader:h,subheaderTypographyProps:p,title:f,titleTypographyProps:g}=n,m=(0,l.A)(n,zo),y=(0,s.A)({},n,{component:a,disableTypography:d}),v=(e=>{const{classes:t}=e;return(0,u.A)({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},Do,t)})(y);let b=f;null==b||b.type===Fo.A||d||(b=(0,F.jsx)(Fo.A,(0,s.A)({variant:i?"body2":"h5",className:v.title,component:"span",display:"block"},g,{children:b})));let w=h;return null==w||w.type===Fo.A||d||(w=(0,F.jsx)(Fo.A,(0,s.A)({variant:i?"body2":"body1",className:v.subheader,color:"text.secondary",component:"span",display:"block"},p,{children:w}))),(0,F.jsxs)(Vo,(0,s.A)({className:(0,c.A)(v.root,o),as:a,ref:t,ownerState:y},m,{children:[i&&(0,F.jsx)(Bo,{className:v.avatar,ownerState:y,children:i}),(0,F.jsxs)(Go,{className:v.content,ownerState:y,children:[b,w]}),r&&(0,F.jsx)($o,{className:v.action,ownerState:y,children:r})]}))}));function Wo(e){return(0,R.Ay)("MuiCardContent",e)}(0,L.A)("MuiCardContent",["root"]);const qo=["className","component"],Ho=(0,h.Ay)("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})((()=>({padding:16,"&:last-child":{paddingBottom:24}}))),Yo=o.forwardRef((function(e,t){const n=(0,k.A)({props:e,name:"MuiCardContent"}),{className:r,component:i="div"}=n,o=(0,l.A)(n,qo),a=(0,s.A)({},n,{component:i}),d=(e=>{const{classes:t}=e;return(0,u.A)({root:["root"]},Wo,t)})(a);return(0,F.jsx)(Ho,(0,s.A)({as:i,className:(0,c.A)(d.root,r),ownerState:a,ref:t},o))}));var Ko=["title","contentCard"];function Xo(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 Zo(e){for(var t=1;t{const{ownerState:n}=e,{isMediaComponent:r,isImageComponent:i}=n;return[t.root,r&&t.media,i&&t.img]}})((({ownerState:e})=>(0,s.A)({display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center"},e.isMediaComponent&&{width:"100%"},e.isImageComponent&&{objectFit:"cover"}))),na=["video","audio","picture","iframe","img"],ra=["picture","img"],ia=o.forwardRef((function(e,t){const n=(0,k.A)({props:e,name:"MuiCardMedia"}),{children:r,className:i,component:o="div",image:a,src:d,style:h}=n,p=(0,l.A)(n,ea),f=-1!==na.indexOf(o),g=!f&&a?(0,s.A)({backgroundImage:`url("${a}")`},h):h,m=(0,s.A)({},n,{component:o,isMediaComponent:f,isImageComponent:-1!==ra.indexOf(o)}),y=(e=>{const{classes:t,isMediaComponent:n,isImageComponent:r}=e,i={root:["root",n&&"media",r&&"img"]};return(0,u.A)(i,Qo,t)})(m);return(0,F.jsx)(ta,(0,s.A)({className:(0,c.A)(y.root,i),as:o,role:!f&&a?"img":void 0,ref:t,style:g,ownerState:m,src:f?a||d:void 0},p,{children:r}))})),oa=ia;function aa(e){var t=e.sx,n=e.src,r=e.alt,i=e.click,o=e.keyDown;return(0,F.jsx)(oa,{component:"img",sx:t,alt:r,src:n,tabIndex:0,onClick:i,onKeyDown:o})}var sa=n(15230);const la=(0,Wn.A)((0,F.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),ca=(0,Wn.A)((0,F.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),ua=(0,Wn.A)((0,F.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-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function da(e){return(0,R.Ay)("MuiCheckbox",e)}const ha=(0,L.A)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),pa=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],fa=(0,h.Ay)(sa.A,{shouldForwardProp:e=>(0,Ti.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,Ce.A)(n.size)}`],"default"!==n.color&&t[`color${(0,Ce.A)(n.color)}`]]}})((({theme:e,ownerState:t})=>(0,s.A)({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,Ke.X4)("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${ha.checked}, &.${ha.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${ha.disabled}`]:{color:(e.vars||e).palette.action.disabled}}))),ga=(0,F.jsx)(ca,{}),ma=(0,F.jsx)(la,{}),ya=(0,F.jsx)(ua,{}),va=o.forwardRef((function(e,t){var n,r;const i=(0,k.A)({props:e,name:"MuiCheckbox"}),{checkedIcon:a=ga,color:d="primary",icon:h=ma,indeterminate:p=!1,indeterminateIcon:f=ya,inputProps:g,size:m="medium",className:y}=i,v=(0,l.A)(i,pa),b=p?f:h,w=p?f:a,x=(0,s.A)({},i,{color:d,indeterminate:p,size:m}),A=(e=>{const{classes:t,indeterminate:n,color:r,size:i}=e,o={root:["root",n&&"indeterminate",`color${(0,Ce.A)(r)}`,`size${(0,Ce.A)(i)}`]},a=(0,u.A)(o,da,t);return(0,s.A)({},t,a)})(x);return(0,F.jsx)(fa,(0,s.A)({type:"checkbox",inputProps:(0,s.A)({"data-indeterminate":p},g),icon:o.cloneElement(b,{fontSize:null!=(n=b.props.fontSize)?n:m}),checkedIcon:o.cloneElement(w,{fontSize:null!=(r=w.props.fontSize)?r:m}),ownerState:x,ref:t,className:(0,c.A)(A.root,y)},v,{classes:A}))}));function ba(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 wa=(0,o.forwardRef)((function(e,t){return(0,F.jsx)(va,function(e){for(var t=1;te;const Oa=44,Pa=(0,xa.i7)(Ca||(Ca=Ta` 0% { transform: rotate(0deg); } @@ -85,7 +85,7 @@ 100% { transform: rotate(360deg); } -`)),Hr=(0,Dr.i7)(Br||(Br=Ur` +`)),Ia=(0,xa.i7)(Ea||(Ea=Ta` 0% { stroke-dasharray: 1px, 200px; stroke-dashoffset: 0; @@ -100,11 +100,11 @@ stroke-dasharray: 100px, 200px; stroke-dashoffset: -125px; } -`)),Yr=(0,h.Ay)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${(0,de.A)(n.color)}`]]}})((({ownerState:e,theme:t})=>(0,s.A)({display:"inline-block"},"determinate"===e.variant&&{transition:t.transitions.create("transform")},"inherit"!==e.color&&{color:(t.vars||t).palette[e.color].main})),(({ownerState:e})=>"indeterminate"===e.variant&&(0,Dr.AH)($r||($r=Ur` +`)),Ma=(0,h.Ay)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${(0,Ce.A)(n.color)}`]]}})((({ownerState:e,theme:t})=>(0,s.A)({display:"inline-block"},"determinate"===e.variant&&{transition:t.transitions.create("transform")},"inherit"!==e.color&&{color:(t.vars||t).palette[e.color].main})),(({ownerState:e})=>"indeterminate"===e.variant&&(0,xa.AH)(_a||(_a=Ta` animation: ${0} 1.4s linear infinite; - `),qr))),Kr=(0,h.Ay)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),Xr=(0,h.Ay)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${(0,de.A)(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})((({ownerState:e,theme:t})=>(0,s.A)({stroke:"currentColor"},"determinate"===e.variant&&{transition:t.transitions.create("stroke-dashoffset")},"indeterminate"===e.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})),(({ownerState:e})=>"indeterminate"===e.variant&&!e.disableShrink&&(0,Dr.AH)(Gr||(Gr=Ur` + `),Pa))),La=(0,h.Ay)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),Ra=(0,h.Ay)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${(0,Ce.A)(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})((({ownerState:e,theme:t})=>(0,s.A)({stroke:"currentColor"},"determinate"===e.variant&&{transition:t.transitions.create("stroke-dashoffset")},"indeterminate"===e.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})),(({ownerState:e})=>"indeterminate"===e.variant&&!e.disableShrink&&(0,xa.AH)(ka||(ka=Ta` animation: ${0} 1.4s ease-in-out infinite; - `),Hr))),Zr=o.forwardRef((function(e,t){const n=(0,g.A)({props:e,name:"MuiCircularProgress"}),{className:r,color:i="primary",disableShrink:o=!1,size:a=40,style:d,thickness:h=3.6,value:p=0,variant:f="indeterminate"}=n,m=(0,l.A)(n,zr),y=(0,s.A)({},n,{color:i,disableShrink:o,size:a,thickness:h,value:p,variant:f}),v=(e=>{const{classes:t,variant:n,color:r,disableShrink:i}=e,o={root:["root",n,`color${(0,de.A)(r)}`],svg:["svg"],circle:["circle",`circle${(0,de.A)(n)}`,i&&"circleDisableShrink"]};return(0,u.A)(o,Nr,t)})(y),b={},x={},w={};if("determinate"===f){const e=2*Math.PI*((Wr-h)/2);b.strokeDasharray=e.toFixed(3),w["aria-valuenow"]=Math.round(p),b.strokeDashoffset=`${((100-p)/100*e).toFixed(3)}px`,x.transform="rotate(-90deg)"}return(0,S.jsx)(Yr,(0,s.A)({className:(0,c.A)(v.root,r),style:(0,s.A)({width:a,height:a},x,d),ownerState:y,ref:t,role:"progressbar"},w,m,{children:(0,S.jsx)(Kr,{className:v.svg,ownerState:y,viewBox:"22 22 44 44",children:(0,S.jsx)(Xr,{className:v.circle,style:b,ownerState:y,cx:Wr,cy:Wr,r:(Wr-h)/2,fill:"none",strokeWidth:h})})}))})),Jr=Zr;function Qr(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 ei(e){return(0,S.jsx)(Jr,function(e){for(var t=1;tt=>{e&&(void 0===t?e(P.current):e(P.current,t))},L=M(((e,t)=>{ui(h,e,d),(0,y.q)(e),m&&m(e,t)})),R=M(((e,t)=>{const r=(0,y.c)({timeout:k,style:_,easing:f},{mode:"enter"});e.style.webkitTransition=n.transitions.create("-webkit-transform",(0,s.A)({},r)),e.style.transition=n.transitions.create("transform",(0,s.A)({},r)),e.style.webkitTransform="none",e.style.transform="none",w&&w(e,t)})),j=M(x),F=M(E),D=M((e=>{const t=(0,y.c)({timeout:k,style:_,easing:f},{mode:"exit"});e.style.webkitTransition=n.transitions.create("-webkit-transform",t),e.style.transition=n.transitions.create("transform",t),ui(h,e,d),A&&A(e)})),N=M((e=>{e.style.webkitTransition="",e.style.transition="",C&&C(e)})),z=o.useCallback((()=>{P.current&&ui(h,P.current,d)}),[h,d]);return o.useEffect((()=>{if(g||"down"===h||"right"===h)return;const e=(0,si.A)((()=>{P.current&&ui(h,P.current,d)})),t=(0,li.A)(P.current);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[h,g,d]),o.useEffect((()=>{g||z()}),[g,z]),(0,S.jsx)(T,(0,s.A)({nodeRef:P,onEnter:L,onEntered:j,onEntering:R,onExit:D,onExited:N,onExiting:F,addEndListener:e=>{a&&a(P.current,e)},appear:c,in:g,timeout:k},O,{children:(e,t)=>o.cloneElement(u,(0,s.A)({ref:I,style:(0,s.A)({visibility:"exited"!==e||g?void 0:"hidden"},_,u.props.style)},t))}))})),hi=di;function pi(e){return(0,w.Ay)("MuiDrawer",e)}(0,x.A)("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const fi=["BackdropProps"],gi=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],mi=(e,t)=>{const{ownerState:n}=e;return[t.root,("permanent"===n.variant||"persistent"===n.variant)&&t.docked,t.modal]},yi=(0,h.Ay)(ai.A,{name:"MuiDrawer",slot:"Root",overridesResolver:mi})((({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer}))),vi=(0,h.Ay)("div",{shouldForwardProp:gn.A,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:mi})({flex:"0 0 auto"}),bi=(0,h.Ay)(P.A,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${(0,de.A)(n.anchor)}`],"temporary"!==n.variant&&t[`paperAnchorDocked${(0,de.A)(n.anchor)}`]]}})((({theme:e,ownerState:t})=>(0,s.A)({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},"left"===t.anchor&&{left:0},"top"===t.anchor&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},"right"===t.anchor&&{right:0},"bottom"===t.anchor&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},"left"===t.anchor&&"temporary"!==t.variant&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},"top"===t.anchor&&"temporary"!==t.variant&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},"right"===t.anchor&&"temporary"!==t.variant&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},"bottom"===t.anchor&&"temporary"!==t.variant&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`}))),xi={left:"right",right:"left",top:"down",bottom:"up"};const wi=o.forwardRef((function(e,t){const n=(0,g.A)({props:e,name:"MuiDrawer"}),r=(0,v.A)(),i=(0,qt.I)(),a={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{anchor:d="left",BackdropProps:h,children:p,className:f,elevation:m=16,hideBackdrop:y=!1,ModalProps:{BackdropProps:b}={},onClose:x,open:w=!1,PaperProps:A={},SlideProps:C,TransitionComponent:E=hi,transitionDuration:_=a,variant:k="temporary"}=n,T=(0,l.A)(n.ModalProps,fi),O=(0,l.A)(n,gi),P=o.useRef(!1);o.useEffect((()=>{P.current=!0}),[]);const I=function({direction:e},t){return"rtl"===e&&function(e){return-1!==["left","right"].indexOf(e)}(t)?xi[t]:t}({direction:i?"rtl":"ltr"},d),M=d,L=(0,s.A)({},n,{anchor:M,elevation:m,open:w,variant:k},O),R=(e=>{const{classes:t,anchor:n,variant:r}=e,i={root:["root"],docked:[("permanent"===r||"persistent"===r)&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${(0,de.A)(n)}`,"temporary"!==r&&`paperAnchorDocked${(0,de.A)(n)}`]};return(0,u.A)(i,pi,t)})(L),j=(0,S.jsx)(bi,(0,s.A)({elevation:"temporary"===k?m:0,square:!0},A,{className:(0,c.A)(R.paper,A.className),ownerState:L,children:p}));if("permanent"===k)return(0,S.jsx)(vi,(0,s.A)({className:(0,c.A)(R.root,R.docked,f),ownerState:L,ref:t},O,{children:j}));const F=(0,S.jsx)(E,(0,s.A)({in:w,direction:xi[I],timeout:_,appear:P.current},C,{children:j}));return"persistent"===k?(0,S.jsx)(vi,(0,s.A)({className:(0,c.A)(R.root,R.docked,f),ownerState:L,ref:t},O,{children:F})):(0,S.jsx)(yi,(0,s.A)({BackdropProps:(0,s.A)({},h,b,{transitionDuration:_}),className:(0,c.A)(R.root,R.modal,f),open:w,ownerState:L,onClose:x,hideBackdrop:y,ref:t},O,T,{children:F}))})),Ai=wi;var Si=function(e){return{drawer:{width:200,flexShrink:0,whiteSpace:"nowrap"},drawerOpen:{width:200,transition:e.transitions.create("width",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.enteringScreen}),"& $toolbar":{justifyContent:"flex-end"}},drawerClose:{transition:e.transitions.create("width",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),overflowX:"hidden",width:"61px","& $toolbar":{justifyContent:"center"}},toolbar:{display:"flex",alignItems:"center",justifyContent:"center",padding:e.spacing(0,1)}}},Ci=n(60854);function Ei(e){var t=e.variant,n=e.status,r=e.className,s=e.style,l=e.children,c=(0,Ut.useTranslation)().t,u=(0,v.A)(),d=Si(u),h=(0,o.useState)(!1),p=(0,i.A)(h,2),f=p[0],g=p[1];return(0,o.useEffect)((function(){Ci.vF.logTraceUseEffect("DRAWER - status",n),void 0!==n&&g(n)}),[n]),(0,S.jsxs)(Ai,{variant:t||"permanent",sx:f?d.drawerOpen:d.drawerClose,classes:{paper:r},style:s||void 0,children:[(0,S.jsx)(a.A,{sx:d.toolbar,children:(0,S.jsx)(Bi,{tooltip:c(f?"general.close":"general.open"),tooltipPlacement:"right",onClick:function(){g(!f)},size:"large",children:f?(0,S.jsx)(ao,{}):(0,S.jsx)(so,{})})}),void 0!==l&&l]})}function _i(e){var t=e.in,n=e.children;return(0,S.jsx)(un.A,{in:t,children:n&&n})}var ki=n(63496),Ti=n(25779);const Oi=o.createContext();function Pi(e){return(0,w.Ay)("MuiGrid",e)}const Ii=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],Mi=(0,x.A)("MuiGrid",["root","container","item","zeroMinWidth",...[0,1,2,3,4,5,6,7,8,9,10].map((e=>`spacing-xs-${e}`)),...["column-reverse","column","row-reverse","row"].map((e=>`direction-xs-${e}`)),...["nowrap","wrap-reverse","wrap"].map((e=>`wrap-xs-${e}`)),...Ii.map((e=>`grid-xs-${e}`)),...Ii.map((e=>`grid-sm-${e}`)),...Ii.map((e=>`grid-md-${e}`)),...Ii.map((e=>`grid-lg-${e}`)),...Ii.map((e=>`grid-xl-${e}`))]),Li=Mi,Ri=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function ji(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function Fi({breakpoints:e,values:t}){let n="";Object.keys(t).forEach((e=>{""===n&&0!==t[e]&&(n=e)}));const r=Object.keys(e).sort(((t,n)=>e[t]-e[n]));return r.slice(0,r.indexOf(n))}const Di=(0,h.Ay)("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:i,item:o,spacing:a,wrap:s,zeroMinWidth:l,breakpoints:c}=n;let u=[];r&&(u=function(e,t,n={}){if(!e||e<=0)return[];if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e)return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach((t=>{const i=e[t];Number(i)>0&&r.push(n[`spacing-${t}-${String(i)}`])})),r}(a,c,t));const d=[];return c.forEach((e=>{const r=n[e];r&&d.push(t[`grid-${e}-${String(r)}`])})),[t.root,r&&t.container,o&&t.item,l&&t.zeroMinWidth,...u,"row"!==i&&t[`direction-xs-${String(i)}`],"wrap"!==s&&t[`wrap-xs-${String(s)}`],...d]}})((({ownerState:e})=>(0,s.A)({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},"wrap"!==e.wrap&&{flexWrap:e.wrap})),(function({theme:e,ownerState:t}){const n=(0,ki.kW)({values:t.direction,breakpoints:e.breakpoints.values});return(0,ki.NI)({theme:e},n,(e=>{const t={flexDirection:e};return 0===e.indexOf("column")&&(t[`& > .${Li.item}`]={maxWidth:"none"}),t}))}),(function({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let i={};if(n&&0!==r){const t=(0,ki.kW)({values:r,breakpoints:e.breakpoints.values});let n;"object"==typeof t&&(n=Fi({breakpoints:e.breakpoints.values,values:t})),i=(0,ki.NI)({theme:e},t,((t,r)=>{var i;const o=e.spacing(t);return"0px"!==o?{marginTop:`-${ji(o)}`,[`& > .${Li.item}`]:{paddingTop:ji(o)}}:null!=(i=n)&&i.includes(r)?{}:{marginTop:0,[`& > .${Li.item}`]:{paddingTop:0}}}))}return i}),(function({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let i={};if(n&&0!==r){const t=(0,ki.kW)({values:r,breakpoints:e.breakpoints.values});let n;"object"==typeof t&&(n=Fi({breakpoints:e.breakpoints.values,values:t})),i=(0,ki.NI)({theme:e},t,((t,r)=>{var i;const o=e.spacing(t);return"0px"!==o?{width:`calc(100% + ${ji(o)})`,marginLeft:`-${ji(o)}`,[`& > .${Li.item}`]:{paddingLeft:ji(o)}}:null!=(i=n)&&i.includes(r)?{}:{width:"100%",marginLeft:0,[`& > .${Li.item}`]:{paddingLeft:0}}}))}return i}),(function({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce(((r,i)=>{let o={};if(t[i]&&(n=t[i]),!n)return r;if(!0===n)o={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===n)o={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const a=(0,ki.kW)({values:t.columns,breakpoints:e.breakpoints.values}),l="object"==typeof a?a[i]:a;if(null==l)return r;const c=Math.round(n/l*1e8)/1e6+"%";let u={};if(t.container&&t.item&&0!==t.columnSpacing){const n=e.spacing(t.columnSpacing);if("0px"!==n){const e=`calc(${c} + ${ji(n)})`;u={flexBasis:e,maxWidth:e}}}o=(0,s.A)({flexBasis:c,flexGrow:0,maxWidth:c},u)}return 0===e.breakpoints.values[i]?Object.assign(r,o):r[e.breakpoints.up(i)]=o,r}),{})}));const Ni=e=>{const{classes:t,container:n,direction:r,item:i,spacing:o,wrap:a,zeroMinWidth:s,breakpoints:l}=e;let c=[];n&&(c=function(e,t){if(!e||e<=0)return[];if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e)return[`spacing-xs-${String(e)}`];const n=[];return t.forEach((t=>{const r=e[t];if(Number(r)>0){const e=`spacing-${t}-${String(r)}`;n.push(e)}})),n}(o,l));const d=[];l.forEach((t=>{const n=e[t];n&&d.push(`grid-${t}-${String(n)}`)}));const h={root:["root",n&&"container",i&&"item",s&&"zeroMinWidth",...c,"row"!==r&&`direction-xs-${String(r)}`,"wrap"!==a&&`wrap-xs-${String(a)}`,...d]};return(0,u.A)(h,Pi,t)},zi=o.forwardRef((function(e,t){const n=(0,g.A)({props:e,name:"MuiGrid"}),{breakpoints:r}=(0,v.A)(),i=(0,Ti.A)(n),{className:a,columns:u,columnSpacing:d,component:h="div",container:p=!1,direction:f="row",item:m=!1,rowSpacing:y,spacing:b=0,wrap:x="wrap",zeroMinWidth:w=!1}=i,A=(0,l.A)(i,Ri),C=y||b,E=d||b,_=o.useContext(Oi),k=p?u||12:_,T={},O=(0,s.A)({},A);r.keys.forEach((e=>{null!=A[e]&&(T[e]=A[e],delete O[e])}));const P=(0,s.A)({},i,{columns:k,container:p,direction:f,item:m,rowSpacing:C,columnSpacing:E,wrap:x,zeroMinWidth:w,spacing:b},T,{breakpoints:r.keys}),I=Ni(P);return(0,S.jsx)(Oi.Provider,{value:k,children:(0,S.jsx)(Di,(0,s.A)({ownerState:P,className:(0,c.A)(I.root,a),as:h,ref:t},O))})}));const Vi=zi;function Bi(e){var t=e.sx,n=e.className,r=e.style,i=e.children,o=e.onClick,a=e["aria-label"],s=e.tooltip,l=e.tooltipPlacement,c=e.id,u=e.tabIndex,d=e.iconRef,h=e.size,p=e.disabled,f=e.color,g=(0,Ut.useTranslation)().t;function m(){return(0,S.jsx)(Ge.A,{id:c,sx:t,"aria-label":g(a)||g(s),style:r,className:n,onClick:o,tabIndex:u,size:h,ref:d,disabled:p,color:f,children:i&&i})}return p?m():(0,S.jsx)(cn,{title:g(s||""),placement:l,TransitionComponent:un.A,children:m()})}const $i=(0,Ke.A)([(0,S.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),(0,S.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime"),Gi=(0,Ke.A)((0,S.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add"),Ui=(0,Ke.A)((0,S.jsx)("path",{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4zm-1-5C6.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"}),"AddCircleOutline"),Wi=(0,Ke.A)((0,S.jsx)("path",{d:"M4 8h4V4H4zm6 12h4v-4h-4zm-6 0h4v-4H4zm0-6h4v-4H4zm6 0h4v-4h-4zm6-10v4h4V4zm-6 4h4V4h-4zm6 6h4v-4h-4zm0 6h4v-4h-4z"}),"Apps");var qi=n(78918);const Hi=(0,Ke.A)((0,S.jsx)("path",{d:"M17.51 3.87 15.73 2.1 5.84 12l9.9 9.9 1.77-1.77L9.38 12z"}),"ArrowBackIosOutlined");var Yi=n(75311),Ki=n(13659);const Xi=(0,Ke.A)((0,S.jsx)("path",{d:"M6.23 20.23 8 22l10-10L8 2 6.23 3.77 14.46 12z"}),"ArrowForwardIosOutlined"),Zi=(0,Ke.A)((0,S.jsx)("path",{d:"m14 7-5 5 5 5z"}),"ArrowLeft"),Ji=(0,Ke.A)((0,S.jsx)("path",{d:"m10 17 5-5-5-5z"}),"ArrowRight");var Qi=n(2890);const eo=(0,Ke.A)((0,S.jsx)("path",{d:"M19 6v10.5l1.95 1.95c.03-.15.05-.3.05-.45V6c0-1.1-.9-2-2-2H6.5l2 2zM3.22 3.32 1.95 4.59 3 5.64V18c0 1.1.9 2 2 2h12.36l2.06 2.06 1.27-1.27zM15 18H5V7.64L15.36 18z"}),"BrowserNotSupported"),to=(0,Ke.A)((0,S.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),no=(0,Ke.A)((0,S.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-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckCircle"),ro=(0,Ke.A)((0,S.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2m-9 14-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckBox"),io=(0,Ke.A)((0,S.jsx)("path",{d:"M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"}),"CheckBoxOutlineBlank"),oo=(0,Ke.A)((0,S.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 16H5V5h14zM17.99 9l-1.41-1.42-6.59 6.59-2.58-2.57-1.42 1.41 4 3.99z"}),"CheckBoxOutlined"),ao=(0,Ke.A)((0,S.jsx)("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft"),so=(0,Ke.A)((0,S.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");var lo=n(60192);const co=(0,Ke.A)((0,S.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete"),uo=(0,Ke.A)((0,S.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8zm7.5-5-1-1h-5l-1 1H5v2h14V4z"}),"DeleteOutline"),ho=(0,Ke.A)((0,S.jsx)("path",{d:"M12 3 2 21h20zm1 5.92L18.6 19H13zm-2 0V19H5.4z"}),"Details"),po=(0,Ke.A)((0,S.jsx)("path",{d:"M5 20h14v-2H5zM19 9h-4V3H9v6H5l7 7z"}),"Download"),fo=(0,Ke.A)((0,S.jsx)("path",{d:"M18.32 4.26C16.84 3.05 15.01 2.25 13 2.05v2.02c1.46.18 2.79.76 3.9 1.62zM19.93 11h2.02c-.2-2.01-1-3.84-2.21-5.32L18.31 7.1c.86 1.11 1.44 2.44 1.62 3.9m-1.62 5.9 1.43 1.43c1.21-1.48 2.01-3.32 2.21-5.32h-2.02c-.18 1.45-.76 2.78-1.62 3.89M13 19.93v2.02c2.01-.2 3.84-1 5.32-2.21l-1.43-1.43c-1.1.86-2.43 1.44-3.89 1.62M13 12V7h-2v5H7l5 5 5-5zm-2 7.93v2.02c-5.05-.5-9-4.76-9-9.95s3.95-9.45 9-9.95v2.02C7.05 4.56 4 7.92 4 12s3.05 7.44 7 7.93"}),"Downloading"),go=(0,Ke.A)((0,S.jsx)("path",{d:"M20 9H4v2h16zM4 15h16v-2H4z"}),"DragHandle"),mo=(0,Ke.A)([(0,S.jsx)("circle",{cx:"12",cy:"4",r:"2"},"0"),(0,S.jsx)("path",{d:"M15.89 8.11C15.5 7.72 14.83 7 13.53 7h-2.54C8.24 6.99 6 4.75 6 2H4c0 3.16 2.11 5.84 5 6.71V22h2v-6h2v6h2V10.05L18.95 14l1.41-1.41z"},"1")],"EmojiPeople"),yo=(0,Ke.A)((0,S.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"}),"Error"),vo=(0,Ke.A)((0,S.jsx)("path",{d:"M4 20h16v2H4zM4 2h16v2H4zm9 7h3l-4-4-4 4h3v6H8l4 4 4-4h-3z"}),"Expand"),bo=(0,Ke.A)((0,S.jsx)("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess"),xo=(0,Ke.A)((0,S.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),wo=(0,Ke.A)((0,S.jsx)("path",{d:"M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z"}),"FileUpload"),Ao=(0,Ke.A)((0,S.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"),So=(0,Ke.A)((0,S.jsx)("path",{d:"M19.79 5.61C20.3 4.95 19.83 4 19 4H6.83l7.97 7.97zM2.81 2.81 1.39 4.22 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-2.17l5.78 5.78 1.41-1.41z"}),"FilterAltOff"),Co=(0,Ke.A)((0,S.jsx)("path",{d:"M7 14H5v5h5v-2H7zm-2-4h2V7h3V5H5zm12 7h-3v2h5v-5h-2zM14 5v2h3v3h2V5z"}),"Fullscreen"),Eo=(0,Ke.A)((0,S.jsx)("path",{d:"M5 16h3v3h2v-5H5zm3-8H5v2h5V5H8zm6 11h2v-3h3v-2h-5zm2-11V5h-2v5h5V8z"}),"FullscreenExit");var _o=n(98533);const ko=(0,Ke.A)((0,S.jsx)("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"}),"Group"),To=(0,Ke.A)((0,S.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2M8 17.5c-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.5M9.5 8c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5S9.5 9.38 9.5 8m6.5 9.5c-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.5"}),"GroupWork"),Oo=(0,Ke.A)([(0,S.jsx)("path",{d:"M12 2C6.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"},"0"),(0,S.jsx)("circle",{cx:"8",cy:"14",r:"2"},"1"),(0,S.jsx)("circle",{cx:"12",cy:"8",r:"2"},"2"),(0,S.jsx)("circle",{cx:"16",cy:"14",r:"2"},"3")],"GroupWorkOutlined"),Po=(0,Ke.A)((0,S.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 17h-2v-2h2zm2.07-7.75-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25"}),"Help"),Io=(0,Ke.A)((0,S.jsx)("path",{d:"m6 14 3 3v5h6v-5l3-3V9H6zm2-3h8v2.17l-3 3V20h-2v-3.83l-3-3zm3-9h2v3h-2zM3.502 5.874 4.916 4.46l2.122 2.12-1.414 1.415zm13.458.708 2.123-2.12 1.413 1.416-2.123 2.12z"}),"HighlightOutlined"),Mo=(0,Ke.A)((0,S.jsx)("path",{d:"m6 14 3 3v5h6v-5l3-3V9H6zm5-12h2v3h-2zM3.5 5.88l1.41-1.41 2.12 2.12L5.62 8zm13.46.71 2.12-2.12 1.41 1.41L18.38 8z"}),"Highlight"),Lo=(0,Ke.A)((0,S.jsx)("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"}),"Home");var Ro=n(15789);const jo=(0,Ke.A)((0,S.jsx)("path",{d:"M13 6.99h3L12 3 8 6.99h3v10.02H8L12 21l4-3.99h-3z"}),"Height"),Fo=(0,Ke.A)((0,S.jsx)("path",{d:"M9 3 5 6.99h3V14h2V6.99h3zm7 14.01V10h-2v7.01h-3L15 21l4-3.99z"}),"ImportExport"),Do=(0,Ke.A)((0,S.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"}),"Info");var No=n(19512);const zo=(0,Ke.A)((0,S.jsx)("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown"),Vo=(0,Ke.A)((0,S.jsx)("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"}),"KeyboardArrowUp"),Bo=(0,Ke.A)((0,S.jsx)("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6z"}),"KeyboardArrowRight"),$o=(0,Ke.A)((0,S.jsx)("path",{d:"M15.41 16.59 10.83 12l4.58-4.59L14 6l-6 6 6 6z"}),"KeyboardArrowLeft"),Go=(0,Ke.A)([(0,S.jsx)("path",{d:"M6 17.59 7.41 19 12 14.42 16.59 19 18 17.59l-6-6z"},"0"),(0,S.jsx)("path",{d:"m6 11 1.41 1.41L12 7.83l4.59 4.58L18 11l-6-6z"},"1")],"KeyboardDoubleArrowUp"),Uo=(0,Ke.A)((0,S.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.27z"}),"Layers"),Wo=(0,Ke.A)((0,S.jsx)("path",{d:"M12 4.53 17.74 9l-1.89 1.47 1.43 1.42L21 9l-9-7-2.59 2.02 1.42 1.42zm9 9.54-1.63-1.27-.67.52 1.43 1.43zM3.41.86 2 2.27l4.22 4.22L3 9l9 7 2.1-1.63 1.42 1.42-3.53 2.75-7.37-5.73L3 14.07l9 7 4.95-3.85L20.73 21l1.41-1.41zM12 13.47 6.26 9l1.39-1.08 5.02 5.02z"}),"LayersClearOutlined");var qo=n(15470);const Ho=(0,Ke.A)((0,S.jsx)("path",{d:"M19 5v14H5V5zm1.1-2H3.9c-.5 0-.9.4-.9.9v16.2c0 .4.4.9.9.9h16.2c.4 0 .9-.5.9-.9V3.9c0-.5-.5-.9-.9-.9M11 7h6v2h-6zm0 4h6v2h-6zm0 4h6v2h-6zM7 7h2v2H7zm0 4h2v2H7zm0 4h2v2H7z"}),"ListAlt"),Yo=(0,Ke.A)((0,S.jsx)("path",{d:"M19 2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h4l3 3 3-3h4c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-6 16h-2v-2h2zm2.07-7.75-.9.92C13.45 11.9 13 12.5 13 14h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25"}),"LiveHelp"),Ko=(0,Ke.A)((0,S.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1z"}),"Lock"),Xo=(0,Ke.A)((0,S.jsx)("path",{d:"M12 17c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m6-9h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6h1.9c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m0 12H6V10h12z"}),"LockOpen"),Zo=(0,Ke.A)((0,S.jsx)("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8m0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4z"}),"Loop"),Jo=(0,Ke.A)((0,S.jsx)("path",{d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2m6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1z"}),"Notifications"),Qo=(0,Ke.A)((0,S.jsx)("path",{d:"M7.58 4.08 6.15 2.65C3.75 4.48 2.17 7.3 2.03 10.5h2c.15-2.65 1.51-4.97 3.55-6.42m12.39 6.42h2c-.15-3.2-1.73-6.02-4.12-7.85l-1.42 1.43c2.02 1.45 3.39 3.77 3.54 6.42M18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2"}),"NotificationsActive");var ea=n(96898);const ta=(0,Ke.A)((0,S.jsx)("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu"),na=(0,Ke.A)((0,S.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"),ra=(0,Ke.A)((0,S.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"),ia=(0,Ke.A)((0,S.jsx)("path",{d:"M3.01 10.72c-.14 2.57 1.66 4.73 4.07 5.18l-.79-.79a.9959.9959 0 0 1 0-1.41c.39-.39 1.02-.39 1.41 0l2.59 2.59c.39.39.39 1.02 0 1.41l-2.58 2.6c-.39.39-1.02.39-1.41 0a.9959.9959 0 0 1 0-1.41l.88-.88v-.06c-3.64-.43-6.43-3.65-6.15-7.47C1.29 6.78 4.55 4 8.26 4H10c.55 0 1 .45 1 1s-.45 1-1 1H8.22c-2.7 0-5.07 2.04-5.21 4.72M15 11h5c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-5c-1.1 0-2 .9-2 2v3c0 1.1.9 2 2 2m5-2h-5V6h5zm0 11h-5c-1.1 0-2-.9-2-2v-3c0-1.1.9-2 2-2h5c1.1 0 2 .9 2 2v3c0 1.1-.9 2-2 2"}),"MoveDownRounded"),oa=(0,Ke.A)((0,S.jsx)("path",{d:"M3.01 13.28c-.14-2.57 1.66-4.73 4.07-5.18l-.79.78c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0l2.59-2.59c.39-.39.39-1.02 0-1.41L7.71 3.7a.9959.9959 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41l.88.88v.06C3.54 6.48.75 9.7 1.03 13.52 1.29 17.22 4.55 20 8.26 20H10c.55 0 1-.45 1-1s-.45-1-1-1H8.22c-2.7 0-5.07-2.04-5.21-4.72M13 15v3c0 1.1.9 2 2 2h5c1.1 0 2-.9 2-2v-3c0-1.1-.9-2-2-2h-5c-1.1 0-2 .9-2 2m7 3h-5v-3h5zm0-14h-5c-1.1 0-2 .9-2 2v3c0 1.1.9 2 2 2h5c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2"}),"MoveUpRounded"),aa=(0,Ke.A)((0,S.jsx)("path",{d:"M17.66 8 12 2.35 6.34 8C4.78 9.56 4 11.64 4 13.64s.78 4.11 2.34 5.67 3.61 2.35 5.66 2.35 4.1-.79 5.66-2.35S20 15.64 20 13.64 19.22 9.56 17.66 8M6 14c.01-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 17.99 12 18 14z"}),"Opacity"),sa=(0,Ke.A)((0,S.jsx)("path",{d:"M19 4H5c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h4v-2H5V8h14v10h-4v2h4c1.1 0 2-.9 2-2V6c0-1.1-.89-2-2-2m-7 6-4 4h3v6h2v-6h3z"}),"OpenInBrowser"),la=(0,Ke.A)((0,S.jsx)("path",{d:"M6 19h4V5H6zm8-14v14h4V5z"}),"Pause"),ca=(0,Ke.A)((0,S.jsx)("path",{d:"M8 5v14l11-7z"}),"PlayArrow");var ua=n(25297),da=n(27927);const ha=(0,Ke.A)((0,S.jsx)("path",{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5m0-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"RadioButtonChecked"),pa=(0,Ke.A)((0,S.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"RadioButtonUnchecked"),fa=(0,Ke.A)((0,S.jsx)("path",{d:"M19 13H5v-2h14z"}),"Remove"),ga=(0,Ke.A)((0,S.jsx)("path",{d:"M7 11v2h10v-2zm5-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"}),"RemoveCircleOutline"),ma=(0,Ke.A)((0,S.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"),ya=(0,Ke.A)((0,S.jsx)("path",{d:"M5 13.18v4L12 21l7-3.82v-4L12 17zM12 3 1 9l11 6 9-4.91V17h2V9z"}),"School"),va=(0,Ke.A)((0,S.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"),ba=(0,Ke.A)((0,S.jsx)("path",{d:"M2.01 21 23 12 2.01 3 2 10l15 2-15 2z"}),"Send");var xa=n(94321);const wa=(0,Ke.A)((0,S.jsx)("path",{d:"M15.5 15.38V8.62L18.88 12zM14 19l7-7-7-7zm-4 0V5l-7 7z"}),"SwitchRight"),Aa=(0,Ke.A)((0,S.jsx)("path",{d:"M8.5 8.62v6.76L5.12 12zM10 5l-7 7 7 7zm4 0v14l7-7z"}),"SwitchLeft");var Sa=n(91693);const Ca=(0,Ke.A)((0,S.jsx)("path",{d:"M20 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h15c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 2v3H5V5zm-5 14h-5v-9h5zM5 10h3v9H5zm12 9v-9h3v9z"}),"TableChartOutlined"),Ea=(0,Ke.A)((0,S.jsx)("path",{d:"M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8"}),"Undo"),_a=(0,Ke.A)((0,S.jsx)("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm4 18H6V4h7v5h5zM8 15.01l1.41 1.41L11 14.84V19h2v-4.16l1.59 1.59L16 15.01 12.01 11z"}),"UploadFile"),ka=(0,Ke.A)((0,S.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility"),Ta=(0,Ke.A)((0,S.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"),Oa=(0,Ke.A)((0,S.jsx)("path",{d:"M12 6c3.79 0 7.17 2.13 8.82 5.5C19.17 14.87 15.79 17 12 17s-7.17-2.13-8.82-5.5C4.83 8.13 8.21 6 12 6m0-2C7 4 2.73 7.11 1 11.5 2.73 15.89 7 19 12 19s9.27-3.11 11-7.5C21.27 7.11 17 4 12 4m0 5c1.38 0 2.5 1.12 2.5 2.5S13.38 14 12 14s-2.5-1.12-2.5-2.5S10.62 9 12 9m0-2c-2.48 0-4.5 2.02-4.5 4.5S9.52 16 12 16s4.5-2.02 4.5-4.5S14.48 7 12 7"}),"VisibilityOutlined"),Pa=(0,Ke.A)((0,S.jsx)("path",{d:"M12 6c3.79 0 7.17 2.13 8.82 5.5-.59 1.22-1.42 2.27-2.41 3.12l1.41 1.41c1.39-1.23 2.49-2.77 3.18-4.53C21.27 7.11 17 4 12 4c-1.27 0-2.49.2-3.64.57l1.65 1.65C10.66 6.09 11.32 6 12 6m-1.07 1.14L13 9.21c.57.25 1.03.71 1.28 1.28l2.07 2.07c.08-.34.14-.7.14-1.07C16.5 9.01 14.48 7 12 7c-.37 0-.72.05-1.07.14M2.01 3.87l2.68 2.68C3.06 7.83 1.77 9.53 1 11.5 2.73 15.89 7 19 12 19c1.52 0 2.98-.29 4.32-.82l3.42 3.42 1.41-1.41L3.42 2.45zm7.5 7.5 2.61 2.61c-.04.01-.08.02-.12.02-1.38 0-2.5-1.12-2.5-2.5 0-.05.01-.08.01-.13m-3.4-3.4 1.75 1.75c-.23.55-.36 1.15-.36 1.78 0 2.48 2.02 4.5 4.5 4.5.63 0 1.23-.13 1.77-.36l.98.98c-.88.24-1.8.38-2.75.38-3.79 0-7.17-2.13-8.82-5.5.7-1.43 1.72-2.61 2.93-3.53"}),"VisibilityOffOutlined"),Ia=(0,Ke.A)((0,S.jsx)("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}),"Warning"),Ma=(0,Ke.A)((0,S.jsx)("path",{d:"M12 2c3.86 0 7 3.14 7 7 0 5.25-7 13-7 13S5 14.25 5 9c0-3.86 3.14-7 7-7m-1.53 12L17 7.41 15.6 6l-5.13 5.18L8.4 9.09 7 10.5z"}),"WhereToVote"),La=(0,Ke.A)([(0,S.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"},"0"),(0,S.jsx)("path",{d:"M12 10h-2v2H9v-2H7V9h2V7h1v2h2z"},"1")],"ZoomIn"),Ra=(0,Ke.A)((0,S.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 14M7 9h5v1H7z"}),"ZoomOut");var ja=n(2681),Fa=n(92775),Da=n(77753),Na=n(43271),za=n(84657),Va=n(22311);const Ba=["ownerState"],$a=["variants"],Ga=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Ua(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Wa=(0,za.A)(),qa=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function Ha({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function Ya(e){return e?(t,n)=>n[e]:null}function Ka(e,t){let{ownerState:n}=t,r=(0,l.A)(t,Ba);const i="function"==typeof e?e((0,s.A)({ownerState:n},r)):e;if(Array.isArray(i))return i.flatMap((e=>Ka(e,(0,s.A)({ownerState:n},r))));if(i&&"object"==typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let t=(0,l.A)(i,$a);return e.forEach((e=>{let i=!0;"function"==typeof e.props?i=e.props((0,s.A)({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(i=!1)})),i&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,s.A)({ownerState:n},r,n)):e.style))})),t}return i}const Xa=function(e={}){const{themeId:t,defaultTheme:n=Wa,rootShouldForwardProp:r=Ua,slotShouldForwardProp:i=Ua}=e,o=e=>(0,Va.A)((0,s.A)({},e,{theme:Ha((0,s.A)({},e,{defaultTheme:n,themeId:t}))}));return o.__mui_systemSx=!0,(e,a={})=>{(0,Da.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:c,slot:u,skipVariantsResolver:d,skipSx:h,overridesResolver:p=Ya(qa(u))}=a,f=(0,l.A)(a,Ga),g=void 0!==d?d:u&&"Root"!==u&&"root"!==u||!1,m=h||!1;let y=Ua;"Root"===u||"root"===u?y=r:u?y=i:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(y=void 0);const v=(0,Da.default)(e,(0,s.A)({shouldForwardProp:y,label:undefined},f)),b=e=>"function"==typeof e&&e.__emotion_real!==e||(0,Na.Q)(e)?r=>Ka(e,(0,s.A)({},r,{theme:Ha({theme:r.theme,defaultTheme:n,themeId:t})})):e,x=(r,...i)=>{let a=b(r);const l=i?i.map(b):[];c&&p&&l.push((e=>{const r=Ha((0,s.A)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[c]||!r.components[c].styleOverrides)return null;const i=r.components[c].styleOverrides,o={};return Object.entries(i).forEach((([t,n])=>{o[t]=Ka(n,(0,s.A)({},e,{theme:r}))})),p(e,o)})),c&&!g&&l.push((e=>{var r;const i=Ha((0,s.A)({},e,{defaultTheme:n,themeId:t}));return Ka({variants:null==i||null==(r=i.components)||null==(r=r[c])?void 0:r.variants},(0,s.A)({},e,{theme:i}))})),m||l.push(o);const u=l.length-i.length;if(Array.isArray(r)&&u>0){const e=new Array(u).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const d=v(a,...l);return e.muiName&&(d.muiName=e.muiName),d};return v.withConfig&&(x.withConfig=v.withConfig),x}}(),Za=Xa,Ja=["className","component","disableGutters","fixed","maxWidth","classes"],Qa=(0,za.A)(),es=Za("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${(0,ja.A)(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),ts=e=>(0,Fa.A)({props:e,name:"MuiContainer",defaultTheme:Qa});const ns=function(e={}){const{createStyledComponent:t=es,useThemeProps:n=ts,componentName:r="MuiContainer"}=e,i=t((({theme:e,ownerState:t})=>(0,s.A)({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}})),(({theme:e,ownerState:t})=>t.fixed&&Object.keys(e.breakpoints.values).reduce(((t,n)=>{const r=n,i=e.breakpoints.values[r];return 0!==i&&(t[e.breakpoints.up(r)]={maxWidth:`${i}${e.breakpoints.unit}`}),t}),{})),(({theme:e,ownerState:t})=>(0,s.A)({},"xs"===t.maxWidth&&{[e.breakpoints.up("xs")]:{maxWidth:Math.max(e.breakpoints.values.xs,444)}},t.maxWidth&&"xs"!==t.maxWidth&&{[e.breakpoints.up(t.maxWidth)]:{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`}}))),a=o.forwardRef((function(e,t){const o=n(e),{className:a,component:d="div",disableGutters:h=!1,fixed:p=!1,maxWidth:f="lg"}=o,g=(0,l.A)(o,Ja),m=(0,s.A)({},o,{component:d,disableGutters:h,fixed:p,maxWidth:f}),y=((e,t)=>{const{classes:n,fixed:r,disableGutters:i,maxWidth:o}=e,a={root:["root",o&&`maxWidth${(0,ja.A)(String(o))}`,r&&"fixed",i&&"disableGutters"]};return(0,u.A)(a,(e=>(0,w.Ay)(t,e)),n)})(m,r);return(0,S.jsx)(i,(0,s.A)({as:d,ownerState:m,className:(0,c.A)(y.root,a),ref:t},g))}));return a}({createStyledComponent:(0,h.Ay)("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${(0,de.A)(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>(0,g.A)({props:e,name:"MuiContainer"})}),rs=ns;var is=n(53279),os=n(49773),as=n(44713),ss=n(71352);const ls=["className","id"],cs=(0,h.Ay)(Jn.A,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),us=o.forwardRef((function(e,t){const n=(0,g.A)({props:e,name:"MuiDialogTitle"}),{className:r,id:i}=n,a=(0,l.A)(n,ls),d=n,h=(e=>{const{classes:t}=e;return(0,u.A)({root:["root"]},as.t,t)})(d),{titleId:p=i}=o.useContext(ss.A);return(0,S.jsx)(cs,(0,s.A)({component:"h2",className:(0,c.A)(h.root,r),ownerState:d,ref:t,variant:"h6",id:null!=i?i:p},a))}));var ds=n(64987),hs=n(3820);const ps=["component","direction","spacing","divider","children","className","useFlexGap"],fs=(0,za.A)(),gs=Za("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function ms(e){return(0,Fa.A)({props:e,name:"MuiStack",defaultTheme:fs})}function ys(e,t){const n=o.Children.toArray(e).filter(Boolean);return n.reduce(((e,r,i)=>(e.push(r),i{let n=(0,s.A)({display:"flex",flexDirection:"column"},(0,ki.NI)({theme:t},(0,ki.kW)({values:e.direction,breakpoints:t.breakpoints.values}),(e=>({flexDirection:e}))));if(e.spacing){const r=(0,hs.LX)(t),i=Object.keys(t.breakpoints.values).reduce(((t,n)=>(("object"==typeof e.spacing&&null!=e.spacing[n]||"object"==typeof e.direction&&null!=e.direction[n])&&(t[n]=!0),t)),{}),o=(0,ki.kW)({values:e.direction,base:i}),a=(0,ki.kW)({values:e.spacing,base:i});"object"==typeof o&&Object.keys(o).forEach(((e,t,n)=>{if(!o[e]){const r=t>0?o[n[t-1]]:"column";o[e]=r}}));const s=(t,n)=>{return e.useFlexGap?{gap:(0,hs._W)(r,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${i=n?o[n]:e.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[i]}`]:(0,hs._W)(r,t)}};var i};n=(0,Na.A)(n,(0,ki.NI)({theme:t},a,s))}return n=(0,ki.iZ)(t.breakpoints,n),n};const bs=function(e={}){const{createStyledComponent:t=gs,useThemeProps:n=ms,componentName:r="MuiStack"}=e,i=t(vs),a=o.forwardRef((function(e,t){const o=n(e),a=(0,Ti.A)(o),{component:d="div",direction:h="column",spacing:p=0,divider:f,children:g,className:m,useFlexGap:y=!1}=a,v=(0,l.A)(a,ps),b={direction:h,spacing:p,useFlexGap:y},x=(0,u.A)({root:["root"]},(e=>(0,w.Ay)(r,e)),{});return(0,S.jsx)(i,(0,s.A)({as:d,ownerState:b,ref:t,className:(0,c.A)(x.root,m)},v,{children:f?ys(g,f):g}))}));return a}({createStyledComponent:(0,h.Ay)("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>(0,g.A)({props:e,name:"MuiStack"})}),xs=bs;var ws=n(99311),As=n(7757);function Ss(e){return(0,w.Ay)("MuiLoadingButton",e)}const Cs=(0,x.A)("MuiLoadingButton",["root","loading","loadingIndicator","loadingIndicatorCenter","loadingIndicatorStart","loadingIndicatorEnd","endIconLoadingEnd","startIconLoadingStart"]),Es=["children","disabled","id","loading","loadingIndicator","loadingPosition","variant"],_s=(0,h.Ay)(dn.A,{shouldForwardProp:e=>(e=>"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e&&"classes"!==e)(e)||"classes"===e,name:"MuiLoadingButton",slot:"Root",overridesResolver:(e,t)=>[t.root,t.startIconLoadingStart&&{[`& .${Cs.startIconLoadingStart}`]:t.startIconLoadingStart},t.endIconLoadingEnd&&{[`& .${Cs.endIconLoadingEnd}`]:t.endIconLoadingEnd}]})((({ownerState:e,theme:t})=>(0,s.A)({[`& .${Cs.startIconLoadingStart}, & .${Cs.endIconLoadingEnd}`]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},"center"===e.loadingPosition&&{transition:t.transitions.create(["background-color","box-shadow","border-color"],{duration:t.transitions.duration.short}),[`&.${Cs.loading}`]:{color:"transparent"}},"start"===e.loadingPosition&&e.fullWidth&&{[`& .${Cs.startIconLoadingStart}, & .${Cs.endIconLoadingEnd}`]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0,marginRight:-8}},"end"===e.loadingPosition&&e.fullWidth&&{[`& .${Cs.startIconLoadingStart}, & .${Cs.endIconLoadingEnd}`]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0,marginLeft:-8}}))),ks=(0,h.Ay)("span",{name:"MuiLoadingButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.loadingIndicator,t[`loadingIndicator${(0,de.A)(n.loadingPosition)}`]]}})((({theme:e,ownerState:t})=>(0,s.A)({position:"absolute",visibility:"visible",display:"flex"},"start"===t.loadingPosition&&("outlined"===t.variant||"contained"===t.variant)&&{left:"small"===t.size?10:14},"start"===t.loadingPosition&&"text"===t.variant&&{left:6},"center"===t.loadingPosition&&{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled},"end"===t.loadingPosition&&("outlined"===t.variant||"contained"===t.variant)&&{right:"small"===t.size?10:14},"end"===t.loadingPosition&&"text"===t.variant&&{right:6},"start"===t.loadingPosition&&t.fullWidth&&{position:"relative",left:-10},"end"===t.loadingPosition&&t.fullWidth&&{position:"relative",right:-10}))),Ts=o.forwardRef((function(e,t){const n=o.useContext(In.A),r=(0,As.A)(n,e),i=(0,g.A)({props:r,name:"MuiLoadingButton"}),{children:a,disabled:c=!1,id:d,loading:h=!1,loadingIndicator:p,loadingPosition:f="center",variant:m="text"}=i,y=(0,l.A)(i,Es),v=(0,Kt.A)(d),b=null!=p?p:(0,S.jsx)(Jr,{"aria-labelledby":v,color:"inherit",size:16}),x=(0,s.A)({},i,{disabled:c,loading:h,loadingIndicator:b,loadingPosition:f,variant:m}),w=(e=>{const{loading:t,loadingPosition:n,classes:r}=e,i={root:["root",t&&"loading"],startIcon:[t&&`startIconLoading${(0,de.A)(n)}`],endIcon:[t&&`endIconLoading${(0,de.A)(n)}`],loadingIndicator:["loadingIndicator",t&&`loadingIndicator${(0,de.A)(n)}`]},o=(0,u.A)(i,Ss,r);return(0,s.A)({},r,o)})(x),A=h?(0,S.jsx)(ks,{className:w.loadingIndicator,ownerState:x,children:b}):null;return(0,S.jsxs)(_s,(0,s.A)({disabled:c||h,id:v,ref:t},y,{variant:m,classes:w,ownerState:x,children:["end"===x.loadingPosition?a:A,"end"===x.loadingPosition?A:a]}))}));var Os=["children"];function Ps(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 Is(e){for(var t=1;te;const $s=(0,Dr.i7)(js||(js=Bs` + `),Ia))),ja=o.forwardRef((function(e,t){const n=(0,k.A)({props:e,name:"MuiCircularProgress"}),{className:r,color:i="primary",disableShrink:o=!1,size:a=40,style:d,thickness:h=3.6,value:p=0,variant:f="indeterminate"}=n,g=(0,l.A)(n,Sa),m=(0,s.A)({},n,{color:i,disableShrink:o,size:a,thickness:h,value:p,variant:f}),y=(e=>{const{classes:t,variant:n,color:r,disableShrink:i}=e,o={root:["root",n,`color${(0,Ce.A)(r)}`],svg:["svg"],circle:["circle",`circle${(0,Ce.A)(n)}`,i&&"circleDisableShrink"]};return(0,u.A)(o,Aa,t)})(m),v={},b={},w={};if("determinate"===f){const e=2*Math.PI*((Oa-h)/2);v.strokeDasharray=e.toFixed(3),w["aria-valuenow"]=Math.round(p),v.strokeDashoffset=`${((100-p)/100*e).toFixed(3)}px`,b.transform="rotate(-90deg)"}return(0,F.jsx)(Ma,(0,s.A)({className:(0,c.A)(y.root,r),style:(0,s.A)({width:a,height:a},b,d),ownerState:m,ref:t,role:"progressbar"},w,g,{children:(0,F.jsx)(La,{className:y.svg,ownerState:m,viewBox:"22 22 44 44",children:(0,F.jsx)(Ra,{className:y.circle,style:v,ownerState:m,cx:Oa,cy:Oa,r:(Oa-h)/2,fill:"none",strokeWidth:h})})}))})),Fa=ja;function Da(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 Na(e){return(0,F.jsx)(Fa,function(e){for(var t=1;t{const t=-1===o.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&Ha(e,i)}))}function Xa(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function Za(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=(0,Ze.A)(e);return t.body===e?(0,qa.A)(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=Hi((0,Ze.A)(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Ya(r)+e}px`;const t=(0,Ze.A)(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Ya(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=(0,Ze.A)(r).body;else{const t=r.parentElement,n=(0,qa.A)(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}const Ja=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&Ha(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);Ka(t,e.mount,e.modalRef,r,!0);const i=Xa(this.containers,(e=>e.container===t));return-1!==i?(this.containers[i].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=Xa(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=Za(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=Xa(this.containers,(t=>-1!==t.modals.indexOf(e))),i=this.containers[r];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(n,1),0===i.modals.length)i.restore&&i.restore(),e.modalRef&&Ha(e.modalRef,t),Ka(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=i.modals[i.modals.length-1];e.modalRef&&Ha(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Qa(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:i=Ja,closeAfterTransition:a=!1,onTransitionEnter:l,onTransitionExited:c,children:u,onClose:d,open:h,rootRef:p}=e,f=o.useRef({}),g=o.useRef(null),m=o.useRef(null),y=(0,q.A)(m,p),[v,b]=o.useState(!h),w=function(e){return!!e&&e.props.hasOwnProperty("in")}(u);let x=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(x=!1);const A=()=>(f.current.modalRef=m.current,f.current.mount=g.current,f.current),S=()=>{i.mount(A(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},C=(0,$e.A)((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||(0,Ze.A)(g.current).body;i.add(A(),e),m.current&&S()})),E=o.useCallback((()=>i.isTopModal(A())),[i]),_=(0,$e.A)((e=>{g.current=e,e&&(h&&E()?S():m.current&&Ha(m.current,x))})),k=o.useCallback((()=>{i.remove(A(),x)}),[x,i]);o.useEffect((()=>()=>{k()}),[k]),o.useEffect((()=>{h?C():w&&a||k()}),[h,k,w,a,C]);const T=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&E()&&(n||(t.stopPropagation(),d&&d(t,"escapeKeyDown")))},O=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&d&&d(t,"backdropClick")};return{getRootProps:(t={})=>{const n=(0,Wa.h)(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=(0,s.A)({},n,t);return(0,s.A)({role:"presentation"},r,{onKeyDown:T(r),ref:y})},getBackdropProps:(e={})=>{const t=e;return(0,s.A)({"aria-hidden":!0},t,{onClick:O(t),open:h})},getTransitionProps:()=>({onEnter:(0,Ua.A)((()=>{b(!1),l&&l()}),null==u?void 0:u.props.onEnter),onExited:(0,Ua.A)((()=>{b(!0),c&&c(),a&&k()}),null==u?void 0:u.props.onExited)}),rootRef:y,portalRef:_,isTopModal:E,exited:v,hasTransition:w}}const es=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function ts(e){const t=[],n=[];return Array.from(e.querySelectorAll(es)).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 ns(){return!0}function rs(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=ts,isEnabled:s=ns,open:l}=e,c=o.useRef(!1),u=o.useRef(null),d=o.useRef(null),h=o.useRef(null),p=o.useRef(null),f=o.useRef(!1),g=o.useRef(null),m=(0,q.A)(t.ref,g),y=o.useRef(null);o.useEffect((()=>{l&&g.current&&(f.current=!n)}),[n,l]),o.useEffect((()=>{if(!l||!g.current)return;const e=(0,Ze.A)(g.current);return g.current.contains(e.activeElement)||(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex","-1"),f.current&&g.current.focus()),()=>{i||(h.current&&h.current.focus&&(c.current=!0,h.current.focus()),h.current=null)}}),[l]),o.useEffect((()=>{if(!l||!g.current)return;const e=(0,Ze.A)(g.current),t=t=>{y.current=t,!r&&s()&&"Tab"===t.key&&e.activeElement===g.current&&t.shiftKey&&(c.current=!0,d.current&&d.current.focus())},n=()=>{const t=g.current;if(null===t)return;if(!e.hasFocus()||!s()||c.current)return void(c.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==u.current&&e.activeElement!==d.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let n=[];if(e.activeElement!==u.current&&e.activeElement!==d.current||(n=a(g.current)),n.length>0){var i,o;const e=Boolean((null==(i=y.current)?void 0:i.shiftKey)&&"Tab"===(null==(o=y.current)?void 0:o.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const i=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(i),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,i,s,l,a]);const v=e=>{null===h.current&&(h.current=e.relatedTarget),f.current=!0};return(0,F.jsxs)(o.Fragment,{children:[(0,F.jsx)("div",{tabIndex:l?0:-1,onFocus:v,ref:u,"data-testid":"sentinelStart"}),o.cloneElement(t,{ref:m,onFocus:e=>{null===h.current&&(h.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),(0,F.jsx)("div",{tabIndex:l?0:-1,onFocus:v,ref:d,"data-testid":"sentinelEnd"})]})}function is(e){return(0,R.Ay)("MuiBackdrop",e)}(0,L.A)("MuiBackdrop",["root","invisible"]);const os=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],as=(0,h.Ay)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>(0,s.A)({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"}))),ss=o.forwardRef((function(e,t){var n,r,i;const o=(0,k.A)({props:e,name:"MuiBackdrop"}),{children:a,className:d,component:h="div",components:p={},componentsProps:f={},invisible:g=!1,open:m,slotProps:y={},slots:v={},TransitionComponent:b=_i,transitionDuration:w}=o,x=(0,l.A)(o,os),A=(0,s.A)({},o,{component:h,invisible:g}),S=(e=>{const{classes:t,invisible:n}=e,r={root:["root",n&&"invisible"]};return(0,u.A)(r,is,t)})(A),C=null!=(n=y.root)?n:f.root;return(0,F.jsx)(b,(0,s.A)({in:m,timeout:w},x,{children:(0,F.jsx)(as,(0,s.A)({"aria-hidden":!0},C,{as:null!=(r=null!=(i=v.root)?i:p.Root)?r:h,className:(0,c.A)(S.root,d,null==C?void 0:C.className),ownerState:(0,s.A)({},A,null==C?void 0:C.ownerState),classes:S,ref:t,children:a}))}))}));function ls(e){return(0,R.Ay)("MuiModal",e)}(0,L.A)("MuiModal",["root","hidden","backdrop"]);const cs=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],us=(0,h.Ay)("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>(0,s.A)({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),ds=(0,h.Ay)(ss,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),hs=o.forwardRef((function(e,t){var n,r,i,a,d,h;const p=(0,k.A)({name:"MuiModal",props:e}),{BackdropComponent:f=ds,BackdropProps:g,className:m,closeAfterTransition:y=!1,children:v,container:b,component:w,components:x={},componentsProps:A={},disableAutoFocus:S=!1,disableEnforceFocus:C=!1,disableEscapeKeyDown:E=!1,disablePortal:_=!1,disableRestoreFocus:T=!1,disableScrollLock:O=!1,hideBackdrop:P=!1,keepMounted:I=!1,onBackdropClick:M,open:L,slotProps:R,slots:j}=p,D=(0,l.A)(p,cs),N=(0,s.A)({},p,{closeAfterTransition:y,disableAutoFocus:S,disableEnforceFocus:C,disableEscapeKeyDown:E,disablePortal:_,disableRestoreFocus:T,disableScrollLock:O,hideBackdrop:P,keepMounted:I}),{getRootProps:z,getBackdropProps:V,getTransitionProps:B,portalRef:$,isTopModal:G,exited:U,hasTransition:W}=Qa((0,s.A)({},N,{rootRef:t})),q=(0,s.A)({},N,{exited:U}),H=(e=>{const{open:t,exited:n,classes:r}=e,i={root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]};return(0,u.A)(i,ls,r)})(q),Y={};if(void 0===v.props.tabIndex&&(Y.tabIndex="-1"),W){const{onEnter:e,onExited:t}=B();Y.onEnter=e,Y.onExited=t}const K=null!=(n=null!=(r=null==j?void 0:j.root)?r:x.Root)?n:us,X=null!=(i=null!=(a=null==j?void 0:j.backdrop)?a:x.Backdrop)?i:f,Z=null!=(d=null==R?void 0:R.root)?d:A.root,J=null!=(h=null==R?void 0:R.backdrop)?h:A.backdrop,Q=(0,bn.Q)({elementType:K,externalSlotProps:Z,externalForwardedProps:D,getSlotProps:z,additionalProps:{ref:t,as:w},ownerState:q,className:(0,c.A)(m,null==Z?void 0:Z.className,null==H?void 0:H.root,!q.open&&q.exited&&(null==H?void 0:H.hidden))}),ee=(0,bn.Q)({elementType:X,externalSlotProps:J,additionalProps:g,getSlotProps:e=>V((0,s.A)({},e,{onClick:t=>{M&&M(t),null!=e&&e.onClick&&e.onClick(t)}})),className:(0,c.A)(null==J?void 0:J.className,null==g?void 0:g.className,null==H?void 0:H.backdrop),ownerState:q});return I||L||W&&!U?(0,F.jsx)(fn,{ref:$,container:b,disablePortal:_,children:(0,F.jsxs)(K,(0,s.A)({},Q,{children:[!P&&f?(0,F.jsx)(X,(0,s.A)({},ee)):null,(0,F.jsx)(rs,{disableEnforceFocus:C,disableAutoFocus:S,disableRestoreFocus:T,isEnabled:G,open:L,children:o.cloneElement(v,Y)})]}))}):null})),ps=hs;var fs=n(44545),gs=n(38579);const ms=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function ys(e,t,n){var r;const i=function(e,t,n){const r=t.getBoundingClientRect(),i=n&&n.getBoundingClientRect(),o=(0,gs.A)(t);let a;if(t.fakeTransform)a=t.fakeTransform;else{const e=o.getComputedStyle(t);a=e.getPropertyValue("-webkit-transform")||e.getPropertyValue("transform")}let s=0,l=0;if(a&&"none"!==a&&"string"==typeof a){const e=a.split("(")[1].split(")")[0].split(",");s=parseInt(e[4],10),l=parseInt(e[5],10)}return"left"===e?i?`translateX(${i.right+s-r.left}px)`:`translateX(${o.innerWidth+s-r.left}px)`:"right"===e?i?`translateX(-${r.right-i.left-s}px)`:`translateX(-${r.left+r.width-s}px)`:"up"===e?i?`translateY(${i.bottom+l-r.top}px)`:`translateY(${o.innerHeight+l-r.top}px)`:i?`translateY(-${r.top-i.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}(e,t,"function"==typeof(r=n)?r():r);i&&(t.style.webkitTransform=i,t.style.transform=i)}const vs=o.forwardRef((function(e,t){const n=(0,I.A)(),r={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},i={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:a,appear:c=!0,children:u,container:d,direction:h="down",easing:p=r,in:f,onEnter:g,onEntered:m,onEntering:y,onExit:v,onExited:b,onExiting:w,style:x,timeout:A=i,TransitionComponent:S=E}=e,C=(0,l.A)(e,ms),_=o.useRef(null),k=(0,M.A)(u.ref,_,t),T=e=>t=>{e&&(void 0===t?e(_.current):e(_.current,t))},L=T(((e,t)=>{ys(h,e,d),O(e),g&&g(e,t)})),R=T(((e,t)=>{const r=P({timeout:A,style:x,easing:p},{mode:"enter"});e.style.webkitTransition=n.transitions.create("-webkit-transform",(0,s.A)({},r)),e.style.transition=n.transitions.create("transform",(0,s.A)({},r)),e.style.webkitTransform="none",e.style.transform="none",y&&y(e,t)})),j=T(m),D=T(w),N=T((e=>{const t=P({timeout:A,style:x,easing:p},{mode:"exit"});e.style.webkitTransition=n.transitions.create("-webkit-transform",t),e.style.transition=n.transitions.create("transform",t),ys(h,e,d),v&&v(e)})),z=T((e=>{e.style.webkitTransition="",e.style.transition="",b&&b(e)})),V=o.useCallback((()=>{_.current&&ys(h,_.current,d)}),[h,d]);return o.useEffect((()=>{if(f||"down"===h||"right"===h)return;const e=(0,fs.A)((()=>{_.current&&ys(h,_.current,d)})),t=(0,gs.A)(_.current);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[h,f,d]),o.useEffect((()=>{f||V()}),[f,V]),(0,F.jsx)(S,(0,s.A)({nodeRef:_,onEnter:L,onEntered:j,onEntering:R,onExit:N,onExited:z,onExiting:D,addEndListener:e=>{a&&a(_.current,e)},appear:c,in:f,timeout:A},C,{children:(e,t)=>o.cloneElement(u,(0,s.A)({ref:k,style:(0,s.A)({visibility:"exited"!==e||f?void 0:"hidden"},x,u.props.style)},t))}))})),bs=vs;function ws(e){return(0,R.Ay)("MuiDrawer",e)}(0,L.A)("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const xs=["BackdropProps"],As=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],Ss=(e,t)=>{const{ownerState:n}=e;return[t.root,("permanent"===n.variant||"persistent"===n.variant)&&t.docked,t.modal]},Cs=(0,h.Ay)(ps,{name:"MuiDrawer",slot:"Root",overridesResolver:Ss})((({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer}))),Es=(0,h.Ay)("div",{shouldForwardProp:Ti.A,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:Ss})({flex:"0 0 auto"}),_s=(0,h.Ay)(G.A,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${(0,Ce.A)(n.anchor)}`],"temporary"!==n.variant&&t[`paperAnchorDocked${(0,Ce.A)(n.anchor)}`]]}})((({theme:e,ownerState:t})=>(0,s.A)({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},"left"===t.anchor&&{left:0},"top"===t.anchor&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},"right"===t.anchor&&{right:0},"bottom"===t.anchor&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},"left"===t.anchor&&"temporary"!==t.variant&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},"top"===t.anchor&&"temporary"!==t.variant&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},"right"===t.anchor&&"temporary"!==t.variant&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},"bottom"===t.anchor&&"temporary"!==t.variant&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`}))),ks={left:"right",right:"left",top:"down",bottom:"up"};const Ts=o.forwardRef((function(e,t){const n=(0,k.A)({props:e,name:"MuiDrawer"}),r=(0,I.A)(),i=(0,ti.I)(),a={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{anchor:d="left",BackdropProps:h,children:p,className:f,elevation:g=16,hideBackdrop:m=!1,ModalProps:{BackdropProps:y}={},onClose:v,open:b=!1,PaperProps:w={},SlideProps:x,TransitionComponent:A=bs,transitionDuration:S=a,variant:C="temporary"}=n,E=(0,l.A)(n.ModalProps,xs),_=(0,l.A)(n,As),T=o.useRef(!1);o.useEffect((()=>{T.current=!0}),[]);const O=function({direction:e},t){return"rtl"===e&&function(e){return-1!==["left","right"].indexOf(e)}(t)?ks[t]:t}({direction:i?"rtl":"ltr"},d),P=d,M=(0,s.A)({},n,{anchor:P,elevation:g,open:b,variant:C},_),L=(e=>{const{classes:t,anchor:n,variant:r}=e,i={root:["root"],docked:[("permanent"===r||"persistent"===r)&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${(0,Ce.A)(n)}`,"temporary"!==r&&`paperAnchorDocked${(0,Ce.A)(n)}`]};return(0,u.A)(i,ws,t)})(M),R=(0,F.jsx)(_s,(0,s.A)({elevation:"temporary"===C?g:0,square:!0},w,{className:(0,c.A)(L.paper,w.className),ownerState:M,children:p}));if("permanent"===C)return(0,F.jsx)(Es,(0,s.A)({className:(0,c.A)(L.root,L.docked,f),ownerState:M,ref:t},_,{children:R}));const j=(0,F.jsx)(A,(0,s.A)({in:b,direction:ks[O],timeout:S,appear:T.current},x,{children:R}));return"persistent"===C?(0,F.jsx)(Es,(0,s.A)({className:(0,c.A)(L.root,L.docked,f),ownerState:M,ref:t},_,{children:j})):(0,F.jsx)(Cs,(0,s.A)({BackdropProps:(0,s.A)({},h,y,{transitionDuration:S}),className:(0,c.A)(L.root,L.modal,f),open:b,ownerState:M,onClose:v,hideBackdrop:m,ref:t},_,E,{children:j}))})),Os=Ts;var Ps=function(e){return{drawer:{width:200,flexShrink:0,whiteSpace:"nowrap"},drawerOpen:{width:200,transition:e.transitions.create("width",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.enteringScreen}),"& $toolbar":{justifyContent:"flex-end"}},drawerClose:{transition:e.transitions.create("width",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),overflowX:"hidden",width:"61px","& $toolbar":{justifyContent:"center"}},toolbar:{display:"flex",alignItems:"center",justifyContent:"center",padding:e.spacing(0,1)}}},Is=n(60854);function Ms(e){var t=e.variant,n=e.status,r=e.className,s=e.style,l=e.children,c=(0,Qr.useTranslation)().t,u=(0,I.A)(),d=Ps(u),h=(0,o.useState)(!1),p=(0,i.A)(h,2),f=p[0],g=p[1];return(0,o.useEffect)((function(){Is.vF.logTraceUseEffect("DRAWER - status",n),void 0!==n&&g(n)}),[n]),(0,F.jsxs)(Os,{variant:t||"permanent",sx:f?d.drawerOpen:d.drawerClose,classes:{paper:r},style:s||void 0,children:[(0,F.jsx)(a.A,{sx:d.toolbar,children:(0,F.jsx)(Ys,{tooltip:c(f?"general.close":"general.open"),tooltipPlacement:"right",onClick:function(){g(!f)},size:"large",children:f?(0,F.jsx)(pl,{}):(0,F.jsx)(fl,{})})}),void 0!==l&&l]})}function Ls(e){var t=e.in,n=e.children;return(0,F.jsx)(_i,{in:t,children:n&&n})}var Rs=n(63496),js=n(25779);const Fs=o.createContext();function Ds(e){return(0,R.Ay)("MuiGrid",e)}const Ns=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],zs=(0,L.A)("MuiGrid",["root","container","item","zeroMinWidth",...[0,1,2,3,4,5,6,7,8,9,10].map((e=>`spacing-xs-${e}`)),...["column-reverse","column","row-reverse","row"].map((e=>`direction-xs-${e}`)),...["nowrap","wrap-reverse","wrap"].map((e=>`wrap-xs-${e}`)),...Ns.map((e=>`grid-xs-${e}`)),...Ns.map((e=>`grid-sm-${e}`)),...Ns.map((e=>`grid-md-${e}`)),...Ns.map((e=>`grid-lg-${e}`)),...Ns.map((e=>`grid-xl-${e}`))]),Vs=zs,Bs=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function $s(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function Gs({breakpoints:e,values:t}){let n="";Object.keys(t).forEach((e=>{""===n&&0!==t[e]&&(n=e)}));const r=Object.keys(e).sort(((t,n)=>e[t]-e[n]));return r.slice(0,r.indexOf(n))}const Us=(0,h.Ay)("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:i,item:o,spacing:a,wrap:s,zeroMinWidth:l,breakpoints:c}=n;let u=[];r&&(u=function(e,t,n={}){if(!e||e<=0)return[];if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e)return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach((t=>{const i=e[t];Number(i)>0&&r.push(n[`spacing-${t}-${String(i)}`])})),r}(a,c,t));const d=[];return c.forEach((e=>{const r=n[e];r&&d.push(t[`grid-${e}-${String(r)}`])})),[t.root,r&&t.container,o&&t.item,l&&t.zeroMinWidth,...u,"row"!==i&&t[`direction-xs-${String(i)}`],"wrap"!==s&&t[`wrap-xs-${String(s)}`],...d]}})((({ownerState:e})=>(0,s.A)({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},"wrap"!==e.wrap&&{flexWrap:e.wrap})),(function({theme:e,ownerState:t}){const n=(0,Rs.kW)({values:t.direction,breakpoints:e.breakpoints.values});return(0,Rs.NI)({theme:e},n,(e=>{const t={flexDirection:e};return 0===e.indexOf("column")&&(t[`& > .${Vs.item}`]={maxWidth:"none"}),t}))}),(function({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let i={};if(n&&0!==r){const t=(0,Rs.kW)({values:r,breakpoints:e.breakpoints.values});let n;"object"==typeof t&&(n=Gs({breakpoints:e.breakpoints.values,values:t})),i=(0,Rs.NI)({theme:e},t,((t,r)=>{var i;const o=e.spacing(t);return"0px"!==o?{marginTop:`-${$s(o)}`,[`& > .${Vs.item}`]:{paddingTop:$s(o)}}:null!=(i=n)&&i.includes(r)?{}:{marginTop:0,[`& > .${Vs.item}`]:{paddingTop:0}}}))}return i}),(function({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let i={};if(n&&0!==r){const t=(0,Rs.kW)({values:r,breakpoints:e.breakpoints.values});let n;"object"==typeof t&&(n=Gs({breakpoints:e.breakpoints.values,values:t})),i=(0,Rs.NI)({theme:e},t,((t,r)=>{var i;const o=e.spacing(t);return"0px"!==o?{width:`calc(100% + ${$s(o)})`,marginLeft:`-${$s(o)}`,[`& > .${Vs.item}`]:{paddingLeft:$s(o)}}:null!=(i=n)&&i.includes(r)?{}:{width:"100%",marginLeft:0,[`& > .${Vs.item}`]:{paddingLeft:0}}}))}return i}),(function({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce(((r,i)=>{let o={};if(t[i]&&(n=t[i]),!n)return r;if(!0===n)o={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===n)o={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const a=(0,Rs.kW)({values:t.columns,breakpoints:e.breakpoints.values}),l="object"==typeof a?a[i]:a;if(null==l)return r;const c=Math.round(n/l*1e8)/1e6+"%";let u={};if(t.container&&t.item&&0!==t.columnSpacing){const n=e.spacing(t.columnSpacing);if("0px"!==n){const e=`calc(${c} + ${$s(n)})`;u={flexBasis:e,maxWidth:e}}}o=(0,s.A)({flexBasis:c,flexGrow:0,maxWidth:c},u)}return 0===e.breakpoints.values[i]?Object.assign(r,o):r[e.breakpoints.up(i)]=o,r}),{})}));const Ws=e=>{const{classes:t,container:n,direction:r,item:i,spacing:o,wrap:a,zeroMinWidth:s,breakpoints:l}=e;let c=[];n&&(c=function(e,t){if(!e||e<=0)return[];if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e)return[`spacing-xs-${String(e)}`];const n=[];return t.forEach((t=>{const r=e[t];if(Number(r)>0){const e=`spacing-${t}-${String(r)}`;n.push(e)}})),n}(o,l));const d=[];l.forEach((t=>{const n=e[t];n&&d.push(`grid-${t}-${String(n)}`)}));const h={root:["root",n&&"container",i&&"item",s&&"zeroMinWidth",...c,"row"!==r&&`direction-xs-${String(r)}`,"wrap"!==a&&`wrap-xs-${String(a)}`,...d]};return(0,u.A)(h,Ds,t)},qs=o.forwardRef((function(e,t){const n=(0,k.A)({props:e,name:"MuiGrid"}),{breakpoints:r}=(0,I.A)(),i=(0,js.A)(n),{className:a,columns:u,columnSpacing:d,component:h="div",container:p=!1,direction:f="row",item:g=!1,rowSpacing:m,spacing:y=0,wrap:v="wrap",zeroMinWidth:b=!1}=i,w=(0,l.A)(i,Bs),x=m||y,A=d||y,S=o.useContext(Fs),C=p?u||12:S,E={},_=(0,s.A)({},w);r.keys.forEach((e=>{null!=w[e]&&(E[e]=w[e],delete _[e])}));const T=(0,s.A)({},i,{columns:C,container:p,direction:f,item:g,rowSpacing:x,columnSpacing:A,wrap:v,zeroMinWidth:b,spacing:y},E,{breakpoints:r.keys}),O=Ws(T);return(0,F.jsx)(Fs.Provider,{value:C,children:(0,F.jsx)(Us,(0,s.A)({ownerState:T,className:(0,c.A)(O.root,a),as:h,ref:t},_))})}));const Hs=qs;function Ys(e){var t=e.sx,n=e.className,r=e.style,i=e.children,o=e.onClick,a=e["aria-label"],s=e.tooltip,l=e.tooltipPlacement,c=e.id,u=e.tabIndex,d=e.iconRef,h=e.size,p=e.disabled,f=e.color,g=(0,Qr.useTranslation)().t;function m(){return(0,F.jsx)(Un,{id:c,sx:t,"aria-label":g(a)||g(s),style:r,className:n,onClick:o,tabIndex:u,size:h,ref:d,disabled:p,color:f,children:i&&i})}return p?m():(0,F.jsx)(Ai,{title:g(s||""),placement:l,TransitionComponent:_i,children:m()})}const Ks=(0,Wn.A)([(0,F.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),(0,F.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime"),Xs=(0,Wn.A)((0,F.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add"),Zs=(0,Wn.A)((0,F.jsx)("path",{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4zm-1-5C6.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"}),"AddCircleOutline"),Js=(0,Wn.A)((0,F.jsx)("path",{d:"M4 8h4V4H4zm6 12h4v-4h-4zm-6 0h4v-4H4zm0-6h4v-4H4zm6 0h4v-4h-4zm6-10v4h4V4zm-6 4h4V4h-4zm6 6h4v-4h-4zm0 6h4v-4h-4z"}),"Apps");var Qs=n(78918);const el=(0,Wn.A)((0,F.jsx)("path",{d:"M17.51 3.87 15.73 2.1 5.84 12l9.9 9.9 1.77-1.77L9.38 12z"}),"ArrowBackIosOutlined");var tl=n(75311),nl=n(13659);const rl=(0,Wn.A)((0,F.jsx)("path",{d:"M6.23 20.23 8 22l10-10L8 2 6.23 3.77 14.46 12z"}),"ArrowForwardIosOutlined"),il=(0,Wn.A)((0,F.jsx)("path",{d:"m14 7-5 5 5 5z"}),"ArrowLeft"),ol=(0,Wn.A)((0,F.jsx)("path",{d:"m10 17 5-5-5-5z"}),"ArrowRight");var al=n(2890);const sl=(0,Wn.A)((0,F.jsx)("path",{d:"M19 6v10.5l1.95 1.95c.03-.15.05-.3.05-.45V6c0-1.1-.9-2-2-2H6.5l2 2zM3.22 3.32 1.95 4.59 3 5.64V18c0 1.1.9 2 2 2h12.36l2.06 2.06 1.27-1.27zM15 18H5V7.64L15.36 18z"}),"BrowserNotSupported"),ll=(0,Wn.A)((0,F.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),cl=(0,Wn.A)((0,F.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-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckCircle"),ul=(0,Wn.A)((0,F.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2m-9 14-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckBox"),dl=(0,Wn.A)((0,F.jsx)("path",{d:"M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"}),"CheckBoxOutlineBlank"),hl=(0,Wn.A)((0,F.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 16H5V5h14zM17.99 9l-1.41-1.42-6.59 6.59-2.58-2.57-1.42 1.41 4 3.99z"}),"CheckBoxOutlined"),pl=(0,Wn.A)((0,F.jsx)("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft"),fl=(0,Wn.A)((0,F.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");var gl=n(60192);const ml=(0,Wn.A)((0,F.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete"),yl=(0,Wn.A)((0,F.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8zm7.5-5-1-1h-5l-1 1H5v2h14V4z"}),"DeleteOutline"),vl=(0,Wn.A)((0,F.jsx)("path",{d:"M12 3 2 21h20zm1 5.92L18.6 19H13zm-2 0V19H5.4z"}),"Details"),bl=(0,Wn.A)((0,F.jsx)("path",{d:"M5 20h14v-2H5zM19 9h-4V3H9v6H5l7 7z"}),"Download"),wl=(0,Wn.A)((0,F.jsx)("path",{d:"M18.32 4.26C16.84 3.05 15.01 2.25 13 2.05v2.02c1.46.18 2.79.76 3.9 1.62zM19.93 11h2.02c-.2-2.01-1-3.84-2.21-5.32L18.31 7.1c.86 1.11 1.44 2.44 1.62 3.9m-1.62 5.9 1.43 1.43c1.21-1.48 2.01-3.32 2.21-5.32h-2.02c-.18 1.45-.76 2.78-1.62 3.89M13 19.93v2.02c2.01-.2 3.84-1 5.32-2.21l-1.43-1.43c-1.1.86-2.43 1.44-3.89 1.62M13 12V7h-2v5H7l5 5 5-5zm-2 7.93v2.02c-5.05-.5-9-4.76-9-9.95s3.95-9.45 9-9.95v2.02C7.05 4.56 4 7.92 4 12s3.05 7.44 7 7.93"}),"Downloading"),xl=(0,Wn.A)((0,F.jsx)("path",{d:"M20 9H4v2h16zM4 15h16v-2H4z"}),"DragHandle"),Al=(0,Wn.A)([(0,F.jsx)("circle",{cx:"12",cy:"4",r:"2"},"0"),(0,F.jsx)("path",{d:"M15.89 8.11C15.5 7.72 14.83 7 13.53 7h-2.54C8.24 6.99 6 4.75 6 2H4c0 3.16 2.11 5.84 5 6.71V22h2v-6h2v6h2V10.05L18.95 14l1.41-1.41z"},"1")],"EmojiPeople"),Sl=(0,Wn.A)((0,F.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"}),"Error"),Cl=(0,Wn.A)((0,F.jsx)("path",{d:"M4 20h16v2H4zM4 2h16v2H4zm9 7h3l-4-4-4 4h3v6H8l4 4 4-4h-3z"}),"Expand"),El=(0,Wn.A)((0,F.jsx)("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess"),_l=(0,Wn.A)((0,F.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),kl=(0,Wn.A)((0,F.jsx)("path",{d:"M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z"}),"FileUpload"),Tl=(0,Wn.A)((0,F.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"),Ol=(0,Wn.A)((0,F.jsx)("path",{d:"M19.79 5.61C20.3 4.95 19.83 4 19 4H6.83l7.97 7.97zM2.81 2.81 1.39 4.22 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-2.17l5.78 5.78 1.41-1.41z"}),"FilterAltOff"),Pl=(0,Wn.A)((0,F.jsx)("path",{d:"M7 14H5v5h5v-2H7zm-2-4h2V7h3V5H5zm12 7h-3v2h5v-5h-2zM14 5v2h3v3h2V5z"}),"Fullscreen"),Il=(0,Wn.A)((0,F.jsx)("path",{d:"M5 16h3v3h2v-5H5zm3-8H5v2h5V5H8zm6 11h2v-3h3v-2h-5zm2-11V5h-2v5h5V8z"}),"FullscreenExit");var Ml=n(98533);const Ll=(0,Wn.A)((0,F.jsx)("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"}),"Group"),Rl=(0,Wn.A)((0,F.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2M8 17.5c-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.5M9.5 8c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5S9.5 9.38 9.5 8m6.5 9.5c-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.5"}),"GroupWork"),jl=(0,Wn.A)([(0,F.jsx)("path",{d:"M12 2C6.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"},"0"),(0,F.jsx)("circle",{cx:"8",cy:"14",r:"2"},"1"),(0,F.jsx)("circle",{cx:"12",cy:"8",r:"2"},"2"),(0,F.jsx)("circle",{cx:"16",cy:"14",r:"2"},"3")],"GroupWorkOutlined"),Fl=(0,Wn.A)((0,F.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 17h-2v-2h2zm2.07-7.75-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25"}),"Help"),Dl=(0,Wn.A)((0,F.jsx)("path",{d:"m6 14 3 3v5h6v-5l3-3V9H6zm2-3h8v2.17l-3 3V20h-2v-3.83l-3-3zm3-9h2v3h-2zM3.502 5.874 4.916 4.46l2.122 2.12-1.414 1.415zm13.458.708 2.123-2.12 1.413 1.416-2.123 2.12z"}),"HighlightOutlined"),Nl=(0,Wn.A)((0,F.jsx)("path",{d:"m6 14 3 3v5h6v-5l3-3V9H6zm5-12h2v3h-2zM3.5 5.88l1.41-1.41 2.12 2.12L5.62 8zm13.46.71 2.12-2.12 1.41 1.41L18.38 8z"}),"Highlight"),zl=(0,Wn.A)((0,F.jsx)("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"}),"Home");var Vl=n(15789);const Bl=(0,Wn.A)((0,F.jsx)("path",{d:"M13 6.99h3L12 3 8 6.99h3v10.02H8L12 21l4-3.99h-3z"}),"Height"),$l=(0,Wn.A)((0,F.jsx)("path",{d:"M9 3 5 6.99h3V14h2V6.99h3zm7 14.01V10h-2v7.01h-3L15 21l4-3.99z"}),"ImportExport"),Gl=(0,Wn.A)((0,F.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"}),"Info");var Ul=n(19512);const Wl=(0,Wn.A)((0,F.jsx)("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown"),ql=(0,Wn.A)((0,F.jsx)("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"}),"KeyboardArrowUp"),Hl=(0,Wn.A)((0,F.jsx)("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6z"}),"KeyboardArrowRight"),Yl=(0,Wn.A)((0,F.jsx)("path",{d:"M15.41 16.59 10.83 12l4.58-4.59L14 6l-6 6 6 6z"}),"KeyboardArrowLeft"),Kl=(0,Wn.A)([(0,F.jsx)("path",{d:"M6 17.59 7.41 19 12 14.42 16.59 19 18 17.59l-6-6z"},"0"),(0,F.jsx)("path",{d:"m6 11 1.41 1.41L12 7.83l4.59 4.58L18 11l-6-6z"},"1")],"KeyboardDoubleArrowUp"),Xl=(0,Wn.A)((0,F.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.27z"}),"Layers"),Zl=(0,Wn.A)((0,F.jsx)("path",{d:"M12 4.53 17.74 9l-1.89 1.47 1.43 1.42L21 9l-9-7-2.59 2.02 1.42 1.42zm9 9.54-1.63-1.27-.67.52 1.43 1.43zM3.41.86 2 2.27l4.22 4.22L3 9l9 7 2.1-1.63 1.42 1.42-3.53 2.75-7.37-5.73L3 14.07l9 7 4.95-3.85L20.73 21l1.41-1.41zM12 13.47 6.26 9l1.39-1.08 5.02 5.02z"}),"LayersClearOutlined");var Jl=n(15470);const Ql=(0,Wn.A)((0,F.jsx)("path",{d:"M19 5v14H5V5zm1.1-2H3.9c-.5 0-.9.4-.9.9v16.2c0 .4.4.9.9.9h16.2c.4 0 .9-.5.9-.9V3.9c0-.5-.5-.9-.9-.9M11 7h6v2h-6zm0 4h6v2h-6zm0 4h6v2h-6zM7 7h2v2H7zm0 4h2v2H7zm0 4h2v2H7z"}),"ListAlt"),ec=(0,Wn.A)((0,F.jsx)("path",{d:"M19 2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h4l3 3 3-3h4c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-6 16h-2v-2h2zm2.07-7.75-.9.92C13.45 11.9 13 12.5 13 14h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25"}),"LiveHelp"),tc=(0,Wn.A)((0,F.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1z"}),"Lock"),nc=(0,Wn.A)((0,F.jsx)("path",{d:"M12 17c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m6-9h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6h1.9c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m0 12H6V10h12z"}),"LockOpen"),rc=(0,Wn.A)((0,F.jsx)("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8m0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4z"}),"Loop"),ic=(0,Wn.A)((0,F.jsx)("path",{d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2m6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1z"}),"Notifications"),oc=(0,Wn.A)((0,F.jsx)("path",{d:"M7.58 4.08 6.15 2.65C3.75 4.48 2.17 7.3 2.03 10.5h2c.15-2.65 1.51-4.97 3.55-6.42m12.39 6.42h2c-.15-3.2-1.73-6.02-4.12-7.85l-1.42 1.43c2.02 1.45 3.39 3.77 3.54 6.42M18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2"}),"NotificationsActive");var ac=n(96898);const sc=(0,Wn.A)((0,F.jsx)("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu"),lc=(0,Wn.A)((0,F.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"),cc=(0,Wn.A)((0,F.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"),uc=(0,Wn.A)((0,F.jsx)("path",{d:"M3.01 10.72c-.14 2.57 1.66 4.73 4.07 5.18l-.79-.79a.9959.9959 0 0 1 0-1.41c.39-.39 1.02-.39 1.41 0l2.59 2.59c.39.39.39 1.02 0 1.41l-2.58 2.6c-.39.39-1.02.39-1.41 0a.9959.9959 0 0 1 0-1.41l.88-.88v-.06c-3.64-.43-6.43-3.65-6.15-7.47C1.29 6.78 4.55 4 8.26 4H10c.55 0 1 .45 1 1s-.45 1-1 1H8.22c-2.7 0-5.07 2.04-5.21 4.72M15 11h5c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-5c-1.1 0-2 .9-2 2v3c0 1.1.9 2 2 2m5-2h-5V6h5zm0 11h-5c-1.1 0-2-.9-2-2v-3c0-1.1.9-2 2-2h5c1.1 0 2 .9 2 2v3c0 1.1-.9 2-2 2"}),"MoveDownRounded"),dc=(0,Wn.A)((0,F.jsx)("path",{d:"M3.01 13.28c-.14-2.57 1.66-4.73 4.07-5.18l-.79.78c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0l2.59-2.59c.39-.39.39-1.02 0-1.41L7.71 3.7a.9959.9959 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41l.88.88v.06C3.54 6.48.75 9.7 1.03 13.52 1.29 17.22 4.55 20 8.26 20H10c.55 0 1-.45 1-1s-.45-1-1-1H8.22c-2.7 0-5.07-2.04-5.21-4.72M13 15v3c0 1.1.9 2 2 2h5c1.1 0 2-.9 2-2v-3c0-1.1-.9-2-2-2h-5c-1.1 0-2 .9-2 2m7 3h-5v-3h5zm0-14h-5c-1.1 0-2 .9-2 2v3c0 1.1.9 2 2 2h5c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2"}),"MoveUpRounded"),hc=(0,Wn.A)((0,F.jsx)("path",{d:"M17.66 8 12 2.35 6.34 8C4.78 9.56 4 11.64 4 13.64s.78 4.11 2.34 5.67 3.61 2.35 5.66 2.35 4.1-.79 5.66-2.35S20 15.64 20 13.64 19.22 9.56 17.66 8M6 14c.01-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 17.99 12 18 14z"}),"Opacity"),pc=(0,Wn.A)((0,F.jsx)("path",{d:"M19 4H5c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h4v-2H5V8h14v10h-4v2h4c1.1 0 2-.9 2-2V6c0-1.1-.89-2-2-2m-7 6-4 4h3v6h2v-6h3z"}),"OpenInBrowser"),fc=(0,Wn.A)((0,F.jsx)("path",{d:"M6 19h4V5H6zm8-14v14h4V5z"}),"Pause"),gc=(0,Wn.A)((0,F.jsx)("path",{d:"M8 5v14l11-7z"}),"PlayArrow");var mc=n(25297),yc=n(27927);const vc=(0,Wn.A)((0,F.jsx)("path",{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5m0-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"RadioButtonChecked"),bc=(0,Wn.A)((0,F.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"RadioButtonUnchecked"),wc=(0,Wn.A)((0,F.jsx)("path",{d:"M19 13H5v-2h14z"}),"Remove"),xc=(0,Wn.A)((0,F.jsx)("path",{d:"M7 11v2h10v-2zm5-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"}),"RemoveCircleOutline"),Ac=(0,Wn.A)((0,F.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"),Sc=(0,Wn.A)((0,F.jsx)("path",{d:"M5 13.18v4L12 21l7-3.82v-4L12 17zM12 3 1 9l11 6 9-4.91V17h2V9z"}),"School"),Cc=(0,Wn.A)((0,F.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"),Ec=(0,Wn.A)((0,F.jsx)("path",{d:"M2.01 21 23 12 2.01 3 2 10l15 2-15 2z"}),"Send");var _c=n(94321);const kc=(0,Wn.A)((0,F.jsx)("path",{d:"M15.5 15.38V8.62L18.88 12zM14 19l7-7-7-7zm-4 0V5l-7 7z"}),"SwitchRight"),Tc=(0,Wn.A)((0,F.jsx)("path",{d:"M8.5 8.62v6.76L5.12 12zM10 5l-7 7 7 7zm4 0v14l7-7z"}),"SwitchLeft");var Oc=n(91693);const Pc=(0,Wn.A)((0,F.jsx)("path",{d:"M20 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h15c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 2v3H5V5zm-5 14h-5v-9h5zM5 10h3v9H5zm12 9v-9h3v9z"}),"TableChartOutlined"),Ic=(0,Wn.A)((0,F.jsx)("path",{d:"M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8"}),"Undo"),Mc=(0,Wn.A)((0,F.jsx)("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm4 18H6V4h7v5h5zM8 15.01l1.41 1.41L11 14.84V19h2v-4.16l1.59 1.59L16 15.01 12.01 11z"}),"UploadFile"),Lc=(0,Wn.A)((0,F.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility"),Rc=(0,Wn.A)((0,F.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"),jc=(0,Wn.A)((0,F.jsx)("path",{d:"M12 6c3.79 0 7.17 2.13 8.82 5.5C19.17 14.87 15.79 17 12 17s-7.17-2.13-8.82-5.5C4.83 8.13 8.21 6 12 6m0-2C7 4 2.73 7.11 1 11.5 2.73 15.89 7 19 12 19s9.27-3.11 11-7.5C21.27 7.11 17 4 12 4m0 5c1.38 0 2.5 1.12 2.5 2.5S13.38 14 12 14s-2.5-1.12-2.5-2.5S10.62 9 12 9m0-2c-2.48 0-4.5 2.02-4.5 4.5S9.52 16 12 16s4.5-2.02 4.5-4.5S14.48 7 12 7"}),"VisibilityOutlined"),Fc=(0,Wn.A)((0,F.jsx)("path",{d:"M12 6c3.79 0 7.17 2.13 8.82 5.5-.59 1.22-1.42 2.27-2.41 3.12l1.41 1.41c1.39-1.23 2.49-2.77 3.18-4.53C21.27 7.11 17 4 12 4c-1.27 0-2.49.2-3.64.57l1.65 1.65C10.66 6.09 11.32 6 12 6m-1.07 1.14L13 9.21c.57.25 1.03.71 1.28 1.28l2.07 2.07c.08-.34.14-.7.14-1.07C16.5 9.01 14.48 7 12 7c-.37 0-.72.05-1.07.14M2.01 3.87l2.68 2.68C3.06 7.83 1.77 9.53 1 11.5 2.73 15.89 7 19 12 19c1.52 0 2.98-.29 4.32-.82l3.42 3.42 1.41-1.41L3.42 2.45zm7.5 7.5 2.61 2.61c-.04.01-.08.02-.12.02-1.38 0-2.5-1.12-2.5-2.5 0-.05.01-.08.01-.13m-3.4-3.4 1.75 1.75c-.23.55-.36 1.15-.36 1.78 0 2.48 2.02 4.5 4.5 4.5.63 0 1.23-.13 1.77-.36l.98.98c-.88.24-1.8.38-2.75.38-3.79 0-7.17-2.13-8.82-5.5.7-1.43 1.72-2.61 2.93-3.53"}),"VisibilityOffOutlined"),Dc=(0,Wn.A)((0,F.jsx)("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}),"Warning"),Nc=(0,Wn.A)((0,F.jsx)("path",{d:"M12 2c3.86 0 7 3.14 7 7 0 5.25-7 13-7 13S5 14.25 5 9c0-3.86 3.14-7 7-7m-1.53 12L17 7.41 15.6 6l-5.13 5.18L8.4 9.09 7 10.5z"}),"WhereToVote"),zc=(0,Wn.A)([(0,F.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"},"0"),(0,F.jsx)("path",{d:"M12 10h-2v2H9v-2H7V9h2V7h1v2h2z"},"1")],"ZoomIn"),Vc=(0,Wn.A)((0,F.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 14M7 9h5v1H7z"}),"ZoomOut");var Bc=n(2681),$c=n(92775),Gc=n(77753),Uc=n(43271),Wc=n(84657),qc=n(22311);const Hc=["ownerState"],Yc=["variants"],Kc=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Xc(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Zc=(0,Wc.A)(),Jc=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function Qc({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function eu(e){return e?(t,n)=>n[e]:null}function tu(e,t){let{ownerState:n}=t,r=(0,l.A)(t,Hc);const i="function"==typeof e?e((0,s.A)({ownerState:n},r)):e;if(Array.isArray(i))return i.flatMap((e=>tu(e,(0,s.A)({ownerState:n},r))));if(i&&"object"==typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let t=(0,l.A)(i,Yc);return e.forEach((e=>{let i=!0;"function"==typeof e.props?i=e.props((0,s.A)({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(i=!1)})),i&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,s.A)({ownerState:n},r,n)):e.style))})),t}return i}const nu=function(e={}){const{themeId:t,defaultTheme:n=Zc,rootShouldForwardProp:r=Xc,slotShouldForwardProp:i=Xc}=e,o=e=>(0,qc.A)((0,s.A)({},e,{theme:Qc((0,s.A)({},e,{defaultTheme:n,themeId:t}))}));return o.__mui_systemSx=!0,(e,a={})=>{(0,Gc.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:c,slot:u,skipVariantsResolver:d,skipSx:h,overridesResolver:p=eu(Jc(u))}=a,f=(0,l.A)(a,Kc),g=void 0!==d?d:u&&"Root"!==u&&"root"!==u||!1,m=h||!1;let y=Xc;"Root"===u||"root"===u?y=r:u?y=i:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(y=void 0);const v=(0,Gc.default)(e,(0,s.A)({shouldForwardProp:y,label:undefined},f)),b=e=>"function"==typeof e&&e.__emotion_real!==e||(0,Uc.Q)(e)?r=>tu(e,(0,s.A)({},r,{theme:Qc({theme:r.theme,defaultTheme:n,themeId:t})})):e,w=(r,...i)=>{let a=b(r);const l=i?i.map(b):[];c&&p&&l.push((e=>{const r=Qc((0,s.A)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[c]||!r.components[c].styleOverrides)return null;const i=r.components[c].styleOverrides,o={};return Object.entries(i).forEach((([t,n])=>{o[t]=tu(n,(0,s.A)({},e,{theme:r}))})),p(e,o)})),c&&!g&&l.push((e=>{var r;const i=Qc((0,s.A)({},e,{defaultTheme:n,themeId:t}));return tu({variants:null==i||null==(r=i.components)||null==(r=r[c])?void 0:r.variants},(0,s.A)({},e,{theme:i}))})),m||l.push(o);const u=l.length-i.length;if(Array.isArray(r)&&u>0){const e=new Array(u).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const d=v(a,...l);return e.muiName&&(d.muiName=e.muiName),d};return v.withConfig&&(w.withConfig=v.withConfig),w}}(),ru=nu,iu=["className","component","disableGutters","fixed","maxWidth","classes"],ou=(0,Wc.A)(),au=ru("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${(0,Bc.A)(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),su=e=>(0,$c.A)({props:e,name:"MuiContainer",defaultTheme:ou});const lu=function(e={}){const{createStyledComponent:t=au,useThemeProps:n=su,componentName:r="MuiContainer"}=e,i=t((({theme:e,ownerState:t})=>(0,s.A)({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}})),(({theme:e,ownerState:t})=>t.fixed&&Object.keys(e.breakpoints.values).reduce(((t,n)=>{const r=n,i=e.breakpoints.values[r];return 0!==i&&(t[e.breakpoints.up(r)]={maxWidth:`${i}${e.breakpoints.unit}`}),t}),{})),(({theme:e,ownerState:t})=>(0,s.A)({},"xs"===t.maxWidth&&{[e.breakpoints.up("xs")]:{maxWidth:Math.max(e.breakpoints.values.xs,444)}},t.maxWidth&&"xs"!==t.maxWidth&&{[e.breakpoints.up(t.maxWidth)]:{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`}}))),a=o.forwardRef((function(e,t){const o=n(e),{className:a,component:d="div",disableGutters:h=!1,fixed:p=!1,maxWidth:f="lg"}=o,g=(0,l.A)(o,iu),m=(0,s.A)({},o,{component:d,disableGutters:h,fixed:p,maxWidth:f}),y=((e,t)=>{const{classes:n,fixed:r,disableGutters:i,maxWidth:o}=e,a={root:["root",o&&`maxWidth${(0,Bc.A)(String(o))}`,r&&"fixed",i&&"disableGutters"]};return(0,u.A)(a,(e=>(0,R.Ay)(t,e)),n)})(m,r);return(0,F.jsx)(i,(0,s.A)({as:d,ownerState:m,className:(0,c.A)(y.root,a),ref:t},g))}));return a}({createStyledComponent:(0,h.Ay)("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${(0,Ce.A)(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>(0,k.A)({props:e,name:"MuiContainer"})}),cu=lu;function uu(e){return(0,R.Ay)("MuiDialog",e)}const du=(0,L.A)("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]);const hu=o.createContext({}),pu=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],fu=(0,h.Ay)(ss,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),gu=(0,h.Ay)(ps,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),mu=(0,h.Ay)("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${(0,Ce.A)(n.scroll)}`]]}})((({ownerState:e})=>(0,s.A)({height:"100%","@media print":{height:"auto"},outline:0},"paper"===e.scroll&&{display:"flex",justifyContent:"center",alignItems:"center"},"body"===e.scroll&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}))),yu=(0,h.Ay)(G.A,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${(0,Ce.A)(n.scroll)}`],t[`paperWidth${(0,Ce.A)(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})((({theme:e,ownerState:t})=>(0,s.A)({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},"paper"===t.scroll&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},"body"===t.scroll&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},"xs"===t.maxWidth&&{maxWidth:"px"===e.breakpoints.unit?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${du.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&"xs"!==t.maxWidth&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${du.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+64)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${du.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}))),vu=o.forwardRef((function(e,t){const n=(0,k.A)({props:e,name:"MuiDialog"}),r=(0,I.A)(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":d,BackdropComponent:h,BackdropProps:p,children:f,className:g,disableEscapeKeyDown:m=!1,fullScreen:y=!1,fullWidth:v=!1,maxWidth:b="sm",onBackdropClick:w,onClick:x,onClose:A,open:S,PaperComponent:C=G.A,PaperProps:E={},scroll:_="paper",TransitionComponent:T=_i,transitionDuration:O=i,TransitionProps:P}=n,M=(0,l.A)(n,pu),L=(0,s.A)({},n,{disableEscapeKeyDown:m,fullScreen:y,fullWidth:v,maxWidth:b,scroll:_}),R=(e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:o}=e,a={root:["root"],container:["container",`scroll${(0,Ce.A)(n)}`],paper:["paper",`paperScroll${(0,Ce.A)(n)}`,`paperWidth${(0,Ce.A)(String(r))}`,i&&"paperFullWidth",o&&"paperFullScreen"]};return(0,u.A)(a,uu,t)})(L),j=o.useRef(),D=(0,ze.A)(d),N=o.useMemo((()=>({titleId:D})),[D]);return(0,F.jsx)(gu,(0,s.A)({className:(0,c.A)(R.root,g),closeAfterTransition:!0,components:{Backdrop:fu},componentsProps:{backdrop:(0,s.A)({transitionDuration:O,as:h},p)},disableEscapeKeyDown:m,onClose:A,open:S,ref:t,onClick:e=>{x&&x(e),j.current&&(j.current=null,w&&w(e),A&&A(e,"backdropClick"))},ownerState:L},M,{children:(0,F.jsx)(T,(0,s.A)({appear:!0,in:S,timeout:O,role:"presentation"},P,{children:(0,F.jsx)(mu,{className:(0,c.A)(R.container),onMouseDown:e=>{j.current=e.target===e.currentTarget},ownerState:L,children:(0,F.jsx)(yu,(0,s.A)({as:C,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":D},E,{className:(0,c.A)(R.paper,E.className),ownerState:L,children:(0,F.jsx)(hu.Provider,{value:N,children:f})}))})}))}))})),bu=vu;function wu(e){return(0,R.Ay)("MuiDialogActions",e)}(0,L.A)("MuiDialogActions",["root","spacing"]);const xu=["className","disableSpacing"],Au=(0,h.Ay)("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})((({ownerState:e})=>(0,s.A)({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}}))),Su=o.forwardRef((function(e,t){const n=(0,k.A)({props:e,name:"MuiDialogActions"}),{className:r,disableSpacing:i=!1}=n,o=(0,l.A)(n,xu),a=(0,s.A)({},n,{disableSpacing:i}),d=(e=>{const{classes:t,disableSpacing:n}=e,r={root:["root",!n&&"spacing"]};return(0,u.A)(r,wu,t)})(a);return(0,F.jsx)(Au,(0,s.A)({className:(0,c.A)(d.root,r),ownerState:a,ref:t},o))}));function Cu(e){return(0,R.Ay)("MuiDialogTitle",e)}const Eu=(0,L.A)("MuiDialogTitle",["root"]),_u=["className","id"],ku=(0,h.Ay)(Fo.A,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),Tu=o.forwardRef((function(e,t){const n=(0,k.A)({props:e,name:"MuiDialogTitle"}),{className:r,id:i}=n,a=(0,l.A)(n,_u),d=n,h=(e=>{const{classes:t}=e;return(0,u.A)({root:["root"]},Cu,t)})(d),{titleId:p=i}=o.useContext(hu);return(0,F.jsx)(ku,(0,s.A)({component:"h2",className:(0,c.A)(h.root,r),ownerState:d,ref:t,variant:"h6",id:null!=i?i:p},a))}));var Ou=n(64987),Pu=n(3820);const Iu=["component","direction","spacing","divider","children","className","useFlexGap"],Mu=(0,Wc.A)(),Lu=ru("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Ru(e){return(0,$c.A)({props:e,name:"MuiStack",defaultTheme:Mu})}function ju(e,t){const n=o.Children.toArray(e).filter(Boolean);return n.reduce(((e,r,i)=>(e.push(r),i{let n=(0,s.A)({display:"flex",flexDirection:"column"},(0,Rs.NI)({theme:t},(0,Rs.kW)({values:e.direction,breakpoints:t.breakpoints.values}),(e=>({flexDirection:e}))));if(e.spacing){const r=(0,Pu.LX)(t),i=Object.keys(t.breakpoints.values).reduce(((t,n)=>(("object"==typeof e.spacing&&null!=e.spacing[n]||"object"==typeof e.direction&&null!=e.direction[n])&&(t[n]=!0),t)),{}),o=(0,Rs.kW)({values:e.direction,base:i}),a=(0,Rs.kW)({values:e.spacing,base:i});"object"==typeof o&&Object.keys(o).forEach(((e,t,n)=>{if(!o[e]){const r=t>0?o[n[t-1]]:"column";o[e]=r}}));const s=(t,n)=>{return e.useFlexGap?{gap:(0,Pu._W)(r,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${i=n?o[n]:e.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[i]}`]:(0,Pu._W)(r,t)}};var i};n=(0,Uc.A)(n,(0,Rs.NI)({theme:t},a,s))}return n=(0,Rs.iZ)(t.breakpoints,n),n};const Du=function(e={}){const{createStyledComponent:t=Lu,useThemeProps:n=Ru,componentName:r="MuiStack"}=e,i=t(Fu),a=o.forwardRef((function(e,t){const o=n(e),a=(0,js.A)(o),{component:d="div",direction:h="column",spacing:p=0,divider:f,children:g,className:m,useFlexGap:y=!1}=a,v=(0,l.A)(a,Iu),b={direction:h,spacing:p,useFlexGap:y},w=(0,u.A)({root:["root"]},(e=>(0,R.Ay)(r,e)),{});return(0,F.jsx)(i,(0,s.A)({as:d,ownerState:b,ref:t,className:(0,c.A)(w.root,m)},v,{children:f?ju(g,f):g}))}));return a}({createStyledComponent:(0,h.Ay)("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>(0,k.A)({props:e,name:"MuiStack"})}),Nu=Du;function zu(e){return(0,R.Ay)("MuiDialogContent",e)}(0,L.A)("MuiDialogContent",["root","dividers"]);const Vu=["className","dividers"],Bu=(0,h.Ay)("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})((({theme:e,ownerState:t})=>(0,s.A)({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${Eu.root} + &`]:{paddingTop:0}}))),$u=o.forwardRef((function(e,t){const n=(0,k.A)({props:e,name:"MuiDialogContent"}),{className:r,dividers:i=!1}=n,o=(0,l.A)(n,Vu),a=(0,s.A)({},n,{dividers:i}),d=(e=>{const{classes:t,dividers:n}=e,r={root:["root",n&&"dividers"]};return(0,u.A)(r,zu,t)})(a);return(0,F.jsx)(Bu,(0,s.A)({className:(0,c.A)(d.root,r),ownerState:a,ref:t},o))}));function Gu(e){return(0,R.Ay)("MuiLoadingButton",e)}const Uu=(0,L.A)("MuiLoadingButton",["root","loading","loadingIndicator","loadingIndicatorCenter","loadingIndicatorStart","loadingIndicatorEnd","endIconLoadingEnd","startIconLoadingStart"]),Wu=["children","disabled","id","loading","loadingIndicator","loadingPosition","variant"],qu=(0,h.Ay)(Ni,{shouldForwardProp:e=>(e=>"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e&&"classes"!==e)(e)||"classes"===e,name:"MuiLoadingButton",slot:"Root",overridesResolver:(e,t)=>[t.root,t.startIconLoadingStart&&{[`& .${Uu.startIconLoadingStart}`]:t.startIconLoadingStart},t.endIconLoadingEnd&&{[`& .${Uu.endIconLoadingEnd}`]:t.endIconLoadingEnd}]})((({ownerState:e,theme:t})=>(0,s.A)({[`& .${Uu.startIconLoadingStart}, & .${Uu.endIconLoadingEnd}`]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},"center"===e.loadingPosition&&{transition:t.transitions.create(["background-color","box-shadow","border-color"],{duration:t.transitions.duration.short}),[`&.${Uu.loading}`]:{color:"transparent"}},"start"===e.loadingPosition&&e.fullWidth&&{[`& .${Uu.startIconLoadingStart}, & .${Uu.endIconLoadingEnd}`]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0,marginRight:-8}},"end"===e.loadingPosition&&e.fullWidth&&{[`& .${Uu.startIconLoadingStart}, & .${Uu.endIconLoadingEnd}`]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0,marginLeft:-8}}))),Hu=(0,h.Ay)("span",{name:"MuiLoadingButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.loadingIndicator,t[`loadingIndicator${(0,Ce.A)(n.loadingPosition)}`]]}})((({theme:e,ownerState:t})=>(0,s.A)({position:"absolute",visibility:"visible",display:"flex"},"start"===t.loadingPosition&&("outlined"===t.variant||"contained"===t.variant)&&{left:"small"===t.size?10:14},"start"===t.loadingPosition&&"text"===t.variant&&{left:6},"center"===t.loadingPosition&&{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled},"end"===t.loadingPosition&&("outlined"===t.variant||"contained"===t.variant)&&{right:"small"===t.size?10:14},"end"===t.loadingPosition&&"text"===t.variant&&{right:6},"start"===t.loadingPosition&&t.fullWidth&&{position:"relative",left:-10},"end"===t.loadingPosition&&t.fullWidth&&{position:"relative",right:-10}))),Yu=o.forwardRef((function(e,t){const n=o.useContext(Ii),r=(0,ki.A)(n,e),i=(0,k.A)({props:r,name:"MuiLoadingButton"}),{children:a,disabled:c=!1,id:d,loading:h=!1,loadingIndicator:p,loadingPosition:f="center",variant:g="text"}=i,m=(0,l.A)(i,Wu),y=(0,ci.A)(d),v=null!=p?p:(0,F.jsx)(Fa,{"aria-labelledby":y,color:"inherit",size:16}),b=(0,s.A)({},i,{disabled:c,loading:h,loadingIndicator:v,loadingPosition:f,variant:g}),w=(e=>{const{loading:t,loadingPosition:n,classes:r}=e,i={root:["root",t&&"loading"],startIcon:[t&&`startIconLoading${(0,Ce.A)(n)}`],endIcon:[t&&`endIconLoading${(0,Ce.A)(n)}`],loadingIndicator:["loadingIndicator",t&&`loadingIndicator${(0,Ce.A)(n)}`]},o=(0,u.A)(i,Gu,r);return(0,s.A)({},r,o)})(b),x=h?(0,F.jsx)(Hu,{className:w.loadingIndicator,ownerState:b,children:v}):null;return(0,F.jsxs)(qu,(0,s.A)({disabled:c||h,id:y,ref:t},m,{variant:g,classes:w,ownerState:b,children:["end"===b.loadingPosition?a:x,"end"===b.loadingPosition?x:a]}))}));var Ku=["children"];function Xu(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 Zu(e){for(var t=1;te;const ld=(0,xa.i7)(td||(td=sd` 0% { left: -35%; right: 100%; @@ -119,7 +119,7 @@ left: 100%; right: -90%; } -`)),Gs=(0,Dr.i7)(Fs||(Fs=Bs` +`)),cd=(0,xa.i7)(nd||(nd=sd` 0% { left: -200%; right: 100%; @@ -134,7 +134,7 @@ left: 107%; right: -8%; } -`)),Us=(0,Dr.i7)(Ds||(Ds=Bs` +`)),ud=(0,xa.i7)(rd||(rd=sd` 0% { opacity: 1; background-position: 0 -23px; @@ -149,22 +149,22 @@ opacity: 1; background-position: -200px -23px; } -`)),Ws=(e,t)=>"inherit"===t?"currentColor":e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:"light"===e.palette.mode?(0,Fe.a)(e.palette[t].main,.62):(0,Fe.e$)(e.palette[t].main,.5),qs=(0,h.Ay)("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${(0,de.A)(n.color)}`],t[n.variant]]}})((({ownerState:e,theme:t})=>(0,s.A)({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:Ws(t,e.color)},"inherit"===e.color&&"buffer"!==e.variant&&{backgroundColor:"none","&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}},"buffer"===e.variant&&{backgroundColor:"transparent"},"query"===e.variant&&{transform:"rotate(180deg)"}))),Hs=(0,h.Ay)("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${(0,de.A)(n.color)}`]]}})((({ownerState:e,theme:t})=>{const n=Ws(t,e.color);return(0,s.A)({position:"absolute",marginTop:0,height:"100%",width:"100%"},"inherit"===e.color&&{opacity:.3},{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`,backgroundSize:"10px 10px",backgroundPosition:"0 -23px"})}),(0,Dr.AH)(Ns||(Ns=Bs` +`)),dd=(e,t)=>"inherit"===t?"currentColor":e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:"light"===e.palette.mode?(0,Ke.a)(e.palette[t].main,.62):(0,Ke.e$)(e.palette[t].main,.5),hd=(0,h.Ay)("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${(0,Ce.A)(n.color)}`],t[n.variant]]}})((({ownerState:e,theme:t})=>(0,s.A)({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:dd(t,e.color)},"inherit"===e.color&&"buffer"!==e.variant&&{backgroundColor:"none","&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}},"buffer"===e.variant&&{backgroundColor:"transparent"},"query"===e.variant&&{transform:"rotate(180deg)"}))),pd=(0,h.Ay)("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${(0,Ce.A)(n.color)}`]]}})((({ownerState:e,theme:t})=>{const n=dd(t,e.color);return(0,s.A)({position:"absolute",marginTop:0,height:"100%",width:"100%"},"inherit"===e.color&&{opacity:.3},{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`,backgroundSize:"10px 10px",backgroundPosition:"0 -23px"})}),(0,xa.AH)(id||(id=sd` animation: ${0} 3s infinite linear; - `),Us)),Ys=(0,h.Ay)("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${(0,de.A)(n.color)}`],("indeterminate"===n.variant||"query"===n.variant)&&t.bar1Indeterminate,"determinate"===n.variant&&t.bar1Determinate,"buffer"===n.variant&&t.bar1Buffer]}})((({ownerState:e,theme:t})=>(0,s.A)({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",backgroundColor:"inherit"===e.color?"currentColor":(t.vars||t).palette[e.color].main},"determinate"===e.variant&&{transition:"transform .4s linear"},"buffer"===e.variant&&{zIndex:1,transition:"transform .4s linear"})),(({ownerState:e})=>("indeterminate"===e.variant||"query"===e.variant)&&(0,Dr.AH)(zs||(zs=Bs` + `),ud)),fd=(0,h.Ay)("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${(0,Ce.A)(n.color)}`],("indeterminate"===n.variant||"query"===n.variant)&&t.bar1Indeterminate,"determinate"===n.variant&&t.bar1Determinate,"buffer"===n.variant&&t.bar1Buffer]}})((({ownerState:e,theme:t})=>(0,s.A)({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",backgroundColor:"inherit"===e.color?"currentColor":(t.vars||t).palette[e.color].main},"determinate"===e.variant&&{transition:"transform .4s linear"},"buffer"===e.variant&&{zIndex:1,transition:"transform .4s linear"})),(({ownerState:e})=>("indeterminate"===e.variant||"query"===e.variant)&&(0,xa.AH)(od||(od=sd` width: auto; animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; - `),$s))),Ks=(0,h.Ay)("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${(0,de.A)(n.color)}`],("indeterminate"===n.variant||"query"===n.variant)&&t.bar2Indeterminate,"buffer"===n.variant&&t.bar2Buffer]}})((({ownerState:e,theme:t})=>(0,s.A)({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},"buffer"!==e.variant&&{backgroundColor:"inherit"===e.color?"currentColor":(t.vars||t).palette[e.color].main},"inherit"===e.color&&{opacity:.3},"buffer"===e.variant&&{backgroundColor:Ws(t,e.color),transition:"transform .4s linear"})),(({ownerState:e})=>("indeterminate"===e.variant||"query"===e.variant)&&(0,Dr.AH)(Vs||(Vs=Bs` + `),ld))),gd=(0,h.Ay)("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${(0,Ce.A)(n.color)}`],("indeterminate"===n.variant||"query"===n.variant)&&t.bar2Indeterminate,"buffer"===n.variant&&t.bar2Buffer]}})((({ownerState:e,theme:t})=>(0,s.A)({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},"buffer"!==e.variant&&{backgroundColor:"inherit"===e.color?"currentColor":(t.vars||t).palette[e.color].main},"inherit"===e.color&&{opacity:.3},"buffer"===e.variant&&{backgroundColor:dd(t,e.color),transition:"transform .4s linear"})),(({ownerState:e})=>("indeterminate"===e.variant||"query"===e.variant)&&(0,xa.AH)(ad||(ad=sd` width: auto; animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite; - `),Gs))),Xs=o.forwardRef((function(e,t){const n=(0,g.A)({props:e,name:"MuiLinearProgress"}),{className:r,color:i="primary",value:o,valueBuffer:a,variant:d="indeterminate"}=n,h=(0,l.A)(n,Rs),p=(0,s.A)({},n,{color:i,variant:d}),f=(e=>{const{classes:t,variant:n,color:r}=e,i={root:["root",`color${(0,de.A)(r)}`,n],dashed:["dashed",`dashedColor${(0,de.A)(r)}`],bar1:["bar",`barColor${(0,de.A)(r)}`,("indeterminate"===n||"query"===n)&&"bar1Indeterminate","determinate"===n&&"bar1Determinate","buffer"===n&&"bar1Buffer"],bar2:["bar","buffer"!==n&&`barColor${(0,de.A)(r)}`,"buffer"===n&&`color${(0,de.A)(r)}`,("indeterminate"===n||"query"===n)&&"bar2Indeterminate","buffer"===n&&"bar2Buffer"]};return(0,u.A)(i,Ls,t)})(p),m=(0,qt.I)(),y={},v={bar1:{},bar2:{}};if("determinate"===d||"buffer"===d)if(void 0!==o){y["aria-valuenow"]=Math.round(o),y["aria-valuemin"]=0,y["aria-valuemax"]=100;let e=o-100;m&&(e=-e),v.bar1.transform=`translateX(${e}%)`}else 0;if("buffer"===d)if(void 0!==a){let e=(a||0)-100;m&&(e=-e),v.bar2.transform=`translateX(${e}%)`}else 0;return(0,S.jsxs)(qs,(0,s.A)({className:(0,c.A)(f.root,r),ownerState:p,role:"progressbar"},y,{ref:t},h,{children:["buffer"===d?(0,S.jsx)(Hs,{className:f.dashed,ownerState:p}):null,(0,S.jsx)(Ys,{className:f.bar1,ownerState:p,style:v.bar1}),"determinate"===d?null:(0,S.jsx)(Ks,{className:f.bar2,ownerState:p,style:v.bar2})]}))})),Zs=Xs;function Js(e){var t=e.className,n=void 0===t?"":t,r=e.variant,i=void 0===r?"indeterminate":r,o=e.value,a=void 0===o?0:o;return(0,S.jsx)(Zs,{variant:i,value:a,className:n})}var Qs=n(57029),el=n(15444);const tl=["className"],nl=(0,h.Ay)("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>(0,s.A)({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),rl=o.forwardRef((function(e,t){const n=(0,g.A)({props:e,name:"MuiListItemIcon"}),{className:r}=n,i=(0,l.A)(n,tl),a=o.useContext(mn.A),d=(0,s.A)({},n,{alignItems:a.alignItems}),h=(e=>{const{alignItems:t,classes:n}=e,r={root:["root","flex-start"===t&&"alignItemsFlexStart"]};return(0,u.A)(r,bn,n)})(d);return(0,S.jsx)(nl,(0,s.A)({className:(0,c.A)(h.root,r),ownerState:d,ref:t},i))}));var il=function(e){var t;return{list:{padding:0},typography:{padding:0},listItem:{height:"28px",padding:0,color:e.palette.secondary.contrastText,"&:hover":{backgroundColor:"#dddddd",color:null===(t=e.palette.geoViewColor)||void 0===t?void 0:t.primary.dark}},listItemIcon:{minWidth:"0px"},boxcontent:{padding:0}}};function ol(e){var t=e.listItems,n=e.checkedValues,s=e.multiselect,l=e.onChecked,c=(0,v.A)(),u=il(c),d=(0,o.useState)(n),h=(0,i.A)(d,2),p=h[0],f=h[1];return(0,o.useEffect)((function(){Ci.vF.logTraceUseEffect("CHECKBOX-LIST - checkedValues",n),n&&f(n)}),[n]),(0,S.jsx)(Qs.A,{sx:u.list,children:t.map((function(e,t){var n="checkbox-list-label-".concat(t);return(0,S.jsxs)(el.Ay,{sx:u.listItem,title:e.display,dense:!0,onClick:function(){return function(e){var t;if(s){var n=p.indexOf(e);t=(0,r.A)(p),-1===n?t.push(e):t.splice(n,1)}else t=[e];f(t),null==l||l(e,t.indexOf(e)>=0,t)}(e.value)},children:[(0,S.jsx)(rl,{sx:u.listItemIcon,children:(0,S.jsx)(Rr,{edge:"start",checked:p.includes(e.value),tabIndex:-1,disableRipple:!0,inputProps:{"aria-labelledby":n},"aria-hidden":"true"})}),(0,S.jsx)(Jn.A,{sx:u.typography,variant:"body2",noWrap:!0,component:"ul",children:e.display}),(0,S.jsx)(a.A,{sx:u.boxcontent,className:"Checkbox-content-root",onClick:function(e){return function(e){e.stopPropagation()}(e)},children:e.contentRight})]},e.value)}))})}function al(e){var t=e.children,n=e.className,r=e.style,i=e.timeout,o=e.unmountOnExit,a=e.in;return(0,S.jsx)(O,{className:n||"",style:r||void 0,in:a,timeout:i,unmountOnExit:o,children:void 0!==t&&t})}ol.defaultProps={onChecked:null};var sl=n(15517);const ll=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],cl=(0,h.Ay)(H.A,{shouldForwardProp:e=>(0,gn.A)(e)||"classes"===e,name:"MuiListItemButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>(0,s.A)({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${sl.A.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,Fe.X4)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${sl.A.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,Fe.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${sl.A.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,Fe.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,Fe.X4)(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${sl.A.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${sl.A.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},"flex-start"===t.alignItems&&{alignItems:"flex-start"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.dense&&{paddingTop:4,paddingBottom:4}))),ul=o.forwardRef((function(e,t){const n=(0,g.A)({props:e,name:"MuiListItemButton"}),{alignItems:r="center",autoFocus:i=!1,component:a="div",children:d,dense:h=!1,disableGutters:p=!1,divider:f=!1,focusVisibleClassName:m,selected:y=!1,className:v}=n,x=(0,l.A)(n,ll),w=o.useContext(mn.A),A=o.useMemo((()=>({dense:h||w.dense||!1,alignItems:r,disableGutters:p})),[r,w.dense,h,p]),C=o.useRef(null);(0,yn.A)((()=>{i&&C.current&&C.current.focus()}),[i]);const E=(0,s.A)({},n,{alignItems:r,dense:A.dense,disableGutters:p,divider:f,selected:y}),_=(e=>{const{alignItems:t,classes:n,dense:r,disabled:i,disableGutters:o,divider:a,selected:l}=e,c={root:["root",r&&"dense",!o&&"gutters",a&&"divider",i&&"disabled","flex-start"===t&&"alignItemsFlexStart",l&&"selected"]},d=(0,u.A)(c,sl.Y,n);return(0,s.A)({},n,d)})(E),k=(0,b.A)(C,t);return(0,S.jsx)(mn.A.Provider,{value:A,children:(0,S.jsx)(cl,(0,s.A)({ref:k,href:x.href||x.to,component:(x.href||x.to)&&"div"===a?"button":a,focusVisibleClassName:(0,c.A)(_.focusVisible,m),ownerState:E,className:(0,c.A)(_.root,v)},x,{classes:_,children:d}))})})),dl=ul;function hl(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 pl(e){for(var t=1;t{const{ownerState:n}=e;return[{[`& .${An.primary}`]:t.primary},{[`& .${An.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})((({ownerState:e})=>(0,s.A)({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56}))),vl=o.forwardRef((function(e,t){const n=(0,g.A)({props:e,name:"MuiListItemText"}),{children:r,className:i,disableTypography:a=!1,inset:d=!1,primary:h,primaryTypographyProps:p,secondary:f,secondaryTypographyProps:m}=n,y=(0,l.A)(n,ml),{dense:v}=o.useContext(mn.A);let b=null!=h?h:r,x=f;const w=(0,s.A)({},n,{disableTypography:a,inset:d,primary:!!b,secondary:!!x,dense:v}),A=(e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:o}=e,a={root:["root",n&&"inset",o&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]};return(0,u.A)(a,wn,t)})(w);return null==b||b.type===Jn.A||a||(b=(0,S.jsx)(Jn.A,(0,s.A)({variant:v?"body2":"body1",className:A.primary,component:null!=p&&p.variant?void 0:"span",display:"block"},p,{children:b}))),null==x||x.type===Jn.A||a||(x=(0,S.jsx)(Jn.A,(0,s.A)({variant:"body2",className:A.secondary,color:"text.secondary",display:"block"},m,{children:x}))),(0,S.jsxs)(yl,(0,s.A)({className:(0,c.A)(A.root,i),ownerState:w,ref:t},y,{children:[b,x]}))}));function bl(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 xl(e){for(var t=1;t<+~=|^:(),"'`\s])/g,hc="undefined"!=typeof CSS&&CSS.escape,pc=function(e){return hc?hc(e):e.replace(dc,"\\$1")},fc=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var r=n.sheet,i=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:i&&(this.renderer=new i)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var i=t;n&&!1===n.process||(i=this.options.jss.plugins.onChangeValue(t,e,this));var o=null==i||!1===i,a=e in this.style;if(o&&!a&&!r)return this;var s=o&&a;if(s?delete this.style[e]:this.style[e]=i,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,i),this;var l=this.options.sheet;return l&&l.attached,this},e}(),gc=function(e){function t(t,n,r){var i;i=e.call(this,t,n,r)||this;var o=r.selector,a=r.scoped,s=r.sheet,l=r.generateId;return o?i.selectorText=o:!1!==a&&(i.id=l((0,nc.A)((0,nc.A)(i)),s),i.selectorText="."+pc(i.id)),i}(0,tc.A)(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!=typeof n?e[t]=n:Array.isArray(n)&&(e[t]=sc(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?(0,s.A)({},e,{allowEmpty:!0}):e;return uc(this.selectorText,this.style,n)},(0,zl.A)(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;if(n&&t)t.setSelector(n,e)||t.replaceRule(n,this)}},get:function(){return this.selectorText}}]),t}(fc),mc={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new gc(e,t,n)}},yc={indent:1,children:!0},vc=/@([\w-]+)/,bc=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var r=e.match(vc);for(var i in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new Gc((0,s.A)({},n,{parent:this})),t)this.rules.add(i,t[i]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.toString=function(e){void 0===e&&(e=yc);var t=lc(e).linebreak;if(null==e.indent&&(e.indent=yc.indent),null==e.children&&(e.children=yc.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),xc=/@container|@media|@supports\s+/,wc={onCreateRule:function(e,t,n){return xc.test(e)?new bc(e,t,n):null}},Ac={indent:1,children:!0},Sc=/@keyframes\s+([\w-]+)/,Cc=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var r=e.match(Sc);r&&r[1]?this.name=r[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var i=n.scoped,o=n.sheet,a=n.generateId;for(var l in this.id=!1===i?this.name:pc(a(this,o)),this.rules=new Gc((0,s.A)({},n,{parent:this})),t)this.rules.add(l,t[l],(0,s.A)({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=Ac);var t=lc(e).linebreak;if(null==e.indent&&(e.indent=Ac.indent),null==e.children&&(e.children=Ac.children),!1===e.children)return this.at+" "+this.id+" {}";var n=this.rules.toString(e);return n&&(n=""+t+n+t),this.at+" "+this.id+" {"+n+"}"},e}(),Ec=/@keyframes\s+/,_c=/\$([\w-]+)/g,kc=function(e,t){return"string"==typeof e?e.replace(_c,(function(e,n){return n in t?t[n]:e})):e},Tc=function(e,t,n){var r=e[t],i=kc(r,n);i!==r&&(e[t]=i)},Oc={onCreateRule:function(e,t,n){return"string"==typeof e&&Ec.test(e)?new Cc(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&Tc(e,"animation-name",n.keyframes),"animation"in e&&Tc(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return kc(e,r.keyframes);default:return e}}},Pc=function(e){function t(){return e.apply(this,arguments)||this}return(0,tc.A)(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?(0,s.A)({},e,{allowEmpty:!0}):e;return uc(this.key,this.style,n)},t}(fc),Ic={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new Pc(e,t,n):null}},Mc=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){var t=lc(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r=this.index)t.push(e);else for(var r=0;rn)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=(0,l.A)(t,["attached"]),i=lc(r).linebreak,o="",a=0;a-1?r.substr(0,i-1):r;e.style.setProperty(t,o,i>-1?"important":"")}}catch(e){return!1}return!0},tu=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},nu=function(e,t){return e.selectorText=t,e.selectorText===t},ru=Jc((function(){return document.querySelector("head")}));function iu(e){var t=Hc.registry;if(t.length>0){var n=function(e,t){for(var n=0;nt.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"==typeof r){var i=function(e){for(var t=ru(),n=0;nn?n:t},lu=function(){function e(e){this.getPropertyValue=Qc,this.setProperty=eu,this.removeProperty=tu,this.setSelector=nu,this.hasInsertedRules=!1,this.cssRules=[],e&&Hc.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,i=t.element;this.element=i||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var o=ou();o&&this.element.setAttribute("nonce",o)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=iu(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"==typeof n.nodeType){var i=n,o=i.parentNode;o&&o.insertBefore(e,i.nextSibling)}else ru().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n{const{classes:t,variant:n,color:r}=e,i={root:["root",`color${(0,Ce.A)(r)}`,n],dashed:["dashed",`dashedColor${(0,Ce.A)(r)}`],bar1:["bar",`barColor${(0,Ce.A)(r)}`,("indeterminate"===n||"query"===n)&&"bar1Indeterminate","determinate"===n&&"bar1Determinate","buffer"===n&&"bar1Buffer"],bar2:["bar","buffer"!==n&&`barColor${(0,Ce.A)(r)}`,"buffer"===n&&`color${(0,Ce.A)(r)}`,("indeterminate"===n||"query"===n)&&"bar2Indeterminate","buffer"===n&&"bar2Buffer"]};return(0,u.A)(i,Qu,t)})(p),g=(0,ti.I)(),m={},y={bar1:{},bar2:{}};if("determinate"===d||"buffer"===d)if(void 0!==o){m["aria-valuenow"]=Math.round(o),m["aria-valuemin"]=0,m["aria-valuemax"]=100;let e=o-100;g&&(e=-e),y.bar1.transform=`translateX(${e}%)`}else 0;if("buffer"===d)if(void 0!==a){let e=(a||0)-100;g&&(e=-e),y.bar2.transform=`translateX(${e}%)`}else 0;return(0,F.jsxs)(hd,(0,s.A)({className:(0,c.A)(f.root,r),ownerState:p,role:"progressbar"},m,{ref:t},h,{children:["buffer"===d?(0,F.jsx)(pd,{className:f.dashed,ownerState:p}):null,(0,F.jsx)(fd,{className:f.bar1,ownerState:p,style:y.bar1}),"determinate"===d?null:(0,F.jsx)(gd,{className:f.bar2,ownerState:p,style:y.bar2})]}))})),yd=md;function vd(e){var t=e.className,n=void 0===t?"":t,r=e.variant,i=void 0===r?"indeterminate":r,o=e.value,a=void 0===o?0:o;return(0,F.jsx)(yd,{variant:i,value:a,className:n})}var bd=n(2665),wd=n(75361);function xd(e){return(0,R.Ay)("MuiListItem",e)}const Ad=(0,L.A)("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);function Sd(e){return(0,R.Ay)("MuiListItemButton",e)}const Cd=(0,L.A)("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function Ed(e){return(0,R.Ay)("MuiListItemSecondaryAction",e)}(0,L.A)("MuiListItemSecondaryAction",["root","disableGutters"]);const _d=["className"],kd=(0,h.Ay)("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})((({ownerState:e})=>(0,s.A)({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0}))),Td=o.forwardRef((function(e,t){const n=(0,k.A)({props:e,name:"MuiListItemSecondaryAction"}),{className:r}=n,i=(0,l.A)(n,_d),a=o.useContext($i),d=(0,s.A)({},n,{disableGutters:a.disableGutters}),h=(e=>{const{disableGutters:t,classes:n}=e,r={root:["root",t&&"disableGutters"]};return(0,u.A)(r,Ed,n)})(d);return(0,F.jsx)(kd,(0,s.A)({className:(0,c.A)(h.root,r),ownerState:d,ref:t},i))}));Td.muiName="ListItemSecondaryAction";const Od=Td,Pd=["className"],Id=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],Md=(0,h.Ay)("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]}})((({theme:e,ownerState:t})=>(0,s.A)({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&(0,s.A)({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${Cd.root}`]:{paddingRight:48}},{[`&.${Ad.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ad.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,Ke.X4)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Ad.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,Ke.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Ad.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},"flex-start"===t.alignItems&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Ad.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,Ke.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,Ke.X4)(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48}))),Ld=(0,h.Ay)("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Rd=o.forwardRef((function(e,t){const n=(0,k.A)({props:e,name:"MuiListItem"}),{alignItems:r="center",autoFocus:i=!1,button:a=!1,children:d,className:h,component:p,components:f={},componentsProps:g={},ContainerComponent:m="li",ContainerProps:{className:y}={},dense:v=!1,disabled:b=!1,disableGutters:w=!1,disablePadding:x=!1,divider:A=!1,focusVisibleClassName:S,secondaryAction:C,selected:E=!1,slotProps:_={},slots:T={}}=n,O=(0,l.A)(n.ContainerProps,Pd),P=(0,l.A)(n,Id),I=o.useContext($i),L=o.useMemo((()=>({dense:v||I.dense||!1,alignItems:r,disableGutters:w})),[r,I.dense,v,w]),R=o.useRef(null);(0,Ki.A)((()=>{i&&R.current&&R.current.focus()}),[i]);const j=o.Children.toArray(d),D=j.length&&(0,wd.A)(j[j.length-1],["ListItemSecondaryAction"]),N=(0,s.A)({},n,{alignItems:r,autoFocus:i,button:a,dense:L.dense,disabled:b,disableGutters:w,disablePadding:x,divider:A,hasSecondaryAction:D,selected:E}),z=(e=>{const{alignItems:t,button:n,classes:r,dense:i,disabled:o,disableGutters:a,disablePadding:s,divider:l,hasSecondaryAction:c,selected:d}=e,h={root:["root",i&&"dense",!a&&"gutters",!s&&"padding",l&&"divider",o&&"disabled",n&&"button","flex-start"===t&&"alignItemsFlexStart",c&&"secondaryAction",d&&"selected"],container:["container"]};return(0,u.A)(h,xd,r)})(N),V=(0,M.A)(R,t),B=T.root||f.Root||Md,$=_.root||g.root||{},G=(0,s.A)({className:(0,c.A)(z.root,$.className,h),disabled:b},P);let U=p||"li";return a&&(G.component=p||"div",G.focusVisibleClassName=(0,c.A)(Ad.focusVisible,S),U=ae.A),D?(U=G.component||p?U:"div","li"===m&&("li"===U?U="div":"li"===G.component&&(G.component="div")),(0,F.jsx)($i.Provider,{value:L,children:(0,F.jsxs)(Ld,(0,s.A)({as:m,className:(0,c.A)(z.container,y),ref:V,ownerState:N},O,{children:[(0,F.jsx)(B,(0,s.A)({},$,!(0,bd.g)(B)&&{as:U,ownerState:(0,s.A)({},N,$.ownerState)},G,{children:j})),j.pop()]}))})):(0,F.jsx)($i.Provider,{value:L,children:(0,F.jsxs)(B,(0,s.A)({},$,{as:U,ref:V},!(0,bd.g)(B)&&{ownerState:(0,s.A)({},N,$.ownerState)},G,{children:[j,C&&(0,F.jsx)(Od,{children:C})]}))})})),jd=Rd,Fd=["className"],Dd=(0,h.Ay)("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>(0,s.A)({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),Nd=o.forwardRef((function(e,t){const n=(0,k.A)({props:e,name:"MuiListItemIcon"}),{className:r}=n,i=(0,l.A)(n,Fd),a=o.useContext($i),d=(0,s.A)({},n,{alignItems:a.alignItems}),h=(e=>{const{alignItems:t,classes:n}=e,r={root:["root","flex-start"===t&&"alignItemsFlexStart"]};return(0,u.A)(r,io,n)})(d);return(0,F.jsx)(Dd,(0,s.A)({className:(0,c.A)(h.root,r),ownerState:d,ref:t},i))}));var zd=function(e){var t;return{list:{padding:0},typography:{padding:0},listItem:{height:"28px",padding:0,color:e.palette.secondary.contrastText,"&:hover":{backgroundColor:"#dddddd",color:null===(t=e.palette.geoViewColor)||void 0===t?void 0:t.primary.dark}},listItemIcon:{minWidth:"0px"},boxcontent:{padding:0}}};function Vd(e){var t=e.listItems,n=e.checkedValues,s=e.multiselect,l=e.onChecked,c=(0,I.A)(),u=zd(c),d=(0,o.useState)(n),h=(0,i.A)(d,2),p=h[0],f=h[1];return(0,o.useEffect)((function(){Is.vF.logTraceUseEffect("CHECKBOX-LIST - checkedValues",n),n&&f(n)}),[n]),(0,F.jsx)(qi,{sx:u.list,children:t.map((function(e,t){var n="checkbox-list-label-".concat(t);return(0,F.jsxs)(jd,{sx:u.listItem,title:e.display,dense:!0,onClick:function(){return function(e){var t;if(s){var n=p.indexOf(e);t=(0,r.A)(p),-1===n?t.push(e):t.splice(n,1)}else t=[e];f(t),null==l||l(e,t.indexOf(e)>=0,t)}(e.value)},children:[(0,F.jsx)(Nd,{sx:u.listItemIcon,children:(0,F.jsx)(va,{edge:"start",checked:p.includes(e.value),tabIndex:-1,disableRipple:!0,inputProps:{"aria-labelledby":n},"aria-hidden":"true"})}),(0,F.jsx)(Fo.A,{sx:u.typography,variant:"body2",noWrap:!0,component:"ul",children:e.display}),(0,F.jsx)(a.A,{sx:u.boxcontent,className:"Checkbox-content-root",onClick:function(e){return function(e){e.stopPropagation()}(e)},children:e.contentRight})]},e.value)}))})}function Bd(e){var t=e.children,n=e.className,r=e.style,i=e.timeout,o=e.unmountOnExit,a=e.in;return(0,F.jsx)($,{className:n||"",style:r||void 0,in:a,timeout:i,unmountOnExit:o,children:void 0!==t&&t})}Vd.defaultProps={onChecked:null};const $d=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],Gd=(0,h.Ay)(ae.A,{shouldForwardProp:e=>(0,Ti.A)(e)||"classes"===e,name:"MuiListItemButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>(0,s.A)({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Cd.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,Ke.X4)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Cd.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,Ke.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Cd.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,Ke.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,Ke.X4)(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Cd.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Cd.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},"flex-start"===t.alignItems&&{alignItems:"flex-start"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.dense&&{paddingTop:4,paddingBottom:4}))),Ud=o.forwardRef((function(e,t){const n=(0,k.A)({props:e,name:"MuiListItemButton"}),{alignItems:r="center",autoFocus:i=!1,component:a="div",children:d,dense:h=!1,disableGutters:p=!1,divider:f=!1,focusVisibleClassName:g,selected:m=!1,className:y}=n,v=(0,l.A)(n,$d),b=o.useContext($i),w=o.useMemo((()=>({dense:h||b.dense||!1,alignItems:r,disableGutters:p})),[r,b.dense,h,p]),x=o.useRef(null);(0,Ki.A)((()=>{i&&x.current&&x.current.focus()}),[i]);const A=(0,s.A)({},n,{alignItems:r,dense:w.dense,disableGutters:p,divider:f,selected:m}),S=(e=>{const{alignItems:t,classes:n,dense:r,disabled:i,disableGutters:o,divider:a,selected:l}=e,c={root:["root",r&&"dense",!o&&"gutters",a&&"divider",i&&"disabled","flex-start"===t&&"alignItemsFlexStart",l&&"selected"]},d=(0,u.A)(c,Sd,n);return(0,s.A)({},n,d)})(A),C=(0,M.A)(x,t);return(0,F.jsx)($i.Provider,{value:w,children:(0,F.jsx)(Gd,(0,s.A)({ref:C,href:v.href||v.to,component:(v.href||v.to)&&"div"===a?"button":a,focusVisibleClassName:(0,c.A)(S.focusVisible,g),ownerState:A,className:(0,c.A)(S.root,y)},v,{classes:S,children:d}))})})),Wd=Ud;function qd(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 Hd(e){for(var t=1;t{const{ownerState:n}=e;return[{[`& .${so.primary}`]:t.primary},{[`& .${so.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})((({ownerState:e})=>(0,s.A)({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56}))),Jd=o.forwardRef((function(e,t){const n=(0,k.A)({props:e,name:"MuiListItemText"}),{children:r,className:i,disableTypography:a=!1,inset:d=!1,primary:h,primaryTypographyProps:p,secondary:f,secondaryTypographyProps:g}=n,m=(0,l.A)(n,Xd),{dense:y}=o.useContext($i);let v=null!=h?h:r,b=f;const w=(0,s.A)({},n,{disableTypography:a,inset:d,primary:!!v,secondary:!!b,dense:y}),x=(e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:o}=e,a={root:["root",n&&"inset",o&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]};return(0,u.A)(a,ao,t)})(w);return null==v||v.type===Fo.A||a||(v=(0,F.jsx)(Fo.A,(0,s.A)({variant:y?"body2":"body1",className:x.primary,component:null!=p&&p.variant?void 0:"span",display:"block"},p,{children:v}))),null==b||b.type===Fo.A||a||(b=(0,F.jsx)(Fo.A,(0,s.A)({variant:"body2",className:x.secondary,color:"text.secondary",display:"block"},g,{children:b}))),(0,F.jsxs)(Zd,(0,s.A)({className:(0,c.A)(x.root,i),ownerState:w,ref:t},m,{children:[v,b]}))}));function Qd(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 eh(e){for(var t=1;t"number"==typeof e?`${e}px`:e)).join(" ")}function xh(e){return"function"==typeof e?e():e}const Ah=(0,h.Ay)(ps,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Sh=(0,h.Ay)(G.A,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Ch=o.forwardRef((function(e,t){var n,r,i;const a=(0,k.A)({props:e,name:"MuiPopover"}),{action:d,anchorEl:h,anchorOrigin:p={vertical:"top",horizontal:"left"},anchorPosition:f,anchorReference:g="anchorEl",children:m,className:y,container:v,elevation:b=8,marginThreshold:w=16,open:x,PaperProps:A={},slots:S,slotProps:C,transformOrigin:E={vertical:"top",horizontal:"left"},TransitionComponent:_=si,transitionDuration:T="auto",TransitionProps:{onEntering:O}={},disableScrollLock:P=!1}=a,I=(0,l.A)(a.TransitionProps,gh),L=(0,l.A)(a,mh),R=null!=(n=null==C?void 0:C.paper)?n:A,j=o.useRef(),D=(0,M.A)(j,R.ref),N=(0,s.A)({},a,{anchorOrigin:p,anchorReference:g,elevation:b,marginThreshold:w,externalPaperSlotProps:R,transformOrigin:E,TransitionComponent:_,transitionDuration:T,TransitionProps:I}),z=(e=>{const{classes:t}=e;return(0,u.A)({root:["root"],paper:["paper"]},fh,t)})(N),V=o.useCallback((()=>{if("anchorPosition"===g)return f;const e=xh(h),t=(e&&1===e.nodeType?e:(0,Bi.A)(j.current).body).getBoundingClientRect();return{top:t.top+vh(t,p.vertical),left:t.left+bh(t,p.horizontal)}}),[h,p.horizontal,p.vertical,f,g]),B=o.useCallback((e=>({vertical:vh(e,E.vertical),horizontal:bh(e,E.horizontal)})),[E.horizontal,E.vertical]),$=o.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=B(t);if("none"===g)return{top:null,left:null,transformOrigin:wh(n)};const r=V();let i=r.top-n.vertical,o=r.left-n.horizontal;const a=i+t.height,s=o+t.width,l=(0,gs.A)(xh(h)),c=l.innerHeight-w,u=l.innerWidth-w;if(null!==w&&ic){const e=a-c;i-=e,n.vertical+=e}if(null!==w&&ou){const e=s-u;o-=e,n.horizontal+=e}return{top:`${Math.round(i)}px`,left:`${Math.round(o)}px`,transformOrigin:wh(n)}}),[h,g,V,B,w]),[G,U]=o.useState(x),W=o.useCallback((()=>{const e=j.current;if(!e)return;const t=$(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,U(!0)}),[$]);o.useEffect((()=>(P&&window.addEventListener("scroll",W),()=>window.removeEventListener("scroll",W))),[h,P,W]);o.useEffect((()=>{x&&W()})),o.useImperativeHandle(d,(()=>x?{updatePosition:()=>{W()}}:null),[x,W]),o.useEffect((()=>{if(!x)return;const e=(0,fs.A)((()=>{W()})),t=(0,gs.A)(h);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[h,x,W]);let q=T;"auto"!==T||_.muiSupportAuto||(q=void 0);const H=v||(h?(0,Bi.A)(xh(h)).body:void 0),Y=null!=(r=null==S?void 0:S.root)?r:Ah,K=null!=(i=null==S?void 0:S.paper)?i:Sh,X=(0,bn.Q)({elementType:K,externalSlotProps:(0,s.A)({},R,{style:G?R.style:(0,s.A)({},R.style,{opacity:0})}),additionalProps:{elevation:b,ref:D},ownerState:N,className:(0,c.A)(z.paper,null==R?void 0:R.className)}),Z=(0,bn.Q)({elementType:Y,externalSlotProps:(null==C?void 0:C.root)||{},externalForwardedProps:L,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:H,open:x},ownerState:N,className:(0,c.A)(z.root,y)}),{slotProps:J}=Z,Q=(0,l.A)(Z,yh);return(0,F.jsx)(Y,(0,s.A)({},Q,!(0,bd.g)(Y)&&{slotProps:J,disableScrollLock:P},{children:(0,F.jsx)(_,(0,s.A)({appear:!0,in:x,onEntering:(e,t)=>{O&&O(e,t),W()},onExited:()=>{U(!1)},timeout:q},I,{children:(0,F.jsx)(K,(0,s.A)({},X,{children:m}))}))}))})),Eh=Ch;function _h(e){return(0,R.Ay)("MuiMenu",e)}(0,L.A)("MuiMenu",["root","paper","list"]);const kh=["onEntering"],Th=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Oh={vertical:"top",horizontal:"right"},Ph={vertical:"top",horizontal:"left"},Ih=(0,h.Ay)(Eh,{shouldForwardProp:e=>(0,Ti.A)(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Mh=(0,h.Ay)(Sh,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Lh=(0,h.Ay)(no,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Rh=o.forwardRef((function(e,t){var n,r;const i=(0,k.A)({props:e,name:"MuiMenu"}),{autoFocus:a=!0,children:d,className:h,disableAutoFocusItem:p=!1,MenuListProps:f={},onClose:g,open:m,PaperProps:y={},PopoverClasses:v,transitionDuration:b="auto",TransitionProps:{onEntering:w}={},variant:x="selectedMenu",slots:A={},slotProps:S={}}=i,C=(0,l.A)(i.TransitionProps,kh),E=(0,l.A)(i,Th),_=(0,ti.I)(),T=(0,s.A)({},i,{autoFocus:a,disableAutoFocusItem:p,MenuListProps:f,onEntering:w,PaperProps:y,transitionDuration:b,TransitionProps:C,variant:x}),O=(e=>{const{classes:t}=e;return(0,u.A)({root:["root"],paper:["paper"],list:["list"]},_h,t)})(T),P=a&&!p&&m,I=o.useRef(null);let M=-1;o.Children.map(d,((e,t)=>{o.isValidElement(e)&&(e.props.disabled||("selectedMenu"===x&&e.props.selected||-1===M)&&(M=t))}));const L=null!=(n=A.paper)?n:Mh,R=null!=(r=S.paper)?r:y,j=(0,bn.Q)({elementType:A.root,externalSlotProps:S.root,ownerState:T,className:[O.root,h]}),D=(0,bn.Q)({elementType:L,externalSlotProps:R,ownerState:T,className:O.paper});return(0,F.jsx)(Ih,(0,s.A)({onClose:g,anchorOrigin:{vertical:"bottom",horizontal:_?"right":"left"},transformOrigin:_?Oh:Ph,slots:{paper:L,root:A.root},slotProps:{root:j,paper:D},open:m,ref:t,transitionDuration:b,TransitionProps:(0,s.A)({onEntering:(e,t)=>{I.current&&I.current.adjustStyleForScrollbar(e,{direction:_?"rtl":"ltr"}),w&&w(e,t)}},C),ownerState:T},E,{classes:v,children:(0,F.jsx)(Lh,(0,s.A)({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),g&&g(e,"tabKeyDown"))},actions:I,autoFocus:a&&(-1===M||p),autoFocusItem:P,variant:x},f,{className:(0,c.A)(O.list,f.className),children:d}))}))})),jh=Rh;function Fh(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 Dh(e){for(var t=1;t<+~=|^:(),"'`\s])/g,hp="undefined"!=typeof CSS&&CSS.escape,pp=function(e){return hp?hp(e):e.replace(dp,"\\$1")},fp=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var r=n.sheet,i=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:i&&(this.renderer=new i)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var i=t;n&&!1===n.process||(i=this.options.jss.plugins.onChangeValue(t,e,this));var o=null==i||!1===i,a=e in this.style;if(o&&!a&&!r)return this;var s=o&&a;if(s?delete this.style[e]:this.style[e]=i,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,i),this;var l=this.options.sheet;return l&&l.attached,this},e}(),gp=function(e){function t(t,n,r){var i;i=e.call(this,t,n,r)||this;var o=r.selector,a=r.scoped,s=r.sheet,l=r.generateId;return o?i.selectorText=o:!1!==a&&(i.id=l((0,np.A)((0,np.A)(i)),s),i.selectorText="."+pp(i.id)),i}(0,p.A)(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!=typeof n?e[t]=n:Array.isArray(n)&&(e[t]=sp(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?(0,s.A)({},e,{allowEmpty:!0}):e;return up(this.selectorText,this.style,n)},(0,Vh.A)(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;if(n&&t)t.setSelector(n,e)||t.replaceRule(n,this)}},get:function(){return this.selectorText}}]),t}(fp),mp={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new gp(e,t,n)}},yp={indent:1,children:!0},vp=/@([\w-]+)/,bp=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var r=e.match(vp);for(var i in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new Gp((0,s.A)({},n,{parent:this})),t)this.rules.add(i,t[i]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.toString=function(e){void 0===e&&(e=yp);var t=lp(e).linebreak;if(null==e.indent&&(e.indent=yp.indent),null==e.children&&(e.children=yp.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),wp=/@container|@media|@supports\s+/,xp={onCreateRule:function(e,t,n){return wp.test(e)?new bp(e,t,n):null}},Ap={indent:1,children:!0},Sp=/@keyframes\s+([\w-]+)/,Cp=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var r=e.match(Sp);r&&r[1]?this.name=r[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var i=n.scoped,o=n.sheet,a=n.generateId;for(var l in this.id=!1===i?this.name:pp(a(this,o)),this.rules=new Gp((0,s.A)({},n,{parent:this})),t)this.rules.add(l,t[l],(0,s.A)({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=Ap);var t=lp(e).linebreak;if(null==e.indent&&(e.indent=Ap.indent),null==e.children&&(e.children=Ap.children),!1===e.children)return this.at+" "+this.id+" {}";var n=this.rules.toString(e);return n&&(n=""+t+n+t),this.at+" "+this.id+" {"+n+"}"},e}(),Ep=/@keyframes\s+/,_p=/\$([\w-]+)/g,kp=function(e,t){return"string"==typeof e?e.replace(_p,(function(e,n){return n in t?t[n]:e})):e},Tp=function(e,t,n){var r=e[t],i=kp(r,n);i!==r&&(e[t]=i)},Op={onCreateRule:function(e,t,n){return"string"==typeof e&&Ep.test(e)?new Cp(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&Tp(e,"animation-name",n.keyframes),"animation"in e&&Tp(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return kp(e,r.keyframes);default:return e}}},Pp=function(e){function t(){return e.apply(this,arguments)||this}return(0,p.A)(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?(0,s.A)({},e,{allowEmpty:!0}):e;return up(this.key,this.style,n)},t}(fp),Ip={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new Pp(e,t,n):null}},Mp=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){var t=lp(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r=this.index)t.push(e);else for(var r=0;rn)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=(0,l.A)(t,["attached"]),i=lp(r).linebreak,o="",a=0;a-1?r.substr(0,i-1):r;e.style.setProperty(t,o,i>-1?"important":"")}}catch(e){return!1}return!0},tf=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},nf=function(e,t){return e.selectorText=t,e.selectorText===t},rf=Jp((function(){return document.querySelector("head")}));function of(e){var t=Hp.registry;if(t.length>0){var n=function(e,t){for(var n=0;nt.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"==typeof r){var i=function(e){for(var t=rf(),n=0;nn?n:t},cf=function(){function e(e){this.getPropertyValue=Qp,this.setProperty=ef,this.removeProperty=tf,this.setSelector=nf,this.hasInsertedRules=!1,this.cssRules=[],e&&Hp.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,i=t.element;this.element=i||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var o=af();o&&this.element.setAttribute("nonce",o)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=of(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"==typeof n.nodeType){var i=n,o=i.parentNode;o&&o.insertBefore(e,i.nextSibling)}else rf().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n{n[e]&&(i[e]=`${t[e]} ${n[e]}`)})),i}const gu={set:(e,t,n,r)=>{let i=e.get(t);i||(i=new Map,e.set(t,i)),i.set(n,r)},get:(e,t,n)=>{const r=e.get(t);return r?r.get(n):void 0},delete:(e,t,n)=>{e.get(t).delete(n)}},mu=gu;var yu=n(35403);function vu(){var e;const t=(0,yu.A)();return null!=(e=null==t?void 0:t.$$material)?e:t}var bu=n(5050);const xu=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];var wu=Date.now(),Au="fnValues"+wu,Su="fnStyle"+ ++wu;const Cu=function(){return{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var r=oc(e,{},n);return r[Su]=t,r},onProcessStyle:function(e,t){if(Au in t||Su in t)return e;var n={};for(var r in e){var i=e[r];"function"==typeof i&&(delete e[r],n[r]=i)}return t[Au]=n,e},onUpdate:function(e,t,n,r){var i=t,o=i[Su];o&&(i.style=o(e)||{});var a=i[Au];if(a)for(var s in a)i.prop(s,a[s](e),r)}}};var Eu="@global",_u="@global ",ku=function(){function e(e,t,n){for(var r in this.type="global",this.at=Eu,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new Gc((0,s.A)({},n,{parent:this})),t)this.rules.add(r,t[r]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),Tu=function(){function e(e,t,n){this.type="global",this.at=Eu,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(8);this.rule=n.jss.createRule(r,t,(0,s.A)({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Ou=/\s*,\s*/g;function Pu(e,t){for(var n=e.split(Ou),r="",i=0;i-1){var i=_d[e];if(!Array.isArray(i))return id.js+ud(i)in t&&id.css+i;if(!r)return!1;for(var o=0;ot?1:-1:e.length-t.length};return{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var r={},i=Object.keys(t).sort(e),o=0;o(o+=1,o);return(e,o)=>{const s=o.options.name;if(s&&0===s.indexOf("Mui")&&!o.options.link&&!t){if(-1!==xu.indexOf(e.key))return`Mui-${e.key}`;const t=`${i}${s}-${e.key}`;return o.options.theme[bu.A]&&""===r?`${t}-${a()}`:t}return`${i}${n}${a()}`}}(),Hd={disableGeneration:!1,generateClassName:qd,jss:Wd,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},Yd=o.createContext(Hd);let Kd=-1e9;const Xd=["variant"];function Zd(e){return 0===e.length}function Jd(e){const t="function"==typeof e;return{create:(n,r)=>{let i;try{i=t?e(n):e}catch(e){throw e}if(!r||!n.components||!n.components[r]||!n.components[r].styleOverrides&&!n.components[r].variants)return i;const o=n.components[r].styleOverrides||{},a=n.components[r].variants||[],c=(0,s.A)({},i);return Object.keys(o).forEach((e=>{c[e]=(0,Na.A)(c[e]||{},o[e])})),a.forEach((e=>{const t=function(e){const{variant:t}=e,n=(0,l.A)(e,Xd);let r=t||"";return Object.keys(n).sort().forEach((t=>{r+="color"===t?Zd(r)?e[t]:(0,ja.A)(e[t]):`${Zd(r)?t:(0,ja.A)(t)}${(0,ja.A)(e[t].toString())}`})),r}(e.props);c[t]=(0,Na.A)(c[t]||{},e.style)})),c},options:{}}}const Qd={},eh=["name","classNamePrefix","Component","defaultTheme"];function th({state:e,theme:t,stylesOptions:n,stylesCreator:r,name:i},o){if(n.disableGeneration)return;let a=mu.get(n.sheetsManager,r,t);a||(a={refs:0,staticSheet:null,dynamicStyles:null},mu.set(n.sheetsManager,r,t,a));const l=(0,s.A)({},r.options,n,{theme:t,flip:"boolean"==typeof n.flip?n.flip:"rtl"===t.direction});l.generateId=l.serverGenerateClassName||l.generateClassName;const c=n.sheetsRegistry;if(0===a.refs){let e;n.sheetsCache&&(e=mu.get(n.sheetsCache,r,t));const o=r.create(t,i);e||(e=n.jss.createStyleSheet(o,(0,s.A)({link:!1},l)),e.attach(),n.sheetsCache&&mu.set(n.sheetsCache,r,t,e)),c&&c.add(e),a.staticSheet=e,a.dynamicStyles=pu(o)}if(a.dynamicStyles){const t=n.jss.createStyleSheet(a.dynamicStyles,(0,s.A)({link:!0},l));t.update(o),t.attach(),e.dynamicSheet=t,e.classes=fu({baseClasses:a.staticSheet.classes,newClasses:t.classes}),c&&c.add(t)}else e.classes=a.staticSheet.classes;a.refs+=1}function nh(e,t={}){const{name:n,classNamePrefix:r,Component:i,defaultTheme:a=Qd}=t,c=(0,l.A)(t,eh),u=Jd(e),d=n||r||"makeStyles";u.options={index:(Kd+=1,Kd),name:n,meta:d,classNamePrefix:d};return(e={})=>{const t=vu()||a,r=(0,s.A)({},o.useContext(Yd),c),l=o.useRef(),d=o.useRef();!function(e,t){const n=o.useRef([]);let r;const i=o.useMemo((()=>({})),t);n.current!==i&&(n.current=i,r=e()),o.useEffect((()=>()=>{r&&r()}),[i])}((()=>{const i={name:n,state:{},stylesCreator:u,stylesOptions:r,theme:t};return th(i,e),d.current=!1,l.current=i,()=>{!function({state:e,theme:t,stylesOptions:n,stylesCreator:r}){if(n.disableGeneration)return;const i=mu.get(n.sheetsManager,r,t);i.refs-=1;const o=n.sheetsRegistry;0===i.refs&&(mu.delete(n.sheetsManager,r,t),n.jss.removeStyleSheet(i.staticSheet),o&&o.remove(i.staticSheet)),e.dynamicSheet&&(n.jss.removeStyleSheet(e.dynamicSheet),o&&o.remove(e.dynamicSheet))}(i)}}),[t,u]),o.useEffect((()=>{d.current&&function({state:e},t){e.dynamicSheet&&e.dynamicSheet.update(t)}(l.current,e),d.current=!0}));const h=function({state:e,stylesOptions:t},n,r){if(t.disableGeneration)return n||{};e.cacheClasses||(e.cacheClasses={value:null,lastProp:null,lastJSS:{}});let i=!1;return e.classes!==e.cacheClasses.lastJSS&&(e.cacheClasses.lastJSS=e.classes,i=!0),n!==e.cacheClasses.lastProp&&(e.cacheClasses.lastProp=n,i=!0),i&&(e.cacheClasses.value=fu({baseClasses:e.cacheClasses.lastJSS,newClasses:n,Component:r})),e.cacheClasses.value}(l.current,e.classes,i);return h}}const rh=["defaultTheme","withTheme","name"],ih=["classes"],oh=(e,t={})=>n=>{const{defaultTheme:r,withTheme:i=!1,name:a}=t,c=(0,l.A)(t,rh);let u=a;const d=nh(e,(0,s.A)({defaultTheme:r,Component:n,name:a||n.displayName,classNamePrefix:u},c)),h=o.forwardRef((function(e,t){const o=(0,l.A)(e,ih),c=d((0,s.A)({},n.defaultProps,e));let u,h=o;return("string"==typeof a||i)&&(u=vu()||r,a&&(h=function(e){const{theme:t,name:n,props:r}=e;if(!(t&&t.components&&t.components[n]&&t.components[n].defaultProps))return r;const i=(0,s.A)({},r),o=t.components[n].defaultProps;let a;for(a in o)void 0===i[a]&&(i[a]=o[a]);return i}({theme:u,name:a,props:o})),i&&!h.theme&&(h.theme=u)),(0,S.jsx)(n,(0,s.A)({ref:t,classes:c},h))}));return Jl()(h,n),h};var ah=n(43975),sh=function(e){var t;return{dialog:{position:"absolute","& ~ & > div[class*='backdrop']":{backgroundColor:"transparent"},"& .MuiPaper-root":{width:450}},backdrop:{position:"absolute",background:null===(t=e.palette)||void 0===t?void 0:t.backdrop},content:{padding:e.spacing(5,0),whiteSpace:"pre-line"},modalTitleContainer:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"5px 10px"},modalTitleLabel:{display:"flex",justifyContent:"flex-start"},modalTitleActions:{display:"flex",justifyContent:"flex-end"},headerActionsContainer:{display:"flex",padding:"5px 10px","& > *:not(:last-child)":{marginRight:e.spacing(3)}},closedModal:{display:"none"},createdAction:{width:"30%",alignSelf:"flex-end","& > * ":{textAlign:"center"}}}};function lh(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 ch(e){for(var t=1;t=1?(0,S.jsx)(a.A,{sx:k.headerActionsContainer,children:null===(u=t.header)||void 0===u?void 0:u.actions.map((function(e){return"string"==typeof e.content?(0,S.jsx)(o.Fragment,{children:(0,S.jsx)(ah.S,{extraOptions:{id:e.actionId},htmlContent:e.content})},e.actionId):(0,S.jsx)(o.Fragment,{children:e.content},e.actionId)}))}):null,(0,S.jsx)(Bi,{id:"".concat(r,"-close-button"),tooltip:E("close"),tooltipPlacement:"right",onClick:t.close,className:y.headerActionsContainer,children:(0,S.jsx)(lo.A,{})})]})]}),(0,S.jsx)(ws.A,{children:(0,S.jsx)(a.A,{component:"div",id:b,className:"".concat(k.content," ").concat(x&&x),style:w,children:"string"==typeof t.content?(0,S.jsx)(ah.S,{htmlContent:t.content}):t.content})}),null!==(p=t.footer)&&void 0!==p&&p.actions&&(null===(g=t.footer)||void 0===g?void 0:g.actions.length)>=1?(0,S.jsx)(os.A,{children:(null===(m=t.footer)||void 0===m?void 0:m.actions.map((function(e){return"string"==typeof e.content?(0,S.jsx)(o.Fragment,{children:(0,S.jsx)(ah.S,{extraOptions:{id:e.actionId},htmlContent:e.content})},e.actionId):(0,S.jsx)(o.Fragment,{children:e.content},e.actionId)})))||null}):null]})})),(0,S.jsx)(n,{}))||(0,S.jsxs)(is.A,{open:h,sx:k.dialog,className:"".concat(c&&c),style:ch(ch({},u),{},{position:"absolute"}),"aria-labelledby":A,"aria-describedby":C,fullScreen:f,container:d,children:[(0,S.jsx)(us,{id:l,children:s}),(0,S.jsx)(ws.A,{className:m,style:y,children:(0,S.jsx)("div",{id:b,className:"".concat(k.content," ").concat(x&&x),style:w,children:g})}),(0,S.jsx)(os.A,{children:p})]})}function dh(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 hh(e){var t=we(),n=(0,ye.CS)(P.A);return(0,S.jsx)(n,function(e){for(var t=1;te;const Zh=(0,Dr.i7)(qh||(qh=Xh` + */hf();function gf(e={}){const{baseClasses:t,newClasses:n,Component:r}=e;if(!n)return t;const i=(0,s.A)({},t);return Object.keys(n).forEach((e=>{n[e]&&(i[e]=`${t[e]} ${n[e]}`)})),i}const mf={set:(e,t,n,r)=>{let i=e.get(t);i||(i=new Map,e.set(t,i)),i.set(n,r)},get:(e,t,n)=>{const r=e.get(t);return r?r.get(n):void 0},delete:(e,t,n)=>{e.get(t).delete(n)}},yf=mf;var vf=n(35403);function bf(){var e;const t=(0,vf.A)();return null!=(e=null==t?void 0:t.$$material)?e:t}var wf=n(5050);const xf=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];var Af=Date.now(),Sf="fnValues"+Af,Cf="fnStyle"+ ++Af;const Ef=function(){return{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var r=op(e,{},n);return r[Cf]=t,r},onProcessStyle:function(e,t){if(Sf in t||Cf in t)return e;var n={};for(var r in e){var i=e[r];"function"==typeof i&&(delete e[r],n[r]=i)}return t[Sf]=n,e},onUpdate:function(e,t,n,r){var i=t,o=i[Cf];o&&(i.style=o(e)||{});var a=i[Sf];if(a)for(var s in a)i.prop(s,a[s](e),r)}}};var _f="@global",kf="@global ",Tf=function(){function e(e,t,n){for(var r in this.type="global",this.at=_f,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new Gp((0,s.A)({},n,{parent:this})),t)this.rules.add(r,t[r]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),Of=function(){function e(e,t,n){this.type="global",this.at=_f,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(8);this.rule=n.jss.createRule(r,t,(0,s.A)({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Pf=/\s*,\s*/g;function If(e,t){for(var n=e.split(Pf),r="",i=0;i-1){var i=kg[e];if(!Array.isArray(i))return og.js+dg(i)in t&&og.css+i;if(!r)return!1;for(var o=0;ot?1:-1:e.length-t.length};return{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var r={},i=Object.keys(t).sort(e),o=0;o(o+=1,o);return(e,o)=>{const s=o.options.name;if(s&&0===s.indexOf("Mui")&&!o.options.link&&!t){if(-1!==xf.indexOf(e.key))return`Mui-${e.key}`;const t=`${i}${s}-${e.key}`;return o.options.theme[wf.A]&&""===r?`${t}-${a()}`:t}return`${i}${n}${a()}`}}(),Yg={disableGeneration:!1,generateClassName:Hg,jss:qg,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},Kg=o.createContext(Yg);let Xg=-1e9;const Zg=["variant"];function Jg(e){return 0===e.length}function Qg(e){const t="function"==typeof e;return{create:(n,r)=>{let i;try{i=t?e(n):e}catch(e){throw e}if(!r||!n.components||!n.components[r]||!n.components[r].styleOverrides&&!n.components[r].variants)return i;const o=n.components[r].styleOverrides||{},a=n.components[r].variants||[],c=(0,s.A)({},i);return Object.keys(o).forEach((e=>{c[e]=(0,Uc.A)(c[e]||{},o[e])})),a.forEach((e=>{const t=function(e){const{variant:t}=e,n=(0,l.A)(e,Zg);let r=t||"";return Object.keys(n).sort().forEach((t=>{r+="color"===t?Jg(r)?e[t]:(0,Bc.A)(e[t]):`${Jg(r)?t:(0,Bc.A)(t)}${(0,Bc.A)(e[t].toString())}`})),r}(e.props);c[t]=(0,Uc.A)(c[t]||{},e.style)})),c},options:{}}}const em={},tm=["name","classNamePrefix","Component","defaultTheme"];function nm({state:e,theme:t,stylesOptions:n,stylesCreator:r,name:i},o){if(n.disableGeneration)return;let a=yf.get(n.sheetsManager,r,t);a||(a={refs:0,staticSheet:null,dynamicStyles:null},yf.set(n.sheetsManager,r,t,a));const l=(0,s.A)({},r.options,n,{theme:t,flip:"boolean"==typeof n.flip?n.flip:"rtl"===t.direction});l.generateId=l.serverGenerateClassName||l.generateClassName;const c=n.sheetsRegistry;if(0===a.refs){let e;n.sheetsCache&&(e=yf.get(n.sheetsCache,r,t));const o=r.create(t,i);e||(e=n.jss.createStyleSheet(o,(0,s.A)({link:!1},l)),e.attach(),n.sheetsCache&&yf.set(n.sheetsCache,r,t,e)),c&&c.add(e),a.staticSheet=e,a.dynamicStyles=ff(o)}if(a.dynamicStyles){const t=n.jss.createStyleSheet(a.dynamicStyles,(0,s.A)({link:!0},l));t.update(o),t.attach(),e.dynamicSheet=t,e.classes=gf({baseClasses:a.staticSheet.classes,newClasses:t.classes}),c&&c.add(t)}else e.classes=a.staticSheet.classes;a.refs+=1}function rm(e,t={}){const{name:n,classNamePrefix:r,Component:i,defaultTheme:a=em}=t,c=(0,l.A)(t,tm),u=Qg(e),d=n||r||"makeStyles";u.options={index:(Xg+=1,Xg),name:n,meta:d,classNamePrefix:d};return(e={})=>{const t=bf()||a,r=(0,s.A)({},o.useContext(Kg),c),l=o.useRef(),d=o.useRef();!function(e,t){const n=o.useRef([]);let r;const i=o.useMemo((()=>({})),t);n.current!==i&&(n.current=i,r=e()),o.useEffect((()=>()=>{r&&r()}),[i])}((()=>{const i={name:n,state:{},stylesCreator:u,stylesOptions:r,theme:t};return nm(i,e),d.current=!1,l.current=i,()=>{!function({state:e,theme:t,stylesOptions:n,stylesCreator:r}){if(n.disableGeneration)return;const i=yf.get(n.sheetsManager,r,t);i.refs-=1;const o=n.sheetsRegistry;0===i.refs&&(yf.delete(n.sheetsManager,r,t),n.jss.removeStyleSheet(i.staticSheet),o&&o.remove(i.staticSheet)),e.dynamicSheet&&(n.jss.removeStyleSheet(e.dynamicSheet),o&&o.remove(e.dynamicSheet))}(i)}}),[t,u]),o.useEffect((()=>{d.current&&function({state:e},t){e.dynamicSheet&&e.dynamicSheet.update(t)}(l.current,e),d.current=!0}));const h=function({state:e,stylesOptions:t},n,r){if(t.disableGeneration)return n||{};e.cacheClasses||(e.cacheClasses={value:null,lastProp:null,lastJSS:{}});let i=!1;return e.classes!==e.cacheClasses.lastJSS&&(e.cacheClasses.lastJSS=e.classes,i=!0),n!==e.cacheClasses.lastProp&&(e.cacheClasses.lastProp=n,i=!0),i&&(e.cacheClasses.value=gf({baseClasses:e.cacheClasses.lastJSS,newClasses:n,Component:r})),e.cacheClasses.value}(l.current,e.classes,i);return h}}const im=["defaultTheme","withTheme","name"],om=["classes"],am=(e,t={})=>n=>{const{defaultTheme:r,withTheme:i=!1,name:a}=t,c=(0,l.A)(t,im);let u=a;const d=rm(e,(0,s.A)({defaultTheme:r,Component:n,name:a||n.displayName,classNamePrefix:u},c)),h=o.forwardRef((function(e,t){const o=(0,l.A)(e,om),c=d((0,s.A)({},n.defaultProps,e));let u,h=o;return("string"==typeof a||i)&&(u=bf()||r,a&&(h=function(e){const{theme:t,name:n,props:r}=e;if(!(t&&t.components&&t.components[n]&&t.components[n].defaultProps))return r;const i=(0,s.A)({},r),o=t.components[n].defaultProps;let a;for(a in o)void 0===i[a]&&(i[a]=o[a]);return i}({theme:u,name:a,props:o})),i&&!h.theme&&(h.theme=u)),(0,F.jsx)(n,(0,s.A)({ref:t,classes:c},h))}));return Qh()(h,n),h};var sm=n(43975),lm=function(e){var t;return{dialog:{position:"absolute","& ~ & > div[class*='backdrop']":{backgroundColor:"transparent"},"& .MuiPaper-root":{width:450}},backdrop:{position:"absolute",background:null===(t=e.palette)||void 0===t?void 0:t.backdrop},content:{padding:e.spacing(5,0),whiteSpace:"pre-line"},modalTitleContainer:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"5px 10px"},modalTitleLabel:{display:"flex",justifyContent:"flex-start"},modalTitleActions:{display:"flex",justifyContent:"flex-end"},headerActionsContainer:{display:"flex",padding:"5px 10px","& > *:not(:last-child)":{marginRight:e.spacing(3)}},closedModal:{display:"none"},createdAction:{width:"30%",alignSelf:"flex-end","& > * ":{textAlign:"center"}}}};function cm(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 um(e){for(var t=1;t=1?(0,F.jsx)(a.A,{sx:E.headerActionsContainer,children:null===(u=t.header)||void 0===u?void 0:u.actions.map((function(e){return"string"==typeof e.content?(0,F.jsx)(o.Fragment,{children:(0,F.jsx)(sm.S,{extraOptions:{id:e.actionId},htmlContent:e.content})},e.actionId):(0,F.jsx)(o.Fragment,{children:e.content},e.actionId)}))}):null,(0,F.jsx)(Ys,{id:"".concat(r,"-close-button"),tooltip:S("close"),tooltipPlacement:"right",onClick:t.close,className:y.headerActionsContainer,children:(0,F.jsx)(gl.A,{})})]})]}),(0,F.jsx)($u,{children:(0,F.jsx)(a.A,{component:"div",id:v,className:"".concat(E.content," ").concat(b&&b),style:w,children:"string"==typeof t.content?(0,F.jsx)(sm.S,{htmlContent:t.content}):t.content})}),null!==(p=t.footer)&&void 0!==p&&p.actions&&(null===(g=t.footer)||void 0===g?void 0:g.actions.length)>=1?(0,F.jsx)(Su,{children:(null===(m=t.footer)||void 0===m?void 0:m.actions.map((function(e){return"string"==typeof e.content?(0,F.jsx)(o.Fragment,{children:(0,F.jsx)(sm.S,{extraOptions:{id:e.actionId},htmlContent:e.content})},e.actionId):(0,F.jsx)(o.Fragment,{children:e.content},e.actionId)})))||null}):null]})})),(0,F.jsx)(n,{}))||(0,F.jsxs)(bu,{open:h,sx:E.dialog,className:"".concat(c&&c),style:um(um({},u),{},{position:"absolute"}),"aria-labelledby":x,"aria-describedby":A,fullScreen:f,container:d,children:[(0,F.jsx)(Tu,{id:l,children:s}),(0,F.jsx)($u,{className:m,style:y,children:(0,F.jsx)("div",{id:v,className:"".concat(E.content," ").concat(b&&b),style:w,children:g})}),(0,F.jsx)(Su,{children:p})]})}function hm(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 pm(e){var t=Re(),n=(0,Pe.CS)(G.A);return(0,F.jsx)(n,function(e){for(var t=1;t{const{ownerState:n}=e;return[{[`&.${Rm.select}`]:t.select},{[`&.${Rm.select}`]:t[n.variant]},{[`&.${Rm.error}`]:t.error},{[`&.${Rm.multiple}`]:t.multiple}]}})(Pm.Ku,{[`&.${Rm.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Nm=(0,h.Ay)("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${(0,Ce.A)(n.variant)}`],n.open&&t.iconOpen]}})(Pm.XV),zm=(0,h.Ay)("input",{shouldForwardProp:e=>(0,Mm.A)(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Vm(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function Bm(e){return null==e||"string"==typeof e&&!e.trim()}const $m=o.forwardRef((function(e,t){var n;const{"aria-describedby":r,"aria-label":i,autoFocus:a,autoWidth:d,children:h,className:p,defaultOpen:f,defaultValue:g,disabled:m,displayEmpty:y,error:v=!1,IconComponent:b,inputRef:w,labelId:x,MenuProps:A={},multiple:S,name:C,onBlur:E,onChange:_,onClose:k,onFocus:T,onOpen:O,open:P,readOnly:I,renderValue:L,SelectDisplayProps:R={},tabIndex:j,value:D,variant:N="standard"}=e,z=(0,l.A)(e,Fm),[V,B]=(0,W.A)({controlled:D,default:g,name:"Select"}),[$,G]=(0,W.A)({controlled:P,default:f,name:"Select"}),U=o.useRef(null),q=o.useRef(null),[H,Y]=o.useState(null),{current:K}=o.useRef(null!=P),[X,Z]=o.useState(),J=(0,M.A)(t,w),Q=o.useCallback((e=>{q.current=e,e&&Y(e)}),[]),ee=null==H?void 0:H.parentNode;o.useImperativeHandle(J,(()=>({focus:()=>{q.current.focus()},node:U.current,value:V})),[V]),o.useEffect((()=>{f&&$&&H&&!K&&(Z(d?null:ee.clientWidth),q.current.focus())}),[H,d]),o.useEffect((()=>{a&&q.current.focus()}),[a]),o.useEffect((()=>{if(!x)return;const e=(0,Bi.A)(q.current).getElementById(x);if(e){const t=()=>{getSelection().isCollapsed&&q.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[x]);const te=(e,t)=>{e?O&&O(t):k&&k(t),K||(Z(d?null:ee.clientWidth),G(e))},ne=o.Children.toArray(h),re=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(S){n=Array.isArray(V)?V.slice():[];const t=V.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),V!==n&&(B(n),_)){const r=t.nativeEvent||t,i=new r.constructor(r.type,r);Object.defineProperty(i,"target",{writable:!0,value:{value:n,name:C}}),_(i,e)}S||te(!1,t)}},ie=null!==H&&$;let oe,ae;delete z["aria-invalid"];const se=[];let le=!1,ce=!1;((0,Im.lq)({value:V})||y)&&(L?oe=L(V):le=!0);const ue=ne.map((e=>{if(!o.isValidElement(e))return null;let t;if(S){if(!Array.isArray(V))throw new Error((0,Om.A)(2));t=V.some((t=>Vm(t,e.props.value))),t&&le&&se.push(e.props.children)}else t=Vm(V,e.props.value),t&&le&&(ae=e.props.children);return t&&(ce=!0),o.cloneElement(e,{"aria-selected":t?"true":"false",onClick:re(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));le&&(oe=S?0===se.length?null:se.reduce(((e,t,n)=>(e.push(t),n{const{classes:t,variant:n,disabled:r,multiple:i,open:o,error:a}=e,s={select:["select",n,r&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${(0,Ce.A)(n)}`,o&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return(0,u.A)(s,Lm,t)})(fe),me=(0,s.A)({},A.PaperProps,null==(n=A.slotProps)?void 0:n.paper),ye=(0,ze.A)();return(0,F.jsxs)(o.Fragment,{children:[(0,F.jsx)(Dm,(0,s.A)({ref:Q,tabIndex:de,role:"combobox","aria-controls":ye,"aria-disabled":m?"true":void 0,"aria-expanded":ie?"true":"false","aria-haspopup":"listbox","aria-label":i,"aria-labelledby":[x,pe].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:e=>{if(!I){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),te(!0,e))}},onMouseDown:m||I?null:e=>{0===e.button&&(e.preventDefault(),q.current.focus(),te(!0,e))},onBlur:e=>{!ie&&E&&(Object.defineProperty(e,"target",{writable:!0,value:{value:V,name:C}}),E(e))},onFocus:T},R,{ownerState:fe,className:(0,c.A)(R.className,ge.select,p),id:pe,children:Bm(oe)?jm||(jm=(0,F.jsx)("span",{className:"notranslate",children:"​"})):oe})),(0,F.jsx)(zm,(0,s.A)({"aria-invalid":v,value:Array.isArray(V)?V.join(","):V,name:C,ref:U,"aria-hidden":!0,onChange:e=>{const t=ne.find((t=>t.props.value===e.target.value));void 0!==t&&(B(t.props.value),_&&_(e,t))},tabIndex:-1,disabled:m,className:ge.nativeInput,autoFocus:a,ownerState:fe},z)),(0,F.jsx)(Nm,{as:b,className:ge.icon,ownerState:fe}),(0,F.jsx)(jh,(0,s.A)({id:`menu-${C||""}`,anchorEl:ee,open:ie,onClose:e=>{te(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},A,{MenuListProps:(0,s.A)({"aria-labelledby":x,role:"listbox","aria-multiselectable":S?"true":void 0,disableListWrap:!0,id:ye},A.MenuListProps),slotProps:(0,s.A)({},A.slotProps,{paper:(0,s.A)({},me,{style:(0,s.A)({minWidth:he},null!=me?me.style:null)})}),children:ue}))]})})),Gm=$m;var Um=n(73336),Wm=n(39230),qm=n(20553),Hm=n(28566);const Ym=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Km=(0,h.Ay)(Hm.Sh,{shouldForwardProp:e=>(0,Ti.A)(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...(0,Hm.WC)(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var n;const r="light"===e.palette.mode,i=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return(0,s.A)({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${or.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${or.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:l}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(n=(e.vars||e).palette[t.color||"primary"])?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${or.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${or.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:i}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${or.disabled}, .${or.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${or.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&(0,s.A)({padding:"25px 12px 8px"},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9}))})),Xm=(0,h.Ay)(Hm.f3,{name:"MuiFilledInput",slot:"Input",overridesResolver:Hm.Oj})((({theme:e,ownerState:t})=>(0,s.A)({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}))),Zm=o.forwardRef((function(e,t){var n,r,i,o;const a=(0,k.A)({props:e,name:"MuiFilledInput"}),{components:c={},componentsProps:d,fullWidth:h=!1,inputComponent:p="input",multiline:f=!1,slotProps:g,slots:m={},type:y="text"}=a,v=(0,l.A)(a,Ym),b=(0,s.A)({},a,{fullWidth:h,inputComponent:p,multiline:f,type:y}),w=(e=>{const{classes:t,disableUnderline:n}=e,r={root:["root",!n&&"underline"],input:["input"]},i=(0,u.A)(r,ir,t);return(0,s.A)({},t,i)})(a),x={root:{ownerState:b},input:{ownerState:b}},A=(null!=g?g:d)?(0,Uc.A)(x,null!=g?g:d):x,S=null!=(n=null!=(r=m.root)?r:c.Root)?n:Km,C=null!=(i=null!=(o=m.input)?o:c.Input)?i:Xm;return(0,F.jsx)(Hm.Ay,(0,s.A)({slots:{root:S,input:C},componentsProps:A,fullWidth:h,inputComponent:p,multiline:f,ref:t,type:y},v,{classes:w}))}));Zm.muiName="Input";const Jm=Zm;var Qm;const ey=["children","classes","className","label","notched"],ty=(0,h.Ay)("fieldset",{shouldForwardProp:Ti.A})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),ny=(0,h.Ay)("legend",{shouldForwardProp:Ti.A})((({ownerState:e,theme:t})=>(0,s.A)({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&(0,s.A)({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}))));const ry=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],iy=(0,h.Ay)(Hm.Sh,{shouldForwardProp:e=>(0,Ti.A)(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Hm.WC})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return(0,s.A)({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${rr.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${rr.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${rr.focused} .${rr.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${rr.error} .${rr.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${rr.disabled} .${rr.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&(0,s.A)({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),oy=(0,h.Ay)((function(e){const{className:t,label:n,notched:r}=e,i=(0,l.A)(e,ey),o=null!=n&&""!==n,a=(0,s.A)({},e,{notched:r,withLabel:o});return(0,F.jsx)(ty,(0,s.A)({"aria-hidden":!0,className:t,ownerState:a},i,{children:(0,F.jsx)(ny,{ownerState:a,children:o?(0,F.jsx)("span",{children:n}):Qm||(Qm=(0,F.jsx)("span",{className:"notranslate",children:"​"}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})((({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),ay=(0,h.Ay)(Hm.f3,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Hm.Oj})((({theme:e,ownerState:t})=>(0,s.A)({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0}))),sy=o.forwardRef((function(e,t){var n,r,i,a,c;const d=(0,k.A)({props:e,name:"MuiOutlinedInput"}),{components:h={},fullWidth:p=!1,inputComponent:f="input",label:g,multiline:m=!1,notched:y,slots:v={},type:b="text"}=d,w=(0,l.A)(d,ry),x=(e=>{const{classes:t}=e,n=(0,u.A)({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},nr,t);return(0,s.A)({},t,n)})(d),A=(0,Wm.A)(),S=(0,Um.A)({props:d,muiFormControl:A,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),C=(0,s.A)({},d,{color:S.color||"primary",disabled:S.disabled,error:S.error,focused:S.focused,formControl:A,fullWidth:p,hiddenLabel:S.hiddenLabel,multiline:m,size:S.size,type:b}),E=null!=(n=null!=(r=v.root)?r:h.Root)?n:iy,_=null!=(i=null!=(a=v.input)?a:h.Input)?i:ay;return(0,F.jsx)(Hm.Ay,(0,s.A)({slots:{root:E,input:_},renderSuffix:e=>(0,F.jsx)(oy,{ownerState:C,className:x.notchedOutline,label:null!=g&&""!==g&&S.required?c||(c=(0,F.jsxs)(o.Fragment,{children:[g," ","*"]})):g,notched:void 0!==y?y:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:p,inputComponent:f,multiline:m,ref:t,type:b},w,{classes:(0,s.A)({},x,{notchedOutline:null})}))}));sy.muiName="Input";const ly=sy,cy=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],uy=["root"],dy={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>(0,Ti.A)(e)&&"variant"!==e,slot:"Root"},hy=(0,h.Ay)(qm.A,dy)(""),py=(0,h.Ay)(ly,dy)(""),fy=(0,h.Ay)(Jm,dy)(""),gy=o.forwardRef((function(e,t){const n=(0,k.A)({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:i,classes:a={},className:u,defaultOpen:d=!1,displayEmpty:h=!1,IconComponent:p=sr.A,id:f,input:g,inputProps:m,label:y,labelId:v,MenuProps:b,multiple:w=!1,native:x=!1,onClose:A,onOpen:S,open:C,renderValue:E,SelectDisplayProps:_,variant:T="outlined"}=n,O=(0,l.A)(n,cy),P=x?Pm.Ay:Gm,I=(0,Wm.A)(),L=(0,Um.A)({props:n,muiFormControl:I,states:["variant","error"]}),R=L.variant||T,j=(0,s.A)({},n,{variant:R,classes:a}),D=(e=>{const{classes:t}=e;return t})(j),N=(0,l.A)(D,uy),z=g||{standard:(0,F.jsx)(hy,{ownerState:j}),outlined:(0,F.jsx)(py,{label:y,ownerState:j}),filled:(0,F.jsx)(fy,{ownerState:j})}[R],V=(0,M.A)(t,z.ref);return(0,F.jsx)(o.Fragment,{children:o.cloneElement(z,(0,s.A)({inputComponent:P,inputProps:(0,s.A)({children:i,error:L.error,IconComponent:p,variant:R,type:void 0,multiple:w},x?{id:f}:{autoWidth:r,defaultOpen:d,displayEmpty:h,labelId:v,MenuProps:b,onClose:A,onOpen:S,open:C,renderValue:E,SelectDisplayProps:(0,s.A)({id:f},_)},m,{classes:m?(0,Uc.A)(N,m.classes):N},g?g.props.inputProps:{})},(w&&x||h)&&"outlined"===R?{notched:!0}:{},{ref:V,className:(0,c.A)(z.props.className,u,D.root)},!g&&{variant:R},O))})}));gy.muiName="Select";const my=gy;function yy(e){return(0,R.Ay)("MuiFormHelperText",e)}const vy=(0,L.A)("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var by;const wy=["children","className","component","disabled","error","filled","focused","margin","required","variant"],xy=(0,h.Ay)("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${(0,Ce.A)(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})((({theme:e,ownerState:t})=>(0,s.A)({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${vy.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${vy.error}`]:{color:(e.vars||e).palette.error.main}},"small"===t.size&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14}))),Ay=o.forwardRef((function(e,t){const n=(0,k.A)({props:e,name:"MuiFormHelperText"}),{children:r,className:i,component:o="p"}=n,a=(0,l.A)(n,wy),d=(0,Wm.A)(),h=(0,Um.A)({props:n,muiFormControl:d,states:["variant","size","disabled","error","filled","focused","required"]}),p=(0,s.A)({},n,{component:o,contained:"filled"===h.variant||"outlined"===h.variant,variant:h.variant,size:h.size,disabled:h.disabled,error:h.error,filled:h.filled,focused:h.focused,required:h.required}),f=(e=>{const{classes:t,contained:n,size:r,disabled:i,error:o,filled:a,focused:s,required:l}=e,c={root:["root",i&&"disabled",o&&"error",r&&`size${(0,Ce.A)(r)}`,n&&"contained",s&&"focused",a&&"filled",l&&"required"]};return(0,u.A)(c,yy,t)})(p);return(0,F.jsx)(xy,(0,s.A)({as:o,ownerState:p,className:(0,c.A)(f.root,i),ref:t},a,{children:" "===r?by||(by=(0,F.jsx)("span",{className:"notranslate",children:"​"})):r}))}));var Sy=function(e){var t,n,r;return{formControl:{width:"50%","& .MuiFormLabel-root.Mui-focused":{color:e.palette.primary.contrastText,background:null===(t=e.palette.geoViewColor)||void 0===t?void 0:t.primary.light},"& .MuiOutlinedInput-root.Mui-focused":{border:"1px solid ".concat(null===(n=e.palette.geoViewColor)||void 0===n?void 0:n.primary.contrastText)}},label:{position:"absolute",left:0,top:0,transform:"translate(14px, -9px) scale(0.75)",background:null===(r=e.palette.geoViewColor)||void 0===r?void 0:r.primary.light},select:{width:"100%"}}},Cy=["className","style","labelId","label","selectItems","callBack","helperText","multiple"];function Ey(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 _y(e){for(var t=1;te;const Gy=(0,xa.i7)(Ny||(Ny=$y` 0% { opacity: 1; } @@ -176,7 +176,7 @@ 100% { opacity: 1; } -`)),Jh=(0,Dr.i7)(Hh||(Hh=Xh` +`)),Uy=(0,xa.i7)(zy||(zy=$y` 0% { transform: translateX(-100%); } @@ -189,9 +189,9 @@ 100% { transform: translateX(100%); } -`)),Qh=(0,h.Ay)("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!1!==n.animation&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})((({theme:e,ownerState:t})=>{const n=Bh(e.shape.borderRadius)||"px",r=$h(e.shape.borderRadius);return(0,s.A)({display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:(0,Gh.X4)(e.palette.text.primary,"light"===e.palette.mode?.11:.13),height:"1.2em"},"text"===t.variant&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${r}${n}/${Math.round(r/.6*10)/10}${n}`,"&:empty:before":{content:'"\\00a0"'}},"circular"===t.variant&&{borderRadius:"50%"},"rounded"===t.variant&&{borderRadius:(e.vars||e).shape.borderRadius},t.hasChildren&&{"& > *":{visibility:"hidden"}},t.hasChildren&&!t.width&&{maxWidth:"fit-content"},t.hasChildren&&!t.height&&{height:"auto"})}),(({ownerState:e})=>"pulse"===e.animation&&(0,Dr.AH)(Yh||(Yh=Xh` +`)),Wy=(0,h.Ay)("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!1!==n.animation&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})((({theme:e,ownerState:t})=>{const n=Ly(e.shape.borderRadius)||"px",r=Ry(e.shape.borderRadius);return(0,s.A)({display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:(0,jy.X4)(e.palette.text.primary,"light"===e.palette.mode?.11:.13),height:"1.2em"},"text"===t.variant&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${r}${n}/${Math.round(r/.6*10)/10}${n}`,"&:empty:before":{content:'"\\00a0"'}},"circular"===t.variant&&{borderRadius:"50%"},"rounded"===t.variant&&{borderRadius:(e.vars||e).shape.borderRadius},t.hasChildren&&{"& > *":{visibility:"hidden"}},t.hasChildren&&!t.width&&{maxWidth:"fit-content"},t.hasChildren&&!t.height&&{height:"auto"})}),(({ownerState:e})=>"pulse"===e.animation&&(0,xa.AH)(Vy||(Vy=$y` animation: ${0} 2s ease-in-out 0.5s infinite; - `),Zh)),(({ownerState:e,theme:t})=>"wave"===e.animation&&(0,Dr.AH)(Kh||(Kh=Xh` + `),Gy)),(({ownerState:e,theme:t})=>"wave"===e.animation&&(0,xa.AH)(By||(By=$y` position: relative; overflow: hidden; @@ -214,7 +214,7 @@ right: 0; top: 0; } - `),Jh,(t.vars||t).palette.action.hover))),ep=o.forwardRef((function(e,t){const n=(0,g.A)({props:e,name:"MuiSkeleton"}),{animation:r="pulse",className:i,component:o="span",height:a,style:d,variant:h="text",width:p}=n,f=(0,l.A)(n,Wh),m=(0,s.A)({},n,{animation:r,component:o,variant:h,hasChildren:Boolean(f.children)}),y=(e=>{const{classes:t,variant:n,animation:r,hasChildren:i,width:o,height:a}=e,s={root:["root",n,r,i&&"withChildren",i&&!o&&"fitContent",i&&!a&&"heightAuto"]};return(0,u.A)(s,Uh,t)})(m);return(0,S.jsx)(Qh,(0,s.A)({as:o,ref:t,className:(0,c.A)(y.root,i),ownerState:m},f,{style:(0,s.A)({width:p,height:a},d)}))})),tp=ep;var np=["variant","width","height"];function rp(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 ip(e){var t=e.variant,n=e.width,r=void 0===n?250:n,i=e.height,o=void 0===i?250:i,a=(0,Ce.A)(e,np);return(0,S.jsx)(tp,function(e){for(var t=1;t3&&void 0!==arguments[3]?arguments[3]:"horizontal",i=e?e.getBoundingClientRect():null,o=t.getBoundingClientRect(),a=n?n.getBoundingClientRect():null,s=!1,l=!1;return i&&(s="vertical"===r?i.bottom+10>o.top:i.right+10>o.left),a&&(l="vertical"===r?o.bottom+10>a.top:o.right+10>a.left),s||l},_=function(){var e;Ci.vF.logTraceCore("UI.SLIDER - removeLabelOverlap");for(var t=f?(null===(e=document.getElementById(f))||void 0===e?void 0:e.getElementsByClassName("MuiSlider-markLabel"))||[]:document.getElementsByClassName("MuiSlider-markLabel"),n=0;nt.length/2;u--)E(null,t[u],t[c])?t[u].classList.add("MuiSlider-markLabel-overlap"):(c=c-u!=1?u:c-1,a=u);if(i.push(o,a),i=(0,r.A)(new Set(i)).sort((function(e,t){return e-t})),t.length>2)for(var d=0,h=1;h{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${(0,de.A)(n.color||n.severity)}`]]}})((({theme:e})=>{const t="light"===e.palette.mode?Fe.e$:Fe.a,n="light"===e.palette.mode?Fe.a:Fe.e$;return(0,s.A)({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter((([,e])=>e.main&&e.light)).map((([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:n(e.palette[r].light,.9),[`& .${hp.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}}))),...Object.entries(e.palette).filter((([,e])=>e.main&&e.light)).map((([n])=>({props:{colorSeverity:n,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${n}Color`]:t(e.palette[n].light,.6),border:`1px solid ${(e.vars||e).palette[n].light}`,[`& .${hp.icon}`]:e.vars?{color:e.vars.palette.Alert[`${n}IconColor`]}:{color:e.palette[n].main}}}))),...Object.entries(e.palette).filter((([,e])=>e.main&&e.dark)).map((([t])=>({props:{colorSeverity:t,variant:"filled"},style:(0,s.A)({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${t}FilledColor`],backgroundColor:e.vars.palette.Alert[`${t}FilledBg`]}:{backgroundColor:"dark"===e.palette.mode?e.palette[t].dark:e.palette[t].main,color:e.palette.getContrastText(e.palette[t].main)})})))]})})),xp=(0,h.Ay)("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),wp=(0,h.Ay)("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),Ap=(0,h.Ay)("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),Sp={success:(0,S.jsx)(pp,{fontSize:"inherit"}),warning:(0,S.jsx)(fp,{fontSize:"inherit"}),error:(0,S.jsx)(gp,{fontSize:"inherit"}),info:(0,S.jsx)(mp,{fontSize:"inherit"})},Cp=o.forwardRef((function(e,t){const n=vp({props:e,name:"MuiAlert"}),{action:r,children:i,className:o,closeText:a="Close",color:d,components:h={},componentsProps:p={},icon:f,iconMapping:g=Sp,onClose:m,role:y="alert",severity:v="success",slotProps:b={},slots:x={},variant:w="standard"}=n,A=(0,l.A)(n,yp),C=(0,s.A)({},n,{color:d,severity:v,variant:w,colorSeverity:d||v}),E=(e=>{const{variant:t,color:n,severity:r,classes:i}=e,o={root:["root",`color${(0,de.A)(n||r)}`,`${t}${(0,de.A)(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return(0,u.A)(o,dp,i)})(C),_={slots:(0,s.A)({closeButton:h.CloseButton,closeIcon:h.CloseIcon},x),slotProps:(0,s.A)({},p,b)},[k,T]=V("closeButton",{elementType:Ge.A,externalForwardedProps:_,ownerState:C}),[O,P]=V("closeIcon",{elementType:Xe,externalForwardedProps:_,ownerState:C});return(0,S.jsxs)(bp,(0,s.A)({role:y,elevation:0,ownerState:C,className:(0,c.A)(E.root,o),ref:t},A,{children:[!1!==f?(0,S.jsx)(xp,{ownerState:C,className:E.icon,children:f||g[v]||Sp[v]}):null,(0,S.jsx)(wp,{ownerState:C,className:E.message,children:i}),null!=r?(0,S.jsx)(Ap,{ownerState:C,className:E.action,children:r}):null,null==r&&m?(0,S.jsx)(Ap,{ownerState:C,className:E.action,children:(0,S.jsx)(k,(0,s.A)({size:"small","aria-label":a,title:a,color:"inherit",onClick:m},T,{children:(0,S.jsx)(O,(0,s.A)({fontSize:"small"},P))}))}):null]}))}));var Ep=n(75188);function _p(e){return(0,w.Ay)("MuiSnackbarContent",e)}(0,x.A)("MuiSnackbarContent",["root","message","action"]);const kp=["action","className","message","role"],Tp=(0,h.Ay)(P.A,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>{const t="light"===e.palette.mode?.8:.98,n=(0,Fe.tL)(e.palette.background.default,t);return(0,s.A)({},e.typography.body2,{color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(n),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})})),Op=(0,h.Ay)("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),Pp=(0,h.Ay)("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),Ip=o.forwardRef((function(e,t){const n=(0,g.A)({props:e,name:"MuiSnackbarContent"}),{action:r,className:i,message:o,role:a="alert"}=n,d=(0,l.A)(n,kp),h=n,p=(e=>{const{classes:t}=e;return(0,u.A)({root:["root"],action:["action"],message:["message"]},_p,t)})(h);return(0,S.jsxs)(Tp,(0,s.A)({role:a,square:!0,elevation:6,className:(0,c.A)(p.root,i),ownerState:h,ref:t},d,{children:[(0,S.jsx)(Op,{className:p.message,ownerState:h,children:o}),r?(0,S.jsx)(Pp,{className:p.action,ownerState:h,children:r}):null]}))}));function Mp(e){return(0,w.Ay)("MuiSnackbar",e)}(0,x.A)("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const Lp=["onEnter","onExited"],Rp=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],jp=(0,h.Ay)("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${(0,de.A)(n.anchorOrigin.vertical)}${(0,de.A)(n.anchorOrigin.horizontal)}`]]}})((({theme:e,ownerState:t})=>(0,s.A)({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},"top"===t.anchorOrigin.vertical?{top:8}:{bottom:8},"left"===t.anchorOrigin.horizontal&&{justifyContent:"flex-start"},"right"===t.anchorOrigin.horizontal&&{justifyContent:"flex-end"},{[e.breakpoints.up("sm")]:(0,s.A)({},"top"===t.anchorOrigin.vertical?{top:24}:{bottom:24},"center"===t.anchorOrigin.horizontal&&{left:"50%",right:"auto",transform:"translateX(-50%)"},"left"===t.anchorOrigin.horizontal&&{left:24,right:"auto"},"right"===t.anchorOrigin.horizontal&&{right:24,left:"auto"})}))),Fp=o.forwardRef((function(e,t){const n=(0,g.A)({props:e,name:"MuiSnackbar"}),r=(0,v.A)(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{action:a,anchorOrigin:{vertical:c,horizontal:d}={vertical:"bottom",horizontal:"left"},autoHideDuration:h=null,children:p,className:m,ClickAwayListenerProps:y,ContentProps:b,disableWindowBlurListener:x=!1,message:w,open:A,TransitionComponent:C=Ht.A,transitionDuration:E=i,TransitionProps:{onEnter:_,onExited:k}={}}=n,T=(0,l.A)(n.TransitionProps,Lp),O=(0,l.A)(n,Rp),P=(0,s.A)({},n,{anchorOrigin:{vertical:c,horizontal:d},autoHideDuration:h,disableWindowBlurListener:x,TransitionComponent:C,transitionDuration:E}),I=(e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${(0,de.A)(n.vertical)}${(0,de.A)(n.horizontal)}`]};return(0,u.A)(r,Mp,t)})(P),{getRootProps:M,onClickAway:L}=function(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:i,resumeHideDuration:a}=e,l=(0,f.A)();o.useEffect((()=>{if(i)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){e.defaultPrevented||"Escape"!==e.key&&"Esc"!==e.key||null==r||r(e,"escapeKeyDown")}}),[i,r]);const c=(0,Oe.A)(((e,t)=>{null==r||r(e,t)})),u=(0,Oe.A)((e=>{r&&null!=e&&l.start(e,(()=>{c(null,"timeout")}))}));o.useEffect((()=>(i&&u(t),l.clear)),[i,t,u,l]);const d=l.clear,h=o.useCallback((()=>{null!=t&&u(null!=a?a:.5*t)}),[t,a,u]),p=e=>t=>{const n=e.onFocus;null==n||n(t),d()},g=e=>t=>{const n=e.onMouseEnter;null==n||n(t),d()},m=e=>t=>{const n=e.onMouseLeave;null==n||n(t),h()};return o.useEffect((()=>{if(!n&&i)return window.addEventListener("focus",h),window.addEventListener("blur",d),()=>{window.removeEventListener("focus",h),window.removeEventListener("blur",d)}}),[n,i,h,d]),{getRootProps:(t={})=>{const n=(0,s.A)({},(0,Ep.h)(e),(0,Ep.h)(t));return(0,s.A)({role:"presentation"},t,n,{onBlur:(r=n,e=>{const t=r.onBlur;null==t||t(e),h()}),onFocus:p(n),onMouseEnter:g(n),onMouseLeave:m(n)});var r},onClickAway:e=>{null==r||r(e,"clickaway")}}}((0,s.A)({},P)),[R,j]=o.useState(!0),F=(0,Lt.Q)({elementType:jp,getSlotProps:M,externalForwardedProps:O,ownerState:P,additionalProps:{ref:t},className:[I.root,m]});return!A&&R?null:(0,S.jsx)(pn.x,(0,s.A)({onClickAway:L},y,{children:(0,S.jsx)(jp,(0,s.A)({},F,{children:(0,S.jsx)(C,(0,s.A)({appear:!0,in:A,timeout:E,direction:"top"===c?"down":"up",onEnter:(e,t)=>{j(!1),_&&_(e,t)},onExited:e=>{j(!0),k&&k(e)}},T,{children:p||(0,S.jsx)(Ip,(0,s.A)({message:w,action:a},b))}))}))}))})),Dp=Fp;function Np(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 zp=(0,o.forwardRef)((function(e,t){return(0,S.jsx)(Cp,function(e){for(var t=1;t{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})((({ownerState:e})=>(0,s.A)({flex:"1 1 auto"},"vertical"===e.orientation&&{marginLeft:12},e.alternativeLabel&&{position:"absolute",top:12,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"}))),Kp=(0,h.Ay)("span",{name:"MuiStepConnector",slot:"Line",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.line,t[`line${(0,de.A)(n.orientation)}`]]}})((({ownerState:e,theme:t})=>{const n="light"===t.palette.mode?t.palette.grey[400]:t.palette.grey[600];return(0,s.A)({display:"block",borderColor:t.vars?t.vars.palette.StepConnector.border:n},"horizontal"===e.orientation&&{borderTopStyle:"solid",borderTopWidth:1},"vertical"===e.orientation&&{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24})})),Xp=o.forwardRef((function(e,t){const n=(0,g.A)({props:e,name:"MuiStepConnector"}),{className:r}=n,i=(0,l.A)(n,Hp),{alternativeLabel:a,orientation:d="horizontal"}=o.useContext(Gp),{active:h,disabled:p,completed:f}=o.useContext(Wp),m=(0,s.A)({},n,{alternativeLabel:a,orientation:d,active:h,completed:f,disabled:p}),y=(e=>{const{classes:t,orientation:n,alternativeLabel:r,active:i,completed:o,disabled:a}=e,s={root:["root",n,r&&"alternativeLabel",i&&"active",o&&"completed",a&&"disabled"],line:["line",`line${(0,de.A)(n)}`]};return(0,u.A)(s,qp,t)})(m);return(0,S.jsx)(Yp,(0,s.A)({className:(0,c.A)(y.root,r),ref:t,ownerState:m},i,{children:(0,S.jsx)(Kp,{className:y.line,ownerState:m})}))})),Zp=["activeStep","alternativeLabel","children","className","component","connector","nonLinear","orientation"],Jp=(0,h.Ay)("div",{name:"MuiStepper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel]}})((({ownerState:e})=>(0,s.A)({display:"flex"},"horizontal"===e.orientation&&{flexDirection:"row",alignItems:"center"},"vertical"===e.orientation&&{flexDirection:"column"},e.alternativeLabel&&{alignItems:"flex-start"}))),Qp=(0,S.jsx)(Xp,{}),ef=o.forwardRef((function(e,t){const n=(0,g.A)({props:e,name:"MuiStepper"}),{activeStep:r=0,alternativeLabel:i=!1,children:a,className:d,component:h="div",connector:p=Qp,nonLinear:f=!1,orientation:m="horizontal"}=n,y=(0,l.A)(n,Zp),v=(0,s.A)({},n,{alternativeLabel:i,orientation:m,component:h}),b=(e=>{const{orientation:t,alternativeLabel:n,classes:r}=e,i={root:["root",t,n&&"alternativeLabel"]};return(0,u.A)(i,Bp,r)})(v),x=o.Children.toArray(a).filter(Boolean),w=x.map(((e,t)=>o.cloneElement(e,(0,s.A)({index:t,last:t+1===x.length},e.props)))),A=o.useMemo((()=>({activeStep:r,alternativeLabel:i,connector:p,nonLinear:f,orientation:m})),[r,i,p,f,m]);return(0,S.jsx)(Gp.Provider,{value:A,children:(0,S.jsx)(Jp,(0,s.A)({as:h,ownerState:v,className:(0,c.A)(b.root,d),ref:t},y,{children:w}))})})),tf=ef;function nf(e){return(0,w.Ay)("MuiStep",e)}(0,x.A)("MuiStep",["root","horizontal","vertical","alternativeLabel","completed"]);const rf=["active","children","className","component","completed","disabled","expanded","index","last"],of=(0,h.Ay)("div",{name:"MuiStep",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})((({ownerState:e})=>(0,s.A)({},"horizontal"===e.orientation&&{paddingLeft:8,paddingRight:8},e.alternativeLabel&&{flex:1,position:"relative"}))),af=o.forwardRef((function(e,t){const n=(0,g.A)({props:e,name:"MuiStep"}),{active:r,children:i,className:a,component:d="div",completed:h,disabled:p,expanded:f=!1,index:m,last:y}=n,v=(0,l.A)(n,rf),{activeStep:b,connector:x,alternativeLabel:w,orientation:A,nonLinear:C}=o.useContext(Gp);let[E=!1,_=!1,k=!1]=[r,h,p];b===m?E=void 0===r||r:!C&&b>m?_=void 0===h||h:!C&&b({index:m,last:y,expanded:f,icon:m+1,active:E,completed:_,disabled:k})),[m,y,f,E,_,k]),O=(0,s.A)({},n,{active:E,orientation:A,alternativeLabel:w,completed:_,disabled:k,expanded:f,component:d}),P=(e=>{const{classes:t,orientation:n,alternativeLabel:r,completed:i}=e,o={root:["root",n,r&&"alternativeLabel",i&&"completed"]};return(0,u.A)(o,nf,t)})(O),I=(0,S.jsxs)(of,(0,s.A)({as:d,className:(0,c.A)(P.root,a),ref:t,ownerState:O},v,{children:[x&&w&&0!==m?x:null,i]}));return(0,S.jsx)(Wp.Provider,{value:T,children:x&&!w&&0!==m?(0,S.jsxs)(o.Fragment,{children:[x,I]}):I})})),sf=af,lf=(0,Ke.A)((0,S.jsx)("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"}),"CheckCircle"),cf=(0,Ke.A)((0,S.jsx)("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");var uf=n(41019);function df(e){return(0,w.Ay)("MuiStepIcon",e)}const hf=(0,x.A)("MuiStepIcon",["root","active","completed","error","text"]);var pf;const ff=["active","className","completed","error","icon"],gf=(0,h.Ay)(uf.A,{name:"MuiStepIcon",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),color:(e.vars||e).palette.text.disabled,[`&.${hf.completed}`]:{color:(e.vars||e).palette.primary.main},[`&.${hf.active}`]:{color:(e.vars||e).palette.primary.main},[`&.${hf.error}`]:{color:(e.vars||e).palette.error.main}}))),mf=(0,h.Ay)("text",{name:"MuiStepIcon",slot:"Text",overridesResolver:(e,t)=>t.text})((({theme:e})=>({fill:(e.vars||e).palette.primary.contrastText,fontSize:e.typography.caption.fontSize,fontFamily:e.typography.fontFamily}))),yf=o.forwardRef((function(e,t){const n=(0,g.A)({props:e,name:"MuiStepIcon"}),{active:r=!1,className:i,completed:o=!1,error:a=!1,icon:d}=n,h=(0,l.A)(n,ff),p=(0,s.A)({},n,{active:r,completed:o,error:a}),f=(e=>{const{classes:t,active:n,completed:r,error:i}=e,o={root:["root",n&&"active",r&&"completed",i&&"error"],text:["text"]};return(0,u.A)(o,df,t)})(p);if("number"==typeof d||"string"==typeof d){const e=(0,c.A)(i,f.root);return a?(0,S.jsx)(gf,(0,s.A)({as:cf,className:e,ref:t,ownerState:p},h)):o?(0,S.jsx)(gf,(0,s.A)({as:lf,className:e,ref:t,ownerState:p},h)):(0,S.jsxs)(gf,(0,s.A)({className:e,ref:t,ownerState:p},h,{children:[pf||(pf=(0,S.jsx)("circle",{cx:"12",cy:"12",r:"12"})),(0,S.jsx)(mf,{className:f.text,x:"12",y:"12",textAnchor:"middle",dominantBaseline:"central",ownerState:p,children:d})]}))}return d}));function vf(e){return(0,w.Ay)("MuiStepLabel",e)}const bf=(0,x.A)("MuiStepLabel",["root","horizontal","vertical","label","active","completed","error","disabled","iconContainer","alternativeLabel","labelContainer"]),xf=["children","className","componentsProps","error","icon","optional","slotProps","StepIconComponent","StepIconProps"],wf=(0,h.Ay)("span",{name:"MuiStepLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation]]}})((({ownerState:e})=>(0,s.A)({display:"flex",alignItems:"center",[`&.${bf.alternativeLabel}`]:{flexDirection:"column"},[`&.${bf.disabled}`]:{cursor:"default"}},"vertical"===e.orientation&&{textAlign:"left",padding:"8px 0"}))),Af=(0,h.Ay)("span",{name:"MuiStepLabel",slot:"Label",overridesResolver:(e,t)=>t.label})((({theme:e})=>(0,s.A)({},e.typography.body2,{display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),[`&.${bf.active}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${bf.completed}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${bf.alternativeLabel}`]:{marginTop:16},[`&.${bf.error}`]:{color:(e.vars||e).palette.error.main}}))),Sf=(0,h.Ay)("span",{name:"MuiStepLabel",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})((()=>({flexShrink:0,display:"flex",paddingRight:8,[`&.${bf.alternativeLabel}`]:{paddingRight:0}}))),Cf=(0,h.Ay)("span",{name:"MuiStepLabel",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})((({theme:e})=>({width:"100%",color:(e.vars||e).palette.text.secondary,[`&.${bf.alternativeLabel}`]:{textAlign:"center"}}))),Ef=o.forwardRef((function(e,t){var n;const r=(0,g.A)({props:e,name:"MuiStepLabel"}),{children:i,className:a,componentsProps:d={},error:h=!1,icon:p,optional:f,slotProps:m={},StepIconComponent:y,StepIconProps:v}=r,b=(0,l.A)(r,xf),{alternativeLabel:x,orientation:w}=o.useContext(Gp),{active:A,disabled:C,completed:E,icon:_}=o.useContext(Wp),k=p||_;let T=y;k&&!T&&(T=yf);const O=(0,s.A)({},r,{active:A,alternativeLabel:x,completed:E,disabled:C,error:h,orientation:w}),P=(e=>{const{classes:t,orientation:n,active:r,completed:i,error:o,disabled:a,alternativeLabel:s}=e,l={root:["root",n,o&&"error",a&&"disabled",s&&"alternativeLabel"],label:["label",r&&"active",i&&"completed",o&&"error",a&&"disabled",s&&"alternativeLabel"],iconContainer:["iconContainer",r&&"active",i&&"completed",o&&"error",a&&"disabled",s&&"alternativeLabel"],labelContainer:["labelContainer",s&&"alternativeLabel"]};return(0,u.A)(l,vf,t)})(O),I=null!=(n=m.label)?n:d.label;return(0,S.jsxs)(wf,(0,s.A)({className:(0,c.A)(P.root,a),ref:t,ownerState:O},b,{children:[k||T?(0,S.jsx)(Sf,{className:P.iconContainer,ownerState:O,children:(0,S.jsx)(T,(0,s.A)({completed:E,active:A,error:h,icon:k},v))}):null,(0,S.jsxs)(Cf,{className:P.labelContainer,ownerState:O,children:[i?(0,S.jsx)(Af,(0,s.A)({ownerState:O},I,{className:(0,c.A)(P.label,null==I?void 0:I.className),children:i})):null,f]})]}))}));Ef.muiName="StepLabel";const _f=Ef;function kf(e){return(0,w.Ay)("MuiStepContent",e)}(0,x.A)("MuiStepContent",["root","last","transition"]);const Tf=["children","className","TransitionComponent","transitionDuration","TransitionProps"],Of=(0,h.Ay)("div",{name:"MuiStepContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.last&&t.last]}})((({ownerState:e,theme:t})=>(0,s.A)({marginLeft:12,paddingLeft:20,paddingRight:8,borderLeft:t.vars?`1px solid ${t.vars.palette.StepContent.border}`:`1px solid ${"light"===t.palette.mode?t.palette.grey[400]:t.palette.grey[600]}`},e.last&&{borderLeft:"none"}))),Pf=(0,h.Ay)(O,{name:"MuiStepContent",slot:"Transition",overridesResolver:(e,t)=>t.transition})({}),If=o.forwardRef((function(e,t){const n=(0,g.A)({props:e,name:"MuiStepContent"}),{children:r,className:i,TransitionComponent:a=O,transitionDuration:d="auto",TransitionProps:h}=n,p=(0,l.A)(n,Tf),{orientation:f}=o.useContext(Gp),{active:m,last:y,expanded:v}=o.useContext(Wp),b=(0,s.A)({},n,{last:y}),x=(e=>{const{classes:t,last:n}=e,r={root:["root",n&&"last"],transition:["transition"]};return(0,u.A)(r,kf,t)})(b);let w=d;return"auto"!==d||a.muiSupportAuto||(w=void 0),(0,S.jsx)(Of,(0,s.A)({className:(0,c.A)(x.root,i),ref:t,ownerState:b},p,{children:(0,S.jsx)(Pf,(0,s.A)({as:a,in:m||v,className:x.transition,ownerState:b,timeout:w,unmountOnExit:!0},h,{children:r}))}))}));var Mf=n(75361);function Lf(e){return(0,w.Ay)("MuiStepButton",e)}const Rf=(0,x.A)("MuiStepButton",["root","horizontal","vertical","touchRipple"]),jf=["children","className","icon","optional"],Ff=(0,h.Ay)(H.A,{name:"MuiStepButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Rf.touchRipple}`]:t.touchRipple},t.root,t[n.orientation]]}})((({ownerState:e})=>(0,s.A)({width:"100%",padding:"24px 16px",margin:"-24px -16px",boxSizing:"content-box"},"vertical"===e.orientation&&{justifyContent:"flex-start",padding:"8px",margin:"-8px"},{[`& .${Rf.touchRipple}`]:{color:"rgba(0, 0, 0, 0.3)"}}))),Df=o.forwardRef((function(e,t){const n=(0,g.A)({props:e,name:"MuiStepButton"}),{children:r,className:i,icon:a,optional:d}=n,h=(0,l.A)(n,jf),{disabled:p,active:f}=o.useContext(Wp),{orientation:m}=o.useContext(Gp),y=(0,s.A)({},n,{orientation:m}),v=(e=>{const{classes:t,orientation:n}=e,r={root:["root",n],touchRipple:["touchRipple"]};return(0,u.A)(r,Lf,t)})(y),b={icon:a,optional:d},x=(0,Mf.A)(r,["StepLabel"])?o.cloneElement(r,b):(0,S.jsx)(_f,(0,s.A)({},b,{children:r}));return(0,S.jsx)(Ff,(0,s.A)({focusRipple:!0,disabled:p,TouchRippleProps:{className:v.touchRipple},className:(0,c.A)(v.root,i),ref:t,ownerState:y,"aria-current":f?"step":void 0},h,{children:x}))}));var Nf=function(e){var t;return{stepperContainer:{padding:15,width:500,minWidth:150,border:"0.5px solid grey",flexWrap:"wrap","& .MuiSvgIcon-root.Mui-active":{color:"#90caf9"},"& .MuiSvgIcon-root.Mui-completed":{color:"#666666"}},actionContainer:{marginTop:20,width:"100%",display:"flex",flexWrap:"wrap",flexDirection:"row",justifyContent:"space-between","&>*:first-child":{width:"100%",marginBottom:8},"& > button":{width:"30%"},"& > button > *":{textAlign:"center"}},disabledButton:{color:"".concat(null===(t=e.palette.geoViewColor)||void 0===t?void 0:t.primary.contrastText,"!important")}}};function zf(e){var t=e.className,n=e.style,r=e.stepperId,s=e.orientation,l=e.alternativeLabel,c=e.nonLinear,u=e.buttonedLabels,d=e.steps,h=e.backButtonText,p=e.nextButtonText,f=e.resetButtonText,g=(0,v.A)(),m=Nf(g),y=(0,o.useState)(0),b=(0,i.A)(y,2),x=b[0],w=b[1],A=(0,o.useState)({}),C=(0,i.A)(A,2),E=C[0],_=C[1],k=(0,o.useState)(!1),T=(0,i.A)(k,2),O=T[0],P=T[1],I=function(){return d&&d.length},M=function(){return Object.keys(E).length},L=function(){return M()===I()},R=function(){if(c){var e=x!==I()-1||L()?x+1:d.findIndex((function(e,t){return!(t in E)}));L()&&e!==I()&&P(!0),c&&e===d.length&&P(!0),w(e)}c||w((function(e){return e+1})),c||x!==d.length-1||P(!0)},j=void 0!==s?s:"horizontal",F=d.findIndex((function(e){return e.disableStepMovement})),D=x===F;return(0,S.jsx)(a.A,{children:(0,S.jsxs)(tf,{className:"".concat(m.stepperContainer," ").concat(t&&t),style:n||void 0,id:r||"",orientation:j,activeStep:x,alternativeLabel:"horizontal"===j&&(void 0===l||l),nonLinear:c||u||!1,children:[null==d?void 0:d.map((function(e,t){return(0,S.jsx)(sf,{completed:c?E[t]:void 0,children:(0,S.jsxs)(S.Fragment,{children:[u||(0,S.jsx)(_f,{children:(0,S.jsx)(Jn.A,{variant:"caption",children:e.label})}),"vertical"===s&&(0,S.jsx)(If,{children:"string"==typeof e.description?(0,S.jsx)(ah.S,{htmlContent:e.description}):e.description}),u&&(0,S.jsx)(Df,{onClick:(n=t,function(){w(n)}),children:e.label})]})},e.label);var n})),(0,S.jsx)(a.A,{sx:m.actionContainer,children:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(Jn.A,{children:O?"Steps Completed":"Step ".concat(x+1)}),!O&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(hn,{type:"text",disabled:x<1,sx:x<1?m.disabledButton:{},onClick:function(){w((function(e){return e-1}))},children:h||"Back"}),(0,S.jsx)(hn,{type:"text",onClick:R,disabled:D,sx:D?m.disabledButton:{},children:p||"Next"}),c&&x!==d.length&&(E[x]?(0,S.jsxs)(Jn.A,{variant:"caption",sx:{display:"inline-block"},children:["Step ",x+1," already completed"]}):(0,S.jsx)(hn,{type:"text",onClick:function(){var e=E;e[x]=!0,_(e),R()},children:M()===I()-1?"Finish":"Complete Step"}))]}),O&&(0,S.jsx)(hn,{type:"text",onClick:function(){w(0),_({}),P(!1)},children:f||"Reset"})]})})]})})}var Vf=function(e){return{stepper:{color:e.palette.text.primary}}},Bf=["steps"];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 Gf(e){for(var t=1;t{const{ownerState:n}=e;return[{[`& .${Kf.label}`]:t.label},t.root,t[`labelPlacement${(0,de.A)(n.labelPlacement)}`]]}})((({theme:e,ownerState:t})=>(0,s.A)({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Kf.disabled}`]:{cursor:"default"}},"start"===t.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===t.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===t.labelPlacement&&{flexDirection:"column",marginLeft:16},{[`& .${Kf.label}`]:{[`&.${Kf.disabled}`]:{color:(e.vars||e).palette.text.disabled}}}))),Qf=(0,h.Ay)("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${Kf.error}`]:{color:(e.vars||e).palette.error.main}}))),eg=o.forwardRef((function(e,t){var n,r;const i=(0,g.A)({props:e,name:"MuiFormControlLabel"}),{className:a,componentsProps:d={},control:h,disabled:p,disableTypography:f,label:m,labelPlacement:y="end",required:v,slotProps:b={}}=i,x=(0,l.A)(i,Zf),w=(0,Hf.A)(),A=null!=(n=null!=p?p:h.props.disabled)?n:null==w?void 0:w.disabled,C=null!=v?v:h.props.required,E={disabled:A,required:C};["checked","name","onChange","value","inputRef"].forEach((e=>{void 0===h.props[e]&&void 0!==i[e]&&(E[e]=i[e])}));const _=(0,Xf.A)({props:i,muiFormControl:w,states:["error"]}),k=(0,s.A)({},i,{disabled:A,labelPlacement:y,required:C,error:_.error}),T=(e=>{const{classes:t,disabled:n,labelPlacement:r,error:i,required:o}=e,a={root:["root",n&&"disabled",`labelPlacement${(0,de.A)(r)}`,i&&"error",o&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",i&&"error"]};return(0,u.A)(a,Yf,t)})(k),O=null!=(r=b.typography)?r:d.typography;let P=m;return null==P||P.type===Jn.A||f||(P=(0,S.jsx)(Jn.A,(0,s.A)({component:"span"},O,{className:(0,c.A)(T.label,null==O?void 0:O.className),children:P}))),(0,S.jsxs)(Jf,(0,s.A)({className:(0,c.A)(T.root,a),ownerState:k,ref:t},x,{children:[o.cloneElement(h,E),C?(0,S.jsxs)(xs,{display:"block",children:[P,(0,S.jsxs)(Qf,{ownerState:k,"aria-hidden":!0,className:T.asterisk,children:[" ","*"]})]}):P]}))})),tg=eg;var ng=n(68599),rg=function(e){var t,n;return{formControl:{width:"100%",marginRight:"5px",marginLeft:"5px","& .MuiSwitch-switchBase.Mui-focusVisible":{color:e.palette.primary.contrastText,background:null===(t=e.palette.geoViewColor)||void 0===t?void 0:t.primary.light},"& .MuiFormControlLabel-label":{fontSize:e.palette.geoViewFontSize.default,color:null===(n=e.palette.geoViewColor)||void 0===n?void 0:n.primary.light,whiteSpace:"nowrap"}}}},ig=["title"];function og(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 ag(e){for(var t=1;t{const{classes:t,variant:n,animation:r,hasChildren:i,width:o,height:a}=e,s={root:["root",n,r,i&&"withChildren",i&&!o&&"fitContent",i&&!a&&"heightAuto"]};return(0,u.A)(s,Fy,t)})(g);return(0,F.jsx)(Wy,(0,s.A)({as:o,ref:t,className:(0,c.A)(m.root,i),ownerState:g},f,{style:(0,s.A)({width:p,height:a},d)}))})),Hy=qy;var Yy=["variant","width","height"];function Ky(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 Xy(e){var t=e.variant,n=e.width,r=void 0===n?250:n,i=e.height,o=void 0===i?250:i,a=(0,De.A)(e,Yy);return(0,F.jsx)(Hy,function(e){for(var t=1;t3&&void 0!==arguments[3]?arguments[3]:"horizontal",i=e?e.getBoundingClientRect():null,o=t.getBoundingClientRect(),a=n?n.getBoundingClientRect():null,s=!1,l=!1;return i&&(s="vertical"===r?i.bottom+10>o.top:i.right+10>o.left),a&&(l="vertical"===r?o.bottom+10>a.top:o.right+10>a.left),s||l},C=function(){var e;Is.vF.logTraceCore("UI.SLIDER - removeLabelOverlap");for(var t=f?(null===(e=document.getElementById(f))||void 0===e?void 0:e.getElementsByClassName("MuiSlider-markLabel"))||[]:document.getElementsByClassName("MuiSlider-markLabel"),n=0;nt.length/2;u--)S(null,t[u],t[c])?t[u].classList.add("MuiSlider-markLabel-overlap"):(c=c-u!=1?u:c-1,a=u);if(i.push(o,a),i=(0,r.A)(new Set(i)).sort((function(e,t){return e-t})),t.length>2)for(var d=0,h=1;h{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${(0,Ce.A)(n.color||n.severity)}`]]}})((({theme:e})=>{const t="light"===e.palette.mode?Ke.e$:Ke.a,n="light"===e.palette.mode?Ke.a:Ke.e$;return(0,s.A)({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter((([,e])=>e.main&&e.light)).map((([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:n(e.palette[r].light,.9),[`& .${iv.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}}))),...Object.entries(e.palette).filter((([,e])=>e.main&&e.light)).map((([n])=>({props:{colorSeverity:n,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${n}Color`]:t(e.palette[n].light,.6),border:`1px solid ${(e.vars||e).palette[n].light}`,[`& .${iv.icon}`]:e.vars?{color:e.vars.palette.Alert[`${n}IconColor`]}:{color:e.palette[n].main}}}))),...Object.entries(e.palette).filter((([,e])=>e.main&&e.dark)).map((([t])=>({props:{colorSeverity:t,variant:"filled"},style:(0,s.A)({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${t}FilledColor`],backgroundColor:e.vars.palette.Alert[`${t}FilledBg`]}:{backgroundColor:"dark"===e.palette.mode?e.palette[t].dark:e.palette[t].main,color:e.palette.getContrastText(e.palette[t].main)})})))]})})),hv=(0,h.Ay)("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),pv=(0,h.Ay)("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),fv=(0,h.Ay)("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),gv={success:(0,F.jsx)(ov,{fontSize:"inherit"}),warning:(0,F.jsx)(av,{fontSize:"inherit"}),error:(0,F.jsx)(sv,{fontSize:"inherit"}),info:(0,F.jsx)(lv,{fontSize:"inherit"})},mv=o.forwardRef((function(e,t){const n=uv({props:e,name:"MuiAlert"}),{action:r,children:i,className:o,closeText:a="Close",color:d,components:h={},componentsProps:p={},icon:f,iconMapping:g=gv,onClose:m,role:y="alert",severity:v="success",slotProps:b={},slots:w={},variant:x="standard"}=n,A=(0,l.A)(n,cv),S=(0,s.A)({},n,{color:d,severity:v,variant:x,colorSeverity:d||v}),C=(e=>{const{variant:t,color:n,severity:r,classes:i}=e,o={root:["root",`color${(0,Ce.A)(n||r)}`,`${t}${(0,Ce.A)(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return(0,u.A)(o,rv,i)})(S),E={slots:(0,s.A)({closeButton:h.CloseButton,closeIcon:h.CloseIcon},w),slotProps:(0,s.A)({},p,b)},[_,k]=Q("closeButton",{elementType:Un,externalForwardedProps:E,ownerState:S}),[T,O]=Q("closeIcon",{elementType:ar,externalForwardedProps:E,ownerState:S});return(0,F.jsxs)(dv,(0,s.A)({role:y,elevation:0,ownerState:S,className:(0,c.A)(C.root,o),ref:t},A,{children:[!1!==f?(0,F.jsx)(hv,{ownerState:S,className:C.icon,children:f||g[v]||gv[v]}):null,(0,F.jsx)(pv,{ownerState:S,className:C.message,children:i}),null!=r?(0,F.jsx)(fv,{ownerState:S,className:C.action,children:r}):null,null==r&&m?(0,F.jsx)(fv,{ownerState:S,className:C.action,children:(0,F.jsx)(_,(0,s.A)({size:"small","aria-label":a,title:a,color:"inherit",onClick:m},k,{children:(0,F.jsx)(T,(0,s.A)({fontSize:"small"},O))}))}):null]}))}));function yv(e){return(0,R.Ay)("MuiSnackbarContent",e)}(0,L.A)("MuiSnackbarContent",["root","message","action"]);const vv=["action","className","message","role"],bv=(0,h.Ay)(G.A,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>{const t="light"===e.palette.mode?.8:.98,n=(0,Ke.tL)(e.palette.background.default,t);return(0,s.A)({},e.typography.body2,{color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(n),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})})),wv=(0,h.Ay)("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),xv=(0,h.Ay)("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),Av=o.forwardRef((function(e,t){const n=(0,k.A)({props:e,name:"MuiSnackbarContent"}),{action:r,className:i,message:o,role:a="alert"}=n,d=(0,l.A)(n,vv),h=n,p=(e=>{const{classes:t}=e;return(0,u.A)({root:["root"],action:["action"],message:["message"]},yv,t)})(h);return(0,F.jsxs)(bv,(0,s.A)({role:a,square:!0,elevation:6,className:(0,c.A)(p.root,i),ownerState:h,ref:t},d,{children:[(0,F.jsx)(wv,{className:p.message,ownerState:h,children:o}),r?(0,F.jsx)(xv,{className:p.action,ownerState:h,children:r}):null]}))}));function Sv(e){return(0,R.Ay)("MuiSnackbar",e)}(0,L.A)("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const Cv=["onEnter","onExited"],Ev=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],_v=(0,h.Ay)("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${(0,Ce.A)(n.anchorOrigin.vertical)}${(0,Ce.A)(n.anchorOrigin.horizontal)}`]]}})((({theme:e,ownerState:t})=>(0,s.A)({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},"top"===t.anchorOrigin.vertical?{top:8}:{bottom:8},"left"===t.anchorOrigin.horizontal&&{justifyContent:"flex-start"},"right"===t.anchorOrigin.horizontal&&{justifyContent:"flex-end"},{[e.breakpoints.up("sm")]:(0,s.A)({},"top"===t.anchorOrigin.vertical?{top:24}:{bottom:24},"center"===t.anchorOrigin.horizontal&&{left:"50%",right:"auto",transform:"translateX(-50%)"},"left"===t.anchorOrigin.horizontal&&{left:24,right:"auto"},"right"===t.anchorOrigin.horizontal&&{right:24,left:"auto"})}))),kv=o.forwardRef((function(e,t){const n=(0,k.A)({props:e,name:"MuiSnackbar"}),r=(0,I.A)(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{action:a,anchorOrigin:{vertical:c,horizontal:d}={vertical:"bottom",horizontal:"left"},autoHideDuration:h=null,children:p,className:f,ClickAwayListenerProps:g,ContentProps:m,disableWindowBlurListener:y=!1,message:v,open:b,TransitionComponent:w=si,transitionDuration:x=i,TransitionProps:{onEnter:A,onExited:S}={}}=n,C=(0,l.A)(n.TransitionProps,Cv),E=(0,l.A)(n,Ev),T=(0,s.A)({},n,{anchorOrigin:{vertical:c,horizontal:d},autoHideDuration:h,disableWindowBlurListener:y,TransitionComponent:w,transitionDuration:x}),O=(e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${(0,Ce.A)(n.vertical)}${(0,Ce.A)(n.horizontal)}`]};return(0,u.A)(r,Sv,t)})(T),{getRootProps:P,onClickAway:M}=function(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:i,resumeHideDuration:a}=e,l=(0,_.A)();o.useEffect((()=>{if(i)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){e.defaultPrevented||"Escape"!==e.key&&"Esc"!==e.key||null==r||r(e,"escapeKeyDown")}}),[i,r]);const c=(0,$e.A)(((e,t)=>{null==r||r(e,t)})),u=(0,$e.A)((e=>{r&&null!=e&&l.start(e,(()=>{c(null,"timeout")}))}));o.useEffect((()=>(i&&u(t),l.clear)),[i,t,u,l]);const d=l.clear,h=o.useCallback((()=>{null!=t&&u(null!=a?a:.5*t)}),[t,a,u]),p=e=>t=>{const n=e.onFocus;null==n||n(t),d()},f=e=>t=>{const n=e.onMouseEnter;null==n||n(t),d()},g=e=>t=>{const n=e.onMouseLeave;null==n||n(t),h()};return o.useEffect((()=>{if(!n&&i)return window.addEventListener("focus",h),window.addEventListener("blur",d),()=>{window.removeEventListener("focus",h),window.removeEventListener("blur",d)}}),[n,i,h,d]),{getRootProps:(t={})=>{const n=(0,s.A)({},(0,Wa.h)(e),(0,Wa.h)(t));return(0,s.A)({role:"presentation"},t,n,{onBlur:(r=n,e=>{const t=r.onBlur;null==t||t(e),h()}),onFocus:p(n),onMouseEnter:f(n),onMouseLeave:g(n)});var r},onClickAway:e=>{null==r||r(e,"clickaway")}}}((0,s.A)({},T)),[L,R]=o.useState(!0),j=(0,bn.Q)({elementType:_v,getSlotProps:P,externalForwardedProps:E,ownerState:T,additionalProps:{ref:t},className:[O.root,f]});return!b&&L?null:(0,F.jsx)(Vi.x,(0,s.A)({onClickAway:M},g,{children:(0,F.jsx)(_v,(0,s.A)({},j,{children:(0,F.jsx)(w,(0,s.A)({appear:!0,in:b,timeout:x,direction:"top"===c?"down":"up",onEnter:(e,t)=>{R(!1),A&&A(e,t)},onExited:e=>{R(!0),S&&S(e)}},C,{children:p||(0,F.jsx)(Av,(0,s.A)({message:v,action:a},m))}))}))}))})),Tv=kv;function Ov(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 Pv=(0,o.forwardRef)((function(e,t){return(0,F.jsx)(mv,function(e){for(var t=1;t{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})((({ownerState:e})=>(0,s.A)({flex:"1 1 auto"},"vertical"===e.orientation&&{marginLeft:12},e.alternativeLabel&&{position:"absolute",top:12,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"}))),Vv=(0,h.Ay)("span",{name:"MuiStepConnector",slot:"Line",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.line,t[`line${(0,Ce.A)(n.orientation)}`]]}})((({ownerState:e,theme:t})=>{const n="light"===t.palette.mode?t.palette.grey[400]:t.palette.grey[600];return(0,s.A)({display:"block",borderColor:t.vars?t.vars.palette.StepConnector.border:n},"horizontal"===e.orientation&&{borderTopStyle:"solid",borderTopWidth:1},"vertical"===e.orientation&&{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24})})),Bv=o.forwardRef((function(e,t){const n=(0,k.A)({props:e,name:"MuiStepConnector"}),{className:r}=n,i=(0,l.A)(n,Nv),{alternativeLabel:a,orientation:d="horizontal"}=o.useContext(Rv),{active:h,disabled:p,completed:f}=o.useContext(Fv),g=(0,s.A)({},n,{alternativeLabel:a,orientation:d,active:h,completed:f,disabled:p}),m=(e=>{const{classes:t,orientation:n,alternativeLabel:r,active:i,completed:o,disabled:a}=e,s={root:["root",n,r&&"alternativeLabel",i&&"active",o&&"completed",a&&"disabled"],line:["line",`line${(0,Ce.A)(n)}`]};return(0,u.A)(s,Dv,t)})(g);return(0,F.jsx)(zv,(0,s.A)({className:(0,c.A)(m.root,r),ref:t,ownerState:g},i,{children:(0,F.jsx)(Vv,{className:m.line,ownerState:g})}))})),$v=["activeStep","alternativeLabel","children","className","component","connector","nonLinear","orientation"],Gv=(0,h.Ay)("div",{name:"MuiStepper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel]}})((({ownerState:e})=>(0,s.A)({display:"flex"},"horizontal"===e.orientation&&{flexDirection:"row",alignItems:"center"},"vertical"===e.orientation&&{flexDirection:"column"},e.alternativeLabel&&{alignItems:"flex-start"}))),Uv=(0,F.jsx)(Bv,{}),Wv=o.forwardRef((function(e,t){const n=(0,k.A)({props:e,name:"MuiStepper"}),{activeStep:r=0,alternativeLabel:i=!1,children:a,className:d,component:h="div",connector:p=Uv,nonLinear:f=!1,orientation:g="horizontal"}=n,m=(0,l.A)(n,$v),y=(0,s.A)({},n,{alternativeLabel:i,orientation:g,component:h}),v=(e=>{const{orientation:t,alternativeLabel:n,classes:r}=e,i={root:["root",t,n&&"alternativeLabel"]};return(0,u.A)(i,Mv,r)})(y),b=o.Children.toArray(a).filter(Boolean),w=b.map(((e,t)=>o.cloneElement(e,(0,s.A)({index:t,last:t+1===b.length},e.props)))),x=o.useMemo((()=>({activeStep:r,alternativeLabel:i,connector:p,nonLinear:f,orientation:g})),[r,i,p,f,g]);return(0,F.jsx)(Rv.Provider,{value:x,children:(0,F.jsx)(Gv,(0,s.A)({as:h,ownerState:y,className:(0,c.A)(v.root,d),ref:t},m,{children:w}))})})),qv=Wv;function Hv(e){return(0,R.Ay)("MuiStep",e)}(0,L.A)("MuiStep",["root","horizontal","vertical","alternativeLabel","completed"]);const Yv=["active","children","className","component","completed","disabled","expanded","index","last"],Kv=(0,h.Ay)("div",{name:"MuiStep",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})((({ownerState:e})=>(0,s.A)({},"horizontal"===e.orientation&&{paddingLeft:8,paddingRight:8},e.alternativeLabel&&{flex:1,position:"relative"}))),Xv=o.forwardRef((function(e,t){const n=(0,k.A)({props:e,name:"MuiStep"}),{active:r,children:i,className:a,component:d="div",completed:h,disabled:p,expanded:f=!1,index:g,last:m}=n,y=(0,l.A)(n,Yv),{activeStep:v,connector:b,alternativeLabel:w,orientation:x,nonLinear:A}=o.useContext(Rv);let[S=!1,C=!1,E=!1]=[r,h,p];v===g?S=void 0===r||r:!A&&v>g?C=void 0===h||h:!A&&v({index:g,last:m,expanded:f,icon:g+1,active:S,completed:C,disabled:E})),[g,m,f,S,C,E]),T=(0,s.A)({},n,{active:S,orientation:x,alternativeLabel:w,completed:C,disabled:E,expanded:f,component:d}),O=(e=>{const{classes:t,orientation:n,alternativeLabel:r,completed:i}=e,o={root:["root",n,r&&"alternativeLabel",i&&"completed"]};return(0,u.A)(o,Hv,t)})(T),P=(0,F.jsxs)(Kv,(0,s.A)({as:d,className:(0,c.A)(O.root,a),ref:t,ownerState:T},y,{children:[b&&w&&0!==g?b:null,i]}));return(0,F.jsx)(Fv.Provider,{value:_,children:b&&!w&&0!==g?(0,F.jsxs)(o.Fragment,{children:[b,P]}):P})})),Zv=Xv,Jv=(0,Wn.A)((0,F.jsx)("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"}),"CheckCircle"),Qv=(0,Wn.A)((0,F.jsx)("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");var eb=n(41019);function tb(e){return(0,R.Ay)("MuiStepIcon",e)}const nb=(0,L.A)("MuiStepIcon",["root","active","completed","error","text"]);var rb;const ib=["active","className","completed","error","icon"],ob=(0,h.Ay)(eb.A,{name:"MuiStepIcon",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),color:(e.vars||e).palette.text.disabled,[`&.${nb.completed}`]:{color:(e.vars||e).palette.primary.main},[`&.${nb.active}`]:{color:(e.vars||e).palette.primary.main},[`&.${nb.error}`]:{color:(e.vars||e).palette.error.main}}))),ab=(0,h.Ay)("text",{name:"MuiStepIcon",slot:"Text",overridesResolver:(e,t)=>t.text})((({theme:e})=>({fill:(e.vars||e).palette.primary.contrastText,fontSize:e.typography.caption.fontSize,fontFamily:e.typography.fontFamily}))),sb=o.forwardRef((function(e,t){const n=(0,k.A)({props:e,name:"MuiStepIcon"}),{active:r=!1,className:i,completed:o=!1,error:a=!1,icon:d}=n,h=(0,l.A)(n,ib),p=(0,s.A)({},n,{active:r,completed:o,error:a}),f=(e=>{const{classes:t,active:n,completed:r,error:i}=e,o={root:["root",n&&"active",r&&"completed",i&&"error"],text:["text"]};return(0,u.A)(o,tb,t)})(p);if("number"==typeof d||"string"==typeof d){const e=(0,c.A)(i,f.root);return a?(0,F.jsx)(ob,(0,s.A)({as:Qv,className:e,ref:t,ownerState:p},h)):o?(0,F.jsx)(ob,(0,s.A)({as:Jv,className:e,ref:t,ownerState:p},h)):(0,F.jsxs)(ob,(0,s.A)({className:e,ref:t,ownerState:p},h,{children:[rb||(rb=(0,F.jsx)("circle",{cx:"12",cy:"12",r:"12"})),(0,F.jsx)(ab,{className:f.text,x:"12",y:"12",textAnchor:"middle",dominantBaseline:"central",ownerState:p,children:d})]}))}return d}));function lb(e){return(0,R.Ay)("MuiStepLabel",e)}const cb=(0,L.A)("MuiStepLabel",["root","horizontal","vertical","label","active","completed","error","disabled","iconContainer","alternativeLabel","labelContainer"]),ub=["children","className","componentsProps","error","icon","optional","slotProps","StepIconComponent","StepIconProps"],db=(0,h.Ay)("span",{name:"MuiStepLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation]]}})((({ownerState:e})=>(0,s.A)({display:"flex",alignItems:"center",[`&.${cb.alternativeLabel}`]:{flexDirection:"column"},[`&.${cb.disabled}`]:{cursor:"default"}},"vertical"===e.orientation&&{textAlign:"left",padding:"8px 0"}))),hb=(0,h.Ay)("span",{name:"MuiStepLabel",slot:"Label",overridesResolver:(e,t)=>t.label})((({theme:e})=>(0,s.A)({},e.typography.body2,{display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),[`&.${cb.active}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${cb.completed}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${cb.alternativeLabel}`]:{marginTop:16},[`&.${cb.error}`]:{color:(e.vars||e).palette.error.main}}))),pb=(0,h.Ay)("span",{name:"MuiStepLabel",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})((()=>({flexShrink:0,display:"flex",paddingRight:8,[`&.${cb.alternativeLabel}`]:{paddingRight:0}}))),fb=(0,h.Ay)("span",{name:"MuiStepLabel",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})((({theme:e})=>({width:"100%",color:(e.vars||e).palette.text.secondary,[`&.${cb.alternativeLabel}`]:{textAlign:"center"}}))),gb=o.forwardRef((function(e,t){var n;const r=(0,k.A)({props:e,name:"MuiStepLabel"}),{children:i,className:a,componentsProps:d={},error:h=!1,icon:p,optional:f,slotProps:g={},StepIconComponent:m,StepIconProps:y}=r,v=(0,l.A)(r,ub),{alternativeLabel:b,orientation:w}=o.useContext(Rv),{active:x,disabled:A,completed:S,icon:C}=o.useContext(Fv),E=p||C;let _=m;E&&!_&&(_=sb);const T=(0,s.A)({},r,{active:x,alternativeLabel:b,completed:S,disabled:A,error:h,orientation:w}),O=(e=>{const{classes:t,orientation:n,active:r,completed:i,error:o,disabled:a,alternativeLabel:s}=e,l={root:["root",n,o&&"error",a&&"disabled",s&&"alternativeLabel"],label:["label",r&&"active",i&&"completed",o&&"error",a&&"disabled",s&&"alternativeLabel"],iconContainer:["iconContainer",r&&"active",i&&"completed",o&&"error",a&&"disabled",s&&"alternativeLabel"],labelContainer:["labelContainer",s&&"alternativeLabel"]};return(0,u.A)(l,lb,t)})(T),P=null!=(n=g.label)?n:d.label;return(0,F.jsxs)(db,(0,s.A)({className:(0,c.A)(O.root,a),ref:t,ownerState:T},v,{children:[E||_?(0,F.jsx)(pb,{className:O.iconContainer,ownerState:T,children:(0,F.jsx)(_,(0,s.A)({completed:S,active:x,error:h,icon:E},y))}):null,(0,F.jsxs)(fb,{className:O.labelContainer,ownerState:T,children:[i?(0,F.jsx)(hb,(0,s.A)({ownerState:T},P,{className:(0,c.A)(O.label,null==P?void 0:P.className),children:i})):null,f]})]}))}));gb.muiName="StepLabel";const mb=gb;function yb(e){return(0,R.Ay)("MuiStepContent",e)}(0,L.A)("MuiStepContent",["root","last","transition"]);const vb=["children","className","TransitionComponent","transitionDuration","TransitionProps"],bb=(0,h.Ay)("div",{name:"MuiStepContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.last&&t.last]}})((({ownerState:e,theme:t})=>(0,s.A)({marginLeft:12,paddingLeft:20,paddingRight:8,borderLeft:t.vars?`1px solid ${t.vars.palette.StepContent.border}`:`1px solid ${"light"===t.palette.mode?t.palette.grey[400]:t.palette.grey[600]}`},e.last&&{borderLeft:"none"}))),wb=(0,h.Ay)($,{name:"MuiStepContent",slot:"Transition",overridesResolver:(e,t)=>t.transition})({}),xb=o.forwardRef((function(e,t){const n=(0,k.A)({props:e,name:"MuiStepContent"}),{children:r,className:i,TransitionComponent:a=$,transitionDuration:d="auto",TransitionProps:h}=n,p=(0,l.A)(n,vb),{orientation:f}=o.useContext(Rv),{active:g,last:m,expanded:y}=o.useContext(Fv),v=(0,s.A)({},n,{last:m}),b=(e=>{const{classes:t,last:n}=e,r={root:["root",n&&"last"],transition:["transition"]};return(0,u.A)(r,yb,t)})(v);let w=d;return"auto"!==d||a.muiSupportAuto||(w=void 0),(0,F.jsx)(bb,(0,s.A)({className:(0,c.A)(b.root,i),ref:t,ownerState:v},p,{children:(0,F.jsx)(wb,(0,s.A)({as:a,in:g||y,className:b.transition,ownerState:v,timeout:w,unmountOnExit:!0},h,{children:r}))}))}));function Ab(e){return(0,R.Ay)("MuiStepButton",e)}const Sb=(0,L.A)("MuiStepButton",["root","horizontal","vertical","touchRipple"]),Cb=["children","className","icon","optional"],Eb=(0,h.Ay)(ae.A,{name:"MuiStepButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Sb.touchRipple}`]:t.touchRipple},t.root,t[n.orientation]]}})((({ownerState:e})=>(0,s.A)({width:"100%",padding:"24px 16px",margin:"-24px -16px",boxSizing:"content-box"},"vertical"===e.orientation&&{justifyContent:"flex-start",padding:"8px",margin:"-8px"},{[`& .${Sb.touchRipple}`]:{color:"rgba(0, 0, 0, 0.3)"}}))),_b=o.forwardRef((function(e,t){const n=(0,k.A)({props:e,name:"MuiStepButton"}),{children:r,className:i,icon:a,optional:d}=n,h=(0,l.A)(n,Cb),{disabled:p,active:f}=o.useContext(Fv),{orientation:g}=o.useContext(Rv),m=(0,s.A)({},n,{orientation:g}),y=(e=>{const{classes:t,orientation:n}=e,r={root:["root",n],touchRipple:["touchRipple"]};return(0,u.A)(r,Ab,t)})(m),v={icon:a,optional:d},b=(0,wd.A)(r,["StepLabel"])?o.cloneElement(r,v):(0,F.jsx)(mb,(0,s.A)({},v,{children:r}));return(0,F.jsx)(Eb,(0,s.A)({focusRipple:!0,disabled:p,TouchRippleProps:{className:y.touchRipple},className:(0,c.A)(y.root,i),ref:t,ownerState:m,"aria-current":f?"step":void 0},h,{children:b}))}));var kb=function(e){var t;return{stepperContainer:{padding:15,width:500,minWidth:150,border:"0.5px solid grey",flexWrap:"wrap","& .MuiSvgIcon-root.Mui-active":{color:"#90caf9"},"& .MuiSvgIcon-root.Mui-completed":{color:"#666666"}},actionContainer:{marginTop:20,width:"100%",display:"flex",flexWrap:"wrap",flexDirection:"row",justifyContent:"space-between","&>*:first-child":{width:"100%",marginBottom:8},"& > button":{width:"30%"},"& > button > *":{textAlign:"center"}},disabledButton:{color:"".concat(null===(t=e.palette.geoViewColor)||void 0===t?void 0:t.primary.contrastText,"!important")}}};function Tb(e){var t=e.className,n=e.style,r=e.stepperId,s=e.orientation,l=e.alternativeLabel,c=e.nonLinear,u=e.buttonedLabels,d=e.steps,h=e.backButtonText,p=e.nextButtonText,f=e.resetButtonText,g=(0,I.A)(),m=kb(g),y=(0,o.useState)(0),v=(0,i.A)(y,2),b=v[0],w=v[1],x=(0,o.useState)({}),A=(0,i.A)(x,2),S=A[0],C=A[1],E=(0,o.useState)(!1),_=(0,i.A)(E,2),k=_[0],T=_[1],O=function(){return d&&d.length},P=function(){return Object.keys(S).length},M=function(){return P()===O()},L=function(){if(c){var e=b!==O()-1||M()?b+1:d.findIndex((function(e,t){return!(t in S)}));M()&&e!==O()&&T(!0),c&&e===d.length&&T(!0),w(e)}c||w((function(e){return e+1})),c||b!==d.length-1||T(!0)},R=void 0!==s?s:"horizontal",j=d.findIndex((function(e){return e.disableStepMovement})),D=b===j;return(0,F.jsx)(a.A,{children:(0,F.jsxs)(qv,{className:"".concat(m.stepperContainer," ").concat(t&&t),style:n||void 0,id:r||"",orientation:R,activeStep:b,alternativeLabel:"horizontal"===R&&(void 0===l||l),nonLinear:c||u||!1,children:[null==d?void 0:d.map((function(e,t){return(0,F.jsx)(Zv,{completed:c?S[t]:void 0,children:(0,F.jsxs)(F.Fragment,{children:[u||(0,F.jsx)(mb,{children:(0,F.jsx)(Fo.A,{variant:"caption",children:e.label})}),"vertical"===s&&(0,F.jsx)(xb,{children:"string"==typeof e.description?(0,F.jsx)(sm.S,{htmlContent:e.description}):e.description}),u&&(0,F.jsx)(_b,{onClick:(n=t,function(){w(n)}),children:e.label})]})},e.label);var n})),(0,F.jsx)(a.A,{sx:m.actionContainer,children:(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(Fo.A,{children:k?"Steps Completed":"Step ".concat(b+1)}),!k&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(zi,{type:"text",disabled:b<1,sx:b<1?m.disabledButton:{},onClick:function(){w((function(e){return e-1}))},children:h||"Back"}),(0,F.jsx)(zi,{type:"text",onClick:L,disabled:D,sx:D?m.disabledButton:{},children:p||"Next"}),c&&b!==d.length&&(S[b]?(0,F.jsxs)(Fo.A,{variant:"caption",sx:{display:"inline-block"},children:["Step ",b+1," already completed"]}):(0,F.jsx)(zi,{type:"text",onClick:function(){var e=S;e[b]=!0,C(e),L()},children:P()===O()-1?"Finish":"Complete Step"}))]}),k&&(0,F.jsx)(zi,{type:"text",onClick:function(){w(0),C({}),T(!1)},children:f||"Reset"})]})})]})})}var Ob=function(e){return{stepper:{color:e.palette.text.primary}}},Pb=["steps"];function Ib(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 Mb(e){for(var t=1;t{const{ownerState:n}=e;return[{[`& .${Db.label}`]:t.label},t.root,t[`labelPlacement${(0,Ce.A)(n.labelPlacement)}`]]}})((({theme:e,ownerState:t})=>(0,s.A)({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Db.disabled}`]:{cursor:"default"}},"start"===t.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===t.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===t.labelPlacement&&{flexDirection:"column",marginLeft:16},{[`& .${Db.label}`]:{[`&.${Db.disabled}`]:{color:(e.vars||e).palette.text.disabled}}}))),Vb=(0,h.Ay)("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${Db.error}`]:{color:(e.vars||e).palette.error.main}}))),Bb=o.forwardRef((function(e,t){var n,r;const i=(0,k.A)({props:e,name:"MuiFormControlLabel"}),{className:a,componentsProps:d={},control:h,disabled:p,disableTypography:f,label:g,labelPlacement:m="end",required:y,slotProps:v={}}=i,b=(0,l.A)(i,Nb),w=(0,Wm.A)(),x=null!=(n=null!=p?p:h.props.disabled)?n:null==w?void 0:w.disabled,A=null!=y?y:h.props.required,S={disabled:x,required:A};["checked","name","onChange","value","inputRef"].forEach((e=>{void 0===h.props[e]&&void 0!==i[e]&&(S[e]=i[e])}));const C=(0,Um.A)({props:i,muiFormControl:w,states:["error"]}),E=(0,s.A)({},i,{disabled:x,labelPlacement:m,required:A,error:C.error}),_=(e=>{const{classes:t,disabled:n,labelPlacement:r,error:i,required:o}=e,a={root:["root",n&&"disabled",`labelPlacement${(0,Ce.A)(r)}`,i&&"error",o&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",i&&"error"]};return(0,u.A)(a,Fb,t)})(E),T=null!=(r=v.typography)?r:d.typography;let O=g;return null==O||O.type===Fo.A||f||(O=(0,F.jsx)(Fo.A,(0,s.A)({component:"span"},T,{className:(0,c.A)(_.label,null==T?void 0:T.className),children:O}))),(0,F.jsxs)(zb,(0,s.A)({className:(0,c.A)(_.root,a),ownerState:E,ref:t},b,{children:[o.cloneElement(h,S),A?(0,F.jsxs)(Nu,{display:"block",children:[O,(0,F.jsxs)(Vb,{ownerState:E,"aria-hidden":!0,className:_.asterisk,children:[" ","*"]})]}):O]}))})),$b=Bb;var Gb=n(68599),Ub=function(e){var t;return{formControl:{width:"100%",marginRight:"5px",marginLeft:"5px","& .MuiSwitch-switchBase.Mui-focusVisible":{color:e.palette.primary.contrastText,background:null===(t=e.palette.geoViewColor)||void 0===t?void 0:t.primary.light},"& .MuiFormControlLabel-label":{fontSize:e.palette.geoViewFontSize.default,color:"inherit",whiteSpace:"nowrap"}}}},Wb=["title"];function qb(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 Hb(e){for(var t=1;t{t.setState((t=>({...t,[e]:lg(n,t[e])})))}}function ug(e){return e instanceof Function}function dg(e,t){const n=[],r=e=>{e.forEach((e=>{n.push(e);const i=t(e);null!=i&&i.length&&r(i)}))};return r(e),n}function hg(e,t,n){let r,i=[];return o=>{let a;n.key&&n.debug&&(a=Date.now());const s=e(o),l=s.length!==i.length||s.some(((e,t)=>i[t]!==e));if(!l)return r;let c;if(i=s,n.key&&n.debug&&(c=Date.now()),r=t(...s),null==n||null==n.onChange||n.onChange(r),n.key&&n.debug&&null!=n&&n.debug()){const e=Math.round(100*(Date.now()-a))/100,t=Math.round(100*(Date.now()-c))/100,r=t/16,i=(e,t)=>{for(e=String(e);e.length{var n;return null!=(n=null==e?void 0:e.debugAll)?n:e[t]},key:!1,onChange:r}}const fg="debugHeaders";function gg(e,t,n){var r;let i={id:null!=(r=n.id)?r:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const e=[],t=n=>{n.subHeaders&&n.subHeaders.length&&n.subHeaders.map(t),e.push(n)};return t(i),e},getContext:()=>({table:e,header:i,column:t})};return e._features.forEach((t=>{null==t.createHeader||t.createHeader(i,e)})),i}const mg={createTable:e=>{e.getHeaderGroups=hg((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,n,r,i)=>{var o,a;const s=null!=(o=null==r?void 0:r.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?o:[],l=null!=(a=null==i?void 0:i.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?a:[];return yg(t,[...s,...n.filter((e=>!(null!=r&&r.includes(e.id)||null!=i&&i.includes(e.id)))),...l],e)}),pg(e.options,fg)),e.getCenterHeaderGroups=hg((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,n,r,i)=>yg(t,n=n.filter((e=>!(null!=r&&r.includes(e.id)||null!=i&&i.includes(e.id)))),e,"center")),pg(e.options,fg)),e.getLeftHeaderGroups=hg((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left]),((t,n,r)=>{var i;return yg(t,null!=(i=null==r?void 0:r.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?i:[],e,"left")}),pg(e.options,fg)),e.getRightHeaderGroups=hg((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right]),((t,n,r)=>{var i;return yg(t,null!=(i=null==r?void 0:r.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?i:[],e,"right")}),pg(e.options,fg)),e.getFooterGroups=hg((()=>[e.getHeaderGroups()]),(e=>[...e].reverse()),pg(e.options,fg)),e.getLeftFooterGroups=hg((()=>[e.getLeftHeaderGroups()]),(e=>[...e].reverse()),pg(e.options,fg)),e.getCenterFooterGroups=hg((()=>[e.getCenterHeaderGroups()]),(e=>[...e].reverse()),pg(e.options,fg)),e.getRightFooterGroups=hg((()=>[e.getRightHeaderGroups()]),(e=>[...e].reverse()),pg(e.options,fg)),e.getFlatHeaders=hg((()=>[e.getHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),pg(e.options,fg)),e.getLeftFlatHeaders=hg((()=>[e.getLeftHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),pg(e.options,fg)),e.getCenterFlatHeaders=hg((()=>[e.getCenterHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),pg(e.options,fg)),e.getRightFlatHeaders=hg((()=>[e.getRightHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),pg(e.options,fg)),e.getCenterLeafHeaders=hg((()=>[e.getCenterFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),pg(e.options,fg)),e.getLeftLeafHeaders=hg((()=>[e.getLeftFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),pg(e.options,fg)),e.getRightLeafHeaders=hg((()=>[e.getRightFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),pg(e.options,fg)),e.getLeafHeaders=hg((()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()]),((e,t,n)=>{var r,i,o,a,s,l;return[...null!=(r=null==(i=e[0])?void 0:i.headers)?r:[],...null!=(o=null==(a=t[0])?void 0:a.headers)?o:[],...null!=(s=null==(l=n[0])?void 0:l.headers)?s:[]].map((e=>e.getLeafHeaders())).flat()}),pg(e.options,fg))}};function yg(e,t,n,r){var i,o;let a=0;const s=function(e,t){void 0===t&&(t=1),a=Math.max(a,t),e.filter((e=>e.getIsVisible())).forEach((e=>{var n;null!=(n=e.columns)&&n.length&&s(e.columns,t+1)}),0)};s(e);let l=[];const c=(e,t)=>{const i={depth:t,id:[r,`${t}`].filter(Boolean).join("_"),headers:[]},o=[];e.forEach((e=>{const a=[...o].reverse()[0];let s,l=!1;if(e.column.depth===i.depth&&e.column.parent?s=e.column.parent:(s=e.column,l=!0),a&&(null==a?void 0:a.column)===s)a.subHeaders.push(e);else{const i=gg(n,s,{id:[r,t,s.id,null==e?void 0:e.id].filter(Boolean).join("_"),isPlaceholder:l,placeholderId:l?`${o.filter((e=>e.column===s)).length}`:void 0,depth:t,index:o.length});i.subHeaders.push(e),o.push(i)}i.headers.push(e),e.headerGroup=i})),l.push(i),t>0&&c(o,t-1)},u=t.map(((e,t)=>gg(n,e,{depth:a,index:t})));c(u,a-1),l.reverse();const d=e=>e.filter((e=>e.column.getIsVisible())).map((e=>{let t=0,n=0,r=[0];e.subHeaders&&e.subHeaders.length?(r=[],d(e.subHeaders).forEach((e=>{let{colSpan:n,rowSpan:i}=e;t+=n,r.push(i)}))):t=1;return n+=Math.min(...r),e.colSpan=t,e.rowSpan=n,{colSpan:t,rowSpan:n}}));return d(null!=(i=null==(o=l[0])?void 0:o.headers)?i:[]),l}const vg={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},bg={getDefaultColumnDef:()=>vg,getInitialState:e=>({columnSizing:{},columnSizingInfo:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]},...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:cg("columnSizing",e),onColumnSizingInfoChange:cg("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,r,i;const o=t.getState().columnSizing[e.id];return Math.min(Math.max(null!=(n=e.columnDef.minSize)?n:vg.minSize,null!=(r=null!=o?o:e.columnDef.size)?r:vg.size),null!=(i=e.columnDef.maxSize)?i:vg.maxSize)},e.getStart=hg((e=>[e,Hg(t,e),t.getState().columnSizing]),((t,n)=>n.slice(0,e.getIndex(t)).reduce(((e,t)=>e+t.getSize()),0)),pg(t.options,"debugColumns")),e.getAfter=hg((e=>[e,Hg(t,e),t.getState().columnSizing]),((t,n)=>n.slice(e.getIndex(t)+1).reduce(((e,t)=>e+t.getSize()),0)),pg(t.options,"debugColumns")),e.resetSize=()=>{t.setColumnSizing((t=>{let{[e.id]:n,...r}=t;return r}))},e.getCanResize=()=>{var n,r;return(null==(n=e.columnDef.enableResizing)||n)&&(null==(r=t.options.enableColumnResizing)||r)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let t=0;const n=e=>{var r;e.subHeaders.length?e.subHeaders.forEach(n):t+=null!=(r=e.column.getSize())?r:0};return n(e),t},e.getStart=()=>{if(e.index>0){const t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},e.getResizeHandler=n=>{const r=t.getColumn(e.column.id),i=null==r?void 0:r.getCanResize();return o=>{if(!r||!i)return;if(null==o.persist||o.persist(),wg(o)&&o.touches&&o.touches.length>1)return;const a=e.getSize(),s=e?e.getLeafHeaders().map((e=>[e.column.id,e.column.getSize()])):[[r.id,r.getSize()]],l=wg(o)?Math.round(o.touches[0].clientX):o.clientX,c={},u=(e,n)=>{"number"==typeof n&&(t.setColumnSizingInfo((e=>{var r,i;const o="rtl"===t.options.columnResizeDirection?-1:1,a=(n-(null!=(r=null==e?void 0:e.startOffset)?r:0))*o,s=Math.max(a/(null!=(i=null==e?void 0:e.startSize)?i:0),-.999999);return e.columnSizingStart.forEach((e=>{let[t,n]=e;c[t]=Math.round(100*Math.max(n+n*s,0))/100})),{...e,deltaOffset:a,deltaPercentage:s}})),"onChange"!==t.options.columnResizeMode&&"end"!==e||t.setColumnSizing((e=>({...e,...c}))))},d=e=>u("move",e),h=e=>{u("end",e),t.setColumnSizingInfo((e=>({...e,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]})))},p=n||"undefined"!=typeof document?document:null,f={moveHandler:e=>d(e.clientX),upHandler:e=>{null==p||p.removeEventListener("mousemove",f.moveHandler),null==p||p.removeEventListener("mouseup",f.upHandler),h(e.clientX)}},g={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),d(e.touches[0].clientX),!1),upHandler:e=>{var t;null==p||p.removeEventListener("touchmove",g.moveHandler),null==p||p.removeEventListener("touchend",g.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),h(null==(t=e.touches[0])?void 0:t.clientX)}},m=!!function(){if("boolean"==typeof xg)return xg;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch(t){e=!1}return xg=e,xg}()&&{passive:!1};wg(o)?(null==p||p.addEventListener("touchmove",g.moveHandler,m),null==p||p.addEventListener("touchend",g.upHandler,m)):(null==p||p.addEventListener("mousemove",f.moveHandler,m),null==p||p.addEventListener("mouseup",f.upHandler,m)),t.setColumnSizingInfo((e=>({...e,startOffset:l,startSize:a,deltaOffset:0,deltaPercentage:0,columnSizingStart:s,isResizingColumn:r.id})))}}},createTable:e=>{e.setColumnSizing=t=>null==e.options.onColumnSizingChange?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>null==e.options.onColumnSizingInfoChange?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:null!=(n=e.initialState.columnSizing)?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}:null!=(n=e.initialState.columnSizingInfo)?n:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]})},e.getTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getLeftTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getLeftHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getCenterTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getCenterHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getRightTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getRightHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0}}};let xg=null;function wg(e){return"touchstart"===e.type}const Ag={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:cg("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var r,i;if(t){if(null!=(r=null!=(i=e.options.autoResetAll)?i:e.options.autoResetExpanded)?r:!e.options.manualExpanding){if(n)return;n=!0,e._queue((()=>{e.resetExpanded(),n=!1}))}}else e._queue((()=>{t=!0}))},e.setExpanded=t=>null==e.options.onExpandedChange?void 0:e.options.onExpandedChange(t),e.toggleAllRowsExpanded=t=>{(null!=t?t:!e.getIsAllRowsExpanded())?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=t=>{var n,r;e.setExpanded(t?{}:null!=(n=null==(r=e.initialState)?void 0:r.expanded)?n:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some((e=>e.getCanExpand())),e.getToggleAllRowsExpandedHandler=()=>t=>{null==t.persist||t.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const t=e.getState().expanded;return!0===t||Object.values(t).some(Boolean)},e.getIsAllRowsExpanded=()=>{const t=e.getState().expanded;return"boolean"==typeof t?!0===t:!!Object.keys(t).length&&!e.getRowModel().flatRows.some((e=>!e.getIsExpanded()))},e.getExpandedDepth=()=>{let t=0;return(!0===e.getState().expanded?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach((e=>{const n=e.split(".");t=Math.max(t,n.length)})),t},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded((r=>{var i;const o=!0===r||!(null==r||!r[e.id]);let a={};if(!0===r?Object.keys(t.getRowModel().rowsById).forEach((e=>{a[e]=!0})):a=r,n=null!=(i=n)?i:!o,!o&&n)return{...a,[e.id]:!0};if(o&&!n){const{[e.id]:t,...n}=a;return n}return r}))},e.getIsExpanded=()=>{var n;const r=t.getState().expanded;return!!(null!=(n=null==t.options.getIsRowExpanded?void 0:t.options.getIsRowExpanded(e))?n:!0===r||(null==r?void 0:r[e.id]))},e.getCanExpand=()=>{var n,r,i;return null!=(n=null==t.options.getRowCanExpand?void 0:t.options.getRowCanExpand(e))?n:(null==(r=t.options.enableExpanding)||r)&&!(null==(i=e.subRows)||!i.length)},e.getIsAllParentsExpanded=()=>{let n=!0,r=e;for(;n&&r.parentId;)r=t.getRow(r.parentId,!0),n=r.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const t=e.getCanExpand();return()=>{t&&e.toggleExpanded()}}}},Sg=(e,t,n)=>{var r;const i=n.toLowerCase();return Boolean(null==(r=e.getValue(t))||null==(r=r.toString())||null==(r=r.toLowerCase())?void 0:r.includes(i))};Sg.autoRemove=e=>Lg(e);const Cg=(e,t,n)=>{var r;return Boolean(null==(r=e.getValue(t))||null==(r=r.toString())?void 0:r.includes(n))};Cg.autoRemove=e=>Lg(e);const Eg=(e,t,n)=>{var r;return(null==(r=e.getValue(t))||null==(r=r.toString())?void 0:r.toLowerCase())===(null==n?void 0:n.toLowerCase())};Eg.autoRemove=e=>Lg(e);const _g=(e,t,n)=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)};_g.autoRemove=e=>Lg(e)||!(null!=e&&e.length);const kg=(e,t,n)=>!n.some((n=>{var r;return!(null!=(r=e.getValue(t))&&r.includes(n))}));kg.autoRemove=e=>Lg(e)||!(null!=e&&e.length);const Tg=(e,t,n)=>n.some((n=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)}));Tg.autoRemove=e=>Lg(e)||!(null!=e&&e.length);const Og=(e,t,n)=>e.getValue(t)===n;Og.autoRemove=e=>Lg(e);const Pg=(e,t,n)=>e.getValue(t)==n;Pg.autoRemove=e=>Lg(e);const Ig=(e,t,n)=>{let[r,i]=n;const o=e.getValue(t);return o>=r&&o<=i};Ig.resolveFilterValue=e=>{let[t,n]=e,r="number"!=typeof t?parseFloat(t):t,i="number"!=typeof n?parseFloat(n):n,o=null===t||Number.isNaN(r)?-1/0:r,a=null===n||Number.isNaN(i)?1/0:i;if(o>a){const e=o;o=a,a=e}return[o,a]},Ig.autoRemove=e=>Lg(e)||Lg(e[0])&&Lg(e[1]);const Mg={includesString:Sg,includesStringSensitive:Cg,equalsString:Eg,arrIncludes:_g,arrIncludesAll:kg,arrIncludesSome:Tg,equals:Og,weakEquals:Pg,inNumberRange:Ig};function Lg(e){return null==e||""===e}function Rg(e,t,n){return!(!e||!e.autoRemove)&&e.autoRemove(t,n)||void 0===t||"string"==typeof t&&!t}const jg={sum:(e,t,n)=>n.reduce(((t,n)=>{const r=n.getValue(e);return t+("number"==typeof r?r:0)}),0),min:(e,t,n)=>{let r;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(r>n||void 0===r&&n>=n)&&(r=n)})),r},max:(e,t,n)=>{let r;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(r=n)&&(r=n)})),r},extent:(e,t,n)=>{let r,i;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(void 0===r?n>=n&&(r=i=n):(r>n&&(r=n),i{let n=0,r=0;if(t.forEach((t=>{let i=t.getValue(e);null!=i&&(i=+i)>=i&&(++n,r+=i)})),n)return r/n},median:(e,t)=>{if(!t.length)return;const n=t.map((t=>t.getValue(e)));if(r=n,!Array.isArray(r)||!r.every((e=>"number"==typeof e)))return;var r;if(1===n.length)return n[0];const i=Math.floor(n.length/2),o=n.sort(((e,t)=>e-t));return n.length%2!=0?o[i]:(o[i-1]+o[i])/2},unique:(e,t)=>Array.from(new Set(t.map((t=>t.getValue(e)))).values()),uniqueCount:(e,t)=>new Set(t.map((t=>t.getValue(e)))).size,count:(e,t)=>t.length};const Fg={getInitialState:e=>({...e,pagination:{pageIndex:0,pageSize:10,...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:cg("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var r,i;if(t){if(null!=(r=null!=(i=e.options.autoResetAll)?i:e.options.autoResetPageIndex)?r:!e.options.manualPagination){if(n)return;n=!0,e._queue((()=>{e.resetPageIndex(),n=!1}))}}else e._queue((()=>{t=!0}))},e.setPagination=t=>null==e.options.onPaginationChange?void 0:e.options.onPaginationChange((e=>lg(t,e))),e.resetPagination=t=>{var n;e.setPagination(t?{pageIndex:0,pageSize:10}:null!=(n=e.initialState.pagination)?n:{pageIndex:0,pageSize:10})},e.setPageIndex=t=>{e.setPagination((n=>{let r=lg(t,n.pageIndex);const i=void 0===e.options.pageCount||-1===e.options.pageCount?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return r=Math.max(0,Math.min(r,i)),{...n,pageIndex:r}}))},e.resetPageIndex=t=>{var n,r;e.setPageIndex(t?0:null!=(n=null==(r=e.initialState)||null==(r=r.pagination)?void 0:r.pageIndex)?n:0)},e.resetPageSize=t=>{var n,r;e.setPageSize(t?10:null!=(n=null==(r=e.initialState)||null==(r=r.pagination)?void 0:r.pageSize)?n:10)},e.setPageSize=t=>{e.setPagination((e=>{const n=Math.max(1,lg(t,e.pageSize)),r=e.pageSize*e.pageIndex,i=Math.floor(r/n);return{...e,pageIndex:i,pageSize:n}}))},e.setPageCount=t=>e.setPagination((n=>{var r;let i=lg(t,null!=(r=e.options.pageCount)?r:-1);return"number"==typeof i&&(i=Math.max(-1,i)),{...n,pageCount:i}})),e.getPageOptions=hg((()=>[e.getPageCount()]),(e=>{let t=[];return e&&e>0&&(t=[...new Array(e)].fill(null).map(((e,t)=>t))),t}),pg(e.options,"debugTable")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:t}=e.getState().pagination,n=e.getPageCount();return-1===n||0!==n&&te.setPageIndex((e=>e-1)),e.nextPage=()=>e.setPageIndex((e=>e+1)),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var t;return null!=(t=e.options.pageCount)?t:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var t;return null!=(t=e.options.rowCount)?t:e.getPrePaginationRowModel().rows.length}}},Dg={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:cg("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>null==e.options.onRowSelectionChange?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:null!=(n=e.initialState.rowSelection)?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection((n=>{t=void 0!==t?t:!e.getIsAllRowsSelected();const r={...n},i=e.getPreGroupedRowModel().flatRows;return t?i.forEach((e=>{e.getCanSelect()&&(r[e.id]=!0)})):i.forEach((e=>{delete r[e.id]})),r}))},e.toggleAllPageRowsSelected=t=>e.setRowSelection((n=>{const r=void 0!==t?t:!e.getIsAllPageRowsSelected(),i={...n};return e.getRowModel().rows.forEach((t=>{Ng(i,t.id,r,!0,e)})),i})),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=hg((()=>[e.getState().rowSelection,e.getCoreRowModel()]),((t,n)=>Object.keys(t).length?zg(e,n):{rows:[],flatRows:[],rowsById:{}}),pg(e.options,"debugTable")),e.getFilteredSelectedRowModel=hg((()=>[e.getState().rowSelection,e.getFilteredRowModel()]),((t,n)=>Object.keys(t).length?zg(e,n):{rows:[],flatRows:[],rowsById:{}}),pg(e.options,"debugTable")),e.getGroupedSelectedRowModel=hg((()=>[e.getState().rowSelection,e.getSortedRowModel()]),((t,n)=>Object.keys(t).length?zg(e,n):{rows:[],flatRows:[],rowsById:{}}),pg(e.options,"debugTable")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let r=Boolean(t.length&&Object.keys(n).length);return r&&t.some((e=>e.getCanSelect()&&!n[e.id]))&&(r=!1),r},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter((e=>e.getCanSelect())),{rowSelection:n}=e.getState();let r=!!t.length;return r&&t.some((e=>!n[e.id]))&&(r=!1),r},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys(null!=(t=e.getState().rowSelection)?t:{}).length;return n>0&&n{const t=e.getPaginationRowModel().flatRows;return!e.getIsAllPageRowsSelected()&&t.filter((e=>e.getCanSelect())).some((e=>e.getIsSelected()||e.getIsSomeSelected()))},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,r)=>{const i=e.getIsSelected();t.setRowSelection((o=>{var a;if(n=void 0!==n?n:!i,e.getCanSelect()&&i===n)return o;const s={...o};return Ng(s,e.id,n,null==(a=null==r?void 0:r.selectChildren)||a,t),s}))},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return Vg(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return"some"===Bg(e,n)},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return"all"===Bg(e,n)},e.getCanSelect=()=>{var n;return"function"==typeof t.options.enableRowSelection?t.options.enableRowSelection(e):null==(n=t.options.enableRowSelection)||n},e.getCanSelectSubRows=()=>{var n;return"function"==typeof t.options.enableSubRowSelection?t.options.enableSubRowSelection(e):null==(n=t.options.enableSubRowSelection)||n},e.getCanMultiSelect=()=>{var n;return"function"==typeof t.options.enableMultiRowSelection?t.options.enableMultiRowSelection(e):null==(n=t.options.enableMultiRowSelection)||n},e.getToggleSelectedHandler=()=>{const t=e.getCanSelect();return n=>{var r;t&&e.toggleSelected(null==(r=n.target)?void 0:r.checked)}}}},Ng=(e,t,n,r,i)=>{var o;const a=i.getRow(t,!0);n?(a.getCanMultiSelect()||Object.keys(e).forEach((t=>delete e[t])),a.getCanSelect()&&(e[t]=!0)):delete e[t],r&&null!=(o=a.subRows)&&o.length&&a.getCanSelectSubRows()&&a.subRows.forEach((t=>Ng(e,t.id,n,r,i)))};function zg(e,t){const n=e.getState().rowSelection,r=[],i={},o=function(e,t){return e.map((e=>{var t;const a=Vg(e,n);if(a&&(r.push(e),i[e.id]=e),null!=(t=e.subRows)&&t.length&&(e={...e,subRows:o(e.subRows)}),a)return e})).filter(Boolean)};return{rows:o(t.rows),flatRows:r,rowsById:i}}function Vg(e,t){var n;return null!=(n=t[e.id])&&n}function Bg(e,t,n){var r;if(null==(r=e.subRows)||!r.length)return!1;let i=!0,o=!1;return e.subRows.forEach((e=>{if((!o||i)&&(e.getCanSelect()&&(Vg(e,t)?o=!0:i=!1),e.subRows&&e.subRows.length)){const n=Bg(e,t);"all"===n?o=!0:"some"===n?(o=!0,i=!1):i=!1}})),i?"all":!!o&&"some"}const $g=/([0-9]+)/gm;function Gg(e,t){return e===t?0:e>t?1:-1}function Ug(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}function Wg(e,t){const n=e.split($g).filter(Boolean),r=t.split($g).filter(Boolean);for(;n.length&&r.length;){const e=n.shift(),t=r.shift(),i=parseInt(e,10),o=parseInt(t,10),a=[i,o].sort();if(isNaN(a[0])){if(e>t)return 1;if(t>e)return-1}else{if(isNaN(a[1]))return isNaN(i)?-1:1;if(i>o)return 1;if(o>i)return-1}}return n.length-r.length}const qg={alphanumeric:(e,t,n)=>Wg(Ug(e.getValue(n)).toLowerCase(),Ug(t.getValue(n)).toLowerCase()),alphanumericCaseSensitive:(e,t,n)=>Wg(Ug(e.getValue(n)),Ug(t.getValue(n))),text:(e,t,n)=>Gg(Ug(e.getValue(n)).toLowerCase(),Ug(t.getValue(n)).toLowerCase()),textCaseSensitive:(e,t,n)=>Gg(Ug(e.getValue(n)),Ug(t.getValue(n))),datetime:(e,t,n)=>{const r=e.getValue(n),i=t.getValue(n);return r>i?1:rGg(e.getValue(n),t.getValue(n))};function Hg(e,t){return t?"center"===t?e.getCenterVisibleLeafColumns():"left"===t?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const Yg=[mg,{getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:cg("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility((t=>({...t,[e.id]:null!=n?n:!e.getIsVisible()})))},e.getIsVisible=()=>{var n,r;const i=e.columns;return null==(n=i.length?i.some((e=>e.getIsVisible())):null==(r=t.getState().columnVisibility)?void 0:r[e.id])||n},e.getCanHide=()=>{var n,r;return(null==(n=e.columnDef.enableHiding)||n)&&(null==(r=t.options.enableHiding)||r)},e.getToggleVisibilityHandler=()=>t=>{null==e.toggleVisibility||e.toggleVisibility(t.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=hg((()=>[e.getAllCells(),t.getState().columnVisibility]),(e=>e.filter((e=>e.column.getIsVisible()))),pg(t.options,"debugRows")),e.getVisibleCells=hg((()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()]),((e,t,n)=>[...e,...t,...n]),pg(t.options,"debugRows"))},createTable:e=>{const t=(t,n)=>hg((()=>[n(),n().filter((e=>e.getIsVisible())).map((e=>e.id)).join("_")]),(e=>e.filter((e=>null==e.getIsVisible?void 0:e.getIsVisible()))),pg(e.options,"debugColumns"));e.getVisibleFlatColumns=t(0,(()=>e.getAllFlatColumns())),e.getVisibleLeafColumns=t(0,(()=>e.getAllLeafColumns())),e.getLeftVisibleLeafColumns=t(0,(()=>e.getLeftLeafColumns())),e.getRightVisibleLeafColumns=t(0,(()=>e.getRightLeafColumns())),e.getCenterVisibleLeafColumns=t(0,(()=>e.getCenterLeafColumns())),e.setColumnVisibility=t=>null==e.options.onColumnVisibilityChange?void 0:e.options.onColumnVisibilityChange(t),e.resetColumnVisibility=t=>{var n;e.setColumnVisibility(t?{}:null!=(n=e.initialState.columnVisibility)?n:{})},e.toggleAllColumnsVisible=t=>{var n;t=null!=(n=t)?n:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce(((e,n)=>({...e,[n.id]:t||!(null!=n.getCanHide&&n.getCanHide())})),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some((e=>!(null!=e.getIsVisible&&e.getIsVisible()))),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some((e=>null==e.getIsVisible?void 0:e.getIsVisible())),e.getToggleAllColumnsVisibilityHandler=()=>t=>{var n;e.toggleAllColumnsVisible(null==(n=t.target)?void 0:n.checked)}}},{getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:cg("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=hg((e=>[Hg(t,e)]),(t=>t.findIndex((t=>t.id===e.id))),pg(t.options,"debugColumns")),e.getIsFirstColumn=n=>{var r;return(null==(r=Hg(t,n)[0])?void 0:r.id)===e.id},e.getIsLastColumn=n=>{var r;const i=Hg(t,n);return(null==(r=i[i.length-1])?void 0:r.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>null==e.options.onColumnOrderChange?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:null!=(n=e.initialState.columnOrder)?n:[])},e._getOrderColumnsFn=hg((()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode]),((e,t,n)=>r=>{let i=[];if(null!=e&&e.length){const t=[...e],n=[...r];for(;n.length&&t.length;){const e=t.shift(),r=n.findIndex((t=>t.id===e));r>-1&&i.push(n.splice(r,1)[0])}i=[...i,...n]}else i=r;return function(e,t,n){if(null==t||!t.length||!n)return e;const r=e.filter((e=>!t.includes(e.id)));return"remove"===n?r:[...t.map((t=>e.find((e=>e.id===t)))).filter(Boolean),...r]}(i,t,n)}),pg(e.options,"debugTable"))}},{getInitialState:e=>({columnPinning:{left:[],right:[]},rowPinning:{top:[],bottom:[]},...e}),getDefaultOptions:e=>({onColumnPinningChange:cg("columnPinning",e),onRowPinningChange:cg("rowPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const r=e.getLeafColumns().map((e=>e.id)).filter(Boolean);t.setColumnPinning((e=>{var t,i,o,a,s,l;return"right"===n?{left:(null!=(o=null==e?void 0:e.left)?o:[]).filter((e=>!(null!=r&&r.includes(e)))),right:[...(null!=(a=null==e?void 0:e.right)?a:[]).filter((e=>!(null!=r&&r.includes(e)))),...r]}:"left"===n?{left:[...(null!=(s=null==e?void 0:e.left)?s:[]).filter((e=>!(null!=r&&r.includes(e)))),...r],right:(null!=(l=null==e?void 0:e.right)?l:[]).filter((e=>!(null!=r&&r.includes(e))))}:{left:(null!=(t=null==e?void 0:e.left)?t:[]).filter((e=>!(null!=r&&r.includes(e)))),right:(null!=(i=null==e?void 0:e.right)?i:[]).filter((e=>!(null!=r&&r.includes(e))))}}))},e.getCanPin=()=>e.getLeafColumns().some((e=>{var n,r,i;return(null==(n=e.columnDef.enablePinning)||n)&&(null==(r=null!=(i=t.options.enableColumnPinning)?i:t.options.enablePinning)||r)})),e.getIsPinned=()=>{const n=e.getLeafColumns().map((e=>e.id)),{left:r,right:i}=t.getState().columnPinning,o=n.some((e=>null==r?void 0:r.includes(e))),a=n.some((e=>null==i?void 0:i.includes(e)));return o?"left":!!a&&"right"},e.getPinnedIndex=()=>{var n,r;const i=e.getIsPinned();return i?null!=(n=null==(r=t.getState().columnPinning)||null==(r=r[i])?void 0:r.indexOf(e.id))?n:-1:0}},createRow:(e,t)=>{e.pin=(n,r,i)=>{const o=r?e.getLeafRows().map((e=>{let{id:t}=e;return t})):[],a=i?e.getParentRows().map((e=>{let{id:t}=e;return t})):[],s=new Set([...a,e.id,...o]);t.setRowPinning((e=>{var t,r,i,o,a,l;return"bottom"===n?{top:(null!=(i=null==e?void 0:e.top)?i:[]).filter((e=>!(null!=s&&s.has(e)))),bottom:[...(null!=(o=null==e?void 0:e.bottom)?o:[]).filter((e=>!(null!=s&&s.has(e)))),...Array.from(s)]}:"top"===n?{top:[...(null!=(a=null==e?void 0:e.top)?a:[]).filter((e=>!(null!=s&&s.has(e)))),...Array.from(s)],bottom:(null!=(l=null==e?void 0:e.bottom)?l:[]).filter((e=>!(null!=s&&s.has(e))))}:{top:(null!=(t=null==e?void 0:e.top)?t:[]).filter((e=>!(null!=s&&s.has(e)))),bottom:(null!=(r=null==e?void 0:e.bottom)?r:[]).filter((e=>!(null!=s&&s.has(e))))}}))},e.getCanPin=()=>{var n;const{enableRowPinning:r,enablePinning:i}=t.options;return"function"==typeof r?r(e):null==(n=null!=r?r:i)||n},e.getIsPinned=()=>{const n=[e.id],{top:r,bottom:i}=t.getState().rowPinning,o=n.some((e=>null==r?void 0:r.includes(e))),a=n.some((e=>null==i?void 0:i.includes(e)));return o?"top":!!a&&"bottom"},e.getPinnedIndex=()=>{var n,r;const i=e.getIsPinned();if(!i)return-1;const o=null==(n=t._getPinnedRows(i))?void 0:n.map((e=>{let{id:t}=e;return t}));return null!=(r=null==o?void 0:o.indexOf(e.id))?r:-1},e.getCenterVisibleCells=hg((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right]),((e,t,n)=>{const r=[...null!=t?t:[],...null!=n?n:[]];return e.filter((e=>!r.includes(e.column.id)))}),pg(t.options,"debugRows")),e.getLeftVisibleCells=hg((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.column.id===t)))).filter(Boolean).map((e=>({...e,position:"left"})))),pg(t.options,"debugRows")),e.getRightVisibleCells=hg((()=>[e._getAllVisibleCells(),t.getState().columnPinning.right]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.column.id===t)))).filter(Boolean).map((e=>({...e,position:"right"})))),pg(t.options,"debugRows"))},createTable:e=>{e.setColumnPinning=t=>null==e.options.onColumnPinningChange?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,r;return e.setColumnPinning(t?{left:[],right:[]}:null!=(n=null==(r=e.initialState)?void 0:r.columnPinning)?n:{left:[],right:[]})},e.getIsSomeColumnsPinned=t=>{var n;const r=e.getState().columnPinning;var i,o;return t?Boolean(null==(n=r[t])?void 0:n.length):Boolean((null==(i=r.left)?void 0:i.length)||(null==(o=r.right)?void 0:o.length))},e.getLeftLeafColumns=hg((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.id===t)))).filter(Boolean)),pg(e.options,"debugColumns")),e.getRightLeafColumns=hg((()=>[e.getAllLeafColumns(),e.getState().columnPinning.right]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.id===t)))).filter(Boolean)),pg(e.options,"debugColumns")),e.getCenterLeafColumns=hg((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((e,t,n)=>{const r=[...null!=t?t:[],...null!=n?n:[]];return e.filter((e=>!r.includes(e.id)))}),pg(e.options,"debugColumns")),e.setRowPinning=t=>null==e.options.onRowPinningChange?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,r;return e.setRowPinning(t?{top:[],bottom:[]}:null!=(n=null==(r=e.initialState)?void 0:r.rowPinning)?n:{top:[],bottom:[]})},e.getIsSomeRowsPinned=t=>{var n;const r=e.getState().rowPinning;var i,o;return t?Boolean(null==(n=r[t])?void 0:n.length):Boolean((null==(i=r.top)?void 0:i.length)||(null==(o=r.bottom)?void 0:o.length))},e._getPinnedRows=hg((t=>[e.getRowModel().rows,e.getState().rowPinning[t],t]),((t,n,r)=>{var i;return(null==(i=e.options.keepPinnedRows)||i?(null!=n?n:[]).map((t=>{const n=e.getRow(t,!0);return n.getIsAllParentsExpanded()?n:null})):(null!=n?n:[]).map((e=>t.find((t=>t.id===e))))).filter(Boolean).map((e=>({...e,position:r})))}),pg(e.options,"debugRows")),e.getTopRows=()=>e._getPinnedRows("top"),e.getBottomRows=()=>e._getPinnedRows("bottom"),e.getCenterRows=hg((()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom]),((e,t,n)=>{const r=new Set([...null!=t?t:[],...null!=n?n:[]]);return e.filter((e=>!r.has(e.id)))}),pg(e.options,"debugRows"))}},{getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],globalFilter:void 0,...e}),getDefaultOptions:e=>({onColumnFiltersChange:cg("columnFilters",e),onGlobalFilterChange:cg("globalFilter",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100,globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const r=null==(n=e.getCoreRowModel().flatRows[0])||null==(n=n._getAllCellsByColumnId()[t.id])?void 0:n.getValue();return"string"==typeof r||"number"==typeof r}}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=null==n?void 0:n.getValue(e.id);return"string"==typeof r?Mg.includesString:"number"==typeof r?Mg.inNumberRange:"boolean"==typeof r||null!==r&&"object"==typeof r?Mg.equals:Array.isArray(r)?Mg.arrIncludes:Mg.weakEquals},e.getFilterFn=()=>{var n,r;return ug(e.columnDef.filterFn)?e.columnDef.filterFn:"auto"===e.columnDef.filterFn?e.getAutoFilterFn():null!=(n=null==(r=t.options.filterFns)?void 0:r[e.columnDef.filterFn])?n:Mg[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,r,i;return(null==(n=e.columnDef.enableColumnFilter)||n)&&(null==(r=t.options.enableColumnFilters)||r)&&(null==(i=t.options.enableFilters)||i)&&!!e.accessorFn},e.getCanGlobalFilter=()=>{var n,r,i,o;return(null==(n=e.columnDef.enableGlobalFilter)||n)&&(null==(r=t.options.enableGlobalFilter)||r)&&(null==(i=t.options.enableFilters)||i)&&(null==(o=null==t.options.getColumnCanGlobalFilter?void 0:t.options.getColumnCanGlobalFilter(e))||o)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return null==(n=t.getState().columnFilters)||null==(n=n.find((t=>t.id===e.id)))?void 0:n.value},e.getFilterIndex=()=>{var n,r;return null!=(n=null==(r=t.getState().columnFilters)?void 0:r.findIndex((t=>t.id===e.id)))?n:-1},e.setFilterValue=n=>{t.setColumnFilters((t=>{const r=e.getFilterFn(),i=null==t?void 0:t.find((t=>t.id===e.id)),o=lg(n,i?i.value:void 0);var a;if(Rg(r,o,e))return null!=(a=null==t?void 0:t.filter((t=>t.id!==e.id)))?a:[];const s={id:e.id,value:o};var l;return i?null!=(l=null==t?void 0:t.map((t=>t.id===e.id?s:t)))?l:[]:null!=t&&t.length?[...t,s]:[s]}))},e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.getGlobalAutoFilterFn=()=>Mg.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return ug(r)?r:"auto"===r?e.getGlobalAutoFilterFn():null!=(t=null==(n=e.options.filterFns)?void 0:n[r])?t:Mg[r]},e.setColumnFilters=t=>{const n=e.getAllLeafColumns();null==e.options.onColumnFiltersChange||e.options.onColumnFiltersChange((e=>{var r;return null==(r=lg(t,e))?void 0:r.filter((e=>{const t=n.find((t=>t.id===e.id));if(t){if(Rg(t.getFilterFn(),e.value,t))return!1}return!0}))}))},e.setGlobalFilter=t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)},e.resetColumnFilters=t=>{var n,r;e.setColumnFilters(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.columnFilters)?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel()),e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},{getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:cg("sorting",e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let r=!1;for(const t of n){const n=null==t?void 0:t.getValue(e.id);if("[object Date]"===Object.prototype.toString.call(n))return qg.datetime;if("string"==typeof n&&(r=!0,n.split($g).length>1))return qg.alphanumeric}return r?qg.text:qg.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return"string"==typeof(null==n?void 0:n.getValue(e.id))?"asc":"desc"},e.getSortingFn=()=>{var n,r;if(!e)throw new Error;return ug(e.columnDef.sortingFn)?e.columnDef.sortingFn:"auto"===e.columnDef.sortingFn?e.getAutoSortingFn():null!=(n=null==(r=t.options.sortingFns)?void 0:r[e.columnDef.sortingFn])?n:qg[e.columnDef.sortingFn]},e.toggleSorting=(n,r)=>{const i=e.getNextSortingOrder(),o=null!=n;t.setSorting((a=>{const s=null==a?void 0:a.find((t=>t.id===e.id)),l=null==a?void 0:a.findIndex((t=>t.id===e.id));let c,u=[],d=o?n:"desc"===i;var h;(c=null!=a&&a.length&&e.getCanMultiSort()&&r?s?"toggle":"add":null!=a&&a.length&&l!==a.length-1?"replace":s?"toggle":"replace","toggle"===c&&(o||i||(c="remove")),"add"===c)?(u=[...a,{id:e.id,desc:d}],u.splice(0,u.length-(null!=(h=t.options.maxMultiSortColCount)?h:Number.MAX_SAFE_INTEGER))):u="toggle"===c?a.map((t=>t.id===e.id?{...t,desc:d}:t)):"remove"===c?a.filter((t=>t.id!==e.id)):[{id:e.id,desc:d}];return u}))},e.getFirstSortDir=()=>{var n,r;return(null!=(n=null!=(r=e.columnDef.sortDescFirst)?r:t.options.sortDescFirst)?n:"desc"===e.getAutoSortDir())?"desc":"asc"},e.getNextSortingOrder=n=>{var r,i;const o=e.getFirstSortDir(),a=e.getIsSorted();return a?!!(a===o||null!=(r=t.options.enableSortingRemoval)&&!r||n&&null!=(i=t.options.enableMultiRemove)&&!i)&&("desc"===a?"asc":"desc"):o},e.getCanSort=()=>{var n,r;return(null==(n=e.columnDef.enableSorting)||n)&&(null==(r=t.options.enableSorting)||r)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,r;return null!=(n=null!=(r=e.columnDef.enableMultiSort)?r:t.options.enableMultiSort)?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const r=null==(n=t.getState().sorting)?void 0:n.find((t=>t.id===e.id));return!!r&&(r.desc?"desc":"asc")},e.getSortIndex=()=>{var n,r;return null!=(n=null==(r=t.getState().sorting)?void 0:r.findIndex((t=>t.id===e.id)))?n:-1},e.clearSorting=()=>{t.setSorting((t=>null!=t&&t.length?t.filter((t=>t.id!==e.id)):[]))},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return r=>{n&&(null==r.persist||r.persist(),null==e.toggleSorting||e.toggleSorting(void 0,!!e.getCanMultiSort()&&(null==t.options.isMultiSortEvent?void 0:t.options.isMultiSortEvent(r))))}}},createTable:e=>{e.setSorting=t=>null==e.options.onSortingChange?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,r;e.setSorting(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.sorting)?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},{getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return null!=(t=null==(n=e.getValue())||null==n.toString?void 0:n.toString())?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:cg("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping((t=>null!=t&&t.includes(e.id)?t.filter((t=>t!==e.id)):[...null!=t?t:[],e.id]))},e.getCanGroup=()=>{var n,r,i,o;return null!=(n=null==(r=null!=(i=null==(o=e.columnDef.enableGrouping)||o)?i:t.options.enableGrouping)||r)?n:!!e.accessorFn},e.getIsGrouped=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const t=e.getCanGroup();return()=>{t&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=null==n?void 0:n.getValue(e.id);return"number"==typeof r?jg.sum:"[object Date]"===Object.prototype.toString.call(r)?jg.extent:void 0},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return ug(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:"auto"===e.columnDef.aggregationFn?e.getAutoAggregationFn():null!=(n=null==(r=t.options.aggregationFns)?void 0:r[e.columnDef.aggregationFn])?n:jg[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>null==e.options.onGroupingChange?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,r;e.setGrouping(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.grouping)?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const r=t.getColumn(n);return null!=r&&r.columnDef.getGroupingValue?(e._groupingValuesCache[n]=r.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,r)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var t;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!(null==(t=n.subRows)||!t.length)}}},Ag,Fg,Dg,bg];function Kg(e){var t;(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");let n={_features:Yg};const r=n._features.reduce(((e,t)=>Object.assign(e,null==t.getDefaultOptions?void 0:t.getDefaultOptions(n))),{});let i={...null!=(t=e.initialState)?t:{}};n._features.forEach((e=>{var t;i=null!=(t=null==e.getInitialState?void 0:e.getInitialState(i))?t:i}));const o=[];let a=!1;const s={_features:Yg,options:{...r,...e},initialState:i,_queue:e=>{o.push(e),a||(a=!0,Promise.resolve().then((()=>{for(;o.length;)o.shift()();a=!1})).catch((e=>setTimeout((()=>{throw e})))))},reset:()=>{n.setState(n.initialState)},setOptions:e=>{const t=lg(e,n.options);n.options=(e=>n.options.mergeOptions?n.options.mergeOptions(r,e):{...r,...e})(t)},getState:()=>n.options.state,setState:e=>{null==n.options.onStateChange||n.options.onStateChange(e)},_getRowId:(e,t,r)=>{var i;return null!=(i=null==n.options.getRowId?void 0:n.options.getRowId(e,t,r))?i:`${r?[r.id,t].join("."):t}`},getCoreRowModel:()=>(n._getCoreRowModel||(n._getCoreRowModel=n.options.getCoreRowModel(n)),n._getCoreRowModel()),getRowModel:()=>n.getPaginationRowModel(),getRow:(e,t)=>{let r=(t?n.getPrePaginationRowModel():n.getRowModel()).rowsById[e];if(!r&&(r=n.getCoreRowModel().rowsById[e],!r))throw new Error;return r},_getDefaultColumnDef:hg((()=>[n.options.defaultColumn]),(e=>{var t;return e=null!=(t=e)?t:{},{header:e=>{const t=e.header.column.columnDef;return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>{var t,n;return null!=(t=null==(n=e.renderValue())||null==n.toString?void 0:n.toString())?t:null},...n._features.reduce(((e,t)=>Object.assign(e,null==t.getDefaultColumnDef?void 0:t.getDefaultColumnDef())),{}),...e}}),pg(e,"debugColumns")),_getColumnDefs:()=>n.options.columns,getAllColumns:hg((()=>[n._getColumnDefs()]),(e=>{const t=function(e,r,i){return void 0===i&&(i=0),e.map((e=>{const o=function(e,t,n,r){var i,o;const a={...e._getDefaultColumnDef(),...t},s=a.accessorKey;let l,c=null!=(i=null!=(o=a.id)?o:s?s.replace(".","_"):void 0)?i:"string"==typeof a.header?a.header:void 0;if(a.accessorFn?l=a.accessorFn:s&&(l=s.includes(".")?e=>{let t=e;for(const e of s.split(".")){var n;t=null==(n=t)?void 0:n[e]}return t}:e=>e[a.accessorKey]),!c)throw new Error;let u={id:`${String(c)}`,accessorFn:l,parent:r,depth:n,columnDef:a,columns:[],getFlatColumns:hg((()=>[!0]),(()=>{var e;return[u,...null==(e=u.columns)?void 0:e.flatMap((e=>e.getFlatColumns()))]}),pg(e.options,"debugColumns")),getLeafColumns:hg((()=>[e._getOrderColumnsFn()]),(e=>{var t;if(null!=(t=u.columns)&&t.length){let t=u.columns.flatMap((e=>e.getLeafColumns()));return e(t)}return[u]}),pg(e.options,"debugColumns"))};for(const t of e._features)null==t.createColumn||t.createColumn(u,e);return u}(n,e,i,r),a=e;return o.columns=a.columns?t(a.columns,o,i+1):[],o}))};return t(e)}),pg(e,"debugColumns")),getAllFlatColumns:hg((()=>[n.getAllColumns()]),(e=>e.flatMap((e=>e.getFlatColumns()))),pg(e,"debugColumns")),_getAllFlatColumnsById:hg((()=>[n.getAllFlatColumns()]),(e=>e.reduce(((e,t)=>(e[t.id]=t,e)),{})),pg(e,"debugColumns")),getAllLeafColumns:hg((()=>[n.getAllColumns(),n._getOrderColumnsFn()]),((e,t)=>t(e.flatMap((e=>e.getLeafColumns())))),pg(e,"debugColumns")),getColumn:e=>n._getAllFlatColumnsById()[e]};Object.assign(n,s);for(let e=0;e{let s={id:t,index:r,original:n,depth:i,parentId:a,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(s._valuesCache.hasOwnProperty(t))return s._valuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?(s._valuesCache[t]=n.accessorFn(s.original,r),s._valuesCache[t]):void 0},getUniqueValues:t=>{if(s._uniqueValuesCache.hasOwnProperty(t))return s._uniqueValuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?n.columnDef.getUniqueValues?(s._uniqueValuesCache[t]=n.columnDef.getUniqueValues(s.original,r),s._uniqueValuesCache[t]):(s._uniqueValuesCache[t]=[s.getValue(t)],s._uniqueValuesCache[t]):void 0},renderValue:t=>{var n;return null!=(n=s.getValue(t))?n:e.options.renderFallbackValue},subRows:null!=o?o:[],getLeafRows:()=>dg(s.subRows,(e=>e.subRows)),getParentRow:()=>s.parentId?e.getRow(s.parentId,!0):void 0,getParentRows:()=>{let e=[],t=s;for(;;){const n=t.getParentRow();if(!n)break;e.push(n),t=n}return e.reverse()},getAllCells:hg((()=>[e.getAllLeafColumns()]),(t=>t.map((t=>function(e,t,n,r){const i={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(r),renderValue:()=>{var t;return null!=(t=i.getValue())?t:e.options.renderFallbackValue},getContext:hg((()=>[e,n,t,i]),((e,t,n,r)=>({table:e,column:t,row:n,cell:r,getValue:r.getValue,renderValue:r.renderValue})),pg(e.options,"debugCells"))};return e._features.forEach((r=>{null==r.createCell||r.createCell(i,n,t,e)}),{}),i}(e,s,t,t.id)))),pg(e.options,"debugRows")),_getAllCellsByColumnId:hg((()=>[s.getAllCells()]),(e=>e.reduce(((e,t)=>(e[t.column.id]=t,e)),{})),pg(e.options,"debugRows"))};for(let t=0;thg((()=>[e.getState().grouping,e.getPreGroupedRowModel()]),((t,n)=>{if(!n.rows.length||!t.length)return n;const r=t.filter((t=>e.getColumn(t))),i=[],o={},a=function(t,n,s){if(void 0===n&&(n=0),n>=r.length)return t.map((e=>(e.depth=n,i.push(e),o[e.id]=e,e.subRows&&(e.subRows=a(e.subRows,n+1,e.id)),e)));const l=r[n],c=function(e,t){const n=new Map;return e.reduce(((e,n)=>{const r=`${n.getGroupingValue(t)}`,i=e.get(r);return i?i.push(n):e.set(r,[n]),e}),n)}(t,l),u=Array.from(c.entries()).map(((t,c)=>{let[u,d]=t,h=`${l}:${u}`;h=s?`${s}>${h}`:h;const p=a(d,n+1,h),f=n?dg(d,(e=>e.subRows)):d,g=Xg(e,h,f[0].original,c,n,void 0,s);return Object.assign(g,{groupingColumnId:l,groupingValue:u,subRows:p,leafRows:f,getValue:t=>{if(r.includes(t)){if(g._valuesCache.hasOwnProperty(t))return g._valuesCache[t];var n;if(d[0])g._valuesCache[t]=null!=(n=d[0].getValue(t))?n:void 0;return g._valuesCache[t]}if(g._groupingValuesCache.hasOwnProperty(t))return g._groupingValuesCache[t];const i=e.getColumn(t),o=null==i?void 0:i.getAggregationFn();return o?(g._groupingValuesCache[t]=o(t,f,d),g._groupingValuesCache[t]):void 0}}),p.forEach((e=>{i.push(e),o[e.id]=e})),g}));return u},s=a(n.rows,0);return s.forEach((e=>{i.push(e),o[e.id]=e})),{rows:s,flatRows:i,rowsById:o}}),pg(e.options,"debugTable",0,(()=>{e._queue((()=>{e._autoResetExpanded(),e._autoResetPageIndex()}))})))}function Qg(e){const t=[],n=e=>{var r;t.push(e),null!=(r=e.subRows)&&r.length&&e.getIsExpanded()&&e.subRows.forEach(n)};return e.rows.forEach(n),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}} +function Kb(e,t){return"function"==typeof e?e(t):e}function Xb(e,t){return n=>{t.setState((t=>({...t,[e]:Kb(n,t[e])})))}}function Zb(e){return e instanceof Function}function Jb(e,t){const n=[],r=e=>{e.forEach((e=>{n.push(e);const i=t(e);null!=i&&i.length&&r(i)}))};return r(e),n}function Qb(e,t,n){let r,i=[];return o=>{let a;n.key&&n.debug&&(a=Date.now());const s=e(o),l=s.length!==i.length||s.some(((e,t)=>i[t]!==e));if(!l)return r;let c;if(i=s,n.key&&n.debug&&(c=Date.now()),r=t(...s),null==n||null==n.onChange||n.onChange(r),n.key&&n.debug&&null!=n&&n.debug()){const e=Math.round(100*(Date.now()-a))/100,t=Math.round(100*(Date.now()-c))/100,r=t/16,i=(e,t)=>{for(e=String(e);e.length{var n;return null!=(n=null==e?void 0:e.debugAll)?n:e[t]},key:!1,onChange:r}}const tw="debugHeaders";function nw(e,t,n){var r;let i={id:null!=(r=n.id)?r:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const e=[],t=n=>{n.subHeaders&&n.subHeaders.length&&n.subHeaders.map(t),e.push(n)};return t(i),e},getContext:()=>({table:e,header:i,column:t})};return e._features.forEach((t=>{null==t.createHeader||t.createHeader(i,e)})),i}const rw={createTable:e=>{e.getHeaderGroups=Qb((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,n,r,i)=>{var o,a;const s=null!=(o=null==r?void 0:r.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?o:[],l=null!=(a=null==i?void 0:i.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?a:[];return iw(t,[...s,...n.filter((e=>!(null!=r&&r.includes(e.id)||null!=i&&i.includes(e.id)))),...l],e)}),ew(e.options,tw)),e.getCenterHeaderGroups=Qb((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,n,r,i)=>iw(t,n=n.filter((e=>!(null!=r&&r.includes(e.id)||null!=i&&i.includes(e.id)))),e,"center")),ew(e.options,tw)),e.getLeftHeaderGroups=Qb((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left]),((t,n,r)=>{var i;return iw(t,null!=(i=null==r?void 0:r.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?i:[],e,"left")}),ew(e.options,tw)),e.getRightHeaderGroups=Qb((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right]),((t,n,r)=>{var i;return iw(t,null!=(i=null==r?void 0:r.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?i:[],e,"right")}),ew(e.options,tw)),e.getFooterGroups=Qb((()=>[e.getHeaderGroups()]),(e=>[...e].reverse()),ew(e.options,tw)),e.getLeftFooterGroups=Qb((()=>[e.getLeftHeaderGroups()]),(e=>[...e].reverse()),ew(e.options,tw)),e.getCenterFooterGroups=Qb((()=>[e.getCenterHeaderGroups()]),(e=>[...e].reverse()),ew(e.options,tw)),e.getRightFooterGroups=Qb((()=>[e.getRightHeaderGroups()]),(e=>[...e].reverse()),ew(e.options,tw)),e.getFlatHeaders=Qb((()=>[e.getHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),ew(e.options,tw)),e.getLeftFlatHeaders=Qb((()=>[e.getLeftHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),ew(e.options,tw)),e.getCenterFlatHeaders=Qb((()=>[e.getCenterHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),ew(e.options,tw)),e.getRightFlatHeaders=Qb((()=>[e.getRightHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),ew(e.options,tw)),e.getCenterLeafHeaders=Qb((()=>[e.getCenterFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),ew(e.options,tw)),e.getLeftLeafHeaders=Qb((()=>[e.getLeftFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),ew(e.options,tw)),e.getRightLeafHeaders=Qb((()=>[e.getRightFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),ew(e.options,tw)),e.getLeafHeaders=Qb((()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()]),((e,t,n)=>{var r,i,o,a,s,l;return[...null!=(r=null==(i=e[0])?void 0:i.headers)?r:[],...null!=(o=null==(a=t[0])?void 0:a.headers)?o:[],...null!=(s=null==(l=n[0])?void 0:l.headers)?s:[]].map((e=>e.getLeafHeaders())).flat()}),ew(e.options,tw))}};function iw(e,t,n,r){var i,o;let a=0;const s=function(e,t){void 0===t&&(t=1),a=Math.max(a,t),e.filter((e=>e.getIsVisible())).forEach((e=>{var n;null!=(n=e.columns)&&n.length&&s(e.columns,t+1)}),0)};s(e);let l=[];const c=(e,t)=>{const i={depth:t,id:[r,`${t}`].filter(Boolean).join("_"),headers:[]},o=[];e.forEach((e=>{const a=[...o].reverse()[0];let s,l=!1;if(e.column.depth===i.depth&&e.column.parent?s=e.column.parent:(s=e.column,l=!0),a&&(null==a?void 0:a.column)===s)a.subHeaders.push(e);else{const i=nw(n,s,{id:[r,t,s.id,null==e?void 0:e.id].filter(Boolean).join("_"),isPlaceholder:l,placeholderId:l?`${o.filter((e=>e.column===s)).length}`:void 0,depth:t,index:o.length});i.subHeaders.push(e),o.push(i)}i.headers.push(e),e.headerGroup=i})),l.push(i),t>0&&c(o,t-1)},u=t.map(((e,t)=>nw(n,e,{depth:a,index:t})));c(u,a-1),l.reverse();const d=e=>e.filter((e=>e.column.getIsVisible())).map((e=>{let t=0,n=0,r=[0];e.subHeaders&&e.subHeaders.length?(r=[],d(e.subHeaders).forEach((e=>{let{colSpan:n,rowSpan:i}=e;t+=n,r.push(i)}))):t=1;return n+=Math.min(...r),e.colSpan=t,e.rowSpan=n,{colSpan:t,rowSpan:n}}));return d(null!=(i=null==(o=l[0])?void 0:o.headers)?i:[]),l}const ow={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},aw={getDefaultColumnDef:()=>ow,getInitialState:e=>({columnSizing:{},columnSizingInfo:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]},...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:Xb("columnSizing",e),onColumnSizingInfoChange:Xb("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,r,i;const o=t.getState().columnSizing[e.id];return Math.min(Math.max(null!=(n=e.columnDef.minSize)?n:ow.minSize,null!=(r=null!=o?o:e.columnDef.size)?r:ow.size),null!=(i=e.columnDef.maxSize)?i:ow.maxSize)},e.getStart=Qb((e=>[e,Fw(t,e),t.getState().columnSizing]),((t,n)=>n.slice(0,e.getIndex(t)).reduce(((e,t)=>e+t.getSize()),0)),ew(t.options,"debugColumns")),e.getAfter=Qb((e=>[e,Fw(t,e),t.getState().columnSizing]),((t,n)=>n.slice(e.getIndex(t)+1).reduce(((e,t)=>e+t.getSize()),0)),ew(t.options,"debugColumns")),e.resetSize=()=>{t.setColumnSizing((t=>{let{[e.id]:n,...r}=t;return r}))},e.getCanResize=()=>{var n,r;return(null==(n=e.columnDef.enableResizing)||n)&&(null==(r=t.options.enableColumnResizing)||r)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let t=0;const n=e=>{var r;e.subHeaders.length?e.subHeaders.forEach(n):t+=null!=(r=e.column.getSize())?r:0};return n(e),t},e.getStart=()=>{if(e.index>0){const t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},e.getResizeHandler=n=>{const r=t.getColumn(e.column.id),i=null==r?void 0:r.getCanResize();return o=>{if(!r||!i)return;if(null==o.persist||o.persist(),lw(o)&&o.touches&&o.touches.length>1)return;const a=e.getSize(),s=e?e.getLeafHeaders().map((e=>[e.column.id,e.column.getSize()])):[[r.id,r.getSize()]],l=lw(o)?Math.round(o.touches[0].clientX):o.clientX,c={},u=(e,n)=>{"number"==typeof n&&(t.setColumnSizingInfo((e=>{var r,i;const o="rtl"===t.options.columnResizeDirection?-1:1,a=(n-(null!=(r=null==e?void 0:e.startOffset)?r:0))*o,s=Math.max(a/(null!=(i=null==e?void 0:e.startSize)?i:0),-.999999);return e.columnSizingStart.forEach((e=>{let[t,n]=e;c[t]=Math.round(100*Math.max(n+n*s,0))/100})),{...e,deltaOffset:a,deltaPercentage:s}})),"onChange"!==t.options.columnResizeMode&&"end"!==e||t.setColumnSizing((e=>({...e,...c}))))},d=e=>u("move",e),h=e=>{u("end",e),t.setColumnSizingInfo((e=>({...e,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]})))},p=n||"undefined"!=typeof document?document:null,f={moveHandler:e=>d(e.clientX),upHandler:e=>{null==p||p.removeEventListener("mousemove",f.moveHandler),null==p||p.removeEventListener("mouseup",f.upHandler),h(e.clientX)}},g={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),d(e.touches[0].clientX),!1),upHandler:e=>{var t;null==p||p.removeEventListener("touchmove",g.moveHandler),null==p||p.removeEventListener("touchend",g.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),h(null==(t=e.touches[0])?void 0:t.clientX)}},m=!!function(){if("boolean"==typeof sw)return sw;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch(t){e=!1}return sw=e,sw}()&&{passive:!1};lw(o)?(null==p||p.addEventListener("touchmove",g.moveHandler,m),null==p||p.addEventListener("touchend",g.upHandler,m)):(null==p||p.addEventListener("mousemove",f.moveHandler,m),null==p||p.addEventListener("mouseup",f.upHandler,m)),t.setColumnSizingInfo((e=>({...e,startOffset:l,startSize:a,deltaOffset:0,deltaPercentage:0,columnSizingStart:s,isResizingColumn:r.id})))}}},createTable:e=>{e.setColumnSizing=t=>null==e.options.onColumnSizingChange?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>null==e.options.onColumnSizingInfoChange?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:null!=(n=e.initialState.columnSizing)?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}:null!=(n=e.initialState.columnSizingInfo)?n:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]})},e.getTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getLeftTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getLeftHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getCenterTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getCenterHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getRightTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getRightHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0}}};let sw=null;function lw(e){return"touchstart"===e.type}const cw={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:Xb("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var r,i;if(t){if(null!=(r=null!=(i=e.options.autoResetAll)?i:e.options.autoResetExpanded)?r:!e.options.manualExpanding){if(n)return;n=!0,e._queue((()=>{e.resetExpanded(),n=!1}))}}else e._queue((()=>{t=!0}))},e.setExpanded=t=>null==e.options.onExpandedChange?void 0:e.options.onExpandedChange(t),e.toggleAllRowsExpanded=t=>{(null!=t?t:!e.getIsAllRowsExpanded())?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=t=>{var n,r;e.setExpanded(t?{}:null!=(n=null==(r=e.initialState)?void 0:r.expanded)?n:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some((e=>e.getCanExpand())),e.getToggleAllRowsExpandedHandler=()=>t=>{null==t.persist||t.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const t=e.getState().expanded;return!0===t||Object.values(t).some(Boolean)},e.getIsAllRowsExpanded=()=>{const t=e.getState().expanded;return"boolean"==typeof t?!0===t:!!Object.keys(t).length&&!e.getRowModel().flatRows.some((e=>!e.getIsExpanded()))},e.getExpandedDepth=()=>{let t=0;return(!0===e.getState().expanded?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach((e=>{const n=e.split(".");t=Math.max(t,n.length)})),t},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded((r=>{var i;const o=!0===r||!(null==r||!r[e.id]);let a={};if(!0===r?Object.keys(t.getRowModel().rowsById).forEach((e=>{a[e]=!0})):a=r,n=null!=(i=n)?i:!o,!o&&n)return{...a,[e.id]:!0};if(o&&!n){const{[e.id]:t,...n}=a;return n}return r}))},e.getIsExpanded=()=>{var n;const r=t.getState().expanded;return!!(null!=(n=null==t.options.getIsRowExpanded?void 0:t.options.getIsRowExpanded(e))?n:!0===r||(null==r?void 0:r[e.id]))},e.getCanExpand=()=>{var n,r,i;return null!=(n=null==t.options.getRowCanExpand?void 0:t.options.getRowCanExpand(e))?n:(null==(r=t.options.enableExpanding)||r)&&!(null==(i=e.subRows)||!i.length)},e.getIsAllParentsExpanded=()=>{let n=!0,r=e;for(;n&&r.parentId;)r=t.getRow(r.parentId,!0),n=r.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const t=e.getCanExpand();return()=>{t&&e.toggleExpanded()}}}},uw=(e,t,n)=>{var r;const i=n.toLowerCase();return Boolean(null==(r=e.getValue(t))||null==(r=r.toString())||null==(r=r.toLowerCase())?void 0:r.includes(i))};uw.autoRemove=e=>ww(e);const dw=(e,t,n)=>{var r;return Boolean(null==(r=e.getValue(t))||null==(r=r.toString())?void 0:r.includes(n))};dw.autoRemove=e=>ww(e);const hw=(e,t,n)=>{var r;return(null==(r=e.getValue(t))||null==(r=r.toString())?void 0:r.toLowerCase())===(null==n?void 0:n.toLowerCase())};hw.autoRemove=e=>ww(e);const pw=(e,t,n)=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)};pw.autoRemove=e=>ww(e)||!(null!=e&&e.length);const fw=(e,t,n)=>!n.some((n=>{var r;return!(null!=(r=e.getValue(t))&&r.includes(n))}));fw.autoRemove=e=>ww(e)||!(null!=e&&e.length);const gw=(e,t,n)=>n.some((n=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)}));gw.autoRemove=e=>ww(e)||!(null!=e&&e.length);const mw=(e,t,n)=>e.getValue(t)===n;mw.autoRemove=e=>ww(e);const yw=(e,t,n)=>e.getValue(t)==n;yw.autoRemove=e=>ww(e);const vw=(e,t,n)=>{let[r,i]=n;const o=e.getValue(t);return o>=r&&o<=i};vw.resolveFilterValue=e=>{let[t,n]=e,r="number"!=typeof t?parseFloat(t):t,i="number"!=typeof n?parseFloat(n):n,o=null===t||Number.isNaN(r)?-1/0:r,a=null===n||Number.isNaN(i)?1/0:i;if(o>a){const e=o;o=a,a=e}return[o,a]},vw.autoRemove=e=>ww(e)||ww(e[0])&&ww(e[1]);const bw={includesString:uw,includesStringSensitive:dw,equalsString:hw,arrIncludes:pw,arrIncludesAll:fw,arrIncludesSome:gw,equals:mw,weakEquals:yw,inNumberRange:vw};function ww(e){return null==e||""===e}function xw(e,t,n){return!(!e||!e.autoRemove)&&e.autoRemove(t,n)||void 0===t||"string"==typeof t&&!t}const Aw={sum:(e,t,n)=>n.reduce(((t,n)=>{const r=n.getValue(e);return t+("number"==typeof r?r:0)}),0),min:(e,t,n)=>{let r;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(r>n||void 0===r&&n>=n)&&(r=n)})),r},max:(e,t,n)=>{let r;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(r=n)&&(r=n)})),r},extent:(e,t,n)=>{let r,i;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(void 0===r?n>=n&&(r=i=n):(r>n&&(r=n),i{let n=0,r=0;if(t.forEach((t=>{let i=t.getValue(e);null!=i&&(i=+i)>=i&&(++n,r+=i)})),n)return r/n},median:(e,t)=>{if(!t.length)return;const n=t.map((t=>t.getValue(e)));if(r=n,!Array.isArray(r)||!r.every((e=>"number"==typeof e)))return;var r;if(1===n.length)return n[0];const i=Math.floor(n.length/2),o=n.sort(((e,t)=>e-t));return n.length%2!=0?o[i]:(o[i-1]+o[i])/2},unique:(e,t)=>Array.from(new Set(t.map((t=>t.getValue(e)))).values()),uniqueCount:(e,t)=>new Set(t.map((t=>t.getValue(e)))).size,count:(e,t)=>t.length};const Sw={getInitialState:e=>({...e,pagination:{pageIndex:0,pageSize:10,...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:Xb("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var r,i;if(t){if(null!=(r=null!=(i=e.options.autoResetAll)?i:e.options.autoResetPageIndex)?r:!e.options.manualPagination){if(n)return;n=!0,e._queue((()=>{e.resetPageIndex(),n=!1}))}}else e._queue((()=>{t=!0}))},e.setPagination=t=>null==e.options.onPaginationChange?void 0:e.options.onPaginationChange((e=>Kb(t,e))),e.resetPagination=t=>{var n;e.setPagination(t?{pageIndex:0,pageSize:10}:null!=(n=e.initialState.pagination)?n:{pageIndex:0,pageSize:10})},e.setPageIndex=t=>{e.setPagination((n=>{let r=Kb(t,n.pageIndex);const i=void 0===e.options.pageCount||-1===e.options.pageCount?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return r=Math.max(0,Math.min(r,i)),{...n,pageIndex:r}}))},e.resetPageIndex=t=>{var n,r;e.setPageIndex(t?0:null!=(n=null==(r=e.initialState)||null==(r=r.pagination)?void 0:r.pageIndex)?n:0)},e.resetPageSize=t=>{var n,r;e.setPageSize(t?10:null!=(n=null==(r=e.initialState)||null==(r=r.pagination)?void 0:r.pageSize)?n:10)},e.setPageSize=t=>{e.setPagination((e=>{const n=Math.max(1,Kb(t,e.pageSize)),r=e.pageSize*e.pageIndex,i=Math.floor(r/n);return{...e,pageIndex:i,pageSize:n}}))},e.setPageCount=t=>e.setPagination((n=>{var r;let i=Kb(t,null!=(r=e.options.pageCount)?r:-1);return"number"==typeof i&&(i=Math.max(-1,i)),{...n,pageCount:i}})),e.getPageOptions=Qb((()=>[e.getPageCount()]),(e=>{let t=[];return e&&e>0&&(t=[...new Array(e)].fill(null).map(((e,t)=>t))),t}),ew(e.options,"debugTable")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:t}=e.getState().pagination,n=e.getPageCount();return-1===n||0!==n&&te.setPageIndex((e=>e-1)),e.nextPage=()=>e.setPageIndex((e=>e+1)),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var t;return null!=(t=e.options.pageCount)?t:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var t;return null!=(t=e.options.rowCount)?t:e.getPrePaginationRowModel().rows.length}}},Cw={getInitialState:e=>({columnPinning:{left:[],right:[]},rowPinning:{top:[],bottom:[]},...e}),getDefaultOptions:e=>({onColumnPinningChange:Xb("columnPinning",e),onRowPinningChange:Xb("rowPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const r=e.getLeafColumns().map((e=>e.id)).filter(Boolean);t.setColumnPinning((e=>{var t,i,o,a,s,l;return"right"===n?{left:(null!=(o=null==e?void 0:e.left)?o:[]).filter((e=>!(null!=r&&r.includes(e)))),right:[...(null!=(a=null==e?void 0:e.right)?a:[]).filter((e=>!(null!=r&&r.includes(e)))),...r]}:"left"===n?{left:[...(null!=(s=null==e?void 0:e.left)?s:[]).filter((e=>!(null!=r&&r.includes(e)))),...r],right:(null!=(l=null==e?void 0:e.right)?l:[]).filter((e=>!(null!=r&&r.includes(e))))}:{left:(null!=(t=null==e?void 0:e.left)?t:[]).filter((e=>!(null!=r&&r.includes(e)))),right:(null!=(i=null==e?void 0:e.right)?i:[]).filter((e=>!(null!=r&&r.includes(e))))}}))},e.getCanPin=()=>e.getLeafColumns().some((e=>{var n,r,i;return(null==(n=e.columnDef.enablePinning)||n)&&(null==(r=null!=(i=t.options.enableColumnPinning)?i:t.options.enablePinning)||r)})),e.getIsPinned=()=>{const n=e.getLeafColumns().map((e=>e.id)),{left:r,right:i}=t.getState().columnPinning,o=n.some((e=>null==r?void 0:r.includes(e))),a=n.some((e=>null==i?void 0:i.includes(e)));return o?"left":!!a&&"right"},e.getPinnedIndex=()=>{var n,r;const i=e.getIsPinned();return i?null!=(n=null==(r=t.getState().columnPinning)||null==(r=r[i])?void 0:r.indexOf(e.id))?n:-1:0}},createRow:(e,t)=>{e.pin=(n,r,i)=>{const o=r?e.getLeafRows().map((e=>{let{id:t}=e;return t})):[],a=i?e.getParentRows().map((e=>{let{id:t}=e;return t})):[],s=new Set([...a,e.id,...o]);t.setRowPinning((e=>{var t,r,i,o,a,l;return"bottom"===n?{top:(null!=(i=null==e?void 0:e.top)?i:[]).filter((e=>!(null!=s&&s.has(e)))),bottom:[...(null!=(o=null==e?void 0:e.bottom)?o:[]).filter((e=>!(null!=s&&s.has(e)))),...Array.from(s)]}:"top"===n?{top:[...(null!=(a=null==e?void 0:e.top)?a:[]).filter((e=>!(null!=s&&s.has(e)))),...Array.from(s)],bottom:(null!=(l=null==e?void 0:e.bottom)?l:[]).filter((e=>!(null!=s&&s.has(e))))}:{top:(null!=(t=null==e?void 0:e.top)?t:[]).filter((e=>!(null!=s&&s.has(e)))),bottom:(null!=(r=null==e?void 0:e.bottom)?r:[]).filter((e=>!(null!=s&&s.has(e))))}}))},e.getCanPin=()=>{var n;const{enableRowPinning:r,enablePinning:i}=t.options;return"function"==typeof r?r(e):null==(n=null!=r?r:i)||n},e.getIsPinned=()=>{const n=[e.id],{top:r,bottom:i}=t.getState().rowPinning,o=n.some((e=>null==r?void 0:r.includes(e))),a=n.some((e=>null==i?void 0:i.includes(e)));return o?"top":!!a&&"bottom"},e.getPinnedIndex=()=>{var n,r;const i=e.getIsPinned();if(!i)return-1;const o=null==(n=t._getPinnedRows(i))?void 0:n.map((e=>{let{id:t}=e;return t}));return null!=(r=null==o?void 0:o.indexOf(e.id))?r:-1},e.getCenterVisibleCells=Qb((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right]),((e,t,n)=>{const r=[...null!=t?t:[],...null!=n?n:[]];return e.filter((e=>!r.includes(e.column.id)))}),ew(t.options,"debugRows")),e.getLeftVisibleCells=Qb((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.column.id===t)))).filter(Boolean).map((e=>({...e,position:"left"})))),ew(t.options,"debugRows")),e.getRightVisibleCells=Qb((()=>[e._getAllVisibleCells(),t.getState().columnPinning.right]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.column.id===t)))).filter(Boolean).map((e=>({...e,position:"right"})))),ew(t.options,"debugRows"))},createTable:e=>{e.setColumnPinning=t=>null==e.options.onColumnPinningChange?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,r;return e.setColumnPinning(t?{left:[],right:[]}:null!=(n=null==(r=e.initialState)?void 0:r.columnPinning)?n:{left:[],right:[]})},e.getIsSomeColumnsPinned=t=>{var n;const r=e.getState().columnPinning;var i,o;return t?Boolean(null==(n=r[t])?void 0:n.length):Boolean((null==(i=r.left)?void 0:i.length)||(null==(o=r.right)?void 0:o.length))},e.getLeftLeafColumns=Qb((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.id===t)))).filter(Boolean)),ew(e.options,"debugColumns")),e.getRightLeafColumns=Qb((()=>[e.getAllLeafColumns(),e.getState().columnPinning.right]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.id===t)))).filter(Boolean)),ew(e.options,"debugColumns")),e.getCenterLeafColumns=Qb((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((e,t,n)=>{const r=[...null!=t?t:[],...null!=n?n:[]];return e.filter((e=>!r.includes(e.id)))}),ew(e.options,"debugColumns")),e.setRowPinning=t=>null==e.options.onRowPinningChange?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,r;return e.setRowPinning(t?{top:[],bottom:[]}:null!=(n=null==(r=e.initialState)?void 0:r.rowPinning)?n:{top:[],bottom:[]})},e.getIsSomeRowsPinned=t=>{var n;const r=e.getState().rowPinning;var i,o;return t?Boolean(null==(n=r[t])?void 0:n.length):Boolean((null==(i=r.top)?void 0:i.length)||(null==(o=r.bottom)?void 0:o.length))},e._getPinnedRows=Qb((t=>[e.getRowModel().rows,e.getState().rowPinning[t],t]),((t,n,r)=>{var i;return(null==(i=e.options.keepPinnedRows)||i?(null!=n?n:[]).map((t=>{const n=e.getRow(t,!0);return n.getIsAllParentsExpanded()?n:null})):(null!=n?n:[]).map((e=>t.find((t=>t.id===e))))).filter(Boolean).map((e=>({...e,position:r})))}),ew(e.options,"debugRows")),e.getTopRows=()=>e._getPinnedRows("top"),e.getBottomRows=()=>e._getPinnedRows("bottom"),e.getCenterRows=Qb((()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom]),((e,t,n)=>{const r=new Set([...null!=t?t:[],...null!=n?n:[]]);return e.filter((e=>!r.has(e.id)))}),ew(e.options,"debugRows"))}},Ew={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:Xb("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>null==e.options.onRowSelectionChange?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:null!=(n=e.initialState.rowSelection)?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection((n=>{t=void 0!==t?t:!e.getIsAllRowsSelected();const r={...n},i=e.getPreGroupedRowModel().flatRows;return t?i.forEach((e=>{e.getCanSelect()&&(r[e.id]=!0)})):i.forEach((e=>{delete r[e.id]})),r}))},e.toggleAllPageRowsSelected=t=>e.setRowSelection((n=>{const r=void 0!==t?t:!e.getIsAllPageRowsSelected(),i={...n};return e.getRowModel().rows.forEach((t=>{_w(i,t.id,r,!0,e)})),i})),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=Qb((()=>[e.getState().rowSelection,e.getCoreRowModel()]),((t,n)=>Object.keys(t).length?kw(e,n):{rows:[],flatRows:[],rowsById:{}}),ew(e.options,"debugTable")),e.getFilteredSelectedRowModel=Qb((()=>[e.getState().rowSelection,e.getFilteredRowModel()]),((t,n)=>Object.keys(t).length?kw(e,n):{rows:[],flatRows:[],rowsById:{}}),ew(e.options,"debugTable")),e.getGroupedSelectedRowModel=Qb((()=>[e.getState().rowSelection,e.getSortedRowModel()]),((t,n)=>Object.keys(t).length?kw(e,n):{rows:[],flatRows:[],rowsById:{}}),ew(e.options,"debugTable")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let r=Boolean(t.length&&Object.keys(n).length);return r&&t.some((e=>e.getCanSelect()&&!n[e.id]))&&(r=!1),r},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter((e=>e.getCanSelect())),{rowSelection:n}=e.getState();let r=!!t.length;return r&&t.some((e=>!n[e.id]))&&(r=!1),r},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys(null!=(t=e.getState().rowSelection)?t:{}).length;return n>0&&n{const t=e.getPaginationRowModel().flatRows;return!e.getIsAllPageRowsSelected()&&t.filter((e=>e.getCanSelect())).some((e=>e.getIsSelected()||e.getIsSomeSelected()))},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,r)=>{const i=e.getIsSelected();t.setRowSelection((o=>{var a;if(n=void 0!==n?n:!i,e.getCanSelect()&&i===n)return o;const s={...o};return _w(s,e.id,n,null==(a=null==r?void 0:r.selectChildren)||a,t),s}))},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return Tw(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return"some"===Ow(e,n)},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return"all"===Ow(e,n)},e.getCanSelect=()=>{var n;return"function"==typeof t.options.enableRowSelection?t.options.enableRowSelection(e):null==(n=t.options.enableRowSelection)||n},e.getCanSelectSubRows=()=>{var n;return"function"==typeof t.options.enableSubRowSelection?t.options.enableSubRowSelection(e):null==(n=t.options.enableSubRowSelection)||n},e.getCanMultiSelect=()=>{var n;return"function"==typeof t.options.enableMultiRowSelection?t.options.enableMultiRowSelection(e):null==(n=t.options.enableMultiRowSelection)||n},e.getToggleSelectedHandler=()=>{const t=e.getCanSelect();return n=>{var r;t&&e.toggleSelected(null==(r=n.target)?void 0:r.checked)}}}},_w=(e,t,n,r,i)=>{var o;const a=i.getRow(t,!0);n?(a.getCanMultiSelect()||Object.keys(e).forEach((t=>delete e[t])),a.getCanSelect()&&(e[t]=!0)):delete e[t],r&&null!=(o=a.subRows)&&o.length&&a.getCanSelectSubRows()&&a.subRows.forEach((t=>_w(e,t.id,n,r,i)))};function kw(e,t){const n=e.getState().rowSelection,r=[],i={},o=function(e,t){return e.map((e=>{var t;const a=Tw(e,n);if(a&&(r.push(e),i[e.id]=e),null!=(t=e.subRows)&&t.length&&(e={...e,subRows:o(e.subRows)}),a)return e})).filter(Boolean)};return{rows:o(t.rows),flatRows:r,rowsById:i}}function Tw(e,t){var n;return null!=(n=t[e.id])&&n}function Ow(e,t,n){var r;if(null==(r=e.subRows)||!r.length)return!1;let i=!0,o=!1;return e.subRows.forEach((e=>{if((!o||i)&&(e.getCanSelect()&&(Tw(e,t)?o=!0:i=!1),e.subRows&&e.subRows.length)){const n=Ow(e,t);"all"===n?o=!0:"some"===n?(o=!0,i=!1):i=!1}})),i?"all":!!o&&"some"}const Pw=/([0-9]+)/gm;function Iw(e,t){return e===t?0:e>t?1:-1}function Mw(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}function Lw(e,t){const n=e.split(Pw).filter(Boolean),r=t.split(Pw).filter(Boolean);for(;n.length&&r.length;){const e=n.shift(),t=r.shift(),i=parseInt(e,10),o=parseInt(t,10),a=[i,o].sort();if(isNaN(a[0])){if(e>t)return 1;if(t>e)return-1}else{if(isNaN(a[1]))return isNaN(i)?-1:1;if(i>o)return 1;if(o>i)return-1}}return n.length-r.length}const Rw={alphanumeric:(e,t,n)=>Lw(Mw(e.getValue(n)).toLowerCase(),Mw(t.getValue(n)).toLowerCase()),alphanumericCaseSensitive:(e,t,n)=>Lw(Mw(e.getValue(n)),Mw(t.getValue(n))),text:(e,t,n)=>Iw(Mw(e.getValue(n)).toLowerCase(),Mw(t.getValue(n)).toLowerCase()),textCaseSensitive:(e,t,n)=>Iw(Mw(e.getValue(n)),Mw(t.getValue(n))),datetime:(e,t,n)=>{const r=e.getValue(n),i=t.getValue(n);return r>i?1:rIw(e.getValue(n),t.getValue(n))},jw={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:Xb("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility((t=>({...t,[e.id]:null!=n?n:!e.getIsVisible()})))},e.getIsVisible=()=>{var n,r;const i=e.columns;return null==(n=i.length?i.some((e=>e.getIsVisible())):null==(r=t.getState().columnVisibility)?void 0:r[e.id])||n},e.getCanHide=()=>{var n,r;return(null==(n=e.columnDef.enableHiding)||n)&&(null==(r=t.options.enableHiding)||r)},e.getToggleVisibilityHandler=()=>t=>{null==e.toggleVisibility||e.toggleVisibility(t.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=Qb((()=>[e.getAllCells(),t.getState().columnVisibility]),(e=>e.filter((e=>e.column.getIsVisible()))),ew(t.options,"debugRows")),e.getVisibleCells=Qb((()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()]),((e,t,n)=>[...e,...t,...n]),ew(t.options,"debugRows"))},createTable:e=>{const t=(t,n)=>Qb((()=>[n(),n().filter((e=>e.getIsVisible())).map((e=>e.id)).join("_")]),(e=>e.filter((e=>null==e.getIsVisible?void 0:e.getIsVisible()))),ew(e.options,"debugColumns"));e.getVisibleFlatColumns=t(0,(()=>e.getAllFlatColumns())),e.getVisibleLeafColumns=t(0,(()=>e.getAllLeafColumns())),e.getLeftVisibleLeafColumns=t(0,(()=>e.getLeftLeafColumns())),e.getRightVisibleLeafColumns=t(0,(()=>e.getRightLeafColumns())),e.getCenterVisibleLeafColumns=t(0,(()=>e.getCenterLeafColumns())),e.setColumnVisibility=t=>null==e.options.onColumnVisibilityChange?void 0:e.options.onColumnVisibilityChange(t),e.resetColumnVisibility=t=>{var n;e.setColumnVisibility(t?{}:null!=(n=e.initialState.columnVisibility)?n:{})},e.toggleAllColumnsVisible=t=>{var n;t=null!=(n=t)?n:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce(((e,n)=>({...e,[n.id]:t||!(null!=n.getCanHide&&n.getCanHide())})),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some((e=>!(null!=e.getIsVisible&&e.getIsVisible()))),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some((e=>null==e.getIsVisible?void 0:e.getIsVisible())),e.getToggleAllColumnsVisibilityHandler=()=>t=>{var n;e.toggleAllColumnsVisible(null==(n=t.target)?void 0:n.checked)}}};function Fw(e,t){return t?"center"===t?e.getCenterVisibleLeafColumns():"left"===t?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const Dw=[rw,jw,{getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:Xb("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=Qb((e=>[Fw(t,e)]),(t=>t.findIndex((t=>t.id===e.id))),ew(t.options,"debugColumns")),e.getIsFirstColumn=n=>{var r;return(null==(r=Fw(t,n)[0])?void 0:r.id)===e.id},e.getIsLastColumn=n=>{var r;const i=Fw(t,n);return(null==(r=i[i.length-1])?void 0:r.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>null==e.options.onColumnOrderChange?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:null!=(n=e.initialState.columnOrder)?n:[])},e._getOrderColumnsFn=Qb((()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode]),((e,t,n)=>r=>{let i=[];if(null!=e&&e.length){const t=[...e],n=[...r];for(;n.length&&t.length;){const e=t.shift(),r=n.findIndex((t=>t.id===e));r>-1&&i.push(n.splice(r,1)[0])}i=[...i,...n]}else i=r;return function(e,t,n){if(null==t||!t.length||!n)return e;const r=e.filter((e=>!t.includes(e.id)));return"remove"===n?r:[...t.map((t=>e.find((e=>e.id===t)))).filter(Boolean),...r]}(i,t,n)}),ew(e.options,"debugTable"))}},Cw,{getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],globalFilter:void 0,...e}),getDefaultOptions:e=>({onColumnFiltersChange:Xb("columnFilters",e),onGlobalFilterChange:Xb("globalFilter",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100,globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const r=null==(n=e.getCoreRowModel().flatRows[0])||null==(n=n._getAllCellsByColumnId()[t.id])?void 0:n.getValue();return"string"==typeof r||"number"==typeof r}}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=null==n?void 0:n.getValue(e.id);return"string"==typeof r?bw.includesString:"number"==typeof r?bw.inNumberRange:"boolean"==typeof r||null!==r&&"object"==typeof r?bw.equals:Array.isArray(r)?bw.arrIncludes:bw.weakEquals},e.getFilterFn=()=>{var n,r;return Zb(e.columnDef.filterFn)?e.columnDef.filterFn:"auto"===e.columnDef.filterFn?e.getAutoFilterFn():null!=(n=null==(r=t.options.filterFns)?void 0:r[e.columnDef.filterFn])?n:bw[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,r,i;return(null==(n=e.columnDef.enableColumnFilter)||n)&&(null==(r=t.options.enableColumnFilters)||r)&&(null==(i=t.options.enableFilters)||i)&&!!e.accessorFn},e.getCanGlobalFilter=()=>{var n,r,i,o;return(null==(n=e.columnDef.enableGlobalFilter)||n)&&(null==(r=t.options.enableGlobalFilter)||r)&&(null==(i=t.options.enableFilters)||i)&&(null==(o=null==t.options.getColumnCanGlobalFilter?void 0:t.options.getColumnCanGlobalFilter(e))||o)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return null==(n=t.getState().columnFilters)||null==(n=n.find((t=>t.id===e.id)))?void 0:n.value},e.getFilterIndex=()=>{var n,r;return null!=(n=null==(r=t.getState().columnFilters)?void 0:r.findIndex((t=>t.id===e.id)))?n:-1},e.setFilterValue=n=>{t.setColumnFilters((t=>{const r=e.getFilterFn(),i=null==t?void 0:t.find((t=>t.id===e.id)),o=Kb(n,i?i.value:void 0);var a;if(xw(r,o,e))return null!=(a=null==t?void 0:t.filter((t=>t.id!==e.id)))?a:[];const s={id:e.id,value:o};var l;return i?null!=(l=null==t?void 0:t.map((t=>t.id===e.id?s:t)))?l:[]:null!=t&&t.length?[...t,s]:[s]}))},e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.getGlobalAutoFilterFn=()=>bw.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return Zb(r)?r:"auto"===r?e.getGlobalAutoFilterFn():null!=(t=null==(n=e.options.filterFns)?void 0:n[r])?t:bw[r]},e.setColumnFilters=t=>{const n=e.getAllLeafColumns();null==e.options.onColumnFiltersChange||e.options.onColumnFiltersChange((e=>{var r;return null==(r=Kb(t,e))?void 0:r.filter((e=>{const t=n.find((t=>t.id===e.id));if(t){if(xw(t.getFilterFn(),e.value,t))return!1}return!0}))}))},e.setGlobalFilter=t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)},e.resetColumnFilters=t=>{var n,r;e.setColumnFilters(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.columnFilters)?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel()),e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},{getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:Xb("sorting",e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let r=!1;for(const t of n){const n=null==t?void 0:t.getValue(e.id);if("[object Date]"===Object.prototype.toString.call(n))return Rw.datetime;if("string"==typeof n&&(r=!0,n.split(Pw).length>1))return Rw.alphanumeric}return r?Rw.text:Rw.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return"string"==typeof(null==n?void 0:n.getValue(e.id))?"asc":"desc"},e.getSortingFn=()=>{var n,r;if(!e)throw new Error;return Zb(e.columnDef.sortingFn)?e.columnDef.sortingFn:"auto"===e.columnDef.sortingFn?e.getAutoSortingFn():null!=(n=null==(r=t.options.sortingFns)?void 0:r[e.columnDef.sortingFn])?n:Rw[e.columnDef.sortingFn]},e.toggleSorting=(n,r)=>{const i=e.getNextSortingOrder(),o=null!=n;t.setSorting((a=>{const s=null==a?void 0:a.find((t=>t.id===e.id)),l=null==a?void 0:a.findIndex((t=>t.id===e.id));let c,u=[],d=o?n:"desc"===i;var h;(c=null!=a&&a.length&&e.getCanMultiSort()&&r?s?"toggle":"add":null!=a&&a.length&&l!==a.length-1?"replace":s?"toggle":"replace","toggle"===c&&(o||i||(c="remove")),"add"===c)?(u=[...a,{id:e.id,desc:d}],u.splice(0,u.length-(null!=(h=t.options.maxMultiSortColCount)?h:Number.MAX_SAFE_INTEGER))):u="toggle"===c?a.map((t=>t.id===e.id?{...t,desc:d}:t)):"remove"===c?a.filter((t=>t.id!==e.id)):[{id:e.id,desc:d}];return u}))},e.getFirstSortDir=()=>{var n,r;return(null!=(n=null!=(r=e.columnDef.sortDescFirst)?r:t.options.sortDescFirst)?n:"desc"===e.getAutoSortDir())?"desc":"asc"},e.getNextSortingOrder=n=>{var r,i;const o=e.getFirstSortDir(),a=e.getIsSorted();return a?!!(a===o||null!=(r=t.options.enableSortingRemoval)&&!r||n&&null!=(i=t.options.enableMultiRemove)&&!i)&&("desc"===a?"asc":"desc"):o},e.getCanSort=()=>{var n,r;return(null==(n=e.columnDef.enableSorting)||n)&&(null==(r=t.options.enableSorting)||r)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,r;return null!=(n=null!=(r=e.columnDef.enableMultiSort)?r:t.options.enableMultiSort)?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const r=null==(n=t.getState().sorting)?void 0:n.find((t=>t.id===e.id));return!!r&&(r.desc?"desc":"asc")},e.getSortIndex=()=>{var n,r;return null!=(n=null==(r=t.getState().sorting)?void 0:r.findIndex((t=>t.id===e.id)))?n:-1},e.clearSorting=()=>{t.setSorting((t=>null!=t&&t.length?t.filter((t=>t.id!==e.id)):[]))},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return r=>{n&&(null==r.persist||r.persist(),null==e.toggleSorting||e.toggleSorting(void 0,!!e.getCanMultiSort()&&(null==t.options.isMultiSortEvent?void 0:t.options.isMultiSortEvent(r))))}}},createTable:e=>{e.setSorting=t=>null==e.options.onSortingChange?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,r;e.setSorting(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.sorting)?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},{getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return null!=(t=null==(n=e.getValue())||null==n.toString?void 0:n.toString())?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:Xb("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping((t=>null!=t&&t.includes(e.id)?t.filter((t=>t!==e.id)):[...null!=t?t:[],e.id]))},e.getCanGroup=()=>{var n,r,i,o;return null!=(n=null==(r=null!=(i=null==(o=e.columnDef.enableGrouping)||o)?i:t.options.enableGrouping)||r)?n:!!e.accessorFn},e.getIsGrouped=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const t=e.getCanGroup();return()=>{t&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=null==n?void 0:n.getValue(e.id);return"number"==typeof r?Aw.sum:"[object Date]"===Object.prototype.toString.call(r)?Aw.extent:void 0},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return Zb(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:"auto"===e.columnDef.aggregationFn?e.getAutoAggregationFn():null!=(n=null==(r=t.options.aggregationFns)?void 0:r[e.columnDef.aggregationFn])?n:Aw[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>null==e.options.onGroupingChange?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,r;e.setGrouping(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.grouping)?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const r=t.getColumn(n);return null!=r&&r.columnDef.getGroupingValue?(e._groupingValuesCache[n]=r.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,r)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var t;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!(null==(t=n.subRows)||!t.length)}}},cw,Sw,Ew,aw];function Nw(e){var t;(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");let n={_features:Dw};const r=n._features.reduce(((e,t)=>Object.assign(e,null==t.getDefaultOptions?void 0:t.getDefaultOptions(n))),{});let i={...null!=(t=e.initialState)?t:{}};n._features.forEach((e=>{var t;i=null!=(t=null==e.getInitialState?void 0:e.getInitialState(i))?t:i}));const o=[];let a=!1;const s={_features:Dw,options:{...r,...e},initialState:i,_queue:e=>{o.push(e),a||(a=!0,Promise.resolve().then((()=>{for(;o.length;)o.shift()();a=!1})).catch((e=>setTimeout((()=>{throw e})))))},reset:()=>{n.setState(n.initialState)},setOptions:e=>{const t=Kb(e,n.options);n.options=(e=>n.options.mergeOptions?n.options.mergeOptions(r,e):{...r,...e})(t)},getState:()=>n.options.state,setState:e=>{null==n.options.onStateChange||n.options.onStateChange(e)},_getRowId:(e,t,r)=>{var i;return null!=(i=null==n.options.getRowId?void 0:n.options.getRowId(e,t,r))?i:`${r?[r.id,t].join("."):t}`},getCoreRowModel:()=>(n._getCoreRowModel||(n._getCoreRowModel=n.options.getCoreRowModel(n)),n._getCoreRowModel()),getRowModel:()=>n.getPaginationRowModel(),getRow:(e,t)=>{let r=(t?n.getPrePaginationRowModel():n.getRowModel()).rowsById[e];if(!r&&(r=n.getCoreRowModel().rowsById[e],!r))throw new Error;return r},_getDefaultColumnDef:Qb((()=>[n.options.defaultColumn]),(e=>{var t;return e=null!=(t=e)?t:{},{header:e=>{const t=e.header.column.columnDef;return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>{var t,n;return null!=(t=null==(n=e.renderValue())||null==n.toString?void 0:n.toString())?t:null},...n._features.reduce(((e,t)=>Object.assign(e,null==t.getDefaultColumnDef?void 0:t.getDefaultColumnDef())),{}),...e}}),ew(e,"debugColumns")),_getColumnDefs:()=>n.options.columns,getAllColumns:Qb((()=>[n._getColumnDefs()]),(e=>{const t=function(e,r,i){return void 0===i&&(i=0),e.map((e=>{const o=function(e,t,n,r){var i,o;const a={...e._getDefaultColumnDef(),...t},s=a.accessorKey;let l,c=null!=(i=null!=(o=a.id)?o:s?s.replace(".","_"):void 0)?i:"string"==typeof a.header?a.header:void 0;if(a.accessorFn?l=a.accessorFn:s&&(l=s.includes(".")?e=>{let t=e;for(const e of s.split(".")){var n;t=null==(n=t)?void 0:n[e]}return t}:e=>e[a.accessorKey]),!c)throw new Error;let u={id:`${String(c)}`,accessorFn:l,parent:r,depth:n,columnDef:a,columns:[],getFlatColumns:Qb((()=>[!0]),(()=>{var e;return[u,...null==(e=u.columns)?void 0:e.flatMap((e=>e.getFlatColumns()))]}),ew(e.options,"debugColumns")),getLeafColumns:Qb((()=>[e._getOrderColumnsFn()]),(e=>{var t;if(null!=(t=u.columns)&&t.length){let t=u.columns.flatMap((e=>e.getLeafColumns()));return e(t)}return[u]}),ew(e.options,"debugColumns"))};for(const t of e._features)null==t.createColumn||t.createColumn(u,e);return u}(n,e,i,r),a=e;return o.columns=a.columns?t(a.columns,o,i+1):[],o}))};return t(e)}),ew(e,"debugColumns")),getAllFlatColumns:Qb((()=>[n.getAllColumns()]),(e=>e.flatMap((e=>e.getFlatColumns()))),ew(e,"debugColumns")),_getAllFlatColumnsById:Qb((()=>[n.getAllFlatColumns()]),(e=>e.reduce(((e,t)=>(e[t.id]=t,e)),{})),ew(e,"debugColumns")),getAllLeafColumns:Qb((()=>[n.getAllColumns(),n._getOrderColumnsFn()]),((e,t)=>t(e.flatMap((e=>e.getLeafColumns())))),ew(e,"debugColumns")),getColumn:e=>n._getAllFlatColumnsById()[e]};Object.assign(n,s);for(let e=0;e{let s={id:t,index:r,original:n,depth:i,parentId:a,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(s._valuesCache.hasOwnProperty(t))return s._valuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?(s._valuesCache[t]=n.accessorFn(s.original,r),s._valuesCache[t]):void 0},getUniqueValues:t=>{if(s._uniqueValuesCache.hasOwnProperty(t))return s._uniqueValuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?n.columnDef.getUniqueValues?(s._uniqueValuesCache[t]=n.columnDef.getUniqueValues(s.original,r),s._uniqueValuesCache[t]):(s._uniqueValuesCache[t]=[s.getValue(t)],s._uniqueValuesCache[t]):void 0},renderValue:t=>{var n;return null!=(n=s.getValue(t))?n:e.options.renderFallbackValue},subRows:null!=o?o:[],getLeafRows:()=>Jb(s.subRows,(e=>e.subRows)),getParentRow:()=>s.parentId?e.getRow(s.parentId,!0):void 0,getParentRows:()=>{let e=[],t=s;for(;;){const n=t.getParentRow();if(!n)break;e.push(n),t=n}return e.reverse()},getAllCells:Qb((()=>[e.getAllLeafColumns()]),(t=>t.map((t=>function(e,t,n,r){const i={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(r),renderValue:()=>{var t;return null!=(t=i.getValue())?t:e.options.renderFallbackValue},getContext:Qb((()=>[e,n,t,i]),((e,t,n,r)=>({table:e,column:t,row:n,cell:r,getValue:r.getValue,renderValue:r.renderValue})),ew(e.options,"debugCells"))};return e._features.forEach((r=>{null==r.createCell||r.createCell(i,n,t,e)}),{}),i}(e,s,t,t.id)))),ew(e.options,"debugRows")),_getAllCellsByColumnId:Qb((()=>[s.getAllCells()]),(e=>e.reduce(((e,t)=>(e[t.column.id]=t,e)),{})),ew(e.options,"debugRows"))};for(let t=0;tQb((()=>[e.getState().grouping,e.getPreGroupedRowModel()]),((t,n)=>{if(!n.rows.length||!t.length)return n;const r=t.filter((t=>e.getColumn(t))),i=[],o={},a=function(t,n,s){if(void 0===n&&(n=0),n>=r.length)return t.map((e=>(e.depth=n,i.push(e),o[e.id]=e,e.subRows&&(e.subRows=a(e.subRows,n+1,e.id)),e)));const l=r[n],c=function(e,t){const n=new Map;return e.reduce(((e,n)=>{const r=`${n.getGroupingValue(t)}`,i=e.get(r);return i?i.push(n):e.set(r,[n]),e}),n)}(t,l),u=Array.from(c.entries()).map(((t,c)=>{let[u,d]=t,h=`${l}:${u}`;h=s?`${s}>${h}`:h;const p=a(d,n+1,h),f=n?Jb(d,(e=>e.subRows)):d,g=zw(e,h,f[0].original,c,n,void 0,s);return Object.assign(g,{groupingColumnId:l,groupingValue:u,subRows:p,leafRows:f,getValue:t=>{if(r.includes(t)){if(g._valuesCache.hasOwnProperty(t))return g._valuesCache[t];var n;if(d[0])g._valuesCache[t]=null!=(n=d[0].getValue(t))?n:void 0;return g._valuesCache[t]}if(g._groupingValuesCache.hasOwnProperty(t))return g._groupingValuesCache[t];const i=e.getColumn(t),o=null==i?void 0:i.getAggregationFn();return o?(g._groupingValuesCache[t]=o(t,f,d),g._groupingValuesCache[t]):void 0}}),p.forEach((e=>{i.push(e),o[e.id]=e})),g}));return u},s=a(n.rows,0);return s.forEach((e=>{i.push(e),o[e.id]=e})),{rows:s,flatRows:i,rowsById:o}}),ew(e.options,"debugTable",0,(()=>{e._queue((()=>{e._autoResetExpanded(),e._autoResetPageIndex()}))})))}function $w(e){const t=[],n=e=>{var r;t.push(e),null!=(r=e.subRows)&&r.length&&e.getIsExpanded()&&e.subRows.forEach(n)};return e.rows.forEach(n),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}} /** * match-sorter-utils * @@ -236,14 +236,14 @@ function lg(e,t){return"function"==typeof e?e(t):e}function cg(e,t){return n=>{t * * @license MIT */ -const em={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Ấ:"A",Ắ:"A",Ẳ:"A",Ẵ:"A",Ặ:"A",Æ:"AE",Ầ:"A",Ằ:"A",Ȃ:"A",Ç:"C",Ḉ:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ế:"E",Ḗ:"E",Ề:"E",Ḕ:"E",Ḝ:"E",Ȇ:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ḯ:"I",Ȋ:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",Ố:"O",Ṍ:"O",Ṓ:"O",Ȏ:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ý:"Y",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",ấ:"a",ắ:"a",ẳ:"a",ẵ:"a",ặ:"a",æ:"ae",ầ:"a",ằ:"a",ȃ:"a",ç:"c",ḉ:"c",è:"e",é:"e",ê:"e",ë:"e",ế:"e",ḗ:"e",ề:"e",ḕ:"e",ḝ:"e",ȇ:"e",ì:"i",í:"i",î:"i",ï:"i",ḯ:"i",ȋ:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",ố:"o",ṍ:"o",ṓ:"o",ȏ:"o",ù:"u",ú:"u",û:"u",ü:"u",ý:"y",ÿ:"y",Ā:"A",ā:"a",Ă:"A",ă:"a",Ą:"A",ą:"a",Ć:"C",ć:"c",Ĉ:"C",ĉ:"c",Ċ:"C",ċ:"c",Č:"C",č:"c",C̆:"C",c̆:"c",Ď:"D",ď:"d",Đ:"D",đ:"d",Ē:"E",ē:"e",Ĕ:"E",ĕ:"e",Ė:"E",ė:"e",Ę:"E",ę:"e",Ě:"E",ě:"e",Ĝ:"G",Ǵ:"G",ĝ:"g",ǵ:"g",Ğ:"G",ğ:"g",Ġ:"G",ġ:"g",Ģ:"G",ģ:"g",Ĥ:"H",ĥ:"h",Ħ:"H",ħ:"h",Ḫ:"H",ḫ:"h",Ĩ:"I",ĩ:"i",Ī:"I",ī:"i",Ĭ:"I",ĭ:"i",Į:"I",į:"i",İ:"I",ı:"i",IJ:"IJ",ij:"ij",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",Ḱ:"K",ḱ:"k",K̆:"K",k̆:"k",Ĺ:"L",ĺ:"l",Ļ:"L",ļ:"l",Ľ:"L",ľ:"l",Ŀ:"L",ŀ:"l",Ł:"l",ł:"l",Ḿ:"M",ḿ:"m",M̆:"M",m̆:"m",Ń:"N",ń:"n",Ņ:"N",ņ:"n",Ň:"N",ň:"n",ʼn:"n",N̆:"N",n̆:"n",Ō:"O",ō:"o",Ŏ:"O",ŏ:"o",Ő:"O",ő:"o",Œ:"OE",œ:"oe",P̆:"P",p̆:"p",Ŕ:"R",ŕ:"r",Ŗ:"R",ŗ:"r",Ř:"R",ř:"r",R̆:"R",r̆:"r",Ȓ:"R",ȓ:"r",Ś:"S",ś:"s",Ŝ:"S",ŝ:"s",Ş:"S",Ș:"S",ș:"s",ş:"s",Š:"S",š:"s",Ţ:"T",ţ:"t",ț:"t",Ț:"T",Ť:"T",ť:"t",Ŧ:"T",ŧ:"t",T̆:"T",t̆:"t",Ũ:"U",ũ:"u",Ū:"U",ū:"u",Ŭ:"U",ŭ:"u",Ů:"U",ů:"u",Ű:"U",ű:"u",Ų:"U",ų:"u",Ȗ:"U",ȗ:"u",V̆:"V",v̆:"v",Ŵ:"W",ŵ:"w",Ẃ:"W",ẃ:"w",X̆:"X",x̆:"x",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Y̆:"Y",y̆:"y",Ź:"Z",ź:"z",Ż:"Z",ż:"z",Ž:"Z",ž:"z",ſ:"s",ƒ:"f",Ơ:"O",ơ:"o",Ư:"U",ư:"u",Ǎ:"A",ǎ:"a",Ǐ:"I",ǐ:"i",Ǒ:"O",ǒ:"o",Ǔ:"U",ǔ:"u",Ǖ:"U",ǖ:"u",Ǘ:"U",ǘ:"u",Ǚ:"U",ǚ:"u",Ǜ:"U",ǜ:"u",Ứ:"U",ứ:"u",Ṹ:"U",ṹ:"u",Ǻ:"A",ǻ:"a",Ǽ:"AE",ǽ:"ae",Ǿ:"O",ǿ:"o",Þ:"TH",þ:"th",Ṕ:"P",ṕ:"p",Ṥ:"S",ṥ:"s",X́:"X",x́:"x",Ѓ:"Г",ѓ:"г",Ќ:"К",ќ:"к",A̋:"A",a̋:"a",E̋:"E",e̋:"e",I̋:"I",i̋:"i",Ǹ:"N",ǹ:"n",Ồ:"O",ồ:"o",Ṑ:"O",ṑ:"o",Ừ:"U",ừ:"u",Ẁ:"W",ẁ:"w",Ỳ:"Y",ỳ:"y",Ȁ:"A",ȁ:"a",Ȅ:"E",ȅ:"e",Ȉ:"I",ȉ:"i",Ȍ:"O",ȍ:"o",Ȑ:"R",ȑ:"r",Ȕ:"U",ȕ:"u",B̌:"B",b̌:"b",Č̣:"C",č̣:"c",Ê̌:"E",ê̌:"e",F̌:"F",f̌:"f",Ǧ:"G",ǧ:"g",Ȟ:"H",ȟ:"h",J̌:"J",ǰ:"j",Ǩ:"K",ǩ:"k",M̌:"M",m̌:"m",P̌:"P",p̌:"p",Q̌:"Q",q̌:"q",Ř̩:"R",ř̩:"r",Ṧ:"S",ṧ:"s",V̌:"V",v̌:"v",W̌:"W",w̌:"w",X̌:"X",x̌:"x",Y̌:"Y",y̌:"y",A̧:"A",a̧:"a",B̧:"B",b̧:"b",Ḑ:"D",ḑ:"d",Ȩ:"E",ȩ:"e",Ɛ̧:"E",ɛ̧:"e",Ḩ:"H",ḩ:"h",I̧:"I",i̧:"i",Ɨ̧:"I",ɨ̧:"i",M̧:"M",m̧:"m",O̧:"O",o̧:"o",Q̧:"Q",q̧:"q",U̧:"U",u̧:"u",X̧:"X",x̧:"x",Z̧:"Z",z̧:"z"},tm=Object.keys(em).join("|"),nm=new RegExp(tm,"g"); +const Gw={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Ấ:"A",Ắ:"A",Ẳ:"A",Ẵ:"A",Ặ:"A",Æ:"AE",Ầ:"A",Ằ:"A",Ȃ:"A",Ç:"C",Ḉ:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ế:"E",Ḗ:"E",Ề:"E",Ḕ:"E",Ḝ:"E",Ȇ:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ḯ:"I",Ȋ:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",Ố:"O",Ṍ:"O",Ṓ:"O",Ȏ:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ý:"Y",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",ấ:"a",ắ:"a",ẳ:"a",ẵ:"a",ặ:"a",æ:"ae",ầ:"a",ằ:"a",ȃ:"a",ç:"c",ḉ:"c",è:"e",é:"e",ê:"e",ë:"e",ế:"e",ḗ:"e",ề:"e",ḕ:"e",ḝ:"e",ȇ:"e",ì:"i",í:"i",î:"i",ï:"i",ḯ:"i",ȋ:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",ố:"o",ṍ:"o",ṓ:"o",ȏ:"o",ù:"u",ú:"u",û:"u",ü:"u",ý:"y",ÿ:"y",Ā:"A",ā:"a",Ă:"A",ă:"a",Ą:"A",ą:"a",Ć:"C",ć:"c",Ĉ:"C",ĉ:"c",Ċ:"C",ċ:"c",Č:"C",č:"c",C̆:"C",c̆:"c",Ď:"D",ď:"d",Đ:"D",đ:"d",Ē:"E",ē:"e",Ĕ:"E",ĕ:"e",Ė:"E",ė:"e",Ę:"E",ę:"e",Ě:"E",ě:"e",Ĝ:"G",Ǵ:"G",ĝ:"g",ǵ:"g",Ğ:"G",ğ:"g",Ġ:"G",ġ:"g",Ģ:"G",ģ:"g",Ĥ:"H",ĥ:"h",Ħ:"H",ħ:"h",Ḫ:"H",ḫ:"h",Ĩ:"I",ĩ:"i",Ī:"I",ī:"i",Ĭ:"I",ĭ:"i",Į:"I",į:"i",İ:"I",ı:"i",IJ:"IJ",ij:"ij",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",Ḱ:"K",ḱ:"k",K̆:"K",k̆:"k",Ĺ:"L",ĺ:"l",Ļ:"L",ļ:"l",Ľ:"L",ľ:"l",Ŀ:"L",ŀ:"l",Ł:"l",ł:"l",Ḿ:"M",ḿ:"m",M̆:"M",m̆:"m",Ń:"N",ń:"n",Ņ:"N",ņ:"n",Ň:"N",ň:"n",ʼn:"n",N̆:"N",n̆:"n",Ō:"O",ō:"o",Ŏ:"O",ŏ:"o",Ő:"O",ő:"o",Œ:"OE",œ:"oe",P̆:"P",p̆:"p",Ŕ:"R",ŕ:"r",Ŗ:"R",ŗ:"r",Ř:"R",ř:"r",R̆:"R",r̆:"r",Ȓ:"R",ȓ:"r",Ś:"S",ś:"s",Ŝ:"S",ŝ:"s",Ş:"S",Ș:"S",ș:"s",ş:"s",Š:"S",š:"s",Ţ:"T",ţ:"t",ț:"t",Ț:"T",Ť:"T",ť:"t",Ŧ:"T",ŧ:"t",T̆:"T",t̆:"t",Ũ:"U",ũ:"u",Ū:"U",ū:"u",Ŭ:"U",ŭ:"u",Ů:"U",ů:"u",Ű:"U",ű:"u",Ų:"U",ų:"u",Ȗ:"U",ȗ:"u",V̆:"V",v̆:"v",Ŵ:"W",ŵ:"w",Ẃ:"W",ẃ:"w",X̆:"X",x̆:"x",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Y̆:"Y",y̆:"y",Ź:"Z",ź:"z",Ż:"Z",ż:"z",Ž:"Z",ž:"z",ſ:"s",ƒ:"f",Ơ:"O",ơ:"o",Ư:"U",ư:"u",Ǎ:"A",ǎ:"a",Ǐ:"I",ǐ:"i",Ǒ:"O",ǒ:"o",Ǔ:"U",ǔ:"u",Ǖ:"U",ǖ:"u",Ǘ:"U",ǘ:"u",Ǚ:"U",ǚ:"u",Ǜ:"U",ǜ:"u",Ứ:"U",ứ:"u",Ṹ:"U",ṹ:"u",Ǻ:"A",ǻ:"a",Ǽ:"AE",ǽ:"ae",Ǿ:"O",ǿ:"o",Þ:"TH",þ:"th",Ṕ:"P",ṕ:"p",Ṥ:"S",ṥ:"s",X́:"X",x́:"x",Ѓ:"Г",ѓ:"г",Ќ:"К",ќ:"к",A̋:"A",a̋:"a",E̋:"E",e̋:"e",I̋:"I",i̋:"i",Ǹ:"N",ǹ:"n",Ồ:"O",ồ:"o",Ṑ:"O",ṑ:"o",Ừ:"U",ừ:"u",Ẁ:"W",ẁ:"w",Ỳ:"Y",ỳ:"y",Ȁ:"A",ȁ:"a",Ȅ:"E",ȅ:"e",Ȉ:"I",ȉ:"i",Ȍ:"O",ȍ:"o",Ȑ:"R",ȑ:"r",Ȕ:"U",ȕ:"u",B̌:"B",b̌:"b",Č̣:"C",č̣:"c",Ê̌:"E",ê̌:"e",F̌:"F",f̌:"f",Ǧ:"G",ǧ:"g",Ȟ:"H",ȟ:"h",J̌:"J",ǰ:"j",Ǩ:"K",ǩ:"k",M̌:"M",m̌:"m",P̌:"P",p̌:"p",Q̌:"Q",q̌:"q",Ř̩:"R",ř̩:"r",Ṧ:"S",ṧ:"s",V̌:"V",v̌:"v",W̌:"W",w̌:"w",X̌:"X",x̌:"x",Y̌:"Y",y̌:"y",A̧:"A",a̧:"a",B̧:"B",b̧:"b",Ḑ:"D",ḑ:"d",Ȩ:"E",ȩ:"e",Ɛ̧:"E",ɛ̧:"e",Ḩ:"H",ḩ:"h",I̧:"I",i̧:"i",Ɨ̧:"I",ɨ̧:"i",M̧:"M",m̧:"m",O̧:"O",o̧:"o",Q̧:"Q",q̧:"q",U̧:"U",u̧:"u",X̧:"X",x̧:"x",Z̧:"Z",z̧:"z"},Uw=Object.keys(Gw).join("|"),Ww=new RegExp(Uw,"g"); /** * @name match-sorter * @license MIT license. * @copyright (c) 2099 Kent C. Dodds * @author Kent C. Dodds (https://kentcdodds.com) */ -const rm={CASE_SENSITIVE_EQUAL:7,EQUAL:6,STARTS_WITH:5,WORD_STARTS_WITH:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0};function im(e,t,n){var r;if((n=n||{}).threshold=null!=(r=n.threshold)?r:rm.MATCHES,!n.accessors){const r=om(e,t,n);return{rankedValue:e,rank:r,accessorIndex:-1,accessorThreshold:n.threshold,passed:r>=n.threshold}}const i=function(e,t){const n=[];for(let r=0,i=t.length;r=rm.MATCHES?a=s:a>l&&(a=l),a=Math.min(a,l),a>=c&&a>o.rank&&(o.rank=a,o.passed=!0,o.accessorIndex=e,o.accessorThreshold=c,o.rankedValue=r.itemValue)}return o}function om(e,t,n){return e=am(e,n),(t=am(t,n)).length>e.length?rm.NO_MATCH:e===t?rm.CASE_SENSITIVE_EQUAL:(e=e.toLowerCase())===(t=t.toLowerCase())?rm.EQUAL:e.startsWith(t)?rm.STARTS_WITH:e.includes(` ${t}`)?rm.WORD_STARTS_WITH:e.includes(t)?rm.CONTAINS:1===t.length?rm.NO_MATCH:function(e){let t="";return e.split(" ").forEach((e=>{e.split("-").forEach((e=>{t+=e.substr(0,1)}))})),t}(e).includes(t)?rm.ACRONYM:function(e,t){let n=0,r=0;function i(e,t,r){for(let i=r,o=t.length;i-1))return rm.NO_MATCH}return o(r-a)}(e,t)}function am(e,t){let{keepDiacritics:n}=t;return e=`${e}`,n||(e=e.replace(nm,(e=>em[e]))),e}function sm(e,t){let n=t;"object"==typeof t&&(n=t.accessor);const r=n(e);return null==r?[]:Array.isArray(r)?r:[String(r)]}const lm={maxRanking:1/0,minRanking:-1/0};function cm(e){return"function"==typeof e?lm:{...lm,...e}}const um=(0,Ke.A)((0,S.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),dm=(0,Ke.A)((0,S.jsx)("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),hm=(0,h.Ay)("span",{shouldForwardProp:gn.A})({position:"relative",display:"flex"}),pm=(0,h.Ay)(um)({transform:"scale(1)"}),fm=(0,h.Ay)(dm)((({theme:e,ownerState:t})=>(0,s.A)({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},t.checked&&{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})})));const gm=function(e){const{checked:t=!1,classes:n={},fontSize:r}=e,i=(0,s.A)({},e,{checked:t});return(0,S.jsxs)(hm,{className:n.root,ownerState:i,children:[(0,S.jsx)(pm,{fontSize:r,className:n.background,ownerState:i}),(0,S.jsx)(fm,{fontSize:r,className:n.dot,ownerState:i})]})};var mm=n(17416);const ym=o.createContext(void 0);function vm(e){return(0,w.Ay)("MuiRadio",e)}const bm=(0,x.A)("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),xm=["checked","checkedIcon","color","icon","name","onChange","size","className"],wm=(0,h.Ay)(Sr.A,{shouldForwardProp:e=>(0,gn.A)(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"medium"!==n.size&&t[`size${(0,de.A)(n.size)}`],t[`color${(0,de.A)(n.color)}`]]}})((({theme:e,ownerState:t})=>(0,s.A)({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,Fe.X4)("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${bm.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${bm.disabled}`]:{color:(e.vars||e).palette.action.disabled}})));const Am=(0,S.jsx)(gm,{checked:!0}),Sm=(0,S.jsx)(gm,{}),Cm=o.forwardRef((function(e,t){var n,r;const i=(0,g.A)({props:e,name:"MuiRadio"}),{checked:a,checkedIcon:d=Am,color:h="primary",icon:p=Sm,name:f,onChange:m,size:y="medium",className:v}=i,b=(0,l.A)(i,xm),x=(0,s.A)({},i,{color:h,size:y}),w=(e=>{const{classes:t,color:n,size:r}=e,i={root:["root",`color${(0,de.A)(n)}`,"medium"!==r&&`size${(0,de.A)(r)}`]};return(0,s.A)({},t,(0,u.A)(i,vm,t))})(x),A=o.useContext(ym);let C=a;const E=(0,mm.A)(m,A&&A.onChange);let _=f;var k,T;return A&&(void 0===C&&(k=A.value,C="object"==typeof(T=i.value)&&null!==T?k===T:String(k)===String(T)),void 0===_&&(_=A.name)),(0,S.jsx)(wm,(0,s.A)({type:"radio",icon:o.cloneElement(p,{fontSize:null!=(n=Sm.props.fontSize)?n:y}),checkedIcon:o.cloneElement(d,{fontSize:null!=(r=Am.props.fontSize)?r:y}),ownerState:x,classes:w,name:_,checked:C,onChange:E,ref:t,className:(0,c.A)(w.root,v)},b))}));var Em=n(16299),_m=n(35103),km=n(26332),Tm=n(34790),Om=n(1617),Pm=n(50110),Im=n(98788),Mm=n(18904),Lm=n(87981),Rm=n(33815),jm=n(38537),Fm=n(33330),Dm=n(20317),Nm=n(44182),zm=n(86663),Vm=n(91465),Bm=n(64712),$m=n(81439),Gm=n(4113),Um=n(43219),Wm=n(29667),qm=n(28217),Hm=n(11689),Ym=n(57897),Km=n(50836),Xm=n(10575),Zm=n(88523),Jm=n(59843),Qm=n(26638),ey=n(14821),ty=n(70422),ny=n(65534),ry=n(98993),iy=n(98073);function oy(e,t,n){let r,i=n.initialDeps??[];return()=>{var o,a,s,l;let c;n.key&&(null==(o=n.debug)?void 0:o.call(n))&&(c=Date.now());const u=e(),d=u.length!==i.length||u.some(((e,t)=>i[t]!==e));if(!d)return r;let h;if(i=u,n.key&&(null==(a=n.debug)?void 0:a.call(n))&&(h=Date.now()),r=t(...u),n.key&&(null==(s=n.debug)?void 0:s.call(n))){const e=Math.round(100*(Date.now()-c))/100,t=Math.round(100*(Date.now()-h))/100,r=t/16,i=(e,t)=>{for(e=String(e);e.lengthe,ly=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),r=[];for(let e=t;e<=n;e++)r.push(e);return r},cy=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e=>{const{width:n,height:r}=e;t({width:Math.round(n),height:Math.round(r)})};if(r(n.getBoundingClientRect()),"undefined"==typeof ResizeObserver)return()=>{};const i=new ResizeObserver((e=>{const t=e[0];if(null==t?void 0:t.borderBoxSize){const e=t.borderBoxSize[0];if(e)return void r({width:e.inlineSize,height:e.blockSize})}r(n.getBoundingClientRect())}));return i.observe(n,{box:"border-box"}),()=>{i.unobserve(n)}},uy=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=()=>{t(n[e.options.horizontal?"scrollLeft":"scrollTop"])};return r(),n.addEventListener("scroll",r,{passive:!0}),()=>{n.removeEventListener("scroll",r)}},dy=(e,t,n)=>{if(null==t?void 0:t.borderBoxSize){const e=t.borderBoxSize[0];if(e){return Math.round(e[n.options.horizontal?"inlineSize":"blockSize"])}}return Math.round(e.getBoundingClientRect()[n.options.horizontal?"width":"height"])},hy=(e,{adjustments:t=0,behavior:n},r)=>{var i,o;const a=e+t;null==(o=null==(i=r.scrollElement)?void 0:i.scrollTo)||o.call(i,{[r.options.horizontal?"left":"top"]:a,behavior:n})};class py{constructor(e){this.unsubs=[],this.scrollElement=null,this.isScrolling=!1,this.isScrollingTimeoutId=null,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollDirection=null,this.scrollAdjustments=0,this.measureElementCache=new Map,this.observer=(()=>{let e=null;const t=()=>e||("undefined"!=typeof ResizeObserver?e=new ResizeObserver((e=>{e.forEach((e=>{this._measureElement(e.target,e)}))})):null);return{disconnect:()=>{var e;return null==(e=t())?void 0:e.disconnect()},observe:e=>{var n;return null==(n=t())?void 0:n.observe(e,{box:"border-box"})},unobserve:e=>{var n;return null==(n=t())?void 0:n.unobserve(e)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach((([t,n])=>{void 0===n&&delete e[t]})),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:sy,rangeExtractor:ly,onChange:()=>{},measureElement:dy,initialRect:{width:0,height:0},scrollMargin:0,scrollingDelay:150,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,...e}},this.notify=e=>{var t,n;null==(n=(t=this.options).onChange)||n.call(t,this,e)},this.maybeNotify=oy((()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null])),(e=>{this.notify(e)}),{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach((e=>e())),this.unsubs=[],this.scrollElement=null},this._didMount=()=>(this.measureElementCache.forEach(this.observer.observe),()=>{this.observer.disconnect(),this.cleanup()}),this._willUpdate=()=>{const e=this.options.getScrollElement();this.scrollElement!==e&&(this.cleanup(),this.scrollElement=e,this._scrollToOffset(this.scrollOffset,{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,(e=>{this.scrollRect=e,this.maybeNotify()}))),this.unsubs.push(this.options.observeElementOffset(this,(e=>{this.scrollAdjustments=0,this.scrollOffset!==e&&(null!==this.isScrollingTimeoutId&&(clearTimeout(this.isScrollingTimeoutId),this.isScrollingTimeoutId=null),this.isScrolling=!0,this.scrollDirection=this.scrollOffset{this.isScrollingTimeoutId=null,this.isScrolling=!1,this.scrollDirection=null,this.maybeNotify()}),this.options.scrollingDelay))}))))},this.getSize=()=>this.scrollRect[this.options.horizontal?"width":"height"],this.memoOptions=oy((()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey]),((e,t,n,r)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:t,scrollMargin:n,getItemKey:r})),{key:!1}),this.getFurthestMeasurement=(e,t)=>{const n=new Map,r=new Map;for(let i=t-1;i>=0;i--){const t=e[i];if(n.has(t.lane))continue;const o=r.get(t.lane);if(null==o||t.end>o.end?r.set(t.lane,t):t.ende.end===t.end?e.index-t.index:e.end-t.end))[0]:void 0},this.getMeasurements=oy((()=>[this.memoOptions(),this.itemSizeCache]),(({count:e,paddingStart:t,scrollMargin:n,getItemKey:r},i)=>{const o=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const a=this.measurementsCache.slice(0,o);for(let s=o;sthis.options.debug}),this.calculateRange=oy((()=>[this.getMeasurements(),this.getSize(),this.scrollOffset]),((e,t,n)=>this.range=e.length>0&&t>0?function({measurements:e,outerSize:t,scrollOffset:n}){const r=e.length-1,i=t=>e[t].start,o=fy(0,r,i,n);let a=o;for(;athis.options.debug}),this.getIndexes=oy((()=>[this.options.rangeExtractor,this.calculateRange(),this.options.overscan,this.options.count]),((e,t,n,r)=>null===t?[]:e({...t,overscan:n,count:r})),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{const t=this.options.indexAttribute,n=e.getAttribute(t);return n?parseInt(n,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this._measureElement=(e,t)=>{const n=this.measurementsCache[this.indexFromElement(e)];if(!n||!e.isConnected)return void this.measureElementCache.forEach(((t,n)=>{t===e&&(this.observer.unobserve(e),this.measureElementCache.delete(n))}));const r=this.measureElementCache.get(n.key);r!==e&&(r&&this.observer.unobserve(r),this.observer.observe(e),this.measureElementCache.set(n.key,e));const i=this.options.measureElement(e,t,this);this.resizeItem(n,i)},this.resizeItem=(e,t)=>{const n=t-(this.itemSizeCache.get(e.key)??e.size);0!==n&&(e.start{e&&this._measureElement(e,void 0)},this.getVirtualItems=oy((()=>[this.getIndexes(),this.getMeasurements()]),((e,t)=>{const n=[];for(let r=0,i=e.length;rthis.options.debug}),this.getVirtualItemForOffset=e=>{const t=this.getMeasurements();return ay(t[fy(0,t.length-1,(e=>ay(t[e]).start),e)])},this.getOffsetForAlignment=(e,t)=>{const n=this.getSize();"auto"===t&&(t=e<=this.scrollOffset?"start":e>=this.scrollOffset+n?"end":"start"),"start"===t||("end"===t?e-=n:"center"===t&&(e-=n/2));const r=this.options.horizontal?"scrollWidth":"scrollHeight",i=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[r]:this.scrollElement[r]:0)-this.getSize();return Math.max(Math.min(i,e),0)},this.getOffsetForIndex=(e,t="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));const n=ay(this.getMeasurements()[e]);if("auto"===t)if(n.end>=this.scrollOffset+this.getSize()-this.options.scrollPaddingEnd)t="end";else{if(!(n.start<=this.scrollOffset+this.options.scrollPaddingStart))return[this.scrollOffset,t];t="start"}const r="end"===t?n.end+this.options.scrollPaddingEnd:n.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(r,t),t]},this.isDynamicMode=()=>this.measureElementCache.size>0,this.cancelScrollToIndex=()=>{null!==this.scrollToIndexTimeoutId&&(clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(e,{align:t="start",behavior:n}={})=>{this.cancelScrollToIndex(),"smooth"===n&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(e,t),{adjustments:void 0,behavior:n})},this.scrollToIndex=(e,{align:t="auto",behavior:n}={})=>{e=Math.max(0,Math.min(e,this.options.count-1)),this.cancelScrollToIndex(),"smooth"===n&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const[r,i]=this.getOffsetForIndex(e,t);this._scrollToOffset(r,{adjustments:void 0,behavior:n}),"smooth"!==n&&this.isDynamicMode()&&(this.scrollToIndexTimeoutId=setTimeout((()=>{this.scrollToIndexTimeoutId=null;if(this.measureElementCache.has(this.options.getItemKey(e))){const[o]=this.getOffsetForIndex(e,i);t=o,r=this.scrollOffset,Math.abs(t-r)<1||this.scrollToIndex(e,{align:i,behavior:n})}else this.scrollToIndex(e,{align:i,behavior:n});var t,r})))},this.scrollBy=(e,{behavior:t}={})=>{this.cancelScrollToIndex(),"smooth"===t&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.scrollOffset+e,{adjustments:void 0,behavior:t})},this.getTotalSize=()=>{var e;const t=this.getMeasurements();let n;return n=0===t.length?this.options.paddingStart:1===this.options.lanes?(null==(e=t[t.length-1])?void 0:e.end)??0:Math.max(...t.slice(-this.options.lanes).map((e=>e.end))),n-this.options.scrollMargin+this.options.paddingEnd},this._scrollToOffset=(e,{adjustments:t,behavior:n})=>{this.options.scrollToFn(e,{behavior:n,adjustments:t},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(e),this.scrollRect=this.options.initialRect,this.scrollOffset=this.options.initialOffset,this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach((e=>{this.itemSizeCache.set(e.key,e.size)})),this.maybeNotify()}}const fy=(e,t,n,r)=>{for(;e<=t;){const i=(e+t)/2|0,o=n(i);if(or))return i;t=i-1}}return e>0?e-1:0};var gy=n(95491);const my="undefined"!=typeof document?o.useLayoutEffect:o.useEffect;function yy(e){const t=o.useReducer((()=>({})),{})[1],n={...e,onChange:(n,r)=>{var i;r?(0,gy.flushSync)(t):t(),null==(i=e.onChange)||i.call(e,n,r)}},[r]=o.useState((()=>new py(n)));return r.setOptions(n),o.useEffect((()=>r._didMount()),[]),my((()=>r._willUpdate())),r}function vy(e){return yy({observeElementRect:cy,observeElementOffset:uy,scrollToFn:hy,...e})}function by(e){return(0,w.Ay)("MuiTableContainer",e)}(0,x.A)("MuiTableContainer",["root"]);const xy=["className","component"],wy=(0,h.Ay)("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),Ay=o.forwardRef((function(e,t){const n=(0,g.A)({props:e,name:"MuiTableContainer"}),{className:r,component:i="div"}=n,o=(0,l.A)(n,xy),a=(0,s.A)({},n,{component:i}),d=(e=>{const{classes:t}=e;return(0,u.A)({root:["root"]},by,t)})(a);return(0,S.jsx)(wy,(0,s.A)({ref:t,as:i,className:(0,c.A)(d.root,r),ownerState:a},o))}));const Sy=o.createContext();function Cy(e){return(0,w.Ay)("MuiTable",e)}(0,x.A)("MuiTable",["root","stickyHeader"]);const Ey=["className","component","padding","size","stickyHeader"],_y=(0,h.Ay)("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>(0,s.A)({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":(0,s.A)({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"}))),ky="table",Ty=o.forwardRef((function(e,t){const n=(0,g.A)({props:e,name:"MuiTable"}),{className:r,component:i=ky,padding:a="normal",size:d="medium",stickyHeader:h=!1}=n,p=(0,l.A)(n,Ey),f=(0,s.A)({},n,{component:i,padding:a,size:d,stickyHeader:h}),m=(e=>{const{classes:t,stickyHeader:n}=e,r={root:["root",n&&"stickyHeader"]};return(0,u.A)(r,Cy,t)})(f),y=o.useMemo((()=>({padding:a,size:d,stickyHeader:h})),[a,d,h]);return(0,S.jsx)(Sy.Provider,{value:y,children:(0,S.jsx)(_y,(0,s.A)({as:i,role:i===ky?null:"table",ref:t,className:(0,c.A)(m.root,r),ownerState:f},p))})}));const Oy=o.createContext();function Py(e){return(0,w.Ay)("MuiTableBody",e)}(0,x.A)("MuiTableBody",["root"]);const Iy=["className","component"],My=(0,h.Ay)("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Ly={variant:"body"},Ry="tbody",jy=o.forwardRef((function(e,t){const n=(0,g.A)({props:e,name:"MuiTableBody"}),{className:r,component:i=Ry}=n,o=(0,l.A)(n,Iy),a=(0,s.A)({},n,{component:i}),d=(e=>{const{classes:t}=e;return(0,u.A)({root:["root"]},Py,t)})(a);return(0,S.jsx)(Oy.Provider,{value:Ly,children:(0,S.jsx)(My,(0,s.A)({className:(0,c.A)(d.root,r),as:i,ref:t,role:i===Ry?null:"rowgroup",ownerState:a},o))})}));function Fy(e){return(0,w.Ay)("MuiTableRow",e)}const Dy=(0,x.A)("MuiTableRow",["root","selected","hover","head","footer"]),Ny=["className","component","hover","selected"],zy=(0,h.Ay)("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})((({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${Dy.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Dy.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,Fe.X4)(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,Fe.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),Vy="tr",By=o.forwardRef((function(e,t){const n=(0,g.A)({props:e,name:"MuiTableRow"}),{className:r,component:i=Vy,hover:a=!1,selected:d=!1}=n,h=(0,l.A)(n,Ny),p=o.useContext(Oy),f=(0,s.A)({},n,{component:i,hover:a,selected:d,head:p&&"head"===p.variant,footer:p&&"footer"===p.variant}),m=(e=>{const{classes:t,selected:n,hover:r,head:i,footer:o}=e,a={root:["root",n&&"selected",r&&"hover",i&&"head",o&&"footer"]};return(0,u.A)(a,Fy,t)})(f);return(0,S.jsx)(zy,(0,s.A)({as:i,ref:t,className:(0,c.A)(m.root,r),role:i===Vy?null:"row",ownerState:f},h))})),$y=By;function Gy(e){return(0,w.Ay)("MuiTableCell",e)}const Uy=(0,x.A)("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),Wy=["align","className","component","padding","scope","size","sortDirection","variant"],qy=(0,h.Ay)("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${(0,de.A)(n.size)}`],"normal"!==n.padding&&t[`padding${(0,de.A)(n.padding)}`],"inherit"!==n.align&&t[`align${(0,de.A)(n.align)}`],n.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>(0,s.A)({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid\n ${"light"===e.palette.mode?(0,Fe.a)((0,Fe.X4)(e.palette.divider,1),.88):(0,Fe.e$)((0,Fe.X4)(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},"head"===t.variant&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},"body"===t.variant&&{color:(e.vars||e).palette.text.primary},"footer"===t.variant&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},"small"===t.size&&{padding:"6px 16px",[`&.${Uy.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},"checkbox"===t.padding&&{width:48,padding:"0 0 0 4px"},"none"===t.padding&&{padding:0},"left"===t.align&&{textAlign:"left"},"center"===t.align&&{textAlign:"center"},"right"===t.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===t.align&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}))),Hy=o.forwardRef((function(e,t){const n=(0,g.A)({props:e,name:"MuiTableCell"}),{align:r="inherit",className:i,component:a,padding:d,scope:h,size:p,sortDirection:f,variant:m}=n,y=(0,l.A)(n,Wy),v=o.useContext(Sy),b=o.useContext(Oy),x=b&&"head"===b.variant;let w;w=a||(x?"th":"td");let A=h;"td"===w?A=void 0:!A&&x&&(A="col");const C=m||b&&b.variant,E=(0,s.A)({},n,{align:r,component:w,padding:d||(v&&v.padding?v.padding:"normal"),size:p||(v&&v.size?v.size:"medium"),sortDirection:f,stickyHeader:"head"===C&&v&&v.stickyHeader,variant:C}),_=(e=>{const{classes:t,variant:n,align:r,padding:i,size:o,stickyHeader:a}=e,s={root:["root",n,a&&"stickyHeader","inherit"!==r&&`align${(0,de.A)(r)}`,"normal"!==i&&`padding${(0,de.A)(i)}`,`size${(0,de.A)(o)}`]};return(0,u.A)(s,Gy,t)})(E);let k=null;return f&&(k="asc"===f?"ascending":"descending"),(0,S.jsx)(qy,(0,s.A)({as:w,ref:t,className:(0,c.A)(_.root,i),"aria-sort":k,scope:A,ownerState:E},y))})),Yy=Hy;let Ky=36,Xy="";for(;Ky--;)Xy+=Ky.toString(36);function Zy(e=11){let t="",n=e;for(;n--;)t+=Xy[36*Math.random()|0];return t}const Jy=({terms:e,matchExactly:t=!1})=>{try{const n=/^([/~@;%#'])(.*?)\1([gimsuy]*)$/.exec(e);return n?new RegExp(n[2],n[3]):new RegExp((({terms:e,matchExactly:t=!1})=>{if("string"!=typeof e)throw new TypeError("Expected a string");const n=e.trim().replace(/[|\\{}()[\]^$+*?.-]/g,(e=>`\\${e}`));return`(${t?n:(e=>e.replace(/\s{2,}/g," ").split(" ").join("|"))(n)})`})({terms:e,matchExactly:t}),"ig")}catch(e){throw new TypeError("Expected terms to be either a string or a RegExp!")}},Qy=(ev="match",e=>null!==e&&"object"==typeof e&&ev in e);var ev;const tv=e=>void 0!==e;function nv({curr:e,next:t,prev:n,clipBy:r=3}){const i=e.text.split(" "),o=i.length;if(e.match||r>=o)return e.text;const a="...";return tv(t)&&tv(n)&&Qy(n)&&Qy(t)?o>2*r?[...i.slice(0,r),a,...i.slice(-r)].join(" "):e.text:tv(t)&&Qy(t)?[a,...i.slice(-r)].join(" "):tv(n)&&Qy(n)?[...i.slice(0,r),a].join(" "):e.text}var rv=Object.defineProperty,iv=Object.defineProperties,ov=Object.getOwnPropertyDescriptors,av=Object.getOwnPropertySymbols,sv=Object.prototype.hasOwnProperty,lv=Object.prototype.propertyIsEnumerable,cv=(e,t,n)=>t in e?rv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,uv=(e,t)=>{for(var n in t||(t={}))sv.call(t,n)&&cv(e,n,t[n]);if(av)for(var n of av(t))lv.call(t,n)&&cv(e,n,t[n]);return e};const dv=e=>e.length>0,hv=({text:e,query:t,clipBy:n,matchExactly:r=!1})=>{const i="string"==typeof t?t.trim():t;if(""===i)return[{key:Zy(),text:e,match:!1}];const o=Jy({terms:t,matchExactly:r});return e.split(o).filter(dv).map((e=>({key:Zy(),text:e,match:r?e.toLowerCase()===i.toLowerCase():o.test(e)}))).map(((e,t,r)=>{return uv(uv({},e),"number"==typeof n&&{text:nv((i=uv(uv({curr:e},t0&&{prev:r[t-1]}),o={clipBy:n},iv(i,ov(o))))});var i,o}))};var pv=n(76964);function fv(e){return(0,w.Ay)("MuiTableFooter",e)}(0,x.A)("MuiTableFooter",["root"]);const gv=["className","component"],mv=(0,h.Ay)("tfoot",{name:"MuiTableFooter",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-footer-group"}),yv={variant:"footer"},vv="tfoot",bv=o.forwardRef((function(e,t){const n=(0,g.A)({props:e,name:"MuiTableFooter"}),{className:r,component:i=vv}=n,o=(0,l.A)(n,gv),a=(0,s.A)({},n,{component:i}),d=(e=>{const{classes:t}=e;return(0,u.A)({root:["root"]},fv,t)})(a);return(0,S.jsx)(Oy.Provider,{value:yv,children:(0,S.jsx)(mv,(0,s.A)({as:i,className:(0,c.A)(d.root,r),ref:t,role:i===vv?null:"rowgroup",ownerState:a},o))})}));function xv(e){return(0,w.Ay)("MuiTableHead",e)}(0,x.A)("MuiTableHead",["root"]);const wv=["className","component"],Av=(0,h.Ay)("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),Sv={variant:"head"},Cv="thead",Ev=o.forwardRef((function(e,t){const n=(0,g.A)({props:e,name:"MuiTableHead"}),{className:r,component:i=Cv}=n,o=(0,l.A)(n,wv),a=(0,s.A)({},n,{component:i}),d=(e=>{const{classes:t}=e;return(0,u.A)({root:["root"]},xv,t)})(a);return(0,S.jsx)(Oy.Provider,{value:Sv,children:(0,S.jsx)(Av,(0,s.A)({as:i,className:(0,c.A)(d.root,r),ref:t,role:i===Cv?null:"rowgroup",ownerState:a},o))})}));var _v=n(99893),kv=n(61821),Tv=n(22300),Ov=n.n(Tv),Pv=n(26985),Iv=n(1967),Mv=n(99559),Lv=n(94267),Rv=n(68317),jv=n(61228),Fv=n(32357);const Dv=({adapter:e,value:t,props:n})=>{if(null===t)return null;const{minTime:r,maxTime:i,minutesStep:o,shouldDisableClock:a,shouldDisableTime:s,disableIgnoringDatePartForTimeValidation:l=!1,disablePast:c,disableFuture:u,timezone:d}=n,h=e.utils.dateWithTimezone(void 0,d),p=(0,Fv.iF)(l,e.utils);switch(!0){case!e.utils.isValid(t):return"invalidDate";case Boolean(r&&p(r,t)):return"minTime";case Boolean(i&&p(t,i)):return"maxTime";case Boolean(u&&e.utils.isAfter(t,h)):return"disableFuture";case Boolean(c&&e.utils.isBefore(t,h)):return"disablePast";case Boolean(s&&s(t,"hours")):return"shouldDisableTime-hours";case Boolean(s&&s(t,"minutes")):return"shouldDisableTime-minutes";case Boolean(s&&s(t,"seconds")):return"shouldDisableTime-seconds";case Boolean(a&&a(e.utils.getHours(t),"hours")):return"shouldDisableClock-hours";case Boolean(a&&a(e.utils.getMinutes(t),"minutes")):return"shouldDisableClock-minutes";case Boolean(a&&a(e.utils.getSeconds(t),"seconds")):return"shouldDisableClock-seconds";case Boolean(o&&e.utils.getMinutes(t)%o!=0):return"minutesStep";default:return null}},Nv=({props:e,value:t,adapter:n})=>{const r=(0,jv.Z)({adapter:n,value:t,props:e});return null!==r?r:Dv({adapter:n,value:t,props:e})};var zv=n(84316),Vv=n(34667),Bv=n(48361);const $v=({props:e,inputRef:t})=>{const n=(e=>{var t,n,r,i,o,a,l,c;const u=(0,Vv.hc)(),d=(0,Vv.Yg)(),h=(null!=(t=e.ampm)?t:u.is12HourCycleInCurrentLocale())?u.formats.keyboardDateTime12h:u.formats.keyboardDateTime24h;return(0,s.A)({},e,{disablePast:null!=(n=e.disablePast)&&n,disableFuture:null!=(r=e.disableFuture)&&r,format:null!=(i=e.format)?i:h,disableIgnoringDatePartForTimeValidation:Boolean(e.minDateTime||e.maxDateTime),minDate:(0,zv.IP)(u,null!=(o=e.minDateTime)?o:e.minDate,d.minDate),maxDate:(0,zv.IP)(u,null!=(a=e.maxDateTime)?a:e.maxDate,d.maxDate),minTime:null!=(l=e.minDateTime)?l:e.minTime,maxTime:null!=(c=e.maxDateTime)?c:e.maxTime})})(e),{forwardedProps:r,internalProps:i}=(0,Bv.D)(n,"date-time");return(0,Rv.M)({inputRef:t,forwardedProps:r,internalProps:i,valueManager:Mv.W,fieldValueManager:Mv.o,validator:Nv,valueType:"date-time"})};var Gv=n(29110);const Uv=["components","componentsProps","slots","slotProps","InputProps","inputProps"],Wv=["inputRef"],qv=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],Hv=o.forwardRef((function(e,t){var n,r,i;const o=(0,g.A)({props:e,name:"MuiDateTimeField"}),{components:a,componentsProps:c,slots:u,slotProps:d,InputProps:h,inputProps:p}=o,f=(0,l.A)(o,Uv),m=o,y=null!=(n=null!=(r=null==u?void 0:u.textField)?r:null==a?void 0:a.TextField)?n:pv.A,v=(0,Lv.Q)({elementType:y,externalSlotProps:null!=(i=null==d?void 0:d.textField)?i:null==c?void 0:c.textField,externalForwardedProps:f,ownerState:m}),{inputRef:b}=v,x=(0,l.A)(v,Wv);x.inputProps=(0,s.A)({},p,x.inputProps),x.InputProps=(0,s.A)({},h,x.InputProps);const w=$v({props:x,inputRef:b}),{ref:A,onPaste:C,onKeyDown:E,inputMode:_,readOnly:k,clearable:T,onClear:O}=w,P=(0,l.A)(w,qv),{InputProps:I,fieldProps:M}=(0,Gv.Z)({onClear:O,clearable:T,fieldProps:P,InputProps:P.InputProps,slots:u,slotProps:d,components:a,componentsProps:c});return(0,S.jsx)(y,(0,s.A)({ref:t},M,{InputProps:(0,s.A)({},I,{readOnly:k}),inputProps:(0,s.A)({},P.inputProps,{inputMode:_,onPaste:C,onKeyDown:E,ref:A})}))}));function Yv(e){return(0,w.Ay)("MuiTab",e)}const Kv=(0,x.A)("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),Xv=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],Zv=(0,h.Ay)(H.A,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${(0,de.A)(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})((({theme:e,ownerState:t})=>(0,s.A)({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:"top"===t.iconPosition||"bottom"===t.iconPosition?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${Kv.iconWrapper}`]:(0,s.A)({},"top"===t.iconPosition&&{marginBottom:6},"bottom"===t.iconPosition&&{marginTop:6},"start"===t.iconPosition&&{marginRight:e.spacing(1)},"end"===t.iconPosition&&{marginLeft:e.spacing(1)})},"inherit"===t.textColor&&{color:"inherit",opacity:.6,[`&.${Kv.selected}`]:{opacity:1},[`&.${Kv.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},"primary"===t.textColor&&{color:(e.vars||e).palette.text.secondary,[`&.${Kv.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Kv.disabled}`]:{color:(e.vars||e).palette.text.disabled}},"secondary"===t.textColor&&{color:(e.vars||e).palette.text.secondary,[`&.${Kv.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Kv.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)}))),Jv=o.forwardRef((function(e,t){const n=(0,g.A)({props:e,name:"MuiTab"}),{className:r,disabled:i=!1,disableFocusRipple:a=!1,fullWidth:d,icon:h,iconPosition:p="top",indicator:f,label:m,onChange:y,onClick:v,onFocus:b,selected:x,selectionFollowsFocus:w,textColor:A="inherit",value:C,wrapped:E=!1}=n,_=(0,l.A)(n,Xv),k=(0,s.A)({},n,{disabled:i,disableFocusRipple:a,selected:x,icon:!!h,iconPosition:p,label:!!m,fullWidth:d,textColor:A,wrapped:E}),T=(e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:i,icon:o,label:a,selected:s,disabled:l}=e,c={root:["root",o&&a&&"labelIcon",`textColor${(0,de.A)(n)}`,r&&"fullWidth",i&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return(0,u.A)(c,Yv,t)})(k),O=h&&m&&o.isValidElement(h)?o.cloneElement(h,{className:(0,c.A)(T.iconWrapper,h.props.className)}):h;return(0,S.jsxs)(Zv,(0,s.A)({focusRipple:!a,className:(0,c.A)(T.root,r),ref:t,role:"tab","aria-selected":x,disabled:i,onClick:e=>{!x&&y&&y(e,C),v&&v(e)},onFocus:e=>{w&&!x&&y&&y(e,C),b&&b(e)},ownerState:k,tabIndex:x?0:-1},_,{children:["top"===p||"start"===p?(0,S.jsxs)(o.Fragment,{children:[O,m]}):(0,S.jsxs)(o.Fragment,{children:[m,O]}),f]}))}));let Qv;function eb(){if(Qv)return Qv;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),Qv="reverse",e.scrollLeft>0?Qv="default":(e.scrollLeft=1,0===e.scrollLeft&&(Qv="negative")),document.body.removeChild(e),Qv}function tb(e,t){const n=e.scrollLeft;if("rtl"!==t)return n;switch(eb()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}function nb(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}const rb=["onChange"],ib={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};const ob=(0,Ke.A)((0,S.jsx)("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),ab=(0,Ke.A)((0,S.jsx)("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function sb(e){return(0,w.Ay)("MuiTabScrollButton",e)}const lb=(0,x.A)("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),cb=["className","slots","slotProps","direction","orientation","disabled"],ub=(0,h.Ay)(H.A,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})((({ownerState:e})=>(0,s.A)({width:40,flexShrink:0,opacity:.8,[`&.${lb.disabled}`]:{opacity:0}},"vertical"===e.orientation&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}}))),db=o.forwardRef((function(e,t){var n,r;const i=(0,g.A)({props:e,name:"MuiTabScrollButton"}),{className:o,slots:a={},slotProps:d={},direction:h}=i,p=(0,l.A)(i,cb),f=(0,qt.I)(),m=(0,s.A)({isRtl:f},i),y=(e=>{const{classes:t,orientation:n,disabled:r}=e,i={root:["root",n,r&&"disabled"]};return(0,u.A)(i,sb,t)})(m),v=null!=(n=a.StartScrollButtonIcon)?n:ob,b=null!=(r=a.EndScrollButtonIcon)?r:ab,x=(0,Lt.Q)({elementType:v,externalSlotProps:d.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m}),w=(0,Lt.Q)({elementType:b,externalSlotProps:d.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m});return(0,S.jsx)(ub,(0,s.A)({component:"div",className:(0,c.A)(y.root,o),ref:t,role:null,ownerState:m,tabIndex:null},p,{children:"left"===h?(0,S.jsx)(v,(0,s.A)({},x)):(0,S.jsx)(b,(0,s.A)({},w))}))}));function hb(e){return(0,w.Ay)("MuiTabs",e)}const pb=(0,x.A)("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]);var fb=n(8018);const gb=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],mb=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,yb=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,vb=(e,t,n)=>{let r=!1,i=n(e,t);for(;i;){if(i===e.firstChild){if(r)return;r=!0}const t=i.disabled||"true"===i.getAttribute("aria-disabled");if(i.hasAttribute("tabindex")&&!t)return void i.focus();i=n(e,i)}},bb=(0,h.Ay)("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${pb.scrollButtons}`]:t.scrollButtons},{[`& .${pb.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})((({ownerState:e,theme:t})=>(0,s.A)({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${pb.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}}))),xb=(0,h.Ay)("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})((({ownerState:e})=>(0,s.A)({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"}))),wb=(0,h.Ay)("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})((({ownerState:e})=>(0,s.A)({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"}))),Ab=(0,h.Ay)("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})((({ownerState:e,theme:t})=>(0,s.A)({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},"primary"===e.indicatorColor&&{backgroundColor:(t.vars||t).palette.primary.main},"secondary"===e.indicatorColor&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0}))),Sb=(0,h.Ay)((function(e){const{onChange:t}=e,n=(0,l.A)(e,rb),r=o.useRef(),i=o.useRef(null),a=()=>{r.current=i.current.offsetHeight-i.current.clientHeight};return(0,yn.A)((()=>{const e=(0,si.A)((()=>{const e=r.current;a(),e!==r.current&&t(r.current)})),n=(0,li.A)(i.current);return n.addEventListener("resize",e),()=>{e.clear(),n.removeEventListener("resize",e)}}),[t]),o.useEffect((()=>{a(),t(r.current)}),[t]),(0,S.jsx)("div",(0,s.A)({style:ib,ref:i},n))}))({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Cb={};const Eb=o.forwardRef((function(e,t){const n=(0,g.A)({props:e,name:"MuiTabs"}),r=(0,v.A)(),i=(0,qt.I)(),{"aria-label":a,"aria-labelledby":d,action:h,centered:p=!1,children:f,className:m,component:y="div",allowScrollButtonsMobile:b=!1,indicatorColor:x="primary",onChange:w,orientation:A="horizontal",ScrollButtonComponent:C=db,scrollButtons:E="auto",selectionFollowsFocus:_,slots:k={},slotProps:T={},TabIndicatorProps:O={},TabScrollButtonProps:P={},textColor:I="primary",value:M,variant:L="standard",visibleScrollbar:R=!1}=n,j=(0,l.A)(n,gb),F="scrollable"===L,D="vertical"===A,N=D?"scrollTop":"scrollLeft",z=D?"top":"left",V=D?"bottom":"right",B=D?"clientHeight":"clientWidth",$=D?"height":"width",G=(0,s.A)({},n,{component:y,allowScrollButtonsMobile:b,indicatorColor:x,orientation:A,vertical:D,scrollButtons:E,textColor:I,variant:L,visibleScrollbar:R,fixed:!F,hideScrollbar:F&&!R,scrollableX:F&&!D,scrollableY:F&&D,centered:p&&!F,scrollButtonsHideMobile:!b}),U=(e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:i,scrollableY:o,centered:a,scrollButtonsHideMobile:s,classes:l}=e,c={root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",i&&"scrollableX",o&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[i&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]};return(0,u.A)(c,hb,l)})(G),W=(0,Lt.Q)({elementType:k.StartScrollButtonIcon,externalSlotProps:T.startScrollButtonIcon,ownerState:G}),q=(0,Lt.Q)({elementType:k.EndScrollButtonIcon,externalSlotProps:T.endScrollButtonIcon,ownerState:G});const[H,Y]=o.useState(!1),[K,X]=o.useState(Cb),[Z,J]=o.useState(!1),[Q,ee]=o.useState(!1),[te,ne]=o.useState(!1),[re,ie]=o.useState({overflow:"hidden",scrollbarWidth:0}),oe=new Map,ae=o.useRef(null),se=o.useRef(null),le=()=>{const e=ae.current;let t,n;if(e){const n=e.getBoundingClientRect();t={clientWidth:e.clientWidth,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop,scrollLeftNormalized:tb(e,i?"rtl":"ltr"),scrollWidth:e.scrollWidth,top:n.top,bottom:n.bottom,left:n.left,right:n.right}}if(e&&!1!==M){const e=se.current.children;if(e.length>0){const t=e[oe.get(M)];0,n=t?t.getBoundingClientRect():null}}return{tabsMeta:t,tabMeta:n}},ce=(0,Yt.A)((()=>{const{tabsMeta:e,tabMeta:t}=le();let n,r=0;if(D)n="top",t&&e&&(r=t.top-e.top+e.scrollTop);else if(n=i?"right":"left",t&&e){const o=i?e.scrollLeftNormalized+e.clientWidth-e.scrollWidth:e.scrollLeft;r=(i?-1:1)*(t[n]-e[n]+o)}const o={[n]:r,[$]:t?t[$]:0};if(isNaN(K[n])||isNaN(K[$]))X(o);else{const e=Math.abs(K[n]-o[n]),t=Math.abs(K[$]-o[$]);(e>=1||t>=1)&&X(o)}})),ue=(e,{animation:t=!0}={})=>{t?function(e,t,n,r={},i=(()=>{})){const{ease:o=nb,duration:a=300}=r;let s=null;const l=t[e];let c=!1;const u=()=>{c=!0},d=r=>{if(c)return void i(new Error("Animation cancelled"));null===s&&(s=r);const u=Math.min(1,(r-s)/a);t[e]=o(u)*(n-l)+l,u>=1?requestAnimationFrame((()=>{i(null)})):requestAnimationFrame(d)};l===n?i(new Error("Element already at target position")):requestAnimationFrame(d)}(N,ae.current,e,{duration:r.transitions.duration.standard}):ae.current[N]=e},de=e=>{let t=ae.current[N];D?t+=e:(t+=e*(i?-1:1),t*=i&&"reverse"===eb()?-1:1),ue(t)},he=()=>{const e=ae.current[B];let t=0;const n=Array.from(se.current.children);for(let r=0;re){0===r&&(t=e);break}t+=i[B]}return t},pe=()=>{de(-1*he())},fe=()=>{de(he())},ge=o.useCallback((e=>{ie({overflow:null,scrollbarWidth:e})}),[]),me=(0,Yt.A)((e=>{const{tabsMeta:t,tabMeta:n}=le();if(n&&t)if(n[z]t[V]){const r=t[N]+(n[V]-t[V]);ue(r,{animation:e})}})),ye=(0,Yt.A)((()=>{F&&!1!==E&&ne(!te)}));o.useEffect((()=>{const e=(0,si.A)((()=>{ae.current&&ce()}));let t;const n=n=>{n.forEach((e=>{e.removedNodes.forEach((e=>{var n;null==(n=t)||n.unobserve(e)})),e.addedNodes.forEach((e=>{var n;null==(n=t)||n.observe(e)}))})),e(),ye()},r=(0,li.A)(ae.current);let i;return r.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(e),Array.from(se.current.children).forEach((e=>{t.observe(e)}))),"undefined"!=typeof MutationObserver&&(i=new MutationObserver(n),i.observe(se.current,{childList:!0})),()=>{var n,o;e.clear(),r.removeEventListener("resize",e),null==(n=i)||n.disconnect(),null==(o=t)||o.disconnect()}}),[ce,ye]),o.useEffect((()=>{const e=Array.from(se.current.children),t=e.length;if("undefined"!=typeof IntersectionObserver&&t>0&&F&&!1!==E){const n=e[0],r=e[t-1],i={root:ae.current,threshold:.99},o=new IntersectionObserver((e=>{J(!e[0].isIntersecting)}),i);o.observe(n);const a=new IntersectionObserver((e=>{ee(!e[0].isIntersecting)}),i);return a.observe(r),()=>{o.disconnect(),a.disconnect()}}}),[F,E,te,null==f?void 0:f.length]),o.useEffect((()=>{Y(!0)}),[]),o.useEffect((()=>{ce()})),o.useEffect((()=>{me(Cb!==K)}),[me,K]),o.useImperativeHandle(h,(()=>({updateIndicator:ce,updateScrollButtons:ye})),[ce,ye]);const ve=(0,S.jsx)(Ab,(0,s.A)({},O,{className:(0,c.A)(U.indicator,O.className),ownerState:G,style:(0,s.A)({},K,O.style)}));let be=0;const xe=o.Children.map(f,(e=>{if(!o.isValidElement(e))return null;const t=void 0===e.props.value?be:e.props.value;oe.set(t,be);const n=t===M;return be+=1,o.cloneElement(e,(0,s.A)({fullWidth:"fullWidth"===L,indicator:n&&!H&&ve,selected:n,selectionFollowsFocus:_,onChange:w,textColor:I,value:t},1!==be||!1!==M||e.props.tabIndex?{}:{tabIndex:0}))})),we=(()=>{const e={};e.scrollbarSizeListener=F?(0,S.jsx)(Sb,{onChange:ge,className:(0,c.A)(U.scrollableX,U.hideScrollbar)}):null;const t=F&&("auto"===E&&(Z||Q)||!0===E);return e.scrollButtonStart=t?(0,S.jsx)(C,(0,s.A)({slots:{StartScrollButtonIcon:k.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:W},orientation:A,direction:i?"right":"left",onClick:pe,disabled:!Z},P,{className:(0,c.A)(U.scrollButtons,P.className)})):null,e.scrollButtonEnd=t?(0,S.jsx)(C,(0,s.A)({slots:{EndScrollButtonIcon:k.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:q},orientation:A,direction:i?"left":"right",onClick:fe,disabled:!Q},P,{className:(0,c.A)(U.scrollButtons,P.className)})):null,e})();return(0,S.jsxs)(bb,(0,s.A)({className:(0,c.A)(U.root,m),ownerState:G,ref:t,as:y},j,{children:[we.scrollButtonStart,we.scrollbarSizeListener,(0,S.jsxs)(xb,{className:U.scroller,ownerState:G,style:{overflow:re.overflow,[D?"margin"+(i?"Left":"Right"):"marginBottom"]:R?void 0:-re.scrollbarWidth},ref:ae,children:[(0,S.jsx)(wb,{"aria-label":a,"aria-labelledby":d,"aria-orientation":"vertical"===A?"vertical":null,className:U.flexContainer,ownerState:G,onKeyDown:e=>{const t=se.current,n=(0,fb.A)(t).activeElement;if("tab"!==n.getAttribute("role"))return;let r="horizontal"===A?"ArrowLeft":"ArrowUp",o="horizontal"===A?"ArrowRight":"ArrowDown";switch("horizontal"===A&&i&&(r="ArrowRight",o="ArrowLeft"),e.key){case r:e.preventDefault(),vb(t,n,yb);break;case o:e.preventDefault(),vb(t,n,mb);break;case"Home":e.preventDefault(),vb(t,null,mb);break;case"End":e.preventDefault(),vb(t,null,yb)}},ref:se,role:"tablist",children:xe}),H&&ve]}),we.scrollButtonEnd]}))})),_b=Eb;var kb=n(46260);function Tb(e){return(0,w.Ay)("MuiDateTimePickerTabs",e)}(0,x.A)("MuiDateTimePickerTabs",["root"]);const Ob=e=>(0,zv.sC)(e)?"date":"time",Pb=(0,h.Ay)(_b,{name:"MuiDateTimePickerTabs",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({boxShadow:`0 -1px 0 0 inset ${(e.vars||e).palette.divider}`,"&:last-child":{boxShadow:`0 1px 0 0 inset ${(e.vars||e).palette.divider}`,[`& .${pb.indicator}`]:{bottom:"auto",top:0}}}))),Ib=function(e){const t=(0,g.A)({props:e,name:"MuiDateTimePickerTabs"}),{dateIcon:n=(0,S.jsx)(kb.Z5,{}),onViewChange:r,timeIcon:i=(0,S.jsx)(kb.b1,{}),view:a,hidden:s="undefined"==typeof window||window.innerHeight<667,className:l,sx:d}=t,h=(0,Vv.Nq)(),p=(e=>{const{classes:t}=e;return(0,u.A)({root:["root"]},Tb,t)})(t);return s?null:(0,S.jsxs)(Pb,{ownerState:t,variant:"fullWidth",value:Ob(a),onChange:(e,t)=>{r("date"===t?"day":"hours")},className:(0,c.A)(l,p.root),sx:d,children:[(0,S.jsx)(Jv,{value:"date","aria-label":h.dateTableLabel,icon:(0,S.jsx)(o.Fragment,{children:n})}),(0,S.jsx)(Jv,{value:"time","aria-label":h.timeTableLabel,icon:(0,S.jsx)(o.Fragment,{children:i})})]})};function Mb(e){return(0,w.Ay)("MuiPickersToolbarText",e)}const Lb=(0,x.A)("MuiPickersToolbarText",["root","selected"]),Rb=["className","selected","value"],jb=(0,h.Ay)(Jn.A,{name:"MuiPickersToolbarText",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${Lb.selected}`]:t.selected}]})((({theme:e})=>({transition:e.transitions.create("color"),color:(e.vars||e).palette.text.secondary,[`&.${Lb.selected}`]:{color:(e.vars||e).palette.text.primary}}))),Fb=o.forwardRef((function(e,t){const n=(0,g.A)({props:e,name:"MuiPickersToolbarText"}),{className:r,value:i}=n,o=(0,l.A)(n,Rb),a=(e=>{const{classes:t,selected:n}=e,r={root:["root",n&&"selected"]};return(0,u.A)(r,Mb,t)})(n);return(0,S.jsx)(jb,(0,s.A)({ref:t,className:(0,c.A)(r,a.root),component:"span"},o,{children:i}))}));var Db=n(65703),Nb=n(57491);const zb=["align","className","selected","typographyClassName","value","variant","width"],Vb=(0,h.Ay)(dn.A,{name:"MuiPickersToolbarButton",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,minWidth:16,textTransform:"none"}),Bb=o.forwardRef((function(e,t){const n=(0,g.A)({props:e,name:"MuiPickersToolbarButton"}),{align:r,className:i,selected:o,typographyClassName:a,value:d,variant:h,width:p}=n,f=(0,l.A)(n,zb),m=(e=>{const{classes:t}=e;return(0,u.A)({root:["root"]},Nb.B,t)})(n);return(0,S.jsx)(Vb,(0,s.A)({variant:"text",ref:t,className:(0,c.A)(i,m.root)},p?{sx:{width:p}}:{},f,{children:(0,S.jsx)(Fb,{align:r,className:a,variant:h,value:d,selected:o})}))}));function $b(e){return(0,w.Ay)("MuiDateTimePickerToolbar",e)}const Gb=(0,x.A)("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","timeDigitsContainer","separator","timeLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]);var Ub=n(40774),Wb=n(8589);const qb=["ampm","ampmInClock","value","onChange","view","isLandscape","onViewChange","toolbarFormat","toolbarPlaceholder","views","disabled","readOnly","toolbarVariant"],Hb=e=>{const{classes:t,theme:n,isLandscape:r}=e,i={root:["root"],dateContainer:["dateContainer"],timeContainer:["timeContainer","rtl"===n.direction&&"timeLabelReverse"],timeDigitsContainer:["timeDigitsContainer","rtl"===n.direction&&"timeLabelReverse"],separator:["separator"],ampmSelection:["ampmSelection",r&&"ampmLandscape"],ampmLabel:["ampmLabel"]};return(0,u.A)(i,$b,t)},Yb=(0,h.Ay)(Db.Z,{name:"MuiDateTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e,ownerState:t})=>({paddingLeft:"desktop"!==t.toolbarVariant||t.isLandscape?16:24,paddingRight:"desktop"!==t.toolbarVariant||t.isLandscape?16:0,borderBottom:"desktop"===t.toolbarVariant?`1px solid ${(e.vars||e).palette.divider}`:void 0,borderRight:"desktop"===t.toolbarVariant&&t.isLandscape?`1px solid ${(e.vars||e).palette.divider}`:void 0,justifyContent:"space-around",position:"relative"})));Yb.propTypes={as:Ov().elementType,classes:Ov().object,className:Ov().string,isLandscape:Ov().bool.isRequired,isMobileKeyboardViewOpen:Ov().bool,landscapeDirection:Ov().oneOf(["column","row"]),ownerState:Ov().object.isRequired,sx:Ov().oneOfType([Ov().arrayOf(Ov().oneOfType([Ov().func,Ov().object,Ov().bool])),Ov().func,Ov().object]),toggleMobileKeyboardView:Ov().func,toolbarTitle:Ov().node,viewType:Ov().oneOf(["date","time"])};const Kb=(0,h.Ay)("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer",overridesResolver:(e,t)=>t.dateContainer})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),Xb=(0,h.Ay)("div",{name:"MuiDateTimePickerToolbar",slot:"TimeContainer",overridesResolver:(e,t)=>t.timeContainer})((({theme:e,ownerState:t})=>{const n=t.isLandscape&&"desktop"!==t.toolbarVariant?"column":"row";return(0,s.A)({display:"flex",flexDirection:n},"desktop"===t.toolbarVariant&&(0,s.A)({},!t.isLandscape&&{gap:9,marginRight:4,alignSelf:"flex-end"}),"rtl"===e.direction&&{flexDirection:`${n}-reverse`})})),Zb=(0,h.Ay)("div",{name:"MuiDateTimePickerToolbar",slot:"TimeDigitsContainer",overridesResolver:(e,t)=>t.timeDigitsContainer})((({theme:e,ownerState:t})=>(0,s.A)({display:"flex"},"desktop"===t.toolbarVariant&&{gap:1.5},"rtl"===e.direction&&{flexDirection:"row-reverse"})));Xb.propTypes={as:Ov().elementType,ownerState:Ov().object.isRequired,sx:Ov().oneOfType([Ov().arrayOf(Ov().oneOfType([Ov().func,Ov().object,Ov().bool])),Ov().func,Ov().object])};const Jb=(0,h.Ay)(Fb,{name:"MuiDateTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})((({ownerState:e})=>({margin:"desktop"===e.toolbarVariant?0:"0 4px 0 2px",cursor:"default"}))),Qb=(0,h.Ay)("div",{name:"MuiDateTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${Gb.ampmLabel}`]:t.ampmLabel},{[`&.${Gb.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})((({ownerState:e})=>(0,s.A)({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",width:"100%"},{[`& .${Gb.ampmLabel}`]:{fontSize:17}})));function ex(e){const t=(0,g.A)({props:e,name:"MuiDateTimePickerToolbar"}),{ampm:n,ampmInClock:r,value:i,onChange:a,view:c,isLandscape:u,onViewChange:d,toolbarFormat:h,toolbarPlaceholder:p="––",views:f,disabled:m,readOnly:y,toolbarVariant:b="mobile"}=t,x=(0,l.A)(t,qb),w=t,A=(0,Vv.hc)(),{meridiemMode:C,handleMeridiemChange:E}=(0,Ub.r7)(i,n,a),_=Boolean(n&&!r),k="desktop"===b,T=(0,Vv.Nq)(),O=(0,v.A)(),P=Hb((0,s.A)({},w,{theme:O})),I=o.useMemo((()=>i?h?A.formatByString(i,h):A.format(i,"shortDate"):p),[i,h,p,A]);return(0,S.jsxs)(Yb,(0,s.A)({toolbarTitle:T.dateTimePickerToolbarTitle,isLandscape:u,className:P.root},x,{ownerState:w,children:[(0,S.jsxs)(Kb,{className:P.dateContainer,ownerState:w,children:[f.includes("year")&&(0,S.jsx)(Bb,{tabIndex:-1,variant:"subtitle1",onClick:()=>d("year"),selected:"year"===c,value:i?A.format(i,"year"):"–"}),f.includes("day")&&(0,S.jsx)(Bb,{tabIndex:-1,variant:k?"h5":"h4",onClick:()=>d("day"),selected:"day"===c,value:I})]}),(0,S.jsxs)(Xb,{className:P.timeContainer,ownerState:w,children:[(0,S.jsxs)(Zb,{className:P.timeDigitsContainer,ownerState:w,children:[f.includes("hours")&&(0,S.jsx)(Bb,{variant:k?"h5":"h3",width:k&&!u?Wb.aG:void 0,onClick:()=>d("hours"),selected:"hours"===c,value:i?(M=i,n?A.format(M,"hours12h"):A.format(M,"hours24h")):"--"}),f.includes("minutes")&&(0,S.jsxs)(o.Fragment,{children:[(0,S.jsx)(Jb,{variant:k?"h5":"h3",value:":",className:P.separator,ownerState:w}),(0,S.jsx)(Bb,{variant:k?"h5":"h3",width:k&&!u?Wb.aG:void 0,onClick:()=>d("minutes"),selected:"minutes"===c,value:i?A.format(i,"minutes"):"--"})]}),f.includes("seconds")&&(0,S.jsxs)(o.Fragment,{children:[(0,S.jsx)(Jb,{variant:k?"h5":"h3",value:":",className:P.separator,ownerState:w}),(0,S.jsx)(Bb,{variant:k?"h5":"h3",width:k&&!u?Wb.aG:void 0,onClick:()=>d("seconds"),selected:"seconds"===c,value:i?A.format(i,"seconds"):"--"})]})]}),_&&!k&&(0,S.jsxs)(Qb,{className:P.ampmSelection,ownerState:w,children:[(0,S.jsx)(Bb,{variant:"subtitle2",selected:"am"===C,typographyClassName:P.ampmLabel,value:(0,zv._S)(A,"am"),onClick:y?void 0:()=>E("am"),disabled:m}),(0,S.jsx)(Bb,{variant:"subtitle2",selected:"pm"===C,typographyClassName:P.ampmLabel,value:(0,zv._S)(A,"pm"),onClick:y?void 0:()=>E("pm"),disabled:m})]}),n&&k&&(0,S.jsx)(Bb,{variant:"h5",onClick:()=>d("meridiem"),selected:"meridiem"===c,value:i&&C?(0,zv._S)(A,C):"--",width:Wb.aG})]})]}));var M}var tx=n(77928),nx=n(84474);function rx(e,t){var n,r,i,a,l,c,u,d,h,p,f;const m=(0,Vv.hc)(),y=(0,Vv.Yg)(),v=(0,g.A)({props:e,name:t}),b=null!=(n=v.ampm)?n:m.is12HourCycleInCurrentLocale(),x=o.useMemo((()=>{var e;return null==(null==(e=v.localeText)?void 0:e.toolbarTitle)?v.localeText:(0,s.A)({},v.localeText,{dateTimePickerToolbarTitle:v.localeText.toolbarTitle})}),[v.localeText]),w=null!=(r=v.slots)?r:(0,nx.p)(v.components),A=null!=(i=v.slotProps)?i:v.componentsProps;return(0,s.A)({},v,(0,tx.R)({views:v.views,openTo:v.openTo,defaultViews:["year","day","hours","minutes"],defaultOpenTo:"day"}),{ampm:b,localeText:x,orientation:null!=(a=v.orientation)?a:"portrait",disableIgnoringDatePartForTimeValidation:null!=(l=v.disableIgnoringDatePartForTimeValidation)?l:Boolean(v.minDateTime||v.maxDateTime||v.disablePast||v.disableFuture),disableFuture:null!=(c=v.disableFuture)&&c,disablePast:null!=(u=v.disablePast)&&u,minDate:(0,zv.IP)(m,null!=(d=v.minDateTime)?d:v.minDate,y.minDate),maxDate:(0,zv.IP)(m,null!=(h=v.maxDateTime)?h:v.maxDate,y.maxDate),minTime:null!=(p=v.minDateTime)?p:v.minTime,maxTime:null!=(f=v.maxDateTime)?f:v.maxTime,slots:(0,s.A)({toolbar:ex,tabs:Ib},w),slotProps:(0,s.A)({},A,{toolbar:(0,s.A)({ampm:b},null==A?void 0:A.toolbar)})})}var ix=n(29162),ox=n(66865),ax=n(48269);function sx(e){return(0,w.Ay)("MuiMultiSectionDigitalClockSection",e)}const lx=(0,x.A)("MuiMultiSectionDigitalClockSection",["root","item"]),cx=(0,h.Ay)("div")({display:"flex",margin:"0 auto"});var ux=n(58896),dx=n(56468),hx=n(44206);function px(e){return(0,w.Ay)("MuiTimeClock",e)}(0,x.A)("MuiTimeClock",["root","arrowSwitcher"]);var fx=n(43107);const gx=220,mx=36,yx={x:gx/2,y:gx/2},vx=yx.x-yx.x,bx=0-yx.y,xx=(e,t,n)=>{const r=t-yx.x,i=n-yx.y,o=Math.atan2(vx,bx)-Math.atan2(r,i);let a=o*(180/Math.PI);a=Math.round(a/e)*e,a%=360;const s=r**2+i**2;return{value:Math.floor(a/e)||0,distance:Math.sqrt(s)}};function wx(e){return(0,w.Ay)("MuiClockPointer",e)}(0,x.A)("MuiClockPointer",["root","thumb"]);const Ax=["className","hasSelected","isInner","type","viewValue"],Sx=e=>{const{classes:t}=e;return(0,u.A)({root:["root"],thumb:["thumb"]},wx,t)},Cx=(0,h.Ay)("div",{name:"MuiClockPointer",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e,ownerState:t})=>(0,s.A)({width:2,backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px"},t.shouldAnimate&&{transition:e.transitions.create(["transform","height"])}))),Ex=(0,h.Ay)("div",{name:"MuiClockPointer",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})((({theme:e,ownerState:t})=>(0,s.A)({width:4,height:4,backgroundColor:(e.vars||e).palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:"calc(50% - 18px)",border:`16px solid ${(e.vars||e).palette.primary.main}`,boxSizing:"content-box"},t.hasSelected&&{backgroundColor:(e.vars||e).palette.primary.main})));function _x(e){const t=(0,g.A)({props:e,name:"MuiClockPointer"}),{className:n,isInner:r,type:i,viewValue:a}=t,u=(0,l.A)(t,Ax),d=o.useRef(i);o.useEffect((()=>{d.current=i}),[i]);const h=(0,s.A)({},t,{shouldAnimate:d.current!==i}),p=Sx(h);return(0,S.jsx)(Cx,(0,s.A)({style:(()=>{let e=360/("hours"===i?12:60)*a;return"hours"===i&&a>12&&(e-=360),{height:Math.round((r?.26:.4)*gx),transform:`rotateZ(${e}deg)`}})(),className:(0,c.A)(n,p.root),ownerState:h},u,{children:(0,S.jsx)(Ex,{ownerState:h,className:p.thumb})}))}function kx(e){return(0,w.Ay)("MuiClock",e)}(0,x.A)("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton","meridiemText"]);const Tx=(0,h.Ay)("div",{name:"MuiClock",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)}))),Ox=(0,h.Ay)("div",{name:"MuiClock",slot:"Clock",overridesResolver:(e,t)=>t.clock})({backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:220,width:220,flexShrink:0,position:"relative",pointerEvents:"none"}),Px=(0,h.Ay)("div",{name:"MuiClock",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({"&:focus":{outline:"none"}}),Ix=(0,h.Ay)("div",{name:"MuiClock",slot:"SquareMask",overridesResolver:(e,t)=>t.squareMask})((({ownerState:e})=>(0,s.A)({width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:0,touchAction:"none",userSelect:"none"},e.disabled?{}:{"@media (pointer: fine)":{cursor:"pointer",borderRadius:"50%"},"&:active":{cursor:"move"}}))),Mx=(0,h.Ay)("div",{name:"MuiClock",slot:"Pin",overridesResolver:(e,t)=>t.pin})((({theme:e})=>({width:6,height:6,borderRadius:"50%",backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}))),Lx=(0,h.Ay)(Ge.A,{name:"MuiClock",slot:"AmButton",overridesResolver:(e,t)=>t.amButton})((({theme:e,ownerState:t})=>(0,s.A)({zIndex:1,position:"absolute",bottom:8,left:8,paddingLeft:4,paddingRight:4,width:mx},"am"===t.meridiemMode&&{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}}))),Rx=(0,h.Ay)(Ge.A,{name:"MuiClock",slot:"PmButton",overridesResolver:(e,t)=>t.pmButton})((({theme:e,ownerState:t})=>(0,s.A)({zIndex:1,position:"absolute",bottom:8,right:8,paddingLeft:4,paddingRight:4,width:mx},"pm"===t.meridiemMode&&{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}}))),jx=(0,h.Ay)(Jn.A,{name:"MuiClock",slot:"meridiemText",overridesResolver:(e,t)=>t.meridiemText})({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});function Fx(e){const t=(0,g.A)({props:e,name:"MuiClock"}),{ampm:n,ampmInClock:r,autoFocus:i,children:a,value:s,handleMeridiemChange:l,isTimeDisabled:d,meridiemMode:h,minutesStep:p=1,onChange:f,selectedId:m,type:y,viewValue:v,disabled:b,readOnly:x,className:w}=t,A=t,C=(0,Vv.hc)(),E=(0,Vv.Nq)(),_=o.useRef(!1),k=(e=>{const{classes:t}=e;return(0,u.A)({root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton"],pmButton:["pmButton"],meridiemText:["meridiemText"]},kx,t)})(A),T=d(v,y),O=!n&&"hours"===y&&(v<1||v>12),P=(e,t)=>{b||x||d(e,y)||f(e,t)},I=(e,t)=>{let{offsetX:r,offsetY:i}=e;if(void 0===r){const t=e.target.getBoundingClientRect();r=e.changedTouches[0].clientX-t.left,i=e.changedTouches[0].clientY-t.top}const o="seconds"===y||"minutes"===y?((e,t,n=1)=>{const r=6*n;let{value:i}=xx(r,e,t);return i=i*n%60,i})(r,i,p):((e,t,n)=>{const{value:r,distance:i}=xx(30,e,t);let o=r||12;return n?o%=12:i"hours"===y||v%5==0),[y,v]),L="minutes"===y?p:1,R=o.useRef(null);(0,fx.A)((()=>{i&&R.current.focus()}),[i]);return(0,S.jsxs)(Tx,{className:(0,c.A)(w,k.root),children:[(0,S.jsxs)(Ox,{className:k.clock,children:[(0,S.jsx)(Ix,{onTouchMove:e=>{_.current=!0,I(e,"shallow")},onTouchEnd:e=>{_.current&&(I(e,"finish"),_.current=!1)},onMouseUp:e=>{_.current&&(_.current=!1),I(e.nativeEvent,"finish")},onMouseMove:e=>{e.buttons>0&&I(e.nativeEvent,"shallow")},ownerState:{disabled:b},className:k.squareMask}),!T&&(0,S.jsxs)(o.Fragment,{children:[(0,S.jsx)(Mx,{className:k.pin}),null!=s&&(0,S.jsx)(_x,{type:y,viewValue:v,isInner:O,hasSelected:M})]}),(0,S.jsx)(Px,{"aria-activedescendant":m,"aria-label":E.clockLabelText(y,s,C),ref:R,role:"listbox",onKeyDown:e=>{if(!_.current)switch(e.key){case"Home":P(0,"partial"),e.preventDefault();break;case"End":P("minutes"===y?59:23,"partial"),e.preventDefault();break;case"ArrowUp":P(v+L,"partial"),e.preventDefault();break;case"ArrowDown":P(v-L,"partial"),e.preventDefault()}},tabIndex:0,className:k.wrapper,children:a})]}),n&&r&&(0,S.jsxs)(o.Fragment,{children:[(0,S.jsx)(Lx,{onClick:x?void 0:()=>l("am"),disabled:b||null===h,ownerState:A,className:k.amButton,title:(0,zv._S)(C,"am"),children:(0,S.jsx)(jx,{variant:"caption",className:k.meridiemText,children:(0,zv._S)(C,"am")})}),(0,S.jsx)(Rx,{disabled:b||null===h,onClick:x?void 0:()=>l("pm"),ownerState:A,className:k.pmButton,title:(0,zv._S)(C,"pm"),children:(0,S.jsx)(jx,{variant:"caption",className:k.meridiemText,children:(0,zv._S)(C,"pm")})})]})]})}function Dx(e){return(0,w.Ay)("MuiClockNumber",e)}const Nx=(0,x.A)("MuiClockNumber",["root","selected","disabled"]),zx=["className","disabled","index","inner","label","selected"],Vx=(0,h.Ay)("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${Nx.disabled}`]:t.disabled},{[`&.${Nx.selected}`]:t.selected}]})((({theme:e,ownerState:t})=>(0,s.A)({height:mx,width:mx,position:"absolute",left:"calc((100% - 36px) / 2)",display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:(e.vars||e).palette.text.primary,fontFamily:e.typography.fontFamily,"&:focused":{backgroundColor:(e.vars||e).palette.background.paper},[`&.${Nx.selected}`]:{color:(e.vars||e).palette.primary.contrastText},[`&.${Nx.disabled}`]:{pointerEvents:"none",color:(e.vars||e).palette.text.disabled}},t.inner&&(0,s.A)({},e.typography.body2,{color:(e.vars||e).palette.text.secondary}))));function Bx(e){const t=(0,g.A)({props:e,name:"MuiClockNumber"}),{className:n,disabled:r,index:i,inner:o,label:a,selected:d}=t,h=(0,l.A)(t,zx),p=t,f=(e=>{const{classes:t,selected:n,disabled:r}=e,i={root:["root",n&&"selected",r&&"disabled"]};return(0,u.A)(i,Dx,t)})(p),m=i%12/12*Math.PI*2-Math.PI/2,y=(gx-mx-2)/2*(o?.65:1),v=Math.round(Math.cos(m)*y),b=Math.round(Math.sin(m)*y);return(0,S.jsx)(Vx,(0,s.A)({className:(0,c.A)(n,f.root),"aria-disabled":!!r||void 0,"aria-selected":!!d||void 0,role:"option",style:{transform:`translate(${v}px, ${b+(gx-mx)/2}px`},ownerState:p},h,{children:a}))}const $x=({ampm:e,value:t,getClockNumberText:n,isDisabled:r,selectedId:i,utils:o})=>{const a=t?o.getHours(t):null,s=[],l=e?12:23,c=t=>null!==a&&(e?12===t?12===a||0===a:a===t||a-12===t:a===t);for(let t=e?1:0;t<=l;t+=1){let a=t.toString();0===t&&(a="00");const l=!e&&(0===t||t>12);a=o.formatNumber(a);const u=c(t);s.push((0,S.jsx)(Bx,{id:u?i:void 0,index:t,inner:l,selected:u,disabled:r(t),label:a,"aria-label":n(a)},t))}return s},Gx=({utils:e,value:t,isDisabled:n,getClockNumberText:r,selectedId:i})=>{const o=e.formatNumber;return[[5,o("05")],[10,o("10")],[15,o("15")],[20,o("20")],[25,o("25")],[30,o("30")],[35,o("35")],[40,o("40")],[45,o("45")],[50,o("50")],[55,o("55")],[0,o("00")]].map((([e,o],a)=>{const s=e===t;return(0,S.jsx)(Bx,{label:o,id:s?i:void 0,index:a+1,inner:!1,disabled:n(e),selected:s,"aria-label":r(o)},e)}))};var Ux=n(16944),Wx=n(57696);const qx=({value:e,referenceDate:t,utils:n,props:r,timezone:i})=>{const a=o.useMemo((()=>Mv.W.getInitialReferenceValue({value:e,utils:n,props:r,referenceDate:t,granularity:Wx.yX.day,timezone:i,getTodayDate:()=>(0,zv.ak)(n,i,"date")})),[]);return null!=e?e:a},Hx=["ampm","ampmInClock","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","showViewSwitcher","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","timezone"],Yx=(0,h.Ay)(hx.I,{name:"MuiTimeClock",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",position:"relative"}),Kx=(0,h.Ay)(ux.Y,{name:"MuiTimeClock",slot:"ArrowSwitcher",overridesResolver:(e,t)=>t.arrowSwitcher})({position:"absolute",right:12,top:15}),Xx=["hours","minutes"],Zx=o.forwardRef((function(e,t){const n=(0,Vv.hc)(),r=(0,g.A)({props:e,name:"MuiTimeClock"}),{ampm:i=n.is12HourCycleInCurrentLocale(),ampmInClock:a=!1,autoFocus:d,components:h,componentsProps:p,slots:f,slotProps:m,value:y,defaultValue:v,referenceDate:b,disableIgnoringDatePartForTimeValidation:x=!1,maxTime:w,minTime:A,disableFuture:C,disablePast:E,minutesStep:_=1,shouldDisableClock:k,shouldDisableTime:T,showViewSwitcher:O,onChange:P,view:I,views:M=Xx,openTo:L,onViewChange:R,focusedView:j,onFocusedViewChange:F,className:D,disabled:N,readOnly:z,timezone:V}=r,B=(0,l.A)(r,Hx),$=null!=f?f:(0,nx.p)(h),G=null!=m?m:p,{value:U,handleValueChange:W,timezone:q}=(0,Ux.Y)({name:"TimeClock",timezone:V,value:y,defaultValue:v,onChange:P,valueManager:Mv.W}),H=qx({value:U,referenceDate:b,utils:n,props:r,timezone:q}),Y=(0,Vv.Nq)(),K=(0,Vv.cB)(q),{view:X,setView:Z,previousView:J,nextView:Q,setValueAndGoToNextView:ee}=(0,dx.o)({view:I,views:M,openTo:L,onViewChange:R,onChange:W,focusedView:j,onFocusedViewChange:F}),{meridiemMode:te,handleMeridiemChange:ne}=(0,Ub.r7)(H,i,ee),re=o.useCallback(((e,t)=>{const r=(0,Fv.iF)(x,n),o="hours"===t||"minutes"===t&&M.includes("seconds"),a=({start:e,end:t})=>(!A||!r(A,t))&&((!w||!r(e,w))&&((!C||!r(e,K))&&(!E||!r(K,o?t:e)))),s=(e,r=1)=>{if(e%r!=0)return!1;if(null!=k&&k(e,t))return!1;if(T)switch(t){case"hours":return!T(n.setHours(H,e),"hours");case"minutes":return!T(n.setMinutes(H,e),"minutes");case"seconds":return!T(n.setSeconds(H,e),"seconds");default:return!1}return!0};switch(t){case"hours":{const t=(0,Fv.gY)(e,te,i),r=n.setHours(H,t);return!a({start:n.setSeconds(n.setMinutes(r,0),0),end:n.setSeconds(n.setMinutes(r,59),59)})||!s(t)}case"minutes":{const t=n.setMinutes(H,e);return!a({start:n.setSeconds(t,0),end:n.setSeconds(t,59)})||!s(e,_)}case"seconds":{const t=n.setSeconds(H,e);return!a({start:t,end:t})||!s(e)}default:throw new Error("not supported")}}),[i,H,x,w,te,A,_,k,T,n,C,E,K,M]),ie=(0,_e.A)(),oe=o.useMemo((()=>{switch(X){case"hours":{const e=(e,t)=>{const r=(0,Fv.gY)(e,te,i);ee(n.setHours(H,r),t)};return{onChange:e,viewValue:n.getHours(H),children:$x({value:U,utils:n,ampm:i,onChange:e,getClockNumberText:Y.hoursClockNumberText,isDisabled:e=>N||re(e,"hours"),selectedId:ie})}}case"minutes":{const e=n.getMinutes(H),t=(e,t)=>{ee(n.setMinutes(H,e),t)};return{viewValue:e,onChange:t,children:Gx({utils:n,value:e,onChange:t,getClockNumberText:Y.minutesClockNumberText,isDisabled:e=>N||re(e,"minutes"),selectedId:ie})}}case"seconds":{const e=n.getSeconds(H),t=(e,t)=>{ee(n.setSeconds(H,e),t)};return{viewValue:e,onChange:t,children:Gx({utils:n,value:e,onChange:t,getClockNumberText:Y.secondsClockNumberText,isDisabled:e=>N||re(e,"seconds"),selectedId:ie})}}default:throw new Error("You must provide the type for ClockView")}}),[X,n,U,i,Y.hoursClockNumberText,Y.minutesClockNumberText,Y.secondsClockNumberText,te,ee,H,re,ie,N]),ae=r,se=(e=>{const{classes:t}=e;return(0,u.A)({root:["root"],arrowSwitcher:["arrowSwitcher"]},px,t)})(ae);return(0,S.jsxs)(Yx,(0,s.A)({ref:t,className:(0,c.A)(se.root,D),ownerState:ae},B,{children:[(0,S.jsx)(Fx,(0,s.A)({autoFocus:null!=d?d:!!j,ampmInClock:a&&M.includes("hours"),value:U,type:X,ampm:i,minutesStep:_,isTimeDisabled:re,meridiemMode:te,handleMeridiemChange:ne,selectedId:ie,disabled:N,readOnly:z},oe)),O&&(0,S.jsx)(Kx,{className:se.arrowSwitcher,slots:$,slotProps:G,onGoToPrevious:()=>Z(J),isPreviousDisabled:!J,previousLabel:Y.openPreviousView,onGoToNext:()=>Z(Q),isNextDisabled:!Q,nextLabel:Y.openNextView,ownerState:ae})]}))}));function Jx(e){return(0,w.Ay)("MuiDigitalClock",e)}const Qx=(0,x.A)("MuiDigitalClock",["root","list","item"]),ew=["ampm","timeStep","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","onChange","view","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","views","skipDisabled","timezone"],tw=(0,h.Ay)(hx.I,{name:"MuiDigitalClock",slot:"Root",overridesResolver:(e,t)=>t.root})((({ownerState:e})=>({overflowY:"auto",width:"100%","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:e.alreadyRendered?"smooth":"auto"},maxHeight:Wb.kP}))),nw=(0,h.Ay)(fn.A,{name:"MuiDigitalClock",slot:"List",overridesResolver:(e,t)=>t.list})({padding:0}),rw=(0,h.Ay)(Tn,{name:"MuiDigitalClock",slot:"Item",overridesResolver:(e,t)=>t.item})((({theme:e})=>({padding:"8px 16px",margin:"2px 4px","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,Gh.X4)(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:(0,Gh.X4)(e.palette.primary.main,e.palette.action.focusOpacity)}}))),iw=o.forwardRef((function(e,t){var n,r,i;const a=(0,Vv.hc)(),d=o.useRef(null),h=(0,L.A)(t,d),p=(0,g.A)({props:e,name:"MuiDigitalClock"}),{ampm:f=a.is12HourCycleInCurrentLocale(),timeStep:m=30,autoFocus:y,components:v,componentsProps:b,slots:x,slotProps:w,value:A,defaultValue:C,referenceDate:E,disableIgnoringDatePartForTimeValidation:_=!1,maxTime:k,minTime:T,disableFuture:O,disablePast:P,minutesStep:I=1,shouldDisableClock:M,shouldDisableTime:R,onChange:j,view:F,openTo:D,onViewChange:N,focusedView:z,onFocusedViewChange:V,className:B,disabled:$,readOnly:G,views:U=["hours"],skipDisabled:W=!1,timezone:q}=p,H=(0,l.A)(p,ew),{value:Y,handleValueChange:K,timezone:X}=(0,Ux.Y)({name:"DigitalClock",timezone:q,value:A,defaultValue:C,onChange:j,valueManager:Mv.W}),Z=(0,Vv.Nq)(),J=(0,Vv.cB)(X),Q=o.useMemo((()=>(0,s.A)({},p,{alreadyRendered:!!d.current})),[p]),ee=(e=>{const{classes:t}=e;return(0,u.A)({root:["root"],list:["list"],item:["item"]},Jx,t)})(Q),te=null!=(n=null!=(r=null==x?void 0:x.digitalClockItem)?r:null==v?void 0:v.DigitalClockItem)?n:rw,ne=(0,Lv.Q)({elementType:te,externalSlotProps:null!=(i=null==w?void 0:w.digitalClockItem)?i:null==b?void 0:b.digitalClockItem,ownerState:{},className:ee.item}),re=qx({value:Y,referenceDate:E,utils:a,props:p,timezone:X}),ie=(0,Oe.A)((e=>K(e,"finish","hours"))),{setValueAndGoToNextView:oe}=(0,dx.o)({view:F,views:U,openTo:D,onViewChange:N,onChange:ie,focusedView:z,onFocusedViewChange:V}),ae=(0,Oe.A)((e=>{oe(e,"finish")}));o.useEffect((()=>{if(null===d.current)return;const e=d.current.querySelector('[role="listbox"] [role="option"][aria-selected="true"]');if(!e)return;const t=e.offsetTop;d.current.scrollTop=t-4}));const se=o.useCallback((e=>{const t=(0,Fv.iF)(_,a);return!!(T&&t(T,e)||k&&t(e,k)||O&&t(e,J)||P&&t(J,e))||!!(a.getMinutes(e)%I!=0||null!=M&&M(a.toJsDate(e).getTime(),"hours")||R&&R(e,"hours"))}),[_,a,T,k,O,J,P,I,M,R]),le=o.useMemo((()=>{const e=a.startOfDay(re);return[e,...Array.from({length:Math.ceil(1440/m)-1},((t,n)=>a.addMinutes(e,m*(n+1))))]}),[re,m,a]);return(0,S.jsx)(tw,(0,s.A)({ref:h,className:(0,c.A)(ee.root,B),ownerState:Q},H,{children:(0,S.jsx)(nw,{autoFocusItem:y||!!z,role:"listbox","aria-label":Z.timePickerToolbarTitle,className:ee.list,children:le.map((e=>{if(W&&se(e))return null;const t=a.isEqual(e,Y);return(0,S.jsx)(te,(0,s.A)({onClick:()=>!G&&ae(e),selected:t,disabled:$||se(e),disableRipple:G,role:"option","aria-disabled":G,"aria-selected":t},ne,{children:a.format(e,f?"fullTime12h":"fullTime24h")}),a.toISO(e))}))})}))}));function ow(e){return(0,w.Ay)("MuiMultiSectionDigitalClock",e)}(0,x.A)("MuiMultiSectionDigitalClock",["root"]);const aw=["autoFocus","onChange","className","disabled","readOnly","items","active","slots","slotProps","skipDisabled"],sw=(0,h.Ay)(fn.A,{name:"MuiMultiSectionDigitalClockSection",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e,ownerState:t})=>({maxHeight:Wb.kP,width:56,padding:0,overflow:"hidden","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:t.alreadyRendered?"smooth":"auto"},"@media (pointer: fine)":{"&:hover":{overflowY:"auto"}},"@media (pointer: none), (pointer: coarse)":{overflowY:"auto"},"&:not(:first-of-type)":{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},"&:after":{display:"block",content:'""',height:"calc(100% - 40px - 6px)"}}))),lw=(0,h.Ay)(Tn,{name:"MuiMultiSectionDigitalClockSection",slot:"Item",overridesResolver:(e,t)=>t.item})((({theme:e})=>({padding:8,margin:"2px 4px",width:Wb.aG,justifyContent:"center","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,Gh.X4)(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:(0,Gh.X4)(e.palette.primary.main,e.palette.action.focusOpacity)}}))),cw=o.forwardRef((function(e,t){var n;const r=o.useRef(null),i=(0,L.A)(t,r),a=o.useRef(null),d=(0,g.A)({props:e,name:"MuiMultiSectionDigitalClockSection"}),{autoFocus:h,onChange:p,className:f,disabled:m,readOnly:y,items:v,active:b,slots:x,slotProps:w,skipDisabled:A}=d,C=(0,l.A)(d,aw),E=o.useMemo((()=>(0,s.A)({},d,{alreadyRendered:!!r.current})),[d]),_=(e=>{const{classes:t}=e;return(0,u.A)({root:["root"],item:["item"]},sx,t)})(E),k=null!=(n=null==x?void 0:x.digitalClockSectionItem)?n:lw;return o.useEffect((()=>{if(null===r.current)return;const e=r.current.querySelector('[role="option"][aria-selected="true"]');if(b&&h&&e&&e.focus(),!e||a.current===e)return;a.current=e;const t=e.offsetTop;r.current.scrollTop=t-4})),(0,S.jsx)(sw,(0,s.A)({ref:i,className:(0,c.A)(_.root,f),ownerState:E,autoFocusItem:h&&b,role:"listbox"},C,{children:v.map((e=>{var t,n;if(A&&null!=(t=e.isDisabled)&&t.call(e,e.value))return null;const r=e.isSelected(e.value);return(0,S.jsx)(k,(0,s.A)({onClick:()=>!y&&p(e.value),selected:r,disabled:m||(null==(n=e.isDisabled)?void 0:n.call(e,e.value)),disableRipple:y,role:"option","aria-disabled":y,"aria-label":e.ariaLabel,"aria-selected":r,className:_.item},null==w?void 0:w.digitalClockSectionItem,{children:e.label}),e.label)}))}))})),uw=({now:e,value:t,utils:n,ampm:r,isDisabled:i,resolveAriaLabel:o,timeStep:a})=>{const s=t?n.getHours(t):null,l=[],c=e=>null!==s&&(r?12===e?12===s||0===s:s===e||s-12===e:s===e),u=r?11:23;for(let t=0;t<=u;t+=a){let a=n.format(n.setHours(e,t),r?"hours12h":"hours24h");const s=o(parseInt(a,10).toString());a=n.formatNumber(a),l.push({value:t,label:a,isSelected:c,isDisabled:i,ariaLabel:s})}return l},dw=({value:e,utils:t,isDisabled:n,timeStep:r,resolveLabel:i,resolveAriaLabel:o,hasValue:a=!0})=>{const s=t=>null!==e&&(a&&e===t);return[...Array.from({length:Math.ceil(60/r)},((e,a)=>{const l=r*a;return{value:l,label:t.formatNumber(i(l)),isDisabled:n,isSelected:s,ariaLabel:o(l.toString())}}))]},hw=["ampm","timeSteps","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","skipDisabled","timezone"],pw=(0,h.Ay)(hx.I,{name:"MuiMultiSectionDigitalClock",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({display:"flex",flexDirection:"row",width:"100%",borderBottom:`1px solid ${(e.vars||e).palette.divider}`}))),fw=o.forwardRef((function(e,t){const n=(0,Vv.hc)(),r=(0,g.A)({props:e,name:"MuiMultiSectionDigitalClock"}),{ampm:i=n.is12HourCycleInCurrentLocale(),timeSteps:a,autoFocus:d,components:h,componentsProps:p,slots:f,slotProps:m,value:y,defaultValue:v,referenceDate:b,disableIgnoringDatePartForTimeValidation:x=!1,maxTime:w,minTime:A,disableFuture:C,disablePast:E,minutesStep:_=1,shouldDisableClock:k,shouldDisableTime:T,onChange:O,view:P,views:I=["hours","minutes"],openTo:M,onViewChange:L,focusedView:R,onFocusedViewChange:j,className:F,disabled:D,readOnly:N,skipDisabled:z=!1,timezone:V}=r,B=(0,l.A)(r,hw),{value:$,handleValueChange:G,timezone:U}=(0,Ux.Y)({name:"MultiSectionDigitalClock",timezone:V,value:y,defaultValue:v,onChange:O,valueManager:Mv.W}),W=(0,Vv.Nq)(),q=(0,Vv.cB)(U),H=o.useMemo((()=>(0,s.A)({hours:1,minutes:5,seconds:5},a)),[a]),Y=qx({value:$,referenceDate:b,utils:n,props:r,timezone:U}),K=(0,Oe.A)(((e,t,n)=>G(e,t,n))),X=o.useMemo((()=>i&&I.includes("hours")?I.includes("meridiem")?I:[...I,"meridiem"]:I),[i,I]),{view:Z,setValueAndGoToNextView:J,focusedView:Q}=(0,dx.o)({view:P,views:X,openTo:M,onViewChange:L,onChange:K,focusedView:R,onFocusedViewChange:j}),ee=(0,Oe.A)((e=>{J(e,"finish","meridiem")})),{meridiemMode:te,handleMeridiemChange:ne}=(0,Ub.r7)(Y,i,ee,"finish"),re=o.useCallback(((e,t)=>{const r=(0,Fv.iF)(x,n),o="hours"===t||"minutes"===t&&X.includes("seconds"),a=({start:e,end:t})=>(!A||!r(A,t))&&((!w||!r(e,w))&&((!C||!r(e,q))&&(!E||!r(q,o?t:e)))),s=(e,r=1)=>{if(e%r!=0)return!1;if(null!=k&&k(e,t))return!1;if(T)switch(t){case"hours":return!T(n.setHours(Y,e),"hours");case"minutes":return!T(n.setMinutes(Y,e),"minutes");case"seconds":return!T(n.setSeconds(Y,e),"seconds");default:return!1}return!0};switch(t){case"hours":{const t=(0,Fv.gY)(e,te,i),r=n.setHours(Y,t);return!a({start:n.setSeconds(n.setMinutes(r,0),0),end:n.setSeconds(n.setMinutes(r,59),59)})||!s(t)}case"minutes":{const t=n.setMinutes(Y,e);return!a({start:n.setSeconds(t,0),end:n.setSeconds(t,59)})||!s(e,_)}case"seconds":{const t=n.setSeconds(Y,e);return!a({start:t,end:t})||!s(e)}default:throw new Error("not supported")}}),[i,Y,x,w,te,A,_,k,T,n,C,E,q,X]),ie=o.useCallback((e=>{switch(e){case"hours":return{onChange:e=>{const t=(0,Fv.gY)(e,te,i);J(n.setHours(Y,t),"finish","hours")},items:uw({now:q,value:$,ampm:i,utils:n,isDisabled:e=>D||re(e,"hours"),timeStep:H.hours,resolveAriaLabel:W.hoursClockNumberText})};case"minutes":return{onChange:e=>{J(n.setMinutes(Y,e),"finish","minutes")},items:dw({value:n.getMinutes(Y),utils:n,isDisabled:e=>D||re(e,"minutes"),resolveLabel:e=>n.format(n.setMinutes(q,e),"minutes"),timeStep:H.minutes,hasValue:!!$,resolveAriaLabel:W.minutesClockNumberText})};case"seconds":return{onChange:e=>{J(n.setSeconds(Y,e),"finish","seconds")},items:dw({value:n.getSeconds(Y),utils:n,isDisabled:e=>D||re(e,"seconds"),resolveLabel:e=>n.format(n.setSeconds(q,e),"seconds"),timeStep:H.seconds,hasValue:!!$,resolveAriaLabel:W.secondsClockNumberText})};case"meridiem":{const e=(0,zv._S)(n,"am"),t=(0,zv._S)(n,"pm");return{onChange:ne,items:[{value:"am",label:e,isSelected:()=>!!$&&"am"===te,ariaLabel:e},{value:"pm",label:t,isSelected:()=>!!$&&"pm"===te,ariaLabel:t}]}}default:throw new Error(`Unknown view: ${e} found.`)}}),[q,$,i,n,H.hours,H.minutes,H.seconds,W.hoursClockNumberText,W.minutesClockNumberText,W.secondsClockNumberText,te,J,Y,D,re,ne]),oe=o.useMemo((()=>X.reduce(((e,t)=>(0,s.A)({},e,{[t]:ie(t)})),{})),[X,ie]),ae=r,se=(e=>{const{classes:t}=e;return(0,u.A)({root:["root"]},ow,t)})(ae);return(0,S.jsx)(pw,(0,s.A)({ref:t,className:(0,c.A)(se.root,F),ownerState:ae,role:"group"},B,{children:Object.entries(oe).map((([e,t])=>(0,S.jsx)(cw,{items:t.items,onChange:t.onChange,active:Z===e,autoFocus:null!=d?d:Q===e,disabled:D,readOnly:N,slots:null!=f?f:h,slotProps:null!=m?m:p,skipDisabled:z,"aria-label":W.selectViewText(e)},e)))}))})),gw=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i,value:o,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:d,disablePast:h,minTime:p,maxTime:f,shouldDisableTime:g,shouldDisableClock:m,minutesStep:y,ampm:v,ampmInClock:b,components:x,componentsProps:w,slots:A,slotProps:C,readOnly:E,disabled:_,sx:k,autoFocus:T,showViewSwitcher:O,disableIgnoringDatePartForTimeValidation:P,timezone:I})=>(0,S.jsx)(Zx,{view:e,onViewChange:t,focusedView:n&&(0,Fv.hW)(n)?n:null,onFocusedViewChange:r,views:i.filter(Fv.hW),value:o,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:d,disablePast:h,minTime:p,maxTime:f,shouldDisableTime:g,shouldDisableClock:m,minutesStep:y,ampm:v,ampmInClock:b,components:x,componentsProps:w,slots:A,slotProps:C,readOnly:E,disabled:_,sx:k,autoFocus:T,showViewSwitcher:O,disableIgnoringDatePartForTimeValidation:P,timezone:I}),mw=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i,value:o,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:d,disablePast:h,minTime:p,maxTime:f,shouldDisableTime:g,shouldDisableClock:m,minutesStep:y,ampm:v,components:b,componentsProps:x,slots:w,slotProps:A,readOnly:C,disabled:E,sx:_,autoFocus:k,disableIgnoringDatePartForTimeValidation:T,timeSteps:O,skipDisabled:P,timezone:I})=>(0,S.jsx)(iw,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i.filter(Fv.hW),value:o,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:d,disablePast:h,minTime:p,maxTime:f,shouldDisableTime:g,shouldDisableClock:m,minutesStep:y,ampm:v,components:b,componentsProps:x,slots:w,slotProps:A,readOnly:C,disabled:E,sx:_,autoFocus:k,disableIgnoringDatePartForTimeValidation:T,timeStep:null==O?void 0:O.minutes,skipDisabled:P,timezone:I}),yw=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i,value:o,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:d,disablePast:h,minTime:p,maxTime:f,shouldDisableTime:g,shouldDisableClock:m,minutesStep:y,ampm:v,components:b,componentsProps:x,slots:w,slotProps:A,readOnly:C,disabled:E,sx:_,autoFocus:k,disableIgnoringDatePartForTimeValidation:T,timeSteps:O,skipDisabled:P,timezone:I})=>(0,S.jsx)(fw,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i.filter(Fv.hW),value:o,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:d,disablePast:h,minTime:p,maxTime:f,shouldDisableTime:g,shouldDisableClock:m,minutesStep:y,ampm:v,components:b,componentsProps:x,slots:w,slotProps:A,readOnly:C,disabled:E,sx:_,autoFocus:k,disableIgnoringDatePartForTimeValidation:T,timeSteps:O,skipDisabled:P,timezone:I}),vw=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:i,value:a,defaultValue:l,referenceDate:c,onChange:u,className:d,classes:h,disableFuture:p,disablePast:f,minDate:g,minTime:m,maxDate:y,maxTime:v,shouldDisableDate:b,shouldDisableMonth:x,shouldDisableYear:w,shouldDisableTime:A,shouldDisableClock:C,reduceAnimations:E,minutesStep:_,ampm:k,onMonthChange:T,monthsPerRow:O,onYearChange:P,yearsPerRow:I,defaultCalendarMonth:M,components:L,componentsProps:R,slots:j,slotProps:F,loading:D,renderLoading:N,disableHighlightToday:z,readOnly:V,disabled:B,showDaysOutsideCurrentMonth:$,dayOfWeekFormatter:G,sx:U,autoFocus:W,fixedWeekNumber:q,displayWeekNumber:H,timezone:Y,disableIgnoringDatePartForTimeValidation:K,timeSteps:X,skipDisabled:Z,timeViewsCount:J,shouldRenderTimeInASingleColumn:Q})=>{var ee,te;const ne=!(null==(ee=(0,Pv.Y)(null!=(te=null==F?void 0:F.actionBar)?te:null==R?void 0:R.actionBar,{}))||null==(ee=ee.actions)||!ee.length),re={view:(0,Fv.Sq)(e)?e:"hours",onViewChange:t,focusedView:r&&(0,Fv.Sq)(r)?r:null,onFocusedViewChange:i,views:n.filter(Fv.Sq),value:a,defaultValue:l,referenceDate:c,onChange:u,className:d,classes:h,disableFuture:p,disablePast:f,minTime:m,maxTime:v,shouldDisableTime:A,shouldDisableClock:C,minutesStep:_,ampm:k,components:L,componentsProps:R,slots:j,slotProps:F,readOnly:V,disabled:B,autoFocus:W,disableIgnoringDatePartForTimeValidation:K,timeSteps:X,skipDisabled:Z,timezone:Y};return(0,S.jsxs)(o.Fragment,{children:[(0,S.jsxs)(cx,{children:[(0,S.jsx)(ax.x,{view:(0,zv.sC)(e)?e:"day",onViewChange:t,views:n.filter(zv.sC),focusedView:r&&(0,zv.sC)(r)?r:null,onFocusedViewChange:i,value:a,defaultValue:l,referenceDate:c,onChange:u,className:d,classes:h,disableFuture:p,disablePast:f,minDate:g,maxDate:y,shouldDisableDate:b,shouldDisableMonth:x,shouldDisableYear:w,reduceAnimations:E,onMonthChange:T,monthsPerRow:O,onYearChange:P,yearsPerRow:I,defaultCalendarMonth:M,components:L,componentsProps:R,slots:j,slotProps:F,loading:D,renderLoading:N,disableHighlightToday:z,readOnly:V,disabled:B,showDaysOutsideCurrentMonth:$,dayOfWeekFormatter:G,sx:U,autoFocus:W,fixedWeekNumber:q,displayWeekNumber:H,timezone:Y}),J>0&&(0,S.jsxs)(o.Fragment,{children:[(0,S.jsx)(ox.A,{orientation:"vertical"}),Q?mw((0,s.A)({},re,{view:"hours",views:["hours"],focusedView:r&&(0,Fv.Sq)(r)?"hours":null,sx:(0,s.A)({width:"auto",[`&.${Qx.root}`]:{maxHeight:Wb.Y2}},Array.isArray(U)?U:[U])})):yw((0,s.A)({},re,{view:(0,Fv.Sq)(e)?e:"hours",views:n.filter(Fv.Sq),focusedView:r&&(0,Fv.Sq)(r)?r:null,sx:(0,s.A)({borderBottom:0,width:"auto",[`.${lx.root}`]:{maxHeight:"100%"}},Array.isArray(U)?U:[U])}))]})]}),ne&&(0,S.jsx)(ox.A,{})]})};var bw=n(38019),xw=n(64066);const ww=["views","format"],Aw=(e,t)=>{let{views:n,format:r}=t,i=(0,l.A)(t,ww);if(r)return r;const o=[],a=[];if(n.forEach((e=>{(0,Fv.hW)(e)?a.push(e):o.push(e)})),0===a.length)return(0,zv.Wq)(e,(0,s.A)({views:o},i),!1);if(0===o.length)return(0,Fv.b$)(e,(0,s.A)({views:a},i));const c=(0,Fv.b$)(e,(0,s.A)({views:a},i));return`${(0,zv.Wq)(e,(0,s.A)({views:o},i),!1)} ${c}`},Sw=(e,t,n)=>n?t.filter((e=>!(0,Fv.Sq)(e)||"hours"===e)):e?[...t,"meridiem"]:t;function Cw({thresholdToRenderTimeInASingleColumn:e,ampm:t,timeSteps:n,views:r}){const i=null!=e?e:24,o=(0,s.A)({hours:1,minutes:5,seconds:5},n),a=((e,t)=>{var n,r;return 1440/((null!=(n=e.hours)?n:1)*(null!=(r=e.minutes)?r:5))<=t})(o,i);return{thresholdToRenderTimeInASingleColumn:i,timeSteps:o,shouldRenderTimeInASingleColumn:a,views:Sw(t,r,a)}}const Ew=o.forwardRef((function(e,t){var n,r,i,o,a,l,c;const u=(0,Vv.Nq)(),d=(0,Vv.hc)(),h=rx(e,"MuiDesktopDateTimePicker"),{shouldRenderTimeInASingleColumn:p,thresholdToRenderTimeInASingleColumn:f,views:g,timeSteps:m}=Cw(h),y=!h.viewRenderers||0===Object.keys(h.viewRenderers).length,v=y?{day:vw,month:vw,year:vw,hours:vw,minutes:vw,seconds:vw,meridiem:vw}:(0,s.A)({day:ix.W,month:ix.W,year:ix.W,hours:null,minutes:null,seconds:null,meridiem:null},h.viewRenderers),b=null==(n=h.ampmInClock)||n,x=y?["accept"]:[],w=(0,s.A)({},h,{viewRenderers:v,format:Aw(d,h),views:g,yearsPerRow:null!=(r=h.yearsPerRow)?r:4,ampmInClock:b,timeSteps:m,thresholdToRenderTimeInASingleColumn:f,shouldRenderTimeInASingleColumn:p,slots:(0,s.A)({field:Hv,openPickerIcon:kb.CT},h.slots),slotProps:(0,s.A)({},h.slotProps,{field:e=>{var n;return(0,s.A)({},(0,Pv.Y)(null==(n=h.slotProps)?void 0:n.field,e),(0,xw.zd)(h),{ref:t})},toolbar:(0,s.A)({hidden:!0,ampmInClock:b,toolbarVariant:y?"desktop":"mobile"},null==(i=h.slotProps)?void 0:i.toolbar),tabs:(0,s.A)({hidden:!0},null==(o=h.slotProps)?void 0:o.tabs),actionBar:(0,s.A)({actions:x},null==(a=h.slotProps)?void 0:a.actionBar)})}),{renderPicker:A}=(0,bw.U)({props:w,valueManager:Mv.W,valueType:"date-time",getOpenDialogAriaText:null!=(l=null==(c=w.localeText)?void 0:c.openDatePickerDialogue)?l:u.openDatePickerDialogue,validator:Nv});return A()}));Ew.propTypes={ampm:Ov().bool,ampmInClock:Ov().bool,autoFocus:Ov().bool,className:Ov().string,closeOnSelect:Ov().bool,components:Ov().object,componentsProps:Ov().object,dayOfWeekFormatter:Ov().func,defaultCalendarMonth:Ov().any,defaultValue:Ov().any,disabled:Ov().bool,disableFuture:Ov().bool,disableHighlightToday:Ov().bool,disableIgnoringDatePartForTimeValidation:Ov().bool,disableOpenPicker:Ov().bool,disablePast:Ov().bool,displayWeekNumber:Ov().bool,fixedWeekNumber:Ov().number,format:Ov().string,formatDensity:Ov().oneOf(["dense","spacious"]),inputRef:Iv.A,label:Ov().node,loading:Ov().bool,localeText:Ov().object,maxDate:Ov().any,maxDateTime:Ov().any,maxTime:Ov().any,minDate:Ov().any,minDateTime:Ov().any,minTime:Ov().any,minutesStep:Ov().number,monthsPerRow:Ov().oneOf([3,4]),name:Ov().string,onAccept:Ov().func,onChange:Ov().func,onClose:Ov().func,onError:Ov().func,onMonthChange:Ov().func,onOpen:Ov().func,onSelectedSectionsChange:Ov().func,onViewChange:Ov().func,onYearChange:Ov().func,open:Ov().bool,openTo:Ov().oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),orientation:Ov().oneOf(["landscape","portrait"]),readOnly:Ov().bool,reduceAnimations:Ov().bool,referenceDate:Ov().any,renderLoading:Ov().func,selectedSections:Ov().oneOfType([Ov().oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),Ov().number,Ov().shape({endIndex:Ov().number.isRequired,startIndex:Ov().number.isRequired})]),shouldDisableClock:Ov().func,shouldDisableDate:Ov().func,shouldDisableMonth:Ov().func,shouldDisableTime:Ov().func,shouldDisableYear:Ov().func,showDaysOutsideCurrentMonth:Ov().bool,skipDisabled:Ov().bool,slotProps:Ov().object,slots:Ov().object,sx:Ov().oneOfType([Ov().arrayOf(Ov().oneOfType([Ov().func,Ov().object,Ov().bool])),Ov().func,Ov().object]),thresholdToRenderTimeInASingleColumn:Ov().number,timeSteps:Ov().shape({hours:Ov().number,minutes:Ov().number,seconds:Ov().number}),timezone:Ov().string,value:Ov().any,view:Ov().oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),viewRenderers:Ov().shape({day:Ov().func,hours:Ov().func,meridiem:Ov().func,minutes:Ov().func,month:Ov().func,seconds:Ov().func,year:Ov().func}),views:Ov().arrayOf(Ov().oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsPerRow:Ov().oneOf([3,4])};var _w=n(69136);const kw=o.forwardRef((function(e,t){var n,r,i,o,a;const l=(0,Vv.Nq)(),c=(0,Vv.hc)(),u=rx(e,"MuiMobileDateTimePicker"),d=(0,s.A)({day:ix.W,month:ix.W,year:ix.W,hours:gw,minutes:gw,seconds:gw},u.viewRenderers),h=null!=(n=u.ampmInClock)&&n,p=(0,s.A)({},u,{viewRenderers:d,format:Aw(c,u),ampmInClock:h,slots:(0,s.A)({field:Hv},u.slots),slotProps:(0,s.A)({},u.slotProps,{field:e=>{var n;return(0,s.A)({},(0,Pv.Y)(null==(n=u.slotProps)?void 0:n.field,e),(0,xw.zd)(u),{ref:t})},toolbar:(0,s.A)({hidden:!1,ampmInClock:h},null==(r=u.slotProps)?void 0:r.toolbar),tabs:(0,s.A)({hidden:!1},null==(i=u.slotProps)?void 0:i.tabs)})}),{renderPicker:f}=(0,_w.C)({props:p,valueManager:Mv.W,valueType:"date-time",getOpenDialogAriaText:null!=(o=null==(a=p.localeText)?void 0:a.openDatePickerDialogue)?o:l.openDatePickerDialogue,validator:Nv});return f()}));kw.propTypes={ampm:Ov().bool,ampmInClock:Ov().bool,autoFocus:Ov().bool,className:Ov().string,closeOnSelect:Ov().bool,components:Ov().object,componentsProps:Ov().object,dayOfWeekFormatter:Ov().func,defaultCalendarMonth:Ov().any,defaultValue:Ov().any,disabled:Ov().bool,disableFuture:Ov().bool,disableHighlightToday:Ov().bool,disableIgnoringDatePartForTimeValidation:Ov().bool,disableOpenPicker:Ov().bool,disablePast:Ov().bool,displayWeekNumber:Ov().bool,fixedWeekNumber:Ov().number,format:Ov().string,formatDensity:Ov().oneOf(["dense","spacious"]),inputRef:Iv.A,label:Ov().node,loading:Ov().bool,localeText:Ov().object,maxDate:Ov().any,maxDateTime:Ov().any,maxTime:Ov().any,minDate:Ov().any,minDateTime:Ov().any,minTime:Ov().any,minutesStep:Ov().number,monthsPerRow:Ov().oneOf([3,4]),name:Ov().string,onAccept:Ov().func,onChange:Ov().func,onClose:Ov().func,onError:Ov().func,onMonthChange:Ov().func,onOpen:Ov().func,onSelectedSectionsChange:Ov().func,onViewChange:Ov().func,onYearChange:Ov().func,open:Ov().bool,openTo:Ov().oneOf(["day","hours","minutes","month","seconds","year"]),orientation:Ov().oneOf(["landscape","portrait"]),readOnly:Ov().bool,reduceAnimations:Ov().bool,referenceDate:Ov().any,renderLoading:Ov().func,selectedSections:Ov().oneOfType([Ov().oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),Ov().number,Ov().shape({endIndex:Ov().number.isRequired,startIndex:Ov().number.isRequired})]),shouldDisableClock:Ov().func,shouldDisableDate:Ov().func,shouldDisableMonth:Ov().func,shouldDisableTime:Ov().func,shouldDisableYear:Ov().func,showDaysOutsideCurrentMonth:Ov().bool,slotProps:Ov().object,slots:Ov().object,sx:Ov().oneOfType([Ov().arrayOf(Ov().oneOfType([Ov().func,Ov().object,Ov().bool])),Ov().func,Ov().object]),timezone:Ov().string,value:Ov().any,view:Ov().oneOf(["day","hours","minutes","month","seconds","year"]),viewRenderers:Ov().shape({day:Ov().func,hours:Ov().func,minutes:Ov().func,month:Ov().func,seconds:Ov().func,year:Ov().func}),views:Ov().arrayOf(Ov().oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsPerRow:Ov().oneOf([3,4])};var Tw=n(40159);const Ow=["desktopModeMediaQuery"],Pw=o.forwardRef((function(e,t){const n=(0,g.A)({props:e,name:"MuiDateTimePicker"}),{desktopModeMediaQuery:r=Tw.jX}=n,i=(0,l.A)(n,Ow);return(0,Wt.A)(r,{defaultMatches:!0})?(0,S.jsx)(Ew,(0,s.A)({ref:t},i)):(0,S.jsx)(kw,(0,s.A)({ref:t},i))})),Iw=({props:e,inputRef:t})=>{const n=(e=>{var t,n,r,i;const o=(0,Vv.hc)(),a=(null!=(t=e.ampm)?t:o.is12HourCycleInCurrentLocale())?o.formats.fullTime12h:o.formats.fullTime24h;return(0,s.A)({},e,{disablePast:null!=(n=e.disablePast)&&n,disableFuture:null!=(r=e.disableFuture)&&r,format:null!=(i=e.format)?i:a})})(e),{forwardedProps:r,internalProps:i}=(0,Bv.D)(n,"time");return(0,Rv.M)({inputRef:t,forwardedProps:r,internalProps:i,valueManager:Mv.W,fieldValueManager:Mv.o,validator:Dv,valueType:"time"})},Mw=["slots","slotProps","components","componentsProps","InputProps","inputProps"],Lw=["inputRef"],Rw=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],jw=o.forwardRef((function(e,t){var n,r,i;const o=(0,g.A)({props:e,name:"MuiTimeField"}),{slots:a,slotProps:c,components:u,componentsProps:d,InputProps:h,inputProps:p}=o,f=(0,l.A)(o,Mw),m=o,y=null!=(n=null!=(r=null==a?void 0:a.textField)?r:null==u?void 0:u.TextField)?n:pv.A,v=(0,Lv.Q)({elementType:y,externalSlotProps:null!=(i=null==c?void 0:c.textField)?i:null==d?void 0:d.textField,externalForwardedProps:f,ownerState:m}),{inputRef:b}=v,x=(0,l.A)(v,Lw);x.inputProps=(0,s.A)({},p,x.inputProps),x.InputProps=(0,s.A)({},h,x.InputProps);const w=Iw({props:x,inputRef:b}),{ref:A,onPaste:C,onKeyDown:E,inputMode:_,readOnly:k,clearable:T,onClear:O}=w,P=(0,l.A)(w,Rw),{InputProps:I,fieldProps:M}=(0,Gv.Z)({onClear:O,clearable:T,fieldProps:P,InputProps:P.InputProps,slots:a,slotProps:c,components:u,componentsProps:d});return(0,S.jsx)(y,(0,s.A)({ref:t},M,{InputProps:(0,s.A)({},I,{readOnly:k}),inputProps:(0,s.A)({},P.inputProps,{inputMode:_,onPaste:C,onKeyDown:E,ref:A})}))}));function Fw(e){return(0,w.Ay)("MuiTimePickerToolbar",e)}const Dw=(0,x.A)("MuiTimePickerToolbar",["root","separator","hourMinuteLabel","hourMinuteLabelLandscape","hourMinuteLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),Nw=["ampm","ampmInClock","value","isLandscape","onChange","view","onViewChange","views","disabled","readOnly","className"],zw=e=>{const{theme:t,isLandscape:n,classes:r}=e,i={root:["root"],separator:["separator"],hourMinuteLabel:["hourMinuteLabel",n&&"hourMinuteLabelLandscape","rtl"===t.direction&&"hourMinuteLabelReverse"],ampmSelection:["ampmSelection",n&&"ampmLandscape"],ampmLabel:["ampmLabel"]};return(0,u.A)(i,Fw,r)},Vw=(0,h.Ay)(Db.Z,{name:"MuiTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Bw=(0,h.Ay)(Fb,{name:"MuiTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({outline:0,margin:"0 4px 0 2px",cursor:"default"}),$w=(0,h.Ay)("div",{name:"MuiTimePickerToolbar",slot:"HourMinuteLabel",overridesResolver:(e,t)=>[{[`&.${Dw.hourMinuteLabelLandscape}`]:t.hourMinuteLabelLandscape,[`&.${Dw.hourMinuteLabelReverse}`]:t.hourMinuteLabelReverse},t.hourMinuteLabel]})((({theme:e,ownerState:t})=>(0,s.A)({display:"flex",justifyContent:"flex-end",alignItems:"flex-end"},t.isLandscape&&{marginTop:"auto"},"rtl"===e.direction&&{flexDirection:"row-reverse"})));$w.propTypes={as:Ov().elementType,ownerState:Ov().object.isRequired,sx:Ov().oneOfType([Ov().arrayOf(Ov().oneOfType([Ov().func,Ov().object,Ov().bool])),Ov().func,Ov().object])};const Gw=(0,h.Ay)("div",{name:"MuiTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${Dw.ampmLabel}`]:t.ampmLabel},{[`&.${Dw.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})((({ownerState:e})=>(0,s.A)({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",flexBasis:"100%"},{[`& .${Dw.ampmLabel}`]:{fontSize:17}})));function Uw(e){const t=(0,g.A)({props:e,name:"MuiTimePickerToolbar"}),{ampm:n,ampmInClock:r,value:i,isLandscape:o,onChange:a,view:u,onViewChange:d,views:h,disabled:p,readOnly:f,className:m}=t,y=(0,l.A)(t,Nw),b=(0,Vv.hc)(),x=(0,Vv.Nq)(),w=(0,v.A)(),A=Boolean(n&&!r&&h.includes("hours")),{meridiemMode:C,handleMeridiemChange:E}=(0,Ub.r7)(i,n,a),_=t,k=zw((0,s.A)({},_,{theme:w})),T=(0,S.jsx)(Bw,{tabIndex:-1,value:":",variant:"h3",selected:!1,className:k.separator});return(0,S.jsxs)(Vw,(0,s.A)({landscapeDirection:"row",toolbarTitle:x.timePickerToolbarTitle,isLandscape:o,ownerState:_,className:(0,c.A)(k.root,m)},y,{children:[(0,S.jsxs)($w,{className:k.hourMinuteLabel,ownerState:_,children:[(0,Tw.Xk)(h,"hours")&&(0,S.jsx)(Bb,{tabIndex:-1,variant:"h3",onClick:()=>d("hours"),selected:"hours"===u,value:i?(O=i,n?b.format(O,"hours12h"):b.format(O,"hours24h")):"--"}),(0,Tw.Xk)(h,["hours","minutes"])&&T,(0,Tw.Xk)(h,"minutes")&&(0,S.jsx)(Bb,{tabIndex:-1,variant:"h3",onClick:()=>d("minutes"),selected:"minutes"===u,value:i?b.format(i,"minutes"):"--"}),(0,Tw.Xk)(h,["minutes","seconds"])&&T,(0,Tw.Xk)(h,"seconds")&&(0,S.jsx)(Bb,{variant:"h3",onClick:()=>d("seconds"),selected:"seconds"===u,value:i?b.format(i,"seconds"):"--"})]}),A&&(0,S.jsxs)(Gw,{className:k.ampmSelection,ownerState:_,children:[(0,S.jsx)(Bb,{disableRipple:!0,variant:"subtitle2",selected:"am"===C,typographyClassName:k.ampmLabel,value:(0,zv._S)(b,"am"),onClick:f?void 0:()=>E("am"),disabled:p}),(0,S.jsx)(Bb,{disableRipple:!0,variant:"subtitle2",selected:"pm"===C,typographyClassName:k.ampmLabel,value:(0,zv._S)(b,"pm"),onClick:f?void 0:()=>E("pm"),disabled:p})]})]}));var O}function Ww(e,t){var n,r,i,a,l;const c=(0,Vv.hc)(),u=(0,g.A)({props:e,name:t}),d=null!=(n=u.ampm)?n:c.is12HourCycleInCurrentLocale(),h=o.useMemo((()=>{var e;return null==(null==(e=u.localeText)?void 0:e.toolbarTitle)?u.localeText:(0,s.A)({},u.localeText,{timePickerToolbarTitle:u.localeText.toolbarTitle})}),[u.localeText]),p=null!=(r=u.slots)?r:(0,nx.p)(u.components),f=null!=(i=u.slotProps)?i:u.componentsProps;return(0,s.A)({},u,{ampm:d,localeText:h},(0,tx.R)({views:u.views,openTo:u.openTo,defaultViews:["hours","minutes"],defaultOpenTo:"hours"}),{disableFuture:null!=(a=u.disableFuture)&&a,disablePast:null!=(l=u.disablePast)&&l,slots:(0,s.A)({toolbar:Uw},p),slotProps:(0,s.A)({},f,{toolbar:(0,s.A)({ampm:d,ampmInClock:u.ampmInClock},null==f?void 0:f.toolbar)})})}Gw.propTypes={as:Ov().elementType,ownerState:Ov().object.isRequired,sx:Ov().oneOfType([Ov().arrayOf(Ov().oneOfType([Ov().func,Ov().object,Ov().bool])),Ov().func,Ov().object])};const qw=o.forwardRef((function(e,t){var n,r,i,o,a,l;const c=(0,Vv.Nq)(),u=(0,Vv.hc)(),d=Ww(e,"MuiDesktopTimePicker"),{shouldRenderTimeInASingleColumn:h,views:p,timeSteps:f}=Cw(d),g=h?mw:yw,m=(0,s.A)({hours:g,minutes:g,seconds:g,meridiem:g},d.viewRenderers),y=null==(n=d.ampmInClock)||n,v=h?[]:["accept"],b=(null==(r=m.hours)?void 0:r.name)===yw.name?p:p.filter((e=>"meridiem"!==e)),x=(0,s.A)({},d,{ampmInClock:y,timeSteps:f,viewRenderers:m,format:(0,Fv.b$)(u,d),views:h?["hours"]:b,slots:(0,s.A)({field:jw,openPickerIcon:kb.O4},d.slots),slotProps:(0,s.A)({},d.slotProps,{field:e=>{var n;return(0,s.A)({},(0,Pv.Y)(null==(n=d.slotProps)?void 0:n.field,e),(0,xw.zd)(d),{ref:t})},toolbar:(0,s.A)({hidden:!0,ampmInClock:y},null==(i=d.slotProps)?void 0:i.toolbar),actionBar:(0,s.A)({actions:v},null==(o=d.slotProps)?void 0:o.actionBar)})}),{renderPicker:w}=(0,bw.U)({props:x,valueManager:Mv.W,valueType:"time",getOpenDialogAriaText:null!=(a=null==(l=x.localeText)?void 0:l.openTimePickerDialogue)?a:c.openTimePickerDialogue,validator:Dv});return w()}));qw.propTypes={ampm:Ov().bool,ampmInClock:Ov().bool,autoFocus:Ov().bool,className:Ov().string,closeOnSelect:Ov().bool,components:Ov().object,componentsProps:Ov().object,defaultValue:Ov().any,disabled:Ov().bool,disableFuture:Ov().bool,disableIgnoringDatePartForTimeValidation:Ov().bool,disableOpenPicker:Ov().bool,disablePast:Ov().bool,format:Ov().string,formatDensity:Ov().oneOf(["dense","spacious"]),inputRef:Iv.A,label:Ov().node,localeText:Ov().object,maxTime:Ov().any,minTime:Ov().any,minutesStep:Ov().number,name:Ov().string,onAccept:Ov().func,onChange:Ov().func,onClose:Ov().func,onError:Ov().func,onOpen:Ov().func,onSelectedSectionsChange:Ov().func,onViewChange:Ov().func,open:Ov().bool,openTo:Ov().oneOf(["hours","meridiem","minutes","seconds"]),orientation:Ov().oneOf(["landscape","portrait"]),readOnly:Ov().bool,reduceAnimations:Ov().bool,referenceDate:Ov().any,selectedSections:Ov().oneOfType([Ov().oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),Ov().number,Ov().shape({endIndex:Ov().number.isRequired,startIndex:Ov().number.isRequired})]),shouldDisableClock:Ov().func,shouldDisableTime:Ov().func,skipDisabled:Ov().bool,slotProps:Ov().object,slots:Ov().object,sx:Ov().oneOfType([Ov().arrayOf(Ov().oneOfType([Ov().func,Ov().object,Ov().bool])),Ov().func,Ov().object]),thresholdToRenderTimeInASingleColumn:Ov().number,timeSteps:Ov().shape({hours:Ov().number,minutes:Ov().number,seconds:Ov().number}),timezone:Ov().string,value:Ov().any,view:Ov().oneOf(["hours","meridiem","minutes","seconds"]),viewRenderers:Ov().shape({hours:Ov().func,meridiem:Ov().func,minutes:Ov().func,seconds:Ov().func}),views:Ov().arrayOf(Ov().oneOf(["hours","minutes","seconds"]).isRequired)};const Hw=o.forwardRef((function(e,t){var n,r,i,o;const a=(0,Vv.Nq)(),l=(0,Vv.hc)(),c=Ww(e,"MuiMobileTimePicker"),u=(0,s.A)({hours:gw,minutes:gw,seconds:gw},c.viewRenderers),d=null!=(n=c.ampmInClock)&&n,h=(0,s.A)({},c,{ampmInClock:d,viewRenderers:u,format:(0,Fv.b$)(l,c),slots:(0,s.A)({field:jw},c.slots),slotProps:(0,s.A)({},c.slotProps,{field:e=>{var n;return(0,s.A)({},(0,Pv.Y)(null==(n=c.slotProps)?void 0:n.field,e),(0,xw.zd)(c),{ref:t})},toolbar:(0,s.A)({hidden:!1,ampmInClock:d},null==(r=c.slotProps)?void 0:r.toolbar)})}),{renderPicker:p}=(0,_w.C)({props:h,valueManager:Mv.W,valueType:"time",getOpenDialogAriaText:null!=(i=null==(o=h.localeText)?void 0:o.openTimePickerDialogue)?i:a.openTimePickerDialogue,validator:Dv});return p()}));Hw.propTypes={ampm:Ov().bool,ampmInClock:Ov().bool,autoFocus:Ov().bool,className:Ov().string,closeOnSelect:Ov().bool,components:Ov().object,componentsProps:Ov().object,defaultValue:Ov().any,disabled:Ov().bool,disableFuture:Ov().bool,disableIgnoringDatePartForTimeValidation:Ov().bool,disableOpenPicker:Ov().bool,disablePast:Ov().bool,format:Ov().string,formatDensity:Ov().oneOf(["dense","spacious"]),inputRef:Iv.A,label:Ov().node,localeText:Ov().object,maxTime:Ov().any,minTime:Ov().any,minutesStep:Ov().number,name:Ov().string,onAccept:Ov().func,onChange:Ov().func,onClose:Ov().func,onError:Ov().func,onOpen:Ov().func,onSelectedSectionsChange:Ov().func,onViewChange:Ov().func,open:Ov().bool,openTo:Ov().oneOf(["hours","minutes","seconds"]),orientation:Ov().oneOf(["landscape","portrait"]),readOnly:Ov().bool,reduceAnimations:Ov().bool,referenceDate:Ov().any,selectedSections:Ov().oneOfType([Ov().oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),Ov().number,Ov().shape({endIndex:Ov().number.isRequired,startIndex:Ov().number.isRequired})]),shouldDisableClock:Ov().func,shouldDisableTime:Ov().func,slotProps:Ov().object,slots:Ov().object,sx:Ov().oneOfType([Ov().arrayOf(Ov().oneOfType([Ov().func,Ov().object,Ov().bool])),Ov().func,Ov().object]),timezone:Ov().string,value:Ov().any,view:Ov().oneOf(["hours","minutes","seconds"]),viewRenderers:Ov().shape({hours:Ov().func,minutes:Ov().func,seconds:Ov().func}),views:Ov().arrayOf(Ov().oneOf(["hours","minutes","seconds"]).isRequired)};const Yw=["desktopModeMediaQuery"],Kw=o.forwardRef((function(e,t){const n=(0,g.A)({props:e,name:"MuiTimePicker"}),{desktopModeMediaQuery:r=Tw.jX}=n,i=(0,l.A)(n,Yw);return(0,Wt.A)(r,{defaultMatches:!0})?(0,S.jsx)(qw,(0,s.A)({ref:t},i)):(0,S.jsx)(Hw,(0,s.A)({ref:t},i))})),Xw=(0,Ke.A)((0,S.jsx)("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function Zw(e){return(0,w.Ay)("MuiTableSortLabel",e)}const Jw=(0,x.A)("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc"]),Qw=["active","children","className","direction","hideSortIcon","IconComponent"],eA=(0,h.Ay)(H.A,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.active&&t.active]}})((({theme:e})=>({cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(e.vars||e).palette.text.secondary},"&:hover":{color:(e.vars||e).palette.text.secondary,[`& .${Jw.icon}`]:{opacity:.5}},[`&.${Jw.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${Jw.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}}))),tA=(0,h.Ay)("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,t[`iconDirection${(0,de.A)(n.direction)}`]]}})((({theme:e,ownerState:t})=>(0,s.A)({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none"},"desc"===t.direction&&{transform:"rotate(0deg)"},"asc"===t.direction&&{transform:"rotate(180deg)"}))),nA=o.forwardRef((function(e,t){const n=(0,g.A)({props:e,name:"MuiTableSortLabel"}),{active:r=!1,children:i,className:o,direction:a="asc",hideSortIcon:d=!1,IconComponent:h=Xw}=n,p=(0,l.A)(n,Qw),f=(0,s.A)({},n,{active:r,direction:a,hideSortIcon:d,IconComponent:h}),m=(e=>{const{classes:t,direction:n,active:r}=e,i={root:["root",r&&"active"],icon:["icon",`iconDirection${(0,de.A)(n)}`]};return(0,u.A)(i,Zw,t)})(f);return(0,S.jsxs)(eA,(0,s.A)({className:(0,c.A)(m.root,o),component:"span",disableRipple:!0,ownerState:f,ref:t},p,{children:[i,d&&!r?null:(0,S.jsx)(tA,{as:h,className:(0,c.A)(m.icon),ownerState:f})]}))}));function rA(e){return(0,w.Ay)("MuiAlertTitle",e)}(0,x.A)("MuiAlertTitle",["root"]);const iA=["className"],oA=(0,d.h)("MuiAlertTitle"),aA=(0,h.Ay)(Jn.A,{name:"MuiAlertTitle",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({fontWeight:e.typography.fontWeightMedium,marginTop:-2}))),sA=o.forwardRef((function(e,t){const n=oA({props:e,name:"MuiAlertTitle"}),{className:r}=n,i=(0,l.A)(n,iA),o=n,a=(e=>{const{classes:t}=e;return(0,u.A)({root:["root"]},rA,t)})(o);return(0,S.jsx)(aA,(0,s.A)({gutterBottom:!0,component:"div",ownerState:o,ref:t,className:(0,c.A)(a.root,r)},i))}));function lA(e){return(0,w.Ay)("MuiPagination",e)}(0,x.A)("MuiPagination",["root","ul","outlined","text"]);const cA=["boundaryCount","componentName","count","defaultPage","disabled","hideNextButton","hidePrevButton","onChange","page","showFirstButton","showLastButton","siblingCount"];function uA(e){return(0,w.Ay)("MuiPaginationItem",e)}const dA=(0,x.A)("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]),hA=(0,Ke.A)((0,S.jsx)("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),pA=(0,Ke.A)((0,S.jsx)("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),fA=(0,Ke.A)((0,S.jsx)("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),gA=(0,Ke.A)((0,S.jsx)("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),mA=["className","color","component","components","disabled","page","selected","shape","size","slots","type","variant"],yA=(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${(0,de.A)(n.size)}`],"text"===n.variant&&t[`text${(0,de.A)(n.color)}`],"outlined"===n.variant&&t[`outlined${(0,de.A)(n.color)}`],"rounded"===n.shape&&t.rounded,"page"===n.type&&t.page,("start-ellipsis"===n.type||"end-ellipsis"===n.type)&&t.ellipsis,("previous"===n.type||"next"===n.type)&&t.previousNext,("first"===n.type||"last"===n.type)&&t.firstLast]},vA=(0,h.Ay)("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:yA})((({theme:e,ownerState:t})=>(0,s.A)({},e.typography.body2,{borderRadius:16,textAlign:"center",boxSizing:"border-box",minWidth:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,height:"auto",[`&.${dA.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},"small"===t.size&&{minWidth:26,borderRadius:13,margin:"0 1px",padding:"0 4px"},"large"===t.size&&{minWidth:40,borderRadius:20,padding:"0 10px",fontSize:e.typography.pxToRem(15)}))),bA=(0,h.Ay)(H.A,{name:"MuiPaginationItem",slot:"Root",overridesResolver:yA})((({theme:e,ownerState:t})=>(0,s.A)({},e.typography.body2,{borderRadius:16,textAlign:"center",boxSizing:"border-box",minWidth:32,height:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,[`&.${dA.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${dA.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},transition:e.transitions.create(["color","background-color"],{duration:e.transitions.duration.short}),"&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${dA.selected}`]:{backgroundColor:(e.vars||e).palette.action.selected,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,Fe.X4)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${dA.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,Fe.X4)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},[`&.${dA.disabled}`]:{opacity:1,color:(e.vars||e).palette.action.disabled,backgroundColor:(e.vars||e).palette.action.selected}}},"small"===t.size&&{minWidth:26,height:26,borderRadius:13,margin:"0 1px",padding:"0 4px"},"large"===t.size&&{minWidth:40,height:40,borderRadius:20,padding:"0 10px",fontSize:e.typography.pxToRem(15)},"rounded"===t.shape&&{borderRadius:(e.vars||e).shape.borderRadius})),(({theme:e,ownerState:t})=>(0,s.A)({},"text"===t.variant&&{[`&.${dA.selected}`]:(0,s.A)({},"standard"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}},[`&.${dA.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}},{[`&.${dA.disabled}`]:{color:(e.vars||e).palette.action.disabled}})},"outlined"===t.variant&&{border: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)"),[`&.${dA.selected}`]:(0,s.A)({},"standard"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:(0,Fe.X4)(e.palette[t.color].main,.5)}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.activatedOpacity})`:(0,Fe.X4)(e.palette[t.color].main,e.palette.action.activatedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,Fe.X4)(e.palette[t.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${dA.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,Fe.X4)(e.palette[t.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity)}},{[`&.${dA.disabled}`]:{borderColor:(e.vars||e).palette.action.disabledBackground,color:(e.vars||e).palette.action.disabled}})}))),xA=(0,h.Ay)("div",{name:"MuiPaginationItem",slot:"Icon",overridesResolver:(e,t)=>t.icon})((({theme:e,ownerState:t})=>(0,s.A)({fontSize:e.typography.pxToRem(20),margin:"0 -8px"},"small"===t.size&&{fontSize:e.typography.pxToRem(18)},"large"===t.size&&{fontSize:e.typography.pxToRem(22)}))),wA=o.forwardRef((function(e,t){const n=(0,g.A)({props:e,name:"MuiPaginationItem"}),{className:r,color:i="standard",component:o,components:a={},disabled:d=!1,page:h,selected:p=!1,shape:f="circular",size:m="medium",slots:y={},type:v="page",variant:b="text"}=n,x=(0,l.A)(n,mA),w=(0,s.A)({},n,{color:i,disabled:d,selected:p,shape:f,size:m,type:v,variant:b}),A=(0,qt.I)(),C=(e=>{const{classes:t,color:n,disabled:r,selected:i,size:o,shape:a,type:s,variant:l}=e,c={root:["root",`size${(0,de.A)(o)}`,l,a,"standard"!==n&&`color${(0,de.A)(n)}`,"standard"!==n&&`${l}${(0,de.A)(n)}`,r&&"disabled",i&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[s]],icon:["icon"]};return(0,u.A)(c,uA,t)})(w),E=(A?{previous:y.next||a.next||gA,next:y.previous||a.previous||fA,last:y.first||a.first||hA,first:y.last||a.last||pA}:{previous:y.previous||a.previous||fA,next:y.next||a.next||gA,first:y.first||a.first||hA,last:y.last||a.last||pA})[v];return"start-ellipsis"===v||"end-ellipsis"===v?(0,S.jsx)(vA,{ref:t,ownerState:w,className:(0,c.A)(C.root,r),children:"…"}):(0,S.jsxs)(bA,(0,s.A)({ref:t,ownerState:w,component:o,disabled:d,className:(0,c.A)(C.root,r)},x,{children:["page"===v&&h,E?(0,S.jsx)(xA,{as:E,ownerState:w,className:C.icon}):null]}))})),AA=["boundaryCount","className","color","count","defaultPage","disabled","getItemAriaLabel","hideNextButton","hidePrevButton","onChange","page","renderItem","shape","showFirstButton","showLastButton","siblingCount","size","variant"],SA=(0,h.Ay)("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant]]}})({}),CA=(0,h.Ay)("ul",{name:"MuiPagination",slot:"Ul",overridesResolver:(e,t)=>t.ul})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function EA(e,t,n){return"page"===e?`${n?"":"Go to "}page ${t}`:`Go to ${e} page`}const _A=o.forwardRef((function(e,t){const n=(0,g.A)({props:e,name:"MuiPagination"}),{boundaryCount:r=1,className:i,color:o="standard",count:a=1,defaultPage:d=1,disabled:h=!1,getItemAriaLabel:p=EA,hideNextButton:f=!1,hidePrevButton:m=!1,renderItem:y=(e=>(0,S.jsx)(wA,(0,s.A)({},e))),shape:v="circular",showFirstButton:b=!1,showLastButton:x=!1,siblingCount:w=1,size:A="medium",variant:C="text"}=n,E=(0,l.A)(n,AA),{items:_}=function(e={}){const{boundaryCount:t=1,componentName:n="usePagination",count:r=1,defaultPage:i=1,disabled:o=!1,hideNextButton:a=!1,hidePrevButton:c=!1,onChange:u,page:d,showFirstButton:h=!1,showLastButton:p=!1,siblingCount:f=1}=e,g=(0,l.A)(e,cA),[m,y]=(0,ke.A)({controlled:d,default:i,name:n,state:"page"}),v=(e,t)=>{d||y(t),u&&u(e,t)},b=(e,t)=>{const n=t-e+1;return Array.from({length:n},((t,n)=>e+n))},x=b(1,Math.min(t,r)),w=b(Math.max(r-t+1,t+1),r),A=Math.max(Math.min(m-f,r-t-2*f-1),t+2),S=Math.min(Math.max(m+f,t+2*f+2),w.length>0?w[0]-2:r-1),C=[...h?["first"]:[],...c?[]:["previous"],...x,...A>t+2?["start-ellipsis"]:t+1t?[r-t]:[],...w,...a?[]:["next"],...p?["last"]:[]],E=e=>{switch(e){case"first":return 1;case"previous":return m-1;case"next":return m+1;case"last":return r;default:return null}},_=C.map((e=>"number"==typeof e?{onClick:t=>{v(t,e)},type:"page",page:e,selected:e===m,disabled:o,"aria-current":e===m?"true":void 0}:{onClick:t=>{v(t,E(e))},type:e,page:E(e),selected:!1,disabled:o||-1===e.indexOf("ellipsis")&&("next"===e||"last"===e?m>=r:m<=1)}));return(0,s.A)({items:_},g)}((0,s.A)({},n,{componentName:"Pagination"})),k=(0,s.A)({},n,{boundaryCount:r,color:o,count:a,defaultPage:d,disabled:h,getItemAriaLabel:p,hideNextButton:f,hidePrevButton:m,renderItem:y,shape:v,showFirstButton:b,showLastButton:x,siblingCount:w,size:A,variant:C}),T=(e=>{const{classes:t,variant:n}=e,r={root:["root",n],ul:["ul"]};return(0,u.A)(r,lA,t)})(k);return(0,S.jsx)(SA,(0,s.A)({"aria-label":"pagination navigation",className:(0,c.A)(T.root,i),ownerState:k,ref:t},E,{children:(0,S.jsx)(CA,{className:T.ul,ownerState:k,children:_.map(((e,t)=>(0,S.jsx)("li",{children:y((0,s.A)({},e,{color:o,"aria-label":p(e.type,e.page,e.selected),shape:v,size:A,variant:C}))},t)))})}))})),kA=_A,TA=e=>{var t,n,r,i;return null!==(i=null!==(t=e.id)&&void 0!==t?t:null===(r=null===(n=e.accessorKey)||void 0===n?void 0:n.toString)||void 0===r?void 0:r.call(n))&&void 0!==i?i:e.header},OA=e=>{const t=[],n=e=>{e.forEach((e=>{e.columns?n(e.columns):t.push(e)}))};return n(e),t},PA=({columnDefs:e,tableOptions:t})=>{const{aggregationFns:n={},defaultDisplayColumn:r,filterFns:i={},sortingFns:o={},state:{columnFilterFns:a={}}={}}=t;return e.map((e=>{var s,l;if(e.id||(e.id=TA(e)),e.columnDefType||(e.columnDefType="data"),null===(s=e.columns)||void 0===s?void 0:s.length)e.columnDefType="group",e.columns=PA({columnDefs:e.columns,tableOptions:t});else if("data"===e.columnDefType){if(Array.isArray(e.aggregationFn)){const t=e.aggregationFn;e.aggregationFn=(e,r,i)=>t.map((t=>{var o;return null===(o=n[t])||void 0===o?void 0:o.call(n,e,r,i)}))}Object.keys(i).includes(a[e.id])&&(e.filterFn=null!==(l=i[a[e.id]])&&void 0!==l?l:i.fuzzy,e._filterFn=a[e.id]),Object.keys(o).includes(e.sortingFn)&&(e.sortingFn=o[e.sortingFn])}else"display"===e.columnDefType&&(e=Object.assign(Object.assign({},r),e));return e}))},IA=(e,t,n)=>{e.getCanPin()&&e.pin(t.getIsPinned());const r=[...n];return r.splice(r.indexOf(t.id),0,r.splice(r.indexOf(e.id),1)[0]),r},MA=e=>{const{filterVariant:t}=e;return"multi-select"===t?"arrIncludesSome":(null==t?void 0:t.includes("range"))?"betweenInclusive":"select"===t||"checkbox"===t?"equals":"fuzzy"},LA=({header:e,table:t})=>{var n;const{options:{columnFilterModeOptions:r}}=t,{column:i}=e,{columnDef:o}=i,{filterVariant:a}=o,s=!(!(null==a?void 0:a.startsWith("date"))&&!(null==a?void 0:a.startsWith("time"))),l="autocomplete"===a,c=(null==a?void 0:a.includes("range"))||["between","betweenInclusive","inNumberRange"].includes(o._filterFn),u="select"===a,d="multi-select"===a,h=["autocomplete","text"].includes(a)||!u&&!d,p=o._filterFn;return{allowedColumnFilterOptions:null!==(n=null==o?void 0:o.columnFilterModeOptions)&&void 0!==n?n:r,currentFilterOption:p,facetedUniqueValues:i.getFacetedUniqueValues(),isAutocompleteFilter:l,isDateFilter:s,isMultiSelectFilter:d,isRangeFilter:c,isSelectFilter:u,isTextboxFilter:h}},RA=({header:e,table:t})=>{const{column:n}=e,{columnDef:r}=n,{facetedUniqueValues:i,isAutocompleteFilter:a,isMultiSelectFilter:s,isSelectFilter:l}=LA({header:e,table:t});return(0,o.useMemo)((()=>{var e;return null!==(e=r.filterSelectOptions)&&void 0!==e?e:(l||s||a)&&i?Array.from(i.keys()).filter((e=>null!=e)).sort(((e,t)=>e.localeCompare(t))):void 0}),[r.filterSelectOptions,i,s,l])},jA= +const qw={CASE_SENSITIVE_EQUAL:7,EQUAL:6,STARTS_WITH:5,WORD_STARTS_WITH:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0};function Hw(e,t,n){var r;if((n=n||{}).threshold=null!=(r=n.threshold)?r:qw.MATCHES,!n.accessors){const r=Yw(e,t,n);return{rankedValue:e,rank:r,accessorIndex:-1,accessorThreshold:n.threshold,passed:r>=n.threshold}}const i=function(e,t){const n=[];for(let r=0,i=t.length;r=qw.MATCHES?a=s:a>l&&(a=l),a=Math.min(a,l),a>=c&&a>o.rank&&(o.rank=a,o.passed=!0,o.accessorIndex=e,o.accessorThreshold=c,o.rankedValue=r.itemValue)}return o}function Yw(e,t,n){return e=Kw(e,n),(t=Kw(t,n)).length>e.length?qw.NO_MATCH:e===t?qw.CASE_SENSITIVE_EQUAL:(e=e.toLowerCase())===(t=t.toLowerCase())?qw.EQUAL:e.startsWith(t)?qw.STARTS_WITH:e.includes(` ${t}`)?qw.WORD_STARTS_WITH:e.includes(t)?qw.CONTAINS:1===t.length?qw.NO_MATCH:function(e){let t="";return e.split(" ").forEach((e=>{e.split("-").forEach((e=>{t+=e.substr(0,1)}))})),t}(e).includes(t)?qw.ACRONYM:function(e,t){let n=0,r=0;function i(e,t,r){for(let i=r,o=t.length;i-1))return qw.NO_MATCH}return o(r-a)}(e,t)}function Kw(e,t){let{keepDiacritics:n}=t;return e=`${e}`,n||(e=e.replace(Ww,(e=>Gw[e]))),e}function Xw(e,t){let n=t;"object"==typeof t&&(n=t.accessor);const r=n(e);return null==r?[]:Array.isArray(r)?r:[String(r)]}const Zw={maxRanking:1/0,minRanking:-1/0};function Jw(e){return"function"==typeof e?Zw:{...Zw,...e}}const Qw=(0,Wn.A)((0,F.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),ex=(0,Wn.A)((0,F.jsx)("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),tx=(0,h.Ay)("span",{shouldForwardProp:Ti.A})({position:"relative",display:"flex"}),nx=(0,h.Ay)(Qw)({transform:"scale(1)"}),rx=(0,h.Ay)(ex)((({theme:e,ownerState:t})=>(0,s.A)({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},t.checked&&{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})})));const ix=function(e){const{checked:t=!1,classes:n={},fontSize:r}=e,i=(0,s.A)({},e,{checked:t});return(0,F.jsxs)(tx,{className:n.root,ownerState:i,children:[(0,F.jsx)(nx,{fontSize:r,className:n.background,ownerState:i}),(0,F.jsx)(rx,{fontSize:r,className:n.dot,ownerState:i})]})};var ox=n(17416);const ax=o.createContext(void 0);function sx(e){return(0,R.Ay)("MuiRadio",e)}const lx=(0,L.A)("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),cx=["checked","checkedIcon","color","icon","name","onChange","size","className"],ux=(0,h.Ay)(sa.A,{shouldForwardProp:e=>(0,Ti.A)(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"medium"!==n.size&&t[`size${(0,Ce.A)(n.size)}`],t[`color${(0,Ce.A)(n.color)}`]]}})((({theme:e,ownerState:t})=>(0,s.A)({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,Ke.X4)("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${lx.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${lx.disabled}`]:{color:(e.vars||e).palette.action.disabled}})));const dx=(0,F.jsx)(ix,{checked:!0}),hx=(0,F.jsx)(ix,{}),px=o.forwardRef((function(e,t){var n,r;const i=(0,k.A)({props:e,name:"MuiRadio"}),{checked:a,checkedIcon:d=dx,color:h="primary",icon:p=hx,name:f,onChange:g,size:m="medium",className:y}=i,v=(0,l.A)(i,cx),b=(0,s.A)({},i,{color:h,size:m}),w=(e=>{const{classes:t,color:n,size:r}=e,i={root:["root",`color${(0,Ce.A)(n)}`,"medium"!==r&&`size${(0,Ce.A)(r)}`]};return(0,s.A)({},t,(0,u.A)(i,sx,t))})(b),x=o.useContext(ax);let A=a;const S=(0,ox.A)(g,x&&x.onChange);let C=f;var E,_;return x&&(void 0===A&&(E=x.value,A="object"==typeof(_=i.value)&&null!==_?E===_:String(E)===String(_)),void 0===C&&(C=x.name)),(0,F.jsx)(ux,(0,s.A)({type:"radio",icon:o.cloneElement(p,{fontSize:null!=(n=hx.props.fontSize)?n:m}),checkedIcon:o.cloneElement(d,{fontSize:null!=(r=dx.props.fontSize)?r:m}),ownerState:b,classes:w,name:C,checked:A,onChange:S,ref:t,className:(0,c.A)(w.root,y)},v))}));var fx=n(16299),gx=n(35103),mx=n(26332),yx=n(34790),vx=n(1617),bx=n(50110),wx=n(98788),xx=n(18904),Ax=n(87981),Sx=n(33815),Cx=n(38537),Ex=n(33330),_x=n(20317),kx=n(44182),Tx=n(86663),Ox=n(91465),Px=n(64712),Ix=n(81439),Mx=n(4113),Lx=n(43219),Rx=n(29667),jx=n(28217),Fx=n(11689),Dx=n(57897),Nx=n(50836),zx=n(10575),Vx=n(88523),Bx=n(59843),$x=n(26638),Gx=n(14821),Ux=n(70422),Wx=n(65534),qx=n(98993),Hx=n(98073);function Yx(e,t,n){let r,i=n.initialDeps??[];return()=>{var o,a,s,l;let c;n.key&&(null==(o=n.debug)?void 0:o.call(n))&&(c=Date.now());const u=e(),d=u.length!==i.length||u.some(((e,t)=>i[t]!==e));if(!d)return r;let h;if(i=u,n.key&&(null==(a=n.debug)?void 0:a.call(n))&&(h=Date.now()),r=t(...u),n.key&&(null==(s=n.debug)?void 0:s.call(n))){const e=Math.round(100*(Date.now()-c))/100,t=Math.round(100*(Date.now()-h))/100,r=t/16,i=(e,t)=>{for(e=String(e);e.lengthe,Zx=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),r=[];for(let e=t;e<=n;e++)r.push(e);return r},Jx=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e=>{const{width:n,height:r}=e;t({width:Math.round(n),height:Math.round(r)})};if(r(n.getBoundingClientRect()),"undefined"==typeof ResizeObserver)return()=>{};const i=new ResizeObserver((e=>{const t=e[0];if(null==t?void 0:t.borderBoxSize){const e=t.borderBoxSize[0];if(e)return void r({width:e.inlineSize,height:e.blockSize})}r(n.getBoundingClientRect())}));return i.observe(n,{box:"border-box"}),()=>{i.unobserve(n)}},Qx=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=()=>{t(n[e.options.horizontal?"scrollLeft":"scrollTop"])};return r(),n.addEventListener("scroll",r,{passive:!0}),()=>{n.removeEventListener("scroll",r)}},eA=(e,t,n)=>{if(null==t?void 0:t.borderBoxSize){const e=t.borderBoxSize[0];if(e){return Math.round(e[n.options.horizontal?"inlineSize":"blockSize"])}}return Math.round(e.getBoundingClientRect()[n.options.horizontal?"width":"height"])},tA=(e,{adjustments:t=0,behavior:n},r)=>{var i,o;const a=e+t;null==(o=null==(i=r.scrollElement)?void 0:i.scrollTo)||o.call(i,{[r.options.horizontal?"left":"top"]:a,behavior:n})};class nA{constructor(e){this.unsubs=[],this.scrollElement=null,this.isScrolling=!1,this.isScrollingTimeoutId=null,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollDirection=null,this.scrollAdjustments=0,this.measureElementCache=new Map,this.observer=(()=>{let e=null;const t=()=>e||("undefined"!=typeof ResizeObserver?e=new ResizeObserver((e=>{e.forEach((e=>{this._measureElement(e.target,e)}))})):null);return{disconnect:()=>{var e;return null==(e=t())?void 0:e.disconnect()},observe:e=>{var n;return null==(n=t())?void 0:n.observe(e,{box:"border-box"})},unobserve:e=>{var n;return null==(n=t())?void 0:n.unobserve(e)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach((([t,n])=>{void 0===n&&delete e[t]})),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Xx,rangeExtractor:Zx,onChange:()=>{},measureElement:eA,initialRect:{width:0,height:0},scrollMargin:0,scrollingDelay:150,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,...e}},this.notify=e=>{var t,n;null==(n=(t=this.options).onChange)||n.call(t,this,e)},this.maybeNotify=Yx((()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null])),(e=>{this.notify(e)}),{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach((e=>e())),this.unsubs=[],this.scrollElement=null},this._didMount=()=>(this.measureElementCache.forEach(this.observer.observe),()=>{this.observer.disconnect(),this.cleanup()}),this._willUpdate=()=>{const e=this.options.getScrollElement();this.scrollElement!==e&&(this.cleanup(),this.scrollElement=e,this._scrollToOffset(this.scrollOffset,{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,(e=>{this.scrollRect=e,this.maybeNotify()}))),this.unsubs.push(this.options.observeElementOffset(this,(e=>{this.scrollAdjustments=0,this.scrollOffset!==e&&(null!==this.isScrollingTimeoutId&&(clearTimeout(this.isScrollingTimeoutId),this.isScrollingTimeoutId=null),this.isScrolling=!0,this.scrollDirection=this.scrollOffset{this.isScrollingTimeoutId=null,this.isScrolling=!1,this.scrollDirection=null,this.maybeNotify()}),this.options.scrollingDelay))}))))},this.getSize=()=>this.scrollRect[this.options.horizontal?"width":"height"],this.memoOptions=Yx((()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey]),((e,t,n,r)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:t,scrollMargin:n,getItemKey:r})),{key:!1}),this.getFurthestMeasurement=(e,t)=>{const n=new Map,r=new Map;for(let i=t-1;i>=0;i--){const t=e[i];if(n.has(t.lane))continue;const o=r.get(t.lane);if(null==o||t.end>o.end?r.set(t.lane,t):t.ende.end===t.end?e.index-t.index:e.end-t.end))[0]:void 0},this.getMeasurements=Yx((()=>[this.memoOptions(),this.itemSizeCache]),(({count:e,paddingStart:t,scrollMargin:n,getItemKey:r},i)=>{const o=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const a=this.measurementsCache.slice(0,o);for(let s=o;sthis.options.debug}),this.calculateRange=Yx((()=>[this.getMeasurements(),this.getSize(),this.scrollOffset]),((e,t,n)=>this.range=e.length>0&&t>0?function({measurements:e,outerSize:t,scrollOffset:n}){const r=e.length-1,i=t=>e[t].start,o=rA(0,r,i,n);let a=o;for(;athis.options.debug}),this.getIndexes=Yx((()=>[this.options.rangeExtractor,this.calculateRange(),this.options.overscan,this.options.count]),((e,t,n,r)=>null===t?[]:e({...t,overscan:n,count:r})),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{const t=this.options.indexAttribute,n=e.getAttribute(t);return n?parseInt(n,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this._measureElement=(e,t)=>{const n=this.measurementsCache[this.indexFromElement(e)];if(!n||!e.isConnected)return void this.measureElementCache.forEach(((t,n)=>{t===e&&(this.observer.unobserve(e),this.measureElementCache.delete(n))}));const r=this.measureElementCache.get(n.key);r!==e&&(r&&this.observer.unobserve(r),this.observer.observe(e),this.measureElementCache.set(n.key,e));const i=this.options.measureElement(e,t,this);this.resizeItem(n,i)},this.resizeItem=(e,t)=>{const n=t-(this.itemSizeCache.get(e.key)??e.size);0!==n&&(e.start{e&&this._measureElement(e,void 0)},this.getVirtualItems=Yx((()=>[this.getIndexes(),this.getMeasurements()]),((e,t)=>{const n=[];for(let r=0,i=e.length;rthis.options.debug}),this.getVirtualItemForOffset=e=>{const t=this.getMeasurements();return Kx(t[rA(0,t.length-1,(e=>Kx(t[e]).start),e)])},this.getOffsetForAlignment=(e,t)=>{const n=this.getSize();"auto"===t&&(t=e<=this.scrollOffset?"start":e>=this.scrollOffset+n?"end":"start"),"start"===t||("end"===t?e-=n:"center"===t&&(e-=n/2));const r=this.options.horizontal?"scrollWidth":"scrollHeight",i=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[r]:this.scrollElement[r]:0)-this.getSize();return Math.max(Math.min(i,e),0)},this.getOffsetForIndex=(e,t="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));const n=Kx(this.getMeasurements()[e]);if("auto"===t)if(n.end>=this.scrollOffset+this.getSize()-this.options.scrollPaddingEnd)t="end";else{if(!(n.start<=this.scrollOffset+this.options.scrollPaddingStart))return[this.scrollOffset,t];t="start"}const r="end"===t?n.end+this.options.scrollPaddingEnd:n.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(r,t),t]},this.isDynamicMode=()=>this.measureElementCache.size>0,this.cancelScrollToIndex=()=>{null!==this.scrollToIndexTimeoutId&&(clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(e,{align:t="start",behavior:n}={})=>{this.cancelScrollToIndex(),"smooth"===n&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(e,t),{adjustments:void 0,behavior:n})},this.scrollToIndex=(e,{align:t="auto",behavior:n}={})=>{e=Math.max(0,Math.min(e,this.options.count-1)),this.cancelScrollToIndex(),"smooth"===n&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const[r,i]=this.getOffsetForIndex(e,t);this._scrollToOffset(r,{adjustments:void 0,behavior:n}),"smooth"!==n&&this.isDynamicMode()&&(this.scrollToIndexTimeoutId=setTimeout((()=>{this.scrollToIndexTimeoutId=null;if(this.measureElementCache.has(this.options.getItemKey(e))){const[o]=this.getOffsetForIndex(e,i);t=o,r=this.scrollOffset,Math.abs(t-r)<1||this.scrollToIndex(e,{align:i,behavior:n})}else this.scrollToIndex(e,{align:i,behavior:n});var t,r})))},this.scrollBy=(e,{behavior:t}={})=>{this.cancelScrollToIndex(),"smooth"===t&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.scrollOffset+e,{adjustments:void 0,behavior:t})},this.getTotalSize=()=>{var e;const t=this.getMeasurements();let n;return n=0===t.length?this.options.paddingStart:1===this.options.lanes?(null==(e=t[t.length-1])?void 0:e.end)??0:Math.max(...t.slice(-this.options.lanes).map((e=>e.end))),n-this.options.scrollMargin+this.options.paddingEnd},this._scrollToOffset=(e,{adjustments:t,behavior:n})=>{this.options.scrollToFn(e,{behavior:n,adjustments:t},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(e),this.scrollRect=this.options.initialRect,this.scrollOffset=this.options.initialOffset,this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach((e=>{this.itemSizeCache.set(e.key,e.size)})),this.maybeNotify()}}const rA=(e,t,n,r)=>{for(;e<=t;){const i=(e+t)/2|0,o=n(i);if(or))return i;t=i-1}}return e>0?e-1:0};const iA="undefined"!=typeof document?o.useLayoutEffect:o.useEffect;function oA(e){const t=o.useReducer((()=>({})),{})[1],n={...e,onChange:(n,r)=>{var i;r?(0,f.flushSync)(t):t(),null==(i=e.onChange)||i.call(e,n,r)}},[r]=o.useState((()=>new nA(n)));return r.setOptions(n),o.useEffect((()=>r._didMount()),[]),iA((()=>r._willUpdate())),r}function aA(e){return oA({observeElementRect:Jx,observeElementOffset:Qx,scrollToFn:tA,...e})}function sA(e){return(0,R.Ay)("MuiTableContainer",e)}(0,L.A)("MuiTableContainer",["root"]);const lA=["className","component"],cA=(0,h.Ay)("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),uA=o.forwardRef((function(e,t){const n=(0,k.A)({props:e,name:"MuiTableContainer"}),{className:r,component:i="div"}=n,o=(0,l.A)(n,lA),a=(0,s.A)({},n,{component:i}),d=(e=>{const{classes:t}=e;return(0,u.A)({root:["root"]},sA,t)})(a);return(0,F.jsx)(cA,(0,s.A)({ref:t,as:i,className:(0,c.A)(d.root,r),ownerState:a},o))}));const dA=o.createContext();function hA(e){return(0,R.Ay)("MuiTable",e)}(0,L.A)("MuiTable",["root","stickyHeader"]);const pA=["className","component","padding","size","stickyHeader"],fA=(0,h.Ay)("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>(0,s.A)({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":(0,s.A)({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"}))),gA="table",mA=o.forwardRef((function(e,t){const n=(0,k.A)({props:e,name:"MuiTable"}),{className:r,component:i=gA,padding:a="normal",size:d="medium",stickyHeader:h=!1}=n,p=(0,l.A)(n,pA),f=(0,s.A)({},n,{component:i,padding:a,size:d,stickyHeader:h}),g=(e=>{const{classes:t,stickyHeader:n}=e,r={root:["root",n&&"stickyHeader"]};return(0,u.A)(r,hA,t)})(f),m=o.useMemo((()=>({padding:a,size:d,stickyHeader:h})),[a,d,h]);return(0,F.jsx)(dA.Provider,{value:m,children:(0,F.jsx)(fA,(0,s.A)({as:i,role:i===gA?null:"table",ref:t,className:(0,c.A)(g.root,r),ownerState:f},p))})}));const yA=o.createContext();function vA(e){return(0,R.Ay)("MuiTableBody",e)}(0,L.A)("MuiTableBody",["root"]);const bA=["className","component"],wA=(0,h.Ay)("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),xA={variant:"body"},AA="tbody",SA=o.forwardRef((function(e,t){const n=(0,k.A)({props:e,name:"MuiTableBody"}),{className:r,component:i=AA}=n,o=(0,l.A)(n,bA),a=(0,s.A)({},n,{component:i}),d=(e=>{const{classes:t}=e;return(0,u.A)({root:["root"]},vA,t)})(a);return(0,F.jsx)(yA.Provider,{value:xA,children:(0,F.jsx)(wA,(0,s.A)({className:(0,c.A)(d.root,r),as:i,ref:t,role:i===AA?null:"rowgroup",ownerState:a},o))})}));function CA(e){return(0,R.Ay)("MuiTableRow",e)}const EA=(0,L.A)("MuiTableRow",["root","selected","hover","head","footer"]),_A=["className","component","hover","selected"],kA=(0,h.Ay)("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})((({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${EA.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${EA.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,Ke.X4)(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,Ke.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),TA="tr",OA=o.forwardRef((function(e,t){const n=(0,k.A)({props:e,name:"MuiTableRow"}),{className:r,component:i=TA,hover:a=!1,selected:d=!1}=n,h=(0,l.A)(n,_A),p=o.useContext(yA),f=(0,s.A)({},n,{component:i,hover:a,selected:d,head:p&&"head"===p.variant,footer:p&&"footer"===p.variant}),g=(e=>{const{classes:t,selected:n,hover:r,head:i,footer:o}=e,a={root:["root",n&&"selected",r&&"hover",i&&"head",o&&"footer"]};return(0,u.A)(a,CA,t)})(f);return(0,F.jsx)(kA,(0,s.A)({as:i,ref:t,className:(0,c.A)(g.root,r),role:i===TA?null:"row",ownerState:f},h))})),PA=OA;function IA(e){return(0,R.Ay)("MuiTableCell",e)}const MA=(0,L.A)("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),LA=["align","className","component","padding","scope","size","sortDirection","variant"],RA=(0,h.Ay)("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${(0,Ce.A)(n.size)}`],"normal"!==n.padding&&t[`padding${(0,Ce.A)(n.padding)}`],"inherit"!==n.align&&t[`align${(0,Ce.A)(n.align)}`],n.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>(0,s.A)({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid\n ${"light"===e.palette.mode?(0,Ke.a)((0,Ke.X4)(e.palette.divider,1),.88):(0,Ke.e$)((0,Ke.X4)(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},"head"===t.variant&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},"body"===t.variant&&{color:(e.vars||e).palette.text.primary},"footer"===t.variant&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},"small"===t.size&&{padding:"6px 16px",[`&.${MA.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},"checkbox"===t.padding&&{width:48,padding:"0 0 0 4px"},"none"===t.padding&&{padding:0},"left"===t.align&&{textAlign:"left"},"center"===t.align&&{textAlign:"center"},"right"===t.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===t.align&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}))),jA=o.forwardRef((function(e,t){const n=(0,k.A)({props:e,name:"MuiTableCell"}),{align:r="inherit",className:i,component:a,padding:d,scope:h,size:p,sortDirection:f,variant:g}=n,m=(0,l.A)(n,LA),y=o.useContext(dA),v=o.useContext(yA),b=v&&"head"===v.variant;let w;w=a||(b?"th":"td");let x=h;"td"===w?x=void 0:!x&&b&&(x="col");const A=g||v&&v.variant,S=(0,s.A)({},n,{align:r,component:w,padding:d||(y&&y.padding?y.padding:"normal"),size:p||(y&&y.size?y.size:"medium"),sortDirection:f,stickyHeader:"head"===A&&y&&y.stickyHeader,variant:A}),C=(e=>{const{classes:t,variant:n,align:r,padding:i,size:o,stickyHeader:a}=e,s={root:["root",n,a&&"stickyHeader","inherit"!==r&&`align${(0,Ce.A)(r)}`,"normal"!==i&&`padding${(0,Ce.A)(i)}`,`size${(0,Ce.A)(o)}`]};return(0,u.A)(s,IA,t)})(S);let E=null;return f&&(E="asc"===f?"ascending":"descending"),(0,F.jsx)(RA,(0,s.A)({as:w,ref:t,className:(0,c.A)(C.root,i),"aria-sort":E,scope:x,ownerState:S},m))})),FA=jA;let DA=36,NA="";for(;DA--;)NA+=DA.toString(36);function zA(e=11){let t="",n=e;for(;n--;)t+=NA[36*Math.random()|0];return t}const VA=({terms:e,matchExactly:t=!1})=>{try{const n=/^([/~@;%#'])(.*?)\1([gimsuy]*)$/.exec(e);return n?new RegExp(n[2],n[3]):new RegExp((({terms:e,matchExactly:t=!1})=>{if("string"!=typeof e)throw new TypeError("Expected a string");const n=e.trim().replace(/[|\\{}()[\]^$+*?.-]/g,(e=>`\\${e}`));return`(${t?n:(e=>e.replace(/\s{2,}/g," ").split(" ").join("|"))(n)})`})({terms:e,matchExactly:t}),"ig")}catch(e){throw new TypeError("Expected terms to be either a string or a RegExp!")}},BA=($A="match",e=>null!==e&&"object"==typeof e&&$A in e);var $A;const GA=e=>void 0!==e;function UA({curr:e,next:t,prev:n,clipBy:r=3}){const i=e.text.split(" "),o=i.length;if(e.match||r>=o)return e.text;const a="...";return GA(t)&&GA(n)&&BA(n)&&BA(t)?o>2*r?[...i.slice(0,r),a,...i.slice(-r)].join(" "):e.text:GA(t)&&BA(t)?[a,...i.slice(-r)].join(" "):GA(n)&&BA(n)?[...i.slice(0,r),a].join(" "):e.text}var WA=Object.defineProperty,qA=Object.defineProperties,HA=Object.getOwnPropertyDescriptors,YA=Object.getOwnPropertySymbols,KA=Object.prototype.hasOwnProperty,XA=Object.prototype.propertyIsEnumerable,ZA=(e,t,n)=>t in e?WA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,JA=(e,t)=>{for(var n in t||(t={}))KA.call(t,n)&&ZA(e,n,t[n]);if(YA)for(var n of YA(t))XA.call(t,n)&&ZA(e,n,t[n]);return e};const QA=e=>e.length>0,eS=({text:e,query:t,clipBy:n,matchExactly:r=!1})=>{const i="string"==typeof t?t.trim():t;if(""===i)return[{key:zA(),text:e,match:!1}];const o=VA({terms:t,matchExactly:r});return e.split(o).filter(QA).map((e=>({key:zA(),text:e,match:r?e.toLowerCase()===i.toLowerCase():o.test(e)}))).map(((e,t,r)=>{return JA(JA({},e),"number"==typeof n&&{text:UA((i=JA(JA({curr:e},t0&&{prev:r[t-1]}),o={clipBy:n},qA(i,HA(o))))});var i,o}))};function tS(e){return(0,R.Ay)("MuiTextField",e)}(0,L.A)("MuiTextField",["root"]);const nS=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],rS={standard:qm.A,filled:Jm,outlined:ly},iS=(0,h.Ay)(Ne.A,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),oS=o.forwardRef((function(e,t){const n=(0,k.A)({props:e,name:"MuiTextField"}),{autoComplete:r,autoFocus:i=!1,children:o,className:a,color:d="primary",defaultValue:h,disabled:p=!1,error:f=!1,FormHelperTextProps:g,fullWidth:m=!1,helperText:y,id:v,InputLabelProps:b,inputProps:w,InputProps:x,inputRef:A,label:S,maxRows:C,minRows:E,multiline:_=!1,name:T,onBlur:O,onChange:P,onFocus:I,placeholder:M,required:L=!1,rows:R,select:j=!1,SelectProps:D,type:N,value:z,variant:V="outlined"}=n,B=(0,l.A)(n,nS),$=(0,s.A)({},n,{autoFocus:i,color:d,disabled:p,error:f,fullWidth:m,multiline:_,required:L,select:j,variant:V}),G=(e=>{const{classes:t}=e;return(0,u.A)({root:["root"]},tS,t)})($);const U={};"outlined"===V&&(b&&void 0!==b.shrink&&(U.notched=b.shrink),U.label=S),j&&(D&&D.native||(U.id=void 0),U["aria-describedby"]=void 0);const W=(0,ze.A)(v),q=y&&W?`${W}-helper-text`:void 0,H=S&&W?`${W}-label`:void 0,Y=rS[V],K=(0,F.jsx)(Y,(0,s.A)({"aria-describedby":q,autoComplete:r,autoFocus:i,defaultValue:h,fullWidth:m,multiline:_,name:T,rows:R,maxRows:C,minRows:E,type:N,value:z,id:W,inputRef:A,onBlur:O,onChange:P,onFocus:I,placeholder:M,inputProps:w},U,x));return(0,F.jsxs)(iS,(0,s.A)({className:(0,c.A)(G.root,a),disabled:p,error:f,fullWidth:m,ref:t,required:L,color:d,variant:V,ownerState:$},B,{children:[null!=S&&""!==S&&(0,F.jsx)(Tm.A,(0,s.A)({htmlFor:W,id:H},b,{children:S})),j?(0,F.jsx)(my,(0,s.A)({"aria-describedby":q,id:W,labelId:H,value:z,input:K},D,{children:o})):K,y&&(0,F.jsx)(Ay,(0,s.A)({id:q},g,{children:y}))]}))}));function aS(e){return(0,R.Ay)("MuiTableFooter",e)}(0,L.A)("MuiTableFooter",["root"]);const sS=["className","component"],lS=(0,h.Ay)("tfoot",{name:"MuiTableFooter",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-footer-group"}),cS={variant:"footer"},uS="tfoot",dS=o.forwardRef((function(e,t){const n=(0,k.A)({props:e,name:"MuiTableFooter"}),{className:r,component:i=uS}=n,o=(0,l.A)(n,sS),a=(0,s.A)({},n,{component:i}),d=(e=>{const{classes:t}=e;return(0,u.A)({root:["root"]},aS,t)})(a);return(0,F.jsx)(yA.Provider,{value:cS,children:(0,F.jsx)(lS,(0,s.A)({as:i,className:(0,c.A)(d.root,r),ref:t,role:i===uS?null:"rowgroup",ownerState:a},o))})}));function hS(e){return(0,R.Ay)("MuiTableHead",e)}(0,L.A)("MuiTableHead",["root"]);const pS=["className","component"],fS=(0,h.Ay)("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),gS={variant:"head"},mS="thead",yS=o.forwardRef((function(e,t){const n=(0,k.A)({props:e,name:"MuiTableHead"}),{className:r,component:i=mS}=n,o=(0,l.A)(n,pS),a=(0,s.A)({},n,{component:i}),d=(e=>{const{classes:t}=e;return(0,u.A)({root:["root"]},hS,t)})(a);return(0,F.jsx)(yA.Provider,{value:gS,children:(0,F.jsx)(fS,(0,s.A)({as:i,className:(0,c.A)(d.root,r),ref:t,role:i===mS?null:"rowgroup",ownerState:a},o))})}));var vS=n(2994);function bS(e){return(0,R.Ay)("MuiInputAdornment",e)}const wS=(0,L.A)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var xS;const AS=["children","className","component","disablePointerEvents","disableTypography","position","variant"],SS=(0,h.Ay)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${(0,Ce.A)(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})((({theme:e,ownerState:t})=>(0,s.A)({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===t.variant&&{[`&.${wS.positionStart}&:not(.${wS.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"}))),CS=o.forwardRef((function(e,t){const n=(0,k.A)({props:e,name:"MuiInputAdornment"}),{children:r,className:i,component:a="div",disablePointerEvents:d=!1,disableTypography:h=!1,position:p,variant:f}=n,g=(0,l.A)(n,AS),m=(0,Wm.A)()||{};let y=f;f&&m.variant,m&&!y&&(y=m.variant);const v=(0,s.A)({},n,{hiddenLabel:m.hiddenLabel,size:m.size,disablePointerEvents:d,position:p,variant:y}),b=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:i,size:o,variant:a}=e,s={root:["root",n&&"disablePointerEvents",i&&`position${(0,Ce.A)(i)}`,a,r&&"hiddenLabel",o&&`size${(0,Ce.A)(o)}`]};return(0,u.A)(s,bS,t)})(v);return(0,F.jsx)(vS.A.Provider,{value:null,children:(0,F.jsx)(SS,(0,s.A)({as:a,ownerState:v,className:(0,c.A)(b.root,i),ref:t},g,{children:"string"!=typeof r||h?(0,F.jsxs)(o.Fragment,{children:["start"===p?xS||(xS=(0,F.jsx)("span",{className:"notranslate",children:"​"})):null,r]}):(0,F.jsx)(Fo.A,{color:"text.secondary",children:r})}))})}));var ES=n(22300),_S=n.n(ES);function kS(e,t,n){return"function"==typeof e?e(t,n):e}const TS=_S().oneOfType([_S().func,_S().object]),OS=(e,t)=>e.length===t.length&&t.every((t=>e.includes(t))),PS=({openTo:e,defaultOpenTo:t,views:n,defaultViews:r})=>{const i=null!=n?n:r;let o;if(null!=e)o=e;else if(i.includes(t))o=t;else{if(!(i.length>0))throw new Error("MUI: The `views` prop must contain at least one view");o=i[0]}return{views:i,openTo:o}},IS=(e,t,n)=>{let r=t;return r=e.setHours(r,e.getHours(n)),r=e.setMinutes(r,e.getMinutes(n)),r=e.setSeconds(r,e.getSeconds(n)),r},MS=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:i,isDateDisabled:o,utils:a,timezone:s})=>{const l=IS(a,a.dateWithTimezone(void 0,s),e);n&&a.isBefore(i,l)&&(i=l),t&&a.isAfter(r,l)&&(r=l);let c=e,u=e;for(a.isBefore(e,i)&&(c=i,u=null),a.isAfter(e,r)&&(u&&(u=r),c=null);c||u;){if(c&&a.isAfter(c,r)&&(c=null),u&&a.isBefore(u,i)&&(u=null),c){if(!o(c))return c;c=a.addDays(c,1)}if(u){if(!o(u))return u;u=a.addDays(u,-1)}}return null},LS=(e,t,n)=>null!=t&&e.isValid(t)?t:n,RS=(e,t)=>{const n=[e.startOfYear(t)];for(;n.length<12;){const t=n[n.length-1];n.push(e.addMonths(t,1))}return n},jS=(e,t,n)=>"date"===n?e.startOfDay(e.dateWithTimezone(void 0,t)):e.dateWithTimezone(void 0,t),FS=(e,t)=>{const n=e.setHours(e.date(),"am"===t?2:14);return e.format(n,"meridiem")},DS=["year","month","day"],NS=e=>DS.includes(e),zS=(e,{format:t,views:n},r)=>{if(null!=t)return t;const i=e.formats;return OS(n,["year"])?i.year:OS(n,["month"])?i.month:OS(n,["day"])?i.dayOfMonth:OS(n,["month","year"])?`${i.month} ${i.year}`:OS(n,["day","month"])?`${i.month} ${i.dayOfMonth}`:r?/en/.test(e.getCurrentLocaleCode())?i.normalDateWithWeekday:i.normalDate:i.keyboardDate},VS=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map((t=>e.addDays(n,t)))},BS=["hours","minutes","seconds"],$S=e=>BS.includes(e),GS=e=>BS.includes(e)||"meridiem"===e,US=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,WS=(e,t,n)=>{if(n){if((e>=12?"pm":"am")!==t)return"am"===t?e-12:e+12}return e},qS=(e,t,n,r)=>{const i=WS(r.getHours(e),t,n);return r.setHours(e,i)},HS=(e,t)=>3600*t.getHours(e)+60*t.getMinutes(e)+t.getSeconds(e),YS=(e,t)=>(n,r)=>e?t.isAfter(n,r):HS(n,t)>HS(r,t),KS=(e,{format:t,views:n,ampm:r})=>{if(null!=t)return t;const i=e.formats;return OS(n,["hours"])?r?`${i.hours12h} ${i.meridiem}`:i.hours24h:OS(n,["minutes"])?i.minutes:OS(n,["seconds"])?i.seconds:OS(n,["minutes","seconds"])?`${i.minutes}:${i.seconds}`:OS(n,["hours","minutes","seconds"])?r?`${i.hours12h}:${i.minutes}:${i.seconds} ${i.meridiem}`:`${i.hours24h}:${i.minutes}:${i.seconds}`:r?`${i.hours12h}:${i.minutes} ${i.meridiem}`:`${i.hours24h}:${i.minutes}`},XS={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},ZS=(e,t,n)=>{if(t===XS.year)return e.startOfYear(n);if(t===XS.month)return e.startOfMonth(n);if(t===XS.day)return e.startOfDay(n);let r=n;return t{const n=e.formatTokenMap[t];if(null==n)throw new Error([`MUI: The token "${t}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join("\n"));return"string"==typeof n?{type:n,contentType:"meridiem"===n?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},QS=(e,t,n)=>{const r=[],i=e.dateWithTimezone(void 0,t),o=e.startOfWeek(i),a=e.endOfWeek(i);let s=o;for(;e.isBefore(s,a);)r.push(s),s=e.addDays(s,1);return r.map((t=>e.formatByString(t,n)))},eC=(e,t,n,r)=>{switch(n){case"month":return RS(e,e.dateWithTimezone(void 0,t)).map((t=>e.formatByString(t,r)));case"weekDay":return QS(e,t,r);case"meridiem":{const n=e.dateWithTimezone(void 0,t);return[e.startOfDay(n),e.endOfDay(n)].map((t=>e.formatByString(t,r)))}default:return[]}},tC=(e,t,n)=>{let r=t;for(r=Number(r).toString();r.length{if("day"===i.type&&"digit-with-letter"===i.contentType){const t=e.setDate(r.longestMonth,n);return e.formatByString(t,i.format)}const o=n.toString();return i.hasLeadingZerosInInput?tC(0,o,i.maxLength):o},rC=(e,t,n,r,i,o,a)=>{const s=(e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}})(r),l="Home"===r,c="End"===r,u=""===n.value||l||c;return"digit"===n.contentType||"digit-with-letter"===n.contentType?(()=>{const r=i[n.type]({currentDate:o,format:n.format,contentType:n.contentType}),d=t=>nC(e,0,t,r,n),h="minutes"===n.type&&null!=a&&a.minutesStep?a.minutesStep:1;let p=parseInt(n.value,10)+s*h;if(u){if("year"===n.type&&!c&&!l)return e.formatByString(e.dateWithTimezone(void 0,t),n.format);p=s>0||l?r.minimum:r.maximum}return p%h!=0&&((s<0||l)&&(p+=h-(h+p)%h),(s>0||c)&&(p-=p%h)),p>r.maximum?d(r.minimum+(p-r.maximum-1)%(r.maximum-r.minimum+1)):p{const r=eC(e,t,n.type,n.format);if(0===r.length)return n.value;if(u)return s>0||l?r[0]:r[r.length-1];const i=r.indexOf(n.value);return r[(i+r.length+s)%r.length]})()},iC=(e,t)=>{let n=e.value||e.placeholder;const r="non-input"===t?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;"non-input"===t&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(n=Number(n).toString());return["input-rtl","input-ltr"].includes(t)&&"digit"===e.contentType&&!r&&1===n.length&&(n=`${n}‎`),"input-rtl"===t&&(n=`⁨${n}⁩`),n},oC=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),aC=(e,t)=>{let n=0,r=t?1:0;const i=[];for(let o=0;o{switch(r.type){case"year":return n.fieldYearPlaceholder({digitAmount:e.formatByString(e.dateWithTimezone(void 0,t),i).length,format:i});case"month":return n.fieldMonthPlaceholder({contentType:r.contentType,format:i});case"day":return n.fieldDayPlaceholder({format:i});case"weekDay":return n.fieldWeekDayPlaceholder({contentType:r.contentType,format:i});case"hours":return n.fieldHoursPlaceholder({format:i});case"minutes":return n.fieldMinutesPlaceholder({format:i});case"seconds":return n.fieldSecondsPlaceholder({format:i});case"meridiem":return n.fieldMeridiemPlaceholder({format:i});default:return i}},lC=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),cC=(e,t,n)=>4===e.formatByString(e.dateWithTimezone(void 0,t),n).length,uC=(e,t,n,r,i)=>{if("digit"!==n)return!1;const o=e.dateWithTimezone(void 0,t);switch(r){case"year":if(cC(e,t,i)){return"0001"===e.formatByString(e.setYear(o,1),i)}return"01"===e.formatByString(e.setYear(o,2001),i);case"month":return e.formatByString(e.startOfYear(o),i).length>1;case"day":return e.formatByString(e.startOfMonth(o),i).length>1;case"weekDay":return e.formatByString(e.startOfWeek(o),i).length>1;case"hours":return e.formatByString(e.setHours(o,1),i).length>1;case"minutes":return e.formatByString(e.setMinutes(o,1),i).length>1;case"seconds":return e.formatByString(e.setSeconds(o,1),i).length>1;default:throw new Error("Invalid section type")}},dC=(e,t,n,r,i,o,a,l)=>{let c="";const u=[],d=e.date(),h=r=>{if(""===r)return null;const o=JS(e,r),l=uC(e,t,o.contentType,o.type,r),h=a?l:"digit"===o.contentType,p=null!=i&&e.isValid(i);let f=p?e.formatByString(i,r):"",g=null;if(h)if(l)g=""===f?e.formatByString(d,r).length:f.length;else{if(null==o.maxLength)throw new Error(`MUI: The token ${r} should have a 'maxDigitNumber' property on it's adapter`);g=o.maxLength,p&&(f=tC(0,f,g))}return u.push((0,s.A)({},o,{format:r,maxLength:g,value:f,placeholder:sC(e,t,n,o,r),hasLeadingZeros:l,hasLeadingZerosInFormat:l,hasLeadingZerosInInput:h,startSeparator:0===u.length?c:"",endSeparator:"",modified:!1})),null};let p=10,f=r,g=e.expandFormat(r);for(;g!==f;)if(f=g,g=e.expandFormat(f),p-=1,p<0)throw new Error("MUI: The format expansion seems to be enter in an infinite loop. Please open an issue with the format passed to the picker component");const m=g,y=((e,t)=>{const n=[],{start:r,end:i}=e.escapedCharacters,o=new RegExp(`(\\${r}[^\\${i}]*\\${i})+`,"g");let a=null;for(;a=o.exec(t);)n.push({start:a.index,end:o.lastIndex-1});return n})(e,m),v=new RegExp(`^(${Object.keys(e.formatTokenMap).sort(((e,t)=>t.length-e.length)).join("|")})`,"g");let b="";for(let e=0;et.start<=e&&t.end>=e)),n=m[e],r=null!=t,i=`${b}${m.slice(e)}`,o=v.test(i);if(!r&&n.match(/([A-Za-z]+)/)&&o)b=i.slice(0,v.lastIndex),e+=v.lastIndex-1;else{r&&(null==t?void 0:t.start)===e||(null==t?void 0:t.end)===e||(h(b),b="",0===u.length?c+=n:u[u.length-1].endSeparator+=n)}}return h(b),u.map((e=>{const t=e=>{let t=e;return l&&null!==t&&t.includes(" ")&&(t=`⁩${t}⁦`),"spacious"===o&&["/",".","-"].includes(t)&&(t=` ${t} `),t};return e.startSeparator=t(e.startSeparator),e.endSeparator=t(e.endSeparator),e}))};const hC=(e,t)=>{0},pC={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8},fC=(e,t,n,r,i,o)=>[...r].sort(((e,t)=>pC[e.type]-pC[t.type])).reduce(((r,i)=>!o||i.modified?((e,t,n,r,i)=>{switch(n.type){case"year":return e.setYear(i,e.getYear(r));case"month":return e.setMonth(i,e.getMonth(r));case"weekDay":{const i=QS(e,t,n.format),o=e.formatByString(r,n.format),a=i.indexOf(o),s=i.indexOf(n.value)-a;return e.addDays(r,s)}case"day":return e.setDate(i,e.getDate(r));case"meridiem":{const t=e.getHours(r)<12,n=e.getHours(i);return t&&n>=12?e.addHours(i,-12):!t&&n<12?e.addHours(i,12):i}case"hours":return e.setHours(i,e.getHours(r));case"minutes":return e.setMinutes(i,e.getMinutes(r));case"seconds":return e.setSeconds(i,e.getSeconds(r));default:return i}})(e,t,i,n,r):r),i),gC=["value","referenceDate"],mC={emptyValue:null,getTodayValue:jS,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=(0,l.A)(e,gC);return null!=t&&r.utils.isValid(t)?t:null!=n?n:(({props:e,utils:t,granularity:n,timezone:r,getTodayDate:i})=>{var o;let a=i?i():ZS(t,n,jS(t,r));null!=e.minDate&&t.isAfterDay(e.minDate,a)&&(a=ZS(t,n,e.minDate)),null!=e.maxDate&&t.isBeforeDay(e.maxDate,a)&&(a=ZS(t,n,e.maxDate));const s=YS(null!=(o=e.disableIgnoringDatePartForTimeValidation)&&o,t);return null!=e.minTime&&s(e.minTime,a)&&(a=ZS(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:IS(t,a,e.minTime))),null!=e.maxTime&&s(a,e.maxTime)&&(a=ZS(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:IS(t,a,e.maxTime))),a})(r)},cleanValue:(e,t)=>null!=t&&e.isValid(t)?t:null,areValuesEqual:(e,t,n)=>!e.isValid(t)&&null!=t&&!e.isValid(n)&&null!=n||e.isEqual(t,n),isSameError:(e,t)=>e===t,hasError:e=>null!=e,defaultErrorState:null,getTimezone:(e,t)=>null!=t&&e.isValid(t)?e.getTimezone(t):null,setTimezone:(e,t,n)=>null==n?null:e.setTimezone(n,t)},yC={updateReferenceValue:(e,t,n)=>null!=t&&e.isValid(t)?t:n,getSectionsFromValue:(e,t,n,r,i)=>!e.isValid(t)&&!!n?n:aC(i(t),r),getValueStrFromSections:(e,t)=>{const n=e.map((e=>{const n=iC(e,t?"input-rtl":"input-ltr");return`${e.startSeparator}${n}${e.endSeparator}`})).join("");return t?`⁦${n}⁩`:n},getActiveDateManager:(e,t)=>({date:t.value,referenceDate:t.referenceValue,getSections:e=>e,getNewValuesFromNewActiveDate:n=>({value:n,referenceValue:null!=n&&e.isValid(n)?n:t.referenceValue})}),parseValueStr:(e,t,n)=>n(e.trim(),t)};var vC=n(38540);const bC={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"open previous view",openNextView:"open next view",calendarViewSwitchingButtonAriaLabel:e=>"year"===e?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",clockLabelText:(e,t,n)=>`Select ${e}. ${null===t?"No time selected":`Selected time is ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:(e,t)=>null!==e&&t.isValid(e)?`Choose date, selected date is ${t.format(e,"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t)=>null!==e&&t.isValid(e)?`Choose time, selected time is ${t.format(e,"fullTime")}`:"Choose time",fieldClearLabel:"Clear value",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>"letter"===e.contentType?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>"letter"===e.contentType?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa"},wC=bC;xC=bC,(0,s.A)({},xC);var xC;const AC=()=>{const e=o.useContext(vC.F);if(null===e)throw new Error(["MUI: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join("\n"));if(null===e.utils)throw new Error(["MUI: Can not find the date and time pickers adapter from its localization context.","It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider."].join("\n"));const t=o.useMemo((()=>(0,s.A)({},wC,e.localeText)),[e.localeText]);return o.useMemo((()=>(0,s.A)({},e,{localeText:t})),[e,t])},SC=()=>AC().utils,CC=()=>AC().defaultDates,EC=()=>AC().localeText,_C=e=>{const t=SC(),n=o.useRef();return void 0===n.current&&(n.current=t.dateWithTimezone(void 0,e)),n.current};function kC(e){return(0,R.Ay)("MuiPickersToolbar",e)}(0,L.A)("MuiPickersToolbar",["root","content"]);const TC=(0,h.Ay)("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e,ownerState:t})=>(0,s.A)({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3)},t.isLandscape&&{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"}))),OC=(0,h.Ay)("div",{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})((({ownerState:e})=>{var t;return{display:"flex",flexWrap:"wrap",width:"100%",justifyContent:e.isLandscape?"flex-start":"space-between",flexDirection:e.isLandscape?null!=(t=e.landscapeDirection)?t:"column":"row",flex:1,alignItems:e.isLandscape?"flex-start":"center"}})),PC=o.forwardRef((function(e,t){const n=(0,k.A)({props:e,name:"MuiPickersToolbar"}),{children:r,className:i,toolbarTitle:o,hidden:a,titleId:s}=n,l=n,d=(e=>{const{classes:t,isLandscape:n}=e,r={root:["root"],content:["content"],penIconButton:["penIconButton",n&&"penIconButtonLandscape"]};return(0,u.A)(r,kC,t)})(l);return a?null:(0,F.jsxs)(TC,{ref:t,className:(0,c.A)(d.root,i),ownerState:l,children:[(0,F.jsx)(Fo.A,{color:"text.secondary",variant:"overline",id:s,children:o}),(0,F.jsx)(OC,{className:d.content,ownerState:l,children:r})]})}));function IC(e){return(0,R.Ay)("MuiDatePickerToolbar",e)}(0,L.A)("MuiDatePickerToolbar",["root","title"]);const MC=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views","className"],LC=(0,h.Ay)(PC,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),RC=(0,h.Ay)(Fo.A,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})((({ownerState:e})=>(0,s.A)({},e.isLandscape&&{margin:"auto 16px auto auto"}))),jC=o.forwardRef((function(e,t){const n=(0,k.A)({props:e,name:"MuiDatePickerToolbar"}),{value:r,isLandscape:i,toolbarFormat:a,toolbarPlaceholder:d="––",views:h,className:p}=n,f=(0,l.A)(n,MC),g=SC(),m=EC(),y=(e=>{const{classes:t}=e;return(0,u.A)({root:["root"],title:["title"]},IC,t)})(n),v=o.useMemo((()=>{if(!r)return d;const e=zS(g,{format:a,views:h},!0);return g.formatByString(r,e)}),[r,a,d,g,h]),b=n;return(0,F.jsx)(LC,(0,s.A)({ref:t,toolbarTitle:m.datePickerToolbarTitle,isLandscape:i,className:(0,c.A)(y.root,p)},f,{children:(0,F.jsx)(RC,{variant:"h4",align:i?"left":"center",ownerState:b,className:y.title,children:v})}))})),FC=e=>{if(void 0!==e)return Object.keys(e).reduce(((t,n)=>(0,s.A)({},t,{[`${n.slice(0,1).toLowerCase()}${n.slice(1)}`]:e[n]})),{})};function DC(e,t){var n,r,i,a;const l=SC(),c=CC(),u=(0,k.A)({props:e,name:t}),d=o.useMemo((()=>{var e;return null==(null==(e=u.localeText)?void 0:e.toolbarTitle)?u.localeText:(0,s.A)({},u.localeText,{datePickerToolbarTitle:u.localeText.toolbarTitle})}),[u.localeText]),h=null!=(n=u.slots)?n:FC(u.components);return(0,s.A)({},u,{localeText:d},PS({views:u.views,openTo:u.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:null!=(r=u.disableFuture)&&r,disablePast:null!=(i=u.disablePast)&&i,minDate:LS(l,u.minDate,c.minDate),maxDate:LS(l,u.maxDate,c.maxDate),slots:(0,s.A)({toolbar:jC},h),slotProps:null!=(a=u.slotProps)?a:u.componentsProps})}const NC=({props:e,value:t,adapter:n})=>{if(null===t)return null;const{shouldDisableDate:r,shouldDisableMonth:i,shouldDisableYear:o,disablePast:a,disableFuture:s,timezone:l}=e,c=n.utils.dateWithTimezone(void 0,l),u=LS(n.utils,e.minDate,n.defaultDates.minDate),d=LS(n.utils,e.maxDate,n.defaultDates.maxDate);switch(!0){case!n.utils.isValid(t):return"invalidDate";case Boolean(r&&r(t)):return"shouldDisableDate";case Boolean(i&&i(t)):return"shouldDisableMonth";case Boolean(o&&o(t)):return"shouldDisableYear";case Boolean(s&&n.utils.isAfterDay(t,c)):return"disableFuture";case Boolean(a&&n.utils.isBeforeDay(t,c)):return"disablePast";case Boolean(u&&n.utils.isBeforeDay(t,u)):return"minDate";case Boolean(d&&n.utils.isAfterDay(t,d)):return"maxDate";default:return null}};function zC(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}function VC(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:o}=e;if(!t){const e=(0,c.A)(null==n?void 0:n.className,o,null==i?void 0:i.className,null==r?void 0:r.className),t=(0,s.A)({},null==n?void 0:n.style,null==i?void 0:i.style,null==r?void 0:r.style),a=(0,s.A)({},n,i,r);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=function(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}((0,s.A)({},i,r)),l=zC(r),u=zC(i),d=t(a),h=(0,c.A)(null==d?void 0:d.className,null==n?void 0:n.className,o,null==i?void 0:i.className,null==r?void 0:r.className),p=(0,s.A)({},null==d?void 0:d.style,null==n?void 0:n.style,null==i?void 0:i.style,null==r?void 0:r.style),f=(0,s.A)({},d,n,u,l);return h.length>0&&(f.className=h),Object.keys(p).length>0&&(f.style=p),{props:f,internalRef:d.ref}}const BC=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function $C(e){var t;const{elementType:n,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:o=!1}=e,a=(0,l.A)(e,BC),c=o?{}:kS(r,i),{props:u,internalRef:d}=VC((0,s.A)({},a,{externalSlotProps:c})),h=(0,q.A)(d,null==c?void 0:c.ref,null==(t=e.additionalProps)?void 0:t.ref),p=function(e,t,n){return void 0===e||"string"==typeof e?t:(0,s.A)({},t,{ownerState:(0,s.A)({},t.ownerState,n)})}(n,(0,s.A)({},u,{ref:h}),i);return p}function GC(e){return(0,R.Ay)("MuiPickersPopper",e)}(0,L.A)("MuiPickersPopper",["root","paper"]);function UC(e,t){return Array.isArray(t)?t.every((t=>-1!==e.indexOf(t))):-1!==e.indexOf(t)}const WC=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?WC(t.shadowRoot):t:null},qC="@media (pointer: fine)",HC="undefined"!=typeof navigator&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),YC=HC&&HC[1]?parseInt(HC[1],10):null,KC=HC&&HC[2]?parseInt(HC[2],10):null,XC=YC&&YC<10||KC&&KC<13||!1,ZC=()=>(0,ei.A)("@media (prefers-reduced-motion: reduce)",{defaultMatches:!1})||XC,JC=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],QC=(0,h.Ay)(Rn,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({zIndex:e.zIndex.modal}))),eE=(0,h.Ay)(G.A,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})((({ownerState:e})=>(0,s.A)({outline:0,transformOrigin:"top center"},e.placement.includes("top")&&{transformOrigin:"bottom center"})));const tE=o.forwardRef(((e,t)=>{const{PaperComponent:n,popperPlacement:r,ownerState:i,children:o,paperSlotProps:a,paperClasses:c,onPaperClick:u,onPaperTouchStart:d}=e,h=(0,l.A)(e,JC),p=(0,s.A)({},i,{placement:r}),f=$C({elementType:n,externalSlotProps:a,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:c,ownerState:p});return(0,F.jsx)(n,(0,s.A)({},h,f,{onClick:e=>{var t;u(e),null==(t=f.onClick)||t.call(f,e)},onTouchStart:e=>{var t;d(e),null==(t=f.onTouchStart)||t.call(f,e)},ownerState:p,children:o}))}));function nE(e){var t,n,r,i;const a=(0,k.A)({props:e,name:"MuiPickersPopper"}),{anchorEl:l,children:c,containerRef:d=null,shouldRestoreFocus:h,onBlur:p,onDismiss:f,open:g,role:m,placement:y,slots:v,slotProps:b,reduceAnimations:w}=a;o.useEffect((()=>{function e(e){!g||"Escape"!==e.key&&"Esc"!==e.key||f()}return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[f,g]);const x=o.useRef(null);o.useEffect((()=>{"tooltip"===m||h&&!h()||(g?x.current=WC(document):x.current&&x.current instanceof HTMLElement&&setTimeout((()=>{x.current instanceof HTMLElement&&x.current.focus()})))}),[g,m,h]);const[A,S,C]=function(e,t){const n=o.useRef(!1),r=o.useRef(!1),i=o.useRef(null),a=o.useRef(!1);o.useEffect((()=>{if(e)return document.addEventListener("mousedown",t,!0),document.addEventListener("touchstart",t,!0),()=>{document.removeEventListener("mousedown",t,!0),document.removeEventListener("touchstart",t,!0),a.current=!1};function t(){a.current=!0}}),[e]);const s=(0,$e.A)((e=>{if(!a.current)return;const o=r.current;r.current=!1;const s=(0,Ze.A)(i.current);if(!i.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth-1:!s.documentElement.contains(e.target)||i.current.contains(e.target),l||o||t(e)})),l=()=>{r.current=!0};return o.useEffect((()=>{if(e){const e=(0,Ze.A)(i.current),t=()=>{n.current=!0};return e.addEventListener("touchstart",s),e.addEventListener("touchmove",t),()=>{e.removeEventListener("touchstart",s),e.removeEventListener("touchmove",t)}}}),[e,s]),o.useEffect((()=>{if(e){const e=(0,Ze.A)(i.current);return e.addEventListener("click",s),()=>{e.removeEventListener("click",s),r.current=!1}}}),[e,s]),[i,l,l]}(g,null!=p?p:f),E=o.useRef(null),_=(0,q.A)(E,d),T=(0,q.A)(_,A),O=a,P=(e=>{const{classes:t}=e;return(0,u.A)({root:["root"],paper:["paper"]},GC,t)})(O),I=ZC(),M=null!=w?w:I,L=(null!=(t=null==v?void 0:v.desktopTransition)?t:M)?_i:si,R=null!=(n=null==v?void 0:v.desktopTrapFocus)?n:rs,j=null!=(r=null==v?void 0:v.desktopPaper)?r:eE,D=null!=(i=null==v?void 0:v.popper)?i:QC,N=$C({elementType:D,externalSlotProps:null==b?void 0:b.popper,additionalProps:{transition:!0,role:m,open:g,anchorEl:l,placement:y,onKeyDown:e=>{"Escape"===e.key&&(e.stopPropagation(),f())}},className:P.root,ownerState:a});return(0,F.jsx)(D,(0,s.A)({},N,{children:({TransitionProps:e,placement:t})=>(0,F.jsx)(R,(0,s.A)({open:g,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:"tooltip"===m,isEnabled:()=>!0},null==b?void 0:b.desktopTrapFocus,{children:(0,F.jsx)(L,(0,s.A)({},e,null==b?void 0:b.desktopTransition,{children:(0,F.jsx)(tE,{PaperComponent:j,ownerState:O,popperPlacement:t,ref:T,onPaperClick:S,onPaperTouchStart:C,paperClasses:P.paper,paperSlotProps:null==b?void 0:b.desktopPaper,children:c})}))}))}))}function rE(e,t,n,r){const{value:i,onError:a}=e,s=AC(),l=o.useRef(r),c=t({adapter:s,value:i,props:e});return o.useEffect((()=>{a&&!n(c,l.current)&&a(c,i),l.current=c}),[n,a,l,c,i]),c}const iE=({timezone:e,value:t,defaultValue:n,onChange:r,valueManager:i})=>{var a,s;const l=SC(),c=o.useRef(n),u=null!=(a=null!=t?t:c.current)?a:i.emptyValue,d=o.useMemo((()=>i.getTimezone(l,u)),[l,i,u]),h=(0,$e.A)((e=>null==d?e:i.setTimezone(l,d,e))),p=null!=(s=null!=e?e:d)?s:"default";return{value:o.useMemo((()=>i.setTimezone(l,p,u)),[i,l,p,u]),handleValueChange:(0,$e.A)(((e,...t)=>{const n=h(e);null==r||r(n,...t)})),timezone:p}},oE=({name:e,timezone:t,value:n,defaultValue:r,onChange:i,valueManager:o})=>{const[a,s]=(0,Ve.A)({name:e,state:"value",controlled:n,default:null!=r?r:o.emptyValue}),l=(0,$e.A)(((e,...t)=>{s(e),null==i||i(e,...t)}));return iE({timezone:t,value:a,defaultValue:void 0,onChange:l,valueManager:o})},aE=({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:i})=>{const{onAccept:a,onChange:l,value:c,defaultValue:u,closeOnSelect:d="desktop"===r,selectedSections:h,onSelectedSectionsChange:p,timezone:f}=e,{current:g}=o.useRef(u),{current:m}=o.useRef(void 0!==c);const y=SC(),v=AC(),[b,w]=(0,Ve.A)({controlled:h,default:null,name:"usePickerValue",state:"selectedSections"}),{isOpen:x,setIsOpen:A}=(({open:e,onOpen:t,onClose:n})=>{const r=o.useRef("boolean"==typeof e).current,[i,a]=o.useState(!1);return o.useEffect((()=>{if(r){if("boolean"!=typeof e)throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");a(e)}}),[r,e]),{isOpen:i,setIsOpen:o.useCallback((e=>{r||a(e),e&&t&&t(),!e&&n&&n()}),[r,t,n])}})(e),[S,C]=o.useState((()=>{let e;return e=void 0!==c?c:void 0!==g?g:t.emptyValue,{draft:e,lastPublishedValue:e,lastCommittedValue:e,lastControlledValue:c,hasBeenModifiedSinceMount:!1}})),{timezone:E,handleValueChange:_}=iE({timezone:f,value:c,defaultValue:g,onChange:l,valueManager:t});rE((0,s.A)({},e,{value:S.draft,timezone:E}),i,t.isSameError,t.defaultErrorState);const k=(0,$e.A)((n=>{const r={action:n,dateState:S,hasChanged:e=>!t.areValuesEqual(y,n.value,e),isControlled:m,closeOnSelect:d},o=(e=>{const{action:t,hasChanged:n,dateState:r,isControlled:i}=e,o=!i&&!r.hasBeenModifiedSinceMount;return"setValueFromField"===t.name||("setValueFromAction"===t.name?!(!o||!["accept","today","clear"].includes(t.pickerAction))||n(r.lastPublishedValue):("setValueFromView"===t.name&&"shallow"!==t.selectionState||"setValueFromShortcut"===t.name)&&(!!o||n(r.lastPublishedValue)))})(r),l=(e=>{const{action:t,hasChanged:n,dateState:r,isControlled:i,closeOnSelect:o}=e,a=!i&&!r.hasBeenModifiedSinceMount;return"setValueFromAction"===t.name?!(!a||!["accept","today","clear"].includes(t.pickerAction))||n(r.lastCommittedValue):"setValueFromView"===t.name&&"finish"===t.selectionState&&o?!!a||n(r.lastCommittedValue):"setValueFromShortcut"===t.name&&"accept"===t.changeImportance&&n(r.lastCommittedValue)})(r),c=(e=>{const{action:t,closeOnSelect:n}=e;return"setValueFromAction"===t.name||("setValueFromView"===t.name?"finish"===t.selectionState&&n:"setValueFromShortcut"===t.name&&"accept"===t.changeImportance)})(r);if(C((e=>(0,s.A)({},e,{draft:n.value,lastPublishedValue:o?n.value:e.lastPublishedValue,lastCommittedValue:l?n.value:e.lastCommittedValue,hasBeenModifiedSinceMount:!0}))),o){const t={validationError:"setValueFromField"===n.name?n.context.validationError:i({adapter:v,value:n.value,props:(0,s.A)({},e,{value:n.value,timezone:E})})};"setValueFromShortcut"===n.name&&null!=n.shortcut&&(t.shortcut=n.shortcut),_(n.value,t)}l&&a&&a(n.value),c&&A(!1)}));if(void 0!==c&&(void 0===S.lastControlledValue||!t.areValuesEqual(y,S.lastControlledValue,c))){const e=t.areValuesEqual(y,S.draft,c);C((t=>(0,s.A)({},t,{lastControlledValue:c},e?{}:{lastCommittedValue:c,lastPublishedValue:c,draft:c,hasBeenModifiedSinceMount:!0})))}const T=(0,$e.A)((()=>{k({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})})),O=(0,$e.A)((()=>{k({value:S.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})})),P=(0,$e.A)((()=>{k({value:S.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})})),I=(0,$e.A)((()=>{k({value:S.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})})),M=(0,$e.A)((()=>{k({value:t.getTodayValue(y,E,n),name:"setValueFromAction",pickerAction:"today"})})),L=(0,$e.A)((()=>A(!0))),R=(0,$e.A)((()=>A(!1))),j=(0,$e.A)(((e,t="partial")=>k({name:"setValueFromView",value:e,selectionState:t}))),F=(0,$e.A)(((e,t,n)=>k({name:"setValueFromShortcut",value:e,changeImportance:null!=t?t:"accept",shortcut:n}))),D=(0,$e.A)(((e,t)=>k({name:"setValueFromField",value:e,context:t}))),N=(0,$e.A)((e=>{w(e),null==p||p(e)})),z={onClear:T,onAccept:O,onDismiss:P,onCancel:I,onSetToday:M,onOpen:L,onClose:R},V={value:S.draft,onChange:D,selectedSections:b,onSelectedSectionsChange:N},B=o.useMemo((()=>t.cleanValue(y,S.draft)),[y,t,S.draft]);return{open:x,fieldProps:V,viewProps:{value:B,onChange:j,onClose:R,open:x,onSelectedSectionsChange:N},layoutProps:(0,s.A)({},z,{value:B,onChange:j,onSelectShortcut:F,isValid:n=>{const r=i({adapter:v,value:n,props:(0,s.A)({},e,{value:n,timezone:E})});return!t.hasError(r)}}),actions:z}};function sE({onChange:e,onViewChange:t,openTo:n,view:r,views:i,autoFocus:a,focusedView:s,onFocusedViewChange:l}){var c,u;const d=o.useRef(n),h=o.useRef(i),p=o.useRef(i.includes(n)?n:i[0]),[f,g]=(0,Ve.A)({name:"useViews",state:"view",controlled:r,default:p.current}),m=o.useRef(a?f:null),[y,v]=(0,Ve.A)({name:"useViews",state:"focusedView",controlled:s,default:m.current});o.useEffect((()=>{(d.current&&d.current!==n||h.current&&h.current.some((e=>!i.includes(e))))&&(g(i.includes(n)?n:i[0]),h.current=i,d.current=n)}),[n,g,f,i]);const b=i.indexOf(f),w=null!=(c=i[b-1])?c:null,x=null!=(u=i[b+1])?u:null,A=(0,$e.A)(((e,t)=>{v(t?e:t=>e===t?null:t),null==l||l(e,t)})),S=(0,$e.A)((e=>{A(e,!0),e!==f&&(g(e),t&&t(e))})),C=(0,$e.A)((()=>{x&&S(x)})),E=(0,$e.A)(((t,n,r)=>{const o="finish"===n,a=r?i.indexOf(r){const{orientation:i}=e,a=((e,t)=>{const[n,r]=o.useState(cE);return(0,Xe.A)((()=>{const e=()=>{r(cE())};return window.addEventListener("orientationchange",e),()=>{window.removeEventListener("orientationchange",e)}}),[]),!UC(e,["hours","minutes","seconds"])&&"landscape"===(t||n)})(n.views,i);return{layoutProps:(0,s.A)({},n,t,{isLandscape:a,wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}};(0,n(54370).f)(["The `renderInput` prop has been removed in version 6.0 of the Date and Time Pickers.","You can replace it with the `textField` component slot in most cases.","For more information, please have a look at the migration guide (https://mui.com/x/migration/migration-pickers-v5/#input-renderer-required-in-v5)."]);const dE=({props:e,valueManager:t,valueType:n,wrapperVariant:r,inputRef:i,additionalViewProps:a,validator:c,autoFocusView:u})=>{const d=aE({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:c}),h=(({props:e,propsFromPickerValue:t,additionalViewProps:n,inputRef:r,autoFocusView:i})=>{const{onChange:a,open:c,onSelectedSectionsChange:u,onClose:d}=t,{views:h,openTo:p,onViewChange:f,disableOpenPicker:g,viewRenderers:m,timezone:y}=e,v=(0,l.A)(e,lE),{view:b,setView:w,defaultView:x,focusedView:A,setFocusedView:S,setValueAndGoToNextView:C}=sE({view:void 0,views:h,openTo:p,onChange:a,onViewChange:f,autoFocus:i}),{hasUIView:E,viewModeLookup:_}=o.useMemo((()=>h.reduce(((e,t)=>{let n;return n=g?"field":null!=m[t]?"UI":"field",e.viewModeLookup[t]=n,"UI"===n&&(e.hasUIView=!0),e}),{hasUIView:!1,viewModeLookup:{}})),[g,m,h]),k=o.useMemo((()=>h.reduce(((e,t)=>null!=m[t]&&$S(t)?e+1:e),0)),[m,h]),T=_[b],O=(0,$e.A)((()=>"UI"===T)),[P,I]=o.useState("UI"===T?b:null);return P!==b&&"UI"===_[b]&&I(b),(0,Xe.A)((()=>{"field"===T&&c&&(d(),setTimeout((()=>{null==r||r.current.focus(),u(b)})))}),[b]),(0,Xe.A)((()=>{if(!c)return;let e=b;"field"===T&&null!=P&&(e=P),e!==x&&"UI"===_[e]&&"UI"===_[x]&&(e=x),e!==b&&w(e),S(e,!0)}),[c]),{hasUIView:E,shouldRestoreFocus:O,layoutProps:{views:h,view:P,onViewChange:w},renderCurrentView:()=>{if(null==P)return null;const e=m[P];return null==e?null:e((0,s.A)({},v,n,t,{views:h,timezone:y,onChange:C,view:P,onViewChange:w,focusedView:A,onFocusedViewChange:S,showViewSwitcher:k>1,timeViewsCount:k}))}}})({props:e,inputRef:i,additionalViewProps:a,autoFocusView:u,propsFromPickerValue:d.viewProps}),p=uE({props:e,wrapperVariant:r,propsFromPickerValue:d.layoutProps,propsFromPickerViews:h.layoutProps});return{open:d.open,actions:d.actions,fieldProps:d.fieldProps,renderCurrentView:h.renderCurrentView,hasUIView:h.hasUIView,shouldRestoreFocus:h.shouldRestoreFocus,layoutProps:p.layoutProps}};function hE(e){return(0,R.Ay)("MuiPickersLayout",e)}const pE=(0,L.A)("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]),fE=["onAccept","onClear","onCancel","onSetToday","actions"];function gE(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:i,actions:o}=e,a=(0,l.A)(e,fE),c=EC();if(null==o||0===o.length)return null;const u=null==o?void 0:o.map((e=>{switch(e){case"clear":return(0,F.jsx)(Ni,{onClick:n,children:c.clearButtonLabel},e);case"cancel":return(0,F.jsx)(Ni,{onClick:r,children:c.cancelButtonLabel},e);case"accept":return(0,F.jsx)(Ni,{onClick:t,children:c.okButtonLabel},e);case"today":return(0,F.jsx)(Ni,{onClick:i,children:c.todayButtonLabel},e);default:return null}}));return(0,F.jsx)(Su,(0,s.A)({},a,{children:u}))}const mE=320,yE=334,vE=48,bE=["items","changeImportance","isLandscape","onChange","isValid"],wE=["getValue"];function xE(e){const{items:t,changeImportance:n,onChange:r,isValid:i}=e,o=(0,l.A)(e,bE);if(null==t||0===t.length)return null;const a=t.map((e=>{let{getValue:t}=e,o=(0,l.A)(e,wE);const a=t({isValid:i});return{label:o.label,onClick:()=>{r(a,n,o)},disabled:!i(a)}}));return(0,F.jsx)(qi,(0,s.A)({dense:!0,sx:[{maxHeight:yE,maxWidth:200,overflow:"auto"},...Array.isArray(o.sx)?o.sx:[o.sx]]},o,{children:a.map((e=>(0,F.jsx)(jd,{children:(0,F.jsx)(Qn,(0,s.A)({},e))},e.label)))}))}const AE=e=>{var t,n;const{wrapperVariant:r,onAccept:i,onClear:o,onCancel:a,onSetToday:l,view:c,views:d,onViewChange:h,value:p,onChange:f,onSelectShortcut:g,isValid:m,isLandscape:y,disabled:v,readOnly:b,children:w,components:x,componentsProps:A,slots:S,slotProps:C}=e,E=null!=S?S:FC(x),_=null!=C?C:A,k=(e=>{const{classes:t,isLandscape:n}=e,r={root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]};return(0,u.A)(r,hE,t)})(e),T=null!=(t=null==E?void 0:E.actionBar)?t:gE,O=$C({elementType:T,externalSlotProps:null==_?void 0:_.actionBar,additionalProps:{onAccept:i,onClear:o,onCancel:a,onSetToday:l,actions:"desktop"===r?[]:["cancel","accept"],className:k.actionBar},ownerState:(0,s.A)({},e,{wrapperVariant:r})}),P=(0,F.jsx)(T,(0,s.A)({},O)),I=null==E?void 0:E.toolbar,M=$C({elementType:I,externalSlotProps:null==_?void 0:_.toolbar,additionalProps:{isLandscape:y,onChange:f,value:p,view:c,onViewChange:h,views:d,disabled:v,readOnly:b,className:k.toolbar},ownerState:(0,s.A)({},e,{wrapperVariant:r})}),L=function(e){return null!==e.view}(M)&&I?(0,F.jsx)(I,(0,s.A)({},M)):null,R=w,j=null==E?void 0:E.tabs,D=c&&j?(0,F.jsx)(j,(0,s.A)({view:c,onViewChange:h,className:k.tabs},null==_?void 0:_.tabs)):null,N=null!=(n=null==E?void 0:E.shortcuts)?n:xE,z=$C({elementType:N,externalSlotProps:null==_?void 0:_.shortcuts,additionalProps:{isValid:m,isLandscape:y,onChange:g,className:k.shortcuts},ownerState:{isValid:m,isLandscape:y,onChange:g,className:k.shortcuts,wrapperVariant:r}});return{toolbar:L,content:R,tabs:D,actionBar:P,shortcuts:c&&N?(0,F.jsx)(N,(0,s.A)({},z)):null}},SE=(0,h.Ay)("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e,ownerState:t})=>({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${pE.toolbar}`]:t.isLandscape?{gridColumn:"rtl"===e.direction?3:1,gridRow:"2 / 3"}:{gridColumn:"2 / 4",gridRow:1},[`.${pE.shortcuts}`]:t.isLandscape?{gridColumn:"2 / 4",gridRow:1}:{gridColumn:"rtl"===e.direction?3:1,gridRow:"2 / 3"},[`& .${pE.actionBar}`]:{gridColumn:"1 / 4",gridRow:3}})));SE.propTypes={as:_S().elementType,ownerState:_S().shape({isLandscape:_S().bool.isRequired}).isRequired,sx:_S().oneOfType([_S().arrayOf(_S().oneOfType([_S().func,_S().object,_S().bool])),_S().func,_S().object])};const CE=(0,h.Ay)("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),EE=function(e){const t=(0,k.A)({props:e,name:"MuiPickersLayout"}),{toolbar:n,content:r,tabs:i,actionBar:a,shortcuts:s}=AE(t),{sx:l,className:d,isLandscape:h,ref:p,wrapperVariant:f}=t,g=t,m=(e=>{const{isLandscape:t,classes:n}=e,r={root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]};return(0,u.A)(r,hE,n)})(g);return(0,F.jsxs)(SE,{ref:p,sx:l,className:(0,c.A)(d,m.root),ownerState:g,children:[h?s:n,h?n:s,(0,F.jsx)(CE,{className:m.contentWrapper,children:"desktop"===f?(0,F.jsxs)(o.Fragment,{children:[r,i]}):(0,F.jsxs)(o.Fragment,{children:[i,r]})}),a]})},_E=["props","getOpenDialogAriaText"],kE=["ownerState"],TE=["ownerState"],OE=e=>{var t,n,r,i,a;let{props:c,getOpenDialogAriaText:u}=e,d=(0,l.A)(e,_E);const{slots:h,slotProps:p,className:f,sx:g,format:m,formatDensity:y,timezone:v,name:b,label:w,inputRef:x,readOnly:A,disabled:S,autoFocus:C,localeText:E,reduceAnimations:_}=c,k=SC(),T=o.useRef(null),O=o.useRef(null),P=(0,ze.A)(),I=null!=(t=null==p||null==(n=p.toolbar)?void 0:n.hidden)&&t,{open:M,actions:L,hasUIView:R,layoutProps:j,renderCurrentView:D,shouldRestoreFocus:N,fieldProps:z}=dE((0,s.A)({},d,{props:c,inputRef:T,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),V=null!=(r=h.inputAdornment)?r:CS,B=$C({elementType:V,externalSlotProps:null==p?void 0:p.inputAdornment,additionalProps:{position:"end"},ownerState:c}),$=(0,l.A)(B,kE),G=null!=(i=h.openPickerButton)?i:Un,U=$C({elementType:G,externalSlotProps:null==p?void 0:p.openPickerButton,additionalProps:{disabled:S||A,onClick:M?L.onClose:L.onOpen,"aria-label":u(z.value,k),edge:$.position},ownerState:c}),W=(0,l.A)(U,TE),H=h.openPickerIcon,Y=h.field,K=$C({elementType:Y,externalSlotProps:null==p?void 0:p.field,additionalProps:(0,s.A)({},z,I&&{id:P},{readOnly:A,disabled:S,className:f,sx:g,format:m,formatDensity:y,timezone:v,label:w,name:b,autoFocus:C&&!c.open,focused:!!M||void 0}),ownerState:c});R&&(K.InputProps=(0,s.A)({},K.InputProps,{ref:O,[`${$.position}Adornment`]:(0,F.jsx)(V,(0,s.A)({},$,{children:(0,F.jsx)(G,(0,s.A)({},W,{children:(0,F.jsx)(H,(0,s.A)({},null==p?void 0:p.openPickerIcon))}))}))}));const X=(0,s.A)({textField:h.textField,clearIcon:h.clearIcon,clearButton:h.clearButton},K.slots),Z=null!=(a=h.layout)?a:EE,J=(0,q.A)(T,K.inputRef,x);let Q=P;I&&(Q=w?`${P}-label`:void 0);const ee=(0,s.A)({},p,{toolbar:(0,s.A)({},null==p?void 0:p.toolbar,{titleId:P}),popper:(0,s.A)({"aria-labelledby":Q},null==p?void 0:p.popper)});return{renderPicker:()=>(0,F.jsxs)(vC.$,{localeText:E,children:[(0,F.jsx)(Y,(0,s.A)({},K,{slots:X,slotProps:ee,inputRef:J})),(0,F.jsx)(nE,(0,s.A)({role:"dialog",placement:"bottom-start",anchorEl:O.current},L,{open:M,slots:h,slotProps:ee,shouldRestoreFocus:N,reduceAnimations:_,children:(0,F.jsx)(Z,(0,s.A)({},j,null==ee?void 0:ee.layout,{slots:h,slotProps:ee,children:D()}))}))]})}},PE=(0,Wn.A)((0,F.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),IE=(0,Wn.A)((0,F.jsx)("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),ME=(0,Wn.A)((0,F.jsx)("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),LE=(0,Wn.A)((0,F.jsx)("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar"),RE=(0,Wn.A)((0,F.jsxs)(o.Fragment,{children:[(0,F.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),(0,F.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock"),jE=(0,Wn.A)((0,F.jsx)("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange"),FE=(0,Wn.A)((0,F.jsxs)(o.Fragment,{children:[(0,F.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),(0,F.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time"),DE=(0,Wn.A)((0,F.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"}),"Clear"),NE=e=>{const t=SC(),n=EC(),r=AC(),i="rtl"===(0,I.A)().direction,{valueManager:a,fieldValueManager:l,valueType:c,validator:u,internalProps:d,internalProps:{value:h,defaultValue:p,referenceDate:f,onChange:g,format:m,formatDensity:y="dense",selectedSections:v,onSelectedSectionsChange:b,shouldRespectLeadingZeros:w=!1,timezone:x}}=e,{timezone:A,value:S,handleValueChange:C}=iE({timezone:x,value:h,defaultValue:p,onChange:g,valueManager:a}),E=o.useMemo((()=>((e,t)=>{const n=e.dateWithTimezone(void 0,t),r=e.endOfYear(n),i=e.endOfDay(n),{maxDaysInMonth:o,longestMonth:a}=RS(e,n).reduce(((t,n)=>{const r=e.getDaysInMonth(n);return r>t.maxDaysInMonth?{maxDaysInMonth:r,longestMonth:n}:t}),{maxDaysInMonth:0,longestMonth:null});return{year:({format:n})=>({minimum:0,maximum:cC(e,t,n)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(r)+1}),day:({currentDate:t})=>({minimum:1,maximum:null!=t&&e.isValid(t)?e.getDaysInMonth(t):o,longestMonth:a}),weekDay:({format:n,contentType:r})=>{if("digit"===r){const r=QS(e,t,n).map(Number);return{minimum:Math.min(...r),maximum:Math.max(...r)}}return{minimum:1,maximum:7}},hours:({format:t})=>{const r=e.getHours(i);return e.formatByString(e.endOfDay(n),t)!==r.toString()?{minimum:1,maximum:Number(e.formatByString(e.startOfDay(n),t))}:{minimum:0,maximum:r}},minutes:()=>({minimum:0,maximum:e.getMinutes(i)}),seconds:()=>({minimum:0,maximum:e.getSeconds(i)}),meridiem:()=>({minimum:0,maximum:0})}})(t,A)),[t,A]),_=o.useCallback(((e,r=null)=>l.getSectionsFromValue(t,e,r,i,(e=>dC(t,A,n,m,e,y,w,i)))),[l,m,n,i,w,t,y,A]),k=o.useMemo((()=>l.getValueStrFromSections(_(a.emptyValue),i)),[l,_,a.emptyValue,i]),[T,O]=o.useState((()=>{const e=_(S);hC();const n={sections:e,value:S,referenceValue:a.emptyValue,tempValueStrAndroid:null},r=(e=>Math.max(...e.map((e=>{var t;return null!=(t=XS[e.type])?t:1}))))(e),i=a.getInitialReferenceValue({referenceDate:f,value:S,utils:t,props:d,granularity:r,timezone:A});return(0,s.A)({},n,{referenceValue:i})})),[P,M]=(0,Ve.A)({controlled:v,default:null,name:"useField",state:"selectedSectionIndexes"}),L=e=>{M(e),null==b||b(e),O((e=>(0,s.A)({},e,{selectedSectionQuery:null})))},R=o.useMemo((()=>{if(null==P)return null;if("all"===P)return{startIndex:0,endIndex:T.sections.length-1,shouldSelectBoundarySelectors:!0};if("number"==typeof P)return{startIndex:P,endIndex:P};if("string"==typeof P){const e=T.sections.findIndex((e=>e.type===P));return{startIndex:e,endIndex:e}}return P}),[P,T.sections]),j=({value:e,referenceValue:n,sections:i})=>{if(O((t=>(0,s.A)({},t,{sections:i,value:e,referenceValue:n,tempValueStrAndroid:null}))),a.areValuesEqual(t,T.value,e))return;const o={validationError:u({adapter:r,value:e,props:(0,s.A)({},d,{value:e,timezone:A})})};C(e,o)},F=(e,t)=>{const n=[...T.sections];return n[e]=(0,s.A)({},n[e],{value:t,modified:!0}),aC(n,i)};return o.useEffect((()=>{const e=_(T.value);hC(),O((t=>(0,s.A)({},t,{sections:e})))}),[m,t.locale]),o.useEffect((()=>{let e=!1;e=!a.areValuesEqual(t,T.value,S)||a.getTimezone(t,T.value)!==a.getTimezone(t,S),e&&O((e=>(0,s.A)({},e,{value:S,referenceValue:l.updateReferenceValue(t,S,e.referenceValue),sections:_(S)})))}),[S]),{state:T,selectedSectionIndexes:R,setSelectedSections:L,clearValue:()=>{j({value:a.emptyValue,referenceValue:T.referenceValue,sections:_(a.emptyValue)})},clearActiveSection:()=>{if(null==R)return;const e=T.sections[R.startIndex],n=l.getActiveDateManager(t,T,e),r=n.getSections(T.sections).filter((e=>""!==e.value)).length===(""===e.value?0:1),i=F(R.startIndex,""),o=r?null:t.date(new Date("")),a=n.getNewValuesFromNewActiveDate(o);(null!=o&&!t.isValid(o))!=(null!=n.date&&!t.isValid(n.date))?j((0,s.A)({},a,{sections:i})):O((e=>(0,s.A)({},e,a,{sections:i,tempValueStrAndroid:null})))},updateSectionValue:({activeSection:e,newSectionValue:n,shouldGoToNextSection:r})=>{r&&R&&R.startIndex{const n=t.some((e=>"day"===e.type)),r=[],i=[];for(let e=0;e(0,s.A)({},e,u,{sections:o,tempValueStrAndroid:null})))},updateValueFromValueStr:e=>{const r=l.parseValueStr(e,T.referenceValue,((e,r)=>{const o=t.parse(e,m);if(null==o||!t.isValid(o))return null;const a=dC(t,A,n,m,o,y,w,i);return fC(t,A,o,a,r,!1)})),o=l.updateReferenceValue(t,r,T.referenceValue);j({value:r,referenceValue:o,sections:_(r,T.sections)})},setTempAndroidValueStr:e=>O((t=>(0,s.A)({},t,{tempValueStrAndroid:e}))),sectionsValueBoundaries:E,placeholder:k,timezone:A}},zE=e=>null!=e.saveQuery,VE=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,setTempAndroidValueStr:r,timezone:i})=>{const a=SC(),[l,c]=o.useState(null),u=(0,$e.A)((()=>c(null)));o.useEffect((()=>{var t;null!=l&&(null==(t=e[l.sectionIndex])?void 0:t.type)!==l.sectionType&&u()}),[e,l,u]),o.useEffect((()=>{if(null!=l){const e=setTimeout((()=>u()),5e3);return()=>{window.clearTimeout(e)}}return()=>{}}),[l,u]);const d=({keyPressed:t,sectionIndex:n},r,i)=>{const o=t.toLowerCase(),a=e[n];if(null!=l&&(!i||i(l.value))&&l.sectionIndex===n){const e=`${l.value}${o}`,t=r(e,a);if(!zE(t))return c({sectionIndex:n,value:e,sectionType:a.type}),t}const s=r(o,a);return zE(s)&&!s.saveQuery?(u(),null):(c({sectionIndex:n,value:o,sectionType:a.type}),zE(s)?null:s)};return{applyCharacterEditing:(0,$e.A)((o=>{const l=e[o.sectionIndex],c=!Number.isNaN(Number(o.keyPressed))?(e=>{const t=(e,t)=>{const r=Number(`${e}`),i=n[t.type]({currentDate:null,format:t.format,contentType:t.contentType});if(r>i.maximum)return{saveQuery:!1};if(ri.maximum||e.length===i.maximum.toString().length;return{sectionValue:nC(a,0,r,i,t),shouldGoToNextSection:o}};return d(e,((e,n)=>{if("digit"===n.contentType||"digit-with-letter"===n.contentType)return t(e,n);if("month"===n.type){const r=uC(a,i,"digit","month","MM"),o=t(e,{type:n.type,format:"MM",hasLeadingZerosInFormat:r,hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(zE(o))return o;const l=lC(a,o.sectionValue,"MM",n.format);return(0,s.A)({},o,{sectionValue:l})}if("weekDay"===n.type){const r=t(e,n);if(zE(r))return r;const o=QS(a,i,n.format)[Number(r.sectionValue)-1];return(0,s.A)({},r,{sectionValue:o})}return{saveQuery:!1}}),(e=>!Number.isNaN(Number(e))))})(o):(e=>{const t=(e,t,n)=>{const r=t.filter((e=>e.toLowerCase().startsWith(n)));return 0===r.length?{saveQuery:!1}:{sectionValue:r[0],shouldGoToNextSection:1===r.length}},n=(e,n,r,o)=>{const l=e=>eC(a,i,n.type,e);if("letter"===n.contentType)return t(n.format,l(n.format),e);if(r&&null!=o&&"letter"===JS(a,r).contentType){const n=l(r),i=t(0,n,e);return zE(i)?{saveQuery:!1}:(0,s.A)({},i,{sectionValue:o(i.sectionValue,n)})}return{saveQuery:!1}};return d(e,((e,t)=>{switch(t.type){case"month":{const r=e=>lC(a,e,a.formats.month,t.format);return n(e,t,a.formats.month,r)}case"weekDay":{const r=(e,t)=>t.indexOf(e).toString();return n(e,t,a.formats.weekday,r)}case"meridiem":return n(e,t);default:return{saveQuery:!1}}}))})(o);null==c?r(null):t({activeSection:l,newSectionValue:c.sectionValue,shouldGoToNextSection:c.shouldGoToNextSection})})),resetCharacterQuery:u}},BE=["onClick","onKeyDown","onFocus","onBlur","onMouseUp","onPaste","error","clearable","onClear","disabled"],$E=e=>{const t=SC(),{state:n,selectedSectionIndexes:r,setSelectedSections:i,clearValue:a,clearActiveSection:c,updateSectionValue:u,updateValueFromValueStr:d,setTempAndroidValueStr:h,sectionsValueBoundaries:p,placeholder:f,timezone:g}=NE(e),{inputRef:m,internalProps:y,internalProps:{readOnly:v=!1,unstableFieldRef:b,minutesStep:w},forwardedProps:{onClick:x,onKeyDown:A,onFocus:S,onBlur:C,onMouseUp:E,onPaste:_,error:k,clearable:T,onClear:O,disabled:P},fieldValueManager:M,valueManager:L,validator:R}=e,j=(0,l.A)(e.forwardedProps,BE),{applyCharacterEditing:F,resetCharacterQuery:D}=VE({sections:n.sections,updateSectionValue:u,sectionsValueBoundaries:p,setTempAndroidValueStr:h,timezone:g}),N=o.useRef(null),z=(0,q.A)(m,N),V=o.useRef(void 0),B="rtl"===(0,I.A)().direction,$=o.useMemo((()=>((e,t)=>{const n={};if(!t)return e.forEach(((t,r)=>{const i=0===r?null:r-1,o=r===e.length-1?null:r+1;n[r]={leftIndex:i,rightIndex:o}})),{neighbors:n,startIndex:0,endIndex:e.length-1};const r={},i={};let o=0,a=0,s=e.length-1;for(;s>=0;){a=e.findIndex(((e,t)=>{var n;return t>=o&&(null==(n=e.endSeparator)?void 0:n.includes(" "))&&" / "!==e.endSeparator})),-1===a&&(a=e.length-1);for(let e=a;e>=o;e-=1)i[e]=s,r[s]=e,s-=1;o=a+1}return e.forEach(((t,o)=>{const a=i[o],s=0===a?null:r[a-1],l=a===e.length-1?null:r[a+1];n[o]={leftIndex:s,rightIndex:l}})),{neighbors:n,startIndex:r[0],endIndex:r[e.length-1]}})(n.sections,B)),[n.sections,B]),G=()=>{var e;if(v)return void i(null);const t=null!=(e=N.current.selectionStart)?e:0;let r;r=t<=n.sections[0].startInInput||t>=n.sections[n.sections.length-1].endInInput?1:n.sections.findIndex((e=>e.startInInput-e.startSeparator.length>t));const o=-1===r?n.sections.length-1:r-1;i(o)},U=(0,$e.A)(((e,...t)=>{e.isDefaultPrevented()||(null==x||x(e,...t),G())})),W=(0,$e.A)((e=>{null==E||E(e),e.preventDefault()})),H=(0,$e.A)(((...e)=>{null==S||S(...e);const t=N.current;window.clearTimeout(V.current),V.current=setTimeout((()=>{t&&t===N.current&&(null!=r||v||(t.value.length&&Number(t.selectionEnd)-Number(t.selectionStart)===t.value.length?i("all"):G()))}))})),Y=(0,$e.A)(((...e)=>{null==C||C(...e),i(null)})),K=(0,$e.A)((e=>{if(null==_||_(e),v)return void e.preventDefault();const t=e.clipboardData.getData("text");if(r&&r.startIndex===r.endIndex){const i=n.sections[r.startIndex],o=/^[a-zA-Z]+$/.test(t),a=/^[0-9]+$/.test(t),s=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(t);if("letter"===i.contentType&&o||"digit"===i.contentType&&a||"digit-with-letter"===i.contentType&&s)return D(),u({activeSection:i,newSectionValue:t,shouldGoToNextSection:!0}),void e.preventDefault();if(o||a)return void e.preventDefault()}e.preventDefault(),D(),d(t)})),X=(0,$e.A)((e=>{if(v)return;const t=e.target.value;if(""===t)return D(),void a();const i=e.nativeEvent.data,o=i&&i.length>1,s=o?i:t,l=oC(s);if(null==r||o)return void d(o?i:l);let u;if(0===r.startIndex&&r.endIndex===n.sections.length-1&&1===l.length)u=l;else{const e=oC(M.getValueStrFromSections(n.sections,B));let t=-1,i=-1;for(let n=0;no.end)return;const a=l.length-e.length+o.end-oC(o.endSeparator||"").length;u=l.slice(o.start+oC(o.startSeparator||"").length,a)}0!==u.length?F({keyPressed:u,sectionIndex:r.startIndex}):navigator.userAgent.toLowerCase().indexOf("android")>-1?h(s):(D(),c())})),Z=(0,$e.A)((e=>{switch(null==A||A(e),!0){case"a"===e.key&&(e.ctrlKey||e.metaKey):e.preventDefault(),i("all");break;case"ArrowRight"===e.key:if(e.preventDefault(),null==r)i($.startIndex);else if(r.startIndex!==r.endIndex)i(r.endIndex);else{const e=$.neighbors[r.startIndex].rightIndex;null!==e&&i(e)}break;case"ArrowLeft"===e.key:if(e.preventDefault(),null==r)i($.endIndex);else if(r.startIndex!==r.endIndex)i(r.startIndex);else{const e=$.neighbors[r.startIndex].leftIndex;null!==e&&i(e)}break;case"Delete"===e.key:if(e.preventDefault(),v)break;null==r||0===r.startIndex&&r.endIndex===n.sections.length-1?a():c(),D();break;case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(e.key):{if(e.preventDefault(),v||null==r)break;const i=n.sections[r.startIndex],o=M.getActiveDateManager(t,n,i),a=rC(t,g,i,e.key,p,o.date,{minutesStep:w});u({activeSection:i,newSectionValue:a,shouldGoToNextSection:!1});break}}}));(0,Xe.A)((()=>{if(!N.current)return;if(null==r)return void(N.current.scrollLeft&&(N.current.scrollLeft=0));const e=n.sections[r.startIndex],t=n.sections[r.endIndex];let i=e.startInInput,o=t.endInInput;if(r.shouldSelectBoundarySelectors&&(i-=e.startSeparator.length,o+=t.endSeparator.length),i!==N.current.selectionStart||o!==N.current.selectionEnd){const e=N.current.scrollTop;N.current===WC(document)&&N.current.setSelectionRange(i,o),N.current.scrollTop=e}}));const J=rE((0,s.A)({},y,{value:n.value,timezone:g}),R,L.isSameError,L.defaultErrorState),Q=o.useMemo((()=>void 0!==k?k:L.hasError(J)),[L,J,k]);o.useEffect((()=>{Q||r||D()}),[n.referenceValue,r,Q]),o.useEffect((()=>(N.current&&N.current===document.activeElement&&i("all"),()=>window.clearTimeout(V.current))),[]),o.useEffect((()=>{null!=n.tempValueStrAndroid&&null!=r&&(D(),c())}),[n.tempValueStrAndroid]);const ee=o.useMemo((()=>{var e;return null!=(e=n.tempValueStrAndroid)?e:M.getValueStrFromSections(n.sections,B)}),[n.sections,M,n.tempValueStrAndroid,B]),te=o.useMemo((()=>null==r||"letter"===n.sections[r.startIndex].contentType?"text":"numeric"),[r,n.sections]),ne=N.current&&N.current===WC(document),re=L.areValuesEqual(t,n.value,L.emptyValue),ie=!ne&&re;o.useImperativeHandle(b,(()=>({getSections:()=>n.sections,getActiveSectionIndex:()=>{var e,t,r;const i=null!=(e=N.current.selectionStart)?e:0,o=null!=(t=N.current.selectionEnd)?t:0,a=!(null==(r=N.current)||!r.readOnly);if(0===i&&0===o||a)return null;const s=i<=n.sections[0].startInInput?1:n.sections.findIndex((e=>e.startInInput-e.startSeparator.length>i));return-1===s?n.sections.length-1:s-1},setSelectedSections:e=>i(e)})));const oe=(0,$e.A)(((e,...t)=>{var n;e.preventDefault(),null==O||O(e,...t),a(),null==N||null==(n=N.current)||n.focus(),i(0)}));return(0,s.A)({placeholder:f,autoComplete:"off",disabled:Boolean(P)},j,{value:ie?"":ee,inputMode:te,readOnly:v,onClick:U,onFocus:H,onBlur:Y,onPaste:K,onChange:X,onKeyDown:Z,onMouseUp:W,onClear:oe,error:Q,ref:z,clearable:Boolean(T&&!re&&!v&&!P)})},GE=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],UE=["disablePast","disableFuture","minTime","maxTime","shouldDisableClock","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],WE=["minDateTime","maxDateTime"],qE=[...GE,...UE,...WE],HE=e=>qE.reduce(((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t)),{}),YE=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","readOnly","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef"],KE=(e,t)=>{const n=(0,s.A)({},e),r={},i=e=>{n.hasOwnProperty(e)&&(r[e]=n[e],delete n[e])};return YE.forEach(i),"date"===t?GE.forEach(i):"time"===t?UE.forEach(i):"date-time"===t&&(GE.forEach(i),UE.forEach(i),WE.forEach(i)),{forwardedProps:n,internalProps:r}},XE=({props:e,inputRef:t})=>{const n=(e=>{var t,n,r;const i=SC(),o=CC();return(0,s.A)({},e,{disablePast:null!=(t=e.disablePast)&&t,disableFuture:null!=(n=e.disableFuture)&&n,format:null!=(r=e.format)?r:i.formats.keyboardDate,minDate:LS(i,e.minDate,o.minDate),maxDate:LS(i,e.maxDate,o.maxDate)})})(e),{forwardedProps:r,internalProps:i}=KE(n,"date");return $E({inputRef:t,forwardedProps:r,internalProps:i,valueManager:mC,fieldValueManager:yC,validator:NC,valueType:"date"})},ZE=["ownerState"],JE=({clearable:e,fieldProps:t,InputProps:n,onClear:r,slots:i,slotProps:a,components:c,componentsProps:u})=>{var d,h,p,f,g,m;const y=EC(),v=null!=(d=null!=(h=null==i?void 0:i.clearButton)?h:null==c?void 0:c.ClearButton)?d:Un,b=$C({elementType:v,externalSlotProps:null!=(p=null==a?void 0:a.clearButton)?p:null==u?void 0:u.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:y.fieldClearLabel}}),w=(0,l.A)(b,ZE),x=null!=(f=null!=(g=null==i?void 0:i.clearIcon)?g:null==c?void 0:c.ClearIcon)?f:DE,A=$C({elementType:x,externalSlotProps:null!=(m=null==a?void 0:a.clearIcon)?m:null==u?void 0:u.clearIcon,ownerState:{}});return{InputProps:(0,s.A)({},n,{endAdornment:(0,F.jsxs)(o.Fragment,{children:[e&&(0,F.jsx)(CS,{position:"end",sx:{marginRight:null!=n&&n.endAdornment?-1:-1.5},children:(0,F.jsx)(v,(0,s.A)({},w,{onClick:r,children:(0,F.jsx)(x,(0,s.A)({fontSize:"small"},A))}))}),null==n?void 0:n.endAdornment]})}),fieldProps:(0,s.A)({},t,{sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(t.sx)?t.sx:[t.sx]]})}},QE=["components","componentsProps","slots","slotProps","InputProps","inputProps"],e_=["inputRef"],t_=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],n_=o.forwardRef((function(e,t){var n,r,i;const o=(0,k.A)({props:e,name:"MuiDateField"}),{components:a,componentsProps:c,slots:u,slotProps:d,InputProps:h,inputProps:p}=o,f=(0,l.A)(o,QE),g=o,m=null!=(n=null!=(r=null==u?void 0:u.textField)?r:null==a?void 0:a.TextField)?n:oS,y=$C({elementType:m,externalSlotProps:null!=(i=null==d?void 0:d.textField)?i:null==c?void 0:c.textField,externalForwardedProps:f,ownerState:g}),{inputRef:v}=y,b=(0,l.A)(y,e_);b.inputProps=(0,s.A)({},p,b.inputProps),b.InputProps=(0,s.A)({},h,b.InputProps);const w=XE({props:b,inputRef:v}),{ref:x,onPaste:A,onKeyDown:S,inputMode:C,readOnly:E,clearable:_,onClear:T}=w,O=(0,l.A)(w,t_),{InputProps:P,fieldProps:I}=JE({onClear:T,clearable:_,fieldProps:O,InputProps:O.InputProps,slots:u,slotProps:d,components:a,componentsProps:c});return(0,F.jsx)(m,(0,s.A)({ref:t},I,{InputProps:(0,s.A)({},P,{readOnly:E}),inputProps:(0,s.A)({},O.inputProps,{inputMode:C,onPaste:A,onKeyDown:S,ref:x})}))})),r_=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:i,disableFuture:a,disablePast:s,timezone:l})=>{const c=AC();return o.useCallback((o=>null!==NC({adapter:c,value:o,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:i,disableFuture:a,disablePast:s,timezone:l}})),[c,e,t,n,r,i,a,s,l])},i_=e=>{const{value:t,referenceDate:n,defaultCalendarMonth:r,disableFuture:i,disablePast:a,disableSwitchToMonthOnDayFocus:l=!1,maxDate:c,minDate:u,onMonthChange:d,reduceAnimations:h,shouldDisableDate:p,timezone:f}=e,g=SC(),m=o.useRef(((e,t,n)=>(r,i)=>{switch(i.type){case"changeMonth":return(0,s.A)({},r,{slideDirection:i.direction,currentMonth:i.newMonth,isMonthSwitchingAnimating:!e});case"finishMonthSwitchingAnimation":return(0,s.A)({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(null!=r.focusedDay&&null!=i.focusedDay&&n.isSameDay(i.focusedDay,r.focusedDay))return r;const o=null!=i.focusedDay&&!t&&!n.isSameMonth(r.currentMonth,i.focusedDay);return(0,s.A)({},r,{focusedDay:i.focusedDay,isMonthSwitchingAnimating:o&&!e&&!i.withoutMonthSwitchingAnimation,currentMonth:o?n.startOfMonth(i.focusedDay):r.currentMonth,slideDirection:null!=i.focusedDay&&n.isAfterDay(i.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}})(Boolean(h),l,g)).current,y=o.useMemo((()=>{let i=null;return n?i=n:r&&(i=g.startOfMonth(r)),mC.getInitialReferenceValue({value:t,utils:g,timezone:f,props:e,referenceDate:i,granularity:XS.day})}),[]),[v,b]=o.useReducer(m,{isMonthSwitchingAnimating:!1,focusedDay:y,currentMonth:g.startOfMonth(y),slideDirection:"left"}),w=o.useCallback((e=>{b((0,s.A)({type:"changeMonth"},e)),d&&d(e.newMonth)}),[d]),x=o.useCallback((e=>{const t=e;g.isSameMonth(t,v.currentMonth)||w({newMonth:g.startOfMonth(t),direction:g.isAfterDay(t,v.currentMonth)?"left":"right"})}),[v.currentMonth,w,g]),A=r_({shouldDisableDate:p,minDate:u,maxDate:c,disableFuture:i,disablePast:a,timezone:f}),S=o.useCallback((()=>{b({type:"finishMonthSwitchingAnimation"})}),[]),C=(0,$e.A)(((e,t)=>{A(e)||b({type:"changeFocusedDay",focusedDay:e,withoutMonthSwitchingAnimation:t})}));return{referenceDate:y,calendarState:v,changeMonth:x,changeFocusedDay:C,isDateDisabled:A,onMonthSwitchingAnimationEnd:S,handleChangeMonth:w}};var o_=n(37091);const a_=e=>(0,R.Ay)("MuiPickersFadeTransitionGroup",e),s_=((0,L.A)("MuiPickersFadeTransitionGroup",["root"]),(0,h.Ay)(o_.A,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"}));function l_(e){const t=(0,k.A)({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:i,transKey:o}=t,a=(e=>{const{classes:t}=e;return(0,u.A)({root:["root"]},a_,t)})(t),s=(0,I.A)();return i?n:(0,F.jsx)(s_,{className:(0,c.A)(a.root,r),children:(0,F.jsx)(_i,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:s.transitions.duration.enteringScreen,enter:s.transitions.duration.enteringScreen,exit:0},children:n},o)})}function c_(e){return(0,R.Ay)("MuiPickersDay",e)}const u_=(0,L.A)("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),d_=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],h_=({theme:e,ownerState:t})=>(0,s.A)({},e.typography.caption,{width:36,height:36,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),color:(e.vars||e).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,jy.X4)(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:(0,jy.X4)(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${u_.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${u_.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightMedium,"&:hover":{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${u_.disabled}:not(.${u_.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${u_.disabled}&.${u_.selected}`]:{opacity:.6}},!t.disableMargin&&{margin:"0 2px"},t.outsideCurrentMonth&&t.showDaysOutsideCurrentMonth&&{color:(e.vars||e).palette.text.secondary},!t.disableHighlightToday&&t.today&&{[`&:not(.${u_.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}),p_=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.today&&t.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},f_=(0,h.Ay)(ae.A,{name:"MuiPickersDay",slot:"Root",overridesResolver:p_})(h_),g_=(0,h.Ay)("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:p_})((({theme:e,ownerState:t})=>(0,s.A)({},h_({theme:e,ownerState:t}),{opacity:0,pointerEvents:"none"}))),m_=()=>{},y_=o.forwardRef((function(e,t){const n=(0,k.A)({props:e,name:"MuiPickersDay"}),{autoFocus:r=!1,className:i,day:a,disabled:d=!1,disableHighlightToday:h=!1,disableMargin:p=!1,isAnimating:f,onClick:g,onDaySelect:m,onFocus:y=m_,onBlur:v=m_,onKeyDown:b=m_,onMouseDown:w=m_,onMouseEnter:x=m_,outsideCurrentMonth:A,selected:S=!1,showDaysOutsideCurrentMonth:C=!1,children:E,today:_=!1}=n,T=(0,l.A)(n,d_),O=(0,s.A)({},n,{autoFocus:r,disabled:d,disableHighlightToday:h,disableMargin:p,selected:S,showDaysOutsideCurrentMonth:C,today:_}),P=(e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:i,disabled:o,outsideCurrentMonth:a,showDaysOutsideCurrentMonth:s,classes:l}=e,c=a&&!s,d={root:["root",t&&!c&&"selected",o&&"disabled",!n&&"dayWithMargin",!r&&i&&"today",a&&s&&"dayOutsideMonth",c&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]};return(0,u.A)(d,c_,l)})(O),I=SC(),M=o.useRef(null),L=(0,q.A)(M,t);(0,Xe.A)((()=>{!r||d||f||A||M.current.focus()}),[r,d,f,A]);return A&&!C?(0,F.jsx)(g_,{className:(0,c.A)(P.root,P.hiddenDaySpacingFiller,i),ownerState:O,role:T.role}):(0,F.jsx)(f_,(0,s.A)({className:(0,c.A)(P.root,i),ref:L,centerRipple:!0,disabled:d,tabIndex:S?0:-1,onKeyDown:e=>b(e,a),onFocus:e=>y(e,a),onBlur:e=>v(e,a),onMouseEnter:e=>x(e,a),onClick:e=>{d||m(a),A&&e.currentTarget.focus(),g&&g(e)},onMouseDown:e=>{w(e),A&&e.preventDefault()}},T,{ownerState:O,children:E||I.format(a,"dayOfMonth")}))})),v_=o.memo(y_);function b_(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var w_=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"==typeof n.className?n.className=b_(n.className,r):n.setAttribute("class",b_(n.className&&n.className.baseVal||"",r)));var n,r}))},x_=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i(0,R.Ay)("MuiPickersSlideTransition",e),C_=(0,L.A)("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),E_=["children","className","reduceAnimations","slideDirection","transKey","classes"],__=(0,h.Ay)(o_.A,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${C_["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${C_["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${C_.slideEnterActive}`]:t.slideEnterActive},{[`.${C_.slideExit}`]:t.slideExit},{[`.${C_["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${C_["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})((({theme:e})=>{const t=e.transitions.create("transform",{duration:e.transitions.duration.complex,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${C_["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${C_["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${C_.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${C_.slideExit}`]:{transform:"translate(0%)"},[`& .${C_["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${C_["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}}));const k_=e=>(0,R.Ay)("MuiDayCalendar",e),T_=((0,L.A)("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]),["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"]),O_=["ownerState"],P_=(0,h.Ay)("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),I_=(0,h.Ay)("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),M_=(0,h.Ay)(Fo.A,{name:"MuiDayCalendar",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.weekDayLabel})((({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.secondary}))),L_=(0,h.Ay)(Fo.A,{name:"MuiDayCalendar",slot:"WeekNumberLabel",overridesResolver:(e,t)=>t.weekNumberLabel})((({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.disabled}))),R_=(0,h.Ay)(Fo.A,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})((({theme:e})=>(0,s.A)({},e.typography.caption,{width:36,height:36,padding:0,margin:"0 2px",color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"}))),j_=(0,h.Ay)("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:240}),F_=(0,h.Ay)((function(e){const t=(0,k.A)({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:i,transKey:a}=t,d=(0,l.A)(t,E_),h=(e=>{const{classes:t,slideDirection:n}=e,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return(0,u.A)(r,S_,t)})(t),p=(0,I.A)();if(i)return(0,F.jsx)("div",{className:(0,c.A)(h.root,r),children:n});const f={exit:h.exit,enterActive:h.enterActive,enter:h.enter,exitActive:h.exitActive};return(0,F.jsx)(__,{className:(0,c.A)(h.root,r),childFactory:e=>o.cloneElement(e,{classNames:f}),role:"presentation",children:(0,F.jsx)(A_,(0,s.A)({mountOnEnter:!0,unmountOnExit:!0,timeout:p.transitions.duration.complex,classNames:f},d,{children:n}),a)})}),{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:240}),D_=(0,h.Ay)("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),N_=(0,h.Ay)("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:"2px 0",display:"flex",justifyContent:"center"});function z_(e){var t,n,r;let{parentProps:i,day:a,focusableDay:c,selectedDays:u,isDateDisabled:d,currentMonthNumber:h,isViewFocused:p}=e,f=(0,l.A)(e,T_);const{disabled:g,disableHighlightToday:m,isMonthSwitchingAnimating:y,showDaysOutsideCurrentMonth:v,components:b,componentsProps:w,slots:x,slotProps:A,timezone:S}=i,C=SC(),E=_C(S),_=null!==c&&C.isSameDay(a,c),k=u.some((e=>C.isSameDay(e,a))),T=C.isSameDay(a,E),O=null!=(t=null!=(n=null==x?void 0:x.day)?n:null==b?void 0:b.Day)?t:v_,P=$C({elementType:O,externalSlotProps:null!=(r=null==A?void 0:A.day)?r:null==w?void 0:w.day,additionalProps:(0,s.A)({disableHighlightToday:m,showDaysOutsideCurrentMonth:v,role:"gridcell",isAnimating:y,"data-timestamp":C.toJsDate(a).valueOf()},f),ownerState:(0,s.A)({},i,{day:a,selected:k})}),I=(0,l.A)(P,O_),M=o.useMemo((()=>g||d(a)),[g,d,a]),L=o.useMemo((()=>C.getMonth(a)!==h),[C,a,h]),R=o.useMemo((()=>{const e=C.startOfMonth(C.setMonth(a,h));return v?C.isSameDay(a,C.startOfWeek(e)):C.isSameDay(a,e)}),[h,a,v,C]),j=o.useMemo((()=>{const e=C.endOfMonth(C.setMonth(a,h));return v?C.isSameDay(a,C.endOfWeek(e)):C.isSameDay(a,e)}),[h,a,v,C]);return(0,F.jsx)(O,(0,s.A)({},I,{day:a,disabled:M,autoFocus:p&&_,today:T,outsideCurrentMonth:L,isFirstVisibleCell:R,isLastVisibleCell:j,selected:k,tabIndex:_?0:-1,"aria-selected":k,"aria-current":T?"date":void 0}))}function V_(e){const t=(0,k.A)({props:e,name:"MuiDayCalendar"}),{onFocusedDayChange:n,className:r,currentMonth:i,selectedDays:a,focusedDay:l,loading:d,onSelectedDaysChange:h,onMonthSwitchingAnimationEnd:p,readOnly:f,reduceAnimations:g,renderLoading:m=(()=>(0,F.jsx)("span",{children:"..."})),slideDirection:y,TransitionProps:v,disablePast:b,disableFuture:w,minDate:x,maxDate:A,shouldDisableDate:S,shouldDisableMonth:C,shouldDisableYear:E,dayOfWeekFormatter:_,hasFocus:T,onFocusedViewChange:O,gridLabelId:P,displayWeekNumber:M,fixedWeekNumber:L,autoFocus:R,timezone:j}=t,D=_C(j),N=SC(),z=(e=>{const{classes:t}=e;return(0,u.A)({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},k_,t)})(t),V="rtl"===(0,I.A)().direction,B=_||((e,t)=>N.format(t,"weekdayShort").charAt(0).toUpperCase()),$=r_({shouldDisableDate:S,shouldDisableMonth:C,shouldDisableYear:E,minDate:x,maxDate:A,disablePast:b,disableFuture:w,timezone:j}),G=EC(),[U,W]=(0,Ve.A)({name:"DayCalendar",state:"hasFocus",controlled:T,default:null!=R&&R}),[q,H]=o.useState((()=>l||D)),Y=(0,$e.A)((e=>{f||h(e)})),K=e=>{$(e)||(n(e),H(e),null==O||O(!0),W(!0))},X=(0,$e.A)(((e,t)=>{switch(e.key){case"ArrowUp":K(N.addDays(t,-7)),e.preventDefault();break;case"ArrowDown":K(N.addDays(t,7)),e.preventDefault();break;case"ArrowLeft":{const n=N.addDays(t,V?1:-1),r=N.addMonths(t,V?1:-1),i=MS({utils:N,date:n,minDate:V?n:N.startOfMonth(r),maxDate:V?N.endOfMonth(r):n,isDateDisabled:$,timezone:j});K(i||n),e.preventDefault();break}case"ArrowRight":{const n=N.addDays(t,V?-1:1),r=N.addMonths(t,V?-1:1),i=MS({utils:N,date:n,minDate:V?N.startOfMonth(r):n,maxDate:V?n:N.endOfMonth(r),isDateDisabled:$,timezone:j});K(i||n),e.preventDefault();break}case"Home":K(N.startOfWeek(t)),e.preventDefault();break;case"End":K(N.endOfWeek(t)),e.preventDefault();break;case"PageUp":K(N.addMonths(t,1)),e.preventDefault();break;case"PageDown":K(N.addMonths(t,-1)),e.preventDefault()}})),Z=(0,$e.A)(((e,t)=>K(t))),J=(0,$e.A)(((e,t)=>{U&&N.isSameDay(q,t)&&(null==O||O(!1))})),Q=N.getMonth(i),ee=o.useMemo((()=>a.filter((e=>!!e)).map((e=>N.startOfDay(e)))),[N,a]),te=Q,ne=o.useMemo((()=>o.createRef()),[te]),re=N.startOfWeek(D),ie=o.useMemo((()=>{const e=N.startOfMonth(i),t=N.endOfMonth(i);return $(q)||N.isAfterDay(q,t)||N.isBeforeDay(q,e)?MS({utils:N,date:q,minDate:e,maxDate:t,disablePast:b,disableFuture:w,isDateDisabled:$,timezone:j}):q}),[i,w,b,q,$,N,j]),oe=o.useMemo((()=>{const e=N.setTimezone(i,j),t=N.getWeekArray(e);let n=N.addMonths(e,1);for(;L&&t.length{t.length{var n;const r=N.format(e,"weekdayShort");return(0,F.jsx)(M_,{variant:"caption",role:"columnheader","aria-label":N.format(N.addDays(re,t),"weekday"),className:z.weekDayLabel,children:null!=(n=null==B?void 0:B(r,e))?n:r},r+t.toString())}))]}),d?(0,F.jsx)(j_,{className:z.loadingContainer,children:m()}):(0,F.jsx)(F_,(0,s.A)({transKey:te,onExited:p,reduceAnimations:g,slideDirection:y,className:(0,c.A)(r,z.slideTransition)},v,{nodeRef:ne,children:(0,F.jsx)(D_,{ref:ne,role:"rowgroup",className:z.monthContainer,children:oe.map(((e,n)=>(0,F.jsxs)(N_,{role:"row",className:z.weekContainer,"aria-rowindex":n+1,children:[M&&(0,F.jsx)(R_,{className:z.weekNumber,role:"rowheader","aria-label":G.calendarWeekNumberAriaLabelText(N.getWeekNumber(e[0])),children:G.calendarWeekNumberText(N.getWeekNumber(e[0]))}),e.map(((e,n)=>(0,F.jsx)(z_,{parentProps:t,day:e,selectedDays:ee,focusableDay:ie,onKeyDown:X,onFocus:Z,onBlur:J,onDaySelect:Y,isDateDisabled:$,currentMonthNumber:Q,isViewFocused:U,"aria-colindex":n+1},e.toString())))]},`week-${e[0]}`)))})}))]})}var B_=n(38382);function $_(e){return(0,R.Ay)("MuiPickersMonth",e)}const G_=(0,L.A)("MuiPickersMonth",["root","monthButton","disabled","selected"]),U_=["autoFocus","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow"],W_=(0,h.Ay)("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root]})((({ownerState:e})=>({flexBasis:3===e.monthsPerRow?"33.3%":"25%",display:"flex",alignItems:"center",justifyContent:"center"}))),q_=(0,h.Ay)("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${G_.disabled}`]:t.disabled},{[`&.${G_.selected}`]:t.selected}]})((({theme:e})=>(0,s.A)({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,jy.X4)(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,jy.X4)(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${G_.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${G_.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}}))),H_=o.memo((function(e){const t=(0,k.A)({props:e,name:"MuiPickersMonth"}),{autoFocus:n,children:r,disabled:i,selected:a,value:c,tabIndex:d,onClick:h,onKeyDown:p,onFocus:f,onBlur:g,"aria-current":m,"aria-label":y}=t,v=(0,l.A)(t,U_),b=o.useRef(null),w=(e=>{const{disabled:t,selected:n,classes:r}=e,i={root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]};return(0,u.A)(i,$_,r)})(t);return(0,Xe.A)((()=>{var e;n&&(null==(e=b.current)||e.focus())}),[n]),(0,F.jsx)(W_,(0,s.A)({className:w.root,ownerState:t},v,{children:(0,F.jsx)(q_,{ref:b,disabled:i,type:"button",role:"radio",tabIndex:i?-1:d,"aria-current":m,"aria-checked":a,"aria-label":y,onClick:e=>h(e,c),onKeyDown:e=>p(e,c),onFocus:e=>f(e,c),onBlur:e=>g(e,c),className:w.monthButton,ownerState:t,children:r})}))}));function Y_(e){return(0,R.Ay)("MuiMonthCalendar",e)}(0,L.A)("MuiMonthCalendar",["root"]);const K_=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId"];const X_=(0,h.Ay)("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:mE,boxSizing:"border-box"}),Z_=o.forwardRef((function(e,t){const n=function(e,t){const n=SC(),r=CC(),i=(0,k.A)({props:e,name:t});return(0,s.A)({disableFuture:!1,disablePast:!1},i,{minDate:LS(n,i.minDate,r.minDate),maxDate:LS(n,i.maxDate,r.maxDate)})}(e,"MuiMonthCalendar"),{className:r,value:i,defaultValue:a,referenceDate:d,disabled:h,disableFuture:p,disablePast:f,maxDate:g,minDate:m,onChange:y,shouldDisableMonth:v,readOnly:b,disableHighlightToday:w,autoFocus:x=!1,onMonthFocus:A,hasFocus:S,onFocusedViewChange:C,monthsPerRow:E=3,timezone:_,gridLabelId:T}=n,O=(0,l.A)(n,K_),{value:P,handleValueChange:I,timezone:M}=oE({name:"MonthCalendar",timezone:_,value:i,defaultValue:a,onChange:y,valueManager:mC}),L=_C(M),R=(0,B_.A)(),j=SC(),D=o.useMemo((()=>mC.getInitialReferenceValue({value:P,utils:j,props:n,timezone:M,referenceDate:d,granularity:XS.month})),[]),N=n,z=(e=>{const{classes:t}=e;return(0,u.A)({root:["root"]},Y_,t)})(N),V=o.useMemo((()=>j.getMonth(L)),[j,L]),B=o.useMemo((()=>null!=P?j.getMonth(P):w?null:j.getMonth(D)),[P,j,w,D]),[$,G]=o.useState((()=>B||V)),[U,W]=(0,Ve.A)({name:"MonthCalendar",state:"hasFocus",controlled:S,default:null!=x&&x}),q=(0,$e.A)((e=>{W(e),C&&C(e)})),H=o.useCallback((e=>{const t=j.startOfMonth(f&&j.isAfter(L,m)?L:m),n=j.startOfMonth(p&&j.isBefore(L,g)?L:g),r=j.startOfMonth(e);return!!j.isBefore(r,t)||(!!j.isAfter(r,n)||!!v&&v(r))}),[p,f,g,m,L,v,j]),Y=(0,$e.A)(((e,t)=>{if(b)return;const n=j.setMonth(null!=P?P:D,t);I(n)})),K=(0,$e.A)((e=>{H(j.setMonth(null!=P?P:D,e))||(G(e),q(!0),A&&A(e))}));o.useEffect((()=>{G((e=>null!==B&&e!==B?B:e))}),[B]);const X=(0,$e.A)(((e,t)=>{const n=12;switch(e.key){case"ArrowUp":K((n+t-3)%n),e.preventDefault();break;case"ArrowDown":K((n+t+3)%n),e.preventDefault();break;case"ArrowLeft":K((n+t+("ltr"===R.direction?-1:1))%n),e.preventDefault();break;case"ArrowRight":K((n+t+("ltr"===R.direction?1:-1))%n),e.preventDefault()}})),Z=(0,$e.A)(((e,t)=>{K(t)})),J=(0,$e.A)(((e,t)=>{$===t&&q(!1)}));return(0,F.jsx)(X_,(0,s.A)({ref:t,className:(0,c.A)(z.root,r),ownerState:N,role:"radiogroup","aria-labelledby":T},O,{children:RS(j,null!=P?P:D).map((e=>{const t=j.getMonth(e),n=j.format(e,"monthShort"),r=j.format(e,"month"),i=t===B,o=h||H(e);return(0,F.jsx)(H_,{selected:i,value:t,onClick:Y,onKeyDown:X,autoFocus:U&&t===$,disabled:o,tabIndex:t===$?0:-1,onFocus:Z,onBlur:J,"aria-current":V===t?"date":void 0,"aria-label":r,monthsPerRow:E,children:n},n)}))}))}));function J_(e){return(0,R.Ay)("MuiPickersYear",e)}const Q_=(0,L.A)("MuiPickersYear",["root","yearButton","selected","disabled"]),ek=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow"],tk=(0,h.Ay)("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root]})((({ownerState:e})=>({flexBasis:3===e.yearsPerRow?"33.3%":"25%",display:"flex",alignItems:"center",justifyContent:"center"}))),nk=(0,h.Ay)("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${Q_.disabled}`]:t.disabled},{[`&.${Q_.selected}`]:t.selected}]})((({theme:e})=>(0,s.A)({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"6px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:(0,jy.X4)(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,jy.X4)(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Q_.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Q_.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}}))),rk=o.memo((function(e){const t=(0,k.A)({props:e,name:"MuiPickersYear"}),{autoFocus:n,className:r,children:i,disabled:a,selected:d,value:h,tabIndex:p,onClick:f,onKeyDown:g,onFocus:m,onBlur:y,"aria-current":v}=t,b=(0,l.A)(t,ek),w=o.useRef(null),x=(e=>{const{disabled:t,selected:n,classes:r}=e,i={root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]};return(0,u.A)(i,J_,r)})(t);return o.useEffect((()=>{n&&w.current.focus()}),[n]),(0,F.jsx)(tk,(0,s.A)({className:(0,c.A)(x.root,r),ownerState:t},b,{children:(0,F.jsx)(nk,{ref:w,disabled:a,type:"button",role:"radio",tabIndex:a?-1:p,"aria-current":v,"aria-checked":d,onClick:e=>f(e,h),onKeyDown:e=>g(e,h),onFocus:e=>m(e,h),onBlur:e=>y(e,h),className:x.yearButton,ownerState:t,children:i})}))}));function ik(e){return(0,R.Ay)("MuiYearCalendar",e)}(0,L.A)("MuiYearCalendar",["root"]);const ok=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsPerRow","timezone","gridLabelId"];const ak=(0,h.Ay)("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:mE,maxHeight:280,boxSizing:"border-box",position:"relative"}),sk=o.forwardRef((function(e,t){const n=function(e,t){var n;const r=SC(),i=CC(),o=(0,k.A)({props:e,name:t});return(0,s.A)({disablePast:!1,disableFuture:!1},o,{yearsPerRow:null!=(n=o.yearsPerRow)?n:3,minDate:LS(r,o.minDate,i.minDate),maxDate:LS(r,o.maxDate,i.maxDate)})}(e,"MuiYearCalendar"),{autoFocus:r,className:i,value:a,defaultValue:d,referenceDate:h,disabled:p,disableFuture:f,disablePast:g,maxDate:m,minDate:y,onChange:v,readOnly:b,shouldDisableYear:w,disableHighlightToday:x,onYearFocus:A,hasFocus:S,onFocusedViewChange:C,yearsPerRow:E,timezone:_,gridLabelId:T}=n,O=(0,l.A)(n,ok),{value:P,handleValueChange:I,timezone:M}=oE({name:"YearCalendar",timezone:_,value:a,defaultValue:d,onChange:v,valueManager:mC}),L=_C(M),R=(0,B_.A)(),j=SC(),D=o.useMemo((()=>mC.getInitialReferenceValue({value:P,utils:j,props:n,timezone:M,referenceDate:h,granularity:XS.year})),[]),N=n,z=(e=>{const{classes:t}=e;return(0,u.A)({root:["root"]},ik,t)})(N),V=o.useMemo((()=>j.getYear(L)),[j,L]),B=o.useMemo((()=>null!=P?j.getYear(P):x?null:j.getYear(D)),[P,j,x,D]),[$,G]=o.useState((()=>B||V)),[U,W]=(0,Ve.A)({name:"YearCalendar",state:"hasFocus",controlled:S,default:null!=r&&r}),H=(0,$e.A)((e=>{W(e),C&&C(e)})),Y=o.useCallback((e=>{if(g&&j.isBeforeYear(e,L))return!0;if(f&&j.isAfterYear(e,L))return!0;if(y&&j.isBeforeYear(e,y))return!0;if(m&&j.isAfterYear(e,m))return!0;if(!w)return!1;const t=j.startOfYear(e);return w(t)}),[f,g,m,y,L,w,j]),K=(0,$e.A)(((e,t)=>{if(b)return;const n=j.setYear(null!=P?P:D,t);I(n)})),X=(0,$e.A)((e=>{Y(j.setYear(null!=P?P:D,e))||(G(e),H(!0),null==A||A(e))}));o.useEffect((()=>{G((e=>null!==B&&e!==B?B:e))}),[B]);const Z=(0,$e.A)(((e,t)=>{switch(e.key){case"ArrowUp":X(t-E),e.preventDefault();break;case"ArrowDown":X(t+E),e.preventDefault();break;case"ArrowLeft":X(t+("ltr"===R.direction?-1:1)),e.preventDefault();break;case"ArrowRight":X(t+("ltr"===R.direction?1:-1)),e.preventDefault()}})),J=(0,$e.A)(((e,t)=>{X(t)})),Q=(0,$e.A)(((e,t)=>{$===t&&H(!1)})),ee=o.useRef(null),te=(0,q.A)(t,ee);return o.useEffect((()=>{if(r||null===ee.current)return;const e=ee.current.querySelector('[tabindex="0"]');if(!e)return;const t=e.offsetHeight,n=e.offsetTop,i=ee.current.clientHeight,o=ee.current.scrollTop,a=n+t;t>i||n{const t=j.getYear(e),n=t===B,r=p||Y(e);return(0,F.jsx)(rk,{selected:n,value:t,onClick:K,onKeyDown:Z,autoFocus:U&&t===$,disabled:r,tabIndex:t===$?0:-1,onFocus:J,onBlur:Q,"aria-current":V===t?"date":void 0,yearsPerRow:E,children:j.format(e,"year")},j.format(e,"year"))}))}))}));function lk(e){return(0,R.Ay)("MuiPickersArrowSwitcher",e)}(0,L.A)("MuiPickersArrowSwitcher",["root","spacer","button"]);const ck=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel"],uk=["ownerState"],dk=["ownerState"],hk=(0,h.Ay)("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),pk=(0,h.Ay)("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})((({theme:e})=>({width:e.spacing(3)}))),fk=(0,h.Ay)(Un,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})((({ownerState:e})=>(0,s.A)({},e.hidden&&{visibility:"hidden"}))),gk=o.forwardRef((function(e,t){var n,r,i,o;const a="rtl"===(0,I.A)().direction,d=(0,k.A)({props:e,name:"MuiPickersArrowSwitcher"}),{children:h,className:p,slots:f,slotProps:g,isNextDisabled:m,isNextHidden:y,onGoToNext:v,nextLabel:b,isPreviousDisabled:w,isPreviousHidden:x,onGoToPrevious:A,previousLabel:S}=d,C=(0,l.A)(d,ck),E=d,_=(e=>{const{classes:t}=e;return(0,u.A)({root:["root"],spacer:["spacer"],button:["button"]},lk,t)})(E),T={isDisabled:m,isHidden:y,goTo:v,label:b},O={isDisabled:w,isHidden:x,goTo:A,label:S},P=null!=(n=null==f?void 0:f.previousIconButton)?n:fk,M=$C({elementType:P,externalSlotProps:null==g?void 0:g.previousIconButton,additionalProps:{size:"medium",title:O.label,"aria-label":O.label,disabled:O.isDisabled,edge:"end",onClick:O.goTo},ownerState:(0,s.A)({},E,{hidden:O.isHidden}),className:_.button}),L=null!=(r=null==f?void 0:f.nextIconButton)?r:fk,R=$C({elementType:L,externalSlotProps:null==g?void 0:g.nextIconButton,additionalProps:{size:"medium",title:T.label,"aria-label":T.label,disabled:T.isDisabled,edge:"start",onClick:T.goTo},ownerState:(0,s.A)({},E,{hidden:T.isHidden}),className:_.button}),j=null!=(i=null==f?void 0:f.leftArrowIcon)?i:IE,D=$C({elementType:j,externalSlotProps:null==g?void 0:g.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),N=(0,l.A)(D,uk),z=null!=(o=null==f?void 0:f.rightArrowIcon)?o:ME,V=$C({elementType:z,externalSlotProps:null==g?void 0:g.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),B=(0,l.A)(V,dk);return(0,F.jsxs)(hk,(0,s.A)({ref:t,className:(0,c.A)(_.root,p),ownerState:E},C,{children:[(0,F.jsx)(P,(0,s.A)({},M,{children:a?(0,F.jsx)(z,(0,s.A)({},B)):(0,F.jsx)(j,(0,s.A)({},N))})),h?(0,F.jsx)(Fo.A,{variant:"subtitle1",component:"span",children:h}):(0,F.jsx)(pk,{className:_.spacer,ownerState:E}),(0,F.jsx)(L,(0,s.A)({},R,{children:a?(0,F.jsx)(j,(0,s.A)({},N)):(0,F.jsx)(z,(0,s.A)({},B))}))]}))}));function mk(e,t,n,r){const i=SC();return{meridiemMode:US(e,i),handleMeridiemChange:o.useCallback((o=>{const a=null==e?null:qS(e,o,Boolean(t),i);n(a,null!=r?r:"partial")}),[t,e,n,r,i])}}const yk=e=>(0,R.Ay)("MuiPickersCalendarHeader",e),vk=(0,L.A)("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),bk=["slots","slotProps","components","componentsProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone"],wk=["ownerState"],xk=(0,h.Ay)("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:16,marginBottom:8,paddingLeft:24,paddingRight:12,maxHeight:30,minHeight:30}),Ak=(0,h.Ay)("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})((({theme:e})=>(0,s.A)({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium}))),Sk=(0,h.Ay)("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),Ck=(0,h.Ay)(Un,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})((({ownerState:e})=>(0,s.A)({marginRight:"auto"},"year"===e.view&&{[`.${vk.switchViewIcon}`]:{transform:"rotate(180deg)"}}))),Ek=(0,h.Ay)(PE,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})((({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"}))),_k=o.forwardRef((function(e,t){var n,r,i,a;const d=EC(),h=SC(),p=(0,k.A)({props:e,name:"MuiPickersCalendarHeader"}),{slots:f,slotProps:g,components:m,currentMonth:y,disabled:v,disableFuture:b,disablePast:w,maxDate:x,minDate:A,onMonthChange:S,onViewChange:C,view:E,reduceAnimations:_,views:T,labelId:O,className:P,timezone:I}=p,M=(0,l.A)(p,bk),L=p,R=(e=>{const{classes:t}=e;return(0,u.A)({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},yk,t)})(p),j=null!=(n=null!=(r=null==f?void 0:f.switchViewButton)?r:null==m?void 0:m.SwitchViewButton)?n:Ck,D=$C({elementType:j,externalSlotProps:null==g?void 0:g.switchViewButton,additionalProps:{size:"small","aria-label":d.calendarViewSwitchingButtonAriaLabel(E)},ownerState:L,className:R.switchViewButton}),N=null!=(i=null!=(a=null==f?void 0:f.switchViewIcon)?a:null==m?void 0:m.SwitchViewIcon)?i:Ek,z=$C({elementType:N,externalSlotProps:null==g?void 0:g.switchViewIcon,ownerState:void 0,className:R.switchViewIcon}),V=(0,l.A)(z,wk),B=function(e,{disableFuture:t,maxDate:n,timezone:r}){const i=SC();return o.useMemo((()=>{const o=i.dateWithTimezone(void 0,r),a=i.startOfMonth(t&&i.isBefore(o,n)?o:n);return!i.isAfter(a,e)}),[t,n,e,i,r])}(y,{disableFuture:b,maxDate:x,timezone:I}),$=function(e,{disablePast:t,minDate:n,timezone:r}){const i=SC();return o.useMemo((()=>{const o=i.dateWithTimezone(void 0,r),a=i.startOfMonth(t&&i.isAfter(o,n)?o:n);return!i.isBefore(a,e)}),[t,n,e,i,r])}(y,{disablePast:w,minDate:A,timezone:I});return 1===T.length&&"year"===T[0]?null:(0,F.jsxs)(xk,(0,s.A)({},M,{ownerState:L,className:(0,c.A)(P,R.root),ref:t,children:[(0,F.jsxs)(Ak,{role:"presentation",onClick:()=>{if(1!==T.length&&C&&!v)if(2===T.length)C(T.find((e=>e!==E))||T[0]);else{const e=0!==T.indexOf(E)?0:1;C(T[e])}},ownerState:L,"aria-live":"polite",className:R.labelContainer,children:[(0,F.jsx)(l_,{reduceAnimations:_,transKey:h.format(y,"monthAndYear"),children:(0,F.jsx)(Sk,{id:O,ownerState:L,className:R.label,children:h.format(y,"monthAndYear")})}),T.length>1&&!v&&(0,F.jsx)(j,(0,s.A)({},D,{children:(0,F.jsx)(N,(0,s.A)({},V))}))]}),(0,F.jsx)(_i,{in:"day"===E,children:(0,F.jsx)(gk,{slots:f,slotProps:g,onGoToPrevious:()=>S(h.addMonths(y,-1),"right"),isPreviousDisabled:$,previousLabel:d.previousMonth,onGoToNext:()=>S(h.addMonths(y,1),"left"),isNextDisabled:B,nextLabel:d.nextMonth})})]}))})),kk=(0,h.Ay)("div")({overflow:"hidden",width:mE,maxHeight:yE,display:"flex",flexDirection:"column",margin:"0 auto"}),Tk=e=>(0,R.Ay)("MuiDateCalendar",e),Ok=((0,L.A)("MuiDateCalendar",["root","viewTransitionContainer"]),["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","defaultCalendarMonth","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","components","componentsProps","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsPerRow","monthsPerRow","timezone"]);const Pk=(0,h.Ay)(kk,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:yE}),Ik=(0,h.Ay)(l_,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),Mk=o.forwardRef((function(e,t){var n,r,i;const a=SC(),d=(0,ze.A)(),h=function(e,t){var n,r,i,o,a,l,c;const u=SC(),d=CC(),h=ZC(),p=(0,k.A)({props:e,name:t});return(0,s.A)({},p,{loading:null!=(n=p.loading)&&n,disablePast:null!=(r=p.disablePast)&&r,disableFuture:null!=(i=p.disableFuture)&&i,openTo:null!=(o=p.openTo)?o:"day",views:null!=(a=p.views)?a:["year","day"],reduceAnimations:null!=(l=p.reduceAnimations)?l:h,renderLoading:null!=(c=p.renderLoading)?c:()=>(0,F.jsx)("span",{children:"..."}),minDate:LS(u,p.minDate,d.minDate),maxDate:LS(u,p.maxDate,d.maxDate)})}(e,"MuiDateCalendar"),{autoFocus:p,onViewChange:f,value:g,defaultValue:m,referenceDate:y,disableFuture:v,disablePast:b,defaultCalendarMonth:w,onChange:x,onYearChange:A,onMonthChange:S,reduceAnimations:C,shouldDisableDate:E,shouldDisableMonth:_,shouldDisableYear:T,view:O,views:P,openTo:I,className:M,disabled:L,readOnly:R,minDate:j,maxDate:D,disableHighlightToday:N,focusedView:z,onFocusedViewChange:V,showDaysOutsideCurrentMonth:B,fixedWeekNumber:$,dayOfWeekFormatter:G,components:U,componentsProps:W,slots:q,slotProps:H,loading:Y,renderLoading:K,displayWeekNumber:X,yearsPerRow:Z,monthsPerRow:J,timezone:Q}=h,ee=(0,l.A)(h,Ok),{value:te,handleValueChange:ne,timezone:re}=oE({name:"DateCalendar",timezone:Q,value:g,defaultValue:m,onChange:x,valueManager:mC}),{view:ie,setView:oe,focusedView:ae,setFocusedView:se,goToNextView:le,setValueAndGoToNextView:ce}=sE({view:O,views:P,openTo:I,onChange:ne,onViewChange:f,autoFocus:p,focusedView:z,onFocusedViewChange:V}),{referenceDate:ue,calendarState:de,changeFocusedDay:he,changeMonth:pe,handleChangeMonth:fe,isDateDisabled:ge,onMonthSwitchingAnimationEnd:me}=i_({value:te,defaultCalendarMonth:w,referenceDate:y,reduceAnimations:C,onMonthChange:S,minDate:j,maxDate:D,shouldDisableDate:E,disablePast:b,disableFuture:v,timezone:re}),ye=L&&te||j,ve=L&&te||D,be=`${d}-grid-label`,we=null!==ae,xe=null!=(n=null!=(r=null==q?void 0:q.calendarHeader)?r:null==U?void 0:U.CalendarHeader)?n:_k,Ae=$C({elementType:xe,externalSlotProps:null!=(i=null==H?void 0:H.calendarHeader)?i:null==W?void 0:W.calendarHeader,additionalProps:{views:P,view:ie,currentMonth:de.currentMonth,onViewChange:oe,onMonthChange:(e,t)=>fe({newMonth:e,direction:t}),minDate:ye,maxDate:ve,disabled:L,disablePast:b,disableFuture:v,reduceAnimations:C,timezone:re,labelId:be,slots:q,slotProps:H},ownerState:h}),Se=(0,$e.A)((e=>{const t=a.startOfMonth(e),n=a.endOfMonth(e),r=ge(e)?MS({utils:a,date:e,minDate:a.isBefore(j,t)?t:j,maxDate:a.isAfter(D,n)?n:D,disablePast:b,disableFuture:v,isDateDisabled:ge,timezone:re}):e;r?(ce(r,"finish"),null==S||S(t)):(le(),pe(t)),he(r,!0)})),Ce=(0,$e.A)((e=>{const t=a.startOfYear(e),n=a.endOfYear(e),r=ge(e)?MS({utils:a,date:e,minDate:a.isBefore(j,t)?t:j,maxDate:a.isAfter(D,n)?n:D,disablePast:b,disableFuture:v,isDateDisabled:ge,timezone:re}):e;r?(ce(r,"finish"),null==A||A(r)):(le(),pe(t)),he(r,!0)})),Ee=(0,$e.A)((e=>ne(e?IS(a,e,null!=te?te:ue):e,"finish",ie)));o.useEffect((()=>{null!=te&&a.isValid(te)&&pe(te)}),[te]);const _e=h,ke=(e=>{const{classes:t}=e;return(0,u.A)({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},Tk,t)})(_e),Te={disablePast:b,disableFuture:v,maxDate:D,minDate:j},Oe={disableHighlightToday:N,readOnly:R,disabled:L,timezone:re,gridLabelId:be},Pe=o.useRef(ie);o.useEffect((()=>{Pe.current!==ie&&(ae===Pe.current&&se(ie,!0),Pe.current=ie)}),[ae,se,ie]);const Ie=o.useMemo((()=>[te]),[te]);return(0,F.jsxs)(Pk,(0,s.A)({ref:t,className:(0,c.A)(ke.root,M),ownerState:_e},ee,{children:[(0,F.jsx)(xe,(0,s.A)({},Ae)),(0,F.jsx)(Ik,{reduceAnimations:C,className:ke.viewTransitionContainer,transKey:ie,ownerState:_e,children:(0,F.jsxs)("div",{children:["year"===ie&&(0,F.jsx)(sk,(0,s.A)({},Te,Oe,{value:te,onChange:Ce,shouldDisableYear:T,hasFocus:we,onFocusedViewChange:e=>se("year",e),yearsPerRow:Z,referenceDate:ue})),"month"===ie&&(0,F.jsx)(Z_,(0,s.A)({},Te,Oe,{hasFocus:we,className:M,value:te,onChange:Se,shouldDisableMonth:_,onFocusedViewChange:e=>se("month",e),monthsPerRow:J,referenceDate:ue})),"day"===ie&&(0,F.jsx)(V_,(0,s.A)({},de,Te,Oe,{onMonthSwitchingAnimationEnd:me,onFocusedDayChange:he,reduceAnimations:C,selectedDays:Ie,onSelectedDaysChange:Ee,shouldDisableDate:E,shouldDisableMonth:_,shouldDisableYear:T,hasFocus:we,onFocusedViewChange:e=>se("day",e),showDaysOutsideCurrentMonth:B,fixedWeekNumber:$,dayOfWeekFormatter:G,displayWeekNumber:X,components:U,componentsProps:W,slots:q,slotProps:H,loading:Y,renderLoading:K}))]})})]}))})),Lk=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:i,value:o,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:d,disablePast:h,minDate:p,maxDate:f,shouldDisableDate:g,shouldDisableMonth:m,shouldDisableYear:y,reduceAnimations:v,onMonthChange:b,monthsPerRow:w,onYearChange:x,yearsPerRow:A,defaultCalendarMonth:S,components:C,componentsProps:E,slots:_,slotProps:k,loading:T,renderLoading:O,disableHighlightToday:P,readOnly:I,disabled:M,showDaysOutsideCurrentMonth:L,dayOfWeekFormatter:R,sx:j,autoFocus:D,fixedWeekNumber:N,displayWeekNumber:z,timezone:V})=>(0,F.jsx)(Mk,{view:e,onViewChange:t,views:n.filter(NS),focusedView:r&&NS(r)?r:null,onFocusedViewChange:i,value:o,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:d,disablePast:h,minDate:p,maxDate:f,shouldDisableDate:g,shouldDisableMonth:m,shouldDisableYear:y,reduceAnimations:v,onMonthChange:b,monthsPerRow:w,onYearChange:x,yearsPerRow:A,defaultCalendarMonth:S,components:C,componentsProps:E,slots:_,slotProps:k,loading:T,renderLoading:O,disableHighlightToday:P,readOnly:I,disabled:M,showDaysOutsideCurrentMonth:L,dayOfWeekFormatter:R,sx:j,autoFocus:D,fixedWeekNumber:N,displayWeekNumber:z,timezone:V}),Rk=o.forwardRef((function(e,t){var n,r,i,o;const a=EC(),l=SC(),c=DC(e,"MuiDesktopDatePicker"),u=(0,s.A)({day:Lk,month:Lk,year:Lk},c.viewRenderers),d=(0,s.A)({},c,{viewRenderers:u,format:zS(l,c,!1),yearsPerRow:null!=(n=c.yearsPerRow)?n:4,slots:(0,s.A)({openPickerIcon:LE,field:n_},c.slots),slotProps:(0,s.A)({},c.slotProps,{field:e=>{var n;return(0,s.A)({},kS(null==(n=c.slotProps)?void 0:n.field,e),HE(c),{ref:t})},toolbar:(0,s.A)({hidden:!0},null==(r=c.slotProps)?void 0:r.toolbar)})}),{renderPicker:h}=OE({props:d,valueManager:mC,valueType:"date",getOpenDialogAriaText:null!=(i=null==(o=d.localeText)?void 0:o.openDatePickerDialogue)?i:a.openDatePickerDialogue,validator:NC});return h()}));Rk.propTypes={autoFocus:_S().bool,className:_S().string,closeOnSelect:_S().bool,components:_S().object,componentsProps:_S().object,dayOfWeekFormatter:_S().func,defaultCalendarMonth:_S().any,defaultValue:_S().any,disabled:_S().bool,disableFuture:_S().bool,disableHighlightToday:_S().bool,disableOpenPicker:_S().bool,disablePast:_S().bool,displayWeekNumber:_S().bool,fixedWeekNumber:_S().number,format:_S().string,formatDensity:_S().oneOf(["dense","spacious"]),inputRef:TS,label:_S().node,loading:_S().bool,localeText:_S().object,maxDate:_S().any,minDate:_S().any,monthsPerRow:_S().oneOf([3,4]),name:_S().string,onAccept:_S().func,onChange:_S().func,onClose:_S().func,onError:_S().func,onMonthChange:_S().func,onOpen:_S().func,onSelectedSectionsChange:_S().func,onViewChange:_S().func,onYearChange:_S().func,open:_S().bool,openTo:_S().oneOf(["day","month","year"]),orientation:_S().oneOf(["landscape","portrait"]),readOnly:_S().bool,reduceAnimations:_S().bool,referenceDate:_S().any,renderLoading:_S().func,selectedSections:_S().oneOfType([_S().oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),_S().number,_S().shape({endIndex:_S().number.isRequired,startIndex:_S().number.isRequired})]),shouldDisableDate:_S().func,shouldDisableMonth:_S().func,shouldDisableYear:_S().func,showDaysOutsideCurrentMonth:_S().bool,slotProps:_S().object,slots:_S().object,sx:_S().oneOfType([_S().arrayOf(_S().oneOfType([_S().func,_S().object,_S().bool])),_S().func,_S().object]),timezone:_S().string,value:_S().any,view:_S().oneOf(["day","month","year"]),viewRenderers:_S().shape({day:_S().func,month:_S().func,year:_S().func}),views:_S().arrayOf(_S().oneOf(["day","month","year"]).isRequired),yearsPerRow:_S().oneOf([3,4])};const jk=(0,h.Ay)(bu)({[`& .${du.container}`]:{outline:0},[`& .${du.paper}`]:{outline:0,minWidth:mE}}),Fk=(0,h.Ay)($u)({"&:first-of-type":{padding:0}});function Dk(e){var t,n;const{children:r,onDismiss:i,open:o,slots:a,slotProps:l}=e,c=null!=(t=null==a?void 0:a.dialog)?t:jk,u=null!=(n=null==a?void 0:a.mobileTransition)?n:_i;return(0,F.jsx)(c,(0,s.A)({open:o,onClose:i},null==l?void 0:l.dialog,{TransitionComponent:u,TransitionProps:null==l?void 0:l.mobileTransition,PaperComponent:null==a?void 0:a.mobilePaper,PaperProps:null==l?void 0:l.mobilePaper,children:(0,F.jsx)(Fk,{children:r})}))}const Nk=["props","getOpenDialogAriaText"],zk=e=>{var t,n,r;let{props:i,getOpenDialogAriaText:a}=e,c=(0,l.A)(e,Nk);const{slots:u,slotProps:d,className:h,sx:p,format:f,formatDensity:g,timezone:m,name:y,label:v,inputRef:b,readOnly:w,disabled:x,localeText:A}=i,S=SC(),C=o.useRef(null),E=(0,ze.A)(),_=null!=(t=null==d||null==(n=d.toolbar)?void 0:n.hidden)&&t,{open:k,actions:T,layoutProps:O,renderCurrentView:P,fieldProps:I}=dE((0,s.A)({},c,{props:i,inputRef:C,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),M=u.field,L=$C({elementType:M,externalSlotProps:null==d?void 0:d.field,additionalProps:(0,s.A)({},I,_&&{id:E},!(x||w)&&{onClick:T.onOpen,onKeyDown:(R=T.onOpen,e=>{"Enter"!==e.key&&" "!==e.key||(R(e),e.preventDefault(),e.stopPropagation()),j&&j(e)})},{readOnly:null==w||w,disabled:x,className:h,sx:p,format:f,formatDensity:g,timezone:m,label:v,name:y}),ownerState:i});var R,j;L.inputProps=(0,s.A)({},L.inputProps,{"aria-label":a(I.value,S)});const D=(0,s.A)({textField:u.textField},L.slots),N=null!=(r=u.layout)?r:EE,z=(0,q.A)(C,L.inputRef,b);let V=E;_&&(V=v?`${E}-label`:void 0);const B=(0,s.A)({},d,{toolbar:(0,s.A)({},null==d?void 0:d.toolbar,{titleId:E}),mobilePaper:(0,s.A)({"aria-labelledby":V},null==d?void 0:d.mobilePaper)});return{renderPicker:()=>(0,F.jsxs)(vC.$,{localeText:A,children:[(0,F.jsx)(M,(0,s.A)({},L,{slots:D,slotProps:B,inputRef:z})),(0,F.jsx)(Dk,(0,s.A)({},T,{open:k,slots:u,slotProps:B,children:(0,F.jsx)(N,(0,s.A)({},O,null==B?void 0:B.layout,{slots:u,slotProps:B,children:P()}))}))]})}},Vk=o.forwardRef((function(e,t){var n,r,i;const o=EC(),a=SC(),l=DC(e,"MuiMobileDatePicker"),c=(0,s.A)({day:Lk,month:Lk,year:Lk},l.viewRenderers),u=(0,s.A)({},l,{viewRenderers:c,format:zS(a,l,!1),slots:(0,s.A)({field:n_},l.slots),slotProps:(0,s.A)({},l.slotProps,{field:e=>{var n;return(0,s.A)({},kS(null==(n=l.slotProps)?void 0:n.field,e),HE(l),{ref:t})},toolbar:(0,s.A)({hidden:!1},null==(n=l.slotProps)?void 0:n.toolbar)})}),{renderPicker:d}=zk({props:u,valueManager:mC,valueType:"date",getOpenDialogAriaText:null!=(r=null==(i=u.localeText)?void 0:i.openDatePickerDialogue)?r:o.openDatePickerDialogue,validator:NC});return d()}));Vk.propTypes={autoFocus:_S().bool,className:_S().string,closeOnSelect:_S().bool,components:_S().object,componentsProps:_S().object,dayOfWeekFormatter:_S().func,defaultCalendarMonth:_S().any,defaultValue:_S().any,disabled:_S().bool,disableFuture:_S().bool,disableHighlightToday:_S().bool,disableOpenPicker:_S().bool,disablePast:_S().bool,displayWeekNumber:_S().bool,fixedWeekNumber:_S().number,format:_S().string,formatDensity:_S().oneOf(["dense","spacious"]),inputRef:TS,label:_S().node,loading:_S().bool,localeText:_S().object,maxDate:_S().any,minDate:_S().any,monthsPerRow:_S().oneOf([3,4]),name:_S().string,onAccept:_S().func,onChange:_S().func,onClose:_S().func,onError:_S().func,onMonthChange:_S().func,onOpen:_S().func,onSelectedSectionsChange:_S().func,onViewChange:_S().func,onYearChange:_S().func,open:_S().bool,openTo:_S().oneOf(["day","month","year"]),orientation:_S().oneOf(["landscape","portrait"]),readOnly:_S().bool,reduceAnimations:_S().bool,referenceDate:_S().any,renderLoading:_S().func,selectedSections:_S().oneOfType([_S().oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),_S().number,_S().shape({endIndex:_S().number.isRequired,startIndex:_S().number.isRequired})]),shouldDisableDate:_S().func,shouldDisableMonth:_S().func,shouldDisableYear:_S().func,showDaysOutsideCurrentMonth:_S().bool,slotProps:_S().object,slots:_S().object,sx:_S().oneOfType([_S().arrayOf(_S().oneOfType([_S().func,_S().object,_S().bool])),_S().func,_S().object]),timezone:_S().string,value:_S().any,view:_S().oneOf(["day","month","year"]),viewRenderers:_S().shape({day:_S().func,month:_S().func,year:_S().func}),views:_S().arrayOf(_S().oneOf(["day","month","year"]).isRequired),yearsPerRow:_S().oneOf([3,4])};const Bk=["desktopModeMediaQuery"],$k=o.forwardRef((function(e,t){const n=(0,k.A)({props:e,name:"MuiDatePicker"}),{desktopModeMediaQuery:r=qC}=n,i=(0,l.A)(n,Bk);return(0,ei.A)(r,{defaultMatches:!0})?(0,F.jsx)(Rk,(0,s.A)({ref:t},i)):(0,F.jsx)(Vk,(0,s.A)({ref:t},i))})),Gk=({adapter:e,value:t,props:n})=>{if(null===t)return null;const{minTime:r,maxTime:i,minutesStep:o,shouldDisableClock:a,shouldDisableTime:s,disableIgnoringDatePartForTimeValidation:l=!1,disablePast:c,disableFuture:u,timezone:d}=n,h=e.utils.dateWithTimezone(void 0,d),p=YS(l,e.utils);switch(!0){case!e.utils.isValid(t):return"invalidDate";case Boolean(r&&p(r,t)):return"minTime";case Boolean(i&&p(t,i)):return"maxTime";case Boolean(u&&e.utils.isAfter(t,h)):return"disableFuture";case Boolean(c&&e.utils.isBefore(t,h)):return"disablePast";case Boolean(s&&s(t,"hours")):return"shouldDisableTime-hours";case Boolean(s&&s(t,"minutes")):return"shouldDisableTime-minutes";case Boolean(s&&s(t,"seconds")):return"shouldDisableTime-seconds";case Boolean(a&&a(e.utils.getHours(t),"hours")):return"shouldDisableClock-hours";case Boolean(a&&a(e.utils.getMinutes(t),"minutes")):return"shouldDisableClock-minutes";case Boolean(a&&a(e.utils.getSeconds(t),"seconds")):return"shouldDisableClock-seconds";case Boolean(o&&e.utils.getMinutes(t)%o!=0):return"minutesStep";default:return null}},Uk=({props:e,value:t,adapter:n})=>{const r=NC({adapter:n,value:t,props:e});return null!==r?r:Gk({adapter:n,value:t,props:e})},Wk=({props:e,inputRef:t})=>{const n=(e=>{var t,n,r,i,o,a,l,c;const u=SC(),d=CC(),h=(null!=(t=e.ampm)?t:u.is12HourCycleInCurrentLocale())?u.formats.keyboardDateTime12h:u.formats.keyboardDateTime24h;return(0,s.A)({},e,{disablePast:null!=(n=e.disablePast)&&n,disableFuture:null!=(r=e.disableFuture)&&r,format:null!=(i=e.format)?i:h,disableIgnoringDatePartForTimeValidation:Boolean(e.minDateTime||e.maxDateTime),minDate:LS(u,null!=(o=e.minDateTime)?o:e.minDate,d.minDate),maxDate:LS(u,null!=(a=e.maxDateTime)?a:e.maxDate,d.maxDate),minTime:null!=(l=e.minDateTime)?l:e.minTime,maxTime:null!=(c=e.maxDateTime)?c:e.maxTime})})(e),{forwardedProps:r,internalProps:i}=KE(n,"date-time");return $E({inputRef:t,forwardedProps:r,internalProps:i,valueManager:mC,fieldValueManager:yC,validator:Uk,valueType:"date-time"})},qk=["components","componentsProps","slots","slotProps","InputProps","inputProps"],Hk=["inputRef"],Yk=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],Kk=o.forwardRef((function(e,t){var n,r,i;const o=(0,k.A)({props:e,name:"MuiDateTimeField"}),{components:a,componentsProps:c,slots:u,slotProps:d,InputProps:h,inputProps:p}=o,f=(0,l.A)(o,qk),g=o,m=null!=(n=null!=(r=null==u?void 0:u.textField)?r:null==a?void 0:a.TextField)?n:oS,y=$C({elementType:m,externalSlotProps:null!=(i=null==d?void 0:d.textField)?i:null==c?void 0:c.textField,externalForwardedProps:f,ownerState:g}),{inputRef:v}=y,b=(0,l.A)(y,Hk);b.inputProps=(0,s.A)({},p,b.inputProps),b.InputProps=(0,s.A)({},h,b.InputProps);const w=Wk({props:b,inputRef:v}),{ref:x,onPaste:A,onKeyDown:S,inputMode:C,readOnly:E,clearable:_,onClear:T}=w,O=(0,l.A)(w,Yk),{InputProps:P,fieldProps:I}=JE({onClear:T,clearable:_,fieldProps:O,InputProps:O.InputProps,slots:u,slotProps:d,components:a,componentsProps:c});return(0,F.jsx)(m,(0,s.A)({ref:t},I,{InputProps:(0,s.A)({},P,{readOnly:E}),inputProps:(0,s.A)({},O.inputProps,{inputMode:C,onPaste:A,onKeyDown:S,ref:x})}))}));function Xk(e){return(0,R.Ay)("MuiTab",e)}const Zk=(0,L.A)("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),Jk=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],Qk=(0,h.Ay)(ae.A,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${(0,Ce.A)(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})((({theme:e,ownerState:t})=>(0,s.A)({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:"top"===t.iconPosition||"bottom"===t.iconPosition?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${Zk.iconWrapper}`]:(0,s.A)({},"top"===t.iconPosition&&{marginBottom:6},"bottom"===t.iconPosition&&{marginTop:6},"start"===t.iconPosition&&{marginRight:e.spacing(1)},"end"===t.iconPosition&&{marginLeft:e.spacing(1)})},"inherit"===t.textColor&&{color:"inherit",opacity:.6,[`&.${Zk.selected}`]:{opacity:1},[`&.${Zk.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},"primary"===t.textColor&&{color:(e.vars||e).palette.text.secondary,[`&.${Zk.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Zk.disabled}`]:{color:(e.vars||e).palette.text.disabled}},"secondary"===t.textColor&&{color:(e.vars||e).palette.text.secondary,[`&.${Zk.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Zk.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)}))),eT=o.forwardRef((function(e,t){const n=(0,k.A)({props:e,name:"MuiTab"}),{className:r,disabled:i=!1,disableFocusRipple:a=!1,fullWidth:d,icon:h,iconPosition:p="top",indicator:f,label:g,onChange:m,onClick:y,onFocus:v,selected:b,selectionFollowsFocus:w,textColor:x="inherit",value:A,wrapped:S=!1}=n,C=(0,l.A)(n,Jk),E=(0,s.A)({},n,{disabled:i,disableFocusRipple:a,selected:b,icon:!!h,iconPosition:p,label:!!g,fullWidth:d,textColor:x,wrapped:S}),_=(e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:i,icon:o,label:a,selected:s,disabled:l}=e,c={root:["root",o&&a&&"labelIcon",`textColor${(0,Ce.A)(n)}`,r&&"fullWidth",i&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return(0,u.A)(c,Xk,t)})(E),T=h&&g&&o.isValidElement(h)?o.cloneElement(h,{className:(0,c.A)(_.iconWrapper,h.props.className)}):h;return(0,F.jsxs)(Qk,(0,s.A)({focusRipple:!a,className:(0,c.A)(_.root,r),ref:t,role:"tab","aria-selected":b,disabled:i,onClick:e=>{!b&&m&&m(e,A),y&&y(e)},onFocus:e=>{w&&!b&&m&&m(e,A),v&&v(e)},ownerState:E,tabIndex:b?0:-1},C,{children:["top"===p||"start"===p?(0,F.jsxs)(o.Fragment,{children:[T,g]}):(0,F.jsxs)(o.Fragment,{children:[g,T]}),f]}))}));let tT;function nT(){if(tT)return tT;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),tT="reverse",e.scrollLeft>0?tT="default":(e.scrollLeft=1,0===e.scrollLeft&&(tT="negative")),document.body.removeChild(e),tT}function rT(e,t){const n=e.scrollLeft;if("rtl"!==t)return n;switch(nT()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}function iT(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}const oT=["onChange"],aT={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};const sT=(0,Wn.A)((0,F.jsx)("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),lT=(0,Wn.A)((0,F.jsx)("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function cT(e){return(0,R.Ay)("MuiTabScrollButton",e)}const uT=(0,L.A)("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),dT=["className","slots","slotProps","direction","orientation","disabled"],hT=(0,h.Ay)(ae.A,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})((({ownerState:e})=>(0,s.A)({width:40,flexShrink:0,opacity:.8,[`&.${uT.disabled}`]:{opacity:0}},"vertical"===e.orientation&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}}))),pT=o.forwardRef((function(e,t){var n,r;const i=(0,k.A)({props:e,name:"MuiTabScrollButton"}),{className:o,slots:a={},slotProps:d={},direction:h}=i,p=(0,l.A)(i,dT),f=(0,ti.I)(),g=(0,s.A)({isRtl:f},i),m=(e=>{const{classes:t,orientation:n,disabled:r}=e,i={root:["root",n,r&&"disabled"]};return(0,u.A)(i,cT,t)})(g),y=null!=(n=a.StartScrollButtonIcon)?n:sT,v=null!=(r=a.EndScrollButtonIcon)?r:lT,b=(0,bn.Q)({elementType:y,externalSlotProps:d.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:g}),w=(0,bn.Q)({elementType:v,externalSlotProps:d.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:g});return(0,F.jsx)(hT,(0,s.A)({component:"div",className:(0,c.A)(m.root,o),ref:t,role:null,ownerState:g,tabIndex:null},p,{children:"left"===h?(0,F.jsx)(y,(0,s.A)({},b)):(0,F.jsx)(v,(0,s.A)({},w))}))}));function fT(e){return(0,R.Ay)("MuiTabs",e)}const gT=(0,L.A)("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),mT=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],yT=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,vT=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,bT=(e,t,n)=>{let r=!1,i=n(e,t);for(;i;){if(i===e.firstChild){if(r)return;r=!0}const t=i.disabled||"true"===i.getAttribute("aria-disabled");if(i.hasAttribute("tabindex")&&!t)return void i.focus();i=n(e,i)}},wT=(0,h.Ay)("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${gT.scrollButtons}`]:t.scrollButtons},{[`& .${gT.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})((({ownerState:e,theme:t})=>(0,s.A)({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${gT.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}}))),xT=(0,h.Ay)("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})((({ownerState:e})=>(0,s.A)({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"}))),AT=(0,h.Ay)("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})((({ownerState:e})=>(0,s.A)({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"}))),ST=(0,h.Ay)("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})((({ownerState:e,theme:t})=>(0,s.A)({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},"primary"===e.indicatorColor&&{backgroundColor:(t.vars||t).palette.primary.main},"secondary"===e.indicatorColor&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0}))),CT=(0,h.Ay)((function(e){const{onChange:t}=e,n=(0,l.A)(e,oT),r=o.useRef(),i=o.useRef(null),a=()=>{r.current=i.current.offsetHeight-i.current.clientHeight};return(0,Ki.A)((()=>{const e=(0,fs.A)((()=>{const e=r.current;a(),e!==r.current&&t(r.current)})),n=(0,gs.A)(i.current);return n.addEventListener("resize",e),()=>{e.clear(),n.removeEventListener("resize",e)}}),[t]),o.useEffect((()=>{a(),t(r.current)}),[t]),(0,F.jsx)("div",(0,s.A)({style:aT,ref:i},n))}))({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),ET={};const _T=o.forwardRef((function(e,t){const n=(0,k.A)({props:e,name:"MuiTabs"}),r=(0,I.A)(),i=(0,ti.I)(),{"aria-label":a,"aria-labelledby":d,action:h,centered:p=!1,children:f,className:g,component:m="div",allowScrollButtonsMobile:y=!1,indicatorColor:v="primary",onChange:b,orientation:w="horizontal",ScrollButtonComponent:x=pT,scrollButtons:A="auto",selectionFollowsFocus:S,slots:C={},slotProps:E={},TabIndicatorProps:_={},TabScrollButtonProps:T={},textColor:O="primary",value:P,variant:M="standard",visibleScrollbar:L=!1}=n,R=(0,l.A)(n,mT),j="scrollable"===M,D="vertical"===w,N=D?"scrollTop":"scrollLeft",z=D?"top":"left",V=D?"bottom":"right",B=D?"clientHeight":"clientWidth",$=D?"height":"width",G=(0,s.A)({},n,{component:m,allowScrollButtonsMobile:y,indicatorColor:v,orientation:w,vertical:D,scrollButtons:A,textColor:O,variant:M,visibleScrollbar:L,fixed:!j,hideScrollbar:j&&!L,scrollableX:j&&!D,scrollableY:j&&D,centered:p&&!j,scrollButtonsHideMobile:!y}),U=(e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:i,scrollableY:o,centered:a,scrollButtonsHideMobile:s,classes:l}=e,c={root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",i&&"scrollableX",o&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[i&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]};return(0,u.A)(c,fT,l)})(G),W=(0,bn.Q)({elementType:C.StartScrollButtonIcon,externalSlotProps:E.startScrollButtonIcon,ownerState:G}),q=(0,bn.Q)({elementType:C.EndScrollButtonIcon,externalSlotProps:E.endScrollButtonIcon,ownerState:G});const[H,Y]=o.useState(!1),[K,X]=o.useState(ET),[Z,J]=o.useState(!1),[Q,ee]=o.useState(!1),[te,ne]=o.useState(!1),[re,ie]=o.useState({overflow:"hidden",scrollbarWidth:0}),oe=new Map,ae=o.useRef(null),se=o.useRef(null),le=()=>{const e=ae.current;let t,n;if(e){const n=e.getBoundingClientRect();t={clientWidth:e.clientWidth,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop,scrollLeftNormalized:rT(e,i?"rtl":"ltr"),scrollWidth:e.scrollWidth,top:n.top,bottom:n.bottom,left:n.left,right:n.right}}if(e&&!1!==P){const e=se.current.children;if(e.length>0){const t=e[oe.get(P)];0,n=t?t.getBoundingClientRect():null}}return{tabsMeta:t,tabMeta:n}},ce=(0,li.A)((()=>{const{tabsMeta:e,tabMeta:t}=le();let n,r=0;if(D)n="top",t&&e&&(r=t.top-e.top+e.scrollTop);else if(n=i?"right":"left",t&&e){const o=i?e.scrollLeftNormalized+e.clientWidth-e.scrollWidth:e.scrollLeft;r=(i?-1:1)*(t[n]-e[n]+o)}const o={[n]:r,[$]:t?t[$]:0};if(isNaN(K[n])||isNaN(K[$]))X(o);else{const e=Math.abs(K[n]-o[n]),t=Math.abs(K[$]-o[$]);(e>=1||t>=1)&&X(o)}})),ue=(e,{animation:t=!0}={})=>{t?function(e,t,n,r={},i=(()=>{})){const{ease:o=iT,duration:a=300}=r;let s=null;const l=t[e];let c=!1;const u=()=>{c=!0},d=r=>{if(c)return void i(new Error("Animation cancelled"));null===s&&(s=r);const u=Math.min(1,(r-s)/a);t[e]=o(u)*(n-l)+l,u>=1?requestAnimationFrame((()=>{i(null)})):requestAnimationFrame(d)};l===n?i(new Error("Element already at target position")):requestAnimationFrame(d)}(N,ae.current,e,{duration:r.transitions.duration.standard}):ae.current[N]=e},de=e=>{let t=ae.current[N];D?t+=e:(t+=e*(i?-1:1),t*=i&&"reverse"===nT()?-1:1),ue(t)},he=()=>{const e=ae.current[B];let t=0;const n=Array.from(se.current.children);for(let r=0;re){0===r&&(t=e);break}t+=i[B]}return t},pe=()=>{de(-1*he())},fe=()=>{de(he())},ge=o.useCallback((e=>{ie({overflow:null,scrollbarWidth:e})}),[]),me=(0,li.A)((e=>{const{tabsMeta:t,tabMeta:n}=le();if(n&&t)if(n[z]t[V]){const r=t[N]+(n[V]-t[V]);ue(r,{animation:e})}})),ye=(0,li.A)((()=>{j&&!1!==A&&ne(!te)}));o.useEffect((()=>{const e=(0,fs.A)((()=>{ae.current&&ce()}));let t;const n=n=>{n.forEach((e=>{e.removedNodes.forEach((e=>{var n;null==(n=t)||n.unobserve(e)})),e.addedNodes.forEach((e=>{var n;null==(n=t)||n.observe(e)}))})),e(),ye()},r=(0,gs.A)(ae.current);let i;return r.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(e),Array.from(se.current.children).forEach((e=>{t.observe(e)}))),"undefined"!=typeof MutationObserver&&(i=new MutationObserver(n),i.observe(se.current,{childList:!0})),()=>{var n,o;e.clear(),r.removeEventListener("resize",e),null==(n=i)||n.disconnect(),null==(o=t)||o.disconnect()}}),[ce,ye]),o.useEffect((()=>{const e=Array.from(se.current.children),t=e.length;if("undefined"!=typeof IntersectionObserver&&t>0&&j&&!1!==A){const n=e[0],r=e[t-1],i={root:ae.current,threshold:.99},o=new IntersectionObserver((e=>{J(!e[0].isIntersecting)}),i);o.observe(n);const a=new IntersectionObserver((e=>{ee(!e[0].isIntersecting)}),i);return a.observe(r),()=>{o.disconnect(),a.disconnect()}}}),[j,A,te,null==f?void 0:f.length]),o.useEffect((()=>{Y(!0)}),[]),o.useEffect((()=>{ce()})),o.useEffect((()=>{me(ET!==K)}),[me,K]),o.useImperativeHandle(h,(()=>({updateIndicator:ce,updateScrollButtons:ye})),[ce,ye]);const ve=(0,F.jsx)(ST,(0,s.A)({},_,{className:(0,c.A)(U.indicator,_.className),ownerState:G,style:(0,s.A)({},K,_.style)}));let be=0;const we=o.Children.map(f,(e=>{if(!o.isValidElement(e))return null;const t=void 0===e.props.value?be:e.props.value;oe.set(t,be);const n=t===P;return be+=1,o.cloneElement(e,(0,s.A)({fullWidth:"fullWidth"===M,indicator:n&&!H&&ve,selected:n,selectionFollowsFocus:S,onChange:b,textColor:O,value:t},1!==be||!1!==P||e.props.tabIndex?{}:{tabIndex:0}))})),xe=(()=>{const e={};e.scrollbarSizeListener=j?(0,F.jsx)(CT,{onChange:ge,className:(0,c.A)(U.scrollableX,U.hideScrollbar)}):null;const t=j&&("auto"===A&&(Z||Q)||!0===A);return e.scrollButtonStart=t?(0,F.jsx)(x,(0,s.A)({slots:{StartScrollButtonIcon:C.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:W},orientation:w,direction:i?"right":"left",onClick:pe,disabled:!Z},T,{className:(0,c.A)(U.scrollButtons,T.className)})):null,e.scrollButtonEnd=t?(0,F.jsx)(x,(0,s.A)({slots:{EndScrollButtonIcon:C.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:q},orientation:w,direction:i?"left":"right",onClick:fe,disabled:!Q},T,{className:(0,c.A)(U.scrollButtons,T.className)})):null,e})();return(0,F.jsxs)(wT,(0,s.A)({className:(0,c.A)(U.root,g),ownerState:G,ref:t,as:m},R,{children:[xe.scrollButtonStart,xe.scrollbarSizeListener,(0,F.jsxs)(xT,{className:U.scroller,ownerState:G,style:{overflow:re.overflow,[D?"margin"+(i?"Left":"Right"):"marginBottom"]:L?void 0:-re.scrollbarWidth},ref:ae,children:[(0,F.jsx)(AT,{"aria-label":a,"aria-labelledby":d,"aria-orientation":"vertical"===w?"vertical":null,className:U.flexContainer,ownerState:G,onKeyDown:e=>{const t=se.current,n=(0,Bi.A)(t).activeElement;if("tab"!==n.getAttribute("role"))return;let r="horizontal"===w?"ArrowLeft":"ArrowUp",o="horizontal"===w?"ArrowRight":"ArrowDown";switch("horizontal"===w&&i&&(r="ArrowRight",o="ArrowLeft"),e.key){case r:e.preventDefault(),bT(t,n,vT);break;case o:e.preventDefault(),bT(t,n,yT);break;case"Home":e.preventDefault(),bT(t,null,yT);break;case"End":e.preventDefault(),bT(t,null,vT)}},ref:se,role:"tablist",children:we}),H&&ve]}),xe.scrollButtonEnd]}))})),kT=_T;function TT(e){return(0,R.Ay)("MuiDateTimePickerTabs",e)}(0,L.A)("MuiDateTimePickerTabs",["root"]);const OT=e=>NS(e)?"date":"time",PT=(0,h.Ay)(kT,{name:"MuiDateTimePickerTabs",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({boxShadow:`0 -1px 0 0 inset ${(e.vars||e).palette.divider}`,"&:last-child":{boxShadow:`0 1px 0 0 inset ${(e.vars||e).palette.divider}`,[`& .${gT.indicator}`]:{bottom:"auto",top:0}}}))),IT=function(e){const t=(0,k.A)({props:e,name:"MuiDateTimePickerTabs"}),{dateIcon:n=(0,F.jsx)(jE,{}),onViewChange:r,timeIcon:i=(0,F.jsx)(FE,{}),view:a,hidden:s="undefined"==typeof window||window.innerHeight<667,className:l,sx:d}=t,h=EC(),p=(e=>{const{classes:t}=e;return(0,u.A)({root:["root"]},TT,t)})(t);return s?null:(0,F.jsxs)(PT,{ownerState:t,variant:"fullWidth",value:OT(a),onChange:(e,t)=>{r("date"===t?"day":"hours")},className:(0,c.A)(l,p.root),sx:d,children:[(0,F.jsx)(eT,{value:"date","aria-label":h.dateTableLabel,icon:(0,F.jsx)(o.Fragment,{children:n})}),(0,F.jsx)(eT,{value:"time","aria-label":h.timeTableLabel,icon:(0,F.jsx)(o.Fragment,{children:i})})]})};function MT(e){return(0,R.Ay)("MuiPickersToolbarText",e)}const LT=(0,L.A)("MuiPickersToolbarText",["root","selected"]),RT=["className","selected","value"],jT=(0,h.Ay)(Fo.A,{name:"MuiPickersToolbarText",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${LT.selected}`]:t.selected}]})((({theme:e})=>({transition:e.transitions.create("color"),color:(e.vars||e).palette.text.secondary,[`&.${LT.selected}`]:{color:(e.vars||e).palette.text.primary}}))),FT=o.forwardRef((function(e,t){const n=(0,k.A)({props:e,name:"MuiPickersToolbarText"}),{className:r,value:i}=n,o=(0,l.A)(n,RT),a=(e=>{const{classes:t,selected:n}=e,r={root:["root",n&&"selected"]};return(0,u.A)(r,MT,t)})(n);return(0,F.jsx)(jT,(0,s.A)({ref:t,className:(0,c.A)(r,a.root),component:"span"},o,{children:i}))})),DT=["align","className","selected","typographyClassName","value","variant","width"],NT=(0,h.Ay)(Ni,{name:"MuiPickersToolbarButton",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,minWidth:16,textTransform:"none"}),zT=o.forwardRef((function(e,t){const n=(0,k.A)({props:e,name:"MuiPickersToolbarButton"}),{align:r,className:i,selected:o,typographyClassName:a,value:d,variant:h,width:p}=n,f=(0,l.A)(n,DT),g=(e=>{const{classes:t}=e;return(0,u.A)({root:["root"]},kC,t)})(n);return(0,F.jsx)(NT,(0,s.A)({variant:"text",ref:t,className:(0,c.A)(i,g.root)},p?{sx:{width:p}}:{},f,{children:(0,F.jsx)(FT,{align:r,className:a,variant:h,value:d,selected:o})}))}));function VT(e){return(0,R.Ay)("MuiDateTimePickerToolbar",e)}const BT=(0,L.A)("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","timeDigitsContainer","separator","timeLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),$T=["ampm","ampmInClock","value","onChange","view","isLandscape","onViewChange","toolbarFormat","toolbarPlaceholder","views","disabled","readOnly","toolbarVariant"],GT=e=>{const{classes:t,theme:n,isLandscape:r}=e,i={root:["root"],dateContainer:["dateContainer"],timeContainer:["timeContainer","rtl"===n.direction&&"timeLabelReverse"],timeDigitsContainer:["timeDigitsContainer","rtl"===n.direction&&"timeLabelReverse"],separator:["separator"],ampmSelection:["ampmSelection",r&&"ampmLandscape"],ampmLabel:["ampmLabel"]};return(0,u.A)(i,VT,t)},UT=(0,h.Ay)(PC,{name:"MuiDateTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e,ownerState:t})=>({paddingLeft:"desktop"!==t.toolbarVariant||t.isLandscape?16:24,paddingRight:"desktop"!==t.toolbarVariant||t.isLandscape?16:0,borderBottom:"desktop"===t.toolbarVariant?`1px solid ${(e.vars||e).palette.divider}`:void 0,borderRight:"desktop"===t.toolbarVariant&&t.isLandscape?`1px solid ${(e.vars||e).palette.divider}`:void 0,justifyContent:"space-around",position:"relative"})));UT.propTypes={as:_S().elementType,classes:_S().object,className:_S().string,isLandscape:_S().bool.isRequired,isMobileKeyboardViewOpen:_S().bool,landscapeDirection:_S().oneOf(["column","row"]),ownerState:_S().object.isRequired,sx:_S().oneOfType([_S().arrayOf(_S().oneOfType([_S().func,_S().object,_S().bool])),_S().func,_S().object]),toggleMobileKeyboardView:_S().func,toolbarTitle:_S().node,viewType:_S().oneOf(["date","time"])};const WT=(0,h.Ay)("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer",overridesResolver:(e,t)=>t.dateContainer})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),qT=(0,h.Ay)("div",{name:"MuiDateTimePickerToolbar",slot:"TimeContainer",overridesResolver:(e,t)=>t.timeContainer})((({theme:e,ownerState:t})=>{const n=t.isLandscape&&"desktop"!==t.toolbarVariant?"column":"row";return(0,s.A)({display:"flex",flexDirection:n},"desktop"===t.toolbarVariant&&(0,s.A)({},!t.isLandscape&&{gap:9,marginRight:4,alignSelf:"flex-end"}),"rtl"===e.direction&&{flexDirection:`${n}-reverse`})})),HT=(0,h.Ay)("div",{name:"MuiDateTimePickerToolbar",slot:"TimeDigitsContainer",overridesResolver:(e,t)=>t.timeDigitsContainer})((({theme:e,ownerState:t})=>(0,s.A)({display:"flex"},"desktop"===t.toolbarVariant&&{gap:1.5},"rtl"===e.direction&&{flexDirection:"row-reverse"})));qT.propTypes={as:_S().elementType,ownerState:_S().object.isRequired,sx:_S().oneOfType([_S().arrayOf(_S().oneOfType([_S().func,_S().object,_S().bool])),_S().func,_S().object])};const YT=(0,h.Ay)(FT,{name:"MuiDateTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})((({ownerState:e})=>({margin:"desktop"===e.toolbarVariant?0:"0 4px 0 2px",cursor:"default"}))),KT=(0,h.Ay)("div",{name:"MuiDateTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${BT.ampmLabel}`]:t.ampmLabel},{[`&.${BT.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})((({ownerState:e})=>(0,s.A)({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",width:"100%"},{[`& .${BT.ampmLabel}`]:{fontSize:17}})));function XT(e){const t=(0,k.A)({props:e,name:"MuiDateTimePickerToolbar"}),{ampm:n,ampmInClock:r,value:i,onChange:a,view:c,isLandscape:u,onViewChange:d,toolbarFormat:h,toolbarPlaceholder:p="––",views:f,disabled:g,readOnly:m,toolbarVariant:y="mobile"}=t,v=(0,l.A)(t,$T),b=t,w=SC(),{meridiemMode:x,handleMeridiemChange:A}=mk(i,n,a),S=Boolean(n&&!r),C="desktop"===y,E=EC(),_=(0,I.A)(),T=GT((0,s.A)({},b,{theme:_})),O=o.useMemo((()=>i?h?w.formatByString(i,h):w.format(i,"shortDate"):p),[i,h,p,w]);return(0,F.jsxs)(UT,(0,s.A)({toolbarTitle:E.dateTimePickerToolbarTitle,isLandscape:u,className:T.root},v,{ownerState:b,children:[(0,F.jsxs)(WT,{className:T.dateContainer,ownerState:b,children:[f.includes("year")&&(0,F.jsx)(zT,{tabIndex:-1,variant:"subtitle1",onClick:()=>d("year"),selected:"year"===c,value:i?w.format(i,"year"):"–"}),f.includes("day")&&(0,F.jsx)(zT,{tabIndex:-1,variant:C?"h5":"h4",onClick:()=>d("day"),selected:"day"===c,value:O})]}),(0,F.jsxs)(qT,{className:T.timeContainer,ownerState:b,children:[(0,F.jsxs)(HT,{className:T.timeDigitsContainer,ownerState:b,children:[f.includes("hours")&&(0,F.jsx)(zT,{variant:C?"h5":"h3",width:C&&!u?vE:void 0,onClick:()=>d("hours"),selected:"hours"===c,value:i?(P=i,n?w.format(P,"hours12h"):w.format(P,"hours24h")):"--"}),f.includes("minutes")&&(0,F.jsxs)(o.Fragment,{children:[(0,F.jsx)(YT,{variant:C?"h5":"h3",value:":",className:T.separator,ownerState:b}),(0,F.jsx)(zT,{variant:C?"h5":"h3",width:C&&!u?vE:void 0,onClick:()=>d("minutes"),selected:"minutes"===c,value:i?w.format(i,"minutes"):"--"})]}),f.includes("seconds")&&(0,F.jsxs)(o.Fragment,{children:[(0,F.jsx)(YT,{variant:C?"h5":"h3",value:":",className:T.separator,ownerState:b}),(0,F.jsx)(zT,{variant:C?"h5":"h3",width:C&&!u?vE:void 0,onClick:()=>d("seconds"),selected:"seconds"===c,value:i?w.format(i,"seconds"):"--"})]})]}),S&&!C&&(0,F.jsxs)(KT,{className:T.ampmSelection,ownerState:b,children:[(0,F.jsx)(zT,{variant:"subtitle2",selected:"am"===x,typographyClassName:T.ampmLabel,value:FS(w,"am"),onClick:m?void 0:()=>A("am"),disabled:g}),(0,F.jsx)(zT,{variant:"subtitle2",selected:"pm"===x,typographyClassName:T.ampmLabel,value:FS(w,"pm"),onClick:m?void 0:()=>A("pm"),disabled:g})]}),n&&C&&(0,F.jsx)(zT,{variant:"h5",onClick:()=>d("meridiem"),selected:"meridiem"===c,value:i&&x?FS(w,x):"--",width:vE})]})]}));var P}function ZT(e,t){var n,r,i,a,l,c,u,d,h,p,f;const g=SC(),m=CC(),y=(0,k.A)({props:e,name:t}),v=null!=(n=y.ampm)?n:g.is12HourCycleInCurrentLocale(),b=o.useMemo((()=>{var e;return null==(null==(e=y.localeText)?void 0:e.toolbarTitle)?y.localeText:(0,s.A)({},y.localeText,{dateTimePickerToolbarTitle:y.localeText.toolbarTitle})}),[y.localeText]),w=null!=(r=y.slots)?r:FC(y.components),x=null!=(i=y.slotProps)?i:y.componentsProps;return(0,s.A)({},y,PS({views:y.views,openTo:y.openTo,defaultViews:["year","day","hours","minutes"],defaultOpenTo:"day"}),{ampm:v,localeText:b,orientation:null!=(a=y.orientation)?a:"portrait",disableIgnoringDatePartForTimeValidation:null!=(l=y.disableIgnoringDatePartForTimeValidation)?l:Boolean(y.minDateTime||y.maxDateTime||y.disablePast||y.disableFuture),disableFuture:null!=(c=y.disableFuture)&&c,disablePast:null!=(u=y.disablePast)&&u,minDate:LS(g,null!=(d=y.minDateTime)?d:y.minDate,m.minDate),maxDate:LS(g,null!=(h=y.maxDateTime)?h:y.maxDate,m.maxDate),minTime:null!=(p=y.minDateTime)?p:y.minTime,maxTime:null!=(f=y.maxDateTime)?f:y.maxTime,slots:(0,s.A)({toolbar:XT,tabs:IT},w),slotProps:(0,s.A)({},x,{toolbar:(0,s.A)({ampm:v},null==x?void 0:x.toolbar)})})}var JT=n(66865);function QT(e){return(0,R.Ay)("MuiMultiSectionDigitalClockSection",e)}const eO=(0,L.A)("MuiMultiSectionDigitalClockSection",["root","item"]),tO=(0,h.Ay)("div")({display:"flex",margin:"0 auto"});function nO(e){return(0,R.Ay)("MuiTimeClock",e)}(0,L.A)("MuiTimeClock",["root","arrowSwitcher"]);const rO=220,iO=36,oO={x:rO/2,y:rO/2},aO=oO.x-oO.x,sO=0-oO.y,lO=(e,t,n)=>{const r=t-oO.x,i=n-oO.y,o=Math.atan2(aO,sO)-Math.atan2(r,i);let a=o*(180/Math.PI);a=Math.round(a/e)*e,a%=360;const s=r**2+i**2;return{value:Math.floor(a/e)||0,distance:Math.sqrt(s)}};function cO(e){return(0,R.Ay)("MuiClockPointer",e)}(0,L.A)("MuiClockPointer",["root","thumb"]);const uO=["className","hasSelected","isInner","type","viewValue"],dO=e=>{const{classes:t}=e;return(0,u.A)({root:["root"],thumb:["thumb"]},cO,t)},hO=(0,h.Ay)("div",{name:"MuiClockPointer",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e,ownerState:t})=>(0,s.A)({width:2,backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px"},t.shouldAnimate&&{transition:e.transitions.create(["transform","height"])}))),pO=(0,h.Ay)("div",{name:"MuiClockPointer",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})((({theme:e,ownerState:t})=>(0,s.A)({width:4,height:4,backgroundColor:(e.vars||e).palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:"calc(50% - 18px)",border:`16px solid ${(e.vars||e).palette.primary.main}`,boxSizing:"content-box"},t.hasSelected&&{backgroundColor:(e.vars||e).palette.primary.main})));function fO(e){const t=(0,k.A)({props:e,name:"MuiClockPointer"}),{className:n,isInner:r,type:i,viewValue:a}=t,u=(0,l.A)(t,uO),d=o.useRef(i);o.useEffect((()=>{d.current=i}),[i]);const h=(0,s.A)({},t,{shouldAnimate:d.current!==i}),p=dO(h);return(0,F.jsx)(hO,(0,s.A)({style:(()=>{let e=360/("hours"===i?12:60)*a;return"hours"===i&&a>12&&(e-=360),{height:Math.round((r?.26:.4)*rO),transform:`rotateZ(${e}deg)`}})(),className:(0,c.A)(n,p.root),ownerState:h},u,{children:(0,F.jsx)(pO,{ownerState:h,className:p.thumb})}))}function gO(e){return(0,R.Ay)("MuiClock",e)}(0,L.A)("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton","meridiemText"]);const mO=(0,h.Ay)("div",{name:"MuiClock",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)}))),yO=(0,h.Ay)("div",{name:"MuiClock",slot:"Clock",overridesResolver:(e,t)=>t.clock})({backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:220,width:220,flexShrink:0,position:"relative",pointerEvents:"none"}),vO=(0,h.Ay)("div",{name:"MuiClock",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({"&:focus":{outline:"none"}}),bO=(0,h.Ay)("div",{name:"MuiClock",slot:"SquareMask",overridesResolver:(e,t)=>t.squareMask})((({ownerState:e})=>(0,s.A)({width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:0,touchAction:"none",userSelect:"none"},e.disabled?{}:{"@media (pointer: fine)":{cursor:"pointer",borderRadius:"50%"},"&:active":{cursor:"move"}}))),wO=(0,h.Ay)("div",{name:"MuiClock",slot:"Pin",overridesResolver:(e,t)=>t.pin})((({theme:e})=>({width:6,height:6,borderRadius:"50%",backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}))),xO=(0,h.Ay)(Un,{name:"MuiClock",slot:"AmButton",overridesResolver:(e,t)=>t.amButton})((({theme:e,ownerState:t})=>(0,s.A)({zIndex:1,position:"absolute",bottom:8,left:8,paddingLeft:4,paddingRight:4,width:iO},"am"===t.meridiemMode&&{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}}))),AO=(0,h.Ay)(Un,{name:"MuiClock",slot:"PmButton",overridesResolver:(e,t)=>t.pmButton})((({theme:e,ownerState:t})=>(0,s.A)({zIndex:1,position:"absolute",bottom:8,right:8,paddingLeft:4,paddingRight:4,width:iO},"pm"===t.meridiemMode&&{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}}))),SO=(0,h.Ay)(Fo.A,{name:"MuiClock",slot:"meridiemText",overridesResolver:(e,t)=>t.meridiemText})({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});function CO(e){const t=(0,k.A)({props:e,name:"MuiClock"}),{ampm:n,ampmInClock:r,autoFocus:i,children:a,value:s,handleMeridiemChange:l,isTimeDisabled:d,meridiemMode:h,minutesStep:p=1,onChange:f,selectedId:g,type:m,viewValue:y,disabled:v,readOnly:b,className:w}=t,x=t,A=SC(),S=EC(),C=o.useRef(!1),E=(e=>{const{classes:t}=e;return(0,u.A)({root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton"],pmButton:["pmButton"],meridiemText:["meridiemText"]},gO,t)})(x),_=d(y,m),T=!n&&"hours"===m&&(y<1||y>12),O=(e,t)=>{v||b||d(e,m)||f(e,t)},P=(e,t)=>{let{offsetX:r,offsetY:i}=e;if(void 0===r){const t=e.target.getBoundingClientRect();r=e.changedTouches[0].clientX-t.left,i=e.changedTouches[0].clientY-t.top}const o="seconds"===m||"minutes"===m?((e,t,n=1)=>{const r=6*n;let{value:i}=lO(r,e,t);return i=i*n%60,i})(r,i,p):((e,t,n)=>{const{value:r,distance:i}=lO(30,e,t);let o=r||12;return n?o%=12:i"hours"===m||y%5==0),[m,y]),M="minutes"===m?p:1,L=o.useRef(null);(0,Xe.A)((()=>{i&&L.current.focus()}),[i]);return(0,F.jsxs)(mO,{className:(0,c.A)(w,E.root),children:[(0,F.jsxs)(yO,{className:E.clock,children:[(0,F.jsx)(bO,{onTouchMove:e=>{C.current=!0,P(e,"shallow")},onTouchEnd:e=>{C.current&&(P(e,"finish"),C.current=!1)},onMouseUp:e=>{C.current&&(C.current=!1),P(e.nativeEvent,"finish")},onMouseMove:e=>{e.buttons>0&&P(e.nativeEvent,"shallow")},ownerState:{disabled:v},className:E.squareMask}),!_&&(0,F.jsxs)(o.Fragment,{children:[(0,F.jsx)(wO,{className:E.pin}),null!=s&&(0,F.jsx)(fO,{type:m,viewValue:y,isInner:T,hasSelected:I})]}),(0,F.jsx)(vO,{"aria-activedescendant":g,"aria-label":S.clockLabelText(m,s,A),ref:L,role:"listbox",onKeyDown:e=>{if(!C.current)switch(e.key){case"Home":O(0,"partial"),e.preventDefault();break;case"End":O("minutes"===m?59:23,"partial"),e.preventDefault();break;case"ArrowUp":O(y+M,"partial"),e.preventDefault();break;case"ArrowDown":O(y-M,"partial"),e.preventDefault()}},tabIndex:0,className:E.wrapper,children:a})]}),n&&r&&(0,F.jsxs)(o.Fragment,{children:[(0,F.jsx)(xO,{onClick:b?void 0:()=>l("am"),disabled:v||null===h,ownerState:x,className:E.amButton,title:FS(A,"am"),children:(0,F.jsx)(SO,{variant:"caption",className:E.meridiemText,children:FS(A,"am")})}),(0,F.jsx)(AO,{disabled:v||null===h,onClick:b?void 0:()=>l("pm"),ownerState:x,className:E.pmButton,title:FS(A,"pm"),children:(0,F.jsx)(SO,{variant:"caption",className:E.meridiemText,children:FS(A,"pm")})})]})]})}function EO(e){return(0,R.Ay)("MuiClockNumber",e)}const _O=(0,L.A)("MuiClockNumber",["root","selected","disabled"]),kO=["className","disabled","index","inner","label","selected"],TO=(0,h.Ay)("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${_O.disabled}`]:t.disabled},{[`&.${_O.selected}`]:t.selected}]})((({theme:e,ownerState:t})=>(0,s.A)({height:iO,width:iO,position:"absolute",left:"calc((100% - 36px) / 2)",display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:(e.vars||e).palette.text.primary,fontFamily:e.typography.fontFamily,"&:focused":{backgroundColor:(e.vars||e).palette.background.paper},[`&.${_O.selected}`]:{color:(e.vars||e).palette.primary.contrastText},[`&.${_O.disabled}`]:{pointerEvents:"none",color:(e.vars||e).palette.text.disabled}},t.inner&&(0,s.A)({},e.typography.body2,{color:(e.vars||e).palette.text.secondary}))));function OO(e){const t=(0,k.A)({props:e,name:"MuiClockNumber"}),{className:n,disabled:r,index:i,inner:o,label:a,selected:d}=t,h=(0,l.A)(t,kO),p=t,f=(e=>{const{classes:t,selected:n,disabled:r}=e,i={root:["root",n&&"selected",r&&"disabled"]};return(0,u.A)(i,EO,t)})(p),g=i%12/12*Math.PI*2-Math.PI/2,m=(rO-iO-2)/2*(o?.65:1),y=Math.round(Math.cos(g)*m),v=Math.round(Math.sin(g)*m);return(0,F.jsx)(TO,(0,s.A)({className:(0,c.A)(n,f.root),"aria-disabled":!!r||void 0,"aria-selected":!!d||void 0,role:"option",style:{transform:`translate(${y}px, ${v+(rO-iO)/2}px`},ownerState:p},h,{children:a}))}const PO=({ampm:e,value:t,getClockNumberText:n,isDisabled:r,selectedId:i,utils:o})=>{const a=t?o.getHours(t):null,s=[],l=e?12:23,c=t=>null!==a&&(e?12===t?12===a||0===a:a===t||a-12===t:a===t);for(let t=e?1:0;t<=l;t+=1){let a=t.toString();0===t&&(a="00");const l=!e&&(0===t||t>12);a=o.formatNumber(a);const u=c(t);s.push((0,F.jsx)(OO,{id:u?i:void 0,index:t,inner:l,selected:u,disabled:r(t),label:a,"aria-label":n(a)},t))}return s},IO=({utils:e,value:t,isDisabled:n,getClockNumberText:r,selectedId:i})=>{const o=e.formatNumber;return[[5,o("05")],[10,o("10")],[15,o("15")],[20,o("20")],[25,o("25")],[30,o("30")],[35,o("35")],[40,o("40")],[45,o("45")],[50,o("50")],[55,o("55")],[0,o("00")]].map((([e,o],a)=>{const s=e===t;return(0,F.jsx)(OO,{label:o,id:s?i:void 0,index:a+1,inner:!1,disabled:n(e),selected:s,"aria-label":r(o)},e)}))},MO=({value:e,referenceDate:t,utils:n,props:r,timezone:i})=>{const a=o.useMemo((()=>mC.getInitialReferenceValue({value:e,utils:n,props:r,referenceDate:t,granularity:XS.day,timezone:i,getTodayDate:()=>jS(n,i,"date")})),[]);return null!=e?e:a},LO=["ampm","ampmInClock","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","showViewSwitcher","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","timezone"],RO=(0,h.Ay)(kk,{name:"MuiTimeClock",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",position:"relative"}),jO=(0,h.Ay)(gk,{name:"MuiTimeClock",slot:"ArrowSwitcher",overridesResolver:(e,t)=>t.arrowSwitcher})({position:"absolute",right:12,top:15}),FO=["hours","minutes"],DO=o.forwardRef((function(e,t){const n=SC(),r=(0,k.A)({props:e,name:"MuiTimeClock"}),{ampm:i=n.is12HourCycleInCurrentLocale(),ampmInClock:a=!1,autoFocus:d,components:h,componentsProps:p,slots:f,slotProps:g,value:m,defaultValue:y,referenceDate:v,disableIgnoringDatePartForTimeValidation:b=!1,maxTime:w,minTime:x,disableFuture:A,disablePast:S,minutesStep:C=1,shouldDisableClock:E,shouldDisableTime:_,showViewSwitcher:T,onChange:O,view:P,views:I=FO,openTo:M,onViewChange:L,focusedView:R,onFocusedViewChange:j,className:D,disabled:N,readOnly:z,timezone:V}=r,B=(0,l.A)(r,LO),$=null!=f?f:FC(h),G=null!=g?g:p,{value:U,handleValueChange:W,timezone:q}=oE({name:"TimeClock",timezone:V,value:m,defaultValue:y,onChange:O,valueManager:mC}),H=MO({value:U,referenceDate:v,utils:n,props:r,timezone:q}),Y=EC(),K=_C(q),{view:X,setView:Z,previousView:J,nextView:Q,setValueAndGoToNextView:ee}=sE({view:P,views:I,openTo:M,onViewChange:L,onChange:W,focusedView:R,onFocusedViewChange:j}),{meridiemMode:te,handleMeridiemChange:ne}=mk(H,i,ee),re=o.useCallback(((e,t)=>{const r=YS(b,n),o="hours"===t||"minutes"===t&&I.includes("seconds"),a=({start:e,end:t})=>(!x||!r(x,t))&&((!w||!r(e,w))&&((!A||!r(e,K))&&(!S||!r(K,o?t:e)))),s=(e,r=1)=>{if(e%r!=0)return!1;if(null!=E&&E(e,t))return!1;if(_)switch(t){case"hours":return!_(n.setHours(H,e),"hours");case"minutes":return!_(n.setMinutes(H,e),"minutes");case"seconds":return!_(n.setSeconds(H,e),"seconds");default:return!1}return!0};switch(t){case"hours":{const t=WS(e,te,i),r=n.setHours(H,t);return!a({start:n.setSeconds(n.setMinutes(r,0),0),end:n.setSeconds(n.setMinutes(r,59),59)})||!s(t)}case"minutes":{const t=n.setMinutes(H,e);return!a({start:n.setSeconds(t,0),end:n.setSeconds(t,59)})||!s(e,C)}case"seconds":{const t=n.setSeconds(H,e);return!a({start:t,end:t})||!s(e)}default:throw new Error("not supported")}}),[i,H,b,w,te,x,C,E,_,n,A,S,K,I]),ie=(0,ze.A)(),oe=o.useMemo((()=>{switch(X){case"hours":{const e=(e,t)=>{const r=WS(e,te,i);ee(n.setHours(H,r),t)};return{onChange:e,viewValue:n.getHours(H),children:PO({value:U,utils:n,ampm:i,onChange:e,getClockNumberText:Y.hoursClockNumberText,isDisabled:e=>N||re(e,"hours"),selectedId:ie})}}case"minutes":{const e=n.getMinutes(H),t=(e,t)=>{ee(n.setMinutes(H,e),t)};return{viewValue:e,onChange:t,children:IO({utils:n,value:e,onChange:t,getClockNumberText:Y.minutesClockNumberText,isDisabled:e=>N||re(e,"minutes"),selectedId:ie})}}case"seconds":{const e=n.getSeconds(H),t=(e,t)=>{ee(n.setSeconds(H,e),t)};return{viewValue:e,onChange:t,children:IO({utils:n,value:e,onChange:t,getClockNumberText:Y.secondsClockNumberText,isDisabled:e=>N||re(e,"seconds"),selectedId:ie})}}default:throw new Error("You must provide the type for ClockView")}}),[X,n,U,i,Y.hoursClockNumberText,Y.minutesClockNumberText,Y.secondsClockNumberText,te,ee,H,re,ie,N]),ae=r,se=(e=>{const{classes:t}=e;return(0,u.A)({root:["root"],arrowSwitcher:["arrowSwitcher"]},nO,t)})(ae);return(0,F.jsxs)(RO,(0,s.A)({ref:t,className:(0,c.A)(se.root,D),ownerState:ae},B,{children:[(0,F.jsx)(CO,(0,s.A)({autoFocus:null!=d?d:!!R,ampmInClock:a&&I.includes("hours"),value:U,type:X,ampm:i,minutesStep:C,isTimeDisabled:re,meridiemMode:te,handleMeridiemChange:ne,selectedId:ie,disabled:N,readOnly:z},oe)),T&&(0,F.jsx)(jO,{className:se.arrowSwitcher,slots:$,slotProps:G,onGoToPrevious:()=>Z(J),isPreviousDisabled:!J,previousLabel:Y.openPreviousView,onGoToNext:()=>Z(Q),isNextDisabled:!Q,nextLabel:Y.openNextView,ownerState:ae})]}))}));function NO(e){return(0,R.Ay)("MuiDigitalClock",e)}const zO=(0,L.A)("MuiDigitalClock",["root","list","item"]),VO=["ampm","timeStep","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","onChange","view","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","views","skipDisabled","timezone"],BO=(0,h.Ay)(kk,{name:"MuiDigitalClock",slot:"Root",overridesResolver:(e,t)=>t.root})((({ownerState:e})=>({overflowY:"auto",width:"100%","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:e.alreadyRendered?"smooth":"auto"},maxHeight:232}))),$O=(0,h.Ay)(no,{name:"MuiDigitalClock",slot:"List",overridesResolver:(e,t)=>t.list})({padding:0}),GO=(0,h.Ay)(fo,{name:"MuiDigitalClock",slot:"Item",overridesResolver:(e,t)=>t.item})((({theme:e})=>({padding:"8px 16px",margin:"2px 4px","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,jy.X4)(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:(0,jy.X4)(e.palette.primary.main,e.palette.action.focusOpacity)}}))),UO=o.forwardRef((function(e,t){var n,r,i;const a=SC(),d=o.useRef(null),h=(0,q.A)(t,d),p=(0,k.A)({props:e,name:"MuiDigitalClock"}),{ampm:f=a.is12HourCycleInCurrentLocale(),timeStep:g=30,autoFocus:m,components:y,componentsProps:v,slots:b,slotProps:w,value:x,defaultValue:A,referenceDate:S,disableIgnoringDatePartForTimeValidation:C=!1,maxTime:E,minTime:_,disableFuture:T,disablePast:O,minutesStep:P=1,shouldDisableClock:I,shouldDisableTime:M,onChange:L,view:R,openTo:j,onViewChange:D,focusedView:N,onFocusedViewChange:z,className:V,disabled:B,readOnly:$,views:G=["hours"],skipDisabled:U=!1,timezone:W}=p,H=(0,l.A)(p,VO),{value:Y,handleValueChange:K,timezone:X}=oE({name:"DigitalClock",timezone:W,value:x,defaultValue:A,onChange:L,valueManager:mC}),Z=EC(),J=_C(X),Q=o.useMemo((()=>(0,s.A)({},p,{alreadyRendered:!!d.current})),[p]),ee=(e=>{const{classes:t}=e;return(0,u.A)({root:["root"],list:["list"],item:["item"]},NO,t)})(Q),te=null!=(n=null!=(r=null==b?void 0:b.digitalClockItem)?r:null==y?void 0:y.DigitalClockItem)?n:GO,ne=$C({elementType:te,externalSlotProps:null!=(i=null==w?void 0:w.digitalClockItem)?i:null==v?void 0:v.digitalClockItem,ownerState:{},className:ee.item}),re=MO({value:Y,referenceDate:S,utils:a,props:p,timezone:X}),ie=(0,$e.A)((e=>K(e,"finish","hours"))),{setValueAndGoToNextView:oe}=sE({view:R,views:G,openTo:j,onViewChange:D,onChange:ie,focusedView:N,onFocusedViewChange:z}),ae=(0,$e.A)((e=>{oe(e,"finish")}));o.useEffect((()=>{if(null===d.current)return;const e=d.current.querySelector('[role="listbox"] [role="option"][aria-selected="true"]');if(!e)return;const t=e.offsetTop;d.current.scrollTop=t-4}));const se=o.useCallback((e=>{const t=YS(C,a);return!!(_&&t(_,e)||E&&t(e,E)||T&&t(e,J)||O&&t(J,e))||!!(a.getMinutes(e)%P!=0||null!=I&&I(a.toJsDate(e).getTime(),"hours")||M&&M(e,"hours"))}),[C,a,_,E,T,J,O,P,I,M]),le=o.useMemo((()=>{const e=a.startOfDay(re);return[e,...Array.from({length:Math.ceil(1440/g)-1},((t,n)=>a.addMinutes(e,g*(n+1))))]}),[re,g,a]);return(0,F.jsx)(BO,(0,s.A)({ref:h,className:(0,c.A)(ee.root,V),ownerState:Q},H,{children:(0,F.jsx)($O,{autoFocusItem:m||!!N,role:"listbox","aria-label":Z.timePickerToolbarTitle,className:ee.list,children:le.map((e=>{if(U&&se(e))return null;const t=a.isEqual(e,Y);return(0,F.jsx)(te,(0,s.A)({onClick:()=>!$&&ae(e),selected:t,disabled:B||se(e),disableRipple:$,role:"option","aria-disabled":$,"aria-selected":t},ne,{children:a.format(e,f?"fullTime12h":"fullTime24h")}),a.toISO(e))}))})}))}));function WO(e){return(0,R.Ay)("MuiMultiSectionDigitalClock",e)}(0,L.A)("MuiMultiSectionDigitalClock",["root"]);const qO=["autoFocus","onChange","className","disabled","readOnly","items","active","slots","slotProps","skipDisabled"],HO=(0,h.Ay)(no,{name:"MuiMultiSectionDigitalClockSection",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e,ownerState:t})=>({maxHeight:232,width:56,padding:0,overflow:"hidden","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:t.alreadyRendered?"smooth":"auto"},"@media (pointer: fine)":{"&:hover":{overflowY:"auto"}},"@media (pointer: none), (pointer: coarse)":{overflowY:"auto"},"&:not(:first-of-type)":{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},"&:after":{display:"block",content:'""',height:"calc(100% - 40px - 6px)"}}))),YO=(0,h.Ay)(fo,{name:"MuiMultiSectionDigitalClockSection",slot:"Item",overridesResolver:(e,t)=>t.item})((({theme:e})=>({padding:8,margin:"2px 4px",width:vE,justifyContent:"center","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,jy.X4)(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:(0,jy.X4)(e.palette.primary.main,e.palette.action.focusOpacity)}}))),KO=o.forwardRef((function(e,t){var n;const r=o.useRef(null),i=(0,q.A)(t,r),a=o.useRef(null),d=(0,k.A)({props:e,name:"MuiMultiSectionDigitalClockSection"}),{autoFocus:h,onChange:p,className:f,disabled:g,readOnly:m,items:y,active:v,slots:b,slotProps:w,skipDisabled:x}=d,A=(0,l.A)(d,qO),S=o.useMemo((()=>(0,s.A)({},d,{alreadyRendered:!!r.current})),[d]),C=(e=>{const{classes:t}=e;return(0,u.A)({root:["root"],item:["item"]},QT,t)})(S),E=null!=(n=null==b?void 0:b.digitalClockSectionItem)?n:YO;return o.useEffect((()=>{if(null===r.current)return;const e=r.current.querySelector('[role="option"][aria-selected="true"]');if(v&&h&&e&&e.focus(),!e||a.current===e)return;a.current=e;const t=e.offsetTop;r.current.scrollTop=t-4})),(0,F.jsx)(HO,(0,s.A)({ref:i,className:(0,c.A)(C.root,f),ownerState:S,autoFocusItem:h&&v,role:"listbox"},A,{children:y.map((e=>{var t,n;if(x&&null!=(t=e.isDisabled)&&t.call(e,e.value))return null;const r=e.isSelected(e.value);return(0,F.jsx)(E,(0,s.A)({onClick:()=>!m&&p(e.value),selected:r,disabled:g||(null==(n=e.isDisabled)?void 0:n.call(e,e.value)),disableRipple:m,role:"option","aria-disabled":m,"aria-label":e.ariaLabel,"aria-selected":r,className:C.item},null==w?void 0:w.digitalClockSectionItem,{children:e.label}),e.label)}))}))})),XO=({now:e,value:t,utils:n,ampm:r,isDisabled:i,resolveAriaLabel:o,timeStep:a})=>{const s=t?n.getHours(t):null,l=[],c=e=>null!==s&&(r?12===e?12===s||0===s:s===e||s-12===e:s===e),u=r?11:23;for(let t=0;t<=u;t+=a){let a=n.format(n.setHours(e,t),r?"hours12h":"hours24h");const s=o(parseInt(a,10).toString());a=n.formatNumber(a),l.push({value:t,label:a,isSelected:c,isDisabled:i,ariaLabel:s})}return l},ZO=({value:e,utils:t,isDisabled:n,timeStep:r,resolveLabel:i,resolveAriaLabel:o,hasValue:a=!0})=>{const s=t=>null!==e&&(a&&e===t);return[...Array.from({length:Math.ceil(60/r)},((e,a)=>{const l=r*a;return{value:l,label:t.formatNumber(i(l)),isDisabled:n,isSelected:s,ariaLabel:o(l.toString())}}))]},JO=["ampm","timeSteps","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","skipDisabled","timezone"],QO=(0,h.Ay)(kk,{name:"MuiMultiSectionDigitalClock",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({display:"flex",flexDirection:"row",width:"100%",borderBottom:`1px solid ${(e.vars||e).palette.divider}`}))),eP=o.forwardRef((function(e,t){const n=SC(),r=(0,k.A)({props:e,name:"MuiMultiSectionDigitalClock"}),{ampm:i=n.is12HourCycleInCurrentLocale(),timeSteps:a,autoFocus:d,components:h,componentsProps:p,slots:f,slotProps:g,value:m,defaultValue:y,referenceDate:v,disableIgnoringDatePartForTimeValidation:b=!1,maxTime:w,minTime:x,disableFuture:A,disablePast:S,minutesStep:C=1,shouldDisableClock:E,shouldDisableTime:_,onChange:T,view:O,views:P=["hours","minutes"],openTo:I,onViewChange:M,focusedView:L,onFocusedViewChange:R,className:j,disabled:D,readOnly:N,skipDisabled:z=!1,timezone:V}=r,B=(0,l.A)(r,JO),{value:$,handleValueChange:G,timezone:U}=oE({name:"MultiSectionDigitalClock",timezone:V,value:m,defaultValue:y,onChange:T,valueManager:mC}),W=EC(),q=_C(U),H=o.useMemo((()=>(0,s.A)({hours:1,minutes:5,seconds:5},a)),[a]),Y=MO({value:$,referenceDate:v,utils:n,props:r,timezone:U}),K=(0,$e.A)(((e,t,n)=>G(e,t,n))),X=o.useMemo((()=>i&&P.includes("hours")?P.includes("meridiem")?P:[...P,"meridiem"]:P),[i,P]),{view:Z,setValueAndGoToNextView:J,focusedView:Q}=sE({view:O,views:X,openTo:I,onViewChange:M,onChange:K,focusedView:L,onFocusedViewChange:R}),ee=(0,$e.A)((e=>{J(e,"finish","meridiem")})),{meridiemMode:te,handleMeridiemChange:ne}=mk(Y,i,ee,"finish"),re=o.useCallback(((e,t)=>{const r=YS(b,n),o="hours"===t||"minutes"===t&&X.includes("seconds"),a=({start:e,end:t})=>(!x||!r(x,t))&&((!w||!r(e,w))&&((!A||!r(e,q))&&(!S||!r(q,o?t:e)))),s=(e,r=1)=>{if(e%r!=0)return!1;if(null!=E&&E(e,t))return!1;if(_)switch(t){case"hours":return!_(n.setHours(Y,e),"hours");case"minutes":return!_(n.setMinutes(Y,e),"minutes");case"seconds":return!_(n.setSeconds(Y,e),"seconds");default:return!1}return!0};switch(t){case"hours":{const t=WS(e,te,i),r=n.setHours(Y,t);return!a({start:n.setSeconds(n.setMinutes(r,0),0),end:n.setSeconds(n.setMinutes(r,59),59)})||!s(t)}case"minutes":{const t=n.setMinutes(Y,e);return!a({start:n.setSeconds(t,0),end:n.setSeconds(t,59)})||!s(e,C)}case"seconds":{const t=n.setSeconds(Y,e);return!a({start:t,end:t})||!s(e)}default:throw new Error("not supported")}}),[i,Y,b,w,te,x,C,E,_,n,A,S,q,X]),ie=o.useCallback((e=>{switch(e){case"hours":return{onChange:e=>{const t=WS(e,te,i);J(n.setHours(Y,t),"finish","hours")},items:XO({now:q,value:$,ampm:i,utils:n,isDisabled:e=>D||re(e,"hours"),timeStep:H.hours,resolveAriaLabel:W.hoursClockNumberText})};case"minutes":return{onChange:e=>{J(n.setMinutes(Y,e),"finish","minutes")},items:ZO({value:n.getMinutes(Y),utils:n,isDisabled:e=>D||re(e,"minutes"),resolveLabel:e=>n.format(n.setMinutes(q,e),"minutes"),timeStep:H.minutes,hasValue:!!$,resolveAriaLabel:W.minutesClockNumberText})};case"seconds":return{onChange:e=>{J(n.setSeconds(Y,e),"finish","seconds")},items:ZO({value:n.getSeconds(Y),utils:n,isDisabled:e=>D||re(e,"seconds"),resolveLabel:e=>n.format(n.setSeconds(q,e),"seconds"),timeStep:H.seconds,hasValue:!!$,resolveAriaLabel:W.secondsClockNumberText})};case"meridiem":{const e=FS(n,"am"),t=FS(n,"pm");return{onChange:ne,items:[{value:"am",label:e,isSelected:()=>!!$&&"am"===te,ariaLabel:e},{value:"pm",label:t,isSelected:()=>!!$&&"pm"===te,ariaLabel:t}]}}default:throw new Error(`Unknown view: ${e} found.`)}}),[q,$,i,n,H.hours,H.minutes,H.seconds,W.hoursClockNumberText,W.minutesClockNumberText,W.secondsClockNumberText,te,J,Y,D,re,ne]),oe=o.useMemo((()=>X.reduce(((e,t)=>(0,s.A)({},e,{[t]:ie(t)})),{})),[X,ie]),ae=r,se=(e=>{const{classes:t}=e;return(0,u.A)({root:["root"]},WO,t)})(ae);return(0,F.jsx)(QO,(0,s.A)({ref:t,className:(0,c.A)(se.root,j),ownerState:ae,role:"group"},B,{children:Object.entries(oe).map((([e,t])=>(0,F.jsx)(KO,{items:t.items,onChange:t.onChange,active:Z===e,autoFocus:null!=d?d:Q===e,disabled:D,readOnly:N,slots:null!=f?f:h,slotProps:null!=g?g:p,skipDisabled:z,"aria-label":W.selectViewText(e)},e)))}))})),tP=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i,value:o,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:d,disablePast:h,minTime:p,maxTime:f,shouldDisableTime:g,shouldDisableClock:m,minutesStep:y,ampm:v,ampmInClock:b,components:w,componentsProps:x,slots:A,slotProps:S,readOnly:C,disabled:E,sx:_,autoFocus:k,showViewSwitcher:T,disableIgnoringDatePartForTimeValidation:O,timezone:P})=>(0,F.jsx)(DO,{view:e,onViewChange:t,focusedView:n&&$S(n)?n:null,onFocusedViewChange:r,views:i.filter($S),value:o,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:d,disablePast:h,minTime:p,maxTime:f,shouldDisableTime:g,shouldDisableClock:m,minutesStep:y,ampm:v,ampmInClock:b,components:w,componentsProps:x,slots:A,slotProps:S,readOnly:C,disabled:E,sx:_,autoFocus:k,showViewSwitcher:T,disableIgnoringDatePartForTimeValidation:O,timezone:P}),nP=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i,value:o,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:d,disablePast:h,minTime:p,maxTime:f,shouldDisableTime:g,shouldDisableClock:m,minutesStep:y,ampm:v,components:b,componentsProps:w,slots:x,slotProps:A,readOnly:S,disabled:C,sx:E,autoFocus:_,disableIgnoringDatePartForTimeValidation:k,timeSteps:T,skipDisabled:O,timezone:P})=>(0,F.jsx)(UO,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i.filter($S),value:o,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:d,disablePast:h,minTime:p,maxTime:f,shouldDisableTime:g,shouldDisableClock:m,minutesStep:y,ampm:v,components:b,componentsProps:w,slots:x,slotProps:A,readOnly:S,disabled:C,sx:E,autoFocus:_,disableIgnoringDatePartForTimeValidation:k,timeStep:null==T?void 0:T.minutes,skipDisabled:O,timezone:P}),rP=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i,value:o,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:d,disablePast:h,minTime:p,maxTime:f,shouldDisableTime:g,shouldDisableClock:m,minutesStep:y,ampm:v,components:b,componentsProps:w,slots:x,slotProps:A,readOnly:S,disabled:C,sx:E,autoFocus:_,disableIgnoringDatePartForTimeValidation:k,timeSteps:T,skipDisabled:O,timezone:P})=>(0,F.jsx)(eP,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i.filter($S),value:o,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:d,disablePast:h,minTime:p,maxTime:f,shouldDisableTime:g,shouldDisableClock:m,minutesStep:y,ampm:v,components:b,componentsProps:w,slots:x,slotProps:A,readOnly:S,disabled:C,sx:E,autoFocus:_,disableIgnoringDatePartForTimeValidation:k,timeSteps:T,skipDisabled:O,timezone:P}),iP=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:i,value:a,defaultValue:l,referenceDate:c,onChange:u,className:d,classes:h,disableFuture:p,disablePast:f,minDate:g,minTime:m,maxDate:y,maxTime:v,shouldDisableDate:b,shouldDisableMonth:w,shouldDisableYear:x,shouldDisableTime:A,shouldDisableClock:S,reduceAnimations:C,minutesStep:E,ampm:_,onMonthChange:k,monthsPerRow:T,onYearChange:O,yearsPerRow:P,defaultCalendarMonth:I,components:M,componentsProps:L,slots:R,slotProps:j,loading:D,renderLoading:N,disableHighlightToday:z,readOnly:V,disabled:B,showDaysOutsideCurrentMonth:$,dayOfWeekFormatter:G,sx:U,autoFocus:W,fixedWeekNumber:q,displayWeekNumber:H,timezone:Y,disableIgnoringDatePartForTimeValidation:K,timeSteps:X,skipDisabled:Z,timeViewsCount:J,shouldRenderTimeInASingleColumn:Q})=>{var ee,te;const ne=!(null==(ee=kS(null!=(te=null==j?void 0:j.actionBar)?te:null==L?void 0:L.actionBar,{}))||null==(ee=ee.actions)||!ee.length),re={view:GS(e)?e:"hours",onViewChange:t,focusedView:r&&GS(r)?r:null,onFocusedViewChange:i,views:n.filter(GS),value:a,defaultValue:l,referenceDate:c,onChange:u,className:d,classes:h,disableFuture:p,disablePast:f,minTime:m,maxTime:v,shouldDisableTime:A,shouldDisableClock:S,minutesStep:E,ampm:_,components:M,componentsProps:L,slots:R,slotProps:j,readOnly:V,disabled:B,autoFocus:W,disableIgnoringDatePartForTimeValidation:K,timeSteps:X,skipDisabled:Z,timezone:Y};return(0,F.jsxs)(o.Fragment,{children:[(0,F.jsxs)(tO,{children:[(0,F.jsx)(Mk,{view:NS(e)?e:"day",onViewChange:t,views:n.filter(NS),focusedView:r&&NS(r)?r:null,onFocusedViewChange:i,value:a,defaultValue:l,referenceDate:c,onChange:u,className:d,classes:h,disableFuture:p,disablePast:f,minDate:g,maxDate:y,shouldDisableDate:b,shouldDisableMonth:w,shouldDisableYear:x,reduceAnimations:C,onMonthChange:k,monthsPerRow:T,onYearChange:O,yearsPerRow:P,defaultCalendarMonth:I,components:M,componentsProps:L,slots:R,slotProps:j,loading:D,renderLoading:N,disableHighlightToday:z,readOnly:V,disabled:B,showDaysOutsideCurrentMonth:$,dayOfWeekFormatter:G,sx:U,autoFocus:W,fixedWeekNumber:q,displayWeekNumber:H,timezone:Y}),J>0&&(0,F.jsxs)(o.Fragment,{children:[(0,F.jsx)(JT.A,{orientation:"vertical"}),Q?nP((0,s.A)({},re,{view:"hours",views:["hours"],focusedView:r&&GS(r)?"hours":null,sx:(0,s.A)({width:"auto",[`&.${zO.root}`]:{maxHeight:yE}},Array.isArray(U)?U:[U])})):rP((0,s.A)({},re,{view:GS(e)?e:"hours",views:n.filter(GS),focusedView:r&&GS(r)?r:null,sx:(0,s.A)({borderBottom:0,width:"auto",[`.${eO.root}`]:{maxHeight:"100%"}},Array.isArray(U)?U:[U])}))]})]}),ne&&(0,F.jsx)(JT.A,{})]})},oP=["views","format"],aP=(e,t)=>{let{views:n,format:r}=t,i=(0,l.A)(t,oP);if(r)return r;const o=[],a=[];if(n.forEach((e=>{$S(e)?a.push(e):o.push(e)})),0===a.length)return zS(e,(0,s.A)({views:o},i),!1);if(0===o.length)return KS(e,(0,s.A)({views:a},i));const c=KS(e,(0,s.A)({views:a},i));return`${zS(e,(0,s.A)({views:o},i),!1)} ${c}`},sP=(e,t,n)=>n?t.filter((e=>!GS(e)||"hours"===e)):e?[...t,"meridiem"]:t;function lP({thresholdToRenderTimeInASingleColumn:e,ampm:t,timeSteps:n,views:r}){const i=null!=e?e:24,o=(0,s.A)({hours:1,minutes:5,seconds:5},n),a=((e,t)=>{var n,r;return 1440/((null!=(n=e.hours)?n:1)*(null!=(r=e.minutes)?r:5))<=t})(o,i);return{thresholdToRenderTimeInASingleColumn:i,timeSteps:o,shouldRenderTimeInASingleColumn:a,views:sP(t,r,a)}}const cP=o.forwardRef((function(e,t){var n,r,i,o,a,l,c;const u=EC(),d=SC(),h=ZT(e,"MuiDesktopDateTimePicker"),{shouldRenderTimeInASingleColumn:p,thresholdToRenderTimeInASingleColumn:f,views:g,timeSteps:m}=lP(h),y=!h.viewRenderers||0===Object.keys(h.viewRenderers).length,v=y?{day:iP,month:iP,year:iP,hours:iP,minutes:iP,seconds:iP,meridiem:iP}:(0,s.A)({day:Lk,month:Lk,year:Lk,hours:null,minutes:null,seconds:null,meridiem:null},h.viewRenderers),b=null==(n=h.ampmInClock)||n,w=y?["accept"]:[],x=(0,s.A)({},h,{viewRenderers:v,format:aP(d,h),views:g,yearsPerRow:null!=(r=h.yearsPerRow)?r:4,ampmInClock:b,timeSteps:m,thresholdToRenderTimeInASingleColumn:f,shouldRenderTimeInASingleColumn:p,slots:(0,s.A)({field:Kk,openPickerIcon:LE},h.slots),slotProps:(0,s.A)({},h.slotProps,{field:e=>{var n;return(0,s.A)({},kS(null==(n=h.slotProps)?void 0:n.field,e),HE(h),{ref:t})},toolbar:(0,s.A)({hidden:!0,ampmInClock:b,toolbarVariant:y?"desktop":"mobile"},null==(i=h.slotProps)?void 0:i.toolbar),tabs:(0,s.A)({hidden:!0},null==(o=h.slotProps)?void 0:o.tabs),actionBar:(0,s.A)({actions:w},null==(a=h.slotProps)?void 0:a.actionBar)})}),{renderPicker:A}=OE({props:x,valueManager:mC,valueType:"date-time",getOpenDialogAriaText:null!=(l=null==(c=x.localeText)?void 0:c.openDatePickerDialogue)?l:u.openDatePickerDialogue,validator:Uk});return A()}));cP.propTypes={ampm:_S().bool,ampmInClock:_S().bool,autoFocus:_S().bool,className:_S().string,closeOnSelect:_S().bool,components:_S().object,componentsProps:_S().object,dayOfWeekFormatter:_S().func,defaultCalendarMonth:_S().any,defaultValue:_S().any,disabled:_S().bool,disableFuture:_S().bool,disableHighlightToday:_S().bool,disableIgnoringDatePartForTimeValidation:_S().bool,disableOpenPicker:_S().bool,disablePast:_S().bool,displayWeekNumber:_S().bool,fixedWeekNumber:_S().number,format:_S().string,formatDensity:_S().oneOf(["dense","spacious"]),inputRef:TS,label:_S().node,loading:_S().bool,localeText:_S().object,maxDate:_S().any,maxDateTime:_S().any,maxTime:_S().any,minDate:_S().any,minDateTime:_S().any,minTime:_S().any,minutesStep:_S().number,monthsPerRow:_S().oneOf([3,4]),name:_S().string,onAccept:_S().func,onChange:_S().func,onClose:_S().func,onError:_S().func,onMonthChange:_S().func,onOpen:_S().func,onSelectedSectionsChange:_S().func,onViewChange:_S().func,onYearChange:_S().func,open:_S().bool,openTo:_S().oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),orientation:_S().oneOf(["landscape","portrait"]),readOnly:_S().bool,reduceAnimations:_S().bool,referenceDate:_S().any,renderLoading:_S().func,selectedSections:_S().oneOfType([_S().oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),_S().number,_S().shape({endIndex:_S().number.isRequired,startIndex:_S().number.isRequired})]),shouldDisableClock:_S().func,shouldDisableDate:_S().func,shouldDisableMonth:_S().func,shouldDisableTime:_S().func,shouldDisableYear:_S().func,showDaysOutsideCurrentMonth:_S().bool,skipDisabled:_S().bool,slotProps:_S().object,slots:_S().object,sx:_S().oneOfType([_S().arrayOf(_S().oneOfType([_S().func,_S().object,_S().bool])),_S().func,_S().object]),thresholdToRenderTimeInASingleColumn:_S().number,timeSteps:_S().shape({hours:_S().number,minutes:_S().number,seconds:_S().number}),timezone:_S().string,value:_S().any,view:_S().oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),viewRenderers:_S().shape({day:_S().func,hours:_S().func,meridiem:_S().func,minutes:_S().func,month:_S().func,seconds:_S().func,year:_S().func}),views:_S().arrayOf(_S().oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsPerRow:_S().oneOf([3,4])};const uP=o.forwardRef((function(e,t){var n,r,i,o,a;const l=EC(),c=SC(),u=ZT(e,"MuiMobileDateTimePicker"),d=(0,s.A)({day:Lk,month:Lk,year:Lk,hours:tP,minutes:tP,seconds:tP},u.viewRenderers),h=null!=(n=u.ampmInClock)&&n,p=(0,s.A)({},u,{viewRenderers:d,format:aP(c,u),ampmInClock:h,slots:(0,s.A)({field:Kk},u.slots),slotProps:(0,s.A)({},u.slotProps,{field:e=>{var n;return(0,s.A)({},kS(null==(n=u.slotProps)?void 0:n.field,e),HE(u),{ref:t})},toolbar:(0,s.A)({hidden:!1,ampmInClock:h},null==(r=u.slotProps)?void 0:r.toolbar),tabs:(0,s.A)({hidden:!1},null==(i=u.slotProps)?void 0:i.tabs)})}),{renderPicker:f}=zk({props:p,valueManager:mC,valueType:"date-time",getOpenDialogAriaText:null!=(o=null==(a=p.localeText)?void 0:a.openDatePickerDialogue)?o:l.openDatePickerDialogue,validator:Uk});return f()}));uP.propTypes={ampm:_S().bool,ampmInClock:_S().bool,autoFocus:_S().bool,className:_S().string,closeOnSelect:_S().bool,components:_S().object,componentsProps:_S().object,dayOfWeekFormatter:_S().func,defaultCalendarMonth:_S().any,defaultValue:_S().any,disabled:_S().bool,disableFuture:_S().bool,disableHighlightToday:_S().bool,disableIgnoringDatePartForTimeValidation:_S().bool,disableOpenPicker:_S().bool,disablePast:_S().bool,displayWeekNumber:_S().bool,fixedWeekNumber:_S().number,format:_S().string,formatDensity:_S().oneOf(["dense","spacious"]),inputRef:TS,label:_S().node,loading:_S().bool,localeText:_S().object,maxDate:_S().any,maxDateTime:_S().any,maxTime:_S().any,minDate:_S().any,minDateTime:_S().any,minTime:_S().any,minutesStep:_S().number,monthsPerRow:_S().oneOf([3,4]),name:_S().string,onAccept:_S().func,onChange:_S().func,onClose:_S().func,onError:_S().func,onMonthChange:_S().func,onOpen:_S().func,onSelectedSectionsChange:_S().func,onViewChange:_S().func,onYearChange:_S().func,open:_S().bool,openTo:_S().oneOf(["day","hours","minutes","month","seconds","year"]),orientation:_S().oneOf(["landscape","portrait"]),readOnly:_S().bool,reduceAnimations:_S().bool,referenceDate:_S().any,renderLoading:_S().func,selectedSections:_S().oneOfType([_S().oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),_S().number,_S().shape({endIndex:_S().number.isRequired,startIndex:_S().number.isRequired})]),shouldDisableClock:_S().func,shouldDisableDate:_S().func,shouldDisableMonth:_S().func,shouldDisableTime:_S().func,shouldDisableYear:_S().func,showDaysOutsideCurrentMonth:_S().bool,slotProps:_S().object,slots:_S().object,sx:_S().oneOfType([_S().arrayOf(_S().oneOfType([_S().func,_S().object,_S().bool])),_S().func,_S().object]),timezone:_S().string,value:_S().any,view:_S().oneOf(["day","hours","minutes","month","seconds","year"]),viewRenderers:_S().shape({day:_S().func,hours:_S().func,minutes:_S().func,month:_S().func,seconds:_S().func,year:_S().func}),views:_S().arrayOf(_S().oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsPerRow:_S().oneOf([3,4])};const dP=["desktopModeMediaQuery"],hP=o.forwardRef((function(e,t){const n=(0,k.A)({props:e,name:"MuiDateTimePicker"}),{desktopModeMediaQuery:r=qC}=n,i=(0,l.A)(n,dP);return(0,ei.A)(r,{defaultMatches:!0})?(0,F.jsx)(cP,(0,s.A)({ref:t},i)):(0,F.jsx)(uP,(0,s.A)({ref:t},i))})),pP=({props:e,inputRef:t})=>{const n=(e=>{var t,n,r,i;const o=SC(),a=(null!=(t=e.ampm)?t:o.is12HourCycleInCurrentLocale())?o.formats.fullTime12h:o.formats.fullTime24h;return(0,s.A)({},e,{disablePast:null!=(n=e.disablePast)&&n,disableFuture:null!=(r=e.disableFuture)&&r,format:null!=(i=e.format)?i:a})})(e),{forwardedProps:r,internalProps:i}=KE(n,"time");return $E({inputRef:t,forwardedProps:r,internalProps:i,valueManager:mC,fieldValueManager:yC,validator:Gk,valueType:"time"})},fP=["slots","slotProps","components","componentsProps","InputProps","inputProps"],gP=["inputRef"],mP=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],yP=o.forwardRef((function(e,t){var n,r,i;const o=(0,k.A)({props:e,name:"MuiTimeField"}),{slots:a,slotProps:c,components:u,componentsProps:d,InputProps:h,inputProps:p}=o,f=(0,l.A)(o,fP),g=o,m=null!=(n=null!=(r=null==a?void 0:a.textField)?r:null==u?void 0:u.TextField)?n:oS,y=$C({elementType:m,externalSlotProps:null!=(i=null==c?void 0:c.textField)?i:null==d?void 0:d.textField,externalForwardedProps:f,ownerState:g}),{inputRef:v}=y,b=(0,l.A)(y,gP);b.inputProps=(0,s.A)({},p,b.inputProps),b.InputProps=(0,s.A)({},h,b.InputProps);const w=pP({props:b,inputRef:v}),{ref:x,onPaste:A,onKeyDown:S,inputMode:C,readOnly:E,clearable:_,onClear:T}=w,O=(0,l.A)(w,mP),{InputProps:P,fieldProps:I}=JE({onClear:T,clearable:_,fieldProps:O,InputProps:O.InputProps,slots:a,slotProps:c,components:u,componentsProps:d});return(0,F.jsx)(m,(0,s.A)({ref:t},I,{InputProps:(0,s.A)({},P,{readOnly:E}),inputProps:(0,s.A)({},O.inputProps,{inputMode:C,onPaste:A,onKeyDown:S,ref:x})}))}));function vP(e){return(0,R.Ay)("MuiTimePickerToolbar",e)}const bP=(0,L.A)("MuiTimePickerToolbar",["root","separator","hourMinuteLabel","hourMinuteLabelLandscape","hourMinuteLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),wP=["ampm","ampmInClock","value","isLandscape","onChange","view","onViewChange","views","disabled","readOnly","className"],xP=e=>{const{theme:t,isLandscape:n,classes:r}=e,i={root:["root"],separator:["separator"],hourMinuteLabel:["hourMinuteLabel",n&&"hourMinuteLabelLandscape","rtl"===t.direction&&"hourMinuteLabelReverse"],ampmSelection:["ampmSelection",n&&"ampmLandscape"],ampmLabel:["ampmLabel"]};return(0,u.A)(i,vP,r)},AP=(0,h.Ay)(PC,{name:"MuiTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),SP=(0,h.Ay)(FT,{name:"MuiTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({outline:0,margin:"0 4px 0 2px",cursor:"default"}),CP=(0,h.Ay)("div",{name:"MuiTimePickerToolbar",slot:"HourMinuteLabel",overridesResolver:(e,t)=>[{[`&.${bP.hourMinuteLabelLandscape}`]:t.hourMinuteLabelLandscape,[`&.${bP.hourMinuteLabelReverse}`]:t.hourMinuteLabelReverse},t.hourMinuteLabel]})((({theme:e,ownerState:t})=>(0,s.A)({display:"flex",justifyContent:"flex-end",alignItems:"flex-end"},t.isLandscape&&{marginTop:"auto"},"rtl"===e.direction&&{flexDirection:"row-reverse"})));CP.propTypes={as:_S().elementType,ownerState:_S().object.isRequired,sx:_S().oneOfType([_S().arrayOf(_S().oneOfType([_S().func,_S().object,_S().bool])),_S().func,_S().object])};const EP=(0,h.Ay)("div",{name:"MuiTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${bP.ampmLabel}`]:t.ampmLabel},{[`&.${bP.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})((({ownerState:e})=>(0,s.A)({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",flexBasis:"100%"},{[`& .${bP.ampmLabel}`]:{fontSize:17}})));function _P(e){const t=(0,k.A)({props:e,name:"MuiTimePickerToolbar"}),{ampm:n,ampmInClock:r,value:i,isLandscape:o,onChange:a,view:u,onViewChange:d,views:h,disabled:p,readOnly:f,className:g}=t,m=(0,l.A)(t,wP),y=SC(),v=EC(),b=(0,I.A)(),w=Boolean(n&&!r&&h.includes("hours")),{meridiemMode:x,handleMeridiemChange:A}=mk(i,n,a),S=t,C=xP((0,s.A)({},S,{theme:b})),E=(0,F.jsx)(SP,{tabIndex:-1,value:":",variant:"h3",selected:!1,className:C.separator});return(0,F.jsxs)(AP,(0,s.A)({landscapeDirection:"row",toolbarTitle:v.timePickerToolbarTitle,isLandscape:o,ownerState:S,className:(0,c.A)(C.root,g)},m,{children:[(0,F.jsxs)(CP,{className:C.hourMinuteLabel,ownerState:S,children:[UC(h,"hours")&&(0,F.jsx)(zT,{tabIndex:-1,variant:"h3",onClick:()=>d("hours"),selected:"hours"===u,value:i?(_=i,n?y.format(_,"hours12h"):y.format(_,"hours24h")):"--"}),UC(h,["hours","minutes"])&&E,UC(h,"minutes")&&(0,F.jsx)(zT,{tabIndex:-1,variant:"h3",onClick:()=>d("minutes"),selected:"minutes"===u,value:i?y.format(i,"minutes"):"--"}),UC(h,["minutes","seconds"])&&E,UC(h,"seconds")&&(0,F.jsx)(zT,{variant:"h3",onClick:()=>d("seconds"),selected:"seconds"===u,value:i?y.format(i,"seconds"):"--"})]}),w&&(0,F.jsxs)(EP,{className:C.ampmSelection,ownerState:S,children:[(0,F.jsx)(zT,{disableRipple:!0,variant:"subtitle2",selected:"am"===x,typographyClassName:C.ampmLabel,value:FS(y,"am"),onClick:f?void 0:()=>A("am"),disabled:p}),(0,F.jsx)(zT,{disableRipple:!0,variant:"subtitle2",selected:"pm"===x,typographyClassName:C.ampmLabel,value:FS(y,"pm"),onClick:f?void 0:()=>A("pm"),disabled:p})]})]}));var _}function kP(e,t){var n,r,i,a,l;const c=SC(),u=(0,k.A)({props:e,name:t}),d=null!=(n=u.ampm)?n:c.is12HourCycleInCurrentLocale(),h=o.useMemo((()=>{var e;return null==(null==(e=u.localeText)?void 0:e.toolbarTitle)?u.localeText:(0,s.A)({},u.localeText,{timePickerToolbarTitle:u.localeText.toolbarTitle})}),[u.localeText]),p=null!=(r=u.slots)?r:FC(u.components),f=null!=(i=u.slotProps)?i:u.componentsProps;return(0,s.A)({},u,{ampm:d,localeText:h},PS({views:u.views,openTo:u.openTo,defaultViews:["hours","minutes"],defaultOpenTo:"hours"}),{disableFuture:null!=(a=u.disableFuture)&&a,disablePast:null!=(l=u.disablePast)&&l,slots:(0,s.A)({toolbar:_P},p),slotProps:(0,s.A)({},f,{toolbar:(0,s.A)({ampm:d,ampmInClock:u.ampmInClock},null==f?void 0:f.toolbar)})})}EP.propTypes={as:_S().elementType,ownerState:_S().object.isRequired,sx:_S().oneOfType([_S().arrayOf(_S().oneOfType([_S().func,_S().object,_S().bool])),_S().func,_S().object])};const TP=o.forwardRef((function(e,t){var n,r,i,o,a,l;const c=EC(),u=SC(),d=kP(e,"MuiDesktopTimePicker"),{shouldRenderTimeInASingleColumn:h,views:p,timeSteps:f}=lP(d),g=h?nP:rP,m=(0,s.A)({hours:g,minutes:g,seconds:g,meridiem:g},d.viewRenderers),y=null==(n=d.ampmInClock)||n,v=h?[]:["accept"],b=(null==(r=m.hours)?void 0:r.name)===rP.name?p:p.filter((e=>"meridiem"!==e)),w=(0,s.A)({},d,{ampmInClock:y,timeSteps:f,viewRenderers:m,format:KS(u,d),views:h?["hours"]:b,slots:(0,s.A)({field:yP,openPickerIcon:RE},d.slots),slotProps:(0,s.A)({},d.slotProps,{field:e=>{var n;return(0,s.A)({},kS(null==(n=d.slotProps)?void 0:n.field,e),HE(d),{ref:t})},toolbar:(0,s.A)({hidden:!0,ampmInClock:y},null==(i=d.slotProps)?void 0:i.toolbar),actionBar:(0,s.A)({actions:v},null==(o=d.slotProps)?void 0:o.actionBar)})}),{renderPicker:x}=OE({props:w,valueManager:mC,valueType:"time",getOpenDialogAriaText:null!=(a=null==(l=w.localeText)?void 0:l.openTimePickerDialogue)?a:c.openTimePickerDialogue,validator:Gk});return x()}));TP.propTypes={ampm:_S().bool,ampmInClock:_S().bool,autoFocus:_S().bool,className:_S().string,closeOnSelect:_S().bool,components:_S().object,componentsProps:_S().object,defaultValue:_S().any,disabled:_S().bool,disableFuture:_S().bool,disableIgnoringDatePartForTimeValidation:_S().bool,disableOpenPicker:_S().bool,disablePast:_S().bool,format:_S().string,formatDensity:_S().oneOf(["dense","spacious"]),inputRef:TS,label:_S().node,localeText:_S().object,maxTime:_S().any,minTime:_S().any,minutesStep:_S().number,name:_S().string,onAccept:_S().func,onChange:_S().func,onClose:_S().func,onError:_S().func,onOpen:_S().func,onSelectedSectionsChange:_S().func,onViewChange:_S().func,open:_S().bool,openTo:_S().oneOf(["hours","meridiem","minutes","seconds"]),orientation:_S().oneOf(["landscape","portrait"]),readOnly:_S().bool,reduceAnimations:_S().bool,referenceDate:_S().any,selectedSections:_S().oneOfType([_S().oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),_S().number,_S().shape({endIndex:_S().number.isRequired,startIndex:_S().number.isRequired})]),shouldDisableClock:_S().func,shouldDisableTime:_S().func,skipDisabled:_S().bool,slotProps:_S().object,slots:_S().object,sx:_S().oneOfType([_S().arrayOf(_S().oneOfType([_S().func,_S().object,_S().bool])),_S().func,_S().object]),thresholdToRenderTimeInASingleColumn:_S().number,timeSteps:_S().shape({hours:_S().number,minutes:_S().number,seconds:_S().number}),timezone:_S().string,value:_S().any,view:_S().oneOf(["hours","meridiem","minutes","seconds"]),viewRenderers:_S().shape({hours:_S().func,meridiem:_S().func,minutes:_S().func,seconds:_S().func}),views:_S().arrayOf(_S().oneOf(["hours","minutes","seconds"]).isRequired)};const OP=o.forwardRef((function(e,t){var n,r,i,o;const a=EC(),l=SC(),c=kP(e,"MuiMobileTimePicker"),u=(0,s.A)({hours:tP,minutes:tP,seconds:tP},c.viewRenderers),d=null!=(n=c.ampmInClock)&&n,h=(0,s.A)({},c,{ampmInClock:d,viewRenderers:u,format:KS(l,c),slots:(0,s.A)({field:yP},c.slots),slotProps:(0,s.A)({},c.slotProps,{field:e=>{var n;return(0,s.A)({},kS(null==(n=c.slotProps)?void 0:n.field,e),HE(c),{ref:t})},toolbar:(0,s.A)({hidden:!1,ampmInClock:d},null==(r=c.slotProps)?void 0:r.toolbar)})}),{renderPicker:p}=zk({props:h,valueManager:mC,valueType:"time",getOpenDialogAriaText:null!=(i=null==(o=h.localeText)?void 0:o.openTimePickerDialogue)?i:a.openTimePickerDialogue,validator:Gk});return p()}));OP.propTypes={ampm:_S().bool,ampmInClock:_S().bool,autoFocus:_S().bool,className:_S().string,closeOnSelect:_S().bool,components:_S().object,componentsProps:_S().object,defaultValue:_S().any,disabled:_S().bool,disableFuture:_S().bool,disableIgnoringDatePartForTimeValidation:_S().bool,disableOpenPicker:_S().bool,disablePast:_S().bool,format:_S().string,formatDensity:_S().oneOf(["dense","spacious"]),inputRef:TS,label:_S().node,localeText:_S().object,maxTime:_S().any,minTime:_S().any,minutesStep:_S().number,name:_S().string,onAccept:_S().func,onChange:_S().func,onClose:_S().func,onError:_S().func,onOpen:_S().func,onSelectedSectionsChange:_S().func,onViewChange:_S().func,open:_S().bool,openTo:_S().oneOf(["hours","minutes","seconds"]),orientation:_S().oneOf(["landscape","portrait"]),readOnly:_S().bool,reduceAnimations:_S().bool,referenceDate:_S().any,selectedSections:_S().oneOfType([_S().oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),_S().number,_S().shape({endIndex:_S().number.isRequired,startIndex:_S().number.isRequired})]),shouldDisableClock:_S().func,shouldDisableTime:_S().func,slotProps:_S().object,slots:_S().object,sx:_S().oneOfType([_S().arrayOf(_S().oneOfType([_S().func,_S().object,_S().bool])),_S().func,_S().object]),timezone:_S().string,value:_S().any,view:_S().oneOf(["hours","minutes","seconds"]),viewRenderers:_S().shape({hours:_S().func,minutes:_S().func,seconds:_S().func}),views:_S().arrayOf(_S().oneOf(["hours","minutes","seconds"]).isRequired)};const PP=["desktopModeMediaQuery"],IP=o.forwardRef((function(e,t){const n=(0,k.A)({props:e,name:"MuiTimePicker"}),{desktopModeMediaQuery:r=qC}=n,i=(0,l.A)(n,PP);return(0,ei.A)(r,{defaultMatches:!0})?(0,F.jsx)(TP,(0,s.A)({ref:t},i)):(0,F.jsx)(OP,(0,s.A)({ref:t},i))})),MP=(0,Wn.A)((0,F.jsx)("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function LP(e){return(0,R.Ay)("MuiTableSortLabel",e)}const RP=(0,L.A)("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc"]),jP=["active","children","className","direction","hideSortIcon","IconComponent"],FP=(0,h.Ay)(ae.A,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.active&&t.active]}})((({theme:e})=>({cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(e.vars||e).palette.text.secondary},"&:hover":{color:(e.vars||e).palette.text.secondary,[`& .${RP.icon}`]:{opacity:.5}},[`&.${RP.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${RP.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}}))),DP=(0,h.Ay)("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,t[`iconDirection${(0,Ce.A)(n.direction)}`]]}})((({theme:e,ownerState:t})=>(0,s.A)({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none"},"desc"===t.direction&&{transform:"rotate(0deg)"},"asc"===t.direction&&{transform:"rotate(180deg)"}))),NP=o.forwardRef((function(e,t){const n=(0,k.A)({props:e,name:"MuiTableSortLabel"}),{active:r=!1,children:i,className:o,direction:a="asc",hideSortIcon:d=!1,IconComponent:h=MP}=n,p=(0,l.A)(n,jP),f=(0,s.A)({},n,{active:r,direction:a,hideSortIcon:d,IconComponent:h}),g=(e=>{const{classes:t,direction:n,active:r}=e,i={root:["root",r&&"active"],icon:["icon",`iconDirection${(0,Ce.A)(n)}`]};return(0,u.A)(i,LP,t)})(f);return(0,F.jsxs)(FP,(0,s.A)({className:(0,c.A)(g.root,o),component:"span",disableRipple:!0,ownerState:f,ref:t},p,{children:[i,d&&!r?null:(0,F.jsx)(DP,{as:h,className:(0,c.A)(g.icon),ownerState:f})]}))}));function zP(e){return(0,R.Ay)("MuiAlertTitle",e)}(0,L.A)("MuiAlertTitle",["root"]);const VP=["className"],BP=(0,d.h)("MuiAlertTitle"),$P=(0,h.Ay)(Fo.A,{name:"MuiAlertTitle",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({fontWeight:e.typography.fontWeightMedium,marginTop:-2}))),GP=o.forwardRef((function(e,t){const n=BP({props:e,name:"MuiAlertTitle"}),{className:r}=n,i=(0,l.A)(n,VP),o=n,a=(e=>{const{classes:t}=e;return(0,u.A)({root:["root"]},zP,t)})(o);return(0,F.jsx)($P,(0,s.A)({gutterBottom:!0,component:"div",ownerState:o,ref:t,className:(0,c.A)(a.root,r)},i))}));function UP(e){return(0,R.Ay)("MuiPagination",e)}(0,L.A)("MuiPagination",["root","ul","outlined","text"]);const WP=["boundaryCount","componentName","count","defaultPage","disabled","hideNextButton","hidePrevButton","onChange","page","showFirstButton","showLastButton","siblingCount"];function qP(e){return(0,R.Ay)("MuiPaginationItem",e)}const HP=(0,L.A)("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]),YP=(0,Wn.A)((0,F.jsx)("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),KP=(0,Wn.A)((0,F.jsx)("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),XP=(0,Wn.A)((0,F.jsx)("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),ZP=(0,Wn.A)((0,F.jsx)("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),JP=["className","color","component","components","disabled","page","selected","shape","size","slots","type","variant"],QP=(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${(0,Ce.A)(n.size)}`],"text"===n.variant&&t[`text${(0,Ce.A)(n.color)}`],"outlined"===n.variant&&t[`outlined${(0,Ce.A)(n.color)}`],"rounded"===n.shape&&t.rounded,"page"===n.type&&t.page,("start-ellipsis"===n.type||"end-ellipsis"===n.type)&&t.ellipsis,("previous"===n.type||"next"===n.type)&&t.previousNext,("first"===n.type||"last"===n.type)&&t.firstLast]},eI=(0,h.Ay)("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:QP})((({theme:e,ownerState:t})=>(0,s.A)({},e.typography.body2,{borderRadius:16,textAlign:"center",boxSizing:"border-box",minWidth:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,height:"auto",[`&.${HP.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},"small"===t.size&&{minWidth:26,borderRadius:13,margin:"0 1px",padding:"0 4px"},"large"===t.size&&{minWidth:40,borderRadius:20,padding:"0 10px",fontSize:e.typography.pxToRem(15)}))),tI=(0,h.Ay)(ae.A,{name:"MuiPaginationItem",slot:"Root",overridesResolver:QP})((({theme:e,ownerState:t})=>(0,s.A)({},e.typography.body2,{borderRadius:16,textAlign:"center",boxSizing:"border-box",minWidth:32,height:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,[`&.${HP.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${HP.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},transition:e.transitions.create(["color","background-color"],{duration:e.transitions.duration.short}),"&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${HP.selected}`]:{backgroundColor:(e.vars||e).palette.action.selected,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,Ke.X4)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${HP.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,Ke.X4)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},[`&.${HP.disabled}`]:{opacity:1,color:(e.vars||e).palette.action.disabled,backgroundColor:(e.vars||e).palette.action.selected}}},"small"===t.size&&{minWidth:26,height:26,borderRadius:13,margin:"0 1px",padding:"0 4px"},"large"===t.size&&{minWidth:40,height:40,borderRadius:20,padding:"0 10px",fontSize:e.typography.pxToRem(15)},"rounded"===t.shape&&{borderRadius:(e.vars||e).shape.borderRadius})),(({theme:e,ownerState:t})=>(0,s.A)({},"text"===t.variant&&{[`&.${HP.selected}`]:(0,s.A)({},"standard"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}},[`&.${HP.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}},{[`&.${HP.disabled}`]:{color:(e.vars||e).palette.action.disabled}})},"outlined"===t.variant&&{border: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)"),[`&.${HP.selected}`]:(0,s.A)({},"standard"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:(0,Ke.X4)(e.palette[t.color].main,.5)}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.activatedOpacity})`:(0,Ke.X4)(e.palette[t.color].main,e.palette.action.activatedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,Ke.X4)(e.palette[t.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${HP.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,Ke.X4)(e.palette[t.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity)}},{[`&.${HP.disabled}`]:{borderColor:(e.vars||e).palette.action.disabledBackground,color:(e.vars||e).palette.action.disabled}})}))),nI=(0,h.Ay)("div",{name:"MuiPaginationItem",slot:"Icon",overridesResolver:(e,t)=>t.icon})((({theme:e,ownerState:t})=>(0,s.A)({fontSize:e.typography.pxToRem(20),margin:"0 -8px"},"small"===t.size&&{fontSize:e.typography.pxToRem(18)},"large"===t.size&&{fontSize:e.typography.pxToRem(22)}))),rI=o.forwardRef((function(e,t){const n=(0,k.A)({props:e,name:"MuiPaginationItem"}),{className:r,color:i="standard",component:o,components:a={},disabled:d=!1,page:h,selected:p=!1,shape:f="circular",size:g="medium",slots:m={},type:y="page",variant:v="text"}=n,b=(0,l.A)(n,JP),w=(0,s.A)({},n,{color:i,disabled:d,selected:p,shape:f,size:g,type:y,variant:v}),x=(0,ti.I)(),A=(e=>{const{classes:t,color:n,disabled:r,selected:i,size:o,shape:a,type:s,variant:l}=e,c={root:["root",`size${(0,Ce.A)(o)}`,l,a,"standard"!==n&&`color${(0,Ce.A)(n)}`,"standard"!==n&&`${l}${(0,Ce.A)(n)}`,r&&"disabled",i&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[s]],icon:["icon"]};return(0,u.A)(c,qP,t)})(w),S=(x?{previous:m.next||a.next||ZP,next:m.previous||a.previous||XP,last:m.first||a.first||YP,first:m.last||a.last||KP}:{previous:m.previous||a.previous||XP,next:m.next||a.next||ZP,first:m.first||a.first||YP,last:m.last||a.last||KP})[y];return"start-ellipsis"===y||"end-ellipsis"===y?(0,F.jsx)(eI,{ref:t,ownerState:w,className:(0,c.A)(A.root,r),children:"…"}):(0,F.jsxs)(tI,(0,s.A)({ref:t,ownerState:w,component:o,disabled:d,className:(0,c.A)(A.root,r)},b,{children:["page"===y&&h,S?(0,F.jsx)(nI,{as:S,ownerState:w,className:A.icon}):null]}))})),iI=["boundaryCount","className","color","count","defaultPage","disabled","getItemAriaLabel","hideNextButton","hidePrevButton","onChange","page","renderItem","shape","showFirstButton","showLastButton","siblingCount","size","variant"],oI=(0,h.Ay)("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant]]}})({}),aI=(0,h.Ay)("ul",{name:"MuiPagination",slot:"Ul",overridesResolver:(e,t)=>t.ul})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function sI(e,t,n){return"page"===e?`${n?"":"Go to "}page ${t}`:`Go to ${e} page`}const lI=o.forwardRef((function(e,t){const n=(0,k.A)({props:e,name:"MuiPagination"}),{boundaryCount:r=1,className:i,color:o="standard",count:a=1,defaultPage:d=1,disabled:h=!1,getItemAriaLabel:p=sI,hideNextButton:f=!1,hidePrevButton:g=!1,renderItem:m=(e=>(0,F.jsx)(rI,(0,s.A)({},e))),shape:y="circular",showFirstButton:v=!1,showLastButton:b=!1,siblingCount:w=1,size:x="medium",variant:A="text"}=n,S=(0,l.A)(n,iI),{items:C}=function(e={}){const{boundaryCount:t=1,componentName:n="usePagination",count:r=1,defaultPage:i=1,disabled:o=!1,hideNextButton:a=!1,hidePrevButton:c=!1,onChange:u,page:d,showFirstButton:h=!1,showLastButton:p=!1,siblingCount:f=1}=e,g=(0,l.A)(e,WP),[m,y]=(0,Ve.A)({controlled:d,default:i,name:n,state:"page"}),v=(e,t)=>{d||y(t),u&&u(e,t)},b=(e,t)=>{const n=t-e+1;return Array.from({length:n},((t,n)=>e+n))},w=b(1,Math.min(t,r)),x=b(Math.max(r-t+1,t+1),r),A=Math.max(Math.min(m-f,r-t-2*f-1),t+2),S=Math.min(Math.max(m+f,t+2*f+2),x.length>0?x[0]-2:r-1),C=[...h?["first"]:[],...c?[]:["previous"],...w,...A>t+2?["start-ellipsis"]:t+1t?[r-t]:[],...x,...a?[]:["next"],...p?["last"]:[]],E=e=>{switch(e){case"first":return 1;case"previous":return m-1;case"next":return m+1;case"last":return r;default:return null}},_=C.map((e=>"number"==typeof e?{onClick:t=>{v(t,e)},type:"page",page:e,selected:e===m,disabled:o,"aria-current":e===m?"true":void 0}:{onClick:t=>{v(t,E(e))},type:e,page:E(e),selected:!1,disabled:o||-1===e.indexOf("ellipsis")&&("next"===e||"last"===e?m>=r:m<=1)}));return(0,s.A)({items:_},g)}((0,s.A)({},n,{componentName:"Pagination"})),E=(0,s.A)({},n,{boundaryCount:r,color:o,count:a,defaultPage:d,disabled:h,getItemAriaLabel:p,hideNextButton:f,hidePrevButton:g,renderItem:m,shape:y,showFirstButton:v,showLastButton:b,siblingCount:w,size:x,variant:A}),_=(e=>{const{classes:t,variant:n}=e,r={root:["root",n],ul:["ul"]};return(0,u.A)(r,UP,t)})(E);return(0,F.jsx)(oI,(0,s.A)({"aria-label":"pagination navigation",className:(0,c.A)(_.root,i),ownerState:E,ref:t},S,{children:(0,F.jsx)(aI,{className:_.ul,ownerState:E,children:C.map(((e,t)=>(0,F.jsx)("li",{children:m((0,s.A)({},e,{color:o,"aria-label":p(e.type,e.page,e.selected),shape:y,size:x,variant:A}))},t)))})}))})),cI=lI,uI=e=>{var t,n,r,i;return null!==(i=null!==(t=e.id)&&void 0!==t?t:null===(r=null===(n=e.accessorKey)||void 0===n?void 0:n.toString)||void 0===r?void 0:r.call(n))&&void 0!==i?i:e.header},dI=e=>{const t=[],n=e=>{e.forEach((e=>{e.columns?n(e.columns):t.push(e)}))};return n(e),t},hI=({columnDefs:e,tableOptions:t})=>{const{aggregationFns:n={},defaultDisplayColumn:r,filterFns:i={},sortingFns:o={},state:{columnFilterFns:a={}}={}}=t;return e.map((e=>{var s,l;if(e.id||(e.id=uI(e)),e.columnDefType||(e.columnDefType="data"),null===(s=e.columns)||void 0===s?void 0:s.length)e.columnDefType="group",e.columns=hI({columnDefs:e.columns,tableOptions:t});else if("data"===e.columnDefType){if(Array.isArray(e.aggregationFn)){const t=e.aggregationFn;e.aggregationFn=(e,r,i)=>t.map((t=>{var o;return null===(o=n[t])||void 0===o?void 0:o.call(n,e,r,i)}))}Object.keys(i).includes(a[e.id])&&(e.filterFn=null!==(l=i[a[e.id]])&&void 0!==l?l:i.fuzzy,e._filterFn=a[e.id]),Object.keys(o).includes(e.sortingFn)&&(e.sortingFn=o[e.sortingFn])}else"display"===e.columnDefType&&(e=Object.assign(Object.assign({},r),e));return e}))},pI=(e,t,n)=>{e.getCanPin()&&e.pin(t.getIsPinned());const r=[...n];return r.splice(r.indexOf(t.id),0,r.splice(r.indexOf(e.id),1)[0]),r},fI=e=>{const{filterVariant:t}=e;return"multi-select"===t?"arrIncludesSome":(null==t?void 0:t.includes("range"))?"betweenInclusive":"select"===t||"checkbox"===t?"equals":"fuzzy"},gI=({header:e,table:t})=>{var n;const{options:{columnFilterModeOptions:r}}=t,{column:i}=e,{columnDef:o}=i,{filterVariant:a}=o,s=!(!(null==a?void 0:a.startsWith("date"))&&!(null==a?void 0:a.startsWith("time"))),l="autocomplete"===a,c=(null==a?void 0:a.includes("range"))||["between","betweenInclusive","inNumberRange"].includes(o._filterFn),u="select"===a,d="multi-select"===a,h=["autocomplete","text"].includes(a)||!u&&!d,p=o._filterFn;return{allowedColumnFilterOptions:null!==(n=null==o?void 0:o.columnFilterModeOptions)&&void 0!==n?n:r,currentFilterOption:p,facetedUniqueValues:i.getFacetedUniqueValues(),isAutocompleteFilter:l,isDateFilter:s,isMultiSelectFilter:d,isRangeFilter:c,isSelectFilter:u,isTextboxFilter:h}},mI=({header:e,table:t})=>{const{column:n}=e,{columnDef:r}=n,{facetedUniqueValues:i,isAutocompleteFilter:a,isMultiSelectFilter:s,isSelectFilter:l}=gI({header:e,table:t});return(0,o.useMemo)((()=>{var e;return null!==(e=r.filterSelectOptions)&&void 0!==e?e:(l||s||a)&&i?Array.from(i.keys()).filter((e=>null!=e)).sort(((e,t)=>e.localeCompare(t))):void 0}),[r.filterSelectOptions,i,s,l])},yI= /** * react-table * @@ -254,20 +254,20 @@ const rm={CASE_SENSITIVE_EQUAL:7,EQUAL:6,STARTS_WITH:5,WORD_STARTS_WITH:4,CONTAI * * @license MIT */ -function(e,t){return e?function(e){return"function"==typeof e&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}(n=e)||"function"==typeof n||function(e){return"object"==typeof e&&"symbol"==typeof e.$$typeof&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}(n)?o.createElement(e,t):e:null;var n};function FA(){return{accessor:(e,t)=>"function"==typeof e?Object.assign(Object.assign({},t),{accessorFn:e}):Object.assign(Object.assign({},t),{accessorKey:e}),display:e=>e,group:e=>e}}const DA=(e,t,n=-1,r=0,i,o)=>Xg(e,"mrt-row-create",null!=t?t:Object.assign({},...OA(e.options.columns).map((e=>({[TA(e)]:""})))),n,r,i,o),NA=(e,t)=>e instanceof Function?e(t):e,zA=e=>{var t,n,r;let i="",o="";return e&&("object"!=typeof e?(i=e,o=e):(i=null!==(n=null!==(t=e.label)&&void 0!==t?t:e.text)&&void 0!==n?n:e.value,o=null!==(r=e.value)&&void 0!==r?r:i)),{label:i,value:o}},VA=({cell:e,table:t})=>{const{enableEditing:n}=t.options,{column:{columnDef:r},row:i}=e;return!e.getIsPlaceholder()&&NA(n,i)&&!1!==NA(r.enableEditing,i)},BA=({cell:e,table:t})=>{const{options:{editDisplayMode:n},refs:{editInputRefs:r}}=t,{column:i}=e;VA({cell:e,table:t})&&"cell"===n&&(t.setEditingCell(e),queueMicrotask((()=>{var e;const t=r.current[i.id];t&&(t.focus(),null===(e=t.select)||void 0===e||e.call(t))})))};function $A({header:e,id:t,size:n,tableOptions:r}){const{defaultDisplayColumn:i,displayColumnDefOptions:o,localization:a}=r;return Object.assign(Object.assign(Object.assign(Object.assign({},i),{header:e?a[e]:"",size:n}),null==o?void 0:o[t]),{id:t})}const GA=e=>{const{enableRowPinning:t,rowPinningDisplayMode:n}=e;return!(!t||(null==n?void 0:n.startsWith("select")))},UA=e=>{const{enableRowDragging:t,enableRowOrdering:n}=e;return!(!t&&!n)},WA=e=>{const{enableExpanding:t,enableGrouping:n,renderDetailPanel:r,state:{grouping:i}}=e;return!!(t||n&&(null==i?void 0:i.length)||r)},qA=e=>{const{createDisplayMode:t,editDisplayMode:n,enableEditing:r,enableRowActions:i,state:{creatingRow:o}}=e;return!!(i||o&&"row"===t||r&&["modal","row"].includes(null!=n?n:""))},HA=e=>!!e.enableRowSelection,YA=e=>!!e.enableRowNumbers,KA=e=>"grid-no-grow"===e.layoutMode,XA=e=>[GA(e)&&"mrt-row-pin",UA(e)&&"mrt-row-drag","first"===e.positionActionsColumn&&qA(e)&&"mrt-row-actions","first"===e.positionExpandColumn&&WA(e)&&"mrt-row-expand",HA(e)&&"mrt-row-select",YA(e)&&"mrt-row-numbers"].filter(Boolean),ZA=e=>["last"===e.positionActionsColumn&&qA(e)&&"mrt-row-actions","last"===e.positionExpandColumn&&WA(e)&&"mrt-row-expand",KA(e)&&"mrt-row-spacer"].filter(Boolean),JA=(e,t=!1)=>{const{state:{columnOrder:n=[]}}=e,r=XA(e),i=ZA(e),o=OA(e.columns).map((e=>TA(e)));let a=t?o:Array.from(new Set([...n,...o]));return a=a.filter((e=>!r.includes(e)&&!i.includes(e))),[...r,...a,...i]},QA=Object.assign(Object.assign({},qg),{fuzzy:(e,t,n)=>{let r=0;var i,o;return e.columnFiltersMeta[n]&&(i=e.columnFiltersMeta[n],o=t.columnFiltersMeta[n],r=i.rank===o.rank?0:i.rank>o.rank?-1:1),0===r?qg.alphanumeric(e,t,n):r}}),eS=(e,t)=>Math.max(...Object.values(t.columnFiltersMeta).map((e=>e.rank)))-Math.max(...Object.values(e.columnFiltersMeta).map((e=>e.rank))),tS=(e,t)=>{const{getCenterRows:n,getPrePaginationRowModel:r,getRowModel:i,getState:o,getTopRows:a,options:{createDisplayMode:s,enablePagination:l,enableRowPinning:c,manualPagination:u,positionCreatingRow:d,rowPinningDisplayMode:h}}=e,{creatingRow:p,pagination:f}=o();let g=[];if(rS(e)){if(g=r().rows.sort(((e,t)=>eS(e,t))),l&&!u&&!t){const e=f.pageIndex*f.pageSize;g=g.slice(e,e+f.pageSize)}c&&!(null==h?void 0:h.includes("sticky"))&&(g=g.filter((e=>!e.getIsPinned())))}else g=!c||(null==h?void 0:h.includes("sticky"))?t?r().rows:i().rows:n();if(c&&(null==h?void 0:h.includes("sticky"))){const e=g.filter((e=>e.getIsPinned())).map((e=>e.id));g=[...a().filter((t=>!e.includes(t.id))),...g]}if(void 0!==d&&p&&"row"===s){const e=isNaN(+d)?"top"===d?0:g.length:+d;g=[...g.slice(0,e),p,...g.slice(e)]}return g},nS=e=>{const{getState:t,options:{enableGlobalFilterRankedResults:n,manualExpanding:r,manualFiltering:i,manualGrouping:o,manualSorting:a}}=e,{expanded:s,globalFilterFn:l}=t();return!r&&!i&&!o&&!a&&n&&"fuzzy"===l&&!0!==s&&!Object.values(s).some(Boolean)},rS=e=>{const{globalFilter:t,sorting:n}=e.getState();return nS(e)&&t&&!Object.values(n).some(Boolean)},iS=({row:e,table:t})=>{const{options:{enableRowSelection:n}}=t;return e.getIsSelected()||NA(n,e)&&e.getCanSelectSubRows()&&e.getIsAllSubRowsSelected()},oS=({row:e,staticRowIndex:t=0,table:n})=>(r,i)=>{var o;const{getState:a,options:{enableBatchRowSelection:s,enableMultiRowSelection:l,enableRowPinning:c,manualPagination:u,rowPinningDisplayMode:d},refs:{lastSelectedRowId:h}}=n,{pagination:{pageIndex:p,pageSize:f}}=a(),g=u?0:f*p,m=iS({row:e,table:n});e.toggleSelected(null!=i?i:!m);const y=new Set([e.id]);if(s&&l&&r.nativeEvent.shiftKey&&null!==h.current){const e=tS(n,!0),r=e.findIndex((e=>e.id===h.current));if(-1!==r){const i=iS({row:null==e?void 0:e[r],table:n}),o=t+g,[a,s]=re.toggleSelected(!1)))),c&&(null==d?void 0:d.includes("select"))&&y.forEach((e=>{n.getRow(e).pin(!m&&((null==d?void 0:d.includes("bottom"))?"bottom":"top"))}))},aS=({table:e})=>(t,n,r)=>{const{options:{enableRowPinning:i,rowPinningDisplayMode:o,selectAllMode:a},refs:{lastSelectedRowId:s}}=e;"all"===a||r?e.toggleAllRowsSelected(null!=n?n:t.target.checked):e.toggleAllPageRowsSelected(null!=n?n:t.target.checked),i&&(null==o?void 0:o.includes("select"))&&e.setRowPinning({bottom:[],top:[]}),s.current=null},sS=Object.assign({},jg),lS=(e,t,n,r)=>{const i=im(e.getValue(t),n,{threshold:rm.MATCHES});return r(i),i.passed};lS.autoRemove=e=>!e;const cS=(e,t,n)=>e.getValue(t).toString().toLowerCase().trim().includes(n.toString().toLowerCase().trim());cS.autoRemove=e=>!e;const uS=(e,t,n)=>e.getValue(t).toString().toLowerCase().trim().startsWith(n.toString().toLowerCase().trim());uS.autoRemove=e=>!e;const dS=(e,t,n)=>e.getValue(t).toString().toLowerCase().trim().endsWith(n.toString().toLowerCase().trim());dS.autoRemove=e=>!e;const hS=(e,t,n)=>e.getValue(t).toString().toLowerCase().trim()===(null==n?void 0:n.toString().toLowerCase().trim());hS.autoRemove=e=>!e;const pS=(e,t,n)=>e.getValue(t).toString().toLowerCase().trim()!==n.toString().toLowerCase().trim();pS.autoRemove=e=>!e;const fS=(e,t,n)=>isNaN(+n)||isNaN(+e.getValue(t))?e.getValue(t).toString().toLowerCase().trim()>(null==n?void 0:n.toString().toLowerCase().trim()):+e.getValue(t)>+n;fS.autoRemove=e=>!e;const gS=(e,t,n)=>hS(e,t,n)||fS(e,t,n);gS.autoRemove=e=>!e;const mS=(e,t,n)=>isNaN(+n)||isNaN(+e.getValue(t))?e.getValue(t).toString().toLowerCase().trim()<(null==n?void 0:n.toString().toLowerCase().trim()):+e.getValue(t)<+n;mS.autoRemove=e=>!e;const yS=(e,t,n)=>hS(e,t,n)||mS(e,t,n);yS.autoRemove=e=>!e;const vS=(e,t,n)=>(["",void 0].includes(n[0])||fS(e,t,n[0]))&&(!isNaN(+n[0])&&!isNaN(+n[1])&&+n[0]>+n[1]||["",void 0].includes(n[1])||mS(e,t,n[1]));vS.autoRemove=e=>!e;const bS=(e,t,n)=>(["",void 0].includes(n[0])||gS(e,t,n[0]))&&(!isNaN(+n[0])&&!isNaN(+n[1])&&+n[0]>+n[1]||["",void 0].includes(n[1])||yS(e,t,n[1]));bS.autoRemove=e=>!e;const xS=(e,t,n)=>!e.getValue(t).toString().trim();xS.autoRemove=e=>!e;const wS=(e,t,n)=>!!e.getValue(t).toString().trim();wS.autoRemove=e=>!e;const AS=Object.assign(Object.assign({},Mg),{between:vS,betweenInclusive:bS,contains:cS,empty:xS,endsWith:dS,equals:hS,fuzzy:lS,greaterThan:fS,greaterThanOrEqualTo:gS,lessThan:mS,lessThanOrEqualTo:yS,notEmpty:wS,notEquals:pS,startsWith:uS});function SS(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{var{row:t,table:n,variant:r="icon"}=e,i=SS(e,["row","table","variant"]);const{getState:o,options:{icons:{CancelIcon:s,SaveIcon:l},localization:c,onCreatingRowCancel:u,onCreatingRowSave:d,onEditingRowCancel:h,onEditingRowSave:p},refs:{editInputRefs:f},setCreatingRow:g,setEditingRow:m}=n,{creatingRow:y,editingRow:v,isSaving:b}=o(),x=(null==y?void 0:y.id)===t.id,w=(null==v?void 0:v.id)===t.id,A=()=>{x?(null==u||u({row:t,table:n}),g(null)):w&&(null==h||h({row:t,table:n}),m(null)),t._valuesCache={}},C=()=>{var e;null===(e=Object.values(null==f?void 0:f.current).filter((e=>{var n,r;return t.id===(null===(r=null===(n=null==e?void 0:e.name)||void 0===n?void 0:n.split("_"))||void 0===r?void 0:r[0])})))||void 0===e||e.forEach((e=>{void 0!==e.value&&Object.hasOwn(null==t?void 0:t._valuesCache,e.name)&&(t._valuesCache[e.name]=e.value)})),x?null==d||d({exitCreatingMode:()=>g(null),row:t,table:n,values:t._valuesCache}):w&&(null==p||p({exitEditingMode:()=>m(null),row:t,table:n,values:null==t?void 0:t._valuesCache}))};return(0,S.jsx)(a.A,{onClick:e=>e.stopPropagation(),sx:e=>Object.assign({display:"flex",gap:"0.75rem"},NA(null==i?void 0:i.sx,e)),children:"icon"===r?(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(cn,{title:c.cancel,children:(0,S.jsx)(Ge.A,{"aria-label":c.cancel,onClick:A,children:(0,S.jsx)(s,{})})}),(x&&d||w&&p)&&(0,S.jsx)(cn,{title:c.save,children:(0,S.jsx)(Ge.A,{"aria-label":c.save,color:"info",onClick:C,children:b?(0,S.jsx)(Jr,{size:18}):(0,S.jsx)(l,{})})})]}):(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(dn.A,{onClick:A,sx:{minWidth:"100px"},children:c.cancel}),(0,S.jsxs)(dn.A,{onClick:C,sx:{minWidth:"100px"},variant:"contained",children:[b&&(0,S.jsx)(Jr,{color:"inherit",size:18}),c.save]})]})})},ES=e=>e.replace(/[^a-zA-Z0-9]/g,"_"),_S={content:'""',height:"100%",left:0,position:"absolute",top:0,width:"100%",zIndex:-1},kS=({column:e,table:t,theme:n})=>{const{baseBackgroundColor:r}=t.options.mrtTheme,i=null==e?void 0:e.getIsPinned();return{'&[data-pinned="true"]':{"&:before":Object.assign({backgroundColor:(0,Gh.X4)((0,Gh.e$)(r,"dark"===n.palette.mode?.05:.01),.97),boxShadow:e?"left"===i&&e.getIsLastColumn(i)?`-4px 0 4px -4px ${(0,Gh.X4)(n.palette.grey[700],.5)} inset`:"right"===i&&e.getIsFirstColumn(i)?`4px 0 4px -4px ${(0,Gh.X4)(n.palette.grey[700],.5)} inset`:void 0:void 0},_S)}}},TS=({column:e,header:t,table:n,tableCellProps:r,theme:i})=>{var o,a,s,l,c,u;const{getState:d,options:{enableColumnVirtualization:h,layoutMode:p}}=n,{draggingColumn:f}=d(),{columnDef:g}=e,{columnDefType:m}=g,y="group"!==g.columnDefType&&e.getIsPinned(),v={minWidth:`max(calc(var(--${t?"header":"col"}-${ES(null!==(o=null==t?void 0:t.id)&&void 0!==o?o:e.id)}-size) * 1px), ${null!==(a=g.minSize)&&void 0!==a?a:30}px)`,width:`calc(var(--${t?"header":"col"}-${ES(null!==(s=null==t?void 0:t.id)&&void 0!==s?s:e.id)}-size) * 1px)`};"grid"===p?v.flex=`${[0,!1].includes(g.grow)?0:`var(--${t?"header":"col"}-${ES(null!==(l=null==t?void 0:t.id)&&void 0!==l?l:e.id)}-size)`} 0 auto`:"grid-no-grow"===p&&(v.flex=+(g.grow||0)+" 0 auto");const b=y?Object.assign(Object.assign({},kS({column:e,table:n,theme:i})),{left:"left"===y?`${e.getStart("left")}px`:void 0,opacity:.97,position:"sticky",right:"right"===y?`${e.getAfter("right")}px`:void 0}):{};return Object.assign(Object.assign(Object.assign({backgroundColor:"inherit",backgroundImage:"inherit",display:(null==p?void 0:p.startsWith("grid"))?"flex":void 0,justifyContent:"group"===m?"center":(null==p?void 0:p.startsWith("grid"))?r.align:void 0,opacity:(null===(c=n.getState().draggingColumn)||void 0===c?void 0:c.id)===e.id||(null===(u=n.getState().hoveredColumn)||void 0===u?void 0:u.id)===e.id?.5:1,position:"relative",transition:h?"none":"padding 150ms ease-in-out",zIndex:e.getIsResizing()||(null==f?void 0:f.id)===e.id?2:"group"!==m&&y?1:0},b),v),NA(null==r?void 0:r.sx,i))},OS=({table:e})=>({alignItems:"flex-start",backgroundColor:e.options.mrtTheme.baseBackgroundColor,display:"grid",flexWrap:"wrap-reverse",minHeight:"3.5rem",overflow:"hidden",position:"relative",transition:"all 150ms ease-in-out",zIndex:1}),PS=e=>"rtl"===e.direction?{style:{transform:"scaleX(-1)"}}:void 0,IS=e=>({disableInteractive:!0,enterDelay:1e3,enterNextDelay:1e3,placement:e}),MS=e=>{var{icon:t,label:n,onOpenSubMenu:r,table:i}=e,o=SS(e,["icon","label","onOpenSubMenu","table"]);const{options:{icons:{ArrowRightIcon:s}}}=i;return(0,S.jsxs)(Tn,Object.assign({sx:{alignItems:"center",justifyContent:"space-between",minWidth:"120px",my:0,py:"6px"}},o,{children:[(0,S.jsxs)(a.A,{sx:{alignItems:"center",display:"flex"},children:[(0,S.jsx)(rl,{children:t}),n]}),r&&(0,S.jsx)(Ge.A,{onClick:r,onMouseEnter:r,size:"small",sx:{p:0},children:(0,S.jsx)(s,{})})]}))},LS=e=>{var{anchorEl:t,handleEdit:n,row:r,setAnchorEl:i,staticRowIndex:o,table:a}=e,s=SS(e,["anchorEl","handleEdit","row","setAnchorEl","staticRowIndex","table"]);const{getState:l,options:{editDisplayMode:c,enableEditing:u,icons:{EditIcon:d},localization:h,mrtTheme:{menuBackgroundColor:p},renderRowActionMenuItems:f}}=a,{density:g}=l();return(0,S.jsxs)(Rl.A,Object.assign({MenuListProps:{dense:"compact"===g,sx:{backgroundColor:p}},anchorEl:t,disableScrollLock:!0,onClick:e=>e.stopPropagation(),onClose:()=>i(null),open:!!t},s,{children:[NA(u,r)&&["modal","row"].includes(c)&&(0,S.jsx)(MS,{icon:(0,S.jsx)(d,{}),label:h.edit,onClick:n,table:a}),null==f?void 0:f({closeMenu:()=>i(null),row:r,staticRowIndex:o,table:a})]}))},RS={"&:hover":{opacity:1},height:"2rem",ml:"10px",opacity:.5,transition:"opacity 150ms",width:"2rem"},jS=e=>{var{cell:t,row:n,staticRowIndex:r,table:i}=e,a=SS(e,["cell","row","staticRowIndex","table"]);const{getState:s,options:{createDisplayMode:l,editDisplayMode:c,enableEditing:u,icons:{EditIcon:d,MoreHorizIcon:h},localization:p,renderRowActionMenuItems:f,renderRowActions:g},setEditingRow:m}=i,{creatingRow:y,editingRow:v}=s(),b=(null==y?void 0:y.id)===n.id,x=(null==v?void 0:v.id)===n.id,w=b&&"row"===l||x&&"row"===c,[A,C]=(0,o.useState)(null),E=e=>{e.stopPropagation(),m(Object.assign({},n)),C(null)};return(0,S.jsx)(S.Fragment,{children:g&&!w?g({cell:t,row:n,staticRowIndex:r,table:i}):w?(0,S.jsx)(CS,{row:n,table:i}):!f&&NA(u,n)&&["modal","row"].includes(c)?(0,S.jsx)(cn,{placement:"right",title:p.edit,children:(0,S.jsx)(Ge.A,Object.assign({"aria-label":p.edit,onClick:E,sx:RS},a,{children:(0,S.jsx)(d,{})}))}):f?(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(cn,Object.assign({},IS(),{title:p.rowActions,children:(0,S.jsx)(Ge.A,Object.assign({"aria-label":p.rowActions,onClick:e=>{e.stopPropagation(),e.preventDefault(),C(e.currentTarget)},size:"small",sx:RS},a,{children:(0,S.jsx)(h,{})}))})),(0,S.jsx)(LS,{anchorEl:A,handleEdit:E,row:n,setAnchorEl:C,staticRowIndex:r,table:i})]}):null})},FS=e=>Object.assign({Cell:({cell:e,row:t,staticRowIndex:n,table:r})=>(0,S.jsx)(jS,{cell:e,row:t,staticRowIndex:n,table:r})},$A({header:"actions",id:"mrt-row-actions",size:70,tableOptions:e})),DS=e=>{var t,n,{location:r,table:i}=e,o=SS(e,["location","table"]);const{options:{icons:{DragHandleIcon:a},localization:s}}=i;return(0,S.jsx)(cn,Object.assign({},IS("top"),{title:null!==(t=null==o?void 0:o.title)&&void 0!==t?t:s.move,children:(0,S.jsx)(Ge.A,Object.assign({"aria-label":null!==(n=o.title)&&void 0!==n?n:s.move,disableRipple:!0,draggable:"true",size:"small"},o,{onClick:e=>{var t;e.stopPropagation(),null===(t=null==o?void 0:o.onClick)||void 0===t||t.call(o,e)},sx:e=>Object.assign({"&:active":{cursor:"grabbing"},"&:hover":{backgroundColor:"transparent",opacity:1},cursor:"grab",m:"0 -0.1rem",opacity:"row"===r?1:.5,p:"2px",transition:"all 150ms ease-in-out"},NA(null==o?void 0:o.sx,e)),title:void 0,children:(0,S.jsx)(a,{})}))}))},NS=e=>{var{row:t,rowRef:n,table:r}=e,i=SS(e,["row","rowRef","table"]);const{options:{muiRowDragHandleProps:o}}=r,a=Object.assign(Object.assign({},NA(o,{row:t,table:r})),i);return(0,S.jsx)(DS,Object.assign({},a,{location:"row",onDragEnd:e=>{var t;null===(t=null==a?void 0:a.onDragEnd)||void 0===t||t.call(a,e),r.setDraggingRow(null),r.setHoveredRow(null)},onDragStart:e=>{var i;null===(i=null==a?void 0:a.onDragStart)||void 0===i||i.call(a,e);try{e.dataTransfer.setDragImage(n.current,0,0)}catch(e){console.error(e)}r.setDraggingRow(t)},table:r}))},zS=e=>Object.assign({Cell:({row:e,rowRef:t,table:n})=>(0,S.jsx)(NS,{row:e,rowRef:t,table:n}),grow:!1},$A({header:"move",id:"mrt-row-drag",size:60,tableOptions:e})),VS=e=>{var t,n,{table:r}=e,i=SS(e,["table"]);const{getCanSomeRowsExpand:o,getIsAllRowsExpanded:a,getIsSomeRowsExpanded:s,getState:l,options:{icons:{KeyboardDoubleArrowDownIcon:c},localization:u,muiExpandAllButtonProps:d,renderDetailPanel:h},toggleAllRowsExpanded:p}=r,{density:f,isLoading:g}=l(),m=Object.assign(Object.assign({},NA(d,{table:r})),i),y=a();return(0,S.jsx)(cn,Object.assign({},IS(),{title:null!==(t=null==m?void 0:m.title)&&void 0!==t?t:y?u.collapseAll:u.expandAll,children:(0,S.jsx)("span",{children:(0,S.jsx)(Ge.A,Object.assign({"aria-label":u.expandAll,disabled:g||!h&&!o(),onClick:()=>p(!y)},m,{sx:e=>Object.assign({height:"compact"===f?"1.75rem":"2.25rem",mt:"compact"!==f?"-0.25rem":void 0,width:"compact"===f?"1.75rem":"2.25rem"},NA(null==m?void 0:m.sx,e)),title:void 0,children:null!==(n=null==m?void 0:m.children)&&void 0!==n?n:(0,S.jsx)(c,{style:{transform:`rotate(${y?-180:s()?-90:0}deg)`,transition:"transform 150ms"}})}))})}))},BS=({row:e,staticRowIndex:t,table:n})=>{var r,i;const o=(0,v.A)(),{getState:a,options:{icons:{ExpandMoreIcon:s},localization:l,muiExpandButtonProps:c,positionExpandColumn:u,renderDetailPanel:d}}=n,{density:h}=a(),p=NA(c,{row:e,staticRowIndex:t,table:n}),f=e.getCanExpand(),g=e.getIsExpanded(),m=!!(null==d?void 0:d({row:e,table:n}));return(0,S.jsx)(cn,Object.assign({disableHoverListener:!f&&!m},IS(),{title:null!==(r=null==p?void 0:p.title)&&void 0!==r?r:g?l.collapse:l.expand,children:(0,S.jsx)("span",{children:(0,S.jsx)(Ge.A,Object.assign({"aria-label":l.expand,disabled:!f&&!m},p,{onClick:t=>{var n;t.stopPropagation(),e.toggleExpanded(),null===(n=null==p?void 0:p.onClick)||void 0===n||n.call(p,t)},sx:t=>Object.assign({height:"compact"===h?"1.75rem":"2.25rem",opacity:f||m?1:.3,["rtl"===t.direction||"last"===u?"mr":"ml"]:16*e.depth+"px",width:"compact"===h?"1.75rem":"2.25rem"},NA(null==p?void 0:p.sx,t)),title:void 0,children:null!==(i=null==p?void 0:p.children)&&void 0!==i?i:(0,S.jsx)(s,{style:{transform:`rotate(${f||d?g?-180:0:"last"===u||"rtl"===o.direction?90:-90}deg)`,transition:"transform 150ms"}})}))})}))},$S=e=>{var t;const{defaultColumn:n,enableExpandAll:r,groupedColumnMode:i,positionExpandColumn:o,renderDetailPanel:a,state:{grouping:s}}=e,l="last"===o?{align:"right"}:void 0;return Object.assign({Cell:({cell:e,column:t,row:n,staticRowIndex:r,table:o})=>{var a,s,l;const c={row:n,staticRowIndex:r,table:o},u=null===(a=n.subRows)||void 0===a?void 0:a.length;return"remove"===i&&n.groupingColumnId?(0,S.jsxs)(xs,{alignItems:"center",flexDirection:"row",gap:"0.25rem",children:[(0,S.jsx)(BS,Object.assign({},c)),(0,S.jsx)(cn,Object.assign({},IS("right"),{title:o.getColumn(n.groupingColumnId).columnDef.header,children:(0,S.jsx)("span",{children:n.groupingValue})})),!!u&&(0,S.jsxs)("span",{children:["(",u,")"]})]}):(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(BS,Object.assign({},c)),null===(l=(s=t.columnDef).GroupedCell)||void 0===l?void 0:l.call(s,{cell:e,column:t,row:n,table:o})]})},Header:r?({table:e})=>{var t;return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(VS,{table:e}),"remove"===i&&(null===(t=null==s?void 0:s.map((t=>e.getColumn(t).columnDef.header)))||void 0===t?void 0:t.join(", "))]})}:void 0,muiTableBodyCellProps:l,muiTableHeadCellProps:l},$A({header:"expand",id:"mrt-row-expand",size:"remove"===i?null!==(t=null==n?void 0:n.size)&&void 0!==t?t:180:a?r?60:70:100,tableOptions:e}))},GS=e=>{const{localization:t,rowNumberDisplayMode:n}=e,{pagination:{pageIndex:r,pageSize:i}}=e.state;return Object.assign({Cell:({row:e,staticRowIndex:t})=>{var o;return(null!==(o="static"===n?(t||0)+(i||0)*(r||0):e.index)&&void 0!==o?o:0)+1},Header:()=>t.rowNumber,grow:!1},$A({header:"rowNumbers",id:"mrt-row-numbers",size:50,tableOptions:e}))},US=e=>{var{pinningPosition:t,row:n,table:r}=e,i=SS(e,["pinningPosition","row","table"]);const{options:{icons:{CloseIcon:a,PushPinIcon:s},localization:l,rowPinningDisplayMode:c}}=r,u=n.getIsPinned(),[d,h]=(0,o.useState)(!1);return(0,S.jsx)(cn,Object.assign({},IS(),{open:d,title:u?l.unpin:l.pin,children:(0,S.jsx)(Ge.A,Object.assign({"aria-label":l.pin,onClick:e=>{h(!1),e.stopPropagation(),n.pin(!u&&t)},onMouseEnter:()=>h(!0),onMouseLeave:()=>h(!1),size:"small"},i,{sx:e=>Object.assign({height:"24px",width:"24px"},NA(null==i?void 0:i.sx,e)),children:u?(0,S.jsx)(a,{}):(0,S.jsx)(s,{fontSize:"small",style:{transform:`rotate(${"sticky"===c?135:"top"===t?180:0}deg)`}})}))}))},WS=e=>{var{row:t,table:n}=e,r=SS(e,["row","table"]);const{getState:i,options:{enableRowPinning:o,rowPinningDisplayMode:s}}=n,{density:l}=i();if(!NA(o,t))return null;const c=Object.assign({row:t,table:n},r);return"top-and-bottom"!==s||t.getIsPinned()?(0,S.jsx)(US,Object.assign({pinningPosition:"bottom"===s?"bottom":"top"},c)):(0,S.jsxs)(a.A,{sx:{display:"flex",flexDirection:"compact"===l?"row":"column"},children:[(0,S.jsx)(US,Object.assign({pinningPosition:"top"},c)),(0,S.jsx)(US,Object.assign({pinningPosition:"bottom"},c))]})},qS=e=>{var t,{row:n,staticRowIndex:r,table:i}=e,o=SS(e,["row","staticRowIndex","table"]);const{getState:a,options:{enableMultiRowSelection:s,localization:l,muiSelectAllCheckboxProps:c,muiSelectCheckboxProps:u,selectAllMode:d}}=i,{density:h,isLoading:p}=a(),f=!n,g=f?"page"===d?i.getIsAllPageRowsSelected():i.getIsAllRowsSelected():void 0,m=f?g:iS({row:n,table:i}),y=Object.assign(Object.assign({},f?NA(c,{table:i}):NA(u,{row:n,staticRowIndex:r,table:i})),o),v=n?oS({row:n,staticRowIndex:r,table:i}):void 0,b=aS({table:i}),x=Object.assign(Object.assign({"aria-label":f?l.toggleSelectAll:l.toggleSelectRow,checked:m,disabled:p||n&&!n.getCanSelect()||"mrt-row-create"===(null==n?void 0:n.id),inputProps:{"aria-label":f?l.toggleSelectAll:l.toggleSelectRow},onChange:e=>{e.stopPropagation(),f?b(e):v(e)},size:"compact"===h?"small":"medium"},y),{onClick:e=>{var t;e.stopPropagation(),null===(t=null==y?void 0:y.onClick)||void 0===t||t.call(y,e)},sx:e=>Object.assign({height:"compact"===h?"1.75rem":"2.5rem",m:"compact"!==h?"-0.4rem":void 0,width:"compact"===h?"1.75rem":"2.5rem",zIndex:0},NA(null==y?void 0:y.sx,e)),title:void 0});return(0,S.jsx)(cn,Object.assign({},IS(),{title:null!==(t=null==y?void 0:y.title)&&void 0!==t?t:f?l.toggleSelectAll:l.toggleSelectRow,children:!1===s?(0,S.jsx)(Cm,Object.assign({},x)):(0,S.jsx)(Rr,Object.assign({indeterminate:!m&&f?i.getIsSomeRowsSelected():(null==n?void 0:n.getIsSomeSelected())&&n.getCanSelectSubRows()},x))}))},HS=e=>{const{enableMultiRowSelection:t,enableSelectAll:n}=e;return Object.assign({Cell:({row:e,staticRowIndex:t,table:n})=>(0,S.jsx)(qS,{row:e,staticRowIndex:t,table:n}),Header:n&&t?({table:e})=>(0,S.jsx)(qS,{table:e}):void 0,grow:!1},$A({header:"select",id:"mrt-row-select",size:n?60:70,tableOptions:e}))},YS={ArrowDownwardIcon:Em.A,ArrowRightIcon:_m.A,CancelIcon:km.A,ChevronLeftIcon:Tm.A,ChevronRightIcon:Om.A,ClearAllIcon:Pm.A,CloseIcon:Im.A,ContentCopy:Mm.A,DensityLargeIcon:Lm.A,DensityMediumIcon:Rm.A,DensitySmallIcon:jm.A,DragHandleIcon:Fm.A,DynamicFeedIcon:Dm.A,EditIcon:Nm.A,ExpandMoreIcon:zm.A,FilterAltIcon:Vm.A,FilterListIcon:Bm.A,FilterListOffIcon:$m.A,FirstPageIcon:Gm.A,FullscreenExitIcon:Wm.A,FullscreenIcon:Um.A,KeyboardDoubleArrowDownIcon:qm.A,LastPageIcon:Hm.A,MoreHorizIcon:Ym.A,MoreVertIcon:Km.A,PushPinIcon:Xm.A,RestartAltIcon:Zm.A,SaveIcon:Jm.A,SearchIcon:Qm.A,SearchOffIcon:ey.A,SortIcon:ty.A,SyncAltIcon:ny.A,ViewColumnIcon:ry.A,VisibilityOffIcon:iy.A},KS={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"},XS={filterVariant:"text",maxSize:1e3,minSize:40,size:180},ZS={columnDefType:"display",enableClickToCopy:!1,enableColumnActions:!1,enableColumnDragging:!1,enableColumnFilter:!1,enableColumnOrdering:!1,enableEditing:!1,enableGlobalFilter:!1,enableGrouping:!1,enableHiding:!1,enableResizing:!1,enableSorting:!1},JS=e=>{var t,{aggregationFns:n,autoResetExpanded:r=!1,columnFilterDisplayMode:i="subheader",columnResizeDirection:a,columnResizeMode:s="onChange",createDisplayMode:l="modal",defaultColumn:c,defaultDisplayColumn:u,editDisplayMode:d="modal",enableBatchRowSelection:h=!0,enableBottomToolbar:p=!0,enableColumnActions:f=!0,enableColumnFilters:g=!0,enableColumnOrdering:m=!1,enableColumnPinning:y=!1,enableColumnResizing:b=!1,enableColumnVirtualization:x,enableDensityToggle:w=!0,enableExpandAll:A=!0,enableExpanding:S,enableFacetedValues:C=!1,enableFilterMatchHighlighting:E=!0,enableFilters:_=!0,enableFullScreenToggle:k=!0,enableGlobalFilter:T=!0,enableGlobalFilterRankedResults:O=!0,enableGrouping:P=!1,enableHiding:I=!0,enableMultiRowSelection:M=!0,enableMultiSort:L=!0,enablePagination:R=!0,enableRowPinning:j=!1,enableRowSelection:F=!1,enableRowVirtualization:D,enableSelectAll:N=!0,enableSorting:z=!0,enableStickyHeader:V=!1,enableTableFooter:B=!0,enableTableHead:$=!0,enableToolbarInternalActions:G=!0,enableTopToolbar:U=!0,filterFns:W,icons:q,layoutMode:H,localization:Y,manualFiltering:K,manualGrouping:X,manualPagination:Z,manualSorting:J,mrtTheme:Q,paginationDisplayMode:ee="default",positionActionsColumn:te="first",positionCreatingRow:ne="top",positionExpandColumn:re="first",positionGlobalFilter:ie="right",positionPagination:oe="bottom",positionToolbarAlertBanner:ae="top",positionToolbarDropZone:se="top",rowNumberDisplayMode:le="static",rowPinningDisplayMode:ce="sticky",selectAllMode:ue="page",sortingFns:de}=e,he=SS(e,["aggregationFns","autoResetExpanded","columnFilterDisplayMode","columnResizeDirection","columnResizeMode","createDisplayMode","defaultColumn","defaultDisplayColumn","editDisplayMode","enableBatchRowSelection","enableBottomToolbar","enableColumnActions","enableColumnFilters","enableColumnOrdering","enableColumnPinning","enableColumnResizing","enableColumnVirtualization","enableDensityToggle","enableExpandAll","enableExpanding","enableFacetedValues","enableFilterMatchHighlighting","enableFilters","enableFullScreenToggle","enableGlobalFilter","enableGlobalFilterRankedResults","enableGrouping","enableHiding","enableMultiRowSelection","enableMultiSort","enablePagination","enableRowPinning","enableRowSelection","enableRowVirtualization","enableSelectAll","enableSorting","enableStickyHeader","enableTableFooter","enableTableHead","enableToolbarInternalActions","enableTopToolbar","filterFns","icons","layoutMode","localization","manualFiltering","manualGrouping","manualPagination","manualSorting","mrtTheme","paginationDisplayMode","positionActionsColumn","positionCreatingRow","positionExpandColumn","positionGlobalFilter","positionPagination","positionToolbarAlertBanner","positionToolbarDropZone","rowNumberDisplayMode","rowPinningDisplayMode","selectAllMode","sortingFns"]);const pe=(0,v.A)();return q=(0,o.useMemo)((()=>Object.assign(Object.assign({},YS),q)),[q]),Y=(0,o.useMemo)((()=>Object.assign(Object.assign({},KS),Y)),[Y]),Q=(0,o.useMemo)((()=>((e,t)=>{var n;const r=NA(e,t),i=null!==(n=null==r?void 0:r.baseBackgroundColor)&&void 0!==n?n:"dark"===t.palette.mode?(0,Gh.a)(t.palette.background.default,.05):t.palette.background.default;return Object.assign({baseBackgroundColor:i,draggingBorderColor:t.palette.primary.main,matchHighlightColor:"dark"===t.palette.mode?(0,Gh.e$)(t.palette.warning.dark,.25):(0,Gh.a)(t.palette.warning.light,.5),menuBackgroundColor:(0,Gh.a)(i,.07),pinnedRowBackgroundColor:(0,Gh.X4)(t.palette.primary.main,.1),selectedRowBackgroundColor:(0,Gh.X4)(t.palette.primary.main,.2)},r)})(Q,pe)),[Q,pe]),n=(0,o.useMemo)((()=>Object.assign(Object.assign({},sS),n)),[]),W=(0,o.useMemo)((()=>Object.assign(Object.assign({},AS),W)),[]),de=(0,o.useMemo)((()=>Object.assign(Object.assign({},QA),de)),[]),c=(0,o.useMemo)((()=>Object.assign(Object.assign({},XS),c)),[c]),u=(0,o.useMemo)((()=>Object.assign(Object.assign({},ZS),u)),[u]),[x,D]=(0,o.useMemo)((()=>[x,D]),[]),a||(a=pe.direction||"ltr"),"semantic"===(H=H||(b?"grid-no-grow":"semantic"))&&(D||x)&&(H="grid"),D&&(V=!0),!1===R&&void 0===Z&&(Z=!0),(null===(t=he.data)||void 0===t?void 0:t.length)||(K=!0,X=!0,Z=!0,J=!0),Object.assign({aggregationFns:n,autoResetExpanded:r,columnFilterDisplayMode:i,columnResizeDirection:a,columnResizeMode:s,createDisplayMode:l,defaultColumn:c,defaultDisplayColumn:u,editDisplayMode:d,enableBatchRowSelection:h,enableBottomToolbar:p,enableColumnActions:f,enableColumnFilters:g,enableColumnOrdering:m,enableColumnPinning:y,enableColumnResizing:b,enableColumnVirtualization:x,enableDensityToggle:w,enableExpandAll:A,enableExpanding:S,enableFacetedValues:C,enableFilterMatchHighlighting:E,enableFilters:_,enableFullScreenToggle:k,enableGlobalFilter:T,enableGlobalFilterRankedResults:O,enableGrouping:P,enableHiding:I,enableMultiRowSelection:M,enableMultiSort:L,enablePagination:R,enableRowPinning:j,enableRowSelection:F,enableRowVirtualization:D,enableSelectAll:N,enableSorting:z,enableStickyHeader:V,enableTableFooter:B,enableTableHead:$,enableToolbarInternalActions:G,enableTopToolbar:U,filterFns:W,getCoreRowModel:e=>hg((()=>[e.options.data]),(t=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(t,i,o){void 0===i&&(i=0);const a=[];for(let l=0;le._autoResetPageIndex()))),getExpandedRowModel:S||P?e=>hg((()=>[e.getState().expanded,e.getPreExpandedRowModel(),e.options.paginateExpandedRows]),((e,t,n)=>!t.rows.length||!0!==e&&!Object.keys(null!=e?e:{}).length?t:n?Qg(t):t),pg(e.options,"debugTable")):void 0,getFacetedMinMaxValues:C?(e,t)=>hg((()=>{var n;return[null==(n=e.getColumn(t))?void 0:n.getFacetedRowModel()]}),(e=>{var n;if(!e)return;const r=null==(n=e.flatRows[0])?void 0:n.getUniqueValues(t);if(void 0===r)return;let i=[r,r];for(let n=0;ni[1]&&(i[1]=t)}}return i}),pg(e.options,"debugTable")):void 0,getFacetedRowModel:C?(e,t)=>hg((()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter,e.getFilteredRowModel()]),((n,r,i)=>{if(!n.rows.length||(null==r||!r.length)&&!i)return n;const o=[...r.map((e=>e.id)).filter((e=>e!==t)),i?"__global__":void 0].filter(Boolean);return Zg(n.rows,(e=>{for(let t=0;thg((()=>{var n;return[null==(n=e.getColumn(t))?void 0:n.getFacetedRowModel()]}),(e=>{if(!e)return new Map;let n=new Map;for(let i=0;ihg((()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter]),((t,n,r)=>{if(!t.rows.length||(null==n||!n.length)&&!r){for(let e=0;e{var n;const r=e.getColumn(t.id);if(!r)return;const o=r.getFilterFn();o&&i.push({id:t.id,filterFn:o,resolvedValue:null!=(n=null==o.resolveFilterValue?void 0:o.resolveFilterValue(t.value))?n:t.value})}));const a=n.map((e=>e.id)),s=e.getGlobalFilterFn(),l=e.getAllLeafColumns().filter((e=>e.getCanGlobalFilter()));let c,u;r&&s&&l.length&&(a.push("__global__"),l.forEach((e=>{var t;o.push({id:e.id,filterFn:s,resolvedValue:null!=(t=null==s.resolveFilterValue?void 0:s.resolveFilterValue(r))?t:r})})));for(let e=0;e{n.columnFiltersMeta[t]=e}))}if(o.length){for(let e=0;e{n.columnFiltersMeta[t]=e}))){n.columnFilters.__global__=!0;break}}!0!==n.columnFilters.__global__&&(n.columnFilters.__global__=!1)}}return Zg(t.rows,(e=>{for(let t=0;te._autoResetPageIndex()))):void 0,getGroupedRowModel:P?Jg():void 0,getPaginationRowModel:R?e=>hg((()=>[e.getState().pagination,e.getPrePaginationRowModel(),e.options.paginateExpandedRows?void 0:e.getState().expanded]),((t,n)=>{if(!n.rows.length)return n;const{pageSize:r,pageIndex:i}=t;let{rows:o,flatRows:a,rowsById:s}=n;const l=r*i,c=l+r;let u;o=o.slice(l,c),u=e.options.paginateExpandedRows?{rows:o,flatRows:a,rowsById:s}:Qg({rows:o,flatRows:a,rowsById:s}),u.flatRows=[];const d=e=>{u.flatRows.push(e),e.subRows.length&&e.subRows.forEach(d)};return u.rows.forEach(d),u}),pg(e.options,"debugTable")):void 0,getSortedRowModel:z?e=>hg((()=>[e.getState().sorting,e.getPreSortedRowModel()]),((t,n)=>{if(!n.rows.length||null==t||!t.length)return n;const r=e.getState().sorting,i=[],o=r.filter((t=>{var n;return null==(n=e.getColumn(t.id))?void 0:n.getCanSort()})),a={};o.forEach((t=>{const n=e.getColumn(t.id);n&&(a[t.id]={sortUndefined:n.columnDef.sortUndefined,invertSorting:n.columnDef.invertSorting,sortingFn:n.getSortingFn()})}));const s=e=>{const t=e.map((e=>({...e})));return t.sort(((e,t)=>{for(let r=0;r{var t;i.push(e),null!=(t=e.subRows)&&t.length&&(e.subRows=s(e.subRows))})),t};return{rows:s(n.rows),flatRows:i,rowsById:n.rowsById}}),pg(e.options,"debugTable",0,(()=>e._autoResetPageIndex()))):void 0,getSubRows:e=>null==e?void 0:e.subRows,icons:q,layoutMode:H,localization:Y,manualFiltering:K,manualGrouping:X,manualPagination:Z,manualSorting:J,mrtTheme:Q,paginationDisplayMode:ee,positionActionsColumn:te,positionCreatingRow:ne,positionExpandColumn:re,positionGlobalFilter:ie,positionPagination:oe,positionToolbarAlertBanner:ae,positionToolbarDropZone:se,rowNumberDisplayMode:le,rowPinningDisplayMode:ce,selectAllMode:ue,sortingFns:de},he)},QS={children:null,sx:{minWidth:0,p:0,width:0}},eC=e=>Object.assign(Object.assign(Object.assign(Object.assign({},$A({id:"mrt-row-spacer",size:0,tableOptions:e})),{grow:!0}),ZS),{muiTableBodyCellProps:QS,muiTableFooterCellProps:QS,muiTableHeadCellProps:QS}),tC=e=>{const{getIsSomeRowsPinned:t,getPrePaginationRowModel:n,getState:r,options:{enablePagination:i,enableRowPinning:a,rowCount:s}}=e,{columnOrder:l,density:c,globalFilter:u,isFullScreen:d,isLoading:h,pagination:p,showSkeletons:f,sorting:g}=r(),m=e.options.columns.length,y=null!=s?s:n().rows.length,v=(0,o.useReducer)((()=>({})),{})[1],b=(0,o.useRef)(),x=(0,o.useRef)();(0,o.useEffect)((()=>{"undefined"!=typeof window&&(b.current=document.body.style.height)}),[]),(0,o.useEffect)((()=>{if("undefined"!=typeof window)if(d)x.current=document.body.getBoundingClientRect().top,document.body.style.height="100dvh";else{if(document.body.style.height=b.current,!x.current)return;window.scrollTo({behavior:"instant",top:-1*x.current})}}),[d]),(0,o.useEffect)((()=>{m!==l.length&&e.setColumnOrder(JA(e.options))}),[m]),(0,o.useEffect)((()=>{if(!i||h||f)return;const{pageIndex:t,pageSize:n}=p;t*n>=y&&e.setPageIndex(Math.ceil(y/n)-1)}),[y]);const w=(0,o.useRef)(g);(0,o.useEffect)((()=>{g.length&&(w.current=g)}),[g]),(0,o.useEffect)((()=>{nS(e)&&(u?e.setSorting([]):e.setSorting((()=>w.current||[])))}),[u]),(0,o.useEffect)((()=>{a&&t()&&setTimeout((()=>{v()}),150)}),[c])},nC=e=>{var t,n,r,i,a,s,l,c,u,d,h,p,f,g,m,y,v,b,x,w,A,C,E,_,k,T,O,P,I,M,L,R,j,F,D;const N=(0,o.useRef)(null),z=(0,o.useRef)(null),V=(0,o.useRef)(null),B=(0,o.useRef)({}),$=(0,o.useRef)({}),G=(0,o.useRef)(null),U=(0,o.useRef)(null),W=(0,o.useRef)({}),q=(0,o.useRef)(null),H=(0,o.useRef)(null),Y=(0,o.useRef)(null),K=(0,o.useRef)(null),X=(0,o.useMemo)((()=>{var t,n,r;const i=null!==(t=e.initialState)&&void 0!==t?t:{};return i.columnOrder=null!==(n=i.columnOrder)&&void 0!==n?n:JA(Object.assign(Object.assign({},e),{state:Object.assign(Object.assign({},e.initialState),e.state)})),i.globalFilterFn=null!==(r=e.globalFilterFn)&&void 0!==r?r:"fuzzy",i}),[]);e.initialState=X;const[Z,J]=(0,o.useState)(null!==(t=X.actionCell)&&void 0!==t?t:null),[Q,ee]=(0,o.useState)(null!==(n=X.creatingRow)&&void 0!==n?n:null),[te,ne]=(0,o.useState)((()=>Object.assign({},...OA(e.columns).map((e=>{var t,n,r,i;return{[TA(e)]:e.filterFn instanceof Function?null!==(t=e.filterFn.name)&&void 0!==t?t:"custom":null!==(i=null!==(n=e.filterFn)&&void 0!==n?n:null===(r=null==X?void 0:X.columnFilterFns)||void 0===r?void 0:r[TA(e)])&&void 0!==i?i:MA(e)}}))))),[re,ie]=(0,o.useState)(null!==(r=X.columnOrder)&&void 0!==r?r:[]),[oe,ae]=(0,o.useState)(null!==(i=X.columnSizingInfo)&&void 0!==i?i:{}),[se,le]=(0,o.useState)(null!==(a=null==X?void 0:X.density)&&void 0!==a?a:"comfortable"),[ce,ue]=(0,o.useState)(null!==(s=X.draggingColumn)&&void 0!==s?s:null),[de,he]=(0,o.useState)(null!==(l=X.draggingRow)&&void 0!==l?l:null),[pe,fe]=(0,o.useState)(null!==(c=X.editingCell)&&void 0!==c?c:null),[ge,me]=(0,o.useState)(null!==(u=X.editingRow)&&void 0!==u?u:null),[ye,ve]=(0,o.useState)(null!==(d=X.globalFilterFn)&&void 0!==d?d:"fuzzy"),[be,xe]=(0,o.useState)(null!==(h=X.grouping)&&void 0!==h?h:[]),[we,Ae]=(0,o.useState)(null!==(p=X.hoveredColumn)&&void 0!==p?p:null),[Se,Ce]=(0,o.useState)(null!==(f=X.hoveredRow)&&void 0!==f?f:null),[Ee,_e]=(0,o.useState)(null!==(g=null==X?void 0:X.isFullScreen)&&void 0!==g&&g),[ke,Te]=(0,o.useState)(null!==(m=null==X?void 0:X.pagination)&&void 0!==m?m:{pageIndex:0,pageSize:10}),[Oe,Pe]=(0,o.useState)(null!==(y=null==X?void 0:X.showAlertBanner)&&void 0!==y&&y),[Ie,Me]=(0,o.useState)(null!==(v=null==X?void 0:X.showColumnFilters)&&void 0!==v&&v),[Le,Re]=(0,o.useState)(null!==(b=null==X?void 0:X.showGlobalFilter)&&void 0!==b&&b),[je,Fe]=(0,o.useState)(null!==(x=null==X?void 0:X.showToolbarDropZone)&&void 0!==x&&x);e.state=Object.assign({actionCell:Z,columnFilterFns:te,columnOrder:re,columnSizingInfo:oe,creatingRow:Q,density:se,draggingColumn:ce,draggingRow:de,editingCell:pe,editingRow:ge,globalFilterFn:ye,grouping:be,hoveredColumn:we,hoveredRow:Se,isFullScreen:Ee,pagination:ke,showAlertBanner:Oe,showColumnFilters:Ie,showGlobalFilter:Le,showToolbarDropZone:je},e.state);const De=e,Ne=(0,o.useRef)([]);var ze;De.columns=De.state.columnSizingInfo.isResizingColumn||De.state.draggingColumn||De.state.draggingRow?Ne.current:PA({columnDefs:[...[GA(De)&&(ze=De,Object.assign({Cell:({row:e,table:t})=>(0,S.jsx)(WS,{row:e,table:t}),grow:!1},$A({header:"pin",id:"mrt-row-pin",size:60,tableOptions:ze}))),UA(De)&&zS(De),qA(De)&&FS(De),WA(De)&&$S(De),HA(De)&&HS(De),YA(De)&&GS(De)].filter(Boolean),...De.columns,...[KA(De)&&eC(De)].filter(Boolean)],tableOptions:De}),Ne.current=De.columns,De.data=(0,o.useMemo)((()=>!De.state.isLoading&&!De.state.showSkeletons||De.data.length?De.data:[...Array(Math.min(De.state.pagination.pageSize,20)).fill(null)].map((()=>Object.assign({},...OA(De.columns).map((e=>({[TA(e)]:null}))))))),[De.data,De.state.isLoading,De.state.showSkeletons]);const Ve=function(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=o.useState((()=>({current:Kg(t)}))),[r,i]=o.useState((()=>n.current.initialState));return n.current.setOptions((t=>({...t,...e,state:{...r,...e.state},onStateChange:t=>{i(t),null==e.onStateChange||e.onStateChange(t)}}))),n.current}(Object.assign(Object.assign({onColumnOrderChange:ie,onColumnSizingInfoChange:ae,onGroupingChange:xe,onPaginationChange:Te},De),{globalFilterFn:null===(w=De.filterFns)||void 0===w?void 0:w[null!=ye?ye:"fuzzy"]}));return Ve.refs={actionCellRef:z,bottomToolbarRef:V,editInputRefs:B,filterInputRefs:$,lastSelectedRowId:N,searchInputRef:G,tableContainerRef:U,tableFooterRef:K,tableHeadCellRefs:W,tableHeadRef:Y,tablePaperRef:q,topToolbarRef:H},Ve.setActionCell=null!==(A=De.onActionCellChange)&&void 0!==A?A:J,Ve.setCreatingRow=e=>{var t,n;let r=e;!0===e&&(r=DA(Ve)),null!==(n=null===(t=null==De?void 0:De.onCreatingRowChange)||void 0===t?void 0:t.call(De,r))&&void 0!==n||ee(r)},Ve.setColumnFilterFns=null!==(C=De.onColumnFilterFnsChange)&&void 0!==C?C:ne,Ve.setDensity=null!==(E=De.onDensityChange)&&void 0!==E?E:le,Ve.setDraggingColumn=null!==(_=De.onDraggingColumnChange)&&void 0!==_?_:ue,Ve.setDraggingRow=null!==(k=De.onDraggingRowChange)&&void 0!==k?k:he,Ve.setEditingCell=null!==(T=De.onEditingCellChange)&&void 0!==T?T:fe,Ve.setEditingRow=null!==(O=De.onEditingRowChange)&&void 0!==O?O:me,Ve.setGlobalFilterFn=null!==(P=De.onGlobalFilterFnChange)&&void 0!==P?P:ve,Ve.setHoveredColumn=null!==(I=De.onHoveredColumnChange)&&void 0!==I?I:Ae,Ve.setHoveredRow=null!==(M=De.onHoveredRowChange)&&void 0!==M?M:Ce,Ve.setIsFullScreen=null!==(L=De.onIsFullScreenChange)&&void 0!==L?L:_e,Ve.setShowAlertBanner=null!==(R=De.onShowAlertBannerChange)&&void 0!==R?R:Pe,Ve.setShowColumnFilters=null!==(j=De.onShowColumnFiltersChange)&&void 0!==j?j:Me,Ve.setShowGlobalFilter=null!==(F=De.onShowGlobalFilterChange)&&void 0!==F?F:Re,Ve.setShowToolbarDropZone=null!==(D=De.onShowToolbarDropZoneChange)&&void 0!==D?D:Fe,tC(Ve),Ve},rC=e=>nC(JS(e)),iC=(e,t)=>{const n=ly(e);return void 0===t||(t>=0&&t=0&&t>e.endIndex+e.overscan&&n.push(t)),n},oC=e=>{var t,n,r,i;const{getState:a,options:{columnVirtualizerInstanceRef:s,columnVirtualizerOptions:l,enableColumnPinning:c,enableColumnVirtualization:u},refs:{tableContainerRef:d}}=e,{columnPinning:h,columnVisibility:p,draggingColumn:f}=a();if(!u)return;const g=NA(l,{table:e}),m=e.getVisibleLeafColumns(),[y,v]=(0,o.useMemo)((()=>c?[e.getLeftVisibleLeafColumns().map((e=>e.getPinnedIndex())),e.getRightVisibleLeafColumns().map((e=>m.length-e.getPinnedIndex()-1)).sort(((e,t)=>e-t))]:[[],[]]),[h,p,c]),b=y.length,x=v.length,w=(0,o.useMemo)((()=>(null==f?void 0:f.id)?m.findIndex((e=>e.id===(null==f?void 0:f.id))):void 0),[null==f?void 0:f.id]),A=vy(Object.assign({count:m.length,estimateSize:e=>m[e].getSize(),getScrollElement:()=>d.current,horizontal:!0,overscan:3,rangeExtractor:(0,o.useCallback)((e=>{const t=iC(e,w);return b||x?[...new Set([...y,...t,...v])]:t}),[y,v,w])},g)),S=A.getVirtualItems();A.virtualColumns=S;const C=S.length;if(C){const e=A.getTotalSize(),o=(null===(t=S[b])||void 0===t?void 0:t.start)||0,a=(null===(n=S[y.length-1])||void 0===n?void 0:n.end)||0,s=(null===(r=S[C-x])||void 0===r?void 0:r.start)||0,l=(null===(i=S[C-x-1])||void 0===i?void 0:i.end)||0;A.virtualPaddingLeft=o-a,A.virtualPaddingRight=e-l-(x?e-s:0)}return s&&(s.current=A),A},aC=(e,t)=>{var n;const{getRowModel:r,getState:i,options:{enableRowVirtualization:a,renderDetailPanel:s,rowVirtualizerInstanceRef:l,rowVirtualizerOptions:c},refs:{tableContainerRef:u}}=e,{density:d,draggingRow:h,expanded:p}=i();if(!a)return;const f=NA(c,{table:e}),g=null!==(n=null==t?void 0:t.length)&&void 0!==n?n:r().rows.length,m="compact"===d?37:"comfortable"===d?58:73,y=vy(Object.assign({count:s?2*g:g,estimateSize:e=>s&&e%2==1?!0===p?100:0:m,getScrollElement:()=>u.current,measureElement:"undefined"!=typeof window&&-1===navigator.userAgent.indexOf("Firefox")?e=>null==e?void 0:e.getBoundingClientRect().height:void 0,overscan:4,rangeExtractor:(0,o.useCallback)((e=>{var t;return iC(e,null!==(t=null==h?void 0:h.index)&&void 0!==t?t:0)}),[h])},f));return y.virtualRows=y.getVirtualItems(),l&&(l.current=y),y},sC=e=>{const{getRowModel:t,getState:n,options:{data:r,enableGlobalFilterRankedResults:i,positionCreatingRow:a}}=e,{creatingRow:s,expanded:l,globalFilter:c,pagination:u,rowPinning:d,sorting:h}=n();return(0,o.useMemo)((()=>tS(e)),[s,r,i,l,t().rows,c,u.pageIndex,u.pageSize,a,d,h])},lC=["string","number"],cC=({cell:e,rowRef:t,staticColumnIndex:n,staticRowIndex:r,table:i})=>{var o,s,l;const{getState:c,options:{enableFilterMatchHighlighting:u,mrtTheme:{matchHighlightColor:d}}}=i,{column:h,row:p}=e,{columnDef:f}=h,{globalFilter:g,globalFilterFn:m}=c(),y=h.getFilterValue();let v=e.getIsAggregated()&&f.AggregatedCell?f.AggregatedCell({cell:e,column:h,row:p,table:i}):p.getIsGrouped()&&!e.getIsGrouped()?null:e.getIsGrouped()&&f.GroupedCell?f.GroupedCell({cell:e,column:h,row:p,table:i}):void 0;const b=void 0!==v;if(b||(v=e.renderValue()),u&&!1!==f.enableFilterMatchHighlighting&&String(v)&&lC.includes(typeof v)&&(y&&lC.includes(typeof y)&&["autocomplete","text"].includes(f.filterVariant)||g&&lC.includes(typeof g)&&h.getCanGlobalFilter())){const e=null==hv?void 0:hv({matchExactly:"fuzzy"!==(y?f._filterFn:m),query:(null!==(o=null!=y?y:g)&&void 0!==o?o:"").toString(),text:null==v?void 0:v.toString()});((null==e?void 0:e.length)>1||(null===(s=null==e?void 0:e[0])||void 0===s?void 0:s.match))&&(v=(0,S.jsx)("span",{"aria-label":v,role:"note",children:null!==(l=null==e?void 0:e.map((({key:e,match:t,text:n})=>(0,S.jsx)(a.A,{"aria-hidden":"true",component:"span",sx:t?{backgroundColor:d,borderRadius:"2px",color:e=>"dark"===e.palette.mode?e.palette.common.white:e.palette.common.black,padding:"2px 1px"}:void 0,children:n},e))))&&void 0!==l?l:v}))}return f.Cell&&!b&&(v=f.Cell({cell:e,column:h,renderedCellValue:v,row:p,rowRef:t,staticColumnIndex:n,staticRowIndex:r,table:i})),v},uC=e=>{var t,{cell:n,table:r}=e,i=SS(e,["cell","table"]);const{options:{localization:a,muiCopyButtonProps:s}}=r,{column:l,row:c}=n,{columnDef:u}=l,[d,h]=(0,o.useState)(!1),p=Object.assign(Object.assign(Object.assign({},NA(s,{cell:n,column:l,row:c,table:r})),NA(u.muiCopyButtonProps,{cell:n,column:l,row:c,table:r})),i);return(0,S.jsx)(cn,Object.assign({},IS("top"),{title:null!==(t=null==p?void 0:p.title)&&void 0!==t?t:d?a.copiedToClipboard:a.clickToCopy,children:(0,S.jsx)(dn.A,Object.assign({onClick:e=>{return t=e,r=n.getValue(),t.stopPropagation(),navigator.clipboard.writeText(r),h(!0),void setTimeout((()=>h(!1)),4e3);var t,r},size:"small",type:"button",variant:"text"},p,{sx:e=>Object.assign({backgroundColor:"transparent",border:"none",color:"inherit",cursor:"copy",fontFamily:"inherit",fontSize:"inherit",letterSpacing:"inherit",m:"-0.25rem",minWidth:"unset",py:0,textAlign:"inherit",textTransform:"inherit"},NA(null==p?void 0:p.sx,e)),title:void 0}))}))},dC=e=>{var t,n,{cell:r,table:i}=e,a=SS(e,["cell","table"]);const{getState:s,options:{createDisplayMode:l,editDisplayMode:c,muiEditTextFieldProps:u},refs:{editInputRefs:d},setCreatingRow:h,setEditingCell:p,setEditingRow:f}=i,{column:g,row:m}=r,{columnDef:y}=g,{creatingRow:v,editingRow:b}=s(),{editSelectOptions:x,editVariant:w}=y,A=(null==v?void 0:v.id)===m.id,C=(null==b?void 0:b.id)===m.id,[E,_]=(0,o.useState)((()=>r.getValue())),k=Object.assign(Object.assign(Object.assign({},NA(u,{cell:r,column:g,row:m,table:i})),NA(y.muiEditTextFieldProps,{cell:r,column:g,row:m,table:i})),a),T=NA(x,{cell:r,column:g,row:m,table:i}),O="select"===w||(null==k?void 0:k.select),P=e=>{m._valuesCache[g.id]=e,A?h(m):C&&f(m)};return y.Edit?(0,S.jsx)(S.Fragment,{children:null===(t=y.Edit)||void 0===t?void 0:t.call(y,{cell:r,column:g,row:m,table:i})}):(0,S.jsx)(pv.A,Object.assign({disabled:!1===NA(y.enableEditing,m),fullWidth:!0,inputRef:e=>{e&&(d.current[g.id]=e,k.inputRef&&(k.inputRef=e))},label:["custom","modal"].includes(A?l:c)?y.header:void 0,margin:"none",name:g.id,placeholder:["custom","modal"].includes(A?l:c)?void 0:y.header,select:O,size:"small",value:null!=E?E:"",variant:"standard"},k,{InputProps:Object.assign(Object.assign(Object.assign({},"outlined"!==k.variant?{disableUnderline:"table"===c}:{}),k.InputProps),{sx:e=>{var t;return Object.assign({mb:0},NA(null===(t=null==k?void 0:k.InputProps)||void 0===t?void 0:t.sx,e))}}),SelectProps:{MenuProps:{disableScrollLock:!0}},inputProps:Object.assign({autoComplete:"new-password"},k.inputProps),onBlur:e=>{var t;null===(t=k.onBlur)||void 0===t||t.call(k,e),P(E),p(null)},onChange:e=>{var t;null===(t=k.onChange)||void 0===t||t.call(k,e),_(e.target.value),O&&P(e.target.value)},onClick:e=>{var t;e.stopPropagation(),null===(t=null==k?void 0:k.onClick)||void 0===t||t.call(k,e)},onKeyDown:e=>{var t,n;null===(t=k.onKeyDown)||void 0===t||t.call(k,e),"Enter"!==e.key||e.shiftKey||null===(n=d.current[g.id])||void 0===n||n.blur()},children:null!==(n=k.children)&&void 0!==n?n:null==T?void 0:T.map((e=>{const{label:t,value:n}=zA(e);return(0,S.jsx)(Tn,{sx:{alignItems:"center",display:"flex",gap:"0.5rem",m:0},value:n,children:t},n)}))}))},hC=e=>{var t,n,r,i,a,{cell:s,numRows:l,rowRef:c,staticColumnIndex:u,staticRowIndex:d,table:h}=e,p=SS(e,["cell","numRows","rowRef","staticColumnIndex","staticRowIndex","table"]);const f=(0,v.A)(),{getState:g,options:{columnResizeDirection:m,columnResizeMode:y,createDisplayMode:b,editDisplayMode:x,enableCellActions:w,enableClickToCopy:A,enableColumnOrdering:C,enableColumnPinning:E,enableGrouping:_,layoutMode:k,mrtTheme:{draggingBorderColor:T},muiSkeletonProps:O,muiTableBodyCellProps:P},setHoveredColumn:I}=h,{actionCell:M,columnSizingInfo:L,creatingRow:R,density:j,draggingColumn:F,draggingRow:D,editingCell:N,editingRow:z,hoveredColumn:V,hoveredRow:B,isLoading:$,showSkeletons:G}=g(),{column:U,row:W}=s,{columnDef:q}=U,{columnDefType:H}=q,Y={cell:s,column:U,row:W,table:h},K=Object.assign(Object.assign(Object.assign({},NA(P,Y)),NA(q.muiTableBodyCellProps,Y)),p),X=NA(O,{cell:s,column:U,row:W,table:h}),[Z,J]=(0,o.useState)(100);(0,o.useEffect)((()=>{if(!$&&!G||100!==Z)return;const e=U.getSize();J("display"===H?e/2:Math.round(Math.random()*(e-e/3)+e/3))}),[$,G]);const Q=(0,o.useMemo)((()=>{const e=(null==F?void 0:F.id)===U.id,t=(null==V?void 0:V.id)===U.id,n=(null==D?void 0:D.id)===W.id,r=(null==B?void 0:B.id)===W.id,i=U.getIsFirstColumn(),o=U.getIsLastColumn(),a=l&&d===l-1,s=L.isResizingColumn===U.id,c=s&&"onChange"===y,u=c?`2px solid ${T} !important`:e||n?`1px dashed ${f.palette.grey[500]} !important`:t||r||s?`2px dashed ${T} !important`:void 0;return c?"ltr"===m?{borderRight:u}:{borderLeft:u}:u?{borderBottom:n||r||a&&!s?u:void 0,borderLeft:e||t||(n||r)&&i?u:void 0,borderRight:e||t||(n||r)&&o?u:void 0,borderTop:n||r?u:void 0}:void 0}),[L.isResizingColumn,F,D,V,B,d]),ee=E&&"group"!==q.columnDefType&&U.getIsPinned(),te=VA({cell:s,table:h}),ne=te&&!["custom","modal"].includes(x)&&("table"===x||(null==z?void 0:z.id)===W.id||(null==N?void 0:N.id)===s.id)&&!W.getIsGrouped(),re=te&&"row"===b&&(null==R?void 0:R.id)===W.id,ie=(!0===NA(A,s)||!0===NA(q.enableClickToCopy,s))&&!["context-menu",!1].includes(NA(q.enableClickToCopy,s)),oe=NA(w,s),ae={cell:s,table:h};return(0,S.jsx)(Yy,Object.assign({align:"rtl"===f.direction?"right":"left","data-index":u,"data-pinned":!!ee||void 0},K,{onContextMenu:e=>{var t;null===(t=null==K?void 0:K.onContextMenu)||void 0===t||t.call(K,e),oe&&(e.preventDefault(),h.setActionCell(s),h.refs.actionCellRef.current=e.currentTarget)},onDoubleClick:e=>{var t;null===(t=null==K?void 0:K.onDoubleClick)||void 0===t||t.call(K,e),BA({cell:s,table:h})},onDragEnter:e=>{var t;null===(t=null==K?void 0:K.onDragEnter)||void 0===t||t.call(K,e),_&&"drop-zone"===(null==V?void 0:V.id)&&I(null),C&&F&&I(!1!==q.enableColumnOrdering?U:null)},onDragOver:e=>{!1!==q.enableColumnOrdering&&e.preventDefault()},sx:e=>Object.assign(Object.assign({"&:hover":{outline:(null==M?void 0:M.id)===s.id||"cell"===x&&te||"table"===x&&(re||ne)?`1px solid ${e.palette.grey[500]}`:void 0,textOverflow:"clip"},alignItems:(null==k?void 0:k.startsWith("grid"))?"center":void 0,cursor:oe?"context-menu":te&&"cell"===x?"pointer":"inherit",outline:(null==M?void 0:M.id)===s.id?`1px solid ${e.palette.grey[500]}`:void 0,outlineOffset:"-1px",overflow:"hidden",p:"compact"===j?"display"===H?"0 0.5rem":"0.5rem":"comfortable"===j?"display"===H?"0.5rem 0.75rem":"1rem":"display"===H?"1rem 1.25rem":"1.5rem",textOverflow:"display"!==H?"ellipsis":void 0,whiteSpace:W.getIsPinned()||"compact"===j?"nowrap":"normal"},TS({column:U,table:h,tableCellProps:K,theme:e})),Q),children:null!==(t=K.children)&&void 0!==t?t:(0,S.jsxs)(S.Fragment,{children:[s.getIsPlaceholder()?null!==(r=null===(n=q.PlaceholderCell)||void 0===n?void 0:n.call(q,{cell:s,column:U,row:W,table:h}))&&void 0!==r?r:null:!1!==G&&($||G)?(0,S.jsx)(tp,Object.assign({animation:"wave",height:20,width:Z},X)):"display"!==H||!["mrt-row-expand","mrt-row-numbers","mrt-row-select"].includes(U.id)&&W.getIsGrouped()?re||ne?(0,S.jsx)(dC,{cell:s,table:h}):ie&&!1!==q.enableClickToCopy?(0,S.jsx)(uC,{cell:s,table:h,children:(0,S.jsx)(cC,Object.assign({},ae))}):(0,S.jsx)(cC,Object.assign({},ae)):null===(i=q.Cell)||void 0===i?void 0:i.call(q,{cell:s,column:U,renderedCellValue:s.renderValue(),row:W,rowRef:c,staticColumnIndex:u,staticRowIndex:d,table:h}),s.getIsGrouped()&&!q.GroupedCell&&(0,S.jsxs)(S.Fragment,{children:[" (",null===(a=W.subRows)||void 0===a?void 0:a.length,")"]})]})}))},pC=(0,o.memo)(hC,((e,t)=>t.cell===e.cell)),fC=e=>{var{parentRowRef:t,row:n,rowVirtualizer:r,staticRowIndex:i,table:o,virtualRow:a}=e,s=SS(e,["parentRowRef","row","rowVirtualizer","staticRowIndex","table","virtualRow"]);const{getState:l,getVisibleLeafColumns:c,options:{layoutMode:u,mrtTheme:{baseBackgroundColor:d},muiDetailPanelProps:h,muiTableBodyRowProps:p,renderDetailPanel:f}}=o,{isLoading:g}=l(),m=NA(p,{isDetailPanel:!0,row:n,staticRowIndex:i,table:o}),y=Object.assign(Object.assign({},NA(h,{row:n,table:o})),s),v=!g&&(null==f?void 0:f({row:n,table:o}));return(0,S.jsx)($y,Object.assign({className:"Mui-TableBodyCell-DetailPanel","data-index":f?2*i+1:i,ref:e=>{var t;e&&(null===(t=null==r?void 0:r.measureElement)||void 0===t||t.call(r,e))}},m,{sx:e=>{var n,r;return Object.assign({display:(null==u?void 0:u.startsWith("grid"))?"flex":void 0,position:a?"absolute":void 0,top:a?`${null===(r=null===(n=t.current)||void 0===n?void 0:n.getBoundingClientRect())||void 0===r?void 0:r.height}px`:void 0,transform:a?`translateY(${null==a?void 0:a.start}px)`:void 0,width:"100%"},NA(null==m?void 0:m.sx,e))},children:(0,S.jsx)(Yy,Object.assign({className:"Mui-TableBodyCell-DetailPanel",colSpan:c().length},y,{sx:e=>Object.assign({backgroundColor:a?d:void 0,borderBottom:n.getIsExpanded()?void 0:"none",display:(null==u?void 0:u.startsWith("grid"))?"flex":void 0,py:v&&n.getIsExpanded()?"1rem":0,transition:a?void 0:"all 150ms ease-in-out",width:"100%"},NA(null==y?void 0:y.sx,e)),children:a?n.getIsExpanded()&&v:(0,S.jsx)(O,{in:n.getIsExpanded(),mountOnEnter:!0,unmountOnExit:!0,children:v})}))}))},gC=e=>{var t,n,r,i,{columnVirtualizer:a,numRows:s,pinnedRowIds:l,row:c,rowVirtualizer:u,staticRowIndex:d,table:h,virtualRow:p}=e,f=SS(e,["columnVirtualizer","numRows","pinnedRowIds","row","rowVirtualizer","staticRowIndex","table","virtualRow"]);const g=(0,v.A)(),{getState:m,options:{enableRowOrdering:y,enableRowPinning:b,enableStickyFooter:x,enableStickyHeader:w,layoutMode:A,memoMode:C,mrtTheme:{baseBackgroundColor:E,pinnedRowBackgroundColor:_,selectedRowBackgroundColor:k},muiTableBodyRowProps:T,renderDetailPanel:O,rowPinningDisplayMode:P},refs:{tableFooterRef:I,tableHeadRef:M},setHoveredRow:L}=h,{density:R,draggingColumn:j,draggingRow:F,editingCell:D,editingRow:N,hoveredRow:z,isFullScreen:V,rowPinning:B}=m(),$=c.getVisibleCells(),{virtualColumns:G,virtualPaddingLeft:U,virtualPaddingRight:W}=null!=a?a:{},q=iS({row:c,table:h}),H=b&&c.getIsPinned(),Y=(null==F?void 0:F.id)===c.id,K=(null==z?void 0:z.id)===c.id,X=Object.assign(Object.assign({},NA(T,{row:c,staticRowIndex:d,table:h})),f),[Z,J]=(0,o.useMemo)((()=>b&&(null==P?void 0:P.includes("sticky"))&&l&&c.getIsPinned()?[[...l].reverse().indexOf(c.id),l.indexOf(c.id)]:[]),[l,B]),Q=(w||V)&&(null===(t=M.current)||void 0===t?void 0:t.clientHeight)||0,ee=x&&(null===(n=I.current)||void 0===n?void 0:n.clientHeight)||0,te=NA(null==X?void 0:X.sx,g),ne="compact"===R?37:"comfortable"===R?53:69,re=parseInt(null!==(i=null===(r=null==X?void 0:X.style)||void 0===r?void 0:r.height)&&void 0!==i?i:null==te?void 0:te.height,10)||void 0||ne,ie=(0,o.useRef)(null),oe=q?k:H?_:void 0,ae=!1!==(null==X?void 0:X.hover)?q?oe:"dark"===g.palette.mode?`${(0,Gh.a)(E,.3)}`:`${(0,Gh.e$)(E,.3)}`:void 0;return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsxs)($y,Object.assign({"data-index":O?2*d:d,"data-pinned":!!H||void 0,"data-selected":q||void 0,onDragEnter:e=>{y&&F&&L(c)},onDragOver:e=>{e.preventDefault()},ref:e=>{e&&(ie.current=e,null==u||u.measureElement(e))},selected:q},X,{style:Object.assign({transform:p?`translateY(${p.start}px)`:void 0},null==X?void 0:X.style),sx:e=>Object.assign({"&:hover td:after":ae?Object.assign({backgroundColor:(0,Gh.X4)(ae,.3)},_S):void 0,backgroundColor:`${E} !important`,bottom:!p&&void 0!==Z&&H?Z*re+(x?ee-1:0)+"px":void 0,boxSizing:"border-box",display:(null==A?void 0:A.startsWith("grid"))?"flex":void 0,opacity:H?.97:Y||K?.5:1,position:p?"absolute":(null==P?void 0:P.includes("sticky"))&&H?"sticky":"relative",td:Object.assign({},kS({table:h,theme:e})),"td:after":oe?Object.assign({backgroundColor:oe},_S):void 0,top:p?0:void 0!==J&&H?J*re+(w||V?Q-1:0)+"px":void 0,transition:p?"none":"all 150ms ease-in-out",width:"100%",zIndex:(null==P?void 0:P.includes("sticky"))&&H?2:0},te),children:[U?(0,S.jsx)("td",{style:{display:"flex",width:U}}):null,(null!=G?G:$).map(((e,t)=>{let n=e;a&&(t=e.index,n=$[t]);const r={cell:n,numRows:s,rowRef:ie,staticColumnIndex:t,staticRowIndex:d,table:h};return n?"cells"!==C||"data"!==n.column.columnDef.columnDefType||j||F||(null==D?void 0:D.id)===n.id||(null==N?void 0:N.id)===c.id?(0,S.jsx)(hC,Object.assign({},r),n.id):(0,S.jsx)(pC,Object.assign({},r),n.id):null})),W?(0,S.jsx)("td",{style:{display:"flex",width:W}}):null]})),O&&!c.getIsGrouped()&&(0,S.jsx)(fC,{parentRowRef:ie,row:c,rowVirtualizer:u,staticRowIndex:d,table:h,virtualRow:p})]})},mC=(0,o.memo)(gC,((e,t)=>e.row===t.row&&e.staticRowIndex===t.staticRowIndex)),yC=e=>{var t,n,r,i,a,s,{columnVirtualizer:l,table:c}=e,u=SS(e,["columnVirtualizer","table"]);const{getBottomRows:d,getIsSomeRowsPinned:h,getRowModel:p,getState:f,getTopRows:g,options:{enableStickyFooter:m,enableStickyHeader:y,layoutMode:v,localization:b,memoMode:x,muiTableBodyProps:w,renderDetailPanel:A,renderEmptyRowsFallback:C,rowPinningDisplayMode:E},refs:{tableFooterRef:_,tableHeadRef:k,tablePaperRef:T}}=c,{columnFilters:O,globalFilter:P,isFullScreen:I,rowPinning:M}=f(),L=Object.assign(Object.assign({},NA(w,{table:c})),u),R=(y||I)&&(null===(t=k.current)||void 0===t?void 0:t.clientHeight)||0,j=m&&(null===(n=_.current)||void 0===n?void 0:n.clientHeight)||0,F=(0,o.useMemo)((()=>{var e,t;return(null===(e=M.bottom)||void 0===e?void 0:e.length)||(null===(t=M.top)||void 0===t?void 0:t.length)?p().rows.filter((e=>e.getIsPinned())).map((e=>e.id)):[]}),[M,p().rows]),D=sC(c),N=aC(c,D),{virtualRows:z}=null!=N?N:{},V={columnVirtualizer:l,numRows:D.length,table:c};return(0,S.jsxs)(S.Fragment,{children:[!(null==E?void 0:E.includes("sticky"))&&h("top")&&(0,S.jsx)(jy,Object.assign({},L,{sx:e=>Object.assign({display:(null==v?void 0:v.startsWith("grid"))?"grid":void 0,position:"sticky",top:R-1,zIndex:1},NA(null==L?void 0:L.sx,e)),children:g().map(((e,t)=>{const n=Object.assign(Object.assign({},V),{row:e,staticRowIndex:t});return"rows"===x?(0,S.jsx)(mC,Object.assign({},n),e.id):(0,S.jsx)(gC,Object.assign({},n),e.id)}))})),(0,S.jsx)(jy,Object.assign({},L,{sx:e=>Object.assign({display:(null==v?void 0:v.startsWith("grid"))?"grid":void 0,height:N?`${N.getTotalSize()}px`:void 0,minHeight:D.length?void 0:"100px",position:"relative"},NA(null==L?void 0:L.sx,e)),children:null!==(r=null==L?void 0:L.children)&&void 0!==r?r:D.length?(0,S.jsx)(S.Fragment,{children:(null!=z?z:D).map(((e,t)=>{let n=e;if(N){if(A){if(e.index%2==1)return null;t=e.index/2}else t=e.index;n=D[t]}const r=Object.assign(Object.assign({},V),{pinnedRowIds:F,row:n,rowVirtualizer:N,staticRowIndex:t,virtualRow:N?e:void 0}),i=`${n.id}-${n.index}`;return"rows"===x?(0,S.jsx)(mC,Object.assign({},r),i):(0,S.jsx)(gC,Object.assign({},r),i)}))}):(0,S.jsx)("tr",{style:{display:(null==v?void 0:v.startsWith("grid"))?"grid":void 0},children:(0,S.jsx)("td",{colSpan:c.getVisibleLeafColumns().length,style:{display:(null==v?void 0:v.startsWith("grid"))?"grid":void 0},children:null!==(i=null==C?void 0:C({table:c}))&&void 0!==i?i:(0,S.jsx)(Jn.A,{sx:{color:"text.secondary",fontStyle:"italic",maxWidth:`min(100vw, ${null!==(s=null===(a=T.current)||void 0===a?void 0:a.clientWidth)&&void 0!==s?s:360}px)`,py:"2rem",textAlign:"center",width:"100%"},children:P||O.length?b.noResultsFound:b.noRecordsToDisplay})})})})),!(null==E?void 0:E.includes("sticky"))&&h("bottom")&&(0,S.jsx)(jy,Object.assign({},L,{sx:e=>Object.assign({bottom:j-1,display:(null==v?void 0:v.startsWith("grid"))?"grid":void 0,position:"sticky",zIndex:1},NA(null==L?void 0:L.sx,e)),children:d().map(((e,t)=>{const n=Object.assign(Object.assign({},V),{row:e,staticRowIndex:t});return"rows"===x?(0,S.jsx)(mC,Object.assign({},n),e.id):(0,S.jsx)(gC,Object.assign({},n),e.id)}))}))]})},vC=(0,o.memo)(yC,((e,t)=>e.table.options.data===t.table.options.data)),bC=e=>{var t,n,r,{footer:i,staticColumnIndex:o,table:a}=e,s=SS(e,["footer","staticColumnIndex","table"]);const l=(0,v.A)(),{getState:c,options:{enableColumnPinning:u,muiTableFooterCellProps:d}}=a,{density:h}=c(),{column:p}=i,{columnDef:f}=p,{columnDefType:g}=f,m=u&&"group"!==f.columnDefType&&p.getIsPinned(),y={column:p,table:a},b=Object.assign(Object.assign(Object.assign({},NA(d,y)),NA(f.muiTableFooterCellProps,y)),s);return(0,S.jsx)(Yy,Object.assign({align:"group"===g?"center":"rtl"===l.direction?"right":"left",colSpan:i.colSpan,"data-index":o,"data-pinned":!!m||void 0,variant:"footer"},b,{sx:e=>Object.assign(Object.assign({fontWeight:"bold",p:"compact"===h?"0.5rem":"comfortable"===h?"1rem":"1.5rem",verticalAlign:"top"},TS({column:p,header:i,table:a,tableCellProps:b,theme:e})),NA(null==b?void 0:b.sx,e)),children:null!==(t=b.children)&&void 0!==t?t:i.isPlaceholder?null:null!==(r=null!==(n=NA(f.Footer,{column:p,footer:i,table:a}))&&void 0!==n?n:f.footer)&&void 0!==r?r:null}))},xC=e=>{var t,{columnVirtualizer:n,footerGroup:r,table:i}=e,o=SS(e,["columnVirtualizer","footerGroup","table"]);const{options:{layoutMode:a,mrtTheme:{baseBackgroundColor:s},muiTableFooterRowProps:l}}=i,{virtualColumns:c,virtualPaddingLeft:u,virtualPaddingRight:d}=null!=n?n:{};if(!(null===(t=r.headers)||void 0===t?void 0:t.some((e=>"string"==typeof e.column.columnDef.footer&&!!e.column.columnDef.footer||e.column.columnDef.Footer))))return null;const h=Object.assign(Object.assign({},NA(l,{footerGroup:r,table:i})),o);return(0,S.jsxs)($y,Object.assign({},h,{sx:e=>Object.assign({backgroundColor:s,display:(null==a?void 0:a.startsWith("grid"))?"flex":void 0,position:"relative",width:"100%"},NA(null==h?void 0:h.sx,e)),children:[u?(0,S.jsx)("th",{style:{display:"flex",width:u}}):null,(null!=c?c:r.headers).map(((e,t)=>{let o=e;return n&&(t=e.index,o=r.headers[t]),o?(0,S.jsx)(bC,{footer:o,staticColumnIndex:t,table:i},o.id):null})),d?(0,S.jsx)("th",{style:{display:"flex",width:d}}):null]}))},wC=e=>{var{columnVirtualizer:t,table:n}=e,r=SS(e,["columnVirtualizer","table"]);const{getFooterGroups:i,getState:o,options:{enableStickyFooter:a,layoutMode:s,muiTableFooterProps:l},refs:{tableFooterRef:c}}=n,{isFullScreen:u}=o(),d=Object.assign(Object.assign({},NA(l,{table:n})),r),h=(u||a)&&!1!==a;return(0,S.jsx)(bv,Object.assign({},d,{ref:e=>{c.current=e,(null==d?void 0:d.ref)&&(d.ref.current=e)},sx:e=>Object.assign({bottom:h?0:void 0,display:(null==s?void 0:s.startsWith("grid"))?"grid":void 0,opacity:h?.97:void 0,outline:h?"light"===e.palette.mode?`1px solid ${e.palette.grey[300]}`:`1px solid ${e.palette.grey[700]}`:void 0,position:h?"sticky":"relative",zIndex:h?1:void 0},NA(null==d?void 0:d.sx,e)),children:i().map((e=>(0,S.jsx)(xC,{columnVirtualizer:t,footerGroup:e,table:n},e.id)))}))},AC=e=>[{divider:!1,label:e.filterFuzzy,option:"fuzzy",symbol:"≈"},{divider:!1,label:e.filterContains,option:"contains",symbol:"*"},{divider:!1,label:e.filterStartsWith,option:"startsWith",symbol:"a"},{divider:!0,label:e.filterEndsWith,option:"endsWith",symbol:"z"},{divider:!1,label:e.filterEquals,option:"equals",symbol:"="},{divider:!0,label:e.filterNotEquals,option:"notEquals",symbol:"≠"},{divider:!1,label:e.filterBetween,option:"between",symbol:"⇿"},{divider:!0,label:e.filterBetweenInclusive,option:"betweenInclusive",symbol:"⬌"},{divider:!1,label:e.filterGreaterThan,option:"greaterThan",symbol:">"},{divider:!1,label:e.filterGreaterThanOrEqualTo,option:"greaterThanOrEqualTo",symbol:"≥"},{divider:!1,label:e.filterLessThan,option:"lessThan",symbol:"<"},{divider:!0,label:e.filterLessThanOrEqualTo,option:"lessThanOrEqualTo",symbol:"≤"},{divider:!1,label:e.filterEmpty,option:"empty",symbol:"∅"},{divider:!1,label:e.filterNotEmpty,option:"notEmpty",symbol:"!∅"}],SC=["between","betweenInclusive","inNumberRange"],CC=["empty","notEmpty"],EC=["arrIncludesSome","arrIncludesAll","arrIncludes"],_C=["range-slider","date-range","datetime-range","range"],kC=e=>{var t,n,r,i,{anchorEl:a,header:s,onSelect:l,setAnchorEl:c,setFilterValue:u,table:d}=e,h=SS(e,["anchorEl","header","onSelect","setAnchorEl","setFilterValue","table"]);const{getState:p,options:{columnFilterModeOptions:f,globalFilterModeOptions:g,localization:m,mrtTheme:{menuBackgroundColor:y},renderColumnFilterModeMenuItems:v,renderGlobalFilterModeMenuItems:b},setColumnFilterFns:x,setGlobalFilterFn:w}=d,{density:A,globalFilterFn:C}=p(),{column:E}=null!=s?s:{},{columnDef:_}=null!=E?E:{},k=null==E?void 0:E.getFilterValue();let T=null!==(t=null==_?void 0:_.columnFilterModeOptions)&&void 0!==t?t:f;_C.includes(null==_?void 0:_.filterVariant)&&(T=[...SC,...null!=T?T:[]].filter((e=>SC.includes(e))));const O=(0,o.useMemo)((()=>AC(m).filter((e=>_?void 0===T||(null==T?void 0:T.includes(e.option)):(!g||g.includes(e.option))&&["contains","fuzzy","startsWith"].includes(e.option)))),[]),P=e=>{var t,n;const r=null!==(t=null==_?void 0:_._filterFn)&&void 0!==t?t:"";s&&E?e!==r&&(x((t=>Object.assign(Object.assign({},t),{[s.id]:e}))),CC.includes(e)?" "===k||CC.includes(r)?k&&E.setFilterValue(k):E.setFilterValue(" "):"multi-select"===(null==_?void 0:_.filterVariant)||EC.includes(e)?k instanceof String||(null==k?void 0:k.length)?(E.setFilterValue([]),null==u||u([])):k&&E.setFilterValue(k):(null===(n=null==_?void 0:_.filterVariant)||void 0===n?void 0:n.includes("range"))||SC.includes(e)?Array.isArray(k)&&((null==k?void 0:k.every((e=>""===e)))||SC.includes(r))?E.setFilterValue(k):(E.setFilterValue(["",""]),null==u||u("")):Array.isArray(k)?(E.setFilterValue(""),null==u||u("")):" "===k&&CC.includes(r)?E.setFilterValue(void 0):E.setFilterValue(k)):w(e),c(null),null==l||l()},I=s&&_?_._filterFn:C;return(0,S.jsx)(Rl.A,Object.assign({MenuListProps:{dense:"compact"===A,sx:{backgroundColor:y}},anchorEl:a,anchorOrigin:{horizontal:"right",vertical:"center"},disableScrollLock:!0,onClose:()=>c(null),open:!!a},h,{children:null!==(i=s&&E&&_?null!==(r=null===(n=_.renderColumnFilterModeMenuItems)||void 0===n?void 0:n.call(_,{column:E,internalFilterOptions:O,onSelectFilterMode:P,table:d}))&&void 0!==r?r:null==v?void 0:v({column:E,internalFilterOptions:O,onSelectFilterMode:P,table:d}):null==b?void 0:b({internalFilterOptions:O,onSelectFilterMode:P,table:d}))&&void 0!==i?i:O.map((({divider:e,label:t,option:n,symbol:r},i)=>(0,S.jsx)(MS,{divider:e,icon:r,label:t,onClick:()=>P(n),selected:n===I,table:d,value:n},i)))}))},TC=e=>{var t,n,r,i,a,s,l,c,u,d,{anchorEl:h,header:p,setAnchorEl:f,table:g}=e,m=SS(e,["anchorEl","header","setAnchorEl","table"]);const{getAllLeafColumns:y,getState:v,options:{columnFilterDisplayMode:b,columnFilterModeOptions:x,enableColumnFilterModes:w,enableColumnFilters:A,enableColumnPinning:C,enableColumnResizing:E,enableGrouping:_,enableHiding:k,enableSorting:T,enableSortingRemoval:O,icons:{ClearAllIcon:P,DynamicFeedIcon:I,FilterListIcon:M,FilterListOffIcon:L,PushPinIcon:R,RestartAltIcon:j,SortIcon:F,ViewColumnIcon:D,VisibilityOffIcon:N},localization:z,mrtTheme:{menuBackgroundColor:V},renderColumnActionsMenuItems:B},refs:{filterInputRefs:$},setColumnFilterFns:G,setColumnOrder:U,setColumnSizingInfo:W,setShowColumnFilters:q}=g,{column:H}=p,{columnDef:Y}=H,{columnSizing:K,columnVisibility:X,density:Z,showColumnFilters:J}=v(),Q=H.getFilterValue(),[ee,te]=(0,o.useState)(null),ne=e=>{H.pin(e),f(null)},re=()=>{q(!0),queueMicrotask((()=>{var e;return null===(e=$.current[`${H.id}-0`])||void 0===e?void 0:e.focus()})),f(null)},ie=e=>{e.stopPropagation(),te(e.currentTarget)},oe=!!Y.filterSelectOptions,ae=null!==(t=null==Y?void 0:Y.columnFilterModeOptions)&&void 0!==t?t:x,se=w&&!1!==Y.enableColumnFilterModes&&!oe&&(void 0===ae||!!(null==ae?void 0:ae.length)),le=[...T&&H.getCanSort()?[!1!==O&&(0,S.jsx)(MS,{icon:(0,S.jsx)(P,{}),label:z.clearSort,onClick:()=>{H.clearSorting(),f(null)},table:g},0),(0,S.jsx)(MS,{disabled:"asc"===H.getIsSorted(),icon:(0,S.jsx)(F,{style:{transform:"rotate(180deg) scaleX(-1)"}}),label:null===(n=z.sortByColumnAsc)||void 0===n?void 0:n.replace("{column}",String(Y.header)),onClick:()=>{H.toggleSorting(!1),f(null)},table:g},1),(0,S.jsx)(MS,{disabled:"desc"===H.getIsSorted(),divider:A||_||k,icon:(0,S.jsx)(F,{}),label:null===(r=z.sortByColumnDesc)||void 0===r?void 0:r.replace("{column}",String(Y.header)),onClick:()=>{H.toggleSorting(!0),f(null)},table:g},2)]:[],...A&&H.getCanFilter()?[(0,S.jsx)(MS,{disabled:!Q||Array.isArray(Q)&&!Q.filter((e=>e)).length,icon:(0,S.jsx)(L,{}),label:z.clearFilter,onClick:()=>{H.setFilterValue(void 0),f(null),["empty","notEmpty"].includes(Y._filterFn)&&G((e=>{var t;return Object.assign(Object.assign({},e),{[p.id]:null!==(t=null==ae?void 0:ae[0])&&void 0!==t?t:"fuzzy"})}))},table:g},3),"subheader"===b&&(0,S.jsx)(MS,{disabled:J&&!w,divider:_||k,icon:(0,S.jsx)(M,{}),label:null===(i=z.filterByColumn)||void 0===i?void 0:i.replace("{column}",String(Y.header)),onClick:J?ie:re,onOpenSubMenu:se?ie:void 0,table:g},4),se&&(0,S.jsx)(kC,{anchorEl:ee,header:p,onSelect:re,setAnchorEl:te,table:g},5)].filter(Boolean):[],..._&&H.getCanGroup()?[(0,S.jsx)(MS,{divider:C,icon:(0,S.jsx)(I,{}),label:null===(a=z[H.getIsGrouped()?"ungroupByColumn":"groupByColumn"])||void 0===a?void 0:a.replace("{column}",String(Y.header)),onClick:()=>{H.toggleGrouping(),U((e=>["mrt-row-expand",...e])),f(null)},table:g},6)]:[],...C&&H.getCanPin()?[(0,S.jsx)(MS,{disabled:"left"===H.getIsPinned()||!H.getCanPin(),icon:(0,S.jsx)(R,{style:{transform:"rotate(90deg)"}}),label:z.pinToLeft,onClick:()=>ne("left"),table:g},7),(0,S.jsx)(MS,{disabled:"right"===H.getIsPinned()||!H.getCanPin(),icon:(0,S.jsx)(R,{style:{transform:"rotate(-90deg)"}}),label:z.pinToRight,onClick:()=>ne("right"),table:g},8),(0,S.jsx)(MS,{disabled:!H.getIsPinned(),divider:k,icon:(0,S.jsx)(R,{}),label:z.unpin,onClick:()=>ne(!1),table:g},9)]:[],...E&&H.getCanResize()?[(0,S.jsx)(MS,{disabled:!K[H.id],icon:(0,S.jsx)(j,{}),label:z.resetColumnSize,onClick:()=>{W((e=>Object.assign(Object.assign({},e),{isResizingColumn:!1}))),H.resetSize(),f(null)},table:g},10)]:[],...k?[(0,S.jsx)(MS,{disabled:!H.getCanHide(),icon:(0,S.jsx)(N,{}),label:null===(s=z.hideColumn)||void 0===s?void 0:s.replace("{column}",String(Y.header)),onClick:()=>{H.toggleVisibility(!1),f(null)},table:g},11),(0,S.jsx)(MS,{disabled:!Object.values(X).filter((e=>!e)).length,icon:(0,S.jsx)(D,{}),label:null===(l=z.showAllColumns)||void 0===l?void 0:l.replace("{column}",String(Y.header)),onClick:()=>{y().filter((e=>!1!==e.columnDef.enableHiding)).forEach((e=>e.toggleVisibility(!0))),f(null)},table:g},12)]:[]].filter(Boolean);return(0,S.jsx)(Rl.A,Object.assign({MenuListProps:{dense:"compact"===Z,sx:{backgroundColor:V}},anchorEl:h,disableScrollLock:!0,onClose:()=>f(null),open:!!h},m,{children:null!==(d=null!==(u=null===(c=Y.renderColumnActionsMenuItems)||void 0===c?void 0:c.call(Y,{closeMenu:()=>f(null),column:H,internalColumnMenuItems:le,table:g}))&&void 0!==u?u:null==B?void 0:B({closeMenu:()=>f(null),column:H,internalColumnMenuItems:le,table:g}))&&void 0!==d?d:le}))},OC=e=>{var t,n,{header:r,table:i}=e,a=SS(e,["header","table"]);const{options:{icons:{MoreVertIcon:s},localization:l,muiColumnActionsButtonProps:c}}=i,{column:u}=r,{columnDef:d}=u,[h,p]=(0,o.useState)(null),f=Object.assign(Object.assign(Object.assign({},NA(c,{column:u,table:i})),NA(d.muiColumnActionsButtonProps,{column:u,table:i})),a);return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(cn,Object.assign({},IS("top"),{title:null!==(t=null==f?void 0:f.title)&&void 0!==t?t:l.columnActions,children:(0,S.jsx)(Ge.A,Object.assign({"aria-label":l.columnActions,onClick:e=>{e.stopPropagation(),e.preventDefault(),p(e.currentTarget)},size:"small"},f,{sx:e=>Object.assign({"&:hover":{opacity:1},height:"2rem",m:"-8px -4px",opacity:.3,transition:"all 150ms",width:"2rem"},NA(null==f?void 0:f.sx,e)),title:void 0,children:null!==(n=null==f?void 0:f.children)&&void 0!==n?n:(0,S.jsx)(s,{style:{transform:"scale(0.9)"}})}))})),h&&(0,S.jsx)(TC,{anchorEl:h,header:r,setAnchorEl:p,table:i})]})},PC=e=>{var t,n,r,{column:i,table:o}=e,a=SS(e,["column","table"]);const{getState:s,options:{localization:l,muiFilterCheckboxProps:c}}=o,{density:u}=s(),{columnDef:d}=i,h=Object.assign(Object.assign(Object.assign({},NA(c,{column:i,table:o})),NA(d.muiFilterCheckboxProps,{column:i,table:o})),a),p=null===(t=l.filterByColumn)||void 0===t?void 0:t.replace("{column}",d.header);return(0,S.jsx)(cn,Object.assign({},IS(),{title:null!==(n=null==h?void 0:h.title)&&void 0!==n?n:p,children:(0,S.jsx)(tg,{control:(0,S.jsx)(Rr,Object.assign({checked:"true"===i.getFilterValue(),color:void 0===i.getFilterValue()?"default":"primary",indeterminate:void 0===i.getFilterValue(),size:"compact"===u?"small":"medium"},h,{onChange:(e,t)=>{var n;i.setFilterValue(void 0===i.getFilterValue()?"true":"true"===i.getFilterValue()?"false":void 0),null===(n=null==h?void 0:h.onChange)||void 0===n||n.call(h,e,t)},onClick:e=>{var t;e.stopPropagation(),null===(t=null==h?void 0:h.onClick)||void 0===t||t.call(h,e)},sx:e=>Object.assign({height:"2.5rem",width:"2.5rem"},NA(null==h?void 0:h.sx,e))})),disableTypography:!0,label:null!==(r=h.title)&&void 0!==r?r:p,sx:{color:"text.secondary",fontWeight:"normal",mt:"-4px"},title:void 0})}))},IC=e=>{var t,n,r,i,s,l,c,u,d,h,p,f,g,m,y,v,{header:b,rangeFilterIndex:x,table:w}=e,A=SS(e,["header","rangeFilterIndex","table"]);const{options:{enableColumnFilterModes:C,icons:{CloseIcon:E,FilterListIcon:_},localization:k,manualFiltering:T,muiFilterAutocompleteProps:O,muiFilterDatePickerProps:P,muiFilterDateTimePickerProps:I,muiFilterTextFieldProps:M,muiFilterTimePickerProps:L},refs:{filterInputRefs:R},setColumnFilterFns:j}=w,{column:F}=b,{columnDef:D}=F,{filterVariant:N}=D,z={column:F,rangeFilterIndex:x,table:w},V=Object.assign(Object.assign(Object.assign({},NA(M,z)),NA(D.muiFilterTextFieldProps,z)),A),B=Object.assign(Object.assign({},NA(O,z)),NA(D.muiFilterAutocompleteProps,z)),$=Object.assign(Object.assign({},NA(P,z)),NA(D.muiFilterDatePickerProps,z)),G=Object.assign(Object.assign({},NA(I,z)),NA(D.muiFilterDateTimePickerProps,z)),U=Object.assign(Object.assign({},NA(L,z)),NA(D.muiFilterTimePickerProps,z)),{allowedColumnFilterOptions:W,currentFilterOption:q,facetedUniqueValues:H,isAutocompleteFilter:Y,isDateFilter:K,isMultiSelectFilter:X,isRangeFilter:Z,isSelectFilter:J,isTextboxFilter:Q}=LA({header:b,table:w}),ee=RA({header:b,table:w}),te=["empty","notEmpty"].includes(q)?k[`filter${(null===(n=null===(t=null==q?void 0:q.charAt)||void 0===t?void 0:t.call(q,0))||void 0===n?void 0:n.toUpperCase())+(null==q?void 0:q.slice(1))}`]:"",ne=Z?0===x?k.min:1===x?k.max:"":null!==(r=null==V?void 0:V.placeholder)&&void 0!==r?r:null===(i=k.filterByColumn)||void 0===i?void 0:i.replace("{column}",String(D.header)),re=!(!C||!1===D.enableColumnFilterModes||x||void 0!==W&&!(null==W?void 0:W.length)),[ie,oe]=(0,o.useState)(null),[ae,se]=(0,o.useState)((()=>{var e,t;return X?F.getFilterValue()||[]:Z?(null===(e=F.getFilterValue())||void 0===e?void 0:e[x])||"":null!==(t=F.getFilterValue())&&void 0!==t?t:""})),[le,ce]=(0,o.useState)(Y?ae:null),ue=(0,o.useCallback)((0,si.A)((e=>{Z?F.setFilterValue((t=>{const n=null!=t?t:["",""];return n[x]=null!=e?e:void 0,n})):F.setFilterValue(null!=e?e:void 0)}),Q?T?400:200:1),[]),de=e=>{se(null!=e?e:""),ue(e)},he=e=>{var t;const n="date"===V.type?e.target.valueAsDate:"number"===V.type?e.target.valueAsNumber:e.target.value;de(n),null===(t=null==V?void 0:V.onChange)||void 0===t||t.call(V,e)},pe=()=>{X?(se([]),F.setFilterValue([])):Z?(se(""),F.setFilterValue((e=>{const t=Array.isArray(e)&&e||["",""];return t[x]=void 0,t}))):(se(""),F.setFilterValue(void 0))},fe=(0,o.useRef)(!1);if((0,o.useEffect)((()=>{if(fe.current){const e=F.getFilterValue();void 0===e?pe():se(Z&&void 0!==x?e[x]:e)}fe.current=!0}),[F.getFilterValue()]),D.Filter)return(0,S.jsx)(S.Fragment,{children:null===(s=D.Filter)||void 0===s?void 0:s.call(D,{column:F,header:b,rangeFilterIndex:x,table:w})});const ge=Y||K||te?null:(0,S.jsx)(_v.A,{position:"end",sx:{mr:J||X?"20px":void 0},children:(0,S.jsx)(cn,{placement:"right",title:null!==(l=k.clearFilter)&&void 0!==l?l:"",children:(0,S.jsx)("span",{children:(0,S.jsx)(Ge.A,{"aria-label":k.clearFilter,disabled:!(null===(c=null==ae?void 0:ae.toString())||void 0===c?void 0:c.length),onClick:pe,size:"small",sx:{height:"2rem",transform:"scale(0.9)",width:"2rem"},children:(0,S.jsx)(E,{})})})})}),me=re?(0,S.jsxs)(_v.A,{position:"start",children:[(0,S.jsx)(cn,{title:k.changeFilterMode,children:(0,S.jsx)("span",{children:(0,S.jsx)(Ge.A,{"aria-label":k.changeFilterMode,onClick:e=>{oe(e.currentTarget)},size:"small",sx:{height:"1.75rem",width:"1.75rem"},children:(0,S.jsx)(_,{})})})}),te&&(0,S.jsx)(Ue.A,{label:te,onDelete:()=>{se(""),F.setFilterValue(void 0),j((e=>{var t;return Object.assign(Object.assign({},e),{[b.id]:null!==(t=null==W?void 0:W[0])&&void 0!==t?t:"fuzzy"})}))}})]}):null,ye=Object.assign(Object.assign({FormHelperTextProps:{sx:{fontSize:"0.75rem",lineHeight:"0.8rem",whiteSpace:"nowrap"}},InputProps:ge?{endAdornment:ge,startAdornment:me}:{startAdornment:me},fullWidth:!0,helperText:re?(0,S.jsx)("label",{children:k.filterMode.replace("{filterType}",k[`filter${(null===(u=null==q?void 0:q.charAt(0))||void 0===u?void 0:u.toUpperCase())+(null==q?void 0:q.slice(1))}`])}):null,inputProps:{"aria-label":ne,autoComplete:"new-password",disabled:!!te,sx:{textOverflow:"ellipsis",width:te?0:void 0},title:ne},inputRef:e=>{R.current[`${F.id}-${null!=x?x:0}`]=e,V.inputRef&&(V.inputRef=e)},margin:"none",placeholder:te||J||X?void 0:ne,variant:"standard"},V),{sx:e=>Object.assign({minWidth:K?"160px":C&&0===x?"110px":Z?"100px":te?"auto":"120px",mx:"-2px",p:0,width:"calc(100% + 4px)"},NA(null==V?void 0:V.sx,e))}),ve={onChange:e=>{de(e)},value:ae||null};return(0,S.jsxs)(S.Fragment,{children:[(null==N?void 0:N.startsWith("time"))?(0,S.jsx)(Kw,Object.assign({},ve,U,{slotProps:{field:Object.assign({clearable:!0,onClear:()=>pe()},null===(d=null==U?void 0:U.slotProps)||void 0===d?void 0:d.field),textField:Object.assign(Object.assign({},ye),null===(h=null==U?void 0:U.slotProps)||void 0===h?void 0:h.textField)}})):(null==N?void 0:N.startsWith("datetime"))?(0,S.jsx)(Pw,Object.assign({},ve,G,{slotProps:{field:Object.assign({clearable:!0,onClear:()=>pe()},null===(p=null==G?void 0:G.slotProps)||void 0===p?void 0:p.field),textField:Object.assign(Object.assign({},ye),null===(f=null==G?void 0:G.slotProps)||void 0===f?void 0:f.textField)}})):(null==N?void 0:N.startsWith("date"))?(0,S.jsx)(kv.l,Object.assign({},ve,$,{slotProps:{field:Object.assign({clearable:!0,onClear:()=>pe()},null===(g=null==$?void 0:$.slotProps)||void 0===g?void 0:g.field),textField:Object.assign(Object.assign({},ye),null===(m=null==$?void 0:$.slotProps)||void 0===m?void 0:m.textField)}})):Y?(0,S.jsx)(yt,Object.assign({freeSolo:!0,getOptionLabel:e=>zA(e).label,onChange:(e,t)=>(e=>{ce(e),de(zA(e).value)})(t),options:null!==(y=null==ee?void 0:ee.map((e=>zA(e))))&&void 0!==y?y:[]},B,{renderInput:e=>{var t;return(0,S.jsx)(pv.A,Object.assign({},e,ye,{InputProps:Object.assign(Object.assign({},e.InputProps),{startAdornment:null===(t=null==ye?void 0:ye.InputProps)||void 0===t?void 0:t.startAdornment}),inputProps:Object.assign(Object.assign({},e.inputProps),null==ye?void 0:ye.inputProps),onChange:he,onClick:e=>e.stopPropagation()}))},value:le})):(0,S.jsx)(pv.A,Object.assign({select:J||X},ye,{SelectProps:Object.assign({MenuProps:{disableScrollLock:!0},displayEmpty:!0,multiple:X,renderValue:X?e=>(null==e?void 0:e.length)?(0,S.jsx)(a.A,{sx:{display:"flex",flexWrap:"wrap",gap:"2px"},children:null==e?void 0:e.map((e=>{const t=null==ee?void 0:ee.find((t=>zA(t).value===e));return(0,S.jsx)(Ue.A,{label:zA(t).label},e)}))}):(0,S.jsx)(a.A,{sx:{opacity:.5},children:ne}):void 0},ye.SelectProps),onChange:he,onClick:e=>e.stopPropagation(),value:null!=ae?ae:"",children:(J||X)&&[(0,S.jsx)(Tn,{disabled:!0,divider:!0,hidden:!0,value:"",children:(0,S.jsx)(a.A,{sx:{opacity:.5},children:ne})},"p"),null!==(v=V.children)&&void 0!==v?v:null==ee?void 0:ee.map(((e,t)=>{var n;const{label:r,value:i}=zA(e);return(0,S.jsxs)(Tn,{sx:{alignItems:"center",display:"flex",gap:"0.5rem",m:0},value:i,children:[X&&(0,S.jsx)(Rr,{checked:(null!==(n=F.getFilterValue())&&void 0!==n?n:[]).includes(i),sx:{mr:"0.5rem"}}),r," ",!D.filterSelectOptions&&`(${H.get(i)})`]},`${t}-${i}`)}))]})),(0,S.jsx)(kC,{anchorEl:ie,header:b,setAnchorEl:oe,setFilterValue:se,table:w})]})},MC=e=>{var{header:t,table:n}=e,r=SS(e,["header","table"]);return(0,S.jsx)(a.A,Object.assign({},r,{sx:e=>Object.assign({display:"grid",gap:"1rem",gridTemplateColumns:"1fr 1fr"},NA(null==r?void 0:r.sx,e)),children:[0,1].map((e=>(0,S.jsx)(IC,{header:t,rangeFilterIndex:e,table:n},e)))}))},LC=e=>{var t,n,{header:r,table:i}=e,a=SS(e,["header","table"]);const{options:{enableColumnFilterModes:s,localization:l,muiFilterSliderProps:c},refs:{filterInputRefs:u}}=i,{column:d}=r,{columnDef:h}=d,p=h._filterFn,f=s&&!1!==h.enableColumnFilterModes,g=Object.assign(Object.assign(Object.assign({},NA(c,{column:d,table:i})),NA(h.muiFilterSliderProps,{column:d,table:i})),a);let[m,y]=void 0!==g.min&&void 0!==g.max?[g.min,g.max]:null!==(t=d.getFacetedMinMaxValues())&&void 0!==t?t:[0,1];Array.isArray(m)&&(m=m[0]),Array.isArray(y)&&(y=y[0]),null===m&&(m=0),null===y&&(y=1);const[v,b]=(0,o.useState)([m,y]),x=d.getFilterValue(),w=(0,o.useRef)(!1);return(0,o.useEffect)((()=>{w.current&&(void 0===x?b([m,y]):Array.isArray(x)&&b(x)),w.current=!0}),[x,m,y]),(0,S.jsxs)(xs,{children:[(0,S.jsx)(op.Ay,Object.assign({disableSwap:!0,max:y,min:m,onChange:(e,t)=>{b(t)},onChangeCommitted:(e,t)=>{Array.isArray(t)&&(t[0]<=m&&t[1]>=y?d.setFilterValue(void 0):d.setFilterValue(t))},value:v,valueLabelDisplay:"auto"},g,{slotProps:{input:{ref:e=>{var t,n;e&&(u.current[`${d.id}-0`]=e,(null===(n=null===(t=null==g?void 0:g.slotProps)||void 0===t?void 0:t.input)||void 0===n?void 0:n.ref)&&(g.slotProps.input.ref=e))}}},sx:e=>Object.assign({m:"auto",minWidth:d.getSize()-50+"px",mt:f?"6px":"10px",px:"4px",width:"calc(100% - 8px)"},NA(null==g?void 0:g.sx,e))})),f?(0,S.jsx)(Ph.A,{sx:{fontSize:"0.75rem",lineHeight:"0.8rem",m:"-3px -6px",whiteSpace:"nowrap"},children:l.filterMode.replace("{filterType}",l[`filter${(null===(n=null==p?void 0:p.charAt(0))||void 0===n?void 0:n.toUpperCase())+(null==p?void 0:p.slice(1))}`])}):null]})},RC=e=>{var{header:t,table:n}=e,r=SS(e,["header","table"]);const{getState:i,options:{columnFilterDisplayMode:o}}=n,{showColumnFilters:a}=i(),{column:s}=t,{columnDef:l}=s,{isRangeFilter:c}=LA({header:t,table:n});return(0,S.jsx)(O,Object.assign({in:a||"popover"===o,mountOnEnter:!0,unmountOnExit:!0},r,{children:"checkbox"===l.filterVariant?(0,S.jsx)(PC,{column:s,table:n}):"range-slider"===l.filterVariant?(0,S.jsx)(LC,{header:t,table:n}):c?(0,S.jsx)(MC,{header:t,table:n}):(0,S.jsx)(IC,{header:t,table:n})}))},jC=e=>{var t,n,{header:r,table:i}=e,s=SS(e,["header","table"]);const{options:{columnFilterDisplayMode:l,icons:{FilterAltIcon:c},localization:u},refs:{filterInputRefs:d},setShowColumnFilters:h}=i,{column:p}=r,{columnDef:f}=p,g=p.getFilterValue(),[m,y]=(0,o.useState)(null),{currentFilterOption:v,isMultiSelectFilter:b,isRangeFilter:x,isSelectFilter:w}=LA({header:r,table:i}),A=RA({header:r,table:i}),C=e=>zA(null==A?void 0:A.find((t=>zA(t).value===(void 0!==e?g[e]:g)))).label,E=Array.isArray(g)&&g.some(Boolean)||!!g&&!Array.isArray(g),_="popover"!==l||E?u.filteringByColumn.replace("{column}",String(f.header)).replace("{filterType}",v?u[`filter${(null===(n=null==v?void 0:v.charAt(0))||void 0===n?void 0:n.toUpperCase())+(null==v?void 0:v.slice(1))}`]:"").replace("{filterValue}",`"${Array.isArray(g)?g.map(((e,t)=>b?C(t):e)).join(`" ${x?u.and:u.or} "`):w?C():g}"`).replace('" "',""):null===(t=u.filterByColumn)||void 0===t?void 0:t.replace("{column}",String(f.header));return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(Ht.A,{in:"popover"===l||!!g&&!x||x&&(!!(null==g?void 0:g[0])||!!(null==g?void 0:g[1])),unmountOnExit:!0,children:(0,S.jsx)(a.A,{component:"span",sx:{flex:"0 0"},children:(0,S.jsx)(cn,{placement:"top",title:_,children:(0,S.jsx)(Ge.A,Object.assign({disableRipple:!0,onClick:e=>{"popover"===l?y(e.currentTarget):h(!0),queueMicrotask((()=>{var e,t,n,r;null===(t=null===(e=d.current[`${p.id}-0`])||void 0===e?void 0:e.focus)||void 0===t||t.call(e),null===(r=null===(n=d.current[`${p.id}-0`])||void 0===n?void 0:n.select)||void 0===r||r.call(n)})),e.stopPropagation()},size:"small"},s,{sx:e=>Object.assign({height:"16px",ml:"4px",opacity:E?1:.3,p:"8px",transform:"scale(0.75)",transition:"all 150ms ease-in-out",width:"16px"},NA(null==s?void 0:s.sx,e)),children:(0,S.jsx)(c,{})}))})})}),"popover"===l&&(0,S.jsx)(Ch.Ay,{anchorEl:m,anchorOrigin:{horizontal:"center",vertical:"top"},disableScrollLock:!0,onClick:e=>e.stopPropagation(),onClose:e=>{e.stopPropagation(),y(null)},onKeyDown:e=>"Enter"===e.key&&y(null),open:!!m,slotProps:{paper:{sx:{overflow:"visible"}}},transformOrigin:{horizontal:"center",vertical:"bottom"},children:(0,S.jsx)(a.A,{sx:{p:"1rem"},children:(0,S.jsx)(RC,{header:r,table:i})})})]})},FC=e=>{var{column:t,table:n,tableHeadCellRef:r}=e,i=SS(e,["column","table","tableHeadCellRef"]);const{getState:o,options:{enableColumnOrdering:a,muiColumnDragHandleProps:s},setColumnOrder:l,setDraggingColumn:c,setHoveredColumn:u}=n,{columnDef:d}=t,{columnOrder:h,draggingColumn:p,hoveredColumn:f}=o(),g=Object.assign(Object.assign(Object.assign({},NA(s,{column:t,table:n})),NA(d.muiColumnDragHandleProps,{column:t,table:n})),i);return(0,S.jsx)(DS,Object.assign({},g,{onDragEnd:e=>{var n;null===(n=null==g?void 0:g.onDragEnd)||void 0===n||n.call(g,e),"drop-zone"===(null==f?void 0:f.id)?t.toggleGrouping():a&&f&&(null==f?void 0:f.id)!==(null==p?void 0:p.id)&&l(IA(t,f,h)),c(null),u(null)},onDragStart:e=>{var n;null===(n=null==g?void 0:g.onDragStart)||void 0===n||n.call(g,e),c(t);try{e.dataTransfer.setDragImage(r.current,0,0)}catch(e){console.error(e)}},table:n}))},DC=e=>{var t,{header:n,table:r}=e,i=SS(e,["header","table"]);const{getState:o,options:{columnResizeDirection:s,columnResizeMode:l},setColumnSizingInfo:c}=r,{density:u}=o(),{column:d}=n,h=n.getResizeHandler(),p="compact"===u?"-8px":"comfortable"===u?"-16px":"-24px",f="display"===d.columnDef.columnDefType?"4px":"0";return(0,S.jsx)(a.A,{className:"Mui-TableHeadCell-ResizeHandle-Wrapper",onDoubleClick:()=>{c((e=>Object.assign(Object.assign({},e),{isResizingColumn:!1}))),d.resetSize()},onMouseDown:h,onTouchStart:h,style:{transform:d.getIsResizing()&&"onEnd"===l?`translateX(${("rtl"===s?-1:1)*(null!==(t=o().columnSizingInfo.deltaOffset)&&void 0!==t?t:0)}px)`:void 0},sx:e=>({"&:active > hr":{backgroundColor:e.palette.info.main,opacity:n.subHeaders.length||"onEnd"===l?1:0},cursor:"col-resize",left:"rtl"===s?f:void 0,ml:"rtl"===s?p:void 0,mr:"ltr"===s?p:void 0,position:"absolute",px:"4px",right:"ltr"===s?f:void 0}),children:(0,S.jsx)(ox.A,{className:"Mui-TableHeadCell-ResizeHandle-Divider",flexItem:!0,orientation:"vertical",sx:e=>Object.assign({borderRadius:"2px",borderWidth:"2px",height:"24px",touchAction:"none",transform:"translateX(4px)",transition:d.getIsResizing()?void 0:"all 150ms ease-in-out",userSelect:"none",zIndex:4},NA(null==i?void 0:i.sx,e))})})},NC=e=>{var{header:t,table:n}=e,r=SS(e,["header","table"]);const{getState:i,options:{icons:{ArrowDownwardIcon:o,SyncAltIcon:a},localization:s}}=n,{column:l}=t,{columnDef:c}=l,{isLoading:u,showSkeletons:d,sorting:h}=i(),p=!!l.getIsSorted(),f=u||d?"":l.getIsSorted()?"desc"===l.getIsSorted()?s.sortedByColumnDesc.replace("{column}",c.header):s.sortedByColumnAsc.replace("{column}",c.header):"desc"===l.getNextSortingOrder()?s.sortByColumnDesc.replace("{column}",c.header):s.sortByColumnAsc.replace("{column}",c.header),g=p?l.getIsSorted():void 0;return(0,S.jsx)(cn,{placement:"top",title:f,children:(0,S.jsx)(Bt,{badgeContent:h.length>1?l.getSortIndex()+1:0,overlap:"circular",children:(0,S.jsx)(nA,Object.assign({IconComponent:p?o:e=>(0,S.jsx)(a,Object.assign({},e,{direction:g,style:{transform:"rotate(-90deg) scaleX(0.9) translateX(-1px)"}})),active:!0,"aria-label":f,direction:g,onClick:e=>{var n;e.stopPropagation(),null===(n=t.column.getToggleSortingHandler())||void 0===n||n(e)}},r,{sx:e=>Object.assign({".MuiTableSortLabel-icon":{color:`${"dark"===e.palette.mode?e.palette.text.primary:e.palette.text.secondary} !important`},flex:"0 0",opacity:p?1:.3,transition:"all 150ms ease-in-out",width:"3ch"},NA(null==r?void 0:r.sx,e))}))})})},zC=e=>{var t,n,r,i,s,l,{columnVirtualizer:c,header:u,staticColumnIndex:d,table:h}=e,p=SS(e,["columnVirtualizer","header","staticColumnIndex","table"]);const f=(0,v.A)(),{getState:g,options:{columnFilterDisplayMode:m,columnResizeDirection:y,columnResizeMode:b,enableColumnActions:x,enableColumnDragging:w,enableColumnOrdering:A,enableColumnPinning:C,enableGrouping:E,enableMultiSort:_,layoutMode:k,mrtTheme:{draggingBorderColor:T},muiTableHeadCellProps:O},refs:{tableHeadCellRefs:P},setHoveredColumn:I}=h,{columnSizingInfo:M,density:L,draggingColumn:R,grouping:j,hoveredColumn:F,showColumnFilters:D}=g(),{column:N}=u,{columnDef:z}=N,{columnDefType:V}=z,B=Object.assign(Object.assign(Object.assign({},NA(O,{column:N,table:h})),NA(z.muiTableHeadCellProps,{column:N,table:h})),p),$=C&&"group"!==z.columnDefType&&N.getIsPinned(),G=(x||z.enableColumnActions)&&!1!==z.enableColumnActions,U=!1!==w&&!1!==z.enableColumnDragging&&(w||A&&!1!==z.enableColumnOrdering||E&&!1!==z.enableGrouping&&!j.includes(N.id)),W=(0,o.useMemo)((()=>{let e=0;return N.getCanSort()&&(e+=1),G&&(e+=1.75),U&&(e+=1.5),e}),[G,U]),q=(0,o.useMemo)((()=>{const e=M.isResizingColumn===N.id&&"onChange"===b&&!u.subHeaders.length,t=e?`2px solid ${T} !important`:(null==R?void 0:R.id)===N.id?`1px dashed ${f.palette.grey[500]}`:(null==F?void 0:F.id)===N.id?`2px dashed ${T}`:void 0;if(e)return"ltr"===y?{borderRight:t}:{borderLeft:t};return t?{borderLeft:t,borderRight:t,borderTop:t}:void 0}),[R,F,M.isResizingColumn]),H=null!==(t=NA(z.Header,{column:N,header:u,table:h}))&&void 0!==t?t:z.header;return(0,S.jsxs)(Yy,Object.assign({align:"group"===V?"center":"rtl"===f.direction?"right":"left",colSpan:u.colSpan,"data-index":d,"data-pinned":!!$||void 0,onDragEnter:e=>{E&&"drop-zone"===(null==F?void 0:F.id)&&I(null),A&&R&&"group"!==V&&I(!1!==z.enableColumnOrdering?N:null)},onDragOver:e=>{!1!==z.enableColumnOrdering&&e.preventDefault()},ref:e=>{var t;e&&(P.current[N.id]=e,"group"!==V&&(null===(t=null==c?void 0:c.measureElement)||void 0===t||t.call(c,e)))}},B,{sx:e=>Object.assign(Object.assign({"& :hover":{".MuiButtonBase-root":{opacity:1}},flexDirection:(null==k?void 0:k.startsWith("grid"))?"column":void 0,fontWeight:"bold",overflow:"visible",p:"compact"===L?"0.5rem":"comfortable"===L?"display"===V?"0.75rem":"1rem":"display"===V?"1rem 1.25rem":"1.5rem",pb:"display"===V?0:D||"compact"===L?"0.4rem":"0.6rem",pt:"group"===V||"compact"===L?"0.25rem":"comfortable"===L?".75rem":"1.25rem",userSelect:_&&N.getCanSort()?"none":void 0,verticalAlign:"top"},TS({column:N,header:u,table:h,tableCellProps:B,theme:e})),q),children:[u.isPlaceholder?null:null!==(n=B.children)&&void 0!==n?n:(0,S.jsxs)(a.A,{className:"Mui-TableHeadCell-Content",sx:{alignItems:"center",display:"flex",flexDirection:"right"===(null==B?void 0:B.align)?"row-reverse":"row",justifyContent:"group"===V||"center"===(null==B?void 0:B.align)?"center":N.getCanResize()?"space-between":"flex-start",position:"relative",width:"100%"},children:[(0,S.jsxs)(a.A,{className:"Mui-TableHeadCell-Content-Labels",onClick:N.getToggleSortingHandler(),sx:{alignItems:"center",cursor:N.getCanSort()&&"group"!==V?"pointer":void 0,display:"flex",flexDirection:"right"===(null==B?void 0:B.align)?"row-reverse":"row",overflow:"data"===V?"hidden":void 0,pl:"center"===(null==B?void 0:B.align)?`${W}rem`:void 0},children:[(0,S.jsx)(a.A,{className:"Mui-TableHeadCell-Content-Wrapper",sx:{"&:hover":{textOverflow:"clip"},minWidth:`${Math.min(null!==(i=null===(r=z.header)||void 0===r?void 0:r.length)&&void 0!==i?i:0,4)}ch`,overflow:"data"===V?"hidden":void 0,textOverflow:"ellipsis",whiteSpace:(null!==(l=null===(s=z.header)||void 0===s?void 0:s.length)&&void 0!==l?l:0)<20?"nowrap":"normal"},children:H}),N.getCanFilter()&&(0,S.jsx)(jC,{header:u,table:h}),N.getCanSort()&&(0,S.jsx)(NC,{header:u,table:h})]}),"group"!==V&&(0,S.jsxs)(a.A,{className:"Mui-TableHeadCell-Content-Actions",sx:{whiteSpace:"nowrap"},children:[U&&(0,S.jsx)(FC,{column:N,table:h,tableHeadCellRef:{current:P.current[N.id]}}),G&&(0,S.jsx)(OC,{header:u,table:h})]}),N.getCanResize()&&(0,S.jsx)(DC,{header:u,table:h})]}),"subheader"===m&&N.getCanFilter()&&(0,S.jsx)(RC,{header:u,table:h})]}))},VC=e=>{var{columnVirtualizer:t,headerGroup:n,table:r}=e,i=SS(e,["columnVirtualizer","headerGroup","table"]);const{options:{enableStickyHeader:o,layoutMode:a,mrtTheme:{baseBackgroundColor:s},muiTableHeadRowProps:l}}=r,{virtualColumns:c,virtualPaddingLeft:u,virtualPaddingRight:d}=null!=t?t:{},h=Object.assign(Object.assign({},NA(l,{headerGroup:n,table:r})),i);return(0,S.jsxs)($y,Object.assign({},h,{sx:e=>Object.assign({backgroundColor:s,boxShadow:`4px 0 8px ${(0,Gh.X4)(e.palette.common.black,.1)}`,display:(null==a?void 0:a.startsWith("grid"))?"flex":void 0,position:o&&"semantic"===a?"sticky":"relative",top:0},NA(null==h?void 0:h.sx,e)),children:[u?(0,S.jsx)("th",{style:{display:"flex",width:u}}):null,(null!=c?c:n.headers).map(((e,i)=>{let o=e;return t&&(i=e.index,o=n.headers[i]),o?(0,S.jsx)(zC,{columnVirtualizer:t,header:o,staticColumnIndex:i,table:r},o.id):null})),d?(0,S.jsx)("th",{style:{display:"flex",width:d}}):null]}))},BC=e=>{var t,n,r,{stackAlertBanner:i,table:s}=e,l=SS(e,["stackAlertBanner","table"]);const{getFilteredSelectedRowModel:c,getPrePaginationRowModel:u,getState:d,options:{enableRowSelection:h,enableSelectAll:p,localization:f,manualPagination:g,muiToolbarAlertBannerChipProps:m,muiToolbarAlertBannerProps:y,positionToolbarAlertBanner:v,renderToolbarAlertBannerContent:b,rowCount:x},refs:{tablePaperRef:w}}=s,{density:A,grouping:C,rowSelection:E,showAlertBanner:_}=d(),k=Object.assign(Object.assign({},NA(y,{table:s})),l),T=NA(m,{table:s}),P=null!=x?x:u().flatRows.length,I=(0,o.useMemo)((()=>g?Object.values(E).filter(Boolean).length:c().rows.length),[E,P,g]),M=I>0?(0,S.jsxs)(xs,{alignItems:"center",direction:"row",gap:"16px",children:[null===(n=null===(t=f.selectedCountOfRowCountRowsSelected)||void 0===t?void 0:t.replace("{selectedCount}",I.toLocaleString()))||void 0===n?void 0:n.replace("{rowCount}",P.toString()),(0,S.jsx)(dn.A,{onClick:e=>aS({table:s})(e,!1,!0),size:"small",sx:{p:"2px"},children:f.clearSelection})]}):null,L=C.length>0?(0,S.jsxs)("span",{children:[f.groupedBy," ",C.map(((e,t)=>(0,S.jsxs)(o.Fragment,{children:[t>0?f.thenBy:"",(0,S.jsx)(Ue.A,Object.assign({label:s.getColumn(e).columnDef.header,onDelete:()=>s.getColumn(e).toggleGrouping()},T))]},`${t}-${e}`)))]}):null;return(0,S.jsx)(O,{in:_||!!M||!!L,timeout:i?200:0,children:(0,S.jsx)(Cp,Object.assign({color:"info",icon:!1},k,{sx:e=>{var t,n;return Object.assign({"& .MuiAlert-message":{maxWidth:`calc(${null!==(n=null===(t=w.current)||void 0===t?void 0:t.clientWidth)&&void 0!==n?n:360}px - 1rem)`,width:"100%"},borderRadius:0,fontSize:"1rem",left:0,mb:i?0:"bottom"===v?"-1rem":void 0,p:0,position:"relative",right:0,top:0,width:"100%",zIndex:2},NA(null==k?void 0:k.sx,e))},children:null!==(r=null==b?void 0:b({groupedAlert:L,selectedAlert:M,table:s}))&&void 0!==r?r:(0,S.jsxs)(S.Fragment,{children:[(null==k?void 0:k.title)&&(0,S.jsx)(sA,{children:k.title}),(0,S.jsxs)(xs,{sx:{p:"head-overlay"!==v?"0.5rem 1rem":"spacious"===A?"0.75rem 1.25rem":"comfortable"===A?"0.5rem 0.75rem":"0.25rem 0.5rem"},children:[null==k?void 0:k.children,(null==k?void 0:k.children)&&(M||L)&&(0,S.jsx)("br",{}),(0,S.jsxs)(a.A,{sx:{display:"flex"},children:[h&&p&&"head-overlay"===v&&(0,S.jsx)(qS,{table:s})," ",M]}),M&&L&&(0,S.jsx)("br",{}),L]})]})}))})},$C=e=>{var{columnVirtualizer:t,table:n}=e,r=SS(e,["columnVirtualizer","table"]);const{getState:i,options:{enableStickyHeader:o,layoutMode:a,muiTableHeadProps:s,positionToolbarAlertBanner:l},refs:{tableHeadRef:c}}=n,{isFullScreen:u,showAlertBanner:d}=i(),h=Object.assign(Object.assign({},NA(s,{table:n})),r),p=o||u;return(0,S.jsx)(Ev,Object.assign({},h,{ref:e=>{c.current=e,(null==h?void 0:h.ref)&&(h.ref.current=e)},sx:e=>Object.assign({display:(null==a?void 0:a.startsWith("grid"))?"grid":void 0,opacity:.97,position:p?"sticky":"relative",top:p&&(null==a?void 0:a.startsWith("grid"))?0:void 0,zIndex:p?2:void 0},NA(null==h?void 0:h.sx,e)),children:"head-overlay"===l&&(d||n.getSelectedRowModel().rows.length>0)?(0,S.jsx)("tr",{style:{display:(null==a?void 0:a.startsWith("grid"))?"grid":void 0},children:(0,S.jsx)("th",{colSpan:n.getVisibleLeafColumns().length,style:{display:(null==a?void 0:a.startsWith("grid"))?"grid":void 0,padding:0},children:(0,S.jsx)(BC,{table:n})})}):n.getHeaderGroups().map((e=>(0,S.jsx)(VC,{columnVirtualizer:t,headerGroup:e,table:n},e.id)))}))},GC=e=>{var{table:t}=e,n=SS(e,["table"]);const{getFlatHeaders:r,getState:i,options:{columns:a,enableStickyHeader:s,enableTableFooter:l,enableTableHead:c,layoutMode:u,memoMode:d,muiTableProps:h,renderCaption:p}}=t,{columnSizing:f,columnSizingInfo:g,columnVisibility:m,isFullScreen:y}=i(),v=Object.assign(Object.assign({},NA(h,{table:t})),n),b=NA(p,{table:t}),x=(0,o.useMemo)((()=>{const e=r(),t={};for(let n=0;nObject.assign({borderCollapse:"separate",display:(null==u?void 0:u.startsWith("grid"))?"grid":void 0,position:"relative"},NA(null==v?void 0:v.sx,e)),children:[!!b&&(0,S.jsx)("caption",{children:b}),c&&(0,S.jsx)($C,Object.assign({},w)),"table-body"===d||g.isResizingColumn?(0,S.jsx)(vC,Object.assign({},w)):(0,S.jsx)(yC,Object.assign({},w)),l&&(0,S.jsx)(wC,Object.assign({},w))]}))},UC=e=>{var t,{table:n}=e,r=SS(e,["table"]);const{options:{localization:i,mrtTheme:{baseBackgroundColor:o},muiCircularProgressProps:s}}=n,l=Object.assign(Object.assign({},NA(s,{table:n})),r);return(0,S.jsx)(a.A,{sx:{alignItems:"center",backgroundColor:(0,Gh.X4)(o,.5),bottom:0,display:"flex",justifyContent:"center",left:0,maxHeight:"100vh",position:"absolute",right:0,top:0,width:"100%",zIndex:3},children:null!==(t=null==l?void 0:l.Component)&&void 0!==t?t:(0,S.jsx)(Jr,Object.assign({"aria-label":i.noRecordsToDisplay,id:"mrt-progress"},l))})},WC=e=>{var t,n,{table:r}=e,i=SS(e,["table"]);const{getState:o,options:{editDisplayMode:a,enableClickToCopy:s,enableEditing:l,icons:{ContentCopy:c,EditIcon:u},localization:d,mrtTheme:{menuBackgroundColor:h},renderCellActionMenuItems:p},refs:{actionCellRef:f}}=r,{actionCell:g,density:m}=o(),y=g,{row:v}=y,{column:b}=y,{columnDef:x}=b,w=e=>{null==e||e.stopPropagation(),r.setActionCell(null),f.current=null},A=[("context-menu"===NA(s,y)||"context-menu"===NA(x.enableClickToCopy,y))&&(0,S.jsx)(MS,{icon:(0,S.jsx)(c,{}),label:d.copy,onClick:e=>{e.stopPropagation(),navigator.clipboard.writeText(y.getValue()),w()},table:r},"mrt-copy"),NA(l,v)&&"cell"===a&&(0,S.jsx)(MS,{icon:(0,S.jsx)(u,{}),label:d.edit,onClick:()=>{BA({cell:y,table:r}),w()},table:r},"mrt-edit")].filter(Boolean),C={cell:y,closeMenu:w,column:b,internalMenuItems:A,row:v,table:r},E=null!==(n=null===(t=x.renderCellActionMenuItems)||void 0===t?void 0:t.call(x,C))&&void 0!==n?n:null==p?void 0:p(C);return(!!(null==E?void 0:E.length)||!!(null==A?void 0:A.length))&&(0,S.jsx)(Rl.A,Object.assign({MenuListProps:{dense:"compact"===m,sx:{backgroundColor:h}},anchorEl:f.current,disableScrollLock:!0,onClick:e=>e.stopPropagation(),onClose:w,open:!!y,transformOrigin:{horizontal:-100,vertical:8}},i,{children:null!=E?E:A}))},qC=e=>{var t,{open:n,table:r}=e,i=SS(e,["open","table"]);const{getState:o,options:{localization:a,muiCreateRowModalProps:s,muiEditRowDialogProps:l,onCreatingRowCancel:c,onEditingRowCancel:u,renderCreateRowDialogContent:d,renderEditRowDialogContent:h},setCreatingRow:p,setEditingRow:f}=r,{creatingRow:g,editingRow:m}=o(),y=null!=g?g:m,v=Object.assign(Object.assign(Object.assign({},NA(l,{row:y,table:r})),g&&NA(s,{row:y,table:r})),i),b=y.getAllCells().filter((e=>"data"===e.column.columnDef.columnDefType)).map((e=>(0,S.jsx)(dC,{cell:e,table:r},e.id)));return(0,S.jsx)(is.A,Object.assign({fullWidth:!0,maxWidth:"xs",onClose:(e,t)=>{var n;g?(null==c||c({row:y,table:r}),p(null)):(null==u||u({row:y,table:r}),f(null)),y._valuesCache={},null===(n=v.onClose)||void 0===n||n.call(v,e,t)},open:n},v,{children:null!==(t=g&&(null==d?void 0:d({internalEditComponents:b,row:y,table:r}))||(null==h?void 0:h({internalEditComponents:b,row:y,table:r})))&&void 0!==t?t:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(us,{sx:{textAlign:"center"},children:a.edit}),(0,S.jsx)(ws.A,{children:(0,S.jsx)("form",{onSubmit:e=>e.preventDefault(),children:(0,S.jsx)(xs,{sx:{gap:"32px",paddingTop:"16px",width:"100%"},children:b})})}),(0,S.jsx)(os.A,{sx:{p:"1.25rem"},children:(0,S.jsx)(CS,{row:y,table:r,variant:"text"})})]})}))},HC="undefined"!=typeof window?o.useLayoutEffect:o.useEffect,YC=e=>{var{table:t}=e,n=SS(e,["table"]);const{getState:r,options:{createDisplayMode:i,editDisplayMode:a,enableCellActions:s,enableStickyHeader:l,muiTableContainerProps:c},refs:{bottomToolbarRef:u,tableContainerRef:d,topToolbarRef:h}}=t,{actionCell:p,creatingRow:f,editingRow:g,isFullScreen:m,isLoading:y,showLoadingOverlay:v}=r(),b=!1!==v&&(y||v),[x,w]=(0,o.useState)(0),A=Object.assign(Object.assign({},NA(c,{table:t})),n);HC((()=>{var e,t,n,r;const i="undefined"!=typeof document&&null!==(t=null===(e=h.current)||void 0===e?void 0:e.offsetHeight)&&void 0!==t?t:0,o="undefined"!=typeof document&&null!==(r=null===(n=null==u?void 0:u.current)||void 0===n?void 0:n.offsetHeight)&&void 0!==r?r:0;w(i+o)}));const C="modal"===i&&f,E="modal"===a&&g;return(0,S.jsxs)(Ay,Object.assign({"aria-busy":b,"aria-describedby":b?"mrt-progress":void 0},A,{ref:e=>{e&&(d.current=e,(null==A?void 0:A.ref)&&(A.ref.current=e))},style:Object.assign({maxHeight:m?`calc(100vh - ${x}px)`:void 0},null==A?void 0:A.style),sx:e=>Object.assign({maxHeight:l?`clamp(350px, calc(100vh - ${x}px), 9999px)`:void 0,maxWidth:"100%",overflow:"auto",position:"relative"},NA(null==A?void 0:A.sx,e)),children:[b?(0,S.jsx)(UC,{table:t}):null,(0,S.jsx)(GC,{table:t}),(C||E)&&(0,S.jsx)(qC,{open:!0,table:t}),s&&p&&(0,S.jsx)(WC,{table:t})]}))},KC=e=>{var{isTopToolbar:t,table:n}=e,r=SS(e,["isTopToolbar","table"]);const{getState:i,options:{muiLinearProgressProps:o}}=n,{isSaving:a,showProgressBars:s}=i(),l=Object.assign(Object.assign({},NA(o,{isTopToolbar:t,table:n})),r);return(0,S.jsx)(O,{in:!1!==s&&(s||a),mountOnEnter:!0,sx:{bottom:t?0:void 0,position:"absolute",top:t?void 0:0,width:"100%"},unmountOnExit:!0,children:(0,S.jsx)(Zs,Object.assign({"aria-busy":"true","aria-label":"Loading",sx:{position:"relative"}},l))})},XC=[5,10,15,20,25,30,50,100],ZC=e=>{var{position:t="bottom",table:n}=e,r=SS(e,["position","table"]);const i=(0,v.A)(),o=(0,Wt.A)("(max-width: 720px)"),{getState:s,options:{enableToolbarInternalActions:l,icons:{ChevronLeftIcon:c,ChevronRightIcon:u,FirstPageIcon:d,LastPageIcon:h},localization:p,muiPaginationProps:f,paginationDisplayMode:g}}=n,{pagination:{pageIndex:m=0,pageSize:y=10},showGlobalFilter:b}=s(),x=Object.assign(Object.assign({},NA(f,{table:n})),r),w=n.getRowCount(),A=n.getPageCount(),C=A>2,E=m*y,_=Math.min(m*y+y,w),k=null!=x?x:{},{SelectProps:T={},disabled:O=!1,rowsPerPageOptions:P=XC,showFirstButton:I=C,showLastButton:M=C,showRowsPerPage:L=!0}=k,R=SS(k,["SelectProps","disabled","rowsPerPageOptions","showFirstButton","showLastButton","showRowsPerPage"]),j=m<=0||O,F=_>=w||O;o&&!1!==(null==T?void 0:T.native)&&(T.native=!0);const D=IS();return(0,S.jsxs)(a.A,{className:"MuiTablePagination-root",sx:{alignItems:"center",display:"flex",flexWrap:"wrap",gap:"8px",justifyContent:{md:"space-between",sm:"center"},justifySelf:"flex-end",mt:"top"===t&&l&&!b?"3rem":void 0,position:"relative",px:"8px",py:"12px",zIndex:2},children:[L&&(0,S.jsxs)(a.A,{sx:{alignItems:"center",display:"flex",gap:"8px"},children:[(0,S.jsx)(Th.A,{htmlFor:"mrt-rows-per-page",sx:{mb:0},children:p.rowsPerPage}),(0,S.jsx)(Oh.A,Object.assign({MenuProps:{disableScrollLock:!0},disableUnderline:!0,disabled:O,inputProps:{"aria-label":p.rowsPerPage,id:"mrt-rows-per-page"},label:p.rowsPerPage,onChange:e=>n.setPageSize(+e.target.value),sx:{mb:0},value:y,variant:"standard"},T,{children:P.map((e=>{var t;const n="number"!=typeof e?e.value:e,r="number"!=typeof e?e.label:`${e}`;return null!==(t=null==T?void 0:T.children)&&void 0!==t?t:(null==T?void 0:T.native)?(0,S.jsx)("option",{value:n,children:r},n):(0,S.jsx)(Tn,{sx:{m:0},value:n,children:r},n)}))}))]}),"pages"===g?(0,S.jsx)(kA,Object.assign({count:A,disabled:O,onChange:(e,t)=>n.setPageIndex(t-1),page:m+1,renderItem:e=>(0,S.jsx)(wA,Object.assign({slots:{first:d,last:h,next:u,previous:c}},e)),showFirstButton:I,showLastButton:M},R)):"default"===g?(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(Jn.A,{align:"center",component:"span",sx:{m:"0 4px",minWidth:"8ch"},variant:"body2",children:`${0===_?0:(E+1).toLocaleString()}-${_.toLocaleString()} ${p.of} ${w.toLocaleString()}`}),(0,S.jsxs)(a.A,{gap:"xs",children:[I&&(0,S.jsx)(cn,Object.assign({},D,{title:p.goToFirstPage,children:(0,S.jsx)("span",{children:(0,S.jsx)(Ge.A,{"aria-label":p.goToFirstPage,disabled:j,onClick:()=>n.firstPage(),size:"small",children:(0,S.jsx)(d,Object.assign({},PS(i)))})})})),(0,S.jsx)(cn,Object.assign({},D,{title:p.goToPreviousPage,children:(0,S.jsx)("span",{children:(0,S.jsx)(Ge.A,{"aria-label":p.goToPreviousPage,disabled:j,onClick:()=>n.previousPage(),size:"small",children:(0,S.jsx)(c,Object.assign({},PS(i)))})})})),(0,S.jsx)(cn,Object.assign({},D,{title:p.goToNextPage,children:(0,S.jsx)("span",{children:(0,S.jsx)(Ge.A,{"aria-label":p.goToNextPage,disabled:F,onClick:()=>n.nextPage(),size:"small",children:(0,S.jsx)(u,Object.assign({},PS(i)))})})})),M&&(0,S.jsx)(cn,Object.assign({},D,{title:p.goToLastPage,children:(0,S.jsx)("span",{children:(0,S.jsx)(Ge.A,{"aria-label":p.goToLastPage,disabled:F,onClick:()=>n.lastPage(),size:"small",children:(0,S.jsx)(h,Object.assign({},PS(i)))})})}))]})]}):null]})},JC=e=>{var t,n,{table:r}=e,i=SS(e,["table"]);const{getState:s,options:{enableGrouping:l,localization:c},setHoveredColumn:u,setShowToolbarDropZone:d}=r,{draggingColumn:h,grouping:p,hoveredColumn:f,showToolbarDropZone:g}=s();return(0,o.useEffect)((()=>{var e;void 0!==(null===(e=r.options.state)||void 0===e?void 0:e.showToolbarDropZone)&&d(!!l&&!!h&&!1!==h.columnDef.enableGrouping&&!p.includes(h.id))}),[l,h,p]),(0,S.jsx)(un.A,{in:g,children:(0,S.jsx)(a.A,Object.assign({className:"Mui-ToolbarDropZone",onDragEnter:e=>{u({id:"drop-zone"})},onDragOver:e=>{e.preventDefault()}},i,{sx:e=>Object.assign({alignItems:"center",backdropFilter:"blur(4px)",backgroundColor:(0,Gh.X4)(e.palette.info.main,"drop-zone"===(null==f?void 0:f.id)?.2:.1),border:`dashed ${e.palette.info.main} 2px`,boxSizing:"border-box",display:"flex",height:"100%",justifyContent:"center",position:"absolute",width:"100%",zIndex:4},NA(null==i?void 0:i.sx,e)),children:(0,S.jsx)(Jn.A,{fontStyle:"italic",children:c.dropToGroupBy.replace("{column}",null!==(n=null===(t=null==h?void 0:h.columnDef)||void 0===t?void 0:t.header)&&void 0!==n?n:"")})}))})},QC=e=>{var{table:t}=e,n=SS(e,["table"]);const{getState:r,options:{enablePagination:i,muiBottomToolbarProps:o,positionPagination:s,positionToolbarAlertBanner:l,positionToolbarDropZone:c,renderBottomToolbarCustomActions:u},refs:{bottomToolbarRef:d}}=t,{isFullScreen:h}=r(),p=(0,Wt.A)("(max-width:720px)"),f=Object.assign(Object.assign({},NA(o,{table:t})),n),g=p||!!u;return(0,S.jsxs)(a.A,Object.assign({},f,{ref:e=>{e&&(d.current=e,(null==f?void 0:f.ref)&&(f.ref.current=e))},sx:e=>Object.assign(Object.assign(Object.assign({},OS({table:t,theme:e})),{bottom:h?"0":void 0,boxShadow:`0 1px 2px -1px ${(0,Gh.X4)(e.palette.grey[700],.5)} inset`,left:0,position:h?"fixed":"relative",right:0}),NA(null==f?void 0:f.sx,e)),children:[(0,S.jsx)(KC,{isTopToolbar:!1,table:t}),"bottom"===l&&(0,S.jsx)(BC,{stackAlertBanner:g,table:t}),["both","bottom"].includes(null!=c?c:"")&&(0,S.jsx)(JC,{table:t}),(0,S.jsxs)(a.A,{sx:{alignItems:"center",boxSizing:"border-box",display:"flex",justifyContent:"space-between",p:"0.5rem",width:"100%"},children:[u?u({table:t}):(0,S.jsx)("span",{}),(0,S.jsx)(a.A,{sx:{display:"flex",justifyContent:"flex-end",position:g?"relative":"absolute",right:0,top:0},children:i&&["both","bottom"].includes(null!=s?s:"")&&(0,S.jsx)(ZC,{position:"bottom",table:t})})]})]}))},eE=e=>{var{column:t,table:n}=e,r=SS(e,["column","table"]);const{options:{icons:{PushPinIcon:i},localization:o}}=n,s=e=>{t.pin(e)};return(0,S.jsx)(a.A,Object.assign({},r,{sx:e=>Object.assign({minWidth:"70px",textAlign:"center"},NA(null==r?void 0:r.sx,e)),children:t.getIsPinned()?(0,S.jsx)(cn,{title:o.unpin,children:(0,S.jsx)(Ge.A,{onClick:()=>s(!1),size:"small",children:(0,S.jsx)(i,{})})}):(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(cn,{title:o.pinToLeft,children:(0,S.jsx)(Ge.A,{onClick:()=>s("left"),size:"small",children:(0,S.jsx)(i,{style:{transform:"rotate(90deg)"}})})}),(0,S.jsx)(cn,{title:o.pinToRight,children:(0,S.jsx)(Ge.A,{onClick:()=>s("right"),size:"small",children:(0,S.jsx)(i,{style:{transform:"rotate(-90deg)"}})})})]})}))},tE=e=>{var t,{allColumns:n,column:r,hoveredColumn:i,isNestedColumns:s,setHoveredColumn:l,table:c}=e,u=SS(e,["allColumns","column","hoveredColumn","isNestedColumns","setHoveredColumn","table"]);const{getState:d,options:{enableColumnOrdering:h,enableColumnPinning:p,enableHiding:f,localization:g,mrtTheme:{draggingBorderColor:m}},setColumnOrder:y}=c,{columnOrder:v}=d(),{columnDef:b}=r,{columnDefType:x}=b,w=r.getIsVisible(),A=(0,o.useRef)(null),[C,E]=(0,o.useState)(!1);return b.header&&!1!==b.visibleInShowHideMenu?(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(Tn,Object.assign({disableRipple:!0,onDragEnter:e=>{C||!1===b.enableColumnOrdering||l(r)},ref:A},u,{sx:e=>Object.assign({alignItems:"center",justifyContent:"flex-start",my:0,opacity:C?.5:1,outline:C?`2px dashed ${e.palette.grey[500]}`:(null==i?void 0:i.id)===r.id?`2px dashed ${m}`:"none",outlineOffset:"-2px",pl:2*(r.depth+.5)+"rem",py:"6px"},NA(null==u?void 0:u.sx,e)),children:(0,S.jsxs)(a.A,{sx:{display:"flex",flexWrap:"nowrap",gap:"8px"},children:["group"!==x&&h&&!s&&(!1!==b.enableColumnOrdering?(0,S.jsx)(DS,{onDragEnd:e=>{E(!1),l(null),i&&y(IA(r,i,v))},onDragStart:e=>{E(!0);try{e.dataTransfer.setDragImage(A.current,0,0)}catch(e){console.error(e)}},table:c}):(0,S.jsx)(a.A,{sx:{width:"28px"}})),p&&(r.getCanPin()?(0,S.jsx)(eE,{column:r,table:c}):(0,S.jsx)(a.A,{sx:{width:"70px"}})),f?(0,S.jsx)(tg,{checked:w,componentsProps:{typography:{sx:{mb:0,opacity:"display"!==x?1:.5}}},control:(0,S.jsx)(cn,Object.assign({},IS(),{title:g.toggleVisibility,children:(0,S.jsx)(ng.A,{})})),disabled:!r.getCanHide(),label:b.header,onChange:()=>(e=>{var t,n;"group"===x?null===(n=null===(t=null==e?void 0:e.columns)||void 0===t?void 0:t.forEach)||void 0===n||n.call(t,(e=>{e.toggleVisibility(!w)})):e.toggleVisibility()})(r)}):(0,S.jsx)(Jn.A,{sx:{alignSelf:"center"},children:b.header})]})})),null===(t=r.columns)||void 0===t?void 0:t.map(((e,t)=>(0,S.jsx)(tE,{allColumns:n,column:e,hoveredColumn:i,isNestedColumns:s,setHoveredColumn:l,table:c},`${t}-${e.id}`)))]}):null},nE=e=>{var{anchorEl:t,setAnchorEl:n,table:r}=e,i=SS(e,["anchorEl","setAnchorEl","table"]);const{getAllColumns:s,getAllLeafColumns:l,getCenterLeafColumns:c,getIsAllColumnsVisible:u,getIsSomeColumnsPinned:d,getIsSomeColumnsVisible:h,getLeftLeafColumns:p,getRightLeafColumns:f,getState:g,options:{enableColumnOrdering:m,enableColumnPinning:y,enableHiding:v,localization:b,mrtTheme:{menuBackgroundColor:x}}}=r,{columnOrder:w,columnPinning:A,density:C}=g(),E=e=>{l().filter((e=>!1!==e.columnDef.enableHiding)).forEach((t=>t.toggleVisibility(e)))},_=(0,o.useMemo)((()=>{const e=s();return w.length>0&&!e.some((e=>"group"===e.columnDef.columnDefType))?[...p(),...Array.from(new Set(w)).map((e=>c().find((t=>(null==t?void 0:t.id)===e)))),...f()].filter(Boolean):e}),[w,A,s(),c(),p(),f()]),k=_.some((e=>"group"===e.columnDef.columnDefType)),[T,O]=(0,o.useState)(null);return(0,S.jsxs)(Rl.A,Object.assign({MenuListProps:{dense:"compact"===C,sx:{backgroundColor:x}},anchorEl:t,disableScrollLock:!0,onClose:()=>n(null),open:!!t},i,{children:[(0,S.jsxs)(a.A,{sx:{display:"flex",justifyContent:"space-between",p:"0.5rem",pt:0},children:[v&&(0,S.jsx)(dn.A,{disabled:!h(),onClick:()=>E(!1),children:b.hideAll}),m&&(0,S.jsx)(dn.A,{onClick:()=>r.setColumnOrder(JA(r.options,!0)),children:b.resetOrder}),y&&(0,S.jsx)(dn.A,{disabled:!d(),onClick:()=>r.resetColumnPinning(!0),children:b.unpinAll}),v&&(0,S.jsx)(dn.A,{disabled:u(),onClick:()=>E(!0),children:b.showAll})]}),(0,S.jsx)(ox.A,{}),_.map(((e,t)=>(0,S.jsx)(tE,{allColumns:_,column:e,hoveredColumn:T,isNestedColumns:k,setHoveredColumn:O,table:r},`${t}-${e.id}`)))]}))},rE=e=>{var t,{table:n}=e,r=SS(e,["table"]);const{options:{icons:{ViewColumnIcon:i},localization:a}}=n,[s,l]=(0,o.useState)(null);return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(cn,{title:null!==(t=null==r?void 0:r.title)&&void 0!==t?t:a.showHideColumns,children:(0,S.jsx)(Ge.A,Object.assign({"aria-label":a.showHideColumns,onClick:e=>{l(e.currentTarget)}},r,{title:void 0,children:(0,S.jsx)(i,{})}))}),s&&(0,S.jsx)(nE,{anchorEl:s,setAnchorEl:l,table:n})]})},iE=e=>{var t,{table:n}=e,r=SS(e,["table"]);const{getState:i,options:{icons:{DensityLargeIcon:o,DensityMediumIcon:a,DensitySmallIcon:s},localization:l},setDensity:c}=n,{density:u}=i();return(0,S.jsx)(cn,{title:null!==(t=null==r?void 0:r.title)&&void 0!==t?t:l.toggleDensity,children:(0,S.jsx)(Ge.A,Object.assign({"aria-label":l.toggleDensity,onClick:()=>{c("comfortable"===u?"compact":"compact"===u?"spacious":"comfortable")}},r,{title:void 0,children:"compact"===u?(0,S.jsx)(s,{}):"comfortable"===u?(0,S.jsx)(a,{}):(0,S.jsx)(o,{})}))})},oE=e=>{var t,{table:n}=e,r=SS(e,["table"]);const{getState:i,options:{icons:{FilterListIcon:o,FilterListOffIcon:a},localization:s},setShowColumnFilters:l}=n,{showColumnFilters:c}=i();return(0,S.jsx)(cn,{title:null!==(t=null==r?void 0:r.title)&&void 0!==t?t:s.showHideFilters,children:(0,S.jsx)(Ge.A,Object.assign({"aria-label":s.showHideFilters,onClick:()=>{l(!c)}},r,{title:void 0,children:c?(0,S.jsx)(a,{}):(0,S.jsx)(o,{})}))})},aE=e=>{var t,{table:n}=e,r=SS(e,["table"]);const{getState:i,options:{icons:{FullscreenExitIcon:a,FullscreenIcon:s},localization:l},setIsFullScreen:c}=n,{isFullScreen:u}=i(),[d,h]=(0,o.useState)(!1);return(0,S.jsx)(cn,{open:d,title:null!==(t=null==r?void 0:r.title)&&void 0!==t?t:l.toggleFullScreen,children:(0,S.jsx)(Ge.A,Object.assign({"aria-label":l.toggleFullScreen,onClick:()=>{h(!1),c(!u)},onMouseEnter:()=>h(!0),onMouseLeave:()=>h(!1)},r,{title:void 0,children:u?(0,S.jsx)(a,{}):(0,S.jsx)(s,{})}))})},sE=e=>{var t,n,{table:r}=e,i=SS(e,["table"]);const{getState:o,options:{icons:{SearchIcon:a,SearchOffIcon:s},localization:l},refs:{searchInputRef:c},setShowGlobalFilter:u}=r,{globalFilter:d,showGlobalFilter:h}=o();return(0,S.jsx)(cn,{title:null!==(t=null==i?void 0:i.title)&&void 0!==t?t:l.showHideSearch,children:(0,S.jsx)(Ge.A,Object.assign({"aria-label":null!==(n=null==i?void 0:i.title)&&void 0!==n?n:l.showHideSearch,disabled:!!d,onClick:()=>{u(!h),queueMicrotask((()=>{var e;return null===(e=c.current)||void 0===e?void 0:e.focus()}))}},i,{title:void 0,children:h?(0,S.jsx)(s,{}):(0,S.jsx)(a,{})}))})},lE=e=>{var t,{table:n}=e,r=SS(e,["table"]);const{options:{columnFilterDisplayMode:i,enableColumnFilters:o,enableColumnOrdering:s,enableColumnPinning:l,enableDensityToggle:c,enableFilters:u,enableFullScreenToggle:d,enableGlobalFilter:h,enableHiding:p,initialState:f,renderToolbarInternalActions:g}}=n;return(0,S.jsx)(a.A,Object.assign({},r,{sx:e=>Object.assign({alignItems:"center",display:"flex",zIndex:3},NA(null==r?void 0:r.sx,e)),children:null!==(t=null==g?void 0:g({table:n}))&&void 0!==t?t:(0,S.jsxs)(S.Fragment,{children:[u&&h&&!(null==f?void 0:f.showGlobalFilter)&&(0,S.jsx)(sE,{table:n}),u&&o&&"popover"!==i&&(0,S.jsx)(oE,{table:n}),(p||s||l)&&(0,S.jsx)(rE,{table:n}),c&&(0,S.jsx)(iE,{table:n}),d&&(0,S.jsx)(aE,{table:n})]})}))},cE=e=>{var t,{table:n}=e,r=SS(e,["table"]);const{getState:i,options:{enableGlobalFilterModes:a,icons:{CloseIcon:s,SearchIcon:l},localization:c,manualFiltering:u,muiSearchTextFieldProps:d},refs:{searchInputRef:h},setGlobalFilter:p}=n,{globalFilter:f,showGlobalFilter:g}=i(),m=Object.assign(Object.assign({},NA(d,{table:n})),r),y=(0,o.useRef)(!1),[v,b]=(0,o.useState)(null),[x,w]=(0,o.useState)(null!=f?f:""),A=(0,o.useCallback)((0,si.A)((e=>{var t;p(null!==(t=e.target.value)&&void 0!==t?t:void 0)}),u?500:250),[]),C=()=>{w(""),p(void 0)};return(0,o.useEffect)((()=>{y.current&&(void 0===f?C():w(f)),y.current=!0}),[f]),(0,S.jsxs)(O,{in:g,mountOnEnter:!0,orientation:"horizontal",unmountOnExit:!0,children:[(0,S.jsx)(pv.A,Object.assign({inputProps:Object.assign({autoComplete:"new-password"},m.inputProps),onChange:e=>{w(e.target.value),A(e)},placeholder:c.search,size:"small",value:null!=x?x:"",variant:"outlined"},m,{InputProps:Object.assign(Object.assign({endAdornment:(0,S.jsx)(_v.A,{position:"end",children:(0,S.jsx)(cn,{title:null!==(t=c.clearSearch)&&void 0!==t?t:"",children:(0,S.jsx)("span",{children:(0,S.jsx)(Ge.A,{"aria-label":c.clearSearch,disabled:!(null==x?void 0:x.length),onClick:C,size:"small",children:(0,S.jsx)(s,{})})})})}),startAdornment:a?(0,S.jsx)(_v.A,{position:"start",children:(0,S.jsx)(cn,{title:c.changeSearchMode,children:(0,S.jsx)(Ge.A,{"aria-label":c.changeSearchMode,onClick:e=>{b(e.currentTarget)},size:"small",sx:{height:"1.75rem",width:"1.75rem"},children:(0,S.jsx)(l,{})})})}):(0,S.jsx)(l,{style:{marginRight:"4px"}})},m.InputProps),{sx:e=>{var t;return Object.assign({mb:0},NA(null===(t=null==m?void 0:m.InputProps)||void 0===t?void 0:t.sx,e))}}),inputRef:e=>{h.current=e,(null==m?void 0:m.inputRef)&&(m.inputRef=e)}})),(0,S.jsx)(kC,{anchorEl:v,onSelect:C,setAnchorEl:b,table:n})]})},uE=({table:e})=>{var t;const{getState:n,options:{enableGlobalFilter:r,enablePagination:i,enableToolbarInternalActions:o,muiTopToolbarProps:s,positionGlobalFilter:l,positionPagination:c,positionToolbarAlertBanner:u,positionToolbarDropZone:d,renderTopToolbarCustomActions:h},refs:{topToolbarRef:p}}=e,{isFullScreen:f,showGlobalFilter:g}=n(),m=(0,Wt.A)("(max-width:720px)"),y=(0,Wt.A)("(max-width:1024px)"),v=NA(s,{table:e}),b=m||!!h||g&&y,x={sx:y?void 0:{zIndex:2},table:e};return(0,S.jsxs)(a.A,Object.assign({},v,{ref:e=>{p.current=e,(null==v?void 0:v.ref)&&(v.ref.current=e)},sx:t=>Object.assign(Object.assign(Object.assign({},OS({table:e,theme:t})),{position:f?"sticky":"relative",top:f?"0":void 0}),NA(null==v?void 0:v.sx,t)),children:["top"===u&&(0,S.jsx)(BC,{stackAlertBanner:b,table:e}),["both","top"].includes(null!=d?d:"")&&(0,S.jsx)(JC,{table:e}),(0,S.jsxs)(a.A,{sx:{alignItems:"flex-start",boxSizing:"border-box",display:"flex",gap:"0.5rem",justifyContent:"space-between",p:"0.5rem",position:b?"relative":"absolute",right:0,top:0,width:"100%"},children:[r&&"left"===l&&(0,S.jsx)(cE,Object.assign({},x)),null!==(t=null==h?void 0:h({table:e}))&&void 0!==t?t:(0,S.jsx)("span",{}),o?(0,S.jsxs)(a.A,{sx:{alignItems:"center",display:"flex",flexWrap:"wrap-reverse",gap:"0.5rem",justifyContent:"flex-end"},children:[r&&"right"===l&&(0,S.jsx)(cE,Object.assign({},x)),(0,S.jsx)(lE,{table:e})]}):r&&"right"===l&&(0,S.jsx)(cE,Object.assign({},x))]}),i&&["both","top"].includes(null!=c?c:"")&&(0,S.jsx)(ZC,{position:"top",table:e}),(0,S.jsx)(KC,{isTopToolbar:!0,table:e})]}))},dE=e=>{var t,n,{table:r}=e,i=SS(e,["table"]);const{getState:o,options:{enableBottomToolbar:a,enableTopToolbar:s,mrtTheme:{baseBackgroundColor:l},muiTablePaperProps:c,renderBottomToolbar:u,renderTopToolbar:d},refs:{tablePaperRef:h}}=r,{isFullScreen:p}=o(),f=Object.assign(Object.assign({},NA(c,{table:r})),i);return(0,S.jsxs)(P.A,Object.assign({elevation:2},f,{ref:e=>{h.current=e,(null==f?void 0:f.ref)&&(f.ref.current=e)},style:Object.assign(Object.assign({},p?{bottom:0,height:"100dvh",left:0,margin:0,maxHeight:"100dvh",maxWidth:"100dvw",padding:0,position:"fixed",right:0,top:0,width:"100dvw",zIndex:999}:{}),null==f?void 0:f.style),sx:e=>Object.assign({backgroundColor:l,backgroundImage:"unset",overflow:"hidden",transition:"all 100ms ease-in-out"},NA(null==f?void 0:f.sx,e)),children:[s&&(null!==(t=NA(d,{table:r}))&&void 0!==t?t:(0,S.jsx)(uE,{table:r})),(0,S.jsx)(YC,{table:r}),a&&(null!==(n=NA(u,{table:r}))&&void 0!==n?n:(0,S.jsx)(QC,{table:r}))]}))},hE=e=>{let t;return t=(e=>void 0!==e.table)(e)?e.table:rC(e),(0,S.jsx)(dE,{table:t})};function pE(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 fE(e){return(0,S.jsx)(hE,function(e){for(var t=1;t{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})((({theme:e,ownerState:t})=>(0,s.A)({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},"dense"===t.variant&&{minHeight:48})),(({theme:e,ownerState:t})=>"regular"===t.variant&&e.mixins.toolbar)),jE=o.forwardRef((function(e,t){const n=(0,g.A)({props:e,name:"MuiToolbar"}),{className:r,component:i="div",disableGutters:o=!1,variant:a="regular"}=n,d=(0,l.A)(n,LE),h=(0,s.A)({},n,{component:i,disableGutters:o,variant:a}),p=(e=>{const{classes:t,disableGutters:n,variant:r}=e,i={root:["root",!n&&"gutters",r]};return(0,u.A)(i,ME,t)})(h);return(0,S.jsx)(RE,(0,s.A)({as:i,className:(0,c.A)(p.root,r),ref:t,ownerState:h},d))}));function FE(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 DE(e){return(0,S.jsx)(jE,function(e){for(var t=1;t{"use strict";n.d(t,{v:()=>r});var r={APPBAR:"app-bar",NAVBAR:"nav-bar"}},3389:(e,t,n)=>{"use strict";n.d(t,{w:()=>z,O:()=>N});var r=n(76014),i=n(64426),o=n(70640),a=n(32814),s=n(99601),l=n.n(s),c=n(41795),u=l()(50,1e3,50),d=function(){return(0,a.A)((function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if((0,o.A)(this,e),(0,i.A)(this,"main",void 0),(0,i.A)(this,"isInverse",void 0),(0,i.A)(this,"dark",{}),(0,i.A)(this,"light",{}),!h.call(e,t))throw new Error("Invalid color format");this.main=t,this.isInverse=r,u.forEach((function(e){n.dark[e]=n.darken(e/1e3),n.light[e]=n.lighten(e/1e3)}))}),[{key:"_main",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return(0,c.X4)(this.main,e)}},{key:"opacity",value:function(e){return(0,c.X4)(this.main,e)}},{key:"lighten",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return this.isInverse?(0,c.X4)((0,c.e$)(this.main,e),t):(0,c.X4)((0,c.a)(this.main,e),t)}},{key:"darken",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return this.isInverse?(0,c.X4)((0,c.a)(this.main,e),t):(0,c.X4)((0,c.e$)(this.main,e),t)}},{key:"contrastText",value:function(){var e=this.main.slice(1);return.299*parseInt(e.slice(0,2),16)+.587*parseInt(e.slice(2,4),16)+.114*parseInt(e.slice(4,6),16)>186?"#000000":"#FFFFFF"}}])}();function h(e){return/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$|^rgba?\(\d+,\s*\d+,\s*\d+(,\s*(0(\.\d+)?|1(\.0)?))?\)$/.test(e)}for(var p="'Roboto', 'Helvetica', 'Arial', sans-serif",f={fontFamily:p,fontWeight:700},g=.08,m=.16,y=.38,v=.12,b=.24,x={white:"#FFFFFF",bgColor:new d("#F1F2F5"),primary:new d("#515BA5"),secondary:new d("#1976d2"),textColor:new d("#393939"),success:new d("#2e7d32"),error:new d("#d32f2f"),warning:new d("#ed6c02"),info:new d("#2e7d32"),grey:new d("#9e9e9e")},w={xs:"".concat(.7,"rem"),sm:"".concat(.875,"rem"),md:"".concat(1.125,"rem"),lg:"".concat(1.3,"rem"),xl:"".concat(1.6,"rem"),xxl:"".concat(2,"rem"),default:"".concat(1,"rem")},A=.2;A<=10;A+=.1){w["".concat(A,"x")]="".concat(1*A,"rem")}var S=w;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&&void 0!==arguments[0]?arguments[0]:x;return{palette:{geoViewColor:e,geoViewFontSize:S,geoViewSpacingAndSizing:{},backdrop:"#3F3F3F50",common:{black:"#000",white:"#fff"},primary:{main:e.primary.main,light:e.primary.light[600],dark:e.primary.dark[200],contrastText:e.primary.contrastText()},secondary:{main:e.primary.main,light:e.primary.light[600],dark:e.primary.dark[300],contrastText:e.primary.contrastText()},error:{main:e.error.main,light:e.error.light[600],dark:e.error.dark[300],contrastText:e.error.contrastText()},warning:{main:e.warning.main,light:e.warning.light[600],dark:e.warning.dark[300],contrastText:e.warning.contrastText()},info:{main:e.info.main,light:e.info.light[600],dark:e.info.dark[300],contrastText:e.info.contrastText()},success:{main:e.success.main,light:e.success.light[600],dark:e.success.dark[300],contrastText:e.success.contrastText()},contrastThreshold:3,tonalOffset:.2,text:{primary:e.textColor.light[50],secondary:e.textColor.light[500],disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:e.bgColor.light[600],default:e.bgColor.light[500]},action:{active:e.primary.main,hover:e.primary.opacity(g),hoverOpacity:g,selected:e.primary.opacity(m),selectedOpacity:m,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, ".concat(v,")"),disabledOpacity:y,focus:e.primary.opacity(v),focusOpacity:v,activatedOpacity:b}},typography:{htmlFontSize:16,fontFamily:p,h1:f,h2:f,h3:f,h4:f,h5:f,h6:{fontWeight:400},subtitle1:{fontSize:S.default,lineHeight:1.25},subtitle2:{fontSize:S.xs,lineHeight:1.25},body1:{},body2:{},caption:{},overline:{fontSize:S.sm,fontWeight:500,letterSpacing:2},button:{fontSize:S.lg,fontWeight:500},control:{fontSize:11,fontWeight:500}},spacing:function(e){var t=[0,1,2,4,5,6,8,10,12,14,15,16,18,20,30],n=Math.floor(e),r=t[n];return"".concat(r+((t[n+1]||2*r)-r)*(e-n),"px")},breakpoints:{values:{xs:0,sm:640,md:960,lg:1200,xl:1536}},zIndex:{mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:15e3,olControl:500,focusDialog:1300},transitions:{duration:{shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195,splash:1500},easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"}},shape:{borderRadius:6,center:"50%",right:"100%",left:"0%"},components:{MuiTooltip:{defaultProps:{PopperProps:{container:R}},styleOverrides:{tooltip:{backgroundColor:e.bgColor.dark[800],color:e.bgColor.light[800]}}},MuiPaper:{styleOverrides:{root:{borderRadius:5,borderWidth:"1px",borderColor:e.bgColor.darken(.5,.5),borderStyle:"solid",boxShadow:"0px 12px 9px -13px ".concat(e.bgColor.darken(.2,.5)),"&.layer-panel":{boxShadow:"none",'&[data-layer-depth="0"], &:not([data-layer-depth])':{background:"".concat(e.bgColor.light[600]," 0% 0% no-repeat padding-box"),borderRadius:"5px",marginBottom:"1rem"},'&[data-layer-depth] &:not([data-layer-depth="0"])':{borderRadius:"0px",border:"unset",backgroundColor:"unset"},"& .MuiListItemButton-root":{backgroundColor:"transparent !important"},"&.selectedLayer, &.selected":{borderColor:"".concat(e.primary.main," !important"),borderWidth:"2px !important",borderStyle:"solid !important"},"&.dragging":{backgroundcolor:e.primary.dark[600],cursor:"grab",userSelect:"none"},"&.error, &.query-error":{background:e.error.lighten(.7,.6),"& .MuiListItemText-secondary":{fontWeight:"bold",color:e.error.main}},"&.loading, &.processing, &.query-processing":{background:e.info.lighten(.7,.6),"& .MuiListItemText-secondary":{fontWeight:"bold",color:e.info.main}}},"&.unbordered":{borderStyle:"none"}}}},MuiButton:{styleOverrides:{root:L({},j(e))}},MuiIconButton:{styleOverrides:{root:L({},j(e))}},MuiFab:{styleOverrides:{root:{padding:"0 24px"}}},MuiDrawer:{styleOverrides:{paper:{position:"relative"}}},MuiButtonGroup:{styleOverrides:{grouped:{minWidth:"auto"}}},MuiListItemButton:{defaultProps:{disableTouchRipple:!0}},MuiTabs:{styleOverrides:{root:{backgroundColor:e.bgColor.dark[100]},indicator:{backgroundColor:"#FF4081"}}},MuiTab:{styleOverrides:{root:{color:e.textColor.light[100],"&.Mui-selected":{color:"".concat(e.primary.light[200])}}}},MuiTypography:{styleOverrides:{root:{color:e.textColor.main}}}},overrides:{button:{size:{width:"32px",height:"32px"}},northArrow:{size:{width:42,height:42}},crosshairIcon:{size:{width:275,height:275}}}}};function D(e){switch(e){case"dark":return F(O);case"geo.ca":return F(I);default:return F(_)}}var N=function(e){var t=D(e);return(0,r.A)(t)},z=(0,r.A)(D("geo.ca"))},67207:(e,t,n)=>{"use strict";n.d(t,{o:()=>l});var r=n(64426),i=n(30538),o=n(91031),a=n(97282);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}var l=(0,i.forwardRef)((function(e,t){return(0,a.jsx)(o.A,function(e){for(var t=1;t{"use strict";n.d(t,{A:()=>N});var r=n(60376),i=n.n(r),o=n(92696),a=n.n(o),s=n(19811),l=n.n(s),c=new URL(n(11008),n.b),u=new URL(n(85270),n.b),d=new URL(n(63166),n.b),h=new URL(n(66580),n.b),p=new URL(n(30441),n.b),f=new URL(n(88169),n.b),g=new URL(n(77627),n.b),m=new URL(n(92323),n.b),y=new URL(n(1556),n.b),v=new URL(n(39250),n.b),b=new URL(n(63747),n.b),x=new URL(n(38427),n.b),w=new URL(n(91941),n.b),A=new URL(n(61245),n.b),S=a()(i()),C=l()(c),E=l()(u),_=l()(d),k=l()(h),T=l()(p),O=l()(f),P=l()(g),I=l()(m),M=l()(y),L=l()(v),R=l()(b),j=l()(x),F=l()(w),D=l()(A);S.push([e.id,`@font-face{font-family:"Roboto";font-style:normal;font-display:swap;font-weight:400;src:url(${C}) format("woff2"),url(${E}) format("woff");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:"Roboto";font-style:normal;font-display:swap;font-weight:400;src:url(${_}) format("woff2"),url(${k}) format("woff");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:"Roboto";font-style:normal;font-display:swap;font-weight:400;src:url(${T}) format("woff2"),url(${O}) format("woff");unicode-range:U+1F00-1FFF}@font-face{font-family:"Roboto";font-style:normal;font-display:swap;font-weight:400;src:url(${P}) format("woff2"),url(${I}) format("woff");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:"Roboto";font-style:normal;font-display:swap;font-weight:400;src:url(${M}) format("woff2"),url(${L}) format("woff");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:"Roboto";font-style:normal;font-display:swap;font-weight:400;src:url(${R}) format("woff2"),url(${j}) format("woff");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:"Roboto";font-style:normal;font-display:swap;font-weight:400;src:url(${F}) format("woff2"),url(${D}) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}`,"",{version:3,sources:["webpack://./../../common/temp/node_modules/.pnpm/@fontsource+roboto@5.0.13/node_modules/@fontsource/roboto/400.css"],names:[],mappings:"AACA,WACE,oBAAA,CACA,iBAAA,CACA,iBAAA,CACA,eAAA,CACA,kHAAA,CACA,gFAAA,CAIF,WACE,oBAAA,CACA,iBAAA,CACA,iBAAA,CACA,eAAA,CACA,kHAAA,CACA,+DAAA,CAIF,WACE,oBAAA,CACA,iBAAA,CACA,iBAAA,CACA,eAAA,CACA,kHAAA,CACA,yBAAA,CAIF,WACE,oBAAA,CACA,iBAAA,CACA,iBAAA,CACA,eAAA,CACA,kHAAA,CACA,gFAAA,CAIF,WACE,oBAAA,CACA,iBAAA,CACA,iBAAA,CACA,eAAA,CACA,kHAAA,CACA,0JAAA,CAIF,WACE,oBAAA,CACA,iBAAA,CACA,iBAAA,CACA,eAAA,CACA,oHAAA,CACA,oIAAA,CAIF,WACE,oBAAA,CACA,iBAAA,CACA,iBAAA,CACA,eAAA,CACA,oHAAA,CACA,6KAAA",sourcesContent:["/* roboto-cyrillic-ext-400-normal */\n@font-face {\n font-family: 'Roboto';\n font-style: normal;\n font-display: swap;\n font-weight: 400;\n src: url(./files/roboto-cyrillic-ext-400-normal.woff2) format('woff2'), url(./files/roboto-cyrillic-ext-400-normal.woff) format('woff');\n unicode-range: U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;\n}\n\n/* roboto-cyrillic-400-normal */\n@font-face {\n font-family: 'Roboto';\n font-style: normal;\n font-display: swap;\n font-weight: 400;\n src: url(./files/roboto-cyrillic-400-normal.woff2) format('woff2'), url(./files/roboto-cyrillic-400-normal.woff) format('woff');\n unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;\n}\n\n/* roboto-greek-ext-400-normal */\n@font-face {\n font-family: 'Roboto';\n font-style: normal;\n font-display: swap;\n font-weight: 400;\n src: url(./files/roboto-greek-ext-400-normal.woff2) format('woff2'), url(./files/roboto-greek-ext-400-normal.woff) format('woff');\n unicode-range: U+1F00-1FFF;\n}\n\n/* roboto-greek-400-normal */\n@font-face {\n font-family: 'Roboto';\n font-style: normal;\n font-display: swap;\n font-weight: 400;\n src: url(./files/roboto-greek-400-normal.woff2) format('woff2'), url(./files/roboto-greek-400-normal.woff) format('woff');\n unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;\n}\n\n/* roboto-vietnamese-400-normal */\n@font-face {\n font-family: 'Roboto';\n font-style: normal;\n font-display: swap;\n font-weight: 400;\n src: url(./files/roboto-vietnamese-400-normal.woff2) format('woff2'), url(./files/roboto-vietnamese-400-normal.woff) format('woff');\n unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;\n}\n\n/* roboto-latin-ext-400-normal */\n@font-face {\n font-family: 'Roboto';\n font-style: normal;\n font-display: swap;\n font-weight: 400;\n src: url(./files/roboto-latin-ext-400-normal.woff2) format('woff2'), url(./files/roboto-latin-ext-400-normal.woff) format('woff');\n unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;\n}\n\n/* roboto-latin-400-normal */\n@font-face {\n font-family: 'Roboto';\n font-style: normal;\n font-display: swap;\n font-weight: 400;\n src: url(./files/roboto-latin-400-normal.woff2) format('woff2'), url(./files/roboto-latin-400-normal.woff) format('woff');\n unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;\n}"],sourceRoot:""}]);const N=S},77946:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(60376),i=n.n(r),o=n(92696),a=n.n(o)()(i());a.push([e.id,':root,:host{--ol-background-color: white;--ol-accent-background-color: #F5F5F5;--ol-subtle-background-color: rgba(128, 128, 128, 0.25);--ol-partial-background-color: rgba(255, 255, 255, 0.75);--ol-foreground-color: #333333;--ol-subtle-foreground-color: #666666;--ol-brand-color: #00AAFF}.ol-box{box-sizing:border-box;border-radius:2px;border:1.5px solid var(--ol-background-color);background-color:var(--ol-partial-background-color)}.ol-mouse-position{top:8px;right:8px;position:absolute}.ol-scale-line{background:var(--ol-partial-background-color);border-radius:4px;bottom:8px;left:8px;padding:2px;position:absolute}.ol-scale-line-inner{border:1px solid var(--ol-subtle-foreground-color);border-top:none;color:var(--ol-foreground-color);font-size:10px;text-align:center;margin:1px;will-change:contents,width;transition:all .25s}.ol-scale-bar{position:absolute;bottom:8px;left:8px}.ol-scale-bar-inner{display:flex}.ol-scale-step-marker{width:1px;height:15px;background-color:var(--ol-foreground-color);float:right;z-index:10}.ol-scale-step-text{position:absolute;bottom:-5px;font-size:10px;z-index:11;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-text{position:absolute;font-size:12px;text-align:center;bottom:25px;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-singlebar{position:relative;height:10px;z-index:9;box-sizing:border-box;border:1px solid var(--ol-foreground-color)}.ol-scale-singlebar-even{background-color:var(--ol-subtle-foreground-color)}.ol-scale-singlebar-odd{background-color:var(--ol-background-color)}.ol-unsupported{display:none}.ol-viewport,.ol-unselectable{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.ol-viewport canvas{all:unset;overflow:hidden}.ol-viewport{touch-action:pan-x pan-y}.ol-selectable{-webkit-touch-callout:default;-webkit-user-select:text;-moz-user-select:text;user-select:text}.ol-grabbing{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.ol-grab{cursor:move;cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.ol-control{position:absolute;background-color:var(--ol-subtle-background-color);border-radius:4px}.ol-zoom{top:.5em;left:.5em}.ol-rotate{top:.5em;right:.5em;transition:opacity .25s linear,visibility 0s linear}.ol-rotate.ol-hidden{opacity:0;visibility:hidden;transition:opacity .25s linear,visibility 0s linear .25s}.ol-zoom-extent{top:4.643em;left:.5em}.ol-full-screen{right:.5em;top:.5em}.ol-control button{display:block;margin:1px;padding:0;color:var(--ol-subtle-foreground-color);font-weight:bold;text-decoration:none;font-size:inherit;text-align:center;height:1.375em;width:1.375em;line-height:.4em;background-color:var(--ol-background-color);border:none;border-radius:2px}.ol-control button::-moz-focus-inner{border:none;padding:0}.ol-zoom-extent button{line-height:1.4em}.ol-compass{display:block;font-weight:normal;will-change:transform}.ol-touch .ol-control button{font-size:1.5em}.ol-touch .ol-zoom-extent{top:5.5em}.ol-control button:hover,.ol-control button:focus{text-decoration:none;outline:1px solid var(--ol-subtle-foreground-color);color:var(--ol-foreground-color)}.ol-zoom .ol-zoom-in{border-radius:2px 2px 0 0}.ol-zoom .ol-zoom-out{border-radius:0 0 2px 2px}.ol-attribution{text-align:right;bottom:.5em;right:.5em;max-width:calc(100% - 1.3em);display:flex;flex-flow:row-reverse;align-items:center}.ol-attribution a{color:var(--ol-subtle-foreground-color);text-decoration:none}.ol-attribution ul{margin:0;padding:1px .5em;color:var(--ol-foreground-color);text-shadow:0 0 2px var(--ol-background-color);font-size:12px}.ol-attribution li{display:inline;list-style:none}.ol-attribution li:not(:last-child):after{content:" "}.ol-attribution img{max-height:2em;max-width:inherit;vertical-align:middle}.ol-attribution button{flex-shrink:0}.ol-attribution.ol-collapsed ul{display:none}.ol-attribution:not(.ol-collapsed){background:var(--ol-partial-background-color)}.ol-attribution.ol-uncollapsible{bottom:0;right:0;border-radius:4px 0 0}.ol-attribution.ol-uncollapsible img{margin-top:-0.2em;max-height:1.6em}.ol-attribution.ol-uncollapsible button{display:none}.ol-zoomslider{top:4.5em;left:.5em;height:200px}.ol-zoomslider button{position:relative;height:10px}.ol-touch .ol-zoomslider{top:5.5em}.ol-overviewmap{left:.5em;bottom:.5em}.ol-overviewmap.ol-uncollapsible{bottom:0;left:0;border-radius:0 4px 0 0}.ol-overviewmap .ol-overviewmap-map,.ol-overviewmap button{display:block}.ol-overviewmap .ol-overviewmap-map{border:1px solid var(--ol-subtle-foreground-color);height:150px;width:150px}.ol-overviewmap:not(.ol-collapsed) button{bottom:0;left:0;position:absolute}.ol-overviewmap.ol-collapsed .ol-overviewmap-map,.ol-overviewmap.ol-uncollapsible button{display:none}.ol-overviewmap:not(.ol-collapsed){background:var(--ol-subtle-background-color)}.ol-overviewmap-box{border:1.5px dotted var(--ol-subtle-foreground-color)}.ol-overviewmap .ol-overviewmap-box:hover{cursor:move}',"",{version:3,sources:["webpack://./../../common/temp/node_modules/.pnpm/ol@9.1.0/node_modules/ol/ol.css"],names:[],mappings:"AAAA,YAEE,4BAAA,CACA,qCAAA,CACA,uDAAA,CACA,wDAAA,CACA,8BAAA,CACA,qCAAA,CACA,yBAAA,CAGF,QACE,qBAAA,CACA,iBAAA,CACA,6CAAA,CACA,mDAAA,CAGF,mBACE,OAAA,CACA,SAAA,CACA,iBAAA,CAGF,eACE,6CAAA,CACA,iBAAA,CACA,UAAA,CACA,QAAA,CACA,WAAA,CACA,iBAAA,CAGF,qBACE,kDAAA,CACA,eAAA,CACA,gCAAA,CACA,cAAA,CACA,iBAAA,CACA,UAAA,CACA,0BAAA,CACA,mBAAA,CAGF,cACE,iBAAA,CACA,UAAA,CACA,QAAA,CAGF,oBACE,YAAA,CAGF,sBACE,SAAA,CACA,WAAA,CACA,2CAAA,CACA,WAAA,CACA,UAAA,CAGF,oBACE,iBAAA,CACA,WAAA,CACA,cAAA,CACA,UAAA,CACA,gCAAA,CACA,yLAAA,CAGF,eACE,iBAAA,CACA,cAAA,CACA,iBAAA,CACA,WAAA,CACA,gCAAA,CACA,yLAAA,CAGF,oBACE,iBAAA,CACA,WAAA,CACA,SAAA,CACA,qBAAA,CACA,2CAAA,CAGF,yBACE,kDAAA,CAGF,wBACE,2CAAA,CAGF,gBACE,YAAA,CAGF,8BAEE,0BAAA,CACA,wBAAA,CACA,qBAAA,CACA,gBAAA,CACA,yCAAA,CAGF,oBACE,SAAA,CACA,eAAA,CAGF,aACE,wBAAA,CAGF,eACE,6BAAA,CACA,wBAAA,CACA,qBAAA,CACA,gBAAA,CAGF,aACE,uBAAA,CACA,oBAAA,CACA,eAAA,CAGF,SACE,WAAA,CACA,mBAAA,CACA,gBAAA,CACA,WAAA,CAGF,YACE,iBAAA,CACA,kDAAA,CACA,iBAAA,CAGF,SACE,QAAA,CACA,SAAA,CAGF,WACE,QAAA,CACA,UAAA,CACA,mDAAA,CAGF,qBACE,SAAA,CACA,iBAAA,CACA,wDAAA,CAGF,gBACE,WAAA,CACA,SAAA,CAGF,gBACE,UAAA,CACA,QAAA,CAGF,mBACE,aAAA,CACA,UAAA,CACA,SAAA,CACA,uCAAA,CACA,gBAAA,CACA,oBAAA,CACA,iBAAA,CACA,iBAAA,CACA,cAAA,CACA,aAAA,CACA,gBAAA,CACA,2CAAA,CACA,WAAA,CACA,iBAAA,CAGF,qCACE,WAAA,CACA,SAAA,CAGF,uBACE,iBAAA,CAGF,YACE,aAAA,CACA,kBAAA,CACA,qBAAA,CAGF,6BACE,eAAA,CAGF,0BACE,SAAA,CAGF,kDAEE,oBAAA,CACA,mDAAA,CACA,gCAAA,CAGF,qBACE,yBAAA,CAGF,sBACE,yBAAA,CAGF,gBACE,gBAAA,CACA,WAAA,CACA,UAAA,CACA,4BAAA,CACA,YAAA,CACA,qBAAA,CACA,kBAAA,CAGF,kBACE,uCAAA,CACA,oBAAA,CAGF,mBACE,QAAA,CACA,gBAAA,CACA,gCAAA,CACA,8CAAA,CACA,cAAA,CAGF,mBACE,cAAA,CACA,eAAA,CAGF,0CACE,WAAA,CAGF,oBACE,cAAA,CACA,iBAAA,CACA,qBAAA,CAGF,uBACE,aAAA,CAGF,gCACE,YAAA,CAGF,mCACE,6CAAA,CAGF,iCACE,QAAA,CACA,OAAA,CACA,qBAAA,CAGF,qCACE,iBAAA,CACA,gBAAA,CAGF,wCACE,YAAA,CAGF,eACE,SAAA,CACA,SAAA,CACA,YAAA,CAGF,sBACE,iBAAA,CACA,WAAA,CAGF,yBACE,SAAA,CAGF,gBACE,SAAA,CACA,WAAA,CAGF,iCACE,QAAA,CACA,MAAA,CACA,uBAAA,CAGF,2DAEE,aAAA,CAGF,oCACE,kDAAA,CACA,YAAA,CACA,WAAA,CAGF,0CACE,QAAA,CACA,MAAA,CACA,iBAAA,CAGF,yFAEE,YAAA,CAGF,mCACE,4CAAA,CAGF,oBACE,qDAAA,CAGF,0CACE,WAAA",sourcesContent:[':root,\n:host {\n --ol-background-color: white;\n --ol-accent-background-color: #F5F5F5;\n --ol-subtle-background-color: rgba(128, 128, 128, 0.25);\n --ol-partial-background-color: rgba(255, 255, 255, 0.75);\n --ol-foreground-color: #333333;\n --ol-subtle-foreground-color: #666666;\n --ol-brand-color: #00AAFF;\n}\n\n.ol-box {\n box-sizing: border-box;\n border-radius: 2px;\n border: 1.5px solid var(--ol-background-color);\n background-color: var(--ol-partial-background-color);\n}\n\n.ol-mouse-position {\n top: 8px;\n right: 8px;\n position: absolute;\n}\n\n.ol-scale-line {\n background: var(--ol-partial-background-color);\n border-radius: 4px;\n bottom: 8px;\n left: 8px;\n padding: 2px;\n position: absolute;\n}\n\n.ol-scale-line-inner {\n border: 1px solid var(--ol-subtle-foreground-color);\n border-top: none;\n color: var(--ol-foreground-color);\n font-size: 10px;\n text-align: center;\n margin: 1px;\n will-change: contents, width;\n transition: all 0.25s;\n}\n\n.ol-scale-bar {\n position: absolute;\n bottom: 8px;\n left: 8px;\n}\n\n.ol-scale-bar-inner {\n display: flex;\n}\n\n.ol-scale-step-marker {\n width: 1px;\n height: 15px;\n background-color: var(--ol-foreground-color);\n float: right;\n z-index: 10;\n}\n\n.ol-scale-step-text {\n position: absolute;\n bottom: -5px;\n font-size: 10px;\n z-index: 11;\n color: var(--ol-foreground-color);\n text-shadow: -1.5px 0 var(--ol-partial-background-color), 0 1.5px var(--ol-partial-background-color), 1.5px 0 var(--ol-partial-background-color), 0 -1.5px var(--ol-partial-background-color);\n}\n\n.ol-scale-text {\n position: absolute;\n font-size: 12px;\n text-align: center;\n bottom: 25px;\n color: var(--ol-foreground-color);\n text-shadow: -1.5px 0 var(--ol-partial-background-color), 0 1.5px var(--ol-partial-background-color), 1.5px 0 var(--ol-partial-background-color), 0 -1.5px var(--ol-partial-background-color);\n}\n\n.ol-scale-singlebar {\n position: relative;\n height: 10px;\n z-index: 9;\n box-sizing: border-box;\n border: 1px solid var(--ol-foreground-color);\n}\n\n.ol-scale-singlebar-even {\n background-color: var(--ol-subtle-foreground-color);\n}\n\n.ol-scale-singlebar-odd {\n background-color: var(--ol-background-color);\n}\n\n.ol-unsupported {\n display: none;\n}\n\n.ol-viewport,\n.ol-unselectable {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n -webkit-tap-highlight-color: transparent;\n}\n\n.ol-viewport canvas {\n all: unset;\n overflow: hidden;\n}\n\n.ol-viewport {\n touch-action: pan-x pan-y;\n}\n\n.ol-selectable {\n -webkit-touch-callout: default;\n -webkit-user-select: text;\n -moz-user-select: text;\n user-select: text;\n}\n\n.ol-grabbing {\n cursor: -webkit-grabbing;\n cursor: -moz-grabbing;\n cursor: grabbing;\n}\n\n.ol-grab {\n cursor: move;\n cursor: -webkit-grab;\n cursor: -moz-grab;\n cursor: grab;\n}\n\n.ol-control {\n position: absolute;\n background-color: var(--ol-subtle-background-color);\n border-radius: 4px;\n}\n\n.ol-zoom {\n top: .5em;\n left: .5em;\n}\n\n.ol-rotate {\n top: .5em;\n right: .5em;\n transition: opacity .25s linear, visibility 0s linear;\n}\n\n.ol-rotate.ol-hidden {\n opacity: 0;\n visibility: hidden;\n transition: opacity .25s linear, visibility 0s linear .25s;\n}\n\n.ol-zoom-extent {\n top: 4.643em;\n left: .5em;\n}\n\n.ol-full-screen {\n right: .5em;\n top: .5em;\n}\n\n.ol-control button {\n display: block;\n margin: 1px;\n padding: 0;\n color: var(--ol-subtle-foreground-color);\n font-weight: bold;\n text-decoration: none;\n font-size: inherit;\n text-align: center;\n height: 1.375em;\n width: 1.375em;\n line-height: .4em;\n background-color: var(--ol-background-color);\n border: none;\n border-radius: 2px;\n}\n\n.ol-control button::-moz-focus-inner {\n border: none;\n padding: 0;\n}\n\n.ol-zoom-extent button {\n line-height: 1.4em;\n}\n\n.ol-compass {\n display: block;\n font-weight: normal;\n will-change: transform;\n}\n\n.ol-touch .ol-control button {\n font-size: 1.5em;\n}\n\n.ol-touch .ol-zoom-extent {\n top: 5.5em;\n}\n\n.ol-control button:hover,\n.ol-control button:focus {\n text-decoration: none;\n outline: 1px solid var(--ol-subtle-foreground-color);\n color: var(--ol-foreground-color);\n}\n\n.ol-zoom .ol-zoom-in {\n border-radius: 2px 2px 0 0;\n}\n\n.ol-zoom .ol-zoom-out {\n border-radius: 0 0 2px 2px;\n}\n\n.ol-attribution {\n text-align: right;\n bottom: .5em;\n right: .5em;\n max-width: calc(100% - 1.3em);\n display: flex;\n flex-flow: row-reverse;\n align-items: center;\n}\n\n.ol-attribution a {\n color: var(--ol-subtle-foreground-color);\n text-decoration: none;\n}\n\n.ol-attribution ul {\n margin: 0;\n padding: 1px .5em;\n color: var(--ol-foreground-color);\n text-shadow: 0 0 2px var(--ol-background-color);\n font-size: 12px;\n}\n\n.ol-attribution li {\n display: inline;\n list-style: none;\n}\n\n.ol-attribution li:not(:last-child):after {\n content: " ";\n}\n\n.ol-attribution img {\n max-height: 2em;\n max-width: inherit;\n vertical-align: middle;\n}\n\n.ol-attribution button {\n flex-shrink: 0;\n}\n\n.ol-attribution.ol-collapsed ul {\n display: none;\n}\n\n.ol-attribution:not(.ol-collapsed) {\n background: var(--ol-partial-background-color);\n}\n\n.ol-attribution.ol-uncollapsible {\n bottom: 0;\n right: 0;\n border-radius: 4px 0 0;\n}\n\n.ol-attribution.ol-uncollapsible img {\n margin-top: -.2em;\n max-height: 1.6em;\n}\n\n.ol-attribution.ol-uncollapsible button {\n display: none;\n}\n\n.ol-zoomslider {\n top: 4.5em;\n left: .5em;\n height: 200px;\n}\n\n.ol-zoomslider button {\n position: relative;\n height: 10px;\n}\n\n.ol-touch .ol-zoomslider {\n top: 5.5em;\n}\n\n.ol-overviewmap {\n left: 0.5em;\n bottom: 0.5em;\n}\n\n.ol-overviewmap.ol-uncollapsible {\n bottom: 0;\n left: 0;\n border-radius: 0 4px 0 0;\n}\n\n.ol-overviewmap .ol-overviewmap-map,\n.ol-overviewmap button {\n display: block;\n}\n\n.ol-overviewmap .ol-overviewmap-map {\n border: 1px solid var(--ol-subtle-foreground-color);\n height: 150px;\n width: 150px;\n}\n\n.ol-overviewmap:not(.ol-collapsed) button {\n bottom: 0;\n left: 0;\n position: absolute;\n}\n\n.ol-overviewmap.ol-collapsed .ol-overviewmap-map,\n.ol-overviewmap.ol-uncollapsible button {\n display: none;\n}\n\n.ol-overviewmap:not(.ol-collapsed) {\n background: var(--ol-subtle-background-color);\n}\n\n.ol-overviewmap-box {\n border: 1.5px dotted var(--ol-subtle-foreground-color);\n}\n\n.ol-overviewmap .ol-overviewmap-box:hover {\n cursor: move;\n}\n'],sourceRoot:""}]);const s=a},11355:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(60376),i=n.n(r),o=n(92696),a=n.n(o)()(i());a.push([e.id,".yarl__fullsize{height:100%;width:100%}.yarl__relative{position:relative}.yarl__portal{bottom:0;left:0;opacity:0;overflow:hidden;position:fixed;right:0;top:0;transition:opacity var(--yarl__fade_animation_duration, 0.25s) var(--yarl__fade_animation_timing_function, ease);z-index:var(--yarl__portal_zindex, 9999)}.yarl__portal_open{opacity:1}.yarl__container{background-color:var(--yarl__container_background_color, var(--yarl__color_backdrop, #000));bottom:0;left:0;outline:none;overflow:hidden;overscroll-behavior:var(--yarl__controller_overscroll_behavior, contain);position:absolute;right:0;top:0;touch-action:var(--yarl__controller_touch_action, none);-webkit-user-select:none;-moz-user-select:none;user-select:none}.yarl__carousel{align-content:center;align-items:stretch;display:flex;flex:0 0 auto;height:100%;justify-content:center;opacity:var(--yarl__pull_opacity, 1);transform:translate(var(--yarl__swipe_offset, 0), var(--yarl__pull_offset, 0));width:calc(100% + (var(--yarl__carousel_slides_count) - 1)*(100% + var(--yarl__carousel_spacing_px, 0)*1px + var(--yarl__carousel_spacing_percent, 0)*1%))}.yarl__carousel_with_slides{-moz-column-gap:calc(var(--yarl__carousel_spacing_px, 0)*1px + 100/(var(--yarl__carousel_slides_count)*100 + (var(--yarl__carousel_slides_count) - 1)*var(--yarl__carousel_spacing_percent, 0))*var(--yarl__carousel_spacing_percent, 0)*1%);column-gap:calc(var(--yarl__carousel_spacing_px, 0)*1px + 100/(var(--yarl__carousel_slides_count)*100 + (var(--yarl__carousel_slides_count) - 1)*var(--yarl__carousel_spacing_percent, 0))*var(--yarl__carousel_spacing_percent, 0)*1%)}.yarl__flex_center{align-content:center;align-items:center;display:flex;justify-content:center}.yarl__slide{flex:1;overflow:hidden;padding:calc(var(--yarl__carousel_padding_px, 0)*1px + 100/(var(--yarl__carousel_slides_count)*100 + (var(--yarl__carousel_slides_count) - 1)*var(--yarl__carousel_spacing_percent, 0))*var(--yarl__carousel_padding_percent, 0)*1%);position:relative}[dir=rtl] .yarl__slide{--yarl__direction:-1}.yarl__slide_image{max-height:100%;max-width:100%;-o-object-fit:contain;object-fit:contain;touch-action:var(--yarl__controller_touch_action, none);-moz-user-select:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}@media screen and (min-width: 800px){.yarl__slide_image{-webkit-backface-visibility:hidden;-webkit-transform:translateZ(0);-webkit-transform-style:preserve-3d}}.yarl__slide_image_cover{height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.yarl__slide_image_loading{opacity:0}.yarl__slide_placeholder{left:50%;line-height:0;position:absolute;top:50%;transform:translateX(-50%) translateY(-50%)}.yarl__slide_loading{animation:yarl__delayed_fadein 1s linear;color:var(--yarl__slide_icon_loading_color, var(--yarl__color_button, hsla(0, 0%, 100%, 0.8)))}.yarl__slide_loading line{animation:yarl__stroke_opacity 1s linear infinite}.yarl__slide_loading line:first-of-type{animation-delay:-1.875s}.yarl__slide_loading line:nth-of-type(2){animation-delay:-1.75s}.yarl__slide_loading line:nth-of-type(3){animation-delay:-1.625s}.yarl__slide_loading line:nth-of-type(4){animation-delay:-1.5s}.yarl__slide_loading line:nth-of-type(5){animation-delay:-1.375s}.yarl__slide_loading line:nth-of-type(6){animation-delay:-1.25s}.yarl__slide_loading line:nth-of-type(7){animation-delay:-1.125s}.yarl__slide_loading line:nth-of-type(8){animation-delay:-1s}.yarl__slide_error{color:var(--yarl__slide_icon_error_color, red);height:var(--yarl__slide_icon_error_size, 48px);width:var(--yarl__slide_icon_error_size, 48px)}@media(prefers-reduced-motion){.yarl__portal,.yarl__slide{transition:unset}.yarl__slide_loading,.yarl__slide_loading line{animation:unset}}.yarl__toolbar{bottom:auto;display:flex;justify-content:flex-end;left:auto;padding:var(--yarl__toolbar_padding, 8px);position:absolute;right:0;top:0}[dir=rtl] .yarl__toolbar{bottom:auto;left:0;right:auto;top:0}.yarl__icon{height:var(--yarl__icon_size, 32px);width:var(--yarl__icon_size, 32px)}.yarl__button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--yarl__button_background_color, transparent);border:var(--yarl__button_border, 0);color:var(--yarl__color_button, hsla(0, 0%, 100%, 0.8));cursor:pointer;filter:var(--yarl__button_filter, drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.8)));line-height:0;margin:var(--yarl__button_margin, 0);outline:none;padding:var(--yarl__button_padding, 8px);-webkit-tap-highlight-color:rgba(0,0,0,0)}.yarl__button:focus{color:var(--yarl__color_button_active, #fff)}.yarl__button:focus:not(:focus-visible){color:var(--yarl__color_button, hsla(0, 0%, 100%, 0.8))}.yarl__button:focus-visible{color:var(--yarl__color_button_active, #fff)}@media(hover: hover){.yarl__button:focus-visible:hover,.yarl__button:focus:hover,.yarl__button:hover{color:var(--yarl__color_button_active, #fff)}}.yarl__button:disabled{color:var(--yarl__color_button_disabled, hsla(0, 0%, 100%, 0.4));cursor:default}.yarl__navigation_next,.yarl__navigation_prev{padding:var(--yarl__navigation_button_padding, 24px 16px);position:absolute;top:50%;transform:translateY(-50%)}.yarl__navigation_prev{left:0}[dir=rtl] .yarl__navigation_prev{left:unset;right:0;transform:translateY(-50%) rotate(180deg)}.yarl__navigation_next{right:0}[dir=rtl] .yarl__navigation_next{left:0;right:unset;transform:translateY(-50%) rotate(180deg)}.yarl__no_scroll{height:100%;overflow:hidden;overscroll-behavior:none}@keyframes yarl__delayed_fadein{0%{opacity:0}80%{opacity:0}to{opacity:1}}@keyframes yarl__stroke_opacity{0%{stroke-opacity:1}to{stroke-opacity:.125}}","",{version:3,sources:["webpack://./../../common/temp/node_modules/.pnpm/yet-another-react-lightbox@3.18.0_react-dom@18.3.1_react@18.3.1/node_modules/yet-another-react-lightbox/dist/styles.css"],names:[],mappings:"AAAA,gBAAA,WAAA,CAAA,UAAA,CAAA,gBAAA,iBAAA,CAAA,cAAA,QAAA,CAAA,MAAA,CAAA,SAAA,CAAA,eAAA,CAAA,cAAA,CAAA,OAAA,CAAA,KAAA,CAAA,gHAAA,CAAA,wCAAA,CAAA,mBAAA,SAAA,CAAA,iBAAA,2FAAA,CAAA,QAAA,CAAA,MAAA,CAAA,YAAA,CAAA,eAAA,CAAA,wEAAA,CAAA,iBAAA,CAAA,OAAA,CAAA,KAAA,CAAA,uDAAA,CAAA,wBAAA,CAAA,qBAAA,CAAA,gBAAA,CAAA,gBAAA,oBAAA,CAAA,mBAAA,CAAA,YAAA,CAAA,aAAA,CAAA,WAAA,CAAA,sBAAA,CAAA,oCAAA,CAAA,8EAAA,CAAA,0JAAA,CAAA,4BAAA,4OAAA,CAAA,uOAAA,CAAA,mBAAA,oBAAA,CAAA,kBAAA,CAAA,YAAA,CAAA,sBAAA,CAAA,aAAA,MAAA,CAAA,eAAA,CAAA,oOAAA,CAAA,iBAAA,CAAA,uBAAA,oBAAA,CAAA,mBAAA,eAAA,CAAA,cAAA,CAAA,qBAAA,CAAA,kBAAA,CAAA,uDAAA,CAAA,qBAAA,CAAA,gBAAA,CAAA,wBAAA,CAAA,0BAAA,CAAA,qCAAA,mBAAA,kCAAA,CAAA,+BAAA,CAAA,mCAAA,CAAA,CAAA,yBAAA,WAAA,CAAA,mBAAA,CAAA,gBAAA,CAAA,UAAA,CAAA,2BAAA,SAAA,CAAA,yBAAA,QAAA,CAAA,aAAA,CAAA,iBAAA,CAAA,OAAA,CAAA,2CAAA,CAAA,qBAAA,wCAAA,CAAA,8FAAA,CAAA,0BAAA,iDAAA,CAAA,wCAAA,uBAAA,CAAA,yCAAA,sBAAA,CAAA,yCAAA,uBAAA,CAAA,yCAAA,qBAAA,CAAA,yCAAA,uBAAA,CAAA,yCAAA,sBAAA,CAAA,yCAAA,uBAAA,CAAA,yCAAA,mBAAA,CAAA,mBAAA,8CAAA,CAAA,+CAAA,CAAA,8CAAA,CAAA,+BAAA,2BAAA,gBAAA,CAAA,+CAAA,eAAA,CAAA,CAAA,eAAA,WAAA,CAAA,YAAA,CAAA,wBAAA,CAAA,SAAA,CAAA,yCAAA,CAAA,iBAAA,CAAA,OAAA,CAAA,KAAA,CAAA,yBAAA,WAAA,CAAA,MAAA,CAAA,UAAA,CAAA,KAAA,CAAA,YAAA,mCAAA,CAAA,kCAAA,CAAA,cAAA,uBAAA,CAAA,oBAAA,CAAA,eAAA,CAAA,kEAAA,CAAA,oCAAA,CAAA,uDAAA,CAAA,cAAA,CAAA,8EAAA,CAAA,aAAA,CAAA,oCAAA,CAAA,YAAA,CAAA,wCAAA,CAAA,yCAAA,CAAA,oBAAA,4CAAA,CAAA,wCAAA,uDAAA,CAAA,4BAAA,4CAAA,CAAA,qBAAA,gFAAA,4CAAA,CAAA,CAAA,uBAAA,gEAAA,CAAA,cAAA,CAAA,8CAAA,yDAAA,CAAA,iBAAA,CAAA,OAAA,CAAA,0BAAA,CAAA,uBAAA,MAAA,CAAA,iCAAA,UAAA,CAAA,OAAA,CAAA,yCAAA,CAAA,uBAAA,OAAA,CAAA,iCAAA,MAAA,CAAA,WAAA,CAAA,yCAAA,CAAA,iBAAA,WAAA,CAAA,eAAA,CAAA,wBAAA,CAAA,gCAAA,GAAA,SAAA,CAAA,IAAA,SAAA,CAAA,GAAA,SAAA,CAAA,CAAA,gCAAA,GAAA,gBAAA,CAAA,GAAA,mBAAA,CAAA",sourcesContent:[".yarl__fullsize{height:100%;width:100%}.yarl__relative{position:relative}.yarl__portal{bottom:0;left:0;opacity:0;overflow:hidden;position:fixed;right:0;top:0;transition:opacity var(--yarl__fade_animation_duration,.25s) var(--yarl__fade_animation_timing_function,ease);z-index:var(--yarl__portal_zindex,9999)}.yarl__portal_open{opacity:1}.yarl__container{background-color:var(--yarl__container_background_color,var(--yarl__color_backdrop,#000));bottom:0;left:0;outline:none;overflow:hidden;overscroll-behavior:var(--yarl__controller_overscroll_behavior,contain);position:absolute;right:0;top:0;touch-action:var(--yarl__controller_touch_action,none);-webkit-user-select:none;-moz-user-select:none;user-select:none}.yarl__carousel{align-content:center;align-items:stretch;display:flex;flex:0 0 auto;height:100%;justify-content:center;opacity:var(--yarl__pull_opacity,1);transform:translate(var(--yarl__swipe_offset,0),var(--yarl__pull_offset,0));width:calc(100% + (var(--yarl__carousel_slides_count) - 1)*(100% + var(--yarl__carousel_spacing_px, 0)*1px + var(--yarl__carousel_spacing_percent, 0)*1%))}.yarl__carousel_with_slides{-moz-column-gap:calc(var(--yarl__carousel_spacing_px, 0)*1px + 100/(var(--yarl__carousel_slides_count)*100 + (var(--yarl__carousel_slides_count) - 1)*var(--yarl__carousel_spacing_percent, 0))*var(--yarl__carousel_spacing_percent, 0)*1%);column-gap:calc(var(--yarl__carousel_spacing_px, 0)*1px + 100/(var(--yarl__carousel_slides_count)*100 + (var(--yarl__carousel_slides_count) - 1)*var(--yarl__carousel_spacing_percent, 0))*var(--yarl__carousel_spacing_percent, 0)*1%)}.yarl__flex_center{align-content:center;align-items:center;display:flex;justify-content:center}.yarl__slide{flex:1;overflow:hidden;padding:calc(var(--yarl__carousel_padding_px, 0)*1px + 100/(var(--yarl__carousel_slides_count)*100 + (var(--yarl__carousel_slides_count) - 1)*var(--yarl__carousel_spacing_percent, 0))*var(--yarl__carousel_padding_percent, 0)*1%);position:relative}[dir=rtl] .yarl__slide{--yarl__direction:-1}.yarl__slide_image{max-height:100%;max-width:100%;-o-object-fit:contain;object-fit:contain;touch-action:var(--yarl__controller_touch_action,none);-moz-user-select:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}@media screen and (min-width:800px){.yarl__slide_image{-webkit-backface-visibility:hidden;-webkit-transform:translateZ(0);-webkit-transform-style:preserve-3d}}.yarl__slide_image_cover{height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.yarl__slide_image_loading{opacity:0}.yarl__slide_placeholder{left:50%;line-height:0;position:absolute;top:50%;transform:translateX(-50%) translateY(-50%)}.yarl__slide_loading{animation:yarl__delayed_fadein 1s linear;color:var(--yarl__slide_icon_loading_color,var(--yarl__color_button,hsla(0,0%,100%,.8)))}.yarl__slide_loading line{animation:yarl__stroke_opacity 1s linear infinite}.yarl__slide_loading line:first-of-type{animation-delay:-1.875s}.yarl__slide_loading line:nth-of-type(2){animation-delay:-1.75s}.yarl__slide_loading line:nth-of-type(3){animation-delay:-1.625s}.yarl__slide_loading line:nth-of-type(4){animation-delay:-1.5s}.yarl__slide_loading line:nth-of-type(5){animation-delay:-1.375s}.yarl__slide_loading line:nth-of-type(6){animation-delay:-1.25s}.yarl__slide_loading line:nth-of-type(7){animation-delay:-1.125s}.yarl__slide_loading line:nth-of-type(8){animation-delay:-1s}.yarl__slide_error{color:var(--yarl__slide_icon_error_color,red);height:var(--yarl__slide_icon_error_size,48px);width:var(--yarl__slide_icon_error_size,48px)}@media (prefers-reduced-motion){.yarl__portal,.yarl__slide{transition:unset}.yarl__slide_loading,.yarl__slide_loading line{animation:unset}}.yarl__toolbar{bottom:auto;display:flex;justify-content:flex-end;left:auto;padding:var(--yarl__toolbar_padding,8px);position:absolute;right:0;top:0}[dir=rtl] .yarl__toolbar{bottom:auto;left:0;right:auto;top:0}.yarl__icon{height:var(--yarl__icon_size,32px);width:var(--yarl__icon_size,32px)}.yarl__button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--yarl__button_background_color,transparent);border:var(--yarl__button_border,0);color:var(--yarl__color_button,hsla(0,0%,100%,.8));cursor:pointer;filter:var(--yarl__button_filter,drop-shadow(2px 2px 2px rgba(0,0,0,.8)));line-height:0;margin:var(--yarl__button_margin,0);outline:none;padding:var(--yarl__button_padding,8px);-webkit-tap-highlight-color:transparent}.yarl__button:focus{color:var(--yarl__color_button_active,#fff)}.yarl__button:focus:not(:focus-visible){color:var(--yarl__color_button,hsla(0,0%,100%,.8))}.yarl__button:focus-visible{color:var(--yarl__color_button_active,#fff)}@media (hover:hover){.yarl__button:focus-visible:hover,.yarl__button:focus:hover,.yarl__button:hover{color:var(--yarl__color_button_active,#fff)}}.yarl__button:disabled{color:var(--yarl__color_button_disabled,hsla(0,0%,100%,.4));cursor:default}.yarl__navigation_next,.yarl__navigation_prev{padding:var(--yarl__navigation_button_padding,24px 16px);position:absolute;top:50%;transform:translateY(-50%)}.yarl__navigation_prev{left:0}[dir=rtl] .yarl__navigation_prev{left:unset;right:0;transform:translateY(-50%) rotate(180deg)}.yarl__navigation_next{right:0}[dir=rtl] .yarl__navigation_next{left:0;right:unset;transform:translateY(-50%) rotate(180deg)}.yarl__no_scroll{height:100%;overflow:hidden;overscroll-behavior:none}@keyframes yarl__delayed_fadein{0%{opacity:0}80%{opacity:0}to{opacity:1}}@keyframes yarl__stroke_opacity{0%{stroke-opacity:1}to{stroke-opacity:.125}}"],sourceRoot:""}]);const s=a},3836:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(60376),i=n.n(r),o=n(92696),a=n.n(o)()(i());a.push([e.id,".keyboard-focused{border:revert !important}[class*=mapContainer].keyboard-focused{border:#000 solid 2px !important}.geoview-map{position:relative !important}.ol-overlaycontainer-stopevent .ol-overviewmap:not(:last-child){display:none}@media(max-width: 960px){.ol-overviewmap{display:none}}.guideBox h3 img{vertical-align:bottom}.guideBox h4 img{vertical-align:bottom}.guideBox p img{vertical-align:bottom}","",{version:3,sources:["webpack://./src/ui/style/style.css"],names:[],mappings:"AAGA,kBACE,wBAAA,CAIF,uCACE,gCAAA,CAGF,aACE,4BAAA,CAOF,gEACE,YAAA,CAEF,yBACE,gBACE,YAAA,CAAA,CAKJ,iBACE,qBAAA,CAEF,iBACE,qBAAA,CAEF,gBACE,qBAAA",sourcesContent:["/*\nHold viewer specific css not inside theme\n*/\n.keyboard-focused {\n border: revert !important;\n}\n\n/* Work around to have border map container focus */\n[class*='mapContainer'].keyboard-focused {\n border: #000 solid 2px !important;\n}\n\n.geoview-map {\n position: relative !important;\n}\n\n/* FIX: fix issue when overview map is added on resize.\n This is a patch and would better resolve managing the screen resize event and trap the control creation.\n Because it would not happen very often in production it may be a suitable patch. \n*/\n.ol-overlaycontainer-stopevent .ol-overviewmap:not(:last-child) {\n display: none;\n}\n@media (max-width: 960px) {\n .ol-overviewmap {\n display: none;\n }\n}\n\n/* specifiv style for icon alignement in guide component */\n.guideBox h3 img {\n vertical-align: bottom;\n}\n.guideBox h4 img {\n vertical-align: bottom;\n}\n.guideBox p img {\n vertical-align: bottom;\n}\n"],sourceRoot:""}]);const s=a},98189:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(60376),i=n.n(r),o=n(92696),a=n.n(o)()(i());a.push([e.id,".ol-scale-line-inner{display:none}","",{version:3,sources:["webpack://./src/ui/style/vendor.css"],names:[],mappings:"AAOA,qBACE,YAAA",sourcesContent:["/*\nHold all third party libraries override\n*/\n\n/*\nOpenLayers\n*/\n.ol-scale-line-inner {\n display: none;\n}"],sourceRoot:""}]);const s=a},92696:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,i,o){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var s=0;s0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=o),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),t.push(u))}},t}},19811:e=>{"use strict";e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},60376:e=>{"use strict";e.exports=function(e){var t=e[1],n=e[3];if(!n)return t;if("function"==typeof btoa){var r=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),i="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),o="/*# ".concat(i," */");return[t].concat([o]).join("\n")}return[t].join("\n")}},78185:function(e){e.exports=function(){"use strict";var e=1e3,t=6e4,n=36e5,r="millisecond",i="second",o="minute",a="hour",s="day",l="week",c="month",u="quarter",d="year",h="date",p="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},y=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},v={s:y,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+y(r,2,"0")+":"+y(i,2,"0")},m:function e(t,n){if(t.date()1)return e(a[0])}else{var s=t.name;x[s]=t,i=s}return!r&&i&&(b=i),i||!r&&b},C=function(e,t){if(A(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new _(n)},E=v;E.l=S,E.i=A,E.w=function(e,t){return C(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var _=function(){function m(e){this.$L=S(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[w]=!0}var y=m.prototype;return y.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(E.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(f);if(r){var i=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(t)}(e),this.init()},y.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},y.$utils=function(){return E},y.isValid=function(){return!(this.$d.toString()===p)},y.isSame=function(e,t){var n=C(e);return this.startOf(t)<=n&&n<=this.endOf(t)},y.isAfter=function(e,t){return C(e)68?1900:2e3)},s=function(e){return function(t){this[e]=+t}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],c=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},u=function(e,t){var n,r=o.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?"pm":"PM");return n},d={A:[i,function(e){this.afternoon=u(e,!1)}],a:[i,function(e){this.afternoon=u(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[n,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[r,s("seconds")],ss:[r,s("seconds")],m:[r,s("minutes")],mm:[r,s("minutes")],H:[r,s("hours")],h:[r,s("hours")],HH:[r,s("hours")],hh:[r,s("hours")],D:[r,s("day")],DD:[n,s("day")],Do:[i,function(e){var t=o.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],M:[r,s("month")],MM:[n,s("month")],MMM:[i,function(e){var t=c("months"),n=(c("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[i,function(e){var t=c("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,s("year")],YY:[n,function(e){this.year=a(e)}],YYYY:[/\d{4}/,s("year")],Z:l,ZZ:l};function h(n){var r,i;r=n,i=o&&o.formats;for(var a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var o=r&&r.toUpperCase();return n||i[r]||e[r]||i[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=a.length,l=0;l-1)return new Date(("X"===t?1e3:1)*e);var r=h(t)(e),i=r.year,o=r.month,a=r.day,s=r.hours,l=r.minutes,c=r.seconds,u=r.milliseconds,d=r.zone,p=new Date,f=a||(i||o?1:p.getDate()),g=i||p.getFullYear(),m=0;i&&!o||(m=o>0?o-1:p.getMonth());var y=s||0,v=l||0,b=c||0,x=u||0;return d?new Date(Date.UTC(g,m,f,y,v,b,x+60*d.offset*1e3)):n?new Date(Date.UTC(g,m,f,y,v,b,x)):new Date(g,m,f,y,v,b,x)}catch(e){return new Date("")}}(t,s,r),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(s)&&(this.$d=new Date("")),o={}}else if(s instanceof Array)for(var p=s.length,f=1;f<=p;f+=1){a[1]=s[f-1];var g=n.apply(this,a);if(g.isValid()){this.$d=g.$d,this.$L=g.$L,this.init();break}f===p&&(this.$d=new Date(""))}else i.call(this,e)}}}()},75274:function(e){e.exports=function(){"use strict";var e,t,n=1e3,r=6e4,i=36e5,o=864e5,a=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,s=31536e6,l=2628e6,c=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,u={years:s,months:l,days:o,hours:i,minutes:r,seconds:n,milliseconds:1,weeks:6048e5},d=function(e){return e instanceof v},h=function(e,t,n){return new v(e,n,t.$l)},p=function(e){return t.p(e)+"s"},f=function(e){return e<0},g=function(e){return f(e)?Math.ceil(e):Math.floor(e)},m=function(e){return Math.abs(e)},y=function(e,t){return e?f(e)?{negative:!0,format:""+m(e)+t}:{negative:!1,format:""+e+t}:{negative:!1,format:""}},v=function(){function f(e,t,n){var r=this;if(this.$d={},this.$l=n,void 0===e&&(this.$ms=0,this.parseFromMilliseconds()),t)return h(e*u[p(t)],this);if("number"==typeof e)return this.$ms=e,this.parseFromMilliseconds(),this;if("object"==typeof e)return Object.keys(e).forEach((function(t){r.$d[p(t)]=e[t]})),this.calMilliseconds(),this;if("string"==typeof e){var i=e.match(c);if(i){var o=i.slice(2).map((function(e){return null!=e?Number(e):0}));return this.$d.years=o[0],this.$d.months=o[1],this.$d.weeks=o[2],this.$d.days=o[3],this.$d.hours=o[4],this.$d.minutes=o[5],this.$d.seconds=o[6],this.calMilliseconds(),this}}return this}var m=f.prototype;return m.calMilliseconds=function(){var e=this;this.$ms=Object.keys(this.$d).reduce((function(t,n){return t+(e.$d[n]||0)*u[n]}),0)},m.parseFromMilliseconds=function(){var e=this.$ms;this.$d.years=g(e/s),e%=s,this.$d.months=g(e/l),e%=l,this.$d.days=g(e/o),e%=o,this.$d.hours=g(e/i),e%=i,this.$d.minutes=g(e/r),e%=r,this.$d.seconds=g(e/n),e%=n,this.$d.milliseconds=e},m.toISOString=function(){var e=y(this.$d.years,"Y"),t=y(this.$d.months,"M"),n=+this.$d.days||0;this.$d.weeks&&(n+=7*this.$d.weeks);var r=y(n,"D"),i=y(this.$d.hours,"H"),o=y(this.$d.minutes,"M"),a=this.$d.seconds||0;this.$d.milliseconds&&(a+=this.$d.milliseconds/1e3,a=Math.round(1e3*a)/1e3);var s=y(a,"S"),l=e.negative||t.negative||r.negative||i.negative||o.negative||s.negative,c=i.format||o.format||s.format?"T":"",u=(l?"-":"")+"P"+e.format+t.format+r.format+c+i.format+o.format+s.format;return"P"===u||"-P"===u?"P0D":u},m.toJSON=function(){return this.toISOString()},m.format=function(e){var n=e||"YYYY-MM-DDTHH:mm:ss",r={Y:this.$d.years,YY:t.s(this.$d.years,2,"0"),YYYY:t.s(this.$d.years,4,"0"),M:this.$d.months,MM:t.s(this.$d.months,2,"0"),D:this.$d.days,DD:t.s(this.$d.days,2,"0"),H:this.$d.hours,HH:t.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:t.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:t.s(this.$d.seconds,2,"0"),SSS:t.s(this.$d.milliseconds,3,"0")};return n.replace(a,(function(e,t){return t||String(r[e])}))},m.as=function(e){return this.$ms/u[p(e)]},m.get=function(e){var t=this.$ms,n=p(e);return"milliseconds"===n?t%=1e3:t="weeks"===n?g(t/u[n]):this.$d[n],t||0},m.add=function(e,t,n){var r;return r=t?e*u[p(t)]:d(e)?e.$ms:h(e,this).$ms,h(this.$ms+r*(n?-1:1),this)},m.subtract=function(e,t){return this.add(e,t,!0)},m.locale=function(e){var t=this.clone();return t.$l=e,t},m.clone=function(){return h(this.$ms,this)},m.humanize=function(t){return e().add(this.$ms,"ms").locale(this.$l).fromNow(!t)},m.valueOf=function(){return this.asMilliseconds()},m.milliseconds=function(){return this.get("milliseconds")},m.asMilliseconds=function(){return this.as("milliseconds")},m.seconds=function(){return this.get("seconds")},m.asSeconds=function(){return this.as("seconds")},m.minutes=function(){return this.get("minutes")},m.asMinutes=function(){return this.as("minutes")},m.hours=function(){return this.get("hours")},m.asHours=function(){return this.as("hours")},m.days=function(){return this.get("days")},m.asDays=function(){return this.as("days")},m.weeks=function(){return this.get("weeks")},m.asWeeks=function(){return this.as("weeks")},m.months=function(){return this.get("months")},m.asMonths=function(){return this.as("months")},m.years=function(){return this.get("years")},m.asYears=function(){return this.as("years")},f}(),b=function(e,t,n){return e.add(t.years()*n,"y").add(t.months()*n,"M").add(t.days()*n,"d").add(t.hours()*n,"h").add(t.minutes()*n,"m").add(t.seconds()*n,"s").add(t.milliseconds()*n,"ms")};return function(n,r,i){e=i,t=i().$utils(),i.duration=function(e,t){var n=i.locale();return h(e,{$l:n},t)},i.isDuration=d;var o=r.prototype.add,a=r.prototype.subtract;r.prototype.add=function(e,t){return d(e)?b(this,e,1):o.bind(this)(e,t)},r.prototype.subtract=function(e,t){return d(e)?b(this,e,-1):a.bind(this)(e,t)}}}()},45816:function(e){e.exports=function(){"use strict";return function(e,t,n){t.prototype.isBetween=function(e,t,r,i){var o=n(e),a=n(t),s="("===(i=i||"()")[0],l=")"===i[1];return(s?this.isAfter(o,r):!this.isBefore(o,r))&&(l?this.isBefore(a,r):!this.isAfter(a,r))||(s?this.isBefore(o,r):!this.isAfter(o,r))&&(l?this.isAfter(a,r):!this.isBefore(a,r))}}}()},13246:function(e){e.exports=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(t,n,r){var i=n.prototype,o=i.format;r.en.formats=e,i.format=function(t){void 0===t&&(t="YYYY-MM-DDTHH:mm:ssZ");var n=this.$locale().formats,r=function(t,n){return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,r,i){var o=i&&i.toUpperCase();return r||n[i]||e[i]||n[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))}(t,void 0===n?{}:n);return o.call(this,r)}}}()},31770:function(e){e.exports=function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,i,o){var a=i.prototype;o.utc=function(e){return new i({date:e,utc:!0,args:arguments})},a.utc=function(t){var n=o(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},a.local=function(){return o(this.toDate(),{locale:this.$L,utc:!1})};var s=a.parse;a.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),s.call(this,e)};var l=a.init;a.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else l.call(this)};var c=a.utcOffset;a.utcOffset=function(r,i){var o=this.$utils().u;if(o(r))return this.$u?0:o(this.$offset)?c.call(this):this.$offset;if("string"==typeof r&&(r=function(e){void 0===e&&(e="");var r=e.match(t);if(!r)return null;var i=(""+r[0]).match(n)||["-",0,0],o=i[0],a=60*+i[1]+ +i[2];return 0===a?0:"+"===o?a:-a}(r),null===r))return this;var a=Math.abs(r)<=16?60*r:r,s=this;if(i)return s.$offset=a,s.$u=0===r,s;if(0!==r){var l=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(s=this.local().add(a+l,e)).$offset=a,s.$x.$localOffset=l}else s=this.utc();return s};var u=a.format;a.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return u.call(this,t)},a.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},a.isUTC=function(){return!!this.$u},a.toISOString=function(){return this.toDate().toISOString()},a.toString=function(){return this.toDate().toUTCString()};var d=a.toDate;a.toDate=function(e){return"s"===e&&this.$offset?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)};var h=a.diff;a.diff=function(e,t,n){if(e&&this.$u===e.$u)return h.call(this,e,t,n);var r=this.local(),i=o(e).local();return h.call(r,i,t,n)}}}()},41294:function(e){e.exports=function(){"use strict";var e="week",t="year";return function(n,r,i){var o=r.prototype;o.week=function(n){if(void 0===n&&(n=null),null!==n)return this.add(7*(n-this.week()),"day");var r=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var o=i(this).startOf(t).add(1,t).date(r),a=i(this).endOf(e);if(o.isBefore(a))return 1}var s=i(this).startOf(t).date(r).startOf(e).subtract(1,"millisecond"),l=this.diff(s,e,!0);return l<0?i(this).startOf("week").week():Math.ceil(l)},o.weeks=function(e){return void 0===e&&(e=null),this.week(e)}}}()},29221:e=>{"use strict";var t="%[a-f0-9]{2}",n=new RegExp("("+t+")|([^%]+?)","gi"),r=new RegExp("("+t+")+","gi");function i(e,t){try{return[decodeURIComponent(e.join(""))]}catch(e){}if(1===e.length)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],i(n),i(r))}function o(e){try{return decodeURIComponent(e)}catch(o){for(var t=e.match(n)||[],r=1;r{"use strict";var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===n}(e)}(e)};var n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function i(e,t,n){return e.concat(t).map((function(e){return r(e,n)}))}function o(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function a(e,t){try{return t in e}catch(e){return!1}}function s(e,t,n){var i={};return n.isMergeableObject(e)&&o(e).forEach((function(t){i[t]=r(e[t],n)})),o(t).forEach((function(o){(function(e,t){return a(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,o)||(a(e,o)&&n.isMergeableObject(t[o])?i[o]=function(e,t){if(!t.customMerge)return l;var n=t.customMerge(e);return"function"==typeof n?n:l}(o,n)(e[o],t[o],n):i[o]=r(t[o],n))})),i}function l(e,n,o){(o=o||{}).arrayMerge=o.arrayMerge||i,o.isMergeableObject=o.isMergeableObject||t,o.cloneUnlessOtherwiseSpecified=r;var a=Array.isArray(n);return a===Array.isArray(e)?a?o.arrayMerge(e,n,o):s(e,n,o):r(n,o)}l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return l(e,n,t)}),{})};var c=l;e.exports=c},88359:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.attributeNames=t.elementNames=void 0,t.elementNames=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map((function(e){return[e.toLowerCase(),e]}))),t.attributeNames=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map((function(e){return[e.toLowerCase(),e]})))},56963:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n");case s.Comment:return function(e){return"\x3c!--".concat(e.data,"--\x3e")}(e);case s.CDATA:return function(e){return"")}(e);case s.Script:case s.Style:case s.Tag:return function(e,t){var n;"foreign"===t.xmlMode&&(e.name=null!==(n=c.elementNames.get(e.name))&&void 0!==n?n:e.name,e.parent&&g.has(e.parent.name)&&(t=r(r({},t),{xmlMode:!1})));!t.xmlMode&&m.has(e.name)&&(t=r(r({},t),{xmlMode:"foreign"}));var i="<".concat(e.name),o=function(e,t){var n;if(e){var r=!1===(null!==(n=t.encodeEntities)&&void 0!==n?n:t.decodeEntities)?d:t.xmlMode||"utf8"!==t.encodeEntities?l.encodeXML:l.escapeAttribute;return Object.keys(e).map((function(n){var i,o,a=null!==(i=e[n])&&void 0!==i?i:"";return"foreign"===t.xmlMode&&(n=null!==(o=c.attributeNames.get(n))&&void 0!==o?o:n),t.emptyAttrs||t.xmlMode||""!==a?"".concat(n,'="').concat(r(a),'"'):n})).join(" ")}}(e.attribs,t);o&&(i+=" ".concat(o));0===e.children.length&&(t.xmlMode?!1!==t.selfClosingTags:t.selfClosingTags&&h.has(e.name))?(t.xmlMode||(i+=" "),i+="/>"):(i+=">",e.children.length>0&&(i+=p(e.children,t)),!t.xmlMode&&h.has(e.name)||(i+="")));return i}(e,t);case s.Text:return function(e,t){var n,r=e.data||"";!1===(null!==(n=t.encodeEntities)&&void 0!==n?n:t.decodeEntities)||!t.xmlMode&&e.parent&&u.has(e.parent.name)||(r=t.xmlMode||"utf8"!==t.encodeEntities?(0,l.encodeXML)(r):(0,l.escapeText)(r));return r}(e,t)}}t.render=p,t.default=p;var g=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),m=new Set(["svg","math"])},54718:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(n=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===n.Tag||e.type===n.Script||e.type===n.Style},t.Root=n.Root,t.Text=n.Text,t.Directive=n.Directive,t.Comment=n.Comment,t.Script=n.Script,t.Style=n.Style,t.Tag=n.Tag,t.CDATA=n.CDATA,t.Doctype=n.Doctype},62679:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var o=n(54718),a=n(56679);i(n(56679),t);var s=/\s+/g,l={normalizeWhitespace:!1,withStartIndices:!1,withEndIndices:!1,xmlMode:!1},c=function(){function e(e,t,n){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=l),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:l,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?o.ElementType.Tag:void 0,r=new a.Element(e,t,void 0,n);this.addNode(r),this.tagStack.push(r)},e.prototype.ontext=function(e){var t=this.options.normalizeWhitespace,n=this.lastNode;if(n&&n.type===o.ElementType.Text)t?n.data=(n.data+e).replace(s," "):n.data+=e,this.options.withEndIndices&&(n.endIndex=this.parser.endIndex);else{t&&(e=e.replace(s," "));var r=new a.Text(e);this.addNode(r),this.lastNode=r}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===o.ElementType.Comment)this.lastNode.data+=e;else{var t=new a.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new a.Text(""),t=new a.NodeWithChildren(o.ElementType.CDATA,[e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new a.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=c,t.default=c},56679:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(l);t.NodeWithChildren=p;var f=function(e){function t(t){return e.call(this,a.ElementType.Root,t)||this}return i(t,e),t}(p);t.Document=f;var g=function(e){function t(t,n,r,i){void 0===r&&(r=[]),void 0===i&&(i="script"===t?a.ElementType.Script:"style"===t?a.ElementType.Style:a.ElementType.Tag);var o=e.call(this,i,r)||this;return o.name=t,o.attribs=n,o}return i(t,e),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var n,r;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(r=e["x-attribsPrefix"])||void 0===r?void 0:r[t]}}))},enumerable:!1,configurable:!0}),t}(p);function m(e){return(0,a.isTag)(e)}function y(e){return e.type===a.ElementType.CDATA}function v(e){return e.type===a.ElementType.Text}function b(e){return e.type===a.ElementType.Comment}function x(e){return e.type===a.ElementType.Directive}function w(e){return e.type===a.ElementType.Root}function A(e,t){var n;if(void 0===t&&(t=!1),v(e))n=new u(e.data);else if(b(e))n=new d(e.data);else if(m(e)){var r=t?S(e.children):[],i=new g(e.name,o({},e.attribs),r);r.forEach((function(e){return e.parent=i})),null!=e.namespace&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=o({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=o({},e["x-attribsPrefix"])),n=i}else if(y(e)){r=t?S(e.children):[];var s=new p(a.ElementType.CDATA,r);r.forEach((function(e){return e.parent=s})),n=s}else if(w(e)){r=t?S(e.children):[];var l=new f(r);r.forEach((function(e){return e.parent=l})),e["x-mode"]&&(l["x-mode"]=e["x-mode"]),n=l}else{if(!x(e))throw new Error("Not implemented yet: ".concat(e.type));var c=new h(e.name,e.data);null!=e["x-name"]&&(c["x-name"]=e["x-name"],c["x-publicId"]=e["x-publicId"],c["x-systemId"]=e["x-systemId"]),n=c}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function S(e){for(var t=e.map((function(e){return A(e,!0)})),n=1;n0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(s);t.NodeWithChildren=h;var p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.CDATA,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(h);t.CDATA=p;var f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Root,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(h);t.Document=f;var g=function(e){function t(t,n,r,i){void 0===r&&(r=[]),void 0===i&&(i="script"===t?a.ElementType.Script:"style"===t?a.ElementType.Style:a.ElementType.Tag);var o=e.call(this,r)||this;return o.name=t,o.attribs=n,o.type=i,o}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var n,r;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(r=e["x-attribsPrefix"])||void 0===r?void 0:r[t]}}))},enumerable:!1,configurable:!0}),t}(h);function m(e){return(0,a.isTag)(e)}function y(e){return e.type===a.ElementType.CDATA}function v(e){return e.type===a.ElementType.Text}function b(e){return e.type===a.ElementType.Comment}function x(e){return e.type===a.ElementType.Directive}function w(e){return e.type===a.ElementType.Root}function A(e,t){var n;if(void 0===t&&(t=!1),v(e))n=new c(e.data);else if(b(e))n=new u(e.data);else if(m(e)){var r=t?S(e.children):[],i=new g(e.name,o({},e.attribs),r);r.forEach((function(e){return e.parent=i})),null!=e.namespace&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=o({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=o({},e["x-attribsPrefix"])),n=i}else if(y(e)){r=t?S(e.children):[];var a=new p(r);r.forEach((function(e){return e.parent=a})),n=a}else if(w(e)){r=t?S(e.children):[];var s=new f(r);r.forEach((function(e){return e.parent=s})),e["x-mode"]&&(s["x-mode"]=e["x-mode"]),n=s}else{if(!x(e))throw new Error("Not implemented yet: ".concat(e.type));var l=new d(e.name,e.data);null!=e["x-name"]&&(l["x-name"]=e["x-name"],l["x-publicId"]=e["x-publicId"],l["x-systemId"]=e["x-systemId"]),n=l}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function S(e){for(var t=e.map((function(e){return A(e,!0)})),n=1;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFeed=void 0;var r=n(11662),i=n(10944);t.getFeed=function(e){var t=l(d,e);return t?"feed"===t.name?function(e){var t,n=e.children,r={type:"atom",items:(0,i.getElementsByTagName)("entry",n).map((function(e){var t,n=e.children,r={media:s(n)};u(r,"id","id",n),u(r,"title","title",n);var i=null===(t=l("link",n))||void 0===t?void 0:t.attribs.href;i&&(r.link=i);var o=c("summary",n)||c("content",n);o&&(r.description=o);var a=c("updated",n);return a&&(r.pubDate=new Date(a)),r}))};u(r,"id","id",n),u(r,"title","title",n);var o=null===(t=l("link",n))||void 0===t?void 0:t.attribs.href;o&&(r.link=o);u(r,"description","subtitle",n);var a=c("updated",n);a&&(r.updated=new Date(a));return u(r,"author","email",n,!0),r}(t):function(e){var t,n,r=null!==(n=null===(t=l("channel",e.children))||void 0===t?void 0:t.children)&&void 0!==n?n:[],o={type:e.name.substr(0,3),id:"",items:(0,i.getElementsByTagName)("item",e.children).map((function(e){var t=e.children,n={media:s(t)};u(n,"id","guid",t),u(n,"title","title",t),u(n,"link","link",t),u(n,"description","description",t);var r=c("pubDate",t)||c("dc:date",t);return r&&(n.pubDate=new Date(r)),n}))};u(o,"title","title",r),u(o,"link","link",r),u(o,"description","description",r);var a=c("lastBuildDate",r);a&&(o.updated=new Date(a));return u(o,"author","managingEditor",r,!0),o}(t):null};var o=["url","type","lang"],a=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function s(e){return(0,i.getElementsByTagName)("media:content",e).map((function(e){for(var t=e.attribs,n={medium:t.medium,isDefault:!!t.isDefault},r=0,i=o;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uniqueSort=t.compareDocumentPosition=t.DocumentPosition=t.removeSubsets=void 0;var r,i=n(71667);function o(e,t){var n=[],o=[];if(e===t)return 0;for(var a=(0,i.hasChildren)(e)?e:e.parent;a;)n.unshift(a),a=a.parent;for(a=(0,i.hasChildren)(t)?t:t.parent;a;)o.unshift(a),a=a.parent;for(var s=Math.min(n.length,o.length),l=0;lu.indexOf(h)?c===t?r.FOLLOWING|r.CONTAINED_BY:r.FOLLOWING:c===e?r.PRECEDING|r.CONTAINS:r.PRECEDING}t.removeSubsets=function(e){for(var t=e.length;--t>=0;){var n=e[t];if(t>0&&e.lastIndexOf(n,t-1)>=0)e.splice(t,1);else for(var r=n.parent;r;r=r.parent)if(e.includes(r)){e.splice(t,1);break}}return e},function(e){e[e.DISCONNECTED=1]="DISCONNECTED",e[e.PRECEDING=2]="PRECEDING",e[e.FOLLOWING=4]="FOLLOWING",e[e.CONTAINS=8]="CONTAINS",e[e.CONTAINED_BY=16]="CONTAINED_BY"}(r=t.DocumentPosition||(t.DocumentPosition={})),t.compareDocumentPosition=o,t.uniqueSort=function(e){return(e=e.filter((function(e,t,n){return!n.includes(e,t+1)}))).sort((function(e,t){var n=o(e,t);return n&r.PRECEDING?-1:n&r.FOLLOWING?1:0})),e}},13975:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.hasChildren=t.isDocument=t.isComment=t.isText=t.isCDATA=t.isTag=void 0,i(n(11662),t),i(n(75257),t),i(n(41694),t),i(n(29727),t),i(n(10944),t),i(n(62614),t),i(n(52674),t);var o=n(71667);Object.defineProperty(t,"isTag",{enumerable:!0,get:function(){return o.isTag}}),Object.defineProperty(t,"isCDATA",{enumerable:!0,get:function(){return o.isCDATA}}),Object.defineProperty(t,"isText",{enumerable:!0,get:function(){return o.isText}}),Object.defineProperty(t,"isComment",{enumerable:!0,get:function(){return o.isComment}}),Object.defineProperty(t,"isDocument",{enumerable:!0,get:function(){return o.isDocument}}),Object.defineProperty(t,"hasChildren",{enumerable:!0,get:function(){return o.hasChildren}})},10944:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getElementsByTagType=t.getElementsByTagName=t.getElementById=t.getElements=t.testElement=void 0;var r=n(71667),i=n(29727),o={tag_name:function(e){return"function"==typeof e?function(t){return(0,r.isTag)(t)&&e(t.name)}:"*"===e?r.isTag:function(t){return(0,r.isTag)(t)&&t.name===e}},tag_type:function(e){return"function"==typeof e?function(t){return e(t.type)}:function(t){return t.type===e}},tag_contains:function(e){return"function"==typeof e?function(t){return(0,r.isText)(t)&&e(t.data)}:function(t){return(0,r.isText)(t)&&t.data===e}}};function a(e,t){return"function"==typeof t?function(n){return(0,r.isTag)(n)&&t(n.attribs[e])}:function(n){return(0,r.isTag)(n)&&n.attribs[e]===t}}function s(e,t){return function(n){return e(n)||t(n)}}function l(e){var t=Object.keys(e).map((function(t){var n=e[t];return Object.prototype.hasOwnProperty.call(o,t)?o[t](n):a(t,n)}));return 0===t.length?null:t.reduce(s)}t.testElement=function(e,t){var n=l(e);return!n||n(t)},t.getElements=function(e,t,n,r){void 0===r&&(r=1/0);var o=l(e);return o?(0,i.filter)(o,t,n,r):[]},t.getElementById=function(e,t,n){return void 0===n&&(n=!0),Array.isArray(t)||(t=[t]),(0,i.findOne)(a("id",e),t,n)},t.getElementsByTagName=function(e,t,n,r){return void 0===n&&(n=!0),void 0===r&&(r=1/0),(0,i.filter)(o.tag_name(e),t,n,r)},t.getElementsByTagType=function(e,t,n,r){return void 0===n&&(n=!0),void 0===r&&(r=1/0),(0,i.filter)(o.tag_type(e),t,n,r)}},41694:(e,t)=>{"use strict";function n(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){var t=e.parent.children,n=t.lastIndexOf(e);n>=0&&t.splice(n,1)}e.next=null,e.prev=null,e.parent=null}Object.defineProperty(t,"__esModule",{value:!0}),t.prepend=t.prependChild=t.append=t.appendChild=t.replaceElement=t.removeElement=void 0,t.removeElement=n,t.replaceElement=function(e,t){var n=t.prev=e.prev;n&&(n.next=t);var r=t.next=e.next;r&&(r.prev=t);var i=t.parent=e.parent;if(i){var o=i.children;o[o.lastIndexOf(e)]=t,e.parent=null}},t.appendChild=function(e,t){if(n(t),t.next=null,t.parent=e,e.children.push(t)>1){var r=e.children[e.children.length-2];r.next=t,t.prev=r}else t.prev=null},t.append=function(e,t){n(t);var r=e.parent,i=e.next;if(t.next=i,t.prev=e,e.next=t,t.parent=r,i){if(i.prev=t,r){var o=r.children;o.splice(o.lastIndexOf(i),0,t)}}else r&&r.children.push(t)},t.prependChild=function(e,t){if(n(t),t.parent=e,t.prev=null,1!==e.children.unshift(t)){var r=e.children[1];r.prev=t,t.next=r}else t.next=null},t.prepend=function(e,t){n(t);var r=e.parent;if(r){var i=r.children;i.splice(i.indexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=r,t.prev=e.prev,t.next=e,e.prev=t}},29727:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findAll=t.existsOne=t.findOne=t.findOneChild=t.find=t.filter=void 0;var r=n(71667);function i(e,t,n,i){for(var o=[],a=[t],s=[0];;)if(s[0]>=a[0].length){if(1===s.length)return o;a.shift(),s.shift()}else{var l=a[0][s[0]++];if(e(l)&&(o.push(l),--i<=0))return o;n&&(0,r.hasChildren)(l)&&l.children.length>0&&(s.unshift(0),a.unshift(l.children))}}t.filter=function(e,t,n,r){return void 0===n&&(n=!0),void 0===r&&(r=1/0),i(e,Array.isArray(t)?t:[t],n,r)},t.find=i,t.findOneChild=function(e,t){return t.find(e)},t.findOne=function e(t,n,i){void 0===i&&(i=!0);for(var o=null,a=0;a0&&(o=e(t,s.children,!0)))}return o},t.existsOne=function e(t,n){return n.some((function(n){return(0,r.isTag)(n)&&(t(n)||e(t,n.children))}))},t.findAll=function(e,t){for(var n=[],i=[t],o=[0];;)if(o[0]>=i[0].length){if(1===i.length)return n;i.shift(),o.shift()}else{var a=i[0][o[0]++];(0,r.isTag)(a)&&(e(a)&&n.push(a),a.children.length>0&&(o.unshift(0),i.unshift(a.children)))}}},11662:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.innerText=t.textContent=t.getText=t.getInnerHTML=t.getOuterHTML=void 0;var i=n(71667),o=r(n(56963)),a=n(54718);function s(e,t){return(0,o.default)(e,t)}t.getOuterHTML=s,t.getInnerHTML=function(e,t){return(0,i.hasChildren)(e)?e.children.map((function(e){return s(e,t)})).join(""):""},t.getText=function e(t){return Array.isArray(t)?t.map(e).join(""):(0,i.isTag)(t)?"br"===t.name?"\n":e(t.children):(0,i.isCDATA)(t)?e(t.children):(0,i.isText)(t)?t.data:""},t.textContent=function e(t){return Array.isArray(t)?t.map(e).join(""):(0,i.hasChildren)(t)&&!(0,i.isComment)(t)?e(t.children):(0,i.isText)(t)?t.data:""},t.innerText=function e(t){return Array.isArray(t)?t.map(e).join(""):(0,i.hasChildren)(t)&&(t.type===a.ElementType.Tag||(0,i.isCDATA)(t))?e(t.children):(0,i.isText)(t)?t.data:""}},75257:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.prevElementSibling=t.nextElementSibling=t.getName=t.hasAttrib=t.getAttributeValue=t.getSiblings=t.getParent=t.getChildren=void 0;var r=n(71667);function i(e){return(0,r.hasChildren)(e)?e.children:[]}function o(e){return e.parent||null}t.getChildren=i,t.getParent=o,t.getSiblings=function(e){var t=o(e);if(null!=t)return i(t);for(var n=[e],r=e.prev,a=e.next;null!=r;)n.unshift(r),r=r.prev;for(;null!=a;)n.push(a),a=a.next;return n},t.getAttributeValue=function(e,t){var n;return null===(n=e.attribs)||void 0===n?void 0:n[t]},t.hasAttrib=function(e,t){return null!=e.attribs&&Object.prototype.hasOwnProperty.call(e.attribs,t)&&null!=e.attribs[t]},t.getName=function(e){return e.name},t.nextElementSibling=function(e){for(var t=e.next;null!==t&&!(0,r.isTag)(t);)t=t.next;return t},t.prevElementSibling=function(e){for(var t=e.prev;null!==t&&!(0,r.isTag)(t);)t=t.prev;return t}},37118:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXML=t.decodeHTMLStrict=t.decodeHTMLAttribute=t.decodeHTML=t.determineBranch=t.EntityDecoder=t.DecodingMode=t.BinTrieFlags=t.fromCodePoint=t.replaceCodePoint=t.decodeCodePoint=t.xmlDecodeTree=t.htmlDecodeTree=void 0;var s=a(n(13739));t.htmlDecodeTree=s.default;var l=a(n(74125));t.xmlDecodeTree=l.default;var c=o(n(75840));t.decodeCodePoint=c.default;var u,d=n(75840);Object.defineProperty(t,"replaceCodePoint",{enumerable:!0,get:function(){return d.replaceCodePoint}}),Object.defineProperty(t,"fromCodePoint",{enumerable:!0,get:function(){return d.fromCodePoint}}),function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"}(u||(u={}));var h,p,f;function g(e){return e>=u.ZERO&&e<=u.NINE}function m(e){return e===u.EQUALS||function(e){return e>=u.UPPER_A&&e<=u.UPPER_Z||e>=u.LOWER_A&&e<=u.LOWER_Z||g(e)}(e)}!function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"}(h=t.BinTrieFlags||(t.BinTrieFlags={})),function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"}(p||(p={})),function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"}(f=t.DecodingMode||(t.DecodingMode={}));var y=function(){function e(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=p.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=f.Strict}return e.prototype.startEntity=function(e){this.decodeMode=e,this.state=p.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},e.prototype.write=function(e,t){switch(this.state){case p.EntityStart:return e.charCodeAt(t)===u.NUM?(this.state=p.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=p.NamedEntity,this.stateNamedEntity(e,t));case p.NumericStart:return this.stateNumericStart(e,t);case p.NumericDecimal:return this.stateNumericDecimal(e,t);case p.NumericHex:return this.stateNumericHex(e,t);case p.NamedEntity:return this.stateNamedEntity(e,t)}},e.prototype.stateNumericStart=function(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===u.LOWER_X?(this.state=p.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=p.NumericDecimal,this.stateNumericDecimal(e,t))},e.prototype.addToNumericResult=function(e,t,n,r){if(t!==n){var i=n-t;this.result=this.result*Math.pow(r,i)+parseInt(e.substr(t,i),r),this.consumed+=i}},e.prototype.stateNumericHex=function(e,t){for(var n,r=t;t=u.UPPER_A&&n<=u.UPPER_F||n>=u.LOWER_A&&n<=u.LOWER_F)))return this.addToNumericResult(e,r,t,16),this.emitNumericEntity(i,3);t+=1}return this.addToNumericResult(e,r,t,16),-1},e.prototype.stateNumericDecimal=function(e,t){for(var n=t;t>14;t>14)){if(o===u.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==f.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1},e.prototype.emitNotTerminatedNamedEntity=function(){var e,t=this.result,n=(this.decodeTree[t]&h.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,n,this.consumed),null===(e=this.errors)||void 0===e||e.missingSemicolonAfterCharacterReference(),this.consumed},e.prototype.emitNamedEntityData=function(e,t,n){var r=this.decodeTree;return this.emitCodePoint(1===t?r[e]&~h.VALUE_LENGTH:r[e+1],n),3===t&&this.emitCodePoint(r[e+2],n),n},e.prototype.end=function(){var e;switch(this.state){case p.NamedEntity:return 0===this.result||this.decodeMode===f.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity();case p.NumericDecimal:return this.emitNumericEntity(0,2);case p.NumericHex:return this.emitNumericEntity(0,3);case p.NumericStart:return null===(e=this.errors)||void 0===e||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case p.EntityStart:return 0}},e}();function v(e){var t="",n=new y(e,(function(e){return t+=(0,c.fromCodePoint)(e)}));return function(e,r){for(var i=0,o=0;(o=e.indexOf("&",o))>=0;){t+=e.slice(i,o),n.startEntity(r);var a=n.write(e,o+1);if(a<0){i=o+n.end();break}i=o+a,o=0===a?i+1:i}var s=t+e.slice(i);return t="",s}}function b(e,t,n,r){var i=(t&h.BRANCH_LENGTH)>>7,o=t&h.JUMP_TABLE;if(0===i)return 0!==o&&r===o?n:-1;if(o){var a=r-o;return a<0||a>=i?-1:e[n+a]-1}for(var s=n,l=s+i-1;s<=l;){var c=s+l>>>1,u=e[c];if(ur))return e[c+i];l=c-1}}return-1}t.EntityDecoder=y,t.determineBranch=b;var x=v(s.default),w=v(l.default);t.decodeHTML=function(e,t){return void 0===t&&(t=f.Legacy),x(e,t)},t.decodeHTMLAttribute=function(e){return x(e,f.Attribute)},t.decodeHTMLStrict=function(e){return x(e,f.Strict)},t.decodeXML=function(e){return w(e,f.Strict)}},75840:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.replaceCodePoint=t.fromCodePoint=void 0;var r=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function i(e){var t;return e>=55296&&e<=57343||e>1114111?65533:null!==(t=r.get(e))&&void 0!==t?t:e}t.fromCodePoint=null!==(n=String.fromCodePoint)&&void 0!==n?n:function(e){var t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e)},t.replaceCodePoint=i,t.default=function(e){return(0,t.fromCodePoint)(i(e))}},70322:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.encodeNonAsciiHTML=t.encodeHTML=void 0;var i=r(n(36264)),o=n(34091),a=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function s(e,t){for(var n,r="",a=0;null!==(n=e.exec(t));){var s=n.index;r+=t.substring(a,s);var l=t.charCodeAt(s),c=i.default.get(l);if("object"==typeof c){if(s+1{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.escapeText=t.escapeAttribute=t.escapeUTF8=t.escape=t.encodeXML=t.getCodePoint=t.xmlReplacer=void 0,t.xmlReplacer=/["&'<>$\x80-\uFFFF]/g;var n=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);function r(e){for(var r,i="",o=0;null!==(r=t.xmlReplacer.exec(e));){var a=r.index,s=e.charCodeAt(a),l=n.get(s);void 0!==l?(i+=e.substring(o,a)+l,o=a+1):(i+="".concat(e.substring(o,a),"&#x").concat((0,t.getCodePoint)(e,a).toString(16),";"),o=t.xmlReplacer.lastIndex+=Number(55296==(64512&s)))}return i+e.substr(o)}function i(e,t){return function(n){for(var r,i=0,o="";r=e.exec(n);)i!==r.index&&(o+=n.substring(i,r.index)),o+=t.get(r[0].charCodeAt(0)),i=r.index+1;return o+n.substring(i)}}t.getCodePoint=null!=String.prototype.codePointAt?function(e,t){return e.codePointAt(t)}:function(e,t){return 55296==(64512&e.charCodeAt(t))?1024*(e.charCodeAt(t)-55296)+e.charCodeAt(t+1)-56320+65536:e.charCodeAt(t)},t.encodeXML=r,t.escape=r,t.escapeUTF8=i(/[&<>'"]/g,n),t.escapeAttribute=i(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),t.escapeText=i(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]))},13739:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map((function(e){return e.charCodeAt(0)})))},74125:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=new Uint16Array("Ȁaglq\tɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((function(e){return e.charCodeAt(0)})))},36264:(e,t)=>{"use strict";function n(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXMLStrict=t.decodeHTML5Strict=t.decodeHTML4Strict=t.decodeHTML5=t.decodeHTML4=t.decodeHTMLAttribute=t.decodeHTMLStrict=t.decodeHTML=t.decodeXML=t.DecodingMode=t.EntityDecoder=t.encodeHTML5=t.encodeHTML4=t.encodeNonAsciiHTML=t.encodeHTML=t.escapeText=t.escapeAttribute=t.escapeUTF8=t.escape=t.encodeXML=t.encode=t.decodeStrict=t.decode=t.EncodingMode=t.EntityLevel=void 0;var r,i,o=n(37118),a=n(70322),s=n(34091);function l(e,t){if(void 0===t&&(t=r.XML),("number"==typeof t?t:t.level)===r.HTML){var n="object"==typeof t?t.mode:void 0;return(0,o.decodeHTML)(e,n)}return(0,o.decodeXML)(e)}!function(e){e[e.XML=0]="XML",e[e.HTML=1]="HTML"}(r=t.EntityLevel||(t.EntityLevel={})),function(e){e[e.UTF8=0]="UTF8",e[e.ASCII=1]="ASCII",e[e.Extensive=2]="Extensive",e[e.Attribute=3]="Attribute",e[e.Text=4]="Text"}(i=t.EncodingMode||(t.EncodingMode={})),t.decode=l,t.decodeStrict=function(e,t){var n;void 0===t&&(t=r.XML);var i="number"==typeof t?{level:t}:t;return null!==(n=i.mode)&&void 0!==n||(i.mode=o.DecodingMode.Strict),l(e,i)},t.encode=function(e,t){void 0===t&&(t=r.XML);var n="number"==typeof t?{level:t}:t;return n.mode===i.UTF8?(0,s.escapeUTF8)(e):n.mode===i.Attribute?(0,s.escapeAttribute)(e):n.mode===i.Text?(0,s.escapeText)(e):n.level===r.HTML?n.mode===i.ASCII?(0,a.encodeNonAsciiHTML)(e):(0,a.encodeHTML)(e):(0,s.encodeXML)(e)};var c=n(34091);Object.defineProperty(t,"encodeXML",{enumerable:!0,get:function(){return c.encodeXML}}),Object.defineProperty(t,"escape",{enumerable:!0,get:function(){return c.escape}}),Object.defineProperty(t,"escapeUTF8",{enumerable:!0,get:function(){return c.escapeUTF8}}),Object.defineProperty(t,"escapeAttribute",{enumerable:!0,get:function(){return c.escapeAttribute}}),Object.defineProperty(t,"escapeText",{enumerable:!0,get:function(){return c.escapeText}});var u=n(70322);Object.defineProperty(t,"encodeHTML",{enumerable:!0,get:function(){return u.encodeHTML}}),Object.defineProperty(t,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return u.encodeNonAsciiHTML}}),Object.defineProperty(t,"encodeHTML4",{enumerable:!0,get:function(){return u.encodeHTML}}),Object.defineProperty(t,"encodeHTML5",{enumerable:!0,get:function(){return u.encodeHTML}});var d=n(37118);Object.defineProperty(t,"EntityDecoder",{enumerable:!0,get:function(){return d.EntityDecoder}}),Object.defineProperty(t,"DecodingMode",{enumerable:!0,get:function(){return d.DecodingMode}}),Object.defineProperty(t,"decodeXML",{enumerable:!0,get:function(){return d.decodeXML}}),Object.defineProperty(t,"decodeHTML",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(t,"decodeHTMLStrict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTMLAttribute",{enumerable:!0,get:function(){return d.decodeHTMLAttribute}}),Object.defineProperty(t,"decodeHTML4",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(t,"decodeHTML5",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(t,"decodeHTML4Strict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTML5Strict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(t,"decodeXMLStrict",{enumerable:!0,get:function(){return d.decodeXML}})},21117:e=>{"use strict";e.exports=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}},47633:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExportToCsv=t.ConfigDefaults=t.CsvConfigConsts=void 0;var n=function(){function e(){}return e.EOL="\r\n",e.BOM="\ufeff",e.DEFAULT_FIELD_SEPARATOR=",",e.DEFAULT_DECIMAL_SEPARATOR=".",e.DEFAULT_QUOTE='"',e.DEFAULT_SHOW_TITLE=!1,e.DEFAULT_TITLE="My Generated Report",e.DEFAULT_FILENAME="generated",e.DEFAULT_SHOW_LABELS=!1,e.DEFAULT_USE_TEXT_FILE=!1,e.DEFAULT_USE_BOM=!0,e.DEFAULT_HEADER=[],e.DEFAULT_KEYS_AS_HEADERS=!1,e}();t.CsvConfigConsts=n,t.ConfigDefaults={filename:n.DEFAULT_FILENAME,fieldSeparator:n.DEFAULT_FIELD_SEPARATOR,quoteStrings:n.DEFAULT_QUOTE,decimalSeparator:n.DEFAULT_DECIMAL_SEPARATOR,showLabels:n.DEFAULT_SHOW_LABELS,showTitle:n.DEFAULT_SHOW_TITLE,title:n.DEFAULT_TITLE,useTextFile:n.DEFAULT_USE_TEXT_FILE,useBom:n.DEFAULT_USE_BOM,headers:n.DEFAULT_HEADER,useKeysAsHeaders:n.DEFAULT_KEYS_AS_HEADERS};var r=function(){function e(e){this._csv="";var n=e||{};this._options=a({},t.ConfigDefaults,n),this._options.useKeysAsHeaders&&this._options.headers&&this._options.headers.length>0&&console.warn("Option to use object keys as headers was set, but headers were still passed!")}return Object.defineProperty(e.prototype,"options",{get:function(){return this._options},set:function(e){this._options=a({},t.ConfigDefaults,e)},enumerable:!1,configurable:!0}),e.prototype.generateCsv=function(e,t){if(void 0===t&&(t=!1),this._csv="",this._parseData(e),this._options.useBom&&(this._csv+=n.BOM),this._options.showTitle&&(this._csv+=this._options.title+"\r\n\n"),this._createHeaders(),this._createBody(),""!=this._csv){if(t)return this._csv;var r=this._options.useTextFile?"plain":"csv",i=this._options.useTextFile?".txt":".csv",o=new Blob([this._csv],{type:"text/"+r+";charset=utf8;"}),a=document.createElement("a");a.href=URL.createObjectURL(o),a.setAttribute("visibility","hidden"),a.download=this._options.filename.replace(/ /g,"_")+i,document.body.appendChild(a),a.click(),document.body.removeChild(a)}else console.log("Invalid data")},e.prototype._getHeaders=function(){if(this._options.showLabels||this._options.useKeysAsHeaders)return this._options.useKeysAsHeaders?Object.keys(this._data[0]):this._options.headers},e.prototype._createHeaders=function(){var e=this._getHeaders();if(e.length>0){for(var t="",r=0;r-1||e.indexOf("\n")>-1||e.indexOf("\r")>-1)&&(e=this._options.quoteStrings+e+this._options.quoteStrings),e):"boolean"==typeof e?e?"TRUE":"FALSE":e},e.prototype._isFloat=function(e){return+e===e&&(!isFinite(e)||Boolean(e%1))},e.prototype._parseData=function(e){return this._data="object"!=typeof e?JSON.parse(e):e,this._data},e}();t.ExportToCsv=r;var i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function a(e){for(var t,n=[],r=1;r{"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(i=r;0!=i--;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(o=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=r;0!=i--;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;0!=i--;){var a=o[i];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n}},5137:e=>{"use strict";e.exports=function(e,t){for(var n={},r=Object.keys(e),i=Array.isArray(t),o=0;o{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){for(var n=0;n1?r-1:0),o=1;o element.");return c.cloneElement(t,{ref:function(n){var r=e.props.containerElements;t&&("function"==typeof t.ref?t.ref(n):t.ref&&(t.ref.current=n)),e.focusTrapElements=r||[n]}})}return null}}])&&i(t.prototype,n),r&&i(t,r),Object.defineProperty(t,"prototype",{writable:!1}),d}(c.Component),g="undefined"==typeof Element?Function:Element;f.propTypes={active:d.bool,paused:d.bool,focusTrapOptions:d.shape({document:d.object,onActivate:d.func,onPostActivate:d.func,checkCanFocusTrap:d.func,onDeactivate:d.func,onPostDeactivate:d.func,checkCanReturnFocus:d.func,initialFocus:d.oneOfType([d.instanceOf(g),d.string,d.bool,d.func]),fallbackFocus:d.oneOfType([d.instanceOf(g),d.string,d.func]),escapeDeactivates:d.oneOfType([d.bool,d.func]),clickOutsideDeactivates:d.oneOfType([d.bool,d.func]),returnFocusOnDeactivate:d.bool,setReturnFocus:d.oneOfType([d.instanceOf(g),d.string,d.bool,d.func]),allowOutsideClick:d.oneOfType([d.bool,d.func]),preventScroll:d.bool,tabbableOptions:d.shape({displayCheck:d.oneOf(["full","non-zero-area","none"]),getShadowRoot:d.oneOfType([d.bool,d.func])})}),containerElements:d.arrayOf(d.instanceOf(g)),children:d.oneOfType([d.element,d.instanceOf(g)])},f.defaultProps={active:!0,paused:!1,focusTrapOptions:{},_createFocusTrap:h},e.exports=f},68516:(e,t,n)=>{"use strict";n.r(t),n.d(t,{createFocusTrap:()=>p});var r=n(98710); +function(e,t){return e?function(e){return"function"==typeof e&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}(n=e)||"function"==typeof n||function(e){return"object"==typeof e&&"symbol"==typeof e.$$typeof&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}(n)?o.createElement(e,t):e:null;var n};function vI(){return{accessor:(e,t)=>"function"==typeof e?Object.assign(Object.assign({},t),{accessorFn:e}):Object.assign(Object.assign({},t),{accessorKey:e}),display:e=>e,group:e=>e}}const bI=(e,t,n=-1,r=0,i,o)=>zw(e,"mrt-row-create",null!=t?t:Object.assign({},...dI(e.options.columns).map((e=>({[uI(e)]:""})))),n,r,i,o),wI=(e,t)=>e instanceof Function?e(t):e,xI=e=>{var t,n,r;let i="",o="";return e&&("object"!=typeof e?(i=e,o=e):(i=null!==(n=null!==(t=e.label)&&void 0!==t?t:e.text)&&void 0!==n?n:e.value,o=null!==(r=e.value)&&void 0!==r?r:i)),{label:i,value:o}},AI=({cell:e,table:t})=>{const{enableEditing:n}=t.options,{column:{columnDef:r},row:i}=e;return!e.getIsPlaceholder()&&wI(n,i)&&!1!==wI(r.enableEditing,i)},SI=({cell:e,table:t})=>{const{options:{editDisplayMode:n},refs:{editInputRefs:r}}=t,{column:i}=e;AI({cell:e,table:t})&&"cell"===n&&(t.setEditingCell(e),queueMicrotask((()=>{var e;const t=r.current[i.id];t&&(t.focus(),null===(e=t.select)||void 0===e||e.call(t))})))};function CI({header:e,id:t,size:n,tableOptions:r}){const{defaultDisplayColumn:i,displayColumnDefOptions:o,localization:a}=r;return Object.assign(Object.assign(Object.assign(Object.assign({},i),{header:e?a[e]:"",size:n}),null==o?void 0:o[t]),{id:t})}const EI=e=>{const{enableRowPinning:t,rowPinningDisplayMode:n}=e;return!(!t||(null==n?void 0:n.startsWith("select")))},_I=e=>{const{enableRowDragging:t,enableRowOrdering:n}=e;return!(!t&&!n)},kI=e=>{const{enableExpanding:t,enableGrouping:n,renderDetailPanel:r,state:{grouping:i}}=e;return!!(t||n&&(null==i?void 0:i.length)||r)},TI=e=>{const{createDisplayMode:t,editDisplayMode:n,enableEditing:r,enableRowActions:i,state:{creatingRow:o}}=e;return!!(i||o&&"row"===t||r&&["modal","row"].includes(null!=n?n:""))},OI=e=>!!e.enableRowSelection,PI=e=>!!e.enableRowNumbers,II=e=>"grid-no-grow"===e.layoutMode,MI=e=>[EI(e)&&"mrt-row-pin",_I(e)&&"mrt-row-drag","first"===e.positionActionsColumn&&TI(e)&&"mrt-row-actions","first"===e.positionExpandColumn&&kI(e)&&"mrt-row-expand",OI(e)&&"mrt-row-select",PI(e)&&"mrt-row-numbers"].filter(Boolean),LI=e=>["last"===e.positionActionsColumn&&TI(e)&&"mrt-row-actions","last"===e.positionExpandColumn&&kI(e)&&"mrt-row-expand",II(e)&&"mrt-row-spacer"].filter(Boolean),RI=(e,t=!1)=>{const{state:{columnOrder:n=[]}}=e,r=MI(e),i=LI(e),o=dI(e.columns).map((e=>uI(e)));let a=t?o:Array.from(new Set([...n,...o]));return a=a.filter((e=>!r.includes(e)&&!i.includes(e))),[...r,...a,...i]},jI=Object.assign(Object.assign({},Rw),{fuzzy:(e,t,n)=>{let r=0;var i,o;return e.columnFiltersMeta[n]&&(i=e.columnFiltersMeta[n],o=t.columnFiltersMeta[n],r=i.rank===o.rank?0:i.rank>o.rank?-1:1),0===r?Rw.alphanumeric(e,t,n):r}}),FI=(e,t)=>Math.max(...Object.values(t.columnFiltersMeta).map((e=>e.rank)))-Math.max(...Object.values(e.columnFiltersMeta).map((e=>e.rank))),DI=(e,t)=>{const{getCenterRows:n,getPrePaginationRowModel:r,getRowModel:i,getState:o,getTopRows:a,options:{createDisplayMode:s,enablePagination:l,enableRowPinning:c,manualPagination:u,positionCreatingRow:d,rowPinningDisplayMode:h}}=e,{creatingRow:p,pagination:f}=o();let g=[];if(zI(e)){if(g=r().rows.sort(((e,t)=>FI(e,t))),l&&!u&&!t){const e=f.pageIndex*f.pageSize;g=g.slice(e,e+f.pageSize)}c&&!(null==h?void 0:h.includes("sticky"))&&(g=g.filter((e=>!e.getIsPinned())))}else g=!c||(null==h?void 0:h.includes("sticky"))?t?r().rows:i().rows:n();if(c&&(null==h?void 0:h.includes("sticky"))){const e=g.filter((e=>e.getIsPinned())).map((e=>e.id));g=[...a().filter((t=>!e.includes(t.id))),...g]}if(void 0!==d&&p&&"row"===s){const e=isNaN(+d)?"top"===d?0:g.length:+d;g=[...g.slice(0,e),p,...g.slice(e)]}return g},NI=e=>{const{getState:t,options:{enableGlobalFilterRankedResults:n,manualExpanding:r,manualFiltering:i,manualGrouping:o,manualSorting:a}}=e,{expanded:s,globalFilterFn:l}=t();return!r&&!i&&!o&&!a&&n&&"fuzzy"===l&&!0!==s&&!Object.values(s).some(Boolean)},zI=e=>{const{globalFilter:t,sorting:n}=e.getState();return NI(e)&&t&&!Object.values(n).some(Boolean)},VI=({row:e,table:t})=>{const{options:{enableRowSelection:n}}=t;return e.getIsSelected()||wI(n,e)&&e.getCanSelectSubRows()&&e.getIsAllSubRowsSelected()},BI=({row:e,staticRowIndex:t=0,table:n})=>(r,i)=>{var o;const{getState:a,options:{enableBatchRowSelection:s,enableMultiRowSelection:l,enableRowPinning:c,manualPagination:u,rowPinningDisplayMode:d},refs:{lastSelectedRowId:h}}=n,{pagination:{pageIndex:p,pageSize:f}}=a(),g=u?0:f*p,m=VI({row:e,table:n});e.toggleSelected(null!=i?i:!m);const y=new Set([e.id]);if(s&&l&&r.nativeEvent.shiftKey&&null!==h.current){const e=DI(n,!0),r=e.findIndex((e=>e.id===h.current));if(-1!==r){const i=VI({row:null==e?void 0:e[r],table:n}),o=t+g,[a,s]=re.toggleSelected(!1)))),c&&(null==d?void 0:d.includes("select"))&&y.forEach((e=>{n.getRow(e).pin(!m&&((null==d?void 0:d.includes("bottom"))?"bottom":"top"))}))},$I=({table:e})=>(t,n,r)=>{const{options:{enableRowPinning:i,rowPinningDisplayMode:o,selectAllMode:a},refs:{lastSelectedRowId:s}}=e;"all"===a||r?e.toggleAllRowsSelected(null!=n?n:t.target.checked):e.toggleAllPageRowsSelected(null!=n?n:t.target.checked),i&&(null==o?void 0:o.includes("select"))&&e.setRowPinning({bottom:[],top:[]}),s.current=null},GI=Object.assign({},Aw),UI=(e,t,n,r)=>{const i=Hw(e.getValue(t),n,{threshold:qw.MATCHES});return r(i),i.passed};UI.autoRemove=e=>!e;const WI=(e,t,n)=>e.getValue(t).toString().toLowerCase().trim().includes(n.toString().toLowerCase().trim());WI.autoRemove=e=>!e;const qI=(e,t,n)=>e.getValue(t).toString().toLowerCase().trim().startsWith(n.toString().toLowerCase().trim());qI.autoRemove=e=>!e;const HI=(e,t,n)=>e.getValue(t).toString().toLowerCase().trim().endsWith(n.toString().toLowerCase().trim());HI.autoRemove=e=>!e;const YI=(e,t,n)=>e.getValue(t).toString().toLowerCase().trim()===(null==n?void 0:n.toString().toLowerCase().trim());YI.autoRemove=e=>!e;const KI=(e,t,n)=>e.getValue(t).toString().toLowerCase().trim()!==n.toString().toLowerCase().trim();KI.autoRemove=e=>!e;const XI=(e,t,n)=>isNaN(+n)||isNaN(+e.getValue(t))?e.getValue(t).toString().toLowerCase().trim()>(null==n?void 0:n.toString().toLowerCase().trim()):+e.getValue(t)>+n;XI.autoRemove=e=>!e;const ZI=(e,t,n)=>YI(e,t,n)||XI(e,t,n);ZI.autoRemove=e=>!e;const JI=(e,t,n)=>isNaN(+n)||isNaN(+e.getValue(t))?e.getValue(t).toString().toLowerCase().trim()<(null==n?void 0:n.toString().toLowerCase().trim()):+e.getValue(t)<+n;JI.autoRemove=e=>!e;const QI=(e,t,n)=>YI(e,t,n)||JI(e,t,n);QI.autoRemove=e=>!e;const eM=(e,t,n)=>(["",void 0].includes(n[0])||XI(e,t,n[0]))&&(!isNaN(+n[0])&&!isNaN(+n[1])&&+n[0]>+n[1]||["",void 0].includes(n[1])||JI(e,t,n[1]));eM.autoRemove=e=>!e;const tM=(e,t,n)=>(["",void 0].includes(n[0])||ZI(e,t,n[0]))&&(!isNaN(+n[0])&&!isNaN(+n[1])&&+n[0]>+n[1]||["",void 0].includes(n[1])||QI(e,t,n[1]));tM.autoRemove=e=>!e;const nM=(e,t,n)=>!e.getValue(t).toString().trim();nM.autoRemove=e=>!e;const rM=(e,t,n)=>!!e.getValue(t).toString().trim();rM.autoRemove=e=>!e;const iM=Object.assign(Object.assign({},bw),{between:eM,betweenInclusive:tM,contains:WI,empty:nM,endsWith:HI,equals:YI,fuzzy:UI,greaterThan:XI,greaterThanOrEqualTo:ZI,lessThan:JI,lessThanOrEqualTo:QI,notEmpty:rM,notEquals:KI,startsWith:qI});function oM(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{var{row:t,table:n,variant:r="icon"}=e,i=oM(e,["row","table","variant"]);const{getState:o,options:{icons:{CancelIcon:s,SaveIcon:l},localization:c,onCreatingRowCancel:u,onCreatingRowSave:d,onEditingRowCancel:h,onEditingRowSave:p},refs:{editInputRefs:f},setCreatingRow:g,setEditingRow:m}=n,{creatingRow:y,editingRow:v,isSaving:b}=o(),w=(null==y?void 0:y.id)===t.id,x=(null==v?void 0:v.id)===t.id,A=()=>{w?(null==u||u({row:t,table:n}),g(null)):x&&(null==h||h({row:t,table:n}),m(null)),t._valuesCache={}},S=()=>{var e;null===(e=Object.values(null==f?void 0:f.current).filter((e=>{var n,r;return t.id===(null===(r=null===(n=null==e?void 0:e.name)||void 0===n?void 0:n.split("_"))||void 0===r?void 0:r[0])})))||void 0===e||e.forEach((e=>{void 0!==e.value&&Object.hasOwn(null==t?void 0:t._valuesCache,e.name)&&(t._valuesCache[e.name]=e.value)})),w?null==d||d({exitCreatingMode:()=>g(null),row:t,table:n,values:t._valuesCache}):x&&(null==p||p({exitEditingMode:()=>m(null),row:t,table:n,values:null==t?void 0:t._valuesCache}))};return(0,F.jsx)(a.A,{onClick:e=>e.stopPropagation(),sx:e=>Object.assign({display:"flex",gap:"0.75rem"},wI(null==i?void 0:i.sx,e)),children:"icon"===r?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(Ai,{title:c.cancel,children:(0,F.jsx)(Un,{"aria-label":c.cancel,onClick:A,children:(0,F.jsx)(s,{})})}),(w&&d||x&&p)&&(0,F.jsx)(Ai,{title:c.save,children:(0,F.jsx)(Un,{"aria-label":c.save,color:"info",onClick:S,children:b?(0,F.jsx)(Fa,{size:18}):(0,F.jsx)(l,{})})})]}):(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(Ni,{onClick:A,sx:{minWidth:"100px"},children:c.cancel}),(0,F.jsxs)(Ni,{onClick:S,sx:{minWidth:"100px"},variant:"contained",children:[b&&(0,F.jsx)(Fa,{color:"inherit",size:18}),c.save]})]})})},sM=e=>e.replace(/[^a-zA-Z0-9]/g,"_"),lM={content:'""',height:"100%",left:0,position:"absolute",top:0,width:"100%",zIndex:-1},cM=({column:e,table:t,theme:n})=>{const{baseBackgroundColor:r}=t.options.mrtTheme,i=null==e?void 0:e.getIsPinned();return{'&[data-pinned="true"]':{"&:before":Object.assign({backgroundColor:(0,jy.X4)((0,jy.e$)(r,"dark"===n.palette.mode?.05:.01),.97),boxShadow:e?"left"===i&&e.getIsLastColumn(i)?`-4px 0 4px -4px ${(0,jy.X4)(n.palette.grey[700],.5)} inset`:"right"===i&&e.getIsFirstColumn(i)?`4px 0 4px -4px ${(0,jy.X4)(n.palette.grey[700],.5)} inset`:void 0:void 0},lM)}}},uM=({column:e,header:t,table:n,tableCellProps:r,theme:i})=>{var o,a,s,l,c,u;const{getState:d,options:{enableColumnVirtualization:h,layoutMode:p}}=n,{draggingColumn:f}=d(),{columnDef:g}=e,{columnDefType:m}=g,y="group"!==g.columnDefType&&e.getIsPinned(),v={minWidth:`max(calc(var(--${t?"header":"col"}-${sM(null!==(o=null==t?void 0:t.id)&&void 0!==o?o:e.id)}-size) * 1px), ${null!==(a=g.minSize)&&void 0!==a?a:30}px)`,width:`calc(var(--${t?"header":"col"}-${sM(null!==(s=null==t?void 0:t.id)&&void 0!==s?s:e.id)}-size) * 1px)`};"grid"===p?v.flex=`${[0,!1].includes(g.grow)?0:`var(--${t?"header":"col"}-${sM(null!==(l=null==t?void 0:t.id)&&void 0!==l?l:e.id)}-size)`} 0 auto`:"grid-no-grow"===p&&(v.flex=+(g.grow||0)+" 0 auto");const b=y?Object.assign(Object.assign({},cM({column:e,table:n,theme:i})),{left:"left"===y?`${e.getStart("left")}px`:void 0,opacity:.97,position:"sticky",right:"right"===y?`${e.getAfter("right")}px`:void 0}):{};return Object.assign(Object.assign(Object.assign({backgroundColor:"inherit",backgroundImage:"inherit",display:(null==p?void 0:p.startsWith("grid"))?"flex":void 0,justifyContent:"group"===m?"center":(null==p?void 0:p.startsWith("grid"))?r.align:void 0,opacity:(null===(c=n.getState().draggingColumn)||void 0===c?void 0:c.id)===e.id||(null===(u=n.getState().hoveredColumn)||void 0===u?void 0:u.id)===e.id?.5:1,position:"relative",transition:h?"none":"padding 150ms ease-in-out",zIndex:e.getIsResizing()||(null==f?void 0:f.id)===e.id?2:"group"!==m&&y?1:0},b),v),wI(null==r?void 0:r.sx,i))},dM=({table:e})=>({alignItems:"flex-start",backgroundColor:e.options.mrtTheme.baseBackgroundColor,display:"grid",flexWrap:"wrap-reverse",minHeight:"3.5rem",overflow:"hidden",position:"relative",transition:"all 150ms ease-in-out",zIndex:1}),hM=e=>"rtl"===e.direction?{style:{transform:"scaleX(-1)"}}:void 0,pM=e=>({disableInteractive:!0,enterDelay:1e3,enterNextDelay:1e3,placement:e}),fM=e=>{var{icon:t,label:n,onOpenSubMenu:r,table:i}=e,o=oM(e,["icon","label","onOpenSubMenu","table"]);const{options:{icons:{ArrowRightIcon:s}}}=i;return(0,F.jsxs)(fo,Object.assign({sx:{alignItems:"center",justifyContent:"space-between",minWidth:"120px",my:0,py:"6px"}},o,{children:[(0,F.jsxs)(a.A,{sx:{alignItems:"center",display:"flex"},children:[(0,F.jsx)(Nd,{children:t}),n]}),r&&(0,F.jsx)(Un,{onClick:r,onMouseEnter:r,size:"small",sx:{p:0},children:(0,F.jsx)(s,{})})]}))},gM=e=>{var{anchorEl:t,handleEdit:n,row:r,setAnchorEl:i,staticRowIndex:o,table:a}=e,s=oM(e,["anchorEl","handleEdit","row","setAnchorEl","staticRowIndex","table"]);const{getState:l,options:{editDisplayMode:c,enableEditing:u,icons:{EditIcon:d},localization:h,mrtTheme:{menuBackgroundColor:p},renderRowActionMenuItems:f}}=a,{density:g}=l();return(0,F.jsxs)(jh,Object.assign({MenuListProps:{dense:"compact"===g,sx:{backgroundColor:p}},anchorEl:t,disableScrollLock:!0,onClick:e=>e.stopPropagation(),onClose:()=>i(null),open:!!t},s,{children:[wI(u,r)&&["modal","row"].includes(c)&&(0,F.jsx)(fM,{icon:(0,F.jsx)(d,{}),label:h.edit,onClick:n,table:a}),null==f?void 0:f({closeMenu:()=>i(null),row:r,staticRowIndex:o,table:a})]}))},mM={"&:hover":{opacity:1},height:"2rem",ml:"10px",opacity:.5,transition:"opacity 150ms",width:"2rem"},yM=e=>{var{cell:t,row:n,staticRowIndex:r,table:i}=e,a=oM(e,["cell","row","staticRowIndex","table"]);const{getState:s,options:{createDisplayMode:l,editDisplayMode:c,enableEditing:u,icons:{EditIcon:d,MoreHorizIcon:h},localization:p,renderRowActionMenuItems:f,renderRowActions:g},setEditingRow:m}=i,{creatingRow:y,editingRow:v}=s(),b=(null==y?void 0:y.id)===n.id,w=(null==v?void 0:v.id)===n.id,x=b&&"row"===l||w&&"row"===c,[A,S]=(0,o.useState)(null),C=e=>{e.stopPropagation(),m(Object.assign({},n)),S(null)};return(0,F.jsx)(F.Fragment,{children:g&&!x?g({cell:t,row:n,staticRowIndex:r,table:i}):x?(0,F.jsx)(aM,{row:n,table:i}):!f&&wI(u,n)&&["modal","row"].includes(c)?(0,F.jsx)(Ai,{placement:"right",title:p.edit,children:(0,F.jsx)(Un,Object.assign({"aria-label":p.edit,onClick:C,sx:mM},a,{children:(0,F.jsx)(d,{})}))}):f?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(Ai,Object.assign({},pM(),{title:p.rowActions,children:(0,F.jsx)(Un,Object.assign({"aria-label":p.rowActions,onClick:e=>{e.stopPropagation(),e.preventDefault(),S(e.currentTarget)},size:"small",sx:mM},a,{children:(0,F.jsx)(h,{})}))})),(0,F.jsx)(gM,{anchorEl:A,handleEdit:C,row:n,setAnchorEl:S,staticRowIndex:r,table:i})]}):null})},vM=e=>Object.assign({Cell:({cell:e,row:t,staticRowIndex:n,table:r})=>(0,F.jsx)(yM,{cell:e,row:t,staticRowIndex:n,table:r})},CI({header:"actions",id:"mrt-row-actions",size:70,tableOptions:e})),bM=e=>{var t,n,{location:r,table:i}=e,o=oM(e,["location","table"]);const{options:{icons:{DragHandleIcon:a},localization:s}}=i;return(0,F.jsx)(Ai,Object.assign({},pM("top"),{title:null!==(t=null==o?void 0:o.title)&&void 0!==t?t:s.move,children:(0,F.jsx)(Un,Object.assign({"aria-label":null!==(n=o.title)&&void 0!==n?n:s.move,disableRipple:!0,draggable:"true",size:"small"},o,{onClick:e=>{var t;e.stopPropagation(),null===(t=null==o?void 0:o.onClick)||void 0===t||t.call(o,e)},sx:e=>Object.assign({"&:active":{cursor:"grabbing"},"&:hover":{backgroundColor:"transparent",opacity:1},cursor:"grab",m:"0 -0.1rem",opacity:"row"===r?1:.5,p:"2px",transition:"all 150ms ease-in-out"},wI(null==o?void 0:o.sx,e)),title:void 0,children:(0,F.jsx)(a,{})}))}))},wM=e=>{var{row:t,rowRef:n,table:r}=e,i=oM(e,["row","rowRef","table"]);const{options:{muiRowDragHandleProps:o}}=r,a=Object.assign(Object.assign({},wI(o,{row:t,table:r})),i);return(0,F.jsx)(bM,Object.assign({},a,{location:"row",onDragEnd:e=>{var t;null===(t=null==a?void 0:a.onDragEnd)||void 0===t||t.call(a,e),r.setDraggingRow(null),r.setHoveredRow(null)},onDragStart:e=>{var i;null===(i=null==a?void 0:a.onDragStart)||void 0===i||i.call(a,e);try{e.dataTransfer.setDragImage(n.current,0,0)}catch(e){console.error(e)}r.setDraggingRow(t)},table:r}))},xM=e=>Object.assign({Cell:({row:e,rowRef:t,table:n})=>(0,F.jsx)(wM,{row:e,rowRef:t,table:n}),grow:!1},CI({header:"move",id:"mrt-row-drag",size:60,tableOptions:e})),AM=e=>{var t,n,{table:r}=e,i=oM(e,["table"]);const{getCanSomeRowsExpand:o,getIsAllRowsExpanded:a,getIsSomeRowsExpanded:s,getState:l,options:{icons:{KeyboardDoubleArrowDownIcon:c},localization:u,muiExpandAllButtonProps:d,renderDetailPanel:h},toggleAllRowsExpanded:p}=r,{density:f,isLoading:g}=l(),m=Object.assign(Object.assign({},wI(d,{table:r})),i),y=a();return(0,F.jsx)(Ai,Object.assign({},pM(),{title:null!==(t=null==m?void 0:m.title)&&void 0!==t?t:y?u.collapseAll:u.expandAll,children:(0,F.jsx)("span",{children:(0,F.jsx)(Un,Object.assign({"aria-label":u.expandAll,disabled:g||!h&&!o(),onClick:()=>p(!y)},m,{sx:e=>Object.assign({height:"compact"===f?"1.75rem":"2.25rem",mt:"compact"!==f?"-0.25rem":void 0,width:"compact"===f?"1.75rem":"2.25rem"},wI(null==m?void 0:m.sx,e)),title:void 0,children:null!==(n=null==m?void 0:m.children)&&void 0!==n?n:(0,F.jsx)(c,{style:{transform:`rotate(${y?-180:s()?-90:0}deg)`,transition:"transform 150ms"}})}))})}))},SM=({row:e,staticRowIndex:t,table:n})=>{var r,i;const o=(0,I.A)(),{getState:a,options:{icons:{ExpandMoreIcon:s},localization:l,muiExpandButtonProps:c,positionExpandColumn:u,renderDetailPanel:d}}=n,{density:h}=a(),p=wI(c,{row:e,staticRowIndex:t,table:n}),f=e.getCanExpand(),g=e.getIsExpanded(),m=!!(null==d?void 0:d({row:e,table:n}));return(0,F.jsx)(Ai,Object.assign({disableHoverListener:!f&&!m},pM(),{title:null!==(r=null==p?void 0:p.title)&&void 0!==r?r:g?l.collapse:l.expand,children:(0,F.jsx)("span",{children:(0,F.jsx)(Un,Object.assign({"aria-label":l.expand,disabled:!f&&!m},p,{onClick:t=>{var n;t.stopPropagation(),e.toggleExpanded(),null===(n=null==p?void 0:p.onClick)||void 0===n||n.call(p,t)},sx:t=>Object.assign({height:"compact"===h?"1.75rem":"2.25rem",opacity:f||m?1:.3,["rtl"===t.direction||"last"===u?"mr":"ml"]:16*e.depth+"px",width:"compact"===h?"1.75rem":"2.25rem"},wI(null==p?void 0:p.sx,t)),title:void 0,children:null!==(i=null==p?void 0:p.children)&&void 0!==i?i:(0,F.jsx)(s,{style:{transform:`rotate(${f||d?g?-180:0:"last"===u||"rtl"===o.direction?90:-90}deg)`,transition:"transform 150ms"}})}))})}))},CM=e=>{var t;const{defaultColumn:n,enableExpandAll:r,groupedColumnMode:i,positionExpandColumn:o,renderDetailPanel:a,state:{grouping:s}}=e,l="last"===o?{align:"right"}:void 0;return Object.assign({Cell:({cell:e,column:t,row:n,staticRowIndex:r,table:o})=>{var a,s,l;const c={row:n,staticRowIndex:r,table:o},u=null===(a=n.subRows)||void 0===a?void 0:a.length;return"remove"===i&&n.groupingColumnId?(0,F.jsxs)(Nu,{alignItems:"center",flexDirection:"row",gap:"0.25rem",children:[(0,F.jsx)(SM,Object.assign({},c)),(0,F.jsx)(Ai,Object.assign({},pM("right"),{title:o.getColumn(n.groupingColumnId).columnDef.header,children:(0,F.jsx)("span",{children:n.groupingValue})})),!!u&&(0,F.jsxs)("span",{children:["(",u,")"]})]}):(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(SM,Object.assign({},c)),null===(l=(s=t.columnDef).GroupedCell)||void 0===l?void 0:l.call(s,{cell:e,column:t,row:n,table:o})]})},Header:r?({table:e})=>{var t;return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(AM,{table:e}),"remove"===i&&(null===(t=null==s?void 0:s.map((t=>e.getColumn(t).columnDef.header)))||void 0===t?void 0:t.join(", "))]})}:void 0,muiTableBodyCellProps:l,muiTableHeadCellProps:l},CI({header:"expand",id:"mrt-row-expand",size:"remove"===i?null!==(t=null==n?void 0:n.size)&&void 0!==t?t:180:a?r?60:70:100,tableOptions:e}))},EM=e=>{const{localization:t,rowNumberDisplayMode:n}=e,{pagination:{pageIndex:r,pageSize:i}}=e.state;return Object.assign({Cell:({row:e,staticRowIndex:t})=>{var o;return(null!==(o="static"===n?(t||0)+(i||0)*(r||0):e.index)&&void 0!==o?o:0)+1},Header:()=>t.rowNumber,grow:!1},CI({header:"rowNumbers",id:"mrt-row-numbers",size:50,tableOptions:e}))},_M=e=>{var{pinningPosition:t,row:n,table:r}=e,i=oM(e,["pinningPosition","row","table"]);const{options:{icons:{CloseIcon:a,PushPinIcon:s},localization:l,rowPinningDisplayMode:c}}=r,u=n.getIsPinned(),[d,h]=(0,o.useState)(!1);return(0,F.jsx)(Ai,Object.assign({},pM(),{open:d,title:u?l.unpin:l.pin,children:(0,F.jsx)(Un,Object.assign({"aria-label":l.pin,onClick:e=>{h(!1),e.stopPropagation(),n.pin(!u&&t)},onMouseEnter:()=>h(!0),onMouseLeave:()=>h(!1),size:"small"},i,{sx:e=>Object.assign({height:"24px",width:"24px"},wI(null==i?void 0:i.sx,e)),children:u?(0,F.jsx)(a,{}):(0,F.jsx)(s,{fontSize:"small",style:{transform:`rotate(${"sticky"===c?135:"top"===t?180:0}deg)`}})}))}))},kM=e=>{var{row:t,table:n}=e,r=oM(e,["row","table"]);const{getState:i,options:{enableRowPinning:o,rowPinningDisplayMode:s}}=n,{density:l}=i();if(!wI(o,t))return null;const c=Object.assign({row:t,table:n},r);return"top-and-bottom"!==s||t.getIsPinned()?(0,F.jsx)(_M,Object.assign({pinningPosition:"bottom"===s?"bottom":"top"},c)):(0,F.jsxs)(a.A,{sx:{display:"flex",flexDirection:"compact"===l?"row":"column"},children:[(0,F.jsx)(_M,Object.assign({pinningPosition:"top"},c)),(0,F.jsx)(_M,Object.assign({pinningPosition:"bottom"},c))]})},TM=e=>{var t,{row:n,staticRowIndex:r,table:i}=e,o=oM(e,["row","staticRowIndex","table"]);const{getState:a,options:{enableMultiRowSelection:s,localization:l,muiSelectAllCheckboxProps:c,muiSelectCheckboxProps:u,selectAllMode:d}}=i,{density:h,isLoading:p}=a(),f=!n,g=f?"page"===d?i.getIsAllPageRowsSelected():i.getIsAllRowsSelected():void 0,m=f?g:VI({row:n,table:i}),y=Object.assign(Object.assign({},f?wI(c,{table:i}):wI(u,{row:n,staticRowIndex:r,table:i})),o),v=n?BI({row:n,staticRowIndex:r,table:i}):void 0,b=$I({table:i}),w=Object.assign(Object.assign({"aria-label":f?l.toggleSelectAll:l.toggleSelectRow,checked:m,disabled:p||n&&!n.getCanSelect()||"mrt-row-create"===(null==n?void 0:n.id),inputProps:{"aria-label":f?l.toggleSelectAll:l.toggleSelectRow},onChange:e=>{e.stopPropagation(),f?b(e):v(e)},size:"compact"===h?"small":"medium"},y),{onClick:e=>{var t;e.stopPropagation(),null===(t=null==y?void 0:y.onClick)||void 0===t||t.call(y,e)},sx:e=>Object.assign({height:"compact"===h?"1.75rem":"2.5rem",m:"compact"!==h?"-0.4rem":void 0,width:"compact"===h?"1.75rem":"2.5rem",zIndex:0},wI(null==y?void 0:y.sx,e)),title:void 0});return(0,F.jsx)(Ai,Object.assign({},pM(),{title:null!==(t=null==y?void 0:y.title)&&void 0!==t?t:f?l.toggleSelectAll:l.toggleSelectRow,children:!1===s?(0,F.jsx)(px,Object.assign({},w)):(0,F.jsx)(va,Object.assign({indeterminate:!m&&f?i.getIsSomeRowsSelected():(null==n?void 0:n.getIsSomeSelected())&&n.getCanSelectSubRows()},w))}))},OM=e=>{const{enableMultiRowSelection:t,enableSelectAll:n}=e;return Object.assign({Cell:({row:e,staticRowIndex:t,table:n})=>(0,F.jsx)(TM,{row:e,staticRowIndex:t,table:n}),Header:n&&t?({table:e})=>(0,F.jsx)(TM,{table:e}):void 0,grow:!1},CI({header:"select",id:"mrt-row-select",size:n?60:70,tableOptions:e}))},PM={ArrowDownwardIcon:fx.A,ArrowRightIcon:gx.A,CancelIcon:mx.A,ChevronLeftIcon:yx.A,ChevronRightIcon:vx.A,ClearAllIcon:bx.A,CloseIcon:wx.A,ContentCopy:xx.A,DensityLargeIcon:Ax.A,DensityMediumIcon:Sx.A,DensitySmallIcon:Cx.A,DragHandleIcon:Ex.A,DynamicFeedIcon:_x.A,EditIcon:kx.A,ExpandMoreIcon:Tx.A,FilterAltIcon:Ox.A,FilterListIcon:Px.A,FilterListOffIcon:Ix.A,FirstPageIcon:Mx.A,FullscreenExitIcon:Rx.A,FullscreenIcon:Lx.A,KeyboardDoubleArrowDownIcon:jx.A,LastPageIcon:Fx.A,MoreHorizIcon:Dx.A,MoreVertIcon:Nx.A,PushPinIcon:zx.A,RestartAltIcon:Vx.A,SaveIcon:Bx.A,SearchIcon:$x.A,SearchOffIcon:Gx.A,SortIcon:Ux.A,SyncAltIcon:Wx.A,ViewColumnIcon:qx.A,VisibilityOffIcon:Hx.A},IM={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"},MM={filterVariant:"text",maxSize:1e3,minSize:40,size:180},LM={columnDefType:"display",enableClickToCopy:!1,enableColumnActions:!1,enableColumnDragging:!1,enableColumnFilter:!1,enableColumnOrdering:!1,enableEditing:!1,enableGlobalFilter:!1,enableGrouping:!1,enableHiding:!1,enableResizing:!1,enableSorting:!1},RM=e=>{var t,{aggregationFns:n,autoResetExpanded:r=!1,columnFilterDisplayMode:i="subheader",columnResizeDirection:a,columnResizeMode:s="onChange",createDisplayMode:l="modal",defaultColumn:c,defaultDisplayColumn:u,editDisplayMode:d="modal",enableBatchRowSelection:h=!0,enableBottomToolbar:p=!0,enableColumnActions:f=!0,enableColumnFilters:g=!0,enableColumnOrdering:m=!1,enableColumnPinning:y=!1,enableColumnResizing:v=!1,enableColumnVirtualization:b,enableDensityToggle:w=!0,enableExpandAll:x=!0,enableExpanding:A,enableFacetedValues:S=!1,enableFilterMatchHighlighting:C=!0,enableFilters:E=!0,enableFullScreenToggle:_=!0,enableGlobalFilter:k=!0,enableGlobalFilterRankedResults:T=!0,enableGrouping:O=!1,enableHiding:P=!0,enableMultiRowSelection:M=!0,enableMultiSort:L=!0,enablePagination:R=!0,enableRowPinning:j=!1,enableRowSelection:F=!1,enableRowVirtualization:D,enableSelectAll:N=!0,enableSorting:z=!0,enableStickyHeader:V=!1,enableTableFooter:B=!0,enableTableHead:$=!0,enableToolbarInternalActions:G=!0,enableTopToolbar:U=!0,filterFns:W,icons:q,layoutMode:H,localization:Y,manualFiltering:K,manualGrouping:X,manualPagination:Z,manualSorting:J,mrtTheme:Q,paginationDisplayMode:ee="default",positionActionsColumn:te="first",positionCreatingRow:ne="top",positionExpandColumn:re="first",positionGlobalFilter:ie="right",positionPagination:oe="bottom",positionToolbarAlertBanner:ae="top",positionToolbarDropZone:se="top",rowNumberDisplayMode:le="static",rowPinningDisplayMode:ce="sticky",selectAllMode:ue="page",sortingFns:de}=e,he=oM(e,["aggregationFns","autoResetExpanded","columnFilterDisplayMode","columnResizeDirection","columnResizeMode","createDisplayMode","defaultColumn","defaultDisplayColumn","editDisplayMode","enableBatchRowSelection","enableBottomToolbar","enableColumnActions","enableColumnFilters","enableColumnOrdering","enableColumnPinning","enableColumnResizing","enableColumnVirtualization","enableDensityToggle","enableExpandAll","enableExpanding","enableFacetedValues","enableFilterMatchHighlighting","enableFilters","enableFullScreenToggle","enableGlobalFilter","enableGlobalFilterRankedResults","enableGrouping","enableHiding","enableMultiRowSelection","enableMultiSort","enablePagination","enableRowPinning","enableRowSelection","enableRowVirtualization","enableSelectAll","enableSorting","enableStickyHeader","enableTableFooter","enableTableHead","enableToolbarInternalActions","enableTopToolbar","filterFns","icons","layoutMode","localization","manualFiltering","manualGrouping","manualPagination","manualSorting","mrtTheme","paginationDisplayMode","positionActionsColumn","positionCreatingRow","positionExpandColumn","positionGlobalFilter","positionPagination","positionToolbarAlertBanner","positionToolbarDropZone","rowNumberDisplayMode","rowPinningDisplayMode","selectAllMode","sortingFns"]);const pe=(0,I.A)();return q=(0,o.useMemo)((()=>Object.assign(Object.assign({},PM),q)),[q]),Y=(0,o.useMemo)((()=>Object.assign(Object.assign({},IM),Y)),[Y]),Q=(0,o.useMemo)((()=>((e,t)=>{var n;const r=wI(e,t),i=null!==(n=null==r?void 0:r.baseBackgroundColor)&&void 0!==n?n:"dark"===t.palette.mode?(0,jy.a)(t.palette.background.default,.05):t.palette.background.default;return Object.assign({baseBackgroundColor:i,draggingBorderColor:t.palette.primary.main,matchHighlightColor:"dark"===t.palette.mode?(0,jy.e$)(t.palette.warning.dark,.25):(0,jy.a)(t.palette.warning.light,.5),menuBackgroundColor:(0,jy.a)(i,.07),pinnedRowBackgroundColor:(0,jy.X4)(t.palette.primary.main,.1),selectedRowBackgroundColor:(0,jy.X4)(t.palette.primary.main,.2)},r)})(Q,pe)),[Q,pe]),n=(0,o.useMemo)((()=>Object.assign(Object.assign({},GI),n)),[]),W=(0,o.useMemo)((()=>Object.assign(Object.assign({},iM),W)),[]),de=(0,o.useMemo)((()=>Object.assign(Object.assign({},jI),de)),[]),c=(0,o.useMemo)((()=>Object.assign(Object.assign({},MM),c)),[c]),u=(0,o.useMemo)((()=>Object.assign(Object.assign({},LM),u)),[u]),[b,D]=(0,o.useMemo)((()=>[b,D]),[]),a||(a=pe.direction||"ltr"),"semantic"===(H=H||(v?"grid-no-grow":"semantic"))&&(D||b)&&(H="grid"),D&&(V=!0),!1===R&&void 0===Z&&(Z=!0),(null===(t=he.data)||void 0===t?void 0:t.length)||(K=!0,X=!0,Z=!0,J=!0),Object.assign({aggregationFns:n,autoResetExpanded:r,columnFilterDisplayMode:i,columnResizeDirection:a,columnResizeMode:s,createDisplayMode:l,defaultColumn:c,defaultDisplayColumn:u,editDisplayMode:d,enableBatchRowSelection:h,enableBottomToolbar:p,enableColumnActions:f,enableColumnFilters:g,enableColumnOrdering:m,enableColumnPinning:y,enableColumnResizing:v,enableColumnVirtualization:b,enableDensityToggle:w,enableExpandAll:x,enableExpanding:A,enableFacetedValues:S,enableFilterMatchHighlighting:C,enableFilters:E,enableFullScreenToggle:_,enableGlobalFilter:k,enableGlobalFilterRankedResults:T,enableGrouping:O,enableHiding:P,enableMultiRowSelection:M,enableMultiSort:L,enablePagination:R,enableRowPinning:j,enableRowSelection:F,enableRowVirtualization:D,enableSelectAll:N,enableSorting:z,enableStickyHeader:V,enableTableFooter:B,enableTableHead:$,enableToolbarInternalActions:G,enableTopToolbar:U,filterFns:W,getCoreRowModel:e=>Qb((()=>[e.options.data]),(t=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(t,i,o){void 0===i&&(i=0);const a=[];for(let l=0;le._autoResetPageIndex()))),getExpandedRowModel:A||O?e=>Qb((()=>[e.getState().expanded,e.getPreExpandedRowModel(),e.options.paginateExpandedRows]),((e,t,n)=>!t.rows.length||!0!==e&&!Object.keys(null!=e?e:{}).length?t:n?$w(t):t),ew(e.options,"debugTable")):void 0,getFacetedMinMaxValues:S?(e,t)=>Qb((()=>{var n;return[null==(n=e.getColumn(t))?void 0:n.getFacetedRowModel()]}),(e=>{var n;if(!e)return;const r=null==(n=e.flatRows[0])?void 0:n.getUniqueValues(t);if(void 0===r)return;let i=[r,r];for(let n=0;ni[1]&&(i[1]=t)}}return i}),ew(e.options,"debugTable")):void 0,getFacetedRowModel:S?(e,t)=>Qb((()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter,e.getFilteredRowModel()]),((n,r,i)=>{if(!n.rows.length||(null==r||!r.length)&&!i)return n;const o=[...r.map((e=>e.id)).filter((e=>e!==t)),i?"__global__":void 0].filter(Boolean);return Vw(n.rows,(e=>{for(let t=0;tQb((()=>{var n;return[null==(n=e.getColumn(t))?void 0:n.getFacetedRowModel()]}),(e=>{if(!e)return new Map;let n=new Map;for(let i=0;iQb((()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter]),((t,n,r)=>{if(!t.rows.length||(null==n||!n.length)&&!r){for(let e=0;e{var n;const r=e.getColumn(t.id);if(!r)return;const o=r.getFilterFn();o&&i.push({id:t.id,filterFn:o,resolvedValue:null!=(n=null==o.resolveFilterValue?void 0:o.resolveFilterValue(t.value))?n:t.value})}));const a=n.map((e=>e.id)),s=e.getGlobalFilterFn(),l=e.getAllLeafColumns().filter((e=>e.getCanGlobalFilter()));let c,u;r&&s&&l.length&&(a.push("__global__"),l.forEach((e=>{var t;o.push({id:e.id,filterFn:s,resolvedValue:null!=(t=null==s.resolveFilterValue?void 0:s.resolveFilterValue(r))?t:r})})));for(let e=0;e{n.columnFiltersMeta[t]=e}))}if(o.length){for(let e=0;e{n.columnFiltersMeta[t]=e}))){n.columnFilters.__global__=!0;break}}!0!==n.columnFilters.__global__&&(n.columnFilters.__global__=!1)}}return Vw(t.rows,(e=>{for(let t=0;te._autoResetPageIndex()))):void 0,getGroupedRowModel:O?Bw():void 0,getPaginationRowModel:R?e=>Qb((()=>[e.getState().pagination,e.getPrePaginationRowModel(),e.options.paginateExpandedRows?void 0:e.getState().expanded]),((t,n)=>{if(!n.rows.length)return n;const{pageSize:r,pageIndex:i}=t;let{rows:o,flatRows:a,rowsById:s}=n;const l=r*i,c=l+r;let u;o=o.slice(l,c),u=e.options.paginateExpandedRows?{rows:o,flatRows:a,rowsById:s}:$w({rows:o,flatRows:a,rowsById:s}),u.flatRows=[];const d=e=>{u.flatRows.push(e),e.subRows.length&&e.subRows.forEach(d)};return u.rows.forEach(d),u}),ew(e.options,"debugTable")):void 0,getSortedRowModel:z?e=>Qb((()=>[e.getState().sorting,e.getPreSortedRowModel()]),((t,n)=>{if(!n.rows.length||null==t||!t.length)return n;const r=e.getState().sorting,i=[],o=r.filter((t=>{var n;return null==(n=e.getColumn(t.id))?void 0:n.getCanSort()})),a={};o.forEach((t=>{const n=e.getColumn(t.id);n&&(a[t.id]={sortUndefined:n.columnDef.sortUndefined,invertSorting:n.columnDef.invertSorting,sortingFn:n.getSortingFn()})}));const s=e=>{const t=e.map((e=>({...e})));return t.sort(((e,t)=>{for(let r=0;r{var t;i.push(e),null!=(t=e.subRows)&&t.length&&(e.subRows=s(e.subRows))})),t};return{rows:s(n.rows),flatRows:i,rowsById:n.rowsById}}),ew(e.options,"debugTable",0,(()=>e._autoResetPageIndex()))):void 0,getSubRows:e=>null==e?void 0:e.subRows,icons:q,layoutMode:H,localization:Y,manualFiltering:K,manualGrouping:X,manualPagination:Z,manualSorting:J,mrtTheme:Q,paginationDisplayMode:ee,positionActionsColumn:te,positionCreatingRow:ne,positionExpandColumn:re,positionGlobalFilter:ie,positionPagination:oe,positionToolbarAlertBanner:ae,positionToolbarDropZone:se,rowNumberDisplayMode:le,rowPinningDisplayMode:ce,selectAllMode:ue,sortingFns:de},he)},jM={children:null,sx:{minWidth:0,p:0,width:0}},FM=e=>Object.assign(Object.assign(Object.assign(Object.assign({},CI({id:"mrt-row-spacer",size:0,tableOptions:e})),{grow:!0}),LM),{muiTableBodyCellProps:jM,muiTableFooterCellProps:jM,muiTableHeadCellProps:jM}),DM=e=>{const{getIsSomeRowsPinned:t,getPrePaginationRowModel:n,getState:r,options:{enablePagination:i,enableRowPinning:a,rowCount:s}}=e,{columnOrder:l,density:c,globalFilter:u,isFullScreen:d,isLoading:h,pagination:p,showSkeletons:f,sorting:g}=r(),m=e.options.columns.length,y=null!=s?s:n().rows.length,v=(0,o.useReducer)((()=>({})),{})[1],b=(0,o.useRef)(),w=(0,o.useRef)();(0,o.useEffect)((()=>{"undefined"!=typeof window&&(b.current=document.body.style.height)}),[]),(0,o.useEffect)((()=>{if("undefined"!=typeof window)if(d)w.current=document.body.getBoundingClientRect().top,document.body.style.height="100dvh";else{if(document.body.style.height=b.current,!w.current)return;window.scrollTo({behavior:"instant",top:-1*w.current})}}),[d]),(0,o.useEffect)((()=>{m!==l.length&&e.setColumnOrder(RI(e.options))}),[m]),(0,o.useEffect)((()=>{if(!i||h||f)return;const{pageIndex:t,pageSize:n}=p;t*n>=y&&e.setPageIndex(Math.ceil(y/n)-1)}),[y]);const x=(0,o.useRef)(g);(0,o.useEffect)((()=>{g.length&&(x.current=g)}),[g]),(0,o.useEffect)((()=>{NI(e)&&(u?e.setSorting([]):e.setSorting((()=>x.current||[])))}),[u]),(0,o.useEffect)((()=>{a&&t()&&setTimeout((()=>{v()}),150)}),[c])},NM=e=>{var t,n,r,i,a,s,l,c,u,d,h,p,f,g,m,y,v,b,w,x,A,S,C,E,_,k,T,O,P,I,M,L,R,j,D;const N=(0,o.useRef)(null),z=(0,o.useRef)(null),V=(0,o.useRef)(null),B=(0,o.useRef)({}),$=(0,o.useRef)({}),G=(0,o.useRef)(null),U=(0,o.useRef)(null),W=(0,o.useRef)({}),q=(0,o.useRef)(null),H=(0,o.useRef)(null),Y=(0,o.useRef)(null),K=(0,o.useRef)(null),X=(0,o.useMemo)((()=>{var t,n,r;const i=null!==(t=e.initialState)&&void 0!==t?t:{};return i.columnOrder=null!==(n=i.columnOrder)&&void 0!==n?n:RI(Object.assign(Object.assign({},e),{state:Object.assign(Object.assign({},e.initialState),e.state)})),i.globalFilterFn=null!==(r=e.globalFilterFn)&&void 0!==r?r:"fuzzy",i}),[]);e.initialState=X;const[Z,J]=(0,o.useState)(null!==(t=X.actionCell)&&void 0!==t?t:null),[Q,ee]=(0,o.useState)(null!==(n=X.creatingRow)&&void 0!==n?n:null),[te,ne]=(0,o.useState)((()=>Object.assign({},...dI(e.columns).map((e=>{var t,n,r,i;return{[uI(e)]:e.filterFn instanceof Function?null!==(t=e.filterFn.name)&&void 0!==t?t:"custom":null!==(i=null!==(n=e.filterFn)&&void 0!==n?n:null===(r=null==X?void 0:X.columnFilterFns)||void 0===r?void 0:r[uI(e)])&&void 0!==i?i:fI(e)}}))))),[re,ie]=(0,o.useState)(null!==(r=X.columnOrder)&&void 0!==r?r:[]),[oe,ae]=(0,o.useState)(null!==(i=X.columnSizingInfo)&&void 0!==i?i:{}),[se,le]=(0,o.useState)(null!==(a=null==X?void 0:X.density)&&void 0!==a?a:"comfortable"),[ce,ue]=(0,o.useState)(null!==(s=X.draggingColumn)&&void 0!==s?s:null),[de,he]=(0,o.useState)(null!==(l=X.draggingRow)&&void 0!==l?l:null),[pe,fe]=(0,o.useState)(null!==(c=X.editingCell)&&void 0!==c?c:null),[ge,me]=(0,o.useState)(null!==(u=X.editingRow)&&void 0!==u?u:null),[ye,ve]=(0,o.useState)(null!==(d=X.globalFilterFn)&&void 0!==d?d:"fuzzy"),[be,we]=(0,o.useState)(null!==(h=X.grouping)&&void 0!==h?h:[]),[xe,Ae]=(0,o.useState)(null!==(p=X.hoveredColumn)&&void 0!==p?p:null),[Se,Ce]=(0,o.useState)(null!==(f=X.hoveredRow)&&void 0!==f?f:null),[Ee,_e]=(0,o.useState)(null!==(g=null==X?void 0:X.isFullScreen)&&void 0!==g&&g),[ke,Te]=(0,o.useState)(null!==(m=null==X?void 0:X.pagination)&&void 0!==m?m:{pageIndex:0,pageSize:10}),[Oe,Pe]=(0,o.useState)(null!==(y=null==X?void 0:X.showAlertBanner)&&void 0!==y&&y),[Ie,Me]=(0,o.useState)(null!==(v=null==X?void 0:X.showColumnFilters)&&void 0!==v&&v),[Le,Re]=(0,o.useState)(null!==(b=null==X?void 0:X.showGlobalFilter)&&void 0!==b&&b),[je,Fe]=(0,o.useState)(null!==(w=null==X?void 0:X.showToolbarDropZone)&&void 0!==w&&w);e.state=Object.assign({actionCell:Z,columnFilterFns:te,columnOrder:re,columnSizingInfo:oe,creatingRow:Q,density:se,draggingColumn:ce,draggingRow:de,editingCell:pe,editingRow:ge,globalFilterFn:ye,grouping:be,hoveredColumn:xe,hoveredRow:Se,isFullScreen:Ee,pagination:ke,showAlertBanner:Oe,showColumnFilters:Ie,showGlobalFilter:Le,showToolbarDropZone:je},e.state);const De=e,Ne=(0,o.useRef)([]);var ze;De.columns=De.state.columnSizingInfo.isResizingColumn||De.state.draggingColumn||De.state.draggingRow?Ne.current:hI({columnDefs:[...[EI(De)&&(ze=De,Object.assign({Cell:({row:e,table:t})=>(0,F.jsx)(kM,{row:e,table:t}),grow:!1},CI({header:"pin",id:"mrt-row-pin",size:60,tableOptions:ze}))),_I(De)&&xM(De),TI(De)&&vM(De),kI(De)&&CM(De),OI(De)&&OM(De),PI(De)&&EM(De)].filter(Boolean),...De.columns,...[II(De)&&FM(De)].filter(Boolean)],tableOptions:De}),Ne.current=De.columns,De.data=(0,o.useMemo)((()=>!De.state.isLoading&&!De.state.showSkeletons||De.data.length?De.data:[...Array(Math.min(De.state.pagination.pageSize,20)).fill(null)].map((()=>Object.assign({},...dI(De.columns).map((e=>({[uI(e)]:null}))))))),[De.data,De.state.isLoading,De.state.showSkeletons]);const Ve=function(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=o.useState((()=>({current:Nw(t)}))),[r,i]=o.useState((()=>n.current.initialState));return n.current.setOptions((t=>({...t,...e,state:{...r,...e.state},onStateChange:t=>{i(t),null==e.onStateChange||e.onStateChange(t)}}))),n.current}(Object.assign(Object.assign({onColumnOrderChange:ie,onColumnSizingInfoChange:ae,onGroupingChange:we,onPaginationChange:Te},De),{globalFilterFn:null===(x=De.filterFns)||void 0===x?void 0:x[null!=ye?ye:"fuzzy"]}));return Ve.refs={actionCellRef:z,bottomToolbarRef:V,editInputRefs:B,filterInputRefs:$,lastSelectedRowId:N,searchInputRef:G,tableContainerRef:U,tableFooterRef:K,tableHeadCellRefs:W,tableHeadRef:Y,tablePaperRef:q,topToolbarRef:H},Ve.setActionCell=null!==(A=De.onActionCellChange)&&void 0!==A?A:J,Ve.setCreatingRow=e=>{var t,n;let r=e;!0===e&&(r=bI(Ve)),null!==(n=null===(t=null==De?void 0:De.onCreatingRowChange)||void 0===t?void 0:t.call(De,r))&&void 0!==n||ee(r)},Ve.setColumnFilterFns=null!==(S=De.onColumnFilterFnsChange)&&void 0!==S?S:ne,Ve.setDensity=null!==(C=De.onDensityChange)&&void 0!==C?C:le,Ve.setDraggingColumn=null!==(E=De.onDraggingColumnChange)&&void 0!==E?E:ue,Ve.setDraggingRow=null!==(_=De.onDraggingRowChange)&&void 0!==_?_:he,Ve.setEditingCell=null!==(k=De.onEditingCellChange)&&void 0!==k?k:fe,Ve.setEditingRow=null!==(T=De.onEditingRowChange)&&void 0!==T?T:me,Ve.setGlobalFilterFn=null!==(O=De.onGlobalFilterFnChange)&&void 0!==O?O:ve,Ve.setHoveredColumn=null!==(P=De.onHoveredColumnChange)&&void 0!==P?P:Ae,Ve.setHoveredRow=null!==(I=De.onHoveredRowChange)&&void 0!==I?I:Ce,Ve.setIsFullScreen=null!==(M=De.onIsFullScreenChange)&&void 0!==M?M:_e,Ve.setShowAlertBanner=null!==(L=De.onShowAlertBannerChange)&&void 0!==L?L:Pe,Ve.setShowColumnFilters=null!==(R=De.onShowColumnFiltersChange)&&void 0!==R?R:Me,Ve.setShowGlobalFilter=null!==(j=De.onShowGlobalFilterChange)&&void 0!==j?j:Re,Ve.setShowToolbarDropZone=null!==(D=De.onShowToolbarDropZoneChange)&&void 0!==D?D:Fe,DM(Ve),Ve},zM=e=>NM(RM(e)),VM=(e,t)=>{const n=Zx(e);return void 0===t||(t>=0&&t=0&&t>e.endIndex+e.overscan&&n.push(t)),n},BM=e=>{var t,n,r,i;const{getState:a,options:{columnVirtualizerInstanceRef:s,columnVirtualizerOptions:l,enableColumnPinning:c,enableColumnVirtualization:u},refs:{tableContainerRef:d}}=e,{columnPinning:h,columnVisibility:p,draggingColumn:f}=a();if(!u)return;const g=wI(l,{table:e}),m=e.getVisibleLeafColumns(),[y,v]=(0,o.useMemo)((()=>c?[e.getLeftVisibleLeafColumns().map((e=>e.getPinnedIndex())),e.getRightVisibleLeafColumns().map((e=>m.length-e.getPinnedIndex()-1)).sort(((e,t)=>e-t))]:[[],[]]),[h,p,c]),b=y.length,w=v.length,x=(0,o.useMemo)((()=>(null==f?void 0:f.id)?m.findIndex((e=>e.id===(null==f?void 0:f.id))):void 0),[null==f?void 0:f.id]),A=aA(Object.assign({count:m.length,estimateSize:e=>m[e].getSize(),getScrollElement:()=>d.current,horizontal:!0,overscan:3,rangeExtractor:(0,o.useCallback)((e=>{const t=VM(e,x);return b||w?[...new Set([...y,...t,...v])]:t}),[y,v,x])},g)),S=A.getVirtualItems();A.virtualColumns=S;const C=S.length;if(C){const e=A.getTotalSize(),o=(null===(t=S[b])||void 0===t?void 0:t.start)||0,a=(null===(n=S[y.length-1])||void 0===n?void 0:n.end)||0,s=(null===(r=S[C-w])||void 0===r?void 0:r.start)||0,l=(null===(i=S[C-w-1])||void 0===i?void 0:i.end)||0;A.virtualPaddingLeft=o-a,A.virtualPaddingRight=e-l-(w?e-s:0)}return s&&(s.current=A),A},$M=(e,t)=>{var n;const{getRowModel:r,getState:i,options:{enableRowVirtualization:a,renderDetailPanel:s,rowVirtualizerInstanceRef:l,rowVirtualizerOptions:c},refs:{tableContainerRef:u}}=e,{density:d,draggingRow:h,expanded:p}=i();if(!a)return;const f=wI(c,{table:e}),g=null!==(n=null==t?void 0:t.length)&&void 0!==n?n:r().rows.length,m="compact"===d?37:"comfortable"===d?58:73,y=aA(Object.assign({count:s?2*g:g,estimateSize:e=>s&&e%2==1?!0===p?100:0:m,getScrollElement:()=>u.current,measureElement:"undefined"!=typeof window&&-1===navigator.userAgent.indexOf("Firefox")?e=>null==e?void 0:e.getBoundingClientRect().height:void 0,overscan:4,rangeExtractor:(0,o.useCallback)((e=>{var t;return VM(e,null!==(t=null==h?void 0:h.index)&&void 0!==t?t:0)}),[h])},f));return y.virtualRows=y.getVirtualItems(),l&&(l.current=y),y},GM=e=>{const{getRowModel:t,getState:n,options:{data:r,enableGlobalFilterRankedResults:i,positionCreatingRow:a}}=e,{creatingRow:s,expanded:l,globalFilter:c,pagination:u,rowPinning:d,sorting:h}=n();return(0,o.useMemo)((()=>DI(e)),[s,r,i,l,t().rows,c,u.pageIndex,u.pageSize,a,d,h])},UM=["string","number"],WM=({cell:e,rowRef:t,staticColumnIndex:n,staticRowIndex:r,table:i})=>{var o,s,l;const{getState:c,options:{enableFilterMatchHighlighting:u,mrtTheme:{matchHighlightColor:d}}}=i,{column:h,row:p}=e,{columnDef:f}=h,{globalFilter:g,globalFilterFn:m}=c(),y=h.getFilterValue();let v=e.getIsAggregated()&&f.AggregatedCell?f.AggregatedCell({cell:e,column:h,row:p,table:i}):p.getIsGrouped()&&!e.getIsGrouped()?null:e.getIsGrouped()&&f.GroupedCell?f.GroupedCell({cell:e,column:h,row:p,table:i}):void 0;const b=void 0!==v;if(b||(v=e.renderValue()),u&&!1!==f.enableFilterMatchHighlighting&&String(v)&&UM.includes(typeof v)&&(y&&UM.includes(typeof y)&&["autocomplete","text"].includes(f.filterVariant)||g&&UM.includes(typeof g)&&h.getCanGlobalFilter())){const e=null==eS?void 0:eS({matchExactly:"fuzzy"!==(y?f._filterFn:m),query:(null!==(o=null!=y?y:g)&&void 0!==o?o:"").toString(),text:null==v?void 0:v.toString()});((null==e?void 0:e.length)>1||(null===(s=null==e?void 0:e[0])||void 0===s?void 0:s.match))&&(v=(0,F.jsx)("span",{"aria-label":v,role:"note",children:null!==(l=null==e?void 0:e.map((({key:e,match:t,text:n})=>(0,F.jsx)(a.A,{"aria-hidden":"true",component:"span",sx:t?{backgroundColor:d,borderRadius:"2px",color:e=>"dark"===e.palette.mode?e.palette.common.white:e.palette.common.black,padding:"2px 1px"}:void 0,children:n},e))))&&void 0!==l?l:v}))}return f.Cell&&!b&&(v=f.Cell({cell:e,column:h,renderedCellValue:v,row:p,rowRef:t,staticColumnIndex:n,staticRowIndex:r,table:i})),v},qM=e=>{var t,{cell:n,table:r}=e,i=oM(e,["cell","table"]);const{options:{localization:a,muiCopyButtonProps:s}}=r,{column:l,row:c}=n,{columnDef:u}=l,[d,h]=(0,o.useState)(!1),p=Object.assign(Object.assign(Object.assign({},wI(s,{cell:n,column:l,row:c,table:r})),wI(u.muiCopyButtonProps,{cell:n,column:l,row:c,table:r})),i);return(0,F.jsx)(Ai,Object.assign({},pM("top"),{title:null!==(t=null==p?void 0:p.title)&&void 0!==t?t:d?a.copiedToClipboard:a.clickToCopy,children:(0,F.jsx)(Ni,Object.assign({onClick:e=>{return t=e,r=n.getValue(),t.stopPropagation(),navigator.clipboard.writeText(r),h(!0),void setTimeout((()=>h(!1)),4e3);var t,r},size:"small",type:"button",variant:"text"},p,{sx:e=>Object.assign({backgroundColor:"transparent",border:"none",color:"inherit",cursor:"copy",fontFamily:"inherit",fontSize:"inherit",letterSpacing:"inherit",m:"-0.25rem",minWidth:"unset",py:0,textAlign:"inherit",textTransform:"inherit"},wI(null==p?void 0:p.sx,e)),title:void 0}))}))},HM=e=>{var t,n,{cell:r,table:i}=e,a=oM(e,["cell","table"]);const{getState:s,options:{createDisplayMode:l,editDisplayMode:c,muiEditTextFieldProps:u},refs:{editInputRefs:d},setCreatingRow:h,setEditingCell:p,setEditingRow:f}=i,{column:g,row:m}=r,{columnDef:y}=g,{creatingRow:v,editingRow:b}=s(),{editSelectOptions:w,editVariant:x}=y,A=(null==v?void 0:v.id)===m.id,S=(null==b?void 0:b.id)===m.id,[C,E]=(0,o.useState)((()=>r.getValue())),_=Object.assign(Object.assign(Object.assign({},wI(u,{cell:r,column:g,row:m,table:i})),wI(y.muiEditTextFieldProps,{cell:r,column:g,row:m,table:i})),a),k=wI(w,{cell:r,column:g,row:m,table:i}),T="select"===x||(null==_?void 0:_.select),O=e=>{m._valuesCache[g.id]=e,A?h(m):S&&f(m)};return y.Edit?(0,F.jsx)(F.Fragment,{children:null===(t=y.Edit)||void 0===t?void 0:t.call(y,{cell:r,column:g,row:m,table:i})}):(0,F.jsx)(oS,Object.assign({disabled:!1===wI(y.enableEditing,m),fullWidth:!0,inputRef:e=>{e&&(d.current[g.id]=e,_.inputRef&&(_.inputRef=e))},label:["custom","modal"].includes(A?l:c)?y.header:void 0,margin:"none",name:g.id,placeholder:["custom","modal"].includes(A?l:c)?void 0:y.header,select:T,size:"small",value:null!=C?C:"",variant:"standard"},_,{InputProps:Object.assign(Object.assign(Object.assign({},"outlined"!==_.variant?{disableUnderline:"table"===c}:{}),_.InputProps),{sx:e=>{var t;return Object.assign({mb:0},wI(null===(t=null==_?void 0:_.InputProps)||void 0===t?void 0:t.sx,e))}}),SelectProps:{MenuProps:{disableScrollLock:!0}},inputProps:Object.assign({autoComplete:"new-password"},_.inputProps),onBlur:e=>{var t;null===(t=_.onBlur)||void 0===t||t.call(_,e),O(C),p(null)},onChange:e=>{var t;null===(t=_.onChange)||void 0===t||t.call(_,e),E(e.target.value),T&&O(e.target.value)},onClick:e=>{var t;e.stopPropagation(),null===(t=null==_?void 0:_.onClick)||void 0===t||t.call(_,e)},onKeyDown:e=>{var t,n;null===(t=_.onKeyDown)||void 0===t||t.call(_,e),"Enter"!==e.key||e.shiftKey||null===(n=d.current[g.id])||void 0===n||n.blur()},children:null!==(n=_.children)&&void 0!==n?n:null==k?void 0:k.map((e=>{const{label:t,value:n}=xI(e);return(0,F.jsx)(fo,{sx:{alignItems:"center",display:"flex",gap:"0.5rem",m:0},value:n,children:t},n)}))}))},YM=e=>{var t,n,r,i,a,{cell:s,numRows:l,rowRef:c,staticColumnIndex:u,staticRowIndex:d,table:h}=e,p=oM(e,["cell","numRows","rowRef","staticColumnIndex","staticRowIndex","table"]);const f=(0,I.A)(),{getState:g,options:{columnResizeDirection:m,columnResizeMode:y,createDisplayMode:v,editDisplayMode:b,enableCellActions:w,enableClickToCopy:x,enableColumnOrdering:A,enableColumnPinning:S,enableGrouping:C,layoutMode:E,mrtTheme:{draggingBorderColor:_},muiSkeletonProps:k,muiTableBodyCellProps:T},setHoveredColumn:O}=h,{actionCell:P,columnSizingInfo:M,creatingRow:L,density:R,draggingColumn:j,draggingRow:D,editingCell:N,editingRow:z,hoveredColumn:V,hoveredRow:B,isLoading:$,showSkeletons:G}=g(),{column:U,row:W}=s,{columnDef:q}=U,{columnDefType:H}=q,Y={cell:s,column:U,row:W,table:h},K=Object.assign(Object.assign(Object.assign({},wI(T,Y)),wI(q.muiTableBodyCellProps,Y)),p),X=wI(k,{cell:s,column:U,row:W,table:h}),[Z,J]=(0,o.useState)(100);(0,o.useEffect)((()=>{if(!$&&!G||100!==Z)return;const e=U.getSize();J("display"===H?e/2:Math.round(Math.random()*(e-e/3)+e/3))}),[$,G]);const Q=(0,o.useMemo)((()=>{const e=(null==j?void 0:j.id)===U.id,t=(null==V?void 0:V.id)===U.id,n=(null==D?void 0:D.id)===W.id,r=(null==B?void 0:B.id)===W.id,i=U.getIsFirstColumn(),o=U.getIsLastColumn(),a=l&&d===l-1,s=M.isResizingColumn===U.id,c=s&&"onChange"===y,u=c?`2px solid ${_} !important`:e||n?`1px dashed ${f.palette.grey[500]} !important`:t||r||s?`2px dashed ${_} !important`:void 0;return c?"ltr"===m?{borderRight:u}:{borderLeft:u}:u?{borderBottom:n||r||a&&!s?u:void 0,borderLeft:e||t||(n||r)&&i?u:void 0,borderRight:e||t||(n||r)&&o?u:void 0,borderTop:n||r?u:void 0}:void 0}),[M.isResizingColumn,j,D,V,B,d]),ee=S&&"group"!==q.columnDefType&&U.getIsPinned(),te=AI({cell:s,table:h}),ne=te&&!["custom","modal"].includes(b)&&("table"===b||(null==z?void 0:z.id)===W.id||(null==N?void 0:N.id)===s.id)&&!W.getIsGrouped(),re=te&&"row"===v&&(null==L?void 0:L.id)===W.id,ie=(!0===wI(x,s)||!0===wI(q.enableClickToCopy,s))&&!["context-menu",!1].includes(wI(q.enableClickToCopy,s)),oe=wI(w,s),ae={cell:s,table:h};return(0,F.jsx)(FA,Object.assign({align:"rtl"===f.direction?"right":"left","data-index":u,"data-pinned":!!ee||void 0},K,{onContextMenu:e=>{var t;null===(t=null==K?void 0:K.onContextMenu)||void 0===t||t.call(K,e),oe&&(e.preventDefault(),h.setActionCell(s),h.refs.actionCellRef.current=e.currentTarget)},onDoubleClick:e=>{var t;null===(t=null==K?void 0:K.onDoubleClick)||void 0===t||t.call(K,e),SI({cell:s,table:h})},onDragEnter:e=>{var t;null===(t=null==K?void 0:K.onDragEnter)||void 0===t||t.call(K,e),C&&"drop-zone"===(null==V?void 0:V.id)&&O(null),A&&j&&O(!1!==q.enableColumnOrdering?U:null)},onDragOver:e=>{!1!==q.enableColumnOrdering&&e.preventDefault()},sx:e=>Object.assign(Object.assign({"&:hover":{outline:(null==P?void 0:P.id)===s.id||"cell"===b&&te||"table"===b&&(re||ne)?`1px solid ${e.palette.grey[500]}`:void 0,textOverflow:"clip"},alignItems:(null==E?void 0:E.startsWith("grid"))?"center":void 0,cursor:oe?"context-menu":te&&"cell"===b?"pointer":"inherit",outline:(null==P?void 0:P.id)===s.id?`1px solid ${e.palette.grey[500]}`:void 0,outlineOffset:"-1px",overflow:"hidden",p:"compact"===R?"display"===H?"0 0.5rem":"0.5rem":"comfortable"===R?"display"===H?"0.5rem 0.75rem":"1rem":"display"===H?"1rem 1.25rem":"1.5rem",textOverflow:"display"!==H?"ellipsis":void 0,whiteSpace:W.getIsPinned()||"compact"===R?"nowrap":"normal"},uM({column:U,table:h,tableCellProps:K,theme:e})),Q),children:null!==(t=K.children)&&void 0!==t?t:(0,F.jsxs)(F.Fragment,{children:[s.getIsPlaceholder()?null!==(r=null===(n=q.PlaceholderCell)||void 0===n?void 0:n.call(q,{cell:s,column:U,row:W,table:h}))&&void 0!==r?r:null:!1!==G&&($||G)?(0,F.jsx)(Hy,Object.assign({animation:"wave",height:20,width:Z},X)):"display"!==H||!["mrt-row-expand","mrt-row-numbers","mrt-row-select"].includes(U.id)&&W.getIsGrouped()?re||ne?(0,F.jsx)(HM,{cell:s,table:h}):ie&&!1!==q.enableClickToCopy?(0,F.jsx)(qM,{cell:s,table:h,children:(0,F.jsx)(WM,Object.assign({},ae))}):(0,F.jsx)(WM,Object.assign({},ae)):null===(i=q.Cell)||void 0===i?void 0:i.call(q,{cell:s,column:U,renderedCellValue:s.renderValue(),row:W,rowRef:c,staticColumnIndex:u,staticRowIndex:d,table:h}),s.getIsGrouped()&&!q.GroupedCell&&(0,F.jsxs)(F.Fragment,{children:[" (",null===(a=W.subRows)||void 0===a?void 0:a.length,")"]})]})}))},KM=(0,o.memo)(YM,((e,t)=>t.cell===e.cell)),XM=e=>{var{parentRowRef:t,row:n,rowVirtualizer:r,staticRowIndex:i,table:o,virtualRow:a}=e,s=oM(e,["parentRowRef","row","rowVirtualizer","staticRowIndex","table","virtualRow"]);const{getState:l,getVisibleLeafColumns:c,options:{layoutMode:u,mrtTheme:{baseBackgroundColor:d},muiDetailPanelProps:h,muiTableBodyRowProps:p,renderDetailPanel:f}}=o,{isLoading:g}=l(),m=wI(p,{isDetailPanel:!0,row:n,staticRowIndex:i,table:o}),y=Object.assign(Object.assign({},wI(h,{row:n,table:o})),s),v=!g&&(null==f?void 0:f({row:n,table:o}));return(0,F.jsx)(PA,Object.assign({className:"Mui-TableBodyCell-DetailPanel","data-index":f?2*i+1:i,ref:e=>{var t;e&&(null===(t=null==r?void 0:r.measureElement)||void 0===t||t.call(r,e))}},m,{sx:e=>{var n,r;return Object.assign({display:(null==u?void 0:u.startsWith("grid"))?"flex":void 0,position:a?"absolute":void 0,top:a?`${null===(r=null===(n=t.current)||void 0===n?void 0:n.getBoundingClientRect())||void 0===r?void 0:r.height}px`:void 0,transform:a?`translateY(${null==a?void 0:a.start}px)`:void 0,width:"100%"},wI(null==m?void 0:m.sx,e))},children:(0,F.jsx)(FA,Object.assign({className:"Mui-TableBodyCell-DetailPanel",colSpan:c().length},y,{sx:e=>Object.assign({backgroundColor:a?d:void 0,borderBottom:n.getIsExpanded()?void 0:"none",display:(null==u?void 0:u.startsWith("grid"))?"flex":void 0,py:v&&n.getIsExpanded()?"1rem":0,transition:a?void 0:"all 150ms ease-in-out",width:"100%"},wI(null==y?void 0:y.sx,e)),children:a?n.getIsExpanded()&&v:(0,F.jsx)($,{in:n.getIsExpanded(),mountOnEnter:!0,unmountOnExit:!0,children:v})}))}))},ZM=e=>{var t,n,r,i,{columnVirtualizer:a,numRows:s,pinnedRowIds:l,row:c,rowVirtualizer:u,staticRowIndex:d,table:h,virtualRow:p}=e,f=oM(e,["columnVirtualizer","numRows","pinnedRowIds","row","rowVirtualizer","staticRowIndex","table","virtualRow"]);const g=(0,I.A)(),{getState:m,options:{enableRowOrdering:y,enableRowPinning:v,enableStickyFooter:b,enableStickyHeader:w,layoutMode:x,memoMode:A,mrtTheme:{baseBackgroundColor:S,pinnedRowBackgroundColor:C,selectedRowBackgroundColor:E},muiTableBodyRowProps:_,renderDetailPanel:k,rowPinningDisplayMode:T},refs:{tableFooterRef:O,tableHeadRef:P},setHoveredRow:M}=h,{density:L,draggingColumn:R,draggingRow:j,editingCell:D,editingRow:N,hoveredRow:z,isFullScreen:V,rowPinning:B}=m(),$=c.getVisibleCells(),{virtualColumns:G,virtualPaddingLeft:U,virtualPaddingRight:W}=null!=a?a:{},q=VI({row:c,table:h}),H=v&&c.getIsPinned(),Y=(null==j?void 0:j.id)===c.id,K=(null==z?void 0:z.id)===c.id,X=Object.assign(Object.assign({},wI(_,{row:c,staticRowIndex:d,table:h})),f),[Z,J]=(0,o.useMemo)((()=>v&&(null==T?void 0:T.includes("sticky"))&&l&&c.getIsPinned()?[[...l].reverse().indexOf(c.id),l.indexOf(c.id)]:[]),[l,B]),Q=(w||V)&&(null===(t=P.current)||void 0===t?void 0:t.clientHeight)||0,ee=b&&(null===(n=O.current)||void 0===n?void 0:n.clientHeight)||0,te=wI(null==X?void 0:X.sx,g),ne="compact"===L?37:"comfortable"===L?53:69,re=parseInt(null!==(i=null===(r=null==X?void 0:X.style)||void 0===r?void 0:r.height)&&void 0!==i?i:null==te?void 0:te.height,10)||void 0||ne,ie=(0,o.useRef)(null),oe=q?E:H?C:void 0,ae=!1!==(null==X?void 0:X.hover)?q?oe:"dark"===g.palette.mode?`${(0,jy.a)(S,.3)}`:`${(0,jy.e$)(S,.3)}`:void 0;return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(PA,Object.assign({"data-index":k?2*d:d,"data-pinned":!!H||void 0,"data-selected":q||void 0,onDragEnter:e=>{y&&j&&M(c)},onDragOver:e=>{e.preventDefault()},ref:e=>{e&&(ie.current=e,null==u||u.measureElement(e))},selected:q},X,{style:Object.assign({transform:p?`translateY(${p.start}px)`:void 0},null==X?void 0:X.style),sx:e=>Object.assign({"&:hover td:after":ae?Object.assign({backgroundColor:(0,jy.X4)(ae,.3)},lM):void 0,backgroundColor:`${S} !important`,bottom:!p&&void 0!==Z&&H?Z*re+(b?ee-1:0)+"px":void 0,boxSizing:"border-box",display:(null==x?void 0:x.startsWith("grid"))?"flex":void 0,opacity:H?.97:Y||K?.5:1,position:p?"absolute":(null==T?void 0:T.includes("sticky"))&&H?"sticky":"relative",td:Object.assign({},cM({table:h,theme:e})),"td:after":oe?Object.assign({backgroundColor:oe},lM):void 0,top:p?0:void 0!==J&&H?J*re+(w||V?Q-1:0)+"px":void 0,transition:p?"none":"all 150ms ease-in-out",width:"100%",zIndex:(null==T?void 0:T.includes("sticky"))&&H?2:0},te),children:[U?(0,F.jsx)("td",{style:{display:"flex",width:U}}):null,(null!=G?G:$).map(((e,t)=>{let n=e;a&&(t=e.index,n=$[t]);const r={cell:n,numRows:s,rowRef:ie,staticColumnIndex:t,staticRowIndex:d,table:h};return n?"cells"!==A||"data"!==n.column.columnDef.columnDefType||R||j||(null==D?void 0:D.id)===n.id||(null==N?void 0:N.id)===c.id?(0,F.jsx)(YM,Object.assign({},r),n.id):(0,F.jsx)(KM,Object.assign({},r),n.id):null})),W?(0,F.jsx)("td",{style:{display:"flex",width:W}}):null]})),k&&!c.getIsGrouped()&&(0,F.jsx)(XM,{parentRowRef:ie,row:c,rowVirtualizer:u,staticRowIndex:d,table:h,virtualRow:p})]})},JM=(0,o.memo)(ZM,((e,t)=>e.row===t.row&&e.staticRowIndex===t.staticRowIndex)),QM=e=>{var t,n,r,i,a,s,{columnVirtualizer:l,table:c}=e,u=oM(e,["columnVirtualizer","table"]);const{getBottomRows:d,getIsSomeRowsPinned:h,getRowModel:p,getState:f,getTopRows:g,options:{enableStickyFooter:m,enableStickyHeader:y,layoutMode:v,localization:b,memoMode:w,muiTableBodyProps:x,renderDetailPanel:A,renderEmptyRowsFallback:S,rowPinningDisplayMode:C},refs:{tableFooterRef:E,tableHeadRef:_,tablePaperRef:k}}=c,{columnFilters:T,globalFilter:O,isFullScreen:P,rowPinning:I}=f(),M=Object.assign(Object.assign({},wI(x,{table:c})),u),L=(y||P)&&(null===(t=_.current)||void 0===t?void 0:t.clientHeight)||0,R=m&&(null===(n=E.current)||void 0===n?void 0:n.clientHeight)||0,j=(0,o.useMemo)((()=>{var e,t;return(null===(e=I.bottom)||void 0===e?void 0:e.length)||(null===(t=I.top)||void 0===t?void 0:t.length)?p().rows.filter((e=>e.getIsPinned())).map((e=>e.id)):[]}),[I,p().rows]),D=GM(c),N=$M(c,D),{virtualRows:z}=null!=N?N:{},V={columnVirtualizer:l,numRows:D.length,table:c};return(0,F.jsxs)(F.Fragment,{children:[!(null==C?void 0:C.includes("sticky"))&&h("top")&&(0,F.jsx)(SA,Object.assign({},M,{sx:e=>Object.assign({display:(null==v?void 0:v.startsWith("grid"))?"grid":void 0,position:"sticky",top:L-1,zIndex:1},wI(null==M?void 0:M.sx,e)),children:g().map(((e,t)=>{const n=Object.assign(Object.assign({},V),{row:e,staticRowIndex:t});return"rows"===w?(0,F.jsx)(JM,Object.assign({},n),e.id):(0,F.jsx)(ZM,Object.assign({},n),e.id)}))})),(0,F.jsx)(SA,Object.assign({},M,{sx:e=>Object.assign({display:(null==v?void 0:v.startsWith("grid"))?"grid":void 0,height:N?`${N.getTotalSize()}px`:void 0,minHeight:D.length?void 0:"100px",position:"relative"},wI(null==M?void 0:M.sx,e)),children:null!==(r=null==M?void 0:M.children)&&void 0!==r?r:D.length?(0,F.jsx)(F.Fragment,{children:(null!=z?z:D).map(((e,t)=>{let n=e;if(N){if(A){if(e.index%2==1)return null;t=e.index/2}else t=e.index;n=D[t]}const r=Object.assign(Object.assign({},V),{pinnedRowIds:j,row:n,rowVirtualizer:N,staticRowIndex:t,virtualRow:N?e:void 0}),i=`${n.id}-${n.index}`;return"rows"===w?(0,F.jsx)(JM,Object.assign({},r),i):(0,F.jsx)(ZM,Object.assign({},r),i)}))}):(0,F.jsx)("tr",{style:{display:(null==v?void 0:v.startsWith("grid"))?"grid":void 0},children:(0,F.jsx)("td",{colSpan:c.getVisibleLeafColumns().length,style:{display:(null==v?void 0:v.startsWith("grid"))?"grid":void 0},children:null!==(i=null==S?void 0:S({table:c}))&&void 0!==i?i:(0,F.jsx)(Fo.A,{sx:{color:"text.secondary",fontStyle:"italic",maxWidth:`min(100vw, ${null!==(s=null===(a=k.current)||void 0===a?void 0:a.clientWidth)&&void 0!==s?s:360}px)`,py:"2rem",textAlign:"center",width:"100%"},children:O||T.length?b.noResultsFound:b.noRecordsToDisplay})})})})),!(null==C?void 0:C.includes("sticky"))&&h("bottom")&&(0,F.jsx)(SA,Object.assign({},M,{sx:e=>Object.assign({bottom:R-1,display:(null==v?void 0:v.startsWith("grid"))?"grid":void 0,position:"sticky",zIndex:1},wI(null==M?void 0:M.sx,e)),children:d().map(((e,t)=>{const n=Object.assign(Object.assign({},V),{row:e,staticRowIndex:t});return"rows"===w?(0,F.jsx)(JM,Object.assign({},n),e.id):(0,F.jsx)(ZM,Object.assign({},n),e.id)}))}))]})},eL=(0,o.memo)(QM,((e,t)=>e.table.options.data===t.table.options.data)),tL=e=>{var t,n,r,{footer:i,staticColumnIndex:o,table:a}=e,s=oM(e,["footer","staticColumnIndex","table"]);const l=(0,I.A)(),{getState:c,options:{enableColumnPinning:u,muiTableFooterCellProps:d}}=a,{density:h}=c(),{column:p}=i,{columnDef:f}=p,{columnDefType:g}=f,m=u&&"group"!==f.columnDefType&&p.getIsPinned(),y={column:p,table:a},v=Object.assign(Object.assign(Object.assign({},wI(d,y)),wI(f.muiTableFooterCellProps,y)),s);return(0,F.jsx)(FA,Object.assign({align:"group"===g?"center":"rtl"===l.direction?"right":"left",colSpan:i.colSpan,"data-index":o,"data-pinned":!!m||void 0,variant:"footer"},v,{sx:e=>Object.assign(Object.assign({fontWeight:"bold",p:"compact"===h?"0.5rem":"comfortable"===h?"1rem":"1.5rem",verticalAlign:"top"},uM({column:p,header:i,table:a,tableCellProps:v,theme:e})),wI(null==v?void 0:v.sx,e)),children:null!==(t=v.children)&&void 0!==t?t:i.isPlaceholder?null:null!==(r=null!==(n=wI(f.Footer,{column:p,footer:i,table:a}))&&void 0!==n?n:f.footer)&&void 0!==r?r:null}))},nL=e=>{var t,{columnVirtualizer:n,footerGroup:r,table:i}=e,o=oM(e,["columnVirtualizer","footerGroup","table"]);const{options:{layoutMode:a,mrtTheme:{baseBackgroundColor:s},muiTableFooterRowProps:l}}=i,{virtualColumns:c,virtualPaddingLeft:u,virtualPaddingRight:d}=null!=n?n:{};if(!(null===(t=r.headers)||void 0===t?void 0:t.some((e=>"string"==typeof e.column.columnDef.footer&&!!e.column.columnDef.footer||e.column.columnDef.Footer))))return null;const h=Object.assign(Object.assign({},wI(l,{footerGroup:r,table:i})),o);return(0,F.jsxs)(PA,Object.assign({},h,{sx:e=>Object.assign({backgroundColor:s,display:(null==a?void 0:a.startsWith("grid"))?"flex":void 0,position:"relative",width:"100%"},wI(null==h?void 0:h.sx,e)),children:[u?(0,F.jsx)("th",{style:{display:"flex",width:u}}):null,(null!=c?c:r.headers).map(((e,t)=>{let o=e;return n&&(t=e.index,o=r.headers[t]),o?(0,F.jsx)(tL,{footer:o,staticColumnIndex:t,table:i},o.id):null})),d?(0,F.jsx)("th",{style:{display:"flex",width:d}}):null]}))},rL=e=>{var{columnVirtualizer:t,table:n}=e,r=oM(e,["columnVirtualizer","table"]);const{getFooterGroups:i,getState:o,options:{enableStickyFooter:a,layoutMode:s,muiTableFooterProps:l},refs:{tableFooterRef:c}}=n,{isFullScreen:u}=o(),d=Object.assign(Object.assign({},wI(l,{table:n})),r),h=(u||a)&&!1!==a;return(0,F.jsx)(dS,Object.assign({},d,{ref:e=>{c.current=e,(null==d?void 0:d.ref)&&(d.ref.current=e)},sx:e=>Object.assign({bottom:h?0:void 0,display:(null==s?void 0:s.startsWith("grid"))?"grid":void 0,opacity:h?.97:void 0,outline:h?"light"===e.palette.mode?`1px solid ${e.palette.grey[300]}`:`1px solid ${e.palette.grey[700]}`:void 0,position:h?"sticky":"relative",zIndex:h?1:void 0},wI(null==d?void 0:d.sx,e)),children:i().map((e=>(0,F.jsx)(nL,{columnVirtualizer:t,footerGroup:e,table:n},e.id)))}))},iL=e=>[{divider:!1,label:e.filterFuzzy,option:"fuzzy",symbol:"≈"},{divider:!1,label:e.filterContains,option:"contains",symbol:"*"},{divider:!1,label:e.filterStartsWith,option:"startsWith",symbol:"a"},{divider:!0,label:e.filterEndsWith,option:"endsWith",symbol:"z"},{divider:!1,label:e.filterEquals,option:"equals",symbol:"="},{divider:!0,label:e.filterNotEquals,option:"notEquals",symbol:"≠"},{divider:!1,label:e.filterBetween,option:"between",symbol:"⇿"},{divider:!0,label:e.filterBetweenInclusive,option:"betweenInclusive",symbol:"⬌"},{divider:!1,label:e.filterGreaterThan,option:"greaterThan",symbol:">"},{divider:!1,label:e.filterGreaterThanOrEqualTo,option:"greaterThanOrEqualTo",symbol:"≥"},{divider:!1,label:e.filterLessThan,option:"lessThan",symbol:"<"},{divider:!0,label:e.filterLessThanOrEqualTo,option:"lessThanOrEqualTo",symbol:"≤"},{divider:!1,label:e.filterEmpty,option:"empty",symbol:"∅"},{divider:!1,label:e.filterNotEmpty,option:"notEmpty",symbol:"!∅"}],oL=["between","betweenInclusive","inNumberRange"],aL=["empty","notEmpty"],sL=["arrIncludesSome","arrIncludesAll","arrIncludes"],lL=["range-slider","date-range","datetime-range","range"],cL=e=>{var t,n,r,i,{anchorEl:a,header:s,onSelect:l,setAnchorEl:c,setFilterValue:u,table:d}=e,h=oM(e,["anchorEl","header","onSelect","setAnchorEl","setFilterValue","table"]);const{getState:p,options:{columnFilterModeOptions:f,globalFilterModeOptions:g,localization:m,mrtTheme:{menuBackgroundColor:y},renderColumnFilterModeMenuItems:v,renderGlobalFilterModeMenuItems:b},setColumnFilterFns:w,setGlobalFilterFn:x}=d,{density:A,globalFilterFn:S}=p(),{column:C}=null!=s?s:{},{columnDef:E}=null!=C?C:{},_=null==C?void 0:C.getFilterValue();let k=null!==(t=null==E?void 0:E.columnFilterModeOptions)&&void 0!==t?t:f;lL.includes(null==E?void 0:E.filterVariant)&&(k=[...oL,...null!=k?k:[]].filter((e=>oL.includes(e))));const T=(0,o.useMemo)((()=>iL(m).filter((e=>E?void 0===k||(null==k?void 0:k.includes(e.option)):(!g||g.includes(e.option))&&["contains","fuzzy","startsWith"].includes(e.option)))),[]),O=e=>{var t,n;const r=null!==(t=null==E?void 0:E._filterFn)&&void 0!==t?t:"";s&&C?e!==r&&(w((t=>Object.assign(Object.assign({},t),{[s.id]:e}))),aL.includes(e)?" "===_||aL.includes(r)?_&&C.setFilterValue(_):C.setFilterValue(" "):"multi-select"===(null==E?void 0:E.filterVariant)||sL.includes(e)?_ instanceof String||(null==_?void 0:_.length)?(C.setFilterValue([]),null==u||u([])):_&&C.setFilterValue(_):(null===(n=null==E?void 0:E.filterVariant)||void 0===n?void 0:n.includes("range"))||oL.includes(e)?Array.isArray(_)&&((null==_?void 0:_.every((e=>""===e)))||oL.includes(r))?C.setFilterValue(_):(C.setFilterValue(["",""]),null==u||u("")):Array.isArray(_)?(C.setFilterValue(""),null==u||u("")):" "===_&&aL.includes(r)?C.setFilterValue(void 0):C.setFilterValue(_)):x(e),c(null),null==l||l()},P=s&&E?E._filterFn:S;return(0,F.jsx)(jh,Object.assign({MenuListProps:{dense:"compact"===A,sx:{backgroundColor:y}},anchorEl:a,anchorOrigin:{horizontal:"right",vertical:"center"},disableScrollLock:!0,onClose:()=>c(null),open:!!a},h,{children:null!==(i=s&&C&&E?null!==(r=null===(n=E.renderColumnFilterModeMenuItems)||void 0===n?void 0:n.call(E,{column:C,internalFilterOptions:T,onSelectFilterMode:O,table:d}))&&void 0!==r?r:null==v?void 0:v({column:C,internalFilterOptions:T,onSelectFilterMode:O,table:d}):null==b?void 0:b({internalFilterOptions:T,onSelectFilterMode:O,table:d}))&&void 0!==i?i:T.map((({divider:e,label:t,option:n,symbol:r},i)=>(0,F.jsx)(fM,{divider:e,icon:r,label:t,onClick:()=>O(n),selected:n===P,table:d,value:n},i)))}))},uL=e=>{var t,n,r,i,a,s,l,c,u,d,{anchorEl:h,header:p,setAnchorEl:f,table:g}=e,m=oM(e,["anchorEl","header","setAnchorEl","table"]);const{getAllLeafColumns:y,getState:v,options:{columnFilterDisplayMode:b,columnFilterModeOptions:w,enableColumnFilterModes:x,enableColumnFilters:A,enableColumnPinning:S,enableColumnResizing:C,enableGrouping:E,enableHiding:_,enableSorting:k,enableSortingRemoval:T,icons:{ClearAllIcon:O,DynamicFeedIcon:P,FilterListIcon:I,FilterListOffIcon:M,PushPinIcon:L,RestartAltIcon:R,SortIcon:j,ViewColumnIcon:D,VisibilityOffIcon:N},localization:z,mrtTheme:{menuBackgroundColor:V},renderColumnActionsMenuItems:B},refs:{filterInputRefs:$},setColumnFilterFns:G,setColumnOrder:U,setColumnSizingInfo:W,setShowColumnFilters:q}=g,{column:H}=p,{columnDef:Y}=H,{columnSizing:K,columnVisibility:X,density:Z,showColumnFilters:J}=v(),Q=H.getFilterValue(),[ee,te]=(0,o.useState)(null),ne=e=>{H.pin(e),f(null)},re=()=>{q(!0),queueMicrotask((()=>{var e;return null===(e=$.current[`${H.id}-0`])||void 0===e?void 0:e.focus()})),f(null)},ie=e=>{e.stopPropagation(),te(e.currentTarget)},oe=!!Y.filterSelectOptions,ae=null!==(t=null==Y?void 0:Y.columnFilterModeOptions)&&void 0!==t?t:w,se=x&&!1!==Y.enableColumnFilterModes&&!oe&&(void 0===ae||!!(null==ae?void 0:ae.length)),le=[...k&&H.getCanSort()?[!1!==T&&(0,F.jsx)(fM,{icon:(0,F.jsx)(O,{}),label:z.clearSort,onClick:()=>{H.clearSorting(),f(null)},table:g},0),(0,F.jsx)(fM,{disabled:"asc"===H.getIsSorted(),icon:(0,F.jsx)(j,{style:{transform:"rotate(180deg) scaleX(-1)"}}),label:null===(n=z.sortByColumnAsc)||void 0===n?void 0:n.replace("{column}",String(Y.header)),onClick:()=>{H.toggleSorting(!1),f(null)},table:g},1),(0,F.jsx)(fM,{disabled:"desc"===H.getIsSorted(),divider:A||E||_,icon:(0,F.jsx)(j,{}),label:null===(r=z.sortByColumnDesc)||void 0===r?void 0:r.replace("{column}",String(Y.header)),onClick:()=>{H.toggleSorting(!0),f(null)},table:g},2)]:[],...A&&H.getCanFilter()?[(0,F.jsx)(fM,{disabled:!Q||Array.isArray(Q)&&!Q.filter((e=>e)).length,icon:(0,F.jsx)(M,{}),label:z.clearFilter,onClick:()=>{H.setFilterValue(void 0),f(null),["empty","notEmpty"].includes(Y._filterFn)&&G((e=>{var t;return Object.assign(Object.assign({},e),{[p.id]:null!==(t=null==ae?void 0:ae[0])&&void 0!==t?t:"fuzzy"})}))},table:g},3),"subheader"===b&&(0,F.jsx)(fM,{disabled:J&&!x,divider:E||_,icon:(0,F.jsx)(I,{}),label:null===(i=z.filterByColumn)||void 0===i?void 0:i.replace("{column}",String(Y.header)),onClick:J?ie:re,onOpenSubMenu:se?ie:void 0,table:g},4),se&&(0,F.jsx)(cL,{anchorEl:ee,header:p,onSelect:re,setAnchorEl:te,table:g},5)].filter(Boolean):[],...E&&H.getCanGroup()?[(0,F.jsx)(fM,{divider:S,icon:(0,F.jsx)(P,{}),label:null===(a=z[H.getIsGrouped()?"ungroupByColumn":"groupByColumn"])||void 0===a?void 0:a.replace("{column}",String(Y.header)),onClick:()=>{H.toggleGrouping(),U((e=>["mrt-row-expand",...e])),f(null)},table:g},6)]:[],...S&&H.getCanPin()?[(0,F.jsx)(fM,{disabled:"left"===H.getIsPinned()||!H.getCanPin(),icon:(0,F.jsx)(L,{style:{transform:"rotate(90deg)"}}),label:z.pinToLeft,onClick:()=>ne("left"),table:g},7),(0,F.jsx)(fM,{disabled:"right"===H.getIsPinned()||!H.getCanPin(),icon:(0,F.jsx)(L,{style:{transform:"rotate(-90deg)"}}),label:z.pinToRight,onClick:()=>ne("right"),table:g},8),(0,F.jsx)(fM,{disabled:!H.getIsPinned(),divider:_,icon:(0,F.jsx)(L,{}),label:z.unpin,onClick:()=>ne(!1),table:g},9)]:[],...C&&H.getCanResize()?[(0,F.jsx)(fM,{disabled:!K[H.id],icon:(0,F.jsx)(R,{}),label:z.resetColumnSize,onClick:()=>{W((e=>Object.assign(Object.assign({},e),{isResizingColumn:!1}))),H.resetSize(),f(null)},table:g},10)]:[],..._?[(0,F.jsx)(fM,{disabled:!H.getCanHide(),icon:(0,F.jsx)(N,{}),label:null===(s=z.hideColumn)||void 0===s?void 0:s.replace("{column}",String(Y.header)),onClick:()=>{H.toggleVisibility(!1),f(null)},table:g},11),(0,F.jsx)(fM,{disabled:!Object.values(X).filter((e=>!e)).length,icon:(0,F.jsx)(D,{}),label:null===(l=z.showAllColumns)||void 0===l?void 0:l.replace("{column}",String(Y.header)),onClick:()=>{y().filter((e=>!1!==e.columnDef.enableHiding)).forEach((e=>e.toggleVisibility(!0))),f(null)},table:g},12)]:[]].filter(Boolean);return(0,F.jsx)(jh,Object.assign({MenuListProps:{dense:"compact"===Z,sx:{backgroundColor:V}},anchorEl:h,disableScrollLock:!0,onClose:()=>f(null),open:!!h},m,{children:null!==(d=null!==(u=null===(c=Y.renderColumnActionsMenuItems)||void 0===c?void 0:c.call(Y,{closeMenu:()=>f(null),column:H,internalColumnMenuItems:le,table:g}))&&void 0!==u?u:null==B?void 0:B({closeMenu:()=>f(null),column:H,internalColumnMenuItems:le,table:g}))&&void 0!==d?d:le}))},dL=e=>{var t,n,{header:r,table:i}=e,a=oM(e,["header","table"]);const{options:{icons:{MoreVertIcon:s},localization:l,muiColumnActionsButtonProps:c}}=i,{column:u}=r,{columnDef:d}=u,[h,p]=(0,o.useState)(null),f=Object.assign(Object.assign(Object.assign({},wI(c,{column:u,table:i})),wI(d.muiColumnActionsButtonProps,{column:u,table:i})),a);return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(Ai,Object.assign({},pM("top"),{title:null!==(t=null==f?void 0:f.title)&&void 0!==t?t:l.columnActions,children:(0,F.jsx)(Un,Object.assign({"aria-label":l.columnActions,onClick:e=>{e.stopPropagation(),e.preventDefault(),p(e.currentTarget)},size:"small"},f,{sx:e=>Object.assign({"&:hover":{opacity:1},height:"2rem",m:"-8px -4px",opacity:.3,transition:"all 150ms",width:"2rem"},wI(null==f?void 0:f.sx,e)),title:void 0,children:null!==(n=null==f?void 0:f.children)&&void 0!==n?n:(0,F.jsx)(s,{style:{transform:"scale(0.9)"}})}))})),h&&(0,F.jsx)(uL,{anchorEl:h,header:r,setAnchorEl:p,table:i})]})},hL=e=>{var t,n,r,{column:i,table:o}=e,a=oM(e,["column","table"]);const{getState:s,options:{localization:l,muiFilterCheckboxProps:c}}=o,{density:u}=s(),{columnDef:d}=i,h=Object.assign(Object.assign(Object.assign({},wI(c,{column:i,table:o})),wI(d.muiFilterCheckboxProps,{column:i,table:o})),a),p=null===(t=l.filterByColumn)||void 0===t?void 0:t.replace("{column}",d.header);return(0,F.jsx)(Ai,Object.assign({},pM(),{title:null!==(n=null==h?void 0:h.title)&&void 0!==n?n:p,children:(0,F.jsx)($b,{control:(0,F.jsx)(va,Object.assign({checked:"true"===i.getFilterValue(),color:void 0===i.getFilterValue()?"default":"primary",indeterminate:void 0===i.getFilterValue(),size:"compact"===u?"small":"medium"},h,{onChange:(e,t)=>{var n;i.setFilterValue(void 0===i.getFilterValue()?"true":"true"===i.getFilterValue()?"false":void 0),null===(n=null==h?void 0:h.onChange)||void 0===n||n.call(h,e,t)},onClick:e=>{var t;e.stopPropagation(),null===(t=null==h?void 0:h.onClick)||void 0===t||t.call(h,e)},sx:e=>Object.assign({height:"2.5rem",width:"2.5rem"},wI(null==h?void 0:h.sx,e))})),disableTypography:!0,label:null!==(r=h.title)&&void 0!==r?r:p,sx:{color:"text.secondary",fontWeight:"normal",mt:"-4px"},title:void 0})}))},pL=e=>{var t,n,r,i,s,l,c,u,d,h,p,f,g,m,y,v,{header:b,rangeFilterIndex:w,table:x}=e,A=oM(e,["header","rangeFilterIndex","table"]);const{options:{enableColumnFilterModes:S,icons:{CloseIcon:C,FilterListIcon:E},localization:_,manualFiltering:k,muiFilterAutocompleteProps:T,muiFilterDatePickerProps:O,muiFilterDateTimePickerProps:P,muiFilterTextFieldProps:I,muiFilterTimePickerProps:M},refs:{filterInputRefs:L},setColumnFilterFns:R}=x,{column:j}=b,{columnDef:D}=j,{filterVariant:N}=D,z={column:j,rangeFilterIndex:w,table:x},V=Object.assign(Object.assign(Object.assign({},wI(I,z)),wI(D.muiFilterTextFieldProps,z)),A),B=Object.assign(Object.assign({},wI(T,z)),wI(D.muiFilterAutocompleteProps,z)),$=Object.assign(Object.assign({},wI(O,z)),wI(D.muiFilterDatePickerProps,z)),G=Object.assign(Object.assign({},wI(P,z)),wI(D.muiFilterDateTimePickerProps,z)),U=Object.assign(Object.assign({},wI(M,z)),wI(D.muiFilterTimePickerProps,z)),{allowedColumnFilterOptions:W,currentFilterOption:q,facetedUniqueValues:H,isAutocompleteFilter:Y,isDateFilter:K,isMultiSelectFilter:X,isRangeFilter:Z,isSelectFilter:J,isTextboxFilter:Q}=gI({header:b,table:x}),ee=mI({header:b,table:x}),te=["empty","notEmpty"].includes(q)?_[`filter${(null===(n=null===(t=null==q?void 0:q.charAt)||void 0===t?void 0:t.call(q,0))||void 0===n?void 0:n.toUpperCase())+(null==q?void 0:q.slice(1))}`]:"",ne=Z?0===w?_.min:1===w?_.max:"":null!==(r=null==V?void 0:V.placeholder)&&void 0!==r?r:null===(i=_.filterByColumn)||void 0===i?void 0:i.replace("{column}",String(D.header)),re=!(!S||!1===D.enableColumnFilterModes||w||void 0!==W&&!(null==W?void 0:W.length)),[ie,oe]=(0,o.useState)(null),[ae,se]=(0,o.useState)((()=>{var e,t;return X?j.getFilterValue()||[]:Z?(null===(e=j.getFilterValue())||void 0===e?void 0:e[w])||"":null!==(t=j.getFilterValue())&&void 0!==t?t:""})),[le,ce]=(0,o.useState)(Y?ae:null),ue=(0,o.useCallback)((0,fs.A)((e=>{Z?j.setFilterValue((t=>{const n=null!=t?t:["",""];return n[w]=null!=e?e:void 0,n})):j.setFilterValue(null!=e?e:void 0)}),Q?k?400:200:1),[]),de=e=>{se(null!=e?e:""),ue(e)},he=e=>{var t;const n="date"===V.type?e.target.valueAsDate:"number"===V.type?e.target.valueAsNumber:e.target.value;de(n),null===(t=null==V?void 0:V.onChange)||void 0===t||t.call(V,e)},pe=()=>{X?(se([]),j.setFilterValue([])):Z?(se(""),j.setFilterValue((e=>{const t=Array.isArray(e)&&e||["",""];return t[w]=void 0,t}))):(se(""),j.setFilterValue(void 0))},fe=(0,o.useRef)(!1);if((0,o.useEffect)((()=>{if(fe.current){const e=j.getFilterValue();void 0===e?pe():se(Z&&void 0!==w?e[w]:e)}fe.current=!0}),[j.getFilterValue()]),D.Filter)return(0,F.jsx)(F.Fragment,{children:null===(s=D.Filter)||void 0===s?void 0:s.call(D,{column:j,header:b,rangeFilterIndex:w,table:x})});const ge=Y||K||te?null:(0,F.jsx)(CS,{position:"end",sx:{mr:J||X?"20px":void 0},children:(0,F.jsx)(Ai,{placement:"right",title:null!==(l=_.clearFilter)&&void 0!==l?l:"",children:(0,F.jsx)("span",{children:(0,F.jsx)(Un,{"aria-label":_.clearFilter,disabled:!(null===(c=null==ae?void 0:ae.toString())||void 0===c?void 0:c.length),onClick:pe,size:"small",sx:{height:"2rem",transform:"scale(0.9)",width:"2rem"},children:(0,F.jsx)(C,{})})})})}),me=re?(0,F.jsxs)(CS,{position:"start",children:[(0,F.jsx)(Ai,{title:_.changeFilterMode,children:(0,F.jsx)("span",{children:(0,F.jsx)(Un,{"aria-label":_.changeFilterMode,onClick:e=>{oe(e.currentTarget)},size:"small",sx:{height:"1.75rem",width:"1.75rem"},children:(0,F.jsx)(E,{})})})}),te&&(0,F.jsx)(Qn,{label:te,onDelete:()=>{se(""),j.setFilterValue(void 0),R((e=>{var t;return Object.assign(Object.assign({},e),{[b.id]:null!==(t=null==W?void 0:W[0])&&void 0!==t?t:"fuzzy"})}))}})]}):null,ye=Object.assign(Object.assign({FormHelperTextProps:{sx:{fontSize:"0.75rem",lineHeight:"0.8rem",whiteSpace:"nowrap"}},InputProps:ge?{endAdornment:ge,startAdornment:me}:{startAdornment:me},fullWidth:!0,helperText:re?(0,F.jsx)("label",{children:_.filterMode.replace("{filterType}",_[`filter${(null===(u=null==q?void 0:q.charAt(0))||void 0===u?void 0:u.toUpperCase())+(null==q?void 0:q.slice(1))}`])}):null,inputProps:{"aria-label":ne,autoComplete:"new-password",disabled:!!te,sx:{textOverflow:"ellipsis",width:te?0:void 0},title:ne},inputRef:e=>{L.current[`${j.id}-${null!=w?w:0}`]=e,V.inputRef&&(V.inputRef=e)},margin:"none",placeholder:te||J||X?void 0:ne,variant:"standard"},V),{sx:e=>Object.assign({minWidth:K?"160px":S&&0===w?"110px":Z?"100px":te?"auto":"120px",mx:"-2px",p:0,width:"calc(100% + 4px)"},wI(null==V?void 0:V.sx,e))}),ve={onChange:e=>{de(e)},value:ae||null};return(0,F.jsxs)(F.Fragment,{children:[(null==N?void 0:N.startsWith("time"))?(0,F.jsx)(IP,Object.assign({},ve,U,{slotProps:{field:Object.assign({clearable:!0,onClear:()=>pe()},null===(d=null==U?void 0:U.slotProps)||void 0===d?void 0:d.field),textField:Object.assign(Object.assign({},ye),null===(h=null==U?void 0:U.slotProps)||void 0===h?void 0:h.textField)}})):(null==N?void 0:N.startsWith("datetime"))?(0,F.jsx)(hP,Object.assign({},ve,G,{slotProps:{field:Object.assign({clearable:!0,onClear:()=>pe()},null===(p=null==G?void 0:G.slotProps)||void 0===p?void 0:p.field),textField:Object.assign(Object.assign({},ye),null===(f=null==G?void 0:G.slotProps)||void 0===f?void 0:f.textField)}})):(null==N?void 0:N.startsWith("date"))?(0,F.jsx)($k,Object.assign({},ve,$,{slotProps:{field:Object.assign({clearable:!0,onClear:()=>pe()},null===(g=null==$?void 0:$.slotProps)||void 0===g?void 0:g.field),textField:Object.assign(Object.assign({},ye),null===(m=null==$?void 0:$.slotProps)||void 0===m?void 0:m.textField)}})):Y?(0,F.jsx)(kr,Object.assign({freeSolo:!0,getOptionLabel:e=>xI(e).label,onChange:(e,t)=>(e=>{ce(e),de(xI(e).value)})(t),options:null!==(y=null==ee?void 0:ee.map((e=>xI(e))))&&void 0!==y?y:[]},B,{renderInput:e=>{var t;return(0,F.jsx)(oS,Object.assign({},e,ye,{InputProps:Object.assign(Object.assign({},e.InputProps),{startAdornment:null===(t=null==ye?void 0:ye.InputProps)||void 0===t?void 0:t.startAdornment}),inputProps:Object.assign(Object.assign({},e.inputProps),null==ye?void 0:ye.inputProps),onChange:he,onClick:e=>e.stopPropagation()}))},value:le})):(0,F.jsx)(oS,Object.assign({select:J||X},ye,{SelectProps:Object.assign({MenuProps:{disableScrollLock:!0},displayEmpty:!0,multiple:X,renderValue:X?e=>(null==e?void 0:e.length)?(0,F.jsx)(a.A,{sx:{display:"flex",flexWrap:"wrap",gap:"2px"},children:null==e?void 0:e.map((e=>{const t=null==ee?void 0:ee.find((t=>xI(t).value===e));return(0,F.jsx)(Qn,{label:xI(t).label},e)}))}):(0,F.jsx)(a.A,{sx:{opacity:.5},children:ne}):void 0},ye.SelectProps),onChange:he,onClick:e=>e.stopPropagation(),value:null!=ae?ae:"",children:(J||X)&&[(0,F.jsx)(fo,{disabled:!0,divider:!0,hidden:!0,value:"",children:(0,F.jsx)(a.A,{sx:{opacity:.5},children:ne})},"p"),null!==(v=V.children)&&void 0!==v?v:null==ee?void 0:ee.map(((e,t)=>{var n;const{label:r,value:i}=xI(e);return(0,F.jsxs)(fo,{sx:{alignItems:"center",display:"flex",gap:"0.5rem",m:0},value:i,children:[X&&(0,F.jsx)(va,{checked:(null!==(n=j.getFilterValue())&&void 0!==n?n:[]).includes(i),sx:{mr:"0.5rem"}}),r," ",!D.filterSelectOptions&&`(${H.get(i)})`]},`${t}-${i}`)}))]})),(0,F.jsx)(cL,{anchorEl:ie,header:b,setAnchorEl:oe,setFilterValue:se,table:x})]})},fL=e=>{var{header:t,table:n}=e,r=oM(e,["header","table"]);return(0,F.jsx)(a.A,Object.assign({},r,{sx:e=>Object.assign({display:"grid",gap:"1rem",gridTemplateColumns:"1fr 1fr"},wI(null==r?void 0:r.sx,e)),children:[0,1].map((e=>(0,F.jsx)(pL,{header:t,rangeFilterIndex:e,table:n},e)))}))},gL=e=>{var t,n,{header:r,table:i}=e,a=oM(e,["header","table"]);const{options:{enableColumnFilterModes:s,localization:l,muiFilterSliderProps:c},refs:{filterInputRefs:u}}=i,{column:d}=r,{columnDef:h}=d,p=h._filterFn,f=s&&!1!==h.enableColumnFilterModes,g=Object.assign(Object.assign(Object.assign({},wI(c,{column:d,table:i})),wI(h.muiFilterSliderProps,{column:d,table:i})),a);let[m,y]=void 0!==g.min&&void 0!==g.max?[g.min,g.max]:null!==(t=d.getFacetedMinMaxValues())&&void 0!==t?t:[0,1];Array.isArray(m)&&(m=m[0]),Array.isArray(y)&&(y=y[0]),null===m&&(m=0),null===y&&(y=1);const[v,b]=(0,o.useState)([m,y]),w=d.getFilterValue(),x=(0,o.useRef)(!1);return(0,o.useEffect)((()=>{x.current&&(void 0===w?b([m,y]):Array.isArray(w)&&b(w)),x.current=!0}),[w,m,y]),(0,F.jsxs)(Nu,{children:[(0,F.jsx)(Zy.Ay,Object.assign({disableSwap:!0,max:y,min:m,onChange:(e,t)=>{b(t)},onChangeCommitted:(e,t)=>{Array.isArray(t)&&(t[0]<=m&&t[1]>=y?d.setFilterValue(void 0):d.setFilterValue(t))},value:v,valueLabelDisplay:"auto"},g,{slotProps:{input:{ref:e=>{var t,n;e&&(u.current[`${d.id}-0`]=e,(null===(n=null===(t=null==g?void 0:g.slotProps)||void 0===t?void 0:t.input)||void 0===n?void 0:n.ref)&&(g.slotProps.input.ref=e))}}},sx:e=>Object.assign({m:"auto",minWidth:d.getSize()-50+"px",mt:f?"6px":"10px",px:"4px",width:"calc(100% - 8px)"},wI(null==g?void 0:g.sx,e))})),f?(0,F.jsx)(Ay,{sx:{fontSize:"0.75rem",lineHeight:"0.8rem",m:"-3px -6px",whiteSpace:"nowrap"},children:l.filterMode.replace("{filterType}",l[`filter${(null===(n=null==p?void 0:p.charAt(0))||void 0===n?void 0:n.toUpperCase())+(null==p?void 0:p.slice(1))}`])}):null]})},mL=e=>{var{header:t,table:n}=e,r=oM(e,["header","table"]);const{getState:i,options:{columnFilterDisplayMode:o}}=n,{showColumnFilters:a}=i(),{column:s}=t,{columnDef:l}=s,{isRangeFilter:c}=gI({header:t,table:n});return(0,F.jsx)($,Object.assign({in:a||"popover"===o,mountOnEnter:!0,unmountOnExit:!0},r,{children:"checkbox"===l.filterVariant?(0,F.jsx)(hL,{column:s,table:n}):"range-slider"===l.filterVariant?(0,F.jsx)(gL,{header:t,table:n}):c?(0,F.jsx)(fL,{header:t,table:n}):(0,F.jsx)(pL,{header:t,table:n})}))},yL=e=>{var t,n,{header:r,table:i}=e,s=oM(e,["header","table"]);const{options:{columnFilterDisplayMode:l,icons:{FilterAltIcon:c},localization:u},refs:{filterInputRefs:d},setShowColumnFilters:h}=i,{column:p}=r,{columnDef:f}=p,g=p.getFilterValue(),[m,y]=(0,o.useState)(null),{currentFilterOption:v,isMultiSelectFilter:b,isRangeFilter:w,isSelectFilter:x}=gI({header:r,table:i}),A=mI({header:r,table:i}),S=e=>xI(null==A?void 0:A.find((t=>xI(t).value===(void 0!==e?g[e]:g)))).label,C=Array.isArray(g)&&g.some(Boolean)||!!g&&!Array.isArray(g),E="popover"!==l||C?u.filteringByColumn.replace("{column}",String(f.header)).replace("{filterType}",v?u[`filter${(null===(n=null==v?void 0:v.charAt(0))||void 0===n?void 0:n.toUpperCase())+(null==v?void 0:v.slice(1))}`]:"").replace("{filterValue}",`"${Array.isArray(g)?g.map(((e,t)=>b?S(t):e)).join(`" ${w?u.and:u.or} "`):x?S():g}"`).replace('" "',""):null===(t=u.filterByColumn)||void 0===t?void 0:t.replace("{column}",String(f.header));return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(si,{in:"popover"===l||!!g&&!w||w&&(!!(null==g?void 0:g[0])||!!(null==g?void 0:g[1])),unmountOnExit:!0,children:(0,F.jsx)(a.A,{component:"span",sx:{flex:"0 0"},children:(0,F.jsx)(Ai,{placement:"top",title:E,children:(0,F.jsx)(Un,Object.assign({disableRipple:!0,onClick:e=>{"popover"===l?y(e.currentTarget):h(!0),queueMicrotask((()=>{var e,t,n,r;null===(t=null===(e=d.current[`${p.id}-0`])||void 0===e?void 0:e.focus)||void 0===t||t.call(e),null===(r=null===(n=d.current[`${p.id}-0`])||void 0===n?void 0:n.select)||void 0===r||r.call(n)})),e.stopPropagation()},size:"small"},s,{sx:e=>Object.assign({height:"16px",ml:"4px",opacity:C?1:.3,p:"8px",transform:"scale(0.75)",transition:"all 150ms ease-in-out",width:"16px"},wI(null==s?void 0:s.sx,e)),children:(0,F.jsx)(c,{})}))})})}),"popover"===l&&(0,F.jsx)(Eh,{anchorEl:m,anchorOrigin:{horizontal:"center",vertical:"top"},disableScrollLock:!0,onClick:e=>e.stopPropagation(),onClose:e=>{e.stopPropagation(),y(null)},onKeyDown:e=>"Enter"===e.key&&y(null),open:!!m,slotProps:{paper:{sx:{overflow:"visible"}}},transformOrigin:{horizontal:"center",vertical:"bottom"},children:(0,F.jsx)(a.A,{sx:{p:"1rem"},children:(0,F.jsx)(mL,{header:r,table:i})})})]})},vL=e=>{var{column:t,table:n,tableHeadCellRef:r}=e,i=oM(e,["column","table","tableHeadCellRef"]);const{getState:o,options:{enableColumnOrdering:a,muiColumnDragHandleProps:s},setColumnOrder:l,setDraggingColumn:c,setHoveredColumn:u}=n,{columnDef:d}=t,{columnOrder:h,draggingColumn:p,hoveredColumn:f}=o(),g=Object.assign(Object.assign(Object.assign({},wI(s,{column:t,table:n})),wI(d.muiColumnDragHandleProps,{column:t,table:n})),i);return(0,F.jsx)(bM,Object.assign({},g,{onDragEnd:e=>{var n;null===(n=null==g?void 0:g.onDragEnd)||void 0===n||n.call(g,e),"drop-zone"===(null==f?void 0:f.id)?t.toggleGrouping():a&&f&&(null==f?void 0:f.id)!==(null==p?void 0:p.id)&&l(pI(t,f,h)),c(null),u(null)},onDragStart:e=>{var n;null===(n=null==g?void 0:g.onDragStart)||void 0===n||n.call(g,e),c(t);try{e.dataTransfer.setDragImage(r.current,0,0)}catch(e){console.error(e)}},table:n}))},bL=e=>{var t,{header:n,table:r}=e,i=oM(e,["header","table"]);const{getState:o,options:{columnResizeDirection:s,columnResizeMode:l},setColumnSizingInfo:c}=r,{density:u}=o(),{column:d}=n,h=n.getResizeHandler(),p="compact"===u?"-8px":"comfortable"===u?"-16px":"-24px",f="display"===d.columnDef.columnDefType?"4px":"0";return(0,F.jsx)(a.A,{className:"Mui-TableHeadCell-ResizeHandle-Wrapper",onDoubleClick:()=>{c((e=>Object.assign(Object.assign({},e),{isResizingColumn:!1}))),d.resetSize()},onMouseDown:h,onTouchStart:h,style:{transform:d.getIsResizing()&&"onEnd"===l?`translateX(${("rtl"===s?-1:1)*(null!==(t=o().columnSizingInfo.deltaOffset)&&void 0!==t?t:0)}px)`:void 0},sx:e=>({"&:active > hr":{backgroundColor:e.palette.info.main,opacity:n.subHeaders.length||"onEnd"===l?1:0},cursor:"col-resize",left:"rtl"===s?f:void 0,ml:"rtl"===s?p:void 0,mr:"ltr"===s?p:void 0,position:"absolute",px:"4px",right:"ltr"===s?f:void 0}),children:(0,F.jsx)(JT.A,{className:"Mui-TableHeadCell-ResizeHandle-Divider",flexItem:!0,orientation:"vertical",sx:e=>Object.assign({borderRadius:"2px",borderWidth:"2px",height:"24px",touchAction:"none",transform:"translateX(4px)",transition:d.getIsResizing()?void 0:"all 150ms ease-in-out",userSelect:"none",zIndex:4},wI(null==i?void 0:i.sx,e))})})},wL=e=>{var{header:t,table:n}=e,r=oM(e,["header","table"]);const{getState:i,options:{icons:{ArrowDownwardIcon:o,SyncAltIcon:a},localization:s}}=n,{column:l}=t,{columnDef:c}=l,{isLoading:u,showSkeletons:d,sorting:h}=i(),p=!!l.getIsSorted(),f=u||d?"":l.getIsSorted()?"desc"===l.getIsSorted()?s.sortedByColumnDesc.replace("{column}",c.header):s.sortedByColumnAsc.replace("{column}",c.header):"desc"===l.getNextSortingOrder()?s.sortByColumnDesc.replace("{column}",c.header):s.sortByColumnAsc.replace("{column}",c.header),g=p?l.getIsSorted():void 0;return(0,F.jsx)(Ai,{placement:"top",title:f,children:(0,F.jsx)(Xr,{badgeContent:h.length>1?l.getSortIndex()+1:0,overlap:"circular",children:(0,F.jsx)(NP,Object.assign({IconComponent:p?o:e=>(0,F.jsx)(a,Object.assign({},e,{direction:g,style:{transform:"rotate(-90deg) scaleX(0.9) translateX(-1px)"}})),active:!0,"aria-label":f,direction:g,onClick:e=>{var n;e.stopPropagation(),null===(n=t.column.getToggleSortingHandler())||void 0===n||n(e)}},r,{sx:e=>Object.assign({".MuiTableSortLabel-icon":{color:`${"dark"===e.palette.mode?e.palette.text.primary:e.palette.text.secondary} !important`},flex:"0 0",opacity:p?1:.3,transition:"all 150ms ease-in-out",width:"3ch"},wI(null==r?void 0:r.sx,e))}))})})},xL=e=>{var t,n,r,i,s,l,{columnVirtualizer:c,header:u,staticColumnIndex:d,table:h}=e,p=oM(e,["columnVirtualizer","header","staticColumnIndex","table"]);const f=(0,I.A)(),{getState:g,options:{columnFilterDisplayMode:m,columnResizeDirection:y,columnResizeMode:v,enableColumnActions:b,enableColumnDragging:w,enableColumnOrdering:x,enableColumnPinning:A,enableGrouping:S,enableMultiSort:C,layoutMode:E,mrtTheme:{draggingBorderColor:_},muiTableHeadCellProps:k},refs:{tableHeadCellRefs:T},setHoveredColumn:O}=h,{columnSizingInfo:P,density:M,draggingColumn:L,grouping:R,hoveredColumn:j,showColumnFilters:D}=g(),{column:N}=u,{columnDef:z}=N,{columnDefType:V}=z,B=Object.assign(Object.assign(Object.assign({},wI(k,{column:N,table:h})),wI(z.muiTableHeadCellProps,{column:N,table:h})),p),$=A&&"group"!==z.columnDefType&&N.getIsPinned(),G=(b||z.enableColumnActions)&&!1!==z.enableColumnActions,U=!1!==w&&!1!==z.enableColumnDragging&&(w||x&&!1!==z.enableColumnOrdering||S&&!1!==z.enableGrouping&&!R.includes(N.id)),W=(0,o.useMemo)((()=>{let e=0;return N.getCanSort()&&(e+=1),G&&(e+=1.75),U&&(e+=1.5),e}),[G,U]),q=(0,o.useMemo)((()=>{const e=P.isResizingColumn===N.id&&"onChange"===v&&!u.subHeaders.length,t=e?`2px solid ${_} !important`:(null==L?void 0:L.id)===N.id?`1px dashed ${f.palette.grey[500]}`:(null==j?void 0:j.id)===N.id?`2px dashed ${_}`:void 0;if(e)return"ltr"===y?{borderRight:t}:{borderLeft:t};return t?{borderLeft:t,borderRight:t,borderTop:t}:void 0}),[L,j,P.isResizingColumn]),H=null!==(t=wI(z.Header,{column:N,header:u,table:h}))&&void 0!==t?t:z.header;return(0,F.jsxs)(FA,Object.assign({align:"group"===V?"center":"rtl"===f.direction?"right":"left",colSpan:u.colSpan,"data-index":d,"data-pinned":!!$||void 0,onDragEnter:e=>{S&&"drop-zone"===(null==j?void 0:j.id)&&O(null),x&&L&&"group"!==V&&O(!1!==z.enableColumnOrdering?N:null)},onDragOver:e=>{!1!==z.enableColumnOrdering&&e.preventDefault()},ref:e=>{var t;e&&(T.current[N.id]=e,"group"!==V&&(null===(t=null==c?void 0:c.measureElement)||void 0===t||t.call(c,e)))}},B,{sx:e=>Object.assign(Object.assign({"& :hover":{".MuiButtonBase-root":{opacity:1}},flexDirection:(null==E?void 0:E.startsWith("grid"))?"column":void 0,fontWeight:"bold",overflow:"visible",p:"compact"===M?"0.5rem":"comfortable"===M?"display"===V?"0.75rem":"1rem":"display"===V?"1rem 1.25rem":"1.5rem",pb:"display"===V?0:D||"compact"===M?"0.4rem":"0.6rem",pt:"group"===V||"compact"===M?"0.25rem":"comfortable"===M?".75rem":"1.25rem",userSelect:C&&N.getCanSort()?"none":void 0,verticalAlign:"top"},uM({column:N,header:u,table:h,tableCellProps:B,theme:e})),q),children:[u.isPlaceholder?null:null!==(n=B.children)&&void 0!==n?n:(0,F.jsxs)(a.A,{className:"Mui-TableHeadCell-Content",sx:{alignItems:"center",display:"flex",flexDirection:"right"===(null==B?void 0:B.align)?"row-reverse":"row",justifyContent:"group"===V||"center"===(null==B?void 0:B.align)?"center":N.getCanResize()?"space-between":"flex-start",position:"relative",width:"100%"},children:[(0,F.jsxs)(a.A,{className:"Mui-TableHeadCell-Content-Labels",onClick:N.getToggleSortingHandler(),sx:{alignItems:"center",cursor:N.getCanSort()&&"group"!==V?"pointer":void 0,display:"flex",flexDirection:"right"===(null==B?void 0:B.align)?"row-reverse":"row",overflow:"data"===V?"hidden":void 0,pl:"center"===(null==B?void 0:B.align)?`${W}rem`:void 0},children:[(0,F.jsx)(a.A,{className:"Mui-TableHeadCell-Content-Wrapper",sx:{"&:hover":{textOverflow:"clip"},minWidth:`${Math.min(null!==(i=null===(r=z.header)||void 0===r?void 0:r.length)&&void 0!==i?i:0,4)}ch`,overflow:"data"===V?"hidden":void 0,textOverflow:"ellipsis",whiteSpace:(null!==(l=null===(s=z.header)||void 0===s?void 0:s.length)&&void 0!==l?l:0)<20?"nowrap":"normal"},children:H}),N.getCanFilter()&&(0,F.jsx)(yL,{header:u,table:h}),N.getCanSort()&&(0,F.jsx)(wL,{header:u,table:h})]}),"group"!==V&&(0,F.jsxs)(a.A,{className:"Mui-TableHeadCell-Content-Actions",sx:{whiteSpace:"nowrap"},children:[U&&(0,F.jsx)(vL,{column:N,table:h,tableHeadCellRef:{current:T.current[N.id]}}),G&&(0,F.jsx)(dL,{header:u,table:h})]}),N.getCanResize()&&(0,F.jsx)(bL,{header:u,table:h})]}),"subheader"===m&&N.getCanFilter()&&(0,F.jsx)(mL,{header:u,table:h})]}))},AL=e=>{var{columnVirtualizer:t,headerGroup:n,table:r}=e,i=oM(e,["columnVirtualizer","headerGroup","table"]);const{options:{enableStickyHeader:o,layoutMode:a,mrtTheme:{baseBackgroundColor:s},muiTableHeadRowProps:l}}=r,{virtualColumns:c,virtualPaddingLeft:u,virtualPaddingRight:d}=null!=t?t:{},h=Object.assign(Object.assign({},wI(l,{headerGroup:n,table:r})),i);return(0,F.jsxs)(PA,Object.assign({},h,{sx:e=>Object.assign({backgroundColor:s,boxShadow:`4px 0 8px ${(0,jy.X4)(e.palette.common.black,.1)}`,display:(null==a?void 0:a.startsWith("grid"))?"flex":void 0,position:o&&"semantic"===a?"sticky":"relative",top:0},wI(null==h?void 0:h.sx,e)),children:[u?(0,F.jsx)("th",{style:{display:"flex",width:u}}):null,(null!=c?c:n.headers).map(((e,i)=>{let o=e;return t&&(i=e.index,o=n.headers[i]),o?(0,F.jsx)(xL,{columnVirtualizer:t,header:o,staticColumnIndex:i,table:r},o.id):null})),d?(0,F.jsx)("th",{style:{display:"flex",width:d}}):null]}))},SL=e=>{var t,n,r,{stackAlertBanner:i,table:s}=e,l=oM(e,["stackAlertBanner","table"]);const{getFilteredSelectedRowModel:c,getPrePaginationRowModel:u,getState:d,options:{enableRowSelection:h,enableSelectAll:p,localization:f,manualPagination:g,muiToolbarAlertBannerChipProps:m,muiToolbarAlertBannerProps:y,positionToolbarAlertBanner:v,renderToolbarAlertBannerContent:b,rowCount:w},refs:{tablePaperRef:x}}=s,{density:A,grouping:S,rowSelection:C,showAlertBanner:E}=d(),_=Object.assign(Object.assign({},wI(y,{table:s})),l),k=wI(m,{table:s}),T=null!=w?w:u().flatRows.length,O=(0,o.useMemo)((()=>g?Object.values(C).filter(Boolean).length:c().rows.length),[C,T,g]),P=O>0?(0,F.jsxs)(Nu,{alignItems:"center",direction:"row",gap:"16px",children:[null===(n=null===(t=f.selectedCountOfRowCountRowsSelected)||void 0===t?void 0:t.replace("{selectedCount}",O.toLocaleString()))||void 0===n?void 0:n.replace("{rowCount}",T.toString()),(0,F.jsx)(Ni,{onClick:e=>$I({table:s})(e,!1,!0),size:"small",sx:{p:"2px"},children:f.clearSelection})]}):null,I=S.length>0?(0,F.jsxs)("span",{children:[f.groupedBy," ",S.map(((e,t)=>(0,F.jsxs)(o.Fragment,{children:[t>0?f.thenBy:"",(0,F.jsx)(Qn,Object.assign({label:s.getColumn(e).columnDef.header,onDelete:()=>s.getColumn(e).toggleGrouping()},k))]},`${t}-${e}`)))]}):null;return(0,F.jsx)($,{in:E||!!P||!!I,timeout:i?200:0,children:(0,F.jsx)(mv,Object.assign({color:"info",icon:!1},_,{sx:e=>{var t,n;return Object.assign({"& .MuiAlert-message":{maxWidth:`calc(${null!==(n=null===(t=x.current)||void 0===t?void 0:t.clientWidth)&&void 0!==n?n:360}px - 1rem)`,width:"100%"},borderRadius:0,fontSize:"1rem",left:0,mb:i?0:"bottom"===v?"-1rem":void 0,p:0,position:"relative",right:0,top:0,width:"100%",zIndex:2},wI(null==_?void 0:_.sx,e))},children:null!==(r=null==b?void 0:b({groupedAlert:I,selectedAlert:P,table:s}))&&void 0!==r?r:(0,F.jsxs)(F.Fragment,{children:[(null==_?void 0:_.title)&&(0,F.jsx)(GP,{children:_.title}),(0,F.jsxs)(Nu,{sx:{p:"head-overlay"!==v?"0.5rem 1rem":"spacious"===A?"0.75rem 1.25rem":"comfortable"===A?"0.5rem 0.75rem":"0.25rem 0.5rem"},children:[null==_?void 0:_.children,(null==_?void 0:_.children)&&(P||I)&&(0,F.jsx)("br",{}),(0,F.jsxs)(a.A,{sx:{display:"flex"},children:[h&&p&&"head-overlay"===v&&(0,F.jsx)(TM,{table:s})," ",P]}),P&&I&&(0,F.jsx)("br",{}),I]})]})}))})},CL=e=>{var{columnVirtualizer:t,table:n}=e,r=oM(e,["columnVirtualizer","table"]);const{getState:i,options:{enableStickyHeader:o,layoutMode:a,muiTableHeadProps:s,positionToolbarAlertBanner:l},refs:{tableHeadRef:c}}=n,{isFullScreen:u,showAlertBanner:d}=i(),h=Object.assign(Object.assign({},wI(s,{table:n})),r),p=o||u;return(0,F.jsx)(yS,Object.assign({},h,{ref:e=>{c.current=e,(null==h?void 0:h.ref)&&(h.ref.current=e)},sx:e=>Object.assign({display:(null==a?void 0:a.startsWith("grid"))?"grid":void 0,opacity:.97,position:p?"sticky":"relative",top:p&&(null==a?void 0:a.startsWith("grid"))?0:void 0,zIndex:p?2:void 0},wI(null==h?void 0:h.sx,e)),children:"head-overlay"===l&&(d||n.getSelectedRowModel().rows.length>0)?(0,F.jsx)("tr",{style:{display:(null==a?void 0:a.startsWith("grid"))?"grid":void 0},children:(0,F.jsx)("th",{colSpan:n.getVisibleLeafColumns().length,style:{display:(null==a?void 0:a.startsWith("grid"))?"grid":void 0,padding:0},children:(0,F.jsx)(SL,{table:n})})}):n.getHeaderGroups().map((e=>(0,F.jsx)(AL,{columnVirtualizer:t,headerGroup:e,table:n},e.id)))}))},EL=e=>{var{table:t}=e,n=oM(e,["table"]);const{getFlatHeaders:r,getState:i,options:{columns:a,enableStickyHeader:s,enableTableFooter:l,enableTableHead:c,layoutMode:u,memoMode:d,muiTableProps:h,renderCaption:p}}=t,{columnSizing:f,columnSizingInfo:g,columnVisibility:m,isFullScreen:y}=i(),v=Object.assign(Object.assign({},wI(h,{table:t})),n),b=wI(p,{table:t}),w=(0,o.useMemo)((()=>{const e=r(),t={};for(let n=0;nObject.assign({borderCollapse:"separate",display:(null==u?void 0:u.startsWith("grid"))?"grid":void 0,position:"relative"},wI(null==v?void 0:v.sx,e)),children:[!!b&&(0,F.jsx)("caption",{children:b}),c&&(0,F.jsx)(CL,Object.assign({},x)),"table-body"===d||g.isResizingColumn?(0,F.jsx)(eL,Object.assign({},x)):(0,F.jsx)(QM,Object.assign({},x)),l&&(0,F.jsx)(rL,Object.assign({},x))]}))},_L=e=>{var t,{table:n}=e,r=oM(e,["table"]);const{options:{localization:i,mrtTheme:{baseBackgroundColor:o},muiCircularProgressProps:s}}=n,l=Object.assign(Object.assign({},wI(s,{table:n})),r);return(0,F.jsx)(a.A,{sx:{alignItems:"center",backgroundColor:(0,jy.X4)(o,.5),bottom:0,display:"flex",justifyContent:"center",left:0,maxHeight:"100vh",position:"absolute",right:0,top:0,width:"100%",zIndex:3},children:null!==(t=null==l?void 0:l.Component)&&void 0!==t?t:(0,F.jsx)(Fa,Object.assign({"aria-label":i.noRecordsToDisplay,id:"mrt-progress"},l))})},kL=e=>{var t,n,{table:r}=e,i=oM(e,["table"]);const{getState:o,options:{editDisplayMode:a,enableClickToCopy:s,enableEditing:l,icons:{ContentCopy:c,EditIcon:u},localization:d,mrtTheme:{menuBackgroundColor:h},renderCellActionMenuItems:p},refs:{actionCellRef:f}}=r,{actionCell:g,density:m}=o(),y=g,{row:v}=y,{column:b}=y,{columnDef:w}=b,x=e=>{null==e||e.stopPropagation(),r.setActionCell(null),f.current=null},A=[("context-menu"===wI(s,y)||"context-menu"===wI(w.enableClickToCopy,y))&&(0,F.jsx)(fM,{icon:(0,F.jsx)(c,{}),label:d.copy,onClick:e=>{e.stopPropagation(),navigator.clipboard.writeText(y.getValue()),x()},table:r},"mrt-copy"),wI(l,v)&&"cell"===a&&(0,F.jsx)(fM,{icon:(0,F.jsx)(u,{}),label:d.edit,onClick:()=>{SI({cell:y,table:r}),x()},table:r},"mrt-edit")].filter(Boolean),S={cell:y,closeMenu:x,column:b,internalMenuItems:A,row:v,table:r},C=null!==(n=null===(t=w.renderCellActionMenuItems)||void 0===t?void 0:t.call(w,S))&&void 0!==n?n:null==p?void 0:p(S);return(!!(null==C?void 0:C.length)||!!(null==A?void 0:A.length))&&(0,F.jsx)(jh,Object.assign({MenuListProps:{dense:"compact"===m,sx:{backgroundColor:h}},anchorEl:f.current,disableScrollLock:!0,onClick:e=>e.stopPropagation(),onClose:x,open:!!y,transformOrigin:{horizontal:-100,vertical:8}},i,{children:null!=C?C:A}))},TL=e=>{var t,{open:n,table:r}=e,i=oM(e,["open","table"]);const{getState:o,options:{localization:a,muiCreateRowModalProps:s,muiEditRowDialogProps:l,onCreatingRowCancel:c,onEditingRowCancel:u,renderCreateRowDialogContent:d,renderEditRowDialogContent:h},setCreatingRow:p,setEditingRow:f}=r,{creatingRow:g,editingRow:m}=o(),y=null!=g?g:m,v=Object.assign(Object.assign(Object.assign({},wI(l,{row:y,table:r})),g&&wI(s,{row:y,table:r})),i),b=y.getAllCells().filter((e=>"data"===e.column.columnDef.columnDefType)).map((e=>(0,F.jsx)(HM,{cell:e,table:r},e.id)));return(0,F.jsx)(bu,Object.assign({fullWidth:!0,maxWidth:"xs",onClose:(e,t)=>{var n;g?(null==c||c({row:y,table:r}),p(null)):(null==u||u({row:y,table:r}),f(null)),y._valuesCache={},null===(n=v.onClose)||void 0===n||n.call(v,e,t)},open:n},v,{children:null!==(t=g&&(null==d?void 0:d({internalEditComponents:b,row:y,table:r}))||(null==h?void 0:h({internalEditComponents:b,row:y,table:r})))&&void 0!==t?t:(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(Tu,{sx:{textAlign:"center"},children:a.edit}),(0,F.jsx)($u,{children:(0,F.jsx)("form",{onSubmit:e=>e.preventDefault(),children:(0,F.jsx)(Nu,{sx:{gap:"32px",paddingTop:"16px",width:"100%"},children:b})})}),(0,F.jsx)(Su,{sx:{p:"1.25rem"},children:(0,F.jsx)(aM,{row:y,table:r,variant:"text"})})]})}))},OL="undefined"!=typeof window?o.useLayoutEffect:o.useEffect,PL=e=>{var{table:t}=e,n=oM(e,["table"]);const{getState:r,options:{createDisplayMode:i,editDisplayMode:a,enableCellActions:s,enableStickyHeader:l,muiTableContainerProps:c},refs:{bottomToolbarRef:u,tableContainerRef:d,topToolbarRef:h}}=t,{actionCell:p,creatingRow:f,editingRow:g,isFullScreen:m,isLoading:y,showLoadingOverlay:v}=r(),b=!1!==v&&(y||v),[w,x]=(0,o.useState)(0),A=Object.assign(Object.assign({},wI(c,{table:t})),n);OL((()=>{var e,t,n,r;const i="undefined"!=typeof document&&null!==(t=null===(e=h.current)||void 0===e?void 0:e.offsetHeight)&&void 0!==t?t:0,o="undefined"!=typeof document&&null!==(r=null===(n=null==u?void 0:u.current)||void 0===n?void 0:n.offsetHeight)&&void 0!==r?r:0;x(i+o)}));const S="modal"===i&&f,C="modal"===a&&g;return(0,F.jsxs)(uA,Object.assign({"aria-busy":b,"aria-describedby":b?"mrt-progress":void 0},A,{ref:e=>{e&&(d.current=e,(null==A?void 0:A.ref)&&(A.ref.current=e))},style:Object.assign({maxHeight:m?`calc(100vh - ${w}px)`:void 0},null==A?void 0:A.style),sx:e=>Object.assign({maxHeight:l?`clamp(350px, calc(100vh - ${w}px), 9999px)`:void 0,maxWidth:"100%",overflow:"auto",position:"relative"},wI(null==A?void 0:A.sx,e)),children:[b?(0,F.jsx)(_L,{table:t}):null,(0,F.jsx)(EL,{table:t}),(S||C)&&(0,F.jsx)(TL,{open:!0,table:t}),s&&p&&(0,F.jsx)(kL,{table:t})]}))},IL=e=>{var{isTopToolbar:t,table:n}=e,r=oM(e,["isTopToolbar","table"]);const{getState:i,options:{muiLinearProgressProps:o}}=n,{isSaving:a,showProgressBars:s}=i(),l=Object.assign(Object.assign({},wI(o,{isTopToolbar:t,table:n})),r);return(0,F.jsx)($,{in:!1!==s&&(s||a),mountOnEnter:!0,sx:{bottom:t?0:void 0,position:"absolute",top:t?void 0:0,width:"100%"},unmountOnExit:!0,children:(0,F.jsx)(yd,Object.assign({"aria-busy":"true","aria-label":"Loading",sx:{position:"relative"}},l))})},ML=[5,10,15,20,25,30,50,100],LL=e=>{var{position:t="bottom",table:n}=e,r=oM(e,["position","table"]);const i=(0,I.A)(),o=(0,ei.A)("(max-width: 720px)"),{getState:s,options:{enableToolbarInternalActions:l,icons:{ChevronLeftIcon:c,ChevronRightIcon:u,FirstPageIcon:d,LastPageIcon:h},localization:p,muiPaginationProps:f,paginationDisplayMode:g}}=n,{pagination:{pageIndex:m=0,pageSize:y=10},showGlobalFilter:v}=s(),b=Object.assign(Object.assign({},wI(f,{table:n})),r),w=n.getRowCount(),x=n.getPageCount(),A=x>2,S=m*y,C=Math.min(m*y+y,w),E=null!=b?b:{},{SelectProps:_={},disabled:k=!1,rowsPerPageOptions:T=ML,showFirstButton:O=A,showLastButton:P=A,showRowsPerPage:M=!0}=E,L=oM(E,["SelectProps","disabled","rowsPerPageOptions","showFirstButton","showLastButton","showRowsPerPage"]),R=m<=0||k,j=C>=w||k;o&&!1!==(null==_?void 0:_.native)&&(_.native=!0);const D=pM();return(0,F.jsxs)(a.A,{className:"MuiTablePagination-root",sx:{alignItems:"center",display:"flex",flexWrap:"wrap",gap:"8px",justifyContent:{md:"space-between",sm:"center"},justifySelf:"flex-end",mt:"top"===t&&l&&!v?"3rem":void 0,position:"relative",px:"8px",py:"12px",zIndex:2},children:[M&&(0,F.jsxs)(a.A,{sx:{alignItems:"center",display:"flex",gap:"8px"},children:[(0,F.jsx)(Tm.A,{htmlFor:"mrt-rows-per-page",sx:{mb:0},children:p.rowsPerPage}),(0,F.jsx)(my,Object.assign({MenuProps:{disableScrollLock:!0},disableUnderline:!0,disabled:k,inputProps:{"aria-label":p.rowsPerPage,id:"mrt-rows-per-page"},label:p.rowsPerPage,onChange:e=>n.setPageSize(+e.target.value),sx:{mb:0},value:y,variant:"standard"},_,{children:T.map((e=>{var t;const n="number"!=typeof e?e.value:e,r="number"!=typeof e?e.label:`${e}`;return null!==(t=null==_?void 0:_.children)&&void 0!==t?t:(null==_?void 0:_.native)?(0,F.jsx)("option",{value:n,children:r},n):(0,F.jsx)(fo,{sx:{m:0},value:n,children:r},n)}))}))]}),"pages"===g?(0,F.jsx)(cI,Object.assign({count:x,disabled:k,onChange:(e,t)=>n.setPageIndex(t-1),page:m+1,renderItem:e=>(0,F.jsx)(rI,Object.assign({slots:{first:d,last:h,next:u,previous:c}},e)),showFirstButton:O,showLastButton:P},L)):"default"===g?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(Fo.A,{align:"center",component:"span",sx:{m:"0 4px",minWidth:"8ch"},variant:"body2",children:`${0===C?0:(S+1).toLocaleString()}-${C.toLocaleString()} ${p.of} ${w.toLocaleString()}`}),(0,F.jsxs)(a.A,{gap:"xs",children:[O&&(0,F.jsx)(Ai,Object.assign({},D,{title:p.goToFirstPage,children:(0,F.jsx)("span",{children:(0,F.jsx)(Un,{"aria-label":p.goToFirstPage,disabled:R,onClick:()=>n.firstPage(),size:"small",children:(0,F.jsx)(d,Object.assign({},hM(i)))})})})),(0,F.jsx)(Ai,Object.assign({},D,{title:p.goToPreviousPage,children:(0,F.jsx)("span",{children:(0,F.jsx)(Un,{"aria-label":p.goToPreviousPage,disabled:R,onClick:()=>n.previousPage(),size:"small",children:(0,F.jsx)(c,Object.assign({},hM(i)))})})})),(0,F.jsx)(Ai,Object.assign({},D,{title:p.goToNextPage,children:(0,F.jsx)("span",{children:(0,F.jsx)(Un,{"aria-label":p.goToNextPage,disabled:j,onClick:()=>n.nextPage(),size:"small",children:(0,F.jsx)(u,Object.assign({},hM(i)))})})})),P&&(0,F.jsx)(Ai,Object.assign({},D,{title:p.goToLastPage,children:(0,F.jsx)("span",{children:(0,F.jsx)(Un,{"aria-label":p.goToLastPage,disabled:j,onClick:()=>n.lastPage(),size:"small",children:(0,F.jsx)(h,Object.assign({},hM(i)))})})}))]})]}):null]})},RL=e=>{var t,n,{table:r}=e,i=oM(e,["table"]);const{getState:s,options:{enableGrouping:l,localization:c},setHoveredColumn:u,setShowToolbarDropZone:d}=r,{draggingColumn:h,grouping:p,hoveredColumn:f,showToolbarDropZone:g}=s();return(0,o.useEffect)((()=>{var e;void 0!==(null===(e=r.options.state)||void 0===e?void 0:e.showToolbarDropZone)&&d(!!l&&!!h&&!1!==h.columnDef.enableGrouping&&!p.includes(h.id))}),[l,h,p]),(0,F.jsx)(_i,{in:g,children:(0,F.jsx)(a.A,Object.assign({className:"Mui-ToolbarDropZone",onDragEnter:e=>{u({id:"drop-zone"})},onDragOver:e=>{e.preventDefault()}},i,{sx:e=>Object.assign({alignItems:"center",backdropFilter:"blur(4px)",backgroundColor:(0,jy.X4)(e.palette.info.main,"drop-zone"===(null==f?void 0:f.id)?.2:.1),border:`dashed ${e.palette.info.main} 2px`,boxSizing:"border-box",display:"flex",height:"100%",justifyContent:"center",position:"absolute",width:"100%",zIndex:4},wI(null==i?void 0:i.sx,e)),children:(0,F.jsx)(Fo.A,{fontStyle:"italic",children:c.dropToGroupBy.replace("{column}",null!==(n=null===(t=null==h?void 0:h.columnDef)||void 0===t?void 0:t.header)&&void 0!==n?n:"")})}))})},jL=e=>{var{table:t}=e,n=oM(e,["table"]);const{getState:r,options:{enablePagination:i,muiBottomToolbarProps:o,positionPagination:s,positionToolbarAlertBanner:l,positionToolbarDropZone:c,renderBottomToolbarCustomActions:u},refs:{bottomToolbarRef:d}}=t,{isFullScreen:h}=r(),p=(0,ei.A)("(max-width:720px)"),f=Object.assign(Object.assign({},wI(o,{table:t})),n),g=p||!!u;return(0,F.jsxs)(a.A,Object.assign({},f,{ref:e=>{e&&(d.current=e,(null==f?void 0:f.ref)&&(f.ref.current=e))},sx:e=>Object.assign(Object.assign(Object.assign({},dM({table:t,theme:e})),{bottom:h?"0":void 0,boxShadow:`0 1px 2px -1px ${(0,jy.X4)(e.palette.grey[700],.5)} inset`,left:0,position:h?"fixed":"relative",right:0}),wI(null==f?void 0:f.sx,e)),children:[(0,F.jsx)(IL,{isTopToolbar:!1,table:t}),"bottom"===l&&(0,F.jsx)(SL,{stackAlertBanner:g,table:t}),["both","bottom"].includes(null!=c?c:"")&&(0,F.jsx)(RL,{table:t}),(0,F.jsxs)(a.A,{sx:{alignItems:"center",boxSizing:"border-box",display:"flex",justifyContent:"space-between",p:"0.5rem",width:"100%"},children:[u?u({table:t}):(0,F.jsx)("span",{}),(0,F.jsx)(a.A,{sx:{display:"flex",justifyContent:"flex-end",position:g?"relative":"absolute",right:0,top:0},children:i&&["both","bottom"].includes(null!=s?s:"")&&(0,F.jsx)(LL,{position:"bottom",table:t})})]})]}))},FL=e=>{var{column:t,table:n}=e,r=oM(e,["column","table"]);const{options:{icons:{PushPinIcon:i},localization:o}}=n,s=e=>{t.pin(e)};return(0,F.jsx)(a.A,Object.assign({},r,{sx:e=>Object.assign({minWidth:"70px",textAlign:"center"},wI(null==r?void 0:r.sx,e)),children:t.getIsPinned()?(0,F.jsx)(Ai,{title:o.unpin,children:(0,F.jsx)(Un,{onClick:()=>s(!1),size:"small",children:(0,F.jsx)(i,{})})}):(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(Ai,{title:o.pinToLeft,children:(0,F.jsx)(Un,{onClick:()=>s("left"),size:"small",children:(0,F.jsx)(i,{style:{transform:"rotate(90deg)"}})})}),(0,F.jsx)(Ai,{title:o.pinToRight,children:(0,F.jsx)(Un,{onClick:()=>s("right"),size:"small",children:(0,F.jsx)(i,{style:{transform:"rotate(-90deg)"}})})})]})}))},DL=e=>{var t,{allColumns:n,column:r,hoveredColumn:i,isNestedColumns:s,setHoveredColumn:l,table:c}=e,u=oM(e,["allColumns","column","hoveredColumn","isNestedColumns","setHoveredColumn","table"]);const{getState:d,options:{enableColumnOrdering:h,enableColumnPinning:p,enableHiding:f,localization:g,mrtTheme:{draggingBorderColor:m}},setColumnOrder:y}=c,{columnOrder:v}=d(),{columnDef:b}=r,{columnDefType:w}=b,x=r.getIsVisible(),A=(0,o.useRef)(null),[S,C]=(0,o.useState)(!1);return b.header&&!1!==b.visibleInShowHideMenu?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(fo,Object.assign({disableRipple:!0,onDragEnter:e=>{S||!1===b.enableColumnOrdering||l(r)},ref:A},u,{sx:e=>Object.assign({alignItems:"center",justifyContent:"flex-start",my:0,opacity:S?.5:1,outline:S?`2px dashed ${e.palette.grey[500]}`:(null==i?void 0:i.id)===r.id?`2px dashed ${m}`:"none",outlineOffset:"-2px",pl:2*(r.depth+.5)+"rem",py:"6px"},wI(null==u?void 0:u.sx,e)),children:(0,F.jsxs)(a.A,{sx:{display:"flex",flexWrap:"nowrap",gap:"8px"},children:["group"!==w&&h&&!s&&(!1!==b.enableColumnOrdering?(0,F.jsx)(bM,{onDragEnd:e=>{C(!1),l(null),i&&y(pI(r,i,v))},onDragStart:e=>{C(!0);try{e.dataTransfer.setDragImage(A.current,0,0)}catch(e){console.error(e)}},table:c}):(0,F.jsx)(a.A,{sx:{width:"28px"}})),p&&(r.getCanPin()?(0,F.jsx)(FL,{column:r,table:c}):(0,F.jsx)(a.A,{sx:{width:"70px"}})),f?(0,F.jsx)($b,{checked:x,componentsProps:{typography:{sx:{mb:0,opacity:"display"!==w?1:.5}}},control:(0,F.jsx)(Ai,Object.assign({},pM(),{title:g.toggleVisibility,children:(0,F.jsx)(Gb.A,{})})),disabled:!r.getCanHide(),label:b.header,onChange:()=>(e=>{var t,n;"group"===w?null===(n=null===(t=null==e?void 0:e.columns)||void 0===t?void 0:t.forEach)||void 0===n||n.call(t,(e=>{e.toggleVisibility(!x)})):e.toggleVisibility()})(r)}):(0,F.jsx)(Fo.A,{sx:{alignSelf:"center"},children:b.header})]})})),null===(t=r.columns)||void 0===t?void 0:t.map(((e,t)=>(0,F.jsx)(DL,{allColumns:n,column:e,hoveredColumn:i,isNestedColumns:s,setHoveredColumn:l,table:c},`${t}-${e.id}`)))]}):null},NL=e=>{var{anchorEl:t,setAnchorEl:n,table:r}=e,i=oM(e,["anchorEl","setAnchorEl","table"]);const{getAllColumns:s,getAllLeafColumns:l,getCenterLeafColumns:c,getIsAllColumnsVisible:u,getIsSomeColumnsPinned:d,getIsSomeColumnsVisible:h,getLeftLeafColumns:p,getRightLeafColumns:f,getState:g,options:{enableColumnOrdering:m,enableColumnPinning:y,enableHiding:v,localization:b,mrtTheme:{menuBackgroundColor:w}}}=r,{columnOrder:x,columnPinning:A,density:S}=g(),C=e=>{l().filter((e=>!1!==e.columnDef.enableHiding)).forEach((t=>t.toggleVisibility(e)))},E=(0,o.useMemo)((()=>{const e=s();return x.length>0&&!e.some((e=>"group"===e.columnDef.columnDefType))?[...p(),...Array.from(new Set(x)).map((e=>c().find((t=>(null==t?void 0:t.id)===e)))),...f()].filter(Boolean):e}),[x,A,s(),c(),p(),f()]),_=E.some((e=>"group"===e.columnDef.columnDefType)),[k,T]=(0,o.useState)(null);return(0,F.jsxs)(jh,Object.assign({MenuListProps:{dense:"compact"===S,sx:{backgroundColor:w}},anchorEl:t,disableScrollLock:!0,onClose:()=>n(null),open:!!t},i,{children:[(0,F.jsxs)(a.A,{sx:{display:"flex",justifyContent:"space-between",p:"0.5rem",pt:0},children:[v&&(0,F.jsx)(Ni,{disabled:!h(),onClick:()=>C(!1),children:b.hideAll}),m&&(0,F.jsx)(Ni,{onClick:()=>r.setColumnOrder(RI(r.options,!0)),children:b.resetOrder}),y&&(0,F.jsx)(Ni,{disabled:!d(),onClick:()=>r.resetColumnPinning(!0),children:b.unpinAll}),v&&(0,F.jsx)(Ni,{disabled:u(),onClick:()=>C(!0),children:b.showAll})]}),(0,F.jsx)(JT.A,{}),E.map(((e,t)=>(0,F.jsx)(DL,{allColumns:E,column:e,hoveredColumn:k,isNestedColumns:_,setHoveredColumn:T,table:r},`${t}-${e.id}`)))]}))},zL=e=>{var t,{table:n}=e,r=oM(e,["table"]);const{options:{icons:{ViewColumnIcon:i},localization:a}}=n,[s,l]=(0,o.useState)(null);return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(Ai,{title:null!==(t=null==r?void 0:r.title)&&void 0!==t?t:a.showHideColumns,children:(0,F.jsx)(Un,Object.assign({"aria-label":a.showHideColumns,onClick:e=>{l(e.currentTarget)}},r,{title:void 0,children:(0,F.jsx)(i,{})}))}),s&&(0,F.jsx)(NL,{anchorEl:s,setAnchorEl:l,table:n})]})},VL=e=>{var t,{table:n}=e,r=oM(e,["table"]);const{getState:i,options:{icons:{DensityLargeIcon:o,DensityMediumIcon:a,DensitySmallIcon:s},localization:l},setDensity:c}=n,{density:u}=i();return(0,F.jsx)(Ai,{title:null!==(t=null==r?void 0:r.title)&&void 0!==t?t:l.toggleDensity,children:(0,F.jsx)(Un,Object.assign({"aria-label":l.toggleDensity,onClick:()=>{c("comfortable"===u?"compact":"compact"===u?"spacious":"comfortable")}},r,{title:void 0,children:"compact"===u?(0,F.jsx)(s,{}):"comfortable"===u?(0,F.jsx)(a,{}):(0,F.jsx)(o,{})}))})},BL=e=>{var t,{table:n}=e,r=oM(e,["table"]);const{getState:i,options:{icons:{FilterListIcon:o,FilterListOffIcon:a},localization:s},setShowColumnFilters:l}=n,{showColumnFilters:c}=i();return(0,F.jsx)(Ai,{title:null!==(t=null==r?void 0:r.title)&&void 0!==t?t:s.showHideFilters,children:(0,F.jsx)(Un,Object.assign({"aria-label":s.showHideFilters,onClick:()=>{l(!c)}},r,{title:void 0,children:c?(0,F.jsx)(a,{}):(0,F.jsx)(o,{})}))})},$L=e=>{var t,{table:n}=e,r=oM(e,["table"]);const{getState:i,options:{icons:{FullscreenExitIcon:a,FullscreenIcon:s},localization:l},setIsFullScreen:c}=n,{isFullScreen:u}=i(),[d,h]=(0,o.useState)(!1);return(0,F.jsx)(Ai,{open:d,title:null!==(t=null==r?void 0:r.title)&&void 0!==t?t:l.toggleFullScreen,children:(0,F.jsx)(Un,Object.assign({"aria-label":l.toggleFullScreen,onClick:()=>{h(!1),c(!u)},onMouseEnter:()=>h(!0),onMouseLeave:()=>h(!1)},r,{title:void 0,children:u?(0,F.jsx)(a,{}):(0,F.jsx)(s,{})}))})},GL=e=>{var t,n,{table:r}=e,i=oM(e,["table"]);const{getState:o,options:{icons:{SearchIcon:a,SearchOffIcon:s},localization:l},refs:{searchInputRef:c},setShowGlobalFilter:u}=r,{globalFilter:d,showGlobalFilter:h}=o();return(0,F.jsx)(Ai,{title:null!==(t=null==i?void 0:i.title)&&void 0!==t?t:l.showHideSearch,children:(0,F.jsx)(Un,Object.assign({"aria-label":null!==(n=null==i?void 0:i.title)&&void 0!==n?n:l.showHideSearch,disabled:!!d,onClick:()=>{u(!h),queueMicrotask((()=>{var e;return null===(e=c.current)||void 0===e?void 0:e.focus()}))}},i,{title:void 0,children:h?(0,F.jsx)(s,{}):(0,F.jsx)(a,{})}))})},UL=e=>{var t,{table:n}=e,r=oM(e,["table"]);const{options:{columnFilterDisplayMode:i,enableColumnFilters:o,enableColumnOrdering:s,enableColumnPinning:l,enableDensityToggle:c,enableFilters:u,enableFullScreenToggle:d,enableGlobalFilter:h,enableHiding:p,initialState:f,renderToolbarInternalActions:g}}=n;return(0,F.jsx)(a.A,Object.assign({},r,{sx:e=>Object.assign({alignItems:"center",display:"flex",zIndex:3},wI(null==r?void 0:r.sx,e)),children:null!==(t=null==g?void 0:g({table:n}))&&void 0!==t?t:(0,F.jsxs)(F.Fragment,{children:[u&&h&&!(null==f?void 0:f.showGlobalFilter)&&(0,F.jsx)(GL,{table:n}),u&&o&&"popover"!==i&&(0,F.jsx)(BL,{table:n}),(p||s||l)&&(0,F.jsx)(zL,{table:n}),c&&(0,F.jsx)(VL,{table:n}),d&&(0,F.jsx)($L,{table:n})]})}))},WL=e=>{var t,{table:n}=e,r=oM(e,["table"]);const{getState:i,options:{enableGlobalFilterModes:a,icons:{CloseIcon:s,SearchIcon:l},localization:c,manualFiltering:u,muiSearchTextFieldProps:d},refs:{searchInputRef:h},setGlobalFilter:p}=n,{globalFilter:f,showGlobalFilter:g}=i(),m=Object.assign(Object.assign({},wI(d,{table:n})),r),y=(0,o.useRef)(!1),[v,b]=(0,o.useState)(null),[w,x]=(0,o.useState)(null!=f?f:""),A=(0,o.useCallback)((0,fs.A)((e=>{var t;p(null!==(t=e.target.value)&&void 0!==t?t:void 0)}),u?500:250),[]),S=()=>{x(""),p(void 0)};return(0,o.useEffect)((()=>{y.current&&(void 0===f?S():x(f)),y.current=!0}),[f]),(0,F.jsxs)($,{in:g,mountOnEnter:!0,orientation:"horizontal",unmountOnExit:!0,children:[(0,F.jsx)(oS,Object.assign({inputProps:Object.assign({autoComplete:"new-password"},m.inputProps),onChange:e=>{x(e.target.value),A(e)},placeholder:c.search,size:"small",value:null!=w?w:"",variant:"outlined"},m,{InputProps:Object.assign(Object.assign({endAdornment:(0,F.jsx)(CS,{position:"end",children:(0,F.jsx)(Ai,{title:null!==(t=c.clearSearch)&&void 0!==t?t:"",children:(0,F.jsx)("span",{children:(0,F.jsx)(Un,{"aria-label":c.clearSearch,disabled:!(null==w?void 0:w.length),onClick:S,size:"small",children:(0,F.jsx)(s,{})})})})}),startAdornment:a?(0,F.jsx)(CS,{position:"start",children:(0,F.jsx)(Ai,{title:c.changeSearchMode,children:(0,F.jsx)(Un,{"aria-label":c.changeSearchMode,onClick:e=>{b(e.currentTarget)},size:"small",sx:{height:"1.75rem",width:"1.75rem"},children:(0,F.jsx)(l,{})})})}):(0,F.jsx)(l,{style:{marginRight:"4px"}})},m.InputProps),{sx:e=>{var t;return Object.assign({mb:0},wI(null===(t=null==m?void 0:m.InputProps)||void 0===t?void 0:t.sx,e))}}),inputRef:e=>{h.current=e,(null==m?void 0:m.inputRef)&&(m.inputRef=e)}})),(0,F.jsx)(cL,{anchorEl:v,onSelect:S,setAnchorEl:b,table:n})]})},qL=({table:e})=>{var t;const{getState:n,options:{enableGlobalFilter:r,enablePagination:i,enableToolbarInternalActions:o,muiTopToolbarProps:s,positionGlobalFilter:l,positionPagination:c,positionToolbarAlertBanner:u,positionToolbarDropZone:d,renderTopToolbarCustomActions:h},refs:{topToolbarRef:p}}=e,{isFullScreen:f,showGlobalFilter:g}=n(),m=(0,ei.A)("(max-width:720px)"),y=(0,ei.A)("(max-width:1024px)"),v=wI(s,{table:e}),b=m||!!h||g&&y,w={sx:y?void 0:{zIndex:2},table:e};return(0,F.jsxs)(a.A,Object.assign({},v,{ref:e=>{p.current=e,(null==v?void 0:v.ref)&&(v.ref.current=e)},sx:t=>Object.assign(Object.assign(Object.assign({},dM({table:e,theme:t})),{position:f?"sticky":"relative",top:f?"0":void 0}),wI(null==v?void 0:v.sx,t)),children:["top"===u&&(0,F.jsx)(SL,{stackAlertBanner:b,table:e}),["both","top"].includes(null!=d?d:"")&&(0,F.jsx)(RL,{table:e}),(0,F.jsxs)(a.A,{sx:{alignItems:"flex-start",boxSizing:"border-box",display:"flex",gap:"0.5rem",justifyContent:"space-between",p:"0.5rem",position:b?"relative":"absolute",right:0,top:0,width:"100%"},children:[r&&"left"===l&&(0,F.jsx)(WL,Object.assign({},w)),null!==(t=null==h?void 0:h({table:e}))&&void 0!==t?t:(0,F.jsx)("span",{}),o?(0,F.jsxs)(a.A,{sx:{alignItems:"center",display:"flex",flexWrap:"wrap-reverse",gap:"0.5rem",justifyContent:"flex-end"},children:[r&&"right"===l&&(0,F.jsx)(WL,Object.assign({},w)),(0,F.jsx)(UL,{table:e})]}):r&&"right"===l&&(0,F.jsx)(WL,Object.assign({},w))]}),i&&["both","top"].includes(null!=c?c:"")&&(0,F.jsx)(LL,{position:"top",table:e}),(0,F.jsx)(IL,{isTopToolbar:!0,table:e})]}))},HL=e=>{var t,n,{table:r}=e,i=oM(e,["table"]);const{getState:o,options:{enableBottomToolbar:a,enableTopToolbar:s,mrtTheme:{baseBackgroundColor:l},muiTablePaperProps:c,renderBottomToolbar:u,renderTopToolbar:d},refs:{tablePaperRef:h}}=r,{isFullScreen:p}=o(),f=Object.assign(Object.assign({},wI(c,{table:r})),i);return(0,F.jsxs)(G.A,Object.assign({elevation:2},f,{ref:e=>{h.current=e,(null==f?void 0:f.ref)&&(f.ref.current=e)},style:Object.assign(Object.assign({},p?{bottom:0,height:"100dvh",left:0,margin:0,maxHeight:"100dvh",maxWidth:"100dvw",padding:0,position:"fixed",right:0,top:0,width:"100dvw",zIndex:999}:{}),null==f?void 0:f.style),sx:e=>Object.assign({backgroundColor:l,backgroundImage:"unset",overflow:"hidden",transition:"all 100ms ease-in-out"},wI(null==f?void 0:f.sx,e)),children:[s&&(null!==(t=wI(d,{table:r}))&&void 0!==t?t:(0,F.jsx)(qL,{table:r})),(0,F.jsx)(PL,{table:r}),a&&(null!==(n=wI(u,{table:r}))&&void 0!==n?n:(0,F.jsx)(jL,{table:r}))]}))},YL=e=>{let t;return t=(e=>void 0!==e.table)(e)?e.table:zM(e),(0,F.jsx)(HL,{table:t})};function KL(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 XL(e){return(0,F.jsx)(YL,function(e){for(var t=1;t{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})((({theme:e,ownerState:t})=>(0,s.A)({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},"dense"===t.variant&&{minHeight:48})),(({theme:e,ownerState:t})=>"regular"===t.variant&&e.mixins.toolbar)),mR=o.forwardRef((function(e,t){const n=(0,k.A)({props:e,name:"MuiToolbar"}),{className:r,component:i="div",disableGutters:o=!1,variant:a="regular"}=n,d=(0,l.A)(n,fR),h=(0,s.A)({},n,{component:i,disableGutters:o,variant:a}),p=(e=>{const{classes:t,disableGutters:n,variant:r}=e,i={root:["root",!n&&"gutters",r]};return(0,u.A)(i,pR,t)})(h);return(0,F.jsx)(gR,(0,s.A)({as:i,className:(0,c.A)(p.root,r),ref:t,ownerState:h},d))}));function yR(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 vR(e){return(0,F.jsx)(mR,function(e){for(var t=1;t{"use strict";n.d(t,{v:()=>r});var r={APPBAR:"app-bar",NAVBAR:"nav-bar"}},3389:(e,t,n)=>{"use strict";n.d(t,{w:()=>z,O:()=>N});var r=n(76014),i=n(64426),o=n(70640),a=n(32814),s=n(99601),l=n.n(s),c=n(41795),u=l()(50,1e3,50),d=function(){return(0,a.A)((function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if((0,o.A)(this,e),(0,i.A)(this,"main",void 0),(0,i.A)(this,"isInverse",void 0),(0,i.A)(this,"dark",{}),(0,i.A)(this,"light",{}),!h.call(e,t))throw new Error("Invalid color format");this.main=t,this.isInverse=r,u.forEach((function(e){n.dark[e]=n.darken(e/1e3),n.light[e]=n.lighten(e/1e3)}))}),[{key:"_main",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return(0,c.X4)(this.main,e)}},{key:"opacity",value:function(e){return(0,c.X4)(this.main,e)}},{key:"lighten",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return this.isInverse?(0,c.X4)((0,c.e$)(this.main,e),t):(0,c.X4)((0,c.a)(this.main,e),t)}},{key:"darken",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return this.isInverse?(0,c.X4)((0,c.a)(this.main,e),t):(0,c.X4)((0,c.e$)(this.main,e),t)}},{key:"contrastText",value:function(){var e=this.main.slice(1);return.299*parseInt(e.slice(0,2),16)+.587*parseInt(e.slice(2,4),16)+.114*parseInt(e.slice(4,6),16)>186?"#000000":"#FFFFFF"}}])}();function h(e){return/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$|^rgba?\(\d+,\s*\d+,\s*\d+(,\s*(0(\.\d+)?|1(\.0)?))?\)$/.test(e)}for(var p="'Roboto', 'Helvetica', 'Arial', sans-serif",f={fontFamily:p,fontWeight:700},g=.08,m=.16,y=.38,v=.12,b=.24,w={white:"#FFFFFF",bgColor:new d("#F1F2F5"),primary:new d("#515BA5"),secondary:new d("#1976d2"),textColor:new d("#393939"),success:new d("#2e7d32"),error:new d("#d32f2f"),warning:new d("#ed6c02"),info:new d("#2e7d32"),grey:new d("#9e9e9e")},x={xs:"".concat(.7,"rem"),sm:"".concat(.875,"rem"),md:"".concat(1.125,"rem"),lg:"".concat(1.3,"rem"),xl:"".concat(1.6,"rem"),xxl:"".concat(2,"rem"),default:"".concat(1,"rem")},A=.2;A<=10;A+=.1){x["".concat(A,"x")]="".concat(1*A,"rem")}var S=x;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&&void 0!==arguments[0]?arguments[0]:w;return{palette:{geoViewColor:e,geoViewFontSize:S,geoViewSpacingAndSizing:{},backdrop:"#3F3F3F50",common:{black:"#000",white:"#fff"},primary:{main:e.primary.main,light:e.primary.light[600],dark:e.primary.dark[200],contrastText:e.primary.contrastText()},secondary:{main:e.primary.main,light:e.primary.light[600],dark:e.primary.dark[300],contrastText:e.primary.contrastText()},error:{main:e.error.main,light:e.error.light[600],dark:e.error.dark[300],contrastText:e.error.contrastText()},warning:{main:e.warning.main,light:e.warning.light[600],dark:e.warning.dark[300],contrastText:e.warning.contrastText()},info:{main:e.info.main,light:e.info.light[600],dark:e.info.dark[300],contrastText:e.info.contrastText()},success:{main:e.success.main,light:e.success.light[600],dark:e.success.dark[300],contrastText:e.success.contrastText()},contrastThreshold:3,tonalOffset:.2,text:{primary:e.textColor.light[50],secondary:e.textColor.light[500],disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:e.bgColor.light[600],default:e.bgColor.light[500]},action:{active:e.primary.main,hover:e.primary.opacity(g),hoverOpacity:g,selected:e.primary.opacity(m),selectedOpacity:m,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, ".concat(v,")"),disabledOpacity:y,focus:e.primary.opacity(v),focusOpacity:v,activatedOpacity:b}},typography:{htmlFontSize:16,fontFamily:p,h1:f,h2:f,h3:f,h4:f,h5:f,h6:{fontWeight:400},subtitle1:{fontSize:S.default,lineHeight:1.25},subtitle2:{fontSize:S.xs,lineHeight:1.25},body1:{},body2:{},caption:{},overline:{fontSize:S.sm,fontWeight:500,letterSpacing:2},button:{fontSize:S.lg,fontWeight:500},control:{fontSize:11,fontWeight:500}},spacing:function(e){var t=[0,1,2,4,5,6,8,10,12,14,15,16,18,20,30],n=Math.floor(e),r=t[n];return"".concat(r+((t[n+1]||2*r)-r)*(e-n),"px")},breakpoints:{values:{xs:0,sm:640,md:960,lg:1200,xl:1536}},zIndex:{mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:15e3,olControl:500,focusDialog:1300},transitions:{duration:{shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195,splash:1500},easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"}},shape:{borderRadius:6,center:"50%",right:"100%",left:"0%"},components:{MuiTooltip:{defaultProps:{PopperProps:{container:R}},styleOverrides:{tooltip:{backgroundColor:e.bgColor.dark[800],color:e.bgColor.light[800]}}},MuiPaper:{styleOverrides:{root:{borderRadius:5,borderWidth:"1px",borderColor:e.bgColor.darken(.5,.5),borderStyle:"solid",boxShadow:"0px 12px 9px -13px ".concat(e.bgColor.darken(.2,.5)),"&.layer-panel":{boxShadow:"none",'&[data-layer-depth="0"], &:not([data-layer-depth])':{background:"".concat(e.bgColor.light[600]," 0% 0% no-repeat padding-box"),borderRadius:"5px",marginBottom:"1rem"},'&[data-layer-depth] &:not([data-layer-depth="0"])':{borderRadius:"0px",border:"unset",backgroundColor:"unset"},"& .MuiListItemButton-root":{backgroundColor:"transparent !important"},"&.selectedLayer, &.selected":{borderColor:"".concat(e.primary.main," !important"),borderWidth:"2px !important",borderStyle:"solid !important"},"&.dragging":{backgroundcolor:e.primary.dark[600],cursor:"grab",userSelect:"none"},"&.error, &.query-error":{background:e.error.lighten(.7,.6),"& .MuiListItemText-secondary":{fontWeight:"bold",color:e.error.main}},"&.loading, &.processing, &.query-processing":{background:e.info.lighten(.7,.6),"& .MuiListItemText-secondary":{fontWeight:"bold",color:e.info.main}}},"&.unbordered":{borderStyle:"none"}}}},MuiButton:{styleOverrides:{root:L({},j(e))}},MuiIconButton:{styleOverrides:{root:L({},j(e))}},MuiFab:{styleOverrides:{root:{padding:"0 24px"}}},MuiDrawer:{styleOverrides:{paper:{position:"relative"}}},MuiButtonGroup:{styleOverrides:{grouped:{minWidth:"auto"}}},MuiListItemButton:{defaultProps:{disableTouchRipple:!0}},MuiTabs:{styleOverrides:{root:{backgroundColor:e.bgColor.dark[100]},indicator:{backgroundColor:"#FF4081"}}},MuiTab:{styleOverrides:{root:{color:e.textColor.light[100],"&.Mui-selected":{color:"".concat(e.primary.light[200])}}}},MuiTypography:{styleOverrides:{root:{color:e.textColor.main}}}},overrides:{button:{size:{width:"32px",height:"32px"}},northArrow:{size:{width:42,height:42}},crosshairIcon:{size:{width:275,height:275}}}}};function D(e){switch(e){case"dark":return F(O);case"geo.ca":return F(I);default:return F(_)}}var N=function(e){var t=D(e);return(0,r.A)(t)},z=(0,r.A)(D("geo.ca"))},67207:(e,t,n)=>{"use strict";n.d(t,{o:()=>l});var r=n(64426),i=n(30538),o=n(91031),a=n(97282);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}var l=(0,i.forwardRef)((function(e,t){return(0,a.jsx)(o.A,function(e){for(var t=1;t{"use strict";n.d(t,{A:()=>N});var r=n(60376),i=n.n(r),o=n(92696),a=n.n(o),s=n(19811),l=n.n(s),c=new URL(n(11008),n.b),u=new URL(n(85270),n.b),d=new URL(n(63166),n.b),h=new URL(n(66580),n.b),p=new URL(n(30441),n.b),f=new URL(n(88169),n.b),g=new URL(n(77627),n.b),m=new URL(n(92323),n.b),y=new URL(n(1556),n.b),v=new URL(n(39250),n.b),b=new URL(n(63747),n.b),w=new URL(n(38427),n.b),x=new URL(n(91941),n.b),A=new URL(n(61245),n.b),S=a()(i()),C=l()(c),E=l()(u),_=l()(d),k=l()(h),T=l()(p),O=l()(f),P=l()(g),I=l()(m),M=l()(y),L=l()(v),R=l()(b),j=l()(w),F=l()(x),D=l()(A);S.push([e.id,`@font-face{font-family:"Roboto";font-style:normal;font-display:swap;font-weight:400;src:url(${C}) format("woff2"),url(${E}) format("woff");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:"Roboto";font-style:normal;font-display:swap;font-weight:400;src:url(${_}) format("woff2"),url(${k}) format("woff");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:"Roboto";font-style:normal;font-display:swap;font-weight:400;src:url(${T}) format("woff2"),url(${O}) format("woff");unicode-range:U+1F00-1FFF}@font-face{font-family:"Roboto";font-style:normal;font-display:swap;font-weight:400;src:url(${P}) format("woff2"),url(${I}) format("woff");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:"Roboto";font-style:normal;font-display:swap;font-weight:400;src:url(${M}) format("woff2"),url(${L}) format("woff");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:"Roboto";font-style:normal;font-display:swap;font-weight:400;src:url(${R}) format("woff2"),url(${j}) format("woff");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:"Roboto";font-style:normal;font-display:swap;font-weight:400;src:url(${F}) format("woff2"),url(${D}) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}`,"",{version:3,sources:["webpack://./../../common/temp/node_modules/.pnpm/@fontsource+roboto@5.0.13/node_modules/@fontsource/roboto/400.css"],names:[],mappings:"AACA,WACE,oBAAA,CACA,iBAAA,CACA,iBAAA,CACA,eAAA,CACA,kHAAA,CACA,gFAAA,CAIF,WACE,oBAAA,CACA,iBAAA,CACA,iBAAA,CACA,eAAA,CACA,kHAAA,CACA,+DAAA,CAIF,WACE,oBAAA,CACA,iBAAA,CACA,iBAAA,CACA,eAAA,CACA,kHAAA,CACA,yBAAA,CAIF,WACE,oBAAA,CACA,iBAAA,CACA,iBAAA,CACA,eAAA,CACA,kHAAA,CACA,gFAAA,CAIF,WACE,oBAAA,CACA,iBAAA,CACA,iBAAA,CACA,eAAA,CACA,kHAAA,CACA,0JAAA,CAIF,WACE,oBAAA,CACA,iBAAA,CACA,iBAAA,CACA,eAAA,CACA,oHAAA,CACA,oIAAA,CAIF,WACE,oBAAA,CACA,iBAAA,CACA,iBAAA,CACA,eAAA,CACA,oHAAA,CACA,6KAAA",sourcesContent:["/* roboto-cyrillic-ext-400-normal */\n@font-face {\n font-family: 'Roboto';\n font-style: normal;\n font-display: swap;\n font-weight: 400;\n src: url(./files/roboto-cyrillic-ext-400-normal.woff2) format('woff2'), url(./files/roboto-cyrillic-ext-400-normal.woff) format('woff');\n unicode-range: U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;\n}\n\n/* roboto-cyrillic-400-normal */\n@font-face {\n font-family: 'Roboto';\n font-style: normal;\n font-display: swap;\n font-weight: 400;\n src: url(./files/roboto-cyrillic-400-normal.woff2) format('woff2'), url(./files/roboto-cyrillic-400-normal.woff) format('woff');\n unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;\n}\n\n/* roboto-greek-ext-400-normal */\n@font-face {\n font-family: 'Roboto';\n font-style: normal;\n font-display: swap;\n font-weight: 400;\n src: url(./files/roboto-greek-ext-400-normal.woff2) format('woff2'), url(./files/roboto-greek-ext-400-normal.woff) format('woff');\n unicode-range: U+1F00-1FFF;\n}\n\n/* roboto-greek-400-normal */\n@font-face {\n font-family: 'Roboto';\n font-style: normal;\n font-display: swap;\n font-weight: 400;\n src: url(./files/roboto-greek-400-normal.woff2) format('woff2'), url(./files/roboto-greek-400-normal.woff) format('woff');\n unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;\n}\n\n/* roboto-vietnamese-400-normal */\n@font-face {\n font-family: 'Roboto';\n font-style: normal;\n font-display: swap;\n font-weight: 400;\n src: url(./files/roboto-vietnamese-400-normal.woff2) format('woff2'), url(./files/roboto-vietnamese-400-normal.woff) format('woff');\n unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;\n}\n\n/* roboto-latin-ext-400-normal */\n@font-face {\n font-family: 'Roboto';\n font-style: normal;\n font-display: swap;\n font-weight: 400;\n src: url(./files/roboto-latin-ext-400-normal.woff2) format('woff2'), url(./files/roboto-latin-ext-400-normal.woff) format('woff');\n unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;\n}\n\n/* roboto-latin-400-normal */\n@font-face {\n font-family: 'Roboto';\n font-style: normal;\n font-display: swap;\n font-weight: 400;\n src: url(./files/roboto-latin-400-normal.woff2) format('woff2'), url(./files/roboto-latin-400-normal.woff) format('woff');\n unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;\n}"],sourceRoot:""}]);const N=S},77946:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(60376),i=n.n(r),o=n(92696),a=n.n(o)()(i());a.push([e.id,':root,:host{--ol-background-color: white;--ol-accent-background-color: #F5F5F5;--ol-subtle-background-color: rgba(128, 128, 128, 0.25);--ol-partial-background-color: rgba(255, 255, 255, 0.75);--ol-foreground-color: #333333;--ol-subtle-foreground-color: #666666;--ol-brand-color: #00AAFF}.ol-box{box-sizing:border-box;border-radius:2px;border:1.5px solid var(--ol-background-color);background-color:var(--ol-partial-background-color)}.ol-mouse-position{top:8px;right:8px;position:absolute}.ol-scale-line{background:var(--ol-partial-background-color);border-radius:4px;bottom:8px;left:8px;padding:2px;position:absolute}.ol-scale-line-inner{border:1px solid var(--ol-subtle-foreground-color);border-top:none;color:var(--ol-foreground-color);font-size:10px;text-align:center;margin:1px;will-change:contents,width;transition:all .25s}.ol-scale-bar{position:absolute;bottom:8px;left:8px}.ol-scale-bar-inner{display:flex}.ol-scale-step-marker{width:1px;height:15px;background-color:var(--ol-foreground-color);float:right;z-index:10}.ol-scale-step-text{position:absolute;bottom:-5px;font-size:10px;z-index:11;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-text{position:absolute;font-size:12px;text-align:center;bottom:25px;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-singlebar{position:relative;height:10px;z-index:9;box-sizing:border-box;border:1px solid var(--ol-foreground-color)}.ol-scale-singlebar-even{background-color:var(--ol-subtle-foreground-color)}.ol-scale-singlebar-odd{background-color:var(--ol-background-color)}.ol-unsupported{display:none}.ol-viewport,.ol-unselectable{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.ol-viewport canvas{all:unset;overflow:hidden}.ol-viewport{touch-action:pan-x pan-y}.ol-selectable{-webkit-touch-callout:default;-webkit-user-select:text;-moz-user-select:text;user-select:text}.ol-grabbing{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.ol-grab{cursor:move;cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.ol-control{position:absolute;background-color:var(--ol-subtle-background-color);border-radius:4px}.ol-zoom{top:.5em;left:.5em}.ol-rotate{top:.5em;right:.5em;transition:opacity .25s linear,visibility 0s linear}.ol-rotate.ol-hidden{opacity:0;visibility:hidden;transition:opacity .25s linear,visibility 0s linear .25s}.ol-zoom-extent{top:4.643em;left:.5em}.ol-full-screen{right:.5em;top:.5em}.ol-control button{display:block;margin:1px;padding:0;color:var(--ol-subtle-foreground-color);font-weight:bold;text-decoration:none;font-size:inherit;text-align:center;height:1.375em;width:1.375em;line-height:.4em;background-color:var(--ol-background-color);border:none;border-radius:2px}.ol-control button::-moz-focus-inner{border:none;padding:0}.ol-zoom-extent button{line-height:1.4em}.ol-compass{display:block;font-weight:normal;will-change:transform}.ol-touch .ol-control button{font-size:1.5em}.ol-touch .ol-zoom-extent{top:5.5em}.ol-control button:hover,.ol-control button:focus{text-decoration:none;outline:1px solid var(--ol-subtle-foreground-color);color:var(--ol-foreground-color)}.ol-zoom .ol-zoom-in{border-radius:2px 2px 0 0}.ol-zoom .ol-zoom-out{border-radius:0 0 2px 2px}.ol-attribution{text-align:right;bottom:.5em;right:.5em;max-width:calc(100% - 1.3em);display:flex;flex-flow:row-reverse;align-items:center}.ol-attribution a{color:var(--ol-subtle-foreground-color);text-decoration:none}.ol-attribution ul{margin:0;padding:1px .5em;color:var(--ol-foreground-color);text-shadow:0 0 2px var(--ol-background-color);font-size:12px}.ol-attribution li{display:inline;list-style:none}.ol-attribution li:not(:last-child):after{content:" "}.ol-attribution img{max-height:2em;max-width:inherit;vertical-align:middle}.ol-attribution button{flex-shrink:0}.ol-attribution.ol-collapsed ul{display:none}.ol-attribution:not(.ol-collapsed){background:var(--ol-partial-background-color)}.ol-attribution.ol-uncollapsible{bottom:0;right:0;border-radius:4px 0 0}.ol-attribution.ol-uncollapsible img{margin-top:-0.2em;max-height:1.6em}.ol-attribution.ol-uncollapsible button{display:none}.ol-zoomslider{top:4.5em;left:.5em;height:200px}.ol-zoomslider button{position:relative;height:10px}.ol-touch .ol-zoomslider{top:5.5em}.ol-overviewmap{left:.5em;bottom:.5em}.ol-overviewmap.ol-uncollapsible{bottom:0;left:0;border-radius:0 4px 0 0}.ol-overviewmap .ol-overviewmap-map,.ol-overviewmap button{display:block}.ol-overviewmap .ol-overviewmap-map{border:1px solid var(--ol-subtle-foreground-color);height:150px;width:150px}.ol-overviewmap:not(.ol-collapsed) button{bottom:0;left:0;position:absolute}.ol-overviewmap.ol-collapsed .ol-overviewmap-map,.ol-overviewmap.ol-uncollapsible button{display:none}.ol-overviewmap:not(.ol-collapsed){background:var(--ol-subtle-background-color)}.ol-overviewmap-box{border:1.5px dotted var(--ol-subtle-foreground-color)}.ol-overviewmap .ol-overviewmap-box:hover{cursor:move}',"",{version:3,sources:["webpack://./../../common/temp/node_modules/.pnpm/ol@9.1.0/node_modules/ol/ol.css"],names:[],mappings:"AAAA,YAEE,4BAAA,CACA,qCAAA,CACA,uDAAA,CACA,wDAAA,CACA,8BAAA,CACA,qCAAA,CACA,yBAAA,CAGF,QACE,qBAAA,CACA,iBAAA,CACA,6CAAA,CACA,mDAAA,CAGF,mBACE,OAAA,CACA,SAAA,CACA,iBAAA,CAGF,eACE,6CAAA,CACA,iBAAA,CACA,UAAA,CACA,QAAA,CACA,WAAA,CACA,iBAAA,CAGF,qBACE,kDAAA,CACA,eAAA,CACA,gCAAA,CACA,cAAA,CACA,iBAAA,CACA,UAAA,CACA,0BAAA,CACA,mBAAA,CAGF,cACE,iBAAA,CACA,UAAA,CACA,QAAA,CAGF,oBACE,YAAA,CAGF,sBACE,SAAA,CACA,WAAA,CACA,2CAAA,CACA,WAAA,CACA,UAAA,CAGF,oBACE,iBAAA,CACA,WAAA,CACA,cAAA,CACA,UAAA,CACA,gCAAA,CACA,yLAAA,CAGF,eACE,iBAAA,CACA,cAAA,CACA,iBAAA,CACA,WAAA,CACA,gCAAA,CACA,yLAAA,CAGF,oBACE,iBAAA,CACA,WAAA,CACA,SAAA,CACA,qBAAA,CACA,2CAAA,CAGF,yBACE,kDAAA,CAGF,wBACE,2CAAA,CAGF,gBACE,YAAA,CAGF,8BAEE,0BAAA,CACA,wBAAA,CACA,qBAAA,CACA,gBAAA,CACA,yCAAA,CAGF,oBACE,SAAA,CACA,eAAA,CAGF,aACE,wBAAA,CAGF,eACE,6BAAA,CACA,wBAAA,CACA,qBAAA,CACA,gBAAA,CAGF,aACE,uBAAA,CACA,oBAAA,CACA,eAAA,CAGF,SACE,WAAA,CACA,mBAAA,CACA,gBAAA,CACA,WAAA,CAGF,YACE,iBAAA,CACA,kDAAA,CACA,iBAAA,CAGF,SACE,QAAA,CACA,SAAA,CAGF,WACE,QAAA,CACA,UAAA,CACA,mDAAA,CAGF,qBACE,SAAA,CACA,iBAAA,CACA,wDAAA,CAGF,gBACE,WAAA,CACA,SAAA,CAGF,gBACE,UAAA,CACA,QAAA,CAGF,mBACE,aAAA,CACA,UAAA,CACA,SAAA,CACA,uCAAA,CACA,gBAAA,CACA,oBAAA,CACA,iBAAA,CACA,iBAAA,CACA,cAAA,CACA,aAAA,CACA,gBAAA,CACA,2CAAA,CACA,WAAA,CACA,iBAAA,CAGF,qCACE,WAAA,CACA,SAAA,CAGF,uBACE,iBAAA,CAGF,YACE,aAAA,CACA,kBAAA,CACA,qBAAA,CAGF,6BACE,eAAA,CAGF,0BACE,SAAA,CAGF,kDAEE,oBAAA,CACA,mDAAA,CACA,gCAAA,CAGF,qBACE,yBAAA,CAGF,sBACE,yBAAA,CAGF,gBACE,gBAAA,CACA,WAAA,CACA,UAAA,CACA,4BAAA,CACA,YAAA,CACA,qBAAA,CACA,kBAAA,CAGF,kBACE,uCAAA,CACA,oBAAA,CAGF,mBACE,QAAA,CACA,gBAAA,CACA,gCAAA,CACA,8CAAA,CACA,cAAA,CAGF,mBACE,cAAA,CACA,eAAA,CAGF,0CACE,WAAA,CAGF,oBACE,cAAA,CACA,iBAAA,CACA,qBAAA,CAGF,uBACE,aAAA,CAGF,gCACE,YAAA,CAGF,mCACE,6CAAA,CAGF,iCACE,QAAA,CACA,OAAA,CACA,qBAAA,CAGF,qCACE,iBAAA,CACA,gBAAA,CAGF,wCACE,YAAA,CAGF,eACE,SAAA,CACA,SAAA,CACA,YAAA,CAGF,sBACE,iBAAA,CACA,WAAA,CAGF,yBACE,SAAA,CAGF,gBACE,SAAA,CACA,WAAA,CAGF,iCACE,QAAA,CACA,MAAA,CACA,uBAAA,CAGF,2DAEE,aAAA,CAGF,oCACE,kDAAA,CACA,YAAA,CACA,WAAA,CAGF,0CACE,QAAA,CACA,MAAA,CACA,iBAAA,CAGF,yFAEE,YAAA,CAGF,mCACE,4CAAA,CAGF,oBACE,qDAAA,CAGF,0CACE,WAAA",sourcesContent:[':root,\n:host {\n --ol-background-color: white;\n --ol-accent-background-color: #F5F5F5;\n --ol-subtle-background-color: rgba(128, 128, 128, 0.25);\n --ol-partial-background-color: rgba(255, 255, 255, 0.75);\n --ol-foreground-color: #333333;\n --ol-subtle-foreground-color: #666666;\n --ol-brand-color: #00AAFF;\n}\n\n.ol-box {\n box-sizing: border-box;\n border-radius: 2px;\n border: 1.5px solid var(--ol-background-color);\n background-color: var(--ol-partial-background-color);\n}\n\n.ol-mouse-position {\n top: 8px;\n right: 8px;\n position: absolute;\n}\n\n.ol-scale-line {\n background: var(--ol-partial-background-color);\n border-radius: 4px;\n bottom: 8px;\n left: 8px;\n padding: 2px;\n position: absolute;\n}\n\n.ol-scale-line-inner {\n border: 1px solid var(--ol-subtle-foreground-color);\n border-top: none;\n color: var(--ol-foreground-color);\n font-size: 10px;\n text-align: center;\n margin: 1px;\n will-change: contents, width;\n transition: all 0.25s;\n}\n\n.ol-scale-bar {\n position: absolute;\n bottom: 8px;\n left: 8px;\n}\n\n.ol-scale-bar-inner {\n display: flex;\n}\n\n.ol-scale-step-marker {\n width: 1px;\n height: 15px;\n background-color: var(--ol-foreground-color);\n float: right;\n z-index: 10;\n}\n\n.ol-scale-step-text {\n position: absolute;\n bottom: -5px;\n font-size: 10px;\n z-index: 11;\n color: var(--ol-foreground-color);\n text-shadow: -1.5px 0 var(--ol-partial-background-color), 0 1.5px var(--ol-partial-background-color), 1.5px 0 var(--ol-partial-background-color), 0 -1.5px var(--ol-partial-background-color);\n}\n\n.ol-scale-text {\n position: absolute;\n font-size: 12px;\n text-align: center;\n bottom: 25px;\n color: var(--ol-foreground-color);\n text-shadow: -1.5px 0 var(--ol-partial-background-color), 0 1.5px var(--ol-partial-background-color), 1.5px 0 var(--ol-partial-background-color), 0 -1.5px var(--ol-partial-background-color);\n}\n\n.ol-scale-singlebar {\n position: relative;\n height: 10px;\n z-index: 9;\n box-sizing: border-box;\n border: 1px solid var(--ol-foreground-color);\n}\n\n.ol-scale-singlebar-even {\n background-color: var(--ol-subtle-foreground-color);\n}\n\n.ol-scale-singlebar-odd {\n background-color: var(--ol-background-color);\n}\n\n.ol-unsupported {\n display: none;\n}\n\n.ol-viewport,\n.ol-unselectable {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n -webkit-tap-highlight-color: transparent;\n}\n\n.ol-viewport canvas {\n all: unset;\n overflow: hidden;\n}\n\n.ol-viewport {\n touch-action: pan-x pan-y;\n}\n\n.ol-selectable {\n -webkit-touch-callout: default;\n -webkit-user-select: text;\n -moz-user-select: text;\n user-select: text;\n}\n\n.ol-grabbing {\n cursor: -webkit-grabbing;\n cursor: -moz-grabbing;\n cursor: grabbing;\n}\n\n.ol-grab {\n cursor: move;\n cursor: -webkit-grab;\n cursor: -moz-grab;\n cursor: grab;\n}\n\n.ol-control {\n position: absolute;\n background-color: var(--ol-subtle-background-color);\n border-radius: 4px;\n}\n\n.ol-zoom {\n top: .5em;\n left: .5em;\n}\n\n.ol-rotate {\n top: .5em;\n right: .5em;\n transition: opacity .25s linear, visibility 0s linear;\n}\n\n.ol-rotate.ol-hidden {\n opacity: 0;\n visibility: hidden;\n transition: opacity .25s linear, visibility 0s linear .25s;\n}\n\n.ol-zoom-extent {\n top: 4.643em;\n left: .5em;\n}\n\n.ol-full-screen {\n right: .5em;\n top: .5em;\n}\n\n.ol-control button {\n display: block;\n margin: 1px;\n padding: 0;\n color: var(--ol-subtle-foreground-color);\n font-weight: bold;\n text-decoration: none;\n font-size: inherit;\n text-align: center;\n height: 1.375em;\n width: 1.375em;\n line-height: .4em;\n background-color: var(--ol-background-color);\n border: none;\n border-radius: 2px;\n}\n\n.ol-control button::-moz-focus-inner {\n border: none;\n padding: 0;\n}\n\n.ol-zoom-extent button {\n line-height: 1.4em;\n}\n\n.ol-compass {\n display: block;\n font-weight: normal;\n will-change: transform;\n}\n\n.ol-touch .ol-control button {\n font-size: 1.5em;\n}\n\n.ol-touch .ol-zoom-extent {\n top: 5.5em;\n}\n\n.ol-control button:hover,\n.ol-control button:focus {\n text-decoration: none;\n outline: 1px solid var(--ol-subtle-foreground-color);\n color: var(--ol-foreground-color);\n}\n\n.ol-zoom .ol-zoom-in {\n border-radius: 2px 2px 0 0;\n}\n\n.ol-zoom .ol-zoom-out {\n border-radius: 0 0 2px 2px;\n}\n\n.ol-attribution {\n text-align: right;\n bottom: .5em;\n right: .5em;\n max-width: calc(100% - 1.3em);\n display: flex;\n flex-flow: row-reverse;\n align-items: center;\n}\n\n.ol-attribution a {\n color: var(--ol-subtle-foreground-color);\n text-decoration: none;\n}\n\n.ol-attribution ul {\n margin: 0;\n padding: 1px .5em;\n color: var(--ol-foreground-color);\n text-shadow: 0 0 2px var(--ol-background-color);\n font-size: 12px;\n}\n\n.ol-attribution li {\n display: inline;\n list-style: none;\n}\n\n.ol-attribution li:not(:last-child):after {\n content: " ";\n}\n\n.ol-attribution img {\n max-height: 2em;\n max-width: inherit;\n vertical-align: middle;\n}\n\n.ol-attribution button {\n flex-shrink: 0;\n}\n\n.ol-attribution.ol-collapsed ul {\n display: none;\n}\n\n.ol-attribution:not(.ol-collapsed) {\n background: var(--ol-partial-background-color);\n}\n\n.ol-attribution.ol-uncollapsible {\n bottom: 0;\n right: 0;\n border-radius: 4px 0 0;\n}\n\n.ol-attribution.ol-uncollapsible img {\n margin-top: -.2em;\n max-height: 1.6em;\n}\n\n.ol-attribution.ol-uncollapsible button {\n display: none;\n}\n\n.ol-zoomslider {\n top: 4.5em;\n left: .5em;\n height: 200px;\n}\n\n.ol-zoomslider button {\n position: relative;\n height: 10px;\n}\n\n.ol-touch .ol-zoomslider {\n top: 5.5em;\n}\n\n.ol-overviewmap {\n left: 0.5em;\n bottom: 0.5em;\n}\n\n.ol-overviewmap.ol-uncollapsible {\n bottom: 0;\n left: 0;\n border-radius: 0 4px 0 0;\n}\n\n.ol-overviewmap .ol-overviewmap-map,\n.ol-overviewmap button {\n display: block;\n}\n\n.ol-overviewmap .ol-overviewmap-map {\n border: 1px solid var(--ol-subtle-foreground-color);\n height: 150px;\n width: 150px;\n}\n\n.ol-overviewmap:not(.ol-collapsed) button {\n bottom: 0;\n left: 0;\n position: absolute;\n}\n\n.ol-overviewmap.ol-collapsed .ol-overviewmap-map,\n.ol-overviewmap.ol-uncollapsible button {\n display: none;\n}\n\n.ol-overviewmap:not(.ol-collapsed) {\n background: var(--ol-subtle-background-color);\n}\n\n.ol-overviewmap-box {\n border: 1.5px dotted var(--ol-subtle-foreground-color);\n}\n\n.ol-overviewmap .ol-overviewmap-box:hover {\n cursor: move;\n}\n'],sourceRoot:""}]);const s=a},11355:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(60376),i=n.n(r),o=n(92696),a=n.n(o)()(i());a.push([e.id,".yarl__fullsize{height:100%;width:100%}.yarl__relative{position:relative}.yarl__portal{bottom:0;left:0;opacity:0;overflow:hidden;position:fixed;right:0;top:0;transition:opacity var(--yarl__fade_animation_duration, 0.25s) var(--yarl__fade_animation_timing_function, ease);z-index:var(--yarl__portal_zindex, 9999)}.yarl__portal_open{opacity:1}.yarl__container{background-color:var(--yarl__container_background_color, var(--yarl__color_backdrop, #000));bottom:0;left:0;outline:none;overflow:hidden;overscroll-behavior:var(--yarl__controller_overscroll_behavior, contain);position:absolute;right:0;top:0;touch-action:var(--yarl__controller_touch_action, none);-webkit-user-select:none;-moz-user-select:none;user-select:none}.yarl__carousel{align-content:center;align-items:stretch;display:flex;flex:0 0 auto;height:100%;justify-content:center;opacity:var(--yarl__pull_opacity, 1);transform:translate(var(--yarl__swipe_offset, 0), var(--yarl__pull_offset, 0));width:calc(100% + (var(--yarl__carousel_slides_count) - 1)*(100% + var(--yarl__carousel_spacing_px, 0)*1px + var(--yarl__carousel_spacing_percent, 0)*1%))}.yarl__carousel_with_slides{-moz-column-gap:calc(var(--yarl__carousel_spacing_px, 0)*1px + 100/(var(--yarl__carousel_slides_count)*100 + (var(--yarl__carousel_slides_count) - 1)*var(--yarl__carousel_spacing_percent, 0))*var(--yarl__carousel_spacing_percent, 0)*1%);column-gap:calc(var(--yarl__carousel_spacing_px, 0)*1px + 100/(var(--yarl__carousel_slides_count)*100 + (var(--yarl__carousel_slides_count) - 1)*var(--yarl__carousel_spacing_percent, 0))*var(--yarl__carousel_spacing_percent, 0)*1%)}.yarl__flex_center{align-content:center;align-items:center;display:flex;justify-content:center}.yarl__slide{flex:1;overflow:hidden;padding:calc(var(--yarl__carousel_padding_px, 0)*1px + 100/(var(--yarl__carousel_slides_count)*100 + (var(--yarl__carousel_slides_count) - 1)*var(--yarl__carousel_spacing_percent, 0))*var(--yarl__carousel_padding_percent, 0)*1%);position:relative}[dir=rtl] .yarl__slide{--yarl__direction:-1}.yarl__slide_image{max-height:100%;max-width:100%;-o-object-fit:contain;object-fit:contain;touch-action:var(--yarl__controller_touch_action, none);-moz-user-select:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}@media screen and (min-width: 800px){.yarl__slide_image{-webkit-backface-visibility:hidden;-webkit-transform:translateZ(0);-webkit-transform-style:preserve-3d}}.yarl__slide_image_cover{height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.yarl__slide_image_loading{opacity:0}.yarl__slide_placeholder{left:50%;line-height:0;position:absolute;top:50%;transform:translateX(-50%) translateY(-50%)}.yarl__slide_loading{animation:yarl__delayed_fadein 1s linear;color:var(--yarl__slide_icon_loading_color, var(--yarl__color_button, hsla(0, 0%, 100%, 0.8)))}.yarl__slide_loading line{animation:yarl__stroke_opacity 1s linear infinite}.yarl__slide_loading line:first-of-type{animation-delay:-1.875s}.yarl__slide_loading line:nth-of-type(2){animation-delay:-1.75s}.yarl__slide_loading line:nth-of-type(3){animation-delay:-1.625s}.yarl__slide_loading line:nth-of-type(4){animation-delay:-1.5s}.yarl__slide_loading line:nth-of-type(5){animation-delay:-1.375s}.yarl__slide_loading line:nth-of-type(6){animation-delay:-1.25s}.yarl__slide_loading line:nth-of-type(7){animation-delay:-1.125s}.yarl__slide_loading line:nth-of-type(8){animation-delay:-1s}.yarl__slide_error{color:var(--yarl__slide_icon_error_color, red);height:var(--yarl__slide_icon_error_size, 48px);width:var(--yarl__slide_icon_error_size, 48px)}@media(prefers-reduced-motion){.yarl__portal,.yarl__slide{transition:unset}.yarl__slide_loading,.yarl__slide_loading line{animation:unset}}.yarl__toolbar{bottom:auto;display:flex;justify-content:flex-end;left:auto;padding:var(--yarl__toolbar_padding, 8px);position:absolute;right:0;top:0}[dir=rtl] .yarl__toolbar{bottom:auto;left:0;right:auto;top:0}.yarl__icon{height:var(--yarl__icon_size, 32px);width:var(--yarl__icon_size, 32px)}.yarl__button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--yarl__button_background_color, transparent);border:var(--yarl__button_border, 0);color:var(--yarl__color_button, hsla(0, 0%, 100%, 0.8));cursor:pointer;filter:var(--yarl__button_filter, drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.8)));line-height:0;margin:var(--yarl__button_margin, 0);outline:none;padding:var(--yarl__button_padding, 8px);-webkit-tap-highlight-color:rgba(0,0,0,0)}.yarl__button:focus{color:var(--yarl__color_button_active, #fff)}.yarl__button:focus:not(:focus-visible){color:var(--yarl__color_button, hsla(0, 0%, 100%, 0.8))}.yarl__button:focus-visible{color:var(--yarl__color_button_active, #fff)}@media(hover: hover){.yarl__button:focus-visible:hover,.yarl__button:focus:hover,.yarl__button:hover{color:var(--yarl__color_button_active, #fff)}}.yarl__button:disabled{color:var(--yarl__color_button_disabled, hsla(0, 0%, 100%, 0.4));cursor:default}.yarl__navigation_next,.yarl__navigation_prev{padding:var(--yarl__navigation_button_padding, 24px 16px);position:absolute;top:50%;transform:translateY(-50%)}.yarl__navigation_prev{left:0}[dir=rtl] .yarl__navigation_prev{left:unset;right:0;transform:translateY(-50%) rotate(180deg)}.yarl__navigation_next{right:0}[dir=rtl] .yarl__navigation_next{left:0;right:unset;transform:translateY(-50%) rotate(180deg)}.yarl__no_scroll{height:100%;overflow:hidden;overscroll-behavior:none}@keyframes yarl__delayed_fadein{0%{opacity:0}80%{opacity:0}to{opacity:1}}@keyframes yarl__stroke_opacity{0%{stroke-opacity:1}to{stroke-opacity:.125}}","",{version:3,sources:["webpack://./../../common/temp/node_modules/.pnpm/yet-another-react-lightbox@3.18.0_react-dom@18.3.1_react@18.3.1/node_modules/yet-another-react-lightbox/dist/styles.css"],names:[],mappings:"AAAA,gBAAA,WAAA,CAAA,UAAA,CAAA,gBAAA,iBAAA,CAAA,cAAA,QAAA,CAAA,MAAA,CAAA,SAAA,CAAA,eAAA,CAAA,cAAA,CAAA,OAAA,CAAA,KAAA,CAAA,gHAAA,CAAA,wCAAA,CAAA,mBAAA,SAAA,CAAA,iBAAA,2FAAA,CAAA,QAAA,CAAA,MAAA,CAAA,YAAA,CAAA,eAAA,CAAA,wEAAA,CAAA,iBAAA,CAAA,OAAA,CAAA,KAAA,CAAA,uDAAA,CAAA,wBAAA,CAAA,qBAAA,CAAA,gBAAA,CAAA,gBAAA,oBAAA,CAAA,mBAAA,CAAA,YAAA,CAAA,aAAA,CAAA,WAAA,CAAA,sBAAA,CAAA,oCAAA,CAAA,8EAAA,CAAA,0JAAA,CAAA,4BAAA,4OAAA,CAAA,uOAAA,CAAA,mBAAA,oBAAA,CAAA,kBAAA,CAAA,YAAA,CAAA,sBAAA,CAAA,aAAA,MAAA,CAAA,eAAA,CAAA,oOAAA,CAAA,iBAAA,CAAA,uBAAA,oBAAA,CAAA,mBAAA,eAAA,CAAA,cAAA,CAAA,qBAAA,CAAA,kBAAA,CAAA,uDAAA,CAAA,qBAAA,CAAA,gBAAA,CAAA,wBAAA,CAAA,0BAAA,CAAA,qCAAA,mBAAA,kCAAA,CAAA,+BAAA,CAAA,mCAAA,CAAA,CAAA,yBAAA,WAAA,CAAA,mBAAA,CAAA,gBAAA,CAAA,UAAA,CAAA,2BAAA,SAAA,CAAA,yBAAA,QAAA,CAAA,aAAA,CAAA,iBAAA,CAAA,OAAA,CAAA,2CAAA,CAAA,qBAAA,wCAAA,CAAA,8FAAA,CAAA,0BAAA,iDAAA,CAAA,wCAAA,uBAAA,CAAA,yCAAA,sBAAA,CAAA,yCAAA,uBAAA,CAAA,yCAAA,qBAAA,CAAA,yCAAA,uBAAA,CAAA,yCAAA,sBAAA,CAAA,yCAAA,uBAAA,CAAA,yCAAA,mBAAA,CAAA,mBAAA,8CAAA,CAAA,+CAAA,CAAA,8CAAA,CAAA,+BAAA,2BAAA,gBAAA,CAAA,+CAAA,eAAA,CAAA,CAAA,eAAA,WAAA,CAAA,YAAA,CAAA,wBAAA,CAAA,SAAA,CAAA,yCAAA,CAAA,iBAAA,CAAA,OAAA,CAAA,KAAA,CAAA,yBAAA,WAAA,CAAA,MAAA,CAAA,UAAA,CAAA,KAAA,CAAA,YAAA,mCAAA,CAAA,kCAAA,CAAA,cAAA,uBAAA,CAAA,oBAAA,CAAA,eAAA,CAAA,kEAAA,CAAA,oCAAA,CAAA,uDAAA,CAAA,cAAA,CAAA,8EAAA,CAAA,aAAA,CAAA,oCAAA,CAAA,YAAA,CAAA,wCAAA,CAAA,yCAAA,CAAA,oBAAA,4CAAA,CAAA,wCAAA,uDAAA,CAAA,4BAAA,4CAAA,CAAA,qBAAA,gFAAA,4CAAA,CAAA,CAAA,uBAAA,gEAAA,CAAA,cAAA,CAAA,8CAAA,yDAAA,CAAA,iBAAA,CAAA,OAAA,CAAA,0BAAA,CAAA,uBAAA,MAAA,CAAA,iCAAA,UAAA,CAAA,OAAA,CAAA,yCAAA,CAAA,uBAAA,OAAA,CAAA,iCAAA,MAAA,CAAA,WAAA,CAAA,yCAAA,CAAA,iBAAA,WAAA,CAAA,eAAA,CAAA,wBAAA,CAAA,gCAAA,GAAA,SAAA,CAAA,IAAA,SAAA,CAAA,GAAA,SAAA,CAAA,CAAA,gCAAA,GAAA,gBAAA,CAAA,GAAA,mBAAA,CAAA",sourcesContent:[".yarl__fullsize{height:100%;width:100%}.yarl__relative{position:relative}.yarl__portal{bottom:0;left:0;opacity:0;overflow:hidden;position:fixed;right:0;top:0;transition:opacity var(--yarl__fade_animation_duration,.25s) var(--yarl__fade_animation_timing_function,ease);z-index:var(--yarl__portal_zindex,9999)}.yarl__portal_open{opacity:1}.yarl__container{background-color:var(--yarl__container_background_color,var(--yarl__color_backdrop,#000));bottom:0;left:0;outline:none;overflow:hidden;overscroll-behavior:var(--yarl__controller_overscroll_behavior,contain);position:absolute;right:0;top:0;touch-action:var(--yarl__controller_touch_action,none);-webkit-user-select:none;-moz-user-select:none;user-select:none}.yarl__carousel{align-content:center;align-items:stretch;display:flex;flex:0 0 auto;height:100%;justify-content:center;opacity:var(--yarl__pull_opacity,1);transform:translate(var(--yarl__swipe_offset,0),var(--yarl__pull_offset,0));width:calc(100% + (var(--yarl__carousel_slides_count) - 1)*(100% + var(--yarl__carousel_spacing_px, 0)*1px + var(--yarl__carousel_spacing_percent, 0)*1%))}.yarl__carousel_with_slides{-moz-column-gap:calc(var(--yarl__carousel_spacing_px, 0)*1px + 100/(var(--yarl__carousel_slides_count)*100 + (var(--yarl__carousel_slides_count) - 1)*var(--yarl__carousel_spacing_percent, 0))*var(--yarl__carousel_spacing_percent, 0)*1%);column-gap:calc(var(--yarl__carousel_spacing_px, 0)*1px + 100/(var(--yarl__carousel_slides_count)*100 + (var(--yarl__carousel_slides_count) - 1)*var(--yarl__carousel_spacing_percent, 0))*var(--yarl__carousel_spacing_percent, 0)*1%)}.yarl__flex_center{align-content:center;align-items:center;display:flex;justify-content:center}.yarl__slide{flex:1;overflow:hidden;padding:calc(var(--yarl__carousel_padding_px, 0)*1px + 100/(var(--yarl__carousel_slides_count)*100 + (var(--yarl__carousel_slides_count) - 1)*var(--yarl__carousel_spacing_percent, 0))*var(--yarl__carousel_padding_percent, 0)*1%);position:relative}[dir=rtl] .yarl__slide{--yarl__direction:-1}.yarl__slide_image{max-height:100%;max-width:100%;-o-object-fit:contain;object-fit:contain;touch-action:var(--yarl__controller_touch_action,none);-moz-user-select:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}@media screen and (min-width:800px){.yarl__slide_image{-webkit-backface-visibility:hidden;-webkit-transform:translateZ(0);-webkit-transform-style:preserve-3d}}.yarl__slide_image_cover{height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.yarl__slide_image_loading{opacity:0}.yarl__slide_placeholder{left:50%;line-height:0;position:absolute;top:50%;transform:translateX(-50%) translateY(-50%)}.yarl__slide_loading{animation:yarl__delayed_fadein 1s linear;color:var(--yarl__slide_icon_loading_color,var(--yarl__color_button,hsla(0,0%,100%,.8)))}.yarl__slide_loading line{animation:yarl__stroke_opacity 1s linear infinite}.yarl__slide_loading line:first-of-type{animation-delay:-1.875s}.yarl__slide_loading line:nth-of-type(2){animation-delay:-1.75s}.yarl__slide_loading line:nth-of-type(3){animation-delay:-1.625s}.yarl__slide_loading line:nth-of-type(4){animation-delay:-1.5s}.yarl__slide_loading line:nth-of-type(5){animation-delay:-1.375s}.yarl__slide_loading line:nth-of-type(6){animation-delay:-1.25s}.yarl__slide_loading line:nth-of-type(7){animation-delay:-1.125s}.yarl__slide_loading line:nth-of-type(8){animation-delay:-1s}.yarl__slide_error{color:var(--yarl__slide_icon_error_color,red);height:var(--yarl__slide_icon_error_size,48px);width:var(--yarl__slide_icon_error_size,48px)}@media (prefers-reduced-motion){.yarl__portal,.yarl__slide{transition:unset}.yarl__slide_loading,.yarl__slide_loading line{animation:unset}}.yarl__toolbar{bottom:auto;display:flex;justify-content:flex-end;left:auto;padding:var(--yarl__toolbar_padding,8px);position:absolute;right:0;top:0}[dir=rtl] .yarl__toolbar{bottom:auto;left:0;right:auto;top:0}.yarl__icon{height:var(--yarl__icon_size,32px);width:var(--yarl__icon_size,32px)}.yarl__button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--yarl__button_background_color,transparent);border:var(--yarl__button_border,0);color:var(--yarl__color_button,hsla(0,0%,100%,.8));cursor:pointer;filter:var(--yarl__button_filter,drop-shadow(2px 2px 2px rgba(0,0,0,.8)));line-height:0;margin:var(--yarl__button_margin,0);outline:none;padding:var(--yarl__button_padding,8px);-webkit-tap-highlight-color:transparent}.yarl__button:focus{color:var(--yarl__color_button_active,#fff)}.yarl__button:focus:not(:focus-visible){color:var(--yarl__color_button,hsla(0,0%,100%,.8))}.yarl__button:focus-visible{color:var(--yarl__color_button_active,#fff)}@media (hover:hover){.yarl__button:focus-visible:hover,.yarl__button:focus:hover,.yarl__button:hover{color:var(--yarl__color_button_active,#fff)}}.yarl__button:disabled{color:var(--yarl__color_button_disabled,hsla(0,0%,100%,.4));cursor:default}.yarl__navigation_next,.yarl__navigation_prev{padding:var(--yarl__navigation_button_padding,24px 16px);position:absolute;top:50%;transform:translateY(-50%)}.yarl__navigation_prev{left:0}[dir=rtl] .yarl__navigation_prev{left:unset;right:0;transform:translateY(-50%) rotate(180deg)}.yarl__navigation_next{right:0}[dir=rtl] .yarl__navigation_next{left:0;right:unset;transform:translateY(-50%) rotate(180deg)}.yarl__no_scroll{height:100%;overflow:hidden;overscroll-behavior:none}@keyframes yarl__delayed_fadein{0%{opacity:0}80%{opacity:0}to{opacity:1}}@keyframes yarl__stroke_opacity{0%{stroke-opacity:1}to{stroke-opacity:.125}}"],sourceRoot:""}]);const s=a},3836:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(60376),i=n.n(r),o=n(92696),a=n.n(o)()(i());a.push([e.id,".keyboard-focused{border:revert !important}[class*=mapContainer].keyboard-focused{border:#000 solid 2px !important}.geoview-map{position:relative !important}.ol-overlaycontainer-stopevent .ol-overviewmap:not(:last-child){display:none}@media(max-width: 960px){.ol-overviewmap{display:none}}.guideBox h3 img{vertical-align:bottom}.guideBox h4 img{vertical-align:bottom}.guideBox p img{vertical-align:bottom}","",{version:3,sources:["webpack://./src/ui/style/style.css"],names:[],mappings:"AAGA,kBACE,wBAAA,CAIF,uCACE,gCAAA,CAGF,aACE,4BAAA,CAOF,gEACE,YAAA,CAEF,yBACE,gBACE,YAAA,CAAA,CAKJ,iBACE,qBAAA,CAEF,iBACE,qBAAA,CAEF,gBACE,qBAAA",sourcesContent:["/*\nHold viewer specific css not inside theme\n*/\n.keyboard-focused {\n border: revert !important;\n}\n\n/* Work around to have border map container focus */\n[class*='mapContainer'].keyboard-focused {\n border: #000 solid 2px !important;\n}\n\n.geoview-map {\n position: relative !important;\n}\n\n/* FIX: fix issue when overview map is added on resize.\n This is a patch and would better resolve managing the screen resize event and trap the control creation.\n Because it would not happen very often in production it may be a suitable patch. \n*/\n.ol-overlaycontainer-stopevent .ol-overviewmap:not(:last-child) {\n display: none;\n}\n@media (max-width: 960px) {\n .ol-overviewmap {\n display: none;\n }\n}\n\n/* specifiv style for icon alignement in guide component */\n.guideBox h3 img {\n vertical-align: bottom;\n}\n.guideBox h4 img {\n vertical-align: bottom;\n}\n.guideBox p img {\n vertical-align: bottom;\n}\n"],sourceRoot:""}]);const s=a},98189:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(60376),i=n.n(r),o=n(92696),a=n.n(o)()(i());a.push([e.id,".ol-scale-line-inner{display:none}","",{version:3,sources:["webpack://./src/ui/style/vendor.css"],names:[],mappings:"AAOA,qBACE,YAAA",sourcesContent:["/*\nHold all third party libraries override\n*/\n\n/*\nOpenLayers\n*/\n.ol-scale-line-inner {\n display: none;\n}"],sourceRoot:""}]);const s=a},92696:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,i,o){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var s=0;s0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=o),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),t.push(u))}},t}},19811:e=>{"use strict";e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},60376:e=>{"use strict";e.exports=function(e){var t=e[1],n=e[3];if(!n)return t;if("function"==typeof btoa){var r=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),i="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),o="/*# ".concat(i," */");return[t].concat([o]).join("\n")}return[t].join("\n")}},78185:function(e){e.exports=function(){"use strict";var e=1e3,t=6e4,n=36e5,r="millisecond",i="second",o="minute",a="hour",s="day",l="week",c="month",u="quarter",d="year",h="date",p="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},y=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},v={s:y,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+y(r,2,"0")+":"+y(i,2,"0")},m:function e(t,n){if(t.date()1)return e(a[0])}else{var s=t.name;w[s]=t,i=s}return!r&&i&&(b=i),i||!r&&b},C=function(e,t){if(A(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new _(n)},E=v;E.l=S,E.i=A,E.w=function(e,t){return C(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var _=function(){function m(e){this.$L=S(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var y=m.prototype;return y.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(E.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(f);if(r){var i=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(t)}(e),this.init()},y.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},y.$utils=function(){return E},y.isValid=function(){return!(this.$d.toString()===p)},y.isSame=function(e,t){var n=C(e);return this.startOf(t)<=n&&n<=this.endOf(t)},y.isAfter=function(e,t){return C(e)68?1900:2e3)},s=function(e){return function(t){this[e]=+t}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],c=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},u=function(e,t){var n,r=o.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?"pm":"PM");return n},d={A:[i,function(e){this.afternoon=u(e,!1)}],a:[i,function(e){this.afternoon=u(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[n,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[r,s("seconds")],ss:[r,s("seconds")],m:[r,s("minutes")],mm:[r,s("minutes")],H:[r,s("hours")],h:[r,s("hours")],HH:[r,s("hours")],hh:[r,s("hours")],D:[r,s("day")],DD:[n,s("day")],Do:[i,function(e){var t=o.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],M:[r,s("month")],MM:[n,s("month")],MMM:[i,function(e){var t=c("months"),n=(c("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[i,function(e){var t=c("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,s("year")],YY:[n,function(e){this.year=a(e)}],YYYY:[/\d{4}/,s("year")],Z:l,ZZ:l};function h(n){var r,i;r=n,i=o&&o.formats;for(var a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var o=r&&r.toUpperCase();return n||i[r]||e[r]||i[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=a.length,l=0;l-1)return new Date(("X"===t?1e3:1)*e);var r=h(t)(e),i=r.year,o=r.month,a=r.day,s=r.hours,l=r.minutes,c=r.seconds,u=r.milliseconds,d=r.zone,p=new Date,f=a||(i||o?1:p.getDate()),g=i||p.getFullYear(),m=0;i&&!o||(m=o>0?o-1:p.getMonth());var y=s||0,v=l||0,b=c||0,w=u||0;return d?new Date(Date.UTC(g,m,f,y,v,b,w+60*d.offset*1e3)):n?new Date(Date.UTC(g,m,f,y,v,b,w)):new Date(g,m,f,y,v,b,w)}catch(e){return new Date("")}}(t,s,r),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(s)&&(this.$d=new Date("")),o={}}else if(s instanceof Array)for(var p=s.length,f=1;f<=p;f+=1){a[1]=s[f-1];var g=n.apply(this,a);if(g.isValid()){this.$d=g.$d,this.$L=g.$L,this.init();break}f===p&&(this.$d=new Date(""))}else i.call(this,e)}}}()},75274:function(e){e.exports=function(){"use strict";var e,t,n=1e3,r=6e4,i=36e5,o=864e5,a=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,s=31536e6,l=2628e6,c=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,u={years:s,months:l,days:o,hours:i,minutes:r,seconds:n,milliseconds:1,weeks:6048e5},d=function(e){return e instanceof v},h=function(e,t,n){return new v(e,n,t.$l)},p=function(e){return t.p(e)+"s"},f=function(e){return e<0},g=function(e){return f(e)?Math.ceil(e):Math.floor(e)},m=function(e){return Math.abs(e)},y=function(e,t){return e?f(e)?{negative:!0,format:""+m(e)+t}:{negative:!1,format:""+e+t}:{negative:!1,format:""}},v=function(){function f(e,t,n){var r=this;if(this.$d={},this.$l=n,void 0===e&&(this.$ms=0,this.parseFromMilliseconds()),t)return h(e*u[p(t)],this);if("number"==typeof e)return this.$ms=e,this.parseFromMilliseconds(),this;if("object"==typeof e)return Object.keys(e).forEach((function(t){r.$d[p(t)]=e[t]})),this.calMilliseconds(),this;if("string"==typeof e){var i=e.match(c);if(i){var o=i.slice(2).map((function(e){return null!=e?Number(e):0}));return this.$d.years=o[0],this.$d.months=o[1],this.$d.weeks=o[2],this.$d.days=o[3],this.$d.hours=o[4],this.$d.minutes=o[5],this.$d.seconds=o[6],this.calMilliseconds(),this}}return this}var m=f.prototype;return m.calMilliseconds=function(){var e=this;this.$ms=Object.keys(this.$d).reduce((function(t,n){return t+(e.$d[n]||0)*u[n]}),0)},m.parseFromMilliseconds=function(){var e=this.$ms;this.$d.years=g(e/s),e%=s,this.$d.months=g(e/l),e%=l,this.$d.days=g(e/o),e%=o,this.$d.hours=g(e/i),e%=i,this.$d.minutes=g(e/r),e%=r,this.$d.seconds=g(e/n),e%=n,this.$d.milliseconds=e},m.toISOString=function(){var e=y(this.$d.years,"Y"),t=y(this.$d.months,"M"),n=+this.$d.days||0;this.$d.weeks&&(n+=7*this.$d.weeks);var r=y(n,"D"),i=y(this.$d.hours,"H"),o=y(this.$d.minutes,"M"),a=this.$d.seconds||0;this.$d.milliseconds&&(a+=this.$d.milliseconds/1e3,a=Math.round(1e3*a)/1e3);var s=y(a,"S"),l=e.negative||t.negative||r.negative||i.negative||o.negative||s.negative,c=i.format||o.format||s.format?"T":"",u=(l?"-":"")+"P"+e.format+t.format+r.format+c+i.format+o.format+s.format;return"P"===u||"-P"===u?"P0D":u},m.toJSON=function(){return this.toISOString()},m.format=function(e){var n=e||"YYYY-MM-DDTHH:mm:ss",r={Y:this.$d.years,YY:t.s(this.$d.years,2,"0"),YYYY:t.s(this.$d.years,4,"0"),M:this.$d.months,MM:t.s(this.$d.months,2,"0"),D:this.$d.days,DD:t.s(this.$d.days,2,"0"),H:this.$d.hours,HH:t.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:t.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:t.s(this.$d.seconds,2,"0"),SSS:t.s(this.$d.milliseconds,3,"0")};return n.replace(a,(function(e,t){return t||String(r[e])}))},m.as=function(e){return this.$ms/u[p(e)]},m.get=function(e){var t=this.$ms,n=p(e);return"milliseconds"===n?t%=1e3:t="weeks"===n?g(t/u[n]):this.$d[n],t||0},m.add=function(e,t,n){var r;return r=t?e*u[p(t)]:d(e)?e.$ms:h(e,this).$ms,h(this.$ms+r*(n?-1:1),this)},m.subtract=function(e,t){return this.add(e,t,!0)},m.locale=function(e){var t=this.clone();return t.$l=e,t},m.clone=function(){return h(this.$ms,this)},m.humanize=function(t){return e().add(this.$ms,"ms").locale(this.$l).fromNow(!t)},m.valueOf=function(){return this.asMilliseconds()},m.milliseconds=function(){return this.get("milliseconds")},m.asMilliseconds=function(){return this.as("milliseconds")},m.seconds=function(){return this.get("seconds")},m.asSeconds=function(){return this.as("seconds")},m.minutes=function(){return this.get("minutes")},m.asMinutes=function(){return this.as("minutes")},m.hours=function(){return this.get("hours")},m.asHours=function(){return this.as("hours")},m.days=function(){return this.get("days")},m.asDays=function(){return this.as("days")},m.weeks=function(){return this.get("weeks")},m.asWeeks=function(){return this.as("weeks")},m.months=function(){return this.get("months")},m.asMonths=function(){return this.as("months")},m.years=function(){return this.get("years")},m.asYears=function(){return this.as("years")},f}(),b=function(e,t,n){return e.add(t.years()*n,"y").add(t.months()*n,"M").add(t.days()*n,"d").add(t.hours()*n,"h").add(t.minutes()*n,"m").add(t.seconds()*n,"s").add(t.milliseconds()*n,"ms")};return function(n,r,i){e=i,t=i().$utils(),i.duration=function(e,t){var n=i.locale();return h(e,{$l:n},t)},i.isDuration=d;var o=r.prototype.add,a=r.prototype.subtract;r.prototype.add=function(e,t){return d(e)?b(this,e,1):o.bind(this)(e,t)},r.prototype.subtract=function(e,t){return d(e)?b(this,e,-1):a.bind(this)(e,t)}}}()},45816:function(e){e.exports=function(){"use strict";return function(e,t,n){t.prototype.isBetween=function(e,t,r,i){var o=n(e),a=n(t),s="("===(i=i||"()")[0],l=")"===i[1];return(s?this.isAfter(o,r):!this.isBefore(o,r))&&(l?this.isBefore(a,r):!this.isAfter(a,r))||(s?this.isBefore(o,r):!this.isAfter(o,r))&&(l?this.isAfter(a,r):!this.isBefore(a,r))}}}()},13246:function(e){e.exports=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(t,n,r){var i=n.prototype,o=i.format;r.en.formats=e,i.format=function(t){void 0===t&&(t="YYYY-MM-DDTHH:mm:ssZ");var n=this.$locale().formats,r=function(t,n){return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,r,i){var o=i&&i.toUpperCase();return r||n[i]||e[i]||n[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))}(t,void 0===n?{}:n);return o.call(this,r)}}}()},31770:function(e){e.exports=function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,i,o){var a=i.prototype;o.utc=function(e){return new i({date:e,utc:!0,args:arguments})},a.utc=function(t){var n=o(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},a.local=function(){return o(this.toDate(),{locale:this.$L,utc:!1})};var s=a.parse;a.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),s.call(this,e)};var l=a.init;a.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else l.call(this)};var c=a.utcOffset;a.utcOffset=function(r,i){var o=this.$utils().u;if(o(r))return this.$u?0:o(this.$offset)?c.call(this):this.$offset;if("string"==typeof r&&(r=function(e){void 0===e&&(e="");var r=e.match(t);if(!r)return null;var i=(""+r[0]).match(n)||["-",0,0],o=i[0],a=60*+i[1]+ +i[2];return 0===a?0:"+"===o?a:-a}(r),null===r))return this;var a=Math.abs(r)<=16?60*r:r,s=this;if(i)return s.$offset=a,s.$u=0===r,s;if(0!==r){var l=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(s=this.local().add(a+l,e)).$offset=a,s.$x.$localOffset=l}else s=this.utc();return s};var u=a.format;a.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return u.call(this,t)},a.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},a.isUTC=function(){return!!this.$u},a.toISOString=function(){return this.toDate().toISOString()},a.toString=function(){return this.toDate().toUTCString()};var d=a.toDate;a.toDate=function(e){return"s"===e&&this.$offset?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)};var h=a.diff;a.diff=function(e,t,n){if(e&&this.$u===e.$u)return h.call(this,e,t,n);var r=this.local(),i=o(e).local();return h.call(r,i,t,n)}}}()},41294:function(e){e.exports=function(){"use strict";var e="week",t="year";return function(n,r,i){var o=r.prototype;o.week=function(n){if(void 0===n&&(n=null),null!==n)return this.add(7*(n-this.week()),"day");var r=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var o=i(this).startOf(t).add(1,t).date(r),a=i(this).endOf(e);if(o.isBefore(a))return 1}var s=i(this).startOf(t).date(r).startOf(e).subtract(1,"millisecond"),l=this.diff(s,e,!0);return l<0?i(this).startOf("week").week():Math.ceil(l)},o.weeks=function(e){return void 0===e&&(e=null),this.week(e)}}}()},29221:e=>{"use strict";var t="%[a-f0-9]{2}",n=new RegExp("("+t+")|([^%]+?)","gi"),r=new RegExp("("+t+")+","gi");function i(e,t){try{return[decodeURIComponent(e.join(""))]}catch(e){}if(1===e.length)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],i(n),i(r))}function o(e){try{return decodeURIComponent(e)}catch(o){for(var t=e.match(n)||[],r=1;r{"use strict";var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===n}(e)}(e)};var n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function i(e,t,n){return e.concat(t).map((function(e){return r(e,n)}))}function o(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function a(e,t){try{return t in e}catch(e){return!1}}function s(e,t,n){var i={};return n.isMergeableObject(e)&&o(e).forEach((function(t){i[t]=r(e[t],n)})),o(t).forEach((function(o){(function(e,t){return a(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,o)||(a(e,o)&&n.isMergeableObject(t[o])?i[o]=function(e,t){if(!t.customMerge)return l;var n=t.customMerge(e);return"function"==typeof n?n:l}(o,n)(e[o],t[o],n):i[o]=r(t[o],n))})),i}function l(e,n,o){(o=o||{}).arrayMerge=o.arrayMerge||i,o.isMergeableObject=o.isMergeableObject||t,o.cloneUnlessOtherwiseSpecified=r;var a=Array.isArray(n);return a===Array.isArray(e)?a?o.arrayMerge(e,n,o):s(e,n,o):r(n,o)}l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return l(e,n,t)}),{})};var c=l;e.exports=c},88359:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.attributeNames=t.elementNames=void 0,t.elementNames=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map((function(e){return[e.toLowerCase(),e]}))),t.attributeNames=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map((function(e){return[e.toLowerCase(),e]})))},56963:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n");case s.Comment:return function(e){return"\x3c!--".concat(e.data,"--\x3e")}(e);case s.CDATA:return function(e){return"")}(e);case s.Script:case s.Style:case s.Tag:return function(e,t){var n;"foreign"===t.xmlMode&&(e.name=null!==(n=c.elementNames.get(e.name))&&void 0!==n?n:e.name,e.parent&&g.has(e.parent.name)&&(t=r(r({},t),{xmlMode:!1})));!t.xmlMode&&m.has(e.name)&&(t=r(r({},t),{xmlMode:"foreign"}));var i="<".concat(e.name),o=function(e,t){var n;if(e){var r=!1===(null!==(n=t.encodeEntities)&&void 0!==n?n:t.decodeEntities)?d:t.xmlMode||"utf8"!==t.encodeEntities?l.encodeXML:l.escapeAttribute;return Object.keys(e).map((function(n){var i,o,a=null!==(i=e[n])&&void 0!==i?i:"";return"foreign"===t.xmlMode&&(n=null!==(o=c.attributeNames.get(n))&&void 0!==o?o:n),t.emptyAttrs||t.xmlMode||""!==a?"".concat(n,'="').concat(r(a),'"'):n})).join(" ")}}(e.attribs,t);o&&(i+=" ".concat(o));0===e.children.length&&(t.xmlMode?!1!==t.selfClosingTags:t.selfClosingTags&&h.has(e.name))?(t.xmlMode||(i+=" "),i+="/>"):(i+=">",e.children.length>0&&(i+=p(e.children,t)),!t.xmlMode&&h.has(e.name)||(i+="")));return i}(e,t);case s.Text:return function(e,t){var n,r=e.data||"";!1===(null!==(n=t.encodeEntities)&&void 0!==n?n:t.decodeEntities)||!t.xmlMode&&e.parent&&u.has(e.parent.name)||(r=t.xmlMode||"utf8"!==t.encodeEntities?(0,l.encodeXML)(r):(0,l.escapeText)(r));return r}(e,t)}}t.render=p,t.default=p;var g=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),m=new Set(["svg","math"])},54718:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(n=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===n.Tag||e.type===n.Script||e.type===n.Style},t.Root=n.Root,t.Text=n.Text,t.Directive=n.Directive,t.Comment=n.Comment,t.Script=n.Script,t.Style=n.Style,t.Tag=n.Tag,t.CDATA=n.CDATA,t.Doctype=n.Doctype},62679:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var o=n(54718),a=n(56679);i(n(56679),t);var s=/\s+/g,l={normalizeWhitespace:!1,withStartIndices:!1,withEndIndices:!1,xmlMode:!1},c=function(){function e(e,t,n){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=l),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:l,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?o.ElementType.Tag:void 0,r=new a.Element(e,t,void 0,n);this.addNode(r),this.tagStack.push(r)},e.prototype.ontext=function(e){var t=this.options.normalizeWhitespace,n=this.lastNode;if(n&&n.type===o.ElementType.Text)t?n.data=(n.data+e).replace(s," "):n.data+=e,this.options.withEndIndices&&(n.endIndex=this.parser.endIndex);else{t&&(e=e.replace(s," "));var r=new a.Text(e);this.addNode(r),this.lastNode=r}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===o.ElementType.Comment)this.lastNode.data+=e;else{var t=new a.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new a.Text(""),t=new a.NodeWithChildren(o.ElementType.CDATA,[e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new a.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=c,t.default=c},56679:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(l);t.NodeWithChildren=p;var f=function(e){function t(t){return e.call(this,a.ElementType.Root,t)||this}return i(t,e),t}(p);t.Document=f;var g=function(e){function t(t,n,r,i){void 0===r&&(r=[]),void 0===i&&(i="script"===t?a.ElementType.Script:"style"===t?a.ElementType.Style:a.ElementType.Tag);var o=e.call(this,i,r)||this;return o.name=t,o.attribs=n,o}return i(t,e),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var n,r;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(r=e["x-attribsPrefix"])||void 0===r?void 0:r[t]}}))},enumerable:!1,configurable:!0}),t}(p);function m(e){return(0,a.isTag)(e)}function y(e){return e.type===a.ElementType.CDATA}function v(e){return e.type===a.ElementType.Text}function b(e){return e.type===a.ElementType.Comment}function w(e){return e.type===a.ElementType.Directive}function x(e){return e.type===a.ElementType.Root}function A(e,t){var n;if(void 0===t&&(t=!1),v(e))n=new u(e.data);else if(b(e))n=new d(e.data);else if(m(e)){var r=t?S(e.children):[],i=new g(e.name,o({},e.attribs),r);r.forEach((function(e){return e.parent=i})),null!=e.namespace&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=o({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=o({},e["x-attribsPrefix"])),n=i}else if(y(e)){r=t?S(e.children):[];var s=new p(a.ElementType.CDATA,r);r.forEach((function(e){return e.parent=s})),n=s}else if(x(e)){r=t?S(e.children):[];var l=new f(r);r.forEach((function(e){return e.parent=l})),e["x-mode"]&&(l["x-mode"]=e["x-mode"]),n=l}else{if(!w(e))throw new Error("Not implemented yet: ".concat(e.type));var c=new h(e.name,e.data);null!=e["x-name"]&&(c["x-name"]=e["x-name"],c["x-publicId"]=e["x-publicId"],c["x-systemId"]=e["x-systemId"]),n=c}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function S(e){for(var t=e.map((function(e){return A(e,!0)})),n=1;n0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(s);t.NodeWithChildren=h;var p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.CDATA,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(h);t.CDATA=p;var f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Root,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(h);t.Document=f;var g=function(e){function t(t,n,r,i){void 0===r&&(r=[]),void 0===i&&(i="script"===t?a.ElementType.Script:"style"===t?a.ElementType.Style:a.ElementType.Tag);var o=e.call(this,r)||this;return o.name=t,o.attribs=n,o.type=i,o}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var n,r;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(r=e["x-attribsPrefix"])||void 0===r?void 0:r[t]}}))},enumerable:!1,configurable:!0}),t}(h);function m(e){return(0,a.isTag)(e)}function y(e){return e.type===a.ElementType.CDATA}function v(e){return e.type===a.ElementType.Text}function b(e){return e.type===a.ElementType.Comment}function w(e){return e.type===a.ElementType.Directive}function x(e){return e.type===a.ElementType.Root}function A(e,t){var n;if(void 0===t&&(t=!1),v(e))n=new c(e.data);else if(b(e))n=new u(e.data);else if(m(e)){var r=t?S(e.children):[],i=new g(e.name,o({},e.attribs),r);r.forEach((function(e){return e.parent=i})),null!=e.namespace&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=o({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=o({},e["x-attribsPrefix"])),n=i}else if(y(e)){r=t?S(e.children):[];var a=new p(r);r.forEach((function(e){return e.parent=a})),n=a}else if(x(e)){r=t?S(e.children):[];var s=new f(r);r.forEach((function(e){return e.parent=s})),e["x-mode"]&&(s["x-mode"]=e["x-mode"]),n=s}else{if(!w(e))throw new Error("Not implemented yet: ".concat(e.type));var l=new d(e.name,e.data);null!=e["x-name"]&&(l["x-name"]=e["x-name"],l["x-publicId"]=e["x-publicId"],l["x-systemId"]=e["x-systemId"]),n=l}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function S(e){for(var t=e.map((function(e){return A(e,!0)})),n=1;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFeed=void 0;var r=n(11662),i=n(10944);t.getFeed=function(e){var t=l(d,e);return t?"feed"===t.name?function(e){var t,n=e.children,r={type:"atom",items:(0,i.getElementsByTagName)("entry",n).map((function(e){var t,n=e.children,r={media:s(n)};u(r,"id","id",n),u(r,"title","title",n);var i=null===(t=l("link",n))||void 0===t?void 0:t.attribs.href;i&&(r.link=i);var o=c("summary",n)||c("content",n);o&&(r.description=o);var a=c("updated",n);return a&&(r.pubDate=new Date(a)),r}))};u(r,"id","id",n),u(r,"title","title",n);var o=null===(t=l("link",n))||void 0===t?void 0:t.attribs.href;o&&(r.link=o);u(r,"description","subtitle",n);var a=c("updated",n);a&&(r.updated=new Date(a));return u(r,"author","email",n,!0),r}(t):function(e){var t,n,r=null!==(n=null===(t=l("channel",e.children))||void 0===t?void 0:t.children)&&void 0!==n?n:[],o={type:e.name.substr(0,3),id:"",items:(0,i.getElementsByTagName)("item",e.children).map((function(e){var t=e.children,n={media:s(t)};u(n,"id","guid",t),u(n,"title","title",t),u(n,"link","link",t),u(n,"description","description",t);var r=c("pubDate",t)||c("dc:date",t);return r&&(n.pubDate=new Date(r)),n}))};u(o,"title","title",r),u(o,"link","link",r),u(o,"description","description",r);var a=c("lastBuildDate",r);a&&(o.updated=new Date(a));return u(o,"author","managingEditor",r,!0),o}(t):null};var o=["url","type","lang"],a=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function s(e){return(0,i.getElementsByTagName)("media:content",e).map((function(e){for(var t=e.attribs,n={medium:t.medium,isDefault:!!t.isDefault},r=0,i=o;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uniqueSort=t.compareDocumentPosition=t.DocumentPosition=t.removeSubsets=void 0;var r,i=n(71667);function o(e,t){var n=[],o=[];if(e===t)return 0;for(var a=(0,i.hasChildren)(e)?e:e.parent;a;)n.unshift(a),a=a.parent;for(a=(0,i.hasChildren)(t)?t:t.parent;a;)o.unshift(a),a=a.parent;for(var s=Math.min(n.length,o.length),l=0;lu.indexOf(h)?c===t?r.FOLLOWING|r.CONTAINED_BY:r.FOLLOWING:c===e?r.PRECEDING|r.CONTAINS:r.PRECEDING}t.removeSubsets=function(e){for(var t=e.length;--t>=0;){var n=e[t];if(t>0&&e.lastIndexOf(n,t-1)>=0)e.splice(t,1);else for(var r=n.parent;r;r=r.parent)if(e.includes(r)){e.splice(t,1);break}}return e},function(e){e[e.DISCONNECTED=1]="DISCONNECTED",e[e.PRECEDING=2]="PRECEDING",e[e.FOLLOWING=4]="FOLLOWING",e[e.CONTAINS=8]="CONTAINS",e[e.CONTAINED_BY=16]="CONTAINED_BY"}(r=t.DocumentPosition||(t.DocumentPosition={})),t.compareDocumentPosition=o,t.uniqueSort=function(e){return(e=e.filter((function(e,t,n){return!n.includes(e,t+1)}))).sort((function(e,t){var n=o(e,t);return n&r.PRECEDING?-1:n&r.FOLLOWING?1:0})),e}},13975:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.hasChildren=t.isDocument=t.isComment=t.isText=t.isCDATA=t.isTag=void 0,i(n(11662),t),i(n(75257),t),i(n(41694),t),i(n(29727),t),i(n(10944),t),i(n(62614),t),i(n(52674),t);var o=n(71667);Object.defineProperty(t,"isTag",{enumerable:!0,get:function(){return o.isTag}}),Object.defineProperty(t,"isCDATA",{enumerable:!0,get:function(){return o.isCDATA}}),Object.defineProperty(t,"isText",{enumerable:!0,get:function(){return o.isText}}),Object.defineProperty(t,"isComment",{enumerable:!0,get:function(){return o.isComment}}),Object.defineProperty(t,"isDocument",{enumerable:!0,get:function(){return o.isDocument}}),Object.defineProperty(t,"hasChildren",{enumerable:!0,get:function(){return o.hasChildren}})},10944:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getElementsByTagType=t.getElementsByTagName=t.getElementById=t.getElements=t.testElement=void 0;var r=n(71667),i=n(29727),o={tag_name:function(e){return"function"==typeof e?function(t){return(0,r.isTag)(t)&&e(t.name)}:"*"===e?r.isTag:function(t){return(0,r.isTag)(t)&&t.name===e}},tag_type:function(e){return"function"==typeof e?function(t){return e(t.type)}:function(t){return t.type===e}},tag_contains:function(e){return"function"==typeof e?function(t){return(0,r.isText)(t)&&e(t.data)}:function(t){return(0,r.isText)(t)&&t.data===e}}};function a(e,t){return"function"==typeof t?function(n){return(0,r.isTag)(n)&&t(n.attribs[e])}:function(n){return(0,r.isTag)(n)&&n.attribs[e]===t}}function s(e,t){return function(n){return e(n)||t(n)}}function l(e){var t=Object.keys(e).map((function(t){var n=e[t];return Object.prototype.hasOwnProperty.call(o,t)?o[t](n):a(t,n)}));return 0===t.length?null:t.reduce(s)}t.testElement=function(e,t){var n=l(e);return!n||n(t)},t.getElements=function(e,t,n,r){void 0===r&&(r=1/0);var o=l(e);return o?(0,i.filter)(o,t,n,r):[]},t.getElementById=function(e,t,n){return void 0===n&&(n=!0),Array.isArray(t)||(t=[t]),(0,i.findOne)(a("id",e),t,n)},t.getElementsByTagName=function(e,t,n,r){return void 0===n&&(n=!0),void 0===r&&(r=1/0),(0,i.filter)(o.tag_name(e),t,n,r)},t.getElementsByTagType=function(e,t,n,r){return void 0===n&&(n=!0),void 0===r&&(r=1/0),(0,i.filter)(o.tag_type(e),t,n,r)}},41694:(e,t)=>{"use strict";function n(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){var t=e.parent.children,n=t.lastIndexOf(e);n>=0&&t.splice(n,1)}e.next=null,e.prev=null,e.parent=null}Object.defineProperty(t,"__esModule",{value:!0}),t.prepend=t.prependChild=t.append=t.appendChild=t.replaceElement=t.removeElement=void 0,t.removeElement=n,t.replaceElement=function(e,t){var n=t.prev=e.prev;n&&(n.next=t);var r=t.next=e.next;r&&(r.prev=t);var i=t.parent=e.parent;if(i){var o=i.children;o[o.lastIndexOf(e)]=t,e.parent=null}},t.appendChild=function(e,t){if(n(t),t.next=null,t.parent=e,e.children.push(t)>1){var r=e.children[e.children.length-2];r.next=t,t.prev=r}else t.prev=null},t.append=function(e,t){n(t);var r=e.parent,i=e.next;if(t.next=i,t.prev=e,e.next=t,t.parent=r,i){if(i.prev=t,r){var o=r.children;o.splice(o.lastIndexOf(i),0,t)}}else r&&r.children.push(t)},t.prependChild=function(e,t){if(n(t),t.parent=e,t.prev=null,1!==e.children.unshift(t)){var r=e.children[1];r.prev=t,t.next=r}else t.next=null},t.prepend=function(e,t){n(t);var r=e.parent;if(r){var i=r.children;i.splice(i.indexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=r,t.prev=e.prev,t.next=e,e.prev=t}},29727:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findAll=t.existsOne=t.findOne=t.findOneChild=t.find=t.filter=void 0;var r=n(71667);function i(e,t,n,i){for(var o=[],a=[t],s=[0];;)if(s[0]>=a[0].length){if(1===s.length)return o;a.shift(),s.shift()}else{var l=a[0][s[0]++];if(e(l)&&(o.push(l),--i<=0))return o;n&&(0,r.hasChildren)(l)&&l.children.length>0&&(s.unshift(0),a.unshift(l.children))}}t.filter=function(e,t,n,r){return void 0===n&&(n=!0),void 0===r&&(r=1/0),i(e,Array.isArray(t)?t:[t],n,r)},t.find=i,t.findOneChild=function(e,t){return t.find(e)},t.findOne=function e(t,n,i){void 0===i&&(i=!0);for(var o=null,a=0;a0&&(o=e(t,s.children,!0)))}return o},t.existsOne=function e(t,n){return n.some((function(n){return(0,r.isTag)(n)&&(t(n)||e(t,n.children))}))},t.findAll=function(e,t){for(var n=[],i=[t],o=[0];;)if(o[0]>=i[0].length){if(1===i.length)return n;i.shift(),o.shift()}else{var a=i[0][o[0]++];(0,r.isTag)(a)&&(e(a)&&n.push(a),a.children.length>0&&(o.unshift(0),i.unshift(a.children)))}}},11662:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.innerText=t.textContent=t.getText=t.getInnerHTML=t.getOuterHTML=void 0;var i=n(71667),o=r(n(56963)),a=n(54718);function s(e,t){return(0,o.default)(e,t)}t.getOuterHTML=s,t.getInnerHTML=function(e,t){return(0,i.hasChildren)(e)?e.children.map((function(e){return s(e,t)})).join(""):""},t.getText=function e(t){return Array.isArray(t)?t.map(e).join(""):(0,i.isTag)(t)?"br"===t.name?"\n":e(t.children):(0,i.isCDATA)(t)?e(t.children):(0,i.isText)(t)?t.data:""},t.textContent=function e(t){return Array.isArray(t)?t.map(e).join(""):(0,i.hasChildren)(t)&&!(0,i.isComment)(t)?e(t.children):(0,i.isText)(t)?t.data:""},t.innerText=function e(t){return Array.isArray(t)?t.map(e).join(""):(0,i.hasChildren)(t)&&(t.type===a.ElementType.Tag||(0,i.isCDATA)(t))?e(t.children):(0,i.isText)(t)?t.data:""}},75257:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.prevElementSibling=t.nextElementSibling=t.getName=t.hasAttrib=t.getAttributeValue=t.getSiblings=t.getParent=t.getChildren=void 0;var r=n(71667);function i(e){return(0,r.hasChildren)(e)?e.children:[]}function o(e){return e.parent||null}t.getChildren=i,t.getParent=o,t.getSiblings=function(e){var t=o(e);if(null!=t)return i(t);for(var n=[e],r=e.prev,a=e.next;null!=r;)n.unshift(r),r=r.prev;for(;null!=a;)n.push(a),a=a.next;return n},t.getAttributeValue=function(e,t){var n;return null===(n=e.attribs)||void 0===n?void 0:n[t]},t.hasAttrib=function(e,t){return null!=e.attribs&&Object.prototype.hasOwnProperty.call(e.attribs,t)&&null!=e.attribs[t]},t.getName=function(e){return e.name},t.nextElementSibling=function(e){for(var t=e.next;null!==t&&!(0,r.isTag)(t);)t=t.next;return t},t.prevElementSibling=function(e){for(var t=e.prev;null!==t&&!(0,r.isTag)(t);)t=t.prev;return t}},37118:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXML=t.decodeHTMLStrict=t.decodeHTMLAttribute=t.decodeHTML=t.determineBranch=t.EntityDecoder=t.DecodingMode=t.BinTrieFlags=t.fromCodePoint=t.replaceCodePoint=t.decodeCodePoint=t.xmlDecodeTree=t.htmlDecodeTree=void 0;var s=a(n(13739));t.htmlDecodeTree=s.default;var l=a(n(74125));t.xmlDecodeTree=l.default;var c=o(n(75840));t.decodeCodePoint=c.default;var u,d=n(75840);Object.defineProperty(t,"replaceCodePoint",{enumerable:!0,get:function(){return d.replaceCodePoint}}),Object.defineProperty(t,"fromCodePoint",{enumerable:!0,get:function(){return d.fromCodePoint}}),function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"}(u||(u={}));var h,p,f;function g(e){return e>=u.ZERO&&e<=u.NINE}function m(e){return e===u.EQUALS||function(e){return e>=u.UPPER_A&&e<=u.UPPER_Z||e>=u.LOWER_A&&e<=u.LOWER_Z||g(e)}(e)}!function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"}(h=t.BinTrieFlags||(t.BinTrieFlags={})),function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"}(p||(p={})),function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"}(f=t.DecodingMode||(t.DecodingMode={}));var y=function(){function e(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=p.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=f.Strict}return e.prototype.startEntity=function(e){this.decodeMode=e,this.state=p.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},e.prototype.write=function(e,t){switch(this.state){case p.EntityStart:return e.charCodeAt(t)===u.NUM?(this.state=p.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=p.NamedEntity,this.stateNamedEntity(e,t));case p.NumericStart:return this.stateNumericStart(e,t);case p.NumericDecimal:return this.stateNumericDecimal(e,t);case p.NumericHex:return this.stateNumericHex(e,t);case p.NamedEntity:return this.stateNamedEntity(e,t)}},e.prototype.stateNumericStart=function(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===u.LOWER_X?(this.state=p.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=p.NumericDecimal,this.stateNumericDecimal(e,t))},e.prototype.addToNumericResult=function(e,t,n,r){if(t!==n){var i=n-t;this.result=this.result*Math.pow(r,i)+parseInt(e.substr(t,i),r),this.consumed+=i}},e.prototype.stateNumericHex=function(e,t){for(var n,r=t;t=u.UPPER_A&&n<=u.UPPER_F||n>=u.LOWER_A&&n<=u.LOWER_F)))return this.addToNumericResult(e,r,t,16),this.emitNumericEntity(i,3);t+=1}return this.addToNumericResult(e,r,t,16),-1},e.prototype.stateNumericDecimal=function(e,t){for(var n=t;t>14;t>14)){if(o===u.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==f.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1},e.prototype.emitNotTerminatedNamedEntity=function(){var e,t=this.result,n=(this.decodeTree[t]&h.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,n,this.consumed),null===(e=this.errors)||void 0===e||e.missingSemicolonAfterCharacterReference(),this.consumed},e.prototype.emitNamedEntityData=function(e,t,n){var r=this.decodeTree;return this.emitCodePoint(1===t?r[e]&~h.VALUE_LENGTH:r[e+1],n),3===t&&this.emitCodePoint(r[e+2],n),n},e.prototype.end=function(){var e;switch(this.state){case p.NamedEntity:return 0===this.result||this.decodeMode===f.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity();case p.NumericDecimal:return this.emitNumericEntity(0,2);case p.NumericHex:return this.emitNumericEntity(0,3);case p.NumericStart:return null===(e=this.errors)||void 0===e||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case p.EntityStart:return 0}},e}();function v(e){var t="",n=new y(e,(function(e){return t+=(0,c.fromCodePoint)(e)}));return function(e,r){for(var i=0,o=0;(o=e.indexOf("&",o))>=0;){t+=e.slice(i,o),n.startEntity(r);var a=n.write(e,o+1);if(a<0){i=o+n.end();break}i=o+a,o=0===a?i+1:i}var s=t+e.slice(i);return t="",s}}function b(e,t,n,r){var i=(t&h.BRANCH_LENGTH)>>7,o=t&h.JUMP_TABLE;if(0===i)return 0!==o&&r===o?n:-1;if(o){var a=r-o;return a<0||a>=i?-1:e[n+a]-1}for(var s=n,l=s+i-1;s<=l;){var c=s+l>>>1,u=e[c];if(ur))return e[c+i];l=c-1}}return-1}t.EntityDecoder=y,t.determineBranch=b;var w=v(s.default),x=v(l.default);t.decodeHTML=function(e,t){return void 0===t&&(t=f.Legacy),w(e,t)},t.decodeHTMLAttribute=function(e){return w(e,f.Attribute)},t.decodeHTMLStrict=function(e){return w(e,f.Strict)},t.decodeXML=function(e){return x(e,f.Strict)}},75840:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.replaceCodePoint=t.fromCodePoint=void 0;var r=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function i(e){var t;return e>=55296&&e<=57343||e>1114111?65533:null!==(t=r.get(e))&&void 0!==t?t:e}t.fromCodePoint=null!==(n=String.fromCodePoint)&&void 0!==n?n:function(e){var t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e)},t.replaceCodePoint=i,t.default=function(e){return(0,t.fromCodePoint)(i(e))}},70322:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.encodeNonAsciiHTML=t.encodeHTML=void 0;var i=r(n(36264)),o=n(34091),a=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function s(e,t){for(var n,r="",a=0;null!==(n=e.exec(t));){var s=n.index;r+=t.substring(a,s);var l=t.charCodeAt(s),c=i.default.get(l);if("object"==typeof c){if(s+1{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.escapeText=t.escapeAttribute=t.escapeUTF8=t.escape=t.encodeXML=t.getCodePoint=t.xmlReplacer=void 0,t.xmlReplacer=/["&'<>$\x80-\uFFFF]/g;var n=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);function r(e){for(var r,i="",o=0;null!==(r=t.xmlReplacer.exec(e));){var a=r.index,s=e.charCodeAt(a),l=n.get(s);void 0!==l?(i+=e.substring(o,a)+l,o=a+1):(i+="".concat(e.substring(o,a),"&#x").concat((0,t.getCodePoint)(e,a).toString(16),";"),o=t.xmlReplacer.lastIndex+=Number(55296==(64512&s)))}return i+e.substr(o)}function i(e,t){return function(n){for(var r,i=0,o="";r=e.exec(n);)i!==r.index&&(o+=n.substring(i,r.index)),o+=t.get(r[0].charCodeAt(0)),i=r.index+1;return o+n.substring(i)}}t.getCodePoint=null!=String.prototype.codePointAt?function(e,t){return e.codePointAt(t)}:function(e,t){return 55296==(64512&e.charCodeAt(t))?1024*(e.charCodeAt(t)-55296)+e.charCodeAt(t+1)-56320+65536:e.charCodeAt(t)},t.encodeXML=r,t.escape=r,t.escapeUTF8=i(/[&<>'"]/g,n),t.escapeAttribute=i(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),t.escapeText=i(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]))},13739:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map((function(e){return e.charCodeAt(0)})))},74125:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=new Uint16Array("Ȁaglq\tɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((function(e){return e.charCodeAt(0)})))},36264:(e,t)=>{"use strict";function n(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXMLStrict=t.decodeHTML5Strict=t.decodeHTML4Strict=t.decodeHTML5=t.decodeHTML4=t.decodeHTMLAttribute=t.decodeHTMLStrict=t.decodeHTML=t.decodeXML=t.DecodingMode=t.EntityDecoder=t.encodeHTML5=t.encodeHTML4=t.encodeNonAsciiHTML=t.encodeHTML=t.escapeText=t.escapeAttribute=t.escapeUTF8=t.escape=t.encodeXML=t.encode=t.decodeStrict=t.decode=t.EncodingMode=t.EntityLevel=void 0;var r,i,o=n(37118),a=n(70322),s=n(34091);function l(e,t){if(void 0===t&&(t=r.XML),("number"==typeof t?t:t.level)===r.HTML){var n="object"==typeof t?t.mode:void 0;return(0,o.decodeHTML)(e,n)}return(0,o.decodeXML)(e)}!function(e){e[e.XML=0]="XML",e[e.HTML=1]="HTML"}(r=t.EntityLevel||(t.EntityLevel={})),function(e){e[e.UTF8=0]="UTF8",e[e.ASCII=1]="ASCII",e[e.Extensive=2]="Extensive",e[e.Attribute=3]="Attribute",e[e.Text=4]="Text"}(i=t.EncodingMode||(t.EncodingMode={})),t.decode=l,t.decodeStrict=function(e,t){var n;void 0===t&&(t=r.XML);var i="number"==typeof t?{level:t}:t;return null!==(n=i.mode)&&void 0!==n||(i.mode=o.DecodingMode.Strict),l(e,i)},t.encode=function(e,t){void 0===t&&(t=r.XML);var n="number"==typeof t?{level:t}:t;return n.mode===i.UTF8?(0,s.escapeUTF8)(e):n.mode===i.Attribute?(0,s.escapeAttribute)(e):n.mode===i.Text?(0,s.escapeText)(e):n.level===r.HTML?n.mode===i.ASCII?(0,a.encodeNonAsciiHTML)(e):(0,a.encodeHTML)(e):(0,s.encodeXML)(e)};var c=n(34091);Object.defineProperty(t,"encodeXML",{enumerable:!0,get:function(){return c.encodeXML}}),Object.defineProperty(t,"escape",{enumerable:!0,get:function(){return c.escape}}),Object.defineProperty(t,"escapeUTF8",{enumerable:!0,get:function(){return c.escapeUTF8}}),Object.defineProperty(t,"escapeAttribute",{enumerable:!0,get:function(){return c.escapeAttribute}}),Object.defineProperty(t,"escapeText",{enumerable:!0,get:function(){return c.escapeText}});var u=n(70322);Object.defineProperty(t,"encodeHTML",{enumerable:!0,get:function(){return u.encodeHTML}}),Object.defineProperty(t,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return u.encodeNonAsciiHTML}}),Object.defineProperty(t,"encodeHTML4",{enumerable:!0,get:function(){return u.encodeHTML}}),Object.defineProperty(t,"encodeHTML5",{enumerable:!0,get:function(){return u.encodeHTML}});var d=n(37118);Object.defineProperty(t,"EntityDecoder",{enumerable:!0,get:function(){return d.EntityDecoder}}),Object.defineProperty(t,"DecodingMode",{enumerable:!0,get:function(){return d.DecodingMode}}),Object.defineProperty(t,"decodeXML",{enumerable:!0,get:function(){return d.decodeXML}}),Object.defineProperty(t,"decodeHTML",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(t,"decodeHTMLStrict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTMLAttribute",{enumerable:!0,get:function(){return d.decodeHTMLAttribute}}),Object.defineProperty(t,"decodeHTML4",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(t,"decodeHTML5",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(t,"decodeHTML4Strict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTML5Strict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(t,"decodeXMLStrict",{enumerable:!0,get:function(){return d.decodeXML}})},21117:e=>{"use strict";e.exports=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}},47633:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExportToCsv=t.ConfigDefaults=t.CsvConfigConsts=void 0;var n=function(){function e(){}return e.EOL="\r\n",e.BOM="\ufeff",e.DEFAULT_FIELD_SEPARATOR=",",e.DEFAULT_DECIMAL_SEPARATOR=".",e.DEFAULT_QUOTE='"',e.DEFAULT_SHOW_TITLE=!1,e.DEFAULT_TITLE="My Generated Report",e.DEFAULT_FILENAME="generated",e.DEFAULT_SHOW_LABELS=!1,e.DEFAULT_USE_TEXT_FILE=!1,e.DEFAULT_USE_BOM=!0,e.DEFAULT_HEADER=[],e.DEFAULT_KEYS_AS_HEADERS=!1,e}();t.CsvConfigConsts=n,t.ConfigDefaults={filename:n.DEFAULT_FILENAME,fieldSeparator:n.DEFAULT_FIELD_SEPARATOR,quoteStrings:n.DEFAULT_QUOTE,decimalSeparator:n.DEFAULT_DECIMAL_SEPARATOR,showLabels:n.DEFAULT_SHOW_LABELS,showTitle:n.DEFAULT_SHOW_TITLE,title:n.DEFAULT_TITLE,useTextFile:n.DEFAULT_USE_TEXT_FILE,useBom:n.DEFAULT_USE_BOM,headers:n.DEFAULT_HEADER,useKeysAsHeaders:n.DEFAULT_KEYS_AS_HEADERS};var r=function(){function e(e){this._csv="";var n=e||{};this._options=a({},t.ConfigDefaults,n),this._options.useKeysAsHeaders&&this._options.headers&&this._options.headers.length>0&&console.warn("Option to use object keys as headers was set, but headers were still passed!")}return Object.defineProperty(e.prototype,"options",{get:function(){return this._options},set:function(e){this._options=a({},t.ConfigDefaults,e)},enumerable:!1,configurable:!0}),e.prototype.generateCsv=function(e,t){if(void 0===t&&(t=!1),this._csv="",this._parseData(e),this._options.useBom&&(this._csv+=n.BOM),this._options.showTitle&&(this._csv+=this._options.title+"\r\n\n"),this._createHeaders(),this._createBody(),""!=this._csv){if(t)return this._csv;var r=this._options.useTextFile?"plain":"csv",i=this._options.useTextFile?".txt":".csv",o=new Blob([this._csv],{type:"text/"+r+";charset=utf8;"}),a=document.createElement("a");a.href=URL.createObjectURL(o),a.setAttribute("visibility","hidden"),a.download=this._options.filename.replace(/ /g,"_")+i,document.body.appendChild(a),a.click(),document.body.removeChild(a)}else console.log("Invalid data")},e.prototype._getHeaders=function(){if(this._options.showLabels||this._options.useKeysAsHeaders)return this._options.useKeysAsHeaders?Object.keys(this._data[0]):this._options.headers},e.prototype._createHeaders=function(){var e=this._getHeaders();if(e.length>0){for(var t="",r=0;r-1||e.indexOf("\n")>-1||e.indexOf("\r")>-1)&&(e=this._options.quoteStrings+e+this._options.quoteStrings),e):"boolean"==typeof e?e?"TRUE":"FALSE":e},e.prototype._isFloat=function(e){return+e===e&&(!isFinite(e)||Boolean(e%1))},e.prototype._parseData=function(e){return this._data="object"!=typeof e?JSON.parse(e):e,this._data},e}();t.ExportToCsv=r;var i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function a(e){for(var t,n=[],r=1;r{"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(i=r;0!=i--;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(o=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=r;0!=i--;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;0!=i--;){var a=o[i];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n}},5137:e=>{"use strict";e.exports=function(e,t){for(var n={},r=Object.keys(e),i=Array.isArray(t),o=0;o{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){for(var n=0;n1?r-1:0),o=1;o element.");return c.cloneElement(t,{ref:function(n){var r=e.props.containerElements;t&&("function"==typeof t.ref?t.ref(n):t.ref&&(t.ref.current=n)),e.focusTrapElements=r||[n]}})}return null}}])&&i(t.prototype,n),r&&i(t,r),Object.defineProperty(t,"prototype",{writable:!1}),d}(c.Component),g="undefined"==typeof Element?Function:Element;f.propTypes={active:d.bool,paused:d.bool,focusTrapOptions:d.shape({document:d.object,onActivate:d.func,onPostActivate:d.func,checkCanFocusTrap:d.func,onDeactivate:d.func,onPostDeactivate:d.func,checkCanReturnFocus:d.func,initialFocus:d.oneOfType([d.instanceOf(g),d.string,d.bool,d.func]),fallbackFocus:d.oneOfType([d.instanceOf(g),d.string,d.func]),escapeDeactivates:d.oneOfType([d.bool,d.func]),clickOutsideDeactivates:d.oneOfType([d.bool,d.func]),returnFocusOnDeactivate:d.bool,setReturnFocus:d.oneOfType([d.instanceOf(g),d.string,d.bool,d.func]),allowOutsideClick:d.oneOfType([d.bool,d.func]),preventScroll:d.bool,tabbableOptions:d.shape({displayCheck:d.oneOf(["full","non-zero-area","none"]),getShadowRoot:d.oneOfType([d.bool,d.func])})}),containerElements:d.arrayOf(d.instanceOf(g)),children:d.oneOfType([d.element,d.instanceOf(g)])},f.defaultProps={active:!0,paused:!1,focusTrapOptions:{},_createFocusTrap:h},e.exports=f},68516:(e,t,n)=>{"use strict";n.r(t),n.d(t,{createFocusTrap:()=>p});var r=n(98710); /*! * focus-trap 6.9.4 * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE -*/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 o(e){for(var t=1;t0){var t=s[s.length-1];t!==e&&t.pause()}var n=s.indexOf(e);-1===n||s.splice(n,1),s.push(e)},deactivateTrap:function(e){var t=s.indexOf(e);-1!==t&&s.splice(t,1),s.length>0&&s[s.length-1].unpause()}}),c=function(e){return setTimeout(e,0)},u=function(e,t){var n=-1;return e.every((function(e,r){return!t(e)||(n=r,!1)})),n},d=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1?n-1:0),o=1;o=0)e=i.activeElement;else{var t=s.tabbableGroups[0];e=t&&t.firstTabbableNode||g("fallbackFocus")}if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},y=function(){if(s.containerGroups=s.containers.map((function(e){var t=(0,r.tabbable)(e,a.tabbableOptions),n=(0,r.focusable)(e,a.tabbableOptions);return{container:e,tabbableNodes:t,focusableNodes:n,firstTabbableNode:t.length>0?t[0]:null,lastTabbableNode:t.length>0?t[t.length-1]:null,nextTabbableNode:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=n.findIndex((function(t){return t===e}));if(!(i<0))return t?n.slice(i+1).find((function(e){return(0,r.isTabbable)(e,a.tabbableOptions)})):n.slice(0,i).reverse().find((function(e){return(0,r.isTabbable)(e,a.tabbableOptions)}))}}})),s.tabbableGroups=s.containerGroups.filter((function(e){return e.tabbableNodes.length>0})),s.tabbableGroups.length<=0&&!g("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},v=function e(t){!1!==t&&t!==i.activeElement&&(t&&t.focus?(t.focus({preventScroll:!!a.preventScroll}),s.mostRecentlyFocusedNode=t,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(t)&&t.select()):e(m()))},b=function(e){var t=g("setReturnFocus",e);return t||!1!==t&&e},x=function(e){var t=h(e);f(t)>=0||(d(a.clickOutsideDeactivates,e)?n.deactivate({returnFocus:a.returnFocusOnDeactivate&&!(0,r.isFocusable)(t,a.tabbableOptions)}):d(a.allowOutsideClick,e)||e.preventDefault())},w=function(e){var t=h(e),n=f(t)>=0;n||t instanceof Document?n&&(s.mostRecentlyFocusedNode=t):(e.stopImmediatePropagation(),v(s.mostRecentlyFocusedNode||m()))},A=function(e){if(function(e){return"Escape"===e.key||"Esc"===e.key||27===e.keyCode}(e)&&!1!==d(a.escapeDeactivates,e))return e.preventDefault(),void n.deactivate();(function(e){return"Tab"===e.key||9===e.keyCode})(e)&&function(e){var t=h(e);y();var n=null;if(s.tabbableGroups.length>0){var i=f(t),o=i>=0?s.containerGroups[i]:void 0;if(i<0)n=e.shiftKey?s.tabbableGroups[s.tabbableGroups.length-1].lastTabbableNode:s.tabbableGroups[0].firstTabbableNode;else if(e.shiftKey){var l=u(s.tabbableGroups,(function(e){var n=e.firstTabbableNode;return t===n}));if(l<0&&(o.container===t||(0,r.isFocusable)(t,a.tabbableOptions)&&!(0,r.isTabbable)(t,a.tabbableOptions)&&!o.nextTabbableNode(t,!1))&&(l=i),l>=0){var c=0===l?s.tabbableGroups.length-1:l-1;n=s.tabbableGroups[c].lastTabbableNode}}else{var d=u(s.tabbableGroups,(function(e){var n=e.lastTabbableNode;return t===n}));if(d<0&&(o.container===t||(0,r.isFocusable)(t,a.tabbableOptions)&&!(0,r.isTabbable)(t,a.tabbableOptions)&&!o.nextTabbableNode(t))&&(d=i),d>=0){var p=d===s.tabbableGroups.length-1?0:d+1;n=s.tabbableGroups[p].firstTabbableNode}}}else n=g("fallbackFocus");n&&(e.preventDefault(),v(n))}(e)},S=function(e){var t=h(e);f(t)>=0||d(a.clickOutsideDeactivates,e)||d(a.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},C=function(){if(s.active)return l.activateTrap(n),s.delayInitialFocusTimer=a.delayInitialFocus?c((function(){v(m())})):v(m()),i.addEventListener("focusin",w,!0),i.addEventListener("mousedown",x,{capture:!0,passive:!1}),i.addEventListener("touchstart",x,{capture:!0,passive:!1}),i.addEventListener("click",S,{capture:!0,passive:!1}),i.addEventListener("keydown",A,{capture:!0,passive:!1}),n},E=function(){if(s.active)return i.removeEventListener("focusin",w,!0),i.removeEventListener("mousedown",x,!0),i.removeEventListener("touchstart",x,!0),i.removeEventListener("click",S,!0),i.removeEventListener("keydown",A,!0),n};return(n={get active(){return s.active},get paused(){return s.paused},activate:function(e){if(s.active)return this;var t=p(e,"onActivate"),n=p(e,"onPostActivate"),r=p(e,"checkCanFocusTrap");r||y(),s.active=!0,s.paused=!1,s.nodeFocusedBeforeActivation=i.activeElement,t&&t();var o=function(){r&&y(),C(),n&&n()};return r?(r(s.containers.concat()).then(o,o),this):(o(),this)},deactivate:function(e){if(!s.active)return this;var t=o({onDeactivate:a.onDeactivate,onPostDeactivate:a.onPostDeactivate,checkCanReturnFocus:a.checkCanReturnFocus},e);clearTimeout(s.delayInitialFocusTimer),s.delayInitialFocusTimer=void 0,E(),s.active=!1,s.paused=!1,l.deactivateTrap(n);var r=p(t,"onDeactivate"),i=p(t,"onPostDeactivate"),u=p(t,"checkCanReturnFocus"),d=p(t,"returnFocus","returnFocusOnDeactivate");r&&r();var h=function(){c((function(){d&&v(b(s.nodeFocusedBeforeActivation)),i&&i()}))};return d&&u?(u(b(s.nodeFocusedBeforeActivation)).then(h,h),this):(h(),this)},pause:function(){return s.paused||!s.active||(s.paused=!0,E()),this},unpause:function(){return s.paused&&s.active?(s.paused=!1,y(),C(),this):this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return s.containers=t.map((function(e){return"string"==typeof e?i.querySelector(e):e})),s.active&&y(),this}}).updateContainerElements(e),n}},78535:(e,t,n)=>{"use strict";var r=n(48795),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(f){var i=p(n);i&&i!==f&&e(t,i,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var s=l(t),g=l(n),m=0;m{e.exports={CASE_SENSITIVE_TAG_NAMES:["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussainBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"]}},44371:(e,t,n)=>{var r="html",i="head",o="body",a=/<([a-zA-Z]+[0-9]?)/,s=//i,l=//i,c=function(){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},u=function(){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")};if("function"==typeof window.DOMParser){var d=new window.DOMParser;c=u=function(e,t){return t&&(e="<"+t+">"+e+""),d.parseFromString(e,"text/html")}}if(document.implementation){var h=n(86644).isIE,p=document.implementation.createHTMLDocument(h()?"html-dom-parser":void 0);c=function(e,t){return t?(p.documentElement.getElementsByTagName(t)[0].innerHTML=e,p):(p.documentElement.innerHTML=e,p)}}var f,g=document.createElement("template");g.content&&(f=function(e){return g.innerHTML=e,g.content.childNodes}),e.exports=function(e){var t,n,d,h,p=e.match(a);switch(p&&p[1]&&(t=p[1].toLowerCase()),t){case r:return n=u(e),s.test(e)||(d=n.getElementsByTagName(i)[0])&&d.parentNode.removeChild(d),l.test(e)||(d=n.getElementsByTagName(o)[0])&&d.parentNode.removeChild(d),n.getElementsByTagName(r);case i:case o:return h=c(e).getElementsByTagName(t),l.test(e)&&s.test(e)?h[0].parentNode.childNodes:h;default:return f?f(e):c(e,o).getElementsByTagName(o)[0].childNodes}}},43136:(e,t,n)=>{var r=n(44371),i=n(86644).formatDOM,o=/<(![a-zA-Z\s]+)>/;e.exports=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(""===e)return[];var t,n=e.match(o);return n&&n[1]&&(t=n[1]),i(r(e),null,t)}},86644:(e,t,n)=>{for(var r,i=n(71605),o=n(56679),a=i.CASE_SENSITIVE_TAG_NAMES,s=o.Comment,l=o.Element,c=o.ProcessingInstruction,u=o.Text,d={},h=0,p=a.length;h{"use strict";n.d(t,{A:()=>h});var r=n(77835),i=n.n(r),o=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function a(e){var t={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},n=e.match(/<\/?([^\s]+?)[/\s>]/);if(n&&(t.name=n[1],(i()[n[1]]||"/"===e.charAt(e.length-2))&&(t.voidElement=!0),t.name.startsWith("!--"))){var r=e.indexOf("--\x3e");return{type:"comment",comment:-1!==r?e.slice(4,r):""}}for(var a=new RegExp(o),s=null;null!==(s=a.exec(e));)if(s[0].trim())if(s[1]){var l=s[1].trim(),c=[l,""];l.indexOf("=")>-1&&(c=l.split("=")),t.attrs[c[0]]=c[1],a.lastIndex--}else s[2]&&(t.attrs[s[2]]=s[3].trim().substring(1,s[3].length-1));return t}var s=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,l=/^\s*$/,c=Object.create(null);function u(e,t){switch(t.type){case"text":return e+t.content;case"tag":return e+="<"+t.name+(t.attrs?function(e){var t=[];for(var n in e)t.push(n+'="'+e[n]+'"');return t.length?" "+t.join(" "):""}(t.attrs):"")+(t.voidElement?"/>":">"),t.voidElement?e:e+t.children.reduce(u,"")+"";case"comment":return e+"\x3c!--"+t.comment+"--\x3e"}}var d={parse:function(e,t){t||(t={}),t.components||(t.components=c);var n,r=[],i=[],o=-1,u=!1;if(0!==e.indexOf("<")){var d=e.indexOf("<");r.push({type:"text",content:-1===d?e:e.substring(0,d)})}return e.replace(s,(function(s,c){if(u){if(s!=="")return;u=!1}var d,h="/"!==s.charAt(1),p=s.startsWith("\x3c!--"),f=c+s.length,g=e.charAt(f);if(p){var m=a(s);return o<0?(r.push(m),r):((d=i[o]).children.push(m),r)}if(h&&(o++,"tag"===(n=a(s)).type&&t.components[n.name]&&(n.type="component",u=!0),n.voidElement||u||!g||"<"===g||n.children.push({type:"text",content:e.slice(f,e.indexOf("<",f))}),0===o&&r.push(n),(d=i[o-1])&&d.children.push(n),i[o]=n),(!h||n.voidElement)&&(o>-1&&(n.voidElement||n.name===s.slice(2,-1))&&(o--,n=-1===o?r:i[o]),!u&&"<"!==g&&g)){d=-1===o?r:i[o].children;var y=e.indexOf("<",f),v=e.slice(f,-1===y?void 0:y);l.test(v)&&(v=" "),(y>-1&&o+d.length>=0||" "!==v)&&d.push({type:"text",content:v})}})),r},stringify:function(e){return e.reduce((function(e,t){return e+u("",t)}),"")}};const h=d},31082:(e,t,n)=>{var r=n(48259),i=n(49156),o=n(43136);o="function"==typeof o.default?o.default:o;var a={lowerCaseAttributeNames:!1};function s(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return""===e?[]:r(o(e,(t=t||{}).htmlparser2||a),t)}s.domToReact=r,s.htmlToDOM=o,s.attributesToProps=i,s.Element=n(62679).Element,e.exports=s,e.exports.default=s},49156:(e,t,n)=>{var r=n(83379),i=n(38354);function o(e){return r.possibleStandardNames[e]}e.exports=function(e){var t,n,a,s,l,c={},u=(e=e||{}).type&&{reset:!0,submit:!0}[e.type];for(t in e)if(a=e[t],r.isCustomAttribute(t))c[t]=a;else if(s=o(n=t.toLowerCase()))switch(l=r.getPropertyInfo(s),"checked"!==s&&"value"!==s||u||(s=o("default"+n)),c[s]=a,l&&l.type){case r.BOOLEAN:c[s]=!0;break;case r.OVERLOADED_BOOLEAN:""===a&&(c[s]=!0)}else i.PRESERVE_CUSTOM_ATTRIBUTES&&(c[t]=a);return i.setStyleProp(e.style,c),c}},48259:(e,t,n)=>{var r=n(30538),i=n(49156),o=n(38354),a=o.setStyleProp,s=o.canTextBeChildOfNode;function l(e){return o.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&o.isCustomComponent(e.name,e.attribs)}e.exports=function e(t,n){for(var o,c,u,d,h,p=(n=n||{}).library||r,f=p.cloneElement,g=p.createElement,m=p.isValidElement,y=[],v="function"==typeof n.replace,b=n.trim,x=0,w=t.length;x1&&(u=f(u,{key:u.key||x})),y.push(u);else if("text"!==o.type){switch(d=o.attribs,l(o)?a(d.style,d):d&&(d=i(d)),h=null,o.type){case"script":case"style":o.children[0]&&(d.dangerouslySetInnerHTML={__html:o.children[0].data});break;case"tag":"textarea"===o.name&&o.children[0]?d.defaultValue=o.children[0].data:o.children&&o.children.length&&(h=e(o.children,n));break;default:continue}w>1&&(d.key=x),y.push(g(o.name,d,h))}else{if((c=!o.data.trim().length)&&o.parent&&!s(o.parent))continue;if(b&&c)continue;y.push(o.data)}return 1===y.length?y[0]:y}},38354:(e,t,n)=>{var r=n(30538),i=n(49115).default;var o={reactCompat:!0};var a=r.version.split(".")[0]>=16,s=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);e.exports={PRESERVE_CUSTOM_ATTRIBUTES:a,invertObject:function(e,t){if(!e||"object"!=typeof e)throw new TypeError("First argument must be an object");var n,r,i="function"==typeof t,o={},a={};for(n in e)r=e[n],i&&(o=t(n,r))&&2===o.length?a[o[0]]=o[1]:"string"==typeof r&&(a[r]=n);return a},isCustomComponent:function(e,t){if(-1===e.indexOf("-"))return t&&"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}},setStyleProp:function(e,t){if(null!=e)try{t.style=i(e,o)}catch(e){t.style={}}},canTextBeChildOfNode:function(e){return!s.has(e.name)},elementsWithNoTextChildren:s}},3328:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Parser=void 0;var a=o(n(24602)),s=n(37118),l=new Set(["input","option","optgroup","select","button","datalist","textarea"]),c=new Set(["p"]),u=new Set(["thead","tbody"]),d=new Set(["dd","dt"]),h=new Set(["rt","rp"]),p=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",c],["h1",c],["h2",c],["h3",c],["h4",c],["h5",c],["h6",c],["select",l],["input",l],["output",l],["button",l],["datalist",l],["textarea",l],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",d],["dt",d],["address",c],["article",c],["aside",c],["blockquote",c],["details",c],["div",c],["dl",c],["fieldset",c],["figcaption",c],["figure",c],["footer",c],["form",c],["header",c],["hr",c],["main",c],["nav",c],["ol",c],["pre",c],["section",c],["table",c],["ul",c],["rt",h],["rp",h],["tbody",u],["tfoot",u]]),f=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),g=new Set(["math","svg"]),m=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),y=/\s|\//,v=function(){function e(e,t){var n,r,i,o,s;void 0===t&&(t={}),this.options=t,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=null!=e?e:{},this.lowerCaseTagNames=null!==(n=t.lowerCaseTags)&&void 0!==n?n:!t.xmlMode,this.lowerCaseAttributeNames=null!==(r=t.lowerCaseAttributeNames)&&void 0!==r?r:!t.xmlMode,this.tokenizer=new(null!==(i=t.Tokenizer)&&void 0!==i?i:a.default)(this.options,this),null===(s=(o=this.cbs).onparserinit)||void 0===s||s.call(o,this)}return e.prototype.ontext=function(e,t){var n,r,i=this.getSlice(e,t);this.endIndex=t-1,null===(r=(n=this.cbs).ontext)||void 0===r||r.call(n,i),this.startIndex=t},e.prototype.ontextentity=function(e){var t,n,r=this.tokenizer.getSectionStart();this.endIndex=r-1,null===(n=(t=this.cbs).ontext)||void 0===n||n.call(t,(0,s.fromCodePoint)(e)),this.startIndex=r},e.prototype.isVoidElement=function(e){return!this.options.xmlMode&&f.has(e)},e.prototype.onopentagname=function(e,t){this.endIndex=t;var n=this.getSlice(e,t);this.lowerCaseTagNames&&(n=n.toLowerCase()),this.emitOpenTag(n)},e.prototype.emitOpenTag=function(e){var t,n,r,i;this.openTagStart=this.startIndex,this.tagname=e;var o=!this.options.xmlMode&&p.get(e);if(o)for(;this.stack.length>0&&o.has(this.stack[this.stack.length-1]);){var a=this.stack.pop();null===(n=(t=this.cbs).onclosetag)||void 0===n||n.call(t,a,!0)}this.isVoidElement(e)||(this.stack.push(e),g.has(e)?this.foreignContext.push(!0):m.has(e)&&this.foreignContext.push(!1)),null===(i=(r=this.cbs).onopentagname)||void 0===i||i.call(r,e),this.cbs.onopentag&&(this.attribs={})},e.prototype.endOpenTag=function(e){var t,n;this.startIndex=this.openTagStart,this.attribs&&(null===(n=(t=this.cbs).onopentag)||void 0===n||n.call(t,this.tagname,this.attribs,e),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""},e.prototype.onopentagend=function(e){this.endIndex=e,this.endOpenTag(!1),this.startIndex=e+1},e.prototype.onclosetag=function(e,t){var n,r,i,o,a,s;this.endIndex=t;var l=this.getSlice(e,t);if(this.lowerCaseTagNames&&(l=l.toLowerCase()),(g.has(l)||m.has(l))&&this.foreignContext.pop(),this.isVoidElement(l))this.options.xmlMode||"br"!==l||(null===(r=(n=this.cbs).onopentagname)||void 0===r||r.call(n,"br"),null===(o=(i=this.cbs).onopentag)||void 0===o||o.call(i,"br",{},!0),null===(s=(a=this.cbs).onclosetag)||void 0===s||s.call(a,"br",!1));else{var c=this.stack.lastIndexOf(l);if(-1!==c)if(this.cbs.onclosetag)for(var u=this.stack.length-c;u--;)this.cbs.onclosetag(this.stack.pop(),0!==u);else this.stack.length=c;else this.options.xmlMode||"p"!==l||(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=t+1},e.prototype.onselfclosingtag=function(e){this.endIndex=e,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=e+1):this.onopentagend(e)},e.prototype.closeCurrentTag=function(e){var t,n,r=this.tagname;this.endOpenTag(e),this.stack[this.stack.length-1]===r&&(null===(n=(t=this.cbs).onclosetag)||void 0===n||n.call(t,r,!e),this.stack.pop())},e.prototype.onattribname=function(e,t){this.startIndex=e;var n=this.getSlice(e,t);this.attribname=this.lowerCaseAttributeNames?n.toLowerCase():n},e.prototype.onattribdata=function(e,t){this.attribvalue+=this.getSlice(e,t)},e.prototype.onattribentity=function(e){this.attribvalue+=(0,s.fromCodePoint)(e)},e.prototype.onattribend=function(e,t){var n,r;this.endIndex=t,null===(r=(n=this.cbs).onattribute)||void 0===r||r.call(n,this.attribname,this.attribvalue,e===a.QuoteType.Double?'"':e===a.QuoteType.Single?"'":e===a.QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""},e.prototype.getInstructionName=function(e){var t=e.search(y),n=t<0?e:e.substr(0,t);return this.lowerCaseTagNames&&(n=n.toLowerCase()),n},e.prototype.ondeclaration=function(e,t){this.endIndex=t;var n=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){var r=this.getInstructionName(n);this.cbs.onprocessinginstruction("!".concat(r),"!".concat(n))}this.startIndex=t+1},e.prototype.onprocessinginstruction=function(e,t){this.endIndex=t;var n=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){var r=this.getInstructionName(n);this.cbs.onprocessinginstruction("?".concat(r),"?".concat(n))}this.startIndex=t+1},e.prototype.oncomment=function(e,t,n){var r,i,o,a;this.endIndex=t,null===(i=(r=this.cbs).oncomment)||void 0===i||i.call(r,this.getSlice(e,t-n)),null===(a=(o=this.cbs).oncommentend)||void 0===a||a.call(o),this.startIndex=t+1},e.prototype.oncdata=function(e,t,n){var r,i,o,a,s,l,c,u,d,h;this.endIndex=t;var p=this.getSlice(e,t-n);this.options.xmlMode||this.options.recognizeCDATA?(null===(i=(r=this.cbs).oncdatastart)||void 0===i||i.call(r),null===(a=(o=this.cbs).ontext)||void 0===a||a.call(o,p),null===(l=(s=this.cbs).oncdataend)||void 0===l||l.call(s)):(null===(u=(c=this.cbs).oncomment)||void 0===u||u.call(c,"[CDATA[".concat(p,"]]")),null===(h=(d=this.cbs).oncommentend)||void 0===h||h.call(d)),this.startIndex=t+1},e.prototype.onend=function(){var e,t;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(var n=this.stack.length;n>0;this.cbs.onclosetag(this.stack[--n],!0));}null===(t=(e=this.cbs).onend)||void 0===t||t.call(e)},e.prototype.reset=function(){var e,t,n,r;null===(t=(e=this.cbs).onreset)||void 0===t||t.call(e),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,null===(r=(n=this.cbs).onparserinit)||void 0===r||r.call(n,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1},e.prototype.parseComplete=function(e){this.reset(),this.end(e)},e.prototype.getSlice=function(e,t){for(;e-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();for(var n=this.buffers[0].slice(e-this.bufferOffset,t-this.bufferOffset);t-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),n+=this.buffers[0].slice(0,t-this.bufferOffset);return n},e.prototype.shiftBuffer=function(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()},e.prototype.write=function(e){var t,n;this.ended?null===(n=(t=this.cbs).onerror)||void 0===n||n.call(t,new Error(".write() after done!")):(this.buffers.push(e),this.tokenizer.running&&(this.tokenizer.write(e),this.writeIndex++))},e.prototype.end=function(e){var t,n;this.ended?null===(n=(t=this.cbs).onerror)||void 0===n||n.call(t,new Error(".end() after done!")):(e&&this.write(e),this.ended=!0,this.tokenizer.end())},e.prototype.pause=function(){this.tokenizer.pause()},e.prototype.resume=function(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QuoteType=void 0;var r,i,o,a=n(37118);function s(e){return e===r.Space||e===r.NewLine||e===r.Tab||e===r.FormFeed||e===r.CarriageReturn}function l(e){return e===r.Slash||e===r.Gt||s(e)}function c(e){return e>=r.Zero&&e<=r.Nine}!function(e){e[e.Tab=9]="Tab",e[e.NewLine=10]="NewLine",e[e.FormFeed=12]="FormFeed",e[e.CarriageReturn=13]="CarriageReturn",e[e.Space=32]="Space",e[e.ExclamationMark=33]="ExclamationMark",e[e.Number=35]="Number",e[e.Amp=38]="Amp",e[e.SingleQuote=39]="SingleQuote",e[e.DoubleQuote=34]="DoubleQuote",e[e.Dash=45]="Dash",e[e.Slash=47]="Slash",e[e.Zero=48]="Zero",e[e.Nine=57]="Nine",e[e.Semi=59]="Semi",e[e.Lt=60]="Lt",e[e.Eq=61]="Eq",e[e.Gt=62]="Gt",e[e.Questionmark=63]="Questionmark",e[e.UpperA=65]="UpperA",e[e.LowerA=97]="LowerA",e[e.UpperF=70]="UpperF",e[e.LowerF=102]="LowerF",e[e.UpperZ=90]="UpperZ",e[e.LowerZ=122]="LowerZ",e[e.LowerX=120]="LowerX",e[e.OpeningSquareBracket=91]="OpeningSquareBracket"}(r||(r={})),function(e){e[e.Text=1]="Text",e[e.BeforeTagName=2]="BeforeTagName",e[e.InTagName=3]="InTagName",e[e.InSelfClosingTag=4]="InSelfClosingTag",e[e.BeforeClosingTagName=5]="BeforeClosingTagName",e[e.InClosingTagName=6]="InClosingTagName",e[e.AfterClosingTagName=7]="AfterClosingTagName",e[e.BeforeAttributeName=8]="BeforeAttributeName",e[e.InAttributeName=9]="InAttributeName",e[e.AfterAttributeName=10]="AfterAttributeName",e[e.BeforeAttributeValue=11]="BeforeAttributeValue",e[e.InAttributeValueDq=12]="InAttributeValueDq",e[e.InAttributeValueSq=13]="InAttributeValueSq",e[e.InAttributeValueNq=14]="InAttributeValueNq",e[e.BeforeDeclaration=15]="BeforeDeclaration",e[e.InDeclaration=16]="InDeclaration",e[e.InProcessingInstruction=17]="InProcessingInstruction",e[e.BeforeComment=18]="BeforeComment",e[e.CDATASequence=19]="CDATASequence",e[e.InSpecialComment=20]="InSpecialComment",e[e.InCommentLike=21]="InCommentLike",e[e.BeforeSpecialS=22]="BeforeSpecialS",e[e.SpecialStartSequence=23]="SpecialStartSequence",e[e.InSpecialTag=24]="InSpecialTag",e[e.BeforeEntity=25]="BeforeEntity",e[e.BeforeNumericEntity=26]="BeforeNumericEntity",e[e.InNamedEntity=27]="InNamedEntity",e[e.InNumericEntity=28]="InNumericEntity",e[e.InHexEntity=29]="InHexEntity"}(i||(i={})),function(e){e[e.NoValue=0]="NoValue",e[e.Unquoted=1]="Unquoted",e[e.Single=2]="Single",e[e.Double=3]="Double"}(o=t.QuoteType||(t.QuoteType={}));var u={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])},d=function(){function e(e,t){var n=e.xmlMode,r=void 0!==n&&n,o=e.decodeEntities,s=void 0===o||o;this.cbs=t,this.state=i.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=i.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=r,this.decodeEntities=s,this.entityTrie=r?a.xmlDecodeTree:a.htmlDecodeTree}return e.prototype.reset=function(){this.state=i.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=i.Text,this.currentSequence=void 0,this.running=!0,this.offset=0},e.prototype.write=function(e){this.offset+=this.buffer.length,this.buffer=e,this.parse()},e.prototype.end=function(){this.running&&this.finish()},e.prototype.pause=function(){this.running=!1},e.prototype.resume=function(){this.running=!0,this.indexthis.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=i.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&e===r.Amp&&(this.state=i.BeforeEntity)},e.prototype.stateSpecialStartSequence=function(e){var t=this.sequenceIndex===this.currentSequence.length;if(t?l(e):(32|e)===this.currentSequence[this.sequenceIndex]){if(!t)return void this.sequenceIndex++}else this.isSpecial=!1;this.sequenceIndex=0,this.state=i.InTagName,this.stateInTagName(e)},e.prototype.stateInSpecialTag=function(e){if(this.sequenceIndex===this.currentSequence.length){if(e===r.Gt||s(e)){var t=this.index-this.currentSequence.length;if(this.sectionStart=r.LowerA&&e<=r.LowerZ||e>=r.UpperA&&e<=r.UpperZ}(e)},e.prototype.startSpecial=function(e,t){this.isSpecial=!0,this.currentSequence=e,this.sequenceIndex=t,this.state=i.SpecialStartSequence},e.prototype.stateBeforeTagName=function(e){if(e===r.ExclamationMark)this.state=i.BeforeDeclaration,this.sectionStart=this.index+1;else if(e===r.Questionmark)this.state=i.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(e)){var t=32|e;this.sectionStart=this.index,this.xmlMode||t!==u.TitleEnd[2]?this.state=this.xmlMode||t!==u.ScriptEnd[2]?i.InTagName:i.BeforeSpecialS:this.startSpecial(u.TitleEnd,3)}else e===r.Slash?this.state=i.BeforeClosingTagName:(this.state=i.Text,this.stateText(e))},e.prototype.stateInTagName=function(e){l(e)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=i.BeforeAttributeName,this.stateBeforeAttributeName(e))},e.prototype.stateBeforeClosingTagName=function(e){s(e)||(e===r.Gt?this.state=i.Text:(this.state=this.isTagStartChar(e)?i.InClosingTagName:i.InSpecialComment,this.sectionStart=this.index))},e.prototype.stateInClosingTagName=function(e){(e===r.Gt||s(e))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=i.AfterClosingTagName,this.stateAfterClosingTagName(e))},e.prototype.stateAfterClosingTagName=function(e){(e===r.Gt||this.fastForwardTo(r.Gt))&&(this.state=i.Text,this.baseState=i.Text,this.sectionStart=this.index+1)},e.prototype.stateBeforeAttributeName=function(e){e===r.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=i.InSpecialTag,this.sequenceIndex=0):this.state=i.Text,this.baseState=this.state,this.sectionStart=this.index+1):e===r.Slash?this.state=i.InSelfClosingTag:s(e)||(this.state=i.InAttributeName,this.sectionStart=this.index)},e.prototype.stateInSelfClosingTag=function(e){e===r.Gt?(this.cbs.onselfclosingtag(this.index),this.state=i.Text,this.baseState=i.Text,this.sectionStart=this.index+1,this.isSpecial=!1):s(e)||(this.state=i.BeforeAttributeName,this.stateBeforeAttributeName(e))},e.prototype.stateInAttributeName=function(e){(e===r.Eq||l(e))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-1,this.state=i.AfterAttributeName,this.stateAfterAttributeName(e))},e.prototype.stateAfterAttributeName=function(e){e===r.Eq?this.state=i.BeforeAttributeValue:e===r.Slash||e===r.Gt?(this.cbs.onattribend(o.NoValue,this.index),this.state=i.BeforeAttributeName,this.stateBeforeAttributeName(e)):s(e)||(this.cbs.onattribend(o.NoValue,this.index),this.state=i.InAttributeName,this.sectionStart=this.index)},e.prototype.stateBeforeAttributeValue=function(e){e===r.DoubleQuote?(this.state=i.InAttributeValueDq,this.sectionStart=this.index+1):e===r.SingleQuote?(this.state=i.InAttributeValueSq,this.sectionStart=this.index+1):s(e)||(this.sectionStart=this.index,this.state=i.InAttributeValueNq,this.stateInAttributeValueNoQuotes(e))},e.prototype.handleInAttributeValue=function(e,t){e===t||!this.decodeEntities&&this.fastForwardTo(t)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(t===r.DoubleQuote?o.Double:o.Single,this.index),this.state=i.BeforeAttributeName):this.decodeEntities&&e===r.Amp&&(this.baseState=this.state,this.state=i.BeforeEntity)},e.prototype.stateInAttributeValueDoubleQuotes=function(e){this.handleInAttributeValue(e,r.DoubleQuote)},e.prototype.stateInAttributeValueSingleQuotes=function(e){this.handleInAttributeValue(e,r.SingleQuote)},e.prototype.stateInAttributeValueNoQuotes=function(e){s(e)||e===r.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(o.Unquoted,this.index),this.state=i.BeforeAttributeName,this.stateBeforeAttributeName(e)):this.decodeEntities&&e===r.Amp&&(this.baseState=this.state,this.state=i.BeforeEntity)},e.prototype.stateBeforeDeclaration=function(e){e===r.OpeningSquareBracket?(this.state=i.CDATASequence,this.sequenceIndex=0):this.state=e===r.Dash?i.BeforeComment:i.InDeclaration},e.prototype.stateInDeclaration=function(e){(e===r.Gt||this.fastForwardTo(r.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=i.Text,this.sectionStart=this.index+1)},e.prototype.stateInProcessingInstruction=function(e){(e===r.Gt||this.fastForwardTo(r.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=i.Text,this.sectionStart=this.index+1)},e.prototype.stateBeforeComment=function(e){e===r.Dash?(this.state=i.InCommentLike,this.currentSequence=u.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=i.InDeclaration},e.prototype.stateInSpecialComment=function(e){(e===r.Gt||this.fastForwardTo(r.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=i.Text,this.sectionStart=this.index+1)},e.prototype.stateBeforeSpecialS=function(e){var t=32|e;t===u.ScriptEnd[3]?this.startSpecial(u.ScriptEnd,4):t===u.StyleEnd[3]?this.startSpecial(u.StyleEnd,4):(this.state=i.InTagName,this.stateInTagName(e))},e.prototype.stateBeforeEntity=function(e){this.entityExcess=1,this.entityResult=0,e===r.Number?this.state=i.BeforeNumericEntity:e===r.Amp||(this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=i.InNamedEntity,this.stateInNamedEntity(e))},e.prototype.stateInNamedEntity=function(e){if(this.entityExcess+=1,this.trieIndex=(0,a.determineBranch)(this.entityTrie,this.trieCurrent,this.trieIndex+1,e),this.trieIndex<0)return this.emitNamedEntity(),void this.index--;this.trieCurrent=this.entityTrie[this.trieIndex];var t=this.trieCurrent&a.BinTrieFlags.VALUE_LENGTH;if(t){var n=(t>>14)-1;if(this.allowLegacyEntity()||e===r.Semi){var i=this.index-this.entityExcess+1;i>this.sectionStart&&this.emitPartial(this.sectionStart,i),this.entityResult=this.trieIndex,this.trieIndex+=n,this.entityExcess=0,this.sectionStart=this.index+1,0===n&&this.emitNamedEntity()}else this.trieIndex+=n}},e.prototype.emitNamedEntity=function(){if(this.state=this.baseState,0!==this.entityResult)switch((this.entityTrie[this.entityResult]&a.BinTrieFlags.VALUE_LENGTH)>>14){case 1:this.emitCodePoint(this.entityTrie[this.entityResult]&~a.BinTrieFlags.VALUE_LENGTH);break;case 2:this.emitCodePoint(this.entityTrie[this.entityResult+1]);break;case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}},e.prototype.stateBeforeNumericEntity=function(e){(32|e)===r.LowerX?(this.entityExcess++,this.state=i.InHexEntity):(this.state=i.InNumericEntity,this.stateInNumericEntity(e))},e.prototype.emitNumericEntity=function(e){var t=this.index-this.entityExcess-1;t+2+Number(this.state===i.InHexEntity)!==this.index&&(t>this.sectionStart&&this.emitPartial(this.sectionStart,t),this.sectionStart=this.index+Number(e),this.emitCodePoint((0,a.replaceCodePoint)(this.entityResult))),this.state=this.baseState},e.prototype.stateInNumericEntity=function(e){e===r.Semi?this.emitNumericEntity(!0):c(e)?(this.entityResult=10*this.entityResult+(e-r.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},e.prototype.stateInHexEntity=function(e){e===r.Semi?this.emitNumericEntity(!0):c(e)?(this.entityResult=16*this.entityResult+(e-r.Zero),this.entityExcess++):!function(e){return e>=r.UpperA&&e<=r.UpperF||e>=r.LowerA&&e<=r.LowerF}(e)?(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--):(this.entityResult=16*this.entityResult+((32|e)-r.LowerA+10),this.entityExcess++)},e.prototype.allowLegacyEntity=function(){return!this.xmlMode&&(this.baseState===i.Text||this.baseState===i.InSpecialTag)},e.prototype.cleanup=function(){this.running&&this.sectionStart!==this.index&&(this.state===i.Text||this.state===i.InSpecialTag&&0===this.sequenceIndex?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):this.state!==i.InAttributeValueDq&&this.state!==i.InAttributeValueSq&&this.state!==i.InAttributeValueNq||(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))},e.prototype.shouldContinue=function(){return this.index{ +*/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 o(e){for(var t=1;t0){var t=s[s.length-1];t!==e&&t.pause()}var n=s.indexOf(e);-1===n||s.splice(n,1),s.push(e)},deactivateTrap:function(e){var t=s.indexOf(e);-1!==t&&s.splice(t,1),s.length>0&&s[s.length-1].unpause()}}),c=function(e){return setTimeout(e,0)},u=function(e,t){var n=-1;return e.every((function(e,r){return!t(e)||(n=r,!1)})),n},d=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1?n-1:0),o=1;o=0)e=i.activeElement;else{var t=s.tabbableGroups[0];e=t&&t.firstTabbableNode||g("fallbackFocus")}if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},y=function(){if(s.containerGroups=s.containers.map((function(e){var t=(0,r.tabbable)(e,a.tabbableOptions),n=(0,r.focusable)(e,a.tabbableOptions);return{container:e,tabbableNodes:t,focusableNodes:n,firstTabbableNode:t.length>0?t[0]:null,lastTabbableNode:t.length>0?t[t.length-1]:null,nextTabbableNode:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=n.findIndex((function(t){return t===e}));if(!(i<0))return t?n.slice(i+1).find((function(e){return(0,r.isTabbable)(e,a.tabbableOptions)})):n.slice(0,i).reverse().find((function(e){return(0,r.isTabbable)(e,a.tabbableOptions)}))}}})),s.tabbableGroups=s.containerGroups.filter((function(e){return e.tabbableNodes.length>0})),s.tabbableGroups.length<=0&&!g("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},v=function e(t){!1!==t&&t!==i.activeElement&&(t&&t.focus?(t.focus({preventScroll:!!a.preventScroll}),s.mostRecentlyFocusedNode=t,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(t)&&t.select()):e(m()))},b=function(e){var t=g("setReturnFocus",e);return t||!1!==t&&e},w=function(e){var t=h(e);f(t)>=0||(d(a.clickOutsideDeactivates,e)?n.deactivate({returnFocus:a.returnFocusOnDeactivate&&!(0,r.isFocusable)(t,a.tabbableOptions)}):d(a.allowOutsideClick,e)||e.preventDefault())},x=function(e){var t=h(e),n=f(t)>=0;n||t instanceof Document?n&&(s.mostRecentlyFocusedNode=t):(e.stopImmediatePropagation(),v(s.mostRecentlyFocusedNode||m()))},A=function(e){if(function(e){return"Escape"===e.key||"Esc"===e.key||27===e.keyCode}(e)&&!1!==d(a.escapeDeactivates,e))return e.preventDefault(),void n.deactivate();(function(e){return"Tab"===e.key||9===e.keyCode})(e)&&function(e){var t=h(e);y();var n=null;if(s.tabbableGroups.length>0){var i=f(t),o=i>=0?s.containerGroups[i]:void 0;if(i<0)n=e.shiftKey?s.tabbableGroups[s.tabbableGroups.length-1].lastTabbableNode:s.tabbableGroups[0].firstTabbableNode;else if(e.shiftKey){var l=u(s.tabbableGroups,(function(e){var n=e.firstTabbableNode;return t===n}));if(l<0&&(o.container===t||(0,r.isFocusable)(t,a.tabbableOptions)&&!(0,r.isTabbable)(t,a.tabbableOptions)&&!o.nextTabbableNode(t,!1))&&(l=i),l>=0){var c=0===l?s.tabbableGroups.length-1:l-1;n=s.tabbableGroups[c].lastTabbableNode}}else{var d=u(s.tabbableGroups,(function(e){var n=e.lastTabbableNode;return t===n}));if(d<0&&(o.container===t||(0,r.isFocusable)(t,a.tabbableOptions)&&!(0,r.isTabbable)(t,a.tabbableOptions)&&!o.nextTabbableNode(t))&&(d=i),d>=0){var p=d===s.tabbableGroups.length-1?0:d+1;n=s.tabbableGroups[p].firstTabbableNode}}}else n=g("fallbackFocus");n&&(e.preventDefault(),v(n))}(e)},S=function(e){var t=h(e);f(t)>=0||d(a.clickOutsideDeactivates,e)||d(a.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},C=function(){if(s.active)return l.activateTrap(n),s.delayInitialFocusTimer=a.delayInitialFocus?c((function(){v(m())})):v(m()),i.addEventListener("focusin",x,!0),i.addEventListener("mousedown",w,{capture:!0,passive:!1}),i.addEventListener("touchstart",w,{capture:!0,passive:!1}),i.addEventListener("click",S,{capture:!0,passive:!1}),i.addEventListener("keydown",A,{capture:!0,passive:!1}),n},E=function(){if(s.active)return i.removeEventListener("focusin",x,!0),i.removeEventListener("mousedown",w,!0),i.removeEventListener("touchstart",w,!0),i.removeEventListener("click",S,!0),i.removeEventListener("keydown",A,!0),n};return(n={get active(){return s.active},get paused(){return s.paused},activate:function(e){if(s.active)return this;var t=p(e,"onActivate"),n=p(e,"onPostActivate"),r=p(e,"checkCanFocusTrap");r||y(),s.active=!0,s.paused=!1,s.nodeFocusedBeforeActivation=i.activeElement,t&&t();var o=function(){r&&y(),C(),n&&n()};return r?(r(s.containers.concat()).then(o,o),this):(o(),this)},deactivate:function(e){if(!s.active)return this;var t=o({onDeactivate:a.onDeactivate,onPostDeactivate:a.onPostDeactivate,checkCanReturnFocus:a.checkCanReturnFocus},e);clearTimeout(s.delayInitialFocusTimer),s.delayInitialFocusTimer=void 0,E(),s.active=!1,s.paused=!1,l.deactivateTrap(n);var r=p(t,"onDeactivate"),i=p(t,"onPostDeactivate"),u=p(t,"checkCanReturnFocus"),d=p(t,"returnFocus","returnFocusOnDeactivate");r&&r();var h=function(){c((function(){d&&v(b(s.nodeFocusedBeforeActivation)),i&&i()}))};return d&&u?(u(b(s.nodeFocusedBeforeActivation)).then(h,h),this):(h(),this)},pause:function(){return s.paused||!s.active||(s.paused=!0,E()),this},unpause:function(){return s.paused&&s.active?(s.paused=!1,y(),C(),this):this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return s.containers=t.map((function(e){return"string"==typeof e?i.querySelector(e):e})),s.active&&y(),this}}).updateContainerElements(e),n}},78535:(e,t,n)=>{"use strict";var r=n(48795),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(f){var i=p(n);i&&i!==f&&e(t,i,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var s=l(t),g=l(n),m=0;m{e.exports={CASE_SENSITIVE_TAG_NAMES:["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussainBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"]}},44371:(e,t,n)=>{var r="html",i="head",o="body",a=/<([a-zA-Z]+[0-9]?)/,s=//i,l=//i,c=function(){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},u=function(){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")};if("function"==typeof window.DOMParser){var d=new window.DOMParser;c=u=function(e,t){return t&&(e="<"+t+">"+e+""),d.parseFromString(e,"text/html")}}if(document.implementation){var h=n(86644).isIE,p=document.implementation.createHTMLDocument(h()?"html-dom-parser":void 0);c=function(e,t){return t?(p.documentElement.getElementsByTagName(t)[0].innerHTML=e,p):(p.documentElement.innerHTML=e,p)}}var f,g=document.createElement("template");g.content&&(f=function(e){return g.innerHTML=e,g.content.childNodes}),e.exports=function(e){var t,n,d,h,p=e.match(a);switch(p&&p[1]&&(t=p[1].toLowerCase()),t){case r:return n=u(e),s.test(e)||(d=n.getElementsByTagName(i)[0])&&d.parentNode.removeChild(d),l.test(e)||(d=n.getElementsByTagName(o)[0])&&d.parentNode.removeChild(d),n.getElementsByTagName(r);case i:case o:return h=c(e).getElementsByTagName(t),l.test(e)&&s.test(e)?h[0].parentNode.childNodes:h;default:return f?f(e):c(e,o).getElementsByTagName(o)[0].childNodes}}},43136:(e,t,n)=>{var r=n(44371),i=n(86644).formatDOM,o=/<(![a-zA-Z\s]+)>/;e.exports=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(""===e)return[];var t,n=e.match(o);return n&&n[1]&&(t=n[1]),i(r(e),null,t)}},86644:(e,t,n)=>{for(var r,i=n(71605),o=n(56679),a=i.CASE_SENSITIVE_TAG_NAMES,s=o.Comment,l=o.Element,c=o.ProcessingInstruction,u=o.Text,d={},h=0,p=a.length;h{"use strict";n.d(t,{A:()=>h});var r=n(77835),i=n.n(r),o=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function a(e){var t={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},n=e.match(/<\/?([^\s]+?)[/\s>]/);if(n&&(t.name=n[1],(i()[n[1]]||"/"===e.charAt(e.length-2))&&(t.voidElement=!0),t.name.startsWith("!--"))){var r=e.indexOf("--\x3e");return{type:"comment",comment:-1!==r?e.slice(4,r):""}}for(var a=new RegExp(o),s=null;null!==(s=a.exec(e));)if(s[0].trim())if(s[1]){var l=s[1].trim(),c=[l,""];l.indexOf("=")>-1&&(c=l.split("=")),t.attrs[c[0]]=c[1],a.lastIndex--}else s[2]&&(t.attrs[s[2]]=s[3].trim().substring(1,s[3].length-1));return t}var s=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,l=/^\s*$/,c=Object.create(null);function u(e,t){switch(t.type){case"text":return e+t.content;case"tag":return e+="<"+t.name+(t.attrs?function(e){var t=[];for(var n in e)t.push(n+'="'+e[n]+'"');return t.length?" "+t.join(" "):""}(t.attrs):"")+(t.voidElement?"/>":">"),t.voidElement?e:e+t.children.reduce(u,"")+"";case"comment":return e+"\x3c!--"+t.comment+"--\x3e"}}var d={parse:function(e,t){t||(t={}),t.components||(t.components=c);var n,r=[],i=[],o=-1,u=!1;if(0!==e.indexOf("<")){var d=e.indexOf("<");r.push({type:"text",content:-1===d?e:e.substring(0,d)})}return e.replace(s,(function(s,c){if(u){if(s!=="")return;u=!1}var d,h="/"!==s.charAt(1),p=s.startsWith("\x3c!--"),f=c+s.length,g=e.charAt(f);if(p){var m=a(s);return o<0?(r.push(m),r):((d=i[o]).children.push(m),r)}if(h&&(o++,"tag"===(n=a(s)).type&&t.components[n.name]&&(n.type="component",u=!0),n.voidElement||u||!g||"<"===g||n.children.push({type:"text",content:e.slice(f,e.indexOf("<",f))}),0===o&&r.push(n),(d=i[o-1])&&d.children.push(n),i[o]=n),(!h||n.voidElement)&&(o>-1&&(n.voidElement||n.name===s.slice(2,-1))&&(o--,n=-1===o?r:i[o]),!u&&"<"!==g&&g)){d=-1===o?r:i[o].children;var y=e.indexOf("<",f),v=e.slice(f,-1===y?void 0:y);l.test(v)&&(v=" "),(y>-1&&o+d.length>=0||" "!==v)&&d.push({type:"text",content:v})}})),r},stringify:function(e){return e.reduce((function(e,t){return e+u("",t)}),"")}};const h=d},31082:(e,t,n)=>{var r=n(48259),i=n(49156),o=n(43136);o="function"==typeof o.default?o.default:o;var a={lowerCaseAttributeNames:!1};function s(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return""===e?[]:r(o(e,(t=t||{}).htmlparser2||a),t)}s.domToReact=r,s.htmlToDOM=o,s.attributesToProps=i,s.Element=n(62679).Element,e.exports=s,e.exports.default=s},49156:(e,t,n)=>{var r=n(83379),i=n(38354);function o(e){return r.possibleStandardNames[e]}e.exports=function(e){var t,n,a,s,l,c={},u=(e=e||{}).type&&{reset:!0,submit:!0}[e.type];for(t in e)if(a=e[t],r.isCustomAttribute(t))c[t]=a;else if(s=o(n=t.toLowerCase()))switch(l=r.getPropertyInfo(s),"checked"!==s&&"value"!==s||u||(s=o("default"+n)),c[s]=a,l&&l.type){case r.BOOLEAN:c[s]=!0;break;case r.OVERLOADED_BOOLEAN:""===a&&(c[s]=!0)}else i.PRESERVE_CUSTOM_ATTRIBUTES&&(c[t]=a);return i.setStyleProp(e.style,c),c}},48259:(e,t,n)=>{var r=n(30538),i=n(49156),o=n(38354),a=o.setStyleProp,s=o.canTextBeChildOfNode;function l(e){return o.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&o.isCustomComponent(e.name,e.attribs)}e.exports=function e(t,n){for(var o,c,u,d,h,p=(n=n||{}).library||r,f=p.cloneElement,g=p.createElement,m=p.isValidElement,y=[],v="function"==typeof n.replace,b=n.trim,w=0,x=t.length;w1&&(u=f(u,{key:u.key||w})),y.push(u);else if("text"!==o.type){switch(d=o.attribs,l(o)?a(d.style,d):d&&(d=i(d)),h=null,o.type){case"script":case"style":o.children[0]&&(d.dangerouslySetInnerHTML={__html:o.children[0].data});break;case"tag":"textarea"===o.name&&o.children[0]?d.defaultValue=o.children[0].data:o.children&&o.children.length&&(h=e(o.children,n));break;default:continue}x>1&&(d.key=w),y.push(g(o.name,d,h))}else{if((c=!o.data.trim().length)&&o.parent&&!s(o.parent))continue;if(b&&c)continue;y.push(o.data)}return 1===y.length?y[0]:y}},38354:(e,t,n)=>{var r=n(30538),i=n(49115).default;var o={reactCompat:!0};var a=r.version.split(".")[0]>=16,s=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);e.exports={PRESERVE_CUSTOM_ATTRIBUTES:a,invertObject:function(e,t){if(!e||"object"!=typeof e)throw new TypeError("First argument must be an object");var n,r,i="function"==typeof t,o={},a={};for(n in e)r=e[n],i&&(o=t(n,r))&&2===o.length?a[o[0]]=o[1]:"string"==typeof r&&(a[r]=n);return a},isCustomComponent:function(e,t){if(-1===e.indexOf("-"))return t&&"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}},setStyleProp:function(e,t){if(null!=e)try{t.style=i(e,o)}catch(e){t.style={}}},canTextBeChildOfNode:function(e){return!s.has(e.name)},elementsWithNoTextChildren:s}},3328:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Parser=void 0;var a=o(n(24602)),s=n(37118),l=new Set(["input","option","optgroup","select","button","datalist","textarea"]),c=new Set(["p"]),u=new Set(["thead","tbody"]),d=new Set(["dd","dt"]),h=new Set(["rt","rp"]),p=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",c],["h1",c],["h2",c],["h3",c],["h4",c],["h5",c],["h6",c],["select",l],["input",l],["output",l],["button",l],["datalist",l],["textarea",l],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",d],["dt",d],["address",c],["article",c],["aside",c],["blockquote",c],["details",c],["div",c],["dl",c],["fieldset",c],["figcaption",c],["figure",c],["footer",c],["form",c],["header",c],["hr",c],["main",c],["nav",c],["ol",c],["pre",c],["section",c],["table",c],["ul",c],["rt",h],["rp",h],["tbody",u],["tfoot",u]]),f=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),g=new Set(["math","svg"]),m=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),y=/\s|\//,v=function(){function e(e,t){var n,r,i,o,s;void 0===t&&(t={}),this.options=t,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=null!=e?e:{},this.lowerCaseTagNames=null!==(n=t.lowerCaseTags)&&void 0!==n?n:!t.xmlMode,this.lowerCaseAttributeNames=null!==(r=t.lowerCaseAttributeNames)&&void 0!==r?r:!t.xmlMode,this.tokenizer=new(null!==(i=t.Tokenizer)&&void 0!==i?i:a.default)(this.options,this),null===(s=(o=this.cbs).onparserinit)||void 0===s||s.call(o,this)}return e.prototype.ontext=function(e,t){var n,r,i=this.getSlice(e,t);this.endIndex=t-1,null===(r=(n=this.cbs).ontext)||void 0===r||r.call(n,i),this.startIndex=t},e.prototype.ontextentity=function(e){var t,n,r=this.tokenizer.getSectionStart();this.endIndex=r-1,null===(n=(t=this.cbs).ontext)||void 0===n||n.call(t,(0,s.fromCodePoint)(e)),this.startIndex=r},e.prototype.isVoidElement=function(e){return!this.options.xmlMode&&f.has(e)},e.prototype.onopentagname=function(e,t){this.endIndex=t;var n=this.getSlice(e,t);this.lowerCaseTagNames&&(n=n.toLowerCase()),this.emitOpenTag(n)},e.prototype.emitOpenTag=function(e){var t,n,r,i;this.openTagStart=this.startIndex,this.tagname=e;var o=!this.options.xmlMode&&p.get(e);if(o)for(;this.stack.length>0&&o.has(this.stack[this.stack.length-1]);){var a=this.stack.pop();null===(n=(t=this.cbs).onclosetag)||void 0===n||n.call(t,a,!0)}this.isVoidElement(e)||(this.stack.push(e),g.has(e)?this.foreignContext.push(!0):m.has(e)&&this.foreignContext.push(!1)),null===(i=(r=this.cbs).onopentagname)||void 0===i||i.call(r,e),this.cbs.onopentag&&(this.attribs={})},e.prototype.endOpenTag=function(e){var t,n;this.startIndex=this.openTagStart,this.attribs&&(null===(n=(t=this.cbs).onopentag)||void 0===n||n.call(t,this.tagname,this.attribs,e),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""},e.prototype.onopentagend=function(e){this.endIndex=e,this.endOpenTag(!1),this.startIndex=e+1},e.prototype.onclosetag=function(e,t){var n,r,i,o,a,s;this.endIndex=t;var l=this.getSlice(e,t);if(this.lowerCaseTagNames&&(l=l.toLowerCase()),(g.has(l)||m.has(l))&&this.foreignContext.pop(),this.isVoidElement(l))this.options.xmlMode||"br"!==l||(null===(r=(n=this.cbs).onopentagname)||void 0===r||r.call(n,"br"),null===(o=(i=this.cbs).onopentag)||void 0===o||o.call(i,"br",{},!0),null===(s=(a=this.cbs).onclosetag)||void 0===s||s.call(a,"br",!1));else{var c=this.stack.lastIndexOf(l);if(-1!==c)if(this.cbs.onclosetag)for(var u=this.stack.length-c;u--;)this.cbs.onclosetag(this.stack.pop(),0!==u);else this.stack.length=c;else this.options.xmlMode||"p"!==l||(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=t+1},e.prototype.onselfclosingtag=function(e){this.endIndex=e,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=e+1):this.onopentagend(e)},e.prototype.closeCurrentTag=function(e){var t,n,r=this.tagname;this.endOpenTag(e),this.stack[this.stack.length-1]===r&&(null===(n=(t=this.cbs).onclosetag)||void 0===n||n.call(t,r,!e),this.stack.pop())},e.prototype.onattribname=function(e,t){this.startIndex=e;var n=this.getSlice(e,t);this.attribname=this.lowerCaseAttributeNames?n.toLowerCase():n},e.prototype.onattribdata=function(e,t){this.attribvalue+=this.getSlice(e,t)},e.prototype.onattribentity=function(e){this.attribvalue+=(0,s.fromCodePoint)(e)},e.prototype.onattribend=function(e,t){var n,r;this.endIndex=t,null===(r=(n=this.cbs).onattribute)||void 0===r||r.call(n,this.attribname,this.attribvalue,e===a.QuoteType.Double?'"':e===a.QuoteType.Single?"'":e===a.QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""},e.prototype.getInstructionName=function(e){var t=e.search(y),n=t<0?e:e.substr(0,t);return this.lowerCaseTagNames&&(n=n.toLowerCase()),n},e.prototype.ondeclaration=function(e,t){this.endIndex=t;var n=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){var r=this.getInstructionName(n);this.cbs.onprocessinginstruction("!".concat(r),"!".concat(n))}this.startIndex=t+1},e.prototype.onprocessinginstruction=function(e,t){this.endIndex=t;var n=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){var r=this.getInstructionName(n);this.cbs.onprocessinginstruction("?".concat(r),"?".concat(n))}this.startIndex=t+1},e.prototype.oncomment=function(e,t,n){var r,i,o,a;this.endIndex=t,null===(i=(r=this.cbs).oncomment)||void 0===i||i.call(r,this.getSlice(e,t-n)),null===(a=(o=this.cbs).oncommentend)||void 0===a||a.call(o),this.startIndex=t+1},e.prototype.oncdata=function(e,t,n){var r,i,o,a,s,l,c,u,d,h;this.endIndex=t;var p=this.getSlice(e,t-n);this.options.xmlMode||this.options.recognizeCDATA?(null===(i=(r=this.cbs).oncdatastart)||void 0===i||i.call(r),null===(a=(o=this.cbs).ontext)||void 0===a||a.call(o,p),null===(l=(s=this.cbs).oncdataend)||void 0===l||l.call(s)):(null===(u=(c=this.cbs).oncomment)||void 0===u||u.call(c,"[CDATA[".concat(p,"]]")),null===(h=(d=this.cbs).oncommentend)||void 0===h||h.call(d)),this.startIndex=t+1},e.prototype.onend=function(){var e,t;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(var n=this.stack.length;n>0;this.cbs.onclosetag(this.stack[--n],!0));}null===(t=(e=this.cbs).onend)||void 0===t||t.call(e)},e.prototype.reset=function(){var e,t,n,r;null===(t=(e=this.cbs).onreset)||void 0===t||t.call(e),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,null===(r=(n=this.cbs).onparserinit)||void 0===r||r.call(n,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1},e.prototype.parseComplete=function(e){this.reset(),this.end(e)},e.prototype.getSlice=function(e,t){for(;e-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();for(var n=this.buffers[0].slice(e-this.bufferOffset,t-this.bufferOffset);t-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),n+=this.buffers[0].slice(0,t-this.bufferOffset);return n},e.prototype.shiftBuffer=function(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()},e.prototype.write=function(e){var t,n;this.ended?null===(n=(t=this.cbs).onerror)||void 0===n||n.call(t,new Error(".write() after done!")):(this.buffers.push(e),this.tokenizer.running&&(this.tokenizer.write(e),this.writeIndex++))},e.prototype.end=function(e){var t,n;this.ended?null===(n=(t=this.cbs).onerror)||void 0===n||n.call(t,new Error(".end() after done!")):(e&&this.write(e),this.ended=!0,this.tokenizer.end())},e.prototype.pause=function(){this.tokenizer.pause()},e.prototype.resume=function(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QuoteType=void 0;var r,i,o,a=n(37118);function s(e){return e===r.Space||e===r.NewLine||e===r.Tab||e===r.FormFeed||e===r.CarriageReturn}function l(e){return e===r.Slash||e===r.Gt||s(e)}function c(e){return e>=r.Zero&&e<=r.Nine}!function(e){e[e.Tab=9]="Tab",e[e.NewLine=10]="NewLine",e[e.FormFeed=12]="FormFeed",e[e.CarriageReturn=13]="CarriageReturn",e[e.Space=32]="Space",e[e.ExclamationMark=33]="ExclamationMark",e[e.Number=35]="Number",e[e.Amp=38]="Amp",e[e.SingleQuote=39]="SingleQuote",e[e.DoubleQuote=34]="DoubleQuote",e[e.Dash=45]="Dash",e[e.Slash=47]="Slash",e[e.Zero=48]="Zero",e[e.Nine=57]="Nine",e[e.Semi=59]="Semi",e[e.Lt=60]="Lt",e[e.Eq=61]="Eq",e[e.Gt=62]="Gt",e[e.Questionmark=63]="Questionmark",e[e.UpperA=65]="UpperA",e[e.LowerA=97]="LowerA",e[e.UpperF=70]="UpperF",e[e.LowerF=102]="LowerF",e[e.UpperZ=90]="UpperZ",e[e.LowerZ=122]="LowerZ",e[e.LowerX=120]="LowerX",e[e.OpeningSquareBracket=91]="OpeningSquareBracket"}(r||(r={})),function(e){e[e.Text=1]="Text",e[e.BeforeTagName=2]="BeforeTagName",e[e.InTagName=3]="InTagName",e[e.InSelfClosingTag=4]="InSelfClosingTag",e[e.BeforeClosingTagName=5]="BeforeClosingTagName",e[e.InClosingTagName=6]="InClosingTagName",e[e.AfterClosingTagName=7]="AfterClosingTagName",e[e.BeforeAttributeName=8]="BeforeAttributeName",e[e.InAttributeName=9]="InAttributeName",e[e.AfterAttributeName=10]="AfterAttributeName",e[e.BeforeAttributeValue=11]="BeforeAttributeValue",e[e.InAttributeValueDq=12]="InAttributeValueDq",e[e.InAttributeValueSq=13]="InAttributeValueSq",e[e.InAttributeValueNq=14]="InAttributeValueNq",e[e.BeforeDeclaration=15]="BeforeDeclaration",e[e.InDeclaration=16]="InDeclaration",e[e.InProcessingInstruction=17]="InProcessingInstruction",e[e.BeforeComment=18]="BeforeComment",e[e.CDATASequence=19]="CDATASequence",e[e.InSpecialComment=20]="InSpecialComment",e[e.InCommentLike=21]="InCommentLike",e[e.BeforeSpecialS=22]="BeforeSpecialS",e[e.SpecialStartSequence=23]="SpecialStartSequence",e[e.InSpecialTag=24]="InSpecialTag",e[e.BeforeEntity=25]="BeforeEntity",e[e.BeforeNumericEntity=26]="BeforeNumericEntity",e[e.InNamedEntity=27]="InNamedEntity",e[e.InNumericEntity=28]="InNumericEntity",e[e.InHexEntity=29]="InHexEntity"}(i||(i={})),function(e){e[e.NoValue=0]="NoValue",e[e.Unquoted=1]="Unquoted",e[e.Single=2]="Single",e[e.Double=3]="Double"}(o=t.QuoteType||(t.QuoteType={}));var u={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])},d=function(){function e(e,t){var n=e.xmlMode,r=void 0!==n&&n,o=e.decodeEntities,s=void 0===o||o;this.cbs=t,this.state=i.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=i.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=r,this.decodeEntities=s,this.entityTrie=r?a.xmlDecodeTree:a.htmlDecodeTree}return e.prototype.reset=function(){this.state=i.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=i.Text,this.currentSequence=void 0,this.running=!0,this.offset=0},e.prototype.write=function(e){this.offset+=this.buffer.length,this.buffer=e,this.parse()},e.prototype.end=function(){this.running&&this.finish()},e.prototype.pause=function(){this.running=!1},e.prototype.resume=function(){this.running=!0,this.indexthis.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=i.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&e===r.Amp&&(this.state=i.BeforeEntity)},e.prototype.stateSpecialStartSequence=function(e){var t=this.sequenceIndex===this.currentSequence.length;if(t?l(e):(32|e)===this.currentSequence[this.sequenceIndex]){if(!t)return void this.sequenceIndex++}else this.isSpecial=!1;this.sequenceIndex=0,this.state=i.InTagName,this.stateInTagName(e)},e.prototype.stateInSpecialTag=function(e){if(this.sequenceIndex===this.currentSequence.length){if(e===r.Gt||s(e)){var t=this.index-this.currentSequence.length;if(this.sectionStart=r.LowerA&&e<=r.LowerZ||e>=r.UpperA&&e<=r.UpperZ}(e)},e.prototype.startSpecial=function(e,t){this.isSpecial=!0,this.currentSequence=e,this.sequenceIndex=t,this.state=i.SpecialStartSequence},e.prototype.stateBeforeTagName=function(e){if(e===r.ExclamationMark)this.state=i.BeforeDeclaration,this.sectionStart=this.index+1;else if(e===r.Questionmark)this.state=i.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(e)){var t=32|e;this.sectionStart=this.index,this.xmlMode||t!==u.TitleEnd[2]?this.state=this.xmlMode||t!==u.ScriptEnd[2]?i.InTagName:i.BeforeSpecialS:this.startSpecial(u.TitleEnd,3)}else e===r.Slash?this.state=i.BeforeClosingTagName:(this.state=i.Text,this.stateText(e))},e.prototype.stateInTagName=function(e){l(e)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=i.BeforeAttributeName,this.stateBeforeAttributeName(e))},e.prototype.stateBeforeClosingTagName=function(e){s(e)||(e===r.Gt?this.state=i.Text:(this.state=this.isTagStartChar(e)?i.InClosingTagName:i.InSpecialComment,this.sectionStart=this.index))},e.prototype.stateInClosingTagName=function(e){(e===r.Gt||s(e))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=i.AfterClosingTagName,this.stateAfterClosingTagName(e))},e.prototype.stateAfterClosingTagName=function(e){(e===r.Gt||this.fastForwardTo(r.Gt))&&(this.state=i.Text,this.baseState=i.Text,this.sectionStart=this.index+1)},e.prototype.stateBeforeAttributeName=function(e){e===r.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=i.InSpecialTag,this.sequenceIndex=0):this.state=i.Text,this.baseState=this.state,this.sectionStart=this.index+1):e===r.Slash?this.state=i.InSelfClosingTag:s(e)||(this.state=i.InAttributeName,this.sectionStart=this.index)},e.prototype.stateInSelfClosingTag=function(e){e===r.Gt?(this.cbs.onselfclosingtag(this.index),this.state=i.Text,this.baseState=i.Text,this.sectionStart=this.index+1,this.isSpecial=!1):s(e)||(this.state=i.BeforeAttributeName,this.stateBeforeAttributeName(e))},e.prototype.stateInAttributeName=function(e){(e===r.Eq||l(e))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-1,this.state=i.AfterAttributeName,this.stateAfterAttributeName(e))},e.prototype.stateAfterAttributeName=function(e){e===r.Eq?this.state=i.BeforeAttributeValue:e===r.Slash||e===r.Gt?(this.cbs.onattribend(o.NoValue,this.index),this.state=i.BeforeAttributeName,this.stateBeforeAttributeName(e)):s(e)||(this.cbs.onattribend(o.NoValue,this.index),this.state=i.InAttributeName,this.sectionStart=this.index)},e.prototype.stateBeforeAttributeValue=function(e){e===r.DoubleQuote?(this.state=i.InAttributeValueDq,this.sectionStart=this.index+1):e===r.SingleQuote?(this.state=i.InAttributeValueSq,this.sectionStart=this.index+1):s(e)||(this.sectionStart=this.index,this.state=i.InAttributeValueNq,this.stateInAttributeValueNoQuotes(e))},e.prototype.handleInAttributeValue=function(e,t){e===t||!this.decodeEntities&&this.fastForwardTo(t)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(t===r.DoubleQuote?o.Double:o.Single,this.index),this.state=i.BeforeAttributeName):this.decodeEntities&&e===r.Amp&&(this.baseState=this.state,this.state=i.BeforeEntity)},e.prototype.stateInAttributeValueDoubleQuotes=function(e){this.handleInAttributeValue(e,r.DoubleQuote)},e.prototype.stateInAttributeValueSingleQuotes=function(e){this.handleInAttributeValue(e,r.SingleQuote)},e.prototype.stateInAttributeValueNoQuotes=function(e){s(e)||e===r.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(o.Unquoted,this.index),this.state=i.BeforeAttributeName,this.stateBeforeAttributeName(e)):this.decodeEntities&&e===r.Amp&&(this.baseState=this.state,this.state=i.BeforeEntity)},e.prototype.stateBeforeDeclaration=function(e){e===r.OpeningSquareBracket?(this.state=i.CDATASequence,this.sequenceIndex=0):this.state=e===r.Dash?i.BeforeComment:i.InDeclaration},e.prototype.stateInDeclaration=function(e){(e===r.Gt||this.fastForwardTo(r.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=i.Text,this.sectionStart=this.index+1)},e.prototype.stateInProcessingInstruction=function(e){(e===r.Gt||this.fastForwardTo(r.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=i.Text,this.sectionStart=this.index+1)},e.prototype.stateBeforeComment=function(e){e===r.Dash?(this.state=i.InCommentLike,this.currentSequence=u.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=i.InDeclaration},e.prototype.stateInSpecialComment=function(e){(e===r.Gt||this.fastForwardTo(r.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=i.Text,this.sectionStart=this.index+1)},e.prototype.stateBeforeSpecialS=function(e){var t=32|e;t===u.ScriptEnd[3]?this.startSpecial(u.ScriptEnd,4):t===u.StyleEnd[3]?this.startSpecial(u.StyleEnd,4):(this.state=i.InTagName,this.stateInTagName(e))},e.prototype.stateBeforeEntity=function(e){this.entityExcess=1,this.entityResult=0,e===r.Number?this.state=i.BeforeNumericEntity:e===r.Amp||(this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=i.InNamedEntity,this.stateInNamedEntity(e))},e.prototype.stateInNamedEntity=function(e){if(this.entityExcess+=1,this.trieIndex=(0,a.determineBranch)(this.entityTrie,this.trieCurrent,this.trieIndex+1,e),this.trieIndex<0)return this.emitNamedEntity(),void this.index--;this.trieCurrent=this.entityTrie[this.trieIndex];var t=this.trieCurrent&a.BinTrieFlags.VALUE_LENGTH;if(t){var n=(t>>14)-1;if(this.allowLegacyEntity()||e===r.Semi){var i=this.index-this.entityExcess+1;i>this.sectionStart&&this.emitPartial(this.sectionStart,i),this.entityResult=this.trieIndex,this.trieIndex+=n,this.entityExcess=0,this.sectionStart=this.index+1,0===n&&this.emitNamedEntity()}else this.trieIndex+=n}},e.prototype.emitNamedEntity=function(){if(this.state=this.baseState,0!==this.entityResult)switch((this.entityTrie[this.entityResult]&a.BinTrieFlags.VALUE_LENGTH)>>14){case 1:this.emitCodePoint(this.entityTrie[this.entityResult]&~a.BinTrieFlags.VALUE_LENGTH);break;case 2:this.emitCodePoint(this.entityTrie[this.entityResult+1]);break;case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}},e.prototype.stateBeforeNumericEntity=function(e){(32|e)===r.LowerX?(this.entityExcess++,this.state=i.InHexEntity):(this.state=i.InNumericEntity,this.stateInNumericEntity(e))},e.prototype.emitNumericEntity=function(e){var t=this.index-this.entityExcess-1;t+2+Number(this.state===i.InHexEntity)!==this.index&&(t>this.sectionStart&&this.emitPartial(this.sectionStart,t),this.sectionStart=this.index+Number(e),this.emitCodePoint((0,a.replaceCodePoint)(this.entityResult))),this.state=this.baseState},e.prototype.stateInNumericEntity=function(e){e===r.Semi?this.emitNumericEntity(!0):c(e)?(this.entityResult=10*this.entityResult+(e-r.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},e.prototype.stateInHexEntity=function(e){e===r.Semi?this.emitNumericEntity(!0):c(e)?(this.entityResult=16*this.entityResult+(e-r.Zero),this.entityExcess++):!function(e){return e>=r.UpperA&&e<=r.UpperF||e>=r.LowerA&&e<=r.LowerF}(e)?(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--):(this.entityResult=16*this.entityResult+((32|e)-r.LowerA+10),this.entityExcess++)},e.prototype.allowLegacyEntity=function(){return!this.xmlMode&&(this.baseState===i.Text||this.baseState===i.InSpecialTag)},e.prototype.cleanup=function(){this.running&&this.sectionStart!==this.index&&(this.state===i.Text||this.state===i.InSpecialTag&&0===this.sequenceIndex?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):this.state!==i.InAttributeValueDq&&this.state!==i.InAttributeValueSq&&this.state!==i.InAttributeValueNq||(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))},e.prototype.shouldContinue=function(){return this.index{ /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */ -t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<>1,u=-7,d=n?i-1:0,h=n?-1:1,p=e[t+d];for(d+=h,o=p&(1<<-u)-1,p>>=-u,u+=s;u>0;o=256*o+e[t+d],d+=h,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=r;u>0;a=256*a+e[t+d],d+=h,u-=8);if(0===o)o=1-c;else{if(o===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),o-=c}return(p?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,l,c=8*o-i-1,u=(1<>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,f=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+d>=1?h/l:h*Math.pow(2,1-d))*l>=2&&(a++,l/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*l-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+p]=255&s,p+=f,s/=256,i-=8);for(a=a<0;e[n+p]=255&a,p+=f,a/=256,c-=8);e[n+p-f]|=128*g}},18043:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,l=/^\s+|\s+$/g,c="";function u(e){return e?e.replace(l,c):c}e.exports=function(e,l){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];l=l||{};var d=1,h=1;function p(e){var t=e.match(n);t&&(d+=t.length);var r=e.lastIndexOf("\n");h=~r?e.length-r:h+e.length}function f(){var e={line:d,column:h};return function(t){return t.position=new g(e),b(),t}}function g(e){this.start=e,this.end={line:d,column:h},this.source=l.source}g.prototype.content=e;var m=[];function y(t){var n=new Error(l.source+":"+d+":"+h+": "+t);if(n.reason=t,n.filename=l.source,n.line=d,n.column=h,n.source=e,!l.silent)throw n;m.push(n)}function v(t){var n=t.exec(e);if(n){var r=n[0];return p(r),e=e.slice(r.length),n}}function b(){v(r)}function x(e){var t;for(e=e||[];t=w();)!1!==t&&e.push(t);return e}function w(){var t=f();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;c!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,c===e.charAt(n-1))return y("End of comment missing");var r=e.slice(2,n-2);return h+=2,p(r),e=e.slice(n),h+=2,t({type:"comment",comment:r})}}function A(){var e=f(),n=v(i);if(n){if(w(),!v(o))return y("property missing ':'");var r=v(a),l=e({type:"declaration",property:u(n[0].replace(t,c)),value:r?u(r[0].replace(t,c)):c});return v(s),l}}return b(),function(){var e,t=[];for(x(t);e=A();)!1!==e&&(t.push(e),x(t));return t}()}},40268:(e,t)=>{"use strict"; +t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<>1,u=-7,d=n?i-1:0,h=n?-1:1,p=e[t+d];for(d+=h,o=p&(1<<-u)-1,p>>=-u,u+=s;u>0;o=256*o+e[t+d],d+=h,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=r;u>0;a=256*a+e[t+d],d+=h,u-=8);if(0===o)o=1-c;else{if(o===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),o-=c}return(p?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,l,c=8*o-i-1,u=(1<>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,f=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+d>=1?h/l:h*Math.pow(2,1-d))*l>=2&&(a++,l/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*l-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+p]=255&s,p+=f,s/=256,i-=8);for(a=a<0;e[n+p]=255&a,p+=f,a/=256,c-=8);e[n+p-f]|=128*g}},18043:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,l=/^\s+|\s+$/g,c="";function u(e){return e?e.replace(l,c):c}e.exports=function(e,l){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];l=l||{};var d=1,h=1;function p(e){var t=e.match(n);t&&(d+=t.length);var r=e.lastIndexOf("\n");h=~r?e.length-r:h+e.length}function f(){var e={line:d,column:h};return function(t){return t.position=new g(e),b(),t}}function g(e){this.start=e,this.end={line:d,column:h},this.source=l.source}g.prototype.content=e;var m=[];function y(t){var n=new Error(l.source+":"+d+":"+h+": "+t);if(n.reason=t,n.filename=l.source,n.line=d,n.column=h,n.source=e,!l.silent)throw n;m.push(n)}function v(t){var n=t.exec(e);if(n){var r=n[0];return p(r),e=e.slice(r.length),n}}function b(){v(r)}function w(e){var t;for(e=e||[];t=x();)!1!==t&&e.push(t);return e}function x(){var t=f();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;c!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,c===e.charAt(n-1))return y("End of comment missing");var r=e.slice(2,n-2);return h+=2,p(r),e=e.slice(n),h+=2,t({type:"comment",comment:r})}}function A(){var e=f(),n=v(i);if(n){if(x(),!v(o))return y("property missing ':'");var r=v(a),l=e({type:"declaration",property:u(n[0].replace(t,c)),value:r?u(r[0].replace(t,c)):c});return v(s),l}}return b(),function(){var e,t=[];for(w(t);e=A();)!1!==e&&(t.push(e),w(t));return t}()}},40268:(e,t)=>{"use strict"; /*! * is-plain-object * * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. */ -function n(e){return"[object Object]"===Object.prototype.toString.call(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.isPlainObject=function(e){var t,r;return!1!==n(e)&&(void 0===(t=e.constructor)||!1!==n(r=t.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))}},23018:e=>{"use strict";var t=e.exports=function(e,t,r){"function"==typeof t&&(r=t,t={}),n(t,"function"==typeof(r=t.cb||r)?r:r.pre||function(){},r.post||function(){},e,"",e)};function n(e,r,i,o,a,s,l,c,u,d){if(o&&"object"==typeof o&&!Array.isArray(o)){for(var h in r(o,a,s,l,c,u,d),o){var p=o[h];if(Array.isArray(p)){if(h in t.arrayKeywords)for(var f=0;f{var r=n(86973);e.exports=function(){if(!arguments.length)return[];var e=arguments[0];return r(e)?e:[e]}},26629:(e,t,n)=>{var r=n(51522),i=n(14452),o=n(55719),a=n(34971),s=n(25987);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t{var r=n(79577).Uint8Array;e.exports=r},64797:e=>{e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},56389:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n{e.exports=function(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n{e.exports=function(e){return e.split("")}},61025:e=>{var t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(t)||[]}},12817:(e,t,n)=>{var r=n(76596),i=n(11284);e.exports=function(e,t,n){(void 0!==n&&!i(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},8399:(e,t,n)=>{var r=n(76596),i=n(11284),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];o.call(e,t)&&i(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},30173:(e,t,n)=>{var r=n(11284);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},2809:(e,t,n)=>{var r=n(25763),i=n(46794);e.exports=function(e,t){return e&&r(t,i(t),e)}},6306:(e,t,n)=>{var r=n(25763),i=n(10573);e.exports=function(e,t){return e&&r(t,i(t),e)}},76596:(e,t,n)=>{var r=n(53695);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},19251:(e,t,n)=>{var r=n(26629),i=n(56389),o=n(8399),a=n(2809),s=n(6306),l=n(11702),c=n(42627),u=n(71979),d=n(55928),h=n(6806),p=n(39425),f=n(39073),g=n(19665),m=n(23635),y=n(67149),v=n(86973),b=n(39964),x=n(91798),w=n(16841),A=n(8996),S=n(46794),C=n(10573),E="[object Arguments]",_="[object Function]",k="[object Object]",T={};T[E]=T["[object Array]"]=T["[object ArrayBuffer]"]=T["[object DataView]"]=T["[object Boolean]"]=T["[object Date]"]=T["[object Float32Array]"]=T["[object Float64Array]"]=T["[object Int8Array]"]=T["[object Int16Array]"]=T["[object Int32Array]"]=T["[object Map]"]=T["[object Number]"]=T[k]=T["[object RegExp]"]=T["[object Set]"]=T["[object String]"]=T["[object Symbol]"]=T["[object Uint8Array]"]=T["[object Uint8ClampedArray]"]=T["[object Uint16Array]"]=T["[object Uint32Array]"]=!0,T["[object Error]"]=T[_]=T["[object WeakMap]"]=!1,e.exports=function e(t,n,O,P,I,M){var L,R=1&n,j=2&n,F=4&n;if(O&&(L=I?O(t,P,I,M):O(t)),void 0!==L)return L;if(!w(t))return t;var D=v(t);if(D){if(L=g(t),!R)return c(t,L)}else{var N=f(t),z=N==_||"[object GeneratorFunction]"==N;if(b(t))return l(t,R);if(N==k||N==E||z&&!I){if(L=j||z?{}:y(t),!R)return j?d(t,s(L,t)):u(t,a(L,t))}else{if(!T[N])return I?t:{};L=m(t,N,R)}}M||(M=new r);var V=M.get(t);if(V)return V;M.set(t,L),A(t)?t.forEach((function(r){L.add(e(r,n,O,r,t,M))})):x(t)&&t.forEach((function(r,i){L.set(i,e(r,n,O,i,t,M))}));var B=D?void 0:(F?j?p:h:j?C:S)(t);return i(B||t,(function(r,i){B&&(r=t[i=r]),o(L,i,e(r,n,O,i,t,M))})),L}},66548:(e,t,n)=>{var r=n(16841),i=Object.create,o=function(){function e(){}return function(t){if(!r(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=o},41313:e=>{e.exports=function(e,t,n){if("function"!=typeof e)throw new TypeError("Expected a function");return setTimeout((function(){e.apply(void 0,n)}),t)}},37981:(e,t,n)=>{var r=n(10609)();e.exports=r},34316:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},24927:e=>{e.exports=function(e,t,n){for(var r=n-1,i=e.length;++r{var r=n(39760),i=n(4406);e.exports=function e(t,n,o,a,s){return t===n||(null==t||null==n||!i(t)&&!i(n)?t!=t&&n!=n:r(t,n,o,a,e,s))}},39760:(e,t,n)=>{var r=n(26629),i=n(16267),o=n(27822),a=n(18837),s=n(39073),l=n(86973),c=n(39964),u=n(66971),d="[object Arguments]",h="[object Array]",p="[object Object]",f=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,g,m,y){var v=l(e),b=l(t),x=v?h:s(e),w=b?h:s(t),A=(x=x==d?p:x)==p,S=(w=w==d?p:w)==p,C=x==w;if(C&&c(e)){if(!c(t))return!1;v=!0,A=!1}if(C&&!A)return y||(y=new r),v||u(e)?i(e,t,n,g,m,y):o(e,t,x,n,g,m,y);if(!(1&n)){var E=A&&f.call(e,"__wrapped__"),_=S&&f.call(t,"__wrapped__");if(E||_){var k=E?e.value():e,T=_?t.value():t;return y||(y=new r),m(k,T,n,g,y)}}return!!C&&(y||(y=new r),a(e,t,n,g,m,y))}},59345:e=>{e.exports=function(e){return e}},66006:(e,t,n)=>{var r=n(26629),i=n(12817),o=n(37981),a=n(99268),s=n(16841),l=n(10573),c=n(35282);e.exports=function e(t,n,u,d,h){t!==n&&o(n,(function(o,l){if(h||(h=new r),s(o))a(t,n,l,u,e,d,h);else{var p=d?d(c(t,l),o,l+"",t,n,h):void 0;void 0===p&&(p=o),i(t,l,p)}}),l)}},99268:(e,t,n)=>{var r=n(12817),i=n(11702),o=n(2877),a=n(42627),s=n(67149),l=n(23419),c=n(86973),u=n(70673),d=n(39964),h=n(55470),p=n(16841),f=n(215),g=n(66971),m=n(35282),y=n(62592);e.exports=function(e,t,n,v,b,x,w){var A=m(e,n),S=m(t,n),C=w.get(S);if(C)r(e,n,C);else{var E=x?x(A,S,n+"",e,t,w):void 0,_=void 0===E;if(_){var k=c(S),T=!k&&d(S),O=!k&&!T&&g(S);E=S,k||T||O?c(A)?E=A:u(A)?E=a(A):T?(_=!1,E=i(S,!0)):O?(_=!1,E=o(S,!0)):E=[]:f(S)||l(S)?(E=A,l(A)?E=y(A):p(A)&&!h(A)||(E=s(S))):_=!1}_&&(w.set(S,E),b(E,S,v,x,w),w.delete(S)),r(e,n,E)}}},22899:e=>{var t=Math.ceil,n=Math.max;e.exports=function(e,r,i,o){for(var a=-1,s=n(t((r-e)/(i||1)),0),l=Array(s);s--;)l[o?s:++a]=e,e+=i;return l}},29490:(e,t,n)=>{var r=n(35308),i=n(14385),o=n(92565);e.exports=function(e,t){return o(i(e,t,r),e+"")}},72870:(e,t,n)=>{var r=n(8399),i=n(93581),o=n(59005),a=n(16841),s=n(13865);e.exports=function(e,t,n,l){if(!a(e))return e;for(var c=-1,u=(t=i(t,e)).length,d=u-1,h=e;null!=h&&++c{e.exports=function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r{e.exports=function(e,t){for(var n,r=-1,i=e.length;++r{e.exports=function(e){return e}},175:(e,t,n)=>{var r=n(24927);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},93581:(e,t,n)=>{var r=n(86973);e.exports=function(){if(!arguments.length)return[];var e=arguments[0];return r(e)?e:[e]}},42966:(e,t,n)=>{var r=n(74316);e.exports=function(e,t,n){var i=e.length;return n=void 0===n?i:n,!t&&n>=i?e:r(e,t,n)}},52729:(e,t,n)=>{var r=n(38512);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},11702:(e,t,n)=>{e=n.nmd(e);var r=n(79577),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}},2877:(e,t,n)=>{var r=n(52729);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},42627:e=>{e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n{var r=n(8399),i=n(76596);e.exports=function(e,t,n,o){var a=!n;n||(n={});for(var s=-1,l=t.length;++s{var r=n(25763),i=n(58860);e.exports=function(e,t){return r(e,i(e),t)}},55928:(e,t,n)=>{var r=n(25763),i=n(23411);e.exports=function(e,t){return r(e,i(e),t)}},41467:(e,t,n)=>{var r=n(29490),i=n(14572);e.exports=function(e){return r((function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),t=Object(t);++r{e.exports=function(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(!1===n(o[l],l,o))break}return t}}},16791:(e,t,n)=>{var r=n(42966),i=n(40238),o=n(41772),a=n(9986);e.exports=function(e){return function(t){t=a(t);var n=i(t)?o(t):void 0,s=n?n[0]:t.charAt(0),l=n?r(n,1).join(""):t.slice(1);return s[e]()+l}}},84599:(e,t,n)=>{var r=n(10046),i=n(39976),o=n(89321),a=RegExp("['’]","g");e.exports=function(e){return function(t){return r(o(i(t).replace(a,"")),e,"")}}},77136:(e,t,n)=>{var r=n(22899),i=n(14572),o=n(76300);e.exports=function(e){return function(t,n,a){return a&&"number"!=typeof a&&i(t,n,a)&&(n=a=void 0),t=o(t),void 0===n?(n=t,t=0):n=o(n),a=void 0===a?t{var r=n(66006),i=n(16841);e.exports=function e(t,n,o,a,s,l){return i(t)&&i(n)&&(l.set(n,t),r(t,n,void 0,e,l),l.delete(n)),t}},53695:(e,t,n)=>{var r=n(13442),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},16267:(e,t,n)=>{var r=n(70743),i=n(76780),o=n(175);e.exports=function(e,t,n,a,s,l){var c=1&n,u=e.length,d=t.length;if(u!=d&&!(c&&d>u))return!1;var h=l.get(e),p=l.get(t);if(h&&p)return h==t&&p==e;var f=-1,g=!0,m=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++f{e.exports=function(e,t){return e===t||e!=e&&t!=t}},18837:(e,t,n)=>{var r=n(6806),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,o,a,s){var l=1&n,c=r(e),u=c.length;if(u!=r(t).length&&!l)return!1;for(var d=u;d--;){var h=c[d];if(!(l?h in t:i.call(t,h)))return!1}var p=s.get(e),f=s.get(t);if(p&&f)return p==t&&f==e;var g=!0;s.set(e,t),s.set(t,e);for(var m=l;++d{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},6806:(e,t,n)=>{var r=n(11275)(Object.keys,Object);e.exports=r},39425:e=>{e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},13442:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},6243:(e,t,n)=>{var r=n(11275)(Object.getPrototypeOf,Object);e.exports=r},58860:e=>{e.exports=function(){return[]}},23411:e=>{e.exports=function(){return[]}},39073:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},40238:e=>{var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},77969:e=>{var t=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return t.test(e)}},19665:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e){var n=e.length,r=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},23635:e=>{e.exports=function(e){return e}},67149:(e,t,n)=>{var r=n(66548),i=n(6243),o=n(7275);e.exports=function(e){return"function"!=typeof e.constructor||o(e)?{}:r(i(e))}},59005:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e{e.exports=function(){return!1}},7275:e=>{e.exports=function(){return!1}},51522:e=>{e.exports=function(){this.__data__=[],this.size=0}},14452:(e,t,n)=>{var r=n(30173),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():i.call(t,n,1),--this.size,!0)}},55719:(e,t,n)=>{var r=n(30173);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},34971:(e,t,n)=>{var r=n(30173);e.exports=function(e){return r(this.__data__,e)>-1}},25987:(e,t,n)=>{var r=n(30173);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},11275:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},14385:(e,t,n)=>{var r=n(64797),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=i(o.length-t,0),l=Array(s);++a{var r=n(85876),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},35282:e=>{e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},92565:e=>{e.exports=function(e){return e}},41772:(e,t,n)=>{var r=n(87926),i=n(40238),o=n(63618);e.exports=function(e){return i(e)?o(e):r(e)}},13865:e=>{e.exports=function(e){return e}},63618:e=>{var t="\\ud800-\\udfff",n="["+t+"]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",i="\\ud83c[\\udffb-\\udfff]",o="[^"+t+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+r+"|"+i+")"+"?",c="[\\ufe0e\\ufe0f]?",u=c+l+("(?:\\u200d(?:"+[o,a,s].join("|")+")"+c+l+")*"),d="(?:"+[o+r+"?",r,a,s,n].join("|")+")",h=RegExp(i+"(?="+i+")|"+d+u,"g");e.exports=function(e){return e.match(h)||[]}},62357:e=>{var t="\\ud800-\\udfff",n="\\u2700-\\u27bf",r="a-z\\xdf-\\xf6\\xf8-\\xff",i="A-Z\\xc0-\\xd6\\xd8-\\xde",o="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",a="["+o+"]",s="\\d+",l="["+n+"]",c="["+r+"]",u="[^"+t+o+s+n+r+i+"]",d="(?:\\ud83c[\\udde6-\\uddff]){2}",h="[\\ud800-\\udbff][\\udc00-\\udfff]",p="["+i+"]",f="(?:"+c+"|"+u+")",g="(?:"+p+"|"+u+")",m="(?:['’](?:d|ll|m|re|s|t|ve))?",y="(?:['’](?:D|LL|M|RE|S|T|VE))?",v="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",b="[\\ufe0e\\ufe0f]?",x=b+v+("(?:\\u200d(?:"+["[^"+t+"]",d,h].join("|")+")"+b+v+")*"),w="(?:"+[l,d,h].join("|")+")"+x,A=RegExp([p+"?"+c+"+"+m+"(?="+[a,p,"$"].join("|")+")",g+"+"+y+"(?="+[a,p+f,"$"].join("|")+")",p+"?"+f+"+"+m,p+"+"+y,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",s,w].join("|"),"g");e.exports=function(e){return e.match(A)||[]}},76390:(e,t,n)=>{var r=n(46900),i=n(84599)((function(e,t,n){return t=t.toLowerCase(),e+(n?r(t):t)}));e.exports=i},46900:(e,t,n)=>{var r=n(9986),i=n(81620);e.exports=function(e){return i(r(e).toLowerCase())}},80363:(e,t,n)=>{var r=n(19251);e.exports=function(e){return r(e,5)}},44481:(e,t,n)=>{var r=n(16841),i=n(18288),o=n(52914),a=Math.max,s=Math.min;e.exports=function(e,t,n){var l,c,u,d,h,p,f=0,g=!1,m=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function v(t){var n=l,r=c;return l=c=void 0,f=t,d=e.apply(r,n)}function b(e){var n=e-p;return void 0===p||n>=t||n<0||m&&e-f>=u}function x(){var e=i();if(b(e))return w(e);h=setTimeout(x,function(e){var n=t-(e-p);return m?s(n,u-(e-f)):n}(e))}function w(e){return h=void 0,y&&l?v(e):(l=c=void 0,d)}function A(){var e=i(),n=b(e);if(l=arguments,c=this,p=e,n){if(void 0===h)return function(e){return f=e,h=setTimeout(x,t),g?v(e):d}(p);if(m)return clearTimeout(h),h=setTimeout(x,t),v(p)}return void 0===h&&(h=setTimeout(x,t)),d}return t=o(t)||0,r(n)&&(g=!!n.leading,u=(m="maxWait"in n)?a(o(n.maxWait)||0,t):u,y="trailing"in n?!!n.trailing:y),A.cancel=function(){void 0!==h&&clearTimeout(h),f=0,l=p=c=h=void 0},A.flush=function(){return void 0===h?d:w(i())},A}},39976:(e,t,n)=>{var r=n(78056);e.exports=function(e){return null==e?"":r(e)}},79950:(e,t,n)=>{var r=n(64797),i=n(29490),o=n(40554),a=n(92200),s=i((function(e){return e.push(void 0,o),r(a,void 0,e)}));e.exports=s},75299:(e,t,n)=>{var r=n(41313),i=n(29490),o=n(52914),a=i((function(e,t,n){return r(e,o(t)||0,n)}));e.exports=a},11284:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},89255:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n{e.exports=function(e){return e}},23419:e=>{e.exports=function(){return!1}},86973:e=>{var t=Array.isArray;e.exports=t},538:(e,t,n)=>{var r=n(55470),i=n(19202);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},70673:(e,t,n)=>{var r=n(538),i=n(4406);e.exports=function(e){return i(e)&&r(e)}},39964:e=>{e.exports=function(){return!1}},34872:(e,t,n)=>{var r=n(47402);e.exports=function(e,t){return r(e,t)}},55470:(e,t,n)=>{var r=n(34316),i=n(16841);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},19202:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},91798:e=>{e.exports=function(){return!1}},16841:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},4406:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},215:(e,t,n)=>{var r=n(34316),i=n(6243),o=n(4406),a=Function.prototype,s=Object.prototype,l=a.toString,c=s.hasOwnProperty,u=l.call(Object);e.exports=function(e){if(!o(e)||"[object Object]"!=r(e))return!1;var t=i(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==u}},8996:e=>{e.exports=function(){return!1}},66971:e=>{e.exports=function(){return!1}},46794:(e,t,n)=>{var r=n(11275)(Object.keys,Object);e.exports=r},10573:e=>{e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},92200:(e,t,n)=>{var r=n(66006),i=n(41467)((function(e,t,n,i){r(e,t,n,i)}));e.exports=i},18288:(e,t,n)=>{var r=n(79577);e.exports=function(){return r.Date.now()}},99601:(e,t,n)=>{var r=n(77136)();e.exports=r},18260:(e,t,n)=>{var r=n(72870);e.exports=function(e,t,n){return null==e?e:r(e,t,n)}},30886:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n{var r=n(84599),i=n(81620),o=r((function(e,t,n){return e+(n?" ":"")+i(t)}));e.exports=o},67970:(e,t,n)=>{var r=n(59345),i=n(67629);e.exports=function(e,t){return e&&e.length?i(e,r(t,2)):0}},76300:e=>{e.exports=function(e){return e}},52914:e=>{e.exports=function(e){return e}},62592:(e,t,n)=>{var r=n(25763),i=n(10573);e.exports=function(e){return r(e,i(e))}},9986:e=>{e.exports=function(e){return e}},81620:(e,t,n)=>{var r=n(16791)("toUpperCase");e.exports=r},89321:(e,t,n)=>{var r=n(61025),i=n(77969),o=n(9986),a=n(62357);e.exports=function(e,t,n){return e=o(e),void 0===(t=n?void 0:t)?i(e)?a(e):r(e):e.match(t)||[]}},91521:function(e,t){var n,r,i;r=[],void 0===(i="function"==typeof(n=function(){return function(e){function t(e){return" "===e||"\t"===e||"\n"===e||"\f"===e||"\r"===e}function n(t){var n,r=t.exec(e.substring(g));if(r)return n=r[0],g+=n.length,n}for(var r,i,o,a,s,l=e.length,c=/^[ \t\n\r\u000c]+/,u=/^[, \t\n\r\u000c]+/,d=/^[^ \t\n\r\u000c]+/,h=/[,]+$/,p=/^\d+$/,f=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,g=0,m=[];;){if(n(u),g>=l)return m;r=n(d),i=[],","===r.slice(-1)?(r=r.replace(h,""),v()):y()}function y(){for(n(c),o="",a="in descriptor";;){if(s=e.charAt(g),"in descriptor"===a)if(t(s))o&&(i.push(o),o="",a="after descriptor");else{if(","===s)return g+=1,o&&i.push(o),void v();if("("===s)o+=s,a="in parens";else{if(""===s)return o&&i.push(o),void v();o+=s}}else if("in parens"===a)if(")"===s)o+=s,a="in descriptor";else{if(""===s)return i.push(o),void v();o+=s}else if("after descriptor"===a)if(t(s));else{if(""===s)return void v();a="in descriptor",g-=1}g+=1}}function v(){var t,n,o,a,s,l,c,u,d,h=!1,g={};for(a=0;a{"use strict";e.exports=i;var r=n(65335);function i(e){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(e)?e:new Uint8Array(e||0),this.pos=0,this.type=0,this.length=this.buf.length}i.Varint=0,i.Fixed64=1,i.Bytes=2,i.Fixed32=5;var o=4294967296,a=1/o,s="undefined"==typeof TextDecoder?null:new TextDecoder("utf8");function l(e){return e.type===i.Bytes?e.readVarint()+e.pos:e.pos+1}function c(e,t,n){return n?4294967296*t+(e>>>0):4294967296*(t>>>0)+(e>>>0)}function u(e,t,n){var r=t<=16383?1:t<=2097151?2:t<=268435455?3:Math.floor(Math.log(t)/(7*Math.LN2));n.realloc(r);for(var i=n.pos-1;i>=e;i--)n.buf[i+r]=n.buf[i]}function d(e,t){for(var n=0;n>>8,e[n+2]=t>>>16,e[n+3]=t>>>24}function A(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16)+(e[t+3]<<24)}i.prototype={destroy:function(){this.buf=null},readFields:function(e,t,n){for(n=n||this.length;this.pos>3,o=this.pos;this.type=7&r,e(i,t,this),this.pos===o&&this.skip(r)}return t},readMessage:function(e,t){return this.readFields(e,t,this.readVarint()+this.pos)},readFixed32:function(){var e=x(this.buf,this.pos);return this.pos+=4,e},readSFixed32:function(){var e=A(this.buf,this.pos);return this.pos+=4,e},readFixed64:function(){var e=x(this.buf,this.pos)+x(this.buf,this.pos+4)*o;return this.pos+=8,e},readSFixed64:function(){var e=x(this.buf,this.pos)+A(this.buf,this.pos+4)*o;return this.pos+=8,e},readFloat:function(){var e=r.read(this.buf,this.pos,!0,23,4);return this.pos+=4,e},readDouble:function(){var e=r.read(this.buf,this.pos,!0,52,8);return this.pos+=8,e},readVarint:function(e){var t,n,r=this.buf;return t=127&(n=r[this.pos++]),n<128?t:(t|=(127&(n=r[this.pos++]))<<7,n<128?t:(t|=(127&(n=r[this.pos++]))<<14,n<128?t:(t|=(127&(n=r[this.pos++]))<<21,n<128?t:function(e,t,n){var r,i,o=n.buf;if(i=o[n.pos++],r=(112&i)>>4,i<128)return c(e,r,t);if(i=o[n.pos++],r|=(127&i)<<3,i<128)return c(e,r,t);if(i=o[n.pos++],r|=(127&i)<<10,i<128)return c(e,r,t);if(i=o[n.pos++],r|=(127&i)<<17,i<128)return c(e,r,t);if(i=o[n.pos++],r|=(127&i)<<24,i<128)return c(e,r,t);if(i=o[n.pos++],r|=(1&i)<<31,i<128)return c(e,r,t);throw new Error("Expected varint not more than 10 bytes")}(t|=(15&(n=r[this.pos]))<<28,e,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var e=this.readVarint();return e%2==1?(e+1)/-2:e/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var e=this.readVarint()+this.pos,t=this.pos;return this.pos=e,e-t>=12&&s?function(e,t,n){return s.decode(e.subarray(t,n))}(this.buf,t,e):function(e,t,n){var r="",i=t;for(;i239?4:l>223?3:l>191?2:1;if(i+u>n)break;1===u?l<128&&(c=l):2===u?128==(192&(o=e[i+1]))&&(c=(31&l)<<6|63&o)<=127&&(c=null):3===u?(o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&((c=(15&l)<<12|(63&o)<<6|63&a)<=2047||c>=55296&&c<=57343)&&(c=null)):4===u&&(o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&((c=(15&l)<<18|(63&o)<<12|(63&a)<<6|63&s)<=65535||c>=1114112)&&(c=null)),null===c?(c=65533,u=1):c>65535&&(c-=65536,r+=String.fromCharCode(c>>>10&1023|55296),c=56320|1023&c),r+=String.fromCharCode(c),i+=u}return r}(this.buf,t,e)},readBytes:function(){var e=this.readVarint()+this.pos,t=this.buf.subarray(this.pos,e);return this.pos=e,t},readPackedVarint:function(e,t){if(this.type!==i.Bytes)return e.push(this.readVarint(t));var n=l(this);for(e=e||[];this.pos127;);else if(t===i.Bytes)this.pos=this.readVarint()+this.pos;else if(t===i.Fixed32)this.pos+=4;else{if(t!==i.Fixed64)throw new Error("Unimplemented type: "+t);this.pos+=8}},writeTag:function(e,t){this.writeVarint(e<<3|t)},realloc:function(e){for(var t=this.length||16;t268435455||e<0?function(e,t){var n,r;e>=0?(n=e%4294967296|0,r=e/4294967296|0):(r=~(-e/4294967296),4294967295^(n=~(-e%4294967296))?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){var 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:function(e){this.writeVarint(e<0?2*-e-1:2*e)},writeBoolean:function(e){this.writeVarint(Boolean(e))},writeString:function(e){e=String(e),this.realloc(4*e.length),this.pos++;var t=this.pos;this.pos=function(e,t,n){for(var 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);var n=this.pos-t;n>=128&&u(t,n,this),this.pos=t-1,this.writeVarint(n),this.pos+=n},writeFloat:function(e){this.realloc(4),r.write(this.buf,e,this.pos,!0,23,4),this.pos+=4},writeDouble:function(e){this.realloc(8),r.write(this.buf,e,this.pos,!0,52,8),this.pos+=8},writeBytes:function(e){var t=e.length;this.writeVarint(t),this.realloc(t);for(var n=0;n=128&&u(n,r,this),this.pos=n-1,this.writeVarint(r),this.pos+=r},writeMessage:function(e,t,n){this.writeTag(e,i.Bytes),this.writeRawMessage(t,n)},writePackedVarint:function(e,t){t.length&&this.writeMessage(e,d,t)},writePackedSVarint:function(e,t){t.length&&this.writeMessage(e,h,t)},writePackedBoolean:function(e,t){t.length&&this.writeMessage(e,g,t)},writePackedFloat:function(e,t){t.length&&this.writeMessage(e,p,t)},writePackedDouble:function(e,t){t.length&&this.writeMessage(e,f,t)},writePackedFixed32:function(e,t){t.length&&this.writeMessage(e,m,t)},writePackedSFixed32:function(e,t){t.length&&this.writeMessage(e,y,t)},writePackedFixed64:function(e,t){t.length&&this.writeMessage(e,v,t)},writePackedSFixed64:function(e,t){t.length&&this.writeMessage(e,b,t)},writeBytesField:function(e,t){this.writeTag(e,i.Bytes),this.writeBytes(t)},writeFixed32Field:function(e,t){this.writeTag(e,i.Fixed32),this.writeFixed32(t)},writeSFixed32Field:function(e,t){this.writeTag(e,i.Fixed32),this.writeSFixed32(t)},writeFixed64Field:function(e,t){this.writeTag(e,i.Fixed64),this.writeFixed64(t)},writeSFixed64Field:function(e,t){this.writeTag(e,i.Fixed64),this.writeSFixed64(t)},writeVarintField:function(e,t){this.writeTag(e,i.Varint),this.writeVarint(t)},writeSVarintField:function(e,t){this.writeTag(e,i.Varint),this.writeSVarint(t)},writeStringField:function(e,t){this.writeTag(e,i.Bytes),this.writeString(t)},writeFloatField:function(e,t){this.writeTag(e,i.Fixed32),this.writeFloat(t)},writeDoubleField:function(e,t){this.writeTag(e,i.Fixed64),this.writeDouble(t)},writeBooleanField:function(e,t){this.writeVarintField(e,Boolean(t))}}},9866:e=>{var t=String,n=function(){return{isColorSupported:!1,reset:t,bold:t,dim:t,italic:t,underline:t,inverse:t,hidden:t,strikethrough:t,black:t,red:t,green:t,yellow:t,blue:t,magenta:t,cyan:t,white:t,gray:t,bgBlack:t,bgRed:t,bgGreen:t,bgYellow:t,bgBlue:t,bgMagenta:t,bgCyan:t,bgWhite:t}};e.exports=n(),e.exports.createColors=n},25044:(e,t,n)=>{"use strict";let r=n(11241);class i extends r{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}}e.exports=i,i.default=i,r.registerAtRule(i)},27459:(e,t,n)=>{"use strict";let r=n(36040);class i extends r{constructor(e){super(e),this.type="comment"}}e.exports=i,i.default=i},11241:(e,t,n)=>{"use strict";let r,i,o,a,{isClean:s,my:l}=n(64191),c=n(73838),u=n(27459),d=n(36040);function h(e){return e.map((e=>(e.nodes&&(e.nodes=h(e.nodes)),delete e.source,e)))}function p(e){if(e[s]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)p(t)}class f extends d{append(...e){for(let t of e){let e=this.normalize(t,this.last);for(let t of e)this.proxyOf.nodes.push(t)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t,n,r=this.getIterator();for(;this.indexes[r]"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?(...n)=>e[t](...n.map((e=>"function"==typeof e?(t,n)=>e(t.toProxy(),n):e))):"every"===t||"some"===t?n=>e[t](((e,...t)=>n(e.toProxy(),...t))):"root"===t?()=>e.root().toProxy():"nodes"===t?e.nodes.map((e=>e.toProxy())):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t],set:(e,t,n)=>(e[t]===n||(e[t]=n,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0)}}index(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let n,r=this.index(e),i=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let e of i)this.proxyOf.nodes.splice(r+1,0,e);for(let e in this.indexes)n=this.indexes[e],r(e[l]||f.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[s]&&p(e),void 0===e.raws.before&&t&&void 0!==t.raws.before&&(e.raws.before=t.raws.before.replace(/\S/g,"")),e.parent=this.proxyOf,e)))}prepend(...e){e=e.reverse();for(let t of e){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){let t;e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);for(let n in this.indexes)t=this.indexes[n],t>=e&&(this.indexes[n]=t-1);return this.markDirty(),this}replaceValues(e,t,n){return n||(n=t,t={}),this.walkDecls((r=>{t.props&&!t.props.includes(r.prop)||t.fast&&!r.value.includes(t.fast)||(r.value=r.value.replace(e,n))})),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each(((t,n)=>{let r;try{r=e(t,n)}catch(e){throw t.addToError(e)}return!1!==r&&t.walk&&(r=t.walk(e)),r}))}walkAtRules(e,t){return t?e instanceof RegExp?this.walk(((n,r)=>{if("atrule"===n.type&&e.test(n.name))return t(n,r)})):this.walk(((n,r)=>{if("atrule"===n.type&&n.name===e)return t(n,r)})):(t=e,this.walk(((e,n)=>{if("atrule"===e.type)return t(e,n)})))}walkComments(e){return this.walk(((t,n)=>{if("comment"===t.type)return e(t,n)}))}walkDecls(e,t){return t?e instanceof RegExp?this.walk(((n,r)=>{if("decl"===n.type&&e.test(n.prop))return t(n,r)})):this.walk(((n,r)=>{if("decl"===n.type&&n.prop===e)return t(n,r)})):(t=e,this.walk(((e,n)=>{if("decl"===e.type)return t(e,n)})))}walkRules(e,t){return t?e instanceof RegExp?this.walk(((n,r)=>{if("rule"===n.type&&e.test(n.selector))return t(n,r)})):this.walk(((n,r)=>{if("rule"===n.type&&n.selector===e)return t(n,r)})):(t=e,this.walk(((e,n)=>{if("rule"===e.type)return t(e,n)})))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}f.registerParse=e=>{r=e},f.registerRule=e=>{i=e},f.registerAtRule=e=>{o=e},f.registerRoot=e=>{a=e},e.exports=f,f.default=f,f.rebuild=e=>{"atrule"===e.type?Object.setPrototypeOf(e,o.prototype):"rule"===e.type?Object.setPrototypeOf(e,i.prototype):"decl"===e.type?Object.setPrototypeOf(e,c.prototype):"comment"===e.type?Object.setPrototypeOf(e,u.prototype):"root"===e.type&&Object.setPrototypeOf(e,a.prototype),e[l]=!0,e.nodes&&e.nodes.forEach((e=>{f.rebuild(e)}))}},43718:(e,t,n)=>{"use strict";let r=n(9866),i=n(45306);class o extends Error{constructor(e,t,n,r,i,a){super(e),this.name="CssSyntaxError",this.reason=e,i&&(this.file=i),r&&(this.source=r),a&&(this.plugin=a),void 0!==t&&void 0!==n&&("number"==typeof t?(this.line=t,this.column=n):(this.line=t.line,this.column=t.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,o)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;null==e&&(e=r.isColorSupported),i&&e&&(t=i(t));let n,o,a=t.split(/\r?\n/),s=Math.max(this.line-3,0),l=Math.min(this.line+2,a.length),c=String(l).length;if(e){let{bold:e,gray:t,red:i}=r.createColors(!0);n=t=>e(i(t)),o=e=>t(e)}else n=o=e=>e;return a.slice(s,l).map(((e,t)=>{let r=s+1+t,i=" "+(" "+r).slice(-c)+" | ";if(r===this.line){let t=o(i.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return n(">")+o(i)+e+"\n "+t+n("^")}return" "+o(i)+e})).join("\n")}toString(){let e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}}e.exports=o,o.default=o},73838:(e,t,n)=>{"use strict";let r=n(36040);class i extends r{constructor(e){e&&void 0!==e.value&&"string"!=typeof e.value&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}}e.exports=i,i.default=i},27417:(e,t,n)=>{"use strict";let r,i,o=n(11241);class a extends o{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new r(new i,this,e).stringify()}}a.registerLazyResult=e=>{r=e},a.registerProcessor=e=>{i=e},e.exports=a,a.default=a},69318:(e,t,n)=>{"use strict";let r=n(73838),i=n(38574),o=n(27459),a=n(25044),s=n(17306),l=n(60868),c=n(89542);function u(e,t){if(Array.isArray(e))return e.map((e=>u(e)));let{inputs:n,...d}=e;if(n){t=[];for(let e of n){let n={...e,__proto__:s.prototype};n.map&&(n.map={...n.map,__proto__:i.prototype}),t.push(n)}}if(d.nodes&&(d.nodes=e.nodes.map((e=>u(e,t)))),d.source){let{inputId:e,...n}=d.source;d.source=n,null!=e&&(d.source.input=t[e])}if("root"===d.type)return new l(d);if("decl"===d.type)return new r(d);if("rule"===d.type)return new c(d);if("comment"===d.type)return new o(d);if("atrule"===d.type)return new a(d);throw new Error("Unknown node type: "+e.type)}e.exports=u,u.default=u},17306:(e,t,n)=>{"use strict";let{SourceMapConsumer:r,SourceMapGenerator:i}=n(72770),{fileURLToPath:o,pathToFileURL:a}=n(66459),{isAbsolute:s,resolve:l}=n(33261),{nanoid:c}=n(33232),u=n(45306),d=n(43718),h=n(38574),p=Symbol("fromOffsetCache"),f=Boolean(r&&i),g=Boolean(l&&s);class m{constructor(e,t={}){if(null==e||"object"==typeof e&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!g||/^\w+:\/\//.test(t.from)||s(t.from)?this.file=t.from:this.file=l(t.from)),g&&f){let e=new h(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id=""),this.map&&(this.map.file=this.from)}error(e,t,n,r={}){let i,o,s;if(t&&"object"==typeof t){let e=t,r=n;if("number"==typeof e.offset){let r=this.fromOffset(e.offset);t=r.line,n=r.col}else t=e.line,n=e.column;if("number"==typeof r.offset){let e=this.fromOffset(r.offset);o=e.line,s=e.col}else o=r.line,s=r.column}else if(!n){let e=this.fromOffset(t);t=e.line,n=e.col}let l=this.origin(t,n,o,s);return i=l?new d(e,void 0===l.endLine?l.line:{column:l.column,line:l.line},void 0===l.endLine?l.column:{column:l.endColumn,line:l.endLine},l.source,l.file,r.plugin):new d(e,void 0===o?t:{column:n,line:t},void 0===o?n:{column:s,line:o},this.css,this.file,r.plugin),i.input={column:n,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(a&&(i.input.url=a(this.file).toString()),i.input.file=this.file),i}fromOffset(e){let t,n;if(this[p])n=this[p];else{let e=this.css.split("\n");n=new Array(e.length);let t=0;for(let r=0,i=e.length;r=t)r=n.length-1;else{let t,i=n.length-2;for(;r>1),e=n[t+1])){r=t;break}r=t+1}}return{col:e-n[r]+1,line:r+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:l(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,n,r){if(!this.map)return!1;let i,l,c=this.map.consumer(),u=c.originalPositionFor({column:t,line:e});if(!u.source)return!1;"number"==typeof n&&(i=c.originalPositionFor({column:r,line:n})),l=s(u.source)?a(u.source):new URL(u.source,this.map.consumer().sourceRoot||a(this.map.mapFile));let d={column:u.column,endColumn:i&&i.column,endLine:i&&i.line,line:u.line,url:l.toString()};if("file:"===l.protocol){if(!o)throw new Error("file: protocol is not available in this PostCSS build");d.file=o(l)}let h=c.sourceContentFor(u.source);return h&&(d.source=h),d}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])null!=this[t]&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}}e.exports=m,m.default=m,u&&u.registerInput&&u.registerInput(m)},18398:(e,t,n)=>{"use strict";let{isClean:r,my:i}=n(64191),o=n(13388),a=n(23439),s=n(11241),l=n(27417),c=(n(90644),n(21309)),u=n(50161),d=n(60868);const h={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},p={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},f={Once:!0,postcssPlugin:!0,prepare:!0},g=0;function m(e){return"object"==typeof e&&"function"==typeof e.then}function y(e){let t=!1,n=h[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[n,n+"-"+t,g,n+"Exit",n+"Exit-"+t]:t?[n,n+"-"+t,n+"Exit",n+"Exit-"+t]:e.append?[n,g,n+"Exit"]:[n,n+"Exit"]}function v(e){let t;return t="document"===e.type?["Document",g,"DocumentExit"]:"root"===e.type?["Root",g,"RootExit"]:y(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function b(e){return e[r]=!1,e.nodes&&e.nodes.forEach((e=>b(e))),e}let x={};class w{constructor(e,t,n){let r;if(this.stringified=!1,this.processed=!1,"object"!=typeof t||null===t||"root"!==t.type&&"document"!==t.type)if(t instanceof w||t instanceof c)r=b(t.root),t.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=t.map);else{let e=u;n.syntax&&(e=n.syntax.parse),n.parser&&(e=n.parser),e.parse&&(e=e.parse);try{r=e(t,n)}catch(e){this.processed=!0,this.error=e}r&&!r[i]&&s.rebuild(r)}else r=b(t);this.result=new c(e,r,n),this.helpers={...x,postcss:x,result:this.result},this.plugins=this.processor.plugins.map((e=>"object"==typeof e&&e.prepare?{...e,...e.prepare(this.result)}:e))}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let n=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?n.postcssVersion:(e.plugin=n.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e}prepareVisitors(){this.listeners={};let e=(e,t,n)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,n])};for(let t of this.plugins)if("object"==typeof t)for(let n in t){if(!p[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!f[n])if("object"==typeof t[n])for(let r in t[n])e(t,"*"===r?n:n+"-"+r.toLowerCase(),t[n][r]);else"function"==typeof t[n]&&e(t,n,t[n])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e0;){let e=this.visitTick(t);if(m(e))try{await e}catch(e){let n=t[t.length-1].node;throw this.handleError(e,n)}}}if(this.listeners.OnceExit)for(let[t,n]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if("document"===e.type){let t=e.nodes.map((e=>n(e,this.helpers)));await Promise.all(t)}else await n(e,this.helpers)}catch(e){throw this.handleError(e)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if("object"==typeof e&&e.Once){if("document"===this.result.root.type){let t=this.result.root.nodes.map((t=>e.Once(t,this.helpers)));return m(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=a;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let n=new o(t,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){if(m(this.runOnRoot(e)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[r];)e[r]=!0,this.walkSync(e);if(this.listeners.OnceExit)if("document"===e.type)for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[n,r]of e){let e;this.result.lastPlugin=n;try{e=r(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(m(e))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:n,visitors:i}=t;if("root"!==n.type&&"document"!==n.type&&!n.parent)return void e.pop();if(i.length>0&&t.visitorIndex{e[r]||this.walkSync(e)}));else{let t=this.listeners[n];if(t&&this.visitSync(t,e.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}w.registerPostcss=e=>{x=e},e.exports=w,w.default=w,d.registerLazyResult(w),l.registerLazyResult(w)},42576:e=>{"use strict";let t={comma:e=>t.split(e,[","],!0),space:e=>t.split(e,[" ","\n","\t"]),split(e,t,n){let r=[],i="",o=!1,a=0,s=!1,l="",c=!1;for(let n of e)c?c=!1:"\\"===n?c=!0:s?n===l&&(s=!1):'"'===n||"'"===n?(s=!0,l=n):"("===n?a+=1:")"===n?a>0&&(a-=1):0===a&&t.includes(n)&&(o=!0),o?(""!==i&&r.push(i.trim()),i="",o=!1):i+=n;return(n||""!==i)&&r.push(i.trim()),r}};e.exports=t,t.default=t},13388:(e,t,n)=>{"use strict";let{SourceMapConsumer:r,SourceMapGenerator:i}=n(72770),{dirname:o,relative:a,resolve:s,sep:l}=n(33261),{pathToFileURL:c}=n(66459),u=n(17306),d=Boolean(r&&i),h=Boolean(o&&s&&a&&l);e.exports=class{constructor(e,t,n,r){this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n,this.css=r,this.originalCSS=r,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t,n=this.toUrl(this.path(e.file)),i=e.root||o(e.file);!1===this.mapOpts.sourcesContent?(t=new r(e.text),t.sourcesContent&&(t.sourcesContent=null)):t=e.consumer(),this.map.applySourceMap(t,n,this.toUrl(this.path(i)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],"comment"===e.type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),h&&d&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,(t=>{e+=t})),[e]}}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=i.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new i({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):""});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new i({file:this.outputFile(),ignoreInvalidMapping:!0});let e,t,n=1,r=1,o="",a={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,((i,s,l)=>{if(this.css+=i,s&&"end"!==l&&(a.generated.line=n,a.generated.column=r-1,s.source&&s.source.start?(a.source=this.sourcePath(s),a.original.line=s.source.start.line,a.original.column=s.source.start.column-1,this.map.addMapping(a)):(a.source=o,a.original.line=1,a.original.column=0,this.map.addMapping(a))),e=i.match(/\n/g),e?(n+=e.length,t=i.lastIndexOf("\n"),r=i.length-t):r+=i.length,s&&"start"!==l){let e=s.parent||{raws:{}};("decl"===s.type||"atrule"===s.type&&!s.nodes)&&s===e.last&&!e.raws.semicolon||(s.source&&s.source.end?(a.source=this.sourcePath(s),a.original.line=s.source.end.line,a.original.column=s.source.end.column-1,a.generated.line=n,a.generated.column=r-2,this.map.addMapping(a)):(a.source=o,a.original.line=1,a.original.column=0,a.generated.line=n,a.generated.column=r-1,this.map.addMapping(a)))}}))}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some((e=>e.annotation)))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some((e=>e.inline)))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((e=>e.withContent()))}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let n=this.opts.to?o(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(n=o(s(n,this.mapOpts.annotation)));let r=a(n,e);return this.memoizedPaths.set(e,r),r}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}}));else{let e=new u(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk((t=>{if(t.source){let n=t.source.input.from;if(n&&!e[n]){e[n]=!0;let r=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));this.map.setSourceContent(r,t.source.input.css)}}}));else if(this.css){let e=this.opts.from?this.toUrl(this.path(this.opts.from)):"";this.map.setSourceContent(e,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(c){let t=c(e).toString();return this.memoizedFileURLs.set(e,t),t}throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;"\\"===l&&(e=e.replace(/\\/g,"/"));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}}},37787:(e,t,n)=>{"use strict";let r=n(13388),i=n(23439),o=(n(90644),n(50161));const a=n(21309);class s{constructor(e,t,n){let o;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=n,this._map=void 0;let s=i;this.result=new a(this._processor,o,this._opts),this.result.css=t;let l=this;Object.defineProperty(this.result,"root",{get:()=>l.root});let c=new r(s,o,this._opts,t);if(c.isMap()){let[e,t]=c.generate();e&&(this.result.css=e),t&&(this.result.map=t)}else c.clearAnnotation(),this.result.css=c.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=o;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}}e.exports=s,s.default=s},36040:(e,t,n)=>{"use strict";let{isClean:r,my:i}=n(64191),o=n(43718),a=n(40636),s=n(23439);function l(e,t){let n=new e.constructor;for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;if("proxyCache"===r)continue;let i=e[r],o=typeof i;"parent"===r&&"object"===o?t&&(n[r]=t):"source"===r?n[r]=i:Array.isArray(i)?n[r]=i.map((e=>l(e,n))):("object"===o&&null!==i&&(i=l(i)),n[r]=i)}return n}class c{constructor(e={}){this.raws={},this[r]=!1,this[i]=!0;for(let t in e)if("nodes"===t){this.nodes=[];for(let n of e[t])"function"==typeof n.clone?this.append(n.clone()):this.append(n)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=l(this);for(let n in e)t[n]=e[n];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:n,start:r}=this.rangeBy(t);return this.source.input.error(e,{column:r.column,line:r.line},{column:n.column,line:n.line},t)}return new o(e)}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t],set:(e,t,n)=>(e[t]===n||(e[t]=n,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0)}}markDirty(){if(this[r]){this[r]=!1;let e=this;for(;e=e.parent;)e[r]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let n=this.source.start;if(e.index)n=this.positionInside(e.index,t);else if(e.word){let r=(t=this.toString()).indexOf(e.word);-1!==r&&(n=this.positionInside(r,t))}return n}positionInside(e,t){let n=t||this.toString(),r=this.source.start.column,i=this.source.start.line;for(let t=0;t"object"==typeof e&&e.toJSON?e.toJSON(null,t):e));else if("object"==typeof r&&r.toJSON)n[e]=r.toJSON(null,t);else if("source"===e){let o=t.get(r.input);null==o&&(o=i,t.set(r.input,i),i++),n[e]={end:r.end,inputId:o,start:r.start}}else n[e]=r}return r&&(n.inputs=[...t.keys()].map((e=>e.toJSON()))),n}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=s){e.stringify&&(e=e.stringify);let t="";return e(this,(e=>{t+=e})),t}warn(e,t,n){let r={node:this};for(let e in n)r[e]=n[e];return e.warn(t,r)}get proxyOf(){return this}}e.exports=c,c.default=c},50161:(e,t,n)=>{"use strict";let r=n(11241),i=n(30699),o=n(17306);function a(e,t){let n=new o(e,t),r=new i(n);try{r.parse()}catch(e){throw e}return r.root}e.exports=a,a.default=a,r.registerParse(a)},30699:(e,t,n)=>{"use strict";let r=n(73838),i=n(28509),o=n(27459),a=n(25044),s=n(60868),l=n(89542);const c={empty:!0,space:!0};e.exports=class{constructor(e){this.input=e,this.root=new s,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t,n,r,i=new a;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);let o=!1,s=!1,l=[],c=[];for(;!this.tokenizer.endOfFile();){if(t=(e=this.tokenizer.nextToken())[0],"("===t||"["===t?c.push("("===t?")":"]"):"{"===t&&c.length>0?c.push("}"):t===c[c.length-1]&&c.pop(),0===c.length){if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}if("{"===t){s=!0;break}if("}"===t){if(l.length>0){for(r=l.length-1,n=l[r];n&&"space"===n[0];)n=l[--r];n&&(i.source.end=this.getPosition(n[3]||n[2]),i.source.end.offset++)}this.end(e);break}l.push(e)}else l.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(i.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(i,"params",l),o&&(e=l[l.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),s&&(i.nodes=[],this.current=i)}checkMissedSemicolon(e){let t=this.colon(e);if(!1===t)return;let n,r=0;for(let i=t-1;i>=0&&(n=e[i],"space"===n[0]||(r+=1,2!==r));i--);throw this.input.error("Missed semicolon","word"===n[0]?n[3]+1:n[2])}colon(e){let t,n,r,i=0;for(let[o,a]of e.entries()){if(t=a,n=t[0],"("===n&&(i+=1),")"===n&&(i-=1),0===i&&":"===n){if(r){if("word"===r[0]&&"progid"===r[1])continue;return o}this.doubleColon(t)}r=t}return!1}comment(e){let t=new o;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let n=e[1].slice(2,-2);if(/^\s*$/.test(n))t.text="",t.raws.left=n,t.raws.right="";else{let e=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}createTokenizer(){this.tokenizer=i(this.input)}decl(e,t){let n=new r;this.init(n,e[0][2]);let i,o=e[e.length-1];for(";"===o[0]&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(o[3]||o[2]||function(e){for(let t=e.length-1;t>=0;t--){let n=e[t],r=n[3]||n[2];if(r)return r}}(e)),n.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){let t=e[0][0];if(":"===t||"space"===t||"comment"===t)break;n.prop+=e.shift()[1]}for(n.raws.between="";e.length;){if(i=e.shift(),":"===i[0]){n.raws.between+=i[1];break}"word"===i[0]&&/\w/.test(i[1])&&this.unknownWord([i]),n.raws.between+=i[1]}"_"!==n.prop[0]&&"*"!==n.prop[0]||(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let a,s=[];for(;e.length&&(a=e[0][0],"space"===a||"comment"===a);)s.push(e.shift());this.precheckMissedSemicolon(e);for(let t=e.length-1;t>=0;t--){if(i=e[t],"!important"===i[1].toLowerCase()){n.important=!0;let r=this.stringFrom(e,t);r=this.spacesFromEnd(e)+r," !important"!==r&&(n.raws.important=r);break}if("important"===i[1].toLowerCase()){let r=e.slice(0),i="";for(let e=t;e>0;e--){let t=r[e][0];if(0===i.trim().indexOf("!")&&"space"!==t)break;i=r.pop()[1]+i}0===i.trim().indexOf("!")&&(n.important=!0,n.raws.important=i,e=r)}if("space"!==i[0]&&"comment"!==i[0])break}e.some((e=>"space"!==e[0]&&"comment"!==e[0]))&&(n.raws.between+=s.map((e=>e[1])).join(""),s=[]),this.raw(n,"value",s.concat(e),t),n.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new l;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let e=this.current.nodes[this.current.nodes.length-1];e&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)}other(e){let t=!1,n=null,r=!1,i=null,o=[],a=e[1].startsWith("--"),s=[],l=e;for(;l;){if(n=l[0],s.push(l),"("===n||"["===n)i||(i=l),o.push("("===n?")":"]");else if(a&&r&&"{"===n)i||(i=l),o.push("}");else if(0===o.length){if(";"===n){if(r)return void this.decl(s,a);break}if("{"===n)return void this.rule(s);if("}"===n){this.tokenizer.back(s.pop()),t=!0;break}":"===n&&(r=!0)}else n===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&r){if(!a)for(;s.length&&(l=s[s.length-1][0],"space"===l||"comment"===l);)this.tokenizer.back(s.pop());this.decl(s,a)}else this.unknownWord(s)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}precheckMissedSemicolon(){}raw(e,t,n,r){let i,o,a,s,l=n.length,u="",d=!0;for(let e=0;ee+t[1]),"");e.raws[t]={raw:r,value:u}}e[t]=u}rule(e){e.pop();let t=new l;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],"space"===t||"comment"===t);)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let t,n="";for(;e.length&&(t=e[0][0],"space"===t||"comment"===t);)n+=e.shift()[1];return n}spacesFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],"space"===t);)n=e.pop()[1]+n;return n}stringFrom(e,t){let n="";for(let r=t;r{"use strict";let r=n(43718),i=n(73838),o=n(18398),a=n(11241),s=n(87158),l=n(23439),c=n(69318),u=n(27417),d=n(73950),h=n(27459),p=n(25044),f=n(21309),g=n(17306),m=n(50161),y=n(42576),v=n(89542),b=n(60868),x=n(36040);function w(...e){return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new s(e)}w.plugin=function(e,t){let n,r=!1;function i(...n){console&&console.warn&&!r&&(r=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));let i=t(...n);return i.postcssPlugin=e,i.postcssVersion=(new s).version,i}return Object.defineProperty(i,"postcss",{get:()=>(n||(n=i()),n)}),i.process=function(e,t,n){return w([i(n)]).process(e,t)},i},w.stringify=l,w.parse=m,w.fromJSON=c,w.list=y,w.comment=e=>new h(e),w.atRule=e=>new p(e),w.decl=e=>new i(e),w.rule=e=>new v(e),w.root=e=>new b(e),w.document=e=>new u(e),w.CssSyntaxError=r,w.Declaration=i,w.Container=a,w.Processor=s,w.Document=u,w.Comment=h,w.Warning=d,w.AtRule=p,w.Result=f,w.Input=g,w.Rule=v,w.Root=b,w.Node=x,o.registerPostcss(w),e.exports=w,w.default=w},38574:(e,t,n)=>{"use strict";let{SourceMapConsumer:r,SourceMapGenerator:i}=n(72770),{existsSync:o,readFileSync:a}=n(22337),{dirname:s,join:l}=n(33261);class c{constructor(e,t){if(!1===t.map)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let n=t.map?t.map.prev:void 0,r=this.loadMap(t.from,n);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=s(this.mapFile)),r&&(this.text=r)}consumer(){return this.consumerCache||(this.consumerCache=new r(this.text)),this.consumerCache}decodeInline(e){if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e))return t=e.substr(RegExp.lastMatch.length),Buffer?Buffer.from(t,"base64").toString():window.atob(t);var t;let n=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+n)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return"object"==typeof e&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let n=e.lastIndexOf(t.pop()),r=e.indexOf("*/",n);n>-1&&r>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,r)))}loadFile(e){if(this.root=s(e),o(e))return this.mapFile=e,a(e,"utf-8").toString().trim()}loadMap(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(t instanceof r)return i.fromSourceMap(t).toString();if(t instanceof i)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}{let n=t(e);if(n){let e=this.loadFile(n);if(!e)throw new Error("Unable to load previous source map: "+n.toString());return e}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let t=this.annotation;return e&&(t=l(s(e),t)),this.loadFile(t)}}}startWith(e,t){return!!e&&e.substr(0,t.length)===t}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}e.exports=c,c.default=c},87158:(e,t,n)=>{"use strict";let r=n(37787),i=n(18398),o=n(27417),a=n(60868);class s{constructor(e=[]){this.version="8.4.38",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let n of e)if(!0===n.postcss?n=n():n.postcss&&(n=n.postcss),"object"==typeof n&&Array.isArray(n.plugins))t=t.concat(n.plugins);else if("object"==typeof n&&n.postcssPlugin)t.push(n);else if("function"==typeof n)t.push(n);else{if("object"!=typeof n||!n.parse&&!n.stringify)throw new Error(n+" is not a PostCSS plugin")}return t}process(e,t={}){return this.plugins.length||t.parser||t.stringifier||t.syntax?new i(this,e,t):new r(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}}e.exports=s,s.default=s,a.registerProcessor(s),o.registerProcessor(s)},21309:(e,t,n)=>{"use strict";let r=n(73950);class i{constructor(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let n=new r(e,t);return this.messages.push(n),n}warnings(){return this.messages.filter((e=>"warning"===e.type))}get content(){return this.css}}e.exports=i,i.default=i},60868:(e,t,n)=>{"use strict";let r,i,o=n(11241);class a extends o{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,n){let r=super.normalize(e);if(t)if("prepend"===n)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let e of r)e.raws.before=t.raws.before;return r}removeChild(e,t){let n=this.index(e);return!t&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}toResult(e={}){return new r(new i,this,e).stringify()}}a.registerLazyResult=e=>{r=e},a.registerProcessor=e=>{i=e},e.exports=a,a.default=a,o.registerRoot(a)},89542:(e,t,n)=>{"use strict";let r=n(11241),i=n(42576);class o extends r{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return i.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}}e.exports=o,o.default=o,r.registerRule(o)},40636:e=>{"use strict";const t={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};class n{constructor(e){this.builder=e}atrule(e,t){let n="@"+e.name,r=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?n+=e.raws.afterName:r&&(n+=" "),e.nodes)this.block(e,n+r);else{let i=(e.raws.between||"")+(t?";":"");this.builder(n+r+i,e)}}beforeAfter(e,t){let n;n="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");let r=e.parent,i=0;for(;r&&"root"!==r.type;)i+=1,r=r.parent;if(n.includes("\n")){let t=this.raw(e,null,"indent");if(t.length)for(let e=0;e0&&"comment"===e.nodes[t].type;)t-=1;let n=this.raw(e,"semicolon");for(let r=0;r{if(i=e.raws[n],void 0!==i)return!1}))}var s;return void 0===i&&(i=t[r]),a.rawCache[r]=i,i}rawBeforeClose(e){let t;return e.walk((e=>{if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return t=e.raws.after,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let n;return e.walkComments((e=>{if(void 0!==e.raws.before)return n=e.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1})),void 0===n?n=this.raw(t,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeDecl(e,t){let n;return e.walkDecls((e=>{if(void 0!==e.raws.before)return n=e.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1})),void 0===n?n=this.raw(t,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeOpen(e){let t;return e.walk((e=>{if("decl"!==e.type&&(t=e.raws.between,void 0!==t))return!1})),t}rawBeforeRule(e){let t;return e.walk((n=>{if(n.nodes&&(n.parent!==e||e.first!==n)&&void 0!==n.raws.before)return t=n.raws.before,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls((e=>{if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1})),t}rawEmptyBody(e){let t;return e.walk((e=>{if(e.nodes&&0===e.nodes.length&&(t=e.raws.after,void 0!==t))return!1})),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk((n=>{let r=n.parent;if(r&&r!==e&&r.parent&&r.parent===e&&void 0!==n.raws.before){let e=n.raws.before.split("\n");return t=e[e.length-1],t=t.replace(/\S/g,""),!1}})),t}rawSemicolon(e){let t;return e.walk((e=>{if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&(t=e.raws.semicolon,void 0!==t))return!1})),t}rawValue(e,t){let n=e[t],r=e.raws[t];return r&&r.value===n?r.raw:n}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}}e.exports=n,n.default=n},23439:(e,t,n)=>{"use strict";let r=n(40636);function i(e,t){new r(t).stringify(e)}e.exports=i,i.default=i},64191:e=>{"use strict";e.exports.isClean=Symbol("isClean"),e.exports.my=Symbol("my")},28509:e=>{"use strict";const t="'".charCodeAt(0),n='"'.charCodeAt(0),r="\\".charCodeAt(0),i="/".charCodeAt(0),o="\n".charCodeAt(0),a=" ".charCodeAt(0),s="\f".charCodeAt(0),l="\t".charCodeAt(0),c="\r".charCodeAt(0),u="[".charCodeAt(0),d="]".charCodeAt(0),h="(".charCodeAt(0),p=")".charCodeAt(0),f="{".charCodeAt(0),g="}".charCodeAt(0),m=";".charCodeAt(0),y="*".charCodeAt(0),v=":".charCodeAt(0),b="@".charCodeAt(0),x=/[\t\n\f\r "#'()/;[\\\]{}]/g,w=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,A=/.[\r\n"'(/\\]/,S=/[\da-f]/i;e.exports=function(e,C={}){let E,_,k,T,O,P,I,M,L,R,j=e.css.valueOf(),F=C.ignoreErrors,D=j.length,N=0,z=[],V=[];function B(t){throw e.error("Unclosed "+t,N)}return{back:function(e){V.push(e)},endOfFile:function(){return 0===V.length&&N>=D},nextToken:function(e){if(V.length)return V.pop();if(N>=D)return;let C=!!e&&e.ignoreUnclosed;switch(E=j.charCodeAt(N),E){case o:case a:case l:case c:case s:_=N;do{_+=1,E=j.charCodeAt(_)}while(E===a||E===o||E===l||E===c||E===s);R=["space",j.slice(N,_)],N=_-1;break;case u:case d:case f:case g:case v:case m:case p:{let e=String.fromCharCode(E);R=[e,e,N];break}case h:if(M=z.length?z.pop()[1]:"",L=j.charCodeAt(N+1),"url"===M&&L!==t&&L!==n&&L!==a&&L!==o&&L!==l&&L!==s&&L!==c){_=N;do{if(P=!1,_=j.indexOf(")",_+1),-1===_){if(F||C){_=N;break}B("bracket")}for(I=_;j.charCodeAt(I-1)===r;)I-=1,P=!P}while(P);R=["brackets",j.slice(N,_+1),N,_],N=_}else _=j.indexOf(")",N+1),T=j.slice(N,_+1),-1===_||A.test(T)?R=["(","(",N]:(R=["brackets",T,N,_],N=_);break;case t:case n:k=E===t?"'":'"',_=N;do{if(P=!1,_=j.indexOf(k,_+1),-1===_){if(F||C){_=N+1;break}B("string")}for(I=_;j.charCodeAt(I-1)===r;)I-=1,P=!P}while(P);R=["string",j.slice(N,_+1),N,_],N=_;break;case b:x.lastIndex=N+1,x.test(j),_=0===x.lastIndex?j.length-1:x.lastIndex-2,R=["at-word",j.slice(N,_+1),N,_],N=_;break;case r:for(_=N,O=!0;j.charCodeAt(_+1)===r;)_+=1,O=!O;if(E=j.charCodeAt(_+1),O&&E!==i&&E!==a&&E!==o&&E!==l&&E!==c&&E!==s&&(_+=1,S.test(j.charAt(_)))){for(;S.test(j.charAt(_+1));)_+=1;j.charCodeAt(_+1)===a&&(_+=1)}R=["word",j.slice(N,_+1),N,_],N=_;break;default:E===i&&j.charCodeAt(N+1)===y?(_=j.indexOf("*/",N+2)+1,0===_&&(F||C?_=j.length:B("comment")),R=["comment",j.slice(N,_+1),N,_],N=_):(w.lastIndex=N+1,w.test(j),_=0===w.lastIndex?j.length-1:w.lastIndex-2,R=["word",j.slice(N,_+1),N,_],z.push(R),N=_)}return N++,R},position:function(){return N}}}},90644:e=>{"use strict";let t={};e.exports=function(e){t[e]||(t[e]=!0,"undefined"!=typeof console&&console.warn&&console.warn(e))}},73950:e=>{"use strict";class t{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let e=t.node.rangeBy(t);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let e in t)this[e]=t[e]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}e.exports=t,t.default=t},28414:(e,t,n)=>{"use strict";var r=n(20914);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},22300:(e,t,n)=>{e.exports=n(28414)()},20914:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},86458:(e,t,n)=>{"use strict";const r=n(57873),i=n(29221),o=n(47613),a=n(5137),s=Symbol("encodeFragmentIdentifier");function l(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function c(e,t){return t.encode?t.strict?r(e):encodeURIComponent(e):e}function u(e,t){return t.decode?i(e):e}function d(e){return Array.isArray(e)?e.sort():"object"==typeof e?d(Object.keys(e)).sort(((e,t)=>Number(e)-Number(t))).map((t=>e[t])):e}function h(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function p(e){const t=(e=h(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function f(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function g(e,t){l((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const n=function(e){let t;switch(e.arrayFormat){case"index":return(e,n,r)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return(e,n,r)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"colon-list-separator":return(e,n,r)=>{t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"comma":case"separator":return(t,n,r)=>{const i="string"==typeof n&&n.includes(e.arrayFormatSeparator),o="string"==typeof n&&!i&&u(n,e).includes(e.arrayFormatSeparator);n=o?u(n,e):n;const a=i||o?n.split(e.arrayFormatSeparator).map((t=>u(t,e))):null===n?n:u(n,e);r[t]=a};case"bracket-separator":return(t,n,r)=>{const i=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),!i)return void(r[t]=n?u(n,e):n);const o=null===n?[]:n.split(e.arrayFormatSeparator).map((t=>u(t,e)));void 0!==r[t]?r[t]=[].concat(r[t],o):r[t]=o};default:return(e,t,n)=>{void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t),r=Object.create(null);if("string"!=typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;for(const i of e.split("&")){if(""===i)continue;let[e,a]=o(t.decode?i.replace(/\+/g," "):i,"=");a=void 0===a?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?a:u(a,t),n(u(e,t),a,r)}for(const e of Object.keys(r)){const n=r[e];if("object"==typeof n&&null!==n)for(const e of Object.keys(n))n[e]=f(n[e],t);else r[e]=f(n,t)}return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce(((e,t)=>{const n=r[t];return Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?e[t]=d(n):e[t]=n,e}),Object.create(null))}t.extract=p,t.parse=g,t.stringify=(e,t)=>{if(!e)return"";l((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const n=n=>t.skipNull&&null==e[n]||t.skipEmptyString&&""===e[n],r=function(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{const i=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[c(t,e),"[",i,"]"].join("")]:[...n,[c(t,e),"[",c(i,e),"]=",c(r,e)].join("")]};case"bracket":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[c(t,e),"[]"].join("")]:[...n,[c(t,e),"[]=",c(r,e)].join("")];case"colon-list-separator":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[c(t,e),":list="].join("")]:[...n,[c(t,e),":list=",c(r,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return n=>(r,i)=>void 0===i||e.skipNull&&null===i||e.skipEmptyString&&""===i?r:(i=null===i?"":i,0===r.length?[[c(n,e),t,c(i,e)].join("")]:[[r,c(i,e)].join(e.arrayFormatSeparator)])}default:return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,c(t,e)]:[...n,[c(t,e),"=",c(r,e)].join("")]}}(t),i={};for(const t of Object.keys(e))n(t)||(i[t]=e[t]);const o=Object.keys(i);return!1!==t.sort&&o.sort(t.sort),o.map((n=>{const i=e[n];return void 0===i?"":null===i?c(n,t):Array.isArray(i)?0===i.length&&"bracket-separator"===t.arrayFormat?c(n,t)+"[]":i.reduce(r(n),[]).join("&"):c(n,t)+"="+c(i,t)})).filter((e=>e.length>0)).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[n,r]=o(e,"#");return Object.assign({url:n.split("?")[0]||"",query:g(p(e),t)},t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:u(r,t)}:{})},t.stringifyUrl=(e,n)=>{n=Object.assign({encode:!0,strict:!0,[s]:!0},n);const r=h(e.url).split("?")[0]||"",i=t.extract(e.url),o=t.parse(i,{sort:!1}),a=Object.assign(o,e.query);let l=t.stringify(a,n);l&&(l=`?${l}`);let u=function(e){let t="";const n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);return e.fragmentIdentifier&&(u=`#${n[s]?c(e.fragmentIdentifier,n):e.fragmentIdentifier}`),`${r}${l}${u}`},t.pick=(e,n,r)=>{r=Object.assign({parseFragmentIdentifier:!0,[s]:!1},r);const{url:i,query:o,fragmentIdentifier:l}=t.parseUrl(e,r);return t.stringifyUrl({url:i,query:a(o,n),fragmentIdentifier:l},r)},t.exclude=(e,n,r)=>{const i=Array.isArray(n)?e=>!n.includes(e):(e,t)=>!n(e,t);return t.pick(e,i,r)}},37565:function(e){e.exports=function(){"use strict";function e(e,r,i,o,a){!function e(n,r,i,o,a){for(;o>i;){if(o-i>600){var s=o-i+1,l=r-i+1,c=Math.log(s),u=.5*Math.exp(2*c/3),d=.5*Math.sqrt(c*u*(s-u)/s)*(l-s/2<0?-1:1);e(n,r,Math.max(i,Math.floor(r-l*u/s+d)),Math.min(o,Math.floor(r+(s-l)*u/s+d)),a)}var h=n[r],p=i,f=o;for(t(n,i,r),a(n[o],h)>0&&t(n,i,o);p0;)f--}0===a(n[i],h)?t(n,i,f):t(n,++f,o),f<=r&&(i=f+1),r<=f&&(o=f-1)}}(e,r,i||0,o||e.length-1,a||n)}function t(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function n(e,t){return et?1:0}var r=function(e){void 0===e&&(e=9),this._maxEntries=Math.max(4,e),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function i(e,t,n){if(!n)return t.indexOf(e);for(var r=0;r=e.minX&&t.maxY>=e.minY}function f(e){return{children:e,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function g(t,n,r,i,o){for(var a=[n,r];a.length;)if(!((r=a.pop())-(n=a.pop())<=i)){var s=n+Math.ceil((r-n)/i/2)*i;e(t,s,n,r,o),a.push(n,s,s,r)}}return r.prototype.all=function(){return this._all(this.data,[])},r.prototype.search=function(e){var t=this.data,n=[];if(!p(e,t))return n;for(var r=this.toBBox,i=[];t;){for(var o=0;o=0&&i[t].children.length>this._maxEntries;)this._split(i,t),t--;this._adjustParentBBoxes(r,i,t)},r.prototype._split=function(e,t){var n=e[t],r=n.children.length,i=this._minEntries;this._chooseSplitAxis(n,i,r);var a=this._chooseSplitIndex(n,i,r),s=f(n.children.splice(a,n.children.length-a));s.height=n.height,s.leaf=n.leaf,o(n,this.toBBox),o(s,this.toBBox),t?e[t-1].children.push(s):this._splitRoot(n,s)},r.prototype._splitRoot=function(e,t){this.data=f([e,t]),this.data.height=e.height+1,this.data.leaf=!1,o(this.data,this.toBBox)},r.prototype._chooseSplitIndex=function(e,t,n){for(var r,i,o,s,l,c,d,h=1/0,p=1/0,f=t;f<=n-t;f++){var g=a(e,0,f,this.toBBox),m=a(e,f,n,this.toBBox),y=(i=g,o=m,s=void 0,l=void 0,c=void 0,d=void 0,s=Math.max(i.minX,o.minX),l=Math.max(i.minY,o.minY),c=Math.min(i.maxX,o.maxX),d=Math.min(i.maxY,o.maxY),Math.max(0,c-s)*Math.max(0,d-l)),v=u(g)+u(m);y=t;p--){var f=e.children[p];s(l,e.leaf?i(f):f),c+=d(l)}return c},r.prototype._adjustParentBBoxes=function(e,t,n){for(var r=n;r>=0;r--)s(t[r],e)},r.prototype._condense=function(e){for(var t=e.length-1,n=void 0;t>=0;t--)0===e[t].children.length?t>0?(n=e[t-1].children).splice(n.indexOf(e[t]),1):this.clear():o(e[t],this.toBBox)},r}()},77669:(e,t,n)=>{"use strict"; +function n(e){return"[object Object]"===Object.prototype.toString.call(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.isPlainObject=function(e){var t,r;return!1!==n(e)&&(void 0===(t=e.constructor)||!1!==n(r=t.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))}},23018:e=>{"use strict";var t=e.exports=function(e,t,r){"function"==typeof t&&(r=t,t={}),n(t,"function"==typeof(r=t.cb||r)?r:r.pre||function(){},r.post||function(){},e,"",e)};function n(e,r,i,o,a,s,l,c,u,d){if(o&&"object"==typeof o&&!Array.isArray(o)){for(var h in r(o,a,s,l,c,u,d),o){var p=o[h];if(Array.isArray(p)){if(h in t.arrayKeywords)for(var f=0;f{var r=n(86973);e.exports=function(){if(!arguments.length)return[];var e=arguments[0];return r(e)?e:[e]}},26629:(e,t,n)=>{var r=n(51522),i=n(14452),o=n(55719),a=n(34971),s=n(25987);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t{var r=n(79577).Uint8Array;e.exports=r},64797:e=>{e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},56389:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n{e.exports=function(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n{e.exports=function(e){return e.split("")}},61025:e=>{var t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(t)||[]}},12817:(e,t,n)=>{var r=n(76596),i=n(11284);e.exports=function(e,t,n){(void 0!==n&&!i(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},8399:(e,t,n)=>{var r=n(76596),i=n(11284),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];o.call(e,t)&&i(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},30173:(e,t,n)=>{var r=n(11284);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},2809:(e,t,n)=>{var r=n(25763),i=n(46794);e.exports=function(e,t){return e&&r(t,i(t),e)}},6306:(e,t,n)=>{var r=n(25763),i=n(10573);e.exports=function(e,t){return e&&r(t,i(t),e)}},76596:(e,t,n)=>{var r=n(53695);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},19251:(e,t,n)=>{var r=n(26629),i=n(56389),o=n(8399),a=n(2809),s=n(6306),l=n(11702),c=n(42627),u=n(71979),d=n(55928),h=n(6806),p=n(39425),f=n(39073),g=n(19665),m=n(23635),y=n(67149),v=n(86973),b=n(39964),w=n(91798),x=n(16841),A=n(8996),S=n(46794),C=n(10573),E="[object Arguments]",_="[object Function]",k="[object Object]",T={};T[E]=T["[object Array]"]=T["[object ArrayBuffer]"]=T["[object DataView]"]=T["[object Boolean]"]=T["[object Date]"]=T["[object Float32Array]"]=T["[object Float64Array]"]=T["[object Int8Array]"]=T["[object Int16Array]"]=T["[object Int32Array]"]=T["[object Map]"]=T["[object Number]"]=T[k]=T["[object RegExp]"]=T["[object Set]"]=T["[object String]"]=T["[object Symbol]"]=T["[object Uint8Array]"]=T["[object Uint8ClampedArray]"]=T["[object Uint16Array]"]=T["[object Uint32Array]"]=!0,T["[object Error]"]=T[_]=T["[object WeakMap]"]=!1,e.exports=function e(t,n,O,P,I,M){var L,R=1&n,j=2&n,F=4&n;if(O&&(L=I?O(t,P,I,M):O(t)),void 0!==L)return L;if(!x(t))return t;var D=v(t);if(D){if(L=g(t),!R)return c(t,L)}else{var N=f(t),z=N==_||"[object GeneratorFunction]"==N;if(b(t))return l(t,R);if(N==k||N==E||z&&!I){if(L=j||z?{}:y(t),!R)return j?d(t,s(L,t)):u(t,a(L,t))}else{if(!T[N])return I?t:{};L=m(t,N,R)}}M||(M=new r);var V=M.get(t);if(V)return V;M.set(t,L),A(t)?t.forEach((function(r){L.add(e(r,n,O,r,t,M))})):w(t)&&t.forEach((function(r,i){L.set(i,e(r,n,O,i,t,M))}));var B=D?void 0:(F?j?p:h:j?C:S)(t);return i(B||t,(function(r,i){B&&(r=t[i=r]),o(L,i,e(r,n,O,i,t,M))})),L}},66548:(e,t,n)=>{var r=n(16841),i=Object.create,o=function(){function e(){}return function(t){if(!r(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=o},41313:e=>{e.exports=function(e,t,n){if("function"!=typeof e)throw new TypeError("Expected a function");return setTimeout((function(){e.apply(void 0,n)}),t)}},37981:(e,t,n)=>{var r=n(10609)();e.exports=r},34316:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},24927:e=>{e.exports=function(e,t,n){for(var r=n-1,i=e.length;++r{var r=n(39760),i=n(4406);e.exports=function e(t,n,o,a,s){return t===n||(null==t||null==n||!i(t)&&!i(n)?t!=t&&n!=n:r(t,n,o,a,e,s))}},39760:(e,t,n)=>{var r=n(26629),i=n(16267),o=n(27822),a=n(18837),s=n(39073),l=n(86973),c=n(39964),u=n(66971),d="[object Arguments]",h="[object Array]",p="[object Object]",f=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,g,m,y){var v=l(e),b=l(t),w=v?h:s(e),x=b?h:s(t),A=(w=w==d?p:w)==p,S=(x=x==d?p:x)==p,C=w==x;if(C&&c(e)){if(!c(t))return!1;v=!0,A=!1}if(C&&!A)return y||(y=new r),v||u(e)?i(e,t,n,g,m,y):o(e,t,w,n,g,m,y);if(!(1&n)){var E=A&&f.call(e,"__wrapped__"),_=S&&f.call(t,"__wrapped__");if(E||_){var k=E?e.value():e,T=_?t.value():t;return y||(y=new r),m(k,T,n,g,y)}}return!!C&&(y||(y=new r),a(e,t,n,g,m,y))}},59345:e=>{e.exports=function(e){return e}},66006:(e,t,n)=>{var r=n(26629),i=n(12817),o=n(37981),a=n(99268),s=n(16841),l=n(10573),c=n(35282);e.exports=function e(t,n,u,d,h){t!==n&&o(n,(function(o,l){if(h||(h=new r),s(o))a(t,n,l,u,e,d,h);else{var p=d?d(c(t,l),o,l+"",t,n,h):void 0;void 0===p&&(p=o),i(t,l,p)}}),l)}},99268:(e,t,n)=>{var r=n(12817),i=n(11702),o=n(2877),a=n(42627),s=n(67149),l=n(23419),c=n(86973),u=n(70673),d=n(39964),h=n(55470),p=n(16841),f=n(215),g=n(66971),m=n(35282),y=n(62592);e.exports=function(e,t,n,v,b,w,x){var A=m(e,n),S=m(t,n),C=x.get(S);if(C)r(e,n,C);else{var E=w?w(A,S,n+"",e,t,x):void 0,_=void 0===E;if(_){var k=c(S),T=!k&&d(S),O=!k&&!T&&g(S);E=S,k||T||O?c(A)?E=A:u(A)?E=a(A):T?(_=!1,E=i(S,!0)):O?(_=!1,E=o(S,!0)):E=[]:f(S)||l(S)?(E=A,l(A)?E=y(A):p(A)&&!h(A)||(E=s(S))):_=!1}_&&(x.set(S,E),b(E,S,v,w,x),x.delete(S)),r(e,n,E)}}},22899:e=>{var t=Math.ceil,n=Math.max;e.exports=function(e,r,i,o){for(var a=-1,s=n(t((r-e)/(i||1)),0),l=Array(s);s--;)l[o?s:++a]=e,e+=i;return l}},29490:(e,t,n)=>{var r=n(35308),i=n(14385),o=n(92565);e.exports=function(e,t){return o(i(e,t,r),e+"")}},74316:e=>{e.exports=function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r{e.exports=function(e,t){for(var n,r=-1,i=e.length;++r{e.exports=function(e){return e}},175:(e,t,n)=>{var r=n(24927);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},42966:(e,t,n)=>{var r=n(74316);e.exports=function(e,t,n){var i=e.length;return n=void 0===n?i:n,!t&&n>=i?e:r(e,t,n)}},52729:(e,t,n)=>{var r=n(38512);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},11702:(e,t,n)=>{e=n.nmd(e);var r=n(79577),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}},2877:(e,t,n)=>{var r=n(52729);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},42627:e=>{e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n{var r=n(8399),i=n(76596);e.exports=function(e,t,n,o){var a=!n;n||(n={});for(var s=-1,l=t.length;++s{var r=n(25763),i=n(58860);e.exports=function(e,t){return r(e,i(e),t)}},55928:(e,t,n)=>{var r=n(25763),i=n(23411);e.exports=function(e,t){return r(e,i(e),t)}},41467:(e,t,n)=>{var r=n(29490),i=n(14572);e.exports=function(e){return r((function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),t=Object(t);++r{e.exports=function(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(!1===n(o[l],l,o))break}return t}}},16791:(e,t,n)=>{var r=n(42966),i=n(40238),o=n(41772),a=n(9986);e.exports=function(e){return function(t){t=a(t);var n=i(t)?o(t):void 0,s=n?n[0]:t.charAt(0),l=n?r(n,1).join(""):t.slice(1);return s[e]()+l}}},84599:(e,t,n)=>{var r=n(10046),i=n(39976),o=n(89321),a=RegExp("['’]","g");e.exports=function(e){return function(t){return r(o(i(t).replace(a,"")),e,"")}}},77136:(e,t,n)=>{var r=n(22899),i=n(14572),o=n(76300);e.exports=function(e){return function(t,n,a){return a&&"number"!=typeof a&&i(t,n,a)&&(n=a=void 0),t=o(t),void 0===n?(n=t,t=0):n=o(n),a=void 0===a?t{var r=n(66006),i=n(16841);e.exports=function e(t,n,o,a,s,l){return i(t)&&i(n)&&(l.set(n,t),r(t,n,void 0,e,l),l.delete(n)),t}},53695:(e,t,n)=>{var r=n(13442),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},16267:(e,t,n)=>{var r=n(70743),i=n(76780),o=n(175);e.exports=function(e,t,n,a,s,l){var c=1&n,u=e.length,d=t.length;if(u!=d&&!(c&&d>u))return!1;var h=l.get(e),p=l.get(t);if(h&&p)return h==t&&p==e;var f=-1,g=!0,m=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++f{e.exports=function(e,t){return e===t||e!=e&&t!=t}},18837:(e,t,n)=>{var r=n(6806),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,o,a,s){var l=1&n,c=r(e),u=c.length;if(u!=r(t).length&&!l)return!1;for(var d=u;d--;){var h=c[d];if(!(l?h in t:i.call(t,h)))return!1}var p=s.get(e),f=s.get(t);if(p&&f)return p==t&&f==e;var g=!0;s.set(e,t),s.set(t,e);for(var m=l;++d{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},6806:(e,t,n)=>{var r=n(11275)(Object.keys,Object);e.exports=r},39425:e=>{e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},13442:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},6243:(e,t,n)=>{var r=n(11275)(Object.getPrototypeOf,Object);e.exports=r},58860:e=>{e.exports=function(){return[]}},23411:e=>{e.exports=function(){return[]}},39073:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},40238:e=>{var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},77969:e=>{var t=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return t.test(e)}},19665:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e){var n=e.length,r=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},23635:e=>{e.exports=function(e){return e}},67149:(e,t,n)=>{var r=n(66548),i=n(6243),o=n(7275);e.exports=function(e){return"function"!=typeof e.constructor||o(e)?{}:r(i(e))}},14572:e=>{e.exports=function(){return!1}},7275:e=>{e.exports=function(){return!1}},51522:e=>{e.exports=function(){this.__data__=[],this.size=0}},14452:(e,t,n)=>{var r=n(30173),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():i.call(t,n,1),--this.size,!0)}},55719:(e,t,n)=>{var r=n(30173);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},34971:(e,t,n)=>{var r=n(30173);e.exports=function(e){return r(this.__data__,e)>-1}},25987:(e,t,n)=>{var r=n(30173);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},11275:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},14385:(e,t,n)=>{var r=n(64797),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=i(o.length-t,0),l=Array(s);++a{var r=n(85876),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},35282:e=>{e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},92565:e=>{e.exports=function(e){return e}},41772:(e,t,n)=>{var r=n(87926),i=n(40238),o=n(63618);e.exports=function(e){return i(e)?o(e):r(e)}},63618:e=>{var t="\\ud800-\\udfff",n="["+t+"]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",i="\\ud83c[\\udffb-\\udfff]",o="[^"+t+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+r+"|"+i+")"+"?",c="[\\ufe0e\\ufe0f]?",u=c+l+("(?:\\u200d(?:"+[o,a,s].join("|")+")"+c+l+")*"),d="(?:"+[o+r+"?",r,a,s,n].join("|")+")",h=RegExp(i+"(?="+i+")|"+d+u,"g");e.exports=function(e){return e.match(h)||[]}},62357:e=>{var t="\\ud800-\\udfff",n="\\u2700-\\u27bf",r="a-z\\xdf-\\xf6\\xf8-\\xff",i="A-Z\\xc0-\\xd6\\xd8-\\xde",o="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",a="["+o+"]",s="\\d+",l="["+n+"]",c="["+r+"]",u="[^"+t+o+s+n+r+i+"]",d="(?:\\ud83c[\\udde6-\\uddff]){2}",h="[\\ud800-\\udbff][\\udc00-\\udfff]",p="["+i+"]",f="(?:"+c+"|"+u+")",g="(?:"+p+"|"+u+")",m="(?:['’](?:d|ll|m|re|s|t|ve))?",y="(?:['’](?:D|LL|M|RE|S|T|VE))?",v="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",b="[\\ufe0e\\ufe0f]?",w=b+v+("(?:\\u200d(?:"+["[^"+t+"]",d,h].join("|")+")"+b+v+")*"),x="(?:"+[l,d,h].join("|")+")"+w,A=RegExp([p+"?"+c+"+"+m+"(?="+[a,p,"$"].join("|")+")",g+"+"+y+"(?="+[a,p+f,"$"].join("|")+")",p+"?"+f+"+"+m,p+"+"+y,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",s,x].join("|"),"g");e.exports=function(e){return e.match(A)||[]}},76390:(e,t,n)=>{var r=n(46900),i=n(84599)((function(e,t,n){return t=t.toLowerCase(),e+(n?r(t):t)}));e.exports=i},46900:(e,t,n)=>{var r=n(9986),i=n(81620);e.exports=function(e){return i(r(e).toLowerCase())}},80363:(e,t,n)=>{var r=n(19251);e.exports=function(e){return r(e,5)}},44481:(e,t,n)=>{var r=n(16841),i=n(18288),o=n(52914),a=Math.max,s=Math.min;e.exports=function(e,t,n){var l,c,u,d,h,p,f=0,g=!1,m=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function v(t){var n=l,r=c;return l=c=void 0,f=t,d=e.apply(r,n)}function b(e){var n=e-p;return void 0===p||n>=t||n<0||m&&e-f>=u}function w(){var e=i();if(b(e))return x(e);h=setTimeout(w,function(e){var n=t-(e-p);return m?s(n,u-(e-f)):n}(e))}function x(e){return h=void 0,y&&l?v(e):(l=c=void 0,d)}function A(){var e=i(),n=b(e);if(l=arguments,c=this,p=e,n){if(void 0===h)return function(e){return f=e,h=setTimeout(w,t),g?v(e):d}(p);if(m)return clearTimeout(h),h=setTimeout(w,t),v(p)}return void 0===h&&(h=setTimeout(w,t)),d}return t=o(t)||0,r(n)&&(g=!!n.leading,u=(m="maxWait"in n)?a(o(n.maxWait)||0,t):u,y="trailing"in n?!!n.trailing:y),A.cancel=function(){void 0!==h&&clearTimeout(h),f=0,l=p=c=h=void 0},A.flush=function(){return void 0===h?d:x(i())},A}},39976:(e,t,n)=>{var r=n(78056);e.exports=function(e){return null==e?"":r(e)}},79950:(e,t,n)=>{var r=n(64797),i=n(29490),o=n(40554),a=n(92200),s=i((function(e){return e.push(void 0,o),r(a,void 0,e)}));e.exports=s},75299:(e,t,n)=>{var r=n(41313),i=n(29490),o=n(52914),a=i((function(e,t,n){return r(e,o(t)||0,n)}));e.exports=a},11284:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},89255:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n{e.exports=function(e){return e}},23419:e=>{e.exports=function(){return!1}},86973:e=>{var t=Array.isArray;e.exports=t},538:(e,t,n)=>{var r=n(55470),i=n(19202);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},70673:(e,t,n)=>{var r=n(538),i=n(4406);e.exports=function(e){return i(e)&&r(e)}},39964:e=>{e.exports=function(){return!1}},34872:(e,t,n)=>{var r=n(47402);e.exports=function(e,t){return r(e,t)}},55470:(e,t,n)=>{var r=n(34316),i=n(16841);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},19202:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},91798:e=>{e.exports=function(){return!1}},16841:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},4406:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},215:(e,t,n)=>{var r=n(34316),i=n(6243),o=n(4406),a=Function.prototype,s=Object.prototype,l=a.toString,c=s.hasOwnProperty,u=l.call(Object);e.exports=function(e){if(!o(e)||"[object Object]"!=r(e))return!1;var t=i(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==u}},8996:e=>{e.exports=function(){return!1}},66971:e=>{e.exports=function(){return!1}},46794:(e,t,n)=>{var r=n(11275)(Object.keys,Object);e.exports=r},10573:e=>{e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},92200:(e,t,n)=>{var r=n(66006),i=n(41467)((function(e,t,n,i){r(e,t,n,i)}));e.exports=i},18288:(e,t,n)=>{var r=n(79577);e.exports=function(){return r.Date.now()}},99601:(e,t,n)=>{var r=n(77136)();e.exports=r},30886:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n{var r=n(59345),i=n(67629);e.exports=function(e,t){return e&&e.length?i(e,r(t,2)):0}},76300:e=>{e.exports=function(e){return e}},52914:e=>{e.exports=function(e){return e}},62592:(e,t,n)=>{var r=n(25763),i=n(10573);e.exports=function(e){return r(e,i(e))}},9986:e=>{e.exports=function(e){return e}},81620:(e,t,n)=>{var r=n(16791)("toUpperCase");e.exports=r},89321:(e,t,n)=>{var r=n(61025),i=n(77969),o=n(9986),a=n(62357);e.exports=function(e,t,n){return e=o(e),void 0===(t=n?void 0:t)?i(e)?a(e):r(e):e.match(t)||[]}},91521:function(e,t){var n,r,i;r=[],void 0===(i="function"==typeof(n=function(){return function(e){function t(e){return" "===e||"\t"===e||"\n"===e||"\f"===e||"\r"===e}function n(t){var n,r=t.exec(e.substring(g));if(r)return n=r[0],g+=n.length,n}for(var r,i,o,a,s,l=e.length,c=/^[ \t\n\r\u000c]+/,u=/^[, \t\n\r\u000c]+/,d=/^[^ \t\n\r\u000c]+/,h=/[,]+$/,p=/^\d+$/,f=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,g=0,m=[];;){if(n(u),g>=l)return m;r=n(d),i=[],","===r.slice(-1)?(r=r.replace(h,""),v()):y()}function y(){for(n(c),o="",a="in descriptor";;){if(s=e.charAt(g),"in descriptor"===a)if(t(s))o&&(i.push(o),o="",a="after descriptor");else{if(","===s)return g+=1,o&&i.push(o),void v();if("("===s)o+=s,a="in parens";else{if(""===s)return o&&i.push(o),void v();o+=s}}else if("in parens"===a)if(")"===s)o+=s,a="in descriptor";else{if(""===s)return i.push(o),void v();o+=s}else if("after descriptor"===a)if(t(s));else{if(""===s)return void v();a="in descriptor",g-=1}g+=1}}function v(){var t,n,o,a,s,l,c,u,d,h=!1,g={};for(a=0;a{"use strict";e.exports=i;var r=n(65335);function i(e){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(e)?e:new Uint8Array(e||0),this.pos=0,this.type=0,this.length=this.buf.length}i.Varint=0,i.Fixed64=1,i.Bytes=2,i.Fixed32=5;var o=4294967296,a=1/o,s="undefined"==typeof TextDecoder?null:new TextDecoder("utf8");function l(e){return e.type===i.Bytes?e.readVarint()+e.pos:e.pos+1}function c(e,t,n){return n?4294967296*t+(e>>>0):4294967296*(t>>>0)+(e>>>0)}function u(e,t,n){var r=t<=16383?1:t<=2097151?2:t<=268435455?3:Math.floor(Math.log(t)/(7*Math.LN2));n.realloc(r);for(var i=n.pos-1;i>=e;i--)n.buf[i+r]=n.buf[i]}function d(e,t){for(var n=0;n>>8,e[n+2]=t>>>16,e[n+3]=t>>>24}function A(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16)+(e[t+3]<<24)}i.prototype={destroy:function(){this.buf=null},readFields:function(e,t,n){for(n=n||this.length;this.pos>3,o=this.pos;this.type=7&r,e(i,t,this),this.pos===o&&this.skip(r)}return t},readMessage:function(e,t){return this.readFields(e,t,this.readVarint()+this.pos)},readFixed32:function(){var e=w(this.buf,this.pos);return this.pos+=4,e},readSFixed32:function(){var e=A(this.buf,this.pos);return this.pos+=4,e},readFixed64:function(){var e=w(this.buf,this.pos)+w(this.buf,this.pos+4)*o;return this.pos+=8,e},readSFixed64:function(){var e=w(this.buf,this.pos)+A(this.buf,this.pos+4)*o;return this.pos+=8,e},readFloat:function(){var e=r.read(this.buf,this.pos,!0,23,4);return this.pos+=4,e},readDouble:function(){var e=r.read(this.buf,this.pos,!0,52,8);return this.pos+=8,e},readVarint:function(e){var t,n,r=this.buf;return t=127&(n=r[this.pos++]),n<128?t:(t|=(127&(n=r[this.pos++]))<<7,n<128?t:(t|=(127&(n=r[this.pos++]))<<14,n<128?t:(t|=(127&(n=r[this.pos++]))<<21,n<128?t:function(e,t,n){var r,i,o=n.buf;if(i=o[n.pos++],r=(112&i)>>4,i<128)return c(e,r,t);if(i=o[n.pos++],r|=(127&i)<<3,i<128)return c(e,r,t);if(i=o[n.pos++],r|=(127&i)<<10,i<128)return c(e,r,t);if(i=o[n.pos++],r|=(127&i)<<17,i<128)return c(e,r,t);if(i=o[n.pos++],r|=(127&i)<<24,i<128)return c(e,r,t);if(i=o[n.pos++],r|=(1&i)<<31,i<128)return c(e,r,t);throw new Error("Expected varint not more than 10 bytes")}(t|=(15&(n=r[this.pos]))<<28,e,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var e=this.readVarint();return e%2==1?(e+1)/-2:e/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var e=this.readVarint()+this.pos,t=this.pos;return this.pos=e,e-t>=12&&s?function(e,t,n){return s.decode(e.subarray(t,n))}(this.buf,t,e):function(e,t,n){var r="",i=t;for(;i239?4:l>223?3:l>191?2:1;if(i+u>n)break;1===u?l<128&&(c=l):2===u?128==(192&(o=e[i+1]))&&(c=(31&l)<<6|63&o)<=127&&(c=null):3===u?(o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&((c=(15&l)<<12|(63&o)<<6|63&a)<=2047||c>=55296&&c<=57343)&&(c=null)):4===u&&(o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&((c=(15&l)<<18|(63&o)<<12|(63&a)<<6|63&s)<=65535||c>=1114112)&&(c=null)),null===c?(c=65533,u=1):c>65535&&(c-=65536,r+=String.fromCharCode(c>>>10&1023|55296),c=56320|1023&c),r+=String.fromCharCode(c),i+=u}return r}(this.buf,t,e)},readBytes:function(){var e=this.readVarint()+this.pos,t=this.buf.subarray(this.pos,e);return this.pos=e,t},readPackedVarint:function(e,t){if(this.type!==i.Bytes)return e.push(this.readVarint(t));var n=l(this);for(e=e||[];this.pos127;);else if(t===i.Bytes)this.pos=this.readVarint()+this.pos;else if(t===i.Fixed32)this.pos+=4;else{if(t!==i.Fixed64)throw new Error("Unimplemented type: "+t);this.pos+=8}},writeTag:function(e,t){this.writeVarint(e<<3|t)},realloc:function(e){for(var t=this.length||16;t268435455||e<0?function(e,t){var n,r;e>=0?(n=e%4294967296|0,r=e/4294967296|0):(r=~(-e/4294967296),4294967295^(n=~(-e%4294967296))?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){var 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:function(e){this.writeVarint(e<0?2*-e-1:2*e)},writeBoolean:function(e){this.writeVarint(Boolean(e))},writeString:function(e){e=String(e),this.realloc(4*e.length),this.pos++;var t=this.pos;this.pos=function(e,t,n){for(var 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);var n=this.pos-t;n>=128&&u(t,n,this),this.pos=t-1,this.writeVarint(n),this.pos+=n},writeFloat:function(e){this.realloc(4),r.write(this.buf,e,this.pos,!0,23,4),this.pos+=4},writeDouble:function(e){this.realloc(8),r.write(this.buf,e,this.pos,!0,52,8),this.pos+=8},writeBytes:function(e){var t=e.length;this.writeVarint(t),this.realloc(t);for(var n=0;n=128&&u(n,r,this),this.pos=n-1,this.writeVarint(r),this.pos+=r},writeMessage:function(e,t,n){this.writeTag(e,i.Bytes),this.writeRawMessage(t,n)},writePackedVarint:function(e,t){t.length&&this.writeMessage(e,d,t)},writePackedSVarint:function(e,t){t.length&&this.writeMessage(e,h,t)},writePackedBoolean:function(e,t){t.length&&this.writeMessage(e,g,t)},writePackedFloat:function(e,t){t.length&&this.writeMessage(e,p,t)},writePackedDouble:function(e,t){t.length&&this.writeMessage(e,f,t)},writePackedFixed32:function(e,t){t.length&&this.writeMessage(e,m,t)},writePackedSFixed32:function(e,t){t.length&&this.writeMessage(e,y,t)},writePackedFixed64:function(e,t){t.length&&this.writeMessage(e,v,t)},writePackedSFixed64:function(e,t){t.length&&this.writeMessage(e,b,t)},writeBytesField:function(e,t){this.writeTag(e,i.Bytes),this.writeBytes(t)},writeFixed32Field:function(e,t){this.writeTag(e,i.Fixed32),this.writeFixed32(t)},writeSFixed32Field:function(e,t){this.writeTag(e,i.Fixed32),this.writeSFixed32(t)},writeFixed64Field:function(e,t){this.writeTag(e,i.Fixed64),this.writeFixed64(t)},writeSFixed64Field:function(e,t){this.writeTag(e,i.Fixed64),this.writeSFixed64(t)},writeVarintField:function(e,t){this.writeTag(e,i.Varint),this.writeVarint(t)},writeSVarintField:function(e,t){this.writeTag(e,i.Varint),this.writeSVarint(t)},writeStringField:function(e,t){this.writeTag(e,i.Bytes),this.writeString(t)},writeFloatField:function(e,t){this.writeTag(e,i.Fixed32),this.writeFloat(t)},writeDoubleField:function(e,t){this.writeTag(e,i.Fixed64),this.writeDouble(t)},writeBooleanField:function(e,t){this.writeVarintField(e,Boolean(t))}}},9866:e=>{var t=String,n=function(){return{isColorSupported:!1,reset:t,bold:t,dim:t,italic:t,underline:t,inverse:t,hidden:t,strikethrough:t,black:t,red:t,green:t,yellow:t,blue:t,magenta:t,cyan:t,white:t,gray:t,bgBlack:t,bgRed:t,bgGreen:t,bgYellow:t,bgBlue:t,bgMagenta:t,bgCyan:t,bgWhite:t}};e.exports=n(),e.exports.createColors=n},25044:(e,t,n)=>{"use strict";let r=n(11241);class i extends r{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}}e.exports=i,i.default=i,r.registerAtRule(i)},27459:(e,t,n)=>{"use strict";let r=n(36040);class i extends r{constructor(e){super(e),this.type="comment"}}e.exports=i,i.default=i},11241:(e,t,n)=>{"use strict";let r,i,o,a,{isClean:s,my:l}=n(64191),c=n(73838),u=n(27459),d=n(36040);function h(e){return e.map((e=>(e.nodes&&(e.nodes=h(e.nodes)),delete e.source,e)))}function p(e){if(e[s]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)p(t)}class f extends d{append(...e){for(let t of e){let e=this.normalize(t,this.last);for(let t of e)this.proxyOf.nodes.push(t)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t,n,r=this.getIterator();for(;this.indexes[r]"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?(...n)=>e[t](...n.map((e=>"function"==typeof e?(t,n)=>e(t.toProxy(),n):e))):"every"===t||"some"===t?n=>e[t](((e,...t)=>n(e.toProxy(),...t))):"root"===t?()=>e.root().toProxy():"nodes"===t?e.nodes.map((e=>e.toProxy())):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t],set:(e,t,n)=>(e[t]===n||(e[t]=n,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0)}}index(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let n,r=this.index(e),i=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let e of i)this.proxyOf.nodes.splice(r+1,0,e);for(let e in this.indexes)n=this.indexes[e],r(e[l]||f.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[s]&&p(e),void 0===e.raws.before&&t&&void 0!==t.raws.before&&(e.raws.before=t.raws.before.replace(/\S/g,"")),e.parent=this.proxyOf,e)))}prepend(...e){e=e.reverse();for(let t of e){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){let t;e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);for(let n in this.indexes)t=this.indexes[n],t>=e&&(this.indexes[n]=t-1);return this.markDirty(),this}replaceValues(e,t,n){return n||(n=t,t={}),this.walkDecls((r=>{t.props&&!t.props.includes(r.prop)||t.fast&&!r.value.includes(t.fast)||(r.value=r.value.replace(e,n))})),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each(((t,n)=>{let r;try{r=e(t,n)}catch(e){throw t.addToError(e)}return!1!==r&&t.walk&&(r=t.walk(e)),r}))}walkAtRules(e,t){return t?e instanceof RegExp?this.walk(((n,r)=>{if("atrule"===n.type&&e.test(n.name))return t(n,r)})):this.walk(((n,r)=>{if("atrule"===n.type&&n.name===e)return t(n,r)})):(t=e,this.walk(((e,n)=>{if("atrule"===e.type)return t(e,n)})))}walkComments(e){return this.walk(((t,n)=>{if("comment"===t.type)return e(t,n)}))}walkDecls(e,t){return t?e instanceof RegExp?this.walk(((n,r)=>{if("decl"===n.type&&e.test(n.prop))return t(n,r)})):this.walk(((n,r)=>{if("decl"===n.type&&n.prop===e)return t(n,r)})):(t=e,this.walk(((e,n)=>{if("decl"===e.type)return t(e,n)})))}walkRules(e,t){return t?e instanceof RegExp?this.walk(((n,r)=>{if("rule"===n.type&&e.test(n.selector))return t(n,r)})):this.walk(((n,r)=>{if("rule"===n.type&&n.selector===e)return t(n,r)})):(t=e,this.walk(((e,n)=>{if("rule"===e.type)return t(e,n)})))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}f.registerParse=e=>{r=e},f.registerRule=e=>{i=e},f.registerAtRule=e=>{o=e},f.registerRoot=e=>{a=e},e.exports=f,f.default=f,f.rebuild=e=>{"atrule"===e.type?Object.setPrototypeOf(e,o.prototype):"rule"===e.type?Object.setPrototypeOf(e,i.prototype):"decl"===e.type?Object.setPrototypeOf(e,c.prototype):"comment"===e.type?Object.setPrototypeOf(e,u.prototype):"root"===e.type&&Object.setPrototypeOf(e,a.prototype),e[l]=!0,e.nodes&&e.nodes.forEach((e=>{f.rebuild(e)}))}},43718:(e,t,n)=>{"use strict";let r=n(9866),i=n(45306);class o extends Error{constructor(e,t,n,r,i,a){super(e),this.name="CssSyntaxError",this.reason=e,i&&(this.file=i),r&&(this.source=r),a&&(this.plugin=a),void 0!==t&&void 0!==n&&("number"==typeof t?(this.line=t,this.column=n):(this.line=t.line,this.column=t.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,o)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;null==e&&(e=r.isColorSupported),i&&e&&(t=i(t));let n,o,a=t.split(/\r?\n/),s=Math.max(this.line-3,0),l=Math.min(this.line+2,a.length),c=String(l).length;if(e){let{bold:e,gray:t,red:i}=r.createColors(!0);n=t=>e(i(t)),o=e=>t(e)}else n=o=e=>e;return a.slice(s,l).map(((e,t)=>{let r=s+1+t,i=" "+(" "+r).slice(-c)+" | ";if(r===this.line){let t=o(i.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return n(">")+o(i)+e+"\n "+t+n("^")}return" "+o(i)+e})).join("\n")}toString(){let e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}}e.exports=o,o.default=o},73838:(e,t,n)=>{"use strict";let r=n(36040);class i extends r{constructor(e){e&&void 0!==e.value&&"string"!=typeof e.value&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}}e.exports=i,i.default=i},27417:(e,t,n)=>{"use strict";let r,i,o=n(11241);class a extends o{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new r(new i,this,e).stringify()}}a.registerLazyResult=e=>{r=e},a.registerProcessor=e=>{i=e},e.exports=a,a.default=a},69318:(e,t,n)=>{"use strict";let r=n(73838),i=n(38574),o=n(27459),a=n(25044),s=n(17306),l=n(60868),c=n(89542);function u(e,t){if(Array.isArray(e))return e.map((e=>u(e)));let{inputs:n,...d}=e;if(n){t=[];for(let e of n){let n={...e,__proto__:s.prototype};n.map&&(n.map={...n.map,__proto__:i.prototype}),t.push(n)}}if(d.nodes&&(d.nodes=e.nodes.map((e=>u(e,t)))),d.source){let{inputId:e,...n}=d.source;d.source=n,null!=e&&(d.source.input=t[e])}if("root"===d.type)return new l(d);if("decl"===d.type)return new r(d);if("rule"===d.type)return new c(d);if("comment"===d.type)return new o(d);if("atrule"===d.type)return new a(d);throw new Error("Unknown node type: "+e.type)}e.exports=u,u.default=u},17306:(e,t,n)=>{"use strict";let{SourceMapConsumer:r,SourceMapGenerator:i}=n(72770),{fileURLToPath:o,pathToFileURL:a}=n(66459),{isAbsolute:s,resolve:l}=n(33261),{nanoid:c}=n(33232),u=n(45306),d=n(43718),h=n(38574),p=Symbol("fromOffsetCache"),f=Boolean(r&&i),g=Boolean(l&&s);class m{constructor(e,t={}){if(null==e||"object"==typeof e&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!g||/^\w+:\/\//.test(t.from)||s(t.from)?this.file=t.from:this.file=l(t.from)),g&&f){let e=new h(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id=""),this.map&&(this.map.file=this.from)}error(e,t,n,r={}){let i,o,s;if(t&&"object"==typeof t){let e=t,r=n;if("number"==typeof e.offset){let r=this.fromOffset(e.offset);t=r.line,n=r.col}else t=e.line,n=e.column;if("number"==typeof r.offset){let e=this.fromOffset(r.offset);o=e.line,s=e.col}else o=r.line,s=r.column}else if(!n){let e=this.fromOffset(t);t=e.line,n=e.col}let l=this.origin(t,n,o,s);return i=l?new d(e,void 0===l.endLine?l.line:{column:l.column,line:l.line},void 0===l.endLine?l.column:{column:l.endColumn,line:l.endLine},l.source,l.file,r.plugin):new d(e,void 0===o?t:{column:n,line:t},void 0===o?n:{column:s,line:o},this.css,this.file,r.plugin),i.input={column:n,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(a&&(i.input.url=a(this.file).toString()),i.input.file=this.file),i}fromOffset(e){let t,n;if(this[p])n=this[p];else{let e=this.css.split("\n");n=new Array(e.length);let t=0;for(let r=0,i=e.length;r=t)r=n.length-1;else{let t,i=n.length-2;for(;r>1),e=n[t+1])){r=t;break}r=t+1}}return{col:e-n[r]+1,line:r+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:l(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,n,r){if(!this.map)return!1;let i,l,c=this.map.consumer(),u=c.originalPositionFor({column:t,line:e});if(!u.source)return!1;"number"==typeof n&&(i=c.originalPositionFor({column:r,line:n})),l=s(u.source)?a(u.source):new URL(u.source,this.map.consumer().sourceRoot||a(this.map.mapFile));let d={column:u.column,endColumn:i&&i.column,endLine:i&&i.line,line:u.line,url:l.toString()};if("file:"===l.protocol){if(!o)throw new Error("file: protocol is not available in this PostCSS build");d.file=o(l)}let h=c.sourceContentFor(u.source);return h&&(d.source=h),d}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])null!=this[t]&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}}e.exports=m,m.default=m,u&&u.registerInput&&u.registerInput(m)},18398:(e,t,n)=>{"use strict";let{isClean:r,my:i}=n(64191),o=n(13388),a=n(23439),s=n(11241),l=n(27417),c=(n(90644),n(21309)),u=n(50161),d=n(60868);const h={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},p={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},f={Once:!0,postcssPlugin:!0,prepare:!0},g=0;function m(e){return"object"==typeof e&&"function"==typeof e.then}function y(e){let t=!1,n=h[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[n,n+"-"+t,g,n+"Exit",n+"Exit-"+t]:t?[n,n+"-"+t,n+"Exit",n+"Exit-"+t]:e.append?[n,g,n+"Exit"]:[n,n+"Exit"]}function v(e){let t;return t="document"===e.type?["Document",g,"DocumentExit"]:"root"===e.type?["Root",g,"RootExit"]:y(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function b(e){return e[r]=!1,e.nodes&&e.nodes.forEach((e=>b(e))),e}let w={};class x{constructor(e,t,n){let r;if(this.stringified=!1,this.processed=!1,"object"!=typeof t||null===t||"root"!==t.type&&"document"!==t.type)if(t instanceof x||t instanceof c)r=b(t.root),t.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=t.map);else{let e=u;n.syntax&&(e=n.syntax.parse),n.parser&&(e=n.parser),e.parse&&(e=e.parse);try{r=e(t,n)}catch(e){this.processed=!0,this.error=e}r&&!r[i]&&s.rebuild(r)}else r=b(t);this.result=new c(e,r,n),this.helpers={...w,postcss:w,result:this.result},this.plugins=this.processor.plugins.map((e=>"object"==typeof e&&e.prepare?{...e,...e.prepare(this.result)}:e))}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let n=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?n.postcssVersion:(e.plugin=n.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e}prepareVisitors(){this.listeners={};let e=(e,t,n)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,n])};for(let t of this.plugins)if("object"==typeof t)for(let n in t){if(!p[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!f[n])if("object"==typeof t[n])for(let r in t[n])e(t,"*"===r?n:n+"-"+r.toLowerCase(),t[n][r]);else"function"==typeof t[n]&&e(t,n,t[n])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e0;){let e=this.visitTick(t);if(m(e))try{await e}catch(e){let n=t[t.length-1].node;throw this.handleError(e,n)}}}if(this.listeners.OnceExit)for(let[t,n]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if("document"===e.type){let t=e.nodes.map((e=>n(e,this.helpers)));await Promise.all(t)}else await n(e,this.helpers)}catch(e){throw this.handleError(e)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if("object"==typeof e&&e.Once){if("document"===this.result.root.type){let t=this.result.root.nodes.map((t=>e.Once(t,this.helpers)));return m(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=a;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let n=new o(t,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){if(m(this.runOnRoot(e)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[r];)e[r]=!0,this.walkSync(e);if(this.listeners.OnceExit)if("document"===e.type)for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[n,r]of e){let e;this.result.lastPlugin=n;try{e=r(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(m(e))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:n,visitors:i}=t;if("root"!==n.type&&"document"!==n.type&&!n.parent)return void e.pop();if(i.length>0&&t.visitorIndex{e[r]||this.walkSync(e)}));else{let t=this.listeners[n];if(t&&this.visitSync(t,e.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}x.registerPostcss=e=>{w=e},e.exports=x,x.default=x,d.registerLazyResult(x),l.registerLazyResult(x)},42576:e=>{"use strict";let t={comma:e=>t.split(e,[","],!0),space:e=>t.split(e,[" ","\n","\t"]),split(e,t,n){let r=[],i="",o=!1,a=0,s=!1,l="",c=!1;for(let n of e)c?c=!1:"\\"===n?c=!0:s?n===l&&(s=!1):'"'===n||"'"===n?(s=!0,l=n):"("===n?a+=1:")"===n?a>0&&(a-=1):0===a&&t.includes(n)&&(o=!0),o?(""!==i&&r.push(i.trim()),i="",o=!1):i+=n;return(n||""!==i)&&r.push(i.trim()),r}};e.exports=t,t.default=t},13388:(e,t,n)=>{"use strict";let{SourceMapConsumer:r,SourceMapGenerator:i}=n(72770),{dirname:o,relative:a,resolve:s,sep:l}=n(33261),{pathToFileURL:c}=n(66459),u=n(17306),d=Boolean(r&&i),h=Boolean(o&&s&&a&&l);e.exports=class{constructor(e,t,n,r){this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n,this.css=r,this.originalCSS=r,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t,n=this.toUrl(this.path(e.file)),i=e.root||o(e.file);!1===this.mapOpts.sourcesContent?(t=new r(e.text),t.sourcesContent&&(t.sourcesContent=null)):t=e.consumer(),this.map.applySourceMap(t,n,this.toUrl(this.path(i)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],"comment"===e.type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),h&&d&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,(t=>{e+=t})),[e]}}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=i.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new i({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):""});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new i({file:this.outputFile(),ignoreInvalidMapping:!0});let e,t,n=1,r=1,o="",a={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,((i,s,l)=>{if(this.css+=i,s&&"end"!==l&&(a.generated.line=n,a.generated.column=r-1,s.source&&s.source.start?(a.source=this.sourcePath(s),a.original.line=s.source.start.line,a.original.column=s.source.start.column-1,this.map.addMapping(a)):(a.source=o,a.original.line=1,a.original.column=0,this.map.addMapping(a))),e=i.match(/\n/g),e?(n+=e.length,t=i.lastIndexOf("\n"),r=i.length-t):r+=i.length,s&&"start"!==l){let e=s.parent||{raws:{}};("decl"===s.type||"atrule"===s.type&&!s.nodes)&&s===e.last&&!e.raws.semicolon||(s.source&&s.source.end?(a.source=this.sourcePath(s),a.original.line=s.source.end.line,a.original.column=s.source.end.column-1,a.generated.line=n,a.generated.column=r-2,this.map.addMapping(a)):(a.source=o,a.original.line=1,a.original.column=0,a.generated.line=n,a.generated.column=r-1,this.map.addMapping(a)))}}))}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some((e=>e.annotation)))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some((e=>e.inline)))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((e=>e.withContent()))}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let n=this.opts.to?o(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(n=o(s(n,this.mapOpts.annotation)));let r=a(n,e);return this.memoizedPaths.set(e,r),r}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}}));else{let e=new u(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk((t=>{if(t.source){let n=t.source.input.from;if(n&&!e[n]){e[n]=!0;let r=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));this.map.setSourceContent(r,t.source.input.css)}}}));else if(this.css){let e=this.opts.from?this.toUrl(this.path(this.opts.from)):"";this.map.setSourceContent(e,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(c){let t=c(e).toString();return this.memoizedFileURLs.set(e,t),t}throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;"\\"===l&&(e=e.replace(/\\/g,"/"));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}}},37787:(e,t,n)=>{"use strict";let r=n(13388),i=n(23439),o=(n(90644),n(50161));const a=n(21309);class s{constructor(e,t,n){let o;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=n,this._map=void 0;let s=i;this.result=new a(this._processor,o,this._opts),this.result.css=t;let l=this;Object.defineProperty(this.result,"root",{get:()=>l.root});let c=new r(s,o,this._opts,t);if(c.isMap()){let[e,t]=c.generate();e&&(this.result.css=e),t&&(this.result.map=t)}else c.clearAnnotation(),this.result.css=c.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=o;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}}e.exports=s,s.default=s},36040:(e,t,n)=>{"use strict";let{isClean:r,my:i}=n(64191),o=n(43718),a=n(40636),s=n(23439);function l(e,t){let n=new e.constructor;for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;if("proxyCache"===r)continue;let i=e[r],o=typeof i;"parent"===r&&"object"===o?t&&(n[r]=t):"source"===r?n[r]=i:Array.isArray(i)?n[r]=i.map((e=>l(e,n))):("object"===o&&null!==i&&(i=l(i)),n[r]=i)}return n}class c{constructor(e={}){this.raws={},this[r]=!1,this[i]=!0;for(let t in e)if("nodes"===t){this.nodes=[];for(let n of e[t])"function"==typeof n.clone?this.append(n.clone()):this.append(n)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=l(this);for(let n in e)t[n]=e[n];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:n,start:r}=this.rangeBy(t);return this.source.input.error(e,{column:r.column,line:r.line},{column:n.column,line:n.line},t)}return new o(e)}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t],set:(e,t,n)=>(e[t]===n||(e[t]=n,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0)}}markDirty(){if(this[r]){this[r]=!1;let e=this;for(;e=e.parent;)e[r]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let n=this.source.start;if(e.index)n=this.positionInside(e.index,t);else if(e.word){let r=(t=this.toString()).indexOf(e.word);-1!==r&&(n=this.positionInside(r,t))}return n}positionInside(e,t){let n=t||this.toString(),r=this.source.start.column,i=this.source.start.line;for(let t=0;t"object"==typeof e&&e.toJSON?e.toJSON(null,t):e));else if("object"==typeof r&&r.toJSON)n[e]=r.toJSON(null,t);else if("source"===e){let o=t.get(r.input);null==o&&(o=i,t.set(r.input,i),i++),n[e]={end:r.end,inputId:o,start:r.start}}else n[e]=r}return r&&(n.inputs=[...t.keys()].map((e=>e.toJSON()))),n}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=s){e.stringify&&(e=e.stringify);let t="";return e(this,(e=>{t+=e})),t}warn(e,t,n){let r={node:this};for(let e in n)r[e]=n[e];return e.warn(t,r)}get proxyOf(){return this}}e.exports=c,c.default=c},50161:(e,t,n)=>{"use strict";let r=n(11241),i=n(30699),o=n(17306);function a(e,t){let n=new o(e,t),r=new i(n);try{r.parse()}catch(e){throw e}return r.root}e.exports=a,a.default=a,r.registerParse(a)},30699:(e,t,n)=>{"use strict";let r=n(73838),i=n(28509),o=n(27459),a=n(25044),s=n(60868),l=n(89542);const c={empty:!0,space:!0};e.exports=class{constructor(e){this.input=e,this.root=new s,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t,n,r,i=new a;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);let o=!1,s=!1,l=[],c=[];for(;!this.tokenizer.endOfFile();){if(t=(e=this.tokenizer.nextToken())[0],"("===t||"["===t?c.push("("===t?")":"]"):"{"===t&&c.length>0?c.push("}"):t===c[c.length-1]&&c.pop(),0===c.length){if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}if("{"===t){s=!0;break}if("}"===t){if(l.length>0){for(r=l.length-1,n=l[r];n&&"space"===n[0];)n=l[--r];n&&(i.source.end=this.getPosition(n[3]||n[2]),i.source.end.offset++)}this.end(e);break}l.push(e)}else l.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(i.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(i,"params",l),o&&(e=l[l.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),s&&(i.nodes=[],this.current=i)}checkMissedSemicolon(e){let t=this.colon(e);if(!1===t)return;let n,r=0;for(let i=t-1;i>=0&&(n=e[i],"space"===n[0]||(r+=1,2!==r));i--);throw this.input.error("Missed semicolon","word"===n[0]?n[3]+1:n[2])}colon(e){let t,n,r,i=0;for(let[o,a]of e.entries()){if(t=a,n=t[0],"("===n&&(i+=1),")"===n&&(i-=1),0===i&&":"===n){if(r){if("word"===r[0]&&"progid"===r[1])continue;return o}this.doubleColon(t)}r=t}return!1}comment(e){let t=new o;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let n=e[1].slice(2,-2);if(/^\s*$/.test(n))t.text="",t.raws.left=n,t.raws.right="";else{let e=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}createTokenizer(){this.tokenizer=i(this.input)}decl(e,t){let n=new r;this.init(n,e[0][2]);let i,o=e[e.length-1];for(";"===o[0]&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(o[3]||o[2]||function(e){for(let t=e.length-1;t>=0;t--){let n=e[t],r=n[3]||n[2];if(r)return r}}(e)),n.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){let t=e[0][0];if(":"===t||"space"===t||"comment"===t)break;n.prop+=e.shift()[1]}for(n.raws.between="";e.length;){if(i=e.shift(),":"===i[0]){n.raws.between+=i[1];break}"word"===i[0]&&/\w/.test(i[1])&&this.unknownWord([i]),n.raws.between+=i[1]}"_"!==n.prop[0]&&"*"!==n.prop[0]||(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let a,s=[];for(;e.length&&(a=e[0][0],"space"===a||"comment"===a);)s.push(e.shift());this.precheckMissedSemicolon(e);for(let t=e.length-1;t>=0;t--){if(i=e[t],"!important"===i[1].toLowerCase()){n.important=!0;let r=this.stringFrom(e,t);r=this.spacesFromEnd(e)+r," !important"!==r&&(n.raws.important=r);break}if("important"===i[1].toLowerCase()){let r=e.slice(0),i="";for(let e=t;e>0;e--){let t=r[e][0];if(0===i.trim().indexOf("!")&&"space"!==t)break;i=r.pop()[1]+i}0===i.trim().indexOf("!")&&(n.important=!0,n.raws.important=i,e=r)}if("space"!==i[0]&&"comment"!==i[0])break}e.some((e=>"space"!==e[0]&&"comment"!==e[0]))&&(n.raws.between+=s.map((e=>e[1])).join(""),s=[]),this.raw(n,"value",s.concat(e),t),n.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new l;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let e=this.current.nodes[this.current.nodes.length-1];e&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)}other(e){let t=!1,n=null,r=!1,i=null,o=[],a=e[1].startsWith("--"),s=[],l=e;for(;l;){if(n=l[0],s.push(l),"("===n||"["===n)i||(i=l),o.push("("===n?")":"]");else if(a&&r&&"{"===n)i||(i=l),o.push("}");else if(0===o.length){if(";"===n){if(r)return void this.decl(s,a);break}if("{"===n)return void this.rule(s);if("}"===n){this.tokenizer.back(s.pop()),t=!0;break}":"===n&&(r=!0)}else n===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&r){if(!a)for(;s.length&&(l=s[s.length-1][0],"space"===l||"comment"===l);)this.tokenizer.back(s.pop());this.decl(s,a)}else this.unknownWord(s)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}precheckMissedSemicolon(){}raw(e,t,n,r){let i,o,a,s,l=n.length,u="",d=!0;for(let e=0;ee+t[1]),"");e.raws[t]={raw:r,value:u}}e[t]=u}rule(e){e.pop();let t=new l;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],"space"===t||"comment"===t);)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let t,n="";for(;e.length&&(t=e[0][0],"space"===t||"comment"===t);)n+=e.shift()[1];return n}spacesFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],"space"===t);)n=e.pop()[1]+n;return n}stringFrom(e,t){let n="";for(let r=t;r{"use strict";let r=n(43718),i=n(73838),o=n(18398),a=n(11241),s=n(87158),l=n(23439),c=n(69318),u=n(27417),d=n(73950),h=n(27459),p=n(25044),f=n(21309),g=n(17306),m=n(50161),y=n(42576),v=n(89542),b=n(60868),w=n(36040);function x(...e){return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new s(e)}x.plugin=function(e,t){let n,r=!1;function i(...n){console&&console.warn&&!r&&(r=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));let i=t(...n);return i.postcssPlugin=e,i.postcssVersion=(new s).version,i}return Object.defineProperty(i,"postcss",{get:()=>(n||(n=i()),n)}),i.process=function(e,t,n){return x([i(n)]).process(e,t)},i},x.stringify=l,x.parse=m,x.fromJSON=c,x.list=y,x.comment=e=>new h(e),x.atRule=e=>new p(e),x.decl=e=>new i(e),x.rule=e=>new v(e),x.root=e=>new b(e),x.document=e=>new u(e),x.CssSyntaxError=r,x.Declaration=i,x.Container=a,x.Processor=s,x.Document=u,x.Comment=h,x.Warning=d,x.AtRule=p,x.Result=f,x.Input=g,x.Rule=v,x.Root=b,x.Node=w,o.registerPostcss(x),e.exports=x,x.default=x},38574:(e,t,n)=>{"use strict";let{SourceMapConsumer:r,SourceMapGenerator:i}=n(72770),{existsSync:o,readFileSync:a}=n(22337),{dirname:s,join:l}=n(33261);class c{constructor(e,t){if(!1===t.map)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let n=t.map?t.map.prev:void 0,r=this.loadMap(t.from,n);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=s(this.mapFile)),r&&(this.text=r)}consumer(){return this.consumerCache||(this.consumerCache=new r(this.text)),this.consumerCache}decodeInline(e){if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e))return t=e.substr(RegExp.lastMatch.length),Buffer?Buffer.from(t,"base64").toString():window.atob(t);var t;let n=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+n)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return"object"==typeof e&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let n=e.lastIndexOf(t.pop()),r=e.indexOf("*/",n);n>-1&&r>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,r)))}loadFile(e){if(this.root=s(e),o(e))return this.mapFile=e,a(e,"utf-8").toString().trim()}loadMap(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(t instanceof r)return i.fromSourceMap(t).toString();if(t instanceof i)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}{let n=t(e);if(n){let e=this.loadFile(n);if(!e)throw new Error("Unable to load previous source map: "+n.toString());return e}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let t=this.annotation;return e&&(t=l(s(e),t)),this.loadFile(t)}}}startWith(e,t){return!!e&&e.substr(0,t.length)===t}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}e.exports=c,c.default=c},87158:(e,t,n)=>{"use strict";let r=n(37787),i=n(18398),o=n(27417),a=n(60868);class s{constructor(e=[]){this.version="8.4.38",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let n of e)if(!0===n.postcss?n=n():n.postcss&&(n=n.postcss),"object"==typeof n&&Array.isArray(n.plugins))t=t.concat(n.plugins);else if("object"==typeof n&&n.postcssPlugin)t.push(n);else if("function"==typeof n)t.push(n);else{if("object"!=typeof n||!n.parse&&!n.stringify)throw new Error(n+" is not a PostCSS plugin")}return t}process(e,t={}){return this.plugins.length||t.parser||t.stringifier||t.syntax?new i(this,e,t):new r(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}}e.exports=s,s.default=s,a.registerProcessor(s),o.registerProcessor(s)},21309:(e,t,n)=>{"use strict";let r=n(73950);class i{constructor(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let n=new r(e,t);return this.messages.push(n),n}warnings(){return this.messages.filter((e=>"warning"===e.type))}get content(){return this.css}}e.exports=i,i.default=i},60868:(e,t,n)=>{"use strict";let r,i,o=n(11241);class a extends o{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,n){let r=super.normalize(e);if(t)if("prepend"===n)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let e of r)e.raws.before=t.raws.before;return r}removeChild(e,t){let n=this.index(e);return!t&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}toResult(e={}){return new r(new i,this,e).stringify()}}a.registerLazyResult=e=>{r=e},a.registerProcessor=e=>{i=e},e.exports=a,a.default=a,o.registerRoot(a)},89542:(e,t,n)=>{"use strict";let r=n(11241),i=n(42576);class o extends r{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return i.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}}e.exports=o,o.default=o,r.registerRule(o)},40636:e=>{"use strict";const t={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};class n{constructor(e){this.builder=e}atrule(e,t){let n="@"+e.name,r=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?n+=e.raws.afterName:r&&(n+=" "),e.nodes)this.block(e,n+r);else{let i=(e.raws.between||"")+(t?";":"");this.builder(n+r+i,e)}}beforeAfter(e,t){let n;n="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");let r=e.parent,i=0;for(;r&&"root"!==r.type;)i+=1,r=r.parent;if(n.includes("\n")){let t=this.raw(e,null,"indent");if(t.length)for(let e=0;e0&&"comment"===e.nodes[t].type;)t-=1;let n=this.raw(e,"semicolon");for(let r=0;r{if(i=e.raws[n],void 0!==i)return!1}))}var s;return void 0===i&&(i=t[r]),a.rawCache[r]=i,i}rawBeforeClose(e){let t;return e.walk((e=>{if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return t=e.raws.after,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let n;return e.walkComments((e=>{if(void 0!==e.raws.before)return n=e.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1})),void 0===n?n=this.raw(t,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeDecl(e,t){let n;return e.walkDecls((e=>{if(void 0!==e.raws.before)return n=e.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1})),void 0===n?n=this.raw(t,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeOpen(e){let t;return e.walk((e=>{if("decl"!==e.type&&(t=e.raws.between,void 0!==t))return!1})),t}rawBeforeRule(e){let t;return e.walk((n=>{if(n.nodes&&(n.parent!==e||e.first!==n)&&void 0!==n.raws.before)return t=n.raws.before,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls((e=>{if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1})),t}rawEmptyBody(e){let t;return e.walk((e=>{if(e.nodes&&0===e.nodes.length&&(t=e.raws.after,void 0!==t))return!1})),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk((n=>{let r=n.parent;if(r&&r!==e&&r.parent&&r.parent===e&&void 0!==n.raws.before){let e=n.raws.before.split("\n");return t=e[e.length-1],t=t.replace(/\S/g,""),!1}})),t}rawSemicolon(e){let t;return e.walk((e=>{if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&(t=e.raws.semicolon,void 0!==t))return!1})),t}rawValue(e,t){let n=e[t],r=e.raws[t];return r&&r.value===n?r.raw:n}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}}e.exports=n,n.default=n},23439:(e,t,n)=>{"use strict";let r=n(40636);function i(e,t){new r(t).stringify(e)}e.exports=i,i.default=i},64191:e=>{"use strict";e.exports.isClean=Symbol("isClean"),e.exports.my=Symbol("my")},28509:e=>{"use strict";const t="'".charCodeAt(0),n='"'.charCodeAt(0),r="\\".charCodeAt(0),i="/".charCodeAt(0),o="\n".charCodeAt(0),a=" ".charCodeAt(0),s="\f".charCodeAt(0),l="\t".charCodeAt(0),c="\r".charCodeAt(0),u="[".charCodeAt(0),d="]".charCodeAt(0),h="(".charCodeAt(0),p=")".charCodeAt(0),f="{".charCodeAt(0),g="}".charCodeAt(0),m=";".charCodeAt(0),y="*".charCodeAt(0),v=":".charCodeAt(0),b="@".charCodeAt(0),w=/[\t\n\f\r "#'()/;[\\\]{}]/g,x=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,A=/.[\r\n"'(/\\]/,S=/[\da-f]/i;e.exports=function(e,C={}){let E,_,k,T,O,P,I,M,L,R,j=e.css.valueOf(),F=C.ignoreErrors,D=j.length,N=0,z=[],V=[];function B(t){throw e.error("Unclosed "+t,N)}return{back:function(e){V.push(e)},endOfFile:function(){return 0===V.length&&N>=D},nextToken:function(e){if(V.length)return V.pop();if(N>=D)return;let C=!!e&&e.ignoreUnclosed;switch(E=j.charCodeAt(N),E){case o:case a:case l:case c:case s:_=N;do{_+=1,E=j.charCodeAt(_)}while(E===a||E===o||E===l||E===c||E===s);R=["space",j.slice(N,_)],N=_-1;break;case u:case d:case f:case g:case v:case m:case p:{let e=String.fromCharCode(E);R=[e,e,N];break}case h:if(M=z.length?z.pop()[1]:"",L=j.charCodeAt(N+1),"url"===M&&L!==t&&L!==n&&L!==a&&L!==o&&L!==l&&L!==s&&L!==c){_=N;do{if(P=!1,_=j.indexOf(")",_+1),-1===_){if(F||C){_=N;break}B("bracket")}for(I=_;j.charCodeAt(I-1)===r;)I-=1,P=!P}while(P);R=["brackets",j.slice(N,_+1),N,_],N=_}else _=j.indexOf(")",N+1),T=j.slice(N,_+1),-1===_||A.test(T)?R=["(","(",N]:(R=["brackets",T,N,_],N=_);break;case t:case n:k=E===t?"'":'"',_=N;do{if(P=!1,_=j.indexOf(k,_+1),-1===_){if(F||C){_=N+1;break}B("string")}for(I=_;j.charCodeAt(I-1)===r;)I-=1,P=!P}while(P);R=["string",j.slice(N,_+1),N,_],N=_;break;case b:w.lastIndex=N+1,w.test(j),_=0===w.lastIndex?j.length-1:w.lastIndex-2,R=["at-word",j.slice(N,_+1),N,_],N=_;break;case r:for(_=N,O=!0;j.charCodeAt(_+1)===r;)_+=1,O=!O;if(E=j.charCodeAt(_+1),O&&E!==i&&E!==a&&E!==o&&E!==l&&E!==c&&E!==s&&(_+=1,S.test(j.charAt(_)))){for(;S.test(j.charAt(_+1));)_+=1;j.charCodeAt(_+1)===a&&(_+=1)}R=["word",j.slice(N,_+1),N,_],N=_;break;default:E===i&&j.charCodeAt(N+1)===y?(_=j.indexOf("*/",N+2)+1,0===_&&(F||C?_=j.length:B("comment")),R=["comment",j.slice(N,_+1),N,_],N=_):(x.lastIndex=N+1,x.test(j),_=0===x.lastIndex?j.length-1:x.lastIndex-2,R=["word",j.slice(N,_+1),N,_],z.push(R),N=_)}return N++,R},position:function(){return N}}}},90644:e=>{"use strict";let t={};e.exports=function(e){t[e]||(t[e]=!0,"undefined"!=typeof console&&console.warn&&console.warn(e))}},73950:e=>{"use strict";class t{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let e=t.node.rangeBy(t);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let e in t)this[e]=t[e]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}e.exports=t,t.default=t},28414:(e,t,n)=>{"use strict";var r=n(20914);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},22300:(e,t,n)=>{e.exports=n(28414)()},20914:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},86458:(e,t,n)=>{"use strict";const r=n(57873),i=n(29221),o=n(47613),a=n(5137),s=Symbol("encodeFragmentIdentifier");function l(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function c(e,t){return t.encode?t.strict?r(e):encodeURIComponent(e):e}function u(e,t){return t.decode?i(e):e}function d(e){return Array.isArray(e)?e.sort():"object"==typeof e?d(Object.keys(e)).sort(((e,t)=>Number(e)-Number(t))).map((t=>e[t])):e}function h(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function p(e){const t=(e=h(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function f(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function g(e,t){l((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const n=function(e){let t;switch(e.arrayFormat){case"index":return(e,n,r)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return(e,n,r)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"colon-list-separator":return(e,n,r)=>{t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"comma":case"separator":return(t,n,r)=>{const i="string"==typeof n&&n.includes(e.arrayFormatSeparator),o="string"==typeof n&&!i&&u(n,e).includes(e.arrayFormatSeparator);n=o?u(n,e):n;const a=i||o?n.split(e.arrayFormatSeparator).map((t=>u(t,e))):null===n?n:u(n,e);r[t]=a};case"bracket-separator":return(t,n,r)=>{const i=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),!i)return void(r[t]=n?u(n,e):n);const o=null===n?[]:n.split(e.arrayFormatSeparator).map((t=>u(t,e)));void 0!==r[t]?r[t]=[].concat(r[t],o):r[t]=o};default:return(e,t,n)=>{void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t),r=Object.create(null);if("string"!=typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;for(const i of e.split("&")){if(""===i)continue;let[e,a]=o(t.decode?i.replace(/\+/g," "):i,"=");a=void 0===a?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?a:u(a,t),n(u(e,t),a,r)}for(const e of Object.keys(r)){const n=r[e];if("object"==typeof n&&null!==n)for(const e of Object.keys(n))n[e]=f(n[e],t);else r[e]=f(n,t)}return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce(((e,t)=>{const n=r[t];return Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?e[t]=d(n):e[t]=n,e}),Object.create(null))}t.extract=p,t.parse=g,t.stringify=(e,t)=>{if(!e)return"";l((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const n=n=>t.skipNull&&null==e[n]||t.skipEmptyString&&""===e[n],r=function(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{const i=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[c(t,e),"[",i,"]"].join("")]:[...n,[c(t,e),"[",c(i,e),"]=",c(r,e)].join("")]};case"bracket":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[c(t,e),"[]"].join("")]:[...n,[c(t,e),"[]=",c(r,e)].join("")];case"colon-list-separator":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[c(t,e),":list="].join("")]:[...n,[c(t,e),":list=",c(r,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return n=>(r,i)=>void 0===i||e.skipNull&&null===i||e.skipEmptyString&&""===i?r:(i=null===i?"":i,0===r.length?[[c(n,e),t,c(i,e)].join("")]:[[r,c(i,e)].join(e.arrayFormatSeparator)])}default:return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,c(t,e)]:[...n,[c(t,e),"=",c(r,e)].join("")]}}(t),i={};for(const t of Object.keys(e))n(t)||(i[t]=e[t]);const o=Object.keys(i);return!1!==t.sort&&o.sort(t.sort),o.map((n=>{const i=e[n];return void 0===i?"":null===i?c(n,t):Array.isArray(i)?0===i.length&&"bracket-separator"===t.arrayFormat?c(n,t)+"[]":i.reduce(r(n),[]).join("&"):c(n,t)+"="+c(i,t)})).filter((e=>e.length>0)).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[n,r]=o(e,"#");return Object.assign({url:n.split("?")[0]||"",query:g(p(e),t)},t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:u(r,t)}:{})},t.stringifyUrl=(e,n)=>{n=Object.assign({encode:!0,strict:!0,[s]:!0},n);const r=h(e.url).split("?")[0]||"",i=t.extract(e.url),o=t.parse(i,{sort:!1}),a=Object.assign(o,e.query);let l=t.stringify(a,n);l&&(l=`?${l}`);let u=function(e){let t="";const n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);return e.fragmentIdentifier&&(u=`#${n[s]?c(e.fragmentIdentifier,n):e.fragmentIdentifier}`),`${r}${l}${u}`},t.pick=(e,n,r)=>{r=Object.assign({parseFragmentIdentifier:!0,[s]:!1},r);const{url:i,query:o,fragmentIdentifier:l}=t.parseUrl(e,r);return t.stringifyUrl({url:i,query:a(o,n),fragmentIdentifier:l},r)},t.exclude=(e,n,r)=>{const i=Array.isArray(n)?e=>!n.includes(e):(e,t)=>!n(e,t);return t.pick(e,i,r)}},37565:function(e){e.exports=function(){"use strict";function e(e,r,i,o,a){!function e(n,r,i,o,a){for(;o>i;){if(o-i>600){var s=o-i+1,l=r-i+1,c=Math.log(s),u=.5*Math.exp(2*c/3),d=.5*Math.sqrt(c*u*(s-u)/s)*(l-s/2<0?-1:1);e(n,r,Math.max(i,Math.floor(r-l*u/s+d)),Math.min(o,Math.floor(r+(s-l)*u/s+d)),a)}var h=n[r],p=i,f=o;for(t(n,i,r),a(n[o],h)>0&&t(n,i,o);p0;)f--}0===a(n[i],h)?t(n,i,f):t(n,++f,o),f<=r&&(i=f+1),r<=f&&(o=f-1)}}(e,r,i||0,o||e.length-1,a||n)}function t(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function n(e,t){return et?1:0}var r=function(e){void 0===e&&(e=9),this._maxEntries=Math.max(4,e),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function i(e,t,n){if(!n)return t.indexOf(e);for(var r=0;r=e.minX&&t.maxY>=e.minY}function f(e){return{children:e,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function g(t,n,r,i,o){for(var a=[n,r];a.length;)if(!((r=a.pop())-(n=a.pop())<=i)){var s=n+Math.ceil((r-n)/i/2)*i;e(t,s,n,r,o),a.push(n,s,s,r)}}return r.prototype.all=function(){return this._all(this.data,[])},r.prototype.search=function(e){var t=this.data,n=[];if(!p(e,t))return n;for(var r=this.toBBox,i=[];t;){for(var o=0;o=0&&i[t].children.length>this._maxEntries;)this._split(i,t),t--;this._adjustParentBBoxes(r,i,t)},r.prototype._split=function(e,t){var n=e[t],r=n.children.length,i=this._minEntries;this._chooseSplitAxis(n,i,r);var a=this._chooseSplitIndex(n,i,r),s=f(n.children.splice(a,n.children.length-a));s.height=n.height,s.leaf=n.leaf,o(n,this.toBBox),o(s,this.toBBox),t?e[t-1].children.push(s):this._splitRoot(n,s)},r.prototype._splitRoot=function(e,t){this.data=f([e,t]),this.data.height=e.height+1,this.data.leaf=!1,o(this.data,this.toBBox)},r.prototype._chooseSplitIndex=function(e,t,n){for(var r,i,o,s,l,c,d,h=1/0,p=1/0,f=t;f<=n-t;f++){var g=a(e,0,f,this.toBBox),m=a(e,f,n,this.toBBox),y=(i=g,o=m,s=void 0,l=void 0,c=void 0,d=void 0,s=Math.max(i.minX,o.minX),l=Math.max(i.minY,o.minY),c=Math.min(i.maxX,o.maxX),d=Math.min(i.maxY,o.maxY),Math.max(0,c-s)*Math.max(0,d-l)),v=u(g)+u(m);y=t;p--){var f=e.children[p];s(l,e.leaf?i(f):f),c+=d(l)}return c},r.prototype._adjustParentBBoxes=function(e,t,n){for(var r=n;r>=0;r--)s(t[r],e)},r.prototype._condense=function(e){for(var t=e.length-1,n=void 0;t>=0;t--)0===e[t].children.length?t>0?(n=e[t-1].children).splice(n.indexOf(e[t]),1):this.clear():o(e[t],this.toBBox)},r}()},77669:(e,t,n)=>{"use strict"; /** * @license React * react-dom.production.min.js @@ -276,7 +276,7 @@ function n(e){return"[object Object]"===Object.prototype.toString.call(e)}Object * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var r=n(30538),i=n(82300);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n