import{r as T,c as iu,a as Vi,R as B,j as A}from"./jsx-runtime-DOLHpRuS.js";import{a as Pt,_ as Ge,$ as Wr,c as mn,C as Gf}from"./contentContainer-NKv4Dpqx.js";import{r as wo,u as Kf,a as Xf,A as Jf}from"./components-JK3L2oVI.js";import{C as Qf,a as kr,E as Zr,e as eh}from"./clientOnly-D4hYZE7O.js";import{c as th,t as Ar,d as nh,h as Xa,i as Mi,j as Ja}from"./format-BE7roesP.js";import{F as ih,a as rh,u as oh,P as ah}from"./useIsLoading-DvbTOF0N.js";import{R as sh,V as uh}from"./iconButton-DauSgCDH.js";import{a as lh}from"./artifactTile-Bb0kzRsG.js";function ch({title:t,titleId:i,...r},a){return T.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":i},r),t?T.createElement("title",{id:i},t):null,T.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m4.5 12.75 6 6 9-13.5"}))}const fh=T.forwardRef(ch);function hh({title:t,titleId:i,...r},a){return T.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":i},r),t?T.createElement("title",{id:i},t):null,T.createElement("path",{d:"M12.75 12.75a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM7.5 15.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5ZM8.25 17.25a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM9.75 15.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5ZM10.5 17.25a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM12 15.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5ZM12.75 17.25a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM14.25 15.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5ZM15 17.25a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM16.5 15.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5ZM15 12.75a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM16.5 13.5a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z"}),T.createElement("path",{fillRule:"evenodd",d:"M6.75 2.25A.75.75 0 0 1 7.5 3v1.5h9V3A.75.75 0 0 1 18 3v1.5h.75a3 3 0 0 1 3 3v11.25a3 3 0 0 1-3 3H5.25a3 3 0 0 1-3-3V7.5a3 3 0 0 1 3-3H6V3a.75.75 0 0 1 .75-.75Zm13.5 9a1.5 1.5 0 0 0-1.5-1.5H5.25a1.5 1.5 0 0 0-1.5 1.5v7.5a1.5 1.5 0 0 0 1.5 1.5h13.5a1.5 1.5 0 0 0 1.5-1.5v-7.5Z",clipRule:"evenodd"}))}const dh=T.forwardRef(hh);var z={},Fr={exports:{}};(function(t,i){(function(r,a){var u="1.0.37",c="",h="?",d="function",p="undefined",b="object",w="string",x="major",g="model",v="name",_="type",m="vendor",O="version",k="architecture",N="console",C="mobile",D="tablet",R="smarttv",I="wearable",$="embedded",oe=500,te="Amazon",le="Apple",ne="ASUS",Q="BlackBerry",se="Browser",H="Chrome",ge="Edge",V="Firefox",_e="Google",Z="Huawei",ve="LG",W="Microsoft",J="Motorola",ce="Opera",ye="Samsung",de="Sharp",X="Sony",G="Xiaomi",Ce="Zebra",Te="Facebook",at="Chromium OS",ht="Mac OS",st=function(ie,ue){var Y={};for(var pe in ie)ue[pe]&&ue[pe].length%2===0?Y[pe]=ue[pe].concat(ie[pe]):Y[pe]=ie[pe];return Y},Be=function(ie){for(var ue={},Y=0;Y<ie.length;Y++)ue[ie[Y].toUpperCase()]=ie[Y];return ue},ut=function(ie,ue){return typeof ie===w?be(ue).indexOf(be(ie))!==-1:!1},be=function(ie){return ie.toLowerCase()},Tt=function(ie){return typeof ie===w?ie.replace(/[^\d\.]/g,c).split(".")[0]:a},Lt=function(ie,ue){if(typeof ie===w)return ie=ie.replace(/^\s\s*/,c),typeof ue===p?ie:ie.substring(0,oe)},Xe=function(ie,ue){for(var Y=0,pe,mt,He,he,q,Ye;Y<ue.length&&!q;){var Wt=ue[Y],Tn=ue[Y+1];for(pe=mt=0;pe<Wt.length&&!q&&Wt[pe];)if(q=Wt[pe++].exec(ie),q)for(He=0;He<Tn.length;He++)Ye=q[++mt],he=Tn[He],typeof he===b&&he.length>0?he.length===2?typeof he[1]==d?this[he[0]]=he[1].call(this,Ye):this[he[0]]=he[1]:he.length===3?typeof he[1]===d&&!(he[1].exec&&he[1].test)?this[he[0]]=Ye?he[1].call(this,Ye,he[2]):a:this[he[0]]=Ye?Ye.replace(he[1],he[2]):a:he.length===4&&(this[he[0]]=Ye?he[3].call(this,Ye.replace(he[1],he[2])):a):this[he]=Ye||a;Y+=2}},dt=function(ie,ue){for(var Y in ue)if(typeof ue[Y]===b&&ue[Y].length>0){for(var pe=0;pe<ue[Y].length;pe++)if(ut(ue[Y][pe],ie))return Y===h?a:Y}else if(ut(ue[Y],ie))return Y===h?a:Y;return ie},Sn={"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},Ue={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},lt={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[O,[v,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[O,[v,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[v,O],[/opios[\/ ]+([\w\.]+)/i],[O,[v,ce+" Mini"]],[/\bopr\/([\w\.]+)/i],[O,[v,ce]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[O,[v,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[v,O],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[O,[v,"UC"+se]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[O,[v,"WeChat"]],[/konqueror\/([\w\.]+)/i],[O,[v,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[O,[v,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[O,[v,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[O,[v,"Smart Lenovo "+se]],[/(avast|avg)\/([\w\.]+)/i],[[v,/(.+)/,"$1 Secure "+se],O],[/\bfocus\/([\w\.]+)/i],[O,[v,V+" Focus"]],[/\bopt\/([\w\.]+)/i],[O,[v,ce+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[O,[v,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[O,[v,"Dolphin"]],[/coast\/([\w\.]+)/i],[O,[v,ce+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[O,[v,"MIUI "+se]],[/fxios\/([-\w\.]+)/i],[O,[v,V]],[/\bqihu|(qi?ho?o?|360)browser/i],[[v,"360 "+se]],[/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i],[[v,/(.+)/,"$1 "+se],O],[/samsungbrowser\/([\w\.]+)/i],[O,[v,ye+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[v,/_/g," "],O],[/metasr[\/ ]?([\d\.]+)/i],[O,[v,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[v,"Sogou Mobile"],O],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[v,O],[/(lbbrowser)/i,/\[(linkedin)app\]/i],[v],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[v,Te],O],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[v,O],[/\bgsa\/([\w\.]+) .*safari\//i],[O,[v,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[O,[v,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[O,[v,H+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[v,H+" WebView"],O],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[O,[v,"Android "+se]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[v,O],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[O,[v,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[O,v],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[v,[O,dt,Sn]],[/(webkit|khtml)\/([\w\.]+)/i],[v,O],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[v,"Netscape"],O],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[O,[v,V+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[v,O],[/(cobalt)\/([\w\.]+)/i],[v,[O,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[k,"amd64"]],[/(ia32(?=;))/i],[[k,be]],[/((?:i[346]|x)86)[;\)]/i],[[k,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[k,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[k,"armhf"]],[/windows (ce|mobile); ppc;/i],[[k,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[k,/ower/,c,be]],[/(sun4\w)[;\)]/i],[[k,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[k,be]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[g,[m,ye],[_,D]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[g,[m,ye],[_,C]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[g,[m,le],[_,C]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[g,[m,le],[_,D]],[/(macintosh);/i],[g,[m,le]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[g,[m,de],[_,C]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[g,[m,Z],[_,D]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[g,[m,Z],[_,C]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[g,/_/g," "],[m,G],[_,C]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[g,/_/g," "],[m,G],[_,D]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[g,[m,"OPPO"],[_,C]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[g,[m,"Vivo"],[_,C]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[g,[m,"Realme"],[_,C]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[g,[m,J],[_,C]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[g,[m,J],[_,D]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[g,[m,ve],[_,D]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[g,[m,ve],[_,C]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[g,[m,"Lenovo"],[_,D]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[g,/_/g," "],[m,"Nokia"],[_,C]],[/(pixel c)\b/i],[g,[m,_e],[_,D]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[g,[m,_e],[_,C]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[g,[m,X],[_,C]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[g,"Xperia Tablet"],[m,X],[_,D]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[g,[m,"OnePlus"],[_,C]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[g,[m,te],[_,D]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[g,/(.+)/g,"Fire Phone $1"],[m,te],[_,C]],[/(playbook);[-\w\),; ]+(rim)/i],[g,m,[_,D]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[g,[m,Q],[_,C]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[g,[m,ne],[_,D]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[g,[m,ne],[_,C]],[/(nexus 9)/i],[g,[m,"HTC"],[_,D]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[m,[g,/_/g," "],[_,C]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[g,[m,"Acer"],[_,D]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[g,[m,"Meizu"],[_,C]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[g,[m,"Ulefone"],[_,C]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[m,g,[_,C]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[m,g,[_,D]],[/(surface duo)/i],[g,[m,W],[_,D]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[g,[m,"Fairphone"],[_,C]],[/(u304aa)/i],[g,[m,"AT&T"],[_,C]],[/\bsie-(\w*)/i],[g,[m,"Siemens"],[_,C]],[/\b(rct\w+) b/i],[g,[m,"RCA"],[_,D]],[/\b(venue[\d ]{2,7}) b/i],[g,[m,"Dell"],[_,D]],[/\b(q(?:mv|ta)\w+) b/i],[g,[m,"Verizon"],[_,D]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[g,[m,"Barnes & Noble"],[_,D]],[/\b(tm\d{3}\w+) b/i],[g,[m,"NuVision"],[_,D]],[/\b(k88) b/i],[g,[m,"ZTE"],[_,D]],[/\b(nx\d{3}j) b/i],[g,[m,"ZTE"],[_,C]],[/\b(gen\d{3}) b.+49h/i],[g,[m,"Swiss"],[_,C]],[/\b(zur\d{3}) b/i],[g,[m,"Swiss"],[_,D]],[/\b((zeki)?tb.*\b) b/i],[g,[m,"Zeki"],[_,D]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[m,"Dragon Touch"],g,[_,D]],[/\b(ns-?\w{0,9}) b/i],[g,[m,"Insignia"],[_,D]],[/\b((nxa|next)-?\w{0,9}) b/i],[g,[m,"NextBook"],[_,D]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[m,"Voice"],g,[_,C]],[/\b(lvtel\-)?(v1[12]) b/i],[[m,"LvTel"],g,[_,C]],[/\b(ph-1) /i],[g,[m,"Essential"],[_,C]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[g,[m,"Envizen"],[_,D]],[/\b(trio[-\w\. ]+) b/i],[g,[m,"MachSpeed"],[_,D]],[/\btu_(1491) b/i],[g,[m,"Rotor"],[_,D]],[/(shield[\w ]+) b/i],[g,[m,"Nvidia"],[_,D]],[/(sprint) (\w+)/i],[m,g,[_,C]],[/(kin\.[onetw]{3})/i],[[g,/\./g," "],[m,W],[_,C]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[g,[m,Ce],[_,D]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[g,[m,Ce],[_,C]],[/smart-tv.+(samsung)/i],[m,[_,R]],[/hbbtv.+maple;(\d+)/i],[[g,/^/,"SmartTV"],[m,ye],[_,R]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[m,ve],[_,R]],[/(apple) ?tv/i],[m,[g,le+" TV"],[_,R]],[/crkey/i],[[g,H+"cast"],[m,_e],[_,R]],[/droid.+aft(\w+)( bui|\))/i],[g,[m,te],[_,R]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[g,[m,de],[_,R]],[/(bravia[\w ]+)( bui|\))/i],[g,[m,X],[_,R]],[/(mitv-\w{5}) bui/i],[g,[m,G],[_,R]],[/Hbbtv.*(technisat) (.*);/i],[m,g,[_,R]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[m,Lt],[g,Lt],[_,R]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[_,R]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[m,g,[_,N]],[/droid.+; (shield) bui/i],[g,[m,"Nvidia"],[_,N]],[/(playstation [345portablevi]+)/i],[g,[m,X],[_,N]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[g,[m,W],[_,N]],[/((pebble))app/i],[m,g,[_,I]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[g,[m,le],[_,I]],[/droid.+; (glass) \d/i],[g,[m,_e],[_,I]],[/droid.+; (wt63?0{2,3})\)/i],[g,[m,Ce],[_,I]],[/(quest( 2| pro)?)/i],[g,[m,Te],[_,I]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[m,[_,$]],[/(aeobc)\b/i],[g,[m,te],[_,$]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[g,[_,C]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[g,[_,D]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[_,D]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[_,C]],[/(android[-\w\. ]{0,9});.+buil/i],[g,[m,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[O,[v,ge+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[O,[v,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[v,O],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[O,v]],os:[[/microsoft (windows) (vista|xp)/i],[v,O],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[v,[O,dt,Ue]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[O,dt,Ue],[v,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[O,/_/g,"."],[v,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[v,ht],[O,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[O,v],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[v,O],[/\(bb(10);/i],[O,[v,Q]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[O,[v,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[O,[v,V+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[O,[v,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[O,[v,"watchOS"]],[/crkey\/([\d\.]+)/i],[O,[v,H+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[v,at],O],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[v,O],[/(sunos) ?([\w\.\d]*)/i],[[v,"Solaris"],O],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[v,O]]},Ae=function(ie,ue){if(typeof ie===b&&(ue=ie,ie=a),!(this instanceof Ae))return new Ae(ie,ue).getResult();var Y=typeof r!==p&&r.navigator?r.navigator:a,pe=ie||(Y&&Y.userAgent?Y.userAgent:c),mt=Y&&Y.userAgentData?Y.userAgentData:a,He=ue?st(lt,ue):lt,he=Y&&Y.userAgent==pe;return this.getBrowser=function(){var q={};return q[v]=a,q[O]=a,Xe.call(q,pe,He.browser),q[x]=Tt(q[O]),he&&Y&&Y.brave&&typeof Y.brave.isBrave==d&&(q[v]="Brave"),q},this.getCPU=function(){var q={};return q[k]=a,Xe.call(q,pe,He.cpu),q},this.getDevice=function(){var q={};return q[m]=a,q[g]=a,q[_]=a,Xe.call(q,pe,He.device),he&&!q[_]&&mt&&mt.mobile&&(q[_]=C),he&&q[g]=="Macintosh"&&Y&&typeof Y.standalone!==p&&Y.maxTouchPoints&&Y.maxTouchPoints>2&&(q[g]="iPad",q[_]=D),q},this.getEngine=function(){var q={};return q[v]=a,q[O]=a,Xe.call(q,pe,He.engine),q},this.getOS=function(){var q={};return q[v]=a,q[O]=a,Xe.call(q,pe,He.os),he&&!q[v]&&mt&&mt.platform!="Unknown"&&(q[v]=mt.platform.replace(/chrome os/i,at).replace(/macos/i,ht)),q},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return pe},this.setUA=function(q){return pe=typeof q===w&&q.length>oe?Lt(q,oe):q,this},this.setUA(pe),this};Ae.VERSION=u,Ae.BROWSER=Be([v,O,x]),Ae.CPU=Be([k]),Ae.DEVICE=Be([g,m,_,N,C,R,D,I,$]),Ae.ENGINE=Ae.OS=Be([v,O]),t.exports&&(i=t.exports=Ae),i.UAParser=Ae;var Je=typeof r!==p&&(r.jQuery||r.Zepto);if(Je&&!Je.ua){var pt=new Ae;Je.ua=pt.getResult(),Je.ua.get=function(){return pt.getUA()},Je.ua.set=function(ie){pt.setUA(ie);var ue=pt.getResult();for(var Y in ue)Je.ua[Y]=ue[Y]}}})(typeof window=="object"?window:iu)})(Fr,Fr.exports);var ph=Fr.exports;Object.defineProperty(z,"__esModule",{value:!0});function mh(t){return t&&typeof t=="object"&&"default"in t?t.default:t}var je=T,xe=mh(je),ru=ph,jt=new ru,$e=jt.getBrowser(),vh=jt.getCPU(),Ke=jt.getDevice(),xo=jt.getEngine(),$t=jt.getOS(),Jn=jt.getUA(),ou=function(i){return jt.setUA(i)},Qn=function(i){if(!i){console.error("No userAgent string was provided");return}var r=new ru(i);return{UA:r,browser:r.getBrowser(),cpu:r.getCPU(),device:r.getDevice(),engine:r.getEngine(),os:r.getOS(),ua:r.getUA(),setUserAgent:function(u){return r.setUA(u)}}},au=Object.freeze({ClientUAInstance:jt,browser:$e,cpu:vh,device:Ke,engine:xo,os:$t,ua:Jn,setUa:ou,parseUserAgent:Qn});function Qa(t,i){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);i&&(a=a.filter(function(u){return Object.getOwnPropertyDescriptor(t,u).enumerable})),r.push.apply(r,a)}return r}function _h(t){for(var i=1;i<arguments.length;i++){var r=arguments[i]!=null?arguments[i]:{};i%2?Qa(Object(r),!0).forEach(function(a){wh(t,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Qa(Object(r)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(r,a))})}return t}function Zn(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Zn=function(i){return typeof i}:Zn=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Zn(t)}function gh(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}function yh(t,i){for(var r=0;r<i.length;r++){var a=i[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function bh(t,i,r){return i&&yh(t.prototype,i),t}function wh(t,i,r){return i in t?Object.defineProperty(t,i,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[i]=r,t}function Vr(){return Vr=Object.assign||function(t){for(var i=1;i<arguments.length;i++){var r=arguments[i];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},Vr.apply(this,arguments)}function xh(t,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(i&&i.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),i&&Hr(t,i)}function Ur(t){return Ur=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Ur(t)}function Hr(t,i){return Hr=Object.setPrototypeOf||function(a,u){return a.__proto__=u,a},Hr(t,i)}function Oh(t,i){if(t==null)return{};var r={},a=Object.keys(t),u,c;for(c=0;c<a.length;c++)u=a[c],!(i.indexOf(u)>=0)&&(r[u]=t[u]);return r}function ot(t,i){if(t==null)return{};var r=Oh(t,i),a,u;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(t);for(u=0;u<c.length;u++)a=c[u],!(i.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(t,a)&&(r[a]=t[a])}return r}function Ni(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ph(t,i){if(i&&(typeof i=="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ni(t)}function Sh(t,i){return Th(t)||Lh(t,i)||Eh(t,i)||Ch()}function Th(t){if(Array.isArray(t))return t}function Lh(t,i){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var a=[],u=!0,c=!1,h,d;try{for(r=r.call(t);!(u=(h=r.next()).done)&&(a.push(h.value),!(i&&a.length===i));u=!0);}catch(p){c=!0,d=p}finally{try{!u&&r.return!=null&&r.return()}finally{if(c)throw d}}return a}}function Eh(t,i){if(t){if(typeof t=="string")return es(t,i);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return es(t,i)}}function es(t,i){(i==null||i>t.length)&&(i=t.length);for(var r=0,a=new Array(i);r<i;r++)a[r]=t[r];return a}function Ch(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Re={Mobile:"mobile",Tablet:"tablet",SmartTv:"smarttv",Console:"console",Wearable:"wearable",Embedded:"embedded",Browser:void 0},Ve={Chrome:"Chrome",Firefox:"Firefox",Opera:"Opera",Yandex:"Yandex",Safari:"Safari",InternetExplorer:"Internet Explorer",Edge:"Edge",Chromium:"Chromium",Ie:"IE",MobileSafari:"Mobile Safari",EdgeChromium:"Edge Chromium",MIUI:"MIUI Browser",SamsungBrowser:"Samsung Browser"},wn={IOS:"iOS",Android:"Android",WindowsPhone:"Windows Phone",Windows:"Windows",MAC_OS:"Mac OS"},Dh={isMobile:!1,isTablet:!1,isBrowser:!1,isSmartTV:!1,isConsole:!1,isWearable:!1},Mh=function(i){switch(i){case Re.Mobile:return{isMobile:!0};case Re.Tablet:return{isTablet:!0};case Re.SmartTv:return{isSmartTV:!0};case Re.Console:return{isConsole:!0};case Re.Wearable:return{isWearable:!0};case Re.Browser:return{isBrowser:!0};case Re.Embedded:return{isEmbedded:!0};default:return Dh}},kh=function(i){return ou(i)},K=function(i){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"none";return i||r},Oo=function(){return typeof window<"u"&&(window.navigator||navigator)?window.navigator||navigator:!1},Po=function(i){var r=Oo();return r&&r.platform&&(r.platform.indexOf(i)!==-1||r.platform==="MacIntel"&&r.maxTouchPoints>1&&!window.MSStream)},Ah=function(i,r,a,u,c){return{isBrowser:i,browserMajorVersion:K(r.major),browserFullVersion:K(r.version),browserName:K(r.name),engineName:K(a.name),engineVersion:K(a.version),osName:K(u.name),osVersion:K(u.version),userAgent:K(c)}},ts=function(i,r,a,u){return _h({},i,{vendor:K(r.vendor),model:K(r.model),os:K(a.name),osVersion:K(a.version),ua:K(u)})},Ih=function(i,r,a,u){return{isSmartTV:i,engineName:K(r.name),engineVersion:K(r.version),osName:K(a.name),osVersion:K(a.version),userAgent:K(u)}},Nh=function(i,r,a,u){return{isConsole:i,engineName:K(r.name),engineVersion:K(r.version),osName:K(a.name),osVersion:K(a.version),userAgent:K(u)}},Rh=function(i,r,a,u){return{isWearable:i,engineName:K(r.name),engineVersion:K(r.version),osName:K(a.name),osVersion:K(a.version),userAgent:K(u)}},jh=function(i,r,a,u,c){return{isEmbedded:i,vendor:K(r.vendor),model:K(r.model),engineName:K(a.name),engineVersion:K(a.version),osName:K(u.name),osVersion:K(u.version),userAgent:K(c)}};function $h(t){var i=t?Qn(t):au,r=i.device,a=i.browser,u=i.engine,c=i.os,h=i.ua,d=Mh(r.type),p=d.isBrowser,b=d.isMobile,w=d.isTablet,x=d.isSmartTV,g=d.isConsole,v=d.isWearable,_=d.isEmbedded;if(p)return Ah(p,a,u,c,h);if(x)return Ih(x,u,c,h);if(g)return Nh(g,u,c,h);if(b||w)return ts(d,r,c,h);if(v)return Rh(v,u,c,h);if(_)return jh(_,r,u,c,h)}var su=function(i){var r=i.type;return r===Re.Mobile},uu=function(i){var r=i.type;return r===Re.Tablet},lu=function(i){var r=i.type;return r===Re.Mobile||r===Re.Tablet},cu=function(i){var r=i.type;return r===Re.SmartTv},$i=function(i){var r=i.type;return r===Re.Browser},fu=function(i){var r=i.type;return r===Re.Wearable},hu=function(i){var r=i.type;return r===Re.Console},du=function(i){var r=i.type;return r===Re.Embedded},pu=function(i){var r=i.vendor;return K(r)},mu=function(i){var r=i.model;return K(r)},vu=function(i){var r=i.type;return K(r,"browser")},_u=function(i){var r=i.name;return r===wn.Android},gu=function(i){var r=i.name;return r===wn.Windows},yu=function(i){var r=i.name;return r===wn.MAC_OS},bu=function(i){var r=i.name;return r===wn.WindowsPhone},wu=function(i){var r=i.name;return r===wn.IOS},xu=function(i){var r=i.version;return K(r)},Ou=function(i){var r=i.name;return K(r)},Pu=function(i){var r=i.name;return r===Ve.Chrome},Su=function(i){var r=i.name;return r===Ve.Firefox},Tu=function(i){var r=i.name;return r===Ve.Chromium},Bi=function(i){var r=i.name;return r===Ve.Edge},Lu=function(i){var r=i.name;return r===Ve.Yandex},Eu=function(i){var r=i.name;return r===Ve.Safari||r===Ve.MobileSafari},Cu=function(i){var r=i.name;return r===Ve.MobileSafari},Du=function(i){var r=i.name;return r===Ve.Opera},Mu=function(i){var r=i.name;return r===Ve.InternetExplorer||r===Ve.Ie},ku=function(i){var r=i.name;return r===Ve.MIUI},Au=function(i){var r=i.name;return r===Ve.SamsungBrowser},Iu=function(i){var r=i.version;return K(r)},Nu=function(i){var r=i.major;return K(r)},Ru=function(i){var r=i.name;return K(r)},ju=function(i){var r=i.name;return K(r)},$u=function(i){var r=i.version;return K(r)},Bu=function(){var i=Oo(),r=i&&i.userAgent&&i.userAgent.toLowerCase();return typeof r=="string"?/electron/.test(r):!1},pn=function(i){return typeof i=="string"&&i.indexOf("Edg/")!==-1},zu=function(){var i=Oo();return i&&(/iPad|iPhone|iPod/.test(i.platform)||i.platform==="MacIntel"&&i.maxTouchPoints>1)&&!window.MSStream},xt=function(){return Po("iPad")},Wu=function(){return Po("iPhone")},Zu=function(){return Po("iPod")},Fu=function(i){return K(i)};function Vu(t){var i=t||au,r=i.device,a=i.browser,u=i.os,c=i.engine,h=i.ua;return{isSmartTV:cu(r),isConsole:hu(r),isWearable:fu(r),isEmbedded:du(r),isMobileSafari:Cu(a)||xt(),isChromium:Tu(a),isMobile:lu(r)||xt(),isMobileOnly:su(r),isTablet:uu(r)||xt(),isBrowser:$i(r),isDesktop:$i(r),isAndroid:_u(u),isWinPhone:bu(u),isIOS:wu(u)||xt(),isChrome:Pu(a),isFirefox:Su(a),isSafari:Eu(a),isOpera:Du(a),isIE:Mu(a),osVersion:xu(u),osName:Ou(u),fullBrowserVersion:Iu(a),browserVersion:Nu(a),browserName:Ru(a),mobileVendor:pu(r),mobileModel:mu(r),engineName:ju(c),engineVersion:$u(c),getUA:Fu(h),isEdge:Bi(a)||pn(h),isYandex:Lu(a),deviceType:vu(r),isIOS13:zu(),isIPad13:xt(),isIPhone13:Wu(),isIPod13:Zu(),isElectron:Bu(),isEdgeChromium:pn(h),isLegacyEdge:Bi(a)&&!pn(h),isWindows:gu(u),isMacOs:yu(u),isMIUI:ku(a),isSamsungBrowser:Au(a)}}var Uu=cu(Ke),Hu=hu(Ke),Yu=fu(Ke),Bh=du(Ke),zh=Cu($e)||xt(),Wh=Tu($e),Ui=lu(Ke)||xt(),qu=su(Ke),Gu=uu(Ke)||xt(),Ku=$i(Ke),Zh=$i(Ke),Xu=_u($t),Ju=bu($t),Qu=wu($t)||xt(),Fh=Pu($e),Vh=Su($e),Uh=Eu($e),Hh=Du($e),el=Mu($e),Yh=xu($t),qh=Ou($t),Gh=Iu($e),Kh=Nu($e),Xh=Ru($e),Jh=pu(Ke),Qh=mu(Ke),ed=ju(xo),td=$u(xo),nd=Fu(Jn),id=Bi($e)||pn(Jn),rd=Lu($e),od=vu(Ke),ad=zu(),sd=xt(),ud=Wu(),ld=Zu(),cd=Bu(),fd=pn(Jn),hd=Bi($e)&&!pn(Jn),dd=gu($t),pd=yu($t),md=ku($e),vd=Au($e),_d=function(i){if(!i||typeof i!="string"){console.error("No valid user agent string was provided");return}var r=Qn(i),a=r.device,u=r.browser,c=r.os,h=r.engine,d=r.ua;return Vu({device:a,browser:u,os:c,engine:h,ua:d})},gd=function(i){var r=i.renderWithFragment,a=i.children,u=ot(i,["renderWithFragment","children"]);return Xu?r?xe.createElement(je.Fragment,null,a):xe.createElement("div",u,a):null},yd=function(i){var r=i.renderWithFragment,a=i.children,u=ot(i,["renderWithFragment","children"]);return Ku?r?xe.createElement(je.Fragment,null,a):xe.createElement("div",u,a):null},bd=function(i){var r=i.renderWithFragment,a=i.children,u=ot(i,["renderWithFragment","children"]);return el?r?xe.createElement(je.Fragment,null,a):xe.createElement("div",u,a):null},wd=function(i){var r=i.renderWithFragment,a=i.children,u=ot(i,["renderWithFragment","children"]);return Qu?r?xe.createElement(je.Fragment,null,a):xe.createElement("div",u,a):null},xd=function(i){var r=i.renderWithFragment,a=i.children,u=ot(i,["renderWithFragment","children"]);return Ui?r?xe.createElement(je.Fragment,null,a):xe.createElement("div",u,a):null},Od=function(i){var r=i.renderWithFragment,a=i.children,u=ot(i,["renderWithFragment","children"]);return Gu?r?xe.createElement(je.Fragment,null,a):xe.createElement("div",u,a):null},Pd=function(i){var r=i.renderWithFragment,a=i.children,u=ot(i,["renderWithFragment","children"]);return Ju?r?xe.createElement(je.Fragment,null,a):xe.createElement("div",u,a):null},Sd=function(i){var r=i.renderWithFragment,a=i.children;i.viewClassName,i.style;var u=ot(i,["renderWithFragment","children","viewClassName","style"]);return qu?r?xe.createElement(je.Fragment,null,a):xe.createElement("div",u,a):null},Td=function(i){var r=i.renderWithFragment,a=i.children,u=ot(i,["renderWithFragment","children"]);return Uu?r?xe.createElement(je.Fragment,null,a):xe.createElement("div",u,a):null},Ld=function(i){var r=i.renderWithFragment,a=i.children,u=ot(i,["renderWithFragment","children"]);return Hu?r?xe.createElement(je.Fragment,null,a):xe.createElement("div",u,a):null},Ed=function(i){var r=i.renderWithFragment,a=i.children,u=ot(i,["renderWithFragment","children"]);return Yu?r?xe.createElement(je.Fragment,null,a):xe.createElement("div",u,a):null},Cd=function(i){var r=i.renderWithFragment,a=i.children;i.viewClassName,i.style;var u=i.condition,c=ot(i,["renderWithFragment","children","viewClassName","style","condition"]);return u?r?xe.createElement(je.Fragment,null,a):xe.createElement("div",c,a):null};function Dd(t){return function(i){xh(r,i);function r(a){var u;return gh(this,r),u=Ph(this,Ur(r).call(this,a)),u.isEventListenerAdded=!1,u.handleOrientationChange=u.handleOrientationChange.bind(Ni(u)),u.onOrientationChange=u.onOrientationChange.bind(Ni(u)),u.onPageLoad=u.onPageLoad.bind(Ni(u)),u.state={isLandscape:!1,isPortrait:!1},u}return bh(r,[{key:"handleOrientationChange",value:function(){this.isEventListenerAdded||(this.isEventListenerAdded=!0);var u=window.innerWidth>window.innerHeight?90:0;this.setState({isPortrait:u===0,isLandscape:u===90})}},{key:"onOrientationChange",value:function(){this.handleOrientationChange()}},{key:"onPageLoad",value:function(){this.handleOrientationChange()}},{key:"componentDidMount",value:function(){(typeof window>"u"?"undefined":Zn(window))!==void 0&&Ui&&(this.isEventListenerAdded?window.removeEventListener("load",this.onPageLoad,!1):(this.handleOrientationChange(),window.addEventListener("load",this.onPageLoad,!1)),window.addEventListener("resize",this.onOrientationChange,!1))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.onOrientationChange,!1)}},{key:"render",value:function(){return xe.createElement(t,Vr({},this.props,{isLandscape:this.state.isLandscape,isPortrait:this.state.isPortrait}))}}]),r}(xe.Component)}function Md(){var t=je.useState(function(){var c=window.innerWidth>window.innerHeight?90:0;return{isPortrait:c===0,isLandscape:c===90,orientation:c===0?"portrait":"landscape"}}),i=Sh(t,2),r=i[0],a=i[1],u=je.useCallback(function(){var c=window.innerWidth>window.innerHeight?90:0,h={isPortrait:c===0,isLandscape:c===90,orientation:c===0?"portrait":"landscape"};r.orientation!==h.orientation&&a(h)},[r.orientation]);return je.useEffect(function(){return(typeof window>"u"?"undefined":Zn(window))!==void 0&&Ui&&(u(),window.addEventListener("load",u,!1),window.addEventListener("resize",u,!1)),function(){window.removeEventListener("resize",u,!1),window.removeEventListener("load",u,!1)}},[u]),r}function tl(t){var i=t||window.navigator.userAgent;return Qn(i)}function kd(t){var i=t||window.navigator.userAgent,r=tl(i),a=Vu(r);return[a,r]}z.AndroidView=gd;z.BrowserTypes=Ve;z.BrowserView=yd;z.ConsoleView=Ld;z.CustomView=Cd;z.IEView=bd;z.IOSView=wd;z.MobileOnlyView=Sd;z.MobileView=xd;z.OsTypes=wn;z.SmartTVView=Td;z.TabletView=Od;z.WearableView=Ed;z.WinPhoneView=Pd;z.browserName=Xh;z.browserVersion=Kh;z.deviceDetect=$h;z.deviceType=od;z.engineName=ed;z.engineVersion=td;z.fullBrowserVersion=Gh;z.getSelectorsByUserAgent=_d;z.getUA=nd;z.isAndroid=Xu;z.isBrowser=Ku;z.isChrome=Fh;z.isChromium=Wh;z.isConsole=Hu;z.isDesktop=Zh;z.isEdge=id;z.isEdgeChromium=fd;z.isElectron=cd;z.isEmbedded=Bh;z.isFirefox=Vh;z.isIE=el;z.isIOS=Qu;z.isIOS13=ad;z.isIPad13=sd;z.isIPhone13=ud;z.isIPod13=ld;z.isLegacyEdge=hd;z.isMIUI=md;z.isMacOs=pd;var nl=z.isMobile=Ui;z.isMobileOnly=qu;z.isMobileSafari=zh;z.isOpera=Hh;z.isSafari=Uh;z.isSamsungBrowser=vd;z.isSmartTV=Uu;var Ad=z.isTablet=Gu;z.isWearable=Yu;z.isWinPhone=Ju;z.isWindows=dd;z.isYandex=rd;z.mobileModel=Qh;z.mobileVendor=Jh;z.osName=qh;z.osVersion=Yh;z.parseUserAgent=Qn;z.setUserAgent=kh;z.useDeviceData=tl;z.useDeviceSelectors=kd;z.useMobileOrientation=Md;z.withOrientationChange=Dd;var Id="Expected a function",ns=NaN,Nd="[object Symbol]",Rd=/^\s+|\s+$/g,jd=/^[-+]0x[0-9a-f]+$/i,$d=/^0b[01]+$/i,Bd=/^0o[0-7]+$/i,zd=parseInt,Wd=typeof globalThis=="object"&&globalThis&&globalThis.Object===Object&&globalThis,Zd=typeof self=="object"&&self&&self.Object===Object&&self,Fd=Wd||Zd||Function("return this")(),Vd=Object.prototype,Ud=Vd.toString,Hd=Math.max,Yd=Math.min,Ir=function(){return Fd.Date.now()};function qd(t,i,r){var a,u,c,h,d,p,b=0,w=!1,x=!1,g=!0;if(typeof t!="function")throw new TypeError(Id);i=is(i)||0,Yr(r)&&(w=!!r.leading,x="maxWait"in r,c=x?Hd(is(r.maxWait)||0,i):c,g="trailing"in r?!!r.trailing:g);function v(I){var $=a,oe=u;return a=u=void 0,b=I,h=t.apply(oe,$),h}function _(I){return b=I,d=setTimeout(k,i),w?v(I):h}function m(I){var $=I-p,oe=I-b,te=i-$;return x?Yd(te,c-oe):te}function O(I){var $=I-p,oe=I-b;return p===void 0||$>=i||$<0||x&&oe>=c}function k(){var I=Ir();if(O(I))return N(I);d=setTimeout(k,m(I))}function N(I){return d=void 0,g&&a?v(I):(a=u=void 0,h)}function C(){d!==void 0&&clearTimeout(d),b=0,a=p=u=d=void 0}function D(){return d===void 0?h:N(Ir())}function R(){var I=Ir(),$=O(I);if(a=arguments,u=this,p=I,$){if(d===void 0)return _(p);if(x)return d=setTimeout(k,i),v(p)}return d===void 0&&(d=setTimeout(k,i)),h}return R.cancel=C,R.flush=D,R}function Yr(t){var i=typeof t;return!!t&&(i=="object"||i=="function")}function Gd(t){return!!t&&typeof t=="object"}function Kd(t){return typeof t=="symbol"||Gd(t)&&Ud.call(t)==Nd}function is(t){if(typeof t=="number")return t;if(Kd(t))return ns;if(Yr(t)){var i=typeof t.valueOf=="function"?t.valueOf():t;t=Yr(i)?i+"":i}if(typeof t!="string")return t===0?t:+t;t=t.replace(Rd,"");var r=$d.test(t);return r||Bd.test(t)?zd(t.slice(2),r?2:8):jd.test(t)?ns:+t}var Xd=qd;const rs=Vi(Xd);function Jd(t){const i=T.useRef(t);i.current=t,T.useEffect(()=>()=>{i.current()},[])}function Qd(t,i=500,r){const a=T.useRef();Jd(()=>{a.current&&a.current.cancel()});const u=T.useMemo(()=>{const c=rs(t,i,r),h=(...d)=>c(...d);return h.cancel=()=>{c.cancel()},h.isPending=()=>!!a.current,h.flush=()=>c.flush(),h},[t,i,r]);return T.useEffect(()=>{a.current=rs(t,i,r)},[t,i,r]),u}function ep(){const[t,i]=T.useState(!1);return T.useEffect(()=>{i(!0)},[]),t}function So(t,i=[]){let r=[];function a(c,h){const d=T.createContext(h),p=r.length;r=[...r,h];function b(x){const{scope:g,children:v,..._}=x,m=(g==null?void 0:g[t][p])||d,O=T.useMemo(()=>_,Object.values(_));return T.createElement(m.Provider,{value:O},v)}function w(x,g){const v=(g==null?void 0:g[t][p])||d,_=T.useContext(v);if(_)return _;if(h!==void 0)return h;throw new Error(`\`${x}\` must be used within \`${c}\``)}return b.displayName=c+"Provider",[b,w]}const u=()=>{const c=r.map(h=>T.createContext(h));return function(d){const p=(d==null?void 0:d[t])||c;return T.useMemo(()=>({[`__scope${t}`]:{...d,[t]:p}}),[d,p])}};return u.scopeName=t,[a,tp(u,...i)]}function tp(...t){const i=t[0];if(t.length===1)return i;const r=()=>{const a=t.map(u=>({useScope:u(),scopeName:u.scopeName}));return function(c){const h=a.reduce((d,{useScope:p,scopeName:b})=>{const x=p(c)[`__scope${b}`];return{...d,...x}},{});return T.useMemo(()=>({[`__scope${i.scopeName}`]:h}),[h])}};return r.scopeName=i.scopeName,r}function Rt(t,i,{checkForDefaultPrevented:r=!0}={}){return function(u){if(t==null||t(u),r===!1||!u.defaultPrevented)return i==null?void 0:i(u)}}function il(t){const i=T.useRef(t);return T.useEffect(()=>{i.current=t}),T.useMemo(()=>(...r)=>{var a;return(a=i.current)===null||a===void 0?void 0:a.call(i,...r)},[])}function rl({prop:t,defaultProp:i,onChange:r=()=>{}}){const[a,u]=np({defaultProp:i,onChange:r}),c=t!==void 0,h=c?t:a,d=il(r),p=T.useCallback(b=>{if(c){const x=typeof b=="function"?b(t):b;x!==t&&d(x)}else u(b)},[c,t,u,d]);return[h,p]}function np({defaultProp:t,onChange:i}){const r=T.useState(t),[a]=r,u=T.useRef(a),c=il(i);return T.useEffect(()=>{u.current!==a&&(c(a),u.current=a)},[a,u,c]),r}function ol(t){const i=T.useRef({value:t,previous:t});return T.useMemo(()=>(i.current.value!==t&&(i.current.previous=i.current.value,i.current.value=t),i.current.previous),[t])}const qr=globalThis!=null&&globalThis.document?T.useLayoutEffect:()=>{};function al(t){const[i,r]=T.useState(void 0);return qr(()=>{if(t){r({width:t.offsetWidth,height:t.offsetHeight});const a=new ResizeObserver(u=>{if(!Array.isArray(u)||!u.length)return;const c=u[0];let h,d;if("borderBoxSize"in c){const p=c.borderBoxSize,b=Array.isArray(p)?p[0]:p;h=b.inlineSize,d=b.blockSize}else h=t.offsetWidth,d=t.offsetHeight;r({width:h,height:d})});return a.observe(t,{box:"border-box"}),()=>a.unobserve(t)}else r(void 0)},[t]),i}function ip(t,i){return T.useReducer((r,a)=>{const u=i[r][a];return u??r},t)}const sl=t=>{const{present:i,children:r}=t,a=rp(i),u=typeof r=="function"?r({present:a.isPresent}):T.Children.only(r),c=Pt(a.ref,u.ref);return typeof r=="function"||a.isPresent?T.cloneElement(u,{ref:c}):null};sl.displayName="Presence";function rp(t){const[i,r]=T.useState(),a=T.useRef({}),u=T.useRef(t),c=T.useRef("none"),h=t?"mounted":"unmounted",[d,p]=ip(h,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return T.useEffect(()=>{const b=ki(a.current);c.current=d==="mounted"?b:"none"},[d]),qr(()=>{const b=a.current,w=u.current;if(w!==t){const g=c.current,v=ki(b);t?p("MOUNT"):v==="none"||(b==null?void 0:b.display)==="none"?p("UNMOUNT"):p(w&&g!==v?"ANIMATION_OUT":"UNMOUNT"),u.current=t}},[t,p]),qr(()=>{if(i){const b=x=>{const v=ki(a.current).includes(x.animationName);x.target===i&&v&&wo.flushSync(()=>p("ANIMATION_END"))},w=x=>{x.target===i&&(c.current=ki(a.current))};return i.addEventListener("animationstart",w),i.addEventListener("animationcancel",b),i.addEventListener("animationend",b),()=>{i.removeEventListener("animationstart",w),i.removeEventListener("animationcancel",b),i.removeEventListener("animationend",b)}}else p("ANIMATION_END")},[i,p]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:T.useCallback(b=>{b&&(a.current=getComputedStyle(b)),r(b)},[])}}function ki(t){return(t==null?void 0:t.animationName)||"none"}const op=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],xn=op.reduce((t,i)=>{const r=T.forwardRef((a,u)=>{const{asChild:c,...h}=a,d=c?Wr:i;return T.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),T.createElement(d,Ge({},h,{ref:u}))});return r.displayName=`Primitive.${i}`,{...t,[i]:r}},{}),ul="Checkbox",[ap,Wy]=So(ul),[sp,up]=ap(ul),lp=T.forwardRef((t,i)=>{const{__scopeCheckbox:r,name:a,checked:u,defaultChecked:c,required:h,disabled:d,value:p="on",onCheckedChange:b,...w}=t,[x,g]=T.useState(null),v=Pt(i,C=>g(C)),_=T.useRef(!1),m=x?!!x.closest("form"):!0,[O=!1,k]=rl({prop:u,defaultProp:c,onChange:b}),N=T.useRef(O);return T.useEffect(()=>{const C=x==null?void 0:x.form;if(C){const D=()=>k(N.current);return C.addEventListener("reset",D),()=>C.removeEventListener("reset",D)}},[x,k]),T.createElement(sp,{scope:r,state:O,disabled:d},T.createElement(xn.button,Ge({type:"button",role:"checkbox","aria-checked":Yt(O)?"mixed":O,"aria-required":h,"data-state":ll(O),"data-disabled":d?"":void 0,disabled:d,value:p},w,{ref:v,onKeyDown:Rt(t.onKeyDown,C=>{C.key==="Enter"&&C.preventDefault()}),onClick:Rt(t.onClick,C=>{k(D=>Yt(D)?!0:!D),m&&(_.current=C.isPropagationStopped(),_.current||C.stopPropagation())})})),m&&T.createElement(hp,{control:x,bubbles:!_.current,name:a,value:p,checked:O,required:h,disabled:d,style:{transform:"translateX(-100%)"}}))}),cp="CheckboxIndicator",fp=T.forwardRef((t,i)=>{const{__scopeCheckbox:r,forceMount:a,...u}=t,c=up(cp,r);return T.createElement(sl,{present:a||Yt(c.state)||c.state===!0},T.createElement(xn.span,Ge({"data-state":ll(c.state),"data-disabled":c.disabled?"":void 0},u,{ref:i,style:{pointerEvents:"none",...t.style}})))}),hp=t=>{const{control:i,checked:r,bubbles:a=!0,...u}=t,c=T.useRef(null),h=ol(r),d=al(i);return T.useEffect(()=>{const p=c.current,b=window.HTMLInputElement.prototype,x=Object.getOwnPropertyDescriptor(b,"checked").set;if(h!==r&&x){const g=new Event("click",{bubbles:a});p.indeterminate=Yt(r),x.call(p,Yt(r)?!1:r),p.dispatchEvent(g)}},[h,r,a]),T.createElement("input",Ge({type:"checkbox","aria-hidden":!0,defaultChecked:Yt(r)?!1:r},u,{tabIndex:-1,ref:c,style:{...t.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function Yt(t){return t==="indeterminate"}function ll(t){return Yt(t)?"indeterminate":t?"checked":"unchecked"}var os=function(i){return i.reduce(function(r,a){var u=a[0],c=a[1];return r[u]=c,r},{})},as=typeof window<"u"&&window.document&&window.document.createElement?T.useLayoutEffect:T.useEffect,Ze="top",it="bottom",rt="right",Fe="left",To="auto",ei=[Ze,it,rt,Fe],vn="start",Un="end",dp="clippingParents",cl="viewport",zn="popper",pp="reference",ss=ei.reduce(function(t,i){return t.concat([i+"-"+vn,i+"-"+Un])},[]),fl=[].concat(ei,[To]).reduce(function(t,i){return t.concat([i,i+"-"+vn,i+"-"+Un])},[]),mp="beforeRead",vp="read",_p="afterRead",gp="beforeMain",yp="main",bp="afterMain",wp="beforeWrite",xp="write",Op="afterWrite",Pp=[mp,vp,_p,gp,yp,bp,wp,xp,Op];function St(t){return t?(t.nodeName||"").toLowerCase():null}function qe(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var i=t.ownerDocument;return i&&i.defaultView||window}return t}function Xt(t){var i=qe(t).Element;return t instanceof i||t instanceof Element}function nt(t){var i=qe(t).HTMLElement;return t instanceof i||t instanceof HTMLElement}function Lo(t){if(typeof ShadowRoot>"u")return!1;var i=qe(t).ShadowRoot;return t instanceof i||t instanceof ShadowRoot}function Sp(t){var i=t.state;Object.keys(i.elements).forEach(function(r){var a=i.styles[r]||{},u=i.attributes[r]||{},c=i.elements[r];!nt(c)||!St(c)||(Object.assign(c.style,a),Object.keys(u).forEach(function(h){var d=u[h];d===!1?c.removeAttribute(h):c.setAttribute(h,d===!0?"":d)}))})}function Tp(t){var i=t.state,r={popper:{position:i.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(i.elements.popper.style,r.popper),i.styles=r,i.elements.arrow&&Object.assign(i.elements.arrow.style,r.arrow),function(){Object.keys(i.elements).forEach(function(a){var u=i.elements[a],c=i.attributes[a]||{},h=Object.keys(i.styles.hasOwnProperty(a)?i.styles[a]:r[a]),d=h.reduce(function(p,b){return p[b]="",p},{});!nt(u)||!St(u)||(Object.assign(u.style,d),Object.keys(c).forEach(function(p){u.removeAttribute(p)}))})}}const Lp={name:"applyStyles",enabled:!0,phase:"write",fn:Sp,effect:Tp,requires:["computeStyles"]};function Ot(t){return t.split("-")[0]}var qt=Math.max,zi=Math.min,_n=Math.round;function Gr(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(i){return i.brand+"/"+i.version}).join(" "):navigator.userAgent}function hl(){return!/^((?!chrome|android).)*safari/i.test(Gr())}function gn(t,i,r){i===void 0&&(i=!1),r===void 0&&(r=!1);var a=t.getBoundingClientRect(),u=1,c=1;i&&nt(t)&&(u=t.offsetWidth>0&&_n(a.width)/t.offsetWidth||1,c=t.offsetHeight>0&&_n(a.height)/t.offsetHeight||1);var h=Xt(t)?qe(t):window,d=h.visualViewport,p=!hl()&&r,b=(a.left+(p&&d?d.offsetLeft:0))/u,w=(a.top+(p&&d?d.offsetTop:0))/c,x=a.width/u,g=a.height/c;return{width:x,height:g,top:w,right:b+x,bottom:w+g,left:b,x:b,y:w}}function Eo(t){var i=gn(t),r=t.offsetWidth,a=t.offsetHeight;return Math.abs(i.width-r)<=1&&(r=i.width),Math.abs(i.height-a)<=1&&(a=i.height),{x:t.offsetLeft,y:t.offsetTop,width:r,height:a}}function dl(t,i){var r=i.getRootNode&&i.getRootNode();if(t.contains(i))return!0;if(r&&Lo(r)){var a=i;do{if(a&&t.isSameNode(a))return!0;a=a.parentNode||a.host}while(a)}return!1}function kt(t){return qe(t).getComputedStyle(t)}function Ep(t){return["table","td","th"].indexOf(St(t))>=0}function Bt(t){return((Xt(t)?t.ownerDocument:t.document)||window.document).documentElement}function Hi(t){return St(t)==="html"?t:t.assignedSlot||t.parentNode||(Lo(t)?t.host:null)||Bt(t)}function us(t){return!nt(t)||kt(t).position==="fixed"?null:t.offsetParent}function Cp(t){var i=/firefox/i.test(Gr()),r=/Trident/i.test(Gr());if(r&&nt(t)){var a=kt(t);if(a.position==="fixed")return null}var u=Hi(t);for(Lo(u)&&(u=u.host);nt(u)&&["html","body"].indexOf(St(u))<0;){var c=kt(u);if(c.transform!=="none"||c.perspective!=="none"||c.contain==="paint"||["transform","perspective"].indexOf(c.willChange)!==-1||i&&c.willChange==="filter"||i&&c.filter&&c.filter!=="none")return u;u=u.parentNode}return null}function ti(t){for(var i=qe(t),r=us(t);r&&Ep(r)&&kt(r).position==="static";)r=us(r);return r&&(St(r)==="html"||St(r)==="body"&&kt(r).position==="static")?i:r||Cp(t)||i}function Co(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Fn(t,i,r){return qt(t,zi(i,r))}function Dp(t,i,r){var a=Fn(t,i,r);return a>r?r:a}function pl(){return{top:0,right:0,bottom:0,left:0}}function ml(t){return Object.assign({},pl(),t)}function vl(t,i){return i.reduce(function(r,a){return r[a]=t,r},{})}var Mp=function(i,r){return i=typeof i=="function"?i(Object.assign({},r.rects,{placement:r.placement})):i,ml(typeof i!="number"?i:vl(i,ei))};function kp(t){var i,r=t.state,a=t.name,u=t.options,c=r.elements.arrow,h=r.modifiersData.popperOffsets,d=Ot(r.placement),p=Co(d),b=[Fe,rt].indexOf(d)>=0,w=b?"height":"width";if(!(!c||!h)){var x=Mp(u.padding,r),g=Eo(c),v=p==="y"?Ze:Fe,_=p==="y"?it:rt,m=r.rects.reference[w]+r.rects.reference[p]-h[p]-r.rects.popper[w],O=h[p]-r.rects.reference[p],k=ti(c),N=k?p==="y"?k.clientHeight||0:k.clientWidth||0:0,C=m/2-O/2,D=x[v],R=N-g[w]-x[_],I=N/2-g[w]/2+C,$=Fn(D,I,R),oe=p;r.modifiersData[a]=(i={},i[oe]=$,i.centerOffset=$-I,i)}}function Ap(t){var i=t.state,r=t.options,a=r.element,u=a===void 0?"[data-popper-arrow]":a;u!=null&&(typeof u=="string"&&(u=i.elements.popper.querySelector(u),!u)||dl(i.elements.popper,u)&&(i.elements.arrow=u))}const Ip={name:"arrow",enabled:!0,phase:"main",fn:kp,effect:Ap,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function yn(t){return t.split("-")[1]}var Np={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Rp(t,i){var r=t.x,a=t.y,u=i.devicePixelRatio||1;return{x:_n(r*u)/u||0,y:_n(a*u)/u||0}}function ls(t){var i,r=t.popper,a=t.popperRect,u=t.placement,c=t.variation,h=t.offsets,d=t.position,p=t.gpuAcceleration,b=t.adaptive,w=t.roundOffsets,x=t.isFixed,g=h.x,v=g===void 0?0:g,_=h.y,m=_===void 0?0:_,O=typeof w=="function"?w({x:v,y:m}):{x:v,y:m};v=O.x,m=O.y;var k=h.hasOwnProperty("x"),N=h.hasOwnProperty("y"),C=Fe,D=Ze,R=window;if(b){var I=ti(r),$="clientHeight",oe="clientWidth";if(I===qe(r)&&(I=Bt(r),kt(I).position!=="static"&&d==="absolute"&&($="scrollHeight",oe="scrollWidth")),I=I,u===Ze||(u===Fe||u===rt)&&c===Un){D=it;var te=x&&I===R&&R.visualViewport?R.visualViewport.height:I[$];m-=te-a.height,m*=p?1:-1}if(u===Fe||(u===Ze||u===it)&&c===Un){C=rt;var le=x&&I===R&&R.visualViewport?R.visualViewport.width:I[oe];v-=le-a.width,v*=p?1:-1}}var ne=Object.assign({position:d},b&&Np),Q=w===!0?Rp({x:v,y:m},qe(r)):{x:v,y:m};if(v=Q.x,m=Q.y,p){var se;return Object.assign({},ne,(se={},se[D]=N?"0":"",se[C]=k?"0":"",se.transform=(R.devicePixelRatio||1)<=1?"translate("+v+"px, "+m+"px)":"translate3d("+v+"px, "+m+"px, 0)",se))}return Object.assign({},ne,(i={},i[D]=N?m+"px":"",i[C]=k?v+"px":"",i.transform="",i))}function jp(t){var i=t.state,r=t.options,a=r.gpuAcceleration,u=a===void 0?!0:a,c=r.adaptive,h=c===void 0?!0:c,d=r.roundOffsets,p=d===void 0?!0:d,b={placement:Ot(i.placement),variation:yn(i.placement),popper:i.elements.popper,popperRect:i.rects.popper,gpuAcceleration:u,isFixed:i.options.strategy==="fixed"};i.modifiersData.popperOffsets!=null&&(i.styles.popper=Object.assign({},i.styles.popper,ls(Object.assign({},b,{offsets:i.modifiersData.popperOffsets,position:i.options.strategy,adaptive:h,roundOffsets:p})))),i.modifiersData.arrow!=null&&(i.styles.arrow=Object.assign({},i.styles.arrow,ls(Object.assign({},b,{offsets:i.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:p})))),i.attributes.popper=Object.assign({},i.attributes.popper,{"data-popper-placement":i.placement})}const $p={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:jp,data:{}};var Ai={passive:!0};function Bp(t){var i=t.state,r=t.instance,a=t.options,u=a.scroll,c=u===void 0?!0:u,h=a.resize,d=h===void 0?!0:h,p=qe(i.elements.popper),b=[].concat(i.scrollParents.reference,i.scrollParents.popper);return c&&b.forEach(function(w){w.addEventListener("scroll",r.update,Ai)}),d&&p.addEventListener("resize",r.update,Ai),function(){c&&b.forEach(function(w){w.removeEventListener("scroll",r.update,Ai)}),d&&p.removeEventListener("resize",r.update,Ai)}}const zp={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Bp,data:{}};var Wp={left:"right",right:"left",bottom:"top",top:"bottom"};function Ri(t){return t.replace(/left|right|bottom|top/g,function(i){return Wp[i]})}var Zp={start:"end",end:"start"};function cs(t){return t.replace(/start|end/g,function(i){return Zp[i]})}function Do(t){var i=qe(t),r=i.pageXOffset,a=i.pageYOffset;return{scrollLeft:r,scrollTop:a}}function Mo(t){return gn(Bt(t)).left+Do(t).scrollLeft}function Fp(t,i){var r=qe(t),a=Bt(t),u=r.visualViewport,c=a.clientWidth,h=a.clientHeight,d=0,p=0;if(u){c=u.width,h=u.height;var b=hl();(b||!b&&i==="fixed")&&(d=u.offsetLeft,p=u.offsetTop)}return{width:c,height:h,x:d+Mo(t),y:p}}function Vp(t){var i,r=Bt(t),a=Do(t),u=(i=t.ownerDocument)==null?void 0:i.body,c=qt(r.scrollWidth,r.clientWidth,u?u.scrollWidth:0,u?u.clientWidth:0),h=qt(r.scrollHeight,r.clientHeight,u?u.scrollHeight:0,u?u.clientHeight:0),d=-a.scrollLeft+Mo(t),p=-a.scrollTop;return kt(u||r).direction==="rtl"&&(d+=qt(r.clientWidth,u?u.clientWidth:0)-c),{width:c,height:h,x:d,y:p}}function ko(t){var i=kt(t),r=i.overflow,a=i.overflowX,u=i.overflowY;return/auto|scroll|overlay|hidden/.test(r+u+a)}function _l(t){return["html","body","#document"].indexOf(St(t))>=0?t.ownerDocument.body:nt(t)&&ko(t)?t:_l(Hi(t))}function Vn(t,i){var r;i===void 0&&(i=[]);var a=_l(t),u=a===((r=t.ownerDocument)==null?void 0:r.body),c=qe(a),h=u?[c].concat(c.visualViewport||[],ko(a)?a:[]):a,d=i.concat(h);return u?d:d.concat(Vn(Hi(h)))}function Kr(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Up(t,i){var r=gn(t,!1,i==="fixed");return r.top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r}function fs(t,i,r){return i===cl?Kr(Fp(t,r)):Xt(i)?Up(i,r):Kr(Vp(Bt(t)))}function Hp(t){var i=Vn(Hi(t)),r=["absolute","fixed"].indexOf(kt(t).position)>=0,a=r&&nt(t)?ti(t):t;return Xt(a)?i.filter(function(u){return Xt(u)&&dl(u,a)&&St(u)!=="body"}):[]}function Yp(t,i,r,a){var u=i==="clippingParents"?Hp(t):[].concat(i),c=[].concat(u,[r]),h=c[0],d=c.reduce(function(p,b){var w=fs(t,b,a);return p.top=qt(w.top,p.top),p.right=zi(w.right,p.right),p.bottom=zi(w.bottom,p.bottom),p.left=qt(w.left,p.left),p},fs(t,h,a));return d.width=d.right-d.left,d.height=d.bottom-d.top,d.x=d.left,d.y=d.top,d}function gl(t){var i=t.reference,r=t.element,a=t.placement,u=a?Ot(a):null,c=a?yn(a):null,h=i.x+i.width/2-r.width/2,d=i.y+i.height/2-r.height/2,p;switch(u){case Ze:p={x:h,y:i.y-r.height};break;case it:p={x:h,y:i.y+i.height};break;case rt:p={x:i.x+i.width,y:d};break;case Fe:p={x:i.x-r.width,y:d};break;default:p={x:i.x,y:i.y}}var b=u?Co(u):null;if(b!=null){var w=b==="y"?"height":"width";switch(c){case vn:p[b]=p[b]-(i[w]/2-r[w]/2);break;case Un:p[b]=p[b]+(i[w]/2-r[w]/2);break}}return p}function Hn(t,i){i===void 0&&(i={});var r=i,a=r.placement,u=a===void 0?t.placement:a,c=r.strategy,h=c===void 0?t.strategy:c,d=r.boundary,p=d===void 0?dp:d,b=r.rootBoundary,w=b===void 0?cl:b,x=r.elementContext,g=x===void 0?zn:x,v=r.altBoundary,_=v===void 0?!1:v,m=r.padding,O=m===void 0?0:m,k=ml(typeof O!="number"?O:vl(O,ei)),N=g===zn?pp:zn,C=t.rects.popper,D=t.elements[_?N:g],R=Yp(Xt(D)?D:D.contextElement||Bt(t.elements.popper),p,w,h),I=gn(t.elements.reference),$=gl({reference:I,element:C,strategy:"absolute",placement:u}),oe=Kr(Object.assign({},C,$)),te=g===zn?oe:I,le={top:R.top-te.top+k.top,bottom:te.bottom-R.bottom+k.bottom,left:R.left-te.left+k.left,right:te.right-R.right+k.right},ne=t.modifiersData.offset;if(g===zn&&ne){var Q=ne[u];Object.keys(le).forEach(function(se){var H=[rt,it].indexOf(se)>=0?1:-1,ge=[Ze,it].indexOf(se)>=0?"y":"x";le[se]+=Q[ge]*H})}return le}function qp(t,i){i===void 0&&(i={});var r=i,a=r.placement,u=r.boundary,c=r.rootBoundary,h=r.padding,d=r.flipVariations,p=r.allowedAutoPlacements,b=p===void 0?fl:p,w=yn(a),x=w?d?ss:ss.filter(function(_){return yn(_)===w}):ei,g=x.filter(function(_){return b.indexOf(_)>=0});g.length===0&&(g=x);var v=g.reduce(function(_,m){return _[m]=Hn(t,{placement:m,boundary:u,rootBoundary:c,padding:h})[Ot(m)],_},{});return Object.keys(v).sort(function(_,m){return v[_]-v[m]})}function Gp(t){if(Ot(t)===To)return[];var i=Ri(t);return[cs(t),i,cs(i)]}function Kp(t){var i=t.state,r=t.options,a=t.name;if(!i.modifiersData[a]._skip){for(var u=r.mainAxis,c=u===void 0?!0:u,h=r.altAxis,d=h===void 0?!0:h,p=r.fallbackPlacements,b=r.padding,w=r.boundary,x=r.rootBoundary,g=r.altBoundary,v=r.flipVariations,_=v===void 0?!0:v,m=r.allowedAutoPlacements,O=i.options.placement,k=Ot(O),N=k===O,C=p||(N||!_?[Ri(O)]:Gp(O)),D=[O].concat(C).reduce(function(de,X){return de.concat(Ot(X)===To?qp(i,{placement:X,boundary:w,rootBoundary:x,padding:b,flipVariations:_,allowedAutoPlacements:m}):X)},[]),R=i.rects.reference,I=i.rects.popper,$=new Map,oe=!0,te=D[0],le=0;le<D.length;le++){var ne=D[le],Q=Ot(ne),se=yn(ne)===vn,H=[Ze,it].indexOf(Q)>=0,ge=H?"width":"height",V=Hn(i,{placement:ne,boundary:w,rootBoundary:x,altBoundary:g,padding:b}),_e=H?se?rt:Fe:se?it:Ze;R[ge]>I[ge]&&(_e=Ri(_e));var Z=Ri(_e),ve=[];if(c&&ve.push(V[Q]<=0),d&&ve.push(V[_e]<=0,V[Z]<=0),ve.every(function(de){return de})){te=ne,oe=!1;break}$.set(ne,ve)}if(oe)for(var W=_?3:1,J=function(X){var G=D.find(function(Ce){var Te=$.get(Ce);if(Te)return Te.slice(0,X).every(function(at){return at})});if(G)return te=G,"break"},ce=W;ce>0;ce--){var ye=J(ce);if(ye==="break")break}i.placement!==te&&(i.modifiersData[a]._skip=!0,i.placement=te,i.reset=!0)}}const Xp={name:"flip",enabled:!0,phase:"main",fn:Kp,requiresIfExists:["offset"],data:{_skip:!1}};function hs(t,i,r){return r===void 0&&(r={x:0,y:0}),{top:t.top-i.height-r.y,right:t.right-i.width+r.x,bottom:t.bottom-i.height+r.y,left:t.left-i.width-r.x}}function ds(t){return[Ze,rt,it,Fe].some(function(i){return t[i]>=0})}function Jp(t){var i=t.state,r=t.name,a=i.rects.reference,u=i.rects.popper,c=i.modifiersData.preventOverflow,h=Hn(i,{elementContext:"reference"}),d=Hn(i,{altBoundary:!0}),p=hs(h,a),b=hs(d,u,c),w=ds(p),x=ds(b);i.modifiersData[r]={referenceClippingOffsets:p,popperEscapeOffsets:b,isReferenceHidden:w,hasPopperEscaped:x},i.attributes.popper=Object.assign({},i.attributes.popper,{"data-popper-reference-hidden":w,"data-popper-escaped":x})}const Qp={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Jp};function em(t,i,r){var a=Ot(t),u=[Fe,Ze].indexOf(a)>=0?-1:1,c=typeof r=="function"?r(Object.assign({},i,{placement:t})):r,h=c[0],d=c[1];return h=h||0,d=(d||0)*u,[Fe,rt].indexOf(a)>=0?{x:d,y:h}:{x:h,y:d}}function tm(t){var i=t.state,r=t.options,a=t.name,u=r.offset,c=u===void 0?[0,0]:u,h=fl.reduce(function(w,x){return w[x]=em(x,i.rects,c),w},{}),d=h[i.placement],p=d.x,b=d.y;i.modifiersData.popperOffsets!=null&&(i.modifiersData.popperOffsets.x+=p,i.modifiersData.popperOffsets.y+=b),i.modifiersData[a]=h}const nm={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:tm};function im(t){var i=t.state,r=t.name;i.modifiersData[r]=gl({reference:i.rects.reference,element:i.rects.popper,strategy:"absolute",placement:i.placement})}const rm={name:"popperOffsets",enabled:!0,phase:"read",fn:im,data:{}};function om(t){return t==="x"?"y":"x"}function am(t){var i=t.state,r=t.options,a=t.name,u=r.mainAxis,c=u===void 0?!0:u,h=r.altAxis,d=h===void 0?!1:h,p=r.boundary,b=r.rootBoundary,w=r.altBoundary,x=r.padding,g=r.tether,v=g===void 0?!0:g,_=r.tetherOffset,m=_===void 0?0:_,O=Hn(i,{boundary:p,rootBoundary:b,padding:x,altBoundary:w}),k=Ot(i.placement),N=yn(i.placement),C=!N,D=Co(k),R=om(D),I=i.modifiersData.popperOffsets,$=i.rects.reference,oe=i.rects.popper,te=typeof m=="function"?m(Object.assign({},i.rects,{placement:i.placement})):m,le=typeof te=="number"?{mainAxis:te,altAxis:te}:Object.assign({mainAxis:0,altAxis:0},te),ne=i.modifiersData.offset?i.modifiersData.offset[i.placement]:null,Q={x:0,y:0};if(I){if(c){var se,H=D==="y"?Ze:Fe,ge=D==="y"?it:rt,V=D==="y"?"height":"width",_e=I[D],Z=_e+O[H],ve=_e-O[ge],W=v?-oe[V]/2:0,J=N===vn?$[V]:oe[V],ce=N===vn?-oe[V]:-$[V],ye=i.elements.arrow,de=v&&ye?Eo(ye):{width:0,height:0},X=i.modifiersData["arrow#persistent"]?i.modifiersData["arrow#persistent"].padding:pl(),G=X[H],Ce=X[ge],Te=Fn(0,$[V],de[V]),at=C?$[V]/2-W-Te-G-le.mainAxis:J-Te-G-le.mainAxis,ht=C?-$[V]/2+W+Te+Ce+le.mainAxis:ce+Te+Ce+le.mainAxis,st=i.elements.arrow&&ti(i.elements.arrow),Be=st?D==="y"?st.clientTop||0:st.clientLeft||0:0,ut=(se=ne==null?void 0:ne[D])!=null?se:0,be=_e+at-ut-Be,Tt=_e+ht-ut,Lt=Fn(v?zi(Z,be):Z,_e,v?qt(ve,Tt):ve);I[D]=Lt,Q[D]=Lt-_e}if(d){var Xe,dt=D==="x"?Ze:Fe,Sn=D==="x"?it:rt,Ue=I[R],lt=R==="y"?"height":"width",Ae=Ue+O[dt],Je=Ue-O[Sn],pt=[Ze,Fe].indexOf(k)!==-1,ie=(Xe=ne==null?void 0:ne[R])!=null?Xe:0,ue=pt?Ae:Ue-$[lt]-oe[lt]-ie+le.altAxis,Y=pt?Ue+$[lt]+oe[lt]-ie-le.altAxis:Je,pe=v&&pt?Dp(ue,Ue,Y):Fn(v?ue:Ae,Ue,v?Y:Je);I[R]=pe,Q[R]=pe-Ue}i.modifiersData[a]=Q}}const sm={name:"preventOverflow",enabled:!0,phase:"main",fn:am,requiresIfExists:["offset"]};function um(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function lm(t){return t===qe(t)||!nt(t)?Do(t):um(t)}function cm(t){var i=t.getBoundingClientRect(),r=_n(i.width)/t.offsetWidth||1,a=_n(i.height)/t.offsetHeight||1;return r!==1||a!==1}function fm(t,i,r){r===void 0&&(r=!1);var a=nt(i),u=nt(i)&&cm(i),c=Bt(i),h=gn(t,u,r),d={scrollLeft:0,scrollTop:0},p={x:0,y:0};return(a||!a&&!r)&&((St(i)!=="body"||ko(c))&&(d=lm(i)),nt(i)?(p=gn(i,!0),p.x+=i.clientLeft,p.y+=i.clientTop):c&&(p.x=Mo(c))),{x:h.left+d.scrollLeft-p.x,y:h.top+d.scrollTop-p.y,width:h.width,height:h.height}}function hm(t){var i=new Map,r=new Set,a=[];t.forEach(function(c){i.set(c.name,c)});function u(c){r.add(c.name);var h=[].concat(c.requires||[],c.requiresIfExists||[]);h.forEach(function(d){if(!r.has(d)){var p=i.get(d);p&&u(p)}}),a.push(c)}return t.forEach(function(c){r.has(c.name)||u(c)}),a}function dm(t){var i=hm(t);return Pp.reduce(function(r,a){return r.concat(i.filter(function(u){return u.phase===a}))},[])}function pm(t){var i;return function(){return i||(i=new Promise(function(r){Promise.resolve().then(function(){i=void 0,r(t())})})),i}}function mm(t){var i=t.reduce(function(r,a){var u=r[a.name];return r[a.name]=u?Object.assign({},u,a,{options:Object.assign({},u.options,a.options),data:Object.assign({},u.data,a.data)}):a,r},{});return Object.keys(i).map(function(r){return i[r]})}var ps={placement:"bottom",modifiers:[],strategy:"absolute"};function ms(){for(var t=arguments.length,i=new Array(t),r=0;r<t;r++)i[r]=arguments[r];return!i.some(function(a){return!(a&&typeof a.getBoundingClientRect=="function")})}function vm(t){t===void 0&&(t={});var i=t,r=i.defaultModifiers,a=r===void 0?[]:r,u=i.defaultOptions,c=u===void 0?ps:u;return function(d,p,b){b===void 0&&(b=c);var w={placement:"bottom",orderedModifiers:[],options:Object.assign({},ps,c),modifiersData:{},elements:{reference:d,popper:p},attributes:{},styles:{}},x=[],g=!1,v={state:w,setOptions:function(k){var N=typeof k=="function"?k(w.options):k;m(),w.options=Object.assign({},c,w.options,N),w.scrollParents={reference:Xt(d)?Vn(d):d.contextElement?Vn(d.contextElement):[],popper:Vn(p)};var C=dm(mm([].concat(a,w.options.modifiers)));return w.orderedModifiers=C.filter(function(D){return D.enabled}),_(),v.update()},forceUpdate:function(){if(!g){var k=w.elements,N=k.reference,C=k.popper;if(ms(N,C)){w.rects={reference:fm(N,ti(C),w.options.strategy==="fixed"),popper:Eo(C)},w.reset=!1,w.placement=w.options.placement,w.orderedModifiers.forEach(function(le){return w.modifiersData[le.name]=Object.assign({},le.data)});for(var D=0;D<w.orderedModifiers.length;D++){if(w.reset===!0){w.reset=!1,D=-1;continue}var R=w.orderedModifiers[D],I=R.fn,$=R.options,oe=$===void 0?{}:$,te=R.name;typeof I=="function"&&(w=I({state:w,options:oe,name:te,instance:v})||w)}}}},update:pm(function(){return new Promise(function(O){v.forceUpdate(),O(w)})}),destroy:function(){m(),g=!0}};if(!ms(d,p))return v;v.setOptions(b).then(function(O){!g&&b.onFirstUpdate&&b.onFirstUpdate(O)});function _(){w.orderedModifiers.forEach(function(O){var k=O.name,N=O.options,C=N===void 0?{}:N,D=O.effect;if(typeof D=="function"){var R=D({state:w,name:k,instance:v,options:C}),I=function(){};x.push(R||I)}})}function m(){x.forEach(function(O){return O()}),x=[]}return v}}var _m=[zp,rm,$p,Lp,nm,Xp,sm,Ip,Qp],gm=vm({defaultModifiers:_m}),ym=typeof Element<"u",bm=typeof Map=="function",wm=typeof Set=="function",xm=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function ji(t,i){if(t===i)return!0;if(t&&i&&typeof t=="object"&&typeof i=="object"){if(t.constructor!==i.constructor)return!1;var r,a,u;if(Array.isArray(t)){if(r=t.length,r!=i.length)return!1;for(a=r;a--!==0;)if(!ji(t[a],i[a]))return!1;return!0}var c;if(bm&&t instanceof Map&&i instanceof Map){if(t.size!==i.size)return!1;for(c=t.entries();!(a=c.next()).done;)if(!i.has(a.value[0]))return!1;for(c=t.entries();!(a=c.next()).done;)if(!ji(a.value[1],i.get(a.value[0])))return!1;return!0}if(wm&&t instanceof Set&&i instanceof Set){if(t.size!==i.size)return!1;for(c=t.entries();!(a=c.next()).done;)if(!i.has(a.value[0]))return!1;return!0}if(xm&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(i)){if(r=t.length,r!=i.length)return!1;for(a=r;a--!==0;)if(t[a]!==i[a])return!1;return!0}if(t.constructor===RegExp)return t.source===i.source&&t.flags===i.flags;if(t.valueOf!==Object.prototype.valueOf&&typeof t.valueOf=="function"&&typeof i.valueOf=="function")return t.valueOf()===i.valueOf();if(t.toString!==Object.prototype.toString&&typeof t.toString=="function"&&typeof i.toString=="function")return t.toString()===i.toString();if(u=Object.keys(t),r=u.length,r!==Object.keys(i).length)return!1;for(a=r;a--!==0;)if(!Object.prototype.hasOwnProperty.call(i,u[a]))return!1;if(ym&&t instanceof Element)return!1;for(a=r;a--!==0;)if(!((u[a]==="_owner"||u[a]==="__v"||u[a]==="__o")&&t.$$typeof)&&!ji(t[u[a]],i[u[a]]))return!1;return!0}return t!==t&&i!==i}var Om=function(i,r){try{return ji(i,r)}catch(a){if((a.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw a}};const Pm=Vi(Om);var Sm=[],Tm=function(i,r,a){a===void 0&&(a={});var u=T.useRef(null),c={onFirstUpdate:a.onFirstUpdate,placement:a.placement||"bottom",strategy:a.strategy||"absolute",modifiers:a.modifiers||Sm},h=T.useState({styles:{popper:{position:c.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),d=h[0],p=h[1],b=T.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(v){var _=v.state,m=Object.keys(_.elements);wo.flushSync(function(){p({styles:os(m.map(function(O){return[O,_.styles[O]||{}]})),attributes:os(m.map(function(O){return[O,_.attributes[O]]}))})})},requires:["computeStyles"]}},[]),w=T.useMemo(function(){var g={onFirstUpdate:c.onFirstUpdate,placement:c.placement,strategy:c.strategy,modifiers:[].concat(c.modifiers,[b,{name:"applyStyles",enabled:!1}])};return Pm(u.current,g)?u.current||g:(u.current=g,g)},[c.onFirstUpdate,c.placement,c.strategy,c.modifiers,b]),x=T.useRef();return as(function(){x.current&&x.current.setOptions(w)},[w]),as(function(){if(!(i==null||r==null)){var g=a.createPopper||gm,v=g(i,r,w);return x.current=v,function(){v.destroy(),x.current=null}}},[i,r,a.createPopper]),{state:x.current?x.current.state:null,styles:d.styles,attributes:d.attributes,update:x.current?x.current.update:null,forceUpdate:x.current?x.current.forceUpdate:null}},yl={exports:{}},Lm="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Em=Lm,Cm=Em;function bl(){}function wl(){}wl.resetWarningCache=bl;var Dm=function(){function t(a,u,c,h,d,p){if(p!==Cm){var b=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 b.name="Invariant Violation",b}}t.isRequired=t;function i(){return t}var r={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:i,element:t,elementType:t,instanceOf:i,node:t,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:wl,resetWarningCache:bl};return r.PropTypes=r,r};yl.exports=Dm();var Mm=yl.exports;const S=Vi(Mm);function Yi(){return Array.prototype.slice.call(arguments).reduce(function(t,i){return t.concat(i)},[]).filter(function(t){return typeof t=="string"}).join(" ")}var km="Expected a function",xl="__lodash_hash_undefined__",Am="[object Function]",Im="[object GeneratorFunction]",Nm=/[\\^$.*+?()[\]{}|]/g,Rm=/^\[object .+?Constructor\]$/,jm=typeof globalThis=="object"&&globalThis&&globalThis.Object===Object&&globalThis,$m=typeof self=="object"&&self&&self.Object===Object&&self,Ol=jm||$m||Function("return this")();function Bm(t,i){return t==null?void 0:t[i]}function zm(t){var i=!1;if(t!=null&&typeof t.toString!="function")try{i=!!(t+"")}catch{}return i}var Wm=Array.prototype,Zm=Function.prototype,Pl=Object.prototype,Nr=Ol["__core-js_shared__"],vs=function(){var t=/[^.]+$/.exec(Nr&&Nr.keys&&Nr.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Sl=Zm.toString,Ao=Pl.hasOwnProperty,Fm=Pl.toString,Vm=RegExp("^"+Sl.call(Ao).replace(Nm,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Um=Wm.splice,Hm=Tl(Ol,"Map"),Yn=Tl(Object,"create");function Jt(t){var i=-1,r=t?t.length:0;for(this.clear();++i<r;){var a=t[i];this.set(a[0],a[1])}}function Ym(){this.__data__=Yn?Yn(null):{}}function qm(t){return this.has(t)&&delete this.__data__[t]}function Gm(t){var i=this.__data__;if(Yn){var r=i[t];return r===xl?void 0:r}return Ao.call(i,t)?i[t]:void 0}function Km(t){var i=this.__data__;return Yn?i[t]!==void 0:Ao.call(i,t)}function Xm(t,i){var r=this.__data__;return r[t]=Yn&&i===void 0?xl:i,this}Jt.prototype.clear=Ym;Jt.prototype.delete=qm;Jt.prototype.get=Gm;Jt.prototype.has=Km;Jt.prototype.set=Xm;function On(t){var i=-1,r=t?t.length:0;for(this.clear();++i<r;){var a=t[i];this.set(a[0],a[1])}}function Jm(){this.__data__=[]}function Qm(t){var i=this.__data__,r=qi(i,t);if(r<0)return!1;var a=i.length-1;return r==a?i.pop():Um.call(i,r,1),!0}function ev(t){var i=this.__data__,r=qi(i,t);return r<0?void 0:i[r][1]}function tv(t){return qi(this.__data__,t)>-1}function nv(t,i){var r=this.__data__,a=qi(r,t);return a<0?r.push([t,i]):r[a][1]=i,this}On.prototype.clear=Jm;On.prototype.delete=Qm;On.prototype.get=ev;On.prototype.has=tv;On.prototype.set=nv;function Qt(t){var i=-1,r=t?t.length:0;for(this.clear();++i<r;){var a=t[i];this.set(a[0],a[1])}}function iv(){this.__data__={hash:new Jt,map:new(Hm||On),string:new Jt}}function rv(t){return Gi(this,t).delete(t)}function ov(t){return Gi(this,t).get(t)}function av(t){return Gi(this,t).has(t)}function sv(t,i){return Gi(this,t).set(t,i),this}Qt.prototype.clear=iv;Qt.prototype.delete=rv;Qt.prototype.get=ov;Qt.prototype.has=av;Qt.prototype.set=sv;function qi(t,i){for(var r=t.length;r--;)if(hv(t[r][0],i))return r;return-1}function uv(t){if(!Ll(t)||cv(t))return!1;var i=dv(t)||zm(t)?Vm:Rm;return i.test(fv(t))}function Gi(t,i){var r=t.__data__;return lv(i)?r[typeof i=="string"?"string":"hash"]:r.map}function Tl(t,i){var r=Bm(t,i);return uv(r)?r:void 0}function lv(t){var i=typeof t;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?t!=="__proto__":t===null}function cv(t){return!!vs&&vs in t}function fv(t){if(t!=null){try{return Sl.call(t)}catch{}try{return t+""}catch{}}return""}function Io(t,i){if(typeof t!="function"||i&&typeof i!="function")throw new TypeError(km);var r=function(){var a=arguments,u=i?i.apply(this,a):a[0],c=r.cache;if(c.has(u))return c.get(u);var h=t.apply(this,a);return r.cache=c.set(u,h),h};return r.cache=new(Io.Cache||Qt),r}Io.Cache=Qt;function hv(t,i){return t===i||t!==t&&i!==i}function dv(t){var i=Ll(t)?Fm.call(t):"";return i==Am||i==Im}function Ll(t){var i=typeof t;return!!t&&(i=="object"||i=="function")}var pv=Io;const El=Vi(pv);function Cl(t){return JSON.stringify(t)}function mv(t){return t.filter(function(i,r){return i&&t.indexOf(i)===r})}function vv(t){return t.map(function(i){if(!i||i.indexOf("-")===-1||i.toLowerCase()!==i)return i;var r=i.split("-");return r[0]+"-"+r[1].toUpperCase()})}function _v(t){var i=t===void 0?{}:t,r=i.useFallbackLocale,a=r===void 0?!0:r,u=i.fallbackLocale,c=u===void 0?"en-US":u,h=[];if(typeof window<"u"){var d=window,p=d.navigator;h=h.concat(p.languages,p.language,p.userLanguage,p.browserLanguage,p.systemLanguage)}return a&&h.push(c),vv(mv(h))}var gv=El(_v,Cl);function yv(t){return gv(t)[0]||null}var Dl=El(yv,Cl);function At(t,i,r){return function(u,c){c===void 0&&(c=r);var h=t(u)+c;return i(h)}}function ni(t){return function(r){return new Date(t(r).getTime()-1)}}function ii(t,i){return function(a){return[t(a),i(a)]}}function Oe(t){if(t instanceof Date)return t.getFullYear();if(typeof t=="number")return t;var i=parseInt(t,10);if(typeof t=="string"&&!isNaN(i))return i;throw new Error("Failed to get year from date: ".concat(t,"."))}function zt(t){if(t instanceof Date)return t.getMonth();throw new Error("Failed to get month from date: ".concat(t,"."))}function Ki(t){if(t instanceof Date)return t.getDate();throw new Error("Failed to get year from date: ".concat(t,"."))}function ri(t){var i=Oe(t),r=i+(-i+1)%100,a=new Date;return a.setFullYear(r,0,1),a.setHours(0,0,0,0),a}var bv=At(Oe,ri,-100),Ml=At(Oe,ri,100),No=ni(Ml),wv=At(Oe,No,-100),kl=ii(ri,No);function en(t){var i=Oe(t),r=i+(-i+1)%10,a=new Date;return a.setFullYear(r,0,1),a.setHours(0,0,0,0),a}var Al=At(Oe,en,-10),Ro=At(Oe,en,10),Xi=ni(Ro),Il=At(Oe,Xi,-10),Nl=ii(en,Xi);function oi(t){var i=Oe(t),r=new Date;return r.setFullYear(i,0,1),r.setHours(0,0,0,0),r}var Rl=At(Oe,oi,-1),jo=At(Oe,oi,1),Ji=ni(jo),jl=At(Oe,Ji,-1),xv=ii(oi,Ji);function $o(t,i){return function(a,u){u===void 0&&(u=i);var c=Oe(a),h=zt(a)+u,d=new Date;return d.setFullYear(c,h,1),d.setHours(0,0,0,0),t(d)}}function Pn(t){var i=Oe(t),r=zt(t),a=new Date;return a.setFullYear(i,r,1),a.setHours(0,0,0,0),a}var $l=$o(Pn,-1),Bo=$o(Pn,1),ai=ni(Bo),Bl=$o(ai,-1),Ov=ii(Pn,ai);function Pv(t,i){return function(a,u){u===void 0&&(u=i);var c=Oe(a),h=zt(a),d=Ki(a)+u,p=new Date;return p.setFullYear(c,h,d),p.setHours(0,0,0,0),t(p)}}function Qi(t){var i=Oe(t),r=zt(t),a=Ki(t),u=new Date;return u.setFullYear(i,r,a),u.setHours(0,0,0,0),u}var Sv=Pv(Qi,1),zo=ni(Sv),Tv=ii(Qi,zo);function zl(t){return Ki(ai(t))}var Wn;function Lv(t){return Mv(t)||Dv(t)||Cv(t)||Ev()}function Ev(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Cv(t,i){if(t){if(typeof t=="string")return Xr(t,i);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Xr(t,i)}}function Dv(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Mv(t){if(Array.isArray(t))return Xr(t)}function Xr(t,i){(i==null||i>t.length)&&(i=t.length);for(var r=0,a=new Array(i);r<i;r++)a[r]=t[r];return a}function Rr(t,i,r){return i in t?Object.defineProperty(t,i,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[i]=r,t}var Ee={ARABIC:"Arabic",HEBREW:"Hebrew",ISO_8601:"ISO 8601",US:"US"},_s=(Wn={},Rr(Wn,Ee.US,["en-CA","en-US","es-AR","es-BO","es-CL","es-CO","es-CR","es-DO","es-EC","es-GT","es-HN","es-MX","es-NI","es-PA","es-PE","es-PR","es-SV","es-VE","pt-BR"]),Rr(Wn,Ee.ARABIC,["ar","ar-AE","ar-BH","ar-DZ","ar-EG","ar-IQ","ar-JO","ar-KW","ar-LY","ar-OM","ar-QA","ar-SA","ar-SD","ar-SY","ar-YE","dv","dv-MV","ps","ps-AR"]),Rr(Wn,Ee.HEBREW,["he","he-IL"]),Wn),Wo=Lv(Array(7)).map(function(t,i){return i}),jr=new Map;function kv(t){return function(i,r){var a=i||Dl();jr.has(a)||jr.set(a,new Map);var u=jr.get(a);return u.has(t)||u.set(t,new Intl.DateTimeFormat(a,t).format),u.get(t)(r)}}function Av(t){var i=new Date(t);return new Date(i.setHours(12))}function tn(t){return function(i,r){return kv(t)(i,Av(r))}}var Iv={day:"numeric"},Nv={day:"numeric",month:"long",year:"numeric"},Rv={month:"long"},jv={month:"long",year:"numeric"},$v={weekday:"short"},Bv={weekday:"long"},zv={year:"numeric"},Wv=tn(Iv),Zv=tn(Nv),Fv=tn(Rv),Wl=tn(jv),Vv=tn($v),Uv=tn(Bv),er=tn(zv),Hv=Wo[0],Yv=Wo[5],gs=Wo[6];function qn(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ee.ISO_8601,r=t.getDay();switch(i){case Ee.ISO_8601:return(r+6)%7;case Ee.ARABIC:return(r+1)%7;case Ee.HEBREW:case Ee.US:return r;default:throw new Error("Unsupported calendar type.")}}function qv(t){var i=ri(t);return Oe(i)}function Gv(t){var i=en(t);return Oe(i)}function Jr(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ee.ISO_8601,r=Oe(t),a=zt(t),u=t.getDate()-qn(t,i);return new Date(r,a,u)}function Kv(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ee.ISO_8601,r=i===Ee.US?Ee.US:Ee.ISO_8601,a=Jr(t,i),u=Oe(t)+1,c,h;do c=new Date(u,0,r===Ee.ISO_8601?4:1),h=Jr(c,i),u-=1;while(t<h);return Math.round((a-h)/(864e5*7))+1}function Gt(t,i){switch(t){case"century":return ri(i);case"decade":return en(i);case"year":return oi(i);case"month":return Pn(i);case"day":return Qi(i);default:throw new Error("Invalid rangeType: ".concat(t))}}function Xv(t,i){switch(t){case"century":return bv(i);case"decade":return Al(i);case"year":return Rl(i);case"month":return $l(i);default:throw new Error("Invalid rangeType: ".concat(t))}}function Zl(t,i){switch(t){case"century":return Ml(i);case"decade":return Ro(i);case"year":return jo(i);case"month":return Bo(i);default:throw new Error("Invalid rangeType: ".concat(t))}}var Jv=function(i,r){switch(i){case"decade":return Al(r,-100);case"year":return Rl(r,-10);case"month":return $l(r,-12);default:throw new Error("Invalid rangeType: ".concat(i))}},Qv=function(i,r){switch(i){case"decade":return Ro(r,100);case"year":return jo(r,10);case"month":return Bo(r,12);default:throw new Error("Invalid rangeType: ".concat(i))}};function Fl(t,i){switch(t){case"century":return No(i);case"decade":return Xi(i);case"year":return Ji(i);case"month":return ai(i);case"day":return zo(i);default:throw new Error("Invalid rangeType: ".concat(t))}}function e_(t,i){switch(t){case"century":return wv(i);case"decade":return Il(i);case"year":return jl(i);case"month":return Bl(i);default:throw new Error("Invalid rangeType: ".concat(t))}}var t_=function(i,r){switch(i){case"decade":return Il(r,-100);case"year":return jl(r,-10);case"month":return Bl(r,-12);default:throw new Error("Invalid rangeType: ".concat(i))}};function ys(t,i){switch(t){case"century":return kl(i);case"decade":return Nl(i);case"year":return xv(i);case"month":return Ov(i);case"day":return Tv(i);default:throw new Error("Invalid rangeType: ".concat(t))}}function n_(t,i,r){var a=[i,r].sort(function(u,c){return u-c});return[Gt(t,a[0]),Fl(t,a[1])]}function Vl(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:er,r=arguments.length>2?arguments[2]:void 0;return r.map(function(a){return i(t,a)}).join(" – ")}function i_(t,i,r){return Vl(t,i,kl(r))}function Ul(t,i,r){return Vl(t,i,Nl(r))}function Hl(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ee.ISO_8601,r=t.getDay();switch(i){case Ee.ARABIC:case Ee.HEBREW:return r===Yv||r===gs;case Ee.ISO_8601:case Ee.US:return r===gs||r===Hv;default:throw new Error("Unsupported calendar type.")}}function bn(t){"@babel/helpers - typeof";return bn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},bn(t)}var r_=Object.values(Ee),Yl=["century","decade","year","month"],si=S.oneOf(r_),Wi=S.oneOfType([S.string,S.arrayOf(S.string)]),Zo=function(i,r,a){var u=i[r];if(!u)return null;if(!(u instanceof Date))return new Error("Invalid prop `".concat(r,"` of type `").concat(bn(u),"` supplied to `").concat(a,"`, expected instance of `Date`."));var c=i.maxDate;return c&&u>c?new Error("Invalid prop `".concat(r,"` of type `").concat(bn(u),"` supplied to `").concat(a,"`, minDate cannot be larger than maxDate.")):null},Fo=function(i,r,a){var u=i[r];if(!u)return null;if(!(u instanceof Date))return new Error("Invalid prop `".concat(r,"` of type `").concat(bn(u),"` supplied to `").concat(a,"`, expected instance of `Date`."));var c=i.minDate;return c&&u<c?new Error("Invalid prop `".concat(r,"` of type `").concat(bn(u),"` supplied to `").concat(a,"`, maxDate cannot be smaller than minDate.")):null},o_=S.oneOfType([S.func,S.shape({current:S.any})]),ql=S.oneOfType([S.instanceOf(Date),S.arrayOf(S.instanceOf(Date))]),a_=S.arrayOf(S.oneOf(Yl)),Gn=function(i,r,a){var u=i[r],c=i.views,h=c||Yl;return u!==void 0&&h.indexOf(u)===-1?new Error("Invalid prop `".concat(r,"` of value `").concat(u,"` supplied to `").concat(a,"`, expected one of [").concat(h.map(function(d){return'"'.concat(d,'"')}).join(", "),"].")):null};Gn.isRequired=function(t,i,r){var a=t[i];return a?Gn(t,i,r):new Error("The prop `".concat(i,"` is marked as required in `").concat(r,"`, but its value is `").concat(a,"`."))};var ui={activeStartDate:S.instanceOf(Date).isRequired,hover:S.instanceOf(Date),locale:S.string,maxDate:Fo,minDate:Zo,onClick:S.func,onMouseOver:S.func,tileClassName:S.oneOfType([S.func,Wi]),tileContent:S.oneOfType([S.func,S.node]),value:ql,valueType:S.string},li={activeStartDate:S.instanceOf(Date).isRequired,classes:S.arrayOf(S.string).isRequired,date:S.instanceOf(Date).isRequired,locale:S.string,maxDate:Fo,minDate:Zo,onClick:S.func,onMouseOver:S.func,style:S.objectOf(S.oneOfType([S.string,S.number])),tileClassName:S.oneOfType([S.func,Wi]),tileContent:S.oneOfType([S.func,S.node]),tileDisabled:S.func},bt="react-calendar__navigation";function Gl(t){var i=t.activeStartDate,r=t.drillUp,a=t.formatMonthYear,u=a===void 0?Wl:a,c=t.formatYear,h=c===void 0?er:c,d=t.locale,p=t.maxDate,b=t.minDate,w=t.navigationAriaLabel,x=w===void 0?"":w,g=t.navigationAriaLive,v=t.navigationLabel,_=t.next2AriaLabel,m=_===void 0?"":_,O=t.next2Label,k=O===void 0?"»":O,N=t.nextAriaLabel,C=N===void 0?"":N,D=t.nextLabel,R=D===void 0?"›":D,I=t.prev2AriaLabel,$=I===void 0?"":I,oe=t.prev2Label,te=oe===void 0?"«":oe,le=t.prevAriaLabel,ne=le===void 0?"":le,Q=t.prevLabel,se=Q===void 0?"‹":Q,H=t.setActiveStartDate,ge=t.showDoubleView,V=t.view,_e=t.views,Z=_e.indexOf(V)>0,ve=V!=="century",W=Xv(V,i),J=ve&&Jv(V,i),ce=Zl(V,i),ye=ve&&Qv(V,i),de=function(){if(W.getFullYear()<0)return!0;var be=e_(V,i);return b&&b>=be}(),X=ve&&function(){if(J.getFullYear()<0)return!0;var be=t_(V,i);return b&&b>=be}(),G=p&&p<ce,Ce=ve&&p&&p<ye;function Te(){H(W,"prev")}function at(){H(J,"prev2")}function ht(){H(ce,"next")}function st(){H(ye,"next2")}function Be(be){var Tt=function(){switch(V){case"century":return i_(d,h,be);case"decade":return Ul(d,h,be);case"year":return h(d,be);case"month":return u(d,be);default:throw new Error("Invalid view: ".concat(V,"."))}}();return v?v({date:be,label:Tt,locale:d||Dl(),view:V}):Tt}function ut(){var be="".concat(bt,"__label");return B.createElement("button",{"aria-label":x,"aria-live":g,className:be,disabled:!Z,onClick:r,style:{flexGrow:1},type:"button"},B.createElement("span",{className:"".concat(be,"__labelText ").concat(be,"__labelText--from")},Be(i)),ge&&B.createElement(B.Fragment,null,B.createElement("span",{className:"".concat(be,"__divider")}," – "),B.createElement("span",{className:"".concat(be,"__labelText ").concat(be,"__labelText--to")},Be(ce))))}return B.createElement("div",{className:bt},te!==null&&ve&&B.createElement("button",{"aria-label":$,className:"".concat(bt,"__arrow ").concat(bt,"__prev2-button"),disabled:X,onClick:at,type:"button"},te),se!==null&&B.createElement("button",{"aria-label":ne,className:"".concat(bt,"__arrow ").concat(bt,"__prev-button"),disabled:de,onClick:Te,type:"button"},se),ut(),R!==null&&B.createElement("button",{"aria-label":C,className:"".concat(bt,"__arrow ").concat(bt,"__next-button"),disabled:G,onClick:ht,type:"button"},R),k!==null&&ve&&B.createElement("button",{"aria-label":m,className:"".concat(bt,"__arrow ").concat(bt,"__next2-button"),disabled:Ce,onClick:st,type:"button"},k))}Gl.propTypes={activeStartDate:S.instanceOf(Date).isRequired,drillUp:S.func.isRequired,formatMonthYear:S.func,formatYear:S.func,locale:S.string,maxDate:S.instanceOf(Date),minDate:S.instanceOf(Date),navigationAriaLabel:S.string,navigationAriaLive:S.string,navigationLabel:S.func,next2AriaLabel:S.string,next2Label:S.node,nextAriaLabel:S.string,nextLabel:S.node,prev2AriaLabel:S.string,prev2Label:S.node,prevAriaLabel:S.string,prevLabel:S.node,setActiveStartDate:S.func.isRequired,showDoubleView:S.bool,view:Gn.isRequired,views:a_.isRequired};var s_=["children","className","direction","count","offset","style","wrap"];function Qr(){return Qr=Object.assign?Object.assign.bind():function(t){for(var i=1;i<arguments.length;i++){var r=arguments[i];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},Qr.apply(this,arguments)}function bs(t,i){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);i&&(a=a.filter(function(u){return Object.getOwnPropertyDescriptor(t,u).enumerable})),r.push.apply(r,a)}return r}function $r(t){for(var i=1;i<arguments.length;i++){var r=arguments[i]!=null?arguments[i]:{};i%2?bs(Object(r),!0).forEach(function(a){u_(t,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):bs(Object(r)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(r,a))})}return t}function u_(t,i,r){return i in t?Object.defineProperty(t,i,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[i]=r,t}function l_(t,i){if(t==null)return{};var r=c_(t,i),a,u;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(t);for(u=0;u<c.length;u++)a=c[u],!(i.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(t,a)&&(r[a]=t[a])}return r}function c_(t,i){if(t==null)return{};var r={},a=Object.keys(t),u,c;for(c=0;c<a.length;c++)u=a[c],!(i.indexOf(u)>=0)&&(r[u]=t[u]);return r}function ws(t){return"".concat(t,"%")}function tr(t){var i=t.children,r=t.className,a=t.direction,u=t.count,c=t.offset,h=t.style,d=t.wrap,p=l_(t,s_);return B.createElement("div",Qr({className:r,style:$r({display:"flex",flexDirection:a,flexWrap:d?"wrap":"no-wrap"},h)},p),B.Children.map(i,function(b,w){return B.cloneElement(b,$r($r({},b.props),{},{style:{flexBasis:ws(100/u),flexShrink:0,flexGrow:0,overflow:"hidden",marginLeft:c&&w===0?ws(100*c/u):null}}))}))}tr.propTypes={children:S.node,className:S.string,count:S.number.isRequired,direction:S.string,offset:S.number,style:S.objectOf(S.oneOfType([S.string,S.number])),wrap:S.bool};function xs(t){return p_(t)||d_(t)||h_(t)||f_()}function f_(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function h_(t,i){if(t){if(typeof t=="string")return eo(t,i);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return eo(t,i)}}function d_(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function p_(t){if(Array.isArray(t))return eo(t)}function eo(t,i){(i==null||i>t.length)&&(i=t.length);for(var r=0,a=new Array(i);r<i;r++)a[r]=t[r];return a}function m_(t,i,r){return i&&i>t?i:r&&r<t?r:t}function Kn(t,i){return i[0]<=t&&i[1]>=t}function v_(t,i){return t[0]<=i[0]&&t[1]>=i[1]}function Kl(t,i){return Kn(t[0],i)||Kn(t[1],i)}function Os(t,i,r){var a=Kl(i,t),u=[];if(a){u.push(r);var c=Kn(t[0],i),h=Kn(t[1],i);c&&u.push("".concat(r,"Start")),h&&u.push("".concat(r,"End")),c&&h&&u.push("".concat(r,"BothEnds"))}return u}function __(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=t.value,r=t.valueType,a=t.date,u=t.dateType,c=t.hover,h="react-calendar__tile",d=[h];if(!a)return d;if(!Array.isArray(a)&&!u)throw new Error("getTileClasses(): Unable to get tile activity classes because one or more required arguments were not passed.");var p=new Date,b=Array.isArray(a)?a:ys(u,a);if(Kn(p,b)&&d.push("".concat(h,"--now")),!i)return d;if(!Array.isArray(i)&&!r)throw new Error("getTileClasses(): Unable to get tile activity classes because one or more required arguments were not passed.");var w=Array.isArray(i)?i:ys(r,i);v_(w,b)?d.push("".concat(h,"--active")):Kl(w,b)&&d.push("".concat(h,"--hasActive"));var x=Os(w,b,"".concat(h,"--range"));d.push.apply(d,xs(x));var g=[].concat(i);if(c&&g.length===1){var v=c>w[0]?[w[0],c]:[c,w[0]],_=Os(v,b,"".concat(h,"--hover"));d.push.apply(d,xs(_))}return d}var g_=["className","count","dateTransform","dateType","end","hover","offset","start","step","tile","value","valueType"];function Ps(t,i){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);i&&(a=a.filter(function(u){return Object.getOwnPropertyDescriptor(t,u).enumerable})),r.push.apply(r,a)}return r}function Ss(t){for(var i=1;i<arguments.length;i++){var r=arguments[i]!=null?arguments[i]:{};i%2?Ps(Object(r),!0).forEach(function(a){y_(t,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ps(Object(r)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(r,a))})}return t}function y_(t,i,r){return i in t?Object.defineProperty(t,i,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[i]=r,t}function to(){return to=Object.assign?Object.assign.bind():function(t){for(var i=1;i<arguments.length;i++){var r=arguments[i];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},to.apply(this,arguments)}function b_(t,i){if(t==null)return{};var r=w_(t,i),a,u;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(t);for(u=0;u<c.length;u++)a=c[u],!(i.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(t,a)&&(r[a]=t[a])}return r}function w_(t,i){if(t==null)return{};var r={},a=Object.keys(t),u,c;for(c=0;c<a.length;c++)u=a[c],!(i.indexOf(u)>=0)&&(r[u]=t[u]);return r}function ci(t){for(var i=t.className,r=t.count,a=r===void 0?3:r,u=t.dateTransform,c=t.dateType,h=t.end,d=t.hover,p=t.offset,b=t.start,w=t.step,x=w===void 0?1:w,g=t.tile,v=t.value,_=t.valueType,m=b_(t,g_),O=[],k=b;k<=h;k+=x){var N=u(k);O.push(B.createElement(g,to({key:N.getTime(),classes:__({value:v,valueType:_,date:N,dateType:c,hover:d}),date:N,point:k},m)))}return B.createElement(tr,{className:i,count:a,offset:p,wrap:!0},O)}ci.propTypes=Ss(Ss({},ui),{},{activeStartDate:S.instanceOf(Date),count:S.number,dateTransform:S.func.isRequired,dateType:S.string,offset:S.number,step:S.number,tile:S.func.isRequired});function no(t){"@babel/helpers - typeof";return no=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},no(t)}function Ts(t,i){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);i&&(a=a.filter(function(u){return Object.getOwnPropertyDescriptor(t,u).enumerable})),r.push.apply(r,a)}return r}function Ls(t){for(var i=1;i<arguments.length;i++){var r=arguments[i]!=null?arguments[i]:{};i%2?Ts(Object(r),!0).forEach(function(a){Jl(t,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ts(Object(r)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(r,a))})}return t}function x_(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}function Es(t,i){for(var r=0;r<i.length;r++){var a=i[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function O_(t,i,r){return i&&Es(t.prototype,i),r&&Es(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function P_(t,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(i&&i.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),i&&io(t,i)}function io(t,i){return io=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,u){return a.__proto__=u,a},io(t,i)}function S_(t){var i=L_();return function(){var a=Zi(t),u;if(i){var c=Zi(this).constructor;u=Reflect.construct(a,arguments,c)}else u=a.apply(this,arguments);return T_(this,u)}}function T_(t,i){if(i&&(no(i)==="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Xl(t)}function Xl(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function L_(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Zi(t){return Zi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Zi(t)}function Jl(t,i,r){return i in t?Object.defineProperty(t,i,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[i]=r,t}function Cs(t,i){return t&&!i||!t&&i||t&&i&&t.getTime()!==i.getTime()}function Ds(t,i){var r=t.activeStartDate,a=t.date,u=t.view;return typeof i=="function"?i({activeStartDate:r,date:a,view:u}):i}var fi=function(t){P_(r,t);var i=S_(r);function r(){var a;x_(this,r);for(var u=arguments.length,c=new Array(u),h=0;h<u;h++)c[h]=arguments[h];return a=i.call.apply(i,[this].concat(c)),Jl(Xl(a),"state",{}),a}return O_(r,[{key:"render",value:function(){var u=this.props,c=u.activeStartDate,h=u.children,d=u.classes,p=u.date,b=u.formatAbbr,w=u.locale,x=u.maxDate,g=u.maxDateTransform,v=u.minDate,_=u.minDateTransform,m=u.onClick,O=u.onMouseOver,k=u.style,N=u.tileDisabled,C=u.view,D=this.state,R=D.tileClassName,I=D.tileContent;return B.createElement("button",{className:Yi(d,R),disabled:v&&_(v)>p||x&&g(x)<p||N&&N({activeStartDate:c,date:p,view:C}),onClick:m&&function($){return m(p,$)},onFocus:O&&function(){return O(p)},onMouseOver:O&&function(){return O(p)},style:k,type:"button"},b?B.createElement("abbr",{"aria-label":b(w,p)},h):h,I)}}],[{key:"getDerivedStateFromProps",value:function(u,c){var h=u.activeStartDate,d=u.tileClassName,p=u.tileContent,b={};return(d!==c.tileClassNameProps||Cs(h,c.activeStartDateProps))&&(b.tileClassName=Ds(u,d),b.tileClassNameProps=d),(p!==c.tileContentProps||Cs(h,c.activeStartDateProps))&&(b.tileContent=Ds(u,p),b.tileContentProps=p),b.activeStartDateProps=h,b}}]),r}(T.Component);fi.propTypes=Ls(Ls({},li),{},{children:S.node.isRequired,formatAbbr:S.func,maxDateTransform:S.func.isRequired,minDateTransform:S.func.isRequired});var E_=["classes","formatYear"];function Ms(t,i){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);i&&(a=a.filter(function(u){return Object.getOwnPropertyDescriptor(t,u).enumerable})),r.push.apply(r,a)}return r}function ks(t){for(var i=1;i<arguments.length;i++){var r=arguments[i]!=null?arguments[i]:{};i%2?Ms(Object(r),!0).forEach(function(a){C_(t,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ms(Object(r)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(r,a))})}return t}function C_(t,i,r){return i in t?Object.defineProperty(t,i,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[i]=r,t}function ro(){return ro=Object.assign?Object.assign.bind():function(t){for(var i=1;i<arguments.length;i++){var r=arguments[i];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},ro.apply(this,arguments)}function D_(t,i){if(t==null)return{};var r=M_(t,i),a,u;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(t);for(u=0;u<c.length;u++)a=c[u],!(i.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(t,a)&&(r[a]=t[a])}return r}function M_(t,i){if(t==null)return{};var r={},a=Object.keys(t),u,c;for(c=0;c<a.length;c++)u=a[c],!(i.indexOf(u)>=0)&&(r[u]=t[u]);return r}var k_="react-calendar__century-view__decades__decade";function Ql(t){var i=t.classes,r=t.formatYear,a=r===void 0?er:r,u=D_(t,E_),c=u.date,h=u.locale;return B.createElement(fi,ro({},u,{classes:[].concat(i,k_),maxDateTransform:Xi,minDateTransform:en,view:"century"}),Ul(h,a,c))}Ql.propTypes=ks(ks({},li),{},{formatYear:S.func});function As(t,i){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);i&&(a=a.filter(function(u){return Object.getOwnPropertyDescriptor(t,u).enumerable})),r.push.apply(r,a)}return r}function A_(t){for(var i=1;i<arguments.length;i++){var r=arguments[i]!=null?arguments[i]:{};i%2?As(Object(r),!0).forEach(function(a){I_(t,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):As(Object(r)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(r,a))})}return t}function I_(t,i,r){return i in t?Object.defineProperty(t,i,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[i]=r,t}function oo(){return oo=Object.assign?Object.assign.bind():function(t){for(var i=1;i<arguments.length;i++){var r=arguments[i];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},oo.apply(this,arguments)}function ec(t){var i=t.activeStartDate,r=qv(i),a=r+99;return B.createElement(ci,oo({},t,{className:"react-calendar__century-view__decades",dateTransform:en,dateType:"decade",end:a,start:r,step:10,tile:Ql}))}ec.propTypes=A_({},ui);function N_(t){function i(){return B.createElement(ec,t)}return B.createElement("div",{className:"react-calendar__century-view"},i())}var R_=["classes","formatYear"];function Is(t,i){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);i&&(a=a.filter(function(u){return Object.getOwnPropertyDescriptor(t,u).enumerable})),r.push.apply(r,a)}return r}function Ns(t){for(var i=1;i<arguments.length;i++){var r=arguments[i]!=null?arguments[i]:{};i%2?Is(Object(r),!0).forEach(function(a){j_(t,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Is(Object(r)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(r,a))})}return t}function j_(t,i,r){return i in t?Object.defineProperty(t,i,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[i]=r,t}function ao(){return ao=Object.assign?Object.assign.bind():function(t){for(var i=1;i<arguments.length;i++){var r=arguments[i];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},ao.apply(this,arguments)}function $_(t,i){if(t==null)return{};var r=B_(t,i),a,u;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(t);for(u=0;u<c.length;u++)a=c[u],!(i.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(t,a)&&(r[a]=t[a])}return r}function B_(t,i){if(t==null)return{};var r={},a=Object.keys(t),u,c;for(c=0;c<a.length;c++)u=a[c],!(i.indexOf(u)>=0)&&(r[u]=t[u]);return r}var z_="react-calendar__decade-view__years__year";function tc(t){var i=t.classes,r=t.formatYear,a=r===void 0?er:r,u=$_(t,R_),c=u.date,h=u.locale;return B.createElement(fi,ao({},u,{classes:[].concat(i,z_),maxDateTransform:Ji,minDateTransform:oi,view:"decade"}),a(h,c))}tc.propTypes=Ns(Ns({},li),{},{formatYear:S.func});function Rs(t,i){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);i&&(a=a.filter(function(u){return Object.getOwnPropertyDescriptor(t,u).enumerable})),r.push.apply(r,a)}return r}function W_(t){for(var i=1;i<arguments.length;i++){var r=arguments[i]!=null?arguments[i]:{};i%2?Rs(Object(r),!0).forEach(function(a){Z_(t,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Rs(Object(r)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(r,a))})}return t}function Z_(t,i,r){return i in t?Object.defineProperty(t,i,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[i]=r,t}function so(){return so=Object.assign?Object.assign.bind():function(t){for(var i=1;i<arguments.length;i++){var r=arguments[i];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},so.apply(this,arguments)}function nc(t){var i=t.activeStartDate,r=Gv(i),a=r+9;return B.createElement(ci,so({},t,{className:"react-calendar__decade-view__years",dateTransform:function(c){var h=new Date;return h.setFullYear(c,0,1),h.setHours(0,0,0,0),h},dateType:"year",end:a,start:r,tile:tc}))}nc.propTypes=W_({},ui);function F_(t){function i(){return B.createElement(nc,t)}return B.createElement("div",{className:"react-calendar__decade-view"},i())}var V_=["classes","formatMonth","formatMonthYear"];function js(t,i){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);i&&(a=a.filter(function(u){return Object.getOwnPropertyDescriptor(t,u).enumerable})),r.push.apply(r,a)}return r}function $s(t){for(var i=1;i<arguments.length;i++){var r=arguments[i]!=null?arguments[i]:{};i%2?js(Object(r),!0).forEach(function(a){U_(t,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):js(Object(r)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(r,a))})}return t}function U_(t,i,r){return i in t?Object.defineProperty(t,i,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[i]=r,t}function uo(){return uo=Object.assign?Object.assign.bind():function(t){for(var i=1;i<arguments.length;i++){var r=arguments[i];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},uo.apply(this,arguments)}function H_(t,i){if(t==null)return{};var r=Y_(t,i),a,u;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(t);for(u=0;u<c.length;u++)a=c[u],!(i.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(t,a)&&(r[a]=t[a])}return r}function Y_(t,i){if(t==null)return{};var r={},a=Object.keys(t),u,c;for(c=0;c<a.length;c++)u=a[c],!(i.indexOf(u)>=0)&&(r[u]=t[u]);return r}var q_="react-calendar__year-view__months__month";function ic(t){var i=t.classes,r=t.formatMonth,a=r===void 0?Fv:r,u=t.formatMonthYear,c=u===void 0?Wl:u,h=H_(t,V_),d=h.date,p=h.locale;return B.createElement(fi,uo({},h,{classes:[].concat(i,q_),formatAbbr:c,maxDateTransform:ai,minDateTransform:Pn,view:"year"}),a(p,d))}ic.propTypes=$s($s({},li),{},{formatMonth:S.func,formatMonthYear:S.func});function Bs(t,i){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);i&&(a=a.filter(function(u){return Object.getOwnPropertyDescriptor(t,u).enumerable})),r.push.apply(r,a)}return r}function zs(t){for(var i=1;i<arguments.length;i++){var r=arguments[i]!=null?arguments[i]:{};i%2?Bs(Object(r),!0).forEach(function(a){G_(t,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Bs(Object(r)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(r,a))})}return t}function G_(t,i,r){return i in t?Object.defineProperty(t,i,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[i]=r,t}function lo(){return lo=Object.assign?Object.assign.bind():function(t){for(var i=1;i<arguments.length;i++){var r=arguments[i];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},lo.apply(this,arguments)}function rc(t){var i=t.activeStartDate,r=0,a=11,u=Oe(i);return B.createElement(ci,lo({},t,{className:"react-calendar__year-view__months",dateTransform:function(h){var d=new Date;return d.setFullYear(u,h,1),d.setHours(0,0,0,0),d},dateType:"month",end:a,start:r,tile:ic}))}rc.propTypes=zs(zs({},ui),{},{locale:S.string});function K_(t){function i(){return B.createElement(rc,t)}return B.createElement("div",{className:"react-calendar__year-view"},i())}var X_=["formatDay","formatLongDate","calendarType","classes","currentMonthIndex"];function Ws(t,i){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);i&&(a=a.filter(function(u){return Object.getOwnPropertyDescriptor(t,u).enumerable})),r.push.apply(r,a)}return r}function Zs(t){for(var i=1;i<arguments.length;i++){var r=arguments[i]!=null?arguments[i]:{};i%2?Ws(Object(r),!0).forEach(function(a){J_(t,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ws(Object(r)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(r,a))})}return t}function J_(t,i,r){return i in t?Object.defineProperty(t,i,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[i]=r,t}function co(){return co=Object.assign?Object.assign.bind():function(t){for(var i=1;i<arguments.length;i++){var r=arguments[i];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},co.apply(this,arguments)}function Q_(t,i){if(t==null)return{};var r=eg(t,i),a,u;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(t);for(u=0;u<c.length;u++)a=c[u],!(i.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(t,a)&&(r[a]=t[a])}return r}function eg(t,i){if(t==null)return{};var r={},a=Object.keys(t),u,c;for(c=0;c<a.length;c++)u=a[c],!(i.indexOf(u)>=0)&&(r[u]=t[u]);return r}var Br="react-calendar__month-view__days__day";function oc(t){var i=t.formatDay,r=i===void 0?Wv:i,a=t.formatLongDate,u=a===void 0?Zv:a,c=t.calendarType,h=t.classes,d=t.currentMonthIndex,p=Q_(t,X_),b=p.date,w=p.locale;return B.createElement(fi,co({},p,{classes:[].concat(h,Br,Hl(b,c)?"".concat(Br,"--weekend"):null,b.getMonth()!==d?"".concat(Br,"--neighboringMonth"):null),formatAbbr:u,maxDateTransform:zo,minDateTransform:Qi,view:"month"}),r(w,b))}oc.propTypes=Zs(Zs({},li),{},{currentMonthIndex:S.number.isRequired,formatDay:S.func,formatLongDate:S.func});var tg=["showFixedNumberOfWeeks","showNeighboringMonth"];function Fs(t,i){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);i&&(a=a.filter(function(u){return Object.getOwnPropertyDescriptor(t,u).enumerable})),r.push.apply(r,a)}return r}function ng(t){for(var i=1;i<arguments.length;i++){var r=arguments[i]!=null?arguments[i]:{};i%2?Fs(Object(r),!0).forEach(function(a){ig(t,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Fs(Object(r)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(r,a))})}return t}function ig(t,i,r){return i in t?Object.defineProperty(t,i,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[i]=r,t}function fo(){return fo=Object.assign?Object.assign.bind():function(t){for(var i=1;i<arguments.length;i++){var r=arguments[i];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},fo.apply(this,arguments)}function rg(t,i){if(t==null)return{};var r=og(t,i),a,u;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(t);for(u=0;u<c.length;u++)a=c[u],!(i.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(t,a)&&(r[a]=t[a])}return r}function og(t,i){if(t==null)return{};var r={},a=Object.keys(t),u,c;for(c=0;c<a.length;c++)u=a[c],!(i.indexOf(u)>=0)&&(r[u]=t[u]);return r}function ac(t){var i=t.activeStartDate,r=t.calendarType,a=t.showFixedNumberOfWeeks,u=t.showNeighboringMonth,c=rg(t,tg),h=Oe(i),d=zt(i),p=a||u,b=qn(i,r),w=p?0:b,x=(p?-b:0)+1,g=function(){if(a)return x+6*7-1;var v=zl(i);if(u){var _=new Date;_.setFullYear(h,d,v),_.setHours(0,0,0,0);var m=7-qn(_,r)-1;return v+m}return v}();return B.createElement(ci,fo({},c,{className:"react-calendar__month-view__days",count:7,currentMonthIndex:d,dateTransform:function(_){var m=new Date;return m.setFullYear(h,d,_),m.setHours(0,0,0,0),m},dateType:"day",end:g,offset:w,start:x,tile:oc}))}ac.propTypes=ng({calendarType:si.isRequired,showFixedNumberOfWeeks:S.bool,showNeighboringMonth:S.bool},ui);var sc="react-calendar__month-view__weekdays",Vs="".concat(sc,"__weekday");function uc(t){for(var i=t.calendarType,r=t.formatShortWeekday,a=r===void 0?Vv:r,u=t.formatWeekday,c=u===void 0?Uv:u,h=t.locale,d=t.onMouseLeave,p=new Date,b=Pn(p),w=Oe(b),x=zt(b),g=[],v=1;v<=7;v+=1){var _=new Date(w,x,v-qn(b,i)),m=c(h,_);g.push(B.createElement("div",{key:v,className:Yi(Vs,Hl(_,i)&&"".concat(Vs,"--weekend"))},B.createElement("abbr",{"aria-label":m,title:m},a(h,_).replace(".",""))))}return B.createElement(tr,{className:sc,count:7,onFocus:d,onMouseOver:d},g)}uc.propTypes={calendarType:si.isRequired,formatShortWeekday:S.func,formatWeekday:S.func,locale:S.string,onMouseLeave:S.func};var ag=["date","onClickWeekNumber","weekNumber"];function ho(){return ho=Object.assign?Object.assign.bind():function(t){for(var i=1;i<arguments.length;i++){var r=arguments[i];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},ho.apply(this,arguments)}function Us(t,i){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);i&&(a=a.filter(function(u){return Object.getOwnPropertyDescriptor(t,u).enumerable})),r.push.apply(r,a)}return r}function sg(t){for(var i=1;i<arguments.length;i++){var r=arguments[i]!=null?arguments[i]:{};i%2?Us(Object(r),!0).forEach(function(a){ug(t,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Us(Object(r)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(r,a))})}return t}function ug(t,i,r){return i in t?Object.defineProperty(t,i,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[i]=r,t}function lg(t,i){if(t==null)return{};var r=cg(t,i),a,u;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(t);for(u=0;u<c.length;u++)a=c[u],!(i.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(t,a)&&(r[a]=t[a])}return r}function cg(t,i){if(t==null)return{};var r={},a=Object.keys(t),u,c;for(c=0;c<a.length;c++)u=a[c],!(i.indexOf(u)>=0)&&(r[u]=t[u]);return r}var fg="react-calendar__tile";function lc(t){var i=t.date,r=t.onClickWeekNumber,a=t.weekNumber,u=lg(t,ag),c=sg({className:fg},u),h=B.createElement("span",null,a);return r?B.createElement("button",ho({},c,{onClick:function(p){return r(a,i,p)},type:"button"}),h):B.createElement("div",c,h)}lc.propTypes={date:S.instanceOf(Date).isRequired,onClickWeekNumber:S.func,weekNumber:S.node.isRequired};function cc(t){var i=t.activeStartDate,r=t.calendarType,a=t.onClickWeekNumber,u=t.onMouseLeave,c=t.showFixedNumberOfWeeks,h=function(){if(c)return 6;var b=zl(i),w=qn(i,r),x=b-(7-w);return 1+Math.ceil(x/7)}(),d=function(){for(var b=Oe(i),w=zt(i),x=Ki(i),g=[],v=0;v<h;v+=1)g.push(Jr(new Date(b,w,x+v*7),r));return g}(),p=d.map(function(b){return Kv(b,r)});return B.createElement(tr,{className:"react-calendar__month-view__weekNumbers",count:h,direction:"column",onFocus:u,onMouseOver:u,style:{flexBasis:"calc(100% * (1 / 8)",flexShrink:0}},p.map(function(b,w){return B.createElement(lc,{key:b,date:d[w],onClickWeekNumber:a,weekNumber:b})}))}cc.propTypes={activeStartDate:S.instanceOf(Date).isRequired,calendarType:si.isRequired,onClickWeekNumber:S.func,onMouseLeave:S.func,showFixedNumberOfWeeks:S.bool};var hg=["calendarType","formatShortWeekday","formatWeekday","onClickWeekNumber","showWeekNumbers"];function po(){return po=Object.assign?Object.assign.bind():function(t){for(var i=1;i<arguments.length;i++){var r=arguments[i];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},po.apply(this,arguments)}function dg(t,i){if(t==null)return{};var r=pg(t,i),a,u;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(t);for(u=0;u<c.length;u++)a=c[u],!(i.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(t,a)&&(r[a]=t[a])}return r}function pg(t,i){if(t==null)return{};var r={},a=Object.keys(t),u,c;for(c=0;c<a.length;c++)u=a[c],!(i.indexOf(u)>=0)&&(r[u]=t[u]);return r}function mg(t){return Object.keys(_s).find(function(i){return _s[i].includes(t)})||Ee.ISO_8601}function fc(t){var i=t.activeStartDate,r=t.locale,a=t.onMouseLeave,u=t.showFixedNumberOfWeeks,c=t.calendarType,h=c===void 0?mg(r):c,d=t.formatShortWeekday,p=t.formatWeekday,b=t.onClickWeekNumber,w=t.showWeekNumbers,x=dg(t,hg);function g(){return B.createElement(uc,{calendarType:h,formatShortWeekday:d,formatWeekday:p,locale:r,onMouseLeave:a})}function v(){return w?B.createElement(cc,{activeStartDate:i,calendarType:h,onClickWeekNumber:b,onMouseLeave:a,showFixedNumberOfWeeks:u}):null}function _(){return B.createElement(ac,po({calendarType:h},x))}var m="react-calendar__month-view";return B.createElement("div",{className:Yi(m,w?"".concat(m,"--weekNumbers"):"")},B.createElement("div",{style:{display:"flex",alignItems:"flex-end"}},v(),B.createElement("div",{style:{flexGrow:1,width:"100%"}},g(),_())))}fc.propTypes={activeStartDate:S.instanceOf(Date).isRequired,calendarType:si,formatShortWeekday:S.func,formatWeekday:S.func,locale:S.string,onClickWeekNumber:S.func,onMouseLeave:S.func,showFixedNumberOfWeeks:S.bool,showWeekNumbers:S.bool};var vg=["activeStartDate","defaultActiveStartDate","defaultValue","defaultView","maxDetail","minDetail","value","view"];function dn(){return dn=Object.assign?Object.assign.bind():function(t){for(var i=1;i<arguments.length;i++){var r=arguments[i];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},dn.apply(this,arguments)}function Xn(t){"@babel/helpers - typeof";return Xn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Xn(t)}function _g(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}function gg(t,i){for(var r=0;r<i.length;r++){var a=i[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function yg(t,i,r){return i&&gg(t.prototype,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function bg(t,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(i&&i.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),i&&mo(t,i)}function mo(t,i){return mo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,u){return a.__proto__=u,a},mo(t,i)}function wg(t){var i=Og();return function(){var a=Fi(t),u;if(i){var c=Fi(this).constructor;u=Reflect.construct(a,arguments,c)}else u=a.apply(this,arguments);return xg(this,u)}}function xg(t,i){if(i&&(Xn(i)==="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ne(t)}function Ne(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Og(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Fi(t){return Fi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Fi(t)}function Hs(t,i){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);i&&(a=a.filter(function(u){return Object.getOwnPropertyDescriptor(t,u).enumerable})),r.push.apply(r,a)}return r}function vo(t){for(var i=1;i<arguments.length;i++){var r=arguments[i]!=null?arguments[i]:{};i%2?Hs(Object(r),!0).forEach(function(a){wt(t,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Hs(Object(r)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(r,a))})}return t}function wt(t,i,r){return i in t?Object.defineProperty(t,i,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[i]=r,t}function Pg(t,i){if(t==null)return{};var r=Sg(t,i),a,u;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(t);for(u=0;u<c.length;u++)a=c[u],!(i.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(t,a)&&(r[a]=t[a])}return r}function Sg(t,i){if(t==null)return{};var r={},a=Object.keys(t),u,c;for(c=0;c<a.length;c++)u=a[c],!(i.indexOf(u)>=0)&&(r[u]=t[u]);return r}function Tg(t){return Dg(t)||Cg(t)||Eg(t)||Lg()}function Lg(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Eg(t,i){if(t){if(typeof t=="string")return _o(t,i);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _o(t,i)}}function Cg(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Dg(t){if(Array.isArray(t))return _o(t)}function _o(t,i){(i==null||i>t.length)&&(i=t.length);for(var r=0,a=new Array(i);r<i;r++)a[r]=t[r];return a}var Vo=new Date;Vo.setFullYear(1,0,1);Vo.setHours(0,0,0,0);var Mg=new Date(864e13),Ii="react-calendar",Kt=["century","decade","year","month"],kg=[].concat(Tg(Kt.slice(1)),["day"]);function Ag(t){return t instanceof Date?t:new Date(t)}function hc(t,i){return Kt.slice(Kt.indexOf(t),Kt.indexOf(i)+1)}function Ig(t,i,r){var a=hc(i,r);return a.indexOf(t)!==-1}function Uo(t,i,r){return Ig(t,i,r)?t:r}function dc(t){return kg[Kt.indexOf(t)]}function Ng(t,i){if(!t)return null;var r=Array.isArray(t)&&t.length===2?t[i]:t;if(!r)return null;var a=Ag(r);if(isNaN(a.getTime()))throw new Error("Invalid date: ".concat(t));return a}function pc(t,i){var r=t.value,a=t.minDate,u=t.maxDate,c=t.maxDetail,h=Ng(r,i);if(!h)return null;var d=dc(c),p=[Gt,Fl][i](d,h);return m_(p,a,u)}var Ho=function(i){return pc(i,0)},mc=function(i){return pc(i,1)},Rg=function(i){var r=i.value;return Array.isArray(r)?r:[Ho,mc].map(function(a){return a(i)})};function vc(t){var i=t.maxDate,r=t.maxDetail,a=t.minDate,u=t.minDetail,c=t.value,h=t.view,d=Uo(h,u,r),p=Ho({value:c,minDate:a,maxDate:i,maxDetail:r})||new Date;return Gt(d,p)}function jg(t){var i=t.activeStartDate,r=t.defaultActiveStartDate,a=t.defaultValue,u=t.defaultView,c=t.maxDetail,h=t.minDetail,d=t.value,p=t.view,b=Pg(t,vg),w=Uo(p,h,c),x=i||r;return x?Gt(w,x):vc(vo({maxDetail:c,minDetail:h,value:d||a,view:p||u},b))}var zr=function(i){return i&&[].concat(i).length===1},Yo=function(t){bg(r,t);var i=wg(r);function r(){var a;_g(this,r);for(var u=arguments.length,c=new Array(u),h=0;h<u;h++)c[h]=arguments[h];return a=i.call.apply(i,[this].concat(c)),wt(Ne(a),"state",{activeStartDate:a.props.defaultActiveStartDate,value:a.props.defaultValue,view:a.props.defaultView}),wt(Ne(a),"setStateAndCallCallbacks",function(d,p,b){var w=Ne(a),x=w.activeStartDate,g=w.view,v=a.props,_=v.allowPartialRange,m=v.onActiveStartDateChange,O=v.onChange,k=v.onViewChange,N=v.selectRange,C={activeStartDate:x,view:g};a.setState(d,function(){var D={action:d.action,activeStartDate:d.activeStartDate||a.activeStartDate,value:d.value||a.value,view:d.view||a.view};function R($){return $ in d&&(Xn(d[$])!==Xn(C[$])||(d[$]instanceof Date?d[$].getTime()!==C[$].getTime():d[$]!==C[$]))}if(R("activeStartDate")&&m&&m(D),R("view")&&k&&k(D),R("value")&&O)if(N){var I=zr(d.value);I?_&&O([d.value],p):O(d.value,p)}else O(d.value,p);b&&b(D)})}),wt(Ne(a),"setActiveStartDate",function(d,p){a.setStateAndCallCallbacks({action:p,activeStartDate:d})}),wt(Ne(a),"drillDown",function(d,p){if(a.drillDownAvailable){a.onClickTile(d,p);var b=Ne(a),w=b.view,x=b.views,g=a.props.onDrillDown,v=x[x.indexOf(w)+1];a.setStateAndCallCallbacks({action:"drillDown",activeStartDate:d,view:v},void 0,g)}}),wt(Ne(a),"drillUp",function(){if(a.drillUpAvailable){var d=Ne(a),p=d.activeStartDate,b=d.view,w=d.views,x=a.props.onDrillUp,g=w[w.indexOf(b)-1],v=Gt(g,p);a.setStateAndCallCallbacks({action:"drillUp",activeStartDate:v,view:g},void 0,x)}}),wt(Ne(a),"onChange",function(d,p){var b=Ne(a),w=b.value,x=a.props,g=x.goToRangeStartOnSelect,v=x.selectRange;a.onClickTile(d,p);var _=v&&!zr(w),m;if(v){var O=Ne(a),k=O.valueType;_?m=Gt(k,d):m=n_(k,w,d)}else m=a.getProcessedValue(d);var N=!v||_||g?vc(vo(vo({},a.props),{},{value:m})):null;p.persist(),a.setStateAndCallCallbacks({action:"onChange",activeStartDate:N,value:m},p)}),wt(Ne(a),"onClickTile",function(d,p){var b=Ne(a),w=b.view,x=a.props,g=x.onClickDay,v=x.onClickDecade,_=x.onClickMonth,m=x.onClickYear,O=function(){switch(w){case"century":return v;case"decade":return m;case"year":return _;case"month":return g;default:throw new Error("Invalid view: ".concat(w,"."))}}();O&&O(d,p)}),wt(Ne(a),"onMouseOver",function(d){a.setState(function(p){return p.hover&&p.hover.getTime()===d.getTime()?null:{hover:d}})}),wt(Ne(a),"onMouseLeave",function(){a.setState({hover:null})}),a}return yg(r,[{key:"activeStartDate",get:function(){var u=this.props.activeStartDate,c=this.state.activeStartDate;return u||c||jg(this.props)}},{key:"value",get:function(){var u=this.props,c=u.selectRange,h=u.value,d=this.state.value;return c&&zr(d)?d:h!==void 0?h:d}},{key:"valueType",get:function(){var u=this.props.maxDetail;return dc(u)}},{key:"view",get:function(){var u=this.props,c=u.minDetail,h=u.maxDetail,d=u.view,p=this.state.view;return Uo(d||p,c,h)}},{key:"views",get:function(){var u=this.props,c=u.minDetail,h=u.maxDetail;return hc(c,h)}},{key:"hover",get:function(){var u=this.props.selectRange,c=this.state.hover;return u?c:null}},{key:"drillDownAvailable",get:function(){var u=this.view,c=this.views;return c.indexOf(u)<c.length-1}},{key:"drillUpAvailable",get:function(){var u=this.view,c=this.views;return c.indexOf(u)>0}},{key:"getProcessedValue",value:function(u){var c=this.props,h=c.minDate,d=c.maxDate,p=c.maxDetail,b=c.returnValue,w=function(){switch(b){case"start":return Ho;case"end":return mc;case"range":return Rg;default:throw new Error("Invalid returnValue.")}}();return w({value:u,minDate:h,maxDate:d,maxDetail:p})}},{key:"renderContent",value:function(u){var c=this.activeStartDate,h=this.onMouseOver,d=this.valueType,p=this.value,b=this.view,w=this.props,x=w.calendarType,g=w.locale,v=w.maxDate,_=w.minDate,m=w.selectRange,O=w.tileClassName,k=w.tileContent,N=w.tileDisabled,C=this.hover,D=u?Zl(b,c):Gt(b,c),R=this.drillDownAvailable?this.drillDown:this.onChange,I={activeStartDate:D,hover:C,locale:g,maxDate:v,minDate:_,onClick:R,onMouseOver:m?h:null,tileClassName:O,tileContent:k,tileDisabled:N,value:p,valueType:d};switch(b){case"century":{var $=this.props.formatYear;return B.createElement(N_,dn({formatYear:$},I))}case"decade":{var oe=this.props.formatYear;return B.createElement(F_,dn({formatYear:oe},I))}case"year":{var te=this.props,le=te.formatMonth,ne=te.formatMonthYear;return B.createElement(K_,dn({formatMonth:le,formatMonthYear:ne},I))}case"month":{var Q=this.props,se=Q.formatDay,H=Q.formatLongDate,ge=Q.formatShortWeekday,V=Q.formatWeekday,_e=Q.onClickWeekNumber,Z=Q.showDoubleView,ve=Q.showFixedNumberOfWeeks,W=Q.showNeighboringMonth,J=Q.showWeekNumbers,ce=this.onMouseLeave;return B.createElement(fc,dn({calendarType:x,formatDay:se,formatLongDate:H,formatShortWeekday:ge,formatWeekday:V,onClickWeekNumber:_e,onMouseLeave:m?ce:null,showFixedNumberOfWeeks:typeof ve<"u"?ve:Z,showNeighboringMonth:W,showWeekNumbers:J},I))}default:throw new Error("Invalid view: ".concat(b,"."))}}},{key:"renderNavigation",value:function(){var u=this.props.showNavigation;if(!u)return null;var c=this.activeStartDate,h=this.view,d=this.views,p=this.props,b=p.formatMonthYear,w=p.formatYear,x=p.locale,g=p.maxDate,v=p.minDate,_=p.navigationAriaLabel,m=p.navigationAriaLive,O=p.navigationLabel,k=p.next2AriaLabel,N=p.next2Label,C=p.nextAriaLabel,D=p.nextLabel,R=p.prev2AriaLabel,I=p.prev2Label,$=p.prevAriaLabel,oe=p.prevLabel,te=p.showDoubleView;return B.createElement(Gl,{activeStartDate:c,drillUp:this.drillUp,formatMonthYear:b,formatYear:w,locale:x,maxDate:g,minDate:v,navigationAriaLabel:_,navigationAriaLive:m,navigationLabel:O,next2AriaLabel:k,next2Label:N,nextAriaLabel:C,nextLabel:D,prev2AriaLabel:R,prev2Label:I,prevAriaLabel:$,prevLabel:oe,setActiveStartDate:this.setActiveStartDate,showDoubleView:te,view:h,views:d})}},{key:"render",value:function(){var u=this.props,c=u.className,h=u.inputRef,d=u.selectRange,p=u.showDoubleView,b=this.onMouseLeave,w=this.value,x=[].concat(w);return B.createElement("div",{className:Yi(Ii,d&&x.length===1&&"".concat(Ii,"--selectRange"),p&&"".concat(Ii,"--doubleView"),c),ref:h},this.renderNavigation(),B.createElement("div",{className:"".concat(Ii,"__viewContainer"),onBlur:d?b:null,onMouseLeave:d?b:null},this.renderContent(),p&&this.renderContent(!0)))}}]),r}(T.Component);Yo.defaultProps={goToRangeStartOnSelect:!0,maxDate:Mg,maxDetail:"month",minDate:Vo,minDetail:"century",returnValue:"start",showNavigation:!0,showNeighboringMonth:!0};var Ys=S.instanceOf(Date),qs=S.oneOfType([S.string,ql]);Yo.propTypes={activeStartDate:Ys,allowPartialRange:S.bool,calendarType:si,className:Wi,defaultActiveStartDate:Ys,defaultValue:qs,defaultView:Gn,formatDay:S.func,formatLongDate:S.func,formatMonth:S.func,formatMonthYear:S.func,formatShortWeekday:S.func,formatWeekday:S.func,formatYear:S.func,goToRangeStartOnSelect:S.bool,inputRef:o_,locale:S.string,maxDate:Fo,maxDetail:S.oneOf(Kt),minDate:Zo,minDetail:S.oneOf(Kt),navigationAriaLabel:S.string,navigationAriaLive:S.oneOf(["off","polite","assertive"]),navigationLabel:S.func,next2AriaLabel:S.string,next2Label:S.node,nextAriaLabel:S.string,nextLabel:S.node,onActiveStartDateChange:S.func,onChange:S.func,onClickDay:S.func,onClickDecade:S.func,onClickMonth:S.func,onClickWeekNumber:S.func,onClickYear:S.func,onDrillDown:S.func,onDrillUp:S.func,onViewChange:S.func,prev2AriaLabel:S.string,prev2Label:S.node,prevAriaLabel:S.string,prevLabel:S.node,returnValue:S.oneOf(["start","end","range"]),selectRange:S.bool,showDoubleView:S.bool,showFixedNumberOfWeeks:S.bool,showNavigation:S.bool,showNeighboringMonth:S.bool,showWeekNumbers:S.bool,tileClassName:S.oneOfType([S.func,Wi]),tileContent:S.oneOfType([S.func,S.node]),tileDisabled:S.func,value:qs,view:Gn};function $g({value:t,startDate:i,endDate:r,onChange:a,returnValue:u,close:c,min:h,max:d}){return A.jsx("div",{children:A.jsx(Yo,{onChange:p=>{a(p),c()},defaultActiveStartDate:t||void 0,value:[(u==="start"?t:i)||null,(u==="end"?t:r)||null],minDate:h,maxDate:d,returnValue:u,maxDetail:"month",minDetail:"month",showNeighboringMonth:!1,prev2Label:null,next2Label:null,prevLabel:A.jsx(ih,{className:"h-6 w-6","aria-hidden":"true"}),nextLabel:A.jsx(rh,{className:"h-6 w-6","aria-hidden":"true"}),formatShortWeekday:(p,b)=>th(b,"EEEEE")})})}function Gs({id:t,name:i,value:r,onChange:a,...u}){const[c,h]=T.useState(null),[d,p]=T.useState(null),{styles:b,attributes:w}=Tm(c,d);return A.jsx(Qf,{children:A.jsxs("div",{className:"relative",children:[A.jsx("input",{type:"date",id:t,name:i,value:r?Ar(r):"",onChange:x=>{const g=nh(x.target.value);g!==void 0&&a(g)},className:"w-full rounded bg-primary2-darkest bg-opacity-20 hidden-input-button",min:Ar(u.min),max:Ar(u.max)}),!nl&&A.jsxs(kr,{className:mn("absolute","right-0","top-0","h-full","mr-2","flex justify-center"),children:[A.jsx(kr.Button,{ref:h,children:A.jsx(dh,{className:"h-6 w-6","aria-hidden":"true"})}),A.jsx(kr.Panel,{ref:p,className:mn("shadow-lg rounded-lg","z-[99]","rounded-md","overflow-hidden"),style:b.popper,...w.popper,children:({close:x})=>A.jsx($g,{value:r,onChange:a,close:x,...u})})]})]})})}function Ks({id:t,name:i,onChange:r,checked:a,label:u}){return A.jsxs(A.Fragment,{children:[A.jsx("input",{id:t,name:i,onChange:r,checked:a,type:"radio",className:mn("h-6 w-6","border-primary2-darkest border-2","checked:hover:border-primary2-darkest","checked:focus:border-primary2-darkest","checked:text-white checked:border-primary2-darkest checked:border-2","relative","checked:before:rounded-full checked:before:bg-primary2-darkest checked:before:m-[25%] checked:before:h-[50%] checked:before:block"),value:""}),A.jsx("label",{htmlFor:t,className:"ml-3 select-none text-primary2-darkest text-base",children:u})]})}function hn({label:t,formItemId:i,formItem:r,enabled:a=!0}){return A.jsxs("div",{className:a?"sm:flex":"hidden",children:[A.jsx("div",{className:"min-w-[120px] flex",children:A.jsx("label",{htmlFor:i,className:"block text-base font-medium my-auto",children:t})}),A.jsx("div",{className:"mt-1 sm:mt-0 flex-1",children:r})]})}function _c(t,[i,r]){return Math.min(r,Math.max(i,t))}const Bg=T.createContext(void 0);function zg(t){const i=T.useContext(Bg);return t||i||"ltr"}function Wg(t){const i=t+"CollectionProvider",[r,a]=So(i),[u,c]=r(i,{collectionRef:{current:null},itemMap:new Map}),h=v=>{const{scope:_,children:m}=v,O=B.useRef(null),k=B.useRef(new Map).current;return B.createElement(u,{scope:_,itemMap:k,collectionRef:O},m)},d=t+"CollectionSlot",p=B.forwardRef((v,_)=>{const{scope:m,children:O}=v,k=c(d,m),N=Pt(_,k.collectionRef);return B.createElement(Wr,{ref:N},O)}),b=t+"CollectionItemSlot",w="data-radix-collection-item",x=B.forwardRef((v,_)=>{const{scope:m,children:O,...k}=v,N=B.useRef(null),C=Pt(_,N),D=c(b,m);return B.useEffect(()=>(D.itemMap.set(N,{ref:N,...k}),()=>void D.itemMap.delete(N))),B.createElement(Wr,{[w]:"",ref:C},O)});function g(v){const _=c(t+"CollectionConsumer",v);return B.useCallback(()=>{const O=_.collectionRef.current;if(!O)return[];const k=Array.from(O.querySelectorAll(`[${w}]`));return Array.from(_.itemMap.values()).sort((D,R)=>k.indexOf(D.ref.current)-k.indexOf(R.ref.current))},[_.collectionRef,_.itemMap])}return[{Provider:h,Slot:p,ItemSlot:x},g,a]}const gc=["PageUp","PageDown"],yc=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],bc={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},hi="Slider",[go,Zg,Fg]=Wg(hi),[wc,Zy]=So(hi,[Fg]),[Vg,nr]=wc(hi),Ug=T.forwardRef((t,i)=>{const{name:r,min:a=0,max:u=100,step:c=1,orientation:h="horizontal",disabled:d=!1,minStepsBetweenThumbs:p=0,defaultValue:b=[a],value:w,onValueChange:x=()=>{},onValueCommit:g=()=>{},inverted:v=!1,..._}=t,[m,O]=T.useState(null),k=Pt(i,H=>O(H)),N=T.useRef(new Set),C=T.useRef(0),D=h==="horizontal",R=m?!!m.closest("form"):!0,I=D?Hg:Yg,[$=[],oe]=rl({prop:w,defaultProp:b,onChange:H=>{var ge;(ge=[...N.current][C.current])===null||ge===void 0||ge.focus(),x(H)}}),te=T.useRef($);function le(H){const ge=ny($,H);se(H,ge)}function ne(H){se(H,C.current)}function Q(){const H=te.current[C.current];$[C.current]!==H&&g($)}function se(H,ge,{commit:V}={commit:!1}){const _e=ay(c),Z=sy(Math.round((H-a)/c)*c+a,_e),ve=_c(Z,[a,u]);oe((W=[])=>{const J=ey(W,ve,ge);if(oy(J,p*c)){C.current=J.indexOf(ve);const ce=String(J)!==String(W);return ce&&V&&g(J),ce?J:W}else return W})}return T.createElement(Vg,{scope:t.__scopeSlider,disabled:d,min:a,max:u,valueIndexToChangeRef:C,thumbs:N.current,values:$,orientation:h},T.createElement(go.Provider,{scope:t.__scopeSlider},T.createElement(go.Slot,{scope:t.__scopeSlider},T.createElement(I,Ge({"aria-disabled":d,"data-disabled":d?"":void 0},_,{ref:k,onPointerDown:Rt(_.onPointerDown,()=>{d||(te.current=$)}),min:a,max:u,inverted:v,onSlideStart:d?void 0:le,onSlideMove:d?void 0:ne,onSlideEnd:d?void 0:Q,onHomeKeyDown:()=>!d&&se(a,0,{commit:!0}),onEndKeyDown:()=>!d&&se(u,$.length-1,{commit:!0}),onStepKeyDown:({event:H,direction:ge})=>{if(!d){const Z=gc.includes(H.key)||H.shiftKey&&yc.includes(H.key)?10:1,ve=C.current,W=$[ve],J=c*Z*ge;se(W+J,ve,{commit:!0})}}})))),R&&$.map((H,ge)=>T.createElement(Qg,{key:ge,name:r?r+($.length>1?"[]":""):void 0,value:H})))}),[xc,Oc]=wc(hi,{startEdge:"left",endEdge:"right",size:"width",direction:1}),Hg=T.forwardRef((t,i)=>{const{min:r,max:a,dir:u,inverted:c,onSlideStart:h,onSlideMove:d,onSlideEnd:p,onStepKeyDown:b,...w}=t,[x,g]=T.useState(null),v=Pt(i,C=>g(C)),_=T.useRef(),m=zg(u),O=m==="ltr",k=O&&!c||!O&&c;function N(C){const D=_.current||x.getBoundingClientRect(),R=[0,D.width],$=qo(R,k?[r,a]:[a,r]);return _.current=D,$(C-D.left)}return T.createElement(xc,{scope:t.__scopeSlider,startEdge:k?"left":"right",endEdge:k?"right":"left",direction:k?1:-1,size:"width"},T.createElement(Pc,Ge({dir:m,"data-orientation":"horizontal"},w,{ref:v,style:{...w.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:C=>{const D=N(C.clientX);h==null||h(D)},onSlideMove:C=>{const D=N(C.clientX);d==null||d(D)},onSlideEnd:()=>{_.current=void 0,p==null||p()},onStepKeyDown:C=>{const R=bc[k?"from-left":"from-right"].includes(C.key);b==null||b({event:C,direction:R?-1:1})}})))}),Yg=T.forwardRef((t,i)=>{const{min:r,max:a,inverted:u,onSlideStart:c,onSlideMove:h,onSlideEnd:d,onStepKeyDown:p,...b}=t,w=T.useRef(null),x=Pt(i,w),g=T.useRef(),v=!u;function _(m){const O=g.current||w.current.getBoundingClientRect(),k=[0,O.height],C=qo(k,v?[a,r]:[r,a]);return g.current=O,C(m-O.top)}return T.createElement(xc,{scope:t.__scopeSlider,startEdge:v?"bottom":"top",endEdge:v?"top":"bottom",size:"height",direction:v?1:-1},T.createElement(Pc,Ge({"data-orientation":"vertical"},b,{ref:x,style:{...b.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:m=>{const O=_(m.clientY);c==null||c(O)},onSlideMove:m=>{const O=_(m.clientY);h==null||h(O)},onSlideEnd:()=>{g.current=void 0,d==null||d()},onStepKeyDown:m=>{const k=bc[v?"from-bottom":"from-top"].includes(m.key);p==null||p({event:m,direction:k?-1:1})}})))}),Pc=T.forwardRef((t,i)=>{const{__scopeSlider:r,onSlideStart:a,onSlideMove:u,onSlideEnd:c,onHomeKeyDown:h,onEndKeyDown:d,onStepKeyDown:p,...b}=t,w=nr(hi,r);return T.createElement(xn.span,Ge({},b,{ref:i,onKeyDown:Rt(t.onKeyDown,x=>{x.key==="Home"?(h(x),x.preventDefault()):x.key==="End"?(d(x),x.preventDefault()):gc.concat(yc).includes(x.key)&&(p(x),x.preventDefault())}),onPointerDown:Rt(t.onPointerDown,x=>{const g=x.target;g.setPointerCapture(x.pointerId),x.preventDefault(),w.thumbs.has(g)?g.focus():a(x)}),onPointerMove:Rt(t.onPointerMove,x=>{x.target.hasPointerCapture(x.pointerId)&&u(x)}),onPointerUp:Rt(t.onPointerUp,x=>{const g=x.target;g.hasPointerCapture(x.pointerId)&&(g.releasePointerCapture(x.pointerId),c(x))})}))}),qg="SliderTrack",Gg=T.forwardRef((t,i)=>{const{__scopeSlider:r,...a}=t,u=nr(qg,r);return T.createElement(xn.span,Ge({"data-disabled":u.disabled?"":void 0,"data-orientation":u.orientation},a,{ref:i}))}),Xs="SliderRange",Kg=T.forwardRef((t,i)=>{const{__scopeSlider:r,...a}=t,u=nr(Xs,r),c=Oc(Xs,r),h=T.useRef(null),d=Pt(i,h),p=u.values.length,b=u.values.map(g=>Sc(g,u.min,u.max)),w=p>1?Math.min(...b):0,x=100-Math.max(...b);return T.createElement(xn.span,Ge({"data-orientation":u.orientation,"data-disabled":u.disabled?"":void 0},a,{ref:d,style:{...t.style,[c.startEdge]:w+"%",[c.endEdge]:x+"%"}}))}),Js="SliderThumb",Xg=T.forwardRef((t,i)=>{const r=Zg(t.__scopeSlider),[a,u]=T.useState(null),c=Pt(i,d=>u(d)),h=T.useMemo(()=>a?r().findIndex(d=>d.ref.current===a):-1,[r,a]);return T.createElement(Jg,Ge({},t,{ref:c,index:h}))}),Jg=T.forwardRef((t,i)=>{const{__scopeSlider:r,index:a,...u}=t,c=nr(Js,r),h=Oc(Js,r),[d,p]=T.useState(null),b=Pt(i,O=>p(O)),w=al(d),x=c.values[a],g=x===void 0?0:Sc(x,c.min,c.max),v=ty(a,c.values.length),_=w==null?void 0:w[h.size],m=_?iy(_,g,h.direction):0;return T.useEffect(()=>{if(d)return c.thumbs.add(d),()=>{c.thumbs.delete(d)}},[d,c.thumbs]),T.createElement("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[h.startEdge]:`calc(${g}% + ${m}px)`}},T.createElement(go.ItemSlot,{scope:t.__scopeSlider},T.createElement(xn.span,Ge({role:"slider","aria-label":t["aria-label"]||v,"aria-valuemin":c.min,"aria-valuenow":x,"aria-valuemax":c.max,"aria-orientation":c.orientation,"data-orientation":c.orientation,"data-disabled":c.disabled?"":void 0,tabIndex:c.disabled?void 0:0},u,{ref:b,style:x===void 0?{display:"none"}:t.style,onFocus:Rt(t.onFocus,()=>{c.valueIndexToChangeRef.current=a})}))))}),Qg=t=>{const{value:i,...r}=t,a=T.useRef(null),u=ol(i);return T.useEffect(()=>{const c=a.current,h=window.HTMLInputElement.prototype,p=Object.getOwnPropertyDescriptor(h,"value").set;if(u!==i&&p){const b=new Event("input",{bubbles:!0});p.call(c,i),c.dispatchEvent(b)}},[u,i]),T.createElement("input",Ge({style:{display:"none"}},r,{ref:a,defaultValue:i}))};function ey(t=[],i,r){const a=[...t];return a[r]=i,a.sort((u,c)=>u-c)}function Sc(t,i,r){const c=100/(r-i)*(t-i);return _c(c,[0,100])}function ty(t,i){return i>2?`Value ${t+1} of ${i}`:i===2?["Minimum","Maximum"][t]:void 0}function ny(t,i){if(t.length===1)return 0;const r=t.map(u=>Math.abs(u-i)),a=Math.min(...r);return r.indexOf(a)}function iy(t,i,r){const a=t/2,c=qo([0,50],[0,a]);return(a-c(i)*r)*r}function ry(t){return t.slice(0,-1).map((i,r)=>t[r+1]-i)}function oy(t,i){if(i>0){const r=ry(t);return Math.min(...r)>=i}return!0}function qo(t,i){return r=>{if(t[0]===t[1]||i[0]===i[1])return i[0];const a=(i[1]-i[0])/(t[1]-t[0]);return i[0]+a*(r-t[0])}}function ay(t){return(String(t).split(".")[1]||"").length}function sy(t,i){const r=Math.pow(10,i);return Math.round(t*r)/r}function Qs(t){const i=t.minLabel??t.minValue.toString(),r=t.maxLabel??t.maxValue.toString(),a=Math.max(t.lowerValue??t.minValue,t.minValue),u=a===t.minValue?i:a.toString(),c=Math.min(t.upperValue??t.maxValue,t.maxValue),h=c===t.maxValue?r:c.toString();return A.jsxs(Ug,{name:t.name,defaultValue:[a,c],step:t.step,minStepsBetweenThumbs:t.minStepsBetween??1,min:t.minValue,max:t.maxValue,"aria-label":`${t.name} range filter`,dir:t.dir??"ltr",onValueChange:t.onValueChange,className:"relative flex items-center select-none touch-none max-w-xl h-5 mb-5",children:[A.jsx(Gg,{className:"bg-grey relative grow rounded-full h-2",children:A.jsx(Kg,{className:"absolute bg-primary2-darkest rounded-full h-full"})}),A.jsx(eu,{children:A.jsx("div",{className:mn("relative text-sm w-10 translate-y-full top-0.5 whitespace-nowrap",a===t.minValue?t.dir==="rtl"?"right-[-50%]":"left-[-50%]":t.dir==="rtl"?"left-[100%]":"right-[100%]","text-center"),children:`${u} ${t.unit??""}`})}),A.jsx(eu,{children:A.jsx("div",{className:mn("relative text-sm w-10 translate-y-full top-0.5 whitespace-nowrap","text-center",c===t.maxValue?t.dir==="rtl"?"right-[-50%]":"left-[-50%]":""),children:`${h} ${t.unit??""}`})})]})}function eu({children:t}){return A.jsx(Xg,{className:`
    relative block h-5 w-5
    rounded-full
    shadow-slider-thumb
    bg-primary2-darkest

    focus:outline-none
    focus:ring-[10px]
    focus:ring-primary2-darkest
    focus:ring-opacity-20

    hover:outline-none
    hover:ring-[10px]
    hover:ring-primary2-darkest
    hover:ring-opacity-20
    `,children:t})}function uy({exhibitionType:t,subTypes:i,allowBuy:r,minDate:a,depthFrom:u,depthTo:c,excludedSubTypes:h,magnitudeFrom:d,magnitudeTo:p,dateFrom:b,dateTo:w,forSaleOnly:x,onChange:g}){const v=(_,m)=>{g==null||g(_,m)};return A.jsx("form",{className:"space-y-8 divide-y mt-8",children:A.jsx("div",{className:"space-y-8 divide-y sm:space-y-5",children:A.jsxs("div",{className:"space-y-8",children:[A.jsxs("h2",{className:"mt-0",children:["Find recent ",t,"s"]}),A.jsxs("div",{className:"grid sm:grid-cols-[35%_35%_1fr] gap-4 sm:gap-8",children:[A.jsx(hn,{label:"Date from",formItemId:"from-date",formItem:A.jsx(Gs,{name:"from-date",id:"from-date",value:b,returnValue:"start",startDate:b,endDate:w,min:a,max:new Date,onChange:_=>v("dateFrom",_)})}),A.jsx(hn,{label:"Date to",formItemId:"to-date",formItem:A.jsx(Gs,{name:"to-date",id:"to-date",value:w,returnValue:"end",startDate:b,endDate:w,min:a,max:new Date,onChange:_=>v("dateTo",_)})}),A.jsx("div",{className:"",children:(b||w)&&A.jsx(sh,{className:"bg-primary",icon:_=>A.jsx(uh,{..._}),onClick:()=>{v("dateFrom",void 0),v("dateTo",void 0)},label:"Reset"})})]}),A.jsx(hn,{label:"Magnitude",enabled:t===Zr.EARTHQUAKE,formItemId:"magnitude",formItem:A.jsx(Qs,{name:"magnitude",minValue:0,maxValue:10,lowerValue:d,upperValue:p,step:1,onValueChange:([_,m])=>{v("magnitudeFrom",_),v("magnitudeTo",m)}})}),A.jsx(hn,{label:"Depth [km]",enabled:t===Zr.EARTHQUAKE,formItemId:"depth",formItem:A.jsx(Qs,{name:"depth",minValue:0,maxValue:200,lowerValue:u,upperValue:c,minLabel:"≤0",maxLabel:"≥200",unit:"",dir:"rtl",step:10,onValueChange:([_,m])=>{v("depthFrom",_),v("depthTo",m)}})}),A.jsx(hn,{label:"Type",enabled:i.length>1,formItemId:"type",formItem:A.jsx("div",{className:"flex gap-4 flex-col sm:flex-row ml-4 sm:ml-0",children:i.map(_=>{const m=(h==null?void 0:h.length)===i.length-1&&!(h!=null&&h.includes(_));return A.jsxs("div",{className:"flex gap-1",children:[A.jsx(lp,{name:_,id:_,checked:!(h!=null&&h.includes(_)),disabled:m,onCheckedChange:O=>{O===!0?v("excludedSubTypes",(h??[]).filter(k=>k!==_)):O===!1&&v("excludedSubTypes",[...h??[],_])},className:mn("h-6 w-6 border rounded",h!=null&&h.includes(_)?"":"bg-primary2-darkest"),children:A.jsx(fp,{children:A.jsx(fh,{className:"text-white"})})}),A.jsx("label",{htmlFor:_,className:"select-none capitalize text-base",children:_.replace("_"," ")})]},_)})})}),r&&A.jsx(hn,{label:"Availability",formItemId:"forSaleFilter",formItem:A.jsxs("fieldset",{className:"flex gap-4 flex-col sm:flex-row ml-4 sm:ml-0",children:[A.jsx("div",{className:"inline-flex items-center",children:A.jsx(Ks,{id:"showAll",name:"forSaleFilter",onChange:()=>v("forSaleOnly",!1),checked:!x,label:"Show all"})}),A.jsx("div",{className:"inline-flex items-center",children:A.jsx(Ks,{id:"forSaleOnly",name:"forSaleFilter",onChange:()=>v("forSaleOnly",!1),checked:x,label:"Show available for sale only"})})]})})]})})})}function Tc(t,i){const r=T.useRef(i);T.useEffect(function(){i!==r.current&&t.attributionControl!=null&&(r.current!=null&&t.attributionControl.removeAttribution(r.current),i!=null&&t.attributionControl.addAttribution(i)),r.current=i},[t,i])}function ly(t,i,r){i.center!==r.center&&t.setLatLng(i.center),i.radius!=null&&i.radius!==r.radius&&t.setRadius(i.radius)}const cy=1;function fy(t){return Object.freeze({__version:cy,map:t})}function hy(t,i){return Object.freeze({...t,...i})}const Lc=T.createContext(null),Ec=Lc.Provider;function Go(){const t=T.useContext(Lc);if(t==null)throw new Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");return t}function dy(t){function i(r,a){const{instance:u,context:c}=t(r).current;return T.useImperativeHandle(a,()=>u),r.children==null?null:B.createElement(Ec,{value:c},r.children)}return T.forwardRef(i)}function py(t){function i(r,a){const[u,c]=T.useState(!1),{instance:h}=t(r,c).current;T.useImperativeHandle(a,()=>h),T.useEffect(function(){u&&h.update()},[h,u,r.children]);const d=h._contentNode;return d?wo.createPortal(r.children,d):null}return T.forwardRef(i)}function my(t){function i(r,a){const{instance:u}=t(r).current;return T.useImperativeHandle(a,()=>u),null}return T.forwardRef(i)}function Ko(t,i){const r=T.useRef();T.useEffect(function(){return i!=null&&t.instance.on(i),r.current=i,function(){r.current!=null&&t.instance.off(r.current),r.current=null}},[t,i])}function ir(t,i){const r=t.pane??i.pane;return r?{...t,pane:r}:t}function vy(t,i){return function(a,u){const c=Go(),h=t(ir(a,c),c);return Tc(c.map,a.attribution),Ko(h.current,a.eventHandlers),i(h.current,c,a,u),h}}var yo={exports:{}};/* @preserve
 * Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
 * (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
 */(function(t,i){(function(r,a){a(i)})(iu,function(r){var a="1.9.4";function u(e){var n,o,s,l;for(o=1,s=arguments.length;o<s;o++){l=arguments[o];for(n in l)e[n]=l[n]}return e}var c=Object.create||function(){function e(){}return function(n){return e.prototype=n,new e}}();function h(e,n){var o=Array.prototype.slice;if(e.bind)return e.bind.apply(e,o.call(arguments,1));var s=o.call(arguments,2);return function(){return e.apply(n,s.length?s.concat(o.call(arguments)):arguments)}}var d=0;function p(e){return"_leaflet_id"in e||(e._leaflet_id=++d),e._leaflet_id}function b(e,n,o){var s,l,f,y;return y=function(){s=!1,l&&(f.apply(o,l),l=!1)},f=function(){s?l=arguments:(e.apply(o,arguments),setTimeout(y,n),s=!0)},f}function w(e,n,o){var s=n[1],l=n[0],f=s-l;return e===s&&o?e:((e-l)%f+f)%f+l}function x(){return!1}function g(e,n){if(n===!1)return e;var o=Math.pow(10,n===void 0?6:n);return Math.round(e*o)/o}function v(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function _(e){return v(e).split(/\s+/)}function m(e,n){Object.prototype.hasOwnProperty.call(e,"options")||(e.options=e.options?c(e.options):{});for(var o in n)e.options[o]=n[o];return e.options}function O(e,n,o){var s=[];for(var l in e)s.push(encodeURIComponent(o?l.toUpperCase():l)+"="+encodeURIComponent(e[l]));return(!n||n.indexOf("?")===-1?"?":"&")+s.join("&")}var k=/\{ *([\w_ -]+) *\}/g;function N(e,n){return e.replace(k,function(o,s){var l=n[s];if(l===void 0)throw new Error("No value provided for variable "+o);return typeof l=="function"&&(l=l(n)),l})}var C=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"};function D(e,n){for(var o=0;o<e.length;o++)if(e[o]===n)return o;return-1}var R="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function I(e){return window["webkit"+e]||window["moz"+e]||window["ms"+e]}var $=0;function oe(e){var n=+new Date,o=Math.max(0,16-(n-$));return $=n+o,window.setTimeout(e,o)}var te=window.requestAnimationFrame||I("RequestAnimationFrame")||oe,le=window.cancelAnimationFrame||I("CancelAnimationFrame")||I("CancelRequestAnimationFrame")||function(e){window.clearTimeout(e)};function ne(e,n,o){if(o&&te===oe)e.call(n);else return te.call(window,h(e,n))}function Q(e){e&&le.call(window,e)}var se={__proto__:null,extend:u,create:c,bind:h,get lastId(){return d},stamp:p,throttle:b,wrapNum:w,falseFn:x,formatNum:g,trim:v,splitWords:_,setOptions:m,getParamString:O,template:N,isArray:C,indexOf:D,emptyImageUrl:R,requestFn:te,cancelFn:le,requestAnimFrame:ne,cancelAnimFrame:Q};function H(){}H.extend=function(e){var n=function(){m(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},o=n.__super__=this.prototype,s=c(o);s.constructor=n,n.prototype=s;for(var l in this)Object.prototype.hasOwnProperty.call(this,l)&&l!=="prototype"&&l!=="__super__"&&(n[l]=this[l]);return e.statics&&u(n,e.statics),e.includes&&(ge(e.includes),u.apply(null,[s].concat(e.includes))),u(s,e),delete s.statics,delete s.includes,s.options&&(s.options=o.options?c(o.options):{},u(s.options,e.options)),s._initHooks=[],s.callInitHooks=function(){if(!this._initHooksCalled){o.callInitHooks&&o.callInitHooks.call(this),this._initHooksCalled=!0;for(var f=0,y=s._initHooks.length;f<y;f++)s._initHooks[f].call(this)}},n},H.include=function(e){var n=this.prototype.options;return u(this.prototype,e),e.options&&(this.prototype.options=n,this.mergeOptions(e.options)),this},H.mergeOptions=function(e){return u(this.prototype.options,e),this},H.addInitHook=function(e){var n=Array.prototype.slice.call(arguments,1),o=typeof e=="function"?e:function(){this[e].apply(this,n)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(o),this};function ge(e){if(!(typeof L>"u"||!L||!L.Mixin)){e=C(e)?e:[e];for(var n=0;n<e.length;n++)e[n]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",new Error().stack)}}var V={on:function(e,n,o){if(typeof e=="object")for(var s in e)this._on(s,e[s],n);else{e=_(e);for(var l=0,f=e.length;l<f;l++)this._on(e[l],n,o)}return this},off:function(e,n,o){if(!arguments.length)delete this._events;else if(typeof e=="object")for(var s in e)this._off(s,e[s],n);else{e=_(e);for(var l=arguments.length===1,f=0,y=e.length;f<y;f++)l?this._off(e[f]):this._off(e[f],n,o)}return this},_on:function(e,n,o,s){if(typeof n!="function"){console.warn("wrong listener type: "+typeof n);return}if(this._listens(e,n,o)===!1){o===this&&(o=void 0);var l={fn:n,ctx:o};s&&(l.once=!0),this._events=this._events||{},this._events[e]=this._events[e]||[],this._events[e].push(l)}},_off:function(e,n,o){var s,l,f;if(this._events&&(s=this._events[e],!!s)){if(arguments.length===1){if(this._firingCount)for(l=0,f=s.length;l<f;l++)s[l].fn=x;delete this._events[e];return}if(typeof n!="function"){console.warn("wrong listener type: "+typeof n);return}var y=this._listens(e,n,o);if(y!==!1){var P=s[y];this._firingCount&&(P.fn=x,this._events[e]=s=s.slice()),s.splice(y,1)}}},fire:function(e,n,o){if(!this.listens(e,o))return this;var s=u({},n,{type:e,target:this,sourceTarget:n&&n.sourceTarget||this});if(this._events){var l=this._events[e];if(l){this._firingCount=this._firingCount+1||1;for(var f=0,y=l.length;f<y;f++){var P=l[f],E=P.fn;P.once&&this.off(e,E,P.ctx),E.call(P.ctx||this,s)}this._firingCount--}}return o&&this._propagateEvent(s),this},listens:function(e,n,o,s){typeof e!="string"&&console.warn('"string" type argument expected');var l=n;typeof n!="function"&&(s=!!n,l=void 0,o=void 0);var f=this._events&&this._events[e];if(f&&f.length&&this._listens(e,l,o)!==!1)return!0;if(s){for(var y in this._eventParents)if(this._eventParents[y].listens(e,n,o,s))return!0}return!1},_listens:function(e,n,o){if(!this._events)return!1;var s=this._events[e]||[];if(!n)return!!s.length;o===this&&(o=void 0);for(var l=0,f=s.length;l<f;l++)if(s[l].fn===n&&s[l].ctx===o)return l;return!1},once:function(e,n,o){if(typeof e=="object")for(var s in e)this._on(s,e[s],n,!0);else{e=_(e);for(var l=0,f=e.length;l<f;l++)this._on(e[l],n,o,!0)}return this},addEventParent:function(e){return this._eventParents=this._eventParents||{},this._eventParents[p(e)]=e,this},removeEventParent:function(e){return this._eventParents&&delete this._eventParents[p(e)],this},_propagateEvent:function(e){for(var n in this._eventParents)this._eventParents[n].fire(e.type,u({layer:e.target,propagatedFrom:e.target},e),!0)}};V.addEventListener=V.on,V.removeEventListener=V.clearAllEventListeners=V.off,V.addOneTimeEventListener=V.once,V.fireEvent=V.fire,V.hasEventListeners=V.listens;var _e=H.extend(V);function Z(e,n,o){this.x=o?Math.round(e):e,this.y=o?Math.round(n):n}var ve=Math.trunc||function(e){return e>0?Math.floor(e):Math.ceil(e)};Z.prototype={clone:function(){return new Z(this.x,this.y)},add:function(e){return this.clone()._add(W(e))},_add:function(e){return this.x+=e.x,this.y+=e.y,this},subtract:function(e){return this.clone()._subtract(W(e))},_subtract:function(e){return this.x-=e.x,this.y-=e.y,this},divideBy:function(e){return this.clone()._divideBy(e)},_divideBy:function(e){return this.x/=e,this.y/=e,this},multiplyBy:function(e){return this.clone()._multiplyBy(e)},_multiplyBy:function(e){return this.x*=e,this.y*=e,this},scaleBy:function(e){return new Z(this.x*e.x,this.y*e.y)},unscaleBy:function(e){return new Z(this.x/e.x,this.y/e.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=ve(this.x),this.y=ve(this.y),this},distanceTo:function(e){e=W(e);var n=e.x-this.x,o=e.y-this.y;return Math.sqrt(n*n+o*o)},equals:function(e){return e=W(e),e.x===this.x&&e.y===this.y},contains:function(e){return e=W(e),Math.abs(e.x)<=Math.abs(this.x)&&Math.abs(e.y)<=Math.abs(this.y)},toString:function(){return"Point("+g(this.x)+", "+g(this.y)+")"}};function W(e,n,o){return e instanceof Z?e:C(e)?new Z(e[0],e[1]):e==null?e:typeof e=="object"&&"x"in e&&"y"in e?new Z(e.x,e.y):new Z(e,n,o)}function J(e,n){if(e)for(var o=n?[e,n]:e,s=0,l=o.length;s<l;s++)this.extend(o[s])}J.prototype={extend:function(e){var n,o;if(!e)return this;if(e instanceof Z||typeof e[0]=="number"||"x"in e)n=o=W(e);else if(e=ce(e),n=e.min,o=e.max,!n||!o)return this;return!this.min&&!this.max?(this.min=n.clone(),this.max=o.clone()):(this.min.x=Math.min(n.x,this.min.x),this.max.x=Math.max(o.x,this.max.x),this.min.y=Math.min(n.y,this.min.y),this.max.y=Math.max(o.y,this.max.y)),this},getCenter:function(e){return W((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,e)},getBottomLeft:function(){return W(this.min.x,this.max.y)},getTopRight:function(){return W(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(e){var n,o;return typeof e[0]=="number"||e instanceof Z?e=W(e):e=ce(e),e instanceof J?(n=e.min,o=e.max):n=o=e,n.x>=this.min.x&&o.x<=this.max.x&&n.y>=this.min.y&&o.y<=this.max.y},intersects:function(e){e=ce(e);var n=this.min,o=this.max,s=e.min,l=e.max,f=l.x>=n.x&&s.x<=o.x,y=l.y>=n.y&&s.y<=o.y;return f&&y},overlaps:function(e){e=ce(e);var n=this.min,o=this.max,s=e.min,l=e.max,f=l.x>n.x&&s.x<o.x,y=l.y>n.y&&s.y<o.y;return f&&y},isValid:function(){return!!(this.min&&this.max)},pad:function(e){var n=this.min,o=this.max,s=Math.abs(n.x-o.x)*e,l=Math.abs(n.y-o.y)*e;return ce(W(n.x-s,n.y-l),W(o.x+s,o.y+l))},equals:function(e){return e?(e=ce(e),this.min.equals(e.getTopLeft())&&this.max.equals(e.getBottomRight())):!1}};function ce(e,n){return!e||e instanceof J?e:new J(e,n)}function ye(e,n){if(e)for(var o=n?[e,n]:e,s=0,l=o.length;s<l;s++)this.extend(o[s])}ye.prototype={extend:function(e){var n=this._southWest,o=this._northEast,s,l;if(e instanceof X)s=e,l=e;else if(e instanceof ye){if(s=e._southWest,l=e._northEast,!s||!l)return this}else return e?this.extend(G(e)||de(e)):this;return!n&&!o?(this._southWest=new X(s.lat,s.lng),this._northEast=new X(l.lat,l.lng)):(n.lat=Math.min(s.lat,n.lat),n.lng=Math.min(s.lng,n.lng),o.lat=Math.max(l.lat,o.lat),o.lng=Math.max(l.lng,o.lng)),this},pad:function(e){var n=this._southWest,o=this._northEast,s=Math.abs(n.lat-o.lat)*e,l=Math.abs(n.lng-o.lng)*e;return new ye(new X(n.lat-s,n.lng-l),new X(o.lat+s,o.lng+l))},getCenter:function(){return new X((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new X(this.getNorth(),this.getWest())},getSouthEast:function(){return new X(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(e){typeof e[0]=="number"||e instanceof X||"lat"in e?e=G(e):e=de(e);var n=this._southWest,o=this._northEast,s,l;return e instanceof ye?(s=e.getSouthWest(),l=e.getNorthEast()):s=l=e,s.lat>=n.lat&&l.lat<=o.lat&&s.lng>=n.lng&&l.lng<=o.lng},intersects:function(e){e=de(e);var n=this._southWest,o=this._northEast,s=e.getSouthWest(),l=e.getNorthEast(),f=l.lat>=n.lat&&s.lat<=o.lat,y=l.lng>=n.lng&&s.lng<=o.lng;return f&&y},overlaps:function(e){e=de(e);var n=this._southWest,o=this._northEast,s=e.getSouthWest(),l=e.getNorthEast(),f=l.lat>n.lat&&s.lat<o.lat,y=l.lng>n.lng&&s.lng<o.lng;return f&&y},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(e,n){return e?(e=de(e),this._southWest.equals(e.getSouthWest(),n)&&this._northEast.equals(e.getNorthEast(),n)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function de(e,n){return e instanceof ye?e:new ye(e,n)}function X(e,n,o){if(isNaN(e)||isNaN(n))throw new Error("Invalid LatLng object: ("+e+", "+n+")");this.lat=+e,this.lng=+n,o!==void 0&&(this.alt=+o)}X.prototype={equals:function(e,n){if(!e)return!1;e=G(e);var o=Math.max(Math.abs(this.lat-e.lat),Math.abs(this.lng-e.lng));return o<=(n===void 0?1e-9:n)},toString:function(e){return"LatLng("+g(this.lat,e)+", "+g(this.lng,e)+")"},distanceTo:function(e){return Te.distance(this,G(e))},wrap:function(){return Te.wrapLatLng(this)},toBounds:function(e){var n=180*e/40075017,o=n/Math.cos(Math.PI/180*this.lat);return de([this.lat-n,this.lng-o],[this.lat+n,this.lng+o])},clone:function(){return new X(this.lat,this.lng,this.alt)}};function G(e,n,o){return e instanceof X?e:C(e)&&typeof e[0]!="object"?e.length===3?new X(e[0],e[1],e[2]):e.length===2?new X(e[0],e[1]):null:e==null?e:typeof e=="object"&&"lat"in e?new X(e.lat,"lng"in e?e.lng:e.lon,e.alt):n===void 0?null:new X(e,n,o)}var Ce={latLngToPoint:function(e,n){var o=this.projection.project(e),s=this.scale(n);return this.transformation._transform(o,s)},pointToLatLng:function(e,n){var o=this.scale(n),s=this.transformation.untransform(e,o);return this.projection.unproject(s)},project:function(e){return this.projection.project(e)},unproject:function(e){return this.projection.unproject(e)},scale:function(e){return 256*Math.pow(2,e)},zoom:function(e){return Math.log(e/256)/Math.LN2},getProjectedBounds:function(e){if(this.infinite)return null;var n=this.projection.bounds,o=this.scale(e),s=this.transformation.transform(n.min,o),l=this.transformation.transform(n.max,o);return new J(s,l)},infinite:!1,wrapLatLng:function(e){var n=this.wrapLng?w(e.lng,this.wrapLng,!0):e.lng,o=this.wrapLat?w(e.lat,this.wrapLat,!0):e.lat,s=e.alt;return new X(o,n,s)},wrapLatLngBounds:function(e){var n=e.getCenter(),o=this.wrapLatLng(n),s=n.lat-o.lat,l=n.lng-o.lng;if(s===0&&l===0)return e;var f=e.getSouthWest(),y=e.getNorthEast(),P=new X(f.lat-s,f.lng-l),E=new X(y.lat-s,y.lng-l);return new ye(P,E)}},Te=u({},Ce,{wrapLng:[-180,180],R:6371e3,distance:function(e,n){var o=Math.PI/180,s=e.lat*o,l=n.lat*o,f=Math.sin((n.lat-e.lat)*o/2),y=Math.sin((n.lng-e.lng)*o/2),P=f*f+Math.cos(s)*Math.cos(l)*y*y,E=2*Math.atan2(Math.sqrt(P),Math.sqrt(1-P));return this.R*E}}),at=6378137,ht={R:at,MAX_LATITUDE:85.0511287798,project:function(e){var n=Math.PI/180,o=this.MAX_LATITUDE,s=Math.max(Math.min(o,e.lat),-o),l=Math.sin(s*n);return new Z(this.R*e.lng*n,this.R*Math.log((1+l)/(1-l))/2)},unproject:function(e){var n=180/Math.PI;return new X((2*Math.atan(Math.exp(e.y/this.R))-Math.PI/2)*n,e.x*n/this.R)},bounds:function(){var e=at*Math.PI;return new J([-e,-e],[e,e])}()};function st(e,n,o,s){if(C(e)){this._a=e[0],this._b=e[1],this._c=e[2],this._d=e[3];return}this._a=e,this._b=n,this._c=o,this._d=s}st.prototype={transform:function(e,n){return this._transform(e.clone(),n)},_transform:function(e,n){return n=n||1,e.x=n*(this._a*e.x+this._b),e.y=n*(this._c*e.y+this._d),e},untransform:function(e,n){return n=n||1,new Z((e.x/n-this._b)/this._a,(e.y/n-this._d)/this._c)}};function Be(e,n,o,s){return new st(e,n,o,s)}var ut=u({},Te,{code:"EPSG:3857",projection:ht,transformation:function(){var e=.5/(Math.PI*ht.R);return Be(e,.5,-e,.5)}()}),be=u({},ut,{code:"EPSG:900913"});function Tt(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function Lt(e,n){var o="",s,l,f,y,P,E;for(s=0,f=e.length;s<f;s++){for(P=e[s],l=0,y=P.length;l<y;l++)E=P[l],o+=(l?"L":"M")+E.x+" "+E.y;o+=n?F.svg?"z":"x":""}return o||"M0 0"}var Xe=document.documentElement.style,dt="ActiveXObject"in window,Sn=dt&&!document.addEventListener,Ue="msLaunchUri"in navigator&&!("documentMode"in document),lt=vt("webkit"),Ae=vt("android"),Je=vt("android 2")||vt("android 3"),pt=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),ie=Ae&&vt("Google")&&pt<537&&!("AudioNode"in window),ue=!!window.opera,Y=!Ue&&vt("chrome"),pe=vt("gecko")&&!lt&&!ue&&!dt,mt=!Y&&vt("safari"),He=vt("phantom"),he="OTransition"in Xe,q=navigator.platform.indexOf("Win")===0,Ye=dt&&"transition"in Xe,Wt="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!Je,Tn="MozPerspective"in Xe,Dc=!window.L_DISABLE_3D&&(Ye||Wt||Tn)&&!he&&!He,Ln=typeof orientation<"u"||vt("mobile"),Mc=Ln&&lt,kc=Ln&&Wt,Qo=!window.PointerEvent&&window.MSPointerEvent,ea=!!(window.PointerEvent||Qo),ta="ontouchstart"in window||!!window.TouchEvent,Ac=!window.L_NO_TOUCH&&(ta||ea),Ic=Ln&&ue,Nc=Ln&&pe,Rc=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,jc=function(){var e=!1;try{var n=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("testPassiveEventSupport",x,n),window.removeEventListener("testPassiveEventSupport",x,n)}catch{}return e}(),$c=function(){return!!document.createElement("canvas").getContext}(),or=!!(document.createElementNS&&Tt("svg").createSVGRect),Bc=!!or&&function(){var e=document.createElement("div");return e.innerHTML="<svg/>",(e.firstChild&&e.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),zc=!or&&function(){try{var e=document.createElement("div");e.innerHTML='<v:shape adj="1"/>';var n=e.firstChild;return n.style.behavior="url(#default#VML)",n&&typeof n.adj=="object"}catch{return!1}}(),Wc=navigator.platform.indexOf("Mac")===0,Zc=navigator.platform.indexOf("Linux")===0;function vt(e){return navigator.userAgent.toLowerCase().indexOf(e)>=0}var F={ie:dt,ielt9:Sn,edge:Ue,webkit:lt,android:Ae,android23:Je,androidStock:ie,opera:ue,chrome:Y,gecko:pe,safari:mt,phantom:He,opera12:he,win:q,ie3d:Ye,webkit3d:Wt,gecko3d:Tn,any3d:Dc,mobile:Ln,mobileWebkit:Mc,mobileWebkit3d:kc,msPointer:Qo,pointer:ea,touch:Ac,touchNative:ta,mobileOpera:Ic,mobileGecko:Nc,retina:Rc,passiveEvents:jc,canvas:$c,svg:or,vml:zc,inlineSvg:Bc,mac:Wc,linux:Zc},na=F.msPointer?"MSPointerDown":"pointerdown",ia=F.msPointer?"MSPointerMove":"pointermove",ra=F.msPointer?"MSPointerUp":"pointerup",oa=F.msPointer?"MSPointerCancel":"pointercancel",ar={touchstart:na,touchmove:ia,touchend:ra,touchcancel:oa},aa={touchstart:qc,touchmove:di,touchend:di,touchcancel:di},nn={},sa=!1;function Fc(e,n,o){return n==="touchstart"&&Yc(),aa[n]?(o=aa[n].bind(this,o),e.addEventListener(ar[n],o,!1),o):(console.warn("wrong event specified:",n),x)}function Vc(e,n,o){if(!ar[n]){console.warn("wrong event specified:",n);return}e.removeEventListener(ar[n],o,!1)}function Uc(e){nn[e.pointerId]=e}function Hc(e){nn[e.pointerId]&&(nn[e.pointerId]=e)}function ua(e){delete nn[e.pointerId]}function Yc(){sa||(document.addEventListener(na,Uc,!0),document.addEventListener(ia,Hc,!0),document.addEventListener(ra,ua,!0),document.addEventListener(oa,ua,!0),sa=!0)}function di(e,n){if(n.pointerType!==(n.MSPOINTER_TYPE_MOUSE||"mouse")){n.touches=[];for(var o in nn)n.touches.push(nn[o]);n.changedTouches=[n],e(n)}}function qc(e,n){n.MSPOINTER_TYPE_TOUCH&&n.pointerType===n.MSPOINTER_TYPE_TOUCH&&Ie(n),di(e,n)}function Gc(e){var n={},o,s;for(s in e)o=e[s],n[s]=o&&o.bind?o.bind(e):o;return e=n,n.type="dblclick",n.detail=2,n.isTrusted=!1,n._simulated=!0,n}var Kc=200;function Xc(e,n){e.addEventListener("dblclick",n);var o=0,s;function l(f){if(f.detail!==1){s=f.detail;return}if(!(f.pointerType==="mouse"||f.sourceCapabilities&&!f.sourceCapabilities.firesTouchEvents)){var y=da(f);if(!(y.some(function(E){return E instanceof HTMLLabelElement&&E.attributes.for})&&!y.some(function(E){return E instanceof HTMLInputElement||E instanceof HTMLSelectElement}))){var P=Date.now();P-o<=Kc?(s++,s===2&&n(Gc(f))):s=1,o=P}}}return e.addEventListener("click",l),{dblclick:n,simDblclick:l}}function Jc(e,n){e.removeEventListener("dblclick",n.dblclick),e.removeEventListener("click",n.simDblclick)}var sr=vi(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),En=vi(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),la=En==="webkitTransition"||En==="OTransition"?En+"End":"transitionend";function ca(e){return typeof e=="string"?document.getElementById(e):e}function Cn(e,n){var o=e.style[n]||e.currentStyle&&e.currentStyle[n];if((!o||o==="auto")&&document.defaultView){var s=document.defaultView.getComputedStyle(e,null);o=s?s[n]:null}return o==="auto"?null:o}function me(e,n,o){var s=document.createElement(e);return s.className=n||"",o&&o.appendChild(s),s}function Pe(e){var n=e.parentNode;n&&n.removeChild(e)}function pi(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function rn(e){var n=e.parentNode;n&&n.lastChild!==e&&n.appendChild(e)}function on(e){var n=e.parentNode;n&&n.firstChild!==e&&n.insertBefore(e,n.firstChild)}function ur(e,n){if(e.classList!==void 0)return e.classList.contains(n);var o=mi(e);return o.length>0&&new RegExp("(^|\\s)"+n+"(\\s|$)").test(o)}function re(e,n){if(e.classList!==void 0)for(var o=_(n),s=0,l=o.length;s<l;s++)e.classList.add(o[s]);else if(!ur(e,n)){var f=mi(e);lr(e,(f?f+" ":"")+n)}}function Le(e,n){e.classList!==void 0?e.classList.remove(n):lr(e,v((" "+mi(e)+" ").replace(" "+n+" "," ")))}function lr(e,n){e.className.baseVal===void 0?e.className=n:e.className.baseVal=n}function mi(e){return e.correspondingElement&&(e=e.correspondingElement),e.className.baseVal===void 0?e.className:e.className.baseVal}function Qe(e,n){"opacity"in e.style?e.style.opacity=n:"filter"in e.style&&Qc(e,n)}function Qc(e,n){var o=!1,s="DXImageTransform.Microsoft.Alpha";try{o=e.filters.item(s)}catch{if(n===1)return}n=Math.round(n*100),o?(o.Enabled=n!==100,o.Opacity=n):e.style.filter+=" progid:"+s+"(opacity="+n+")"}function vi(e){for(var n=document.documentElement.style,o=0;o<e.length;o++)if(e[o]in n)return e[o];return!1}function Zt(e,n,o){var s=n||new Z(0,0);e.style[sr]=(F.ie3d?"translate("+s.x+"px,"+s.y+"px)":"translate3d("+s.x+"px,"+s.y+"px,0)")+(o?" scale("+o+")":"")}function De(e,n){e._leaflet_pos=n,F.any3d?Zt(e,n):(e.style.left=n.x+"px",e.style.top=n.y+"px")}function Ft(e){return e._leaflet_pos||new Z(0,0)}var Dn,Mn,cr;if("onselectstart"in document)Dn=function(){ee(window,"selectstart",Ie)},Mn=function(){we(window,"selectstart",Ie)};else{var kn=vi(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);Dn=function(){if(kn){var e=document.documentElement.style;cr=e[kn],e[kn]="none"}},Mn=function(){kn&&(document.documentElement.style[kn]=cr,cr=void 0)}}function fr(){ee(window,"dragstart",Ie)}function hr(){we(window,"dragstart",Ie)}var _i,dr;function pr(e){for(;e.tabIndex===-1;)e=e.parentNode;e.style&&(gi(),_i=e,dr=e.style.outlineStyle,e.style.outlineStyle="none",ee(window,"keydown",gi))}function gi(){_i&&(_i.style.outlineStyle=dr,_i=void 0,dr=void 0,we(window,"keydown",gi))}function fa(e){do e=e.parentNode;while((!e.offsetWidth||!e.offsetHeight)&&e!==document.body);return e}function mr(e){var n=e.getBoundingClientRect();return{x:n.width/e.offsetWidth||1,y:n.height/e.offsetHeight||1,boundingClientRect:n}}var ef={__proto__:null,TRANSFORM:sr,TRANSITION:En,TRANSITION_END:la,get:ca,getStyle:Cn,create:me,remove:Pe,empty:pi,toFront:rn,toBack:on,hasClass:ur,addClass:re,removeClass:Le,setClass:lr,getClass:mi,setOpacity:Qe,testProp:vi,setTransform:Zt,setPosition:De,getPosition:Ft,get disableTextSelection(){return Dn},get enableTextSelection(){return Mn},disableImageDrag:fr,enableImageDrag:hr,preventOutline:pr,restoreOutline:gi,getSizedParentNode:fa,getScale:mr};function ee(e,n,o,s){if(n&&typeof n=="object")for(var l in n)_r(e,l,n[l],o);else{n=_(n);for(var f=0,y=n.length;f<y;f++)_r(e,n[f],o,s)}return this}var _t="_leaflet_events";function we(e,n,o,s){if(arguments.length===1)ha(e),delete e[_t];else if(n&&typeof n=="object")for(var l in n)gr(e,l,n[l],o);else if(n=_(n),arguments.length===2)ha(e,function(P){return D(n,P)!==-1});else for(var f=0,y=n.length;f<y;f++)gr(e,n[f],o,s);return this}function ha(e,n){for(var o in e[_t]){var s=o.split(/\d/)[0];(!n||n(s))&&gr(e,s,null,null,o)}}var vr={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function _r(e,n,o,s){var l=n+p(o)+(s?"_"+p(s):"");if(e[_t]&&e[_t][l])return this;var f=function(P){return o.call(s||e,P||window.event)},y=f;!F.touchNative&&F.pointer&&n.indexOf("touch")===0?f=Fc(e,n,f):F.touch&&n==="dblclick"?f=Xc(e,f):"addEventListener"in e?n==="touchstart"||n==="touchmove"||n==="wheel"||n==="mousewheel"?e.addEventListener(vr[n]||n,f,F.passiveEvents?{passive:!1}:!1):n==="mouseenter"||n==="mouseleave"?(f=function(P){P=P||window.event,br(e,P)&&y(P)},e.addEventListener(vr[n],f,!1)):e.addEventListener(n,y,!1):e.attachEvent("on"+n,f),e[_t]=e[_t]||{},e[_t][l]=f}function gr(e,n,o,s,l){l=l||n+p(o)+(s?"_"+p(s):"");var f=e[_t]&&e[_t][l];if(!f)return this;!F.touchNative&&F.pointer&&n.indexOf("touch")===0?Vc(e,n,f):F.touch&&n==="dblclick"?Jc(e,f):"removeEventListener"in e?e.removeEventListener(vr[n]||n,f,!1):e.detachEvent("on"+n,f),e[_t][l]=null}function Vt(e){return e.stopPropagation?e.stopPropagation():e.originalEvent?e.originalEvent._stopped=!0:e.cancelBubble=!0,this}function yr(e){return _r(e,"wheel",Vt),this}function An(e){return ee(e,"mousedown touchstart dblclick contextmenu",Vt),e._leaflet_disable_click=!0,this}function Ie(e){return e.preventDefault?e.preventDefault():e.returnValue=!1,this}function Ut(e){return Ie(e),Vt(e),this}function da(e){if(e.composedPath)return e.composedPath();for(var n=[],o=e.target;o;)n.push(o),o=o.parentNode;return n}function pa(e,n){if(!n)return new Z(e.clientX,e.clientY);var o=mr(n),s=o.boundingClientRect;return new Z((e.clientX-s.left)/o.x-n.clientLeft,(e.clientY-s.top)/o.y-n.clientTop)}var tf=F.linux&&F.chrome?window.devicePixelRatio:F.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function ma(e){return F.edge?e.wheelDeltaY/2:e.deltaY&&e.deltaMode===0?-e.deltaY/tf:e.deltaY&&e.deltaMode===1?-e.deltaY*20:e.deltaY&&e.deltaMode===2?-e.deltaY*60:e.deltaX||e.deltaZ?0:e.wheelDelta?(e.wheelDeltaY||e.wheelDelta)/2:e.detail&&Math.abs(e.detail)<32765?-e.detail*20:e.detail?e.detail/-32765*60:0}function br(e,n){var o=n.relatedTarget;if(!o)return!0;try{for(;o&&o!==e;)o=o.parentNode}catch{return!1}return o!==e}var nf={__proto__:null,on:ee,off:we,stopPropagation:Vt,disableScrollPropagation:yr,disableClickPropagation:An,preventDefault:Ie,stop:Ut,getPropagationPath:da,getMousePosition:pa,getWheelDelta:ma,isExternalTarget:br,addListener:ee,removeListener:we},va=_e.extend({run:function(e,n,o,s){this.stop(),this._el=e,this._inProgress=!0,this._duration=o||.25,this._easeOutPower=1/Math.max(s||.5,.2),this._startPos=Ft(e),this._offset=n.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=ne(this._animate,this),this._step()},_step:function(e){var n=+new Date-this._startTime,o=this._duration*1e3;n<o?this._runFrame(this._easeOut(n/o),e):(this._runFrame(1),this._complete())},_runFrame:function(e,n){var o=this._startPos.add(this._offset.multiplyBy(e));n&&o._round(),De(this._el,o),this.fire("step")},_complete:function(){Q(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(e){return 1-Math.pow(1-e,this._easeOutPower)}}),fe=_e.extend({options:{crs:ut,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(e,n){n=m(this,n),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(e),this._initLayout(),this._onResize=h(this._onResize,this),this._initEvents(),n.maxBounds&&this.setMaxBounds(n.maxBounds),n.zoom!==void 0&&(this._zoom=this._limitZoom(n.zoom)),n.center&&n.zoom!==void 0&&this.setView(G(n.center),n.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=En&&F.any3d&&!F.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),ee(this._proxy,la,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(e,n,o){if(n=n===void 0?this._zoom:this._limitZoom(n),e=this._limitCenter(G(e),n,this.options.maxBounds),o=o||{},this._stop(),this._loaded&&!o.reset&&o!==!0){o.animate!==void 0&&(o.zoom=u({animate:o.animate},o.zoom),o.pan=u({animate:o.animate,duration:o.duration},o.pan));var s=this._zoom!==n?this._tryAnimatedZoom&&this._tryAnimatedZoom(e,n,o.zoom):this._tryAnimatedPan(e,o.pan);if(s)return clearTimeout(this._sizeTimer),this}return this._resetView(e,n,o.pan&&o.pan.noMoveStart),this},setZoom:function(e,n){return this._loaded?this.setView(this.getCenter(),e,{zoom:n}):(this._zoom=e,this)},zoomIn:function(e,n){return e=e||(F.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+e,n)},zoomOut:function(e,n){return e=e||(F.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-e,n)},setZoomAround:function(e,n,o){var s=this.getZoomScale(n),l=this.getSize().divideBy(2),f=e instanceof Z?e:this.latLngToContainerPoint(e),y=f.subtract(l).multiplyBy(1-1/s),P=this.containerPointToLatLng(l.add(y));return this.setView(P,n,{zoom:o})},_getBoundsCenterZoom:function(e,n){n=n||{},e=e.getBounds?e.getBounds():de(e);var o=W(n.paddingTopLeft||n.padding||[0,0]),s=W(n.paddingBottomRight||n.padding||[0,0]),l=this.getBoundsZoom(e,!1,o.add(s));if(l=typeof n.maxZoom=="number"?Math.min(n.maxZoom,l):l,l===1/0)return{center:e.getCenter(),zoom:l};var f=s.subtract(o).divideBy(2),y=this.project(e.getSouthWest(),l),P=this.project(e.getNorthEast(),l),E=this.unproject(y.add(P).divideBy(2).add(f),l);return{center:E,zoom:l}},fitBounds:function(e,n){if(e=de(e),!e.isValid())throw new Error("Bounds are not valid.");var o=this._getBoundsCenterZoom(e,n);return this.setView(o.center,o.zoom,n)},fitWorld:function(e){return this.fitBounds([[-90,-180],[90,180]],e)},panTo:function(e,n){return this.setView(e,this._zoom,{pan:n})},panBy:function(e,n){if(e=W(e).round(),n=n||{},!e.x&&!e.y)return this.fire("moveend");if(n.animate!==!0&&!this.getSize().contains(e))return this._resetView(this.unproject(this.project(this.getCenter()).add(e)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new va,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),n.noMoveStart||this.fire("movestart"),n.animate!==!1){re(this._mapPane,"leaflet-pan-anim");var o=this._getMapPanePos().subtract(e).round();this._panAnim.run(this._mapPane,o,n.duration||.25,n.easeLinearity)}else this._rawPanBy(e),this.fire("move").fire("moveend");return this},flyTo:function(e,n,o){if(o=o||{},o.animate===!1||!F.any3d)return this.setView(e,n,o);this._stop();var s=this.project(this.getCenter()),l=this.project(e),f=this.getSize(),y=this._zoom;e=G(e),n=n===void 0?y:n;var P=Math.max(f.x,f.y),E=P*this.getZoomScale(y,n),M=l.distanceTo(s)||1,j=1.42,U=j*j;function ae(Me){var Di=Me?-1:1,Uf=Me?E:P,Hf=E*E-P*P+Di*U*U*M*M,Yf=2*Uf*U*M,Mr=Hf/Yf,Ka=Math.sqrt(Mr*Mr+1)-Mr,qf=Ka<1e-9?-18:Math.log(Ka);return qf}function ze(Me){return(Math.exp(Me)-Math.exp(-Me))/2}function ke(Me){return(Math.exp(Me)+Math.exp(-Me))/2}function tt(Me){return ze(Me)/ke(Me)}var We=ae(0);function fn(Me){return P*(ke(We)/ke(We+j*Me))}function Wf(Me){return P*(ke(We)*tt(We+j*Me)-ze(We))/U}function Zf(Me){return 1-Math.pow(1-Me,1.5)}var Ff=Date.now(),qa=(ae(1)-We)/j,Vf=o.duration?1e3*o.duration:1e3*qa*.8;function Ga(){var Me=(Date.now()-Ff)/Vf,Di=Zf(Me)*qa;Me<=1?(this._flyToFrame=ne(Ga,this),this._move(this.unproject(s.add(l.subtract(s).multiplyBy(Wf(Di)/M)),y),this.getScaleZoom(P/fn(Di),y),{flyTo:!0})):this._move(e,n)._moveEnd(!0)}return this._moveStart(!0,o.noMoveStart),Ga.call(this),this},flyToBounds:function(e,n){var o=this._getBoundsCenterZoom(e,n);return this.flyTo(o.center,o.zoom,n)},setMaxBounds:function(e){return e=de(e),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),e.isValid()?(this.options.maxBounds=e,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(e){var n=this.options.minZoom;return this.options.minZoom=e,this._loaded&&n!==e&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(e):this},setMaxZoom:function(e){var n=this.options.maxZoom;return this.options.maxZoom=e,this._loaded&&n!==e&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(e):this},panInsideBounds:function(e,n){this._enforcingBounds=!0;var o=this.getCenter(),s=this._limitCenter(o,this._zoom,de(e));return o.equals(s)||this.panTo(s,n),this._enforcingBounds=!1,this},panInside:function(e,n){n=n||{};var o=W(n.paddingTopLeft||n.padding||[0,0]),s=W(n.paddingBottomRight||n.padding||[0,0]),l=this.project(this.getCenter()),f=this.project(e),y=this.getPixelBounds(),P=ce([y.min.add(o),y.max.subtract(s)]),E=P.getSize();if(!P.contains(f)){this._enforcingBounds=!0;var M=f.subtract(P.getCenter()),j=P.extend(f).getSize().subtract(E);l.x+=M.x<0?-j.x:j.x,l.y+=M.y<0?-j.y:j.y,this.panTo(this.unproject(l),n),this._enforcingBounds=!1}return this},invalidateSize:function(e){if(!this._loaded)return this;e=u({animate:!1,pan:!0},e===!0?{animate:!0}:e);var n=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var o=this.getSize(),s=n.divideBy(2).round(),l=o.divideBy(2).round(),f=s.subtract(l);return!f.x&&!f.y?this:(e.animate&&e.pan?this.panBy(f):(e.pan&&this._rawPanBy(f),this.fire("move"),e.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(h(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:n,newSize:o}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(e){if(e=this._locateOptions=u({timeout:1e4,watch:!1},e),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var n=h(this._handleGeolocationResponse,this),o=h(this._handleGeolocationError,this);return e.watch?this._locationWatchId=navigator.geolocation.watchPosition(n,o,e):navigator.geolocation.getCurrentPosition(n,o,e),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(e){if(this._container._leaflet_id){var n=e.code,o=e.message||(n===1?"permission denied":n===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:n,message:"Geolocation error: "+o+"."})}},_handleGeolocationResponse:function(e){if(this._container._leaflet_id){var n=e.coords.latitude,o=e.coords.longitude,s=new X(n,o),l=s.toBounds(e.coords.accuracy*2),f=this._locateOptions;if(f.setView){var y=this.getBoundsZoom(l);this.setView(s,f.maxZoom?Math.min(y,f.maxZoom):y)}var P={latlng:s,bounds:l,timestamp:e.timestamp};for(var E in e.coords)typeof e.coords[E]=="number"&&(P[E]=e.coords[E]);this.fire("locationfound",P)}},addHandler:function(e,n){if(!n)return this;var o=this[e]=new n(this);return this._handlers.push(o),this.options[e]&&o.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),Pe(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(Q(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var e;for(e in this._layers)this._layers[e].remove();for(e in this._panes)Pe(this._panes[e]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(e,n){var o="leaflet-pane"+(e?" leaflet-"+e.replace("Pane","")+"-pane":""),s=me("div",o,n||this._mapPane);return e&&(this._panes[e]=s),s},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var e=this.getPixelBounds(),n=this.unproject(e.getBottomLeft()),o=this.unproject(e.getTopRight());return new ye(n,o)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(e,n,o){e=de(e),o=W(o||[0,0]);var s=this.getZoom()||0,l=this.getMinZoom(),f=this.getMaxZoom(),y=e.getNorthWest(),P=e.getSouthEast(),E=this.getSize().subtract(o),M=ce(this.project(P,s),this.project(y,s)).getSize(),j=F.any3d?this.options.zoomSnap:1,U=E.x/M.x,ae=E.y/M.y,ze=n?Math.max(U,ae):Math.min(U,ae);return s=this.getScaleZoom(ze,s),j&&(s=Math.round(s/(j/100))*(j/100),s=n?Math.ceil(s/j)*j:Math.floor(s/j)*j),Math.max(l,Math.min(f,s))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new Z(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(e,n){var o=this._getTopLeftPoint(e,n);return new J(o,o.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(e){return this.options.crs.getProjectedBounds(e===void 0?this.getZoom():e)},getPane:function(e){return typeof e=="string"?this._panes[e]:e},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(e,n){var o=this.options.crs;return n=n===void 0?this._zoom:n,o.scale(e)/o.scale(n)},getScaleZoom:function(e,n){var o=this.options.crs;n=n===void 0?this._zoom:n;var s=o.zoom(e*o.scale(n));return isNaN(s)?1/0:s},project:function(e,n){return n=n===void 0?this._zoom:n,this.options.crs.latLngToPoint(G(e),n)},unproject:function(e,n){return n=n===void 0?this._zoom:n,this.options.crs.pointToLatLng(W(e),n)},layerPointToLatLng:function(e){var n=W(e).add(this.getPixelOrigin());return this.unproject(n)},latLngToLayerPoint:function(e){var n=this.project(G(e))._round();return n._subtract(this.getPixelOrigin())},wrapLatLng:function(e){return this.options.crs.wrapLatLng(G(e))},wrapLatLngBounds:function(e){return this.options.crs.wrapLatLngBounds(de(e))},distance:function(e,n){return this.options.crs.distance(G(e),G(n))},containerPointToLayerPoint:function(e){return W(e).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(e){return W(e).add(this._getMapPanePos())},containerPointToLatLng:function(e){var n=this.containerPointToLayerPoint(W(e));return this.layerPointToLatLng(n)},latLngToContainerPoint:function(e){return this.layerPointToContainerPoint(this.latLngToLayerPoint(G(e)))},mouseEventToContainerPoint:function(e){return pa(e,this._container)},mouseEventToLayerPoint:function(e){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(e))},mouseEventToLatLng:function(e){return this.layerPointToLatLng(this.mouseEventToLayerPoint(e))},_initContainer:function(e){var n=this._container=ca(e);if(n){if(n._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");ee(n,"scroll",this._onScroll,this),this._containerId=p(n)},_initLayout:function(){var e=this._container;this._fadeAnimated=this.options.fadeAnimation&&F.any3d,re(e,"leaflet-container"+(F.touch?" leaflet-touch":"")+(F.retina?" leaflet-retina":"")+(F.ielt9?" leaflet-oldie":"")+(F.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var n=Cn(e,"position");n!=="absolute"&&n!=="relative"&&n!=="fixed"&&n!=="sticky"&&(e.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var e=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),De(this._mapPane,new Z(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(re(e.markerPane,"leaflet-zoom-hide"),re(e.shadowPane,"leaflet-zoom-hide"))},_resetView:function(e,n,o){De(this._mapPane,new Z(0,0));var s=!this._loaded;this._loaded=!0,n=this._limitZoom(n),this.fire("viewprereset");var l=this._zoom!==n;this._moveStart(l,o)._move(e,n)._moveEnd(l),this.fire("viewreset"),s&&this.fire("load")},_moveStart:function(e,n){return e&&this.fire("zoomstart"),n||this.fire("movestart"),this},_move:function(e,n,o,s){n===void 0&&(n=this._zoom);var l=this._zoom!==n;return this._zoom=n,this._lastCenter=e,this._pixelOrigin=this._getNewPixelOrigin(e),s?o&&o.pinch&&this.fire("zoom",o):((l||o&&o.pinch)&&this.fire("zoom",o),this.fire("move",o)),this},_moveEnd:function(e){return e&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return Q(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(e){De(this._mapPane,this._getMapPanePos().subtract(e))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(e){this._targets={},this._targets[p(this._container)]=this;var n=e?we:ee;n(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&n(window,"resize",this._onResize,this),F.any3d&&this.options.transform3DLimit&&(e?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){Q(this._resizeRequest),this._resizeRequest=ne(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var e=this._getMapPanePos();Math.max(Math.abs(e.x),Math.abs(e.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(e,n){for(var o=[],s,l=n==="mouseout"||n==="mouseover",f=e.target||e.srcElement,y=!1;f;){if(s=this._targets[p(f)],s&&(n==="click"||n==="preclick")&&this._draggableMoved(s)){y=!0;break}if(s&&s.listens(n,!0)&&(l&&!br(f,e)||(o.push(s),l))||f===this._container)break;f=f.parentNode}return!o.length&&!y&&!l&&this.listens(n,!0)&&(o=[this]),o},_isClickDisabled:function(e){for(;e&&e!==this._container;){if(e._leaflet_disable_click)return!0;e=e.parentNode}},_handleDOMEvent:function(e){var n=e.target||e.srcElement;if(!(!this._loaded||n._leaflet_disable_events||e.type==="click"&&this._isClickDisabled(n))){var o=e.type;o==="mousedown"&&pr(n),this._fireDOMEvent(e,o)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(e,n,o){if(e.type==="click"){var s=u({},e);s.type="preclick",this._fireDOMEvent(s,s.type,o)}var l=this._findEventTargets(e,n);if(o){for(var f=[],y=0;y<o.length;y++)o[y].listens(n,!0)&&f.push(o[y]);l=f.concat(l)}if(l.length){n==="contextmenu"&&Ie(e);var P=l[0],E={originalEvent:e};if(e.type!=="keypress"&&e.type!=="keydown"&&e.type!=="keyup"){var M=P.getLatLng&&(!P._radius||P._radius<=10);E.containerPoint=M?this.latLngToContainerPoint(P.getLatLng()):this.mouseEventToContainerPoint(e),E.layerPoint=this.containerPointToLayerPoint(E.containerPoint),E.latlng=M?P.getLatLng():this.layerPointToLatLng(E.layerPoint)}for(y=0;y<l.length;y++)if(l[y].fire(n,E,!0),E.originalEvent._stopped||l[y].options.bubblingMouseEvents===!1&&D(this._mouseEvents,n)!==-1)return}},_draggableMoved:function(e){return e=e.dragging&&e.dragging.enabled()?e:this,e.dragging&&e.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var e=0,n=this._handlers.length;e<n;e++)this._handlers[e].disable()},whenReady:function(e,n){return this._loaded?e.call(n||this,{target:this}):this.on("load",e,n),this},_getMapPanePos:function(){return Ft(this._mapPane)||new Z(0,0)},_moved:function(){var e=this._getMapPanePos();return e&&!e.equals([0,0])},_getTopLeftPoint:function(e,n){var o=e&&n!==void 0?this._getNewPixelOrigin(e,n):this.getPixelOrigin();return o.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(e,n){var o=this.getSize()._divideBy(2);return this.project(e,n)._subtract(o)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(e,n,o){var s=this._getNewPixelOrigin(o,n);return this.project(e,n)._subtract(s)},_latLngBoundsToNewLayerBounds:function(e,n,o){var s=this._getNewPixelOrigin(o,n);return ce([this.project(e.getSouthWest(),n)._subtract(s),this.project(e.getNorthWest(),n)._subtract(s),this.project(e.getSouthEast(),n)._subtract(s),this.project(e.getNorthEast(),n)._subtract(s)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(e){return this.latLngToLayerPoint(e).subtract(this._getCenterLayerPoint())},_limitCenter:function(e,n,o){if(!o)return e;var s=this.project(e,n),l=this.getSize().divideBy(2),f=new J(s.subtract(l),s.add(l)),y=this._getBoundsOffset(f,o,n);return Math.abs(y.x)<=1&&Math.abs(y.y)<=1?e:this.unproject(s.add(y),n)},_limitOffset:function(e,n){if(!n)return e;var o=this.getPixelBounds(),s=new J(o.min.add(e),o.max.add(e));return e.add(this._getBoundsOffset(s,n))},_getBoundsOffset:function(e,n,o){var s=ce(this.project(n.getNorthEast(),o),this.project(n.getSouthWest(),o)),l=s.min.subtract(e.min),f=s.max.subtract(e.max),y=this._rebound(l.x,-f.x),P=this._rebound(l.y,-f.y);return new Z(y,P)},_rebound:function(e,n){return e+n>0?Math.round(e-n)/2:Math.max(0,Math.ceil(e))-Math.max(0,Math.floor(n))},_limitZoom:function(e){var n=this.getMinZoom(),o=this.getMaxZoom(),s=F.any3d?this.options.zoomSnap:1;return s&&(e=Math.round(e/s)*s),Math.max(n,Math.min(o,e))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){Le(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(e,n){var o=this._getCenterOffset(e)._trunc();return(n&&n.animate)!==!0&&!this.getSize().contains(o)?!1:(this.panBy(o,n),!0)},_createAnimProxy:function(){var e=this._proxy=me("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(e),this.on("zoomanim",function(n){var o=sr,s=this._proxy.style[o];Zt(this._proxy,this.project(n.center,n.zoom),this.getZoomScale(n.zoom,1)),s===this._proxy.style[o]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){Pe(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var e=this.getCenter(),n=this.getZoom();Zt(this._proxy,this.project(e,n),this.getZoomScale(n,1))},_catchTransitionEnd:function(e){this._animatingZoom&&e.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(e,n,o){if(this._animatingZoom)return!0;if(o=o||{},!this._zoomAnimated||o.animate===!1||this._nothingToAnimate()||Math.abs(n-this._zoom)>this.options.zoomAnimationThreshold)return!1;var s=this.getZoomScale(n),l=this._getCenterOffset(e)._divideBy(1-1/s);return o.animate!==!0&&!this.getSize().contains(l)?!1:(ne(function(){this._moveStart(!0,o.noMoveStart||!1)._animateZoom(e,n,!0)},this),!0)},_animateZoom:function(e,n,o,s){this._mapPane&&(o&&(this._animatingZoom=!0,this._animateToCenter=e,this._animateToZoom=n,re(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:e,zoom:n,noUpdate:s}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(h(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&Le(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function rf(e,n){return new fe(e,n)}var ct=H.extend({options:{position:"topright"},initialize:function(e){m(this,e)},getPosition:function(){return this.options.position},setPosition:function(e){var n=this._map;return n&&n.removeControl(this),this.options.position=e,n&&n.addControl(this),this},getContainer:function(){return this._container},addTo:function(e){this.remove(),this._map=e;var n=this._container=this.onAdd(e),o=this.getPosition(),s=e._controlCorners[o];return re(n,"leaflet-control"),o.indexOf("bottom")!==-1?s.insertBefore(n,s.firstChild):s.appendChild(n),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(Pe(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(e){this._map&&e&&e.screenX>0&&e.screenY>0&&this._map.getContainer().focus()}}),In=function(e){return new ct(e)};fe.include({addControl:function(e){return e.addTo(this),this},removeControl:function(e){return e.remove(),this},_initControlPos:function(){var e=this._controlCorners={},n="leaflet-",o=this._controlContainer=me("div",n+"control-container",this._container);function s(l,f){var y=n+l+" "+n+f;e[l+f]=me("div",y,o)}s("top","left"),s("top","right"),s("bottom","left"),s("bottom","right")},_clearControlPos:function(){for(var e in this._controlCorners)Pe(this._controlCorners[e]);Pe(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var _a=ct.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(e,n,o,s){return o<s?-1:s<o?1:0}},initialize:function(e,n,o){m(this,o),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var s in e)this._addLayer(e[s],s);for(s in n)this._addLayer(n[s],s,!0)},onAdd:function(e){this._initLayout(),this._update(),this._map=e,e.on("zoomend",this._checkDisabledLayers,this);for(var n=0;n<this._layers.length;n++)this._layers[n].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(e){return ct.prototype.addTo.call(this,e),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var e=0;e<this._layers.length;e++)this._layers[e].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(e,n){return this._addLayer(e,n),this._map?this._update():this},addOverlay:function(e,n){return this._addLayer(e,n,!0),this._map?this._update():this},removeLayer:function(e){e.off("add remove",this._onLayerChange,this);var n=this._getLayer(p(e));return n&&this._layers.splice(this._layers.indexOf(n),1),this._map?this._update():this},expand:function(){re(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var e=this._map.getSize().y-(this._container.offsetTop+50);return e<this._section.clientHeight?(re(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=e+"px"):Le(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return Le(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var e="leaflet-control-layers",n=this._container=me("div",e),o=this.options.collapsed;n.setAttribute("aria-haspopup",!0),An(n),yr(n);var s=this._section=me("section",e+"-list");o&&(this._map.on("click",this.collapse,this),ee(n,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var l=this._layersLink=me("a",e+"-toggle",n);l.href="#",l.title="Layers",l.setAttribute("role","button"),ee(l,{keydown:function(f){f.keyCode===13&&this._expandSafely()},click:function(f){Ie(f),this._expandSafely()}},this),o||this.expand(),this._baseLayersList=me("div",e+"-base",s),this._separator=me("div",e+"-separator",s),this._overlaysList=me("div",e+"-overlays",s),n.appendChild(s)},_getLayer:function(e){for(var n=0;n<this._layers.length;n++)if(this._layers[n]&&p(this._layers[n].layer)===e)return this._layers[n]},_addLayer:function(e,n,o){this._map&&e.on("add remove",this._onLayerChange,this),this._layers.push({layer:e,name:n,overlay:o}),this.options.sortLayers&&this._layers.sort(h(function(s,l){return this.options.sortFunction(s.layer,l.layer,s.name,l.name)},this)),this.options.autoZIndex&&e.setZIndex&&(this._lastZIndex++,e.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;pi(this._baseLayersList),pi(this._overlaysList),this._layerControlInputs=[];var e,n,o,s,l=0;for(o=0;o<this._layers.length;o++)s=this._layers[o],this._addItem(s),n=n||s.overlay,e=e||!s.overlay,l+=s.overlay?0:1;return this.options.hideSingleBase&&(e=e&&l>1,this._baseLayersList.style.display=e?"":"none"),this._separator.style.display=n&&e?"":"none",this},_onLayerChange:function(e){this._handlingClick||this._update();var n=this._getLayer(p(e.target)),o=n.overlay?e.type==="add"?"overlayadd":"overlayremove":e.type==="add"?"baselayerchange":null;o&&this._map.fire(o,n)},_createRadioElement:function(e,n){var o='<input type="radio" class="leaflet-control-layers-selector" name="'+e+'"'+(n?' checked="checked"':"")+"/>",s=document.createElement("div");return s.innerHTML=o,s.firstChild},_addItem:function(e){var n=document.createElement("label"),o=this._map.hasLayer(e.layer),s;e.overlay?(s=document.createElement("input"),s.type="checkbox",s.className="leaflet-control-layers-selector",s.defaultChecked=o):s=this._createRadioElement("leaflet-base-layers_"+p(this),o),this._layerControlInputs.push(s),s.layerId=p(e.layer),ee(s,"click",this._onInputClick,this);var l=document.createElement("span");l.innerHTML=" "+e.name;var f=document.createElement("span");n.appendChild(f),f.appendChild(s),f.appendChild(l);var y=e.overlay?this._overlaysList:this._baseLayersList;return y.appendChild(n),this._checkDisabledLayers(),n},_onInputClick:function(){if(!this._preventClick){var e=this._layerControlInputs,n,o,s=[],l=[];this._handlingClick=!0;for(var f=e.length-1;f>=0;f--)n=e[f],o=this._getLayer(n.layerId).layer,n.checked?s.push(o):n.checked||l.push(o);for(f=0;f<l.length;f++)this._map.hasLayer(l[f])&&this._map.removeLayer(l[f]);for(f=0;f<s.length;f++)this._map.hasLayer(s[f])||this._map.addLayer(s[f]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var e=this._layerControlInputs,n,o,s=this._map.getZoom(),l=e.length-1;l>=0;l--)n=e[l],o=this._getLayer(n.layerId).layer,n.disabled=o.options.minZoom!==void 0&&s<o.options.minZoom||o.options.maxZoom!==void 0&&s>o.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var e=this._section;this._preventClick=!0,ee(e,"click",Ie),this.expand();var n=this;setTimeout(function(){we(e,"click",Ie),n._preventClick=!1})}}),of=function(e,n,o){return new _a(e,n,o)},wr=ct.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:function(e){var n="leaflet-control-zoom",o=me("div",n+" leaflet-bar"),s=this.options;return this._zoomInButton=this._createButton(s.zoomInText,s.zoomInTitle,n+"-in",o,this._zoomIn),this._zoomOutButton=this._createButton(s.zoomOutText,s.zoomOutTitle,n+"-out",o,this._zoomOut),this._updateDisabled(),e.on("zoomend zoomlevelschange",this._updateDisabled,this),o},onRemove:function(e){e.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(e){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(e.shiftKey?3:1))},_zoomOut:function(e){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(e.shiftKey?3:1))},_createButton:function(e,n,o,s,l){var f=me("a",o,s);return f.innerHTML=e,f.href="#",f.title=n,f.setAttribute("role","button"),f.setAttribute("aria-label",n),An(f),ee(f,"click",Ut),ee(f,"click",l,this),ee(f,"click",this._refocusOnMap,this),f},_updateDisabled:function(){var e=this._map,n="leaflet-disabled";Le(this._zoomInButton,n),Le(this._zoomOutButton,n),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||e._zoom===e.getMinZoom())&&(re(this._zoomOutButton,n),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||e._zoom===e.getMaxZoom())&&(re(this._zoomInButton,n),this._zoomInButton.setAttribute("aria-disabled","true"))}});fe.mergeOptions({zoomControl:!0}),fe.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new wr,this.addControl(this.zoomControl))});var af=function(e){return new wr(e)},ga=ct.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(e){var n="leaflet-control-scale",o=me("div",n),s=this.options;return this._addScales(s,n+"-line",o),e.on(s.updateWhenIdle?"moveend":"move",this._update,this),e.whenReady(this._update,this),o},onRemove:function(e){e.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(e,n,o){e.metric&&(this._mScale=me("div",n,o)),e.imperial&&(this._iScale=me("div",n,o))},_update:function(){var e=this._map,n=e.getSize().y/2,o=e.distance(e.containerPointToLatLng([0,n]),e.containerPointToLatLng([this.options.maxWidth,n]));this._updateScales(o)},_updateScales:function(e){this.options.metric&&e&&this._updateMetric(e),this.options.imperial&&e&&this._updateImperial(e)},_updateMetric:function(e){var n=this._getRoundNum(e),o=n<1e3?n+" m":n/1e3+" km";this._updateScale(this._mScale,o,n/e)},_updateImperial:function(e){var n=e*3.2808399,o,s,l;n>5280?(o=n/5280,s=this._getRoundNum(o),this._updateScale(this._iScale,s+" mi",s/o)):(l=this._getRoundNum(n),this._updateScale(this._iScale,l+" ft",l/n))},_updateScale:function(e,n,o){e.style.width=Math.round(this.options.maxWidth*o)+"px",e.innerHTML=n},_getRoundNum:function(e){var n=Math.pow(10,(Math.floor(e)+"").length-1),o=e/n;return o=o>=10?10:o>=5?5:o>=3?3:o>=2?2:1,n*o}}),sf=function(e){return new ga(e)},uf='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>',xr=ct.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(F.inlineSvg?uf+" ":"")+"Leaflet</a>"},initialize:function(e){m(this,e),this._attributions={}},onAdd:function(e){e.attributionControl=this,this._container=me("div","leaflet-control-attribution"),An(this._container);for(var n in e._layers)e._layers[n].getAttribution&&this.addAttribution(e._layers[n].getAttribution());return this._update(),e.on("layeradd",this._addAttribution,this),this._container},onRemove:function(e){e.off("layeradd",this._addAttribution,this)},_addAttribution:function(e){e.layer.getAttribution&&(this.addAttribution(e.layer.getAttribution()),e.layer.once("remove",function(){this.removeAttribution(e.layer.getAttribution())},this))},setPrefix:function(e){return this.options.prefix=e,this._update(),this},addAttribution:function(e){return e?(this._attributions[e]||(this._attributions[e]=0),this._attributions[e]++,this._update(),this):this},removeAttribution:function(e){return e?(this._attributions[e]&&(this._attributions[e]--,this._update()),this):this},_update:function(){if(this._map){var e=[];for(var n in this._attributions)this._attributions[n]&&e.push(n);var o=[];this.options.prefix&&o.push(this.options.prefix),e.length&&o.push(e.join(", ")),this._container.innerHTML=o.join(' <span aria-hidden="true">|</span> ')}}});fe.mergeOptions({attributionControl:!0}),fe.addInitHook(function(){this.options.attributionControl&&new xr().addTo(this)});var lf=function(e){return new xr(e)};ct.Layers=_a,ct.Zoom=wr,ct.Scale=ga,ct.Attribution=xr,In.layers=of,In.zoom=af,In.scale=sf,In.attribution=lf;var gt=H.extend({initialize:function(e){this._map=e},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});gt.addTo=function(e,n){return e.addHandler(n,this),this};var cf={Events:V},ya=F.touch?"touchstart mousedown":"mousedown",It=_e.extend({options:{clickTolerance:3},initialize:function(e,n,o,s){m(this,s),this._element=e,this._dragStartTarget=n||e,this._preventOutline=o},enable:function(){this._enabled||(ee(this._dragStartTarget,ya,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(It._dragging===this&&this.finishDrag(!0),we(this._dragStartTarget,ya,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(e){if(this._enabled&&(this._moved=!1,!ur(this._element,"leaflet-zoom-anim"))){if(e.touches&&e.touches.length!==1){It._dragging===this&&this.finishDrag();return}if(!(It._dragging||e.shiftKey||e.which!==1&&e.button!==1&&!e.touches)&&(It._dragging=this,this._preventOutline&&pr(this._element),fr(),Dn(),!this._moving)){this.fire("down");var n=e.touches?e.touches[0]:e,o=fa(this._element);this._startPoint=new Z(n.clientX,n.clientY),this._startPos=Ft(this._element),this._parentScale=mr(o);var s=e.type==="mousedown";ee(document,s?"mousemove":"touchmove",this._onMove,this),ee(document,s?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(e){if(this._enabled){if(e.touches&&e.touches.length>1){this._moved=!0;return}var n=e.touches&&e.touches.length===1?e.touches[0]:e,o=new Z(n.clientX,n.clientY)._subtract(this._startPoint);!o.x&&!o.y||Math.abs(o.x)+Math.abs(o.y)<this.options.clickTolerance||(o.x/=this._parentScale.x,o.y/=this._parentScale.y,Ie(e),this._moved||(this.fire("dragstart"),this._moved=!0,re(document.body,"leaflet-dragging"),this._lastTarget=e.target||e.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),re(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(o),this._moving=!0,this._lastEvent=e,this._updatePosition())}},_updatePosition:function(){var e={originalEvent:this._lastEvent};this.fire("predrag",e),De(this._element,this._newPos),this.fire("drag",e)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(e){Le(document.body,"leaflet-dragging"),this._lastTarget&&(Le(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),we(document,"mousemove touchmove",this._onMove,this),we(document,"mouseup touchend touchcancel",this._onUp,this),hr(),Mn();var n=this._moved&&this._moving;this._moving=!1,It._dragging=!1,n&&this.fire("dragend",{noInertia:e,distance:this._newPos.distanceTo(this._startPos)})}});function ba(e,n,o){var s,l=[1,4,2,8],f,y,P,E,M,j,U,ae;for(f=0,j=e.length;f<j;f++)e[f]._code=Ht(e[f],n);for(P=0;P<4;P++){for(U=l[P],s=[],f=0,j=e.length,y=j-1;f<j;y=f++)E=e[f],M=e[y],E._code&U?M._code&U||(ae=yi(M,E,U,n,o),ae._code=Ht(ae,n),s.push(ae)):(M._code&U&&(ae=yi(M,E,U,n,o),ae._code=Ht(ae,n),s.push(ae)),s.push(E));e=s}return e}function wa(e,n){var o,s,l,f,y,P,E,M,j;if(!e||e.length===0)throw new Error("latlngs not passed");et(e)||(console.warn("latlngs are not flat! Only the first ring will be used"),e=e[0]);var U=G([0,0]),ae=de(e),ze=ae.getNorthWest().distanceTo(ae.getSouthWest())*ae.getNorthEast().distanceTo(ae.getNorthWest());ze<1700&&(U=Or(e));var ke=e.length,tt=[];for(o=0;o<ke;o++){var We=G(e[o]);tt.push(n.project(G([We.lat-U.lat,We.lng-U.lng])))}for(P=E=M=0,o=0,s=ke-1;o<ke;s=o++)l=tt[o],f=tt[s],y=l.y*f.x-f.y*l.x,E+=(l.x+f.x)*y,M+=(l.y+f.y)*y,P+=y*3;P===0?j=tt[0]:j=[E/P,M/P];var fn=n.unproject(W(j));return G([fn.lat+U.lat,fn.lng+U.lng])}function Or(e){for(var n=0,o=0,s=0,l=0;l<e.length;l++){var f=G(e[l]);n+=f.lat,o+=f.lng,s++}return G([n/s,o/s])}var ff={__proto__:null,clipPolygon:ba,polygonCenter:wa,centroid:Or};function xa(e,n){if(!n||!e.length)return e.slice();var o=n*n;return e=pf(e,o),e=df(e,o),e}function Oa(e,n,o){return Math.sqrt(Nn(e,n,o,!0))}function hf(e,n,o){return Nn(e,n,o)}function df(e,n){var o=e.length,s=typeof Uint8Array<"u"?Uint8Array:Array,l=new s(o);l[0]=l[o-1]=1,Pr(e,l,n,0,o-1);var f,y=[];for(f=0;f<o;f++)l[f]&&y.push(e[f]);return y}function Pr(e,n,o,s,l){var f=0,y,P,E;for(P=s+1;P<=l-1;P++)E=Nn(e[P],e[s],e[l],!0),E>f&&(y=P,f=E);f>o&&(n[y]=1,Pr(e,n,o,s,y),Pr(e,n,o,y,l))}function pf(e,n){for(var o=[e[0]],s=1,l=0,f=e.length;s<f;s++)mf(e[s],e[l])>n&&(o.push(e[s]),l=s);return l<f-1&&o.push(e[f-1]),o}var Pa;function Sa(e,n,o,s,l){var f=s?Pa:Ht(e,o),y=Ht(n,o),P,E,M;for(Pa=y;;){if(!(f|y))return[e,n];if(f&y)return!1;P=f||y,E=yi(e,n,P,o,l),M=Ht(E,o),P===f?(e=E,f=M):(n=E,y=M)}}function yi(e,n,o,s,l){var f=n.x-e.x,y=n.y-e.y,P=s.min,E=s.max,M,j;return o&8?(M=e.x+f*(E.y-e.y)/y,j=E.y):o&4?(M=e.x+f*(P.y-e.y)/y,j=P.y):o&2?(M=E.x,j=e.y+y*(E.x-e.x)/f):o&1&&(M=P.x,j=e.y+y*(P.x-e.x)/f),new Z(M,j,l)}function Ht(e,n){var o=0;return e.x<n.min.x?o|=1:e.x>n.max.x&&(o|=2),e.y<n.min.y?o|=4:e.y>n.max.y&&(o|=8),o}function mf(e,n){var o=n.x-e.x,s=n.y-e.y;return o*o+s*s}function Nn(e,n,o,s){var l=n.x,f=n.y,y=o.x-l,P=o.y-f,E=y*y+P*P,M;return E>0&&(M=((e.x-l)*y+(e.y-f)*P)/E,M>1?(l=o.x,f=o.y):M>0&&(l+=y*M,f+=P*M)),y=e.x-l,P=e.y-f,s?y*y+P*P:new Z(l,f)}function et(e){return!C(e[0])||typeof e[0][0]!="object"&&typeof e[0][0]<"u"}function Ta(e){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),et(e)}function La(e,n){var o,s,l,f,y,P,E,M;if(!e||e.length===0)throw new Error("latlngs not passed");et(e)||(console.warn("latlngs are not flat! Only the first ring will be used"),e=e[0]);var j=G([0,0]),U=de(e),ae=U.getNorthWest().distanceTo(U.getSouthWest())*U.getNorthEast().distanceTo(U.getNorthWest());ae<1700&&(j=Or(e));var ze=e.length,ke=[];for(o=0;o<ze;o++){var tt=G(e[o]);ke.push(n.project(G([tt.lat-j.lat,tt.lng-j.lng])))}for(o=0,s=0;o<ze-1;o++)s+=ke[o].distanceTo(ke[o+1])/2;if(s===0)M=ke[0];else for(o=0,f=0;o<ze-1;o++)if(y=ke[o],P=ke[o+1],l=y.distanceTo(P),f+=l,f>s){E=(f-s)/l,M=[P.x-E*(P.x-y.x),P.y-E*(P.y-y.y)];break}var We=n.unproject(W(M));return G([We.lat+j.lat,We.lng+j.lng])}var vf={__proto__:null,simplify:xa,pointToSegmentDistance:Oa,closestPointOnSegment:hf,clipSegment:Sa,_getEdgeIntersection:yi,_getBitCode:Ht,_sqClosestPointOnSegment:Nn,isFlat:et,_flat:Ta,polylineCenter:La},Sr={project:function(e){return new Z(e.lng,e.lat)},unproject:function(e){return new X(e.y,e.x)},bounds:new J([-180,-90],[180,90])},Tr={R:6378137,R_MINOR:6356752314245179e-9,bounds:new J([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(e){var n=Math.PI/180,o=this.R,s=e.lat*n,l=this.R_MINOR/o,f=Math.sqrt(1-l*l),y=f*Math.sin(s),P=Math.tan(Math.PI/4-s/2)/Math.pow((1-y)/(1+y),f/2);return s=-o*Math.log(Math.max(P,1e-10)),new Z(e.lng*n*o,s)},unproject:function(e){for(var n=180/Math.PI,o=this.R,s=this.R_MINOR/o,l=Math.sqrt(1-s*s),f=Math.exp(-e.y/o),y=Math.PI/2-2*Math.atan(f),P=0,E=.1,M;P<15&&Math.abs(E)>1e-7;P++)M=l*Math.sin(y),M=Math.pow((1-M)/(1+M),l/2),E=Math.PI/2-2*Math.atan(f*M)-y,y+=E;return new X(y*n,e.x*n/o)}},_f={__proto__:null,LonLat:Sr,Mercator:Tr,SphericalMercator:ht},gf=u({},Te,{code:"EPSG:3395",projection:Tr,transformation:function(){var e=.5/(Math.PI*Tr.R);return Be(e,.5,-e,.5)}()}),Ea=u({},Te,{code:"EPSG:4326",projection:Sr,transformation:Be(1/180,1,-1/180,.5)}),yf=u({},Ce,{projection:Sr,transformation:Be(1,0,-1,0),scale:function(e){return Math.pow(2,e)},zoom:function(e){return Math.log(e)/Math.LN2},distance:function(e,n){var o=n.lng-e.lng,s=n.lat-e.lat;return Math.sqrt(o*o+s*s)},infinite:!0});Ce.Earth=Te,Ce.EPSG3395=gf,Ce.EPSG3857=ut,Ce.EPSG900913=be,Ce.EPSG4326=Ea,Ce.Simple=yf;var ft=_e.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(e){return e.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(e){return e&&e.removeLayer(this),this},getPane:function(e){return this._map.getPane(e?this.options[e]||e:this.options.pane)},addInteractiveTarget:function(e){return this._map._targets[p(e)]=this,this},removeInteractiveTarget:function(e){return delete this._map._targets[p(e)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(e){var n=e.target;if(n.hasLayer(this)){if(this._map=n,this._zoomAnimated=n._zoomAnimated,this.getEvents){var o=this.getEvents();n.on(o,this),this.once("remove",function(){n.off(o,this)},this)}this.onAdd(n),this.fire("add"),n.fire("layeradd",{layer:this})}}});fe.include({addLayer:function(e){if(!e._layerAdd)throw new Error("The provided object is not a Layer.");var n=p(e);return this._layers[n]?this:(this._layers[n]=e,e._mapToAdd=this,e.beforeAdd&&e.beforeAdd(this),this.whenReady(e._layerAdd,e),this)},removeLayer:function(e){var n=p(e);return this._layers[n]?(this._loaded&&e.onRemove(this),delete this._layers[n],this._loaded&&(this.fire("layerremove",{layer:e}),e.fire("remove")),e._map=e._mapToAdd=null,this):this},hasLayer:function(e){return p(e)in this._layers},eachLayer:function(e,n){for(var o in this._layers)e.call(n,this._layers[o]);return this},_addLayers:function(e){e=e?C(e)?e:[e]:[];for(var n=0,o=e.length;n<o;n++)this.addLayer(e[n])},_addZoomLimit:function(e){(!isNaN(e.options.maxZoom)||!isNaN(e.options.minZoom))&&(this._zoomBoundLayers[p(e)]=e,this._updateZoomLevels())},_removeZoomLimit:function(e){var n=p(e);this._zoomBoundLayers[n]&&(delete this._zoomBoundLayers[n],this._updateZoomLevels())},_updateZoomLevels:function(){var e=1/0,n=-1/0,o=this._getZoomSpan();for(var s in this._zoomBoundLayers){var l=this._zoomBoundLayers[s].options;e=l.minZoom===void 0?e:Math.min(e,l.minZoom),n=l.maxZoom===void 0?n:Math.max(n,l.maxZoom)}this._layersMaxZoom=n===-1/0?void 0:n,this._layersMinZoom=e===1/0?void 0:e,o!==this._getZoomSpan()&&this.fire("zoomlevelschange"),this.options.maxZoom===void 0&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var an=ft.extend({initialize:function(e,n){m(this,n),this._layers={};var o,s;if(e)for(o=0,s=e.length;o<s;o++)this.addLayer(e[o])},addLayer:function(e){var n=this.getLayerId(e);return this._layers[n]=e,this._map&&this._map.addLayer(e),this},removeLayer:function(e){var n=e in this._layers?e:this.getLayerId(e);return this._map&&this._layers[n]&&this._map.removeLayer(this._layers[n]),delete this._layers[n],this},hasLayer:function(e){var n=typeof e=="number"?e:this.getLayerId(e);return n in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(e){var n=Array.prototype.slice.call(arguments,1),o,s;for(o in this._layers)s=this._layers[o],s[e]&&s[e].apply(s,n);return this},onAdd:function(e){this.eachLayer(e.addLayer,e)},onRemove:function(e){this.eachLayer(e.removeLayer,e)},eachLayer:function(e,n){for(var o in this._layers)e.call(n,this._layers[o]);return this},getLayer:function(e){return this._layers[e]},getLayers:function(){var e=[];return this.eachLayer(e.push,e),e},setZIndex:function(e){return this.invoke("setZIndex",e)},getLayerId:function(e){return p(e)}}),bf=function(e,n){return new an(e,n)},Et=an.extend({addLayer:function(e){return this.hasLayer(e)?this:(e.addEventParent(this),an.prototype.addLayer.call(this,e),this.fire("layeradd",{layer:e}))},removeLayer:function(e){return this.hasLayer(e)?(e in this._layers&&(e=this._layers[e]),e.removeEventParent(this),an.prototype.removeLayer.call(this,e),this.fire("layerremove",{layer:e})):this},setStyle:function(e){return this.invoke("setStyle",e)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var e=new ye;for(var n in this._layers){var o=this._layers[n];e.extend(o.getBounds?o.getBounds():o.getLatLng())}return e}}),wf=function(e,n){return new Et(e,n)},sn=H.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(e){m(this,e)},createIcon:function(e){return this._createIcon("icon",e)},createShadow:function(e){return this._createIcon("shadow",e)},_createIcon:function(e,n){var o=this._getIconUrl(e);if(!o){if(e==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var s=this._createImg(o,n&&n.tagName==="IMG"?n:null);return this._setIconStyles(s,e),(this.options.crossOrigin||this.options.crossOrigin==="")&&(s.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),s},_setIconStyles:function(e,n){var o=this.options,s=o[n+"Size"];typeof s=="number"&&(s=[s,s]);var l=W(s),f=W(n==="shadow"&&o.shadowAnchor||o.iconAnchor||l&&l.divideBy(2,!0));e.className="leaflet-marker-"+n+" "+(o.className||""),f&&(e.style.marginLeft=-f.x+"px",e.style.marginTop=-f.y+"px"),l&&(e.style.width=l.x+"px",e.style.height=l.y+"px")},_createImg:function(e,n){return n=n||document.createElement("img"),n.src=e,n},_getIconUrl:function(e){return F.retina&&this.options[e+"RetinaUrl"]||this.options[e+"Url"]}});function xf(e){return new sn(e)}var Rn=sn.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(e){return typeof Rn.imagePath!="string"&&(Rn.imagePath=this._detectIconPath()),(this.options.imagePath||Rn.imagePath)+sn.prototype._getIconUrl.call(this,e)},_stripUrl:function(e){var n=function(o,s,l){var f=s.exec(o);return f&&f[l]};return e=n(e,/^url\((['"])?(.+)\1\)$/,2),e&&n(e,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var e=me("div","leaflet-default-icon-path",document.body),n=Cn(e,"background-image")||Cn(e,"backgroundImage");if(document.body.removeChild(e),n=this._stripUrl(n),n)return n;var o=document.querySelector('link[href$="leaflet.css"]');return o?o.href.substring(0,o.href.length-11-1):""}}),Ca=gt.extend({initialize:function(e){this._marker=e},addHooks:function(){var e=this._marker._icon;this._draggable||(this._draggable=new It(e,e,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),re(e,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&Le(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(e){var n=this._marker,o=n._map,s=this._marker.options.autoPanSpeed,l=this._marker.options.autoPanPadding,f=Ft(n._icon),y=o.getPixelBounds(),P=o.getPixelOrigin(),E=ce(y.min._subtract(P).add(l),y.max._subtract(P).subtract(l));if(!E.contains(f)){var M=W((Math.max(E.max.x,f.x)-E.max.x)/(y.max.x-E.max.x)-(Math.min(E.min.x,f.x)-E.min.x)/(y.min.x-E.min.x),(Math.max(E.max.y,f.y)-E.max.y)/(y.max.y-E.max.y)-(Math.min(E.min.y,f.y)-E.min.y)/(y.min.y-E.min.y)).multiplyBy(s);o.panBy(M,{animate:!1}),this._draggable._newPos._add(M),this._draggable._startPos._add(M),De(n._icon,this._draggable._newPos),this._onDrag(e),this._panRequest=ne(this._adjustPan.bind(this,e))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(e){this._marker.options.autoPan&&(Q(this._panRequest),this._panRequest=ne(this._adjustPan.bind(this,e)))},_onDrag:function(e){var n=this._marker,o=n._shadow,s=Ft(n._icon),l=n._map.layerPointToLatLng(s);o&&De(o,s),n._latlng=l,e.latlng=l,e.oldLatLng=this._oldLatLng,n.fire("move",e).fire("drag",e)},_onDragEnd:function(e){Q(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",e)}}),bi=ft.extend({options:{icon:new Rn,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(e,n){m(this,n),this._latlng=G(e)},onAdd:function(e){this._zoomAnimated=this._zoomAnimated&&e.options.markerZoomAnimation,this._zoomAnimated&&e.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(e){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&e.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(e){var n=this._latlng;return this._latlng=G(e),this.update(),this.fire("move",{oldLatLng:n,latlng:this._latlng})},setZIndexOffset:function(e){return this.options.zIndexOffset=e,this.update()},getIcon:function(){return this.options.icon},setIcon:function(e){return this.options.icon=e,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var e=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(e)}return this},_initIcon:function(){var e=this.options,n="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),o=e.icon.createIcon(this._icon),s=!1;o!==this._icon&&(this._icon&&this._removeIcon(),s=!0,e.title&&(o.title=e.title),o.tagName==="IMG"&&(o.alt=e.alt||"")),re(o,n),e.keyboard&&(o.tabIndex="0",o.setAttribute("role","button")),this._icon=o,e.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&ee(o,"focus",this._panOnFocus,this);var l=e.icon.createShadow(this._shadow),f=!1;l!==this._shadow&&(this._removeShadow(),f=!0),l&&(re(l,n),l.alt=""),this._shadow=l,e.opacity<1&&this._updateOpacity(),s&&this.getPane().appendChild(this._icon),this._initInteraction(),l&&f&&this.getPane(e.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&we(this._icon,"focus",this._panOnFocus,this),Pe(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&Pe(this._shadow),this._shadow=null},_setPos:function(e){this._icon&&De(this._icon,e),this._shadow&&De(this._shadow,e),this._zIndex=e.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(e){this._icon&&(this._icon.style.zIndex=this._zIndex+e)},_animateZoom:function(e){var n=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center).round();this._setPos(n)},_initInteraction:function(){if(this.options.interactive&&(re(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),Ca)){var e=this.options.draggable;this.dragging&&(e=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Ca(this),e&&this.dragging.enable()}},setOpacity:function(e){return this.options.opacity=e,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var e=this.options.opacity;this._icon&&Qe(this._icon,e),this._shadow&&Qe(this._shadow,e)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var e=this._map;if(e){var n=this.options.icon.options,o=n.iconSize?W(n.iconSize):W(0,0),s=n.iconAnchor?W(n.iconAnchor):W(0,0);e.panInside(this._latlng,{paddingTopLeft:s,paddingBottomRight:o.subtract(s)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function Of(e,n){return new bi(e,n)}var Nt=ft.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(e){this._renderer=e.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(e){return m(this,e),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&e&&Object.prototype.hasOwnProperty.call(e,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),wi=Nt.extend({options:{fill:!0,radius:10},initialize:function(e,n){m(this,n),this._latlng=G(e),this._radius=this.options.radius},setLatLng:function(e){var n=this._latlng;return this._latlng=G(e),this.redraw(),this.fire("move",{oldLatLng:n,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(e){return this.options.radius=this._radius=e,this.redraw()},getRadius:function(){return this._radius},setStyle:function(e){var n=e&&e.radius||this._radius;return Nt.prototype.setStyle.call(this,e),this.setRadius(n),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var e=this._radius,n=this._radiusY||e,o=this._clickTolerance(),s=[e+o,n+o];this._pxBounds=new J(this._point.subtract(s),this._point.add(s))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(e){return e.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function Pf(e,n){return new wi(e,n)}var Lr=wi.extend({initialize:function(e,n,o){if(typeof n=="number"&&(n=u({},o,{radius:n})),m(this,n),this._latlng=G(e),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(e){return this._mRadius=e,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var e=[this._radius,this._radiusY||this._radius];return new ye(this._map.layerPointToLatLng(this._point.subtract(e)),this._map.layerPointToLatLng(this._point.add(e)))},setStyle:Nt.prototype.setStyle,_project:function(){var e=this._latlng.lng,n=this._latlng.lat,o=this._map,s=o.options.crs;if(s.distance===Te.distance){var l=Math.PI/180,f=this._mRadius/Te.R/l,y=o.project([n+f,e]),P=o.project([n-f,e]),E=y.add(P).divideBy(2),M=o.unproject(E).lat,j=Math.acos((Math.cos(f*l)-Math.sin(n*l)*Math.sin(M*l))/(Math.cos(n*l)*Math.cos(M*l)))/l;(isNaN(j)||j===0)&&(j=f/Math.cos(Math.PI/180*n)),this._point=E.subtract(o.getPixelOrigin()),this._radius=isNaN(j)?0:E.x-o.project([M,e-j]).x,this._radiusY=E.y-y.y}else{var U=s.unproject(s.project(this._latlng).subtract([this._mRadius,0]));this._point=o.latLngToLayerPoint(this._latlng),this._radius=this._point.x-o.latLngToLayerPoint(U).x}this._updateBounds()}});function Sf(e,n,o){return new Lr(e,n,o)}var Ct=Nt.extend({options:{smoothFactor:1,noClip:!1},initialize:function(e,n){m(this,n),this._setLatLngs(e)},getLatLngs:function(){return this._latlngs},setLatLngs:function(e){return this._setLatLngs(e),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(e){for(var n=1/0,o=null,s=Nn,l,f,y=0,P=this._parts.length;y<P;y++)for(var E=this._parts[y],M=1,j=E.length;M<j;M++){l=E[M-1],f=E[M];var U=s(e,l,f,!0);U<n&&(n=U,o=s(e,l,f))}return o&&(o.distance=Math.sqrt(n)),o},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return La(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(e,n){return n=n||this._defaultShape(),e=G(e),n.push(e),this._bounds.extend(e),this.redraw()},_setLatLngs:function(e){this._bounds=new ye,this._latlngs=this._convertLatLngs(e)},_defaultShape:function(){return et(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(e){for(var n=[],o=et(e),s=0,l=e.length;s<l;s++)o?(n[s]=G(e[s]),this._bounds.extend(n[s])):n[s]=this._convertLatLngs(e[s]);return n},_project:function(){var e=new J;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,e),this._bounds.isValid()&&e.isValid()&&(this._rawPxBounds=e,this._updateBounds())},_updateBounds:function(){var e=this._clickTolerance(),n=new Z(e,e);this._rawPxBounds&&(this._pxBounds=new J([this._rawPxBounds.min.subtract(n),this._rawPxBounds.max.add(n)]))},_projectLatlngs:function(e,n,o){var s=e[0]instanceof X,l=e.length,f,y;if(s){for(y=[],f=0;f<l;f++)y[f]=this._map.latLngToLayerPoint(e[f]),o.extend(y[f]);n.push(y)}else for(f=0;f<l;f++)this._projectLatlngs(e[f],n,o)},_clipPoints:function(){var e=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(e))){if(this.options.noClip){this._parts=this._rings;return}var n=this._parts,o,s,l,f,y,P,E;for(o=0,l=0,f=this._rings.length;o<f;o++)for(E=this._rings[o],s=0,y=E.length;s<y-1;s++)P=Sa(E[s],E[s+1],e,s,!0),P&&(n[l]=n[l]||[],n[l].push(P[0]),(P[1]!==E[s+1]||s===y-2)&&(n[l].push(P[1]),l++))}},_simplifyPoints:function(){for(var e=this._parts,n=this.options.smoothFactor,o=0,s=e.length;o<s;o++)e[o]=xa(e[o],n)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(e,n){var o,s,l,f,y,P,E=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(e))return!1;for(o=0,f=this._parts.length;o<f;o++)for(P=this._parts[o],s=0,y=P.length,l=y-1;s<y;l=s++)if(!(!n&&s===0)&&Oa(e,P[l],P[s])<=E)return!0;return!1}});function Tf(e,n){return new Ct(e,n)}Ct._flat=Ta;var un=Ct.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return wa(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(e){var n=Ct.prototype._convertLatLngs.call(this,e),o=n.length;return o>=2&&n[0]instanceof X&&n[0].equals(n[o-1])&&n.pop(),n},_setLatLngs:function(e){Ct.prototype._setLatLngs.call(this,e),et(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return et(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var e=this._renderer._bounds,n=this.options.weight,o=new Z(n,n);if(e=new J(e.min.subtract(o),e.max.add(o)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(e))){if(this.options.noClip){this._parts=this._rings;return}for(var s=0,l=this._rings.length,f;s<l;s++)f=ba(this._rings[s],e,!0),f.length&&this._parts.push(f)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(e){var n=!1,o,s,l,f,y,P,E,M;if(!this._pxBounds||!this._pxBounds.contains(e))return!1;for(f=0,E=this._parts.length;f<E;f++)for(o=this._parts[f],y=0,M=o.length,P=M-1;y<M;P=y++)s=o[y],l=o[P],s.y>e.y!=l.y>e.y&&e.x<(l.x-s.x)*(e.y-s.y)/(l.y-s.y)+s.x&&(n=!n);return n||Ct.prototype._containsPoint.call(this,e,!0)}});function Lf(e,n){return new un(e,n)}var Dt=Et.extend({initialize:function(e,n){m(this,n),this._layers={},e&&this.addData(e)},addData:function(e){var n=C(e)?e:e.features,o,s,l;if(n){for(o=0,s=n.length;o<s;o++)l=n[o],(l.geometries||l.geometry||l.features||l.coordinates)&&this.addData(l);return this}var f=this.options;if(f.filter&&!f.filter(e))return this;var y=xi(e,f);return y?(y.feature=Si(e),y.defaultOptions=y.options,this.resetStyle(y),f.onEachFeature&&f.onEachFeature(e,y),this.addLayer(y)):this},resetStyle:function(e){return e===void 0?this.eachLayer(this.resetStyle,this):(e.options=u({},e.defaultOptions),this._setLayerStyle(e,this.options.style),this)},setStyle:function(e){return this.eachLayer(function(n){this._setLayerStyle(n,e)},this)},_setLayerStyle:function(e,n){e.setStyle&&(typeof n=="function"&&(n=n(e.feature)),e.setStyle(n))}});function xi(e,n){var o=e.type==="Feature"?e.geometry:e,s=o?o.coordinates:null,l=[],f=n&&n.pointToLayer,y=n&&n.coordsToLatLng||Er,P,E,M,j;if(!s&&!o)return null;switch(o.type){case"Point":return P=y(s),Da(f,e,P,n);case"MultiPoint":for(M=0,j=s.length;M<j;M++)P=y(s[M]),l.push(Da(f,e,P,n));return new Et(l);case"LineString":case"MultiLineString":return E=Oi(s,o.type==="LineString"?0:1,y),new Ct(E,n);case"Polygon":case"MultiPolygon":return E=Oi(s,o.type==="Polygon"?1:2,y),new un(E,n);case"GeometryCollection":for(M=0,j=o.geometries.length;M<j;M++){var U=xi({geometry:o.geometries[M],type:"Feature",properties:e.properties},n);U&&l.push(U)}return new Et(l);case"FeatureCollection":for(M=0,j=o.features.length;M<j;M++){var ae=xi(o.features[M],n);ae&&l.push(ae)}return new Et(l);default:throw new Error("Invalid GeoJSON object.")}}function Da(e,n,o,s){return e?e(n,o):new bi(o,s&&s.markersInheritOptions&&s)}function Er(e){return new X(e[1],e[0],e[2])}function Oi(e,n,o){for(var s=[],l=0,f=e.length,y;l<f;l++)y=n?Oi(e[l],n-1,o):(o||Er)(e[l]),s.push(y);return s}function Cr(e,n){return e=G(e),e.alt!==void 0?[g(e.lng,n),g(e.lat,n),g(e.alt,n)]:[g(e.lng,n),g(e.lat,n)]}function Pi(e,n,o,s){for(var l=[],f=0,y=e.length;f<y;f++)l.push(n?Pi(e[f],et(e[f])?0:n-1,o,s):Cr(e[f],s));return!n&&o&&l.length>0&&l.push(l[0].slice()),l}function ln(e,n){return e.feature?u({},e.feature,{geometry:n}):Si(n)}function Si(e){return e.type==="Feature"||e.type==="FeatureCollection"?e:{type:"Feature",properties:{},geometry:e}}var Dr={toGeoJSON:function(e){return ln(this,{type:"Point",coordinates:Cr(this.getLatLng(),e)})}};bi.include(Dr),Lr.include(Dr),wi.include(Dr),Ct.include({toGeoJSON:function(e){var n=!et(this._latlngs),o=Pi(this._latlngs,n?1:0,!1,e);return ln(this,{type:(n?"Multi":"")+"LineString",coordinates:o})}}),un.include({toGeoJSON:function(e){var n=!et(this._latlngs),o=n&&!et(this._latlngs[0]),s=Pi(this._latlngs,o?2:n?1:0,!0,e);return n||(s=[s]),ln(this,{type:(o?"Multi":"")+"Polygon",coordinates:s})}}),an.include({toMultiPoint:function(e){var n=[];return this.eachLayer(function(o){n.push(o.toGeoJSON(e).geometry.coordinates)}),ln(this,{type:"MultiPoint",coordinates:n})},toGeoJSON:function(e){var n=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(n==="MultiPoint")return this.toMultiPoint(e);var o=n==="GeometryCollection",s=[];return this.eachLayer(function(l){if(l.toGeoJSON){var f=l.toGeoJSON(e);if(o)s.push(f.geometry);else{var y=Si(f);y.type==="FeatureCollection"?s.push.apply(s,y.features):s.push(y)}}}),o?ln(this,{geometries:s,type:"GeometryCollection"}):{type:"FeatureCollection",features:s}}});function Ma(e,n){return new Dt(e,n)}var Ef=Ma,Ti=ft.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(e,n,o){this._url=e,this._bounds=de(n),m(this,o)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(re(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){Pe(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(e){return this.options.opacity=e,this._image&&this._updateOpacity(),this},setStyle:function(e){return e.opacity&&this.setOpacity(e.opacity),this},bringToFront:function(){return this._map&&rn(this._image),this},bringToBack:function(){return this._map&&on(this._image),this},setUrl:function(e){return this._url=e,this._image&&(this._image.src=e),this},setBounds:function(e){return this._bounds=de(e),this._map&&this._reset(),this},getEvents:function(){var e={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(e.zoomanim=this._animateZoom),e},setZIndex:function(e){return this.options.zIndex=e,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var e=this._url.tagName==="IMG",n=this._image=e?this._url:me("img");if(re(n,"leaflet-image-layer"),this._zoomAnimated&&re(n,"leaflet-zoom-animated"),this.options.className&&re(n,this.options.className),n.onselectstart=x,n.onmousemove=x,n.onload=h(this.fire,this,"load"),n.onerror=h(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(n.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),e){this._url=n.src;return}n.src=this._url,n.alt=this.options.alt},_animateZoom:function(e){var n=this._map.getZoomScale(e.zoom),o=this._map._latLngBoundsToNewLayerBounds(this._bounds,e.zoom,e.center).min;Zt(this._image,o,n)},_reset:function(){var e=this._image,n=new J(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),o=n.getSize();De(e,n.min),e.style.width=o.x+"px",e.style.height=o.y+"px"},_updateOpacity:function(){Qe(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var e=this.options.errorOverlayUrl;e&&this._url!==e&&(this._url=e,this._image.src=e)},getCenter:function(){return this._bounds.getCenter()}}),Cf=function(e,n,o){return new Ti(e,n,o)},ka=Ti.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var e=this._url.tagName==="VIDEO",n=this._image=e?this._url:me("video");if(re(n,"leaflet-image-layer"),this._zoomAnimated&&re(n,"leaflet-zoom-animated"),this.options.className&&re(n,this.options.className),n.onselectstart=x,n.onmousemove=x,n.onloadeddata=h(this.fire,this,"load"),e){for(var o=n.getElementsByTagName("source"),s=[],l=0;l<o.length;l++)s.push(o[l].src);this._url=o.length>0?s:[n.src];return}C(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(n.style,"objectFit")&&(n.style.objectFit="fill"),n.autoplay=!!this.options.autoplay,n.loop=!!this.options.loop,n.muted=!!this.options.muted,n.playsInline=!!this.options.playsInline;for(var f=0;f<this._url.length;f++){var y=me("source");y.src=this._url[f],n.appendChild(y)}}});function Df(e,n,o){return new ka(e,n,o)}var Aa=Ti.extend({_initImage:function(){var e=this._image=this._url;re(e,"leaflet-image-layer"),this._zoomAnimated&&re(e,"leaflet-zoom-animated"),this.options.className&&re(e,this.options.className),e.onselectstart=x,e.onmousemove=x}});function Mf(e,n,o){return new Aa(e,n,o)}var yt=ft.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(e,n){e&&(e instanceof X||C(e))?(this._latlng=G(e),m(this,n)):(m(this,e),this._source=n),this.options.content&&(this._content=this.options.content)},openOn:function(e){return e=arguments.length?e:this._source._map,e.hasLayer(this)||e.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(e){return this._map?this.close():(arguments.length?this._source=e:e=this._source,this._prepareOpen(),this.openOn(e._map)),this},onAdd:function(e){this._zoomAnimated=e._zoomAnimated,this._container||this._initLayout(),e._fadeAnimated&&Qe(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),e._fadeAnimated&&Qe(this._container,1),this.bringToFront(),this.options.interactive&&(re(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(e){e._fadeAnimated?(Qe(this._container,0),this._removeTimeout=setTimeout(h(Pe,void 0,this._container),200)):Pe(this._container),this.options.interactive&&(Le(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(e){return this._latlng=G(e),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(e){return this._content=e,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var e={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(e.zoomanim=this._animateZoom),e},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&rn(this._container),this},bringToBack:function(){return this._map&&on(this._container),this},_prepareOpen:function(e){var n=this._source;if(!n._map)return!1;if(n instanceof Et){n=null;var o=this._source._layers;for(var s in o)if(o[s]._map){n=o[s];break}if(!n)return!1;this._source=n}if(!e)if(n.getCenter)e=n.getCenter();else if(n.getLatLng)e=n.getLatLng();else if(n.getBounds)e=n.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(e),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var e=this._contentNode,n=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof n=="string")e.innerHTML=n;else{for(;e.hasChildNodes();)e.removeChild(e.firstChild);e.appendChild(n)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var e=this._map.latLngToLayerPoint(this._latlng),n=W(this.options.offset),o=this._getAnchor();this._zoomAnimated?De(this._container,e.add(o)):n=n.add(e).add(o);var s=this._containerBottom=-n.y,l=this._containerLeft=-Math.round(this._containerWidth/2)+n.x;this._container.style.bottom=s+"px",this._container.style.left=l+"px"}},_getAnchor:function(){return[0,0]}});fe.include({_initOverlay:function(e,n,o,s){var l=n;return l instanceof e||(l=new e(s).setContent(n)),o&&l.setLatLng(o),l}}),ft.include({_initOverlay:function(e,n,o,s){var l=o;return l instanceof e?(m(l,s),l._source=this):(l=n&&!s?n:new e(s,this),l.setContent(o)),l}});var Li=yt.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(e){return e=arguments.length?e:this._source._map,!e.hasLayer(this)&&e._popup&&e._popup.options.autoClose&&e.removeLayer(e._popup),e._popup=this,yt.prototype.openOn.call(this,e)},onAdd:function(e){yt.prototype.onAdd.call(this,e),e.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof Nt||this._source.on("preclick",Vt))},onRemove:function(e){yt.prototype.onRemove.call(this,e),e.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof Nt||this._source.off("preclick",Vt))},getEvents:function(){var e=yt.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(e.preclick=this.close),this.options.keepInView&&(e.moveend=this._adjustPan),e},_initLayout:function(){var e="leaflet-popup",n=this._container=me("div",e+" "+(this.options.className||"")+" leaflet-zoom-animated"),o=this._wrapper=me("div",e+"-content-wrapper",n);if(this._contentNode=me("div",e+"-content",o),An(n),yr(this._contentNode),ee(n,"contextmenu",Vt),this._tipContainer=me("div",e+"-tip-container",n),this._tip=me("div",e+"-tip",this._tipContainer),this.options.closeButton){var s=this._closeButton=me("a",e+"-close-button",n);s.setAttribute("role","button"),s.setAttribute("aria-label","Close popup"),s.href="#close",s.innerHTML='<span aria-hidden="true">&#215;</span>',ee(s,"click",function(l){Ie(l),this.close()},this)}},_updateLayout:function(){var e=this._contentNode,n=e.style;n.width="",n.whiteSpace="nowrap";var o=e.offsetWidth;o=Math.min(o,this.options.maxWidth),o=Math.max(o,this.options.minWidth),n.width=o+1+"px",n.whiteSpace="",n.height="";var s=e.offsetHeight,l=this.options.maxHeight,f="leaflet-popup-scrolled";l&&s>l?(n.height=l+"px",re(e,f)):Le(e,f),this._containerWidth=this._container.offsetWidth},_animateZoom:function(e){var n=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center),o=this._getAnchor();De(this._container,n.add(o))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var e=this._map,n=parseInt(Cn(this._container,"marginBottom"),10)||0,o=this._container.offsetHeight+n,s=this._containerWidth,l=new Z(this._containerLeft,-o-this._containerBottom);l._add(Ft(this._container));var f=e.layerPointToContainerPoint(l),y=W(this.options.autoPanPadding),P=W(this.options.autoPanPaddingTopLeft||y),E=W(this.options.autoPanPaddingBottomRight||y),M=e.getSize(),j=0,U=0;f.x+s+E.x>M.x&&(j=f.x+s-M.x+E.x),f.x-j-P.x<0&&(j=f.x-P.x),f.y+o+E.y>M.y&&(U=f.y+o-M.y+E.y),f.y-U-P.y<0&&(U=f.y-P.y),(j||U)&&(this.options.keepInView&&(this._autopanning=!0),e.fire("autopanstart").panBy([j,U]))}},_getAnchor:function(){return W(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),kf=function(e,n){return new Li(e,n)};fe.mergeOptions({closePopupOnClick:!0}),fe.include({openPopup:function(e,n,o){return this._initOverlay(Li,e,n,o).openOn(this),this},closePopup:function(e){return e=arguments.length?e:this._popup,e&&e.close(),this}}),ft.include({bindPopup:function(e,n){return this._popup=this._initOverlay(Li,this._popup,e,n),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(e){return this._popup&&(this instanceof Et||(this._popup._source=this),this._popup._prepareOpen(e||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(e){return this._popup&&this._popup.setContent(e),this},getPopup:function(){return this._popup},_openPopup:function(e){if(!(!this._popup||!this._map)){Ut(e);var n=e.layer||e.target;if(this._popup._source===n&&!(n instanceof Nt)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(e.latlng);return}this._popup._source=n,this.openPopup(e.latlng)}},_movePopup:function(e){this._popup.setLatLng(e.latlng)},_onKeyPress:function(e){e.originalEvent.keyCode===13&&this._openPopup(e)}});var Ei=yt.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(e){yt.prototype.onAdd.call(this,e),this.setOpacity(this.options.opacity),e.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(e){yt.prototype.onRemove.call(this,e),e.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var e=yt.prototype.getEvents.call(this);return this.options.permanent||(e.preclick=this.close),e},_initLayout:function(){var e="leaflet-tooltip",n=e+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=me("div",n),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+p(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(e){var n,o,s=this._map,l=this._container,f=s.latLngToContainerPoint(s.getCenter()),y=s.layerPointToContainerPoint(e),P=this.options.direction,E=l.offsetWidth,M=l.offsetHeight,j=W(this.options.offset),U=this._getAnchor();P==="top"?(n=E/2,o=M):P==="bottom"?(n=E/2,o=0):P==="center"?(n=E/2,o=M/2):P==="right"?(n=0,o=M/2):P==="left"?(n=E,o=M/2):y.x<f.x?(P="right",n=0,o=M/2):(P="left",n=E+(j.x+U.x)*2,o=M/2),e=e.subtract(W(n,o,!0)).add(j).add(U),Le(l,"leaflet-tooltip-right"),Le(l,"leaflet-tooltip-left"),Le(l,"leaflet-tooltip-top"),Le(l,"leaflet-tooltip-bottom"),re(l,"leaflet-tooltip-"+P),De(l,e)},_updatePosition:function(){var e=this._map.latLngToLayerPoint(this._latlng);this._setPosition(e)},setOpacity:function(e){this.options.opacity=e,this._container&&Qe(this._container,e)},_animateZoom:function(e){var n=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center);this._setPosition(n)},_getAnchor:function(){return W(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),Af=function(e,n){return new Ei(e,n)};fe.include({openTooltip:function(e,n,o){return this._initOverlay(Ei,e,n,o).openOn(this),this},closeTooltip:function(e){return e.close(),this}}),ft.include({bindTooltip:function(e,n){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Ei,this._tooltip,e,n),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(e){if(!(!e&&this._tooltipHandlersAdded)){var n=e?"off":"on",o={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?o.add=this._openTooltip:(o.mouseover=this._openTooltip,o.mouseout=this.closeTooltip,o.click=this._openTooltip,this._map?this._addFocusListeners():o.add=this._addFocusListeners),this._tooltip.options.sticky&&(o.mousemove=this._moveTooltip),this[n](o),this._tooltipHandlersAdded=!e}},openTooltip:function(e){return this._tooltip&&(this instanceof Et||(this._tooltip._source=this),this._tooltip._prepareOpen(e)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(e){return this._tooltip&&this._tooltip.setContent(e),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(e){var n=typeof e.getElement=="function"&&e.getElement();n&&(ee(n,"focus",function(){this._tooltip._source=e,this.openTooltip()},this),ee(n,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(e){var n=typeof e.getElement=="function"&&e.getElement();n&&n.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(e){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var n=this;this._map.once("moveend",function(){n._openOnceFlag=!1,n._openTooltip(e)});return}this._tooltip._source=e.layer||e.target,this.openTooltip(this._tooltip.options.sticky?e.latlng:void 0)}},_moveTooltip:function(e){var n=e.latlng,o,s;this._tooltip.options.sticky&&e.originalEvent&&(o=this._map.mouseEventToContainerPoint(e.originalEvent),s=this._map.containerPointToLayerPoint(o),n=this._map.layerPointToLatLng(s)),this._tooltip.setLatLng(n)}});var Ia=sn.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(e){var n=e&&e.tagName==="DIV"?e:document.createElement("div"),o=this.options;if(o.html instanceof Element?(pi(n),n.appendChild(o.html)):n.innerHTML=o.html!==!1?o.html:"",o.bgPos){var s=W(o.bgPos);n.style.backgroundPosition=-s.x+"px "+-s.y+"px"}return this._setIconStyles(n,"icon"),n},createShadow:function(){return null}});function If(e){return new Ia(e)}sn.Default=Rn;var jn=ft.extend({options:{tileSize:256,opacity:1,updateWhenIdle:F.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(e){m(this,e)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(e){e._addZoomLimit(this)},onRemove:function(e){this._removeAllTiles(),Pe(this._container),e._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(rn(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(on(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(e){return this.options.opacity=e,this._updateOpacity(),this},setZIndex:function(e){return this.options.zIndex=e,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var e=this._clampZoom(this._map.getZoom());e!==this._tileZoom&&(this._tileZoom=e,this._updateLevels()),this._update()}return this},getEvents:function(){var e={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=b(this._onMoveEnd,this.options.updateInterval,this)),e.move=this._onMove),this._zoomAnimated&&(e.zoomanim=this._animateZoom),e},createTile:function(){return document.createElement("div")},getTileSize:function(){var e=this.options.tileSize;return e instanceof Z?e:new Z(e,e)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(e){for(var n=this.getPane().children,o=-e(-1/0,1/0),s=0,l=n.length,f;s<l;s++)f=n[s].style.zIndex,n[s]!==this._container&&f&&(o=e(o,+f));isFinite(o)&&(this.options.zIndex=o+e(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!F.ielt9){Qe(this._container,this.options.opacity);var e=+new Date,n=!1,o=!1;for(var s in this._tiles){var l=this._tiles[s];if(!(!l.current||!l.loaded)){var f=Math.min(1,(e-l.loaded)/200);Qe(l.el,f),f<1?n=!0:(l.active?o=!0:this._onOpaqueTile(l),l.active=!0)}}o&&!this._noPrune&&this._pruneTiles(),n&&(Q(this._fadeFrame),this._fadeFrame=ne(this._updateOpacity,this))}},_onOpaqueTile:x,_initContainer:function(){this._container||(this._container=me("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var e=this._tileZoom,n=this.options.maxZoom;if(e!==void 0){for(var o in this._levels)o=Number(o),this._levels[o].el.children.length||o===e?(this._levels[o].el.style.zIndex=n-Math.abs(e-o),this._onUpdateLevel(o)):(Pe(this._levels[o].el),this._removeTilesAtZoom(o),this._onRemoveLevel(o),delete this._levels[o]);var s=this._levels[e],l=this._map;return s||(s=this._levels[e]={},s.el=me("div","leaflet-tile-container leaflet-zoom-animated",this._container),s.el.style.zIndex=n,s.origin=l.project(l.unproject(l.getPixelOrigin()),e).round(),s.zoom=e,this._setZoomTransform(s,l.getCenter(),l.getZoom()),x(s.el.offsetWidth),this._onCreateLevel(s)),this._level=s,s}},_onUpdateLevel:x,_onRemoveLevel:x,_onCreateLevel:x,_pruneTiles:function(){if(this._map){var e,n,o=this._map.getZoom();if(o>this.options.maxZoom||o<this.options.minZoom){this._removeAllTiles();return}for(e in this._tiles)n=this._tiles[e],n.retain=n.current;for(e in this._tiles)if(n=this._tiles[e],n.current&&!n.active){var s=n.coords;this._retainParent(s.x,s.y,s.z,s.z-5)||this._retainChildren(s.x,s.y,s.z,s.z+2)}for(e in this._tiles)this._tiles[e].retain||this._removeTile(e)}},_removeTilesAtZoom:function(e){for(var n in this._tiles)this._tiles[n].coords.z===e&&this._removeTile(n)},_removeAllTiles:function(){for(var e in this._tiles)this._removeTile(e)},_invalidateAll:function(){for(var e in this._levels)Pe(this._levels[e].el),this._onRemoveLevel(Number(e)),delete this._levels[e];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(e,n,o,s){var l=Math.floor(e/2),f=Math.floor(n/2),y=o-1,P=new Z(+l,+f);P.z=+y;var E=this._tileCoordsToKey(P),M=this._tiles[E];return M&&M.active?(M.retain=!0,!0):(M&&M.loaded&&(M.retain=!0),y>s?this._retainParent(l,f,y,s):!1)},_retainChildren:function(e,n,o,s){for(var l=2*e;l<2*e+2;l++)for(var f=2*n;f<2*n+2;f++){var y=new Z(l,f);y.z=o+1;var P=this._tileCoordsToKey(y),E=this._tiles[P];if(E&&E.active){E.retain=!0;continue}else E&&E.loaded&&(E.retain=!0);o+1<s&&this._retainChildren(l,f,o+1,s)}},_resetView:function(e){var n=e&&(e.pinch||e.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),n,n)},_animateZoom:function(e){this._setView(e.center,e.zoom,!0,e.noUpdate)},_clampZoom:function(e){var n=this.options;return n.minNativeZoom!==void 0&&e<n.minNativeZoom?n.minNativeZoom:n.maxNativeZoom!==void 0&&n.maxNativeZoom<e?n.maxNativeZoom:e},_setView:function(e,n,o,s){var l=Math.round(n);this.options.maxZoom!==void 0&&l>this.options.maxZoom||this.options.minZoom!==void 0&&l<this.options.minZoom?l=void 0:l=this._clampZoom(l);var f=this.options.updateWhenZooming&&l!==this._tileZoom;(!s||f)&&(this._tileZoom=l,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),l!==void 0&&this._update(e),o||this._pruneTiles(),this._noPrune=!!o),this._setZoomTransforms(e,n)},_setZoomTransforms:function(e,n){for(var o in this._levels)this._setZoomTransform(this._levels[o],e,n)},_setZoomTransform:function(e,n,o){var s=this._map.getZoomScale(o,e.zoom),l=e.origin.multiplyBy(s).subtract(this._map._getNewPixelOrigin(n,o)).round();F.any3d?Zt(e.el,l,s):De(e.el,l)},_resetGrid:function(){var e=this._map,n=e.options.crs,o=this._tileSize=this.getTileSize(),s=this._tileZoom,l=this._map.getPixelWorldBounds(this._tileZoom);l&&(this._globalTileRange=this._pxBoundsToTileRange(l)),this._wrapX=n.wrapLng&&!this.options.noWrap&&[Math.floor(e.project([0,n.wrapLng[0]],s).x/o.x),Math.ceil(e.project([0,n.wrapLng[1]],s).x/o.y)],this._wrapY=n.wrapLat&&!this.options.noWrap&&[Math.floor(e.project([n.wrapLat[0],0],s).y/o.x),Math.ceil(e.project([n.wrapLat[1],0],s).y/o.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(e){var n=this._map,o=n._animatingZoom?Math.max(n._animateToZoom,n.getZoom()):n.getZoom(),s=n.getZoomScale(o,this._tileZoom),l=n.project(e,this._tileZoom).floor(),f=n.getSize().divideBy(s*2);return new J(l.subtract(f),l.add(f))},_update:function(e){var n=this._map;if(n){var o=this._clampZoom(n.getZoom());if(e===void 0&&(e=n.getCenter()),this._tileZoom!==void 0){var s=this._getTiledPixelBounds(e),l=this._pxBoundsToTileRange(s),f=l.getCenter(),y=[],P=this.options.keepBuffer,E=new J(l.getBottomLeft().subtract([P,-P]),l.getTopRight().add([P,-P]));if(!(isFinite(l.min.x)&&isFinite(l.min.y)&&isFinite(l.max.x)&&isFinite(l.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var M in this._tiles){var j=this._tiles[M].coords;(j.z!==this._tileZoom||!E.contains(new Z(j.x,j.y)))&&(this._tiles[M].current=!1)}if(Math.abs(o-this._tileZoom)>1){this._setView(e,o);return}for(var U=l.min.y;U<=l.max.y;U++)for(var ae=l.min.x;ae<=l.max.x;ae++){var ze=new Z(ae,U);if(ze.z=this._tileZoom,!!this._isValidTile(ze)){var ke=this._tiles[this._tileCoordsToKey(ze)];ke?ke.current=!0:y.push(ze)}}if(y.sort(function(We,fn){return We.distanceTo(f)-fn.distanceTo(f)}),y.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var tt=document.createDocumentFragment();for(ae=0;ae<y.length;ae++)this._addTile(y[ae],tt);this._level.el.appendChild(tt)}}}},_isValidTile:function(e){var n=this._map.options.crs;if(!n.infinite){var o=this._globalTileRange;if(!n.wrapLng&&(e.x<o.min.x||e.x>o.max.x)||!n.wrapLat&&(e.y<o.min.y||e.y>o.max.y))return!1}if(!this.options.bounds)return!0;var s=this._tileCoordsToBounds(e);return de(this.options.bounds).overlaps(s)},_keyToBounds:function(e){return this._tileCoordsToBounds(this._keyToTileCoords(e))},_tileCoordsToNwSe:function(e){var n=this._map,o=this.getTileSize(),s=e.scaleBy(o),l=s.add(o),f=n.unproject(s,e.z),y=n.unproject(l,e.z);return[f,y]},_tileCoordsToBounds:function(e){var n=this._tileCoordsToNwSe(e),o=new ye(n[0],n[1]);return this.options.noWrap||(o=this._map.wrapLatLngBounds(o)),o},_tileCoordsToKey:function(e){return e.x+":"+e.y+":"+e.z},_keyToTileCoords:function(e){var n=e.split(":"),o=new Z(+n[0],+n[1]);return o.z=+n[2],o},_removeTile:function(e){var n=this._tiles[e];n&&(Pe(n.el),delete this._tiles[e],this.fire("tileunload",{tile:n.el,coords:this._keyToTileCoords(e)}))},_initTile:function(e){re(e,"leaflet-tile");var n=this.getTileSize();e.style.width=n.x+"px",e.style.height=n.y+"px",e.onselectstart=x,e.onmousemove=x,F.ielt9&&this.options.opacity<1&&Qe(e,this.options.opacity)},_addTile:function(e,n){var o=this._getTilePos(e),s=this._tileCoordsToKey(e),l=this.createTile(this._wrapCoords(e),h(this._tileReady,this,e));this._initTile(l),this.createTile.length<2&&ne(h(this._tileReady,this,e,null,l)),De(l,o),this._tiles[s]={el:l,coords:e,current:!0},n.appendChild(l),this.fire("tileloadstart",{tile:l,coords:e})},_tileReady:function(e,n,o){n&&this.fire("tileerror",{error:n,tile:o,coords:e});var s=this._tileCoordsToKey(e);o=this._tiles[s],o&&(o.loaded=+new Date,this._map._fadeAnimated?(Qe(o.el,0),Q(this._fadeFrame),this._fadeFrame=ne(this._updateOpacity,this)):(o.active=!0,this._pruneTiles()),n||(re(o.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:o.el,coords:e})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),F.ielt9||!this._map._fadeAnimated?ne(this._pruneTiles,this):setTimeout(h(this._pruneTiles,this),250)))},_getTilePos:function(e){return e.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(e){var n=new Z(this._wrapX?w(e.x,this._wrapX):e.x,this._wrapY?w(e.y,this._wrapY):e.y);return n.z=e.z,n},_pxBoundsToTileRange:function(e){var n=this.getTileSize();return new J(e.min.unscaleBy(n).floor(),e.max.unscaleBy(n).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var e in this._tiles)if(!this._tiles[e].loaded)return!1;return!0}});function Nf(e){return new jn(e)}var cn=jn.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(e,n){this._url=e,n=m(this,n),n.detectRetina&&F.retina&&n.maxZoom>0?(n.tileSize=Math.floor(n.tileSize/2),n.zoomReverse?(n.zoomOffset--,n.minZoom=Math.min(n.maxZoom,n.minZoom+1)):(n.zoomOffset++,n.maxZoom=Math.max(n.minZoom,n.maxZoom-1)),n.minZoom=Math.max(0,n.minZoom)):n.zoomReverse?n.minZoom=Math.min(n.maxZoom,n.minZoom):n.maxZoom=Math.max(n.minZoom,n.maxZoom),typeof n.subdomains=="string"&&(n.subdomains=n.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(e,n){return this._url===e&&n===void 0&&(n=!0),this._url=e,n||this.redraw(),this},createTile:function(e,n){var o=document.createElement("img");return ee(o,"load",h(this._tileOnLoad,this,n,o)),ee(o,"error",h(this._tileOnError,this,n,o)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(o.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(o.referrerPolicy=this.options.referrerPolicy),o.alt="",o.src=this.getTileUrl(e),o},getTileUrl:function(e){var n={r:F.retina?"@2x":"",s:this._getSubdomain(e),x:e.x,y:e.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var o=this._globalTileRange.max.y-e.y;this.options.tms&&(n.y=o),n["-y"]=o}return N(this._url,u(n,this.options))},_tileOnLoad:function(e,n){F.ielt9?setTimeout(h(e,this,null,n),0):e(null,n)},_tileOnError:function(e,n,o){var s=this.options.errorTileUrl;s&&n.getAttribute("src")!==s&&(n.src=s),e(o,n)},_onTileRemove:function(e){e.tile.onload=null},_getZoomForUrl:function(){var e=this._tileZoom,n=this.options.maxZoom,o=this.options.zoomReverse,s=this.options.zoomOffset;return o&&(e=n-e),e+s},_getSubdomain:function(e){var n=Math.abs(e.x+e.y)%this.options.subdomains.length;return this.options.subdomains[n]},_abortLoading:function(){var e,n;for(e in this._tiles)if(this._tiles[e].coords.z!==this._tileZoom&&(n=this._tiles[e].el,n.onload=x,n.onerror=x,!n.complete)){n.src=R;var o=this._tiles[e].coords;Pe(n),delete this._tiles[e],this.fire("tileabort",{tile:n,coords:o})}},_removeTile:function(e){var n=this._tiles[e];if(n)return n.el.setAttribute("src",R),jn.prototype._removeTile.call(this,e)},_tileReady:function(e,n,o){if(!(!this._map||o&&o.getAttribute("src")===R))return jn.prototype._tileReady.call(this,e,n,o)}});function Na(e,n){return new cn(e,n)}var Ra=cn.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(e,n){this._url=e;var o=u({},this.defaultWmsParams);for(var s in n)s in this.options||(o[s]=n[s]);n=m(this,n);var l=n.detectRetina&&F.retina?2:1,f=this.getTileSize();o.width=f.x*l,o.height=f.y*l,this.wmsParams=o},onAdd:function(e){this._crs=this.options.crs||e.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var n=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[n]=this._crs.code,cn.prototype.onAdd.call(this,e)},getTileUrl:function(e){var n=this._tileCoordsToNwSe(e),o=this._crs,s=ce(o.project(n[0]),o.project(n[1])),l=s.min,f=s.max,y=(this._wmsVersion>=1.3&&this._crs===Ea?[l.y,l.x,f.y,f.x]:[l.x,l.y,f.x,f.y]).join(","),P=cn.prototype.getTileUrl.call(this,e);return P+O(this.wmsParams,P,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+y},setParams:function(e,n){return u(this.wmsParams,e),n||this.redraw(),this}});function Rf(e,n){return new Ra(e,n)}cn.WMS=Ra,Na.wms=Rf;var Mt=ft.extend({options:{padding:.1},initialize:function(e){m(this,e),p(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),re(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var e={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(e.zoomanim=this._onAnimZoom),e},_onAnimZoom:function(e){this._updateTransform(e.center,e.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(e,n){var o=this._map.getZoomScale(n,this._zoom),s=this._map.getSize().multiplyBy(.5+this.options.padding),l=this._map.project(this._center,n),f=s.multiplyBy(-o).add(l).subtract(this._map._getNewPixelOrigin(e,n));F.any3d?Zt(this._container,f,o):De(this._container,f)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var e in this._layers)this._layers[e]._reset()},_onZoomEnd:function(){for(var e in this._layers)this._layers[e]._project()},_updatePaths:function(){for(var e in this._layers)this._layers[e]._update()},_update:function(){var e=this.options.padding,n=this._map.getSize(),o=this._map.containerPointToLayerPoint(n.multiplyBy(-e)).round();this._bounds=new J(o,o.add(n.multiplyBy(1+e*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),ja=Mt.extend({options:{tolerance:0},getEvents:function(){var e=Mt.prototype.getEvents.call(this);return e.viewprereset=this._onViewPreReset,e},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Mt.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var e=this._container=document.createElement("canvas");ee(e,"mousemove",this._onMouseMove,this),ee(e,"click dblclick mousedown mouseup contextmenu",this._onClick,this),ee(e,"mouseout",this._handleMouseOut,this),e._leaflet_disable_events=!0,this._ctx=e.getContext("2d")},_destroyContainer:function(){Q(this._redrawRequest),delete this._ctx,Pe(this._container),we(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var e;this._redrawBounds=null;for(var n in this._layers)e=this._layers[n],e._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Mt.prototype._update.call(this);var e=this._bounds,n=this._container,o=e.getSize(),s=F.retina?2:1;De(n,e.min),n.width=s*o.x,n.height=s*o.y,n.style.width=o.x+"px",n.style.height=o.y+"px",F.retina&&this._ctx.scale(2,2),this._ctx.translate(-e.min.x,-e.min.y),this.fire("update")}},_reset:function(){Mt.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(e){this._updateDashArray(e),this._layers[p(e)]=e;var n=e._order={layer:e,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=n),this._drawLast=n,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(e){this._requestRedraw(e)},_removePath:function(e){var n=e._order,o=n.next,s=n.prev;o?o.prev=s:this._drawLast=s,s?s.next=o:this._drawFirst=o,delete e._order,delete this._layers[p(e)],this._requestRedraw(e)},_updatePath:function(e){this._extendRedrawBounds(e),e._project(),e._update(),this._requestRedraw(e)},_updateStyle:function(e){this._updateDashArray(e),this._requestRedraw(e)},_updateDashArray:function(e){if(typeof e.options.dashArray=="string"){var n=e.options.dashArray.split(/[, ]+/),o=[],s,l;for(l=0;l<n.length;l++){if(s=Number(n[l]),isNaN(s))return;o.push(s)}e.options._dashArray=o}else e.options._dashArray=e.options.dashArray},_requestRedraw:function(e){this._map&&(this._extendRedrawBounds(e),this._redrawRequest=this._redrawRequest||ne(this._redraw,this))},_extendRedrawBounds:function(e){if(e._pxBounds){var n=(e.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new J,this._redrawBounds.extend(e._pxBounds.min.subtract([n,n])),this._redrawBounds.extend(e._pxBounds.max.add([n,n]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var e=this._redrawBounds;if(e){var n=e.getSize();this._ctx.clearRect(e.min.x,e.min.y,n.x,n.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var e,n=this._redrawBounds;if(this._ctx.save(),n){var o=n.getSize();this._ctx.beginPath(),this._ctx.rect(n.min.x,n.min.y,o.x,o.y),this._ctx.clip()}this._drawing=!0;for(var s=this._drawFirst;s;s=s.next)e=s.layer,(!n||e._pxBounds&&e._pxBounds.intersects(n))&&e._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(e,n){if(this._drawing){var o,s,l,f,y=e._parts,P=y.length,E=this._ctx;if(P){for(E.beginPath(),o=0;o<P;o++){for(s=0,l=y[o].length;s<l;s++)f=y[o][s],E[s?"lineTo":"moveTo"](f.x,f.y);n&&E.closePath()}this._fillStroke(E,e)}}},_updateCircle:function(e){if(!(!this._drawing||e._empty())){var n=e._point,o=this._ctx,s=Math.max(Math.round(e._radius),1),l=(Math.max(Math.round(e._radiusY),1)||s)/s;l!==1&&(o.save(),o.scale(1,l)),o.beginPath(),o.arc(n.x,n.y/l,s,0,Math.PI*2,!1),l!==1&&o.restore(),this._fillStroke(o,e)}},_fillStroke:function(e,n){var o=n.options;o.fill&&(e.globalAlpha=o.fillOpacity,e.fillStyle=o.fillColor||o.color,e.fill(o.fillRule||"evenodd")),o.stroke&&o.weight!==0&&(e.setLineDash&&e.setLineDash(n.options&&n.options._dashArray||[]),e.globalAlpha=o.opacity,e.lineWidth=o.weight,e.strokeStyle=o.color,e.lineCap=o.lineCap,e.lineJoin=o.lineJoin,e.stroke())},_onClick:function(e){for(var n=this._map.mouseEventToLayerPoint(e),o,s,l=this._drawFirst;l;l=l.next)o=l.layer,o.options.interactive&&o._containsPoint(n)&&(!(e.type==="click"||e.type==="preclick")||!this._map._draggableMoved(o))&&(s=o);this._fireEvent(s?[s]:!1,e)},_onMouseMove:function(e){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var n=this._map.mouseEventToLayerPoint(e);this._handleMouseHover(e,n)}},_handleMouseOut:function(e){var n=this._hoveredLayer;n&&(Le(this._container,"leaflet-interactive"),this._fireEvent([n],e,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(e,n){if(!this._mouseHoverThrottled){for(var o,s,l=this._drawFirst;l;l=l.next)o=l.layer,o.options.interactive&&o._containsPoint(n)&&(s=o);s!==this._hoveredLayer&&(this._handleMouseOut(e),s&&(re(this._container,"leaflet-interactive"),this._fireEvent([s],e,"mouseover"),this._hoveredLayer=s)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,e),this._mouseHoverThrottled=!0,setTimeout(h(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(e,n,o){this._map._fireDOMEvent(n,o||n.type,e)},_bringToFront:function(e){var n=e._order;if(n){var o=n.next,s=n.prev;if(o)o.prev=s;else return;s?s.next=o:o&&(this._drawFirst=o),n.prev=this._drawLast,this._drawLast.next=n,n.next=null,this._drawLast=n,this._requestRedraw(e)}},_bringToBack:function(e){var n=e._order;if(n){var o=n.next,s=n.prev;if(s)s.next=o;else return;o?o.prev=s:s&&(this._drawLast=s),n.prev=null,n.next=this._drawFirst,this._drawFirst.prev=n,this._drawFirst=n,this._requestRedraw(e)}}});function $a(e){return F.canvas?new ja(e):null}var $n=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(e){return document.createElement("<lvml:"+e+' class="lvml">')}}catch{}return function(e){return document.createElement("<"+e+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),jf={_initContainer:function(){this._container=me("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Mt.prototype._update.call(this),this.fire("update"))},_initPath:function(e){var n=e._container=$n("shape");re(n,"leaflet-vml-shape "+(this.options.className||"")),n.coordsize="1 1",e._path=$n("path"),n.appendChild(e._path),this._updateStyle(e),this._layers[p(e)]=e},_addPath:function(e){var n=e._container;this._container.appendChild(n),e.options.interactive&&e.addInteractiveTarget(n)},_removePath:function(e){var n=e._container;Pe(n),e.removeInteractiveTarget(n),delete this._layers[p(e)]},_updateStyle:function(e){var n=e._stroke,o=e._fill,s=e.options,l=e._container;l.stroked=!!s.stroke,l.filled=!!s.fill,s.stroke?(n||(n=e._stroke=$n("stroke")),l.appendChild(n),n.weight=s.weight+"px",n.color=s.color,n.opacity=s.opacity,s.dashArray?n.dashStyle=C(s.dashArray)?s.dashArray.join(" "):s.dashArray.replace(/( *, *)/g," "):n.dashStyle="",n.endcap=s.lineCap.replace("butt","flat"),n.joinstyle=s.lineJoin):n&&(l.removeChild(n),e._stroke=null),s.fill?(o||(o=e._fill=$n("fill")),l.appendChild(o),o.color=s.fillColor||s.color,o.opacity=s.fillOpacity):o&&(l.removeChild(o),e._fill=null)},_updateCircle:function(e){var n=e._point.round(),o=Math.round(e._radius),s=Math.round(e._radiusY||o);this._setPath(e,e._empty()?"M0 0":"AL "+n.x+","+n.y+" "+o+","+s+" 0,"+65535*360)},_setPath:function(e,n){e._path.v=n},_bringToFront:function(e){rn(e._container)},_bringToBack:function(e){on(e._container)}},Ci=F.vml?$n:Tt,Bn=Mt.extend({_initContainer:function(){this._container=Ci("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Ci("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){Pe(this._container),we(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Mt.prototype._update.call(this);var e=this._bounds,n=e.getSize(),o=this._container;(!this._svgSize||!this._svgSize.equals(n))&&(this._svgSize=n,o.setAttribute("width",n.x),o.setAttribute("height",n.y)),De(o,e.min),o.setAttribute("viewBox",[e.min.x,e.min.y,n.x,n.y].join(" ")),this.fire("update")}},_initPath:function(e){var n=e._path=Ci("path");e.options.className&&re(n,e.options.className),e.options.interactive&&re(n,"leaflet-interactive"),this._updateStyle(e),this._layers[p(e)]=e},_addPath:function(e){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(e._path),e.addInteractiveTarget(e._path)},_removePath:function(e){Pe(e._path),e.removeInteractiveTarget(e._path),delete this._layers[p(e)]},_updatePath:function(e){e._project(),e._update()},_updateStyle:function(e){var n=e._path,o=e.options;n&&(o.stroke?(n.setAttribute("stroke",o.color),n.setAttribute("stroke-opacity",o.opacity),n.setAttribute("stroke-width",o.weight),n.setAttribute("stroke-linecap",o.lineCap),n.setAttribute("stroke-linejoin",o.lineJoin),o.dashArray?n.setAttribute("stroke-dasharray",o.dashArray):n.removeAttribute("stroke-dasharray"),o.dashOffset?n.setAttribute("stroke-dashoffset",o.dashOffset):n.removeAttribute("stroke-dashoffset")):n.setAttribute("stroke","none"),o.fill?(n.setAttribute("fill",o.fillColor||o.color),n.setAttribute("fill-opacity",o.fillOpacity),n.setAttribute("fill-rule",o.fillRule||"evenodd")):n.setAttribute("fill","none"))},_updatePoly:function(e,n){this._setPath(e,Lt(e._parts,n))},_updateCircle:function(e){var n=e._point,o=Math.max(Math.round(e._radius),1),s=Math.max(Math.round(e._radiusY),1)||o,l="a"+o+","+s+" 0 1,0 ",f=e._empty()?"M0 0":"M"+(n.x-o)+","+n.y+l+o*2+",0 "+l+-o*2+",0 ";this._setPath(e,f)},_setPath:function(e,n){e._path.setAttribute("d",n)},_bringToFront:function(e){rn(e._path)},_bringToBack:function(e){on(e._path)}});F.vml&&Bn.include(jf);function Ba(e){return F.svg||F.vml?new Bn(e):null}fe.include({getRenderer:function(e){var n=e.options.renderer||this._getPaneRenderer(e.options.pane)||this.options.renderer||this._renderer;return n||(n=this._renderer=this._createRenderer()),this.hasLayer(n)||this.addLayer(n),n},_getPaneRenderer:function(e){if(e==="overlayPane"||e===void 0)return!1;var n=this._paneRenderers[e];return n===void 0&&(n=this._createRenderer({pane:e}),this._paneRenderers[e]=n),n},_createRenderer:function(e){return this.options.preferCanvas&&$a(e)||Ba(e)}});var za=un.extend({initialize:function(e,n){un.prototype.initialize.call(this,this._boundsToLatLngs(e),n)},setBounds:function(e){return this.setLatLngs(this._boundsToLatLngs(e))},_boundsToLatLngs:function(e){return e=de(e),[e.getSouthWest(),e.getNorthWest(),e.getNorthEast(),e.getSouthEast()]}});function $f(e,n){return new za(e,n)}Bn.create=Ci,Bn.pointsToPath=Lt,Dt.geometryToLayer=xi,Dt.coordsToLatLng=Er,Dt.coordsToLatLngs=Oi,Dt.latLngToCoords=Cr,Dt.latLngsToCoords=Pi,Dt.getFeature=ln,Dt.asFeature=Si,fe.mergeOptions({boxZoom:!0});var Wa=gt.extend({initialize:function(e){this._map=e,this._container=e._container,this._pane=e._panes.overlayPane,this._resetStateTimeout=0,e.on("unload",this._destroy,this)},addHooks:function(){ee(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){we(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){Pe(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(e){if(!e.shiftKey||e.which!==1&&e.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),Dn(),fr(),this._startPoint=this._map.mouseEventToContainerPoint(e),ee(document,{contextmenu:Ut,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(e){this._moved||(this._moved=!0,this._box=me("div","leaflet-zoom-box",this._container),re(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(e);var n=new J(this._point,this._startPoint),o=n.getSize();De(this._box,n.min),this._box.style.width=o.x+"px",this._box.style.height=o.y+"px"},_finish:function(){this._moved&&(Pe(this._box),Le(this._container,"leaflet-crosshair")),Mn(),hr(),we(document,{contextmenu:Ut,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(e){if(!(e.which!==1&&e.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(h(this._resetState,this),0);var n=new ye(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(n).fire("boxzoomend",{boxZoomBounds:n})}},_onKeyDown:function(e){e.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});fe.addInitHook("addHandler","boxZoom",Wa),fe.mergeOptions({doubleClickZoom:!0});var Za=gt.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(e){var n=this._map,o=n.getZoom(),s=n.options.zoomDelta,l=e.originalEvent.shiftKey?o-s:o+s;n.options.doubleClickZoom==="center"?n.setZoom(l):n.setZoomAround(e.containerPoint,l)}});fe.addInitHook("addHandler","doubleClickZoom",Za),fe.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var Fa=gt.extend({addHooks:function(){if(!this._draggable){var e=this._map;this._draggable=new It(e._mapPane,e._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),e.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),e.on("zoomend",this._onZoomEnd,this),e.whenReady(this._onZoomEnd,this))}re(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){Le(this._map._container,"leaflet-grab"),Le(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var e=this._map;if(e._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var n=de(this._map.options.maxBounds);this._offsetLimit=ce(this._map.latLngToContainerPoint(n.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(n.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;e.fire("movestart").fire("dragstart"),e.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(e){if(this._map.options.inertia){var n=this._lastTime=+new Date,o=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(o),this._times.push(n),this._prunePositions(n)}this._map.fire("move",e).fire("drag",e)},_prunePositions:function(e){for(;this._positions.length>1&&e-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var e=this._map.getSize().divideBy(2),n=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=n.subtract(e).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(e,n){return e-(e-n)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var e=this._draggable._newPos.subtract(this._draggable._startPos),n=this._offsetLimit;e.x<n.min.x&&(e.x=this._viscousLimit(e.x,n.min.x)),e.y<n.min.y&&(e.y=this._viscousLimit(e.y,n.min.y)),e.x>n.max.x&&(e.x=this._viscousLimit(e.x,n.max.x)),e.y>n.max.y&&(e.y=this._viscousLimit(e.y,n.max.y)),this._draggable._newPos=this._draggable._startPos.add(e)}},_onPreDragWrap:function(){var e=this._worldWidth,n=Math.round(e/2),o=this._initialWorldOffset,s=this._draggable._newPos.x,l=(s-n+o)%e+n-o,f=(s+n+o)%e-n-o,y=Math.abs(l+o)<Math.abs(f+o)?l:f;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=y},_onDragEnd:function(e){var n=this._map,o=n.options,s=!o.inertia||e.noInertia||this._times.length<2;if(n.fire("dragend",e),s)n.fire("moveend");else{this._prunePositions(+new Date);var l=this._lastPos.subtract(this._positions[0]),f=(this._lastTime-this._times[0])/1e3,y=o.easeLinearity,P=l.multiplyBy(y/f),E=P.distanceTo([0,0]),M=Math.min(o.inertiaMaxSpeed,E),j=P.multiplyBy(M/E),U=M/(o.inertiaDeceleration*y),ae=j.multiplyBy(-U/2).round();!ae.x&&!ae.y?n.fire("moveend"):(ae=n._limitOffset(ae,n.options.maxBounds),ne(function(){n.panBy(ae,{duration:U,easeLinearity:y,noMoveStart:!0,animate:!0})}))}}});fe.addInitHook("addHandler","dragging",Fa),fe.mergeOptions({keyboard:!0,keyboardPanDelta:80});var Va=gt.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(e){this._map=e,this._setPanDelta(e.options.keyboardPanDelta),this._setZoomDelta(e.options.zoomDelta)},addHooks:function(){var e=this._map._container;e.tabIndex<=0&&(e.tabIndex="0"),ee(e,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),we(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var e=document.body,n=document.documentElement,o=e.scrollTop||n.scrollTop,s=e.scrollLeft||n.scrollLeft;this._map._container.focus(),window.scrollTo(s,o)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(e){var n=this._panKeys={},o=this.keyCodes,s,l;for(s=0,l=o.left.length;s<l;s++)n[o.left[s]]=[-1*e,0];for(s=0,l=o.right.length;s<l;s++)n[o.right[s]]=[e,0];for(s=0,l=o.down.length;s<l;s++)n[o.down[s]]=[0,e];for(s=0,l=o.up.length;s<l;s++)n[o.up[s]]=[0,-1*e]},_setZoomDelta:function(e){var n=this._zoomKeys={},o=this.keyCodes,s,l;for(s=0,l=o.zoomIn.length;s<l;s++)n[o.zoomIn[s]]=e;for(s=0,l=o.zoomOut.length;s<l;s++)n[o.zoomOut[s]]=-e},_addHooks:function(){ee(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){we(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(e){if(!(e.altKey||e.ctrlKey||e.metaKey)){var n=e.keyCode,o=this._map,s;if(n in this._panKeys){if(!o._panAnim||!o._panAnim._inProgress)if(s=this._panKeys[n],e.shiftKey&&(s=W(s).multiplyBy(3)),o.options.maxBounds&&(s=o._limitOffset(W(s),o.options.maxBounds)),o.options.worldCopyJump){var l=o.wrapLatLng(o.unproject(o.project(o.getCenter()).add(s)));o.panTo(l)}else o.panBy(s)}else if(n in this._zoomKeys)o.setZoom(o.getZoom()+(e.shiftKey?3:1)*this._zoomKeys[n]);else if(n===27&&o._popup&&o._popup.options.closeOnEscapeKey)o.closePopup();else return;Ut(e)}}});fe.addInitHook("addHandler","keyboard",Va),fe.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var Ua=gt.extend({addHooks:function(){ee(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){we(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(e){var n=ma(e),o=this._map.options.wheelDebounceTime;this._delta+=n,this._lastMousePos=this._map.mouseEventToContainerPoint(e),this._startTime||(this._startTime=+new Date);var s=Math.max(o-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(h(this._performZoom,this),s),Ut(e)},_performZoom:function(){var e=this._map,n=e.getZoom(),o=this._map.options.zoomSnap||0;e._stop();var s=this._delta/(this._map.options.wheelPxPerZoomLevel*4),l=4*Math.log(2/(1+Math.exp(-Math.abs(s))))/Math.LN2,f=o?Math.ceil(l/o)*o:l,y=e._limitZoom(n+(this._delta>0?f:-f))-n;this._delta=0,this._startTime=null,y&&(e.options.scrollWheelZoom==="center"?e.setZoom(n+y):e.setZoomAround(this._lastMousePos,n+y))}});fe.addInitHook("addHandler","scrollWheelZoom",Ua);var Bf=600;fe.mergeOptions({tapHold:F.touchNative&&F.safari&&F.mobile,tapTolerance:15});var Ha=gt.extend({addHooks:function(){ee(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){we(this._map._container,"touchstart",this._onDown,this)},_onDown:function(e){if(clearTimeout(this._holdTimeout),e.touches.length===1){var n=e.touches[0];this._startPos=this._newPos=new Z(n.clientX,n.clientY),this._holdTimeout=setTimeout(h(function(){this._cancel(),this._isTapValid()&&(ee(document,"touchend",Ie),ee(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",n))},this),Bf),ee(document,"touchend touchcancel contextmenu",this._cancel,this),ee(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function e(){we(document,"touchend",Ie),we(document,"touchend touchcancel",e)},_cancel:function(){clearTimeout(this._holdTimeout),we(document,"touchend touchcancel contextmenu",this._cancel,this),we(document,"touchmove",this._onMove,this)},_onMove:function(e){var n=e.touches[0];this._newPos=new Z(n.clientX,n.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(e,n){var o=new MouseEvent(e,{bubbles:!0,cancelable:!0,view:window,screenX:n.screenX,screenY:n.screenY,clientX:n.clientX,clientY:n.clientY});o._simulated=!0,n.target.dispatchEvent(o)}});fe.addInitHook("addHandler","tapHold",Ha),fe.mergeOptions({touchZoom:F.touch,bounceAtZoomLimits:!0});var Ya=gt.extend({addHooks:function(){re(this._map._container,"leaflet-touch-zoom"),ee(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){Le(this._map._container,"leaflet-touch-zoom"),we(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(e){var n=this._map;if(!(!e.touches||e.touches.length!==2||n._animatingZoom||this._zooming)){var o=n.mouseEventToContainerPoint(e.touches[0]),s=n.mouseEventToContainerPoint(e.touches[1]);this._centerPoint=n.getSize()._divideBy(2),this._startLatLng=n.containerPointToLatLng(this._centerPoint),n.options.touchZoom!=="center"&&(this._pinchStartLatLng=n.containerPointToLatLng(o.add(s)._divideBy(2))),this._startDist=o.distanceTo(s),this._startZoom=n.getZoom(),this._moved=!1,this._zooming=!0,n._stop(),ee(document,"touchmove",this._onTouchMove,this),ee(document,"touchend touchcancel",this._onTouchEnd,this),Ie(e)}},_onTouchMove:function(e){if(!(!e.touches||e.touches.length!==2||!this._zooming)){var n=this._map,o=n.mouseEventToContainerPoint(e.touches[0]),s=n.mouseEventToContainerPoint(e.touches[1]),l=o.distanceTo(s)/this._startDist;if(this._zoom=n.getScaleZoom(l,this._startZoom),!n.options.bounceAtZoomLimits&&(this._zoom<n.getMinZoom()&&l<1||this._zoom>n.getMaxZoom()&&l>1)&&(this._zoom=n._limitZoom(this._zoom)),n.options.touchZoom==="center"){if(this._center=this._startLatLng,l===1)return}else{var f=o._add(s)._divideBy(2)._subtract(this._centerPoint);if(l===1&&f.x===0&&f.y===0)return;this._center=n.unproject(n.project(this._pinchStartLatLng,this._zoom).subtract(f),this._zoom)}this._moved||(n._moveStart(!0,!1),this._moved=!0),Q(this._animRequest);var y=h(n._move,n,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=ne(y,this,!0),Ie(e)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,Q(this._animRequest),we(document,"touchmove",this._onTouchMove,this),we(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});fe.addInitHook("addHandler","touchZoom",Ya),fe.BoxZoom=Wa,fe.DoubleClickZoom=Za,fe.Drag=Fa,fe.Keyboard=Va,fe.ScrollWheelZoom=Ua,fe.TapHold=Ha,fe.TouchZoom=Ya,r.Bounds=J,r.Browser=F,r.CRS=Ce,r.Canvas=ja,r.Circle=Lr,r.CircleMarker=wi,r.Class=H,r.Control=ct,r.DivIcon=Ia,r.DivOverlay=yt,r.DomEvent=nf,r.DomUtil=ef,r.Draggable=It,r.Evented=_e,r.FeatureGroup=Et,r.GeoJSON=Dt,r.GridLayer=jn,r.Handler=gt,r.Icon=sn,r.ImageOverlay=Ti,r.LatLng=X,r.LatLngBounds=ye,r.Layer=ft,r.LayerGroup=an,r.LineUtil=vf,r.Map=fe,r.Marker=bi,r.Mixin=cf,r.Path=Nt,r.Point=Z,r.PolyUtil=ff,r.Polygon=un,r.Polyline=Ct,r.Popup=Li,r.PosAnimation=va,r.Projection=_f,r.Rectangle=za,r.Renderer=Mt,r.SVG=Bn,r.SVGOverlay=Aa,r.TileLayer=cn,r.Tooltip=Ei,r.Transformation=st,r.Util=se,r.VideoOverlay=ka,r.bind=h,r.bounds=ce,r.canvas=$a,r.circle=Sf,r.circleMarker=Pf,r.control=In,r.divIcon=If,r.extend=u,r.featureGroup=wf,r.geoJSON=Ma,r.geoJson=Ef,r.gridLayer=Nf,r.icon=xf,r.imageOverlay=Cf,r.latLng=G,r.latLngBounds=de,r.layerGroup=bf,r.map=rf,r.marker=Of,r.point=W,r.polygon=Lf,r.polyline=Tf,r.popup=kf,r.rectangle=$f,r.setOptions=m,r.stamp=p,r.svg=Ba,r.svgOverlay=Mf,r.tileLayer=Na,r.tooltip=Af,r.transformation=Be,r.version=a,r.videoOverlay=Df;var zf=window.L;r.noConflict=function(){return window.L=zf,this},window.L=r})})(yo,yo.exports);var rr=yo.exports;function Xo(t,i,r){return Object.freeze({instance:t,context:i,container:r})}function Jo(t,i){return i==null?function(a,u){const c=T.useRef();return c.current||(c.current=t(a,u)),c}:function(a,u){const c=T.useRef();c.current||(c.current=t(a,u));const h=T.useRef(a),{instance:d}=c.current;return T.useEffect(function(){h.current!==a&&(i(d,a,h.current),h.current=a)},[d,a,u]),c}}function Cc(t,i){T.useEffect(function(){return(i.layerContainer??i.map).addLayer(t.instance),function(){var c;(c=i.layerContainer)==null||c.removeLayer(t.instance),i.map.removeLayer(t.instance)}},[i,t])}function _y(t){return function(r){const a=Go(),u=t(ir(r,a),a);return Tc(a.map,r.attribution),Ko(u.current,r.eventHandlers),Cc(u.current,a),u}}function gy(t,i){const r=T.useRef();T.useEffect(function(){if(i.pathOptions!==r.current){const u=i.pathOptions??{};t.instance.setStyle(u),r.current=u}},[t,i])}function yy(t){return function(r){const a=Go(),u=t(ir(r,a),a);return Ko(u.current,r.eventHandlers),Cc(u.current,a),gy(u.current,r),u}}function by(t,i){const r=Jo(t),a=vy(r,i);return py(a)}function wy(t,i){const r=Jo(t,i),a=yy(r);return dy(a)}function xy(t,i){const r=Jo(t,i),a=_y(r);return my(a)}function Oy(t,i,r){const{opacity:a,zIndex:u}=i;a!=null&&a!==r.opacity&&t.setOpacity(a),u!=null&&u!==r.zIndex&&t.setZIndex(u)}const Py=wy(function({center:i,children:r,...a},u){const c=new rr.CircleMarker(i,a);return Xo(c,hy(u,{overlayContainer:c}))},ly);function bo(){return bo=Object.assign||function(t){for(var i=1;i<arguments.length;i++){var r=arguments[i];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},bo.apply(this,arguments)}function Sy({bounds:t,boundsOptions:i,center:r,children:a,className:u,id:c,placeholder:h,style:d,whenReady:p,zoom:b,...w},x){const[g]=T.useState({className:u,id:c,style:d}),[v,_]=T.useState(null);T.useImperativeHandle(x,()=>(v==null?void 0:v.map)??null,[v]);const m=T.useCallback(k=>{if(k!==null&&v===null){const N=new rr.Map(k,w);r!=null&&b!=null?N.setView(r,b):t!=null&&N.fitBounds(t,i),p!=null&&N.whenReady(p),_(fy(N))}},[]);T.useEffect(()=>()=>{v==null||v.map.remove()},[v]);const O=v?B.createElement(Ec,{value:v},a):h??null;return B.createElement("div",bo({},g,{ref:m}),O)}const Ty=T.forwardRef(Sy),Ly=by(function(i,r){const a=new rr.Popup(i,r.overlayContainer);return Xo(a,r)},function(i,r,{position:a},u){T.useEffect(function(){const{instance:h}=i;function d(b){b.popup===h&&(h.update(),u(!0))}function p(b){b.popup===h&&u(!1)}return r.map.on({popupopen:d,popupclose:p}),r.overlayContainer==null?(a!=null&&h.setLatLng(a),h.openOn(r.map)):r.overlayContainer.bindPopup(h),function(){var w;r.map.off({popupopen:d,popupclose:p}),(w=r.overlayContainer)==null||w.unbindPopup(),r.map.removeLayer(h)}},[i,r,u,a])}),Ey=xy(function({url:i,...r},a){const u=new rr.TileLayer(i,ir(r,a));return Xo(u,a)},function(i,r,a){Oy(i,r,a);const{url:u}=r;u!=null&&u!==a.url&&i.setUrl(u)});function Cy({artifacts:t}){return A.jsxs(Ty,{center:[0,0],zoom:1,scrollWheelZoom:!1,className:"w-full h-full z-10 position:relative",children:[A.jsx(Ey,{attribution:'© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors',url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}),t==null?void 0:t.map(i=>A.jsx(B.Fragment,{children:A.jsx(Py,{center:[i.properties.latitude,i.properties.longitude],radius:7,stroke:!1,fillOpacity:.5+.5*(i.properties.magnitude/10),fillColor:Dy(i.properties.magnitude,i.properties.subType),children:A.jsx(Ly,{children:A.jsx(lh,{artifact:i,showImage:!1})})},i.id)},i.id))]})}function Dy(t,i){return i!=="earthquake"?"#00B6A0":t>=8?"#7C34F6":t>=7?"#C71B00":t>=6?"#FF7000":t>=5?"#FFF600":"#00F900"}function tu(){return A.jsx("div",{role:"status",className:"w-full h-full animate-pulse rounded-xl bg-grey-light dark:bg-gray-dark",children:A.jsx("span",{className:"sr-only",children:"Loading..."})})}const Se={depthFrom:"min-depth",depthTo:"max-depth",excludedSubTypes:"exclude",magnitudeFrom:"min-magnitude",magnitudeTo:"max-magnitude",dateFrom:"from-date",dateTo:"to-date",forSaleOnly:"for-sale"};function nu(t){const i={};return t.has(Se.dateFrom)&&(i.dateFrom=Xa(t.get(Se.dateFrom))),t.has(Se.dateTo)&&(i.dateTo=Xa(t.get(Se.dateTo))),t.has(Se.depthFrom)&&(i.depthFrom=Mi(t.get(Se.depthFrom))),t.has(Se.depthTo)&&(i.depthTo=Mi(t.get(Se.depthTo))),t.has(Se.magnitudeFrom)&&(i.magnitudeFrom=Mi(t.get(Se.magnitudeFrom))),t.has(Se.magnitudeTo)&&(i.magnitudeTo=Mi(t.get(Se.magnitudeTo))),t.has(Se.excludedSubTypes)&&(i.excludedSubTypes=t.getAll(Se.excludedSubTypes)),t.has(Se.forSaleOnly)&&(i.forSaleOnly=!0),Object.keys(i)?i:void 0}function My(t){const i=new URLSearchParams;return t&&(t.dateFrom&&i.set(Se.dateFrom,Ja(t.dateFrom)),t.dateTo&&i.set(Se.dateTo,Ja(t.dateTo)),t.depthFrom&&i.set(Se.depthFrom,t.depthFrom.toString()),t.depthTo&&i.set(Se.depthTo,t.depthTo.toString()),t.magnitudeFrom&&i.set(Se.magnitudeFrom,t.magnitudeFrom.toString()),t.magnitudeTo&&i.set(Se.magnitudeTo,t.magnitudeTo.toString()),t.forSaleOnly&&i.set(Se.forSaleOnly,"true"),t.excludedSubTypes&&t.excludedSubTypes.forEach(r=>i.append(Se.excludedSubTypes,r))),i}function ky(t,i){return t.delete("page"),t.sort(),i.sort(),t.toString()===i.toString()}function Fy(){const{assets:t,exhibitionName:i,exhibitionKey:r,exhibitionType:a,assetLocations:u}=Kf(),[c,h]=Xf(),d=Qd(h,200),p=oh(),b=ep(),w=T.useMemo(()=>eh.find(m=>m.key===r),[r]),[x,g]=T.useState(nu(c)),v=(m,O)=>{g(k=>({...k,[m]:O}))};T.useEffect(()=>{g(nu(c))},[c]),T.useEffect(()=>{const m=My(x);ky(c,m)||d(m)},[x]);const _=m=>{h(O=>(O.set("page",m.toString()),O),{preventScrollReset:!0})};return A.jsxs(Gf,{children:[A.jsx("h1",{children:i}),w&&w.blurb,t.assets.length===0&&!x&&A.jsx("h3",{children:"Our curators are working to build this exhibition; stay tuned!"}),A.jsx(uy,{exhibitionType:a,subTypes:(w==null?void 0:w.subTypes)??[],onChange:v,...x}),A.jsxs("div",{className:"my-8",children:[A.jsx("p",{className:"text-base text-primary2-light",children:p?"Loading artifacts...":`Found ${t.totalCount} matching artifacts...`}),a===Zr.EARTHQUAKE&&(!nl||Ad)&&A.jsx("div",{className:"w-full h-[28rem] mt-10",children:p?A.jsx(tu,{}):A.jsx(T.Suspense,{fallback:A.jsx(tu,{}),children:A.jsx(Jf,{resolve:u,children:m=>{var O;return b&&!!((O=m==null?void 0:m.assets)!=null&&O.length)&&A.jsx(Cy,{artifacts:m==null?void 0:m.assets})}})})})]}),A.jsx(ah,{assets:t,setCurrentPage:_,loading:p})]})}const Vy=t=>{var i;return[{title:`${(i=t.data)==null?void 0:i.exhibitionName} Exhibition | Data History Museum`}]};export{Fy as default,Vy as meta};
