diff --git a/public/dx-maps/country-posters/countries-map/index.html b/public/dx-maps/country-posters/countries-map/index.html index 0587cad32..05ad19af2 100644 --- a/public/dx-maps/country-posters/countries-map/index.html +++ b/public/dx-maps/country-posters/countries-map/index.html @@ -76,7 +76,7 @@ - + - + - + \n\n\n", - "scriptMapbox": "\n\n\n\n\n\n" + "script": "\n\n\n\n\n\n", + "scriptMapbox": "\n\n\n\n\n\n" } }, { @@ -272,7 +272,7 @@ "scriptUrl": "./country-posters/country-posters.js", "embed": { "iframe": "", - "script": "\n\n\n" + "script": "\n\n\n" } }, { @@ -288,8 +288,8 @@ "scriptUrl": "./country-posters/country-posters.js", "embed": { "iframe": "", - "script": "\n\n\n\n\n\n", - "scriptMapbox": "\n\n\n\n\n\n" + "script": "\n\n\n\n\n\n", + "scriptMapbox": "\n\n\n\n\n\n" } } ] @@ -914,7 +914,7 @@ "bundle": "my-upg-100-list", "scriptUrl": "./my-upg-100-list/my-upg-100-list.js", "output": "dx-maps/my-upg-100-list/my-upg-100-list.js", - "integrity": "sha384-PIWgk+7p6/tG9S7bElnRotBFYBaZCoeBAAZFV1TVzC3loNOeRZ5C+QtaM5hySDaL", + "integrity": "sha384-0CDahw5+ypaB6p2UgEw7tzNqqPNXp4T1j6oZVhIWQLINcFP+EdPpdjH/4Y4HWDUD", "elements": [ "my-upg-100-list-map" ], @@ -937,7 +937,7 @@ "scriptUrl": "./my-upg-100-list/my-upg-100-list.js", "embed": { "iframe": "", - "script": "\n\n\n" + "script": "\n\n\n" } }, { @@ -953,8 +953,8 @@ "scriptUrl": "./my-upg-100-list/my-upg-100-list.js", "embed": { "iframe": "", - "script": "\n\n\n\n\n\n", - "scriptMapbox": "\n\n\n\n\n\n" + "script": "\n\n\n\n\n\n", + "scriptMapbox": "\n\n\n\n\n\n" } }, { @@ -970,8 +970,8 @@ "scriptUrl": "./my-upg-100-list/my-upg-100-list.js", "embed": { "iframe": "", - "script": "\n\n\n\n\n\n", - "scriptMapbox": "\n\n\n\n\n\n" + "script": "\n\n\n\n\n\n", + "scriptMapbox": "\n\n\n\n\n\n" } } ] @@ -1102,7 +1102,7 @@ "bundle": "poster-design", "scriptUrl": "./poster-design/poster-design.js", "output": "dx-maps/poster-design/poster-design.js", - "integrity": "sha384-aLqnWtpBjbpMExmvDf7BVBMD7SR06oQmoMSEz5h2vybGpU6dVyLB689si3CkBddB", + "integrity": "sha384-cxcv8MNcG6F54mmTf5cIaXf5WRC8zkb5He0l6TwPUqjqRWKW1OQr9xpLZGddG6pq", "elements": [ "poster-design" ], @@ -1125,7 +1125,7 @@ "scriptUrl": "./poster-design/poster-design.js", "embed": { "iframe": "", - "script": "\n\n\n" + "script": "\n\n\n" } }, { @@ -1141,7 +1141,7 @@ "scriptUrl": "./poster-design/poster-design.js", "embed": { "iframe": "", - "script": "\n\n\n" + "script": "\n\n\n" } }, { @@ -1157,7 +1157,7 @@ "scriptUrl": "./poster-design/poster-design.js", "embed": { "iframe": "", - "script": "\n\n\n" + "script": "\n\n\n" } } ] @@ -1277,7 +1277,7 @@ "bundle": "regions-dashboard", "scriptUrl": "./regions-dashboard/regions-dashboard.js", "output": "dx-maps/regions-dashboard/regions-dashboard.js", - "integrity": "sha384-cXOlWvl2Sz+Tly/AziQFC/0SGzOumoVkiALEASRHH7LzkSMOo37WkaIq9IH63iqU", + "integrity": "sha384-tfBHuuomHzQYEUGbtOs10hlR3p+odiVqzTDvbxUx9BVGdedjaR3/wE0ue1qE+4Cs", "elements": [ "regions-dashboard" ], @@ -1300,8 +1300,8 @@ "scriptUrl": "./regions-dashboard/regions-dashboard.js", "embed": { "iframe": "", - "script": "\n\n\n\n\n\n", - "scriptMapbox": "\n\n\n\n\n\n" + "script": "\n\n\n\n\n\n", + "scriptMapbox": "\n\n\n\n\n\n" } }, { @@ -1317,7 +1317,7 @@ "scriptUrl": "./regions-dashboard/regions-dashboard.js", "embed": { "iframe": "", - "script": "\n\n\n" + "script": "\n\n\n" } }, { @@ -1333,8 +1333,8 @@ "scriptUrl": "./regions-dashboard/regions-dashboard.js", "embed": { "iframe": "", - "script": "\n\n\n\n\n\n", - "scriptMapbox": "\n\n\n\n\n\n" + "script": "\n\n\n\n\n\n", + "scriptMapbox": "\n\n\n\n\n\n" } } ] diff --git a/public/dx-maps/manifest.json b/public/dx-maps/manifest.json index 06206cab9..4f3c36006 100644 --- a/public/dx-maps/manifest.json +++ b/public/dx-maps/manifest.json @@ -232,7 +232,7 @@ "bundle": "country-posters", "scriptUrl": "./country-posters/country-posters.js", "output": "dx-maps/country-posters/country-posters.js", - "integrity": "sha384-9U3WBCtWnsY/CsWBRB/cl/awYn9HY+cmPrxnTwGCKsFlSpQXKnp4rORDr/BR8Jeq", + "integrity": "sha384-ZzWmCQPB9enu08UJWxlyC5I2kc6dVjAh1v4dsxEjhJfUlDhkkBnpeFkFDtG0vsij", "elements": [ "country-posters-map" ], @@ -255,8 +255,8 @@ "scriptUrl": "./country-posters/country-posters.js", "embed": { "iframe": "", - "script": "\n\n\n\n\n\n", - "scriptMapbox": "\n\n\n\n\n\n" + "script": "\n\n\n\n\n\n", + "scriptMapbox": "\n\n\n\n\n\n" } }, { @@ -272,7 +272,7 @@ "scriptUrl": "./country-posters/country-posters.js", "embed": { "iframe": "", - "script": "\n\n\n" + "script": "\n\n\n" } }, { @@ -288,8 +288,8 @@ "scriptUrl": "./country-posters/country-posters.js", "embed": { "iframe": "", - "script": "\n\n\n\n\n\n", - "scriptMapbox": "\n\n\n\n\n\n" + "script": "\n\n\n\n\n\n", + "scriptMapbox": "\n\n\n\n\n\n" } } ] @@ -914,7 +914,7 @@ "bundle": "my-upg-100-list", "scriptUrl": "./my-upg-100-list/my-upg-100-list.js", "output": "dx-maps/my-upg-100-list/my-upg-100-list.js", - "integrity": "sha384-PIWgk+7p6/tG9S7bElnRotBFYBaZCoeBAAZFV1TVzC3loNOeRZ5C+QtaM5hySDaL", + "integrity": "sha384-0CDahw5+ypaB6p2UgEw7tzNqqPNXp4T1j6oZVhIWQLINcFP+EdPpdjH/4Y4HWDUD", "elements": [ "my-upg-100-list-map" ], @@ -937,7 +937,7 @@ "scriptUrl": "./my-upg-100-list/my-upg-100-list.js", "embed": { "iframe": "", - "script": "\n\n\n" + "script": "\n\n\n" } }, { @@ -953,8 +953,8 @@ "scriptUrl": "./my-upg-100-list/my-upg-100-list.js", "embed": { "iframe": "", - "script": "\n\n\n\n\n\n", - "scriptMapbox": "\n\n\n\n\n\n" + "script": "\n\n\n\n\n\n", + "scriptMapbox": "\n\n\n\n\n\n" } }, { @@ -970,8 +970,8 @@ "scriptUrl": "./my-upg-100-list/my-upg-100-list.js", "embed": { "iframe": "", - "script": "\n\n\n\n\n\n", - "scriptMapbox": "\n\n\n\n\n\n" + "script": "\n\n\n\n\n\n", + "scriptMapbox": "\n\n\n\n\n\n" } } ] @@ -1102,7 +1102,7 @@ "bundle": "poster-design", "scriptUrl": "./poster-design/poster-design.js", "output": "dx-maps/poster-design/poster-design.js", - "integrity": "sha384-aLqnWtpBjbpMExmvDf7BVBMD7SR06oQmoMSEz5h2vybGpU6dVyLB689si3CkBddB", + "integrity": "sha384-cxcv8MNcG6F54mmTf5cIaXf5WRC8zkb5He0l6TwPUqjqRWKW1OQr9xpLZGddG6pq", "elements": [ "poster-design" ], @@ -1125,7 +1125,7 @@ "scriptUrl": "./poster-design/poster-design.js", "embed": { "iframe": "", - "script": "\n\n\n" + "script": "\n\n\n" } }, { @@ -1141,7 +1141,7 @@ "scriptUrl": "./poster-design/poster-design.js", "embed": { "iframe": "", - "script": "\n\n\n" + "script": "\n\n\n" } }, { @@ -1157,7 +1157,7 @@ "scriptUrl": "./poster-design/poster-design.js", "embed": { "iframe": "", - "script": "\n\n\n" + "script": "\n\n\n" } } ] @@ -1277,7 +1277,7 @@ "bundle": "regions-dashboard", "scriptUrl": "./regions-dashboard/regions-dashboard.js", "output": "dx-maps/regions-dashboard/regions-dashboard.js", - "integrity": "sha384-cXOlWvl2Sz+Tly/AziQFC/0SGzOumoVkiALEASRHH7LzkSMOo37WkaIq9IH63iqU", + "integrity": "sha384-tfBHuuomHzQYEUGbtOs10hlR3p+odiVqzTDvbxUx9BVGdedjaR3/wE0ue1qE+4Cs", "elements": [ "regions-dashboard" ], @@ -1300,8 +1300,8 @@ "scriptUrl": "./regions-dashboard/regions-dashboard.js", "embed": { "iframe": "", - "script": "\n\n\n\n\n\n", - "scriptMapbox": "\n\n\n\n\n\n" + "script": "\n\n\n\n\n\n", + "scriptMapbox": "\n\n\n\n\n\n" } }, { @@ -1317,7 +1317,7 @@ "scriptUrl": "./regions-dashboard/regions-dashboard.js", "embed": { "iframe": "", - "script": "\n\n\n" + "script": "\n\n\n" } }, { @@ -1333,8 +1333,8 @@ "scriptUrl": "./regions-dashboard/regions-dashboard.js", "embed": { "iframe": "", - "script": "\n\n\n\n\n\n", - "scriptMapbox": "\n\n\n\n\n\n" + "script": "\n\n\n\n\n\n", + "scriptMapbox": "\n\n\n\n\n\n" } } ] diff --git a/public/dx-maps/my-upg-100-list/my-upg-100-list.js b/public/dx-maps/my-upg-100-list/my-upg-100-list.js index e72b22c6e..9a3447fff 100644 --- a/public/dx-maps/my-upg-100-list/my-upg-100-list.js +++ b/public/dx-maps/my-upg-100-list/my-upg-100-list.js @@ -878,7 +878,7 @@ @media (prefers-reduced-motion: reduce) { .geo-root, .mapboxgl-ctrl-geocoder, .maplibregl-ctrl-geocoder { transition: none !important; animation: none !important; } } -`,"geocoder-skin");const{t:n,locale:r}=Zt(),i=e,s=X(()=>/^pk\./.test(String(i.accessToken||""))),l=X(()=>i.placeholder||(i.provider==="maplibre"&&!s.value?n("search.placeholderNoPlaces"):n("search.placeholder"))),c=o,u={"&":"&","<":"<",">":">",'"':""","'":"'"};function d(A){return String(A??"").replace(/[&<>"']/g,z=>u[z])}function p(A){return A==null?"":typeof A=="string"?A:typeof A=="object"?A.label||A.value||"":String(A)}const y={"people-group":"people","doxa-people-group":"peopleGroup","doxa-affinity-bloc":"bloc","doxa-cluster":"cluster","doxa-country":"country","doxa-region":"region","doxa-language-family":"family","doxa-language":"languageKind","doxa-dialect":"dialect","doxa-religion":"religionKind"};function f(A){const z=y[A];if(!z)return"";const D=n("search.kinds."+z);return`${d(D)}`}function h(A){var J;if(!A)return"";const z=A.place_type||[];if(z.includes("doxa-section-header"))return`
${d(((J=A.properties)==null?void 0:J.headerLabel)||A.text||"")}
`;if(z.includes("people-group")){const se=A.properties||{},U=p(se.name)||p(se.displayName)||p(A.text)||"",we=p(se.countryName)||p(se.country)||p(se.countryIso)||"",Se=p(se.language)||p(se.primaryLanguage)||p(se.languageFamily)||"",Oe=p(se.religionName)||p(se.religion)||"",Ue=n("search.labels.place"),Ee=n("search.labels.language"),tt=n("search.labels.religion"),lt=[];return we&<.push(`${d(Ue)} ${d(we)}`),Se&<.push(`${d(Ee)} ${d(Se)}`),Oe&<.push(`${d(tt)} ${d(Oe)}`),`
${f("people-group")}${d(U)}
`+(lt.length?`
${lt.join("")}
`:"")}const D=z.find(se=>se.startsWith("doxa-"));if(D){const se=A.properties||{},U=d(p(se.label)||A.text||""),we=Number(se.count)||0,Se=we?` ${we}`:"";return`
${f(D)}${U}${Se}
`}return`
${d(A.place_name||A.text||"")}
`}const m=rt("dataStore",null),$=rt("mapStore",null),b=rt("uiStore",null);function w(){return $?$.selectedFamily?{kind:"family",key:$.selectedFamily}:$.selectedLanguage?{kind:"language",key:$.selectedLanguage}:null:null}const{search:_}=UP({dataStore:m,dataSourceId:i.dataSourceId||void 0,getActiveFilter:w,getActiveContext:()=>i.activeContext||null}),g=ln(null),v=_e(null),P={mapbox:Ma.mapboxGeocoderCss.url,maplibre:Ma.maplibreGeocoderCss.url},L=Ma.maplibreGeocoderJs.url,k=Ma.mapboxGeocoderJs.url;function H(A,z){const D=P[z]||P.mapbox;if(A.querySelector(`link[href="${D}"]`))return;const J=document.createElement("link");J.rel="stylesheet",J.href=D,ti(J,D),A.prepend(J)}async function K(A,z){if(typeof window<"u"&&window[z]||typeof document>"u")return;const D=document.querySelector(`script[src="${A}"]`);if(D){if(window[z])return;await new Promise(J=>{D.addEventListener("load",J,{once:!0}),D.addEventListener("error",J,{once:!0})});return}await new Promise(J=>{const se=document.createElement("script");se.src=A,ti(se,A),se.async=!0,se.addEventListener("load",J,{once:!0}),se.addEventListener("error",J,{once:!0}),document.head.appendChild(se)})}function C(A=document){let z=A.activeElement;for(;z&&z.shadowRoot&&z.shadowRoot.activeElement;)z=z.shadowRoot.activeElement;return z}function T(A){const z=A==null?void 0:A._onKeyDown;typeof z=="function"&&(A._onKeyDown=function(D){const J=C();return!J||J===D.target||typeof J.value!="string"?z.call(A,D):z.call(A,new Proxy(D,{get(se,U){if(U==="target"||U==="srcElement")return J;const we=Reflect.get(se,U);return typeof we=="function"?we.bind(se):we}}))})}async function ee(){await K(k,"MapboxGeocoder")}async function Y(){if(typeof window<"u"&&window.MaplibreGeocoder||typeof document>"u")return;const A=document.querySelector(`script[src="${L}"]`);if(A){if(window.MaplibreGeocoder)return;await new Promise(z=>{A.addEventListener("load",z,{once:!0}),A.addEventListener("error",z,{once:!0})});return}await new Promise((z,D)=>{const J=document.createElement("script");J.src=L,J.async=!1,J.addEventListener("load",z,{once:!0}),J.addEventListener("error",()=>D(new Error("[GeocoderComponent] Failed to load MapLibre geocoder")),{once:!0}),document.head.appendChild(J)})}function j(A,z){return async D=>{const J={features:[]};if(!/^pk\./.test(String(A||""))||!(D!=null&&D.query))return J;try{const se=Array.isArray(D.language)?D.language[0]:D.language||z()||"en",U=new URLSearchParams({access_token:A,autocomplete:"true",limit:String(D.limit||5)});se&&U.set("language",se);const we=`https://api.mapbox.com/geocoding/v5/mapbox.places/${encodeURIComponent(D.query)}.json?${U.toString()}`,Se=await fetch(we);if(!Se.ok)return J;const Oe=await Se.json();return Oe&&Array.isArray(Oe.features)?Oe:J}catch{return J}}}no(async()=>{var se,U,we,Se,Oe;const A=i.provider==="maplibre";if(A){if(await Y(),typeof MaplibreGeocoder>"u"){console.error("[GeocoderComponent] MaplibreGeocoder global unavailable.");return}}else if(typeof MapboxGeocoder>"u"&&(await ee(),typeof MapboxGeocoder>"u")){console.error("[GeocoderComponent] MapboxGeocoder global unavailable.");return}const z=i.mapInstance;if(!i.standalone&&!z)return;const D=i.standalone?(U=(se=v.value)==null?void 0:se.getRootNode)==null?void 0:U.call(se):(Oe=(Se=(we=z.getContainer)==null?void 0:we.call(z))==null?void 0:Se.getRootNode)==null?void 0:Oe.call(Se);D instanceof ShadowRoot&&H(D,i.provider);const J={marker:!1,flyTo:!i.standalone,trackProximity:!i.standalone,placeholder:l.value,language:r.value||"en",localGeocoder:_,limit:20,zoom:6,render:h};if(A){const Ue=typeof maplibregl<"u"?maplibregl:void 0,Ee={forwardGeocode:j(i.accessToken,()=>r.value)};g.value=new MaplibreGeocoder(Ee,{...J,maplibregl:Ue,showResultsWhileTyping:!0,reverseGeocode:!1})}else g.value=new MapboxGeocoder({accessToken:i.accessToken,mapboxgl,...J});if(T(g.value),g.value.on("result",Ue=>{var tt,lt,xe,R,F,O,re,pe,de,$e,ke,x,S,Z,ne,be,me,V,ae,Me,ze,st,Pt,ft,Vt,Te,Le,De,ct,_t;const Ee=Ue==null?void 0:Ue.result;Ee&&((tt=Ee.place_type)!=null&&tt.includes("doxa-section-header")||($&&($.selectedRegion=null,$.selectedResource=null,$.selectedAffinityBlock=null,$.selectedDialect=null),b&&((lt=b.setPrayerFilter)==null||lt.call(b,null),(xe=b.setEngagementFilter)==null||xe.call(b,null),(R=b.setAdoptionFilter)==null||R.call(b,null),(F=b.setReligionFilter)==null||F.call(b,null)),(O=Ee.properties)!=null&&O._allDataSection&&$&&($.selectedFamily=null,$.selectedLanguage=null),c("result",Ue),(re=Ee.place_type)!=null&&re.includes("people-group")&&Ee.feature?c("people-group-result",{type:"Feature",properties:Ee.properties||Ee.feature,geometry:Ee.geometry||{type:"Point",coordinates:Ee.center}}):((pe=Ee.place_type)!=null&&pe.includes("doxa-country")||(de=Ee.place_type)!=null&&de.includes("doxa-region")||($e=Ee.place_type)!=null&&$e.includes("doxa-language-family")||(ke=Ee.place_type)!=null&&ke.includes("doxa-language")||(x=Ee.place_type)!=null&&x.includes("doxa-dialect")||(S=Ee.place_type)!=null&&S.includes("doxa-religion")||(Z=Ee.place_type)!=null&&Z.includes("doxa-affinity-bloc")||(ne=Ee.place_type)!=null&&ne.includes("doxa-cluster")||(be=Ee.place_type)!=null&&be.includes("doxa-people-group"))&&c("aggregate-result",{kind:Ee.place_type[0].replace(/^doxa-/,""),label:((me=Ee.properties)==null?void 0:me.label)||Ee.text,count:((V=Ee.properties)==null?void 0:V.count)||0,memberIds:((ae=Ee.properties)==null?void 0:ae.memberIds)||[],bounds:((Me=Ee.properties)==null?void 0:Me.bounds)||null,center:Ee.center,originalLabels:((ze=Ee.properties)==null?void 0:ze.originalLabels)||null,familyDerived:((st=Ee.properties)==null?void 0:st.familyDerived)||"",baseLang:((Pt=Ee.properties)==null?void 0:Pt.baseLang)||"",dialectLabel:((ft=Ee.properties)==null?void 0:ft.dialectLabel)||"",slug:((Vt=Ee.properties)==null?void 0:Vt.slug)||null,id:Ee.id||null,blocCode:((Te=Ee.properties)==null?void 0:Te.blocCode)||"",blocLabel:((Le=Ee.properties)==null?void 0:Le.blocLabel)||"",clusterCode:((De=Ee.properties)==null?void 0:De.clusterCode)||"",clusterLabel:((ct=Ee.properties)==null?void 0:ct.clusterLabel)||"",peopleGroupCode:((_t=Ee.properties)==null?void 0:_t.peopleGroupCode)||"",properties:Ee.properties||null})))}),g.value.on("clear",()=>c("clear")),g.value.on("error",Ue=>c("error",Ue)),i.standalone){if(v.value){const Ue={on(){},off(){},fire(){},getContainer:()=>v.value,getZoom:()=>0,getCenter:()=>({lng:0,lat:0}),getBounds:()=>null,flyTo(){},fitBounds(){},addControl(){},removeControl(){},hasControl:()=>!1};try{const Ee=g.value.onAdd(i.mapInstance||Ue);Ee&&v.value.appendChild(Ee)}catch(Ee){c("error",Ee)}}}else z.addControl(g.value,"top-left"),he()});function he(){var z,D;const A=(D=(z=g.value)==null?void 0:z.container)==null?void 0:D.parentElement;A&&(A.classList.add("dg-search-band"),A.classList.toggle("dg-search-band--dark",!!i.isDark))}return ht(()=>i.isDark,()=>he()),ht(l,A=>{var J,se;const z=g.value;if(!z)return;const D=z._inputEl||((se=(J=z.container)==null?void 0:J.querySelector)==null?void 0:se.call(J,"input.mapboxgl-ctrl-geocoder--input"));D&&(D.placeholder=A,D.setAttribute("placeholder",A)),z.options&&(z.options.placeholder=A)}),ht(r,A=>{const z=g.value;z!=null&&z.options&&(z.options.language=A||"en")}),Wt(()=>{var A,z;if(g.value){try{i.standalone?(z=(A=g.value).onRemove)==null||z.call(A):i.mapInstance&&i.mapInstance.removeControl(g.value)}catch{}g.value=null}}),t({geocoder:g}),(A,z)=>e.standalone?(q(),te("div",{key:0,ref_key:"standaloneContainer",ref:v,class:"dg-standalone-geocoder"},null,512)):Gn(A.$slots,"default",{},void 0,void 0,1)}},KP=["mapbox","maplibre"],VP="auto";function sm(e){return e&&typeof e=="object"&&"value"in e&&!("provider"in e)&&!("profile"in e)?e.value:e}function qP(e,{token:t}={}){const o=sm(e);return YP(o)||"maplibre"}function YP(e){const t=sm(e),o=t==null?void 0:t.provider,a=typeof location<"u"?new URLSearchParams(location.search).get("provider"):void 0,n=typeof window<"u"?window.MAP_PROVIDER:void 0,r=String(o||a||n||VP).toLowerCase().trim();return KP.includes(r)?r:""}const ZP="rgba(120, 128, 134, 0.28)",lm="36px",cm=()=>{};function JP(e,t={}){const{enabled:o=!0}=t;if(!o||!e)return cm;const a=Array.from(e.querySelectorAll(".map-scroll-edge"));if(!a.length)return cm;const n=b=>b.classList.contains("map-scroll-edge--left");for(const b of a)b.style.background=`linear-gradient(${n(b)?"to right":"to left"}, ${ZP} ${lm}, transparent ${lm})`,b.style.opacity="0",b.style.transition="opacity 0.16s ease",b.style.userSelect="none",b.style.webkitUserSelect="none";const r=b=>{b.style.opacity="1"},i=b=>{b.style.opacity="0"},s=()=>a.find(b=>!n(b))||null,l=new Set;let c=!1,u=null;const d=()=>{for(const b of a)l.has(b)||i(b)},p=()=>{const b=s();b&&(r(b),u&&clearTimeout(u),u=setTimeout(d,250))},y=()=>p(),f=b=>{if(!(b.touches&&b.touches.length===1))return;const w=b.target;w&&w.classList&&w.classList.contains("map-scroll-edge")||p()},h=()=>{u&&clearTimeout(u),d()};e.addEventListener("wheel",y,{passive:!0}),e.addEventListener("touchmove",f,{passive:!0}),e.addEventListener("touchend",h,{passive:!0}),e.addEventListener("touchcancel",h,{passive:!0});const m=()=>{c||p()};typeof window<"u"&&window.addEventListener("scroll",m,{passive:!0});const $=[];for(const b of a){const w=()=>{l.add(b),r(b)},_=()=>{l.delete(b),i(b)},g=()=>{c=!0,r(b)},v=()=>{c=!1,i(b)};b.addEventListener("mouseenter",w),b.addEventListener("mouseleave",_),b.addEventListener("touchstart",g,{passive:!0}),b.addEventListener("touchend",v,{passive:!0}),$.push(()=>{b.removeEventListener("mouseenter",w),b.removeEventListener("mouseleave",_),b.removeEventListener("touchstart",g),b.removeEventListener("touchend",v)})}return function(){u&&(clearTimeout(u),u=null),e.removeEventListener("wheel",y),e.removeEventListener("touchmove",f),e.removeEventListener("touchend",h),e.removeEventListener("touchcancel",h),typeof window<"u"&&window.removeEventListener("scroll",m);for(const w of $)w();for(const w of a)i(w)}}const XP=Object.fromEntries([{id:"midnight-glow",label:"Midnight Glow",mood:"the prayer-map dark — pins glow like embers",mapbox:"mapbox://styles/mapbox/standard",lightPreset:"night",maplibre:"https://tiles.openfreemap.org/styles/fiord",bestFor:["doxa-simple-map","my-upg-100-list"]},{id:"daylight",label:"Daylight",mood:"the same Standard world, lights on",mapbox:"mapbox://styles/mapbox/standard",lightPreset:"day",maplibre:"https://tiles.openfreemap.org/styles/liberty",bestFor:["doxa-research-map","gospel-resources"]},{id:"dawn",label:"Dawn",mood:"soft warm horizon — hopeful, quiet",mapbox:"mapbox://styles/mapbox/standard",lightPreset:"dawn",maplibre:"https://tiles.openfreemap.org/styles/positron",bestFor:["doxa-simple-map"]},{id:"dusk",label:"Dusk",mood:"blue hour — calm contrast for bright pins",mapbox:"mapbox://styles/mapbox/standard",lightPreset:"dusk",maplibre:"https://tiles.openfreemap.org/styles/fiord",bestFor:["my-upg-100-list"]},{id:"paper",label:"Paper",mood:"near-white minimal — data reads like print",mapbox:"mapbox://styles/mapbox/light-v11",maplibre:"https://tiles.openfreemap.org/styles/positron",bestFor:["research-dashboard","cities-internet"]},{id:"ink",label:"Ink",mood:"near-black minimal — maximum pin contrast",mapbox:"mapbox://styles/mapbox/dark-v11",maplibre:"https://tiles.openfreemap.org/styles/dark",bestFor:["my-upg-100-list","cities-internet"]},{id:"streetlife",label:"Street Life",mood:"full street detail — city-scale work",mapbox:"mapbox://styles/mapbox/streets-v12",maplibre:"https://tiles.openfreemap.org/styles/bright",bestFor:["cities-internet","key-cities"]},{id:"terrain",label:"Terrain",mood:"relief + parks — where people actually live",mapbox:"mapbox://styles/mapbox/outdoors-v12",maplibre:"https://tiles.openfreemap.org/styles/liberty",bestFor:["doxa-research-map","country-posters"]},{id:"satellite",label:"Satellite",mood:"imagery — the real ground",mapbox:"mapbox://styles/mapbox/satellite-v9",maplibre:"https://tiles.openfreemap.org/styles/liberty",bestFor:["country-posters"]},{id:"hybrid",label:"Hybrid",mood:"imagery + labels — orientation without losing ground truth",mapbox:"mapbox://styles/mapbox/satellite-streets-v12",maplibre:"https://tiles.openfreemap.org/styles/liberty",bestFor:["key-cities"]},{id:"wayfinder-day",label:"Wayfinder Day",mood:"high-legibility navigation palette",mapbox:"mapbox://styles/mapbox/navigation-day-v1",maplibre:"https://tiles.openfreemap.org/styles/liberty",bestFor:["gospel-resources"]},{id:"wayfinder-night",label:"Wayfinder Night",mood:"dark navigation — dashboards at night",mapbox:"mapbox://styles/mapbox/navigation-night-v1",maplibre:"https://tiles.openfreemap.org/styles/fiord",bestFor:["research-dashboard"]},{id:"galaxy",label:"Galaxy",mood:"the day side of Earth floating in space — normal land, blue oceans, black void behind the sphere",mapbox:"mapbox://styles/mapbox/standard",maplibre:"https://tiles.versatiles.org/assets/styles/colorful/style.json",bestFor:["research-dashboard","my-upg-100-list"]}].map(e=>[e.id,e]));function du(e,t="mapbox"){if(typeof e!="string"||!e)return{style:void 0,lightPreset:void 0,paint:void 0};const o=XP[e];return o?t==="maplibre"?{style:o.maplibre,lightPreset:void 0,paint:o.paint}:{style:o.mapbox,lightPreset:o.lightPreset,paint:o.paint}:/^(mapbox:\/\/|https?:\/\/)/.test(e)?{style:e,lightPreset:void 0,paint:void 0}:{style:void 0,lightPreset:void 0,paint:void 0}}const um={mapbox:"https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-rtl-text/v0.3.0/mapbox-gl-rtl-text.js",maplibre:"https://cdn.jsdelivr.net/npm/@mapbox/mapbox-gl-rtl-text@0.3.0/dist/mapbox-gl-rtl-text.js"};function QP(e){return!!e&&typeof window<"u"&&e===window.maplibregl}function eA(e){if(typeof window>"u")return!1;const t=e?[e]:[window.maplibregl,window.mapboxgl].filter(Boolean);let o=!1;for(const a of t)if(!(!a||!a.setRTLTextPlugin))try{if(QP(a)){if(a.getRTLTextPluginStatus&&a.getRTLTextPluginStatus()!=="unavailable")continue;const n=a.setRTLTextPlugin(um.maplibre,!0);n&&n.catch&&n.catch(()=>{})}else a.setRTLTextPlugin(um.mapbox,null,!0);o=!0}catch{}return o}const or={mapbox:{global:"mapboxgl",js:Ma.mapboxGlJs.url,css:Ma.mapboxGlCss.url},maplibre:{global:"maplibregl",js:Ma.maplibreGlJs.url,css:Ma.maplibreGlCss.url}};function pu(e){var o;const t=((o=or[e])==null?void 0:o.global)||or.mapbox.global;return typeof window<"u"?window[t]:void 0}function dm(e){return(or[e]||or.mapbox).css||null}async function tA(e){const t=or[e]||or.mapbox;if(pu(e)||typeof document>"u")return;if(!document.querySelector(`link[href="${t.css}"]`)){const a=document.createElement("link");a.rel="stylesheet",a.href=t.css,ti(a,t.css),document.head.appendChild(a)}const o=document.querySelector(`script[src="${t.js}"]`);if(o){if(pu(e))return;await new Promise(a=>{o.addEventListener("load",a,{once:!0}),o.addEventListener("error",a,{once:!0})});return}await new Promise((a,n)=>{const r=document.createElement("script");r.src=t.js,ti(r,t.js),r.async=!1,r.addEventListener("load",a,{once:!0}),r.addEventListener("error",()=>n(new Error(`[useMapInstance] Failed to load ${e} engine script`)),{once:!0}),document.head.appendChild(r)})}async function oA(e,t){if(!e)return;const o=e.getRootNode();if(!(o instanceof ShadowRoot))return;const a=i=>new Promise(s=>setTimeout(s,i)),n=o.querySelector(`link[href="${t}"]`);if(n){if(n.sheet)return;await Promise.race([new Promise(i=>{n.addEventListener("load",i,{once:!0}),n.addEventListener("error",i,{once:!0})}),a(2e3)]);return}const r=document.createElement("link");r.rel="stylesheet",r.href=t,ti(r,t),await Promise.race([new Promise(i=>{r.addEventListener("load",i,{once:!0}),r.addEventListener("error",i,{once:!0}),o.prepend(r)}),a(2e3)])}const aA=["country_code","wagf_region","wagf_block","primary_language","religion","imb_gsec"];function nA(e){return e==null?{value:null,label:null}:typeof e=="object"?{value:e.value??null,label:e.label??null}:{value:e,label:null}}function rA(e){if(e==null||typeof e!="object")return e;const t={...e};for(const o of aA)if(o in t){const{value:a,label:n}=nA(t[o]);t[o]=a,n!=null&&(t[`${o}_label`]=n)}return t}function gu(e){return Array.isArray(e)?e.map(rA):[]}function hu(e){return Array.isArray(e)?e:e&&typeof e=="object"?e.posts||e.data||e.records||e.results||e.items||[]:[]}const iA={"andean-caribbean":"#f9a51f","asia-china-tibet-autonomous-region":"#00f0c8","asia-china-yunnan-province":"#22ddff","asia-frontier-nas-a":"#ff1744","asia-india-andhra-pradesh":"#22ddff","asia-india-assam":"#22ddff","asia-india-chhattisgarh":"#536dfe","asia-india-gujarat":"#536dfe","asia-india-karnataka":"#536dfe","asia-india-kerala":"#2196ff","asia-india-madhya-pradesh":"#2196ff","asia-india-maharashtra":"#2196ff","asia-india-odisha":"#2196ff","asia-india-rajasthan":"#22ddff","asia-india-tamil-nadu":"#7c4dff","asia-india-uttarakhand":"#536dfe","asia-india-west-bengal":"#22ddff",brazil:"#f4c57b","central-africa":"#c20001",deaf:"#18ffff","east-africa":"#ef3410",europe:"#34cb74",laos:"#7c4dff","maghreb-egypt":"#602f74","mainland-se-asia-philippines":"#ff1744","middle-east-core":"#bc8bd0","oceania-indonesia":"#ee892f","southern-africa-islands":"#e75556",sudan:"#e69e93","uncovered-central-asia":"#ff8a00","uncovered-himalaya":"#ff6d00","uncovered-japan":"#ffc400","uncovered-mongolia":"#76ff03","uncovered-nas-a":"#ff1744","uncovered-nepal":"#ffea00","uncovered-sa-west":"#ff1744","uncovered-scatter":"#eeff41","west-africa":"#edcac9"};function sA(e,t){const o=iA[e];return typeof o=="string"&&o?o:t}const Sn={ABW:"Aruba",IND:"India",AFG:"Afghanistan",AGO:"Angola",ALB:"Albania",AND:"Andorra",ARE:"United Arab Emirates",ARM:"Armenia",ASM:"American Samoa",ATG:"Antigua and Barbuda",AZE:"Azerbaijan",BEN:"Benin",BFA:"Burkina Faso",BGD:"Bangladesh",BGR:"Bulgaria",BHR:"Bahrain",BHS:"Bahamas",BIH:"Bosnia and Herzegovina",BLM:"Saint Barthélemy",BLR:"Belarus",BMU:"Bermuda",BOL:"Bolivia",BRA:"Brazil",BRB:"Barbados",BRN:"Brunei",BTN:"Bhutan",CAF:"Central African Republic",CHN:"China",CIV:"Côte d'Ivoire",CMR:"Cameroon",COD:"DR Congo",COG:"Congo",COK:"Cook Islands",COL:"Colombia",COM:"Comoros",CUB:"Cuba",CUW:"Curaçao",CYM:"Cayman Islands",CYP:"Cyprus",CZE:"Czechia",DJI:"Djibouti",DMA:"Dominica",DZA:"Algeria",ECU:"Ecuador",EGY:"Egypt",ERI:"Eritrea",ESP:"Spain",ETH:"Ethiopia",FIN:"Finland",FJI:"Fiji",FRO:"Faroe Islands",FSM:"Micronesia",GAB:"Gabon",GEO:"Georgia",GGY:"Guernsey",GHA:"Ghana",GIN:"Guinea",GLP:"Guadeloupe",GMB:"Gambia",GNB:"Guinea-Bissau",GNQ:"Equatorial Guinea",GRC:"Greece",GRD:"Grenada",GUF:"French Guiana",GUM:"Guam",GUY:"Guyana",IDN:"Indonesia",IRN:"Iran",IRQ:"Iraq",ISL:"Iceland",ISR:"Israel",JAM:"Jamaica",JOR:"Jordan",JPN:"Japan",KAZ:"Kazakhstan",KEN:"Kenya",KGZ:"Kyrgyzstan",KHM:"Cambodia",KIR:"Kiribati",KWT:"Kuwait",LAO:"Laos",LBN:"Lebanon",LBR:"Liberia",LBY:"Libya",LCA:"Saint Lucia",LIE:"Liechtenstein",LKA:"Sri Lanka",LUX:"Luxembourg",MAR:"Morocco",MDV:"Maldives",MHL:"Marshall Islands",MLI:"Mali",MLT:"Malta",MMR:"Myanmar",MNE:"Montenegro",MNG:"Mongolia",MNP:"Northern Mariana Islands",MOZ:"Mozambique",MRT:"Mauritania",MSR:"Montserrat",MUS:"Mauritius",MWI:"Malawi",MYS:"Malaysia",MYT:"Mayotte",NAM:"Namibia",NCL:"New Caledonia",NER:"Niger",NGA:"Nigeria",NIU:"Niue",NPL:"Nepal",NZL:"New Zealand",OMN:"Oman",PAK:"Pakistan",PAN:"Panama",PER:"Peru",PHL:"Philippines",PLW:"Palau",PNG:"Papua New Guinea",PRK:"North Korea",PRY:"Paraguay",PSE:"Palestine",PYF:"French Polynesia",QAT:"Qatar",RUS:"Russia",SAU:"Saudi Arabia",SDN:"Sudan",SEN:"Senegal",SHN:"Saint Helena",SLB:"Solomon Islands",SLE:"Sierra Leone",SMR:"San Marino",SOM:"Somalia",SSD:"South Sudan",STP:"São Tomé and Príncipe",SUR:"Suriname",SWE:"Sweden",SWZ:"Eswatini",SYR:"Syria",TCA:"Turks and Caicos Islands",TCD:"Chad",TGO:"Togo",THA:"Thailand",TJK:"Tajikistan",TON:"Tonga",TUN:"Tunisia",TUR:"Turkey",TZA:"Tanzania",UGA:"Uganda",USA:"United States",UZB:"Uzbekistan",VCT:"Saint Vincent and the Grenadines",VEN:"Venezuela",VGB:"British Virgin Islands",VIR:"U.S. Virgin Islands",VNM:"Vietnam",VUT:"Vanuatu",WLF:"Wallis and Futuna",WSM:"Samoa",YEM:"Yemen",ZAF:"South Africa",ZMB:"Zambia",ZWE:"Zimbabwe"},pm=Object.freeze(Object.defineProperty({__proto__:null,ISO3_NAME:Sn},Symbol.toStringTag,{value:"Module"})),gm={"Andaman and Nicobar Islands":9,"Andhra Pradesh":81,"Arunāchal Pradesh":7,Assam:15,Bihār:18,Chandīgarh:1,Chhattīsgarh:24,Delhi:1,"Dādra and Nagar Haveli and Damān and Diu":1,Goa:5,Gujarāt:90,Haryāna:4,"Himāchal Pradesh":20,"Jammu and Kashmīr":33,Jhārkhand:9,Karnātaka:81,Kerala:72,Ladākh:6,Lakshadweep:1,"Madhya Pradesh":33,Mahārāshtra:54,Manipur:5,Meghālaya:2,Odisha:64,Puducherry:5,Punjab:4,Rājasthān:48,Sikkim:1,"Tamil Nādu":64,Telangāna:26,Tripura:11,"Uttar Pradesh":23,Uttarākhand:7,"West Bengal":30},hm={"Gansu Province":3,"Guangxi Zhuang Autonomous Region":6,"Guizhou Province":34,"Hainan Province":3,"Heilongjiang Province":2,"Hunan Province":5,"Inner Mongolia Autonomous Region":3,"Qinghai Province":3,"Sichuan Province":12,"Tibet Autonomous Region":13,"Xinjiang Uyghur Autonomous Region":7,"Yunnan Province":61},Ms={...gm,...hm},lA=Object.fromEntries([...Object.keys(gm).map(e=>[e,"IND"]),...Object.keys(hm).map(e=>[e,"CHN"])]),fm={ABW:1,AFG:21,AGO:10,ALB:1,AND:1,ARE:2,ARM:1,ASM:1,ATG:1,AZE:3,BEN:9,BFA:8,BGD:3,BGR:1,BHR:2,BHS:1,BIH:1,BLM:1,BLR:1,BMU:1,BOL:1,BRA:103,BRB:1,BRN:5,BTN:13,CAF:1,CHN:154,CIV:2,CMR:8,COD:9,COG:2,COK:1,COL:27,COM:3,CUB:1,CUW:1,CYM:1,CYP:1,CZE:1,DJI:1,DMA:1,DZA:17,ECU:1,EGY:3,ERI:8,ESP:1,ETH:29,FIN:1,FJI:1,FRO:1,FSM:1,GAB:2,GEO:1,GGY:1,GHA:1,GIN:13,GLP:1,GMB:3,GNB:3,GNQ:1,GRC:1,GRD:1,GUF:2,GUM:1,GUY:1,IDN:36,IRN:20,IRQ:8,ISL:1,ISR:4,JAM:1,JOR:3,JPN:6,KAZ:1,KEN:5,KGZ:2,KHM:1,KIR:1,KWT:1,LAO:95,LBN:4,LBR:2,LBY:15,LCA:1,LIE:1,LKA:1,LUX:1,MAR:4,MDV:1,MHL:1,MLI:13,MLT:1,MMR:7,MNE:1,MNG:1,MNP:1,MOZ:4,MRT:3,MSR:1,MUS:1,MWI:1,MYS:12,MYT:1,NAM:6,NCL:1,NER:2,NGA:38,NIU:1,NPL:34,NZL:1,OMN:7,PAK:24,PAN:1,PER:10,PHL:1,PLW:1,PNG:1,PRK:1,PRY:1,PSE:4,PYF:1,QAT:3,RUS:21,SAU:3,SDN:105,SEN:1,SHN:1,SLB:1,SLE:2,SMR:1,SOM:9,SSD:22,STP:1,SUR:2,SWE:2,SWZ:1,SYR:5,TCA:1,TCD:53,TGO:6,THA:8,TJK:3,TON:1,TUN:2,TUR:3,TZA:16,UGA:6,USA:3,UZB:1,VCT:1,VEN:6,VGB:1,VIR:1,VNM:16,VUT:1,WLF:1,WSM:1,YEM:9,ZAF:2,ZMB:6,ZWE:3};function mm(e){const t={...Sn};for(const o of e||[]){const a=o&&o.country_code,n=o&&o.country_code_label;a&&n&&(t[a]=n)}return t}function bm(e,t={}){if(!e||typeof e!="object")return null;const o=t.nameMap||Sn;if(e.shapeName&&(e.listId||!e.iso3)){const a=String(e.shapeName),n=Object.prototype.hasOwnProperty.call(Ms,a)?Ms[a]:null;return{key:"adm1:"+a,name:a,count:n,kind:"adm1",country:e.shapeGroup||e.iso3||lA[a]||null}}if(e.iso3){const a=String(e.iso3),n=o[a]||Sn[a]||a,r=Object.prototype.hasOwnProperty.call(fm,a)?fm[a]:null;return{key:"adm0:"+a,name:n,count:r,kind:"adm0"}}return null}function fu(e,t={}){const o=Array.isArray(e)?e:[],a=o.map(l=>l.name),n=o.reduce((l,c)=>l+(Number(c.count)||0),0),r=t&&typeof t.color=="string"&&t.color?t.color:"",i=a.join(", ")+" — "+n+" UUPG"+(r?" · "+r:""),s=o.map(l=>l.name+" "+(Number(l.count)||0)).join(", ");return i+` +`,"geocoder-skin");const{t:n,locale:r}=Zt(),i=e,s=X(()=>/^pk\./.test(String(i.accessToken||""))),l=X(()=>i.placeholder||(i.provider==="maplibre"&&!s.value?n("search.placeholderNoPlaces"):n("search.placeholder"))),c=o,u={"&":"&","<":"<",">":">",'"':""","'":"'"};function d(A){return String(A??"").replace(/[&<>"']/g,z=>u[z])}function p(A){return A==null?"":typeof A=="string"?A:typeof A=="object"?A.label||A.value||"":String(A)}const y={"people-group":"people","doxa-people-group":"peopleGroup","doxa-affinity-bloc":"bloc","doxa-cluster":"cluster","doxa-country":"country","doxa-region":"region","doxa-language-family":"family","doxa-language":"languageKind","doxa-dialect":"dialect","doxa-religion":"religionKind"};function f(A){const z=y[A];if(!z)return"";const D=n("search.kinds."+z);return`${d(D)}`}function h(A){var J;if(!A)return"";const z=A.place_type||[];if(z.includes("doxa-section-header"))return`
${d(((J=A.properties)==null?void 0:J.headerLabel)||A.text||"")}
`;if(z.includes("people-group")){const se=A.properties||{},U=p(se.name)||p(se.displayName)||p(A.text)||"",we=p(se.countryName)||p(se.country)||p(se.countryIso)||"",Se=p(se.language)||p(se.primaryLanguage)||p(se.languageFamily)||"",Oe=p(se.religionName)||p(se.religion)||"",Ue=n("search.labels.place"),Ee=n("search.labels.language"),tt=n("search.labels.religion"),lt=[];return we&<.push(`${d(Ue)} ${d(we)}`),Se&<.push(`${d(Ee)} ${d(Se)}`),Oe&<.push(`${d(tt)} ${d(Oe)}`),`
${f("people-group")}${d(U)}
`+(lt.length?`
${lt.join("")}
`:"")}const D=z.find(se=>se.startsWith("doxa-"));if(D){const se=A.properties||{},U=d(p(se.label)||A.text||""),we=Number(se.count)||0,Se=we?` ${we}`:"";return`
${f(D)}${U}${Se}
`}return`
${d(A.place_name||A.text||"")}
`}const m=rt("dataStore",null),$=rt("mapStore",null),b=rt("uiStore",null);function w(){return $?$.selectedFamily?{kind:"family",key:$.selectedFamily}:$.selectedLanguage?{kind:"language",key:$.selectedLanguage}:null:null}const{search:_}=UP({dataStore:m,dataSourceId:i.dataSourceId||void 0,getActiveFilter:w,getActiveContext:()=>i.activeContext||null}),g=ln(null),v=_e(null),P={mapbox:Ma.mapboxGeocoderCss.url,maplibre:Ma.maplibreGeocoderCss.url},L=Ma.maplibreGeocoderJs.url,k=Ma.mapboxGeocoderJs.url;function H(A,z){const D=P[z]||P.mapbox;if(A.querySelector(`link[href="${D}"]`))return;const J=document.createElement("link");J.rel="stylesheet",J.href=D,ti(J,D),A.prepend(J)}async function K(A,z){if(typeof window<"u"&&window[z]||typeof document>"u")return;const D=document.querySelector(`script[src="${A}"]`);if(D){if(window[z])return;await new Promise(J=>{D.addEventListener("load",J,{once:!0}),D.addEventListener("error",J,{once:!0})});return}await new Promise(J=>{const se=document.createElement("script");se.src=A,ti(se,A),se.async=!0,se.addEventListener("load",J,{once:!0}),se.addEventListener("error",J,{once:!0}),document.head.appendChild(se)})}function C(A=document){let z=A.activeElement;for(;z&&z.shadowRoot&&z.shadowRoot.activeElement;)z=z.shadowRoot.activeElement;return z}function T(A){const z=A==null?void 0:A._onKeyDown;typeof z=="function"&&(A._onKeyDown=function(D){const J=C();return!J||J===D.target||typeof J.value!="string"?z.call(A,D):z.call(A,new Proxy(D,{get(se,U){if(U==="target"||U==="srcElement")return J;const we=Reflect.get(se,U);return typeof we=="function"?we.bind(se):we}}))})}async function ee(){await K(k,"MapboxGeocoder")}async function Y(){if(typeof window<"u"&&window.MaplibreGeocoder||typeof document>"u")return;const A=document.querySelector(`script[src="${L}"]`);if(A){if(window.MaplibreGeocoder)return;await new Promise(z=>{A.addEventListener("load",z,{once:!0}),A.addEventListener("error",z,{once:!0})});return}await new Promise((z,D)=>{const J=document.createElement("script");J.src=L,J.async=!1,J.addEventListener("load",z,{once:!0}),J.addEventListener("error",()=>D(new Error("[GeocoderComponent] Failed to load MapLibre geocoder")),{once:!0}),document.head.appendChild(J)})}function j(A,z){return async D=>{const J={features:[]};if(!/^pk\./.test(String(A||""))||!(D!=null&&D.query))return J;try{const se=Array.isArray(D.language)?D.language[0]:D.language||z()||"en",U=new URLSearchParams({access_token:A,autocomplete:"true",limit:String(D.limit||5)});se&&U.set("language",se);const we=`https://api.mapbox.com/geocoding/v5/mapbox.places/${encodeURIComponent(D.query)}.json?${U.toString()}`,Se=await fetch(we);if(!Se.ok)return J;const Oe=await Se.json();return Oe&&Array.isArray(Oe.features)?Oe:J}catch{return J}}}no(async()=>{var se,U,we,Se,Oe;const A=i.provider==="maplibre";if(A){if(await Y(),typeof MaplibreGeocoder>"u"){console.error("[GeocoderComponent] MaplibreGeocoder global unavailable.");return}}else if(typeof MapboxGeocoder>"u"&&(await ee(),typeof MapboxGeocoder>"u")){console.error("[GeocoderComponent] MapboxGeocoder global unavailable.");return}const z=i.mapInstance;if(!i.standalone&&!z)return;const D=i.standalone?(U=(se=v.value)==null?void 0:se.getRootNode)==null?void 0:U.call(se):(Oe=(Se=(we=z.getContainer)==null?void 0:we.call(z))==null?void 0:Se.getRootNode)==null?void 0:Oe.call(Se);D instanceof ShadowRoot&&H(D,i.provider);const J={marker:!1,flyTo:!i.standalone,trackProximity:!i.standalone,placeholder:l.value,language:r.value||"en",localGeocoder:_,limit:20,zoom:6,render:h};if(A){const Ue=typeof maplibregl<"u"?maplibregl:void 0,Ee={forwardGeocode:j(i.accessToken,()=>r.value)};g.value=new MaplibreGeocoder(Ee,{...J,maplibregl:Ue,showResultsWhileTyping:!0,reverseGeocode:!1})}else g.value=new MapboxGeocoder({accessToken:i.accessToken,mapboxgl,...J});if(T(g.value),g.value.on("result",Ue=>{var tt,lt,xe,R,F,O,re,pe,de,$e,ke,x,S,Z,ne,be,me,V,ae,Me,ze,st,Pt,ft,Vt,Te,Le,De,ct,_t;const Ee=Ue==null?void 0:Ue.result;Ee&&((tt=Ee.place_type)!=null&&tt.includes("doxa-section-header")||($&&($.selectedRegion=null,$.selectedResource=null,$.selectedAffinityBlock=null,$.selectedDialect=null),b&&((lt=b.setPrayerFilter)==null||lt.call(b,null),(xe=b.setEngagementFilter)==null||xe.call(b,null),(R=b.setAdoptionFilter)==null||R.call(b,null),(F=b.setReligionFilter)==null||F.call(b,null)),(O=Ee.properties)!=null&&O._allDataSection&&$&&($.selectedFamily=null,$.selectedLanguage=null),c("result",Ue),(re=Ee.place_type)!=null&&re.includes("people-group")&&Ee.feature?c("people-group-result",{type:"Feature",properties:Ee.properties||Ee.feature,geometry:Ee.geometry||{type:"Point",coordinates:Ee.center}}):((pe=Ee.place_type)!=null&&pe.includes("doxa-country")||(de=Ee.place_type)!=null&&de.includes("doxa-region")||($e=Ee.place_type)!=null&&$e.includes("doxa-language-family")||(ke=Ee.place_type)!=null&&ke.includes("doxa-language")||(x=Ee.place_type)!=null&&x.includes("doxa-dialect")||(S=Ee.place_type)!=null&&S.includes("doxa-religion")||(Z=Ee.place_type)!=null&&Z.includes("doxa-affinity-bloc")||(ne=Ee.place_type)!=null&&ne.includes("doxa-cluster")||(be=Ee.place_type)!=null&&be.includes("doxa-people-group"))&&c("aggregate-result",{kind:Ee.place_type[0].replace(/^doxa-/,""),label:((me=Ee.properties)==null?void 0:me.label)||Ee.text,count:((V=Ee.properties)==null?void 0:V.count)||0,memberIds:((ae=Ee.properties)==null?void 0:ae.memberIds)||[],bounds:((Me=Ee.properties)==null?void 0:Me.bounds)||null,center:Ee.center,originalLabels:((ze=Ee.properties)==null?void 0:ze.originalLabels)||null,familyDerived:((st=Ee.properties)==null?void 0:st.familyDerived)||"",baseLang:((Pt=Ee.properties)==null?void 0:Pt.baseLang)||"",dialectLabel:((ft=Ee.properties)==null?void 0:ft.dialectLabel)||"",slug:((Vt=Ee.properties)==null?void 0:Vt.slug)||null,id:Ee.id||null,blocCode:((Te=Ee.properties)==null?void 0:Te.blocCode)||"",blocLabel:((Le=Ee.properties)==null?void 0:Le.blocLabel)||"",clusterCode:((De=Ee.properties)==null?void 0:De.clusterCode)||"",clusterLabel:((ct=Ee.properties)==null?void 0:ct.clusterLabel)||"",peopleGroupCode:((_t=Ee.properties)==null?void 0:_t.peopleGroupCode)||"",properties:Ee.properties||null})))}),g.value.on("clear",()=>c("clear")),g.value.on("error",Ue=>c("error",Ue)),i.standalone){if(v.value){const Ue={on(){},off(){},fire(){},getContainer:()=>v.value,getZoom:()=>0,getCenter:()=>({lng:0,lat:0}),getBounds:()=>null,flyTo(){},fitBounds(){},addControl(){},removeControl(){},hasControl:()=>!1};try{const Ee=g.value.onAdd(i.mapInstance||Ue);Ee&&v.value.appendChild(Ee)}catch(Ee){c("error",Ee)}}}else z.addControl(g.value,"top-left"),he()});function he(){var z,D;const A=(D=(z=g.value)==null?void 0:z.container)==null?void 0:D.parentElement;A&&(A.classList.add("dg-search-band"),A.classList.toggle("dg-search-band--dark",!!i.isDark))}return ht(()=>i.isDark,()=>he()),ht(l,A=>{var J,se;const z=g.value;if(!z)return;const D=z._inputEl||((se=(J=z.container)==null?void 0:J.querySelector)==null?void 0:se.call(J,"input.mapboxgl-ctrl-geocoder--input"));D&&(D.placeholder=A,D.setAttribute("placeholder",A)),z.options&&(z.options.placeholder=A)}),ht(r,A=>{const z=g.value;z!=null&&z.options&&(z.options.language=A||"en")}),Wt(()=>{var A,z;if(g.value){try{i.standalone?(z=(A=g.value).onRemove)==null||z.call(A):i.mapInstance&&i.mapInstance.removeControl(g.value)}catch{}g.value=null}}),t({geocoder:g}),(A,z)=>e.standalone?(q(),te("div",{key:0,ref_key:"standaloneContainer",ref:v,class:"dg-standalone-geocoder"},null,512)):Gn(A.$slots,"default",{},void 0,void 0,1)}},KP=["mapbox","maplibre"],VP="auto";function sm(e){return e&&typeof e=="object"&&"value"in e&&!("provider"in e)&&!("profile"in e)?e.value:e}function qP(e,{token:t}={}){const o=sm(e);return YP(o)||"maplibre"}function YP(e){const t=sm(e),o=t==null?void 0:t.provider,a=typeof location<"u"?new URLSearchParams(location.search).get("provider"):void 0,n=typeof window<"u"?window.MAP_PROVIDER:void 0,r=String(o||a||n||VP).toLowerCase().trim();return KP.includes(r)?r:""}const ZP="rgba(120, 128, 134, 0.28)",lm="36px",cm=()=>{};function JP(e,t={}){const{enabled:o=!0}=t;if(!o||!e)return cm;const a=Array.from(e.querySelectorAll(".map-scroll-edge"));if(!a.length)return cm;const n=b=>b.classList.contains("map-scroll-edge--left");for(const b of a)b.style.background=`linear-gradient(${n(b)?"to right":"to left"}, ${ZP} ${lm}, transparent ${lm})`,b.style.opacity="0",b.style.transition="opacity 0.16s ease",b.style.userSelect="none",b.style.webkitUserSelect="none";const r=b=>{b.style.opacity="1"},i=b=>{b.style.opacity="0"},s=()=>a.find(b=>!n(b))||null,l=new Set;let c=!1,u=null;const d=()=>{for(const b of a)l.has(b)||i(b)},p=()=>{const b=s();b&&(r(b),u&&clearTimeout(u),u=setTimeout(d,250))},y=()=>p(),f=b=>{if(!(b.touches&&b.touches.length===1))return;const w=b.target;w&&w.classList&&w.classList.contains("map-scroll-edge")||p()},h=()=>{u&&clearTimeout(u),d()};e.addEventListener("wheel",y,{passive:!0}),e.addEventListener("touchmove",f,{passive:!0}),e.addEventListener("touchend",h,{passive:!0}),e.addEventListener("touchcancel",h,{passive:!0});const m=()=>{c||p()};typeof window<"u"&&window.addEventListener("scroll",m,{passive:!0});const $=[];for(const b of a){const w=()=>{l.add(b),r(b)},_=()=>{l.delete(b),i(b)},g=()=>{c=!0,r(b)},v=()=>{c=!1,i(b)};b.addEventListener("mouseenter",w),b.addEventListener("mouseleave",_),b.addEventListener("touchstart",g,{passive:!0}),b.addEventListener("touchend",v,{passive:!0}),$.push(()=>{b.removeEventListener("mouseenter",w),b.removeEventListener("mouseleave",_),b.removeEventListener("touchstart",g),b.removeEventListener("touchend",v)})}return function(){u&&(clearTimeout(u),u=null),e.removeEventListener("wheel",y),e.removeEventListener("touchmove",f),e.removeEventListener("touchend",h),e.removeEventListener("touchcancel",h),typeof window<"u"&&window.removeEventListener("scroll",m);for(const w of $)w();for(const w of a)i(w)}}const XP=Object.fromEntries([{id:"midnight-glow",label:"Midnight Glow",mood:"the prayer-map dark — pins glow like embers",mapbox:"mapbox://styles/mapbox/standard",lightPreset:"night",maplibre:"https://tiles.openfreemap.org/styles/fiord",bestFor:["doxa-simple-map","my-upg-100-list"]},{id:"daylight",label:"Daylight",mood:"the same Standard world, lights on",mapbox:"mapbox://styles/mapbox/standard",lightPreset:"day",maplibre:"https://tiles.openfreemap.org/styles/liberty",bestFor:["doxa-research-map","gospel-resources"]},{id:"dawn",label:"Dawn",mood:"soft warm horizon — hopeful, quiet",mapbox:"mapbox://styles/mapbox/standard",lightPreset:"dawn",maplibre:"https://tiles.openfreemap.org/styles/positron",bestFor:["doxa-simple-map"]},{id:"dusk",label:"Dusk",mood:"blue hour — calm contrast for bright pins",mapbox:"mapbox://styles/mapbox/standard",lightPreset:"dusk",maplibre:"https://tiles.openfreemap.org/styles/fiord",bestFor:["my-upg-100-list"]},{id:"paper",label:"Paper",mood:"near-white minimal — data reads like print",mapbox:"mapbox://styles/mapbox/light-v11",maplibre:"https://tiles.openfreemap.org/styles/positron",bestFor:["research-dashboard","cities-internet"]},{id:"ink",label:"Ink",mood:"near-black minimal — maximum pin contrast",mapbox:"mapbox://styles/mapbox/dark-v11",maplibre:"https://tiles.openfreemap.org/styles/dark",bestFor:["my-upg-100-list","cities-internet"]},{id:"streetlife",label:"Street Life",mood:"full street detail — city-scale work",mapbox:"mapbox://styles/mapbox/streets-v12",maplibre:"https://tiles.openfreemap.org/styles/bright",bestFor:["cities-internet","key-cities"]},{id:"terrain",label:"Terrain",mood:"relief + parks — where people actually live",mapbox:"mapbox://styles/mapbox/outdoors-v12",maplibre:"https://tiles.openfreemap.org/styles/liberty",bestFor:["doxa-research-map","country-posters"]},{id:"satellite",label:"Satellite",mood:"imagery — the real ground",mapbox:"mapbox://styles/mapbox/satellite-v9",maplibre:"https://tiles.openfreemap.org/styles/liberty",bestFor:["country-posters"]},{id:"hybrid",label:"Hybrid",mood:"imagery + labels — orientation without losing ground truth",mapbox:"mapbox://styles/mapbox/satellite-streets-v12",maplibre:"https://tiles.openfreemap.org/styles/liberty",bestFor:["key-cities"]},{id:"wayfinder-day",label:"Wayfinder Day",mood:"high-legibility navigation palette",mapbox:"mapbox://styles/mapbox/navigation-day-v1",maplibre:"https://tiles.openfreemap.org/styles/liberty",bestFor:["gospel-resources"]},{id:"wayfinder-night",label:"Wayfinder Night",mood:"dark navigation — dashboards at night",mapbox:"mapbox://styles/mapbox/navigation-night-v1",maplibre:"https://tiles.openfreemap.org/styles/fiord",bestFor:["research-dashboard"]},{id:"galaxy",label:"Galaxy",mood:"the day side of Earth floating in space — normal land, blue oceans, black void behind the sphere",mapbox:"mapbox://styles/mapbox/standard",maplibre:"https://tiles.versatiles.org/assets/styles/colorful/style.json",bestFor:["research-dashboard","my-upg-100-list"]}].map(e=>[e.id,e]));function du(e,t="mapbox"){if(typeof e!="string"||!e)return{style:void 0,lightPreset:void 0,paint:void 0};const o=XP[e];return o?t==="maplibre"?{style:o.maplibre,lightPreset:void 0,paint:o.paint}:{style:o.mapbox,lightPreset:o.lightPreset,paint:o.paint}:/^(mapbox:\/\/|https?:\/\/)/.test(e)?{style:e,lightPreset:void 0,paint:void 0}:{style:void 0,lightPreset:void 0,paint:void 0}}const um={mapbox:"https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-rtl-text/v0.3.0/mapbox-gl-rtl-text.js",maplibre:"https://cdn.jsdelivr.net/npm/@mapbox/mapbox-gl-rtl-text@0.3.0/dist/mapbox-gl-rtl-text.js"};function QP(e){return!!e&&typeof window<"u"&&e===window.maplibregl}function eA(e){if(typeof window>"u")return!1;const t=e?[e]:[window.maplibregl,window.mapboxgl].filter(Boolean);let o=!1;for(const a of t)if(!(!a||!a.setRTLTextPlugin))try{if(QP(a)){if(a.getRTLTextPluginStatus&&a.getRTLTextPluginStatus()!=="unavailable")continue;const n=a.setRTLTextPlugin(um.maplibre,!0);n&&n.catch&&n.catch(()=>{})}else a.setRTLTextPlugin(um.mapbox,null,!0);o=!0}catch{}return o}const or={mapbox:{global:"mapboxgl",js:Ma.mapboxGlJs.url,css:Ma.mapboxGlCss.url},maplibre:{global:"maplibregl",js:Ma.maplibreGlJs.url,css:Ma.maplibreGlCss.url}};function pu(e){var o;const t=((o=or[e])==null?void 0:o.global)||or.mapbox.global;return typeof window<"u"?window[t]:void 0}function dm(e){return(or[e]||or.mapbox).css||null}async function tA(e){const t=or[e]||or.mapbox;if(pu(e)||typeof document>"u")return;if(!document.querySelector(`link[href="${t.css}"]`)){const a=document.createElement("link");a.rel="stylesheet",a.href=t.css,ti(a,t.css),document.head.appendChild(a)}const o=document.querySelector(`script[src="${t.js}"]`);if(o){if(pu(e))return;await new Promise(a=>{o.addEventListener("load",a,{once:!0}),o.addEventListener("error",a,{once:!0})});return}await new Promise((a,n)=>{const r=document.createElement("script");r.src=t.js,ti(r,t.js),r.async=!1,r.addEventListener("load",a,{once:!0}),r.addEventListener("error",()=>n(new Error(`[useMapInstance] Failed to load ${e} engine script`)),{once:!0}),document.head.appendChild(r)})}async function oA(e,t){if(!e)return;const o=e.getRootNode();if(!(o instanceof ShadowRoot))return;const a=i=>new Promise(s=>setTimeout(s,i)),n=o.querySelector(`link[href="${t}"]`);if(n){if(n.sheet)return;await Promise.race([new Promise(i=>{n.addEventListener("load",i,{once:!0}),n.addEventListener("error",i,{once:!0})}),a(2e3)]);return}const r=document.createElement("link");r.rel="stylesheet",r.href=t,ti(r,t),await Promise.race([new Promise(i=>{r.addEventListener("load",i,{once:!0}),r.addEventListener("error",i,{once:!0}),o.prepend(r)}),a(2e3)])}const aA=["country_code","wagf_region","wagf_block","primary_language","religion","imb_gsec"];function nA(e){return e==null?{value:null,label:null}:typeof e=="object"?{value:e.value??null,label:e.label??null}:{value:e,label:null}}function rA(e){if(e==null||typeof e!="object")return e;const t={...e};for(const o of aA)if(o in t){const{value:a,label:n}=nA(t[o]);t[o]=a,n!=null&&(t[`${o}_label`]=n)}return t}function gu(e){return Array.isArray(e)?e.map(rA):[]}function hu(e){return Array.isArray(e)?e:e&&typeof e=="object"?e.posts||e.data||e.records||e.results||e.items||[]:[]}const iA={"andean-caribbean":"#f9a51f","asia-china-tibet-autonomous-region":"#00f0c8","asia-china-yunnan-province":"#22ddff","asia-frontier-nas-a":"#ff1744","asia-india-andhra-pradesh":"#22ddff","asia-india-assam":"#22ddff","asia-india-chhattisgarh":"#536dfe","asia-india-gujarat":"#536dfe","asia-india-karnataka":"#536dfe","asia-india-kerala":"#2196ff","asia-india-madhya-pradesh":"#2196ff","asia-india-maharashtra":"#2196ff","asia-india-odisha":"#2196ff","asia-india-rajasthan":"#22ddff","asia-india-tamil-nadu":"#7c4dff","asia-india-uttarakhand":"#536dfe","asia-india-west-bengal":"#22ddff",brazil:"#f4c57b","central-africa":"#c20001",deaf:"#18ffff","east-africa":"#ef3410",europe:"#34cb74",laos:"#7c4dff","maghreb-egypt":"#602f74","mainland-se-asia-philippines":"#ff1744","middle-east-core":"#bc8bd0","oceania-indonesia":"#ee892f","southern-africa-islands":"#e75556",sudan:"#e69e93","uncovered-central-asia":"#ff8a00","uncovered-himalaya":"#ff6d00","uncovered-japan":"#ffc400","uncovered-mongolia":"#76ff03","uncovered-nas-a":"#ff1744","uncovered-nepal":"#ffea00","uncovered-sa-west":"#ff1744","uncovered-scatter":"#eeff41","west-africa":"#edcac9"};function sA(e,t){const o=iA[e];return typeof o=="string"&&o?o:t}const Sn={ABW:"Aruba",IND:"India",AFG:"Afghanistan",AGO:"Angola",ALB:"Albania",AND:"Andorra",ARE:"United Arab Emirates",ARM:"Armenia",ASM:"American Samoa",ATG:"Antigua and Barbuda",AZE:"Azerbaijan",BEN:"Benin",BFA:"Burkina Faso",BGD:"Bangladesh",BGR:"Bulgaria",BHR:"Bahrain",BHS:"Bahamas",BIH:"Bosnia and Herzegovina",BLM:"Saint Barthélemy",BLR:"Belarus",BMU:"Bermuda",BOL:"Bolivia",BRA:"Brazil",BRB:"Barbados",BRN:"Brunei",BTN:"Bhutan",CAF:"Central African Republic",CHN:"China",CIV:"Côte d'Ivoire",CMR:"Cameroon",COD:"DR Congo",COG:"Congo",COK:"Cook Islands",COL:"Colombia",COM:"Comoros",CUB:"Cuba",CUW:"Curaçao",CYM:"Cayman Islands",CYP:"Cyprus",CZE:"Czechia",DJI:"Djibouti",DMA:"Dominica",DZA:"Algeria",ECU:"Ecuador",EGY:"Egypt",ERI:"Eritrea",ESP:"Spain",ETH:"Ethiopia",FIN:"Finland",FJI:"Fiji",FRO:"Faroe Islands",FSM:"Micronesia",GAB:"Gabon",GEO:"Georgia",GGY:"Guernsey",GHA:"Ghana",GIN:"Guinea",GLP:"Guadeloupe",GMB:"Gambia",GNB:"Guinea-Bissau",GNQ:"Equatorial Guinea",GRC:"Greece",GRD:"Grenada",GUF:"French Guiana",GUM:"Guam",GUY:"Guyana",IDN:"Indonesia",IRN:"Iran",IRQ:"Iraq",ISL:"Iceland",ISR:"Israel",JAM:"Jamaica",JOR:"Jordan",JPN:"Japan",KAZ:"Kazakhstan",KEN:"Kenya",KGZ:"Kyrgyzstan",KHM:"Cambodia",KIR:"Kiribati",KWT:"Kuwait",LAO:"Laos",LBN:"Lebanon",LBR:"Liberia",LBY:"Libya",LCA:"Saint Lucia",LIE:"Liechtenstein",LKA:"Sri Lanka",LUX:"Luxembourg",MAR:"Morocco",MDV:"Maldives",MHL:"Marshall Islands",MLI:"Mali",MLT:"Malta",MMR:"Myanmar",MNE:"Montenegro",MNG:"Mongolia",MNP:"Northern Mariana Islands",MOZ:"Mozambique",MRT:"Mauritania",MSR:"Montserrat",MUS:"Mauritius",MWI:"Malawi",MYS:"Malaysia",MYT:"Mayotte",NAM:"Namibia",NCL:"New Caledonia",NER:"Niger",NGA:"Nigeria",NIU:"Niue",NPL:"Nepal",NZL:"New Zealand",OMN:"Oman",PAK:"Pakistan",PAN:"Panama",PER:"Peru",PHL:"Philippines",PLW:"Palau",PNG:"Papua New Guinea",PRK:"North Korea",PRY:"Paraguay",PSE:"Palestine",PYF:"French Polynesia",QAT:"Qatar",RUS:"Russia",SAU:"Saudi Arabia",SDN:"Sudan",SEN:"Senegal",SHN:"Saint Helena",SLB:"Solomon Islands",SLE:"Sierra Leone",SMR:"San Marino",SOM:"Somalia",SSD:"South Sudan",STP:"São Tomé and Príncipe",SUR:"Suriname",SWE:"Sweden",SWZ:"Eswatini",SYR:"Syria",TCA:"Turks and Caicos Islands",TCD:"Chad",TGO:"Togo",THA:"Thailand",TJK:"Tajikistan",TON:"Tonga",TUN:"Tunisia",TUR:"Turkey",TZA:"Tanzania",UGA:"Uganda",USA:"United States",UZB:"Uzbekistan",VCT:"Saint Vincent and the Grenadines",VEN:"Venezuela",VGB:"British Virgin Islands",VIR:"U.S. Virgin Islands",VNM:"Vietnam",VUT:"Vanuatu",WLF:"Wallis and Futuna",WSM:"Samoa",YEM:"Yemen",ZAF:"South Africa",ZMB:"Zambia",ZWE:"Zimbabwe",CCK:"Cocos (Keeling) Islands",CXR:"Christmas Island",ESH:"Western Sahara",GIB:"Gibraltar",HKG:"Hong Kong",JEY:"Jersey",KOS:"Kosovo",MAC:"Macao",MCO:"Monaco",NFK:"Norfolk Island",SJM:"Svalbard and Jan Mayen",SXM:"Sint Maarten",TKL:"Tokelau"},pm=Object.freeze(Object.defineProperty({__proto__:null,ISO3_NAME:Sn},Symbol.toStringTag,{value:"Module"})),gm={"Andaman and Nicobar Islands":9,"Andhra Pradesh":81,"Arunāchal Pradesh":7,Assam:15,Bihār:18,Chandīgarh:1,Chhattīsgarh:24,Delhi:1,"Dādra and Nagar Haveli and Damān and Diu":1,Goa:5,Gujarāt:90,Haryāna:4,"Himāchal Pradesh":20,"Jammu and Kashmīr":33,Jhārkhand:9,Karnātaka:81,Kerala:72,Ladākh:6,Lakshadweep:1,"Madhya Pradesh":33,Mahārāshtra:54,Manipur:5,Meghālaya:2,Odisha:64,Puducherry:5,Punjab:4,Rājasthān:48,Sikkim:1,"Tamil Nādu":64,Telangāna:26,Tripura:11,"Uttar Pradesh":23,Uttarākhand:7,"West Bengal":30},hm={"Gansu Province":3,"Guangxi Zhuang Autonomous Region":6,"Guizhou Province":34,"Hainan Province":3,"Heilongjiang Province":2,"Hunan Province":5,"Inner Mongolia Autonomous Region":3,"Qinghai Province":3,"Sichuan Province":12,"Tibet Autonomous Region":13,"Xinjiang Uyghur Autonomous Region":7,"Yunnan Province":61},Ms={...gm,...hm},lA=Object.fromEntries([...Object.keys(gm).map(e=>[e,"IND"]),...Object.keys(hm).map(e=>[e,"CHN"])]),fm={ABW:1,AFG:21,AGO:10,ALB:1,AND:1,ARE:2,ARM:1,ASM:1,ATG:1,AZE:3,BEN:9,BFA:8,BGD:3,BGR:1,BHR:2,BHS:1,BIH:1,BLM:1,BLR:1,BMU:1,BOL:1,BRA:103,BRB:1,BRN:5,BTN:13,CAF:1,CHN:154,CIV:2,CMR:8,COD:9,COG:2,COK:1,COL:27,COM:3,CUB:1,CUW:1,CYM:1,CYP:1,CZE:1,DJI:1,DMA:1,DZA:17,ECU:1,EGY:3,ERI:8,ESP:1,ETH:29,FIN:1,FJI:1,FRO:1,FSM:1,GAB:2,GEO:1,GGY:1,GHA:1,GIN:13,GLP:1,GMB:3,GNB:3,GNQ:1,GRC:1,GRD:1,GUF:2,GUM:1,GUY:1,IDN:36,IRN:20,IRQ:8,ISL:1,ISR:4,JAM:1,JOR:3,JPN:6,KAZ:1,KEN:5,KGZ:2,KHM:1,KIR:1,KWT:1,LAO:95,LBN:4,LBR:2,LBY:15,LCA:1,LIE:1,LKA:1,LUX:1,MAR:4,MDV:1,MHL:1,MLI:13,MLT:1,MMR:7,MNE:1,MNG:1,MNP:1,MOZ:4,MRT:3,MSR:1,MUS:1,MWI:1,MYS:12,MYT:1,NAM:6,NCL:1,NER:2,NGA:38,NIU:1,NPL:34,NZL:1,OMN:7,PAK:24,PAN:1,PER:10,PHL:1,PLW:1,PNG:1,PRK:1,PRY:1,PSE:4,PYF:1,QAT:3,RUS:21,SAU:3,SDN:105,SEN:1,SHN:1,SLB:1,SLE:2,SMR:1,SOM:9,SSD:22,STP:1,SUR:2,SWE:2,SWZ:1,SYR:5,TCA:1,TCD:53,TGO:6,THA:8,TJK:3,TON:1,TUN:2,TUR:3,TZA:16,UGA:6,USA:3,UZB:1,VCT:1,VEN:6,VGB:1,VIR:1,VNM:16,VUT:1,WLF:1,WSM:1,YEM:9,ZAF:2,ZMB:6,ZWE:3};function mm(e){const t={...Sn};for(const o of e||[]){const a=o&&o.country_code,n=o&&o.country_code_label;a&&n&&(t[a]=n)}return t}function bm(e,t={}){if(!e||typeof e!="object")return null;const o=t.nameMap||Sn;if(e.shapeName&&(e.listId||!e.iso3)){const a=String(e.shapeName),n=Object.prototype.hasOwnProperty.call(Ms,a)?Ms[a]:null;return{key:"adm1:"+a,name:a,count:n,kind:"adm1",country:e.shapeGroup||e.iso3||lA[a]||null}}if(e.iso3){const a=String(e.iso3),n=o[a]||Sn[a]||a,r=Object.prototype.hasOwnProperty.call(fm,a)?fm[a]:null;return{key:"adm0:"+a,name:n,count:r,kind:"adm0"}}return null}function fu(e,t={}){const o=Array.isArray(e)?e:[],a=o.map(l=>l.name),n=o.reduce((l,c)=>l+(Number(c.count)||0),0),r=t&&typeof t.color=="string"&&t.color?t.color:"",i=a.join(", ")+" — "+n+" UUPG"+(r?" · "+r:""),s=o.map(l=>l.name+" "+(Number(l.count)||0)).join(", ");return i+` `+s}const cA=["slug","name","country_code","population","territories","color"];function uA(e){let t=e==null?"":String(e);return/^[=+\-@\t\r]/.test(t)&&(t="'"+t),/[",\n\r]/.test(t)&&(t='"'+t.replace(/"/g,'""')+'"'),t}function $m(e,t=new Map,o={}){const a=o&&typeof o.color=="string"?o.color:"",n=(e||[]).map(r=>[r.slug,r.name,r.country_code,r.population,(t.get(r.slug)||[]).join("; "),a].map(uA).join(","));return[cA.join(","),...n].join(`\r `)}function dA(e){return e&&e.kind==="adm0"?String(e.key||"").replace(/^adm0:/,"")||e.name:e?e.name:""}function pA(e){return e?e.kind==="adm0"?"uncovered":e.kind==="adm1"?e.country==="CHN"?"china":e.country==="IND"?"india":"unknown":"zone":"unknown"}function gA(e){const t=new Set((e||[]).map(pA));return t.size===1&&!t.has("zone")&&!t.has("unknown")}function mu(e,t={},o=""){const a=t&&t.color?t.color:"",n=Array.isArray(e)?e:[],r=fu(n.map(l=>({...l,name:dA(l)})),{color:a}).split(` `)[0],i=fu(n,{color:a}).split(` diff --git a/public/dx-maps/my-upg-100-list/poster-wall/index.html b/public/dx-maps/my-upg-100-list/poster-wall/index.html index c2315be75..5c154a74f 100644 --- a/public/dx-maps/my-upg-100-list/poster-wall/index.html +++ b/public/dx-maps/my-upg-100-list/poster-wall/index.html @@ -67,7 +67,7 @@ - + - + - + - + - + - + - + - + - +