diff --git a/public/dx-maps/doxa-maps-spa/manifest.json b/public/dx-maps/doxa-maps-spa/manifest.json
index f5232e43e..e9a01afb9 100644
--- a/public/dx-maps/doxa-maps-spa/manifest.json
+++ b/public/dx-maps/doxa-maps-spa/manifest.json
@@ -1435,7 +1435,7 @@
"bundle": "upg-neighbor",
"scriptUrl": "./upg-neighbor/upg-neighbor.js",
"output": "dx-maps/upg-neighbor/upg-neighbor.js",
- "integrity": "sha384-QyAGKyVSwq+ayFeHErLjVh6y4dihNwfLF9oEzLLblLqh/5ncLzl+0Kn8FLj5FCLs",
+ "integrity": "sha384-YMg/45WCRSOs3KkTAr011rRJWyNTWOHfqVGbQQHVonuDNR7SPywHzDe+NmbxHM9g",
"elements": [
"upg-neighbor"
],
@@ -1454,8 +1454,8 @@
"scriptUrl": "./upg-neighbor/upg-neighbor.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"
},
"instances": [
{
@@ -1537,7 +1537,7 @@
"bundle": "wall-of-people-groups",
"scriptUrl": "./wall-of-people-groups/wall-of-people-groups.js",
"output": "dx-maps/wall-of-people-groups/wall-of-people-groups.js",
- "integrity": "sha384-OTRCJYB3pfvDVVfXMuyY5tysT1VSF6A7RvHXYhXw9/ReTA4oQETvHydJ4h+WQwQG",
+ "integrity": "sha384-7r++4J4uH7latiglL2Q5Mp93UsLUNLEIYg9Kkx0HiF93B+/Ic/BIGDm16xYCOm8I",
"elements": [
"wall-of-people-groups"
],
@@ -1557,7 +1557,7 @@
"scriptUrl": "./wall-of-people-groups/wall-of-people-groups.js",
"embed": {
"iframe": "",
- "script": "\n\n\n"
+ "script": "\n\n\n"
},
"bundle": "wall-of-people-groups"
}
diff --git a/public/dx-maps/manifest.json b/public/dx-maps/manifest.json
index f5232e43e..e9a01afb9 100644
--- a/public/dx-maps/manifest.json
+++ b/public/dx-maps/manifest.json
@@ -1435,7 +1435,7 @@
"bundle": "upg-neighbor",
"scriptUrl": "./upg-neighbor/upg-neighbor.js",
"output": "dx-maps/upg-neighbor/upg-neighbor.js",
- "integrity": "sha384-QyAGKyVSwq+ayFeHErLjVh6y4dihNwfLF9oEzLLblLqh/5ncLzl+0Kn8FLj5FCLs",
+ "integrity": "sha384-YMg/45WCRSOs3KkTAr011rRJWyNTWOHfqVGbQQHVonuDNR7SPywHzDe+NmbxHM9g",
"elements": [
"upg-neighbor"
],
@@ -1454,8 +1454,8 @@
"scriptUrl": "./upg-neighbor/upg-neighbor.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"
},
"instances": [
{
@@ -1537,7 +1537,7 @@
"bundle": "wall-of-people-groups",
"scriptUrl": "./wall-of-people-groups/wall-of-people-groups.js",
"output": "dx-maps/wall-of-people-groups/wall-of-people-groups.js",
- "integrity": "sha384-OTRCJYB3pfvDVVfXMuyY5tysT1VSF6A7RvHXYhXw9/ReTA4oQETvHydJ4h+WQwQG",
+ "integrity": "sha384-7r++4J4uH7latiglL2Q5Mp93UsLUNLEIYg9Kkx0HiF93B+/Ic/BIGDm16xYCOm8I",
"elements": [
"wall-of-people-groups"
],
@@ -1557,7 +1557,7 @@
"scriptUrl": "./wall-of-people-groups/wall-of-people-groups.js",
"embed": {
"iframe": "",
- "script": "\n\n\n"
+ "script": "\n\n\n"
},
"bundle": "wall-of-people-groups"
}
diff --git a/public/dx-maps/upg-neighbor/upg-neighbor.js b/public/dx-maps/upg-neighbor/upg-neighbor.js
index 68091ec5f..bd0db51de 100644
--- a/public/dx-maps/upg-neighbor/upg-neighbor.js
+++ b/public/dx-maps/upg-neighbor/upg-neighbor.js
@@ -1,4 +1,4 @@
-(function(){"use strict";var Ud;var Vr=typeof document<"u"?document.currentScript:null;const Qy="modulepreload",e1=function(e){return"/"+e},t1={},Bt=function(t,n,o){let a=Promise.resolve();function r(s){const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=s,window.dispatchEvent(i),!i.defaultPrevented)throw s}return a.then(s=>{for(const i of s||[])i.status==="rejected"&&r(i.reason);return t().catch(r)})};/**
+(function(){"use strict";var Ud;var Vr=typeof document<"u"?document.currentScript:null;const t1="modulepreload",n1=function(e){return"/"+e},o1={},Bt=function(t,n,o){let a=Promise.resolve();function r(s){const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=s,window.dispatchEvent(i),!i.defaultPrevented)throw s}return a.then(s=>{for(const i of s||[])i.status==="rejected"&&r(i.reason);return t().catch(r)})};/**
* @vue/shared v3.5.42
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
@@ -6,14 +6,14 @@
* @vue/reactivity v3.5.42
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
-**/let yt;class Ri{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&yt&&(yt.active?(this.parent=yt,this.index=(yt.scopes||(yt.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes){const o=this.scopes.slice();for(t=0,n=o.length;t0&&--this._on===0){if(yt===this)yt=this.prevScope;else{let t=yt;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let n,o;for(n=0,o=this.effects.length;n0)return;if(qo){let t=qo;for(qo=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Vo;){let t=Vo;for(Vo=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(o){e||(e=o)}t=n}}if(e)throw e}function Gi(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ji(e){let t,n=e.depsTail,o=n;for(;o;){const a=o.prevDep;o.version===-1?(o===n&&(n=a),ts(o),up(o)):t=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0,o=a}e.deps=t,e.depsTail=n}function es(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Hi(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Hi(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Ko)||(e.globalVersion=Ko,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!es(e))))return;e.flags|=2;const t=e.dep,n=Qe,o=en;Qe=e,en=!0;try{Gi(e);const a=e.fn(e._value);(t.version===0||gn(a,e._value))&&(e.flags|=128,e._value=a,t.version++)}catch(a){throw t.version++,a}finally{Qe=n,en=o,ji(e),e.flags&=-3}}function ts(e,t=!1){const{dep:n,prevSub:o,nextSub:a}=e;if(o&&(o.nextSub=a,e.prevSub=void 0),a&&(a.prevSub=o,e.nextSub=void 0),n.subs===e&&(n.subs=o,!o&&n.computed)){n.computed.flags&=-5;for(let r=n.computed.deps;r;r=r.nextDep)ts(r,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function up(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let en=!0;const Bi=[];function hn(){Bi.push(en),en=!1}function mn(){const e=Bi.pop();en=e===void 0?!0:e}function Ui(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Qe;Qe=void 0;try{t()}finally{Qe=n}}}let Ko=0;class dp{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class ns{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!Qe||!en||Qe===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Qe)n=this.activeLink=new dp(Qe,this),Qe.deps?(n.prevDep=Qe.depsTail,Qe.depsTail.nextDep=n,Qe.depsTail=n):Qe.deps=Qe.depsTail=n,Wi(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const o=n.nextDep;o.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=o),n.prevDep=Qe.depsTail,n.nextDep=void 0,Qe.depsTail.nextDep=n,Qe.depsTail=n,Qe.deps===n&&(Qe.deps=o)}return n}trigger(t){this.version++,Ko++,this.notify(t)}notify(t){Xr();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Qr()}}}function Wi(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let o=t.deps;o;o=o.nextDep)Wi(o)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Ga=new WeakMap,ro=Symbol(""),os=Symbol(""),Yo=Symbol("");function Lt(e,t,n){if(en&&Qe){let o=Ga.get(e);o||Ga.set(e,o=new Map);let a=o.get(n);a||(o.set(n,a=new ns),a.map=o,a.key=n),a.track()}}function Tn(e,t,n,o,a,r){const s=Ga.get(e);if(!s){Ko++;return}const i=l=>{l&&l.trigger()};if(Xr(),t==="clear")s.forEach(i);else{const l=ke(e),c=l&&Na(n);if(l&&n==="length"){const u=Number(o);s.forEach((d,h)=>{(h==="length"||h===Yo||!Kt(h)&&h>=u)&&i(d)})}else switch((n!==void 0||s.has(void 0))&&i(s.get(n)),c&&i(s.get(Yo)),t){case"add":l?c&&i(s.get("length")):(i(s.get(ro)),Hn(e)&&i(s.get(os)));break;case"delete":l||(i(s.get(ro)),Hn(e)&&i(s.get(os)));break;case"set":Hn(e)&&i(s.get(ro));break}}Qr()}function pp(e,t){const n=Ga.get(e);return n&&n.get(t)}function ko(e){const t=He(e);return t===e?t:(Lt(t,"iterate",Yo),Ut(e)?t:t.map(tn))}function ja(e){return Lt(e=He(e),"iterate",Yo),e}function fn(e,t){return An(e)?So(Mn(e)?tn(t):t):tn(t)}const gp={__proto__:null,[Symbol.iterator](){return as(this,Symbol.iterator,e=>fn(this,e))},concat(...e){return ko(this).concat(...e.map(t=>ke(t)?ko(t):t))},entries(){return as(this,"entries",e=>(e[1]=fn(this,e[1]),e))},every(e,t){return Ln(this,"every",e,t,void 0,arguments)},filter(e,t){return Ln(this,"filter",e,t,n=>n.map(o=>fn(this,o)),arguments)},find(e,t){return Ln(this,"find",e,t,n=>fn(this,n),arguments)},findIndex(e,t){return Ln(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Ln(this,"findLast",e,t,n=>fn(this,n),arguments)},findLastIndex(e,t){return Ln(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Ln(this,"forEach",e,t,void 0,arguments)},includes(...e){return rs(this,"includes",e)},indexOf(...e){return rs(this,"indexOf",e)},join(e){return ko(this).join(e)},lastIndexOf(...e){return rs(this,"lastIndexOf",e)},map(e,t){return Ln(this,"map",e,t,void 0,arguments)},pop(){return Zo(this,"pop")},push(...e){return Zo(this,"push",e)},reduce(e,...t){return Vi(this,"reduce",e,t)},reduceRight(e,...t){return Vi(this,"reduceRight",e,t)},shift(){return Zo(this,"shift")},some(e,t){return Ln(this,"some",e,t,void 0,arguments)},splice(...e){return Zo(this,"splice",e)},toReversed(){return ko(this).toReversed()},toSorted(e){return ko(this).toSorted(e)},toSpliced(...e){return ko(this).toSpliced(...e)},unshift(...e){return Zo(this,"unshift",e)},values(){return as(this,"values",e=>fn(this,e))}};function as(e,t,n){const o=ja(e),a=o[t]();return o!==e&&!Ut(e)&&(a._next=a.next,a.next=()=>{const r=a._next();return r.done||(r.value=n(r.value)),r}),a}const hp=Array.prototype;function Ln(e,t,n,o,a,r){const s=ja(e),i=s!==e&&!Ut(e),l=s[t];if(l!==hp[t]){const d=l.apply(e,r);return i?tn(d):d}let c=n;s!==e&&(i?c=function(d,h){return n.call(this,fn(e,d),h,e)}:n.length>2&&(c=function(d,h){return n.call(this,d,h,e)}));const u=l.call(s,c,o);return i&&a?a(u):u}function Vi(e,t,n,o){const a=ja(e),r=a!==e&&!Ut(e);let s=n,i=!1;a!==e&&(r?(i=o.length===0,s=function(c,u,d){return i&&(i=!1,c=fn(e,c)),n.call(this,c,fn(e,u),d,e)}):n.length>3&&(s=function(c,u,d){return n.call(this,c,u,d,e)}));const l=a[t](s,...o);return i?fn(e,l):l}function rs(e,t,n){const o=He(e);Lt(o,"iterate",Yo);const a=o[t](...n);return(a===-1||a===!1)&&Va(n[0])?(n[0]=He(n[0]),o[t](...n)):a}function Zo(e,t,n=[]){hn(),Xr();const o=He(e)[t].apply(e,n);return Qr(),mn(),o}const mp=qr("__proto__,__v_isRef,__isVue"),qi=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Kt));function fp(e){Kt(e)||(e=String(e));const t=He(this);return Lt(t,"has",e),t.hasOwnProperty(e)}class Ki{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,o){if(n==="__v_skip")return t.__v_skip;const a=this._isReadonly,r=this._isShallow;if(n==="__v_isReactive")return!a;if(n==="__v_isReadonly")return a;if(n==="__v_isShallow")return r;if(n==="__v_raw")return o===(a?r?el:Qi:r?Xi:Ji).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const s=ke(t);if(!a){let l;if(s&&(l=gp[n]))return l;if(n==="hasOwnProperty")return fp}const i=Reflect.get(t,n,rt(t)?t:o);if((Kt(n)?qi.has(n):mp(n))||(a||Lt(t,"get",n),r))return i;if(rt(i)){const l=s&&Na(n)?i:i.value;return a&&qe(l)?is(l):l}return qe(i)?a?is(i):Jo(i):i}}class Yi extends Ki{constructor(t=!1){super(!1,t)}set(t,n,o,a){let r=t[n];const s=ke(t)&&Na(n);if(!this._isShallow){const c=An(r);if(!Ut(o)&&!An(o)&&(r=He(r),o=He(o)),!s&&rt(r)&&!rt(o))return c||(r.value=o),!0}const i=s?Number(n)e,Ha=e=>Reflect.getPrototypeOf(e);function _p(e,t,n){return function(...o){const a=this.__v_raw,r=He(a),s=Hn(r),i=e==="entries"||e===Symbol.iterator&&s,l=e==="keys"&&s,c=a[e](...o),u=n?ss:t?So:tn;return!t&&Lt(r,"iterate",l?os:ro),ht(Object.create(c),{next(){const{value:d,done:h}=c.next();return h?{value:d,done:h}:{value:i?[u(d[0]),u(d[1])]:u(d),done:h}}})}}function Ba(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function wp(e,t){const n={get(a){const r=this.__v_raw,s=He(r),i=He(a);e||(gn(a,i)&&Lt(s,"get",a),Lt(s,"get",i));const{has:l}=Ha(s),c=t?ss:e?So:tn;if(l.call(s,a))return c(r.get(a));if(l.call(s,i))return c(r.get(i));r!==s&&r.get(a)},get size(){const a=this.__v_raw;return!e&&Lt(He(a),"iterate",ro),a.size},has(a){const r=this.__v_raw,s=He(r),i=He(a);return e||(gn(a,i)&&Lt(s,"has",a),Lt(s,"has",i)),a===i?r.has(a):r.has(a)||r.has(i)},forEach(a,r){const s=this,i=s.__v_raw,l=He(i),c=t?ss:e?So:tn;return!e&&Lt(l,"iterate",ro),i.forEach((u,d)=>a.call(r,c(u),c(d),s))}};return ht(n,e?{add:Ba("add"),set:Ba("set"),delete:Ba("delete"),clear:Ba("clear")}:{add(a){const r=He(this),s=Ha(r),i=He(a),l=!t&&!Ut(a)&&!An(a)?i:a;return s.has.call(r,l)||gn(a,l)&&s.has.call(r,a)||gn(i,l)&&s.has.call(r,i)||(r.add(l),Tn(r,"add",l,l)),this},set(a,r){!t&&!Ut(r)&&!An(r)&&(r=He(r));const s=He(this),{has:i,get:l}=Ha(s);let c=i.call(s,a);c||(a=He(a),c=i.call(s,a));const u=l.call(s,a);return s.set(a,r),c?gn(r,u)&&Tn(s,"set",a,r):Tn(s,"add",a,r),this},delete(a){const r=He(this),{has:s,get:i}=Ha(r);let l=s.call(r,a);l||(a=He(a),l=s.call(r,a)),i&&i.call(r,a);const c=r.delete(a);return l&&Tn(r,"delete",a,void 0),c},clear(){const a=He(this),r=a.size!==0,s=a.clear();return r&&Tn(a,"clear",void 0,void 0),s}}),["keys","values","entries",Symbol.iterator].forEach(a=>{n[a]=_p(a,e,t)}),n}function Ua(e,t){const n=wp(e,t);return(o,a,r)=>a==="__v_isReactive"?!e:a==="__v_isReadonly"?e:a==="__v_raw"?o:Reflect.get(We(n,a)&&a in o?n:o,a,r)}const kp={get:Ua(!1,!1)},Sp={get:Ua(!1,!0)},Pp={get:Ua(!0,!1)},Cp={get:Ua(!0,!0)},Ji=new WeakMap,Xi=new WeakMap,Qi=new WeakMap,el=new WeakMap;function xp(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Jo(e){return An(e)?e:Wa(e,!1,bp,kp,Ji)}function Tp(e){return Wa(e,!1,yp,Sp,Xi)}function is(e){return Wa(e,!0,$p,Pp,Qi)}function o1(e){return Wa(e,!0,vp,Cp,el)}function Wa(e,t,n,o,a){if(!qe(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const r=a.get(e);if(r)return r;const s=xp(Qd(e));if(s===0)return e;const i=new Proxy(e,s===2?o:n);return a.set(e,i),i}function Mn(e){return An(e)?Mn(e.__v_raw):!!(e&&e.__v_isReactive)}function An(e){return!!(e&&e.__v_isReadonly)}function Ut(e){return!!(e&&e.__v_isShallow)}function Va(e){return e?!!e.__v_raw:!1}function He(e){const t=e&&e.__v_raw;return t?He(t):e}function Xo(e){return!We(e,"__v_skip")&&Object.isExtensible(e)&&Ti(e,"__v_skip",!0),e}const tn=e=>qe(e)?Jo(e):e,So=e=>qe(e)?is(e):e;function rt(e){return e?e.__v_isRef===!0:!1}function Ce(e){return tl(e,!1)}function qa(e){return tl(e,!0)}function tl(e,t){return rt(e)?e:new Lp(e,t)}class Lp{constructor(t,n){this.dep=new ns,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:He(t),this._value=n?t:tn(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,o=this.__v_isShallow||Ut(t)||An(t);t=o?t:He(t),gn(t,n)&&(this._rawValue=t,this._value=o?t:tn(t),this.dep.trigger())}}function Ie(e){return rt(e)?e.value:e}const Mp={get:(e,t,n)=>t==="__v_raw"?e:Ie(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const a=e[t];return rt(a)&&!rt(n)?(a.value=n,!0):Reflect.set(e,t,n,o)}};function nl(e){return Mn(e)?e:new Proxy(e,Mp)}function Ap(e){const t=ke(e)?new Array(e.length):{};for(const n in e)t[n]=Np(e,n);return t}class Ep{constructor(t,n,o){this._object=t,this._defaultValue=o,this.__v_isRef=!0,this._value=void 0,this._key=Kt(n)?n:String(n),this._raw=He(t);let a=!0,r=t;if(!ke(t)||Kt(this._key)||!Na(this._key))do a=!Va(r)||Ut(r);while(a&&(r=r.__v_raw));this._shallow=a}get value(){let t=this._object[this._key];return this._shallow&&(t=Ie(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&rt(this._raw[this._key])){const n=this._object[this._key];if(rt(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return pp(this._raw,this._key)}}function Np(e,t,n){return new Ep(e,t,n)}class Fp{constructor(t,n,o){this.fn=t,this.setter=n,this._value=void 0,this.dep=new ns(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Ko-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=o}notify(){if(this.flags|=16,!(this.flags&8)&&Qe!==this)return Di(this,!0),!0}get value(){const t=this.dep.track();return Hi(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Rp(e,t,n=!1){let o,a;return Ne(e)?o=e:(o=e.get,a=e.set),new Fp(o,a,n)}const Ka={},Ya=new WeakMap;let so;function Ip(e,t=!1,n=so){if(n){let o=Ya.get(n);o||Ya.set(n,o=[]),o.push(e)}}function Op(e,t,n=Xe){const{immediate:o,deep:a,once:r,scheduler:s,augmentJob:i,call:l}=n,c=S=>a?S:Ut(S)||a===!1||a===0?En(S,1):En(S);let u,d,h,k,F=!1,w=!1;if(rt(e)?(d=()=>e.value,F=Ut(e)):Mn(e)?(d=()=>c(e),F=!0):ke(e)?(w=!0,F=e.some(S=>Mn(S)||Ut(S)),d=()=>e.map(S=>{if(rt(S))return S.value;if(Mn(S))return c(S);if(Ne(S))return l?l(S,2):S()})):Ne(e)?t?d=l?()=>l(e,2):e:d=()=>{if(h){hn();try{h()}finally{mn()}}const S=so;so=u;try{return l?l(e,3,[k]):e(k)}finally{so=S}}:d=pn,t&&a){const S=d,b=a===!0?1/0:a;d=()=>En(S(),b)}const A=Ii(),N=()=>{u.stop(),A&&A.active&&Kr(A.effects,u)};if(r&&t){const S=t;t=(...b)=>{const $=S(...b);return N(),$}}let y=w?new Array(e.length).fill(Ka):Ka;const v=S=>{if(!(!(u.flags&1)||!u.dirty&&!S))if(t){const b=u.run();if(S||a||F||(w?b.some(($,E)=>gn($,y[E])):gn(b,y))){h&&h();const $=so;so=u;try{const E=[b,y===Ka?void 0:w&&y[0]===Ka?[]:y,k];y=b,l?l(t,3,E):t(...E)}finally{so=$}}}else u.run()};return i&&i(v),u=new Oi(d),u.scheduler=s?()=>s(v,!1):v,k=S=>Ip(S,!1,u),h=u.onStop=()=>{const S=Ya.get(u);if(S){if(l)l(S,4);else for(const b of S)b();Ya.delete(u)}},t?o?v(!0):y=u.run():s?s(v.bind(null,!0),!0):u.run(),N.pause=u.pause.bind(u),N.resume=u.resume.bind(u),N.stop=N,N}function En(e,t=1/0,n){if(t<=0||!qe(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,rt(e))En(e.value,t,n);else if(ke(e))for(let o=0;o{En(o,t,n)});else if(Ea(e)){for(const o in e)En(e[o],t,n);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&En(e[o],t,n)}return e}/**
+**/let yt;class Ri{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&yt&&(yt.active?(this.parent=yt,this.index=(yt.scopes||(yt.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes){const o=this.scopes.slice();for(t=0,n=o.length;t0&&--this._on===0){if(yt===this)yt=this.prevScope;else{let t=yt;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let n,o;for(n=0,o=this.effects.length;n0)return;if(qo){let t=qo;for(qo=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Vo;){let t=Vo;for(Vo=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(o){e||(e=o)}t=n}}if(e)throw e}function Gi(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ji(e){let t,n=e.depsTail,o=n;for(;o;){const a=o.prevDep;o.version===-1?(o===n&&(n=a),ts(o),up(o)):t=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0,o=a}e.deps=t,e.depsTail=n}function es(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Hi(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Hi(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Ko)||(e.globalVersion=Ko,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!es(e))))return;e.flags|=2;const t=e.dep,n=Qe,o=en;Qe=e,en=!0;try{Gi(e);const a=e.fn(e._value);(t.version===0||gn(a,e._value))&&(e.flags|=128,e._value=a,t.version++)}catch(a){throw t.version++,a}finally{Qe=n,en=o,ji(e),e.flags&=-3}}function ts(e,t=!1){const{dep:n,prevSub:o,nextSub:a}=e;if(o&&(o.nextSub=a,e.prevSub=void 0),a&&(a.prevSub=o,e.nextSub=void 0),n.subs===e&&(n.subs=o,!o&&n.computed)){n.computed.flags&=-5;for(let r=n.computed.deps;r;r=r.nextDep)ts(r,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function up(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let en=!0;const Bi=[];function hn(){Bi.push(en),en=!1}function mn(){const e=Bi.pop();en=e===void 0?!0:e}function Ui(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Qe;Qe=void 0;try{t()}finally{Qe=n}}}let Ko=0;class dp{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class ns{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!Qe||!en||Qe===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Qe)n=this.activeLink=new dp(Qe,this),Qe.deps?(n.prevDep=Qe.depsTail,Qe.depsTail.nextDep=n,Qe.depsTail=n):Qe.deps=Qe.depsTail=n,Wi(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const o=n.nextDep;o.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=o),n.prevDep=Qe.depsTail,n.nextDep=void 0,Qe.depsTail.nextDep=n,Qe.depsTail=n,Qe.deps===n&&(Qe.deps=o)}return n}trigger(t){this.version++,Ko++,this.notify(t)}notify(t){Xr();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Qr()}}}function Wi(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let o=t.deps;o;o=o.nextDep)Wi(o)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Ga=new WeakMap,ro=Symbol(""),os=Symbol(""),Yo=Symbol("");function Lt(e,t,n){if(en&&Qe){let o=Ga.get(e);o||Ga.set(e,o=new Map);let a=o.get(n);a||(o.set(n,a=new ns),a.map=o,a.key=n),a.track()}}function Tn(e,t,n,o,a,r){const s=Ga.get(e);if(!s){Ko++;return}const i=l=>{l&&l.trigger()};if(Xr(),t==="clear")s.forEach(i);else{const l=ke(e),c=l&&Na(n);if(l&&n==="length"){const u=Number(o);s.forEach((d,h)=>{(h==="length"||h===Yo||!Kt(h)&&h>=u)&&i(d)})}else switch((n!==void 0||s.has(void 0))&&i(s.get(n)),c&&i(s.get(Yo)),t){case"add":l?c&&i(s.get("length")):(i(s.get(ro)),Hn(e)&&i(s.get(os)));break;case"delete":l||(i(s.get(ro)),Hn(e)&&i(s.get(os)));break;case"set":Hn(e)&&i(s.get(ro));break}}Qr()}function pp(e,t){const n=Ga.get(e);return n&&n.get(t)}function ko(e){const t=He(e);return t===e?t:(Lt(t,"iterate",Yo),Ut(e)?t:t.map(tn))}function ja(e){return Lt(e=He(e),"iterate",Yo),e}function fn(e,t){return An(e)?So(Mn(e)?tn(t):t):tn(t)}const gp={__proto__:null,[Symbol.iterator](){return as(this,Symbol.iterator,e=>fn(this,e))},concat(...e){return ko(this).concat(...e.map(t=>ke(t)?ko(t):t))},entries(){return as(this,"entries",e=>(e[1]=fn(this,e[1]),e))},every(e,t){return Ln(this,"every",e,t,void 0,arguments)},filter(e,t){return Ln(this,"filter",e,t,n=>n.map(o=>fn(this,o)),arguments)},find(e,t){return Ln(this,"find",e,t,n=>fn(this,n),arguments)},findIndex(e,t){return Ln(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Ln(this,"findLast",e,t,n=>fn(this,n),arguments)},findLastIndex(e,t){return Ln(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Ln(this,"forEach",e,t,void 0,arguments)},includes(...e){return rs(this,"includes",e)},indexOf(...e){return rs(this,"indexOf",e)},join(e){return ko(this).join(e)},lastIndexOf(...e){return rs(this,"lastIndexOf",e)},map(e,t){return Ln(this,"map",e,t,void 0,arguments)},pop(){return Zo(this,"pop")},push(...e){return Zo(this,"push",e)},reduce(e,...t){return Vi(this,"reduce",e,t)},reduceRight(e,...t){return Vi(this,"reduceRight",e,t)},shift(){return Zo(this,"shift")},some(e,t){return Ln(this,"some",e,t,void 0,arguments)},splice(...e){return Zo(this,"splice",e)},toReversed(){return ko(this).toReversed()},toSorted(e){return ko(this).toSorted(e)},toSpliced(...e){return ko(this).toSpliced(...e)},unshift(...e){return Zo(this,"unshift",e)},values(){return as(this,"values",e=>fn(this,e))}};function as(e,t,n){const o=ja(e),a=o[t]();return o!==e&&!Ut(e)&&(a._next=a.next,a.next=()=>{const r=a._next();return r.done||(r.value=n(r.value)),r}),a}const hp=Array.prototype;function Ln(e,t,n,o,a,r){const s=ja(e),i=s!==e&&!Ut(e),l=s[t];if(l!==hp[t]){const d=l.apply(e,r);return i?tn(d):d}let c=n;s!==e&&(i?c=function(d,h){return n.call(this,fn(e,d),h,e)}:n.length>2&&(c=function(d,h){return n.call(this,d,h,e)}));const u=l.call(s,c,o);return i&&a?a(u):u}function Vi(e,t,n,o){const a=ja(e),r=a!==e&&!Ut(e);let s=n,i=!1;a!==e&&(r?(i=o.length===0,s=function(c,u,d){return i&&(i=!1,c=fn(e,c)),n.call(this,c,fn(e,u),d,e)}):n.length>3&&(s=function(c,u,d){return n.call(this,c,u,d,e)}));const l=a[t](s,...o);return i?fn(e,l):l}function rs(e,t,n){const o=He(e);Lt(o,"iterate",Yo);const a=o[t](...n);return(a===-1||a===!1)&&Va(n[0])?(n[0]=He(n[0]),o[t](...n)):a}function Zo(e,t,n=[]){hn(),Xr();const o=He(e)[t].apply(e,n);return Qr(),mn(),o}const mp=qr("__proto__,__v_isRef,__isVue"),qi=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Kt));function fp(e){Kt(e)||(e=String(e));const t=He(this);return Lt(t,"has",e),t.hasOwnProperty(e)}class Ki{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,o){if(n==="__v_skip")return t.__v_skip;const a=this._isReadonly,r=this._isShallow;if(n==="__v_isReactive")return!a;if(n==="__v_isReadonly")return a;if(n==="__v_isShallow")return r;if(n==="__v_raw")return o===(a?r?el:Qi:r?Xi:Ji).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const s=ke(t);if(!a){let l;if(s&&(l=gp[n]))return l;if(n==="hasOwnProperty")return fp}const i=Reflect.get(t,n,rt(t)?t:o);if((Kt(n)?qi.has(n):mp(n))||(a||Lt(t,"get",n),r))return i;if(rt(i)){const l=s&&Na(n)?i:i.value;return a&&qe(l)?is(l):l}return qe(i)?a?is(i):Jo(i):i}}class Yi extends Ki{constructor(t=!1){super(!1,t)}set(t,n,o,a){let r=t[n];const s=ke(t)&&Na(n);if(!this._isShallow){const c=An(r);if(!Ut(o)&&!An(o)&&(r=He(r),o=He(o)),!s&&rt(r)&&!rt(o))return c||(r.value=o),!0}const i=s?Number(n)e,Ha=e=>Reflect.getPrototypeOf(e);function _p(e,t,n){return function(...o){const a=this.__v_raw,r=He(a),s=Hn(r),i=e==="entries"||e===Symbol.iterator&&s,l=e==="keys"&&s,c=a[e](...o),u=n?ss:t?So:tn;return!t&&Lt(r,"iterate",l?os:ro),ht(Object.create(c),{next(){const{value:d,done:h}=c.next();return h?{value:d,done:h}:{value:i?[u(d[0]),u(d[1])]:u(d),done:h}}})}}function Ba(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function wp(e,t){const n={get(a){const r=this.__v_raw,s=He(r),i=He(a);e||(gn(a,i)&&Lt(s,"get",a),Lt(s,"get",i));const{has:l}=Ha(s),c=t?ss:e?So:tn;if(l.call(s,a))return c(r.get(a));if(l.call(s,i))return c(r.get(i));r!==s&&r.get(a)},get size(){const a=this.__v_raw;return!e&&Lt(He(a),"iterate",ro),a.size},has(a){const r=this.__v_raw,s=He(r),i=He(a);return e||(gn(a,i)&&Lt(s,"has",a),Lt(s,"has",i)),a===i?r.has(a):r.has(a)||r.has(i)},forEach(a,r){const s=this,i=s.__v_raw,l=He(i),c=t?ss:e?So:tn;return!e&&Lt(l,"iterate",ro),i.forEach((u,d)=>a.call(r,c(u),c(d),s))}};return ht(n,e?{add:Ba("add"),set:Ba("set"),delete:Ba("delete"),clear:Ba("clear")}:{add(a){const r=He(this),s=Ha(r),i=He(a),l=!t&&!Ut(a)&&!An(a)?i:a;return s.has.call(r,l)||gn(a,l)&&s.has.call(r,a)||gn(i,l)&&s.has.call(r,i)||(r.add(l),Tn(r,"add",l,l)),this},set(a,r){!t&&!Ut(r)&&!An(r)&&(r=He(r));const s=He(this),{has:i,get:l}=Ha(s);let c=i.call(s,a);c||(a=He(a),c=i.call(s,a));const u=l.call(s,a);return s.set(a,r),c?gn(r,u)&&Tn(s,"set",a,r):Tn(s,"add",a,r),this},delete(a){const r=He(this),{has:s,get:i}=Ha(r);let l=s.call(r,a);l||(a=He(a),l=s.call(r,a)),i&&i.call(r,a);const c=r.delete(a);return l&&Tn(r,"delete",a,void 0),c},clear(){const a=He(this),r=a.size!==0,s=a.clear();return r&&Tn(a,"clear",void 0,void 0),s}}),["keys","values","entries",Symbol.iterator].forEach(a=>{n[a]=_p(a,e,t)}),n}function Ua(e,t){const n=wp(e,t);return(o,a,r)=>a==="__v_isReactive"?!e:a==="__v_isReadonly"?e:a==="__v_raw"?o:Reflect.get(We(n,a)&&a in o?n:o,a,r)}const kp={get:Ua(!1,!1)},Sp={get:Ua(!1,!0)},Pp={get:Ua(!0,!1)},Cp={get:Ua(!0,!0)},Ji=new WeakMap,Xi=new WeakMap,Qi=new WeakMap,el=new WeakMap;function xp(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Jo(e){return An(e)?e:Wa(e,!1,bp,kp,Ji)}function Tp(e){return Wa(e,!1,yp,Sp,Xi)}function is(e){return Wa(e,!0,$p,Pp,Qi)}function r1(e){return Wa(e,!0,vp,Cp,el)}function Wa(e,t,n,o,a){if(!qe(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const r=a.get(e);if(r)return r;const s=xp(Qd(e));if(s===0)return e;const i=new Proxy(e,s===2?o:n);return a.set(e,i),i}function Mn(e){return An(e)?Mn(e.__v_raw):!!(e&&e.__v_isReactive)}function An(e){return!!(e&&e.__v_isReadonly)}function Ut(e){return!!(e&&e.__v_isShallow)}function Va(e){return e?!!e.__v_raw:!1}function He(e){const t=e&&e.__v_raw;return t?He(t):e}function Xo(e){return!We(e,"__v_skip")&&Object.isExtensible(e)&&Ti(e,"__v_skip",!0),e}const tn=e=>qe(e)?Jo(e):e,So=e=>qe(e)?is(e):e;function rt(e){return e?e.__v_isRef===!0:!1}function Ce(e){return tl(e,!1)}function qa(e){return tl(e,!0)}function tl(e,t){return rt(e)?e:new Lp(e,t)}class Lp{constructor(t,n){this.dep=new ns,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:He(t),this._value=n?t:tn(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,o=this.__v_isShallow||Ut(t)||An(t);t=o?t:He(t),gn(t,n)&&(this._rawValue=t,this._value=o?t:tn(t),this.dep.trigger())}}function Ie(e){return rt(e)?e.value:e}const Mp={get:(e,t,n)=>t==="__v_raw"?e:Ie(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const a=e[t];return rt(a)&&!rt(n)?(a.value=n,!0):Reflect.set(e,t,n,o)}};function nl(e){return Mn(e)?e:new Proxy(e,Mp)}function Ap(e){const t=ke(e)?new Array(e.length):{};for(const n in e)t[n]=Np(e,n);return t}class Ep{constructor(t,n,o){this._object=t,this._defaultValue=o,this.__v_isRef=!0,this._value=void 0,this._key=Kt(n)?n:String(n),this._raw=He(t);let a=!0,r=t;if(!ke(t)||Kt(this._key)||!Na(this._key))do a=!Va(r)||Ut(r);while(a&&(r=r.__v_raw));this._shallow=a}get value(){let t=this._object[this._key];return this._shallow&&(t=Ie(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&rt(this._raw[this._key])){const n=this._object[this._key];if(rt(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return pp(this._raw,this._key)}}function Np(e,t,n){return new Ep(e,t,n)}class Fp{constructor(t,n,o){this.fn=t,this.setter=n,this._value=void 0,this.dep=new ns(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Ko-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=o}notify(){if(this.flags|=16,!(this.flags&8)&&Qe!==this)return Di(this,!0),!0}get value(){const t=this.dep.track();return Hi(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Rp(e,t,n=!1){let o,a;return Ne(e)?o=e:(o=e.get,a=e.set),new Fp(o,a,n)}const Ka={},Ya=new WeakMap;let so;function Ip(e,t=!1,n=so){if(n){let o=Ya.get(n);o||Ya.set(n,o=[]),o.push(e)}}function Op(e,t,n=Xe){const{immediate:o,deep:a,once:r,scheduler:s,augmentJob:i,call:l}=n,c=S=>a?S:Ut(S)||a===!1||a===0?En(S,1):En(S);let u,d,h,k,F=!1,w=!1;if(rt(e)?(d=()=>e.value,F=Ut(e)):Mn(e)?(d=()=>c(e),F=!0):ke(e)?(w=!0,F=e.some(S=>Mn(S)||Ut(S)),d=()=>e.map(S=>{if(rt(S))return S.value;if(Mn(S))return c(S);if(Ne(S))return l?l(S,2):S()})):Ne(e)?t?d=l?()=>l(e,2):e:d=()=>{if(h){hn();try{h()}finally{mn()}}const S=so;so=u;try{return l?l(e,3,[k]):e(k)}finally{so=S}}:d=pn,t&&a){const S=d,b=a===!0?1/0:a;d=()=>En(S(),b)}const A=Ii(),N=()=>{u.stop(),A&&A.active&&Kr(A.effects,u)};if(r&&t){const S=t;t=(...b)=>{const $=S(...b);return N(),$}}let y=w?new Array(e.length).fill(Ka):Ka;const v=S=>{if(!(!(u.flags&1)||!u.dirty&&!S))if(t){const b=u.run();if(S||a||F||(w?b.some(($,E)=>gn($,y[E])):gn(b,y))){h&&h();const $=so;so=u;try{const E=[b,y===Ka?void 0:w&&y[0]===Ka?[]:y,k];y=b,l?l(t,3,E):t(...E)}finally{so=$}}}else u.run()};return i&&i(v),u=new Oi(d),u.scheduler=s?()=>s(v,!1):v,k=S=>Ip(S,!1,u),h=u.onStop=()=>{const S=Ya.get(u);if(S){if(l)l(S,4);else for(const b of S)b();Ya.delete(u)}},t?o?v(!0):y=u.run():s?s(v.bind(null,!0),!0):u.run(),N.pause=u.pause.bind(u),N.resume=u.resume.bind(u),N.stop=N,N}function En(e,t=1/0,n){if(t<=0||!qe(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,rt(e))En(e.value,t,n);else if(ke(e))for(let o=0;o{En(o,t,n)});else if(Ea(e)){for(const o in e)En(e[o],t,n);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&En(e[o],t,n)}return e}/**
* @vue/runtime-core v3.5.42
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
-**/const Qo=[];let ls=!1;function a1(e,...t){if(ls)return;ls=!0,hn();const n=Qo.length?Qo[Qo.length-1].component:null,o=n&&n.appContext.config.warnHandler,a=zp();if(o)Po(o,n,11,[e+t.map(r=>{var s,i;return(i=(s=r.toString)==null?void 0:s.call(r))!=null?i:JSON.stringify(r)}).join(""),n&&n.proxy,a.map(({vnode:r})=>`at <${ec(n,r.type)}>`).join(`
+**/const Qo=[];let ls=!1;function s1(e,...t){if(ls)return;ls=!0,hn();const n=Qo.length?Qo[Qo.length-1].component:null,o=n&&n.appContext.config.warnHandler,a=zp();if(o)Po(o,n,11,[e+t.map(r=>{var s,i;return(i=(s=r.toString)==null?void 0:s.call(r))!=null?i:JSON.stringify(r)}).join(""),n&&n.proxy,a.map(({vnode:r})=>`at <${ec(n,r.type)}>`).join(`
`),a]);else{const r=[`[Vue warn]: ${e}`,...t];a.length&&r.push(`
`,...Dp(a)),console.warn(...r)}mn(),ls=!1}function zp(){let e=Qo[Qo.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const o=e.component&&e.component.parent;e=o&&o.vnode}return t}function Dp(e){const t=[];return e.forEach((n,o)=>{t.push(...o===0?[]:[`
-`],...Gp(n))}),t}function Gp({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",o=e.component?e.component.parent==null:!1,a=` at <${ec(e.component,e.type,o)}`,r=">"+n;return e.props?[a,...jp(e.props),r]:[a+r]}function jp(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(o=>{t.push(...ol(o,e[o]))}),n.length>3&&t.push(" ..."),t}function ol(e,t,n){return nt(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:rt(t)?(t=ol(e,He(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):Ne(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=He(t),n?t:[`${e}=`,t])}function Po(e,t,n,o){try{return o?e(...o):e()}catch(a){ea(a,t,n)}}function nn(e,t,n,o){if(Ne(e)){const a=Po(e,t,n,o);return a&&Ci(a)&&a.catch(r=>{ea(r,t,n)}),a}if(ke(e)){const a=[];for(let r=0;r>>1,a=Rt[o],r=ta(a);r=ta(n)?Rt.push(e):Rt.splice(Bp(t),0,e),e.flags|=1,rl()}}function rl(){Za||(Za=al.then(ll))}function Up(e){if(!ke(e))Un&&e.id===-1?Un.splice(xo+1,0,e):e.flags&1||(Co.push(e),e.flags|=1);else for(let t=0;tta(n)-ta(o));if(Co.length=0,Un){for(let n=0;ne.id==null?e.flags&2?-1:1/0:e.id;function ll(e){try{for(bn=0;bn{o._d&&sr(-1);const r=Ja(t),s=uo.length;let i;try{i=e(...a)}finally{for(let l=uo.length;l>s;l--)Vl();Ja(r),o._d&&sr(1)}return i};return o._n=!0,o._c=!0,o._d=!0,o}function na(e,t){if(Vt===null)return e;const n=dr(Vt),o=e.dirs||(e.dirs=[]);for(let a=0;a1)return n&&Ne(t)?t.call(o&&o.proxy):t}}function Vp(){return!!(vn()||lo)}const qp=Symbol.for("v-scx"),Kp=()=>bt(qp);function ul(e,t){return us(e,null,t)}function $t(e,t,n){return us(e,t,n)}function us(e,t,n=Xe){const{immediate:o,deep:a,flush:r,once:s}=n,i=ht({},n),l=t&&o||!t&&r!=="post";let c;if(Ao){if(r==="sync"){const k=Kp();c=k.__watcherHandles||(k.__watcherHandles=[])}else if(!l){const k=()=>{};return k.stop=pn,k.resume=pn,k.pause=pn,k}}const u=Pt;i.call=(k,F,w)=>nn(k,u,F,w);let d=!1;r==="post"?i.scheduler=k=>{jt(k,u&&u.suspense)}:r!=="sync"&&(d=!0,i.scheduler=(k,F)=>{F?k():cs(k)}),i.augmentJob=k=>{t&&(k.flags|=4),d&&(k.flags|=2,u&&(k.id=u.uid,k.i=u))};const h=Op(e,t,i);return Ao&&(c?c.push(h):l&&h()),h}function Yp(e,t,n){const o=this.proxy,a=nt(e)?e.includes(".")?dl(o,e):()=>o[e]:e.bind(o,o);let r;Ne(t)?r=t:(r=t.handler,n=t);const s=da(this),i=us(a,r.bind(o),n);return s(),i}function dl(e,t){const n=t.split(".");return()=>{let o=e;for(let a=0;ae.__isTeleport,ds=Symbol("_leaveCb");function Jp(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==Fn){t=n;break}}return t}function pl(e){if(!tr(e))return Xa(e.type)&&e.children?Jp(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&Ne(n.default))return n.default()}}function ps(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;const n=e.component.subTree;ps(Xa(n.type)&&pl(n)||n,t)}else e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Wn(e,t){return Ne(e)?ht({name:e.name},t,{setup:e}):e}function gs(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function gl(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const Qa=new WeakMap;function oa(e,t,n,o,a=!1){if(ke(e)){e.forEach((w,A)=>oa(w,t&&(ke(t)?t[A]:t),n,o,a));return}if(aa(o)&&!a){o.shapeFlag&512&&o.type.__asyncResolved&&o.component.subTree.component&&oa(e,t,n,o.component.subTree);return}const r=o.shapeFlag&4?dr(o.component):o.el,s=a?null:r,{i,r:l}=e,c=t&&t.r,u=i.refs===Xe?i.refs={}:i.refs,d=i.setupState,h=He(d),k=d===Xe?Si:w=>gl(u,w)?!1:We(h,w),F=(w,A)=>!(A&&gl(u,A));if(c!=null&&c!==l){if(hl(t),nt(c))u[c]=null,k(c)&&(d[c]=null);else if(rt(c)){const w=t;F(c,w.k)&&(c.value=null),w.k&&(u[w.k]=null)}}if(Ne(l))Po(l,i,12,[s,u]);else{const w=nt(l),A=rt(l);if(w||A){const N=()=>{if(e.f){const y=w?k(l)?d[l]:u[l]:F()||!e.k?l.value:u[e.k];if(a)ke(y)&&Kr(y,r);else if(ke(y))y.includes(r)||y.push(r);else if(w)u[l]=[r],k(l)&&(d[l]=u[l]);else{const v=[r];F(l,e.k)&&(l.value=v),e.k&&(u[e.k]=v)}}else w?(u[l]=s,k(l)&&(d[l]=s)):A&&(F(l,e.k)&&(l.value=s),e.k&&(u[e.k]=s))};if(s){const y=()=>{N(),Qa.delete(e)};y.id=-1,Qa.set(e,y),jt(y,n)}else hl(e),N()}}}function hl(e){const t=Qa.get(e);t&&(t.flags|=8,Qa.delete(e))}const ml=e=>e.nodeType===8;za().requestIdleCallback,za().cancelIdleCallback;function Xp(e,t){if(ml(e)&&e.data==="["){let n=1,o=e.nextSibling;for(;o;){if(o.nodeType===1){if(t(o)===!1)break}else if(ml(o))if(o.data==="]"){if(--n===0)break}else o.data==="["&&n++;o=o.nextSibling}}else t(e)}const aa=e=>!!e.type.__asyncLoader;function Qp(e){Ne(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:o,delay:a=200,hydrate:r,timeout:s,suspensible:i=!0,onError:l}=e;let c=null,u,d=0;const h=()=>(d++,c=null,k()),k=()=>{let F;return c||(F=c=t().catch(w=>{if(w=w instanceof Error?w:new Error(String(w)),l)return new Promise((A,N)=>{l(w,()=>A(h()),()=>N(w),d+1)});throw w}).then(w=>F!==c&&c?c:(w&&(w.__esModule||w[Symbol.toStringTag]==="Module")&&(w=w.default),u=w,w)))};return Wn({name:"AsyncComponentWrapper",__asyncLoader:k,__asyncHydrate(F,w,A){const N=F.isConnected;let y=!1;(w.bu||(w.bu=[])).push(()=>y=!0);const v=()=>{y||!F.parentNode||N&&!F.isConnected||A()},S=r?()=>{const b=r(v,$=>Xp(F,$));b&&(w.bum||(w.bum=[])).push(b)}:v;u?S():k().then(()=>!w.isUnmounted&&S())},get __asyncResolved(){return u},setup(){const F=Pt;if(gs(F),u)return()=>er(u,F);const w=b=>{c=null,ea(b,F,13,!o)};if(i&&F.suspense||Ao)return k().then(b=>()=>er(b,F)).catch(b=>(w(b),()=>o?wt(o,{error:b}):null));const A=Ce(!1),N=Ce(),y=Ce(!!a);let v,S;return or(()=>{v!=null&&clearTimeout(v),S!=null&&clearTimeout(S)}),a&&(S=setTimeout(()=>{F.isUnmounted||(y.value=!1)},a)),s!=null&&(v=setTimeout(()=>{if(!F.isUnmounted&&!A.value&&!N.value){const b=new Error(`Async component timed out after ${s}ms.`);w(b),N.value=b}},s)),k().then(()=>{F.isUnmounted||(A.value=!0,F.parent&&tr(F.parent.vnode)&&F.parent.update())}).catch(b=>{if(F.isUnmounted){c=null;return}w(b),N.value=b}),()=>{if(A.value&&u)return er(u,F);if(N.value&&o)return wt(o,{error:N.value});if(n&&!y.value)return er(n,F)}}})}function er(e,t){const{ref:n,props:o,children:a,ce:r}=t.vnode,s=wt(e,o,a);return s.ref=n,s.ce=r,delete t.vnode.ce,s}const tr=e=>e.type.__isKeepAlive;function eg(e,t){fl(e,"a",t)}function tg(e,t){fl(e,"da",t)}function fl(e,t,n=Pt){const o=e.__wdc||(e.__wdc=()=>{let a=n;for(;a;){if(a.isDeactivated)return;a=a.parent}return e()});if(nr(t,o,n),n){let a=n.parent;for(;a&&a.parent;)tr(a.parent.vnode)&&ng(o,t,n,a),a=a.parent}}function ng(e,t,n,o){const a=nr(t,e,o,!0);or(()=>{Kr(o[t],a)},n)}function nr(e,t,n=Pt,o=!1){if(n){const a=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...s)=>{hn();const i=da(n),l=nn(t,n,e,s);return i(),mn(),l});return o?a.unshift(r):a.push(r),r}}const Nn=e=>(t,n=Pt)=>{(!Ao||e==="sp")&&nr(e,(...o)=>t(...o),n)},bl=Nn("bm"),To=Nn("m"),og=Nn("bu"),ag=Nn("u"),Lo=Nn("bum"),or=Nn("um"),rg=Nn("sp"),sg=Nn("rtg"),ig=Nn("rtc");function lg(e,t=Pt){nr("ec",e,t)}const cg="components",$l=Symbol.for("v-ndc");function yl(e){return nt(e)?ug(cg,e,!1)||e:e||$l}function ug(e,t,n=!0,o=!1){const a=Vt||Pt;if(a){const r=a.type;{const i=Ql(r,!1);if(i&&(i===t||i===_t(t)||i===Ra(_t(t))))return r}const s=vl(a[e]||r[e],t)||vl(a.appContext[e],t);return!s&&o?r:s}}function vl(e,t){return e&&(e[t]||e[_t(t)]||e[Ra(_t(t))])}function an(e,t,n,o){let a;const r=n,s=ke(e);if(s||nt(e)){const i=s&&Mn(e);let l=!1,c=!1;i&&(l=!Ut(e),c=An(e),e=ja(e)),a=new Array(e.length);for(let u=0,d=e.length;ut(i,l,void 0,r));else{const i=Object.keys(e);a=new Array(i.length);for(let l=0,c=i.length;le?Zl(e)?dr(e):hs(e.parent):null,ra=ht(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>hs(e.parent),$root:e=>hs(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Sl(e),$forceUpdate:e=>e.f||(e.f=()=>{cs(e.update)}),$nextTick:e=>e.n||(e.n=Wt.bind(e.proxy)),$watch:e=>Yp.bind(e)}),ms=(e,t)=>e!==Xe&&!e.__isScriptSetup&&We(e,t),dg={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:o,data:a,props:r,accessCache:s,type:i,appContext:l}=e;if(t[0]!=="$"){const h=s[t];if(h!==void 0)switch(h){case 1:return o[t];case 2:return a[t];case 4:return n[t];case 3:return r[t]}else{if(ms(o,t))return s[t]=1,o[t];if(a!==Xe&&We(a,t))return s[t]=2,a[t];if(We(r,t))return s[t]=3,r[t];if(n!==Xe&&We(n,t))return s[t]=4,n[t];fs&&(s[t]=0)}}const c=ra[t];let u,d;if(c)return t==="$attrs"&&Lt(e.attrs,"get",""),c(e);if((u=i.__cssModules)&&(u=u[t]))return u;if(n!==Xe&&We(n,t))return s[t]=4,n[t];if(d=l.config.globalProperties,We(d,t))return d[t]},set({_:e},t,n){const{data:o,setupState:a,ctx:r}=e;return ms(a,t)?(a[t]=n,!0):o!==Xe&&We(o,t)?(o[t]=n,!0):We(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:a,props:r,type:s}},i){let l;return!!(n[i]||e!==Xe&&i[0]!=="$"&&We(e,i)||ms(t,i)||We(r,i)||We(o,i)||We(ra,i)||We(a.config.globalProperties,i)||(l=s.__cssModules)&&l[i])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:We(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function _l(e){return ke(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let fs=!0;function pg(e){const t=Sl(e),n=e.proxy,o=e.ctx;fs=!1,t.beforeCreate&&wl(t.beforeCreate,e,"bc");const{data:a,computed:r,methods:s,watch:i,provide:l,inject:c,created:u,beforeMount:d,mounted:h,beforeUpdate:k,updated:F,activated:w,deactivated:A,beforeDestroy:N,beforeUnmount:y,destroyed:v,unmounted:S,render:b,renderTracked:$,renderTriggered:E,errorCaptured:L,serverPrefetch:M,expose:V,inheritAttrs:ae,components:ee,directives:C,filters:Z}=t;if(c&&gg(c,o,null),s)for(const de in s){const x=s[de];Ne(x)&&(o[de]=x.bind(n))}if(a){const de=a.call(n,n);qe(de)&&(e.data=Jo(de))}if(fs=!0,r)for(const de in r){const x=r[de],_=Ne(x)?x.bind(n,n):Ne(x.get)?x.get.bind(n,n):pn,H=!Ne(x)&&Ne(x.set)?x.set.bind(n):pn,R=_e({get:_,set:H});Object.defineProperty(o,de,{enumerable:!0,configurable:!0,get:()=>R.value,set:X=>R.value=X})}if(i)for(const de in i)kl(i[de],o,n,de);if(l){const de=Ne(l)?l.call(n):l;Reflect.ownKeys(de).forEach(x=>{on(x,de[x])})}u&&wl(u,e,"c");function te(de,x){ke(x)?x.forEach(_=>de(_.bind(n))):x&&de(x.bind(n))}if(te(bl,d),te(To,h),te(og,k),te(ag,F),te(eg,w),te(tg,A),te(lg,L),te(ig,$),te(sg,E),te(Lo,y),te(or,S),te(rg,M),ke(V))if(V.length){const de=e.exposed||(e.exposed={});V.forEach(x=>{Object.defineProperty(de,x,{get:()=>n[x],set:_=>n[x]=_,enumerable:!0})})}else e.exposed||(e.exposed={});b&&e.render===pn&&(e.render=b),ae!=null&&(e.inheritAttrs=ae),ee&&(e.components=ee),C&&(e.directives=C),M&&gs(e)}function gg(e,t,n=pn){ke(e)&&(e=bs(e));for(const o in e){const a=e[o];let r;qe(a)?"default"in a?r=bt(a.from||o,a.default,!0):r=bt(a.from||o):r=bt(a),rt(r)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>r.value,set:s=>r.value=s}):t[o]=r}}function wl(e,t,n){nn(ke(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function kl(e,t,n,o){let a=o.includes(".")?dl(n,o):()=>n[o];if(nt(e)){const r=t[e];Ne(r)&&$t(a,r)}else if(Ne(e))$t(a,e.bind(n));else if(qe(e))if(ke(e))e.forEach(r=>kl(r,t,n,o));else{const r=Ne(e.handler)?e.handler.bind(n):t[e.handler];Ne(r)&&$t(a,r,e)}}function Sl(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:a,optionsCache:r,config:{optionMergeStrategies:s}}=e.appContext,i=r.get(t);let l;return i?l=i:!a.length&&!n&&!o?l=t:(l={},a.length&&a.forEach(c=>ar(l,c,s,!0)),ar(l,t,s)),qe(t)&&r.set(t,l),l}function ar(e,t,n,o=!1){const{mixins:a,extends:r}=t;r&&ar(e,r,n,!0),a&&a.forEach(s=>ar(e,s,n,!0));for(const s in t)if(!(o&&s==="expose")){const i=hg[s]||n&&n[s];e[s]=i?i(e[s],t[s]):t[s]}return e}const hg={data:Pl,props:Cl,emits:Cl,methods:sa,computed:sa,beforeCreate:It,created:It,beforeMount:It,mounted:It,beforeUpdate:It,updated:It,beforeDestroy:It,beforeUnmount:It,destroyed:It,unmounted:It,activated:It,deactivated:It,errorCaptured:It,serverPrefetch:It,components:sa,directives:sa,watch:fg,provide:Pl,inject:mg};function Pl(e,t){return t?e?function(){return ht(Ne(e)?e.call(this,this):e,Ne(t)?t.call(this,this):t)}:t:e}function mg(e,t){return sa(bs(e),bs(t))}function bs(e){if(ke(e)){const t={};for(let n=0;nt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${_t(t)}Modifiers`]||e[`${Yt(t)}Modifiers`];function vg(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||Xe;let a=n;const r=t.startsWith("update:"),s=r&&yg(o,t.slice(7));s&&(s.trim&&(a=n.map(u=>nt(u)?u.trim():u)),s.number&&(a=a.map(Oa)));let i,l=o[i=Yr(t)]||o[i=Yr(_t(t))];!l&&r&&(l=o[i=Yr(Yt(t))]),l&&nn(l,e,6,a);const c=o[i+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[i])return;e.emitted[i]=!0,nn(c,e,6,a)}}const _g=new WeakMap;function Tl(e,t,n=!1){const o=n?_g:t.emitsCache,a=o.get(e);if(a!==void 0)return a;const r=e.emits;let s={},i=!1;if(!Ne(e)){const l=c=>{const u=Tl(c,t,!0);u&&(i=!0,ht(s,u))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!r&&!i?(qe(e)&&o.set(e,null),null):(ke(r)?r.forEach(l=>s[l]=null):ht(s,r),qe(e)&&o.set(e,s),s)}function rr(e,t){return!e||!Ma(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),We(e,t[0].toLowerCase()+t.slice(1))||We(e,Yt(t))||We(e,t))}function r1(){}function Ll(e){const{type:t,vnode:n,proxy:o,withProxy:a,propsOptions:[r],slots:s,attrs:i,emit:l,render:c,renderCache:u,props:d,data:h,setupState:k,ctx:F,inheritAttrs:w}=e,A=Ja(e);let N,y;try{if(n.shapeFlag&4){const S=a||o,b=S;N=$n(c.call(b,S,u,d,k,h,F)),y=i}else{const S=t;N=$n(S.length>1?S(d,{attrs:i,slots:s,emit:l}):S(d,null)),y=t.props?i:wg(i)}}catch(S){uo.length=0,ea(S,e,1),N=wt(Fn)}let v=N;if(y&&w!==!1){const S=Object.keys(y),{shapeFlag:b}=v;S.length&&b&7&&(r&&S.some(Aa)&&(y=kg(y,r)),v=Mo(v,y,!1,!0))}if(n.dirs&&(v=Mo(v,null,!1,!0),v.dirs=v.dirs?v.dirs.concat(n.dirs):n.dirs),n.transition){const S=Xa(v.type)&&pl(v)||v;ps(S,n.transition)}return N=v,Ja(A),N}const wg=e=>{let t;for(const n in e)(n==="class"||n==="style"||Ma(n))&&((t||(t={}))[n]=e[n]);return t},kg=(e,t)=>{const n={};for(const o in e)(!Aa(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function Sg(e,t,n){const{props:o,children:a,component:r}=e,{props:s,children:i,patchFlag:l}=t,c=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return o?Ml(o,s,c):!!s;if(l&8){const u=t.dynamicProps;for(let d=0;dObject.create(El),Fl=e=>Object.getPrototypeOf(e)===El;function Cg(e,t,n,o=!1){const a={},r=Nl();e.propsDefaults=Object.create(null),Rl(e,t,a,r);for(const s in e.propsOptions[0])s in a||(a[s]=void 0);n?e.props=o?a:Tp(a):e.type.props?e.props=a:e.props=r,e.attrs=r}function xg(e,t,n,o){const{props:a,attrs:r,vnode:{patchFlag:s}}=e,i=He(a),[l]=e.propsOptions;let c=!1;if((o||s>0)&&!(s&16)){if(s&8){const u=e.vnode.dynamicProps;for(let d=0;d{l=!0;const[h,k]=Il(d,t,!0);ht(s,h),k&&i.push(...k)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!r&&!l)return qe(e)&&o.set(e,wo),wo;if(ke(r))for(let u=0;ue==="_"||e==="_ctx"||e==="$stable",vs=e=>ke(e)?e.map($n):[$n(e)],Lg=(e,t,n)=>{if(t._n)return t;const o=Wp((...a)=>vs(t(...a)),n);return o._c=!1,o},zl=(e,t,n)=>{const o=e._ctx;for(const a in e){if(ys(a))continue;const r=e[a];if(Ne(r))t[a]=Lg(a,r,o);else if(r!=null){const s=vs(r);t[a]=()=>s}}},Dl=(e,t)=>{const n=vs(t);e.slots.default=()=>n},Gl=(e,t,n)=>{for(const o in t)(n||!ys(o))&&(e[o]=t[o])},Mg=(e,t,n)=>{const o=e.slots=Nl();if(e.vnode.shapeFlag&32){const a=t._;a?(Gl(o,t,n),n&&Ti(o,"_",a,!0)):zl(t,o)}else t&&Dl(e,t)},Ag=(e,t,n)=>{const{vnode:o,slots:a}=e;let r=!0,s=Xe;if(o.shapeFlag&32){const i=t._;i?n&&i===1?r=!1:Gl(a,t,n):(r=!t.$stable,zl(t,a)),s=t}else t&&(Dl(e,t),s={default:1});if(r)for(const i in a)!ys(i)&&s[i]==null&&delete a[i]},jt=Ig;function Eg(e){return Ng(e)}function Ng(e,t){const n=za();n.__VUE__=!0;const{insert:o,remove:a,patchProp:r,createElement:s,createText:i,createComment:l,setText:c,setElementText:u,parentNode:d,nextSibling:h,setScopeId:k=pn,insertStaticContent:F}=e,w=(f,T,P,G=null,J=null,Y=null,se=void 0,re=null,p=!!T.dynamicChildren)=>{if(f===T)return;f&&!ca(f,T)&&(G=Pe(f),X(f,J,Y,!0),f=null),T.patchFlag===-2&&(p=!1,T.dynamicChildren=null);const{type:g,ref:O,shapeFlag:j}=T;switch(g){case ia:A(f,T,P,G);break;case Fn:N(f,T,P,G);break;case ws:f==null&&y(T,P,G,se);break;case Ye:ee(f,T,P,G,J,Y,se,re,p);break;default:j&1?b(f,T,P,G,J,Y,se,re,p):j&6?C(f,T,P,G,J,Y,se,re,p):(j&64||j&128)&&g.process(f,T,P,G,J,Y,se,re,p,xe)}O!=null&&J?oa(O,f&&f.ref,Y,T||f,!T):O==null&&f&&f.ref!=null&&oa(f.ref,null,Y,f,!0)},A=(f,T,P,G)=>{if(f==null)o(T.el=i(T.children),P,G);else{const J=T.el=f.el;T.children!==f.children&&c(J,T.children)}},N=(f,T,P,G)=>{f==null?o(T.el=l(T.children||""),P,G):T.el=f.el},y=(f,T,P,G)=>{[f.el,f.anchor]=F(f.children,T,P,G,f.el,f.anchor)},v=({el:f,anchor:T},P,G)=>{let J;for(;f&&f!==T;)J=h(f),o(f,P,G),f=J;o(T,P,G)},S=({el:f,anchor:T})=>{let P;for(;f&&f!==T;)P=h(f),a(f),f=P;a(T)},b=(f,T,P,G,J,Y,se,re,p)=>{if(T.type==="svg"?se="svg":T.type==="math"&&(se="mathml"),f==null)$(T,P,G,J,Y,se,re,p);else{const g=f.el&&f.el._isVueCE?f.el:null;try{g&&g._beginPatch(),M(f,T,J,Y,se,re,p)}finally{g&&g._endPatch()}}},$=(f,T,P,G,J,Y,se,re)=>{let p,g;const{props:O,shapeFlag:j,transition:ie,dirs:oe}=f;if(p=f.el=s(f.type,Y,O&&O.is,O),j&8?u(p,f.children):j&16&&L(f.children,p,null,G,J,_s(f,Y),se,re),oe&&io(f,null,G,"created"),E(p,f,f.scopeId,se,G),O){for(const U in O)U!=="value"&&!Wo(U)&&r(p,U,null,O[U],Y,G);"value"in O&&r(p,"value",null,O.value,Y),(g=O.onVnodeBeforeMount)&&yn(g,G,f)}oe&&io(f,null,G,"beforeMount");const I=Fg(J,ie);I&&ie.beforeEnter(p),o(p,T,P),((g=O&&O.onVnodeMounted)||I||oe)&&jt(()=>{try{g&&yn(g,G,f),I&&ie.enter(p),oe&&io(f,null,G,"mounted")}finally{}},J)},E=(f,T,P,G,J)=>{if(P&&k(f,P),G)for(let Y=0;Y{for(let g=p;g{const re=T.el=f.el;let{patchFlag:p,dynamicChildren:g,dirs:O}=T;p|=f.patchFlag&16;const j=f.props||Xe,ie=T.props||Xe;let oe;if(P&&co(P,!1),(oe=ie.onVnodeBeforeUpdate)&&yn(oe,P,T,f),O&&io(T,f,P,"beforeUpdate"),P&&co(P,!0),g&&(!f.dynamicChildren||f.dynamicChildren.length!==g.length)&&(p=0,se=!1,g=null),(j.innerHTML&&ie.innerHTML==null||j.textContent&&ie.textContent==null)&&u(re,""),g?V(f.dynamicChildren,g,re,P,G,_s(T,J),Y):se||x(f,T,re,null,P,G,_s(T,J),Y,!1),p>0){if(p&16)ae(re,j,ie,P,J);else if(p&2&&j.class!==ie.class&&r(re,"class",null,ie.class,J),p&4&&r(re,"style",j.style,ie.style,J),p&8){const I=T.dynamicProps;for(let U=0;U{oe&&yn(oe,P,T,f),O&&io(T,f,P,"updated")},G)},V=(f,T,P,G,J,Y,se)=>{for(let re=0;re{if(T!==P){if(T!==Xe)for(const Y in T)!Wo(Y)&&!(Y in P)&&r(f,Y,T[Y],null,J,G);for(const Y in P){if(Wo(Y))continue;const se=P[Y],re=T[Y];se!==re&&Y!=="value"&&r(f,Y,re,se,J,G)}"value"in P&&r(f,"value",T.value,P.value,J)}},ee=(f,T,P,G,J,Y,se,re,p)=>{const g=T.el=f?f.el:i(""),O=T.anchor=f?f.anchor:i("");let{patchFlag:j,dynamicChildren:ie,slotScopeIds:oe}=T;oe&&(re=re?re.concat(oe):oe),f==null?(o(g,P,G),o(O,P,G),L(T.children||[],P,O,J,Y,se,re,p)):j>0&&j&64&&ie&&f.dynamicChildren&&f.dynamicChildren.length===ie.length?(V(f.dynamicChildren,ie,P,J,Y,se,re),(T.key!=null||J&&T===J.subTree)&&jl(f,T,!0)):x(f,T,P,O,J,Y,se,re,p)},C=(f,T,P,G,J,Y,se,re,p)=>{T.slotScopeIds=re,f==null?T.shapeFlag&512?J.ctx.activate(T,P,G,se,p):Z(T,P,G,J,Y,se,p):Q(f,T,p)},Z=(f,T,P,G,J,Y,se)=>{const re=f.component=Hg(f,G,J);if(tr(f)&&(re.ctx.renderer=xe),Bg(re,!1,se),re.asyncDep){if(J&&J.registerDep(re,te,se),!f.el){const p=re.subTree=wt(Fn);N(null,p,T,P),f.placeholder=p.el}}else te(re,f,T,P,J,Y,se)},Q=(f,T,P)=>{const G=T.component=f.component;if(Sg(f,T,P))if(G.asyncDep&&!G.asyncResolved){de(G,T,P);return}else G.next=T,G.update();else T.el=f.el,G.vnode=T},te=(f,T,P,G,J,Y,se)=>{const re=()=>{if(f.isMounted){let{next:j,bu:ie,u:oe,parent:I,vnode:U}=f;{const ft=Hl(f);if(ft){j&&(j.el=U.el,de(f,j,se)),ft.asyncDep.then(()=>{jt(()=>{f.isUnmounted||g()},J)});return}}let ye=j,Fe;co(f,!1),j?(j.el=U.el,de(f,j,se)):j=U,ie&&Ia(ie),(Fe=j.props&&j.props.onVnodeBeforeUpdate)&&yn(Fe,I,j,U),co(f,!0);const je=Ll(f),ct=f.subTree;f.subTree=je,w(ct,je,d(ct.el),Pe(ct),f,J,Y),j.el=je.el,ye===null&&Pg(f,je.el),oe&&jt(oe,J),(Fe=j.props&&j.props.onVnodeUpdated)&&jt(()=>yn(Fe,I,j,U),J)}else{let j;const{el:ie,props:oe}=T,{bm:I,m:U,parent:ye,root:Fe,type:je}=f,ct=aa(T);co(f,!1),I&&Ia(I),!ct&&(j=oe&&oe.onVnodeBeforeMount)&&yn(j,ye,T),co(f,!0);{Fe.ce&&Fe.ce._hasShadowRoot()&&Fe.ce._injectChildStyle(je,f.parent?f.parent.type:void 0);const ft=f.subTree=Ll(f);w(null,ft,P,G,f,J,Y),T.el=ft.el}if(U&&jt(U,J),!ct&&(j=oe&&oe.onVnodeMounted)){const ft=T;jt(()=>yn(j,ye,ft),J)}(T.shapeFlag&256||ye&&aa(ye.vnode)&&ye.vnode.shapeFlag&256)&&f.a&&jt(f.a,J),f.isMounted=!0,T=P=G=null}};f.scope.on();const p=f.effect=new Oi(re);f.scope.off();const g=f.update=p.run.bind(p),O=f.job=p.runIfDirty.bind(p);O.i=f,O.id=f.uid,p.scheduler=()=>cs(O),co(f,!0),g()},de=(f,T,P)=>{T.component=f;const G=f.vnode.props;f.vnode=T,f.next=null,xg(f,T.props,G,P),Ag(f,T.children,P),hn(),sl(f),mn()},x=(f,T,P,G,J,Y,se,re,p=!1)=>{const g=f&&f.children,O=f?f.shapeFlag:0,j=T.children,{patchFlag:ie,shapeFlag:oe}=T;if(ie>0){if(ie&128){H(g,j,P,G,J,Y,se,re,p);return}else if(ie&256){_(g,j,P,G,J,Y,se,re,p);return}}oe&8?(O&16&&Me(g,J,Y),j!==g&&u(P,j)):O&16?oe&16?H(g,j,P,G,J,Y,se,re,p):Me(g,J,Y,!0):(O&8&&u(P,""),oe&16&&L(j,P,G,J,Y,se,re,p))},_=(f,T,P,G,J,Y,se,re,p)=>{f=f||wo,T=T||wo;const g=f.length,O=T.length,j=Math.min(g,O);let ie;for(ie=0;ieO?Me(f,J,Y,!0,!1,j):L(T,P,G,J,Y,se,re,p,j)},H=(f,T,P,G,J,Y,se,re,p)=>{let g=0;const O=T.length;let j=f.length-1,ie=O-1;for(;g<=j&&g<=ie;){const oe=f[g],I=T[g]=p?Rn(T[g]):$n(T[g]);if(ca(oe,I))w(oe,I,P,null,J,Y,se,re,p);else break;g++}for(;g<=j&&g<=ie;){const oe=f[j],I=T[ie]=p?Rn(T[ie]):$n(T[ie]);if(ca(oe,I))w(oe,I,P,null,J,Y,se,re,p);else break;j--,ie--}if(g>j){if(g<=ie){const oe=ie+1,I=oeie)for(;g<=j;)X(f[g],J,Y,!0),g++;else{const oe=g,I=g,U=new Map;for(g=I;g<=ie;g++){const it=T[g]=p?Rn(T[g]):$n(T[g]);it.key!=null&&U.set(it.key,g)}let ye,Fe=0;const je=ie-I+1;let ct=!1,ft=0;const cn=new Array(je);for(g=0;g=je){X(it,J,Y,!0);continue}let Dt;if(it.key!=null)Dt=U.get(it.key);else for(ye=I;ye<=ie;ye++)if(cn[ye-I]===0&&ca(it,T[ye])){Dt=ye;break}Dt===void 0?X(it,J,Y,!0):(cn[Dt-I]=g+1,Dt>=ft?ft=Dt:ct=!0,w(it,T[Dt],P,null,J,Y,se,re,p),Fe++)}const yo=ct?Rg(cn):wo;for(ye=yo.length-1,g=je-1;g>=0;g--){const it=I+g,Dt=T[it],Ho=T[it+1],to=it+1{const{el:Y,type:se,transition:re,children:p,shapeFlag:g}=f;if(g&6){R(f.component.subTree,T,P,G);return}if(g&128){f.suspense.move(T,P,G);return}if(g&64){se.move(f,T,P,xe);return}if(se===Ye){o(Y,T,P);for(let j=0;jre.enter(Y),J));else{const{leave:j,delayLeave:ie,afterLeave:oe}=re,I=()=>{f.ctx.isUnmounted?a(Y):o(Y,T,P)},U=()=>{const ye=Y._isLeaving||!!Y[ds];Y._isLeaving&&Y[ds](!0),re.persisted&&!ye?I():j(Y,()=>{I(),oe&&oe()})};ie?ie(Y,I,U):U()}else o(Y,T,P)},X=(f,T,P,G=!1,J=!1)=>{const{type:Y,props:se,ref:re,children:p,dynamicChildren:g,shapeFlag:O,patchFlag:j,dirs:ie,cacheIndex:oe,memo:I}=f;if(j===-2&&(J=!1),re!=null&&(hn(),oa(re,null,P,f,!0),mn()),oe!=null&&(T.renderCache[oe]=void 0),O&256){T.ctx.deactivate(f);return}const U=O&1&&ie,ye=!aa(f);let Fe;if(ye&&(Fe=se&&se.onVnodeBeforeUnmount)&&yn(Fe,T,f),O&6)fe(f.component,P,G);else{if(O&128){f.suspense.unmount(P,G);return}U&&io(f,null,T,"beforeUnmount"),O&64?f.type.remove(f,T,P,xe,G):g&&!g.hasOnce&&(Y!==Ye||j>0&&j&64)?Me(g,T,P,!1,!0):(Y===Ye&&j&384||!J&&O&16)&&Me(p,T,P),G&&$e(f)}const je=I!=null&&oe==null;(ye&&(Fe=se&&se.onVnodeUnmounted)||U||je)&&jt(()=>{Fe&&yn(Fe,T,f),U&&io(f,null,T,"unmounted"),je&&(f.el=null)},P)},$e=f=>{const{type:T,el:P,anchor:G,transition:J}=f;if(T===Ye){ce(P,G);return}if(T===ws){S(f);return}const Y=()=>{a(P),J&&!J.persisted&&J.afterLeave&&J.afterLeave()};if(f.shapeFlag&1&&J&&!J.persisted){const{leave:se,delayLeave:re}=J,p=()=>se(P,Y);re?re(f.el,Y,p):p()}else Y()},ce=(f,T)=>{let P;for(;f!==T;)P=h(f),a(f),f=P;a(T)},fe=(f,T,P)=>{const{bum:G,scope:J,job:Y,subTree:se,um:re,m:p,a:g}=f;Bl(p),Bl(g),G&&Ia(G),J.stop(),Y&&(Y.flags|=8,X(se,f,T,P)),re&&jt(re,T),jt(()=>{f.isUnmounted=!0},T)},Me=(f,T,P,G=!1,J=!1,Y=0)=>{for(let se=Y;se{if(f.shapeFlag&6)return Pe(f.component.subTree);if(f.shapeFlag&128)return f.suspense.next();const T=h(f.anchor||f.el),P=T&&T[Zp];return P?h(P):T};let Ve=!1;const Se=(f,T,P)=>{let G;f==null?T._vnode&&(X(T._vnode,null,null,!0),G=T._vnode.component):w(T._vnode||null,f,T,null,null,null,P),T._vnode=f,Ve||(Ve=!0,sl(G),il(),Ve=!1)},xe={p:w,um:X,m:R,r:$e,mt:Z,mc:L,pc:x,pbc:V,n:Pe,o:e};return{render:Se,hydrate:void 0,createApp:$g(Se)}}function _s({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function co({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Fg(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function jl(e,t,n=!1){const o=e.children,a=t.children;if(ke(o)&&ke(a))for(let r=0;r>1,e[n[i]]0&&(t[o]=n[r-1]),n[r]=o)}}for(r=n.length,s=n[r-1];r-- >0;)n[r]=s,s=t[s];return n}function Hl(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Hl(t)}function Bl(e){if(e)for(let t=0;te.__isSuspense;function Ig(e,t){t&&t.pendingBranch?ke(e)?t.effects.push(...e):t.effects.push(e):Up(e)}const Ye=Symbol.for("v-fgt"),ia=Symbol.for("v-txt"),Fn=Symbol.for("v-cmt"),ws=Symbol.for("v-stc"),uo=[];let qt=null;function he(e=!1){uo.push(qt=e?null:[])}function Vl(){uo.pop(),qt=uo[uo.length-1]||null}let la=1;function sr(e,t=!1){la+=e,e<0&&qt&&t&&(qt.hasOnce=!0)}function ql(e){return e.dynamicChildren=la>0?qt||wo:null,Vl(),la>0&&qt&&qt.push(e),e}function be(e,t,n,o,a,r){return ql(z(e,t,n,o,a,r,!0))}function Vn(e,t,n,o,a){return ql(wt(e,t,n,o,a,!0))}function ir(e){return e?e.__v_isVNode===!0:!1}function ca(e,t){return e.type===t.type&&e.key===t.key}const Kl=({key:e})=>e??null,lr=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?nt(e)||rt(e)||Ne(e)?{i:Vt,r:e,k:t,f:!!n}:e:null);function z(e,t=null,n=null,o=0,a=null,r=e===Ye?0:1,s=!1,i=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Kl(t),ref:t&&lr(t),scopeId:cl,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:o,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:Vt};return i?(cr(l,n),r&128&&e.normalize(l)):n&&(l.shapeFlag|=nt(n)?8:16),la>0&&!s&&qt&&(l.patchFlag>0||r&6)&&l.patchFlag!==32&&qt.push(l),l}const wt=Og;function Og(e,t=null,n=null,o=0,a=null,r=!1){if((!e||e===$l)&&(e=Fn),ir(e)){const i=Mo(e,t,!0);return n&&cr(i,n),la>0&&!r&&qt&&(i.shapeFlag&6?qt[qt.indexOf(e)]=i:qt.push(i)),i.patchFlag=-2,i}if(Yg(e)&&(e=e.__vccOpts),t){t=zg(t);let{class:i,style:l}=t;i&&!nt(i)&&(t.class=ot(i)),qe(l)&&(Va(l)&&!ke(l)&&(l=ht({},l)),t.style=St(l))}const s=nt(e)?1:Wl(e)?128:Xa(e)?64:qe(e)?4:Ne(e)?2:0;return z(e,t,n,o,a,s,r,!0)}function zg(e){return e?Va(e)||Fl(e)?ht({},e):e:null}function Mo(e,t,n=!1,o=!1){const{props:a,ref:r,patchFlag:s,children:i,transition:l}=e,c=t?Dg(a||{},t):a,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Kl(c),ref:t&&t.ref?n&&r?ke(r)?r.concat(lr(t)):[r,lr(t)]:lr(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ye?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Mo(e.ssContent),ssFallback:e.ssFallback&&Mo(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&o&&ps(u,l.clone(u)),u}function Ke(e=" ",t=0){return wt(ia,null,e,t)}function st(e="",t=!1){return t?(he(),Vn(Fn,null,e)):wt(Fn,null,e)}function $n(e){return e==null||typeof e=="boolean"?wt(Fn):ke(e)?wt(Ye,null,e.slice()):ir(e)?Rn(e):wt(ia,null,String(e))}function Rn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Mo(e)}function cr(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(ke(t))n=16;else if(typeof t=="object")if(o&65){const a=t.default;a&&(a._c&&(a._d=!1),cr(e,a()),a._c&&(a._d=!0));return}else{n=32;const a=t._;!a&&!Fl(t)?t._ctx=Vt:a===3&&Vt&&(Vt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(Ne(t)){if(o&65){cr(e,{default:t});return}t={default:t,_ctx:Vt},n=32}else t=String(t),o&64?(n=16,t=[Ke(t)]):n=8;e.children=t,e.shapeFlag|=n}function Dg(...e){const t={};for(let n=0;nPt||Vt;let ur,ua;{const e=za(),t=(n,o)=>{let a;return(a=e[n])||(a=e[n]=[]),a.push(o),r=>{a.length>1?a.forEach(s=>s(r)):a[0](r)}};ur=t("__VUE_INSTANCE_SETTERS__",n=>Pt=n),ua=t("__VUE_SSR_SETTERS__",n=>Ao=n)}const da=e=>{const t=Pt;return ur(e),e.scope.on(),()=>{e.scope.off(),ur(t)}},Yl=()=>{Pt&&Pt.scope.off(),ur(null)};function Zl(e){return e.vnode.shapeFlag&4}let Ao=!1;function Bg(e,t=!1,n=!1){t&&ua(t);const{props:o,children:a}=e.vnode,r=Zl(e);Cg(e,o,r,t),Mg(e,a,n||t);const s=r?Ug(e,t):void 0;return t&&ua(!1),s}function Ug(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,dg);const{setup:o}=n;if(o){hn();const a=e.setupContext=o.length>1?Vg(e):null,r=da(e),s=Po(o,e,0,[e.props,a]),i=Ci(s);if(mn(),r(),(i||e.sp)&&!aa(e)&&gs(e),i){if(s.then(Yl,Yl),t)return s.then(l=>{ua(!0);try{Jl(e,l,t)}finally{ua(!1)}}).catch(l=>{ea(l,e,0)});e.asyncDep=s}else Jl(e,s)}else Xl(e)}function Jl(e,t,n){Ne(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:qe(t)&&(e.setupState=nl(t)),Xl(e)}function Xl(e,t,n){const o=e.type;e.render||(e.render=o.render||pn);{const a=da(e);hn();try{pg(e)}finally{mn(),a()}}}const Wg={get(e,t){return Lt(e,"get",""),e[t]}};function Vg(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Wg),slots:e.slots,emit:e.emit,expose:t}}function dr(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(nl(Xo(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ra)return ra[n](e)},has(t,n){return n in t||n in ra}})):e.proxy}const qg=/(?:^|[-_])\w/g,Kg=e=>e.replace(qg,t=>t.toUpperCase()).replace(/[-_]/g,"");function Ql(e,t=!0){return Ne(e)?e.displayName||e.name:e.name||t&&e.__name}function ec(e,t,n=!1){let o=Ql(t);if(!o&&t.__file){const a=t.__file.match(/([^/\\]+)\.\w+$/);a&&(o=a[1])}if(!o&&e){const a=r=>{for(const s in r)if(r[s]===t)return s};o=a(e.components)||e.parent&&a(e.parent.type.components)||a(e.appContext.components)}return o?Kg(o):n?"App":"Anonymous"}function Yg(e){return Ne(e)&&"__vccOpts"in e}const _e=(e,t)=>Rp(e,t,Ao);function po(e,t,n){try{sr(-1);const o=arguments.length;return o===2?qe(t)&&!ke(t)?ir(t)?wt(e,null,[t]):wt(e,t):wt(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&ir(n)&&(n=[n]),wt(e,t,n))}finally{sr(1)}}const Zg="3.5.42";/**
+`],...Gp(n))}),t}function Gp({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",o=e.component?e.component.parent==null:!1,a=` at <${ec(e.component,e.type,o)}`,r=">"+n;return e.props?[a,...jp(e.props),r]:[a+r]}function jp(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(o=>{t.push(...ol(o,e[o]))}),n.length>3&&t.push(" ..."),t}function ol(e,t,n){return nt(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:rt(t)?(t=ol(e,He(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):Ne(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=He(t),n?t:[`${e}=`,t])}function Po(e,t,n,o){try{return o?e(...o):e()}catch(a){ea(a,t,n)}}function nn(e,t,n,o){if(Ne(e)){const a=Po(e,t,n,o);return a&&Ci(a)&&a.catch(r=>{ea(r,t,n)}),a}if(ke(e)){const a=[];for(let r=0;r>>1,a=Rt[o],r=ta(a);r=ta(n)?Rt.push(e):Rt.splice(Bp(t),0,e),e.flags|=1,rl()}}function rl(){Za||(Za=al.then(ll))}function Up(e){if(!ke(e))Un&&e.id===-1?Un.splice(xo+1,0,e):e.flags&1||(Co.push(e),e.flags|=1);else for(let t=0;tta(n)-ta(o));if(Co.length=0,Un){for(let n=0;ne.id==null?e.flags&2?-1:1/0:e.id;function ll(e){try{for(bn=0;bn{o._d&&sr(-1);const r=Ja(t),s=uo.length;let i;try{i=e(...a)}finally{for(let l=uo.length;l>s;l--)Vl();Ja(r),o._d&&sr(1)}return i};return o._n=!0,o._c=!0,o._d=!0,o}function na(e,t){if(Vt===null)return e;const n=dr(Vt),o=e.dirs||(e.dirs=[]);for(let a=0;a1)return n&&Ne(t)?t.call(o&&o.proxy):t}}function Vp(){return!!(vn()||lo)}const qp=Symbol.for("v-scx"),Kp=()=>bt(qp);function ul(e,t){return us(e,null,t)}function $t(e,t,n){return us(e,t,n)}function us(e,t,n=Xe){const{immediate:o,deep:a,flush:r,once:s}=n,i=ht({},n),l=t&&o||!t&&r!=="post";let c;if(Ao){if(r==="sync"){const k=Kp();c=k.__watcherHandles||(k.__watcherHandles=[])}else if(!l){const k=()=>{};return k.stop=pn,k.resume=pn,k.pause=pn,k}}const u=Pt;i.call=(k,F,w)=>nn(k,u,F,w);let d=!1;r==="post"?i.scheduler=k=>{jt(k,u&&u.suspense)}:r!=="sync"&&(d=!0,i.scheduler=(k,F)=>{F?k():cs(k)}),i.augmentJob=k=>{t&&(k.flags|=4),d&&(k.flags|=2,u&&(k.id=u.uid,k.i=u))};const h=Op(e,t,i);return Ao&&(c?c.push(h):l&&h()),h}function Yp(e,t,n){const o=this.proxy,a=nt(e)?e.includes(".")?dl(o,e):()=>o[e]:e.bind(o,o);let r;Ne(t)?r=t:(r=t.handler,n=t);const s=da(this),i=us(a,r.bind(o),n);return s(),i}function dl(e,t){const n=t.split(".");return()=>{let o=e;for(let a=0;ae.__isTeleport,ds=Symbol("_leaveCb");function Jp(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==Fn){t=n;break}}return t}function pl(e){if(!tr(e))return Xa(e.type)&&e.children?Jp(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&Ne(n.default))return n.default()}}function ps(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;const n=e.component.subTree;ps(Xa(n.type)&&pl(n)||n,t)}else e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Wn(e,t){return Ne(e)?ht({name:e.name},t,{setup:e}):e}function gs(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function gl(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const Qa=new WeakMap;function oa(e,t,n,o,a=!1){if(ke(e)){e.forEach((w,A)=>oa(w,t&&(ke(t)?t[A]:t),n,o,a));return}if(aa(o)&&!a){o.shapeFlag&512&&o.type.__asyncResolved&&o.component.subTree.component&&oa(e,t,n,o.component.subTree);return}const r=o.shapeFlag&4?dr(o.component):o.el,s=a?null:r,{i,r:l}=e,c=t&&t.r,u=i.refs===Xe?i.refs={}:i.refs,d=i.setupState,h=He(d),k=d===Xe?Si:w=>gl(u,w)?!1:We(h,w),F=(w,A)=>!(A&&gl(u,A));if(c!=null&&c!==l){if(hl(t),nt(c))u[c]=null,k(c)&&(d[c]=null);else if(rt(c)){const w=t;F(c,w.k)&&(c.value=null),w.k&&(u[w.k]=null)}}if(Ne(l))Po(l,i,12,[s,u]);else{const w=nt(l),A=rt(l);if(w||A){const N=()=>{if(e.f){const y=w?k(l)?d[l]:u[l]:F()||!e.k?l.value:u[e.k];if(a)ke(y)&&Kr(y,r);else if(ke(y))y.includes(r)||y.push(r);else if(w)u[l]=[r],k(l)&&(d[l]=u[l]);else{const v=[r];F(l,e.k)&&(l.value=v),e.k&&(u[e.k]=v)}}else w?(u[l]=s,k(l)&&(d[l]=s)):A&&(F(l,e.k)&&(l.value=s),e.k&&(u[e.k]=s))};if(s){const y=()=>{N(),Qa.delete(e)};y.id=-1,Qa.set(e,y),jt(y,n)}else hl(e),N()}}}function hl(e){const t=Qa.get(e);t&&(t.flags|=8,Qa.delete(e))}const ml=e=>e.nodeType===8;za().requestIdleCallback,za().cancelIdleCallback;function Xp(e,t){if(ml(e)&&e.data==="["){let n=1,o=e.nextSibling;for(;o;){if(o.nodeType===1){if(t(o)===!1)break}else if(ml(o))if(o.data==="]"){if(--n===0)break}else o.data==="["&&n++;o=o.nextSibling}}else t(e)}const aa=e=>!!e.type.__asyncLoader;function Qp(e){Ne(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:o,delay:a=200,hydrate:r,timeout:s,suspensible:i=!0,onError:l}=e;let c=null,u,d=0;const h=()=>(d++,c=null,k()),k=()=>{let F;return c||(F=c=t().catch(w=>{if(w=w instanceof Error?w:new Error(String(w)),l)return new Promise((A,N)=>{l(w,()=>A(h()),()=>N(w),d+1)});throw w}).then(w=>F!==c&&c?c:(w&&(w.__esModule||w[Symbol.toStringTag]==="Module")&&(w=w.default),u=w,w)))};return Wn({name:"AsyncComponentWrapper",__asyncLoader:k,__asyncHydrate(F,w,A){const N=F.isConnected;let y=!1;(w.bu||(w.bu=[])).push(()=>y=!0);const v=()=>{y||!F.parentNode||N&&!F.isConnected||A()},S=r?()=>{const b=r(v,$=>Xp(F,$));b&&(w.bum||(w.bum=[])).push(b)}:v;u?S():k().then(()=>!w.isUnmounted&&S())},get __asyncResolved(){return u},setup(){const F=Pt;if(gs(F),u)return()=>er(u,F);const w=b=>{c=null,ea(b,F,13,!o)};if(i&&F.suspense||Ao)return k().then(b=>()=>er(b,F)).catch(b=>(w(b),()=>o?wt(o,{error:b}):null));const A=Ce(!1),N=Ce(),y=Ce(!!a);let v,S;return or(()=>{v!=null&&clearTimeout(v),S!=null&&clearTimeout(S)}),a&&(S=setTimeout(()=>{F.isUnmounted||(y.value=!1)},a)),s!=null&&(v=setTimeout(()=>{if(!F.isUnmounted&&!A.value&&!N.value){const b=new Error(`Async component timed out after ${s}ms.`);w(b),N.value=b}},s)),k().then(()=>{F.isUnmounted||(A.value=!0,F.parent&&tr(F.parent.vnode)&&F.parent.update())}).catch(b=>{if(F.isUnmounted){c=null;return}w(b),N.value=b}),()=>{if(A.value&&u)return er(u,F);if(N.value&&o)return wt(o,{error:N.value});if(n&&!y.value)return er(n,F)}}})}function er(e,t){const{ref:n,props:o,children:a,ce:r}=t.vnode,s=wt(e,o,a);return s.ref=n,s.ce=r,delete t.vnode.ce,s}const tr=e=>e.type.__isKeepAlive;function eg(e,t){fl(e,"a",t)}function tg(e,t){fl(e,"da",t)}function fl(e,t,n=Pt){const o=e.__wdc||(e.__wdc=()=>{let a=n;for(;a;){if(a.isDeactivated)return;a=a.parent}return e()});if(nr(t,o,n),n){let a=n.parent;for(;a&&a.parent;)tr(a.parent.vnode)&&ng(o,t,n,a),a=a.parent}}function ng(e,t,n,o){const a=nr(t,e,o,!0);or(()=>{Kr(o[t],a)},n)}function nr(e,t,n=Pt,o=!1){if(n){const a=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...s)=>{hn();const i=da(n),l=nn(t,n,e,s);return i(),mn(),l});return o?a.unshift(r):a.push(r),r}}const Nn=e=>(t,n=Pt)=>{(!Ao||e==="sp")&&nr(e,(...o)=>t(...o),n)},bl=Nn("bm"),To=Nn("m"),og=Nn("bu"),ag=Nn("u"),Lo=Nn("bum"),or=Nn("um"),rg=Nn("sp"),sg=Nn("rtg"),ig=Nn("rtc");function lg(e,t=Pt){nr("ec",e,t)}const cg="components",$l=Symbol.for("v-ndc");function yl(e){return nt(e)?ug(cg,e,!1)||e:e||$l}function ug(e,t,n=!0,o=!1){const a=Vt||Pt;if(a){const r=a.type;{const i=Ql(r,!1);if(i&&(i===t||i===_t(t)||i===Ra(_t(t))))return r}const s=vl(a[e]||r[e],t)||vl(a.appContext[e],t);return!s&&o?r:s}}function vl(e,t){return e&&(e[t]||e[_t(t)]||e[Ra(_t(t))])}function an(e,t,n,o){let a;const r=n,s=ke(e);if(s||nt(e)){const i=s&&Mn(e);let l=!1,c=!1;i&&(l=!Ut(e),c=An(e),e=ja(e)),a=new Array(e.length);for(let u=0,d=e.length;ut(i,l,void 0,r));else{const i=Object.keys(e);a=new Array(i.length);for(let l=0,c=i.length;le?Zl(e)?dr(e):hs(e.parent):null,ra=ht(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>hs(e.parent),$root:e=>hs(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Sl(e),$forceUpdate:e=>e.f||(e.f=()=>{cs(e.update)}),$nextTick:e=>e.n||(e.n=Wt.bind(e.proxy)),$watch:e=>Yp.bind(e)}),ms=(e,t)=>e!==Xe&&!e.__isScriptSetup&&We(e,t),dg={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:o,data:a,props:r,accessCache:s,type:i,appContext:l}=e;if(t[0]!=="$"){const h=s[t];if(h!==void 0)switch(h){case 1:return o[t];case 2:return a[t];case 4:return n[t];case 3:return r[t]}else{if(ms(o,t))return s[t]=1,o[t];if(a!==Xe&&We(a,t))return s[t]=2,a[t];if(We(r,t))return s[t]=3,r[t];if(n!==Xe&&We(n,t))return s[t]=4,n[t];fs&&(s[t]=0)}}const c=ra[t];let u,d;if(c)return t==="$attrs"&&Lt(e.attrs,"get",""),c(e);if((u=i.__cssModules)&&(u=u[t]))return u;if(n!==Xe&&We(n,t))return s[t]=4,n[t];if(d=l.config.globalProperties,We(d,t))return d[t]},set({_:e},t,n){const{data:o,setupState:a,ctx:r}=e;return ms(a,t)?(a[t]=n,!0):o!==Xe&&We(o,t)?(o[t]=n,!0):We(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:a,props:r,type:s}},i){let l;return!!(n[i]||e!==Xe&&i[0]!=="$"&&We(e,i)||ms(t,i)||We(r,i)||We(o,i)||We(ra,i)||We(a.config.globalProperties,i)||(l=s.__cssModules)&&l[i])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:We(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function _l(e){return ke(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let fs=!0;function pg(e){const t=Sl(e),n=e.proxy,o=e.ctx;fs=!1,t.beforeCreate&&wl(t.beforeCreate,e,"bc");const{data:a,computed:r,methods:s,watch:i,provide:l,inject:c,created:u,beforeMount:d,mounted:h,beforeUpdate:k,updated:F,activated:w,deactivated:A,beforeDestroy:N,beforeUnmount:y,destroyed:v,unmounted:S,render:b,renderTracked:$,renderTriggered:E,errorCaptured:L,serverPrefetch:M,expose:V,inheritAttrs:ae,components:ee,directives:C,filters:Z}=t;if(c&&gg(c,o,null),s)for(const de in s){const x=s[de];Ne(x)&&(o[de]=x.bind(n))}if(a){const de=a.call(n,n);qe(de)&&(e.data=Jo(de))}if(fs=!0,r)for(const de in r){const x=r[de],_=Ne(x)?x.bind(n,n):Ne(x.get)?x.get.bind(n,n):pn,H=!Ne(x)&&Ne(x.set)?x.set.bind(n):pn,R=_e({get:_,set:H});Object.defineProperty(o,de,{enumerable:!0,configurable:!0,get:()=>R.value,set:X=>R.value=X})}if(i)for(const de in i)kl(i[de],o,n,de);if(l){const de=Ne(l)?l.call(n):l;Reflect.ownKeys(de).forEach(x=>{on(x,de[x])})}u&&wl(u,e,"c");function te(de,x){ke(x)?x.forEach(_=>de(_.bind(n))):x&&de(x.bind(n))}if(te(bl,d),te(To,h),te(og,k),te(ag,F),te(eg,w),te(tg,A),te(lg,L),te(ig,$),te(sg,E),te(Lo,y),te(or,S),te(rg,M),ke(V))if(V.length){const de=e.exposed||(e.exposed={});V.forEach(x=>{Object.defineProperty(de,x,{get:()=>n[x],set:_=>n[x]=_,enumerable:!0})})}else e.exposed||(e.exposed={});b&&e.render===pn&&(e.render=b),ae!=null&&(e.inheritAttrs=ae),ee&&(e.components=ee),C&&(e.directives=C),M&&gs(e)}function gg(e,t,n=pn){ke(e)&&(e=bs(e));for(const o in e){const a=e[o];let r;qe(a)?"default"in a?r=bt(a.from||o,a.default,!0):r=bt(a.from||o):r=bt(a),rt(r)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>r.value,set:s=>r.value=s}):t[o]=r}}function wl(e,t,n){nn(ke(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function kl(e,t,n,o){let a=o.includes(".")?dl(n,o):()=>n[o];if(nt(e)){const r=t[e];Ne(r)&&$t(a,r)}else if(Ne(e))$t(a,e.bind(n));else if(qe(e))if(ke(e))e.forEach(r=>kl(r,t,n,o));else{const r=Ne(e.handler)?e.handler.bind(n):t[e.handler];Ne(r)&&$t(a,r,e)}}function Sl(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:a,optionsCache:r,config:{optionMergeStrategies:s}}=e.appContext,i=r.get(t);let l;return i?l=i:!a.length&&!n&&!o?l=t:(l={},a.length&&a.forEach(c=>ar(l,c,s,!0)),ar(l,t,s)),qe(t)&&r.set(t,l),l}function ar(e,t,n,o=!1){const{mixins:a,extends:r}=t;r&&ar(e,r,n,!0),a&&a.forEach(s=>ar(e,s,n,!0));for(const s in t)if(!(o&&s==="expose")){const i=hg[s]||n&&n[s];e[s]=i?i(e[s],t[s]):t[s]}return e}const hg={data:Pl,props:Cl,emits:Cl,methods:sa,computed:sa,beforeCreate:It,created:It,beforeMount:It,mounted:It,beforeUpdate:It,updated:It,beforeDestroy:It,beforeUnmount:It,destroyed:It,unmounted:It,activated:It,deactivated:It,errorCaptured:It,serverPrefetch:It,components:sa,directives:sa,watch:fg,provide:Pl,inject:mg};function Pl(e,t){return t?e?function(){return ht(Ne(e)?e.call(this,this):e,Ne(t)?t.call(this,this):t)}:t:e}function mg(e,t){return sa(bs(e),bs(t))}function bs(e){if(ke(e)){const t={};for(let n=0;nt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${_t(t)}Modifiers`]||e[`${Yt(t)}Modifiers`];function vg(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||Xe;let a=n;const r=t.startsWith("update:"),s=r&&yg(o,t.slice(7));s&&(s.trim&&(a=n.map(u=>nt(u)?u.trim():u)),s.number&&(a=a.map(Oa)));let i,l=o[i=Yr(t)]||o[i=Yr(_t(t))];!l&&r&&(l=o[i=Yr(Yt(t))]),l&&nn(l,e,6,a);const c=o[i+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[i])return;e.emitted[i]=!0,nn(c,e,6,a)}}const _g=new WeakMap;function Tl(e,t,n=!1){const o=n?_g:t.emitsCache,a=o.get(e);if(a!==void 0)return a;const r=e.emits;let s={},i=!1;if(!Ne(e)){const l=c=>{const u=Tl(c,t,!0);u&&(i=!0,ht(s,u))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!r&&!i?(qe(e)&&o.set(e,null),null):(ke(r)?r.forEach(l=>s[l]=null):ht(s,r),qe(e)&&o.set(e,s),s)}function rr(e,t){return!e||!Ma(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),We(e,t[0].toLowerCase()+t.slice(1))||We(e,Yt(t))||We(e,t))}function i1(){}function Ll(e){const{type:t,vnode:n,proxy:o,withProxy:a,propsOptions:[r],slots:s,attrs:i,emit:l,render:c,renderCache:u,props:d,data:h,setupState:k,ctx:F,inheritAttrs:w}=e,A=Ja(e);let N,y;try{if(n.shapeFlag&4){const S=a||o,b=S;N=$n(c.call(b,S,u,d,k,h,F)),y=i}else{const S=t;N=$n(S.length>1?S(d,{attrs:i,slots:s,emit:l}):S(d,null)),y=t.props?i:wg(i)}}catch(S){uo.length=0,ea(S,e,1),N=wt(Fn)}let v=N;if(y&&w!==!1){const S=Object.keys(y),{shapeFlag:b}=v;S.length&&b&7&&(r&&S.some(Aa)&&(y=kg(y,r)),v=Mo(v,y,!1,!0))}if(n.dirs&&(v=Mo(v,null,!1,!0),v.dirs=v.dirs?v.dirs.concat(n.dirs):n.dirs),n.transition){const S=Xa(v.type)&&pl(v)||v;ps(S,n.transition)}return N=v,Ja(A),N}const wg=e=>{let t;for(const n in e)(n==="class"||n==="style"||Ma(n))&&((t||(t={}))[n]=e[n]);return t},kg=(e,t)=>{const n={};for(const o in e)(!Aa(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function Sg(e,t,n){const{props:o,children:a,component:r}=e,{props:s,children:i,patchFlag:l}=t,c=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return o?Ml(o,s,c):!!s;if(l&8){const u=t.dynamicProps;for(let d=0;dObject.create(El),Fl=e=>Object.getPrototypeOf(e)===El;function Cg(e,t,n,o=!1){const a={},r=Nl();e.propsDefaults=Object.create(null),Rl(e,t,a,r);for(const s in e.propsOptions[0])s in a||(a[s]=void 0);n?e.props=o?a:Tp(a):e.type.props?e.props=a:e.props=r,e.attrs=r}function xg(e,t,n,o){const{props:a,attrs:r,vnode:{patchFlag:s}}=e,i=He(a),[l]=e.propsOptions;let c=!1;if((o||s>0)&&!(s&16)){if(s&8){const u=e.vnode.dynamicProps;for(let d=0;d{l=!0;const[h,k]=Il(d,t,!0);ht(s,h),k&&i.push(...k)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!r&&!l)return qe(e)&&o.set(e,wo),wo;if(ke(r))for(let u=0;ue==="_"||e==="_ctx"||e==="$stable",vs=e=>ke(e)?e.map($n):[$n(e)],Lg=(e,t,n)=>{if(t._n)return t;const o=Wp((...a)=>vs(t(...a)),n);return o._c=!1,o},zl=(e,t,n)=>{const o=e._ctx;for(const a in e){if(ys(a))continue;const r=e[a];if(Ne(r))t[a]=Lg(a,r,o);else if(r!=null){const s=vs(r);t[a]=()=>s}}},Dl=(e,t)=>{const n=vs(t);e.slots.default=()=>n},Gl=(e,t,n)=>{for(const o in t)(n||!ys(o))&&(e[o]=t[o])},Mg=(e,t,n)=>{const o=e.slots=Nl();if(e.vnode.shapeFlag&32){const a=t._;a?(Gl(o,t,n),n&&Ti(o,"_",a,!0)):zl(t,o)}else t&&Dl(e,t)},Ag=(e,t,n)=>{const{vnode:o,slots:a}=e;let r=!0,s=Xe;if(o.shapeFlag&32){const i=t._;i?n&&i===1?r=!1:Gl(a,t,n):(r=!t.$stable,zl(t,a)),s=t}else t&&(Dl(e,t),s={default:1});if(r)for(const i in a)!ys(i)&&s[i]==null&&delete a[i]},jt=Ig;function Eg(e){return Ng(e)}function Ng(e,t){const n=za();n.__VUE__=!0;const{insert:o,remove:a,patchProp:r,createElement:s,createText:i,createComment:l,setText:c,setElementText:u,parentNode:d,nextSibling:h,setScopeId:k=pn,insertStaticContent:F}=e,w=(f,T,P,G=null,J=null,Y=null,se=void 0,re=null,p=!!T.dynamicChildren)=>{if(f===T)return;f&&!ca(f,T)&&(G=Pe(f),X(f,J,Y,!0),f=null),T.patchFlag===-2&&(p=!1,T.dynamicChildren=null);const{type:g,ref:O,shapeFlag:j}=T;switch(g){case ia:A(f,T,P,G);break;case Fn:N(f,T,P,G);break;case ws:f==null&&y(T,P,G,se);break;case Ye:ee(f,T,P,G,J,Y,se,re,p);break;default:j&1?b(f,T,P,G,J,Y,se,re,p):j&6?C(f,T,P,G,J,Y,se,re,p):(j&64||j&128)&&g.process(f,T,P,G,J,Y,se,re,p,xe)}O!=null&&J?oa(O,f&&f.ref,Y,T||f,!T):O==null&&f&&f.ref!=null&&oa(f.ref,null,Y,f,!0)},A=(f,T,P,G)=>{if(f==null)o(T.el=i(T.children),P,G);else{const J=T.el=f.el;T.children!==f.children&&c(J,T.children)}},N=(f,T,P,G)=>{f==null?o(T.el=l(T.children||""),P,G):T.el=f.el},y=(f,T,P,G)=>{[f.el,f.anchor]=F(f.children,T,P,G,f.el,f.anchor)},v=({el:f,anchor:T},P,G)=>{let J;for(;f&&f!==T;)J=h(f),o(f,P,G),f=J;o(T,P,G)},S=({el:f,anchor:T})=>{let P;for(;f&&f!==T;)P=h(f),a(f),f=P;a(T)},b=(f,T,P,G,J,Y,se,re,p)=>{if(T.type==="svg"?se="svg":T.type==="math"&&(se="mathml"),f==null)$(T,P,G,J,Y,se,re,p);else{const g=f.el&&f.el._isVueCE?f.el:null;try{g&&g._beginPatch(),M(f,T,J,Y,se,re,p)}finally{g&&g._endPatch()}}},$=(f,T,P,G,J,Y,se,re)=>{let p,g;const{props:O,shapeFlag:j,transition:ie,dirs:oe}=f;if(p=f.el=s(f.type,Y,O&&O.is,O),j&8?u(p,f.children):j&16&&L(f.children,p,null,G,J,_s(f,Y),se,re),oe&&io(f,null,G,"created"),E(p,f,f.scopeId,se,G),O){for(const U in O)U!=="value"&&!Wo(U)&&r(p,U,null,O[U],Y,G);"value"in O&&r(p,"value",null,O.value,Y),(g=O.onVnodeBeforeMount)&&yn(g,G,f)}oe&&io(f,null,G,"beforeMount");const I=Fg(J,ie);I&&ie.beforeEnter(p),o(p,T,P),((g=O&&O.onVnodeMounted)||I||oe)&&jt(()=>{try{g&&yn(g,G,f),I&&ie.enter(p),oe&&io(f,null,G,"mounted")}finally{}},J)},E=(f,T,P,G,J)=>{if(P&&k(f,P),G)for(let Y=0;Y{for(let g=p;g{const re=T.el=f.el;let{patchFlag:p,dynamicChildren:g,dirs:O}=T;p|=f.patchFlag&16;const j=f.props||Xe,ie=T.props||Xe;let oe;if(P&&co(P,!1),(oe=ie.onVnodeBeforeUpdate)&&yn(oe,P,T,f),O&&io(T,f,P,"beforeUpdate"),P&&co(P,!0),g&&(!f.dynamicChildren||f.dynamicChildren.length!==g.length)&&(p=0,se=!1,g=null),(j.innerHTML&&ie.innerHTML==null||j.textContent&&ie.textContent==null)&&u(re,""),g?V(f.dynamicChildren,g,re,P,G,_s(T,J),Y):se||x(f,T,re,null,P,G,_s(T,J),Y,!1),p>0){if(p&16)ae(re,j,ie,P,J);else if(p&2&&j.class!==ie.class&&r(re,"class",null,ie.class,J),p&4&&r(re,"style",j.style,ie.style,J),p&8){const I=T.dynamicProps;for(let U=0;U{oe&&yn(oe,P,T,f),O&&io(T,f,P,"updated")},G)},V=(f,T,P,G,J,Y,se)=>{for(let re=0;re{if(T!==P){if(T!==Xe)for(const Y in T)!Wo(Y)&&!(Y in P)&&r(f,Y,T[Y],null,J,G);for(const Y in P){if(Wo(Y))continue;const se=P[Y],re=T[Y];se!==re&&Y!=="value"&&r(f,Y,re,se,J,G)}"value"in P&&r(f,"value",T.value,P.value,J)}},ee=(f,T,P,G,J,Y,se,re,p)=>{const g=T.el=f?f.el:i(""),O=T.anchor=f?f.anchor:i("");let{patchFlag:j,dynamicChildren:ie,slotScopeIds:oe}=T;oe&&(re=re?re.concat(oe):oe),f==null?(o(g,P,G),o(O,P,G),L(T.children||[],P,O,J,Y,se,re,p)):j>0&&j&64&&ie&&f.dynamicChildren&&f.dynamicChildren.length===ie.length?(V(f.dynamicChildren,ie,P,J,Y,se,re),(T.key!=null||J&&T===J.subTree)&&jl(f,T,!0)):x(f,T,P,O,J,Y,se,re,p)},C=(f,T,P,G,J,Y,se,re,p)=>{T.slotScopeIds=re,f==null?T.shapeFlag&512?J.ctx.activate(T,P,G,se,p):Z(T,P,G,J,Y,se,p):Q(f,T,p)},Z=(f,T,P,G,J,Y,se)=>{const re=f.component=Hg(f,G,J);if(tr(f)&&(re.ctx.renderer=xe),Bg(re,!1,se),re.asyncDep){if(J&&J.registerDep(re,te,se),!f.el){const p=re.subTree=wt(Fn);N(null,p,T,P),f.placeholder=p.el}}else te(re,f,T,P,J,Y,se)},Q=(f,T,P)=>{const G=T.component=f.component;if(Sg(f,T,P))if(G.asyncDep&&!G.asyncResolved){de(G,T,P);return}else G.next=T,G.update();else T.el=f.el,G.vnode=T},te=(f,T,P,G,J,Y,se)=>{const re=()=>{if(f.isMounted){let{next:j,bu:ie,u:oe,parent:I,vnode:U}=f;{const ft=Hl(f);if(ft){j&&(j.el=U.el,de(f,j,se)),ft.asyncDep.then(()=>{jt(()=>{f.isUnmounted||g()},J)});return}}let ye=j,Fe;co(f,!1),j?(j.el=U.el,de(f,j,se)):j=U,ie&&Ia(ie),(Fe=j.props&&j.props.onVnodeBeforeUpdate)&&yn(Fe,I,j,U),co(f,!0);const je=Ll(f),ct=f.subTree;f.subTree=je,w(ct,je,d(ct.el),Pe(ct),f,J,Y),j.el=je.el,ye===null&&Pg(f,je.el),oe&&jt(oe,J),(Fe=j.props&&j.props.onVnodeUpdated)&&jt(()=>yn(Fe,I,j,U),J)}else{let j;const{el:ie,props:oe}=T,{bm:I,m:U,parent:ye,root:Fe,type:je}=f,ct=aa(T);co(f,!1),I&&Ia(I),!ct&&(j=oe&&oe.onVnodeBeforeMount)&&yn(j,ye,T),co(f,!0);{Fe.ce&&Fe.ce._hasShadowRoot()&&Fe.ce._injectChildStyle(je,f.parent?f.parent.type:void 0);const ft=f.subTree=Ll(f);w(null,ft,P,G,f,J,Y),T.el=ft.el}if(U&&jt(U,J),!ct&&(j=oe&&oe.onVnodeMounted)){const ft=T;jt(()=>yn(j,ye,ft),J)}(T.shapeFlag&256||ye&&aa(ye.vnode)&&ye.vnode.shapeFlag&256)&&f.a&&jt(f.a,J),f.isMounted=!0,T=P=G=null}};f.scope.on();const p=f.effect=new Oi(re);f.scope.off();const g=f.update=p.run.bind(p),O=f.job=p.runIfDirty.bind(p);O.i=f,O.id=f.uid,p.scheduler=()=>cs(O),co(f,!0),g()},de=(f,T,P)=>{T.component=f;const G=f.vnode.props;f.vnode=T,f.next=null,xg(f,T.props,G,P),Ag(f,T.children,P),hn(),sl(f),mn()},x=(f,T,P,G,J,Y,se,re,p=!1)=>{const g=f&&f.children,O=f?f.shapeFlag:0,j=T.children,{patchFlag:ie,shapeFlag:oe}=T;if(ie>0){if(ie&128){H(g,j,P,G,J,Y,se,re,p);return}else if(ie&256){_(g,j,P,G,J,Y,se,re,p);return}}oe&8?(O&16&&Me(g,J,Y),j!==g&&u(P,j)):O&16?oe&16?H(g,j,P,G,J,Y,se,re,p):Me(g,J,Y,!0):(O&8&&u(P,""),oe&16&&L(j,P,G,J,Y,se,re,p))},_=(f,T,P,G,J,Y,se,re,p)=>{f=f||wo,T=T||wo;const g=f.length,O=T.length,j=Math.min(g,O);let ie;for(ie=0;ieO?Me(f,J,Y,!0,!1,j):L(T,P,G,J,Y,se,re,p,j)},H=(f,T,P,G,J,Y,se,re,p)=>{let g=0;const O=T.length;let j=f.length-1,ie=O-1;for(;g<=j&&g<=ie;){const oe=f[g],I=T[g]=p?Rn(T[g]):$n(T[g]);if(ca(oe,I))w(oe,I,P,null,J,Y,se,re,p);else break;g++}for(;g<=j&&g<=ie;){const oe=f[j],I=T[ie]=p?Rn(T[ie]):$n(T[ie]);if(ca(oe,I))w(oe,I,P,null,J,Y,se,re,p);else break;j--,ie--}if(g>j){if(g<=ie){const oe=ie+1,I=oeie)for(;g<=j;)X(f[g],J,Y,!0),g++;else{const oe=g,I=g,U=new Map;for(g=I;g<=ie;g++){const it=T[g]=p?Rn(T[g]):$n(T[g]);it.key!=null&&U.set(it.key,g)}let ye,Fe=0;const je=ie-I+1;let ct=!1,ft=0;const cn=new Array(je);for(g=0;g=je){X(it,J,Y,!0);continue}let Dt;if(it.key!=null)Dt=U.get(it.key);else for(ye=I;ye<=ie;ye++)if(cn[ye-I]===0&&ca(it,T[ye])){Dt=ye;break}Dt===void 0?X(it,J,Y,!0):(cn[Dt-I]=g+1,Dt>=ft?ft=Dt:ct=!0,w(it,T[Dt],P,null,J,Y,se,re,p),Fe++)}const yo=ct?Rg(cn):wo;for(ye=yo.length-1,g=je-1;g>=0;g--){const it=I+g,Dt=T[it],Ho=T[it+1],to=it+1{const{el:Y,type:se,transition:re,children:p,shapeFlag:g}=f;if(g&6){R(f.component.subTree,T,P,G);return}if(g&128){f.suspense.move(T,P,G);return}if(g&64){se.move(f,T,P,xe);return}if(se===Ye){o(Y,T,P);for(let j=0;jre.enter(Y),J));else{const{leave:j,delayLeave:ie,afterLeave:oe}=re,I=()=>{f.ctx.isUnmounted?a(Y):o(Y,T,P)},U=()=>{const ye=Y._isLeaving||!!Y[ds];Y._isLeaving&&Y[ds](!0),re.persisted&&!ye?I():j(Y,()=>{I(),oe&&oe()})};ie?ie(Y,I,U):U()}else o(Y,T,P)},X=(f,T,P,G=!1,J=!1)=>{const{type:Y,props:se,ref:re,children:p,dynamicChildren:g,shapeFlag:O,patchFlag:j,dirs:ie,cacheIndex:oe,memo:I}=f;if(j===-2&&(J=!1),re!=null&&(hn(),oa(re,null,P,f,!0),mn()),oe!=null&&(T.renderCache[oe]=void 0),O&256){T.ctx.deactivate(f);return}const U=O&1&&ie,ye=!aa(f);let Fe;if(ye&&(Fe=se&&se.onVnodeBeforeUnmount)&&yn(Fe,T,f),O&6)fe(f.component,P,G);else{if(O&128){f.suspense.unmount(P,G);return}U&&io(f,null,T,"beforeUnmount"),O&64?f.type.remove(f,T,P,xe,G):g&&!g.hasOnce&&(Y!==Ye||j>0&&j&64)?Me(g,T,P,!1,!0):(Y===Ye&&j&384||!J&&O&16)&&Me(p,T,P),G&&$e(f)}const je=I!=null&&oe==null;(ye&&(Fe=se&&se.onVnodeUnmounted)||U||je)&&jt(()=>{Fe&&yn(Fe,T,f),U&&io(f,null,T,"unmounted"),je&&(f.el=null)},P)},$e=f=>{const{type:T,el:P,anchor:G,transition:J}=f;if(T===Ye){ce(P,G);return}if(T===ws){S(f);return}const Y=()=>{a(P),J&&!J.persisted&&J.afterLeave&&J.afterLeave()};if(f.shapeFlag&1&&J&&!J.persisted){const{leave:se,delayLeave:re}=J,p=()=>se(P,Y);re?re(f.el,Y,p):p()}else Y()},ce=(f,T)=>{let P;for(;f!==T;)P=h(f),a(f),f=P;a(T)},fe=(f,T,P)=>{const{bum:G,scope:J,job:Y,subTree:se,um:re,m:p,a:g}=f;Bl(p),Bl(g),G&&Ia(G),J.stop(),Y&&(Y.flags|=8,X(se,f,T,P)),re&&jt(re,T),jt(()=>{f.isUnmounted=!0},T)},Me=(f,T,P,G=!1,J=!1,Y=0)=>{for(let se=Y;se{if(f.shapeFlag&6)return Pe(f.component.subTree);if(f.shapeFlag&128)return f.suspense.next();const T=h(f.anchor||f.el),P=T&&T[Zp];return P?h(P):T};let Ve=!1;const Se=(f,T,P)=>{let G;f==null?T._vnode&&(X(T._vnode,null,null,!0),G=T._vnode.component):w(T._vnode||null,f,T,null,null,null,P),T._vnode=f,Ve||(Ve=!0,sl(G),il(),Ve=!1)},xe={p:w,um:X,m:R,r:$e,mt:Z,mc:L,pc:x,pbc:V,n:Pe,o:e};return{render:Se,hydrate:void 0,createApp:$g(Se)}}function _s({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function co({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Fg(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function jl(e,t,n=!1){const o=e.children,a=t.children;if(ke(o)&&ke(a))for(let r=0;r>1,e[n[i]]0&&(t[o]=n[r-1]),n[r]=o)}}for(r=n.length,s=n[r-1];r-- >0;)n[r]=s,s=t[s];return n}function Hl(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Hl(t)}function Bl(e){if(e)for(let t=0;te.__isSuspense;function Ig(e,t){t&&t.pendingBranch?ke(e)?t.effects.push(...e):t.effects.push(e):Up(e)}const Ye=Symbol.for("v-fgt"),ia=Symbol.for("v-txt"),Fn=Symbol.for("v-cmt"),ws=Symbol.for("v-stc"),uo=[];let qt=null;function he(e=!1){uo.push(qt=e?null:[])}function Vl(){uo.pop(),qt=uo[uo.length-1]||null}let la=1;function sr(e,t=!1){la+=e,e<0&&qt&&t&&(qt.hasOnce=!0)}function ql(e){return e.dynamicChildren=la>0?qt||wo:null,Vl(),la>0&&qt&&qt.push(e),e}function be(e,t,n,o,a,r){return ql(z(e,t,n,o,a,r,!0))}function Vn(e,t,n,o,a){return ql(wt(e,t,n,o,a,!0))}function ir(e){return e?e.__v_isVNode===!0:!1}function ca(e,t){return e.type===t.type&&e.key===t.key}const Kl=({key:e})=>e??null,lr=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?nt(e)||rt(e)||Ne(e)?{i:Vt,r:e,k:t,f:!!n}:e:null);function z(e,t=null,n=null,o=0,a=null,r=e===Ye?0:1,s=!1,i=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Kl(t),ref:t&&lr(t),scopeId:cl,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:o,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:Vt};return i?(cr(l,n),r&128&&e.normalize(l)):n&&(l.shapeFlag|=nt(n)?8:16),la>0&&!s&&qt&&(l.patchFlag>0||r&6)&&l.patchFlag!==32&&qt.push(l),l}const wt=Og;function Og(e,t=null,n=null,o=0,a=null,r=!1){if((!e||e===$l)&&(e=Fn),ir(e)){const i=Mo(e,t,!0);return n&&cr(i,n),la>0&&!r&&qt&&(i.shapeFlag&6?qt[qt.indexOf(e)]=i:qt.push(i)),i.patchFlag=-2,i}if(Yg(e)&&(e=e.__vccOpts),t){t=zg(t);let{class:i,style:l}=t;i&&!nt(i)&&(t.class=ot(i)),qe(l)&&(Va(l)&&!ke(l)&&(l=ht({},l)),t.style=St(l))}const s=nt(e)?1:Wl(e)?128:Xa(e)?64:qe(e)?4:Ne(e)?2:0;return z(e,t,n,o,a,s,r,!0)}function zg(e){return e?Va(e)||Fl(e)?ht({},e):e:null}function Mo(e,t,n=!1,o=!1){const{props:a,ref:r,patchFlag:s,children:i,transition:l}=e,c=t?Dg(a||{},t):a,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Kl(c),ref:t&&t.ref?n&&r?ke(r)?r.concat(lr(t)):[r,lr(t)]:lr(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ye?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Mo(e.ssContent),ssFallback:e.ssFallback&&Mo(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&o&&ps(u,l.clone(u)),u}function Ke(e=" ",t=0){return wt(ia,null,e,t)}function st(e="",t=!1){return t?(he(),Vn(Fn,null,e)):wt(Fn,null,e)}function $n(e){return e==null||typeof e=="boolean"?wt(Fn):ke(e)?wt(Ye,null,e.slice()):ir(e)?Rn(e):wt(ia,null,String(e))}function Rn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Mo(e)}function cr(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(ke(t))n=16;else if(typeof t=="object")if(o&65){const a=t.default;a&&(a._c&&(a._d=!1),cr(e,a()),a._c&&(a._d=!0));return}else{n=32;const a=t._;!a&&!Fl(t)?t._ctx=Vt:a===3&&Vt&&(Vt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(Ne(t)){if(o&65){cr(e,{default:t});return}t={default:t,_ctx:Vt},n=32}else t=String(t),o&64?(n=16,t=[Ke(t)]):n=8;e.children=t,e.shapeFlag|=n}function Dg(...e){const t={};for(let n=0;nPt||Vt;let ur,ua;{const e=za(),t=(n,o)=>{let a;return(a=e[n])||(a=e[n]=[]),a.push(o),r=>{a.length>1?a.forEach(s=>s(r)):a[0](r)}};ur=t("__VUE_INSTANCE_SETTERS__",n=>Pt=n),ua=t("__VUE_SSR_SETTERS__",n=>Ao=n)}const da=e=>{const t=Pt;return ur(e),e.scope.on(),()=>{e.scope.off(),ur(t)}},Yl=()=>{Pt&&Pt.scope.off(),ur(null)};function Zl(e){return e.vnode.shapeFlag&4}let Ao=!1;function Bg(e,t=!1,n=!1){t&&ua(t);const{props:o,children:a}=e.vnode,r=Zl(e);Cg(e,o,r,t),Mg(e,a,n||t);const s=r?Ug(e,t):void 0;return t&&ua(!1),s}function Ug(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,dg);const{setup:o}=n;if(o){hn();const a=e.setupContext=o.length>1?Vg(e):null,r=da(e),s=Po(o,e,0,[e.props,a]),i=Ci(s);if(mn(),r(),(i||e.sp)&&!aa(e)&&gs(e),i){if(s.then(Yl,Yl),t)return s.then(l=>{ua(!0);try{Jl(e,l,t)}finally{ua(!1)}}).catch(l=>{ea(l,e,0)});e.asyncDep=s}else Jl(e,s)}else Xl(e)}function Jl(e,t,n){Ne(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:qe(t)&&(e.setupState=nl(t)),Xl(e)}function Xl(e,t,n){const o=e.type;e.render||(e.render=o.render||pn);{const a=da(e);hn();try{pg(e)}finally{mn(),a()}}}const Wg={get(e,t){return Lt(e,"get",""),e[t]}};function Vg(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Wg),slots:e.slots,emit:e.emit,expose:t}}function dr(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(nl(Xo(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ra)return ra[n](e)},has(t,n){return n in t||n in ra}})):e.proxy}const qg=/(?:^|[-_])\w/g,Kg=e=>e.replace(qg,t=>t.toUpperCase()).replace(/[-_]/g,"");function Ql(e,t=!0){return Ne(e)?e.displayName||e.name:e.name||t&&e.__name}function ec(e,t,n=!1){let o=Ql(t);if(!o&&t.__file){const a=t.__file.match(/([^/\\]+)\.\w+$/);a&&(o=a[1])}if(!o&&e){const a=r=>{for(const s in r)if(r[s]===t)return s};o=a(e.components)||e.parent&&a(e.parent.type.components)||a(e.appContext.components)}return o?Kg(o):n?"App":"Anonymous"}function Yg(e){return Ne(e)&&"__vccOpts"in e}const _e=(e,t)=>Rp(e,t,Ao);function po(e,t,n){try{sr(-1);const o=arguments.length;return o===2?qe(t)&&!ke(t)?ir(t)?wt(e,null,[t]):wt(e,t):wt(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&ir(n)&&(n=[n]),wt(e,t,n))}finally{sr(1)}}const Zg="3.5.42";/**
* @vue/runtime-dom v3.5.42
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
@@ -47,7 +47,7 @@
transition-duration: 0.01ms !important;
scroll-behavior: auto !important;
}
-}`;function uf(e){let t=0;for(let n=0;nQn(x)||_,n={"messages.pinHint.tapDot":"Tap a dot to see who still needs prayer","pinHint.line1":"Tap a coloured dot","pinHint.line2":"someone still needs prayer"},{t:o,te:a}=nf("",{fallback:x=>n[x]}),r=bt("uiStore",null),s=bt("profileConfig",null),i=_e(()=>(r==null?void 0:r.theme)==="dark"),l=_e(()=>{var H;const x=(H=s==null?void 0:s.value)==null?void 0:H.pinHintLabel;if(x)return[x];const _=R=>{try{return a(R)?o(R):n[R]}catch{return n[R]}};return[_("pinHint.line1"),_("pinHint.line2")]}),c=Ce(!1),u=Ce(!0);let d=null;const h=Ce(!0);let k=[];const F=["inert","hidden","aria-hidden"];function w(x){const _=[];let H=x;for(;H;)H.nodeType===1&&_.push(H),H=H.parentNode||H.host||null;return _}function A(x){return w(x).some(_=>_.hasAttribute("inert")||_.hasAttribute("hidden")||_.getAttribute("aria-hidden")==="true")}function N(x){const _=()=>{const H=!A(x);H!==h.value&&(h.value=H,H&&Wt(te))};if(_(),!(typeof MutationObserver>"u"))for(const H of w(x))try{const R=new MutationObserver(_);R.observe(H,{attributes:!0,attributeFilter:F}),k.push(R)}catch{}}const y=Ce(null);let v=null,S=null,b=null,$=null,E=null,L=null,M=[],V=null,ae=null;function ee(){c.value=!1}r&&$t(()=>r.selectedPeopleGroup,x=>{x&&ee()});function C(x,_){var R;let H=x==null?void 0:x.parentElement;for(let X=0;H&&X<12;X++,H=H.parentElement){if(H===_||(R=H.classList)!=null&&R.contains("profile-loader"))return null;let $e="";try{$e=getComputedStyle(H).position}catch{}if($e&&$e!=="static"){const ce=H.getBoundingClientRect();if(ce.height>=120&&ce.width>=160)return H}}return null}function Z(x){var H;const _=(H=$==null?void 0:$.querySelector)==null?void 0:H.call($,".legend-mobile-sheet");if(!_)return 1/0;if(E&&L!==_){try{E.disconnect()}catch{}E=null}if(!E&&typeof ResizeObserver<"u")try{E=new ResizeObserver(()=>te()),E.observe(_),L=_}catch{E=null}try{const R=_.getBoundingClientRect();return!(R.height>16)||!(R.width>16)||x.right<=R.left||R.right<=x.left?1/0:R.top}catch{return 1/0}}function Q(x){var _,H,R,X;try{const $e=(_=$==null?void 0:$.querySelector)==null?void 0:_.call($,".mapboxgl-ctrl-bottom-right .mapboxgl-ctrl-attrib, .maplibregl-ctrl-bottom-right .maplibregl-ctrl-attrib, .mapboxgl-ctrl-bottom-right .doxa-attribution, .maplibregl-ctrl-bottom-right .doxa-attribution, .doxa-attribution");if(!$e)return 1/0;const ce=$e.getBoundingClientRect();if(!(ce.height>0)||!(ce.width>0))return 1/0;const fe=(X=(R=(H=y.value)==null?void 0:H.parentElement)==null?void 0:R.getBoundingClientRect)==null?void 0:X.call(R);return fe&&ce.top0&&x.style.setProperty("--pin-hint-lift",R+8+"px")}catch{}}function de(x){const _=y.value;if(!_||!(x!=null&&x.querySelector))return;let H=0;try{const X=x.querySelector(".mapboxgl-ctrl-bottom-right .mapboxgl-ctrl-attrib, .maplibregl-ctrl-bottom-right .maplibregl-ctrl-attrib, .mapboxgl-ctrl-bottom-right .doxa-attribution, .maplibregl-ctrl-bottom-right .doxa-attribution, .doxa-attribution");if(X){const $e=X.getBoundingClientRect(),ce=_.parentElement,fe=ce?ce.getBoundingClientRect():null;if(H=!fe||$e.top>=fe.top+fe.height/2?fe?Math.max($e.height||0,fe.bottom-$e.top):$e.height||0:0,ae!==X&&typeof ResizeObserver<"u"){if(b)try{b.disconnect()}catch{}ae=X,b=new ResizeObserver(()=>de(x)),b.observe(X)}}}catch{}const R=Math.min(Math.max(Math.ceil(H)||20,20),120);_.style.setProperty("--pin-hint-attrib-clear",R+"px"),te()}return To(()=>{var R,X,$e;const x=vn(),_=($e=(X=(R=x==null?void 0:x.proxy)==null?void 0:R.$el)==null?void 0:X.getRootNode)==null?void 0:$e.call(X);if(!_||typeof _.querySelector!="function")return;$=_,_.addEventListener("dxmaps:pin-selected",ee);let H=0;v=setInterval(()=>{H++;const ce=_.querySelector("canvas.maplibregl-canvas, canvas.mapboxgl-canvas");ce?(clearInterval(v),v=null,c.value=!0,Wt(()=>{const fe=C(ce,_),Me=y.value;if(fe&&Me&&Me.parentElement!==fe)try{fe.appendChild(Me),S=fe}catch{}if(fe&&N(fe),fe&&typeof IntersectionObserver<"u")try{d=new IntersectionObserver(Pe=>{const Ve=Pe[Pe.length-1],Se=!!Ve&&Ve.isIntersecting&&Ve.intersectionRatio>=.2;Se!==u.value&&(u.value=Se,Se&&Wt(te))},{threshold:[0,.2,.5]}),d.observe(fe)}catch{}de(_),te(),M.push(setTimeout(te,1200),setTimeout(te,3e3),setTimeout(te,6e3));try{const Pe=y.value&&y.value.offsetParent||null;if(Pe&&typeof ResizeObserver<"u"){if(V)try{V.disconnect()}catch{}V=new ResizeObserver(()=>te()),V.observe(Pe)}}catch{}})):H>40&&(clearInterval(v),v=null)},300)}),Lo(()=>{var x;if(v&&clearInterval(v),d){try{d.disconnect()}catch{}d=null}for(const _ of k)try{_.disconnect()}catch{}if(k=[],b){try{b.disconnect()}catch{}b=null}if(ae=null,V){try{V.disconnect()}catch{}V=null}if(E){try{E.disconnect()}catch{}E=null}L=null;for(const _ of M)clearTimeout(_);if(M=[],$&&$.removeEventListener("dxmaps:pin-selected",ee),$=null,S&&((x=y.value)==null?void 0:x.parentElement)===S)try{S.removeChild(y.value)}catch{}S=null}),Er(`
+}`;function uf(e){let t=0;for(let n=0;nt.innerHeight+1)}catch{return!1}}function pf({viewportH:e,scrolls:t,sheetTop:n=1/0,creditTop:o=1/0}){return Math.min(t?1/0:e,n,o)}const gf={class:"pin-hint-pill"},hf={class:"pin-hint-text"},mf=["aria-label"],ff={__name:"PinHint",setup(e){const t=(x,_)=>Qn(x)||_,n={"messages.pinHint.tapDot":"Tap a dot to see who still needs prayer","pinHint.line1":"Tap a coloured dot","pinHint.line2":"someone still needs prayer"},{t:o,te:a}=nf("",{fallback:x=>n[x]}),r=bt("uiStore",null),s=bt("profileConfig",null),i=_e(()=>(r==null?void 0:r.theme)==="dark"),l=_e(()=>{var H;const x=(H=s==null?void 0:s.value)==null?void 0:H.pinHintLabel;if(x)return[x];const _=R=>{try{return a(R)?o(R):n[R]}catch{return n[R]}};return[_("pinHint.line1"),_("pinHint.line2")]}),c=Ce(!1),u=Ce(!0);let d=null;const h=Ce(!0);let k=[];const F=["inert","hidden","aria-hidden"];function w(x){const _=[];let H=x;for(;H;)H.nodeType===1&&_.push(H),H=H.parentNode||H.host||null;return _}function A(x){return w(x).some(_=>_.hasAttribute("inert")||_.hasAttribute("hidden")||_.getAttribute("aria-hidden")==="true")}function N(x){const _=()=>{const H=!A(x);H!==h.value&&(h.value=H,H&&Wt(te))};if(_(),!(typeof MutationObserver>"u"))for(const H of w(x))try{const R=new MutationObserver(_);R.observe(H,{attributes:!0,attributeFilter:F}),k.push(R)}catch{}}const y=Ce(null);let v=null,S=null,b=null,$=null,E=null,L=null,M=[],V=null,ae=null;function ee(){c.value=!1}r&&$t(()=>r.selectedPeopleGroup,x=>{x&&ee()});function C(x,_){var R;let H=x==null?void 0:x.parentElement;for(let X=0;H&&X<12;X++,H=H.parentElement){if(H===_||(R=H.classList)!=null&&R.contains("profile-loader"))return null;let $e="";try{$e=getComputedStyle(H).position}catch{}if($e&&$e!=="static"){const ce=H.getBoundingClientRect();if(ce.height>=120&&ce.width>=160)return H}}return null}function Z(x){var H;const _=(H=$==null?void 0:$.querySelector)==null?void 0:H.call($,".legend-mobile-sheet");if(!_)return 1/0;if(E&&L!==_){try{E.disconnect()}catch{}E=null}if(!E&&typeof ResizeObserver<"u")try{E=new ResizeObserver(()=>te()),E.observe(_),L=_}catch{E=null}try{const R=_.getBoundingClientRect();return!(R.height>16)||!(R.width>16)||x.right<=R.left||R.right<=x.left?1/0:R.top}catch{return 1/0}}function Q(x){var _,H,R,X;try{const $e=(_=$==null?void 0:$.querySelector)==null?void 0:_.call($,".mapboxgl-ctrl-bottom-right .mapboxgl-ctrl-attrib, .maplibregl-ctrl-bottom-right .maplibregl-ctrl-attrib, .mapboxgl-ctrl-bottom-right .doxa-attribution, .maplibregl-ctrl-bottom-right .doxa-attribution, .doxa-attribution");if(!$e)return 1/0;const ce=$e.getBoundingClientRect();if(!(ce.height>0)||!(ce.width>0))return 1/0;const fe=(X=(R=(H=y.value)==null?void 0:H.parentElement)==null?void 0:R.getBoundingClientRect)==null?void 0:X.call(R);return fe&&ce.top0&&x.style.setProperty("--pin-hint-lift",R+8+"px")}catch{}}function de(x){const _=y.value;if(!_||!(x!=null&&x.querySelector))return;let H=0;try{const X=x.querySelector(".mapboxgl-ctrl-bottom-right .mapboxgl-ctrl-attrib, .maplibregl-ctrl-bottom-right .maplibregl-ctrl-attrib, .mapboxgl-ctrl-bottom-right .doxa-attribution, .maplibregl-ctrl-bottom-right .doxa-attribution, .doxa-attribution");if(X){const $e=X.getBoundingClientRect(),ce=_.parentElement,fe=ce?ce.getBoundingClientRect():null;if(H=!fe||$e.top>=fe.top+fe.height/2?fe?Math.max($e.height||0,fe.bottom-$e.top):$e.height||0:0,ae!==X&&typeof ResizeObserver<"u"){if(b)try{b.disconnect()}catch{}ae=X,b=new ResizeObserver(()=>de(x)),b.observe(X)}}}catch{}const R=Math.min(Math.max(Math.ceil(H)||20,20),120);_.style.setProperty("--pin-hint-attrib-clear",R+"px"),te()}return To(()=>{var R,X,$e;const x=vn(),_=($e=(X=(R=x==null?void 0:x.proxy)==null?void 0:R.$el)==null?void 0:X.getRootNode)==null?void 0:$e.call(X);if(!_||typeof _.querySelector!="function")return;$=_,_.addEventListener("dxmaps:pin-selected",ee);let H=0;v=setInterval(()=>{H++;const ce=_.querySelector("canvas.maplibregl-canvas, canvas.mapboxgl-canvas");ce?(clearInterval(v),v=null,c.value=!0,Wt(()=>{const fe=C(ce,_),Me=y.value;if(fe&&Me&&Me.parentElement!==fe)try{fe.appendChild(Me),S=fe}catch{}if(fe&&N(fe),fe&&typeof IntersectionObserver<"u")try{d=new IntersectionObserver(Pe=>{const Ve=Pe[Pe.length-1],Se=!!Ve&&Ve.isIntersecting&&Ve.intersectionRatio>=.2;Se!==u.value&&(u.value=Se,Se&&Wt(te))},{threshold:[0,.2,.5]}),d.observe(fe)}catch{}de(_),te(),M.push(setTimeout(te,1200),setTimeout(te,3e3),setTimeout(te,6e3));try{const Pe=y.value&&y.value.offsetParent||null;if(Pe&&typeof ResizeObserver<"u"){if(V)try{V.disconnect()}catch{}V=new ResizeObserver(()=>te()),V.observe(Pe)}}catch{}})):H>40&&(clearInterval(v),v=null)},300)}),Lo(()=>{var x;if(v&&clearInterval(v),d){try{d.disconnect()}catch{}d=null}for(const _ of k)try{_.disconnect()}catch{}if(k=[],b){try{b.disconnect()}catch{}b=null}if(ae=null,V){try{V.disconnect()}catch{}V=null}if(E){try{E.disconnect()}catch{}E=null}L=null;for(const _ of M)clearTimeout(_);if(M=[],$&&$.removeEventListener("dxmaps:pin-selected",ee),$=null,S&&((x=y.value)==null?void 0:x.parentElement)===S)try{S.removeChild(y.value)}catch{}S=null}),Er(`
@media print { .pin-hint { display: none !important; } }
.pin-hint { position: absolute; inset-inline-start: var(--map-fab-beside, 12px); inset-inline-end: 12px;
bottom: calc(max(var(--pin-hint-attrib-clear, 20px) + 12px, 8px) + var(--pin-hint-lift, 0px));
@@ -82,10 +82,10 @@
@media (prefers-reduced-motion: reduce) {
.pin-hint, .pin-hint-pill, .pin-hint-dot::after { animation: none !important; }
}
-`,"pin-hint"),(x,_)=>c.value?na((he(),be("div",{key:0,ref_key:"hintEl",ref:y,class:ot(["pin-hint",{dark:i.value}]),role:"status"},[z("span",df,[_[0]||(_[0]=z("span",{class:"pin-hint-dot","aria-hidden":"true"},null,-1)),z("span",pf,[(he(!0),be(Ye,null,an(l.value,(H,R)=>(he(),be("span",{key:R,class:"pin-hint-line"},W(H),1))),128))]),z("button",{class:"pin-hint-x",type:"button","aria-label":t("aria.dismissHint","Dismiss hint"),onClick:ee},"×",8,gf)])],2)),[[nh,u.value&&h.value]]):st("",!0)}},mf=".lsn-bar[data-v-9a589f6f]{display:flex;align-items:flex-start;gap:8px;flex:none;margin:0;padding-block:8px;padding-inline:12px 8px;background:#fff8e1;border-block-end:1px solid #f0d68a;color:#4a3b00;font:400 13px/1.4 system-ui,-apple-system,Segoe UI,sans-serif}.lsn-bar__text[data-v-9a589f6f]{flex:1 1 auto;margin:0}.lsn-bar__x[data-v-9a589f6f]{flex:none;min-width:24px;min-height:24px;padding:0;border:0;border-radius:4px;background:transparent;color:inherit;font:600 18px/1 system-ui,sans-serif;cursor:pointer}.lsn-bar__x[data-v-9a589f6f]:focus-visible{outline:2px solid #1a73e8;outline-offset:2px}.lsn-block[data-v-9a589f6f]{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%;min-height:200px;padding:24px;background:#f7f7f5;color:#333;text-align:center;font:400 15px/1.5 system-ui,-apple-system,Segoe UI,sans-serif}.lsn-block__text[data-v-9a589f6f]{max-width:28em;margin:0}",Vu=(e,t)=>{const n=e.__vccOpts||e;for(const[o,a]of t)n[o]=a;return n},ff={key:0,class:"lsn-block",role:"status"},bf={class:"lsn-block__text"},$f={key:0},yf={key:1,class:"lsn-bar",role:"note"},vf={class:"lsn-bar__text"},_f=["aria-label","title"],qu=Vu({__name:"LargerScreenNotice",props:{mode:{type:String,required:!0},label:{type:String,default:""},locale:{type:String,default:""}},emits:["dismiss"],setup(e){const t=e,n=(s,i)=>Qn(s,t.locale||void 0)||i,o=_e(()=>n("messages.largerScreenNotice","This experimental map is built for larger screens. It opens here, but parts of it may not fit or work well on a phone.")),a=_e(()=>n("messages.noticeDismiss","Dismiss")),r=_e(()=>n("messages.desktopOnlyNotice","{label} only supports desktop — open this page on a desktop to use it.").split("{label}"));return(s,i)=>e.mode==="desktop-only"?(he(),be("div",ff,[z("p",bf,[Ke(W(r.value[0]),1),r.value.length>1?(he(),be("bdi",$f,W(e.label),1)):st("",!0),Ke(W(r.value[1]||""),1)])])):(he(),be("div",yf,[z("p",vf,W(o.value),1),z("button",{type:"button",class:"lsn-bar__x","aria-label":a.value,title:a.value,onClick:i[0]||(i[0]=l=>s.$emit("dismiss"))},"×",8,_f)]))}},[["styles",[mf]],["__scopeId","data-v-9a589f6f"]]),wf="(max-width: 639.98px)";function kf(e){for(let t=e;t;t=t.parentNode||t.host)if(t.nodeType===1&&t.hasAttribute("data-doxa-gallery"))return!0;return!1}function Sf(e){var l;const t=_e(()=>{var u;const c=(u=e.value)==null?void 0:u.mobile;return c==="desktop-only"||c==="larger-screens"?c:null});let n=null;try{n=_h()}catch{n=null}const o=n?kf(n):!1,a=Ce(!1);if(typeof window<"u"&&typeof window.matchMedia=="function"){const c=window.matchMedia(wf);a.value=c.matches;const u=d=>{a.value=d.matches};(l=c.addEventListener)==null||l.call(c,"change",u),Lo(()=>{var d;return(d=c.removeEventListener)==null?void 0:d.call(c,"change",u)})}const r=_e(()=>{var c;return`dx-maps:larger-screens-dismissed:${((c=e.value)==null?void 0:c.profile)||""}`}),s=Ce(!1);$t(r,c=>{try{s.value=sessionStorage.getItem(c)==="1"}catch{s.value=!1}},{immediate:!0});function i(){s.value=!0;try{sessionStorage.setItem(r.value,"1")}catch{}}return{flag:t,blocked:_e(()=>t.value==="desktop-only"&&a.value&&!o),advise:_e(()=>t.value==="larger-screens"&&a.value&&!o&&!s.value),dismiss:i,label:_e(()=>{var c,u;return String(((c=e.value)==null?void 0:c.mobileLabel)||((u=e.value)==null?void 0:u.profile)||"")})}}let Pf=0;const Cf=Es("ui",{state:()=>({_storeInstanceId:++Pf,theme:"light",colorScheme:"default",reducedMotion:!1,highContrast:!1,activeTab:"doxa-regions",sidebarCollapsed:!1,mobileMenuOpen:!1,legendState:"collapsed",_customLegendHeight:null,searchMode:!1,hamburgerMenuOpen:!1,legendMode:"prayer",prayerFilter:null,engagementFilter:null,adoptionFilter:null,religionFilter:null,selectedPeopleGroup:null,breakpoint:"desktop",windowSize:{width:window.innerWidth,height:window.innerHeight},toasts:[],nextToastId:1,toastDuration:5e3,openModals:[],modalData:new Map,isGlobalLoading:!1,globalLoadingMessage:"Loading...",loadingStates:new Map,interactionHistory:[],maxHistoryLength:20,keyboardShortcutsEnabled:!0,screenReaderAnnouncement:"",focusTrapActive:!1,debugMode:!1,showPerformanceOverlay:!1}),getters:{isDarkTheme:e=>!1,isMobile:e=>e.breakpoint==="mobile",isTablet:e=>e.breakpoint==="tablet",isDesktop:e=>e.breakpoint==="desktop"||e.breakpoint==="wide",legendHeight:e=>e._customLegendHeight?e._customLegendHeight:e.legendState==="collapsed"?"48px":e.legendState==="open"?"30%":e.legendState==="fullyOpen"?"calc(100% - 80px)":"48px",caretRotation:e=>e.legendState==="collapsed"?0:90,showPullTab:e=>e.legendState==="open"||e.legendState==="fullyOpen",getToastsByType:e=>t=>e.toasts.filter(n=>n.type===t),hasOpenModal:e=>e.openModals.length>0,topModal:e=>e.openModals.length===0?null:e.openModals[e.openModals.length-1],isModalOpen:e=>t=>e.openModals.includes(t),isAnyLoading:e=>e.isGlobalLoading||e.loadingStates.size>0,isLoading:e=>t=>e.loadingStates.get(t)||!1},actions:{setTheme(e){if(!["light","dark","auto"].includes(e))return;e="light",this.theme=e;const n=this.isDarkTheme;document.documentElement.setAttribute("data-theme",n?"dark":"light");try{localStorage.setItem("theme",e)}catch{}},toggleTheme(){const e=this.theme==="light"?"dark":"light";this.setTheme(e)},setColorScheme(e){this.colorScheme=e,document.documentElement.setAttribute("data-color-scheme",e)},toggleReducedMotion(){this.reducedMotion=!this.reducedMotion,document.documentElement.setAttribute("data-reduced-motion",this.reducedMotion)},toggleHighContrast(){this.highContrast=!this.highContrast,document.documentElement.setAttribute("data-high-contrast",this.highContrast)},setActiveTab(e){this.activeTab=e,this.addToHistory({type:"tab-change",tabId:e,timestamp:Date.now()})},toggleSidebar(){this.sidebarCollapsed=!this.sidebarCollapsed},openMobileMenu(){this.mobileMenuOpen=!0},closeMobileMenu(){this.mobileMenuOpen=!1},setLegendMode(e){["prayer","detail"].includes(e)&&(this.legendMode=e)},setPrayerFilter(e){[null,"noPrayer","hasPrayer","fullPrayer"].includes(e)&&(this.prayerFilter=e)},setEngagementFilter(e){[null,"notEngaged","hasEngagement"].includes(e)&&(this.engagementFilter=e)},setAdoptionFilter(e){[null,"notAdopted","hasAdoption"].includes(e)&&(this.adoptionFilter=e)},setReligionFilter(e){[null,"C","M","H","B","E","J","S","N","O","U"].includes(e)&&(this.religionFilter=e)},selectPeopleGroup(e){const t=e&&!this.selectedPeopleGroup;this.selectedPeopleGroup=e,e?(t&&(this._legendStateBeforeDetail=this.legendState),this.legendState="open",this._customLegendHeight=null,this.setLegendMode("detail")):(this._legendStateBeforeDetail&&(this.legendState=this._legendStateBeforeDetail),this._legendStateBeforeDetail=null,this._customLegendHeight=null,this.setLegendMode("prayer"))},setLegendState(e){["collapsed","open","fullyOpen"].includes(e)&&(this.legendState=e)},toggleSearchMode(){this.searchMode=!this.searchMode},setSearchMode(e){this.searchMode=e},toggleHamburgerMenu(){this.hamburgerMenuOpen=!this.hamburgerMenuOpen},updateBreakpoint(e){let t;e<768?t="mobile":e<1024?t="tablet":e<1920?t="desktop":t="wide",t!==this.breakpoint&&(this.breakpoint=t)},updateWindowSize(e,t){this.windowSize.width=e,this.windowSize.height=t,this.updateBreakpoint(e)},showToast(e){const{message:t,type:n="info",duration:o=this.toastDuration,action:a=null,persistent:r=!1}=e,s={id:this.nextToastId++,message:t,type:n,duration:o,action:a,persistent:r,createdAt:Date.now()};return this.toasts.push(s),!r&&o>0&&setTimeout(()=>{this.removeToast(s.id)},o),s.id},showSuccess(e,t={}){return this.showToast({message:e,type:"success",...t})},showError(e,t={}){return this.showToast({message:e,type:"error",duration:7e3,...t})},showWarning(e,t={}){return this.showToast({message:e,type:"warning",...t})},showInfo(e,t={}){return this.showToast({message:e,type:"info",...t})},removeToast(e){const t=this.toasts.findIndex(n=>n.id===e);t!==-1&&this.toasts.splice(t,1)},clearAllToasts(){this.toasts=[]},openModal(e,t={}){this.openModals.includes(e)||(this.openModals.push(e),this.modalData.set(e,t),this.focusTrapActive=!0)},closeModal(e=null){if(e){const t=this.openModals.indexOf(e);t!==-1&&(this.openModals.splice(t,1),this.modalData.delete(e))}else{const t=this.openModals.pop();t&&this.modalData.delete(t)}this.openModals.length===0&&(this.focusTrapActive=!1)},closeAllModals(){this.openModals=[],this.modalData.clear(),this.focusTrapActive=!1},getModalData(e){return this.modalData.get(e)},showGlobalLoading(e="Loading..."){this.isGlobalLoading=!0,this.globalLoadingMessage=e},hideGlobalLoading(){this.isGlobalLoading=!1},setLoading(e,t=!0){t?this.loadingStates.set(e,!0):this.loadingStates.delete(e)},addToHistory(e){this.interactionHistory.push(e),this.interactionHistory.length>this.maxHistoryLength&&this.interactionHistory.shift()},clearHistory(){this.interactionHistory=[]},announce(e,t="polite"){this.screenReaderAnnouncement=e,setTimeout(()=>{this.screenReaderAnnouncement===e&&(this.screenReaderAnnouncement="")},1e3)},toggleKeyboardShortcuts(){this.keyboardShortcutsEnabled=!this.keyboardShortcutsEnabled},toggleDebugMode(){this.debugMode=!this.debugMode},togglePerformanceOverlay(){this.showPerformanceOverlay=!this.showPerformanceOverlay},toggleLegend(){this.legendState==="fullyOpen"?this.legendState="open":this.legendState==="open"?this.legendState="collapsed":this.legendState="open",this._customLegendHeight=null},openLegend(){this.legendState="open",this._customLegendHeight=null},fullyOpenLegend(){this.legendState="fullyOpen",this._customLegendHeight=null},collapseLegend(){this.legendState="collapsed",this._customLegendHeight=null},setLegendHeight(e){this._customLegendHeight=e},handleLegendItemClick(){this.legendState==="fullyOpen"&&(this.legendState="open")},enableSearchMode(){this.searchMode=!0},disableSearchMode(){this.searchMode=!1},toggleHamburgerMenu(){this.hamburgerMenuOpen=!this.hamburgerMenuOpen},openHamburgerMenu(){this.hamburgerMenuOpen=!0},closeHamburgerMenu(){this.hamburgerMenuOpen=!1},init(){let e=null;try{e=localStorage.getItem("theme")}catch{}e&&this.setTheme(e),new ResizeObserver(n=>{for(const o of n)this.updateWindowSize(o.contentRect.width,o.contentRect.height)}).observe(document.documentElement),window.matchMedia&&(window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",n=>{this.theme==="auto"&&document.documentElement.setAttribute("data-theme",n.matches?"dark":"light")}),window.matchMedia("(prefers-reduced-motion: reduce)").addEventListener("change",n=>{this.reducedMotion=n.matches,document.documentElement.setAttribute("data-reduced-motion",n.matches)}))}}}),xf=Es("map",{state:()=>({maps:{},activeMapId:null,selectedRegion:null,selectedFamily:null,selectedAffinityBlock:null,selectedLanguage:null,selectedDialect:null,activeLegendTab:"family",selectedResource:null,selectedPeopleGroup:null,selectedPinIds:[],globalFilters:{},searchQuery:"",autoFly:{isActive:!1,speed:1,interval:5e3,currentIndex:0,items:[],timerId:null},guidedTour:{isActive:!1,currentStep:0,steps:[]},showClusters:!1,clusterMode:"region",clusteringMode:"off",clusterPinOpacity:.6,clusterFilterProperty:null,clusterFilterValue:null,flySpeed:"normal",fullscreenMapId:null,preferences:{theme:"light",defaultMapStyle:"streets",enableAnimations:!0,autoSavePreferences:!0}}),getters:{getMapById:e=>t=>e.maps[t],activeMap:e=>e.activeMapId?e.maps[e.activeMapId]:null,hasMap:e=>t=>t in e.maps,allMapIds:e=>Object.keys(e.maps),hasSelection:e=>!!(e.selectedRegion||e.selectedFamily||e.selectedAffinityBlock||e.selectedPeopleGroup),isAutoFlying:e=>e.autoFly.isActive,isGuidedTourActive:e=>e.guidedTour.isActive,isMapFullscreen:e=>t=>e.fullscreenMapId===t},actions:{registerMap(e,t,n={}){let o=1.5;n.zoom!==void 0?o=n.zoom:t&&typeof t.getZoom=="function"&&(o=t.getZoom());let a=[0,0];if(n.center)a=n.center;else if(t&&typeof t.getCenter=="function"){const r=t.getCenter();r&&(a=[r.lng,r.lat])}this.maps[e]={instance:t,config:n,isReady:!1,zoom:o,center:a,registeredAt:Date.now()},this.activeMapId||(this.activeMapId=e)},setMapReady(e){const t=this.maps[e];t&&(t.isReady=!0)},updateMapState(e,t){const n=this.maps[e];n&&Object.assign(n,t)},unregisterMap(e){if(delete this.maps[e],this.activeMapId===e){const t=this.allMapIds;this.activeMapId=t.length>0?t[0]:null}},setActiveMap(e){e in this.maps&&(this.activeMapId=e)},selectRegion(e){this.selectedFamily=null,this.selectedAffinityBlock=null,this.selectedPeopleGroup=null,this.selectedRegion=e},selectFamily(e){this.selectedRegion=null,this.selectedAffinityBlock=null,this.selectedPeopleGroup=null,this.selectedLanguage=null,this.selectedDialect=null,this.selectedFamily=e},setActiveLegendTab(e){this.activeLegendTab=e},selectLanguage(e){this.selectedRegion=null,this.selectedAffinityBlock=null,this.selectedPeopleGroup=null,this.selectedFamily=null,this.selectedDialect=null,this.selectedLanguage=e},selectDialect(e){this.selectedRegion=null,this.selectedFamily=null,this.selectedLanguage=null,this.selectedAffinityBlock=null,this.selectedPeopleGroup=null,this.selectedDialect=e},selectAffinityBlock(e){this.selectedRegion=null,this.selectedFamily=null,this.selectedPeopleGroup=null,this.selectedAffinityBlock=e},selectPeopleGroup(e){this.selectedPeopleGroup=e},selectResource(e){this.selectedRegion=null,this.selectedFamily=null,this.selectedAffinityBlock=null,this.selectedPeopleGroup=null,this.selectedResource===e?this.selectedResource=null:this.selectedResource=e},clearSelections(){this.selectedRegion=null,this.selectedFamily=null,this.selectedLanguage=null,this.selectedDialect=null,this.selectedAffinityBlock=null,this.selectedResource=null,this.selectedPeopleGroup=null,this.selectedPinIds=[],this.showClusters=!1,this.clusterMode="region"},setSelectedPinIds(e){this.selectedPinIds=e||[]},setFilter(e,t){this.globalFilters[e]=t},removeFilter(e){delete this.globalFilters[e]},clearFilters(){this.globalFilters={},this.searchQuery=""},setSearchQuery(e){this.searchQuery=e},startAutoFly(e,t=1){this.stopAutoFly(),this.autoFly.isActive=!0,this.autoFly.speed=t,this.autoFly.items=e,this.autoFly.currentIndex=0},stopAutoFly(){this.autoFly.timerId&&(clearInterval(this.autoFly.timerId),this.autoFly.timerId=null),this.autoFly.isActive=!1,this.autoFly.currentIndex=0},setAutoFlySpeed(e){this.autoFly.speed=Math.max(.5,Math.min(2,e))},nextAutoFlyItem(){if(!this.autoFly.isActive||this.autoFly.items.length===0)return;this.autoFly.currentIndex=(this.autoFly.currentIndex+1)%this.autoFly.items.length;const e=this.autoFly.items[this.autoFly.currentIndex];e.type==="region"?this.selectRegion(e):e.type==="family"&&this.selectFamily(e)},toggleClusters(e){typeof e=="boolean"?this.showClusters=e:this.showClusters=!this.showClusters},setClusterMode(e){["region","language-family","affinity-block","mst","resource"].includes(e)&&(this.clusterMode=e)},setClusteringMode(e){["off","mapbox","mst","network"].includes(e)&&(this.clusteringMode=e,this.showClusters=e!=="off")},setClusterFilter(e,t){this.clusterFilterProperty=e||null,this.clusterFilterValue=t||null},clearClusterFilter(){this.clusterFilterProperty=null,this.clusterFilterValue=null},setFlySpeed(e){["slow","normal","fast"].includes(e)&&(this.flySpeed=e)},setSelectedFamily(e){this.selectFamily(e)},clearSelectedFamily(){this.selectFamily(null)},setSelectedRegion(e){this.selectRegion(e)},clearSelectedRegion(){this.selectRegion(null)},clearSelectedResource(){this.selectResource(null)},clearSelectedLanguage(){this.selectLanguage(null)},clearSelectedDialect(){this.selectDialect(null)},toggleFullscreen(e){this.fullscreenMapId===e?this.fullscreenMapId=null:this.fullscreenMapId=e},loadPreferences(){try{const e=localStorage.getItem("mapUserPreferences");if(e){const t=JSON.parse(e);this.preferences={...this.preferences,...t}}}catch(e){console.error("[mapStore] Failed to load preferences:",e)}},savePreferences(){try{localStorage.setItem("mapUserPreferences",JSON.stringify(this.preferences))}catch(e){console.error("[mapStore] Failed to save preferences:",e)}},setPreference(e,t){this.preferences[e]=t,this.preferences.autoSavePreferences&&this.savePreferences()}}}),Tf=Es("data",{state:()=>({sources:{},loadingStates:{}}),actions:{async load(e,t){if(!this.sources[e]){this.loadingStates[e]={isLoading:!0,error:null};try{const n=await t();this.sources[e]=Xo({features:n,timestamp:Date.now()}),this.loadingStates[e]={isLoading:!1,error:null}}catch(n){console.error(`[dataStore] Failed to load source "${e}":`,n),this.loadingStates[e]={isLoading:!1,error:n}}}},clearSource(e){delete this.sources[e],delete this.loadingStates[e]},cacheSourceData(e,t){this.sources[e]=Xo({features:t.normalizedData||[],timestamp:t.timestamp||Date.now()})},hasSourceData(e){return!!this.sources[e]},getSourceData(e){return this.sources[e]?{normalizedData:this.sources[e].features}:null}},getters:{getData:e=>t=>{var n;return((n=e.sources[t])==null?void 0:n.features)??null},isLoading:e=>t=>{var n;return((n=e.loadingStates[t])==null?void 0:n.isLoading)??!1},getError:e=>t=>{var n;return((n=e.loadingStates[t])==null?void 0:n.error)??null}}}),Lf={activeSource:"pray-tools"},Mf=".profile-loader[data-locale-pending][data-v-8e369bc8] .stl-tabs,.profile-loader[data-locale-pending][data-v-8e369bc8] .stl-title,.profile-loader[data-locale-pending][data-v-8e369bc8] .stl-rows,.profile-loader[data-locale-pending][data-v-8e369bc8] .legend-title,.profile-loader[data-locale-pending][data-v-8e369bc8] .legend-content,.profile-loader[data-locale-pending][data-v-8e369bc8] .legend-reopen-label,.profile-loader[data-locale-pending][data-v-8e369bc8] .lt-btn-text,.profile-loader[data-locale-pending][data-v-8e369bc8] .rd-topbar,.profile-loader[data-locale-pending][data-v-8e369bc8] .rd-exportbar{visibility:hidden}.profile-loader[data-v-8e369bc8]{border-radius:var(--map-radius-corners, var(--map-radius, 0px));width:100%;height:100%;min-height:var(--profile-min-h, 100dvh);position:relative}.profile-loader.has-screen-notice[data-v-8e369bc8]{display:flex;flex-direction:column}.profile-loader.has-screen-notice[data-v-8e369bc8]>:not(.lsn-bar){flex:1 1 auto;min-height:0;position:relative!important;inset:auto!important}.profile-error[data-v-8e369bc8]{padding:1rem;background:#fff3cd;border:1px solid #ffc107;border-radius:4px;font-family:monospace;font-size:13px}",Af=["dir","data-locale-pending"],Ef={key:0,class:"profile-error"},Nf={key:1,class:"profile-error"},Ff=Vu({__name:"ProfileLoader",props:{profileConfig:{type:String,default:""}},setup(e){var ee;const n=e,o=bt("profileConfig",null),a=_e(()=>{var Z;if(!n.profileConfig)return null;let C;try{C=JSON.parse(n.profileConfig)}catch{return console.error("[ProfileLoader] Invalid profile-config JSON:",n.profileConfig),null}if(C&&C.assetsBase===void 0){const Q=(Z=o==null?void 0:o.value)==null?void 0:Z.assetsBase;typeof Q=="string"&&Q&&(C.assetsBase=Q)}return C}),r=bt("profileModules",null);if(!r)throw new Error('[ProfileLoader] No profileModules provided. Bundle entry must `app.provide("profileModules", import.meta.glob("./*.vue"))`');const s=(()=>{const C=Object.keys(r||{});if(C.length!==1)return null;const Z=C[0].match(/^\.\/(.+)\.vue$/);return Z?Z[1]:null})(),i=_e(()=>{var C;return((C=a.value)==null?void 0:C.profile)||s||null}),l=Gh(),c=_e(()=>{var Z;const C=(Z=a.value)==null?void 0:Z.tk;return typeof C=="string"&&C?C:l.value||""});$t(()=>{var C;return(C=a.value)==null?void 0:C.tk},C=>{typeof C=="string"&&C&&Rs(C)},{immediate:!0}),$t(()=>{var C;return(C=a.value)==null?void 0:C.tokenUrl},C=>{var Z;C&&!((Z=a.value)!=null&&Z.tk)&&!l.value&&jh(C)},{immediate:!0});const u=_e(()=>{var C;return((C=a.value)==null?void 0:C.dataSource)||Lf.activeSource}),d=_e(()=>{var C;return((C=a.value)==null?void 0:C.colorSet)||"default"}),h=_e(()=>!1),k=_e(()=>{var C;return((C=a.value)==null?void 0:C.pinHint)!==!1}),F=_e(()=>{var Z,Q;const C=(((Z=a.value)==null?void 0:Z.locale)||((Q=a.value)==null?void 0:Q.lang)||Gu()||"").split("-")[0].toLowerCase();return _a.includes(C)?C:""}),w=bt("appI18n",null);ul(()=>{F.value&&(w&&(w.global.locale.value=F.value),Hu(F.value),ni(w,F.value).catch(()=>{}))});const A=_e(()=>{var C,Z;return F.value||((Z=(C=w==null?void 0:w.global)==null?void 0:C.locale)==null?void 0:Z.value)||"en"}),N=_e(()=>Lr.has(A.value)?"rtl":"ltr"),{blocked:y,advise:v,dismiss:S,label:b}=Sf(a),$=Ce(!1);ul(C=>{const Z=A.value;if(!Lr.has(Z)){$.value=!1;return}let Q=!0;C(()=>{Q=!1}),$.value=!0,Jm(Z).finally(()=>{Q&&($.value=!1)})});const E=_e(()=>{var C;return((C=a.value)==null?void 0:C.instanceId)||"doxa-map-"+Math.random().toString(36).slice(2,9)}),L=_e(()=>{if(!i.value)return null;const C=`./${i.value}.vue`;return r[C]?lf(r[C]):(console.error(`[ProfileLoader] Profile not found: "${i.value}". Available:`,Object.keys(r)),null)});on("mapboxToken",c),on("dataSource",u),on("colorSet",d),on("profileConfig",a),on("instanceId",E),on("lang",A);const M=Cf(),V=xf(),ae=Tf();try{const C=typeof localStorage<"u"?localStorage.getItem("theme"):null;C&&((ee=M.setTheme)==null||ee.call(M,C))}catch{}return on("uiStore",M),on("mapStore",V),on("dataStore",ae),(C,Z)=>(he(),be("div",{class:ot(["profile-loader",{"has-screen-notice":Ie(v)}]),dir:N.value,"data-locale-pending":$.value?"":null},[a.value?L.value?Ie(y)?(he(),Vn(qu,{key:2,mode:"desktop-only",label:Ie(b),locale:A.value},null,8,["label","locale"])):(he(),be(Ye,{key:3},[Ie(v)?(he(),Vn(qu,{key:0,mode:"larger-screens",locale:A.value,onDismiss:Ie(S)},null,8,["locale","onDismiss"])):st("",!0),(he(),Vn(yl(L.value)))],64)):(he(),be("div",Nf,[z("p",null,[Z[1]||(Z[1]=Ke("⚠️ Profile ",-1)),z("strong",null,'"'+W(i.value)+'"',1),Z[2]||(Z[2]=Ke(" not found.",-1))])])):(he(),be("div",Ef,[...Z[0]||(Z[0]=[z("p",null,[Ke("⚠️ "),z("strong",null,"doxa-map"),Ke(": missing or invalid "),z("code",null,"profile-config"),Ke(" prop.")],-1),z("p",null,[Ke("Example: "),z("code",null,`profile-config='{"profile":"example-map","tk":"pk.eyJ..."}'`)],-1)])])),L.value&&h.value?(he(),Vn(yl(Ie(null)),{key:4})):st("",!0),L.value&&k.value?(he(),Vn(hf,{key:5})):st("",!0)],10,Af))}},[["styles",[Mf]],["__scopeId","data-v-8e369bc8"]]);function Ku(e,t,n){var a;const o=(a=e==null?void 0:e._context)==null?void 0:a.provides;if(o&&t in o){o[t]=n;return}e.provide(t,n)}function Rf(e,t){var a;const n=(a=e==null?void 0:e._context)==null?void 0:a.provides,o=n?Object.getPrototypeOf(n):null;o&&Object.setPrototypeOf(n,null);try{return t()}finally{o&&Object.setPrototypeOf(n,o)}}function If({profileModules:e={},configureApp:t=null}={}){return yh(Ff,{configureApp(n){const o=Ah();Rf(n,()=>n.use(o));const a=Xm();n.use(a),Ku(n,"appI18n",a),Ku(n,"profileModules",e),t&&t(n,{pinia:o,i18n:a})}})}const Of=If({profileModules:Object.assign({"./upg-neighbor.vue":()=>Bt(()=>Promise.resolve().then(()=>O$),void 0)})});typeof customElements<"u"&&!customElements.get("upg-neighbor")&&customElements.define("upg-neighbor",Of);const zf="rgba(120, 128, 134, 0.28)",Yu="36px",Zu=()=>{};function Df(e,t={}){const{enabled:n=!0}=t;if(!n||!e)return Zu;const o=Array.from(e.querySelectorAll(".map-scroll-edge"));if(!o.length)return Zu;const a=y=>y.classList.contains("map-scroll-edge--left");for(const y of o)y.style.background=`linear-gradient(${a(y)?"to right":"to left"}, ${zf} ${Yu}, transparent ${Yu})`,y.style.opacity="0",y.style.transition="opacity 0.16s ease",y.style.userSelect="none",y.style.webkitUserSelect="none";const r=y=>{y.style.opacity="1"},s=y=>{y.style.opacity="0"},i=()=>o.find(y=>!a(y))||null,l=new Set;let c=!1,u=null;const d=()=>{for(const y of o)l.has(y)||s(y)},h=()=>{const y=i();y&&(r(y),u&&clearTimeout(u),u=setTimeout(d,250))},k=()=>h(),F=y=>{if(!(y.touches&&y.touches.length===1))return;const v=y.target;v&&v.classList&&v.classList.contains("map-scroll-edge")||h()},w=()=>{u&&clearTimeout(u),d()};e.addEventListener("wheel",k,{passive:!0}),e.addEventListener("touchmove",F,{passive:!0}),e.addEventListener("touchend",w,{passive:!0}),e.addEventListener("touchcancel",w,{passive:!0});const A=()=>{c||h()};typeof window<"u"&&window.addEventListener("scroll",A,{passive:!0});const N=[];for(const y of o){const v=()=>{l.add(y),r(y)},S=()=>{l.delete(y),s(y)},b=()=>{c=!0,r(y)},$=()=>{c=!1,s(y)};y.addEventListener("mouseenter",v),y.addEventListener("mouseleave",S),y.addEventListener("touchstart",b,{passive:!0}),y.addEventListener("touchend",$,{passive:!0}),N.push(()=>{y.removeEventListener("mouseenter",v),y.removeEventListener("mouseleave",S),y.removeEventListener("touchstart",b),y.removeEventListener("touchend",$)})}return function(){u&&(clearTimeout(u),u=null),e.removeEventListener("wheel",k),e.removeEventListener("touchmove",F),e.removeEventListener("touchend",w),e.removeEventListener("touchcancel",w),typeof window<"u"&&window.removeEventListener("scroll",A);for(const v of N)v();for(const v of o)s(v)}}const Gf=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 jf(e,t="mapbox"){if(typeof e!="string"||!e)return{style:void 0,lightPreset:void 0,paint:void 0};const n=Gf[e];return n?t==="maplibre"?{style:n.maplibre,lightPreset:void 0,paint:n.paint}:{style:n.mapbox,lightPreset:n.lightPreset,paint:n.paint}:/^(mapbox:\/\/|https?:\/\/)/.test(e)?{style:e,lightPreset:void 0,paint:void 0}:{style:void 0,lightPreset:void 0,paint:void 0}}function Hf(e,t){if(!e||!Array.isArray(t))return[];const n=[];for(const o of t)if(!(!o||!o.layer||!o.prop))try{if(!e.getLayer(o.layer))continue;e.setPaintProperty(o.layer,o.prop,o.value),n.push(o.layer+"."+o.prop)}catch{}return n}const Bf=["mapbox","maplibre"],Uf="auto";function Ju(e){return e&&typeof e=="object"&&"value"in e&&!("provider"in e)&&!("profile"in e)?e.value:e}function Wf(e,{token:t}={}){const n=Ju(e);return Xu(n)||"maplibre"}function Xu(e){const t=Ju(e),n=t==null?void 0:t.provider,o=typeof location<"u"?new URLSearchParams(location.search).get("provider"):void 0,a=typeof window<"u"?window.MAP_PROVIDER:void 0,r=String(n||o||a||Uf).toLowerCase().trim();return Bf.includes(r)?r:""}function Qu(e,t){if(!e||!t||typeof e.setProjection!="function")return!1;const n=typeof window<"u"?window.maplibregl:null,o=!!(n&&n.Map&&e instanceof n.Map);try{return e.setProjection(o?{type:t}:t),!0}catch{return!1}}const ka={mapboxGlJs:{url:"https://api.mapbox.com/mapbox-gl-js/v3.24.0/mapbox-gl.js",integrity:"sha384-tO0clamXONKwbiz7O6xJpUeyJbTSPugC+xM9clvfFvKTH3i8SmCawHGdf5quMWmZ"},mapboxGlCss:{url:"https://api.mapbox.com/mapbox-gl-js/v3.24.0/mapbox-gl.css",integrity:"sha384-rp1X/jJ9MpWPef9OimfXhOaOc4Gzs87yQvF+ajwY6X2H4PTeHNycNlLWiWvj7ehV"},maplibreGlJs:{url:"https://cdn.jsdelivr.net/npm/maplibre-gl@5.24.0/dist/maplibre-gl.js",integrity:"sha384-5+cfbwT0iiub6VsQAdn6yz16nr6sDiQoHx6tm4O8OVYXHYOxcffFmCJBL0dgdvGp"},maplibreGlCss:{url:"https://cdn.jsdelivr.net/npm/maplibre-gl@5.24.0/dist/maplibre-gl.css",integrity:"sha384-uTttxo/aOKbdE5RlD/SPzSDoDmNvGlUYPjONi2MN/b7c9HPSvW07OIuyP7uL6jxK"},mapboxGeocoderJs:{url:"https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-geocoder/v5.0.0/mapbox-gl-geocoder.min.js",integrity:"sha384-Lx9WK8XhZk57czwxt6B6nyaDHB5Ayrcrsu4Fw4bCp/Ot/QLOsUZ0xYqLOpOOSXZw"},mapboxGeocoderCss:{url:"https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-geocoder/v5.0.0/mapbox-gl-geocoder.css",integrity:"sha384-1KNhwJNCQTr0DCi/5/OnQcFytgycxTahxNZaqKbAtqmY8bUhu26qxXqvDGXXwplS"},maplibreGeocoderJs:{url:"https://cdn.jsdelivr.net/npm/@maplibre/maplibre-gl-geocoder@1.9.4/dist/maplibre-gl-geocoder.min.js",integrity:"sha384-RGV5vfoJd7alk8HE+71IyVfu19ciH1FKA15+AuXs6OeBM2npXrmTPFqG23yMiHXi"},maplibreGeocoderCss:{url:"https://cdn.jsdelivr.net/npm/@maplibre/maplibre-gl-geocoder@1.9.4/dist/maplibre-gl-geocoder.css",integrity:"sha384-UkDpPApjTpHJHpcJiSNAmbobh30W0/dmt0DoKm4V8CWYRYvQ/Jhd/ijFz0tFdVnH"},d3:{url:"https://cdn.jsdelivr.net/npm/d3@7.9.0/dist/d3.min.js",integrity:"sha384-CjloA8y00+1SDAUkjs099PVfnY2KmDC2BZnws9kh8D/lX1s46w6EPhpXdqMfjK6i"}};function ri(e,t){const n=Object.values(ka).find(o=>o.url===t);return n&&(e.integrity=n.integrity,e.crossOrigin="anonymous"),e}const ed={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 Vf(e){return!!e&&typeof window<"u"&&e===window.maplibregl}function qf(e){if(typeof window>"u")return!1;const t=e?[e]:[window.maplibregl,window.mapboxgl].filter(Boolean);let n=!1;for(const o of t)if(!(!o||!o.setRTLTextPlugin))try{if(Vf(o)){if(o.getRTLTextPluginStatus&&o.getRTLTextPluginStatus()!=="unavailable")continue;const a=o.setRTLTextPlugin(ed.maplibre,!0);a&&a.catch&&a.catch(()=>{})}else o.setRTLTextPlugin(ed.mapbox,null,!0);n=!0}catch{}return n}const Kf=/\[\s*"get"\s*,\s*"name(?::latin|:nonlatin|:en|_en|_int)?"\s*\]|\{name(?::latin|:nonlatin|:en|_en|_int)?\}/,td=new WeakMap;function Yf(e){return typeof window<"u"&&!!window.maplibregl&&e instanceof window.maplibregl.Map}function nd(e,t){if(!e||!t)return 0;const n=String(t).split("-")[0].toLowerCase();try{if(!Yf(e))return typeof e.setLanguage=="function"&&e.setLanguage(n),0;const o=e.getStyle&&e.getStyle();if(!o||!Array.isArray(o.layers))return 0;let a=td.get(e);a||(a=new Map,td.set(e,a));let r=0;for(const s of o.layers){if(s.type!=="symbol"||!s.layout||s.layout["text-field"]==null)continue;const i=s.layout["text-field"],l=JSON.stringify(i);if(l.startsWith('["coalesce",["get","name:')){if(!a.has(s.id))continue}else{if(!Kf.test(l))continue;a.set(s.id,i)}const c=["coalesce",["get","name:"+n],["get","name_"+n],["get","name:latin"],["get","name_en"],["get","name"]];e.setLayoutProperty(s.id,"text-field",c),r++}return r}catch{return 0}}const zo={mapbox:{global:"mapboxgl",js:ka.mapboxGlJs.url,css:ka.mapboxGlCss.url},maplibre:{global:"maplibregl",js:ka.maplibreGlJs.url,css:ka.maplibreGlCss.url}},Zf={"Map.Title":"map","Marker.Title":"marker","Popup.Close":"closePopup","NavigationControl.ZoomIn":"zoomIn","NavigationControl.ZoomOut":"zoomOut","NavigationControl.ResetBearing":"resetBearing","AttributionControl.ToggleAttribution":"toggleAttribution","AttributionControl.MapFeedback":"mapFeedback","FullscreenControl.Enter":"enterFullscreen","FullscreenControl.Exit":"exitFullscreen","GeolocateControl.FindMyLocation":"findMyLocation","GeolocateControl.LocationNotAvailable":"locationNotAvailable","GlobeControl.Enable":"enableGlobe","GlobeControl.Disable":"disableGlobe","CooperativeGesturesHandler.WindowsHelpText":"ctrlScroll","CooperativeGesturesHandler.MacHelpText":"cmdScroll","CooperativeGesturesHandler.MobileHelpText":"twoFingers","ScrollZoomBlocker.CtrlMessage":"ctrlScroll","ScrollZoomBlocker.CmdMessage":"cmdScroll","TouchPanBlocker.Message":"twoFingers"};function od(e,t){const n={};for(const[a,r]of Object.entries(Zf)){const s=Qn(`mapui.${r}`,e);s&&(n[a]=s)}const o=Qn(t==="maplibre"?"mapui.maplibreLogo":"mapui.mapboxHomepage",e);return o&&(n["LogoControl.Title"]=o),n}function ad(e){if(typeof window>"u")return;const t=window,n=()=>{try{const o=e.getContainer().querySelector(".mapboxgl-ctrl-logo, .maplibregl-ctrl-logo");o&&(o.style.display="none")}catch{}};if(t.__doxaLogoOwner&&t.__doxaLogoOwner!==e){e.once("load",n),n();return}t.__doxaLogoOwner=e,e.once("remove",()=>{t.__doxaLogoOwner===e&&(t.__doxaLogoOwner=null)})}const Jf=zo.mapbox.css,Xf="https://tiles.openfreemap.org/styles/liberty",Qf="https://tiles.openfreemap.org/styles/fiord";function si(e){var n;const t=((n=zo[e])==null?void 0:n.global)||zo.mapbox.global;return typeof window<"u"?window[t]:void 0}async function rd(e){const t=zo[e]||zo.mapbox;if(si(e)||typeof document>"u")return;if(!document.querySelector(`link[href="${t.css}"]`)){const o=document.createElement("link");o.rel="stylesheet",o.href=t.css,ri(o,t.css),document.head.appendChild(o)}const n=document.querySelector(`script[src="${t.js}"]`);if(n){if(si(e))return;await new Promise(o=>{n.addEventListener("load",o,{once:!0}),n.addEventListener("error",o,{once:!0})});return}await new Promise((o,a)=>{const r=document.createElement("script");r.src=t.js,ri(r,t.js),r.async=!1,r.addEventListener("load",o,{once:!0}),r.addEventListener("error",()=>a(new Error(`[useMapInstance] Failed to load ${e} engine script`)),{once:!0}),document.head.appendChild(r)})}async function eb(e,t){if(!e)return;const n=e.getRootNode();if(!(n instanceof ShadowRoot))return;const o=s=>new Promise(i=>setTimeout(i,s)),a=n.querySelector(`link[href="${t}"]`);if(a){if(a.sheet)return;await Promise.race([new Promise(s=>{a.addEventListener("load",s,{once:!0}),a.addEventListener("error",s,{once:!0})}),o(2e3)]);return}const r=document.createElement("link");r.rel="stylesheet",r.href=t,ri(r,t),await Promise.race([new Promise(s=>{r.addEventListener("load",s,{once:!0}),r.addEventListener("error",s,{once:!0}),n.prepend(r)}),o(2e3)])}function tb(e,t){return typeof e=="string"&&/^https?:\/\//.test(e)?e:t==="night"||t==="dusk"?Qf:Xf}const nb=85.0511,ii=-2,ob=0,ab=-60;function sd(e){return(1-Math.log(Math.tan(Math.PI/4+e*Math.PI/180/2))/Math.PI)/2}function rb(e,t,n,o){if(!e||e<=0||!t||t<=0)return ob;const a=Math.log2(e/512),r=sd(o)-sd(nb),s=Math.log2(t/(512*r)),i=Math.max(a,s);return Math.max(ii,Math.min(i,(n??18)-1))}function id({containerRef:e,accessToken:t,style:n,config:o=void 0,provider:a=void 0,center:r=[20,10],zoom:s=2,bounds:i=void 0,fitBoundsOptions:l=void 0,minZoom:c=void 0,skipWorldFloor:u=!1,maxZoom:d=18,pitch:h=0,bearing:k=0,renderWorldCopies:F=!0,showEdgeBorders:w=!0,southCutoff:A=ab,maxBounds:N=void 0}){const y=qa(null),v=Ce(!1);let S=null,b=null,$=null,E=null;try{E=bt("profileConfig",null)}catch{}const L=!a&&!Xu(E);a=a||Wf(E,{token:t});let M=a==="maplibre";typeof document<"u"&&rd(a).catch(()=>{});let V=null;try{V=bt("lang",null)}catch{}const ae=()=>{const Z=V&&typeof V=="object"&&"value"in V?V.value:V;if(typeof Z=="string"&&Z)return Z;const Q=E&&typeof E=="object"&&"value"in E?E.value:E;if(Q&&(Q.locale||Q.lang))return String(Q.locale||Q.lang);try{const te=new URLSearchParams(location.search);return te.get("lang")||te.get("locale")||document.documentElement.lang||"en"}catch{return"en"}};async function ee(){var Ve;if(L&&!M&&!t&&typeof window<"u"&&window.__doxaMapTokenPending){if(await window.__doxaMapTokenPending,!e.value)return;typeof window.MAP_TOKEN=="string"&&window.MAP_TOKEN||(a="maplibre",M=!0)}const Z=jf(n,a),Q=Z.style||n;if(!e.value){console.error("containerRef.value is null — call initializeMap() inside onMounted()");return}const te=()=>!e.value;if(await rd(a),te())return;const de=si(a);if(!de){console.error(`[useMapInstance] ${M?"maplibregl":"mapboxgl"} is not available. Add the ${M?"MapLibre":"Mapbox"} GL JS script to your page.`);return}if(qf(de),!M){if(!t&&typeof window<"u"&&window.__doxaMapTokenPending&&(await window.__doxaMapTokenPending,te()))return;if(!t&&typeof window<"u"&&typeof window.MAP_TOKEN=="string"&&window.MAP_TOKEN&&(t=window.MAP_TOKEN),!t){typeof window<"u"&&!window.__doxaNoTokenWarned&&(window.__doxaNoTokenWarned=!0,console.warn('No Mapbox access token provided. Pass "tk" in profile-config JSON or set window.MAP_TOKEN.'));return}if(!t.startsWith("pk.")){console.error('Mapbox token looks invalid (expected "pk." prefix). Got:',t.slice(0,10)+"...");return}}if(await eb(e.value,M?zo.maplibre.css:Jf),te()||(await new Promise(Se=>requestAnimationFrame(Se)),te()))return;const x=e.value,_=x.clientWidth,H=x.clientHeight;if(_===0||H===0){console.error(`[useMapInstance] Container has ZERO dimensions (${_}×${H}). Map will be invisible. Check that parent elements have CSS sizing.`);let Se=x.parentElement,xe=0;for(;Se&&xe<5;)Se=Se.parentElement,xe++}const R=t;M||(de.accessToken=R);const X=()=>typeof window<"u"&&window.innerWidth>=1024,$e=(Se,xe)=>{if(u)return typeof c=="number"?c:ii;if(!X())return ii;const Je=rb(Se,xe,d,A);return typeof c=="number"?Math.max(c,Je):Je},ce=$e(x.clientWidth,x.clientHeight),fe=Z.lightPreset||(()=>{var Se;try{const xe=typeof o=="function"?o():o;return(Se=xe==null?void 0:xe.basemap)==null?void 0:Se.lightPreset}catch{return}})();if(M){y.value=new de.Map({container:e.value,style:tb(Q,fe),locale:od(ae(),"maplibre"),center:r,zoom:s,minZoom:ce,maxZoom:d,pitch:h,bearing:k,dragRotate:!1,renderWorldCopies:F,...i?{bounds:i,...l?{fitBoundsOptions:l}:{}}:{},...N?{maxBounds:N}:{},attributionControl:!0,logoPosition:typeof window<"u"&&window.matchMedia&&window.matchMedia("(max-width: 767px)").matches?"bottom-right":"bottom-left"}),ad(y.value);try{e.value.__doxaMap=y.value}catch{}}else{const Se=typeof o=="function"?o():o;y.value=new de.Map({accessToken:R,container:e.value,style:Q,locale:od(ae(),"mapbox"),...Se?{config:Se}:{},center:r,zoom:s,minZoom:ce,maxZoom:d,pitch:h,bearing:k,dragRotate:!1,touchPitch:!1,renderWorldCopies:F,...i?{bounds:i,...l?{fitBoundsOptions:l}:{}}:{},...N?{maxBounds:N}:{},attributionControl:!0,logoPosition:typeof window<"u"&&window.matchMedia&&window.matchMedia("(max-width: 767px)").matches?"bottom-right":"bottom-left"}),ad(y.value);try{e.value.__doxaMap=y.value}catch{}}try{let Se=!1;y.value.on("error",xe=>{var T,P;const Je=((T=xe==null?void 0:xe.error)==null?void 0:T.status)??(xe==null?void 0:xe.status),f=String(((P=xe==null?void 0:xe.error)==null?void 0:P.url)||(xe==null?void 0:xe.sourceId)||"");Je!==401&&Je!==403||Se||(Se=!0,console.error(`[doxa-maps] Mapbox returned ${Je} for a TILE request while the style loaded fine. That is a URL RESTRICTION on the access token, not a bad token and not a bug in this map. Add this page's origin (${typeof location<"u"?location.origin:"this origin"}) to the token's URL restrictions in the Mapbox account. The map will keep its data layer and stay blank underneath until then.`+(f?` First failing request: ${f.slice(0,120)}`:"")))})}catch{}try{y.value.touchZoomRotate.disableRotation()}catch{}$=Df(((Ve=e.value)==null?void 0:Ve.parentElement)||null,{enabled:w});let Me=ce,Pe=null;S=()=>{const Se=y.value;if(!Se)return;const xe=$e(x.clientWidth,x.clientHeight);xe!==Me&&(Me=xe,Se.setMinZoom(xe)),Se.getZoom(){Pe=null;const Je=y.value;if(!Je)return;const f=$e(x.clientWidth,x.clientHeight);if(Je.getZoom(){Pe&&(clearTimeout(Pe),Pe=null)},y.value.on("resize",S),typeof window<"u"&&(window.addEventListener("resize",S),window.addEventListener("orientationchange",S)),y.value.on("style.load",()=>{if(y.value&&nd(y.value,ae()),Z.paint&&y.value){const Se=Hf(y.value,Z.paint);console.info("[useMapInstance] style paint applied ("+a+"):",Se.join(", ")||"NONE MATCHED")}requestAnimationFrame(()=>{var Se;(Se=y.value)==null||Se.resize(),y.value&&y.value.setMinZoom($e(x.clientWidth,x.clientHeight)),v.value=!0})})}function C(){if(y.value){if(S&&(y.value.off("resize",S),typeof window<"u"&&(window.removeEventListener("resize",S),window.removeEventListener("orientationchange",S)),S=null),b){try{b()}catch{}b=null}$&&($(),$=null);try{const Q=typeof window<"u"?window:null;Q&&Q.__doxaLogoOwner===y.value&&(Q.__doxaLogoOwner=null)}catch{}const Z=y.value;y.value.remove();try{e&&e.value&&e.value.__doxaMap===Z&&(e.value.__doxaMap=null)}catch{}y.value=null,v.value=!1}}if(V&&typeof V=="object"&&"value"in V)try{$t(V,()=>{y.value&&v.value&&nd(y.value,ae())})}catch{}return{map:y,isMapReady:v,initializeMap:ee,destroy:C}}function ld(e,t){e&&(typeof e.isStyleLoaded=="function"&&e.isStyleLoaded()?t():e.once("style.load",t))}function cd(){return ai("neighbor")}const ud={imb:{file:"data/people-groups/people_groups.csv",publisher:"IMB / peoplegroups.org",captured:"2026-07-16"},doxa:{file:"data/people-groups/doxa-groups-snapshot.json",source:"https://pray.doxa.life/api/people-groups/list",fetched:"2026-09-25"}},dd=[{id:"all",groups:12379,population:8288563969},{id:"unreached",groups:7341,population:4893057899},{id:"frontier",groups:4754,population:2813855464},{id:"doxa",groups:2107,population:209079159,frontier:1745,unreached:2082,matched:2091,unmatched:16}],Nr={sources:ud,steps:dd},sb=Object.freeze(Object.defineProperty({__proto__:null,default:Nr,sources:ud,steps:dd},Symbol.toStringTag,{value:"Module"})),ib=Vr&&Vr.tagName.toUpperCase()==="SCRIPT"&&Vr.src||new URL("upg-neighbor.js",document.baseURI).href,Sa=e=>String(e||"").trim().replace(/\/+$/,"");function lb(){try{const t=String(ib||"").split(/[?#]/)[0].match(/^(.*)\/([^/]+)\/([^/]+)\.js$/);return!t||t[2]!==t[3]?null:t[1]||null}catch{return null}}function cb(e){const t=e==null?void 0:e.assetsBase;if(typeof t=="string"&&t.trim()){const o=Sa(t);if(/^https?:\/\//i.test(o)||o.startsWith("/"))return o}const n=Sa((e==null?void 0:e.treeBase)||"")||Sa(lb()||"");if(n)try{const o=typeof document<"u"?document.baseURI:void 0;return Sa(new URL(n+"/assets",o).href)}catch{return Sa(n+"/assets")}return"./assets"}const ln={1:"#0f7a3d",2:"#34a853",3:"#9aa7b4"},kn="#e11d48",Do="#16a34a",Fr="#f59e0b",lt="#002e6e";let Pa=null;function pd(e){if(Pa)return Pa;const t=(e==null?void 0:e.value)||e||{},n=t.nearDataUrl||`${cb(t)}/tables/near-neighbors.json`;return Pa=fetch(n).then(o=>{if(!o.ok)throw new Error(`HTTP ${o.status}`);return o.json()}).then(ub).catch(o=>{throw Pa=null,o}),Pa}function ub(e){const{cols:t,dict:n,rows:o,links:a,bridges:r,meta:s}=e,i=o.map((w,A)=>{const N={i:A};return t.forEach((y,v)=>{N[y]=n[y]?n[y][w[v]]:w[v]}),N.reached=!!N.reached,N}),l=w=>(a[w.i]||[]).map(([A,N,y,v])=>({g:i[A],e:N,km:y,same:!!v})),c=w=>{const A=a[w.i];return A&&A.length?Math.min(...A.map(N=>N[1])):0},u=i.filter(w=>!w.reached),d=new Map;for(const[w,A]of Object.entries(a))for(const[N,y,v,S]of A)d.has(N)||d.set(N,[]),d.get(N).push({g:i[+w],e:y,km:v,same:!!S});for(const w of d.values())w.sort((A,N)=>A.e-N.e||A.km-N.km);const h=w=>d.get(w.i)||[],k=i.filter(w=>w.reached);for(const w of u)w.p=c(w),w.ringNeighbor=w.ringNb>=0?i[w.ringNb]:null;const F=r.map(w=>{var y,v;const A=w.reached.map(S=>i[S]),N=w.unreached.map(S=>i[S]);return{lang:w.lang,langName:((y=A[0])==null?void 0:y.langName)||((v=N[0])==null?void 0:v.langName)||w.lang,believers:w.believers,unreachedPop:w.unreachedPop,res:{bible:!!w.res[0],film:!!w.res[1],audio:!!w.res[2],radio:!!w.res[3]},reached:A,unreached:N,reachedCountries:[...new Set(A.map(S=>S.country))].sort(),unreachedCountries:[...new Set(N.map(S=>S.country))].sort()}});return{meta:s,groups:i,unreached:u,reached:k,neighborsOf:l,unreachedNeighborsOf:h,bridges:F}}const eo=e=>String(e||"").normalize("NFD").replace(/[̀-ͯ]/g,"").toLowerCase();function Mt(e){return e=Number(e)||0,e>=1e9?(e/1e9).toFixed(1)+"B":e>=1e6?(e/1e6).toFixed(e>=1e7?0:1)+"M":e>=1e3?(e/1e3).toFixed(e>=1e4?0:1)+"K":String(Math.round(e))}function li(e,t,n){const o=a=>{const r=String(a??"");return/[",\n]/.test(r)?'"'+r.replace(/"/g,'""')+'"':r};gd(e,[t,...n].map(a=>a.map(o).join(",")).join(`
+`,"pin-hint"),(x,_)=>c.value?na((he(),be("div",{key:0,ref_key:"hintEl",ref:y,class:ot(["pin-hint",{dark:i.value}]),role:"status"},[z("span",gf,[_[0]||(_[0]=z("span",{class:"pin-hint-dot","aria-hidden":"true"},null,-1)),z("span",hf,[(he(!0),be(Ye,null,an(l.value,(H,R)=>(he(),be("span",{key:R,class:"pin-hint-line"},W(H),1))),128))]),z("button",{class:"pin-hint-x",type:"button","aria-label":t("aria.dismissHint","Dismiss hint"),onClick:ee},"×",8,mf)])],2)),[[nh,u.value&&h.value]]):st("",!0)}},bf=".lsn-bar[data-v-9a589f6f]{display:flex;align-items:flex-start;gap:8px;flex:none;margin:0;padding-block:8px;padding-inline:12px 8px;background:#fff8e1;border-block-end:1px solid #f0d68a;color:#4a3b00;font:400 13px/1.4 system-ui,-apple-system,Segoe UI,sans-serif}.lsn-bar__text[data-v-9a589f6f]{flex:1 1 auto;margin:0}.lsn-bar__x[data-v-9a589f6f]{flex:none;min-width:24px;min-height:24px;padding:0;border:0;border-radius:4px;background:transparent;color:inherit;font:600 18px/1 system-ui,sans-serif;cursor:pointer}.lsn-bar__x[data-v-9a589f6f]:focus-visible{outline:2px solid #1a73e8;outline-offset:2px}.lsn-block[data-v-9a589f6f]{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%;min-height:200px;padding:24px;background:#f7f7f5;color:#333;text-align:center;font:400 15px/1.5 system-ui,-apple-system,Segoe UI,sans-serif}.lsn-block__text[data-v-9a589f6f]{max-width:28em;margin:0}",Vu=(e,t)=>{const n=e.__vccOpts||e;for(const[o,a]of t)n[o]=a;return n},$f={key:0,class:"lsn-block",role:"status"},yf={class:"lsn-block__text"},vf={key:0},_f={key:1,class:"lsn-bar",role:"note"},wf={class:"lsn-bar__text"},kf=["aria-label","title"],qu=Vu({__name:"LargerScreenNotice",props:{mode:{type:String,required:!0},label:{type:String,default:""},locale:{type:String,default:""}},emits:["dismiss"],setup(e){const t=e,n=(s,i)=>Qn(s,t.locale||void 0)||i,o=_e(()=>n("messages.largerScreenNotice","This experimental map is built for larger screens. It opens here, but parts of it may not fit or work well on a phone.")),a=_e(()=>n("messages.noticeDismiss","Dismiss")),r=_e(()=>n("messages.desktopOnlyNotice","{label} only supports desktop — open this page on a desktop to use it.").split("{label}"));return(s,i)=>e.mode==="desktop-only"?(he(),be("div",$f,[z("p",yf,[Ke(W(r.value[0]),1),r.value.length>1?(he(),be("bdi",vf,W(e.label),1)):st("",!0),Ke(W(r.value[1]||""),1)])])):(he(),be("div",_f,[z("p",wf,W(o.value),1),z("button",{type:"button",class:"lsn-bar__x","aria-label":a.value,title:a.value,onClick:i[0]||(i[0]=l=>s.$emit("dismiss"))},"×",8,kf)]))}},[["styles",[bf]],["__scopeId","data-v-9a589f6f"]]),Sf="(max-width: 639.98px)";function Pf(e){for(let t=e;t;t=t.parentNode||t.host)if(t.nodeType===1&&t.hasAttribute("data-doxa-gallery"))return!0;return!1}function Cf(e){var l;const t=_e(()=>{var u;const c=(u=e.value)==null?void 0:u.mobile;return c==="desktop-only"||c==="larger-screens"?c:null});let n=null;try{n=_h()}catch{n=null}const o=n?Pf(n):!1,a=Ce(!1);if(typeof window<"u"&&typeof window.matchMedia=="function"){const c=window.matchMedia(Sf);a.value=c.matches;const u=d=>{a.value=d.matches};(l=c.addEventListener)==null||l.call(c,"change",u),Lo(()=>{var d;return(d=c.removeEventListener)==null?void 0:d.call(c,"change",u)})}const r=_e(()=>{var c;return`dx-maps:larger-screens-dismissed:${((c=e.value)==null?void 0:c.profile)||""}`}),s=Ce(!1);$t(r,c=>{try{s.value=sessionStorage.getItem(c)==="1"}catch{s.value=!1}},{immediate:!0});function i(){s.value=!0;try{sessionStorage.setItem(r.value,"1")}catch{}}return{flag:t,blocked:_e(()=>t.value==="desktop-only"&&a.value&&!o),advise:_e(()=>t.value==="larger-screens"&&a.value&&!o&&!s.value),dismiss:i,label:_e(()=>{var c,u;return String(((c=e.value)==null?void 0:c.mobileLabel)||((u=e.value)==null?void 0:u.profile)||"")})}}let xf=0;const Tf=Es("ui",{state:()=>({_storeInstanceId:++xf,theme:"light",colorScheme:"default",reducedMotion:!1,highContrast:!1,activeTab:"doxa-regions",sidebarCollapsed:!1,mobileMenuOpen:!1,legendState:"collapsed",_customLegendHeight:null,searchMode:!1,hamburgerMenuOpen:!1,legendMode:"prayer",prayerFilter:null,engagementFilter:null,adoptionFilter:null,religionFilter:null,selectedPeopleGroup:null,breakpoint:"desktop",windowSize:{width:window.innerWidth,height:window.innerHeight},toasts:[],nextToastId:1,toastDuration:5e3,openModals:[],modalData:new Map,isGlobalLoading:!1,globalLoadingMessage:"Loading...",loadingStates:new Map,interactionHistory:[],maxHistoryLength:20,keyboardShortcutsEnabled:!0,screenReaderAnnouncement:"",focusTrapActive:!1,debugMode:!1,showPerformanceOverlay:!1}),getters:{isDarkTheme:e=>!1,isMobile:e=>e.breakpoint==="mobile",isTablet:e=>e.breakpoint==="tablet",isDesktop:e=>e.breakpoint==="desktop"||e.breakpoint==="wide",legendHeight:e=>e._customLegendHeight?e._customLegendHeight:e.legendState==="collapsed"?"48px":e.legendState==="open"?"30%":e.legendState==="fullyOpen"?"calc(100% - 80px)":"48px",caretRotation:e=>e.legendState==="collapsed"?0:90,showPullTab:e=>e.legendState==="open"||e.legendState==="fullyOpen",getToastsByType:e=>t=>e.toasts.filter(n=>n.type===t),hasOpenModal:e=>e.openModals.length>0,topModal:e=>e.openModals.length===0?null:e.openModals[e.openModals.length-1],isModalOpen:e=>t=>e.openModals.includes(t),isAnyLoading:e=>e.isGlobalLoading||e.loadingStates.size>0,isLoading:e=>t=>e.loadingStates.get(t)||!1},actions:{setTheme(e){if(!["light","dark","auto"].includes(e))return;e="light",this.theme=e;const n=this.isDarkTheme;document.documentElement.setAttribute("data-theme",n?"dark":"light");try{localStorage.setItem("theme",e)}catch{}},toggleTheme(){const e=this.theme==="light"?"dark":"light";this.setTheme(e)},setColorScheme(e){this.colorScheme=e,document.documentElement.setAttribute("data-color-scheme",e)},toggleReducedMotion(){this.reducedMotion=!this.reducedMotion,document.documentElement.setAttribute("data-reduced-motion",this.reducedMotion)},toggleHighContrast(){this.highContrast=!this.highContrast,document.documentElement.setAttribute("data-high-contrast",this.highContrast)},setActiveTab(e){this.activeTab=e,this.addToHistory({type:"tab-change",tabId:e,timestamp:Date.now()})},toggleSidebar(){this.sidebarCollapsed=!this.sidebarCollapsed},openMobileMenu(){this.mobileMenuOpen=!0},closeMobileMenu(){this.mobileMenuOpen=!1},setLegendMode(e){["prayer","detail"].includes(e)&&(this.legendMode=e)},setPrayerFilter(e){[null,"noPrayer","hasPrayer","fullPrayer"].includes(e)&&(this.prayerFilter=e)},setEngagementFilter(e){[null,"notEngaged","hasEngagement"].includes(e)&&(this.engagementFilter=e)},setAdoptionFilter(e){[null,"notAdopted","hasAdoption"].includes(e)&&(this.adoptionFilter=e)},setReligionFilter(e){[null,"C","M","H","B","E","J","S","N","O","U"].includes(e)&&(this.religionFilter=e)},selectPeopleGroup(e){const t=e&&!this.selectedPeopleGroup;this.selectedPeopleGroup=e,e?(t&&(this._legendStateBeforeDetail=this.legendState),this.legendState="open",this._customLegendHeight=null,this.setLegendMode("detail")):(this._legendStateBeforeDetail&&(this.legendState=this._legendStateBeforeDetail),this._legendStateBeforeDetail=null,this._customLegendHeight=null,this.setLegendMode("prayer"))},setLegendState(e){["collapsed","open","fullyOpen"].includes(e)&&(this.legendState=e)},toggleSearchMode(){this.searchMode=!this.searchMode},setSearchMode(e){this.searchMode=e},toggleHamburgerMenu(){this.hamburgerMenuOpen=!this.hamburgerMenuOpen},updateBreakpoint(e){let t;e<768?t="mobile":e<1024?t="tablet":e<1920?t="desktop":t="wide",t!==this.breakpoint&&(this.breakpoint=t)},updateWindowSize(e,t){this.windowSize.width=e,this.windowSize.height=t,this.updateBreakpoint(e)},showToast(e){const{message:t,type:n="info",duration:o=this.toastDuration,action:a=null,persistent:r=!1}=e,s={id:this.nextToastId++,message:t,type:n,duration:o,action:a,persistent:r,createdAt:Date.now()};return this.toasts.push(s),!r&&o>0&&setTimeout(()=>{this.removeToast(s.id)},o),s.id},showSuccess(e,t={}){return this.showToast({message:e,type:"success",...t})},showError(e,t={}){return this.showToast({message:e,type:"error",duration:7e3,...t})},showWarning(e,t={}){return this.showToast({message:e,type:"warning",...t})},showInfo(e,t={}){return this.showToast({message:e,type:"info",...t})},removeToast(e){const t=this.toasts.findIndex(n=>n.id===e);t!==-1&&this.toasts.splice(t,1)},clearAllToasts(){this.toasts=[]},openModal(e,t={}){this.openModals.includes(e)||(this.openModals.push(e),this.modalData.set(e,t),this.focusTrapActive=!0)},closeModal(e=null){if(e){const t=this.openModals.indexOf(e);t!==-1&&(this.openModals.splice(t,1),this.modalData.delete(e))}else{const t=this.openModals.pop();t&&this.modalData.delete(t)}this.openModals.length===0&&(this.focusTrapActive=!1)},closeAllModals(){this.openModals=[],this.modalData.clear(),this.focusTrapActive=!1},getModalData(e){return this.modalData.get(e)},showGlobalLoading(e="Loading..."){this.isGlobalLoading=!0,this.globalLoadingMessage=e},hideGlobalLoading(){this.isGlobalLoading=!1},setLoading(e,t=!0){t?this.loadingStates.set(e,!0):this.loadingStates.delete(e)},addToHistory(e){this.interactionHistory.push(e),this.interactionHistory.length>this.maxHistoryLength&&this.interactionHistory.shift()},clearHistory(){this.interactionHistory=[]},announce(e,t="polite"){this.screenReaderAnnouncement=e,setTimeout(()=>{this.screenReaderAnnouncement===e&&(this.screenReaderAnnouncement="")},1e3)},toggleKeyboardShortcuts(){this.keyboardShortcutsEnabled=!this.keyboardShortcutsEnabled},toggleDebugMode(){this.debugMode=!this.debugMode},togglePerformanceOverlay(){this.showPerformanceOverlay=!this.showPerformanceOverlay},toggleLegend(){this.legendState==="fullyOpen"?this.legendState="open":this.legendState==="open"?this.legendState="collapsed":this.legendState="open",this._customLegendHeight=null},openLegend(){this.legendState="open",this._customLegendHeight=null},fullyOpenLegend(){this.legendState="fullyOpen",this._customLegendHeight=null},collapseLegend(){this.legendState="collapsed",this._customLegendHeight=null},setLegendHeight(e){this._customLegendHeight=e},handleLegendItemClick(){this.legendState==="fullyOpen"&&(this.legendState="open")},enableSearchMode(){this.searchMode=!0},disableSearchMode(){this.searchMode=!1},toggleHamburgerMenu(){this.hamburgerMenuOpen=!this.hamburgerMenuOpen},openHamburgerMenu(){this.hamburgerMenuOpen=!0},closeHamburgerMenu(){this.hamburgerMenuOpen=!1},init(){let e=null;try{e=localStorage.getItem("theme")}catch{}e&&this.setTheme(e),new ResizeObserver(n=>{for(const o of n)this.updateWindowSize(o.contentRect.width,o.contentRect.height)}).observe(document.documentElement),window.matchMedia&&(window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",n=>{this.theme==="auto"&&document.documentElement.setAttribute("data-theme",n.matches?"dark":"light")}),window.matchMedia("(prefers-reduced-motion: reduce)").addEventListener("change",n=>{this.reducedMotion=n.matches,document.documentElement.setAttribute("data-reduced-motion",n.matches)}))}}}),Lf=Es("map",{state:()=>({maps:{},activeMapId:null,selectedRegion:null,selectedFamily:null,selectedAffinityBlock:null,selectedLanguage:null,selectedDialect:null,activeLegendTab:"family",selectedResource:null,selectedPeopleGroup:null,selectedPinIds:[],globalFilters:{},searchQuery:"",autoFly:{isActive:!1,speed:1,interval:5e3,currentIndex:0,items:[],timerId:null},guidedTour:{isActive:!1,currentStep:0,steps:[]},showClusters:!1,clusterMode:"region",clusteringMode:"off",clusterPinOpacity:.6,clusterFilterProperty:null,clusterFilterValue:null,flySpeed:"normal",fullscreenMapId:null,preferences:{theme:"light",defaultMapStyle:"streets",enableAnimations:!0,autoSavePreferences:!0}}),getters:{getMapById:e=>t=>e.maps[t],activeMap:e=>e.activeMapId?e.maps[e.activeMapId]:null,hasMap:e=>t=>t in e.maps,allMapIds:e=>Object.keys(e.maps),hasSelection:e=>!!(e.selectedRegion||e.selectedFamily||e.selectedAffinityBlock||e.selectedPeopleGroup),isAutoFlying:e=>e.autoFly.isActive,isGuidedTourActive:e=>e.guidedTour.isActive,isMapFullscreen:e=>t=>e.fullscreenMapId===t},actions:{registerMap(e,t,n={}){let o=1.5;n.zoom!==void 0?o=n.zoom:t&&typeof t.getZoom=="function"&&(o=t.getZoom());let a=[0,0];if(n.center)a=n.center;else if(t&&typeof t.getCenter=="function"){const r=t.getCenter();r&&(a=[r.lng,r.lat])}this.maps[e]={instance:t,config:n,isReady:!1,zoom:o,center:a,registeredAt:Date.now()},this.activeMapId||(this.activeMapId=e)},setMapReady(e){const t=this.maps[e];t&&(t.isReady=!0)},updateMapState(e,t){const n=this.maps[e];n&&Object.assign(n,t)},unregisterMap(e){if(delete this.maps[e],this.activeMapId===e){const t=this.allMapIds;this.activeMapId=t.length>0?t[0]:null}},setActiveMap(e){e in this.maps&&(this.activeMapId=e)},selectRegion(e){this.selectedFamily=null,this.selectedAffinityBlock=null,this.selectedPeopleGroup=null,this.selectedRegion=e},selectFamily(e){this.selectedRegion=null,this.selectedAffinityBlock=null,this.selectedPeopleGroup=null,this.selectedLanguage=null,this.selectedDialect=null,this.selectedFamily=e},setActiveLegendTab(e){this.activeLegendTab=e},selectLanguage(e){this.selectedRegion=null,this.selectedAffinityBlock=null,this.selectedPeopleGroup=null,this.selectedFamily=null,this.selectedDialect=null,this.selectedLanguage=e},selectDialect(e){this.selectedRegion=null,this.selectedFamily=null,this.selectedLanguage=null,this.selectedAffinityBlock=null,this.selectedPeopleGroup=null,this.selectedDialect=e},selectAffinityBlock(e){this.selectedRegion=null,this.selectedFamily=null,this.selectedPeopleGroup=null,this.selectedAffinityBlock=e},selectPeopleGroup(e){this.selectedPeopleGroup=e},selectResource(e){this.selectedRegion=null,this.selectedFamily=null,this.selectedAffinityBlock=null,this.selectedPeopleGroup=null,this.selectedResource===e?this.selectedResource=null:this.selectedResource=e},clearSelections(){this.selectedRegion=null,this.selectedFamily=null,this.selectedLanguage=null,this.selectedDialect=null,this.selectedAffinityBlock=null,this.selectedResource=null,this.selectedPeopleGroup=null,this.selectedPinIds=[],this.showClusters=!1,this.clusterMode="region"},setSelectedPinIds(e){this.selectedPinIds=e||[]},setFilter(e,t){this.globalFilters[e]=t},removeFilter(e){delete this.globalFilters[e]},clearFilters(){this.globalFilters={},this.searchQuery=""},setSearchQuery(e){this.searchQuery=e},startAutoFly(e,t=1){this.stopAutoFly(),this.autoFly.isActive=!0,this.autoFly.speed=t,this.autoFly.items=e,this.autoFly.currentIndex=0},stopAutoFly(){this.autoFly.timerId&&(clearInterval(this.autoFly.timerId),this.autoFly.timerId=null),this.autoFly.isActive=!1,this.autoFly.currentIndex=0},setAutoFlySpeed(e){this.autoFly.speed=Math.max(.5,Math.min(2,e))},nextAutoFlyItem(){if(!this.autoFly.isActive||this.autoFly.items.length===0)return;this.autoFly.currentIndex=(this.autoFly.currentIndex+1)%this.autoFly.items.length;const e=this.autoFly.items[this.autoFly.currentIndex];e.type==="region"?this.selectRegion(e):e.type==="family"&&this.selectFamily(e)},toggleClusters(e){typeof e=="boolean"?this.showClusters=e:this.showClusters=!this.showClusters},setClusterMode(e){["region","language-family","affinity-block","mst","resource"].includes(e)&&(this.clusterMode=e)},setClusteringMode(e){["off","mapbox","mst","network"].includes(e)&&(this.clusteringMode=e,this.showClusters=e!=="off")},setClusterFilter(e,t){this.clusterFilterProperty=e||null,this.clusterFilterValue=t||null},clearClusterFilter(){this.clusterFilterProperty=null,this.clusterFilterValue=null},setFlySpeed(e){["slow","normal","fast"].includes(e)&&(this.flySpeed=e)},setSelectedFamily(e){this.selectFamily(e)},clearSelectedFamily(){this.selectFamily(null)},setSelectedRegion(e){this.selectRegion(e)},clearSelectedRegion(){this.selectRegion(null)},clearSelectedResource(){this.selectResource(null)},clearSelectedLanguage(){this.selectLanguage(null)},clearSelectedDialect(){this.selectDialect(null)},toggleFullscreen(e){this.fullscreenMapId===e?this.fullscreenMapId=null:this.fullscreenMapId=e},loadPreferences(){try{const e=localStorage.getItem("mapUserPreferences");if(e){const t=JSON.parse(e);this.preferences={...this.preferences,...t}}}catch(e){console.error("[mapStore] Failed to load preferences:",e)}},savePreferences(){try{localStorage.setItem("mapUserPreferences",JSON.stringify(this.preferences))}catch(e){console.error("[mapStore] Failed to save preferences:",e)}},setPreference(e,t){this.preferences[e]=t,this.preferences.autoSavePreferences&&this.savePreferences()}}}),Mf=Es("data",{state:()=>({sources:{},loadingStates:{}}),actions:{async load(e,t){if(!this.sources[e]){this.loadingStates[e]={isLoading:!0,error:null};try{const n=await t();this.sources[e]=Xo({features:n,timestamp:Date.now()}),this.loadingStates[e]={isLoading:!1,error:null}}catch(n){console.error(`[dataStore] Failed to load source "${e}":`,n),this.loadingStates[e]={isLoading:!1,error:n}}}},clearSource(e){delete this.sources[e],delete this.loadingStates[e]},cacheSourceData(e,t){this.sources[e]=Xo({features:t.normalizedData||[],timestamp:t.timestamp||Date.now()})},hasSourceData(e){return!!this.sources[e]},getSourceData(e){return this.sources[e]?{normalizedData:this.sources[e].features}:null}},getters:{getData:e=>t=>{var n;return((n=e.sources[t])==null?void 0:n.features)??null},isLoading:e=>t=>{var n;return((n=e.loadingStates[t])==null?void 0:n.isLoading)??!1},getError:e=>t=>{var n;return((n=e.loadingStates[t])==null?void 0:n.error)??null}}}),Af={activeSource:"pray-tools"},Ef=".profile-loader[data-locale-pending][data-v-8e369bc8] .stl-tabs,.profile-loader[data-locale-pending][data-v-8e369bc8] .stl-title,.profile-loader[data-locale-pending][data-v-8e369bc8] .stl-rows,.profile-loader[data-locale-pending][data-v-8e369bc8] .legend-title,.profile-loader[data-locale-pending][data-v-8e369bc8] .legend-content,.profile-loader[data-locale-pending][data-v-8e369bc8] .legend-reopen-label,.profile-loader[data-locale-pending][data-v-8e369bc8] .lt-btn-text,.profile-loader[data-locale-pending][data-v-8e369bc8] .rd-topbar,.profile-loader[data-locale-pending][data-v-8e369bc8] .rd-exportbar{visibility:hidden}.profile-loader[data-v-8e369bc8]{border-radius:var(--map-radius-corners, var(--map-radius, 0px));width:100%;height:100%;min-height:var(--profile-min-h, 100dvh);position:relative}.profile-loader.has-screen-notice[data-v-8e369bc8]{display:flex;flex-direction:column}.profile-loader.has-screen-notice[data-v-8e369bc8]>:not(.lsn-bar){flex:1 1 auto;min-height:0;position:relative!important;inset:auto!important}.profile-error[data-v-8e369bc8]{padding:1rem;background:#fff3cd;border:1px solid #ffc107;border-radius:4px;font-family:monospace;font-size:13px}",Nf=["dir","data-locale-pending"],Ff={key:0,class:"profile-error"},Rf={key:1,class:"profile-error"},If=Vu({__name:"ProfileLoader",props:{profileConfig:{type:String,default:""}},setup(e){var ee;const n=e,o=bt("profileConfig",null),a=_e(()=>{var Z;if(!n.profileConfig)return null;let C;try{C=JSON.parse(n.profileConfig)}catch{return console.error("[ProfileLoader] Invalid profile-config JSON:",n.profileConfig),null}if(C&&C.assetsBase===void 0){const Q=(Z=o==null?void 0:o.value)==null?void 0:Z.assetsBase;typeof Q=="string"&&Q&&(C.assetsBase=Q)}return C}),r=bt("profileModules",null);if(!r)throw new Error('[ProfileLoader] No profileModules provided. Bundle entry must `app.provide("profileModules", import.meta.glob("./*.vue"))`');const s=(()=>{const C=Object.keys(r||{});if(C.length!==1)return null;const Z=C[0].match(/^\.\/(.+)\.vue$/);return Z?Z[1]:null})(),i=_e(()=>{var C;return((C=a.value)==null?void 0:C.profile)||s||null}),l=Gh(),c=_e(()=>{var Z;const C=(Z=a.value)==null?void 0:Z.tk;return typeof C=="string"&&C?C:l.value||""});$t(()=>{var C;return(C=a.value)==null?void 0:C.tk},C=>{typeof C=="string"&&C&&Rs(C)},{immediate:!0}),$t(()=>{var C;return(C=a.value)==null?void 0:C.tokenUrl},C=>{var Z;C&&!((Z=a.value)!=null&&Z.tk)&&!l.value&&jh(C)},{immediate:!0});const u=_e(()=>{var C;return((C=a.value)==null?void 0:C.dataSource)||Af.activeSource}),d=_e(()=>{var C;return((C=a.value)==null?void 0:C.colorSet)||"default"}),h=_e(()=>!1),k=_e(()=>{var C;return((C=a.value)==null?void 0:C.pinHint)!==!1}),F=_e(()=>{var Z,Q;const C=(((Z=a.value)==null?void 0:Z.locale)||((Q=a.value)==null?void 0:Q.lang)||Gu()||"").split("-")[0].toLowerCase();return _a.includes(C)?C:""}),w=bt("appI18n",null);ul(()=>{F.value&&(w&&(w.global.locale.value=F.value),Hu(F.value),ni(w,F.value).catch(()=>{}))});const A=_e(()=>{var C,Z;return F.value||((Z=(C=w==null?void 0:w.global)==null?void 0:C.locale)==null?void 0:Z.value)||"en"}),N=_e(()=>Lr.has(A.value)?"rtl":"ltr"),{blocked:y,advise:v,dismiss:S,label:b}=Cf(a),$=Ce(!1);ul(C=>{const Z=A.value;if(!Lr.has(Z)){$.value=!1;return}let Q=!0;C(()=>{Q=!1}),$.value=!0,Jm(Z).finally(()=>{Q&&($.value=!1)})});const E=_e(()=>{var C;return((C=a.value)==null?void 0:C.instanceId)||"doxa-map-"+Math.random().toString(36).slice(2,9)}),L=_e(()=>{if(!i.value)return null;const C=`./${i.value}.vue`;return r[C]?lf(r[C]):(console.error(`[ProfileLoader] Profile not found: "${i.value}". Available:`,Object.keys(r)),null)});on("mapboxToken",c),on("dataSource",u),on("colorSet",d),on("profileConfig",a),on("instanceId",E),on("lang",A);const M=Tf(),V=Lf(),ae=Mf();try{const C=typeof localStorage<"u"?localStorage.getItem("theme"):null;C&&((ee=M.setTheme)==null||ee.call(M,C))}catch{}return on("uiStore",M),on("mapStore",V),on("dataStore",ae),(C,Z)=>(he(),be("div",{class:ot(["profile-loader",{"has-screen-notice":Ie(v)}]),dir:N.value,"data-locale-pending":$.value?"":null},[a.value?L.value?Ie(y)?(he(),Vn(qu,{key:2,mode:"desktop-only",label:Ie(b),locale:A.value},null,8,["label","locale"])):(he(),be(Ye,{key:3},[Ie(v)?(he(),Vn(qu,{key:0,mode:"larger-screens",locale:A.value,onDismiss:Ie(S)},null,8,["locale","onDismiss"])):st("",!0),(he(),Vn(yl(L.value)))],64)):(he(),be("div",Rf,[z("p",null,[Z[1]||(Z[1]=Ke("⚠️ Profile ",-1)),z("strong",null,'"'+W(i.value)+'"',1),Z[2]||(Z[2]=Ke(" not found.",-1))])])):(he(),be("div",Ff,[...Z[0]||(Z[0]=[z("p",null,[Ke("⚠️ "),z("strong",null,"doxa-map"),Ke(": missing or invalid "),z("code",null,"profile-config"),Ke(" prop.")],-1),z("p",null,[Ke("Example: "),z("code",null,`profile-config='{"profile":"example-map","tk":"pk.eyJ..."}'`)],-1)])])),L.value&&h.value?(he(),Vn(yl(Ie(null)),{key:4})):st("",!0),L.value&&k.value?(he(),Vn(ff,{key:5})):st("",!0)],10,Nf))}},[["styles",[Ef]],["__scopeId","data-v-8e369bc8"]]);function Ku(e,t,n){var a;const o=(a=e==null?void 0:e._context)==null?void 0:a.provides;if(o&&t in o){o[t]=n;return}e.provide(t,n)}function Of(e,t){var a;const n=(a=e==null?void 0:e._context)==null?void 0:a.provides,o=n?Object.getPrototypeOf(n):null;o&&Object.setPrototypeOf(n,null);try{return t()}finally{o&&Object.setPrototypeOf(n,o)}}function zf({profileModules:e={},configureApp:t=null}={}){return yh(If,{configureApp(n){const o=Ah();Of(n,()=>n.use(o));const a=Xm();n.use(a),Ku(n,"appI18n",a),Ku(n,"profileModules",e),t&&t(n,{pinia:o,i18n:a})}})}const Df=zf({profileModules:Object.assign({"./upg-neighbor.vue":()=>Bt(()=>Promise.resolve().then(()=>D$),void 0)})});typeof customElements<"u"&&!customElements.get("upg-neighbor")&&customElements.define("upg-neighbor",Df);const Gf="rgba(120, 128, 134, 0.28)",Yu="36px",Zu=()=>{};function jf(e,t={}){const{enabled:n=!0}=t;if(!n||!e)return Zu;const o=Array.from(e.querySelectorAll(".map-scroll-edge"));if(!o.length)return Zu;const a=y=>y.classList.contains("map-scroll-edge--left");for(const y of o)y.style.background=`linear-gradient(${a(y)?"to right":"to left"}, ${Gf} ${Yu}, transparent ${Yu})`,y.style.opacity="0",y.style.transition="opacity 0.16s ease",y.style.userSelect="none",y.style.webkitUserSelect="none";const r=y=>{y.style.opacity="1"},s=y=>{y.style.opacity="0"},i=()=>o.find(y=>!a(y))||null,l=new Set;let c=!1,u=null;const d=()=>{for(const y of o)l.has(y)||s(y)},h=()=>{const y=i();y&&(r(y),u&&clearTimeout(u),u=setTimeout(d,250))},k=()=>h(),F=y=>{if(!(y.touches&&y.touches.length===1))return;const v=y.target;v&&v.classList&&v.classList.contains("map-scroll-edge")||h()},w=()=>{u&&clearTimeout(u),d()};e.addEventListener("wheel",k,{passive:!0}),e.addEventListener("touchmove",F,{passive:!0}),e.addEventListener("touchend",w,{passive:!0}),e.addEventListener("touchcancel",w,{passive:!0});const A=()=>{c||h()};typeof window<"u"&&window.addEventListener("scroll",A,{passive:!0});const N=[];for(const y of o){const v=()=>{l.add(y),r(y)},S=()=>{l.delete(y),s(y)},b=()=>{c=!0,r(y)},$=()=>{c=!1,s(y)};y.addEventListener("mouseenter",v),y.addEventListener("mouseleave",S),y.addEventListener("touchstart",b,{passive:!0}),y.addEventListener("touchend",$,{passive:!0}),N.push(()=>{y.removeEventListener("mouseenter",v),y.removeEventListener("mouseleave",S),y.removeEventListener("touchstart",b),y.removeEventListener("touchend",$)})}return function(){u&&(clearTimeout(u),u=null),e.removeEventListener("wheel",k),e.removeEventListener("touchmove",F),e.removeEventListener("touchend",w),e.removeEventListener("touchcancel",w),typeof window<"u"&&window.removeEventListener("scroll",A);for(const v of N)v();for(const v of o)s(v)}}const Hf=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 Bf(e,t="mapbox"){if(typeof e!="string"||!e)return{style:void 0,lightPreset:void 0,paint:void 0};const n=Hf[e];return n?t==="maplibre"?{style:n.maplibre,lightPreset:void 0,paint:n.paint}:{style:n.mapbox,lightPreset:n.lightPreset,paint:n.paint}:/^(mapbox:\/\/|https?:\/\/)/.test(e)?{style:e,lightPreset:void 0,paint:void 0}:{style:void 0,lightPreset:void 0,paint:void 0}}function Uf(e,t){if(!e||!Array.isArray(t))return[];const n=[];for(const o of t)if(!(!o||!o.layer||!o.prop))try{if(!e.getLayer(o.layer))continue;e.setPaintProperty(o.layer,o.prop,o.value),n.push(o.layer+"."+o.prop)}catch{}return n}const Wf=["mapbox","maplibre"],Vf="auto";function Ju(e){return e&&typeof e=="object"&&"value"in e&&!("provider"in e)&&!("profile"in e)?e.value:e}function qf(e,{token:t}={}){const n=Ju(e);return Xu(n)||"maplibre"}function Xu(e){const t=Ju(e),n=t==null?void 0:t.provider,o=typeof location<"u"?new URLSearchParams(location.search).get("provider"):void 0,a=typeof window<"u"?window.MAP_PROVIDER:void 0,r=String(n||o||a||Vf).toLowerCase().trim();return Wf.includes(r)?r:""}function Qu(e,t){if(!e||!t||typeof e.setProjection!="function")return!1;const n=typeof window<"u"?window.maplibregl:null,o=!!(n&&n.Map&&e instanceof n.Map);try{return e.setProjection(o?{type:t}:t),!0}catch{return!1}}const ka={mapboxGlJs:{url:"https://api.mapbox.com/mapbox-gl-js/v3.24.0/mapbox-gl.js",integrity:"sha384-tO0clamXONKwbiz7O6xJpUeyJbTSPugC+xM9clvfFvKTH3i8SmCawHGdf5quMWmZ"},mapboxGlCss:{url:"https://api.mapbox.com/mapbox-gl-js/v3.24.0/mapbox-gl.css",integrity:"sha384-rp1X/jJ9MpWPef9OimfXhOaOc4Gzs87yQvF+ajwY6X2H4PTeHNycNlLWiWvj7ehV"},maplibreGlJs:{url:"https://cdn.jsdelivr.net/npm/maplibre-gl@5.24.0/dist/maplibre-gl.js",integrity:"sha384-5+cfbwT0iiub6VsQAdn6yz16nr6sDiQoHx6tm4O8OVYXHYOxcffFmCJBL0dgdvGp"},maplibreGlCss:{url:"https://cdn.jsdelivr.net/npm/maplibre-gl@5.24.0/dist/maplibre-gl.css",integrity:"sha384-uTttxo/aOKbdE5RlD/SPzSDoDmNvGlUYPjONi2MN/b7c9HPSvW07OIuyP7uL6jxK"},mapboxGeocoderJs:{url:"https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-geocoder/v5.0.0/mapbox-gl-geocoder.min.js",integrity:"sha384-Lx9WK8XhZk57czwxt6B6nyaDHB5Ayrcrsu4Fw4bCp/Ot/QLOsUZ0xYqLOpOOSXZw"},mapboxGeocoderCss:{url:"https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-geocoder/v5.0.0/mapbox-gl-geocoder.css",integrity:"sha384-1KNhwJNCQTr0DCi/5/OnQcFytgycxTahxNZaqKbAtqmY8bUhu26qxXqvDGXXwplS"},maplibreGeocoderJs:{url:"https://cdn.jsdelivr.net/npm/@maplibre/maplibre-gl-geocoder@1.9.4/dist/maplibre-gl-geocoder.min.js",integrity:"sha384-RGV5vfoJd7alk8HE+71IyVfu19ciH1FKA15+AuXs6OeBM2npXrmTPFqG23yMiHXi"},maplibreGeocoderCss:{url:"https://cdn.jsdelivr.net/npm/@maplibre/maplibre-gl-geocoder@1.9.4/dist/maplibre-gl-geocoder.css",integrity:"sha384-UkDpPApjTpHJHpcJiSNAmbobh30W0/dmt0DoKm4V8CWYRYvQ/Jhd/ijFz0tFdVnH"},d3:{url:"https://cdn.jsdelivr.net/npm/d3@7.9.0/dist/d3.min.js",integrity:"sha384-CjloA8y00+1SDAUkjs099PVfnY2KmDC2BZnws9kh8D/lX1s46w6EPhpXdqMfjK6i"}};function ri(e,t){const n=Object.values(ka).find(o=>o.url===t);return n&&(e.integrity=n.integrity,e.crossOrigin="anonymous"),e}const ed={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 Kf(e){return!!e&&typeof window<"u"&&e===window.maplibregl}function Yf(e){if(typeof window>"u")return!1;const t=e?[e]:[window.maplibregl,window.mapboxgl].filter(Boolean);let n=!1;for(const o of t)if(!(!o||!o.setRTLTextPlugin))try{if(Kf(o)){if(o.getRTLTextPluginStatus&&o.getRTLTextPluginStatus()!=="unavailable")continue;const a=o.setRTLTextPlugin(ed.maplibre,!0);a&&a.catch&&a.catch(()=>{})}else o.setRTLTextPlugin(ed.mapbox,null,!0);n=!0}catch{}return n}const Zf=/\[\s*"get"\s*,\s*"name(?::latin|:nonlatin|:en|_en|_int)?"\s*\]|\{name(?::latin|:nonlatin|:en|_en|_int)?\}/,td=new WeakMap;function Jf(e){return typeof window<"u"&&!!window.maplibregl&&e instanceof window.maplibregl.Map}function nd(e,t){if(!e||!t)return 0;const n=String(t).split("-")[0].toLowerCase();try{if(!Jf(e))return typeof e.setLanguage=="function"&&e.setLanguage(n),0;const o=e.getStyle&&e.getStyle();if(!o||!Array.isArray(o.layers))return 0;let a=td.get(e);a||(a=new Map,td.set(e,a));let r=0;for(const s of o.layers){if(s.type!=="symbol"||!s.layout||s.layout["text-field"]==null)continue;const i=s.layout["text-field"],l=JSON.stringify(i);if(l.startsWith('["coalesce",["get","name:')){if(!a.has(s.id))continue}else{if(!Zf.test(l))continue;a.set(s.id,i)}const c=["coalesce",["get","name:"+n],["get","name_"+n],["get","name:latin"],["get","name_en"],["get","name"]];e.setLayoutProperty(s.id,"text-field",c),r++}return r}catch{return 0}}const zo={mapbox:{global:"mapboxgl",js:ka.mapboxGlJs.url,css:ka.mapboxGlCss.url},maplibre:{global:"maplibregl",js:ka.maplibreGlJs.url,css:ka.maplibreGlCss.url}},Xf={"Map.Title":"map","Marker.Title":"marker","Popup.Close":"closePopup","NavigationControl.ZoomIn":"zoomIn","NavigationControl.ZoomOut":"zoomOut","NavigationControl.ResetBearing":"resetBearing","AttributionControl.ToggleAttribution":"toggleAttribution","AttributionControl.MapFeedback":"mapFeedback","FullscreenControl.Enter":"enterFullscreen","FullscreenControl.Exit":"exitFullscreen","GeolocateControl.FindMyLocation":"findMyLocation","GeolocateControl.LocationNotAvailable":"locationNotAvailable","GlobeControl.Enable":"enableGlobe","GlobeControl.Disable":"disableGlobe","CooperativeGesturesHandler.WindowsHelpText":"ctrlScroll","CooperativeGesturesHandler.MacHelpText":"cmdScroll","CooperativeGesturesHandler.MobileHelpText":"twoFingers","ScrollZoomBlocker.CtrlMessage":"ctrlScroll","ScrollZoomBlocker.CmdMessage":"cmdScroll","TouchPanBlocker.Message":"twoFingers"};function od(e,t){const n={};for(const[a,r]of Object.entries(Xf)){const s=Qn(`mapui.${r}`,e);s&&(n[a]=s)}const o=Qn(t==="maplibre"?"mapui.maplibreLogo":"mapui.mapboxHomepage",e);return o&&(n["LogoControl.Title"]=o),n}function ad(e){if(typeof window>"u")return;const t=window,n=()=>{try{const o=e.getContainer().querySelector(".mapboxgl-ctrl-logo, .maplibregl-ctrl-logo");o&&(o.style.display="none")}catch{}};if(t.__doxaLogoOwner&&t.__doxaLogoOwner!==e){e.once("load",n),n();return}t.__doxaLogoOwner=e,e.once("remove",()=>{t.__doxaLogoOwner===e&&(t.__doxaLogoOwner=null)})}const Qf=zo.mapbox.css,eb="https://tiles.openfreemap.org/styles/liberty",tb="https://tiles.openfreemap.org/styles/fiord";function si(e){var n;const t=((n=zo[e])==null?void 0:n.global)||zo.mapbox.global;return typeof window<"u"?window[t]:void 0}async function rd(e){const t=zo[e]||zo.mapbox;if(si(e)||typeof document>"u")return;if(!document.querySelector(`link[href="${t.css}"]`)){const o=document.createElement("link");o.rel="stylesheet",o.href=t.css,ri(o,t.css),document.head.appendChild(o)}const n=document.querySelector(`script[src="${t.js}"]`);if(n){if(si(e))return;await new Promise(o=>{n.addEventListener("load",o,{once:!0}),n.addEventListener("error",o,{once:!0})});return}await new Promise((o,a)=>{const r=document.createElement("script");r.src=t.js,ri(r,t.js),r.async=!1,r.addEventListener("load",o,{once:!0}),r.addEventListener("error",()=>a(new Error(`[useMapInstance] Failed to load ${e} engine script`)),{once:!0}),document.head.appendChild(r)})}async function nb(e,t){if(!e)return;const n=e.getRootNode();if(!(n instanceof ShadowRoot))return;const o=s=>new Promise(i=>setTimeout(i,s)),a=n.querySelector(`link[href="${t}"]`);if(a){if(a.sheet)return;await Promise.race([new Promise(s=>{a.addEventListener("load",s,{once:!0}),a.addEventListener("error",s,{once:!0})}),o(2e3)]);return}const r=document.createElement("link");r.rel="stylesheet",r.href=t,ri(r,t),await Promise.race([new Promise(s=>{r.addEventListener("load",s,{once:!0}),r.addEventListener("error",s,{once:!0}),n.prepend(r)}),o(2e3)])}function ob(e,t){return typeof e=="string"&&/^https?:\/\//.test(e)?e:t==="night"||t==="dusk"?tb:eb}const ab=85.0511,ii=-2,rb=0,sb=-60;function sd(e){return(1-Math.log(Math.tan(Math.PI/4+e*Math.PI/180/2))/Math.PI)/2}function ib(e,t,n,o){if(!e||e<=0||!t||t<=0)return rb;const a=Math.log2(e/512),r=sd(o)-sd(ab),s=Math.log2(t/(512*r)),i=Math.max(a,s);return Math.max(ii,Math.min(i,(n??18)-1))}function id({containerRef:e,accessToken:t,style:n,config:o=void 0,provider:a=void 0,center:r=[20,10],zoom:s=2,bounds:i=void 0,fitBoundsOptions:l=void 0,minZoom:c=void 0,skipWorldFloor:u=!1,maxZoom:d=18,pitch:h=0,bearing:k=0,renderWorldCopies:F=!0,showEdgeBorders:w=!0,southCutoff:A=sb,maxBounds:N=void 0}){const y=qa(null),v=Ce(!1);let S=null,b=null,$=null,E=null;try{E=bt("profileConfig",null)}catch{}const L=!a&&!Xu(E);a=a||qf(E,{token:t});let M=a==="maplibre";typeof document<"u"&&rd(a).catch(()=>{});let V=null;try{V=bt("lang",null)}catch{}const ae=()=>{const Z=V&&typeof V=="object"&&"value"in V?V.value:V;if(typeof Z=="string"&&Z)return Z;const Q=E&&typeof E=="object"&&"value"in E?E.value:E;if(Q&&(Q.locale||Q.lang))return String(Q.locale||Q.lang);try{const te=new URLSearchParams(location.search);return te.get("lang")||te.get("locale")||document.documentElement.lang||"en"}catch{return"en"}};async function ee(){var Ve;if(L&&!M&&!t&&typeof window<"u"&&window.__doxaMapTokenPending){if(await window.__doxaMapTokenPending,!e.value)return;typeof window.MAP_TOKEN=="string"&&window.MAP_TOKEN||(a="maplibre",M=!0)}const Z=Bf(n,a),Q=Z.style||n;if(!e.value){console.error("containerRef.value is null — call initializeMap() inside onMounted()");return}const te=()=>!e.value;if(await rd(a),te())return;const de=si(a);if(!de){console.error(`[useMapInstance] ${M?"maplibregl":"mapboxgl"} is not available. Add the ${M?"MapLibre":"Mapbox"} GL JS script to your page.`);return}if(Yf(de),!M){if(!t&&typeof window<"u"&&window.__doxaMapTokenPending&&(await window.__doxaMapTokenPending,te()))return;if(!t&&typeof window<"u"&&typeof window.MAP_TOKEN=="string"&&window.MAP_TOKEN&&(t=window.MAP_TOKEN),!t){typeof window<"u"&&!window.__doxaNoTokenWarned&&(window.__doxaNoTokenWarned=!0,console.warn('No Mapbox access token provided. Pass "tk" in profile-config JSON or set window.MAP_TOKEN.'));return}if(!t.startsWith("pk.")){console.error('Mapbox token looks invalid (expected "pk." prefix). Got:',t.slice(0,10)+"...");return}}if(await nb(e.value,M?zo.maplibre.css:Qf),te()||(await new Promise(Se=>requestAnimationFrame(Se)),te()))return;const x=e.value,_=x.clientWidth,H=x.clientHeight;if(_===0||H===0){console.error(`[useMapInstance] Container has ZERO dimensions (${_}×${H}). Map will be invisible. Check that parent elements have CSS sizing.`);let Se=x.parentElement,xe=0;for(;Se&&xe<5;)Se=Se.parentElement,xe++}const R=t;M||(de.accessToken=R);const X=()=>typeof window<"u"&&window.innerWidth>=1024,$e=(Se,xe)=>{if(u)return typeof c=="number"?c:ii;if(!X())return ii;const Je=ib(Se,xe,d,A);return typeof c=="number"?Math.max(c,Je):Je},ce=$e(x.clientWidth,x.clientHeight),fe=Z.lightPreset||(()=>{var Se;try{const xe=typeof o=="function"?o():o;return(Se=xe==null?void 0:xe.basemap)==null?void 0:Se.lightPreset}catch{return}})();if(M){y.value=new de.Map({container:e.value,style:ob(Q,fe),locale:od(ae(),"maplibre"),center:r,zoom:s,minZoom:ce,maxZoom:d,pitch:h,bearing:k,dragRotate:!1,renderWorldCopies:F,...i?{bounds:i,...l?{fitBoundsOptions:l}:{}}:{},...N?{maxBounds:N}:{},attributionControl:!0,logoPosition:typeof window<"u"&&window.matchMedia&&window.matchMedia("(max-width: 767px)").matches?"bottom-right":"bottom-left"}),ad(y.value);try{e.value.__doxaMap=y.value}catch{}}else{const Se=typeof o=="function"?o():o;y.value=new de.Map({accessToken:R,container:e.value,style:Q,locale:od(ae(),"mapbox"),...Se?{config:Se}:{},center:r,zoom:s,minZoom:ce,maxZoom:d,pitch:h,bearing:k,dragRotate:!1,touchPitch:!1,renderWorldCopies:F,...i?{bounds:i,...l?{fitBoundsOptions:l}:{}}:{},...N?{maxBounds:N}:{},attributionControl:!0,logoPosition:typeof window<"u"&&window.matchMedia&&window.matchMedia("(max-width: 767px)").matches?"bottom-right":"bottom-left"}),ad(y.value);try{e.value.__doxaMap=y.value}catch{}}try{let Se=!1;y.value.on("error",xe=>{var T,P;const Je=((T=xe==null?void 0:xe.error)==null?void 0:T.status)??(xe==null?void 0:xe.status),f=String(((P=xe==null?void 0:xe.error)==null?void 0:P.url)||(xe==null?void 0:xe.sourceId)||"");Je!==401&&Je!==403||Se||(Se=!0,console.error(`[doxa-maps] Mapbox returned ${Je} for a TILE request while the style loaded fine. That is a URL RESTRICTION on the access token, not a bad token and not a bug in this map. Add this page's origin (${typeof location<"u"?location.origin:"this origin"}) to the token's URL restrictions in the Mapbox account. The map will keep its data layer and stay blank underneath until then.`+(f?` First failing request: ${f.slice(0,120)}`:"")))})}catch{}try{y.value.touchZoomRotate.disableRotation()}catch{}$=jf(((Ve=e.value)==null?void 0:Ve.parentElement)||null,{enabled:w});let Me=ce,Pe=null;S=()=>{const Se=y.value;if(!Se)return;const xe=$e(x.clientWidth,x.clientHeight);xe!==Me&&(Me=xe,Se.setMinZoom(xe)),Se.getZoom(){Pe=null;const Je=y.value;if(!Je)return;const f=$e(x.clientWidth,x.clientHeight);if(Je.getZoom(){Pe&&(clearTimeout(Pe),Pe=null)},y.value.on("resize",S),typeof window<"u"&&(window.addEventListener("resize",S),window.addEventListener("orientationchange",S)),y.value.on("style.load",()=>{if(y.value&&nd(y.value,ae()),Z.paint&&y.value){const Se=Uf(y.value,Z.paint);console.info("[useMapInstance] style paint applied ("+a+"):",Se.join(", ")||"NONE MATCHED")}requestAnimationFrame(()=>{var Se;(Se=y.value)==null||Se.resize(),y.value&&y.value.setMinZoom($e(x.clientWidth,x.clientHeight)),v.value=!0})})}function C(){if(y.value){if(S&&(y.value.off("resize",S),typeof window<"u"&&(window.removeEventListener("resize",S),window.removeEventListener("orientationchange",S)),S=null),b){try{b()}catch{}b=null}$&&($(),$=null);try{const Q=typeof window<"u"?window:null;Q&&Q.__doxaLogoOwner===y.value&&(Q.__doxaLogoOwner=null)}catch{}const Z=y.value;y.value.remove();try{e&&e.value&&e.value.__doxaMap===Z&&(e.value.__doxaMap=null)}catch{}y.value=null,v.value=!1}}if(V&&typeof V=="object"&&"value"in V)try{$t(V,()=>{y.value&&v.value&&nd(y.value,ae())})}catch{}return{map:y,isMapReady:v,initializeMap:ee,destroy:C}}function ld(e,t){e&&(typeof e.isStyleLoaded=="function"&&e.isStyleLoaded()?t():e.once("style.load",t))}function cd(){return ai("neighbor")}const ud={imb:{file:"data/people-groups/people_groups.csv",publisher:"IMB / peoplegroups.org",captured:"2026-07-16"},doxa:{file:"data/people-groups/doxa-groups-snapshot.json",source:"https://pray.doxa.life/api/people-groups/list",fetched:"2026-09-25"}},dd=[{id:"all",groups:12379,population:8288563969},{id:"unreached",groups:7341,population:4893057899},{id:"frontier",groups:4754,population:2813855464},{id:"doxa",groups:2107,population:209079159,frontier:1745,unreached:2082,matched:2091,unmatched:16}],Nr={sources:ud,steps:dd},lb=Object.freeze(Object.defineProperty({__proto__:null,default:Nr,sources:ud,steps:dd},Symbol.toStringTag,{value:"Module"})),cb=Vr&&Vr.tagName.toUpperCase()==="SCRIPT"&&Vr.src||new URL("upg-neighbor.js",document.baseURI).href,Sa=e=>String(e||"").trim().replace(/\/+$/,"");function ub(){try{const t=String(cb||"").split(/[?#]/)[0].match(/^(.*)\/([^/]+)\/([^/]+)\.js$/);return!t||t[2]!==t[3]?null:t[1]||null}catch{return null}}function db(e){const t=e==null?void 0:e.assetsBase;if(typeof t=="string"&&t.trim()){const o=Sa(t);if(/^https?:\/\//i.test(o)||o.startsWith("/"))return o}const n=Sa((e==null?void 0:e.treeBase)||"")||Sa(ub()||"");if(n)try{const o=typeof document<"u"?document.baseURI:void 0;return Sa(new URL(n+"/assets",o).href)}catch{return Sa(n+"/assets")}return"./assets"}const ln={1:"#0f7a3d",2:"#34a853",3:"#9aa7b4"},kn="#e11d48",Do="#16a34a",Fr="#f59e0b",lt="#002e6e";let Pa=null;function pd(e){if(Pa)return Pa;const t=(e==null?void 0:e.value)||e||{},n=t.nearDataUrl||`${db(t)}/tables/near-neighbors.json`;return Pa=fetch(n).then(o=>{if(!o.ok)throw new Error(`HTTP ${o.status}`);return o.json()}).then(pb).catch(o=>{throw Pa=null,o}),Pa}function pb(e){const{cols:t,dict:n,rows:o,links:a,bridges:r,meta:s}=e,i=o.map((w,A)=>{const N={i:A};return t.forEach((y,v)=>{N[y]=n[y]?n[y][w[v]]:w[v]}),N.reached=!!N.reached,N}),l=w=>(a[w.i]||[]).map(([A,N,y,v])=>({g:i[A],e:N,km:y,same:!!v})),c=w=>{const A=a[w.i];return A&&A.length?Math.min(...A.map(N=>N[1])):0},u=i.filter(w=>!w.reached),d=new Map;for(const[w,A]of Object.entries(a))for(const[N,y,v,S]of A)d.has(N)||d.set(N,[]),d.get(N).push({g:i[+w],e:y,km:v,same:!!S});for(const w of d.values())w.sort((A,N)=>A.e-N.e||A.km-N.km);const h=w=>d.get(w.i)||[],k=i.filter(w=>w.reached);for(const w of u)w.p=c(w),w.ringNeighbor=w.ringNb>=0?i[w.ringNb]:null;const F=r.map(w=>{var y,v;const A=w.reached.map(S=>i[S]),N=w.unreached.map(S=>i[S]);return{lang:w.lang,langName:((y=A[0])==null?void 0:y.langName)||((v=N[0])==null?void 0:v.langName)||w.lang,believers:w.believers,unreachedPop:w.unreachedPop,res:{bible:!!w.res[0],film:!!w.res[1],audio:!!w.res[2],radio:!!w.res[3]},reached:A,unreached:N,reachedCountries:[...new Set(A.map(S=>S.country))].sort(),unreachedCountries:[...new Set(N.map(S=>S.country))].sort()}});return{meta:s,groups:i,unreached:u,reached:k,neighborsOf:l,unreachedNeighborsOf:h,bridges:F}}const eo=e=>String(e||"").normalize("NFD").replace(/[̀-ͯ]/g,"").toLowerCase();function Mt(e){return e=Number(e)||0,e>=1e9?(e/1e9).toFixed(1)+"B":e>=1e6?(e/1e6).toFixed(e>=1e7?0:1)+"M":e>=1e3?(e/1e3).toFixed(e>=1e4?0:1)+"K":String(Math.round(e))}function li(e,t,n){const o=a=>{const r=String(a??"");return/[",\n]/.test(r)?'"'+r.replace(/"/g,'""')+'"':r};gd(e,[t,...n].map(a=>a.map(o).join(",")).join(`
`)+`
-`,"text/csv")}function gd(e,t,n="text/plain"){const o=URL.createObjectURL(new Blob(["\uFEFF"+t],{type:n+";charset=utf-8"})),a=document.createElement("a");a.href=o,a.download=e,a.style.display="none",document.body.appendChild(a),a.click(),a.remove(),setTimeout(()=>URL.revokeObjectURL(o),1e3)}const ci=30,db=e=>e&&e.slug?`https://pray.doxa.life/${encodeURIComponent(e.slug)}?source=doxalife`:"";function pb({group:e,neighbors:t,level:n,t:o,fmt:a=String}){const r=t.length,s=[o("neighbor.letter.greeting",{group:e.name,country:e.country}),"",o("neighbor.letter.intro",{n:r.toLocaleString("en-US"),level:n}),""];for(const i of t.slice(0,ci)){const l=i.g;s.push("• "+o("neighbor.letter.item",{name:l.name,country:l.country,pop:a(l.pop),language:l.langName,km:i.km.toLocaleString("en-US")}));const c=db(l);c&&s.push(" "+o("neighbor.letter.pray",{url:c}))}return r>ci&&s.push("",o("neighbor.letter.more",{n:(r-ci).toLocaleString("en-US")})),s.push("",o("neighbor.letter.close"),"",o("neighbor.letter.sign"),""),s.join(`
-`)}const gb={key:0,class:"mb-maperr",role:"status"},hb=["aria-label"],mb=["aria-expanded"],fb={class:"mb-head"},bb=["aria-label"],$b=["aria-pressed"],yb=["aria-pressed"],vb=["placeholder","aria-label"],_b=["aria-label"],wb=["title","onClick"],kb={class:"mb-body"},Sb={key:0,class:"mb-note",role:"alert"},Pb={key:1,class:"mb-note"},Cb={key:0,class:"mb-note",style:{"padding-bottom":"6px"}},xb=["onClick"],Tb={class:"mb-row-main"},Lb={class:"mb-row-name"},Mb={key:0,class:"mb-row-sub",style:{display:"block"}},Ab={key:1,class:"mb-row-sub",style:{display:"block"}},Eb={key:1,class:"mb-note"},Nb={key:1,class:"mb-body"},Fb={class:"mb-brief"},Rb={class:"mb-title"},Ib={class:"mb-sub"},Ob={style:{"margin-top":"4px"}},zb=["aria-label"],Db=["aria-pressed","disabled","title","onClick"],Gb={style:{"margin-top":"4px"}},jb=["aria-label"],Hb={class:"mb-actions"},Bb=["disabled","aria-busy"],Ub=["data-nb"],Wb=["onClick"],Vb={key:0,class:"mb-same"},qb={key:1,class:"muted"},Kb={key:2,class:"muted"},Yb=["onClick"],Zb=["onClick"],Jb={key:3,class:"mb-note"},Xb={class:"mb-note",style:{padding:"12px 0 0"}},Qb=["aria-label"],e$=["aria-label"],t$={class:"row"},n$={class:"status",role:"status"},ui=30,di=60,hd="nb-u",md="nb-r",pi="nb-n",fd="nb-l",bd="nb-s",o$={__name:"mobilize",setup(e){const t=cd(),n={1:"neighbor.e.short1",2:"neighbor.e.short2",3:"neighbor.e.short3"},o={1:"neighbor.e.title1",2:"neighbor.e.title2",3:"neighbor.e.title3"},a={1:"neighbor.e.long1",2:"neighbor.e.long2",3:"neighbor.e.long3"},r={1:"neighbor.e.rlong1",2:"neighbor.e.rlong2",3:"neighbor.e.rlong3"},s={0:"neighbor.p.title0",1:"neighbor.p.title1",2:"neighbor.p.title2",3:"neighbor.p.title3"},i={0:"neighbor.p.long0",1:"neighbor.p.long1",2:"neighbor.p.long2",3:"neighbor.p.long3"},l=bt("profileConfig",Ce({})),c=bt("mapboxToken",Ce("")),u=bt("nbState"),d=_e(()=>(l==null?void 0:l.value)||{}),h=Ce(null),k=Ce(null),F=Ce(""),w=Ce(""),A=Ce(""),N=Ce(0),y=_e({get:()=>u.list||"unreached",set:m=>{u.list=m}}),{map:v,initializeMap:S,destroy:b}=id({containerRef:h,accessToken:(c==null?void 0:c.value)||d.value.tk||"",style:d.value.style??"mapbox://styles/mapbox/light-v11",center:d.value.center??[45,20],zoom:d.value.zoom??1.6,minZoom:1,maxZoom:11}),$=_e(()=>{var m;return((m=k.value)==null?void 0:m.groups.find(K=>K.pgid===u.pgid))||null}),E=_e(()=>{var m;return!!((m=$.value)!=null&&m.reached)}),L=_e(()=>{const m=$.value;return m?m.reached?k.value.unreachedNeighborsOf(m):k.value.neighborsOf(m):[]}),M=_e(()=>{const m={1:0,2:0,3:0};for(const K of L.value)m[K.e]!=null&&m[K.e]++;return m}),V=Ce(null);$t(()=>u.pgid,()=>{V.value=null});const ae=_e({get:()=>V.value&&M.value[V.value]?V.value:[1,2,3].find(m=>M.value[m])||1,set:m=>{V.value=m}}),ee=_e(()=>E.value?L.value.filter(m=>m.e===ae.value).sort((m,K)=>m.km-K.km):L.value),C=_e(()=>[1,2,3].map(m=>({e:m,list:ee.value.filter(K=>K.e===m)})).filter(m=>m.list.length)),Z=_e(()=>ee.value.reduce((m,K)=>m+K.g.believers,0)),Q=_e(()=>ee.value.reduce((m,K)=>m+K.g.pop,0));function te(m){m&&(u.sheetDown=!1,u.pgid=m.pgid,A.value="")}const de=Ce(null),x=Ce(null);function _(m,K){x.value=K?{x:m.point.x,y:m.point.y,text:K}:null}const H=_e(()=>{var ne;const m=x.value;if(!m)return{};const K=((ne=h.value)==null?void 0:ne.clientWidth)||0;return m.x>K/2?{right:K-m.x+12+"px",top:m.y+12+"px"}:{left:m.x+12+"px",top:m.y+12+"px"}}),R=Ce(new Set);$t(()=>u.pgid,()=>{de.value=null,R.value=new Set});function X(m){R.value=new Set([...R.value,m])}function $e(m,K=!0){de.value=m.g.pgid,ce();const ne=v.value;if(K&&ne)try{ne.stop(),ne.easeTo({center:[m.g.lng,m.g.lat],zoom:Math.max(ne.getZoom(),5),padding:Ta(),duration:700})}catch{}const ue=C.value.find(Oe=>Oe.e===m.e);ue&&!R.value.has(m.e)&&ue.list.indexOf(m)>=ui&&X(m.e),Wt(()=>{var De,At,tt,Sn,Pn;const Oe=(Sn=(tt=(At=(De=h.value)==null?void 0:De.getRootNode)==null?void 0:At.call(De))==null?void 0:tt.querySelector)==null?void 0:Sn.call(tt,`[data-nb="${m.g.pgid}"]`);(Pn=Oe==null?void 0:Oe.scrollIntoView)==null||Pn.call(Oe,{block:"nearest",behavior:"smooth"})})}function ce(){var K;const m=v.value;(K=m==null?void 0:m.getLayer)!=null&&K.call(m,"nb-a")&&m.setFilter("nb-a",["==",["get","id"],de.value||""])}function fe(){u.pgid=null}const Me=_e(()=>k.value?k.value.unreached.filter(m=>!N.value||m.p===N.value):[]),Pe=_e(()=>{var m;return y.value==="reached"?((m=k.value)==null?void 0:m.reached)||[]:Me.value}),Ve=_e(()=>{const m=eo(A.value.trim()),K=m?Pe.value.filter(ue=>eo(ue.name).includes(m)||eo(ue.country).includes(m)||eo(ue.langName).includes(m)):Pe.value,ne=y.value==="reached"?"believers":"pop";return[...K].sort((ue,Oe)=>(Oe[ne]||0)-(ue[ne]||0)).slice(0,40)}),Se=_e(()=>{var K;const m={1:0,2:0,3:0};for(const ne of((K=k.value)==null?void 0:K.unreached)||[])m[ne.p]!=null&&m[ne.p]++;return m});function xe(){const m=$.value;if(!m)return;const K=["unreached_group","unreached_country","unreached_language","unreached_population","p_level","e_level","same_people","neighbor_group","neighbor_country","bridge_language","bridge_language_code","est_believers","distance_km","lat","lng","bible","jesus_film","audio","radio","pgid"],ne=ee.value.map(ue=>{const Oe=m.reached?ue.g:m,De=m.reached?m:ue.g;return[Oe.name,Oe.country,Oe.langName,Oe.pop,"P-"+Oe.p,"E-"+ue.e,ue.same?"yes":"",De.name,De.country,De.langName,De.lang,De.believers,ue.km,De.lat,De.lng,De.bible?"yes":"no",De.film?"yes":"no",De.audio?"yes":"no",De.radio?"yes":"no",De.pgid]});li(m.reached?`unreached-neighbors-${m.pgid}-E${ae.value}.csv`:`near-neighbors-${m.pgid}.csv`,K,ne)}const Je=Ce(!1),f=Ce(""),T=Ce(null),P=Ce(null),G=Ce("");let J=null;function Y(){const m=$.value;!m||!m.reached||(f.value=pb({group:m,neighbors:ee.value,level:t(n[ae.value]),t,fmt:Mt}),G.value="",Je.value=!0,Wt(()=>{var K,ne;return(ne=(K=T.value)==null?void 0:K.querySelector("textarea"))==null?void 0:ne.focus()}))}function se(){Je.value=!1,Wt(()=>{var m,K;return(K=(m=P.value)==null?void 0:m.focus)==null?void 0:K.call(m)})}function re(m){const K={};J=K,G.value=m,setTimeout(()=>{J===K&&(G.value="")},2e3)}async function p(){var m,K;try{await navigator.clipboard.writeText(f.value),re(Qn("messages.copied"))}catch{(K=(m=T.value)==null?void 0:m.querySelector("textarea"))==null||K.select()}}function g(){const m=$.value;m&&gd(`letter-${m.pgid}-E${ae.value}.txt`,f.value)}function O(m){var Oe;if(m.key==="Escape"){m.preventDefault(),m.stopPropagation(),se();return}if(m.key!=="Tab")return;const K=[...((Oe=T.value)==null?void 0:Oe.querySelectorAll("textarea,button"))||[]];if(!K.length)return;const ne=T.value.getRootNode(),ue=ne.activeElement;m.shiftKey&&ue===K[0]?(m.preventDefault(),K[K.length-1].focus()):!m.shiftKey&&ue===K[K.length-1]&&(m.preventDefault(),K[0].focus())}$t(()=>u.pgid,()=>{Je.value=!1});const j=Ce(!1),ie=m=>m.slug||m.pgid;async function oe(m){const K=typeof window<"u"&&window.MAP_APP_API_URL||void 0||"",ne=new Set(m.map(ue=>ue.slug).filter(Boolean));if(!K||!ne.size)return new Map;try{const ue=await fetch(`${K}/api/people-groups/list?fields=slug,image_url`);if(!ue.ok)return new Map;const Oe=await ue.json(),De=Array.isArray(Oe)?Oe:Oe.data||Oe.people_groups||Oe.posts||[],At=tt=>tt&&typeof tt=="object"?tt.value||tt.url||"":tt||"";return new Map(De.filter(tt=>ne.has(tt.slug)&&At(tt.image_url)).map(tt=>[tt.slug,At(tt.image_url)]))}catch{return new Map}}const I=(m,K)=>({slug:ie(m),name:m.name,population:m.pop,religion:m.religion,country_code:m.iso3,country_code_label:m.country,primary_language_label:m.langName,imb_gsec:Number.isInteger(m.imb_gsec)?m.imb_gsec:null,image_url:K.get(m.slug)||""});async function U(){const m=$.value;if(!(!m||!m.reached||j.value||!ee.value.length)){j.value=!0;try{const K=ee.value,ne=K.slice(0,di).map(Et=>Et.g),ue=t(n[ae.value]),Oe=K.length>di?t("neighbor.packet.labelCapped",{group:m.name,n:di,total:K.length.toLocaleString("en-US"),level:ue}):t("neighbor.packet.label",{group:m.name,level:ue}),De={id:`neighbours-${m.pgid}-E${ae.value}`,label:Oe,selector:{type:"pg_slugs",values:ne.map(ie)}},[{usePosterPrints:At},tt]=await Promise.all([Bt(()=>Promise.resolve().then(()=>ey),void 0),oe(ne)]),Sn=ne.map(Et=>I(Et,tt)),Pn=((Nr==null?void 0:Nr.steps)||[]).filter(Et=>Et.id==="all"||Et.id==="unreached");await At({records:()=>Sn,lang:()=>String(Mr()||"en").split("-")[0],label:Et=>(Et==null?void 0:Et.label)||"",downloadPrefix:"doxa-upg-neighbor"}).printPacket(De,{funnel:Pn.length?{steps:Pn}:{steps:[]},variant:"lightweight"})}catch(K){console.warn("[upg-neighbor] packet failed:",(K==null?void 0:K.message)||K)}finally{j.value=!1}}}function ye(){$.value&&(u.lang=$.value.lang,u.view="campaigns")}const Fe=_e(()=>{var m;return!!$.value&&!!((m=k.value)!=null&&m.bridges.some(K=>K.lang===$.value.lang))}),je=m=>({type:"FeatureCollection",features:m}),ct=(m,K)=>({type:"Feature",geometry:{type:"Point",coordinates:[m.lng,m.lat]},properties:K});function ft(){return je(Me.value.map(m=>ct(m,{id:m.pgid,pop:m.pop})))}function cn(){var m;return je((((m=k.value)==null?void 0:m.reached)||[]).map(K=>ct(K,{id:K.pgid,b:K.believers})))}function yo(){const m=$.value;if(!m)return{n:je([]),l:je([]),s:je([])};const K=[],ne=[];for(const ue of ee.value)K.push(ct(ue.g,{id:ue.g.pgid,e:ue.e,name:ue.g.name,color:m.reached?kn:ln[ue.e],ring:ln[ue.e]})),ne.push({type:"Feature",geometry:{type:"LineString",coordinates:[[ue.g.lng,ue.g.lat],[m.lng,m.lat]]},properties:{e:ue.e,color:ln[ue.e]}});return{n:je(K),l:je(ne),s:je([ct(m,{name:m.name,color:m.reached?Do:kn})])}}function it(m,K,ne){const ue=m.getSource(K);ue?ue.setData(ne):m.addSource(K,{type:"geojson",data:ne})}function Dt(m){it(m,hd,ft()),it(m,md,cn());const K=yo();it(m,fd,K.l),it(m,pi,K.n),it(m,bd,K.s),m.getLayer("nb-u")||m.addLayer({id:"nb-u",type:"circle",source:hd,paint:{"circle-color":kn,"circle-radius":["interpolate",["linear"],["ln",["max",["get","pop"],1]],6,1.6,12,3.2,16,6.5,19,10],"circle-opacity":.55,"circle-stroke-width":.4,"circle-stroke-color":"#fff"}}),m.getLayer("nb-r")||m.addLayer({id:"nb-r",type:"circle",source:md,paint:{"circle-color":Do,"circle-radius":["interpolate",["linear"],["ln",["max",["get","b"],1]],4,1.8,10,3.4,14,6,17,9],"circle-opacity":.6,"circle-stroke-width":.4,"circle-stroke-color":"#fff"}}),m.getLayer("nb-l")||m.addLayer({id:"nb-l",type:"line",source:fd,layout:{"line-cap":"round"},paint:{"line-color":["get","color"],"line-width":["match",["get","e"],1,2.2,2,1.6,1.1],"line-opacity":.75}}),m.getLayer("nb-n")||m.addLayer({id:"nb-n",type:"circle",source:pi,paint:{"circle-color":["get","color"],"circle-radius":["match",["get","e"],1,7,2,6,5],"circle-stroke-width":2,"circle-stroke-color":["coalesce",["get","ring"],"#fff"]}}),m.getLayer("nb-a")||m.addLayer({id:"nb-a",type:"circle",source:pi,filter:["==",["get","id"],""],paint:{"circle-color":"rgba(0,0,0,0)","circle-radius":11,"circle-stroke-width":3,"circle-stroke-color":Fr}}),m.getLayer("nb-s")||m.addLayer({id:"nb-s",type:"circle",source:bd,paint:{"circle-color":["coalesce",["get","color"],kn],"circle-radius":10,"circle-stroke-width":3,"circle-stroke-color":Fr}}),Ho(m),ce()}function Ho(m){m.getLayer("nb-u")&&m.setPaintProperty("nb-u","circle-opacity",$.value?.18:.55),m.getLayer("nb-r")&&m.setPaintProperty("nb-r","circle-opacity",$.value?.18:.6)}let to=!1;function vo(){var K;const m=v.value;if(m){if(!((K=m.isStyleLoaded)!=null&&K.call(m))){to||(to=!0,m.once("idle",()=>{to=!1,vo()}));return}Dt(m)}}function Bo(){const m=v.value,K=$.value;if(!m||!K)return;const ne=[[K.lng,K.lat],...ee.value.map(De=>[De.g.lng,De.g.lat])],ue=ne.map(De=>De[0]),Oe=ne.map(De=>De[1]);try{m.stop(),ne.length<2?m.easeTo({center:[K.lng,K.lat],zoom:4,duration:800}):m.fitBounds([[Math.min(...ue),Math.min(...Oe)],[Math.max(...ue),Math.max(...Oe)]],{padding:Ta(),maxZoom:6,duration:900})}catch{}}function Ta(){const m=h.value,K=(m==null?void 0:m.clientWidth)||0,ne=(m==null?void 0:m.clientHeight)||0,ue=!!m&&getComputedStyle(m).direction==="rtl";return K>760?{top:60,bottom:60,left:ue?60:400,right:ue?400:60}:{top:40,bottom:(u.sheetDown?56:Math.round(ne*.55))+20,left:30,right:30}}function Jt(){u.sheetDown=!u.sheetDown,Wt(()=>Bo())}return $t(()=>[u.pgid,N.value,k.value,ae.value],()=>{vo(),Bo()}),To(async()=>{pd(l).then(K=>{k.value=K,vo(),Bo()}).catch(K=>{F.value=t("neighbor.mob.loadError",{message:String(K.message||K)})}),await S();const m=v.value;if(!m){w.value=Qn("messages.mapUnavailable");return}ld(m,()=>{Qu(m,"mercator"),vo(),Bo(),m.on("click",ue=>{var Sn,Pn;const Oe=["nb-n","nb-r","nb-u"].filter(Cn=>m.getLayer(Cn)),De=Oe.length?m.queryRenderedFeatures(ue.point,{layers:Oe})[0]:null,At=(Sn=De==null?void 0:De.properties)==null?void 0:Sn.id;if(!At)return;if(De.layer.id==="nb-n"){const Cn=ee.value.find(Et=>Et.g.pgid===At);Cn&&(u.sheetDown=!1,$e(Cn,!1));return}const tt=(Pn=k.value)==null?void 0:Pn.groups.find(Cn=>Cn.pgid===At);tt&&te(tt)});const K=ue=>{var Oe;return(Oe=k.value)==null?void 0:Oe.groups.find(De=>De.pgid===ue)},ne=ue=>ue&&`${ue.name} · ${ue.country} · ${ue.langName}`;m.on("movestart",()=>{x.value=null});for(const ue of["nb-u","nb-r","nb-n"])m.on("mouseenter",ue,()=>{m.getCanvas().style.cursor="pointer"}),m.on("mousemove",ue,Oe=>{var De,At,tt;return _(Oe,ne(K((tt=(At=(De=Oe.features)==null?void 0:De[0])==null?void 0:At.properties)==null?void 0:tt.id)))}),m.on("mouseleave",ue,()=>{m.getCanvas().style.cursor="",x.value=null})}),m.on("style.load",vo)}),Lo(()=>b()),Er(`
+`,"text/csv")}function gd(e,t,n="text/plain"){const o=URL.createObjectURL(new Blob(["\uFEFF"+t],{type:n+";charset=utf-8"})),a=document.createElement("a");a.href=o,a.download=e,a.style.display="none",document.body.appendChild(a),a.click(),a.remove(),setTimeout(()=>URL.revokeObjectURL(o),1e3)}const ci=30,gb=e=>e&&e.slug?`https://pray.doxa.life/${encodeURIComponent(e.slug)}?source=doxalife`:"";function hb({group:e,neighbors:t,level:n,t:o,fmt:a=String}){const r=t.length,s=[o("neighbor.letter.greeting",{group:e.name,country:e.country}),"",o("neighbor.letter.intro",{n:r.toLocaleString("en-US"),level:n}),""];for(const i of t.slice(0,ci)){const l=i.g;s.push("• "+o("neighbor.letter.item",{name:l.name,country:l.country,pop:a(l.pop),language:l.langName,km:i.km.toLocaleString("en-US")}));const c=gb(l);c&&s.push(" "+o("neighbor.letter.pray",{url:c}))}return r>ci&&s.push("",o("neighbor.letter.more",{n:(r-ci).toLocaleString("en-US")})),s.push("",o("neighbor.letter.close"),"",o("neighbor.letter.sign"),""),s.join(`
+`)}const mb={key:0,class:"mb-maperr",role:"status"},fb=["aria-label"],bb=["aria-expanded"],$b={class:"mb-head"},yb=["aria-label"],vb=["aria-pressed"],_b=["aria-pressed"],wb=["placeholder","aria-label"],kb=["aria-label"],Sb=["title","onClick"],Pb={class:"mb-body"},Cb={key:0,class:"mb-note",role:"alert"},xb={key:1,class:"mb-note"},Tb={key:0,class:"mb-note",style:{"padding-bottom":"6px"}},Lb=["onClick"],Mb={class:"mb-row-main"},Ab={class:"mb-row-name"},Eb={key:0,class:"mb-row-sub",style:{display:"block"}},Nb={key:1,class:"mb-row-sub",style:{display:"block"}},Fb={key:1,class:"mb-note"},Rb={key:1,class:"mb-body"},Ib={class:"mb-brief"},Ob={class:"mb-title"},zb={class:"mb-sub"},Db={style:{"margin-top":"4px"}},Gb=["aria-label"],jb=["aria-pressed","disabled","title","onClick"],Hb={style:{"margin-top":"4px"}},Bb=["aria-label"],Ub={class:"mb-actions"},Wb=["disabled","aria-busy"],Vb=["data-nb"],qb=["onClick"],Kb={key:0,class:"mb-same"},Yb={key:1,class:"muted"},Zb={key:2,class:"muted"},Jb=["onClick"],Xb=["onClick"],Qb={key:3,class:"mb-note"},e$={class:"mb-note",style:{padding:"12px 0 0"}},t$=["aria-label"],n$=["aria-label"],o$={class:"row"},a$={class:"status",role:"status"},ui=30,di=60,hd="nb-u",md="nb-r",pi="nb-n",fd="nb-l",bd="nb-s",r$={__name:"mobilize",setup(e){const t=cd(),n={1:"neighbor.e.short1",2:"neighbor.e.short2",3:"neighbor.e.short3"},o={1:"neighbor.e.title1",2:"neighbor.e.title2",3:"neighbor.e.title3"},a={1:"neighbor.e.long1",2:"neighbor.e.long2",3:"neighbor.e.long3"},r={1:"neighbor.e.rlong1",2:"neighbor.e.rlong2",3:"neighbor.e.rlong3"},s={0:"neighbor.p.title0",1:"neighbor.p.title1",2:"neighbor.p.title2",3:"neighbor.p.title3"},i={0:"neighbor.p.long0",1:"neighbor.p.long1",2:"neighbor.p.long2",3:"neighbor.p.long3"},l=bt("profileConfig",Ce({})),c=bt("mapboxToken",Ce("")),u=bt("nbState"),d=_e(()=>(l==null?void 0:l.value)||{}),h=Ce(null),k=Ce(null),F=Ce(""),w=Ce(""),A=Ce(""),N=Ce(0),y=_e({get:()=>u.list||"unreached",set:m=>{u.list=m}}),{map:v,initializeMap:S,destroy:b}=id({containerRef:h,accessToken:(c==null?void 0:c.value)||d.value.tk||"",style:d.value.style??"mapbox://styles/mapbox/light-v11",center:d.value.center??[45,20],zoom:d.value.zoom??1.6,minZoom:1,maxZoom:11}),$=_e(()=>{var m;return((m=k.value)==null?void 0:m.groups.find(K=>K.pgid===u.pgid))||null}),E=_e(()=>{var m;return!!((m=$.value)!=null&&m.reached)}),L=_e(()=>{const m=$.value;return m?m.reached?k.value.unreachedNeighborsOf(m):k.value.neighborsOf(m):[]}),M=_e(()=>{const m={1:0,2:0,3:0};for(const K of L.value)m[K.e]!=null&&m[K.e]++;return m}),V=Ce(null);$t(()=>u.pgid,()=>{V.value=null});const ae=_e({get:()=>V.value&&M.value[V.value]?V.value:[1,2,3].find(m=>M.value[m])||1,set:m=>{V.value=m}}),ee=_e(()=>E.value?L.value.filter(m=>m.e===ae.value).sort((m,K)=>m.km-K.km):L.value),C=_e(()=>[1,2,3].map(m=>({e:m,list:ee.value.filter(K=>K.e===m)})).filter(m=>m.list.length)),Z=_e(()=>ee.value.reduce((m,K)=>m+K.g.believers,0)),Q=_e(()=>ee.value.reduce((m,K)=>m+K.g.pop,0));function te(m){m&&(u.sheetDown=!1,u.pgid=m.pgid,A.value="")}const de=Ce(null),x=Ce(null);function _(m,K){x.value=K?{x:m.point.x,y:m.point.y,text:K}:null}const H=_e(()=>{var ne;const m=x.value;if(!m)return{};const K=((ne=h.value)==null?void 0:ne.clientWidth)||0;return m.x>K/2?{right:K-m.x+12+"px",top:m.y+12+"px"}:{left:m.x+12+"px",top:m.y+12+"px"}}),R=Ce(new Set);$t(()=>u.pgid,()=>{de.value=null,R.value=new Set});function X(m){R.value=new Set([...R.value,m])}function $e(m,K=!0){de.value=m.g.pgid,ce();const ne=v.value;if(K&&ne)try{ne.stop(),ne.easeTo({center:[m.g.lng,m.g.lat],zoom:Math.max(ne.getZoom(),5),padding:Ta(),duration:700})}catch{}const ue=C.value.find(Oe=>Oe.e===m.e);ue&&!R.value.has(m.e)&&ue.list.indexOf(m)>=ui&&X(m.e),Wt(()=>{var De,At,tt,Sn,Pn;const Oe=(Sn=(tt=(At=(De=h.value)==null?void 0:De.getRootNode)==null?void 0:At.call(De))==null?void 0:tt.querySelector)==null?void 0:Sn.call(tt,`[data-nb="${m.g.pgid}"]`);(Pn=Oe==null?void 0:Oe.scrollIntoView)==null||Pn.call(Oe,{block:"nearest",behavior:"smooth"})})}function ce(){var K;const m=v.value;(K=m==null?void 0:m.getLayer)!=null&&K.call(m,"nb-a")&&m.setFilter("nb-a",["==",["get","id"],de.value||""])}function fe(){u.pgid=null}const Me=_e(()=>k.value?k.value.unreached.filter(m=>!N.value||m.p===N.value):[]),Pe=_e(()=>{var m;return y.value==="reached"?((m=k.value)==null?void 0:m.reached)||[]:Me.value}),Ve=_e(()=>{const m=eo(A.value.trim()),K=m?Pe.value.filter(ue=>eo(ue.name).includes(m)||eo(ue.country).includes(m)||eo(ue.langName).includes(m)):Pe.value,ne=y.value==="reached"?"believers":"pop";return[...K].sort((ue,Oe)=>(Oe[ne]||0)-(ue[ne]||0)).slice(0,40)}),Se=_e(()=>{var K;const m={1:0,2:0,3:0};for(const ne of((K=k.value)==null?void 0:K.unreached)||[])m[ne.p]!=null&&m[ne.p]++;return m});function xe(){const m=$.value;if(!m)return;const K=["unreached_group","unreached_country","unreached_language","unreached_population","p_level","e_level","same_people","neighbor_group","neighbor_country","bridge_language","bridge_language_code","est_believers","distance_km","lat","lng","bible","jesus_film","audio","radio","pgid"],ne=ee.value.map(ue=>{const Oe=m.reached?ue.g:m,De=m.reached?m:ue.g;return[Oe.name,Oe.country,Oe.langName,Oe.pop,"P-"+Oe.p,"E-"+ue.e,ue.same?"yes":"",De.name,De.country,De.langName,De.lang,De.believers,ue.km,De.lat,De.lng,De.bible?"yes":"no",De.film?"yes":"no",De.audio?"yes":"no",De.radio?"yes":"no",De.pgid]});li(m.reached?`unreached-neighbors-${m.pgid}-E${ae.value}.csv`:`near-neighbors-${m.pgid}.csv`,K,ne)}const Je=Ce(!1),f=Ce(""),T=Ce(null),P=Ce(null),G=Ce("");let J=null;function Y(){const m=$.value;!m||!m.reached||(f.value=hb({group:m,neighbors:ee.value,level:t(n[ae.value]),t,fmt:Mt}),G.value="",Je.value=!0,Wt(()=>{var K,ne;return(ne=(K=T.value)==null?void 0:K.querySelector("textarea"))==null?void 0:ne.focus()}))}function se(){Je.value=!1,Wt(()=>{var m,K;return(K=(m=P.value)==null?void 0:m.focus)==null?void 0:K.call(m)})}function re(m){const K={};J=K,G.value=m,setTimeout(()=>{J===K&&(G.value="")},2e3)}async function p(){var m,K;try{await navigator.clipboard.writeText(f.value),re(Qn("messages.copied"))}catch{(K=(m=T.value)==null?void 0:m.querySelector("textarea"))==null||K.select()}}function g(){const m=$.value;m&&gd(`letter-${m.pgid}-E${ae.value}.txt`,f.value)}function O(m){var Oe;if(m.key==="Escape"){m.preventDefault(),m.stopPropagation(),se();return}if(m.key!=="Tab")return;const K=[...((Oe=T.value)==null?void 0:Oe.querySelectorAll("textarea,button"))||[]];if(!K.length)return;const ne=T.value.getRootNode(),ue=ne.activeElement;m.shiftKey&&ue===K[0]?(m.preventDefault(),K[K.length-1].focus()):!m.shiftKey&&ue===K[K.length-1]&&(m.preventDefault(),K[0].focus())}$t(()=>u.pgid,()=>{Je.value=!1});const j=Ce(!1),ie=m=>m.slug||m.pgid;async function oe(m){const K=typeof window<"u"&&window.MAP_APP_API_URL||void 0||"",ne=new Set(m.map(ue=>ue.slug).filter(Boolean));if(!K||!ne.size)return new Map;try{const ue=await fetch(`${K}/api/people-groups/list?fields=slug,image_url`);if(!ue.ok)return new Map;const Oe=await ue.json(),De=Array.isArray(Oe)?Oe:Oe.data||Oe.people_groups||Oe.posts||[],At=tt=>tt&&typeof tt=="object"?tt.value||tt.url||"":tt||"";return new Map(De.filter(tt=>ne.has(tt.slug)&&At(tt.image_url)).map(tt=>[tt.slug,At(tt.image_url)]))}catch{return new Map}}const I=(m,K)=>({slug:ie(m),name:m.name,population:m.pop,religion:m.religion,country_code:m.iso3,country_code_label:m.country,primary_language_label:m.langName,imb_gsec:Number.isInteger(m.imb_gsec)?m.imb_gsec:null,image_url:K.get(m.slug)||""});async function U(){const m=$.value;if(!(!m||!m.reached||j.value||!ee.value.length)){j.value=!0;try{const K=ee.value,ne=K.slice(0,di).map(Et=>Et.g),ue=t(n[ae.value]),Oe=K.length>di?t("neighbor.packet.labelCapped",{group:m.name,n:di,total:K.length.toLocaleString("en-US"),level:ue}):t("neighbor.packet.label",{group:m.name,level:ue}),De={id:`neighbours-${m.pgid}-E${ae.value}`,label:Oe,selector:{type:"pg_slugs",values:ne.map(ie)}},[{usePosterPrints:At},tt]=await Promise.all([Bt(()=>Promise.resolve().then(()=>ny),void 0),oe(ne)]),Sn=ne.map(Et=>I(Et,tt)),Pn=((Nr==null?void 0:Nr.steps)||[]).filter(Et=>Et.id==="all"||Et.id==="unreached");await At({records:()=>Sn,lang:()=>String(Mr()||"en").split("-")[0],label:Et=>(Et==null?void 0:Et.label)||"",downloadPrefix:"doxa-upg-neighbor"}).printPacket(De,{funnel:Pn.length?{steps:Pn}:{steps:[]},variant:"lightweight"})}catch(K){console.warn("[upg-neighbor] packet failed:",(K==null?void 0:K.message)||K)}finally{j.value=!1}}}function ye(){$.value&&(u.lang=$.value.lang,u.view="campaigns")}const Fe=_e(()=>{var m;return!!$.value&&!!((m=k.value)!=null&&m.bridges.some(K=>K.lang===$.value.lang))}),je=m=>({type:"FeatureCollection",features:m}),ct=(m,K)=>({type:"Feature",geometry:{type:"Point",coordinates:[m.lng,m.lat]},properties:K});function ft(){return je(Me.value.map(m=>ct(m,{id:m.pgid,pop:m.pop})))}function cn(){var m;return je((((m=k.value)==null?void 0:m.reached)||[]).map(K=>ct(K,{id:K.pgid,b:K.believers})))}function yo(){const m=$.value;if(!m)return{n:je([]),l:je([]),s:je([])};const K=[],ne=[];for(const ue of ee.value)K.push(ct(ue.g,{id:ue.g.pgid,e:ue.e,name:ue.g.name,color:m.reached?kn:ln[ue.e],ring:ln[ue.e]})),ne.push({type:"Feature",geometry:{type:"LineString",coordinates:[[ue.g.lng,ue.g.lat],[m.lng,m.lat]]},properties:{e:ue.e,color:ln[ue.e]}});return{n:je(K),l:je(ne),s:je([ct(m,{name:m.name,color:m.reached?Do:kn})])}}function it(m,K,ne){const ue=m.getSource(K);ue?ue.setData(ne):m.addSource(K,{type:"geojson",data:ne})}function Dt(m){it(m,hd,ft()),it(m,md,cn());const K=yo();it(m,fd,K.l),it(m,pi,K.n),it(m,bd,K.s),m.getLayer("nb-u")||m.addLayer({id:"nb-u",type:"circle",source:hd,paint:{"circle-color":kn,"circle-radius":["interpolate",["linear"],["ln",["max",["get","pop"],1]],6,1.6,12,3.2,16,6.5,19,10],"circle-opacity":.55,"circle-stroke-width":.4,"circle-stroke-color":"#fff"}}),m.getLayer("nb-r")||m.addLayer({id:"nb-r",type:"circle",source:md,paint:{"circle-color":Do,"circle-radius":["interpolate",["linear"],["ln",["max",["get","b"],1]],4,1.8,10,3.4,14,6,17,9],"circle-opacity":.6,"circle-stroke-width":.4,"circle-stroke-color":"#fff"}}),m.getLayer("nb-l")||m.addLayer({id:"nb-l",type:"line",source:fd,layout:{"line-cap":"round"},paint:{"line-color":["get","color"],"line-width":["match",["get","e"],1,2.2,2,1.6,1.1],"line-opacity":.75}}),m.getLayer("nb-n")||m.addLayer({id:"nb-n",type:"circle",source:pi,paint:{"circle-color":["get","color"],"circle-radius":["match",["get","e"],1,7,2,6,5],"circle-stroke-width":2,"circle-stroke-color":["coalesce",["get","ring"],"#fff"]}}),m.getLayer("nb-a")||m.addLayer({id:"nb-a",type:"circle",source:pi,filter:["==",["get","id"],""],paint:{"circle-color":"rgba(0,0,0,0)","circle-radius":11,"circle-stroke-width":3,"circle-stroke-color":Fr}}),m.getLayer("nb-s")||m.addLayer({id:"nb-s",type:"circle",source:bd,paint:{"circle-color":["coalesce",["get","color"],kn],"circle-radius":10,"circle-stroke-width":3,"circle-stroke-color":Fr}}),Ho(m),ce()}function Ho(m){m.getLayer("nb-u")&&m.setPaintProperty("nb-u","circle-opacity",$.value?.18:.55),m.getLayer("nb-r")&&m.setPaintProperty("nb-r","circle-opacity",$.value?.18:.6)}let to=!1;function vo(){var K;const m=v.value;if(m){if(!((K=m.isStyleLoaded)!=null&&K.call(m))){to||(to=!0,m.once("idle",()=>{to=!1,vo()}));return}Dt(m)}}function Bo(){const m=v.value,K=$.value;if(!m||!K)return;const ne=[[K.lng,K.lat],...ee.value.map(De=>[De.g.lng,De.g.lat])],ue=ne.map(De=>De[0]),Oe=ne.map(De=>De[1]);try{m.stop(),ne.length<2?m.easeTo({center:[K.lng,K.lat],zoom:4,duration:800}):m.fitBounds([[Math.min(...ue),Math.min(...Oe)],[Math.max(...ue),Math.max(...Oe)]],{padding:Ta(),maxZoom:6,duration:900})}catch{}}function Ta(){const m=h.value,K=(m==null?void 0:m.clientWidth)||0,ne=(m==null?void 0:m.clientHeight)||0,ue=!!m&&getComputedStyle(m).direction==="rtl";return K>760?{top:60,bottom:60,left:ue?60:400,right:ue?400:60}:{top:40,bottom:(u.sheetDown?56:Math.round(ne*.55))+20,left:30,right:30}}function Jt(){u.sheetDown=!u.sheetDown,Wt(()=>Bo())}return $t(()=>[u.pgid,N.value,k.value,ae.value],()=>{vo(),Bo()}),To(async()=>{pd(l).then(K=>{k.value=K,vo(),Bo()}).catch(K=>{F.value=t("neighbor.mob.loadError",{message:String(K.message||K)})}),await S();const m=v.value;if(!m){w.value=Qn("messages.mapUnavailable");return}ld(m,()=>{Qu(m,"mercator"),vo(),Bo(),m.on("click",ue=>{var Sn,Pn;const Oe=["nb-n","nb-r","nb-u"].filter(Cn=>m.getLayer(Cn)),De=Oe.length?m.queryRenderedFeatures(ue.point,{layers:Oe})[0]:null,At=(Sn=De==null?void 0:De.properties)==null?void 0:Sn.id;if(!At)return;if(De.layer.id==="nb-n"){const Cn=ee.value.find(Et=>Et.g.pgid===At);Cn&&(u.sheetDown=!1,$e(Cn,!1));return}const tt=(Pn=k.value)==null?void 0:Pn.groups.find(Cn=>Cn.pgid===At);tt&&te(tt)});const K=ue=>{var Oe;return(Oe=k.value)==null?void 0:Oe.groups.find(De=>De.pgid===ue)},ne=ue=>ue&&`${ue.name} · ${ue.country} · ${ue.langName}`;m.on("movestart",()=>{x.value=null});for(const ue of["nb-u","nb-r","nb-n"])m.on("mouseenter",ue,()=>{m.getCanvas().style.cursor="pointer"}),m.on("mousemove",ue,Oe=>{var De,At,tt;return _(Oe,ne(K((tt=(At=(De=Oe.features)==null?void 0:De[0])==null?void 0:At.properties)==null?void 0:tt.id)))}),m.on("mouseleave",ue,()=>{m.getCanvas().style.cursor="",x.value=null})}),m.on("style.load",vo)}),Lo(()=>b()),Er(`
.mb-root { position:absolute; inset:0; display:flex; background:#f6f7f9; font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; color:#1f2937; }
.mb-map { position:absolute; inset:0; }
.mb-panel { position:absolute; top:10px; inset-inline-start:10px; bottom:10px; width:380px; z-index:20; display:flex; flex-direction:column;
@@ -164,7 +164,7 @@
.mb-root.sheet-down .maplibregl-ctrl-bottom-left, .mb-root.sheet-down .maplibregl-ctrl-bottom-right,
.mb-root.sheet-down .mapboxgl-ctrl-bottom-left, .mb-root.sheet-down .mapboxgl-ctrl-bottom-right { bottom:62px; }
}
-`,"upgn-mobilize"),(m,K)=>(he(),be("div",{class:ot(["mb-root",{"sheet-down":Ie(u).sheetDown}])},[z("div",{ref_key:"mapContainer",ref:h,class:"mb-map"},null,512),w.value?(he(),be("div",gb,W(w.value),1)):st("",!0),x.value?(he(),be("div",{key:1,class:"mb-hover",style:St(H.value)},W(x.value.text),5)):st("",!0),z("div",{class:"mb-legend","aria-label":m.$t("neighbor.mob.legend")},[z("div",null,[z("span",{class:"mb-dot",style:St({background:Ie(kn)})},null,4),Ke(W(m.$t("neighbor.mob.legendUnreached")),1)]),z("div",null,[z("span",{class:"mb-dot",style:St({background:Ie(Do)})},null,4),Ke(W(m.$t("neighbor.mob.legendReached")),1)]),(he(),be(Ye,null,an([1,2,3],ne=>z("div",{key:ne},[z("span",{class:"mb-dot",style:St({background:Ie(ln)[ne]})},null,4),Ke(W(m.$t(n[ne])),1)])),64))],8,hb),z("aside",{class:ot(["mb-panel",{down:Ie(u).sheetDown}])},[z("button",{type:"button",class:"mb-handle","aria-expanded":Ie(u).sheetDown?"false":"true",onClick:Jt},W(Ie(u).sheetDown?m.$t("neighbor.mob.sheetShow"):m.$t("neighbor.mob.sheetHide")),9,mb),$.value?(he(),be("div",Nb,[z("div",Fb,[z("button",{class:"mb-back",onClick:fe},W(m.$t("neighbor.mob.back")),1),z("h2",Rb,W($.value.name),1),z("div",Ib,W($.value.country)+" · "+W($.value.langName)+" · "+W(m.$t("neighbor.mob.people",{n:Ie(Mt)($.value.pop)}))+" · "+W($.value.religion),1),E.value?(he(),be("div",{key:0,class:"mb-p",style:St({background:Ie(Do)+"22"})},[z("strong",null,W(m.$t("neighbor.mob.reachedTitle")),1),Ke(" "+W(m.$t("neighbor.mob.reachedLong",{n:Ie(Mt)($.value.believers)}))+" ",1),z("div",Ob,W(m.$t("neighbor.mob.reachCount",{n:ee.value.length.toLocaleString("en-US"),p:Ie(Mt)(Q.value)})),1)],4)):st("",!0),E.value?(he(),be("div",{key:1,class:"mb-pchips",role:"group","aria-label":m.$t("neighbor.mob.eFilter")},[(he(),be(Ye,null,an([1,2,3],ne=>z("button",{key:ne,type:"button",class:ot(["mb-chip",{on:ae.value===ne}]),"aria-pressed":ae.value===ne?"true":"false",disabled:!M.value[ne],title:m.$t(r[ne]),onClick:ue=>ae.value=ne},W(m.$t(n[ne]))+" · "+W(M.value[ne].toLocaleString("en-US")),11,Db)),64))],8,zb)):(he(),be("div",{key:2,class:"mb-p",style:St({background:(Ie(ln)[$.value.p]||"#9aa7b4")+"22"})},[z("strong",null,[$.value.p?(he(),be(Ye,{key:0},[Ke("P-"+W($.value.p)+" · ",1)],64)):st("",!0),Ke(W(m.$t(s[$.value.p])),1)]),Ke(" "+W(m.$t(i[$.value.p]))+" ",1),z("div",Gb,W(m.$t("neighbor.mob.believersNear",{n:Ie(Mt)(Z.value)})),1)],4)),z("div",{class:"mb-res","aria-label":m.$t("neighbor.mob.resources")},[z("span",{class:ot({yes:$.value.bible})},W(m.$t("neighbor.res.bible")),3),z("span",{class:ot({yes:$.value.film})},W(m.$t("neighbor.res.film")),3),z("span",{class:ot({yes:$.value.audio})},W(m.$t("neighbor.res.audio")),3),z("span",{class:ot({yes:$.value.radio})},W(m.$t("neighbor.res.radio")),3)],8,jb),z("div",Hb,[E.value&&ee.value.length?(he(),be("button",{key:0,ref_key:"letterBtn",ref:P,class:"mb-btn",onClick:Y},W(m.$t("neighbor.letter.button")),513)):st("",!0),E.value&&ee.value.length?(he(),be("button",{key:1,type:"button",class:"mb-btn ghost",disabled:j.value,"aria-busy":j.value?"true":"false",onClick:U},W(m.$t("neighbor.packet.button")),9,Bb)):st("",!0),z("button",{class:ot(["mb-btn",{ghost:E.value&&ee.value.length}]),onClick:xe},W(m.$t("neighbor.mob.export")),3),Fe.value?(he(),be("button",{key:2,class:"mb-btn ghost",onClick:ye},W(m.$t("neighbor.mob.openBridge",{lang:$.value.langName})),1)):st("",!0)]),(he(!0),be(Ye,null,an(C.value,ne=>(he(),be("section",{key:ne.e,class:"mb-level"},[z("h3",null,[z("span",{class:"mb-dot",style:St({background:Ie(ln)[ne.e]})},null,4),Ke(W(m.$t(o[ne.e])),1)]),z("p",null,W(m.$t(E.value?r[ne.e]:a[ne.e])),1),(he(!0),be(Ye,null,an(R.value.has(ne.e)?ne.list:ne.list.slice(0,ui),ue=>(he(),be("div",{key:ue.g.pgid,class:ot(["mb-card",{on:de.value===ue.g.pgid}]),"data-nb":ue.g.pgid},[z("button",{type:"button",class:"mb-card-main",onClick:Oe=>$e(ue)},[z("b",null,W(ue.g.name),1),ue.same?(he(),be("span",Vb,W(m.$t("neighbor.mob.samePeople")),1)):st("",!0),K[5]||(K[5]=z("br",null,null,-1)),Ke(" "+W(ue.g.country)+" · "+W(ue.g.langName),1),K[6]||(K[6]=z("br",null,null,-1)),E.value?(he(),be("span",qb,"P-"+W(ue.g.p||"–")+" · "+W(m.$t("neighbor.mob.cardStatsU",{p:Ie(Mt)(ue.g.pop),km:ue.km.toLocaleString("en-US")})),1)):(he(),be("span",Kb,W(m.$t("neighbor.mob.cardStats",{b:Ie(Mt)(ue.g.believers),km:ue.km.toLocaleString("en-US")})),1))],8,Wb),de.value===ue.g.pgid?(he(),be("button",{key:0,type:"button",class:"mb-pivot mb-go",onClick:Oe=>te(ue.g)},W(m.$t("neighbor.mob.showNeighbors")),9,Yb)):st("",!0)],10,Ub))),128)),!R.value.has(ne.e)&&ne.list.length>ui?(he(),be("button",{key:0,type:"button",class:"mb-pivot",onClick:ue=>X(ne.e)},W(m.$t("neighbor.mob.showAll",{n:ne.list.length.toLocaleString("en-US")})),9,Zb)):st("",!0)]))),128)),C.value.length?st("",!0):(he(),be("div",Jb,W(m.$t(E.value?"neighbor.mob.noUnreachedNeighbors":"neighbor.mob.noNeighbors")),1)),z("p",Xb,W(m.$t("neighbor.mob.caveat")),1)])])):(he(),be(Ye,{key:0},[z("div",fb,[z("div",{class:"mb-kind",role:"group","aria-label":m.$t("neighbor.mob.kind")},[z("button",{type:"button",class:ot(["mb-chip",{on:y.value==="unreached"}]),"aria-pressed":y.value==="unreached"?"true":"false",onClick:K[0]||(K[0]=ne=>y.value="unreached")},[z("span",{class:"mb-dot",style:St({background:Ie(kn)})},null,4),Ke(W(m.$t("neighbor.mob.listUnreached")),1)],10,$b),z("button",{type:"button",class:ot(["mb-chip",{on:y.value==="reached"}]),"aria-pressed":y.value==="reached"?"true":"false",onClick:K[1]||(K[1]=ne=>y.value="reached")},[z("span",{class:"mb-dot",style:St({background:Ie(Do)})},null,4),Ke(W(m.$t("neighbor.mob.listReached")),1)],10,yb)],8,bb),na(z("input",{"onUpdate:modelValue":K[2]||(K[2]=ne=>A.value=ne),class:"mb-search",type:"search",placeholder:y.value==="reached"?m.$t("neighbor.mob.searchReached"):m.$t("neighbor.mob.searchPlaceholder"),"aria-label":y.value==="reached"?m.$t("neighbor.mob.searchReached"):m.$t("neighbor.mob.searchPlaceholder")},null,8,vb),[[Ts,A.value]]),y.value==="unreached"?(he(),be("div",{key:0,class:"mb-pchips",role:"group","aria-label":m.$t("neighbor.mob.pFilter")},[z("button",{class:ot(["mb-chip",{on:N.value===0}]),onClick:K[3]||(K[3]=ne=>N.value=0)},W(m.$t("neighbor.mob.pAll")),3),(he(),be(Ye,null,an([1,2,3],ne=>z("button",{key:ne,class:ot(["mb-chip",{on:N.value===ne}]),title:m.$t(i[ne]),onClick:ue=>N.value=ne},"P-"+W(ne)+" · "+W((Se.value[ne]||0).toLocaleString("en-US")),11,wb)),64))],8,_b)):st("",!0)]),z("div",kb,[F.value?(he(),be("div",Sb,W(F.value),1)):k.value?(he(),be(Ye,{key:2},[A.value?st("",!0):(he(),be("div",Cb,W(y.value==="reached"?m.$t("neighbor.mob.introReached"):m.$t("neighbor.mob.introBoth")),1)),(he(!0),be(Ye,null,an(Ve.value,ne=>(he(),be("button",{key:ne.pgid,class:"mb-row",onClick:ue=>te(ne)},[ne.reached?(he(),be("span",{key:0,class:"mb-pbadge",style:St({background:Ie(Do)}),"aria-hidden":"true"},"✓",4)):(he(),be("span",{key:1,class:"mb-pbadge",style:St({background:Ie(ln)[ne.p]||"#9aa7b4"})},"P-"+W(ne.p||"–"),5)),z("span",Tb,[z("span",Lb,W(ne.name),1),ne.reached?(he(),be("span",Mb,W(ne.country)+" · "+W(ne.langName)+" · "+W(m.$t("neighbor.camp.believers",{n:Ie(Mt)(ne.believers)})),1)):(he(),be("span",Ab,W(ne.country)+" · "+W(ne.langName)+" · "+W(Ie(Mt)(ne.pop)),1))])],8,xb))),128)),Ve.value.length?st("",!0):(he(),be("div",Eb,W(m.$t("neighbor.mob.noMatch")),1))],64)):(he(),be("div",Pb,W(m.$t("neighbor.mob.loading")),1))])],64))],2),Je.value&&$.value?(he(),be("div",{key:2,class:"mb-modal",onClick:hc(se,["self"])},[z("div",{ref_key:"letterBox",ref:T,class:"mb-letter",role:"dialog","aria-modal":"true","aria-label":m.$t("neighbor.letter.title",{group:$.value.name}),onKeydown:O},[z("h2",null,W(m.$t("neighbor.letter.title",{group:$.value.name})),1),na(z("textarea",{"onUpdate:modelValue":K[4]||(K[4]=ne=>f.value=ne),dir:"auto","aria-label":m.$t("neighbor.letter.title",{group:$.value.name})},null,8,e$),[[Ts,f.value]]),z("div",t$,[z("button",{type:"button",class:"mb-btn",onClick:p},W(m.$t("neighbor.letter.copy")),1),z("button",{type:"button",class:"mb-btn ghost",onClick:g},W(m.$t("neighbor.letter.download")),1),z("button",{type:"button",class:"mb-btn ghost",onClick:se},W(m.$t("neighbor.about.close")),1),z("span",n$,W(G.value),1)])],40,Qb)])):st("",!0)],2))}},a$={key:0,class:"cp-maperr",role:"status"},r$=["aria-expanded"],s$={class:"cp-head"},i$=["placeholder","aria-label"],l$={class:"cp-tools"},c$=["disabled"],u$={class:"cp-body"},d$={key:0,class:"cp-note",role:"alert"},p$={key:1,class:"cp-note"},g$=["onClick"],h$={class:"cp-bar"},m$={class:"u"},f$={class:"r"},b$={class:"cp-where"},$$={key:0,class:"cp-note"},y$={key:1,class:"cp-body"},v$={class:"cp-brief"},_$={class:"cp-title"},w$={class:"cp-big"},k$=["aria-label"],S$=["onClick"],P$={class:"cp-note",style:{padding:"12px 0 0"}},$d="cp-r",yd="cp-u",vd="cp-b",C$={__name:"campaigns",setup(e){const t=cd(),n=bt("profileConfig",Ce({})),o=bt("mapboxToken",Ce("")),a=bt("nbState"),r=_e(()=>(n==null?void 0:n.value)||{}),s=Ce(null),i=Ce(null),l=Ce(""),c=Ce(""),u=Ce(""),d=Ce(1e3),{map:h,initializeMap:k,destroy:F}=id({containerRef:s,accessToken:(o==null?void 0:o.value)||r.value.tk||"",style:r.value.style??"mapbox://styles/mapbox/light-v11",center:r.value.center??[45,20],zoom:r.value.zoom??1.6,minZoom:1,maxZoom:11}),w=_e(()=>{if(!i.value)return[];const _=eo(u.value.trim());return i.value.bridges.filter(H=>H.believers>=d.value&&(!_||eo(H.langName).includes(_)||H.reachedCountries.some(R=>eo(R).includes(_))||H.unreachedCountries.some(R=>eo(R).includes(_))))}),A=_e(()=>{var _;return((_=i.value)==null?void 0:_.bridges.find(H=>H.lang===a.lang))||null});function N(_){a.sheetDown=!1,a.lang=_.lang}function y(){a.lang=null}function v(_){a.sheetDown=!1,a.pgid=_.pgid,a.view="mobilize"}const S=_e(()=>{const _=A.value;if(!_)return[];const H=new Map;for(const R of _.reached){const X=H.get(R.country)||{country:R.country,believers:0,groups:0};X.believers+=R.believers,X.groups++,H.set(R.country,X)}return[...H.values()].sort((R,X)=>X.believers-R.believers)}),b=_e(()=>A.value?[...A.value.unreached].sort((_,H)=>H.pop-_.pop):[]);function $(){const _=A.value;if(!_)return;const H=["bridge_language","language_code","role","group","country","population","est_believers","lat","lng","pgid"],R=[..._.reached.map(X=>[_.langName,_.lang,"mobilize (reached)",X.name,X.country,X.pop,X.believers,X.lat,X.lng,X.pgid]),..._.unreached.map(X=>[_.langName,_.lang,"reach (unreached)",X.name,X.country,X.pop,"",X.lat,X.lng,X.pgid])];li(`bridge-language-${_.lang}.csv`,H,R)}function E(){const _=["bridge_language","language_code","unreached_population","unreached_groups","est_believers","reached_groups","believers_in_countries","unreached_in_countries","bible","jesus_film","audio","radio"],H=w.value.map(R=>[R.langName,R.lang,R.unreachedPop,R.unreached.length,R.believers,R.reached.length,R.reachedCountries.join("; "),R.unreachedCountries.join("; "),R.res.bible?"yes":"no",R.res.film?"yes":"no",R.res.audio?"yes":"no",R.res.radio?"yes":"no"]);li("bridge-languages.csv",_,H)}const L=_=>_.unreached.reduce((H,R)=>!H||R.pop>H.pop?R:H,null);function M(){return A.value?V([]):V(w.value.map(_=>{const H=L(_);return H&&{type:"Feature",geometry:{type:"Point",coordinates:[H.lng,H.lat]},properties:{lang:_.lang,pop:_.unreachedPop}}}).filter(Boolean))}const V=_=>({type:"FeatureCollection",features:_}),ae=Ce(null),ee=_e(()=>{var R;const _=ae.value;if(!_)return{};const H=((R=s.value)==null?void 0:R.clientWidth)||0;return _.x>H/2?{right:H-_.x+12+"px",top:_.y+12+"px"}:{left:_.x+12+"px",top:_.y+12+"px"}}),C=_=>({type:"Feature",geometry:{type:"Point",coordinates:[_.lng,_.lat]},properties:{id:_.pgid,pop:_.pop,b:_.believers}});function Z(_,H,R){const X=_.getSource(H);X?X.setData(R):_.addSource(H,{type:"geojson",data:R})}let Q=!1;function te(){var R;const _=h.value;if(!_)return;if(!((R=_.isStyleLoaded)!=null&&R.call(_))){Q||(Q=!0,_.once("idle",()=>{Q=!1,te()}));return}const H=A.value;Z(_,vd,M()),Z(_,yd,V(H?H.unreached.map(C):[])),Z(_,$d,V(H?H.reached.map(C):[])),_.getLayer("cp-b")||_.addLayer({id:"cp-b",type:"circle",source:vd,paint:{"circle-color":kn,"circle-opacity":.45,"circle-stroke-width":1.5,"circle-stroke-color":ln[1],"circle-radius":["interpolate",["linear"],["ln",["max",["get","pop"],1]],8,3,12,6,16,12,19,18]}}),_.getLayer("cp-u")||_.addLayer({id:"cp-u",type:"circle",source:yd,paint:{"circle-color":kn,"circle-opacity":.7,"circle-stroke-width":.6,"circle-stroke-color":"#fff","circle-radius":["interpolate",["linear"],["ln",["max",["get","pop"],1]],6,2,12,4,16,8,19,12]}}),_.getLayer("cp-r")||_.addLayer({id:"cp-r",type:"circle",source:$d,paint:{"circle-color":ln[1],"circle-opacity":.9,"circle-stroke-width":1.2,"circle-stroke-color":"#fff","circle-radius":["interpolate",["linear"],["ln",["max",["get","b"],1]],2,3,8,5,12,8,15,12]}})}function de(){var Ve,Se;const _=h.value,H=A.value;if(!_||!H)return;const R=[...H.reached,...H.unreached],X=R.map(xe=>xe.lng),$e=R.map(xe=>xe.lat),ce=((Ve=s.value)==null?void 0:Ve.clientWidth)||0,fe=((Se=s.value)==null?void 0:Se.clientHeight)||0,Me=!!s.value&&getComputedStyle(s.value).direction==="rtl",Pe=ce>760?{top:60,bottom:60,left:Me?60:440,right:Me?440:60}:{top:40,bottom:(a.sheetDown?56:Math.round(fe*.55))+20,left:30,right:30};try{_.stop(),_.fitBounds([[Math.min(...X),Math.min(...$e)],[Math.max(...X),Math.max(...$e)]],{padding:Pe,maxZoom:5.5,duration:900})}catch{}}$t(()=>[a.lang,i.value],()=>{te(),de()}),$t(w,()=>te());function x(){a.sheetDown=!a.sheetDown,Wt(()=>de())}return To(async()=>{pd(n).then(H=>{i.value=H,te(),de()}).catch(H=>{l.value=t("neighbor.mob.loadError",{message:String(H.message||H)})}),await k();const _=h.value;if(!_){c.value=Qn("messages.mapUnavailable");return}ld(_,()=>{Qu(_,"mercator"),te(),de(),_.on("click","cp-u",R=>{var ce,fe,Me,Pe;const X=(Me=(fe=(ce=R.features)==null?void 0:ce[0])==null?void 0:fe.properties)==null?void 0:Me.id,$e=(Pe=A.value)==null?void 0:Pe.unreached.find(Ve=>Ve.pgid===X);$e&&v($e)}),_.on("click","cp-r",R=>{var ce,fe,Me,Pe;const X=(Me=(fe=(ce=R.features)==null?void 0:ce[0])==null?void 0:fe.properties)==null?void 0:Me.id,$e=(Pe=A.value)==null?void 0:Pe.reached.find(Ve=>Ve.pgid===X);$e&&v($e)}),_.on("click","cp-b",R=>{var $e;const X=($e=i.value)==null?void 0:$e.bridges.find(ce=>{var fe,Me,Pe;return ce.lang===((Pe=(Me=(fe=R.features)==null?void 0:fe[0])==null?void 0:Me.properties)==null?void 0:Pe.lang)});X&&N(X)}),_.on("movestart",()=>{ae.value=null});for(const R of["cp-u","cp-r","cp-b"])_.on("mouseenter",R,()=>{_.getCanvas().style.cursor="pointer"}),_.on("mouseleave",R,()=>{_.getCanvas().style.cursor=""});_.on("mousemove","cp-b",R=>{var $e;const X=($e=i.value)==null?void 0:$e.bridges.find(ce=>{var fe,Me,Pe;return ce.lang===((Pe=(Me=(fe=R.features)==null?void 0:fe[0])==null?void 0:Me.properties)==null?void 0:Pe.lang)});ae.value=X?{x:R.point.x,y:R.point.y,text:`${X.langName} · ${t("neighbor.camp.unreachedPeople",{n:Mt(X.unreachedPop)})}`}:null}),_.on("mouseleave","cp-b",()=>{ae.value=null});const H=R=>A.value&&[...A.value.reached,...A.value.unreached].find(X=>X.pgid===R);for(const R of["cp-u","cp-r"])_.on("mousemove",R,X=>{var ce,fe,Me;const $e=H((Me=(fe=(ce=X.features)==null?void 0:ce[0])==null?void 0:fe.properties)==null?void 0:Me.id);ae.value=$e?{x:X.point.x,y:X.point.y,text:`${$e.name} · ${$e.country}`}:null}),_.on("mouseleave",R,()=>{ae.value=null})}),_.on("style.load",te)}),Lo(()=>F()),Er(`
+`,"upgn-mobilize"),(m,K)=>(he(),be("div",{class:ot(["mb-root",{"sheet-down":Ie(u).sheetDown}])},[z("div",{ref_key:"mapContainer",ref:h,class:"mb-map"},null,512),w.value?(he(),be("div",mb,W(w.value),1)):st("",!0),x.value?(he(),be("div",{key:1,class:"mb-hover",style:St(H.value)},W(x.value.text),5)):st("",!0),z("div",{class:"mb-legend","aria-label":m.$t("neighbor.mob.legend")},[z("div",null,[z("span",{class:"mb-dot",style:St({background:Ie(kn)})},null,4),Ke(W(m.$t("neighbor.mob.legendUnreached")),1)]),z("div",null,[z("span",{class:"mb-dot",style:St({background:Ie(Do)})},null,4),Ke(W(m.$t("neighbor.mob.legendReached")),1)]),(he(),be(Ye,null,an([1,2,3],ne=>z("div",{key:ne},[z("span",{class:"mb-dot",style:St({background:Ie(ln)[ne]})},null,4),Ke(W(m.$t(n[ne])),1)])),64))],8,fb),z("aside",{class:ot(["mb-panel",{down:Ie(u).sheetDown}])},[z("button",{type:"button",class:"mb-handle","aria-expanded":Ie(u).sheetDown?"false":"true",onClick:Jt},W(Ie(u).sheetDown?m.$t("neighbor.mob.sheetShow"):m.$t("neighbor.mob.sheetHide")),9,bb),$.value?(he(),be("div",Rb,[z("div",Ib,[z("button",{class:"mb-back",onClick:fe},W(m.$t("neighbor.mob.back")),1),z("h2",Ob,W($.value.name),1),z("div",zb,W($.value.country)+" · "+W($.value.langName)+" · "+W(m.$t("neighbor.mob.people",{n:Ie(Mt)($.value.pop)}))+" · "+W($.value.religion),1),E.value?(he(),be("div",{key:0,class:"mb-p",style:St({background:Ie(Do)+"22"})},[z("strong",null,W(m.$t("neighbor.mob.reachedTitle")),1),Ke(" "+W(m.$t("neighbor.mob.reachedLong",{n:Ie(Mt)($.value.believers)}))+" ",1),z("div",Db,W(m.$t("neighbor.mob.reachCount",{n:ee.value.length.toLocaleString("en-US"),p:Ie(Mt)(Q.value)})),1)],4)):st("",!0),E.value?(he(),be("div",{key:1,class:"mb-pchips",role:"group","aria-label":m.$t("neighbor.mob.eFilter")},[(he(),be(Ye,null,an([1,2,3],ne=>z("button",{key:ne,type:"button",class:ot(["mb-chip",{on:ae.value===ne}]),"aria-pressed":ae.value===ne?"true":"false",disabled:!M.value[ne],title:m.$t(r[ne]),onClick:ue=>ae.value=ne},W(m.$t(n[ne]))+" · "+W(M.value[ne].toLocaleString("en-US")),11,jb)),64))],8,Gb)):(he(),be("div",{key:2,class:"mb-p",style:St({background:(Ie(ln)[$.value.p]||"#9aa7b4")+"22"})},[z("strong",null,[$.value.p?(he(),be(Ye,{key:0},[Ke("P-"+W($.value.p)+" · ",1)],64)):st("",!0),Ke(W(m.$t(s[$.value.p])),1)]),Ke(" "+W(m.$t(i[$.value.p]))+" ",1),z("div",Hb,W(m.$t("neighbor.mob.believersNear",{n:Ie(Mt)(Z.value)})),1)],4)),z("div",{class:"mb-res","aria-label":m.$t("neighbor.mob.resources")},[z("span",{class:ot({yes:$.value.bible})},W(m.$t("neighbor.res.bible")),3),z("span",{class:ot({yes:$.value.film})},W(m.$t("neighbor.res.film")),3),z("span",{class:ot({yes:$.value.audio})},W(m.$t("neighbor.res.audio")),3),z("span",{class:ot({yes:$.value.radio})},W(m.$t("neighbor.res.radio")),3)],8,Bb),z("div",Ub,[E.value&&ee.value.length?(he(),be("button",{key:0,ref_key:"letterBtn",ref:P,class:"mb-btn",onClick:Y},W(m.$t("neighbor.letter.button")),513)):st("",!0),E.value&&ee.value.length?(he(),be("button",{key:1,type:"button",class:"mb-btn ghost",disabled:j.value,"aria-busy":j.value?"true":"false",onClick:U},W(m.$t("neighbor.packet.button")),9,Wb)):st("",!0),z("button",{class:ot(["mb-btn",{ghost:E.value&&ee.value.length}]),onClick:xe},W(m.$t("neighbor.mob.export")),3),Fe.value?(he(),be("button",{key:2,class:"mb-btn ghost",onClick:ye},W(m.$t("neighbor.mob.openBridge",{lang:$.value.langName})),1)):st("",!0)]),(he(!0),be(Ye,null,an(C.value,ne=>(he(),be("section",{key:ne.e,class:"mb-level"},[z("h3",null,[z("span",{class:"mb-dot",style:St({background:Ie(ln)[ne.e]})},null,4),Ke(W(m.$t(o[ne.e])),1)]),z("p",null,W(m.$t(E.value?r[ne.e]:a[ne.e])),1),(he(!0),be(Ye,null,an(R.value.has(ne.e)?ne.list:ne.list.slice(0,ui),ue=>(he(),be("div",{key:ue.g.pgid,class:ot(["mb-card",{on:de.value===ue.g.pgid}]),"data-nb":ue.g.pgid},[z("button",{type:"button",class:"mb-card-main",onClick:Oe=>$e(ue)},[z("b",null,W(ue.g.name),1),ue.same?(he(),be("span",Kb,W(m.$t("neighbor.mob.samePeople")),1)):st("",!0),K[5]||(K[5]=z("br",null,null,-1)),Ke(" "+W(ue.g.country)+" · "+W(ue.g.langName),1),K[6]||(K[6]=z("br",null,null,-1)),E.value?(he(),be("span",Yb,"P-"+W(ue.g.p||"–")+" · "+W(m.$t("neighbor.mob.cardStatsU",{p:Ie(Mt)(ue.g.pop),km:ue.km.toLocaleString("en-US")})),1)):(he(),be("span",Zb,W(m.$t("neighbor.mob.cardStats",{b:Ie(Mt)(ue.g.believers),km:ue.km.toLocaleString("en-US")})),1))],8,qb),de.value===ue.g.pgid?(he(),be("button",{key:0,type:"button",class:"mb-pivot mb-go",onClick:Oe=>te(ue.g)},W(m.$t("neighbor.mob.showNeighbors")),9,Jb)):st("",!0)],10,Vb))),128)),!R.value.has(ne.e)&&ne.list.length>ui?(he(),be("button",{key:0,type:"button",class:"mb-pivot",onClick:ue=>X(ne.e)},W(m.$t("neighbor.mob.showAll",{n:ne.list.length.toLocaleString("en-US")})),9,Xb)):st("",!0)]))),128)),C.value.length?st("",!0):(he(),be("div",Qb,W(m.$t(E.value?"neighbor.mob.noUnreachedNeighbors":"neighbor.mob.noNeighbors")),1)),z("p",e$,W(m.$t("neighbor.mob.caveat")),1)])])):(he(),be(Ye,{key:0},[z("div",$b,[z("div",{class:"mb-kind",role:"group","aria-label":m.$t("neighbor.mob.kind")},[z("button",{type:"button",class:ot(["mb-chip",{on:y.value==="unreached"}]),"aria-pressed":y.value==="unreached"?"true":"false",onClick:K[0]||(K[0]=ne=>y.value="unreached")},[z("span",{class:"mb-dot",style:St({background:Ie(kn)})},null,4),Ke(W(m.$t("neighbor.mob.listUnreached")),1)],10,vb),z("button",{type:"button",class:ot(["mb-chip",{on:y.value==="reached"}]),"aria-pressed":y.value==="reached"?"true":"false",onClick:K[1]||(K[1]=ne=>y.value="reached")},[z("span",{class:"mb-dot",style:St({background:Ie(Do)})},null,4),Ke(W(m.$t("neighbor.mob.listReached")),1)],10,_b)],8,yb),na(z("input",{"onUpdate:modelValue":K[2]||(K[2]=ne=>A.value=ne),class:"mb-search",type:"search",placeholder:y.value==="reached"?m.$t("neighbor.mob.searchReached"):m.$t("neighbor.mob.searchPlaceholder"),"aria-label":y.value==="reached"?m.$t("neighbor.mob.searchReached"):m.$t("neighbor.mob.searchPlaceholder")},null,8,wb),[[Ts,A.value]]),y.value==="unreached"?(he(),be("div",{key:0,class:"mb-pchips",role:"group","aria-label":m.$t("neighbor.mob.pFilter")},[z("button",{class:ot(["mb-chip",{on:N.value===0}]),onClick:K[3]||(K[3]=ne=>N.value=0)},W(m.$t("neighbor.mob.pAll")),3),(he(),be(Ye,null,an([1,2,3],ne=>z("button",{key:ne,class:ot(["mb-chip",{on:N.value===ne}]),title:m.$t(i[ne]),onClick:ue=>N.value=ne},"P-"+W(ne)+" · "+W((Se.value[ne]||0).toLocaleString("en-US")),11,Sb)),64))],8,kb)):st("",!0)]),z("div",Pb,[F.value?(he(),be("div",Cb,W(F.value),1)):k.value?(he(),be(Ye,{key:2},[A.value?st("",!0):(he(),be("div",Tb,W(y.value==="reached"?m.$t("neighbor.mob.introReached"):m.$t("neighbor.mob.introBoth")),1)),(he(!0),be(Ye,null,an(Ve.value,ne=>(he(),be("button",{key:ne.pgid,class:"mb-row",onClick:ue=>te(ne)},[ne.reached?(he(),be("span",{key:0,class:"mb-pbadge",style:St({background:Ie(Do)}),"aria-hidden":"true"},"✓",4)):(he(),be("span",{key:1,class:"mb-pbadge",style:St({background:Ie(ln)[ne.p]||"#9aa7b4"})},"P-"+W(ne.p||"–"),5)),z("span",Mb,[z("span",Ab,W(ne.name),1),ne.reached?(he(),be("span",Eb,W(ne.country)+" · "+W(ne.langName)+" · "+W(m.$t("neighbor.camp.believers",{n:Ie(Mt)(ne.believers)})),1)):(he(),be("span",Nb,W(ne.country)+" · "+W(ne.langName)+" · "+W(Ie(Mt)(ne.pop)),1))])],8,Lb))),128)),Ve.value.length?st("",!0):(he(),be("div",Fb,W(m.$t("neighbor.mob.noMatch")),1))],64)):(he(),be("div",xb,W(m.$t("neighbor.mob.loading")),1))])],64))],2),Je.value&&$.value?(he(),be("div",{key:2,class:"mb-modal",onClick:hc(se,["self"])},[z("div",{ref_key:"letterBox",ref:T,class:"mb-letter",role:"dialog","aria-modal":"true","aria-label":m.$t("neighbor.letter.title",{group:$.value.name}),onKeydown:O},[z("h2",null,W(m.$t("neighbor.letter.title",{group:$.value.name})),1),na(z("textarea",{"onUpdate:modelValue":K[4]||(K[4]=ne=>f.value=ne),dir:"auto","aria-label":m.$t("neighbor.letter.title",{group:$.value.name})},null,8,n$),[[Ts,f.value]]),z("div",o$,[z("button",{type:"button",class:"mb-btn",onClick:p},W(m.$t("neighbor.letter.copy")),1),z("button",{type:"button",class:"mb-btn ghost",onClick:g},W(m.$t("neighbor.letter.download")),1),z("button",{type:"button",class:"mb-btn ghost",onClick:se},W(m.$t("neighbor.about.close")),1),z("span",a$,W(G.value),1)])],40,t$)])):st("",!0)],2))}},s$={key:0,class:"cp-maperr",role:"status"},i$=["aria-expanded"],l$={class:"cp-head"},c$=["placeholder","aria-label"],u$={class:"cp-tools"},d$=["disabled"],p$={class:"cp-body"},g$={key:0,class:"cp-note",role:"alert"},h$={key:1,class:"cp-note"},m$=["onClick"],f$={class:"cp-bar"},b$={class:"u"},$$={class:"r"},y$={class:"cp-where"},v$={key:0,class:"cp-note"},_$={key:1,class:"cp-body"},w$={class:"cp-brief"},k$={class:"cp-title"},S$={class:"cp-big"},P$=["aria-label"],C$=["onClick"],x$={class:"cp-note",style:{padding:"12px 0 0"}},$d="cp-r",yd="cp-u",vd="cp-b",T$={__name:"campaigns",setup(e){const t=cd(),n=bt("profileConfig",Ce({})),o=bt("mapboxToken",Ce("")),a=bt("nbState"),r=_e(()=>(n==null?void 0:n.value)||{}),s=Ce(null),i=Ce(null),l=Ce(""),c=Ce(""),u=Ce(""),d=Ce(1e3),{map:h,initializeMap:k,destroy:F}=id({containerRef:s,accessToken:(o==null?void 0:o.value)||r.value.tk||"",style:r.value.style??"mapbox://styles/mapbox/light-v11",center:r.value.center??[45,20],zoom:r.value.zoom??1.6,minZoom:1,maxZoom:11}),w=_e(()=>{if(!i.value)return[];const _=eo(u.value.trim());return i.value.bridges.filter(H=>H.believers>=d.value&&(!_||eo(H.langName).includes(_)||H.reachedCountries.some(R=>eo(R).includes(_))||H.unreachedCountries.some(R=>eo(R).includes(_))))}),A=_e(()=>{var _;return((_=i.value)==null?void 0:_.bridges.find(H=>H.lang===a.lang))||null});function N(_){a.sheetDown=!1,a.lang=_.lang}function y(){a.lang=null}function v(_){a.sheetDown=!1,a.pgid=_.pgid,a.view="mobilize"}const S=_e(()=>{const _=A.value;if(!_)return[];const H=new Map;for(const R of _.reached){const X=H.get(R.country)||{country:R.country,believers:0,groups:0};X.believers+=R.believers,X.groups++,H.set(R.country,X)}return[...H.values()].sort((R,X)=>X.believers-R.believers)}),b=_e(()=>A.value?[...A.value.unreached].sort((_,H)=>H.pop-_.pop):[]);function $(){const _=A.value;if(!_)return;const H=["bridge_language","language_code","role","group","country","population","est_believers","lat","lng","pgid"],R=[..._.reached.map(X=>[_.langName,_.lang,"mobilize (reached)",X.name,X.country,X.pop,X.believers,X.lat,X.lng,X.pgid]),..._.unreached.map(X=>[_.langName,_.lang,"reach (unreached)",X.name,X.country,X.pop,"",X.lat,X.lng,X.pgid])];li(`bridge-language-${_.lang}.csv`,H,R)}function E(){const _=["bridge_language","language_code","unreached_population","unreached_groups","est_believers","reached_groups","believers_in_countries","unreached_in_countries","bible","jesus_film","audio","radio"],H=w.value.map(R=>[R.langName,R.lang,R.unreachedPop,R.unreached.length,R.believers,R.reached.length,R.reachedCountries.join("; "),R.unreachedCountries.join("; "),R.res.bible?"yes":"no",R.res.film?"yes":"no",R.res.audio?"yes":"no",R.res.radio?"yes":"no"]);li("bridge-languages.csv",_,H)}const L=_=>_.unreached.reduce((H,R)=>!H||R.pop>H.pop?R:H,null);function M(){return A.value?V([]):V(w.value.map(_=>{const H=L(_);return H&&{type:"Feature",geometry:{type:"Point",coordinates:[H.lng,H.lat]},properties:{lang:_.lang,pop:_.unreachedPop}}}).filter(Boolean))}const V=_=>({type:"FeatureCollection",features:_}),ae=Ce(null),ee=_e(()=>{var R;const _=ae.value;if(!_)return{};const H=((R=s.value)==null?void 0:R.clientWidth)||0;return _.x>H/2?{right:H-_.x+12+"px",top:_.y+12+"px"}:{left:_.x+12+"px",top:_.y+12+"px"}}),C=_=>({type:"Feature",geometry:{type:"Point",coordinates:[_.lng,_.lat]},properties:{id:_.pgid,pop:_.pop,b:_.believers}});function Z(_,H,R){const X=_.getSource(H);X?X.setData(R):_.addSource(H,{type:"geojson",data:R})}let Q=!1;function te(){var R;const _=h.value;if(!_)return;if(!((R=_.isStyleLoaded)!=null&&R.call(_))){Q||(Q=!0,_.once("idle",()=>{Q=!1,te()}));return}const H=A.value;Z(_,vd,M()),Z(_,yd,V(H?H.unreached.map(C):[])),Z(_,$d,V(H?H.reached.map(C):[])),_.getLayer("cp-b")||_.addLayer({id:"cp-b",type:"circle",source:vd,paint:{"circle-color":kn,"circle-opacity":.45,"circle-stroke-width":1.5,"circle-stroke-color":ln[1],"circle-radius":["interpolate",["linear"],["ln",["max",["get","pop"],1]],8,3,12,6,16,12,19,18]}}),_.getLayer("cp-u")||_.addLayer({id:"cp-u",type:"circle",source:yd,paint:{"circle-color":kn,"circle-opacity":.7,"circle-stroke-width":.6,"circle-stroke-color":"#fff","circle-radius":["interpolate",["linear"],["ln",["max",["get","pop"],1]],6,2,12,4,16,8,19,12]}}),_.getLayer("cp-r")||_.addLayer({id:"cp-r",type:"circle",source:$d,paint:{"circle-color":ln[1],"circle-opacity":.9,"circle-stroke-width":1.2,"circle-stroke-color":"#fff","circle-radius":["interpolate",["linear"],["ln",["max",["get","b"],1]],2,3,8,5,12,8,15,12]}})}function de(){var Ve,Se;const _=h.value,H=A.value;if(!_||!H)return;const R=[...H.reached,...H.unreached],X=R.map(xe=>xe.lng),$e=R.map(xe=>xe.lat),ce=((Ve=s.value)==null?void 0:Ve.clientWidth)||0,fe=((Se=s.value)==null?void 0:Se.clientHeight)||0,Me=!!s.value&&getComputedStyle(s.value).direction==="rtl",Pe=ce>760?{top:60,bottom:60,left:Me?60:440,right:Me?440:60}:{top:40,bottom:(a.sheetDown?56:Math.round(fe*.55))+20,left:30,right:30};try{_.stop(),_.fitBounds([[Math.min(...X),Math.min(...$e)],[Math.max(...X),Math.max(...$e)]],{padding:Pe,maxZoom:5.5,duration:900})}catch{}}$t(()=>[a.lang,i.value],()=>{te(),de()}),$t(w,()=>te());function x(){a.sheetDown=!a.sheetDown,Wt(()=>de())}return To(async()=>{pd(n).then(H=>{i.value=H,te(),de()}).catch(H=>{l.value=t("neighbor.mob.loadError",{message:String(H.message||H)})}),await k();const _=h.value;if(!_){c.value=Qn("messages.mapUnavailable");return}ld(_,()=>{Qu(_,"mercator"),te(),de(),_.on("click","cp-u",R=>{var ce,fe,Me,Pe;const X=(Me=(fe=(ce=R.features)==null?void 0:ce[0])==null?void 0:fe.properties)==null?void 0:Me.id,$e=(Pe=A.value)==null?void 0:Pe.unreached.find(Ve=>Ve.pgid===X);$e&&v($e)}),_.on("click","cp-r",R=>{var ce,fe,Me,Pe;const X=(Me=(fe=(ce=R.features)==null?void 0:ce[0])==null?void 0:fe.properties)==null?void 0:Me.id,$e=(Pe=A.value)==null?void 0:Pe.reached.find(Ve=>Ve.pgid===X);$e&&v($e)}),_.on("click","cp-b",R=>{var $e;const X=($e=i.value)==null?void 0:$e.bridges.find(ce=>{var fe,Me,Pe;return ce.lang===((Pe=(Me=(fe=R.features)==null?void 0:fe[0])==null?void 0:Me.properties)==null?void 0:Pe.lang)});X&&N(X)}),_.on("movestart",()=>{ae.value=null});for(const R of["cp-u","cp-r","cp-b"])_.on("mouseenter",R,()=>{_.getCanvas().style.cursor="pointer"}),_.on("mouseleave",R,()=>{_.getCanvas().style.cursor=""});_.on("mousemove","cp-b",R=>{var $e;const X=($e=i.value)==null?void 0:$e.bridges.find(ce=>{var fe,Me,Pe;return ce.lang===((Pe=(Me=(fe=R.features)==null?void 0:fe[0])==null?void 0:Me.properties)==null?void 0:Pe.lang)});ae.value=X?{x:R.point.x,y:R.point.y,text:`${X.langName} · ${t("neighbor.camp.unreachedPeople",{n:Mt(X.unreachedPop)})}`}:null}),_.on("mouseleave","cp-b",()=>{ae.value=null});const H=R=>A.value&&[...A.value.reached,...A.value.unreached].find(X=>X.pgid===R);for(const R of["cp-u","cp-r"])_.on("mousemove",R,X=>{var ce,fe,Me;const $e=H((Me=(fe=(ce=X.features)==null?void 0:ce[0])==null?void 0:fe.properties)==null?void 0:Me.id);ae.value=$e?{x:X.point.x,y:X.point.y,text:`${$e.name} · ${$e.country}`}:null}),_.on("mouseleave",R,()=>{ae.value=null})}),_.on("style.load",te)}),Lo(()=>F()),Er(`
.cp-root { position:absolute; inset:0; background:#f6f7f9; font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; color:#1f2937; }
.cp-map { position:absolute; inset:0; }
.cp-panel { position:absolute; top:10px; inset-inline-start:10px; bottom:10px; width:420px; z-index:20; display:flex; flex-direction:column;
@@ -213,7 +213,7 @@
.cp-root.sheet-down .maplibregl-ctrl-bottom-left, .cp-root.sheet-down .maplibregl-ctrl-bottom-right,
.cp-root.sheet-down .mapboxgl-ctrl-bottom-left, .cp-root.sheet-down .mapboxgl-ctrl-bottom-right { bottom:62px; }
}
-`,"upgn-campaigns"),(_,H)=>(he(),be("div",{class:ot(["cp-root",{"sheet-down":Ie(a).sheetDown}])},[z("div",{ref_key:"mapContainer",ref:s,class:"cp-map"},null,512),c.value?(he(),be("div",a$,W(c.value),1)):st("",!0),ae.value?(he(),be("div",{key:1,class:"cp-hover",style:St(ee.value)},W(ae.value.text),5)):st("",!0),z("aside",{class:ot(["cp-panel",{down:Ie(a).sheetDown}])},[z("button",{type:"button",class:"cp-handle","aria-expanded":Ie(a).sheetDown?"false":"true",onClick:x},W(Ie(a).sheetDown?_.$t("neighbor.mob.sheetShow"):_.$t("neighbor.mob.sheetHide")),9,r$),A.value?(he(),be("div",y$,[z("div",v$,[z("button",{class:"cp-back",onClick:y},W(_.$t("neighbor.camp.back")),1),z("h2",_$,W(A.value.langName),1),z("div",w$,[z("div",{style:St({background:Ie(ln)[1]+"1f"})},[z("strong",null,W(Ie(Mt)(A.value.believers)),1),Ke(W(_.$t("neighbor.camp.bigBelievers",{g:A.value.reached.length,c:A.value.reachedCountries.length})),1)],4),z("div",{style:St({background:Ie(kn)+"1a"})},[z("strong",null,W(Ie(Mt)(A.value.unreachedPop)),1),Ke(W(_.$t("neighbor.camp.bigUnreached",{g:A.value.unreached.length,c:A.value.unreachedCountries.length})),1)],4)]),z("div",{class:"cp-res","aria-label":_.$t("neighbor.mob.resources")},[z("span",{class:ot({yes:A.value.res.bible})},W(_.$t("neighbor.res.bible")),3),z("span",{class:ot({yes:A.value.res.film})},W(_.$t("neighbor.res.film")),3),z("span",{class:ot({yes:A.value.res.audio})},W(_.$t("neighbor.res.audio")),3),z("span",{class:ot({yes:A.value.res.radio})},W(_.$t("neighbor.res.radio")),3)],8,k$),z("button",{class:"cp-btn",onClick:$},W(_.$t("neighbor.camp.export")),1),z("h3",null,W(_.$t("neighbor.camp.whereToRun")),1),(he(!0),be(Ye,null,an(S.value,R=>(he(),be("div",{key:R.country,class:"cp-line"},[z("span",null,W(R.country),1),z("span",null,W(_.$t("neighbor.camp.believersInGroups",{n:Ie(Mt)(R.believers),g:R.groups})),1)]))),128)),z("h3",null,W(_.$t("neighbor.camp.whoTheyReach")),1),(he(!0),be(Ye,null,an(b.value,R=>(he(),be("div",{key:R.pgid,class:"cp-line"},[z("button",{onClick:X=>v(R)},W(R.name)+" · "+W(R.country),9,S$),z("span",null,W(Ie(Mt)(R.pop)),1)]))),128)),z("p",P$,W(_.$t("neighbor.mob.caveat")),1)])])):(he(),be(Ye,{key:0},[z("div",s$,[z("p",null,W(_.$t("neighbor.camp.intro")),1),na(z("input",{"onUpdate:modelValue":H[0]||(H[0]=R=>u.value=R),class:"cp-search",type:"search",placeholder:_.$t("neighbor.camp.searchPlaceholder"),"aria-label":_.$t("neighbor.camp.searchPlaceholder")},null,8,i$),[[Ts,u.value]]),z("div",l$,[z("label",null,[Ke(W(_.$t("neighbor.camp.minBelievers"))+" ",1),na(z("select",{"onUpdate:modelValue":H[1]||(H[1]=R=>d.value=R)},[...H[2]||(H[2]=[z("option",{value:1},"1+",-1),z("option",{value:1e3},"1K+",-1),z("option",{value:1e4},"10K+",-1),z("option",{value:1e5},"100K+",-1)])],512),[[kh,d.value,void 0,{number:!0}]])]),z("button",{class:"cp-btn ghost",disabled:!w.value.length,onClick:E},W(_.$t("neighbor.camp.exportAll")),9,c$)])]),z("div",u$,[l.value?(he(),be("div",d$,W(l.value),1)):i.value?(he(),be(Ye,{key:2},[(he(!0),be(Ye,null,an(w.value,R=>(he(),be("button",{key:R.lang,class:"cp-row",onClick:X=>N(R)},[z("b",null,W(R.langName),1),z("div",h$,[z("span",m$,W(_.$t("neighbor.camp.unreachedPeople",{n:Ie(Mt)(R.unreachedPop)})),1),z("span",f$,W(_.$t("neighbor.camp.believers",{n:Ie(Mt)(R.believers)})),1)]),z("div",b$,W(_.$t("neighbor.camp.believersIn",{list:Ie(tf)(R.reachedCountries)})),1)],8,g$))),128)),w.value.length?st("",!0):(he(),be("div",$$,W(_.$t("neighbor.mob.noMatch")),1))],64)):(he(),be("div",p$,W(_.$t("neighbor.mob.loading")),1))])],64))],2)],2))}},x$={class:"dun-root"},T$={class:"dun-bar"},L$={class:"dun-brand"},M$=["aria-label"],A$=["aria-selected","onClick"],E$={class:"dun-stage"},N$=["aria-label"],F$={class:"dun-card"},R$=["aria-label"],I$={class:"src"},O$=Object.freeze(Object.defineProperty({__proto__:null,default:{__name:"upg-neighbor",setup(e){const t=bt("profileConfig",null),n=_e(()=>(t==null?void 0:t.value)||{}),o=["mobilize","campaigns"],a={"send-map":"mobilize",cockpit:"mobilize","upg-neighbors":"mobilize","bloom-cockpit":"mobilize","flower-mesh":"mobilize","lang-cluster":"campaigns",flowers:"campaigns"},r=n.value.view||n.value.legacyElement,s=o.includes(r)?r:a[r]||(n.value.lang?"campaigns":"mobilize"),i=Jo({view:s,pgid:n.value.pgid||null,lang:n.value.lang||null,about:!1,list:"unreached",sheetDown:!1});on("nbState",i);const l=Ce(null),c=Ce(null);$t(()=>i.about,d=>Wt(()=>{var h,k;return(k=(h=d?c.value:l.value)==null?void 0:h.focus)==null?void 0:k.call(h)}));function u(d){var h,k;d.key==="Escape"?(d.preventDefault(),d.stopPropagation(),i.about=!1):d.key==="Tab"&&(d.preventDefault(),(k=(h=c.value)==null?void 0:h.focus)==null||k.call(h))}return Er(`
+`,"upgn-campaigns"),(_,H)=>(he(),be("div",{class:ot(["cp-root",{"sheet-down":Ie(a).sheetDown}])},[z("div",{ref_key:"mapContainer",ref:s,class:"cp-map"},null,512),c.value?(he(),be("div",s$,W(c.value),1)):st("",!0),ae.value?(he(),be("div",{key:1,class:"cp-hover",style:St(ee.value)},W(ae.value.text),5)):st("",!0),z("aside",{class:ot(["cp-panel",{down:Ie(a).sheetDown}])},[z("button",{type:"button",class:"cp-handle","aria-expanded":Ie(a).sheetDown?"false":"true",onClick:x},W(Ie(a).sheetDown?_.$t("neighbor.mob.sheetShow"):_.$t("neighbor.mob.sheetHide")),9,i$),A.value?(he(),be("div",_$,[z("div",w$,[z("button",{class:"cp-back",onClick:y},W(_.$t("neighbor.camp.back")),1),z("h2",k$,W(A.value.langName),1),z("div",S$,[z("div",{style:St({background:Ie(ln)[1]+"1f"})},[z("strong",null,W(Ie(Mt)(A.value.believers)),1),Ke(W(_.$t("neighbor.camp.bigBelievers",{g:A.value.reached.length,c:A.value.reachedCountries.length})),1)],4),z("div",{style:St({background:Ie(kn)+"1a"})},[z("strong",null,W(Ie(Mt)(A.value.unreachedPop)),1),Ke(W(_.$t("neighbor.camp.bigUnreached",{g:A.value.unreached.length,c:A.value.unreachedCountries.length})),1)],4)]),z("div",{class:"cp-res","aria-label":_.$t("neighbor.mob.resources")},[z("span",{class:ot({yes:A.value.res.bible})},W(_.$t("neighbor.res.bible")),3),z("span",{class:ot({yes:A.value.res.film})},W(_.$t("neighbor.res.film")),3),z("span",{class:ot({yes:A.value.res.audio})},W(_.$t("neighbor.res.audio")),3),z("span",{class:ot({yes:A.value.res.radio})},W(_.$t("neighbor.res.radio")),3)],8,P$),z("button",{class:"cp-btn",onClick:$},W(_.$t("neighbor.camp.export")),1),z("h3",null,W(_.$t("neighbor.camp.whereToRun")),1),(he(!0),be(Ye,null,an(S.value,R=>(he(),be("div",{key:R.country,class:"cp-line"},[z("span",null,W(R.country),1),z("span",null,W(_.$t("neighbor.camp.believersInGroups",{n:Ie(Mt)(R.believers),g:R.groups})),1)]))),128)),z("h3",null,W(_.$t("neighbor.camp.whoTheyReach")),1),(he(!0),be(Ye,null,an(b.value,R=>(he(),be("div",{key:R.pgid,class:"cp-line"},[z("button",{onClick:X=>v(R)},W(R.name)+" · "+W(R.country),9,C$),z("span",null,W(Ie(Mt)(R.pop)),1)]))),128)),z("p",x$,W(_.$t("neighbor.mob.caveat")),1)])])):(he(),be(Ye,{key:0},[z("div",l$,[z("p",null,W(_.$t("neighbor.camp.intro")),1),na(z("input",{"onUpdate:modelValue":H[0]||(H[0]=R=>u.value=R),class:"cp-search",type:"search",placeholder:_.$t("neighbor.camp.searchPlaceholder"),"aria-label":_.$t("neighbor.camp.searchPlaceholder")},null,8,c$),[[Ts,u.value]]),z("div",u$,[z("label",null,[Ke(W(_.$t("neighbor.camp.minBelievers"))+" ",1),na(z("select",{"onUpdate:modelValue":H[1]||(H[1]=R=>d.value=R)},[...H[2]||(H[2]=[z("option",{value:1},"1+",-1),z("option",{value:1e3},"1K+",-1),z("option",{value:1e4},"10K+",-1),z("option",{value:1e5},"100K+",-1)])],512),[[kh,d.value,void 0,{number:!0}]])]),z("button",{class:"cp-btn ghost",disabled:!w.value.length,onClick:E},W(_.$t("neighbor.camp.exportAll")),9,d$)])]),z("div",p$,[l.value?(he(),be("div",g$,W(l.value),1)):i.value?(he(),be(Ye,{key:2},[(he(!0),be(Ye,null,an(w.value,R=>(he(),be("button",{key:R.lang,class:"cp-row",onClick:X=>N(R)},[z("b",null,W(R.langName),1),z("div",f$,[z("span",b$,W(_.$t("neighbor.camp.unreachedPeople",{n:Ie(Mt)(R.unreachedPop)})),1),z("span",$$,W(_.$t("neighbor.camp.believers",{n:Ie(Mt)(R.believers)})),1)]),z("div",y$,W(_.$t("neighbor.camp.believersIn",{list:Ie(tf)(R.reachedCountries)})),1)],8,m$))),128)),w.value.length?st("",!0):(he(),be("div",v$,W(_.$t("neighbor.mob.noMatch")),1))],64)):(he(),be("div",h$,W(_.$t("neighbor.mob.loading")),1))])],64))],2)],2))}},L$={class:"dun-root"},M$={class:"dun-bar"},A$={class:"dun-brand"},E$=["aria-label"],N$=["aria-selected","onClick"],F$={class:"dun-stage"},R$=["aria-label"],I$={class:"dun-card"},O$=["aria-label"],z$={class:"src"},D$=Object.freeze(Object.defineProperty({__proto__:null,default:{__name:"upg-neighbor",setup(e){const t=bt("profileConfig",null),n=_e(()=>(t==null?void 0:t.value)||{}),o=["mobilize","campaigns"],a={"send-map":"mobilize",cockpit:"mobilize","upg-neighbors":"mobilize","bloom-cockpit":"mobilize","flower-mesh":"mobilize","lang-cluster":"campaigns",flowers:"campaigns"},r=n.value.view||n.value.legacyElement,s=o.includes(r)?r:a[r]||(n.value.lang?"campaigns":"mobilize"),i=Jo({view:s,pgid:n.value.pgid||null,lang:n.value.lang||null,about:!1,list:"unreached",sheetDown:!1});on("nbState",i);const l=Ce(null),c=Ce(null);$t(()=>i.about,d=>Wt(()=>{var h,k;return(k=(h=d?c.value:l.value)==null?void 0:h.focus)==null?void 0:k.call(h)}));function u(d){var h,k;d.key==="Escape"?(d.preventDefault(),d.stopPropagation(),i.about=!1):d.key==="Tab"&&(d.preventDefault(),(k=(h=c.value)==null?void 0:h.focus)==null||k.call(h))}return Er(`
.dun-root { position:absolute; inset:0; display:flex; flex-direction:column; overflow:hidden; background:#fff; isolation:isolate;
font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; }
.dun-bar { flex:0 0 auto; display:flex; align-items:center; gap:10px; padding:8px 12px; background:${lt}; z-index:50; flex-wrap:wrap; }
@@ -232,8 +232,8 @@
.dun-card .src { font-size:12px; color:#6b7280; }
.dun-close { float:inline-end; border:0; background:none; font-size:20px; line-height:1; cursor:pointer; color:#6b7280; }
@media (max-width:640px){ .dun-brand{ display:none; } .dun-seg button { padding:7px 10px; } }
-`,"upg-neighbor"),(d,h)=>(he(),be("div",x$,[z("div",T$,[z("span",L$,W(d.$t("neighbor.brand")),1),z("div",{class:"dun-seg",role:"tablist","aria-label":d.$t("neighbor.chooseView")},[(he(),be(Ye,null,an(o,k=>z("button",{key:k,role:"tab","aria-selected":i.view===k,class:ot({on:i.view===k}),onClick:F=>i.view=k},W(d.$t(k==="mobilize"?"neighbor.views.mobilize":"neighbor.views.campaigns")),11,A$)),64))],8,M$),z("button",{ref_key:"aboutBtn",ref:l,class:"dun-about",onClick:h[0]||(h[0]=k=>i.about=!0)},W(d.$t("neighbor.about.button")),513)]),z("div",E$,[i.view==="mobilize"?(he(),Vn(o$,{key:0})):(he(),Vn(C$,{key:1})),i.about?(he(),be("div",{key:2,class:"dun-modal",role:"dialog","aria-modal":"true","aria-label":d.$t("neighbor.about.title"),onClick:h[2]||(h[2]=hc(k=>i.about=!1,["self"])),onKeydown:u},[z("div",F$,[z("button",{ref_key:"aboutClose",ref:c,class:"dun-close","aria-label":d.$t("neighbor.about.close"),onClick:h[1]||(h[1]=k=>i.about=!1)},"×",8,R$),z("h2",null,W(d.$t("neighbor.about.title")),1),z("p",null,W(d.$t("neighbor.about.why")),1),z("h3",null,W(d.$t("neighbor.about.greenTitle")),1),z("p",null,W(d.$t("neighbor.about.green")),1),z("h3",null,W(d.$t("neighbor.about.eTitle")),1),z("p",null,[h[3]||(h[3]=z("b",null,"E-1",-1)),Ke(" · "+W(d.$t("neighbor.e.long1")),1),h[4]||(h[4]=z("br",null,null,-1)),h[5]||(h[5]=z("b",null,"E-2",-1)),Ke(" · "+W(d.$t("neighbor.e.long2")),1),h[6]||(h[6]=z("br",null,null,-1)),h[7]||(h[7]=z("b",null,"E-3",-1)),Ke(" · "+W(d.$t("neighbor.e.long3")),1)]),z("h3",null,W(d.$t("neighbor.about.pTitle")),1),z("p",null,[h[8]||(h[8]=z("b",null,"P-1",-1)),Ke(" · "+W(d.$t("neighbor.p.long1")),1),h[9]||(h[9]=z("br",null,null,-1)),h[10]||(h[10]=z("b",null,"P-2",-1)),Ke(" · "+W(d.$t("neighbor.p.long2")),1),h[11]||(h[11]=z("br",null,null,-1)),h[12]||(h[12]=z("b",null,"P-3",-1)),Ke(" · "+W(d.$t("neighbor.p.long3")),1)]),z("h3",null,W(d.$t("neighbor.about.dataTitle")),1),z("p",null,W(d.$t("neighbor.about.data")),1),z("p",I$,W(d.$t("neighbor.about.source")),1)])],40,N$)):st("",!0)])]))}}},Symbol.toStringTag,{value:"Module"}));function z$(e,{autoprint:t=!1}={}){const n=document.createElement("iframe");n.setAttribute("aria-hidden","true"),n.style.cssText="position:fixed;right:0;bottom:0;width:1px;height:1px;opacity:0;border:0",document.body.appendChild(n);const o=n.contentDocument;if(!o)return n.remove(),null;o.open(),o.write(e),t&&o.write('
-
+
-
+
-
+
-
+
-
+
-
+
-
+