(self.webpackChunkmantis_material_react=self.webpackChunkmantis_material_react||[]).push([[5776],{4159:function(t){t.exports=function(){"use strict";var t=1e3,e=6e4,r=36e5,n="millisecond",s="second",i="minute",u="hour",a="day",o="week",c="month",h="quarter",f="year",l="date",d="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|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,$={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(t){var e=["th","st","nd","rd"],r=t%100;return"["+t+(e[(r-20)%10]||e[r]||e[0])+"]"}},g=function(t,e,r){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(r)+t},m={s:g,z:function(t){var e=-t.utcOffset(),r=Math.abs(e),n=Math.floor(r/60),s=r%60;return(e<=0?"+":"-")+g(n,2,"0")+":"+g(s,2,"0")},m:function t(e,r){if(e.date()1)return t(u[0])}else{var a=e.name;w[a]=e,s=a}return!n&&s&&(y=s),s||!n&&y},O=function(t,e){if(M(t))return t.clone();var r="object"==typeof e?e:{};return r.date=t,r.args=arguments,new D(r)},S=m;S.l=b,S.i=M,S.w=function(t,e){return O(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var D=function(){function $(t){this.$L=b(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[A]=!0}var g=$.prototype;return g.parse=function(t){this.$d=function(t){var e=t.date,r=t.utc;if(null===e)return new Date(NaN);if(S.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var n=e.match(p);if(n){var s=n[2]-1||0,i=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],s,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)):new Date(n[1],s,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)}}return new Date(e)}(t),this.init()},g.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},g.$utils=function(){return S},g.isValid=function(){return!(this.$d.toString()===d)},g.isSame=function(t,e){var r=O(t);return this.startOf(e)<=r&&r<=this.endOf(e)},g.isAfter=function(t,e){return O(t){"use strict";r.d(e,{E:()=>T});var n,s,i,u,a,o,c,h,f,l,d,p=r(80045),v=r(9950),$=r(39790),g=r(55149),m=r(64137),y=r(83568),w=r(53167),A=r(15941),M=r(69347),b=r(95732),O=r(61664);function S(t,e){return t.filter((t=>!e.includes(t)))}var D=(n=new WeakMap,s=new WeakMap,i=new WeakMap,u=new WeakMap,a=new WeakMap,o=new WeakMap,c=new WeakSet,h=new WeakSet,f=new WeakSet,l=new WeakSet,d=new WeakSet,class extends b.Q{constructor(t,e,r){super(),(0,$.A)(this,d),(0,$.A)(this,l),(0,$.A)(this,f),(0,$.A)(this,h),(0,$.A)(this,c),(0,g.A)(this,n,{writable:!0,value:void 0}),(0,g.A)(this,s,{writable:!0,value:void 0}),(0,g.A)(this,i,{writable:!0,value:void 0}),(0,g.A)(this,u,{writable:!0,value:void 0}),(0,g.A)(this,a,{writable:!0,value:void 0}),(0,g.A)(this,o,{writable:!0,value:void 0}),(0,w.A)(this,n,t),(0,w.A)(this,i,[]),(0,w.A)(this,u,[]),(0,y.A)(this,c,k).call(this,[]),this.setQueries(e,r)}onSubscribe(){1===this.listeners.size&&(0,m.A)(this,u).forEach((t=>{t.subscribe((e=>{(0,y.A)(this,l,_).call(this,t,e)}))}))}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,(0,m.A)(this,u).forEach((t=>{t.destroy()}))}setQueries(t,e,r){(0,w.A)(this,i,t),(0,w.A)(this,a,e),A.j.batch((()=>{const t=(0,m.A)(this,u),e=(0,y.A)(this,f,C).call(this,(0,m.A)(this,i));e.forEach((t=>t.observer.setOptions(t.defaultedQueryOptions,r)));const n=e.map((t=>t.observer)),s=n.map((t=>t.getCurrentResult())),a=n.some(((e,r)=>e!==t[r]));(t.length!==n.length||a)&&((0,w.A)(this,u,n),(0,y.A)(this,c,k).call(this,s),this.hasListeners()&&(S(t,n).forEach((t=>{t.destroy()})),S(n,t).forEach((t=>{t.subscribe((e=>{(0,y.A)(this,l,_).call(this,t,e)}))})),(0,y.A)(this,d,x).call(this)))}))}getCurrentResult(){return(0,m.A)(this,o)}getQueries(){return(0,m.A)(this,u).map((t=>t.getCurrentQuery()))}getObservers(){return(0,m.A)(this,u)}getOptimisticResult(t,e){const r=(0,y.A)(this,f,C).call(this,t),n=r.map((t=>t.observer.getOptimisticResult(t.defaultedQueryOptions)));return[n,t=>(0,y.A)(this,h,P).call(this,null!==t&&void 0!==t?t:n,e),()=>r.map(((t,e)=>{const r=n[e];return t.defaultedQueryOptions.notifyOnChangeProps?r:t.observer.trackResult(r)}))]}});function k(t){var e;(0,w.A)(this,s,t),(0,w.A)(this,o,(0,y.A)(this,h,P).call(this,t,null===(e=(0,m.A)(this,a))||void 0===e?void 0:e.combine))}function P(t,e){return e?(0,O.BH)((0,m.A)(this,o),e(t)):t}function C(t){const e=(0,m.A)(this,u),r=new Map(e.map((t=>[t.options.queryHash,t]))),s=t.map((t=>(0,m.A)(this,n).defaultQueryOptions(t))),i=s.flatMap((t=>{const e=r.get(t.queryHash);return null!=e?[{defaultedQueryOptions:t,observer:e}]:[]})),a=new Set(i.map((t=>t.defaultedQueryOptions.queryHash))),o=s.filter((t=>!a.has(t.queryHash))),c=t=>{const e=(0,m.A)(this,n).defaultQueryOptions(t),r=(0,m.A)(this,u).find((t=>t.options.queryHash===e.queryHash));return null!==r&&void 0!==r?r:new M.$((0,m.A)(this,n),e)},h=o.map((t=>({defaultedQueryOptions:t,observer:c(t)})));return i.concat(h).sort(((t,e)=>s.indexOf(t.defaultedQueryOptions)-s.indexOf(e.defaultedQueryOptions)))}function _(t,e){const r=(0,m.A)(this,u).indexOf(t);-1!==r&&((0,y.A)(this,c,k).call(this,function(t,e,r){const n=t.slice(0);return n[e]=r,n}((0,m.A)(this,s),r,e)),(0,y.A)(this,d,x).call(this))}function x(){A.j.batch((()=>{this.listeners.forEach((t=>{t((0,m.A)(this,s))}))}))}var Q=r(15441),H=r(30618),W=r(45904),E=r(80958),L=r(73895);const R=["queries"];function T(t,e){let{queries:r}=t,n=(0,p.A)(t,R);const s=(0,Q.jE)(e),i=(0,H.w)(),u=(0,W.h)(),a=v.useMemo((()=>r.map((t=>{const e=s.defaultQueryOptions(t);return e._optimisticResults=i?"isRestoring":"optimistic",e}))),[r,s,i]);a.forEach((t=>{(0,L.tu)(t),(0,E.LJ)(t,u)})),(0,E.wZ)(u);const[o]=v.useState((()=>new D(s,a,n))),[c,h,f]=o.getOptimisticResult(a,n.combine);v.useSyncExternalStore(v.useCallback((t=>i?()=>{}:o.subscribe(A.j.batchCalls(t))),[o,i]),(()=>o.getCurrentResult()),(()=>o.getCurrentResult())),v.useEffect((()=>{o.setQueries(a,n,{listeners:!1})}),[a,n,o]);const l=c.some(((t,e)=>(0,L.EU)(a[e],t)))?c.flatMap(((t,e)=>{const r=a[e];if(r){const e=new M.$(s,r);if((0,L.EU)(r,t))return(0,L.iL)(r,e,u);(0,L.nE)(t,i)&&(0,L.iL)(r,e,u)}return[]})):[];if(l.length>0)throw Promise.all(l);const d=c.find(((t,e)=>{const r=a[e];return r&&(0,E.$1)({result:t,errorResetBoundary:u,throwOnError:r.throwOnError,query:s.getQueryCache().get(r.queryHash)})}));if(null!==d&&void 0!==d&&d.error)throw d.error;return h(f())}},37119:(t,e,r)=>{"use strict";r.d(e,{p:()=>i});var n=r(464),s=r(2527);const i=(0,n.T7)((function(t){return new s.Control.Zoom(t)}))},48513:(t,e,r)=>{"use strict";r.d(e,{z:()=>a});var n=r(464),s=r(69995),i=r(2527),u=r(9950);const a=(0,n.wk)((function(t,e){const r=new i.Popup(t,e.overlayContainer);return(0,s.Q)(r,e)}),(function(t,e,r,n){let{position:s}=r;(0,u.useEffect)((function(){const{instance:r}=t;function i(t){t.popup===r&&(r.update(),n(!0))}function u(t){t.popup===r&&n(!1)}return e.map.on({popupopen:i,popupclose:u}),null==e.overlayContainer?(null!=s&&r.setLatLng(s),r.openOn(e.map)):e.overlayContainer.bindPopup(r),function(){var t;e.map.off({popupopen:i,popupclose:u}),null===(t=e.overlayContainer)||void 0===t||t.unbindPopup(),e.map.removeLayer(r)}}),[t,e,n,s])}))},60010:(t,e,r)=>{"use strict";r.d(e,{q:()=>o});var n=r(89379),s=r(69347),i=r(45247),u=class extends s.${constructor(t,e){super(t,e)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(t,e){super.setOptions((0,n.A)((0,n.A)({},t),{},{behavior:(0,i.PL)()}),e)}getOptimisticResult(t){return t.behavior=(0,i.PL)(),super.getOptimisticResult(t)}fetchNextPage(t){return this.fetch((0,n.A)((0,n.A)({},t),{},{meta:{fetchMore:{direction:"forward"}}}))}fetchPreviousPage(t){return this.fetch((0,n.A)((0,n.A)({},t),{},{meta:{fetchMore:{direction:"backward"}}}))}createResult(t,e){var r,s;const{state:u}=t,a=super.createResult(t,e),{isFetching:o,isRefetching:c}=a,h=o&&"forward"===(null===(r=u.fetchMeta)||void 0===r||null===(r=r.fetchMore)||void 0===r?void 0:r.direction),f=o&&"backward"===(null===(s=u.fetchMeta)||void 0===s||null===(s=s.fetchMore)||void 0===s?void 0:s.direction);return(0,n.A)((0,n.A)({},a),{},{fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,i.rB)(e,u.data),hasPreviousPage:(0,i.RQ)(e,u.data),isFetchingNextPage:h,isFetchingPreviousPage:f,isRefetching:c&&!h&&!f})}},a=r(1729);function o(t,e){return(0,a.t)(t,u,e)}},98007:(t,e,r)=>{"use strict";r.d(e,{ko:()=>s});var n=r(3388);r(9950);function s(){return(0,n.U$)().map}}}]);