PageSourceSearch

https://www.lemans.fr/_nuxt/CjRENkZh.js

js lemans.fr collected 2026-09-24 19:37:42 UTC 3,047,531 bytes, 950 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./ZmTiNy98.js","./DX55vAP3.js","./uen6jxSB.js","./DIyEuOMW.js","./CN6DBtrN.js","./BuiFT3BR.js","./CcITSNKU.js","./DhG5MR6g.js","./Bc_zlHHc.js","./DDp0qMUe.js","./CW_MduDS.js","./Dsvqg-dy.js","./D7vVEFk-.js","./CQwqeVT0.js","./DVVWmuCV.js","./D2ZF7mzs.js","./DNuzjmXC.js","./default.DYF6Jaoi.css"])))=>i.map(i=>d[i]);
2(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();function kM(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Qr={},by=[],Ef=()=>{},pz=()=>!1,fw=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),RC=e=>e.startsWith("onUpdate:"),qa=Object.assign,EM=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},jK=Object.prototype.hasOwnProperty,_i=(e,t)=>jK.call(e,t),Vn=Array.isArray,ag=e=>L_(e)==="[object Map]",gp=e=>L_(e)==="[object Set]",o9=e=>L_(e)==="[object Date]",UK=e=>L_(e)==="[object RegExp]",er=e=>typeof e=="function",Bi=e=>typeof e=="string",yu=e=>typeof e=="symbol",di=e=>e!==null&&typeof e=="object",PM=e=>(di(e)||er(e))&&er(e.then)&&er(e.catch),mz=Object.prototype.toString,L_=e=>mz.call(e),HK=e=>L_(e).slice(8,-1),$M=e=>L_(e)==="[object Object]",BC=e=>Bi(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,My=kM(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),FC=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},WK=/-\w/g,Yo=FC(e=>e.replace(WK,t=>t.slice(1).toUpperCase())),GK=/\B([A-Z])/g,Tp=FC(e=>e.replace(GK,"-$1").toLowerCase()),zC=FC(e=>e.charAt(0).toUpperCase()+e.slice(1)),J2=FC(e=>e?`on${zC(e)}`:""),Uo=(e,t)=>!Object.is(e,t),Yv=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},gz=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},NC=e=>{const t=parseFloat(e);return isNaN(t)?e:t},yz=e=>{const t=Bi(e)?Number(e):NaN;return isNaN(t)?e:t};let s9;const VC=()=>s9||(s9=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function fo(e){if(Vn(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],i=Bi(r)?XK(r):fo(r);if(i)for(const a in i)t[a]=i[a]}return t}else if(Bi(e)||di(e))return e}const YK=/;(?![^(]*\))/g,ZK=/:([^]+)/,KK=/"(?:[^"\\]|\\[^])*"|'(?:[^'\\]|\\[^])*'|\\[^]|\/\*[^]*?\*\//g;function XK(e){const t={};return e.replace(KK,n=>n.startsWith("/*")?"":n).split(YK).forEach(n=>{if(n){const r=n.split(ZK);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function de(e){let t="";if(Bi(e))t=e;else if(Vn(e))for(let n=0;n<e.length;n++){const r=de(e[n]);r&&(t+=r+" ")}else if(di(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function gr(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Bi(t)&&(e.class=de(t)),n&&(e.style=fo(n)),e}const JK="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",QK=kM(JK);function vz(e){return!!e||e===""}function eX(e,t,n){if(e.length!==t.length)return!1;let r=!0;for(let i=0;r&&i<e.length;i++)r=wd(e[i],t[i],n);return r}function l9(e,t,n){if(e.size!==t.size)return!1;const r=Array.from(t),i=new Uint8Array(r.length);for(const a of e){let s=-1;for(let o=0;o<r.length;o++)if(!i[o]&&wd(a,r[o],n)){s=o;break}if(s<0)return!1;i[s]=1}return!0}function tX(e,t,n){let r=ag(e),i=ag(t);if(r||i||(r=gp(e),i=gp(t),r||i))return r&&i?l9(e,t,n):!1;const a=Object.keys(e).length,s=Object.keys(t).length;if(a!==s)return!1;for(const o in e){const f=e.hasOwnProperty(o),m=t.hasOwnProperty(o);if(f&&!m||!f&&m||!wd(e[o],t[o],n))return!1}return String(e)===String(t)}function u9(e,t,n,r){n||(n=[new Map,new Map]);const[i,a]=n;if(i.has(e)||a.has(t))return i.get(e)===t&&a.get(t)===e;i.set(e,t),a.set(t,e);const s=r(e,t,n);return i.delete(e),a.delete(t),s}function wd(e,t,n){if(e===t)return!0;let r=o9(e),i=o9(t);return r||i?r&&i?e.getTime()===t.getTime():!1:(r=yu(e),i=yu(t),r||i?e===t:(r=Vn(e),i=Vn(t),r||i?r&&i?u9(e,t,n,eX):!1:(r=di(e),i=di(t),r||i?!r||!i?!1:u9(e,t,n,tX):String(e)===String(t))))}function MM(e,t){return e.findIndex(n=>wd(n,t))}const _z=e=>!!(e&&e.__v_isRef===!0),ht=e=>Bi(e)?e:e==null?"":Vn(e)||di(e)&&(e.toString===mz||!er(e.toString))?_z(e)?ht(e.value):JSON.stringify(e,bz,2):String(e),bz=(e,t)=>_z(t)?bz(e,t.value):ag(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,i],a)=>(n[YE(r,a)+" =>"]=i,n),{})}:gp(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>YE(n))}:yu(t)?YE(t):di(t)&&!Vn(t)&&!$M(t)?String(t):t,YE=(e,t="")=>{var n;return yu(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};let wo;class xz{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&&wo&&(wo.active?(this.parent=wo,this.index=(wo.scopes||(wo.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 r=this.scopes.slice();for(t=0,n=r.length;t<n;t++)r[t].pause()}for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes){const i=this.scopes.slice();for(t=0,n=i.length;t<n;t++)i[t].resume()}const r=this.effects.slice();for(t=0,n=r.length;t<n;t++)r[t].resume()}}run(t){if(this._active){const n=wo;try{return wo=this,t()}finally{wo=n}}}on(){++this._on===1&&(this.prevScope=wo,wo=this)}off(){if(this._on>0&&--this._on===0){if(wo===this)wo=this.prevScope;else{let t=wo;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,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){const i=this.scopes.slice();for(n=0,r=i.length;n<r;n++)i[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function i1(e){return new xz(e)}function _c(){return wo}function yp(e,t=!1){wo&&wo.cleanups.push(e)}let ji;const ZE=new WeakSet;class KS{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler
vendor: 4,191 bytes, line 2
2=void 0,wo&&(wo.active?wo.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,ZE.has(this)&&(ZE.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Sz(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,c9(this),Cz(this);const t=ji,n=vd;ji=this,vd=!0;try{return this.fn()}finally{Tz(this),ji=t,vd=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)DM(t);this.deps=this.depsTail=void 0,c9(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?ZE.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Y8(this)&&this.run()}get dirty(){return Y8(this)}}let wz=0,Q2,ex;function Sz(e,t=!1){if(e.flags|=8,t){e.next=ex,ex=e;return}e.next=Q2,Q2=e}function AM(){wz++}function IM(){if(--wz>0)return;if(ex){let t=ex;for(ex=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Q2;){let t=Q2;for(Q2=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function Cz(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Tz(e){let t,n=e.depsTail,r=n;for(;r;){const i=r.prevDep;r.version===-1?(r===n&&(n=i),DM(r),nX(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=i}e.deps=t,e.depsTail=n}function Y8(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(kz(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function kz(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Sx)||(e.globalVersion=Sx,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Y8(e))))return;e.flags|=2;const t=e.dep,n=ji,r=vd;ji=e,vd=!0;try{Cz(e);const i=e.fn(e._value);(t.version===0||Uo(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{ji=n,vd=r,Tz(e),e.flags&=-3}}function DM(e,t=!1){const{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let a=n.computed.deps;a;a=a.nextDep)DM(a,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function nX(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}function rX(e,t){e.effect instanceof KS&&(e=e.effect.fn);const n=new KS(e);try{n.run()}catch(i){throw n.stop(),i}const r=n.run.bind(n);return r.effect=n,r}let vd=!0;const Ez=[];function vp(){Ez.push(vd),vd=!1}function _p(){const e=Ez.pop();vd=e===void 0?!0:e}function c9(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=ji;ji=void 0;try{t()}finally{ji=n}}}let Sx=0,iX=class{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 qC{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(!ji||!vd||ji===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==ji)n=this.activeLink=new iX(ji,this),ji.deps?(n.prevDep=ji.depsTail,ji.depsTail.nextDep=n,ji.depsTail=n):ji.deps=ji.depsTail=n,Pz(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=ji.depsTail,n.nextDep=void 0,ji.depsTail.nextDep=n,ji.depsTail=n,ji.deps===n&&(ji.deps=r)}return n}trigger(t){this.version++,Sx++,this.notify(t)}notify(t){AM();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{IM()}}}function Pz(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)Pz(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const XS=new WeakMap,Ay=Symbol(""),Z8=Symbol(""),Cx=Symbol("");function Ns(e,t,n){if(vd&&ji){let r=XS.get(e);r||XS.set(e,r=new Map);let i=r.get(n);i||(r.set(n,i=new qC),i.map=r,i.key=n),i.track()}}function Zh(e,t,n,r,i,a){const s=XS.get(e);if(!s){Sx++;return}const o=f=>{f&&f.trigger()};if(AM(),t==="clear")s.forEach(o);else{const f=Vn(e),m=f&&BC(n);if(f&&n==="length"){const y=Number(r);
2s.forEach((b,T)=>{(T==="length"||T===Cx||!yu(T)&&T>=y)&&o(b)})}else switch((n!==void 0||s.has(void 0))&&o(s.get(n)),m&&o(s.get(Cx)),t){case"add":f?m&&o(s.get("length")):(o(s.get(Ay)),ag(e)&&o(s.get(Z8)));break;case"delete":f||(o(s.get(Ay)),ag(e)&&o(s.get(Z8)));break;case"set":ag(e)&&o(s.get(Ay));break}}IM()}function aX(e,t){const n=XS.get(e);return n&&n.get(t)}function kv(e){const t=In(e);return t===e||(Ns(t,"iterate",Cx),du(e))?t:Sd(e)?_d(e)?t.map(n=>yg(mc(n))):t.map(yg):t.map(mc)}function jC(e){return Ns(e=In(e),"iterate",Cx),e}function wf(e,t){return Sd(e)?yg(_d(e)?mc(t):t):mc(t)}const oX={__proto__:null,[Symbol.iterator](){return KE(this,Symbol.iterator,e=>wf(this,e))},concat(...e){return kv(this).concat(...e.map(t=>Vn(t)?kv(t):t))},entries(){return KE(this,"entries",e=>(e[1]=wf(this,e[1]),e))},every(e,t){return Ah(this,"every",e,t,void 0,arguments)},filter(e,t){return Ah(this,"filter",e,t,n=>n.map(r=>wf(this,r)),arguments)},find(e,t){return Ah(this,"find",e,t,n=>wf(this,n),arguments)},findIndex(e,t){return Ah(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Ah(this,"findLast",e,t,n=>wf(this,n),arguments)},findLastIndex(e,t){return Ah(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Ah(this,"forEach",e,t,void 0,arguments)},includes(...e){return XE(this,"includes",e)},indexOf(...e){return XE(this,"indexOf",e)},join(e){return kv(this).join(e)},lastIndexOf(...e){return XE(this,"lastIndexOf",e)},map(e,t){return Ah(this,"map",e,t,void 0,arguments)},pop(){return x2(this,"pop")},push(...e){return x2(this,"push",e)},reduce(e,...t){return d9(this,"reduce",e,t)},reduceRight(e,...t){return d9(this,"reduceRight",e,t)},shift(){return x2(this,"shift")},some(e,t){return Ah(this,"some",e,t,void 0,arguments)},splice(...e){return x2(this,"splice",e)},toReversed(){return kv(this).toReversed()},toSorted(e){return kv(this).toSorted(e)},toSpliced(...e){return kv(this).toSpliced(...e)},unshift(...e){return x2(this,"unshift",e)},values(){return KE(this,"values",e=>wf(this,e))}};function KE(e,t,n){const r=jC(e),i=r[t]();return r!==e&&!du(e)&&(i._next=i.next,i.next=()=>{const a=i._next();return a.done||(a.value=n(a.value)),a}),i}const sX=Array.prototype;function Ah(e,t,n,r,i,a){const s=jC(e),o=s!==e&&!du(e),f=s[t];if(f!==sX[t]){const b=f.apply(e,a);return o?mc(b):b}let m=n;s!==e&&(o?m=function(b,T){return n.call(this,wf(e,b),T,e)}:n.length>2&&(m=function(b,T){return n.call(this,b,T,e)}));const y=f.call(s,m,r);return o&&i?i(y):y}function d9(e,t,n,r){const i=jC(e),a=i!==e&&!du(e);let s=n,o=!1;i!==e&&(a?(o=r.length===0,s=function(m,y,b){return o&&(o=!1,m=wf(e,m)),n.call(this,m,wf(e,y),b,e)}):n.length>3&&(s=function(m,y,b){return n.call(this,m,y,b,e)}));const f=i[t](s,...r);return o?wf(e,f):f}function XE(e,t,n){const r=In(e);Ns(r,"iterate",Cx);const i=r[t](...n);return(i===-1||i===!1)&&WC(n[0])?(n[0]=In(n[0]),r[t](...n)):i}function x2(e,t,n=[]){vp(),AM();const r=In(e)[t].apply(e,n);return IM(),_p(),r}const lX=kM("__proto__,__v_isRef,__isVue"),$z=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(yu));function uX(e){yu(e)||(e=String(e));const t=In(this);return Ns(t,"has",e),t.hasOwnProperty(e)}class Mz{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const i=this._isReadonly,a=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return a;
2if(n==="__v_raw")return r===(i?a?Rz:Oz:a?Lz:Dz).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const s=Vn(t);if(!i){let f;if(s&&(f=oX[n]))return f;if(n==="hasOwnProperty")return uX}const o=Reflect.get(t,n,zn(t)?t:r);if((yu(n)?$z.has(n):lX(n))||(i||Ns(t,"get",n),a))return o;if(zn(o)){const f=s&&BC(n)?o:o.value;return i&&di(f)?Tx(f):f}return di(o)?i?Tx(o):aa(o):o}}class Az extends Mz{constructor(t=!1){super(!1,t)}set(t,n,r,i){let a=t[n];const s=Vn(t)&&BC(n);if(!this._isShallow){const m=Sd(a);if(!du(r)&&!Sd(r)&&(a=In(a),r=In(r)),!s&&zn(a)&&!zn(r))return m||(a.value=r),!0}const o=s?Number(n)<t.length:_i(t,n),f=Reflect.set(t,n,r,zn(t)?t:i);return t===In(i)&&f&&(o?Uo(r,a)&&Zh(t,"set",n,r):Zh(t,"add",n,r)),f}deleteProperty(t,n){const r=_i(t,n);t[n];const i=Reflect.deleteProperty(t,n);return i&&r&&Zh(t,"delete",n,void 0),i}has(t,n){const r=Reflect.has(t,n);return(!yu(n)||!$z.has(n))&&Ns(t,"has",n),r}ownKeys(t){return Ns(t,"iterate",Vn(t)?"length":Ay),Reflect.ownKeys(t)}}class Iz extends Mz{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const cX=new Az,dX=new Iz,fX=new Az(!0),hX=new Iz(!0),K8=e=>e,x5=e=>Reflect.getPrototypeOf(e);function pX(e,t,n){return function(...r){const i=this.__v_raw,a=In(i),s=ag(a),o=e==="entries"||e===Symbol.iterator&&s,f=e==="keys"&&s,m=i[e](...r),y=n?K8:t?yg:mc;return!t&&Ns(a,"iterate",f?Z8:Ay),qa(Object.create(m),{next(){const{value:b,done:T}=m.next();return T?{value:b,done:T}:{value:o?[y(b[0]),y(b[1])]:y(b),done:T}}})}}function w5(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function mX(e,t){const n={get(i){const a=this.__v_raw,s=In(a),o=In(i);e||(Uo(i,o)&&Ns(s,"get",i),Ns(s,"get",o));const{has:f}=x5(s),m=t?K8:e?yg:mc;if(f.call(s,i))return m(a.get(i));if(f.call(s,o))return m(a.get(o));a!==s&&a.get(i)},get size(){const i=this.__v_raw;return!e&&Ns(In(i),"iterate",Ay),i.size},has(i){const a=this.__v_raw,s=In(a),o=In(i);return e||(Uo(i,o)&&Ns(s,"has",i),Ns(s,"has",o)),i===o?a.has(i):a.has(i)||a.has(o)},forEach(i,a){const s=this,o=s.__v_raw,f=In(o),m=t?K8:e?yg:mc;return!e&&Ns(f,"iterate",Ay),o.forEach((y,b)=>i.call(a,m(y),m(b),s))}};return qa(n,e?{add:w5("add"),set:w5("set"),delete:w5("delete"),clear:w5("clear")}:{add(i){const a=In(this),s=x5(a),o=In(i),f=!t&&!du(i)&&!Sd(i)?o:i;return s.has.call(a,f)||Uo(i,f)&&s.has.call(a,i)||Uo(o,f)&&s.has.call(a,o)||(a.add(f),Zh(a,"add",f,f)),this},set(i,a){!t&&!du(a)&&!Sd(a)&&(a=In(a));const s=In(this),{has:o,get:f}=x5(s);let m=o.call(s,i);m||(i=In(i),m=o.call(s,i));const y=f.call(s,i);return s.set(i,a),m?Uo(a,y)&&Zh(s,"set",i,a):Zh(s,"add",i,a),this},delete(i){const a=In(this),{has:s,get:o}=x5(a);let f=s.call(a,i);f||(i=In(i),f=s.call(a,i)),o&&o.call(a,i);const m=a.delete(i);return f&&Zh(a,"delete",i,void 0),m},clear(){const i=In(this),a=i.size!==0,s=i.clear();return a&&Zh(i,"clear",void 0,void 0),s}}),["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=pX(i,e,t)}),n}function UC(e,t){const n=mX(e,t);return(r,i,a)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(_i(n,i)&&i in r?n:r,i,a)}const gX={get:UC(!1,!1)},yX={get:UC(!1,!0)},vX={get:UC(!0,!1)},_X={get:UC(!0,!0)},Dz=new WeakMap,Lz=new WeakMap,Oz=new WeakMap,Rz=new WeakMap;function bX(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function aa(e){return Sd(e)?e:HC(e,!1,cX,gX,Dz)}function Sf(e){return HC(e,!1,fX,yX,Lz)}function Tx(e){return HC(e,!0,dX,vX,Oz)}function ou(e){return HC(e,!0,hX,_X,Rz)}function HC(e,t,n,r,i){if(!di(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const a=i.get(e);if(a)return a;const s=bX(HK(e));if(s===0)return e;const o=new Proxy(e,s===2?r:n);return i.set(e,o),o}function _d(e){return Sd(e)?_d(e.__v_raw):!!(e&&e.__v_isReactive)}function Sd(e){return!!(e&&e.__v_isReadonly)}function du(e){return!!(e&&e.__v_isShallow)}function WC(e){return e?!!e.__v_raw:!1}function In(e){const t=e&&e.__v_raw;return t?In(t):e}function O_(e){return!_i(e,"__v_skip")&&Object.isExtensible(e)&&gz(e,"__v_skip",!0),e}const mc=e=>di(e)?aa(e):e,yg=e=>di(e)?Tx(e):e;function zn(e){return e?e.__v_isRef===!0:!1}function De(e){return Bz(e,!1)}function Bn(e){return Bz(e,!0)}function Bz(e,t){return zn(e)?e:new xX(e,t)}class xX{constructor(t,n){this.dep=new qC,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:In(t),this._value=n?t:mc(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||du(t)||Sd(t);
vendor: 5,433 bytes, line 2
2t=r?t:In(t),Uo(t,n)&&(this._rawValue=t,this._value=r?t:mc(t),this.dep.trigger())}}function wX(e){e.dep&&e.dep.trigger()}function v(e){return zn(e)?e.value:e}function qt(e){return er(e)?e():v(e)}const SX={get:(e,t,n)=>t==="__v_raw"?e:v(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return zn(i)&&!zn(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function Fz(e){return _d(e)?e:new Proxy(e,SX)}class CX{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new qC,{get:r,set:i}=t(n.track.bind(n),n.trigger.bind(n));this._get=r,this._set=i}get value(){return this._value=this._get()}set value(t){this._set(t)}}function R_(e){return new CX(e)}function bi(e){const t=Vn(e)?new Array(e.length):{};for(const n in e)t[n]=zz(e,n);return t}class TX{constructor(t,n,r){this._object=t,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0,this._key=yu(n)?n:String(n),this._raw=In(t);let i=!0,a=t;if(!Vn(t)||yu(this._key)||!BC(this._key))do i=!WC(a)||du(a);while(i&&(a=a.__v_raw));this._shallow=i}get value(){let t=this._object[this._key];return this._shallow&&(t=v(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&zn(this._raw[this._key])){const n=this._object[this._key];if(zn(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return aX(this._raw,this._key)}}class kX{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function oc(e,t,n){return zn(e)?e:er(e)?new kX(e):di(e)&&arguments.length>1?zz(e,t,n):De(e)}function zz(e,t,n){return new TX(e,t,n)}class EX{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new qC(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Sx-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&ji!==this)return Sz(this,!0),!0}get value(){const t=this.dep.track();return kz(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function PX(e,t,n=!1){let r,i;return er(e)?r=e:(r=e.get,i=e.set),new EX(r,i,n)}const S5={},JS=new WeakMap;let dy;function $X(e,t=!1,n=dy){if(n){let r=JS.get(n);r||JS.set(n,r=[]),r.push(e)}}function MX(e,t,n=Qr){const{immediate:r,deep:i,once:a,scheduler:s,augmentJob:o,call:f}=n,m=B=>i?B:du(B)||i===!1||i===0?Kh(B,1):Kh(B);let y,b,T,x,$=!1,A=!1;if(zn(e)?(b=()=>e.value,$=du(e)):_d(e)?(b=()=>m(e),$=!0):Vn(e)?(A=!0,$=e.some(B=>_d(B)||du(B)),b=()=>e.map(B=>{if(zn(B))return B.value;if(_d(B))return m(B);if(er(B))return f?f(B,2):B()})):er(e)?t?b=f?()=>f(e,2):e:b=()=>{if(T){vp();try{T()}finally{_p()}}const B=dy;dy=y;try{return f?f(e,3,[x]):e(x)}finally{dy=B}}:b=Ef,t&&i){const B=b,q=i===!0?1/0:i;b=()=>Kh(B(),q)}const N=_c(),O=()=>{y.stop(),N&&N.active&&EM(N.effects,y)};if(a&&t){const B=t;t=(...q)=>{const Q=B(...q);return O(),Q}}let I=A?new Array(e.length).fill(S5):S5;const U=B=>{if(!(!(y.flags&1)||!y.dirty&&!B))if(t){const q=y.run();if(B||i||$||(A?q.some((Q,ee)=>Uo(Q,I[ee])):Uo(q,I))){T&&T();const Q=dy;dy=y;try{const ee=[q,I===S5?void 0:A&&I[0]===S5?[]:I,x];I=q,f?f(t,3,ee):t(...ee)}finally{dy=Q}}}else y.run()};return o&&o(U),y=new KS(b),y.scheduler=s?()=>s(U,!1):U,x=B=>$X(B,!1,y),T=y.onStop=()=>{const B=JS.get(y);if(B){if(f)f(B,4);else for(const q of B)q();JS.delete(y)}},t?r?U(!0):I=y.run():s?s(U.bind(null,!0),!0):y.run(),O.pause=y.pause.bind(y),O.resume=y.resume.bind(y),O.stop=O,O}function Kh(e,t=1/0,n){if(t<=0||!di(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,zn(e))Kh(e.value,t,n);else if(Vn(e))for(let r=0;r<e.length;r++)Kh(e[r],t,n);else if(gp(e)||ag(e))e.forEach(r=>{Kh(r,t,n)});else if($M(e)){for(const r in e)Kh(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Kh(e[r],t,n)}return e}function hw(e,t,n,r){try{return r?e(...r):e()}catch(i){B_(i,t,n)}}function gc(e,t,n,r){if(er(e)){const i=hw(e,t,n,r);return i&&PM(i)&&i.catch(a=>{B_(a,t,n)}),i}if(Vn(e)){const i=[];for(let a=0;a<e.length;a++)i.push(gc(e[a],t,n,r));return i}}function B_(e,t,n,r=!0){const i=t?t.vnode:null,{errorHandler:a,throwUnhandledErrorInProduction:s}=t&&t.appContext.config||Qr;if(t){let o=t.parent;const f=t.proxy,m=`https://vuejs.org/error-reference/#runtime-${n}`;for(;o;){const y=o.ec;if(y){for(let b=0;b<y.length;b++)if(y[b](e,f,m)===!1)return}o=o.parent}if(a){vp(),hw(a,null,10,[e,f,m]),_p();return}}AX(e,n,i,r,s)}function AX(e,t,n,r=!0,i=!1){if(i)throw e}const il=[];let mf=-1;const Zv=[];let Hm=null,Ov=0;const Nz=Promise.resolve();let QS=null;function ur(e){const t=QS||Nz;return e?t.then(this?e.bind(this):e):t}function IX(e){let t=mf+1,n=il.length;for(;t<n;){const r=t+n>>>1,i=il[r],a=Ex(i);a<e||a===e&&i.flags&2?t=r+1:n=r}return t}function LM(e){if(!(e.flags&1)){const t=Ex(e),n=il[il.length-1];!n||!(e.flags&2)&&t>=Ex(n)?il.push(e):il.splice(IX(t),0,e),e.flags|=1,Vz()}}function Vz(){QS||(QS=Nz.then(qz))}function kx(e){if(!Vn(e))Hm&&e.id===-1?Hm.splice(Ov+1,0,e):e.flags&1||(Zv.push(e),e.flags|=1);else for(let t=0;t<e.length;t++)Zv.push(e[t]);Vz()}function f9(e,t,n=mf+1){for(;n<il.length;n++){const r=il[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;il.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function e4(e){if(Zv.length){const t=[...new Set(Zv)].sort((n,r)=>Ex(n)-Ex(r));if(Zv.length=0,Hm){for(let n=0;n<t.length;n++)Hm.push(t[n]);return}for(Hm=t,Ov=0;
2Ov<Hm.length;Ov++){const n=Hm[Ov];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Hm=null,Ov=0}}const Ex=e=>e.id==null?e.flags&2?-1:1/0:e.id;function qz(e){try{for(mf=0;mf<il.length;mf++){const t=il[mf];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),hw(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;mf<il.length;mf++){const t=il[mf];t&&(t.flags&=-2)}mf=-1,il.length=0,e4(),QS=null,(il.length||Zv.length)&&qz()}}let bs=null,jz=null;function t4(e){const t=bs;return bs=e,jz=e&&e.type.__scopeId||null,t}function be(e,t=bs,n){if(!t||e._n)return e;const r=(...i)=>{r._d&&l4(-1);const a=t4(t),s=lp.length;let o;try{o=e(...i)}finally{for(let f=lp.length;f>s;f--)XC();t4(a),r._d&&l4(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function Ol(e,t){if(bs===null)return e;const n=QC(bs),r=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[a,s,o,f=Qr]=t[i];a&&(er(a)&&(a={mounted:a,updated:a}),a.deep&&Kh(s),r.push({dir:a,instance:n,value:s,oldValue:void 0,arg:o,modifiers:f}))}return e}function _f(e,t,n,r){const i=e.dirs,a=t&&t.dirs;for(let s=0;s<i.length;s++){const o=i[s];a&&(o.oldValue=a[s].value);let f=o.dir[r];f&&(vp(),gc(f,n,8,[e.el,o,e,t]),_p())}}function co(e,t){if(vs){let n=vs.provides;const r=vs.parent&&vs.parent.provides;r===n&&(n=vs.provides=Object.create(r)),n[e]=t}}function Ai(e,t,n=!1){const r=Ci();if(r||Iy){let i=Iy?Iy._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&er(t)?t.call(r&&r.proxy):t}}function a1(){return!!(Ci()||Iy)}const DX=Symbol.for("v-scx"),LX=()=>Ai(DX);function ko(e,t){return pw(e,null,t)}function OM(e,t){return pw(e,null,{flush:"post"})}function OX(e,t){return pw(e,null,{flush:"sync"})}function nn(e,t,n){return pw(e,t,n)}function pw(e,t,n=Qr){const{immediate:r,deep:i,flush:a,once:s}=n,o=qa({},n),f=t&&r||!t&&a!=="post";let m;if(Vy){if(a==="sync"){const x=LX();m=x.__watcherHandles||(x.__watcherHandles=[])}else if(!f){const x=()=>{};return x.stop=Ef,x.resume=Ef,x.pause=Ef,x}}const y=vs;o.call=(x,$,A)=>gc(x,y,$,A);let b=!1;a==="post"?o.scheduler=x=>{ao(x,y&&y.suspense)}:a!=="sync"&&(b=!0,o.scheduler=(x,$)=>{$?x():LM(x)}),o.augmentJob=x=>{t&&(x.flags|=4),b&&(x.flags|=2,y&&(x.id=y.uid,x.i=y))};const T=MX(e,t,o);return Vy&&(m?m.push(T):f&&T()),T}function RX(e,t,n){const r=this.proxy,i=Bi(e)?e.includes(".")?Uz(r,e):()=>r[e]:e.bind(r,r);let a;er(t)?a=t:(a=t.handler,n=t);const s=F_(this),o=pw(i,a.bind(r),n);return s(),o}function Uz(e,t){const n=t.split(".");return()=>{let r=e;for(let i=0;i<n.length&&r;i++)r=r[n[i]];return r}}const Vm=new WeakMap,Hz=Symbol("_vte"),GC=e=>e.__isTeleport,my=e=>e&&(e.disabled||e.disabled===""),BX=e=>e&&(e.defer||e.defer===""),h9=e=>typeof SVGElement<"u"&&e instanceof SVGElement,p9=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,X8=(e,t)=>{const n=e&&e.to;return Bi(n)?t?t(n):null:n},FX={name:"Teleport",__isTeleport:!0,process(e,t,n,r,i,a,s,o,f,m){const{mc:y,pc:b,pbc:T,o:{insert:x,querySelector:$,createText:A,createComment:N,parentNode:O}}=m,I=my(t.props);let{dynamicChildren:U}=t;const B=(ee,Y,z)=>{ee.shapeFlag&16&&y(ee.children,Y,z,i,a,s,o,f)},q=(ee=t)=>{const Y=my(ee.props),z=ee.target=X8(ee.props,$),H=J8(z,ee,A,x);z&&(s!=="svg"&&h9(z)?s="svg":s!=="mathml"&&p9(z)&&(s="mathml"),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(z),Y||(B(ee,z,H),R2(ee,!1)))},Q=ee=>{const Y=()=>{if(Vm.get(ee)===Y){if(Vm.delete(ee),my(ee.props)){const z=O(ee.el)||n;B(ee,z,ee.anchor),R2(ee,!0)}q(ee)}};Vm.set(ee,Y),ao(Y,a)};if(e==null){const ee=t.el=A(""),Y=t.anchor=A("");if(x(ee,n,r),x(Y,n,r),BX(t.props)||a&&a.pendingBranch){Q(t);return}I&&(B(t,n,Y),R2(t,!0)),q()}else{t.el=e.el;const ee=t.anchor=e.anchor,Y=Vm.get(e);if(Y){Y.flags|=8,Vm.delete(e),Q(t);return}t.targetStart=e.targetStart;const z=t.target=e.target,H=t.targetAnchor=e.targetAnchor,K=my(e.props),ne=K?n:z,le=K?ee:H;if(s==="svg"||h9(z)?s="svg":(s==="mathml"||p9(z))&&(s="mathml"),U?(T(e.dynamicChildren,U,ne,i,a,s,o),WM(e,t,!0)):f||b(e,t,ne,le,i,a,s,o,!1),I)K?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):C5(t,n,ee,m,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const pe=X8(t.props,$);pe&&(t.target=pe,C5(t,pe,null,m,0))}else K&&C5(t,z,H,m,1);R2(t,I)}},remove(e,t,n,{um:r,o:{remove:i}},a){const{shapeFlag:s,children:o,anchor:f,targetStart:m,targetAnchor:y,target:b,props:T}=e,x=my(T),$=a||!x,A=Vm.get(e);if(A&&(A.flags|=8,Vm.delete(e)),b&&(i(m),i(y)),a&&i(f),!A&&(x||b)&&s&16)for(let N=0;N<o.length;N++){const O=o[N];r(O,t,n,$,!!O.dynamicChildren)}},move:C5,hydrate:zX};function C5(e,t,n,{o:{insert:r},m:i},a=2){a===0&&r(e.targetAnchor,t,n);const{el:s,anchor:o,shapeFlag:f,children:m,props:y}=e,b=a===2;if(b&&r(s,t,n),!Vm.has(e)&&(!b||my(y))&&f&16)for(let T=0;T<m.length;T++)i(m[T],t,n,2);b&&r(o,t,n)}function zX(e,t,n,r,i,a,{o:{nextSibling:s,parentNode:o,querySelector:f,insert:m,createText:y}},b){function T(N,O){let I=O;for(;I;){if(I&&I.nodeType===8){if(I.data==="teleport start anchor")t.targetStart=I;else if(I.data==="teleport anchor"){t.targetAnchor=I,N._lpa=t.targetAnchor&&s(t.targetAnchor);break}}I=s(I)}}function x(N,O){O.anchor=b(s(N),O,o(N),n,r,i,a)}const $=t.target=X8(t.props,f),A=my(t.props);if($){const N=$._lpa||$.firstChild;t.shapeFlag&16&&(A?(x(e,t),T($,N),t.targetAnchor||J8($,t,y,m,o(e)===$?e:null)):(t.anchor=s(e),T($,N),t.targetAnchor||J8($,t,y,m),b(N&&s(N),t,$,n,r,i,a))),R2(t,A)}else A&&t.shapeFlag&16&&(x(e,t),t.targetStart=e,t.targetAnchor=s(e));return t.anchor&&s(t.anchor)}const Wz=FX;function R2(e,t){const n=e.ctx;if(n&&n.ut){let r,i;for(t?(r=e.el,i=e.anchor):(r=e.targetStart,i=e.targetAnchor);r&&r!==i;)r.nodeType===1&&r.setAttribute("data-v-owner",n.uid),r=r.nextSibling;n.ut()}}function J8(e,t,n,r,i=null){const a=t.targetStart=n(""),s=t.targetAnchor=n("");return a[Hz]=s,e&&(r(a,e,i),r(s,e,i)),s}const ic=Symbol("_leaveCb"),w2=Symbol("_enterCb");function NX(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leav
2ingVNodes:new Map};return Hn(()=>{e.isMounted=!0}),xu(()=>{e.isUnmounting=!0}),e}const Ku=[Function,Array],Gz={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ku,onEnter:Ku,onAfterEnter:Ku,onEnterCancelled:Ku,onBeforeLeave:Ku,onLeave:Ku,onAfterLeave:Ku,onLeaveCancelled:Ku,onBeforeAppear:Ku,onAppear:Ku,onAfterAppear:Ku,onAppearCancelled:Ku},Yz=e=>{const t=e.subTree;return t.component?Yz(t.component):t},VX={name:"BaseTransition",props:Gz,setup(e,{slots:t}){const n=Ci(),r=NX();return()=>{const i=t.default&&Xz(t.default(),!0),a=i&&i.length?Zz(i):n.subTree?Ne():void 0;if(!a)return;const s=In(e),{mode:o}=s;if(r.isLeaving)return JE(a);const f=n4(a);if(!f)return JE(a);let m=Q8(f,s,r,n,b=>m=b);f.type!==Ea&&h_(f,m);let y=n.subTree&&n4(n.subTree);if(y&&y.type!==Ea&&!pd(y,f)&&Yz(n).type!==Ea){let b=Q8(y,s,r,n);if(h_(y,b),o==="out-in"&&f.type!==Ea)return r.isLeaving=!0,b.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete b.afterLeave,y=void 0},JE(a);o==="in-out"&&f.type!==Ea?b.delayLeave=(T,x,$)=>{const A=Kz(r,y);A[String(y.key)]=y,T[ic]=()=>{x(),T[ic]=void 0,delete m.delayedLeave,y=void 0},m.delayedLeave=()=>{$(),delete m.delayedLeave,y=void 0}}:y=void 0}else y&&(y=void 0);return a}}};function Zz(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==Ea){t=n;break}}return t}const qX=VX;function Kz(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Q8(e,t,n,r,i){const{appear:a,mode:s,persisted:o=!1,onBeforeEnter:f,onEnter:m,onAfterEnter:y,onEnterCancelled:b,onBeforeLeave:T,onLeave:x,onAfterLeave:$,onLeaveCancelled:A,onBeforeAppear:N,onAppear:O,onAfterAppear:I,onAppearCancelled:U}=t,B=String(e.key),q=Kz(n,e),Q=(z,H)=>{z&&gc(z,r,9,H)},ee=(z,H)=>{const K=H[1];Q(z,H),Vn(z)?z.every(ne=>ne.length<=1)&&K():z.length<=1&&K()},Y={mode:s,persisted:o,beforeEnter(z){let H=f;if(!n.isMounted)if(a)H=N||f;else return;z[ic]&&z[ic](!0);const K=q[B];K&&pd(e,K)&&K.el[ic]&&K.el[ic](),Q(H,[z])},enter(z){if(q[B]===e)return;let H=m,K=y,ne=b;if(!n.isMounted)if(a)H=O||m,K=I||y,ne=U||b;else return;let le=!1;z[w2]=ae=>{le||(le=!0,ae?Q(ne,[z]):Q(K,[z]),Y.delayedLeave&&Y.delayedLeave(),z[w2]=void 0)};const pe=z[w2].bind(null,!1);H?ee(H,[z,pe]):pe()},leave(z,H){const K=String(e.key);if(z[w2]&&z[w2](!0),n.isUnmounting)return H();Q(T,[z]);let ne=!1;z[ic]=pe=>{ne||(ne=!0,H(),pe?Q(A,[z]):Q($,[z]),z[ic]=void 0,q[K]===e&&delete q[K])};const le=z[ic].bind(null,!1);q[K]=e,x?ee(x,[z,le]):le()},clone(z){const H=Q8(z,t,n,r,i);return i&&i(H),H}};return Y}function JE(e){if(mw(e))return e=Cd(e),e.children=null,e}function n4(e){if(!mw(e))return GC(e.type)&&e.children?Zz(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&&er(n.default))return n.default()}}function h_(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;const n=e.component.subTree;h_(GC(n.type)&&n4(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 Xz(e,t=!1,n){let r=[],i=0;for(let a=0;a<e.length;a++){let s=e[a];const o=n==null?s.key:String(n)+String(s.key!=null?s.key:a);s.type===Ct?(s.patchFlag&128&&i++,r=r.concat(Xz(s.children,t,o))):(t||s.type!==Ea)&&r.push(o!=null?Cd(s,{key:o}):s)}if(i>1)for(let a=0;a<r.length;a++)r[a].patchFlag=-2;return r}function Fe(e,t){return er(e)?qa({name:e.name},t,{setup:e}):e}function Rf(){const e=Ci();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function RM(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function jX(e){const t=Ci(),n=Bn(null);if(t){const i=t.refs===Qr?t.refs={}:t.refs;Object.defineProperty(i,e,{enumerable:!0,get:()=>n.value,set:a=>n.value=a})}return n}function m9(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const r4=new WeakMap;function Kv(e,t,n,r,i=!1){if(Vn(e)){e.forEach((A,N)=>Kv(A,t&&(Vn(t)?t[N]:t),n,r,i));return}if(sp(r)&&!i){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Kv(e,t,n,r.component.subTree);return}const a=r.shapeFlag&4?QC(r.component):r.el,s=i?null:a,{i:o,r:f}=e,m=t&&t.r,y=o.refs===Qr?o.refs={}:o.refs,b=o.setupState,T=In(b),x=b===Qr?pz:A=>m9(y,A)?!1:_i(T,A),$=(A,N)=>!(N&&m9(y,N));if(m!=null&&m!==f){if(g9(t),Bi(m))y[m]=null,x(m)&&(b[m]=null);else if(zn(m)){const A=t;$(m,A.k)&&(m.value=null),A.k&&(y[A.k]=null)}}if(er(f))hw(f,o,12,[s,y]);else{const A=Bi(f),N=zn(f);if(A||N){const O=()=>
2{if(e.f){const I=A?x(f)?b[f]:y[f]:$()||!e.k?f.value:y[e.k];if(i)Vn(I)&&EM(I,a);else if(Vn(I))I.includes(a)||I.push(a);else if(A)y[f]=[a],x(f)&&(b[f]=y[f]);else{const U=[a];$(f,e.k)&&(f.value=U),e.k&&(y[e.k]=U)}}else A?(y[f]=s,x(f)&&(b[f]=s)):N&&($(f,e.k)&&(f.value=s),e.k&&(y[e.k]=s))};if(s){const I=()=>{O(),r4.delete(e)};I.id=-1,r4.set(e,I),ao(I,n)}else g9(e),O()}}}function g9(e){const t=r4.get(e);t&&(t.flags|=8,r4.delete(e))}let y9=!1;const Ev=()=>{y9||(y9=!0)},UX=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",HX=e=>e.namespaceURI.includes("MathML"),T5=e=>{if(e.nodeType===1){if(UX(e))return"svg";if(HX(e))return"mathml"}},Uv=e=>e.nodeType===8;function WX(e){const{mt:t,p:n,o:{patchProp:r,createText:i,nextSibling:a,parentNode:s,remove:o,insert:f,createComment:m}}=e,y=(U,B)=>{if(!B.hasChildNodes()){n(null,U,B),e4(),B._vnode=U;return}b(B.firstChild,U,null,null,null),e4(),B._vnode=U},b=(U,B,q,Q,ee,Y=!1)=>{Y=Y||!!B.dynamicChildren;const z=Uv(U)&&U.data==="[",H=()=>A(U,B,q,Q,ee,z),{type:K,ref:ne,shapeFlag:le,patchFlag:pe}=B;let ae=U.nodeType;B.el=U,pe===-2&&(Y=!1,B.dynamicChildren=null);let se=null;switch(K){case og:ae!==3?B.children===""?(f(B.el=i(""),s(U),U),se=U):se=H():(U.data!==B.children&&(Ev(),U.data=B.children),se=a(U));break;case Ea:I(U)?(se=a(U),O(B.el=U.content.firstChild,U,q)):ae!==8||z?se=H():se=a(U);break;case Jv:if(z&&(U=a(U),ae=U.nodeType),ae===1||ae===3){se=U;const ce=!B.children.length;for(let ye=0;ye<B.staticCount;ye++)ce&&(B.children+=se.nodeType===1?se.outerHTML:se.data),ye===B.staticCount-1&&(B.anchor=se),se=a(se);return z?a(se):se}else H();break;case Ct:z?se=$(U,B,q,Q,ee,Y):se=H();break;default:if(le&1)(ae!==1||B.type.toLowerCase()!==U.tagName.toLowerCase())&&!I(U)?se=H():se=T(U,B,q,Q,ee,Y);else if(le&6){B.slotScopeIds=ee;const ce=s(U);if(z?se=N(U):Uv(U)&&U.data==="teleport start"?se=N(U,U.data,"teleport end"):se=a(U),t(B,ce,null,q,Q,T5(ce),Y),(sp(B)||B.component.asyncDep)&&!B.component.subTree){let ye;z?(ye=ke(Jv),ye.anchor=se?se.previousSibling:ce.lastChild):ye=U.nodeType===3?_n(""):ke(U.nodeType===8?Ea:"div"),ye.el=U,B.component.subTree=ye}}else le&64?ae!==8?se=H():se=B.type.hydrate(U,B,q,Q,ee,Y,e,x):le&128&&(se=B.type.hydrate(U,B,q,Q,T5(s(U)),ee,Y,e,b))}return ne!=null&&Kv(ne,null,Q,B),se},T=(U,B,q,Q,ee,Y)=>{Y=Y||!!B.dynamicChildren;const{type:z,dynamicProps:H,props:K,patchFlag:ne,shapeFlag:le,dirs:pe,transition:ae}=B,se=z==="input"||z==="option",ce=!!H;if(se||ce||ne!==-1){pe&&_f(B,null,q,"created");let ye=!1;if(I(U)){ye=wN(null,ae)&&q&&q.vnode.props&&q.vnode.props.appear;const Be=U.content.firstChild;if(ye){const je=Be.getAttribute("class");je&&(Be.$cls=je),ae.beforeEnter(Be)}O(Be,U,q),B.el=U=Be}if(le&16&&!(K&&(K.innerHTML||K.textContent))){let Be=x(U.firstChild,B,U,q,Q,ee,Y);for(Be&&!CS(U,1)&&Ev();Be;){const je=Be;Be=Be.nextSibling,o(je)}}else if(le&8){let Be=B.children;Be[0]===`
3`&&(U.tagName==="PRE"||U.tagName==="TEXTAREA")&&(Be=Be.slice(1));const{textContent:je}=U;je!==Be&&je!==Be.replace(/\r\n|\r/g,`
4`)&&(CS(U,0)||Ev(),U.textContent=B.children)}if(K){if(se||ce||!Y||ne&48){const Be=U.tagName.includes("-"),je=U.namespaceURI.includes("svg")?"svg":U.namespaceURI.includes("MathML")?"mathml":void 0;for(const at in K)if(se&&(at.endsWith("value")||at==="indeterminate")||fw(at)&&!My(at)||at[0]==="."||Be&&!My(at)||H&&H.includes(at)){if(YX(U,at,K[at]))continue;r(U,at,null,K[at],je,q)}}else if(K.onClick)r(U,"onClick",null,K.onClick,void 0,q);else if(ne&4&&_d(K.style))for(const Be in K.style)K.style[Be]}let $e;($e=K&&K.onVnodeBeforeMount)&&El($e,q,B),pe&&_f(B,null,q,"beforeMount"),(($e=K&&K.onVnodeMounted)||pe||ye)&&kN(()=>{$e&&El($e,q,B),ye&&ae.enter(U),pe&&_f(B,null,q,"mounted")},Q)}return U.nextSibling},x=(U,B,q,Q,ee,Y,z)=>{z=z||!!B.dynamicChildren;const H=B.children,K=H.length;let ne=!1;for(let le=0;le<K;le++){const pe=z?H[le]:H[le]=su(H[le]),ae=pe.type===og;U?(ae&&!z&&le+1<K&&su(H[le+1]).type===og&&(f(i(U.data.slice(pe.children.length)),q,a(U)),U.data=pe.children),U=b(U,pe,Q,ee,Y,z)):ae&&!pe.children?f(pe.el=i(""),q):(ne||(ne=!0,CS(q,1)||Ev()),n(null,pe,q,null,Q,ee,T5(q),Y))}return U},$=(U,B,q,Q,ee,Y)=>{const{slotScopeIds:z}=B;z&&(ee=ee?ee.concat(z):z);const H=s(U),K=x(a(U),B,H,q,Q,ee,Y);return K&&Uv(K)&&K.data==="]"?a(B.anchor=K):(Ev(),f(B.anchor=m("]"),H,K),K)},A=(U,B,q,Q,ee,Y)=>{if(KX(U,B)||Ev(),B.el=null,Y){const K=N(U);for(;;){const ne=a(U);if(ne&&ne!==K)o(ne);else break}}const z=a(U),H=s(U);return o(U),n(null,B,H,z,q,Q,T5(H),ee),q&&(q.vnode.el=B.el,KC(q,B.el)),z},N=(U,B="[",q="]")=>{let Q=0;for(;U;)if(U=a(U),U&&Uv(U)&&(U.data===B&&Q++,U.data===q)){if(Q===0)return a(U);Q--}return U},O=(U,B,q)=>{const Q=B.parentNode;Q&&Q.replaceChild(U,B);let ee=q;for(;ee;)ee.vnode.el===B&&(ee.vnode.el=ee.subTree.el=U),ee=ee.parent},I=U=>U.nodeType===1&&U.tagName==="TEMPLATE";return[y,b]}const GX=new Set(["src","srcset","href","poster"]);function YX(e,t,n){return GX.has(t)?e.getAttribute(t)===(n==null?null:`${n}`):!1}const i4="data-allow-mismatch",ZX={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function CS(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(i4);)e=e.parentElement;return BM(e&&e.getAttribute(i4),t)}function BM(e,t){if(e==null)return!1;if(e==="")return!0;{const n=e.split(",");return t===0&&n.includes("children")?!0:n.includes(ZX[t])}}function KX(e,t){return CS(e.parentElement,1)||XX(e)||JX(t)}
vendor: 6,554 bytes, line 4
4function XX(e){return e.nodeType===1&&BM(e.getAttribute(i4),1)}function JX({props:e}){const t=e&&e[i4];return typeof t=="string"&&BM(t,1)}VC().requestIdleCallback;VC().cancelIdleCallback;function QX(e,t){if(Uv(e)&&e.data==="["){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(Uv(r))if(r.data==="]"){if(--n===0)break}else r.data==="["&&n++;r=r.nextSibling}}else t(e)}const sp=e=>!!e.type.__asyncLoader;function Wi(e){er(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:i=200,hydrate:a,timeout:s,suspensible:o=!0,onError:f}=e;let m=null,y,b=0;const T=()=>(b++,m=null,x()),x=()=>{let $;return m||($=m=t().catch(A=>{if(A=A instanceof Error?A:new Error(String(A)),f)return new Promise((N,O)=>{f(A,()=>N(T()),()=>O(A),b+1)});throw A}).then(A=>$!==m&&m?m:(A&&(A.__esModule||A[Symbol.toStringTag]==="Module")&&(A=A.default),y=A,A)))};return Fe({name:"AsyncComponentWrapper",__asyncLoader:x,__asyncHydrate($,A,N){const O=$.isConnected;let I=!1;(A.bu||(A.bu=[])).push(()=>I=!0);const U=()=>{I||!$.parentNode||O&&!$.isConnected||N()},B=a?()=>{const q=a(U,Q=>QX($,Q));q&&(A.bum||(A.bum=[])).push(q)}:U;y?B():x().then(()=>!A.isUnmounted&&B())},get __asyncResolved(){return y},setup(){const $=vs;if(RM($),y)return()=>k5(y,$);const A=q=>{m=null,B_(q,$,13,!r)};if(o&&$.suspense||Vy)return x().then(q=>()=>k5(q,$)).catch(q=>(A(q),()=>r?ke(r,{error:q}):null));const N=De(!1),O=De(),I=De(!!i);let U,B;return oa(()=>{U!=null&&clearTimeout(U),B!=null&&clearTimeout(B)}),i&&(B=setTimeout(()=>{$.isUnmounted||(I.value=!1)},i)),s!=null&&(U=setTimeout(()=>{if(!$.isUnmounted&&!N.value&&!O.value){const q=new Error(`Async component timed out after ${s}ms.`);A(q),O.value=q}},s)),x().then(()=>{$.isUnmounted||(N.value=!0,$.parent&&mw($.parent.vnode)&&$.parent.update())}).catch(q=>{if($.isUnmounted){m=null;return}A(q),O.value=q}),()=>{if(N.value&&y)return k5(y,$);if(O.value&&r)return ke(r,{error:O.value});if(n&&!I.value)return k5(n,$)}}})}function k5(e,t){const{ref:n,props:r,children:i,ce:a}=t.vnode,s=ke(e,r,i);return s.ref=n,s.ce=a,delete t.vnode.ce,s}const mw=e=>e.type.__isKeepAlive,eJ={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Ci(),r=n.ctx;if(!r.renderer)return()=>{const I=t.default&&t.default();return I&&I.length===1?I[0]:I};const i=new Map,a=new Set;let s=null;const o=n.suspense,{renderer:{p:f,m,um:y,o:{createElement:b}}}=r,T=b("div");r.activate=(I,U,B,q,Q)=>{const ee=I.component;m(I,U,B,0,o),f(ee.vnode,I,U,B,ee,o,q,I.slotScopeIds,Q),ao(()=>{ee.isDeactivated=!1,ee.a&&Yv(ee.a);const Y=I.props&&I.props.onVnodeMounted;Y&&El(Y,ee.parent,I)},o)},r.deactivate=I=>{const U=I.component;o4(U.m),o4(U.a),m(I,T,null,1,o),ao(()=>{U.da&&Yv(U.da);const B=I.props&&I.props.onVnodeUnmounted;B&&El(B,U.parent,I),U.isDeactivated=!0},o)};function x(I){QE(I),y(I,n,o,!0)}function $(I){i.forEach((U,B)=>{const q=sP(sp(U)?U.type.__asyncResolved||{}:U.type);q&&!I(q)&&A(B)})}function A(I){const U=i.get(I);U&&(!s||!pd(U,s))?x(U):s&&QE(s),i.delete(I),a.delete(I)}nn(()=>[e.include,e.exclude],([I,U])=>{I&&$(B=>B2(I,B)),U&&$(B=>!B2(U,B))},{flush:"post",deep:!0});let N=null;const O=()=>{N!=null&&(s4(n.subTree.type)?ao(()=>{const I=E5(n.subTree);I.component&&i.set(N,I)},n.subTree.suspense):i.set(N,E5(n.subTree)))};return Hn(O),gw(O),xu(()=>{i.forEach(I=>{const{subTree:U,suspense:B}=n,q=E5(U);if(I.type===q.type&&I.key===q.key){QE(q);const Q=q.component.da;Q&&ao(Q,B);return}x(I)})}),()=>{if(N=null,!t.default)return s=null;const I=t.default(),U=I[0];if(I.length>1)return s=null,I;if(!Ny(U)||!(U.shapeFlag&4)&&!(U.shapeFlag&128))return s=null,U;let B=E5(U);if(B.type===Ea)return s=null,B;const q=B.type,Q=sP(sp(B)?B.type.__asyncResolved||{}:q),{include:ee,exclude:Y,max:z}=e;if(ee&&(!Q||!B2(ee,Q))||Y&&Q&&B2(Y,Q))return B.shapeFlag&=-257,s=B,U;const H=B.key==null?q:B.key,K=i.get(H);return B.el&&(B=Cd(B),U.shapeFlag&128&&(U.ssContent=B)),N=H,K?(B.el=K.el,B.component=K.component,B.transition&&h_(B,B.transition),B.shapeFlag|=512,a.delete(H),a.add(H)):(a.add(H),z&&a.size>parseInt(z,10)&&A(a.values().next().value)),B.shapeFlag|=256,s=B,s4(U.type)?U:B}}},tJ=eJ;function B2(e,t){return Vn(e)?e.some(n=>B2(n,t)):Bi(e)?e.split(",").includes(t):UK(e)?(e.lastIndex=0,e.test(t)):!1}function Jz(e,t){eN(e,"a",t)}function Qz(e,t){eN(e,"da",t)}function eN(e,t,n=vs){const r=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(YC(t,r,n),n){let i=n.parent;for(;i&&i.parent;)mw(i.parent.vnode)&&nJ(r,t,n,i),i=i.parent}}function nJ(e,t,n,r){const i=YC(t,e,r,!0);oa(()=>{EM(r[t],i)},n)}function QE(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function E5(e){return e.shapeFlag&128?e.ssContent:e}function YC(e,t,n=vs,r=!1){if(n){const i=n[e]||(n[e]=[]),a=t.__weh||(t.__weh=(...s)=>{vp();const o=F_(n),f=gc(t,n,e,s);return o(),_p(),f});return r?i.unshift(a):i.push(a),a}}const kp=e=>(t,n=vs)=>{(!Vy||e==="sp")&&YC(e,(...r)=>t(...r),n)},FM=kp("bm"),Hn=kp("m"),tN=kp("bu"),gw=kp("u"),xu=kp("bum"),oa=kp("um"),rJ=kp("sp"),iJ=kp("rtg"),aJ=kp("rtc");function nN(e,t=vs){YC("ec",e,t)}const zM="components",oJ="directives";function Va(e,t){return NM(zM,e,!0,t)||e}const rN=Symbol.for("v-ndc");function xr(e){return Bi(e)?NM(zM,e,!1)||e:e||rN}function iN(e){return NM(oJ,e)}function NM(e,t,n=!0,r=!1){const i=bs||vs;if(i){const a=i.type;if(e===zM){const o=sP(a,!1);if(o&&(o===t||o===Yo(t)||o===zC(Yo(t))))return a}const s=v9(i[e]||a[e],t)||v9(i.appContext[e],t);return!s&&r?a:s}}function v9(e,t){return e&&(e[t]||e[Yo(t)]||e[zC(Yo(t))])}function ln(e,t,n,r){let i;const a=n,s=Vn(e);if(s||Bi(e)){const o=s&&_d(e);let f=!1,m=!1;o&&(f=!du(e),m=Sd(e),e=jC(e)),i=new Array(e.length);for(let y=0,b=e.length;y<b;y++)i[y]=t(f?m?yg(mc(e[y])):mc(e[y]):e[y],y,void 0,a)}else if(typeof e=="number"){i=new Array(e);for(let o=0;o<e;o++)i[o]=t(o+1,o,void 0,a)}else if(di(e))if(e[Symbol.iterator])i=Array.from(e,(o,f)=>t(o,f,void 0,a));else{const o=Object.keys(e);i=new Array(o.length);for(let f=0,m=o.length;f<m;f++){const y=o[f];i[f]=t(e[y],y,f,a)}}else i=[];return i}function Tg(e,t){for(let n=0;n<t.length;n++){const r=t[n];if(Vn(r))for(let i=0;i<r.length;i++)e[r[i].name]=r[i].fn;else r&&(e[r.name]=r.key?(...i)=>{const a=r.fn(...i);return a&&(a.key=r.key),a}:r.fn)}return e}function bt(e,t,n,r,i,a){if(n==null&&(n={}),bs.ce||bs.parent&&sp(bs.parent)&&bs.parent.ce){const m=a!=null&&n.key==null?qa({},n,{key:a}):n,y=Object.keys(m).length>0;return t!=="default"&&(m.name=t),Z(),Se(Ct,null,[ke("slot",m,r&&r())],y?-2:64)}
4let s=e[t];s&&s._c&&(s._d=!1);const o=lp.length;Z();let f;try{const m=s&&aN(s(n)),y=n.key||a||m&&m.key;f=Se(Ct,{key:(y&&!yu(y)?y:`_${t}`)+(!m&&r?"_fb":"")},m||(r?r():[]),m&&e._===1?64:-2)}catch(m){for(let y=lp.length;y>o;y--)XC();throw m}finally{s&&s._c&&(s._d=!0)}return f.scopeId&&(f.slotScopeIds=[f.scopeId+"-s"]),f}function aN(e){return e.some(t=>Ny(t)?!(t.type===Ea||t.type===Ct&&!aN(t.children)):!0)?e:null}function VM(e,t){const n={};for(const r in e)n[J2(r)]=e[r];return n}const eP=e=>e?$N(e)?QC(e):eP(e.parent):null,tx=qa(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=>eP(e.parent),$root:e=>eP(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>sN(e),$forceUpdate:e=>e.f||(e.f=()=>{LM(e.update)}),$nextTick:e=>e.n||(e.n=ur.bind(e.proxy)),$watch:e=>RX.bind(e)}),e6=(e,t)=>e!==Qr&&!e.__isScriptSetup&&_i(e,t),sJ={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:i,props:a,accessCache:s,type:o,appContext:f}=e;if(t[0]!=="$"){const T=s[t];if(T!==void 0)switch(T){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return a[t]}else{if(e6(r,t))return s[t]=1,r[t];if(i!==Qr&&_i(i,t))return s[t]=2,i[t];if(_i(a,t))return s[t]=3,a[t];if(n!==Qr&&_i(n,t))return s[t]=4,n[t];nP&&(s[t]=0)}}const m=tx[t];let y,b;if(m)return t==="$attrs"&&Ns(e.attrs,"get",""),m(e);if((y=o.__cssModules)&&(y=y[t]))return y;if(n!==Qr&&_i(n,t))return s[t]=4,n[t];if(b=f.config.globalProperties,_i(b,t))return b[t]},set({_:e},t,n){const{data:r,setupState:i,ctx:a}=e;return e6(i,t)?(i[t]=n,!0):r!==Qr&&_i(r,t)?(r[t]=n,!0):_i(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(a[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,props:a,type:s}},o){let f;return!!(n[o]||e!==Qr&&o[0]!=="$"&&_i(e,o)||e6(t,o)||_i(a,o)||_i(r,o)||_i(tx,o)||_i(i.config.globalProperties,o)||(f=s.__cssModules)&&f[o])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:_i(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function qM(){return lJ().attrs}function lJ(e){const t=Ci();return t.setupContext||(t.setupContext=AN(t))}function Px(e){return Vn(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function uJ(e,t){const n=Px(e);for(const r in t){if(r.startsWith("__skip"))continue;let i=n[r];i?Vn(i)||er(i)?i=n[r]={type:i,default:t[r]}:i.default=t[r]:i===null&&(i=n[r]={default:t[r]}),i&&t[`__skip_${r}`]&&(i.skipFactory=!0)}return n}function tP(e,t){return!e||!t?e||t:Vn(e)&&Vn(t)?e.concat(t):qa({},Px(e),Px(t))}function jM(e){const t=Ci(),n=Vy;let r=e();Mx(),n&&sg(!1);const i=()=>{F_(t),n&&sg(!0)},a=()=>{Ci()!==t&&t.scope.off(),Mx(),n&&sg(!1)};return PM(r)&&(r=r.catch(s=>{throw i(),Promise.resolve().then(()=>Promise.resolve().then(a)),s})),[r,()=>{i(),Promise.resolve().then(a)}]}let nP=!0;function cJ(e){const t=sN(e),n=e.proxy,r=e.ctx;nP=!1,t.beforeCreate&&_9(t.beforeCreate,e,"bc");const{data:i,computed:a,methods:s,watch:o,provide:f,inject:m,created:y,beforeMount:b,mounted:T,beforeUpdate:x,updated:$,activated:A,deactivated:N,beforeDestroy:O,beforeUnmount:I,destroyed:U,unmounted:B,render:q,renderTracked:Q,renderTriggered:ee,errorCaptured:Y,serverPrefetch:z,expose:H,inheritAttrs:K,components:ne,directives:le,filters:pe}=t;if(m&&dJ(m,r,null),s)for(const ce in s){const ye=s[ce];er(ye)&&(r[ce]=ye.bind(n))}if(i){const ce=i.call(n,n);di(ce)&&(e.data=aa(ce))}if(nP=!0,a)for(const ce in a){const ye=a[ce],$e=er(ye)?ye.bind(n,n):er(ye.get)?ye.get.bind(n,n):Ef,Be=!er(ye)&&er(ye.set)?ye.set.bind(n):Ef,je=xe({get:$e,set:Be});Object.defineProperty(r,ce,{enumerable:!0,configurable:!0,get:()=>je.value,set:at=>je.value=at})}if(o)for(const ce in o)oN(o[ce],r,n,ce);if(f){const ce=er(f)?f.call(n):f;Reflect.ownKeys(ce).forEach(ye=>{co(ye,ce[ye])})}y&&_9(y,e,"c");function se(ce,ye){Vn(ye)?ye.forEach($e=>ce($e.bind(n))):ye&&ce(ye.bind(n))}if(se(FM,b),se(Hn,T),se(tN,x),se(gw,$),se(Jz,A),se(Qz,N),se(nN,Y),se(aJ,Q),se(iJ,ee),se(xu,I),se(oa,B),se(rJ,z),Vn(H))if(H.length){const ce=e.exposed||(e.exposed={});H.forEach(ye=>{Object.defineProperty(ce,ye,{get:()=>n[ye],set:$e=>n[ye]=$e,enumerable:!0})})}else e.exposed||(e.exposed={});q&&e.render===Ef&&(e.render=q),K!=null&&(e.inheritAttrs=K),ne&&(e.components=ne),le&&(e.directives=le),z&&RM(e)}function dJ(e,t,n=Ef){Vn(e)&&(e=rP(e));for(const r in e){const i=e[r];let a;di(i)?"default"in i?a=Ai(i.from||r,i.default,!0):a=Ai(i.from||r):a=Ai(i),zn(a)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>a.value,set:s=>a.value=s}):t[r]=a}}function _9(e,t,n){gc(Vn(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function oN(e,t,n,r){let i=r.includes(".")?Uz(n,r):()=>n[r];if(Bi(e)){const a=t[e];er(a)&&nn(i,a)}else if(er(e))nn(i,e.bind(n));else if(di(e))if(Vn(e))e.forEach(a=>oN(a,t,n,r));else{const a=er(e.handler)?e.handler.bind(n):t[e.handler];er(a)&&nn(i,a,e)}}function sN(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:s}}=e.appContext,o=a.get(t);let f;return o?f=o:!i.length&&!n&&!r?f=t:(f={}
vendor: 18,822 bytes, line 4
4,i.length&&i.forEach(m=>a4(f,m,s,!0)),a4(f,t,s)),di(t)&&a.set(t,f),f}function a4(e,t,n,r=!1){const{mixins:i,extends:a}=t;a&&a4(e,a,n,!0),i&&i.forEach(s=>a4(e,s,n,!0));for(const s in t)if(!(r&&s==="expose")){const o=fJ[s]||n&&n[s];e[s]=o?o(e[s],t[s]):t[s]}return e}const fJ={data:b9,props:x9,emits:x9,methods:F2,computed:F2,beforeCreate:rl,created:rl,beforeMount:rl,mounted:rl,beforeUpdate:rl,updated:rl,beforeDestroy:rl,beforeUnmount:rl,destroyed:rl,unmounted:rl,activated:rl,deactivated:rl,errorCaptured:rl,serverPrefetch:rl,components:F2,directives:F2,watch:pJ,provide:b9,inject:hJ};function b9(e,t){return t?e?function(){return qa(er(e)?e.call(this,this):e,er(t)?t.call(this,this):t)}:t:e}function hJ(e,t){return F2(rP(e),rP(t))}function rP(e){if(Vn(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function rl(e,t){return e?[...new Set([].concat(e,t))]:t}function F2(e,t){return e?qa(Object.create(null),e,t):t}function x9(e,t){return e?Vn(e)&&Vn(t)?[...new Set([...e,...t])]:qa(Object.create(null),Px(e),Px(t??{})):t}function pJ(e,t){if(!e)return t;if(!t)return e;const n=qa(Object.create(null),e);for(const r in t)n[r]=rl(e[r],t[r]);return n}function lN(){return{app:null,config:{isNativeTag:pz,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let mJ=0;function gJ(e,t){return function(r,i=null){er(r)||(r=qa({},r)),i!=null&&!di(i)&&(i=null);const a=lN(),s=new WeakSet,o=[];let f=!1;const m=a.app={_uid:mJ++,_component:r,_props:i,_container:null,_context:a,_instance:null,version:YJ,get config(){return a.config},set config(y){},use(y,...b){return s.has(y)||(y&&er(y.install)?(s.add(y),y.install(m,...b)):er(y)&&(s.add(y),y(m,...b))),m},mixin(y){return a.mixins.includes(y)||a.mixins.push(y),m},component(y,b){return b?(a.components[y]=b,m):a.components[y]},directive(y,b){return b?(a.directives[y]=b,m):a.directives[y]},mount(y,b,T){if(!f){const x=m._ceVNode||ke(r,i);return x.appContext=a,T===!0?T="svg":T===!1&&(T=void 0),b&&t?t(x,y):e(x,y,T),f=!0,m._container=y,y.__vue_app__=m,QC(x.component)}},onUnmount(y){o.push(y)},unmount(){f&&(gc(o,m._instance,16),e(null,m._container),delete m._container.__vue_app__)},provide(y,b){return a.provides[y]=b,m},runWithContext(y){const b=Iy;Iy=m;try{return y()}finally{Iy=b}}};return m}}let Iy=null;function uN(e,t,n=Qr){const r=Ci(),i=Yo(t),a=Tp(t),s=cN(e,i),o=R_((f,m)=>{let y,b=Qr,T;return OX(()=>{const x=e[i];Uo(y,x)&&(y=x,m())}),{get(){return f(),n.get?n.get(y):y},set(x){const $=n.set?n.set(x):x;if(!Uo($,y)&&!(b!==Qr&&Uo(x,b)))return;const A=r.vnode.props,N=!!(A&&(t in A||i in A||a in A)&&(`onUpdate:${t}`in A||`onUpdate:${i}`in A||`onUpdate:${a}`in A));N||(y=x,m()),r.emit(`update:${t}`,$),Uo(x,b)&&(Uo(x,$)&&!Uo($,T)||N&&b!==Qr&&!Uo($,y))&&m(),b=x,T=$}}});return o[Symbol.iterator]=()=>{let f=0;return{next(){return f<2?{value:f++?s||Qr:o,done:!1}:{done:!0}}}},o}const cN=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Yo(t)}Modifiers`]||e[`${Tp(t)}Modifiers`];function yJ(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Qr;let i=n;const a=t.startsWith("update:"),s=a&&cN(r,t.slice(7));s&&(s.trim&&(i=n.map(y=>Bi(y)?y.trim():y)),s.number&&(i=i.map(NC)));let o,f=r[o=J2(t)]||r[o=J2(Yo(t))];!f&&a&&(f=r[o=J2(Tp(t))]),f&&gc(f,e,6,i);const m=r[o+"Once"];if(m){if(!e.emitted)e.emitted={};else if(e.emitted[o])return;e.emitted[o]=!0,gc(m,e,6,i)}}const vJ=new WeakMap;function dN(e,t,n=!1){const r=n?vJ:t.emitsCache,i=r.get(e);if(i!==void 0)return i;const a=e.emits;let s={},o=!1;if(!er(e)){const f=m=>{const y=dN(m,t,!0);y&&(o=!0,qa(s,y))};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}return!a&&!o?(di(e)&&r.set(e,null),null):(Vn(a)?a.forEach(f=>s[f]=null):qa(s,a),di(e)&&r.set(e,s),s)}function ZC(e,t){return!e||!fw(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),_i(e,t[0].toLowerCase()+t.slice(1))||_i(e,Tp(t))||_i(e,t))}function t6(e){const{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[a],slots:s,attrs:o,emit:f,render:m,renderCache:y,props:b,data:T,setupState:x,ctx:$,inheritAttrs:A}=e,N=t4(e);let O,I;try{if(n.shapeFlag&4){const B=i||r,q=B;O=su(m.call(q,B,y,b,x,T,$)),I=o}else{const B=t;O=su(B.length>1?B(b,{attrs:o,slots:s,emit:f}):B(b,null)),I=t.props?o:bJ(o)}}catch(B){lp.length=0,B_(B,e,1),O=ke(Ea)}let U=O;if(I&&A!==!1){const B=Object.keys(I),{shapeFlag:q}=U;B.length&&q&7&&(a&&B.some(RC)&&(I=xJ(I,a)),U=Cd(U,I,!1,!0))}if(n.dirs&&(U=Cd(U,null,!1,!0),U.dirs=U.dirs?U.dirs.concat(n.dirs):n.dirs),n.transition){const B=GC(U.type)&&n4(U)||U;h_(B,n.transition)}return O=U,t4(N),O}function _J(e,t=!0){let n;for(let r=0;r<e.length;r++){const i=e[r];if(Ny(i)){if(i.type!==Ea||i.children==="v-if"){if(n)return;n=i}}else return}return n}const bJ=e=>{let t;for(const n in e)(n==="class"||n==="style"||fw(n))&&((t||(t={}))[n]=e[n]);return t},xJ=(e,t)=>{const n={};for(const r in e)(!RC(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function wJ(e,t,n){const{props:r,children:i,component:a}=e,{props:s,children:o,patchFlag:f}=t,m=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&f>=0){if(f&1024)return!0;if(f&16)return r?w9(r,s,m):!!s;if(f&8){const y=t.dynamicProps;for(let b=0;b<y.length;b++){const T=y[b];if(fN(s,r,T)&&!ZC(m,T))return!0}}}else return(i||o)&&(!o||!o.$stable)?!0:r===s?!1:r?s?w9(r,s,m):!0:!!s;return!1}function w9(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){const a=r[i];if(fN(t,e,a)&&!ZC(n,a))return!0}return!1}function fN(e,t,n){const r=e[n],i=t[n];return n==="style"&&di(r)&&di(i)?!wd(r,i):r!==i}function KC({vnode:e,parent:t,suspense:n},r){for(;t;){const i=t.subTree;if(i.suspense&&i.suspense.activeBranch===e&&(i.suspense.vnode.el=i.el=r,e=i),i===e)(e=t.vnode).el=r,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=r)}const hN={},pN=()=>Object.create(hN),mN=e=>Object.getPrototypeOf(e)===hN;function SJ(e,t,n,r=!1){const i={},a=pN();e.propsDefaults=Object.create(null),gN(e,t,i,a);for(const s in e.propsOptions[0])s in i||(i[s]=void 0);n?e.props=r?i:Sf(i):e.type.props?e.props=i:e.props=a,e.attrs=a}function CJ(e,t,n,r){const{props:i,attrs:a,vnode:{patchFlag:s}}=e,o=In(i),[f]=e.propsOptions;let m=!1;if((r||s>0)&&!(s&16)){if(s&8){const y=e.vnode.dynamicProps;for(let b=0;b<y.length;b++){let T=y[b];if(ZC(e.emitsOptions,T))continue;const x=t[T];if(f)if(_i(a,T))x!==a[T]&&(a[T]=x,m=!0);else{const $=Yo(T);i[$]=iP(f,o,$,x,e,!1)}else x!==a[T]&&(a[T]=x,m=!0)}}}else{gN(e,t,i,a)&&(m=!0);let y;for(const b in o)(!t||!_i(t,b)&&((y=Tp(b))===b||!_i(t,y)))&&(f?n&&(n[b]!==void 0||n[y]!==void 0)&&(i[b]=iP(f,o,b,void 0,e,!0)):delete i[b]);if(a!==o)for(const b in a)(!t||!_i(t,b))&&(delete a[b],m=!0)}m&&Zh(e.attrs,"set","")}function gN(e,t,n,r){const[i,a]=e.propsOptions;let s=!1,o;if(t)for(let f in t){if(My(f))continue;const m=t[f];let y;i&&_i(i,y=Yo(f))?!a||!a.includes(y)?n[y]=m:(o||(o={}))[y]=m:ZC(e.emitsOptions,f)||(!(f in r)||m!==r[f])&&(r[f]=m,s=!0)}if(a){const f=In(n),m=o||Qr;for(let y=0;y<a.length;y++){const b=a[y];n[b]=iP(i,f,b,m[b],e,!_i(m,b))}}return s}function iP(e,t,n,r,i,a){const s=e[n];if(s!=null){const o=_i(s,"default");if(o&&r===void 0){const f=s.default;if(s.type!==Function&&!s.skipFactory&&er(f)){const{propsDefaults:m}=i;if(n in m)r=m[n];else{const y=F_(i);r=m[n]=f.call(null,t),y()}}else r=f;i.ce&&i.ce._setProp(n,r)}s[0]&&(a&&!o?r=!1:s[1]&&(r===""||r===Tp(n))&&(r=!0))}return r}const TJ=new WeakMap;function yN(e,t,n=!1){const r=n?TJ:t.propsCache,i=r.get(e);if(i)return i;const a=e.props,s={},o=[];let f=!1;if(!er(e)){const y=b=>{f=!0;const[T,x]=yN(b,t,!0);qa(s,T),x&&o.push(...x)};!n&&t.mixins.length&&t.mixins.forEach(y),e.extends&&y(e.extends),e.mixins&&e.mixins.forEach(y)}if(!a&&!f)return di(e)&&r.set(e,by),by;if(Vn(a))for(let y=0;y<a.length;y++){const b=Yo(a[y]);S9(b)&&(s[b]=Qr)}else if(a)for(const y in a){const b=Yo(y);if(S9(b)){const T=a[y],x=s[b]=Vn(T)||er(T)?{type:T}:qa({},T),$=x.type;let A=!1,N=!0;if(Vn($))for(let O=0;O<$.length;++O){const I=$[O],U=er(I)&&I.name;if(U==="Boolean"){A=!0;break}else U==="String"&&(N=!1)}else A=er($)&&$.name==="Boolean";x[0]=A,x[1]=N,(A||_i(x,"default"))&&o.push(b)}}const m=[s,o];return di(e)&&r.set(e,m),m}function S9(e){return e[0]!=="$"&&!My(e)}const UM=e=>e==="_"||e==="_ctx"||e==="$stable",HM=e=>Vn(e)?e.map(su):[su(e)],kJ=(e,t,n)=>{if(t._n)return t;const r=be((...i)=>HM(t(...i)),n);return r._c=!1,r},vN=(e,t,n)=>{const r=e._ctx;for(const i in e){if(UM(i))continue;const a=e[i];if(er(a))t[i]=kJ(i,a,r);else if(a!=null){const s=HM(a);t[i]=()=>s}}},_N=(e,t)=>{const n=HM(t);e.slots.default=()=>n},bN=(e,t,n)=>{for(const r in t)(n||!UM(r))&&(e[r]=t[r])},EJ=(e,t,n)=>{const r=e.slots=pN();if(e.vnode.shapeFlag&32){const i=t._;i?(bN(r,t,n),n&&gz(r,"_",i,!0)):vN(t,r)}else t&&_N(e,t)},PJ=(e,t,n)=>{const{vnode:r,slots:i}=e;let a=!0,s=Qr;if(r.shapeFlag&32){const o=t._;o?n&&o===1?a=!1:bN(i,t,n):(a=!t.$stable,vN(t,i)),s=t}else t&&(_N(e,t),s={default:1});if(a)for(const o in i)!UM(o)&&s[o]==null&&delete i[o]},ao=kN;function $J(e){return xN(e)}function MJ(e){return xN(e,WX)}function xN(e,t){const n=VC();n.__VUE__=!0;const{insert:r,remove:i,patchProp:a,createElement:s,createText:o,createComment:f,setText:m,setElementText:y,parentNode:b,nextSibling:T,setScopeId:x=Ef,insertStaticContent:$}=e,A=(Ee,Ye,it,yt=null,St=null,Ie=null,qe=void 0,pt=null,Tt=!!Ye.dynamicChildren)=>{if(Ee===Ye)return;Ee&&!pd(Ee,Ye)&&(yt=ct(Ee),at(Ee,St,Ie,!0),Ee=null),Ye.patchFlag===-2&&(Tt=!1,Ye.dynamicChildren=null),Ye.dynamicChildren&&Ee&&Ee.dynamicChildren&&Ee.dynamicChildren.hasOnce&&(Ye.dynamicChildren===by&&(Ye.dynamicChildren=[]),Ye.dynamicChildren.hasOnce=!0);const{type:It,ref:sn,shapeFlag:Yt}=Ye;switch(It){case og:N(Ee,Ye,it,yt);break;case Ea:O(Ee,Ye,it,yt);break;case Jv:Ee==null&&I(Ye,it,yt,qe);break;case Ct:ne(Ee,Ye,it,yt,St,Ie,qe,pt,Tt);break;default:Yt&1?q(Ee,Ye,it,yt,St,Ie,qe,pt,Tt):Yt&6?le(Ee,Ye,it,yt,St,Ie,qe,pt,Tt):(Yt&64||Yt&128)&&It.process(Ee,Ye,it,yt,St,Ie,qe,pt,Tt,At)}sn!=null&&St?Kv(sn,Ee&&Ee.ref,Ie,Ye||Ee,!Ye):sn==null&&Ee&&Ee.ref!=null&&Kv(Ee.ref,null,Ie,Ee,!0)},N=(Ee,Ye,it,yt)=>{if(Ee==null)r(Ye.el=o(Ye.children),it,yt);else{const St=Ye.el=Ee.el;Ye.children!==Ee.children&&m(St,Ye.children)}},O=(Ee,Ye,it,yt)=>{Ee==null?r(Ye.el=f(Ye.children||""),it,yt):Ye.el=Ee.el},I=(Ee,Ye,it,yt)=>{[Ee.el,Ee.anchor]=$(Ee.children,Ye,it,yt,Ee.el,Ee.anchor)},U=({el:Ee,anchor:Ye},it,yt)=>{let St;for(;Ee&&Ee!==Ye;)St=T(Ee),r(Ee,it,yt),Ee=St;r(Ye,it,yt)},B=({el:Ee,anchor:Ye})=>{let it;for(;Ee&&Ee!==Ye;)it=T(Ee),i(Ee),Ee=it;i(Ye)},q=(Ee,Ye,it,yt,St,Ie,qe,pt,Tt)=>{if(Ye.type==="svg"?qe="svg":Ye.type==="math"&&(qe="mathml"),Ee==null)Q(Ye,it,yt,St,Ie,qe,pt,Tt);else{const It=Ee.el&&Ee.el._isVueCE?Ee.el:null;try{It&&It._beginPatch(),z(Ee,Ye,St,Ie,qe,pt,Tt)}finally{It&&It._endPatch()}}},Q=(Ee,Ye,it,yt,St,Ie,qe,pt)=>{let Tt,It;const{props:sn,shapeFlag:Yt,transition:_t,dirs:vt}=Ee;if(Tt=Ee.el=s(Ee.type,Ie,sn&&sn.is,sn),Yt&8?y(Tt,Ee.children):Yt&16&&Y(Ee.children,Tt,null,yt,St,n6(Ee,Ie),qe,pt),vt&&_f(Ee,null,yt,"created"),ee(Tt,Ee,Ee.scopeId,qe,yt),sn){for(const an in sn)an!=="value"&&!My(an)&&a(Tt,an,null,sn[an],Ie,yt);"value"in sn&&a(Tt,"value",null,sn.value,Ie),(It=sn.onVnodeBeforeMount)&&El(It,yt,Ee)}vt&&_f(Ee,null,yt,"beforeMount");const Jt=wN(St,_t);Jt&&_t.beforeEnter(Tt),r(Tt,Ye,it),((It=sn&&sn.onVnodeMounted)||Jt||vt)&&ao(()=>{It&&El(It,yt,Ee),Jt&&_t.enter(Tt),vt&&_f(Ee,null,yt,"mounted")},St)},ee=(Ee,Ye,it,yt,St)=>{if(it&&x(Ee,it),yt)for(let Ie=0;Ie<yt.length;Ie++)x(Ee,yt[Ie]);if(St){let Ie=St.subTree;if(Ye===Ie||s4(Ie.type)&&(Ie.ssContent===Ye||Ie.ssFallback===Ye)){const qe=St.vnode;ee(Ee,qe,qe.scopeId,qe.slotScopeIds,St.parent)}}},Y=(Ee,Ye,it,yt,St,Ie,qe,pt,Tt=0)=>{for(let It=Tt;It<Ee.length;It++){const sn=Ee[It]=pt?Wh(Ee[It]):su(Ee[It]);A(null,sn,Ye,it,yt,St,Ie,qe,pt)}},z=(Ee,Ye,it,yt,St,Ie,qe)=>{const pt=Ye.el=Ee.el;let{patchFlag:Tt,dynamicChildren:It,dirs:sn}=Ye;Tt|=Ee.patchFlag&16;const Yt=Ee.props||Qr,_t=Ye.props||Qr;let vt;if(it&&ty(it,!1),(vt=_t.onVnodeBeforeUpdate)&&El(vt,it,Ye,Ee),sn&&_f(Ye,Ee,it,"beforeUpdate"),it&&ty(it,!0),It&&(!Ee.dynamicChildren||Ee.dynamicChildren.length!==It.length)&&(Tt=0,qe=!1,It=null),(Yt.innerHTML&&_t.innerHTML==null||Yt.textContent&&_t.textContent==null)&&y(pt,""),It?H(Ee.dynamicChildren,It,pt,it,yt,n6(Ye,St),Ie):qe||ye(Ee,Ye,pt,null,it,yt,n6(Ye,St),Ie,!1),Tt>0){if(Tt&16)K(pt,Yt,_t,it,St);else if(Tt&2&&Yt.class!==_t.class&&a(pt,"class",null,_t.class,St),Tt&4&&a(pt,"style",Yt.style,_t.style,St),Tt&8){const Jt=Ye.dynamicProps;for(let an=0;an<Jt.length;an++){const Sn=Jt[an],On=Yt[Sn],ft=_t[Sn];(ft!==On||Sn==="value")&&a(pt,Sn,On,ft,St,it)}}Tt&1&&Ee.children!==Ye.children&&y(pt,Ye.children)}else!qe&&It==null&&K(pt,Yt,_t,it,St);((vt=_t.onVnodeUpdated)||sn)&&ao(()=>{vt&&El(vt,it,Ye,Ee),sn&&_f(Ye,Ee,it,"updated")},yt)},H=(Ee,Ye,it,yt,St,Ie,qe)=>{for(let pt=0;pt<Ye.length;pt++){const Tt=Ee[pt],It=Ye[pt],sn=Tt.el&&(Tt.type===Ct||!pd(Tt,It)||Tt.shapeFlag&198)?b(Tt.el):it;A(Tt,It,sn,null,yt,St,Ie,qe,!0)}},K=(Ee,Ye,it,yt,St)=>{if(Ye!==it){if(Ye!==Qr)for(const Ie in Ye)!My(Ie)&&!(Ie in it)&&a(Ee,Ie,Ye[Ie],null,St,yt);for(const Ie in it){if(My(Ie))continue;const qe=it[Ie],pt=Ye[Ie];qe!==pt&&Ie!=="value"&&a(Ee,Ie,pt,qe,St,yt)}"value"in it&&a(Ee,"value",Ye.value,it.value,St)}},ne=(Ee,Ye,it,yt,St,Ie,qe,pt,Tt)=>{const It=Ye.el=Ee?Ee.el:o(""),sn=Ye.anchor=Ee?Ee.anchor:o("");let{patchFlag:Yt,dynamicChildren:_t,slotScopeIds:vt}=Ye;vt&&(pt=pt?pt.concat(vt):vt),Ee==null?(r(It,it,yt),r(sn,it,yt),Y(Ye.children||[],it,sn,St,Ie,qe,pt,Tt)):Yt>0&&Yt&64&&_t&&Ee.dynamicChildren&&Ee.dynamicChildren.length===_t.length?(H(Ee.dynamicChildren,_t,it,St,Ie,qe,pt),(Ye.key!=null||St&&Ye===St.subTree)&&WM(Ee,Ye,!0)):ye(Ee,Ye,it,sn,St,Ie,qe,pt,Tt)},le=(Ee,Ye,it,yt,St,Ie,qe,pt,Tt)=>{Ye.slotScopeIds=pt,Ee==null?Ye.shapeFlag&512?St.ctx.activate(Ye,it,yt,qe,Tt):pe(Ye,it,yt,St,Ie,qe,Tt):ae(Ee,Ye,Tt)},pe=(Ee,Ye,it,yt,St,Ie,qe)=>{const pt=Ee.component=VJ(Ee,yt,St);if(mw(Ee)&&(pt.ctx.renderer=At),qJ(pt,!1,qe),pt.asyncDep){if(St&&St.registerDep(pt,se,qe),!Ee.el){const Tt=pt.subTree=ke(Ea);O(null,Tt,Ye,it),Ee.placeholder=Tt.el}}else se(pt,Ee,Ye,it,St,Ie,qe)},ae=(Ee,Ye,it)=>{const yt=Ye.component=Ee.component;if(wJ(Ee,Ye,it))if(yt.asyncDep&&!yt.asyncResolved){Ye.el=Ee.el,ce(yt,Ye,it);return}else yt.next=Ye,yt.update();else Ye.el=Ee.el,yt.vnode=Ye},se=(Ee,Ye,it,yt,St,Ie,qe)=>{const pt=()=>{if(Ee.isMounted){let{next:Yt,bu:_t,u:vt,parent:Jt,vnode:an}=Ee;{const rt=SN(Ee);if(rt){Yt&&(Yt.el=an.el,ce(Ee,Yt,qe)),rt.asyncDep.then(()=>{ao(()=>{Ee.isUnmounted||It()},St)});return}}let Sn=Yt,On;ty(Ee,!1),Yt?(Yt.el=an.el,ce(Ee,Yt,qe)):Yt=an,_t&&Yv(_t),(On=Yt.props&&Yt.props.onVnodeBeforeUpdate)&&El(On,Jt,Yt,an),ty(Ee,!0);const ft=t6(Ee),Ge=Ee.subTree;Ee.subTree=ft,A(Ge,ft,b(Ge.el),ct(Ge),Ee,St,Ie),Yt.el=ft.el,Sn===null&&KC(Ee,ft.el),vt&&ao(vt,St),(On=Yt.props&&Yt.props.onVnodeUpdated)&&ao(()=>El(On,Jt,Yt,an),St)}else{let Yt;const{el:_t,props:vt}=Ye,{bm:Jt,m:an,parent:Sn,root:On,type:ft}=Ee,Ge=sp(Ye);if(ty(Ee,!1),Jt&&Yv(Jt),!Ge&&(Yt=vt&&vt.onVnodeBeforeMount)&&El(Yt,Sn,Ye),ty(Ee,!0),_t&&Ot){const rt=()=>{Ee.subTree=t6(Ee),Ot(_t,Ee.subTree,Ee,St,null)};Ge&&ft.__asyncHydrate?ft.__asyncHydrate(_t,Ee,rt):rt()}else{On.ce&&On.ce._hasShadowRoot()&&On.ce._injectChildStyle(ft,Ee.parent?Ee.parent.type:void 0);const rt=Ee.subTree=t6(Ee);A(null,rt,it,yt,Ee,St,Ie),Ye.el=rt.el}if(an&&ao(an,St),!Ge&&(Yt=vt&&vt.onVnodeMounted)){const rt=Ye;ao(()=>El(Yt,Sn,rt),St)}(Ye.shapeFlag&256||Sn&&sp(Sn.vnode)&&Sn.vnode.shapeFlag&256)&&Ee.a&&ao(Ee.a,St),Ee.isMounted=!0,Ye=it=yt=null}};Ee.scope.on();const Tt=Ee.effect=new KS(pt);Ee.scope.off();const It=Ee.update=Tt.run.bind(Tt),sn=Ee.job=Tt.runIfDirty.bind(Tt);sn.i=Ee,sn.id=Ee.uid,Tt.scheduler=()=>LM(sn),ty(Ee,!0),It()},ce=(Ee,Ye,it)=>{Ye.component=Ee;const yt=Ee.vnode.props;Ee.vnode=Ye,Ee.next=null,CJ(Ee,Ye.props,yt,it),PJ(Ee,Ye.children,it),vp(),f9(Ee),_p()},ye=(Ee,Ye,it,yt,St,Ie,qe,pt,Tt=!1)=>{const It=Ee&&Ee.children,sn=Ee?Ee.shapeFlag:0,Yt=Ye.children,{patchFlag:_t,shapeFlag:vt}=Ye;if(_t>0){if(_t&128){Be(It,Yt,it,yt,St,Ie,qe,pt,Tt);return}else if(_t&256){$e(It,Yt,it,yt,St,Ie,qe,pt,Tt);return}}vt&8?(sn&16&&Ve(It,St,Ie),Yt!==It&&y(it,Yt)):sn&16?vt&16?Be(It,Yt,it,yt,St,Ie,qe,pt,Tt):Ve(It,St,Ie,!0):(sn&8&&y(it,""),vt&16&&Y(Yt,it,yt,St,Ie,qe,pt,Tt))},$e=(Ee,Ye,it,yt,St,Ie,qe,pt,Tt)=>{Ee=Ee||by,Ye=Ye||by;const It=Ee.length,sn=Ye.length,Yt=Math.min(It,sn);let _t;for(_t=0;_t<Yt;_t++){const vt=Ye[_t]=Tt?Wh(Ye[_t]):su(Ye[_t]);A(Ee[_t],vt,it,null,St,Ie,qe,pt,Tt)}It>sn?Ve(Ee,St,Ie,!0,!1,Yt):Y(Ye,it,yt,St,Ie,qe,pt,Tt,Yt)},Be=(Ee,Ye,it,yt,St,Ie,qe,pt,Tt)=>{let It=0;const sn=Ye.length;let Yt=Ee.length-1,_t=sn-1;for(;It<=Yt&&It<=_t;){const vt=Ee[It],Jt=Ye[It]=Tt?Wh(Ye[It]):su(Ye[It]);if(pd(vt,Jt))A(vt,Jt,it,null,St,Ie,qe,pt,Tt);else break;It++}for(;It<=Yt&&It<=_t;){const vt=Ee[Yt],Jt=Ye[_t]=Tt?Wh(Ye[_t]):su(Ye[_t]);if(pd(vt,Jt))A(vt,Jt,it,null,St,Ie,qe,pt,Tt);else break;Yt--,_t--}if(It>Yt){if(It<=_t){const vt=_t+1,Jt=vt<sn?Ye[vt].el:yt;for(;It<=_t;)A(null,Ye[It]=Tt?Wh(Ye[It]):su(Ye[It]),it,Jt,St,Ie,qe,pt,Tt),It++}}else if(It>_t)for(;It<=Yt;)at(Ee[It],St,Ie,!0),It++;else{const vt=It,Jt=It,an=new Map;for(It=Jt;It<=_t;It++){const Zt=Ye[It]=Tt?Wh(Ye[It]):su(Ye[It]);Zt.key!=null&&an.set(Zt.key,It)}let Sn,On=0;const ft=_t-Jt+1;let Ge=!1,rt=0;const $t=new Array(ft);for(It=0;It<ft;It++)$t[It]=0;for(It=vt;It<=Yt;It++){const Zt=Ee[It];if(On>=ft){at(Zt,St,Ie,!0);continue}let rn;if(Zt.key!=null)rn=an.get(Zt.key);else for(Sn=Jt;Sn<=_t;Sn++)if($t[Sn-Jt]===0&&pd(Zt,Ye[Sn])){rn=Sn;break}rn===void 0?at(Zt,St,Ie,!0):($t[rn-Jt]=It+1,rn>=rt?rt=rn:Ge=!0,A(Zt,Ye[rn],it,null,St,Ie,qe,pt,Tt),On++)}const Gt=Ge?AJ($t):by;for(Sn=Gt.length-1,It=ft-1;It>=0;It--){const Zt=Jt+It,rn=Ye[Zt],Dn=Ye[Zt+1],tr=Zt+1<sn?Dn.el||CN(Dn):yt;$t[It]===0?A(null,rn,it,tr,St,Ie,qe,pt,Tt):Ge&&(Sn<0||It!==Gt[Sn]?je(rn,it,tr,2):Sn--)}}},je=(Ee,Ye,it,yt,St=null)=>{const{el:Ie,type:qe,transition:pt,children:Tt,shapeFlag:It}=Ee;if(It&6){je(Ee.component.subTree,Ye,it,yt);return}if(It&128){Ee.suspense.move(Ye,it,yt);return}if(It&64){qe.move(Ee,Ye,it,At);return}if(qe===Ct){r(Ie,Ye,it);for(let Yt=0;Yt<Tt.length;Yt++)je(Tt[Yt],Ye,it,yt);r(Ee.anchor,Ye,it);return}if(qe===Jv){U(Ee,Ye,it);return}if(yt!==2&&It&1&&pt)if(yt===0)pt.persisted&&!Ie[ic]?r(Ie,Ye,it):(pt.beforeEnter(Ie),r(Ie,Ye,it),ao(()=>pt.enter(Ie),St));else{const{leave:Yt,delayLeave:_t,afterLeave:vt}=pt,Jt=()=>{Ee.ctx.isUnmounted?i(Ie):r(Ie,Ye,it)},an=()=>{const Sn=Ie._isLeaving||!!Ie[ic];Ie._isLeaving&&Ie[ic](!0),pt.persisted&&!Sn?Jt():Yt(Ie,()=>{Jt(),vt&&vt()})};_t?_t(Ie,Jt,an):an()}else r(Ie,Ye,it)},at=(Ee,Ye,it,yt=!1,St=!1)=>{const{type:Ie,props:qe,ref:pt,children:Tt,dynamicChildren:It,shapeFlag:sn,patchFlag:Yt,dirs:_t,cac
4heIndex:vt,memo:Jt}=Ee;if((Yt===-2||It&&It.hasOnce)&&(St=!1),pt!=null&&(vp(),Kv(pt,null,it,Ee,!0),_p()),vt!=null&&(!Ee.ctx||Ee.ctx===Ye)&&(Ye.renderCache[vt]=void 0),sn&256){Ye.ctx.deactivate(Ee);return}const an=sn&1&&_t,Sn=!sp(Ee);let On;if(Sn&&(On=qe&&qe.onVnodeBeforeUnmount)&&El(On,Ye,Ee),sn&6)nt(Ee.component,it,yt);else{if(sn&128){Ee.suspense.unmount(it,yt);return}an&&_f(Ee,null,Ye,"beforeUnmount"),sn&64?Ee.type.remove(Ee,Ye,it,At,yt):It&&!It.hasOnce&&(Ie!==Ct||Yt>0&&Yt&64)?Ve(It,Ye,it,!1,!0):(Ie===Ct&&Yt&384||!St&&sn&16)&&Ve(Tt,Ye,it),yt&&Pt(Ee)}const ft=Jt!=null&&vt==null;(Sn&&(On=qe&&qe.onVnodeUnmounted)||an||ft)&&ao(()=>{On&&El(On,Ye,Ee),an&&_f(Ee,null,Ye,"unmounted"),ft&&(Ee.el=null)},it)},Pt=Ee=>{const{type:Ye,el:it,anchor:yt,transition:St}=Ee;if(Ye===Ct){Qe(it,yt);return}if(Ye===Jv){B(Ee),St&&!St.persisted&&St.afterLeave&&St.afterLeave();return}const Ie=()=>{i(it),St&&!St.persisted&&St.afterLeave&&St.afterLeave()};if(Ee.shapeFlag&1&&St&&!St.persisted){const{leave:qe,delayLeave:pt}=St,Tt=()=>qe(it,Ie);pt?pt(Ee.el,Ie,Tt):Tt()}else Ie()},Qe=(Ee,Ye)=>{let it;for(;Ee!==Ye;)it=T(Ee),i(Ee),Ee=it;i(Ye)},nt=(Ee,Ye,it)=>{const{bum:yt,scope:St,job:Ie,subTree:qe,um:pt,m:Tt,a:It}=Ee;o4(Tt),o4(It),yt&&Yv(yt),St.stop(),Ie?(Ie.flags|=8,at(qe,Ee,Ye,it)):Ee.vnode.el&&qe&&(qe.transition=Ee.vnode.transition,at(qe,Ee,Ye,it)),pt&&ao(pt,Ye),ao(()=>{Ee.isUnmounted=!0},Ye)},Ve=(Ee,Ye,it,yt=!1,St=!1,Ie=0)=>{for(let qe=Ie;qe<Ee.length;qe++)at(Ee[qe],Ye,it,yt,St)},ct=Ee=>{if(Ee.shapeFlag&6)return ct(Ee.component.subTree);if(Ee.shapeFlag&128)return Ee.suspense.next();const Ye=T(Ee.anchor||Ee.el),it=Ye&&Ye[Hz];return it?T(it):Ye};let zt=!1;const ut=(Ee,Ye,it)=>{let yt;Ee==null?Ye._vnode&&(at(Ye._vnode,null,null,!0),yt=Ye._vnode.component):A(Ye._vnode||null,Ee,Ye,null,null,null,it),Ye._vnode=Ee,zt||(zt=!0,f9(yt),e4(),zt=!1)},At={p:A,um:at,m:je,r:Pt,mt:pe,mc:Y,pc:ye,pbc:H,n:ct,o:e};let Dt,Ot;return t&&([Dt,Ot]=t(At)),{render:ut,hydrate:Dt,createApp:gJ(ut,Dt)}}function n6({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 ty({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function wN(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function WM(e,t,n=!1){const r=e.children,i=t.children;if(Vn(r)&&Vn(i))for(let a=0;a<r.length;a++){const s=r[a];let o=i[a];o.shapeFlag&1&&!o.dynamicChildren&&((o.patchFlag<=0||o.patchFlag===32)&&(o=i[a]=Wh(i[a]),o.el=s.el),!n&&o.patchFlag!==-2&&WM(s,o)),o.type===og&&(o.patchFlag===-1&&(o=i[a]=Wh(o)),o.el=s.el),o.type===Ea&&!o.el&&(o.el=s.el)}}function AJ(e){const t=e.slice(),n=[0];let r,i,a,s,o;const f=e.length;for(r=0;r<f;r++){const m=e[r];if(m!==0){if(i=n[n.length-1],e[i]<m){t[r]=i,n.push(r);continue}for(a=0,s=n.length-1;a<s;)o=a+s>>1,e[n[o]]<m?a=o+1:s=o;m<e[n[a]]&&(a>0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,s=n[a-1];a-- >0;)n[a]=s,s=t[s];return n}function SN(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:SN(t)}function o4(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function CN(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?CN(t.subTree):null}const s4=e=>e.__isSuspense;let aP=0;const IJ={name:"Suspense",__isSuspense:!0,process(e,t,n,r,i,a,s,o,f,m){if(e==null)DJ(t,n,r,i,a,s,o,f,m);else{if(a&&a.deps>0&&!e.suspense.isInFallback&&!a.isHydrating){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}LJ(e,t,n,r,i,s,o,f,m)}},hydrate:OJ,normalize:RJ},GM=IJ;function $x(e,t){const n=e.props&&e.props[t];er(n)&&n()}function DJ(e,t,n,r,i,a,s,o,f){const{p:m,o:{createElement:y}}=f,b=y("div"),T=e.suspense=TN(e,i,r,t,b,n,a,s,o,f);m(null,T.pendingBranch=e.ssContent,b,null,r,T,a,s),T.deps>0?($x(e,"onPending"),$x(e,"onFallback"),m(null,e.ssFallback,t,n,r,null,a,s),Xv(T,e.ssFallback)):T.resolve(!1,!0)}function LJ(e,t,n,r,i,a,s,o,{p:f,um:m,o:{createElement:y}}){const b=t.suspense=e.suspense;b.vnode=t,t.el=e.el;const T=t.ssContent,x=t.ssFallback,{activeBranch:$,pendingBranch:A,isInFallback:N,isHydrating:O}=b;if(A)b.pendingBranch=T,pd(A,T)?(b.deps++,f(A,T,O?n:b.hiddenContainer,null,i,b,a,s,o),b.deps--,b.deps<=0?b.resolve():N&&!O&&!b.isFallbackMountPending&&(f($,x,n,r,i,null,a,s,o),Xv(b,x))):(b.pendingId=aP++,O?(b.isHydrating=!1,b.activeBranch=A):m(A,i,b),b.deps=0,b.effects.length=0,b.hiddenContainer=y("div"),N?(f(null,T,b.hiddenContainer,null,i,b,a,s,o),b.deps<=0?b.resolve():b.isFallbackMountPending||(f($,x,n,r,i,null,a,s,o),Xv(b,x))):$&&pd($,T)?(f($,T,n,r,i,b,a,s,o),b.resolve(!0)):(f(null,T,b.hiddenContainer,null,i,b,a,s,o),b.deps<=0&&b.resolve()));else if($&&pd($,T))f($,T,n,r,i,b,a,s,o),Xv(b,T);else if($x(t,"onPending"),b.pendingBranch=T,T.shapeFlag&512?b.pendingId=T.component.suspenseId:b.pendingId=aP++,f(null,T,b.hiddenContainer,null,i,b,a,s,o),b.deps<=0)b.resolve();else{const{timeout:I,pendingId:U}=b;I>
40?setTimeout(()=>{b.pendingId===U&&b.fallback(x)},I):I===0&&b.fallback(x)}}function TN(e,t,n,r,i,a,s,o,f,m,y=!1){const{p:b,m:T,um:x,n:$,o:{parentNode:A,remove:N}}=m;let O;const I=BJ(e);I&&t&&t.pendingBranch&&(O=t.pendingId,t.deps++);const U=e.props?yz(e.props.timeout):void 0,B=a,q={vnode:e,parent:t,parentComponent:n,namespace:s,container:r,hiddenContainer:i,deps:0,pendingId:aP++,timeout:typeof U=="number"?U:-1,activeBranch:null,isFallbackMountPending:!1,pendingBranch:null,isInFallback:!y,isHydrating:y,isUnmounted:!1,effects:[],resolve(Q=!1,ee=!1){const{vnode:Y,activeBranch:z,pendingBranch:H,pendingId:K,effects:ne,parentComponent:le,container:pe,isInFallback:ae}=q;let se=!1;if(q.isHydrating)q.isHydrating=!1;else if(!Q){se=z&&H.transition&&H.transition.mode==="out-in";let $e=!1;se&&(z.transition.afterLeave=()=>{K===q.pendingId&&(T(H,pe,a===B&&!$e?$(z):a,0),kx(ne),ae&&Y.ssFallback&&(Y.ssFallback.el=null))}),z&&!q.isFallbackMountPending&&(A(z.el)===pe&&(a=$(z),$e=!0),x(z,le,q,!0),!se&&ae&&Y.ssFallback&&ao(()=>Y.ssFallback.el=null,q)),se||T(H,pe,a,0)}q.isFallbackMountPending=!1,Xv(q,H),q.pendingBranch=null,q.isInFallback=!1;let ce=q.parent,ye=!1;for(;ce;){if(ce.pendingBranch){for(let $e=0;$e<ne.length;$e++)ce.effects.push(ne[$e]);ye=!0;break}ce=ce.parent}!ye&&!se&&kx(ne),q.effects=[],I&&t&&t.pendingBranch&&O===t.pendingId&&(O=void 0,t.deps--,t.deps===0&&!ee&&t.resolve()),$x(Y,"onResolve")},fallback(Q){if(!q.pendingBranch)return;const{vnode:ee,activeBranch:Y,parentComponent:z,container:H,namespace:K}=q;$x(ee,"onFallback");const ne=$(Y),le=()=>{if(q.isFallbackMountPending=!1,!q.isInFallback)return;const ae=q.vnode.ssFallback;b(null,ae,H,ne,z,null,K,o,f),Xv(q,ae)},pe=Q.transition&&Q.transition.mode==="out-in";pe&&(q.isFallbackMountPending=!0,Y.transition.afterLeave=le),q.isInFallback=!0,x(Y,z,null,!0),pe||le()},move(Q,ee,Y){q.activeBranch&&T(q.activeBranch,Q,ee,Y),q.container=Q},next(){return q.activeBranch&&$(q.activeBranch)},registerDep(Q,ee,Y){const z=!!q.pendingBranch;z&&q.deps++;const H=Q.vnode.el;Q.asyncDep.catch(K=>{B_(K,Q,0)}).then(K=>{if(Q.isUnmounted||q.isUnmounted||q.pendingId!==Q.suspenseId)return;if(Mx(),H&&!Q.scope.active){z&&--q.deps===0&&q.resolve();return}Q.asyncResolved=!0;const{vnode:ne}=Q;oP(Q,K),H&&(ne.el=H);const le=!H&&Q.subTree.el;ee(Q,ne,A(H||Q.subTree.el),H?null:$(Q.subTree),q,s,Y),le&&(ne.placeholder=null,N(le)),KC(Q,ne.el),z&&--q.deps===0&&q.resolve()})},unmount(Q,ee){q.isUnmounted=!0,q.activeBranch&&x(q.activeBranch,n,Q,ee),q.pendingBranch&&x(q.pendingBranch,n,Q,ee)}};return q}function OJ(e,t,n,r,i,a,s,o,f){const m=t.suspense=TN(t,r,n,e.parentNode,document.createElement("div"),null,i,a,s,o,!0),y=f(e,m.pendingBranch=t.ssContent,n,m,a,s);return m.deps===0&&m.resolve(!1,!0),y}function RJ(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=C9(r?n.default:n),e.ssFallback=r?C9(n.fallback):ke(Ea)}function C9(e){let t;if(er(e)){const n=zy&&e._c;n&&(e._d=!1,Z()),e=e(),n&&(e._d=!0,t=Vs,XC())}return Vn(e)&&(e=_J(e)),e=su(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function kN(e,t){t&&t.pendingBranch?Vn(e)?t.effects.push(...e):t.effects.push(e):kx(e)}function Xv(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e;let i=t.el;for(;!i&&t.component;)t=t.component.subTree,i=t.el;n.el=i,r&&r.subTree===n&&(r.vnode.el=i,KC(r,i))}function BJ(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const Ct=Symbol.for("v-fgt"),og=Symbol.for("v-txt"),Ea=Symbol.for("v-cmt"),Jv=Symbol.for("v-stc"),lp=[];let Vs=null;function Z(e=!1){lp.push(Vs=e?null:[])}function XC(){lp.pop(),Vs=lp[lp.length-1]||null}let zy=1;
vendor: 11,676 bytes, line 4
4function l4(e,t=!1){zy+=e,e<0&&Vs&&t&&(Vs.hasOnce=!0)}function EN(e){return e.dynamicChildren=zy>0?Vs||by:null,XC(),zy>0&&Vs&&Vs.push(e),e}function Ce(e,t,n,r,i,a){return EN(Re(e,t,n,r,i,a,!0))}function Se(e,t,n,r,i){return EN(ke(e,t,n,r,i,!0))}function Ny(e){return e?e.__v_isVNode===!0:!1}function pd(e,t){return e.type===t.type&&e.key===t.key}const PN=({key:e})=>e??null,TS=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Bi(e)||zn(e)||er(e)?{i:bs,r:e,k:t,f:!!n}:e:null);function Re(e,t=null,n=null,r=0,i=null,a=e===Ct?0:1,s=!1,o=!1){const f={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&PN(t),ref:t&&TS(t),scopeId:jz,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:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:bs};return o?(u4(f,n),a&128&&e.normalize(f)):n&&(f.shapeFlag|=Bi(n)?8:16),zy>0&&!s&&Vs&&(f.patchFlag>0||a&6)&&f.patchFlag!==32&&Vs.push(f),f}const ke=FJ;function FJ(e,t=null,n=null,r=0,i=null,a=!1){if((!e||e===rN)&&(e=Ea),Ny(e)){const o=Cd(e,t,!0);return n&&u4(o,n),zy>0&&!a&&Vs&&(o.shapeFlag&6?Vs[Vs.indexOf(e)]=o:Vs.push(o)),o.patchFlag=-2,o}if(HJ(e)&&(e=e.__vccOpts),t){t=yr(t);let{class:o,style:f}=t;o&&!Bi(o)&&(t.class=de(o)),di(f)&&(WC(f)&&!Vn(f)&&(f=qa({},f)),t.style=fo(f))}const s=Bi(e)?1:s4(e)?128:GC(e)?64:di(e)?4:er(e)?2:0;return Re(e,t,n,r,i,s,a,!0)}function yr(e){return e?WC(e)||mN(e)?qa({},e):e:null}function Cd(e,t,n=!1,r=!1){const{props:i,ref:a,patchFlag:s,children:o,transition:f}=e,m=t?vn(i||{},t):i,y={__v_isVNode:!0,__v_skip:!0,type:e.type,props:m,key:m&&PN(m),ref:t&&t.ref?n&&a?Vn(a)?a.concat(TS(t)):[a,TS(t)]:TS(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ct?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:f,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Cd(e.ssContent),ssFallback:e.ssFallback&&Cd(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce,cacheIndex:e.cacheIndex};return f&&r&&h_(y,f.clone(y)),y}function _n(e=" ",t=0){return ke(og,null,e,t)}function JC(e,t){const n=ke(Jv,null,e);return n.staticCount=t,n}function Ne(e="",t=!1){return t?(Z(),Se(Ea,null,e)):ke(Ea,null,e)}function su(e){return e==null||typeof e=="boolean"?ke(Ea):Vn(e)?ke(Ct,null,e.slice()):Ny(e)?Wh(e):ke(og,null,String(e))}function Wh(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Cd(e)}function u4(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Vn(t))n=16;else if(typeof t=="object")if(r&65){const i=t.default;i&&(i._c&&(i._d=!1),u4(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!mN(t)?t._ctx=bs:i===3&&bs&&(bs.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(er(t)){if(r&65){u4(e,{default:t});return}t={default:t,_ctx:bs},n=32}else t=String(t),r&64?(n=16,t=[_n(t)]):n=8;e.children=t,e.shapeFlag|=n}function vn(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const i in r)if(i==="class")t.class!==r.class&&(t.class=de([t.class,r.class]));else if(i==="style")t.style=fo([t.style,r.style]);else if(fw(i)){const a=t[i],s=r[i];s&&a!==s&&!(Vn(a)&&a.includes(s))?t[i]=a?[].concat(a,s):s:s==null&&a==null&&!RC(i)&&(t[i]=s)}else i!==""&&(t[i]=r[i])}return t}function El(e,t,n,r=null){gc(e,t,7,[n,r])}const zJ=lN();let NJ=0;function VJ(e,t,n){const r=e.type,i=(t?t.appContext:e.appContext)||zJ,a={uid:NJ++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new xz(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:yN(r,i),emitsOptions:dN(r,i),emit:null,emitted:null,propsDefaults:Qr,inheritAttrs:r.inheritAttrs,ctx:Qr,data:Qr,props:Qr,attrs:Qr,slots:Qr,refs:Qr,setupState:Qr,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return a.ctx={_:a},a.root=t?t.root:a,a.emit=yJ.bind(null,a),e.ce&&e.ce(a),a}let vs=null;const Ci=()=>vs||bs;let c4,sg;{const e=VC(),t=(n,r)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(r),a=>{i.length>1?i.forEach(s=>s(a)):i[0](a)}};c4=t("__VUE_INSTANCE_SETTERS__",n=>vs=n),sg=t("__VUE_SSR_SETTERS__",n=>Vy=n)}const F_=e=>{const t=vs;return c4(e),e.scope.on(),()=>{e.scope.off(),c4(t)}},Mx=()=>{vs&&vs.scope.off(),c4(null)};function $N(e){return e.vnode.shapeFlag&4}let Vy=!1;function qJ(e,t=!1,n=!1){t&&sg(t);const{props:r,children:i}=e.vnode,a=$N(e);SJ(e,r,a,t),EJ(e,i,n||t);const s=a?jJ(e,t):void 0;return t&&sg(!1),s}function jJ(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,sJ);const{setup:r}=n;if(r){vp();const i=e.setupContext=r.length>1?AN(e):null,a=F_(e),s=hw(r,e,0,[e.props,i]),o=PM(s);if(_p(),a(),(o||e.sp)&&!sp(e)&&RM(e),o){if(s.then(Mx,Mx),t)return s.then(f=>{sg(!0);try{oP(e,f,t)}finally{sg(!1)}}).catch(f=>{B_(f,e,0)});e.asyncDep=s}else oP(e,s)}else MN(e)}function oP(e,t,n){er(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:di(t)&&(e.setupState=Fz(t)),MN(e)}function MN(e,t,n){const r=e.type;e.render||(e.render=r.render||Ef);{const i=F_(e);vp();try{cJ(e)}finally{_p(),i()}}}const UJ={get(e,t){return Ns(e,"get",""),e[t]}};function AN(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,UJ),slots:e.slots,emit:e.emit,expose:t}}function QC(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Fz(O_(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in tx)return tx[n](e)},has(t,n){return n in t||n in tx}})):e.proxy}function sP(e,t=!0){return er(e)?e.displayName||e.name:e.name||t&&e.__name}function HJ(e){return er(e)&&"__vccOpts"in e}const xe=(e,t)=>PX(e,t,Vy);function Yn(e,t,n){try{l4(-1);const r=arguments.length;return r===2?di(t)&&!Vn(t)?Ny(t)?ke(e,null,[t]):ke(e,t):ke(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Ny(n)&&(n=[n]),ke(e,t,n))}finally{l4(1)}}function WJ(e,t,n,r){const i=n[r];if(i&&GJ(i,e))return i;const a=t();return a.memo=e.slice(),a.cacheIndex=r,n[r]=a}function GJ(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let r=0;r<n.length;r++)if(Uo(n[r],t[r]))return!1;return zy>0&&Vs&&Vs.push(e),!0}const YJ="3.5.43";let lP;const T9=typeof window<"u"&&window.trustedTypes;if(T9)try{lP=T9.createPolicy("vue",{createHTML:e=>e})}catch{}const IN=lP?e=>lP.createHTML(e):e=>e,ZJ="http://www.w3.org/2000/svg",KJ="http://www.w3.org/1998/Math/MathML",jh=typeof document<"u"?document:null,k9=jh&&jh.createElement("template"),XJ={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const i=t==="svg"?jh.createElementNS(ZJ,e):t==="mathml"?jh.createElementNS(KJ,e):n?jh.createElement(e,{is:n}):jh.createElement(e);return e==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:e=>jh.createTextNode(e),createComment:e=>jh.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>jh.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,i,a){const s=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===a||!(i=i.nextSibling)););else{k9.innerHTML=IN(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const o=k9.content;if(r==="svg"||r==="mathml"){const f=o.firstChild;for(;f.firstChild;)o.appendChild(f.firstChild);o.removeChild(f)}t.insertBefore(o,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Lm="transition",S2="animation",Ax=Symbol("_vtc"),DN={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},JJ=qa({},Gz,DN),QJ=e=>(e.displayName="Transition",e.props=JJ,e),eQ=QJ((e,{slots:t})=>Yn(qX,tQ(e),t)),ny=(e,t=[])=>{Vn(e)?e.forEach(n=>n(...t)):e&&e(...t)},E9=e=>e?Vn(e)?e.some(t=>t.length>1):e.length>1:!1;function tQ(e){const t={};for(const ne in e)ne in DN||(t[ne]=e[ne]);if(e.css===!1)return t;const{name:n="v",type:r,duration:i,enterFromClass:a=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:o=`${n}-enter-to`,appearFromClass:f=a,appearActiveClass:m=s,appearToClass:y=o,leaveFromClass:b=`${n}-leave-from`,leaveActiveClass:T=`${n}-leave-active`,leaveToClass:x=`${n}-leave-to`}=e,$=nQ(i),A=$&&$[0],N=$&&$[1],{onBeforeEnter:O,onEnter:I,onEnterCancelled:U,onLeave:B,onLeaveCancelled:q,onBeforeAppear:Q=O,onAppear:ee=I,onAppearCancelled:Y=U}=t,z=(ne,le,pe,ae)=>{ne._enterCancelled=ae,ry(ne,le?y:o),ry(ne,le?m:s),pe&&pe()},H=(ne,le)=>{ne._isLeaving=!1,ry(ne,b),ry(ne,x),ry(ne,T),le&&le()},K=ne=>(le,pe)=>{const ae=ne?ee:I,se=()=>z(le,ne,pe);ny(ae,[le,se]),P9(()=>{ry(le,ne?f:a),Ih(le,ne?y:o),E9(ae)||$9(le,r,A,se)})};return qa(t,{onBeforeEnter(ne){ny(O,[ne]),Ih(ne,a),Ih(ne,s)},onBeforeAppear(ne){ny(Q,[ne]),Ih(ne,f),Ih(ne,m)},onEnter:K(!1),onAppear:K(!0),onLeave(ne,le){ne._isLeaving=!0;const pe=()=>H(ne,le);Ih(ne,b),ne._enterCancelled?(Ih(ne,T),I9(ne)):(I9(ne),Ih(ne,T)),P9(()=>{ne._isLeaving&&(ry(ne,b),Ih(ne,x),E9(B)||$9(ne,r,N,pe))}),ny(B,[ne,pe])},onEnterCancelled(ne){z(ne,!1,void 0,!0),ny(U,[ne])},onAppearCancelled(ne){z(ne,!0,void 0,!0),ny(Y,[ne])},onLeaveCancelled(ne){H(ne),ny(q,[ne])}})}function nQ(e){if(e==null)return null;if(di(e))return[r6(e.enter),r6(e.leave)];{const t=r6(e);return[t,t]}}function r6(e){return yz(e)}function Ih(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Ax]||(e[Ax]=new Set)).add(t)}function ry(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[Ax];n&&(n.delete(t),n.size||(e[Ax]=void 0))}function P9(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let rQ=0;function $9(e,t,n,r){const i=e._endId=++rQ,a=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(a,n);const{type:s,timeout:o,propCount:f}=iQ(e,t);if(!s)return r();const m=s+"end";let y=0;const b=()=>{e.removeEventListener(m,T),a()},T=x=>{x.target===e&&++y>=f&&b()};setTimeout(()=>{y<f&&b()},o+1),e.addEventListener(m,T)}function iQ(e,t){const n=window.getComputedStyle(e),r=$=>(n[$]||"").split(", "),i=r(`${Lm}Delay`),a=r(`${Lm}Duration`),s=M9(i,a),o=r(`${S2}Delay`),f=r(`${S2}Duration`),m=M9(o,f);let y=null,b=0,T=0;t===Lm?s>0&&(y=Lm,b=s,T=a.length):t===S2?m>0&&(y=S2,b=m,T=f.length):(b=Math.max(s,m),y=b>0?s>m?Lm:S2:null,T=y?y===Lm?a.length:f.length:0);const x=y===Lm&&/\b(?:transform|all)(?:,|$)/.test(r(`${Lm}Property`).toString());return{type:y,timeout:b,propCount:T,hasTransform:x}}function M9(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>A9(n)+A9(e[r])))}function A9(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function I9(e){return(e?e.ownerDocument:document).body.offsetHeight}function aQ(e,t,n){const r=e[Ax];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const d4=Symbol("_vod"),LN=Symbol("_vsh"),p_={name:"show",beforeMount(e,{value:t},{transition:n}){e[d4]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):C2(e,t)}
4,mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),C2(e,!0),r.enter(e)):r.leave(e,()=>{C2(e,!1)}):C2(e,t))},beforeUnmount(e,{value:t}){C2(e,t)}};function C2(e,t){e.style.display=t?e[d4]:"none",e[LN]=!t}const oQ=Symbol(""),sQ=/(?:^|;)\s*display\s*:/;function lQ(e,t,n){const r=e.style,i=Bi(n);let a=!1;if(n&&!i){if(t)if(Bi(t))for(const s of t.split(";")){const o=s.slice(0,s.indexOf(":")).trim();n[o]==null&&z2(r,o,"")}else for(const s in t)n[s]==null&&z2(r,s,"");for(const s in n){s==="display"&&(a=!0);const o=n[s];o!=null?cQ(e,s,!Bi(t)&&t?t[s]:void 0,o)||z2(r,s,o):z2(r,s,"")}}else if(i){if(t!==n){const s=r[oQ];s&&(n+=";"+s),r.cssText=n,a=sQ.test(n)}}else t&&e.removeAttribute("style");d4 in e&&(e[d4]=a?r.display:"",e[LN]&&(r.display="none"))}const P5=/\s*!important$/;function z2(e,t,n){if(Vn(n))n.forEach(r=>z2(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))P5.test(n)?e.setProperty(t,n.replace(P5,""),"important"):e.setProperty(t,n);else{const r=uQ(e,t);P5.test(n)?e.setProperty(Tp(r),n.replace(P5,""),"important"):e[r]=n}}const D9=["Webkit","Moz","ms"],i6={};function uQ(e,t){const n=i6[t];if(n)return n;let r=Yo(t);if(r!=="filter"&&r in e)return i6[t]=r;r=zC(r);for(let i=0;i<D9.length;i++){const a=D9[i]+r;if(a in e)return i6[t]=a}return t}function cQ(e,t,n,r){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&Bi(r)&&n===r}const L9="http://www.w3.org/1999/xlink";function O9(e,t,n,r,i,a=QK(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(L9,t.slice(6,t.length)):e.setAttributeNS(L9,t,n):n==null||a&&!vz(n)?e.removeAttribute(t):e.setAttribute(t,a?"":yu(n)?String(n):n)}function R9(e,t,n,r,i){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?IN(n):n);return}const a=e.tagName;if(t==="value"&&a!=="PROGRESS"&&!a.includes("-")){const o=a==="OPTION"?e.getAttribute("value")||"":e.value,f=n==null?e.type==="checkbox"?"on":"":String(n);(o!==f||!("_value"in e))&&(e.value=f),n==null&&e.removeAttribute(t),e._value=n;return}let s=!1;if(n===""||n==null){const o=typeof e[t];o==="boolean"?n=vz(n):n==null&&o==="string"?(n="",s=!0):o==="number"&&(n=0,s=!0)}try{e[t]=n}catch{}s&&e.removeAttribute(i||t)}function Xh(e,t,n,r){e.addEventListener(t,n,r)}function dQ(e,t,n,r){e.removeEventListener(t,n,r)}const B9=Symbol("_vei");function fQ(e,t,n,r,i=null){const a=e[B9]||(e[B9]={}),s=a[t];if(r&&s)s.value=r;else{const[o,f]=mQ(t);if(r){const m=a[t]=vQ(r,i);Xh(e,o,m,f)}else s&&(dQ(e,o,s,f),a[t]=void 0)}}const hQ=/(Once|Passive|Capture)$/,pQ=/^on:?(?:Once|Passive|Capture)$/;function mQ(e){let t,n;for(;(n=e.match(hQ))&&!pQ.test(e);)t||(t={}),e=e.slice(0,e.length-n[1].length),t[n[1].toLowerCase()]=!0;return[e[2]===":"?e.slice(3):Tp(e.slice(2)),t]}let a6=0;const gQ=Promise.resolve(),yQ=()=>a6||(gQ.then(()=>a6=0),a6=Date.now());function vQ(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;const i=n.value;if(Vn(i)){const a=r.stopImmediatePropagation;r.stopImmediatePropagation=()=>{a.call(r),r._stopped=!0};const s=i.slice(),o=[r];for(let f=0;f<s.length&&!r._stopped;f++){const m=s[f];m&&gc(m,t,5,o)}}else gc(i,t,5,[r])};return n.value=e,n.attached=yQ(),n}const F9=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,_Q=(e,t,n,r,i,a)=>{const s=i==="svg";t==="class"?aQ(e,r,s):t==="style"?lQ(e,n,r):fw(t)?RC(t)||fQ(e,t,n,r,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):bQ(e,t,r,s))?(R9(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&O9(e,t,r,s,a,t!=="value")):e._isVueCE&&(xQ(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!Bi(r)))?R9(e,Yo(t),r,a,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),O9(e,t,r,s))};function bQ(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&F9(t)&&er(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return F9(t)&&Bi(n)?!1:t in e}function xQ(e,t){const n=e._def.props;if(!n)return!1;const r=Yo(t);return Array.isArray(n)?n.some(i=>Yo(i)===r):Object.keys(n).some(i=>Yo(i)===r)}const vg=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Vn(t)?n=>Yv(t,n):t};function wQ(e){e.target.composing=!0}function z9(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const uu=Symbol("_assign"),$5=Symbol("_initialValue");function o6(e,t,n){return t&&(e=e.trim()),n&&(e=NC(e)),e}const Ix={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e.parentNode&&(e.type==="text"?e[$5]=e.defaultValue.replace(/[\r\n]/g,""):e.type==="textarea"&&(e[$5]=e.defaultValue.replace(/\r\n?/g,`
5`))),e[uu]=vg(i);const a=r||i.props&&i.props.type==="number";Xh(e,t?"change":"input",s=>{s.target.composing||e[uu](o6(e.value,n,a))}),(n||a)&&Xh(e,"change",()=>{e.value=o6(e.value,n,a)}),t||(Xh(e,"compositionstart",wQ),Xh(e,"compositionend",z9),Xh(e,"change",z9))},mounted(e,{value:t,modifiers:{trim:n,number:r}}){const i=t??"",a=e[$5];delete e[$5],a!==void 0&&(e.type==="text"||e.type==="textarea")&&e.value!==a?e[uu](o6(e.value,n,r)):e.value=i},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:a}},s){if(e[uu]=vg(s),e.composing)return;const o=(a||e.type==="number")&&!/^0\d/.test(e.value)?NC(e.value):e.value,f=t??"";if(o===f)return;const m=e.getRootNode();(m instanceof Document||m instanceof ShadowRoot)&&m.activeElement===e&&e.type!=="range"&&(r&&t===n||i&&e.value.trim()===f)||(e.value=f)}},SQ={deep:!0,created(e,t,n){e[uu]=vg(n),Xh(e,"change",()=>{const r=e._modelValue,i=m_(e),a=e.checked,s=e[uu];if(Vn(r)){const o=MM(r,i),f=o!==-1;if(a&&!f)s(r.concat(i));else if(!a&&f){const m=[...r];m.splice(o,1),s(m)}}else if(gp(r)){const o=new Set(r);a?o.add(i):o.delete(i),s(o)}else s(ON(e,a))})},mounted:N9,beforeUpdate(e,t,n){e[uu]=vg(n),N9(e,t,n)}};function N9(e,{value:t,oldValue:n},r){e._modelValue=t;let i;if(Vn(t))i=MM(t,r.props.value)>-1;else if(gp(t))i=t.has(r.props.value);else{if(t===n)return;i=wd(t,ON(e,!0))}e.checked!==i&&(e.checked=i)}const CQ={created(e,{value:t},n){e.checked=wd(t,n.props.value),e[uu]=vg(n),Xh(e,"change",()=>{e[uu](m_(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[uu]=vg(r),t!==n&&(e.checked=wd(t,r.props.value))}},TQ={deep:!0,created(e,{value:t,modifiers:{number:n}},r){e._modelValue=t,Xh(e,"change",()=>{const i=Array.prototype.filter.call(e.options,f=>f.selected).map(f=>n?NC(m_(f)):m_(f)),a=e.multiple,s=a?gp(e._modelValue)?new Set(i):i:i[0],o=e._pendingValue=[a,a?Vn(s)?i.slice():i:s];try{e[uu](s)}finally{ur(()=>{e._pendingValue===o&&(e._pendingValue=void 0)})}}),e[uu]=vg(r)},mounted(e,{value:t}){V9(e,t)},beforeUpdate(e,{value:t},n){e._modelValue=t,e[uu]=vg(n)},updated(e,{value:t}){const n=e._pendingValue;e._pendingValue=void 0,(!n||n[0]!==e.multiple||!kQ(t,n[1],n[0]))&&V9(e,t)}};
5function kQ(e,t,n){if(!n||Vn(e))return wd(e,t);if(gp(e)){if(e.size!==t.length)return!1;for(const r of t)if(!e.has(r))return!1;return!0}return!1}function V9(e,t){const n=e.multiple,r=Vn(t);if(!(n&&!r&&!gp(t))){for(let i=0,a=e.options.length;i<a;i++){const s=e.options[i],o=m_(s);if(n)if(r){const f=typeof o;f==="string"||f==="number"?s.selected=t.some(m=>String(m)===String(o)):s.selected=MM(t,o)>-1}else s.selected=t.has(o);else if(wd(m_(s),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function m_(e){return"_value"in e?e._value:e.value}function ON(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const RN={created(e,t,n){M5(e,t,n,null,"created")},mounted(e,t,n){M5(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){M5(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){M5(e,t,n,r,"updated")}};function EQ(e,t){switch(e){case"SELECT":return TQ;case"TEXTAREA":return Ix;default:switch(t){case"checkbox":return SQ;case"radio":return CQ;default:return Ix}}}function M5(e,t,n,r,i){const s=EQ(e.tagName,n.props&&n.props.type)[i];s&&s(e,t,n,r)}const PQ=["ctrl","shift","alt","meta"],$Q={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>PQ.some(n=>e[`${n}Key`]&&!t.includes(n))},ti=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=((i,...a)=>{for(let s=0;s<t.length;s++){const o=$Q[t[s]];if(o&&o(i,t))return}return e(i,...a)}))},MQ={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Ep=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=(i=>{if(!("key"in i))return;const a=Tp(i.key);if(t.some(s=>s===a||MQ[s]===a))return e(i)}))},BN=qa({patchProp:_Q},XJ);let nx,q9=!1;function AQ(){return nx||(nx=$J(BN))}function IQ(){return nx=q9?nx:MJ(BN),q9=!0,nx}const DQ=((...e)=>{const t=AQ().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=zN(r);if(!i)return;const a=t._component;!er(a)&&!a.render&&!a.template&&(a.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const s=n(i,!1,FN(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),s},t}),LQ=((...e)=>{const t=IQ().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=zN(r);if(i)return n(i,!0,FN(i))},t});function FN(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function zN(e){return Bi(e)?document.querySelector(e):e}const OQ=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,RQ=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,BQ=/^\s*["[{]|^\s*-?\d[\d.]{0,14}\s*$/;function FQ(e,t){if(e!=="__proto__"&&!(e==="constructor"&&t&&typeof t=="object"&&"prototype"in t))return t}function zQ(e,t={}){if(typeof e!="string")return e;const n=e.toLowerCase().trim();if(n==="true")return!0;if(n==="false")return!1;if(n==="null")return null;if(n==="nan")return Number.NaN;if(n==="infinity")return Number.POSITIVE_INFINITY;if(n!=="undefined"){if(!BQ.test(e)){if(t.strict)throw new SyntaxError("Invalid JSON");return e}try{return OQ.test(e)||RQ.test(e)?JSON.parse(e,FQ):JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}}const NN=/#/g,VN=/&/g,qN=/\//g,NQ=/=/g,VQ=/\?/g,eT=/\+/g,qQ=/%5e/gi,jQ=/%60/gi,UQ=/%7c/gi,HQ=/%20/gi,WQ=/%2f/gi,GQ=/%252f/gi;function jN(e){return encodeURI(""+e).replace(UQ,"|")}function uP(e){return jN(typeof e=="string"?e:JSON.stringify(e)).replace(eT,"%2B").replace(HQ,"+").replace(NN,"%23").replace(VN,"%26").replace(jQ,"`").replace(qQ,"^").replace(qN,"%2F")}function s6(e){return uP(e).replace(NQ,"%3D")}function YM(e){return jN(e).replace(NN,"%23").replace(VQ,"%3F").replace(GQ,"%2F").replace(VN,"%26").replace(eT,"%2B")}function j9(e){return YM(e).replace(qN,"%2F")}function qy(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function YQ(e){return qy(e.replace(WQ,"%252F"))}function ZQ(e){return qy(e.replace(eT," "))}function KQ(e){return qy(e.replace(eT," "))}function tT(e=""){const t=Object.create(null);e[0]==="?"&&(e=e.slice(1));for(const n of e.split("&")){const r=n.match(/([^=]+)=?(.*)/)||[];if(r.length<2)continue;const i=ZQ(r[1]);if(i==="__proto__"||i==="constructor")continue;const a=KQ(r[2]||"");t[i]===void 0?t[i]=a:Array.isArray(t[i])?t[i].push(a):t[i]=[t[i],a]}return t}function XQ(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(n=>`${s6(e)}=${uP(n)}`).join("&"):`${s6(e)}=${uP(t)}`:s6(e)}function JQ(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>
5XQ(t,e[t])).filter(Boolean).join("&")}const QQ=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,eee=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,tee=/^([/\\]\s*){2,}[^/\\]/,nee=/^[\s\0]*(blob|data|javascript|vbscript):$/i,ree=/\/$|\/\?|\/#/,iee=/^\.?\//;function vu(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?QQ.test(e):eee.test(e)||(t.acceptRelative?tee.test(e):!1)}function aee(e){return!!e&&nee.test(e)}function cP(e="",t){return t?ree.test(e):e.endsWith("/")}function g_(e="",t){if(!t)return(cP(e)?e.slice(0,-1):e)||"/";if(!cP(e,!0))return e||"/";let n=e,r="";const i=e.indexOf("#");i!==-1&&(n=e.slice(0,i),r=e.slice(i));const[a,...s]=n.split("?");return((a.endsWith("/")?a.slice(0,-1):a)||"/")+(s.length>0?`?${s.join("?")}`:"")+r}function f4(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(cP(e,!0))return e||"/";let n=e,r="";const i=e.indexOf("#");if(i!==-1&&(n=e.slice(0,i),r=e.slice(i),!n))return r;const[a,...s]=n.split("?");return a+"/"+(s.length>0?`?${s.join("?")}`:"")+r}function oee(e=""){return e.startsWith("/")}function dP(e=""){return oee(e)?e:"/"+e}function see(e,t){if(UN(t)||vu(e))return e;const n=g_(t);if(e.startsWith(n)){const r=e[n.length];if(!r||r==="/"||r==="?")return e}return Af(n,e)}function U9(e,t){if(UN(t))return e;const n=g_(t);if(!e.startsWith(n))return e;const r=e[n.length];return r&&r!=="/"&&r!=="?"?e:"/"+e.slice(n.length).replace(/^\/+/,"")}function jy(e,t){const n=nT(e),r={...tT(n.search),...t};return n.search=JQ(r),cee(n)}function UN(e){return!e||e==="/"}function lee(e){return e&&e!=="/"}function Af(e,...t){let n=e||"";for(const r of t.filter(i=>lee(i)))if(n){const i=r.replace(iee,"");n=f4(n)+i}else n=r;return n}function HN(...e){const t=/\/(?!\/)/,n=e.filter(Boolean),r=[];let i=0;for(const s of n)if(!(!s||s==="/")){for(const[o,f]of s.split(t).entries())if(!(!f||f===".")){if(f===".."){if(r.length===1&&vu(r[0]))continue;r.pop(),i--;continue}if(o===1&&r[r.length-1]?.endsWith(":/")){r[r.length-1]+="/"+f;continue}r.push(f),i++}}let a=r.join("/");return i>=0?n[0]?.startsWith("/")&&!a.startsWith("/")?a="/"+a:n[0]?.startsWith("./")&&!a.startsWith("./")&&(a="./"+a):a="../".repeat(-1*i)+a,n[n.length-1]?.endsWith("/")&&!a.endsWith("/")&&(a+="/"),a}function WN(e,t){return qy(g_(e))===qy(g_(t))}function uee(e,t,n={}){return n.trailingSlash||(e=f4(e),t=f4(t)),n.leadingSlash||(e=dP(e),t=dP(t)),n.encoding||(e=qy(e),t=qy(t)),e===t}const GN=Symbol.for("ufo:protocolRelative");function nT(e="",t){const n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){const[,b,T=""]=n;return{protocol:b.toLowerCase(),pathname:T,href:b+T,auth:"",host:"",search:"",hash:""}}if(!vu(e,{acceptRelative:!0}))return fP(e);const[,r="",i,a=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,s="",o=""]=a.match(/([^#/?]*)(.*)?/)||[];r==="file:"&&(o=o.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:f,search:m,hash:y}=fP(o);return{protocol:r.toLowerCase(),auth:i?i.slice(0,Math.max(0,i.length-1)):"",host:s,pathname:f,search:m,hash:y,[GN]:!r}}function fP(e=""){const[t="",n="",r=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function cee(e){const t=e.pathname||"",n=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",r=e.hash||"",i=e.auth?e.auth+"@":"",a=e.host||"";return(e.protocol||e[GN]?(e.protocol||"")+"//":"")+i+a+t+n+r}class dee extends Error{constructor(){super(...arguments),this.name="FetchError"}}function fee(e,t,n){let r="";t&&(r=t.message),e&&n?r=`${r} (${n.status} ${n.statusText} (${e.toString()}))`:e&&(r=`${r} (${e.toString()})`);const i=new dee(r);return Object.defineProperty(i,"request",{get(){return e}}),Object.defineProperty(i,"response",{get(){return n}}),Object.defineProperty(i,"data",{get(){return n&&n._data}}),Object.defineProperty(i,"status",{get(){return n&&n.status}}),Object.defineProperty(i,"statusText",{get(){return n&&n.statusText}}),Object.defineProperty(i,"statusCode",{get(){return n&&n.status}}),Object.defineProperty(i,"statusMessage",{get(){return n&&n.statusText}}),i}const hee=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function H9(e="GET"){return hee.has(e.toUpperCase())}function pee(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}const mee=new Set(["image/svg","application/xml","application/xhtml","application/html"]),gee=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function yee(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return gee.test(t)?"json":mee.has(t)||t.startsWith("text/")?"text":"blob"}const vee=new Set([408,409,425,429,500,502,503,504]);function YN(e){const{fetch:t,Headers:n}=e;
5function r(s){const o=s.error&&s.error.name==="AbortError"||!1;if(s.options.retry!==!1&&!o){let m;typeof s.options.retry=="number"?m=s.options.retry:m=H9(s.options.method)?0:1;const y=s.response&&s.response.status||500;if(m>0&&vee.has(y))return i(s.request,{...s.options,retry:m-1})}const f=fee(s.request,s.error,s.response);throw Error.captureStackTrace&&Error.captureStackTrace(f,i),f}const i=async function(o,f={}){const m={request:o,options:{...e.defaults,...f},response:void 0,error:void 0};m.options.onRequest&&await m.options.onRequest(m),typeof m.request=="string"&&(m.options.baseURL&&(m.request=see(m.request,m.options.baseURL)),(m.options.query||m.options.params)&&(m.request=jy(m.request,{...m.options.params,...m.options.query})),m.options.body&&H9(m.options.method)&&pee(m.options.body)&&(m.options.body=typeof m.options.body=="string"?m.options.body:JSON.stringify(m.options.body),m.options.headers=new n(m.options.headers),m.options.headers.has("content-type")||m.options.headers.set("content-type","application/json"),m.options.headers.has("accept")||m.options.headers.set("accept","application/json"))),m.response=await t(m.request,m.options).catch(async b=>(m.error=b,m.options.onRequestError&&await m.options.onRequestError(m),r(m)));const y=(m.options.parseResponse?"json":m.options.responseType)||yee(m.response.headers.get("content-type")||"");if(y==="json"){const b=await m.response.text(),T=m.options.parseResponse||zQ;m.response._data=T(b)}else y==="stream"?m.response._data=m.response.body:m.response._data=await m.response[y]();return m.options.onResponse&&await m.options.onResponse(m),m.response.status>=400&&m.response.status<600?(m.options.onResponseError&&await m.options.onResponseError(m),r(m)):m.response},a=function(o,f){return i(o,f).then(m=>m._data)};return a.raw=i,a.native=t,a.create=(s={})=>YN({...e,defaults:{...e.defaults,...s}}),a}const ZN=(function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")})(),_ee=ZN.fetch||(()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!"))),bee=ZN.Headers,xee=YN({fetch:_ee,Headers:bee}),KN=xee,wee=()=>window?.__NUXT__?.config||{},ZM=()=>wee().app,See=()=>ZM().baseURL,Cee=()=>ZM().buildAssetsDir,KM=(...e)=>HN(XN(),Cee(),...e),XN=(...e)=>{const t=ZM(),n=t.cdnURL||t.baseURL;return e.length?HN(n,...e):n};globalThis.__buildAssetsURL=KM,globalThis.__publicAssetsURL=XN;globalThis.$fetch||(globalThis.$fetch=KN.create({baseURL:See()}));"global"in globalThis||(globalThis.global=globalThis);function hP(e,t={},n){for(const r in e){const i=e[r],a=n?`${n}:${r}`:r;typeof i=="object"&&i!==null?hP(i,t,a):typeof i=="function"&&(t[a]=i)}return t}const Tee={run:e=>e()},kee=()=>Tee,JN=typeof console.createTask<"u"?console.createTask:kee;function Eee(e,t){const n=t.shift(),r=JN(n);return e.reduce((i,a)=>i.then(()=>r.run(()=>a(...t))),Promise.resolve())}function Pee(e,t){const n=t.shift(),r=JN(n);return Promise.all(e.map(i=>r.run(()=>i(...t))))}function l6(e,t){for(const n of[...e])n(t)}let $ee=class{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(t,n,r={}){if(!t||typeof n!="function")return()=>{};const i=t;let a;for(;this._deprecatedHooks[t];)a=this._deprecatedHooks[t],t=a.to;if(a&&!r.allowDeprecated){let s=a.message;s||(s=`${i} hook has been deprecated`+(a.to?`, please use ${a.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(s)||this._deprecatedMessages.add(s)}if(!n.name)try{Object.defineProperty(n,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(n),()=>{n&&(this.removeHook(t,n),n=void 0)}}hookOnce(t,n){let r,i=(...a)=>(typeof r=="function"&&r(),r=void 0,i=void 0,n(...a));return r=this.hook(t,i),r}removeHook(t,n){if(this._hooks[t]){const r=this._hooks[t].indexOf(n);r!==-1&&this._hooks[t].splice(r,1),this._hooks[t].length===0&&delete this._hooks[t]}}deprecateHook(t,n){this._deprecatedHooks[t]=typeof n=="string"?{to:n}:n;const r=this._hooks[t]||[];delete this._hooks[t];for(const i of r)this.hook(t,i)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const n in t)this.deprecateHook(n,t[n])}addHooks(t){const n=hP(t),r=Object.keys(n).map(i=>this.hook(i,n[i]));return()=>{for(const i of r.splice(0,r.length))i()}}removeHooks(t){const n=hP(t);for(const r in n)this.removeHook(r,n[r])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...n){return n.unshift(t),this.callHookWith(Eee,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith(Pee,t,...n)}callHookWith(t,n,...r){const i=this._before||this._after?{name:n,args:r,context:{}}:void 0;this._before&&l6(this._before,i);const a=t(n in this._hooks?[...this._hooks[n]]:[],r);return a instanceof Promise?a.finally(()=>{this._after&&i&&l6(this._after,i)}):(this._after&&i&&l6(this._after,i),a)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const n=this._before.indexOf(t);n!==-1&&this._before.splice(n,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const n=this._after.indexOf(t);n!==-1&&this._after.splice(n,1)}}}};function Mee(){return new $ee}function Aee(e={}){let t,n=!1;const r=s=>{if(t&&t!==s)throw new Error("Context conflict")};let i;if(e.asyncContext){const s=e.AsyncLocalStorage||globalThis.AsyncLocalStorage;s&&(i=new s)}const a=()=>
5{if(i){const s=i.getStore();if(s!==void 0)return s}return t};return{use:()=>{const s=a();if(s===void 0)throw new Error("Context is not available");return s},tryUse:()=>a(),set:(s,o)=>{o||r(s),t=s,n=!0},unset:()=>{t=void 0,n=!1},call:(s,o)=>{r(s),t=s;try{return i?i.run(s,o):o()}finally{n||(t=void 0)}},async callAsync(s,o){t=s;const f=()=>{t=s},m=()=>t===s?f:void 0;pP.add(m);try{const y=i?i.run(s,o):o();return n||(t=void 0),await y}finally{pP.delete(m)}}}}function Iee(e={}){const t={};return{get(n,r={}){return t[n]||(t[n]=Aee({...e,...r})),t[n]}}}const h4=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},W9="__unctx__",Dee=h4[W9]||(h4[W9]=Iee()),Lee=(e,t={})=>Dee.get(e,t),G9="__unctx_async_handlers__",pP=h4[G9]||(h4[G9]=new Set);function Pf(e){const t=[];for(const i of pP){const a=i();a&&t.push(a)}const n=()=>{for(const i of t)i()};let r=e();return r&&typeof r=="object"&&"catch"in r&&(r=r.catch(i=>{throw n(),i})),[r,n]}const Y9=!1,Z9=!1,Oee=!1,Ree={componentName:"NuxtLink",prefetch:!0,prefetchOn:{visibility:!0}},Qh={value:null,errorValue:null,deep:!0},Bee=null,Fee={},zee="#__nuxt",QN="nuxt-app",K9=36e5,Nee="vite:preloadError";function eV(e=QN){return Lee(e,{asyncContext:!1})}const Vee="__nuxt_plugin";function qee(e){let t=0;const n={_id:e.id||QN||"nuxt-app",_scope:i1(),provide:void 0,globalName:"nuxt",versions:{get nuxt(){return"3.21.2"},get vue(){return n.vueApp.version}},payload:Sf({...e.ssrContext?.payload||{},data:Sf({}),state:aa({}),once:new Set,_errors:Sf({})}),static:{data:{}},runWithContext(i){return n._scope.active&&!_c()?n._scope.run(()=>X9(n,i)):X9(n,i)},isHydrating:!0,deferHydration(){if(!n.isHydrating)return()=>{};t++;let i=!1;return()=>{if(!i&&(i=!0,t--,t===0))return n.isHydrating=!1,n.callHook("app:suspense:resolve")}},_asyncDataPromises:{},_asyncData:Sf({}),_payloadRevivers:{},...e};{const i=window.__NUXT__;if(i)for(const a in i)switch(a){case"data":case"state":case"_errors":Object.assign(n.payload[a],i[a]);break;default:n.payload[a]=i[a]}}n.hooks=Mee(),n.hook=n.hooks.hook,n.callHook=n.hooks.callHook,n.provide=(i,a)=>{const s="$"+i;A5(n,s,a),A5(n.vueApp.config.globalProperties,s,a)},A5(n.vueApp,"$nuxt",n),A5(n.vueApp.config.globalProperties,"$nuxt",n);{window.addEventListener(Nee,a=>{n.callHook("app:chunkError",{error:a.payload}),a.payload.message.includes("Unable to preload CSS")&&a.preventDefault()}),window.useNuxtApp||=En;const i=n.hook("app:error",(...a)=>{});n.hook("app:mounted",i)}const r=n.payload.config;return n.provide("config",r),n}function jee(e,t){t.hooks&&e.hooks.addHooks(t.hooks)}async function Uee(e,t){if(typeof t=="function"){const{provide:n}=await e.runWithContext(()=>t(e))||{};if(n&&typeof n=="object")for(const r in n)e.provide(r,n[r])}}async function Hee(e,t){const n=new Set,r=[],i=[];let a,s=0;async function o(f){const m=f.dependsOn?.filter(y=>t.some(b=>b._name===y)&&!n.has(y))??[];if(m.length>0)r.push([new Set(m),f]);else{const y=Uee(e,f).then(async()=>{f._name&&(n.add(f._name),await Promise.all(r.map(async([b,T])=>{b.has(f._name)&&(b.delete(f._name),b.size===0&&(s++,await o(T)))})))}).catch(b=>{if(!f.parallel&&!e.payload.error)throw b;a||=b});f.parallel?i.push(y):await y}}for(const f of t)jee(e,f);for(const f of t)await o(f);if(await Promise.all(i),s)for(let f=0;f<s;f++)await Promise.all(i);if(a)throw e.payload.error||a}function sa(e){if(typeof e=="function")return e;const t=e._name||e.name;return delete e.name,Object.assign(e.setup||(()=>{}),e,{[Vee]:!0,_name:t})}const Wee=sa;function X9(e,t,n){const r=()=>t();return eV(e._id).set(e),e.vueApp.runWithContext(r)}function tV(e){let t;return a1()&&(t=Ci()?.appContext.app.$nuxt),t||=eV(e).tryUse(),t||null}function En(e){const t=tV(e);if(!t)throw new Error("[nuxt] instance unavailable");return t}function ul(e){return En().$config}function A5(e,t,n){Object.defineProperty(e,t,{get:()=>n})}function u6(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function mP(e,t,n=".",r){if(!u6(t))return mP(e,{},n,r);const i={...t};for(const a of Object.keys(e)){if(a==="__proto__"||a==="constructor")continue;const s=e[a];s!=null&&(r&&r(i,a,s,n)||(Array.isArray(s)&&Array.isArray(i[a])?i[a]=[...s,...i[a]]:u6(s)&&u6(i[a])?i[a]=mP(s,i[a],(n?`${n}.`:"")+a.toString(),r):i[a]=s))}return i}function XM(e){return(...t)=>t.reduce((n,r)=>mP(n,r,"",e),{})}const If=XM(),Gee=XM((e,t,n)=>{if(e[t]!==void 0&&typeof n=="function")return e[t]=n(e[t]),!0}),Yee=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,Zee=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,Kee=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function Xee(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){return}return t}function p4(e,t={}){if(typeof e!="string")return e;if(e[0]==='"'&&e[e.length-1]==='"'&&e.indexOf("\\")===-1)return e.slice(1,-1);const n=e.trim();if(n.length<=9)switch(n.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return Number.NaN;case"infinity":return Number.POSITIVE_INFINITY;case"-infinity":return Number.NEGATIVE_INFINITY}if(!Kee.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(Yee.test(e)||Zee.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,Xee)}return JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}function Jee(e,t){try{return t in e}catch{return!1}}
5class J9 extends Error{static __h3_error__=!0;statusCode=500;fatal=!1;unhandled=!1;statusMessage;data;cause;constructor(t,n={}){super(t,n),n.cause&&!this.cause&&(this.cause=n.cause)}toJSON(){const t={message:this.message,statusCode:gP(this.statusCode,500)};return this.statusMessage&&(t.statusMessage=nV(this.statusMessage)),this.data!==void 0&&(t.data=this.data),t}}function Qee(e){if(typeof e=="string")return new J9(e);if(ete(e))return e;const t=new J9(e.message??e.statusMessage??"",{cause:e.cause||e});if(Jee(e,"stack"))try{Object.defineProperty(t,"stack",{get(){return e.stack}})}catch{try{t.stack=e.stack}catch{}}if(e.data&&(t.data=e.data),e.statusCode?t.statusCode=gP(e.statusCode,t.statusCode):e.status&&(t.statusCode=gP(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){const n=t.statusMessage,r=nV(t.statusMessage)}return e.fatal!==void 0&&(t.fatal=e.fatal),e.unhandled!==void 0&&(t.unhandled=e.unhandled),t}function ete(e){return e?.constructor?.__h3_error__===!0}const tte=/[^\u0009\u0020-\u007E]/g;function nV(e=""){return e.replace(tte,"")}function gP(e,t=200){return!e||(typeof e=="string"&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}function nte(e,t){for(const[n,r]of Object.entries(t))e.node.res.setHeader(n,r)}const rV=Symbol("layout-meta"),Uy=Symbol("route");function rte(e){return Array.isArray(e)?e:[e]}import.meta.url.replace(/\/app\/.*$/,"/");const ja=()=>En()?.$router,Td=()=>a1()?Ai(Uy,En()._route):En()._route;const yP=(e,t,n={})=>{const r=En(),i=n.global||typeof e!="string",a=typeof e!="string"?e:t;a&&(i?r._middleware.global.push(a):r._middleware.named[e]=a)},ite=()=>{try{if(En()._processingMiddleware)return!0}catch{return!1}return!1},dc=(e,t)=>{e||="/";const n=typeof e=="string"?e:"path"in e?vP(e):ja().resolve(e).href;if(t?.open){const{target:m="_blank",windowFeatures:y={}}=t.open,b=[];for(const[T,x]of Object.entries(y))x!==void 0&&b.push(`${T.toLowerCase()}=${x}`);return open(n,m,b.join(", ")),Promise.resolve()}const r=vu(n,{acceptRelative:!0}),i=t?.external||r;if(i){if(!t?.external)throw new Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");const{protocol:m}=new URL(n,window.location.href);if(m&&aee(m))throw new Error(`Cannot navigate to a URL with '${m}' protocol.`)}const a=ite();if(!i&&a){if(t?.replace){if(typeof e=="string"){const{pathname:m,search:y,hash:b}=nT(e);return{path:m,...y&&{query:tT(y)},...b&&{hash:b},replace:!0}}return{...e,replace:!0}}return e}const s=ja(),o=En();if(i)return o._scope.stop(),t?.replace?location.replace(n):location.href=n,a?o.isHydrating?new Promise(()=>{}):!1:Promise.resolve();const f=typeof e=="string"?iV(e):e;return t?.replace?s.replace(f):s.push(f)};function vP(e){return jy(e.path||"",e.query||{})+(e.hash||"")}function iV(e){const t=nT(e);return YM(YQ(t.pathname))+t.search+t.hash}const aV="__nuxt_error",yw=()=>oc(En().payload,"error"),Gh=e=>{const t=lg(e);try{const n=yw();En().hooks.callHook("app:error",t),n.value||=t}catch{throw t}return t},ate=async(e={})=>{const t=En(),n=yw();t.callHook("app:error:cleared",e),e.redirect&&await ja().replace(e.redirect),n.value=Bee},oV=e=>!!e&&typeof e=="object"&&aV in e,lg=e=>{typeof e!="string"&&e.statusText&&(e.message??=e.statusText);const t=Qee(e);return Object.defineProperty(t,aV,{value:!0,configurable:!1,writable:!1}),Object.defineProperty(t,"status",{get:()=>t.statusCode,configurable:!0}),Object.defineProperty(t,"statusText",{get:()=>t.statusMessage,configurable:!0}),t};let sV;const y_=e=>sV=e,lV=Symbol();function _P(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var rx;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(rx||(rx={}));function ote(){const e=i1(!0),t=e.run(()=>De({}));let n=[],r=[];const i=O_({install(a){y_(i),i._a=a,a.provide(lV,i),a.config.globalProperties.$pinia=i,r.forEach(s=>n.push(s)),r=[]},use(a){return this._a?n.push(a):r.push(a),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return i}const uV=()=>{};function Q9(e,t,n,r=uV){e.add(t);const i=()=>{e.delete(t)&&r()};return!n&&_c()&&yp(i),i}function Pv(e,...t){e.forEach(n=>
5{n(...t)})}const ste=e=>e(),eD=Symbol(),c6=Symbol();function bP(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,r)=>e.set(r,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],i=e[n];_P(i)&&_P(r)&&e.hasOwnProperty(n)&&!zn(r)&&!_d(r)?e[n]=bP(i,r):e[n]=r}return e}const lte=Symbol();function ute(e){return!_P(e)||!Object.prototype.hasOwnProperty.call(e,lte)}const{assign:qm}=Object;function cte(e){return!!(zn(e)&&e.effect)}function dte(e,t,n,r){const{state:i,actions:a,getters:s}=t,o=n.state.value[e];let f;function m(){o||(n.state.value[e]=i?i():{});const y=bi(n.state.value[e]);return qm(y,a,Object.keys(s||{}).reduce((b,T)=>(b[T]=O_(xe(()=>{y_(n);const x=n._s.get(e);return s[T].call(x,x)})),b),{}))}return f=cV(e,m,t,n,r,!0),f}function cV(e,t,n={},r,i,a){let s;const o=qm({actions:{}},n),f={deep:!0};let m,y,b=new Set,T=new Set,x;const $=r.state.value[e];!a&&!$&&(r.state.value[e]={});let A;function N(Y){let z;m=y=!1,typeof Y=="function"?(Y(r.state.value[e]),z={type:rx.patchFunction,storeId:e,events:x}):(bP(r.state.value[e],Y),z={type:rx.patchObject,payload:Y,storeId:e,events:x});const H=A=Symbol();ur().then(()=>{A===H&&(m=!0)}),y=!0,Pv(b,z,r.state.value[e])}const O=a?function(){const{state:z}=n,H=z?z():{};this.$patch(K=>{qm(K,H)})}:uV;function I(){s.stop(),b.clear(),T.clear(),r._s.delete(e)}const U=(Y,z="")=>{if(eD in Y)return Y[c6]=z,Y;const H=function(){y_(r);const K=Array.from(arguments),ne=new Set,le=new Set;function pe(ce){ne.add(ce)}function ae(ce){le.add(ce)}Pv(T,{args:K,name:H[c6],store:q,after:pe,onError:ae});let se;try{se=Y.apply(this&&this.$id===e?this:q,K)}catch(ce){throw Pv(le,ce),ce}return se instanceof Promise?se.then(ce=>(Pv(ne,ce),ce)).catch(ce=>(Pv(le,ce),Promise.reject(ce))):(Pv(ne,se),se)};return H[eD]=!0,H[c6]=z,H},B={_p:r,$id:e,$onAction:Q9.bind(null,T),$patch:N,$reset:O,$subscribe(Y,z={}){const H=Q9(b,Y,z.detached,()=>K()),K=s.run(()=>nn(()=>r.state.value[e],ne=>{(z.flush==="sync"?y:m)&&Y({storeId:e,type:rx.direct,events:x},ne)},qm({},f,z)));return H},$dispose:I},q=aa(B);r._s.set(e,q);const ee=(r._a&&r._a.runWithContext||ste)(()=>r._e.run(()=>(s=i1()).run(()=>t({action:U}))));for(const Y in ee){const z=ee[Y];if(zn(z)&&!cte(z)||_d(z))a||($&&ute(z)&&(zn(z)?z.value=$[Y]:bP(z,$[Y])),r.state.value[e][Y]=z);else if(typeof z=="function"){const H=U(z,Y);ee[Y]=H,o.actions[Y]=z}}return qm(q,ee),qm(In(q),ee),Object.defineProperty(q,"$state",{get:()=>r.state.value[e],set:Y=>{N(z=>{qm(z,Y)})}}),r._p.forEach(Y=>{qm(q,s.run(()=>Y({store:q,app:r._a,pinia:r,options:o})))}),$&&a&&n.hydrate&&n.hydrate(q.$state,$),m=!0,y=!0,q}function dV(e,t,n){let r;const i=typeof t=="function";r=i?n:t;function a(s,o){const f=a1();return s=s||(f?Ai(lV,null):null),s&&y_(s),s=sV,s._s.has(e)||(i?cV(e,t,r,s):dte(e,r,s)),s._s.get(e)}return a.$id=e,a}const fte=-1,hte=-2,pte=-3,mte=-4,gte=-5,yte=-6,vte=-7,fV=2**32-1,xP=fV-1;function _te(e){return!(!Number.isInteger(e)||e<0||e>xP)}function bte(e){return!(!Number.isInteger(e)||e<0||e>fV)}function xte(e){return Uint8Array.fromBase64(e).buffer}function wte(e){return Uint8Array.from(Buffer.from(e,"base64")).buffer}function Ste(e){const t=atob(e),n=t.length,r=new Uint8Array(n);for(let i=0;i<n;i++)r[i]=t.charCodeAt(i);return r.buffer}const Cte=typeof Uint8Array.fromBase64=="function",Tte=typeof process=="object"&&process.versions?.node!==void 0,kte=Cte?xte:Tte?wte:Ste;function Ete(e,t){return e}const Pte=Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength").get,tD=typeof SharedArrayBuffer>"u"?void 0:Object.getOwnPropertyDescriptor(SharedArrayBuffer.prototype,"byteLength").get,$te={fromPrimitive:e=>e,fromISOString:e=>new Date(e),fromStringValue:(e,t)=>e==="URL"?new URL(t):e==="URLSearchParams"?new URLSearchParams(t):Temporal[e.slice(9)].from(t),fromArrayBuffer:e=>e,fromRegExpInfo:(e,t)=>new RegExp(e,t),fromViewInfo:(e,t,n,r)=>{try{Pte.call(t)}catch(a){if(!tD)throw a;tD.call(t)}const i=globalThis[e];return n!==void 0?new i(t,n,r):new i(t)},box:e=>Object(e),createArray:e=>new Array(e),createSparseArray:e=>{const t=[];return t[xP]=void 0,delete t[xP],t.length=e,t},createObject:()=>({}),createNullPrototypeObject:()=>Object.create(null),createSet:()=>new Set,createMap:()=>new Map,set:(e,t,n)=>{e[t]=n},addValue:(e,t)=>
5{e.add(t)},addEntry:(e,t,n)=>{e.set(t,n)}},Mte=Object.freeze($te);function Ate(e,t,n){return Ite(JSON.parse(e),t)}function Ite(e,t,n){const r=Ete(Mte);if(typeof e=="number")return o(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const i=e,a=Array(i.length);let s=null;function o(f,m=!1){if(f===fte)return r.fromPrimitive(void 0);if(f===pte)return r.fromPrimitive(NaN);if(f===mte)return r.fromPrimitive(1/0);if(f===gte)return r.fromPrimitive(-1/0);if(f===yte)return r.fromPrimitive(-0);if(m||typeof f!="number")throw new Error("Invalid input");if(f in a)return a[f];if(f>=i.length)throw new Error("Invalid input");const y=i[f];if(!y||typeof y!="object")a[f]=r.fromPrimitive(y);else if(Array.isArray(y))if(typeof y[0]=="string"){const b=y[0],T=t&&Object.hasOwn(t,b)?t[b]:void 0;if(T){let x=y[1];if(typeof x!="number"&&(x=i.push(y[1])-1),Object.hasOwn(a,x))return a[f]=T(a[x]);if(s??=new Set,s.has(x))throw new Error("Invalid circular reference");return s.add(x),a[f]=T(o(x)),s.delete(x),a[f]}switch(b){case"Date":a[f]=r.fromISOString(y[1]);break;case"Set":const x=r.createSet();a[f]=x;for(let N=1;N<y.length;N+=1)r.addValue(x,o(y[N]));break;case"Map":const $=r.createMap();a[f]=$;for(let N=1;N<y.length;N+=2)r.addEntry($,o(y[N]),o(y[N+1]));break;case"RegExp":a[f]=r.fromRegExpInfo(y[1],y[2]);break;case"Object":{const N=y[1];if(typeof i[N]=="object"&&i[N][0]!=="BigInt")throw new Error("Invalid input");a[f]=r.box(o(N));break}case"BigInt":a[f]=r.fromPrimitive(BigInt(y[1]));break;case"null":const A=r.createNullPrototypeObject();a[f]=A;for(let N=1;N<y.length;N+=2){const O=y[N];if(typeof O!="string")throw new Error("Cannot parse an object with a non-string key");if(O==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");r.set(A,O,o(y[N+1]))}break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Float16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":case"DataView":{if(i[y[1]][0]!=="ArrayBuffer")throw new Error("Invalid data");const N=o(y[1]);a[f]=r.fromViewInfo(b,N,y[2],y[3]);break}case"ArrayBuffer":{const N=y[1];if(typeof N!="string")throw new Error("Invalid ArrayBuffer encoding");a[f]=r.fromArrayBuffer(kte(N));break}case"URL":case"URLSearchParams":case"Temporal.Duration":case"Temporal.Instant":case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.PlainMonthDay":case"Temporal.PlainYearMonth":case"Temporal.ZonedDateTime":{a[f]=r.fromStringValue(b,y[1]);break}default:throw new Error(`Unknown type ${b}`)}}else if(y[0]===vte){const b=y[1];if(!bte(b))throw new Error("Invalid input");const T=r.createSparseArray(b);a[f]=T;for(let x=2;x<y.length;x+=2){const $=y[x];if(!_te($)||$>=b)throw new Error("Invalid input");r.set(T,$,o(y[x+1]))}}else{const b=r.createArray(y.length);a[f]=b;for(let T=0;T<y.length;T+=1){const x=y[T];x!==hte&&r.set(b,T,o(x))}}else{const b=r.createObject();a[f]=b;for(const T of Object.keys(y)){if(T==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");r.set(b,T,o(y[T]))}}return a[f]}return o(0)}const Dte=new Set(["link","style","script","noscript"]),Lte=new Set(["title","titleTemplate","script","style","noscript"]),wP=new Set(["base","meta","link","style","script","noscript"]),Ote=new Set(["title","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),Rte=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),nD=new Set(["key","tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"]),Bte=new Set(["templateParams","htmlAttrs","bodyAttrs"]),Fte=new Set(["theme-color","google-site-verification","og","article","book","profile","twitter","author"]),d6=e=>typeof e=="number"?Number.isFinite(e):e;function hV(e){return e==="__proto__"||e==="constructor"||e==="prototype"}const SP=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,rD={base:-10,title:10},zte={critical:-8,high:-1,low:2},iD={meta:{"content-security-policy":-30,charset:-20,viewport:-15},link:{preconnect:20,stylesheet:60,preload:70,modulepreload:70,prefetch:90,"dns-prefetch":90,prerender:90},script:{async:30,defer:80,sync:50},style:{imported:40,sync:60}},Nte=/@import/,T2=e=>e===""||e===!0;function Vte(e,t){if(typeof t.tagPriority=="number")return t.tagPriority;let n=100;const r=zte[t.tagPriority]||0,i=e.resolvedOptions.disableCapoSorting?{link:{},script:{},style:{}}:iD;if(t.tag in rD)n=rD[t.tag];else if(t.tag==="meta"){const a=t.props["http-equiv"]==="content-security-policy"?"content-security-policy":t.props.charset?"charset":t.props.name==="viewport"?"viewport":null;a&&(n=iD.meta[a])}else if(t.tag==="link"&&t.props.rel)n=i.link[t.props.rel];else if(t.tag==="script"){const a=String(t.props.type);T2(t.props.async)?n=i.script.async:t.props.src&&!T2(t.props.defer)&&!T2(t.props.async)&&a!=="module"&&!a.endsWith("json")||t.innerHTML&&!a.endsWith("json")?n=i.script.sync:(T2(t.props.defer)&&t.props.src&&!T2(t.props.async)||a==="module")&&(n=i.script.defer)}else t.tag==="style"&&(n=t.innerHTML&&Nte.test(t.innerHTML)?i.style.imported:i.style.sync);return(n||100)+r}
5function CP(e,t={},n){for(const r in e){const i=e[r],a=n?`${n}:${r}`:r;typeof i=="object"&&i!==null?CP(i,t,a):typeof i=="function"&&(t[a]=i)}return t}const pV=(()=>{if(console.createTask)return console.createTask;const e={run:t=>t()};return()=>e})();function mV(e,t,n,r){for(let i=n;i<e.length;i+=1)try{const a=r?r.run(()=>e[i](...t)):e[i](...t);if(a&&typeof a.then=="function")return Promise.resolve(a).then(()=>mV(e,t,i+1,r))}catch(a){return Promise.reject(a)}}function qte(e,t,n){if(e.length>0)return mV(e,t,0,pV(n))}function jte(e,t,n){if(e.length>0){const r=pV(n);return Promise.all(e.map(i=>r.run(()=>i(...t))))}}function f6(e,t){for(const n of[...e])n(t)}var Ute=class{_hooks;_before;_after;_deprecatedHooks;_deprecatedMessages;constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(e,t,n={}){if(!e||typeof t!="function")return()=>{};const r=e;let i;for(;this._deprecatedHooks[e];)i=this._deprecatedHooks[e],e=i.to;if(i&&!n.allowDeprecated){let a=i.message;a||(a=`${r} hook has been deprecated`+(i.to?`, please use ${i.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(a)||this._deprecatedMessages.add(a)}if(!t.name)try{Object.defineProperty(t,"name",{get:()=>"_"+e.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(t),()=>{t&&(this.removeHook(e,t),t=void 0)}}hookOnce(e,t){let n,r=(...i)=>(typeof n=="function"&&n(),n=void 0,r=void 0,t(...i));return n=this.hook(e,r),n}removeHook(e,t){const n=this._hooks[e];if(n){const r=n.indexOf(t);r!==-1&&n.splice(r,1),n.length===0&&(this._hooks[e]=void 0)}}clearHook(e){this._hooks[e]=void 0}deprecateHook(e,t){this._deprecatedHooks[e]=typeof t=="string"?{to:t}:t;const n=this._hooks[e]||[];this._hooks[e]=void 0;for(const r of n)this.hook(e,r)}deprecateHooks(e){for(const t in e)this.deprecateHook(t,e[t])}addHooks(e){const t=CP(e),n=Object.keys(t).map(r=>this.hook(r,t[r]));return()=>{for(const r of n)r();n.length=0}}removeHooks(e){const t=CP(e);for(const n in t)this.removeHook(n,t[n])}removeAllHooks(){this._hooks={}}callHook(e,...t){return this.callHookWith(qte,e,t)}callHookParallel(e,...t){return this.callHookWith(jte,e,t)}callHookWith(e,t,n){const r=this._before||this._after?{name:t,args:n,context:{}}:void 0;this._before&&f6(this._before,r);const i=e(this._hooks[t]?[...this._hooks[t]]:[],n,t);return i instanceof Promise?i.finally(()=>{this._after&&r&&f6(this._after,r)}):(this._after&&r&&f6(this._after,r),i)}beforeEach(e){return this._before=this._before||[],this._before.push(e),()=>{if(this._before!==void 0){const t=this._before.indexOf(e);t!==-1&&this._before.splice(t,1)}}}afterEach(e){return this._after=this._after||[],this._after.push(e),()=>{if(this._after!==void 0){const t=this._after.indexOf(e);t!==-1&&this._after.splice(t,1)}}}};function Hte(){return new Ute}const Wte=["name","property","http-equiv"],Gte=new Set(["viewport","description","keywords","robots"]);function gV(e){const t=e.indexOf(":");if(t===-1)return!1;const n=e.indexOf(":",t+1),r=e.slice(t+1,n===-1?e.length:n);return r==="twitter"?e==="meta:twitter:image"||e.startsWith("meta:twitter:image:"):Fte.has(r)}function TP(e){const{props:t,tag:n}=e;if(Rte.has(n))return n;if(n==="link"&&t.rel==="canonical")return"canonical";if(n==="link"&&t.rel==="alternate"){if(t.hreflang)return`alternate:${t.hreflang}`;if(t.type)return`alternate:${t.type}:${t.href||""}`}if(t.charset)return"charset";if(e.tag==="meta"){for(const r of Wte)if(t[r]!==void 0){const i=t[r],a=i&&typeof i=="string"&&i.includes(":"),s=i&&Gte.has(i),f=!(a||s)&&e.key?`:key:${e.key}`:"";return`${n}:${i}${f}`}}if(e.key)return`${n}:key:${e.key}`;if(t.id)return`${n}:id:${t.id}`;if(n==="link"&&t.rel==="alternate")return`alternate:${t.href||""}`;if(Lte.has(n)){const r=e.textContent||e.innerHTML;if(r)return`${n}:content:${r}`}}function yV(e){const t=e._h||e._d;if(t)return t;const n=e.textContent||e.innerHTML;if(n)return n;const r=Object.keys(e.props).sort();return`${e.tag}:${r.map(i=>`${i}:${String(e.props[i])}`).join(",")}`}function m4(e,t,n){typeof e==="function"&&(!n||n!=="titleTemplate"&&!(n[0]==="o"&&n[1]==="n"))&&(e=e());const i=t?t(n,e):e;if(Array.isArray(i)){let a;for(let s=0;s<i.length;s++){const o=m4(i[s],t);a?a[s]=o:o!==i[s]&&(a=i.slice(0,s),a[s]=o)}return a||i}if(i?.constructor===Object){let a;for(const s in i){const o=hV(s),f=o?void 0:m4(i[s],t,s);if(!a&&(o||s==="_resolver"||f!==i[s])){a={};for(const y in i){if(y===s)break;a[y]=i[y]}}a&&!o&&(a[s]=f)}return a||i}return i}const Yte=/[\s"'<>/=\x00-\x1F\x7F]/;function Zte(e,t){const n=e==="style"?new Map:new Set;function r(i){if(i==null||i===void 0)return;const a=String(i).trim();if(a)if(e==="style"){const[s,...o]=a.split(":").map(f=>f?f.trim():"");s&&o.length&&n.set(s,o.join(":"))}
5else a.split(" ").filter(Boolean).forEach(s=>n.add(s))}return typeof t=="string"?e==="style"?t.split(";").forEach(r):r(t):Array.isArray(t)?t.forEach(i=>r(i)):t&&typeof t=="object"&&Object.entries(t).forEach(([i,a])=>{a&&a!=="false"&&(e==="style"?n.set(String(i).trim(),String(a)):r(i))}),n}function vV(e,t){if(e.props=e.props||{},!t)return e;if(e.tag==="templateParams")return e.props=t,e;const n=wP.has(e.tag)||e.tag==="htmlAttrs"||e.tag==="bodyAttrs";for(const r of Object.keys(t)){if(hV(r))continue;const i=r.startsWith("data-"),a=n&&!nD.has(r),s=a&&!i?r.toLowerCase():r;if(a&&(!s||Yte.test(s)))continue;const o=t[r];if(o===null){e.props[s]=null;continue}if(r==="class"||r==="style"){e.props[r]=Zte(r,o);continue}if(nD.has(r)){if((r==="textContent"||r==="innerHTML")&&typeof o=="object"){let y=t.type;if(t.type||(y="application/json"),!y?.endsWith("json")&&y!=="speculationrules")continue;t.type=y,e.props.type=y,e[r]=JSON.stringify(o)}else e[r]=o;continue}const f=String(o),m=e.tag==="meta"&&s==="content";f==="true"||f===""?e.props[s]=i||m?f:!0:!o&&i&&f==="false"?e.props[s]="false":o!==void 0&&(e.props[s]=o)}return e}function Kte(e,t){const n=typeof t=="object"&&typeof t!="function"?t:{[e==="script"||e==="noscript"||e==="style"?"innerHTML":"textContent"]:t},r=vV({tag:e,props:{}},n);return r.key&&Dte.has(r.tag)&&(r.props["data-hid"]=r._h=r.key),r.tag==="script"&&typeof r.innerHTML=="object"&&(r.innerHTML=JSON.stringify(r.innerHTML),r.props.type=r.props.type||"application/json"),Array.isArray(r.props.content)?r.props.content.map(i=>({...r,props:{...r.props,content:i}})):r}function Xte(e,t){if(!e)return[];typeof e=="function"&&(e=e());const n=(i,a)=>{for(let s=0;s<t.length;s++)a=t[s](i,a);return a};e=n(void 0,e);const r=[];return e=m4(e,n),Object.entries(e||{}).forEach(([i,a])=>{if(a!==void 0)for(const s of Array.isArray(a)?a:[a])r.push(Kte(i,s))}),r.flat()}function aD(e,t){const n=typeof t=="function"?t(e):t,r=n.key||String(e.plugins.size+1);e.plugins.get(r)||(e.plugins.set(r,n),e.hooks.addHooks(n.hooks||{}))}function Jte(e={}){const t=Hte();t.addHooks(e.hooks||{});const n=!e.document,r=new Map,i=new Map,a=new Set,s={_entryCount:1,plugins:i,dirty:!1,resolvedOptions:e,hooks:t,ssr:n,entries:r,headEntries(){return[...r.values()]},use:o=>aD(s,o),push(o,f){const m={...f||{}};delete m.head;const y=m._index??s._entryCount++,b={_i:y,input:o,options:m},T={_poll(x=!1){s.dirty=!0,!x&&a.add(y),t.callHook("entries:updated",s)},dispose(){r.delete(y)&&s.invalidate()},patch(x){(!m.mode||m.mode==="server"&&n||m.mode==="client"&&!n)&&(b.input=x,r.set(y,b),T._poll())}};return T.patch(o),T},async resolveTags(){const o={tagMap:new Map,tags:[],entries:[...s.entries.values()]};for(await t.callHook("entries:resolve",o);a.size;){const T=a.values().next().value;a.delete(T);const x=r.get(T);if(x){const $={tags:Xte(x.input,e.propResolvers||[]).map(A=>Object.assign(A,x.options)),entry:x};await t.callHook("entries:normalize",$),x._tags=$.tags.map((A,N)=>(A._w=Vte(s,A),A._p=(x._i<<10)+N,A._d=TP(A),A._d||(A._h=yV(A)),A))}}let f=!1;o.entries.flatMap(T=>(T._tags||[]).map(x=>({...x,props:{...x.props}}))).sort(SP).reduce((T,x)=>{const $=x._d||x._h;if(!T.has($))return T.set($,x);const A=T.get($);if((x?.tagDuplicateStrategy||(Bte.has(x.tag)?"merge":null)||(x.key&&x.key===A.key?"merge":null))==="merge"){const O={...A.props};Object.entries(x.props).forEach(([I,U])=>O[I]=I==="style"?new Map([...A.props.style||new Map,...U]):I==="class"?new Set([...A.props.class||new Set,...U]):U),T.set($,{...x,props:O})}else x._p>>10===A._p>>10&&x.tag==="meta"&&gV($)?(T.set($,Object.assign([...Array.isArray(A)?A:[A],x],x)),f=!0):(x._w===A._w?x._p>A._p:x?._w<A?._w)&&T.set($,x);return T},o.tagMap);const m=o.tagMap.get("title"),y=o.tagMap.get("titleTemplate");if(s._title=m?.textContent,y){const T=y?.textContent;if(s._titleTemplate=T,T){let x=typeof T=="function"?T(m?.textContent):T;typeof x=="string"&&!s.plugins.has("template-params")&&(x=x.replace("%s",m?.textContent||"")),m?x===null?o.tagMap.delete("title"):o.tagMap.set("title",{...m,textContent:x}):(y.tag="title",y.textContent=x)}}o.tags=Array.from(o.tagMap.values()),f&&(o.tags=o.tags.flat().sort(SP)),await t.callHook("tags:beforeResolve",o),await t.callHook("tags:resolve",o),await t.callHook("tags:afterResolve",o);const b=[];for(const T of o.tags){const{innerHTML:x,tag:$,props:A}=T;if(Ote.has($)&&!(Object.keys(A).length===0&&!d6(T.innerHTML)&&!d6(T.textContent))&&!($==="meta"&&!d6(A.content)&&!A["http-equiv"]&&!A.charset)){if($==="script"&&x){if(String(A.type).endsWith("json")){const N=typeof x=="str
5ing"?x:JSON.stringify(x);T.innerHTML=N.replace(/</g,"\\u003C")}else typeof x=="string"&&(T.innerHTML=x.replace(new RegExp(`</${$}`,"g"),`<\\/${$}`));T._d=TP(T)}b.push(T)}}return b},invalidate(){for(const o of r.values())a.add(o._i);s.dirty=!0,t.callHook("entries:updated",s)}};return(e?.plugins||[]).forEach(o=>aD(s,o)),s.hooks.callHook("init",s),e.init?.forEach(o=>o&&s.push(o)),s}const h6="%separator";function Qte(e,t,n=!1){let r;if(t==="s"||t==="pageTitle")r=e.pageTitle;else if(t.includes(".")){const i=t.indexOf(".");r=e[t.substring(0,i)]?.[t.substring(i+1)]}else r=e[t];if(r!==void 0)return n?(r||"").replace(/\\/g,"\\\\").replace(/</g,"\\u003C").replace(/"/g,'\\"'):r||""}function I5(e,t,n,r=!1){if(typeof e!="string"||!e.includes("%"))return e;let i=e;try{i=decodeURI(e)}catch{}const a=i.match(/%\w+(?:\.\w+)?/g);if(!a)return e;const s=e.includes(h6);return e=e.replace(/%\w+(?:\.\w+)?/g,o=>{if(o===h6||!a.includes(o))return o;const f=Qte(t,o.slice(1),r);return f!==void 0?f:o}).trim(),s&&(e=e.split(h6).map(o=>o.trim()).filter(o=>o!=="").join(n?` ${n} `:" ")),e}const oD=e=>e.includes(":key")?e:e.split(":").join(":key:"),ene={key:"aliasSorting",hooks:{"tags:resolve":e=>{let t=!1;for(const n of e.tags){const r=n.tagPriority;if(!r)continue;const i=String(r);if(i.startsWith("before:")){const a=oD(i.slice(7)),s=e.tagMap.get(a);s&&(typeof s.tagPriority=="number"&&(n.tagPriority=s.tagPriority),n._p=s._p-1,t=!0)}else if(i.startsWith("after:")){const a=oD(i.slice(6)),s=e.tagMap.get(a);s&&(typeof s.tagPriority=="number"&&(n.tagPriority=s.tagPriority),n._p=s._p+1,t=!0)}}t&&(e.tags=e.tags.sort(SP))}}},tne={key:"deprecations",hooks:{"entries:normalize":({tags:e})=>{for(const t of e)t.props.children&&(t.innerHTML=t.props.children,delete t.props.children),t.props.hid&&(t.key=t.props.hid,delete t.props.hid),t.props.vmid&&(t.key=t.props.vmid,delete t.props.vmid),t.props.body&&(t.tagPosition="bodyClose",delete t.props.body)}}};async function kP(e){if(typeof e==="function")return e;if(e instanceof Promise)return await e;if(Array.isArray(e))return await Promise.all(e.map(n=>kP(n)));if(e?.constructor===Object){const n={};for(const r of Object.keys(e))n[r]=await kP(e[r]);return n}return e}const nne={key:"promises",hooks:{"entries:resolve":async e=>{const t=[];for(const n in e.entries)e.entries[n]._promisesProcessed||t.push(kP(e.entries[n].input).then(r=>{e.entries[n].input=r,e.entries[n]._promisesProcessed=!0}));await Promise.all(t)}}},rne={meta:"content",link:"href",htmlAttrs:"lang"},ine=["innerHTML","textContent"],ane=e=>({key:"template-params",hooks:{"entries:normalize":t=>{const n=t.tags.filter(r=>r.tag==="templateParams"&&r.mode==="server")?.[0]?.props||{};Object.keys(n).length&&(e._ssrPayload={templateParams:{...e._ssrPayload?.templateParams||{},...n}})},"tags:resolve":({tagMap:t,tags:n})=>{const r=t.get("templateParams")?.props||{},i=r.separator||"|";delete r.separator,r.pageTitle=I5(r.pageTitle||e._title||"",r,i);for(const a of n){if(a.processTemplateParams===!1)continue;const s=rne[a.tag];if(s&&typeof a.props[s]=="string")a.props[s]=I5(a.props[s],r,i);else if(a.processTemplateParams||a.tag==="titleTemplate"||a.tag==="title")for(const o of ine)typeof a[o]=="string"&&(a[o]=I5(a[o],r,i,a.tag==="script"&&a.props.type.endsWith("json")))}e._templateParams=r,e._separator=i},"tags:afterResolve":({tagMap:t})=>{const n=t.get("title");n?.textContent&&n.processTemplateParams!==!1&&(n.textContent=I5(n.textContent,e._templateParams,e._separator))}}}),one=(e,t)=>zn(t)?qt(t):t,JM="usehead";function sne(e){return{install(n){n.config.globalProperties.$unhead=e,n.config.globalProperties.$head=e,n.provide(JM,e)}}.install}function lne(){if(a1()){const e=Ai(JM);if(e)return e}throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.")}function une(e,t={}){const n=t.head||lne();return n.ssr?n.push(e||{},t):cne(n,e,t)}function cne(e,t,n={}){const r=_c();if(r&&!r.active)return{patch(){},dispose(){},_poll(){}};const i=De(!1);let a;return ko(()=>{const o=i.value?{}:m4(t,one);a?a.patch(o):a=e.push(o,n)}),Ci()&&(xu(()=>{a.dispose()}),Qz(()=>{i.value=!0}),Jz(()=>{i.value=!1})),a}function dne(e){const t=e||tV();return t?.ssrContext?.head||t?.runWithContext(()=>{if(a1())return Ai(JM)})}function fu(e,t={}){const n=dne(t.nuxt);if(n)return une(e,{head:n,...t})}const fne=(()=>{const e={};return(t,n)=>{let r=[];
5n.charCodeAt(n.length-1)===47&&(n=n.slice(0,-1)||"/");let i=n.split("/");return i.length,r.unshift({data:e,params:{_:i.slice(1).join("/")}}),r}})(),_V=e=>If({},...fne("",e).map(t=>t.data).reverse()),hne=_V;let kS;function pne(){return kS=$fetch(KM(`builds/meta/${ul().app.buildId}.json`),{responseType:"json"}),kS.catch(e=>{}),kS}function mne(){return kS||pne()}function bV(e){const t=typeof e=="string"?e:e.path;try{return hne(t)}catch{return{}}}async function gne(e){return null}let iy=null;async function yne(){if(iy)return iy;const e=document.getElementById("__NUXT_DATA__");if(!e)return{};const t=await vne(e.textContent||""),n=e.dataset.src?await gne(e.dataset.src):void 0;return iy={...t,...n,...window.__NUXT__},iy.config?.public&&(iy.config.public=aa(iy.config.public)),iy}async function vne(e){return await Ate(e,En()._payloadRevivers)}function xV(e,t){En()._payloadRevivers[e]=t}const _ne=Wee(()=>{xV("skipHydrate",e=>{})}),bne=[["NuxtError",e=>lg(e)],["EmptyShallowRef",e=>Bn(e==="_"?void 0:e==="0n"?BigInt(0):p4(e))],["EmptyRef",e=>De(e==="_"?void 0:e==="0n"?BigInt(0):p4(e))],["ShallowRef",e=>Bn(e)],["ShallowReactive",e=>Sf(e)],["Ref",e=>De(e)],["Reactive",e=>aa(e)]],xne=sa({name:"nuxt:revive-payload:client",order:-30,async setup(e){let t,n;for(const[r,i]of bne)xV(r,i);Object.assign(e.payload,([t,n]=Pf(()=>e.runWithContext(yne)),t=await t,n(),t)),window.__NUXT__=e.payload}});async function QM(e,t={}){const n=t.document||e.resolvedOptions.document;if(!n||!e.dirty)return;const r={shouldRender:!0,tags:[]};if(await e.hooks.callHook("dom:beforeRender",r),!!r.shouldRender)return e._domUpdatePromise||(e._domUpdatePromise=new Promise(async i=>{const a=new Map,s=new Promise(x=>{e.resolveTags().then($=>{x($.map(A=>{const N=a.get(A._d)||0,O={tag:A,id:(N?`${A._d}:${N}`:A._d)||A._h,shouldRender:!0};return A._d&&gV(A._d)&&a.set(A._d,N+1),O}))})});let o=e._dom;if(!o){o={title:n.title,elMap:new Map().set("htmlAttrs",n.documentElement).set("bodyAttrs",n.body)};for(const x of["body","head"]){const $=n[x]?.children;for(const A of $){const N=A.tagName.toLowerCase();if(!wP.has(N))continue;const O=vV({tag:N,props:{}},{innerHTML:A.innerHTML,...A.getAttributeNames().reduce((I,U)=>(I[U]=A.getAttribute(U),I),{})||{}});if(O.key=A.getAttribute("data-hid")||void 0,O._d=TP(O)||yV(O),o.elMap.has(O._d)){let I=1,U=O._d;for(;o.elMap.has(U);)U=`${O._d}:${I++}`;o.elMap.set(U,A)}else o.elMap.set(O._d,A)}}}o.pendingSideEffects={...o.sideEffects},o.sideEffects={};function f(x,$,A){const N=`${x}:${$}`;o.sideEffects[N]=A,delete o.pendingSideEffects[N]}function m({id:x,$el:$,tag:A}){const N=A.tag.endsWith("Attrs");o.elMap.set(x,$),N||(A.textContent&&A.textContent!==$.textContent&&($.textContent=A.textContent),A.innerHTML&&A.innerHTML!==$.innerHTML&&($.innerHTML=A.innerHTML),f(x,"el",()=>{$?.remove(),o.elMap.delete(x)}));for(const O in A.props){if(!Object.prototype.hasOwnProperty.call(A.props,O))continue;const I=A.props[O];if(O.startsWith("on")&&typeof I=="function"){const B=$?.dataset;if(B&&B[`${O}fired`]){const q=O.slice(0,-5);I.call($,new Event(q.substring(2)))}$.getAttribute(`data-${O}`)!==""&&((A.tag==="bodyAttrs"?n.defaultView:$).addEventListener(O.substring(2),I.bind($)),$.setAttribute(`data-${O}`,""));continue}const U=`attr:${O}`;if(O==="class"){if(!I)continue;for(const B of I)N&&f(x,`${U}:${B}`,()=>$.classList.remove(B)),!$.classList.contains(B)&&$.classList.add(B)}else if(O==="style"){if(!I)continue;for(const[B,q]of I)f(x,`${U}:${B}`,()=>{$.style.removeProperty(B)}),$.style.setProperty(B,q)}else I!==!1&&I!==null&&($.getAttribute(O)!==I&&$.setAttribute(O,I===!0?"":String(I)),N&&f(x,U,()=>$.removeAttribute(O)))}}const y=[],b={bodyClose:void 0,bodyOpen:void 0,head:void 0},T=await s;for(const x of T){const{tag:$,shouldRender:A,id:N}=x;if(A){if($.tag==="title"){n.title=$.textContent,f("title","",()=>n.title=o.title);continue}x.$el=x.$el||o.elMap.get(N),x.$el?m(x):wP.has($.tag)&&y.push(x)}}for(const x of y){const $=x.tag.tagPosition||"head";x.$el=n.createElement(x.tag.tag),m(x),b[$]=b[$]||n.createDocumentFragment(),b[$].appendChild(x.$el)}for(const x of T)await e.hooks.callHook("dom:renderTag",x,n,f);b.head&&n.head.appendChild(b.head),b.bodyOpen&&n.body.insertBefore(b.bodyOpen,n.body.firstChild),b.bodyClose&&n.body.appendChild(b.bodyClose);for(const x in o.pendingSideEffects)o.pendingSideEffects[x]();e._dom=o,await e.hooks.callHook("dom:rendered",{renders:T}),i()}).finally(()=>{e._domUpdatePromise=void 0,e.dirty=!1})),e._domUpdatePromise}function wne(e={}){const t=e.domOptions?.render||QM;e.document=e.document||(typeof window<"u"?document:void 0);const n=e.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML||!1,r=Jte({...e,plugins:[...e.plugins||[],{key:"client",hooks:{"entries:updated":t}}],init:[n?JSON.parse(n):!1,...e.init||[]]});return r.ssr=!1,r}function Sne(e,t){let n=0;return()=>{const r=++n;t(()=>{n===r&&e()})}}function Cne(e={}){const t=wne({domOptions:{render:Sne(()=>QM(t),n=>setTimeout(n,0))},...e});return t.install=sne(t),t}const Tne={disableDefaults:!0,disableCapoSorting:!1,plugins:[tne,nne,ane,ene]},kne=sa({name:"nuxt:head",enforce:"pre",setup(e){const t=Cne(Tne);e.vueApp.use(t);{let n=!0;const r=async()=>{n=!1,await QM(t)};t.hooks.hook("dom:beforeRender",i=>{i.shouldRender=!n}),e.hooks.hook("page:start",()=>{n=!0}),e.hooks.hook("page:finish",()=>{e.isHydrating||r()}),e.hooks.hook("app:error",r),e.hooks.hook("app:suspense:resolve",r)}}});const eA=e=>e.startsWith("/");function wV(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}
vendor: 4,446 bytes, line 5
5function Ene(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&wV(e.default)}const yi=Object.assign;function p6(e,t){const n={};for(const r in t){const i=t[r];n[r]=yc(i)?i.map(e):e(i)}return n}const ix=()=>{},yc=Array.isArray;function sD(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}const SV=Symbol("");function v_(e,t){return yi(new Error,{type:e,[SV]:!0},t)}function Dh(e,t){return e instanceof Error&&SV in e&&(t==null||!!(e.type&t))}const Pne=Symbol(""),lD=Symbol(""),tA=Symbol(""),nA=Symbol(""),EP=Symbol("");function CV(e){return Ai(nA)}const Rv=typeof document<"u",TV=/#/g,$ne=/&/g,Mne=/\//g,Ane=/=/g,Ine=/\?/g,kV=/\+/g,Dne=/%5B/g,Lne=/%5D/g,EV=/%5E/g,One=/%60/g,PV=/%7B/g,Rne=/%7C/g,$V=/%7D/g,Bne=/%20/g;function rA(e){return e==null?"":encodeURI(""+e).replace(Rne,"|").replace(Dne,"[").replace(Lne,"]")}function Fne(e){return rA(e).replace(PV,"{").replace($V,"}").replace(EV,"^")}function PP(e){return rA(e).replace(kV,"%2B").replace(Bne,"+").replace(TV,"%23").replace($ne,"%26").replace(One,"`").replace(PV,"{").replace($V,"}").replace(EV,"^")}function zne(e){return PP(e).replace(Ane,"%3D")}function Nne(e){return rA(e).replace(TV,"%23").replace(Ine,"%3F")}function Vne(e){return Nne(e).replace(Mne,"%2F")}function g4(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const qne=/\/$/,jne=e=>e.replace(qne,"");function m6(e,t,n="/"){let r,i={},a="",s="";const o=t.indexOf("#");let f=t.indexOf("?");return f=o>=0&&f>o?-1:f,f>=0&&(r=t.slice(0,f),a=t.slice(f,o>0?o:t.length),i=e(a.slice(1))),o>=0&&(r=r||t.slice(0,o),s=t.slice(o,t.length)),r=Gne(r??t,n),{fullPath:r+a+s,path:r,query:i,hash:g4(s)}}function Une(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function uD(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Hne(e,t,n){const r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&__(t.matched[r],n.matched[i])&&MV(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function __(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function MV(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!Wne(e[n],t[n]))return!1;return!0}function Wne(e,t){return yc(e)?cD(e,t):yc(t)?cD(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function cD(e,t){return yc(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Gne(e,t){if(eA(e))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),i=r[r.length-1];(i===".."||i===".")&&r.push("");let a=n.length-1,s,o;for(s=0;s<r.length;s++)if(o=r[s],o!==".")if(o==="..")a>1&&a--;else break;return n.slice(0,a).join("/")+"/"+r.slice(s).join("/")}const Pl={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};function Yne(e){if(!e)if(Rv){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),jne(e)}const Zne=/^[^#]+#/;function Kne(e,t){return e.replace(Zne,"#")+t}function Xne(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const iA=()=>history.scrollRestoration==="manual"?{left:window.scrollX,top:window.scrollY}:null;function Jne(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),i=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=Xne(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function dD(e,t){return(history.state?history.state.position-t:-1)+e}const $P=new Map;function Qne(e){$P.set(e,iA())}function ere(e){const t=$P.get(e);return $P.delete(e),t}function tre(e){return typeof e=="string"||e&&typeof e=="object"}function AV(e){return typeof e=="string"||typeof e=="symbol"}function nre(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;r<n.length;++r){const i=n[r].replace(kV," "),a=i.indexOf("="),s=g4(a<0?i:i.slice(0,a)),o=a<0?null:g4(i.slice(a+1));if(s in t){let f=t[s];yc(f)||(f=t[s]=[f]),f.push(o)}else t[s]=o}return t}function fD(e){let t="";for(let n in e){const r=e[n];if(n=zne(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(yc(r)?r.map(i=>
5i&&PP(i)):[r&&PP(r)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function rre(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=yc(r)?r.map(i=>i==null?null:""+i):r==null?r:""+r)}return t}function k2(){let e=[];function t(r){return e.push(r),()=>{const i=e.indexOf(r);i>-1&&e.splice(i,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Wm(e,t,n,r,i,a=s=>s()){const s=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((o,f)=>{const m=T=>{T===!1?f(v_(4,{from:n,to:t})):T instanceof Error?f(T):tre(T)?f(v_(2,{from:t,to:T})):(s&&r.enterCallbacks[i]===s&&typeof T=="function"&&s.push(T),o())},y=a(()=>e.call(r&&r.instances[i],t,n,m));let b=Promise.resolve(y);e.length<3&&(b=b.then(m)),b.catch(T=>f(T))})}function g6(e,t,n,r,i=a=>a()){const a=[];for(const s of e)for(const o in s.components){let f=s.components[o];if(!(t!=="beforeRouteEnter"&&!s.instances[o]))if(wV(f)){const m=(f.__vccOpts||f)[t];m&&a.push(Wm(m,n,r,s,o,i))}else{let m=f();a.push(()=>m.then(y=>{if(!y)throw new Error(`Couldn't resolve component "${o}" at "${s.path}"`);const b=Ene(y)?y.default:y;s.mods[o]=y,s.components[o]=b;const T=(b.__vccOpts||b)[t];return T&&Wm(T,n,r,s,o,i)()}))}}return a}function ire(e,t){const n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let s=0;s<a;s++){const o=t.matched[s];o&&(e.matched.find(m=>__(m,o))?r.push(o):n.push(o));const f=e.matched[s];f&&(t.matched.find(m=>__(m,f))||i.push(f))}return[n,r,i]}let are=()=>location.protocol+"//"+location.host;function IV(e,t){const{pathname:n,search:r,hash:i}=t,a=e.indexOf("#");if(a>-1){let s=i.includes(e.slice(a))?e.slice(a).length:1,o=i.slice(s);return o[0]!=="/"&&(o="/"+o),uD(o,"")}return uD(n,e)+r+i}function ore(e,t,n,r){let i=[],a=[],s=null;const o=({state:T})=>{const x=IV(e,location),$=n.value,A=t.value;let N=0;if(T){if(n.value=x,t.value=T,s&&s===$){s=null;return}N=A?T.position-A.position:0}else r(x);i.forEach(O=>{O(n.value,$,{delta:N,type:"pop",direction:N?N>0?"forward":"back":""})})};function f(){s=n.value}function m(T){i.push(T);const x=()=>{const $=i.indexOf(T);$>-1&&i.splice($,1)};return a.push(x),x}function y(){const{history:T}=window;T.state&&T.replaceState(yi({},T.state,{scroll:iA()}),"")}function b(){for(const T of a)T();a=[],window.removeEventListener("popstate",o),window.removeEventListener("pagehide",y)}return window.addEventListener("popstate",o),window.addEventListener("pagehide",y),{pauseListeners:f,listen:m,destroy:b}}function hD(e,t,n,r=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:null}}function sre(e){const{history:t,location:n}=window,r={value:IV(e,n)},i={value:t.state};i.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(f,m,y){const b=e.indexOf("#"),T=b>-1?(n.host&&document.querySelector("base")?e:e.slice(b))+f:are()+e+f;try{t[y?"replaceState":"pushState"](m,"",T),i.value=m}catch{n[y?"replace":"assign"](T)}}function s(f,m){a(f,yi({},t.state,hD(i.value.back,f,i.value.forward,!0),m,{position:i.value.position}),!0),r.value=f}function o(f,m){const y=yi({},i.value,t.state,{forward:f,scroll:iA()});a(y.current,y,!0),a(f,yi({},hD(r.value,f,null),{position:y.position+1},m),!1),r.value=f}return{location:r,state:i,push:o,replace:s}}function lre(e){e=Yne(e);const t=sre(e),n=ore(e,t.state,t.location,t.replace);function r(a,s=!0){s||n.pauseListeners(),history.go(a)}const i=yi({location:"",base:e,go:r,createHref:Kne.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}const ure={type:0,value:""},cre=/[a-zA-Z0-9_]/;function dre(e){if(!e)return[[]];if(e==="/")return[[ure]];if(!eA(e))throw new Error(`Invalid path "${e}"`);function t(x){throw new Error(`ERR (${n})/"${m}": ${x}`)}let n=0,r=n;const i=[];let a;function s(){a&&i.push(a),a=[]}let o=0,f,m="",y="";function b(){m&&(n===0?a.push({type:0,value:m}):n===1||n===2||n===3?(a.length>1&&(f==="*"||f==="+")&&t(`A repeatable param (${m}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:m,regexp:y,repeatable:f==="*"||f==="+",optional:f==="*"||f==="?"})):t("Invalid state to consume buffer"),m="")}function T(){m+=f}for(;o<e.length;)switch(f=e[o++],n){case 0:f==="\\"?(r=n,n=4):f==="/"?(m&&b(),s()):f===":"?(b(),n=1):T();break;case 4:T(),n=r;break;case 1:f==="("?n=2:cre.test(f)?T():(b(),n=0,f!=="*"&&f!=="?"&&f!=="+"&&o--);break;case 2:f===")"?y[y.length-1]=="\\"?y=y.slice(0,-1)+f:n=3:y+=f;break;case 3:b(),n=0,f!=="*"&&f!=="?"&&f!=="+"&&o--,y="";break;default:t("Unknown state")}return n===2&&t(`Unfinished custom RegExp for param "${m}"`),b(),s(),i}const pD="[^/]+?",fre={sensitive:!1,strict:!1,start:!0,end:!0},hre=/[.+*?^${}()[\]/\\]/g;function pre(e,t){const n=yi({},fre,t),r=[];let i=n.start?"^":"";const a=[];for(const m of e){const y=m.length?[]:[90];n.strict&&!m.length&&(i+="/");for(let b=0;b<m.length;b++){const T=m[b];let x=40+(n.sensitive?.25:0);if(T.type===0)b||(i+="/"),i+=T.value.replace(hre,"\\$&"),x+=40;else if(T.type===1){const{value:$,repeatable:A,optional:N,regexp:O}=T;a.push({name:$,repeatable:A,optional:N});const I=O||pD;
vendor: 5,006 bytes, line 5
5if(I!==pD){x+=10;try{new RegExp(`(${I})`)}catch(B){throw new Error(`Invalid custom RegExp for param "${$}" (${I}): `+B.message)}}let U=A?`((?:${I})(?:/(?:${I}))*)`:`(${I})`;b||(U=N&&m.length<2?`(?:/${U})`:"/"+U),N&&(U+="?"),i+=U,x+=20,N&&(x+=-8),A&&(x+=-20),I===".*"&&(x+=-50)}y.push(x)}r.push(y)}if(n.strict&&n.end){const m=r.length-1;r[m][r[m].length-1]+=.7000000000000001}n.strict||(i+="/?"),n.end?i+="$":n.strict&&!i.endsWith("/")&&(i+="(?:/|$)");const s=new RegExp(i,n.sensitive?"":"i");function o(m){const y=m.match(s),b={};if(!y)return null;for(let T=1;T<y.length;T++){const x=y[T]||"",$=a[T-1];b[$.name]=x&&$.repeatable?x.split("/"):x}return b}function f(m){let y="",b=!1;for(const T of e){(!b||!y.endsWith("/"))&&(y+="/"),b=!1;for(const x of T)if(x.type===0)y+=x.value;else if(x.type===1){const{value:$,repeatable:A,optional:N}=x,O=$ in m?m[$]:"";if(yc(O)&&!A)throw new Error(`Provided param "${$}" is an array but it is not repeatable (* or + modifiers)`);const I=yc(O)?O.join("/"):O;if(!I)if(N)T.length<2&&(y.endsWith("/")?y=y.slice(0,-1):b=!0);else throw new Error(`Missing required param "${$}"`);y+=I}}return y||"/"}return{re:s,score:r,keys:a,parse:o,stringify:f}}function mre(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function DV(e,t){let n=0;const r=e.score,i=t.score;for(;n<r.length&&n<i.length;){const a=mre(r[n],i[n]);if(a)return a;n++}if(Math.abs(i.length-r.length)===1){if(mD(r))return 1;if(mD(i))return-1}return i.length-r.length}function mD(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const gre={strict:!1,end:!0,sensitive:!1};function yre(e,t,n){const r=pre(dre(e.path),n),i=yi(r,{record:e,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}function vre(e,t){const n=[],r=new Map;t=sD(gre,t);function i(b){return r.get(b)}function a(b,T,x){const $=!x,A=yD(b);A.aliasOf=x&&x.record;const N=sD(t,b),O=[A];if("alias"in b){const B=typeof b.alias=="string"?[b.alias]:b.alias;for(const q of B)O.push(yD(yi({},A,{components:x?x.record.components:A.components,path:q,aliasOf:x?x.record:A})))}let I,U;for(const B of O){const{path:q}=B;if(T&&!eA(q)){const Q=T.record.path,ee=Q[Q.length-1]==="/"?"":"/";B.path=T.record.path+(q&&ee+q)}if(I=yre(B,T,N),x?x.alias.push(I):(U=U||I,U!==I&&U.alias.push(I),$&&b.name&&!vD(I)&&s(b.name)),LV(I)&&f(I),A.children){const Q=A.children;for(let ee=0;ee<Q.length;ee++)a(Q[ee],I,x&&x.children[ee])}x=x||I}return U?()=>{s(U)}:ix}function s(b){if(AV(b)){const T=r.get(b);T&&(r.delete(b),n.splice(n.indexOf(T),1),T.children.forEach(s),T.alias.forEach(s))}else{const T=n.indexOf(b);T>-1&&(n.splice(T,1),b.record.name&&r.delete(b.record.name),b.children.forEach(s),b.alias.forEach(s))}}function o(){return n}function f(b){const T=xre(b,n);n.splice(T,0,b),b.record.name&&!vD(b)&&r.set(b.record.name,b)}function m(b,T){let x,$={},A,N;if("name"in b&&b.name){if(x=r.get(b.name),!x)throw v_(1,{location:b});N=x.record.name,$=yi(gD(T.params,x.keys.filter(U=>!U.optional).concat(x.parent?x.parent.keys.filter(U=>U.optional):[]).map(U=>U.name)),b.params&&gD(b.params,x.keys.map(U=>U.name))),A=x.stringify($)}else if(b.path!=null)A=b.path,x=n.find(U=>U.re.test(A)),x&&($=x.parse(A),N=x.record.name,x.keys.forEach(U=>{U.optional&&!$[U.name]&&delete $[U.name]}));else{if(x=T.name?r.get(T.name):n.find(U=>U.re.test(T.path)),!x)throw v_(1,{location:b,currentLocation:T});N=x.record.name,$=yi({},T.params,b.params),A=x.stringify($)}const O=[];let I=x;for(;I;)O.unshift(I.record),I=I.parent;return{name:N,path:A,params:$,matched:O,meta:bre(O)}}e.forEach(b=>a(b));function y(){n.length=0,r.clear()}return{addRoute:a,resolve:m,removeRoute:s,clearRoutes:y,getRoutes:o,getRecordMatcher:i}}function gD(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function yD(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:_re(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function _re(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function vD(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function bre(e){return e.reduce((t,n)=>yi(t,n.meta),{})}function xre(e,t){let n=0,r=t.length;for(;n!==r;){const a=n+r>>1;DV(e,t[a])<0?r=a:n=a+1}const i=wre(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function wre(e){let t=e;for(;t=t.parent;)if(LV(t)&&DV(e,t)===0)return t}function LV({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function _D(e){const t=Ai(tA),n=Ai(nA),r=xe(()=>{const f=v(e.to);return t.resolve(f)}),i=xe(()=>{const{matched:f}=r.value,{length:m}=f,y=f[m-1],b=n.matched;
5if(!y||!b.length)return-1;const T=b.findIndex(__.bind(null,y));if(T>-1)return T;const x=bD(f[m-2]);return m>1&&bD(y)===x&&b[b.length-1].path!==x?b.findIndex(__.bind(null,f[m-2])):T}),a=xe(()=>i.value>-1&&kre(n.params,r.value.params)),s=xe(()=>i.value>-1&&i.value===n.matched.length-1&&MV(n.params,r.value.params));function o(f={}){if(Tre(f)){const m=t[v(e.replace)?"replace":"push"](v(e.to)).catch(ix);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>m),m}return Promise.resolve()}return{route:r,href:xe(()=>r.value.href),isActive:a,isExactActive:s,navigate:o}}function Sre(e){return e.length===1?e[0]:e}const Cre=Fe({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:_D,setup(e,{slots:t}){const n=aa(_D(e)),{options:r}=Ai(tA),i=xe(()=>({[xD(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[xD(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const a=t.default&&Sre(t.default(n));return e.custom?a:Yn("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},a)}}});function Tre(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function kre(e,t){for(const n in t){const r=t[n],i=e[n];if(yc(r)){if(!yc(i)||i.length!==r.length||r.some((a,s)=>a.valueOf()!==i[s].valueOf()))return!1}else if(r!==i)return!1}return!0}function bD(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const xD=(e,t,n)=>e??t??n,Ere=Fe({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Ai(EP),i=xe(()=>e.route||r.value),a=Ai(lD,0),s=xe(()=>{let m=v(a);const{matched:y}=i.value;let b;for(;(b=y[m])&&!b.components;)m++;return m}),o=xe(()=>i.value.matched[s.value]);co(lD,xe(()=>s.value+1)),co(Pne,o),co(EP,i);const f=De();return nn(()=>[f.value,o.value,e.name],([m,y,b],[T,x,$])=>{y&&(y.instances[b]=m,x&&x!==y&&m&&m===T&&(y.leaveGuards.size||(y.leaveGuards=x.leaveGuards),y.updateGuards.size||(y.updateGuards=x.updateGuards))),m&&y&&(!x||!__(y,x)||!T)&&(y.enterCallbacks[b]||[]).forEach(A=>A(m))},{flush:"post"}),()=>{const m=i.value,y=e.name,b=o.value,T=b&&b.components[y];if(!T)return wD(n.default,{Component:T,route:m});const x=b.props[y],$=x?x===!0?m.params:typeof x=="function"?x(m):x:null,N=Yn(T,yi({},$,t,{onVnodeUnmounted:O=>{O.component.isUnmounted&&(b.instances[y]=null)},ref:f}));return wD(n.default,{Component:N,route:m})||N}}});function wD(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const OV=Ere;function Pre(e){const t=vre(e.routes,e),n=e.parseQuery||nre,r=e.stringifyQuery||fD,i=e.history,a=k2(),s=k2(),o=k2(),f=Bn(Pl),m=Bn(0);let y=Pl;Rv&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const b=p6.bind(null,ut=>""+ut),T=p6.bind(null,Vne),x=p6.bind(null,g4);function $(ut,At){let Dt,Ot;AV(ut)?(Dt=t.getRecordMatcher(ut),Ot=At):Ot=ut;const Ee=t.addRoute(Ot,Dt);return m.value++,()=>{Ee(),m.value++}}function A(ut){const At=t.getRecordMatcher(ut);At&&(t.removeRoute(At),m.value++)}function N(){t.clearRoutes(),m.value++}function O(){return t.getRoutes().map(ut=>ut.record)}function I(ut){return!!t.getRecordMatcher(ut)}function U(ut,At){if(m.value,typeof ut=="string"){At=At||(ut.startsWith("/")?Pl:f.value);const yt=m6(n,ut,At.path),St=t.resolve({path:yt.path},At),Ie=i.createHref(yt.fullPath);return yi(yt,St,{params:x(St.params),redirectedFrom:void 0,href:Ie})}At=yi({},At||(ut.path!=null&&ut.path.startsWith("/")&&!("name"in ut&&ut.name)?Pl:f.value));let Dt;if(ut.path!=null)Dt=yi({},ut,{path:m6(n,ut.path,At.path).path});else{const yt=yi({},ut.params);for(const St in yt)yt[St]==null&&delete yt[St];Dt=yi({},ut,{params:T(yt)}),At.params=T(At.params)}const Ot=t.resolve(Dt,At),Ee=ut.hash||"";Ot.params=b(x(Ot.params));const Ye=Une(r,yi({},ut,{hash:Fne(Ee),path:Ot.path})),it=i.createHref(Ye);return yi({fullPath:Ye,hash:Ee,query:r===fD?rre(ut.query):ut.query||{}},Ot,{redirectedFrom:void 0,href:it})}function B(ut){return typeof ut=="string"?m6(n,ut,f.value.path):yi({},ut)}function q(ut,At){if(y!==ut)return v_(8,{from:At,to:ut})}function Q(ut){return z(ut)}function ee(ut){return Q(yi(B(ut),{replace:!0}))}function Y(ut,At){const Dt=ut.matched[ut.matched.length-1];if(Dt&&Dt.redirect){const{redirect:Ot}=Dt;let Ee=typeof Ot=="function"?Ot(ut,At):Ot;return typeof Ee=="string"&&(Ee=Ee.includes("?")||Ee.includes("#")?Ee=B(Ee):{path:Ee},Ee.params={}),yi({query:ut.query,hash:ut.hash,params:Ee.path!=null?{}:ut.params},Ee)}}function z(ut,At){const Dt=y=U(ut),Ot=f.value,Ee=ut.state,Ye=ut.force,it=ut.replace===!0,yt=Y(Dt,Ot);if(yt)return z(yi(B(yt),{state:typeof yt=="object"?yi({},Ee,yt.state):Ee,force:Ye,replace:it}),At||Dt);const St=Dt;St.redirectedFrom=At;let Ie;return!Ye&&Hne(r,Ot,Dt)&&(Ie=v_(16,{to:St,from:Ot}),Pt(Ot,Ot,!0,!1)),(Ie?Promise.resolve(Ie):ne(St,Ot)).catch(qe=>Dh(qe)?Dh(qe,2)?qe:at(qe):Be(qe,St,Ot)).then(qe=>{if(qe){if(Dh(qe,2))return z(yi({replace:it},B(qe.to),{state:typeof qe.to=="object"?yi({},Ee,qe.to.state):Ee,force:Ye}),At||St)}else qe=pe(St,Ot,!0,it,Ee);return le(St,Ot,qe),qe})}function H(ut,At){const Dt=q(ut,At);
5return Dt?Promise.reject(Dt):Promise.resolve()}function K(ut){const At=Ve.values().next().value;return At&&typeof At.runWithContext=="function"?At.runWithContext(ut):ut()}function ne(ut,At){let Dt;const[Ot,Ee,Ye]=ire(ut,At);Dt=g6(Ot.reverse(),"beforeRouteLeave",ut,At);for(const yt of Ot)yt.leaveGuards.forEach(St=>{Dt.push(Wm(St,ut,At))});const it=H.bind(null,ut,At);return Dt.push(it),zt(Dt).then(()=>{Dt=[];for(const yt of a.list())Dt.push(Wm(yt,ut,At));return Dt.push(it),zt(Dt)}).then(()=>{Dt=g6(Ee,"beforeRouteUpdate",ut,At);for(const yt of Ee)yt.updateGuards.forEach(St=>{Dt.push(Wm(St,ut,At))});return Dt.push(it),zt(Dt)}).then(()=>{Dt=[];for(const yt of Ye)if(yt.beforeEnter)if(yc(yt.beforeEnter))for(const St of yt.beforeEnter)Dt.push(Wm(St,ut,At));else Dt.push(Wm(yt.beforeEnter,ut,At));return Dt.push(it),zt(Dt)}).then(()=>(ut.matched.forEach(yt=>yt.enterCallbacks={}),Dt=g6(Ye,"beforeRouteEnter",ut,At,K),Dt.push(it),zt(Dt))).then(()=>{Dt=[];for(const yt of s.list())Dt.push(Wm(yt,ut,At));return Dt.push(it),zt(Dt)}).catch(yt=>Dh(yt,8)?yt:Promise.reject(yt))}function le(ut,At,Dt){o.list().forEach(Ot=>K(()=>Ot(ut,At,Dt)))}function pe(ut,At,Dt,Ot,Ee){const Ye=q(ut,At);if(Ye)return Ye;const it=At===Pl,yt=Rv?history.state:{};Dt&&(Ot||it?i.replace(ut.fullPath,yi({scroll:it&&yt&&yt.scroll},Ee)):i.push(ut.fullPath,Ee)),f.value=ut,Pt(ut,At,Dt,it),at()}let ae;function se(){ae||(ae=i.listen((ut,At,Dt)=>{if(!ct.listening)return;const Ot=U(ut),Ee=Y(Ot,ct.currentRoute.value);if(Ee){z(yi(Ee,{replace:!0,force:!0}),Ot).catch(ix);return}y=Ot;const Ye=f.value;Rv&&Dt.delta&&Qne(dD(Ye.fullPath,Dt.delta)),ne(Ot,Ye).catch(it=>Dh(it,12)?it:Dh(it,2)?(z(yi(B(it.to),{force:!0}),Ot).then(yt=>{Dh(yt,20)&&!Dt.delta&&Dt.type==="pop"&&i.go(-1,!1)}).catch(ix),Promise.reject()):(Dt.delta&&i.go(-Dt.delta,!1),Be(it,Ot,Ye))).then(it=>{it=it||pe(Ot,Ye,!1),it&&(Dt.delta&&!Dh(it,8)?i.go(-Dt.delta,!1):Dt.type==="pop"&&Dh(it,20)&&i.go(-1,!1)),le(Ot,Ye,it)}).catch(ix)}))}let ce=k2(),ye=k2(),$e;function Be(ut,At,Dt){at(ut);const Ot=ye.list();return Ot.length&&Ot.forEach(Ee=>Ee(ut,At,Dt)),Promise.reject(ut)}function je(){return $e&&f.value!==Pl?Promise.resolve():new Promise((ut,At)=>{ce.add([ut,At])})}function at(ut){return $e||($e=!ut,se(),ce.list().forEach(([At,Dt])=>ut?Dt(ut):At()),ce.reset()),ut}function Pt(ut,At,Dt,Ot){const{scrollBehavior:Ee}=e;if(!Rv||!Ee)return Promise.resolve();const Ye=!Dt&&ere(dD(ut.fullPath,0))||(Ot||!Dt)&&history.state&&history.state.scroll||null;return ur().then(()=>Ee(ut,At,Ye)).then(it=>ut===f.value&&it&&Jne(it)).catch(it=>ut===f.value&&Be(it,ut,At))}const Qe=ut=>i.go(ut);let nt;const Ve=new Set,ct={currentRoute:f,listening:!0,addRoute:$,removeRoute:A,clearRoutes:N,hasRoute:I,getRoutes:O,resolve:U,options:e,push:Q,replace:ee,go:Qe,back:()=>Qe(-1),forward:()=>Qe(1),beforeEach:a.add,beforeResolve:s.add,afterEach:o.add,onError:ye.add,isReady:je,install(ut){ut.component("RouterLink",Cre),ut.component("RouterView",OV),ut.config.globalProperties.$router=ct,Object.defineProperty(ut.config.globalProperties,"$route",{enumerable:!0,get:()=>v(f)}),Rv&&!nt&&f.value===Pl&&(nt=!0,Q(i.location).catch(Ot=>{}));const At={};for(const Ot in Pl)Object.defineProperty(At,Ot,{get:()=>f.value[Ot],enumerable:!0});ut.provide(tA,ct),ut.provide(nA,Sf(At)),ut.provide(EP,f);const Dt=ut.unmount;Ve.add(ut),ut.unmount=function(){Ve.delete(ut),Ve.size<1&&(y=Pl,ae&&ae(),ae=null,f.value=Pl,nt=!1,$e=!1),Dt()}}};function zt(ut){return ut.reduce((At,Dt)=>At.then(()=>K(Dt)),Promise.resolve())}return ct}const $re=/(:\w+)\([^)]+\)/g,Mre=/(:\w+)[?+*]/g,Are=/:\w+/g,Ire=(e,t)=>t.path.replace($re,"$1").replace(Mre,"$1").replace(Are,n=>e.params[n.slice(1)]?.toString()||""),MP=(e,t)=>{const n=e.route.matched.find(i=>i.components?.default===e.Component.type),r=t??n?.meta.key??(n&&Ire(e.route,n));return typeof r=="function"?r(e.route):r},Dre=(e,t)=>({default:()=>e?Yn(tJ,e===!0?{}:e,t):t});function RV(e){return Array.isArray(e)?e:[e]}const Lre="modulepreload",Ore=function(e,t){return new URL(e,t).href},SD={},Ti=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){let m=function(y){return Promise.all(y.map(b=>Promise.resolve(b).then(T=>({status:"fulfilled",value:T}),T=>({status:"rejected",reason:T}))))};const s=document.getElementsByTagName("link"),o=document.querySelector("meta[property=csp-nonce]"),f=o?.nonce||o?.getAttribute("nonce");i=m(n.map(y=>{if(y=Ore(y,r),y in SD)return;SD[y]=!0;const b=y.endsWith(".css"),T=b?'[rel="stylesheet"]':"";if(r)for(let $=s.length-1;$>=0;$--){const A=s[$];if(A.href===y&&(!b||A.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${y}"]${T}`))return;const x=document.createElement("link");if(x.rel=b?"stylesheet":Lre,b||(x.as="script"),x.crossOrigin="",x.href=y,f&&x.setAttribute("nonce",f),document.head.appendChild(x),b)return new Promise(($,A)=>{x.addEventListener("load",$),x.addEventListener("error",()=>A(new Error(`Unable to preload CSS for ${y}`)))})}))}function a(s){const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=s,window.dispatchEvent(o),!o.defaultPrevented)throw s}return i.then(s=>{for(const o of s||[])o.status==="rejected"&&a(o.reason);return t().catch(a)})},Rre={layout:!1}
5,y6=[{name:"slug",path:"/:slug(.*)*",meta:Rre||{},component:()=>Ti(()=>import("./ZmTiNy98.js"),__vite__mapDeps([0,1]),import.meta.url)},{name:"page",path:"/:slug(.*)*",component:()=>Ti(()=>import("./uen6jxSB.js"),__vite__mapDeps([2,3]),import.meta.url)}],BV=(e,t)=>({default:()=>e?Yn(eQ,e===!0?{}:e,t):t.default?.()}),Bre=/(:\w+)\([^)]+\)/g,Fre=/(:\w+)[?+*]/g,zre=/:\w+/g;function CD(e){const t=e?.meta.key??e.path.replace(Bre,"$1").replace(Fre,"$1").replace(zre,n=>e.params[n.slice(1)]?.toString()||"");return typeof t=="function"?t(e):t}function Nre(e,t){return e===t||t===Pl?!1:CD(e)!==CD(t)?!0:!e.matched.every((r,i)=>r.components&&r.components.default===t.matched[i]?.components?.default)}function TD(e){return Array.isArray(e)?e:[e]}function FV(e){const t=[];for(const n of e)n&&t.push({...n,onAfterLeave:n.onAfterLeave?TD(n.onAfterLeave):void 0,onBeforeLeave:n.onBeforeLeave?TD(n.onBeforeLeave):void 0});return If(...t)}const Vre={scrollBehavior(e,t,n){const r=En(),i=ja().options?.scrollBehaviorType??"auto";return e.path.replace(/\/$/,"")===t.path.replace(/\/$/,"")?t.hash&&!e.hash?{left:0,top:0}:e.hash?{el:e.hash,top:zV(e.hash),behavior:i}:!1:(typeof e.meta.scrollToTop=="function"?e.meta.scrollToTop(e,t):e.meta.scrollToTop)===!1?!1:t===Pl?kD(e,t,n,i):new Promise(s=>{const o=()=>{requestAnimationFrame(()=>s(kD(e,t,n,i)))};r.hooks.hookOnce("page:loading:end",()=>{const f=r["~transitionPromise"];f?f.then(o):o()})})}};function zV(e){try{const t=document.querySelector(e);if(t)return(Number.parseFloat(getComputedStyle(t).scrollMarginTop)||0)+(Number.parseFloat(getComputedStyle(document.documentElement).scrollPaddingTop)||0)}catch{}return 0}function kD(e,t,n,r){if(n)return n;const i=Nre(e,t);return e.hash?{el:e.hash,top:zV(e.hash),behavior:i?r:"instant"}:{left:0,top:0}}const qre={linkActiveClass:"active",linkExactActiveClass:"active-strict",hashMode:!1,scrollBehaviorType:"auto"},Om={...qre,...Vre},jre=async(e,t)=>{let n,r;if(!e.meta?.validate)return;const i=([n,r]=Pf(()=>Promise.resolve(e.meta.validate(e))),n=await n,r(),n);if(i===!0)return;const a=lg({fatal:!0,status:i&&(i.status||i.statusCode)||404,statusText:i&&(i.statusText||i.statusMessage)||`Page Not Found: ${e.fullPath}`,data:{path:e.fullPath}});return typeof window<"u"&&window.history.pushState({},"",t.fullPath),a},vr=dV("typo3",{state:()=>({initialData:null,pageData:null,userData:null,popinDetailData:null}),getters:{backendLayout(){return this.pageData?.appearance?.backendLayout??null},headData(){return this.pageData?.meta??null},isLoggedIn(){return this.userData?.logged??!1},feUser(){return this.userData?.feUser??null},siteBuilderInfos(){return this.initialData?.siteBuilderInfos??null},colors(){return this.initialData?.siteBuilderInfos?.colors??null},favicon(){return this.initialData?.siteBuilderInfos?.favicon??null},logo(){return this.initialData?.siteBuilderInfos?.logo??null},isSearchPage(){return(this.pageData?.content?.colPos0?.filter(e=>e.type==="cimelastic_search").length??0)>0},detailData(){return this.pageData?.content?.colPos0?.filter(e=>e.type==="cimdirectory_display")?.[0]?.content?.data??null}}});function Un(e){return e==null||typeof e>"u"||typeof e=="object"&&e==null||e.constructor===Array&&e.length===0||typeof e=="string"&&e==""}function AP(e){return typeof e=="string"?`'${e}'`:new Hre().serialize(e)}const Ure=" _-,;:!?.'\"()[]{}@*/\\&#%`^+<=>|~$0123456789abcdefghijklmnopqrstuvwxyz",D5=(function(){const e=new Uint8Array(128);for(let t=0;t<69;t++)e[Ure.charCodeAt(t)]=t+1;for(let t=65;t<=90;t++)e[t]=e[t+32];return e})();function v6(e,t){if(e===t)return 0;const n=Math.min(e.length,t.length);let r=0;for(let i=0;i<n;i++){const a=e.charCodeAt(i),s=t.charCodeAt(i);if(a===s)continue;const o=a<128&&D5[a]?D5[a]:a+128,f=s<128&&D5[s]?D5[s]:s+128;if(o!==f)return o<f?-1:1;r===0&&(r=a>s?-1:1)}return e.length!==t.length?e.length<t.length?-1:1:r}const Hre=(function(){class e{#e=new Map;compare(n,r){const i=typeof n,a=typeof r;return i==="string"&&a==="string"?v6(n,r):i==="number"&&a==="number"?n-r:v6(this.serialize(n,!0),this.serialize(r,!0))}serialize(n,r){if(n===null)return"null";switch(typeof n){case"string":return r?n:`'${n}'`;case"bigint":return`${n}n`;case"object":return this.$object(n);case"function":return this.$function(n)}return String(n)}serializeObject(n){const r=Object.prototype.toString.call(n);if(r!=="[object Object]")return this.serializeBuiltInType(r.length<10?`unknown:${r}`:r.slice(8,-1),n);const i=n.constructor,a=i===Object||i===void 0?"":i.name;if(a!==""&&globalThis[a]===i)return this.serializeBuiltInType(a,n);if("toJSON"in n&&typeof n.toJSON=="function"){const f=n.toJSON();return a+(f!==null&&typeof f=="object"?this.$object(f):`(${this.serialize(f)})`)}const s=Object.keys(n).sort(v6);let o=`${a}{`;for(let f=0;f<s.length;f++){const m=s[f];o+=`${m}:${this.serialize(n[m])}`,f<s.length-1&&(o+=",")}return o+"}"}serializeBuiltInType(n,r){const i=this["$"+n];if(i)return i.call(this,r);if(typeof r.entries=="function")return this.serializeObjectEntries(n,r.entries());throw new Error(`Cannot serialize ${n}`)}serializeObjectEntries(n,r){const i=Array.from(r).sort((s,o)=>this.compare(s[0],o[0]));let a=`${n}{`;for(let s=0;s<i.length;s++){const[o,f]=i[s];a+=`${this.serialize(o,!0)}:${this.serialize(f)}`,s<i.length-1&&(a+=",")}return a+"}"}$object(n){let r=this.#e.get(n);return r===void 0&&(this.#e.set(n,`#${this.#e.size}`),r=this.serializeObject(n),this.#e.set(n,r)),r}$function(n){const r=Function.prototype.toString.call(n);
5return r.slice(-15)==="[native code] }"?`${n.name||""}()[native]`:`${n.name}(${n.length})${r.replace(/\s*\n\s*/g,"")}`}$Array(n){let r="[";for(let i=0;i<n.length;i++)r+=this.serialize(n[i]),i<n.length-1&&(r+=",");return r+"]"}$Date(n){try{return`Date(${n.toISOString()})`}catch{return"Date(null)"}}$ArrayBuffer(n){return`ArrayBuffer[${new Uint8Array(n).join(",")}]`}$Set(n){return`Set${this.$Array(Array.from(n).sort((r,i)=>this.compare(r,i)))}`}$Map(n){return this.serializeObjectEntries("Map",n.entries())}}for(const t of["Error","RegExp","URL"])e.prototype["$"+t]=function(n){return`${t}(${n})`};for(const t of["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"])e.prototype["$"+t]=function(n){return`${t}[${n.join(",")}]`};for(const t of["BigInt64Array","BigUint64Array"])e.prototype["$"+t]=function(n){return`${t}[${n.join("n,")}${n.length>0?"n":""}]`};return e})();function bp(e,t){return e===t||AP(e)===AP(t)}const Wre=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],Gre=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998],Yre="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",ay=[];var Zre=class{_data=new L5;_hash=new L5([...Wre]);_nDataBytes=0;_minBufferSize=0;finalize(e){e&&this._append(e);const t=this._nDataBytes*8,n=this._data.sigBytes*8;return this._data.words[n>>>5]|=128<<24-n%32,this._data.words[(n+64>>>9<<4)+14]=Math.floor(t/4294967296),this._data.words[(n+64>>>9<<4)+15]=t,this._data.sigBytes=this._data.words.length*4,this._process(),this._hash}_doProcessBlock(e,t){const n=this._hash.words;let r=n[0],i=n[1],a=n[2],s=n[3],o=n[4],f=n[5],m=n[6],y=n[7];for(let b=0;b<64;b++){if(b<16)ay[b]=e[t+b]|0;else{const I=ay[b-15],U=(I<<25|I>>>7)^(I<<14|I>>>18)^I>>>3,B=ay[b-2],q=(B<<15|B>>>17)^(B<<13|B>>>19)^B>>>10;ay[b]=U+ay[b-7]+q+ay[b-16]}const T=o&f^~o&m,x=r&i^r&a^i&a,$=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),A=(o<<26|o>>>6)^(o<<21|o>>>11)^(o<<7|o>>>25),N=y+A+T+Gre[b]+ay[b],O=$+x;y=m,m=f,f=o,o=s+N|0,s=a,a=i,i=r,r=N+O|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+a|0,n[3]=n[3]+s|0,n[4]=n[4]+o|0,n[5]=n[5]+f|0,n[6]=n[6]+m|0,n[7]=n[7]+y|0}_append(e){typeof e=="string"&&(e=L5.fromUtf8(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes}_process(e){let t,n=this._data.sigBytes/64;e?n=Math.ceil(n):n=Math.max((n|0)-this._minBufferSize,0);const r=n*16,i=Math.min(r*4,this._data.sigBytes);if(r){for(let a=0;a<r;a+=16)this._doProcessBlock(this._data.words,a);t=this._data.words.splice(0,r),this._data.sigBytes-=i}return new L5(t,i)}},L5=class NV{words;sigBytes;constructor(t,n){t=this.words=t||[],this.sigBytes=n===void 0?t.length*4:n}static fromUtf8(t){const n=unescape(encodeURIComponent(t)),r=n.length,i=[];for(let a=0;a<r;a++)i[a>>>2]|=(n.charCodeAt(a)&255)<<24-a%4*8;return new NV(i,r)}toBase64(){const t=[];for(let n=0;n<this.sigBytes;n+=3){const r=this.words[n>>>2]>>>24-n%4*8&255,i=this.words[n+1>>>2]>>>24-(n+1)%4*8&255,a=this.words[n+2>>>2]>>>24-(n+2)%4*8&255,s=r<<16|i<<8|a;for(let o=0;o<4&&n*8+o*6<this.sigBytes*8;o++)t.push(Yre.charAt(s>>>6*(3-o)&63))}return t.join("")}concat(t){if(this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4),this.sigBytes%4)for(let n=0;n<t.sigBytes;n++){const r=t.words[n>>>2]>>>24-n%4*8&255;this.words[this.sigBytes+n>>>2]|=r<<24-(this.sigBytes+n)%4*8}else for(let n=0;n<t.sigBytes;n+=4)this.words[this.sigBytes+n>>>2]=t.words[n>>>2];this.sigBytes+=t.sigBytes}};function Kre(e){return new Zre().finalize(e).toBase64()}function gy(e){return Kre(AP(e))}const Xre={trailing:!0};function Jre(e,t=25,n={}){if(n={...Xre,...n},!Number.isFinite(t))throw new TypeError("Expected `wait` to be a finite number");let r,i,a=[],s,o;const f=(b,T)=>(s=Qre(e,b,T),s.finally(()=>
5{if(s=null,n.trailing&&o&&!i){const x=f(b,o);return o=null,x}}),s),m=function(...b){return n.trailing&&(o=b),s||new Promise(T=>{const x=!i&&n.leading;clearTimeout(i),i=setTimeout(()=>{i=null;const $=n.leading?r:f(this,b);o=null;for(const A of a)A($);a=[]},t),x?(r=f(this,b),T(r)):a.push(T)})},y=b=>{b&&(clearTimeout(b),i=null)};return m.isPending=()=>!!i,m.cancel=()=>{y(i),a=[],o=null},m.flush=()=>{if(y(i),!o||s)return;const b=o;return o=null,f(this,b)},m}async function Qre(e,t,n){return await e.apply(t,n)}const VV=Symbol.for("nuxt:client-only"),jRe=Fe({name:"ClientOnly",inheritAttrs:!1,props:["fallback","placeholder","placeholderTag","fallbackTag"],setup(e,{slots:t,attrs:n}){const r=Bn(!1);Hn(()=>{r.value=!0});const i=Ci();return i&&(i._nuxtClientOnly=!0),co(VV,!0),()=>{if(r.value){const f=t.default?.();return f&&f.length===1?[Cd(f[0],n)]:f}const a=t.fallback||t.placeholder;if(a)return Yn(a);const s=e.fallback||e.placeholder||"",o=e.fallbackTag||e.placeholderTag||"span";return Ce(o,n,s)}}}),IP=globalThis.requestIdleCallback||(e=>{const t=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(n)},1)}),eie=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),aA=e=>{const t=En();t.isHydrating?t.hooks.hookOnce("app:suspense:resolve",()=>{IP(()=>e())}):IP(()=>e())},tie=e=>e==="defer"||e===!1;function qV(...e){const t=typeof e[e.length-1]=="string"?e.pop():void 0;nie(e[0],e[1])&&e.unshift(t);let[n,r,i={}]=e,a=!1;const s=xe(()=>qt(n));if(typeof s.value!="string")throw new TypeError("[nuxt] [useAsyncData] key must be a string.");if(typeof r!="function")throw new TypeError("[nuxt] [useAsyncData] handler must be a function.");const o=En();i.server??=!0,i.default??=aie,i.getCachedData??=jV,i.lazy??=!1,i.immediate??=!0,i.deep??=Qh.deep,i.dedupe??="cancel",i._functionName,o._asyncData[s.value];function f(){const $={cause:"initial",dedupe:i.dedupe};return o._asyncData[s.value]?._init||($.cachedData=i.getCachedData(s.value,o,{cause:"initial"}),o._asyncData[s.value]=ED(o,s.value,r,i,$.cachedData)),()=>o._asyncData[s.value].execute($)}const m=f(),y=o._asyncData[s.value];y._deps++;const b=i.server!==!1&&o.payload.serverRendered;{let $=function(B){const q=o._asyncData[B];q?._deps&&(q._deps--,q._deps===0&&q?._off())};const A=Ci();if(A&&b&&i.immediate&&!A.sp&&(A.sp=[]),A&&!A._nuxtOnBeforeMountCbs){A._nuxtOnBeforeMountCbs=[];const B=A._nuxtOnBeforeMountCbs;FM(()=>{B.forEach(q=>{q()}),B.splice(0,B.length)}),oa(()=>B.splice(0,B.length))}const N=A&&(A._nuxtClientOnly||Ai(VV,!1));b&&o.isHydrating&&(y.error.value||y.data.value!=null)?(y.pending.value=!1,y.status.value=y.error.value?"error":"success"):A&&(!N&&o.payload.serverRendered&&o.isHydrating||i.lazy)&&i.immediate?A._nuxtOnBeforeMountCbs.push(m):i.immediate&&m();const O=_c(),I=nn(s,(B,q)=>{if((B||q)&&B!==q){a=!0;const Q=o._asyncData[q]?.data.value!==Qh.value,ee=o._asyncDataPromises[q]!==void 0,Y={cause:"initial",dedupe:i.dedupe};if(!o._asyncData[B]?._init){let z;q&&Q?z=o._asyncData[q].data.value:(z=i.getCachedData(B,o,{cause:"initial"}),Y.cachedData=z),o._asyncData[B]=ED(o,B,r,i,z)}o._asyncData[B]._deps++,q&&$(q),(i.immediate||Q||ee)&&o._asyncData[B].execute(Y),kx(()=>{a=!1})}},{flush:"sync"}),U=i.watch?nn(i.watch,()=>{a||(o._asyncData[s.value]?._execute.isPending()&&kx(()=>{o._asyncData[s.value]?._execute.flush()}),o._asyncData[s.value]?._execute({cause:"watch",dedupe:i.dedupe}))}):()=>{};O&&yp(()=>{I(),U(),$(s.value)})}const T={data:O5(()=>o._asyncData[s.value]?.data),pending:O5(()=>o._asyncData[s.value]?.pending),status:O5(()=>o._asyncData[s.value]?.status),error:O5(()=>o._asyncData[s.value]?.error),refresh:(...$)=>o._asyncData[s.value]?._init?o._asyncData[s.value].execute(...$):f()(),execute:(...$)=>T.refresh(...$),clear:()=>{const $=o._asyncData[s.value];if($?._abortController)try{$._abortController.abort(new DOMException("AsyncData aborted by user.","AbortError"))}finally{$._abortController=void 0}oA(o,s.value)}},x=Promise.resolve(o._asyncDataPromises[s.value]).then(()=>T);return Object.assign(x,T),Object.defineProperties(x,{then:{enumerable:!0,value:x.then.bind(x)},catch:{enumerable:!0,value:x.catch.bind(x)},finally:{enumerable:!0,value:x.finally.bind(x)}}),x}function O5(e){return xe({get(){return e()?.value},set(t){const n=e();n&&(n.value=t)}})}function nie(e,t){return!(typeof e=="string"||typeof e=="object"&&e!==null||typeof e=="function"&&typeof t=="function")}function rie(e){const t=En(),n=Object.keys(t.payload.data),r=e?typeof e=="function"?n.filter(e):rte(e):n;for(const i of r)oA(t,i)}function oA(e,t){t in e.payload.data&&(e.payload.data[t]=void 0),t in e.payload._errors&&(e.payload._errors[t]=Qh.errorValue),e._asyncData[t]&&(e._asyncData[t].data.value=void 0,e._asyncData[t].error.value=Qh.errorValue,e._asyncData[t].pending.value=!1,e._asyncData[t].status.value="idle"),t in e._asyncDataPromises&&(e._asyncDataPromises[t]=void 0)}function iie(e,t){const n={};for(const r of t)n[r]=e[r];return n}function ED(e,t,n,r,i){e.payload._errors[t]??=Qh.errorValue;const a=r.getCachedData!==jV,s=n,o=r.deep?De:Bn,f=i!=null,m=e.hook("app:data:refresh",async b=>{(!b||b.includes(t))&&await y.execute({cause:"refresh:hook"})}),y={data:o(f?i:r.default()),pending:Bn(!f),error:oc(e.payload._errors,t),status:Bn("idle"),execute:(...b)=>{const[T,x=void 0]=b,$=T&&x===void 0&&typeof T=="object"?T:{};if(e._asyncDataPromises[t]&&tie($.dedupe??r.dedupe))return e._asyncDataPromises[t];if($.cause==="initial"||e.isHydrating){const O="cachedData"in $?$.cachedData:r.getCachedData(t,e,{cause:$.cause??"refresh:manual"});if(O!=null)return e.payload.data[t]=y.data.value=O,y.error.value=Qh.errorValue,y.status.value="success",Promise.resolve(O)}y.pending.value=!0,y._abortController&&y._abortController.abort(new DOMException("AsyncData request cancelled by deduplication","AbortError")),y._abortController=new AbortController,y.status.value="pending";const A=new AbortController,N=new Promise((O,I)=>{try{const U=$.timeout??r.timeout,B=oie([y._abortController?.signal,$?.signal],A.signal,U);if(B.aborted){const q=B.reason;I(q instanceof Error?q:new DOMException(String(q??"Aborted"),"AbortError"));return}return B.addEventListener("abort",()=>{const q=B.reason;I(q instanceof Error?q:new DOMException(String(q??"Aborted"),"AbortError"))},{once:!0,signal:A.signal}),Promise.resolve(s(e,{signal:B})).then(O,I)}catch(U){I(U)}}).then(async O=>{let I=O;r.transform&&(I=await r.transform(O)),r.pick&&(I=iie(I,r.pick)),e.payload.data[t]=I,y.data.value=I,y.error.value=Qh.errorValue,y.status.value="success"}).catch(O=>{if(e._asyncDataPromises[t]&&e._asyncDataPromises[t]!==N||y._abortController?.signal.aborted)return e._asyncDataPromises[t];if(typeof DOMException<"u"&&O instanceof DOMException&&O.name==="AbortError")return y.status.value="idle",e._asyncDataPromises[t];y.error.value=lg(O),y.data.value=v(r.default()),y.status.value="error"}).finally(()=>{y.pending.value=!1,A.abort(),delete e._asyncDataPromises[t]});return e._asyncDataPromises[t]=N,e._asyncDataPromises[t]},_execute:Jre((...b)=>y.execute(...b),0,{leading:!0}),_default:r.default,_deps:0,_init:!0,_hash:void 0,_off:()=>{m(),e._asyncData[t]?._init&&(e._asyncData[t]._init=!1),a||ur(()=>{e._asyncData[t]?._init||(oA(e,t),y.execute=()=>Promise.resolve(),y.data.value=Qh.value)})}};return y}const aie=()=>Qh.value,jV=(e,t,n)=>{if(t.isHydrating)return t.payload.data[e];if(n.cause!=="refresh:manual"&&n.cause!=="refresh:hook")return t.static.data[e]};function oie(e,t,n){const r=e.filter(s=>!!s);if(typeof n=="number"&&n>=0){const s=AbortSignal.timeout?.(n);s&&r.push(s)}if(AbortSignal.any)return AbortSignal.any(r);const i=new AbortController;for(const s of r)if(s.aborted){const o=s.reason??new DOMException("Aborted","AbortError");try{i.abort(o)}catch{i.abort()}return i.signal}const a=()=>{const o=r.find(f=>f.aborted)?.reason??new DOMException("Aborted","AbortError");try{i.abort(o)}catch{i.abort()}};for(const s of r)s.addEventListener?.("abort",a,{once:!0,signal:t});return i.signal}const sie=(e,t,n)=>{const r=En();r.hooks.hook("app:created",()=>{n(r.payload[e])})};async function lie(...e){const t=typeof e[e.length-1]=="string"?e.pop():void 0;
5typeof e[0]!="string"&&e.unshift(t);const[n,r,i]=e;if(!n||typeof n!="string")throw new TypeError("[nuxt] [callOnce] key must be a string: "+n);if(r!==void 0&&typeof r!="function")throw new Error("[nuxt] [callOnce] fn must be a function: "+r);const a=En();if(i?.mode==="navigation"){let s=function(){a.payload.once.delete(n);for(const f of o)f()};const o=[];o.push(a.hooks.hook("page:start",s),ja().beforeResolve(s))}a.payload.once.has(n)||(a._once||={},a._once[n]||=r()||!0,await a._once[n],a.payload.once.add(n),delete a._once[n])}const uie="$s";function z_(...e){const t=typeof e[e.length-1]=="string"?e.pop():void 0;typeof e[0]!="string"&&e.unshift(t);const[n,r]=e;if(!n||typeof n!="string")throw new TypeError("[nuxt] [useState] key must be a string: "+n);if(r!==void 0&&typeof r!="function")throw new Error("[nuxt] [useState] init must be a function: "+r);const i=uie+n,a=En(),s=oc(a.payload.state,i);if(s.value===void 0&&r){const o=r();if(zn(o))return a.payload.state[i]=o,o;s.value=o}return s}function UV(e){return{}}function cie(e,t,n){const[r={},i]=[{},t],a=xe(()=>qt(e)),s=xe(()=>qt(r.key)||"$f"+gy([i,typeof a.value=="string"?a.value:"",...die(r)]));if(!r.baseURL&&typeof a.value=="string"&&a.value[0]==="/"&&a.value[1]==="/")throw new Error('[nuxt] [useFetch] the request URL must not start with "//".');const{server:o,lazy:f,default:m,transform:y,pick:b,watch:T,immediate:x,getCachedData:$,deep:A,dedupe:N,timeout:O,...I}=r,U=aa({...Fee,...I,cache:typeof r.cache=="boolean"?void 0:r.cache}),B={server:o,lazy:f,default:m,transform:y,pick:b,immediate:x,getCachedData:$,deep:A,dedupe:N,timeout:O,watch:T===!1?[]:[...T||[],U]};if(!x){let Q=function(){B.immediate=!0};nn(s,Q,{flush:"sync",once:!0}),nn([...T||[],U],Q,{flush:"sync",once:!0})}return qV(T===!1?s.value:s,(Q,{signal:ee})=>(r.$fetch||globalThis.$fetch)(a.value,{signal:ee,...U}),B)}function die(e){const t=[qt(e.method)?.toUpperCase()||"GET",qt(e.baseURL)];for(const n of[e.query||e.params]){const r=qt(n);if(!r)continue;const i={};for(const[a,s]of Object.entries(r))i[qt(a)]=qt(s);t.push(i)}if(e.body){const n=qt(e.body);if(!n)t.push(gy(n));else if(n instanceof ArrayBuffer)t.push(gy(Object.fromEntries([...new Uint8Array(n).entries()].map(([r,i])=>[r,i.toString()]))));else if(n instanceof FormData){const r={};for(const i of n.entries()){const[a,s]=i;r[a]=s instanceof File?s.name:s}t.push(gy(r))}else if($M(n))t.push(gy(aa(n)));else try{t.push(gy(n))}catch{}}return t}const fie=(()=>{const e=function(){};return e.prototype=Object.create(null),e})();function hie(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");const n=new fie,r=t||{},i=r.decode||pie;let a=0;for(;a<e.length;){const s=e.indexOf("=",a);if(s===-1)break;let o=e.indexOf(";",a);if(o===-1)o=e.length;else if(o<s){a=e.lastIndexOf(";",s-1)+1;continue}const f=e.slice(a,s).trim();if(r?.filter&&!r?.filter(f)){a=o+1;continue}if(n[f]===void 0){let m=e.slice(s+1,o).trim();m.codePointAt(0)===34&&(m=m.slice(1,-1)),n[f]=mie(m,i)}a=o+1}return n}function pie(e){return e.includes("%")?decodeURIComponent(e):e}function mie(e,t){try{return t(e)}catch{return e}}const R5=/^[\u0009\u0020-\u007E\u0080-\u00FF]+$/;function PD(e,t,n){const r=n||{},i=r.encode||encodeURIComponent;if(typeof i!="function")throw new TypeError("option encode is invalid");if(!R5.test(e))throw new TypeError("argument name is invalid");const a=i(t);if(a&&!R5.test(a))throw new TypeError("argument val is invalid");let s=e+"="+a;if(r.maxAge!==void 0&&r.maxAge!==null){const o=r.maxAge-0;if(Number.isNaN(o)||!Number.isFinite(o))throw new TypeError("option maxAge is invalid");s+="; Max-Age="+Math.floor(o)}if(r.domain){if(!R5.test(r.domain))throw new TypeError("option domain is invalid");s+="; Domain="+r.domain}if(r.path){if(!R5.test(r.path))throw new TypeError("option path is invalid");s+="; Path="+r.path}if(r.expires){if(!gie(r.expires)||Number.isNaN(r.expires.valueOf()))throw new TypeError("option expires is invali
5d");s+="; Expires="+r.expires.toUTCString()}if(r.httpOnly&&(s+="; HttpOnly"),r.secure&&(s+="; Secure"),r.priority)switch(typeof r.priority=="string"?r.priority.toLowerCase():r.priority){case"low":{s+="; Priority=Low";break}case"medium":{s+="; Priority=Medium";break}case"high":{s+="; Priority=High";break}default:throw new TypeError("option priority is invalid")}if(r.sameSite)switch(typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite){case!0:{s+="; SameSite=Strict";break}case"lax":{s+="; SameSite=Lax";break}case"strict":{s+="; SameSite=Strict";break}case"none":{s+="; SameSite=None";break}default:throw new TypeError("option sameSite is invalid")}return r.partitioned&&(s+="; Partitioned"),s}function gie(e){return Object.prototype.toString.call(e)==="[object Date]"||e instanceof Date}function hd(e){if(typeof e!="object")return e;var t,n,r=Object.prototype.toString.call(e);if(r==="[object Object]"){if(e.constructor!==Object&&typeof e.constructor=="function"){n=new e.constructor;for(t in e)e.hasOwnProperty(t)&&n[t]!==e[t]&&(n[t]=hd(e[t]))}else{n={};for(t in e)t==="__proto__"?Object.defineProperty(n,t,{value:hd(e[t]),configurable:!0,enumerable:!0,writable:!0}):n[t]=hd(e[t])}return n}if(r==="[object Array]"){for(t=e.length,n=Array(t);t--;)n[t]=hd(e[t]);return n}return r==="[object Set]"?(n=new Set,e.forEach(function(i){n.add(hd(i))}),n):r==="[object Map]"?(n=new Map,e.forEach(function(i,a){n.set(hd(a),hd(i))}),n):r==="[object Date]"?new Date(+e):r==="[object RegExp]"?(n=new RegExp(e.source,e.flags),n.lastIndex=e.lastIndex,n):r==="[object DataView]"?new e.constructor(hd(e.buffer)):r==="[object ArrayBuffer]"?e.slice(0):r.slice(-6)==="Array]"?new e.constructor(e):e}const yie={path:"/",watch:!0,decode:e=>{const t=decodeURIComponent(e),n=p4(t);return typeof n=="number"&&(!Number.isFinite(n)||String(n)!==t)?t:n},encode:e=>encodeURIComponent(typeof e=="string"?e:JSON.stringify(e))},B5=globalThis.cookieStore;function ug(e,t){const n={...yie,...t};n.filter??=m=>m===e;const r=$D(n)||{};let i;n.maxAge!==void 0?i=n.maxAge*1e3:n.expires&&(i=n.expires.getTime()-Date.now());const a=i!==void 0&&i<=0,s=a||r[e]===void 0||r[e]===null,o=hd(a?void 0:r[e]??n.default?.()),f=i&&!a?bie(o,i,n.watch&&n.watch!=="shallow"):De(o);{let m=null;try{!B5&&typeof BroadcastChannel<"u"&&(m=new BroadcastChannel(`nuxt:cookies:${e}`))}catch{}const y=($=!1)=>{!$&&(n.readonly||bp(f.value,r[e]))||(_ie(e,f.value,n),r[e]=hd(f.value),m?.postMessage({value:n.encode(f.value)}))},b=$=>{const A=$.refresh?$D(n)?.[e]:n.decode($.value);T=!0,f.value=A,r[e]=hd(A),ur(()=>{T=!1})};let T=!1;const x=!!_c();if(x&&yp(()=>{T=!0,y(),m?.close()}),B5){const $=A=>{const N=A.changed.find(I=>I.name===e),O=A.deleted.find(I=>I.name===e);N&&b({value:N.value}),O&&b({value:null})};B5.addEventListener("change",$),x&&yp(()=>B5.removeEventListener("change",$))}else m&&(m.onmessage=({data:$})=>b($));n.watch&&nn(f,()=>{T||y()},{deep:n.watch!=="shallow"}),s&&y(s)}return f}function $D(e={}){return hie(document.cookie,e)}function vie(e,t,n={}){return t==null?PD(e,t,{...n,maxAge:-1}):PD(e,t,n)}function _ie(e,t,n={}){document.cookie=vie(e,t,n)}const MD=2147483647;function bie(e,t,n){let r,i,a=0;const s=n?De(e):{value:e};return _c()&&yp(()=>{i?.(),clearTimeout(r)}),R_((o,f)=>{n&&(i=nn(s,f));function m(){const b=t-a,T=b<MD?b:MD;r=setTimeout(()=>{if(a+=T,a<t)return m();s.value=void 0,f()},T)}function y(){a=0,clearTimeout(r),m()}return{get(){return o(),s.value},set(b){y(),s.value=b,f()}}})}function xie(e){if(e?.__asyncLoader&&!e.__asyncResolved)return e.__asyncLoader()}async function HV(e,t=ja()){const{path:n,matched:r}=t.resolve(e);if(!r.length||(t._routePreloaded||=new Set,t._routePreloaded.has(n)))return;const i=t._preloadPromises||=[];if(i.length>4)return Promise.all(i).then(()=>HV(e,t));t._routePreloaded.add(n);for(const a of r){const s=a.components?.default;if(typeof s!="function")continue;const o=Promise.resolve(s()).catch(()=>{}).finally(()=>i.splice(i.indexOf(o),1));i.push(o)}await Promise.all(i)}function sA(e={}){const t=e.path||window.location.pathname;let n={};try{n=p4(sessionStorage.getItem("nuxt:reload")||"{}")}catch{}if(e.force||n?.path!==t||n?.expires<Date.now()){try{sessionStorage.setItem("nuxt:reload",JSON.stringify({path:t,expires:Date.now()+(e.ttl??1e4)}))}catch{}if(e.persistState)try{sessionStorage.setItem("nuxt:reload:state",JSON.stringify({state:En().payload.state}))}catch{}window.location.pathname!==t?window.location.href=t:window.location.reload()}}function rT(e){return new URL(globalThis.location.href)}const wie=(...e)=>e.find(t=>t!==void 0);function Sie(e){const t=e.componentName||"NuxtLink";
5function n(a){return typeof a=="string"&&a.startsWith("#")}function r(a,s,o){const f=o??e.trailingSlash;if(!a||f!=="append"&&f!=="remove")return a;if(typeof a=="string")return F5(a,f);const m="path"in a&&a.path!==void 0?a.path:s(a).path;return{...a,name:void 0,path:F5(m,f)}}function i(a){const s=ja(),o=ul(),f=xe(()=>!!v(a.target)&&v(a.target)!=="_self"),m=xe(()=>{const N=v(a.to)||v(a.href)||"";return typeof N=="string"&&vu(N,{acceptRelative:!0})}),y=Va("RouterLink"),b=y&&typeof y!="string"?y.useLink:void 0,T=xe(()=>{if(v(a.external))return!0;const N=v(a.to)||v(a.href)||"";return typeof N=="object"?!1:N===""||m.value}),x=xe(()=>{const N=v(a.to)||v(a.href)||"";return T.value?N:r(N,s.resolve,v(a.trailingSlash))}),$=T.value?void 0:b?.({...a,to:x,viewTransition:v(a.viewTransition)}),A=xe(()=>{const N=v(a.trailingSlash)??e.trailingSlash;if(!x.value||m.value||n(x.value))return x.value;if(T.value){const O=typeof x.value=="object"&&"path"in x.value?vP(x.value):x.value,I=typeof O=="object"?s.resolve(O).href:O;return F5(I,N)}return typeof x.value=="object"?s.resolve(x.value)?.href??null:F5(Af(o.app.baseURL,x.value),N)});return{to:x,hasTarget:f,isAbsoluteUrl:m,isExternal:T,href:A,isActive:$?.isActive??xe(()=>x.value===s.currentRoute.value.path),isExactActive:$?.isExactActive??xe(()=>x.value===s.currentRoute.value.path),route:$?.route??xe(()=>s.resolve(x.value)),async navigate(N){await dc(A.value,{replace:v(a.replace),external:T.value||f.value})}}}return Fe({name:t,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},prefetchOn:{type:[String,Object],default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1},trailingSlash:{type:String,default:void 0,required:!1}},useLink:i,setup(a,{slots:s}){const o=ja(),{to:f,href:m,navigate:y,isExternal:b,hasTarget:T,isAbsoluteUrl:x}=i(a),$=Bn(!1),A=De(null),N=U=>{A.value=a.custom?U?.$el?.nextElementSibling:U?.$el};function O(U){return!$.value&&(typeof a.prefetchOn=="string"?a.prefetchOn===U:a.prefetchOn?.[U]??e.prefetchOn?.[U])&&(a.prefetch??e.prefetch)!==!1&&a.noPrefetch!==!0&&a.target!=="_blank"&&!kie()}async function I(U=En()){if($.value)return;$.value=!0;const B=typeof f.value=="string"?f.value:b.value?vP(f.value):o.resolve(f.value).fullPath,q=b.value?new URL(B,window.location.href).href:B;await Promise.all([U.hooks.callHook("link:prefetch",q).catch(()=>{}),!b.value&&!T.value&&HV(f.value,o).catch(()=>{})])}if(O("visibility")){const U=En();let B,q=null;Hn(()=>{const Q=Cie();aA(()=>{B=IP(()=>{A?.value?.tagName&&(q=Q.observe(A.value,async()=>{q?.(),q=null,await I(U)}))})})}),xu(()=>{B&&eie(B),q?.(),q=null})}return()=>{if(!b.value&&!T.value&&!n(f.value)){const q={ref:N,to:f.value,activeClass:a.activeClass||e.activeClass,exactActiveClass:a.exactActiveClass||e.exactActiveClass,replace:a.replace,ariaCurrentValue:a.ariaCurrentValue,custom:a.custom};
5return a.custom||(O("interaction")&&(q.onPointerenter=I.bind(null,void 0),q.onFocus=I.bind(null,void 0)),$.value&&(q.class=a.prefetchedClass||e.prefetchedClass),q.rel=a.rel||void 0),Yn(Va("RouterLink"),q,s.default)}const U=a.target||null,B=wie(a.noRel?"":a.rel,e.externalRelAttribute,x.value||T.value?"noopener noreferrer":"")||null;return a.custom?s.default?s.default({href:m.value,navigate:y,prefetch:I,get route(){if(!m.value)return;const q=new URL(m.value,window.location.href);return{path:q.pathname,fullPath:q.pathname,get query(){return tT(q.search)},hash:q.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:m.value}},rel:B,target:U,isExternal:b.value||T.value,isActive:!1,isExactActive:!1}):null:Yn("a",{ref:A,href:m.value||null,rel:B,target:U,onClick:async q=>{if(!(b.value||T.value)){q.preventDefault();try{const Q=iV(m.value);return await(a.replace?o.replace(Q):o.push(Q))}finally{if(n(f.value)){const Q=f.value.slice(1);let ee=Q;try{ee=decodeURIComponent(Q)}catch{}document.getElementById(ee)?.focus()}}}}},s.default?.())}}})}const N_=Sie(Ree);function F5(e,t){const n=t==="append"?f4:g_;return vu(e)&&!e.startsWith("http")?e:n(e,!0)}function Cie(){const e=En();if(e._observer)return e._observer;let t=null;const n=new Map,r=(a,s)=>(t||=new IntersectionObserver(o=>{for(const f of o){const m=n.get(f.target);(f.isIntersecting||f.intersectionRatio>0)&&m&&m()}}),n.set(a,s),t.observe(a),()=>{n.delete(a),t?.unobserve(a),n.size===0&&(t?.disconnect(),t=null)});return e._observer={observe:r}}const Tie=/2g/;function kie(){const e=navigator.connection;return!!(e&&(e.saveData||Tie.test(e.effectiveType)))}const Eie={blocHomeNewsFields:["cim_news","datetime","place"],blocHomeEventFields:["cim_news","datetime","event_type","place"],blocGeolocationFields:["accueil","address","schedule","phone","mobilePhone","mail","website","address_secondary","adresse_ternary","postcode","city_txt","fax","email","phone_secondary","mobile_phone","contact_et_renseignement","social_facebook","social_instagram"],blocTinyInteractiveMapFields:["address","city"],blocContactH2sFieldsRH:["contact_rh","telephone_rh","mail_rh"],blocContactH2sFieldsMetier:["contact_metier","telephone_metier","mail_metier"],nonDisplayedFieldsAlways:["type_evenement","title","picture_show","picture_list","falc","import_id","postcode","city_txt"],nonDisplayedFieldsList:[],nonDisplayedFieldsDetail:["ticketing_label","t
5icketing_link","cim_news_schedule_dates"],commonHeadFields:["teaser","city","secteurs","cim_news","specific_categories","date","contract","answer_deadline","datetime","structure","tarifs","region","accessibility","quartier","travaux","lien_vers_billetterie","online_process","profil"],commonHeadFieldsAndPrincipal:[""],commonZoneContextuelle:["lieu","organiser","reservation","medias","delegated_town","place","trajectoire_territorial_file"],commonHeadFieldsAndContextuelle:[""],blocsAlwaysInSummary:["html","textpic","cimeos-2cols","cimeos-3cols"],listItemTplEdito:["departement","initiative","projet","territoire"],titleDelimiter:"~"},Pie={nuxt:{}},$ie=Gee(Eie,Pie);function kd(){const e=En();return e._appConfig||=aa($ie),e._appConfig}const WV=()=>z_("T3:Page"),GV=()=>z_("T3:InitialData"),hu=(e,t)=>{const n=En(),{$typo3:r,callHook:i}=n,a=e||Td().fullPath,s=t,o=WV(),f=GV(),m=ul().public.typo3Internals?.useLegacyAsyncDataPageKey;return{pageData:o,initialData:f,$fetch:async(N=a,O=s)=>await r.api.$fetch(N,O),getPage:async(N=a,O=s)=>{const I=await r.api.getPage(N,O);return await i("t3:page",I),I},getPageKey:(N=a)=>m?"t3:page":`t3:page:${gy(N)}`,getInitialData:async(N=a,O=s)=>{const I=await r.api.getInitialData(N,O);return await i("t3:initialData",I),I},setHeaders:N=>{r.api.setHeaders(N)},setOption:(N,O)=>{r.api.fetchOptions[N]=O}}};function y4(){const e=En(),{callHook:t}=e,n=vr(),r=async(s=!0)=>((Un(n.userData)||s)&&(n.userData=await hu().$fetch("/?type=840",{cache:"reload"}),await t("t3:userData",n.userData)),n.userData);return{getUser:r,getInitialData:async(s=!0)=>((Un(n.initialData)||s)&&(n.initialData=await hu().getInitialData("/?type=834",{cache:"reload"})),n.initialData),logout:async s=>{const o=n.userData?.logoutUrl??"",f=n.initialData?.loginUrl??"";if(Un(o))return;await hu().$fetch(o,{method:"POST",params:{logintype:"logout"},credentials:"include",cache:"reload"}),await r();const m=ug("fe_typo_user",{});m.value=null;const y=ug("oauth2-state",{});y.value=null;const b=ug("oauth2-token",{});if(b.value=null,s)return Un(f),dc(f,{replace:!0})}}}const Mie=async(e,t)=>{let n,r;const i=vr();i.initialData=i.initialData??([n,r]=Pf(()=>y4().getInitialData(!0)),n=await n,r(),n),i.userData=i.userData??([n,r]=Pf(()=>y4().getUser(!0)),n=await n,r(),n)},Aie=e=>{const t=bV({path:e.path});if(t.redirect){const n=t.redirect.includes("#")?t.redirect:t.redirect+e.hash;return vu(n,{acceptRelative:!0})?(window.location.href=n,!1):n}},Iie=[jre,Mie,Aie],DP={};function Die(e,t,n){const{pathname:r,search:i,hash:a}=t,s=e.indexOf("#");if(s>-1){const m=a.includes(e.slice(s))?e.slice(s).length:1;let y=a.slice(m);return y[0]!=="/"&&(y="/"+y),U9(y,"")}const o=U9(r,e),f=!n||WN(o,n)?o:n;return f+(f.includes("?")?"":i)+a}const Lie=sa({name:"nuxt:router",enforce:"pre",async setup(e){let t,n,r=ul().app.baseURL;const i=Om.history?.(r)??lre(r),a=Om.routes?([t,n]=Pf(()=>Om.routes(y6)),t=await t,n(),t??y6):y6;let s;const o=Pre({...Om,scrollBehavior:(O,I,U)=>{if(I===Pl){s=U;return}if(Om.scrollBehavior){if(o.options.scrollBehavior=Om.scrollBehavior,"scrollRestoration"in window.history){const B=o.beforeEach(()=>{B(),window.history.scrollRestoration="manual"})}return Om.scrollBehavior(O,Pl,s||U)}},history:i,routes:a});"scrollRestoration"in window.history&&(window.history.scrollRestoration="auto"),e.vueApp.use(o);const f=Bn(o.currentRoute.value);o.afterEach((O,I)=>{f.value=I}),Object.defineProperty(e.vueApp.config.globalProperties,"previousRoute",{get:()=>f.value});const m=Die(r,window.location,e.payload.path),y=Bn(o.currentRoute.value),b=()=>{y.value=o.currentRoute.value};
5o.afterEach((O,I)=>{O.matched.at(-1)?.components?.default===I.matched.at(-1)?.components?.default&&b()});const T={sync:b};for(const O in y.value)Object.defineProperty(T,O,{get:()=>y.value[O],enumerable:!0});e._route=Sf(T),e._middleware||={global:[],named:{}};const x=yw();o.afterEach(async(O,I,U)=>{delete e._processingMiddleware,!e.isHydrating&&x.value&&await e.runWithContext(ate),U&&await e.callHook("page:loading:end")});try{[t,n]=Pf(()=>o.isReady()),await t,n()}catch(O){[t,n]=Pf(()=>e.runWithContext(()=>Gh(O))),await t,n()}const $=m!==o.currentRoute.value.fullPath?o.resolve(m):o.currentRoute.value,A=e.isHydrating&&e.payload.prerenderedAt&&e.payload.path&&m!==e.payload.path&&WN(o.currentRoute.value.path,e.payload.path);b();const N=e.payload.state._layout;return o.beforeEach(async(O,I)=>{await e.callHook("page:loading:start"),O.meta=aa(O.meta),e.isHydrating&&N&&!Sd(O.meta.layout)&&(O.meta.layout=N),e._processingMiddleware=!0;{const U=new Set([...Iie,...e._middleware.global]);for(const q of O.matched){const Q=q.meta.middleware;if(Q)for(const ee of RV(Q))U.add(ee)}const B=bV({path:O.path});if(B.appMiddleware)for(const q in B.appMiddleware)B.appMiddleware[q]?U.add(q):U.delete(q);for(const q of U){const Q=typeof q=="string"?e._middleware.named[q]||await DP[q]?.().then(ee=>ee.default||ee):q;if(!Q)throw new Error(`Unknown route middleware: '${q}'.`);try{const ee=await e.runWithContext(()=>Q(O,I));if(!e.payload.serverRendered&&e.isHydrating&&(ee===!1||ee instanceof Error)){const Y=ee||lg({status:404,statusText:`Page Not Found: ${m}`});return await e.runWithContext(()=>Gh(Y)),!1}if(ee===!0)continue;if(ee===!1)return ee;if(ee)return oV(ee)&&ee.fatal&&await e.runWithContext(()=>Gh(ee)),ee}catch(ee){const Y=lg(ee);return Y.fatal&&await e.runWithContext(()=>Gh(Y)),Y}}}}),o.onError(async()=>{delete e._processingMiddleware,await e.callHook("page:loading:end")}),o.afterEach(O=>{if(O.matched.length===0&&!x.value)return e.runWithContext(()=>Gh(lg({status:404,fatal:!1,statusText:`Page not found: ${O.fullPath}`,data:{path:O.fullPath}})))}),e.hooks.hookOnce("app:created",async()=>{try{if("name"in $&&($.name=void 0),A){const O=o.resolve(e.payload.path);"name"in O&&(O.name=void 0),await o.replace({...O,force:!0}),e.hooks.hookOnce("app:suspense:resolve",async()=>{await o.replace({...$,force:!0})})}else await o.replace({...$,force:!0});o.options.scrollBehavior=Om.scrollBehavior}catch(O){await e.runWithContext(()=>Gh(O))}}),{provide:{router:o}}}}),Oie=sa(()=>{const e=ja();aA(()=>{e.beforeResolve(async()=>{await new Promise(t=>{setTimeout(t,100),requestAnimationFrame(()=>{setTimeout(t,0)})})})})}),Rie=sa(e=>{let t;async function n(){let r;try{r=await mne()}catch(i){const a=i;if(!("status"in a&&(a.status===404||a.status===403)))throw a}t&&clearTimeout(t),t=setTimeout(n,K9);try{const i=await $fetch(KM("builds/latest.json")+`?${Date.now()}`);i.id!==r?.id&&(e.hooks.callHook("app:manifest:update",i),t&&clearTimeout(t))}catch{}}aA(()=>{t=setTimeout(n,K9)})}),Bie=sa({name:"nuxt:chunk-reload",setup(e){const t=ja(),n=ul(),r=new Set;t.beforeEach(()=>{r.clear()}),e.hook("app:chunkError",({error:a})=>{r.add(a)});function i(a){const s=Af(n.app.baseURL,a.fullPath);sA({path:s,persistState:!0})}e.hook("app:manifest:update",()=>{t.beforeResolve(i)}),t.onError((a,s)=>{r.has(a)&&i(s)})}}),Fie=sa({name:"pinia",setup(e){const t=ote();return e.vueApp.use(t),y_(t),e.payload&&e.payload.pinia&&(t.state.value=e.payload.pinia),{provide:{pinia:t}}},hooks:{"app:rendered"(){const e=En();e.payload.pinia=In(e.$pinia).state.value,y_(void 0)}}}),zie=Wi(()=>Ti(()=>import("./41nXpikA.js"),[],import.meta.url).then(e=>e.default||e.default||e)),Nie=Wi(()=>Ti(()=>import("./yr9_kBXN.js"),[],import.meta.url).then(e=>e.default||e.default||e)),Vie=Wi(()=>Ti(()=>import("./HTF820BX.js"),[],import.meta.url).then(e=>e.default||e.default||e)),qie=Wi(()=>Ti(()=>import("./CHUjDOFR.js"),[],import.meta.url).then(e=>e.default||e.default||e)),jie=Wi(()=>Ti(()=>import("./DIyEuOMW.js"),[],import.meta.url).then(e=>e.default||e.default||e)),Uie=Wi(()=>Ti(()=>import("./CN6DBtrN.js"),__vite__mapDeps([4,5]),import.meta.url).then(e=>e.default||e.default||e)),Hie=Wi(()=>Ti(()=>import("./CKRB32KA.js"),[],import.meta.url).then(e=>e.default||e.default||e)),Wie=Wi(()=>Ti(()=>import("./BguNTrAD.js"),[],import.meta.url).then(e=>e.default||e.default||e)),Gie=Wi(()=>Ti(()=>import("./KmTukT7F.js"),[],import.meta.url).then(e=>e.default||e.default||e)),Yie=Wi(()=>Ti(()=>Promise.resolve().then(()=>e3e),void 0,import.meta.url).then(e=>e.default||e.default||e)),Zie=Wi(()=>Ti(()=>import("./DASsPkf5.js"),[],import.meta.url).then(e=>e.default||e.default||e)),Kie=Wi(()=>Ti(()=>import("./CcITSNKU.js"),__vite__mapDeps([6,7]),import.meta.url).then(e=>e.default||e.default||e)),Xie=Wi(()=>Ti(()=>import("./Bc_zlHHc.js"),__vite__mapDeps([8,7]),import.meta.url).then(e=>e.default||e.default||e)),Jie=Wi(()=>Ti(()=>import("./DDp0qMUe.js"),__vite__mapDeps([9,7]),import.meta.url).then(e=>e.default||e.default||e)),Qie=Wi(()=>Ti(()=>import("./Dy5q_lL8.js"),[],import.meta.url).then(e=>e.default||e.default||e)),eae=Wi(()=>Ti(()=>import("./2S31tUky.js"),[],import.meta.url).then(e=>e.default||e.default||e)),tae=Wi(()=>Ti(()=>import("./DFFekQBW.js"),[],import.meta.url).then(e=>e.default||e.default||e)),nae=Wi(()=>Ti(()=>import("./B9H0oO7a.js"),[],import.meta.url).then(e=>e.default||e.default||e)),rae=Wi(()=>Ti(()=>Promise.resolve().then(()=>Xwe),void 0,import.meta.url).then(e=>e.default||e.default||e)),iae=Wi(()=>Ti(()=>import("./DuyyrlVO.js"),[],import.meta.url).then(e=>e.default||e.default||e)),aae=Wi(()=>Ti(()=>import("./BuiFT3BR.js"),[],import.meta.url).then(e=>e.default||e.default||e)),oae=Wi(()=>Ti(()=>import("./CW_MduDS.js"),__vite__mapDeps([10,11]),import.meta.url).then(e=>e.default||e.default||e)),sae=Wi(()=>Ti(()=>import("./D7vVEFk-.js"),__vite__mapDeps([12,11,13]),import.meta.url).then(e=>e.default||e.default||e)),lae=Wi(()=>Ti(()=>import("./DVVWmuCV.js"),__vite__mapDeps([14,11,13]),import.meta.url).then(e=>e.default||e.default||e)),uae=Wi(()=>Ti(()=>import("./D2ZF7mzs.js"),__vite__mapDeps([15,11]),import.meta.url).then(e=>e.default||e.default||e)),cae=[["MediaAudio",zie],["MediaVideo",Nie],["MediaVimeo",Vie],["MediaYoutube",qie],["T3BackendLayout",jie],["T3BlDefault",Uie],["T3CeBullets",Hie],["T3CeDefault",Wie],["T3CeDiv",Gie],["T3CeHeader",Yie],["T3CeImage",Zie],["T3CeMe
5nuAbstract",Kie],["T3CeMenuSitemap",Xie],["T3CeMenuSubpages",Jie],["T3CeTable",Qie],["T3CeText",eae],["T3CeTextmedia",tae],["T3CeUploads",nae],["T3Link",rae],["T3LocaleSwitcher",iae],["T3Renderer",aae],["T3FormFieldDatepicker",oae],["T3FormFieldMulti",sae],["T3FormFieldSelect",lae],["T3FormFieldUpload",uae]],dae=sa({name:"nuxt:global-components",setup(e){for(const[t,n]of cae)e.vueApp.component(t,n),e.vueApp.component("Lazy"+t,n)}}),ep={default:Wi(()=>Ti(()=>import("./DNuzjmXC.js"),__vite__mapDeps([16,1,17]),import.meta.url).then(e=>e.default||e))},fae=sa({name:"nuxt:prefetch",setup(e){const t=ja();e.hooks.hook("app:mounted",()=>{t.beforeEach(async n=>{const r=n?.meta?.layout;r&&typeof ep[r]=="function"&&await ep[r]()})}),e.hooks.hook("link:prefetch",n=>{if(vu(n))return;const r=t.resolve(n);if(!r)return;const i=r.meta.layout;let a=RV(r.meta.middleware);a=a.filter(s=>typeof s=="string");for(const s of a)typeof DP[s]=="function"&&DP[s]();typeof i=="string"&&i in ep&&xie(ep[i])})}});function ES(...e){window.dataLayer?.push(arguments)}function YV({tags:e}){window.dataLayer=window.dataLayer||[];for(const t of e)for(const n of t.initCommands??[])ES(...n);ES("js",new Date);for(const t of e)ES("config",t.id,t.config??{})}function ZV(e){const t=In(e),n=t.tags.filter(Boolean).map(r=>typeof r=="string"?{id:r}:r);if(t.id){const{id:r,config:i,initCommands:a}=t;n.unshift({id:r,config:i,initCommands:a})}return n}const hae=sa({parallel:!0,setup(){const e=ul().public.gtag,t=ZV(e);if(!t.length||(YV({tags:t}),e.initMode==="manual"))return;const n=e.loadingStrategy==="async"?"async":"defer";fu({link:[{rel:"preload",as:"script",href:jy(e.url,{id:t[0].id})}],script:[{src:jy(e.url,{id:t[0].id}),[n]:!0,"data-gtag":""}]})}}),pae="~",mae="en",gae=e=>yae([...e.cookies.necessary,...e.cookies.optional]).join(""),yae=e=>e.map(t=>t.id),URe=e=>ug(e).value=void 0,HRe=(e,t=mae)=>{if(typeof e=="string")return e;if(!t)throw new Error("No locale given for translatable that is not a string.");const n=e[t];if(!n)throw new Error(`Could not get translation for locale ${t}.`);return n},vae=sa(e=>{const n=ul().public.cookieControl,r=ug(n.cookieNameIsConsentGiven,n.cookieOptions),i=ug(n.cookieNameCookiesEnabledIds,n.cookieOptions).value?.split(pae),a=De(r.value===void 0?void 0:r.value===gae(n));return{provide:{cookies:{cookiesEnabled:De(i===void 0?void 0:[...n.cookies.necessary.filter(b=>i.includes(b.id)),...n.cookies.optional.filter(b=>i.includes(b.id))]),cookiesEnabledIds:De(i),isConsentGiven:a,isModalActive:De(),locale:De(),moduleOptions:n}}}}),Rm={defaultImage:"/img/default_img/lazy.webp",loadingClass:"isLoading",loadedClass:"isLoaded",appendClass:"lazyLoad",observerConfig:{}},_ae=sa(e=>{let t=null;const n=s=>s.parentNode&&s.parentNode.tagName.toLowerCase()==="picture",r=(s,o)=>{const f=`data-${o}`;if(Array.isArray(s))for(const m of s)r(m,o);else if(s.getAttribute(f))s.setAttribute(o,s.getAttribute(f)),s.removeAttribute(f),s.parentNode.load&&s.parentNode.load();else if(s.tagName.toLowerCase()==="picture"){const m=s.querySelector("img");m&&(r(m,"src"),r(m,"srcset"),m.addEventListener("load",()=>i(s)))}},i=s=>{s.classList.remove(Rm.loadingClass),s.classList.add(Rm.loadedClass)},a=s=>{const o=s.tagName.toLowerCase();let f="load";["video","audio"].includes(o)&&(f="loadeddata"),s.addEventListener(f,()=>{n(s)?s.parentNode.getAttribute("data-not-lazy")===null?i(s.parentNode):s.parentNode.removeAttribute("data-not-lazy"):i(s)})};t=new IntersectionObserver((s,o)=>{for(const{isIntersecting:f,target:m}of s)if(f){let y=m;!n(y)&&Rm.loadingClass&&y.classList.add(Rm.loadingClass);const b=y.querySelectorAll("source");r(y,"poster"),b.length&&(y=[...b]),r(y,"src"),r(y,"srcset"),o.unobserve(m)}},Rm.observerConfig),e.vueApp.directive("lazy-load",{beforeMount(s){a(s),!n(s)&&Rm.appendClass&&s.classList.add(Rm.appendClass)},mounted(s){t&&t.observe(s),s.tagName.toLowerCase()==="img"&&(s.src=Rm.defaultImage)},getSSRProps(){return{}}}),e.vueApp.directive("not-lazy",{beforeMount(s){for(const o of[...s.querySelectorAll("source"),...s.querySelectorAll("img")])r(o,"src"),r(o,"srcset");s.tagName.toLowerCase()!=="picture"&&s.removeAttribute("data-not-lazy")},getSSRProps(){return{}}})});var Qm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};
vendor: 6,942 bytes, line 5
5function Pp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function bae(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){var i=!1;try{i=this instanceof r}catch{}return i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var PS={exports:{}},xae=PS.exports,AD;function KV(){return AD||(AD=1,(function(e,t){(function(n,r){e.exports=r()})(xae,(function(){var n=1e3,r=6e4,i=36e5,a="millisecond",s="second",o="minute",f="hour",m="day",y="week",b="month",T="quarter",x="year",$="date",A="Invalid Date",N=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,O=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,I={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(pe){var ae=["th","st","nd","rd"],se=pe%100;return"["+pe+(ae[(se-20)%10]||ae[se]||ae[0])+"]"}},U=function(pe,ae,se){var ce=String(pe);return!ce||ce.length>=ae?pe:""+Array(ae+1-ce.length).join(se)+pe},B={s:U,z:function(pe){var ae=-pe.utcOffset(),se=Math.abs(ae),ce=Math.floor(se/60),ye=se%60;return(ae<=0?"+":"-")+U(ce,2,"0")+":"+U(ye,2,"0")},m:function pe(ae,se){if(ae.date()<se.date())return-pe(se,ae);var ce=12*(se.year()-ae.year())+(se.month()-ae.month()),ye=ae.clone().add(ce,b),$e=se-ye<0,Be=ae.clone().add(ce+($e?-1:1),b);return+(-(ce+(se-ye)/($e?ye-Be:Be-ye))||0)},a:function(pe){return pe<0?Math.ceil(pe)||0:Math.floor(pe)},p:function(pe){return{M:b,y:x,w:y,d:m,D:$,h:f,m:o,s,ms:a,Q:T}[pe]||String(pe||"").toLowerCase().replace(/s$/,"")},u:function(pe){return pe===void 0}},q="en",Q={};Q[q]=I;var ee="$isDayjsObject",Y=function(pe){return pe instanceof ne||!(!pe||!pe[ee])},z=function pe(ae,se,ce){var ye;if(!ae)return q;if(typeof ae=="string"){var $e=ae.toLowerCase();Q[$e]&&(ye=$e),se&&(Q[$e]=se,ye=$e);var Be=ae.split("-");if(!ye&&Be.length>1)return pe(Be[0])}else{var je=ae.name;Q[je]=ae,ye=je}return!ce&&ye&&(q=ye),ye||!ce&&q},H=function(pe,ae){if(Y(pe))return pe.clone();var se=typeof ae=="object"?ae:{};return se.date=pe,se.args=arguments,new ne(se)},K=B;K.l=z,K.i=Y,K.w=function(pe,ae){return H(pe,{locale:ae.$L,utc:ae.$u,x:ae.$x,$offset:ae.$offset})};var ne=(function(){function pe(se){this.$L=z(se.locale,null,!0),this.parse(se),this.$x=this.$x||se.x||{},this[ee]=!0}var ae=pe.prototype;return ae.parse=function(se){this.$d=(function(ce){var ye=ce.date,$e=ce.utc;if(ye===null)return new Date(NaN);if(K.u(ye))return new Date;if(ye instanceof Date)return new Date(ye);if(typeof ye=="string"&&!/Z$/i.test(ye)){var Be=ye.match(N);if(Be){var je=Be[2]-1||0,at=(Be[7]||"0").substring(0,3);return $e?new Date(Date.UTC(Be[1],je,Be[3]||1,Be[4]||0,Be[5]||0,Be[6]||0,at)):new Date(Be[1],je,Be[3]||1,Be[4]||0,Be[5]||0,Be[6]||0,at)}}return new Date(ye)})(se),this.init()},ae.init=function(){var se=this.$d;this.$y=se.getFullYear(),this.$M=se.getMonth(),this.$D=se.getDate(),this.$W=se.getDay(),this.$H=se.getHours(),this.$m=se.getMinutes(),this.$s=se.getSeconds(),this.$ms=se.getMilliseconds()},ae.$utils=function(){return K},ae.isValid=function(){return this.$d.toString()!==A},ae.isSame=function(se,ce){var ye=H(se);return this.startOf(ce)<=ye&&ye<=this.endOf(ce)},ae.isAfter=function(se,ce){return H(se)<this.startOf(ce)},ae.isBefore=function(se,ce){return this.endOf(ce)<H(se)},ae.$g=function(se,ce,ye){return K.u(se)?this[ce]:this.set(ye,se)},ae.unix=function(){return Math.floor(this.valueOf()/1e3)},ae.valueOf=function(){return this.$d.getTime()},ae.startOf=function(se,ce){var ye=this,$e=!!K.u(ce)||ce,Be=K.p(se),je=function(ut,At){var Dt=K.w(ye.$u?Date.UTC(ye.$y,At,ut):new Date(ye.$y,At,ut),ye);return $e?Dt:Dt.endOf(m)},at=function(ut,At){return K.w(ye.toDate()[ut].apply(ye.toDate("s"),($e?[0,0,0,0]:[23,59,59,999]).slice(At)),ye)},Pt=this.$W,Qe=this.$M,nt=this.$D,Ve="set"+(this.$u?"UTC":"");switch(Be){case x:return $e?je(1,0):je(31,11);case b:return $e?je(1,Qe):je(0,Qe+1);case y:var ct=this.$locale().weekStart||0,zt=(Pt<ct?Pt+7:Pt)-ct;return je($e?nt-zt:nt+(6-zt),Qe);case m:case $:return at(Ve+"Hours",0);case f:return at(Ve+"Minutes",1);case o:return at(Ve+"Seconds",2);case s:return at(Ve+"Milliseconds",3);default:return this.clone()}},ae.endOf=function(se){return this.startOf(se,!1)},ae.$set=function(se,ce){var ye,$e=K.p(se),Be="set"+(this.$u?"UTC":""),je=(ye={},ye[m]=Be+"Date",ye[$]=Be+"Date",ye[b]=Be+"Month",ye[x]=Be+"FullYear",ye[f]=Be+"Hours",ye[o]=Be+"Minutes",ye[s]=Be+"Seconds",ye[a]=Be+"Milliseconds",ye)[$e],at=$e===m?this.$D+(ce-this.$W):ce;if($e===b||$e===x){var Pt=this.clone().set($,1);Pt.$d[je](at),Pt.init(),this.$d=Pt.set($,Math.min(this.$D,Pt.daysInMonth())).$d}else je&&this.$d[je](at);return this.init(),this},ae.set=function(se,ce){return this.clone().$set(se,ce)},ae.get=function(se){return this[K.p(se)]()},ae.add=function(se,ce){var ye,$e=this;se=Number(se);var Be=K.p(ce),je=function(Qe){var nt=H($e);return K.w(nt.date(nt.date()+Math.round(Qe*se)),$e)};if(Be===b)return this.set(b,this.$M+se);if(Be===x)return this.set(x,this.$y+se);if(Be===m)return je(1);if(Be===y)return je(7);var at=(ye={},ye[o]=r,ye[f]=i,ye[s]=n,ye)[Be]||1,Pt=this.$d.getTime()+se*at;return K.w(Pt,this)},ae.subtract=function(se,ce){return this.add(-1*se,ce)},ae.format=function(se){var ce=this,ye=this.$locale();if(!this.isValid())return ye.invalidDate||A;var $e=se||"YYYY-MM-DDTHH:mm:ssZ",Be=K.z(this),je=this.$H,at=this.$m,Pt=this.$M,Qe=ye.weekdays,nt=ye.months,Ve=ye.meridiem,ct=function(At,Dt,Ot,Ee){return At&&(At[Dt]||At(ce,$e))||Ot[Dt].slice(0,Ee)},zt=function(At){return K.s(je%12||12,At,"0")},ut=Ve||function(At,Dt,Ot){var Ee=At<12?"AM":"PM";return Ot?Ee.toLowerCase():Ee};return $e.replace(O,(function(At,Dt){return Dt||(function(Ot){switch(Ot){case"YY":return String(ce.$y).slice(-2);case"YYYY":return K.s(ce.$y,4,"0");case"M":return Pt+1;case"MM":return K.s(Pt+1,2,"0");case"MMM":return ct(ye.monthsShort,Pt,nt,3);case"MMMM":return ct(nt,Pt);case"D":return ce.$D;case"DD":return K.s(ce.$D,2,"0");case"d":return String(ce.$W);case"dd":return ct(ye.weekdaysMin,ce.$W,Qe,2);case"ddd":return ct(ye.weekdaysShort,ce.$W,Qe,3);case"dddd":return Qe[ce.$W];case"H":return String(je);case"HH":return K.s(je,2,"0");case"h":return zt(1);case"hh":return zt(2);case"a":return ut(je,at,!0);case"A":return ut(je,at,!1);case"m":return String(at);case"mm":return K.s(at,2,"0");case"s":return String(ce.$s);case"ss":return K.s(ce.$s,2,"0");case"SSS":return K.s(ce.$ms,3,"0");case"Z":return Be}return null})(At)||Be.replace(":","")}))}
5,ae.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},ae.diff=function(se,ce,ye){var $e,Be=this,je=K.p(ce),at=H(se),Pt=(at.utcOffset()-this.utcOffset())*r,Qe=this-at,nt=function(){return K.m(Be,at)};switch(je){case x:$e=nt()/12;break;case b:$e=nt();break;case T:$e=nt()/3;break;case y:$e=(Qe-Pt)/6048e5;break;case m:$e=(Qe-Pt)/864e5;break;case f:$e=Qe/i;break;case o:$e=Qe/r;break;case s:$e=Qe/n;break;default:$e=Qe}return ye?$e:K.a($e)},ae.daysInMonth=function(){return this.endOf(b).$D},ae.$locale=function(){return Q[this.$L]},ae.locale=function(se,ce){if(!se)return this.$L;var ye=this.clone(),$e=z(se,ce,!0);return $e&&(ye.$L=$e),ye},ae.clone=function(){return K.w(this.$d,this)},ae.toDate=function(){return new Date(this.valueOf())},ae.toJSON=function(){return this.isValid()?this.toISOString():null},ae.toISOString=function(){return this.$d.toISOString()},ae.toString=function(){return this.$d.toUTCString()},pe})(),le=ne.prototype;return H.prototype=le,[["$ms",a],["$s",s],["$m",o],["$H",f],["$W",m],["$M",b],["$y",x],["$D",$]].forEach((function(pe){le[pe[1]]=function(ae){return this.$g(ae,pe[0],pe[1])}})),H.extend=function(pe,ae){return pe.$i||(pe(ae,ne,H),pe.$i=!0),H},H.locale=z,H.isDayjs=Y,H.unix=function(pe){return H(1e3*pe)},H.en=Q[q],H.Ls=Q,H.p={},H}))})(PS)),PS.exports}var wae=KV();const oo=Pp(wae);var $S={exports:{}},Sae=$S.exports,ID;function Cae(){return ID||(ID=1,(function(e,t){(function(n,r){e.exports=r()})(Sae,(function(){function n(){return n=Object.assign||function(r){for(var i=1;i<arguments.length;i++){var a=arguments[i];for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(r[s]=a[s])}return r},n.apply(this,arguments)}return function(r,i,a){a.updateLocale=function(s,o){var f=a.Ls[s];if(f)return(o?Object.keys(o):[]).forEach((function(m){f[m]&&o[m]&&typeof f[m]=="object"&&typeof o[m]=="object"&&!Array.isArray(f[m])?f[m]=n({},f[m],o[m]):f[m]=o[m]})),f}}}))})($S)),$S.exports}var Tae=Cae();const kae=Pp(Tae);var MS={exports:{}},Eae=MS.exports,DD;function Pae(){return DD||(DD=1,(function(e,t){(function(n,r){e.exports=r()})(Eae,(function(){return{name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(n){var r=["th","st","nd","rd"],i=n%100;return"["+n+(r[(i-20)%10]||r[i]||r[0])+"]"}}}))})(MS)),MS.exports}Pae();var AS={exports:{}},$ae=AS.exports,LD;function Mae(){return LD||(LD=1,(function(e,t){(function(n,r){e.exports=r(KV())})($ae,(function(n){function r(s){return s&&typeof s=="object"&&"default"in s?s:{default:s}}var i=r(n),a={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:function(s){return""+s+(s===1?"er":"")}};return i.default.locale(a,null,!0),a}))})(AS)),AS.exports}Mae();var IS={exports:{}},Aae=IS.exports,OD;function Iae(){return OD||(OD=1,(function(e,t){(function(n,r){e.exports=r()})(Aae,(function(){return function(n,r,i){n=n||{};var a=r.prototype,s={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function o(m,y,b,T){return a.fromToBase(m,y,b,T)}i.en.relativeTime=s,a.fromToBase=function(m,y,b,T,x){for(var $,A,N,O=b.$locale().relativeTime||s,I=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],U=I.length,B=0;B<U;B+=1){var q=I[B];
5q.d&&($=T?i(m).diff(b,q.d,!0):b.diff(m,q.d,!0));var Q=(n.rounding||Math.round)(Math.abs($));if(N=$>0,Q<=q.r||!q.r){Q<=1&&B>0&&(q=I[B-1]);var ee=O[q.l];x&&(Q=x(""+Q)),A=typeof ee=="string"?ee.replace("%d",Q):ee(Q,y,q.l,N);break}}if(y)return A;var Y=N?O.future:O.past;return typeof Y=="function"?Y(A):Y.replace("%s",A)},a.to=function(m,y){return o(m,y,this,!0)},a.from=function(m,y){return o(m,y,this)};var f=function(m){return m.$u?i.utc():i()};a.toNow=function(m){return this.to(f(this),m)},a.fromNow=function(m){return this.from(f(this),m)}}}))})(IS)),IS.exports}var Dae=Iae();const Lae=Pp(Dae);var DS={exports:{}},Oae=DS.exports,RD;function Rae(){return RD||(RD=1,(function(e,t){(function(n,r){e.exports=r()})(Oae,(function(){var n="minute",r=/[+-]\d\d(?::?\d\d)?/g,i=/([+-]|\d\d)/g;return function(a,s,o){var f=s.prototype;o.utc=function(A){var N={date:A,utc:!0,args:arguments};return new s(N)},f.utc=function(A){var N=o(this.toDate(),{locale:this.$L,utc:!0});return A?N.add(this.utcOffset(),n):N},f.local=function(){return o(this.toDate(),{locale:this.$L,utc:!1})};var m=f.parse;f.parse=function(A){A.utc&&(this.$u=!0),this.$utils().u(A.$offset)||(this.$offset=A.$offset),m.call(this,A)};var y=f.init;f.init=function(){if(this.$u){var A=this.$d;this.$y=A.getUTCFullYear(),this.$M=A.getUTCMonth(),this.$D=A.getUTCDate(),this.$W=A.getUTCDay(),this.$H=A.getUTCHours(),this.$m=A.getUTCMinutes(),this.$s=A.getUTCSeconds(),this.$ms=A.getUTCMilliseconds()}else y.call(this)};var b=f.utcOffset;f.utcOffset=function(A,N){var O=this.$utils().u;if(O(A))return this.$u?0:O(this.$offset)?b.call(this):this.$offset;if(typeof A=="string"&&(A=(function(q){q===void 0&&(q="");var Q=q.match(r);if(!Q)return null;var ee=(""+Q[0]).match(i)||["-",0,0],Y=ee[0],z=60*+ee[1]+ +ee[2];return z===0?0:Y==="+"?z:-z})(A),A===null))return this;var I=Math.abs(A)<=16?60*A:A;if(I===0)return this.utc(N);var U=this.clone();if(N)return U.$offset=I,U.$u=!1,U;var B=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(U=this.local().add(I+B,n)).$offset=I,U.$x.$localOffset=B,U};var T=f.format;f.format=function(A){var N=A||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return T.call(this,N)},f.valueOf=function(){var A=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*A},f.isUTC=function(){return!!this.$u},f.toISOString=function(){return this.toDate().toISOString()},f.toString=function(){return this.toDate().toUTCString()};var x=f.toDate;f.toDate=function(A){return A==="s"&&this.$offset?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():x.call(this)};var $=f.diff;f.diff=function(A,N,O){if(A&&this.$u===A.$u)return $.call(this,A,N,O);var I=this.local(),U=o(A).local();return $.call(I,U,N,O)}}}))})(DS)),DS.exports}var Bae=Rae();const Fae=Pp(Bae);var LS={exports:{}},zae=LS.exports,BD;function Nae(){return BD||(BD=1,(function(e,t){(function(n,r){e.exports=r()})(zae,(function(){var n={year:0,month:1,day:2,hour:3,minute:4,second:5},r={};return function(i,a,s){var o,f=function(T,x,$){$===void 0&&($={});var A=new Date(T),N=(function(O,I){I===void 0&&(I={});var U=I.timeZoneName||"short",B=O+"|"+U,q=r[B];return q||(q=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:O,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:U}),r[B]=q),q})(x,$);return N.formatToParts(A)},m=function(T,x){for(var $=f(T,x),A=[],N=0;N<$.length;N+=1){var O=$[N],I=O.type,U=O.value,B=n[I];B>=0&&(A[B]=parseInt(U,10))}var q=A[3],Q=q===24?0:q,ee=A[0]+"-"+A[1]+"-"+A[2]+" "+Q+":"+A[4]+":"+A[5]+":000",Y=+T;return(s.utc(ee).valueOf()-(Y-=Y%1e3))/6e4},y=a.prototype;y.tz=function(T,x){if(T===void 0&&(T=o),!this.isValid())return this;var $,A=this.utcOffset(),N=this.toDate(),O=N.toLocaleString("en-US",{timeZone:T}),I=m(+N,T);if(!Number(I))$=this.utcOffset(0,x);else if($=s(O,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(I,!0),x){var U=$.utcOffset();$=$.add(A-U,"minute")}return $.$x.$timezone=T,$},y.offsetName=function(T){var x=this.$x.$timezone||s.tz.guess(),$=f(this.valueOf(),x,{timeZoneName:T}).find((function(A){return A.type.toLowerCase()==="timezonename"}));return $&&$.value};var b=y.startOf;y.startOf=function(T,x){if(!this.$x||!this.$x.$timezone)return b.call(this,T,x);var $=s(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return b.call($,T,x).tz(this.$x.$timezone,!0)},s.tz=function(T,x,$){var A=$&&x,N=$||x||o,O=m(+s(),N);if(typeof T!="string")return s(T).tz(N);var I=s.utc(T,A).valueOf();if(Number.isNaN(I)){var U=s(NaN);return U.$x.$timezone=N,U}var B=(function(Y,z,H){var K=Y-60*z*1e3,ne=m(K,H);if(z===ne)return[K,z];var le=m(K-=60*(ne-z)*1e3,H);return ne===le?[K,ne]:[Y-60*Math.min(ne,le)*1e3,Math.max(ne,le)]})(I,O,N),q=B[0],Q=B[1],ee=s(q).utcOffset(Q);return ee.$x.$timezone=N,ee},s.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},s.tz.setDefault=function(T){o=T}}}))})(LS)),LS.exports}var Vae=Nae();const qae=Pp(Vae);oo.extend(kae);oo.extend(Lae);oo.extend(Fae);oo.extend(qae);oo.tz.setDefault("Europe/Paris");oo.updateLocale("fr",{weekStart:7});oo.locale("fr");const jae=sa(async e=>e.provide("dayjs",oo));const v4=typeof window<"u",kg=(e,t=!1)=>t?Symbol.for(e):Symbol(e),Uae=(e,t,n)=>Hae({l:e,k:t,s:n}),Hae=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),lo=e=>typeof e=="number"&&isFinite(e),XV=e=>iT(e)==="[object Date]",_4=e=>iT(e)==="[object RegExp]",lA=e=>Ui(e)&&Object.keys(e).length===0,$a=Object.assign,Wae=Object.create,ci=(e=null)=>Wae(e);let FD;const Gae=()=>FD||(FD=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:ci()),Yae=Object.prototype.hasOwnProperty;function uc(e,t){return Yae.call(e,t)}const ia=Array.isArray,ra=e=>typeof e=="function",An=e=>typeof e=="string",ya=e=>typeof e=="boolean",Kr=e=>e!==null&&typeof e=="object",Zae=e=>Kr(e)&&ra(e.then)&&ra(e.catch),JV=Object.prototype.toString,iT=e=>JV.call(e),Ui=e=>iT(e)==="[object Object]",Kae=e=>e==null?"":ia(e)||Ui(e)&&e.toString===JV?JSON.stringify(e,null,2):String(e);function uA(e,t=""){return e.reduce((n,r,i)=>i===0?n+r:n+t+r,"")}function Xae(e,t){}function zD(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/\//g,"&#x2F;").replace(/=/g,"&#x3D;")}function Jae(e){return e.replace(/&(?![a-z0-9#]{2,6};)/gi,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}const Qae=/^javascript:/i,eoe=/^(?:href|src|action|formaction)$/i,toe=/&#(?:x([0-9a-f]+)|(\d+));?/gi,noe=/&(?:Tab|NewLine);/g,roe=/&colon;?/gi,ioe=/[\u0000-\u0020\u007f-\u009f]/g,aoe=/(?:^|[\s"'<>/])on\w+\s*=\s*["']?[^"'>]+["']?/i,ooe=/(^|[\s"'<>/])on(\w+\s*=)/gi,soe=/(^|[\s"'<>/])((?:href|src|action|formaction)\s*=\s*)([^\s"'=<>`]+)/gi;function loe(e,t,n){const r=t||n;if(!r)return e;const i=Number.parseInt(r,t?16:10);return i<=127?String.fromCharCode(i):e}function cA(e){const t=e.replace(toe,loe).replace(noe,"").replace(roe,":").replace(ioe,"");return Qae.test(t)}function uoe(e){const t=/url\s*\(/gi;let n="",r=0,i;for(;(i=t.exec(e))!==null;){const a=i.index,s=t.lastIndex-1;let o=s+1,f=1,m=null;for(;o<e.length;o++){const T=e[o];if(m){T===m&&(m=null);continue}if(T==='"'||T==="'")m=T;else if(T==="(")f++;else if(T===")"&&(f--,f===0))break}if(f!==0)break;const y=e.slice(s+1,o).trim(),b=y.startsWith('"')&&y.endsWith('"')||y.startsWith("'")&&y.endsWith("'")?y.slice(1,-1).trim():y;n+=e.slice(r,a),n+=cA(b)?"url(about:blank)":e.slice(a,o+1),r=o+1}return n+e.slice(r)}function ND(e,t){if(eoe.test(e)&&cA(t))return"about:blank";const n=e.toLowerCase()==="style"?uoe(t):t;return Jae(n)}function coe(e){return e=e.replace(/([\w:-]+)\s*=\s*"([^"]*)"/g,(t,n,r)=>`${n}="${ND(n,r)}"`),e=e.replace(/([\w:-]+)\s*=\s*'([^']*)'/g,(t,n,r)=>`${n}='${ND(n,r)}'`),aoe.test(e)&&(e=e.replace(ooe,"$1&#111;n$2")),e=e.replace(soe,(t,n,r,i)=>cA(i)?`${n}${r}about:blank`:t),e}const VD=e=>!Kr(e)||ia(e);function Qv(e,t){if(VD(e)||VD(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:r,des:i}=n.pop();Object.keys(r).forEach(a=>{if(a==="__proto__")return;const s=r[a];if(ia(s)){const o=[];o.length=s.length,i[a]=o,n.push({src:s,des:o})}
5else Kr(s)?((!Kr(i[a])||ia(i[a]))&&(i[a]=ci()),n.push({src:s,des:i[a]})):i[a]=s})}}function doe(e,t=e.getCurrentLanguage(),n=e.getCurrentDirection()){const r={htmlAttrs:{},link:[],meta:[]};if(e.dir&&(r.htmlAttrs.dir=n),e.lang&&t&&(r.htmlAttrs.lang=t),e.seo){const i=hoe(e);r.link=r.link.concat(i,moe(e)),r.meta=r.meta.concat(goe(e),yoe(e),voe(e,e.locales.map(a=>a.language||a.code)))}return r}function foe(e){const t=new Map;for(const n of e){if(!n.language)continue;const[r,i]=n.language.split("-");r&&i&&(n.isCatchallLocale||!t.has(r))&&t.set(r,n),t.set(n.language,n)}return t}function hoe(e){if(!e.hreflangLinks)return[];const t=[],n=foe(e.locales);for(const[r,i]of n.entries()){const a=poe(r,i,e);a&&(t.push(a),e.defaultLocale&&e.defaultLocale===i.code&&t[0].hreflang!=="x-default"&&t.unshift({[e.key]:"i18n-xd",rel:"alternate",href:a.href,hreflang:"x-default"}))}return t}function poe(e,t,n,r=n.strictCanonicals?n.getRouteWithoutQuery():void 0){const i=n.getLocalizedRoute(t.code,r);if(!i)return;const a=jy(vu(i)?i:Af(n.baseUrl,i),n.strictCanonicals?eq(n):{});return{[n.key]:`i18n-alt-${e}`,rel:"alternate",href:a,hreflang:e}}function QV(e,t=e.getCurrentRoute()){const n=e.getLocaleRoute(Object.assign({},t,{path:void 0,name:e.getRouteBaseName(t)}));return n?jy(Af(e.baseUrl,n.path),eq(e)):""}function moe(e,t=QV(e)){return t?[{[e.key]:"i18n-can",rel:"canonical",href:t}]:[]}
5function eq(e,t=e.getCurrentRoute()){const r=e.getLocaleRoute(Object.assign({},t,{path:void 0,name:e.getRouteBaseName(t)}))?.query??{},i={};for(const a of e.canonicalQueries.filter(s=>s in r)){i[a]??=[];for(const s of _oe(r[a]))i[a].push(s||"")}return i}function goe(e,t=QV(e)){return t?[{[e.key]:"i18n-og-url",property:"og:url",content:t}]:[]}function yoe(e,t=e.getCurrentLanguage()){return t?[{[e.key]:"i18n-og",property:"og:locale",content:tq(t)}]:[]}function voe(e,t,n=e.getCurrentLanguage()){return t.filter(i=>i&&i!==n).map(i=>({[e.key]:`i18n-og-alt-${i}`,property:"og:locale:alternate",content:tq(i)}))}function tq(e=""){return e.replace(/-/g,"_")}function _oe(e){return Array.isArray(e)?e:[e]}function b4(e,t,n=e.getLocale()){if(An(t)&&vu(t,{acceptRelative:!0}))return t;try{return rq(e,t,n).fullPath}catch{return""}}function nq(e,t,n=e.getLocale()){try{return rq(e,t,n)}catch{return}}function boe(e){if(!An(e))return $a({},e);if(e[0]==="/"){const{pathname:t,search:n,hash:r}=fP(e);return{path:t,query:tT(n),hash:r}}return{name:e}}function rq(e,t,n){const r=boe(t),i=e.router.resolve(e.resolveLocalizedRouteObject(r,n));return i.name?i:e.router.resolve(t)}function dA(e,t,n=e.router.currentRoute.value){const r=e.getRouteBaseName(n);if(!r)return"";const i={name:r,params:$a({},n.params,e.getLocalizedDynamicParams(t)),fullPath:n.fullPath,query:n.query,hash:n.hash,path:n.path,meta:n.meta},a=b4(e,i,t);return e.afterSwitchLocalePath(a,t)}function xoe(e,t,n=e.getLocale(),r=e.getLocales(),i=e.getBaseUrl()){const a=r.find(o=>o.code===n)||{},s=typeof t.seo=="object"&&t.seo?.canonicalQueries||[];return{...t,key:"id",locales:r,baseUrl:i,canonicalQueries:s,hreflangLinks:e.routingOptions.hreflangLinks,defaultLocale:e.routingOptions.defaultLocale,strictCanonicals:e.routingOptions.strictCanonicals,getRouteBaseName:e.getRouteBaseName,getCurrentRoute:()=>e.router.currentRoute.value,getCurrentLanguage:()=>a.language,getCurrentDirection:()=>a.dir||"ltr",getLocaleRoute:o=>nq(e,o),getLocalizedRoute:(o,f)=>dA(e,o,f),getRouteWithoutQuery:()=>{try{return $a({},e.router.resolve({query:{}}),{meta:e.router.currentRoute.value.meta})}catch{return}}}}function woe(e,{dir:t=!0,lang:n=!0,seo:r=!0}){return doe(xoe(e,{dir:t,lang:n,seo:r}))}function Soe(e=0){return t=>{const i=(typeof t=="string"?t:t.pathname).split("?")[0].split("/");return i[0]===""&&i.shift(),i.length>e&&i[e]||""}}const aT="___",Coe="default",WRe=aT+Coe;function iq(e){return typeof e=="string"?e:e!=null?e.toString():""}function _6(e){return iq(typeof e=="object"?e?.name:e).split(aT)[0]}function Toe(e,t,n){return e+aT+t}const koe=Soe(0),aq=e=>koe(e),Eoe=e=>e.split(aT).at(1)??"";function Poe(e){return String(typeof e!="object"?e:e?.name||e?.path||"")}function $oe(e){const t=Poe(e);return t[0]==="/"?aq(t):Eoe(t)}function Moe(e){return(t,n)=>Toe(iq(t),n)}function Aoe(e){return t=>e.resolve(t)}const Dx=[],x4={},Ioe=[()=>Ti(()=>import("./D3H-oBcM.js"),[],import.meta.url)],vw=[],oq=new Map,Doe=XM((e,t,n)=>{if(t==="messages"||t==="datetimeFormats"||t==="numberFormats")return e[t]??=ci(null),Qv(n,e[t]),!0});async function Loe(e){const t=En();let n={messages:ci(null)};for(const r of e){const i=await r().then(s=>sq(s)?s.default:s),a=ra(i)?await t.runWithContext(()=>i()):i;n=Doe(ci(null),a,n)}return n.fallbackLocale??=!1,n}const sq=e=>iT(e)==="[object Module]";async function Ooe(e,t){const n=En();try{const r=await n.runWithContext(t.load).then(i=>sq(i)?i.default:i);return ra(r)?await n.runWithContext(()=>r(e)):r}catch(r){throw new Error(`Failed loading locale (${e}): `+r.message)}}async function Roe(e,t=[]){const n=En(),r=await Promise.all(t.map(async a=>{const s=Boe(a),o=s||await n.runWithContext(()=>Ooe(e,a));return!s&&a.cache!==!1&&oq.set(a.key,{ttl:Date.now()+86400*1e3,value:o}),o})),i={};for(const a of r)Qv(a,i);return i}function Boe(e){if(e.cache===!1)return;const t=oq.get(e.key);if(t!=null)return t.ttl>Date.now()?t.value:void 0}function fA(e){return e!=null&&"global"in e&&"mode"in e?e.global:e}function z5(e){const t=fA(e);return"__composer"in t?t.__composer:t}function oT(e,t){return e?e.$config.public.i18n:ul().public.i18n}function _w(e){const t=oT(e).detectBrowserLanguage,n=t||{};
5return{...n,enabled:!!t,cookieKey:n.cookieKey||"i18n_redirected"}}function Foe(e){if(e)return{path:"/"+(An(e)?e:e.path).replace(/^\//,""),code:!An(e)&&e.statusCode||302}}function zoe(e){return Array.isArray(e)?e:[e]}function Noe(e,t,n){const r=(a="")=>a.replace(/https?:\/\//,""),i=e.filter(a=>r(a.domain)===t||zoe(a.domains).includes(t));return i.length<=1?i[0]?.code:i.find(a=>a.code===n)?.code||i.find(a=>a.defaultForDomains?.includes(t)??a.domainDefault)?.code}function Voe(e,t,n){const r=vw.find(a=>a.code===n),i=e?.[n]?.domain||r?.domain||r?.domains?.find(a=>a===t.host);if(i)return vu(i,{strict:!0})?i:t.protocol+"//"+i}function qoe(e){const t={};for(const n of Dx){const r=joe(e,[n]),i=Uoe(n,r);t[n]={fallbacks:r,cacheable:i}}return t}function joe(e,t){if(e===!1)return[];if(ia(e))return e;let n=[];if(An(e))return t.every(i=>i!==e)&&n.push(e),n;const r=[...t,"default"];for(const i of r)i in e&&(n=[...n,...e[i].filter(Boolean)]);return n}function qD(e){return x4[e]!=null&&x4[e].every(t=>t.cache!==!1)}function Uoe(e,t){return qD(e)&&t.every(n=>qD(n))}function Hoe(e){return vw.find(t=>!!t.defaultForDomains?.includes(e))?.code}const Dy=e=>Dx.includes(e||""),jD=e=>Dy(e)?e:void 0,lq=()=>z_("i18n:cached-locale-configs",()=>{}),uq=()=>z_("i18n:resolved-locale",()=>"");function Woe({cookieCrossOrigin:e,cookieDomain:t,cookieSecure:n,cookieKey:r}){const i=new Date;return ug(r||"i18n_redirected",{path:"/",readonly:!1,expires:new Date(i.setDate(i.getDate()+365)),sameSite:e?"none":"lax",domain:t||void 0,secure:e||n})}function Goe(e,t,n){const r=fA(t),i=oT(e),a=_w(e),s=lq(),o=Woe(a),f=new Set,m=N=>s.value[N],y=N=>Voe(i.domainLocales,rT(),N),b=sse(e,i.baseUrl),T=uq(),x=async N=>{const O=m(N)?.fallbacks??[];O.includes(N)||O.push(N);for(const I of O){const U=await e.runWithContext(()=>Roe(I,x4[I]));r.mergeLocaleMessage(I,U)}},$=async N=>{if(!(N in x4))return;const O=m(N)?.cacheable?{}:{"Cache-Control":"no-cache"},I=await $fetch(`/_i18n/s5wmHAgC/${N}/messages.json`,{headers:O});for(const U of Object.keys(I))r.mergeLocaleMessage(U,I[U])},A={vueI18n:t,initial:!0,preloaded:!1,config:i,rootRedirect:Foe(i.rootRedirect),redirectStatusCode:i.redirectStatusCode??302,dynamicResourcesSSG:!0,getDefaultLocale:()=>n,getLocale:()=>v(r.locale),setLocale:async N=>{const O=A.getLocale();N===O||!Dy(N)||(zn(r.locale)?r.locale.value=N:r.locale=N,await e.callHook("i18n:localeSwitched",{newLocale:N,oldLocale:O}),T.value=N)},setLocaleSuspend:async N=>{Dy(N)&&(A.vueI18n.__pendingLocale=N,A.vueI18n.__pendingLocalePromise=new Promise(O=>{A.vueI18n.__resolvePendingLocalePromise=async()=>{A.setCookieLocale(N),await A.setLocale(N),A.vueI18n.__pendingLocale=void 0,O()}}),(e.isHydrating||!A.config.skipSettingLocaleOnNavigate)&&await A.vueI18n.__resolvePendingLocalePromise?.())},getLocales:()=>v(r.locales).map(N=>An(N)?{code:N}:N),setCookieLocale:N=>{a.useCookie&&Dy(N)&&(o.value=N)},getBaseUrl:N=>Af(N&&y(N)||b(),e.$config.app.baseURL),loadMessages:async N=>{if(!(e.isHydrating&&f.has(N)))try{return A.dynamicResourcesSSG?await x(N):await $(N)}catch{}finally{f.add(N)}},composableCtx:void 0};return A.composableCtx=rse(A,e),A}function sT(e){if(e._nuxtI18n==null)throw new Error("Nuxt I18n context has not been set up yet.");return e._nuxtI18n}function Yoe(e,t){const n=[];for(const[r,i]of t.entries()){const a=e.find(s=>s.language?.toLowerCase()===i.toLowerCase());if(a){n.push({code:a.code,score:1-r/t.length});break}}for(const[r,i]of t.entries()){const a=i.split("-")[0].toLowerCase(),s=e.find(o=>o.language?.split("-")[0].toLowerCase()===a);if(s){n.push({code:s.code,score:.999-r/t.length});break}}return n}function Zoe(e,t){return e.score===t.score?t.code.length-e.code.length:t.score-e.score}function Koe(e,t){return Yoe(e.map(r=>({code:r.code,language:r.language||r.code})),t).sort(Zoe).at(0)?.code??""}const Xoe=(e,t)=>ug(t).value||void 0,Joe=(e,t)=>$oe(t),Qoe=e=>Koe(vw,navigator.languages),ese=(e,t,n)=>{const r=new URL(window.location.href).host,i=vw.map(a=>({...a,domain:n[a.code]?.domain??a.domain}));return Noe(i,r,aq(t))},lT=(e,t,n)=>{const r=oT(n);return{cookie:()=>Xoe(e,t.cookieKey),header:()=>{},navigator:()=>Qoe(),host:i=>ese(e,i,r.domainLocales),route:i=>Joe(e,i)}},tse=e=>!!e.path&&!e.name;function bw(e){const t=e?._nuxtI18n?.composableCtx;if(!t)throw new Error("i18n context is not initialized. Ensure the i18n plugin is installed and the composable is used within a Vue component or setup function.");return t}const nse=g_;function rse(e,t=En()){const n=ja();lT(void 0,_w(t),t);const r=e.getDefaultLocale(),i=Moe();function a(m,y){m.name=_6(m.name||n.currentRoute.value);const b=i(m.name,y);return n.hasRoute(b)&&(m.name=b),m}const s=Aoe(n);function o(m,y){const b=s(m,y),T=_6(b);return T?(b.name=i(T,y),b):(ose(y,r)&&(b.path="/"+y+b.path),b.path=nse(b.path,!0),b)}const f={router:n,_head:void 0,get head(){return this._head??=fu({}),this._head},metaState:{htmlAttrs:{},meta:[],link:[]},seoSettings:{dir:!1,lang:!1,seo:!1},localePathPayload:ise(),routingOptions:{defaultLocale:r,strictCanonicals:e.config.experimental.alternateLinkCanonicalQueries??!0,hreflangLinks:!0},getLocale:e.getLocale,getLocales:e.getLocales,getBaseUrl:e.getBaseUrl,getRouteBaseName:_6,getRouteLocalizedParams:()=>n.currentRoute.value.meta.nuxtI18nInternal??{},getLocalizedDynamicParams:m=>f.getRouteLocalizedParams()?.[m],afterSwitchLocalePath:(m,y)=>(f.getRouteLocalizedParams(),m),resolveLocalizedRouteObject:(m,y)=>tse(m)?o(m,y):a(m,y)};return f}function ise(e=En()){const t=document.querySelector(`[data-nuxt-i18n-slp="${e._id}"]`)?.textContent;return JSON.parse(t||"{}")}
5async function LP(e,t){const n=sT(e),r=n.getLocale();if(t===r&&!n.initial)return t;const i={oldLocale:r,newLocale:t,initialSetup:n.initial,context:e};let a=await e.callHook("i18n:beforeLocaleSwitch",i);return a!=null,a??=i.newLocale,Dy(a)&&(t=a),await n.loadMessages(t),await n.setLocaleSuspend(t),t}function ase(e,t,n){return!!(e.redirectOn==="root"&&t!=="/"||e.redirectOn==="no prefix"&&!e.alwaysRedirect&&Dy(n))}function UD(e,t){const n=_w(e),r=lT(void 0,n,e),i=sT(e),a=An(t)?t:t.path;function*s(){i.initial&&n.enabled&&!ase(n,a,r.route(a))&&(yield r.cookie(),yield r.header(),yield r.navigator(),yield n.fallbackLocale),yield r.route(t)}for(const o of s())if(o&&Dy(o))return o;return i.getLocale()||i.getDefaultLocale()||""}function cq(e,t,n){const r=sT(e),i=bw(e);if(t.path==="/"&&r.rootRedirect)return dc(b4(i,r.rootRedirect.path,n),{redirectCode:r.rootRedirect.code});if(r.vueI18n.__pendingLocale&&En()._processingMiddleware||lT(void 0,_w(e),e).route(t)===n)return;const s=dA(i,n,t)||b4(i,t.fullPath,n);if(!uee(s,t.fullPath))return dc(s,{redirectCode:r.redirectStatusCode})}function ose(e,t){return e!==t||!1}function sse(e,t,n,r){return ra(t)?()=>t(e):()=>t??""}function lse(e,t,n){return{line:e,column:t,offset:n}}function OP(e,t,n){return{start:e,end:t}}const vi={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14},use=17;function uT(e,t,n={}){const{domain:r,messages:i,args:a}=n,s=e,o=new SyntaxError(String(s));return o.code=e,t&&(o.location=t),o.domain=r,o}function cse(e){throw e}const ff=" ",dse="\r",Bs=`
6`,fse="\u2028",hse="\u2029";function pse(e){const t=e;let n=0,r=1,i=1,a=0;const s=ee=>t[ee]===dse&&t[ee+1]===Bs,o=ee=>t[ee]===Bs,f=ee=>t[ee]===hse,m=ee=>t[ee]===fse,y=ee=>s(ee)||o(ee)||f(ee)||m(ee),b=()=>n,T=()=>r,x=()=>i,$=()=>a,A=ee=>s(ee)||f(ee)||m(ee)?Bs:t[ee],N=()=>A(n),O=()=>A(n+a);function I(){return a=0,y(n)&&(r++,i=0),s(n)&&n++,n++,i++,t[n]}function U(){return s(n+a)&&a++,a++,t[n+a]}function B(){n=0,r=1,i=1,a=0}function q(ee=0){a=ee}function Q(){const ee=n+a;for(;ee!==n;)I();a=0}return{index:b,line:T,column:x,peekOffset:$,charAt:A,currentChar:N,currentPeek:O,next:I,peek:U,reset:B,resetPeek:q,skipToPeek:Q}}const Lh=void 0,mse=".",HD="'",gse="tokenizer";function yse(e,t={}){const n=t.location!==!1,r=pse(e),i=()=>r.index(),a=()=>lse(r.line(),r.column(),r.index()),s=a(),o=i(),f={currentType:13,offset:o,startLoc:s,endLoc:s,lastType:13,lastOffset:o,lastStartLoc:s,lastEndLoc:s,braceNest:0,inLinked:!1,text:""},m=()=>f,{onError:y}=t;function b(Ie,qe,pt,...Tt){const It=m();if(qe.column+=pt,qe.offset+=pt,y){const sn=n?OP(It.startLoc,qe):null,Yt=uT(Ie,sn,{domain:gse,args:Tt});y(Yt)}}function T(Ie,qe,pt){Ie.endLoc=a(),Ie.currentType=qe;const Tt={type:qe};return n&&(Tt.loc=OP(Ie.startLoc,Ie.endLoc)),pt!=null&&(Tt.value=pt),Tt}const x=Ie=>T(Ie,13);function $(Ie,qe){return Ie.currentChar()===qe?(Ie.next(),qe):(b(vi.EXPECTED_TOKEN,a(),0,qe),"")}function A(Ie){let qe="";for(;Ie.currentPeek()===ff||Ie.currentPeek()===Bs;)qe+=Ie.currentPeek(),Ie.peek();return qe}function N(Ie){const qe=A(Ie);return Ie.skipToPeek(),qe}function O(Ie){if(Ie===Lh)return!1;const qe=Ie.charCodeAt(0);return qe>=97&&qe<=122||qe>=65&&qe<=90||qe===95}function I(Ie){if(Ie===Lh)return!1;const qe=Ie.charCodeAt(0);return qe>=48&&qe<=57}function U(Ie,qe){const{currentType:pt}=qe;if(pt!==2)return!1;A(Ie);const Tt=O(Ie.currentPeek());return Ie.resetPeek(),Tt}function B(Ie,qe){const{currentType:pt}=qe;if(pt!==2)return!1;A(Ie);const Tt=Ie.currentPeek()==="-"?Ie.peek():Ie.currentPeek(),It=I(Tt);return Ie.resetPeek(),It}function q(Ie,qe){const{currentType:pt}=qe;if(pt!==2)return!1;A(Ie);const Tt=Ie.currentPeek()===HD;return Ie.resetPeek(),Tt}function Q(Ie,qe){const{currentType:pt}=qe;if(pt!==7)return!1;A(Ie);const Tt=Ie.currentPeek()===".";return Ie.resetPeek(),Tt}function ee(Ie,qe){const{currentType:pt}=qe;if(pt!==8)return!1;A(Ie);const Tt=O(Ie.currentPeek());return Ie.resetPeek(),Tt}function Y(Ie,qe){const{currentType:pt}=qe;if(!(pt===7||pt===11))return!1;A(Ie);const Tt=Ie.currentPeek()===":";return Ie.resetPeek(),Tt}function z(Ie,qe){const{currentType:pt}=qe;if(pt!==9)return!1;const Tt=()=>{const sn=Ie.currentPeek();return sn==="{"?O(Ie.peek()):sn==="@"||sn==="|"||sn===":"||sn==="."||sn===ff||!sn?!1:sn===Bs?(Ie.peek(),Tt()):K(Ie,!1)},It=Tt();return Ie.resetPeek(),It}function H(Ie){A(Ie);const qe=Ie.currentPeek()==="|";return Ie.resetPeek(),qe}function K(Ie,qe=!0){const pt=(It=!1,sn="")=>{const Yt=Ie.currentPeek();return Yt==="{"||Yt==="@"||!Yt?It:Yt==="|"?!(sn===ff||sn===Bs):Yt===ff?(Ie.peek(),pt(!0,ff)):Yt===Bs?(Ie.peek(),pt(!0,Bs)):!0},Tt=pt();return qe&&Ie.resetPeek(),Tt}function ne(Ie,qe){const pt=Ie.currentChar();return pt===Lh?Lh:qe(pt)?(Ie.next(),pt):null}function le(Ie){const qe=Ie.charCodeAt(0);return qe>=97&&qe<=122||qe>=65&&qe<=90||qe>=48&&qe<=57||qe===95||qe===36}function pe(Ie){return ne(Ie,le)}function ae(Ie){const qe=Ie.charCodeAt(0);return qe>=97&&qe<=122||qe>=65&&qe<=90||qe>=48&&qe<=57||qe===95||qe===36||qe===45}function se(Ie){return ne(Ie,ae)}function ce(Ie){const qe=Ie.charCodeAt(0);return qe>=48&&qe<=57}function ye(Ie){return ne(Ie,ce)}function $e(Ie){const qe=Ie.charCodeAt(0);return qe>=48&&qe<=57||qe>=65&&qe<=70||qe>=97&&qe<=102}function Be(Ie){return ne(Ie,$e)}function je(Ie){let qe="",pt="";for(;qe=ye(Ie);)pt+=qe;return pt}function at(Ie){let qe="";for(;;){const pt=Ie.currentChar();if(pt==="\\"){const Tt=Ie.peek();Tt==="{"||Tt==="}"||Tt==="@"||Tt==="|"||Tt==="\\"?(qe+=pt+Tt,Ie.next(),Ie.next()):(Ie.resetPeek(),qe+=pt,Ie.next())}else{if(pt==="{"||pt==="}"||pt==="@"||pt==="|"||!pt)break;
6if(pt===ff||pt===Bs)if(K(Ie))qe+=pt,Ie.next();else{if(H(Ie))break;qe+=pt,Ie.next()}else qe+=pt,Ie.next()}}return qe}function Pt(Ie){N(Ie);let qe="",pt="";for(;qe=se(Ie);)pt+=qe;const Tt=Ie.currentChar();if(Tt&&Tt!=="}"&&Tt!==Lh&&Tt!==ff&&Tt!==Bs&&Tt!==" "){const It=At(Ie);return b(vi.INVALID_TOKEN_IN_PLACEHOLDER,a(),0,pt+It),pt+It}return Ie.currentChar()===Lh&&b(vi.UNTERMINATED_CLOSING_BRACE,a(),0),pt}function Qe(Ie){N(Ie);let qe="";return Ie.currentChar()==="-"?(Ie.next(),qe+=`-${je(Ie)}`):qe+=je(Ie),Ie.currentChar()===Lh&&b(vi.UNTERMINATED_CLOSING_BRACE,a(),0),qe}function nt(Ie){return Ie!==HD&&Ie!==Bs}function Ve(Ie){N(Ie),$(Ie,"'");let qe="",pt="";for(;qe=ne(Ie,nt);)qe==="\\"?pt+=ct(Ie):pt+=qe;const Tt=Ie.currentChar();return Tt===Bs||Tt===Lh?(b(vi.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,a(),0),Tt===Bs&&(Ie.next(),$(Ie,"'")),pt):($(Ie,"'"),pt)}function ct(Ie){const qe=Ie.currentChar();switch(qe){case"\\":case"'":return Ie.next(),`\\${qe}`;case"u":return zt(Ie,qe,4);case"U":return zt(Ie,qe,6);default:return b(vi.UNKNOWN_ESCAPE_SEQUENCE,a(),0,qe),""}}function zt(Ie,qe,pt){$(Ie,qe);let Tt="";for(let It=0;It<pt;It++){const sn=Be(Ie);if(!sn){b(vi.INVALID_UNICODE_ESCAPE_SEQUENCE,a(),0,`\\${qe}${Tt}${Ie.currentChar()}`);break}Tt+=sn}return`\\${qe}${Tt}`}function ut(Ie){return Ie!=="{"&&Ie!=="}"&&Ie!==ff&&Ie!==Bs}function At(Ie){N(Ie);let qe="",pt="";for(;qe=ne(Ie,ut);)pt+=qe;return pt}function Dt(Ie){let qe="",pt="";for(;qe=pe(Ie);)pt+=qe;return pt}function Ot(Ie){const qe=pt=>{const Tt=Ie.currentChar();return Tt==="{"||Tt==="@"||Tt==="|"||Tt==="("||Tt===")"||!Tt||Tt===ff?pt:(pt+=Tt,Ie.next(),qe(pt))};return qe("")}function Ee(Ie){N(Ie);const qe=$(Ie,"|");return N(Ie),qe}function Ye(Ie,qe){let pt=null;switch(Ie.currentChar()){case"{":return qe.braceNest>=1&&b(vi.NOT_ALLOW_NEST_PLACEHOLDER,a(),0),Ie.next(),pt=T(qe,2,"{"),N(Ie),qe.braceNest++,pt;case"}":return qe.braceNest>0&&qe.currentType===2&&b(vi.EMPTY_PLACEHOLDER,a(),0),Ie.next(),pt=T(qe,3,"}"),qe.braceNest--,qe.braceNest>0&&N(Ie),qe.inLinked&&qe.braceNest===0&&(qe.inLinked=!1),pt;case"@":return qe.braceNest>0&&b(vi.UNTERMINATED_CLOSING_BRACE,a(),0),pt=it(Ie,qe)||x(qe),qe.braceNest=0,pt;default:{let It=!0,sn=!0,Yt=!0;if(H(Ie))return qe.braceNest>0&&b(vi.UNTERMINATED_CLOSING_BRACE,a(),0),pt=T(qe,1,Ee(Ie)),qe.braceNest=0,qe.inLinked=!1,pt;if(qe.braceNest>0&&(qe.currentType===4||qe.currentType===5||qe.currentType===6))return b(vi.UNTERMINATED_CLOSING_BRACE,a(),0),qe.braceNest=0,yt(Ie,qe);if(It=U(Ie,qe))return pt=T(qe,4,Pt(Ie)),N(Ie),pt;if(sn=B(Ie,qe))return pt=T(qe,5,Qe(Ie)),N(Ie),pt;if(Yt=q(Ie,qe))return pt=T(qe,6,Ve(Ie)),N(Ie),pt;if(!It&&!sn&&!Yt)return pt=T(qe,12,At(Ie)),b(vi.INVALID_TOKEN_IN_PLACEHOLDER,a(),0,pt.value),N(Ie),pt;break}}return pt}function it(Ie,qe){const{currentType:pt}=qe;let Tt=null;const It=Ie.currentChar();switch((pt===7||pt===8||pt===11||pt===9)&&(It===Bs||It===ff)&&b(vi.INVALID_LINKED_FORMAT,a(),0),It){case"@":return Ie.next(),Tt=T(qe,7,"@"),qe.inLinked=!0,Tt;case".":return N(Ie),Ie.next(),T(qe,8,".");case":":return N(Ie),Ie.next(),T(qe,9,":");default:return H(Ie)?(Tt=T(qe,1,Ee(Ie)),qe.braceNest=0,qe.inLinked=!1,Tt):Q(Ie,qe)||Y(Ie,qe)?(N(Ie),it(Ie,qe)):ee(Ie,qe)?(N(Ie),T(qe,11,Dt(Ie))):z(Ie,qe)?(N(Ie),It==="{"?Ye(Ie,qe)||Tt:T(qe,10,Ot(Ie))):(pt===7&&b(vi.INVALID_LINKED_FORMAT,a(),0),qe.braceNest=0,qe.inLinked=!1,yt(Ie,qe))}}function yt(Ie,qe){let pt={type:13};if(qe.braceNest>0)return Ye(Ie,qe)||x(qe);if(qe.inLinked)return it(Ie,qe)||x(qe);switch(Ie.currentChar()){case"{":return Ye(Ie,qe)||x(qe);case"}":return b(vi.UNBALANCED_CLOSING_BRACE,a(),0),Ie.next(),T(qe,3,"}");case"@":return it(Ie,qe)||x(qe);default:{if(H(Ie))return pt=T(qe,1,Ee(Ie)),qe.braceNest=0,qe.inLinked=!1,pt;if(K(Ie))return T(qe,0,at(Ie));break}}return pt}function St(){const{currentType:Ie,offset:qe,startLoc:pt,endLoc:Tt}=f;return f.lastType=Ie,f.lastOffset=qe,f.lastStartLoc=pt,f.lastEndLoc=Tt,f.offset=i(),f.startLoc=a(),r.currentChar()===Lh?T(f,13):yt(r,f)}return{nextToken:St,currentOffset:i,currentPosition:a,context:m}}const vse="parser",_se=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g,bse=/\\([\\@{}|])/g;function xse(e,t){return t}function wse(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(t||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function Sse(e={}){const t=e.location!==!1,{onError:n}=e;function r(O,I,U,B,...q){const Q=O.currentPosition();if(Q.offset+=B,Q.column+=B,n){const ee=t?OP(U,Q):null,Y=uT(I,ee,{domain:vse,args:q});n(Y)}}function i(O,I,U){const B={type:O};return t&&(B.start=I,B.end=I,B.loc={start:U,end:U}),B}function a(O,I,U,B){t&&(O.end=I,O.loc&&(O.loc.end=U))}function s(O,I){const U=O.context(),B=i(3,U.offset,U.startLoc);return B.value=I.replace(bse,xse),a(B,O.currentOffset(),O.currentPosition()),B}function o(O,I){const U=O.context(),{lastOffset:B,lastStartLoc:q}=U,Q=i(5,B,q);return Q.index=parseInt(I,10),O.nextToken(),a(Q,O.currentOffset(),O.currentPosition()),Q}function f(O,I){const U=O.context(),{lastOffset:B,lastStartLoc:q}=U,Q=i(4,B,q);return Q.key=I,O.nextToken(),a(Q,O.currentOffset(),O.currentPosition()),Q}function m(O,I){const U=O.context(),{lastOffset:B,lastStartLoc:q}=U,Q=i(9,B,q);return Q.value=I.replace(_se,wse),O.nextToken(),a(Q,O.currentOffset(),O.currentPosition()),Q}function y(O){const I=O.nextToken(),U=O.context(),{lastOffset:B,lastStartLoc:q}=U,Q=i(8,B,q);return I.type!==11?(r(O,vi.UNEXPECTED_EMPTY_LINKED_MODIFIER,U.lastStartLoc,0),Q.value="",a(Q,B,q),{nextConsumeToken:I,node:Q}):(I.value==null&&r(O,vi.UNEXPECTED_LEXICAL_ANALYSIS,U.lastStartLoc,0,hf(I)),Q.value=I.value||"",a(Q,O.currentOffset(),O.currentPosition()),{node:Q})}function b(O,I){const U=O.context(),B=i(7,U.offset,U.startLoc);return B.value=I,a(B,O.currentOffset(),O.currentPosition()),B}function T(O){const I=O.context(),U=i(6,I.offset,I.startLoc);let B=O.nextToken();if(B.type===8){const q=y(O);U.modifier=q.node,B=q.nextConsumeToken||O.nextToken()}switch(B.type!==9&&r(O,vi.UNEXPECTED_LEXICAL_ANALYSIS,I.lastStartLoc,0,hf(B)),B=O.nextToken(),B.type===2&&(B=O.nextToken()),B.type){case 10:B.value==null&&r(O,vi.UNEXPECTED_LEXICAL_ANALYSIS,I.lastStartLoc,0,hf(B)),U.key=b(O,B.value||"");break;case 4:B.value==null&&r(O,vi.UNEXPECTED_LEXICAL_ANALYSIS,I.lastStartLoc,0,hf(B)),U.key=f(O,B.value||"");break;case 5:B.value==null&&r(O,vi.UNEXPECTED_LEXICAL_ANALYSIS,I.lastStartLoc,0,hf(B)),U.key=o(O,B.value||"");break;case 6:B.value==null&&r(O,vi.UNEXPECTED_LEXICAL_ANALYSIS,I.lastStartLoc,0,hf(B)),U.key=m(O,B.value||"");break;default:{r(O,vi.UNEXPECTED_EMPTY_LINKED_KEY,I.lastStartLoc,0);const q=O.context(),Q=i(7,q.offset,q.startLoc);return Q.value="",a(Q,q.offset,q.startLoc),U.key=Q,a(U,q.offset,q.startLoc),{nextConsumeToken:B,node:U}}}return a(U,O.currentOffset(),O.currentPosition()),{node:U}}function x(O){const I=O.context(),U=I.currentType===1?O.currentOffset():I.offset,B=I.currentType===1?I.endLoc:I.startLoc,q=i(2,U,B);q.items=[];let Q=null;do{const z=Q||O.nextToken();switch(Q=null,z.type){case 0:z.value==null&&r(O,vi.UNEXPECTED_LEXICAL_ANALYSIS,I.lastStartLoc,0,hf(z)),q.items.push(s(O,z.value||""));break;case 5:z.value==null&&r(O,vi.UNEXPECTED_LEXICAL_ANALYSIS,I.lastStartLoc,0,hf(z)),q.items.push(o(O,z.value||""));break;case 4:z.value==null&&r(O,vi.UNEXPECTED_LEXICAL_ANALYSIS,I.lastStartLoc,0,hf(z)),q.items.push(f(O,z.value||""));break;case 6:z.value==null&&r(O,vi.UNEXPECTED_LEXICAL_ANALYSIS,I.lastStartLoc,0,hf(z)),q.items.push(m(O,z.value||""));break;case 7:{const H=T(O);q.items.push(H.node),Q=H.nextConsumeToken||null;break}}}while(I.currentType!==13&&I.currentType!==1);const ee=I.currentType===1?I.lastOffset:O.currentOffset(),Y=I.currentType===1?I.lastEndLoc:O.currentPosition();return a(q,ee,Y),q}function $(O,I,U,B){const q=O.context();let Q=B.items.length===0;const ee=i(1,I,U);ee.cases=[],ee.cases.push(B);do{const Y=x(O);Q||(Q=Y.items.length===0),ee.cases.push(Y)}while(q.currentType!==13);return Q&&r(O,vi.MUST_HAVE_MESSAGES_IN_PLURAL,U,0),a(ee,O.currentOffset(),O.currentPosition()),ee}function A(O){const I=O.context(),{offset:U,startLoc:B}=I,q=x(O);return I.currentType===13?q:$(O,U,B,q)}function N(O){const I=yse(O,$a({},e)),U=I.context(),B=i(0,U.offset,U.startLoc);return t&&B.loc&&(B.loc.source=O),B.body=A(I),e.onCacheKey&&(B.cacheKey=e.onCacheKey(O)),U.currentType!==13&&r(I,vi.UNEXPECTED_LEXICAL_ANALYSIS,U.lastStartLoc,0,O[U.offset]||""),a(B,I.currentOffset(),I.currentPosition()),B}return{parse:N}}function hf(e){if(e.type===13)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function Cse(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:a=>(n.helpers.add(a),a)}}function WD(e,t){for(let n=0;n<e.length;n++)hA(e[n],t)}function hA(e,t){switch(e.type){case 1:WD(e.cases,t),t.helper("plural");break;case 2:WD(e.items,t);break;case 6:{hA(e.key,t),t.helper("linked"),t.helper("type");break}case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function Tse(e,t={}){const n=Cse(e);n.helper("normalize"),e.body&&hA(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function kse(e){const t=e.body;
6return t.type===2?GD(t):t.cases.forEach(n=>GD(n)),e}function GD(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const r=e.items[n];if(!(r.type===3||r.type===9)||r.value==null)break;t.push(r.value)}if(t.length===e.items.length){e.static=uA(t);for(let n=0;n<e.items.length;n++){const r=e.items[n];(r.type===3||r.type===9)&&delete r.value}}}}function Bv(e){switch(e.t=e.type,e.type){case 0:{const t=e;Bv(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let r=0;r<n.length;r++)Bv(n[r]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let r=0;r<n.length;r++)Bv(n[r]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;Bv(t.key),t.k=t.key,delete t.key,t.modifier&&(Bv(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}}delete e.type}function Ese(e,t){const{filename:n,breakLineCode:r,needIndent:i}=t,a=t.location!==!1,s={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:i,indentLevel:0};a&&e.loc&&(s.source=e.loc.source);const o=()=>s;function f(A,N){s.code+=A}function m(A,N=!0){const O=N?r:"";f(i?O+"  ".repeat(A):O)}function y(A=!0){const N=++s.indentLevel;A&&m(N)}function b(A=!0){const N=--s.indentLevel;A&&m(N)}function T(){m(s.indentLevel)}return{context:o,push:f,indent:y,deindent:b,newline:T,helper:A=>`_${A}`,needIndent:()=>s.needIndent}}function Pse(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),b_(e,t.key),t.modifier?(e.push(", "),b_(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function $se(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const i=t.items.length;for(let a=0;a<i&&(b_(e,t.items[a]),a!==i-1);a++)e.push(", ");e.deindent(r()),e.push("])")}function Mse(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(r());const i=t.cases.length;for(let a=0;a<i&&(b_(e,t.cases[a]),a!==i-1);a++)e.push(", ");e.deindent(r()),e.push("])")}}function Ase(e,t){t.body?b_(e,t.body):e.push("null")}function b_(e,t){const{helper:n}=e;switch(t.type){case 0:Ase(e,t);break;case 1:Mse(e,t);break;case 2:$se(e,t);break;case 6:Pse(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break}}const Ise=(e,t={})=>{const n=An(t.mode)?t.mode:"normal",r=An(t.filename)?t.filename:"message.intl";t.sourceMap;const i=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
7`,a=t.needIndent?t.needIndent:n!=="arrow",s=e.helpers||[],o=Ese(e,{filename:r,breakLineCode:i,needIndent:a});o.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),o.indent(a),s.length>0&&(o.push(`const { ${uA(s.map(y=>`${y}: _${y}`),", ")} } = ctx`),o.newline()),o.push("return "),b_(o,e),o.deindent(a),o.push("}"),delete e.helpers;const{code:f,map:m}=o.context();return{ast:e,code:f,map:m?m.toJSON():void 0}};function Dse(e,t={}){const n=$a({},t),r=!!n.jit,i=!!n.minify,a=n.optimize==null?!0:n.optimize,o=Sse(n).parse(e);return r?(a&&kse(o),i&&Bv(o),{ast:o,code:""}):(Tse(o,n),Ise(o,n))}function $f(e){return Kr(e)&&pA(e)===0&&(uc(e,"b")||uc(e,"body"))}const dq=["b","body"];function Lse(e){return Eg(e,dq)}const fq=["c","cases"];function Ose(e){return Eg(e,fq,[])}const hq=["s","static"];function Rse(e){return Eg(e,hq)}const pq=["i","items"];function Bse(e){return Eg(e,pq,[])}const mq=["t","type"];function pA(e){return Eg(e,mq)}const gq=["v","value"];function N5(e,t){const n=Eg(e,gq);if(n!=null)return n;throw Lx(t)}const yq=["m","modifier"];function Fse(e){return Eg(e,yq)}const vq=["k","key"];function zse(e){const t=Eg(e,vq);if(t)return t;throw Lx(6)}function Eg(e,t,n){for(let r=0;r<t.length;r++){const i=t[r];
7if(uc(e,i)&&e[i]!=null)return e[i]}return n}const _q=[...dq,...fq,...hq,...pq,...vq,...yq,...gq,...mq];function Lx(e){return new Error(`unhandled node type: ${e}`)}function b6(e){return n=>Nse(n,e)}function Nse(e,t){const n=Lse(t);if(n==null)throw Lx(0);if(pA(n)===1){const a=Ose(n);return e.plural(a.reduce((s,o)=>[...s,YD(e,o)],[]))}else return YD(e,n)}function YD(e,t){const n=Rse(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const r=Bse(t).reduce((i,a)=>[...i,RP(e,a)],[]);return e.normalize(r)}}function RP(e,t){const n=pA(t);switch(n){case 3:return N5(t,n);case 9:return N5(t,n);case 4:{const r=t;if(uc(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(uc(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw Lx(n)}case 5:{const r=t;if(uc(r,"i")&&lo(r.i))return e.interpolate(e.list(r.i));if(uc(r,"index")&&lo(r.index))return e.interpolate(e.list(r.index));throw Lx(n)}case 6:{const r=t,i=Fse(r),a=zse(r);return e.linked(RP(e,a),i?RP(e,i):void 0,e.type)}case 7:return N5(t,n);case 8:return N5(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const Vse=e=>e;let V5=ci();function qse(e,t={}){let n=!1;const r=t.onError||cse;return t.onError=i=>{n=!0,r(i)},{...Dse(e,t),detectError:n}}function jse(e,t){if(An(e)){ya(t.warnHtmlMessage)&&t.warnHtmlMessage;const r=(t.onCacheKey||Vse)(e),i=V5[r];if(i)return i;const{ast:a,detectError:s}=qse(e,{...t,location:!1,jit:!0}),o=b6(a);return s?o:V5[r]=o}else{const n=e.cacheKey;if(n){const r=V5[n];return r||(V5[n]=b6(e))}else return b6(e)}}const tp={INVALID_ARGUMENT:use,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},Use=24;function np(e){return uT(e,null,void 0)}function mA(e,t){return t.locale!=null?ZD(t.locale):ZD(e.locale)}let x6;function ZD(e){if(An(e))return e;if(ra(e)){if(e.resolvedOnce&&x6!=null)return x6;if(e.constructor.name==="Function"){const t=e();if(Zae(t))throw np(tp.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return x6=t}else throw np(tp.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw np(tp.NOT_SUPPORT_LOCALE_TYPE)}function Hse(e,t,n){return[...new Set([n,...ia(t)?t:Kr(t)?Object.keys(t).filter(r=>r!=="default"):An(t)?[t]:[n]])]}function BP(e,t,n){const r=An(n)?n:w4,i=e;let a;Kr(t)?(i.__localeChainObjectCache||(i.__localeChainObjectCache=new WeakMap),a=i.__localeChainObjectCache.get(t),a||(a=new Map,i.__localeChainObjectCache.set(t,a))):(i.__localeChainCache||(i.__localeChainCache=new Map),a=i.__localeChainCache.get(t),a||(a=new Map,i.__localeChainCache.set(t,a)));const s=a.get(r);if(s)return s;const o=[];let f=[n];for(;ia(f);)f=KD(o,f,t);const m=ia(t)||!Ui(t)?t:t.default?t.default:null;return f=An(m)?[m]:m,ia(f)&&KD(o,f,!1),a.set(r,o),o}function KD(e,t,n){let r=!0;for(let i=0;i<t.length&&ya(r);i++){const a=t[i];An(a)&&(r=Wse(e,t[i],n))}return r}function Wse(e,t,n){let r;const i=t.split("-");do{const a=i.join("-");r=Gse(e,a,n),i.splice(-1,1)}while(i.length&&r===!0);return r}function Gse(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r=t[t.length-1]!=="!";const i=t.replace(/!/g,"");e.push(i),(ia(n)||Ui(n))&&n[i]&&(r=n[i])}return r}const Pg=[];Pg[0]={w:[0],i:[3,0],"[":[4],o:[7]};Pg[1]={w:[1],".":[2],"[":[4],o:[7]};Pg[2]={w:[2],i:[3,0],0:[3,0]};Pg[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};Pg[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};Pg[5]={"'":[4,0],o:8,l:[5,0]};Pg[6]={'"':[4,0],o:8,l:[6,0]};const Yse=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Zse(e){return Yse.test(e)}function Kse(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function Xse(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function Jse(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Zse(t)?Kse(t):"*"+t}function Qse(e){const t=[];let n=-1,r=0,i=0,a,s,o,f,m,y,b;const T=[];T[0]=()=>{s===void 0?s=o:s+=o},T[1]=()=>{s!==void 0&&(t.push(s),s=void 0)},T[2]=()=>{T[0](),i++},T[3]=()=>
7{if(i>0)i--,r=4,T[0]();else{if(i=0,s===void 0||(s=Jse(s),s===!1))return!1;T[1]()}};function x(){const $=e[n+1];if(r===5&&$==="'"||r===6&&$==='"')return n++,o="\\"+$,T[0](),!0}for(;r!==null;)if(n++,a=e[n],!(a==="\\"&&x())){if(f=Xse(a),b=Pg[r],m=b[f]||b.l||8,m===8||(r=m[0],m[1]!==void 0&&(y=T[m[1]],y&&(o=a,y()===!1))))return;if(r===7)return t}}const XD=new Map;function ele(e,t){return Kr(e)?e[t]:null}function tle(e,t){if(!Kr(e))return null;let n=XD.get(t);if(n||(n=Qse(t),n&&XD.set(t,n)),!n)return null;const r=n.length;let i=e,a=0;for(;a<r;){const s=n[a];if(_q.includes(s)&&$f(i)||!Kr(i)||!uc(i,s))return null;const o=i[s];if(o===void 0||ra(i))return null;i=o,a++}return i}const nle="11.4.12",cT=-1,w4="en-US",S4="",JD=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function rle(){return{upper:(e,t)=>t==="text"&&An(e)?e.toUpperCase():t==="vnode"&&Kr(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&An(e)?e.toLowerCase():t==="vnode"&&Kr(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&An(e)?JD(e):t==="vnode"&&Kr(e)&&"__v_isVNode"in e?JD(e.children):e}}let bq;function ile(e){bq=e}let xq;function ale(e){xq=e}let wq;function ole(e){wq=e}let Sq=null;const QD=e=>{Sq=e},eL=()=>Sq;let tL=0;function sle(e={}){const t=ra(e.onWarn)?e.onWarn:Xae,n=An(e.version)?e.version:nle,r=An(e.locale)||ra(e.locale)?e.locale:w4,i=ra(r)?w4:r,a=ia(e.fallbackLocale)||Ui(e.fallbackLocale)||An(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i,s=Ui(e.messages)?e.messages:w6(i),o=Ui(e.datetimeFormats)?e.datetimeFormats:w6(i),f=Ui(e.numberFormats)?e.numberFormats:w6(i),m=$a(ci(),e.modifiers,rle()),y=e.pluralRules||ci(),b=ra(e.missing)?e.missing:null,T=ya(e.missingWarn)||_4(e.missingWarn)?e.missingWarn:!0,x=ya(e.fallbackWarn)||_4(e.fallbackWarn)?e.fallbackWarn:!0,$=!!e.fallbackFormat,A=!!e.unresolving,N=ra(e.postTranslation)?e.postTranslation:null,O=Ui(e.processor)?e.processor:null,I=ya(e.warnHtmlMessage)?e.warnHtmlMessage:!0,U=!!e.escapeParameter,B=ra(e.messageCompiler)?e.messageCompiler:bq,q=ra(e.messageResolver)?e.messageResolver:xq||ele,Q=ra(e.localeFallbacker)?e.localeFallbacker:wq||Hse,ee=Kr(e.fallbackContext)?e.fallbackContext:void 0,Y=e,z=Kr(Y.__datetimeFormatters)?Y.__datetimeFormatters:new Map,H=Kr(Y.__numberFormatters)?Y.__numberFormatters:new Map,K=Kr(Y.__meta)?Y.__meta:{};tL++;const ne={version:n,cid:tL,locale:r,fallbackLocale:a,messages:s,modifiers:m,pluralRules:y,missing:b,missingWarn:T,fallbackWarn:x,fallbackFormat:$,unresolving:A,postTranslation:N,processor:O,warnHtmlMessage:I,escapeParameter:U,messageCompiler:B,messageResolver:q,localeFallbacker:Q,fallbackContext:ee,onWarn:t,__meta:K};return ne.datetimeFormats=o,ne.numberFormats=f,ne.__datetimeFormatters=z,ne.__numberFormatters=H,ne}const w6=e=>({[e]:ci()});function Cq(e,t,n,r,i){const{missing:a,onWarn:s}=e;if(a!==null){const o=a(e,n,t,i);return An(o)?o:t}else return t}function nL(e,t){const n=e;Kr(t)?n.__localeChainObjectCache?.delete(t):n.__localeChainCache?.delete(t)}function q5(e,t,n){nL(e,n),e.fallbackContext&&nL(e.fallbackContext,n),e.localeFallbacker(e,n,t)}function lle(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function ule(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r<t.length;r++)if(lle(e,t[r]))return!0;return!1}function Tq(e,t,n,r,i,a,s){const{fallbackLocale:o,localeFallbacker:f,onWarn:m}=e,y=f(e,o,n);for(let b=0;b<y.length;b++){const T=y[b],x=(r[T]||{})[t];if(Ui(x)&&An(T))return T;Cq(e,t,T,i,s)}return null}function kq(e,t,n){let r=`${e}__${t}`;return Ui(n)&&!lA(n)&&(r=`${r}__${JSON.stringify(n)}`),r}function Eq(e,t,n){for(const r in n){const i=`${t}__${r}`;for(const a of e.keys())(a===i||a.startsWith(`${i}__`))&&e.delete(a)}}function Pq(e,t,n,r){const[,i,a,s]=e;let o=n;
7return An(i)?t.key=i:Ui(i)&&Object.keys(i).forEach(f=>{r.includes(f)?o[f]=i[f]:t[f]=i[f]}),An(a)?t.locale=a:Ui(a)&&(o=a),Ui(s)&&(o=s),o}function rL(e,...t){const{datetimeFormats:n,unresolving:r,onWarn:i}=e,{__datetimeFormatters:a}=e;if(!An(t[0])&&!XV(t[0])&&!lo(t[0]))return S4;const[s,o,f,m]=FP(...t),y=ya(f.missingWarn)?f.missingWarn:e.missingWarn,b=ya(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn,T=!!f.part,x=mA(e,f);if(!An(s)||s===""){const I=new Intl.DateTimeFormat(x.replace(/!/g,""),m);return T?I.formatToParts(o):I.format(o)}const $=Tq(e,s,x,n,y,b,"datetime format");if(!An($))return r?cT:s;const A=n[$][s],N=kq($,s,m);let O=a.get(N);return O||(O=new Intl.DateTimeFormat($,$a({},A,m)),a.set(N,O)),T?O.formatToParts(o):O.format(o)}const $q=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function FP(...e){const[t]=e,n=ci(),r=ci();let i;if(An(t)){const s=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!s)throw np(tp.INVALID_ISO_DATE_ARGUMENT);const o=s[3]?s[3].trim().startsWith("T")?`${s[1].trim()}${s[3].trim()}`:`${s[1].trim()}T${s[3].trim()}`:s[1].trim();i=new Date(o);try{i.toISOString()}catch{throw np(tp.INVALID_ISO_DATE_ARGUMENT)}}else if(XV(t)){if(isNaN(t.getTime()))throw np(tp.INVALID_DATE_ARGUMENT);i=t}else if(lo(t))i=t;else throw np(tp.INVALID_ARGUMENT);const a=Pq(e,n,r,$q);return[n.key||"",i,n,a]}function iL(e,t,n){Eq(e.__datetimeFormatters,t,n)}function aL(e,...t){const{numberFormats:n,unresolving:r,onWarn:i}=e,{__numberFormatters:a}=e;if(!lo(t[0]))return S4;const[s,o,f,m]=zP(...t),y=ya(f.missingWarn)?f.missingWarn:e.missingWarn,b=ya(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn,T=!!f.part,x=mA(e,f);if(!An(s)||s===""){const I=new Intl.NumberFormat(x.replace(/!/g,""),m);
7return T?I.formatToParts(o):I.format(o)}const $=Tq(e,s,x,n,y,b,"number format");if(!An($))return r?cT:s;const A=n[$][s],N=kq($,s,m);let O=a.get(N);return O||(O=new Intl.NumberFormat($,$a({},A,m)),a.set(N,O)),T?O.formatToParts(o):O.format(o)}const Mq=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function zP(...e){const[t]=e,n=ci(),r=ci();if(!lo(t))throw np(tp.INVALID_ARGUMENT);const i=t,a=Pq(e,n,r,Mq);return[n.key||"",i,n,a]}function oL(e,t,n){Eq(e.__numberFormatters,t,n)}const cle=e=>e,dle=e=>"",fle="text",hle=e=>e.length===0?"":uA(e),ple=Kae;function S6(e,t){return e=Math.abs(e),t===2?e===1?0:1:Math.min(e,2)}function mle(e){const t=lo(e.pluralIndex)?e.pluralIndex:-1;return lo(e.named?.count)?e.named.count:lo(e.named?.n)?e.named.n:t}function gle(e={}){const t=e.locale,n=mle(e),r=An(t)&&ra(e.pluralRules?.[t])?e.pluralRules[t]:S6,i=r===S6?void 0:S6,a=O=>O[r(n,O.length,i)],s=e.list||[],o=O=>s[O],f=e.named||ci();lo(e.pluralIndex)&&(f.count||=e.pluralIndex,f.n||=e.pluralIndex);const m=O=>f[O];function y(O,I){const U=ra(e.messages)?e.messages(O,!!I):Kr(e.messages)?e.messages[O]:!1;return U||(e.parent?e.parent.message(O):dle)}const b=O=>e.modifiers?e.modifiers[O]:cle,T=ra(e.processor?.normalize)?e.processor.normalize:hle,x=ra(e.processor?.interpolate)?e.processor.interpolate:ple,$=An(e.processor?.type)?e.processor.type:fle,N={list:o,named:m,plural:a,linked:(O,...I)=>{const[U,B]=I;let q="text",Q="";I.length===1?Kr(U)?(Q=U.modifier||Q,q=U.type||q):An(U)&&(Q=U||Q):I.length===2&&(An(U)&&(Q=U||Q),An(B)&&(q=B||q));const ee=y(O,!0)(N),Y=ee===""||ee===void 0?O:ee,z=q==="vnode"&&ia(Y)&&Q?Y[0]:Y;return Q?b(Q)(z,q):z},message:y,type:$,interpolate:x,normalize:T,values:$a(ci(),s,f)};return N}const sL=()=>"",up=e=>ra(e);function lL(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:i,messageCompiler:a,fallbackLocale:s,messages:o}=e,[f,m]=NP(...t),y=ya(m.missingWarn)?m.missingWarn:e.missingWarn,b=ya(m.fallbackWarn)?m.fallbackWarn:e.fallbackWarn,T=ya(m.escapeParameter)?m.escapeParameter:e.escapeParameter,x=!!m.resolvedMessage,$=An(m.default)||ya(m.default)?ya(m.default)?a?f:()=>f:m.default:n?a?f:()=>f:null,A=n||$!=null&&(An($)||ra($)),N=mA(e,m);T&&yle(m);let[O,I,U]=x?[f,N,o[N]||ci()]:Aq(e,f,N,s,b,y),B=O,q=f;if(!x&&!(An(B)||$f(B)||up(B))&&A&&(B=$,q=B),!x&&(!(An(B)||$f(B)||up(B))||!An(I)))return i?cT:f;let Q=!1;const ee=()=>{Q=!0},Y=up(B)?B:Iq(e,f,I,B,q,ee);if(Q)return B;const z=ble(e,I,U,m),H=gle(z),K=vle(e,Y,H);let ne=r?r(K,f):K;return T&&An(ne)&&(ne=coe(ne)),ne}function yle(e){ia(e.list)?e.list=e.list.map(t=>An(t)?zD(t):t):Kr(e.named)&&Object.keys(e.named).forEach(t=>{An(e.named[t])&&(e.named[t]=zD(e.named[t]))})}function Aq(e,t,n,r,i,a){const{messages:s,onWarn:o,messageResolver:f,localeFallbacker:m}=e,y=m(e,r,n);let b=ci(),T,x=null;const $="translate";for(let A=0;A<y.length&&(T=y[A],b=s[T]||ci(),(x=f(b,t))===null&&(x=b[t]),!(An(x)||$f(x)||up(x)));A++)if(!ule(T,y)){const N=Cq(e,t,T,a,$);N!==t&&(x=N)}return[x,T,b]}function Iq(e,t,n,r,i,a){const{messageCompiler:s,warnHtmlMessage:o}=e;if(up(r)){const m=r;return m.locale=m.locale||n,m.key=m.key||t,m}if(s==null){const m=(()=>r);return m.locale=n,m.key=t,m}const f=s(r,_le(e,n,i,r,o,a));
7return f.locale=n,f.key=t,f.source=r,f}function vle(e,t,n){return t(n)}function NP(...e){const[t,n,r]=e,i=ci();if(!An(t)&&!lo(t)&&!up(t)&&!$f(t))throw np(tp.INVALID_ARGUMENT);const a=lo(t)?String(t):(up(t),t);return lo(n)?i.plural=n:An(n)?i.default=n:Ui(n)&&!lA(n)?i.named=n:ia(n)&&(i.list=n),lo(r)?i.plural=r:An(r)?i.default=r:Ui(r)&&$a(i,r),[a,i]}function _le(e,t,n,r,i,a){return{locale:t,key:n,warnHtmlMessage:i,onError:s=>{throw a&&a(s),s},onCacheKey:s=>Uae(t,n,s)}}function ble(e,t,n,r){const{modifiers:i,pluralRules:a,messageResolver:s,fallbackLocale:o,fallbackWarn:f,missingWarn:m,fallbackContext:y}=e,T={locale:t,modifiers:i,pluralRules:a,messages:(x,$)=>{let A=s(n,x);if(A==null&&(y||$)){const[N,,O]=Aq(y||e,x,t,o,f,m);A=N??s(O,x)}if(An(A)||$f(A)){let N=!1;const I=Iq(e,x,t,A,x,()=>{N=!0});return N?sL:I}else return up(A)?A:sL}};return e.processor&&(T.processor=e.processor),r.list&&(T.list=r.list),r.named&&(T.named=r.named),lo(r.plural)&&(T.pluralIndex=r.plural),T}const xle="11.4.12",pu={UNEXPECTED_RETURN_TYPE:Use,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function fc(e,...t){return uT(e,null,void 0)}const VP=kg("__translateVNode"),qP=kg("__datetimeParts"),jP=kg("__numberParts"),wle=kg("__setPluralRules"),Sle=kg("__injectWithOption"),Hv=kg("__dispose");let Dq=null;{const e=Gae().__VUE_INSTANCE_SETTERS__;ia(e)&&e.push(t=>{Dq=t})}function Ox(e){if(!Kr(e)||$f(e))return e;for(const t in e)if(uc(e,t))if(!t.includes("."))Kr(e[t])&&Ox(e[t]);else{const n=t.split("."),r=n.length-1;let i=e,a=!1;for(let s=0;s<r;s++){if(n[s]==="__proto__")throw new Error(`unsafe key: ${n[s]}`);if(n[s]in i||(i[n[s]]=ci()),!Kr(i[n[s]])){a=!0;break}i=i[n[s]]}if(a||($f(i)?_q.includes(n[r])||delete e[t]:(i[n[r]]=e[t],delete e[t])),!$f(i)){const s=i[n[r]];Kr(s)&&Ox(s)}}return e}function Lq(e,t){const{messages:n,__i18n:r,messageResolver:i,flatJson:a}=t,s=Ui(n)?n:ia(r)?ci():{[e]:ci()};if(ia(r)&&r.forEach(o=>{if("locale"in o&&"resource"in o){const{locale:f,resource:m}=o;f?(s[f]=s[f]||ci(),Qv(m,s[f])):Qv(m,s)}else An(o)&&Qv(JSON.parse(o),s)}),i==null&&a)for(const o in s)uc(s,o)&&Ox(s[o]);return s}function Cle(e){return e.type}function Tle(e,t,n){let r=Kr(t.messages)?t.messages:ci();"__i18nGlobal"in n&&(r=Lq(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const i=Object.keys(r);i.length&&i.forEach(a=>{e.mergeLocaleMessage(a,r[a])});{if(Kr(t.datetimeFormats)){const a=Object.keys(t.datetimeFormats);a.length&&a.forEach(s=>{e.mergeDateTimeFormat(s,t.datetimeFormats[s])})}if(Kr(t.numberFormats)){const a=Object.keys(t.numberFormats);a.length&&a.forEach(s=>{e.mergeNumberFormat(s,t.numberFormats[s])})}}}function uL(e){return ke(og,null,e,0)}function Oq(){return Dq??Ci()}const cL=()=>[],kle=()=>!1;let dL=0;function fL(e){return((t,n,r,i)=>e(n,r,Oq()||void 0,i))}function UP(e={}){const{__root:t,__injectWithOption:n}=e,r=t===void 0,i=e.flatJson,a=v4?De:Bn;let s=ya(e.inheritLocale)?e.inheritLocale:!0;const o=a(t&&s?t.locale.value:An(e.locale)?e.locale:w4),f=a(t&&s?t.fallbackLocale.value:An(e.fallbackLocale)||ia(e.fallbackLocale)||Ui(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:o.value),m=a(Lq(o.value,e)),y=a(Ui(e.datetimeFormats)?e.datetimeFormats:{[o.value]:{}}),b=a(Ui(e.numberFormats)?e.numberFormats:{[o.value]:{}});let T=t?t.missingWarn:ya(e.missingWarn)||_4(e.missingWarn)?e.missingWarn:!0,x=t?t.fallbackWarn:ya(e.fallbackWarn)||_4(e.fallbackWarn)?e.fallbackWarn:!0,$=t?t.fallbackRoot:ya(e.fallbackRoot)?e.fallbackRoot:!0,A=!!e.fallbackFormat,N=ra(e.missing)?e.missing:null,O=ra(e.missing)?fL(e.missing):null,I=ra(e.postTranslation)?e.postTranslation:null,U=t?t.warnHtmlMessage:ya(e.warnHtmlMessage)?e.warnHtmlMessage:!0,B=!!e.escapeParameter;const q=t?t.modifiers:Ui(e.modifiers)?e.modifiers:{};let Q=e.pluralRules||t&&t.pluralRules,ee;ee=(()=>{r&&QD(null);const _t={version:xle,locale:o.value,fallbackLocale:f.value,messages:m.value,modifiers:q,pluralRules:Q,missing:O===null?void 0:O,missingWarn:T,fallbackWarn:x,fallbackFormat:A,unresolving:!0,postTranslation:I===null?void 0:I,warnHtmlMessage:U,escapeParameter:B,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};_t.datetimeFormats=y.value,_t.numberFormats=b.value,_t.__datetimeFormatters=Ui(ee)?ee.__datetimeFormatters:void 0,_t.__numberFormatters=Ui(ee)?ee.__numberFormatters:void 0;const vt=sle(_t);return r&&QD(vt),vt})(),q5(ee,o.value,f.value);function z(){return[o.value,f.value,m.value,y.value,b.value]}const H=xe({get:()=>o.value,set:_t=>{ee.locale=_t,o.value=_t}});function K(_t){r||(ee.fallbackContext=t?eL():void 0);try{q5(ee,o.value,_t)}finally{r||(ee.fallbackContext=void 0)}}const ne=xe({get:()=>f.value,set:_t=>{f.value=_t,ee.fallbackLocale=f.value,K(f.value)}}),le=xe(()=>m.value),pe=xe(()=>y.value),ae=xe(()=>b.value);function se(){return ra(I)?I:null}function ce(_t){I=_t,ee.postTranslation=_t}function ye(){return N}function $e(_t){_t!==null&&(O=fL(_t)),N=_t,ee.missing=O}const Be=(_t,vt,Jt,an,Sn,On)=>{z();let ft;try{r||(ee.fallbackContext=t?eL():void 0),ft=_t(ee)}finally{r||(ee.fallbackContext=void 0)}if(Jt!=="translate exists"&&lo(ft)&&ft===cT||Jt==="translate exists"&&!ft){const[Ge,rt]=vt();return t&&$?an(t):Sn(Ge)}else{if(On(ft))return ft;throw fc(pu.UNEXPECTED_RETURN_TYPE)}};function je(..._t){return Be(vt=>Reflect.apply(lL,null,[vt,..._t]),()=>NP(..._t),"translate",vt=>Reflect.apply(vt.t,vt,[..._t]),vt=>vt,vt=>An(vt))}function at(..._t){const[vt,Jt,an]=_t;if(an&&!Kr(an))throw fc(pu.INVALID_ARGUMENT);return je(vt,Jt,$a({resolvedMessage:!0},an||{}))}function Pt(..._t){return Be(vt=>Reflect.apply(rL,null,[vt,..._t]),()=>FP(..._t),"datetime format",vt=>Reflect.apply(vt.d,vt,[..._t]),()=>S4,vt=>An(vt)||ia(vt))}function Qe(..._t){return Be(vt=>Reflect.apply(aL,null,[vt,..._t]),()=>zP(..._t),"number format",vt=>Reflect.apply(vt.n,vt,[..._t]),()=>S4,vt=>An(vt)||ia(vt))}function nt(_t){return _t.map(vt=>An(vt)||lo(vt)||ya(vt)?uL(String(vt)):vt)}
7const ct={normalize:nt,interpolate:_t=>_t,type:"vnode"};function zt(..._t){return Be(vt=>{let Jt;const an=vt;try{an.processor=ct,Jt=Reflect.apply(lL,null,[an,..._t])}finally{an.processor=null}return Jt},()=>NP(..._t),"translate",vt=>vt[VP](..._t),vt=>[uL(vt)],vt=>ia(vt))}function ut(..._t){return Be(vt=>Reflect.apply(aL,null,[vt,..._t]),()=>zP(..._t),"number format",vt=>vt[jP](..._t),cL,vt=>An(vt)||ia(vt))}function At(..._t){return Be(vt=>Reflect.apply(rL,null,[vt,..._t]),()=>FP(..._t),"datetime format",vt=>vt[qP](..._t),cL,vt=>An(vt)||ia(vt))}function Dt(_t){Q=_t,ee.pluralRules=Q}function Ot(_t,vt){return Be(()=>{if(!_t)return!1;const Jt=An(vt)?vt:o.value,an=An(vt)?[Jt]:BP(ee,f.value,Jt);for(let Sn=0;Sn<an.length;Sn++){const On=it(an[Sn]);let ft=ee.messageResolver(On,_t);if(ft===null&&(ft=On[_t]),$f(ft)||up(ft)||An(ft))return!0}return!1},()=>[_t],"translate exists",Jt=>Reflect.apply(Jt.te,Jt,[_t,vt]),kle,Jt=>ya(Jt))}function Ee(_t){let vt=null;const Jt=BP(ee,f.value,o.value);for(let an=0;an<Jt.length;an++){const Sn=m.value[Jt[an]]||{},On=ee.messageResolver(Sn,_t);if(On!=null){vt=On;break}}return vt}function Ye(_t){const vt=Ee(_t);return vt??(t?t.tm(_t)||{}:{})}function it(_t){return m.value[_t]||{}}function yt(_t,vt){if(i){const Jt={[_t]:vt};for(const an in Jt)uc(Jt,an)&&Ox(Jt[an]);vt=Jt[_t]}m.value[_t]=vt,ee.messages=m.value}function St(_t,vt){m.value[_t]=m.value[_t]||{};const Jt={[_t]:vt};if(i)for(const an in Jt)uc(Jt,an)&&Ox(Jt[an]);vt=Jt[_t],Qv(vt,m.value[_t]),ee.messages=m.value}function Ie(_t){return y.value[_t]||{}}function qe(_t,vt){y.value[_t]=vt,ee.datetimeFormats=y.value,iL(ee,_t,vt)}function pt(_t,vt){y.value[_t]=$a(y.value[_t]||{},vt),ee.datetimeFormats=y.value,iL(ee,_t,vt)}function Tt(_t){return b.value[_t]||{}}function It(_t,vt){b.value[_t]=vt,ee.numberFormats=b.value,oL(ee,_t,vt)}function sn(_t,vt){b.value[_t]=$a(b.value[_t]||{},vt),ee.numberFormats=b.value,oL(ee,_t,vt)}dL++,nn(f,()=>K(f.value),{deep:!0,flush:"sync"}),t&&v4&&(nn(t.locale,_t=>{s&&(o.value=_t,ee.locale=_t,q5(ee,o.value,f.value))}),nn(t.fallbackLocale,_t=>{s&&(f.value=_t,ee.fallbackLocale=f.value,q5(ee,o.value,f.value))}));const Yt={id:dL,locale:H,fallbackLocale:ne,get inheritLocale(){return s},set inheritLocale(_t){s=_t,_t&&t&&(H.value=t.locale.value,ne.value=t.fallbackLocale.value)},get availableLocales(){return Object.keys(m.value).sort()},messages:le,get modifiers(){return q},get pluralRules(){return Q||{}},get isGlobal(){return r},get missingWarn(){return T},set missingWarn(_t){T=_t,ee.missingWarn=T},get fallbackWarn(){return x},set fallbackWarn(_t){x=_t,ee.fallbackWarn=x},get fallbackRoot(){return $},set fallbackRoot(_t){$=_t},get fallbackFormat(){return A},set fallbackFormat(_t){A=_t,ee.fallbackFormat=A},get warnHtmlMessage(){return U},set warnHtmlMessage(_t){U=_t,ee.warnHtmlMessage=_t},get escapeParameter(){return B},set escapeParameter(_t){B=_t,ee.escapeParameter=_t},t:je,getLocaleMessage:it,setLocaleMessage:yt,mergeLocaleMessage:St,getPostTranslationHandler:se,setPostTranslationHandler:ce,getMissingHandler:ye,setMissingHandler:$e,[wle]:Dt};return Yt.datetimeFormats=pe,Yt.numberFormats=ae,Yt.rt=at,Yt.te=Ot,Yt.tm=Ye,Yt.d=Pt,Yt.n=Qe,Yt.getDateTimeFormat=Ie,Yt.setDateTimeFormat=qe,Yt.mergeDateTimeFormat=pt,Yt.getNumberFormat=Tt,Yt.setNumberFormat=It,Yt.mergeNumberFormat=sn,Yt[Sle]=n,Yt[VP]=zt,Yt[qP]=At,Yt[jP]=ut,Yt}const gA={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Ele({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,i)=>[...r,...i.type===Ct?i.children:[i]],[]):t.reduce((n,r)=>{const i=e[r];return i&&(n[r]=i()),n},ci())}function Rq(){return Ct}const Ple=Fe({name:"i18n-t",props:$a({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>lo(e)||!isNaN(e)}},gA),setup(e,t){const{slots:n,attrs:r}=t,i=e.i18n||Ii({useScope:e.scope,__useComponent:!0});return()=>{const a=()=>{const f=Object.keys(n).filter(b=>b[0]!=="_"),m=ci();e.locale&&(m.locale=e.locale),e.plural!==void 0&&(m.plural=An(e.plural)?+e.plural:e.plural);const y=Ele(t,f);return i[VP](e.keypath,y,m)},s=$a(ci(),r),o=An(e.tag)||Kr(e.tag)?e.tag:Rq();return Kr(o)?Yn(o,s,{default:a}):Yn(o,s,a())}}}),hL=Ple;function $le(e){return ia(e)&&!An(e[0])}function Bq(e,t,n,r){const{slots:i,attrs:a}=t;return()=>{const s=()=>{const m={part:!0};let y=ci();e.locale&&(m.locale=e.locale),An(e.format)?m.key=e.format:Kr(e.format)&&(An(e.format.key)&&(m.key=e.format.key),y=Object.keys(e.format).reduce((x,$)=>n.includes($)?$a(ci(),x,{[$]:e.format[$]}):x,ci()));const b=r(e.value,m,y);let T=[m.key];return ia(b)?T=b.map((x,$)=>{const A=i[x.type],N=A?A({[x.type]:x.value,index:$,parts:b}):[x.value];return $le(N)&&(N[0].key=`${x.type}-${$}`),N}):An(b)&&(T=[b]),T},o=$a(ci(),a),f=An(e.tag)||Kr(e.tag)?e.tag:Rq();return Kr(f)?Yn(f,o,{default:s}):Yn(f,o,s())}}const Mle=Fe({name:"i18n-n",props:$a({value:{type:Number,required:!0},format:{type:[String,Object]}},gA),setup(e,t){const n=e.i18n||Ii({useScope:e.scope,__useComponent:!0});return Bq(e,t,Mq,(...r)=>n[jP](...r))}}),pL=Mle;function Ale(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return r!=null?r.__composer:e.global.__composer}}function Ile(e){const t=s=>{const{instance:o,value:f}=s;if(!o||!o.$)throw fc(pu.UNEXPECTED_ERROR);const m=Ale(e,o.$),y=mL(f);return[Reflect.apply(m.t,m,[...gL(y)]),m]};return{created:(s,o)=>{const[f,m]=t(o);v4&&(s.__i18nWatcher=nn(m.locale,()=>{o.instance&&o.instance.$forceUpdate()})),s.__composer=m,s.textContent=f},unmounted:s=>{v4&&s.__i18nWatcher&&(s.__i18nWatcher(),s.__i18nWatcher=void 0,delete s.__i18nWatcher),s.__composer&&(s.__composer=void 0,delete s.__composer)},beforeUpdate:(s,{value:o})=>{if(s.__composer){const f=s.__composer,m=mL(o);s.textContent=Reflect.apply(f.t,f,[...gL(m)])}},getSSRProps:s=>{const[o]=t(s);return{textContent:o}}}}function mL(e){if(An(e))return{path:e};if(Ui(e)){if(!("path"in e))throw fc(pu.REQUIRED_VALUE,"path");return e}else throw fc(pu.INVALID_VALUE)}function gL(e){const{path:t,locale:n,args:r,choice:i,plural:a}=e,s={},o=r||{};return An(n)&&(s.locale=n),lo(i)&&(s.plural=i),lo(a)&&(s.plural=a),[t,o,s]}function Dle(e,t,...n){const r=Ui(n[0])?n[0]:{};(!ya(r.globalInstall)||r.globalInstall)&&([hL.name,"I18nT"].forEach(a=>e.component(a,hL)),[pL.name,"I18nN"].forEach(a=>e.component(a,pL)),[_L.name,"I18nD"].forEach(a=>
7e.component(a,_L))),e.directive("t",Ile(t))}const Lle=kg("global-vue-i18n");function Ole(e={}){const t=ya(e.globalInjection)?e.globalInjection:!0,n=new Map,[r,i]=Rle(e),a=kg("");function s(y){return n.get(y)||null}function o(y,b){n.set(y,b)}function f(y){n.delete(y)}const m={get mode(){return"composition"},async install(y,...b){if(y.__VUE_I18N_SYMBOL__=a,y.provide(y.__VUE_I18N_SYMBOL__,m),Ui(b[0])){const $=b[0];m.__composerExtend=$.__composerExtend,m.__vueI18nExtend=$.__vueI18nExtend}let T=null;t&&(T=jle(y,m.global)),Dle(y,m,...b);const x=y.unmount;y.unmount=()=>{T&&T(),m.dispose(),x()}},get global(){return i},dispose(){r.stop()},__instances:n,__getInstance:s,__setInstance:o,__deleteInstance:f};return m}function Ii(e={}){const t=Oq();if(t==null)throw fc(pu.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw fc(pu.NOT_INSTALLED);const n=Ble(t),r=zle(n),i=Cle(t),a=Fle(e,i);if(a==="global")return Tle(r,e,i),r;if(a==="parent"){let f=yL(n,t,e.__useComponent);return f==null&&(f=r),f}if(a==="isolated"){if(n.mode!=="composition")throw fc(pu.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const f=n,m=$a({},e),y=yL(n,t);m.__root=y||r;const b=UP(m);return f.__composerExtend&&(b[Hv]=f.__composerExtend(b)),_c()&&yp(()=>{const x=b[Hv];x&&(x(),delete b[Hv])}),b}const s=n;let o=s.__getInstance(t);if(o==null){const f=$a({},e);"__i18n"in i&&(f.__i18n=i.__i18n),r&&(f.__root=r),o=UP(f),s.__composerExtend&&(o[Hv]=s.__composerExtend(o)),Vle(s,t,o),s.__setInstance(t,o)}return o}function Rle(e,t){const n=i1(),r=n.run(()=>UP(e));if(r==null)throw fc(pu.UNEXPECTED_ERROR);return[n,r]}function Ble(e){const t=Ai(e.isCE?Lle:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw fc(e.isCE?pu.NOT_INSTALLED_WITH_PROVIDE:pu.UNEXPECTED_ERROR);return t}function Fle(e,t){return lA(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function zle(e){return e.mode==="composition"?e.global:e.global.__composer}function yL(e,t,n=!1){let r=null;const i=t.root;let a=Nle(t,n);for(;a!=null;){const s=e;if(e.mode==="composition"&&(r=s.__getInstance(a)),r!=null||i===a)break;a=a.parent}return r}function Nle(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function Vle(e,t,n){Hn(()=>{},t),oa(()=>{const r=n;e.__deleteInstance(t);const i=r[Hv];i&&(i(),delete r[Hv])},t)}const qle=["locale","fallbackLocale","availableLocales"],vL=["t","rt","d","n","tm","te"];function jle(e,t){const n=Object.create(null);return qle.forEach(i=>{const a=Object.getOwnPropertyDescriptor(t,i);if(!a)throw fc(pu.UNEXPECTED_ERROR);const s=zn(a.value)?{get(){return a.value.value},set(o){a.value.value=o}}:{get(){return a.get&&a.get()}};Object.defineProperty(n,i,s)}),e.config.globalProperties.$i18n=n,vL.forEach(i=>{const a=Object.getOwnPropertyDescriptor(t,i);if(!a||!a.value)throw fc(pu.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${i}`,a)}),()=>
7{delete e.config.globalProperties.$i18n,vL.forEach(i=>{delete e.config.globalProperties[`$${i}`]})}}const Ule=Fe({name:"i18n-d",props:$a({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},gA),setup(e,t){const n=e.i18n||Ii({useScope:e.scope,__useComponent:!0});return Bq(e,t,$q,(...r)=>n[qP](...r))}}),_L=Ule;ile(jse);ale(tle);ole(BP);function bL(e=En()){const t=bw(e);return n=>{if(n!=null)return t.getRouteBaseName(n)||void 0}}function Hle(e=En()){const t=bw(e);return(n,r)=>b4(t,n,r)}function Wle(e=En()){const t=bw(e);return(n,r)=>nq(t,n,r)}function Fq(e=En()){const t=bw(e);return n=>dA(t,n)}const xL="nuxt-i18n-slp",Gle=new RegExp([`<!--${xL}-\\[(\\w+)\\]-->`,".+?",`<!--/${xL}-->`].join(""),"g"),Yle=sa({name:"i18n:plugin:switch-locale-path-ssr",dependsOn:["i18n:plugin"],setup(e){const t=En(e._id),n=Fq(t);t.hook("app:rendered",r=>{r.renderResult?.html!=null&&(r.renderResult.html=r.renderResult.html.replaceAll(Gle,(i,a)=>{const s=encodeURI(n(a??""));return i.replace(/href="([^"]+)"/,`href="${s||"#"}" `)}))})}}),Zle=sa({name:"i18n:plugin:route-locale-detect",dependsOn:["i18n:plugin"],async setup(e){let t,n;const r=En(e._id),i=sT(r),a=uq();[t,n]=Pf(()=>r.runWithContext(()=>LP(r,i.initial&&a.value||UD(r,r.$router.currentRoute.value)))),await t,n(),yP("locale-changing",async s=>{let o,f;const m=([o,f]=Pf(()=>r.runWithContext(()=>LP(r,UD(r,s)))),o=await o,f(),o);return i.initial=!1,r.runWithContext(()=>cq(r,s,m))},{global:!0})}}),Kle=sa({name:"i18n:plugin:preload",dependsOn:["i18n:plugin"],async setup(e){}});function Xle(e,{extendComposer:t,extendComposerInstance:n}){const r=i1(),i=e.install.bind(e);e.install=(a,...s)=>{const o=$a({},s[0]);o.__composerExtend=m=>(n(m,z5(e)),()=>{}),e.mode==="legacy"&&(o.__vueI18nExtend=m=>(n(m,z5(m)),()=>{})),Reflect.apply(i,e,[a,o]);const f=z5(e);if(r.run(()=>{t(f),e.mode==="legacy"&&"__composer"in e.global&&n(e.global,z5(e.global))}),e.mode==="composition"&&a.config.globalProperties.$i18n!=null&&n(a.config.globalProperties.$i18n,f),a.unmount){const m=a.unmount.bind(a);a.unmount=()=>{r.stop(),m()}}}}const Jle=async e=>{const t=await Loe(Ioe);t.locale=e||t.locale||"en-US",t.defaultLocale=e,t.fallbackLocale??=!1,t.messages??={};for(const n of Dx)t.messages[n]??={};return t},Qle=sa({name:"i18n:plugin",parallel:!1,async setup(e){let t,n;Object.defineProperty(e.versions,"nuxtI18n",{get:()=>"10.2.4"});const r=En(e._id),i=oT(r),a=r.ssrContext?.event?.context?.nuxtI18n?.vueI18nOptions,s=Hoe(rT().host)||i.defaultLocale||"",o=a||([t,n]=Pf(()=>Jle(s)),t=await t,n(),t),f=lq();f.value??=qoe(o.fallbackLocale),Dx.map(T=>`/_i18n/s5wmHAgC/${T}/messages.json`);const m=Ole(o),y=lT(void 0,_w(r),r),b=Goe(r,m,o.defaultLocale);r._nuxtI18n=b,Xle(m,{extendComposer(T){T.locales=xe(()=>i.locales),T.localeCodes=xe(()=>Dx);const x=De(b.getBaseUrl());T.baseUrl=xe(()=>x.value),nn(T.locale,()=>x.value=b.getBaseUrl()),T.strategy="prefix_except_default",T.localeProperties=xe(()=>vw.find($=>$.code===T.locale.value)||{code:T.locale.value}),T.setLocale=async $=>{await LP(r,$),await r.runWithContext(()=>cq(r,r.$router.currentRoute.value,$))},T.loadLocaleMessages=b.loadMessages,T.differentDomains=!1,T.defaultLocale=o.defaultLocale,T.getBrowserLocale=()=>jD(y.navigator()),T.getLocaleCookie=()=>jD(y.cookie()),T.setLocaleCookie=b.setCookieLocale,T.finalizePendingLocaleChange=async()=>{m.__pendingLocale&&await m.__resolvePendingLocalePromise?.()},T.waitForPendingLocaleChange=async()=>{await m?.__pendingLocalePromise}},extendComposerInstance(T,x){const $=[["locales",()=>x.locales],["localeCodes",()=>x.localeCodes],["baseUrl",()=>x.baseUrl],["strategy",()=>"prefix_except_default"],["localeProperties",()=>x.localeProperties],["setLocale",()=>A=>Reflect.apply(x.setLocale,x,[A])],["loadLocaleMessages",()=>A=>Reflect.apply(x.loadLocaleMessages,x,[A])],["differentDomains",()=>!1],["defaultLocale",()=>x.defaultLocale],["getBrowserLocale",()=>()=>Reflect.apply(x.getBrowserLocale,x,[])],["getLocaleCookie",()=>()=>Reflect.apply(x.getLocaleCookie,x,[])],["setLocaleCookie",()=>A=>Reflect.apply(x.setLocaleCookie,x,[A])],["finalizePendingLocaleChange",()=>()=>Reflect.apply(x.finalizePendingLocaleChange,x,[])],["waitForPendingLocaleChange",()=>()=>Reflect.apply(x.waitForPendingLocaleChange,x,[])]];for(const[A,N]of $)Object.defineProperty(T,A,{get:N})}}),r.vueApp.use(m),Object.defineProperty(r,"$i18n",{get:()=>fA(m)}),r.provide("localeHead",T=>woe(r._nuxtI18n.composableCtx,T)),r.provide("localePath",Hle(r)),r.provide("localeRoute",Wle(r)),r.provide("routeBaseName",bL(r)),r.provide("getRouteBaseName",bL(r)),r.provide("switchLocalePath",Fq(r))}}),eue=e=>{const t=e.match(/^(http:\/\/|https:\/\/)?([^/:]*).*$/);return t!=null&&t.length>
72&&typeof t[2]=="string"&&t[2].length>0?t[2]:null},tue=()=>z_("T3:Options"),xw=()=>{const e=ul().public.typo3,t=tue(),n=r=>{const{sites:i}=e;if(!i||!i.length)return e;const a=r||UV()?.host||window?.location.origin,s=eue(a),o=i.find(({hostname:f})=>s&&Array.isArray(f)?f.includes(s):f===s);if(!o)throw new Error(`Hostname: ${a} not found in sites configuration`);return o};return t.value||(t.value=n()),{options:e,getSiteOptions:n,currentSiteOptions:t}},nue=/#/g,rue=/&/g,iue=/\//g,aue=/=/g,yA=/\+/g,oue=/%5e/gi,sue=/%60/gi,lue=/%7c/gi,uue=/%20/gi;function cue(e){return encodeURI(""+e).replace(lue,"|")}function HP(e){return cue(typeof e=="string"?e:JSON.stringify(e)).replace(yA,"%2B").replace(uue,"+").replace(nue,"%23").replace(rue,"%26").replace(sue,"`").replace(oue,"^").replace(iue,"%2F")}function C6(e){return HP(e).replace(aue,"%3D")}function C4(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function due(e){return C4(e.replace(yA," "))}function fue(e){return C4(e.replace(yA," "))}function ax(e=""){const t={};e[0]==="?"&&(e=e.slice(1));for(const n of e.split("&")){const r=n.match(/([^=]+)=?(.*)/)||[];if(r.length<2)continue;const i=due(r[1]);if(i==="__proto__"||i==="constructor")continue;const a=fue(r[2]||"");t[i]===void 0?t[i]=a:Array.isArray(t[i])?t[i].push(a):t[i]=[t[i],a]}return t}function hue(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(n=>`${C6(e)}=${HP(n)}`).join("&"):`${C6(e)}=${HP(t)}`:C6(e)}function pue(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>hue(t,e[t])).filter(Boolean).join("&")}const mue=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,gue=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,yue=/^([/\\]\s*){2,}[^/\\]/;function zq(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?mue.test(e):gue.test(e)||(t.acceptRelative?yue.test(e):!1)}function vue(e="",t){return e.endsWith("/")}function Nq(e="",t){return(vue(e)?e.slice(0,-1):e)||"/"}function wL(e="",t){return e.endsWith("/")?e:e+"/"}function _ue(e=""){return e.startsWith("/")}function SL(e=""){return _ue(e)?e:"/"+e}function Vq(e=""){return e.split("://").map(t=>t.replace(/\/{2,}/g,"/")).join("://")}function j5(e,t){const n=e_(e),r={...ax(n.search),...t};return n.search=pue(r),xue(n)}function bue(e,t,n={}){return n.trailingSlash||(e=wL(e),t=wL(t)),n.leadingSlash||(e=SL(e),t=SL(t)),n.encoding||(e=C4(e),t=C4(t)),e===t}const qq=Symbol.for("ufo:protocolRelative");function e_(e="",t){const n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){const[,b,T=""]=n;return{protocol:b.toLowerCase(),pathname:T,href:b+T,auth:"",host:"",search:"",hash:""}}if(!zq(e,{acceptRelative:!0}))return CL(e);const[,r="",i,a=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,s="",o=""]=a.match(/([^#/?]*)(.*)?/)||[];r==="file:"&&(o=o.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:f,search:m,hash:y}=CL(o);return{protocol:r.toLowerCase(),auth:i?i.slice(0,Math.max(0,i.length-1)):"",host:s,pathname:f,search:m,hash:y,[qq]:!r}}function CL(e=""){const[t="",n="",r=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function xue(e){const t=e.pathname||"",n=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",r=e.hash||"",i=e.auth?e.auth+"@":"",a=e.host||"";return(e.protocol||e[qq]?(e.protocol||"")+"//":"")+i+a+t+n+r}const jq=()=>z_("T3:i18n"),dT=e=>{const{callHook:t}=En(),n=e,{currentSiteOptions:r}=xw(),{i18n:i}=r.value,a=jq(),s=b=>{const T=b??(n||Td().fullPath),{pathname:x}=e_(T),$=x?.split("/")[1];return i.locales&&i.locales?.find(A=>A===$)?$:i.default},o=async b=>{const T=n||Td().fullPath,{getInitialData:x,initialData:$}=hu(T),A=a.value;a.value=b,await t("t3:i18n",b,A),$.value=await x(m())},f=async()=>{a.value=s(),await t("t3:i18n",a.value,i.default)},m=(b="")=>Nq(a.value===i.default?b:`/${a.value}${b}`);return{currentLocale:a,getLocale:s,setLocale:o,initLocale:f,getPathWithLocale:m,getCurrentLocaleData:()=>{const b=GV();return b.value&&xe(()=>b.value.i18n).value?.find(x=>{const $=a.value.split("-")[0];return x.twoLetterIsoCode===$})||null}}};class wue{_$fetch;initialDataEndpoint;fetchOptions={headers:{}};constructor(t){this.siteOptions=t,this.initialDataEndpoint=t.api.endpoints.initialData,this.apiHeaders={},this.fetchOptions={baseURL:this.siteOptions.api.baseUrl,headers:this.siteOptions.api.headers,credentials:this.siteOptions.api.credentials,retry:!1},this._$fetch=KN.create(this.fetchOptions)}apiHeaders;siteOptions;$fetch(t,n){return this._$fetch(t,this.getOptions(n))}getPage(t="/",n){return this.$fetch(this.filterQuery(t),this.getOptions(n))}getInitialData(t="/",n){const{pathname:r,search:i}=e_(t),s={...ax(i),...n?.query??{}};return this.$fetch(this.filterQuery(Vq(r)),{...this.getOptions(n),query:s})}setHeaders(t){this.fetchOptions.headers=If(t,this.fetchOptions.headers)}getOptions(t){return If(t,{onResponse:n=>{this.fetchOptions.onResponse&&this.fetchOptions.onResponse(n)}},this.fetchOptions)}filterQuery(t){const{baseUrl:n,allowQuery:r}=this.siteOptions.api;if(r&&r===!0)return t;const i=new URL(t,n);if(!r)return i.pathname;const a=i.searchParams,s="type";
7return r&&Array.isArray(r)?(Array.from(a).forEach(([o])=>{r.includes(o)||o===s||a.delete(o)}),i.pathname+i.search):t}mapResponseHeaders(t){const n=this.siteOptions.api?.proxyHeaders;if(!n||!n.length)return{};let r=Array.from(t.entries());return r=r.filter(i=>n.includes(i[0])),Object.fromEntries(new Headers(r))}}async function Sue(e,t){const{getLocale:n,setLocale:r,currentLocale:i}=dT(e.fullPath),a=n(e.fullPath);!bue(e.fullPath,t.fullPath)&&i.value!==a&&await r(a)}async function Cue(e){const{initialData:t,getInitialData:n}=hu(e.fullPath),{currentSiteOptions:r}=xw(),{getPathWithLocale:i}=dT(e.fullPath),a=r.value.api.endpoints?.initialData,s=r.value.api.endpoints?.initialDataFallback,o=(y,b)=>{const{pathname:T,search:x}=e_(y),$=ax(x);if(b&&y.startsWith("?")){const{pathname:A,search:N}=e_(b),I={...ax(N),...$};return j5(Nq(A),I)}return j5(i(T),$)},f=(y,b)=>{const{pathname:T,search:x}=e_(y),A={...ax(x),...b};return j5(i(T),A)},m=y=>{if(y.startsWith("?"))return o(y,e.fullPath);const b=e.query;return Object.keys(b).length?Object.keys(b).some(T=>T.includes("[controller]"))?j5(e.fullPath,b):f(y,b):o(y)};try{let y;try{y=await n(m(a))}catch{y=await n(m(s))}t.value=y}catch(y){Gh({fatal:!0,unhandled:!1,statusCode:y.statusCode||500,statusMessage:y.statusMessage,data:y.response?._data,message:`Initial Data is unavailable: ${y.message}`})}}async function Tue(e){await lie("t3:initialData",async()=>await Cue(e),"$iKL1Bh0kPf")}const kue=sa(e=>{const{currentSiteOptions:t}=xw(),{initLocale:n}=dT(),r=new wue(t.value);n(),Eue(r);const i={api:r,$fetch:r.$fetch.bind(r)},a=r.siteOptions.api.proxyReqHeaders,s=a&&Array.isArray(a)&&a.length?UV():{};r.fetchOptions.headers={...r.fetchOptions.headers,...s},e.provide("typo3",i),t.value.features?.initInitialData&&yP("typo3-initialData-middleware",Tue,{global:!0}),t.value.features?.i18nMiddleware&&yP("typo3-i18n-middleware",Sue,{global:!0}),e.hook("app:rendered",()=>{r.siteOptions.api.proxyHeaders&&nte(void 0,r.apiHeaders)})}),Eue=e=>{sie("T3:api:headers",()=>e.fetchOptions.headers,t=>{e.fetchOptions.headers=t;const{payload:n}=En();n["T3:api:headers"]=null})};var T6={exports:{}},TL;function Pue(){return TL||(TL=1,(function(e,t){(function(n,r){e.exports=r()})(window,(function(){return(function(n){var r={};function i(a){if(r[a])return r[a].exports;var s=r[a]={i:a,l:!1,exports:{}};return n[a].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=n,i.c=r,i.d=function(a,s,o){i.o(a,s)||Object.defineProperty(a,s,{enumerable:!0,get:o})},i.r=function(a){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},i.t=function(a,s){if(1&s&&(a=i(a)),8&s||4&s&&typeof a=="object"&&a&&a.__esModule)return a;var o=Object.create(null);if(i.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:a}),2&s&&typeof a!="string")for(var f in a)i.d(o,f,(function(m){return a[m]}).bind(null,f));return o},i.n=function(a){var s=a&&a.__esModule?function(){return a.default}:function(){return a};return i.d(s,"a",s),s},i.o=function(a,s){return Object.prototype.hasOwnProperty.call(a,s)},i.p="",i(i.s=0)})([function(n,r,i){function a(){return window.Piwik.getAsyncTracker()}function s($){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0;return new Promise((function(N,O){var I=document.createElement("script");I.async=!0,I.defer=!0,I.src=$,A&&["anonymous","use-credentials"].includes(A)&&(I.crossOrigin=A),(document.head||document.getElementsByTagName("head")[0]).appendChild(I),I.onload=N,I.onerror=O}))}function o($,A){return $.resolve(A).href}i.r(r),i.d(r,"matomoKey",(function(){return m})),i.d(r,"default",(function(){return x}));var f={debug:!1,disableCookies:!1,requireCookieConsent:!1,enableHeartBeatTimer:!1,enableLinkTracking:!0,heartBeatTimerInterval:15,requireConsent:!1,trackInitialView:!0,trackSiteSearch:!1,trackerFileName:"matomo",trackerUrl:void 0,trackerScriptUrl:void 0,userId:void 0,cookieDomain:void 0,domains:void 0,preInitActions:[],crossOrigin:void 0},m="Matomo";function y($,A,N){if(typeof $.trackSiteSearch=="function"){var O=$.trackSiteSearch(A);if(O)return void(function(I,U){var B=U.keyword,q=U.category,Q=U.resultsCount,ee=a();I.debug,ee.trackSiteSearch(B,q,Q)})($,O)}(function(I,U,B){var q,Q,ee,Y=a();if(I.router){if(Q=o(I.router,U.fullPath),ee=B&&B.fullPath?o(I.router,B.fullPath):void 0,U.meta.analyticsIgnore)return void(I.debug&&void 0);I.debug,q=U.meta.title||Q}ee&&Y.setReferrerUrl(window.location.origin+ee),Q&&Y.setCustomUrl(window.location.origin+Q),Y.trackPageView(q)})($,A,N)}function b($,A){var N=a();if(Number($.version.split(".")[0])>2?($.config.globalProperties.$piwik=N,$.config.globalProperties.$matomo=N,$.provide(m,N)):($.prototype.$piwik=N,$.prototype.$matomo=N),A.trackInitialView&&A.router){var O=A.router.currentRoute.value?A.router.currentRoute.value:A.router.currentRoute;y(A,O)}A.router&&A.router.afterEach((function(I,U){y(A,I,U),A.enableLinkTracking&&N.enableLinkTracking()}))}function T(){return new Promise((function($,A){var N=Date.now(),O=setInterval((function(){if(window.Piwik)return clearInterval(O),$();if(Date.now()>=N+3e3)throw clearInterval(O),new Error("[vue-matomo]: window.Piwik undefined after waiting for ".concat(3e3,"ms"))}),50)}))}function x($){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},N=Object.assign({},f,A),O=N.host,I=N.siteId,U=N.trackerFileName,B=N.trackerUrl,q=N.trackerScriptUrl,Q=q||"".concat(O,"/").concat(U,".js"),ee=B||"".concat(O,"/").concat(U,".php");window._paq=window._paq||[],window._paq.push(["setTrackerUrl",ee]),window._paq.push(["setSiteId",I]),N.requireConsent&&window._paq.push(["requireConsent"]),N.userId&&window._paq.push(["setUserId",N.userId]),N.enableLinkTracking&&window._paq.push(["enableLinkTracking"]),N.disableCookies&&window._paq.push(["disableCookies"]),N.requireCookieConsent&&window._paq.push(["requireCookieConsent"]),N.enableHeartBeatTimer&&window._paq.push(["enableHeartBeatTimer",N.heartBeatTimerInterval]),N.cookieDomain&&window._paq.push(["setCookieDomain",N.cookieDomain]),N.domains&&window._paq.push(["setDomains",N.domains]),N.preInitActions.forEach((function(Y){return window._paq.push(Y)})),s(Q,N.crossOrigin).then((function(){return T()})).then((function(){return b($,N)})).catch((function(Y){Y.target}))}}])}))})(T6)),T6.exports}var $ue=Pue();const Mue=Pp($ue),Uq=()=>En().$cookies;var Hq=typeof global=="object"&&global&&global.Object===Object&&global,Aue=typeof self=="object"&&self&&self.Object===Object&&self,$g=Hq||Aue||Function("return this")(),x_=$g.Symbol,Wq=Object.prototype,Iue=Wq.hasOwnProperty,Due=Wq.toString,E2=x_?x_.toStringTag:void 0;function Lue(e){var t=Iue.call(e,E2),n=e[E2];try{e[E2]=void 0;var r=!0}catch{}var i=Due.call(e);return r&&(t?e[E2]=n:delete e[E2]),i}var Oue=Object.prototype,Rue=Oue.toString;function Bue(e){return Rue.call(e)}
vendor: 1,116 bytes, line 7
7var Fue="[object Null]",zue="[object Undefined]",kL=x_?x_.toStringTag:void 0;function Mg(e){return e==null?e===void 0?zue:Fue:kL&&kL in Object(e)?Lue(e):Bue(e)}function V_(e){return e!=null&&typeof e=="object"}var Nue="[object Symbol]";function fT(e){return typeof e=="symbol"||V_(e)&&Mg(e)==Nue}function Vue(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var Pa=Array.isArray,EL=x_?x_.prototype:void 0,PL=EL?EL.toString:void 0;function hT(e){if(typeof e=="string")return e;if(Pa(e))return Vue(e,hT)+"";if(fT(e))return PL?PL.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var que=/\s/;function jue(e){for(var t=e.length;t--&&que.test(e.charAt(t)););return t}var Uue=/^\s+/;function Gq(e){return e&&e.slice(0,jue(e)+1).replace(Uue,"")}function w_(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var $L=NaN,Hue=/^[-+]0x[0-9a-f]+$/i,Wue=/^0b[01]+$/i,Gue=/^0o[0-7]+$/i,Yue=parseInt;function Zue(e){if(typeof e=="number")return e;if(fT(e))return $L;if(w_(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=w_(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;
7e=Gq(e);var n=Wue.test(e);return n||Gue.test(e)?Yue(e.slice(2),n?2:8):Hue.test(e)?$L:+e}var ML=1/0,Kue=17976931348623157e292;function Xue(e){if(!e)return e===0?e:0;if(e=Zue(e),e===ML||e===-ML){var t=e<0?-1:1;return t*Kue}return e===e?e:0}function Yq(e){var t=Xue(e),n=t%1;return t===t?n?t-n:t:0}function Jue(e){return e}var Que="[object AsyncFunction]",ece="[object Function]",tce="[object GeneratorFunction]",nce="[object Proxy]";function vA(e){if(!w_(e))return!1;var t=Mg(e);return t==ece||t==tce||t==Que||t==nce}var k6=$g["__core-js_shared__"],AL=(function(){var e=/[^.]+$/.exec(k6&&k6.keys&&k6.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function rce(e){return!!AL&&AL in e}var ice=Function.prototype,ace=ice.toString;function o1(e){if(e!=null){try{return ace.call(e)}catch{}try{return e+""}catch{}}return""}var oce=/[\\^$.*+?()[\]{}|]/g,sce=/^\[object .+?Constructor\]$/,lce=Function.prototype,uce=Object.prototype,cce=lce.toString,dce=uce.hasOwnProperty,fce=RegExp("^"+cce.call(dce).replace(oce,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function hce(e){if(!w_(e)||rce(e))return!1;var t=vA(e)?fce:sce;return t.test(o1(e))}function pce(e,t){return e?.[t]}function q_(e,t){var n=pce(e,t);return hce(n)?n:void 0}var WP=q_($g,"WeakMap");function mce(){}function gce(e,t,n,r){for(var i=e.length,a=n+-1;++a<i;)if(t(e[a],a,e))return a;return-1}function yce(e){return e!==e}function vce(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}function _A(e,t,n){return t===t?vce(e,t,n):gce(e,yce,n)}function _ce(e,t){var n=e==null?0:e.length;return!!n&&_A(e,t,0)>-1}function bce(e,t){return e===t||e!==e&&t!==t}var xce=9007199254740991;function Zq(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=xce}function wce(e){return e!=null&&Zq(e.length)&&!vA(e)}var Sce=Object.prototype;function Kq(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Sce;return e===n}var Cce="[object Arguments]";function IL(e){return V_(e)&&Mg(e)==Cce}var Xq=Object.prototype,Tce=Xq.hasOwnProperty,kce=Xq.propertyIsEnumerable,Ece=IL((function(){return arguments})())?IL:function(e){return V_(e)&&Tce.call(e,"callee")&&!kce.call(e,"callee")};function Pce(){return!1}var Jq=typeof exports=="object"&&exports&&!exports.nodeType&&exports,DL=Jq&&typeof module=="object"&&module&&!module.nodeType&&module,$ce=DL&&DL.exports===Jq,LL=$ce?$g.Buffer:void 0,Mce=LL?LL.isBuffer:void 0,Ace=Mce||Pce,Ice="[object Arguments]",Dce="[object Array]",Lce="[object Boolean]",Oce="[object Date]",Rce="[object Error]",Bce="[object Function]",Fce="[object Map]",zce="[object Number]",Nce="[object Object]",Vce="[object RegExp]",qce="[object Set]",jce="[object String]",Uce="[object WeakMap]",Hce="[object ArrayBuffer]",Wce="[object DataView]",Gce="[object Float32Array]",Yce="[object Float64Array]",Zce="[object Int8Array]",Kce="[object Int16Array]",Xce="[object Int32Array]",Jce="[object Uint8Array]",Qce="[object Uint8ClampedArray]",ede="[object Uint16Array]",tde="[object Uint32Array]",ta={};ta[Gce]=ta[Yce]=ta[Zce]=ta[Kce]=ta[Xce]=ta[Jce]=ta[Qce]=ta[ede]=ta[tde]=!0;ta[Ice]=ta[Dce]=ta[Hce]=ta[Lce]=ta[Wce]=ta[Oce]=ta[Rce]=ta[Bce]=ta[Fce]=ta[zce]=ta[Nce]=ta[Vce]=ta[qce]=ta[jce]=ta[Uce]=!1;function nde(e){return V_(e)&&Zq(e.length)&&!!ta[Mg(e)]}function rde(e){return function(t){return e(t)}}var Qq=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ox=Qq&&typeof module=="object"&&module&&!module.nodeType&&module,ide=ox&&ox.exports===Qq,E6=ide&&Hq.process,OL=(function(){try{var e=ox&&ox.require&&ox.require("util").types;return e||E6&&E6.binding&&E6.binding("util")}catch{}})(),RL=OL&&OL.isTypedArray,ade=RL?rde(RL):nde;function ode(e,t){return function(n){return e(t(n))}}var sde=ode(Object.keys,Object),lde=Object.prototype,ude=lde.hasOwnProperty;function cde(e){if(!Kq(e))return sde(e);var t=[];for(var n in Object(e))ude.call(e,n)&&n!="constructor"&&t.push(n);return t}var dde=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,fde=/^\w*$/;function hde(e,t){if(Pa(e))return!1;var n=typeof e;
vendor: 3,017 bytes, line 7
7return n=="number"||n=="symbol"||n=="boolean"||e==null||fT(e)?!0:fde.test(e)||!dde.test(e)||t!=null&&e in Object(t)}var Rx=q_(Object,"create");function pde(){this.__data__=Rx?Rx(null):{},this.size=0}function mde(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var gde="__lodash_hash_undefined__",yde=Object.prototype,vde=yde.hasOwnProperty;function _de(e){var t=this.__data__;if(Rx){var n=t[e];return n===gde?void 0:n}return vde.call(t,e)?t[e]:void 0}var bde=Object.prototype,xde=bde.hasOwnProperty;function wde(e){var t=this.__data__;return Rx?t[e]!==void 0:xde.call(t,e)}var Sde="__lodash_hash_undefined__";function Cde(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Rx&&t===void 0?Sde:t,this}function Hy(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Hy.prototype.clear=pde;Hy.prototype.delete=mde;Hy.prototype.get=_de;Hy.prototype.has=wde;Hy.prototype.set=Cde;function Tde(){this.__data__=[],this.size=0}function pT(e,t){for(var n=e.length;n--;)if(bce(e[n][0],t))return n;return-1}var kde=Array.prototype,Ede=kde.splice;function Pde(e){var t=this.__data__,n=pT(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Ede.call(t,n,1),--this.size,!0}function $de(e){var t=this.__data__,n=pT(t,e);return n<0?void 0:t[n][1]}function Mde(e){return pT(this.__data__,e)>-1}function Ade(e,t){var n=this.__data__,r=pT(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function j_(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}j_.prototype.clear=Tde;j_.prototype.delete=Pde;j_.prototype.get=$de;j_.prototype.has=Mde;j_.prototype.set=Ade;var T4=q_($g,"Map");function Ide(){this.size=0,this.__data__={hash:new Hy,map:new(T4||j_),string:new Hy}}function Dde(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function mT(e,t){var n=e.__data__;return Dde(t)?n[typeof t=="string"?"string":"hash"]:n.map}function Lde(e){var t=mT(this,e).delete(e);return this.size-=t?1:0,t}function Ode(e){return mT(this,e).get(e)}function Rde(e){return mT(this,e).has(e)}function Bde(e,t){var n=mT(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Ag(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ag.prototype.clear=Ide;Ag.prototype.delete=Lde;Ag.prototype.get=Ode;Ag.prototype.has=Rde;Ag.prototype.set=Bde;var Fde="Expected a function";function bA(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Fde);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var s=e.apply(this,r);return n.cache=a.set(i,s)||a,s};return n.cache=new(bA.Cache||Ag),n}bA.Cache=Ag;var zde=500;function Nde(e){var t=bA(e,function(r){return n.size===zde&&n.clear(),r}),n=t.cache;return t}var Vde=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,qde=/\\(\\)?/g,jde=Nde(function(e){var t=[];
vendor: 3,071 bytes, line 7
7return e.charCodeAt(0)===46&&t.push(""),e.replace(Vde,function(n,r,i,a){t.push(i?a.replace(qde,"$1"):r||n)}),t});function Ig(e){return e==null?"":hT(e)}function Ude(e,t){return Pa(e)?e:hde(e,t)?[e]:jde(Ig(e))}function Hde(e){if(typeof e=="string"||fT(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Wde(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r<i;)a[r]=e[r+t];return a}function xA(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:Wde(e,t,n)}var Gde="\\ud800-\\udfff",Yde="\\u0300-\\u036f",Zde="\\ufe20-\\ufe2f",Kde="\\u20d0-\\u20ff",Xde=Yde+Zde+Kde,Jde="\\ufe0e\\ufe0f",Qde="\\u200d",efe=RegExp("["+Qde+Gde+Xde+Jde+"]");function gT(e){return efe.test(e)}function tfe(e){return e.split("")}var ej="\\ud800-\\udfff",nfe="\\u0300-\\u036f",rfe="\\ufe20-\\ufe2f",ife="\\u20d0-\\u20ff",afe=nfe+rfe+ife,ofe="\\ufe0e\\ufe0f",sfe="["+ej+"]",GP="["+afe+"]",YP="\\ud83c[\\udffb-\\udfff]",lfe="(?:"+GP+"|"+YP+")",tj="[^"+ej+"]",nj="(?:\\ud83c[\\udde6-\\uddff]){2}",rj="[\\ud800-\\udbff][\\udc00-\\udfff]",ufe="\\u200d",ij=lfe+"?",aj="["+ofe+"]?",cfe="(?:"+ufe+"(?:"+[tj,nj,rj].join("|")+")"+aj+ij+")*",dfe=aj+ij+cfe,ffe="(?:"+[tj+GP+"?",GP,nj,rj,sfe].join("|")+")",hfe=RegExp(YP+"(?="+YP+")|"+ffe+dfe,"g");function pfe(e){return e.match(hfe)||[]}function k4(e){return gT(e)?pfe(e):tfe(e)}function mfe(e){return function(t){t=Ig(t);var n=gT(t)?k4(t):void 0,r=n?n[0]:t.charAt(0),i=n?xA(n,1).join(""):t.slice(1);return r[e]()+i}}var oj=mfe("toUpperCase");function gfe(e){return oj(Ig(e).toLowerCase())}function yfe(e,t,n,r){for(var i=-1,a=e==null?0:e.length;++i<a;)n=t(n,e[i],i,e);return n}function vfe(e){return function(t){return e?.[t]}}var _fe={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}
7,bfe=vfe(_fe),xfe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,wfe="\\u0300-\\u036f",Sfe="\\ufe20-\\ufe2f",Cfe="\\u20d0-\\u20ff",Tfe=wfe+Sfe+Cfe,kfe="["+Tfe+"]",Efe=RegExp(kfe,"g");function Pfe(e){return e=Ig(e),e&&e.replace(xfe,bfe).replace(Efe,"")}var $fe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Mfe(e){return e.match($fe)||[]}var Afe=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function Ife(e){return Afe.test(e)}var sj="\\ud800-\\udfff",Dfe="\\u0300-\\u036f",Lfe="\\ufe20-\\ufe2f",Ofe="\\u20d0-\\u20ff",Rfe=Dfe+Lfe+Ofe,lj="\\u2700-\\u27bf",uj="a-z\\xdf-\\xf6\\xf8-\\xff",Bfe="\\xac\\xb1\\xd7\\xf7",Ffe="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",zfe="\\u2000-\\u206f",Nfe=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",cj="A-Z\\xc0-\\xd6\\xd8-\\xde",Vfe="\\ufe0e\\ufe0f",dj=Bfe+Ffe+zfe+Nfe,fj="['’]",BL="["+dj+"]",qfe="["+Rfe+"]",hj="\\d+",jfe="["+lj+"]",pj="["+uj+"]",mj="[^"+sj+dj+hj+lj+uj+cj+"]",Ufe="\\ud83c[\\udffb-\\udfff]",Hfe="(?:"+qfe+"|"+Ufe+")",Wfe="[^"+sj+"]",gj="(?:\\ud83c[\\udde6-\\uddff]){2}",yj="[\\ud800-\\udbff][\\udc00-\\udfff]",Fv="["+cj+"]",Gfe="\\u200d",FL="(?:"+pj+"|"+mj+")",Yfe="(?:"+Fv+"|"+mj+")",zL="(?:"+fj+"(?:d|ll|m|re|s|t|ve))?",NL="(?:"+fj+"(?:D|LL|M|RE|S|T|VE))?",vj=Hfe+"?",_j="["+Vfe+"]?",Zfe="(?:"+Gfe+"(?:"+[Wfe,gj,yj].join("|")+")"+_j+vj+")*",Kfe="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Xfe="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Jfe=_j+vj+Zfe,Qfe="(?:"+[jfe,gj,yj].join("|")+")"+Jfe,ehe=RegExp([Fv+"?"+pj+"+"+zL+"(?="+[BL,Fv,"$"].join("|")+")",Yfe+"+"+NL+"(?="+[BL,Fv+FL,"$"].join("|")+")",Fv+"?"+FL+"+"+zL,Fv+"+"+NL,Xfe,Kfe,hj,Qfe].join("|"),"g");function the(e){return e.match(ehe)||[]}function nhe(e,t,n){return e=Ig(e),t=t,t===void 0?Ife(e)?the(e):Mfe(e):e.match(t)||[]}var rhe="['’]",ihe=RegExp(rhe,"g");function ahe(e){return function(t){return yfe(nhe(Pfe(t).replace(ihe,"")),e,"")}}var xs=ahe(function(e,t,n){return t=t.toLowerCase(),e+(n?gfe(t):t)}),ZP=q_($g,"DataView"),KP=q_($g,"Promise"),t_=q_($g,"Set"),VL="[object Map]",ohe="[object Object]",qL="[object Promise]",jL="[object Set]",UL="[object WeakMap]",HL="[object DataView]",she=o1(ZP),lhe=o1(T4),uhe=o1(KP),che=o1(t_),dhe=o1(WP),fy=Mg;(ZP&&fy(new ZP(new ArrayBuffer(1)))!=HL||T4&&fy(new T4)!=VL||KP&&fy(KP.resolve())!=qL||t_&&fy(new t_)!=jL||WP&&fy(new WP)!=UL)&&(fy=function(e){var t=Mg(e),n=t==ohe?e.constructor:void 0,r=n?o1(n):"";if(r)switch(r){case she:return HL;case lhe:return VL;case uhe:return qL;case che:return jL;case dhe:return UL}return t});var fhe="__lodash_hash_undefined__";function hhe(e){return this.__data__.set(e,fhe),this}function phe(e){return this.__data__.has(e)}function E4(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Ag;++t<n;)this.add(e[t])}E4.prototype.add=E4.prototype.push=hhe;E4.prototype.has=phe;function mhe(e,t){return e.has(t)}function bj(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}function ghe(e){return function(t){return t?.[e]}}var yhe="[object String]";function wA(e){return typeof e=="string"||!Pa(e)&&V_(e)&&Mg(e)==yhe}var vhe="[object Map]",_he="[object Set]",bhe=Object.prototype,xhe=bhe.hasOwnProperty;function SA(e){if(e==null)return!0;if(wce(e)&&(Pa(e)||typeof e=="string"||typeof e.splice=="function"||Ace(e)||ade(e)||Ece(e)))return!e.length;var t=fy(e);if(t==vhe||t==_he)return!e.size;if(Kq(e))return!cde(e).length;for(var n in e)if(xhe.call(e,n))return!1;return!0}function whe(e){return typeof e=="number"&&e==Yq(e)}var She="[object Number]";function yT(e){return typeof e=="number"||V_(e)&&Mg(e)==She}function xp(e){return yT(e)&&e!=+e}function Che(e,t){for(var n,r=-1,i=e.length;++r<i;){var a=t(e[r]);a!==void 0&&(n=n===void 0?a:n+a)}return n}var The=9007199254740991,khe=Math.floor;function WL(e,t){var n="";if(!e||t<1||t>The)return n;do t%2&&(n+=e),t=khe(t/2),t&&(e+=e);while(t);return n}var Ehe=ghe("length"),xj="\\ud800-\\udfff",Phe="\\u0300-\\u036f",$he="\\ufe20-\\ufe2f",Mhe="\\u20d0-\\u20ff",Ahe=Phe+$he+Mhe,Ihe="\\ufe0e\\ufe0f",Dhe="["+xj+"]",XP="["+Ahe+"]",JP="\\ud83c[\\udffb-\\udfff]",Lhe="(?:"+XP+"|"+JP+")",wj="[^"+xj+"]",Sj="(?:\\ud83c[\\udde6-\\uddff]){2}",Cj="[\\ud800-\\udbff][\\udc00-\\udfff]",Ohe="\\u200d",Tj=Lhe+"?",kj="["+Ihe+"]?",Rhe="(?:"+Ohe+"(?:"+[wj,Sj,Cj].join("|")+")"+kj+Tj+")*",Bhe=kj+Tj+Rhe,Fhe="(?:"+[wj+XP+"?",XP,Sj,Cj,Dhe].join("|")+")",GL=RegExp(JP+"(?="+JP+")|"+Fhe+Bhe,"g");function zhe(e){for(var t=GL.lastIndex=0;GL.test(e);)++t;return t}function Ej(e){return gT(e)?zhe(e):Ehe(e)}var Nhe=Math.ceil;function Vhe(e,t){t=t===void 0?" ":hT(t);var n=t.length;if(n<2)return n?WL(t,e):t;var r=WL(t,Nhe(e/Ej(t)));return gT(t)?xA(k4(r),0,e).join(""):r.slice(0,e)}function oy(e,t,n){e=Ig(e),t=Yq(t);var r=t?Ej(e):0;return t&&r<t?Vhe(t-r,n)+e:e}
7function YL(e,t,n){t=Ude(t,e);var r=-1,i=t.length;for(i||(i=1,e=void 0);++r<i;){var a=e?.[Hde(t[r])];a===void 0&&(r=i,a=n),e=vA(a)?a.call(e):a}return e}function Pj(e){return e&&e.length?Che(e,Jue):0}function ZL(e){return Ig(e).toUpperCase()}function qhe(e,t){for(var n=e.length;n--&&_A(t,e[n],0)>-1;);return n}function jhe(e,t){for(var n=-1,r=e.length;++n<r&&_A(t,e[n],0)>-1;);return n}function Uhe(e,t,n){if(e=Ig(e),e&&t===void 0)return Gq(e);if(!e||!(t=hT(t)))return e;var r=k4(e),i=k4(t),a=jhe(r,i),s=qhe(r,i)+1;return xA(r,a,s).join("")}var Hhe=1/0,Whe=t_&&1/bj(new t_([,-0]))[1]==Hhe?function(e){return new t_(e)}:mce,Ghe=200;function Yhe(e,t,n){var r=-1,i=_ce,a=e.length,s=!0,o=[],f=o;if(a>=Ghe){var m=Whe(e);if(m)return bj(m);s=!1,i=mhe,f=new E4}else f=o;e:for(;++r<a;){var y=e[r],b=y;if(y=y!==0?y:0,s&&b===b){for(var T=f.length;T--;)if(f[T]===b)continue e;o.push(y)}else i(f,b,n)||(f!==o&&f.push(b),o.push(y))}return o}function Zhe(e){return e&&e.length?Yhe(e):[]}function Khe(e){window[`ga-disable-${e}`]=!0}function Xhe(e){const t=`ga-disable-${e}`;t in window&&delete window[t]}function Jhe(){const e=ul().public.gtag,t=ZV(e);let n;n=ES;const r=o=>{const f=[...t];let m=f.find(y=>y.id===o);return m||(o?(m={id:o},f.unshift(m)):m=f[0]),{tag:m,tags:f}},i=o=>{{const{tag:f,tags:m}=r(o);if(!f)return;window.dataLayer||YV({tags:m}),document.head.querySelector("script[data-gtag]")||fu({script:[{src:jy(e.url,{id:f.id}),"data-gtag":""}]})}};function a(o){{const{tag:f}=r(o);f&&Khe(f.id)}}function s(o){{const{tag:f}=r(o);f&&Xhe(f.id)}}return{gtag:n,initialize:i,disableAnalytics:a,enableAnalytics:s}}const Qhe=sa(e=>{e.hook("t3:initialData",t=>{const{cookiesEnabledIds:n}=Uq(),r=Uhe(t.siteBuilderInfos?.matomo?.host??"","/"),i=t.siteBuilderInfos?.matomo?.id,a=t.siteBuilderInfos?.ga?.apikey,{initialize:s,disableAnalytics:o}=Jhe();nn(()=>n.value,(f,m)=>{!m?.includes("matomo")&&f?.includes("matomo")&&window.location.reload(),!m?.includes("google-analytics")&&f?.includes("google-analytics")?(s(a),window.location.reload()):m?.includes("google-analytics")&&!f?.includes("google-analytics")&&(o(a),window.location.reload())},{deep:!0}),r&&i&&Pa(n.value)&&In(n.value)?.includes("matomo")&&e.vueApp.use(Mue,{host:r,siteId:i,router:e.$router,enableLinkTracking:!0,trackInitialView:!0,disableCookies:!0,requireConsent:!1,requireCookieConsent:!1}),!Un(a)&&Pa(n.value)&&In(n.value)?.includes("google-analytics")&&s(a)})});function epe(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(i){i(n)}),(r=e.get("*"))&&r.slice().map(function(i){i(t,n)})}}}const tpe=sa(e=>{const t=epe();return{provide:{emit:t.emit,on:t.on,off:t.off,clear:t.all.clear}}}),npe=sa(e=>{e.hook("t3:initialData",t=>{}),e.hook("t3:page",t=>{})}),rpe=sa(e=>{e.hook("t3:page",()=>{setTimeout(()=>{const t=Td();if(t.hash){const n=document.querySelector(t.hash);n&&n.scrollIntoView({behavior:"smooth"})}},100)})});function ipe(){const e=i=>xe(()=>{const a=xe(()=>{let o=[];for(const[f,m]of Object.entries(v(i)??{})){let y=`--${f}:${m?.hexa??"#000"};`;o.push(y)}return o.join("")}),s=xe(()=>{let o=[];for(const[f,m]of Object.entries(v(i)??{})){let y=n(f,m);o.push(y)}return o.join("")});return`${a.value} ${s.value}`}),t=i=>{let a=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(i),s=parseInt(a?.[1]||"16",16),o=parseInt(a?.[2]||"16",16),f=parseInt(a?.[3]||"16",16);s/=255,o/=255,f/=255;let m=Math.max(s,o,f),y=Math.min(s,o,f),b=0,T,x=(m+y)/2;if(m==y)b=T=0;else{let $=m-y;switch(T=x>.5?$/(2-m-y):$/(m+y),m){case s:b=(o-f)/$+(o<f?6:0);break;case o:b=(f-s)/$+2;break;case f:b=(s-o)/$+4;break}b/=6}return T=T*100,T=Math.round(T),x=x*100,x=Math.round(x),b=Math.round(360*b),{h:b,s:T,l:x}},n=(i,a)=>{const{h:s,s:o,l:f}=t(a.hexa),m="--"+i+"_h:"+s+";",y="--"+i+"_s:"+o+"%;",b="--"+i+"_l:"+f+"%;";return`${m} ${y} ${b}`};return{hexaToHSL:t,HSLtoCSSvar:n,createHeadStyle:e,hexaToRGB:(i,a)=>{typeof i>"u"&&(i="#000000");let s=!1,o=i.slice(i.startsWith("#")?1:0);return o.length===3?o=[...o].map(f=>f+f).join(""):o.length===8&&(s=!0),o=parseInt(o,16),"rgb"+(s||typeof a<"u"?"a":"")+"("+(o>>>(s?24:16))+", "+((o&(s?16711680:65280))>>>(s?16:8))+", "+((o&(s?65280:255))>>>(s?8:0))+(s?`, ${o&255}`:typeof a<"u"?`, ${a}`:"")+")"}}}function ape(){return{setFromStore:()=>{const t=vr(),n=xe(()=>t.siteBuilderInfos?.theme?.toLowerCase()==="ville"),{createHeadStyle:r}=ipe(),i=xe(()=>[{rel:"icon",type:"image/x-icon",href:t.favicon?.ico?.[0]?.url??"/img/favicon/default.svg"},{rel:"icon",type:"image/png",href:t.favicon?.png?.[0]?.url??null}]),a=r(t.colors??{}),s=xe(()=>`:root{
8					${a.value} --theme_font_1:'${t.siteBuilderInfos?.fonts?.theme_font_1?.name??"Arial"}'; 
9					--theme_font_2:'${t.siteBuilderInfos?.fonts?.theme_font_2?.name??"Arial"}';
10				}`),o=xe(()=>t.siteBuilderInfos?.meta_color?.hexa??t.colors?.cim_primary_color?.hexa??"#000");fu({link:i,meta:[{name:"theme-color",content:o}],style:[s],htmlAttrs:{class:{ville:n}}})}}}function KL(e){return typeof e=="function"}function ope(e){return typeof e=="object"&&e!==null}
10function spe(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}function XL(e){if(!ope(e)||spe(e)!=="[object Object]")return!1;if(Object.getPrototypeOf(e)===null)return!0;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function $j(e,t){return Object.keys(t).forEach(n=>{if(XL(t[n])&&XL(e[n])){e[n]||(e[n]={}),$j(e[n],t[n]);return}e[n]=t[n]}),e}function JL(e,t,n){const{prefix:r,suffix:i}=n,a=lpe(r,i);return e.replace(a,function(s,o,f){if(!o||!t.params)return f in t?t[f]:t.params&&f in t.params?t.params[f]:`${r}${f}${i}`;if(!Array.isArray(t.params))return f in t.params?t.params[f]:`${r}${f}${i}`;const m=Number(o.replace(":",""));return m in t.params?t.params[m]:`${o}${r}${f}${i}`})}function QL(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function lpe(e,t){const n=QL(e),r=QL(t);return new RegExp(`([0-9]:)?${n}((?:(?!${r}).)+)${r}`,"g")}class upe{constructor(t,n,r={prefix:"{",suffix:"}"}){this.container={},this.locale=t,this.interpolateOptions=r,this.merge(n)}resolve(t,n){let r=this.format(this.locale,t,n);return!r&&this.fallbackLocale&&this.fallbackLocale!==this.locale&&(r=this.format(this.fallbackLocale,t,n)),r||this.getDefaultMessage(this.locale,t)}getDefaultMessage(t,n){const{label:r,name:i}=n;return`${this.resolveLabel(t,i,r)} is not valid`}getLocaleDefault(t,n){var r,i,a,s,o;return((a=(i=(r=this.container[t])===null||r===void 0?void 0:r.fields)===null||i===void 0?void 0:i[n])===null||a===void 0?void 0:a._default)||((o=(s=this.container[t])===null||s===void 0?void 0:s.messages)===null||o===void 0?void 0:o._default)}resolveLabel(t,n,r){var i,a,s,o;return r?((a=(i=this.container[t])===null||i===void 0?void 0:i.names)===null||a===void 0?void 0:a[r])||r:((o=(s=this.container[t])===null||s===void 0?void 0:s.names)===null||o===void 0?void 0:o[n])||n}format(t,n,r){var i,a,s,o,f;let m;const{rule:y,form:b,label:T,name:x}=n,$=this.resolveLabel(t,x,T);return y?(m=((s=(a=(i=this.container[t])===null||i===void 0?void 0:i.fields)===null||a===void 0?void 0:a[x])===null||s===void 0?void 0:s[y.name])||((f=(o=this.container[t])===null||o===void 0?void 0:o.messages)===null||f===void 0?void 0:f[y.name]),m||(m=this.getLocaleDefault(t,x)||""),KL(m)?m(n):JL(m,Object.assign(Object.assign({},b),{field:$,params:y.params}),r??this.interpolateOptions)):(m=this.getLocaleDefault(t,x)||"",KL(m)?m(n):JL(m,Object.assign(Object.assign({},b),{field:$}),r??this.interpolateOptions))}merge(t){$j(this.container,t)}}const OS=new upe("en",{});function cpe(e,t,n){const r=i=>OS.resolve(i,n);return typeof e=="string"?(OS.locale=e,r):(OS.merge(e),r)}function dpe(e){OS.locale=e}function Wo(e){return typeof e=="function"}function Mj(e){return e==null}const Wy=e=>e!==null&&!!e&&typeof e=="object"&&!Array.isArray(e);function CA(e){return Number(e)>=0}function fpe(e){const t=parseFloat(e);return isNaN(t)?e:t}function hpe(e){return typeof e=="object"&&e!==null}function ppe(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}function eO(e){if(!hpe(e)||ppe(e)!=="[object Object]")return!1;if(Object.getPrototypeOf(e)===null)return!0;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Bx(e,t){return Object.keys(t).forEach(n=>{if(eO(t[n])&&eO(e[n])){e[n]||(e[n]={}),Bx(e[n],t[n]);return}e[n]=t[n]}),e}function N2(e){const t=e.split(".");if(!t.length)return"";let n=String(t[0]);for(let r=1;r<t.length;r++){if(CA(t[r])){n+=`[${t[r]}]`;continue}n+=`.${t[r]}`}return n}const Aj={};function xy(e,t){gpe(e,t),Aj[e]=t}function mpe(e){return Aj[e]}function gpe(e,t){if(!Wo(t))throw new Error(`Extension Error: The validator '${e}' must be a function.`)}function tO(e,t,n){typeof n.value=="object"&&(n.value=ui(n.value)),!n.enumerable||n.get||n.set||!n.configurable||!n.writable||t==="__proto__"?Object.defineProperty(e,t,n):e[t]=n.value}function ui(e){if(typeof e!="object")return e;var t=0,n,r,i,a=Object.prototype.toString.call(e);if(a==="[object Object]"?i=Object.create(e.__proto__||null):a==="[object Array]"?i=Array(e.length):a==="[object Set]"?(i=new Set,e.forEach(function(s){i.add(ui(s))})):a==="[object Map]"?(i=new Map,e.forEach(function(s,o){i.set(ui(o),ui(s))})):a==="[object Date]"?i=new Date(+e):a==="[object RegExp]"?i=new RegExp(e.source,e.flags):a==="[object DataView]"?i=new e.constructor(ui(e.buffer)):a==="[object ArrayBuffer]"?i=e.slice(0):a.slice(-6)==="Array
10]"&&(i=new e.constructor(e)),i){for(r=Object.getOwnPropertySymbols(e);t<r.length;t++)tO(i,r[t],Object.getOwnPropertyDescriptor(e,r[t]));for(t=0,r=Object.getOwnPropertyNames(e);t<r.length;t++)Object.hasOwnProperty.call(i,n=r[t])&&i[n]===e[n]||tO(i,n,Object.getOwnPropertyDescriptor(e,n))}return i||e}const ww=Symbol("vee-validate-form"),ype=Symbol("vee-validate-form-context"),vpe=Symbol("vee-validate-field-instance"),P4=Symbol("Default empty value"),_pe=typeof window<"u";function QP(e){return Wo(e)&&!!e.__locatorRef}function gd(e){return!!e&&Wo(e.parse)&&e.__type==="VVTypedSchema"}function $4(e){return!!e&&Wo(e.validate)}function Sw(e){return e==="checkbox"||e==="radio"}function bpe(e){return Wy(e)||Array.isArray(e)}function xpe(e){return Array.isArray(e)?e.length===0:Wy(e)&&Object.keys(e).length===0}function vT(e){return/^\[.+\]$/i.test(e)}function wpe(e){return Ij(e)&&e.multiple}function Ij(e){return e.tagName==="SELECT"}function Spe(e,t){const n=![!1,null,void 0,0].includes(t.multiple)&&!Number.isNaN(t.multiple);return e==="select"&&"multiple"in t&&n}function Cpe(e,t){return!Spe(e,t)&&t.type!=="file"&&!Sw(t.type)}function Dj(e){return TA(e)&&e.target&&"submit"in e.target}function TA(e){return e?!!(typeof Event<"u"&&Wo(Event)&&e instanceof Event||e&&e.srcElement):!1}function nO(e,t){return t in e&&e[t]!==P4}function ol(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!ol(e[r],t[r]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(r of e.entries())if(!t.has(r[0]))return!1;for(r of e.entries())if(!ol(r[1],t.get(r[0])))return!1;return!0}if(iO(e)&&iO(t))return!(e.size!==t.size||e.name!==t.name||e.lastModified!==t.lastModified||e.type!==t.type);if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(r of e.entries())if(!t.has(r[0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(e=rO(e),t=rO(t),i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){var a=i[r];if(!ol(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function rO(e){return Object.fromEntries(Object.entries(e).filter(([,t])=>t!==void 0))}function iO(e){return _pe?e instanceof File:!1}function kA(e){return vT(e)?e.replace(/\[|\]/gi,""):e}function Ml(e,t,n){return e?vT(t)?e[kA(t)]:(t||"").split(/\.|\[(\d+)\]/).filter(Boolean).reduce((i,a)=>bpe(i)&&a in i?i[a]:n,e):n}function Nh(e,t,n){if(vT(t)){e[kA(t)]=n;return}const r=t.split(/\.|\[(\d+)\]/).filter(Boolean);let i=e;for(let a=0;a<r.length;a++){if(a===r.length-1){i[r[a]]=n;return}(!(r[a]in i)||Mj(i[r[a]]))&&(i[r[a]]=CA(r[a+1])?[]:{}),i=i[r[a]]}}function P6(e,t){if(Array.isArray(e)&&CA(t)){e.splice(Number(t),1);return}Wy(e)&&delete e[t]}function aO(e,t){if(vT(t)){delete e[kA(t)];return}const n=t.split(/\.|\[(\d+)\]/).filter(Boolean);let r=e;for(let a=0;a<n.length;a++){if(a===n.length-1){P6(r,n[a]);break}if(!(n[a]in r)||Mj(r[n[a]]))break;r=r[n[a]]}const i=n.map((a,s)=>Ml(e,n.slice(0,s).join(".")));for(let a=i.length-1;a>=0;a--)if(xpe(i[a])){if(a===0){P6(e,n[0]);continue}P6(i[a-1],n[a-1])}}function iu(e){return Object.keys(e)}function EA(e,t=void 0){const n=Ci();return n?.provides[e]||Ai(e,t)}function oO(e,t,n){if(Array.isArray(e)){const r=[...e],i=r.findIndex(a=>ol(a,t));return i>=0?r.splice(i,1):r.push(t),r}return ol(e,t)?n:t}function sO(e,t=0){let n=null,r=[];return function(...i){return n&&clearTimeout(n),n=setTimeout(()=>{const a=e(...i);r.forEach(s=>s(a)),r=[]},t),new Promise(a=>r.push(a))}}function Tpe(e,t){return Wy(t)&&t.number?fpe(e):e}function e$(e,t){let n;return async function(...i){const a=e(...i);n=a;const s=await a;return a!==n?s:(n=void 0,t(s,i))}}function t$(e){return Array.isArray(e)?e:e?[e]:[]}function U5(e,t){const n={};for(const r in e)t.includes(r)||(n[r]=e[r]);return n}function kpe(e){let t=null,n=[];return function(...r){const i=ur(()=>{if(t!==i)return;const a=e(...r);
10n.forEach(s=>s(a)),n=[],t=null});return t=i,new Promise(a=>n.push(a))}}function PA(e,t,n){return t.slots.default?typeof e=="string"||!e?t.slots.default(n()):{default:()=>{var r,i;return(i=(r=t.slots).default)===null||i===void 0?void 0:i.call(r,n())}}:t.slots.default}function $6(e){if(Lj(e))return e._value}function Lj(e){return"_value"in e}function Epe(e){return e.type==="number"||e.type==="range"?Number.isNaN(e.valueAsNumber)?e.value:e.valueAsNumber:e.value}function M4(e){if(!TA(e))return e;const t=e.target;if(Sw(t.type)&&Lj(t))return $6(t);if(t.type==="file"&&t.files){const n=Array.from(t.files);return t.multiple?n:n[0]}if(wpe(t))return Array.from(t.options).filter(n=>n.selected&&!n.disabled).map($6);if(Ij(t)){const n=Array.from(t.options).find(r=>r.selected);return n?$6(n):t.value}return Epe(t)}function Oj(e){const t={};return Object.defineProperty(t,"_$$isNormalized",{value:!0,writable:!1,enumerable:!1,configurable:!1}),e?Wy(e)&&e._$$isNormalized?e:Wy(e)?Object.keys(e).reduce((n,r)=>{const i=Ppe(e[r]);return e[r]!==!1&&(n[r]=lO(i)),n},t):typeof e!="string"?t:e.split("|").reduce((n,r)=>{const i=$pe(r);return i.name&&(n[i.name]=lO(i.params)),n},t):t}function Ppe(e){return e===!0?[]:Array.isArray(e)||Wy(e)?e:[e]}function lO(e){const t=n=>typeof n=="string"&&n[0]==="@"?Mpe(n.slice(1)):n;return Array.isArray(e)?e.map(t):e instanceof RegExp?[e]:Object.keys(e).reduce((n,r)=>(n[r]=t(e[r]),n),{})}const $pe=e=>{let t=[];const n=e.split(":")[0];return e.includes(":")&&(t=e.split(":").slice(1).join(":").split(",")),{name:n,params:t}};function Mpe(e){const t=n=>{var r;return(r=Ml(n,e))!==null&&r!==void 0?r:n[e]};return t.__locatorRef=e,t}function Ape(e){return Array.isArray(e)?e.filter(QP):iu(e).filter(t=>QP(e[t])).map(t=>e[t])}const Ipe={generateMessage:({field:e})=>`${e} is not valid.`,bails:!0,validateOnBlur:!0,validateOnChange:!0,validateOnInput:!1,validateOnModelUpdate:!0};let n$=Object.assign({},Ipe);const wy=()=>n$,Dpe=e=>{n$=Object.assign(Object.assign({},n$),e)},Lpe=Dpe;async function Rj(e,t,n={}){const r=n?.bails,i={name:n?.name||"{field}",rules:t,label:n?.label,bails:r??!0,formData:n?.values||{}},a=await Ope(i,e);return Object.assign(Object.assign({},a),{valid:!a.errors.length})}async function Ope(e,t){const n=e.rules;if(gd(n)||$4(n))return Bpe(t,Object.assign(Object.assign({},e),{rules:n}));if(Wo(n)||Array.isArray(n)){const o={field:e.label||e.name,name:e.name,label:e.label,form:e.formData,value:t},f=Array.isArray(n)?n:[n],m=f.length,y=[];for(let b=0;b<m;b++){const T=f[b],x=await T(t,o);if(!(typeof x!="string"&&!Array.isArray(x)&&x)){if(Array.isArray(x))y.push(...x);else{const A=typeof x=="string"?x:Fj(o);y.push(A)}if(e.bails)return{errors:y}}}return{errors:y}}const r=Object.assign(Object.assign({},e),{rules:Oj(n)}),i=[],a=Object.keys(r.rules),s=a.length;for(let o=0;o<s;o++){const f=a[o],m=await Fpe(r,t,{name:f,params:r.rules[f]});if(m.error&&(i.push(m.error),e.bails))return{errors:i}}return{errors:i}}function Rpe(e){return!!e&&e.name==="ValidationError"}function Bj(e){return{__type:"VVTypedSchema",async parse(n,r){var i;try{return{output:await e.validate(n,{abortEarly:!1,context:r?.formData||{}}),errors:[]}}catch(a){if(!Rpe(a))throw a;if(!(!((i=a.inner)===null||i===void 0)&&i.length)&&a.errors.length)return{errors:[{path:a.path,errors:a.errors}]};const s=a.inner.reduce((o,f)=>{const m=f.path||"";return o[m]||(o[m]={errors:[],path:m}),o[m].errors.push(...f.errors),o},{});return{errors:Object.values(s)}}}}}async function Bpe(e,t){const r=await(gd(t.rules)?t.rules:Bj(t.rules)).parse(e,{formData:t.formData}),i=[];for(const a of r.errors)a.errors.length&&i.push(...a.errors);return{value:r.value,errors:i}}async function Fpe(e,t,n){const r=mpe(n.name);if(!r)throw new Error(`No such validator '${n.name}' exists.`);const i=zpe(n.params,e.formData),a={field:e.label||e.name,name:e.name,label:e.label,value:t,form:e.formData,rule:Object.assign(Object.assign({},n),{params:i})},s=await r(t,i,a);return typeof s=="string"?{error:s}:{error:s?void 0:Fj(a)}}function Fj(e){const t=wy().generateMessage;return t?t(e):"Field is invalid"}function zpe(e,t){const n=r=>QP(r)?r(t):r;return Array.isArray(e)?e.map(n):Object.keys(e).reduce((r,i)=>(r[i]=n(e[i]),r),{})}async function Npe(e,t){const r=await(gd(e)?e:Bj(e)).parse(ui(t),{formData:ui(t)}),i={},a={};for(const s of r.errors){const o=s.errors,f=(s.path||"").replace(/\["(\d+)"\]/g,(m,y)=>`[${y}]`);i[f]={valid:!o.length,errors:o},o.length&&(a[f]=o[0])}return{valid:!r.errors.length,results:i,errors:a,values:r.value,source:"schema"}}async function Vpe(e,t,n){const i=iu(e).map(async m=>{var y,b,T;const x=(y=n?.names)===null||y===void 0?void 0:y[m],$=await Rj(Ml(t,m),e[m],{name:x?.name||m,label:x?.label,values:t,bail
10s:(T=(b=n?.bailsMap)===null||b===void 0?void 0:b[m])!==null&&T!==void 0?T:!0});return Object.assign(Object.assign({},$),{path:m})});let a=!0;const s=await Promise.all(i),o={},f={};for(const m of s)o[m.path]={valid:m.valid,errors:m.errors},m.valid||(a=!1,f[m.path]=m.errors[0]);return{valid:a,results:o,errors:f,source:"schema"}}let uO=0;function qpe(e,t){const{value:n,initialValue:r,setInitialValue:i}=jpe(e,t.modelValue,t.form);if(!t.form){let f=function(x){var $;"value"in x&&(n.value=x.value),"errors"in x&&y(x.errors),"touched"in x&&(T.touched=($=x.touched)!==null&&$!==void 0?$:T.touched),"initialValue"in x&&i(x.initialValue)};const{errors:m,setErrors:y}=Wpe(),b=uO>=Number.MAX_SAFE_INTEGER?0:++uO,T=Hpe(n,r,m,t.schema);return{id:b,path:e,value:n,initialValue:r,meta:T,flags:{pendingUnmount:{[b]:!1},pendingReset:!1},errors:m,setState:f}}const a=t.form.createPathState(e,{bails:t.bails,label:t.label,type:t.type,validate:t.validate,schema:t.schema}),s=xe(()=>a.errors);function o(f){var m,y,b;"value"in f&&(n.value=f.value),"errors"in f&&((m=t.form)===null||m===void 0||m.setFieldError(v(e),f.errors)),"touched"in f&&((y=t.form)===null||y===void 0||y.setFieldTouched(v(e),(b=f.touched)!==null&&b!==void 0?b:!1)),"initialValue"in f&&i(f.initialValue)}return{id:Array.isArray(a.id)?a.id[a.id.length-1]:a.id,path:e,value:n,errors:s,meta:a,initialValue:r,flags:a.__flags,setState:o}}function jpe(e,t,n){const r=De(v(t));function i(){return n?Ml(n.initialValues.value,v(e),v(r)):v(r)}function a(m){if(!n){r.value=m;return}n.setFieldInitialValue(v(e),m,!0)}const s=xe(i);if(!n)return{value:De(i()),initialValue:s,setInitialValue:a};const o=Upe(t,n,s,e);return n.stageInitialValue(v(e),o,!0),{value:xe({get(){return Ml(n.values,v(e))},set(m){n.setFieldValue(v(e),m,!1)}}),initialValue:s,setInitialValue:a}}function Upe(e,t,n,r){return zn(e)?v(e):e!==void 0?e:Ml(t.values,v(r),v(n))}function Hpe(e,t,n,r){const i=xe(()=>{var s,o,f;return(f=(o=(s=qt(r))===null||s===void 0?void 0:s.describe)===null||o===void 0?void 0:o.call(s).required)!==null&&f!==void 0?f:!1}),a=aa({touched:!1,pending:!1,valid:!0,required:i,validated:!!v(n).length,initialValue:xe(()=>v(t)),dirty:xe(()=>!ol(v(e),v(t)))});return nn(n,s=>{a.valid=!s.length},{immediate:!0,flush:"sync"}),a}function Wpe(){const e=De([]);return{errors:e,setErrors:t=>{e.value=t$(t)}}}function Ma(e,t,n){return Sw(n?.type)?Ype(e,t,n):zj(e,t,n)}function zj(e,t,n){const{initialValue:r,validateOnMount:i,bails:a,type:s,checkedValue:o,label:f,validateOnValueUpdate:m,uncheckedValue:y,controlled:b,keepValueOnUnmount:T,syncVModel:x,form:$}=Gpe(n),A=b?EA(ww):void 0,N=$||A,O=xe(()=>N2(qt(e))),I=xe(()=>{if(qt(N?.schema))return;const ct=v(t);return $4(ct)||gd(ct)||Wo(ct)||Array.isArray(ct)?ct:Oj(ct)}),U=!Wo(I.value)&&gd(qt(t)),{id:B,value:q,initialValue:Q,meta:ee,setState:Y,errors:z,flags:H}=qpe(O,{modelValue:r,form:N,bails:a,label:f,type:s,validate:I.value?se:void 0,schema:U?t:void 0}),K=xe(()=>z.value[0]);x&&Zpe({value:q,prop:x,handleChange:ce,shouldValidate:()=>m&&!H.pendingReset});const ne=(Ve,ct=!1)=>{ee.touched=!0,ct&&pe()};async function le(Ve){var ct,zt;if(N?.validateSchema){const{results:ut}=await N.validateSchema(Ve);return(ct=ut[qt(O)])!==null&&ct!==void 0?ct:{valid:!0,errors:[]}}return I.value?Rj(q.value,I.value,{name:qt(O),label:qt(f),values:(zt=N?.values)!==null&&zt!==void 0?zt:{},bails:a}):{valid:!0,errors:[]}}const pe=e$(async()=>(ee.pending=!0,ee.validated=!0,le("validated-only")),Ve=>(H.pendingUnmount[Qe.id]||(Y({errors:Ve.errors}),ee.pending=!1,ee.valid=Ve.valid),Ve)),ae=e$(async()=>le("silent"),Ve=>(ee.valid=Ve.valid,Ve));function se(Ve){return Ve?.mode==="silent"?ae():pe()}function ce(Ve,ct=!0){const zt=M4(Ve);je(zt,ct)}Hn(()=>{if(i)return pe();(!N||!N.validateSchema)&&ae()});function ye(Ve){ee.touched=Ve}function $e(Ve){var ct;const zt=Ve&&"value"in Ve?Ve.value:Q.value;Y({value:ui(zt),initialValue:ui(zt),touched:(ct=Ve?.touched)!==null&&ct!==void 0?ct:!1,errors:Ve?.errors||[]}),ee.pending=!1,ee.validated=!1,ae()}const Be=Ci();function je(Ve,ct=!0){q.value=Be&&x?Tpe(Ve,Be.props.modelModifiers):Ve,(ct?pe:ae)()}function at(Ve){Y({errors:Array.isArray(Ve)?Ve:[Ve]})}const Pt=xe({get(){return q.value},set(Ve){je(Ve,m)}}),Qe={id:B,name:O,label:f,value:Pt,meta:ee,errors:z,errorMessage:K,type:s,checkedValue:o,uncheckedValue:y,bails:a,keepValueOnUnmount:T,resetField:$e,handleReset:()=>
10$e(),validate:se,handleChange:ce,handleBlur:ne,setState:Y,setTouched:ye,setErrors:at,setValue:je};if(co(vpe,Qe),zn(t)&&typeof v(t)!="function"&&nn(t,(Ve,ct)=>{ol(Ve,ct)||(ee.validated?pe():ae())},{deep:!0}),!N)return Qe;const nt=xe(()=>{const Ve=I.value;return!Ve||Wo(Ve)||$4(Ve)||gd(Ve)||Array.isArray(Ve)?{}:Object.keys(Ve).reduce((ct,zt)=>{const ut=Ape(Ve[zt]).map(At=>At.__locatorRef).reduce((At,Dt)=>{const Ot=Ml(N.values,Dt)||N.values[Dt];return Ot!==void 0&&(At[Dt]=Ot),At},{});return Object.assign(ct,ut),ct},{})});return nn(nt,(Ve,ct)=>{if(!Object.keys(Ve).length)return;!ol(Ve,ct)&&(ee.validated?pe():ae())}),xu(()=>{var Ve;const ct=(Ve=qt(Qe.keepValueOnUnmount))!==null&&Ve!==void 0?Ve:qt(N.keepValuesOnUnmount),zt=qt(O);if(ct||!N||H.pendingUnmount[Qe.id]){N?.removePathState(zt,B);return}H.pendingUnmount[Qe.id]=!0;const ut=N.getPathState(zt);if(Array.isArray(ut?.id)&&ut?.multiple?ut?.id.includes(Qe.id):ut?.id===Qe.id){if(ut?.multiple&&Array.isArray(ut.value)){const Dt=ut.value.findIndex(Ot=>ol(Ot,qt(Qe.checkedValue)));if(Dt>-1){const Ot=[...ut.value];Ot.splice(Dt,1),N.setFieldValue(zt,Ot)}Array.isArray(ut.id)&&ut.id.splice(ut.id.indexOf(Qe.id),1)}else N.unsetPathValue(qt(O));N.removePathState(zt,B)}}),Qe}function Gpe(e){const t=()=>({initialValue:void 0,validateOnMount:!1,bails:!0,label:void 0,validateOnValueUpdate:!0,keepValueOnUnmount:void 0,syncVModel:!1,controlled:!0}),n=!!e?.syncVModel,r=typeof e?.syncVModel=="string"?e.syncVModel:e?.modelPropName||"modelValue",i=n&&!("initialValue"in(e||{}))?r$(Ci(),r):e?.initialValue;if(!e)return Object.assign(Object.assign({},t()),{initialValue:i});const a="valueProp"in e?e.valueProp:e.checkedValue,s="standalone"in e?!e.standalone:e.controlled,o=e?.modelPropName||e?.syncVModel||!1;return Object.assign(Object.assign(Object.assign({},t()),e||{}),{initialValue:i,controlled:s??!0,checkedValue:a,syncVModel:o})}function Ype(e,t,n){const r=n?.standalone?void 0:EA(ww),i=n?.checkedValue,a=n?.uncheckedValue;function s(o){const f=o.handleChange,m=xe(()=>{const b=qt(o.value),T=qt(i);return Array.isArray(b)?b.findIndex(x=>ol(x,T))>=0:ol(T,b)});function y(b,T=!0){var x,$;if(m.value===((x=b?.target)===null||x===void 0?void 0:x.checked)){T&&o.validate();return}const A=qt(e),N=r?.getPathState(A),O=M4(b);let I=($=qt(i))!==null&&$!==void 0?$:O;r&&N?.multiple&&N.type==="checkbox"?I=oO(Ml(r.values,A)||[],I,void 0):n?.type==="checkbox"&&(I=oO(qt(o.value),I,qt(a))),f(I,T)}return Object.assign(Object.assign({},o),{checked:m,checkedValue:i,uncheckedValue:a,handleChange:y})}return s(zj(e,t,n))}function Zpe({prop:e,value:t,handleChange:n,shouldValidate:r}){const i=Ci();if(!i||!e)return;const a=typeof e=="string"?e:"modelValue",s=`update:${a}`;a in i.props&&(nn(t,o=>{ol(o,r$(i,a))||i.emit(s,o)}),nn(()=>r$(i,a),o=>{if(o===P4&&t.value===void 0)return;const f=o===P4?void 0:o;ol(f,t.value)||n(f,r())}))}function r$(e,t){if(e)return e.props[t]}const Kpe=Fe({name:"Field",inheritAttrs:!1,props:{as:{type:[String,Object],default:void 0},name:{type:String,required:!0},rules:{type:[Object,String,Function],default:void 0},validateOnMount:{type:Boolean,default:!1},validateOnBlur:{type:Boolean,default:void 0},validateOnChange:{type:Boolean,default:void 0},validateOnInput:{type:Boolean,default:void 0},validateOnModelUpdate:{type:Boolean,default:void 0},bails:{type:Boolean,default:()=>wy().bails},label:{type:String,default:void 0},uncheckedValue:{type:null,default:void 0},modelValue:{type:null,default:P4},modelModifiers:{type:null,default:()=>({})},"onUpdate:modelValue":{type:null,default:void 0},standalone:{type:Boolean,default:!1},keepValue:{type:Boolean,default:void 0}},setup(e,t){const n=oc(e,"rules"),r=oc(e,"name"),i=oc(e,"label"),a=oc(e,"uncheckedValue"),s=oc(e,"keepValue"),{errors:o,value:f,errorMessage:m,validate:y,handleChange:b,handleBlur:T,setTouched:x,resetField:$,handleReset:A,meta:N,checked:O,setErrors:I,setValue:U}=Ma(r,n,{validateOnMount:e.validateOnMount,bails:e.bails,standalone:e.standalone,type:t.attrs.type,initialValue:Jpe(e,t),checkedValue:t.attrs.value,uncheckedValue:a,label:i,validateOnValueUpdate:e.validateOnModelUpdate,keepValueOnUnmount:s,syncVModel:!0}),B=function(H,K=!0){b(H,K)},q=xe(()=>{const{validateOnInput:z,validateOnChange:H,validateOnBlur:K,validateOnModelUpdate:ne}=Xpe(e);function le(ce){T(ce,K),Wo(t.attrs.onBlur)&&t.attrs.onBlur(ce)}function pe(ce){B(ce,z),Wo(t.attrs.onInput)&&t.attrs.onInput(ce)}function ae(ce){B(ce,H),Wo(t.attrs.onChange)&&t.attrs.onChange(ce)}
10const se={name:e.name,onBlur:le,onInput:pe,onChange:ae};return se["onUpdate:modelValue"]=ce=>B(ce,ne),se}),Q=xe(()=>{const z=Object.assign({},q.value);Sw(t.attrs.type)&&O&&(z.checked=O.value);const H=cO(e,t);return Cpe(H,t.attrs)&&(z.value=f.value),z}),ee=xe(()=>Object.assign(Object.assign({},q.value),{modelValue:f.value}));function Y(){return{field:Q.value,componentField:ee.value,value:f.value,meta:N,errors:o.value,errorMessage:m.value,validate:y,resetField:$,handleChange:B,handleInput:z=>B(z,!1),handleReset:A,handleBlur:q.value.onBlur,setTouched:x,setErrors:I,setValue:U}}return t.expose({value:f,meta:N,errors:o,errorMessage:m,setErrors:I,setTouched:x,setValue:U,reset:$,validate:y,handleChange:b}),()=>{const z=xr(cO(e,t)),H=PA(z,t,Y);return z?Yn(z,Object.assign(Object.assign({},t.attrs),Q.value),H):H}}});function cO(e,t){let n=e.as||"";return!e.as&&!t.slots.default&&(n="input"),n}function Xpe(e){var t,n,r,i;const{validateOnInput:a,validateOnChange:s,validateOnBlur:o,validateOnModelUpdate:f}=wy();return{validateOnInput:(t=e.validateOnInput)!==null&&t!==void 0?t:a,validateOnChange:(n=e.validateOnChange)!==null&&n!==void 0?n:s,validateOnBlur:(r=e.validateOnBlur)!==null&&r!==void 0?r:o,validateOnModelUpdate:(i=e.validateOnModelUpdate)!==null&&i!==void 0?i:f}}function Jpe(e,t){return Sw(t.attrs.type)?nO(e,"modelValue")?e.modelValue:void 0:nO(e,"modelValue")?e.modelValue:t.attrs.value}const dO=Kpe;let Qpe=0;const H5=["bails","fieldsCount","id","multiple","type","validate"];function Nj(e){const t=e?.initialValues||{},n=Object.assign({},qt(t)),r=v(e?.validationSchema);return r&&gd(r)&&Wo(r.cast)?ui(r.cast(n)||{}):ui(n)}function U_(e){var t;const n=Qpe++,r=e?.name||"Form";let i=0;const a=De(!1),s=De(!1),o=De(0),f=[],m=aa(Nj(e)),y=De([]),b=De({}),T=De({}),x=kpe(()=>{T.value=y.value.reduce((ft,Ge)=>(ft[N2(qt(Ge.path))]=Ge,ft),{})});function $(ft,Ge){const rt=ce(ft);if(!rt){typeof ft=="string"&&(b.value[N2(ft)]=t$(Ge));return}if(typeof ft=="string"){const $t=N2(ft);b.value[$t]&&delete b.value[$t]}rt.errors=t$(Ge),rt.valid=!rt.errors.length}function A(ft){iu(ft).forEach(Ge=>{$(Ge,ft[Ge])})}e?.initialErrors&&A(e.initialErrors);const N=xe(()=>{const ft=y.value.reduce((Ge,rt)=>
10(rt.errors.length&&(Ge[qt(rt.path)]=rt.errors),Ge),{});return Object.assign(Object.assign({},b.value),ft)}),O=xe(()=>iu(N.value).reduce((ft,Ge)=>{const rt=N.value[Ge];return rt?.length&&(ft[Ge]=rt[0]),ft},{})),I=xe(()=>y.value.reduce((ft,Ge)=>(ft[qt(Ge.path)]={name:qt(Ge.path)||"",label:Ge.label||""},ft),{})),U=xe(()=>y.value.reduce((ft,Ge)=>{var rt;return ft[qt(Ge.path)]=(rt=Ge.bails)!==null&&rt!==void 0?rt:!0,ft},{})),B=Object.assign({},e?.initialErrors||{}),q=(t=e?.keepValuesOnUnmount)!==null&&t!==void 0?t:!1,{initialValues:Q,originalInitialValues:ee,setInitialValues:Y}=tme(y,m,e),z=eme(y,m,ee,O),H=xe(()=>y.value.reduce((ft,Ge)=>{const rt=Ml(m,qt(Ge.path));return Nh(ft,qt(Ge.path),rt),ft},{})),K=e?.validationSchema;function ne(ft,Ge){var rt,$t;const Gt=xe(()=>Ml(Q.value,qt(ft))),Zt=T.value[qt(ft)],rn=Ge?.type==="checkbox"||Ge?.type==="radio";if(Zt&&rn){Zt.multiple=!0;const va=i++;return Array.isArray(Zt.id)?Zt.id.push(va):Zt.id=[Zt.id,va],Zt.fieldsCount++,Zt.__flags.pendingUnmount[va]=!1,Zt}const Dn=xe(()=>Ml(m,qt(ft))),tr=qt(ft),Nr=$e.findIndex(va=>va===tr);Nr!==-1&&$e.splice(Nr,1);const $r=xe(()=>{var va,Ft,xc,wc;const Mr=qt(K);if(gd(Mr))return(Ft=(va=Mr.describe)===null||va===void 0?void 0:va.call(Mr,qt(ft)).required)!==null&&Ft!==void 0?Ft:!1;const _a=qt(Ge?.schema);return gd(_a)&&(wc=(xc=_a.describe)===null||xc===void 0?void 0:xc.call(_a).required)!==null&&wc!==void 0?wc:!1}),pi=i++,mi=aa({id:pi,path:ft,touched:!1,pending:!1,valid:!0,validated:!!(!((rt=B[tr])===null||rt===void 0)&&rt.length),required:$r,initialValue:Gt,errors:Bn([]),bails:($t=Ge?.bails)!==null&&$t!==void 0?$t:!1,label:Ge?.label,type:Ge?.type||"default",value:Dn,multiple:!1,__flags:{pendingUnmount:{[pi]:!1},pendingReset:!1},fieldsCount:1,validate:Ge?.validate,dirty:xe(()=>!ol(v(Dn),v(Gt)))});return y.value.push(mi),T.value[tr]=mi,x(),O.value[tr]&&!B[tr]&&ur(()=>{pt(tr,{mode:"silent"})}),zn(ft)&&nn(ft,va=>{x();const Ft=ui(Dn.value);T.value[va]=mi,ur(()=>{Nh(m,va,Ft)})}),mi}const le=sO(Yt,5),pe=sO(Yt,5),ae=e$(async ft=>await(ft==="silent"?le():pe()),(ft,[Ge])=>{const rt=iu(ct.errorBag.value),Gt=[...new Set([...iu(ft.results),...y.value.map(Zt=>Zt.path),...rt])].sort().reduce((Zt,rn)=>{var Dn;const tr=rn,Nr=ce(tr)||ye(tr),$r=((Dn=ft.results[tr])===null||Dn===void 0?void 0:Dn.errors)||[],pi=qt(Nr?.path)||tr,mi=nme({errors:$r,valid:!$r.length},Zt.results[pi]);return Zt.results[pi]=mi,mi.valid||(Zt.errors[pi]=mi.errors[0]),Nr&&b.value[pi]&&delete b.value[pi],Nr?(Nr.valid=mi.valid,Ge==="silent"||Ge==="validated-only"&&!Nr.validated||$(Nr,mi.errors),Zt):($(pi,$r),Zt)},{valid:ft.valid,results:{},errors:{},source:ft.source});return ft.values&&(Gt.values=ft.values,Gt.source=ft.source),iu(Gt.results).forEach(Zt=>{var rn;const Dn=ce(Zt);Dn&&Ge!=="silent"&&(Ge==="validated-only"&&!Dn.validated||$(Dn,(rn=Gt.results[Zt])===null||rn===void 0?void 0:rn.errors))}),Gt});function se(ft){y.value.forEach(ft)}function ce(ft){const Ge=typeof ft=="string"?N2(ft):ft;return typeof Ge=="string"?T.value[Ge]:Ge}function ye(ft){return y.value.filter(rt=>ft.startsWith(qt(rt.path))).reduce((rt,$t)=>rt?$t.path.length>rt.path.length?$t:rt:$t,void 0)}let $e=[],Be;function je(ft){return $e.push(ft),Be||(Be=ur(()=>{[...$e].sort().reverse().forEach(rt=>{aO(m,rt)}),$e=[],Be=null})),Be}function at(ft){return function(rt,$t){return function(Zt){return Zt instanceof Event&&(Zt.preventDefault(),Zt.stopPropagation()),se(rn=>rn.touched=!0),a.value=!0,o.value++,qe().then(rn=>{const Dn=ui(m);if(rn.valid&&typeof rt=="function"){const tr=ui(H.value);let Nr=ft?tr:Dn;return rn.values&&(Nr=rn.source==="schema"?rn.values:Object.assign({},Nr,rn.values)),rt(Nr,{evt:Zt,controlledValues:tr,setErrors:A,setFieldError:$,setTouched:yt,setFieldTouched:Ot,setValues:At,setFieldValue:zt,resetForm:Ie,resetField:St})}!rn.valid&&typeof $t=="function"&&$t({values:Dn,evt:Zt,errors:rn.errors,results:rn.results})}).then(rn=>(a.value=!1,rn),rn=>{throw a.value=!1,rn})}}}const Qe=at(!1);Qe.withControlled=at(!0);function nt(ft,Ge){const rt=y.value.findIndex(Gt=>Gt.path===ft&&(Array.isArray(Gt.id)?Gt.id.includes(Ge):Gt.id===Ge)),$t=y.value[rt];if(!(rt===-1||!$t)){if(ur(()=>{pt(ft,{mode:"silent",warn:!1})}),$t.multiple&&$t.fieldsCount&&$t.fieldsCount--,Array.isArray($t.id)){const Gt=$t.id.indexOf(Ge);Gt>=0&&$t.id.splice(Gt,1),delete $t.__flags.pendingUnmount[Ge]}(!$t.multiple||$t.fieldsCount<=0)&&(y.value.splice(rt,1),Tt(ft),x(),delete T.value[ft])}}function Ve(ft){iu(T.value).forEach(Ge=>{Ge.startsWith(ft)&&delete T.value[Ge]}),y.value=y.value.filter(Ge=>!Ge.path.startsWith(ft)),ur(()=>{x()})}const ct={name:r,formId:n,values:m,controlledValues:H,errorBag:N,errors:O,schema:K,submitCount:o,meta:z,isSubmitting:a,isValidating:s,fieldArrays:f,keepValuesOnUnmount:q,validateSchema:v(K)?ae:void 0,validate:qe,setFieldError:$,validateField:pt,setFieldValue:zt,setValues:At,setErrors:A,setFieldTouched:Ot,setTouched:yt,resetForm:Ie,resetField:St,handleSubmit:Qe,useFieldModel:Jt,defineInputBinds:an,defineComponentBinds:Sn,defineField:vt,stageInitialValue:It,unsetInitialValue:Tt,setFieldInitialValue:sn,createPathState:ne,getPathState:ce,unsetPathValue:je,removePathState:nt,initialValues:Q,getAllPathStates:()=>y.value,destroyPath:Ve,isFieldTouched:Ee,isFieldDirty:Ye,isFieldValid:it};function zt(ft,Ge,rt=!0){const $t=ui(Ge),Gt=typeof ft=="string"?ft:ft.path;ce(Gt)||ne(Gt),Nh(m,Gt,$t),rt&&pt(Gt)}function ut(ft,Ge=!0){iu(m).forEach(rt=>{delete m[rt]}),iu(ft).forEach(rt=>{zt(rt,ft[rt],!1)}),Ge&&qe()}function At(ft,Ge=!0){Bx(m,ft),f.forEach(rt=>rt&&rt.reset()),Ge&&qe()}function Dt(ft,Ge){const rt=ce(qt(ft))||ne(ft);return xe({get(){return rt.value},set($t){var Gt;const Zt=qt(ft);zt(Zt,$t,(Gt=qt(Ge))!==null&&Gt!==void 0?Gt:!1)}})}function Ot(ft,Ge){const rt=ce(ft);rt&&(rt.touched=Ge)}function Ee(ft){const Ge=ce(ft);return Ge?Ge.touched:y.value.filter(rt=>rt.path.startsWith(ft)).some(rt=>rt.touched)}function Ye(ft){const Ge=ce(ft);return Ge?Ge.dirty:y.value.filter(rt=>rt.path.startsWith(ft)).some(rt=>rt.dirty)}function it(ft){const Ge=ce(ft);return Ge?Ge.valid:y.value.filter(rt=>rt.path.startsWith(ft)).every(rt=>rt.valid)}function yt(ft){if(typeof ft=="boolean"){se(Ge=>{Ge.touched=ft});return}iu(ft).forEach(Ge=>{Ot(Ge,!!ft[Ge])})}function St(ft,Ge){var rt;const $t=Ge&&"value"in Ge?Ge.value:Ml(Q.value,ft),Gt=ce(ft);Gt&&(Gt.__flags.pendingReset=!0),sn(ft,ui($t),!0),zt(ft,$t,!1),Ot(ft,(rt=Ge?.touched)!==null&&rt!==void 0?rt:!1),$(ft,Ge?.errors||[]),ur(()=>{Gt&&(Gt.__flags.pendingReset=!1)})}function Ie(ft,Ge){let rt=ui(ft?.values?ft.values:ee.value);rt=Ge?.force?rt:Bx(ee.value,rt),rt=gd(K)&&Wo(K.cast)?K.cast(rt):rt,Y(rt,{force:Ge?.force}),se($t=>{var Gt;$t.__flags.pendingReset=!0,$t.validated=!1,$t.touched=((Gt=ft?.touched)===null||Gt===void 0?void 0:Gt[qt($t.path)])||!1,zt(qt($t.path),Ml(rt,qt($t.path)),!1),$(qt($t.path),void 0)}),Ge?.force?ut(rt,!1):At(rt,!1),A(ft?.errors||{}),o.value=ft?.submitCount||0,ur(()=>{qe({mode:"silent"}),se($t=>{$t.__flags.pendingReset=!1})})}async function qe(ft){const Ge=ft?.mode||"force";if(Ge==="force"&&se(rn=>
10rn.validated=!0),ct.validateSchema)return ct.validateSchema(Ge);s.value=!0;const rt=await Promise.all(y.value.map(rn=>rn.validate?rn.validate(ft).then(Dn=>({key:qt(rn.path),valid:Dn.valid,errors:Dn.errors,value:Dn.value})):Promise.resolve({key:qt(rn.path),valid:!0,errors:[],value:void 0})));s.value=!1;const $t={},Gt={},Zt={};for(const rn of rt)$t[rn.key]={valid:rn.valid,errors:rn.errors},rn.value&&Nh(Zt,rn.key,rn.value),rn.errors.length&&(Gt[rn.key]=rn.errors[0]);return{valid:rt.every(rn=>rn.valid),results:$t,errors:Gt,values:Zt,source:"fields"}}async function pt(ft,Ge){var rt;const $t=ce(ft);if($t&&Ge?.mode!=="silent"&&($t.validated=!0),K){const{results:Gt}=await ae(Ge?.mode||"validated-only");return Gt[ft]||{errors:[],valid:!0}}return $t?.validate?$t.validate(Ge):(!$t&&(rt=Ge?.warn),Promise.resolve({errors:[],valid:!0}))}function Tt(ft){aO(Q.value,ft)}function It(ft,Ge,rt=!1){sn(ft,Ge),Nh(m,ft,Ge),rt&&!e?.initialValues&&Nh(ee.value,ft,ui(Ge))}function sn(ft,Ge,rt=!1){Nh(Q.value,ft,ui(Ge)),rt&&Nh(ee.value,ft,ui(Ge))}async function Yt(){const ft=v(K);if(!ft)return{valid:!0,results:{},errors:{},source:"none"};s.value=!0;const Ge=$4(ft)||gd(ft)?await Npe(ft,m):await Vpe(ft,m,{names:I.value,bailsMap:U.value});return s.value=!1,Ge}const _t=Qe((ft,{evt:Ge})=>{Dj(Ge)&&Ge.target.submit()});Hn(()=>{if(e?.initialErrors&&A(e.initialErrors),e?.initialTouched&&yt(e.initialTouched),e?.validateOnMount){qe();return}ct.validateSchema&&ct.validateSchema("silent")}),zn(K)&&nn(K,()=>{var ft;(ft=ct.validateSchema)===null||ft===void 0||ft.call(ct,"validated-only")}),co(ww,ct);function vt(ft,Ge){const rt=Wo(Ge)?void 0:Ge?.label,$t=ce(qt(ft))||ne(ft,{label:rt}),Gt=()=>Wo(Ge)?Ge(U5($t,H5)):Ge||{};function Zt(){var $r;$t.touched=!0,(($r=Gt().validateOnBlur)!==null&&$r!==void 0?$r:wy().validateOnBlur)&&pt(qt($t.path))}function rn(){var $r;(($r=Gt().validateOnInput)!==null&&$r!==void 0?$r:wy().validateOnInput)&&ur(()=>{pt(qt($t.path))})}function Dn(){var $r;(($r=Gt().validateOnChange)!==null&&$r!==void 0?$r:wy().validateOnChange)&&ur(()=>{pt(qt($t.path))})}const tr=xe(()=>{const $r={onChange:Dn,onInput:rn,onBlur:Zt};return Wo(Ge)?Object.assign(Object.assign({},$r),Ge(U5($t,H5)).props||{}):Ge?.props?Object.assign(Object.assign({},$r),Ge.props(U5($t,H5))):$r});return[Dt(ft,()=>{var $r,pi,mi;return(mi=($r=Gt().validateOnModelUpdate)!==null&&$r!==void 0?$r:(pi=wy())===null||pi===void 0?void 0:pi.validateOnModelUpdate)!==null&&mi!==void 0?mi:!0}),tr]}function Jt(ft){return Array.isArray(ft)?ft.map(Ge=>Dt(Ge,!0)):Dt(ft)}function an(ft,Ge){const[rt,$t]=vt(ft,Ge);function Gt(){$t.value.onBlur()}function Zt(Dn){const tr=M4(Dn);zt(qt(ft),tr,!1),$t.value.onInput()}function rn(Dn){const tr=M4(Dn);zt(qt(ft),tr,!1),$t.value.onChange()}return xe(()=>Object.assign(Object.assign({},$t.value),{onBlur:Gt,onInput:Zt,onChange:rn,value:rt.value}))}function Sn(ft,Ge){const[rt,$t]=vt(ft,Ge),Gt=ce(qt(ft));function Zt(rn){rt.value=rn}return xe(()=>{const rn=Wo(Ge)?Ge(U5(Gt,H5)):Ge||{};return Object.assign({[rn.model||"modelValue"]:rt.value,[`onUpdate:${rn.model||"modelValue"}`]:Zt},$t.value)})}const On=Object.assign(Object.assign({},ct),{values:Tx(m),handleReset:()=>Ie(),submitForm:_t});return co(ype,On),On}function eme(e,t,n,r){const i={touched:"some",pending:"some",valid:"every"},a=xe(()=>!ol(t,v(n)));function s(){const f=e.value;return iu(i).reduce((m,y)=>{const b=i[y];return m[y]=f[b](T=>T[y]),m},{})}const o=aa(s());return ko(()=>{const f=s();o.touched=f.touched,o.valid=f.valid,o.pending=f.pending}),xe(()=>Object.assign(Object.assign({initialValues:v(n)},o),{valid:o.valid&&!iu(r.value).length,dirty:a.value}))}function tme(e,t,n){const r=Nj(n),i=De(r),a=De(ui(r));function s(o,f){f?.force?(i.value=ui(o),a.value=ui(o)):(i.value=Bx(ui(i.value)||{},ui(o)),a.value=Bx(ui(a.value)||{},ui(o))),f?.updateFields&&e.value.forEach(m=>{if(m.touched)return;const b=Ml(i.value,qt(m.path));Nh(t,qt(m.path),ui(b))})}return{initialValues:i,originalInitialValues:a,setInitialValues:s}}function nme(e,t){return t?{valid:e.valid&&t.valid,errors:[...e.errors,...t.errors]}:e}const rme=Fe({name:"Form",inheritAttrs:!1,props:{as:{type:null,default:"form"},validationSchema:{type:Object,default:void 0},initialValues:{type:Object,default:void 0},initialErrors:{type:Object,default:void 0},initialTouched:{type:Object,default:void 0},validateOnMount:{type:Boolean,default:!1},onSubmit:{type:Function,default:void 0},onInvalidSubmit:{type:Function,default:void 0},keepValues:{type:Boolean,default:!1},name:{type:String,default:"Form"}},setup(e,t){const n=oc(e,"validationSchema"),r=oc(e,"keepValues"),{errors:i,errorBag:a,values:s,meta:o,isSubmitting:f,isValidating:m,submitCount:y,controlledValues:b,validate:T,validateField:x,handleReset:$,resetForm:A,handleSubmit:N,setErrors:O,setFieldError:I,setFieldValue:U,setValues:B,setFieldTouched:q,setTouched:Q,resetField:ee}=U_({validationSchema:n.value?n:void 0,initialValues:e.initialValues,initialErrors:e.initialErrors,initialTouched:e.initialTouched,validateOnMount:e.validateOnMount,keepValuesOnUnmount:r,name:e.name}),Y=N((se,{evt:ce})=>{Dj(ce)&&ce.target.submit()},e.onInvalidSubmit),z=e.onSubmit?N(e.onSubmit,e.onInvalidSubmit):Y;function H(se){TA(se)&&se.preventDefault(),$(),typeof t.attrs.onReset=="function"&&t.attrs.onReset()}function K(se,ce){return N(typeof se=="function"&&!ce?se:ce,e.onInvalidSubmit)(se)}function ne(){return ui(s)}function le(){return ui(o.value)}function pe(){return ui(i.value)}function ae(){return{meta:o.value,errors:i.value,errorBag:a.value,values:s,isSubmitting:f.value,isValidating:m.value,submitCount:y.value,controlledValues:b.value,validate:T,validateField:x,handleSubmit:K,handleReset:$,submitForm:Y,setErrors:O,setFieldError:I,setFieldValue:U,setValues:B,setFieldTouched:q,setTouched:Q,resetForm:A,resetField:ee,getValues:ne,getMeta:le,getErrors:pe}}return t.expose({setFieldError:I,setErrors:O,setFieldValue:U,setValues:B,setFieldTouched:q,setTouched:Q,resetForm:A,validate:T,validateField:x,resetField:ee,getValues:ne,getMeta:le,getErrors:pe,values:s,meta:o,errors:i}),function(){const ce=e.as==="form"?e.as:e.as?xr(e.as):null,ye=PA(ce,t,ae);return ce?Yn(ce,Object.assign(Object.assign(Object.assign({},ce==="form"?{novalidate:!0}:{}),t.attrs),{onSubmit:z,onReset:H}),ye):ye}}}),ime=rme,ame=Fe({name:"ErrorMessage",props:{as:{type:String,default:void 0},name:{type:String,required:!0}},setup(e,t){const n=Ai(ww,void 0),r=xe(()=>n?.errors.value[e.name]);function i(){return{message:r.value}}return()=>{if(!r.value)return;const a=e.as?xr(e.as):e.as,s=PA(a,t,i),o=Object.assign({role:"alert"},t.attrs);
10return!a&&(Array.isArray(s)||!s)&&s?.length?s:(Array.isArray(s)||!s)&&!s?.length?Yn(a||"span",o,r.value):Yn(a,o,s)}}}),M6=ame;function Vj(){const e=EA(ww);return xe(()=>{var t;return(t=e?.meta.value.touched)!==null&&t!==void 0?t:!1})}const ome="fr",sme={_default:"Le champ {field} est invalide",alpha:"Le champ {field} ne peut contenir que des lettres",alpha_num:"Le champ {field} ne peut contenir que des caractères alpha-numériques",alpha_dash:"Le champ {field} ne peut contenir que des caractères alpha-numériques, tirets ou soulignés",alpha_spaces:"Le champ {field} ne peut contenir que des lettres ou des espaces",between:"Le champ {field} doit être compris entre 0:{min} et 1:{max}",confirmed:"Le champ {field} ne correspond pas",digits:"Le champ {field} doit être un nombre entier de 0:{length} chiffres",dimensions:"Le champ {field} doit avoir une taille de 0:{width} pixels par 1:{height} pixels",email:"Veuillez saisir une adresse e-mail valide. Par exemple : [email protected]",not_one_of:"Le champ {field} doit être une valeur valide",ext:"Le champ {field} doit être un fichier valide",image:"Le champ {field} doit être une image",integer:"Le champ {field} doit être un nombre entier",length:"Le champ {field} doit contenir 0:{length} caractères",max_value:"Le champ {field} doit avoir une valeur de 0:{max} ou moins",max:"Le champ {field} ne peut pas contenir plus de 0:{length} caractères",mimes:"Le champ {field} doit avoir un type MIME valide",min_value:"Le champ {field} doit avoir une valeur de 0:{min} ou plus",min:"Le champ {field} doit contenir au minimum 0:{length} caractères",numeric:"Le champ {field} ne peut contenir que des chiffres",one_of:"Le champ {field} doit être une valeur valide",regex:"Le champ {field} est invalide",required:"Le champ {field} est obligatoire",required_if:"Le champ {field} est obligatoire lorsque {target} possède cette valeur",size:"Le champ {field} doit avoir un poids compris entre {minimum} et {maximum}",url:"Le champ {field} n'est pas une URL valide",hcaptcha:"Veuillez compléter le catpcha",float:"Le champ {field} doit être un nombre à virgule (séparé par un point . )",telephone:"Le champ {field} doit être renseigné dans un format valide. Exemple : 01 23 45 67 89 ou +33 1 23 45 67 89"},lme={code:ome,messages:sme},ume="en",cme={_default:"The {field} is not valid",alpha:"The {field} field may only contain alphabetic characters",alpha_num:"The {field} field may only contain alpha-numeric characters",alpha_dash:"The {field} field may contain alpha-numeric characters as well as dashes and underscores",alpha_spaces:"The {field} field may only contain alphabetic characters as well as spaces",between:"The {field} field must be between 0:{min} and 1:{max}",confirmed:"The {field} field confirmation does not match",digits:"The {field} field must be numeric and exactly contain 0:{length} digits",dimensions:"The {field} field must be 0:{width} pixels by 1:{height} pixels",email:"The {field} field must be a valid email",not_one_of:"The {field} field is not a valid value",ext:"The {field} field is not a valid file",image:"The {field} field must be an image",integer:"The {field} field must be an integer",length:"The {field} field must be 0:{length} long",max_value:"The {field} field must be 0:{max} or less",max:"The {field} field may not be greater than 0:{length} characters",mimes:"The {field} field must have a valid file type",min_value:"The {field} field must be 0:{min} or more",min:"The {field} field must be at least 0:{length} characters",numeric:"The {field} field may only contain numeric characters",one_of:"The {field} field is not a valid value",regex:"The {field} field format is invalid",required_if:"The {field} field is required",required:"The {field} field is required",size:"The {field} field size must be less than 0:{size}KB",url:"The {field} field is not a valid URL",hcaptcha:"Please complete the captcha",float:"The {field} field must be a floating point number (separated by a dot .)",telephone:"The {field} field must be filled in a valid format. Example: 01 23 45 67 89 or +33 1 23 45 67 89"},dme={code:ume,messages:cme},fme="de",hme={_default:"{field} ist ungültig",alpha:"{field} darf nur alphabetische Zeichen enthalten",alpha_dash:"{field} darf alphanumerische Zeichen sowie Striche und Unterstriche enthalten",alpha_num:"{field} darf nur alphanumerische Zeichen enthalten",alpha_spaces:"{field} darf nur alphanumerische Zeichen und Leerzeichen enthalten",between:"{field} muss zwischen 0:{min} und 1:{max} liegen",confirmed:"Die Bestätigung von {field} stimmt nicht überein",digits:"{field} muss numerisch sein und exakt 0:{length} Ziffern enthalten",dimensions:"{field} muss 0:{width} x 1:{height} Bildpunkte groß sein",email:"{field} muss eine gültige E-Mail-Adresse sein",not_one_of:"{field} muss ein gültiger Wert sein",ext:"{field} muss eine gültige Datei sein",image:"{field} muss eine Grafik sein",one_of:"{field} muss ein gültiger Wert sein",integer:"{field} muss eine ganze Zahl sein",length:"Die Länge von {field} muss 0:{length} sein",max:"{field} darf nicht länger als 0:{length} Zeichen sein",max_value:"{field} darf maximal 0:{max} sein",mimes:"{field} muss einen gültigen Dateityp haben",min:"{field} muss mindestens 0:{length} Zeichen lang sein",min_value:"{field} muss mindestens 0:{min} sein",numeric:"{field} darf nur numerische Zeichen enthalten",regex:"Das Format von {field} ist ungültig",required:"{field} ist ein Pflichtfeld",required_if:"{field} ist ein Pflichtfeld",size:"{field} muss kleiner als 0:{size}KB sein",url:"{field} ist keine gültige URL"},pme={code:fme,messages:hme},mme="es",gme={alpha:"El campo {field} solo debe contener letras",alpha_dash:"El campo {field} solo debe contener letras, números y guiones",alpha_num:"El campo {field} solo debe contener letras y números",alpha_spaces:"El campo {field} solo debe contener letras y espacios",between:"El campo {field} debe estar entre 0:{min} y 1:{max}",confirmed:"El campo {field} no coincide",digits:"El campo {field} debe ser numérico y contener exactamente 0:{length} dígitos",dimensions:"El campo {field} debe ser de 0:{width} píxeles por 1:{height} píxeles",email:"El campo {field} debe ser un correo electrónico válido",not_one_of:"El campo {field} debe ser un valor válido",ext:"El campo {field} debe ser un archivo válido",image:"El campo {field} debe ser una imagen",one_of:"El campo {field} debe ser un valor válido",integer:"El campo {field} debe ser un entero",length:"El largo del campo {field} debe ser 0:{length}",max:"El campo {field} no debe ser mayor a 0:{length} caracteres",max_value:"El campo {field} debe de ser 0:{max} o menor",mimes:"El campo {field} debe ser un tipo de archivo válido",min:"El campo {field} debe tener al menos 0:{length} caracteres",min_value:"El campo {field} debe ser 0:{min} o superior",numeric:"El campo {field} debe contener solo caracteres numéricos",regex:"El formato del campo {field} no es válido",required:"El campo {field} es obligatorio",required_if:"El campo {field} es obligatorio",size:"El campo {field} debe ser menor a 0:{size}KB"},yme={code:mme,messages:gme},vme=e=>{Lpe({generateMessage:cpe({fr:lme,en:dme,de:pme,es:yme})});const t=e.i18n?.filter(n=>n.current)[0]||e.i18n?.filter(n=>n.active)[0];dpe(t?.twoLetterIsoCode??"fr")},A4=(e,t)=>{const n=(s,o,f,m)=>
10{Object.keys(s).forEach(y=>{fu({[o]:[{id:y,[f]:y,[m]:s[y]}]})})};t=In(t);const r=t?.title||t?.meta?.title,i=t?.teaser||t?.description||t?.meta?.subtitle||t?.meta?.description,a=t?.pictureShow?.[0]?.properties?.publicUrl||t?.pictureBannerEditorial?.[0]?.publicUrl;n({description:i,"og:type":SA(t.type)?"website":"article","og:site_name":e?.siteBuilderInfos?.title||e?.title,"og:title":r,"og:description":i,"og:image":a,"og:locale":t.i18n?.filter(s=>s.active)?.[0]?.locale,"twitter:title":r,"twitter:description":i},"meta","property","content"),n({canonical:rT().origin},"link","rel","href")},_me=sa(e=>{const{pageData:t,initialData:n}=hu(),r=vr();r.initialData=n.value,r.pageData=t.value,e.hook("t3:initialData",i=>{[302,307].includes(+i?.statusCode)||ape().setFromStore()}),e.hook("t3:page",i=>{r.pageData=i,vme(r.pageData),r.pageData?.appearance?.backendLayout!=="detail"&&A4(n.value,r.pageData)}),e.hook("t3:redirect",i=>{typeof t.value>"u"&&sA({path:i.redirectUrl})})}),bme=sa({name:"i18n:plugin:ssg-detect",dependsOn:["i18n:plugin","i18n:plugin:route-locale-detect"],enforce:"post",setup(e){}}),xme=[_ne,xne,kne,Lie,Oie,Rie,Bie,Fie,dae,fae,hae,vae,_ae,jae,Yle,Zle,Kle,Qle,kue,Qhe,tpe,npe,rpe,_me,bme];function wme(e,t){const n=t/e*100;return 2/Math.PI*100*Math.atan(n/50)}function Sme(e={}){const{duration:t=2e3,throttle:n=200,hideDelay:r=500,resetDelay:i=400}=e,a=e.estimatedProgress||wme,s=En(),o=Bn(0),f=Bn(!1),m=Bn(!1);let y=!1,b,T,x,$;const A=(ee={})=>{U(),m.value=!1,N(0,ee)};function N(ee=0,Y={}){if(s.isHydrating)return;if(ee>=100)return I({force:Y.force});B(),o.value=ee<0?0:ee;const z=Y.force?0:n;z?T=setTimeout(()=>{f.value=!0,q()},z):(f.value=!0,q())}function O(){x=setTimeout(()=>{f.value=!1,$=setTimeout(()=>{o.value=0},i)},r)}function I(ee={}){o.value=100,y=!0,B(),U(),ee.error&&(m.value=!0),ee.force?(o.value=0,f.value=!1):O()}function U(){clearTimeout(x),clearTimeout($)}function B(){clearTimeout(T),cancelAnimationFrame(b)}function q(){y=!1;let ee;function Y(z){if(y)return;ee??=z;const H=z-ee;o.value=Math.max(0,Math.min(100,a(t,H))),b=requestAnimationFrame(Y)}b=requestAnimationFrame(Y)}let Q=()=>{};{const ee=s.hook("page:loading:start",()=>{A()}),Y=s.hook("page:loading:end",()=>{I()}),z=s.hook("vue:error",()=>I());Q=()=>{z(),ee(),Y(),B()}}return{_cleanup:Q,progress:xe(()=>o.value),isLoading:xe(()=>f.value),error:xe(()=>m.value),start:A,set:N,finish:I,clear:B}}function Cme(e={}){const t=En(),n=t._loadingIndicator||=Sme(e);return _c()&&(t._loadingIndicatorDeps||=0,t._loadingIndicatorDeps++,yp(()=>{t._loadingIndicatorDeps--,t._loadingIndicatorDeps===0&&(n._cleanup(),delete t._loadingIndicator)})),n}const Tme=Fe({name:"NuxtLoadingIndicator",props:{throttle:{type:Number,default:200},duration:{type:Number,default:2e3},hideDelay:{type:Number,default:500},resetDelay:{type:Number,default:400},height:{type:Number,default:3},color:{type:[String,Boolean],default:"repeating-linear-gradient(to right,#00dc82 0%,#34cdfe 50%,#0047e1 100%)"},errorColor:{type:String,default:"repeating-linear-gradient(to right,#f87171 0%,#ef4444 100%)"},estimatedProgress:{type:Function,required:!1}},setup(e,{slots:t,expose:n}){const{progress:r,isLoading:i,error:a,start:s,finish:o,clear:f}=Cme({duration:e.duration,throttle:e.throttle,hideDelay:e.hideDelay,resetDelay:e.resetDelay,estimatedProgress:e.estimatedProgress});return n({progress:r,isLoading:i,error:a,start:s,finish:o,clear:f}),()=>Yn("div",{class:"nuxt-loading-indicator",style:{position:"fixed",top:0,right:0,left:0,pointerEvents:"none",width:"auto",height:`${e.height}px`,opacity:i.value?1:0,background:a.value?e.errorColor:e.color||void 0,backgroundSize:`${r.value>0?100/r.value*100:0}% auto`,transform:`scaleX(${r.value}%)`,transformOrigin:"left",transition:"transform 0.1s, height 0.4s, opacity 0.4s",zIndex:999999}},t)}}),qj=(e="RouteProvider")=>Fe({name:e,props:{route:{type:Object,required:!0},vnode:Object,vnodeRef:Object,renderKey:String,trackRootNodes:Boolean},setup(t){const n=t.renderKey,r=t.route,i={};for(const a in t.route)Object.defineProperty(i,a,{get:()=>n===t.renderKey?t.route[a]:r[a],enumerable:!0});return co(Uy,Sf(i)),()=>t.vnode?Yn(t.vnode,{ref:t.vnodeRef}):t.vnode}}),kme=qj(),fO=new WeakMap,Eme=Fe({name:"NuxtPage",inheritAttrs:!1,props:{name:{type:String},transition:{type:[Boolean,Object],default:void 0},keepalive:{type:[Boolean,Object],default:void 0},route:{type:Object},pageKey:{type:[Function,String],default:null}},setup(e,{attrs:t,slots:n,expose:r}){const i=En(),a=De(),s=Ai(Uy,null);let o;r({pageRef:a});const f=Ai(rV,null);let m;const y=i.deferHydration();let b=!1,T=0;if(i.isHydrating){const $=i.hooks.hookOnce("app:error",y);ja().beforeEach($)}e.pageKey&&nn(()=>e.pageKey,($,A)=>{$!==A&&i.callHook("page:loading:start")});let x=!1;{const $=ja().beforeResolve(()=>{x=!1});xu(()=>{$(),y()})}return()=>Yn(OV,{name:e.name,route:e.route,...t},{default:$=>{const A=Pme(s,$.route,$.Component),N=s&&s.matched.length===$.route.matched.length;if(!$.Component){if(m&&!N)return m;y();return}if(m&&f&&!f.isCurrent($.route))return m;if(A&&s&&(!f||f?.isCurrent(s)))return N||m?m:null;const O=MP($,e.pageKey),I=$me(s,$.route,$.Component);!i.isHydrating&&o===O&&!I&&ur(()=>{x||(x=!0,i.callHook("page:loading:end"))}),b&&o!==O&&T++,o=O;
10const U=!!(e.transition??$.route.meta.pageTransition??Z9),B=U&&FV([e.transition,$.route.meta.pageTransition,Z9,{onAfterLeave(){i["~transitionFinish"]?.(),delete i["~transitionFinish"],delete i["~transitionPromise"],i.callHook("page:transition:finish",$.Component)}}]),q=e.keepalive??$.route.meta.keepalive??Oee;return m=BV(U&&B,Dre(q,Yn(GM,{key:T,suspensible:!0,onPending:()=>{b=!0,U&&!i["~transitionPromise"]&&(i["~transitionPromise"]=new Promise(Q=>{i["~transitionFinish"]=Q})),i.callHook("page:start",$.Component)},onResolve:async()=>{b=!1;try{await ur(),i._route.sync?.(),await i.callHook("page:finish",$.Component),!x&&!I&&(x=!0,await i.callHook("page:loading:end"))}finally{y()}}},{default:()=>{const Q={key:O||void 0,vnode:n.default?Mme(n.default,$):$.Component,route:$.route,renderKey:O||void 0,trackRootNodes:U,vnodeRef:a};if(!q)return Yn(kme,Q);const ee=$.Component.type,Y=ee;let z=fO.get(Y);return z||(z=qj(ee.name||ee.__name),fO.set(Y,z)),Yn(z,Q)}}))).default(),m}})}});function Pme(e,t,n){if(!e)return!1;const r=t.matched.findIndex(i=>i.components?.default===n?.type);return!r||r===-1?!1:t.matched.slice(0,r).some((i,a)=>i.components?.default!==e.matched[a]?.components?.default)||n&&MP({route:t,Component:n})!==MP({route:e,Component:n})}function $me(e,t,n){return e?t.matched.findIndex(i=>i.components?.default===n?.type)<t.matched.length-1:!1}function Mme(e,t){const n=e(t);return n.length===1?Yn(n[0]):Yn(Ct,void 0,n)}function Bf(e,t){return _c()?(yp(e,t),!0):!1}function i$(){const e=new Set,t=a=>{e.delete(a)};return{on:a=>{e.add(a);const s=()=>t(a);return Bf(s),{off:s}},off:t,trigger:(...a)=>Promise.all(Array.from(e).map(s=>s(...a))),clear:()=>{e.clear()}}}function Ame(e){let t=!1,n;const r=i1(!0);return((...i)=>(t||(n=r.run(()=>e(...i)),t=!0),n))}const A6=new WeakMap,Ime=(...e)=>{var t;const n=e[0],r=(t=Ci())===null||t===void 0?void 0:t.proxy,i=r??_c();if(i==null&&!a1())throw new Error("injectLocal must be called in setup");return i&&A6.has(i)&&n in A6.get(i)?A6.get(i)[n]:Ai(...e)},Rl=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Dme=e=>typeof e<"u",jj=e=>e!=null,Lme=Object.prototype.toString,Uj=e=>Lme.call(e)==="[object Object]",al=()=>{},hO=Ome();function Ome(){var e,t,n;return Rl&&!!(!((e=window)===null||e===void 0||(e=e.navigator)===null||e===void 0)&&e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window)===null||t===void 0||(t=t.navigator)===null||t===void 0?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test((n=window)===null||n===void 0?void 0:n.navigator.userAgent))}function $A(...e){if(e.length!==1)return oc(...e);const t=e[0];return typeof t=="function"?Tx(R_(()=>({get:t,set:al}))):De(t)}function _T(e,t){function n(...r){return new Promise((i,a)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(i).catch(a)})}return"cancel"in e&&Object.assign(n,{cancel:e.cancel,flush:e.flush,isPending:e.isPending}),n}const MA=e=>e();function Hj(e,t={}){let n,r,i=al,a=al;const s=Bn(!1),o=y=>{clearTimeout(y),i(),i=al};let f;return Object.assign(y=>{const b=qt(e),T=qt(t.maxWait);return n&&o(n),b<=0||T!==void 0&&T<=0?(r&&(o(r),r=void 0),s.value=!1,Promise.resolve(y())):(s.value=!0,new Promise((x,$)=>{i=t.rejectOnCancel?$:x,a=x,f=y,T&&!r&&(r=setTimeout(()=>{n&&o(n),r=void 0,s.value=!1,x(f())},T)),n=setTimeout(()=>{r&&o(r),r=void 0,s.value=!1,x(y())},b)}))},{cancel:()=>{n&&(o(n),n=void 0),r&&(o(r),r=void 0),s.value=!1,a=al},flush:()=>
10{if(s.value){n&&(clearTimeout(n),n=void 0),r&&(clearTimeout(r),r=void 0),s.value=!1;const y=a;i=al,a=al,y(f())}},isPending:ou(s)})}function Rme(...e){let t=0,n,r=!0,i=al,a,s,o,f,m;!zn(e[0])&&typeof e[0]=="object"?{delay:s,trailing:o=!0,leading:f=!0,rejectOnCancel:m=!1}=e[0]:[s,o=!0,f=!0,m=!1]=e;const y=()=>{n&&(clearTimeout(n),n=void 0,i(),i=al)};return T=>{const x=qt(s),$=Date.now()-t,A=()=>a=T();return y(),x<=0?(t=Date.now(),A()):($>x?(t=Date.now(),(f||!r)&&A()):o&&(a=new Promise((N,O)=>{i=m?O:N,n=setTimeout(()=>{t=Date.now(),r=!0,N(A()),y()},Math.max(0,x-$))})),!f&&!n&&(n=setTimeout(()=>r=!0,x)),r=!1,a)}}function Bme(e=MA,t={}){const{initialState:n="active"}=t,r=$A(n==="active");function i(){r.value=!1}function a(){r.value=!0}return{isActive:ou(r),pause:i,resume:a,eventFilter:(...o)=>{r.value&&e(...o)}}}function Fme(e){let t;function n(){return t||(t=e()),t}return n.reset=async()=>{const r=t;t=void 0,r&&await r},n}function zme(e,t){var n;if(typeof e=="number")return e+t;const r=((n=e.match(/^-?\d+\.?\d*/))===null||n===void 0?void 0:n[0])||"",i=e.slice(r.length),a=Number.parseFloat(r)+t;return Number.isNaN(a)?e:a+i}function sx(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function lx(e){return Array.isArray(e)?e:[e]}function Wj(e){return Ci()}function Nme(e){if(!Rl)return e;let t=0,n,r;const i=()=>{t-=1,r&&t<=0&&(r.stop(),n=void 0,r=void 0)};return((...a)=>(t+=1,r||(r=i1(!0),n=r.run(()=>e(...a))),Bf(i),n))}function Vme(e){return aa(zn(e)?new Proxy({},{get(t,n,r){return v(Reflect.get(e.value,n,r))},set(t,n,r){return zn(e.value[n])&&!zn(r)?e.value[n].value=r:e.value[n]=r,!0},deleteProperty(t,n){return Reflect.deleteProperty(e.value,n)},has(t,n){return Reflect.has(e.value,n)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}}):e)}function qme(e){return Vme(xe(e))}function jme(e,...t){const n=t.flat(),r=n[0];return qme(()=>Object.fromEntries(typeof r=="function"?Object.entries(bi(e)).filter(([i,a])=>!r(qt(a),i)):Object.entries(bi(e)).filter(i=>!n.includes(i[0]))))}function Gj(e,t=1e4){return R_((n,r)=>{let i=qt(e),a;const s=()=>setTimeout(()=>{i=qt(e),r()},qt(t));return Bf(()=>{clearTimeout(a)}),{get(){return n(),i},set(o){i=o,r(),clearTimeout(a),a=s()}}})}function Ume(e,t=200,n={}){return _T(Hj(t,n),e)}function Hme(e,t=200,n=!1,r=!0,i=!1){return _T(Rme(t,n,r,i),e)}function Yj(e,t,n={}){const{eventFilter:r=MA,...i}=n;return nn(e,_T(r,t),i)}function I4(e,t,n={}){const{eventFilter:r,initialState:i="active",...a}=n,{eventFilter:s,pause:o,resume:f,isActive:m}=Bme(r,{initialState:i});return{stop:Yj(e,t,{...a,eventFilter:s}),pause:o,resume:f,isActive:m}}function Wme(e,t,...[n]){const{flush:r="sync",deep:i=!1,immediate:a=!0,direction:s="both",transform:o={}}=n||{},f=[],m="ltr"in o&&o.ltr||(T=>T),y="rtl"in o&&o.rtl||(T=>T);return(s==="both"||s==="ltr")&&f.push(I4(e,T=>{f.forEach(x=>x.pause()),t.value=m(T),f.forEach(x=>x.resume())},{flush:r,deep:i,immediate:a})),(s==="both"||s==="rtl")&&f.push(I4(t,T=>{f.forEach(x=>x.pause()),e.value=y(T),f.forEach(x=>x.resume())},{flush:r,deep:i,immediate:a})),()=>{f.forEach(T=>T.stop())}}function Gme(e,t={}){if(!zn(e))return bi(e);const n=Array.isArray(e.value)?Array.from({length:e.value.length}):{};for(const r in e.value)n[r]=R_(()=>({get(){return e.value[r]},set(i){var a;if(!((a=qt(t.replaceRef))!==null&&a!==void 0)||a)if(Array.isArray(e.value)){const s=[...e.value];s[r]=i,e.value=s}else{const s={...e.value,[r]:i};Object.setPrototypeOf(s,Object.getPrototypeOf(e.value)),e.value=s}else e.value[r]=i}}));return n}function Yme(e,t){Wj()&&xu(e,t)}function H_(e,t=!0,n){Wj()?Hn(e,n):t?e():ur(e)}function Zme(e){return Array.from(new Set(e))}function bT(e,t){return xe(()=>{const n=qt(e).map(r=>qt(r));return Zme(n)})}function xT(e,t,n={}){const{immediate:r=!0,immediateCallback:i=!1}=n,a=Bn(!1);let s;function o(){s&&(clearTimeout(s),s=void 0)}function f(){a.value=!1,o()}function m(...y){i&&e(),o(),a.value=!0,s=setTimeout(()=>{a.value=!1,s=void 0,e(...y)},qt(t))}return r&&(a.value=!0,Rl&&m()),Bf(f),{isPending:ou(a),start:m,stop:f}}function GRe(e=1e3,t={}){const{controls:n=!1,callback:r}=t,i=xT(r??al,e,t),a=xe(()=>!i.isPending.value);return n?{ready:a,...i}:a}function Kme(e,t,n={}){const{debounce:r=0,maxWait:i=void 0,...a}=n;return Yj(e,t,{...a,eventFilter:Hj(r,{maxWait:i})})}function pO(e,t,n={}){const{eventFilter:r=MA,...i}=n,a=_T(r,t);let s,o,f;if(i.flush==="sync"){let m=!1;o=()=>{},s=y=>{m=!0,y(),m=!1},f=nn(e,(...y)=>{m||a(...y)},i)}else{const m=[];let y=0,b=0;o=()=>{y=b},m.push(nn(e,()=>{b++},{...i,flush:"sync"})),s=T=>{const x=b;T(),y+=b-x},m.push(nn(e,(...T)=>{const x=y>0&&y===b;y=0,b=0,!x&&a(...T)},i)),f=()=>{m.forEach(T=>T())}}return{stop:f,ignoreUpdates:s,ignorePrevAsyncUpdates:o}}function Xme(e,t,n){return nn(e,t,{...n,immediate:!0})}function Zj(e,t,n){const r=nn(e,(i,a,s)=>{i&&(n?.once&&ur(()=>r()),t(i,a,s))},{...n,once:!1});return r}const Co=Rl?window:void 0,Jme=Rl?window.document:void 0,Kj=Rl?window.navigator:void 0;function To(e){var t;const n=qt(e);return(t=n?.$el)!==null&&t!==void 0?t:n}function mr(...e){const t=(r,i,a,s)=>(r.addEventListener(i,a,s),()=>r.removeEventListener(i,a,s)),n=xe(()=>{const r=lx(qt(e[0])).filter(i=>i!=null);return r.every(i=>
10typeof i!="string")?r:void 0});return Xme(()=>{var r,i;return[(r=(i=n.value)===null||i===void 0?void 0:i.map(a=>To(a)))!==null&&r!==void 0?r:[Co].filter(a=>a!=null),lx(qt(n.value?e[1]:e[0])),lx(v(n.value?e[2]:e[1])),qt(n.value?e[3]:e[2])]},([r,i,a,s],o,f)=>{if(!r?.length||!i?.length||!a?.length)return;const m=Uj(s)?{...s}:s,y=r.flatMap(b=>i.flatMap(T=>a.map(x=>t(b,T,x,m))));f(()=>{y.forEach(b=>b())})},{flush:"post"})}function wT(){const e=Bn(!1),t=Ci();return t&&Hn(()=>{e.value=!0},t),e}function W_(e){const t=wT();return xe(()=>(t.value,!!e()))}function Xj(e,t,n={}){const{window:r=Co,...i}=n;let a;const s=W_(()=>r&&"MutationObserver"in r),o=()=>{a&&(a.disconnect(),a=void 0)},f=nn(xe(()=>{const b=lx(qt(e)).map(To).filter(jj);return new Set(b)}),b=>{o(),s.value&&b.size&&(a=new MutationObserver(t),b.forEach(T=>a.observe(T,i)))},{immediate:!0,flush:"post"}),m=()=>a?.takeRecords(),y=()=>{f(),o()};return Bf(y),{isSupported:s,stop:y,takeRecords:m}}function Qme(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function ege(...e){let t,n,r={};e.length===3?(t=e[0],n=e[1],r=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],r=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:i=Co,eventName:a="keydown",passive:s=!1,dedupe:o=!1}=r,f=Qme(t);return mr(i,a,y=>{y.repeat&&qt(o)||f(y)&&n(y)},s)}function YRe(e,t={}){const{immediate:n=!0,fpsLimit:r=null,window:i=Co,once:a=!1}=t,s=Bn(!1),o=xe(()=>{const x=qt(r);return x?1e3/x:null});let f=0,m=null;function y(x){if(!s.value||!i)return;f||(f=x);const $=x-f;if(o.value&&$<o.value){m=i.requestAnimationFrame(y);return}if(f=x,e({delta:$,timestamp:x}),a){s.value=!1,m=null;return}m=i.requestAnimationFrame(y)}function b(){!s.value&&i&&(s.value=!0,f=0,m=i.requestAnimationFrame(y))}function T(){s.value=!1,m!=null&&i&&(i.cancelAnimationFrame(m),m=null)}return n&&b(),Bf(T),{isActive:ou(s),pause:T,resume:b}}const tge=Symbol("vueuse-ssr-width");function Jj(){const e=a1()?Ime(tge,null):null;return typeof e=="number"?e:void 0}function Km(e,t={}){const{window:n=Co,ssrWidth:r=Jj()}=t,i=W_(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function"),a=Bn(typeof r=="number"),s=Bn(),o=Bn(!1),f=m=>{o.value=m.matches};return ko(()=>{if(a.value){a.value=!i.value;const m=qt(e).split(",");o.value=m.some(y=>{const b=y.includes("not all"),T=y.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),x=y.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let $=!!(T||x);return T&&$&&($=r>=sx(T[1])),x&&$&&($=r<=sx(x[1])),b?!$:$});return}i.value&&(s.value=n.matchMedia(qt(e)),o.value=s.value.matches)}),mr(s,"change",f,{passive:!0}),xe(()=>o.value)}function ZRe(e,t={}){function n(x,$){let A=qt(e[qt(x)]);return $!=null&&(A=zme(A,$)),typeof A=="number"&&(A=`${A}px`),A}const{window:r=Co,strategy:i="min-width",ssrWidth:a=Jj()}=t,s=typeof a=="number",o=s?Bn(!1):{value:!0};s&&H_(()=>o.value=!!r);function f(x,$){return!o.value&&s?x==="min"?a>=sx($):a<=sx($):r?r.matchMedia(`(${x}-width: ${$})`).matches:!1}const m=x=>Km(()=>`(min-width: ${n(x)})`,t),y=x=>Km(()=>`(max-width: ${n(x)})`,t),b=Object.keys(e).reduce((x,$)=>(Object.defineProperty(x,$,{get:()=>i==="min-width"?m($):y($),enumerable:!0,configurable:!0}),x),{});function T(){const x=Object.keys(e).map($=>[$,b[$],sx(n($))]).sort(($,A)=>$[2]-A[2]);return xe(()=>x.filter(([,$])=>$.value).map(([$])=>$))}return Object.assign(b,{greaterOrEqual:m,smallerOrEqual:y,greater(x){return Km(()=>`(min-width: ${n(x,.1)})`,t)},smaller(x){return Km(()=>`(max-width: ${n(x,-.1)})`,t)},between(x,$){return Km(()=>`(min-width: ${n(x)}) and (max-width: ${n($,-.1)})`,t)},isGreater(x){return f("min",n(x,.1))},isGreaterOrEqual(x){return f("min",n(x))},isSmaller(x){return f("max",n(x,-.1))},isSmallerOrEqual(x){return f("max",n(x))},isInBetween(x,$){return f("min",n(x))&&f("max",n($,-.1))},current:T,active(){const x=T();return xe(()=>x.value.length===0?"":x.value.at(i==="min-width"?-1:0))}})}function mO(e,t={}){const{controls:n=!1,navigator:r=Kj}=t,i=W_(()=>r&&"permissions"in r),a=Bn(),s=typeof e=="string"?{name:e}:e,o=Bn(),f=()=>{var y,b;o.value=(y=(b=a.value)===null||b===void 0?void 0:b.state)!==null&&y!==void 0?y:"prompt"};mr(a,"change",f,{passive:!0});const m=Fme(async()=>
10{if(i.value){if(!a.value)try{a.value=await r.permissions.query(s)}catch{a.value=void 0}finally{f()}if(n)return In(a.value)}});return m(),n?{state:o,isSupported:i,query:m}:o}function nge(e={}){const{navigator:t=Kj,read:n=!1,source:r,copiedDuring:i=1500,legacy:a=!1}=e,s=W_(()=>t&&"clipboard"in t),o=mO("clipboard-read"),f=mO("clipboard-write"),m=xe(()=>s.value||a),y=Bn(""),b=Bn(!1),T=Bn(!1),x=xT(()=>b.value=!1,i,{immediate:!1});let $=0;async function A(){let q=!(s.value&&B(o.value));if(!q)try{y.value=await t.clipboard.readText()}catch{q=!0}q&&(y.value=U())}m.value&&n&&mr(["copy","cut"],A,{passive:!0});async function N(q){const Q=q??qt(r);if(m.value&&Q!=null){T.value=!0;let ee=!(s.value&&B(f.value));if(!ee)try{const Y=O(Q);await t.clipboard.write([Y])}catch{ee=!0}if(ee)if(typeof Q=="string")y.value=Q,I(Q);else{const Y=++$,z=await Q();z!=null&&Y===$&&(y.value=z,I(z))}b.value=!0,x.start(),T.value=!1}}function O(q){return typeof q=="string"?(y.value=q,new ClipboardItem({"text/plain":q})):new ClipboardItem({"text/plain":q().then((Q="")=>(y.value=Q,new Blob([Q],{type:"text/plain"})))})}function I(q){const Q=document.createElement("textarea");Q.value=q,Q.style.position="absolute",Q.style.opacity="0",Q.setAttribute("readonly",""),document.body.appendChild(Q),Q.select(),document.execCommand("copy"),Q.remove()}function U(){var q,Q,ee;return(q=(Q=document)===null||Q===void 0||(ee=Q.getSelection)===null||ee===void 0||(ee=ee.call(Q))===null||ee===void 0?void 0:ee.toString())!==null&&q!==void 0?q:""}function B(q){return q==="granted"||q==="prompt"}return{copyPending:ou(T),isSupported:m,text:ou(y),copied:ou(b),copy:N}}function rge(e){return JSON.parse(JSON.stringify(e))}const W5=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},G5="__vueuse_ssr_handlers__",ige=age();function age(){return G5 in W5||(W5[G5]=W5[G5]||{}),W5[G5]}function Qj(e,t){return ige[e]||t}function oge(e){return Km("(prefers-color-scheme: dark)",e)}function sge(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const lge={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},gO="vueuse-storage";function V2(e,t,n,r={}){var i;const{flush:a="pre",deep:s=!0,listenToStorageChanges:o=!0,writeDefaults:f=!0,mergeDefaults:m=!1,shallow:y,window:b=Co,eventFilter:T,onError:x=pe=>{},initOnMounted:$}=r,A=(y?Bn:De)(typeof t=="function"?t():t),N=xe(()=>qt(e));if(!n)try{n=Qj("getDefaultStorage",()=>Co?.localStorage)()}catch(pe){x(pe)}if(!n)return A;const O=qt(t),I=sge(O),U=(i=r.serializer)!==null&&i!==void 0?i:lge[I],{pause:B,resume:q}=I4(A,pe=>H(pe),{flush:a,deep:s,eventFilter:T});nn(N,()=>ne(),{flush:a});let Q=!1;const ee=pe=>{$&&!Q||ne(pe)},Y=pe=>{$&&!Q||le(pe)};b&&o&&(n instanceof Storage?mr(b,"storage",ee,{passive:!0}):mr(b,gO,Y)),$?H_(()=>{Q=!0,ne()}):ne();function z(pe,ae){if(b){const se={key:N.value,oldValue:pe,newValue:ae,storageArea:n};b.dispatchEvent(n instanceof Storage?new StorageEvent("storage",se):new CustomEvent(gO,{detail:se}))}}function H(pe){try{const ae=n.getItem(N.value);if(pe==null)z(ae,null),n.removeItem(N.value);else{const se=U.write(pe);ae!==se&&(n.setItem(N.value,se),z(ae,se))}}catch(ae){x(ae)}}function K(pe){const ae=pe?pe.newValue:n.getItem(N.value);if(ae==null)return f&&O!=null&&n.setItem(N.value,U.write(O)),O;if(!pe&&m){const se=U.read(ae);return typeof m=="function"?m(se,O):I==="object"&&!Array.isArray(se)?{...O,...se}:se}else return typeof ae!="string"?ae:U.read(ae)}function ne(pe){if(!(pe&&pe.storageArea!==n)){if(pe&&pe.key==null){A.value=O;return}
10if(!(pe&&pe.key!==N.value)){B();try{const ae=U.write(A.value);(pe===void 0||pe?.newValue!==ae)&&(A.value=K(pe))}catch(ae){x(ae)}finally{pe?ur(q):q()}}}}function le(pe){ne(pe.detail)}return A}const uge="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function cge(e={}){const{selector:t="html",attribute:n="class",initialValue:r="auto",window:i=Co,storage:a,storageKey:s="vueuse-color-scheme",listenToStorageChanges:o=!0,storageRef:f,emitAuto:m,disableTransition:y=!0}=e,b={auto:"",light:"light",dark:"dark",...e.modes||{}},T=oge({window:i}),x=xe(()=>T.value?"dark":"light"),$=f||(s==null?$A(r):V2(s,r,a,{window:i,listenToStorageChanges:o})),A=xe(()=>$.value==="auto"?x.value:$.value),N=Qj("updateHTMLAttrs",(B,q,Q)=>{const ee=typeof B=="string"?i?.document.querySelector(B):To(B);if(!ee)return;const Y=new Set,z=new Set;let H=null;if(q==="class"){const ne=Q.split(/\s/g);Object.values(b).flatMap(le=>(le||"").split(/\s/g)).filter(Boolean).forEach(le=>{ne.includes(le)?Y.add(le):z.add(le)})}else H={key:q,value:Q};if(Y.size===0&&z.size===0&&H===null)return;let K;y&&(K=i.document.createElement("style"),K.appendChild(document.createTextNode(uge)),i.document.head.appendChild(K));for(const ne of Y)ee.classList.add(ne);for(const ne of z)ee.classList.remove(ne);H&&ee.setAttribute(H.key,H.value),y&&(i.getComputedStyle(K).opacity,document.head.removeChild(K))});function O(B){var q;N(t,n,(q=b[B])!==null&&q!==void 0?q:B)}function I(B){e.onChanged?e.onChanged(B,O):O(B)}nn(A,I,{flush:"post",immediate:!0}),H_(()=>I(A.value));const U=xe({get(){return m?$.value:A.value},set(B){$.value=B}});return Object.assign(U,{store:$,system:x,state:A})}function dge(e={}){const{valueDark:t="dark",valueLight:n=""}=e,r=cge({...e,onChanged:(a,s)=>{var o;e.onChanged?(o=e.onChanged)===null||o===void 0||o.call(e,a==="dark",s,a):s(a)},modes:{dark:t,light:n}}),i=xe(()=>r.system.value);return xe({get(){return r.value==="dark"},set(a){const s=a?"dark":"light";i.value===s?r.value="auto":r.value=s}})}const Y5={speed:2,margin:30,direction:"both"};function fge(e){e.scrollLeft>e.scrollWidth-e.clientWidth&&(e.scrollLeft=Math.max(0,e.scrollWidth-e.clientWidth)),e.scrollTop>e.scrollHeight-e.clientHeight&&(e.scrollTop=Math.max(0,e.scrollHeight-e.clientHeight))}function KRe(e,t={}){var n,r,i,a;const{pointerTypes:s,preventDefault:o,stopPropagation:f,exact:m,onMove:y,onEnd:b,onStart:T,initialValue:x,axis:$="both",draggingElement:A=Co,containerElement:N,handle:O=e,buttons:I=[0],restrictInView:U,autoScroll:B=!1}=t,q=De((n=qt(x))!==null&&n!==void 0?n:{x:0,y:0}),Q=De(),ee=je=>s?s.includes(je.pointerType):!0,Y=je=>{qt(o)&&je.preventDefault(),qt(f)&&je.stopPropagation()},z=qt(B),H=typeof z=="object"?{speed:(r=qt(z.speed))!==null&&r!==void 0?r:Y5.speed,margin:(i=qt(z.margin))!==null&&i!==void 0?i:Y5.margin,direction:(a=z.direction)!==null&&a!==void 0?a:Y5.direction}:Y5,K=je=>typeof je=="number"?[je,je]:[je.x,je.y],ne=(je,at,Pt)=>{const{clientWidth:Qe,clientHeight:nt,scrollLeft:Ve,scrollTop:ct,scrollWidth:zt,scrollHeight:ut}=je,[At,Dt]=K(H.margin),[Ot,Ee]=K(H.speed);let Ye=0,it=0;(H.direction==="x"||H.direction==="both")&&(Pt.x<At&&Ve>0?Ye=-Ot:Pt.x+at.width>Qe-At&&Ve<zt-Qe&&(Ye=Ot)),(H.direction==="y"||H.direction==="both")&&(Pt.y<Dt&&ct>0?it=-Ee:Pt.y+at.height>nt-Dt&&ct<ut-nt&&(it=Ee)),(Ye||it)&&je.scrollBy({left:Ye,top:it,behavior:"auto"})};let le=null;const pe=()=>{const je=qt(N);je&&!le&&(le=setInterval(()=>{const at=qt(e).getBoundingClientRect(),{x:Pt,y:Qe}=q.value,nt={x:Pt-je.scrollLeft,y:Qe-je.scrollTop};nt.x>=0&&nt.y>=0&&(ne(je,at,nt),nt.x+=je.scrollLeft,nt.y+=je.scrollTop,q.value=nt)},1e3/60))},ae=()=>{le&&(clearInterval(le),le=null)},se=(je,at,Pt,Qe)=>{const[nt,Ve]=typeof Pt=="number"?[Pt,Pt]:[Pt.x,Pt.y],{clientWidth:ct,clientHeight:zt}=at;return je.x<nt||je.x+Qe.width>ct-nt||je.y<Ve||je.y+Qe.height>zt-Ve},ce=()=>{if(qt(t.disabled)||!Q.value)return;const je=qt(N);if(!je)return;const at=qt(e).getBoundingClientRect(),{x:Pt,y:Qe}=q.value,nt={x:Pt-je.scrollLeft,y:Qe-je.scrollTop};se(nt,je,H.margin,at)?pe():ae()};qt(B)&&nn(q,ce);const ye=je=>{var at;if(!qt(I).includes(je.button)||qt(t.disabled)||!ee(je)||qt(m)&&je.target!==qt(e))return;const Pt=qt(N),Qe=Pt==null||(at=Pt.getBoundingClientRect)===null||at===void 0?void 0:at.call(Pt),nt=qt(e).getBoundingClientRect(),Ve={x:je.clientX-(Pt?nt.left-Qe.left+(B?0:Pt.scrollLeft):nt.left),y:je.clientY-(Pt?nt.top-Qe.top+(B?0:Pt.scrollTop):nt.to
10p)};T?.(Ve,je)!==!1&&(Q.value=Ve,Y(je))},$e=je=>{if(qt(t.disabled)||!ee(je)||!Q.value)return;const at=qt(N);at instanceof HTMLElement&&fge(at);const Pt=qt(e).getBoundingClientRect();let{x:Qe,y:nt}=q.value;if(($==="x"||$==="both")&&(Qe=je.clientX-Q.value.x,at&&(Qe=Math.min(Math.max(0,Qe),at.scrollWidth-Pt.width))),($==="y"||$==="both")&&(nt=je.clientY-Q.value.y,at&&(nt=Math.min(Math.max(0,nt),at.scrollHeight-Pt.height))),qt(B)&&at&&(le===null&&ne(at,Pt,{x:Qe,y:nt}),Qe+=at.scrollLeft,nt+=at.scrollTop),at&&(U||B)){if($!=="y"){const Ve=Qe-at.scrollLeft;Ve<0?Qe=at.scrollLeft:Ve>at.clientWidth-Pt.width&&(Qe=at.clientWidth-Pt.width+at.scrollLeft)}if($!=="x"){const Ve=nt-at.scrollTop;Ve<0?nt=at.scrollTop:Ve>at.clientHeight-Pt.height&&(nt=at.clientHeight-Pt.height+at.scrollTop)}}q.value={x:Qe,y:nt},y?.(q.value,je),Y(je)},Be=je=>{qt(t.disabled)||!ee(je)||Q.value&&(Q.value=void 0,B&&ae(),b?.(q.value,je),Y(je))};if(Rl){const je=()=>{var at;return{capture:(at=t.capture)!==null&&at!==void 0?at:!0,passive:!qt(o)}};mr(O,"pointerdown",ye,je),mr(A,"pointermove",$e,je),mr(A,["pointerup","pointercancel"],Be,je)}return{...Gme(q),position:q,isDragging:xe(()=>!!Q.value),style:xe(()=>`
11      left: ${q.value.x}px;
12      top: ${q.value.y}px;
13      ${B?"text-wrap: nowrap;":""}
14    `)}}function AA(e,t,n={}){const{window:r=Co,...i}=n;let a;const s=W_(()=>r&&"ResizeObserver"in r),o=()=>{a&&(a.disconnect(),a=void 0)},f=nn(xe(()=>{const y=qt(e);return Array.isArray(y)?y.map(b=>To(b)):[To(y)]}),y=>{if(o(),s.value&&r){a=new ResizeObserver(t);for(const b of y)b&&a.observe(b,i)}},{immediate:!0,flush:"post"}),m=()=>{o(),f()};return Bf(m),{isSupported:s,stop:m}}function RS(e,t={}){const{reset:n=!0,windowResize:r=!0,windowScroll:i=!0,immediate:a=!0,updateTiming:s="sync"}=t,o=Bn(0),f=Bn(0),m=Bn(0),y=Bn(0),b=Bn(0),T=Bn(0),x=Bn(0),$=Bn(0);function A(){const O=To(e);if(!O){n&&(o.value=0,f.value=0,m.value=0,y.value=0,b.value=0,T.value=0,x.value=0,$.value=0);return}const I=O.getBoundingClientRect();o.value=I.height,f.value=I.bottom,m.value=I.left,y.value=I.right,b.value=I.top,T.value=I.width,x.value=I.x,$.value=I.y}function N(){s==="sync"?A():s==="next-frame"&&requestAnimationFrame(()=>A())}return AA(e,N),nn(()=>To(e),O=>!O&&N()),Xj(e,N,{attributeFilter:["style","class"]}),i&&mr("scroll",N,{capture:!0,passive:!0}),r&&mr("resize",N,{passive:!0}),H_(()=>{a&&N()}),{height:o,bottom:f,left:m,right:y,top:b,width:T,x,y:$,update:N}}function hge(e,t,n={}){const{root:r,rootMargin:i,threshold:a=0,window:s=Co,immediate:o=!0}=n,f=W_(()=>s&&"IntersectionObserver"in s),m=xe(()=>lx(qt(e)).map(To).filter(jj));let y=al;const b=Bn(o),T=f.value?nn(()=>[m.value,To(r),qt(i),b.value],([$,A,N])=>{if(y(),!b.value||!$.length)return;const O=new IntersectionObserver(t,{root:To(A),rootMargin:N,threshold:a});$.forEach(I=>I&&O.observe(I)),y=()=>{O.disconnect(),y=al}},{immediate:o,flush:"post"}):al,x=()=>{y(),T(),b.value=!1};return Bf(x),{isSupported:f,isActive:b,pause(){y(),b.value=!1},resume(){b.value=!0},stop:x}}function pge(e,t={}){const{initialValue:n=!1,focusVisible:r=!1,preventScroll:i=!1}=t,a=Bn(!1),s=xe(()=>To(e)),o={passive:!0};mr(s,"focus",m=>{var y,b;(!r||!((y=(b=m.target).matches)===null||y===void 0)&&y.call(b,":focus-visible"))&&(a.value=!0)},o),mr(s,"blur",()=>a.value=!1,o);const f=xe({get:()=>a.value,set(m){var y,b;!m&&a.value?(y=s.value)===null||y===void 0||y.blur():m&&!a.value&&((b=s.value)===null||b===void 0||b.focus({preventScroll:i}))}});return nn(s,()=>{f.value=n},{immediate:!0,flush:"post"}),{focused:f}}const yO=1;function mge(e,t={}){const{throttle:n=0,idle:r=200,onStop:i=al,onScroll:a=al,offset:s={left:0,right:0,top:0,bottom:0},observe:o={mutation:!1},eventListenerOptions:f={capture:!1,passive:!0},behavior:m="auto",window:y=Co,onError:b=z=>{}}=t,T=typeof o=="boolean"?{mutation:o}:o,x=Bn(0),$=Bn(0),A=xe({get(){return x.value},set(z){O(z,void 0)}}),N=xe({get(){return $.value},set(z){O(void 0,z)}});function O(z,H){var K,ne,le,pe;if(!y)return;const ae=qt(e);if(!ae)return;(K=ae instanceof Document?y.document.body:ae)===null||K===void 0||K.scrollTo({top:(ne=qt(H))!==null&&ne!==void 0?ne:N.value,left:(le=qt(z))!==null&&le!==void 0?le:A.value,behavior:qt(m)});const se=(ae==null||(pe=ae.document)===null||pe===void 0?void 0:pe.documentElement)||ae?.documentElement||ae;A!=null&&(x.value=se.scrollLeft),N!=null&&($.value=se.scrollTop)}const I=Bn(!1),U=aa({left:!0,right:!1,top:!0,bottom:!1}),B=aa({left:!1,right:!1,top:!1,bottom:!1}),q=z=>{I.value&&(I.value=!1,B.left=!1,B.right=!1,B.top=!1,B.bottom=!1,i(z))},Q=Ume(q,n+r),ee=z=>{var H;if(!y)return;const K=(z==null||(H=z.document)===null||H===void 0?void 0:H.documentElement)||z?.documentElement||To(z),{display:ne,flexDirection:le,direction:pe}=y.getComputedStyle(K),ae=pe==="rtl"?-1:1,se=K.scrollLeft;B.left=se<x.value,B.right=se>x.value;const ce=Math.abs(se*ae)<=(s.left||0),ye=Math.abs(se*ae)+K.clientWidth>=K.scrollWidth-(s.right||0)-yO;ne==="flex"&&le==="row-reverse"?(U.left=ye,U.right=ce):(U.left=ce,U.right=ye),x.value=se;let $e=K.scrollTop;z===y.document&&!$e&&($e=y.document.body.scrollTop),B.top=$e<$.value,B.bottom=$e>$.value;const Be=Math.abs($e)<=(s.top||0),je=Math.abs($e)+K.clientHeight>=K.scrollHeight-(s.bottom||0)-yO;ne==="flex"&&le==="column-reverse"?(U.top=je,U.bottom=Be):(U.top=Be,U.bottom=je),$.value=$e},Y=z=>{var H;if(!y)return;const K=(H=z.target.documentElement)!==null&&H!==void 0?H:z.target;ee(K),I.value=!0,Q(z),a(z)};return mr(e,"scroll",n?Hme(Y,n,!0,!1):Y,f),H_(()=>{try{const z=qt(e);if(!z)return;ee(z)}catch(z){b(z)}}),T?.mutation&&e!=null&&e!==y&&e!==document&&Xj(e,()=>{const z=qt(e);z&&ee(z)},{attributes:!0,childList:!0,subtree:!0}),mr(e,"scrollend",q,f),{x:A,y:N,isScrolling:I,arrivedState:U,directions:B,measure(){const z=qt(e);y&&z&&ee(z)}}}function I6(e,t){qt(e)&&t(qt(e))}function gge(e){let t=[];for(let n=0;n<e.length;++n)t=[...t,[e.start(n),e.end(n)]];return t}function D6(e){return Array.from(e).map(({label:t,kind:n,language:r,mode:i,activeCues:a,cues:s,inBandMetadataTrackDispatchType:o},f)=>({id:f,label:t,kind:n,language:r,mode:i,activeCues:a,cues:s,inBandMetadataTrackDispatchType:o}))}const yge={src:"",tracks:[]};function vO(e,t={}){e=$A(e),t={...yge,...t};const{document:n=Jme}=t,r={passive:!0},i=Bn(0),a=Bn(0),s=Bn(!1),o=Bn(1),f=Bn(!1),m=Bn(!1),y=Bn(!1),b=Bn(1),T=Bn(!1),x=Bn([]),$=Bn([]),A=Bn(-1),N=Bn(!1),O
14=Bn(!1),I=!!(n&&"pictureInPictureEnabled"in n),U=i$(),B=i$(),q=ne=>{I6(e,le=>{if(ne){const pe=typeof ne=="number"?ne:ne.id;le.textTracks[pe].mode="disabled"}else for(let pe=0;pe<le.textTracks.length;++pe)le.textTracks[pe].mode="disabled";A.value=-1})},Q=(ne,le=!0)=>{I6(e,pe=>{const ae=typeof ne=="number"?ne:ne.id;le&&q(),pe.textTracks[ae].mode="showing",A.value=ae})},ee=()=>new Promise((ne,le)=>{I6(e,async pe=>{I&&(N.value?n.exitPictureInPicture().then(ne).catch(le):pe.requestPictureInPicture().then(ne).catch(le))})});ko(()=>{if(!n)return;const ne=qt(e);if(!ne)return;const le=qt(t.src);let pe=[];le&&(typeof le=="string"?pe=[{src:le}]:Array.isArray(le)?pe=le:Uj(le)&&(pe=[le]),ne.querySelectorAll("source").forEach(ae=>{ae.remove()}),pe.forEach(({src:ae,type:se,media:ce})=>{const ye=n.createElement("source");ye.setAttribute("src",ae),ye.setAttribute("type",se||""),ye.setAttribute("media",ce||""),mr(ye,"error",U.trigger,r),ne.appendChild(ye)}),ne.load())}),nn([e,o],()=>{const ne=qt(e);ne&&(ne.volume=o.value)}),nn([e,O],()=>{const ne=qt(e);ne&&(ne.muted=O.value)}),nn([e,b],()=>{const ne=qt(e);ne&&(ne.playbackRate=b.value)}),ko(()=>{if(!n)return;const ne=qt(t.tracks),le=qt(e);!ne||!ne.length||!le||(le.querySelectorAll("track").forEach(pe=>pe.remove()),ne.forEach(({default:pe,kind:ae,label:se,src:ce,srcLang:ye},$e)=>{const Be=n.createElement("track");Be.default=pe||!1,Be.kind=ae,Be.label=se,Be.src=ce,Be.srclang=ye,Be.default&&(A.value=$e),le.appendChild(Be)}))});const{ignoreUpdates:Y}=pO(i,ne=>{const le=qt(e);le&&(le.currentTime=ne)}),{ignoreUpdates:z}=pO(y,ne=>{const le=qt(e);le&&(ne?le.play().catch(pe=>{throw B.trigger(pe),pe}):le.pause())});mr(e,"timeupdate",()=>Y(()=>i.value=qt(e).currentTime),r),mr(e,"durationchange",()=>a.value=qt(e).duration,r),mr(e,"progress",()=>x.value=gge(qt(e).buffered),r),mr(e,"seeking",()=>s.value=!0,r),mr(e,"seeked",()=>s.value=!1,r),mr(e,["waiting","loadstart"],()=>{f.value=!0,z(()=>y.value=!1)},r),mr(e,"loadeddata",()=>f.value=!1,r),mr(e,"playing",()=>{f.value=!1,m.value=!1,z(()=>y.value=!0)},r),mr(e,"ratechange",()=>b.value=qt(e).playbackRate,r),mr(e,"stalled",()=>T.value=!0,r),mr(e,"ended",()=>m.value=!0,r),mr(e,"pause",()=>z(()=>y.value=!1),r),mr(e,"play",()=>z(()=>y.value=!0),r),mr(e,"enterpictureinpicture",()=>N.value=!0,r),mr(e,"leavepictureinpicture",()=>N.value=!1,r),mr(e,"volumechange",()=>{const ne=qt(e);ne&&(o.value=ne.volume,O.value=ne.muted)},r);const H=[],K=nn([e],()=>{const ne=qt(e);ne&&(K(),H[0]=mr(ne.textTracks,"addtrack",()=>$.value=D6(ne.textTracks),r),H[1]=mr(ne.textTracks,"removetrack",()=>$.value=D6(ne.textTracks),r),H[2]=mr(ne.textTracks,"change",()=>$.value=D6(ne.textTracks),r))});return Bf(()=>H.forEach(ne=>ne())),{currentTime:i,duration:a,waiting:f,seeking:s,ended:m,stalled:T,buffered:x,playing:y,rate:b,volume:o,muted:O,tracks:$,selectedTrack:A,enableTrack:Q,disableTrack:q,supportsPictureInPicture:I,togglePictureInPicture:ee,isPictureInPicture:N,onSourceError:U.on,onPlaybackError:B.on}}function XRe(e="history",t={}){const{initialValue:n={},removeNullishValues:r=!0,removeFalsyValues:i=!1,write:a=!0,writeMode:s="replace",window:o=Co,stringify:f=B=>B.toString()}=t;if(!o)return aa(n);const m=aa({});function y(){if(e==="history")return o.location.search||"";if(e==="hash"){const B=o.location.hash||"",q=B.indexOf("?");return q>0?B.slice(q):""}else return(o.location.hash||"").replace(/^#/,"")}function b(B){const q=f(B);if(e==="history")return`${q?`?${q}`:""}${o.location.hash||""}`;if(e==="hash-params")return`${o.location.search||""}${q?`#${q}`:""}`;const Q=o.location.hash||"#",ee=Q.indexOf("?");return ee>0?`${o.location.search||""}${Q.slice(0,ee)}${q?`?${q}`:""}`:`${o.location.search||""}${Q}${q?`?${q}`:""}`}function T(){return new URLSearchParams(y())}function x(B){const q=new Set(Object.keys(m));for(const Q of B.keys()){const ee=B.getAll(Q);m[Q]=ee.length>1?ee:B.get(Q)||"",q.delete(Q)}Array.from(q).forEach(Q=>delete m[Q])}const{pause:$,resume:A}=I4(m,()=>{const B=new URLSearchParams("");Object.keys(m).forEach(q=>{const Q=m[q];Array.isArray(Q)?Q.forEach(ee=>B.append(q,ee)):r&&Q==null||i&&!Q?B.delete(q):B.set(q,Q)}),N(B,!1)},{deep:!0});function N(B,q,Q=!0){$(),q&&x(B),s==="replace"?o.history.replaceState(o.history.state,o.document.title,o.location.pathname+b(B)):Q&&o.history.pushState(o.history.state,o.document.title,o.location.pathname+b(B)),ur(()=>A())}function O(){a&&N(T(),!0,!1)}const I={passive:!0};mr(o,"popstate",O,I),e!=="history"&&mr(o,"hashchange",O,I);const U=T();return U.keys().next().value?x(U):Object.assign(m,n),m}function Hi(e,t,n,r={}){var i,a;const{clone:s=!1,passive:o=!1,eventName:f,deep:m=!1,defaultValue:y,shouldEmit:b}=r,T=Ci(),x=n||T?.emit||(T==null||(i=T.$emit)===null||i===void 0?void 0:i.bind(T))||(T==null||(a=T.proxy)===null||a===void 0||(a=a.$emit)===null||a===void 0?void 0:a.bind(T?.proxy));let $=f;t||(t="modelValue"),$=$||`update:${t.toString()}`;const A=I=>s?typeof s=="function"?s(I):rge(I):I,N=()=>Dme(e[t])?A(e[t]):y,O=I=>{b?b(I)&&x($,I):x($,I)};if(o){const I=De(N());let U=!1;return nn(()=>e[t],B=>{U||(U=!0,I.value=A(B),ur(()=>U=!1))}),nn(I,B=>{!U&&(B!==e[t]||m)&&O(B)},{deep:m}),I}else return xe({get(){return N()},set(I){O(I)}})}function vge(e={}){const{window:t=Co,...n}=e;return mge(t,n)}function _ge(e={}){const{window:t=Co,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:r=Number.POSITIVE_INFINITY,listenOrientation:i=!0,includeScrollbar:a=!0,type:s="inner"}=e,o=Bn(n),f=Bn(r),m=()=>{if(t)if(s==="outer")o.value=t.outerWidth,f.value=t.outerHeight;
14else if(s==="visual"&&t.visualViewport){const{width:b,height:T,scale:x}=t.visualViewport;o.value=Math.round(b*x),f.value=Math.round(T*x)}else a?(o.value=t.innerWidth,f.value=t.innerHeight):(o.value=t.document.documentElement.clientWidth,f.value=t.document.documentElement.clientHeight)};m(),H_(m);const y={passive:!0};return mr("resize",m,y),t&&s==="visual"&&t.visualViewport&&mr(t.visualViewport,"resize",m,y),i&&nn(Km("(orientation: portrait)"),()=>m()),{width:o,height:f}}const bge=Fe({__name:"app",setup(e){const t=vr();return dge({selector:"body",attribute:"theme-color",initialValue:"light"}),Hn(()=>{sessionStorage.getItem("print")==="1"&&(sessionStorage.removeItem("print"),window.print())}),(n,r)=>{const i=Tme,a=Eme;return Z(),Ce(Ct,null,[("isEmptyCustom"in n?n.isEmptyCustom:v(Un))(v(t).initialData?.navigation)?Ne("",!0):(Z(),Se(i,{key:0,color:v(t).colors?.cim_primary_color?.hexa},null,8,["color"])),v(t).initialData?(Z(),Se(a,{key:1})):Ne("",!0)],64)}}}),xge={key:0},wge={key:1},ST=Fe({__name:"FieldUnpipe",props:{text:{}},setup(e){const t=e,n=kd(),r=xe(()=>t.text?.split(n.titleDelimiter)||[t.text]);return(i,a)=>(Z(),Ce("span",null,[_n(ht(v(r)[0])+" ",1),v(r).length>1?(Z(),Ce("span",xge,ht(v(r)[1]),1)):Ne("",!0),v(r).length>2?(Z(),Ce("span",wge,ht(v(r)[2]),1)):Ne("",!0)]))}}),CT=Fe({__name:"CimTitle",props:{header:{default:""},headerLayout:{default:2},home:{type:Boolean,default:!1},big:{type:Boolean,default:!1}},setup(e){const t=e,n=xe(()=>Math.max(+t.headerLayout,2));return(r,i)=>{const a=ST;return e.header&&e.headerLayout!==200?(Z(),Se(xr(`h${v(n)}`),{key:0},{default:be(()=>[ke(a,{text:e.header},null,8,["text"])]),_:1})):Ne("",!0)}}});function D4(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)}var Sge=e=>typeof e=="object"&&e!==null;function TT(e){return Object.fromEntries(Object.entries(e??{}).filter(([t,n])=>n!==void 0))}var Cge=e=>e==="base";function Tge(e){return e.slice().filter(t=>!Cge(t))}function _O(e){return String.fromCharCode(e+(e>25?39:97))}function kge(e){let t="",n;for(n=Math.abs(e);n>52;n=n/52|0)t=_O(n%52)+t;return _O(n%52)+t}function Ege(e,t){let n=t.length;for(;n;)e=e*33^t.charCodeAt(--n);return e}function Pge(e){return kge(Ege(5381,e)>>>0)}var eU=/\s*!(important)?/i;function $ge(e){return typeof e=="string"?eU.test(e):!1}function Mge(e){return typeof e=="string"?e.replace(eU,"").trim():e}function tU(e){return typeof e=="string"?e.replaceAll(" ","_"):e}var Cw=e=>{const t=new Map;return(...r)=>{const i=JSON.stringify(r);if(t.has(i))return t.get(i);const a=e(...r);return t.set(i,a),a}},Age=new Set(["__proto__","constructor","prototype"]);function IA(...e){return e.reduce((t,n)=>(n&&Object.keys(n).forEach(r=>{if(Age.has(r))return;const i=t[r],a=n[r];D4(i)&&D4(a)?t[r]=IA(i,a):t[r]=a}),t),{})}var Ige=e=>e!=null;function DA(e,t,n={}){const{stop:r,getKey:i}=n;function a(s,o=[]){if(Sge(s)){const f={};for(const[m,y]of Object.entries(s)){const b=i?.(m,y)??m,T=[...o,b];if(r?.(s,T))return t(s,o);const x=a(y,T);Ige(x)&&(f[b]=x)}return f}return t(s,o)}return a(e)}function Dge(e,t){return Array.isArray(e)?e.map(n=>t(n)):D4(e)?DA(e,n=>t(n)):t(e)}function Lge(e,t){return e.reduce((n,r,i)=>{const a=t[i];return r!=null&&(n[a]=r),n},{})}function nU(e,t,n=!0){const{utility:r,conditions:i}=t,{hasShorthand:a,resolveShorthand:s}=r;return DA(e,o=>Array.isArray(o)?Lge(o,i.breakpoints.keys):o,{stop:o=>Array.isArray(o),getKey:n?o=>a?s(o):o:void 0})}var Oge={shift:e=>e,finalize:e=>e,breakpoints:{keys:[]}},Rge=e=>typeof e=="string"?e.replaceAll(/[\n\s]+/g," "):e;function Bge(e){const{utility:t,hash:n,conditions:r=Oge}=e,i=s=>[t.prefix,s].filter(Boolean).join("-"),a=(s,o)=>{let f;if(n){const m=[...r.finalize(s),o];f=i(t.toHash(m,Pge))}else f=[...r.finalize(s),i(o)].join(":");return f};return Cw(({base:s,...o}={})=>{const f=Object.assign(o,s),m=nU(f,e),y=new Set;return DA(m,(b,T)=>{if(b==null)return;const x=$ge(b),[$,...A]=r.shift(T),N=Tge(A),O=t.transform($,Mge(Rge(b)));let I=a(N,O.className);x&&(I=`${I}!`),y.add(I)}),Array.from(y).join(" ")})}function Fge(...e){return e.flat().filter(t=>D4(t)&&Object.keys(TT(t)).length>0)}
14function zge(e){function t(i){const a=Fge(...i);return a.length===1?a:a.map(s=>nU(s,e))}function n(...i){return IA(...t(i))}function r(...i){return Object.assign({},...t(i))}return{mergeCss:Cw(n),assignCss:r}}var Nge=/([A-Z])/g,Vge=/^ms-/,qge=Cw(e=>e.startsWith("--")?e:e.replace(Nge,"-$1").replace(Vge,"-ms-").toLowerCase()),jge=["min","max","clamp","calc"],Uge=new RegExp(`^(${jge.join("|")})\\(.*\\)`),Hge=e=>typeof e=="string"&&Uge.test(e),Wge="cm,mm,Q,in,pc,pt,px,em,ex,ch,rem,lh,rlh,vw,vh,vmin,vmax,vb,vi,svw,svh,lvw,lvh,dvw,dvh,cqw,cqh,cqi,cqb,cqmin,cqmax,%",Gge=`(?:${Wge.split(",").join("|")})`,Yge=new RegExp(`^[+-]?[0-9]*.?[0-9]+(?:[eE][+-]?[0-9]+)?${Gge}$`),Zge=e=>typeof e=="string"&&Yge.test(e),Kge=e=>typeof e=="string"&&/^var\(--.+\)$/.test(e),Ua={map:Dge,isCssFunction:Hge,isCssVar:Kge,isCssUnit:Zge},Ha=(e,t)=>{if(!e?.defaultValues)return t;const n=typeof e.defaultValues=="function"?e.defaultValues(t):e.defaultValues;return Object.assign({},n,TT(t))},Xge=(e={})=>{const t=i=>({className:[e.className,i].filter(Boolean).join("__"),base:e.base?.[i]??{},variants:{},defaultVariants:e.defaultVariants??{},compoundVariants:e.compoundVariants?Jge(e.compoundVariants,i):[]}),r=(e.slots??[]).map(i=>[i,t(i)]);for(const[i,a]of Object.entries(e.variants??{}))for(const[s,o]of Object.entries(a))r.forEach(([f,m])=>{m.variants[i]??={},m.variants[i][s]=o[f]??{}});return Object.fromEntries(r)},Jge=(e,t)=>e.filter(n=>n.css[t]).map(n=>({...n,css:n.css[t]}));function rU(e,...t){const n=Object.getOwnPropertyDescriptors(e),r=Object.keys(n),i=s=>{const o={};for(let f=0;f<s.length;f++){const m=s[f];n[m]&&(Object.defineProperty(o,m,n[m]),delete n[m])}return o},a=s=>i(Array.isArray(s)?s:r.filter(s));return t.map(a).concat(i(r))}var Qge=(...e)=>{const t=e.reduce((n,r)=>(r&&r.forEach(i=>n.add(i)),n),new Set([]));return Array.from(t)};const e0e="_dyslexic,_interligne,_renforce,_inverse,_hover,_focus,_focusWithin,_focusVisible,_disabled,_active,_visited,_target,_readOnly,_readWrite,_empty,_checked,_enabled,_expanded,_highlighted,_complete,_incomplete,_dragging,_before,_after,_firstLetter,_firstLine,_marker,_selection,_file,_backdrop,_first,_last,_only,_even,_odd,_firstOfType,_lastOfType,_onlyOfType,_peerFocus,_peerHover,_peerActive,_peerFocusWithin,_peerFocusVisible,_peerDisabled,_peerChecked,_peerInvalid,_peerExpanded,_peerPlaceholderShown,_groupFocus,_groupHover,_groupActive,_groupFocusWithin,_groupFocusVisible,_groupDisabled,_groupChecked,_groupExpanded,_groupInvalid,_indeterminate,_required,_valid,_invalid,_autofill,_inRange,_outOfRange,_placeholder,_placeholderShown,_pressed,_selected,_grabbed,_underValue,_overValue,_atValue,_default,_optional,_open,_closed,_fullscreen,_loading,_hidden,_current,_currentPage,_currentStep,_today,_unavailable,_rangeStart,_rangeEnd,_now,_topmost,_motionReduce,_motionSafe,_print,_landscape,_portrait,_dark,_light,_osDark,_osLight,_highContrast,_lessContrast,_moreContrast,_ltr,_rtl,_scrollbar,_scrollbarThumb,_scrollbarTrack,_horizontal,_vertical,_icon,_starting,_noscript,_invertedColors,sm,smOnly,smDown,md,mdOnly,mdDown,lg,lgOnly,lgDown,xl,xlOnly,xlDown,xxl,xxlOnly,xxlDown,xxxl,xxxlOnly,xxxlDown,smToMd,smToLg,smToXl,smToXxl,smToXxxl,mdToLg,mdToXl,mdToXxl,mdToXxxl,lgToXl,lgToXxl,lgToXxxl,xlToXxl,xlToXxxl,xxlToXxxl,base",iU=new Set(e0e.split(",")),t0e=/^@|&|&$/;function bO(e){return iU.has(e)||t0e.test(e)}const n0e=/^_/,r0e=/&|@/;function i0e(e){return e.map(t=>iU.has(t)?t.replace(n0e,""):r0e.test(t)?`[${tU(t.trim())}]`:t)}
14function a0e(e){return e.sort((t,n)=>{const r=bO(t),i=bO(n);return r&&!i?1:!r&&i?-1:0})}const o0e="aspectRatio:asp,boxDecorationBreak:bx-db,zIndex:z,boxSizing:bx-s,objectPosition:obj-p,objectFit:obj-f,overscrollBehavior:ovs-b,overscrollBehaviorX:ovs-bx,overscrollBehaviorY:ovs-by,position:pos/1,top:top,left:left,inset:inset,insetInline:inset-x/insetX,insetBlock:inset-y/insetY,insetBlockEnd:inset-be,insetBlockStart:inset-bs,insetInlineEnd:inset-e/insetEnd/end,insetInlineStart:inset-s/insetStart/start,right:right,bottom:bottom,float:float,visibility:vis,display:d,hideFrom:hide,hideBelow:show,flexBasis:flex-b,flex:flex,flexDirection:flex-d/flexDir,flexGrow:flex-g,flexShrink:flex-sh,gridTemplateColumns:grid-tc,gridTemplateRows:grid-tr,gridColumn:grid-c,gridRow:grid-r,gridColumnStart:grid-cs,gridColumnEnd:grid-ce,gridAutoFlow:grid-af,gridAutoColumns:grid-ac,gridAutoRows:grid-ar,gap:gap,gridGap:grid-g,gridRowGap:grid-rg,gridColumnGap:grid-cg,rowGap:rg,columnGap:cg,justifyContent:jc,alignContent:ac,alignItems:ai,alignSelf:as,padding:p/1,paddingLeft:pl/1,paddingRight:pr/1,paddingTop:pt/1,paddingBottom:pb/1,paddingBlock:py/1/paddingY,paddingBlockEnd:pbe,paddingBlockStart:pbs,paddingInline:px/paddingX/1,paddingInlineEnd:pe/1/paddingEnd,paddingInlineStart:ps/1/paddingStart,marginLeft:ml/1,marginRight:mr/1,marginTop:mt/1,marginBottom:mb/1,margin:m/1,marginBlock:my/1/marginY,marginBlockEnd:mbe,marginBlockStart:mbs,marginInline:mx/1/marginX,marginInlineEnd:me/1/marginEnd,marginInlineStart:ms/1/marginStart,spaceX:sx,spaceY:sy,outlineWidth:ring-w/ringWidth,outlineColor:ring-c/ringColor,outline:ring/1,outlineOffset:ring-o/ringOffset,focusRing:focus-ring,focusVisibleRing:focus-v-ring,focusRingColor:focus-ring-c,focusRingOffset:focus-ring-o,focusRingWidth:focus-ring-w,focusRingStyle:focus-ring-s,divideX:dvd-x,divideY:dvd-y,divideColor:dvd-c,divideStyle:dvd-s,width:w/1,inlineSize:w-is,minWidth:min-w/minW,minInlineSize:min-w-is,maxWidth:max-w/maxW,maxInlineSize:max-w-is,height:h/1,blockSize:h-bs,minHeight:min-h
14/minH,minBlockSize:min-h-bs,maxHeight:max-h/maxH,maxBlockSize:max-b,boxSize:size,color:c,fontFamily:ff,fontSize:fs,fontSizeAdjust:fs-a,fontPalette:fp,fontKerning:fk,fontFeatureSettings:ff-s,fontWeight:fw,fontSmoothing:fsmt,fontVariant:fv,fontVariantAlternates:fv-alt,fontVariantCaps:fv-caps,fontVariationSettings:fv-s,fontVariantNumeric:fv-num,letterSpacing:ls,lineHeight:lh,textAlign:ta,textDecoration:td,textDecorationColor:td-c,textEmphasisColor:te-c,textDecorationStyle:td-s,textDecorationThickness:td-t,textUnderlineOffset:tu-o,textTransform:tt,textIndent:ti,textShadow:tsh,textShadowColor:tsh-c/textShadowColor,WebkitTextFillColor:wktf-c,textOverflow:tov,verticalAlign:va,wordBreak:wb,textWrap:tw,truncate:trunc,lineClamp:lc,listStyleType:li-t,listStylePosition:li-pos,listStyleImage:li-img,listStyle:li-s,backgroundPosition:bg-p/bgPosition,backgroundPositionX:bg-p-x/bgPositionX,backgroundPositionY:bg-p-y/bgPositionY,backgroundAttachment:bg-a/bgAttachment,backgroundClip:bg-cp/bgClip,background:bg/1,backgroundColor:bg-c/bgColor,backgroundOrigin:bg-o/bgOrigin,backgroundImage:bg-i/bgImage,backgroundRepeat:bg-r/bgRepeat,backgroundBlendMode:bg-bm/bgBlendMode,backgroundSize:bg-s/bgSize,backgroundGradient:bg-grad/bgGradient,backgroundLinear:bg-linear/bgLinear,backgroundRadial:bg-radial/bgRadial,backgroundConic:bg-conic/bgConic,textGradient:txt-grad,gradientFromPosition:grad-from-pos,gradientToPosition:grad-to-pos,gradientFrom:grad-from,gradientTo:grad-to,gradientVia:grad-via,gradientViaPosition:grad-via-pos,borderRadius:bdr/rounded,borderTopLeftRadius:bdr-tl/roundedTopLeft,borderTopRightRadius:bdr-tr/roundedTopRight,borderBottomRightRadius:bdr-br/roundedBottomRight,borderBottomLeftRadius:bdr-bl/roundedBottomLeft,borderTopRadius:bdr-t/roundedTop,borderRightRadius:bdr-r/roundedRight,borderBottomRadius:bdr-b/roundedBottom,borderLeftRadius:bdr-l/roundedLeft,borderStartStartRadius:bdr-ss/roundedStartStart,borderStartEndRadius:bdr-se/roundedStartEnd,borderStartRadius:bdr-s/roundedStart,borderEndStartRadius:bdr-es/roundedEndStart,borderEndEndRadius:bdr-ee/roundedEndEnd,borderEndRadius:bdr-e/roundedEnd,border:bd,borderWidth:bd-w,borderTopWidth:bd-t-w,borderLeftWidth:bd-l-w,borderRightWidth:bd-r-w,borderBottomWidth:bd-b-w,borderBlockStartWidth:bd-bs-w,borderBlockEndWidth:bd-be-w,borderColor:bd-c,borderInline:bd-x/borderX,borderInlineWidth:bd-x-w/borderXWidth,borderInlineColor:bd-x-c/borderXColor,borderBlock:bd-y/borderY,borderBlockWidth:bd-y-w/borderYWidth,borderBlockColor:bd-y-c/borderYColor,borderLeft:bd-l,borderLeftColor:bd-l-c,borderInlineStart:bd-s/borderStart,borderInlineStartWidth:bd-s-w/borderStartWidth,borderInlineStartColor:bd-s-c/borderStartColor,borderRight:bd-r,borderRightColor:bd-r-c,borderInlineEnd:bd-e/borderEnd,borderInlineEndWidth:bd-e-w/borderEndWidth,borderInlineEndColor:bd-e-c/borderEndColor,borderTop:bd-t,borderTopColor:bd-t-c,borderBottom:bd-b,borderBottomColor:bd-b-c,borderBlockEnd:bd-be,borderBlockEndColor:bd-be-c,borderBlockStart:bd-bs,borderBlockStartColor:bd-bs-c,opacity:op,boxShadow:bx-sh/shadow,boxShadowColor:bx-sh-c/shadowColor,mixBlendMode:mix-bm,filter:filter,brightness:brightness,contrast:contrast,grayscale:grayscale,hueRotate:hue-rotate,invert:invert,saturate:saturate,sepia:sepia,dropShadow:drop-shadow,blur:blur,backdropFilter:bkdp,backdropBlur:bkdp-blur,backdropBrightness:bkdp-brightness,backdropContrast:bkdp-contrast,backdropGrayscale:bkdp-grayscale,backdropHueRotate:bkdp-hue-rotate,backdropInvert:bkdp-invert,backdropOpacity:bkdp-opacity,backdropSaturate:bkdp-saturate,backdropSepia:bkdp-sepia,borderCollapse:bd-cl,borderSpacing:bd-sp,borderSpacingX:bd-sx,borderSpacingY:bd-sy,tableLayout:tbl,transitionTimingFunction:trs-tmf,transitionDelay:trs-dly,transitionDuration:trs-dur,transitionProperty:trs-prop,transition:trs,animation:anim,animationName:anim-n,animationTimingFunction:anim-tmf,animationDuration:anim-dur,animationDelay:anim-dly,animationPlayState:anim-ps,animationComposition:anim-comp,animationFillMode:anim-fm,animationDirection:anim-dir,animationIterationCount:anim-ic,animationRange:anim-r,animationState:anim-s,animationRangeStart:anim-rs,animationRangeEnd:anim-re,animationTimeline:anim-tl,transformOrigin:trf-o,transformBox:trf-b,transformStyle:trf-s,transform:trf,rotate:rotate,rotateX:rotate-x,rotateY:rotate-y,rotateZ:rotate-z,scale:scale,scaleX:scale-x,scaleY:scale-y,translate:translate,translateX:translate-x/x,translateY:translate-y/y,translateZ:translate-z/z,accentColor:ac-c,caretColor:ca-c,scrollBehavior:scr-bhv,scrollbar:scr-bar,scrollbarColor:scr-bar-c,scrollbarGutter:scr-bar-g,scrollbarWidth:scr-bar-w,scrollMargin:scr-m,scrollMarginLeft:scr-ml,scrollMarginRight:scr-mr,scrollMarginTop:scr-mt,scrollMarginBottom:scr-mb,scrollMarginBlock:scr-my/scrollMarginY,scrollMarginBlockEnd:scr-mbe,scrollMarginBlockStart:scr-mbt,scrollMarginInline:scr-mx/scrollMarginX,scrollMarginInlineEnd:scr-me,scrollMarginInlineStart:scr-ms,scrollPadding:scr-p,scrollPaddingBlock:scr-py/scrollPaddingY,scrollPaddingBlockStart:scr-pbs,scrollPaddingBlockEnd:scr-pbe,scrollPaddingInline:scr-px/scrollPaddingX,scrollPaddingInlineEnd:scr-pe,scrollPaddingInlineStart:scr-ps,scrollPaddingLeft:scr-pl,scrollPaddingRight:scr-pr,scrollPaddingTop:scr-pt,scrollPaddingBottom:scr-pb,scrollSnapAlign:scr-sa,scrollSnapStop:scrs-s,scrollSnapType:scrs-t,scrollSnapStrictness:scrs-strt,scrollSnapMargin:scrs-m,scrollSnapMarginTop:scrs-mt,scrollSnapMarginBottom:scrs-mb,scrollSnapMarginLeft:scrs-ml,scrollSnapMarginRight:scrs-mr,scrollSnapCoordinate:scrs-c,scrollSnapDestination:scrs-d,scrollSnapPointsX:scrs-px,scrollSnapPointsY:scrs-py,scrollSnapTypeX:scrs-tx,scrollSnapTypeY:scrs-ty,scrollTimeline:scrtl,scrollTimelineAxis:scrtl-a,scrollTimelineName:scrtl-n,touchAction:tch-a,userSelect:us,overflow:ov,overflowWrap:ov-wrap,overflowX:ov-x,overflowY:ov-y,overflowAnchor:ov-a,overflowBlock:ov-b,overflowInline:ov-i,overflowClipBox:ovcp-bx,overflowClipMargin:ovcp-m,overscrollBehaviorBlock:ovs-bb,overscrollBehaviorInline:ovs-bi,fill:fill,stroke:stk,strokeWidth:stk-w,strokeDasharray:stk-dsh,strokeDashoffset:stk-do,strokeLinecap:stk-lc,strokeLinejoin:stk-lj,strokeMiterlimit:stk-ml,strokeOpacity:stk-op,srOnly:sr,debug:debug,appearance:ap,backfaceVisibility:bfv,clipPath:cp-path,hyphens:hy,mask:msk,maskImage:msk-i,maskSize:msk-s,textSizeAdjust:txt-adj,container:cq,containerName:cq-n,containerType:cq-t,cursor:cursor",aU=new Map,oU=new Map;
14o0e.split(",").forEach(e=>{const[t,n]=e.split(":"),[r,...i]=n.split("/");aU.set(t,r),i.length&&i.forEach(a=>{oU.set(a==="1"?r:a,t)})});const xO=e=>oU.get(e)||e,sU={conditions:{shift:a0e,finalize:i0e,breakpoints:{keys:["base","sm","md","lg","xl","xxl","xxxl"]}},utility:{transform:(e,t)=>{const n=xO(e);return{className:`${aU.get(n)||qge(n)}_${tU(t)}`}},hasShorthand:!0,toHash:(e,t)=>t(e.join(":")),resolveShorthand:xO}},s0e=Bge(sU),me=(...e)=>s0e(Sy(...e));me.raw=(...e)=>Sy(...e);const{mergeCss:Sy}=zge(sU);function l0e(){let e="",t=0,n;for(;t<arguments.length;)(n=arguments[t++])&&typeof n=="string"&&(e&&(e+=" "),e+=n);return e}const wO=e=>({base:{},variants:{},defaultVariants:{},compoundVariants:[],...e});function lU(e){const{base:t,variants:n,defaultVariants:r,compoundVariants:i}=wO(e),a=T=>({...r,...TT(T)});function s(T={}){const x=a(T);let $={...t};for(const[N,O]of Object.entries(x))n[N]?.[O]&&($=Sy($,n[N][O]));const A=u0e(i,x);return Sy($,A)}function o(T){const x=wO(T.config),$=Qge(T.variantKeys,Object.keys(n));return lU({base:Sy(t,x.base),variants:Object.fromEntries($.map(A=>[A,Sy(n[A],x.variants[A])])),defaultVariants:IA(r,x.defaultVariants),compoundVariants:[...i,...x.compoundVariants]})}function f(T){return me(s(T))}const m=Object.keys(n);function y(T){return rU(T,m)}const b=Object.fromEntries(Object.entries(n).map(([T,x])=>[T,Object.keys(x)]));return Object.assign(Cw(f),{__cva__:!0,variantMap:b,variantKeys:m,raw:s,config:e,merge:o,splitVariantProps:y,getVariantProps:a})}function u0e(e,t){let n={};return e.forEach(r=>{Object.entries(r).every(([a,s])=>a==="css"?!0:(Array.isArray(s)?s:[s]).some(f=>t[a]===f))&&(n=Sy(n,r.css))}),n}function uU(e){const t=Object.entries(Xge(e)).map(([b,T])=>[b,lU(T)]),n=e.defaultVariants??{},r=t.reduce((b,[T,x])=>(e.className&&(b[T]=x.config.className),b),{});function i(b){const T=t.map(([x,$])=>[x,l0e($(b),r[x])]);return Object.fromEntries(T)}function a(b){const T=t.map(([x,$])=>[x,$.raw(b)]);return Object.fromEntries(T)}const s=e.variants??{},o=Object.keys(s);function f(b){return rU(b,o)}const m=b=>({...n,...TT(b)}),y=Object.fromEntries(Object.entries(s).map(([b,T])=>[b,Object.keys(T)]));return Object.assign(Cw(i),{__cva__:!1,raw:a,config:e,variantMap:y,variantKeys:o,classNameMap:r,splitVariantProps:f,getVariantProps:m})}const SO={transform(e){const{direction:t,align:n,justify:r,wrap:i,basis:a,grow:s,shrink:o,...f}=e;return{display:"flex",flexDirection:t,alignItems:n,justifyContent:r,flexWrap:i,flexBasis:a,flexGrow:s,flexShrink:o,...f}}},cU=(e={})=>{const t=Ha(SO,e);return SO.transform(t,Ua)},c0e=e=>me(cU(e));c0e.raw=cU;const CO={transform(e){const{align:t,justify:n,direction:r,gap:i,...a}=e;return{display:"flex",flexDirection:r,alignItems:t,justifyContent:n,gap:i,...a}},defaultValues:{direction:"column",gap:"{spacing.gutter}",alignItems:"center",_print:{display:"block"}}},dU=(e={})=>{const t=Ha(CO,e);return CO.transform(t,Ua)},fU=e=>me(dU(e));fU.raw=dU;const TO={transform(e){const{justify:t,gap:n,...r}=e;return{display:"flex",alignItems:"center",justifyContent:t,gap:n,flexDirection:"column",...r}},defaultValues:{gap:"{spacing.gutter}",alignItems:"center",_print:{display:"block"}}},hU=(e={})=>{const t=Ha(TO,e);return TO.transform(t,Ua)},Tr=e=>me(hU(e));Tr.raw=hU;const kO={transform(e){const{justify:t,gap:n,...r}=e;return{display:"flex",alignItems:"center",justifyContent:t,gap:n,flexDirection:"row",...r}},defaultValues:{gap:"{spacing.gutter}",alignItems:"center",_print:{display:"block"}}},pU=(e={})=>{const t=Ha(kO,e);return kO.transform(t,Ua)},Qn=e=>me(pU(e));Qn.raw=pU;const EO={transform(e){const{size:t,...n}=e;return{display:"flex",alignItems:"center",justifyContent:"center",flex:"0 0 auto",width:t,height:t,borderRadius:"9999px",...n}}},mU=(e={})=>{const t=Ha(EO,e);return EO.transform(t,Ua)},S_=e=>me(mU(e));S_.raw=mU;const PO={transform(e,{map:t,isCssUnit:n}){const{columnGap:r,rowGap:i,gap:a,columns:s,minChildWidth:o,...f}=e,m=y=>n(y)?y:`token(sizes.${y}, ${y})`;return{display:"grid",gridTemplateColumns:s!=null?t(s,y=>`repeat(${y}, minmax(0, 1fr))`):o!=null?t(o,y=>`repeat(auto-fit, minmax(${m(y)}, 1fr))`):void 0,gap:a,columnGap:r,rowGap:i,...f}},defaultValues:{columnGap:"{spacing.gutter}",rowGap:"{spacing.gutter}",_print:{display:"block"}}},gU=(e={})=>{const t=Ha(PO,e);return PO.transform(t,Ua)},Mi=e=>me(gU(e));Mi.raw=gU;const $O={transform(e,{map:t}){const{colSpan:n,rowSpan:r,colStart:i,rowStart:a,colEnd:s,rowEnd:o,...f}=e,m=y=>y==="auto"?y:`span ${y}`;return{gridColumn:n!=null?t(n,m):void 0,gridRow:r!=null?t(r,m):void 0,gridColumnStart:i,gridColumnEnd:s,gridRowStart:a,gridRowEnd:o,...f}}},yU=(e={})=>{const t=Ha($O,e);return $O.transform(t,Ua)},Gy=e=>me(yU(e));Gy.raw=yU;const MO={transform(e){const{columnGap:t,rowGap:n,gap:r=t||n?void 0:"8px",align:i,justify:a,...s}=e;return{display:"flex",flexWrap:"wrap",alignItems:i,justifyContent:a,gap:r,columnGap:t,rowGap:n,...s}},defaultValues:{columnGap:"{spacing.gutter}",rowGap:"{spacing.gutter}",alignItems:"center",_print:{display:"block"}}},vU=(e={})=>{const t=Ha(MO,e);return MO.transform(t,Ua)},_u=e=>me(vU(e));_u.raw=vU;const AO={transform(e){return{position:"relative",maxWidth:"8xl",mx:"auto",px:{base:"4",md:"6",lg:"8"},...e}},defaultValues:{maxWidth:"{spacing.wrap}",marginX:"auto",position:"relative",paddingX:{base:"3rem",md:"1.5rem"},width:"100%",_print:{maxWidth:"65rem"}}},_U=(e={})=>{const t=Ha(AO,e);return AO.transform(t,Ua)},Dg=e=>me(_U(e));Dg.raw=_U;const IO={transform(e){return{srOnly:!0,...e}}},bU=(e={})=>{const t=Ha(IO,e);return IO.transform(t,Ua)},Er=e=>me(bU(e));Er.raw=bU;const DO={transform(e){const{...t}=e;return{"& h2, & form > fieldset >
14 legend, &:is(h2)":{_after:{content:{base:"''",_print:"none"},width:"7.5rem",height:"0.3rem",display:"block",marginTop:"1rem",bg:{base:"linear-gradient(270deg, var(--cim_primary_color) 49.21%, var(--cim_secondary_color) 99.42%)",_inverse:"yellow"}},...t}}}},xU=(e={})=>{const t=Ha(DO,e);return DO.transform(t,Ua)},LA=e=>me(xU(e));LA.raw=xU;const LO={transform(e){const{...t}=e;return{width:"100%",transform:"translateY(calc(-1 * ({spacing.header} + {spacing.preheader})))",...t}}},wU=(e={})=>{const t=Ha(LO,e);return LO.transform(t,Ua)},Yy=e=>me(wU(e));Yy.raw=wU;const OO={transform(e){const{shadowInitial:t,shadowColor:n,textColor:r,...i}=e;return{"& p > a, & li > a, & h2 > a, & h3 > a, & h4 > a, & table a":{boxShadow:`inset 0 -${t} 0 0 ${n}`,transition:"box-shadow 0.4s ease-in-out, color 0.3s ease-in-out",...i,_hover:{boxShadow:`inset 0 -3.4em 0 0 ${n}`,color:r},_print:{boxShadow:"none"}}}},defaultValues:{shadowInitial:"0.1rem",shadowColor:"{colors.primary}",textColor:"{colors.white}"}},SU=(e={})=>{const t=Ha(OO,e);return OO.transform(t,Ua)},Wa=e=>me(SU(e));Wa.raw=SU;const RO={transform(e){const{textColor:t,pictoColor:n,noPicto:r,...i}=e;return{"& ul, & ol":{display:"block",flexDir:"column",gap:"0.25rem",paddingLeft:"1rem","& ul, & ol":{marginBottom:0,paddingLeft:"3rem"}},"& li li":{fontSize:"1em"},"& li p, & li div":{display:"inline"},"& ul > li":{color:t,_before:{content:"''",display:r?"none !important":"inline-block",borderRadius:"50%",verticalAlign:"top",width:"0.8rem",height:"0.8rem",bgColor:n,margin:{base:"0.8rem 1rem 0 0",md:"1rem 1rem 0 0.5rem"}},"& > ul > li":{_before:{bgColor:"transparent",border:"{borders.md}"+n},"& ul > li":{_before:{borderRadius:0,bgColor:n,border:0}}},...i}}},defaultValues:{textColor:"{colors.black}",pictoColor:"{colors.primary}",noPicto:!1}},CU=(e={})=>{const t=Ha(RO,e);return RO.transform(t,Ua)},Md=e=>me(CU(e));Md.raw=CU;const BO={transform(e){const{...t}=e;return{position:"fixed",bgColor:{base:"{colors.black/60}",_inverse:"{colors.white}/80"},zIndex:10,width:"100%",height:"100%",top:0,left:0,...t}}},TU=(e={})=>{const t=Ha(BO,e);return BO.transform(t,Ua)},OA=e=>me(TU(e));OA.raw=TU;const FO={transform(e){const{...t}=e;return{width:"2rem",minWidth:"2rem",height:"2rem",marginTop:"0.2rem","& *":{fill:"primary"},_print:{display:"none"},...t}}},kU=(e={})=>{const t=Ha(FO,e);return FO.transform(t,Ua)},RA=e=>me(kU(e));RA.raw=kU;const zO={transform(e){const{quoteColor:t,picto:n,...r}=e;return{"& blockquote":{paddingLeft:"4rem",position:"relative",display:"flex",justifyContent:"center",flexDir:"column",marginY:"2rem",_before:{content:"''",position:"absolute",width:"3rem",height:"2rem",top:0,left:0,bg:t,maskPosition:"center center",maskRepeat:"no-repeat",maskSize:"contain",maskImage:n,_print:{display:"none"},transform:"scaleX(-1) !"},"& p":{fontSize:"{fontSizes.p}",_last:{marginBottom:"0"}},...r}}},defaultValues:{quoteColor:{base:"linear-gradient(to bottom, {colors.primary}, {colors.secondary})",_inverse:"yellow"},picto:""}},EU=(e={})=>{const t=Ha(zO,e);return zO.transform(t,Ua)},Tw=e=>me(EU(e));Tw.raw=EU;const NO={transform(e){const{size:t,fill:n,stroke:r,height:i,...a}=e;return{width:t,height:i||t,"& *":{fill:n,stroke:r},"& [data-name=primary]":{fill:"primary"},"& [data-name=secondary]":{fill:"secondary"},"& [data-name=third]":{fill:"third"},"& [data-name=black]":{fill:"black"},"& [data-name=white]":{fill:"white"},"& [data-name=gray]":{fill:"darkgray"},...a}},defaultValues:{size:"2rem"}},PU=(e={})=>{const t=Ha(NO,e);return NO.transform(t,Ua)},ei=e=>me(PU(e));ei.raw=PU;const VO={transform(e){const{size:t,color:n,...r}=e;return{position:"relative",_before:{content:"''",position:"absolute",top:"calc(50% - 2.5rem)",left:`calc(50% - ${t} / 2)`,width:t,aspectRatio:1,borderRadius:"50%",background:`radial-gradient(farthest-side, ${n} 94%,#0000) top/0.8rem 0.8rem no-repeat,conic-gradient(#0000 30%, ${n})`,animation:"simpleLoaderAnim 1s infinite linear",mask:"radial-gradient(farthest-side,#0000 calc(100% - 0.8rem),#000 0)",...r}}},defaultValues:{size:"5rem",color:"{colors.primary}"}},$U=(e={})=>{const t=Ha(VO,e);return VO.transform(t,Ua)}
14,MU=e=>me($U(e));MU.raw=$U;const qO={transform(e){const{deg:t,start:n,before:r,...i}=e;return r?{_before:{content:"''",width:"100%",height:"100%",position:"absolute",top:0,left:0,bg:{base:`linear-gradient(${t}deg, var(--cim_primary_color) ${n}%, var(--cim_secondary_color) 100%)`,_renforce:"red",_inverse:"yellow"},...i}}:{bg:{base:`linear-gradient(${t}deg, var(--cim_primary_color) ${n}%, var(--cim_secondary_color) 100%)`,_renforce:"red",_inverse:"yellow"},...i}},defaultValues:{deg:270,start:49.5,before:!1}},AU=(e={})=>{const t=Ha(qO,e);return qO.transform(t,Ua)},IU=e=>me(AU(e));IU.raw=AU;const jO={transform(){return{fontSize:{base:"{fontSizes.sm}",_print:"10pt"}}}},DU=(e={})=>{const t=Ha(jO,e);return jO.transform(t,Ua)},BS=e=>me(DU(e));BS.raw=DU;const d0e=["id"],f0e={key:1},h0e=["id"],fi=Fe({__name:"BlocCol",props:{template:{},header:{},headerLayout:{},uid:{},bgColor:{},boxShadow:{type:Boolean},border:{},titleInside:{type:Boolean,default:!1},headerId:{},itemsMini:{},noAnchor:{type:Boolean},type:{},show_in_summary:{type:Boolean},headerSr:{type:Boolean,default:!1},isComarquage:{type:Boolean,default:!1}},setup(e){const t=vr();t.siteBuilderInfos;const n=e,r=xe(()=>n.bgColor==="primary"),i=xe(()=>n.bgColor==="secondary"),a=xe(()=>n.bgColor==="third"),s=xe(()=>n.bgColor==="fourth"),o=xe(()=>n.bgColor==="white"),f=xe(()=>n.bgColor==="gray"),m=xe(()=>n.bgColor==="red"),y=xe(()=>r.value||i.value),b=[Qn({flexDir:"row-reverse",justifyContent:"start",gap:{base:"1.5rem",sm:"2.5rem"}}),me({marginBottom:"{spacing.xl}","& svg":{width:"auto",height:"5rem"},"& > *":{fontSize:{base:"{fontSizes.h2}",md:"3em"},color:"black",marginBottom:0}})];return(T,x)=>{const $=CT;return Z(),Ce("div",{"data-bloc-col":"",class:de(v(me)({marginBottom:{base:"3rem",md:"6rem"},position:"relative"}))},[!e.titleInside&&e.headerLayout!==200?bt(T.$slots,"title",{},()=>[e.show_in_summary?(Z(),Ce("div",{key:0,id:`c${e.uid}`,class:de(v(Yy)()),tabindex:"0"},null,10,d0e)):Ne("",!0),typeof e.header<"u"&&e.header!==""?(Z(),Ce("div",f0e,[ke($,{header:e.header,headerLayout:e.headerLayout,id:e.headerId,class:de(e.headerSr?v(Er)():null)},null,8,["header","headerLayout","id","class"]),e.header?bt(T.$slots,"picto",{},void 0,void 0,0):Ne("",!0)])):Ne("",!0)],void 0,0):Ne("",!0),Re("div",{"data-bloc-content":"",class:de([v(me)({position:"relative"}),e.bgColor||e.border?v(me)({padding:{base:"1.5rem",sm:e.isComarquage?"2rem":"3rem 2.5rem"}}):null,e.bgColor?v(me)({bgColor:{base:v(r)?"{colors.primary}":v(i)?"{colors.secondary}/20":v(a)?"{colors.third}/25":v(s)?"{colors.fourth}":v(m)?"{colors.danger}/10":v(o)?"white":v(f)?"lightGray":"transparent",_print:"transparent"},color:v(y)?"{colors.white}":"{colors.black}"}):null,e.boxShadow?v(me)({boxShadow:{base:"0 .4rem 2rem 0 rgba(0,0,0,.2)",_inverse:"inverse",_print:"none"}}):null,e.border?v(me)({border:"{borders.md} transparent",borderColor:e.border==="primary"?"primary":e.border==="secondary"?"secondary":e.border==="third"?"third":"lightGray",borderRadius:"1.5em"}):null])},[e.titleInside&&e.headerLayout!==200?bt(T.$slots,"title",{},()=>[e.show_in_summary?(Z(),Ce("div",{key:0,id:`c${e.uid}`,class:de(v(Yy)()),tabindex:"0"},null,10,h0e)):Ne("",!0),typeof e.header<"u"&&e.header!==""?(Z(),Ce("div",{key:1,class:de([b,v(y)?v(me)({"& > *":{color:"white"},"& svg *":{fill:"white"}}):null])},[ke($,{header:e.header,headerLayout:e.headerLayout,id:e.headerId},null,8,["header","headerLayout","id"]),e.header?bt(T.$slots,"picto",{},void 0,void 0,0):Ne("",!0)],2)):Ne("",!0)],void 0,0):Ne("",!0),bt(T.$slots,"content")],2)],2)}}});function L4(e,t=Number.NEGATIVE_INFINITY,n=Number.POSITIVE_INFINITY){return Math.min(n,Math.max(t,e))}function Z5(e,t){let n=e;const r=t.toString(),i=r.indexOf("."),a=i>=0?r.length-i:0;if(a>0){const s=10**a;n=Math.round(n*s)/s}return n}function L6(e,t,n,r){t=Number(t),n=Number(n);const i=(e-(Number.isNaN(t)?0:t))%r;let a=Z5(Math.abs(i)*2>=r?e+Math.sign(i)*(r-Math.abs(i)):e-i,r);return Number.isNaN(t)?!Number.isNaN(n)&&a>n&&(a=Math.floor(Z5(n/r,r))*r):a<t?a=t:!Number.isNaN(n)&&a>n&&(a=t+Math.floor(Z5((n-t)/r,r))*r),a=Z5(a,r),a}function hi(e,t){const n=typeof e=="string"&&!t?`${e}Context`:t,r=Symbol(n);return[s=>{const o=Ai(r,s);if(o||o===null)return o;throw new Error(`Injection \`${r.toString()}\` not found. Component must be used within ${Array.isArray(e)?`one of the following components: ${e.join(", ")}`:`\`${e}\``}`)},s=>(co(r,s),s)]}function _s(){let e=document.activeElement;if(e==null)return null;for(;e!=null&&e.shadowRoot!=null&&e.shadowRoot.activeElement!=null;)e=e.shadowRoot.activeElement;return e}function kT(e,t,n){const r=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),r.dispatchEvent(i)}function cu(e){return e==null}function O4(e,t){return cu(e)?!1:Array.isArray(e)?e.some(n=>bp(n,t)):bp(e,t)}function BA(e){return e?e.flatMap(t=>t.type===Ct?BA(t.children):[t]):[]}const p0e=["INPUT","TEXTAREA"];function m0e(e,t,n,r={}){if(!t||r.enableIgnoredElement&&p0e.includes(t.nodeName))return null;const{arrowKeyOptions:i="both",attributeName:a="[data-reka-collection-item]",itemsArray:s=[],loop:o=!0,dir:f="ltr",preventScroll:m=!0,focus:y=!1}=r,[b,T,x,$,A,N]=[e.key==="ArrowRight",e.key==="ArrowLeft",e.key==="ArrowUp",e.key==="ArrowDown",e.key==="Home",e.key==="End"],O=x||$,I=b||T;if(!A&&!N&&(!O&&!I||i==="vertical"&&I||i==="horizontal"&&O))return null;const U=n?Array.from(n.querySelectorAll(a)):s;if(!U.length)return null;m&&e.preventDefault();let B=null;return I||O?B=LU(U,t,{goForward:O?$:f==="ltr"?b:T,loop:o}):A?B=U.at(0)||null:N&&(B=U.at(-1)||null),y&&B?.focus(),B}function LU(e,t,n,r=e.includes(t)?e.length:e.length+1){if(--r===0)return null;const i=e.indexOf(t);let a;if(i===-1?a=n.goForward?0:e.length-1:a=n.goForward?i+1:i-1,!n.loop&&(a<0||a>=e.length))return null;const s=(a+e.length)%e.length,o=e[s];return o?o.hasAttribute("disabled")&&o.getAttribute("disabled")!=="false"?LU(e,o,n,r):o:null}const[G_]=hi("ConfigProvider"),Tl=aa({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,originalBodyPointerEvents:void 0,branches:new Set}),g0e=Nme(()=>{const e=De(new Map),t=De(),n=xe(()=>{for(const s of e.value.values())if(s)return!0;return!1}),r=G_({scrollBody:De(!0)});let i=null;const a=()=>{document.body.style.paddingRight="",document.body.style.marginRight="",Tl.layersWithOutsidePointerEventsDisabled.size===0&&(document.body.style.pointerEvents=""),document.documentElement.style.removeProperty("--scrollbar-width"),document.body.style.overflow=t.value??"",hO&&i?.(),t.value=void 0};return nn(n,(s,o)=>
14{if(!Rl)return;if(!s){o&&a();return}t.value===void 0&&(t.value=document.body.style.overflow);const f=window.innerWidth-document.documentElement.clientWidth,m={padding:f,margin:0},y=r.scrollBody?.value?typeof r.scrollBody.value=="object"?If({padding:r.scrollBody.value.padding===!0?f:r.scrollBody.value.padding,margin:r.scrollBody.value.margin===!0?f:r.scrollBody.value.margin},m):m:{padding:0,margin:0};f>0&&(document.body.style.paddingRight=typeof y.padding=="number"?`${y.padding}px`:String(y.padding),document.body.style.marginRight=typeof y.margin=="number"?`${y.margin}px`:String(y.margin),document.documentElement.style.setProperty("--scrollbar-width",`${f}px`),document.body.style.overflow="hidden"),hO&&(i=mr(document,"touchmove",b=>y0e(b),{passive:!1})),ur(()=>{n.value&&(document.body.style.pointerEvents="none",document.body.style.overflow="hidden")})},{immediate:!0,flush:"sync"}),e});function FA(e){const t=Math.random().toString(36).substring(2,7),n=g0e();n.value.set(t,e??!1);const r=xe({get:()=>n.value.get(t)??!1,set:i=>n.value.set(t,i)});return Yme(()=>{n.value.delete(t)}),r}function OU(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth<e.scrollWidth||t.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const n=e.parentNode;return!(n instanceof Element)||n.tagName==="BODY"?!1:OU(n)}}function y0e(e){const t=e||window.event,n=t.target;return n instanceof Element&&OU(n)?!1:t.touches.length>1?!0:(t.preventDefault&&t.cancelable&&t.preventDefault(),!1)}function n_(e,t){return e-t*Math.floor(e/t)}const RU=1721426;function Cy(e,t,n,r){t=kw(e,t);let i=t-1,a=-2;return n<=2?a=0:eg(t)&&(a=-1),RU-1+365*i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400)+Math.floor((367*n-362)/12+a+r)}function eg(e){return e%4===0&&(e%100!==0||e%400===0)}function kw(e,t){return e==="BC"?1-t:t}function ET(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const v0e={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class Ed{fromJulianDay(t){let n=t,r=n-RU,i=Math.floor(r/146097),a=n_(r,146097),s=Math.floor(a/36524),o=n_(a,36524),f=Math.floor(o/1461),m=n_(o,1461),y=Math.floor(m/365),b=i*400+s*100+f*4+y+(s!==4&&y!==4?1:0),[T,x]=ET(b),$=n-Cy(T,x,1,1),A=2;n<Cy(T,x,3,1)?A=0:eg(x)&&(A=1);let N=Math.floor((($+A)*12+373)/367),O=n-Cy(T,x,N,1)+1;return new ai(T,x,N,O)}toJulianDay(t){return Cy(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return v0e[eg(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return eg(t.year)?366:365}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 31}getYearsInEra(t){return 9999}getEras(){return["BC","AD"]}isInverseEra(t){return t.era==="BC"}balanceDate(t){t.year<=0&&(t.era=t.era==="BC"?"AD":"BC",t.year=1-t.year)}constructor(){this.identifier="gregory"}}const _0e={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function _g(e,t){return t=Al(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function zA(e,t){return t=Al(t,e.calendar),e=a$(e),t=a$(t),e.era===t.era&&e.year===t.year&&e.month===t.month}function r_(e,t){return NA(e.calendar,t.calendar)&&_g(e,t)}function UO(e,t){return NA(e.calendar,t.calendar)&&zA(e,t)}function NA(e,t){return e.isEqual?.(t)??t.isEqual?.(e)??e.identifier===t.identifier}function b0e(e,t){return _g(e,Fx(t))}const x0e={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};function VA(e,t,n){let r=e.calendar.toJulianDay(e),i=n?x0e[n]:T0e(t),a=Math.ceil(r+1-i)%7;return a<0&&(a+=7),a}function w0e(e){return rp(Date.now(),e)}function Fx(e){return P0e(w0e(e))}function BU(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function FU(e,t){return HO(e)-HO(t)}function HO(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let O6=null,S0e=!1;function bg(){return O6==null&&(O6=new Intl.DateTimeFormat().resolvedOptions().timeZone),O6}function zU(){return S0e}function a$(e){return e.subtract({days:e.day-1})}function WO(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}const GO=new Map,R6=new Map;function C0e(e){if(Intl.Locale){let n=GO.get(e);return n||(n=new Intl.Locale(e).maximize().region,n&&GO.set(e,n)),n}let t=e.split("-")[1];return t==="u"?void 0:t}function T0e(e){let t=R6.get(e);if(!t){if(Intl.Locale){let r=new Intl.Locale(e);
14if("getWeekInfo"in r&&(t=r.getWeekInfo(),t))return R6.set(e,t),t.firstDay}let n=C0e(e);if(e.includes("-fw-")){let r=e.split("-fw-")[1].split("-")[0];r==="mon"?t={firstDay:1}:r==="tue"?t={firstDay:2}:r==="wed"?t={firstDay:3}:r==="thu"?t={firstDay:4}:r==="fri"?t={firstDay:5}:r==="sat"?t={firstDay:6}:t={firstDay:0}}else e.includes("-ca-iso8601")?t={firstDay:1}:t={firstDay:n&&_0e[n]||0};R6.set(e,t)}return t.firstDay}function C_(e){e=Al(e,new Ed);let t=kw(e.era,e.year);return NU(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function NU(e,t,n,r,i,a,s){let o=new Date;return o.setUTCHours(r,i,a,s),o.setUTCFullYear(e,t-1,n),o.getTime()}function o$(e,t){if(t==="UTC")return 0;if(e>0&&t===bg()&&!zU())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:i,hour:a,minute:s,second:o}=VU(e,t);return NU(n,r,i,a,s,o,0)-Math.floor(e/1e3)*1e3}const YO=new Map;function VU(e,t){let n=YO.get(t);n||(n=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),YO.set(t,n));let r=n.formatToParts(new Date(e)),i={};for(let a of r)a.type!=="literal"&&(i[a.type]=a.value);return{year:i.era==="BC"||i.era==="B"?-i.year+1:+i.year,month:+i.month,day:+i.day,hour:i.hour==="24"?0:+i.hour,minute:+i.minute,second:+i.second}}const ZO=864e5;function k0e(e,t,n,r){return(n===r?[n]:[n,r]).filter(a=>E0e(e,t,a))}function E0e(e,t,n){let r=VU(n,t);return e.year===r.year&&e.month===r.month&&e.day===r.day&&e.hour===r.hour&&e.minute===r.minute&&e.second===r.second}function Jh(e,t,n="compatible"){let r=Zy(e);if(t==="UTC")return C_(r);if(t===bg()&&n==="compatible"&&!zU()){r=Al(r,new Ed);let f=new Date,m=kw(r.era,r.year);return f.setFullYear(m,r.month-1,r.day),f.setHours(r.hour,r.minute,r.second,r.millisecond),f.getTime()}let i=C_(r),a=o$(i-ZO,t),s=o$(i+ZO,t),o=k0e(r,t,i-a,i-s);if(o.length===1)return o[0];if(o.length>1)switch(n){case"compatible":case"earlier":return o[0];case"later":return o[o.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(i-a,i-s);case"compatible":case"later":return Math.max(i-a,i-s);case"reject":throw new RangeError("No such absolute time found")}}function qU(e,t,n="compatible"){return new Date(Jh(e,t,n))}function rp(e,t){let n=o$(e,t),r=new Date(e+n),i=r.getUTCFullYear(),a=r.getUTCMonth()+1,s=r.getUTCDate(),o=r.getUTCHours(),f=r.getUTCMinutes(),m=r.getUTCSeconds(),y=r.getUTCMilliseconds();return new T_(i<1?"BC":"AD",i<1?-i+1:i,a,s,t,n,o,f,m,y)}function P0e(e){return new ai(e.calendar,e.era,e.year,e.month,e.day)}function Zy(e,t){let n=0,r=0,i=0,a=0;if("timeZone"in e)({hour:n,minute:r,second:i,millisecond:a}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:r,second:i,millisecond:a}=t),new xg(e.calendar,e.era,e.year,e.month,e.day,n,r,i,a)}function Al(e,t){if(NA(e.calendar,t))return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=n.era,r.year=n.year,r.month=n.month,r.day=n.day,Ky(r),r}function $0e(e,t,n){if(e instanceof T_)return e.timeZone===t?e:A0e(e,t);let r=Jh(e,t,n);return rp(r,t)}function M0e(e){let t=C_(e)-e.offset;return new Date(t)}function A0e(e,t){let n=C_(e)-e.offset;return Al(rp(n,t),e.calendar)}const P2=36e5;function PT(e,t){let n=e.copy(),r="hour"in n?WU(n,t):0;s$(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,l$(n),jU(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=r,I0e(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let i=n.calendar.getYearsInEra(n);if(n.year>i){let s=n.calendar.isInverseEra?.(n);n.year=i,n.month=s?1:n.calendar.getMonthsInYear(n),n.day=s?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let a=n.calendar.getMonthsInYear(n);return n.month>a&&(n.month=a,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function s$(e,t){e.calendar.isInverseEra?.(e)&&(t=-t),e.year+=t}function l$(e){for(;e.month<1;)s$(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,s$(e,1)}function I0e(e){for(;e.day<1;)e.month--,l$(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,l$(e)}function jU(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function Ky(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),jU(e)}function qA(e){let t={};for(let n in e)typeof e[n]=="number"&&(t[n]=-e[n]);return t}function UU(e,t){return PT(e,qA(t))}function jA(e,t){let n=e.copy();return t.era!=null&&(n.era=t.era),t.year!=null&&(n.year=t.year),t.month!=null&&(n.month=t.month),t.day!=null&&(n.day=t.day),Ky(n),n}function zx(e,t){let n=e.copy();return t.hour!=null&&(n.hour=t.hour),t.minute!=null&&(n.minute=t.minute),t.second!=null&&(n.second=t.second),t.millisecond!=null&&(n.millisecond=t.millisecond),HU(n),n}function D0e(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=K5(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=K5(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=K5(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=K5(e.hour,24),t}function HU(e){e.millisecond=Math.max(0,Math.min(e.millisecond,999)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function K5(e,t){let n=e%t;return n<0&&(n+=t),n}function WU(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,D0e(e)}function GU(e,t){let n=e.copy();return WU(n,t),n}function L0e(e,t){return GU(e,qA(t))}function UA(e,t,n,r){let i=e.copy();switch(t){case"era":{let a=e.calendar.getEras(),s=a.indexOf(e.era);if(s<0)throw new Error("Invalid era: "+e.era);s=ip(s,n,0,a.length-1,r?.round),i.era=a[s],Ky(i);break}case"year":i.calendar.isInverseEra?.(i)&&(n=-n),i.year=ip(e.year,n,-1/0,9999,r?.round),i.year===-1/0&&(i.year=1),i.calendar.balanceYearMonth&&i.calendar.balanceYearMonth(i,e);break;case"month":i.month=ip(e.month,n,1,e.calendar.getMonthsInYear(e),r?.round);break;case"day":i.day=ip(e.day,n,1,e.calendar.getDaysInMonth(e),r?.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(i),Ky(i),i}function HA(e,t,n,r){let i=e.copy();switch(t){case"hour":{let a=e.hour,s=0,o=23;if(r?.hourCycle===12){let f=a>=12;s=f?12:0,o=f?23:11}i.hour=ip(a,n,s,o,r?.round);break}case"minute":i.minute=ip(e.minute,n,0,59,r?.round);break;case"second":i.second=ip(e.second,n,0,59,r?.round);break;case"millisecond":i.millisecond=ip(e.millisecond,n,0,999,r?.round);break;default:throw new Error("Unsupported field "+t)}return i}function ip(e,t,n,r,i=!1){if(i){e+=Math.sign(t),e<n&&(e=r);let a=Math.abs(t);t>0?e=Math.ceil(e/a)*a:e=Math.floor(e/a)*a,e>r&&(e=n)}else e+=t,e<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function YU(e,t){let n;if(t.years!=null&&t.years!==0||t.months!=null&&t.months!==0||t.weeks!=null&&t.weeks!==0||t.days!=null&&t.days!==0){let i=PT(Zy(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});n=Jh(i,e.timeZone)}else n=C_(e)-e.offset;n+=t.milliseconds||0,n+=(t.seconds||0)*1e3,n+=(t.minutes||0)*6e4,n+=(t.hours||0)*36e5;let r=rp(n,e.timeZone);return Al(r,e.calendar)}function O0e(e,t){return YU(e,qA(t))}function R0e(e,t,n,r){switch(t){case"hour":{let i=0,a=23;if(r?.hourCycle===12){let $=e.hour>=12;i=$?12:0,a=$?23:11}let s=Zy(e),o=Al(zx(s,{hour:i}),new Ed),f=[Jh(o,e.timeZone,"earlier"),Jh(o,e.timeZone,"later")].filter($=>rp($,e.timeZone).day===o.day)[0],m=Al(zx(s,{hour:a}),new Ed),y=[Jh(m,e.timeZone,"earlier"),Jh(m,e.timeZone,"later")].filter($=>rp($,e.timeZone).day===m.day).pop(),b=C_(e)-e.offset,T=Math.floor(b/P2),x=b%P2;return b=ip(T,n,Math.floor(f/P2),Math.floor(y/P2),r?.round)*P2+x,Al(rp(b,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return HA(e,t,n,r);case"era":case"year":case"month":case"day":{let i=UA(Zy(e),t,n,r),a=Jh(i,e.timeZone);return Al(rp(a,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function B0e(e,t,n){let r=Zy(e),i=zx(jA(r,t),t);if(i.compare(r)===0)return e;let a=Jh(i,e.timeZone,n);return Al(rp(a,e.timeZone),e.calendar)}const F0e=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/,z0e=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/,ZU=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:(?:([+-]\d{2})(?::?(\d{2}))?)|Z)$/;function B6(e){let t=e.match(F0e);if(!t)throw ZU.test(e)?new Error(`Invalid ISO 8601 date string: ${e}. Use parseAbsolute() instead.`):new Error("Invalid ISO 8601 date string: "+e);let n=new ai(bf(t[1],0,9999),bf(t[2],1,12),1);return n.day=bf(t[3],1,n.calendar.getDaysInMonth(n)),n}function N0e(e){let t=e.match(z0e);if(!t)throw ZU.test(e)?new Error(`Invalid ISO 8601 date time string: ${e}. Use parseAbsolute() instead.`):new Error("Invalid ISO 8601 date time string: "+e);let n=bf(t[1],-9999,9999),r=n<1?"BC":"AD",i=new xg(r,n<1?-n+1:n,bf(t[2],1,12),1,t[4]?bf(t[4],0,23):0,t[5]?bf(t[5],0,59):0,t[6]?bf(t[6],0,59):0,t[7]?bf(t[7],0,1/0)*1e3:0);return i.day=bf(t[3],0,i.calendar.getDaysInMonth(i)),i}function bf(e,t,n){let r=Number(e);if(r<t||r>n)throw new RangeError(`Value out of range: ${t} <= ${r} <= ${n}`);return r}function KU(e){return`${String(e.hour).padStart(2,"0")}
14:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function XU(e){let t=Al(e,new Ed),n;return t.era==="BC"?n=t.year===1?"0000":"-"+String(Math.abs(1-t.year)).padStart(6,"00"):n=String(t.year).padStart(4,"0"),`${n}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function JU(e){return`${XU(e)}T${KU(e)}`}function V0e(e){let t=Math.sign(e)<0?"-":"+";e=Math.abs(e);let n=Math.floor(e/36e5),r=Math.floor(e%36e5/6e4),i=Math.floor(e%36e5%6e4/1e3),a=`${t}${String(n).padStart(2,"0")}:${String(r).padStart(2,"0")}`;return i!==0&&(a+=`:${String(i).padStart(2,"0")}`),a}function q0e(e){return`${JU(e)}${V0e(e.offset)}[${e.timeZone}]`}function WA(e){let t=typeof e[0]=="object"?e.shift():new Ed,n;if(typeof e[0]=="string")n=e.shift();else{let s=t.getEras();n=s[s.length-1]}let r=e.shift(),i=e.shift(),a=e.shift();return[t,n,r,i,a]}class ai{#e;constructor(...t){let[n,r,i,a,s]=WA(t);this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=s,Ky(this)}copy(){return this.era?new ai(this.calendar,this.era,this.year,this.month,this.day):new ai(this.calendar,this.year,this.month,this.day)}add(t){return PT(this,t)}subtract(t){return UU(this,t)}set(t){return jA(this,t)}cycle(t,n,r){return UA(this,t,n,r)}toDate(t){return qU(this,t)}toString(){return XU(this)}compare(t){return BU(this,t)}}class Nx{#e;constructor(t=0,n=0,r=0,i=0){this.hour=t,this.minute=n,this.second=r,this.millisecond=i,HU(this)}copy(){return new Nx(this.hour,this.minute,this.second,this.millisecond)}add(t){return GU(this,t)}subtract(t){return L0e(this,t)}set(t){return zx(this,t)}cycle(t,n,r){return HA(this,t,n,r)}toString(){return KU(this)}compare(t){return FU(this,t)}}class xg{#e;constructor(...t){let[n,r,i,a,s]=WA(t);this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=s,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Ky(this)}copy(){return this.era?new xg(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new xg(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return PT(this,t)}subtract(t){return UU(this,t)}set(t){return jA(zx(this,t),t)}cycle(t,n,r){switch(t){case"era":case"year":case"month":case"day":return UA(this,t,n,r);default:return HA(this,t,n,r)}}toDate(t,n){return qU(this,t,n)}toString(){return JU(this)}compare(t){let n=BU(this,t);return n===0?FU(this,Zy(t)):n}}class T_{#e;constructor(...t){let[n,r,i,a,s]=WA(t),o=t.shift(),f=t.shift();this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=s,this.timeZone=o,this.offset=f,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Ky(this)}copy(){return this.era?new T_(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new T_(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return YU(this,t)}subtract(t){return O0e(this,t)}set(t,n){return B0e(this,t,n)}cycle(t,n,r){return R0e(this,t,n,r)}toDate(){return M0e(this)}toString(){return q0e(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-$0e(t,this.timeZone).toDate().getTime()}}const i_=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],j0e=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],FS=[1867,1911,1925,1988,2018],Gm=["meiji","taisho","showa","heisei","reiwa"];function KO(e){const t=i_.findIndex(([n,r,i])=>e.year<n||e.year===n&&e.month<r||e.year===n&&e.month===r&&e.day<i);
14return t===-1?i_.length-1:t===0?0:t-1}function F6(e){let t=FS[Gm.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new ai(e.year+t,e.month,e.day)}class U0e extends Ed{fromJulianDay(t){let n=super.fromJulianDay(t),r=KO(n);return new ai(this,Gm[r],n.year-FS[r],n.month,n.day)}toJulianDay(t){return super.toJulianDay(F6(t))}balanceDate(t){let n=F6(t),r=KO(n);Gm[r]!==t.era&&(t.era=Gm[r],t.year=n.year-FS[r]),this.constrainDate(t)}constrainDate(t){let n=Gm.indexOf(t.era),r=j0e[n];if(r!=null){let[i,a,s]=r,o=i-FS[n];t.year=Math.max(1,Math.min(o,t.year)),t.year===o&&(t.month=Math.min(a,t.month),t.month===a&&(t.day=Math.min(s,t.day)))}if(t.year===1&&n>=0){let[,i,a]=i_[n];t.month=Math.max(i,t.month),t.month===i&&(t.day=Math.max(a,t.day))}}getEras(){return Gm}getYearsInEra(t){let n=Gm.indexOf(t.era),r=i_[n],i=i_[n+1];if(i==null)return 9999-r[0]+1;let a=i[0]-r[0];return(t.month<i[1]||t.month===i[1]&&t.day<i[2])&&a++,a}getDaysInMonth(t){return super.getDaysInMonth(F6(t))}getMinimumMonthInYear(t){let n=XO(t);return n?n[1]:1}getMinimumDayInMonth(t){let n=XO(t);return n&&t.month===n[1]?n[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function XO(e){if(e.year===1){let t=Gm.indexOf(e.era);return i_[t]}}const QU=-543;class H0e extends Ed{fromJulianDay(t){let n=super.fromJulianDay(t),r=kw(n.era,n.year);return new ai(this,r-QU,n.month,n.day)}toJulianDay(t){return super.toJulianDay(JO(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(JO(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function JO(e){let[t,n]=ET(e.year+QU);return new ai(t,n,e.month,e.day)}const R4=1911;function eH(e){return e.era==="minguo"?e.year+R4:1-e.year+R4}function QO(e){let t=e-R4;return t>0?["minguo",t]:["before_minguo",1-t]}class W0e extends Ed{fromJulianDay(t){let n=super.fromJulianDay(t),r=kw(n.era,n.year),[i,a]=QO(r);return new ai(this,i,a,n.month,n.day)}toJulianDay(t){return super.toJulianDay(eR(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[n,r]=QO(eH(t));t.era=n,t.year=r}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(eR(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-R4}constructor(...t){super(...t),this.identifier="roc"}}function eR(e){let[t,n]=ET(eH(e));return new ai(t,n,e.month,e.day)}const tR=1948320,nR=[0,31,62,93,124,155,186,216,246,276,306,336];class G0e{fromJulianDay(t){let n=t-tR,r=1+Math.floor((33*n+3)/12053),i=365*(r-1)+Math.floor((8*r+21)/33),a=n-i,s=a<216?Math.floor(a/31):Math.floor((a-6)/30),o=a-nR[s]+1;return new ai(this,r,s+1,o)}toJulianDay(t){let n=tR-1+365*(t.year-1)+Math.floor((8*t.year+21)/33);return n+=nR[t.month-1],n+=t.day,n}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||n_(25*t.year+11,33)<8?30:29}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 31}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const z6=78,rR=80;class Y0e extends Ed{fromJulianDay(t){let n=super.fromJulianDay(t),r=n.year-z6,i=t-Cy(n.era,n.year,1,1),a;i<rR?(r--,a=eg(n.year-1)?31:30,i+=a+155+90+10):(a=eg(n.year)?31:30,i-=rR);let s,o;if(i<a)s=1,o=i+1;else{let f=i-a;f<155?(s=Math.floor(f/31)+2,o=f%31+1):(f-=155,s=Math.floor(f/30)+7,o=f%30+1)}return new ai(this,r,s,o)}toJulianDay(t){let n=t.year+z6,[r,i]=ET(n),a,s;return eg(i)?(a=31,s=Cy(r,i,3,21)):(a=30,s=Cy(r,i,3,22)),t.month===1?s+t.day-1:(s+=a+Math.min(t.month-2,5)*31,t.month>=8&&(s+=(t.month-7)*30),s+=t.day-1,s)}getDaysInMonth(t){return t.month===1&&eg(t.year+z6)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const B4=1948440,iR=1948439,rc=1300,$v=1600,Z0e=460322;function F4(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function tH(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),i=Math.min(12,Math.ceil((n-(29+F4(t,r,1,1)))/29.5)+1),a=n-F4(t,r,i,1)+1;return new ai(e,r,i,a)}function aR(e){return(14+11*e)%30<11}class GA{fromJulianDay(t){return tH(this,B4,t)}toJulianDay(t){return F4(B4,t.year,t.month,t.day)}getDaysInMonth(t){let n=29+t.month%2;return t.month===12&&aR(t.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(t){return aR(t.year)?355:354}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 30}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class K0e extends GA{fromJulianDay(t){return tH(this,iR,t)}toJulianDay(t){return F4(iR,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const X0e="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let u$,a_;function zS(e){return Z0e+a_[e-rc]}function q2(e,t){let n=e-rc,r=1<<11-(t-1);return(u$[n]&r)===0?29:30}function oR(e,t){let n=zS(e);for(let r=1;r<t;r++)n+=q2(e,r);return n}function sR(e){return a_[e+1-rc]-a_[e-rc]}class J0e extends GA{constructor(){if(super(),this.identifier="islamic-umalqura",u$||(u$=new 
14Uint16Array(Uint8Array.from(atob(X0e),t=>t.charCodeAt(0)).buffer)),!a_){a_=new Uint32Array($v-rc+1);let t=0;for(let n=rc;n<=$v;n++){a_[n-rc]=t;for(let r=1;r<=12;r++)t+=q2(n,r)}}}fromJulianDay(t){let n=t-B4,r=zS(rc),i=zS($v);if(n<r||n>i)return super.fromJulianDay(t);{let a=rc-1,s=1,o=1;for(;o>0;){a++,o=n-zS(a)+1;let f=sR(a);if(o===f){s=12;break}else if(o<f){let m=q2(a,s);for(s=1;o>m;)o-=m,s++,m=q2(a,s);break}}return new ai(this,a,s,n-oR(a,s)+1)}}toJulianDay(t){return t.year<rc||t.year>$v?super.toJulianDay(t):B4+oR(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<rc||t.year>$v?super.getDaysInMonth(t):q2(t.year,t.month)}getDaysInYear(t){return t.year<rc||t.year>$v?super.getDaysInYear(t):sR(t.year)}}const lR=347997,nH=1080,rH=24*nH,Q0e=29,eye=12*nH+793,tye=Q0e*rH+eye;function yy(e){return n_(e*7+1,19)<7}function NS(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,r=t*29+Math.floor(n/25920);return n_(3*(r+1),7)<3&&(r+=1),r}function nye(e){let t=NS(e-1),n=NS(e);return NS(e+1)-n===356?2:n-t===382?1:0}function ux(e){return NS(e)+nye(e)}function iH(e){return ux(e+1)-ux(e)}function rye(e){let t=iH(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function X5(e,t){if(t>=6&&!yy(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let n=rye(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?yy(e)?30:0:30}class iye{fromJulianDay(t){let n=t-lR,r=n*rH/tye,i=Math.floor((19*r+234)/235)+1,a=ux(i),s=Math.floor(n-a);for(;s<1;)i--,a=ux(i),s=Math.floor(n-a);let o=1,f=0;for(;f<s;)f+=X5(i,o),o++;o--,f-=X5(i,o);let m=s-f;return new ai(this,i,o,m)}toJulianDay(t){let n=ux(t.year);for(let r=1;r<t.month;r++)n+=X5(t.year,r);return n+t.day+lR}getDaysInMonth(t){return X5(t.year,t.month)}getMonthsInYear(t){return yy(t.year)?13:12}getDaysInYear(t){return iH(t.year)}getMaximumMonthsInYear(){return 13}getMaximumDaysInMonth(){return 30}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,n){n.year!==t.year&&(yy(n.year)&&!yy(t.year)&&n.month>6?t.month--:!yy(n.year)&&yy(t.year)&&n.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}const c$=1723856,uR=1824665,d$=5500;function cx(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function YA(e,t){let n=Math.floor(4*(t-e)/1461);t>=cx(e,n+1,1,1)&&n++;let r=1+Math.floor((t-cx(e,n,1,1))/30),i=t+1-cx(e,n,r,1);return[n,r,i]}function aH(e){return Math.floor(e%4/3)}function oH(e,t){return t%13!==0?30:aH(e)+5}class ZA{fromJulianDay(t){let[n,r,i]=YA(c$,t),a="AM";return n<=0&&(a="AA",n+=d$),new ai(this,a,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="AA"&&(n-=d$),cx(c$,n,t.month,t.day)}getDaysInMonth(t){return oH(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+aH(t.year)}getMaximumMonthsInYear(){return 13}getMaximumDaysInMonth(){return 30}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class aye extends ZA{fromJulianDay(t){let[n,r,i]=YA(c$,t);return n+=d$,new ai(this,"AA",n,r,i)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class oye extends ZA{fromJulianDay(t){let[n,r,i]=YA(uR,t),a="CE";return n<=0&&(a="BCE",n=1-n),new ai(this,a,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="BCE"&&(n=1-n),cx(uR,n,t.month,t.day)}getDaysInMonth(t){let n=t.year;return t.era==="BCE"&&(n=1-n),oH(n,t.month)}isInverseEra(t){return t.era==="BCE"}balanceDate(t){t.year<=0&&(t.era=t.era==="BCE"?"CE":"BCE",t.year=1-t.year)}getEras(){return["BCE","CE"]}getYearsInEra(t){return t.era==="BCE"?9999:9715}constructor(...t){super(...t),this.identifier="coptic"}}function sye(e){switch(e){case"buddhist":return new H0e;case"ethiopic":return new ZA;case"ethioaa":return new aye;case"coptic":return new oye;case"hebrew":return new iye;case"indian":return new Y0e;case"islamic-civil":return new GA;case"islamic-tbla":return new K0e;case"islamic-umalqura":return new J0e;case"japanese":return new U0e;case"persian":return new G0e;case"roc":return new W0e;default:return new Ed}}let N6=new Map;class gf{constructor(t,n={}){this.formatter=sH(t,n),this.options=n}format(t){return this.formatter.format(t)}formatToParts(t){return this.formatter.formatToParts(t)}formatRange(t,n){if(typeof this.formatter.formatRange=="function")return this.formatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.formatter.format(t)} – ${this.formatter.format(n)}`}formatRangeToParts(t,n){if(typeof this.formatter.formatRangeToParts=="function")return this.formatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.formatter.formatToParts(t),i=this.formatter.formatToParts(n);return[...r.map(a=>({...a,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(a=>({...a,source:"endRange"}))]}resolvedOptions(){let t=this.formatter.resolvedOptions();return cye()&&(this.resolvedHourCycle||(this.resolvedHourCycle=dye(t.locale,this.options)),t.hourCycle=this.resolvedHourCycle,t.hour12=this.resolvedHourCycle==="h11"||this.resolvedHourCycle==="h12"),t.calendar==="ethiopic-amete-alem"&&(t.calendar="ethioaa"),t}}const lye={true:{ja:"h11"},false:{}};function sH(e,t={}){if(typeof t.hour12=="boolean"&&uye()){t={...t};let i=lye[String(t.hour12)][e.split("-")[0]],a=t.hour12?"h12":"h23";t.hourCycle=i??a,delete t.hour12}let n=e+(t?Object.entries(t).sort((i,a)=>i[0]<a[0]?-1:1).join():"");if(N6.has(n))return N6.get(n);let r=new Intl.DateTimeFormat(e,t);return N6.set(n,r),r}let V6=null;function uye(){return V6==null&&(V6=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),V6}let q6=null;function cye(){return q6==null&&(q6=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),q6}function dye(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,""),e+=(e.includes("-u-")?"":"-u")+"-nu-latn";let n=sH(e,{...t,timeZone:void 0}),r=parseInt(n.formatToParts(new Date(2020,2,3,0)).find(a=>a.type==="hour").value,10),i=parseInt(n.formatToParts(new Date(2020,2,3,23)).find(a=>a.type==="hour").value,10);if(r===0&&i===23)return"h23";if(r===24&&i===23)return"h24";if(r===0&&i===11)return"h11";if(r===12&&i===11)return"h12";throw new Error("Unexpected hour cycle result")}function sc(e,t=bg()){return Vx(e)?e.toDate():e.toDate(t)}function fye(e){return e instanceof xg}function Vx(e){return e instanceof T_}function f$(e){return fye(e)||Vx(e)}function cg(e){if(e instanceof Date){const t=e.getFullYear(),n=e.getMonth()+1;return new Date(t,n,0).getDate()}else return e.set({day:100}).day}function tg(e,t){return e.compare(t)<0}function j6(e,t){return e.compare(t)>0}function hye(e,t,n){const r=VA(e,n,"sun");return t>r?e.subtract({days:r+7-t}):t===r?e:e.subtract({days:r-t})}function pye(e,t,n){const r=VA(e,n,"sun"),i=t===0?6:t-1;return r===i?e:r>i?e.add({days:7-r+i}):e.add({days:i-r})}function KA(e){const{defaultValue:t,defaultPlaceholder:n,granularity:r="day",locale:i="en"}=e;if(Array.isArray(t)&&t.length)return t.at(-1).copy();if(t&&!Array.isArray(t))return t.copy();if(n)return n.copy();const a=new Date,s=a.getFullYear(),o=a.getMonth()+1,f=a.getDate(),m=["hour","minute","second"],y=new gf(i),b=sye(y.resolvedOptions().calendar);return m.includes(r??"day")?Al(new xg(s,o,f,0,0,0),b):Al(new ai(s,o,f),b)}function mye(e){const{defaultValue:t,defaultPlaceholder:n}=e;return t?t.copy():n?n.copy():new Nx(0,0,0)}function gye(e,t){const n=[];for(let r=0;r<e.length;r+=t)n.push(e.slice(r,r+t));return n}function yye(e,t,n=!1){const r={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:"short",hourCycle:qx(t),hour12:vye(t)};return n&&(delete r.year,delete r.month,delete r.day),e==="day"&&(delete r.second,delete r.hour,delete r.minute,delete r.timeZoneName),e==="hour"&&(delete r.minute,delete r.second),e==="minute"&&delete r.second,r}function lH(e){return If(e?.step,{year:1,month:1,day:1,hour:1,minute:1,second:1,millisecond:1})}function uH(e){const t=e.querySelector("[data-selected]");if(t)return t.focus();const n=e.querySelector("[data-today]");if(n)return n.focus();const r=e.querySelector("[data-value]:not([data-outside-view]):not([data-disabled])");
14if(r)return r.focus()}function qx(e){if(e===24)return"h23";if(e===12)return"h11"}function vye(e){if(e===24)return!1;if(e===12)return!0}function cH(e){return e==="day"?"date":"datetime-local"}function U6(e,t){if(!e)return"";const n=cH(t),r=String(e.year).padStart(4,"0"),i=String(e.month).padStart(2,"0"),a=String(e.day).padStart(2,"0");if(n==="date")return`${r}-${i}-${a}`;const s=String("hour"in e?e.hour:0).padStart(2,"0"),o=String("minute"in e?e.minute:0).padStart(2,"0");if(t==="second"){const f=String("second"in e?e.second:0).padStart(2,"0");return`${r}-${i}-${a}T${s}:${o}:${f}`}return`${r}-${i}-${a}T${s}:${o}`}function cR(e,t){const n=[];let r=e.add({days:1});const i=t;for(;r.compare(i)<0;)n.push(r),r=r.add({days:1});return n}function H6(e){const{dateObj:t,weekStartsOn:n,fixedWeeks:r,locale:i}=e,a=cg(t),s=Array.from({length:a},(N,O)=>t.set({day:O+1})),o=a$(t),f=WO(t),m=hye(o,n,i),y=pye(f,n,i),b=cR(m.subtract({days:1}),o),T=cR(f,y.add({days:1})),x=b.length+s.length+T.length;if(r&&x<42){const N=42-x;let O=T.at(-1);O||(O=WO(t));const I=Array.from({length:N},(U,B)=>{const q=B+1;return O.add({days:q})});T.push(...I)}const $=b.concat(s,T),A=gye($,7);return{value:t,cells:$,rows:A}}function sy(e){const{numberOfMonths:t,dateObj:n,...r}=e,i=[];if(!t||t===1)return i.push(H6({...r,dateObj:n})),i;i.push(H6({...r,dateObj:n}));for(let a=1;a<t;a++){const s=n.add({months:a});i.push(H6({...r,dateObj:s}))}return i}function dH(e){const t=new ai(2025,1,6);return(1-VA(t,e)+7)%7}function XA(e,t={}){const n=De(e);function r(){return n.value}function i(N){n.value=N}function a(N,O){return new gf(n.value,{...t,...O}).format(N)}function s(N,O=!0){return f$(N)&&O?a(sc(N),{dateStyle:"long",timeStyle:"long"}):a(sc(N),{dateStyle:"long"})}function o(N,O={}){return new gf(n.value,{...t,month:"long",year:"numeric",...O}).format(N)}function f(N,O={}){return new gf(n.value,{...t,month:"long",...O}).format(N)}function m(){const N=Fx(bg());return[1,2,3,4,5,6,7,8,9,10,11,12].map(I=>({label:f(sc(N.set({month:I}))),value:I}))}function y(N,O={}){return new gf(n.value,{...t,year:"numeric",...O}).format(N)}function b(N,O){return Vx(N)?new gf(n.value,{...t,...O,timeZone:N.timeZone}).formatToParts(sc(N)):new gf(n.value,{...t,...O}).formatToParts(sc(N))}function T(N,O="narrow"){return new gf(n.value,{...t,weekday:O}).format(N)}function x(N){const I=new gf(n.value,{...t,hour:"numeric",minute:"numeric"}).formatToParts(N).find(U=>U.type==="dayPeriod")?.value;return I==="PM"||I==="pm"||I==="p.m."?"PM":"AM"}const $={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"};function A(N,O,I={}){const U={...$,...I},q=b(N,U).find(Q=>Q.type===O);return q?q.value:""}return{setLocale:i,getLocale:r,fullMonth:f,fullYear:y,fullMonthAndYear:o,toParts:b,custom:a,part:A,dayPeriod:x,selectedDate:s,dayOfWeek:T,getMonths:m}}function wu(e){const t=G_({dir:De("ltr")});return xe(()=>e?.value||t.dir?.value||"ltr")}function Ew(e){const n=Ci()?.type.emits,r={};return n?.length,n?.forEach(i=>{r[J2(Yo(i))]=(...a)=>e(i,...a)}),r}let W6=0;function fH(){ko(e=>{if(!Rl)return;const t=document.querySelectorAll("[data-reka-focus-guard]");document.body.insertAdjacentElement("afterbegin",t[0]??dR()),document.body.insertAdjacentElement("beforeend",t[1]??dR()),W6++,e(()=>{W6===1&&document.querySelectorAll("[data-reka-focus-guard]").forEach(n=>n.remove()),W6--})})}function dR(){const e=document.createElement("span");return e.setAttribute("data-reka-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}function Lg(e){return xe(()=>qt(e)?!!To(e)?.closest("form"):!0)}function wn(){const e=Ci(),t=De(),n=xe(()=>r());gw(()=>{n.value!==r()&&wX(t)});function r(){return t.value&&"$el"in t.value&&["#text","#comment"].includes(t.value.$el.nodeName)?t.value.$el.nextElementSibling:To(t)}const i=Object.assign({},e.exposed),a={};for(const o in e.props)Object.defineProperty(a,o,{enumerable:!0,configurable:!0,get:()=>e.props[o]});if(Object.keys(i).length>0)for(const o in i)Object.defineProperty(a,o,{enumerable:!0,configurable:!0,get:()=>i[o]});Object.defineProperty(a,"$el",{enumerable:!0,configurable:!0,get:()=>e.vnode.el}),e.exposed=a;function s(o){if(t.value=o,!!o&&(Object.defineProperty(a,"$el",{enumerable:!0,configurable:!0,get:()=>o instanceof Element?o:o.$el}),!(o instanceof Element)&&!Object.hasOwn(o,"$el"))){const f=o.$.exposed,m=Object.assign({},a);for(const y in f)Object.defineProperty(m,y,{enumerable:!0,configurable:!0,get:()=>f[y]});e.exposed=m}}return{forwardRef:s,currentRef:t,currentElement:n}}function Y_(e){const t=Ci(),n=Object.keys(t?.type.props??{}).reduce((i,a)=>{const s=(t?.type.props[a]).default;return s!==void 0&&(i[a]=s),i},{}),r=oc(e);return xe(()=>{const i={},a=t?.vnode.props??{};
14return Object.keys(a).forEach(s=>{i[Yo(s)]=a[s]}),Object.keys({...n,...i}).reduce((s,o)=>(r.value[o]!==void 0&&(s[o]=r.value[o]),s),{})})}function s1(e,t){const n=Y_(e),r=t?Ew(t):{};return xe(()=>({...n.value,...r}))}function Z_(){const e=Ci()?.vnode?.scopeId;return e?{[e]:""}:{}}function hH(e,t){const n=Gj(!1,300);Bf(()=>{n.value=!1});const r=De(null),i=i$();function a(){r.value=null,n.value=!1}function s(o,f){if(!f)return;const m=o.currentTarget,y={x:o.clientX,y:o.clientY},b=_ye(y,m.getBoundingClientRect()),T=bye(y,b,1),x=xye(f.getBoundingClientRect()),$=Sye([...T,...x]);r.value=$,n.value=!0}return ko(o=>{if(e.value&&t.value){const f=y=>s(y,t.value),m=y=>s(y,e.value);e.value.addEventListener("pointerleave",f),t.value.addEventListener("pointerleave",m),o(()=>{e.value?.removeEventListener("pointerleave",f),t.value?.removeEventListener("pointerleave",m)})}}),ko(o=>{if(r.value){const f=m=>{if(!r.value||!(m.target instanceof Element))return;const y=m.target,b={x:m.clientX,y:m.clientY},T=e.value?.contains(y)||t.value?.contains(y),x=!wye(b,r.value),$=!!y.closest("[data-grace-area-trigger]");T?a():(x||$)&&(a(),i.trigger())};e.value?.ownerDocument.addEventListener("pointermove",f),o(()=>e.value?.ownerDocument.removeEventListener("pointermove",f))}}),{isPointerInTransit:n,onPointerExit:i.on}}function _ye(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function bye(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function xye(e){const{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function wye(e,t){const{x:n,y:r}=e;let i=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const o=t[a].x,f=t[a].y,m=t[s].x,y=t[s].y;f>r!=y>r&&n<(m-o)*(r-f)/(y-f)+o&&(i=!i)}return i}function Sye(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),Cye(t)}function Cye(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const i=e[r];for(;t.length>=2;){const a=t.at(-1),s=t[t.length-2];if((a.x-s.x)*(i.y-s.y)>=(a.y-s.y)*(i.x-s.x))t.pop();else break}t.push(i)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const i=e[r];for(;n.length>=2;){const a=n.at(-1),s=n[n.length-2];if((a.x-s.x)*(i.y-s.y)>=(a.y-s.y)*(i.x-s.x))n.pop();else break}n.push(i)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var Tye=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Mv=new WeakMap,J5=new WeakMap,Q5={},G6=0,pH=function(e){return e&&(e.host||pH(e.parentNode))},kye=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=pH(n);return r&&e.contains(r)?r:null}).filter(function(n){return!!n})},Eye=function(e,t,n,r){var i=kye(t,Array.isArray(e)?e:[e]);Q5[n]||(Q5[n]=new WeakMap);var a=Q5[n],s=[],o=new Set,f=new Set(i),m=function(b){!b||o.has(b)||(o.add(b),m(b.parentNode))};i.forEach(m);var y=function(b){!b||f.has(b)||Array.prototype.forEach.call(b.children,function(T){if(o.has(T))y(T);else try{var x=T.getAttribute(r),$=x!==null&&x!=="false",A=(Mv.get(T)||0)+1,N=(a.get(T)||0)+1;Mv.set(T,A),a.set(T,N),s.push(T),A===1&&$&&J5.set(T,!0),N===1&&T.setAttribute(n,"true"),$||T.setAttribute(r,"true")}catch{}})};return y(t),o.clear(),G6++,function(){s.forEach(function(b){var T=Mv.get(b)-1,x=a.get(b)-1;Mv.set(b,T),a.set(b,x),T||(J5.has(b)||b.removeAttribute(r),J5.delete(b)),x||b.removeAttribute(n)}),G6--,G6||(Mv=new WeakMap,Mv=new WeakMap,J5=new WeakMap,Q5={})}},Pye=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=Tye(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),Eye(r,i,n,"aria-hidden")):function(){return null}};function JA(e){let t;nn(()=>To(e),n=>{let r=!1;try{r=!!n?.closest("[popover]:not(:popover-open)")}catch{}n&&!r?t=Pye(n):t&&t()}),oa(()=>{t&&t()})}function bu(e,t="reka"){if(e)return e;let n;const r=G_({useId:void 0});return r.useId?n=r.useId():n=Rf?.(),t?`${t}-${n}`:n}function K_(){return{ALT:"Alt",ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",ARROW_UP:"ArrowUp",BACKSPACE:"Backspace",CAPS_LOCK:"CapsLock",CONTROL:"
14Control",DELETE:"Delete",END:"End",ENTER:"Enter",ESCAPE:"Escape",F1:"F1",F10:"F10",F11:"F11",F12:"F12",F2:"F2",F3:"F3",F4:"F4",F5:"F5",F6:"F6",F7:"F7",F8:"F8",F9:"F9",HOME:"Home",META:"Meta",PAGE_DOWN:"PageDown",PAGE_UP:"PageUp",SHIFT:"Shift",SPACE:" ",TAB:"Tab",CTRL:"Control",ASTERISK:"*",SPACE_CODE:"Space"}}function $T(e){const t=G_({locale:De("en")});return xe(()=>e?.value||t.locale?.value||"en")}function mH(e){const t=De(),n=xe(()=>t.value?.width??0),r=xe(()=>t.value?.height??0);let i;return Hn(()=>{const a=To(e);a?(t.value={width:a.offsetWidth,height:a.offsetHeight},i=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const o=s[0];let f,m;if("borderBoxSize"in o){const y=o.borderBoxSize,b=Array.isArray(y)?y[0]:y;f=b.inlineSize,m=b.blockSize}else f=a.offsetWidth,m=a.offsetHeight;t.value={width:f,height:m}}),i.observe(a,{box:"border-box"})):t.value=void 0}),oa(()=>{i?.disconnect(),i=void 0}),{width:n,height:r}}function $ye(e,t){const n=De(e);function r(a){return t[n.value][a]??n.value}return{state:n,dispatch:a=>{n.value=r(a)}}}function gH(e){const t=Gj("",1e3);return{search:t,handleTypeaheadSearch:(i,a)=>{t.value=t.value+i;{const s=_s(),o=a.map(T=>({...T,textValue:T.value?.textValue??T.ref.textContent?.trim()??""})),f=o.find(T=>T.ref===s),m=o.map(T=>T.textValue),y=Aye(m,t.value,f?.textValue),b=o.find(T=>T.textValue===y);return b&&b.ref.focus(),b?.ref}},resetTypeahead:()=>{t.value=""}}}function Mye(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function Aye(e,t,n){const i=t.length>1&&Array.from(t).every(m=>m===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let s=Mye(e,Math.max(a,0));i.length===1&&(s=s.filter(m=>m!==n));const f=s.find(m=>m.toLowerCase().startsWith(i.toLowerCase()));return f!==n?f:void 0}function Iye(e,t){const n=De({}),r=De("none"),i=De(e),a=e.value?"mounted":"unmounted";let s;const o=t.value?.ownerDocument.defaultView??Co,{state:f,dispatch:m}=$ye(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),y=N=>{if(Rl){const O=new CustomEvent(N,{bubbles:!1,cancelable:!1});t.value?.dispatchEvent(O)}};nn(e,async(N,O)=>{const I=O!==N;if(await ur(),I){const U=r.value,B=eS(t.value);N?(m("MOUNT"),y("enter"),B==="none"&&y("after-enter")):B==="none"||B==="undefined"||n.value?.display==="none"?(m("UNMOUNT"),y("leave"),y("after-leave")):O&&U!==B?(m("ANIMATION_OUT"),y("leave")):(m("UNMOUNT"),y("after-leave"))}},{immediate:!0});const b=N=>{if(N.target!==t.value)return;const O=eS(t.value),I=O.includes(CSS.escape(N.animationName)),U=f.value==="mounted"?"enter":"leave";if(I&&(y(`after-${U}`),m("ANIMATION_END"),!i.value)){const B=t.value.style.animationFillMode;t.value.style.animationFillMode="forwards",s=o?.setTimeout(()=>{t.value?.style.animationFillMode==="forwards"&&(t.value.style.animationFillMode=B)})}O==="none"&&m("ANIMATION_END")},T=N=>{N.target===t.value&&(r.value=eS(t.value))},x=nn(t,(N,O)=>{N?(n.value=getComputedStyle(N),N.addEventListener("animationstart",T),N.addEventListener("animationcancel",b),N.addEventListener("animationend",b)):(m("ANIMATION_END"),s!==void 0&&o?.clearTimeout(s),O?.removeEventListener("animationstart",T),O?.removeEventListener("animationcancel",b),O?.removeEventListener("animationend",b))},{immediate:!0}),$=nn(f,()=>{const N=eS(t.value);r.value=f.value==="mounted"?N:"none"});return oa(()=>{x(),$(),t.value&&(t.value.removeEventListener("animationstart",T),t.value.removeEventListener("animationcancel",b),t.value.removeEventListener("animationend",b)),s!==void 0&&o?.clearTimeout(s)}),{isPresent:xe(()=>["mounted","unmountSuspended"].includes(f.value))}}function eS(e){return e&&getComputedStyle(e).animationName||"none"}var Og=Fe({name:"Presence",props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(e,{slots:t,expose:n}){const{present:r,forceMount:i}=bi(e),a=De(),{isPresent:s}=Iye(r,a);n({present:s});let o=t.default({present:s.value});o=BA(o||[]);const f=Ci();if(o&&o?.length>1){const m=f?.parent?.type.name?`<${f.parent.type.name} />`:"component";
14throw new Error([`Detected an invalid children for \`${m}\` for  \`Presence\` component.`,"","Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.","You can apply a few solutions:",["Provide a single child element so that `presence` directive attach correctly.","Ensure the first child is an actual element instead of a raw text node or comment node."].map(y=>`  - ${y}`).join(`
15`)].join(`
16`))}return()=>i.value||r.value||s.value?Yn(t.default({present:s.value})[0],{ref:m=>{const y=To(m);return typeof y?.hasAttribute>"u"||(y?.hasAttribute("data-reka-popper-content-wrapper")?a.value=y.firstElementChild:a.value=y),y}}):null}});const h$=Fe({name:"PrimitiveSlot",inheritAttrs:!1,setup(e,{attrs:t,slots:n}){return()=>{if(!n.default)return null;const r=BA(n.default()),i=r.findIndex(f=>f.type!==Ea);if(i===-1)return r;const a=r[i];delete a.props?.ref;const s=a.props?vn(t,a.props):t,o=Cd({...a,props:{}},s);return r.length===1?o:(r[i]=o,r)}}}),Dye=["area","img","input"],Cn=Fe({name:"Primitive",inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:"div"}},setup(e,{attrs:t,slots:n}){const r=e.asChild?"template":e.as;return typeof r=="string"&&Dye.includes(r)?()=>Yn(r,t):r!=="template"?()=>Yn(e.as,t,{default:n.default}):()=>Yn(h$,t,{default:n.default})}});function Xy(){const e=De(),t=xe(()=>["#text","#comment"].includes(e.value?.$el.nodeName)?e.value?.$el.nextElementSibling:To(e));return{primitiveElement:e,currentElement:t}}const[yH,Lye]=hi("CollapsibleRoot");var Oye=Fe({__name:"CollapsibleRoot",props:{defaultOpen:{type:Boolean,required:!1,default:!1},open:{type:Boolean,required:!1,default:void 0},disabled:{type:Boolean,required:!1},unmountOnHide:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["update:open"],setup(e,{expose:t,emit:n}){const r=e,a=Hi(r,"open",n,{defaultValue:r.defaultOpen,passive:r.open===void 0}),{disabled:s,unmountOnHide:o}=bi(r);return Lye({contentId:"",disabled:s,open:a,unmountOnHide:o,onOpenToggle:()=>{s.value||(a.value=!a.value)}}),t({open:a}),wn(),(f,m)=>(Z(),Se(v(Cn),{as:f.as,"as-child":r.asChild,"data-state":v(a)?"open":"closed","data-disabled":v(s)?"":void 0},{default:be(()=>[bt(f.$slots,"default",{open:v(a)})]),_:3},8,["as","as-child","data-state","data-disabled"]))}}),MT=Oye,Rye=Fe({inheritAttrs:!1,__name:"CollapsibleContent",props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["contentFound"],setup(e,{emit:t}){const n=e,r=t,i=yH();i.contentId||=bu(void 0,"reka-collapsible-content");const a=De(),{forwardRef:s,currentElement:o}=wn(),f=De(0),m=De(0),y=xe(()=>i.open.value),b=De(y.value),T=De();nn(()=>[y.value,a.value?.present],async()=>{await ur();const $=o.value;if(!$)return;T.value=T.value||{transitionDuration:$.style.transitionDuration,animationName:$.style.animationName},$.style.transitionDuration="0s",$.style.animationName="none";const A=$.getBoundingClientRect();m.value=A.height,f.value=A.width,b.value||($.style.transitionDuration=T.value.transitionDuration,$.style.animationName=T.value.animationName)},{immediate:!0});const x=xe(()=>b.value&&i.open.value);return Hn(()=>{requestAnimationFrame(()=>{b.value=!1})}),mr(o,"beforematch",$=>{requestAnimationFrame(()=>{i.onOpenToggle(),r("contentFound")})}),($,A)=>(Z(),Se(v(Og),{ref_key:"presentRef",ref:a,present:$.forceMount||v(i).open.value,"force-mount":!0},{default:be(({present:N})=>[ke(v(Cn),vn($.$attrs,{id:v(i).contentId,ref:v(s),"as-child":n.asChild,as:$.as,hidden:N?void 0:v(i).unmountOnHide.value?"":"until-found","data-state":x.value?void 0:v(i).open.value?"open":"closed","data-disabled":v(i).disabled?.value?"":void 0,style:{"--reka-collapsible-content-height":`${m.value}px`,"--reka-collapsible-content-width":`${f.value}px`}}),{default:be(()=>[!v(i).unmountOnHide.value||N?bt($.$slots,"default",{key:0}):Ne("v-if",!0)]),_:2},1040,["id","as-child","as","hidden","data-state","data-disabled","style"])]),_:3},8,["present"]))}}),AT=Rye,Bye=Fe({__name:"CollapsibleTrigger",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e;wn();const n=yH();return(r,i)=>(Z(),Se(v(Cn),{type:r.as==="button"?"button":void 0,as:r.as,"as-child":t.asChild,"aria-controls":v(n).contentId,"aria-expanded":v(n).open.value,"data-state":v(n).open.value?"open":"closed","data-disabled":v(n).disabled?.value?"":void 0,disabled:v(n).disabled?.value,onClick:v(n).onOpenToggle},{default:be(()=>[bt(r.$slots,"default")]),_:3},8,["type","as","as-child","aria-controls","aria-expanded","data-state","data-disabled","disabled","onClick"]))}}),IT=Bye;function Fye({type:e,defaultValue:t,modelValue:n}){const r=n||t;return n!==void 0||t!==void 0?Array.isArray(r)?"multiple":"single":e??"single"}function zye({type:e,defaultValue:t,modelValue:n}){return e||Fye({type:e,defaultValue:t,modelValue:n})}function Nye({type:e,defaultValue:t}){return t!==void 0?t:e==="single"?void 0:[]}function vH(e,t){const n=xe(()=>zye(e)),r=Hi(e,"modelValue",t,{defaultValue:Nye(e),passive:e.modelValue===void 0,deep:!0});
16function i(s){if(n.value==="single")r.value=bp(s,r.value)?void 0:s;else{const o=Array.isArray(r.value)?[...r.value||[]]:[r.value].filter(Boolean);if(O4(o,s)){const f=o.findIndex(m=>bp(m,s));o.splice(f,1)}else o.push(s);r.value=o}}const a=xe(()=>n.value==="single");return{modelValue:r,changeModelValue:i,isSingle:a}}const[DT,Vye]=hi("AccordionRoot");var qye=Fe({__name:"AccordionRoot",props:{collapsible:{type:Boolean,required:!1,default:!1},disabled:{type:Boolean,required:!1,default:!1},dir:{type:String,required:!1},orientation:{type:String,required:!1,default:"vertical"},unmountOnHide:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},type:{type:String,required:!1},modelValue:{type:null,required:!1},defaultValue:{type:null,required:!1}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,{dir:i,disabled:a,unmountOnHide:s}=bi(n),o=wu(i),{modelValue:f,changeModelValue:m,isSingle:y}=vH(n,r),{forwardRef:b,currentElement:T}=wn();return Vye({disabled:a,direction:o,orientation:n.orientation,parentElement:T,isSingle:y,collapsible:n.collapsible,modelValue:f,changeModelValue:m,unmountOnHide:s}),(x,$)=>(Z(),Se(v(Cn),{ref:v(b),"as-child":x.asChild,as:x.as},{default:be(()=>[bt(x.$slots,"default",{modelValue:v(f)})]),_:3},8,["as-child","as"]))}}),jye=qye,p$=(function(e){return e.Open="open",e.Closed="closed",e})(p$||{});const[QA,Uye]=hi("AccordionItem");var Hye=Fe({__name:"AccordionItem",props:{disabled:{type:Boolean,required:!1},value:{type:String,required:!0},unmountOnHide:{type:Boolean,required:!1,default:void 0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e,{expose:t}){const n=e,r=DT(),i=xe(()=>r.isSingle.value?n.value===r.modelValue.value:Array.isArray(r.modelValue.value)&&r.modelValue.value.includes(n.value)),a=xe(()=>r.disabled.value||n.disabled),s=xe(()=>a.value?"":void 0),o=xe(()=>i.value?p$.Open:p$.Closed);t({open:i,dataDisabled:s});const{currentRef:f,currentElement:m}=wn();Uye({open:i,dataState:o,disabled:a,dataDisabled:s,triggerId:"",currentRef:f,currentElement:m,value:xe(()=>n.value)});function y(b){const T=b.target;if(Array.from(r.parentElement.value?.querySelectorAll("[data-reka-collection-item]")??[]).findIndex(A=>A===T)===-1)return null;m0e(b,T,r.parentElement.value,{arrowKeyOptions:r.orientation,dir:r.direction.value,focus:!0})}return(b,T)=>(Z(),Se(v(MT),{"data-orientation":v(r).orientation,"data-disabled":s.value,"data-state":o.value,disabled:a.value,open:i.value,as:n.as,"as-child":n.asChild,"unmount-on-hide":n.unmountOnHide??v(r).unmountOnHide.value,onKeydown:Ep(y,["up","down","left","right","home","end"])},{default:be(()=>[bt(b.$slots,"default",{open:i.value})]),_:3},8,["data-orientation","data-disabled","data-state","disabled","open","as","as-child","unmount-on-hide"]))}}),Wye=Hye,Gye=Fe({__name:"AccordionContent",props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,n=DT(),r=QA();return wn(),(i,a)=>(Z(),Se(v(AT),{role:"region","as-child":t.asChild,as:i.as,"force-mount":t.forceMount,"aria-labelledby":v(r).triggerId,"data-state":v(r).dataState.value,"data-disabled":v(r).dataDisabled.value,"data-orientation":v(n).orientation,style:{"--reka-accordion-content-width":"var(--reka-collapsible-content-width)","--reka-accordion-content-height":"var(--reka-collapsible-content-height)"},onContentFound:a[0]||(a[0]=s=>v(n).changeModelValue(v(r).value.value))},{default:be(()=>[bt(i.$slots,"default")]),_:3},8,["as-child","as","force-mount","aria-labelledby","data-state","data-disabled","data-orientation"]))}}),Yye=Gye,Zye=Fe({__name:"AccordionHeader",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"h3"}},setup(e){const t=e,n=DT(),r=QA();return wn(),(i,a)=>(Z(),Se(v(Cn),{as:t.as,"as-child":t.asChild,"data-orientation":v(n).orientation,"data-state":v(r).dataState.value,"data-disabled":v(r).dataDisabled.value},{default:be(()=>[bt(i.$slots,"default")]),_:3},8,["as","as-child","data-orientation","data-state","data-disabled"]))}}),Kye=Zye,Xye=Fe({__name:"AccordionTrigger",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,n=DT(),r=QA();r.triggerId||=bu(void 0,"reka-accordion-trigger");function i(){const a=n.isSingle.value&&r.open.value&&!n.collapsible;r.disabled.value||a||n.changeModelValue(r.value.value)}return(a,s)=>(Z(),Se(v(IT),{id:v(r).triggerId,ref:v(r).currentRef,"data-reka-collection-item":"",as:t.as,"as-child":t.asChild,"aria-disabled":v(r).disabled.value||void 0,"aria-expanded":v(r).open.value||!1,"data-disabled":v(r).dataDisabled.value,"data-orientation":v(n).orientation,"data-state":v(r).dataState.value,disabled:v(r).disabled.value,onClick:i},{default:be(()=>[bt(a.$slots,"default")]),_:3},8,["id","as","as-child","aria-disabled","aria-expanded","data-disabled","data-orientation","data-state","disabled"]))}}),Jye=Xye;const[Ff,Qye]=hi("DialogRoot");var e1e=Fe({inheritAttrs:!1,__name:"DialogRoot",props:{open:{type:Boolean,required:!1,default:void 0},defaultOpen:{type:Boolean,required:!1,default:!1},modal:{type:Boolean,required:!1,default:!0},unmountOnHide:{type:Boolean,required:!1,default:!0}},emits:["update:open"],setup(e,{emit:t}){const n=e,i=Hi(n,"open",t,{defaultValue:n.defaultOpen,passive:n.open===void 0}),a=De(),s=De(),{modal:o,unmountOnHide:f}=bi(n);
16return Qye({open:i,modal:o,unmountOnHide:f,openModal:()=>{i.value=!0},onOpenChange:m=>{i.value=m},onOpenToggle:()=>{i.value=!i.value},contentId:"",titleId:"",descriptionId:"",triggerElement:a,contentElement:s}),(m,y)=>bt(m.$slots,"default",{open:v(i),close:()=>i.value=!1})}}),_H=e1e,t1e=Fe({__name:"DialogClose",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e;wn();const n=Ff();return(r,i)=>(Z(),Se(v(Cn),vn(t,{type:r.as==="button"?"button":void 0,onClick:i[0]||(i[0]=a=>v(n).onOpenChange(!1))}),{default:be(()=>[bt(r.$slots,"default")]),_:3},16,["type"]))}}),bH=t1e;const n1e="dismissableLayer.pointerDownOutside",r1e="dismissableLayer.focusOutside";function xH(e,t){if(!(t instanceof Element))return!1;const n=t.closest("[data-dismissable-layer]"),r=e.dataset.dismissableLayer===""?e:e.querySelector("[data-dismissable-layer]"),i=Array.from(e.ownerDocument.querySelectorAll("[data-dismissable-layer]"));return!!(n&&(r===n||i.indexOf(r)<i.indexOf(n)))}function i1e(e,t,n=!0){const r=t?.value?.ownerDocument??globalThis?.document,i=De(!1),a=De(()=>{});return ko(s=>{if(!Rl||!qt(n))return;const o=async m=>{const y=m.target;if(!(!t?.value||!y)){if(xH(t.value,y)){i.value=!1;return}if(m.target&&!i.value){let T=function(){kT(n1e,e,b)};const b={originalEvent:m};m.pointerType==="touch"?(r.removeEventListener("click",a.value),a.value=T,r.addEventListener("click",a.value,{once:!0})):T()}else r.removeEventListener("click",a.value);i.value=!1}},f=window.setTimeout(()=>{r.addEventListener("pointerdown",o)},0);s(()=>{window.clearTimeout(f),r.removeEventListener("pointerdown",o),r.removeEventListener("click",a.value)})}),{onPointerDownCapture:()=>{qt(n)&&(i.value=!0)}}}function a1e(e,t,n=!0){const r=t?.value?.ownerDocument??globalThis?.document,i=De(!1);return ko(a=>{if(!Rl||!qt(n))return;const s=async o=>{if(!t?.value)return;await ur(),await ur();const f=o.target;!t.value||!f||xH(t.value,f)||o.target&&!i.value&&kT(r1e,e,{originalEvent:o})};r.addEventListener("focusin",s),a(()=>r.removeEventListener("focusin",s))}),{onFocusCapture:()=>{qt(n)&&(i.value=!0)},onBlurCapture:()=>{qt(n)&&(i.value=!1)}}}var o1e=Fe({__name:"DismissableLayer",props:{disableOutsidePointerEvents:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},present:{type:Boolean,required:!1,default:!0}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","dismiss"],setup(e,{emit:t}){const n=e,r=t,{forwardRef:i,currentElement:a}=wn(),s=xe(()=>a.value?.ownerDocument??globalThis.document),o=xe(()=>Tl.layersRoot),f=xe(()=>a.value?Array.from(o.value).indexOf(a.value):-1),m=xe(()=>Tl.layersWithOutsidePointerEventsDisabled.size>0),y=xe(()=>{const x=Array.from(o.value),[$]=[...Tl.layersWithOutsidePointerEventsDisabled].slice(-1),A=x.indexOf($);return f.value>=A}),b=i1e(async x=>{const $=[...Tl.branches].some(A=>A?.contains(x.target));!n.present||!y.value||$||(r("pointerDownOutside",x),r("interactOutside",x),await ur(),x.defaultPrevented||r("dismiss"))},a,()=>n.present),T=a1e(x=>{const $=[...Tl.branches].some(A=>A?.contains(x.target));!n.present||$||(r("focusOutside",x),r("interactOutside",x),x.defaultPrevented||r("dismiss"))},a);return ege("Escape",x=>{!n.present||!(f.value===o.value.size-1)||(r("escapeKeyDown",x),x.defaultPrevented||r("dismiss"))}),nn([a,()=>n.disableOutsidePointerEvents,()=>n.present],([x,$,A],N,O)=>{!x||!A||$&&(Tl.layersWithOutsidePointerEventsDisabled.size===0&&(Tl.originalBodyPointerEvents=s.value.body.style.pointerEvents,s.value.body.style.pointerEvents="none"),Tl.layersWithOutsidePointerEventsDisabled.add(x),O(()=>{Tl.layersWithOutsidePointerEventsDisabled.delete(x),Tl.layersWithOutsidePointerEventsDisabled.size===0&&!cu(Tl.originalBodyPointerEvents)&&(s.value.body.style.pointerEvents=Tl.originalBodyPointerEvents)}))},{immediate:!0}),nn([a,()=>n.present],([x,$],A,N)=>{!x||!$||(o.value.add(x),N(()=>{o.value.delete(x)}))},{immediate:!0}),ko(x=>{x(()=>{a.value&&(o.value.delete(a.value),Tl.layersWithOutsidePointerEventsDisabled.delete(a.value))})}),(x,$)=>(Z(),Se(v(Cn),{ref:v(i),"as-child":x.asChild,as:x.as,"data-dismissable-layer":"",style:fo({pointerEvents:m.value?y.value?"auto":"none":void 0}),onFocusCapture:v(T).onFocusCapture,onBlurCapture:v(T).onBlurCapture,onPointerdownCapture:v(b).onPointerDownCapture},{default:be(()=>[bt(x.$slots,"default")]),_:3}
16,8,["as-child","as","style","onFocusCapture","onBlurCapture","onPointerdownCapture"]))}}),Pw=o1e;const s1e=Ame(()=>De([]));function l1e(){const e=s1e();return{add(t){const n=e.value[0];t!==n&&n?.pause(),e.value=fR(e.value,t),e.value.unshift(t)},remove(t){e.value=fR(e.value,t),e.value[0]?.resume()}}}function fR(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}const Y6="focusScope.autoFocusOnMount",Z6="focusScope.autoFocusOnUnmount",hR={bubbles:!1,cancelable:!0};function u1e(e,{select:t=!1}={}){const n=_s();for(const r of e)if(jm(r,{select:t}),_s()!==n)return!0}function c1e(e){const t=wH(e),n=pR(t,e),r=pR(t.reverse(),e);return[n,r]}function wH(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function pR(e,t){for(const n of e)if(!d1e(n,{upTo:t}))return n}function d1e(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function f1e(e){return e instanceof HTMLInputElement&&"select"in e}function jm(e,{select:t=!1}={}){if(e&&e.focus){const n=_s();e.focus({preventScroll:!0}),e!==n&&f1e(e)&&t&&e.select()}}var h1e=Fe({__name:"FocusScope",props:{loop:{type:Boolean,required:!1,default:!1},trapped:{type:Boolean,required:!1,default:!1},present:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["mountAutoFocus","unmountAutoFocus"],setup(e,{emit:t}){const n=e,r=t,{currentRef:i,currentElement:a}=wn(),s=De(null),o=l1e(),f=aa({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}});ko(b=>{if(!Rl)return;const T=a.value;if(!n.trapped)return;function x(O){if(f.paused||!T)return;const I=O.target;T.contains(I)?s.value=I:jm(s.value,{select:!0})}function $(O){if(f.paused||!T)return;const I=O.relatedTarget;I!==null&&(T.contains(I)||jm(s.value,{select:!0}))}function A(O){const I=s.value;if(I===null||!O.some(Q=>Q.removedNodes.length>0))return;const B=_s();if(B&&T.contains(B))return;T.contains(I)||jm(T)}document.addEventListener("focusin",x),document.addEventListener("focusout",$);const N=new MutationObserver(A);T&&N.observe(T,{childList:!0,subtree:!0}),b(()=>{document.removeEventListener("focusin",x),document.removeEventListener("focusout",$),N.disconnect()})});function m(b,T){const x=new CustomEvent(Y6,hR),$=A=>r("mountAutoFocus",A);b.addEventListener(Y6,$),b.dispatchEvent(x),b.removeEventListener(Y6,$),x.defaultPrevented||(u1e(wH(b),{select:!0}),_s()===T&&jm(b))}ko(async b=>{const T=a.value;if(await ur(),!T)return;n.present!==!1&&o.add(f);const x=_s();!T.contains(x)&&n.present!==!1&&m(T,x),b(()=>{const A=new CustomEvent(Z6,hR),N=O=>{r("unmountAutoFocus",O)};T.addEventListener(Z6,N),T.dispatchEvent(A),T.setAttribute("data-focus-scope-unmounting",""),setTimeout(()=>{A.defaultPrevented||jm(x??document.body,{select:!0}),T.removeEventListener(Z6,N),o.remove(f),T.removeAttribute("data-focus-scope-unmounting")},0)})}),nn(()=>n.present,async(b,T)=>{if(!Rl)return;if(b===!1&&T===!0){o.remove(f);return}if(b!==!0||T!==!1)return;o.add(f),await ur();const x=a.value;if(!x)return;const $=_s();x.contains($)||m(x,$)});function y(b){if(!n.loop&&!n.trapped||f.paused)return;const T=b.key==="Tab"&&!b.altKey&&!b.ctrlKey&&!b.metaKey,x=_s();if(T&&x){const $=b.currentTarget,[A,N]=c1e($);A&&N?!b.shiftKey&&x===N?(b.preventDefault(),n.loop&&jm(A,{select:!0})):b.shiftKey&&x===A&&(b.preventDefault(),n.loop&&jm(N,{select:!0})):x===$&&b.preventDefault()}}return(b,T)=>(Z(),Se(v(Cn),{ref_key:"currentRef",ref:i,tabindex:"-1","as-child":b.asChild,as:b.as,onKeydown:y},{default:be(()=>[bt(b.$slots,"default")]),_:3},8,["as-child","as"]))}}),eI=h1e;function p1e(e){return e?"open":"closed"}function mR(e){const t=_s();for(const n of e)if(n===t||(n.focus(),_s()!==t))return}var m1e=Fe({__name:"DialogContentImpl",props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},present:{type:Boolean,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,r=t,i=Ff(),{forwardRef:a,currentElement:s}=wn();return i.titleId||=bu(void 0,"reka-dialog-title"),i.descriptionId||=bu(void 0,"reka-dialog-description"),Hn(()=>{i.contentElement=s,_s()!==document.body&&(i.triggerElement.value=_s())}),(o,f)=>(Z(),Se(v(eI),{"as-child":"",loop:"",trapped:n.trapFocus,present:n.present,onMountAutoFocus:f[5]||(f[5]=m
16=>r("openAutoFocus",m)),onUnmountAutoFocus:f[6]||(f[6]=m=>r("closeAutoFocus",m))},{default:be(()=>[ke(v(Pw),vn({id:v(i).contentId,ref:v(a),as:o.as,"as-child":o.asChild,present:n.present,"disable-outside-pointer-events":o.disableOutsidePointerEvents,role:"dialog","aria-describedby":v(i).descriptionId,"aria-labelledby":v(i).titleId,"data-state":v(p1e)(v(i).open.value)},o.$attrs,{onDismiss:f[0]||(f[0]=m=>v(i).onOpenChange(!1)),onEscapeKeyDown:f[1]||(f[1]=m=>r("escapeKeyDown",m)),onFocusOutside:f[2]||(f[2]=m=>r("focusOutside",m)),onInteractOutside:f[3]||(f[3]=m=>r("interactOutside",m)),onPointerDownOutside:f[4]||(f[4]=m=>r("pointerDownOutside",m))}),{default:be(()=>[bt(o.$slots,"default")]),_:3},16,["id","as","as-child","present","disable-outside-pointer-events","aria-describedby","aria-labelledby","data-state"])]),_:3},8,["trapped","present"]))}}),SH=m1e,g1e=Fe({__name:"DialogContentModal",props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},present:{type:Boolean,required:!0}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,r=t,i=Ff(),a=Ew(r),{forwardRef:s,currentElement:o}=wn(),f=xe(()=>n.present?o.value:void 0);JA(f);const m=xe(()=>{const{present:y,...b}=n;return b});return nn(()=>n.present,(y,b)=>{!y&&b&&i.triggerElement.value?.focus()}),(y,b)=>(Z(),Se(SH,vn({...m.value,...v(a)},{ref:v(s),present:y.present,"trap-focus":v(i).open.value,"disable-outside-pointer-events":n.disableOutsidePointerEvents,onCloseAutoFocus:b[0]||(b[0]=T=>{T.defaultPrevented||(T.preventDefault(),v(i).triggerElement.value?.focus())}),onPointerDownOutside:b[1]||(b[1]=T=>{const x=T.detail.originalEvent,$=x.button===0&&x.ctrlKey===!0;(x.button===2||$)&&T.preventDefault()}),onFocusOutside:b[2]||(b[2]=T=>{T.preventDefault()})}),{default:be(()=>[bt(y.$slots,"default")]),_:3},16,["present","trap-focus","disable-outside-pointer-events"]))}}),y1e=g1e,v1e=Fe({__name:"DialogContentNonModal",props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},present:{type:Boolean,required:!0}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,i=Ew(t);wn();const a=Ff(),s=De(!1),o=De(!1),f=xe(()=>{const{present:m,...y}=n;return y});return nn(()=>n.present,(m,y)=>{!m&&y&&(s.value||a.triggerElement.value?.focus(),s.value=!1,o.value=!1)}),(m,y)=>(Z(),Se(SH,vn({...f.value,...v(i)},{present:m.present,"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:y[0]||(y[0]=b=>{b.defaultPrevented||(s.value||v(a).triggerElement.value?.focus(),b.preventDefault()),s.value=!1,o.value=!1}),onInteractOutside:y[1]||(y[1]=b=>{b.defaultPrevented||(s.value=!0,b.detail.originalEvent.type==="pointerdown"&&(o.value=!0));const T=b.target;v(a).triggerElement.value?.contains(T)&&b.preventDefault(),b.detail.originalEvent.type==="focusin"&&o.value&&b.preventDefault()})}),{default:be(()=>[bt(m.$slots,"default")]),_:3},16,["present"]))}}),_1e=v1e,b1e=Fe({__name:"DialogContent",props:{forceMount:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1,default:void 0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,r=t,i=Ff(),a=Ew(r),{forwardRef:s}=wn();return(o,f)=>(Z(),Se(v(Og),{present:o.forceMount||v(i).open.value,"force-mount":o.forceMount||!v(i).unmountOnHide.value},{default:be(({present:m})=>[v(i).modal.value?Ol((Z(),Se(y1e,vn({key:0,ref:v(s),present:v(i).unmountOnHide.value||m},{...n,...v(a),...o.$attrs}),{default:be(()=>[bt(o.$slots,"default")]),_:2},1040,["present"])),[[p_,v(i).unmountOnHide.value||m]]):Ol((Z(),Se(_1e,vn({key:1,ref:v(s),present:v(i).unmountOnHide.value||m},{...n,...v(a),...o.$attrs}),{default:be(()=>[bt(o.$slots,"default")]),_:2},1040,["present"])),[[p_,v(i).unmountOnHide.value||m]])]),_:3},8,["present","force-mount"]))}}),CH=b1e,x1e=Fe({__name:"DialogDescription",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"p"}},setup(e){const t=e;wn();const n=Ff();return(r,i)=>(Z(),Se(v(Cn),vn(t,{id:v(n).descriptionId}),{default:be(()=>[bt(r.$slots,"default")]),_:3},16,["id"]))}}),TH=x1e,w1e=Fe({__name:"DialogOverlayImpl",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1},present:{type:Boolean,required:!1,default:!0}},setup(e){const t=e,n=Ff(),r=FA(t.present);return nn(()=>t.present,i=>r.value=i),wn(),(i,a)=>(Z(),Se(v(Cn),{as:i.as,"as-child":i.asChild,"data-state":v(n).open.value?"open":"closed",style:{"pointer-events":"auto"},onPointerdown:a[0]||(a[0]=ti(()=>{},["left","self","prevent"]))},{default:be(()=>[bt(i.$slots,"default")]),_:3},8,["as","as-child","data-state"]))}}),S1e=w1e,C1e=Fe({__name:"DialogOverlay",props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=Ff(),{forwardRef:n}=wn();return(r,i)=>v(t)?.modal.value?(Z(),Se(v(Og),{key:0,present:r.forceMount||v(t).open.value,"force-mount":r.forceMount||!v(t).unmountOnHide.value},{default:be(({present:a})=>[Ol(ke(S1e,vn(r.$attrs,{ref:v(n),as:r.as,"as-child":r.asChild,present:v(t).unmountOnHide.value||a}),{default:be(()=>[bt(r.$slots,"default")]),_:2},1040,["as","as-child","present"]),[[p_,v(t).unmountOnHide.value||a]])]),_:3},8,["present","force-mount"])):Ne("v-if",!0)}}),kH=C1e,T1e=Fe({__name:"Teleport",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const t=e,n=G_({}),r=xe(()=>t.to??n.teleportTo?.value??"body"),i=wT();return(a,s)=>v(i)||a.forceMount?(Z(),Se(Wz,{key:0,to:r.value,disabled:a.disabled,defer:a.defer},[bt(a.$slots,"default")],8,["to","disabled","defer"])):Ne("v-if",!0)}}),$w=T1e,k1e=Fe({__name:"DialogPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const t=e;return(n,r)=>(Z(),Se(v($w),gr(yr(t)),{default:be(()=>[bt(n.$slots,"default")]),_:3},16))}}),tI=k1e,E1e=Fe({__name:"DialogTitle",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"h2"}},setup(e){const t=e,n=Ff();return wn(),(r,i)=>(Z(),Se(v(Cn),vn(t,{id:v(n).titleId}),{default:be(()=>[bt(r.$slots,"default")]),_:3},16,["id"]))}}),P1e=E1e,$1e=Fe({__name:"DialogTrigger",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,n=Ff(),{forwardRef:r,currentElement:i}=wn();return n.contentId||=bu(void 0,"reka-dialog-content"),Hn(()=>{n.triggerElement.value=i.value}),(a,s)=>(Z(),Se(v(Cn),vn(t,{ref:v(r),type:a.as==="button"?"button":void 0,"aria-haspopup":"dialog","aria-expanded":v(n).open.value||!1,"aria-controls":v(n).open.value?v(n).contentId:void 0,"data-state":v(n).open.value?"open":"closed",onClick:v(n).onOpenToggle}),{default:be(()=>[bt(a.$slots,"default")]),_:3},16,["type","aria-expanded","aria-controls","data-state","onClick"]))}}),M1e=$1e;const gR="data-reka-collection-item";function zf(e={}){const{key:t="",isProvider:n=!1}=e,r=`${t}CollectionProvider`;let i;n?(i={collectionRef:De(),itemMap:De(new Map)},co(r,i)):i=Ai(r);const a=(y=!1)=>{const b=i.collectionRef.value;if(!b)return[];const T=Array.from(b.querySelectorAll(`[${gR}]`)),x=new Map(T.map((N,O)=>[N,O])),A=Array.from(i.itemMap.value.values()).sort((N,O)=>(x.get(N.ref)??-1)-(x.get(O.ref)??-1));return y?A:A.filter(N=>N.ref.dataset.disabled!=="")},s=Fe({name:"CollectionSlot",inheritAttrs:!1,setup(y,{slots:b,attrs:T}){const{primitiveElement:x,currentElement:$}=Xy();return nn($,()=>{i.collectionRef.value=$.value}),()=>Yn(h$,{ref:x,...T},b)}}),o=Fe({name:"CollectionItem",inheritAttrs:!1,props:{value:{validator:()=>!0}},setup(y,{slots:b,attrs:T}){const{primitiveElement:x,currentElement:$}=Xy();return ko(A=>{if($.value){const N=O_($.value);i.itemMap.value.set(N,{ref:$.value,value:y.value}),A(()=>i.itemMap.value.delete(N))}}),()=>Yn(h$,{...T,[gR]:"",ref:x},b)}}),f=xe(()=>
16Array.from(i.itemMap.value.values())),m=xe(()=>i.itemMap.value.size);return{getItems:a,reactiveItems:f,itemMapSize:m,CollectionSlot:s,CollectionItem:o}}var A1e=Fe({__name:"VisuallyHidden",props:{feature:{type:String,required:!1,default:"focusable"},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){return(t,n)=>(Z(),Se(v(Cn),{as:t.as,"as-child":t.asChild,"aria-hidden":t.feature==="focusable"||t.feature==="fully-hidden"?"true":void 0,"data-hidden":t.feature==="fully-hidden"?"":void 0,tabindex:t.feature==="fully-hidden"?"-1":void 0,style:{position:"absolute",border:0,width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",whiteSpace:"nowrap",wordWrap:"normal",top:"-1px",left:"-1px"}},{default:be(()=>[bt(t.$slots,"default")]),_:3},8,["as","as-child","aria-hidden","data-hidden","tabindex"]))}}),Mw=A1e,I1e=Fe({inheritAttrs:!1,__name:"VisuallyHiddenInputBubble",props:{name:{type:String,required:!0},value:{type:null,required:!0},checked:{type:Boolean,required:!1,default:void 0},required:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},feature:{type:String,required:!1,default:"fully-hidden"}},setup(e){const t=e,{primitiveElement:n,currentElement:r}=Xy(),i=xe(()=>t.checked??t.value);return nn(i,(a,s)=>{if(!r.value)return;const o=r.value,f=window.HTMLInputElement.prototype,y=Object.getOwnPropertyDescriptor(f,"value").set;if(y&&a!==s){const b=new Event("input",{bubbles:!0}),T=new Event("change",{bubbles:!0});y.call(o,a),o.dispatchEvent(b),o.dispatchEvent(T)}}),(a,s)=>(Z(),Se(Mw,vn({ref_key:"primitiveElement",ref:n},{...t,...a.$attrs},{as:"input"}),null,16))}}),yR=I1e,D1e=Fe({inheritAttrs:!1,__name:"VisuallyHiddenInput",props:{name:{type:String,required:!0},value:{type:null,required:!0},checked:{type:Boolean,required:!1,default:void 0},required:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},feature:{type:String,required:!1,default:"fully-hidden"}},setup(e){const t=e,n=xe(()=>typeof t.value=="object"&&Array.isArray(t.value)&&t.value.length===0&&t.required),r=xe(()=>typeof t.value=="string"||typeof t.value=="number"||typeof t.value=="boolean"||t.value===null||t.value===void 0?[{name:t.name,value:t.value}]:typeof t.value=="object"&&Array.isArray(t.value)?t.value.flatMap((i,a)=>typeof i=="object"?Object.entries(i).map(([s,o])=>({name:`${t.name}[${a}][${s}]`,value:o})):{name:`${t.name}[${a}]`,value:i}):t.value!==null&&typeof t.value=="object"&&!Array.isArray(t.value)?Object.entries(t.value).map(([i,a])=>({name:`${t.name}[${i}]`,value:a})):[]);return(i,a)=>(Z(),Ce(Ct,null,[Ne(" We render single input if it's required "),n.value?(Z(),Se(yR,vn({key:i.name},{...t,...i.$attrs},{name:i.name,value:i.value}),null,16,["name","value"])):(Z(!0),Ce(Ct,{key:1},ln(r.value,s=>(Z(),Se(yR,vn({key:s.name},{ref_for:!0},{...t,...i.$attrs},{name:s.name,value:s.value}),null,16,["name","value"]))),128))],2112))}}),l1=D1e;const L1e="rovingFocusGroup.onEntryFocus",O1e={bubbles:!1,cancelable:!0},R1e={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function B1e(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function F1e(e,t,n){const r=B1e(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return R1e[r]}function EH(e,t=!1){const n=_s();for(const r of e)if(r===n||(r.focus({preventScroll:t}),_s()!==n))return}function z1e(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const[PH,N1e]=hi("PopperRoot");var V1e=Fe({inheritAttrs:!1,__name:"PopperRoot",setup(e){const t=De();return N1e({anchor:t,onAnchorChange:n=>t.value=n}),(n,r)=>bt(n.$slots,"default")}}),LT=V1e,q1e=Fe({__name:"PopperAnchor",props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,{forwardRef:n,currentElement:r}=wn(),i=PH();return OM(()=>{i.onAnchorChange(t.reference??r.value)}),(a,s)=>(Z(),Se(v(Cn),{ref:v(n),as:a.as,"as-child":a.asChild},{default:be(()=>[bt(a.$slots,"default")]),_:3},8,["as","as-child"]))}}),Aw=q1e;const j1e={key:0,d:"M0 0L6 6L12 0"},U1e={key:1,d:"M0 0L4.58579 4.58579C5.36683 5.36683 6.63316 5.36684 7.41421 4.58579L12 0"};var H1e=Fe({__name:"Arrow",props:{width:{type:Number,required:!1,default:10},height:{type:Number,required:!1,default:5},rounded:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"svg"}},setup(e){const t=e;return wn(),(n,r)=>(Z(),Se(v(Cn),vn(t,{width:n.width,height:n.height,viewBox:n.asChild?void 0:"0 0 12 6",preserveAspectRatio:n.asChild?void 0:"none"}),{default:be(()=>[bt(n.$slots,"default",{},()=>
16[n.rounded?(Z(),Ce("path",U1e)):(Z(),Ce("path",j1e))])]),_:3},16,["width","height","viewBox","preserveAspectRatio"]))}}),W1e=H1e;function G1e(e){return e!==null}function Y1e(e){return{name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:i}=t,s=i.arrow?.centerOffset!==0,o=s?0:e.arrowWidth,f=s?0:e.arrowHeight,[m,y]=m$(n),b={start:e.dir==="rtl"?"100%":"0%",center:"50%",end:e.dir==="rtl"?"0%":"100%"}[y],T={start:"0%",center:"50%",end:"100%"}[y],x=(i.arrow?.x??0)+o/2,$=(i.arrow?.y??0)+f/2;let A="",N="";return m==="bottom"?(A=s?b:`${x}px`,N=`${-f}px`):m==="top"?(A=s?b:`${x}px`,N=`${r.floating.height+f}px`):m==="right"?(A=`${-f}px`,N=s?T:`${$}px`):m==="left"&&(A=`${r.floating.width+f}px`,N=s?T:`${$}px`),{data:{x:A,y:N}}}}}function m$(e){const[t,n="center"]=e.split("-");return[t,n]}const Z1e=["top","right","bottom","left"],wg=Math.min,cp=Math.max,z4=Math.round,tS=Math.floor,dp=e=>({x:e,y:e}),K1e={left:"right",right:"left",bottom:"top",top:"bottom"};function $H(e,t,n){return cp(e,wg(t,n))}function wp(e,t){return typeof e=="function"?e(t):e}function Sg(e){return e.split("-")[0]}function X_(e){return e.split("-")[1]}function nI(e){return e==="x"?"y":"x"}function rI(e){return e==="y"?"height":"width"}function Cf(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function iI(e){return nI(Cf(e))}function X1e(e,t,n){n===void 0&&(n=!1);const r=X_(e),i=iI(e),a=rI(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=N4(s)),[s,N4(s)]}function J1e(e){const t=N4(e);return[g$(e),t,g$(t)]}function g$(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const vR=["left","right"],_R=["right","left"],Q1e=["top","bottom"],eve=["bottom","top"];function tve(e,t,n){switch(e){case"top":case"bottom":return n?t?_R:vR:t?vR:_R;case"left":case"right":return t?Q1e:eve;default:return[]}}function nve(e,t,n,r){const i=X_(e);let a=tve(Sg(e),n==="start",r);return i&&(a=a.map(s=>s+"-"+i),t&&(a=a.concat(a.map(g$)))),a}function N4(e){const t=Sg(e);return K1e[t]+e.slice(t.length)}function rve(e){var t,n,r,i;return{top:(t=e.top)!=null?t:0,right:(n=e.right)!=null?n:0,bottom:(r=e.bottom)!=null?r:0,left:(i=e.left)!=null?i:0}}function MH(e){return typeof e!="number"?rve(e):{top:e,right:e,bottom:e,left:e}}function V4(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function bR(e,t,n){let{reference:r,floating:i}=e;const a=Cf(t),s=iI(t),o=rI(s),f=Sg(t),m=a==="y",y=r.x+r.width/2-i.width/2,b=r.y+r.height/2-i.height/2,T=r[o]/2-i[o]/2;let x;switch(f){case"top":x={x:y,y:r.y-i.height};break;case"bottom":x={x:y,y:r.y+r.height};break;case"right":x={x:r.x+r.width,y:b};break;case"left":x={x:r.x-i.width,y:b};break;default:x={x:r.x,y:r.y}}const $=X_(t);return $&&(x[s]+=T*($==="end"?1:-1)*(n&&m?-1:1)),x}async function ive(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:a,rects:s,elements:o,strategy:f}=e,{boundary:m="clippingAncestors",rootBoundary:y="viewport",elementContext:b="floating",altBoundary:T=!1,padding:x=0}=wp(t,e),$=MH(x),N=o[T?b==="floating"?"reference":"floating":b],O=V4(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(N)))==null||n?N:N.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(o.floating)),boundary:m,rootBoundary:y,strategy:f})),I=b==="floating"?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,U=await(a.getOffsetParent==null?void 0:a.getOffsetParent(o.floating)),B=await(a.isElement==null?void 0:a.isElement(U))&&await(a.getScale==null?void 0:a.getScale(U))||{x:1,y:1},q=V4(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:I,offsetParent:U,strategy:f}):I);return{top:(O.top-q.top+$.top)/B.y,bottom:(q.bottom-O.bottom+$.bottom)/B.y,left:(O.left-q.left+$.left)/B.x,right:(q.right-O.right+$.right)/B.x}}const ave=50,ove=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:s}=n,o=s.detectOverflow?s:{...s,detectOverflow:ive},f=await(s.isRTL==null?void 0:s.isRTL(t));let m=await s.getElementRects({reference:e,floating:t,strategy:i}
16),{x:y,y:b}=bR(m,r,f),T=r,x=0;const $={};for(let A=0;A<a.length;A++){const N=a[A];if(!N)continue;const{name:O,fn:I}=N,{x:U,y:B,data:q,reset:Q}=await I({x:y,y:b,initialPlacement:r,placement:T,strategy:i,middlewareData:$,rects:m,platform:o,elements:{reference:e,floating:t}});y=U??y,b=B??b,$[O]={...$[O],...q},Q&&x<ave&&(x++,typeof Q=="object"&&(Q.placement&&(T=Q.placement),Q.rects&&(m=Q.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):Q.rects),{x:y,y:b}=bR(m,T,f)),A=-1)}return{x:y,y:b,placement:T,strategy:i,middlewareData:$}},sve=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:a,platform:s,elements:o,middlewareData:f}=t,{element:m,padding:y=0}=wp(e,t)||{};if(m==null)return{};const b=MH(y),T={x:n,y:r},x=iI(i),$=rI(x),A=await s.getDimensions(m),N=x==="y",O=N?"top":"left",I=N?"bottom":"right",U=N?"clientHeight":"clientWidth",B=a.reference[$]+a.reference[x]-T[x]-a.floating[$],q=T[x]-a.reference[x],Q=await(s.getOffsetParent==null?void 0:s.getOffsetParent(m));let ee=Q?Q[U]:0;(!ee||!await(s.isElement==null?void 0:s.isElement(Q)))&&(ee=o.floating[U]||a.floating[$]);const Y=B/2-q/2,z=ee/2-A[$]/2-1,H=wg(b[O],z),K=wg(b[I],z),ne=ee-A[$]-K,le=ee/2-A[$]/2+Y,pe=$H(H,le,ne),ae=!f.arrow&&X_(i)!=null&&le!==pe&&a.reference[$]/2-(le<H?H:K)-A[$]/2<0,se=ae?le<H?le-H:le-ne:0;return{[x]:T[x]+se,data:{[x]:pe,centerOffset:le-pe-se,...ae&&{alignmentOffset:se}},reset:ae}}}),lve=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:a,rects:s,initialPlacement:o,platform:f,elements:m}=t,{mainAxis:y=!0,crossAxis:b=!0,fallbackPlacements:T,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:$="none",flipAlignment:A=!0,...N}=wp(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const O=Sg(i),I=Cf(o),U=Sg(o)===o,B=await(f.isRTL==null?void 0:f.isRTL(m.floating)),q=T||(U||!A?[N4(o)]:J1e(o)),Q=$!=="none";!T&&Q&&q.push(...nve(o,A,$,B));const ee=[o,...q],Y=await f.detectOverflow(t,N),z=[];let H=((r=a.flip)==null?void 0:r.overflows)||[];if(y&&z.push(Y[O]),b){const pe=X1e(i,s,B);z.push(Y[pe[0]],Y[pe[1]])}if(H=[...H,{placement:i,overflows:z}],!z.every(pe=>pe<=0)){var K,ne;const pe=(((K=a.flip)==null?void 0:K.index)||0)+1,ae=ee[pe];if(ae&&(!(b==="alignment"?I!==Cf(ae):!1)||H.every(ye=>Cf(ye.placement)===I?ye.overflows[0]>0:!0)))return{data:{index:pe,overflows:H},reset:{placement:ae}};let se=(ne=H.filter(ce=>ce.overflows[0]<=0).sort((ce,ye)=>ce.overflows[1]-ye.overflows[1])[0])==null?void 0:ne.placement;if(!se)switch(x){case"bestFit":{var le;const ce=(le=H.filter(ye=>{if(Q){const $e=Cf(ye.placement);return $e===I||$e==="y"}return!0}).map(ye=>[ye.placement,ye.overflows.filter($e=>$e>0).reduce(($e,Be)=>$e+Be,0)]).sort((ye,$e)=>ye[1]-$e[1])[0])==null?void 0:le[0];ce&&(se=ce);break}case"initialPlacement":se=o;break}if(i!==se)return{reset:{placement:se}}}return{}}}};function xR(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function wR(e){return Z1e.some(t=>e[t]>=0)}const uve=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:i="referenceHidden",...a}=wp(e,t);switch(i){case"referenceHidden":{const s=await r.detectOverflow(t,{...a,elementContext:"reference"}),o=xR(s,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:wR(o)}}}case"escaped":{const s=await r.detectOverflow(t,{...a,altBoundary:!0}),o=xR(s,n.floating);return{data:{escapedOffsets:o,escaped:wR(o)}}}default:return{}}}}},AH=new Set(["left","top"]);async function cve(e,t){const{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=Sg(n),o=X_(n),f=Cf(n)==="y",m=AH.has(s)?-1:1,y=a&&f?-1:1,b=wp(t,e);let{mainAxis:T,crossAxis:x,alignmentAxis:$}=typeof b=="number"?{mainAxis:b,crossAxis:0,alignmentAxis:null}:{mainAxis:b.mainAxis||0,crossAxis:b.crossAxis||0,alignmentAxis:b.alignmentAxis};return o&&typeof $=="number"&&(x=o==="end"?$*-1:$),f?{x:x*y,y:T*m}:{x:T*m,y:x*y}}const dve=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:a,placement:s,middlewareData:o}=t,f=await cve(t,e);return s===((n=o.offset)==null?void 0:n.placement)&&(r=o.arrow)!=null&&r.alignmentOffset?{}:{x:i+f.x,y:a+f.y,data:{...f,placement:s}}}}},fve=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i,platform:a}=t,{mainAxis:s=!0,crossAxis:o=!1,limiter:f={fn:I=>{let{x:U,y:B}=I;return{x:U,y:B}}},...m}=wp(e,t),y={x:n,y:r},b=await a.detectOverflow(t,m),T=Cf(i),x=nI(T);let $=y[x],A=y[T];const N=(I,U)=>$H(U+b[I==="y"?"top":"left"],U,U-b[I==="y"?"bottom":"right"]);s&&($=N(x,$)),o&&(A=N(T,A));const O=f.fn({...t,[x]:$,[T]:A});return{...O,data:{x:O.x-n,y:O.y-r,enabled:{[x]:s,[T]:o}}}}}},hve=function(e){return e===void 0&&(e={}),{options:e,fn(t){var n,r;const{x:i,y:a,placement:s,rects:o,middlewareData:f}=t,{offset:m=0,mainAxis:y=!0,crossAxis:b=!0}=wp(e,t),T={x:i,y:a},x=Cf(s),$=nI(x);let A=T[$],N=T[x];const O=wp(m,t),I=typeof O=="number"?{mainAxis:O,crossAxis:0}:{mainAxis:(n=O.mainAxis)!=null?n:0,crossAxis:(r=O.crossAxis)!=null?r:0};if(y){const q=$==="y"?"height":"width",Q=o.reference[$]-o.floating[q]+I.mainAxis,ee=o.reference[$]+o.reference[q]-I.mainAxis;A<Q?A=Q:A>ee&&(A=ee)}if(b){var U,B;const q=$==="y"?"width":"height",Q=AH.has(Sg(s)),ee=o.reference[x]-o.floating[q]+(Q&&((U=f.offset)==null?void 0:U[x])||0)+(Q?0:I.crossAxis),Y=o.reference[x]+o.reference[q]+(Q?0:((B=f.offset)==null?void 0:B[x])||0)-(Q?I.crossAxis:0);N<ee?N=ee:N>Y&&(N=Y)}return{[$]:A,[x]:N}}}},pve=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:i,elements:a}=t,{apply:s=()=>{},...o}=wp(e,t),f=await i.detectOverflow(t,o),m=Sg(n),y=X_(n),b=Cf(n)==="y",{width:T,height:x}=r.floating;let $,A;m==="top"||m==="bottom"?($=m,A=y===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(A=m,$=y==="end"?"top":"bottom");const N=x-f.top-f.bottom,O=T-f.left-f.right,I=wg(x-f[$],N),U=wg(T-f[A],O),B=t.middlewareData.shift,q=!B;let Q=I,ee=U;B!=null&&B.enabled.x&&(ee=O),B!=null&&B.enabled.y&&(Q=N),q&&!y&&(b?ee=T-2*cp(f.left,f.right):Q=x-2*cp(f.top,f.bottom)),await s({...t,availableWidth:ee,availableHeight:Q});const Y=await i.getDimensions(a.floating);return T!==Y.width||x!==Y.height?{reset:{rects:!0}}:{}}}};function OT(){return typeof window<"u"}function u1(e){return aI(e)?(e.nodeName||"").toLowerCase():"#document"}function Dl(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function $p(e){var t;return(t=(aI(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}
16function aI(e){return OT()?e instanceof Node||e instanceof Dl(e).Node:!1}function Df(e){return OT()?e instanceof Element||e instanceof Dl(e).Element:!1}function Rg(e){return OT()?e instanceof HTMLElement||e instanceof Dl(e).HTMLElement:!1}function SR(e){return!OT()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Dl(e).ShadowRoot}function RT(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Lf(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!=="inline"&&i!=="contents"}function mve(e){return/^(table|td|th)$/.test(u1(e))}function BT(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const gve=/transform|translate|scale|rotate|perspective|filter/,yve=/paint|layout|strict|content/,ly=e=>!!e&&e!=="none";let K6;function oI(e){const t=Df(e)?Lf(e):e;return ly(t.transform)||ly(t.translate)||ly(t.scale)||ly(t.rotate)||ly(t.perspective)||!sI()&&(ly(t.backdropFilter)||ly(t.filter))||gve.test(t.willChange||"")||yve.test(t.contain||"")}function vve(e){let t=Jy(e);for(;Rg(t)&&!jx(t);){if(oI(t))return t;if(BT(t))return null;t=Jy(t)}return null}function sI(){return K6==null&&(K6=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),K6}function jx(e){return/^(html|body|#document)$/.test(u1(e))}function Lf(e){return Dl(e).getComputedStyle(e)}function FT(e){return Df(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Jy(e){if(u1(e)==="html")return e;const t=e.assignedSlot||e.parentNode||SR(e)&&e.host||$p(e);return SR(t)?t.host:t}function IH(e){const t=Jy(e);return jx(t)?(e.ownerDocument||e).body:Rg(t)&&RT(t)?t:IH(t)}function Ux(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=IH(e),a=i===((r=e.ownerDocument)==null?void 0:r.body),s=Dl(i);if(a){const o=y$(s);return t.concat(s,s.visualViewport||[],RT(i)?i:[],o&&n?Ux(o):[])}else return t.concat(i,Ux(i,[],n))}function y$(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function DH(e){const t=Lf(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Rg(e),a=i?e.offsetWidth:n,s=i?e.offsetHeight:r,o=z4(n)!==a||z4(r)!==s;return o&&(n=a,r=s),{width:n,height:r,$:o}}function lI(e){return Df(e)?e:e.contextElement}function o_(e){const t=lI(e);if(!Rg(t))return dp(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:a}=DH(t);let s=(a?z4(n.width):n.width)/r,o=(a?z4(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!o||!Number.isFinite(o))&&(o=1),{x:s,y:o}}const _ve=dp(0);function LH(e){const t=Dl(e);return!sI()||!t.visualViewport?_ve:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function bve(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===Dl(e)}function Qy(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),a=lI(e);let s=dp(1);t&&(r?Df(r)&&(s=o_(r)):s=o_(e));const o=bve(a,n,r)?LH(a):dp(0);let f=(i.left+o.x)/s.x,m=(i.top+o.y)/s.y,y=i.width/s.x,b=i.height/s.y;if(a&&r){const T=Dl(a),x=Df(r)?Dl(r):r;let $=T,A=y$($);for(;A&&x!==$;){const N=o_(A),O=A.getBoundingClientRect(),I=Lf(A),U=O.left+(A.clientLeft+parseFloat(I.paddingLeft))*N.x,B=O.top+(A.clientTop+parseFloat(I.paddingTop))*N.y;f*=N.x,m*=N.y,y*=N.x,b*=N.y,f+=U,m+=B,$=Dl(A),A=y$($)}}return V4({width:y,height:b,x:f,y:m})}function zT(e,t){const n=FT(e).scrollLeft;return t?t.left+n:Qy($p(e)).left+n}function OH(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-zT(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function xve(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const a=i==="fixed",s=$p(r),o=t?BT(t.floating):!1;if(r===s||o&&a)return n;let f={scrollLeft:0,scrollTop:0},m=dp(1);const y=dp(0),b=Rg(r);if((b||!a)&&((u1(r)!=="body"||RT(s))&&(f=FT(r)),b)){const x=Qy(r);m=o_(r),y.x=x.x+r.clientLeft,y.y=x.y+r.clientTop}const T=s&&!b&&!a?OH(s,f):dp(0);return{width:n.width*m.x,height:n.height*m.y,x:n.x*m.x-f.scrollLeft*m.x+y.x+T.x,y:n.y*m.y-f.scrollTop*m.y+y.y+T.y}}function wve(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function Sve(e){const t=FT(e),n=e.ownerDocument.body,r=cp(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=cp(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let a=-t.scrollLeft+zT(e);const s=-t.scrollTop;return Lf(n).direction==="rtl"&&(a+=cp(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:s}}const Cve=25;function Tve(e,t,n){n===void 0&&(n="viewport");
16const r=n==="layoutViewport",i=Dl(e),a=$p(e),s=i.visualViewport;let o=a.clientWidth,f=a.clientHeight,m=0,y=0;if(s){const T=!sI()||t==="fixed";r?T||(m=-s.offsetLeft,y=-s.offsetTop):(o=s.width,f=s.height,T&&(m=s.offsetLeft,y=s.offsetTop))}if(zT(a)<=0){const T=a.ownerDocument,x=T.body,$=getComputedStyle(x),A=T.compatMode==="CSS1Compat"&&parseFloat($.marginLeft)+parseFloat($.marginRight)||0,N=Math.abs(a.clientWidth-x.clientWidth-A),O=getComputedStyle(a).scrollbarGutter==="stable both-edges"?N/2:N;O<=Cve&&(o-=O)}return{width:o,height:f,x:m,y}}function kve(e,t){const n=Qy(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=o_(e),s=e.clientWidth*a.x,o=e.clientHeight*a.y,f=i*a.x,m=r*a.y;return{width:s,height:o,x:f,y:m}}function CR(e,t,n){let r;if(t==="viewport"||t==="layoutViewport")r=Tve(e,n,t);else if(t==="document")r=Sve($p(e));else if(Df(t))r=kve(t,n);else{const i=LH(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return V4(r)}function Eve(e,t){const n=t.get(e);if(n)return n;let r=Ux(e,[],!1).filter(o=>Df(o)&&u1(o)!=="body"),i=null;const a=Lf(e).position==="fixed";let s=a?Jy(e):e;for(;Df(s)&&!jx(s);){const o=Lf(s),f=oI(s),m=i?i.position:a?"fixed":"";!f&&(m==="fixed"||m==="absolute"&&o.position==="static")?r=r.filter(b=>b!==s):i=o,s=Jy(s)}return t.set(e,r),r}function Pve(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s=[...n==="clippingAncestors"?BT(t)?[]:Eve(t,this._c):[].concat(n),r],o=CR(t,s[0],i);let f=o.top,m=o.right,y=o.bottom,b=o.left;for(let T=1;T<s.length;T++){const x=CR(t,s[T],i);f=cp(x.top,f),m=wg(x.right,m),y=wg(x.bottom,y),b=cp(x.left,b)}return{width:m-b,height:y-f,x:b,y:f}}function $ve(e){const{width:t,height:n}=DH(e);return{width:t,height:n}}function Mve(e,t,n){const r=Rg(t),i=$p(t),a=n==="fixed",s=Qy(e,!0,a,t);let o={scrollLeft:0,scrollTop:0};const f=dp(0);if((r||!a)&&((u1(t)!=="body"||RT(i))&&(o=FT(t)),r)){const T=Qy(t,!0,a,t);f.x=T.x+t.clientLeft,f.y=T.y+t.clientTop}!r&&i&&(f.x=zT(i));const m=i&&!r&&!a?OH(i,o):dp(0),y=s.left+o.scrollLeft-f.x-m.x,b=s.top+o.scrollTop-f.y-m.y;return{x:y,y:b,width:s.width,height:s.height}}function X6(e){return Lf(e).position==="static"}function TR(e,t){if(!Rg(e)||Lf(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return $p(e)===n&&(n=n.ownerDocument.body),n}function RH(e,t){const n=Dl(e);if(BT(e))return n;if(!Rg(e)){let i=Jy(e);for(;i&&!jx(i);){if(Df(i)&&!X6(i))return i;i=Jy(i)}return n}let r=TR(e,t);for(;r&&mve(r)&&X6(r);)r=TR(r,t);return r&&jx(r)&&X6(r)&&!oI(r)?n:r||vve(e)||n}const Ave=async function(e){const t=this.getOffsetParent||RH,n=this.getDimensions,r=await n(e.floating);return{reference:Mve(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Ive(e){return Lf(e).direction==="rtl"}const Dve={convertOffsetParentRelativeRectToViewportRelativeRect:xve,getDocumentElement:$p,getClippingRect:Pve,getOffsetParent:RH,getElementRects:Ave,getClientRects:wve,getDimensions:$ve,getScale:o_,isElement:Df,isRTL:Ive};function BH(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Lve(e,t,n){let r=null,i;const a=$p(e);function s(){var y;clearTimeout(i),(y=r)==null||y.disconnect(),r=null}function o(y,b){y===void 0&&(y=!1),b===void 0&&(b=1),s();const T=e.getBoundingClientRect(),{left:x,top:$,width:A,height:N}=T;if(y||t(),!A||!N)return;const O=tS($),I=tS(a.clientWidth-(x+A)),U=tS(a.clientHeight-($+N)),B=tS(x),Q={rootMargin:-O+"px "+-I+"px "+-U+"px "+-B+"px",threshold:cp(0,wg(1,b))||1};let ee=!0;function Y(z){const H=z[0].intersectionRatio;if(!BH(T,e.getBoundingClientRect()))return o();if(H!==b){if(!ee)return o();H?o(!1,H):i=setTimeout(()=>{o(!1,1e-7)},1e3)}ee=!1}try{r=new IntersectionObserver(Y,{...Q,root:a.ownerDocument})}catch{r=new IntersectionObserver(Y,Q)}r.observe(e)}const f=Dl(e),m=()=>o(n);return f.addEventListener("resize",m),o(!0),()=>{f.removeEventListener("resize",m),s()}}function Ove(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:o=typeof IntersectionObserver=="function",animationFrame:f=!1}
16=r,m=lI(e),y=i||a?[...m?Ux(m):[],...t?Ux(t):[]]:[];y.forEach(O=>{i&&O.addEventListener("scroll",n),a&&O.addEventListener("resize",n)});const b=m&&o?Lve(m,n,a):null;let T=-1,x=null;s&&(x=new ResizeObserver(O=>{let[I]=O;I&&I.target===m&&x&&t&&(x.unobserve(t),cancelAnimationFrame(T),T=requestAnimationFrame(()=>{var U;(U=x)==null||U.observe(t)})),n()}),m&&!f&&x.observe(m),t&&x.observe(t));let $,A=f?Qy(e):null;f&&N();function N(){const O=Qy(e);A&&!BH(A,O)&&n(),A=O,$=requestAnimationFrame(N)}return n(),()=>{var O;y.forEach(I=>{i&&I.removeEventListener("scroll",n),a&&I.removeEventListener("resize",n)}),b?.(),(O=x)==null||O.disconnect(),x=null,f&&cancelAnimationFrame($)}}const Rve=dve,Bve=fve,kR=lve,Fve=pve,zve=uve,Nve=sve,Vve=hve,qve=(e,t,n)=>{const r=new Map,i=n??{},a={...Dve,...i.platform,_c:r};return ove(e,t,{...i,platform:a})};function jve(e){return e!=null&&typeof e=="object"&&"$el"in e}function v$(e){if(jve(e)){const t=e.$el;return aI(t)&&u1(t)==="#comment"?null:t}return e}function zv(e){return typeof e=="function"?e():v(e)}function Uve(e){return{name:"arrow",options:e,fn(t){const n=v$(zv(e.element));return n==null?{}:Nve({element:n,padding:e.padding}).fn(t)}}}function FH(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ER(e,t){const n=FH(e);return Math.round(t*n)/n}function Hve(e,t,n){n===void 0&&(n={});const r=n.whileElementsMounted,i=xe(()=>{var ee;return(ee=zv(n.open))!=null?ee:!0}),a=xe(()=>zv(n.middleware)),s=xe(()=>{var ee;return(ee=zv(n.placement))!=null?ee:"bottom"}),o=xe(()=>{var ee;return(ee=zv(n.strategy))!=null?ee:"absolute"}),f=xe(()=>{var ee;return(ee=zv(n.transform))!=null?ee:!0}),m=xe(()=>v$(e.value)),y=xe(()=>v$(t.value)),b=De(0),T=De(0),x=De(o.value),$=De(s.value),A=Bn({}),N=De(!1),O=xe(()=>{const ee={position:x.value,left:"0",top:"0"};if(!y.value)return ee;const Y=ER(y.value,b.value),z=ER(y.value,T.value);return f.value?{...ee,transform:"translate("+Y+"px, "+z+"px)",...FH(y.value)>=1.5&&{willChange:"transform"}}:{position:x.value,left:Y+"px",top:z+"px"}});let I;function U(){if(m.value==null||y.value==null)return;const ee=i.value;qve(m.value,y.value,{middleware:a.value,placement:s.value,strategy:o.value}).then(Y=>{b.value=Y.x,T.value=Y.y,x.value=Y.strategy,$.value=Y.placement,A.value=Y.middlewareData,N.value=ee!==!1})}function B(){typeof I=="function"&&(I(),I=void 0)}function q(){if(B(),r===void 0){U();return}if(m.value!=null&&y.value!=null){I=r(m.value,y.value,U);return}}function Q(){i.value||(N.value=!1)}return nn([a,s,o,i],U,{flush:"sync"}),nn([m,y],q,{flush:"sync"}),nn(i,Q,{flush:"sync"}),_c()&&yp(B),{x:ou(b),y:ou(T),strategy:ou(x),placement:ou($),middlewareData:ou(A),isPositioned:ou(N),floatingStyles:O,update:U}}const Wve=["dir"],Gve={side:"bottom",sideOffset:0,sideFlip:!0,align:"center",alignOffset:0,alignFlip:!0,arrowPadding:0,hideShiftedArrow:!0,avoidCollisions:!0,collisionBoundary:()=>[],collisionPadding:0,sticky:"partial",hideWhenDetached:!1,positionStrategy:"fixed",updatePositionStrategy:"optimized",prioritizePosition:!1},[Yve,Zve]=hi("PopperContent");var Kve=Fe({inheritAttrs:!1,__name:"PopperContent",props:uJ({memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},{...Gve}),emits:["placed"],setup(e,{emit:t}){const n=e,r=t,i=PH(),{forwardRef:a,currentElement:s}=wn(),o=wu(xe(()=>n.dir)),f=De(),m=De(),{width:y,height:b}=mH(m),T=xe(()=>n.side+(n.align!=="center"?`-${n.align}`:"")),x=xe(()=>typeof n.collisionPadding=="number"?n.collisionPadding:{top:0,right:0,bottom:0,left:0,...n.collisionPadding}),$=xe(()=>Array.isArray(n.collisionBoundary)?n.collisionBoundary:[n.collisionBoundary]),A=xe(()=>({padding:x.value,boundary:$.value.filter(G1e),altBoundary:$.value.length>0})),N=xe(()=>({mainAxis:n.sideFlip,crossAxis:n.alignFlip})),O=xe(()=>[Rve({mainAxis:n.sideOffset+b.value,alignmentAxis:n.alignOffset}),n.prioritizePosition&&n.avoidCollisions&&kR({...A.value,...N.value}),n.avoidCollisions&&Bve({mainAxis:!0,crossAxis:!!n.prioritizePosition,limiter:n.sticky==="partial"?Vve():void 0,...A.value}),!n.prioritizePosition&&n.avoidCollisions&&kR({...A.value,...N.value}),Fve({...A.value,apply:({elements:le,rects:pe,availableWidth:ae,availableHeight:se})=>{const{width:ce,height:ye}=pe.reference,$e=le.floating.style;$e.setProperty("--reka-popper-available-width",`${ae}px`),$e.setProperty("--reka-popper-available-height",`${se}px`),$e.setProperty("--reka-popper-anchor-width",`${ce}px`),$e.setProperty("--reka-popper-anchor-height",`${ye}px`)}}),m.value&&Uve({element:m.value,padding:n.arrowPadding}),Y1e({arrowWidth:y.value,arrowHeight:b.value,dir:o.value}),n.hideWhenDetached&&zve({strategy:"referenceHidden",...A.value})]),I=xe(()=>n.reference??i.anchor.value),{floatingStyles:U,placement:B,isPositioned:q,middlewareData:Q}=Hve(I,f,{strategy:n.positionStrategy,placement:T,whileElementsMounted:(...le)=>Ove(...le,{layoutShift:!n.disableUpdateOnLayoutShift,animationFrame:n.updatePositionStrategy==="always"}),middleware:O}),ee=xe(()=>m$(B.value)[0]),Y=xe(()=>m$(B.value)[1]);OM(()=>{q.value&&r("placed")});const z=xe(()=>{const le=Q.value.arrow?.centerOffset!==0;return n.hideShiftedArrow&&le}),H=De("");ko(()=>{s.value&&(H.value=window.getComputedStyle(s.value).zIndex)});const K=xe(()=>Q.value.arrow?.x??0),ne=xe(()=>Q.value.arrow?.y??0);return Zve({placedSide:ee,onArrowChange:le=>m.value=le,arrowX:K,arrowY:ne,shouldHideArrow:z}),(le,pe)=>(Z(),Ce("div",{ref_key:"floatingRef",ref:f,"data-reka-popper-content-wrapper":"",dir:v(o),style:fo({...v(U),transform:v(q)?v(U).transform:"translate(0, -200%)",minWidth:"max-content",zIndex:H.value,"--reka-popper-transform-origin":[v(Q).transformOrigin?.x,v(Q).transformOrigin?.y].join(" "),...v(Q).hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}})},[n.memoDependencies?WJ([n.asChild,n.as,ee.value,Y.value,v(q),...Object.values(le.$attrs),...n.memoDependencies],()=>(Z(),Se(v(Cn),vn({key:0,ref:v(a)},le.$attrs,{"as-child":n.asChild,as:n.as,"data-side":ee.value,"data-align":Y.value,style:{animation:v(q)?void 0:"none"}}),{default:be(()=>[bt(le.$slots,"default")]),_:3},16,["as-child","as","data-side","data-align","style"])),pe,0):(Z(),Se(v(Cn),vn({key:1,ref:v(a)},le.$attrs,{"as-child":n.asChild,as:n.as,"data-side":ee.value,"data-align":Y.value,dir:v(o),style:{animation:v(q)?void 0:"none"}}),{default:be(()=>[bt(le.$slots,"default")]),_:3},16,["as-child","as","data-side","data-align","dir","style"]))],12,Wve))}}),NT=Kve;
16const Xve={top:"bottom",right:"left",bottom:"top",left:"right"};var Jve=Fe({inheritAttrs:!1,__name:"PopperArrow",props:{width:{type:Number,required:!1},height:{type:Number,required:!1},rounded:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"svg"}},setup(e){const{forwardRef:t}=wn(),n=Yve(),r=xe(()=>Xve[n.placedSide.value]);return(i,a)=>(Z(),Ce("span",{ref:s=>{v(n).onArrowChange(s??void 0)},style:fo({position:"absolute",left:v(n).arrowX?.value?`${v(n).arrowX?.value}px`:void 0,top:v(n).arrowY?.value?`${v(n).arrowY?.value}px`:void 0,[r.value]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[v(n).placedSide.value],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[v(n).placedSide.value],visibility:v(n).shouldHideArrow.value?"hidden":void 0})},[ke(W1e,vn(i.$attrs,{ref:v(t),style:{display:"block"},as:i.as,"as-child":i.asChild,rounded:i.rounded,width:i.width,height:i.height}),{default:be(()=>[bt(i.$slots,"default")]),_:3},16,["as","as-child","rounded","width","height"])],4))}}),zH=Jve;function Qve(e){const t=G_({nonce:De()});return xe(()=>e?.value||t.nonce?.value)}const uI=["day","month","year"],cI=["hour","minute","second","dayPeriod"],NH=[...uI,...cI];function e_e(e){return uI.includes(e)}function VH(e){return NH.includes(e)}const t_e=["ach","af","am","an","ar","ast","az","be","bg","bn","br","bs","ca","cak","ckb","cs","cy","da","de","dsb","el","en","eo","es","et","eu","fa","ff","fi","fr","fy","ga","gd","gl","he","hr","hsb","hu","ia","id","it","ja","ka","kk","kn","ko","lb","lo","lt","lv","meh","ml","ms","nl","nn","no","oc","pl","pt","rm","ro","ru","sc","scn","sk","sl","sr","sv","szl","tg","th","tr","uk","zh-CN","zh-TW"],n_e=["year","month","day"],J6={ach:{year:"mwaka",month:"dwe",day:"nino"},af:{year:"jjjj",month:"mm",day:"dd"},am:{year:"ዓዓዓዓ",month:"ሚሜ",day:"ቀቀ"},an:{year:"aaaa",month:"mm",day:"dd"},ar:{year:"سنة",month:"شهر",day:"يوم"},ast:{year:"aaaa",month:"mm",day:"dd"},az:{year:"iiii",month:"aa",day:"gg"},be:{year:"гггг",month:"мм",day:"дд"},bg:{year:"гггг",month:"мм",day:"дд"},bn:{year:"yyyy",month:"মিমি",day:"dd"},br:{year:"bbbb",month:"mm",day:"dd"},bs:{year:"gggg",month:"mm",day:"dd"},ca:{year:"aaaa",month:"mm",day:"dd"},cak:{year:"jjjj",month:"ii",day:"q'q'"},ckb:{year:"ساڵ",month:"مانگ",day:"ڕۆژ"},cs:{year:"rrrr",month:"mm",day:"dd"},cy:{year:"bbbb",month:"mm",day:"dd"},da:{year:"åååå",month:"mm",day:"dd"},de:{year:"jjjj",month:"mm",day:"tt"},dsb:{year:"llll",month:"mm",day:"źź"},el:{year:"εεεε",month:"μμ",day:"ηη"},en:{year:"yyyy",month:"mm",day:"dd"},eo:{year:"jjjj",month:"mm",day:"tt"},es:{year:"aaaa",month:"mm",day:"dd"},et:{year:"aaaa",month:"kk",day:"pp"},eu:{year:"uuuu",month:"hh",day:"ee"},fa:{year:"سال",month:"ماه",day:"روز"},ff:{year:"hhhh",month:"ll",day:"ññ"},fi:{year:"vvvv",month:"kk",day:"pp"},fr:{year:"aaaa",month:"mm",day:"jj"},fy:{year:"jjjj",month:"mm",day:"dd"},ga:{year:"bbbb",month:"mm",day:"ll"},gd:{year:"bbbb",month:"mm",day:"ll"},gl:{year:"aaaa",month:"mm",day:"dd"},he:{year:"שנה",month:"חודש",day:"יום"},hr:{year:"gggg",month:"mm",day:"dd"},hsb:{year:"llll",month:"mm",day:"dd"},hu:{year:"éééé",month:"hh",day:"nn"},ia:{year:"aaaa",month:"mm",day:"dd"},id:{year:"tttt",month:"bb",day:"hh"},it:{year:"aaaa",month:"mm",day:"gg"},ja:{year:" 年 ",month:"月",day:"日"},ka:{year:"წწწწ",month:"თთ",day:"რრ"},kk:{year:"жжжж",month:"аа",day:"кк"},kn:{year:"ವವವವ",month:"ಮಿಮೀ",day:"ದಿದಿ"},ko:{year:"연도",month:"월",day:"일"},lb:{year:"jjjj",month:"mm",day:"dd"},lo:{year:"ປປປປ",month:"ດດ",day:"ວວ"},lt:{year:"mmmm",month:"mm",day:"dd"},lv:{year:"gggg",month:"mm",day:"dd"},meh:{year:"aaaa",month:"mm",day:"dd"},ml:{year:"വർഷം",month:"മാസം",day:"തീയതി"},ms:{year:"tttt",month:"mm",day:"hh"},nl:{year:"jjjj",month:"mm",day:"dd"},nn:{year:"åååå",month:"mm",day:"dd"},no:{year:"åååå",month:"mm",day:"dd"},oc:{year:"aaaa",month:"mm",day:"jj"},pl:{year:"rrrr",month:"mm",day:"dd"},pt:{year:"aaaa",month:"mm",day:"dd"}
16,rm:{year:"oooo",month:"mm",day:"dd"},ro:{year:"aaaa",month:"ll",day:"zz"},ru:{year:"гггг",month:"мм",day:"дд"},sc:{year:"aaaa",month:"mm",day:"dd"},scn:{year:"aaaa",month:"mm",day:"jj"},sk:{year:"rrrr",month:"mm",day:"dd"},sl:{year:"llll",month:"mm",day:"dd"},sr:{year:"гггг",month:"мм",day:"дд"},sv:{year:"åååå",month:"mm",day:"dd"},szl:{year:"rrrr",month:"mm",day:"dd"},tg:{year:"сссс",month:"мм",day:"рр"},th:{year:"ปปปป",month:"ดด",day:"วว"},tr:{year:"yyyy",month:"aa",day:"gg"},uk:{year:"рррр",month:"мм",day:"дд"},"zh-CN":{year:"年",month:"月",day:"日"},"zh-TW":{year:"年",month:"月",day:"日"}};function r_e(e){if(PR(e))return J6[e];{const t=s_e(e);return PR(t)?J6[t]:J6.en}}function Q6(e,t,n){return i_e(e)?r_e(n)[e]:o_e(e)?t:a_e(e)?"––":""}function PR(e){return t_e.includes(e)}function i_e(e){return n_e.includes(e)}function a_e(e){return e==="hour"||e==="minute"||e==="second"}function o_e(e){return e==="era"||e==="dayPeriod"}function s_e(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const l_e=["hour","minute","second"];function _$(e){return Object.fromEntries(cI.map(t=>t==="dayPeriod"?[t,e.formatter.dayPeriod(sc(e.value))]:[t,e.value[t]]))}function $R(e){const{formatter:t}=e,n=uI.map(r=>[r,e.value[r]]);if("hour"in e.value){const r=_$({value:e.value,formatter:t});return{...Object.fromEntries(n),...r}}return Object.fromEntries(n)}function u_e(e){return Object.fromEntries(cI.map(t=>t==="dayPeriod"?[t,"AM"]:[t,null]).filter(([t])=>!(t==="literal"||t===null||e==="minute"&&t==="second"||e==="hour"&&(t==="second"||t==="minute"))))}function c_e(e){const t=NH.map(n=>n==="dayPeriod"?[n,"AM"]:[n,null]).filter(([n])=>n==="literal"||n===null||e==="minute"&&n==="second"||e==="hour"&&(n==="second"||n==="minute")?!1:e==="day"?!l_e.includes(n)&&n!=="dayPeriod":!0);return Object.fromEntries(t)}function d_e(e){const{segmentValues:t,formatter:n,locale:r}=e;function i(s){if("hour"in t){const o=t[s];return o!==null?s==="day"?n.part(e.dateRef.set({[s]:o,month:t.month??1}),s,{hourCycle:qx(e.hourCycle)}):n.part(e.dateRef.set({[s]:o}),s,{hourCycle:qx(e.hourCycle)}):Q6(s,"",r.value)}else{if(e_e(s)){const o=t[s];return o!==null?s==="day"?n.part(e.dateRef.set({[s]:o,month:t.month??1}),s):n.part(e.dateRef.set({[s]:o}),s):Q6(s,"",r.value)}return""}}return Object.keys(t).reduce((s,o)=>{if(!VH(o))return s;if("hour"in t&&o==="dayPeriod"){const f=t[o];f!==null?s[o]=f:s[o]=Q6(o,"AM",r.value)}else s[o]=i(o);return s},{})}function f_e(e){const{granularity:t,formatter:n,contentObj:r,hideTimeZone:i,hourCycle:a,isTimeValue:s}=e;return n.toParts(e.dateRef,yye(t,a,s)).map(m=>["literal","timeZoneName",null].includes(m.type)||!VH(m.type)?{part:m.type,value:m.value}:{part:m.type,value:r[m.type]}).filter(m=>!(m.part===null||m.value===null||m.part==="timeZoneName"&&(!Vx(e.dateRef)||i)||(!Vx(e.dateRef)||i)&&m.part==="literal"&&["[","]"].includes(m.value.trim())))}function qH(e){const t=d_e(e),n=f_e({contentObj:t,...e});return{obj:t,arr:n}}function Uh(e){const t=K_();return e===t.ARROW_RIGHT||e===t.ARROW_LEFT}function hy(e){return!Number.isNaN(Number.parseInt(e))}function Bm(e){const t=K_();return!!([t.ENTER,t.ARROW_UP,t.ARROW_DOWN,t.ARROW_LEFT,t.ARROW_RIGHT,t.BACKSPACE,t.SPACE,"a","A","p","P"].includes(e)||hy(e))}function MR(e){return Array.from(e.querySelectorAll("[data-reka-date-field-segment]")).filter(t=>t.getAttribute("data-reka-date-field-segment")!=="literal")}function AR(e){return Array.from(e.querySelectorAll("[data-reka-time-field-segment]")).filter(t=>t.getAttribute("data-reka-time-field-segment")!=="literal")}const h_e=/^\d$/;function Bg(e){return{role:"spinbutton",contenteditable:!0,tabindex:e.disabled?void 0:0,spellcheck:!1,inputmode:"numeric",autocorrect:"off",enterkeyhint:"next",style:"caret-color: transparent;"}}function p_e(e){const{segmentValues:t,placeholder:n}=e,r=t.day===null,i={};t.day&&(i.day=t.day),t.month&&(i.month=t.month);const a=Object.keys(i).length>0?n.set(i):n,s=a.day,o=1,f=cg(a),m=r?"Empty":`${s}`;return{...Bg(e),"aria-label":"day,","aria-valuemin":o,"aria-valuemax":f,"aria-valuenow":s,"aria-valuetext":m,"data-placeholder":r?"":void 0}}function m_e(e){const{segmentValues:t,placeholder:n,formatter:r}=e,i=t.month===null,a=t.month?n.set({month:t.month}):n,s=a.month,o=1,f=12,m=i?"Empty":`${s} - ${r.fullMonth(sc(a))}`;return{...Bg(e),"aria-label":"month, ",contenteditable:!0,"aria-valuemin":o,"aria-valuemax":f,"aria-valuenow":s,"aria-valuetext":m,"data-placeholder":i?"":void 0}}function g_e(e){const{segmentValues:t,placeholder:n}=e,r=t.year===null,i=t.year?n.set({year:t.year}):n,a=1,s=9999,o=i.year,f=r?"Empty":`${o}`;return{...Bg(e),"aria-label":"year, ","aria-valuemin":a,"aria-valuemax":s,"aria-valuenow":o,"aria-valuetext":f,"data-
16placeholder":r?"":void 0}}function y_e(e){const{segmentValues:t,hourCycle:n,placeholder:r}=e;if(!("hour"in t)||!("hour"in r))return{};const i=t.hour===null,a=t.hour?r.set({hour:t.hour}):r,s=n===12?1:0,o=n===12?12:23,f=a.hour,m=i?"Empty":`${f} ${t.dayPeriod??""}`;return{...Bg(e),"aria-label":"hour, ","aria-valuemin":s,"aria-valuemax":o,"aria-valuenow":f,"aria-valuetext":m,"data-placeholder":i?"":void 0}}function v_e(e){const{segmentValues:t,placeholder:n}=e;if(!("minute"in t)||!("minute"in n))return{};const r=t.minute===null,a=(t.minute?n.set({minute:t.minute}):n).minute,s=0,o=59,f=r?"Empty":`${a}`;return{...Bg(e),"aria-label":"minute, ","aria-valuemin":s,"aria-valuemax":o,"aria-valuenow":a,"aria-valuetext":f,"data-placeholder":r?"":void 0}}function __e(e){const{segmentValues:t,placeholder:n}=e;if(!("second"in t)||!("second"in n))return{};const r=t.second===null,a=(t.second?n.set({second:t.second}):n).second,s=0,o=59,f=r?"Empty":`${a}`;return{...Bg(e),"aria-label":"second, ","aria-valuemin":s,"aria-valuemax":o,"aria-valuenow":a,"aria-valuetext":f,"data-placeholder":r?"":void 0}}function b_e(e){const{segmentValues:t}=e;if(!("dayPeriod"in t))return{};const n=0,r=12,i=t.hour?t.hour>12?t.hour-12:t.hour:0,a=t.dayPeriod??"AM";return{...Bg(e),inputmode:"text","aria-label":"AM/PM","aria-valuemin":n,"aria-valuemax":r,"aria-valuenow":i,"aria-valuetext":a}}function x_e(e){return{"aria-hidden":!0,"data-segment":"literal"}}function w_e(e){return{role:"textbox","aria-label":"timezone, ","data-readonly":!0,"data-segment":"timeZoneName",tabindex:e.disabled?void 0:0,style:"caret-color: transparent;"}}function S_e(e){const{segmentValues:t,placeholder:n}=e,r=0,i=0,a=0,s="era"in t?t.era:n.era;return{...Bg(e),"aria-label":"era","aria-valuemin":r,"aria-valuemax":i,"aria-valuenow":a,"aria-valuetext":s}}const C_e={day:{attrs:p_e},month:{attrs:m_e},year:{attrs:g_e},hour:{attrs:y_e},minute:{attrs:v_e},second:{attrs:__e},dayPeriod:{attrs:b_e},literal:{attrs:x_e},timeZoneName:{attrs:w_e},era:{attrs:S_e}};function jH(e){const t=K_();function n({e:z,part:H,dateRef:K,prevValue:ne}){const le=e.step.value[H]??1,pe=z.key===t.ARROW_UP?le:-le,ae=0,se=59;if(ne===null)return pe>0?ae:se;const ce=[H,pe];return K.set({[H]:ne}).cycle(...ce)[H]}function r(z){if(e.hasLeftFocus.value=!1,z===null)return z;const H=z.toString();return H.length===1?(e.modelValue.value=void 0,null):Number.parseInt(H.slice(0,-1))}function i({e:z,part:H,dateRef:K,prevValue:ne}){const le=e.step.value[H]??1,pe=z.key===t.ARROW_UP?le:-le;if(ne===null)return K[H];if(H==="hour"&&"hour"in K){const se=[H,pe];return K.set({[H]:ne}).cycle(...se)[H]}const ae=[H,pe];return H==="day"?K.set({[H]:ne,month:e.segmentValues.value.month??1}).cycle(...ae)[H]:K.set({[H]:ne}).cycle(...ae)[H]}function a(z,H,K){let ne=!1;const le=Math.floor(z/10);if(e.hasLeftFocus.value&&(e.hasLeftFocus.value=!1,e.lastKeyZero.value=!1,K=null),K===null)return H===0?(e.lastKeyZero.value=!0,{value:null,moveToNext:ne}):((e.lastKeyZero.value||H>le)&&(ne=!0),e.lastKeyZero.value=!1,{value:H,moveToNext:ne});const pe=K.toString().length,ae=Number.parseInt(K.toString()+H.toString());return pe===2||ae>z?((H>le||ae>z)&&(ne=!0),{value:H,moveToNext:ne}):(ne=!0,{value:ae,moveToNext:ne})}function s(z,H){let ne=!1;const le=Math.floor(59/10);if(e.hasLeftFocus.value&&(e.hasLeftFocus.value=!1,e.lastKeyZero.value=!1,H=null),H===null)return z===0?(e.lastKeyZero.value=!0,{value:0,moveToNext:ne}):((e.lastKeyZero.value||z>le)&&(ne=!0),e.lastKeyZero.value=!1,{value:z,moveToNext:ne});const pe=H.toString().length,ae=Number.parseInt(H.toString()+z.toString());return pe===2||ae>59?(z>le&&(ne=!0),{value:z,moveToNext:ne}):(ne=!0,{value:ae,moveToNext:ne})}function o(z,H,K){let ne=!1;const le=Math.floor(z/10);if(e.hasLeftFocus.value&&(e.hasLeftFocus.value=!1,e.lastKeyZero.value=!1,K=null),K===null)return H===0?(e.lastKeyZero.value=!0,{value:0,moveToNext:ne}):((e.lastKeyZero.value||H>le)&&(ne=!0),e.lastKeyZero.value=!1,{value:H,moveToNext:ne});const pe=K.toString().length,ae=Number.parseInt(K.toString()+H.toString());return pe===2||ae>z?(H>le&&(ne=!0),{value:H,moveToNext:ne}):(ne=!0,{value:ae,moveToNext:ne})}function f(z,H){let K=!1;if(e.hasLeftFocus.value&&(e.hasLeftFocus.value=!1,H=null),H===null)return{value:z===0?1:z,moveToNext:K};const ne=H.toString()+z.toString();return ne.length>4?{value:z===0?1:z,moveToNext:K}:(ne.length===4&&(K=!0),{value:Number.parseInt(ne),moveToNext:K})}const m=xe(()=>C_e[e.part]?.attrs({disabled:e.disabled.value,placeholder:e.placeholder.value,hourCycle:e.hourCycle,segmentValues:e.segmentValues.value,formatter:e.formatter})??{});function y(z){if(!Bm(z.key)||Uh(z.key))return;const H=e.segmentValues.value.day;if(z.key===t.ARROW_DOWN||z.key===t.ARROW_UP){e.segmentValues.value.day=i({e:z,part:"day",dateRef:e.placeholder.value,prevValue:H});return}if(hy(z.key)){const K=Number.parseInt(z.key),ne=e.segmentValues.value.month,le=ne?cg(e.placeholder.value.set({month:ne})):31,{value:pe,moveToNext:ae}=a(le,K,H);e.segmentValues.value.day=pe,ae&&e.focusNext()}z.key===t.BACKSPACE&&(e.hasLeftFocus.value=!1,e.segmentValues.value.day=r
16(H))}function b(z){if(!Bm(z.key)||Uh(z.key))return;const H=e.segmentValues.value.month;if(z.key===t.ARROW_DOWN||z.key===t.ARROW_UP){e.segmentValues.value.month=i({e:z,part:"month",dateRef:e.placeholder.value,prevValue:H});return}if(hy(z.key)){const K=Number.parseInt(z.key),{value:ne,moveToNext:le}=a(12,K,H);e.segmentValues.value.month=ne,le&&e.focusNext()}z.key===t.BACKSPACE&&(e.hasLeftFocus.value=!1,e.segmentValues.value.month=r(H))}function T(z){if(!Bm(z.key)||Uh(z.key))return;const H=e.segmentValues.value.year;if(z.key===t.ARROW_DOWN||z.key===t.ARROW_UP){e.segmentValues.value.year=i({e:z,part:"year",dateRef:e.placeholder.value,prevValue:H});return}if(hy(z.key)){const K=Number.parseInt(z.key),{value:ne,moveToNext:le}=f(K,H);e.segmentValues.value.year=ne,le&&e.focusNext()}z.key===t.BACKSPACE&&(e.hasLeftFocus.value=!1,e.segmentValues.value.year=r(H))}function x(z){const H=new gf(z,{hour:"numeric"}).resolvedOptions().hourCycle;return H==="h11"||H==="h12"}function $(z){const H=e.placeholder.value;if(!Bm(z.key)||Uh(z.key)||!("hour"in H)||!("hour"in e.segmentValues.value))return;const K=e.segmentValues.value.hour;if(z.key===t.ARROW_UP||z.key===t.ARROW_DOWN){const ne=i({e:z,part:"hour",dateRef:e.placeholder.value,prevValue:K});e.segmentValues.value.hour=ne,"dayPeriod"in e.segmentValues.value&&ne!==null&&(e.segmentValues.value.dayPeriod=ne>=12?"PM":"AM");return}if(hy(z.key)){const ne=Number.parseInt(z.key),le=e.hourCycle!==void 0?e.hourCycle===12:x(e.formatter.getLocale()),pe=le?12:24;let ae=K;le&&K!==null&&(ae=K%12===0?0:K>12?K-12:K);const{value:se,moveToNext:ce}=o(pe,ne,ae);let ye=se;if(le&&se!==null){const $e=e.segmentValues.value.dayPeriod||"AM";se===12?ye=$e==="AM"?0:12:ye=$e==="PM"?se+12:se}e.segmentValues.value.hour=ye,ce&&e.focusNext()}z.key===t.BACKSPACE&&(e.hasLeftFocus.value=!1,e.segmentValues.value.hour=r(K))}function A(z){const H=e.placeholder.value;if(!Bm(z.key)||Uh(z.key)||!("minute"in H)||!("minute"in e.segmentValues.value))return;const K=e.segmentValues.value.minute;if((z.key===t.ARROW_UP||z.key===t.ARROW_DOWN)&&(e.segmentValues.value.minute=n({e:z,part:"minute",dateRef:e.placeholder.value,prevValue:K})),hy(z.key)){const ne=Number.parseInt(z.key),{value:le,moveToNext:pe}=s(ne,K);e.segmentValues.value.minute=le,pe&&e.focusNext()}z.key===t.BACKSPACE&&(e.hasLeftFocus.value=!1,e.segmentValues.value.minute=r(K))}function N(z){const H=e.placeholder.value;if(!Bm(z.key)||Uh(z.key)||!("second"in H)||!("second"in e.segmentValues.value))return;const K=e.segmentValues.value.second;if((z.key===t.ARROW_UP||z.key===t.ARROW_DOWN)&&(e.segmentValues.value.second=n({e:z,part:"second",dateRef:e.placeholder.value,prevValue:K})),hy(z.key)){const ne=Number.parseInt(z.key),{value:le,moveToNext:pe}=s(ne,K);e.segmentValues.value.second=le,pe&&e.focusNext()}z.key===t.BACKSPACE&&(e.hasLeftFocus.value=!1,e.segmentValues.value.second=r(K))}function O(z){if(!((!Bm(z.key)||Uh(z.key))&&z.key!=="a"&&z.key!=="p"||!("hour"in e.placeholder.value)||!("dayPeriod"in e.segmentValues.value))){if(z.key===t.ARROW_UP||z.key===t.ARROW_DOWN){if(e.segmentValues.value.dayPeriod==="AM"){e.segmentValues.value.dayPeriod="PM",e.segmentValues.value.hour=e.segmentValues.value.hour+12;return}e.segmentValues.value.dayPeriod="AM",e.segmentValues.value.hour=e.segmentValues.value.hour-12;return}if(["a","A"].includes(z.key)&&e.segmentValues.value.dayPeriod!=="AM"){e.segmentValues.value.dayPeriod="AM",e.segmentValues.value.hour=e.segmentValues.value.hour-12;return}["p","P"].includes(z.key)&&e.segmentValues.value.dayPeriod!=="PM"&&(e.segmentValues.value.dayPeriod="PM",e.segmentValues.value.hour=e.segmentValues.value.hour+12)}}function I(z){e.disabled.value&&z.preventDefault()}function U(z){if(z.isComposing||z.key==="Process")return;const H=e.disabled.value,K=e.readonly.value;if(H||K)return;if(z.key!==t.TAB&&z.preventDefault(),{day:y,month:b,year:T,hour:$,minute:A,second:N,dayPeriod:O,timeZoneName:()=>{}}[e.part](z),![t.ARROW_LEFT,t.ARROW_RIGHT].includes(z.key)&&z.key!==t.TAB&&z.key!==t.SHIFT&&Bm(z.key)&&Object.values(e.segmentValues.value).every(le=>le!==null)){const le={...e.segmentValues.value},pe=e.placeholder.value.set(le);e.modelValue.value=pe.copy()}}function B(){if(e.stepSnapping?.value&&(e.part==="hour"&&"hour"in e.segmentValues.value&&e.segmentValues.value.hour!==null&&e.step.value.hour&&e.step.value.hour>1?(e.segmentValues.value.hour=L6(e.segmentValues.value.hour,0,23,e.step.value.hour),"dayPeriod"in e.segmentValues.value&&(e.segmentValues.value.hour<12?e.segmentValues.value.dayPeriod="AM":e.segmentValues.value.hour&&(e.segmentValues.value.dayPeriod="PM"))):e.part==="minute"&&"minute"in e.segmentValues.value&&e.segmentValues.value.minute!==null&&e.step.value.minute&&e.step.value.minute>1?e.segmentValues.value.minute=L6(e.segmentValues.value.minute,0,59,e.step.value.minute):e.part==="second"&&"second"in e.segmentValues.value&&e.segmentValues.value.second!==null&&e.step.value.second&&e.step.value.second>1&&(e.segmentValues.value.second=L6(e.segmentValues.value.second,0,59,e.step.value.second)),Object.values(e.segmentValues.value).every(z=>z!==null))){const z=e.placeholder.value.set({...e.segmentValues.value});e.modelValue.value=z.copy()}}let q=null;function Q(z){z.isComposing||z.preventDefault()}function ee(z){const H=z.target;q=Array.from(H.childNodes,K=>({node:K,value:K.nodeValue}))}function Y(z){const H=z.target,K=q;if(q=null,K){for(const{node:le,value:pe}of K)le.nodeValue=pe;H.replaceChildren(...K.map(le=>le.node))}const ne=z.data;if(ne)for(const le of ne){if(!h_e.test(le))continue;const pe=_s();if(!(pe instanceof HTMLElement))break;pe.dispatchEvent(new KeyboardEvent("keydown",{key:le,bubbles:!0,cancelable:!0}))}}return{handleSegmentClick:I,handleSegmentKeydown:U,handleSegmentBeforeInput:Q,handleSegmentCompositionStart:ee,handleSegmentCompositionEnd:Y,handleSegmentFocusOut:B,attributes:m}}function T_e(e){function t(a){return Array.isArray(e.date.value)?e.date.value.some(s=>_g(s,a)):e.date.value?_g(e.date.value,a):!1}const n=xe(()=>{if(Array.isArray(e.date.value)){if(!e.date.value.length)return!1;for(const a of e.date.value)if(e.isDateDisabled?.(a)||e.isDateUnavailable?.(a))return!0}else{if(!e.date.value)return!1;if(e.isDateDisabled?.(e.date.value)||e.isDateUnavailable?.(e.date.value))return!0}return!1}),r=xe(()=>Array.isArray(e.date.value)?e.date.value.length>0:!!e.date.value),i=xe(()=>Array.isArray(e.date.value)?e.date.value.length?e.date.value.some(a=>e.isDateDisabled?.(a)):!1:e.date.value?!!e.isDateDisabled?.(e.date.value):!1);return{isDateSelected:t,isInvalid:n,hasSelectedDate:r,isSelectedDateDisabled:i}}function k_e(e,t){const n=t(e),r=n.compare(e),i={};return r>=7&&(i.day=1),r>=cg(e)&&(i.month=1),n.set({...i})}function E_e(e,t){const n=t(e),r=e.compare(n),i={};return r>=7&&(i.day=35),r>=cg(e)&&(i.month=13),n.set({...i})}function P_e(e,t){return t(e)}function $_e(e,t){return t(e)}function M_e(e){const t=XA(e.locale.value),n=xe(()=>{const O={calendar:e.placeholder.value.calendar.identifier};return e.placeholder.value.calendar.identifier==="gregory"&&e.placeholder.value.era==="BC"&&(O.era="short"),O}),r=De(sy({dateObj:e.placeholder.value,weekStartsOn:e.weekStartsOn.value,locale:e.locale.value,fixedWeeks:e.fixedWeeks.value,
16numberOfMonths:e.numberOfMonths.value})),i=xe(()=>r.value.map(O=>O.value));function a(O){return!i.value.some(I=>UO(O,I))}const s=O=>{if(!e.maxValue.value||!r.value.length)return!1;if(e.disabled.value)return!0;const I=r.value.at(-1).value;if(!O&&!e.nextPage.value){const B=I.add({months:1}).set({day:1});return j6(B,e.maxValue.value)}const U=k_e(I,O||e.nextPage.value);return j6(U,e.maxValue.value)},o=O=>{if(!e.minValue.value||!r.value.length)return!1;if(e.disabled.value)return!0;const I=r.value[0].value;if(!O&&!e.prevPage.value){const B=I.subtract({months:1}).set({day:35});return tg(B,e.minValue.value)}const U=E_e(I,O||e.prevPage.value);return tg(U,e.minValue.value)};function f(O){return!!(e.isDateDisabled?.(O)||e.disabled.value||e.maxValue.value&&j6(O,e.maxValue.value)||e.minValue.value&&tg(O,e.minValue.value))}const m=O=>!!e.isDateUnavailable?.(O),y=xe(()=>r.value.length?r.value[0].rows[0].map(O=>t.dayOfWeek(sc(O),e.weekdayFormat.value)):[]),b=O=>{const I=r.value[0].value;if(!O&&!e.nextPage.value){const Q=I.add({months:e.pagedNavigation.value?e.numberOfMonths.value:1}),ee=sy({dateObj:Q,weekStartsOn:e.weekStartsOn.value,locale:e.locale.value,fixedWeeks:e.fixedWeeks.value,numberOfMonths:e.numberOfMonths.value});r.value=ee,e.placeholder.value=ee[0].value.set({day:1});return}const U=P_e(I,O||e.nextPage.value),B=sy({dateObj:U,weekStartsOn:e.weekStartsOn.value,locale:e.locale.value,fixedWeeks:e.fixedWeeks.value,numberOfMonths:e.numberOfMonths.value});r.value=B;const q={};if(!O){const Q=B[0].value.compare(I);Q>=cg(I)&&(q.day=1),Q>=365&&(q.month=1)}e.placeholder.value=B[0].value.set({...q})},T=O=>{const I=r.value[0].value;if(!O&&!e.prevPage.value){const Q=I.subtract({months:e.pagedNavigation.value?e.numberOfMonths.value:1}),ee=sy({dateObj:Q,weekStartsOn:e.weekStartsOn.value,locale:e.locale.value,fixedWeeks:e.fixedWeeks.value,numberOfMonths:e.numberOfMonths.value});r.value=ee,e.placeholder.value=ee[0].value.set({day:1});return}const U=$_e(I,O||e.prevPage.value),B=sy({dateObj:U,weekStartsOn:e.weekStartsOn.value,locale:e.locale.value,fixedWeeks:e.fixedWeeks.value,numberOfMonths:e.numberOfMonths.value});r.value=B;const q={};if(!O){const Q=I.compare(B[0].value);Q>=cg(I)&&(q.day=1),Q>=365&&(q.month=1)}e.placeholder.value=B[0].value.set({...q})};nn(e.placeholder,O=>{i.value.some(I=>UO(I,O))||(r.value=sy({dateObj:O,weekStartsOn:e.weekStartsOn.value,locale:e.locale.value,fixedWeeks:e.fixedWeeks.value,numberOfMonths:e.numberOfMonths.value}))}),nn([e.locale,e.weekStartsOn,e.fixedWeeks,e.numberOfMonths],()=>{r.value=sy({dateObj:e.placeholder.value,weekStartsOn:e.weekStartsOn.value,locale:e.locale.value,fixedWeeks:e.fixedWeeks.value,numberOfMonths:e.numberOfMonths.value})});const x=xe(()=>{if(!r.value.length)return"";if(e.locale.value!==t.getLocale()&&t.setLocale(e.locale.value),r.value.length===1){const Y=r.value[0].value;return`${t.fullMonthAndYear(sc(Y),n.value)}`}const O=sc(r.value[0].value),I=sc(r.value.at(-1).value),U=t.fullMonth(O,n.value),B=t.fullMonth(I,n.value),q=t.fullYear(O,n.value),Q=t.fullYear(I,n.value);return q===Q?`${U} - ${B} ${Q}`:`${U} ${q} - ${B} ${Q}`}),$=xe(()=>`${e.calendarLabel.value??"Event Date"}, ${x.value}`),A=xe(()=>!(f(e.placeholder.value)||m(e.placeholder.value)||a(e.placeholder.value))),N=xe(()=>{for(const O of r.value){if(e.minValue.value&&tg(O.value,e.minValue.value))continue;const I=cg(O.value),U=e.minValue.value&&zA(e.minValue.value,O.value)?e.minValue.value.day:1;for(let B=U;B<=I;B++){const q=O.value.set({day:B});if(!(f(q)||m(q)))return q}}});return{isDateDisabled:f,isDateUnavailable:m,isNextButtonDisabled:s,isPrevButtonDisabled:o,grid:r,weekdays:y,visibleView:i,isOutsideVisibleView:a,formatter:t,nextPage:b,prevPage:T,headingValue:x,fullCalendarLabel:$,isPlaceholderFocusable:A,firstFocusableDate:N}}const A_e={style:{border:"0px",clip:"rect(0px, 0px, 0px, 0px)","clip-path":"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0px",position:"absolute","white-space":"nowrap",width:"1px"}},I_e={role:"heading","aria-level":"2"},[J_,D_e]=hi("CalendarRoot");var L_e=Fe({__name:"CalendarRoot",props:{defaultValue:{type:null,required:!1,default:void 0},defaultPlaceholder:{type:null,required:!1},placeholder:{type:null,required:!1,default:void 0},pagedNavigation:{type:Boolean,required:!1,default:!1},preventDeselect:{type:Boolean,required:!1,default:!1},weekStartsOn:{type:Number,required:!1},weekdayFormat:{type:String,required:!1,default:"narrow"},calendarLabel:{type:String,required:!1},fixedWeeks:{type:Boolean,required:!1,default:!1},maxValue:{type:null,required:!1},minValue:{type:null,required:!1},locale:{type:String,required:!1},numberOfMonths:{type:Number,required:!1,default:1},disabled:{type:Boolean,required:!1,default:!1},readonly:{type:Boolean,required:!1,default:!1},initialFocus:{type:Boolean,required:!1,default:!1},isDateDisabled:{type:Function,required:!1,default:void 0},isDateUnavailable:{type:Function,required:!1,default:void 0},dir:{type:String,required:!1},nextPage:{type:Function,required:!1},prevPage:{type:Function,required:!1},modelValue:{type:null,required:!1},multiple:{type:Boolean,required:!1,default:!1},disableDaysOutsideCurrentView:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"div"}},emits:["update:modelValue","update:placeholder"],setup(e,{emit:t}){const n=e,r=t,{disabled:i,readonly:a,initialFocus:s,pagedNavigation:o,weekdayFormat:f,fixedWeeks:m,multiple:y,minValue:b,maxValue:T,numberOfMonths:x,preventDeselect:$,isDateDisabled:A,isDateUnavailable:N,calendarLabel:O,defaultValue:I,nextPage:U,prevPage:B,dir:q,locale:Q,disableDaysOutsideCurrentView:ee}=bi(n),{primitiveElement:Y,currentElement:z}=Xy(),H=$T(Q),K=wu(q),ne=xe(()=>n.weekStartsOn??dH(H.value)),le=Hi(n,"modelValue",r,{defaultValue:I.value,passive:n.modelValue===void 0}),pe=KA({defaultPlaceholder:n.placeholder,defaultValue:le.value,locale:n.locale}),ae=Hi(n,"placeholder",r,{defaultValue:n.defaultPlaceholder??pe.copy(),passive:n.placeholder===void 0});function se(yt){ae.value=yt.copy()}const{fullCalendarLabel:ce,headingValue:ye,isDateDisabled:$e,isDateUnavailable:Be,isNextButtonDisabled:je,isPrevButtonDisabled:at,weekdays:Pt,isOutsideVisibleView:Qe,nextPage:nt,prevPage:Ve,formatter:ct,grid:zt,isPlaceholderFocusable:ut,firstFocusableDate:At}=M_e({locale:H,placeholder:ae,weekStartsOn:ne,fixedWeeks:m,numberOfMonths:x,minValue:b,maxValue:T,disabled:i,weekdayFormat:f,pagedNavigation:o,isDateDisabled:A.value,isDateUnavailable:N.value,calendarLabel:O,nextPage:U,prevPage:B}),{isInvalid:Dt,isDateSelected:Ot,hasSelectedDate:Ee,isSelectedDateDisabled:Ye}=T_e({date:le,isDateDisabled:$e,isDateUnavailable:Be});nn(le,yt=>{if(Array.isArray(yt)&&yt.length){const St=yt.at(-1);St&&!r_(ae.value,St)&&se(St)}else!Array.isArray(yt)&&yt&&!r_(ae.value,yt)&&se(yt)});function it(yt){if(y.value){if(!le.value)le.value=[yt.copy()];else if(Array.isArray(le.value)){if(le.value.findIndex(Ie=>_g(Ie,yt))===-1)le.value=[...le.value,yt];else if(!$.value){const Ie=le.value.filter(qe=>!_g(qe,yt));if(!Ie.length){ae.value=yt.copy(),le.value=void 0;return}
16le.value=Ie.map(qe=>qe.copy())}}}else{if(!le.value){le.value=yt.copy();return}!$.value&&r_(le.value,yt)?(ae.value=yt.copy(),le.value=void 0):le.value=yt.copy()}}return Hn(()=>{s.value&&uH(z.value)}),D_e({isDateUnavailable:Be,dir:K,isDateDisabled:$e,locale:H,formatter:ct,modelValue:le,placeholder:ae,disabled:i,initialFocus:s,pagedNavigation:o,grid:zt,weekDays:Pt,weekStartsOn:ne,weekdayFormat:f,fixedWeeks:m,multiple:y,numberOfMonths:x,readonly:a,preventDeselect:$,fullCalendarLabel:ce,headingValue:ye,isInvalid:Dt,isDateSelected:Ot,isNextButtonDisabled:je,isPrevButtonDisabled:at,isOutsideVisibleView:Qe,nextPage:nt,prevPage:Ve,parentElement:z,onPlaceholderChange:se,onDateChange:it,disableDaysOutsideCurrentView:ee,minValue:b,maxValue:T,isPlaceholderFocusable:ut,firstFocusableDate:At,hasSelectedDate:Ee,isSelectedDateDisabled:Ye}),(yt,St)=>(Z(),Se(v(Cn),{ref_key:"primitiveElement",ref:Y,as:yt.as,"as-child":yt.asChild,"aria-label":v(ce),"data-readonly":v(a)?"":void 0,"data-disabled":v(i)?"":void 0,"data-invalid":v(Dt)?"":void 0,dir:v(K)},{default:be(()=>[bt(yt.$slots,"default",{date:v(ae),grid:v(zt),weekDays:v(Pt),weekStartsOn:ne.value,locale:v(H),fixedWeeks:v(m),modelValue:v(le)}),Re("div",A_e,[Re("div",I_e,ht(v(ce)),1)])]),_:3},8,["as","as-child","aria-label","data-readonly","data-disabled","data-invalid","dir"]))}}),O_e=L_e,R_e=Fe({__name:"CalendarCell",props:{date:{type:null,required:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"td"}},setup(e){const t=J_();return(n,r)=>(Z(),Se(v(Cn),{as:n.as,"as-child":n.asChild,role:"gridcell","aria-selected":v(t).isDateSelected(n.date)?!0:void 0,"aria-disabled":v(t).isDateDisabled(n.date)||v(t).isDateUnavailable?.(n.date)||v(t).disableDaysOutsideCurrentView.value,"data-disabled":v(t).isDateDisabled(n.date)||v(t).disableDaysOutsideCurrentView.value?"":void 0},{default:be(()=>[bt(n.$slots,"default")]),_:3},8,["as","as-child","aria-selected","aria-disabled","data-disabled"]))}}),B_e=R_e,F_e=Fe({__name:"CalendarCellTrigger",props:{day:{type:null,required:!0},month:{type:null,required:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"div"}},setup(e){const t=e,n=K_(),r=J_(),{primitiveElement:i}=Xy(),a=xe(()=>t.day.day.toLocaleString(r.locale.value)),s=xe(()=>r.formatter.custom(sc(t.day),{weekday:"long",month:"long",day:"numeric",year:"numeric"})),o=xe(()=>r.isDateUnavailable?.(t.day)??!1),f=xe(()=>b0e(t.day,bg())),m=xe(()=>!zA(t.day,t.month)),y=xe(()=>r.isOutsideVisibleView(t.day)),b=xe(()=>r.isDateDisabled(t.day)||r.disableDaysOutsideCurrentView.value&&m.value),T=xe(()=>m.value||b.value?!1:!r.disabled.value&&r.isPlaceholderFocusable.value&&_g(t.day,r.placeholder.value)?!0:(!r.hasSelectedDate.value||r.isSelectedDateDisabled.value)&&!r.isPlaceholderFocusable.value?r.firstFocusableDate.value&&_g(t.day,r.firstFocusableDate.value):!1),x=xe(()=>r.isDateSelected(t.day));function $(O){r.readonly.value||r.isDateDisabled(O)||r.isDateUnavailable?.(O)||r.onDateChange(O)}function A(){b.value||$(t.day)}function N(O){if(b.value||(O.code===n.ENTER||O.code===n.SPACE_CODE)&&(O.ctrlKey||O.metaKey||O.altKey))return;O.preventDefault(),O.stopPropagation();const I=r.parentElement.value,U=7,B=r.dir.value==="rtl"?-1:1;switch(O.code){case n.ARROW_RIGHT:q(t.day,B);break;case n.ARROW_LEFT:q(t.day,-B);break;case n.ARROW_UP:q(t.day,-U);break;case n.ARROW_DOWN:q(t.day,U);break;case n.ENTER:case n.SPACE_CODE:$(t.day)}function q(Q,ee){const Y=Q.add({days:ee});if(r.minValue.value&&Y.compare(r.minValue.value)<0||r.maxValue.value&&Y.compare(r.maxValue.value)>0)return;const z=I.querySelector(`[data-value='${Y.toString()}']:not([data-outside-view])`);if(!z){if(ee>0){if(r.isNextButtonDisabled())return;r.nextPage()}else{if(r.isPrevButtonDisabled())return;r.prevPage()}ur(()=>{q(Q,ee)});return}if(z&&z.hasAttribute("data-disabled"))return q(Y,ee);r.onPlaceholderChange(Y),z?.focus()}}return(O,I)=>(Z(),Se(v(Cn),{ref_key:"primitiveElement",ref:i,as:t.as,"as-child":t.asChild,role:"button","aria-label":s.value,"data-reka-calendar-cell-trigger":"","aria-disabled":b.value||o.value?!0:void 0,"data-selected":x.value?!0:void 0,"data-value":O.day.toString(),"data-disabled":b.value?"":void 0,"data-unavailable":o.value?"":void 0,"data-today":f.value?"":void 0,"data-outside-view":m.value?"":void 0,"data-outside-visible-view":y.value?"":void 0,"data-focused":T.value?"":void 0,tabindex:T.value?0:m.value||b.value?void 0:-1,onClick:A,onKeydown:Ep(N,["up","down","left","right","space","enter"])},{default:be(()=>[bt(O.$slots,"default",{dayValue:a.value,disabled:b.value,today:f.value,selected:x.value,outsideView:m.value,outsideVisibleView:y.value,unavailable:o.value},()=>[_n(ht(a.value),1)])]),_:3},8,["as","as-child","aria-label","aria-disabled","data-selected","data-value","data-disabled","data-unavailable","data-today","data-outside-view","data-outside-visible-view","data-focused","tabindex"]))}}),z_e=F_e,N_e=Fe({__name:"CalendarGrid",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"table"}},setup(e){const t=e,n=J_(),r=xe(()=>n.disabled.value?!0:void 0),i=xe(()=>n.readonly.value?!0:void 0);return(a,s)=>(Z(),Se(v(Cn),vn(t,{tabindex:"-1",role:"application","aria-readonly":i.value,"aria-disabled":r.value,"data-readonly":i.value&&"","data-disabled":r.value&&""}),{default:be(()=>[bt(a.$slots,"default")]),_:3},16,["aria-readonly","aria-disabled","data-readonly","data-disabled"]))}}),V_e=N_e,q_e=Fe({__name:"CalendarGridBody",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"tbody"}},setup(e){const t=e;return(n,r)=>(Z(),Se(v(Cn),gr(yr(t)),{default:be(()=>[bt(n.$slots,"default")]),_:3},16))}}),j_e=q_e,U_e=Fe({__name:"CalendarGridHead",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"thead"}},setup(e){const t=e;return(n,r)=>(Z(),Se(v(Cn),vn(t,{"aria-hidden":"true"}),{default:be(()=>[bt(n.$slots,"default")]),_:3},16))}}),H_e=U_e,W_e=Fe({__name:"CalendarGridRow",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"tr"}},setup(e){const t=e;return(n,r)=>(Z(),Se(v(Cn),gr(yr(t)),{default:be(()=>[bt(n.$slots,"default")]),_:3},16))}}),G_e=W_e,Y_e=Fe({__name:"CalendarHeadCell",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"th"}},setup(e){const t=e;return(n,r)=>(Z(),Se(v(Cn),gr(yr(t)),{default:be(()=>[bt(n.$slots,"default")]),_:3},16))}}),Z_e=Y_e,K_e=Fe({__name:"CalendarHeader",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"div"}},setup(e){const t=e;return(n,r)=>(Z(),Se(v(Cn),gr(yr(t)),{default:be(()=>[bt(n.$slots,"default")]),_:3},16))}}),X_e=K_e,J_e=Fe({__name:"CalendarHeading",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"div"}},setup(e){const t=e,n=J_();return(r,i)=>(Z(),Se(v(Cn),vn(t,{"data-disabled":v(n).disabled.value?"":void 0}),{default:be(()=>[bt(r.$slots,"default",{headingValue:v(n).headingValue.value},()=>[_n(ht(v(n).headingValue.value),1)])]),_:3},16,["data-disabled"]))}}),Q_e=J_e,ebe=Fe({__name:"CalendarNext",props:{nextPage:{type:Function,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,n=xe(()=>r.disabled.value||r.isNextButtonDisabled(t.nextPage)),r=J_();function i(){n.value||r.nextPage(t.nextPage)}return(a,s)=>(Z(),Se(v(Cn),{as:t.as,"as-child":t.asChild,"aria-label":"Next page",type:t.as==="button"?"button":void 0,"aria-disabled":n.value||void 0,"data-disabled":n.value||void 0,disabled:n.value,onClick:i},{default:be(()=>[bt(a.$slots,"default",{disabled:n.value},()=>[s[0]||(s[0]=_n(" Next page "))])]),_:3},8,["as","as-child","type","aria-disabled","data-disabled","disabled"]))}}),tbe=ebe,nbe=Fe({__name:"CalendarPrev",props:{prevPage:{type:Function,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,n=xe(()=>r.disabled.value||r.isPrevButtonDisabled(t.prevPage)),r=J_();function i(){n.value||r.prevPage(t.prevPage)}return(a,s)=>(Z(),Se(v(Cn),{"aria-label":"Previous page",as:t.as,"as-child":t.asChild,type:t.as==="button"?"button":void 0,"aria-disabled":n.value||void 0,"data-disabled":n.value||void 0,disabled:n.value,onClick:i},{default:be(()=>[bt(a.$slots,"default",{disabled:n.value},()=>[s[0]||(s[0]=_n(" Prev page "))])]),_:3},8,["as","as-child","type","aria-disabled","data-disabled","disabled"]))}}),rbe=nbe;const[ibe,abe]=hi("RovingFocusGroup");var obe=Fe({__name:"RovingFocusGroup",props:{orientation:{type:String,required:!1,default:void 0},dir:{type:String,required:!1},loop:{type:Boolean,required:!1,default:!1},currentTabStopId:{type:[String,null],required:!1},defaultCurrentTabStopId:{type:String,required:!1},preventScrollOnEntryFocus:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["entryFocus","update:currentTabStopId"],setup(e,{expose:t,emit:n}){const r=e,i=n,{loop:a,orientation:s,dir:o}=bi(r),f=wu(o),m=Hi(r,"currentTabStopId",i,{defaultValue:r.defaultCurrentTabStopId,passive:r.currentTabStopId===void 0}),y=De(!1),b=De(!1),T=De(0),{getItems:x,CollectionSlot:$}=zf({isProvider:!0});function A(O){const I=!b.value;if(O.currentTarget&&O.target===O.currentTarget&&I&&!y.value){const U=new CustomEvent(L1e,O1e);if(O.currentTarget.dispatchEvent(U),i("entryFocus",U),!U.defaultPrevented){const B=x().map(z=>z.ref).filter(z=>z.dataset.disabled!==""),q=B.find(z=>z.getAttribute("data-active")===""),Q=B.find(z=>z.getAttribute("data-highlighted")===""),ee=B.find(z=>
16z.id===m.value),Y=[q,Q,ee,...B].filter(Boolean);EH(Y,r.preventScrollOnEntryFocus)}}b.value=!1}function N(){setTimeout(()=>{b.value=!1},1)}return t({getItems:x}),abe({loop:a,dir:f,orientation:s,currentTabStopId:m,onItemFocus:O=>{m.value=O},onItemShiftTab:()=>{y.value=!0},onFocusableItemAdd:()=>{T.value++},onFocusableItemRemove:()=>{T.value--}}),(O,I)=>(Z(),Se(v($),null,{default:be(()=>[ke(v(Cn),{tabindex:y.value||T.value===0?-1:0,"data-orientation":v(s),as:O.as,"as-child":O.asChild,dir:v(f),style:{outline:"none"},onMousedown:I[0]||(I[0]=U=>b.value=!0),onMouseup:N,onFocus:A,onBlur:I[1]||(I[1]=U=>y.value=!1)},{default:be(()=>[bt(O.$slots,"default")]),_:3},8,["tabindex","data-orientation","as","as-child","dir"])]),_:3}))}}),VT=obe,sbe=Fe({__name:"RovingFocusItem",props:{tabStopId:{type:String,required:!1},focusable:{type:Boolean,required:!1,default:!0},active:{type:Boolean,required:!1},allowShiftKey:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){const t=e,n=ibe(),r=bu(),i=xe(()=>t.tabStopId||r),a=xe(()=>n.currentTabStopId.value===i.value),{getItems:s,CollectionItem:o}=zf();Hn(()=>{t.focusable&&n.onFocusableItemAdd()}),oa(()=>{t.focusable&&n.onFocusableItemRemove()}),nn(()=>t.focusable,(m,y)=>{m!==y&&(m?n.onFocusableItemAdd():n.onFocusableItemRemove())});function f(m){if(m.key==="Tab"&&m.shiftKey){n.onItemShiftTab();return}if(m.target!==m.currentTarget)return;
16const y=F1e(m,n.orientation.value,n.dir.value);if(y!==void 0){if(m.metaKey||m.ctrlKey||m.altKey||!t.allowShiftKey&&m.shiftKey)return;m.preventDefault();let b=[...s().map(T=>T.ref).filter(T=>T.dataset.disabled!=="")];if(y==="last")b.reverse();else if(y==="prev"||y==="next"){y==="prev"&&b.reverse();const T=b.indexOf(m.currentTarget);b=n.loop.value?z1e(b,T+1):b.slice(T+1)}ur(()=>EH(b))}}return(m,y)=>(Z(),Se(v(o),null,{default:be(()=>[ke(v(Cn),{tabindex:a.value?0:-1,"data-orientation":v(n).orientation.value,"data-active":m.active?"":void 0,"data-disabled":m.focusable?void 0:"",as:m.as,"as-child":m.asChild,onMousedown:y[0]||(y[0]=b=>{m.focusable?v(n).onItemFocus(i.value):b.preventDefault()}),onFocus:y[1]||(y[1]=b=>v(n).onItemFocus(i.value)),onKeydown:f},{default:be(()=>[bt(m.$slots,"default")]),_:3},8,["tabindex","data-orientation","data-active","data-disabled","as","as-child"])]),_:3}))}}),Iw=sbe;const[lbe]=hi("CheckboxGroupRoot");function UH(e){return e==="indeterminate"}function ube(e){return UH(e)?"indeterminate":e?"checked":"unchecked"}const[JRe,cbe]=hi("CheckboxRoot");var dbe=Fe({inheritAttrs:!1,__name:"CheckboxRoot",props:{defaultValue:{type:null,required:!1},modelValue:{type:null,required:!1,default:void 0},disabled:{type:Boolean,required:!1},value:{type:null,required:!1,default:"on"},id:{type:String,required:!1},trueValue:{type:null,required:!1,default:()=>!0},falseValue:{type:null,required:!1,default:()=>!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,{forwardRef:i,currentElement:a}=wn(),s=lbe(null),o=Hi(n,"modelValue",r,{defaultValue:n.defaultValue??n.falseValue,passive:n.modelValue===void 0}),f=xe(()=>s?.disabled.value||n.disabled),m=xe(()=>bp(o.value,n.trueValue)),y=xe(()=>cu(s?.modelValue.value)?o.value==="indeterminate"?"indeterminate":m.value:O4(s.modelValue.value,n.value));function b(){if(cu(s?.modelValue.value))o.value==="indeterminate"?o.value=n.trueValue:o.value=m.value?n.falseValue:n.trueValue;else{const N=[...s.modelValue.value||[]];if(O4(N,n.value)){const O=N.findIndex(I=>bp(I,n.value));N.splice(O,1)}else N.push(n.value);s.modelValue.value=N}}const T=Lg(a),x=Z_(),$=qM(),A=xe(()=>{if(!$["aria-label"])return n.id&&a.value?document.querySelector(`[for="${n.id}"]`)?.innerText:void 0});return cbe({disabled:f,state:y}),(N,O)=>(Z(),Ce(Ct,null,[(Z(),Se(xr(v(s)?.rovingFocus.value?v(Iw):v(Cn)),vn({...N.$attrs,...v(x)},{id:N.id,ref:v(i),role:"checkbox","as-child":N.asChild,as:N.as,type:N.as==="button"?"button":void 0,"aria-checked":v(UH)(y.value)?"mixed":y.value,"aria-required":N.required,"aria-label":N.$attrs["aria-label"]||A.value,"data-state":v(ube)(y.value),"data-disabled":f.value?"":void 0,disabled:f.value,focusable:v(s)?.rovingFocus.value?!f.value:void 0,onKeydown:Ep(ti(()=>{},["prevent"]),["enter"]),onClick:b}),{default:be(()=>[bt(N.$slots,"default",{modelValue:v(o),state:y.value})]),_:3},16,["id","as-child","as","type","aria-checked","aria-required","aria-label","data-state","data-disabled","disabled","focusable","onKeydown"])),v(T)&&N.name&&!v(s)?(Z(),Se(v(l1),vn({key:0,type:"checkbox",checked:!!y.value,name:N.name,value:N.value,disabled:f.value,required:N.required},v(x)),null,16,["checked","name","value","disabled","required"])):Ne("v-if",!0)],64))}}),dI=dbe;function fbe(e=[],t,n){const r=[...e];return r[n]=t,r.sort((i,a)=>i-a)}function HH(e,t,n){const a=100/(n-t)*(e-t);return L4(a,0,100)}function hbe(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function pbe(e,t){if(e.length===1)return 0;const n=e.map(i=>Math.abs(i-t)),r=Math.min(...n);return n.indexOf(r)}function mbe(e,t,n){const r=e/2,a=fI([0,50],[0,r]);return(r-a(t)*n)*n}function gbe(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function ybe(e,t){if(t>0){const n=gbe(e);return Math.min(...n)>=t}return!0}function fI(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function vbe(e){return(String(e).split(".")[1]||"").length}function _be(e,t){const n=10**t;return Math.round(e*n)/n}const WH=["PageUp","PageDown"],GH=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],YH={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageUp","ArrowUp","ArrowLeft"]},[ZH,KH]=hi(["SliderVertical","SliderHorizontal"]);var bbe=Fe({__name:"SliderHorizontal",props:{dir:{type:String,required:!1},min:{type:Number,required:!0},max:{type:Number,required:!0},inverted:{type:Boolean,required:!0}},emits:["slideEnd","slideStart","slideMove","homeKeyDown","endKeyDown","stepKeyDown"],setup(e,{emit:t}){const n=e,r=t,{max:i,min:a,dir:s,inverted:o}=bi(n),{forwardRef:f,currentElement:m}=wn(),y=Q_(),b=De(),T=De(),x=xe(()=>s?.value!=="rtl"&&!o.value||s?.value!=="ltr"&&o.value);function $(I,U){const B=T.value||m.value.getBoundingClientRect(),q=[...y.thumbElements.value][y.valueIndexToChangeRef.value],Q=y.thumbAlignment.value==="contain"?q.clientWidth:0;
16!b.value&&!U&&y.thumbAlignment.value==="contain"&&(b.value=I.clientX-q.getBoundingClientRect().left);const ee=[0,B.width-Q],Y=x.value?[a.value,i.value]:[i.value,a.value],z=fI(ee,Y);T.value=B;const H=U?I.clientX-B.left-Q/2:I.clientX-B.left-(b.value??0);return z(H)}const A=xe(()=>x.value?"left":"right"),N=xe(()=>x.value?"right":"left"),O=xe(()=>x.value?1:-1);return KH({startEdge:A,endEdge:N,direction:O,size:"width"}),(I,U)=>(Z(),Se(JH,{ref:v(f),dir:v(s),"data-orientation":"horizontal",style:fo({"--reka-slider-thumb-transform":!x.value&&v(y).thumbAlignment.value==="overflow"?"translateX(50%)":"translateX(-50%)"}),onSlideStart:U[0]||(U[0]=B=>{const q=$(B,!0);r("slideStart",q)}),onSlideMove:U[1]||(U[1]=B=>{const q=$(B);r("slideMove",q)}),onSlideEnd:U[2]||(U[2]=()=>{T.value=void 0,b.value=void 0,r("slideEnd")}),onStepKeyDown:U[3]||(U[3]=B=>{const q=x.value?"from-left":"from-right",Q=v(YH)[q].includes(B.key);r("stepKeyDown",B,Q?-1:1)}),onEndKeyDown:U[4]||(U[4]=B=>r("endKeyDown",B)),onHomeKeyDown:U[5]||(U[5]=B=>r("homeKeyDown",B))},{default:be(()=>[bt(I.$slots,"default")]),_:3},8,["dir","style"]))}}),xbe=bbe,wbe=Fe({__name:"SliderVertical",props:{min:{type:Number,required:!0},max:{type:Number,required:!0},inverted:{type:Boolean,required:!0}},emits:["slideEnd","slideStart","slideMove","homeKeyDown","endKeyDown","stepKeyDown"],setup(e,{emit:t}){const n=e,r=t,{max:i,min:a,inverted:s}=bi(n),o=Q_(),{forwardRef:f,currentElement:m}=wn(),y=De(),b=De(),T=xe(()=>!s.value);function x(O,I){const U=b.value||m.value.getBoundingClientRect(),B=[...o.thumbElements.value][o.valueIndexToChangeRef.value],q=o.thumbAlignment.value==="contain"?B.clientHeight:0;!y.value&&!I&&o.thumbAlignment.value==="contain"&&(y.value=O.clientY-B.getBoundingClientRect().top);const Q=[0,U.height-q],ee=T.value?[i.value,a.value]:[a.value,i.value],Y=fI(Q,ee),z=I?O.clientY-U.top-q/2:O.clientY-U.top-(y.value??0);return b.value=U,Y(z)}const $=xe(()=>T.value?"bottom":"top"),A=xe(()=>T.value?"top":"bottom"),N=xe(()=>T.value?1:-1);return KH({startEdge:$,endEdge:A,direction:N,size:"height"}),(O,I)=>(Z(),Se(JH,{ref:v(f),"data-orientation":"vertical",style:fo({"--reka-slider-thumb-transform":!T.value&&v(o).thumbAlignment.value==="overflow"?"translateY(-50%)":"translateY(50%)"}),onSlideStart:I[0]||(I[0]=U=>{const B=x(U,!0);r("slideStart",B)}),onSlideMove:I[1]||(I[1]=U=>{const B=x(U);r("slideMove",B)}),onSlideEnd:I[2]||(I[2]=()=>{b.value=void 0,y.value=void 0,r("slideEnd")}),onStepKeyDown:I[3]||(I[3]=U=>{const B=T.value?"from-bottom":"from-top",q=v(YH)[B].includes(U.key);r("stepKeyDown",U,q?-1:1)}),onEndKeyDown:I[4]||(I[4]=U=>r("endKeyDown",U)),onHomeKeyDown:I[5]||(I[5]=U=>r("homeKeyDown",U))},{default:be(()=>[bt(O.$slots,"default")]),_:3},8,["style"]))}}),Sbe=wbe;const[Q_,Cbe]=hi("SliderRoot");var Tbe=Fe({inheritAttrs:!1,__name:"SliderRoot",props:{defaultValue:{type:Array,required:!1,default:()=>[0]},modelValue:{type:[Array,null],required:!1},disabled:{type:Boolean,required:!1,default:!1},orientation:{type:String,required:!1,default:"horizontal"},dir:{type:String,required:!1},inverted:{type:Boolean,required:!1,default:!1},min:{type:Number,required:!1,default:0},max:{type:Number,required:!1,default:100},step:{type:Number,required:!1,default:1},minStepsBetweenThumbs:{type:Number,required:!1,default:0},thumbAlignment:{type:String,required:!1,default:"contain"},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:["update:modelValue","valueCommit"],setup(e,{emit:t}){const n=e,r=t,{min:i,max:a,step:s,minStepsBetweenThumbs:o,orientation:f,disabled:m,thumbAlignment:y,dir:b}=bi(n),T=wu(b),{forwardRef:x,currentElement:$}=wn(),A=Lg($),{CollectionSlot:N}=zf({isProvider:!0}),O=Hi(n,"modelValue",r,{defaultValue:n.defaultValue,passive:n.modelValue===void 0}),I=xe(()=>Array.isArray(O.value)?[...O.value]:[]),U=De(0),B=De(I.value);function q(H){const K=pbe(I.value,H);Y(H,K)}function Q(H){Y(H,U.value)}function ee(){const H=B.value[U.value];I.value[U.value]!==H&&r("valueCommit",In(I.value))}function Y(H,K,{commit:ne}={commit:!1}){const le=vbe(s.value),pe=_be(Math.round((H-i.value)/s.value)*s.value+i.value,le),ae=L4(pe,i.value,a.value),se=fbe(I.value,ae,K);if(ybe(se,o.value*s.value)){U.value=se.indexOf(ae);const ce=String(se)!==String(O.value);ce&&ne&&r("valueCommit",se),ce&&(z.value[U.value]?.focus(),O.value=se)}}const z=De([]);return Cbe({modelValue:O,currentModelValue:I,valueIndexToChangeRef:U,thumbElements:z,orientation:f,min:i,max:a,disabled:m,thumbAlignment:y}),(H,K)=>(Z(),Se(v(N),null,{default:be(()=>[(Z(),Se(xr(v(f)==="horizontal"?xbe:Sbe),vn(H.$attrs,{ref:v(x),"as-child":H.asChild,as:H.as,min:v(i),max:v(a),dir:v(T),inverted:H.inverted,"aria-disabled":v(m),"data-disabled":v(m)?"":void 0,onPointerdown:K[0]||(K[0]=()=>{v(m)||(B.value=I.value)}),onSlideStart:K[1]||(K[1]=ne=>!v(m)&&q(ne)),onSlideMove:K[2]||(K[2]=ne=>
16!v(m)&&Q(ne)),onSlideEnd:K[3]||(K[3]=ne=>!v(m)&&ee()),onHomeKeyDown:K[4]||(K[4]=ne=>!v(m)&&Y(v(i),0,{commit:!0})),onEndKeyDown:K[5]||(K[5]=ne=>!v(m)&&Y(v(a),I.value.length-1,{commit:!0})),onStepKeyDown:K[6]||(K[6]=(ne,le)=>{if(!v(m)){const se=v(WH).includes(ne.key)||ne.shiftKey&&v(GH).includes(ne.key)?10:1,ce=U.value,ye=I.value[ce],$e=v(s)*se*le;Y(ye+$e,ce,{commit:!0})}})}),{default:be(()=>[bt(H.$slots,"default",{modelValue:v(O)}),v(A)&&H.name?(Z(),Se(v(l1),{key:0,type:"number",value:v(O),name:H.name,required:H.required,disabled:v(m),step:v(s)},null,8,["value","name","required","disabled","step"])):Ne("v-if",!0)]),_:3},16,["as-child","as","min","max","dir","inverted","aria-disabled","data-disabled"]))]),_:3}))}}),XH=Tbe,kbe=Fe({__name:"SliderImpl",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},emits:["slideStart","slideMove","slideEnd","homeKeyDown","endKeyDown","stepKeyDown"],setup(e,{emit:t}){const n=e,r=t,i=Q_();return(a,s)=>(Z(),Se(v(Cn),vn({"data-slider-impl":""},n,{onKeydown:s[0]||(s[0]=o=>{o.key==="Home"?(r("homeKeyDown",o),o.preventDefault()):o.key==="End"?(r("endKeyDown",o),o.preventDefault()):v(WH).concat(v(GH)).includes(o.key)&&(r("stepKeyDown",o),o.preventDefault())}),onPointerdown:s[1]||(s[1]=o=>{const f=o.target;f.setPointerCapture(o.pointerId),o.preventDefault(),v(i).thumbElements.value.includes(f)?f.focus():r("slideStart",o)}),onPointermove:s[2]||(s[2]=o=>{o.target.hasPointerCapture(o.pointerId)&&r("slideMove",o)}),onPointerup:s[3]||(s[3]=o=>{const f=o.target;f.hasPointerCapture(o.pointerId)&&(f.releasePointerCapture(o.pointerId),r("slideEnd",o))})}),{default:be(()=>[bt(a.$slots,"default")]),_:3},16))}}),JH=kbe,Ebe=Fe({__name:"SliderRange",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){const t=Q_(),n=ZH();wn();const r=xe(()=>t.currentModelValue.value.map(s=>HH(s,t.min.value,t.max.value))),i=xe(()=>t.currentModelValue.value.length>1?Math.min(...r.value):0),a=xe(()=>100-Math.max(...r.value,0));return(s,o)=>(Z(),Se(v(Cn),{"data-disabled":v(t).disabled.value?"":void 0,"data-orientation":v(t).orientation.value,"as-child":s.asChild,as:s.as,style:fo({[v(n).startEdge.value]:`${i.value}%`,[v(n).endEdge.value]:`${a.value}%`})},{default:be(()=>[bt(s.$slots,"default")]),_:3},8,["data-disabled","data-orientation","as-child","as","style"]))}}),QH=Ebe,Pbe=Fe({inheritAttrs:!1,__name:"SliderThumbImpl",props:{index:{type:Number,required:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,n=Q_(),r=ZH(),{forwardRef:i,currentElement:a}=wn(),{CollectionItem:s}=zf(),o=xe(()=>n.modelValue?.value?.[t.index]),f=xe(()=>o.value===void 0?0:HH(o.value,n.min.value??0,n.max.value??100)),m=xe(()=>hbe(t.index,n.modelValue?.value?.length??0)),y=mH(a),b=xe(()=>y[r.size].value),T=xe(()=>n.thumbAlignment.value==="overflow"||!b.value?0:mbe(b.value,f.value,r.direction.value)),x=wT();return Hn(()=>{n.thumbElements.value.push(a.value)}),oa(()=>{const $=n.thumbElements.value.findIndex(A=>A===a.value)??-1;n.thumbElements.value.splice($,1)}),($,A)=>(Z(),Se(v(s),null,{default:be(()=>[ke(v(Cn),vn($.$attrs,{ref:v(i),role:"slider",tabindex:v(n).disabled.value?void 0:0,"aria-label":$.$attrs["aria-label"]||m.value,"data-disabled":v(n).disabled.value?"":void 0,"data-orientation":v(n).orientation.value,"aria-valuenow":o.value,"aria-valuemin":v(n).min.value,"aria-valuemax":v(n).max.value,"aria-orientation":v(n).orientation.value,"as-child":$.asChild,as:$.as,style:{transform:"var(--reka-slider-thumb-transform)",position:"absolute",[v(r).startEdge.value]:`calc(${f.value}% + ${T.value}px)`,display:!v(x)&&o.value===void 0?"none":void 0},onFocus:A[0]||(A[0]=()=>{v(n).valueIndexToChangeRef.value=$.index})}),{default:be(()=>[bt($.$slots,"default")]),_:3},16,["tabindex","aria-label","data-disabled","data-orientation","aria-valuenow","aria-valuemin","aria-valuemax","aria-orientation","as-child","as","style"])]),_:3}))}}),$be=Pbe,Mbe=Fe({__name:"SliderThumb",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){const t=e,{getItems:n}=zf(),{forwardRef:r,currentElement:i}=wn(),a=xe(()=>i.value?n(!0).findIndex(s=>s.ref===i.value):-1);return(s,o)=>(Z(),Se($be,vn({ref:v(r)},t,{index:a.value}),{default:be(()=>[bt(s.$slots,"default")]),_:3},16,["index"]))}}),eW=Mbe,Abe=Fe({__name:"SliderTrack",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){const t=Q_();return wn(),(n,r)=>(Z(),Se(v(Cn),{"as-child":n.asChild,as:n.as,"data-disabled":v(t).disabled.value?"":void 0,"data-orientation":v(t).orientation.value},{default:be(()=>[bt(n.$slots,"default")]),_:3},8,["as-child","as","data-disabled","data-orientation"]))}}),tW=Abe;const[Ibe,Dbe]=hi("DateFieldRoot");var Lbe=Fe({inheritAttrs:!1,__name:"DateFieldRoot",props:{defaultValue:{type:null,required:!1,default:void 0},defaultPlaceholder:{type:null,required:!1},placeholder:{type:null,required:!1,default:void 0},modelValue:{type:null,required:!1},hourCycle:{type:null,required:!1},step:{type:Object,required:!1},stepSnapping:{type:Boolean,required:!1,default:!1},granularity:{type:String,required:!1},hideTimeZone:{type:Boolean,required:!1},maxValue:{type:null,required:!1},minValue:{type:null,required:!1},locale:{type:String,required:!1},disabled:{type:Boolean,required:!1,default:!1},readonly:{type:Boolean,required:!1,default:!1},isDateUnavailable:{type:Function,required:!1,default:void 0},id:{type:String,required:!1},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:["update:modelValue","update:placeholder"],setup(e,{expose:t,emit:n}){const r=e,i=n,{disabled:a,readonly:s,isDateUnavailable:o,granularity:f,defaultValue:m,stepSnapping:y,dir:b,locale:T}=bi(r),x=$T(T),$=wu(b),A=XA(x.value,{hourCycle:qx(r.hourCycle)}),{primitiveElement:N,currentElement:O}=Xy(),I=De(new Set);Hn(()=>{MR(O.value).forEach(nt=>I.value.add(nt))});const U=Hi(r,"modelValue",i,{defaultValue:m.value,passive:r.modelValue===void 0}),B=KA({defaultPlaceholder:r.placeholder,granularity:f.value,defaultValue:U.value,locale:r.locale}),q=Hi(r,"placeholder",i,{defaultValue:r.defaultPlaceholder??B.copy(),passive:r.placeholder===void 0}),Q=xe(()=>lH(r)),ee=xe(()=>r.granularity?f$(q.value)?r.granularity:"day":f$(q.value)?"minute":"day"),Y=xe(()=>U.value?!!(o.value?.(U.value)||r.minValue&&tg(U.value,r.minValue)||r.maxValue&&tg(r.maxValue,U.value)):!1),z=c_e(ee.value),H=De(U.value?{...$R({value:U.value,formatter:A})}:{...z}),K=xe(()=>qH({granularity:ee.value,dateRef:q.value,formatter:A,hideTimeZone:r.hideTimeZone,hourCycle:r.hourCycle,segmentValues:H.value,locale:x})),ne=xe(()=>K.value.arr),le=xe(()=>ne.value.filter(({part:nt})=>nt!=="literal"));nn(x,nt=>{A.getLocale()!==nt&&(A.setLocale(nt),ur(()=>{I.value.clear(),MR(O.value).forEach(Ve=>I.value.add(Ve))}))}),nn(U,nt=>{!cu(nt)&&q.value.compare(nt)!==0&&(q.value=nt.copy())}),nn([U,x],([nt])=>{cu(nt)?Object.values(H.value).every(Ve=>Ve!==null)&&cu(nt)&&(H.value={...z}):H.value={...$R({value:nt,formatter:A})}});const pe=De(null),ae=xe(()=>Array.from(I.value).findIndex(nt=>nt.getAttribute("data-reka-date-field-segment")===pe.value?.getAttribute("data-reka-date-field-segment"))),se=xe(()=>{const nt=$.value==="rtl"?-1:1;return(nt<0?ae.value<0:ae.value>I.value.size-1)?null:Array.from(I.value)[ae.value+nt]}),ce=xe(()=>{const nt=$.value==="rtl"?-1:1;return(nt>0?ae.value<0:ae.value>I.value.size-1)?null:Array.from(I.value)[ae.value-nt]}),ye=xe(()=>cH(ee.value)),$e=xe(()=>U6(U.value,ee.value)),Be=xe(()=>r.maxValue?U6(r.maxValue,ee.value):void 0),je=xe(()=>r.minValue?U6(r.minValue,ee.value):void 0),at=K_();function Pt(nt){nt.isComposing||Uh(nt.key)&&(nt.key===at.ARROW_LEFT&&ce.value?.focus(),nt.key===at.ARROW_RIGHT&&se.value?.focus())}function Qe(nt){pe.value=nt}return Dbe({isDateUnavailable:o.value,locale:x,modelValue:U,placeholder:q,disabled:a,formatter:A,hourCycle:r.hourCycle,step:Q,stepSnapping:y,readonly:s,segmentValues:H,isInvalid:Y,segmentContents:le,elements:I,setFocusedElement:Qe,focusNext(){Array.from(I.value)[ae.value+1]?.focus()}}),t({setFocusedElement:Qe}),(nt,Ve)=>(Z(),Se(v(Cn),vn(nt.$attrs,{ref_key:"primitiveElement",ref:N,role:"group","aria-disabled":v(a)?!0:void 0,"data-disabled":v(a)?"":void 0,"data-readonly":v(s)?"":void 0,"data-invalid":Y.value?"":void 0,dir:v($),onKeydown:Ep(Pt,["left","right"])}),{default:be(()=>[bt(nt.$slots,"default",{modelValue:v(U),segments:ne.value,isInvalid:Y.value}),ke(v(Mw),{id:nt.id,as:"input",type:ye.value,feature:"focusable",tabindex:"-1",value:$e.value,name:nt.name,disabled:v(a),required:nt.required,max:Be.value,min:je.value,onFocus:Ve[0]||(Ve[0]=ct=>
16Array.from(I.value)?.[0]?.focus())},null,8,["id","type","value","name","disabled","required","max","min"])]),_:3},16,["aria-disabled","data-disabled","data-readonly","data-invalid","dir"]))}}),Obe=Lbe,Rbe=Fe({__name:"DateFieldInput",props:{part:{type:null,required:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,n=Ibe(),r=De(!0),i=De(!1),{handleSegmentClick:a,handleSegmentKeydown:s,handleSegmentFocusOut:o,handleSegmentBeforeInput:f,handleSegmentCompositionStart:m,handleSegmentCompositionEnd:y,attributes:b}=jH({hasLeftFocus:r,lastKeyZero:i,placeholder:n.placeholder,hourCycle:n.hourCycle,step:n.step,stepSnapping:n.stepSnapping,segmentValues:n.segmentValues,formatter:n.formatter,part:t.part,disabled:n.disabled,readonly:n.readonly,focusNext:n.focusNext,modelValue:n.modelValue}),T=xe(()=>n.disabled.value),x=xe(()=>n.readonly.value),$=xe(()=>n.isInvalid.value);return(A,N)=>(Z(),Se(v(Cn),vn({as:A.as,"as-child":A.asChild},v(b),{contenteditable:T.value||x.value?!1:A.part!=="literal","data-reka-date-field-segment":A.part,"aria-disabled":T.value?!0:void 0,"aria-readonly":x.value?!0:void 0,"data-disabled":T.value?"":void 0,"data-invalid":$.value?"":void 0,"aria-invalid":$.value?!0:void 0},VM(A.part!=="literal"?{mousedown:v(a),keydown:v(s),beforeinput:v(f),compositionstart:v(m),compositionend:v(y),focusout:()=>{r.value=!0,v(o)()},focusin:O=>{v(n).setFocusedElement(O.target)}}:{})),{default:be(()=>[bt(A.$slots,"default")]),_:3},16,["as","as-child","contenteditable","data-reka-date-field-segment","aria-disabled","aria-readonly","data-disabled","data-invalid","aria-invalid"]))}}),Bbe=Rbe;const[c1,Fbe]=hi("PopoverRoot");var zbe=Fe({__name:"PopoverRoot",props:{defaultOpen:{type:Boolean,required:!1,default:!1},open:{type:Boolean,required:!1,default:void 0},modal:{type:Boolean,required:!1,default:!1}},emits:["update:open"],setup(e,{emit:t}){const n=e,r=t,{modal:i}=bi(n),a=Hi(n,"open",r,{defaultValue:n.defaultOpen,passive:n.open===void 0});return Fbe({contentId:"",triggerId:"",modal:i,open:a,onOpenChange:f=>{a.value=f},onOpenToggle:()=>{a.value=!a.value},triggerElement:De(),hasCustomAnchor:De(!1)}),(f,m)=>(Z(),Se(v(LT),null,{default:be(()=>[bt(f.$slots,"default",{open:v(a),close:()=>a.value=!1})]),_:3}))}}),eb=zbe,Nbe=Fe({__name:"PopoverAnchor",props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;wn();const n=c1();return FM(()=>{n.hasCustomAnchor.value=!0}),oa(()=>{n.hasCustomAnchor.value=!1}),(r,i)=>(Z(),Se(v(Aw),gr(yr(t)),{default:be(()=>[bt(r.$slots,"default")]),_:3},16))}}),hI=Nbe,Vbe=Fe({__name:"DatePickerAnchor",props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(n,r)=>(Z(),Se(v(hI),gr(yr(t)),{default:be(()=>[bt(n.$slots,"default")]),_:3},16))}}),qbe=Vbe,jbe=Fe({__name:"PopoverArrow",props:{width:{type:Number,required:!1,default:10},height:{type:Number,required:!1,default:5},rounded:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"svg"}},setup(e){const t=e;return wn(),(n,r)=>(Z(),Se(v(zH),gr(yr(t)),{default:be(()=>[bt(n.$slots,"default")]),_:3},16))}}),nW=jbe,Ube=Fe({__name:"DatePickerArrow",props:{width:{type:Number,required:!1},height:{type:Number,required:!1},rounded:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(n,r)=>(Z(),Se(v(nW),gr(yr(t)),{default:be(()=>[bt(n.$slots,"default")]),_:3},16))}}),Hbe=Ube;const[pI,Wbe]=hi("DatePickerRoot");var Gbe=Fe({inheritAttrs:!1,__name:"DatePickerRoot",props:{defaultValue:{type:null,required:!1,default:void 0},defaultPlaceholder:{type:null,required:!1},placeholder:{type:null,required:!1,default:void 0},modelValue:{type:null,required:!1},hourCycle:{type:null,required:!1},step:{type:Object,required:!1},stepSnapping:{type:Boolean,required:!1},granularity:{type:String,required:!1},hideTimeZone:{type:Boolean,required:!1},maxValue:{type:null,required:!1},minValue:{type:null,required:!1},locale:{type:String,required:!1},disabled:{type:Boolean,required:!1,default:!1},readonly:{type:Boolean,required:!1,default:!1},isDateUnavailable:{type:Function,required:!1,default:void 0},id:{type:String,required:!1},dir:{type:String,required:!1},name:{type:String,required:!1},required:{type:Boolean,required:!1},defaultOpen:{type:Boolean,required:!1,default:!1},open:{type:Boolean,required:!1,default:void 0},modal:{type:Boolean,required:!1,default:!1},isDateDisabled:{type:Function,required:!1,default:void 0},pagedNavigation:{type:Boolean,required:!1,default:!1},weekStartsOn:{type:Number,required:!1},weekdayFormat:{type:String,required:!1,default:"narrow"},fixedWeeks:{type:Boolean,required:!1,default:!1},numberOfMonths:{type:Number,required:!1,default:1},preventDeselect:{type:Boolean,required:!1,default:!1},closeOnSelect:{type:Boolean,required:!1,default:!1}},emits:["update:open","update:modelValue","update:placeholder"],setup(e,{emit:t}){const n=e,r=t,{locale:i,disabled:a,readonly:s,pagedNavigation:o,weekdayFormat:f,fixedWeeks:m,numberOfMonths:y,preventDeselect:b,isDateDisabled:T,isDateUnavailable:x,defaultOpen:$,modal:A,id:N,name:O,required:I,minValue:U,maxValue:B,granularity:q,hideTimeZone:Q,hourCycle:ee,defaultValue:Y,dir:z,step:H,closeOnSelect:K}=bi(n),ne=wu(z),le=$T(i),pe=xe(()=>n.weekStartsOn??dH(le.value)),ae=Hi(n,"modelValue",r,{defaultValue:Y.value,passive:n.modelValue===void 0}),se=xe(()=>KA({defaultPlaceholder:n.placeholder,granularity:n.granularity,defaultValue:ae.value,locale:le.value})),ce=Hi(n,"placeholder",r,{defaultValue:n.defaultPlaceholder??se.value.copy(),passive:n.placeholder===void 0}),ye=Hi(n,"open",r,{defaultValue:$.value,passive:n.open===void 0}),$e=De();function Be(je){return"hour"in je?je.set({hour:0,minute:0,second:0,millisecond:0}):je}return nn(ae,je=>{je&&je.compare(ce.value)!==0?ce.value=je.copy():!je&&"hour"in ce.value&&(ce.value=Be(ce.value)),K.value&&(ye.value=!1)}),Wbe({isDateUnavailable:x.value,isDateDisabled:T.value,locale:le,disabled:a,pagedNavigation:o,weekStartsOn:pe,weekdayFormat:f,fixedWeeks:m,numberOfMonths:y,readonly:s,preventDeselect:b,modelValue:ae,placeholder:ce,defaultOpen:$,modal:A,open:ye,id:N,name:O,required:I,minValue:U,maxValue:B,granularity:q,hideTimeZone:Q,hourCycle:ee,dateFieldRef:$e,dir:ne,step:H,onDateChange(je){je?ae.value&&!b.value&&je&&ae.value.compare(je)===0?ae.value=void 0:ae.value=je.copy():ae.value=void 0},onPlaceholderChange(je){ce.value=je.copy()},closeOnSelect:K}),(je,at)=>(Z(),Se(v(eb),{open:v(ye),"onUpdate:open":at[0]||(at[0]=Pt=>zn(ye)?ye.value=Pt:null),"default-open":v($),modal:v(A)},{default:be(()=>[bt(je.$slots,"default")]),_:3},8,["open","default-open","modal"]))}}),Ybe=Gbe,Zbe=Fe({__name:"DatePickerCalendar",setup(e){const t=pI();return(n,r)=>(Z(),Se(v(O_e),vn({isDateDisabled:v(t).isDateDisabled,isDateUnavailable:v(t).isDateUnavailable,minValue:v(t).minValue.value,maxValue:v(t).maxValue.value,locale:v(t).locale.value,disabled:v(t).disabled.value,pagedNavigation:v(t).pagedNavigation.value,weekStartsOn:v(t).weekStartsOn.value,weekdayFormat:v(t).weekdayFormat.value,fixedWeeks:v(t).fixedWeeks.value,
16numberOfMonths:v(t).numberOfMonths.value,readonly:v(t).readonly.value,preventDeselect:v(t).preventDeselect.value,dir:v(t).dir.value},{"model-value":v(t).modelValue.value,placeholder:v(t).placeholder.value,multiple:!1,"onUpdate:modelValue":r[0]||(r[0]=i=>{i&&v(t).modelValue.value&&v(r_)(i,v(t).modelValue.value)||v(t).onDateChange(i)}),"onUpdate:placeholder":r[1]||(r[1]=i=>{v(r_)(i,v(t).placeholder.value)||v(t).onPlaceholderChange(i)})}),{default:be(({weekDays:i,grid:a,date:s,weekStartsOn:o,locale:f,fixedWeeks:m})=>[bt(n.$slots,"default",{date:s,grid:a,weekDays:i,weekStartsOn:o,locale:f,fixedWeeks:m})]),_:3},16,["model-value","placeholder"]))}}),Kbe=Zbe,Xbe=Fe({__name:"DatePickerCell",props:{date:{type:null,required:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(n,r)=>(Z(),Se(v(B_e),gr(yr(t)),{default:be(()=>[bt(n.$slots,"default")]),_:3},16))}}),Jbe=Xbe,Qbe=Fe({__name:"DatePickerCellTrigger",props:{day:{type:null,required:!0},month:{type:null,required:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(n,r)=>(Z(),Se(v(z_e),gr(yr(t)),{default:be(i=>[bt(n.$slots,"default",gr(yr(i)))]),_:3},16))}}),e2e=Qbe,t2e=Fe({__name:"PopoverClose",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e;wn();const n=c1();return(r,i)=>(Z(),Se(v(Cn),{type:r.as==="button"?"button":void 0,as:r.as,"as-child":t.asChild,onClick:i[0]||(i[0]=a=>v(n).onOpenChange(!1))},{default:be(()=>[bt(r.$slots,"default")]),_:3},8,["type","as","as-child"]))}}),n2e=t2e,r2e=Fe({__name:"PopoverContentImpl",props:{trapFocus:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,r=t,i=Y_(jme(n,"trapFocus","disableOutsidePointerEvents")),{forwardRef:a}=wn(),s=c1();return fH(),(o,f)=>(Z(),Se(v(eI),{"as-child":"",loop:"",trapped:o.trapFocus,onMountAutoFocus:f[5]||(f[5]=m=>r("openAutoFocus",m)),onUnmountAutoFocus:f[6]||(f[6]=m=>r("closeAutoFocus",m))},{default:be(()=>[ke(v(Pw),{"as-child":"","disable-outside-pointer-events":o.disableOutsidePointerEvents,onPointerDownOutside:f[0]||(f[0]=m=>r("pointerDownOutside",m)),onInteractOutside:f[1]||(f[1]=m=>r("interactOutside",m)),onEscapeKeyDown:f[2]||(f[2]=m=>r("escapeKeyDown",m)),onFocusOutside:f[3]||(f[3]=m=>r("focusOutside",m)),onDismiss:f[4]||(f[4]=m=>v(s).onOpenChange(!1))},{default:be(()=>[ke(v(NT),vn(v(i),{id:v(s).contentId,ref:v(a),"data-state":v(s).open.value?"open":"closed","aria-labelledby":v(s).triggerId,style:{"--reka-popover-content-transform-origin":"var(--reka-popper-transform-origin)","--reka-popover-content-available-width":"var(--reka-popper-available-width)","--reka-popover-content-available-height":"var(--reka-popper-available-height)","--reka-popover-trigger-width":"var(--reka-popper-anchor-width)","--reka-popover-trigger-height":"var(--reka-popper-anchor-height)"},role:"dialog"}),{default:be(()=>[bt(o.$slots,"default")]),_:3},16,["id","data-state","aria-labelledby"])]),_:3},8,["disable-outside-pointer-events"])]),_:3},8,["trapped"]))}}),rW=r2e,i2e=Fe({__name:"PopoverContentModal",props:{memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,r=t,i=c1(),a=De(!1);FA(!0);const s=s1(n,r),{forwardRef:o,currentElement:f}=wn();return JA(f),(m,y)=>(Z(),Se(rW,vn(v(s),{ref:v(o),"trap-focus":v(i).open.value,"disable-outside-pointer-events":"",onCloseAutoFocus:y[0]||(y[0]=ti(b=>{r("closeAutoFocus",b),a.value||v(i).triggerElement.value?.focus()},["prevent"])),onPointerDownOutside:y[1]||(y[1]=b=>{r("pointerDownOutside",b);const T=b.detail.originalEvent,x=T.button===0&&T.ctrlKey===!0,$=T.button===2||x;a.value=$}),onFocusOutside:y[2]||(y[2]=ti(()=>{},["prevent"]))}),{default:be(()=>[bt(m.$slots,"default")]),_:3},16,["trap-focus"]))}}),a2e=i2e,o2e=Fe({__name:"PopoverContentNonModal",props:{memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,r=t,i=c1(),a=De(!1),s=De(!1),o=s1(n,r);return(f,m)=>(Z(),Se(rW,vn(v(o),{"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:m[0]||(m[0]=y=>{r("closeAutoFocus",y),y.defaultPrevented||(a.value||v(i).triggerElement.value?.focus(),y.preventDefault()),a.value=!1,s.value=!1}),onInteractOutside:m[1]||(m[1]=async y=>{r("interactOutside",y),y.defaultPrevented||(a.value=!0,y.detail.originalEvent.type==="pointerdown"&&(s.value=!0));const b=y.target;v(i).triggerElement.value?.contains(b)&&y.preventDefault(),y.detail.originalEvent.type==="focusin"&&s.value&&y.preventDefault()})}),{default:be(()=>[bt(f.$slots,"default")]),_:3},16))}}),s2e=o2e,l2e=Fe({__name:"PopoverContent",props:{forceMount:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,r=t,i=c1(),a=s1(n,r),{forwardRef:s}=wn();return i.contentId||=bu(void 0,"reka-popover-content"),(o,f)=>(Z(),Se(v(Og),{present:o.forceMount||v(i).open.value},{default:be(()=>[v(i).modal.value?(Z(),Se(a2e,vn({key:0},v(a),{ref:v(s)}),{default:be(()=>[bt(o.$slots,"default")]),_:3},16)):(Z(),Se(s2e,vn({key:1},v(a),{ref:v(s)}),{default:be(()=>[bt(o.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),tb=l2e,u2e=Fe({__name:"PopoverPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const t=e;return(n,r)=>(Z(),Se(v($w),gr(yr(t)),{default:be(()=>[bt(n.$slots,"default")]),_:3},16))}}),mI=u2e,c2e=Fe({__name:"DatePickerContent",props:{portal:{type:Object,required:!1},forceMount:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,r=t,i=xe(()=>({...n,portal:void 0})),a=s1(i,r);return(s,o)=>(Z(),Se(v(mI),gr(yr(s.portal)),{default:be(()=>[ke(v(tb),vn({...v(a),...s.$attrs},{onOpenAutoFocus:o[0]||(o[0]=f=>{r("openAutoFocus",f),!f.defaultPrevented&&f.target&&(v(uH)(f.target),f.preventDefault())})}),{default:be(()=>[bt(s.$slots,"default")]),_:3},16)]),_:3},16))}}),d2e=c2e,f2e=Fe({__name:"DatePickerField",setup(e){const t=pI();return(n,r)=>(Z(),Se(v(Obe),vn({ref:v(t).dateFieldRef,"model-value":v(t).modelValue.value,placeholder:v(t).placeholder.value},{id:v(t).id.value,name:v(t).name.value,disabled:v(t).disabled.value,minValue:v(t).minValue.value,maxValue:v(t).maxValue.value,readonly:v(t).readonly.value,hourCycle:v(t).hourCycle.value,granularity:v(t).granularity.value,hideTimeZone:v(t).hideTimeZone.value,locale:v(t).locale.value,isDateUnavailable:v(t).isDateUnavailable,required:v(t).required.value,dir:v(t).dir.value,step:v(t).step.value},{"onUpdate:modelValue":r[0]||(r[0]=i=>{i&&v(t).modelValue.value&&i.compare(v(t).modelValue.value)===0||v(t).onDateChange(i)}),"onUpdate:placeholder":r[1]||(r[1]=i=>{i.compare(v(t).placeholder.value)!==0&&v(t).onPlaceholderChange(i)})}),{default:be(({segments:i,modelValue:a})=>[bt(n.$slots,"default",{segments:i,modelValue:a})]),_:3},16,["model-value","placeholder"]))}}),h2e=f2e,p2e=Fe({__name:"DatePickerGrid",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(n,r)=>(Z(),Se(v(V_e),gr(yr(t)),{default:be(()=>[bt(n.$slots,"default")]),_:3},16))}}),m2e=p2e,g2e=Fe({__name:"DatePickerGridBody",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(n,r)=>(Z(),Se(v(j_e),gr(yr(t)),{default:be(()=>[bt(n.$slots,"default")]),_:3},16))}}),y2e=g2e,v2e=Fe({__name:"DatePickerGridHead",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(n,r)=>(Z(),Se(v(H_e),gr(yr(t)),{default:be(()=>[bt(n.$slots,"default")]),_:3},16))}}),_2e=v2e,b2e=Fe({__name:"DatePickerGridRow",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(n,r)=>(Z(),Se(v(G_e),gr(yr(t)),{default:be(()=>[bt(n.$slots,"default")]),_:3},16))}}),x2e=b2e,w2e=Fe({__name:"DatePickerHeadCell",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(n,r)=>(Z(),Se(v(Z_e),gr(yr(t)),{default:be(()=>[bt(n.$slots,"default")]),_:3},16))}}),S2e=w2e,C2e=Fe({__name:"DatePickerHeader",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(n,r)=>(Z(),Se(v(X_e),gr(yr(t)),{default:be(()=>[bt(n.$slots,"default")]),_:3},16))}}),T2e=C2e,k2e=Fe({__name:"DatePickerHeading",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(n,r)=>(Z(),Se(v(Q_e),gr(yr(t)),{default:be(({headingValue:i})=>[bt(n.$slots,"default",{headingValue:i},()=>[_n(ht(i),1)])]),_:3},16))}}),E2e=k2e,P2e=Fe({__name:"DatePickerInput",props:{part:{type:null,required:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(n,r)=>(Z(),Se(v(Bbe),gr(yr(t)),{default:be(()=>[bt(n.$slots,"default")]),_:3},16))}}),$2e=P2e,M2e=Fe({__name:"DatePickerNext",props:{nextPage:{type:Function,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(n,r)=>(Z(),Se(v(tbe),gr(yr(t)),{default:be(i=>[bt(n.$slots,"default",gr(yr(i)))]),_:3},16))}}),A2e=M2e,I2e=Fe({__name:"DatePickerPrev",props:{prevPage:{type:Function,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(n,r)=>(Z(),Se(v(rbe),gr(yr(t)),{default:be(i=>[bt(n.$slots,"default",gr(yr(i)))]),_:3},16))}}),D2e=I2e,L2e=Fe({__name:"PopoverTrigger",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,n=c1(),{forwardRef:r,currentElement:i}=wn();return n.triggerId||=bu(void 0,"reka-popover-trigger"),n.contentId||=bu(void 0,"reka-popover-content"),Hn(()=>{n.triggerElement.value=i.value}),(a,s)=>(Z(),Se(xr(v(n).hasCustomAnchor.value?v(Cn):v(Aw)),{"as-child":""},{default:be(()=>[ke(v(Cn),{id:v(n).triggerId,ref:v(r),type:a.as==="button"?"button":void 0,"aria-haspopup":"dialog","aria-expanded":v(n).open.value,"aria-controls":v(n).open.value?v(n).contentId:void 0,"data-state":v(n).open.value?"open":"closed",as:a.as,"as-child":t.asChild,onClick:v(n).onOpenToggle},{default:be(()=>[bt(a.$slots,"default")]),_:3},8,["id","type","aria-expanded","aria-controls","data-state","as","as-child","onClick"])]),_:3}))}}),nb=L2e,O2e=Fe({__name:"DatePickerTrigger",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,n=pI();return(r,i)=>(Z(),Se(v(nb),vn({"data-reka-date-field-segment":"trigger"},t,{disabled:v(n).disabled.value,onFocusin:i[0]||(i[0]=a=>{v(n).dateFieldRef.value?.setFocusedElement(a.target)})}),{default:be(()=>[bt(r.$slots,"default")]),_:3},16,["disabled"]))}}),R2e=O2e,B2e=Fe({__name:"HoverCardArrow",props:{width:{type:Number,required:!1,default:10},height:{type:Number,required:!1,default:5},rounded:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"svg"}},setup(e){const t=e;return wn(),(n,r)=>(Z(),Se(v(zH),gr(yr(t)),{default:be(()=>[bt(n.$slots,"default")]),_:3},16))}}),F2e=B2e;const[gI,z2e]=hi("HoverCardRoot");var N2e=Fe({__name:"HoverCardRoot",props:{defaultOpen:{type:Boolean,required:!1,default:!1},open:{type:Boolean,required:!1,default:void 0},openDelay:{type:Number,required:!1,default:700},closeDelay:{type:Number,required:!1,default:300},enableTouch:{type:Boolean,required:!1,default:!1}},emits:["update:open"],setup(e,{emit:t}){const n=e,r=t,{openDelay:i,closeDelay:a,enableTouch:s}=bi(n);wn();const o=Hi(n,"open",r,{defaultValue:n.defaultOpen,passive:n.open===void 0}),f=De(0),m=
16De(0),y=De(!1),b=De(!1),T=De(!1),x=De();function $(){clearTimeout(m.value),f.value=window.setTimeout(()=>o.value=!0,i.value)}function A(){clearTimeout(f.value),!y.value&&!b.value&&(m.value=window.setTimeout(()=>o.value=!1,a.value))}function N(){clearTimeout(f.value),o.value=!1}return z2e({open:o,onOpenChange(O){o.value=O},onOpen:$,onClose:A,onDismiss:N,hasSelectionRef:y,isPointerDownOnContentRef:b,isPointerInTransitRef:T,triggerElement:x,enableTouch:s}),(O,I)=>(Z(),Se(v(LT),null,{default:be(()=>[bt(O.$slots,"default",{open:v(o)})]),_:3}))}}),V2e=N2e;function b$(e){return t=>t.pointerType==="touch"?void 0:e()}function q2e(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;n.nextNode();)t.push(n.currentNode);return t}var j2e=Fe({__name:"HoverCardContentImpl",props:{memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside"],setup(e,{emit:t}){const n=e,r=t,i=Y_(n),{forwardRef:a,currentElement:s}=wn(),o=gI(),{isPointerInTransit:f,onPointerExit:m}=hH(o.triggerElement,s);Wme(o.isPointerInTransitRef,f,{direction:"rtl"}),m(()=>{o.onClose()});const y=De(!1);let b;ko(x=>{if(y.value){const $=document.body;b=$.style.userSelect||$.style.webkitUserSelect,$.style.userSelect="none",$.style.webkitUserSelect="none",x(()=>{$.style.userSelect=b,$.style.webkitUserSelect=b})}});function T(){y.value=!1,o.isPointerDownOnContentRef.value=!1,ur(()=>{document.getSelection()?.toString()!==""&&(o.hasSelectionRef.value=!0)})}return Hn(()=>{s.value&&(document.addEventListener("pointerup",T),q2e(s.value).forEach($=>$.setAttribute("tabindex","-1"))),mr(window,"scroll",x=>{x.target?.contains(o.triggerElement.value)&&o.onDismiss()},{capture:!0})}),oa(()=>{document.removeEventListener("pointerup",T),o.hasSelectionRef.value=!1,o.isPointerDownOnContentRef.value=!1}),(x,$)=>(Z(),Se(v(Pw),{"as-child":"","disable-outside-pointer-events":!1,onEscapeKeyDown:$[1]||($[1]=A=>r("escapeKeyDown",A)),onPointerDownOutside:$[2]||($[2]=A=>r("pointerDownOutside",A)),onFocusOutside:$[3]||($[3]=ti(A=>r("focusOutside",A),["prevent"])),onDismiss:v(o).onDismiss},{default:be(()=>[ke(v(NT),vn({...v(i),...x.$attrs},{ref:v(a),"data-state":v(o).open.value?"open":"closed",style:{userSelect:y.value?"text":void 0,WebkitUserSelect:y.value?"text":void 0,"--reka-hover-card-content-transform-origin":"var(--reka-popper-transform-origin)","--reka-hover-card-content-available-width":"var(--reka-popper-available-width)","--reka-hover-card-content-available-height":"var(--reka-popper-available-height)","--reka-hover-card-trigger-width":"var(--reka-popper-anchor-width)","--reka-hover-card-trigger-height":"var(--reka-popper-anchor-height)"},onPointerdown:$[0]||($[0]=A=>{A.currentTarget.contains(A.target)&&(y.value=!0),v(o).hasSelectionRef.value=!1,v(o).isPointerDownOnContentRef.value=!0})}),{default:be(()=>[bt(x.$slots,"default")]),_:3},16,["data-state","style"])]),_:3},8,["onDismiss"]))}}),U2e=j2e,H2e=Fe({__name:"HoverCardContent",props:{forceMount:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside"],setup(e,{emit:t}){const i=s1(e,t),{forwardRef:a}=wn(),s=gI();return(o,f)=>(Z(),Se(v(Og),{present:o.forceMount||v(s).open.value},{default:be(()=>[ke(U2e,vn(v(i),{ref:v(a),onPointerenter:f[0]||(f[0]=m=>v(b$)(v(s).onOpen)(m))}),{default:be(()=>[bt(o.$slots,"default")]),_:3},16)]),_:3},8,["present"]))}}),W2e=H2e,G2e=Fe({__name:"HoverCardPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const t=e;return(n,r)=>(Z(),Se(v($w),gr(yr(t)),{default:be(()=>[bt(n.$slots,"default")]),_:3},16))}}),Y2e=G2e,Z2e=Fe({__name:"HoverCardTrigger",props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"a"}},setup(e){const{forwardRef:t,currentElement:n}=wn(),r=gI();r.triggerElement=n;function i(){setTimeout(()=>{!r.isPointerInTransitRef.value&&!r.open.value&&r.onClose()},0)}function a(s){!r.enableTouch.value||s.pointerType!=="touch"||(r.open.value?r.onDismiss():r.onOpenChange(!0))}return(s,o)=>(Z(),Se(v(Aw),{"as-child":"",reference:s.reference},{default:be(()=>[ke(v(Cn),{ref:v(t),"as-child":s.asChild,as:s.as,"data-state":v(r).open.value?"open":"closed","data-grace-area-trigger":"",onPointerenter:o[
160]||(o[0]=f=>v(b$)(v(r).onOpen)(f)),onPointerleave:o[1]||(o[1]=f=>v(b$)(i)(f)),onPointerup:a,onFocus:o[2]||(o[2]=f=>v(r).onOpen()),onBlur:o[3]||(o[3]=f=>v(r).onClose())},{default:be(()=>[bt(s.$slots,"default")]),_:3},8,["as-child","as","data-state"])]),_:3},8,["reference"]))}}),K2e=Z2e,X2e=Fe({__name:"PaginationEllipsis",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return wn(),(n,r)=>(Z(),Se(v(Cn),vn(t,{"data-type":"ellipsis"}),{default:be(()=>[bt(n.$slots,"default",{},()=>[r[0]||(r[0]=_n("…"))])]),_:3},16))}}),J2e=X2e;const[rb,Q2e]=hi("PaginationRoot");var exe=Fe({__name:"PaginationRoot",props:{page:{type:Number,required:!1},defaultPage:{type:Number,required:!1,default:1},itemsPerPage:{type:Number,required:!0},total:{type:Number,required:!1,default:0},siblingCount:{type:Number,required:!1,default:2},disabled:{type:Boolean,required:!1},showEdges:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"nav"}},emits:["update:page"],setup(e,{emit:t}){const n=e,r=t,{siblingCount:i,disabled:a,showEdges:s}=bi(n);wn();const o=Hi(n,"page",r,{defaultValue:n.defaultPage,passive:n.page===void 0}),f=xe(()=>Math.max(1,Math.ceil(n.total/(n.itemsPerPage||1))));return Q2e({page:o,onPageChange(m){o.value=m},pageCount:f,siblingCount:i,disabled:a,showEdges:s}),(m,y)=>(Z(),Se(v(Cn),{as:m.as,"as-child":m.asChild},{default:be(()=>[bt(m.$slots,"default",{page:v(o),pageCount:f.value})]),_:3},8,["as","as-child"]))}}),txe=exe,nxe=Fe({__name:"PaginationFirst",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,n=rb();wn();const r=xe(()=>n.page.value===1||n.disabled.value);return(i,a)=>(Z(),Se(v(Cn),vn(t,{"aria-label":"First Page",type:i.as==="button"?"button":void 0,disabled:r.value,onClick:a[0]||(a[0]=s=>!r.value&&v(n).onPageChange(1))}),{default:be(()=>[bt(i.$slots,"default",{},()=>[a[1]||(a[1]=_n("First page"))])]),_:3},16,["type","disabled"]))}}),rxe=nxe,ixe=Fe({__name:"PaginationLast",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,n=rb();wn();const r=xe(()=>n.page.value===n.pageCount.value||n.disabled.value);return(i,a)=>(Z(),Se(v(Cn),vn(t,{"aria-label":"Last Page",type:i.as==="button"?"button":void 0,disabled:r.value,onClick:a[0]||(a[0]=s=>!r.value&&v(n).onPageChange(v(n).pageCount.value))}),{default:be(()=>[bt(i.$slots,"default",{},()=>[a[1]||(a[1]=_n("Last page"))])]),_:3},16,["type","disabled"]))}}),axe=ixe;function Fm(e,t){const n=t-e+1;return Array.from({length:n},(r,i)=>i+e)}function oxe(e){return e.map(t=>typeof t=="number"?{type:"page",value:t}:{type:"ellipsis"})}const nS="ellipsis";function sxe(e,t,n,r){const a=t,s=Math.max(e-n,1),o=Math.min(e+n,a);if(r){const m=Math.min(2*n+5,t)-2,y=s>3&&Math.abs(a-m-1+1)>2&&Math.abs(s-1)>2,b=o<a-2&&Math.abs(a-m)>2&&Math.abs(a-o)>2;if(!y&&b)return[...Fm(1,m),nS,a];if(y&&!b){const x=Fm(a-m+1,a);return[1,nS,...x]}if(y&&b){const x=Fm(s,o);return[1,nS,...x,nS,a]}return Fm(1,a)}else{const f=n*2+1;return t<f?Fm(1,a):e<=n+1?Fm(1,f):t-e<=n?Fm(t-f+1,a):Fm(s,o)}}var lxe=Fe({__name:"PaginationList",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;wn();const n=rb(),r=xe(()=>oxe(sxe(n.page.value,n.pageCount.value,n.siblingCount.value,n.showEdges.value)));return(i,a)=>(Z(),Se(v(Cn),gr(yr(t)),{default:be(()=>[bt(i.$slots,"default",{items:r.value})]),_:3},16))}}),uxe=lxe,cxe=Fe({__name:"PaginationListItem",props:{value:{type:Number,required:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e;wn();const n=rb(),r=xe(()=>n.page.value===t.value),i=xe(()=>n.disabled.value);return(a,s)=>(Z(),Se(v(Cn),vn(t,{"data-type":"page","aria-label":`Page ${a.value}`,"aria-current":r.value?"page":void 0,"data-selected":r.value?"true":void 0,disabled:i.value,type:a.as==="button"?"button":void 0,onClick:s[0]||(s[0]=o=>!i.value&&v(n).onPageChange(a.value))}),{default:be(()=>[bt(a.$slots,"default",{},()=>[_n(ht(a.value),1)])]),_:3},16,["aria-label","aria-current","data-selected","disabled","type"]))}}),dxe=cxe,fxe=Fe({__name:"PaginationNext",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e;wn();const n=rb(),r=xe(()=>n.page.value===n.pageCount.value||n.disabled.value);return(i,a)=>(Z(),Se(v(Cn),vn(t,{"aria-label":"Next Page",type:i.as==="button"?"button":void 0,disabled:r.value,onClick:a[0]||(a[0]=s=>!r.value&&v(n).onPageChange(v(n).page.value+1))}),{default:be(()=>[bt(i.$slots,"default",{},()=>[a[1]||(a[1]=_n("Next page"))])]),_:3},16,["type","disabled"]))}}),hxe=fxe,pxe=Fe({__name:"PaginationPrev",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e;wn();const n=rb(),r=xe(()=>n.page.value===1||n.disabled.value);return(i,a)=>(Z(),Se(v(Cn),vn(t,{"aria-label":"Previous Page",type:i.as==="button"?"button":void 0,disabled:r.value,onClick:a[0]||(a[0]=s=>!r.value&&v(n).onPageChange(v(n).page.value-1))}),{default:be(()=>[bt(i.$slots,"default",{},()=>[a[1]||(a[1]=_n("Prev page"))])]),_:3},16,["type","disabled"]))}}),mxe=pxe;const gxe="radio.select";function yxe(e,t,n){kT(gxe,n,{originalEvent:e,value:t})}var vxe=Fe({inheritAttrs:!1,__name:"Radio",props:{id:{type:String,required:!1},value:{type:null,required:!1},disabled:{type:Boolean,required:!1,default:!1},checked:{type:Boolean,required:!1,default:void 0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:["update:checked","select"],setup(e,{emit:t}){const n=e,r=t,i=Hi(n,"checked",r,{passive:n.checked===void 0}),{value:a}=bi(n),{forwardRef:s,currentElement:o}=wn(),f=Lg(o),m=Z_(),y=xe(()=>n.id&&o.value?document.querySelector(`[for="${n.id}"]`)?.innerText:void 0);function b(T){n.disabled||yxe(T,n.value,x=>{r("select",x),!x?.defaultPrevented&&(i.value=!0,f.value&&x.stopPropagation())})}return(T,x)=>(Z(),Ce(Ct,null,[ke(v(Cn),vn({id:T.id,ref:v(s),role:"radio",type:T.as==="button"?"button":void 0,as:T.as,"aria-checked":v(i)??!1,"aria-label":y.value,"as-child":T.asChild,disabled:T.disabled?"":void 0,"data-state":v(i)?"checked":"unchecked","data-disabled":T.disabled?"":void 0,value:v(a),required:T.required,name:T.name},{...v(m),...T.$attrs},{onClick:ti(b,["stop"])}),{default:be(()=>[bt(T.$slots,"default",{checked:v(i)})]),_:3},16,["id","type","as","aria-checked","aria-label","as-child","disabled","data-state","data-disabled","value","required","name"]),v(f)&&T.name?(Z(),Se(v(l1),vn({key:0,type:"radio",tabindex:"-1",value:v(a),checked:!!v(i),name:T.name,disabled:T.disabled,required:T.required},v(m)),null,16,["value","checked","name","disabled","required"])):Ne("v-if",!0)],64))}}),_xe=vxe;const[bxe,xxe]=hi("RadioGroupRoot");var wxe=Fe({__name:"RadioGroupRoot",props:{modelValue:{type:null,required:!1},defaultValue:{type:null,required:!1},disabled:{type:Boolean,required:!1,default:!1},orientation:{type:String,required:!1,default:void 0},dir:{type:String,required:!1},loop:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},name:{type:String,required:!1},required:{type:Boolean,required:!1,default:!1}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,{forwardRef:i,currentElement:a}=wn(),s=Hi(n,"modelValue",r,{defaultValue:n.defaultValue,passive:n.modelValue===void 0}),{disabled:o,loop:f,orientation:m,name:y,required:b,dir:T}=bi(n),x=wu(T),$=Lg(a);
16return xxe({modelValue:s,changeModelValue:A=>{s.value=A},disabled:o,loop:f,orientation:m,name:y?.value,required:b}),(A,N)=>(Z(),Se(v(VT),{"as-child":"",orientation:v(m),dir:v(x),loop:v(f)},{default:be(()=>[ke(v(Cn),{ref:v(i),role:"radiogroup","data-disabled":v(o)?"":void 0,"as-child":A.asChild,as:A.as,"aria-orientation":v(m),"aria-required":v(b),dir:v(x)},{default:be(()=>[bt(A.$slots,"default",{modelValue:v(s)}),v($)&&v(y)?(Z(),Se(v(l1),{key:0,required:v(b),disabled:v(o),value:v(s),name:v(y)},null,8,["required","disabled","value","name"])):Ne("v-if",!0)]),_:3},8,["data-disabled","as-child","as","aria-orientation","aria-required","dir"])]),_:3},8,["orientation","dir","loop"]))}}),iW=wxe;const[QRe,Sxe]=hi("RadioGroupItem");var Cxe=Fe({inheritAttrs:!1,__name:"RadioGroupItem",props:{id:{type:String,required:!1},value:{type:null,required:!1},disabled:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:["select"],setup(e,{emit:t}){const n=e,r=t,{forwardRef:i,currentElement:a}=wn(),s=bxe(),o=xe(()=>s.disabled.value||n.disabled),f=xe(()=>s.required.value||n.required),m=xe(()=>bp(s.modelValue?.value,n.value));Sxe({disabled:o,checked:m});const y=De(!1),b=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"];mr("keydown",$=>{b.includes($.key)&&(y.value=!0)}),mr("keyup",()=>{y.value=!1});function T(){setTimeout(()=>{y.value&&a.value?.click()},0)}const x=Z_();return($,A)=>(Z(),Se(v(Iw),{checked:m.value,disabled:o.value,"as-child":"",focusable:!o.value,active:m.value},{default:be(()=>[ke(_xe,vn({...v(x),...$.$attrs,...n},{ref:v(i),checked:m.value,required:f.value,disabled:o.value,"onUpdate:checked":A[0]||(A[0]=N=>v(s).changeModelValue($.value)),onSelect:A[1]||(A[1]=N=>r("select",N)),onKeydown:A[2]||(A[2]=Ep(ti(()=>{},["prevent"]),["enter"])),onFocus:T}),{default:be(()=>[bt($.$slots,"default",{checked:m.value,required:f.value,disabled:o.value})]),_:3},16,["checked","required","disabled"])]),_:3},8,["checked","disabled","focusable","active"]))}}),aW=Cxe;const Txe=[" ","Enter","ArrowUp","ArrowDown"],kxe=[" ","Enter"],fd=10;function Hx(e,t,n){return e===void 0?!1:Array.isArray(e)?e.some(r=>x$(r,t,n)):x$(e,t,n)}function x$(e,t,n){return e===void 0||t===void 0?!1:typeof e=="string"?e===t:typeof n=="function"?n(e,t):typeof n=="string"?e?.[n]===t?.[n]:bp(e,t)}function Exe(e){return e==null||e===""||Array.isArray(e)&&e.length===0}const Pxe=["value"],[Fg,oW]=hi("SelectRoot");var $xe=Fe({inheritAttrs:!1,__name:"SelectRoot",props:{open:{type:Boolean,required:!1,default:void 0},defaultOpen:{type:Boolean,required:!1},defaultValue:{type:null,required:!1},modelValue:{type:null,required:!1,default:void 0},nullableValue:{type:String,required:!1,default:""},by:{type:[String,Function],required:!1},dir:{type:String,required:!1},multiple:{type:Boolean,required:!1},autocomplete:{type:String,required:!1},disabled:{type:Boolean,required:!1},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:["update:modelValue","update:open"],setup(e,{emit:t}){const n=e,r=t,{required:i,disabled:a,multiple:s,dir:o}=bi(n),f=Hi(n,"modelValue",r,{defaultValue:n.defaultValue??(s.value?[]:void 0),passive:n.modelValue===void 0,deep:!0}),m=Hi(n,"open",r,{defaultValue:n.defaultOpen,passive:n.open===void 0}),y=De(),b=De(),T=De({x:0,y:0}),x=xe(()=>s.value&&Array.isArray(f.value)?f.value?.length===0:cu(f.value));zf({isProvider:!0});const $=wu(o),A=Lg(y),N=De(new Set),O=xe(()=>Array.from(N.value).map(B=>B.value).join(";"));function I(B){if(s.value){const q=Array.isArray(f.value)?[...f.value]:[],Q=q.findIndex(ee=>x$(ee,B,n.by));Q===-1?q.push(B):q.splice(Q,1),f.value=[...q]}else f.value=B}function U(B){return Array.from(N.value).find(q=>Hx(B,q.value,n.by))}return oW({triggerElement:y,onTriggerChange:B=>{y.value=B},valueElement:b,onValueElementChange:B=>{b.value=B},contentId:"",modelValue:f,onValueChange:I,by:n.by,open:m,multiple:s,required:i,onOpenChange:B=>{m.value=B},dir:$,triggerPointerDownPosRef:T,disabled:a,isEmptyModelValue:x,optionsSet:N,onOptionAdd:B=>{const q=U(B.value);q&&N.value.delete(q),N.value.add(B)},onOptionRemove:B=>{const q=U(B.value);q&&N.value.delete(q)}}),(B,q)=>(Z(),Se(v(LT),null,{default:be(()=>[bt(B.$slots,"default",{modelValue:v(f),open:v(m)}
16),v(A)&&B.name?(Z(),Se(Axe,{key:O.value,"aria-hidden":"true",tabindex:"-1",multiple:v(s),required:v(i),name:B.name,autocomplete:B.autocomplete,disabled:v(a),value:v(f)},{default:be(()=>[v(cu)(v(f))?(Z(),Ce("option",{key:0,value:B.nullableValue},null,8,Pxe)):Ne("v-if",!0),(Z(!0),Ce(Ct,null,ln(Array.from(N.value),Q=>(Z(),Ce("option",vn({key:Q.value??""},{ref_for:!0},Q),null,16))),128))]),_:1},8,["multiple","required","name","autocomplete","disabled","value"])):Ne("v-if",!0)]),_:3}))}}),yI=$xe,Mxe=Fe({__name:"BubbleSelect",props:{autocomplete:{type:String,required:!1},autofocus:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},form:{type:String,required:!1},multiple:{type:Boolean,required:!1},name:{type:String,required:!1},required:{type:Boolean,required:!1},size:{type:Number,required:!1},value:{type:null,required:!1}},setup(e){const t=e,n=De(),r=Fg();nn(()=>t.value,(a,s)=>{const o=window.HTMLSelectElement.prototype,m=Object.getOwnPropertyDescriptor(o,"value").set;if(a!==s&&m&&n.value){const y=new Event("change",{bubbles:!0});m.call(n.value,a),n.value.dispatchEvent(y)}});function i(a){r.onValueChange(a.target.value)}return(a,s)=>(Z(),Se(v(Mw),{"as-child":""},{default:be(()=>[Re("select",vn({ref_key:"selectElement",ref:n},t,{onInput:i}),[bt(a.$slots,"default")],16)]),_:3}))}}),Axe=Mxe,Ixe=Fe({__name:"SelectPopperPosition",props:{memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1,default:"start"},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1,default:fd},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const n=Y_(e);return(r,i)=>(Z(),Se(v(NT),vn(v(n),{style:{boxSizing:"border-box","--reka-select-content-transform-origin":"var(--reka-popper-transform-origin)","--reka-select-content-available-width":"var(--reka-popper-available-width)","--reka-select-content-available-height":"var(--reka-popper-available-height)","--reka-select-trigger-width":"var(--reka-popper-anchor-width)","--reka-select-trigger-height":"var(--reka-popper-anchor-height)"}}),{default:be(()=>[bt(r.$slots,"default")]),_:3},16))}}),Dxe=Ixe;const Lxe={onViewportChange:()=>{},itemTextRefCallback:()=>{},itemRefCallback:()=>{}},[qT,sW]=hi("SelectContent");var Oxe=Fe({__name:"SelectContentImpl",props:{position:{type:String,required:!1,default:"item-aligned"},bodyLock:{type:Boolean,required:!1,default:!0},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1,default:"start"},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1,default:!0}},emits:["closeAutoFocus","escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const n=e,r=t,i=Fg();fH(),FA(n.bodyLock);const{CollectionSlot:a,getItems:s}=zf(),o=De();JA(o);const{search:f,handleTypeaheadSearch:m}=gH(),y=De(),b=De(),T=De(),x=De(!1),$=De(!1),A=De(!1);function N(){b.value&&o.value&&mR([b.value,o.value])}nn(x,()=>{N()});const{onOpenChange:O,triggerPointerDownPosRef:I}=i;ko(Q=>{if(!o.value)return;let ee={x:0,y:0};const Y=H=>{ee={x:Math.abs(Math.round(H.pageX)-(I.value?.x??0)),y:Math.abs(Math.round(H.pageY)-(I.value?.y??0))}},z=H=>{H.pointerType!=="touch"&&(ee.x<=10&&ee.y<=10?H.preventDefault():o.value?.contains(H.target)||O(!1),document.removeEventListener("pointermove",Y),I.value=null)};I.value!==null&&(document.addEventListener("pointermove",Y),document.addEventListener("pointerup",z,{capture:!0,once:!0})),Q(()=>{document.removeEventListener("pointermove",Y),document.removeEventListener("pointerup",z,{capture:!0})})});function U(Q){const ee=Q.ctrlKey||Q.altKey||Q.metaKey;if(Q.key==="Tab"&&Q.preventDefault(),!ee&&Q.key.length===1&&m(Q.key,s()),["ArrowUp","ArrowDown","Home","End"].includes(Q.key)){let z=[...s().map(H=>H.ref)];if(["ArrowUp","End"].includes(Q.key)&&(z=z.slice().reverse()),["ArrowUp","ArrowDown"].includes(Q.key)){const H=Q.target,K=z.indexOf(H);z=z.slice(K+1)}setTimeout(()=>mR(z)),Q.preventDefault()}}const B=xe(()=>n.position==="popper"?n:{}),q=Y_(B.value);return sW({content:o,viewport:y,onViewportChange:Q=>{y.value=Q},itemRefCallback:(Q,ee,Y)=>{const z=!$.value&&!Y,H=Hx(i.modelValue.value,ee,i.by);if(i.multiple.value){if(A.value)return;(H||z)&&(b.value=Q,H&&(A.value=!0))}else(H||z)&&(b.value=Q);z&&($.value=!0)},selectedItem:b,selectedItemText:T,onItemLeave:()=>{o.value?.focus()},itemTextRefCallback:(Q,ee,Y)=>{const z=!$.value&&!Y;(Hx(i.modelValue.value,ee,i.by)||z)&&(T.value=Q)},focusSelectedItem:N,position:n.position,isPositioned:x,searchRef:f}),(Q,ee)=>
16(Z(),Se(v(a),null,{default:be(()=>[ke(v(eI),{"as-child":"",onMountAutoFocus:ee[6]||(ee[6]=ti(()=>{},["prevent"])),onUnmountAutoFocus:ee[7]||(ee[7]=Y=>{r("closeAutoFocus",Y),!Y.defaultPrevented&&(v(i).triggerElement.value?.focus({preventScroll:!0}),Y.preventDefault())})},{default:be(()=>[ke(v(Pw),{"as-child":"","disable-outside-pointer-events":Q.disableOutsidePointerEvents,onFocusOutside:ee[2]||(ee[2]=ti(()=>{},["prevent"])),onDismiss:ee[3]||(ee[3]=Y=>v(i).onOpenChange(!1)),onEscapeKeyDown:ee[4]||(ee[4]=Y=>r("escapeKeyDown",Y)),onPointerDownOutside:ee[5]||(ee[5]=Y=>r("pointerDownOutside",Y))},{default:be(()=>[(Z(),Se(xr(Q.position==="popper"?Dxe:Nxe),vn({...Q.$attrs,...v(q)},{id:v(i).contentId,ref:Y=>{if(!Y)return;const z=v(To)(Y);z?.hasAttribute("data-reka-popper-content-wrapper")?o.value=z.firstElementChild:o.value=z},role:"listbox","data-state":v(i).open.value?"open":"closed",dir:v(i).dir.value,style:{display:"flex",flexDirection:"column",outline:"none"},onContextmenu:ee[0]||(ee[0]=ti(()=>{},["prevent"])),onPlaced:ee[1]||(ee[1]=Y=>x.value=!0),onKeydown:U}),{default:be(()=>[bt(Q.$slots,"default")]),_:3},16,["id","data-state","dir","onKeydown"]))]),_:3},8,["disable-outside-pointer-events"])]),_:3})]),_:3}))}}),Rxe=Oxe;const[Bxe,Fxe]=hi("SelectItemAlignedPosition");var zxe=Fe({inheritAttrs:!1,__name:"SelectItemAlignedPosition",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["placed"],setup(e,{emit:t}){const n=e,r=t,{getItems:i}=zf(),a=Fg(),s=qT(),o=De(!1),f=De(!0),m=De(),{forwardRef:y,currentElement:b}=wn(),{viewport:T,selectedItem:x,selectedItemText:$,focusSelectedItem:A}=s;function N(){if(a.triggerElement.value&&a.valueElement.value&&m.value&&b.value&&T?.value&&x?.value&&$?.value){const U=a.triggerElement.value.getBoundingClientRect(),B=b.value.getBoundingClientRect(),q=a.valueElement.value.getBoundingClientRect(),Q=$.value.getBoundingClientRect();if(a.dir.value!=="rtl"){const ct=Q.left-B.left,zt=q.left-ct,ut=U.left-zt,At=U.width+ut,Dt=Math.max(At,B.width),Ot=window.innerWidth-fd,Ee=L4(zt,fd,Math.max(fd,Ot-Dt));m.value.style.minWidth=`${At}px`,m.value.style.left=`${Ee}px`}else{const ct=B.right-Q.right,zt=window.innerWidth-q.right-ct,ut=window.innerWidth-U.right-zt,At=U.width+ut,Dt=Math.max(At,B.width),Ot=window.innerWidth-fd,Ee=L4(zt,fd,Math.max(fd,Ot-Dt));m.value.style.minWidth=`${At}px`,m.value.style.right=`${Ee}px`}const ee=i().map(ct=>ct.ref),Y=window.innerHeight-fd*2,z=T.value.scrollHeight,H=window.getComputedStyle(b.value),K=Number.parseInt(H.borderTopWidth,10),ne=Number.parseInt(H.paddingTop,10),le=Number.parseInt(H.borderBottomWidth,10),pe=Number.parseInt(H.paddingBottom,10),ae=K+ne+z+pe+le,se=Math.min(x.value.offsetHeight*5,ae),ce=window.getComputedStyle(T.value),ye=Number.parseInt(ce.paddingTop,10),$e=Number.parseInt(ce.paddingBottom,10),Be=U.top+U.height/2-fd,je=Y-Be,at=x.value.offsetHeight/2,Pt=x.value.offsetTop+at,Qe=K+ne+Pt,nt=ae-Qe;if(Qe<=Be){const ct=x.value===ee.at(-1);m.value.style.bottom="0px";const zt=b.value.clientHeight-T.value.offsetTop-T.value.offsetHeight,ut=Math.max(je,at+(ct?$e:0)+zt+le),At=Qe+ut;m.value.style.height=`${At}px`}else{const ct=x.value===ee[0];m.value.style.top="0px";const ut=Math.max(Be,K+T.value.offsetTop+(ct?ye:0)+at)+nt;m.value.style.height=`${ut}px`,T.value.scrollTop=Qe-Be+T.value.offsetTop}m.value.style.margin=`${fd}px 0`,m.value.style.minHeight=`${se}px`,m.value.style.maxHeight=`${Y}px`,r("placed"),requestAnimationFrame(()=>o.value=!0)}}const O=De("");Hn(async()=>{await ur(),N(),b.value&&(O.value=window.getComputedStyle(b.value).zIndex)});function I(U){U&&f.value===!0&&(N(),A?.(),f.value=!1)}return AA(a.triggerElement,()=>{N()}),Fxe({contentWrapper:m,shouldExpandOnScrollRef:o,onScrollButtonChange:I}),(U,B)=>(Z(),Ce("div",{ref_key:"contentWrapperElement",ref:m,style:fo({display:"flex",flexDirection:"column",position:"fixed",zIndex:O.value})},[ke(v(Cn),vn({ref:v(y),style:{boxSizing:"border-box",maxHeight:"100%"}},{...U.$attrs,...n}),{default:be(()=>[bt(U.$slots,"default")]),_:3},16)],4))}}),Nxe=zxe,Vxe=Fe({inheritAttrs:!1,__name:"SelectProvider",props:{context:{type:Object,required:!0}},setup(e){return oW(e.context),sW(Lxe),(n,r)=>bt(n.$slots,"default")}}),qxe=Vxe;const jxe={key:1};var Uxe=Fe({inheritAttrs:!1,__name:"SelectContent",props:{forceMount:{type:Boolean,required:!1},position:{type:String,required:!1},bodyLock:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:["closeAutoFocus","escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const n=e,i=s1(n,t),a=Fg(),s=De();Hn(()=>{s.value=new DocumentFragment});const o=De(),f=xe(()=>n.forceMount||a.open.value),m=De(f.value);let y;function b(){y&&(clearTimeout(y),y=void 0)}return nn(f,(T,x,$)=>{b(),y=setTimeout(()=>{m.value=f.value,y=void 0}),$(b)}),oa(b),(T,x)=>f.value||m.value||o.value?.present?(Z(),Se(v(Og),{key:0,ref_key:"presenceRef",ref:o,present:f.value},{default:be(()=>[ke(Rxe,gr(yr({...v(i),...T.$attrs})),{default:be(()=>[bt(T.$slots,"default")]),_:3},16)]),_:3},8,["present"])):s.value?(Z(),Ce("div",jxe,[(Z(),Se(Wz,{to:s.value},[ke(qxe,{context:v(a)},{default:be(()=>[bt(T.$slots,"default")]),_:3},8,["context"])],8,["to"]))])):Ne("v-if",!0)}}),vI=Uxe;const[Hxe,Wxe]=hi("SelectItem");var Gxe=Fe({__name:"SelectItem",props:{value:{type:null,required:!0},disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["select"],setup(e,{emit:t}){const n=e,r=t,{disabled:i}=bi(n),a=Fg(),s=qT(),{forwardRef:o,currentElement:f}=wn(),{CollectionItem:m}=zf(),y=xe(()=>Hx(a.modelValue?.value,n.value,a.by)),b=De(!1),T=De(n.textValue??""),x=bu(void 0,"reka-select-item-text"),$="select.select";async function A(B){if(B.defaultPrevented)return;const q={originalEvent:B,value:n.value};kT($,N,q)}async function N(B){await ur(),r("select",B),!B.defaultPrevented&&(i.value||(a.onValueChange(n.value),a.multiple.value||a.onOpenChange(!1)))}async function O(B){await ur(),!B.defaultPrevented&&(i.value?s.onItemLeave?.():B.currentTarget?.focus({preventScroll:!0}))}async function I(B){await ur(),!B.defaultPrevented&&B.currentTarget===_s()&&s.onItemLeave?.()}async function U(B){await ur(),!(B.defaultPrevented||s.searchRef?.value!==""&&B.key===" ")&&(kxe.includes(B.key)&&A(B),B.key===" "&&B.preventDefault())}if(n.value==="")throw new Error("A <SelectItem /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return Hn(()=>{f.value&&s.itemRefCallback(f.value,n.value,n.disabled)}),Wxe({value:n.value,disabled:i,textId:x,isSelected:y,onItemTextChange:B=>{T.value=((T.value||B?.textContent)??"").trim()}}),(B,q)=>(Z(),Se(v(m),{value:{textValue:T.value}},{default:be(()=>[ke(v(Cn),{ref:v(o),role:"option","aria-labelledby":v(x),"data-highlighted":b.value?"":void 0,"aria-selected":y.value,"data-state":y.value?"checked":"unchecked","aria-disabled":v(i)||void 0,"data-disabled":v(i)?"":void 0,tabindex:v(i)?void 0:-1,as:B.as,"as-child":B.asChild,onFocus:q[0]||(q[0]=Q=>b.value=!0),onBlur:q[1]||(q[1]=Q=>b.value=!1),onPointerup:A,onPointerdown:q[2]||(q[2]=Q=>
16{Q.currentTarget.focus({preventScroll:!0})}),onTouchend:q[3]||(q[3]=ti(()=>{},["prevent","stop"])),onPointermove:O,onPointerleave:I,onKeydown:U},{default:be(()=>[bt(B.$slots,"default")]),_:3},8,["aria-labelledby","data-highlighted","aria-selected","data-state","aria-disabled","data-disabled","tabindex","as","as-child"])]),_:3},8,["value"]))}}),_I=Gxe,Yxe=Fe({inheritAttrs:!1,__name:"SelectItemText",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){const t=e,n=Fg(),r=qT(),i=Hxe(),{forwardRef:a,currentElement:s}=wn(),o=xe(()=>({value:i.value,disabled:i.disabled.value,textContent:s.value?.textContent??i.value?.toString()??""}));return Hn(()=>{s.value&&(i.onItemTextChange(s.value),r.itemTextRefCallback(s.value,i.value,i.disabled.value),n.onOptionAdd(o.value))}),oa(()=>{n.onOptionRemove(o.value)}),(f,m)=>(Z(),Se(v(Cn),vn({id:v(i).textId,ref:v(a)},{...t,...f.$attrs}),{default:be(()=>[bt(f.$slots,"default")]),_:3},16,["id"]))}}),bI=Yxe,Zxe=Fe({__name:"SelectPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const t=e;return(n,r)=>(Z(),Se(v($w),gr(yr(t)),{default:be(()=>[bt(n.$slots,"default")]),_:3},16))}}),xI=Zxe,Kxe=Fe({__name:"SelectTrigger",props:{disabled:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,n=Fg(),{forwardRef:r,currentElement:i}=wn(),a=xe(()=>n.disabled?.value||t.disabled);n.contentId||=bu(void 0,"reka-select-content"),Hn(()=>{n.onTriggerChange(i.value)});const{getItems:s}=zf(),{search:o,handleTypeaheadSearch:f,resetTypeahead:m}=gH();function y(){a.value||(n.onOpenChange(!0),m())}function b(O){y(),n.triggerPointerDownPosRef.value={x:Math.round(O.pageX),y:Math.round(O.pageY)}}function T(O){return O.button===0&&O.ctrlKey===!1}let x=!1;function $(O){if(O.pointerType==="touch")return O.preventDefault();const I=O.target;I.hasPointerCapture(O.pointerId)&&I.releasePointerCapture(O.pointerId),T(O)&&(b(O),x=!0)}function A(O){T(O)&&O.preventDefault()}function N(O){x||O.currentTarget?.focus(),x=!1}return(O,I)=>(Z(),Se(v(Aw),{"as-child":"",reference:O.reference},{default:be(()=>[ke(v(Cn),{ref:v(r),role:"combobox",type:O.as==="button"?"button":void 0,"aria-controls":v(n).open.value?v(n).contentId:void 0,"aria-expanded":v(n).open.value||!1,"aria-required":v(n).required?.value,"aria-autocomplete":"none",disabled:a.value,dir:v(n)?.dir.value,"data-state":v(n)?.open.value?"open":"closed","data-disabled":a.value?"":void 0,"data-placeholder":v(Exe)(v(n).modelValue?.value)?"":void 0,"as-child":O.asChild,as:O.as,onClick:N,onPointerdown:$,onMousedown:A,onPointerup:I[0]||(I[0]=ti(U=>{U.pointerType==="touch"&&b(U)},["prevent"])),onKeydown:I[1]||(I[1]=U=>{const B=v(o)!=="";!(U.ctrlKey||U.altKey||U.metaKey)&&U.key.length===1&&B&&U.key===" "||(v(f)(U.key,v(s)()),v(Txe).includes(U.key)&&(y(),U.preventDefault()))})},{default:be(()=>[bt(O.$slots,"default")]),_:3},8,["type","aria-controls","aria-expanded","aria-required","disabled","dir","data-state","data-disabled","data-placeholder","as-child","as"])]),_:3},8,["reference"]))}}),wI=Kxe,Xxe=Fe({__name:"SelectValue",props:{placeholder:{type:String,required:!1,default:""},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){const t=e,{forwardRef:n,currentElement:r}=wn(),i=Fg();Hn(()=>{i.valueElement=r});const a=xe(()=>{let o=[];const f=Array.from(i.optionsSet.value),m=y=>f.find(b=>Hx(y,b.value,i.by));return Array.isArray(i.modelValue.value)?o=i.modelValue.value.map(y=>m(y)?.textContent??""):o=[m(i.modelValue.value)?.textContent??""],o.filter(Boolean)}),s=xe(()=>a.value.length?a.value.join(", "):t.placeholder);return(o,f)=>(Z(),Se(v(Cn),{ref:v(n),as:o.as,"as-child":o.asChild,style:{pointerEvents:"none"},"data-placeholder":a.value.length?void 0:t.placeholder},{default:be(()=>[bt(o.$slots,"default",{selectedLabel:a.value,modelValue:v(i).modelValue.value},()=>[_n(ht(s.value),1)])]),_:3}
16,8,["as","as-child","data-placeholder"]))}}),lW=Xxe,Jxe=Fe({__name:"SelectViewport",props:{nonce:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,{nonce:n}=bi(t),r=Qve(n),i=qT(),a=i.position==="item-aligned"?Bxe():void 0,{forwardRef:s,currentElement:o}=wn();Hn(()=>{i?.onViewportChange(o.value)});const f=De(0);function m(y){const b=y.currentTarget,{shouldExpandOnScrollRef:T,contentWrapper:x}=a??{};if(T?.value&&x?.value){const $=Math.abs(f.value-b.scrollTop);if($>0){const A=window.innerHeight-fd*2,N=Number.parseFloat(x.value.style.minHeight),O=Number.parseFloat(x.value.style.height),I=Math.max(N,O);if(I<A){const U=I+$,B=Math.min(A,U),q=U-B;x.value.style.height=`${B}px`,x.value.style.bottom==="0px"&&(b.scrollTop=q>0?q:0,x.value.style.justifyContent="flex-end")}}}f.value=b.scrollTop}return(y,b)=>(Z(),Ce(Ct,null,[ke(v(Cn),vn({ref:v(s),"data-reka-select-viewport":"",role:"presentation"},{...y.$attrs,...t},{style:{position:"relative",flex:1,overflow:"hidden auto"},onScroll:m}),{default:be(()=>[bt(y.$slots,"default")]),_:3},16),ke(v(Cn),{as:"style",nonce:v(r)},{default:be(()=>b[0]||(b[0]=[_n(" /* Hide scrollbars cross-browser and enable momentum scroll for touch devices */ [data-reka-select-viewport] { scrollbar-width:none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } [data-reka-select-viewport]::-webkit-scrollbar { display: none; } ")])),_:1,__:[0]},8,["nonce"])],64))}}),SI=Jxe,Qxe=Fe({__name:"BaseSeparator",props:{orientation:{type:String,required:!1,default:"horizontal"},decorative:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,n=["horizontal","vertical"];function r(o){return n.includes(o)}const i=xe(()=>r(t.orientation)?t.orientation:"horizontal"),a=xe(()=>i.value==="vertical"?t.orientation:void 0),s=xe(()=>t.decorative?{role:"none"}:{"aria-orientation":a.value,role:"separator"});return(o,f)=>(Z(),Se(v(Cn),vn({as:o.as,"as-child":o.asChild,"data-orientation":i.value},s.value),{default:be(()=>[bt(o.$slots,"default")]),_:3},16,["as","as-child","data-orientation"]))}}),ewe=Qxe;const[twe,nwe]=hi("SwitchRoot");var rwe=Fe({inheritAttrs:!1,__name:"SwitchRoot",props:{defaultValue:{type:null,required:!1},modelValue:{type:null,required:!1,default:void 0},disabled:{type:Boolean,required:!1},id:{type:String,required:!1},value:{type:String,required:!1,default:"on"},trueValue:{type:null,required:!1,default:()=>!0},falseValue:{type:null,required:!1,default:()=>!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,{disabled:i}=bi(n),a=Hi(n,"modelValue",r,{defaultValue:n.defaultValue??n.falseValue,passive:n.modelValue===void 0}),s=xe(()=>a.value===n.trueValue);function o(){i.value||(a.value=s.value?n.falseValue:n.trueValue)}const{forwardRef:f,currentElement:m}=wn(),y=Lg(m),b=Z_(),T=xe(()=>n.id&&m.value?document.querySelector(`[for="${n.id}"]`)?.innerText:void 0);return nwe({checked:s,toggleCheck:o,disabled:i}),(x,$)=>(Z(),Ce(Ct,null,[ke(v(Cn),vn({id:x.id,ref:v(f),role:"switch",type:x.as==="button"?"button":void 0,value:x.value,"aria-label":x.$attrs["aria-label"]||T.value,"aria-checked":s.value,"aria-required":x.required,"data-state":s.value?"checked":"unchecked","data-disabled":v(i)?"":void 0,"as-child":x.asChild,as:x.as,disabled:v(i)},{...v(b),...x.$attrs},{onClick:o,onKeydown:Ep(ti(o,["prevent"]),["enter"])}),{default:be(()=>[bt(x.$slots,"default",{modelValue:v(a),checked:s.value})]),_:3},16,["id","type","value","aria-label","aria-checked","aria-required","data-state","data-disabled","as-child","as","disabled","onKeydown"]),v(y)&&x.name?(Z(),Se(v(l1),vn({key:0,type:"checkbox",name:x.name,disabled:v(i),required:x.required,value:x.value,checked:s.value},v(b)),null,16,["name","disabled","required","value","checked"])):Ne("v-if",!0)],64))}}),iwe=rwe,awe=Fe({__name:"SwitchThumb",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){const t=twe();return wn(),(n,r)=>(Z(),Se(v(Cn),{"data-state":v(t).checked.value?"checked":"unchecked","data-disabled":v(t).disabled.value?"":void 0,"as-child":n.asChild,as:n.as},{default:be(()=>[bt(n.$slots,"default")]),_:3},8,["data-state","data-disabled","as-child","as"]))}}),owe=awe;
16const[jT,swe]=hi("TabsRoot");var lwe=Fe({__name:"TabsRoot",props:{defaultValue:{type:null,required:!1},orientation:{type:String,required:!1,default:"horizontal"},dir:{type:String,required:!1},activationMode:{type:String,required:!1,default:"automatic"},modelValue:{type:null,required:!1},unmountOnHide:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,{orientation:i,unmountOnHide:a,dir:s}=bi(n),o=wu(s);wn();const f=Hi(n,"modelValue",r,{defaultValue:n.defaultValue,passive:n.modelValue===void 0}),m=De(),y=Bn(new Set);return swe({modelValue:f,changeModelValue:b=>{f.value=b},orientation:i,dir:o,unmountOnHide:a,activationMode:n.activationMode,baseId:bu(void 0,"reka-tabs"),tabsList:m,contentIds:y,registerContent:b=>{y.value=new Set([...y.value,b])},unregisterContent:b=>{const T=new Set(y.value);T.delete(b),y.value=T}}),(b,T)=>(Z(),Se(v(Cn),{dir:v(o),"data-orientation":v(i),"as-child":b.asChild,as:b.as},{default:be(()=>[bt(b.$slots,"default",{modelValue:v(f)})]),_:3},8,["dir","data-orientation","as-child","as"]))}}),CI=lwe;function uW(e,t){return`${e}-trigger-${t}`}function cW(e,t){return`${e}-content-${t}`}var uwe=Fe({__name:"TabsContent",props:{value:{type:[String,Number],required:!0},forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,{forwardRef:n}=wn(),r=jT(),i=xe(()=>uW(r.baseId,t.value)),a=xe(()=>cW(r.baseId,t.value)),s=xe(()=>t.value===r.modelValue.value),o=De(s.value);return Hn(()=>{r.registerContent(t.value),requestAnimationFrame(()=>{o.value=!1})}),xu(()=>{r.unregisterContent(t.value)}),(f,m)=>(Z(),Se(v(Og),{present:f.forceMount||s.value,"force-mount":""},{default:be(({present:y})=>[ke(v(Cn),{id:a.value,ref:v(n),"as-child":f.asChild,as:f.as,role:"tabpanel","data-state":s.value?"active":"inactive","data-orientation":v(r).orientation.value,"aria-labelledby":i.value,hidden:!y,tabindex:"0",style:fo({animationDuration:o.value?"0s":void 0})},{default:be(()=>[!v(r).unmountOnHide.value||y?bt(f.$slots,"default",{key:0}):Ne("v-if",!0)]),_:2},1032,["id","as-child","as","data-state","data-orientation","aria-labelledby","hidden","style"])]),_:3},8,["present"]))}}),dW=uwe,cwe=Fe({__name:"TabsIndicator",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e,{expose:t}){const n=e,r=jT();t({updateIndicatorStyle:o}),wn();const i=wT(),a=De({size:null,thickness:null,position:null}),s=De([]);nn(()=>[r.modelValue.value,r?.dir.value],()=>{o()},{immediate:!0,flush:"post"}),OM(()=>{s.value=Array.from(r.tabsList.value?.querySelectorAll('[role="tab"]')||[])}),AA(xe(()=>[r.tabsList.value,...s.value]),o);function o(){const f=r.tabsList.value?.querySelector('[role="tab"][data-state="active"]');f&&(r.orientation.value==="horizontal"?a.value={size:f.offsetWidth,thickness:f.offsetHeight,position:f.offsetLeft}:a.value={size:f.offsetHeight,thickness:f.offsetWidth,position:f.offsetTop})}return(f,m)=>v(i)&&typeof a.value.size=="number"?(Z(),Se(v(Cn),vn({key:0},n,{style:{"--reka-tabs-indicator-size":`${a.value.size}px`,"--reka-tabs-indicator-thickness":`${a.value.thickness}px`,"--reka-tabs-indicator-position":`${a.value.position}px`}}),{default:be(()=>[bt(f.$slots,"default")]),_:3},16,["style"])):Ne("v-if",!0)}}),fW=cwe,dwe=Fe({__name:"TabsList",props:{loop:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,{loop:n}=bi(t),{forwardRef:r,currentElement:i}=wn(),a=jT();return a.tabsList=i,(s,o)=>(Z(),Se(v(VT),{"as-child":"",orientation:v(a).orientation.value,dir:v(a).dir.value,loop:v(n)},{default:be(()=>[ke(v(Cn),{ref:v(r),role:"tablist","as-child":s.asChild,as:s.as,"aria-orientation":v(a).orientation.value},{default:be(()=>[bt(s.$slots,"default")]),_:3},8,["as-child","as","aria-orientation"])]),_:3},8,["orientation","dir","loop"]))}}),TI=dwe,fwe=Fe({__name:"TabsTrigger",props:{value:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,{forwardRef:n}=wn(),r=jT(),i=xe(()=>uW(r.baseId,t.value)),a=xe(()=>r.contentIds.value.has(t.value)?cW(r.baseId,t.value):void 0),s=xe(()=>t.value===r.modelValue.value);return(o,f)=>(Z(),Se(v(Iw),{"as-child":"",focusable:!o.disabled,active:s.value},{default:be(()=>[ke(v(Cn),{id:i.value,ref:v(n),role:"tab",type:o.as==="button"?"button":void 0,as:o.as,"as-child":o.asChild,"aria-selected":s.value?"true":"false","aria-controls":a.value,"data-state":s.value?"active":"inactive",disabled:o.disabled,"data-disabled":o.disabled?"":void 0,"data-orientation":v(r).orientation.value,onMousedown:f[0]||(f[0]=ti(m=>{!o.disabled&&m.ctrlKey===!1?v(r).changeModelValue(o.value):m.preventDefault()},["left"])),onKeydown:f[1]||(f[1]=Ep(m=>v(r).changeModelValue(o.value),["enter","space"])),onFocus:f[2]||(f[2]=()=>{const m=v(r).activationMode!=="manual";!s.value&&!o.disabled&&m&&v(r).changeModelValue(o.value)})},{default:be(()=>[bt(o.$slots,"default")]),_:3},8,["id","type","as","as-child","aria-selected","aria-controls","data-state","disabled","data-disabled","data-orientation"])]),_:3},8,["focusable","active"]))}}),kI=fwe;const[hwe,pwe]=hi("TimeFieldRoot");
16function rS(e,t=Fx(bg())){return e&&"day"in e?e:Zy(t,e)}var mwe=Fe({inheritAttrs:!1,__name:"TimeFieldRoot",props:{defaultValue:{type:Object,required:!1,default:void 0},defaultPlaceholder:{type:Object,required:!1},placeholder:{type:Object,required:!1,default:void 0},modelValue:{type:[Object,null],required:!1},hourCycle:{type:null,required:!1},step:{type:Object,required:!1},stepSnapping:{type:Boolean,required:!1,default:!1},granularity:{type:String,required:!1},hideTimeZone:{type:Boolean,required:!1},maxValue:{type:Object,required:!1},minValue:{type:Object,required:!1},locale:{type:String,required:!1},disabled:{type:Boolean,required:!1,default:!1},readonly:{type:Boolean,required:!1,default:!1},id:{type:String,required:!1},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:["update:modelValue","update:placeholder"],setup(e,{expose:t,emit:n}){const r=e,i=n,{disabled:a,readonly:s,granularity:o,defaultValue:f,minValue:m,maxValue:y,stepSnapping:b,dir:T,locale:x}=bi(r),$=$T(x),A=wu(T),N=XA($.value,{hourCycle:qx(r.hourCycle)}),{primitiveElement:O,currentElement:I}=Xy(),U=De(new Set),B=xe(()=>lH(r)),q=xe(()=>m.value?rS(m.value):void 0),Q=xe(()=>y.value?rS(y.value):void 0);Hn(()=>{AR(I.value).forEach(Ve=>U.value.add(Ve))});const ee=Hi(r,"modelValue",i,{defaultValue:f.value,passive:r.modelValue===void 0}),Y=xe({get(){return cu(ee.value)?ee.value:rS(ee.value)},set(Ve){return Ve?ee.value=ee.value&&"day"in ee.value?Ve:new Nx(Ve.hour,Ve.minute,Ve.second,ee.value?.millisecond):ee.value=Ve,Ve}}),z=mye({defaultPlaceholder:r.placeholder,defaultValue:ee.value}),H=Hi(r,"placeholder",i,{defaultValue:r.defaultPlaceholder??z.copy(),passive:r.placeholder===void 0}),K=xe({get(){return rS(H.value)},set(Ve){return Ve&&(H.value="day"in H.value?Ve.copy():new Nx(Ve.hour,Ve.minute,Ve.second,H.value?.millisecond)),Ve}}),ne=xe(()=>o.value?o.value:"minute"),le=xe(()=>ee.value?!!(q.value&&tg(Y.value,q.value)||Q.value&&tg(Q.value,Y.value)):!1),pe=u_e(ne.value),ae=De(ee.value?{..._$({value:Y.value,formatter:N})}:{...pe}),se=xe(()=>qH({granularity:ne.value,dateRef:K.value,formatter:N,hideTimeZone:r.hideTimeZone,hourCycle:r.hourCycle,segmentValues:ae.value,locale:$,isTimeValue:!0})),ce=xe(()=>{const Ve=se.value.arr;return r.hourCycle===12?Ve.map(ct=>{if(ct.part==="hour"&&"hour"in ae.value){const zt=ae.value.hour;if(zt!==null){const ut=zt===0?12:zt>12?zt-12:zt;return{...ct,value:ut.toString()}}}return ct}):Ve}),ye=xe(()=>ce.value.filter(({part:Ve})=>Ve!=="literal"));nn($,Ve=>{N.getLocale()!==Ve&&(N.setLocale(Ve),ur(()=>{U.value.clear(),AR(I.value).forEach(ct=>U.value.add(ct))}))}),nn(Y,Ve=>{!cu(Ve)&&(!r_(K.value,Ve)||K.value.compare(Ve)!==0)&&(H.value=Ve.copy())}),nn([Y,$],([Ve])=>{cu(Ve)?Object.values(ae.value).every(ct=>ct!==null)&&cu(Ve)&&(ae.value={...pe}):ae.value={..._$({value:Ve,formatter:N})}});const $e=De(null),Be=xe(()=>Array.from(U.value).findIndex(Ve=>Ve.getAttribute("data-reka-time-field-segment")===$e.value?.getAttribute("data-reka-time-field-segment"))),je=xe(()=>{const Ve=A.value==="rtl"?-1:1;return(Ve<0?Be.value<0:Be.value>U.value.size-1)?null:Array.from(U.value)[Be.value+Ve]}),at=xe(()=>{const Ve=A.value==="rtl"?-1:1;return(Ve>0?Be.value<0:Be.value>U.value.size-1)?null:Array.from(U.value)[Be.value-Ve]}),Pt=K_();function Qe(Ve){Ve.isComposing||Uh(Ve.key)&&(Ve.key===Pt.ARROW_LEFT&&at.value?.focus(),Ve.key===Pt.ARROW_RIGHT&&je.value?.focus())}function nt(Ve){$e.value=Ve}return pwe({locale:$,modelValue:Y,placeholder:K,disabled:a,formatter:N,hourCycle:r.hourCycle,step:B,stepSnapping:b,readonly:s,segmentValues:ae,isInvalid:le,segmentContents:ye,elements:U,setFocusedElement:nt,focusNext(){Array.from(U.value)[Be.value+1]?.focus()}}),t({setFocusedElement:nt}),(Ve,ct)=>(Z(),Se(v(Cn),vn(Ve.$attrs,{ref_key:"primitiveElement",ref:O,role:"group","aria-disabled":v(a)?!0:void 0,"data-disabled":v(a)?"":void 0,"data-readonly":v(s)?"":void 0,"data-invalid":le.value?"":void 0,dir:v(A),onKeydown:Ep(Qe,["left","right"])}),{default:be(()=>[bt(Ve.$slots,"default",{modelValue:v(ee),segments:ce.value,isInvalid:le.value}),ke(v(Mw),{id:Ve.id,as:"input",feature:"focusable",tabindex:"-1",value:v(ee)?v(ee).toString():"",name:Ve.name,disabled:v(a),required:Ve.required,onFocus:ct[0]||(ct[0]=zt=>
16Array.from(U.value)?.[0]?.focus())},null,8,["id","value","name","disabled","required"])]),_:3},16,["aria-disabled","data-disabled","data-readonly","data-invalid","dir"]))}}),gwe=mwe,ywe=Fe({__name:"TimeFieldInput",props:{part:{type:null,required:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,n=hwe(),r=De(!0),i=De(!1),{handleSegmentClick:a,handleSegmentKeydown:s,handleSegmentBeforeInput:o,handleSegmentCompositionStart:f,handleSegmentCompositionEnd:m,handleSegmentFocusOut:y,attributes:b}=jH({hasLeftFocus:r,lastKeyZero:i,placeholder:n.placeholder,hourCycle:n.hourCycle,step:n.step,stepSnapping:n.stepSnapping,segmentValues:n.segmentValues,formatter:n.formatter,part:t.part,disabled:n.disabled,readonly:n.readonly,focusNext:n.focusNext,modelValue:n.modelValue}),T=xe(()=>n.disabled.value),x=xe(()=>n.readonly.value),$=xe(()=>n.isInvalid.value);return(A,N)=>(Z(),Se(v(Cn),vn({as:A.as,"as-child":A.asChild},v(b),{contenteditable:T.value||x.value?!1:A.part!=="literal","data-reka-time-field-segment":A.part,"aria-disabled":T.value?!0:void 0,"aria-readonly":x.value?!0:void 0,"data-disabled":T.value?"":void 0,"data-invalid":$.value?"":void 0,"aria-invalid":$.value?!0:void 0},VM(A.part!=="literal"?{mousedown:v(a),keydown:v(s),beforeinput:v(o),compositionstart:v(f),compositionend:v(m),focusout:()=>{r.value=!0,v(y)()},focusin:O=>{v(n).setFocusedElement(O.target)}}:{})),{default:be(()=>[bt(A.$slots,"default")]),_:3},16,["as","as-child","contenteditable","data-reka-time-field-segment","aria-disabled","aria-readonly","data-disabled","data-invalid","aria-invalid"]))}}),vwe=ywe;const[hW,_we]=hi("ToggleGroupRoot");var bwe=Fe({__name:"ToggleGroupRoot",props:{rovingFocus:{type:Boolean,required:!1,default:!0},disabled:{type:Boolean,required:!1,default:!1},orientation:{type:String,required:!1},dir:{type:String,required:!1},loop:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},name:{type:String,required:!1},required:{type:Boolean,required:!1},type:{type:String,required:!1},modelValue:{type:null,required:!1},defaultValue:{type:null,required:!1}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,{loop:i,rovingFocus:a,disabled:s,dir:o}=bi(n),f=wu(o),{forwardRef:m,currentElement:y}=wn(),{modelValue:b,changeModelValue:T,isSingle:x}=vH(n,r),$=Lg(y);return _we({isSingle:x,modelValue:b,changeModelValue:T,dir:f,orientation:n.orientation,loop:i,rovingFocus:a,disabled:s}),(A,N)=>(Z(),Se(xr(v(a)?v(VT):v(Cn)),{"as-child":"",orientation:v(a)?A.orientation:void 0,dir:v(f),loop:v(a)?v(i):void 0},{default:be(()=>[ke(v(Cn),{ref:v(m),role:"group","as-child":A.asChild,as:A.as},{default:be(()=>[bt(A.$slots,"default",{modelValue:v(b)}),v($)&&A.name?(Z(),Se(l1,{key:0,name:A.name,required:A.required,value:v(b)},null,8,["name","required","value"])):Ne("v-if",!0)]),_:3},8,["as-child","as"])]),_:3},8,["orientation","dir","loop"]))}}),xwe=bwe,wwe=Fe({inheritAttrs:!1,__name:"Toggle",props:{defaultValue:{type:Boolean,required:!1},modelValue:{type:[Boolean,null],required:!1,default:void 0},disabled:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,{forwardRef:i,currentElement:a}=wn(),s=Z_(),o=hW(null),f=Hi(n,"modelValue",r,{defaultValue:n.defaultValue,passive:n.modelValue===void 0});function m(){f.value=!f.value}const y=xe(()=>f.value?"on":"off"),b=Lg(a);return(T,x)=>(Z(),Ce(Ct,null,[ke(v(Cn),vn({ref:v(i),type:T.as==="button"?"button":void 0,"as-child":n.asChild,as:T.as,"aria-pressed":v(f),"data-state":y.value,"data-disabled":T.disabled?"":void 0,disabled:T.disabled},{...v(s),...T.$attrs},{onClick:m}),{default:be(()=>[bt(T.$slots,"default",{modelValue:v(f),disabled:T.disabled,pressed:v(f),state:y.value})]),_:3},16,["type","as-child","as","aria-pressed","data-state","data-disabled","disabled"]),v(b)&&T.name&&!v(o)?(Z(),Se(l1,vn({key:0,type:"checkbox",name:T.name,value:v(f),required:T.required},v(s)),null,16,["name","value","required"])):Ne("v-if",!0)],64))}}),Swe=wwe,Cwe=Fe({__name:"ToggleGroupItem",props:{value:{type:null,required:!0},disabled:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,n=hW(),r=xe(()=>n.disabled?.value||t.disabled),i=xe(()=>O4(n.modelValue.value,t.value)),{forwardRef:a}=wn(),s=Z_();return(o,f)=>(Z(),Se(xr(v(n).rovingFocus.value?v(Iw):v(Cn)),vn({"as-child":""},v(n).rovingFocus.value?{focusable:!r.value,active:i.value}:{}),{default:be(()=>[ke(v(Swe),vn({...v(s),...t},{ref:v(a),disabled:r.value,"model-value":i.value,"onUpdate:modelValue":f[0]||(f[0]=m=>v(n).changeModelValue(o.value))}),{default:be(m=>[bt(o.$slots,"default",gr(yr(m)))]),_:3},16,["disabled","model-value"])]),_:3},16))}}),Twe=Cwe,kwe=Fe({__name:"ToolbarButton",props:{disabled:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,{forwardRef:n}=wn();return(r,i)=>(Z(),Se(v(Iw),{"as-child":"",focusable:!r.disabled},{default:be(()=>[ke(v(Cn),vn({ref:v(n),type:r.as==="button"?"button":void 0},t),{default:be(()=>[bt(r.$slots,"default")]),_:3},16,["type"])]),_:3},8,["focusable"]))}}),pW=kwe;const[mW,Ewe]=hi("ToolbarRoot");var Pwe=Fe({__name:"ToolbarRoot",props:{orientation:{type:String,required:!1,default:"horizontal"},dir:{type:String,required:!1},loop:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,{orientation:n,dir:r}=bi(t),i=wu(r),{forwardRef:a}=wn();return Ewe({orientation:n,dir:i}),(s,o)=>(Z(),Se(v(VT),{"as-child":"",orientation:v(n),dir:v(i),loop:s.loop},{default:be(()=>[ke(v(Cn),{ref:v(a),role:"toolbar","aria-orientation":v(n),"as-child":s.asChild,as:s.as},{default:be(()=>[bt(s.$slots,"default")]),_:3},8,["aria-orientation","as-child","as"])]),_:3},8,["orientation","dir","loop"]))}}),$we=Pwe,Mwe=Fe({__name:"ToolbarSeparator",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,n=mW();return wn(),(r,i)=>(Z(),Se(ewe,{orientation:v(n).orientation.value,"as-child":t.asChild,as:r.as},{default:be(()=>[bt(r.$slots,"default")]),_:3},8,["orientation","as-child","as"]))}}),Awe=Mwe,Iwe=Fe({__name:"ToolbarToggleGroup",props:{rovingFocus:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},orientation:{type:String,required:!1},dir:{type:String,required:!1},loop:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},name:{type:String,required:!1},required:{type:Boolean,required:!1},type:{type:String,required:!1},modelValue:{type:null,required:!1},defaultValue:{type:null,required:!1}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,i=mW(),a=Ew(r);return wn(),(s,o)=>(Z(),Se(v(xwe),vn({...n,...v(a)},{"data-orientation":v(i).orientation.value,dir:v(i).dir.value,"roving-focus":!1}),{default:be(()=>[bt(s.$slots,"default")]),_:3},16,["data-orientation","dir"]))}}),Dwe=Iwe,Lwe=Fe({__name:"ToolbarToggleItem",props:{value:{type:null,required:!0},disabled:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,{forwardRef:n}=wn();return(r,i)=>(Z(),Se(pW,{"as-child":"",disabled:t.disabled},{default:be(()=>[ke(v(Twe),vn(t,{ref:v(n)}),{default:be(()=>[bt(r.$slots,"default")]),_:3},16)]),_:3},8,["disabled"]))}}),Owe=Lwe;const[UT,Rwe]=hi("TooltipProvider");var Bwe=Fe({inheritAttrs:!1,__name:"TooltipProvider",props:{delayDuration:{type:Number,required:!1,default:700},skipDelayDuration:{type:Number,required:!1,default:300},disableHoverableContent:{type:Boolean,required:!1,default:!1},disableClosingTrigger:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},ignoreNonKeyboardFocus:{type:Boolean,required:!1,default:!1},content:{type:Object,required:!1}},setup(e){const t=e,{delayDuration:n,skipDelayDuration:r,disableHoverableContent:i,disableClosingTrigger:a,ignoreNonKeyboardFocus:s,disabled:o,content:f}=bi(t);wn();const m=De(!0),y=De(!1),{start:b,stop:T}=xT(()=>{m.value=!0},r,{immediate:!1});return Rwe({isOpenDelayed:m,delayDuration:n,onOpen(){T(),m.value=!1},onClose(){b()},isPointerInTransitRef:y,disableHoverableContent:i,disableClosingTrigger:a,disabled:o,ignoreNonKeyboardFocus:s,content:f}),(x,$)=>bt(x.$slots,"default")}}),Fwe=Bwe;const gW="tooltip.open",[HT,zwe]=hi("TooltipRoot");var Nwe=Fe({__name:"TooltipRoot",props:{defaultOpen:{type:Boolean,required:!1,default:!1},open:{type:Boolean,required:!1,default:void 0},delayDuration:{type:Number,required:!1,default:void 0},disableHoverableContent:{type:Boolean,required:!1,default:void 0},disableClosingTrigger:{type:Boolean,required:!1,default:void 0},disabled:{type:Boolean,required:!1,default:void 0},ignoreNonKeyboardFocus:{type:Boolean,required:!1,default:void 0}},emits:["update:open"],setup(e,{emit:t}){const n=e,r=t;wn();const i=UT(),a=xe(()=>n.disableHoverableContent??i.disableHoverableContent.value),s=xe(()=>n.disableClosingTrigger??i.disableClosingTrigger.value),o=xe(()=>n.disabled??i.disabled.value),f=xe(()=>n.delayDuration??i.delayDuration.value),m=xe(()=>n.ignoreNonKeyboardFocus??i.ignoreNonKeyboardFocus.value),y=Hi(n,"open",r,{defaultValue:n.defaultOpen,passive:n.open===void 0});nn(y,U=>{i.onClose&&(U?(i.onOpen(),document.dispatchEvent(new CustomEvent(gW))):i.onClose())});const b=De(!1),T=De(),x=xe(()=>y.value?b.value?"delayed-open":"instant-open":"closed"),{start:$,stop:A}=xT(()=>{b.value=!0,y.value=!0},f,{immediate:!1});function N(){A(),b.value=!1,y.value=!0}function O(){A(),y.value=!1}function I(){$()}return zwe({contentId:"",open:y,stateAttribute:x,trigger:T,onTriggerChange(U){T.value=U},onTriggerEnter(){i.isOpenDelayed.value?I():N()},onTriggerLeave(){a.value?O():A()},onOpen:N,onClose:O,disableHoverableContent:a,disableClosingTrigger:s,disabled:o,ignoreNonKeyboardFocus:m}),(U,B)=>(Z(),Se(v(LT),null,{default:be(()=>[bt(U.$slots,"default",{open:v(y)})]),_:3}))}}),Vwe=Nwe,qwe=Fe({__name:"TooltipContentImpl",props:{ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1,default:void 0},as:{type:null,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},avoidCollisions:{type:Boolean,required:!1,default:void 0},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1,default:void 0},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1}},emits:["escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const n=e,r=t,i=HT(),a=UT(),{forwardRef:s,currentElement:o}=wn(),f=xe(()=>n.ariaLabel||o.value?.textContent),m=xe(()=>{const{ariaLabel:y,...b}=n;return If(b,a.content.value??{},{side:"top",sideOffset:0,align:"center",avoidCollisions:!0,collisionBoundary:[],collisionPadding:0,arrowPadding:0,sticky:"partial",hideWhenDetached:!1})});return Hn(()=>{mr(window,"scroll",y=>{y.target?.contains(i.trigger.value)&&i.onClose()},{capture:!0}),mr(document,gW,i.onClose)}),(y,b)=>(Z(),Se(v(Pw),{"as-child":"","disable-outside-pointer-events":!1,onEscapeKeyDown:b[0]||(b[0]=T=>r("escapeKeyDown",T)),onPointerDownOutside:b[1]||(b[1]=T=>{v(i).disableClosingTrigger.value&&v(i).trigger.value?.contains(T.target)&&T.preventDefault(),r("pointerDownOutside",T)}),onFocusOutside:b[2]||(b[2]=ti(()=>{},["prevent"])),onDismiss:b[3]||(b[3]=T=>v(i).onClose())},{default:be(()=>[ke(v(NT),vn({ref:v(s),"data-state":v(i).stateAttribute.value},{...y.$attrs,...m.value},{style:{"--reka-tooltip-content-transform-origin":"var(--reka-popper-transform-origin)","--reka-tooltip-content-available-width":"var(--reka-popper-available-width)","--reka-tooltip-content-available-height":"var(--reka-popper-available-height)","--reka-tooltip-trigger-width":"var(--reka-popper-anchor-width)","--reka-tooltip-trigger-height":"var(--reka-popper-anchor-height)"}}),{default:be(()=>[bt(y.$slots,"default"),ke(v(Mw),{id:v(i).contentId,role:"tooltip"},{default:be(()=>[_n(ht(f.value),1)]),_:1},8,["id"])]),_:3},16,["data-state"])]),_:3}))}}),yW=qwe,jwe=Fe({__name:"TooltipContentHoverable",props:{ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1}},setup(e){const n=Y_(e),{forwardRef:r,currentElement:i}=wn(),{trigger:a,onClose:s}=HT(),o=UT(),{isPointerInTransit:f,onPointerExit:m}=hH(a,i);return o.isPointerInTransitRef=f,m(()=>{s()}),(y,b)=>(Z(),Se(yW,vn({ref:v(r)},v(n)),{default:be(()=>[bt(y.$slots,"default")]),_:3},16))}}),Uwe=jwe,Hwe=Fe({__name:"TooltipContent",props:{forceMount:{type:Boolean,required:!1},ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1}},emits:["escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const n=e,r=t,i=HT(),a=s1(n,r),{forwardRef:s}=wn();return(o,f)=>(Z(),Se(v(Og),{present:o.forceMount||v(i).open.value},{default:be(()=>[(Z(),Se(xr(v(i).disableHoverableContent.value?yW:Uwe),vn({ref:v(s)},v(a)),{default:be(()=>[bt(o.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),Wwe=Hwe,Gwe=Fe({__name:"TooltipPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const t=e;return(n,r)=>(Z(),Se(v($w),gr(yr(t)),{default:be(()=>[bt(n.$slots,"default")]),_:3},16))}}),Ywe=Gwe,Zwe=Fe({__name:"TooltipTrigger",props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,n=HT(),r=UT();n.contentId||=bu(void 0,"reka-tooltip-content");const{forwardRef:i,currentElement:a}=wn(),s=De(!1),o=De(!1),f=xe(()=>n.disabled.value?{}:{click:A,focus:x,pointermove:b,pointerleave:T,pointerdown:y,blur:$});Hn(()=>{n.onTriggerChange(a.value)});function m(){setTimeout(()=>{s.value=!1},1)}function y(){n.open&&!n.disableClosingTrigger.value&&n.onClose(),s.value=!0,document.addEventListener("pointerup",m,{once:!0})}function b(N){N.pointerType!=="touch"&&!o.value&&!r.isPointerInTransitRef.value&&(n.onTriggerEnter(),o.value=!0)}function T(){n.onTriggerLeave(),o.value=!1}function x(N){s.value||n.ignoreNonKeyboardFocus.value&&!N.target.matches?.(":focus-visible")||n.onOpen()}function $(){n.onClose()}function A(){n.disableClosingTrigger.value||n.onClose()}return(N,O)=>(Z(),Se(v(Aw),{"as-child":"",reference:N.reference},{default:be(()=>[ke(v(Cn),vn({ref:v(i),"aria-describedby":v(n).open.value?v(n).contentId:void 0,"data-state":v(n).stateAttribute.value,as:N.as,"as-child":t.asChild,"data-grace-area-trigger":""},VM(f.value)),{default:be(()=>[bt(N.$slots,"default")]),_:3},16,["aria-describedby","data-state","as","as-child"])]),_:3},8,["reference"]))}}),Kwe=Zwe;const vW={__name:"T3Link",props:{link:{type:[String,Object],required:!0}},setup(e){const t=e,n=xe(()=>
16typeof t.link=="string"?{href:t.link}:t.link);return(r,i)=>{const a=N_;return Z(),Se(a,vn({to:n.value.href,target:n.value.target,title:n.value.title,class:n.value.class},n.value.additionalAttributes),{default:be(()=>[bt(r.$slots,"default")]),_:3},16,["to","target","title","class"])}}},Xwe=Object.freeze(Object.defineProperty({__proto__:null,default:vW},Symbol.toStringTag,{value:"Module"}));function Jwe(e){const t=xe(()=>e.headerLayout===0?1:e.headerLayout||1),n=xe(()=>e.headerPosition?`t3-ce-header--${e.headerPosition}`:"");return{headerLevel:t,headerClass:n}}const Qwe={inheritAttrs:!1},EI=Object.assign(Qwe,{__name:"T3CeHeader",props:{header:{type:String,required:!1,default:""},headerLayout:{type:Number,required:!1,default:0},headerPosition:{type:String,required:!1,default:""},headerLink:{type:[Object,String],required:!1,default:()=>({additionalAttributes:[],class:"",href:"",linkText:"",target:"",title:""})},subheader:{type:String,required:!1,default:""},uid:{type:Number,required:!1},index:{type:Number,required:!1},appearance:{type:Object,required:!1}},setup(e){const t=e,{headerLevel:n,headerClass:r}=Jwe(t);return(i,a)=>t.header&&t.headerLayout!==100?(Z(),Ce("div",{key:0,class:de([v(r),"t3-ce-header"])},[t.headerLayout>=0&&t.headerLayout!==100?(Z(),Se(xr(`h${v(n)}`),{key:0,class:de(t.headerPosition)},{default:be(()=>[t.headerLink?(Z(),Se(vW,{key:0,link:t.headerLink},{default:be(()=>[_n(ht(t.header),1)]),_:1},8,["link"])):(Z(),Ce(Ct,{key:1},[_n(ht(t.header),1)],64))]),_:1},8,["class"])):Ne("",!0),t.subheader?(Z(),Se(xr(`h${v(n)+1}`),{key:1},{default:be(()=>[_n(ht(t.subheader),1)]),_:1})):Ne("",!0)],2)):Ne("",!0)}}),e3e=Object.freeze(Object.defineProperty({__proto__:null,default:EI},Symbol.toStringTag,{value:"Module"})),WT=()=>{let e=Yy();const t=(i,a)=>{let o=(()=>{if(i?.includes("<h2")){var y=new DOMParser,b=y.parseFromString(i,"text/html");return b.querySelectorAll("h2").forEach((x,$)=>{let A=b.createElement("div");A.setAttribute("id",`c${a}_${$}`),A.setAttribute("class",e),A.setAttribute("tabindex","0"),x?.parentNode?.insertBefore(A,x)}),b.body.innerHTML}else return i})()?.replaceAll('<span class="at"></span>',"@")?.replaceAll('<span class="dot"></span>',"."),f="";return o?.startsWith("<")?f=o:f=`<p>${o}</p>`,f},n=(i,a,s,o)=>(i=i+o,o>0&&i>s?i=a+(i-s-1):o<0&&i<a&&(i=s-(a-i-1)),String.fromCharCode(i));return{computedbodytext:t,decryptString:(i,a)=>{let s="";for(let o=0;o<i.length;o++){const f=i.charCodeAt(o);f>=43&&f<=58?s+=n(f,43,58,a):f>=64&&f<=90?s+=n(f,64,90,a):f>=97&&f<=122?s+=n(f,97,122,a):s+=i.charAt(o)}return s}}},e8=De(new Map);function t3e(){const{decryptString:e}=WT();function t(r){const i=()=>{if(!r.dataset.mailtoVector||!r.dataset.mailtoToken)return;const a=parseInt(r.dataset.mailtoVector,10)*-1;document.location.href=e(r.dataset.mailtoToken,a)};r.addEventListener("click",i),e8.value.set(r,i)}function n(r){e8.value.has(r)&&r.removeEventListener("click",e8.value.get(r))}return{addListenerFor:t,removeListenerFor:n}}const d1=Fe({__name:"T3HtmlParser",props:{as:{default:"div"},content:{},uid:{}},setup(e){const t=De([]),n=De([]),r=e,{computedbodytext:i}=WT(),a=xe(()=>i(r.content,r.uid)),s=De(),{addListenerFor:o,removeListenerFor:f}=t3e();Hn(()=>{m()}),oa(()=>{y()});function m(){t.value=Object.entries(s.value.getElementsByTagName("a")).reduce((x,[$,A])=>(A.dataset.mailtoToken===void 0&&x.push(A),x),[]);for(const x of t.value)x.addEventListener("click",b);n.value=Object.entries(s.value.getElementsByTagName("a")).reduce((x,[$,A])=>(A.dataset.mailtoToken!==void 0&&x.push(A),x),[]);for(const x of n.value)o(x)}function y(){for(const x of t.value)x.removeEventListener("click",b);for(const x of n.value)f(x)}function b(x){let $=x.target,A=0;for(;A<5&&!($ instanceof HTMLAnchorElement)&&$&&$.parentNode;)$=$.parentNode,A++;if($ instanceof HTMLAnchorElement)return T(x,$)}function T(x,$){const A=$.getAttribute("href"),N=$.getAttribute("target"),O=x.ctrlKey||x.metaKey,I=N&&N==="_blank"||O;A&&A[0]==="/"&&!I&&(x.preventDefault(),dc(A))}return(x,$)=>(Z(),Se(xr(e.as),{ref_key:"htmlparser",ref:s,class:de(["t3-ce-rte",v(me)({"& > *:last-child":{marginBottom:0}})]),innerHTML:v(a)},null,8,["class","innerHTML"]))}});async function n3e(e,t){return await r3e(t).catch(r=>({width:0,height:0,ratio:0}))}async function r3e(e){if(typeof Image>"u")throw new TypeError("Image not supported");return new Promise((t,n)=>{const r=new Image;r.onload=()=>{const i={width:r.width,height:r.height,ratio:r.width/r.height};t(i)},r.onerror=i=>n(i),r.src=e})}function IR(e){return(t=>t!==void 0?e[t]||t:e.missingValue)}function i3e(e={}){const t=e.formatter,n=e.keyMap&&typeof e.keyMap!="function"?IR(e.keyMap):e.keyMap,r={};for(const i in e.valueMap){const a=i,s=e.valueMap[a];r[a]=typeof s=="object"?IR(s):s}return i=>{const a=[];for(const s in i){const o=s;if(typeof i[o]>"u")continue;const f=typeof r[o]=="function"?r[o](i[o]):i[o];a.push([n?n(o):o,f])}return t?a.map(s=>t(...s)).join(e.joinWith??"&"):new URLSearchParams(a).toString()}}function a3e(e=""){if(e===void 0||!e.length)return[];const t=new Set;for(const n of e.split(" ")){const r=Number.parseInt(n.replace("x",""));r&&t.add(r)}return Array.from(t)}function o3e(e){if(e.length===0)throw new Error("`densities` must not be empty, configure to `1` to render regular size only (DPR 1.0)")}function k_(e=""){if(typeof e=="number")return e;if(typeof e=="string"&&e.replace("px","").match(/^\d+$/g))return Number.parseInt(e,10)}function s3e(e){const t={};if(typeof e=="string")for(const n of e.split(/[\s,]+/).filter(r=>r)){const r=n.split(":");r.length!==2?t["1px"]=r[0].trim():t[r[0].trim()]=r[1].trim()}else Object.assign(t,e);return t}function l3e(e){const t={options:e},n=(i,a={})=>
16_W(t,i,a),r=((i,a,s)=>n(i,If({modifiers:a},s)).url);for(const i in e.presets)r[i]=((a,s,o)=>r(a,s,{...e.presets[i],...o}));return r.options=e,r.getImage=n,r.getMeta=((i,a)=>u3e(t,i,a)),r.getSizes=((i,a)=>d3e(t,i,a)),t.$img=r,r}async function u3e(e,t,n){const r=_W(e,t,{...n});return typeof r.getMeta=="function"?await r.getMeta():await n3e(e,r.url)}function _W(e,t,n){if(t&&typeof t!="string")throw new TypeError(`input must be a string (received ${typeof t}: ${JSON.stringify(t)})`);if(!t||t.startsWith("data:"))return{url:t};const{setup:r,defaults:i}=c3e(e,n.provider||e.options.provider),a=r(),s=bW(e,n.preset);if(t=vu(t)?t:dP(t),!a.supportsAlias){for(const y in e.options.alias)if(t.startsWith(y)){const b=e.options.alias[y];b&&(t=Af(b,t.slice(y.length)))}}if(a.validateDomains&&vu(t)){const y=nT(t).host;if(!e.options.domains.find(b=>b===y))return{url:t}}const o=If(n,s,i),f={...o,modifiers:{...o.modifiers,width:o.modifiers?.width?k_(o.modifiers.width):void 0,height:o.modifiers?.height?k_(o.modifiers.height):void 0}},m=a.getImage(t,f,e);return m.format||=f.modifiers.format||"",m}function c3e(e,t){const n=e.options.providers[t];if(!n)throw new Error("Unknown provider: "+t);return n}function bW(e,t){if(!t)return{};if(!e.options.presets[t])throw new Error("Unknown preset: "+t);return e.options.presets[t]}function d3e(e,t,n){const r=bW(e,n.preset),i=If(n,r),a=k_(i.modifiers?.width),s=k_(i.modifiers?.height),o=i.sizes?s3e(i.sizes):{},f=i.densities?.trim(),m=f?a3e(f):e.options.densities;o3e(m);const y=a&&s?s/a:0,b=[],T=[];if(Object.keys(o).length>=1){for(const O in o){const I=DR(O,String(o[O]),s,y,e);if(I!==void 0){b.push({size:I.size,screenMaxWidth:I.screenMaxWidth,media:`(max-width: ${I.screenMaxWidth-1}px)`});for(const U of m)T.push({width:I._cWidth*U,src:LR(e,t,n,I,U)})}}f3e(b)}else for(const O of m){const I=Object.keys(o)[0];let U=I?DR(I,String(o[I]),s,y,e):void 0;U===void 0&&(U={size:"",screenMaxWidth:0,_cWidth:n.modifiers?.width,_cHeight:n.modifiers?.height}),T.push({width:O,src:LR(e,t,n,U,O)})}h3e(T);const x=T[T.length-1],$=b.length?b.map(O=>`${O.media?O.media+" ":""}${O.size}`).join(", "):void 0,A=$?"w":"x",N=T.map(O=>`${O.src} ${O.width}${A}`).join(", ");return{sizes:$,srcset:N,src:x?.src}}function DR(e,t,n,r,i){const a=i.options.screens&&i.options.screens[e]||Number.parseInt(e),s=t.endsWith("vw");if(!s&&/^\d+$/.test(t)&&(t=t+"px"),!s&&!t.endsWith("px"))return;let o=Number.parseInt(t);if(!a||!o)return;s&&(o=Math.round(o/100*a));const f=r?Math.round(o*r):n;return{size:t,screenMaxWidth:a,_cWidth:o,_cHeight:f}}function LR(e,t,n,r,i){return e.$img(t,{...n.modifiers,width:r._cWidth?r._cWidth*i:void 0,height:r._cHeight?r._cHeight*i:void 0},n)}function f3e(e){e.sort((n,r)=>n.screenMaxWidth-r.screenMaxWidth);let t=null;for(let n=e.length-1;n>=0;n--){const r=e[n];r.media===t&&e.splice(n,1),t=r.media}for(let n=0;n<e.length;n++)e[n].media=e[n+1]?.media||""}function h3e(e){e.sort((n,r)=>n.width-r.width);let t=null;for(let n=e.length-1;n>=0;n--){const r=e[n];r.width===t&&e.splice(n,1),t=r.width}}function p3e(e){let t;return()=>t||(t=typeof e=="function"?e():e,t)}const m3e=i3e({keyMap:{format:"f",width:"w",height:"h",resize:"s",quality:"q",background:"b",position:"pos"},formatter:(e,t)=>j9(e)+"_"+j9(t.toString())}),g3e=p3e({validateDomains:!0,supportsAlias:!0,getImage:(e,{modifiers:t,baseURL:n},r)=>{t.width&&t.height&&(t.resize=`${t.width}x${t.height}`,delete t.width,delete t.height);const i=m3e(t)||"_";return n||(n=Af(r.options.nuxt.baseURL,"/_ipx")),{url:Af(n,i,YM(e))}}}),y3e={screens:{sm:640,md:768,lg:1024,xl:1280,"2xl":1536},presets:{},domains:[],alias:{},densities:[1,2],format:["webp"],quality:void 0,provider:"ipx",providers:{ipx:{setup:g3e,defaults:{}}}},xW=e=>{const t=ul(),n=En();return n.$img||n._img||(n._img=l3e({...y3e,event:n.ssrContext?.event,nuxt:{baseURL:t.app.baseURL},runtimeConfig:t}))};function v3e(e){performance?.mark?.("mark_feature_usage",{detail:{feature:e}})}const _3e=e=>{const t=xW(),n=xe(()=>({provider:e.provider,preset:e.preset})),r=xe(()=>({width:k_(e.width),height:k_(e.height),crossorigin:e.crossorigin===!0?"anonymous":e.crossorigin||void 0,nonce:e.nonce})),i=xe(()=>({...e.modifiers,width:e.width,height:e.height,format:e.format,quality:e.quality||t.options.quality,background:e.background,fit:e.fit}));return{providerOptions:n,normalizedAttrs:r,imageModifiers:i}},b3e=["src"],wW={__name:"NuxtImg",props:{custom:{type:Boolean,required:!1},placeholder:{type:[Boolean,String,Number,Array],required:!1},placeholderClass:{type:String,required:!1},src:{type:String,required:!1},format:{type:String,required:!1},quality:{type:[String,Number],required:!1},background:{type:String,required:!1},fit:{type:String,required:!1},modifiers:{type:Object,required:!1},preset:{type:String,required:!1},provider:{type:null,required:!1},sizes:{type:[String,Object],required:!1},densities:{type:String,required:!1},preload:{type:[Boolean,Object],required:!1},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},crossorigin:{type:[String,Boolean],required:!1},nonce:{type:String,required:!1}},emits:["load","error"],setup(e,{expose:t,emit:n}){const r=e,i=n,a=xW(),{providerOptions:s,normalizedAttrs:o,imageModifiers:f}=_3e(r),m=xe(()=>a.getSizes(r.src,{...s.value,sizes:r.sizes,densities:r.densities,modifiers:f.value})),y=De(!1),b=qM(),T=xe(()=>({...o.value,"data-nuxt-img":"",...!r.placeholder||y.value?{sizes:m.value.sizes,srcset:m.value.srcset}:{},...b})),x=xe(()=>{if(y.value)return!1;const I=r.placeholder===""?[10,10]:r.placeholder;if(!I)return!1;
16if(typeof I=="string")return I;const[U=10,B=U,q=50,Q=3]=Array.isArray(I)?I:typeof I=="number"?[I]:[];return a(r.src,{...f.value,width:U,height:B,quality:q,blur:Q},s.value)}),$=xe(()=>r.sizes?m.value.src:a(r.src,f.value,s.value)),A=xe(()=>x.value||$.value),N=En().isHydrating,O=jX("imgEl");return t({imgEl:O}),Hn(()=>{if(x.value||r.custom){const I=new Image;$.value&&(I.src=$.value),r.sizes&&(I.sizes=m.value.sizes||"",I.srcset=m.value.srcset),I.decode?I.decode().then(()=>{y.value=!0,i("load",new Event("load"))}).catch(U=>{i("error",U)}):(I.onload=U=>{y.value=!0,i("load",U)},I.onerror=U=>{i("error",U)}),v3e("nuxt-image");return}O.value&&(O.value.complete&&N&&(O.value.getAttribute("data-error")?i("error",new Event("error")):i("load",new Event("load"))),O.value.onload=I=>{i("load",I)},O.value.onerror=I=>{i("error",I)})}),(I,U)=>e.custom?bt(I.$slots,"default",gr(yr({imgAttrs:T.value,isLoaded:y.value,src:A.value})),void 0,void 0,1):(Z(),Ce("img",vn({key:0,ref_key:"imgEl",ref:O,class:x.value?e.placeholderClass:void 0},T.value,{src:A.value}),null,16,b3e))}},x3e=Fe({__name:"defaultImage",props:{motif:{type:Boolean,default:!1}},setup(e){const t=vr(),n=De(t.favicon),r=xe(()=>n.value?.png?.[3]?.url);return(i,a)=>(Z(),Ce("div",{style:fo(`background-image:url(${v(r)})`),class:de([e.motif?v(me)({bgSize:"auto 10rem",bgPosition:"center center",_print:{display:"none"}}):v(me)({bgRepeat:"no-repeat",bgPosition:"center center",bgSize:"auto",bgColor:"lightGray",_print:{display:"none"},_inverse:{filter:"grayscale(1) invert(1)"}})])},null,6))}}),w3e=["aria-label"],Nf=Fe({__name:"Image",props:{image:{},defaultImg:{type:Boolean,default:!0},motif:{type:Boolean,default:!1},lazy:{type:Boolean,default:!0},altOverride:{},altPrefix:{},altSuffix:{},id:{},class:{},initialDimensions:{type:Boolean},noFigcaption:{type:Boolean,default:!1}},setup(e){const t=e,n=xe(()=>t.image?.properties?.title&&t.image?.properties?.title!==""&&t.image?.properties?.title!==" "),r=xe(()=>t.image?.properties?.copyright&&t.image?.properties?.copyright!==""&&t.image?.properties?.copyright!==" "),i=xe(()=>t.initialDimensions?{width:t.image?.properties?.initialDimensions?.width,height:t.image?.properties?.initialDimensions?.height}:{width:t.image?.properties?.dimensions?.width,height:t.image?.properties?.dimensions?.height}),a=t.altPrefix,s=t.altOverride??t.image?.properties?.alternative,o=t.altSuffix,f=xe(()=>{let y=[];return a!==""&&y.push(a),s!==""&&y.push(s),o!==""&&y.push(o),y.join("")}),m=xe(()=>{let y=[];return n.value&&y.push(t.image?.properties?.title),r.value&&y.push(t.image?.properties?.copyright),y.join(", ")!==""?y.join(", "):null});return(y,b)=>{const T=wW,x=x3e;return e.image?.properties?.publicUrl||e.image?.properties?.publicUrl||e.image?.properties?.originalUrl?(Z(),Ce(Ct,{key:0},[(v(n)||v(r))&&!e.noFigcaption?(Z(),Ce("figure",{key:0,"data-img-container":"",role:"group","aria-label":v(m)??y.$t("common.medias.images.illustration"),class:de(v(Tr)({alignItems:"start",gap:".5rem"}))},[ke(T,{src:e.initialDimensions?e.image?.properties?.originalUrl:e.image?.properties?.publicUrl,width:v(i).width,height:v(i).height,"data-not-lazy":e.lazy?null:!0,alt:v(f)??y.$t("common.medias.images.illustration"),id:e.id},null,8,["src","width","height","data-not-lazy","alt","id"]),Re("figcaption",{"data-description":"",class:de(v(me)({})),style:fo(`max-width:${v(i).width}px`)},[v(n)?(Z(),Ce("span",{key:0,class:de(v(me)({fontSize:"sm",fontWeight:700,display:"block"}))},ht(e.image?.properties?.title),3)):Ne("",!0),v(r)?(Z(),Ce("span",{key:1,class:de(v(me)({fontSize:"{fontSizes.xs}"}))},ht("© "+e.image?.properties?.copyright),3)):Ne("",!0)],6)],10,w3e)):(Z(),Se(T,{key:1,"data-img-container":"",src:e.initialDimensions?e.image?.properties?.originalUrl:e.image?.properties?.publicUrl,width:v(i).width,height:v(i).height,"data-not-lazy":e.lazy?null:!0,alt:v(f)??"",id:e.id,class:de(e.class)},null,8,["src","width","height","data-not-lazy","alt","id","class"]))],64)):e.defaultImg?(Z(),Se(x,{key:1,"data-img-container":"",motif:e.motif},null,8,["motif"])):Ne("",!0)}}}),f1=Fe({__name:"CimLink",props:{link:{},showSr:{type:Boolean,default:!1}},setup(e){const t=N_;kd();const{t:n}=Ii(),{decryptString:r}=WT(),i=De(),a=(f,m)=>{const y=f,b=parseInt(m,10)*-1;document.location.href=r(y,b)},s=f=>f.type==="email"?null:f?.href?f?.target:null,o=f=>s(f)?f?.target?f.text+" "+n("common.newWindow"):null:f?.type==="email"?`${n("common.contact.contact")} ${f.text} ${n("common.contact.byEmail")}`:null;return(f,m)=>{const y=ST;return e.link?(Z(),Se(xr(e.link?.href?v(t):"span"),{key:0,ref_key:"theLink",ref:i,to:e.link?.href?e.link?.href:null,target:s(e.link),title:o(e.link),onClick:m[0]||(m[0]=b=>e.link?.type==="email"?a(e.link?.additionalAttributes?.["data-mailto-token"],e.link?.additionalAttributes?.["data-mailto-vector"]):null)},{default:be(()=>[bt(f.$slots,"default",{},()=>[ke(y,{text:e.link?.text??e.link?.href,class:de(e.showSr?v(Er)():null)},null,8,["text","class"])]),bt(f.$slots,"icon")]),_:3},8,["to","target","title"])):Ne("",!0)}}}),S3e={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 17"};function C3e(e,t){return Z(),Ce("svg",S3e,[...t[0]||(t[0]=[Re("path",{fill:"#fff",d:"M10.835 9.17h-2V2.5h-1.33v6.67h-2l2.67 2.67 2.67-2.67zm-8 4v1.33h10.67v-1.33z"},null,-1)])])}const T3e={render:C3e},k3e={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 16"};function E3e(e,t){return Z(),Ce("svg",k3e,[...t[0]||(t[0]=[Re("path",{fill:"#fff",d:"M16.17 2.505h-12c-.74 0-1.33.6-1.33 1.33v8.67c0 .74.6 1.33 1.33 1.33h12c.74 0 1.33-.6 1.33-1.33v-8.67c0-.74-.6-1.33-1.33-1.33m-12 10v-8.67H9.5v8.67zm12 0h-5.33v-8.67h5.33z"},null,-1),Re("path",{fill:"#fff",d:"M15.5 6.165h-4v1h4zM15.5 7.835h-4v1h4zM15.5 9.505h-4v1h4z"},null,-1)])])}const P3e={render:E3e},$3e={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"};function M3e(e,t){return Z(),Ce("svg",$3e,[...t[0]||(t[0]=[Re("path",{fill:"#fff",d:"M11.33 5.898a.575.575 0 0 0-.815-.058.575.575 0 0 0-.057.815c.579.82.579 1.915 0 2.735a.613.613 0 0 0 .057.815.84.84 0 0 0 .35.114.52.52 0 0 0 .464-.235 3.49 3.49 0 0 0 0-4.186"},null,-1),Re("path",{fill:"#fff",d:"M12.964 3.454a.507.507 0 0 0-.725-.031q-.05.045-.089.101a.78.78 0 0 0 .057.935 4.66 4.66 0 0 1 1.572 3.538 4.57 4.57 0 0 1-1.514 3.473.71.71 0 0 0-.058.929c.115.146.28.242.465.267.127 0 .248-.05.35-.133A6.26 6.26 0 0 0 15 7.997a6.55 6.55 0 0 0-2.036-4.536zM8.861 2.22a.49.49 0 0 0-.579 0L4.503 5.134H1.59a.587.587 0 0 0-.585.579v4.542c-.038.318.191.611.51.643H4.49l3.722 2.85a.75.75 0 0 0 .35.127.58.58 0 0 0 .585-.579V2.806a.7.7 0 0 0-.292-.58h.006zm-.871 9.715L5.025 9.664a.75.75 0 0 0-.35-.128H2.168V6.432h2.5a.75.75 0 0 0 .35-.127l2.965-2.271v7.9z"},null,-1)])])}const A3e={render:M3e},I3e={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 21"};function D3e(e,t){return Z(),Ce("svg",I3e,[...t[0]||(t[0]=[Re("path",{fill:"#fff",d:"m6.88 5.997 1.38-1.38 5.98 6-5.95 6-1.37-1.37 4.57-4.62z"},null,-1)])])}const ib={render:D3e},L3e={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 21"};function O3e(e,t){return Z(),Ce("svg",L3e,[...t[0]||(t[0]=[Re("path",{fill:"#fff",d:"m13.12 5.997-1.38-1.38-5.98 6 5.95 6 1.37-1.37-4.57-4.62z"},null,-1)])])}const R3e={render:O3e},B3e={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"};function F3e(e,t){return Z(),Ce("svg",B3e,[...t[0]||(t[0]=[Re("path",{fill:"#fff",d:"M16.09 5.38 14.71 4l-5.98 6 5.94 6 1.38-1.37-4.57-4.62zM5.85 4.16H3.91v11.67h1.94z"},null,-1)])])}const z3e={render:F3e},N3e={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"};function V3e(e,t){return Z(),Ce("svg",N3e,[...t[0]||(t[0]=[Re("path",{fill:"#fff",d:"m8.52 10.
1601-4.57 4.62L5.33 16l5.94-6-5.98-6-1.38 1.38zM16.09 4.16h-1.94v11.67h1.94z"},null,-1)])])}const q3e={render:V3e},j3e={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 22 22"};function U3e(e,t){return Z(),Ce("svg",j3e,[...t[0]||(t[0]=[Re("path",{fill:"#fff",d:"m18.15 5.26-1.41-1.41L11 9.59 5.26 3.85 3.85 5.26 9.59 11l-5.74 5.74 1.41 1.41L11 12.41l5.74 5.74 1.41-1.41L12.41 11z"},null,-1)])])}const SW={render:U3e},H3e={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 15 16"};function W3e(e,t){return Z(),Ce("svg",H3e,[...t[0]||(t[0]=[Re("path",{fill:"#1D1D1B","fill-rule":"evenodd",d:"M8.751 8.991v6.25h-2.5V8.99H0v-2.5h6.25V.24h2.501v6.25H15v2.5z","clip-rule":"evenodd"},null,-1)])])}const PI={render:W3e},G3e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 14"};function Y3e(e,t){return Z(),Ce("svg",G3e,[...t[0]||(t[0]=[Re("path",{fill:"#101010",d:"M9 0C6.47 0 4.45 1.15 2.98 2.52 1.52 3.88.54 5.5.08 6.62c-.1.25-.1.52 0 .77.46 1.12 1.44 2.74 2.9 4.1 1.47 1.37 3.49 2.52 6.02 2.52s4.55-1.15 6.02-2.52c1.46-1.36 2.44-2.98 2.91-4.1.1-.25.1-.52 0-.77-.47-1.12-1.44-2.74-2.91-4.1C13.55 1.15 11.53 0 9 0M4.5 7c0-2.49 2.01-4.5 4.5-4.5s4.5 2.01 4.5 4.5-2.01 4.5-4.5 4.5S4.5 9.49 4.5 7M9 5c0 1.1-.9 2-2 2-.22 0-.43-.04-.63-.1-.17-.06-.37.05-.37.23 0 .22.04.43.1.65.43 1.6 2.08 2.55 3.67 2.12s2.55-2.07 2.12-3.68A2.99 2.99 0 0 0 9.12 4c-.18 0-.29.19-.23.37.07.2.1.41.1.63Z"},null,-1)])])}const Z3e={render:Y3e},K3e={xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 489.658 489.658"};function X3e(e,t){return Z(),Ce("svg",K3e,[...t[0]||(t[0]=[Re("path",{d:"m485.313 252.34 4.345-7.511-4.345-7.511c-23.974-41.44-58.446-76.197-99.691-100.511-42.473-25.038-91.117-38.28-140.681-38.3l-.112-.001-.112.001a278 278 0 0 0-104.556 20.441L27.936 6.723 6.723 27.936 111.407 132.62a274 274 0 0 0-7.371 4.187c-41.245 24.314-75.718 59.07-99.691 100.511L0 244.829l4.345 7.511c23.974 41.44 58.446 76.197 99.691 100.511 42.473 25.038 91.117 38.28 140.681 38.3l.112.001.112-.001a278 278 0 0 0 104.556-20.441l112.226 112.226 21.213-21.213-104.685-104.685a274 274 0 0 0 7.371-4.187c41.245-24.314 75.718-59.07 99.691-100.511m-30.494-7.511c-22.94 36.587-54.809 66.03-91.791 86.144 17.673-24.184 28.124-53.964 28.124-86.144s-10.45-61.96-28.124-86.144c36.982 20.114 68.851 49.557 91.791 86.144m-209.99 116.323-.107-.001c-64.092-.058-116.217-52.217-116.217-116.322 0-26.675 9.031-51.276 24.189-70.922l47.815 47.815a49.7 49.7 0 0 0-5.681 23.106c0 27.57 22.43 50 50 50a49.7 49.7 0 0 0 23.106-5.681l47.815 47.815c-19.619 15.137-44.181 24.163-70.815 24.187zm0-232.646.107.001c64.092.058 116.217 52.217 116.217 116.322 0 26.675-9.031 51.276-24.189 70.922l-47.815-47.815a49.7 49.7 0 0 0 5.681-23.106c0-27.57-22.43-50-50-50a49.7 49.7 0 0 0-23.106 5.681l-47.815-47.815c19.619-15.137 44.181-24.163 70.815-24.187q.051-.003.105-.003M34.839 244.829c22.94-36.587 54.809-66.03 91.791-86.144-17.673 24.184-28.124 53.964-28.124 86.144s10.45 61.96 28.124 86.144c-36.982-20.114-68.851-49.557-91.791-86.144"},null,-1)])])}const J3e={render:X3e},Q3e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"};function e5e(e,t){return Z(),Ce("svg",Q3e,[...t[0]||(t[0]=[Re("path",{d:"m18.76 17.64-4.36-4.29a7.38 7.38 0 0 0 1.82-4.85c0-4.13-3.41-7.49-7.61-7.49S1 4.36 1 8.49s3.41 7.49 7.61 7.49c1.67 0 3.3-.55 4.62-1.54l4.39 4.32c.16.16.36.23.57.23s.41-.08.57-.23c.15-.15.24-.35.24-.57s-.08-.42-.24-.57Zm-4.15-9.15c0 3.25-2.69 5.9-6 5.9s-6-2.65-6-5.9 2.69-5.9 6-5.9 6 2.65 6 5.9",style:{"stroke-width":"0"}},null,-1),Re("path",{d:"M11.43 7.82h-2v-2c0-.43-.35-.79-.79-.79s-.79.35-.79.79v2h-2c-.43 0-.79.35-.79.79s.35.79.79.79h2v2c0 .43.35.79.79.79s.79-.35.79-.79v-2h2c.43 0 .79-.35.79-.79s-.35-.79-.79-.79",style:{"stroke-width":"0"}},null,-1)])])}const t5e={render:e5e},n5e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"};function r5e(e,t){return Z(),Ce("svg",n5e,[...t[0]||(t[0]=[Re("path",{d:"M11.47 7.79h-5.5c-.43 0-.78.35-.78.77s.35.77.78.77h5.5c.43 0 .78-.35.78-.77s-.35-.77-.78-.77",style:{"stroke-width":"0"}},null,-1),Re("path",{d:"m18.76 17.63-4.36-4.29a7.38 7.38 0 0 0 1.82-4.85C16.22 4.36 12.8 1 8.61 1S1 4.36 1 8.49s3.41 7.49 7.61 7.49c1.66 0 3.3-.55 4.62-1.54l4.39 4.32c.16.15.36.23.57.23s.41-.08.57-.23c.15-.15.24-.35.24-.57 0-.21-.08-.42-.24
16-.57ZM14.6 8.49c0 3.25-2.69 5.89-5.99 5.89s-5.99-2.64-5.99-5.89S5.31 2.6 8.61 2.6s5.99 2.64 5.99 5.89",style:{"stroke-width":"0"}},null,-1)])])}const i5e={render:r5e},a5e={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 26 25"};function o5e(e,t){return Z(),Ce("svg",a5e,[...t[0]||(t[0]=[Re("path",{fill:"#E03138",d:"M20.689 17.23c-.46-.31-1-.47-1.55-.47-.7 0-1.36.27-1.87.75l-.07.06-.08-.05-7.21-4.22.02-.09c.11-.44.11-.91 0-1.35l-.02-.09 7.21-4.22.07.06c.42.39.94.64 1.5.73s1.13 0 1.65-.23c.52-.24.95-.62 1.24-1.11s.44-1.05.42-1.62a2.8 2.8 0 0 0-.55-1.58c-.33-.46-.79-.81-1.33-1.01a2.85 2.85 0 0 0-1.66-.1c-.55.13-1.05.43-1.44.84a2.93 2.93 0 0 0-.68 2.64l.02.09-7.21 4.22-.07-.06c-.41-.39-.92-.64-1.48-.74a2.8 2.8 0 0 0-1.64.2c-.52.22-.95.59-1.26 1.07-.31.47-.47 1.02-.47 1.59a2.9 2.9 0 0 0 1.73 2.66c.52.22 1.08.29 1.64.2.55-.1 1.06-.35 1.47-.74l.07-.06.08.05 7.2 4.23-.02.09c-.05.2-.07.41-.07.62 0 .56.17 1.09.48 1.56.31.46.74.82 1.26 1.03.51.21 1.07.26 1.61.16.54-.11 1.04-.38 1.43-.77s.65-.89.76-1.44a2.82 2.82 0 0 0-1.19-2.88zM18.339 4.7c.37-.37.99-.43 1.42-.14.18.12.33.3.41.51.09.21.11.43.06.65a1.1 1.1 0 0 1-.31.58c-.16.16-.36.26-.58.31-.07.01-.15.02-.22.02-.15 0-.29-.03-.43-.09-.21-.08-.38-.23-.5-.42-.12-.18-.19-.4-.19-.62 0-.3.12-.58.33-.8zm-10.42 8.63c-.21.21-.49.33-.79.34-.3 0-.58-.12-.79-.34-.21-.21-.33-.5-.33-.8s.12-.58.33-.8a1.11 1.11 0 0 1 1.58 0 1.136 1.136 0 0 1 0 1.6m12.01 7.06c-.21.21-.49.33-.79.34-.3 0-.58-.12-.79-.34-.21-.21-.33-.5-.33-.8s.12-.58.33-.8.5-.33.79-.33a1.13 1.13 0 0 1 .79 1.93"},null,-1)])])}const s5e={render:o5e},l5e={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 35 35"};function u5e(e,t){return Z(),Ce("svg",l5e,[...t[0]||(t[0]=[Re("path",{fill:"#fff","fill-rule":"evenodd",d:"m17.5 10.086 1.891 4.498c.088.21.23.394.414.53l.011.008.012.009c.186.13.404.208.63.225l4.862.409-3.693 3.187a1.26 1.26 0 0 0-.379.558l-.006.017-.005.017a1.27 1.27 0 0 0-.017.664l1.113 4.748-4.174-2.527a1.26 1.26 0 0 0-1.317 0l-4.174 2.527 1.112-4.742a1.25 1.25 0 0 0-.41-1.265l-3.69-3.184 4.863-.409c.226-.017.443-.095.63-.225l.012-.01.013-.009a1.27 1.27 0 0 0 .412-.528zm-1.929-.73.101-.244a1.98 1.98 0 0 1 3.677.053l1.756 4.177 4.571.384h.004a1.97 1.97 0 0 1 1.723 1.365q.095.294.097.601v.026a2 2 0 0 1-.072.515l-.001.002a2 2 0 0 1-.616.966l-.001.001-3.475 2.999 1.048 4.47v.002a1.979 1.979 0 0 1-2.955 2.145l-.003-.002L17.5 24.44l-3.925 2.377-.003.002a1.978 1.978 0 0 1-2.955-2.146v-.002l1.049-4.47-3.475-3H8.19a1.979 1.979 0 0 1 1.13-3.475l4.576-.384z","clip-rule":"evenodd"},null,-1)])])}const c5e={render:u5e},d5e={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 35 35"};function f5e(e,t){return Z(),Ce("svg",d5e,[...t[0]||(t[0]=[Re("path",{fill:"#D63455",d:"m17.501 23.272 6.18 3.73-1.636-7.03 5.455-4.73-7.19-.61L17.5 7.997l-2.81 6.63-7.191.61 5.455 4.732L11.319 27z"},null,-1)])])}const h5e={render:f5e},p5e={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 25 25"};function m5e(e,t){return Z(),Ce("svg",p5e,[...t[0]||(t[0]=[Re("path",{fill:"#1D1D1B",d:"M3.857 1.5v22l17.286-11z"},null,-1)])])}const w$={render:m5e},g5e={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 25 25"};function y5e(e,t){return Z(),Ce("svg",g5e,[...t[0]||(t[0]=[Re("path",{fill:"#1D1D1B",d:"M3.39 0h7v25h-7zM14.61 0h7v25h-7z"},null,-1)])])}const S$={render:y5e},v5e={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 41 41"};function _5e(e,t){return Z(),Ce("svg",v5e,[...t[0]||(t[0]=[Re("path",{fill:"#131313",d:"M21.939 28.515v-7h2.84l.474-3h-3.314v-1.5a1.4 1.4 0 0 1 .052-.607 1.34 1.34 0 0 1 .303-.518c.138-.145.306-.255.49-.32.186-.065.382-.084.575-.055h1.42v-3h-2.367c-2.364 0-3.313 1.5-3.313 4v2.004h-2.846v2.997h2.846v7z"},null,-1)])])}const b5e={render:_5e},x5e={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 41 41"};function w5e(e,t){return Z(),Ce("svg",x5e,[...t[0]||(t[0]=[Re("path",{fill:"#131313","fill-rule":"evenodd",d:"M25.754 16.454a.916.916 0 1 1-1.833 0 .916.916 0 0 1 1.833 0m-4.989 6.616a2.543 2.543 0 1 1 0-5.086 2.543 2.543 0 0 1 0 5.086m0-6.464a3.92 3.92 0 1 0 0 7.84 3.92 3.92 0 0 0 0-7.84m0-2.333c2.032 0 2.28 0 3.083.044.483.006.962.094 1.416.26.332.122.633.318.878.573.253.246.447.546.568.878.17.453.26.932.265 1.416.034.804.044 1.044.044 3.082 0 2.04 0 2.28-.044 3.083a4.1 4.1 0 0 1-.265 1.416 2.5 2.5 0 0 1-1.446 1.446c-.453.17-.932.26-1.416.265-.804.034-1.048.044-3.082.044-2.035 0-2.28 0-3.083-.044a4.1 4.1 0 0 1-1.416-.265 2.35 2.35 0 0 1-.878-.568 2.3 2.3 0 0 1-.573-.878 4.2 4.2 0 0 1-.26-1.416c-.039-.804-.049-1.048-.049-3.083 0-2.034 0-2.278.05-3.082.003-.484.09-.963.259-1.416.12-.333.317-.633.573-.878.245-.256.545-.453.878-.573a4.3 4.3 0 0 1 1.416-.26c.804-.038 1.044-.043 3.082-.043m0-1.376c-2.073 0-2.333 0-3.146.043a5.6 5.6 0 0 0-1.852.358 3.87 3.87 0 0 0-2.23 2.23 5.6 5.6 0 0 0-.359 
161.852c-.043.814-.043 1.074-.043 3.147s0 2.333.043 3.153c.014.632.135 1.257.358 1.848.19.51.489.972.878 1.352.382.389.843.69 1.353.883a5.6 5.6 0 0 0 1.852.328c.814.039 1.073.044 3.146.044s2.333 0 3.147-.044a5.6 5.6 0 0 0 1.847-.353 3.92 3.92 0 0 0 2.235-2.235 5.6 5.6 0 0 0 .333-1.823c.039-.814.043-1.073.043-3.146s0-2.333-.043-3.147a5.6 5.6 0 0 0-.353-1.852 3.8 3.8 0 0 0-.883-1.353 3.7 3.7 0 0 0-1.332-.884 5.6 5.6 0 0 0-1.84-.358c-.82-.043-1.08-.043-3.154-.043","clip-rule":"evenodd"},null,-1)])])}const S5e={render:w5e},C5e={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 41 41"};function T5e(e,t){return Z(),Ce("svg",C5e,[...t[0]||(t[0]=[Re("g",{"clip-path":"url(#i1665126851__a)"},[Re("path",{fill:"#131313",d:"M16.372 14.679c1.773 1.318 3.68 3.992 4.381 5.427.7-1.435 2.607-4.109 4.38-5.427 1.28-.952 3.353-1.688 3.353.655 0 .468-.27 3.93-.43 4.492-.551 1.954-2.563 2.453-4.353 2.151 3.128.528 3.924 2.274 2.206 4.021-3.264 3.318-4.691-.832-5.057-1.896-.067-.195-.099-.286-.1-.208 0-.078-.03.014-.098.208-.366 1.064-1.793 5.214-5.057 1.89
166-1.718-1.747-.923-3.494 2.205-4.02-1.79.3-3.8-.198-4.353-2.152-.159-.562-.43-4.024-.43-4.492 0-2.343 2.074-1.607 3.353-.655"})],-1),Re("defs",null,[Re("clipPath",{id:"i1665126851__a"},[Re("path",{fill:"#fff",d:"M12.753 13.516h16v14h-16z"})])],-1)])])}const k5e={render:T5e},E5e={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 41 40"};function P5e(e,t){return Z(),Ce("svg",E5e,[...t[0]||(t[0]=[Re("path",{fill:"#131313","fill-rule":"evenodd",d:"M24.847 21.956c-.246-.134-1.454-.781-1.68-.872-.227-.092-.392-.14-.569.103-.176.242-.677.785-.829.945-.152.161-.299.176-.545.042-.245-.133-1.042-.426-1.967-1.309-.719-.687-1.19-1.52-1.328-1.774-.136-.254 0-.384.13-.503.116-.107.261-.281.392-.422.13-.14.176-.242.266-.405s.053-.31-.005-.436c-.058-.127-.512-1.37-.702-1.875s-.402-.43-.548-.436c-.146-.005-.312-.032-.479-.038a.92.92 0 0 0-.68.286c-.238.24-.908.817-.953 2.041-.047 1.224.806 2.44.925 2.61s1.627 2.823 4.134 3.914c2.508 1.09 2.521.758 2.981.733.46-.024 1.504-.547 1.735-1.12.23-.572.249-1.07.19-1.176s-.223-.174-.468-.308m-4.6 5.897a8.16 8.16 0 0 1-4.491-1.341l-3.138.997 1.02-3.011a8.03 8.03 0 0 1-1.555-4.755c0-4.473 3.663-8.111 8.165-8.111s8.165 3.638 8.165 8.11c0 4.473-3.663 8.11-8.165 8.11m0-17.853c-5.415 0-9.807 4.362-9.807 9.743a9.65 9.65 0 0 0 1.408 5.03L10.078 30l5.43-1.727a9.8 9.8 0 0 0 4.74 1.212c5.417 0 9.808-4.362 9.808-9.742S25.666 10 20.248 10","clip-rule":"evenodd"},null,-1)])])}const $5e={render:P5e},M5e={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 41 41"};function A5e(e,t){return Z(),Ce("svg",M5e,[...t[0]||(t[0]=[Re("path",{fill:"#131313",d:"M27.953 27.716v-5.274c0-2.592-.558-4.572-3.582-4.572-1.458 0-2.43.792-2.826 1.548h-.037v-1.314h-2.861v9.612h2.988v-4.77c0-1.26.233-2.466 1.781-2.466 1.53 0 1.549 1.422 1.549 2.538v4.68h2.988zM13.787 18.104h2.988v9.612h-2.988zM15.28 13.316c-.953 0-1.727.774-1.727 1.728s.774 1.746 1.728 1.746 1.728-.792 1.728-1.746-.774-1.728-1.728-1.728"},null,-1)])])}const I5e={render:A5e},D5e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 300 300.251"};function L5e(e,t){return Z(),Ce("svg",D5e,[...t[0]||(t[0]=[Re("path",{d:"M178.57 127.15 290.27 0h-26.46l-97.03 110.38L89.34 0H0l117.13 166.93L0 300.25h26.46l102.4-116.59 81.8 116.59H300M36.01 19.54h40.65l187.13 262.13h-40.66"},null,-1)])])}const O5e={render:L5e},R5e={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 45 45"};function B5e(e,t){return Z(),Ce("svg",R5e,[...t[0]||(t[0]=[Re("path",{fill:"#2B4C9B",d:"M33.211 17.127a2.8 2.8 0 0 0-1.969-1.97c-1.748-.478-8.742-.478-8.742-.478s-6.993 0-8.742.46a2.86 2.86 0 0 0-1.969 1.988c-.46 1.748-.46 5.373-.46 5.373s0 3.644.46 5.374a2.8 2.8 0 0 0 1.97 1.97c1.766.478 8.741.478 8.741.478s6.994 0 8.742-.46a2.8 2.8 0 0 0 1.97-1.97c.46-1.748.46-5.373.46-5.373s.018-3.644-.46-5.392M20.274 25.85v-6.7l5.815 3.35z"},null,-1)])])}const F5e={render:B5e};function zr(){const e=vr(),t=De(e.initialData),n=De(e.siteBuilderInfos);return{isAmiral:()=>n.value?.identifier==="metropole-du-mans",filigrane:()=>t.value?.decoration?.content?.decoration?.[0]}}const cr=Fe({__name:"CimButton",props:{link:{default:{}},variante:{default:{}},align:{default:""},noContainer:{type:Boolean,default:!1},type:{default:""},showSr:{type:Boolean,default:!1},picto:{},role:{},isLoading:{type:Boolean},disabled:{type:Boolean}},setup(e){const t=vr();t.initialData,t.siteBuilderInfos;const n=e,{isAmiral:r}=zr(),i=xe(()=>n.type!==""),a=xe(()=>n.link?.href),s=()=>{if(n.picto)switch(n.picto){case"telecharger":return T3e;case"feuilleter":return P3e;case"ecouter":return A3e;case"next":return ib;case"prev":return R3e;case"first":return z3e;case"last":return q3e;case"close":return SW;case"plus":return PI;case"showField":return Z3e;case"hideField":return J3e;case"zoomIn":return t5e;case"zoomOut":return i5e;case"share":return s5e;case"fav":return c5e;case"favFull":return h5e;case"play":return w$;case"pause":return S$;case"fb":return b5e;case"ig":return S5e;case"li":return I5e;case"yt":return F5e;case"x":return O5e;case"bs":return k5e;case"wa":return $5e;default:return null}else return null},o=uU({className:"boutonsRecipe",slots:["btnContainer","fontSize","skin","hasHover"],base:{btnContainer:{},fontSize:{marginBottom:0,_print:{display:"none"}},skin:{"& svg, & svg > *":{transition:"{durations.fast} {easings.easeIn}"}},hasHover:{}},variants:{classes:{button:{btnContainer:{},fontSize:{fontSize:"sm",lineHeight:1.4},skin:{display:"inline-flex",alignItems:"center",padding:{base:"1rem 2rem",md:"1.5rem 2.5rem"},border:"{borders.sm} transparent",borderRadius:"{radii.button}",fontWeight:700,"& svg":{width:{base:"1.5rem",sm:"1.8rem"},height:{base:"1.5rem",sm:"1.8rem"}}},hasHover:{}},btnTxt:{fontSize:{fontSize:"sm",lineHeight:1.4},skin:{padding:"0.5rem 0.2rem",content:"txt",display:"inline-flex",alignItems:"center","& svg":{width:{base:"1rem",sm:"1.5rem"},height:{base:"1rem",sm:"1.5rem"}}},hasHover:{}},pictoRound:{fontSize:{fontSize:"sm",lineHeight:1.4},skin:{display:"inline-flex",alignItems:"center",fontWeight:600,"& svg":{overflow:"visible",borderRadius:"50%",border:"{borders.sm} transparent"}},hasHover:{color:"inherit",_hover:{"& svg":{scale:1.1}}}},btnGradient:{btnContainer:{},fontSize:{fontSize:"p",lineHeight:1.4,zIndex:0,position:"relative"},skin:{display:"inline-flex",alignItems:"center",padding:{base:"1.5rem 3rem",md:"2rem 3.5rem"},position:"relative",fontWeight:700,borderRadius:"1rem",bgColor:n.variante?.bgColor,_before:{content:"''",position:"absolute",bg:{base:"linear-gradient(270deg, var(--cim_primary_color) 49.5%, var(--cim_secondary_color) 100%)",_inverse:"black"},width:"calc(100% + 0.4rem)",height:"calc(100% + 0.4rem)",left:"-0.2rem",top:"-0.2rem",borderRadius:"1.1rem",zIndex:-1,transition:"{easings.global}"},_hover:{bgColor:"primary",color:"white"},"& svg":{width:{base:"1.5rem",sm:"1.8rem"},height:{base:"1.5rem",sm:"1.8rem"}}},hasHover:{_hover:{_before:{opacity:0}
16}}},btnUnderlined:{btnContainer:{},fontSize:{fontSize:"sm",lineHeight:1.4,textTransform:"uppercase"},skin:{display:"block",padding:{base:"1rem",md:"1.5rem 1rem"},borderBottom:"{borders.md} solid transparent",fontWeight:700,position:"relative",color:"black",webkitBackgroundClip:"text",backgroundClip:"text",backgroundImage:"linear-gradient(to right, {colors.secondary}, {colors.primary})",_before:{content:"''",position:"absolute",bottom:0,left:0,width:"100%",height:"0.2rem",bg:{base:"linear-gradient(270deg, var(--cim_primary_color) 50%, var(--cim_secondary_color) 100%)",_inverse:"black"}}},hasHover:{_hover:{color:{base:"transparent",_inverse:"black"},padding:{base:"1rem 2rem",md:"1.5rem 3rem"}}}},btnReadMore:{fontSize:{fontSize:"sm",lineHeight:1.4},skin:{display:"inline-flex",alignItems:"center","& > span":{boxShadow:"inset 0 0 0 0 {colors.black}",paddingY:"0.5rem",transition:"{easings.global}"},"& svg *":{fill:"primary"}},hasHover:{color:"inherit",_hover:{transform:"translateX(1rem)","& > span":{boxShadow:"inset 0 -0.1rem 0 0 {colors.black}"}}}}},bgColor:{white:{skin:{bgColor:"white",color:"black",borderColor:"black","& svg *":{fill:"black"},"&.content_txt":{bgColor:"transparent !important",color:"{colors.white}",boxShadow:"inset 0 -0.2rem 0 0 {colors.white}","& svg *":{fill:"{colors.white}"}}},hasHover:{_hover:{color:"white",bgColor:"primary",borderColor:"primary","& svg *":{fill:"white"},"&.content_txt":{boxShadow:"inset 0 -2em 0 0 {colors.white}",color:"{colors.black}","& svg *":{fill:"{colors.black} !important"}}}}},black:{skin:{bgColor:"black",color:"white",borderColor:"white","& svg *":{fill:"white"},"&.content_txt":{bgColor:"transparent !important",color:"{colors.black}",boxShadow:"inset 0 -0.2rem 0 0 {colors.black}","& svg *":{fill:"{colors.black}"}}},hasHover:{_hover:{color:"black",bgColor:"white",borderColor:"black","& svg *":{fill:"{colors.black}"},"&.content_txt":{boxShadow:"inset 0 -2em 0 0 {colors.black}",color:"{colors.white}","& svg *":{fill:"{colors.white}"}}}}},primary:{skin:{bgColor:"primary",color:{base:"white",_dark:"primary"},borderColor:"white","& svg *":{fill:{base:"white",_dark:"primary"}},"&.content_txt":{bgColor:"transparent !important",color:"{colors.primary}",boxShadow:"inset 0 -0.2rem 0 0 {colors.primary}","& svg *":{fill:"{colors.primary}"}}},hasHover:{_hover:{bgColor:"white",color:"primary !important",borderColor:"primary","& svg *":{fill:"primary"},"&.content_txt":{boxShadow:"inset 0 -2em 0 0 {colors.primary}",color:"{colors.white} !important","& svg *":{fill:"{colors.white}"}}}}},secondary:{skin:{bgColor:"secondary",color:"black",borderColor:"secondary","& svg *":{fill:"black"},"&.content_txt":{bgColor:"transparent !important",color:"{colors.secondary}",boxShadow:"inset 0 -0.2rem 0 0 {colors.secondary}","& svg *":{fill:"{colors.secondary}"}},_before:{display:"none"}},hasHover:{_hover:{bgColor:"black",color:"secondary",borderColor:"black","& svg *":{fill:"secondary"},"&.content_txt":{boxShadow:"inset 0 -2em 0 0 {colors.secondary}",color:"{colors.black}","& svg *":{fill:"{colors.black}"}}}}},third:{skin:{bgColor:"lightGray",color:"black","& svg *":{fill:"black"},"&.content_txt":{bgColor:"transparent !important",color:"{colors.third}",boxShadow:"inset 0 -0.2rem 0 0 {colors.third}","& svg *":{fill:"{colors.third}"}}},hasHover:{_hover:{bgColor:"primary",color:"white",borderColor:"primary","& svg *":{fill:"white"},"&.content_txt":{boxShadow:"inset 0 -2em 0 0 {colors.third}",color:"{colors.white}","& svg *":{fill:"{colors.white}"}}}}},fourth:{skin:{bgColor:"{colors.fourth}",color:"{colors.white}","& svg *":{fill:"{colors.white}"},"&.content_txt":{bgColor:"transparent !important",color:"{colors.fourth}",boxShadow:"inset 0 -0.2rem 0 0 {colors.fourth}","& svg *":{fill:"{colors.fourth}"}}},hasHover:{_hover:{bgColor:"{colors.white}",color:"{colors.fourth}",borderColor:"{colors.fourth}","& svg *":{fill:"{colors.fourth}"},"&.content_txt":{boxShadow:"inset 0 -2em 0 0 {colors.fourth}",color:"{colors.white}","& svg *":{fill:"{colors.white}"}}}}}},pictoColor:{white:{fontSize:{},skin:{"& svg":{bgColor:{base:"white",_inverse:"black"}
16,borderColor:{base:"white",_inverse:"black"},"& *":{fill:{base:"black",_inverse:"white"}}}},hasHover:{_hover:{"& svg":{"& *":{fill:{base:"primary",_inverse:"white"}}}}}},transparentWhite:{fontSize:{},skin:{"& svg":{bgColor:"transparent",borderColor:"transparent","& *":{fill:"black"}}},hasHover:{_hover:{"& svg":{"& *":{fill:"primary"}}}}},black:{fontSize:{},skin:{"& svg":{bg:{base:"linear-gradient(to right, {colors.black}, {colors.black})",_inverse:"yellow"},"& *":{fill:"white"}}},hasHover:{_hover:{"& svg":{bg:{base:"linear-gradient(to bottom, {colors.primary}, {colors.secondary})",_inverse:"none"},"& *":{fill:{base:"white",_inverse:"yellow"}}}}}},transparentBlack:{fontSize:{},skin:{"& svg":{bgColor:{base:"transparent",_inverse:"black"},borderColor:"transparent","& *":{fill:"white"}}},hasHover:{_hover:{"& svg":{bgColor:"white","& *":{fill:"black"}}}}},primary:{fontSize:{},skin:{"& svg":{bgColor:"{colors.primary}","& *":{fill:"{colors.white}"}}},hasHover:{_hover:{"& svg":{bgColor:"{colors.white}",borderColor:"{colors.primary}","& *":{fill:"{colors.primary}"}}}}},transparentPrimary:{fontSize:{},skin:{"& svg":{bgColor:"transparent","& *":{fill:"primary"}}},hasHover:{_hover:{"& svg":{bgColor:"primary","& *":{fill:"white"}}}}},secondary:{fontSize:{},skin:{"& svg":{bgColor:"{colors.secondary}","& *":{fill:"{colors.black}"}}},hasHover:{_hover:{"& svg":{bgColor:"{colors.black}",borderColor:"{colors.secondary}","& *":{fill:"{colors.secondary}"}}}}},third:{fontSize:{},skin:{"& svg":{bgColor:"{colors.third}","& *":{fill:"{colors.white}"}}},hasHover:{_hover:{"& svg":{bgColor:"{colors.white}",borderColor:"{colors.third}","& *":{fill:"{colors.third}"}}}}},fourth:{fontSize:{},skin:{"& svg":{bgColor:"{colors.fourth}","& *":{fill:"{colors.white}"}}},hasHover:{_hover:{"& svg":{bgColor:"{colors.white}",borderColor:"{colors.fourth}","& *":{fill:"{colors.fourth}"}}}}},lightGray:{fontSize:{},skin:{"& svg":{bgColor:"{colors.lightGray}",borderColor:"{colors.black}","& *":{fill:"{colors.black}"}}},hasHover:{_hover:{"& svg":{bgColor:"{colors.black}",borderColor:"{colors.lightGray}","& *":{fill:"{colors.lightGray}"}}}}},gradient:{skin:{"& svg":{bg:{base:"linear-gradient(270deg, var(--cim_primary_color) 49.5%, var(--cim_secondary_color) 100%)",_renforce:"red",_inverse:"yellow"},borderColor:"transparent","& *":{fill:"white"}}},hasHover:{_hover:{"& svg":{}}}}},pictoPlacement:{right:{skin:{"& svg":{marginLeft:"1rem"}}},left:{fontSize:{display:"inline-flex"},skin:{display:"inline-flex",flexDirection:"row-reverse",justifyContent:"start","& svg":{marginRight:"1rem"}}}},size:{xs:{fontSize:{fontSize:"{fontSizes.xs}"},skin:{padding:{base:"0.5rem 1rem",md:"1rem 2rem"}}},sm:{fontSize:{fontSize:"{fontSizes.sm}"},skin:{padding:{base:"1rem 1.5rem",sm:"1.5rem 2rem",md:"1rem 2rem"}}}},pictoSize:{xxs:{skin:{"& svg":{width:"3rem",height:"3rem",padding:"0.5rem"}}},xs:{skin:{"& svg":{width:"3.5rem",height:"3.5rem",padding:"0.5rem"}}},xsm:{skin:{"& svg":{width:"4rem",height:"4rem",padding:{md:0}}}},sm:{skin:{"& svg":{width:{base:"3.5rem",md:"4.5rem"},height:{base:"3.5rem",md:"4.5rem"},padding:{base:"0.5rem",md:"1rem"}}}},md:{skin:{"& svg":{width:{base:"4rem",md:"5rem"},height:{base:"4rem",md:"5rem"},padding:{base:"1rem",md:"1.2rem"}}}},lg:{skin:{"& svg":{width:{base:"4.5rem",md:"5.5rem"},height:{base:"4.5rem",md:"5.5rem"},padding:{base:"1rem",md:"1.5rem"}}}},xl:{skin:{"& svg":{width:{base:"5rem",md:"6rem"},height:{base:"5rem",md:"6rem"},padding:{base:"1rem",md:"1.5rem"}}}}},noRadius:{true:{skin:{borderRadius:0}}}},defaultVariants:{}}),f=xe(()=>n.variante?.classes==="button"?r()?n.variante:{classes:"btnGradient",bgColor:n.variante?.bgColor,pictoPlacement:n.variante?.pictoPlacement,size:n.variante?.size}:n.variante),m=o(f.value);return(y,b)=>(Z(),Se(xr(v(i)?"button":"p"),{type:e.type?e.type:null,class:de([v(m).fontSize,v(i)?[v(m).skin,v(m).hasHover]:null])},{default:be(()=>[v(i)?(Z(),Ce(Ct,{key:1},[Re("span",{class:de(v(Er)({srOnly:e.showSr}))},ht(e.link?.text),3),bt(y.$slots,"icon",{},()=>[(Z(),Se(xr(s()),{"aria-hidden":"true"}))])],64)):(Z(),Se(xr(v(a)?f1:"span"),{key:0,link:v(a)?e.link:null,class:de([v(m).skin,v(a)?v(m).hasHover:null])},{default:be(()=>[Re("span",{class:de(v(Er)({srOnly:e.showSr}))},ht(e.link?.text),3),bt(y.$slots,"icon",{},()=>[(Z(),Se(xr(s()),{"aria-hidden":"true"}))])]),_:3},8,["link","class"]))]),_:3},8,["type","class"]))}}),z5e=(e,t=!1)=>{const n=xe(()=>{switch(e.properties.type){case"video":return e.properties.mimeType.includes("youtube")?Va("MediaYoutube"):e.properties.mimeType.includes("vimeo")?Va("MediaVimeo"):Va("MediaVideo");case"audio":return Va("MediaAudio");default:return Va("MediaImage")}}),r=xe(()=>!!e.properties.link);return{mediaTypeComponent:n,hasLink:r}},N5e=Fe({__name:"MediaImage",props:{file:{},enlargeImageOnClick:{type:Boolean}},setup(e){z5e(e.file);const{$emit:n}=En(),r=(i,a)=>{n("lightbox:open",{index:i,items:a})};return(i,a)=>{const s=Nf,o=f1,f=cr;return Z(),Ce("div",vn(i.$attrs,{class:["t3-ce-media-image",i.$attrs.class,i.$attrs.staticClass,v(me)({position:"relative"})]}),[e.file?.properties?.link&&e.file?.properties?.link!==""&&!e.enlargeImageOnClick?(Z(),Se(o,{key:0,link:{href:e.file?.properties?.linkData?.href,text:e.file?.properties?.linkData?.linkText,target:e.file?.properties?.linkData?.target}
16,title:e.file?.properties?.linkData?.linkText,showSr:!0,class:de(v(me)({_hover:{opacity:.8}}))},{icon:be(()=>[ke(s,{image:e.file,defaultImg:!1},null,8,["image"])]),_:1},8,["link","title","class"])):(Z(),Ce(Ct,{key:1},[ke(s,{image:e.file,defaultImg:!1},null,8,["image"]),e.enlargeImageOnClick?(Z(),Se(f,{key:0,link:{text:i.$t("common.medias.images.popin.btnTitle")},title:i.$t("common.medias.images.popin.btnTitle"),showSr:!0,type:"button",picto:"zoomIn",class:de(v(me)({position:"absolute",top:0,left:0,width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",zIndex:"2",opacity:0,bgColor:{base:"{colors.black}/20",_inverse:"black/90"},"& svg":{width:"5rem",height:"5rem","& *":{fill:"{colors.white}"}},_hover:{opacity:1}})),onClick:a[0]||(a[0]=m=>r(1,[e.file]))},null,8,["link","title","class"])):Ne("",!0)],64))],16)}}}),V5e=e=>{const t=xe(()=>{switch(e.properties.type){case"video":return e.properties.mimeType.includes("youtube")?Va("MediaYoutube"):e.properties.mimeType.includes("vimeo")?Va("MediaVimeo"):Va("MediaVideo");case"audio":return Va("MediaAudio");default:return Va("MediaImage")}}),n=xe(()=>!!e.properties.link);return{mediaTypeComponent:t,hasLink:n}},q5e=Fe({__name:"MediaFile",props:{file:{},enlargeImageOnClick:{type:Boolean}},setup(e){V5e(e.file);const n=r=>{let i;return r==="image"&&(i=N5e),i};return(r,i)=>(Z(),Se(xr(n(e.file.properties?.type)),{file:e.file,enlargeImageOnClick:e.enlargeImageOnClick},null,8,["file","enlargeImageOnClick"]))}}),j5e=e=>({galleryClassList:xe(()=>[`t3-ce-gallery--horizontal-${e.position.horizontal}`,`t3-ce-gallery--vertical-${e.position.vertical}`,{"t3-ce-gallery--no-wrap":e.position.noWrap},{"t3-ce-gallery--border":e.border.enabled}])}),U5e={key:0,class:"t3-ce-gallery__text"},H5e={key:2,class:"t3-ce-gallery__text"},CW=Fe({__name:"T3MediaGallery",props:{gallery:{},enlargeImageOnClick:{type:Boolean},imgOnly:{type:Boolean}},setup(e){const t=e,{galleryClassList:n}=j5e(t.gallery),r=t.gallery?.position?.horizontal==="left",i=t.gallery?.position?.horizontal==="right",a=t.gallery?.position?.horizontal==="center",s=t.gallery?.position?.vertical==="above",o=t.gallery?.position?.vertical==="below";return(f,m)=>{const y=q5e;return e.gallery?(Z(),Ce("div",{key:0,class:de(["t3-ce-gallery",v(n),v(me)({_after:{content:"''",clear:"both",display:"table"}})])},[bt(f.$slots,"before"),o?(Z(),Ce("div",U5e,[bt(f.$slots,"default")])):Ne("",!0),e.gallery?.count?.files?(Z(),Ce("div",{key:1,class:de([v(Tr)({gap:"1rem",alignItems:"initial"}),s?v(me)({marginBottom:e.imgOnly?0:"{spacing.gutter}"}):null,o?v(me)({marginTop:e.imgOnly?0:"{spacing.gutter}"}):null,!s&&!o?v(me)({float:{sm:r?"left":i?"right":"none"},margin:e.imgOnly?0:r?{base:"0 0 1.5rem 0",sm:"0 {spacing.gutter} 1.5rem 0"}:i?{base:"0 0 1.5rem 0",sm:"0 0 1.5rem {spacing.gutter}"}:"0 0 {spacing.gutter} 0"}):null,v(me)({_print:{display:"none"}})])},[(Z(!0),Ce(Ct,null,ln(e.gallery?.rows,(b,T)=>(Z(),Ce("div",{key:`${T}-r`,class:de([v(Qn)({gap:"1rem",alignItems:"initial",justifyContent:r?{sm:"left"}:i?{sm:"right"}:a?{sm:"center"}:"initial"})])},[(Z(!0),Ce(Ct,null,ln(b.columns,(x,$)=>(Z(),Ce("div",{key:`${$}-c`,class:"t3-ce-gallery__col"},[ke(y,{file:x,enlargeImageOnClick:e.enlargeImageOnClick},null,8,["file","enlargeImageOnClick"])]))),128))],2))),128))],2)):Ne("",!0),o?Ne("",!0):(Z(),Ce("div",H5e,[bt(f.$slots,"default")])),bt(f.$slots,"after")],2)):Ne("",!0)}}});const iS={en:/^[0-9A-Z]*$/i,cs:/^[0-9A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]*$/i,da:/^[0-9A-ZÆØÅ]$/i,de:/^[0-9A-ZÄÖÜß]*$/i,es:/^[0-9A-ZÁÉÍÑÓÚÜ]*$/i,fr:/^[0-9A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]*$/i,it:/^[0-9A-Z\xC0-\xFF]*$/i,lt:/^[0-9A-ZĄČĘĖĮŠŲŪŽ]*$/i,hu:/^[0-9A-ZÁÉÍÓÖŐÚÜŰ]*$/i,nl:/^[0-9A-ZÉËÏÓÖÜ]*$/i,pl:/^[0-9A-ZĄĆĘŚŁŃÓŻŹ]*$/i,pt:/^[0-9A-ZÃÁÀÂÇÉÊÍÕÓÔÚÜ]*$/i,ru:/^[0-9А-ЯЁ]*$/i,kz:/^[0-9А-ЯЁ\u04D8\u04B0\u0406\u04A2\u0492\u04AE\u049A\u04E8\u04BA]*$/i,sk:/^[0-9A-ZÁÄČĎÉÍĹĽŇÓŔŠŤÚÝŽ]*$/i,sr:/^[0-9A-ZČĆŽŠĐ]*$/i,sv:/^[0-9A-ZÅÄÖ]*$/i,tr:/^[0-9A-ZÇĞİıÖŞÜ]*$/i,uk:/^[0-9А-ЩЬЮЯЄІЇҐ]*$/i,ar:/^[٠١٢٣٤٥٦٧٨٩0-9ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]*$/,az:/^[0-9A-ZÇƏĞİıÖŞÜ]*$/i,ug:/^[0-9A-Zچۋېرتيۇڭوپھسداەىقكلزشغۈبنمژفگخجۆئ]*$/i},W5e=e=>{if(e)return Array.isArray(e)?e[0]:e.locale};function $I(e,t){return Array.isArray(e)?e[0]:e[t]}function h1(e){return!!(e==null||e===""||Array.isArray(e)&&e.length===0)}const C$=(e,t)=>
16{if(h1(e))return!0;const n=W5e(t);if(Array.isArray(e))return e.every(i=>C$(i,{locale:n}));const r=String(e);return n?(iS[n]||iS.en).test(r):Object.keys(iS).some(i=>iS[i].test(r))};function G5e(e){return Array.isArray(e)?{min:e[0],max:e[1]}:e}const GT=(e,t)=>{if(h1(e))return!0;const{min:n,max:r}=G5e(t);if(Array.isArray(e))return e.every(a=>GT(a,{min:n,max:r}));const i=Number(e);return Number(n)<=i&&Number(r)>=i},OR=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,RR=e=>h1(e)?!0:Array.isArray(e)?e.every(t=>OR.test(String(t))):OR.test(String(e)),Y5e=e=>h1(e)?!0:Array.isArray(e)?e.every(t=>/^-?[0-9]+$/.test(String(t))):/^-?[0-9]+$/.test(String(e)),TW=(e,t)=>{if(h1(e))return!0;const n=$I(t,"length");return Array.isArray(e)?e.every(r=>TW(r,{length:n})):[...String(e)].length<=Number(n)},kW=(e,t)=>{if(h1(e))return!0;const n=$I(t,"length");return Array.isArray(e)?e.every(r=>kW(r,{length:n})):[...String(e)].length>=Number(n)},MI=(e,t)=>{if(h1(e))return!0;let n=$I(t,"regex");return typeof n=="string"&&(n=new RegExp(n)),Array.isArray(e)?e.every(r=>MI(r,{regex:n})):n.test(String(e))};function Z5e(e){return e==null}function K5e(e){return Array.isArray(e)&&e.length===0}const T$=e=>Z5e(e)||K5e(e)||e===!1?!1:!!String(e).trim().length,X5e=["id"],J5e=["id"],Q5e={name:"T3CeTextpic",inheritAttrs:!1},AI=Fe({...Q5e,props:{header:{},headerLayout:{},headerPosition:{},headerLink:{},subheader:{},uid:{},index:{},appearance:{},colPos:{},enlargeImageOnClick:{type:Boolean},bodytext:{},gallery:{}},setup(e){const t=vr();t.siteBuilderInfos;const n=e,{computedbodytext:r}=WT();return r(n.bodytext,n.uid),(i,a)=>{const s=EI,o=d1,f=CW;return Z(),Ce("div",{class:de(["t3-ce-textpic",v(Wa)(),v(Tw)({picto:"url(~/assets/img/svg/contenus_edito/quote.svg)"}),v(Md)(),v(me)({overflow:"hidden",marginTop:"{spacing.gutter}",marginBottom:"{spacing.gutter}",position:"relative"})])},[!e.gallery?.position?.noWrap&&e.header?(Z(),Ce(Ct,{key:0},[Re("div",{id:`c${e.uid}`,class:de(v(Yy)()),tabindex:"0"},null,10,X5e),e.headerLayout!==200?(Z(),Se(s,vn({key:0},n,{headerLayout:e.headerLayout}),null,16,["headerLayout"])):Ne("",!0)],64)):Ne("",!0),ke(f,{gallery:e.gallery,enlargeImageOnClick:e.enlargeImageOnClick,imgOnly:e.bodytext===""},{default:be(()=>[e.gallery?.position?.noWrap&&e.header?(Z(),Ce(Ct,{key:0},[Re("div",{id:`c${e.uid}`,class:de(v(Yy)()),tabindex:"0"},null,10,J5e),ke(s,vn(n,{headerLayout:e.headerLayout}),null,16,["headerLayout"])],64)):Ne("",!0),e.bodytext?(Z(),Se(o,{key:1,content:e.bodytext,uid:e.uid},null,8,["content","uid"])):Ne("",!0)]),_:1},8,["gallery","enlargeImageOnClick","imgOnly"])],2)}}}),YT=Fe({__name:"FieldAccordion",props:{colPos:{},result:{},header:{},config:{},headerLayout:{},uid:{},first_element_opened:{type:Boolean,default:!1},noAnchor:{type:Boolean,default:!1},show_in_summary:{type:Boolean}},setup(e){const{isAmiral:t}=zr();return(n,r)=>{const i=Jye,a=Kye,s=AI,o=Yye,f=Wye,m=jye,y=fi;return Z(),Se(y,{header:e.header,"header-layout":e.headerLayout,uid:e.uid,show_in_summary:e.show_in_summary},{content:be(()=>[ke(m,{type:"single",collapsible:"","default-value":e.first_element_opened?"accordion-item-0":"",class:de(v(Tr)({alignItems:"start",gap:"2rem"}))},{default:be(()=>[(Z(!0),Ce(Ct,null,ln(e.result,(b,T)=>(Z(),Se(f,{key:"key_"+T,value:"accordion-item-"+T,class:de(v(me)({width:"100%"}))},{default:be(()=>[ke(a,{as:e.headerLayout?`h${e.headerLayout+1}`:"h3",class:de(v(me)({marginBottom:0,fontWeight:700}))},{default:be(()=>[ke(i,{class:de([v(Qn)({justifyContent:"space-between",gap:"1.5rem"}),v(me)({fontFamily:"regular",fontSize:{base:"1.6rem !",sm:"1.8rem !"},bgColor:v(t)()?"white":null,bgImage:v(t)()?null:"linear-gradient(to left, {colors.white}, {colors.white})",padding:{base:"1rem 2rem",sm:"1.85rem 2.5rem"},width:"100%",textAlign:"left",borderRadius:"1rem",border:{base:"{borders.md} {colors.lightGray}",_inverse:"{borders.md} {colors.yellow}"},_expanded:{background:v(t)()?"black":"transparent",bgImage:v(t)()?null:"linear-gradient(to left, {colors.primary}, {colors.secondary})",color:"white",borderColor:v(t)()?"black":null,border:v(t)()?null:"none",marginBottom:0,"& [data-accordion-plus]":{rotate:"45deg","& path":{fill:"{colors.white}"}},"& [data-accordion-icon]":{"& span":{bgColor:"white",transition:"{easings.global}"},"& span:first-child":{transform:"translateY(-50%) rotate(0deg)"},"& span:last-child":{transform:"translateY(-50%) rotate(0deg)"}},_hover:{color:"white"},_print:{bgColor:"lightGray",bgImage:"none",color:"black",borderColor:"transparent"}},_hover:{paddingLeft:"4rem",color:"black"},_print:{marginBottom:"1rem","& [data-accordion-icon]":{display:"none"}}})])},{default:be(()=>[Re("span",{class:de(v(me)({flex:"auto"}))},ht(b.title),3),Re("div",{"data-accordion-icon":"",class:de(v(me)({position:"relative",width:"1.5rem",height:"1.5rem",display:"inline-block","& span":{position:"absolute",top:"50%",left:"0",width:"100%",height:"0.2rem",bgColor:"{colors.primary}",transition:"{easings.global}",transformOrigin:"center"},"& span:first-child":{transform:"translateY(-50%) rotate(90deg)"},"& span:last-child":{transform:"translateY(-50%) rotate(0deg)"}}))},[...r[0]||(r[0]=[Re("span",null,null,-1),Re("span",null,null,-1)])],2)]),_:2},1032,["class"])]),_:2}
16,1032,["as","class"]),ke(o,{class:de([v(Tw)({picto:"url(~/assets/img/svg/contenus_edito/quote.svg)"}),v(me)({position:"relative","& [data-img-container]":{float:"none !important"},whiteSpace:"pre-wrap",marginTop:"1.5rem",padding:{base:"1rem 1.5rem",sm:"2rem 5rem 2rem 3rem"},borderLeft:v(t)()?"{borders.md} {colors.black}":null,"& > div":{margin:"0 !important"},"& .table":{width:"100%",border:"none"},"& table":{display:"inline-table"},_print:{"& figure, & img":{display:"none"}}}),v(t)()?null:v(me)({_before:{content:"''",position:"absolute",top:"0",left:"0",height:"100%",width:".2rem",bgImage:"linear-gradient(to bottom, {colors.primary}, {colors.secondary})"}})])},{default:be(()=>[bt(n.$slots,"content",{item:b},()=>[ke(s,{colPos:e.colPos,enlargeImageOnClick:!1,gallery:{position:{horizontal:b.image_position,noWrap:!1,vertical:"intext"},count:{columns:1,files:b.images?.length,rows:1},border:{enabled:!1,padding:0,width:2},rows:{1:{columns:{1:b.images?.[0]}}}},bodytext:b.description},null,8,["colPos","gallery","bodytext"])])]),_:2},1032,["class"])]),_:2},1032,["value","class"]))),128))]),_:3},8,["default-value","class"])]),_:3},8,["header","header-layout","uid","show_in_summary"])}}}),eSe=Fe({__name:"ListItemFaq",props:{result:{default:()=>[]}},setup(e){return(t,n)=>{const r=YT;return Z(),Se(r,{noAnchor:!0,result:[e.result],class:de(v(me)({marginBottom:"0 !important","& [data-bloc-content]":{padding:"0 2rem 2rem 2rem !important"}}))},null,8,["result","class"])}}}),tSe=["title","target","href"],nSe={key:1},EW=Fe({__name:"ListItemTitle",props:{title:{},link:{},listItemLink:{type:Boolean,default:!0},popin:{type:Boolean},options:{}},setup(e){const t=e,{$emit:n}=En(),r=()=>{!t.link||typeof t.link>"u"||typeof t.link?.href>"u"||n("popinDetail:open",{link:t.link,showArrows:!0})},i=me({_before:{content:"''",position:"absolute",top:0,left:0,width:"100%",height:"100%",zIndex:"2"}});return(a,s)=>{const o=f1;return Z(),Se(xr(e.options?.hn||"h3"),{"data-list-item-title":""},{default:be(()=>[e.popin&&e.link?.target!=="_blank"?(Z(),Ce("a",{key:0,title:`${e.title}, ${a.$t("listItem.popin.btnTitle")}`,target:e.link?.target,onClick:ti(r,["prevent"]),"aria-controls":"popin_detail",href:e.link?.href,class:de(v(i))},ht(e.title),11,tSe)):!e.listItemLink||!e.link?.href?(Z(),Ce("span",nSe,ht(e.title),1)):e.link?.href&&e.listItemLink!==!1?(Z(),Se(o,{key:2,link:{href:e.link?.href,target:e.link?.target,text:e.link?.text!==""?e.link?.text:e.title},class:de(v(i))},null,8,["link","class"])):Ne("",!0)]),_:1})}}});function Ad(){const e=vr(),t=kd(),n=De(e.initialData),r=De(e.backendLayout);let i=r.value==="list"||r.value==="interactive_map",a=r.value==="detail";const s=Object.values(t.nonDisplayedFieldsAlways),o=Object.values(t.nonDisplayedFieldsList),f=Object.values(t.nonDisplayedFieldsDetail),m=Object.values(t.commonHeadFields),y=Object.values(t.commonHeadFieldsAndPrincipal),b=Object.values(t.commonZoneContextuelle),T=Object.values(t.commonHeadFieldsAndContextuelle),x=Object.values(t.blocGeolocationFields),$=b.concat(x),A=(Q,ee=null)=>Object.values(n.value?.directories).filter(Y=>Y.system_name===Q)?.[0]??n.value?.directories[ee+".json"]??null,N=Q=>n.value?.directories[Q?.type+".json"]?.fields??n.value?.directories["events.json"].fields,O=Q=>{const ee=N(Q);let Y=[];m.forEach(K=>{ee.filter(ne=>{K===ne.system_name&&ne.auto_display&&Y.push(ne)})}),y.forEach(K=>{ee.filter(ne=>{K===ne.system_name&&ne.auto_display&&Y.push(ne)})}),T.forEach(K=>{ee.filter(ne=>{K===ne.system_name&&ne.auto_display&&Y.push(ne)})});let z=[];T.forEach(K=>{ee.filter(ne=>{K===ne.system_name&&ne.auto_display&&!m.includes(ne.system_name)&&z.push(ne)})}),$.forEach(K=>{ee.filter(ne=>{K===ne.system_name&&ne.auto_display&&!m.includes(ne.system_name)&&z.push(ne)})});const H=ee.filter(K=>!m.includes(K.system_name)&&!$.includes(K.system_name)&&!T.includes(K.system_name)&&!f?.includes(K.system_name)&&!s?.includes(K.system_name)&&K.auto_display);return{headFields:Y,contextualFields:z,principalFields:H}},I=(Q,ee,Y)=>{const z=N(Q);let H=[];return(Q.type==="elus"||Q.type==="elu")&&r.value==="editorial"&&(a=!0),ee?.length>0?ee.forEach(K=>{z.filter(ne=>{(K===ne.system_name||K.system_name===ne.system_name)&&H.push(ne)})}):H=z,i?H=H.filter(K=>!o.includes(K.system_name)&&!s.includes(K.system_name)):a?H=H.filter(K=>!f.includes(K.system_name)&&!s.includes(K.system_name)):H=H.filter(K=>!s.includes(K.system_name)),Y!==!0&&(i?H=H.filter(K=>K.auto_list_display):a&&(H=H.filter(K=>K.auto_display))),{fieldsToShow:ee,directoryBaseConfiguration:z,configListItemFields:H,isList:i,isDetail:a,ignoreAutoDisplay:Y}},U=(Q,ee)=>{const Y=B(ee);if(ee?.type==="date_start_end"){const z=Q?.[xs(`${Y}${ee?.start_suffix}`)],H=Q?.[xs(`${Y}${ee?.end_suffix}`)];return z||H}else{if(ee?.type==="boolean")return Q?.[Y];if(ee?.type==="typolink")return Q?.[Y];if(ee?.system_name==="cim_news_schedule_dates")return Q?.[Y]?.length>1;if(typeof Q=="object")return Q?.[Y]?.length>0;if(typeof Q=="string")return Q?.[Y]!==""}},B=Q=>xs(Q?.system_name??Q);return{itemConfig:N,filteredFieldsToShow:I,filteredConfigPage:O,checkIfResults:U,getFieldName:B,getResultField:(Q,ee)=>{if(typeof Q=="object")return ee?.type==="typolink",Q?.[B(ee)];if(typeof Q=="string")return Q},getConfigByType:A}}const rSe=Fe({__name:"ListItemType",props:{type:{}},setup(e){const t=e,n=Ad().getConfigByType(t.type);return(r,i)=>(Z(),Ce("p",{class:de(v(me)({textTransform:"capitalize"}))},ht(v(n)?.title??r.$t("listItem.type."+e.type)),3))}}),iSe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 26 26"};function aSe(e,t){return Z(),Ce("svg",iSe,[...t[0]||(t[0]=[Re("path",{fill:"#1D1D1B",d:"M13 4.272a5.2 5.2 0 0 1 2.09.435c.661.29 1.26.715 1.76 1.25.5.536.89 1.171 1.149 1.868.259.696.38 1.44.356 2.185 0 2.407-1.843 5.204-5.355 8.157-3.513-2.953-5.355-5.761-5.355-8.157A5.8 5.8 0 0 1 8 7.825a5.6 5.6 0 0 1 1.15-1.867 5.3 5.3 0 0 1 1.76-1.25A5.2 5.2 0 0 1 13 4.271m0-2.229c-1-.005-1.99.199-2.913.6s-1.758.99-2.457 1.733a7.8 7.8 0 0 0-1.613 2.592 8 8 0 0 0-.514 3.042q0 5.214 7.497 10.976 7.503-5.75 7.497-10.976a8 8 0 0 0-.514-3.042 7.8 7.8 0 0 0-1.613-2.592 7.5 7.5 0 0 0-2.457-1.734A7.2 7.2 0 0 0 13 2.043"},null,-1),Re("path",{fill:"#1D1D1B",d:"M13 7.243c-.424 0-.839.13-1.191.376a2.2 2.2 0 0 0-.79 1 2.3 2.3 0 0 0-.121 1.287c.082.433.287.83.586 1.141.3.312.682.524 1.098.61.415.086.846.042 1.237-.126.392-.17.727-.455.962-.821a2.29 2.29 0 0 0-.27-2.811A2.11 2.11 0 0 0 13 7.243M5.5 21.729h15v2.228h-15z"},null,-1)])])}const PW={render:aSe},oSe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 26 26"};function sSe(e,t){return Z(),Ce("svg",oSe,[...t[0]||(t[0]=[Re("path",{fill:"#1D1D1B",d:"M12.563 2.883a9.77 9.77 0 0 0-5.57 1.76 10.34 10.34 0 0 0-3.691 4.678 10.8 10.8 0 0 0-.567 6.018 10.55 10.55 0 0 0 2.747 5.33 9.92 9.92 0 0 0 5.137 2.849 9.7 9.7 0 0 0 5.794-.594 10.12 10.12 0 0 0 4.5-3.837 10.7 10.7 0 0 0 1.69-5.787c.001-1.369-.258-2.724-.763-3.99a10.5 10.5 0 0 0-2.176-3.38 10 10 0 0 0-3.259-2.258 9.7 9.7 0 0 0-3.842-.789m.01 18.75a7.8 7.8 0 0 1-4.458-1.404 8.27 8.27 0 0 1-2.955-3.74 8.63 8.63 
160 0 1-.457-4.814A8.44 8.44 0 0 1 6.9 7.408a7.94 7.94 0 0 1 4.109-2.28 7.75 7.75 0 0 1 4.636.474 8.1 8.1 0 0 1 3.601 3.069 8.56 8.56 0 0 1 1.353 4.63 8.6 8.6 0 0 1-.61 3.189 8.4 8.4 0 0 1-1.74 2.703A8 8 0 0 1 15.644 21a7.8 7.8 0 0 1-3.07.633"},null,-1),Re("path",{fill:"#1D1D1B",d:"M13.074 8.092H11.57v6.25l5.266 3.281.752-1.281-4.51-2.781z"},null,-1)])])}const $W={render:sSe},lSe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 27 27"};function uSe(e,t){return Z(),Ce("svg",lSe,[...t[0]||(t[0]=[Re("path",{fill:"#1D1D1B",d:"M21.967 3.25h-16c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2v-12c0-1.1-.9-2-2-2m0 14H7.137l-1.17 1.17V5.25h16zm-13-7h2v2h-2zm8 0h2v2h-2zm-4 0h2v2h-2z"},null,-1)])])}const MW={render:uSe},cSe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 27 27"};function dSe(e,t){return Z(),Ce("svg",cSe,[...t[0]||(t[0]=[Re("path",{fill:"#E03138","fill-rule":"evenodd",d:"M16 8.917a2.813 2.813 0 1 0 0 5.625 2.813 2.813 0 0 0 0-5.625m-4.063 2.812a4.063 4.063 0 1 1 8.125 0 4.063 4.063 0 0 1-8.126 0M9.28 21.834a4.79 4.79 0 0 1 4.792-4.792h3.853a4.79 4.79 0 0 1 4.792 4.792v.208a2.29 2.29 0 0 1-2.292 2.291h-8.853a2.29 2.29 0 0 1-2.292-2.291zm4.792-3.542a3.54 3.54 0 0 0-3.542 3.542v.208c0 .575.467 1.041 1.042 1.041h8.853c.576 0 1.042-.466 1.042-1.041v-.208a3.54 3.54 0 0 0-3.542-3.542z","clip-rule":"evenodd"},null,-1),Re("path",{fill:"#E03138","fill-rule":"evenodd",d:"M16 9.083a2.646 2.646 0 1 0 0 5.292 2.646 2.646 0 0 0 0-5.292m-4.23 2.646a4.23 4.23 0 1 1 8.459 0 4.23 4.23 0 0 1-8.459 0M9.115 21.834a4.96 4.96 0 0 1 4.958-4.959h3.853a4.96 4.96 0 0 1 4.959 4.959v.208c0 1.357-1.1 2.458-2.459 2.458h-8.853a2.46 2.46 0 0 1-2.458-2.458zm4.958-3.375a3.375 3.375 0 0 0-3.375 3.375v.208c0 .483.392.875.875.875h8.853a.875.875 0 0 0 .875-.875v-.208a3.375 3.375 0 0 0-3.375-3.375zm-.886-6.73a2.813 2.813 0 1 1 5.625 0 2.813 2.813 0 0 1-5.625 0m2.812-4.062a4.063 4.063 0 1 0 0 8.125 4.063 4.063 0 0 0 0-8.125m-1.926 9.375a4.79 4.79 0 0 0-4.792 4.792v.208a2.29 2.29 0 0 0 2.292 2.291h8.853a2.29 2.29 0 0 0 2.292-2.291v-.208a4.79 4.79 0 0 0-4.792-4.792zm-3.542 4.792a3.54 3.54 0 0 1 3.542-3.542h3.853a3.54 3.54 0 0 1 3.542 3.542v.208c0 .575-.466 1.041-1.042 
161.041h-8.853a1.04 1.04 0 0 1-1.042-1.041z","clip-rule":"evenodd"},null,-1)])])}const AW={render:dSe},fSe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 26 26"};function hSe(e,t){return Z(),Ce("svg",fSe,[...t[0]||(t[0]=[Re("path",{fill:"#1D1D1B",d:"M7.571 5.957c.058.914.21 1.819.452 2.7L6.82 9.907a16 16 0 0 1-.762-3.948H7.57m9.89 12.515c.851.25 1.725.406 2.608.468v1.552a15 15 0 0 1-3.812-.78zm-8.927-14.6h-3.51c-.266 0-.521.11-.71.306-.187.195-.293.46-.294.736a18.3 18.3 0 0 0 1.298 6.776 17.8 17.8 0 0 0 3.696 5.745 17 17 0 0 0 5.533 3.839 16.5 16.5 0 0 0 6.525 1.348c.266-.001.52-.111.709-.306.188-.196.294-.46.295-.737v-3.634c-.001-.277-.107-.541-.295-.736a.99.99 0 0 0-.709-.306c-1.216 0-2.425-.2-3.581-.594a.8.8 0 0 0-.311-.052c-.266 0-.522.107-.713.3L14.26 18.85c-2.843-1.51-5.156-3.912-6.61-6.865l2.208-2.288c.133-.136.226-.308.27-.495a1.1 1.1 0 0 0-.02-.568c-.38-1.2-.573-2.456-.571-3.72a1.07 1.07 0 0 0-.295-.734.99.99 0 0 0-.708-.306"},null,-1)])])}const IW={render:hSe},pSe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"};function mSe(e,t){return Z(),Ce("svg",pSe,[...t[0]||(t[0]=[Re("path",{fill:"#161616",d:"M7.99 1.33C4.31 1.33 1.33 4.32 1.33 8S4.32 14.66 8 14.66s6.66-2.99 6.66-6.67S11.68 1.33 8 1.32h-.01zm4.62 4h-1.97c-.21-.83-.52-1.62-.92-2.37a5.37 5.37 0 0 1 2.89 2.37M8 2.69c.56.81.99 1.7 1.27 2.64H6.72c.28-.94.71-1.83 1.27-2.64zM2.84 9.33c-.23-.87-.23-1.79 0-2.67h2.25a10 10 0 0 0 0 2.66H2.84zm.55 1.34h1.97c.21.83.52 1.62.92 2.37a5.37 5.37 0 0 1-2.89-2.37m1.96-5.34H3.38a5.3 5.3 0 0 1 2.89-2.37c-.4.75-.71 1.55-.92 2.37M8 13.31c-.56-.81-.99-1.7-1.27-2.64h2.55c-.28.94-.71 1.83-1.27 2.64zm1.56-3.98H6.44c-.07-.44-.1-.89-.11-1.33 0-.45.04-.89.11-1.33h3.12c.07.44.1.89.11 1.33 0 .45-.04.89-.11 1.33m.17 3.71c.4-.75.71-1.55.92-2.37h1.97a5.37 5.37 0 0 1-2.89 2.37m1.18-3.71c.06-.44.09-.89.09-1.33 0-.45-.04-.89-.09-1.33h2.25c.23.87.23 1.79 0 2.67h-2.25z"},null,-1)])])}const DW={render:mSe},gS
vendor: 83,032 bytes, line 16
16e={version:4,country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},countries:{AC:["247","00","(?:[01589]\\d|[2-467])\\d{4}",[5,6]],AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],"0"],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0"],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([457]\\d{6})$|1","268$1",0,"268"],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2457]\\d{6})$|1","264$1",0,"264"],AL:["355","00","(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",[6,7,8,9],[["(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],"0"],AM:["374","00","(?:[1-489]\\d|55|60|77)\\d{6}",[8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],["(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],"0"],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]]],AR:["54","00","(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1"],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"([267]\\d{6})$|1","684$1",0,"684"],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:48|5[0-3579]|[6-9])|7(?:20|32|8)|[89]","(?:31|4)6|51|6(?:485|5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0"],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",[5,6,7,8,9,10,12],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"(183[12])|0",0,0,0,[["(?:(?:241|349)0\\d\\d|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4])|[34]\\d\\d)|91(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79]))))\\d{3}|(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8])|8(?:55|6[0-8]|[78]\\d|9[02-9]))\\d{6}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,["163\\d{2,6}",[5,6,7,8,9]],["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]]],AX:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",[5,6,7,8,9,10,11,12],0,"0",0,0,0,0,"18",0,"00"],AZ:["994","00","365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365[45]|46","1[28]|2|365(?:4|5[02])|46"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],"0"],BA:["387","00","6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],"0"],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","246$1",0,"246"],BD:["880","00","[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],["(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],["(\\d{4})(\\d{3,6})","$1-$2",["[13-9]|2[23]"],"0$1"],["(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],"0"],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0"],BF:["226","00","[024-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[024-7]"]]]],BG:["359","00","00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9,12],[["(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],"0"],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[02-4679]"]]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]]],BJ:["229","00","(?:01\\d|8)\\d{7}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["0"]]]],BL:["590","00","7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["(?:59(?:0(?:2[7-9]|3[3-7]|5[12]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"],0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","441$1",0,"441"],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]]],BO:["591","00(?:1\\d)?","(?:[2-7]\\d\\d|8001)\\d{5}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[23]|4[46]|50"]],["(\\d{8})","$1",["[5-7]"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"]]],"0",0,"0(1\\d)?"],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]"],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","[1-467]\\d{9,10}|55[0-46-9]\\d{8}|[34]\\d{7}|55\\d{7,8}|(?:5[0-46-9]|[89]\\d)\\d{7,9}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37|86)","300|4(?:0(?:0|20)|370|864)"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2"],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([3-8]\\d{6})$|1","242$1",0,"242"],BT:["975","00","[178]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-6]|7[246]|8[2-4]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|[78]"]]]],BW:["267","00","(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",[7,8,10],[["(\\d{2})(\\d{5})","$1 $2",["90"]],["(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-9]"]],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37]"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["8"]]]],BY:["375","810","(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],["(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],["(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],"8",0,"0|80?",0,0,0,0,"8~10"],BZ:["501","00","(?:0800\\d|[2-8])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],["(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]]],CA:["1","011","[2-9]\\d{9}|3\\d{6}",[7,10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|5[07]|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|9(?:0[25]|42))[2-9]\\d{6}",[10]],["",[10]],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",[10]],["900[2-9]\\d{6}",[10]],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:2[125-9]|3[23]|44|66|77|88)|6(?:22|33))[2-9]\\d{6}",[10]],0,["310\\d{4}",[7]],0,["600[2-9]\\d{6}",[10]]]],CC:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CD:["243","00","(?:(?:[189]|5\\d)\\d|2)\\d{7}|[1-68]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1"],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["5"],"0$1"]],"0"],CF:["236","00","8776\\d{4}|(?:[27]\\d|61)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-8]"]]]],CG:["242","00","222\\d{6}|(?:0\\d|80)\\d{7}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]]],CH:["41","00","8\\d{11}|[2-9]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],"0"],CI:["225","00","[02]\\d{9}",[10],[["(\\d{2})(\\d{2})(\\d)(\\d{5})","$1 $2 $3 $4",["2"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3 $4",["0"]]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]]],CL:["56","(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0","12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",[9,10,11],[["(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["60|809"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-36]"],"($1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9(?:10|[2-9])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-8]|[1-9])"],"($1)"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]]],CM:["237","00","[26]\\d{8}|88\\d{6,7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]|88"]]]],CN:["86","00|1(?:[12]\\d|79)\\d\\d00","(?:(?:1[03-689]|2\\d)\\d\\d|6)\\d{8}|1\\d{10}|[126]\\d{6}(?:\\d(?:\\d{2})?)?|86\\d{5,6}|(?:[3-579]\\d|8[0-57-9])\\d{5,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]|3(?:[157]|35|49|9[1-68])|4(?:1[124-9]|2[179]|6[47-9]|7|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:07|1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3|4[13]|5[1-5]|7[0-79]|9[0-35-9])|(?:4[35]|59|85)[1-9]","(?:10|2[0-57-9])(?:1[02]|9[56])|8078|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))1","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|80781|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))12","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|807812|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:078|1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123"],"0$1"],["(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1",1],["(\\d{3})(\\d{7,8})","$1 $2",["9"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",1]],"0",0,"(1(?:[12]\\d|79)\\d\\d)|0",0,0,0,0,"00"],CO:["57","00(?:4(?:[14]4|56)|[579])","(?:46|60\\d\\d)\\d{6}|(?:1\\d|[39])\\d{9}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["46"]],["(\\d{3})(\\d{7})","$1 $2",["6|90"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["3[0-357]|9[14]"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0([3579]|4(?:[14]4|56))?"],CR:["506","00","(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",[8,10],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"]]],0,0,"(19(?:0[0-2468]|1[09]|20|66|77|99))"],CU:["53","119","(?:[2-7]|8\\d\\d)\\d{7}|[2-47]\\d{6}|[34]\\d{5}",[6,7,8,10],[["(\\d{2})(\\d{4,6})","$1 $2",["2[1-4]|[34]"],"(0$1)"],["(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["[56]"],"0$1"],["(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],"0"],CV:["238","0","(?:[2-59]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]]],CW:["599","00","(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[3467]"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],0,0,0,0,0,"[69]"],CX:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CY:["357","00","(?:[279]\\d|[58]0)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]]],CZ:["420","00","(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",[9,10,11,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["96"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]]],DE:["49","00","[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}",[4,5,6,7,8,9,10,11,12,13,14,15],[["(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],["(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],["(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],["(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],["(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],["(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],["(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],["(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["15[03568]","15(?:[0568]|3[13])"],"0$1"],["(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],["(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\d{3})(\\d{2})(\\d{8})","$1 $2 $3",["15"],"0$1"]],"0"],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]]],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","767$1",0,"767"],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8001|8[024]9"],DZ:["213","00","(?:[1-4]|[5-79]\\d|80)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],"0"],EC:["593","00","1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",[8,9,10,11],[["(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)",0,"$1-$2-$3"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],"0"],EE:["372","00","8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],["(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],EG:["20","00","[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",[8,9,10],[["(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],["(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{8})","$1 $2",["1"],"0$1"]],"0"],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,0,[["528[89]\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[016-8]\\d|2[0-8]|3[01]|5[0-5]))\\d{6}"],["80[0-7]\\d{6}"],["89\\d{7}"],0,0,0,0,["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"]]],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0"],ES:["34","00","(?:400|[5-9]\\d\\d)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[4-9]"]]]],ET:["251","00","(?:11|[2-57-9]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-57-9]"],"0$1"]],"0"],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d{5})","$1",["20[2-59]"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["(?:[1-3]0|[68])0|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[14]|2[09]|50|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"],["(\\d)(\\d{4,9})","$1 $2",["(?:19|[2568])[1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",0,"00"],FJ:["679","0(?:0|52)","45\\d{5}|(?:0800\\d|[235-9])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],0,0,0,0,0,0,0,"00"],FK:["500","00","[2-7]\\d{4}",[5]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))"],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0"],GA:["241","00","(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",[7,8],[["(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"]],0,0,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})","$1"],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,"0|180020",0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-5])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|5[01]))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-3]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]],0," x"],GD:["1","011","(?:473|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","473$1",0,"473"],GE:["995","00","(?:[3-57]\\d\\d|800)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],"0"],GF:["594","00","(?:694\\d|7093)\\d{5}|(?:59|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]|80[6-9]|9[47]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[89]"],"0$1"]],"0"],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"([25-9]\\d{5})$|0|180020","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]]],GH:["233","00","[235]\\d{8}|800\\d{5,6}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2358]"],"0$1"]],"0"],GI:["350","00","(?:[25]\\d|60)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]]],GL:["299","00","(?:19|[2-689]\\d|70)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]]],GM:["220","00","[48]\\d{8}|[2-9]\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|4(?:[0-35]|4[16-9])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[48]"]]]],GN:["224","00","722\\d{6}|(?:3|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]]],GP:["590","00","7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]|80[6-9]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["(?:59(?:0(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)|87\\d)|80[6-9]\\d\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"],0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]]],GR:["30","00","5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",[10,11,12],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],["(\\d{3})(\\d{3,4})(\\d{5})","$1 $2 $3",["8"]]]],GT:["502","00","80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-8]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","671$1",0,"671"],GW:["245","00","[49]\\d{8}|4\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["40"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]]],GY:["592","001","(?:[2-8]\\d{3}|9008)\\d{3}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,0,"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]]],HR:["385","00","[2-69]\\d{8}|80\\d{5,7}|[1-79]\\d{7}|6\\d{6}",[7,8,9],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["6[01]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6|7[245]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-57]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0"],HT:["509","00","[2-589]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-589]"]]]],HU:["36","00","[235-7]\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],"06"],ID:["62","00[89]","00[1-9]\\d{9,14}|(?:[1-36]|8\\d{5})\\d{6}|00\\d{9}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13,14,15,16,17],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],["(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],["(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],["(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],["(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],["(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],"0"],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0"],IL:["972","0(?:0|1(?:05|[2-9]))","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0"],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([25-8]\\d{5})$|0|180020","1624$1",0,"74576|(?:16|7[56])24"],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-6]|80[2-46]","11|2[02]|33|4[04]|79[1-6]|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9]))|80(?:[2-4]|6[0-589])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31)|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:3171|5[15][2-6]|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|8(?:16|2[014]|3[126]|6[136]|7[78]|83)(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",1],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|3[129]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7(?:[23569]|8[0-57-9])|8[1-6])|7(?:1(?:[013-8]|9[6-9])|3(?:17|2[0-49]|9[2-57])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|8(?:28[235-7]|3))|73179|807(?:1|9[1-3])|(?:1552|6(?:(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578])\\d|7(?:[23569]\\d|8[0-57-9])|8(?:[14-6]\\d|2[0-79]))|7(?:1(?:[013-8]\\d|9[6-9])|3(?:2[0-49]|9[2-57])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",1],["(\\d{5})(\\d{5})","$1 $2",["16|[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["18[06]","18[06]0"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0"],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0"],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,0,"00"],IT:["39","00","0\\d{5,11}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?",[6,7,8,9,10,11,12],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[378]|43"]],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],["(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[03]"]]],0,0,0,0,0,0,[["0(?:669[0-79]\\d{1,6}|831\\d{2,8})|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[2356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}"],["3[2-9]\\d{7,8}|(?:31|43)\\d{8}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],["3[2-8]\\d{9,10}",[11,12]],0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([0-24-8]\\d{5})$|0|180020","1534$1",0,0,[["1534[0-24-8]\\d{5}"],["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97\\d))\\d{5}"],["80(?:07(?:35|81)|8901)\\d{4}"],["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"],["701511\\d{4}"],0,["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"],["56\\d{8}"]]],JM:["1","011","(?:[58]\\d\\d|658|900)\\d{7}",[10],0,"1",0,0,0,0,"658|876"],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|427|53)\\d{6}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[47]"],"0$1"]],"0"],JP:["81","010","00[1-9]\\d{6,14}|[25-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",[8,9,10,11,12,13,14,15,16,17],[["(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],["(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["3|4(?:2[09]|7[01])|6[1-9]","3|4(?:2(?:0|9[02-69])|7(?:0[019]|1))|6[1-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],["(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[25-9]"],"0$1"]],"0",0,"(000[2569]\\d{4,6})$|(?:(?:003768)0?)|0","$1"],KE:["254","000","(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",[7,8,9,10],[["(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0"],KG:["996","00","8\\d{9}|[235-9]\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],["(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],"0"],KH:["855","00[14-9]","1\\d{9}|[1-9]\\d{7,8}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0"],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","869$1",0,"869"],KP:["850","00|99","85\\d{6}|(?:19\\d|[2-7])\\d{7}",[8,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],"0"],KR:["82","00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",[5,6,8,9,10,11,12,13,14],[["(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1"],["(\\d{4})(\\d{4})","$1-$2",["1"]],["(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[36]0|8"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1"]],"0",0,"0(8(?:[1-46-8]|5\\d\\d))?"],KW:["965","00","18\\d{5}|(?:[2569]\\d|41)\\d{6}",[7,8],[["(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],["(\\d{3})(\\d{5})","$1 $2",["[245]"]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","345$1",0,"345"],KZ:["7","810","8\\d{13}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"7",0,"8~10"],LA:["856","00","[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["3"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],"0"],LB:["961","00","[27-9]\\d{7}|[13-9]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-6]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],"0"],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"([2-8]\\d{6})$|1","758$1",0,"758"],LI:["423","00","[68]\\d{8}|(?:[2378]\\d|90)\\d{5}",[7,9],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2379]|8(?:0[09]|7)","[2379]|8(?:0(?:02|9)|7)"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],"0",0,"(1001)|0"],LK:["94","00","[1-9]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],"0"],LR:["231","00","(?:[2457]\\d|33|88)\\d{7}|(?:2\\d|[4-6])\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["4[67]|[56]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-578]"],"0$1"]],"0"],LS:["266","00","(?:[256]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2568]"]]]],LT:["370","00","(?:[3469]\\d|52|[78]0)\\d{6}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(0-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"0 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(0-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(0-$1)",1]],"0",0,"[08]"],LU:["352","00","35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["20"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["20"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|78|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2679]|8[01]"]]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0"],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{4})(\\d{5})","$1-$2",["892"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8(?:0[0-7]|9)"],"0$1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[5-8]"],"0$1"]],"0",0,0,0,0,"[5-8]"],MC:["377","00","(?:[3489]|[67]\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[67]"],"0$1"]],"0"],MD:["373","00","(?:[235-7]\\d|[89]0)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],"0"],ME:["382","00","(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],"0"],MF:["590","00","7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["(?:59(?:0(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"],0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],MG:["261","00","[23]\\d{8}",[9],[["(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,"([24-9]\\d{6})$|0","20$1"],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1"],MK:["389","00","[2-578]\\d{7}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2|34[47]|4(?:[37]7|5[47]|64)"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],"0"],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]]],MM:["95","00","1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",[6,7,8,9,10],[["(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["4(?:[2-46]|5[3-5])|5|6(?:[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-5]|(?:60|86)[23]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|452|678|86","[12]|452|6788|86"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],["(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],["(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],"0"],MN:["976","001","[12]\\d{7,9}|[5-9]\\d{7}",[8,9,10],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["11|2[16]"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[5-9]"]],["(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],"0"],MO:["853","00","0800\\d{3}|(?:28|[68]\\d)\\d{6}",[7,8],[["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{4})(\\d{4})","$1 $2",["[268]"]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","670$1",0,"670"],MQ:["596","00","7091\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]|8(?:0[6-9]|[36])"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],MR:["222","00","(?:[2-4]\\d\\d|800)\\d{5}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"([34]\\d{6})$|1","664$1",0,"664"],MT:["356","00","3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]]],MU:["230","0(?:0|[24-7]0|3[03])","(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],["(\\d{4})(\\d{4})","$1 $2",["[57]"]],["(\\d{5})(\\d{5})","$1 $2",["8"]]],0,0,0,0,0,0,0,"020"],MV:["960","0(?:0|19)","(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",[7,10],[["(\\d{3})(\\d{4})","$1-$2",["[34679]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,0,"00"],MW:["265","00","(?:[1289]\\d|31|77)\\d{7}|1\\d{6}",[7,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-37-9]"],"0$1"]],"0"],MX:["52","0[09]","[2-9]\\d{9}",[10],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"]]],0,0,0,0,0,0,0,"00"],MY:["60","00","1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9]|53)|8","1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1(?:[367]|80)"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],"0"],MZ:["258","00","(?:2|8\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],NA:["264","00","[68]\\d{7,8}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],NC:["687","00","(?:050|[2-57-9]\\d\\d)\\d{3}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[02-57-9]"]]]],NE:["227","00","[027-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]|7[0467]"]]]],NF:["672","00","[13]\\d{5}",[6],[["(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],["(\\d)(\\d{5})","$1 $2",["[13]"]]],0,0,"([0-258]\\d{4})$","3$1"],NG:["234","009","(?:20|9\\d)\\d{8}|[78]\\d{9,13}",[10,11,12,13,14],[["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["20[129]"],"0$1"],["(\\d{4})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],["(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],"0"],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]]],NL:["31","00","(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}",[5,6,7,8,9,10,11],[["(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],["(\\d)(\\d{8})","$1 $2",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-578]|91"],"0$1"],["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3",["9"],"0$1"]],"0"],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]"]]],0,0,0,0,0,"[02-689]|7[0-8]"],NP:["977","00","(?:1\\d|9)\\d{9}|[1-9]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],["(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"],"0$1"],["(\\d{3})(\\d{7})","$1-$2",["9"]]],"0"],NR:["674","00","(?:222|444|(?:55|8\\d)\\d|666|777|999)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[24-9]"]]]],NU:["683","00","(?:[4-7]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]]],NZ:["64","0(?:0|161)","[1289]\\d{9}|50\\d{5}(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["8[1-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|8|90","50(?:[0367]|88)|8|90"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[589]"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7"],"0$1"]],"0",0,0,0,0,0,0,"00"],OM:["968","00","(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",[7,8,9],[["(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],["(\\d{2})(\\d{6})","$1 $2",["2"]],["(\\d{4})(\\d{4})","$1 $2",["[179]"]]]],PA:["507","00","(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}",[7,8,10,11],[["(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],["(\\d{4})(\\d{4})","$1-$2",["[68]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]]],PE:["51","00|19(?:1[124]|77|90)00","(?:[14-8]|9\\d)\\d{7}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,0,"00"," Anexo "],PF:["689","00","4\\d{5}(?:\\d{2})?|8\\d{7,8}",[6,8,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4|8[7-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],PG:["675","00|140[1-3]","(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85[02-46-9]"]],["(\\d{4})(\\d{4})","$1 $2",["[78]"]]],0,0,0,0,0,0,0,"00"],PH:["63","00","(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",[6,8,9,10,11,12,13],[["(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],["(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],"0"],PK:["92","00","122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,7})","$1 $2 $3",["[89]0"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["1"]],["(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],["(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],["(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],["(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],"0"],PL:["48","00","(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}",[6,7,8,9,10],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|20|64"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["30|(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","30|(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]]],PM:["508","00","[78]\\d{8}|[2-9]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939"],PS:["970","00","[2489]2\\d{6}|(?:1\\d|5)\\d{8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],PT:["351","00","1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],PY:["595","00","[36-8]\\d{5,8}|4\\d{6,8}|59\\d{6}|9\\d{5,10}|(?:2\\d|5[0-8])\\d{6,7}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["3[289]|4[246-8]|61|7[1-3]|8[1-36]"],"(0$1)"],["(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],["(\\d{3})(\\d{6})","$1 $2",["9(?:[5-79]|8[1-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],"0"],QA:["974","00","800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}",[7,8,9,11],[["(\\d{3})(\\d{4})","$1 $2",["2[136]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[3-7]"]]]],RE:["262","00","709\\d{6}|(?:26|[689]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-9]"],"0$1"]],"0",0,0,0,0,0,[["2631[0-6]\\d{4}|26(?:2\\d|30|88)\\d{5}"],["(?:69(?:2\\d\\d|3(?:[06][0-6]|1[0-3]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))|7092[0-3])\\d{4}"],["80\\d{7}"],["89[1-37-9]\\d{6}"],0,0,0,0,["9(?:399[0-3]|479[0-6]|76(?:2[278]|3[0-37]))\\d{4}"],["8(?:1[019]|2[0156]|84|90)\\d{6}"]]],RO:["40","00","(?:[236-8]\\d|90)\\d{7}|[23]\\d{5}",[6,9],[["(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],["(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[236-9]"],"0$1"]],"0",0,0,0,0,0,0,0," int "],RS:["381","00","38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",[6,7,8,9,10,11,12],[["(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],["(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],"0"],RU:["7","810","8\\d{13}|[347-9]\\d{9}",[10,14],[["(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",1],["(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",1],["(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],"8",0,0,0,0,"[3489]",0,"8~10"],RW:["250","00","(?:06|[27]\\d\\d|[89]00)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"]],"0"],SA:["966","00","(?:[15]\\d|800|92)\\d{7}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["9"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],"0"],SB:["677","0[01]","[6-9]\\d{6}|[1-6]\\d{4}",[5,7],[["(\\d{2})(\\d{5})","$1 $2",["6[89]|7|8[4-9]|9(?:[1-8]|9[0-8])"]]]],SC:["248","010|0[0-2]","(?:[2489]\\d|64)\\d{5}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],0,0,0,0,0,0,0,"00"],SD:["249","00","[19]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],"0"],SE:["46","00","(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",[6,7,8,9,10,12],[["(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44|9)"],"0$1",0,"$1 $2"],["(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3"],["(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1",0,"$1 $2 $3"],["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3 $4"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1",0,"$1 $2 $3 $4"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1",0,"$1 $2 $3 $4 $5"]],"0"],SG:["65","0[0-3]\\d","(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-9]|[1-9])"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],["(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]"],SI:["386","00|10(?:22|66|88|99)","[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",[5,6,7,8],[["(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[013]|51|6"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],"0",0,0,0,0,0,0,"00"],SJ:["47","00","0\\d{4}|(?:[489]\\d|79)\\d{6}",[5,8],0,0,0,0,0,0,"79"],SK:["421","00","[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",[6,7,9],[["(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[3-5]"],"0$1"]],"0"],SL:["232","00","(?:[237-9]\\d|66)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0"],SM:["378","00","(?:0549|[5-7]\\d)\\d{6}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(\\d{4})(\\d{6})","$1 $2",["0"]]],0,0,"([89]\\d{5})$","0549$1"],SN:["221","00","(?:[378]\\d|93)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]]],SO:["252","00","[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",[6,7,8,9],[["(\\d{2})(\\d{4})","$1 $2",["8[125]"]],["(\\d{6})","$1",["[134]"]],["(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],["(\\d{2})(\\d{5,7})","$1 $2",["1|28|9[2-9]"]],["(\\d)(\\d{7})","$1 $2",["[267]|904"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[346-9]"]]],"0"],SR:["597","00","(?:[2-5]|[6-9]\\d)\\d{5}",[6,7],[["(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],["(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],["(\\d{3})(\\d{4})","$1-$2",["[6-9]"]]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0"],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]]],SV:["503","00","[25-7]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?",[7,8,11],[["(\\d{3})(\\d{4})","$1 $2",["[89]"]],["(\\d{4})(\\d{4})","$1 $2",["[25-7]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"(5\\d{6})$|1","721$1",0,"721"],SY:["963","00","[1-359]\\d{8}|[1-5]\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-4]|5[1-3]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[59]"],"0$1",1]],"0"],SZ:["268","00","0800\\d{4}|(?:[237]\\d|900)\\d{6}",[8,9],[["(\\d{4})(\\d{4})","$1 $2",["[0237]"]],["(\\d{5})(\\d{4})","$1 $2",["9"]]]],TA:["290","00","8\\d{3}",[4],0,0,0,0,0,0,"8"],TC:["1","011","(?:[58]\\d\\d|649|900)\\d{7}",[10],0,"1",0,"([2-479]\\d{6})$|1","649$1",0,"649"],TD:["235","00|16","(?:22|[3689]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[236-9]"]]],0,0,0,0,0,0,0,"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]]],TH:["66","00[1-9]","(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",[8,9,10,13],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],TJ:["992","810","(?:[0-57-9]\\d|66)\\d{7}",[9],[["(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["44[02-479]|[34]7"]],["(\\d{4})(\\d)(\\d{4})","$1 $2 $3",["3(?:[1245]|3[12])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["\\d"]]],0,0,0,0,0,0,0,"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7]],TL:["670","00","7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],["(\\d{4})(\\d{4})","$1 $2",["7"]]]],TM:["993","810","[1-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-5]"],"(8 $1)"],["(\\d{2})(\\d{6})","$1 $2",["[67]"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]]],TO:["676","00","(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",[5,7],[["(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[5-9]"]]]],TR:["90","00","4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",[7,10,12,13],[["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",1],["(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",1]],"0"],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-46-8]\\d{6})$|1","868$1",0,"868"],TV:["688","00","(?:2|7\\d\\d|90)\\d{4}",[5,6,7],[["(\\d{2})(\\d{3})","$1 $2",["2"]],["(\\d{2})(\\d{4})","$1 $2",["90"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],TW:["886","0(?:0[25-79]|19)","[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",[7,8,9,10,11],[["(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["826"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["83"],"0$1"],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["82"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[25]0|37|49|8[09]"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-478])|7[1-9]","[23568]|4(?:0[2-48]|[1-478])|(?:400|7)[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,0,0,"#"],TZ:["255","00[056]","(?:[25-8]\\d|41|90)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["5"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],"0"],UA:["380","00","[89]\\d{9}|[3-9]\\d{8}",[9,10],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])","3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|89|9[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,0,"0~0"],UG:["256","00[057]","800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",[9],[["(\\d{4})(\\d{5})","$1 $2",["202","2024","20240"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["20[0-35-7]|4(?:6[45]|[7-9])|[7-9]","20(?:[0135-7]|2[5-9])|4(?:6[45]|[7-9])|[7-9]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[2-4]"],"0$1"]],"0"],US:["1","011","[2-9]\\d{9}|3\\d{6}",[10],[["(\\d{3})(\\d{4})","$1-$2",["310"],0,1],["(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[["(?:472[2-47-9]|983[2-57-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[02469]|8[13])|3(?:0[1-57-9]|1[02-9]|2[013-79]|3[0-24679]|4[167]|5[0-3]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-269])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-2478]|4[0378]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[0168]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-3589]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}"]]],UY:["598","0(?:0|1[3-9]\\d)","0004\\d{2,9}|[1249]\\d{7}|2\\d{3,4}|(?:[49]\\d|80)\\d{5}",[4,5,6,7,8,9,10,11,12,13],[["(\\d{4,5})","$1",["21"]],["(\\d{3})(\\d{3,4})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[49]0|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[124]"]],["(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3 $4",["0"]]],"0",0,0,0,0,0,0,"00"," int. "],UZ:["998","00","(?:20|33|[5-9]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-9]"]]]],VA:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11,12],0,0,0,0,0,0,"06698"],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","784$1",0,"784"],VE:["58","00","[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",[10],[["(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1"]],"0"],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-578]\\d{6})$|1","284$1",0,"284"],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","340$1",0,"340"],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{6,7}|7\\d{6}",[7,8,9,10],[["(\\d{4})(\\d{4,6})","$1 $2",["1(?:2[02]|[89])"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[26]|6"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[357-9]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0"],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]]],WF:["681","00","(?:40|72|8\\d{4})\\d{4}|[89]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[47-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],WS:["685","0","(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",[5,6,7,10],[["(\\d{5})","$1",["[2-5]|6[1-9]"]],["(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],XK:["383","00","2\\d{7,8}|3\\d{7,11}|(?:4\\d\\d|[89]00)\\d{5}",[8,9,10,11,12],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2|39"],"0$1"],["(\\d{2})(\\d{7,10})","$1 $2",["3"],"0$1"]],"0"],YE:["967","00","(?:1|7\\d)\\d{7}|[1-7]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7(?:[24-6]|8[0-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0"],YT:["262","00","(?:639\\d|7093)\\d{5}|(?:26|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["26(?:89\\d|9(?:0[0-467]|15|5[0-4]|6\\d|[78]0))\\d{4}"],["(?:639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])|7093[5-7])\\d{4}"],["80\\d{7}"],0,0,0,0,0,["9(?:(?:39|47)8[01]|769\\d)\\d{4}"]]],ZA:["27","00","[1-79]\\d{8}|8\\d{4,9}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],ZM:["260","00","800\\d{6}|(?:21|[579]\\d|63)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[579]"],"0$1"]],"0"],ZW:["263","00","(?:13|8\\d{4})\\d{5}|[235-8]\\d{8}|[2-689]\\d{6}",[7,9,10],[["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|29|58)|67[0-46-9]|(?:55|68)[0-69]"],"0$1"],["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|[27]|48)|37|675|(?:55|68)[78]"],"0$1"],["(\\d)(\\d{3})(\\d{2,4})","$1 $2 $3",["[49]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["548"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[256]|39|8[13-59]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["3"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"]],"0"]},nonGeographic:{800:["800",0,"(?:00|[1-9]\\d)\\d{6}",[8],[["(\\d{4})(\\d{4})","$1 $2",["\\d"]]],0,0,0,0,0,0,[0,0,["(?:00|[1-9]\\d)\\d{6}"]]],808:["808",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,["[1-9]\\d{7}"]]],870:["870",0,"7\\d{11}|[235-7]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-7]"]]],0,0,0,0,0,0,[0,["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"],0,0,0,0,0,0,["2\\d{8}",[9]]]],878:["878",0,"10\\d{10}",[12],[["(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["10\\d{10}"]]],881:["881",0,"6\\d{9}|[0-36-9]\\d{8}",[9,10],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-37-9]"]],["(\\d)(\\d{3})(\\d{5,6})","$1 $2 $3",["6"]]],0,0,0,0,0,0,[0,["6\\d{9}|[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{6})","$1 $2",["49"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["1[36]|9"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["16"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|23|3(?:[15]|4[57])|4|5[12]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-35]"]]],0,0,0,0,0,0,[0,["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|5(?:0\\d{3}|2[0-2]))\\d{7}",[7,8,9,10,12]],0,0,0,["348[57]\\d{7}",[11]],0,0,["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]],883:["883",0,"(?:[1-4]\\d|51)\\d{6,10}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,8})","$1 $2 $3",["[14]|2[24-689]|3[02-689]|51[24-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["21"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[235]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]],888:["888",0,"\\d{11}",[11],[["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],0,0,0,0,0,0,[0,0,0,0,0,0,["\\d{11}"]]],979:["979",0,"[1359]\\d{8}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],0,0,0,0,0,0,[0,0,0,["[1359]\\d{8}"]]]}};function 
vendor: 8,536 bytes, line 16
16ySe(e,t){var n=Array.prototype.slice.call(t);return n.push(gSe),e.apply(this,n)}function BR(e,t){e=e.split("-"),t=t.split("-");for(var n=e[0].split("."),r=t[0].split("."),i=0;i<3;i++){var a=Number(n[i]),s=Number(r[i]);if(a>s)return 1;if(s>a)return-1;if(!isNaN(a)&&isNaN(s))return 1;if(isNaN(a)&&!isNaN(s))return-1}return e[1]&&t[1]?e[1]>t[1]?1:e[1]<t[1]?-1:0:!e[1]&&t[1]?1:e[1]&&!t[1]?-1:0}var vSe={}.constructor;function s_(e){return e!=null&&e.constructor===vSe}var _Se=/^\d+$/;function bSe(e){return _Se.test(e)}function E_(e){"@babel/helpers - typeof";return E_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},E_(e)}function ZT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xSe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,wSe(r.key),r)}}function KT(e,t,n){return t&&xSe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function wSe(e){var t=SSe(e,"string");return E_(t)=="symbol"?t:t+""}function SSe(e,t){if(E_(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(E_(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var CSe="1.2.0",TSe="1.7.35",FR=" ext. ",js=(function(){function e(t){ZT(this,e),LW(t),this.metadata=t,RW.call(this,t)}return KT(e,[{key:"getCountries",value:function(){return Object.keys(this.metadata.countries).filter(function(n){return n!=="001"})}},{key:"getCountryMetadata",value:function(n){return this.metadata.countries[n]}},{key:"nonGeographic",value:function(){if(!(this.v1||this.v2||this.v3))return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:"hasCountry",value:function(n){return this.getCountryMetadata(n)!==void 0}},{key:"hasCallingCode",value:function(n){if(this.getCountryCodesForCallingCode(n))return!0;if(this.nonGeographic()){if(this.nonGeographic()[n])return!0}else{var r=this.countryCallingCodes()[n];if(r&&r.length===1&&r[0]==="001")return!0}}},{key:"isNonGeographicCallingCode",value:function(n){return this.nonGeographic()?!!this.nonGeographic()[n]:!this.getCountryCodesForCallingCode(n)}},{key:"country",value:function(n){return this.selectNumberingPlan(n)}},{key:"selectNumberingPlan",value:function(n,r){var i,a;if(n&&(bSe(n)?a=n:i=n),r&&(a=r),i&&i!=="001"){var s=this.getCountryMetadata(i);if(!s)throw new Error("Unknown country: ".concat(i));this.numberingPlan=new zR(s,this)}else if(a){if(!this.hasCallingCode(a))throw new Error("Unknown calling code: ".concat(a));this.numberingPlan=new zR(this.getNumberingPlanMetadata(a),this)}else this.numberingPlan=void 0;return this}},{key:"getCountryCodesForCallingCode",value:function(n){var r=this.countryCallingCodes()[n];if(r)return r.length===1&&r[0].length===3?void 0:r}},{key:"getCountryCodeForCallingCode",value:function(n){var r=this.getCountryCodesForCallingCode(n);if(r)return r[0]}},{key:"getNumberingPlanMetadata",value:function(n){var r=this.getCountryCodeForCallingCode(n);if(r)return this.getCountryMetadata(r);if(this.nonGeographic()){var i=this.nonGeographic()[n];if(i)return i}else{var a=this.countryCallingCodes()[n];if(a&&a.length===1&&a[0]==="001")return this.metadata.countries["001"]}}},{key:"countryCallingCode",value:function(){return this.numberingPlan.callingCode()}},{key:"IDDPrefix",value:function(){return this.numberingPlan.IDDPrefix()}},{key:"defaultIDDPrefix",value:function(){return this.numberingPlan.defaultIDDPrefix()}},{key:"nationalNumberPattern",value:function(){return this.numberingPlan.nationalNumberPattern()}},{key:"possibleLengths",value:function(){return this.numberingPlan.possibleLengths()}},{key:"formats",value:function(){return this.numberingPlan.formats()}},{key:"nationalPrefixForParsing",value:function(){return this.numberingPlan.nationalPrefixForParsing()}},{key:"nationalPrefixTransformRule",value:function(){return this.numberingPlan.nationalPrefixTransformRule()}},{key:"leadingDigits",value:function(){return this.numberingPlan.leadingDigits()}},{key:"hasTypes",value:function(){return this.numberingPlan.hasTypes()}},{key:"type",value:function(n){return this.numberingPlan.type(n)}},{key:"ext",value:function(){return this.numberingPlan.ext()}},{key:"countryCallingCodes",value:function(){return this.v1?this.metadata.country_phone_code_to_countries:this.metadata.country_calling_codes}},{key:"chooseCountryByCountryCallingCode",value:function(n){return this.selectNumberingPlan(n)}},{key:"hasSelectedNumberingPlan",value:function(){return this.numberingPlan!==void 0}}])})(),zR=(function(){function e(t,n){ZT(this,e),this.globalMetadataObject=n,this.metadata=t,RW.call(this,n.metadata)}return KT(e,[{key:"callingCode",value:function(){return this.metadata[0]}},{key:"_getDefaultCountryMetadataForThisCallingCode",value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{key:"getDefaultCountryMetadataForRegion",value:function(){return this._getDefaultCountryMetadataForThisCallingCode()}},{key:"IDDPrefix",value:function(){if(!(this.v1||this.v2))return this.metadata[1]}},{key:"defaultIDDPrefix",value:function(){if(!(this.v1||this.v2))return this.metadata[12]}},{key:"nationalNumberPattern",value:function(){return this.v1||this.v2?this.metadata[1]:this.metadata[2]}},{key:"possibleLengths",value:function(){if(!this.v1)return this.metadata[this.v2?2:3]}},{key:"_getFormats",value:function(n){return n[this.v1?2:this.v2?3:4]}},{key:"formats",value:function(){var n=this,r=this._getFormats(this.metadata)||this._getFormats(this._getDefaultCountryMetadataForThisCallingCode())||[];return r.map(function(i){return new kSe(i,n)})}},{key:"nationalPrefix",value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:"_getNationalPrefixFormattingRule",value:function(n){return n[this.v1?4:this.v2?5:6]}},{key:"nationalPrefixFormattingRule",value:function(){return this._getNationalPrefixFormattingRule(this.metadata)||this._getNationalPrefixFormattingRule(this._getDefaultCountryMetadataForThisCallingCode())}},{key:"_nationalPrefixForParsing",value:function(){return this.metadata[this.v1?5:this.v2?6:7]}},{key:"nationalPrefixForParsing",value:function(){return this._nationalPrefixForParsing()||this.nationalPrefix()}},{key:"nationalPrefixTransformRule",value:function(){return this.metadata[this.v1?6:this.v2?7:8]}},{key:"_getNationalPrefixIsOptionalWhenFormatting",value:function(){return!!this.metadata[this.v1?7:this.v2?8:9]}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata)||this._getNationalPrefixIsOptionalWhenFormatting(this._getDefaultCountryMetadataForThisCallingCode())}},{key:"leadingDigits",value:function(){return this.metadata[this.v1?8:this.v2?9:10]}},{key:"types",value:function(){return this.metadata[this.v1?9:this.v2?10:11]}},{key:"hasTypes",value:function(){return this.types()&&this.types().length===0?!1:!!this.types()}},{key:"type",value:function(n){if(this.hasTypes()&&NR(this.types(),n))return new PSe(NR(this.types(),n),this)}},{key:"ext",value:function(){return this.v1||this.v2?FR:this.metadata[13]||FR}}])})(),kSe=(function(){function e(t,n){ZT(this,e),this._format=t,this.metadata=n}return KT(e,[{key:"pattern",value:function(){return this._format[0]}},{key:"format",value:function(){return this._format[1]}},{key:"leadingDigitsPatterns",value:function(){return this._format[2]||[]}},{key:"nationalPrefixFormattingRule",value:function(){return this._format[3]||this.metadata.nationalPrefixFormattingRule()}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return!!this._format[4]||this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"nationalPrefixIsMandatoryWhenFormattingInNationalFormat",value:function(){return this.usesNationalPrefix()&&!this.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"usesNationalPrefix",value:function(){return!!(this.nationalPrefixFormattingRule()&&!ESe.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}])})(),ESe=/^\(?\$1\)?$/,PSe=(function(){function e(t,n){ZT(this,e),this.type=t,this.metadata=n}return KT(e,[{key:"pattern",value:function(){return this.metadata.v1?this.type:this.t
16ype[0]}},{key:"possibleLengths",value:function(){if(!this.metadata.v1)return this.type[1]||this.metadata.possibleLengths()}}])})();function NR(e,t){switch(t){case"FIXED_LINE":return e[0];case"MOBILE":return e[1];case"TOLL_FREE":return e[2];case"PREMIUM_RATE":return e[3];case"PERSONAL_NUMBER":return e[4];case"VOICEMAIL":return e[5];case"UAN":return e[6];case"PAGER":return e[7];case"VOIP":return e[8];case"SHARED_COST":return e[9]}}function LW(e){if(!e)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!s_(e)||!s_(e.countries))throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(s_(e)?"an object of shape: { "+Object.keys(e).join(", ")+" }":"a "+$Se(e)+": "+e,"."))}var $Se=function(t){return E_(t)};function OW(e,t){var n=new js(t);if(n.hasCountry(e))return n.selectNumberingPlan(e).countryCallingCode();throw new Error("Unknown country: ".concat(e))}function MSe(e,t){return t.countries.hasOwnProperty(e)}function RW(e){var t=e.version;typeof t=="number"?(this.v1=t===1,this.v2=t===2,this.v3=t===3,this.v4=t===4):t?BR(t,CSe)===-1?this.v2=!0:BR(t,TSe)===-1?this.v3=!0:this.v4=!0:this.v1=!0}function II(e,t,n){return ASe(e,void 0,t,n)}function ASe(e,t,n,r){n&&(r=new js(r.metadata),r.selectNumberingPlan(n));var i=r.type(t),a=i&&i.possibleLengths()||r.possibleLengths();if(!a)return"IS_POSSIBLE";var s=e.length,o=a[0];return o===s?"IS_POSSIBLE":o>s?"TOO_SHORT":a[a.length-1]<s?"TOO_LONG":a.indexOf(s,1)>=0?"IS_POSSIBLE":"INVALID_LENGTH"}function ISe(e,t,n){t===void 0&&(t={});var r=new js(n);if(t.v2){if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");r.selectNumberingPlan(e.country||e.countryCallingCode)}else{if(!e.phone)return!1;if(e.country){if(!r.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));r.selectNumberingPlan(e.country)}else{if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");r.selectNumberingPlan(e.countryCallingCode)}}if(r.possibleLengths())return BW(e.phone||e.nationalNumber,r);if(e.countryCallingCode&&r.isNonGeographicCallingCode(e.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}function BW(e,t){return II(e,void 0,t)==="IS_POSSIBLE"}function Sp(e,t){return e=e||"",new RegExp("^(?:"+t+")$").test(e)}function DSe(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=LSe(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
17In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function LSe(e,t){if(e){if(typeof e=="string")return VR(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?VR(e,t):void 0}}function VR(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var OSe=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function DI(e,t,n){if(t=t||{},!(!e.country&&!e.countryCallingCode)){var r=new js(n);r.selectNumberingPlan(e.country||e.countryCallingCode);var i=t.v2?e.nationalNumber:e.phone;if(Sp(i,r.nationalNumberPattern())){if(t8(i,"FIXED_LINE",r))return r.type("MOBILE")&&r.type("MOBILE").pattern()===""||!r.type("MOBILE")||t8(i,"MOBILE",r)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE";for(var a=DSe(OSe),s;!(s=a()).done;){var o=s.value;if(t8(i,o,r))return o}}}}function t8(e,t,n){var r=n.type(t);return!r||!r.pattern()||r.possibleLengths()&&r.possibleLengths().indexOf(e.length)<0?!1:Sp(e,r.pattern())}function RSe(e,t,n){t=t||{};var r=new js(n);if(r.selectNumberingPlan(e.country||e.countryCallingCode),r.hasTypes())return DI(e,t,r.metadata)!==void 0;var i=t.v2?e.nationalNumber:e.phone;return Sp(i,r.nationalNumberPattern())}
17var BSe=/^[A-Z]{2}$/;function FSe(e){return BSe.test(e)}function zSe(e,t){var n,r,i=new js(t);return FSe(e)?(n=e,i.selectNumberingPlan(n),r=i.countryCallingCode()):r=e,{country:n,callingCode:r}}function NSe(e,t,n){var r=new js(n),i=r.getCountryCodesForCallingCode(e);return i?i.filter(function(a){return VSe(t,a,n)}):[]}function VSe(e,t,n){var r=new js(n);return r.selectNumberingPlan(t),r.numberingPlan.possibleLengths().indexOf(e.length)>=0}var LI=2,qSe=17,jSe=3,Pd="0-90-9٠-٩۰-۹",USe="-‐-―−ー-",HSe="//",WSe="..",GSe="  ­​⁠ ",YSe="()()[]\\[\\]",ZSe="~⁓∼~",q4="".concat(USe).concat(HSe).concat(WSe).concat(GSe).concat(YSe).concat(ZSe),OI="++",KSe=new RegExp("(["+Pd+"])");function XSe(e,t,n,r){if(t){var i=new js(r);i.selectNumberingPlan(t||n);var a=new RegExp(i.IDDPrefix());if(e.search(a)===0){e=e.slice(e.match(a)[0].length);var s=e.match(KSe);if(!(s&&s[1]!=null&&s[1].length>0&&s[1]==="0"))return e}}}function JSe(e,t){if(e&&t.numberingPlan.nationalPrefixForParsing()){var n=new RegExp("^(?:"+t.numberingPlan.nationalPrefixForParsing()+")"),r=n.exec(e);if(r){var i,a,s=r.length-1,o=s>0&&r[s];if(t.nationalPrefixTransformRule()&&o)i=e.replace(n,t.nationalPrefixTransformRule()),s>1&&(a=r[1]);else{var f=r[0];i=e.slice(f.length),o&&(a=r[1])}var m;if(o){var y=e.indexOf(r[1]),b=e.slice(0,y);b===t.numberingPlan.nationalPrefix()&&(m=t.numberingPlan.nationalPrefix())}else m=r[0];return{nationalNumber:i,nationalPrefix:m,carrierCode:a}}}return{nationalNumber:e}}function QSe(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=e4e(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
18In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function e4e(e,t){if(e){if(typeof e=="string")return qR(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qR(e,t):void 0}}function qR(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function t4e(e,t,n){for(var r=new js(n),i=QSe(t),a;!(a=i()).done;){var s=a.value;if(r.selectNumberingPlan(s),r.leadingDigits()){if(e&&e.search(r.leadingDigits())===0)return s}else if(DI({phone:e,country:s},void 0,r.metadata))return s}}function FW(e,t){var n=t.nationalNumber,r=t.metadata,i=r.getCountryCodesForCallingCode(e);if(i)return i.length===1?i[0]:t4e(n,i,r.metadata)}function k$(e,t,n){var r=JSe(e,n),i=r.carrierCode,a=r.nationalNumber;if(a!==e){if(!n4e(e,a,n))return{nationalNumber:e};if(n.numberingPlan.possibleLengths()&&(t||(t=FW(n.numberingPlan.callingCode(),{nationalNumber:a,metadata:n})),!r4e(a,t,n)))return{nationalNumber:e}}return{nationalNumber:a,carrierCode:i}}function n4e(e,t,n){return!(Sp(e,n.nationalNumberPattern())&&!Sp(t,n.nationalNumberPattern()))}function r4e(e,t,n){switch(II(e,t,n)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}function i4e(e,t,n,r,i){if(!(n||r))return{number:e};var a=n?OW(n,i):r;if(e.indexOf(a)===0){var s=new js(i);s.selectNumberingPlan(n||r);var o=e.slice(a.length),f=k$(o,void 0,s),m=f.nationalNumber,y=k$(e,void 0,s),b=y.nationalNumber;if(!Sp(b,s.nationalNumberPattern())&&Sp(m,s.nationalNumberPattern())||II(b,void 0,s)==="TOO_LONG")return{countryCallingCode:a,number:o}}return{number:e}}function zW(e,t,n,r,i){if(!e)return{};var a;if(e[0]!=="+"){var s=XSe(e,n,r,i);if(s&&s!==e)a=!0,e="+"+s;else{if(n||r){var o=i4e(e,t,n,r,i),f=o.countryCallingCode,m=o.number;if(f)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:f,number:m}}return{number:e}}}if(e[1]==="0")return{};for(var y=new js(i),b=2;b-1<=jSe&&b<=e.length;){var T=e.slice(1,b);if(y.hasCallingCode(T))return y.selectNumberingPlan(T),{countryCallingCodeSource:a?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:T,number:e.slice(b)};b++}return{}}function a4e(e){return e.replace(new RegExp("[".concat(q4,"]+"),"g")," ").trim()}var o4e=/(\$\d)/;function s4e(e,t,n){var r=n.useInternationalFormat,i=n.withNationalPrefix,a=e.replace(new RegExp(t.pattern()),r?t.internationalFormat():i&&t.nationalPrefixFormattingRule()?t.format().replace(o4e,t.nationalPrefixFormattingRule()):t.format());return r?a4e(a):a}var l4e=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function u4e(e,t,n){var r=new js(n);if(r.selectNumberingPlan(e||t),r.defaultIDDPrefix())return r.defaultIDDPrefix();if(l4e.test(r.IDDPrefix()))return r.IDDPrefix()}var c4e=";ext=",Av=function(t){return"([".concat(Pd,"]{1,").concat(t,"})")};function NW(e){var t="20",n="15",r="9",i="6",a="[  \\t,]*",s="[:\\..]?[  \\t,-]*",o="#?",f="(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)",m="(?:[xx##~~]|int|int)",y="[- ]+",b="[  \\t]*",T="(?:,{2}|;)",x=c4e+Av(t),$=a+f+s+Av(t)+o,A=a+m+s+Av(r)+o,N=y+Av(i)+"#",O=b+T+s+Av(n)+o,I=b+"
18(?:,)+"+s+Av(r)+o;return x+"|"+$+"|"+A+"|"+N+"|"+O+"|"+I}var d4e="["+Pd+"]{"+LI+"}",f4e="["+OI+"]{0,1}(?:["+q4+"]*["+Pd+"]){3,}["+q4+Pd+"]*",h4e=new RegExp("^["+OI+"]{0,1}(?:["+q4+"]*["+Pd+"]){1,2}$","i"),p4e=f4e+"(?:"+NW()+")?",m4e=new RegExp("^"+d4e+"$|^"+p4e+"$","i");function g4e(e){return e.length>=LI&&m4e.test(e)}function y4e(e){return h4e.test(e)}function v4e(e){var t=e.number,n=e.ext;if(!t)return"";if(t[0]!=="+")throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(t).concat(n?";ext="+n:"")}var jR={formatExtension:function(t,n,r){return"".concat(t).concat(r.ext()).concat(n)}};function _4e(e,t,n,r){n?n=w4e({},jR,n):n=jR;var i=new js(r);if(e.country&&e.country!=="001"){if(!i.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));i.selectNumberingPlan(e.country)}else if(e.countryCallingCode)i.selectNumberingPlan(e.countryCallingCode);else return e.phone||"";var a=i.countryCallingCode(),s=n.v2?e.nationalNumber:e.phone,o;switch(t){case"NATIONAL":return s?(o=j4(s,e.carrierCode,"NATIONAL",i,n),n8(o,e.ext,i,n.formatExtension)):"";case"INTERNATIONAL":return s?(o=j4(s,null,"INTERNATIONAL",i,n),o="+".concat(a," ").concat(o),n8(o,e.ext,i,n.formatExtension)):"+".concat(a);case"E.164":return"+".concat(a).concat(s);case"RFC3966":return v4e({number:"+".concat(a).concat(s),ext:e.ext});case"IDD":if(!n.fromCountry)return;var f=x4e(s,e.carrierCode,a,n.fromCountry,i);return f?n8(f,e.ext,i,n.formatExtension):void 0;default:throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(t,'"'))}}function j4(e,t,n,r,i){var a=b4e(r.formats(),e);return a?s4e(e,a,{useInternationalFormat:n==="INTERNATIONAL",withNationalPrefix:!(a.nationalPrefixIsOptionalWhenFormattingInNationalFormat()&&i&&i.nationalPrefix===!1)}):e}function b4e(e,t){return S4e(e,function(n){if(n.leadingDigitsPatterns().length>0){var r=n.leadingDigitsPatterns()[n.leadingDigitsPatterns().length-1];if(t.search(r)!==0)return!1}return Sp(t,n.pattern())})}function n8(e,t,n,r){return t?r(e,t,n):e}function x4e(e,t,n,r,i){var a=OW(r,i.metadata);if(a===n){var s=j4(e,t,"NATIONAL",i);return n==="1"?n+" "+s:s}var o=u4e(r,void 0,i.metadata);if(o)return"".concat(o," ").concat(n," ").concat(j4(e,null,"INTERNATIONAL",i))}function w4e(){for(var e=1,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(;e<n.length;){if(n[e])for(var i in n[e])n[0][i]=n[e][i];e++}return n[0]}function S4e(e,t){for(var n=0;n<e.length;){if(t(e[n]))return e[n];n++}}function Wx(e){"@babel/helpers - typeof";return Wx=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wx(e)}function UR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function HR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?UR(Object(n),!0).forEach(function(r){C4e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function C4e(e,t,n){return(t=VW(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function T4e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function k4e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,VW(r.key),r)}}function E4e(e,t,n){return t&&k4e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function VW(e){var t=P4e(e,"string");return Wx(t)=="symbol"?t:t+""}function P4e(e,t){if(Wx(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Wx(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var $4e=(function(){function e(t,n,r){if(T4e(this,e),!t)throw new TypeError("First argument is required");if(typeof t!="string")throw new TypeError("First argument must be a string");
vendor: 11,384 bytes, lines 18-19
18if(t[0]==="+"&&!n)throw new TypeError("`metadata` argument not passed");if(s_(n)&&s_(n.countries)){r=n;var i=t;if(!M4e.test(i))throw new Error('Invalid `number` argument passed: must consist of a "+" followed by digits');var a=zW(i,void 0,void 0,void 0,r),s=a.countryCallingCode,o=a.number;if(n=o,t=s,!n)throw new Error("Invalid `number` argument passed: too short")}if(!n)throw new TypeError("`nationalNumber` argument is required");if(typeof n!="string")throw new TypeError("`nationalNumber` argument must be a string");LW(r);var f=zSe(t,r),m=f.country,y=f.callingCode;this.country=m,this.countryCallingCode=y,this.nationalNumber=n,this.number="+"+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return r}}return E4e(e,[{key:"setExt",value:function(n){this.ext=n}},{key:"getPossibleCountries",value:function(){return this.country?[this.country]:NSe(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:"isPossible",value:function(){return ISe(this,{v2:!0},this.getMetadata())}},{key:"isValid",value:function(){return RSe(this,{v2:!0},this.getMetadata())}},{key:"isNonGeographic",value:function(){var n=new js(this.getMetadata());return n.isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(n){return this.number===n.number&&this.ext===n.ext}},{key:"getType",value:function(){return DI(this,{v2:!0},this.getMetadata())}},{key:"format",value:function(n,r){return _4e(this,n,r?HR(HR({},r),{},{v2:!0}):{v2:!0},this.getMetadata())}},{key:"formatNational",value:function(n){return this.format("NATIONAL",n)}},{key:"formatInternational",value:function(n){return this.format("INTERNATIONAL",n)}},{key:"getURI",value:function(n){return this.format("RFC3966",n)}}])})(),M4e=/^\+\d+$/;function E$(e){"@babel/helpers - typeof";return E$=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},E$(e)}function A4e(e,t,n){return Object.defineProperty(e,"prototype",{writable:!1}),e}function I4e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function D4e(e,t,n){return t=Yx(t),L4e(e,RI()?Reflect.construct(t,n||[],Yx(e).constructor):t.apply(e,n))}function L4e(e,t){if(t&&(E$(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return O4e(e)}function O4e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function R4e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Gx(e,t)}function P$(e){var t=typeof Map=="function"?new Map:void 0;return P$=function(r){if(r===null||!F4e(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,i)}function i(){return B4e(r,arguments,Yx(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Gx(i,r)},P$(e)}function B4e(e,t,n){if(RI())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&Gx(i,n.prototype),i}function RI(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(RI=function(){return!!e})()}function F4e(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function Gx(e,t){return Gx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Gx(e,t)}function Yx(e){return Yx=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Yx(e)}var Yh=(function(e){function t(n){var r;return I4e(this,t),r=D4e(this,t,[n]),Object.setPrototypeOf(r,t.prototype),r.name=r.constructor.name,r}return R4e(t,e),A4e(t)})(P$(Error)),WR=new RegExp("(?:"+NW()+")$","i");function z4e(e){var t=e.search(WR);if(t<0)return{};for(var n=e.slice(0,t),r=e.match(WR),i=1;i<r.length;){if(r[i])return{number:n,ext:r[i]};i++}}var N4e={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","0":"0","1":"1","2":"2","3":"3","4":"4","5":"5","6":"6","7":"7","8":"8","9":"9","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9"};function V4e(e){return N4e[e]}function q4e(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=j4e(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
19In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function j4e(e,t){if(e){if(typeof e=="string")return GR(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?GR(e,t):void 0}}function GR(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function YR(e){for(var t="",n=q4e(e.split("")),r;!(r=n()).done;){var i=r.value;t+=U4e(i,t)||""}return t}function U4e(e,t,n){return e==="+"?t?void 0:"+":V4e(e)}var qW="+",H4e="[\\-\\.\\(\\)]?",ZR="(["+Pd+"]|"+H4e+")",W4e="^\\"+qW+ZR+"*["+Pd+"]"+ZR+"*$",G4e=new RegExp(W4e,"g"),$$=Pd,Y4e="["+$$+"]+((\\-)*["+$$+"])*",Z4e="a-zA-Z",K4e="["+Z4e+"]+((\\-)*["+$$+"])*",X4e="^("+Y4e+"\\.)*"+K4e+"\\.?$",J4e=new RegExp(X4e,"g"),KR="tel:",M$=";phone-context=",Q4e=";isub=";function eCe(e){var t=e.indexOf(M$);if(t<0)return null;var n=t+M$.length;if(n>=e.length)return"";var r=e.indexOf(";",n);return r>=0?e.substring(n,r):e.substring(n)}function tCe(e){return e===null?!0:e.length===0?!1:G4e.test(e)||J4e.test(e)}function nCe(e,t){var n=t.extractFormattedPhoneNumber,r=eCe(e);if(!tCe(r))throw new Yh("NOT_A_NUMBER");var i;if(r===null)i=n(e)||"";else{i="",r.charAt(0)===qW&&(i+=r);var a=e.indexOf(KR),s;a>=0?s=a+KR.length:s=0;var o=e.indexOf(M$);i+=e.substring(s,o)}var f=i.indexOf(Q4e);if(f>0&&(i=i.substring(0,f)),i!=="")return i}var rCe=250,iCe=new RegExp("["+OI+Pd+"]"),aCe=new RegExp("[^"+Pd+"#]+$");function oCe(e,t,n){t=t||{};var r=new js(n);if(t.defaultCountry&&!r.hasCountry(t.defaultCountry))throw t.v2?new Yh("INVALID_COUNTRY"):new Error("Unknown country: ".concat(t.defaultCountry));var i=lCe(e,t.v2,t.extract),a=i.number,s=i.ext,o=i.error;if(!a){if(t.v2)throw o==="TOO_SHORT"?new Yh("TOO_SHORT"):new Yh("NOT_A_NUMBER");return{}}var f=cCe(a,t.defaultCountry,t.defaultCallingCode,r),m=f.country,y=f.nationalNumber,b=f.countryCallingCode,T=f.countryCallingCodeSource,x=f.carrierCode;if(!r.hasSelectedNumberingPlan()){if(t.v2)throw new Yh("INVALID_COUNTRY");return{}}if(!y||y.length<LI){if(t.v2)throw new Yh("TOO_SHORT");return{}}if(y.length>qSe){if(t.v2)throw new Yh("TOO_LONG");return{}}if(t.v2){var $=new $4e(b,y,r.metadata);return m&&($.country=m),x&&($.carrierCode=x),s&&($.ext=s),$.__countryCallingCodeSource=T,$}var A=(t.extended?r.hasSelectedNumberingPlan():m)?Sp(y,r.nationalNumberPattern()):!1;return t.extended?{country:m,countryCallingCode:b,carrierCode:x,valid:A,possible:A?!0:!!(t.extended===!0&&r.possibleLengths()&&BW(y,r)),phone:y,ext:s}:A?uCe(m,y,s):{}}function sCe(e,t,n){if(e){if(e.length>rCe){if(n)throw new Yh("TOO_LONG");return}if(t===!1)return e;var r=e.search(iCe);if(!(r<0))return e.slice(r).replace(aCe,"")}}function lCe(e,t,n){var r=nCe(e,{extractFormattedPhoneNumber:function(s){return sCe(s,n,t)}});if(!r)return{};if(!g4e(r))return y4e(r)?{error:"TOO_SHORT"}:{};var i=z4e(r);return i.ext?i:{number:r}}function uCe(e,t,n){var r={country:e,phone:t};return n&&(r.ext=n),r}function cCe(e,t,n,r){var i=zW(YR(e),void 0,t,n,r.metadata),a=i.countryCallingCodeSource,s=i.countryCallingCode,o=i.number,f;if(s)r.selectNumberingPlan(s);else if(o&&(t||n))t?(f=t,r.selectNumberingPlan(t),s=r.numberingPlan.callingCode()):(r.selectNumberingPlan(n),s=n);else return{};if(!o)return{countryCallingCodeSource:a,countryCallingCode:s};var m=k$(YR(o),void 0,r),y=m.nationalNumber,b=m.carrierCode,T=FW(s,{nationalNumber:y,metadata:r});return T&&(f=T,T==="001"||r.selectNumberingPlan(f)),{country:f,countryCallingCode:s,countryCallingCodeSource:a,nationalNumber:y,carrierCode:b}}function Zx(e){"@babel/helpers - typeof";return Zx=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zx(e)}function XR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function JR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?XR(Object(n),!0).forEach(function(r){dCe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function dCe(e,t,n){return(t=fCe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fCe(e){var t=hCe(e,"string");return Zx(t)=="symbol"?t:t+""}function hCe(e,t){if(Zx(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Zx(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pCe(e,t,n){return oCe(e,JR(JR({},t),{},{v2:!0}),n)}function Kx(e){"@babel/helpers - typeof";return Kx=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kx(e)}function QR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function mCe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?QR(Object(n),!0).forEach(function(r){gCe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gCe(e,t,n){return(t=yCe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yCe(e){var t=vCe(e,"string");return Kx(t)=="symbol"?t:t+""}function vCe(e,t){if(Kx(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Kx(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _Ce(e,t){return SCe(e)||wCe(e,t)||xCe(e,t)||bCe()}
19function bCe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
20In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xCe(e,t){if(e){if(typeof e=="string")return eB(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?eB(e,t):void 0}}function eB(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function wCe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,s,o=[],f=!0,m=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(f=(r=a.call(n)).done)&&(o.push(r.value),o.length!==t);f=!0);}catch(y){m=!0,i=y}finally{try{if(!f&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(m)throw i}}return o}}function SCe(e){if(Array.isArray(e))return e}function CCe(e){var t=Array.prototype.slice.call(e),n=_Ce(t,4),r=n[0],i=n[1],a=n[2],s=n[3],o,f,m;if(typeof r=="string")o=r;else throw new TypeError("A text for parsing must be a string.");if(!i||typeof i=="string")s?(f=a,m=s):(f=void 0,m=a),i&&(f=mCe({defaultCountry:i},f));else if(s_(i))a?(f=i,m=a):m=i;else throw new Error("Invalid second argument: ".concat(i));return{text:o,options:f,metadata:m}}function Xx(e){"@babel/helpers - typeof";return Xx=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xx(e)}function tB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function nB(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?tB(Object(n),!0).forEach(function(r){TCe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tB(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function TCe(e,t,n){return(t=kCe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kCe(e){var t=ECe(e,"string");return Xx(t)=="symbol"?t:t+""}function ECe(e,t){if(Xx(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Xx(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function PCe(e,t,n){t&&t.defaultCountry&&!MSe(t.defaultCountry,n)&&(t=nB(nB({},t),{},{defaultCountry:void 0}));try{return pCe(e,t,n)}catch(r){if(!(r instanceof Yh))throw r}}function $Ce(){var e=CCe(arguments),t=e.text,n=e.options,r=e.metadata;return PCe(t,n,r)}function MCe(){return ySe($Ce,arguments)}const ACe={key:0},ICe=["href"],DCe={key:3},LCe=["href","target"],OCe=["href"],RCe={key:7},BCe={key:8},Su=Fe({__name:"FieldText",props:{result:{},config:{}},setup(e){const t=e,{t:n}=Ii(),{getFieldName:r}=Ad(),i=r(t.config),a=t?.config?.sub_type??t.config,s=xe(()=>{if(!Un(t.result?.[i]?.[0]?.title)&&Pa(t.result?.[i]))return o(t.result?.[i]?.[0]?.title??"");if(!Un(t.result?.[i])&&w_(t.result))return o(t.result?.[i]??"");if(m.value)return f(t.result);if(typeof t.result=="string")return t.result}),o=B=>(wA(B)?B:"").replaceAll('<span class="at"></span>',"@").replaceAll('<span class="dot"></span>',"."),f=B=>`<a href="${B.href}"
21        data-mailto-token="${B.additionalAttributes["data-mailto-token"]}"
22        data-mailto-vector="${B.additionalAttributes["data-mailto-vector"]}"
23    >${B.text}</a>`,m=xe(()=>!Un(t.result?.additionalAttributes)),y=xe(()=>t.config?.type==="richText"||t.config?.type==="richtext"),b=xe(()=>a==="telephone"||a==="mobilePhone"||a==="phone"),T=xe(()=>t.config?.system_name==="ligne_courte"),x=xe(()=>a==="mail"||t.config?.system_name==="mail"||t.config?.system_name==="email"),$=xe(()=>t.config?.system_name==="address"||t.config?.system_name==="address_secondary"||t.config?.system_name==="address_tertiary"),A=xe(()=>a==="website"||t.config?.frontend_picto==="website"),N=["contact"],O=["place","poste"],I=()=>{switch(t.config?.frontend_picto||t.config?.sub_type||O.includes(t.config?.system_name)||t.config?.system_name){case"adresse":case"address":case"address_secondary":case"address_tertiary":case"place":case"accueil":return PW;case"horaires":return $W;case"mail":case"email":case"mail_rh":case"mail_metier":return MW;case"person":case"contact_rh":case"contact_metier":return AW;case"phone":case"mobilePhone":case"telephone":case"telephone_rh":case"telephone_metier":return IW;case"website":return DW;default:return null}},U=xe(()=>MCe(s.value?.trim(),"FR"));return(B,q)=>{const Q=d1,ee=cr,Y=f1;return v(s)?(Z(),Se(xr(v(y)?"div":"p"),{key:0,"data-field-type":e.config?.frontend_picto||e.config?.sub_type||v(i)||null,class:de(v(y)?null:[v(Qn)({flexDirection:"row-reverse",justifyContent:"start",alignItems:"start",ga
23p:"1.2rem"}),v(me)({whiteSpace:"pre-line","& > *:not(svg)":{flexBasis:"fit-content"},"&[data-field-type=structure], &[data-field-type=function], &[data-field-type=function_secondary]":{fontWeight:600,fontSize:"{fontSizes.h4}"}})])},{default:be(()=>[bt(B.$slots,"default"),v(y)?(Z(),Ce(Ct,{key:0},[v(i)==="projet"?(Z(),Ce("p",{key:0,class:de(v(me)({fontWeight:600,display:"inline"}))},ht(B.$t("listItem.contacts.projects")),3)):Ne("",!0),ke(Q,{content:v(s)},null,8,["content"])],64)):v(b)?(Z(),Ce(Ct,{key:1},[v(T)?(Z(),Ce("span",ACe,ht(v(U).formatNational()),1)):v(U)?.isValid?(Z(),Ce("a",{key:1,href:v(U).getURI()},[Re("span",null,ht(v(U).formatNational()),1)],8,ICe)):Ne("",!0)],64)):N.includes(e.result?.type)&&v(x)?(Z(),Se(ee,{key:2,link:{text:B.$t("common.contact.mail"),href:v(s),target:"_blank"},variante:{classes:"button",bgColor:"primary"},class:de(v(me)({fontSize:"{fontSizes.md} !important",lineHeight:"1.2 !important","& a":{boxShadow:"none !important",padding:"1rem 2.5rem !important",_hover:{color:"{colors.primary} !important"}}}))},null,8,["link","class"])):v(x)&&e.result?.linkToContact?.[0]?(Z(),Ce("div",DCe,[Re("a",{href:e.result?.linkToContact?.[0]?.href,target:e.result?.linkToContact?.[0]?.target},[Re("span",null,ht(e.result?.linkToContact?.[0]?.text),1)],8,LCe)])):v(x)&&v(m)?(Z(),Se(Q,{key:4,as:"span",content:v(s)},null,8,["content"])):v(x)?(Z(),Ce("a",{key:5,href:`mailto:${v(s)}`,target:"_blank"},[Re("span",null,ht(v(s)),1)],8,OCe)):v(A)?(Z(),Se(Y,{key:6,link:{href:typeof v(s)=="string"?v(s):v(s).href,text:v(s).text??e.config?.title??B.$t("common.contact.website"),target:v(s)?.target??"_blank"}},null,8,["link"])):v($)?(Z(),Ce("span",RCe,ht(v(s))+" "+ht(e.result.postcode)+" "+ht(e.result.cityTxt),1)):(Z(),Ce("span",BCe,ht(v(s)),1)),(Z(),Se(xr(I()),{"aria-hidden":"true",class:de(v(RA)())},null,8,["class"]))]),_:3},8,["data-field-type","class"])):Ne("",!0)}}}),FCe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"};function zCe(e,t){return Z(),Ce("svg",FCe,[...t[0]||(t[0]=[Re("path",{fill:"#1D1D1B",d:"M12.812 8.65c.345-.33.539-.776.539-1.24 0-.466-.194-.912-.539-1.242a1.94 1.94 0 0 0-1.303-.497c-.485 0-.952.178-1.303.497l.663.632a.95.95 0 0 1 .64-.245c.24 0 .469.088.641.245.17.161.265.38.265.61a.84.84 0 0 1-.265.61zM9.455 9.7.691 18.045l.758.722 8.764-8.347z"},null,-1),Re("path",{fill:"#1D1D1B",d:"M19.306 1.408 18.55.672l-3.872 3.77a4.3 4.3 0 0 0-1.464-1.057 4.5 4.5 0 0 0-1.793-.379 4.52 4.52 0 0 0-3.096 1.262 4.1 4.1 0 0 0-1.256 2.975c-.001.465.078.927.234 1.367l.146.25 1.03-1.003-.018-.07a2.74 2.74 0 0 1 .005-1.202c.09-.395.266-.769.518-1.095s.574-.598.943-.797a3.163 3.163 0 0 1 2.456-.223c.403.13.772.338 1.084.613s.56.61.727.982.25.774.242 1.178a2.58 2.58 0 0 1-.505 1.635c-.138.17-.294.355-.48.576-1.122 1.327-2.815 3.333-2.87 5.386 0 .343-.144.672-.399.915-.254.243-.6.379-.96.379s-.707-.136-.961-.38a1.26 1.26 0 0 1-.398-.914v-.13H6.52v.13a2.5 2.5 0 0 0 .785 1.82 2.77 2.77 0 0 0 1.906.76c.355.001.706-.064 1.034-.192s.626-.317.878-.555c.508-.48.795-1.133.797-1.815.042-1.594 1.56-3.389 2.566-4.577.181-.218.354-.418.5-.602a3.84 3.84 0 0 0 .79-2.436c0-.668-.164-1.327-.48-1.924l4.012-3.905z"},null,-1)])])}const NCe={render:zCe},VCe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"};function qCe(e,t){return Z(),Ce("svg",VCe,[...t[0]||(t[0]=[Re("path",{fill:"#1D1D1B",d:"M18.444 5.943a1.35 1.35 0 0 0-.46-.309 1.4 1.4 0 0 0-.553-.103C17.554 2.332 16.593.96 16.552.9a.55.55 0 0 0-.364-.22.6.6 0 0 0-.42.09.56.56 0 0 0-.235.352.54.54 0 0 0 .085.41c.007.013.893 1.356.644 4.552a.53.53 0 0 0 .182.448.56.56 0 0 0 .477.137c.551-.09.678.01.678.01.12.127-.1.902-.182 1.199a7 7 0 0 0-.212.911 5.3 5.3 0 0 0 .02 1.238c.014.13.036.366.036.438q-.192.064-.395.065a.58.58 0 0 0-.376.165.53.53 0 0 0-.16.364c-.13 3.047-.946 5.005-2.5 5.992a4.4 4.4 0 0 1-1.71.57 4.5 4.5 0 0 1-1.804-.157.57.57 0 0 0-.436.021.536.536 0 0 0-.294.315.52.52 0 0 0 .022.425q.048.1.131.174.085.075.193.111c.558.174 1.14.26 1.727.257a5.13 5.13 0 0 0 2.792-.782c1.8-1.142 2.777-3.238 2.99-6.408.267-.052.509-.185.688-.381a1.548 1.548 0 0 0 .226-1.284 4.2 4.2 0 0 1-.024-.987q.065-.378.18-.746c.22-.778.464-1.657-.072-2.236z"},null,-1),Re("path",{fill:"#1D1D1B",d:"M9.378 15.73v-.014q.102-.298.26-.571a.64.64 0 0 0 .113-.594.6.6 0 0 0-.202-.269.66.66 0 0 0-.32-.13c-.081-.018-.237-.064-.386-.108a10 10 0 0 1-.577-.178c-.637-.207-1.3-.416-1.534-.92q.435.137.849.323c.29.12.566.235.786.3.363.175.767.258 1.173.242.145-.005.287-.04.415-.106a.95.95 0 0 0 .326-.267 1.308 1.308 0 0 0 .141-1.069c.326.026.65-.06.914-.245.264-.183.45-.451.523-.755a2.23 2.23 0 0 0-.52-1.558l-.01-.018a2.2 2.2 0 0 1-.141-.42c-.358-1.457-.585-3.085-.782-4.514a10.8 10.8 0 0 0-1.024-2.507c-.1-.195-.2-.387-.3-.586a.595.595 0 0 0-.342-.279.575.575 0 0 0-.715.383.53.53 0 0 0 .056.424q.128.24.268.476c.431.704.783 1.449 1.048 2.223l.026.177c.227 1.519.439 2.953.823 4.453l.022.08c.054.227.146.445.272.645.145.21.532.771.316.988a1.4 1.4 0 0 1-.7.116h-.06a.7.7 0 0 0-.48.175.63.63 0 0 0-.207.402c-.006.167.02.334.078.492q.037.104.052.213a.4.4 0 0 1 0 .16.93.93 0 0 1-.5-.033c-.037-.01-.112-.04-.182-.065s-.134-.046-.171-.062a9 9 0 0 1-.815-.304 6.4 6.4 0 0 0-1.176-.396.82.82 0 0 0-.503.069.77.77 0 0 0-.353.348 1.3 1.3 0 0 0 .007.754c.077.246.224.466.425.637.58.48 1.278.815 2.029.974l.41.123a2.2 2.2 0 0 0-.3 1.17q.023.228.07.453c.103.272.097.57-.014.84a.58.58 0 0 1-.406.213c-.912.117-1.84.06-2.73-.166a10.3 10.3 0 0 1-3.137-2.056.57.57 0 0 0-.428-.144.59.59 0 0 0-.4.202.54.54 0 0 0 .086.78c1.92 1.618 3.634 2.405 5.208 2.405q.25 0 .5-.028c1.22.036 1.966-.276 2.21-.92a2.4 2.4 0 0 0 .016-1.348.94.94 0 0 1-.015-.616z"},null,-1),Re("path",{fill:"#1D1D1B",d:"M5.692 7.692q.435.082.88.085c.22 0 .51-.01 1-.033a.47.47 0 0 0 .306-.135.43.43 0 0 0 .13-.297 1.1 1.1 0 0 0-.315-.701 1.2 1.2 0 0 0-.713-.348 1.85 1.85 0 0 0-.802.145 1.8 1.8 0 0 0-.65.472.56.56 0 0 0-.171.257.54.54 0 0 0-.008.303.4.4 0 0 0 .132.174c.06.045.132.073.207.082zm1.162-.823a.7.7 0 0 1 .447.266q-.554.045-1.109 0a1.08 1.08 0 0 1 .66-.261zM12.241 7.7h.67c.208 0 .413.006.6.006s.383 0 .547-.006a.46.46 0 0 0 .307-.126.42.42 0 0 0 .132-.292 1.06 1.06 0 0 0-.312-.69 1.16 1.16 0 0 0-.708-.33c-.29-.01-.578.05-.84.17a1.8 1.8 0 0 0-.66.525.474.474 0 0 0-.119.531q.055.103.159.16a.4.4 0 0 0 .224.052m1.106-.826c.16.025.306.099.417.21h-.975a.98.98 0 0 1 .558-.21M12.956 13.669c-.272.27-1.013.358-2.2.259l-.09-.007a.48.48 0 0 0-.345.093.44.44 0 0 0-.16
237.302.42.42 0 0 0 .114.324.46.46 0 0 0 .324.146l.086.006c.294.025.611.043.923.043a2.89 2.89 0 0 0 2.022-.571.43.43 0 0 0 .127-.312.42.42 0 0 0-.142-.305.46.46 0 0 0-.327-.121.48.48 0 0 0-.32.135z"},null,-1)])])}const jCe={render:qCe},UCe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"};function HCe(e,t){return Z(),Ce("svg",UCe,[...t[0]||(t[0]=[JC('<mask id="i-2051757733__a" width="16" height="20" x="2" y="0" maskUnits="userSpaceOnUse" style="mask-type:luminance;"><path fill="#fff" d="M17.617.954H2.382v18.092h15.235z"></path></mask><g fill="#1D1D1B" mask="url(#i-2051757733__a)"><path d="M17.138 13.764c-.983-.982-1.95-1.975-2.94-2.953-1.096-1.077-1.133-1.095-1.513-1.095h-1.634V8.06c.748 0 1.452-.011 2.156 0 .37.008.622-.048.633-.502s-.2-.593-.625-.583c-.7.015-1.41 0-2.21 0 0-.444.006-.784 0-1.12a1.3 1.3 0 0 0-.117-.578 1.36 1.36 0 0 0-.363-.476 1.44 1.44 0 0 0-.54-.285 1.5 1.5 0 0 0-.617-.04c-1.06.008-1.593.462-1.6 1.4q-.01 2.87-.015 5.738c0 .429 0 .715.756.715 1.184 0 2.364-.018 3.544-.018.707 0 .588-.052 1.121.476.838.825 1.657 1.664 2.5 2.487.577.572 1.173.623 1.634.173q.166-.181.245-.409a1.1 1.1 0 0 0-.092-.916c-.08-.139-.19-.26-.32-.357z"></path><path d="M13.117 14.619a4.7 4.7 0 0 1-1.878 2.464 5.08 5.08 0 0 1-3.073.837 5.1 5.1 0 0 1-2.895-1.155 4.68 4.68 0 0 1-1.587-2.578 4.6 4.6 0 0 1 .351-3.067 4.92 4.92 0 0 1 2.236-2.232c.138-.068.573-.286.625-.316V7.45c-.1.021-.2.04-.29.068a6.2 6.2 0 0 0-3.127 2.259 5.73 5.73 0 0 0-1.091 3.59 5.77 5.77 0 0 0 1.379 3.5 6.27 6.27 0 0 0 3.3 2.021 6.32 6.32 0 0 0 3.877-.361 5.93 5.93 0 0 0 2.84-2.538q.24-.47.39-.972l-.9-.868c-.06.18-.107.326-.155.464zM9.466 4.031c.21.005.419-.031.614-.105.196-.073.374-.183.524-.322q.228-.212.354-.49a1.45 1.45 0 0 0 .127-.583 1.4 1.4 0 0 0-.089-.595 1.5 1.5 0 0 0-.328-.515 1.6 1.6 0 0 0-.514-.35 1.64 1.64 0 0 0-1.76.322 1.5 1.5 0 0 0-.342.506q-.116.287-.105.593c-.007.394.148.775.432 1.062s.674.457 1.087.474z"></path></g>',2)])])}const WCe={render:HCe},GCe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"};function YCe(e,t){return Z(),Ce("svg",GCe,[...t[0]||(t[0]=[Re("path",{fill:"#1D1D1B",d:"M19.213 9.518c-2.048-2.54-3.99-4.5-8.734-4.71a13 13 0 0 0-.64-.014h-.082l-.726-3.076-.853.19.689 2.925c-2.891.355-5.535 1.738-7.4 3.871-.268.286-.454.516-.566.654l-.14.18-.18.247.18.247c.033.048.16.218.379.476.194.225.514.581.938.983l.223.214-.482-2.092q.226-.257.477-.519l.737 3.232.026.018c.283.225.562.429.853.62l.194.13L3.029 8.39c.257-.228.536-.45.823-.667l1.37 6 .041.019c.25.123.517.239.793.348l.164.066-1.59-6.97q.387-.246.786-.454l1.8 7.732.056.015c.242.062.5.116.752.16l.138.022-.576-2.49c.349.29.758.508 1.2.64l.447 1.951h.071l.115.011c.056 0 .112.008.168.008h.291l.257-.008-.423-1.808h.041c.337-.003.671-.057.99-.16l1.158 4.917.853-.19-.692-2.932c3.656-.552 5.4-2.388 7.144-4.55l.212-.265-.213-.267zM7.538 7.349c-.35.311-.627.69-.812 1.11l-.49-2.116q.485-.205.993-.359l.313 1.361zm1.735-.798a3.4 3.4 0 0 0-.957.286l-.238-1.048q.491-.089.99-.116l.208.882zm3.8 3.182a3.1 3.1 0 0 0-.818-2.116 3.4 3.4 0 0 0-2.082-1.074l-.208-.892c.164 0 .328.008.473.014.904.143 1.739.55 2.387 1.167a4.12 4.12 0 0 1 1.23 2.272c.15.86.015 1.745-.388 2.528a4.3 4.3 0 0 1-1.859 1.843l-.246-1.038a3.3 3.3 0 0 0 1.114-1.169c.263-.47.4-.997.398-1.531zm1.914.048a4.8 4.8 0 0 0-.412-1.971 5.05 5.05 0 0 0-1.188-1.662c2.01.674 3.74 1.948 4.93 3.633-1.197 1.692-2.933 2.973-4.952 3.653a5 5 0 0 0 1.204-1.669 4.8 4.8 0 0 0 .417-1.985z"},null,-1)])])}const ZCe={render:YCe},KCe={key:0,"data-container-access":""},XCe=["title"],JCe=["title"],BI=Fe({__name:"FieldAccessibility",props:{config:{},result:{default:()=>[]},type:{},notSr:{type:Boolean,default:!1}},setup(e){const t=r=>{switch(r?.replace("handicap-","")){case"hi":case"auditif":return NCe;case"ii":case"mental":return jCe;case"mi":case"moteur":return WCe;case"vi":case"visuel":return ZCe;default:return null}},n=Qn({flexDir:"row-reverse",justifyContent:"start",gap:"1rem"});return(r,i)=>e.result?.length>0?(Z(),Ce(Ct,{key:0},[e.result.length>1?(Z(),Ce("ul",KCe,[(Z(!0),Ce(Ct,null,ln(e.result,a=>(Z(),Ce("li",{title:e.notSr?"":a.title,class:de(v(n))},[Re("span",{class:de(v(Er)({srOnly:!e.notSr}))},ht(a.title),3),(Z(),Se(xr(t(a.slug)),{"aria-hidden":"true",class:de(v(ei)())},null,8,["class"]))],10,XCe))),256))])):(Z(),Ce("p",{key:1,"data-container-access":"",class:de(v(n)),title:e.notSr?"":e.result[0].title},[Re("span",{class:de(v(Er)({srOnly:!e.notSr}))},ht(e.result[0].title),3),(Z(),Se(xr(t(e.result[0].slug)),{"aria-hidden":"true",class:de(v(ei)())},null,8,["class"]))],10,JCe))],64)):Ne("",!0)}}),QCe={key:0,"data-container-labels":""},eTe=["title"],tTe=["title"],nTe=Fe({__name:"FieldLabels",props:{config:{},result:{default:()=>[]},type:{},notSr:{type:Boolean,default:!1}},setup(e){const t=[Qn({flexDir:"row-reverse",justifyContent:"start",ga
23p:"1rem"}),me({"& img":{maxHeight:"4rem",width:"auto"}})];return(n,r)=>{const i=Nf;return e.result?.length>0?(Z(),Ce(Ct,{key:0},[e.result.length>1?(Z(),Ce("ul",QCe,[(Z(!0),Ce(Ct,null,ln(e.result,a=>(Z(),Ce("li",{title:e.notSr?"":a.title,class:de(t)},[Re("span",{class:de(v(Er)({srOnly:!e.notSr}))},ht(a.title),3),ke(i,{image:a.imageList?.[0]},null,8,["image"])],8,eTe))),256))])):(Z(),Ce("p",{key:1,"data-container-labels":"",class:de(t),title:e.notSr?"":e.result[0].title},[Re("span",{class:de(v(Er)({srOnly:!e.notSr}))},ht(e.result[0].title),3),ke(i,{image:e.result[0].imageList?.[0]},null,8,["image"])],8,tTe))],64)):Ne("",!0)}}});var VS={exports:{}};var rTe=VS.exports,rB;function iTe(){return rB||(rB=1,(function(e,t){(function(n,r){e.exports=r()})(rTe,(function(){var n={},r={};function i(s,o,f){if(r[s]=f,s==="index"){var m="var sharedModule = {}; ("+r.shared+")(sharedModule); ("+r.worker+")(sharedModule);",y={};return r.shared(y),r.index(n,y),typeof window<"u"&&n.setWorkerUrl(window.URL.createObjectURL(new Blob([m],{type:"text/javascript"}))),n}}i("shared",["exports"],(function(s){function o(d,l,c,p){return new(c||(c=Promise))((function(g,w){function k(L){try{R(p.next(L))}catch(j){w(j)}}function P(L){try{R(p.throw(L))}catch(j){w(j)}}function R(L){var j;L.done?g(L.value):(j=L.value,j instanceof c?j:new c((function(F){F(j)}))).then(k,P)}R((p=p.apply(d,l||[])).next())}))}function f(d,l){this.x=d,this.y=l}function m(d){return d&&d.__esModule&&Object.prototype.hasOwnProperty.call(d,"default")?d.default:d}var y,b;typeof SuppressedError=="function"&&SuppressedError,f.prototype={clone(){return new f(this.x,this.y)},add(d){return this.clone()._add(d)},sub(d){return this.clone()._sub(d)},multByPoint(d){return this.clone()._multByPoint(d)},divByPoint(d){return this.clone()._divByPoint(d)},mult(d){return this.clone()._mult(d)},div(d){return this.clone()._div(d)},rotate(d){return this.clone()._rotate(d)},rotateAround(d,l){return this.clone()._rotateAround(d,l)},matMult(d){return this.clone()._matMult(d)},unit(){return this.clone()._unit()},perp(){return this.clone()._perp()},round(){return this.clone()._round()},mag(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals(d){return this.x===d.x&&this.y===d.y},dist(d){return Math.sqrt(this.distSqr(d))},distSqr(d){const l=d.x-this.x,c=d.y-this.y;return l*l+c*c},angle(){return Math.atan2(this.y,this.x)},angleTo(d){return Math.atan2(this.y-d.y,this.x-d.x)},angleWith(d){return this.angleWithSep(d.x,d.y)},angleWithSep(d,l){return Math.atan2(this.x*l-this.y*d,this.x*d+this.y*l)},_matMult(d){const l=d[2]*this.x+d[3]*this.y;return this.x=d[0]*this.x+d[1]*this.y,this.y=l,this},_add(d){return this.x+=d.x,this.y+=d.y,this},_sub(d){return this.x-=d.x,this.y-=d.y,this},_mult(d){return this.x*=d,this.y*=d,this},_div(d){return this.x/=d,this.y/=d,this},_multByPoint(d){return this.x*=d.x,this.y*=d.y,this},_divByPoint(d){return this.x/=d.x,this.y/=d.y,this},_unit(){return this._div(this.mag()),this},_perp(){const d=this.y;return this.y=this.x,this.x=-d,this},_rotate(d){const l=Math.cos(d),c=Math.sin(d),p=c*this.x+l*this.y;return this.x=l*this.x-c*this.y,this.y=p,this},_rotateAround(d,l){const c=Math.cos(d),p=Math.sin(d),g=l.y+p*(this.x-l.x)+c*(this.y-l.y);return this.x=l.x+c*(this.x-l.x)-p*(this.y-l.y),this.y=g,this},_round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},constructor:f},f.convert=function(d){if(d instanceof f)return d;if(Array.isArray(d))return new f(+d[0],+d[1]);if(d.x!==void 0&&d.y!==void 0)return new f(+d.x,+d.y);throw new Error("Expected [x, y] or {x, y} point format")};var T=(function(){if(b)return y;function d(l,c,p,g){this.cx=3*l,this.bx=3*(p-l)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*c,this.by=3*(g-c)-this.cy,this.ay=1-this.cy-this.by,this.p1x=l,this.p1y=c,this.p2x=p,this.p2y=g}return b=1,y=d,d.prototype={sampleCurveX:function(l){return((this.ax*l+this.bx)*l+this.cx)*l},sampleCurveY:function(l){return((this.ay*l+this.by)*l+this.cy)*l},sampleCurveDerivativeX:function(l){return(3*this.ax*l+2*this.bx)*l+this.cx},solveCurveX:function(l,c){if(c===void 0&&(c=1e-6),l<0)return 0;if(l>1)return 1;for(var p=l,g=0;g<8;g++){var w=this.sampleCurveX(p)-l;if(Math.abs(w)<c)return p;var k=this.sampleCurveDerivativeX(p);if(Math.abs(k)<1e-6)break;p-=w/k}var P=0,R=1;for(p=l,g=0;
vendor: 3,085 bytes, line 23
23g<20&&(w=this.sampleCurveX(p),!(Math.abs(w-l)<c));g++)l>w?P=p:R=p,p=.5*(R-P)+P;return p},solve:function(l,c){return this.sampleCurveY(this.solveCurveX(l,c))}},y})(),x=m(T);let $,A;function N(){return $!=null||($=typeof OffscreenCanvas<"u"&&new OffscreenCanvas(1,1).getContext("2d")&&typeof createImageBitmap=="function"),$}function O(){if(A==null&&(A=!1,N())){const l=new OffscreenCanvas(5,5).getContext("2d",{willReadFrequently:!0});if(l){for(let p=0;p<25;p++){const g=4*p;l.fillStyle=`rgb(${g},${g+1},${g+2})`,l.fillRect(p%5,Math.floor(p/5),1,1)}const c=l.getImageData(0,0,5,5).data;for(let p=0;p<100;p++)if(p%4!=3&&c[p]!==p){A=!0;break}}}return A||!1}var I=1e-6,U=typeof Float32Array<"u"?Float32Array:Array;function B(){var d=new U(9);return U!=Float32Array&&(d[1]=0,d[2]=0,d[3]=0,d[5]=0,d[6]=0,d[7]=0),d[0]=1,d[4]=1,d[8]=1,d}function q(d){return d[0]=1,d[1]=0,d[2]=0,d[3]=0,d[4]=0,d[5]=1,d[6]=0,d[7]=0,d[8]=0,d[9]=0,d[10]=1,d[11]=0,d[12]=0,d[13]=0,d[14]=0,d[15]=1,d}function Q(){var d=new U(3);return U!=Float32Array&&(d[0]=0,d[1]=0,d[2]=0),d}function ee(d){var l=d[0],c=d[1],p=d[2];return Math.sqrt(l*l+c*c+p*p)}function Y(d,l,c){var p=new U(3);return p[0]=d,p[1]=l,p[2]=c,p}function z(d,l,c){return d[0]=l[0]+c[0],d[1]=l[1]+c[1],d[2]=l[2]+c[2],d}function H(d,l,c){return d[0]=l[0]*c,d[1]=l[1]*c,d[2]=l[2]*c,d}function K(d,l,c){var p=l[0],g=l[1],w=l[2],k=c[0],P=c[1],R=c[2];return d[0]=g*R-w*P,d[1]=w*k-p*R,d[2]=p*P-g*k,d}var ne,le=ee;function pe(d,l,c){var p=l[0],g=l[1],w=l[2],k=l[3];return d[0]=c[0]*p+c[4]*g+c[8]*w+c[12]*k,d[1]=c[1]*p+c[5]*g+c[9]*w+c[13]*k,d[2]=c[2]*p+c[6]*g+c[10]*w+c[14]*k,d[3]=c[3]*p+c[7]*g+c[11]*w+c[15]*k,d}function ae(){var d=new U(4);return U!=Float32Array&&(d[0]=0,d[1]=0,d[2]=0),d[3]=1,d}function se(d,l,c,p){var g=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"zyx",w=Math.PI/360;l*=w,p*=w,c*=w;var k=Math.sin(l),P=Math.cos(l),R=Math.sin(c),L=Math.cos(c),j=Math.sin(p),F=Math.cos(p);switch(g){case"xyz":d[0]=k*L*F+P*R*j,d[1]=P*R*F-k*L*j,d[2]=P*L*j+k*R*F,d[3]=P*L*F-k*R*j;break;case"xzy":d[0]=k*L*F-P*R*j,d[1]=P*R*F-k*L*j,d[2]=P*L*j+k*R*F,d[3]=P*L*F+k*R*j;break;case"yxz":d[0]=k*L*F+P*R*j,d[1]=P*R*F-k*L*j,d[2]=P*L*j-k*R*F,d[3]=P*L*F+k*R*j;break;case"yzx":d[0]=k*L*F+P*R*j,d[1]=P*R*F+k*L*j,d[2]=P*L*j-k*R*F,d[3]=P*L*F-k*R*j;break;case"zxy":d[0]=k*L*F-P*R*j,d[1]=P*R*F+k*L*j,d[2]=P*L*j+k*R*F,d[3]=P*L*F-k*R*j;break;case"zyx":d[0]=k*L*F-P*R*j,d[1]=P*R*F+k*L*j,d[2]=P*L*j-k*R*F,d[3]=P*L*F+k*R*j;break;default:throw new Error("Unknown angle order "+g)}return d}function ce(){var d=new U(2);return U!=Float32Array&&(d[0]=0,d[1]=0),d}function ye(d,l){var c=new U(2);return c[0]=d,c[1]=l,c}Q(),ne=new U(4),U!=Float32Array&&(ne[0]=0,ne[1]=0,ne[2]=0,ne[3]=0),Q(),Y(1,0,0),Y(0,1,0),ae(),ae(),B(),ce();const $e=8192;function Be(d,l,c){return l*($e/(d.tileSize*Math.pow(2,c-d.tileID.overscaledZ)))}function je(d){return d instanceof Error?d:new Error(typeof d=="string"?d:String(d))}function at(d,l){return(d%l+l)%l}function Pt(d,l,c){return d*(1-c)+l*c}function Qe(d){if(d<=0)return 0;if(d>=1)return 1;const l=d*d,c=l*d;return 4*(d<.5?c:3*(d-l)+c-.75)}
23function nt(d,l,c,p){const g=new x(d,l,c,p);return w=>g.solve(w)}const Ve=nt(.25,.1,.25,1);function ct(d,l,c){return Math.min(c,Math.max(l,d))}function zt(d,l,c){const p=c-l,g=((d-l)%p+p)%p+l;return g===l?c:g}function ut(d,...l){for(const c of l)for(const p in c)d[p]=c[p];return d}let At=1;function Dt(d,l,c){const p={};for(const g in d)p[g]=l.call(this,d[g],g,d);return p}function Ot(d,l,c){const p={};for(const g in d)l.call(this,d[g],g,d)&&(p[g]=d[g]);return p}function Ee(d){return Array.isArray(d)?d.map(Ee):typeof d=="object"&&d?Dt(d,Ee):d}const Ye={};function it(d){Ye[d]||(typeof console<"u",Ye[d]=!0)}function yt(d,l,c){return(c.y-d.y)*(l.x-d.x)>(l.y-d.y)*(c.x-d.x)}function St(d){return typeof WorkerGlobalScope<"u"&&d!==void 0&&d instanceof WorkerGlobalScope}let Ie=null;function qe(d){return typeof ImageBitmap<"u"&&d instanceof ImageBitmap}const pt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function Tt(d,l,c,p,g){return o(this,void 0,void 0,(function*(){if(typeof VideoFrame>"u")throw new Error("VideoFrame not supported");const w=new VideoFrame(d,{timestamp:0});try{const k=w?.format;if(!k||!k.startsWith("BGR")&&!k.startsWith("RGB"))throw new Error(`Unrecognized format ${k}`);const P=k.startsWith("BGR"),R=new Uint8ClampedArray(p*g*4);if(yield w.copyTo(R,(function(L,j,F,te,G){const oe=4*Math.max(-j,0),ue=(Math.max(0,F)-F)*te*4+oe,ve=4*te,_e=Math.max(0,j),Me=Math.max(0,F);return{rect:{x:_e,y:Me,width:Math.min(L.width,j+te)-_e,height:Math.min(L.height,F+G)-Me},layout:[{offset:ue,stride:ve}]}})(d,l,c,p,g)),P)for(let L=0;L<R.length;L+=4){const j=R[L];R[L]=R[L+2],R[L+2]=j}return R}finally{w.close()}}))}let It,sn;function Yt(d,l,c,p){return d.addEventListener(l,c,p),{unsubscribe:()=>{d.removeEventListener(l,c,p)}}}function _t(d){return d*Math.PI/180}function vt(d){return d/Math.PI*180}const Jt={touchstart:!0,touchmove:!0,touchmoveWindow:!0,touchend:!0,touchcancel:!0},an={dblclick:!0,click:!0,mouseover:!0,mouseout:!0,mousedown:!0,mousemove:!0,mousemoveWindow:!0,mouseup:!0,mouseupWindow:!0,contextmenu:!0,wheel:!0},Sn="AbortError";class On extends Error{constructor(l=Sn){super(l instanceof Error?l.message:l),this.name=Sn,l instanceof Error&&l.stack&&(this.stack=l.stack)}}function ft(d){return d instanceof Error&&d.name===Sn}function Ge(d){if(d.aborted)throw new On(d.reason)}const rt={MAX_PARALLEL_IMAGE_REQUESTS:16,MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME:8,MAX_TILE_CACHE_ZOOM_LEVELS:5,REGISTERED_PROTOCOLS:{},WORKER_URL:""};function $t(d){return rt.REGISTERED_PROTOCOLS[d.substring(0,d.indexOf("://"))]}const Gt="global-dispatcher";class Zt extends Error{constructor(l,c,p,g){super(`AJAXError: ${c} (${l}): ${p}`),this.status=l,this.statusText=c,this.url=p,this.body=g}}const rn=()=>{var d;return St(self)?(d=self.worker)===null||d===void 0?void 0:d.referrer:(window.location.protocol==="blob:"?window.parent:window).location.href},Dn=function(d,l){return o(this,void 0,void 0,(function*(){var c,p;if(d.url.includes("://")&&!/^https?:|^file:/.test(d.url)){const g=$t(d.url);if(g){const w=yield g(d,l);return w.data||d.type!=="arrayBuffer"?w:ut(w,{data:new ArrayBuffer(0)})}if(St(self)&&(!((c=self.worker)===null||c===void 0)&&c.actor))return self.worker.actor.sendAsync({type:"GR",data:d,targetMapId:Gt},l)}if(!(g=>{var w;return g.startsWith("file:")||((w=rn())===null||w===void 0?void 0:w.startsWith("file:"))&&!/^\w+:/.test(g)})(d.url)){if(fetch&&Request&&AbortController&&Object.hasOwn(Request.prototype,"signal"))return(function(g,w){return o(this,void 0,void 0,(function*(){const k=new Request(g.url,{method:g.method||"GET",body:g.body,credentials:g.credentials,headers:g.headers,cache:g.cache,referrer:rn(),referrerPolicy:g.referrerPolicy,signal:w.signal});let P,R;g.type!=="json"||k.headers.has("Accept")||k.headers.set("Accept","application/json");try{P=yield fetch(k)}catch(j){throw ft(j)?j:new Zt(0,je(j).message,g.url,new Blob)}if(!P.ok){const j=yield P.blob();throw new Zt(P.status,P.statusText,g.url,j)}R=g.type==="arrayBuffer"||g.type==="image"?P.arrayBuffer():g.type==="json"?P.json():P.text();const L=yield R;return Ge(w.signal),{data:L,cacheControl:P.headers.get("Cache-Control"),expires:P.headers.get("Expires"),etag:P.headers.get("ETag")}}))})(d,l);if(St(self)&&(!((p=self.worker)===null||p===void 0)&&p.actor))return self.worker.actor.sendAsync({type:"GR",data:d,mustQueue:!0,targetMapId:Gt},l)}return(function(g,w){return new Promise(((k,P)=>{var R;const L=new XMLHttpRequest;L.open(g.method||"GET",g.url,!0),g.type!=="arrayBuffer"&&g.type!=="image"||(L.responseType="arraybuffer");for(const j in g.headers)L.setRequestHeader(j,g.headers[j]);g.type==="json"&&(L.responseType="text",!((R=g.headers)===null||R===void 0)&&R.Accept||L.setRequestHeader("Accept","application/json")),L.withCredentials=g.credentials==="include",L.onerror=()=>{P(new Error(L.statusText))},L.onload=()=>
23{if(!w.signal.aborted)if((L.status>=200&&L.status<300||L.status===0)&&L.response!==null){let j=L.response;if(g.type==="json")try{j=JSON.parse(L.response)}catch(F){return void P(F)}k({data:j,cacheControl:L.getResponseHeader("Cache-Control"),expires:L.getResponseHeader("Expires"),etag:L.getResponseHeader("ETag")})}else{const j=new Blob([L.response],{type:L.getResponseHeader("Content-Type")});P(new Zt(L.status,L.statusText,g.url,j))}},w.signal.addEventListener("abort",(()=>{L.abort(),P(new On(w.signal.reason))})),L.send(g.body)}))})(d,l)}))};function tr(d){if(!d||d.indexOf("://")<=0||d.startsWith("data:image/")||d.startsWith("blob:"))return!0;const l=new URL(d),c=window.location;return l.protocol===c.protocol&&l.host===c.host}function Nr(d,l,c){var p;!((p=c[d])===null||p===void 0)&&p.includes(l)||(c[d]||(c[d]=[]),c[d].push(l))}function $r(d,l,c){if(c?.[d]){const p=c[d].indexOf(l);p!==-1&&c[d].splice(p,1)}}class pi{constructor(l,c={}){ut(this,c),this.type=l}}class mi extends pi{constructor(l,c={}){super("error",ut({error:l},c))}}class va{on(l,c){return this._listeners||(this._listeners={}),Nr(l,c,this._listeners),{unsubscribe:()=>{this.off(l,c)}}}off(l,c){return $r(l,c,this._listeners),$r(l,c,this._oneTimeListeners),this}once(l,c){return c?(this._oneTimeListeners||(this._oneTimeListeners={}),Nr(l,c,this._oneTimeListeners),this):new Promise((p=>this.once(l,p)))}fire(l,c){var p,g;typeof l=="string"&&(l=new pi(l,c||{}));const w=l.type;if(this.listens(w)){l.target=this;const k=!((p=this._listeners)===null||p===void 0)&&p[w]?this._listeners[w].slice():[];for(const L of k)L.call(this,l);const P=!((g=this._oneTimeListeners)===null||g===void 0)&&g[w]?this._oneTimeListeners[w].slice():[];for(const L of P)$r(w,L,this._oneTimeListeners),L.call(this,l);const R=this._eventedParent;R&&(ut(l,typeof this._eventedParentData=="function"?this._eventedParentData():this._eventedParentData),R.fire(l))}else l instanceof mi;return this}listens(l){var c,p,g,w,k;return((p=(c=this._listeners)===null||c===void 0?void 0:c[l])===null||p===void 0?void 0:p.length)>0||((w=(g=this._oneTimeListeners)===null||g===void 0?void 0:g[l])===null||w===void 0?void 0:w.length)>0||((k=this._eventedParent)===null||k===void 0?void 0:k.listens(l))}setEventedParent(l,c){return this._eventedParent=l,this._eventedParentData=c,this}}var Ft={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number",length:2},centerAltitude:{type:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},roll:{type:"number",default:0,units:"degrees"},state:{type:"state",default:{}},light:{type:"light"},sky:{type:"sky"},projection:{type:"projection"},terrain:{type:"terrain"},sources:{required:!0,type:"sources"},sprite:{type:"sprite"},glyphs:{type:"string"},"font-faces":{type:"fontFaces"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},encoding:{type:"enum",values:{mvt:{},mlt:{}},default:"mvt"},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{},custom:{}},default:"mapbox"},redFactor:{type:"number",default:1},blueFactor:{type:"number",default:1},greenFactor:{type:"number",default:1},baseShift:{type:"number",default:0},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{required:!0,type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"filter"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0}
vendor: 3,304 bytes, line 23
23,clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},"color-relief":{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_color-relief","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-
vendor: 8,538 bytes, line 23
23constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image",{"!":"icon-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"padding",default:[2],units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},"viewport-glyph":{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-variable-anchor-offset":{type:"variableAnchorOffsetCollection",requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field",{"!":"text-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",
vendor: 6,583 bytes, line 23
23expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},"layout_color-relief":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},filter:{type:"boolean",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"expression_name",minimum:1},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},sky:{"sky-color":{type:"color","property-type":"data-constant",default:"#88C6FC",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-color":{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fog-color":{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fog-ground-blend":{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-fog-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"sky-horizon-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"atmosphere-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},terrain:{source:{type:"string",required:!0},exaggeration:{type:"number",minimum:0,default:1}},projection:{type:{type:"projectionDefinition",default:"mercator","property-type":"data-constant",transition:!1,expression:{interpolated:!0,parameters:["zoom"]}}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_color-relief","paint_background"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven
vendor: 12,722 bytes, line 23
23"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},resampling:{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"numberArray",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-altitude":{type:"numberArray",default:45,minimum:0,maximum:90,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"colorArray",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"colorArray",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-method":{type:"enum",values:{standard:{},basic:{},combined:{},igor:{},multidirectional:{}},default:"standard",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},resampling:{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},"paint_color-relief":{"color-relief-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"color-relief-color":{type:"color",transition:!1,expression:{interpolated:!0,parameters:["elevation"]},"property-type":"color-ramp"},resampling:{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}},interpolation:{type:"array",value:"interpolation_name",minimum:1},interpolation_name:{type:"enum",values:{linear:{syntax:{overloads:[{parameters:[],"output-type":"interpolation"}],parameters:[]}},exponential:{syntax:{overloads:[{parameters:["base"],"output-type":"interpolation"}],parameters:[{name:"base",type:"number literal"}]}},"cubic-bezier":{syntax:{overloads:[{parameters:["x1","y1","x2","y2"],"output-type":"interpolation"}],parameters:[{name:"x1",type:"number literal"},{name:"y1",type:"number literal"},{name:"x2",type:"number literal"},{name:"y2",type:"number literal"}]}}}}}
vendor: 96,893 bytes, lines 23-24
23;const xc=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function wc(d,l){const c={};for(const p in d)p!=="ref"&&(c[p]=d[p]);return xc.forEach((p=>{p in l&&(c[p]=l[p])})),c}function Mr(d,l){if(Array.isArray(d)){if(!Array.isArray(l)||d.length!==l.length)return!1;for(let c=0;c<d.length;c++)if(!Mr(d[c],l[c]))return!1;return!0}if(typeof d=="object"&&d!==null&&l!==null){if(typeof l!="object"||Object.keys(d).length!==Object.keys(l).length)return!1;for(const c in d)if(!Mr(d[c],l[c]))return!1;return!0}return d===l}function _a(d,l){d.push(l)}function Sc(d,l,c){_a(c,{command:"addSource",args:[d,l[d]]})}function y1(d,l,c){_a(l,{command:"removeSource",args:[d]}),c[d]=!0}function Mp(d,l,c,p){y1(d,c,p),Sc(d,l,c)}function sb(d,l,c){let p;for(p in d[c])if(Object.prototype.hasOwnProperty.call(d[c],p)&&p!=="data"&&!Mr(d[c][p],l[c][p]))return!1;for(p in l[c])if(Object.prototype.hasOwnProperty.call(l[c],p)&&p!=="data"&&!Mr(d[c][p],l[c][p]))return!1;return!0}function Id(d,l,c,p,g,w){d=d||{},l=l||{};for(const k in d)Object.prototype.hasOwnProperty.call(d,k)&&(Mr(d[k],l[k])||c.push({command:w,args:[p,k,l[k],g]}));for(const k in l)Object.prototype.hasOwnProperty.call(l,k)&&!Object.prototype.hasOwnProperty.call(d,k)&&(Mr(d[k],l[k])||c.push({command:w,args:[p,k,l[k],g]}))}function Ug(d){return d.id}function v1(d,l){return d[l.id]=l,d}class un{constructor(l,c,p,g){this.message=(l?`${l}: `:"")+p,g&&(this.identifier=g),c!=null&&c.__line__&&(this.line=c.__line__)}}function Cc(d,...l){for(const c of l)for(const p in c)d[p]=c[p];return d}class Ia extends Error{constructor(l,c){super(c),this.message=c,this.key=l}}class Ap{constructor(l,c=[]){this.parent=l,this.bindings={};for(const[p,g]of c)this.bindings[p]=g}concat(l){return new Ap(this,l)}get(l){if(this.bindings[l])return this.bindings[l];if(this.parent)return this.parent.get(l);throw new Error(`${l} not found in scope.`)}has(l){return!!this.bindings[l]||!!this.parent&&this.parent.has(l)}}const ku={kind:"null"},mn={kind:"number"},Kn={kind:"string"},dr={kind:"boolean"},Jo={kind:"color"},Ip={kind:"projectionDefinition"},Bl={kind:"object"},nr={kind:"value"},jf={kind:"collator"},Eu={kind:"formatted"},Dp={kind:"padding"},Fl={kind:"colorArray"},Uf={kind:"numberArray"},Dd={kind:"resolvedImage"},Hf={kind:"variableAnchorOffsetCollection"};function ba(d,l){return{kind:"array",itemType:d,N:l}}function Vr(d){if(d.kind==="array"){const l=Vr(d.itemType);return typeof d.N=="number"?`array<${l}, ${d.N}>`:d.itemType.kind==="value"?"array":`array<${l}>`}return d.kind}const Wf=[ku,mn,Kn,dr,Jo,Ip,Eu,Bl,ba(nr),Dp,Uf,Fl,Dd,Hf];function Ld(d,l){if(l.kind==="error")return null;if(d.kind==="array"){if(l.kind==="array"&&(l.N===0&&l.itemType.kind==="value"||!Ld(d.itemType,l.itemType))&&(typeof d.N!="number"||d.N===l.N))return null}else{if(d.kind===l.kind)return null;if(d.kind==="value"){for(const c of Wf)if(!Ld(c,l))return null}}return`Expected ${Vr(d)} but found ${Vr(l)} instead.`}function Gf(d,l){return l.some((c=>c.kind===d.kind))}function Tc(d,l){return l.some((c=>c==="null"?d===null:c==="array"?Array.isArray(d):c==="object"?d&&!Array.isArray(d)&&typeof d=="object":c===typeof d))}function Hs(d,l){return d.kind==="array"&&l.kind==="array"?d.itemType.kind===l.itemType.kind&&typeof d.N=="number":d.kind===l.kind}const Hg=.96422,Pu=.82521,Yf=4/29,xi=6/29,_1=3*xi*xi,Wg=xi*xi*xi,$u=Math.PI/180,Gg=180/Math.PI;function b1(d){return(d%=360)<0&&(d+=360),d}function Yg([d,l,c,p]){let g,w;const k=Kf((.2225045*(d=Zf(d))+.7168786*(l=Zf(l))+.0606169*(c=Zf(c)))/1);d===l&&l===c?g=w=k:(g=Kf((.4360747*d+.3850649*l+.1430804*c)/Hg),w=Kf((.0139322*d+.0971045*l+.7141733*c)/Pu));const P=116*k-16;return[P<0?0:P,500*(g-k),200*(k-w),p]}function Zf(d){return d<=.04045?d/12.92:Math.pow((d+.055)/1.055,2.4)}function Kf(d){return d>Wg?Math.pow(d,1/3):d/_1+Yf}function Zg([d,l,c,p]){let g=(d+16)/116,w=isNaN(l)?g:g+l/500,k=isNaN(c)?g:g-c/200;return g=1*Xf(g),w=Hg*Xf(w),k=Pu*Xf(k),[Lp(3.1338561*w-1.6168667*g-.4906146*k),Lp(-.9787684*w+1.9161415*g+.033454*k),Lp(.0719453*w-.2289914*g+1.4052427*k),p]}function Lp(d){return(d=d<=.00304?12.92*d:1.055*Math.pow(d,1/2.4)-.055)<0?0:d>1?1:d}function Xf(d){return d>xi?d*d*d:_1*(d-Yf)}const Kg=Object.hasOwn||function(d,l){return Object.prototype.hasOwnProperty.call(d,l)};function cl(d,l){return Kg(d,l)?d[l]:void 0}function Jf(d){return parseInt(d.padEnd(2,d),16)/255}function Xg(d,l){return Od(l?d/100:d,0,1)}function Od(d,l,c){return Math.min(Math.max(l,d),c)}function Op(d){return!d.some(Number.isNaN)}const Rd={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};function zl(d,l,c){return d+c*(l-d)}function kc(d,l,c){return d.map(((p,g)=>zl(p,l[g],c)))}class sr{constructor(l,c,p,g=1,w=!0){this.r=l,this.g=c,this.b=p,this.a=g,w||(this.r*=g,this.g*=g,this.b*=g,g||this.overwriteGetter("rgb",[l,c,p,g]))}static parse(l){if(l instanceof sr)return l;if(typeof l!="string")return;const c=(function(p){if((p=p.toLowerCase().trim())==="transparent")return[0,0,0,0];const g=cl(Rd,p);if(g){const[k,P,R]=g;return[k/255,P/255,R/255,1]}if(p.startsWith("#")&&/^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/.test(p)){const k=p.length<6?1:2;let P=1;return[Jf(p.slice(P,P+=k)),Jf(p.slice(P,P+=k)),Jf(p.slice(P,P+=k)),Jf(p.slice(P,P+k)||"ff")]}if(p.startsWith("rgb")){const k=p.match(/^rgba?\(\s*([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(k){const[P,R,L,j,F,te,G,oe,ue,ve,_e,Me]=k,Te=[j||" ",G||" ",ve].join("");if(Te==="  "||Te==="  /"||Te===",,"||Te===",,,"){const Ae=[L,te,ue].join(""),ze=Ae==="%%%"?100:Ae===""?255:0;if(ze){const We=[Od(+R/ze,0,1),Od(+F/ze,0,1),Od(+oe/ze,0,1),_e?Xg(+_e,Me):1];if(Op(We))return We}}return}}const w=p.match(/^hsla?\(\s*([\de.+-]+)(?:deg)?(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(w){const[k,P,R,L,j,F,te,G,oe]=w,ue=[R||" ",j||" ",te].join("");if(ue==="  "||ue==="  /"||ue===",,"||ue===",,,"){const ve=[+P,Od(+L,0,100),Od(+F,0,100),G?Xg(+G,oe):1];if(Op(ve))return(function([_e,Me,Te,Ae]){function ze(We){const dt=(We+_e/30)%12,mt=Me*Math.min(Te,1-Te);return Te-mt*Math.max(-1,Math.min(dt-3,9-dt,1))}return _e=b1(_e),Me/=100,Te/=100,[ze(0),ze(8),ze(4),Ae]})(ve)}}})(l);return c?new sr(...c,!1):void 0}get rgb(){const{r:l,g:c,b:p,a:g}=this,w=g||1/0;return this.overwriteGetter("rgb",[l/w,c/w,p/w,g])}get hcl(){return this.overwriteGetter("hcl",(function(l){const[c,p,g,w]=Yg(l),k=Math.sqrt(p*p+g*g);return[Math.round(1e4*k)?b1(Math.atan2(g,p)*Gg):NaN,k,c,w]})(this.rgb))}get lab(){return this.overwriteGetter("lab",Yg(this.rgb))}overwriteGetter(l,c){return Object.defineProperty(this,l,{value:c}),c}toString(){const[l,c,p,g]=this.rgb;return`rgba(${[l,c,p].map((w=>Math.round(255*w))).join(",")},${g})`}static interpolate(l,c,p,g="rgb"){switch(g){case"rgb":{const[w,k,P,R]=kc(l.rgb,c.rgb,p);return new sr(w,k,P,R,!1)}case"hcl":{const[w,k,P,R]=l.hcl,[L,j,F,te]=c.hcl;let G,oe;if(isNaN(w)||isNaN(L))isNaN(w)?isNaN(L)?G=NaN:(G=L,P!==1&&P!==0||(oe=j)):(G=w,F!==1&&F!==0||(oe=k));else{let Te=L-w;L>w&&Te>180?Te-=360:L<w&&w-L>180&&(Te+=360),G=w+p*Te}const[ue,ve,_e,Me]=(function([Te,Ae,ze,We]){return Te=isNaN(Te)?0:Te*$u,Zg([ze,Math.cos(Te)*Ae,Math.sin(Te)*Ae,We])})([G,oe??zl(k,j,p),zl(P,F,p),zl(R,te,p)]);return new sr(ue,ve,_e,Me,!1)}case"lab":{const[w,k,P,R]=Zg(kc(l.lab,c.lab,p));return new sr(w,k,P,R,!1)}}}}sr.black=new sr(0,0,0,1),sr.white=new sr(1,1,1,1),sr.transparent=new sr(0,0,0,0),sr.red=new sr(1,0,0,1);class Jg{constructor(l,c,p){this.sensitivity=l?c?"variant":"case":c?"accent":"base",this.locale=p,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(l,c){return this.collator.compare(l,c)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}const lb=["bottom","center","top"];class Rp{constructor(l,c,p,g,w,k){this.text=l,this.image=c,this.scale=p,this.fontStack=g,this.textColor=w,this.verticalAlign=k}}class Eo{constructor(l){this.sections=l}static fromString(l){return new Eo([new Rp(l,null,null,null,null,null)])}isEmpty(){return this.sections.length===0||!this.sections.some((l=>l.text.length!==0||l.image&&l.image.name.length!==0))}static factory(l){return l instanceof Eo?l:Eo.fromString(l)}toString(){return this.sections.length===0?"":this.sections.map((l=>l.text)).join("")}}class Ga{constructor(l){this.values=l.slice()}static parse(l){if(l instanceof Ga)return l;if(typeof l=="number")return new Ga([l,l,l,l]);if(Array.isArray(l)&&!(l.length<1||l.length>4)){for(const c of l)if(typeof c!="number")return;switch(l.length){case 1:l=[l[0],l[0],l[0],l[0]];break;case 2:l=[l[0],l[1],l[0],l[1]];break;case 3:l=[l[0],l[1],l[2],l[1]]}return new Ga(l)}}toString(){return JSON.stringify(this.values)}static interpolate(l,c,p){return new Ga(kc(l.values,c.values,p))}}class ki{constructor(l){this.values=l.slice()}static parse(l){if(l instanceof ki)return l;if(typeof l=="number")return new ki([l]);if(Array.isArray(l)){for(const c of l)if(typeof c!="number")return;return new ki(l)}}toString(){return JSON.stringify(this.values)}static interpolate(l,c,p){return new ki(kc(l.values,c.values,p))}}class jn{constructor(l){this.values=l.slice()}static parse(l){if(l instanceof jn)return l;if(typeof l=="string"){const p=sr.parse(l);return p?new jn([p]):void 0}if(!Array.isArray(l))return;const c=[];for(const p of l){if(typeof p!="string")return;const g=sr.parse(p);if(!g)return;c.push(g)}return new jn(c)}toString(){return JSON.stringify(this.values)}static interpolate(l,c,p,g="rgb"){const w=[];if(l.values.length!=c.values.length)throw new Error(`colorArray: Arrays have mismatched length (${l.values.length} vs. ${c.values.length}), cannot interpolate.`);for(let k=0;k<l.values.length;k++)w.push(sr.interpolate(l.values[k],c.values[k],p,g));return new jn(w)}}class Gr extends Error{constructor(l){super(l),this.name="RuntimeError"}toJSON(){return this.message}}const Mu=new Set(["center","left","right","top","bottom","top-left","top-right","bottom-left","bottom-right"]);class ho{constructor(l){this.values=l.slice()}static parse(l){if(l instanceof ho)return l;if(Array.isArray(l)&&!(l.length<1)&&l.length%2==0){for(let c=0;c<l.length;c+=2){const p=l[c],g=l[c+1];if(typeof p!="string"||!Mu.has(p)||!Array.isArray(g)||g.length!==2||typeof g[0]!="number"||typeof g[1]!="number")return}return new ho(l)}}toString(){return JSON.stringify(this.values)}static interpolate(l,c,p){const g=l.values,w=c.values;if(g.length!==w.length)throw new Gr(`Cannot interpolate values of different length. from: ${l.toString()}, to: ${c.toString()}`);const k=[];for(let P=0;P<g.length;P+=2){if(g[P]!==w[P])throw new Gr(`Cannot interpolate values containing mismatched anchors. from[${P}]: ${g[P]}, to[${P}]: ${w[P]}`);k.push(g[P]);const[R,L]=g[P+1],[j,F]=w[P+1];k.push([zl(R,j,p),zl(L,F,p)])}return new ho(k)}}class Qo{constructor(l){this.name=l.name,this.available=l.available}toString(){return this.name}static fromString(l){return l?new Qo({name:l,available:!1}):null}}class po{constructor(l,c,p){this.from=l,this.to=c,this.transition=p}static interpolate(l,c,p){return new po(l,c,p)}static parse(l){return l instanceof po?l:Array.isArray(l)&&l.length===3&&typeof l[0]=="string"&&typeof l[1]=="string"&&typeof l[2]=="number"?new po(l[0],l[1],l[2]):typeof l=="object"&&typeof l.from=="string"&&typeof l.to=="string"&&typeof l.transition=="number"?new po(l.from,l.to,l.transition):typeof l=="string"?new po(l,l,1):void 0}}function Bd(d,l,c,p){return typeof d=="number"&&d>=0&&d<=255&&typeof l=="number"&&l>=0&&l<=255&&typeof c=="number"&&c>=0&&c<=255?p===void 0||typeof p=="number"&&p>=0&&p<=1?null:`Invalid rgba value [${[d,l,c,p].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${(typeof p=="number"?[d,l,c,p]:[d,l,c]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function Fr(d){if(d===null||typeof d=="string"||typeof d=="boolean"||typeof d=="number"||d instanceof po||d instanceof sr||d instanceof Jg||d instanceof Eo||d instanceof Ga||d instanceof ki||d instanceof jn||d instanceof ho||d instanceof Qo)return!0;if(Array.isArray(d)){for(const l of d)if(!Fr(l))return!1;return!0}if(typeof d=="object"){for(const l in d)if(!Fr(d[l]))return!1;return!0}return!1}function Xn(d){if(d===null)return ku;if(typeof d=="string")return Kn;if(typeof d=="boolean")return dr;if(typeof d=="number")return mn;if(d instanceof sr)return Jo;if(d instanceof po)return Ip;if(d instanceof Jg)return jf;if(d instanceof Eo)return Eu;if(d instanceof Ga)return Dp;if(d instanceof ki)return Uf;if(d instanceof jn)return Fl;if(d instanceof ho)return Hf;if(d instanceof Qo)return Dd;if(Array.isArray(d)){const l=d.length;let c;for(const p of d){const g=Xn(p);if(c){if(c===g)continue;c=nr;break}c=g}return ba(c||nr,l)}return Bl}function Ec(d){const l=typeof d;return d===null?"":l==="string"||l==="number"||l==="boolean"?String(d):d instanceof sr||d instanceof po||d instanceof Eo||d instanceof Ga||d instanceof ki||d instanceof jn||d instanceof ho||d instanceof Qo?d.toString():JSON.stringify(d)}class dl{constructor(l,c){this.type=l,this.value=c}static parse(l,c){if(l.length!==2)return c.error(`'literal' expression requires exactly one argument, but found ${l.length-1} instead.`);if(!Fr(l[1]))return c.error("invalid value");const p=l[1];let g=Xn(p);const w=c.expectedType;return g.kind!=="array"||g.N!==0||!w||w.kind!=="array"||typeof w.N=="number"&&w.N!==0||(g=w),new dl(g,p)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}}const Bp={string:Kn,number:mn,boolean:dr,object:Bl};class Po{constructor(l,c){this.type=l,this.args=c}static parse(l,c){if(l.length<2)return c.error("Expected at least one argument.");let p,g=1;const w=l[0];if(w==="array"){let P,R;if(l.length>2){const L=l[1];if(typeof L!="string"||!(L in Bp)||L==="object")return c.error('The item type argument of "array" must be one of string, number, boolean',1);P=Bp[L],g++}else P=nr;if(l.length>3){if(l[2]!==null&&(typeof l[2]!="number"||l[2]<0||l[2]!==Math.floor(l[2])))return c.error('The length argument to "array" must be a positive integer literal',2);R=l[2],g++}p=ba(P,R)}else{if(!Bp[w])throw new Error(`Types doesn't contain name = ${w}`);p=Bp[w]}const k=[];for(;g<l.length;g++){const P=c.parse(l[g],g,nr);if(!P)return null;k.push(P)}return new Po(p,k)}evaluate(l){for(let c=0;c<this.args.length;c++){const p=this.args[c].evaluate(l);if(!Ld(this.type,Xn(p)))return p;if(c===this.args.length-1)throw new Gr(`Expected value to be of type ${Vr(this.type)}, but found ${Vr(Xn(p))} instead.`)}throw new Error}eachChild(l){this.args.forEach(l)}outputDefined(){return this.args.every((l=>l.outputDefined()))}}const Pc={"to-boolean":dr,"to-color":Jo,"to-number":mn,"to-string":Kn};class Nl{constructor(l,c){this.type=l,this.args=c}static parse(l,c){if(l.length<2)return c.error("Expected at least one argument.");const p=l[0];if(!Pc[p])throw new Error(`Can't parse ${p} as it is not part of the known types`);if((p==="to-boolean"||p==="to-string")&&l.length!==2)return c.error("Expected one argument.");const g=Pc[p],w=[];for(let k=1;k<l.length;k++){const P=c.parse(l[k],k,nr);if(!P)return null;w.push(P)}return new Nl(g,w)}evaluate(l){switch(this.type.kind){case"boolean":return!!this.args[0].evaluate(l);case"color":{let c,p;for(const g of this.args){if(c=g.evaluate(l),p=null,c instanceof sr)return c;if(typeof c=="string"){const w=l.parseColor(c);if(w)return w}else if(Array.isArray(c)&&(p=c.length<3||c.length>4?`Invalid rgba value ${JSON.stringify(c)}: expected an array containing either three or four numeric values.`:Bd(c[0],c[1],c[2],c[3]),!p))return new sr(c[0]/255,c[1]/255,c[2]/255,c[3])}throw new Gr(p||`Could not parse color from value '${typeof c=="string"?c:JSON.stringify(c)}'`)}case"padding":{let c;for(const p of this.args){c=p.evaluate(l);const g=Ga.parse(c);if(g)return g}throw new Gr(`Could not parse padding from value '${typeof c=="string"?c:JSON.stringify(c)}'`)}case"numberArray":{let c;for(const p of this.args){c=p.evaluate(l);const g=ki.parse(c);if(g)return g}throw new Gr(`Could not parse numberArray from value '${typeof c=="string"?c:JSON.stringify(c)}'`)}case"colorArray":{let c;for(const p of this.args){c=p.evaluate(l);const g=jn.parse(c);if(g)return g}throw new Gr(`Could not parse colorArray from value '${typeof c=="string"?c:JSON.stringify(c)}'`)}case"variableAnchorOffsetCollection":{let c;for(const p of this.args){c=p.evaluate(l);const g=ho.parse(c);if(g)return g}throw new Gr(`Could not parse variableAnchorOffsetCollection from value '${typeof c=="string"?c:JSON.stringify(c)}'`)}case"number":{let c=null;for(const p of this.args){if(c=p.evaluate(l),c===null)return 0;const g=Number(c);if(!isNaN(g))return g}throw new Gr(`Could not convert ${JSON.stringify(c)} to number.`)}case"formatted":return Eo.fromString(Ec(this.args[0].evaluate(l)));case"resolvedImage":return Qo.fromString(Ec(this.args[0].evaluate(l)));case"projectionDefinition":return this.args[0].evaluate(l);default:return Ec(this.args[0].evaluate(l))}}eachChild(l){this.args.forEach(l)}outputDefined(){return this.args.every((l=>l.outputDefined()))}}const Qg=["Unknown","Point","LineString","Polygon"];class e0{constructor(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache=new Map,this.availableImages=null,this.canonical=null}id(){return this.feature&&"id"in this.feature?this.feature.id:null}geometryType(){return this.feature?typeof this.feature.type=="number"?Qg[this.feature.type]:this.feature.type:null}geometry(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null}canonicalID(){return this.canonical}properties(){return this.feature&&this.feature.properties||{}}parseColor(l){let c=this._parseColorCache.get(l);return c||(c=sr.parse(l),this._parseColorCache.set(l,c)),c}}class Di{constructor(l,c,p=[],g,w=new Ap,k=[]){this.registry=l,this.path=p,this.key=p.map((P=>`[${P}]`)).join(""),this.scope=w,this.errors=k,this.expectedType=g,this._isConstant=c}parse(l,c,p,g,w={}){return c?this.concat(c,p,g)._parse(l,w):this._parse(l,w)}_parse(l,c){function p(g,w,k){return k==="assert"?new Po(w,[g]):k==="coerce"?new Nl(w,[g]):g}if(l!==null&&typeof l!="string"&&typeof l!="boolean"&&typeof l!="number"||(l=["literal",l]),Array.isArray(l)){if(l.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');const g=l[0];if(typeof g!="string")return this.error(`Expression name must be a string, but found ${typeof g} instead. If you wanted a literal array, use ["literal", [...]].`,0),null;const w=this.registry[g];if(w){let k=w.parse(l,this);if(!k)return null;if(this.expectedType){const P=this.expectedType,R=k.type;if(P.kind!=="string"&&P.kind!=="number"&&P.kind!=="boolean"&&P.kind!=="object"&&P.kind!=="array"||R.kind!=="value"){if(P.kind==="projectionDefinition"&&["string","array"].includes(R.kind)||["color","formatted","resolvedImage"].includes(P.kind)&&["value","string"].includes(R.kind)||["padding","numberArray"].includes(P.kind)&&["value","number","array"].includes(R.kind)||P.kind==="colorArray"&&["value","string","array"].includes(R.kind)||P.kind==="variableAnchorOffsetCollection"&&["value","array"].includes(R.kind))k=p(k,P,c.typeAnnotation||"coerce");else if(this.checkSubtype(P,R))return null}else k=p(k,P,c.typeAnnotation||"assert")}if(!(k instanceof dl)&&k.type.kind!=="resolvedImage"&&this._isConstant(k)){const P=new e0;try{k=new dl(k.type,k.evaluate(P))}catch(R){return this.error(R.message),null}}return k}return this.error(`Unknown expression "${g}". If you wanted a literal array, use ["literal", [...]].`,0)}return this.error(l===void 0?"'undefined' value invalid. Use null instead.":typeof l=="object"?'Bare objects invalid. Use ["literal", {...}] instead.':`Expected an array, but found ${typeof l} instead.`)}concat(l,c,p){const g=typeof l=="number"?this.path.concat(l):this.path,w=p?this.scope.concat(p):this.scope;return new Di(this.registry,this._isConstant,g,c||null,w,this.errors)}error(l,...c){const p=`${this.key}${c.map((g=>`[${g}]`)).join("")}`;this.errors.push(new Ia(p,l))}checkSubtype(l,c){const p=Ld(l,c);return p&&this.error(p),p}}class Yr{constructor(l,c){this.type=c.type,this.bindings=[].concat(l),this.result=c}evaluate(l){return this.result.evaluate(l)}eachChild(l){for(const c of this.bindings)l(c[1]);l(this.result)}static parse(l,c){if(l.length<4)return c.error(`Expected at least 3 arguments, but found ${l.length-1} instead.`);const p=[];for(let w=1;w<l.length-1;w+=2){const k=l[w];if(typeof k!="string")return c.error(`Expected string, but found ${typeof k} instead.`,w);if(/[^a-zA-Z0-9_]/.test(k))return c.error("Variable names must contain only alphanumeric characters or '_'.",w);const P=c.parse(l[w+1],w+1);if(!P)return null;p.push([k,P])}const g=c.parse(l[l.length-1],l.length-1,c.expectedType,p);return g?new Yr(p,g):null}outputDefined(){return this.result.outputDefined()}}class Cs{constructor(l,c){this.type=c.type,this.name=l,this.boundExpression=c}static parse(l,c){if(l.length!==2||typeof l[1]!="string")return c.error("'var' expression requires exactly one string literal argument.");const p=l[1];return c.scope.has(p)?new Cs(p,c.scope.get(p)):c.error(`Unknown variable "${p}". Make sure "${p}" has been bound in an enclosing "let" expression before using it.`,1)}evaluate(l){return this.boundExpression.evaluate(l)}eachChild(){}outputDefined(){return!1}}class Cr{constructor(l,c,p){this.type=l,this.index=c,this.input=p}static parse(l,c){if(l.length!==3)return c.error(`Expected 2 arguments, but found ${l.length-1} instead.`);const p=c.parse(l[1],1,mn),g=c.parse(l[2],2,ba(c.expectedType||nr));return p&&g?new Cr(g.type.itemType,p,g):null}evaluate(l){const c=this.index.evaluate(l),p=this.input.evaluate(l);if(c<0)throw new Gr(`Array index out of bounds: ${c} < 0.`);if(c>=p.length)throw new Gr(`Array index out of bounds: ${c} > ${p.length-1}.`);if(c!==Math.floor(c))throw new Gr(`Array index must be an integer, but found ${c} instead.`);return p[c]}eachChild(l){l(this.index),l(this.input)}outputDefined(){return!1}}class Jn{constructor(l,c){this.type=dr,this.needle=l,this.haystack=c}static parse(l,c){if(l.length!==3)return c.error(`Expected 2 arguments, but found ${l.length-1} instead.`);const p=c.parse(l[1],1,nr),g=c.parse(l[2],2,nr);return p&&g?Gf(p.type,[dr,Kn,mn,ku,nr])?new Jn(p,g):c.error(`Expected first argument to be of type boolean, string, number or null, but found ${Vr(p.type)} instead`):null}evaluate(l){const c=this.needle.evaluate(l),p=this.haystack.evaluate(l);if(!p)return!1;if(!Tc(c,["boolean","string","number","null"]))throw new Gr(`Expected first argument to be of type boolean, string, number or null, but found ${Vr(Xn(c))} instead.`);if(!Tc(p,["string","array"]))throw new Gr(`Expected second argument to be of type array or string, but found ${Vr(Xn(p))} instead.`);return p.indexOf(c)>=0}eachChild(l){l(this.needle),l(this.haystack)}outputDefined(){return!0}}class Da{constructor(l,c,p){this.type=mn,this.needle=l,this.haystack=c,this.fromIndex=p}static parse(l,c){if(l.length<=2||l.length>=5)return c.error(`Expected 2 or 3 arguments, but found ${l.length-1} instead.`);const p=c.parse(l[1],1,nr),g=c.parse(l[2],2,nr);if(!p||!g)return null;if(!Gf(p.type,[dr,Kn,mn,ku,nr]))return c.error(`Expected first argument to be of type boolean, string, number or null, but found ${Vr(p.type)} instead`);if(l.length===4){const w=c.parse(l[3],3,mn);return w?new Da(p,g,w):null}return new Da(p,g)}evaluate(l){const c=this.needle.evaluate(l),p=this.haystack.evaluate(l);if(!Tc(c,["boolean","string","number","null"]))throw new Gr(`Expected first argument to be of type boolean, string, number or null, but found ${Vr(Xn(c))} instead.`);let g;if(this.fromIndex&&(g=this.fromIndex.evaluate(l)),Tc(p,["string"])){const w=p.indexOf(c,g);return w===-1?-1:[...p.slice(0,w)].length}if(Tc(p,["array"]))return p.indexOf(c,g);throw new Gr(`Expected second argument to be of type array or string, but found ${Vr(Xn(p))} instead.`)}eachChild(l){l(this.needle),l(this.haystack),this.fromIndex&&l(this.fromIndex)}outputDefined(){return!1}}class kr{constructor(l,c,p,g,w,k){this.inputType=l,this.type=c,this.input=p,this.cases=g,this.outputs=w,this.otherwise=k}static parse(l,c){if(l.length<5)return c.error(`Expected at least 4 arguments, but found only ${l.length-1}.`);if(l.length%2!=1)return c.error("Expected an even number of arguments.");let p,g;c.expectedType&&c.expectedType.kind!=="value"&&(g=c.expectedType);const w={},k=[];for(let L=2;L<l.length-1;L+=2){let j=l[L];const F=l[L+1];Array.isArray(j)||(j=[j]);const te=c.concat(L);if(j.length===0)return te.error("Expected at least one branch label.");for(const oe of j){if(typeof oe!="number"&&typeof oe!="string")return te.error("Branch labels must be numbers or strings.");if(typeof oe=="number"&&Math.abs(oe)>Number.MAX_SAFE_INTEGER)return te.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if(typeof oe=="number"&&Math.floor(oe)!==oe)return te.error("Numeric branch labels must be integer values.");if(p){if(te.checkSubtype(p,Xn(oe)))return null}else p=Xn(oe);if(w[String(oe)]!==void 0)return te.error("Branch labels must be unique.");w[String(oe)]=k.length}const G=c.parse(F,L,g);if(!G)return null;g=g||G.type,k.push(G)}const P=c.parse(l[1],1,nr);if(!P)return null;const R=c.parse(l[l.length-1],l.length-1,g);return R?P.type.kind!=="value"&&c.concat(1).checkSubtype(p,P.type)?null:new kr(p,g,P,w,k,R):null}evaluate(l){const c=this.input.evaluate(l);return(Xn(c)===this.inputType&&this.outputs[this.cases[c]]||this.otherwise).evaluate(l)}eachChild(l){l(this.input),this.outputs.forEach(l),l(this.otherwise)}outputDefined(){return this.outputs.every((l=>l.outputDefined()))&&this.otherwise.outputDefined()}}class Ts{constructor(l,c,p){this.type=l,this.branches=c,this.otherwise=p}static parse(l,c){if(l.length<4)return c.error(`Expected at least 3 arguments, but found only ${l.length-1}.`);if(l.length%2!=0)return c.error("Expected an odd number of arguments.");let p;c.expectedType&&c.expectedType.kind!=="value"&&(p=c.expectedType);const g=[];for(let k=1;k<l.length-1;k+=2){const P=c.parse(l[k],k,dr);if(!P)return null;const R=c.parse(l[k+1],k+1,p);if(!R)return null;g.push([P,R]),p=p||R.type}const w=c.parse(l[l.length-1],l.length-1,p);if(!w)return null;if(!p)throw new Error("Can't infer output type");return new Ts(p,g,w)}evaluate(l){for(const[c,p]of this.branches)if(c.evaluate(l))return p.evaluate(l);return this.otherwise.evaluate(l)}eachChild(l){for(const[c,p]of this.branches)l(c),l(p);l(this.otherwise)}outputDefined(){return this.branches.every((([l,c])=>c.outputDefined()))&&this.otherwise.outputDefined()}}class $c{constructor(l,c,p,g){this.type=l,this.input=c,this.beginIndex=p,this.endIndex=g}static parse(l,c){if(l.length<=2||l.length>=5)return c.error(`Expected 2 or 3 arguments, but found ${l.length-1} instead.`);const p=c.parse(l[1],1,nr),g=c.parse(l[2],2,mn);if(!p||!g)return null;if(!Gf(p.type,[ba(nr),Kn,nr]))return c.error(`Expected first argument to be of type array or string, but found ${Vr(p.type)} instead`);if(l.length===4){const w=c.parse(l[3],3,mn);return w?new $c(p.type,p,g,w):null}return new $c(p.type,p,g)}evaluate(l){const c=this.input.evaluate(l),p=this.beginIndex.evaluate(l);let g;if(this.endIndex&&(g=this.endIndex.evaluate(l)),Tc(c,["string"]))return[...c].slice(p,g).join("");if(Tc(c,["array"]))return c.slice(p,g);throw new Gr(`Expected first argument to be of type array or string, but found ${Vr(Xn(c))} instead.`)}eachChild(l){l(this.input),l(this.beginIndex),this.endIndex&&l(this.endIndex)}outputDefined(){return!1}}function Au(d,l){const c=d.length-1;let p,g,w=0,k=c,P=0;for(;w<=k;)if(P=Math.floor((w+k)/2),p=d[P],g=d[P+1],p<=l){if(P===c||l<g)return P;w=P+1}else{if(!(p>l))throw new Gr("Input is not a number.");k=P-1}return 0}class Mc{constructor(l,c,p){this.type=l,this.input=c,this.labels=[],this.outputs=[];for(const[g,w]of p)this.labels.push(g),this.outputs.push(w)}static parse(l,c){if(l.length-1<4)return c.error(`Expected at least 4 arguments, but found only ${l.length-1}.`);if((l.length-1)%2!=0)return c.error("Expected an even number of arguments.");const p=c.parse(l[1],1,mn);if(!p)return null;const g=[];let w=null;c.expectedType&&c.expectedType.kind!=="value"&&(w=c.expectedType);for(let k=1;k<l.length;k+=2){const P=k===1?-1/0:l[k],R=l[k+1],L=k,j=k+1;if(typeof P!="number")return c.error('Input/output pairs for "step" expressions must be defined using literal numeric values (not computed expressions) for the input values.',L);if(g.length&&g[g.length-1][0]>=P)return c.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',L);const F=c.parse(R,j,w);if(!F)return null;w=w||F.type,g.push([P,F])}return new Mc(w,p,g)}evaluate(l){const c=this.labels,p=this.outputs;if(c.length===1)return p[0].evaluate(l);const g=this.input.evaluate(l);if(g<=c[0])return p[0].evaluate(l);const w=c.length;return g>=c[w-1]?p[w-1].evaluate(l):p[Au(c,g)].evaluate(l)}eachChild(l){l(this.input);for(const c of this.outputs)l(c)}outputDefined(){return this.outputs.every((l=>l.outputDefined()))}}function Fp(d){return d&&d.__esModule&&Object.prototype.hasOwnProperty.call(d,"default")?d.default:d}var Ya,x1,$o=(function(){if(x1)return Ya;function d(l,c,p,g){this.cx=3*l,this.bx=3*(p-l)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*c,this.by=3*(g-c)-this.cy,this.ay=1-this.cy-this.by,this.p1x=l,this.p1y=c,this.p2x=p,this.p2y=g}return x1=1,Ya=d,d.prototype={sampleCurveX:function(l){return((this.ax*l+this.bx)*l+this.cx)*l},sampleCurveY:function(l){return((this.ay*l+this.by)*l+this.cy)*l},sampleCurveDerivativeX:function(l){return(3*this.ax*l+2*this.bx)*l+this.cx},solveCurveX:function(l,c){if(c===void 0&&(c=1e-6),l<0)return 0;if(l>1)return 1;for(var p=l,g=0;g<8;g++){var w=this.sampleCurveX(p)-l;if(Math.abs(w)<c)return p;var k=this.sampleCurveDerivativeX(p);if(Math.abs(k)<1e-6)break;p-=w/k}var P=0,R=1;for(p=l,g=0;g<20&&(w=this.sampleCurveX(p),!(Math.abs(w-l)<c));g++)l>w?P=p:R=p,p=.5*(R-P)+P;return p},solve:function(l,c){return this.sampleCurveY(this.solveCurveX(l,c))}},Ya})(),w1=Fp($o);class Fi{constructor(l,c,p,g,w){this.type=l,this.operator=c,this.interpolation=p,this.input=g,this.labels=[],this.outputs=[];for(const[k,P]of w)this.labels.push(k),this.outputs.push(P)}static interpolationFactor(l,c,p,g){let w=0;if(l.name==="exponential")w=wi(c,l.base,p,g);else if(l.name==="linear")w=wi(c,1,p,g);else if(l.name==="cubic-bezier"){const k=l.controlPoints;w=new w1(k[0],k[1],k[2],k[3]).solve(wi(c,1,p,g))}return w}static parse(l,c){let[p,g,w,...k]=l;if(!Array.isArray(g)||g.length===0)return c.error("Expected an interpolation type expression.",1);if(g[0]==="linear")g={name:"linear"};else if(g[0]==="exponential"){const L=g[1];if(typeof L!="number")return c.error("Exponential interpolation requires a numeric base.",1,1);g={name:"exponential",base:L}}else{if(g[0]!=="cubic-bezier")return c.error(`Unknown interpolation type ${String(g[0])}`,1,0);{const L=g.slice(1);if(L.length!==4||L.some((j=>typeof j!="number"||j<0||j>1)))return c.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);g={name:"cubic-bezier",controlPoints:L}}}if(l.length-1<4)return c.error(`Expected at least 4 arguments, but found only ${l.length-1}.`);if((l.length-1)%2!=0)return c.error("Expected an even number of arguments.");if(w=c.parse(w,2,mn),!w)return null;const P=[];let R=null;p!=="interpolate-hcl"&&p!=="interpolate-lab"||c.expectedType==Fl?c.expectedType&&c.expectedType.kind!=="value"&&(R=c.expectedType):R=Jo;for(let L=0;L<k.length;L+=2){const j=k[L],F=k[L+1],te=L+3,G=L+4;if(typeof j!="number")return c.error('Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not computed expressions) for the input values.',te);if(P.length&&P[P.length-1][0]>=j)return c.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',te);const oe=c.parse(F,G,R);if(!oe)return null;R=R||oe.type,P.push([j,oe])}return Hs(R,mn)||Hs(R,Ip)||Hs(R,Jo)||Hs(R,Dp)||Hs(R,Uf)||Hs(R,Fl)||Hs(R,Hf)||Hs(R,ba(mn))?new Fi(R,p,g,w,P):c.error(`Type ${Vr(R)} is not interpolatable.`)}evaluate(l){const c=this.labels,p=this.outputs;if(c.length===1)return p[0].evaluate(l);const g=this.input.evaluate(l);if(g<=c[0])return p[0].evaluate(l);const w=c.length;if(g>=c[w-1])return p[w-1].evaluate(l);const k=Au(c,g),P=Fi.interpolationFactor(this.interpolation,g,c[k],c[k+1]),R=p[k].evaluate(l),L=p[k+1].evaluate(l);switch(this.operator){case"interpolate":switch(this.type.kind){case"number":return zl(R,L,P);case"color":return sr.interpolate(R,L,P);case"padding":return Ga.interpolate(R,L,P);case"colorArray":return jn.interpolate(R,L,P);case"numberArray":return ki.interpolate(R,L,P);case"variableAnchorOffsetCollection":return ho.interpolate(R,L,P);case"array":return kc(R,L,P);case"projectionDefinition":return po.interpolate(R,L,P)}case"interpolate-hcl":switch(this.type.kind){case"color":return sr.interpolate(R,L,P,"hcl");case"colorArray":return jn.interpolate(R,L,P,"hcl")}case"interpolate-lab":switch(this.type.kind){case"color":return sr.interpolate(R,L,P,"lab");case"colorArray":return jn.interpolate(R,L,P,"lab")}}}eachChild(l){l(this.input);for(const c of this.outputs)l(c)}outputDefined(){return this.outputs.every((l=>l.outputDefined()))}}function wi(d,l,c,p){const g=p-c,w=d-c;return g===0?0:l===1?w/g:(Math.pow(l,w)-1)/(Math.pow(l,g)-1)}const Za={color:sr.interpolate,number:zl,padding:Ga.interpolate,numberArray:ki.interpolate,colorArray:jn.interpolate,variableAnchorOffsetCollection:ho.interpolate,array:kc};class Ac{constructor(l,c){this.type=l,this.args=c}static parse(l,c){if(l.length<2)return c.error("Expected at least one argument.");let p=null;const g=c.expectedType;g&&g.kind!=="value"&&(p=g);const w=[];for(const P of l.slice(1)){const R=c.parse(P,1+w.length,p,void 0,{typeAnnotation:"omit"});if(!R)return null;p=p||R.type,w.push(R)}if(!p)throw new Error("No output type");const k=g&&w.some((P=>Ld(g,P.type)));return new Ac(k?nr:p,w)}evaluate(l){let c,p=null,g=0;for(const w of this.args)if(g++,p=w.evaluate(l),p&&p instanceof Qo&&!p.available&&(c||(c=p.name),p=null,g===this.args.length&&(p=c)),p!==null)break;return p}eachChild(l){this.args.forEach(l)}outputDefined(){return this.args.every((l=>l.outputDefined()))}}function ni(d,l){return d==="=="||d==="!="?l.kind==="boolean"||l.kind==="string"||l.kind==="number"||l.kind==="null"||l.kind==="value":l.kind==="string"||l.kind==="number"||l.kind==="value"}function gi(d,l,c,p){return p.compare(l,c)===0}function Vl(d,l,c){const p=d!=="=="&&d!=="!=";return class jW{constructor(w,k,P){this.type=dr,this.lhs=w,this.rhs=k,this.collator=P,this.hasUntypedArgument=w.type.kind==="value"||k.type.kind==="value"}static parse(w,k){if(w.length!==3&&w.length!==4)return k.error("Expected two or three arguments.");const P=w[0];let R=k.parse(w[1],1,nr);if(!R)return null;if(!ni(P,R.type))return k.concat(1).error(`"${P}" comparisons are not supported for type '${Vr(R.type)}'.`);let L=k.parse(w[2],2,nr);if(!L)return null;if(!ni(P,L.type))return k.concat(2).error(`"${P}" comparisons are not supported for type '${Vr(L.type)}'.`);if(R.type.kind!==L.type.kind&&R.type.kind!=="value"&&L.type.kind!=="value")return k.error(`Cannot compare types '${Vr(R.type)}' and '${Vr(L.type)}'.`);p&&(R.type.kind==="value"&&L.type.kind!=="value"?R=new Po(L.type,[R]):R.type.kind!=="value"&&L.type.kind==="value"&&(L=new Po(R.type,[L])));let j=null;if(w.length===4){if(R.type.kind!=="string"&&L.type.kind!=="string"&&R.type.kind!=="value"&&L.type.kind!=="value")return k.error("Cannot use collator to compare non-string types.");if(j=k.parse(w[3],3,jf),!j)return null}return new jW(R,L,j)}evaluate(w){const k=this.lhs.evaluate(w),P=this.rhs.evaluate(w);if(p&&this.hasUntypedArgument){const R=Xn(k),L=Xn(P);if(R.kind!==L.kind||R.kind!=="string"&&R.kind!=="number")throw new Gr(`Expected arguments for "${d}" to be (string, string) or (number, number), but found (${R.kind}, ${L.kind}) instead.`)}if(this.collator&&!p&&this.hasUntypedArgument){const R=Xn(k),L=Xn(P);if(R.kind!=="string"||L.kind!=="string")return l(w,k,P)}return this.collator?c(w,k,P,this.collator.evaluate(w)):l(w,k,P)}eachChild(w){w(this.lhs),w(this.rhs),this.collator&&w(this.collator)}outputDefined(){return!0}}}const t0=Vl("==",(function(d,l,c){return l===c}),gi),zp=Vl("!=",(function(d,l,c){return l!==c}),(function(d,l,c,p){return!gi(0,l,c,p)})),ub=Vl("<",(function(d,l,c){return l<c}),(function(d,l,c,p){return p.compare(l,c)<0})),Fd=Vl(">",(function(d,l,c){return l>c}),(function(d,l,c,p){return p.compare(l,c)>0})),Np=Vl("<=",(function(d,l,c){return l<=c}),(function(d,l,c,p){return p.compare(l,c)<=0})),Vp=Vl(">=",(function(d,l,c){return l>=c}),(function(d,l,c,p){return p.compare(l,c)>=0}));class Ic{constructor(l,c,p){this.type=jf,this.locale=p,this.caseSensitive=l,this.diacriticSensitive=c}static parse(l,c){if(l.length!==2)return c.error("Expected one argument.");const p=l[1];if(typeof p!="object"||Array.isArray(p))return c.error("Collator options argument must be an object.");const g=c.parse(p["case-sensitive"]!==void 0&&p["case-sensitive"],1,dr);if(!g)return null;const w=c.parse(p["diacritic-sensitive"]!==void 0&&p["diacritic-sensitive"],1,dr);if(!w)return null;let k=null;return p.locale&&(k=c.parse(p.locale,1,Kn),!k)?null:new Ic(g,w,k)}evaluate(l){return new Jg(this.caseSensitive.evaluate(l),this.diacriticSensitive.evaluate(l),this.locale?this.locale.evaluate(l):null)}eachChild(l){l(this.caseSensitive),l(this.diacriticSensitive),this.locale&&l(this.locale)}outputDefined(){return!1}}class ql{constructor(l,c,p,g,w,k){this.type=Kn,this.number=l,this.locale=c,this.currency=p,this.unit=g,this.minFractionDigits=w,this.maxFractionDigits=k}static parse(l,c){if(l.length!==3)return c.error("Expected two arguments.");const p=c.parse(l[1],1,mn);if(!p)return null;const g=l[2];if(typeof g!="object"||Array.isArray(g))return c.error("NumberFormat options argument must be an object.");let w=null;if(g.locale&&(w=c.parse(g.locale,1,Kn),!w))return null;let k=null;if(g.currency&&(k=c.parse(g.currency,1,Kn),!k))return null;let P=null;if(g.unit&&(P=c.parse(g.unit,1,Kn),!P))return null;if(k&&P)return c.error("NumberFormat options `currency` and `unit` are mutually exclusive");let R=null;if(g["min-fraction-digits"]&&(R=c.parse(g["min-fraction-digits"],1,mn),!R))return null;let L=null;return g["max-fraction-digits"]&&(L=c.parse(g["max-fraction-digits"],1,mn),!L)?null:new ql(p,w,k,P,R,L)}evaluate(l){return new Intl.NumberFormat(this.locale?this.locale.evaluate(l):[],{style:this.currency?"currency":this.unit?"unit":"decimal",currency:this.currency?this.currency.evaluate(l):void 0,unit:this.unit?this.unit.evaluate(l):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(l):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(l):void 0}).format(this.number.evaluate(l))}eachChild(l){l(this.number),this.locale&&l(this.locale),this.currency&&l(this.currency),this.unit&&l(this.unit),this.minFractionDigits&&l(this.minFractionDigits),this.maxFractionDigits&&l(this.maxFractionDigits)}outputDefined(){return!1}}class Dc{constructor(l){this.type=Eu,this.sections=l}static parse(l,c){if(l.length<2)return c.error("Expected at least one argument.");const p=l[1];if(!Array.isArray(p)&&typeof p=="object")return c.error("First argument must be an image or text section.");const g=[];let w=!1;for(let k=1;k<=l.length-1;++k){const P=l[k];if(w&&typeof P=="object"&&!Array.isArray(P)){w=!1;let R=null;if(P["font-scale"]&&(R=c.parse(P["font-scale"],1,mn),!R))return null;let L=null;if(P["text-font"]&&(L=c.parse(P["text-font"],1,ba(Kn)),!L))return null;let j=null;if(P["text-color"]&&(j=c.parse(P["text-color"],1,Jo),!j))return null;let F=null;if(P["vertical-align"]){if(typeof P["vertical-align"]=="string"&&!lb.includes(P["vertical-align"]))return c.error(`'vertical-align' must be one of: 'bottom', 'center', 'top' but found '${P["vertical-align"]}' instead.`);if(F=c.parse(P["vertical-align"],1,Kn),!F)return null}const te=g[g.length-1];te.scale=R,te.font=L,te.textColor=j,te.verticalAlign=F}else{const R=c.parse(l[k],1,nr);if(!R)return null;const L=R.type.kind;if(L!=="string"&&L!=="value"&&L!=="null"&&L!=="resolvedImage")return c.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");w=!0,g.push({content:R,scale:null,font:null,textColor:null,verticalAlign:null})}}return new Dc(g)}evaluate(l){return new Eo(this.sections.map((c=>{const p=c.content.evaluate(l);return Xn(p)===Dd?new Rp("",p,null,null,null,c.verticalAlign?c.verticalAlign.evaluate(l):null):new Rp(Ec(p),null,c.scale?c.scale.evaluate(l):null,c.font?c.font.evaluate(l).join(","):null,c.textColor?c.textColor.evaluate(l):null,c.verticalAlign?c.verticalAlign.evaluate(l):null)})))}eachChild(l){for(const c of this.sections)l(c.content),c.scale&&l(c.scale),c.font&&l(c.font),c.textColor&&l(c.textColor),c.verticalAlign&&l(c.verticalAlign)}outputDefined(){return!1}}class Lc{constructor(l){this.type=Dd,this.input=l}static parse(l,c){if(l.length!==2)return c.error("Expected two arguments.");const p=c.parse(l[1],1,Kn);return p?new Lc(p):c.error("No image name provided.")}evaluate(l){const c=this.input.evaluate(l),p=Qo.fromString(c);return p&&l.availableImages&&(p.available=l.availableImages.indexOf(c)>-1),p}eachChild(l){l(this.input)}outputDefined(){return!1}}class Mo{constructor(l){this.type=mn,this.input=l}static parse(l,c){if(l.length!==2)return c.error(`Expected 1 argument, but found ${l.length-1} instead.`);const p=c.parse(l[1],1);return p?p.type.kind!=="array"&&p.type.kind!=="string"&&p.type.kind!=="value"?c.error(`Expected argument of type string or array, but found ${Vr(p.type)} instead.`):new Mo(p):null}evaluate(l){const c=this.input.evaluate(l);if(typeof c=="string")return[...c].length;if(Array.isArray(c))return c.length;throw new Gr(`Expected value to be of type string or array, but found ${Vr(Xn(c))} instead.`)}eachChild(l){l(this.input)}outputDefined(){return!1}}const es=8192;function zd(d,l){const c=(180+d[0])/360,p=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+d[1]*Math.PI/360)))/360,g=Math.pow(2,l.z);return[Math.round(c*g*es),Math.round(p*g*es)]}function qp(d,l){const c=Math.pow(2,l.z);return[(g=(d[0]/es+l.x)/c,360*g-180),(p=(d[1]/es+l.y)/c,360/Math.PI*Math.atan(Math.exp((180-360*p)*Math.PI/180))-90)];var p,g}function Oc(d,l){d[0]=Math.min(d[0],l[0]),d[1]=Math.min(d[1],l[1]),d[2]=Math.max(d[2],l[0]),d[3]=Math.max(d[3],l[1])}function Rc(d,l){return!(d[0]<=l[0]||d[2]>=l[2]||d[1]<=l[1]||d[3]>=l[3])}function n0(d,l,c){const p=d[0]-l[0],g=d[1]-l[1],w=d[0]-c[0],k=d[1]-c[1];return p*k-w*g==0&&p*w<=0&&g*k<=0}function jp(d,l,c,p){return(g=[p[0]-c[0],p[1]-c[1]])[0]*(w=[l[0]-d[0],l[1]-d[1]])[1]-g[1]*w[0]!=0&&!(!a0(d,l,c,p)||!a0(c,p,d,l));var g,w}function S1(d,l,c){for(const p of c)for(let g=0;g<p.length-1;++g)if(jp(d,l,p[g],p[g+1]))return!0;return!1}function Gi(d,l,c=!1){let p=!1;for(const P of l)for(let R=0;R<P.length-1;R++){if(n0(d,P[R],P[R+1]))return c;(w=P[R])[1]>(g=d)[1]!=(k=P[R+1])[1]>g[1]&&g[0]<(k[0]-w[0])*(g[1]-w[1])/(k[1]-w[1])+w[0]&&(p=!p)}var g,w,k;return p}function r0(d,l){for(const c of l)if(Gi(d,c))return!0;return!1}function Bc(d,l){for(const c of d)if(!Gi(c,l))return!1;for(let c=0;c<d.length-1;++c)if(S1(d[c],d[c+1],l))return!1;return!0}function i0(d,l){for(const c of l)if(Bc(d,c))return!0;return!1}function a0(d,l,c,p){const g=p[0]-c[0],w=p[1]-c[1],k=(d[0]-c[0])*w-g*(d[1]-c[1]),P=(l[0]-c[0])*w-g*(l[1]-c[1]);return k>0&&P<0||k<0&&P>0}function Up(d,l,c){const p=[];for(let g=0;g<d.length;g++){const w=[];for(let k=0;k<d[g].length;k++){const P=zd(d[g][k],c);Oc(l,P),w.push(P)}p.push(w)}return p}function C1(d,l,c){const p=[];for(let g=0;g<d.length;g++){const w=Up(d[g],l,c);p.push(w)}return p}function T1(d,l,c,p){if(d[0]<c[0]||d[0]>c[2]){const g=.5*p;let w=d[0]-c[0]>g?-p:c[0]-d[0]>g?p:0;w===0&&(w=d[0]-c[2]>g?-p:c[2]-d[0]>g?p:0),d[0]+=w}Oc(l,d)}function k1(d,l,c,p){const g=Math.pow(2,p.z)*es,w=[p.x*es,p.y*es],k=[];for(const P of d)for(const R of P){const L=[R.x+w[0],R.y+w[1]];T1(L,l,c,g),k.push(L)}return k}function E1(d,l,c,p){const g=Math.pow(2,p.z)*es,w=[p.x*es,p.y*es],k=[];for(const R of d){const L=[];for(const j of R){const F=[j.x+w[0],j.y+w[1]];Oc(l,F),L.push(F)}k.push(L)}if(l[2]-l[0]<=g/2){(P=l)[0]=P[1]=1/0,P[2]=P[3]=-1/0;for(const R of k)for(const L of R)T1(L,l,c,g)}var P;return k}class ks{constructor(l,c){this.type=dr,this.geojson=l,this.geometries=c}static parse(l,c){if(l.length!==2)return c.error(`'within' expression requires exactly one argument, but found ${l.length-1} instead.`);if(Fr(l[1])){const p=l[1];if(p.type==="FeatureCollection"){const g=[];for(const w of p.features){const{type:k,coordinates:P}=w.geometry;k==="Polygon"&&g.push(P),k==="MultiPolygon"&&g.push(...P)}if(g.length)return new ks(p,{type:"MultiPolygon",coordinates:g})}else if(p.type==="Feature"){const g=p.geometry.type;if(g==="Polygon"||g==="MultiPolygon")return new ks(p,p.geometry)}else if(p.type==="Polygon"||p.type==="MultiPolygon")return new ks(p,p)}return c.error("'within' expression requires valid geojson object that contains polygon geometry type.")}evaluate(l){if(l.geometry()!=null&&l.canonicalID()!=null){if(l.geometryType()==="Point")return(function(c,p){const g=[1/0,1/0,-1/0,-1/0],w=[1/0,1/0,-1/0,-1/0],k=c.canonicalID();if(p.type==="Polygon"){const P=Up(p.coordinates,w,k),R=k1(c.geometry(),g,w,k);if(!Rc(g,w))return!1;for(const L of R)if(!Gi(L,P))return!1}if(p.type==="MultiPolygon"){const P=C1(p.coordinates,w,k),R=k1(c.geometry(),g,w,k);if(!Rc(g,w))return!1;for(const L of R)if(!r0(L,P))return!1}return!0})(l,this.geometries);if(l.geometryType()==="LineString")return(function(c,p){const g=[1/0,1/0,-1/0,-1/0],w=[1/0,1/0,-1/0,-1/0],k=c.canonicalID();if(p.type==="Polygon"){const P=Up(p.coordinates,w,k),R=E1(c.geometry(),g,w,k);if(!Rc(g,w))return!1;for(const L of R)if(!Bc(L,P))return!1}if(p.type==="MultiPolygon"){const P=C1(p.coordinates,w,k),R=E1(c.geometry(),g,w,k);if(!Rc(g,w))return!1;for(const L of R)if(!i0(L,P))return!1}return!0})(l,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}}let o0=class{constructor(d=[],l=(c,p)=>c<p?-1:c>p?1:0){if(this.data=d,this.length=this.data.length,this.compare=l,this.length>0)for(let c=(this.length>>1)-1;c>=0;c--)this._down(c)}push(d){this.data.push(d),this._up(this.length++)}pop(){if(this.length===0)return;const d=this.data[0],l=this.data.pop();return--this.length>0&&(this.data[0]=l,this._down(0)),d}peek(){return this.data[0]}_up(d){const{data:l,compare:c}=this,p=l[d];for(;d>0;){const g=d-1>>1,w=l[g];if(c(p,w)>=0)break;l[d]=w,d=g}l[d]=p}_down(d){const{data:l,compare:c}=this,p=this.length>>1,g=l[d];for(;d<p;){let w=1+(d<<1);const k=w+1;if(k<this.length&&c(l[k],l[w])<0&&(w=k),c(l[w],g)>=0)break;l[d]=l[w],d=w}l[d]=g}};function s0(d,l,c=0,p=d.length-1,g=P1){for(;p>c;){if(p-c>600){const R=p-c+1,L=l-c+1,j=Math.log(R),F=.5*Math.exp(2*j/3),te=.5*Math.sqrt(j*F*(R-F)/R)*(L-R/2<0?-1:1);s0(d,l,Math.max(c,Math.floor(l-L*F/R+te)),Math.min(p,Math.floor(l+(R-L)*F/R+te)),g)}const w=d[l];let k=c,P=p;for(Iu(d,c,l),g(d[p],w)>0&&Iu(d,c,p);k<P;){for(Iu(d,k,P),k++,P--;g(d[k],w)<0;)k++;for(;g(d[P],w)>0;)P--}g(d[c],w)===0?Iu(d,c,P):(P++,Iu(d,P,p)),P<=l&&(c=P+1),l<=P&&(p=P-1)}}function Iu(d,l,c){const p=d[l];d[l]=d[c],d[c]=p}function P1(d,l){return d<l?-1:d>l?1:0}function Ws(d,l){if(d.length<=1)return[d];const c=[];let p,g;for(const w of d){const k=cb(w);k!==0&&(w.area=Math.abs(k),g===void 0&&(g=k<0),g===k<0?(p&&c.push(p),p=[w]):p.push(w))}if(p&&c.push(p),l>1)for(let w=0;w<c.length;w++)c[w].length<=l||(s0(c[w],l,1,c[w].length-1,Hp),c[w]=c[w].slice(0,l));return c}function Hp(d,l){return l.area-d.area}function cb(d){let l=0;for(let c,p,g=0,w=d.length,k=w-1;g<w;k=g++)c=d[g],p=d[k],l+=(p.x-c.x)*(c.y+p.y);return l}const Qf=1/298.257223563,$1=Qf*(2-Qf),Fc=Math.PI/180;class ts{constructor(l){const c=6378.137*Fc*1e3,p=Math.cos(l*Fc),g=1/(1-$1*(1-p*p)),w=Math.sqrt(g);this.kx=c*w*p,this.ky=c*w*g*(1-$1)}distance(l,c){const p=this.wrap(l[0]-c[0])*this.kx,g=(l[1]-c[1])*this.ky;return Math.sqrt(p*p+g*g)}pointOnLine(l,c){let p,g,w,k,P=1/0;for(let R=0;R<l.length-1;R++){let L=l[R][0],j=l[R][1],F=this.wrap(l[R+1][0]-L)*this.kx,te=(l[R+1][1]-j)*this.ky,G=0;F===0&&te===0||(G=(this.wrap(c[0]-L)*this.kx*F+(c[1]-j)*this.ky*te)/(F*F+te*te),G>1?(L=l[R+1][0],j=l[R+1][1]):G>0&&(L+=F/this.kx*G,j+=te/this.ky*G)),F=this.wrap(c[0]-L)*this.kx,te=(c[1]-j)*this.ky;const oe=F*F+te*te;oe<P&&(P=oe,p=L,g=j,w=R,k=G)}return{point:[p,g],index:w,t:Math.max(0,Math.min(1,k))}}wrap(l){for(;l<-180;)l+=360;for(;l>180;)l-=360;return l}}function l0(d,l){return l[0]-d[0]}function Nd(d){return d[1]-d[0]+1}function fl(d,l){return d[1]>=d[0]&&d[1]<l}function u0(d,l){if(d[0]>d[1])return[null,null];const c=Nd(d);if(l){if(c===2)return[d,null];const g=Math.floor(c/2);return[[d[0],d[0]+g],[d[0]+g,d[1]]]}if(c===1)return[d,null];const p=Math.floor(c/2)-1;return[[d[0],d[0]+p],[d[0]+p+1,d[1]]]}function c0(d,l){if(!fl(l,d.length))return[1/0,1/0,-1/0,-1/0];const c=[1/0,1/0,-1/0,-1/0];for(let p=l[0];p<=l[1];++p)Oc(c,d[p]);return c}function Wp(d){const l=[1/0,1/0,-1/0,-1/0];for(const c of d)for(const p of c)Oc(l,p);return l}function Du(d){return d[0]!==-1/0&&d[1]!==-1/0&&d[2]!==1/0&&d[3]!==1/0}function xt(d,l,c){if(!Du(d)||!Du(l))return NaN;let p=0,g=0;return d[2]<l[0]&&(p=l[0]-d[2]),d[0]>l[2]&&(p=d[0]-l[2]),d[1]>l[3]&&(g=d[1]-l[3]),d[3]<l[1]&&(g=l[1]-d[3]),c.distance([0,0],[p,g])}function Ht(d,l,c){const p=c.pointOnLine(l,d);return c.distance(d,p.point)}function Nt(d,l,c,p,g){const w=Math.min(Ht(d,[c,p],g),Ht(l,[c,p],g)),k=Math.min(Ht(c,[d,l],g),Ht(p,[d,l],g));return Math.min(w,k)}function $n(d,l,c,p,g){if(!fl(l,d.length)||!fl(p,c.length))return 1/0;let w=1/0;for(let k=l[0];k<l[1];++k){const P=d[k],R=d[k+1];for(let L=p[0];L<p[1];++L){const j=c[L],F=c[L+1];if(jp(P,R,j,F))return 0;w=Math.min(w,Nt(P,R,j,F,g))}}return w}function rr(d,l,c,p,g){if(!fl(l,d.length)||!fl(p,c.length))return NaN;let w=1/0;for(let k=l[0];k<=l[1];++k)for(let P=p[0];P<=p[1];++P)if(w=Math.min(w,g.distance(d[k],c[P])),w===0)return w;return w}function qr(d,l,c){if(Gi(d,l,!0))return 0;let p=1/0;for(const g of l){const w=g[0],k=g[g.length-1];if(w!==k&&(p=Math.min(p,Ht(d,[k,w],c)),p===0))return p;const P=c.pointOnLine(g,d);if(p=Math.min(p,c.distance(d,P.point)),p===0)return p}return p}function ca(d,l,c,p){if(!fl(l,d.length))return NaN;for(let w=l[0];w<=l[1];++w)if(Gi(d[w],c,!0))return 0;let g=1/0;for(let w=l[0];w<l[1];++w){const k=d[w],P=d[w+1];for(const R of c)for(let L=0,j=R.length,F=j-1;L<j;F=L++){const te=R[F],G=R[L];if(jp(k,P,te,G))return 0;g=Math.min(g,Nt(k,P,te,G,p))}}return g}function ri(d,l){for(const c of d)for(const p of c)if(Gi(p,l,!0))return!0;return!1}function Lr(d,l,c,p=1/0){const g=Wp(d),w=Wp(l);if(p!==1/0&&xt(g,w,c)>=p)return p;if(Rc(g,w)){if(ri(d,l))return 0}else if(ri(l,d))return 0;let k=1/0;for(const P of d)for(let R=0,L=P.length,j=L-1;R<L;j=R++){const F=P[j],te=P[R];for(const G of l)for(let oe=0,ue=G.length,ve=ue-1;oe<ue;ve=oe++){const _e=G[ve],Me=G[oe];if(jp(F,te,_e,Me))return 0;k=Math.min(k,Nt(F,te,_e,Me,c))}}return k}function M1(d,l,c,p,g,w){if(!w)return;const k=xt(c0(p,w),g,c);k<l&&d.push([k,w,[0,0]])}function mo(d,l,c,p,g,w,k){if(!w||!k)return;const P=xt(c0(p,w),c0(g,k),c);P<l&&d.push([P,w,k])}function zc(d,l,c,p,g=1/0){let w=Math.min(p.distance(d[0],c[0][0]),g);if(w===0)return w;const k=new o0([[0,[0,d.length-1],[0,0]]],l0),P=Wp(c);for(;k.length>0;){const R=k.pop();if(R[0]>=w)continue;const L=R[1],j=l?50:100;if(Nd(L)<=j){if(!fl(L,d.length))return NaN;if(l){const F=ca(d,L,c,p);if(isNaN(F)||F===0)return F;w=Math.min(w,F)}else for(let F=L[0];F<=L[1];++F){const te=qr(d[F],c,p);if(w=Math.min(w,te),w===0)return 0}}else{const F=u0(L,l);M1(k,w,p,d,P,F[0]),M1(k,w,p,d,P,F[1])}}return w}function Gp(d,l,c,p,g,w=1/0){let k=Math.min(w,g.distance(d[0],c[0]));if(k===0)return k;const P=new o0([[0,[0,d.length-1],[0,c.length-1]]],l0);for(;P.length>0;){const R=P.pop();if(R[0]>=k)continue;const L=R[1],j=R[2],F=l?50:100,te=p?50:100;if(Nd(L)<=F&&Nd(j)<=te){if(!fl(L,d.length)&&fl(j,c.length))return NaN;let G;if(l&&p)G=$n(d,L,c,j,g),k=Math.min(k,G);else if(l&&!p){const oe=d.slice(L[0],L[1]+1);for(let ue=j[0];ue<=j[1];++ue)if(G=Ht(c[ue],oe,g),k=Math.min(k,G),k===0)return k}else if(!l&&p){const oe=c.slice(j[0],j[1]+1);for(let ue=L[0];ue<=L[1];++ue)if(G=Ht(d[ue],oe,g),k=Math.min(k,G),k===0)return k}else G=rr(d,L,c,j,g),k=Math.min(k,G)}else{const G=u0(L,l),oe=u0(j,p);mo(P,k,g,d,c,G[0],oe[0]),mo(P,k,g,d,c,G[0],oe[1]),mo(P,k,g,d,c,G[1],oe[0]),mo(P,k,g,d,c,G[1],oe[1])}}return k}function Lu(d){return d.type==="MultiPolygon"?d.coordinates.map((l=>({type:"Polygon",coordinates:l}))):d.type==="MultiLineString"?d.coordinates.map((l=>({type:"LineString",coordinates:l}))):d.type==="MultiPoint"?d.coordinates.map((l=>({type:"Point",coordinates:l}))):[d]}class hl{constructor(l,c){this.type=mn,this.geojson=l,this.geometries=c}static parse(l,c){if(l.length!==2)return c.error(`'distance' expression requires exactly one argument, but found ${l.length-1} instead.`);if(Fr(l[1])){const p=l[1];if(p.type==="FeatureCollection")return new hl(p,p.features.map((g=>Lu(g.geometry))).flat());if(p.type==="Feature")return new hl(p,Lu(p.geometry));if("type"in p&&"coordinates"in p)return new hl(p,Lu(p))}return c.error("'distance' expression requires valid geojson object that contains polygon geometry type.")}evaluate(l){if(l.geometry()!=null&&l.canonicalID()!=null){if(l.geometryType()==="Point")return(function(c,p){const g=c.geometry(),w=g.flat().map((R=>qp([R.x,R.y],c.canonical)));if(g.length===0)return NaN;const k=new ts(w[0][1]);let P=1/0;for(const R of p){switch(R.type){case"Point":P=Math.min(P,Gp(w,!1,[R.coordinates],!1,k,P));break;case"LineString":P=Math.min(P,Gp(w,!1,R.coordinates,!0,k,P));break;case"Polygon":P=Math.min(P,zc(w,!1,R.coordinates,k,P))}if(P===0)return P}return P})(l,this.geometries);if(l.geometryType()==="LineString")return(function(c,p){const g=c.geometry(),w=g.flat().map((R=>qp([R.x,R.y],c.canonical)));if(g.length===0)return NaN;const k=new ts(w[0][1]);let P=1/0;for(const R of p){switch(R.type){case"Point":P=Math.min(P,Gp(w,!0,[R.coordinates],!1,k,P));break;case"LineString":P=Math.min(P,Gp(w,!0,R.coordinates,!0,k,P));break;case"Polygon":P=Math.min(P,zc(w,!0,R.coordinates,k,P))}if(P===0)return P}return P})(l,this.geometries);if(l.geometryType()==="Polygon")return(function(c,p){const g=c.geometry();if(g.length===0||g[0].length===0)return NaN;const w=Ws(g,0).map((R=>R.map((L=>L.map((j=>qp([j.x,j.y],c.canonical))))))),k=new ts(w[0][0][0][1]);let P=1/0;for(const R of p)for(const L of w){switch(R.type){case"Point":P=Math.min(P,zc([R.coordinates],!1,L,k,P));break;case"LineString":P=Math.min(P,zc(R.coordinates,!0,L,k,P));break;case"Polygon":P=Math.min(P,Lr(L,R.coordinates,k,P))}if(P===0)return P}return P})(l,this.geometries)}return NaN}eachChild(){}outputDefined(){return!0}}class Ou{constructor(l){this.type=nr,this.key=l}static parse(l,c){if(l.length!==2)return c.error(`Expected 1 argument, but found ${l.length-1} instead.`);const p=l[1];return p==null?c.error("Global state property must be defined."):typeof p!="string"?c.error(`Global state property must be string, but found ${typeof l[1]} instead.`):new Ou(p)}evaluate(l){var c;const p=(c=l.globals)===null||c===void 0?void 0:c.globalState;return p&&Object.keys(p).length!==0?cl(p,this.key):null}eachChild(){}outputDefined(){return!1}}const Ar={"==":t0,"!=":zp,">":Fd,"<":ub,">=":Vp,"<=":Np,array:Po,at:Cr,boolean:Po,case:Ts,coalesce:Ac,collator:Ic,format:Dc,image:Lc,in:Jn,"index-of":Da,interpolate:Fi,"interpolate-hcl":Fi,"interpolate-lab":Fi,length:Mo,let:Yr,literal:dl,match:kr,number:Po,"number-format":ql,object:Po,slice:$c,step:Mc,string:Po,"to-boolean":Nl,"to-color":Nl,"to-number":Nl,"to-string":Nl,var:Cs,within:ks,distance:hl,"global-state":Ou};class Es{constructor(l,c,p,g){this.name=l,this.type=c,this._evaluate=p,this.args=g}evaluate(l){return this._evaluate(l,this.args)}eachChild(l){this.args.forEach(l)}outputDefined(){return!1}static parse(l,c){const p=l[0],g=Es.definitions[p];if(!g)return c.error(`Unknown expression "${p}". If you wanted a literal array, use ["literal", [...]].`,0);const w=Array.isArray(g)?g[0]:g.type,k=Array.isArray(g)?[[g[1],g[2]]]:g.overloads,P=k.filter((([L])=>!Array.isArray(L)||L.length===l.length-1));let R=null;for(const[L,j]of P){R=new Di(c.registry,Yp,c.path,null,c.scope);const F=[];let te=!1;for(let G=1;G<l.length;G++){const oe=l[G],ue=Array.isArray(L)?L[G-1]:L.type,ve=R.parse(oe,1+F.length,ue);if(!ve){te=!0;break}F.push(ve)}if(!te)if(Array.isArray(L)&&L.length!==F.length)R.error(`Expected ${L.length} arguments, but found ${F.length} instead.`);else{for(let G=0;G<F.length;G++){const oe=Array.isArray(L)?L[G]:L.type,ue=F[G];R.concat(G+1).checkSubtype(oe,ue.type)}if(R.errors.length===0)return new Es(p,w,j,F)}}if(P.length===1)c.errors.push(...R.errors);else{const L=(P.length?P:k).map((([F])=>{return te=F,Array.isArray(te)?`(${te.map(Vr).join(", ")})`:`(${Vr(te.type)}...)`;var te})).join(" | "),j=[];for(let F=1;F<l.length;F++){const te=c.parse(l[F],1+j.length);if(!te)return null;j.push(Vr(te.type))}c.error(`Expected arguments of type ${L}, but found (${j.join(", ")}) instead.`)}return null}static register(l,c){Es.definitions=c;for(const p in c)l[p]=Es}}function d0(d,[l,c,p,g]){l=l.evaluate(d),c=c.evaluate(d),p=p.evaluate(d);const w=g?g.evaluate(d):1,k=Bd(l,c,p,w);if(k)throw new Gr(k);return new sr(l/255,c/255,p/255,w,!1)}function eh(d,l){return d in l}function f0(d,l){const c=l[d];return c===void 0?null:c}function Nc(d){return{type:d}}function Yp(d){if(d instanceof Cs)return Yp(d.boundExpression);if(d instanceof Es&&d.name==="error"||d instanceof Ic||d instanceof ks||d instanceof hl||d instanceof Ou)return!1;const l=d instanceof Nl||d instanceof Po;let c=!0;return d.eachChild((p=>{c=l?c&&Yp(p):c&&p instanceof dl})),!!c&&Vc(d)&&qc(d,["zoom","heatmap-density","elevation","line-progress","accumulated","is-supported-script"])}function Vc(d){if(d instanceof Es&&(d.name==="get"&&d.args.length===1||d.name==="feature-state"||d.name==="has"&&d.args.length===1||d.name==="properties"||d.name==="geometry-type"||d.name==="id"||/^filter-/.test(d.name))||d instanceof ks||d instanceof hl)return!1;let l=!0;return d.eachChild((c=>{l&&!Vc(c)&&(l=!1)})),l}function Ps(d){if(d instanceof Es&&d.name==="feature-state")return!1;let l=!0;return d.eachChild((c=>{l&&!Ps(c)&&(l=!1)})),l}function qc(d,l){if(d instanceof Es&&l.indexOf(d.name)>=0)return!1;let c=!0;return d.eachChild((p=>{c&&!qc(p,l)&&(c=!1)})),c}function h0(d){return{result:"success",value:d}}function jl(d){return{result:"error",value:d}}function jc(d){return d["property-type"]==="data-driven"||d["property-type"]==="cross-faded-data-driven"}function p0(d){return!!d.expression&&d.expression.parameters.indexOf("zoom")>-1}function Vd(d){return!!d.expression&&d.expression.interpolated}function lr(d){return d instanceof Number?"number":d instanceof String?"string":d instanceof Boolean?"boolean":Array.isArray(d)?"array":d===null?"null":typeof d}function Ru(d){return typeof d=="object"&&d!==null&&!Array.isArray(d)&&Xn(d)===Bl}function Uc(d){return d}function th(d,l){const c=d.stops&&typeof d.stops[0][0]=="object",p=c||!(c||d.property!==void 0),g=d.type||(Vd(l)?"exponential":"interval"),w=(function(j){switch(j.type){case"color":return sr.parse;case"padding":return Ga.parse;case"numberArray":return ki.parse;case"colorArray":return jn.parse;default:return null}})(l);if(w&&((d=Cc({},d)).stops&&(d.stops=d.stops.map((j=>[j[0],w(j[1])]))),d.default=w(d.default?d.default:l.default)),d.colorSpace&&(k=d.colorSpace)!=="rgb"&&k!=="hcl"&&k!=="lab")throw new Error(`Unknown color space: "${d.colorSpace}"`);var k;const P=(function(j){switch(j){case"exponential":return rh;case"interval":return fb;case"categorical":return db;case"identity":return Zp;default:throw new Error(`Unknown function type "${j}"`)}})(g);let R,L;if(g==="categorical"){R=Object.create(null);for(const j of d.stops)R[j[0]]=j[1];L=typeof d.stops[0][0]}if(c){const j={},F=[];for(let oe=0;oe<d.stops.length;oe++){const ue=d.stops[oe],ve=ue[0].zoom;j[ve]===void 0&&(j[ve]={zoom:ve,type:d.type,property:d.property,default:d.default,stops:[]},F.push(ve)),j[ve].stops.push([ue[0].value,ue[1]])}const te=[];for(const oe of F)te.push([j[oe].zoom,th(j[oe],l)]);const G={name:"linear"};return{kind:"composite",interpolationType:G,interpolationFactor:Fi.interpolationFactor.bind(void 0,G),zoomStops:te.map((oe=>oe[0])),evaluate:({zoom:oe},ue)=>rh({stops:te,base:d.base},l,oe).evaluate(oe,ue)}}if(p){const j=g==="exponential"?{name:"exponential",base:d.base!==void 0?d.base:1}:null;return{kind:"camera",interpolationType:j,interpolationFactor:Fi.interpolationFactor.bind(void 0,j),zoomStops:d.stops.map((F=>F[0])),evaluate:({zoom:F})=>P(d,l,F,R,L)}}return{kind:"source",evaluate(j,F){const te=F&&F.properties?F.properties[d.property]:void 0;return te===void 0?nh(d.default,l.default):P(d,l,te,R,L)}}}function nh(d,l,c){return d!==void 0?d:l!==void 0?l:c!==void 0?c:void 0}function db(d,l,c,p,g){return nh(typeof c===g?p[c]:void 0,d.default,l.default)}function fb(d,l,c){if(lr(c)!=="number")return nh(d.default,l.default);const p=d.stops.length;if(p===1||c<=d.stops[0][0])return d.stops[0][1];if(c>=d.stops[p-1][0])return d.stops[p-1][1];const g=Au(d.stops.map((w=>w[0])),c);return d.stops[g][1]}function rh(d,l,c){const p=d.base!==void 0?d.base:1;if(lr(c)!=="number")return nh(d.default,l.default);const g=d.stops.length;if(g===1||c<=d.stops[0][0])return d.stops[0][1];if(c>=d.stops[g-1][0])return d.stops[g-1][1];const w=Au(d.stops.map((j=>j[0])),c),k=(function(j,F,te,G){const oe=G-te,ue=j-te;return oe===0?0:F===1?ue/oe:(Math.pow(F,ue)-1)/(Math.pow(F,oe)-1)})(c,p,d.stops[w][0],d.stops[w+1][0]),P=d.stops[w][1],R=d.stops[w+1][1],L=Za[l.type]||Uc;return typeof P.evaluate=="function"?{evaluate(...j){const F=P.evaluate.apply(void 0,j),te=R.evaluate.apply(void 0,j);if(F!==void 0&&te!==void 0)return L(F,te,k,d.colorSpace)}}:L(P,R,k,d.colorSpace)}function Zp(d,l,c){switch(l.type){case"color":c=sr.parse(c);break;case"formatted":c=Eo.fromString(c.toString());break;case"resolvedImage":c=Qo.fromString(c.toString());break;case"padding":c=Ga.parse(c);break;case"colorArray":c=jn.parse(c);break;case"numberArray":c=ki.parse(c);break;default:lr(c)===l.type||l.type==="enum"&&l.values[c]||(c=void 0)}return nh(c,d.default,l.default)}Es.register(Ar,{error:[{kind:"error"},[Kn],(d,[l])=>{throw new Gr(l.evaluate(d))}],typeof:[Kn,[nr],(d,[l])=>Vr(Xn(l.evaluate(d)))],"to-rgba":[ba(mn,4),[Jo],(d,[l])=>{const[c,p,g,w]=l.evaluate(d).rgb;return[255*c,255*p,255*g,w]}],rgb:[Jo,[mn,mn,mn],d0],rgba:[Jo,[mn,mn,mn,mn],d0],has:{type:dr,overloads:[[[Kn],(d,[l])=>eh(l.evaluate(d),d.properties())],[[Kn,Bl],(d,[l,c])=>eh(l.evaluate(d),c.evaluate(d))]]},get:{type:nr,overloads:[[[Kn],(d,[l])=>f0(l.evaluate(d),d.properties())],[[Kn,Bl],(d,[l,c])=>f0(l.evaluate(d),c.evaluate(d))]]},"feature-state":[nr,[Kn],(d,[l])=>f0(l.evaluate(d),d.featureState||{})],properties:[Bl,[],d=>d.properties()],"geometry-type":[Kn,[],d=>d.geometryType()],id:[nr,[],d=>d.id()],zoom:[mn,[],d=>d.globals.zoom],"heatmap-density":[mn,[],d=>d.globals.heatmapDensity||0],elevation:[mn,[],d=>d.globals.elevation||0],"line-progress":[mn,[],d=>d.globals.lineProgress||0],accumulated:[nr,[],d=>d.globals.accumulated===void 0?null:d.globals.accumulated],"+":[mn,Nc(mn),(d,l)=>{let c=0;for(const p of l)c+=p.evaluate(d);return c}],"*":[mn,Nc(mn),(d,l)=>{let c=1;for(const p of l)c*=p.evaluate(d);return c}],"-":{type:mn,overloads:[[[mn,mn],(d,[l,c])=>l.evaluate(d)-c.evaluate(d)],[[mn],(d,[l])=>-l.evaluate(d)]]},"/":[mn,[mn,mn],(d,[l,c])=>l.evaluate(d)/c.evaluate(d)],"%":[mn,[mn,mn],(d,[l,c])=>l.evaluate(d)%c.evaluate(d)],ln2:[mn,[],()=>Math.LN2],pi:[mn,[],()=>Math.PI],e:[mn,[],()=>Math.E],"^":[mn,[mn,mn],(d,[l,c])=>Math.pow(l.evaluate(d),c.evaluate(d))],sqrt:[mn,[mn],(d,[l])=>Math.sqrt(l.evaluate(d))],log10:[mn,[mn],(d,[l])=>Math.log(l.evaluate(d))/Math.LN10],ln:[mn,[mn],(d,[l])=>Math.log(l.evaluate(d))],log2:[mn,[mn],(d,[l])=>Math.log(l.evaluate(d))/Math.LN2],sin:[mn,[mn],(d,[l])=>Math.sin(l.evaluate(d))],cos:[mn,[mn],(d,[l])=>Math.cos(l.evaluate(d))],tan:[mn,[mn],(d,[l])=>Math.tan(l.evaluate(d))],asin:[mn,[mn],(d,[l])=>Math.asin(l.evaluate(d))],acos:[mn,[mn],(d,[l])=>Math.acos(l.evaluate(d))],atan:[mn,[mn],(d,[l])=>Math.atan(l.evaluate(d))],min:[mn,Nc(mn),(d,l)=>Math.min(...l.map((c=>c.evaluate(d))))],max:[mn,Nc(mn),(d,l)=>Math.max(...l.map((c=>c.evaluate(d))))],abs:[mn,[mn],(d,[l])=>Math.abs(l.evaluate(d))],round:[mn,[mn],(d,[l])=>{const c=l.evaluate(d);return c<0?-Math.round(-c):Math.round(c)}],floor:[mn,[mn],(d,[l])=>Math.floor(l.evaluate(d))],ceil:[mn,[mn],(d,[l])=>Math.ceil(l.evaluate(d))],"filter-==":[dr,[Kn,nr],(d,[l,c])=>d.properties()[l.value]===c.value],"filter-id-==":[dr,[nr],(d,[l])=>d.id()===l.value],"filter-type-==":[dr,[Kn],(d,[l])=>d.geometryType()===l.value],"filter-<":[dr,[Kn,nr],(d,[l,c])=>{const p=d.properties()[l.value],g=c.value;return typeof p==typeof g&&p<g}],"filter-id-<":[dr,[nr],(d,[l])=>{const c=d.id(),p=l.value;return typeof c==typeof p&&c<p}],"filter->":[dr,[Kn,nr],(d,[l,c])=>{const p=d.properties()[l.value],g=c.value;return typeof p==typeof g&&p>g}],"filter-id->":[dr,[nr],(d,[l])=>{const c=d.id(),p=l.value;return typeof c==typeof p&&c>p}],"filter-<=":[dr,[Kn,nr],(d,[l,c])=>{const p=d.properties()[l.value],g=c.value;return typeof p==typeof g&&p<=g}],"filter-id-<=":[dr,[nr],(d,[l])=>{const c=d.id(),p=l.value;return typeof c==typeof p&&c<=p}],"filter->=":[dr,[Kn,nr],(d,[l,c])=>{const p=d.properties()[l.value],g=c.value;return typeof p==typeof g&&p>=g}],"filter-id->=":[dr,[nr],(d,[l])=>{const c=d.id(),p=l.value;return typeof c==typeof p&&c>=p}],"filter-has":[dr,[nr],(d,[l])=>l.value in d.properties()],"filter-has-id":[dr,[],d=>d.id()!==null&&d.id()!==void 0],"filter-type-in":[dr,[ba(Kn)],(d,[l])=>l.value.indexOf(d.geometryType())>=0],"filter-id-in":[dr,[ba(nr)],(d,[l])=>l.value.indexOf(d.id())>=0],"filter-in-small":[dr,[Kn,ba(nr)],(d,[l,c])=>c.value.indexOf(d.properties()[l.value])>=0],"filter-in-large":[dr,[Kn,ba(nr)],(d,[l,c])=>(function(p,g,w,k){for(;w<=k;){const P=w+k>>1;if(g[P]===p)return!0;g[P]>p?k=P-1:w=P+1}return!1})(d.properties()[l.value],c.value,0,c.value.length-1)],all:{type:dr,overloads:[[[dr,dr],(d,[l,c])=>l.evaluate(d)&&c.evaluate(d)],[Nc(dr),(d,l)=>{for(const c of l)if(!c.evaluate(d))return!1;return!0}]]},any:{type:dr,overloads:[[[dr,dr],(d,[l,c])=>l.evaluate(d)||c.evaluate(d)],[Nc(dr),(d,l)=>{for(const c of l)if(c.evaluate(d))return!0;return!1}]]},"!":[dr,[dr],(d,[l])=>!l.evaluate(d)],"is-supported-script":[dr,[Kn],(d,[l])=>{const c=d.globals&&d.globals.isSupportedScript;return!c||c(l.evaluate(d))}],upcase:[Kn,[Kn],(d,[l])=>l.evaluate(d).toUpperCase()],downcase:[Kn,[Kn],(d,[l])=>l.evaluate(d).toLowerCase()],concat:[Kn,Nc(nr),(d,l)=>l.map((c=>Ec(c.evaluate(d)))).join("")],split:[ba(Kn),[Kn,Kn],(d,[l,c])=>l.evaluate(d).split(c.evaluate(d))],join:[Kn,[ba(Kn),Kn],(d,[l,c])=>l.evaluate(d).join(c.evaluate(d))],"resolved-locale":[Kn,[jf],(d,[l])=>l.evaluate(d).resolvedLocale()]});class Hc{constructor(l,c,p){this.expression=l,this._warningHistory={},this._evaluator=new e0,this._defaultValue=c?(function(g){if(g.type==="color"&&Ru(g.default))return new sr(0,0,0,0);switch(g.type){case"color":return sr.parse(g.default)||null;case"padding":return Ga.parse(g.default)||null;case"numberArray":return ki.parse(g.default)||null;case"colorArray":return jn.parse(g.default)||null;case"variableAnchorOffsetCollection":return ho.parse(g.default)||null;case"projectionDefinition":return po.parse(g.default)||null;default:return g.default===void 0?null:g.default}})(c):null,this._enumValues=c&&c.type==="enum"?c.values:null,this._globalState=p}evaluateWithoutErrorHandling(l,c,p,g,w,k){return this._globalState&&(l=Gc(l,this._globalState)),this._evaluator.globals=l,this._evaluator.feature=c,this._evaluator.featureState=p,this._evaluator.canonical=g,this._evaluator.availableImages=w||null,this._evaluator.formattedSection=k,this.expression.evaluate(this._evaluator)}evaluate(l,c,p,g,w,k){this._globalState&&(l=Gc(l,this._globalState)),this._evaluator.globals=l,this._evaluator.feature=c||null,this._evaluator.featureState=p||null,this._evaluator.canonical=g,this._evaluator.availableImages=w||null,this._evaluator.formattedSection=k||null;try{const P=this.expression.evaluate(this._evaluator);if(P==null||typeof P=="number"&&P!=P)return this._defaultValue;if(this._enumValues&&!(P in this._enumValues))throw new Gr(`Expected value to be one of ${Object.keys(this._enumValues).map((R=>JSON.stringify(R))).join(", ")}, but found ${JSON.stringify(P)} instead.`);return P}catch(P){return this._warningHistory[P.message]||(this._warningHistory[P.message]=!0,typeof console<"u"),this._defaultValue}}}function Kp(d){return Array.isArray(d)&&d.length>0&&typeof d[0]=="string"&&d[0]in Ar}function qd(d,l,c){const p=new Di(Ar,Yp,[],l?(function(w){const k={color:Jo,string:Kn,number:mn,enum:Kn,boolean:dr,formatted:Eu,padding:Dp,numberArray:Uf,colorArray:Fl,projectionDefinition:Ip,resolvedImage:Dd,variableAnchorOffsetCollection:Hf};return w.type==="array"?ba(k[w.value]||nr,w.length):k[w.type]})(l):void 0),g=p.parse(d,void 0,void 0,void 0,l&&l.type==="string"?{typeAnnotation:"coerce"}:void 0);return g?h0(new Hc(g,l,c)):jl(p.errors)}class Xp{constructor(l,c,p){this.kind=l,this._styleExpression=c,this.isStateDependent=l!=="constant"&&!Ps(c.expression),this.globalStateRefs=jd(c.expression),this._globalState=p}evaluateWithoutErrorHandling(l,c,p,g,w,k){return this._globalState&&(l=Gc(l,this._globalState)),this._styleExpression.evaluateWithoutErrorHandling(l,c,p,g,w,k)}evaluate(l,c,p,g,w,k){return this._globalState&&(l=Gc(l,this._globalState)),this._styleExpression.evaluate(l,c,p,g,w,k)}}class Jp{constructor(l,c,p,g,w){this.kind=l,this.zoomStops=p,this._styleExpression=c,this.isStateDependent=l!=="camera"&&!Ps(c.expression),this.globalStateRefs=jd(c.expression),this.interpolationType=g,this._globalState=w}evaluateWithoutErrorHandling(l,c,p,g,w,k){return this._globalState&&(l=Gc(l,this._globalState)),this._styleExpression.evaluateWithoutErrorHandling(l,c,p,g,w,k)}evaluate(l,c,p,g,w,k){return this._globalState&&(l=Gc(l,this._globalState)),this._styleExpression.evaluate(l,c,p,g,w,k)}interpolationFactor(l,c,p){return this.interpolationType?Fi.interpolationFactor(this.interpolationType,l,c,p):0}}function la(d,l,c){const p=qd(d,l,c);if(p.result==="error")return p;const g=p.value.expression,w=Vc(g);if(!w&&!jc(l))return jl([new Ia("","data expressions not supported")]);const k=qc(g,["zoom"]);if(!k&&!p0(l))return jl([new Ia("","zoom expressions not supported")]);const P=Wc(g);return P||k?P instanceof Ia?jl([P]):P instanceof Fi&&!Vd(l)?jl([new Ia("",'"interpolate" expressions cannot be used with this property')]):h0(P?new Jp(w?"camera":"composite",p.value,P.labels,P instanceof Fi?P.interpolation:void 0,c):new Xp(w?"constant":"source",p.value,c)):jl([new Ia("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')])}class da{constructor(l,c){this._parameters=l,this._specification=c,Cc(this,th(this._parameters,this._specification))}static deserialize(l){return new da(l._parameters,l._specification)}static serialize(l){return{_parameters:l._parameters,_specification:l._specification}}}function Wc(d){let l=null;if(d instanceof Yr)l=Wc(d.result);else if(d instanceof Ac){for(const c of d.args)if(l=Wc(c),l)break}else(d instanceof Mc||d instanceof Fi)&&d.input instanceof Es&&d.input.name==="zoom"&&(l=d);return l instanceof Ia||d.eachChild((c=>{const p=Wc(c);p instanceof Ia?l=p:!l&&p?l=new Ia("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):l&&p&&l!==p&&(l=new Ia("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))})),l}function jd(d,l=new Set){return d instanceof Ou&&l.add(d.key),d.eachChild((c=>{jd(c,l)})),l}function Gc(d,l){const{zoom:c,heatmapDensity:p,elevation:g,lineProgress:w,isSupportedScript:k,accumulated:P}=d??{};return{zoom:c,heatmapDensity:p,elevation:g,lineProgress:w,isSupportedScript:k,accumulated:P,globalState:l}}function m0(d){if(d===!0||d===!1)return!0;if(!Array.isArray(d)||d.length===0)return!1;switch(d[0]){case"has":return d.length>=2&&d[1]!=="$id"&&d[1]!=="$type";case"in":return d.length>=3&&(typeof d[1]!="string"||Array.isArray(d[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return d.length!==3||Array.isArray(d[1])||Array.isArray(d[2]);case"any":case"all":for(const l of d.slice(1))if(!m0(l)&&typeof l!="boolean")return!1;return!0;default:return!0}}const g0={type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}};function Ul(d,l){if(d==null)return{filter:()=>!0,needGeometry:!1,getGlobalStateRefs:()=>new Set};m0(d)||(d=Hl(d));const c=qd(d,g0,l);if(c.result==="error")throw new Error(c.value.map((p=>`${p.key}: ${p.message}`)).join(", "));return{filter:(p,g,w)=>c.value.evaluate(p,g,{},w),needGeometry:Bu(d),getGlobalStateRefs:()=>jd(c.value.expression)}}function y0(d,l){return d<l?-1:d>l?1:0}function Bu(d){if(!Array.isArray(d))return!1;if(d[0]==="within"||d[0]==="distance")return!0;for(let l=1;l<d.length;l++)if(Bu(d[l]))return!0;return!1}function Hl(d){if(!d)return!0;const l=d[0];return d.length<=1?l!=="any":l==="=="?Yc(d[1],d[2],"=="):l==="!="?ah(Yc(d[1],d[2],"==")):l==="<"||l===">"||l==="<="||l===">="?Yc(d[1],d[2],l):l==="any"?(c=d.slice(1),["any"].concat(c.map(Hl))):l==="all"?["all"].concat(d.slice(1).map(Hl)):l==="none"?["all"].concat(d.slice(1).map(Hl).map(ah)):l==="in"?ih(d[1],d.slice(2)):l==="!in"?ah(ih(d[1],d.slice(2))):l==="has"?Fu(d[1]):l!=="!has"||ah(Fu(d[1]));var c}function Yc(d,l,c){switch(d){case"$type":return[`filter-type-${c}`,l];case"$id":return[`filter-id-${c}`,l];default:return[`filter-${c}`,d,l]}}function ih(d,l){if(l.length===0)return!1;switch(d){case"$type":return["filter-type-in",["literal",l]];case"$id":return["filter-id-in",["literal",l]];default:return l.length>200&&!l.some((c=>typeof c!=typeof l[0]))?["filter-in-large",d,["literal",l.sort(y0)]]:["filter-in-small",d,["literal",l]]}}function Fu(d){switch(d){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",d]}}function ah(d){return["!",d]}function Qp(d){const l=typeof d;if(l==="number"||l==="boolean"||l==="string"||d==null)return JSON.stringify(d);if(Array.isArray(d)){let g="[";for(const w of d)g+=`${Qp(w)},`;return`${g}]`}const c=Object.keys(d).sort();let p="{";for(let g=0;g<c.length;g++)p+=`${JSON.stringify(c[g])}:${Qp(d[c[g]])},`;return`${p}}`}function hb(d){let l="";for(const c of xc)l+=`/${Qp(d[c])}`;return l}function A1(d){const l=d.value;return l?[new un(d.key,l,"constants have been deprecated as of v8")]:[]}function zi(d){return d instanceof Number||d instanceof String||d instanceof Boolean?d.valueOf():d}function pl(d){if(Array.isArray(d))return d.map(pl);if(d instanceof Object&&!(d instanceof Number||d instanceof String||d instanceof Boolean)){const l={};for(const c in d)l[c]=pl(d[c]);return l}return zi(d)}function xa(d){const l=d.key,c=d.value,p=d.valueSpec||{},g=d.objectElementValidators||{},w=d.style,k=d.styleSpec,P=d.validateSpec;let R=[];const L=lr(c);if(L!=="object")return[new un(l,c,`object expected, ${L} found`)];for(const j in c){const F=j.split(".")[0],te=cl(p,F)||p["*"];let G;if(cl(g,F))G=g[F];else if(cl(p,F)){if(c[j]===void 0)continue;G=P}else if(g["*"])G=g["*"];else{if(!p["*"]){R.push(new un(l,c[j],`unknown property "${j}"`));continue}G=P}R=R.concat(G({key:(l&&`${l}.`)+j,value:c[j],valueSpec:te,style:w,styleSpec:k,object:c,objectKey:j,validateSpec:P},c))}for(const j in p)g[j]||p[j].required&&p[j].default===void 0&&c[j]===void 0&&R.push(new un(l,c,`missing required property "${j}"`));return R}function oh(d){const l=d.value,c=d.valueSpec,p=d.style,g=d.styleSpec,w=d.key,k=d.arrayElementValidator||d.validateSpec;if(lr(l)!=="array")return[new un(w,l,`array expected, ${lr(l)} found`)];if(c.length&&l.length!==c.length)return[new un(w,l,`array length ${c.length} expected, length ${l.length} found`)];let P={type:c.value,values:c.values};g.$version<7&&(P.function=c.function),lr(c.value)==="object"&&(P=c.value);let R=[];for(let L=0;L<l.length;L++)R=R.concat(k({array:l,arrayIndex:L,value:l[L],valueSpec:P,validateSpec:d.validateSpec,style:p,styleSpec:g,key:`${w}[${L}]`}));return R}function Oe(d){const l=d.key,c=d.value,p=d.valueSpec;let g=lr(c);return g==="number"&&c!=c&&(g="NaN"),g!=="number"?[new un(l,c,`number expected, ${g} found`)]:"minimum"in p&&c<p.minimum?[new un(l,c,`${c} is less than the minimum value ${p.minimum}`)]:"maximum"in p&&c>p.maximum?[new un(l,c,`${c} is greater than the maximum value ${p.maximum}`)]:[]}function Wl(d){const l=d.valueSpec,c=zi(d.value.type);let p,g,w,k={};const P=c!=="categorical"&&d.value.property===void 0,R=!P,L=lr(d.value.stops)==="array"&&lr(d.value.stops[0])==="array"&&lr(d.value.stops[0][0])==="object",j=xa({key:d.key,value:d.value,valueSpec:d.styleSpec.function,validateSpec:d.validateSpec,style:d.style,styleSpec:d.styleSpec,objectElementValidators:{stops:function(G){if(c==="identity")return[new un(G.key,G.value,'identity function may not have a "stops" property')];let oe=[];const ue=G.value;return oe=oe.concat(oh({key:G.key,value:ue,valueSpec:G.valueSpec,validateSpec:G.validateSpec,style:G.style,styleSpec:G.styleSpec,arrayElementValidator:F})),lr(ue)==="array"&&ue.length===0&&oe.push(new un(G.key,ue,"array must have at least one stop")),oe},default:function(G){return G.validateSpec({key:G.key,value:G.value,valueSpec:l,validateSpec:G.validateSpec,style:G.style,styleSpec:G.styleSpec})}}});return c==="identity"&&P&&j.push(new un(d.key,d.value,'missing required property "property"')),c==="identity"||d.value.stops||j.push(new un(d.key,d.value,'missing required property "stops"')),c==="exponential"&&d.valueSpec.expression&&!Vd(d.valueSpec)&&j.push(new un(d.key,d.value,"exponential functions not supported")),d.styleSpec.$version>=8&&(R&&!jc(d.valueSpec)?j.push(new un(d.key,d.value,"property functions not supported")):P&&!p0(d.valueSpec)&&j.push(new un(d.key,d.value,"zoom functions not supported"))),c!=="categorical"&&!L||d.value.property!==void 0||j.push(new un(d.key,d.value,'"property" property is required')),j;function F(G){let oe=[];const ue=G.value,ve=G.key;if(lr(ue)!=="array")return[new un(ve,ue,`array expected, ${lr(ue)} found`)];if(ue.length!==2)return[new un(ve,ue,`array length 2 expected, length ${ue.length} found`)];if(L){if(lr(ue[0])!=="object")return[new un(ve,ue,`object expected, ${lr(ue[0])} found`)];if(ue[0].zoom===void 0)return[new un(ve,ue,"object stop key must have zoom")];if(ue[0].value===void 0)return[new un(ve,ue,"object stop key must have value")];if(w&&w>zi(ue[0].zoom))return[new un(ve,ue[0].zoom,"stop zoom values must appear in ascending order")];zi(ue[0].zoom)!==w&&(w=zi(ue[0].zoom),g=void 0,k={}),oe=oe.concat(xa({key:`${ve}[0]`,value:ue[0],valueSpec:{zoom:{}},validateSpec:G.validateSpec,style:G.style,styleSpec:G.styleSpec,objectElementValidators:{zoom:Oe,value:te}}))}else oe=oe.concat(te({key:`${ve}[0]`,value:ue[0],validateSpec:G.validateSpec,style:G.style,styleSpec:G.styleSpec},ue));return Kp(pl(ue[1]))?oe.concat([new un(`${ve}[1]`,ue[1],"expressions are not allowed in function stops.")]):oe.concat(G.validateSpec({key:`${ve}[1]`,value:ue[1],valueSpec:l,validateSpec:G.validateSpec,style:G.style,styleSpec:G.styleSpec}))}function te(G,oe){const ue=lr(G.value),ve=zi(G.value),_e=G.value!==null?G.value:oe;if(p){if(ue!==p)return[new un(G.key,_e,`${ue} stop domain type must match previous stop domain type ${p}`)]}else p=ue;if(ue!=="number"&&ue!=="string"&&ue!=="boolean")return[new un(G.key,_e,"stop domain value must be a number, string, or boolean")];if(ue!=="number"&&c!=="categorical"){let Me=`number expected, ${ue} found`;return jc(l)&&c===void 0&&(Me+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new un(G.key,_e,Me)]}return c!=="categorical"||ue!=="number"||isFinite(ve)&&Math.floor(ve)===ve?c!=="categorical"&&ue==="number"&&g!==void 0&&ve<g?[new un(G.key,_e,"stop domain values must appear in ascending order")]:(g=ve,c==="categorical"&&ve in k?[new un(G.key,_e,"stop domain values must be unique")]:(k[ve]=!0,[])):[new un(G.key,_e,`integer expected, found ${ve}`)]}}function Gs(d){const l=(d.expressionContext==="property"?la:qd)(pl(d.value),d.valueSpec);if(l.result==="error")return l.value.map((p=>new un(`${d.key}${p.key}`,d.value,p.message)));const c=l.value.expression||l.value._styleExpression.expression;if(d.expressionContext==="property"&&d.propertyKey==="text-font"&&!c.outputDefined())return[new un(d.key,d.value,`Invalid data expression for "${d.propertyKey}". Output values must be contained as literals within the expression.`)];if(d.expressionContext==="property"&&d.propertyType==="layout"&&!Ps(c))return[new un(d.key,d.value,'"feature-state" data expressions are not supported with layout properties.')];if(d.expressionContext==="filter"&&!Ps(c))return[new un(d.key,d.value,'"feature-state" data expressions are not supported with filters.')];if(d.expressionContext&&d.expressionContext.indexOf("cluster")===0){if(!qc(c,["zoom","feature-state"]))return[new un(d.key,d.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if(d.expressionContext==="cluster-initial"&&!Vc(c))return[new un(d.key,d.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function Ka(d){const l=d.key,c=d.value,p=lr(c);return p!=="string"?[new un(l,c,`color expected, ${p} found`)]:sr.parse(String(c))?[]:[new un(l,c,`color expected, "${c}" found`)]}function fr(d){const l=d.key,c=d.value,p=d.valueSpec,g=[];return Array.isArray(p.values)?p.values.indexOf(zi(c))===-1&&g.push(new un(l,c,`expected one of [${p.values.join(", ")}], ${JSON.stringify(c)} found`)):Object.keys(p.values).indexOf(zi(c))===-1&&g.push(new un(l,c,`expected one of [${Object.keys(p.values).join(", ")}], ${JSON.stringify(c)} found`)),g}function Ud(d){return m0(pl(d.value))?Gs(Cc({},d,{expressionContext:"filter",valueSpec:{value:"boolean"}})):I1(d)}function I1(d){const l=d.value,c=d.key;if(lr(l)!=="array")return[new un(c,l,`array expected, ${lr(l)} found`)];const p=d.styleSpec;let g,w=[];if(l.length<1)return[new un(c,l,"filter array must have at least 1 element")];switch(w=w.concat(fr({key:`${c}[0]`,value:l[0],valueSpec:p.filter_operator,style:d.style,styleSpec:d.styleSpec})),zi(l[0])){case"<":case"<=":case">":case">=":l.length>=2&&zi(l[1])==="$type"&&w.push(new un(c,l,`"$type" cannot be use with operator "${l[0]}"`));case"==":case"!=":l.length!==3&&w.push(new un(c,l,`filter array for operator "${l[0]}" must have 3 elements`));case"in":case"!in":l.length>=2&&(g=lr(l[1]),g!=="string"&&w.push(new un(`${c}[1]`,l[1],`string expected, ${g} found`)));for(let k=2;k<l.length;k++)g=lr(l[k]),zi(l[1])==="$type"?w=w.concat(fr({key:`${c}[${k}]`,value:l[k],valueSpec:p.geometry_type,style:d.style,styleSpec:d.styleSpec})):g!=="string"&&g!=="number"&&g!=="boolean"&&w.push(new un(`${c}[${k}]`,l[k],`string, number, or boolean expected, ${g} found`));break;case"any":case"all":case"none":for(let k=1;k<l.length;k++)w=w.concat(I1({key:`${c}[${k}]`,value:l[k],style:d.style,styleSpec:d.styleSpec}));break;case"has":case"!has":g=lr(l[1]),l.length!==2?w.push(new un(c,l,`filter array for "${l[0]}" operator must have 2 elements`)):g!=="string"&&w.push(new un(`${c}[1]`,l[1],`string expected, ${g} found`))}return w}function D1(d,l){const c=d.key,p=d.validateSpec,g=d.style,w=d.styleSpec,k=d.value,P=d.objectKey,R=w[`${l}_${d.layerType}`];if(!R)return[];const L=P.match(/^(.*)-transition$/);if(l==="paint"&&L&&R[L[1]]&&R[L[1]].transition)return p({key:c,value:k,valueSpec:w.transition,style:g,styleSpec:w});const j=d.valueSpec||R[P];if(!j)return[new un(c,k,`unknown property "${P}"`)];let F;if(lr(k)==="string"&&jc(j)&&!j.tokens&&(F=/^{([^}]+)}$/.exec(k)))return[new un(c,k,`"${P}" does not support interpolation syntax
24Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(F[1])} }\`.`)];const te=[];return d.layerType==="symbol"&&P==="text-font"&&Ru(pl(k))&&zi(k.type)==="identity"&&te.push(new un(c,k,'"text-font" does not support identity functions')),te.concat(p({key:d.key,value:k,valueSpec:j,style:g,styleSpec:w,expressionContext:"property",propertyType:l,propertyKey:P}))}function zu(d){return D1(d,"paint")}function L1(d){return D1(d,"layout")}function O1(d){var l,c;let p=[];const g=d.value,w=d.key,k=d.style,P=d.styleSpec;if(lr(g)!=="object")return[new un(w,g,`object expected, ${lr(g)} found`)];g.type||g.ref||p.push(new un(w,g,'either "type" or "ref" is required'));let R=zi(g.type);const L=zi(g.ref);if(g.id){const j=zi(g.id);for(let F=0;F<d.arrayIndex;F++){const te=k.layers[F];zi(te.id)===j&&p.push(new un(w,g.id,`duplicate layer id "${g.id}", previously used at line ${te.id.__line__}`))}}if("ref"in g){let j;["type","source","source-layer","filter","layout"].forEach((F=>{F in g&&p.push(new un(w,g[F],`"${F}" is prohibited for ref layers`))})),k.layers.forEach((F=>{zi(F.id)===L&&(j=F)})),j?j.ref?p.push(new un(w,g.ref,"ref cannot reference another ref layer")):R=zi(j.type):p.push(new un(w,g.ref,`ref layer "${L}" not found`))}else if(R!=="background")if(g.source){const j=k.sources&&k.sources[g.source],F=j&&zi(j.type);j?F==="vector"&&R==="raster"?p.push(new un(w,g.source,`layer "${g.id}" requires a raster source`)):F!=="raster-dem"&&R==="hillshade"||F!=="raster-dem"&&R==="color-relief"?p.push(new un(w,g.source,`layer "${g.id}" requires a raster-dem source`)):F==="raster"&&R!=="raster"?p.push(new un(w,g.source,`layer "${g.id}" requires a vector source`)):F!=="vector"||g["source-layer"]?F==="raster-dem"&&R!=="hillshade"&&R!=="color-relief"?p.push(new un(w,g.source,"raster-dem source can only be used with layer type 'hillshade' or 'color-relief'.")):R!=="line"||!g.paint||!g.paint["line-gradient"]||F==="geojson"&&j.lineMetrics||p.push(new un(w,g,`layer "${g.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):p.push(new un(w,g,`layer "${g.id}" must specify a "source-layer"`)):p.push(new un(w,g.source,`source "${g.source}" not found`))}else p.push(new un(w,g,'missing required property "source"'));return R==="raster"&&(!((l=g.paint)===null||l===void 0)&&l.resampling)&&(!((c=g.paint)===null||c===void 0)&&c["raster-resampling"])&&p.push(new un(w,g.paint,`layer "${g.id}" redundantly specifies "resampling" and "raster-resampling" paint properties, but only one is allowed. It is advised to use "resampling".`)),p=p.concat(xa({key:w,value:g,valueSpec:P.layer,style:d.style,styleSpec:d.styleSpec,validateSpec:d.validateSpec,objectElementValidators:{"*":()=>[],type:()=>d.validateSpec({key:`${w}.type`,value:g.type,valueSpec:P.layer.type,style:d.style,styleSpec:d.styleSpec,validateSpec:d.validateSpec,object:g,objectKey:"type"}),filter:Ud,layout:j=>xa({layer:g,key:j.key,value:j.value,style:j.style,styleSpec:j.styleSpec,validateSpec:j.validateSpec,objectElementValidators:{"*":F=>L1(Cc({layerType:R},F))}}),paint:j=>xa({layer:g,key:j.key,value:j.value,style:j.style,styleSpec:j.styleSpec,validateSpec:j.validateSpec,objectElementValidators:{"*":F=>zu(Cc({layerType:R},F))}})}})),p}function Nu(d){const l=d.value,c=d.key,p=lr(l);return p!=="string"?[new un(c,l,`string expected, ${p} found`)]:[]}const v0={promoteId:function({key:d,value:l}){if(lr(l)==="string")return Nu({key:d,value:l});{const c=[];for(const p in l)c.push(...Nu({key:`${d}.${p}`,value:l[p]}));return c}}};function _0(d){const l=d.value,c=d.key,p=d.styleSpec,g=d.style,w=d.validateSpec;if(!l.type)return[new un(c,l,'"type" is required')];const k=zi(l.type);let P;switch(k){case"vector":case"raster":return P=xa({key:c,value:l,valueSpec:p[`source_${k.replace("-","_")}`],style:d.style,styleSpec:p,objectElementValidators:v0,validateSpec:w}),P;case"raster-dem":return P=(function(R){var L;const j=(L=R.sourceName)!==null&&L!==void 0?L:"",F=R.value,te=R.styleSpec,G=te.source_raster_dem,oe=R.style;let ue=[];const ve=lr(F);if(F===void 0)return ue;if(ve!=="object")return ue.push(new un("source_raster_dem",F,`object expected, ${ve} found`)),ue;const _e=zi(F.encoding)==="custom",Me=["redFactor","greenFactor","blueFactor","baseShift"],Te=R.value.encoding?`"${R.value.encoding}"`:"Default";for(const Ae in F)!_e&&Me.includes(Ae)?ue.push(new un(Ae,F[Ae],`In "${j}": "${Ae}" is only valid when "encoding" is set to "custom". ${Te} encoding found`)):G[Ae]?ue=ue.concat(R.validateSpec({key:Ae,value:F[Ae],valueSpec:G[Ae],validateSpec:R.validateSpec,style:oe,styleSpec:te})):ue.push(new un(Ae,F[Ae],`unknown property "${Ae}"`));return ue})({sourceName:c,value:l,style:d.style,styleSpec:p,validateSpec:w}),P;case"geojson":if(P=xa({key:c,value:l,valueSpec:p.source_geojson,style:g,styleSpec:p,validateSpec:w,objectElementValidators:v0}),l.cluster)for(const R in l.clusterProperties){const[L,j]=l.clusterProperties[R],F=typeof L=="string"?[L,["accumulated"],["get",R]]:L;P.push(...Gs({key:`${c}.${R}.map`,value:j,expressionContext:"cluster-map"})),P.push(...Gs({key:`${c}.${R}.reduce`,value:F,expressionContext:"cluster-reduce"}))}return P;case"video":return xa({key:c,value:l,valueSpec:p.source_video,style:g,validateSpec:w,styleSpec:p});case"image":return xa({key:c,value:l,valueSpec:p.source_image,style:g,validateSpec:w,styleSpec:p});case"canvas":return[new un(c,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas")];default:return fr({key:`${c}.type`,value:l.type,valueSpec:{values:["vector","raster","raster-dem","geojson","video","image"]}})}}function ns(d){const l=d.value,c=d.styleSpec,p=c.light,g=d.style;let w=[];const k=lr(l);if(l===void 0)return w;if(k!=="object")return w=w.concat([new un("light",l,`object expected, ${k} found`)]),w;for(const P in l){const R=P.match(/^(.*)-transition$/);w=w.concat(R&&p[R[1]]&&p[R[1]].transition?d.validateSpec({key:P,value:l[P],valueSpec:c.transition,validateSpec:d.validateSpec,style:g,styleSpec:c}):p[P]?d.validateSpec({key:P,value:l[P],valueSpec:p[P],validateSpec:d.validateSpec,style:g,styleSpec:c}):[new un(P,l[P],`unknown property "${P}"`)])}return w}function R1(d){const l=d.value,c=d.styleSpec,p=c.sky,g=d.style,w=lr(l);if(l===void 0)return[];if(w!=="object")return[new un("sky",l,`object expected, ${w} found`)];let k=[];for(const P in l)k=k.concat(p[P]?d.validateSpec({key:P,value:l[P],valueSpec:p[P],style:g,styleSpec:c}):[new un(P,l[P],`unknown property "${P}"`)]);return k}function b0(d){const l=d.value,c=d.styleSpec,p=c.terrain,g=d.style;let w=[];const k=lr(l);if(l===void 0)return w;if(k!=="object")return w=w.concat([new un("terrain",l,`object expected, ${k} found`)]),w;for(const P in l)w=w.concat(p[P]?d.validateSpec({key:P,value:l[P],valueSpec:p[P],validateSpec:d.validateSpec,style:g,styleSpec:c}):[new un(P,l[P],`unknown property "${P}"`)]);return w}function x0(d){let l=[];const c=d.value,p=d.key;if(Array.isArray(c)){const g=[],w=[];for(const k in c)c[k].id&&g.includes(c[k].id)&&l.push(new un(p,c,`all the sprites' ids must be unique, but ${c[k].id} is duplicated`)),g.push(c[k].id),c[k].url&&w.includes(c[k].url)&&l.push(new un(p,c,`all the sprites' URLs must be unique, but ${c[k].url} is duplicated`)),w.push(c[k].url),l=l.concat(xa({key:`${p}[${k}]`,value:c[k],valueSpec:{id:{type:"string",required:!0},url:{type:"string",required:!0}},validateSpec:d.validateSpec}));return l}return Nu({key:p,value:c})}function B1(d){return!!d&&d.constructor===Object}function sh(d){return B1(d.value)?[]:[new un(d.key,d.value,`object expected, ${lr(d.value)} found`)]}const Ys={"*":()=>[],array:oh,boolean:function(d){const l=d.value,c=d.key,p=lr(l);return p!=="boolean"?[new un(c,l,`boolean expected, ${p} found`)]:[]},number:Oe,color:Ka,constants:A1,enum:fr,filter:Ud,function:Wl,layer:O1,object:xa,source:_0,light:ns,sky:R1,terrain:b0,projection:function(d){const l=d.value,c=d.styleSpec,p=c.projection,g=d.style,w=lr(l);if(l===void 0)return[];if(w!=="object")return[new un("projection",l,`object expected, ${w} found`)];let k=[];for(const P in l)k=k.concat(p[P]?d.validateSpec({key:P,value:l[P],valueSpec:p[P],style:g,styleSpec:c}):[new un(P,l[P],`unknown property "${P}"`)]);return k},projectionDefinition:function(d){const l=d.key;let c=d.value;c=c instanceof String?c.valueOf():c;const p=lr(c);return p!=="array"||(function(g){return Array.isArray(g)&&g.length===3&&typeof g[0]=="string"&&typeof g[1]=="string"&&typeof g[2]=="number"})(c)||(function(g){return!!["interpolate","step","literal"].includes(g[0])})(c)?["array","string"].includes(p)?[]:[new un(l,c,`projection expected, invalid type "${p}" found`)]:[new un(l,c,`projection expected, invalid array ${JSON.stringify(c)} found`)]},string:Nu,formatted:function(d){return Nu(d).length===0?[]:Gs(d)},resolvedImage:function(d){return Nu(d).length===0?[]:Gs(d)},padding:function(d){const l=d.key,c=d.value;if(lr(c)==="array"){if(c.length<1||c.length>4)return[new un(l,c,`padding requires 1 to 4 values; ${c.length} values found`)];const p={type:"number"};let g=[];for(let w=0;w<c.length;w++)g=g.concat(d.validateSpec({key:`${l}[${w}]`,value:c[w],validateSpec:d.validateSpec,valueSpec:p}));return g}return Oe({key:l,value:c,valueSpec:{}}
24)},numberArray:function(d){const l=d.key,c=d.value;if(lr(c)==="array"){const p={type:"number"};if(c.length<1)return[new un(l,c,"array length at least 1 expected, length 0 found")];let g=[];for(let w=0;w<c.length;w++)g=g.concat(d.validateSpec({key:`${l}[${w}]`,value:c[w],validateSpec:d.validateSpec,valueSpec:p}));return g}return Oe({key:l,value:c,valueSpec:{}})},colorArray:function(d){const l=d.key,c=d.value;if(lr(c)==="array"){if(c.length<1)return[new un(l,c,"array length at least 1 expected, length 0 found")];let p=[];for(let g=0;g<c.length;g++)p=p.concat(Ka({key:`${l}[${g}]`,value:c[g]}));return p}return Ka({key:l,value:c})},variableAnchorOffsetCollection:function(d){const l=d.key,c=d.value,p=lr(c),g=d.styleSpec;if(p!=="array"||c.length<1||c.length%2!=0)return[new un(l,c,"variableAnchorOffsetCollection requires a non-empty array of even length")];let w=[];for(let k=0;k<c.length;k+=2)w=w.concat(fr({key:`${l}[${k}]`,value:c[k],valueSpec:g.layout_symbol["text-anchor"]})),w=w.concat(oh({key:`${l}[${k+1}]`,value:c[k+1],valueSpec:{length:2,value:"number"},validateSpec:d.validateSpec,style:d.style,styleSpec:g}));return w},sprite:x0,state:sh,fontFaces:function(d){const l=d.key,c=d.value,p=d.validateSpec,g=d.styleSpec,w=d.style;if(!B1(c))return[new un(l,c,`object expected, ${lr(c)} found`)];const k=[];for(const P in c){const R=c[P],L=lr(R);if(L==="string")k.push(...Nu({key:`${l}.${P}`,value:R}));else if(L==="array"){const j={url:{type:"string",required:!0},"unicode-range":{type:"array",value:"string"}};for(const[F,te]of R.entries())k.push(...xa({key:`${l}.${P}[${F}]`,value:te,valueSpec:j,styleSpec:g,style:w,validateSpec:p}))}else k.push(new un(`${l}.${P}`,R,`string or array expected, ${L} found`))}return k}};function lh(d){const l=d.value,c=d.valueSpec,p=d.styleSpec;return d.validateSpec=lh,c.expression&&Ru(zi(l))?Wl(d):c.expression&&Kp(pl(l))?Gs(d):c.type&&Ys[c.type]?Ys[c.type](d):xa(Cc({},d,{valueSpec:c.type?p[c.type]:c}))}function Hd(d){const l=d.value,c=d.key,p=Nu(d);return p.length||(l.indexOf("{fontstack}")===-1&&p.push(new un(c,l,'"glyphs" url must include a "{fontstack}" token')),l.indexOf("{range}")===-1&&p.push(new un(c,l,'"glyphs" url must include a "{range}" token'))),p}function $s(d,l=Ft){let c=[];return c=c.concat(lh({key:"",value:d,valueSpec:l.$root,styleSpec:l,style:d,validateSpec:lh,objectElementValidators:{glyphs:Hd,"*":()=>[]}})),d.constants&&(c=c.concat(A1({key:"constants",value:d.constants}))),F1(c)}function Zs(d){return function(l){return d(Object.assign({},l,{validateSpec:lh}))}}function F1(d){return[].concat(d).sort(((l,c)=>l.line-c.line))}function La(d){return function(...l){return F1(d.apply(this,l))}}$s.source=La(Zs(_0)),$s.sprite=La(Zs(x0)),$s.glyphs=La(Zs(Hd)),$s.light=La(Zs(ns)),$s.sky=La(Zs(R1)),$s.terrain=La(Zs(b0)),$s.state=La(Zs(sh)),$s.layer=La(Zs(O1)),$s.filter=La(Zs(Ud)),$s.paintProperty=La(Zs(zu)),$s.layoutProperty=La(Zs(L1));const pb={type:"enum","property-type":"data-constant",expression:{interpolated:!1,parameters:["global-state"]},values:{visible:{},none:{}},transition:!1,default:"visible"};class mb{constructor(l,c){this._globalState=c,this.setValue(l)}evaluate(){var l;return(l=this._literalValue)!==null&&l!==void 0?l:this._compiledValue.evaluate({})}setValue(l){if(l==null||l==="visible"||l==="none")return this._literalValue=l==="none"?"none":"visible",this._compiledValue=void 0,void(this._globalStateRefs=new Set);const c=qd(l,pb,this._globalState);if(c.result==="error")throw this._literalValue="visible",this._compiledValue=void 0,new Error(c.value.map((p=>`${p.key}: ${p.message}`)).join(", "));this._literalValue=void 0,this._compiledValue=c.value,this._globalStateRefs=jd(c.value.expression)}getGlobalStateRefs(){return this._globalStateRefs}}const go=Ft,ml=$s,rs=ml.light,uh=ml.sky,z1=ml.paintProperty,gb=ml.layoutProperty;function w0(d,l){let c=!1;if(l?.length)for(const p of l)d.fire(new mi(new Error(p.message))),c=!0;return c}class gl{constructor(l,c,p){const g=this.cells=[];if(l instanceof ArrayBuffer){this.arrayBuffer=l;const k=new Int32Array(this.arrayBuffer);l=k[0],this.d=(c=k[1])+2*(p=k[2]);for(let R=0;R<this.d*this.d;R++){const L=k[3+R],j=k[3+R+1];g.push(L===j?null:k.subarray(L,j))}const P=k[3+g.length+1];this.keys=k.subarray(k[3+g.length],P),this.bboxes=k.subarray(P),this.insert=this._insertReadonly}else{this.d=c+2*p;for(let k=0;k<this.d*this.d;k++)g.push([]);this.keys=[],this.bboxes=[]}this.n=c,this.extent=l,this.padding=p,this.scale=c/l,this.uid=0;const w=p/c*l;this.min=-w,this.max=l+w}
24insert(l,c,p,g,w){this._forEachCell(c,p,g,w,this._insertCell,this.uid++,void 0,void 0),this.keys.push(l),this.bboxes.push(c),this.bboxes.push(p),this.bboxes.push(g),this.bboxes.push(w)}_insertReadonly(){throw new Error("Cannot insert into a GridIndex created from an ArrayBuffer.")}_insertCell(l,c,p,g,w,k){this.cells[w].push(k)}query(l,c,p,g,w){const k=this.min,P=this.max;if(l<=k&&c<=k&&P<=p&&P<=g&&!w)return[...this.keys];{const R=[];return this._forEachCell(l,c,p,g,this._queryCell,R,{},w),R}}_queryCell(l,c,p,g,w,k,P,R){const L=this.cells[w];if(L!==null){const j=this.keys,F=this.bboxes;for(const te of L)if(P[te]===void 0){const G=4*te;(R?R(F[G+0],F[G+1],F[G+2],F[G+3]):l<=F[G+2]&&c<=F[G+3]&&p>=F[G+0]&&g>=F[G+1])?(P[te]=!0,k.push(j[te])):P[te]=!1}}}_forEachCell(l,c,p,g,w,k,P,R){const L=this._convertToCellCoord(l),j=this._convertToCellCoord(c),F=this._convertToCellCoord(p),te=this._convertToCellCoord(g);for(let G=L;G<=F;G++)for(let oe=j;oe<=te;oe++){const ue=this.d*oe+G;if((!R||R(this._convertFromCellCoord(G),this._convertFromCellCoord(oe),this._convertFromCellCoord(G+1),this._convertFromCellCoord(oe+1)))&&w.call(this,l,c,p,g,ue,k,P,R))return}}_convertFromCellCoord(l){return(l-this.padding)/this.scale}_convertToCellCoord(l){return Math.max(0,Math.min(this.d-1,Math.floor(l*this.scale)+this.padding))}toArrayBuffer(){if(this.arrayBuffer)return this.arrayBuffer;const l=this.cells,c=3+this.cells.length+1+1;let p=0;for(const k of this.cells)p+=k.length;const g=new Int32Array(c+p+this.keys.length+this.bboxes.length);g[0]=this.extent,g[1]=this.n,g[2]=this.padding;let w=c;for(let k=0;k<l.length;k++){const P=l[k];g[3+k]=w,g.set(P,w),w+=P.length}return g[3+l.length]=w,g.set(this.keys,w),w+=this.keys.length,g[3+l.length+1]=w,g.set(this.bboxes,w),w+=this.bboxes.length,g.buffer}static serialize(l,c){const p=l.toArrayBuffer();return c&&c.push(p),{buffer:p}}static deserialize(l){return new gl(l.buffer)}}const yl={};function bn(d,l,c={}){if(yl[d])throw new Error(`${d} is already registered.`);Object.defineProperty(l,"_classRegistryKey",{value:d,writeable:!1}),yl[d]={klass:l,omit:c.omit||[],shallow:c.shallow||[]}}bn("Object",Object),bn("Set",Set),bn("TransferableGridIndex",gl),bn("Color",sr),bn("Error",Error),bn("AJAXError",Zt),bn("ResolvedImage",Qo),bn("StylePropertyFunction",da),bn("StyleExpression",Hc,{omit:["_evaluator"]}),bn("ZoomDependentExpression",Jp),bn("ZoomConstantExpression",Xp),bn("CompoundExpression",Es,{omit:["_evaluate"]});for(const d in Ar)Ar[d]._classRegistryKey||bn(`Expression_${d}`,Ar[d]);function em(d){var l;return d&&typeof ArrayBuffer<"u"&&(d instanceof ArrayBuffer||((l=d.constructor)===null||l===void 0?void 0:l.name)==="ArrayBuffer")}function Gl(d){return d.$name||d.constructor._classRegistryKey}function ch(d){return!(function(l){if(l===null||typeof l!="object")return!1;const c=Gl(l);return c&&c!=="Object"})(d)&&(d==null||typeof d=="boolean"||typeof d=="number"||typeof d=="string"||d instanceof Boolean||d instanceof Number||d instanceof String||d instanceof Date||d instanceof RegExp||d instanceof Blob||d instanceof Error||em(d)||qe(d)||ArrayBuffer.isView(d)||d instanceof ImageData)}function Yl(d,l){if(ch(d))return(em(d)||qe(d))&&l&&l.push(d),ArrayBuffer.isView(d)&&l&&l.push(d.buffer),d instanceof ImageData&&l&&l.push(d.data.buffer),d;if(Array.isArray(d)){const w=[];for(const k of d)w.push(Yl(k,l));return w}if(typeof d!="object")throw new Error("can't serialize object of type "+typeof d);const c=Gl(d);if(!c)throw new Error(`can't serialize object of unregistered class ${d.constructor.name}`);if(!yl[c])throw new Error(`${c} is not registered.`);const{klass:p}=yl[c],g=p.serialize?p.serialize(d,l):{};if(p.serialize){if(g===l?.[l.length-1])throw new Error("statically serialized object won't survive transfer of $name property")}else{for(const w in d){if(!d.hasOwnProperty(w)||yl[c].omit.includes(w))continue;const k=d[w];g[w]=yl[c].shallow.includes(w)?k:Yl(k,l)}d instanceof Error&&(g.message=d.message)}if(g.$name)throw new Error("$name property is reserved for worker serialization logic.");return c!=="Object"&&(g.$name=c),g}
vendor: 11,558 bytes, line 24
24function Wd(d){if(ch(d))return d;if(Array.isArray(d))return d.map(Wd);if(typeof d!="object")throw new Error("can't deserialize object of type "+typeof d);const l=Gl(d)||"Object";if(!yl[l])throw new Error(`can't deserialize unregistered class ${l}`);const{klass:c}=yl[l];if(!c)throw new Error(`can't deserialize unregistered class ${l}`);if(c.deserialize)return c.deserialize(d);const p=Object.create(c.prototype);for(const g of Object.keys(d)){if(g==="$name")continue;const w=d[g];p[g]=yl[l].shallow.includes(g)?w:Wd(w)}return p}class S0{constructor(){this.first=!0}update(l,c){const p=Math.floor(l);return this.first?(this.first=!1,this.lastIntegerZoom=p,this.lastIntegerZoomTime=0,this.lastZoom=l,this.lastFloorZoom=p,!0):(this.lastFloorZoom>p?(this.lastIntegerZoom=p+1,this.lastIntegerZoomTime=c):this.lastFloorZoom<p&&(this.lastIntegerZoom=p,this.lastIntegerZoomTime=c),l!==this.lastZoom&&(this.lastZoom=l,this.lastFloorZoom=p,!0))}}function vl(d){return/[\u02EA\u02EB\u2E80-\u2FDF\u2FF0-\u303F\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FD-\u30FF\u3105-\u312F\u31A0-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uF900-\uFA6D\uFA70-\uFAD9\uFE10-\uFE1F\uFE30-\uFE4F\uFF00-\uFFEF]|\uD81B[\uDFE0-\uDFFF]|[\uD81C-\uD822\uD840-\uD868\uD86A-\uD86D\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD88C][\uDC00-\uDFFF]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD1E\uDD80-\uDDF2]|\uD82B[\uDFF0-\uDFFF]|\uD82C[\uDC00-\uDEFB]|\uD83C[\uDE00-\uDEFF]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEAD\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD88D[\uDC00-\uDC79]/gim.test(String.fromCodePoint(d))}function Zl(d){return/[\u02EA\u02EB\u1100-\u11FF\u1400-\u167F\u18B0-\u18F5\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u3007\u3012\u3013\u3020-\u302F\u3031-\u303F\u3041-\u3096\u309D-\u30FB\u30FD-\u30FF\u3105-\u312F\u3131-\u318E\u3190-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFE10-\uFE1F\uFE30-\uFE48\uFE50-\uFE57\uFE5F-\uFE62\uFE67-\uFE6F\uFF00-\uFF07\uFF0A-\uFF0C\uFF0E-\uFF19\uFF1F-\uFF3A\uFF3C\uFF3E\uFF40-\uFF5A\uFFE0-\uFFE2\uFFE4-\uFFE7]|\uD802[\uDD80-\uDD9F]|\uD805[\uDD80-\uDDFF]|\uD806[\uDE00-\uDEBF]|\uD811[\uDC00-\uDE7F]|\uD81B[\uDFE0-\uDFE4\uDFF0-\uDFF6]|[\uD81C-\uD822\uD83D\uD840-\uD868\uD86A-\uD86D\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD88C][\uDC00-\uDFFF]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD1E\uDD80-\uDDF2]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD30-\uDEFB]|\uD833[\uDEC0-\uDFCF]|\uD834[\uDC00-\uDDFF\uDEE0-\uDF7F]|\uD836[\uDC00-\uDEAF]|\uD83C[\uDC00-\uDE00\uDF00-\uDFFF]|\uD83E[\uDD00-\uDEFF]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEAD\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD88D[\uDC00-\uDC79]/gim.test(String.fromCodePoint(d))}function Vu(d){return/\s/u.test(String.fromCodePoint(d))}function Ao(d){for(const l of d)if(Zl(l.codePointAt(0)))return!0;return!1}function tm(d){for(const l of d)if(!qu(l.codePointAt(0)))return!1;return!0}function C0(d){const l=d.map((c=>{try{return new RegExp(`\\p{sc=${c}}`,"u").source}catch{return null}})).filter((c=>c));return new RegExp(l.join("|"),"u")}const nm=C0(["Arab","Dupl","Mong","Ougr","Syrc"]);function qu(d){return!nm.test(String.fromCodePoint(d))}function _l(d){return!(Zl(d)||(l=d,/[\xA7\xA9\xAE\xB1\xBC-\xBE\xD7\xF7\u2016\u2020\u2021\u2030\u2031\u203B\u203C\u2042\u2047-\u2049\u2051\u2100-\u218F\u221E\u2234\u2235\u2300-\u2307\u230C-\u231F\u2324-\u2328\u232B\u237D-\u239A\u23BE-\u23CD\u23CF\u23D1-\u23DB\u23E2-\u2422\u2424-\u24FF\u25A0-\u2619\u2620-\u2767\u2776-\u2793\u2B12-\u2B2F\u2B50-\u2B59\u2BB8-\u2BEB\u3000-\u303F\u30A0-\u30FF\uE000-\uF8FF\uFE30-\uFE6F\uFF00-\uFFEF\uFFFC\uFFFD]|[\uDB80-\uDBFF][\uDC00-\uDFFF]/gim.test(String.fromCodePoint(l))));var l}const T0=C0(["Adlm","Arab","Armi","Avst","Chrs","Cprt","Egyp","Elym","Gara","Hatr","Hebr","Hung","Khar","Lydi","Mand","Mani","Mend","Merc","Mero","Narb","Nbat","Nkoo","Orkh","Palm","Phli","Phlp","Phnx","Prti","Rohg","Samr","Sarb","Sogo","Syrc","Thaa","Todr","Yezi"]);function k0(d){return T0.test(String.fromCodePoint(d))}function dh(d,l){return!(!l&&k0(d)||/[\u0900-\u0DFF\u0F00-\u109F\u1780-\u17FF]/gim.test(String.fromCodePoint(d)))}function E0(d){for(const l of d)if(k0(l.codePointAt(0)))return!0;return!1}const bl=new class{constructor(){this.TIMEOUT=5e3,this.applyArabicShaping=null,this.processBidirectionalText=null,this.processStyledBidirectionalText=null,this.pluginStatus="unavailable",this.pluginURL=null,this.loadScriptResolve=()=>{}}setState(d){this.pluginStatus=d.pluginStatus,this.pluginURL=d.pluginURL}getState(){return{pluginStatus:this.pluginStatus,pluginURL:this.pluginURL}}setMethods(d){if(bl.isParsed())throw new Error("RTL text plugin already registered.");this.applyArabicShaping=d.applyArabicShaping,this.processBidirectionalText=d.processBidirectionalText,this.processStyledBidirectionalText=d.processStyledBidirectionalText,this.loadScriptResolve()}isParsed(){return this.applyArabicShaping!=null&&this.processBidirectionalText!=null&&this.processStyledBidirectionalText!=null}getRTLTextPluginStatus(){return this.pluginStatus}syncState(d,l){return o(this,void 0,void 0,(function*(){if(this.isParsed())return this.getState();if(d.pluginStatus!=="loading")return this.setState(d),d;const c=d.pluginURL,p=new Promise((w=>{this.loadScriptResolve=w}));l(c);const g=new Promise((w=>setTimeout((()=>w()),this.TIMEOUT)));if(yield Promise.race([p,g]),this.isParsed()){const w={pluginStatus:"loaded",pluginURL:c};return this.setState(w),w}throw this.setState({pluginStatus:"error",pluginURL:""}),new Error(`RTL Text Plugin failed to import scripts from ${c}`)}))}};class or{constructor(l,c){this.isSupportedScript=rm,this.zoom=l,c?(this.now=c.now||0,this.fadeDuration=c.fadeDuration||0,this.zoomHistory=c.zoomHistory||new S0,this.transition=c.transition||{}):(this.now=0,this.fadeDuration=0,this.zoomHistory=new S0,this.transition={})}crossFadingFactor(){return this.fadeDuration===0?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)}getCrossfadeParameters(){const l=this.zoom,c=l-Math.floor(l),p=this.crossFadingFactor();return l>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:c+(1-c)*p}:{fromScale:.5,toScale:1,t:1-(1-p)*c}}}function rm(d){return(function(l,c){for(const p of l)if(!dh(p.codePointAt(0),c))return!1;return!0})(d,bl.getRTLTextPluginStatus()==="loaded")}const fh="-transition";class Io{constructor(l,c,p){this.property=l,this.value=c,this.expression=(function(g,w,k){if(Ru(g))return new da(g,w);if(Kp(g)){const P=la(g,w,k);if(P.result==="error")throw new Error(P.value.map((R=>`${R.key}: ${R.message}`)).join(", "));return P.value}{let P=g;return w.type==="color"&&typeof g=="string"?P=sr.parse(g):w.type!=="padding"||typeof g!="number"&&!Array.isArray(g)?w.type!=="numberArray"||typeof g!="number"&&!Array.isArray(g)?w.type!=="colorArray"||typeof g!="string"&&!Array.isArray(g)?w.type==="variableAnchorOffsetCollection"&&Array.isArray(g)?P=ho.parse(g):w.type==="projectionDefinition"&&typeof g=="string"&&(P=po.parse(g)):P=jn.parse(g):P=ki.parse(g):P=Ga.parse(g),{globalStateRefs:new Set,_globalState:null,kind:"constant",evaluate:()=>P}}})(c===void 0?l.specification.default:c,l.specification,p)}isDataDriven(){return this.expression.kind==="source"||this.expression.kind==="composite"}getGlobalStateRefs(){return this.expression.globalStateRefs||new Set}possiblyEvaluate(l,c,p){return this.property.possiblyEvaluate(this,l,c,p)}}class hh{constructor(l,c){this.property=l,this.value=new Io(l,void 0,c)}transitioned(l,c){return new Kl(this.property,this.value,c,ut({},l.transition,this.transition),l.now)}untransitioned(){return new Kl(this.property,this.value,null,{},0)}}class Gd{constructor(l,c){this._properties=l,this._values=Object.create(l.defaultTransitionablePropertyValues),this._globalState=c}hasProperty(l){return l in this._properties.defaultTransitionablePropertyValues}getValue(l){return Ee(this._values[l].value.value)}setValue(l,c){Object.hasOwn(this._values,l)||(this._values[l]=new hh(this._values[l].property,this._globalState)),this._values[l].value=new Io(this._values[l].property,c===null?void 0:Ee(c),this._globalState)}getTransition(l){return Ee(this._values[l].transition)}setTransition(l,c){Object.hasOwn(this._values,l)||(this._values[l]=new hh(this._values[l].property,this._globalState)),this._values[l].transition=Ee(c)||void 0}serialize(){const l={};for(const c of Object.keys(this._values)){const p=this.getValue(c);p!==void 0&&(l[c]=p);const g=this.getTransition(c);g!==void 0&&(l[`${c}${fh}`]=g)}return l}transitioned(l,c){const p=new P0(this._properties);for(const g of Object.keys(this._values))p._values[g]=this._values[g].transitioned(l,c._values[g]);return p}untransitioned(){const l=new P0(this._properties);for(const c of Object.keys(this._values))l._values[c]=this._values[c].untransitioned();return l}}class Kl{constructor(l,c,p,g,w){this.property=l,this.value=c,this.begin=w+g.delay||0,this.end=this.begin+g.duration||0,l.specification.transition&&(g.delay||g.duration)&&(this.prior=p)}possiblyEvaluate(l,c,p){const g=l.now||0,w=this.value.possiblyEvaluate(l,c,p),k=this.prior;if(k){if(g>this.end)return this.prior=null,w;if(this.value.isDataDriven())return this.prior=null,w;if(g<this.begin)return k.possiblyEvaluate(l,c,p);{const P=(g-this.begin)/(this.end-this.begin);return this.property.interpolate(k.possiblyEvaluate(l,c,p),w,Qe(P))}}return w}}class P0{constructor(l){this._properties=l,this._values=Object.create(l.defaultTransitioningPropertyValues)}possiblyEvaluate(l,c,p){const g=new ph(this._properties);for(const w of Object.keys(this._values))g._values[w]=this._values[w].possiblyEvaluate(l,c,p);return g}hasTransition(){for(const l of Object.keys(this._values))if(this._values[l].prior)return!0;return!1}}class yo{constructor(l,c){this._properties=l,this._values=Object.create(l.defaultPropertyValues),this._globalState=c}hasValue(l){return this._values[l].value!==void 0}hasProperty(l){return l in this._properties.defaultPropertyValues}getValue(l){return Ee(this._values[l].value)}setValue(l,c){this._values[l]=new Io(this._values[l].property,c===null?void 0:Ee(c),this._globalState)}serialize(){const l={};for(const c of Object.keys(this._values)){const p=this.getValue(c);p!==void 0&&(l[c]=p)}return l}possiblyEvaluate(l,c,p){const g=new ph(this._properties);for(const w of Object.keys(this._values))g._values[w]=this._values[w].possiblyEvaluate(l,c,p);return g}}class is{constructor(l,c,p){this.property=l,this.value=c,this.parameters=p}isConstant(){return this.value.kind==="constant"}constantOr(l){return this.value.kind==="constant"?this.value.value:l}evaluate(l,c,p,g){return this.property.evaluate(this.value,this.parameters,l,c,p,g)}}class ph{constructor(l){this._properties=l,this._values=Object.create(l.defaultPossiblyEvaluatedValues)}get(l){return this._values[l]}}class Pn{constructor(l){this.specification=l}possiblyEvaluate(l,c){if(l.isDataDriven())throw new Error("Value should not be data driven");return l.expression.evaluate(c)}interpolate(l,c,p){const g=Za[this.specification.type];return g?g(l,c,p):l}}class Rn{constructor(l,c){this.specification=l,this.overrides=c}possiblyEvaluate(l,c,p,g){return new is(this,l.expression.kind==="constant"||l.expression.kind==="camera"?{kind:"constant",value:l.expression.evaluate(c,null,{},p,g)}:l.expression,c)}
24interpolate(l,c,p){if(l.value.kind!=="constant"||c.value.kind!=="constant")return l;if(l.value.value===void 0||c.value.value===void 0)return new is(this,{kind:"constant",value:void 0},l.parameters);const g=Za[this.specification.type];if(g){const w=g(l.value.value,c.value.value,p);return new is(this,{kind:"constant",value:w},l.parameters)}return l}evaluate(l,c,p,g,w,k){return l.kind==="constant"?l.value:l.evaluate(c,p,g,w,k)}}class xl extends Rn{possiblyEvaluate(l,c,p,g){if(l.value===void 0)return new is(this,{kind:"constant",value:void 0},c);if(l.expression.kind==="constant"){const w=l.expression.evaluate(c,null,{},p,g),k=l.property.specification.type==="resolvedImage"&&typeof w!="string"?w.name:w,P=this._calculate(k,k,k,c);return new is(this,{kind:"constant",value:P},c)}if(l.expression.kind==="camera"){const w=this._calculate(l.expression.evaluate({zoom:c.zoom-1}),l.expression.evaluate({zoom:c.zoom}),l.expression.evaluate({zoom:c.zoom+1}),c);return new is(this,{kind:"constant",value:w},c)}return new is(this,l.expression,c)}evaluate(l,c,p,g,w,k){if(l.kind==="source"){const P=l.evaluate(c,p,g,w,k);return this._calculate(P,P,P,c)}return l.kind==="composite"?this._calculate(l.evaluate({zoom:Math.floor(c.zoom)-1},p,g),l.evaluate({zoom:Math.floor(c.zoom)},p,g),l.evaluate({zoom:Math.floor(c.zoom)+1},p,g),c):l.value}_calculate(l,c,p,g){return g.zoom>g.zoomHistory.lastIntegerZoom?{from:l,to:c}:{from:p,to:c}}interpolate(l){return l}}class N1{constructor(l){this.specification=l}possiblyEvaluate(l,c,p,g){if(l.value!==void 0){if(l.expression.kind==="constant"){const w=l.expression.evaluate(c,null,{},p,g);return this._calculate(w,w,w,c)}return this._calculate(l.expression.evaluate(new or(Math.floor(c.zoom-1),c)),l.expression.evaluate(new or(Math.floor(c.zoom),c)),l.expression.evaluate(new or(Math.floor(c.zoom+1),c)),c)}}_calculate(l,c,p,g){return g.zoom>g.zoomHistory.lastIntegerZoom?{from:l,to:c}:{from:p,to:c}}interpolate(l){return l}}class wl{constructor(l){this.specification=l}possiblyEvaluate(l,c,p,g){return!!l.expression.evaluate(c,null,{},p,g)}interpolate(){return!1}}class Xa{constructor(l){this.properties=l,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(const c in l){const p=l[c];p.specification.overridable&&this.overridableProperties.push(c);const g=this.defaultPropertyValues[c]=new Io(p,void 0,void 0),w=this.defaultTransitionablePropertyValues[c]=new hh(p,void 0);this.defaultTransitioningPropertyValues[c]=w.untransitioned(),this.defaultPossiblyEvaluatedValues[c]=g.possiblyEvaluate({})}}}bn("DataDrivenProperty",Rn),bn("DataConstantProperty",Pn),bn("CrossFadedDataDrivenProperty",xl),bn("CrossFadedProperty",N1),bn("ColorRampProperty",wl);const V1=" is a PAINT property not a LAYOUT property. Use get/setPaintProperty instead?",im=" is a LAYOUT property not a PAINT property. Use get/setLayoutProperty instead?";class Ja extends va{constructor(l,c,p){if(super(),this.id=l.id,this.type=l.type,this._globalState=p,this._featureFilter={filter:()=>!0,needGeometry:!1,getGlobalStateRefs:()=>new Set},this._visibilityExpression=(function(g,w){return new mb(g,w)})(this.visibility,p),l.type!=="custom"&&(this.metadata=l.metadata,this.minzoom=l.minzoom,this.maxzoom=l.maxzoom,l.type!=="background"&&(this.source=l.source,this.sourceLayer=l["source-layer"],this.filter=l.filter,this._featureFilter=Ul(l.filter,p)),c.layout&&(this._unevaluatedLayout=new yo(c.layout,p)),c.paint)){this._transitionablePaint=new Gd(c.paint,p);for(const g in l.paint)this.setPaintProperty(g,l.paint[g],{validate:!1});for(const g in l.layout)this.setLayoutProperty(g,l.layout[g],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new ph(c.paint)}}setFilter(l){this.filter=l,this._featureFilter=Ul(l,this._globalState)}getCrossfadeParameters(){return this._crossfadeParameters}getLayoutProperty(l){var c;if(l==="visibility")return this.visibility;if(!((c=this._transitionablePaint)===null||c===void 0)&&c.hasProperty(l))throw new Error(l+V1);if(!this._unevaluatedLayout)throw new Error(`Cannot get layout property "${l}" on layer type "${this.type}" which has no layout properties.`);return this._unevaluatedLayout.getValue(l)}getLayoutAffectingGlobalStateRefs(){const l=new Set;for(const c of this._visibilityExpression.getGlobalStateRefs())l.add(c);if(this._unevaluatedLayout)for(const c in this._unevaluatedLayout._values){const p=this._unevaluatedLayout._values[c];for(const g of p.getGlobalStateRefs())l.add(g)}for(const c of this._featureFilter.getGlobalStateRefs())l.add(c);return l}getPaintAffectingGlobalStateRefs(){var l;const c=new globalThis.Map;if(this._transitionablePaint)for(const p in this._transitionablePaint._values){const g=this._transitionablePaint._values[p].value;for(const w of g.getGlobalStateRefs()){const k=(l=c.get(w))!==null&&l!==void 0?l:[];k.push({name:p,value:g.value}),c.set(w,k)}}return c}getVisibilityAffectingGlobalStateRefs(){return this._visibilityExpression.getGlobalStateRefs()}setLayoutProperty(l,c,p={}){var g;if(l==="visibility")return this.visibility=c,this._visibilityExpression.setValue(c),void this.recalculateVisibility();!((g=this._transitionablePaint)===null||g===void 0)&&g.hasProperty(l)?this.fire(new mi(new Error(l+V1))):c!=null&&this._val
24idate(gb,`layers.${this.id}.layout.${l}`,l,c,p)||this._unevaluatedLayout.setValue(l,c)}getPaintProperty(l){var c,p;if(l.endsWith(fh)){const g=l.slice(0,-11);if(g==="visibility"||!((c=this._unevaluatedLayout)===null||c===void 0)&&c.hasProperty(g))throw new Error(l+im);return this._transitionablePaint.getTransition(g)}if(l==="visibility"||!((p=this._unevaluatedLayout)===null||p===void 0)&&p.hasProperty(l))throw new Error(l+im);return this._transitionablePaint.getValue(l)}setPaintProperty(l,c,p={}){var g;if(l==="visibility"||!((g=this._unevaluatedLayout)===null||g===void 0)&&g.hasProperty(l))return this.fire(new mi(new Error(l+im))),!1;if(c!=null&&this._validate(z1,`layers.${this.id}.paint.${l}`,l,c,p))return!1;if(l.endsWith(fh))return this._transitionablePaint.setTransition(l.slice(0,-11),c||void 0),!1;{const w=this._transitionablePaint._values[l],k=w.property.specification["property-type"]==="cross-faded-data-driven",P=w.value.isDataDriven(),R=w.value;this._transitionablePaint.setValue(l,c),this._handleSpecialPaintPropertyUpdate(l);const L=this._transitionablePaint._values[l].value;return L.isDataDriven()||P||k||this._handleOverridablePaintPropertyUpdate(l,R,L)}}_handleSpecialPaintPropertyUpdate(l){}_handleOverridablePaintPropertyUpdate(l,c,p){return!1}isHidden(l=this.minzoom,c=!1){return!!(this.minzoom&&l<(c?Math.floor(this.minzoom):this.minzoom))||!!(this.maxzoom&&l>=this.maxzoom)||this._evaluatedVisibility==="none"}updateTransitions(l){this._transitioningPaint=this._transitionablePaint.transitioned(l,this._transitioningPaint)}hasTransition(){return this._transitioningPaint.hasTransition()}recalculateVisibility(){this._evaluatedVisibility=this._visibilityExpression.evaluate()}recalculate(l,c){l.getCrossfadeParameters&&(this._crossfadeParameters=l.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(l,void 0,c)),this.paint=this._transitioningPaint.possiblyEvaluate(l,void 0,c)}serialize(){var l,c;
24const p={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:(l=this._unevaluatedLayout)===null||l===void 0?void 0:l.serialize(),paint:(c=this._transitionablePaint)===null||c===void 0?void 0:c.serialize()};return this.visibility&&(p.layout||(p.layout={}),p.layout.visibility=this.visibility),Ot(p,((g,w)=>!(g===void 0||w==="layout"&&!Object.keys(g).length||w==="paint"&&!Object.keys(g).length)))}_validate(l,c,p,g,w={}){return w?.validate!==!1&&w0(this,l.call(ml,{key:c,layerType:this.type,objectKey:p,value:g,styleSpec:Ft,style:{glyphs:!0,sprite:!0}}))}is3D(){return!1}isTileClipped(){return!1}hasOffscreenPass(){return!1}resize(){}isStateDependent(){for(const l in this.paint._values){const c=this.paint.get(l);if(c instanceof is&&jc(c.property.specification)&&(c.value.kind==="source"||c.value.kind==="composite")&&c.value.isStateDependent)return!0}return!1}}let $0;var yb={get paint(){return $0=$0||new Xa({"raster-opacity":new Pn(Ft.paint_raster["raster-opacity"]),"raster-hue-rotate":new Pn(Ft.paint_raster["raster-hue-rotate"]),"raster-brightness-min":new Pn(Ft.paint_raster["raster-brightness-min"]),"raster-brightness-max":new Pn(Ft.paint_raster["raster-brightness-max"]),"raster-saturation":new Pn(Ft.paint_raster["raster-saturation"]),"raster-contrast":new Pn(Ft.paint_raster["raster-contrast"]),resampling:new Pn(Ft.paint_raster.resampling),"raster-resampling":new Pn(Ft.paint_raster["raster-resampling"]),"raster-fade-duration":new Pn(Ft.paint_raster["raster-fade-duration"])})}};class M0 extends Ja{constructor(l,c){super(l,yb,c)}}const q1={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array};class mh{constructor(l,c){this._structArray=l,this._pos1=c*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8}}class Ei{constructor(){this.isTransferred=!1,this.capacity=-1,this.resize(0)}static serialize(l,c){return l._trim(),c&&(l.isTransferred=!0,c.push(l.arrayBuffer)),{length:l.length,arrayBuffer:l.arrayBuffer}}static deserialize(l){const c=Object.create(this.prototype);return c.arrayBuffer=l.arrayBuffer,c.length=l.length,c.capacity=l.arrayBuffer.byteLength/c.bytesPerElement,c._refreshViews(),c}_trim(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())}clear(){this.length=0}resize(l){this.reserve(l),this.length=l}reserve(l){if(l>this.capacity){this.capacity=Math.max(l,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);const c=this.uint8;this._refreshViews(),c&&this.uint8.set(c)}}_refreshViews(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")}freeBufferAfterUpload(){this.arrayBuffer=new ArrayBuffer(0),this._refreshViews()}}function oi(d,l=1){let c=0,p=0;return{members:d.map((g=>{const w=q1[g.type].BYTES_PER_ELEMENT,k=c=A0(c,Math.max(l,w)),P=g.components||1;return p=Math.max(p,w),c+=w*P,{name:g.name,type:g.type,components:P,offset:k}})),size:A0(c,Math.max(p,l)),alignment:l}}function A0(d,l){return Math.ceil(d/l)*l}
vendor: 17,075 bytes, line 24
24class Zc extends Ei{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(l,c){const p=this.length;return this.resize(p+1),this.emplace(p,l,c)}emplace(l,c,p){const g=2*l;return this.int16[g+0]=c,this.int16[g+1]=p,l}}Zc.prototype.bytesPerElement=4,bn("StructArrayLayout2i4",Zc);class am extends Ei{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(l,c,p){const g=this.length;return this.resize(g+1),this.emplace(g,l,c,p)}emplace(l,c,p,g){const w=3*l;return this.int16[w+0]=c,this.int16[w+1]=p,this.int16[w+2]=g,l}}am.prototype.bytesPerElement=6,bn("StructArrayLayout3i6",am);class Yd extends Ei{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(l,c,p,g){const w=this.length;return this.resize(w+1),this.emplace(w,l,c,p,g)}emplace(l,c,p,g,w){const k=4*l;return this.int16[k+0]=c,this.int16[k+1]=p,this.int16[k+2]=g,this.int16[k+3]=w,l}}Yd.prototype.bytesPerElement=8,bn("StructArrayLayout4i8",Yd);class gh extends Ei{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(l,c,p,g,w,k){const P=this.length;return this.resize(P+1),this.emplace(P,l,c,p,g,w,k)}emplace(l,c,p,g,w,k,P){const R=6*l;return this.int16[R+0]=c,this.int16[R+1]=p,this.int16[R+2]=g,this.int16[R+3]=w,this.int16[R+4]=k,this.int16[R+5]=P,l}}gh.prototype.bytesPerElement=12,bn("StructArrayLayout2i4i12",gh);class om extends Ei{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(l,c,p,g,w,k){const P=this.length;return this.resize(P+1),this.emplace(P,l,c,p,g,w,k)}emplace(l,c,p,g,w,k,P){const R=4*l,L=8*l;return this.int16[R+0]=c,this.int16[R+1]=p,this.uint8[L+4]=g,this.uint8[L+5]=w,this.uint8[L+6]=k,this.uint8[L+7]=P,l}}om.prototype.bytesPerElement=8,bn("StructArrayLayout2i4ub8",om);class Zd extends Ei{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(l,c){const p=this.length;return this.resize(p+1),this.emplace(p,l,c)}emplace(l,c,p){const g=2*l;return this.float32[g+0]=c,this.float32[g+1]=p,l}}Zd.prototype.bytesPerElement=8,bn("StructArrayLayout2f8",Zd);class Ms extends Ei{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(l,c,p,g,w,k,P,R,L,j){const F=this.length;return this.resize(F+1),this.emplace(F,l,c,p,g,w,k,P,R,L,j)}emplace(l,c,p,g,w,k,P,R,L,j,F){const te=10*l;return this.uint16[te+0]=c,this.uint16[te+1]=p,this.uint16[te+2]=g,this.uint16[te+3]=w,this.uint16[te+4]=k,this.uint16[te+5]=P,this.uint16[te+6]=R,this.uint16[te+7]=L,this.uint16[te+8]=j,this.uint16[te+9]=F,l}}Ms.prototype.bytesPerElement=20,bn("StructArrayLayout10ui20",Ms);class sm extends Ei{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(l,c,p,g,w,k,P,R){const L=this.length;return this.resize(L+1),this.emplace(L,l,c,p,g,w,k,P,R)}emplace(l,c,p,g,w,k,P,R,L){const j=8*l;return this.uint16[j+0]=c,this.uint16[j+1]=p,this.uint16[j+2]=g,this.uint16[j+3]=w,this.uint16[j+4]=k,this.uint16[j+5]=P,this.uint16[j+6]=R,this.uint16[j+7]=L,l}}sm.prototype.bytesPerElement=16,bn("StructArrayLayout8ui16",sm);class Kd extends Ei{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(l,c,p,g,w,k,P,R,L,j,F,te){const G=this.length;return this.resize(G+1),this.emplace(G,l,c,p,g,w,k,P,R,L,j,F,te)}emplace(l,c,p,g,w,k,P,R,L,j,F,te,G){const oe=12*l;return this.int16[oe+0]=c,this.int16[oe+1]=p,this.int16[oe+2]=g,this.int16[oe+3]=w,this.uint16[oe+4]=k,this.uint16[oe+5]=P,this.uint16[oe+6]=R,this.uint16[oe+7]=L,this.int16[oe+8]=j,this.int16[oe+9]=F,this.int16[oe+10]=te,this.int16[oe+11]=G,l}}Kd.prototype.bytesPerElement=24,bn("StructArrayLayout4i4ui4i24",Kd);class yh extends Ei{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(l,c,p){const g=this.length;return this.resize(g+1),this.emplace(g,l,c,p)}emplace(l,c,p,g){const w=3*l;return this.float32[w+0]=c,this.float32[w+1]=p,this.float32[w+2]=g,l}}yh.prototype.bytesPerElement=12,bn("StructArrayLayout3f12",yh);class vh extends Ei{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(l){const c=this.length;return this.resize(c+1),this.emplace(c,l)}emplace(l,c){return this.uint32[1*l+0]=c,l}}vh.prototype.bytesPerElement=4,bn("StructArrayLayout1ul4",vh);class lm extends Ei{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(l,c,p,g,w,k,P,R,L){const j=this.length;return this.resize(j+1),this.emplace(j,l,c,p,g,w,k,P,R,L)}emplace(l,c,p,g,w,k,P,R,L,j){const F=10*l,te=5*l;return this.int16[F+0]=c,this.int16[F+1]=p,this.int16[F+2]=g,this.int16[F+3]=w,this.int16[F+4]=k,this.int16[F+5]=P,this.uint32[te+3]=R,this.uint16[F+8]=L,this.uint16[F+9]=j,l}}lm.prototype.bytesPerElement=20,bn("StructArrayLayout6i1ul2ui20",lm);class Xd extends Ei{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(l,c,p,g,w,k){const P=this.length;return this.resize(P+1),this.emplace(P,l,c,p,g,w,k)}emplace(l,c,p,g,w,k,P){const R=6*l;return this.int16[R+0]=c,this.int16[R+1]=p,this.int16[R+2]=g,this.int16[R+3]=w,this.int16[R+4]=k,this.int16[R+5]=P,l}}Xd.prototype.bytesPerElement=12,bn("StructArrayLayout2i2i2i12",Xd);class Xl extends Ei{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(l,c,p,g,w){const k=this.length;return this.resize(k+1),this.emplace(k,l,c,p,g,w)}emplace(l,c,p,g,w,k){const P=4*l,R=8*l;return this.float32[P+0]=c,this.float32[P+1]=p,this.float32[P+2]=g,this.int16[R+6]=w,this.int16[R+7]=k,l}}Xl.prototype.bytesPerElement=16,bn("StructArrayLayout2f1f2i16",Xl);class um extends Ei{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(l,c,p,g,w,k){const P=this.length;return this.resize(P+1),this.emplace(P,l,c,p,g,w,k)}emplace(l,c,p,g,w,k,P){const R=16*l,L=4*l,j=8*l;return this.uint8[R+0]=c,this.uint8[R+1]=p,this.float32[L+1]=g,this.float32[L+2]=w,this.int16[j+6]=k,this.int16[j+7]=P,l}}um.prototype.bytesPerElement=16,bn("StructArrayLayout2ub2f2i16",um);class Kc extends Ei{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(l,c,p){const g=this.length;return this.resize(g+1),this.emplace(g,l,c,p)}emplace(l,c,p,g){const w=3*l;return this.uint16[w+0]=c,this.uint16[w+1]=p,this.uint16[w+2]=g,l}}Kc.prototype.bytesPerElement=6,bn("StructArrayLayout3ui6",Kc);class Xc extends Ei{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(l,c,p,g,w,k,P,R,L,j,F,te,G,oe,ue,ve,_e){const Me=this.length;return this.resize(Me+1),this.emplace(Me,l,c,p,g,w,k,P,R,L,j,F,te,G,oe,ue,ve,_e)}emplace(l,c,p,g,w,k,P,R,L,j,F,te,G,oe,ue,ve,_e,Me){const Te=24*l,Ae=12*l,ze=48*l;return this.int16[Te+0]=c,this.int16[Te+1]=p,this.uint16[Te+2]=g,this.uint16[Te+3]=w,this.uint32[Ae+2]=k,this.uint32[Ae+3]=P,this.uint32[Ae+4]=R,this.uint16[Te+10]=L,this.uint16[Te+11]=j,this.uint16[Te+12]=F,this.float32[Ae+7]=te,this.float32[Ae+8]=G,this.uint8[ze+36]=oe,this.uint8[ze+37]=ue,this.uint8[ze+38]=ve,this.uint32[Ae+10]=_e,this.int16[Te+22]=Me,l}}Xc.prototype.bytesPerElement=48,bn("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",Xc);class _h extends Ei{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(l,c,p,g,w,k,P,R,L,j,F,te,G,oe,ue,ve,_e,Me,Te,Ae,ze,We,dt,mt,Lt,Et,jt,Ut){const Bt=this.length;return this.resize(Bt+1),this.emplace(Bt,l,c,p,g,w,k,P,R,L,j,F,te,G,oe,ue,ve,_e,Me,Te,Ae,ze,We,dt,mt,Lt,Et,jt,Ut)}emplace(l,c,p,g,w,k,P,R,L,j,F,te,G,oe,ue,ve,_e,Me,Te,Ae,ze,We,dt,mt,Lt,Et,jt,Ut,Bt){const Mt=32*l,on=16*l;return this.int16[Mt+0]=c,this.int16[Mt+1]=p,this.int16[Mt+2]=g,this.int16[Mt+3]=w,this.int16[Mt+4]=k,this.int16[Mt+5]=P,this.int16[Mt+6]=R,this.int16[Mt+7]=L,this.uint16[Mt+8]=j,this.uint16[Mt+9]=F,this.uint16[Mt+10]=te,this.uint16[Mt+11]=G,this.uint16[Mt+12]=oe,this.uint16[Mt+13]=ue,this.uint16[Mt+14]=ve,this.uint16[Mt+15]=_e,this.uint16[Mt+16]=Me,this.uint16[Mt+17]=Te,this.uint16[Mt+18]=Ae,this.uint16[Mt+19]=ze,this.uint16[Mt+20]=We,this.uint16[Mt+21]=dt,this.uint16[Mt+22]=mt,this.uint32[on+12]=Lt,this.float32[on+13]=Et,this.float32[on+14]=jt,this.uint16[Mt+30]=Ut,this.uint16[Mt+31]=Bt,l}}_h.prototype.bytesPerElement=64,bn("StructArrayLayout8i15ui1ul2f2ui64",_h);class hr extends Ei{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(l){const c=this.length;return this.resize(c+1),this.emplace(c,l)}emplace(l,c){return this.float32[1*l+0]=c,l}}hr.prototype.bytesPerElement=4,bn("StructArrayLayout1f4",hr);class cm extends Ei{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(l,c,p){const g=this.length;return this.resize(g+1),this.emplace(g,l,c,p)}emplace(l,c,p,g){const w=3*l;return this.uint16[6*l+0]=c,this.float32[w+1]=p,this.float32[w+2]=g,l}}cm.prototype.bytesPerElement=12,bn("StructArrayLayout1ui2f12",cm);class I0 extends Ei{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(l,c,p){const g=this.length;return this.resize(g+1),this.emplace(g,l,c,p)}emplace(l,c,p,g){const w=4*l;return this.uint32[2*l+0]=c,this.uint16[w+2]=p,this.uint16[w+3]=g,l}}I0.prototype.bytesPerElement=8,bn("StructArrayLayout1ul2ui8",I0);class E extends Ei{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(l,c){const p=this.length;return this.resize(p+1),this.emplace(p,l,c)}emplace(l,c,p){const g=2*l;return this.uint16[g+0]=c,this.uint16[g+1]=p,l}}E.prototype.bytesPerElement=4,bn("StructArrayLayout2ui4",E);class u extends Ei{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(l){const c=this.length;return this.resize(c+1),this.emplace(c,l)}emplace(l,c){return this.uint16[1*l+0]=c,l}}u.prototype.bytesPerElement=2,bn("StructArrayLayout1ui2",u);class h extends Ei{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(l,c,p,g){const w=this.length;return this.resize(w+1),this.emplace(w,l,c,p,g)}emplace(l,c,p,g,w){const k=4*l;return this.float32[k+0]=c,this.float32[k+1]=p,this.float32[k+2]=g,this.float32[k+3]=w,l}}h.prototype.bytesPerElement=16,bn("StructArrayLayout4f16",h);class _ extends mh{get anchorPointX(){return this._structArray.int16[this._pos2+0]}get anchorPointY(){return this._structArray.int16[this._pos2+1]}get x1(){return this._structArray.int16[this._pos2+2]}get y1(){return this._structArray.int16[this._pos2+3]}get x2(){return this._structArray.int16[this._pos2+4]}get y2(){return this._structArray.int16[this._pos2+5]}get featureIndex(){return this._structArray.uint32[this._pos4+3]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+8]}get bucketIndex(){return this._structArray.uint16[this._pos2+9]}get anchorPoint(){return new f(this.anchorPointX,this.anchorPointY)}}_.prototype.size=20;class S extends lm{get(l){return new _(this,l)}}bn("CollisionBoxArray",S);class M extends mh{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get glyphStartIndex(){return this._structArray.uint16[this._pos2+2]}get numGlyphs(){return this._structArray.uint16[this._pos2+3]}get vertexStartIndex(){return this._structArray.uint32[this._pos4+2]}get lineStartIndex(){return this._structArray.uint32[this._pos4+3]}get lineLength(){return this._structArray.uint32[this._pos4+4]}get segment(){return this._structArray.uint16[this._pos2+10]}get lowerSize(){return this._structArray.uint16[this._pos2+11]}get upperSize(){return this._structArray.uint16[this._pos2+12]}get lineOffsetX(){return this._structArray.float32[this._pos4+7]}get lineOffsetY(){return this._structArray.float32[this._pos4+8]}get writingMode(){return this._structArray.uint8[this._pos1+36]}get placedOrientation(){return this._structArray.uint8[this._pos1+37]}set placedOrientation(l){this._structArray.uint8[this._pos1+37]=l}get hidden(){return this._structArray.uint8[this._pos1+38]}set hidden(l){this._structArray.uint8[this._pos1+38]=l}get crossTileID(){return this._structArray.uint32[this._pos4+10]}set crossTileID(l){this._structArray.uint32[this._pos4+10]=l}get associatedIconIndex(){return this._structArray.int16[this._pos2+22]}}M.prototype.size=48;class V extends Xc{get(l){return new M(this,l)}}bn("PlacedSymbolArray",V);class W extends mh{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get rightJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+2]}get centerJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+3]}get leftJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+4]}get verticalPlacedTextSymbolIndex(){return this._structArray.int16[this._pos2+5]}get placedIconSymbolIndex(){return this._structArray.int16[this._pos2+6]}get verticalPlacedIconSymbolIndex(){return this._structArray.int16[this._pos2+7]}get key(){return this._structArray.uint16[this._pos2+8]}get textBoxStartIndex(){return this._structArray.uint16[this._pos2+9]}get textBoxEndIndex(){return this._structArray.uint16[this._pos2+10]}get verticalTextBoxStartIndex(){return this._structArray.uint16[this._pos2+11]}get verticalTextBoxEndIndex(){return this._structArray.uint16[this._pos2+12]}get iconBoxStartIndex(){return this._structArray.uint16[this._pos2+13]}get iconBoxEndIndex(){return this._structArray.uint16[this._pos2+14]}get verticalIconBoxStartIndex(){return this._structArray.uint16[this._pos2+15]}get verticalIconBoxEndIndex(){return this._structArray.uint16[this._pos2+16]}get featureIndex(){return this._structArray.uint16[this._pos2+17]}get numHorizontalGlyphVertices(){return this._structArray.uint16[this._pos2+18]}get numVerticalGlyphVertices(){return this._structArray.uint16[this._pos2+19]}get numIconVertices(){return this._structArray.uint16[this._pos2+20]}get numVerticalIconVertices(){return this._structArray.uint16[this._pos2+21]}get useRuntimeCollisionCircles(){return this._structArray.uint16[this._pos2+22]}get crossTileID(){return this._structArray.uint32[this._pos4+12]}set crossTileID(l){this._structArray.uint32[this._pos4+12]=l}get textBoxScale(){return this._structArray.float32[this._pos4+13]}get collisionCircleDiameter(){return this._structArray.float32[this._pos4+14]}get textAnchorOffsetStartIndex(){return this._structArray.uint16[this._pos2+30]}get textAnchorOffsetEndIndex(){return this._structArray.uint16[this._pos2+31]}}W.prototype.size=64;class X extends _h{get(l){return new W(this,l)}}bn("SymbolInstanceArray",X);class re extends hr{getoffsetX(l){return this.float32[1*l+0]}}bn("GlyphOffsetArray",re);class ie extends am{getx(l){return this.int16[3*l+0]}gety(l){return this.int16[3*l+1]}gettileUnitDistanceFromAnchor(l){return this.int16[3*l+2]}}bn("SymbolLineVertexArray",ie);class he extends mh{get textAnchor(){return this._structArray.uint16[this._pos2+0]}get textOffset0(){return this._structArray.float32[this._pos4+1]}get textOffset1(){return this._structArray.float32[this._pos4+2]}}he.prototype.size=12;class ge extends cm{get(l){return new he(this,l)}}bn("TextAnchorOffsetArray",ge);class we extends mh{get featureIndex(){return this._structArray.uint32[this._pos4+0]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+2]}get bucketIndex(){return this._structArray.uint16[this._pos2+3]}}we.prototype.size=8;class Le extends I0{get(l){return new we(this,l)}}bn("FeatureIndexArray",Le);class He extends Zc{}class Xe extends Zc{}class Ze extends Zc{}class et extends gh{}class lt extends om{}class Je extends Zd{}class Ke extends Ms{}class ot extends sm{}class tt extends Kd{}class wt extends yh{}class Rt extends vh{}class Vt extends Xd{}class Qt extends um{}class Xt extends Kc{}
vendor: 6,724 bytes, line 24
24class Tn extends E{}const fn=oi([{name:"a_pos",components:2,type:"Int16"}],4),{members:Wt}=fn;class gn{constructor(l=[]){this._forceNewSegmentOnNextPrepare=!1,this.segments=l}prepareSegment(l,c,p,g){const w=this.segments[this.segments.length-1];return l>gn.MAX_VERTEX_ARRAY_LENGTH&&it(`Max vertices per segment is ${gn.MAX_VERTEX_ARRAY_LENGTH}: bucket requested ${l}. Consider using the \`fillLargeMeshArrays\` function if you require meshes with more than ${gn.MAX_VERTEX_ARRAY_LENGTH} vertices.`),this._forceNewSegmentOnNextPrepare||!w||w.vertexLength+l>gn.MAX_VERTEX_ARRAY_LENGTH||w.sortKey!==g?this.createNewSegment(c,p,g):w}createNewSegment(l,c,p){const g={vertexOffset:l.length,primitiveOffset:c.length,vertexLength:0,primitiveLength:0,vaos:{}};return p!==void 0&&(g.sortKey=p),this._forceNewSegmentOnNextPrepare=!1,this.segments.push(g),g}getOrCreateLatestSegment(l,c,p){return this.prepareSegment(0,l,c,p)}forceNewSegmentOnNextPrepare(){this._forceNewSegmentOnNextPrepare=!0}get(){return this.segments}destroy(){for(const l of this.segments)for(const c in l.vaos)l.vaos[c].destroy()}static simpleSegment(l,c,p,g){return new gn([{vertexOffset:l,primitiveOffset:c,vertexLength:p,primitiveLength:g,vaos:{},sortKey:0}])}}function Mn(d,l){return 256*(d=ct(Math.floor(d),0,255))+ct(Math.floor(l),0,255)}gn.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,bn("SegmentVector",gn);const ir=oi([{name:"a_pattern_from",components:4,type:"Uint16"},{name:"a_pattern_to",components:4,type:"Uint16"},{name:"a_pixel_ratio_from",components:1,type:"Uint16"},{name:"a_pixel_ratio_to",components:1,type:"Uint16"}]),jr=oi([{name:"a_dasharray_from",components:4,type:"Uint16"},{name:"a_dasharray_to",components:4,type:"Uint16"}]);var Xr,Yi,Li,Zi={exports:{}},Pi={exports:{}},Qa={exports:{}},Oa=(function(){if(Li)return Zi.exports;Li=1;var d=(Xr||(Xr=1,Pi.exports=function(c,p){var g,w,k,P,R,L,j,F;for(w=c.length-(g=3&c.length),k=p,R=3432918353,L=461845907,F=0;F<w;)j=255&c.charCodeAt(F)|(255&c.charCodeAt(++F))<<8|(255&c.charCodeAt(++F))<<16|(255&c.charCodeAt(++F))<<24,++F,k=27492+(65535&(P=5*(65535&(k=(k^=j=(65535&(j=(j=(65535&j)*R+(((j>>>16)*R&65535)<<16)&4294967295)<<15|j>>>17))*L+(((j>>>16)*L&65535)<<16)&4294967295)<<13|k>>>19))+((5*(k>>>16)&65535)<<16)&4294967295))+((58964+(P>>>16)&65535)<<16);switch(j=0,g){case 3:j^=(255&c.charCodeAt(F+2))<<16;case 2:j^=(255&c.charCodeAt(F+1))<<8;case 1:k^=j=(65535&(j=(j=(65535&(j^=255&c.charCodeAt(F)))*R+(((j>>>16)*R&65535)<<16)&4294967295)<<15|j>>>17))*L+(((j>>>16)*L&65535)<<16)&4294967295}return k^=c.length,k=2246822507*(65535&(k^=k>>>16))+((2246822507*(k>>>16)&65535)<<16)&4294967295,k=3266489909*(65535&(k^=k>>>13))+((3266489909*(k>>>16)&65535)<<16)&4294967295,(k^=k>>>16)>>>0}),Pi.exports),l=(Yi||(Yi=1,Qa.exports=function(c,p){for(var g,w=c.length,k=p^w,P=0;w>=4;)g=1540483477*(65535&(g=255&c.charCodeAt(P)|(255&c.charCodeAt(++P))<<8|(255&c.charCodeAt(++P))<<16|(255&c.charCodeAt(++P))<<24))+((1540483477*(g>>>16)&65535)<<16),k=1540483477*(65535&k)+((1540483477*(k>>>16)&65535)<<16)^(g=1540483477*(65535&(g^=g>>>24))+((1540483477*(g>>>16)&65535)<<16)),w-=4,++P;switch(w){case 3:k^=(255&c.charCodeAt(P+2))<<16;case 2:k^=(255&c.charCodeAt(P+1))<<8;case 1:k=1540483477*(65535&(k^=255&c.charCodeAt(P)))+((1540483477*(k>>>16)&65535)<<16)}return k=1540483477*(65535&(k^=k>>>13))+((1540483477*(k>>>16)&65535)<<16),(k^=k>>>15)>>>0}),Qa.exports);return Zi.exports=d,Zi.exports.murmur3=d,Zi.exports.murmur2=l,Zi.exports})(),fa=m(Oa);class Ki{constructor(){this.ids=[],this.positions=[],this.indexed=!1}add(l,c,p,g){this.ids.push(As(l)),this.positions.push(c,p,g)}getPositions(l){if(!this.indexed)throw new Error("Trying to get index, but feature positions are not indexed");const c=As(l);let p=0,g=this.ids.length-1;for(;p<g;){const k=p+g>>1;this.ids[k]>=c?g=k:p=k+1}const w=[];for(;this.ids[p]===c;)w.push({index:this.positions[3*p],start:this.positions[3*p+1],end:this.positions[3*p+2]}),p++;return w}static serialize(l,c){const p=new Float64Array(l.ids),g=new Uint32Array(l.positions);return ju(p,g,0,p.length-1),c&&c.push(p.buffer,g.buffer),{ids:p,positions:g}}static deserialize(l){const c=new Ki;return c.ids=l.ids,c.positions=l.positions,c.indexed=!0,c}}function As(d){const l=+d;return!isNaN(l)&&l<=Number.MAX_SAFE_INTEGER?l:fa(String(d))}function ju(d,l,c,p){for(;c<p;){const g=d[c+p>>1];let w=c-1,k=p+1;for(;;){do w++;while(d[w]<g);do k--;while(d[k]>g);if(w>=k)break;Jl(d,w,k),Jl(l,3*w,3*k),Jl(l,3*w+1,3*k+1),Jl(l,3*w+2,3*k+2)}k-c<p-k?(ju(d,l,c,k),c=k+1):(ju(d,l,k+1,p),p=k)}}function Jl(d,l,c){const p=d[l];d[l]=d[c],d[c]=p}bn("FeaturePositionMap",Ki);class Ra{constructor(l,c){this.gl=l.gl,this.location=c}}class Is extends Ra{constructor(l,c){super(l,c),this.current=0}set(l){this.current!==l&&(this.current=l,this.gl.uniform1f(this.location,l))}}class Ql extends Ra{constructor(l,c){super(l,c),this.current=[0,0,0,0]}set(l){l[0]===this.current[0]&&l[1]===this.current[1]&&l[2]===this.current[2]&&l[3]===this.current[3]||(this.current=l,this.gl.uniform4f(this.location,l[0],l[1],l[2],l[3]))}}class Jc extends Ra{constructor(l,c){super(l,c),this.current=sr.transparent}set(l){l.r===this.current.r&&l.g===this.current.g&&l.b===this.current.b&&l.a===this.current.a||(this.current=l,this.gl.uniform4f(this.location,l.r,l.g,l.b,l.a))}}const Ds=new Float32Array(16);function as(d){return[Mn(255*d.r,255*d.g),Mn(255*d.b,255*d.a)]}class ss{constructor(l,c,p){this.value=l,this.uniformNames=c.map((g=>`u_${g}`)),this.type=p}setUniform(l,c,p){l.set(p.constantOr(this.value))}getBinding(l,c,p){return this.type==="color"?new Jc(l,c):new Is(l,c)}}class ls{constructor(l,c){this.uniformNames=c.map((p=>`u_${p}`)),this.patternFrom=null,this.patternTo=null,this.pixelRatioFrom=1,this.pixelRatioTo=1}setConstantPatternPositions(l,c){this.pixelRatioFrom=c.pixelRatio,this.pixelRatioTo=l.pixelRatio,this.patternFrom=c.tlbr,this.patternTo=l.tlbr}setConstantDashPositions(l,c){this.dashTo=[0,l.y,l.height,l.width],this.dashFrom=[0,c.y,c.height,c.width]}setUniform(l,c,p,g){let w=null;g==="u_pattern_to"?w=this.patternTo:g==="u_pattern_from"?w=this.patternFrom:g==="u_dasharray_to"?w=this.dashTo:g==="u_dasharray_from"?w=this.dashFrom:g==="u_pixel_ratio_to"?w=this.pixelRatioTo:g==="u_pixel_ratio_from"&&(w=this.pixelRatioFrom),w!==null&&l.set(w)}getBinding(l,c,p){return p.startsWith("u_pattern")||p.startsWith("u_dasharray_")?new Ql(l,c):new Is(l,c)}}class si{constructor(l,c,p,g){this.expression=l,this.type=p,this.maxValue=0,this.paintVertexAttributes=c.map((w=>({name:`a_${w}`,type:"Float32",components:p==="color"?2:1,offset:0}))),this.paintVertexArray=new g}populatePaintArray(l,c,p){const g=this.paintVertexArray.length,w=this.expression.evaluate(new or(0,p),c,{},p.canonical,[],p.formattedSection);
24this.paintVertexArray.resize(l),this._setPaintValue(g,l,w)}updatePaintArray(l,c,p,g,w){const k=this.expression.evaluate(new or(0,w),p,g);this._setPaintValue(l,c,k)}_setPaintValue(l,c,p){if(this.type==="color"){const g=as(p);for(let w=l;w<c;w++)this.paintVertexArray.emplace(w,g[0],g[1])}else{for(let g=l;g<c;g++)this.paintVertexArray.emplace(g,p);this.maxValue=Math.max(this.maxValue,Math.abs(p))}}upload(l){var c,p;!((c=this.paintVertexArray)===null||c===void 0)&&c.arrayBuffer.byteLength&&(!((p=this.paintVertexBuffer)===null||p===void 0)&&p.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=l.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))}destroy(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()}}class li{constructor(l,c,p,g,w,k){this.expression=l,this.uniformNames=c.map((P=>`u_${P}_t`)),this.type=p,this.useIntegerZoom=g,this.zoom=w,this.maxValue=0,this.paintVertexAttributes=c.map((P=>({name:`a_${P}`,type:"Float32",components:p==="color"?4:2,offset:0}))),this.paintVertexArray=new k}populatePaintArray(l,c,p){const g=this.expression.evaluate(new or(this.zoom,p),c,{},p.canonical,[],p.formattedSection),w=this.expression.evaluate(new or(this.zoom+1,p),c,{},p.canonical,[],p.formattedSection),k=this.paintVertexArray.length;this.paintVertexArray.resize(l),this._setPaintValue(k,l,g,w)}updatePaintArray(l,c,p,g,w){const k=this.expression.evaluate(new or(this.zoom,w),p,g),P=this.expression.evaluate(new or(this.zoom+1,w),p,g);this._setPaintValue(l,c,k,P)}_setPaintValue(l,c,p,g){if(this.type==="color"){const w=as(p),k=as(g);for(let P=l;P<c;P++)this.paintVertexArray.emplace(P,w[0],w[1],k[0],k[1])}else{for(let w=l;w<c;w++)this.paintVertexArray.emplace(w,p,g);this.maxValue=Math.max(this.maxValue,Math.abs(p),Math.abs(g))}}upload(l){var c,p;!((c=this.paintVertexArray)===null||c===void 0)&&c.arrayBuffer.byteLength&&(!((p=this.paintVertexBuffer)===null||p===void 0)&&p.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=l.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))}destroy(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()}setUniform(l,c){const p=this.useIntegerZoom?Math.floor(c.zoom):c.zoom,g=ct(this.expression.interpolationFactor(p,this.zoom,this.zoom+1),0,1);l.set(g)}getBinding(l,c,p){return new Is(l,c)}}class Ni{constructor(l,c,p,g,w,k){this.expression=l,this.type=c,this.useIntegerZoom=p,this.zoom=g,this.layerId=k,this.zoomInPaintVertexArray=new w,this.zoomOutPaintVertexArray=new w}populatePaintArray(l,c,p){const g=this.zoomInPaintVertexArray.length;this.zoomInPaintVertexArray.resize(l),this.zoomOutPaintVertexArray.resize(l),this._setPaintValues(g,l,this.getPositionIds(c),p)}updatePaintArray(l,c,p,g,w){this._setPaintValues(l,c,this.getPositionIds(p),w)}_setPaintValues(l,c,p,g){const w=this.getPositions(g);if(!w||!p)return;const k=w[p.min],P=w[p.mid],R=w[p.max];if(k&&P&&R)for(let L=l;L<c;L++)this.emplace(this.zoomInPaintVertexArray,L,P,k),this.emplace(this.zoomOutPaintVertexArray,L,P,R)}upload(l){var c,p;if(!((c=this.zoomInPaintVertexArray)===null||c===void 0)&&c.arrayBuffer.byteLength&&(!((p=this.zoomOutPaintVertexArray)===null||p===void 0)&&p.arrayBuffer.byteLength)){const g=this.getVertexAttributes();this.zoomInPaintVertexBuffer=l.createVertexBuffer(this.zoomInPaintVertexArray,g,this.expression.isStateDependent),this.zoomOutPaintVertexBuffer=l.createVertexBuffer(this.zoomOutPaintVertexArray,g,this.expression.isStateDependent)}}destroy(){this.zoomOutPaintVertexBuffer&&this.zoomOutPaintVertexBuffer.destroy(),this.zoomInPaintVertexBuffer&&this.zoomInPaintVertexBuffer.destroy()}}class $i extends Ni{getPositions(l){return l.imagePositions}getPositionIds(l){var c;return(c=l.patterns)===null||c===void 0?void 0:c[this.layerId]}getVertexAttributes(){return ir.members}emplace(l,c,p,g){l.emplace(c,p.tlbr[0],p.tlbr[1],p.tlbr[2],p.tlbr[3],g.tlbr[0],g.tlbr[1],g.tlbr[2],g.tlbr[3],p.pixelRatio,g.pixelRatio)}}class Uu extends Ni{getPositions(l){return l.dashPositions}getPositionIds(l){var c;return(c=l.dashes)===null||c===void 0?void 0:c[this.layerId]}getVertexAttributes(){return jr.members}emplace(l,c,p,g){l.emplace(c,0,p.y,p.height,p.width,0,g.y,g.height,g.width)}}class Ls{constructor(l,c,p){this.binders={},this._buffers=[];const g=[];for(const w in l.paint._values){if(!p(w))continue;
vendor: 4,430 bytes, line 24
24const k=l.paint.get(w);if(!(k instanceof is&&jc(k.property.specification)))continue;const P=dm(w,l.type),R=k.value,L=k.property.specification.type,j=k.property.useIntegerZoom,F=k.property.specification["property-type"],te=F==="cross-faded"||F==="cross-faded-data-driven";if(R.kind==="constant")this.binders[w]=te?new ls(R.value,P):new ss(R.value,P,L),g.push(`/u_${w}`);else if(R.kind==="source"||te){const G=j1(w,L,"source");this.binders[w]=te?w==="line-dasharray"?new Uu(R,L,j,c,G,l.id):new $i(R,L,j,c,G,l.id):new si(R,P,L,G),g.push(`/a_${w}`)}else{const G=j1(w,L,"composite");this.binders[w]=new li(R,P,L,j,c,G),g.push(`/z_${w}`)}}this.cacheKey=g.sort().join("")}getMaxValue(l){const c=this.binders[l];return c instanceof si||c instanceof li?c.maxValue:0}populatePaintArrays(l,c,p){for(const g in this.binders){const w=this.binders[g];(w instanceof si||w instanceof li||w instanceof Ni)&&w.populatePaintArray(l,c,p)}}setConstantPatternPositions(l,c){for(const p in this.binders){const g=this.binders[p];g instanceof ls&&g.setConstantPatternPositions(l,c)}}setConstantDashPositions(l,c){for(const p in this.binders){const g=this.binders[p];g instanceof ls&&g.setConstantDashPositions(l,c)}}updatePaintArrays(l,c,p,g,w){let k=!1;for(const P in l){const R=c.getPositions(P);for(const L of R){const j=p.feature(L.index);for(const F in this.binders){const te=this.binders[F];if((te instanceof si||te instanceof li||te instanceof Ni)&&te.expression.isStateDependent===!0){const G=g.paint.get(F);te.expression=G.value,te.updatePaintArray(L.start,L.end,j,l[P],w),k=!0}}}}return k}defines(){const l=[];for(const c in this.binders){const p=this.binders[c];(p instanceof ss||p instanceof ls)&&l.push(...p.uniformNames.map((g=>`#define HAS_UNIFORM_${g}`)))}return l}getBinderAttributes(){const l=[];for(const c in this.binders){const p=this.binders[c];if(p instanceof si||p instanceof li)for(const g of p.paintVertexAttributes)l.push(g.name);else if(p instanceof Ni){const g=p.getVertexAttributes();for(const w of g)l.push(w.name)}}return l}getBinderUniforms(){const l=[];for(const c in this.binders){const p=this.binders[c];if(p instanceof ss||p instanceof ls||p instanceof li)for(const g of p.uniformNames)l.push(g)}return l}getPaintVertexBuffers(){return this._buffers}getUniforms(l,c){const p=[];for(const g in this.binders){const w=this.binders[g];if(w instanceof ss||w instanceof ls||w instanceof li){for(const k of w.uniformNames)if(c[k]){const P=w.getBinding(l,c[k],k);p.push({name:k,property:g,binding:P})}}}return p}setUniforms(l,c,p,g){for(const{name:w,property:k,binding:P}of c)this.binders[k].setUniform(P,g,p.get(k),w)}updatePaintBuffers(l){this._buffers=[];for(const c in this.binders){const p=this.binders[c];if(l&&p instanceof Ni){const g=l.fromScale===2?p.zoomInPaintVertexBuffer:p.zoomOutPaintVertexBuffer;g&&this._buffers.push(g)}else(p instanceof si||p instanceof li)&&p.paintVertexBuffer&&this._buffers.push(p.paintVertexBuffer)}}upload(l){for(const c in this.binders){const p=this.binders[c];(p instanceof si||p instanceof li||p instanceof Ni)&&p.upload(l)}this.updatePaintBuffers()}destroy(){for(const l in this.binders){const c=this.binders[l];(c instanceof si||c instanceof li||c instanceof Ni)&&c.destroy()}}}class Sl{constructor(l,c,p=()=>!0){this.programConfigurations={};for(const g of l)this.programConfigurations[g.id]=new Ls(g,c,p);this.needsUpload=!1,this._featureMap=new Ki,this._bufferOffset=0}populatePaintArrays(l,c,p,g){for(const w in this.programConfigurations)this.programConfigurations[w].populatePaintArrays(l,c,g);c.id!==void 0&&this._featureMap.add(c.id,p,this._bufferOffset,l),this._bufferOffset=l,this.needsUpload=!0}updatePaintArrays(l,c,p,g){for(const w of p)this.needsUpload=this.programConfigurations[w.id].updatePaintArrays(l,this._featureMap,c,w,g)||this.needsUpload}get(l){return this.programConfigurations[l]}upload(l){if(this.needsUpload){for(const c in this.programConfigurations)this.programConfigurations[c].upload(l);this.needsUpload=!1}}destroy(){for(const l in this.programConfigurations)this.programConfigurations[l].destroy()}}function dm(d,l){return{"text-opacity":["opacity"],"icon-opacity":["opacity"],"text-color":["fill_color"],"icon-color":["fill_color"],"text-halo-color":["halo_color"],"icon-halo-color":["halo_color"],"text-halo-blur":["halo_blur"],"icon-halo-blur":["halo_blur"],"text-halo-width":["halo_width"],"icon-halo-width":["halo_width"],"line-gap-width":["ga
24pwidth"],"line-dasharray":["dasharray_to","dasharray_from"],"line-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-extrusion-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"]}[d]||[d.replace(`${l}-`,"").replace(/-/g,"_")]}function j1(d,l,c){const p={color:{source:Zd,composite:h},number:{source:hr,composite:Zd}},g=(function(w){return{"line-pattern":{source:Ke,composite:Ke},"fill-pattern":{source:Ke,composite:Ke},"fill-extrusion-pattern":{source:Ke,composite:Ke},"line-dasharray":{source:ot,composite:ot}}[w]})(d);return g?.[c]||p[l][c]}bn("ConstantBinder",ss),bn("CrossFadedConstantBinder",ls),bn("SourceExpressionBinder",si),bn("CrossFadedPatternBinder",$i),bn("CrossFadedDasharrayBinder",Uu),bn("CompositeExpressionBinder",li),bn("ProgramConfiguration",Ls,{omit:["_buffers"]}),bn("ProgramConfigurationSet",Sl);const fm=Math.pow(2,14)-1,Hu=-fm-1;function Wu(d){const l=$e/d.extent,c=d.loadGeometry();for(const p of c)for(const g of p){const w=Math.round(g.x*l),k=Math.round(g.y*l);g.x=ct(w,Hu,fm),g.y=ct(k,Hu,fm),(w<g.x||w>g.x+1||k<g.y||k>g.y+1)&&it("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return c}function eo(d,l){return{type:d.type,id:d.id,properties:d.properties,geometry:l?Wu(d):[]}}const bh=-32768;function xh(d,l,c,p,g){d.emplaceBack(bh+8*l+p,bh+8*c+g)}class Jd{constructor(l){this.zoom=l.zoom,this.overscaling=l.overscaling,this.layers=l.layers,this.layerIds=this.layers.map((c=>c.id)),this.index=l.index,this.hasDependencies=!1,this.layoutVertexArray=new Xe,this.indexArray=new Xt,this.segments=new gn,this.programConfigurations=new Sl(l.layers,l.zoom),this.stateDependentLayerIds=this.layers.filter((c=>c.isStateDependent())).map((c=>c.id))}populate(l,c,p){const g=this.layers[0],w=[];let k=null,P=!1,R=g.type==="heatmap";if(g.type==="circle"){const j=g;k=j.layout.get("circle-sort-key"),P=!k.isConstant(),R||(R=j.paint.get("circle-pitch-alignment")==="map")}const L=R?c.subdivisionGranularity.circle:1;for(const{feature:j,id:F,index:te,sourceLayerIndex:G}of l){const oe=this.layers[0]._featureFilter.needGeometry,ue=eo(j,oe);if(!this.layers[0]._featureFilter.filter(new or(this.zoom),ue,p))continue;const ve=P?k.evaluate(ue,{},p):void 0,_e={id:F,properties:j.properties,type:j.type,sourceLayerIndex:G,index:te,geometry:oe?ue.geometry:Wu(j),patterns:{},sortKey:ve};w.push(_e)}P&&w.sort(((j,F)=>j.sortKey-F.sortKey));for(const j of w){const{geometry:F,index:te,sourceLayerIndex:G}=j,oe=l[te].feature;this.addFeature(j,F,te,p,L),c.featureIndex.insert(oe,F,te,G,this.index)}}update(l,c,p){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(l,c,this.stateDependentLayers,{imagePositions:p})}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(l){this.uploaded||(this.layoutVertexBuffer=l.createVertexBuffer(this.layoutVertexArray,Wt),this.indexBuffer=l.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(l),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}addFeature(l,c,p,g,w=1){let k;switch(w){case 1:k=[0,7];break;case 3:k=[0,2,5,7];break;case 5:k=[0,1,3,4,6,7];break;case 7:k=[0,1,2,3,4,5,6,7];break;default:throw new Error(`Invalid circle bucket granularity: ${w}; valid values are 1, 3, 5, 7.`)}const P=k.length;for(const R of c)for(const L of R){const j=L.x,F=L.y;if(j<0||j>=$e||F<0||F>=$e)continue;const te=this.segments.prepareSegment(P*P,this.layoutVertexArray,this.indexArray,l.sortKey),G=te.vertexLength;for(let oe=0;oe<P;oe++)for(let ue=0;ue<P;ue++)xh(this.layoutVertexArray,j,F,k[ue],k[oe]);for(let oe=0;oe<P-1;oe++)for(let ue=0;ue<P-1;ue++){const ve=G+oe*P+ue,_e=G+(oe+1)*P+ue;this.indexArray.emplaceBack(ve,_e+1,ve+1),this.indexArray.emplaceBack(ve,_e,_e+1)}te.vertexLength+=P*P,te.primitiveLength+=(P-1)*(P-1)*2}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,l,p,{imagePositions:{},canonical:g})}}function Qc(d,l){for(const c of d)if(ha(l,c))return!0;for(const c of l)if(ha(d,c))return!0;return D0(d,l)}function ed(d,l,c){return!!ha(d,l)||vb(l,d,c)}function Wn(d,l){if(d.length===1)return _b(l,d[0]);
vendor: 8,717 bytes, line 24
24for(const c of l)for(const p of c)if(ha(d,p))return!0;for(const c of d)if(_b(l,c))return!0;for(const c of l)if(D0(d,c))return!0;return!1}function U1(d,l,c){if(d.length>1){if(D0(d,l))return!0;for(const p of l)if(vb(p,d,c))return!0}for(const p of d)if(vb(p,l,c))return!0;return!1}function D0(d,l){if(d.length===0||l.length===0)return!1;for(let c=0;c<d.length-1;c++){const p=d[c],g=d[c+1];for(let w=0;w<l.length-1;w++)if(wh(p,g,l[w],l[w+1]))return!0}return!1}function wh(d,l,c,p){return yt(d,c,p)!==yt(l,c,p)&&yt(d,l,c)!==yt(d,l,p)}function vb(d,l,c){const p=c*c;if(l.length===1)return d.distSqr(l[0])<p;for(let g=1;g<l.length;g++)if(H1(d,l[g-1],l[g])<p)return!0;return!1}function H1(d,l,c){const p=l.distSqr(c);if(p===0)return d.distSqr(l);const g=((d.x-l.x)*(c.x-l.x)+(d.y-l.y)*(c.y-l.y))/p;return d.distSqr(g<0?l:g>1?c:c.sub(l)._mult(g)._add(l))}function _b(d,l){let c,p,g,w=!1;for(const k of d){c=k;for(let P=0,R=c.length-1;P<c.length;R=P++)p=c[P],g=c[R],p.y>l.y!=g.y>l.y&&l.x<(g.x-p.x)*(l.y-p.y)/(g.y-p.y)+p.x&&(w=!w)}return w}function ha(d,l){let c=!1;for(let p=0,g=d.length-1;p<d.length;g=p++){const w=d[p],k=d[g];w.y>l.y!=k.y>l.y&&l.x<(k.x-w.x)*(l.y-w.y)/(k.y-w.y)+w.x&&(c=!c)}return c}function yk(d,l,c){const p=c[0],g=c[2];if(d.x<p.x&&l.x<p.x||d.x>g.x&&l.x>g.x||d.y<p.y&&l.y<p.y||d.y>g.y&&l.y>g.y)return!1;const w=yt(d,l,c[0]);return w!==yt(d,l,c[1])||w!==yt(d,l,c[2])||w!==yt(d,l,c[3])}function hm(d,l,c){const p=l.paint.get(d).value;return p.kind==="constant"?p.value:c.programConfigurations.get(l.id).getMaxValue(d)}function L0(d){return Math.sqrt(d[0]*d[0]+d[1]*d[1])}function W1(d,l,c,p,g){if(!l[0]&&!l[1])return d;const w=f.convert(l)._mult(g);c==="viewport"&&w._rotate(-p);const k=[];for(const P of d)k.push(P.sub(w));return k}function Vw(d){const l=[];for(let c=0;c<d.length;c++){const p=d[c],g=l.at(-1);(c===0||g&&!p.equals(g))&&l.push(p)}return l}function vk({queryGeometry:d,size:l},c){return ed(d,c,l)}function _k({queryGeometry:d,size:l,transform:c,unwrappedTileID:p,getElevation:g},w){return ed(d,w,l*(c.projectTileCoordinates(w.x,w.y,p,g).signedDistanceFromCamera/c.cameraToCenterDistance))}function bk({queryGeometry:d,size:l,transform:c,unwrappedTileID:p,getElevation:g},w){const k=c.projectTileCoordinates(w.x,w.y,p,g).signedDistanceFromCamera,P=l*(c.cameraToCenterDistance/k);return ed(d,O0(w,c,p,g),P)}function td({queryGeometry:d,size:l,transform:c,unwrappedTileID:p,getElevation:g},w){return ed(d,O0(w,c,p,g),l)}function Do({queryGeometry:d,size:l,transform:c,unwrappedTileID:p,getElevation:g,pitchAlignment:w="map",pitchScale:k="map"},P){const R=w==="map"?k==="map"?vk:_k:k==="map"?bk:td,L={queryGeometry:d,size:l,transform:c,unwrappedTileID:p,getElevation:g};for(const j of P)for(const F of j)if(R(L,F))return!0;return!1}function O0(d,l,c,p){const g=l.projectTileCoordinates(d.x,d.y,c,p).point;return new f((.5*g.x+.5)*l.width,(.5*-g.y+.5)*l.height)}let qw,G1;bn("CircleBucket",Jd,{omit:["layers"]});var xk={get paint(){return G1=G1||new Xa({"circle-radius":new Rn(Ft.paint_circle["circle-radius"]),"circle-color":new Rn(Ft.paint_circle["circle-color"]),"circle-blur":new Rn(Ft.paint_circle["circle-blur"]),"circle-opacity":new Rn(Ft.paint_circle["circle-opacity"]),"circle-translate":new Pn(Ft.paint_circle["circle-translate"]),"circle-translate-anchor":new Pn(Ft.paint_circle["circle-translate-anchor"]),"circle-pitch-scale":new Pn(Ft.paint_circle["circle-pitch-scale"]),"circle-pitch-alignment":new Pn(Ft.paint_circle["circle-pitch-alignment"]),"circle-stroke-width":new Rn(Ft.paint_circle["circle-stroke-width"]),"circle-stroke-color":new Rn(Ft.paint_circle["circle-stroke-color"]),"circle-stroke-opacity":new Rn(Ft.paint_circle["circle-stroke-opacity"])})},get layout(){return qw=qw||new Xa({"circle-sort-key":new Rn(Ft.layout_circle["circle-sort-key"])})}};class wk extends Ja{constructor(l,c){super(l,xk,c)}createBucket(l){return new Jd(l)}queryRadius(l){const c=l;return hm("circle-radius",this,c)+hm("circle-stroke-width",this,c)+L0(this.paint.get("circle-translate"))}queryIntersectsFeature({queryGeometry:l,feature:c,featureState:p,geometry:g,transform:w,pixelsToTileUnits:k,unwrappedTileID:P,getElevation:R}){const L=W1(l,this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),-w.bearingInRadians,k),j=this.paint.get("circle-radius").evaluate(c,p)+this.paint.get("circle-stroke-width").evaluate(c,p),F=this.paint.get("circle-pitch-scale"),te=this.paint.get("circle-pitch-alignment");let G,oe;return te==="map"?(G=L,oe=j*k):(G=(function(ue,ve,_e,Me){return ue.map((Te=>O0(Te,ve,_e,Me)))})(L,w,P,R),oe=j),Do({queryGeometry:G,size:oe,transform:w,unwrappedTileID:P,getElevation:R,pitchAlignment:te,pitchScale:F},g)}}class pm extends Jd{}let bb;bn("HeatmapBucket",pm,{omit:["layers"]});var jw={get paint(){return bb=bb||new Xa({"heatmap-radius":new Rn(Ft.paint_heatmap["heatmap-radius"]),"heatmap-weight":new Rn(Ft.paint_heatmap["heatmap-weight"]),"heatmap-intensity":new Pn(Ft.paint_heatmap["heatmap-intensity"]),"heatmap-color":new wl(Ft.paint_heatmap["heatmap-color"]),"heatmap-opacity":new Pn(Ft.paint_heatmap["heatmap-opacity"])})}};function xb(d,{width:l,height:c},p,g){if(g){if(g instanceof Uint8ClampedArray)g=new Uint8Array(g.buffer);else if(g.length!==l*c*p)throw new RangeError(`mismatched image size. expected: ${g.length} but got: ${l*c*p}`)}else g=new Uint8Array(l*c*p);return d.width=l,d.height=c,d.data=g,d}function Uw(d,{width:l,height:c},p){if(l===d.width&&c===d.height)return;const g=xb({},{width:l,height:c},p);wb(d,g,{x:0,y:0},{x:0,y:0},{width:Math.min(d.width,l),height:Math.min(d.height,c)},p),d.width=l,d.height=c,d.data=g.data}function wb(d,l,c,p,g,w){if(g.width===0||g.height===0)return l;if(g.width>d.width||g.height>d.height||c.x>d.width-g.width||c.y>d.height-g.height)throw new RangeError("out of range source coordinates for image copy");if(g.width>l.width||g.height>l.height||p.x>l.width-g.width||p.y>l.height-g.height)throw new RangeError("out of range destination coordinates for image copy");const k=d.data,P=l.data;if(k===P)throw new Error("srcData equals dstData, so image is already copied");for(let R=0;R<g.height;R++){const L=((c.y+R)*d.width+c.x)*w,j=((p.y+R)*l.width+p.x)*w;for(let F=0;F<g.width*w;F++)P[j+F]=k[L+F]}return l}class R0{constructor(l,c){xb(this,l,1,c)}resize(l){Uw(this,l,1)}clone(){return new R0({width:this.width,height:this.height},new Uint8Array(this.data))}static copy(l,c,p,g,w){wb(l,c,p,g,w,1)}}class Lo{constructor(l,c){xb(this,l,4,c)}resize(l){Uw(this,l,4)}replace(l,c){c?this.data.set(l):this.data=l instanceof Uint8ClampedArray?new Uint8Array(l.buffer):l}clone(){return new Lo({width:this.width,height:this.height},new Uint8Array(this.data))}static copy(l,c,p,g,w){wb(l,c,p,g,w,4)}setPixel(l,c,p){const g=4*(l*this.width+c);this.data[g+0]=Math.round(255*p.r/p.a),this.data[g+1]=Math.round(255*p.g/p.a),this.data[g+2]=Math.round(255*p.b/p.a),this.data[g+3]=Math.round(255*p.a)}}function Sb(d){const l=new Uint8Array(d.length);for(let c=0;c<d.length;c+=4){const p=d[c+3];l[c+0]=Math.round(d[c+0]*p/255),l[c+1]=Math.round(d[c+1]*p/255),l[c+2]=Math.round(d[c+2]*p/255),l[c+3]=p}return l}function Hw(d){const l={},c=d.resolution||256,p=d.clips?d.clips.length:1,g=d.image||new Lo({width:c,height:p});if(Math.log(c)/Math.LN2%1!=0)throw new Error(`width is not a power of 2 - ${c}`);const w=(k,P,R)=>{l[d.evaluationKey]=R;const L=d.expression.evaluate(l);g.setPixel(k/4/c,P/4,L)};if(d.clips)for(let k=0,P=0;k<p;++k,P+=4*c)for(let R=0,L=0;R<c;R++,L+=4){const j=R/(c-1),{start:F,end:te}=d.clips[k];w(P,L,F*(1-j)+te*j)}else for(let k=0,P=0;k<c;k++,P+=4)w(0,P,k/(c-1));return g}bn("AlphaImage",R0),bn("RGBAImage",Lo);const B0="big-fb";class Ww extends Ja{createBucket(l){return new pm(l)}constructor(l,c){super(l,jw,c),this.heatmapFbos=new Map,this._updateColorRamp()}_handleSpecialPaintPropertyUpdate(l){l==="heatmap-color"&&this._updateColorRamp()}_updateColorRamp(){this.colorRamp=Hw({expression:this._transitionablePaint._values["heatmap-color"].value.expression,evaluationKey:"heatmapDensity",image:this.colorRamp}),this.colorRampTexture=null}resize(){this.heatmapFbos.has(B0)&&this.heatmapFbos.delete(B0)}queryRadius(l){return hm("heatmap-radius",this,l)}queryIntersectsFeature({queryGeometry:l,feature:c,featureState:p,geometry:g,transform:w,pixelsToTileUnits:k,unwrappedTileID:P,getElevation:R}){return Do({queryGeometry:l,size:this.paint.get("heatmap-radius").evaluate(c,p)*k,transform:w,unwrappedTileID:P,getElevation:R},g)}hasOffscreenPass(){return this.paint.get("heatmap-opacity")!==0&&!this.isHidden()}}let mm;var Cb={get paint(){return mm=mm||new Xa({"hillshade-illumination-direction":new Pn(Ft.paint_hillshade["hillshade-illumination-direction"]),"hillshade-illumination-altitude":new P
24n(Ft.paint_hillshade["hillshade-illumination-altitude"]),"hillshade-illumination-anchor":new Pn(Ft.paint_hillshade["hillshade-illumination-anchor"]),"hillshade-exaggeration":new Pn(Ft.paint_hillshade["hillshade-exaggeration"]),"hillshade-shadow-color":new Pn(Ft.paint_hillshade["hillshade-shadow-color"]),"hillshade-highlight-color":new Pn(Ft.paint_hillshade["hillshade-highlight-color"]),"hillshade-accent-color":new Pn(Ft.paint_hillshade["hillshade-accent-color"]),"hillshade-method":new Pn(Ft.paint_hillshade["hillshade-method"]),resampling:new Pn(Ft.paint_hillshade.resampling)})}};class Gw extends Ja{constructor(l,c){super(l,Cb,c),this.recalculate({zoom:0,zoomHistory:{}},void 0)}getIlluminationProperties(){let l=this.paint.get("hillshade-illumination-direction").values,c=this.paint.get("hillshade-illumination-altitude").values,p=this.paint.get("hillshade-highlight-color").values,g=this.paint.get("hillshade-shadow-color").values;const w=Math.max(l.length,c.length,p.length,g.length);l=l.concat(Array(w-l.length).fill(l.at(-1))),c=c.concat(Array(w-c.length).fill(c.at(-1))),p=p.concat(Array(w-p.length).fill(p.at(-1))),g=g.concat(Array(w-g.length).fill(g.at(-1)));const k=c.map(_t);return{directionRadians:l.map(_t),altitudeRadians:k,shadowColor:g,highlightColor:p}}hasOffscreenPass(){return this.paint.get("hillshade-exaggeration")!==0&&!this.isHidden()}}let Tb;var Y1={get paint(){return Tb=Tb||new Xa({"color-relief-opacity":new Pn(Ft["paint_color-relief"]["color-relief-opacity"]),"color-relief-color":new wl(Ft["paint_color-relief"]["color-relief-color"]),resampling:new Pn(Ft["paint_color-relief"].resampling)})}};function kb(d){return"data"in d}class Ks{constructor(l,c,p,g){this.context=l,this.format=p,this.texture=l.gl.createTexture(),this._ownedHandle=this.texture,this.update(c,g)}update(l,c,p){var g;const{width:w,height:k}=l,P=(((g=this.size)===null||g===void 0?void 0:g[0])!==w||this.size[1]!==k)&&!p,{context:R}=this,{gl:L}=R;this.useMipmap=!!c?.useMipmap,L.bindTexture(L.TEXTURE_2D,this.texture),R.pixelStoreUnpackFlipY.set(!1),R.pixelStoreUnpack.set(1);const j=this.format===L.RGBA&&c?.premultiply!==!1;if(P)this.size=[w,k],kb(l)?(R.pixelStoreUnpackPremultiplyAlpha.set(!1),this._uploadRawData(l,j,w,k,L)):(R.pixelStoreUnpackPremultiplyAlpha.set(j),this._uploadDomImage(l,L));else{const{x:F,y:te}=p||{x:0,y:0};kb(l)?(R.pixelStoreUnpackPremultiplyAlpha.set(!1),this._updateRawData(l,j,F,te,w,k,L)):(R.pixelStoreUnpackPremultiplyAlpha.set(j),this._updateDomImage(l,F,te,L))}this.useMipmap&&this.isSizePowerOfTwo()&&L.generateMipmap(L.TEXTURE_2D),R.pixelStoreUnpackFlipY.setDefault(),R.pixelStoreUnpack.setDefault(),R.pixelStoreUnpackPremultiplyAlpha.setDefault()}_uploadDomImage(l,c){c.texImage2D(c.TEXTURE_2D,0,this.format,this.format,c.UNSIGNED_BYTE,l)}_uploadRawData(l,c,p,g,w){let{data:k}=l;c&&k&&(k=Sb(k)),w.texImage2D(w.TEXTURE_2D,0,this.format,p,g,0,this.format,w.UNSIGNED_BYTE,k)}_updateDomImage(l,c,p,g){g.texSubImage2D(g.TEXTURE_2D,0,c,p,g.RGBA,g.UNSIGNED_BYTE,l)}_updateRawData(l,c,p,g,w,k,P){let{data:R}=l;c&&R&&(R=Sb(R)),P.texSubImage2D(P.TEXTURE_2D,0,p,g,w,k,P.RGBA,P.UNSIGNED_BYTE,R)}bind(l,c,p){const{context:g}=this,{gl:w}=g;this.texture!==this._ownedHandle&&(this.texture=this._ownedHandle),w.bindTexture(w.TEXTURE_2D,this.texture),p!==w.LINEAR_MIPMAP_NEAREST||this.isSizePowerOfTwo()||(p=w.LINEAR),l!==this.filter&&(w.texParameteri(w.TEXTURE_2D,w.TEXTURE_MAG_FILTER,l),w.texParameteri(w.TEXTURE_2D,w.TEXTURE_MIN_FILTER,p||l),this.filter=l),c!==this.wrap&&(w.texParameteri(w.TEXTURE_2D,w.TEXTURE_WRAP_S,c),w.texParameteri(w.TEXTURE_2D,w.TEXTURE_WRAP_T,c),this.wrap=c)}isSizePowerOfTwo(){return this.size[0]===this.size[1]&&Math.log(this.size[0])/Math.LN2%1==0}destroy(){const{gl:l}=this.context;l.deleteTexture(this.texture),this.texture=null,this._ownedHandle=null}}class Qd{constructor(l,c,p,g=1,w=1,k=1,P=0){if(this.uid=l,c.height!==c.width)throw new RangeError("DEM tiles must be square");if(p&&!["mapbox","terrarium","custom"].includes(p))return void it(`"${p}" is not a valid encoding type. Valid types include "mapbox", "terrarium" and "custom".`);this.stride=c.height;const R=this.dim=c.height-2;switch(this.data=new Uint32Array(c.data.buffer),p){case"terrarium":this.redFactor=256,this.greenFactor=1,this.blueFactor=1/256,this.baseShift=32768;break;
vendor: 39,571 bytes, line 24
24case"custom":this.redFactor=g,this.greenFactor=w,this.blueFactor=k,this.baseShift=P;break;default:this.redFactor=6553.6,this.greenFactor=25.6,this.blueFactor=.1,this.baseShift=1e4}for(let L=0;L<R;L++)this.data[this._idx(-1,L)]=this.data[this._idx(0,L)],this.data[this._idx(R,L)]=this.data[this._idx(R-1,L)],this.data[this._idx(L,-1)]=this.data[this._idx(L,0)],this.data[this._idx(L,R)]=this.data[this._idx(L,R-1)];this.data[this._idx(-1,-1)]=this.data[this._idx(0,0)],this.data[this._idx(R,-1)]=this.data[this._idx(R-1,0)],this.data[this._idx(-1,R)]=this.data[this._idx(0,R-1)],this.data[this._idx(R,R)]=this.data[this._idx(R-1,R-1)],this.min=Number.MAX_SAFE_INTEGER,this.max=Number.MIN_SAFE_INTEGER;for(let L=0;L<R;L++)for(let j=0;j<R;j++){const F=this.get(L,j);F>this.max&&(this.max=F),F<this.min&&(this.min=F)}}get(l,c){const p=new Uint8Array(this.data.buffer),g=4*this._idx(l,c);return this.unpack(p[g],p[g+1],p[g+2])}getUnpackVector(){return[this.redFactor,this.greenFactor,this.blueFactor,this.baseShift]}_idx(l,c){if(l<-1||l>=this.dim+1||c<-1||c>=this.dim+1)throw new RangeError(`Out of range source coordinates for DEM data. x: ${l}, y: ${c}, dim: ${this.dim}`);return(c+1)*this.stride+(l+1)}unpack(l,c,p){return l*this.redFactor+c*this.greenFactor+p*this.blueFactor-this.baseShift}pack(l){return Yw(l,this.getUnpackVector())}getPixels(){return new Lo({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))}backfillBorder(l,c,p){if(this.dim!==l.dim)throw new Error("dem dimension mismatch");let g=c*this.dim,w=c*this.dim+this.dim,k=p*this.dim,P=p*this.dim+this.dim;switch(c){case-1:g=w-1;break;case 1:w=g+1}switch(p){case-1:k=P-1;break;case 1:P=k+1}const R=-c*this.dim,L=-p*this.dim;for(let j=k;j<P;j++)for(let F=g;F<w;F++)this.data[this._idx(F,j)]=l.data[this._idx(F+R,j+L)]}}function Yw(d,l){const c=l[0],p=l[1],g=l[2],w=l[3],k=Math.min(c,p,g),P=Math.round((d+w)/k);return{r:Math.floor(P*k/c)%256,g:Math.floor(P*k/p)%256,b:Math.floor(P*k/g)%256}}bn("DEMData",Qd);class Zw extends Ja{constructor(l,c){super(l,Y1,c)}_createColorRamp(l){const c={elevationStops:[],colorStops:[]},p=this._transitionablePaint._values["color-relief-color"].value.expression;if(p instanceof Xp&&p._styleExpression.expression instanceof Fi){this.colorRampExpression=p;const k=p._styleExpression.expression;c.elevationStops=k.labels,c.colorStops=[];for(const P of c.elevationStops)c.colorStops.push(k.evaluate({globals:{elevation:P}}))}if(c.elevationStops.length<1&&(c.elevationStops=[0],c.colorStops=[sr.transparent]),c.elevationStops.length<2&&(c.elevationStops.push(c.elevationStops[0]+1),c.colorStops.push(c.colorStops[0])),c.elevationStops.length<=l)return c;const g={elevationStops:[],colorStops:[]},w=(c.elevationStops.length-1)/(l-1);for(let k=0;k<c.elevationStops.length-.5;k+=w)g.elevationStops.push(c.elevationStops[Math.round(k)]),g.colorStops.push(c.colorStops[Math.round(k)]);return it(`Too many colors in specification of ${this.id} color-relief layer, may not render properly. Max possible colors: ${l}, provided: ${c.elevationStops.length}`),g}_colorRampChanged(){return this.colorRampExpression!=this._transitionablePaint._values["color-relief-color"].value.expression}getColorRampTextures(l,c,p){if(this.colorRampTextures&&!this._colorRampChanged())return this.colorRampTextures;const g=this._createColorRamp(c),w=new Lo({width:g.colorStops.length,height:1}),k=new Lo({width:g.colorStops.length,height:1});for(let P=0;P<g.elevationStops.length;P++){const R=Yw(g.elevationStops[P],p);k.setPixel(0,P,new sr(R.r/255,R.g/255,R.b/255,1)),w.setPixel(0,P,g.colorStops[P])}return this.colorRampTextures={elevationTexture:new Ks(l,k,l.gl.RGBA),colorTexture:new Ks(l,w,l.gl.RGBA)},this.colorRampTextures}hasOffscreenPass(){return!this.isHidden()&&!!this.colorRampTextures}}const Sk=oi([{name:"a_pos",components:2,type:"Int16"}],4),{members:Ck}=Sk;function Z1(d,l,c){const p=c.patternDependencies;let g=!1;for(const w of l){const k=w.paint.get(`${d}-pattern`);k.isConstant()||(g=!0);const P=k.constantOr(null);P&&(g=!0,p[P.to]=!0,p[P.from]=!0)}return g}function Eb(d,l,c,p,g){const{zoom:w}=p,k=g.patternDependencies;for(const P of l){const R=P.paint.get(`${d}-pattern`).value;if(R.kind!=="constant"){let L=R.evaluate({zoom:w-1},c,{},g.availableImages),j=R.evaluate({zoom:w},c,{},g.availableImages),F=R.evaluate({zoom:w+1},c,{},g.availableImages);L=L?.name?L.name:L,j=j?.name?j.name:j,F=F?.name?F.name:F,k[L]=!0,k[j]=!0,k[F]=!0,c.patterns[P.id]={min:L,mid:j,max:F}}}return c}function Kw(d,l,c,p,g){let w;if(g===(function(k,P,R,L){let j=0;for(let F=P,te=R-L;F<R;F+=L)j+=(k[te]-k[F])*(k[F+1]+k[te+1]),te=F;return j})(d,l,c,p)>0)for(let k=l;k<c;k+=p)w=r3(k/p|0,d[k],d[k+1],w);else for(let k=c-p;k>=l;k-=p)w=r3(k/p|0,d[k],d[k+1],w);return w&&ym(w,w.next)&&(z0(w),w=w.next),w}function Sh(d,l){if(!d)return d;l||(l=d);let c,p=d;do if(c=!1,p.steiner||!ym(p,p.next)&&Xi(p.prev,p,p.next)!==0)p=p.next;else{if(z0(p),p=l=p.prev,p===p.next)break;c=!0}while(c||p!==l);return l}function F0(d,l,c,p,g,w,k){if(!d)return;!k&&w&&(function(R,L,j,F){let te=R;do te.z===0&&(te.z=Pb(te.x,te.y,L,j,F)),te.prevZ=te.prev,te.nextZ=te.next,te=te.next;while(te!==R);te.prevZ.nextZ=null,te.prevZ=null,(function(G){let oe,ue=1;do{let ve,_e=G;G=null;let Me=null;for(oe=0;_e;){oe++;let Te=_e,Ae=0;for(let We=0;We<ue&&(Ae++,Te=Te.nextZ,Te);We++);let ze=ue;for(;Ae>0||ze>0&&Te;)Ae!==0&&(ze===0||!Te||_e.z<=Te.z)?(ve=_e,_e=_e.nextZ,Ae--):(ve=Te,Te=Te.nextZ,ze--),Me?Me.nextZ=ve:G=ve,ve.prevZ=Me,Me=ve;_e=Te}Me.nextZ=null,ue*=2}while(oe>1)})(te)})(d,p,g,w);let P=d;for(;d.prev!==d.next;){const R=d.prev,L=d.next;if(w?kk(d,p,g,w):Tk(d))l.push(R.i,d.i,L.i),z0(d),d=L.next,P=L.next;else if((d=L)===P){k?k===1?F0(d=Ek(Sh(d),l),l,c,p,g,w,2):k===2&&Pk(d,l,c,p,g,w):F0(Sh(d),l,c,p,g,w,1);break}}}function Tk(d){const l=d.prev,c=d,p=d.next;if(Xi(l,c,p)>=0)return!1;const g=l.x,w=c.x,k=p.x,P=l.y,R=c.y,L=p.y,j=Math.min(g,w,k),F=Math.min(P,R,L),te=Math.max(g,w,k),G=Math.max(P,R,L);let oe=p.next;for(;oe!==l;){if(oe.x>=j&&oe.x<=te&&oe.y>=F&&oe.y<=G&&gm(g,P,w,R,k,L,oe.x,oe.y)&&Xi(oe.prev,oe,oe.next)>=0)return!1;oe=oe.next}return!0}function kk(d,l,c,p){const g=d.prev,w=d,k=d.next;if(Xi(g,w,k)>=0)return!1;const P=g.x,R=w.x,L=k.x,j=g.y,F=w.y,te=k.y,G=Math.min(P,R,L),oe=Math.min(j,F,te),ue=Math.max(P,R,L),ve=Math.max(j,F,te),_e=Pb(G,oe,l,c,p),Me=Pb(ue,ve,l,c,p);let Te=d.prevZ,Ae=d.nextZ;for(;Te&&Te.z>=_e&&Ae&&Ae.z<=Me;){if(Te.x>=G&&Te.x<=ue&&Te.y>=oe&&Te.y<=ve&&Te!==g&&Te!==k&&gm(P,j,R,F,L,te,Te.x,Te.y)&&Xi(Te.prev,Te,Te.next)>=0||(Te=Te.prevZ,Ae.x>=G&&Ae.x<=ue&&Ae.y>=oe&&Ae.y<=ve&&Ae!==g&&Ae!==k&&gm(P,j,R,F,L,te,Ae.x,Ae.y)&&Xi(Ae.prev,Ae,Ae.next)>=0))return!1;Ae=Ae.nextZ}for(;Te&&Te.z>=_e;){if(Te.x>=G&&Te.x<=ue&&Te.y>=oe&&Te.y<=ve&&Te!==g&&Te!==k&&gm(P,j,R,F,L,te,Te.x,Te.y)&&Xi(Te.prev,Te,Te.next)>=0)return!1;Te=Te.prevZ}for(;Ae&&Ae.z<=Me;){if(Ae.x>=G&&Ae.x<=ue&&Ae.y>=oe&&Ae.y<=ve&&Ae!==g&&Ae!==k&&gm(P,j,R,F,L,te,Ae.x,Ae.y)&&Xi(Ae.prev,Ae,Ae.next)>=0)return!1;Ae=Ae.nextZ}return!0}function Ek(d,l){let c=d;do{const p=c.prev,g=c.next.next;!ym(p,g)&&t3(p,c,c.next,g)&&Oo(p,g)&&Oo(g,p)&&(l.push(p.i,c.i,g.i),z0(c),z0(c.next),c=d=g),c=c.next}while(c!==d);return Sh(c)}function Pk(d,l,c,p,g,w){let k=d;do{let P=k.next.next;for(;P!==k.prev;){if(k.i!==P.i&&Mk(k,P)){let R=n3(k,P);return k=Sh(k,k.next),R=Sh(R,R.next),F0(k,l,c,p,g,w,0),void F0(R,l,c,p,g,w,0)}P=P.next}k=k.next}while(k!==d)}function Xw(d,l){let c=d.x-l.x;return c===0&&(c=d.y-l.y,c===0)&&(c=(d.next.y-d.y)/(d.next.x-d.x)-(l.next.y-l.y)/(l.next.x-l.x)),c}function Jw(d,l){const c=(function(g,w){let k=w;const P=g.x,R=g.y;let L,j=-1/0;if(ym(g,k))return k;do{if(ym(g,k.next))return k.next;if(R<=k.y&&R>=k.next.y&&k.next.y!==k.y){const ue=k.x+(R-k.y)*(k.next.x-k.x)/(k.next.y-k.y);if(ue<=P&&ue>j&&(j=ue,L=k.x<k.next.x?k:k.next,ue===P))return L}k=k.next}while(k!==w);if(!L)return null;const F=L,te=L.x,G=L.y;let oe=1/0;k=L;do{if(P>=k.x&&k.x>=te&&P!==k.x&&e3(R<G?P:j,R,te,G,R<G?j:P,R,k.x,k.y)){const ue=Math.abs(R-k.y)/(P-k.x);Oo(k,g)&&(ue<oe||ue===oe&&(k.x>L.x||k.x===L.x&&Qw(L,k)))&&(L=k,oe=ue)}k=k.next}while(k!==F);return L})(d,l);if(!c)return l;const p=n3(c,d);return Sh(p,p.next),Sh(c,c.next)}function Qw(d,l){return Xi(d.prev,d,l.prev)<0&&Xi(l.next,d,d.next)<0}function Pb(d,l,c,p,g){return(d=1431655765&((d=858993459&((d=252645135&((d=16711935&((d=(d-c)*g|0)|d<<8))|d<<4))|d<<2))|d<<1))|(l=1431655765&((l=858993459&((l=252645135&((l=16711935&((l=(l-p)*g|0)|l<<8))|l<<4))|l<<2))|l<<1))<<1}function $k(d){let l=d,c=d;do(l.x<c.x||l.x===c.x&&l.y<c.y)&&(c=l),l=l.next;while(l!==d);return c}function e3(d,l,c,p,g,w,k,P){return(g-k)*(l-P)>=(d-k)*(w-P)&&(d-k)*(p-P)>=(c-k)*(l-P)&&(c-k)*(w-P)>=(g-k)*(p-P)}function gm(d,l,c,p,g,w,k,P){return!(d===k&&l===P)&&e3(d,l,c,p,g,w,k,P)}function Mk(d,l){return d.next.i!==l.i&&d.prev.i!==l.i&&!(function(c,p){let g=c;do{if(g.i!==c.i&&g.next.i!==c.i&&g.i!==p.i&&g.next.i!==p.i&&t3(g,g.next,c,p))return!0;g=g.next}while(g!==c);return!1})(d,l)&&(Oo(d,l)&&Oo(l,d)&&(function(c,p){let g=c,w=!1;const k=(c.x+p.x)/2,P=(c.y+p.y)/2;do g.y>P!=g.next.y>P&&g.next.y!==g.y&&k<(g.next.x-g.x)*(P-g.y)/(g.next.y-g.y)+g.x&&(w=!w),g=g.next;while(g!==c);return w})(d,l)&&(Xi(d.prev,d,l.prev)||Xi(d,l.prev,l))||ym(d,l)&&Xi(d.prev,d,d.next)>0&&Xi(l.prev,l,l.next)>0)}function Xi(d,l,c){return(l.y-d.y)*(c.x-l.x)-(l.x-d.x)*(c.y-l.y)}function ym(d,l){return d.x===l.x&&d.y===l.y}function t3(d,l,c,p){const g=X1(Xi(d,l,c)),w=X1(Xi(d,l,p)),k=X1(Xi(c,p,d)),P=X1(Xi(c,p,l));return g!==w&&k!==P||!(g!==0||!K1(d,c,l))||!(w!==0||!K1(d,p,l))||!(k!==0||!K1(c,d,p))||!(P!==0||!K1(c,l,p))}function K1(d,l,c){return l.x<=Math.max(d.x,c.x)&&l.x>=Math.min(d.x,c.x)&&l.y<=Math.max(d.y,c.y)&&l.y>=Math.min(d.y,c.y)}function X1(d){return d>0?1:d<0?-1:0}function Oo(d,l){return Xi(d.prev,d,d.next)<0?Xi(d,l,d.next)>=0&&Xi(d,d.prev,l)>=0:Xi(d,l,d.prev)<0||Xi(d,d.next,l)<0}function n3(d,l){const c=J1(d.i,d.x,d.y),p=J1(l.i,l.x,l.y),g=d.next,w=l.prev;return d.next=l,l.prev=d,c.next=g,g.prev=c,p.next=c,c.prev=p,w.next=p,p.prev=w,p}function r3(d,l,c,p){const g=J1(d,l,c);return p?(g.next=p.next,g.prev=p,p.next.prev=g,p.next=g):(g.prev=g,g.next=g),g}function z0(d){d.next.prev=d.prev,d.prev.next=d.next,d.prevZ&&(d.prevZ.nextZ=d.nextZ),d.nextZ&&(d.nextZ.prevZ=d.prevZ)}function J1(d,l,c){return{i:d,x:l,y:c,prev:null,next:null,z:0,prevZ:null,nextZ:null,steiner:!1}}class vm{constructor(l,c){if(c>l)throw new Error("Min granularity must not be greater than base granularity.");this._baseZoomGranularity=l,this._minGranularity=c}getGranularityForZoomLevel(l){return Math.max(Math.floor(this._baseZoomGranularity/(1<<l)),this._minGranularity,1)}}class Q1{constructor(l){this.fill=l.fill,this.line=l.line,this.tile=l.tile,this.stencil=l.stencil,this.circle=l.circle}}Q1.noSubdivision=new Q1({fill:new vm(0,0),line:new vm(0,0),tile:new vm(0,0),stencil:new vm(0,0),circle:1}),bn("SubdivisionGranularityExpression",vm),bn("SubdivisionGranularitySetting",Q1);const _m=-32768,N0=32767;class $b{constructor(l,c){this._vertexBuffer=[],this._vertexDictionary=new Map,this._used=!1,this._granularity=l,this._granularityCellSize=$e/l,this._canonical=c}_getKey(l,c){return(l+=32768)<<16|c+32768}_vertexToIndex(l,c){if(l<-32768||c<-32768||l>32767||c>32767)throw new Error("Vertex coordinates are out of signed 16 bit integer range.");const p=0|Math.round(l),g=0|Math.round(c),w=this._getKey(p,g);if(this._vertexDictionary.has(w))return this._vertexDictionary.get(w);const k=this._vertexBuffer.length/2;return this._vertexDictionary.set(w,k),this._vertexBuffer.push(p,g),k}_subdivideTrianglesScanline(l){if(this._granularity<2)return(function(g,w){const k=[];for(let P=0;P<w.length;P+=3){const R=w[P],L=w[P+1],j=w[P+2],F=g[2*R],te=g[2*R+1];(g[2*L]-F)*(g[2*j+1]-te)-(g[2*L+1]-te)*(g[2*j]-F)>0?(k.push(R),k.push(j),k.push(L)):(k.push(R),k.push(L),k.push(j))}return k})(this._vertexBuffer,l);const c=[],p=l.length;for(let g=0;g<p;g+=3){const w=[l[g+0],l[g+1],l[g+2]],k=[this._vertexBuffer[2*l[g+0]+0],this._vertexBuffer[2*l[g+0]+1],this._vertexBuffer[2*l[g+1]+0],this._vertexBuffer[2*l[g+1]+1],this._vertexBuffer[2*l[g+2]+0],this._vertexBuffer[2*l[g+2]+1]];let P=1/0,R=1/0,L=-1/0,j=-1/0;for(let ue=0;ue<3;ue++){const ve=k[2*ue],_e=k[2*ue+1];P=Math.min(P,ve),L=Math.max(L,ve),R=Math.min(R,_e),j=Math.max(j,_e)}if(P===L||R===j)continue;const F=Math.floor(P/this._granularityCellSize),te=Math.ceil(L/this._granularityCellSize),G=Math.floor(R/this._granularityCellSize),oe=Math.ceil(j/this._granularityCellSize);if(F!==te||G!==oe)for(let ue=G;ue<oe;ue++){const ve=this._scanlineGenerateVertexRingForCellRow(ue,k,w);Ak(this._vertexBuffer,ve,c)}else c.push(...w)}return c}_scanlineGenerateVertexRingForCellRow(l,c,p){const g=l*this._granularityCellSize,w=g+this._granularityCellSize,k=[];for(let P=0;P<3;P++){const R=c[2*P],L=c[2*P+1],j=c[2*(P+1)%6],F=c[(2*(P+1)+1)%6],te=c[2*(P+2)%6],G=c[(2*(P+2)+1)%6],oe=j-R,ue=F-L,ve=oe===0,_e=ue===0,Me=(g-L)/ue,Te=(w-L)/ue,Ae=Math.min(Me,Te),ze=Math.max(Me,Te);if(!_e&&(Ae>=1||ze<=0)||_e&&(L<g||L>w)){F>=g&&F<=w&&k.push(p[(P+1)%3]);continue}!_e&&Ae>0&&k.push(this._vertexToIndex(R+oe*Ae,L+ue*Ae));const We=R+oe*Math.max(Ae,0),dt=R+oe*Math.min(ze,1);ve||this._generateIntraEdgeVertices(k,R,L,j,F,We,dt),!_e&&ze<1&&k.push(this._vertexToIndex(R+oe*ze,L+ue*ze)),(_e||F>=g&&F<=w)&&k.push(p[(P+1)%3]),!_e&&(F<=g||F>=w)&&this._generateInterEdgeVertices(k,R,L,j,F,te,G,dt,g,w)}return k}_generateIntraEdgeVertices(l,c,p,g,w,k,P){const R=g-c,L=w-p,j=L===0,F=j?Math.min(c,g):Math.min(k,P),te=j?Math.max(c,g):Math.max(k,P),G=Math.floor(F/this._granularityCellSize)+1,oe=Math.ceil(te/this._granularityCellSize)-1;if(j?c<g:k<P)for(let ue=G;ue<=oe;ue++){const ve=ue*this._granularityCellSize;l.push(this._vertexToIndex(ve,p+L*(ve-c)/R))}else for(let ue=oe;ue>=G;ue--){const ve=ue*this._granularityCellSize;l.push(this._vertexToIndex(ve,p+L*(ve-c)/R))}}_generateInterEdgeVertices(l,c,p,g,w,k,P,R,L,j){const F=w-p,te=k-g,G=P-w,oe=(L-w)/G,ue=(j-w)/G,ve=Math.min(oe,ue),_e=Math.max(oe,ue),Me=g+te*ve;let Te=Math.floor(Math.min(Me,R)/this._granularityCellSize)+1,Ae=Math.ceil(Math.max(Me,R)/this._granularityCellSize)-1,ze=R<Me;const We=G===0;if(We&&(P===L||P===j))return;if(We||ve>=1||_e<=0){const mt=p-P,Lt=k+(c-k)*Math.min((L-P)/mt,(j-P)/mt);Te=Math.floor(Math.min(Lt,R)/this._granularityCellSize)+1,Ae=Math.ceil(Math.max(Lt,R)/this._granularityCellSize)-1,ze=R<Lt}const dt=F>0?j:L;if(ze)for(let mt=Te;mt<=Ae;mt++)l.push(this._vertexToIndex(mt*this._granularityCellSize,dt));else for(let mt=Ae;mt>=Te;mt--)l.push(this._vertexToIndex(mt*this._granularityCellSize,dt))}_generateOutline(l){const c=[];for(const p of l){const g=Ch(p,this._granularity,!0),w=this._pointArrayToIndices(g),k=[];for(let P=1;P<w.length;P++)k.push(w[P-1]),k.push(w[P]);c.push(k)}return c}_handlePoles(l){let c=!1,p=!1;this._canonical&&(this._canonical.y===0&&(c=!0),this._canonical.y===(1<<this._canonical.z)-1&&(p=!0)),(c||p)&&this._fillPoles(l,c,p)}_ensureNoPoleVertices(){const l=this._vertexBuffer;for(let c=0;c<l.length;c+=2){const p=l[c+1];p===_m&&(l[c+1]=-32767),p===N0&&(l[c+1]=32766)}}_generatePoleQuad(l,c,p,g,w,k){g>w!=(k===_m)?(l.push(c),l.push(p),l.push(this._vertexToIndex(g,k)),l.push(p),l.push(this._vertexToIndex(w,k)),l.push(this._vertexToIndex(g,k))):(l.push(p),l.push(c),l.push(this._vertexToIndex(g,k)),l.push(this._vertexToIndex(w,k)),l.push(p),l.push(this._vertexToIndex(g,k)))}_fillPoles(l,c,p){const g=this._vertexBuffer,w=$e,k=l.length;for(let P=2;P<k;P+=3){const R=l[P-2],L=l[P-1],j=l[P],F=g[2*R],te=g[2*R+1],G=g[2*L],oe=g[2*L+1],ue=g[2*j],ve=g[2*j+1];c&&(te===0&&oe===0&&this._generatePoleQuad(l,R,L,F,G,_m),oe===0&&ve===0&&this._generatePoleQuad(l,L,j,G,ue,_m),ve===0&&te===0&&this._generatePoleQuad(l,j,R,ue,F,_m)),p&&(te===w&&oe===w&&this._generatePoleQuad(l,R,L,F,G,N0),oe===w&&ve===w&&this._generatePoleQuad(l,L,j,G,ue,N0),ve===w&&te===w&&this._generatePoleQuad(l,j,R,ue,F,N0))}}_initializeVertices(l){for(let c=0;c<l.length;c+=2)this._vertexToIndex(l[c],l[c+1])}subdividePolygonInternal(l,c){if(this._used)throw new Error("Subdivision: multiple use not allowed.");this._used=!0;const{flattened:p,holeIndices:g}=(function(P){const R=[],L=[];for(const j of P)if(j.length!==0){j!==P[0]&&R.push(L.length/2);for(const F of j)L.push(F.x),L.push(F.y)}return{flattened:L,holeIndices:R}})(l);let w;this._initializeVertices(p);try{const P=(function(L,j,F=2){const te=j&&j.length,G=te?j[0]*F:L.length;let oe=Kw(L,0,G,F,!0);const ue=[];if(!oe||oe.next===oe.prev)return ue;let ve,_e,Me;if(te&&(oe=(function(Te,Ae,ze,We){const dt=[];for(let mt=0,Lt=Ae.length;mt<Lt;mt++){const Et=Kw(Te,Ae[mt]*We,mt<Lt-1?Ae[mt+1]*We:Te.length,We,!1);Et===Et.next&&(Et.steiner=!0),dt.push($k(Et))}dt.sort(Xw);for(let mt=0;mt<dt.length;mt++)ze=Jw(dt[mt],ze);return ze})(L,j,oe,F)),L.length>80*F){ve=L[0],_e=L[1];let Te=ve,Ae=_e;for(let ze=F;ze<G;ze+=F){const We=L[ze],dt=L[ze+1];We<ve&&(ve=We),dt<_e&&(_e=dt),We>Te&&(Te=We),dt>Ae&&(Ae=dt)}Me=Math.max(Te-ve,Ae-_e),Me=Me!==0?32767/Me:0}return F0(oe,ue,F,ve,_e,Me,0),ue})(p,g),R=this._convertIndices(p,P);w=this._subdivideTrianglesScanline(R)}catch{}let k=[];return c&&(k=this._generateOutline(l)),this._ensureNoPoleVertices(),this._handlePoles(w),{verticesFlattened:this._vertexBuffer,indicesTriangles:w,indicesLineList:k}}_convertIndices(l,c){const p=[];for(const g of c)p.push(this._vertexToIndex(l[2*g],l[2*g+1]));return p}_pointArrayToIndices(l){const c=[];for(const p of l)c.push(this._vertexToIndex(p.x,p.y));return c}}function i3(d,l,c,p=!0){return new $b(c,l).subdividePolygonInternal(d,p)}function Ch(d,l,c=!1){if(!d||d.length<1)return[];if(d.length<2)return[];const p=d[0],g=d[d.length-1],w=c&&(p.x!==g.x||p.y!==g.y);if(l<2)return w?[...d,d[0]]:[...d];const k=Math.floor($e/l),P=[];P.push(new f(d[0].x,d[0].y));const R=d.length,L=w?R:R-1;for(let j=0;j<L;j++){const F=d[j],te=j<R-1?d[j+1]:d[0],G=F.x,oe=F.y,ue=te.x,ve=te.y,_e=G!==ue,Me=oe!==ve;if(!_e&&!Me)continue;const Te=ue-G,Ae=ve-oe,ze=Math.abs(Te),We=Math.abs(Ae);let dt=G,mt=oe;for(;;){const Et=Te>0?(Math.floor(dt/k)+1)*k:(Math.ceil(dt/k)-1)*k,jt=Ae>0?(Math.floor(mt/k)+1)*k:(Math.ceil(mt/k)-1)*k,Ut=Math.abs(dt-Et),Bt=Math.abs(mt-jt),Mt=Math.abs(dt-ue),on=Math.abs(mt-ve),yn=_e?Ut/ze:Number.POSITIVE_INFINITY,hn=Me?Bt/We:Number.POSITIVE_INFINITY;if((Mt<=Ut||!_e)&&(on<=Bt||!Me))break;if(yn<hn&&_e||!Me){dt=Et,mt+=Ae*yn;const cn=new f(dt,Math.round(mt));P[P.length-1].x===cn.x&&P[P.length-1].y===cn.y||P.push(cn)}else{dt+=Te*hn,mt=jt;const cn=new f(Math.round(dt),mt);P[P.length-1].x===cn.x&&P[P.length-1].y===cn.y||P.push(cn)}}const Lt=new f(ue,ve);P[P.length-1].x===Lt.x&&P[P.length-1].y===Lt.y||P.push(Lt)}return P}function Ak(d,l,c){if(l.length===0)throw new Error("Subdivision vertex ring is empty.");let p=0,g=d[2*l[0]];for(let R=1;R<l.length;R++){const L=d[2*l[R]];L<g&&(g=L,p=R)}const w=l.length;let k=p,P=(k+1)%w;for(;;){const R=k-1>=0?k-1:w-1,L=(P+1)%w,j=d[2*l[R]],F=d[2*l[L]],te=d[2*l[k]],G=d[2*l[k]+1],oe=d[2*l[P]+1];let ue=!1;if(j<F)ue=!0;else if(j>F)ue=!1;else{const ve=oe-G,_e=-(d[2*l[P]]-te),Me=G<oe?1:-1;((j-te)*ve+(d[2*l[R]+1]-G)*_e)*Me>((F-te)*ve+(d[2*l[L]+1]-G)*_e)*Me&&(ue=!0)}if(ue){const ve=l[R],_e=l[k],Me=l[P];ve!==_e&&ve!==Me&&_e!==Me&&c.push(Me,_e,ve),k--,k<0&&(k=w-1)}else{const ve=l[L],_e=l[k],Me=l[P];ve!==_e&&ve!==Me&&_e!==Me&&c.push(Me,_e,ve),P++,P>=w&&(P=0)}if(R===L)break}}function a3(d,l,c,p,g,w,k,P,R){const L=g.length/2,j=k&&P&&R;if(L<gn.MAX_VERTEX_ARRAY_LENGTH){const F=l.prepareSegment(L,c,p),te=F.vertexLength;for(let ue=0;ue<w.length;ue+=3)p.emplaceBack(te+w[ue],te+w[ue+1],te+w[ue+2]);let G,oe;F.vertexLength+=L,F.primitiveLength+=w.length/3,j&&(oe=k.prepareSegment(L,c,P),G=oe.vertexLength,oe.vertexLength+=L);for(let ue=0;ue<g.length;ue+=2)d(g[ue],g[ue+1]);if(j)for(const ue of R){for(let ve=1;ve<ue.length;ve+=2)P.emplaceBack(G+ue[ve-1],G+ue[ve]);oe.primitiveLength+=ue.length/2}}else(function(F,te,G,oe,ue,ve){const _e=[];for(let We=0;We<oe.length/2;We++)_e.push(-1);const Me={count:0};let Te=0,Ae=F.getOrCreateLatestSegment(te,G),ze=Ae.vertexLength;for(let We=2;We<ue.length;We+=3){const dt=ue[We-2],mt=ue[We-1],Lt=ue[We];let Et=_e[dt]<Te,jt=_e[mt]<Te,Ut=_e[Lt]<Te;Ae.vertexLength+((Et?1:0)+(jt?1:0)+(Ut?1:0))>gn.MAX_VERTEX_ARRAY_LENGTH&&(Ae=F.createNewSegment(te,G),Te=Me.count,Et=!0,jt=!0,Ut=!0,ze=0);const Bt=V0(_e,oe,ve,Me,dt,Et,Ae),Mt=V0(_e,oe,ve,Me,mt,jt,Ae),on=V0(_e,oe,ve,Me,Lt,Ut,Ae);G.emplaceBack(ze+Bt-Te,ze+Mt-Te,ze+on-Te),Ae.primitiveLength++}})(l,c,p,g,w,d),j&&(function(F,te,G,oe,ue,ve){const _e=[];for(let We=0;We<oe.length/2;We++)_e.push(-1);const Me={count:0};let Te=0,Ae=F.getOrCreateLatestSegment(te,G),ze=Ae.vertexLength;for(const We of ue)for(let dt=1;dt<We.length;dt+=2){const mt=We[dt-1],Lt=We[dt];let Et=_e[mt]<Te,jt=_e[Lt]<Te;Ae.vertexLength+((Et?1:0)+(jt?1:0))>gn.MAX_VERTEX_ARRAY_LENGTH&&(Ae=F.createNewSegment(te,G),Te=Me.count,Et=!0,jt=!0,ze=0);const Ut=V0(_e,oe,ve,Me,mt,Et,Ae),Bt=V0(_e,oe,ve,Me,Lt,jt,Ae);G.emplaceBack(ze+Ut-Te,ze+Bt-Te),Ae.primitiveLength++}})(k,c,P,g,R,d),l.forceNewSegmentOnNextPrepare(),k?.forceNewSegmentOnNextPrepare()}function V0(d,l,c,p,g,w,k){if(w){const P=p.count;return c(l[2*g],l[2*g+1]),d[g]=p.count,p.count++,k.vertexLength++,P}return d[g]}class Mb{constructor(l){this.zoom=l.zoom,this.overscaling=l.overscaling,this.layers=l.layers,this.layerIds=this.layers.map((c=>c.id)),this.index=l.index,this.hasDependencies=!1,this.patternFeatures=[],this.layoutVertexArray=new Ze,this.indexArray=new Xt,this.indexArray2=new Tn,this.programConfigurations=new Sl(l.layers,l.zoom),this.segments=new gn,this.segments2=new gn,this.stateDependentLayerIds=this.layers.filter((c=>c.isStateDependent())).map((c=>c.id))}populate(l,c,p){this.hasDependencies=Z1("fill",this.layers,c);const g=this.layers[0].layout.get("fill-sort-key"),w=!g.isConstant(),k=[];for(const{feature:P,id:R,index:L,sourceLayerIndex:j}of l){const F=this.layers[0]._featureFilter.needGeometry,te=eo(P,F);if(!this.layers[0]._featureFilter.filter(new or(this.zoom),te,p))continue;const G=w?g.evaluate(te,{},p,c.availableImages):void 0,oe={id:R,properties:P.properties,type:P.type,sourceLayerIndex:j,index:L,geometry:F?te.geometry:Wu(P),patterns:{},sortKey:G};k.push(oe)}w&&k.sort(((P,R)=>P.sortKey-R.sortKey));for(const P of k){const{geometry:R,index:L,sourceLayerIndex:j}=P;if(this.hasDependencies){const F=Eb("fill",this.layers,P,{zoom:this.zoom},c);this.patternFeatures.push(F)}else this.addFeature(P,R,L,p,{},c.subdivisionGranularity);c.featureIndex.insert(l[L].feature,R,L,j,this.index)}}update(l,c,p){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(l,c,this.stateDependentLayers,{imagePositions:p})}addFeatures(l,c,p){for(const g of this.patternFeatures)this.addFeature(g,g.geometry,g.index,c,p,l.subdivisionGranularity)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(l){this.uploaded||(this.layoutVertexBuffer=l.createVertexBuffer(this.layoutVertexArray,Ck),this.indexBuffer=l.createIndexBuffer(this.indexArray),this.indexBuffer2=l.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(l),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())}addFeature(l,c,p,g,w,k){for(const P of Ws(c,500)){const R=i3(P,g,k.fill.getGranularityForZoomLevel(g.z)),L=this.layoutVertexArray;a3(((j,F)=>{L.emplaceBack(j,F)}),this.segments,this.layoutVertexArray,this.indexArray,R.verticesFlattened,R.indicesTriangles,this.segments2,this.indexArray2,R.indicesLineList)}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,l,p,{imagePositions:w,canonical:g})}}let o3,s3;bn("FillBucket",Mb,{omit:["layers","patternFeatures"]});var Ik={get paint(){return s3=s3||new Xa({"fill-antialias":new Pn(Ft.paint_fill["fill-antialias"]),"fill-opacity":new Rn(Ft.paint_fill["fill-opacity"]),"fill-color":new Rn(Ft.paint_fill["fill-color"]),"fill-outline-color":new Rn(Ft.paint_fill["fill-outline-color"]),"fill-translate":new Pn(Ft.paint_fill["fill-translate"]),"fill-translate-anchor":new Pn(Ft.paint_fill["fill-translate-anchor"]),"fill-pattern":new xl(Ft.paint_fill["fill-pattern"])})},get layout(){return o3=o3||new Xa({"fill-sort-key":new Rn(Ft.layout_fill["fill-sort-key"])})}};class Dk extends Ja{constructor(l,c){super(l,Ik,c)}recalculate(l,c){super.recalculate(l,c);const p=this.paint._values["fill-outline-color"];p.value.kind==="constant"&&p.value.value===void 0&&(this.paint._values["fill-outline-color"]=this.paint._values["fill-color"])}createBucket(l){return new Mb(l)}queryRadius(){return L0(this.paint.get("fill-translate"))}queryIntersectsFeature({queryGeometry:l,geometry:c,transform:p,pixelsToTileUnits:g}){return Wn(W1(l,this.paint.get("fill-translate"),this.paint.get("fill-translate-anchor"),-p.bearingInRadians,g),c)}isTileClipped(){return!0}}const Lk=oi([{name:"a_pos",components:2,type:"Int16"},{name:"a_normal_ed",components:4,type:"Int16"}],4),Ok=oi([{name:"a_centroid",components:2,type:"Int16"}],4),{members:Rk}=Lk;class q0{constructor(l,c,p,g,w){this.properties={},this.extent=p,this.type=0,this.id=void 0,this._pbf=l,this._geometry=-1,this._keys=g,this._values=w,l.readFields(Bk,this,c)}loadGeometry(){const l=this._pbf;l.pos=this._geometry;const c=l.readVarint()+l.pos,p=[];let g,w=1,k=0,P=0,R=0;for(;l.pos<c;){if(k<=0){const L=l.readVarint();w=7&L,k=L>>3}if(k--,w===1||w===2)P+=l.readSVarint(),R+=l.readSVarint(),w===1&&(g&&p.push(g),g=[]),g&&g.push(new f(P,R));else{if(w!==7)throw new Error(`unknown command ${w}`);g&&g.push(g[0].clone())}}return g&&p.push(g),p}bbox(){const l=this._pbf;l.pos=this._geometry;const c=l.readVarint()+l.pos;let p=1,g=0,w=0,k=0,P=1/0,R=-1/0,L=1/0,j=-1/0;for(;l.pos<c;){if(g<=0){const F=l.readVarint();p=7&F,g=F>>3}if(g--,p===1||p===2)w+=l.readSVarint(),k+=l.readSVarint(),w<P&&(P=w),w>R&&(R=w),k<L&&(L=k),k>j&&(j=k);else if(p!==7)throw new Error(`unknown command ${p}`)}return[P,L,R,j]}toGeoJSON(l,c,p){const g=this.extent*Math.pow(2,p),w=this.extent*l,k=this.extent*c,P=this.loadGeometry();function R(te){return[360*(te.x+w)/g-180,360/Math.PI*Math.atan(Math.exp((1-2*(te.y+k)/g)*Math.PI))-90]}function L(te){return te.map(R)}let j;if(this.type===1){const te=[];for(const oe of P)te.push(oe[0]);const G=L(te);j=te.length===1?{type:"Point",coordinates:G[0]}:{type:"MultiPoint",coordinates:G}}else if(this.type===2){const te=P.map(L);j=te.length===1?{type:"LineString",coordinates:te[0]}:{type:"MultiLineString",coordinates:te}}else{if(this.type!==3)throw new Error("unknown feature type");{const te=l3(P),G=[];for(const oe of te)G.push(oe.map(L));j=G.length===1?{type:"Polygon",coordinates:G[0]}:{type:"MultiPolygon",coordinates:G}}}const F={type:"Feature",geometry:j,properties:this.properties};return this.id!=null&&(F.id=this.id),F}}function Bk(d,l,c){d===1?l.id=c.readVarint():d===2?(function(p,g){const w=p.readVarint()+p.pos;for(;p.pos<w;){const k=g._keys[p.readVarint()],P=g._values[p.readVarint()];g.properties[k]=P}})(c,l):d===3?l.type=c.readVarint():d===4&&(l._geometry=c.pos)}function l3(d){const l=d.length;if(l<=1)return[d];const c=[];let p,g;for(let w=0;w<l;w++){const k=Fk(d[w]);k!==0&&(g===void 0&&(g=k<0),g===k<0?(p&&c.push(p),p=[d[w]]):p&&p.push(d[w]))}return p&&c.push(p),c}function Fk(d){let l=0;for(let c,p,g=0,w=d.length,k=w-1;g<w;k=g++)c=d[g],p=d[k],l+=(p.x-c.x)*(c.y+p.y);return l}q0.types=["Unknown","Point","LineString","Polygon"];class zk{constructor(l,c){this.version=1,this.name="",this.extent=4096,this.length=0,this._pbf=l,this._keys=[],this._values=[],this._features=[],l.readFields(Nk,this,c),this.length=this._features.length}feature(l){if(l<0||l>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[l];const c=this._pbf.readVarint()+this._pbf.pos;return new q0(this._pbf,c,this.extent,this._keys,this._values)}}function Nk(d,l,c){d===15?l.version=c.readVarint():d===1?l.name=c.readString():d===5?l.extent=c.readVarint():d===2?l._features.push(c.pos):d===3?l._keys.push(c.readString()):d===4&&l._values.push((function(p){let g=null;const w=p.readVarint()+p.pos;for(;p.pos<w;){const k=p.readVarint()>>3;g=k===1?p.readString():k===2?p.readFloat():k===3?p.readDouble():k===4?p.readVarint64():k===5?p.readVarint():k===6?p.readSVarint():k===7?p.readBoolean():null}if(g==null)throw new Error("unknown feature value");return g})(c))}class u3{constructor(l,c){this.layers=l.readFields(Ab,{},c)}}function Ab(d,l,c){if(d===3){const p=new zk(c,c.readVarint()+c.pos);p.length&&(l[p.name]=p)}}const ev=Math.pow(2,13);function j0(d,l,c,p,g,w,k,P){d.emplaceBack(l,c,2*Math.floor(p*ev)+k,g*ev*2,w*ev*2,Math.round(P))}class Ib{constructor(l){this.zoom=l.zoom,this.overscaling=l.overscaling,this.layers=l.layers,this.layerIds=this.layers.map((c=>c.id)),this.index=l.index,this.hasDependencies=!1,this.layoutVertexArray=new et,this.centroidVertexArray=new He,this.indexArray=new Xt,this.programConfigurations=new Sl(l.layers,l.zoom),this.segments=new gn,this.stateDependentLayerIds=this.layers.filter((c=>c.isStateDependent())).map((c=>c.id))}populate(l,c,p){this.features=[],this.hasDependencies=Z1("fill-extrusion",this.layers,c);for(const{feature:g,id:w,index:k,sourceLayerIndex:P}of l){const R=this.layers[0]._featureFilter.needGeometry,L=eo(g,R);if(!this.layers[0]._featureFilter.filter(new or(this.zoom),L,p))continue;const j={id:w,sourceLayerIndex:P,index:k,geometry:R?L.geometry:Wu(g),properties:g.properties,type:g.type,patterns:{}};this.hasDependencies?this.features.push(Eb("fill-extrusion",this.layers,j,{zoom:this.zoom},c)):this.addFeature(j,j.geometry,k,p,{},c.subdivisionGranularity),c.featureIndex.insert(g,j.geometry,k,P,this.index,!0)}}addFeatures(l,c,p){for(const g of this.features){const{geometry:w}=g;this.addFeature(g,w,g.index,c,p,l.subdivisionGranularity)}}update(l,c,p){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(l,c,this.stateDependentLayers,{imagePositions:p})}isEmpty(){return this.layoutVertexArray.length===0&&this.centroidVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(l){this.uploaded||(this.layoutVertexBuffer=l.createVertexBuffer(this.layoutVertexArray,Rk),this.centroidVertexBuffer=l.createVertexBuffer(this.centroidVertexArray,Ok.members,!0),this.indexBuffer=l.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(l),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.centroidVertexBuffer.destroy())}addFeature(l,c,p,g,w,k){for(const P of Ws(c,500)){const R={x:0,y:0,sampleCount:0},L=this.layoutVertexArray.length;this.processPolygon(R,g,l,P,k);const j=this.layoutVertexArray.length-L,F=Math.floor(R.x/R.sampleCount),te=Math.floor(R.y/R.sampleCount);for(let G=0;G<j;G++)this.centroidVertexArray.emplaceBack(F,te)}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,l,p,{imagePositions:w,canonical:g})}processPolygon(l,c,p,g,w){if(g.length<1||c3(g[0]))return;for(const F of g)F.length!==0&&Vk(l,F);const k={segment:this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray)},P=w.fill.getGranularityForZoomLevel(c.z),R=q0.types[p.type]==="Polygon";for(const F of g){if(F.length===0||c3(F))continue;const te=Ch(F,P,R);this._generateSideFaces(te,k)}if(!R)return;const L=i3(g,c,P,!1),j=this.layoutVertexArray;a3(((F,te)=>{j0(j,F,te,0,0,1,1,0)}),this.segments,this.layoutVertexArray,this.indexArray,L.verticesFlattened,L.indicesTriangles)}_generateSideFaces(l,c){let p=0;for(let g=1;g<l.length;g++){const w=l[g],k=l[g-1];if(qk(w,k))continue;c.segment.vertexLength+4>gn.MAX_VERTEX_ARRAY_LENGTH&&(c.segment=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));const P=w.sub(k)._perp()._unit(),R=k.dist(w);p+R>32768&&(p=0),j0(this.layoutVertexArray,w.x,w.y,P.x,P.y,0,0,p),j0(this.layoutVertexArray,w.x,w.y,P.x,P.y,0,1,p),p+=R,j0(this.layoutVertexArray,k.x,k.y,P.x,P.y,0,0,p),j0(this.layoutVertexArray,k.x,k.y,P.x,P.y,0,1,p);const L=c.segment.vertexLength;this.indexArray.emplaceBack(L,L+2,L+1),this.indexArray.emplaceBack(L+1,L+2,L+3),c.segment.vertexLength+=4,c.segment.primitiveLength+=2}}}function Vk(d,l){for(let c=0;c<l.length;c++){const p=l[c];c===l.length-1&&l[0].x===p.x&&l[0].y===p.y||(d.x+=p.x,d.y+=p.y,d.sampleCount++)}}function qk(d,l){return d.x===l.x&&(d.x<0||d.x>$e)||d.y===l.y&&(d.y<0||d.y>$e)}function c3(d){return d.every((l=>l.x<0))||d.every((l=>l.x>$e))||d.every((l=>l.y<0))||d.every((l=>l.y>$e))}let d3;bn("FillExtrusionBucket",Ib,{omit:["layers","features"]});var jk={get paint(){return d3=d3||new Xa({"fill-extrusion-opacity":new Pn(Ft["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new Rn(Ft["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new Pn(Ft["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new Pn(Ft["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new xl(Ft["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new Rn(Ft["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new Rn(Ft["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new Pn(Ft["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])})}};class Uk extends Ja{constructor(l,c){super(l,jk,c)}createBucket(l){return new Ib(l)}queryRadius(){return L0(this.paint.get("fill-extrusion-translate"))}is3D(){return!0}queryIntersectsFeature({queryGeometry:l,feature:c,featureState:p,geometry:g,transform:w,pixelsToTileUnits:k,pixelPosMatrix:P}){const R=W1(l,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),-w.bearingInRadians,k),L=this.paint.get("fill-extrusion-height").evaluate(c,p),j=this.paint.get("fill-extrusion-base").evaluate(c,p),F=(function(G,oe){const ue=[];for(const ve of G){const _e=[ve.x,ve.y,0,1];pe(_e,_e,oe),ue.push(new f(_e[0]/_e[3],_e[1]/_e[3]))}return ue})(R,P),te=(function(G,oe,ue,ve){const _e=[],Me=[],Te=ve[8]*oe,Ae=ve[9]*oe,ze=ve[10]*oe,We=ve[11]*oe,dt=ve[8]*ue,mt=ve[9]*ue,Lt=ve[10]*ue,Et=ve[11]*ue;for(const jt of G){const Ut=[],Bt=[];for(const Mt of jt){const on=Mt.x,yn=Mt.y,hn=ve[0]*on+ve[4]*yn+ve[12],cn=ve[1]*on+ve[5]*yn+ve[13],qn=ve[2]*on+ve[6]*yn+ve[14],Rr=ve[3]*on+ve[7]*yn+ve[15],Ur=qn+ze,ii=Rr+We,Vo=hn+dt,Qi=cn+mt,za=qn+Lt,no=Rr+Et,Oi=new f((hn+Te)/ii,(cn+Ae)/ii);Oi.z=Ur/ii,Ut.push(Oi);const bo=new f(Vo/no,Qi/no);bo.z=za/no,Bt.push(bo)}_e.push(Ut),Me.push(Bt)}return[_e,Me]})(g,j,L,P);return(function(G,oe,ue){let ve=1/0;Wn(ue,oe)&&(ve=f3(ue,oe[0]));for(let _e=0;_e<oe.length;_e++){const Me=oe[_e],Te=G[_e];for(let Ae=0;Ae<Me.length-1;Ae++){const ze=Me[Ae],We=[ze,Me[Ae+1],Te[Ae+1],Te[Ae],ze];Qc(ue,We)&&(ve=Math.min(ve,f3(ue,We)))}}return ve!==1/0&&ve})(te[0],te[1],F)}}function bm(d,l){return d.x*l.x+d.y*l.y}function f3(d,l){if(d.length===1){let c=0;const p=l[c++];let g;for(;!g||p.equals(g);)if(g=l[c++],!g)return 1/0;for(;c<l.length;c++){const w=l[c],k=d[0],P=g.sub(p),R=w.sub(p),L=k.sub(p),j=bm(P,P),F=bm(P,R),te=bm(R,R),G=bm(L,P),oe=bm(L,R),ue=j*te-F*F,ve=(te*G-F*oe)/ue,_e=(j*oe-F*G)/ue,Me=p.z*(1-ve-_e)+g.z*ve+w.z*_e;if(isFinite(Me))return Me}return 1/0}{let c=1/0;for(const p of l)c=Math.min(c,p.z);return c}}const U0=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array];class tv{static from(l){if(!(l instanceof ArrayBuffer))throw new Error("Data must be an instance of ArrayBuffer.");const[c,p]=new Uint8Array(l,0,2);if(c!==219)throw new Error("Data does not appear to be in a KDBush format.");const g=p>>4;if(g!==1)throw new Error(`Got v${g} data when expected v1.`);const w=U0[15&p];if(!w)throw new Error("Unrecognized array type.");const[k]=new Uint16Array(l,2,1),[P]=new Uint32Array(l,4,1);return new tv(P,k,w,l)}constructor(l,c=64,p=Float64Array,g){if(isNaN(l)||l<0)throw new Error(`Unpexpected numItems value: ${l}.`);this.numItems=+l,this.nodeSize=Math.min(Math.max(+c,2),65535),this.ArrayType=p,this.IndexArrayType=l<65536?Uint16Array:Uint32Array;const w=U0.indexOf(this.ArrayType),k=2*l*this.ArrayType.BYTES_PER_ELEMENT,P=l*this.IndexArrayType.BYTES_PER_ELEMENT,R=(8-P%8)%8;if(w<0)throw new Error(`Unexpected typed array class: ${p}.`);g&&g instanceof ArrayBuffer?(this.data=g,this.ids=new this.IndexArrayType(this.data,8,l),this.coords=new this.ArrayType(this.data,8+P+R,2*l),this._pos=2*l,this._finished=!0):(this.data=new ArrayBuffer(8+k+P+R),this.ids=new this.IndexArrayType(this.data,8,l),this.coords=new this.ArrayType(this.data,8+P+R,2*l),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,16+w]),new Uint16Array(this.data,2,1)[0]=c,new Uint32Array(this.data,4,1)[0]=l)}add(l,c){const p=this._pos>>1;return this.ids[p]=p,this.coords[this._pos++]=l,this.coords[this._pos++]=c,p}finish(){const l=this._pos>>1;if(l!==this.numItems)throw new Error(`Added ${l} items when expected ${this.numItems}.`);return Db(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(l,c,p,g){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:w,coords:k,nodeSize:P}=this,R=[0,w.length-1,0],L=[];for(;R.length;){const j=R.pop()||0,F=R.pop()||0,te=R.pop()||0;if(F-te<=P){for(let ve=te;ve<=F;ve++){const _e=k[2*ve],Me=k[2*ve+1];_e>=l&&_e<=p&&Me>=c&&Me<=g&&L.push(w[ve])}continue}const G=te+F>>1,oe=k[2*G],ue=k[2*G+1];oe>=l&&oe<=p&&ue>=c&&ue<=g&&L.push(w[G]),(j===0?l<=oe:c<=ue)&&(R.push(te),R.push(G-1),R.push(1-j)),(j===0?p>=oe:g>=ue)&&(R.push(G+1),R.push(F),R.push(1-j))}return L}within(l,c,p){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:g,coords:w,nodeSize:k}=this,P=[0,g.length-1,0],R=[],L=p*p;for(;P.length;){const j=P.pop()||0,F=P.pop()||0,te=P.pop()||0;if(F-te<=k){for(let ve=te;ve<=F;ve++)p3(w[2*ve],w[2*ve+1],l,c)<=L&&R.push(g[ve]);continue}const G=te+F>>1,oe=w[2*G],ue=w[2*G+1];p3(oe,ue,l,c)<=L&&R.push(g[G]),(j===0?l-p<=oe:c-p<=ue)&&(P.push(te),P.push(G-1),P.push(1-j)),(j===0?l+p>=oe:c+p>=ue)&&(P.push(G+1),P.push(F),P.push(1-j))}return R}}function Db(d,l,c,p,g,w){if(g-p<=c)return;const k=p+g>>1;h3(d,l,k,p,g,w),Db(d,l,c,p,k-1,1-w),Db(d,l,c,k+1,g,1-w)}function h3(d,l,c,p,g,w){for(;g>p;){if(g-p>600){const L=g-p+1,j=c-p+1,F=Math.log(L),te=.5*Math.exp(2*F/3),G=.5*Math.sqrt(F*te*(L-te)/L)*(j-L/2<0?-1:1);h3(d,l,c,Math.max(p,Math.floor(c-j*te/L+G)),Math.min(g,Math.floor(c+(L-j)*te/L+G)),w)}const k=l[2*c+w];let P=p,R=g;for(H0(d,l,p,c),l[2*g+w]>k&&H0(d,l,p,g);P<R;){for(H0(d,l,P,R),P++,R--;l[2*P+w]<k;)P++;for(;l[2*R+w]>k;)R--}l[2*p+w]===k?H0(d,l,p,R):(R++,H0(d,l,R,g)),R<=c&&(p=R+1),c<=R&&(g=R-1)}}function H0(d,l,c,p){Lb(d,c,p),Lb(l,2*c,2*p),Lb(l,2*c+1,2*p+1)}function Lb(d,l,c){const p=d[l];d[l]=d[c],d[c]=p}function p3(d,l,c,p){const g=d-c,w=l-p;return g*g+w*w}function Ob(d,l,c,p){let g=p;const w=l+(c-l>>1);let k,P=c-l;const R=d[l],L=d[l+1],j=d[c],F=d[c+1];for(let te=l+3;te<c;te+=3){const G=Hk(d[te],d[te+1],R,L,j,F);if(G>g)k=te,g=G;else if(G===g){const oe=Math.abs(te-w);oe<P&&(k=te,P=oe)}}g>p&&(k-l>3&&Ob(d,l,k,p),d[k+2]=g,c-k>3&&Ob(d,k,c,p))}function Hk(d,l,c,p,g,w){let k=g-c,P=w-p;if(k!==0||P!==0){const R=((d-c)*k+(l-p)*P)/(k*k+P*P);R>1?(c=g,p=w):R>0&&(c+=k*R,p+=P*R)}return k=d-c,P=l-p,k*k+P*P}function Ba(d,l,c,p){const g={type:l,geom:c},w={id:d??null,type:g.type,geometry:g.geom,tags:p,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};switch(g.type){case"Point":case"MultiPoint":W0(w,g.geom);break;case"LineString":W0(w,g.geom.points);break;
24case"Polygon":W0(w,g.geom[0].points);break;case"MultiLineString":for(const k of g.geom)W0(w,k.points);break;case"MultiPolygon":for(const k of g.geom)W0(w,k[0].points)}return w}function Rb(d){d.points.length>64&&(d.points=new Float64Array(d.points))}function W0(d,l){for(let c=0;c<l.length;c+=3)d.minX=Math.min(d.minX,l[c]),d.minY=Math.min(d.minY,l[c+1]),d.maxX=Math.max(d.maxX,l[c]),d.maxY=Math.max(d.maxY,l[c+1])}function Bb(d,l){const c=[];switch(d.type){case"FeatureCollection":for(let p=0;p<d.features.length;p++)nv(c,d.features[p],l,p);break;case"Feature":nv(c,d,l);break;default:nv(c,{geometry:d,properties:void 0},l)}return c}function nv(d,l,c,p){if(!l.geometry)return;if(l.geometry.type==="GeometryCollection")return void(function(P,R,L,j,F){for(const te of L.geometries)nv(P,{id:R.id,geometry:te,properties:R.properties},j,F)})(d,l,l.geometry,c,p);if(!l.geometry.coordinates?.length)return;const w=(function(P,R,L){return R.promoteId?P.properties?.[R.promoteId]:R.generateId?L||0:P.id})(l,c,p),k=Math.pow(c.tolerance/((1<<c.maxZoom)*c.extent),2);switch(l.geometry.type){case"Point":return void(function(P,R,L,j){const F=[];F.push(xm(L.coordinates[0]),Th(L.coordinates[1]),0),P.push(Ba(R,"Point",F,j))})(d,w,l.geometry,l.properties);case"MultiPoint":return void(function(P,R,L,j){const F=[];for(const te of L.coordinates)F.push(xm(te[0]),Th(te[1]),0);P.push(Ba(R,"MultiPoint",F,j))})(d,w,l.geometry,l.properties);case"LineString":return void(function(P,R,L,j,F){const te={points:[]};Fb(L.coordinates,te,j,!1),P.push(Ba(R,"LineString",te,F))})(d,w,l.geometry,k,l.properties);case"MultiLineString":return void(function(P,R,L,j,F,te){if(F.lineMetrics)for(const G of L.coordinates){const oe={points:[]};Fb(G,oe,j,!1),P.push(Ba(R,"LineString",oe,te))}else{const G=[];zb(L.coordinates,G,j,!1),P.push(Ba(R,"MultiLineString",G,te))}})(d,w,l.geometry,k,c,l.properties);case"Polygon":return void(function(P,R,L,j,F){const te=[];zb(L.coordinates,te,j,!0),P.push(Ba(R,"Polygon",te,F))})(d,w,l.geometry,k,l.properties);case"MultiPolygon":return void(function(P,R,L,j,F){const te=[];for(const G of L.coordinates){const oe=[];zb(G,oe,j,!0),te.push(oe)}P.push(Ba(R,"MultiPolygon",te,F))})(d,w,l.geometry,k,l.properties);default:throw new Error("Input data is not a valid GeoJSON object.")}}function Fb(d,l,c,p){let g,w,k=0;for(let R=0;R<d.length;R++){const L=xm(d[R][0]),j=Th(d[R][1]);l.points.push(L,j,0),R>0&&(k+=p?(g*j-L*w)/2:Math.sqrt(Math.pow(L-g,2)+Math.pow(j-w,2))),g=L,w=j}const P=l.points.length-3;l.points[2]=1,c>0&&Ob(l.points,0,P,c),l.points[P+2]=1,Rb(l),l.size=Math.abs(k),l.start=0,l.end=l.size}function zb(d,l,c,p){for(let g=0;g<d.length;g++){const w={points:[]};Fb(d[g],w,c,p),l.push(w)}}function xm(d){return d/360+.5}function Th(d){const l=Math.sin(d*Math.PI/180),c=.5-.25*Math.log((1+l)/(1-l))/Math.PI;return c<0?0:c>1?1:c}function G0(d){const l={type:"Feature",geometry:Wk(d),properties:d.tags};return d.id!=null&&(l.id=d.id),l}function Wk(d){const{type:l,geometry:c}=d;switch(l){case"Point":return{type:l,coordinates:m3(c[0],c[1])};case"MultiPoint":return{type:l,coordinates:rv(c)};case"LineString":return{type:l,coordinates:rv(c.points)};case"MultiLineString":case"Polygon":return{type:l,coordinates:c.map((p=>rv(p.points)))};case"MultiPolygon":return{type:l,coordinates:c.map((p=>p.map((g=>rv(g.points)))))}}}function rv(d){const l=[];for(let c=0;c<d.length;c+=3)l.push(m3(d[c],d[c+1]));return l}function m3(d,l){return[g3(d),Y0(l)]}function g3(d){return 360*(d-.5)}function Y0(d){const l=(180-360*d)*Math.PI/180;return 360*Math.atan(Math.exp(l))/Math.PI-90}var vo;function nd(d,l,c,p,g,w,k,P){if(p/=l,w>=(c/=l)&&k<p)return d;if(k<c||w>=p)return null;const R=[];for(const L of d){const j=g===vo.X?L.minX:L.minY,F=g===vo.X?L.maxX:L.maxY;if(j>=c&&F<p)R.push(L);else if(!(F<c||j>=p))switch(L.type){case"Point":case"MultiPoint":Gk(L,R,c,p,g);continue;case"LineString":Yk(L,R,c,p,g,P);continue;case"MultiLineString":Zk(L,R,c,p,g);continue;case"Polygon":Kk(L,R,c,p,g);continue;case"MultiPolygon":Xk(L,R,c,p,g);continue}}return R.length?R:null}function Gk(d,l,c,p,g){const w=[];(function(k,P,R,L,j){for(let F=0;F<k.length;F+=3){const te=k[F+j];te>=R&&te<=L&&wm(P,k[F],k[F+1],k[F+2])}})(d.geometry,w,c,p,g),w.length&&l.push(Ba(d.id,w.length===3?"Point":"MultiPoint",w,d.tags))}function Yk(d,l,c,p,g,w){const k=[];
24if(y3(d.geometry,k,c,p,g,!1,w.lineMetrics),k.length)if(w.lineMetrics)for(const P of k)l.push(Ba(d.id,"LineString",P,d.tags));else l.push(k.length>1?Ba(d.id,"MultiLineString",k,d.tags):Ba(d.id,"LineString",k[0],d.tags))}function Zk(d,l,c,p,g){const w=[];Nb(d.geometry,w,c,p,g,!1),w.length&&l.push(w.length!==1?Ba(d.id,"MultiLineString",w,d.tags):Ba(d.id,"LineString",w[0],d.tags))}function Kk(d,l,c,p,g){const w=[];Nb(d.geometry,w,c,p,g,!0),w.length&&l.push(Ba(d.id,"Polygon",w,d.tags))}function Xk(d,l,c,p,g){const w=[];for(const k of d.geometry){const P=[];Nb(k,P,c,p,g,!0),P.length&&w.push(P)}w.length&&l.push(Ba(d.id,"MultiPolygon",w,d.tags))}function y3(d,l,c,p,g,w,k){let P=v3(d);const R=g===vo.X?iv:Jk;let L,j,F=d.start;for(let ve=0;ve<d.points.length-3;ve+=3){const _e=d.points[ve],Me=d.points[ve+1],Te=d.points[ve+2],Ae=d.points[ve+3],ze=d.points[ve+4],We=g===vo.X?_e:Me,dt=g===vo.X?Ae:ze;let mt=!1;k&&(L=Math.sqrt(Math.pow(_e-Ae,2)+Math.pow(Me-ze,2))),We<c?dt>c&&(j=R(P,_e,Me,Ae,ze,c),k&&(P.start=F+L*j)):We>p?dt<p&&(j=R(P,_e,Me,Ae,ze,p),k&&(P.start=F+L*j)):wm(P.points,_e,Me,Te),dt<c&&We>=c&&(j=R(P,_e,Me,Ae,ze,c),mt=!0),dt>p&&We<=p&&(j=R(P,_e,Me,Ae,ze,p),mt=!0),!w&&mt&&(k&&(P.end=F+L*j),l.push(P),P=v3(d)),k&&(F+=L)}let te=d.points.length-3;const G=d.points[te],oe=d.points[te+1],ue=g===vo.X?G:oe;ue>=c&&ue<=p&&wm(P.points,G,oe,d.points[te+2]),te=P.points.length-3,w&&te>=3&&(P.points[te]!==P.points[0]||P.points[te+1]!==P.points[1])&&wm(P.points,P.points[0],P.points[1],P.points[2]),P.points.length&&(Rb(P),l.push(P))}function v3(d){return{points:[],size:d.size,start:d.start,end:d.end}}function Nb(d,l,c,p,g,w){for(const k of d)y3(k,l,c,p,g,w,!1)}function wm(d,l,c,p){d.push(l,c,p)}function iv(d,l,c,p,g,w){const k=(w-l)/(p-l);return wm(d.points,w,c+(g-c)*k,1),k}function Jk(d,l,c,p,g,w){const k=(w-c)/(g-c);return wm(d.points,l+(p-l)*k,w,1),k}function av(d,l){const c=l.buffer/l.extent;let p=d;const g=nd(d,1,-1-c,c,vo.X,-1,2,l),w=nd(d,1,1-c,2+c,vo.X,-1,2,l);return(g||w)&&(p=nd(d,1,-c,1+c,vo.X,-1,2,l)||[],g&&(p=Vb(g,1).concat(p)),w&&(p=p.concat(Vb(w,-1)))),p}function Vb(d,l){const c=[];for(const p of d)switch(p.type){case"Point":case"MultiPoint":{const g=qb(p.geometry,l);c.push(Ba(p.id,p.type,g,p.tags));continue}case"LineString":{const g=ov(p.geometry,l);c.push(Ba(p.id,p.type,g,p.tags));continue}case"MultiLineString":case"Polygon":{const g=[];for(const w of p.geometry)g.push(ov(w,l));c.push(Ba(p.id,p.type,g,p.tags));continue}case"MultiPolygon":{const g=[];for(const w of p.geometry){const k=[];for(const P of w)k.push(ov(P,l));g.push(k)}c.push(Ba(p.id,p.type,g,p.tags));continue}}return c}function qb(d,l){const c=[];for(let p=0;p<d.length;p+=3)c.push(d[p]+l,d[p+1],d[p+2]);return c}function ov(d,l){const c={points:[],size:d.size};d.start!==void 0&&(c.start=d.start,c.end=d.end);for(let p=0;p<d.points.length;p+=3)c.points.push(d.points[p]+l,d.points[p+1],d.points[p+2]);return Rb(c),c}function _3(d,l,c){const p=!!l.newGeometry,g=l.removeAllProperties||l.removeProperties?.length>0||l.addOrUpdateProperties?.length>0;if(p){const w=d[0];let k=Bb({type:"FeatureCollection",features:[{type:"Feature",id:w.id,geometry:l.newGeometry,properties:g?jb(w.tags,l):w.tags}]},c);return k=av(k,c),k}if(g){const w=[];for(const k of d){const P={...k};P.tags=jb(P.tags,l),w.push(P)}return w}return d}function jb(d,l){if(l.removeAllProperties)return{};const c={...d||{}};if(l.removeProperties)for(const p of l.removeProperties)delete c[p];if(l.addOrUpdateProperties)for(const{key:p,value:g}of l.addOrUpdateProperties)c[p]=g;return c}(function(d){d[d.X=0]="X",d[d.Y=1]="Y"})(vo||(vo={}));const sv={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:d=>d};class Qk{constructor(l){this.options=Object.assign(Object.create(sv),l),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[],this.points=[]}load(l){const c=[];for(const p of l){if(!p.geometry)continue;const[g,w]=p.geometry.coordinates,[k,P]=[xm(g),Th(w)];c.push({id:p.id,type:"Point",geometry:[k,P],tags:p.properties})}this.createIndex(c)}initialize(l){const c=[];for(const p of l)p.type==="Point"&&c.push(p);this.createIndex(c)}updateIndex(l,c,p){this.options=Object.assign(Object.create(sv),p.clusterOptions),this.initialize(l)}createIndex(l){const{log:c,minZoom:p,maxZoom:g}=this.options,w=`prepare ${l.length} points`;this.points=l;const k=[];for(let R=0;R<l.length;R++){const L=l[R];if(!L?.geometry)continue;let[j,F]=L.geometry;j=Math.fround(j),F=Math.fround(F),k.push(j,F,1/0,R,-1,1),this.options.reduce&&k.push(0)}let P=this.trees[g+1]=this.createTree(k);for(let R=g;R>=p;R--){const L=Date.now();P=this.trees[R]=this.createTree(this.cluster(P,R))}}getClusters(l,c){return this.getClustersInternal(l,c).map((p=>G0(p)))}getClustersInternal(l,c){let p=((l[0]+180)%360+360)%360-180;const g=Math.max(-90,Math.min(90,l[1]));let w=l[2]===180?180:((l[2]+180)%360+360)%360-180;const k=Math.max(-90,Math.min(90,l[3]));if(l[2]-l[0]>=360)p=-180,w=180;else if(p>w){const F=this.getClustersInternal([p,g,180,k],c),te=this.getClustersInternal([-180,g,w,k],c);return F.concat(te)}const P=this.trees[this.limitZoom(c)],R=P.range(xm(p),Th(k),xm(w),Th(g)),L=P.flatData,j=[];for(const F of R){const te=this.stride*F;j.push(L[te+5]>1?eE(L,te,this.clusterProps):this.points[L[te+3]])}return j}getChildren(l){const c=this.getOriginId(l),p=this.getOriginZoom(l),g=new Error("No cluster with the specified id: "+l),w=this.trees[p];if(!w)throw g;const k=w.flatData;if(c*this.stride>=k.length)throw g;const P=this.options.radius/(this.options.extent*Math.pow(2,p-1)),R=w.within(k[c*this.stride],k[c*this.stride+1],P),L=[];for(const j of R){const F=j*this.stride;k[F+4]===l&&L.push(k[F+5]>1?tE(k,F,this.clusterProps):G0(this.points[k[F+3]]))}if(L.length===0)throw g;return L}getLeaves(l,c,p){const g=[];return this.appendLeaves(g,l,c=c||10,p=p||0,0),g}getTile(l,c,p){const g=this.trees[this.limitZoom(l)];if(!g)return null;const w=Math.pow(2,l),{extent:k,radius:P}=this.options,R=P/k,L=(p-R)/w,j=(p+1+R)/w,F={transformed:!0,features:[],source:null,x:c,y:p,z:l};return this.addTileFeatures(g.range((c-R)/w,L,(c+1+R)/w,j),g.flatData,c,p,w,F),c===0&&this.addTileFeatures(g.range(1-R/w,L,1,j),g.flatData,w,p,w,F),c===w-1&&this.addTileFeatures(g.range(0,L,R/w,j),g.flatData,-1,p,w,F),F}getClusterExpansionZoom(l){return this.getOriginZoom(l)}appendLeaves(l,c,p,g,w){const k=this.getChildren(c);for(const P of k){const R=P.properties;if(R?.cluster?w+R.point_count<=g?w+=R.point_count:w=this.appendLeaves(l,R.cluster_id,p,g,w):w<g?w++:l.push(P),l.length===p)break}return w}createTree(l){const c=new tv(l.length/this.stride|0,this.options.nodeSize,Float32Array);for(let p=0;p<l.length;p+=this.stride)c.add(l[p],l[p+1]);return c.finish(),c.flatData=l,c.data=null,c}addTileFeatures(l,c,p,g,w,k){for(const P of l){const R=P*this.stride,L=c[R+5]>1;let j,F,te;if(L)j=Sm(c,R,this.clusterProps),F=c[R],te=c[R+1];else{const ue=this.points[c[R+3]];j=ue.tags,[F,te]=ue.geometry}const G={type:1,geometry:[[Math.round(this.options.extent*(F*w-p)),Math.round(this.options.extent*(te*w-g))]],tags:j};let oe;oe=L||this.options.generateId?c[R+3]:this.points[c[R+3]].id,oe!==void 0&&(G.id=oe),k.features.push(G)}}limitZoom(l){return Math.max(this.options.minZoom,Math.min(Math.floor(+l),this.options.maxZoom+1))}cluster(l,c){const{radius:p,extent:g,reduce:w,minPoints:k}=this.options,P=p/(g*Math.pow(2,c)),R=l.flatData,L=[],j=this.stride;for(let F=0;F<R.length;F+=j){if(R[F+2]<=c)continue;R[F+2]=c;const te=R[F],G=R[F+1],oe=l.within(R[F],R[F+1],P),ue=R[F+5];let ve=ue;for(const _e of oe){const Me=_e*j;R[Me+2]>c&&(ve+=R[Me+5])}if(ve>ue&&ve>=k){let _e,Me=te*ue,Te=G*ue,Ae=-1;const ze=(F/j<<5)+(c+1)+this.points.length;for(const We of oe){const dt=We*j;if(R[dt+2]<=c)continue;R[dt+2]=c;const mt=R[dt+5];
24Me+=R[dt]*mt,Te+=R[dt+1]*mt,R[dt+4]=ze,w&&(_e||(_e=this.map(R,F,!0),Ae=this.clusterProps.length,this.clusterProps.push(_e)),w(_e,this.map(R,dt)))}R[F+4]=ze,L.push(Me/ve,Te/ve,1/0,ze,-1,ve),w&&L.push(Ae)}else{for(let _e=0;_e<j;_e++)L.push(R[F+_e]);if(ve>1)for(const _e of oe){const Me=_e*j;if(!(R[Me+2]<=c)){R[Me+2]=c;for(let Te=0;Te<j;Te++)L.push(R[Me+Te])}}}}return L}getOriginId(l){return l-this.points.length>>5}getOriginZoom(l){return(l-this.points.length)%32}map(l,c,p){if(l[c+5]>1){const k=this.clusterProps[l[c+6]];return p?Object.assign({},k):k}const g=this.points[l[c+3]].tags,w=this.options.map(g);return p&&w===g?Object.assign({},w):w}}function eE(d,l,c){return{id:d[l+3],type:"Point",tags:Sm(d,l,c),geometry:[d[l],d[l+1]]}}function tE(d,l,c){return{type:"Feature",id:d[l+3],properties:Sm(d,l,c),geometry:{type:"Point",coordinates:[g3(d[l]),Y0(d[l+1])]}}}function Sm(d,l,c){const p=d[l+5],g=p>=1e4?`${Math.round(p/1e3)}k`:p>=1e3?Math.round(p/100)/10+"k":p,w=d[l+6],k=w===-1?{}:Object.assign({},c[w]);return Object.assign(k,{cluster:!0,cluster_id:d[l+3],point_count:p,point_count_abbreviated:g})}const Cm="geojsonvt_clip_start",Ub="geojsonvt_clip_end";function b3(d,l,c,p,g){const w=l===g.maxZoom?0:g.tolerance/((1<<l)*g.extent),k={transformed:!1,features:[],source:null,x:c,y:p,z:l,minX:2,minY:1,maxX:-1,maxY:0,numPoints:0,numSimplified:0,numFeatures:d.length};for(const P of d)Hb(k,P,w,g);return k}function Hb(d,l,c,p){switch(d.minX=Math.min(d.minX,l.minX),d.minY=Math.min(d.minY,l.minY),d.maxX=Math.max(d.maxX,l.maxX),d.maxY=Math.max(d.maxY,l.maxY),l.type){case"Point":case"MultiPoint":return void(function(g,w){const k=[];for(let R=0;R<w.geometry.length;R+=3)k.push(w.geometry[R],w.geometry[R+1]),g.numPoints++,g.numSimplified++;if(!k.length)return;const P={type:1,tags:w.tags||null,geometry:k};w.id!==null&&(P.id=w.id),g.features.push(P)})(d,l);case"LineString":return void(function(g,w,k,P){const R=[];if(lv(R,w.geometry,g,k,!1,!1),!R.length)return;let L=w.tags||null;if(P.lineMetrics){L={};for(const F in w.tags)L[F]=w.tags[F];L[Cm]=w.geometry.start/w.geometry.size,L[Ub]=w.geometry.end/w.geometry.size}const j={type:2,tags:L,geometry:R};w.id!==null&&(j.id=w.id),g.features.push(j)})(d,l,c,p);case"MultiLineString":case"Polygon":return void(function(g,w,k){const P=[];for(let L=0;L<w.geometry.length;L++)lv(P,w.geometry[L],g,k,w.type==="Polygon",L===0);if(!P.length)return;const R={type:w.type==="Polygon"?3:2,tags:w.tags||null,geometry:P};w.id!==null&&(R.id=w.id),g.features.push(R)})(d,l,c);case"MultiPolygon":return void(function(g,w,k){const P=[];for(let L=0;L<w.geometry.length;L++){const j=w.geometry[L];for(let F=0;F<j.length;F++)lv(P,j[F],g,k,!0,F===0)}if(!P.length)return;const R={type:3,tags:w.tags||null,geometry:P};w.id!==null&&(R.id=w.id),g.features.push(R)})(d,l,c)}}function lv(d,l,c,p,g,w){const k=p*p;if(p>0&&l.size<(g?k:p))return void(c.numPoints+=l.points.length/3);const P=[];for(let R=0;R<l.points.length;R+=3)(p===0||l.points[R+2]>k)&&(c.numSimplified++,P.push(l.points[R],l.points[R+1])),c.numPoints++;g&&(function(R,L){let j=0;for(let F=0,te=R.length,G=te-2;F<te;G=F,F+=2)j+=(R[F]-R[G])*(R[F+1]+R[G+1]);if(j>0===L)for(let F=0,te=R.length;F<te/2;F+=2){const G=R[F],oe=R[F+1];R[F]=R[te-2-F],R[F+1]=R[te-1-F],R[te-2-F]=G,R[te-1-F]=oe}})(P,w),d.push(P)}function x3(d,l){if(d.transformed)return d;const c=1<<d.z,p=d.x,g=d.y;for(const w of d.features)w.type===1?nE(w,l,c,p,g):rE(w,l,c,p,g);return d.transformed=!0,d}function nE(d,l,c,p,g){const w=d,k=d.geometry,P=[];for(let R=0;R<k.length;R+=2)P.push(w3(k[R],k[R+1],l,c,p,g));return w.geometry=P,w}function rE(d,l,c,p,g){const w=d,k=d.geometry,P=[];for(const R of k){const L=[];for(let j=0;j<R.length;j+=2)L.push(w3(R[j],R[j+1],l,c,p,g));P.push(L)}return w.geometry=P,w}function w3(d,l,c,p,g,w){return[Math.round(c*(d*p-g)),Math.round(c*(l*p-w))]}class iE{constructor(l){this.options=l,this.total=0,this.stats={},this.tiles={},this.tileCoords=[],this.stats={},this.total=0}initialize(l){this.splitTile(l,0,0,0),this.options.debug&&l.length}updateIndex(l,c,p){p.debug>1,this.invalidateTiles(c),p.debug>1;const[g,w,k]=[0,0,0],P=b3(l,g,w,k,p);P.source=l;const R=uv(g,w,k);if(this.tiles[R]=P,this.tileCoords.push({z:g,x:w,y:k,id:R}),p.debug){const L=`z${g}`;this.stats[L]=(this.stats[L]||0)+1,this.total++}}getClusterExpansionZoom(l){return null}getChildren(l){return null}getLeaves(l,c,p){return null}getTile(l,c,p){const{extent:g,debug:w}=this.options,k=1<<l,P=uv(l,c=c+k&k-1,p);if(this.tiles[P])return x3(this.tiles[P],g);w>1;let R,L=l,j=c,F=p;for(;!R&&L>0;)L--,j>>=1,F>>=1,R=this.tiles[uv(L,j,F)];return R?.source?(w>1,this.splitTile(R.source,L,j,F,l,c,p),w>1,this.tiles[P]?x3(this.tiles[P],g):null):null}splitTile(l,c,p,g,w,k,P){const R=[l,c,p,g],L=this.options,j=L.debug;for(;R.length;){g=R.pop(),p=R.pop(),c=R.pop(),l=R.pop();const F=1<<c,te=uv(c,p,g);let G=this.tiles[te];if(!G&&(j>1,G=this.tiles[te]=b3(l,c,p,g,L),this.tileCoords.push({z:c,x:p,y:g,id:te}),j)){j>1;const mt=`z${c}`;this.stats[mt]=(this.stats[mt]||0)+1,this.total++}if(G.source=l,w==null){if(c===L.indexMaxZoom||G.numPoints<=L.indexMaxPoints)continue}else{if(c===L.maxZoom||c===w)continue;if(w!=null){const mt=w-c;if(p!==k>>mt||g!==P>>mt)continue}}if(G.source=null,!l.length)continue;j>1;const oe=.5*L.buffer/L.extent,ue=.5-oe,ve=.5+oe,_e=1+oe;let Me=null,Te=null,Ae=null,ze=null;const We=nd(l,F,p-oe,p+ve,vo.X,G.minX,G.maxX,L),dt=nd(l,F,p+ue,p+_e,vo.X,G.minX,G.maxX,L);
24We&&(Me=nd(We,F,g-oe,g+ve,vo.Y,G.minY,G.maxY,L),Te=nd(We,F,g+ue,g+_e,vo.Y,G.minY,G.maxY,L)),dt&&(Ae=nd(dt,F,g-oe,g+ve,vo.Y,G.minY,G.maxY,L),ze=nd(dt,F,g+ue,g+_e,vo.Y,G.minY,G.maxY,L)),j>1,R.push(Me||[],c+1,2*p,2*g),R.push(Te||[],c+1,2*p,2*g+1),R.push(Ae||[],c+1,2*p+1,2*g),R.push(ze||[],c+1,2*p+1,2*g+1)}}invalidateTiles(l){if(!l.length)return;const c=this.options,{debug:p}=c;let g=1/0,w=-1/0,k=1/0,P=-1/0;for(const j of l)g=Math.min(g,j.minX),w=Math.max(w,j.maxX),k=Math.min(k,j.minY),P=Math.max(P,j.maxY);const R=c.buffer/c.extent,L=new Set;for(const j in this.tiles){const F=this.tiles[j],te=1<<F.z,G=(F.x-R)/te,oe=(F.x+1+R)/te,ue=(F.y-R)/te,ve=(F.y+1+R)/te;if(w<G||g>=oe||P<ue||k>=ve)continue;let _e=!1;for(const Me of l)if(Me.maxX>=G&&Me.minX<oe&&Me.maxY>=ue&&Me.minY<ve){_e=!0;break}if(_e){if(p){p>1;const Me=`z${F.z}`;this.stats[Me]=(this.stats[Me]||0)-1,this.total--}delete this.tiles[j],L.add(j)}}L.size&&(this.tileCoords=this.tileCoords.filter((j=>!L.has(j.id))))}}function uv(d,l,c){return 32*((1<<d)*c+l)+d}const aE={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,updateable:!1,cluster:!1,clusterOptions:sv,debug:0},oE=oi([{name:"a_pos_normal",components:2,type:"Int16"},{name:"a_data",components:4,type:"Uint8"}],4),{members:sE}=oE,lE=oi([{name:"a_uv_x",components:1,type:"Float32"},{name:"a_split_index",components:1,type:"Float32"}]),{members:uE}=lE,cE=Math.cos(Math.PI/180*37.5),Cl=Math.pow(2,14)/.5;class Wb{constructor(l){this.zoom=l.zoom,this.overscaling=l.overscaling,this.layers=l.layers,this.layerIds=this.layers.map((c=>c.id)),this.index=l.index,this.hasDependencies=!1,this.patternFeatures=[],this.lineClipsArray=[],this.gradients={};for(const c of this.layers)this.gradients[c.id]={};this.layoutVertexArray=new lt,this.layoutVertexArray2=new Je,this.indexArray=new Xt,this.programConfigurations=new Sl(l.layers,l.zoom),this.segments=new gn,this.maxLineLength=0,this.stateDependentLayerIds=this.layers.filter((c=>c.isStateDependent())).map((c=>c.id))}populate(l,c,p){this.hasDependencies=Z1("line",this.layers,c)||this.hasLineDasharray(this.layers);const g=this.layers[0].layout.get("line-sort-key"),w=!g.isConstant(),k=[];
vendor: 9,508 bytes, line 24
24for(const{feature:P,id:R,index:L,sourceLayerIndex:j}of l){const F=this.layers[0]._featureFilter.needGeometry,te=eo(P,F);if(!this.layers[0]._featureFilter.filter(new or(this.zoom),te,p))continue;const G=w?g.evaluate(te,{},p):void 0,oe={id:R,properties:P.properties,type:P.type,sourceLayerIndex:j,index:L,geometry:F?te.geometry:Wu(P),patterns:{},dashes:{},sortKey:G};k.push(oe)}w&&k.sort(((P,R)=>P.sortKey-R.sortKey));for(const P of k){const{geometry:R,index:L,sourceLayerIndex:j}=P;this.hasDependencies?(Z1("line",this.layers,c)?Eb("line",this.layers,P,{zoom:this.zoom},c):this.hasLineDasharray(this.layers)&&this.addLineDashDependencies(this.layers,P,this.zoom,c),this.patternFeatures.push(P)):this.addFeature(P,R,L,p,{},{},c.subdivisionGranularity),c.featureIndex.insert(l[L].feature,R,L,j,this.index)}}update(l,c,p,g){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(l,c,this.stateDependentLayers,{imagePositions:p,dashPositions:g})}addFeatures(l,c,p,g){for(const w of this.patternFeatures)this.addFeature(w,w.geometry,w.index,c,p,g,l.subdivisionGranularity)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(l){this.uploaded||(this.layoutVertexArray2.length!==0&&(this.layoutVertexBuffer2=l.createVertexBuffer(this.layoutVertexArray2,uE)),this.layoutVertexBuffer=l.createVertexBuffer(this.layoutVertexArray,sE),this.indexBuffer=l.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(l),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}lineFeatureClips(l){if(l.properties&&Object.hasOwn(l.properties,Cm)&&Object.hasOwn(l.properties,Ub))return{start:+l.properties[Cm],end:+l.properties[Ub]}}addFeature(l,c,p,g,w,k,P){const R=this.layers[0].layout,L=R.get("line-join").evaluate(l,{}),j=R.get("line-cap").evaluate(l,{}),F=R.get("line-miter-limit").evaluate(l,{}),te=R.get("line-round-limit").evaluate(l,{});this.lineClips=this.lineFeatureClips(l);for(const G of c)this.addLine(G,l,L,j,F,te,g,P);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,l,p,{imagePositions:w,dashPositions:k,canonical:g})}addLine(l,c,p,g,w,k,P,R){if(this.distance=0,this.scaledDistance=0,this.totalDistance=0,l=Ch(l,P?R.line.getGranularityForZoomLevel(P.z):1),this.lineClips){this.lineClipsArray.push(this.lineClips);for(let Te=0;Te<l.length-1;Te++)this.totalDistance+=l[Te].dist(l[Te+1]);this.updateScaledDistance(),this.maxLineLength=Math.max(this.maxLineLength,this.totalDistance)}const L=q0.types[c.type]==="Polygon";let j=l.length;for(;j>=2&&l[j-1].equals(l[j-2]);)j--;let F=0;for(;F<j-1&&l[F].equals(l[F+1]);)F++;if(j<(L?3:2))return;p==="bevel"&&(w=1.05);const te=this.overscaling<=16?122880/(512*this.overscaling):0,G=this.segments.prepareSegment(10*j,this.layoutVertexArray,this.indexArray);let oe,ue,ve,_e,Me;this.e1=this.e2=-1,L&&(oe=l[j-2],Me=l[F].sub(oe)._unit()._perp());for(let Te=F;Te<j;Te++){if(ve=Te===j-1?L?l[F+1]:void 0:l[Te+1],ve&&l[Te].equals(ve))continue;Me&&(_e=Me),oe&&(ue=oe),oe=l[Te],Me=ve?ve.sub(oe)._unit()._perp():_e,_e||(_e=Me);let Ae=_e.add(Me);Ae.x===0&&Ae.y===0||Ae._unit();const ze=_e.x*Me.x+_e.y*Me.y,We=Ae.x*Me.x+Ae.y*Me.y,dt=We!==0?1/We:1/0,mt=2*Math.sqrt(2-2*We),Lt=We<cE&&ue&&ve,Et=_e.x*Me.y-_e.y*Me.x>0;if(Lt&&Te>F){const Bt=oe.dist(ue);if(Bt>2*te){const Mt=oe.sub(oe.sub(ue)._mult(te/Bt)._round());this.updateDistance(ue,Mt),this.addCurrentVertex(Mt,_e,0,0,G),ue=Mt}}const jt=ue&&ve;let Ut=jt?p:L?"butt":g;if(jt&&Ut==="round"&&(dt<k?Ut="miter":dt<=2&&(Ut="fakeround")),Ut==="miter"&&dt>w&&(Ut="bevel"),Ut==="bevel"&&(dt>2&&(Ut="flipbevel"),dt<w&&(Ut="miter")),ue&&this.updateDistance(ue,oe),Ut==="miter")Ae._mult(dt),this.addCurrentVertex(oe,Ae,0,0,G);else if(Ut==="flipbevel"){if(dt>100)Ae=Me.mult(-1);else{const Bt=dt*_e.add(Me).mag()/_e.sub(Me).mag();Ae._perp()._mult(Bt*(Et?-1:1))}this.addCurrentVertex(oe,Ae,0,0,G),this.addCurrentVertex(oe,Ae.mult(-1),0,0,G)}else if(Ut==="bevel"||Ut==="fakeround"){const Bt=-Math.sqrt(dt*dt-1),Mt=Et?Bt:0,on=Et?0:Bt;if(ue&&this.addCurrentVertex(oe,_e,Mt,on,G),Ut==="fakeround"){const yn=Math.round(180*mt/Math.PI/20);for(let hn=1;hn<yn;hn++){let cn=hn/yn;if(cn!==.5){const Rr=cn-.5;cn+=cn*Rr*(cn-1)*((1.0904+ze*(ze*(3.55645-1.43519*ze)-3.2452))*Rr*Rr+(.848013+ze*(.215638*ze-1.06021)))}const qn=Me.sub(_e)._mult(cn)._add(_e)._unit()._mult(Et?-1:1);this.addHalfVertex(oe,qn.x,qn.y,!1,Et,0,G)}}ve&&this.addCurrentVertex(oe,Me,-Mt,-on,G)}else if(Ut==="butt")this.addCurrentVertex(oe,Ae,0,0,G);else if(Ut==="square"){const Bt=ue?1:-1;this.addCurrentVertex(oe,Ae,Bt,Bt,G)}else Ut==="round"&&(ue&&(this.addCurrentVertex(oe,_e,0,0,G),this.addCurrentVertex(oe,_e,1,1,G,!0)),ve&&(this.addCurrentVertex(oe,Me,-1,-1,G,!0),this.addCurrentVertex(oe,Me,0,0,G)));if(Lt&&Te<j-1){const Bt=oe.dist(ve);if(Bt>2*te){const Mt=oe.add(ve.sub(oe)._mult(te/Bt)._round());this.updateDistance(oe,Mt),this.addCurrentVertex(Mt,Me,0,0,G),oe=Mt}}}}addCurrentVertex(l,c,p,g,w,k=!1){const P=c.y*g-c.x,R=-c.y-c.x*g;this.addHalfVertex(l,c.x+c.y*p,c.y-c.x*p,k,!1,p,w),this.addHalfVertex(l,P,R,k,!0,-g,w),this.distance>Cl/2&&this.totalDistance===0&&(this.distance=0,this.updateScaledDistance(),this.addCurrentVertex(l,c,p,g,w,k))}addHalfVertex({x:l,y:c},p,g,w,k,P,R){const L=.5*(this.lineClips?this.scaledDistance*(Cl-1):this.scaledDistance);this.layoutVertexArray.emplaceBack((l<<1)+(w?1:0),(c<<1)+(k?1:0),Math.round(63*p)+128,Math.round(63*g)+128,1+(P===0?0:P<0?-1:1)|(63&L)<<2,L>>6),this.lineClips&&this.layoutVertexArray2.emplaceBack((this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start),this.lineClipsArray.length);const j=R.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,j,this.e2),R.primitiveLength++),k?this.e2=j:this.e1=j}updateScaledDistance(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance}updateDistance(l,c){this.distance+=l.dist(c),this.updateScaledDistance()}hasLineDasharray(l){for(const c of l){const p=c.paint.get("line-dasharray");if(p&&!p.isConstant())return!0}return!1}addLineDashDependencies(l,c,p,g){for(const w of l){const k=w.paint.get("line-dasharray");if(!k||k.value.kind==="constant")continue;const P=w.layout.get("line-cap").evaluate(c,{})==="round",R={dasharray:k.value.evaluate({zoom:p-1},c,{}),round:P},L={dasharray:k.value.evaluate({zoom:p},c,{}),round:P},j={dasharray:k.value.evaluate({zoom:p+1},c,{}),round:P},F=`${R.dasharray.join(",")},${R.round}`,te=`${L.dasharray.join(",")},${L.round}`,G=`${j.dasharray.join(",")},${j.round}`;g.dashDependencies[F]=R,g.dashDependencies[te]=L,g.dashDependencies[G]=j,c.dashes[w.id]={min:F,mid:te,max:G}}}}let S3,ef;bn("LineBucket",Wb,{omit:["layers","patternFeatures"]});var pr={get paint(){return ef=ef||new Xa({"line-opacity":new Rn(Ft.paint_line["line-opacity"]),"line-color":new Rn(Ft.paint_line["line-color"]),"line-translate":new Pn(Ft.paint_line["line-translate"]),"line-translate-anchor":new Pn(Ft.paint_line["line-translate-anchor"]),"line-width":new Rn(Ft.paint_line["line-width"]),"line-gap-width":new Rn(Ft.paint_line["line-gap-width"]),"line-offset":new Rn(Ft.paint_line["line-offset"]),"line-blur":new Rn(Ft.paint_line["line-blur"]),"line-dasharray":new xl(Ft.paint_line["line-dasharray"]),"line-pattern":new xl(Ft.paint_line["line-pattern"]),"line-gradient":new wl(Ft.paint_line["line-gradient"])})},get layout(){return S3=S3||new Xa({"line-cap":new Rn(Ft.layout_line["line-cap"]),"line-join":new Rn(Ft.layout_line["line-join"]),"line-miter-limit":new Rn(Ft.layout_line["line-miter-limit"]),"line-round-limit":new Rn(Ft.layout_line["line-round-limit"]),"line-sort-key":new Rn(Ft.layout_line["line-sort-key"])})}};class dE extends Rn{possiblyEvaluate(l,c){return c=new or(Math.floor(c.zoom),{now:c.now,fadeDuration:c.fadeDuration,zoomHistory:c.zoomHistory,transition:c.transition}),super.possiblyEvaluate(l,c)}evaluate(l,c,p,g){return c=ut({},c,{zoom:Math.floor(c.zoom)}),super.evaluate(l,c,p,g)}}let _o;class pa extends Ja{constructor(l,c){super(l,pr,c),this.gradientVersion=0,_o||(_o=new dE(pr.paint.properties["line-width"].specification),_o.useIntegerZoom=!0)}_handleSpecialPaintPropertyUpdate(l){if(l==="line-gradient"){const c=this.gradientExpression();this.stepInterpolant=!!(function(p){return p._styleExpression!==void 0})(c)&&c._styleExpression.expression instanceof Mc,this.gradientVersion=(this.gradientVersion+1)%Number.MAX_SAFE_INTEGER}}gradientExpression(){return this._transitionablePaint._values["line-gradient"].value.expression}recalculate(l,c){super.recalculate(l,c),this.paint._values["line-floorwidth"]=_o.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,l)}createBucket(l){return new Wb(l)}queryRadius(l){const c=l,p=C3(hm("line-width",this,c),hm("line-gap-width",this,c)),g=hm("line-offset",this,c);return p/2+Math.abs(g)+L0(this.paint.get("line-translate"))}queryIntersectsFeature({queryGeometry:l,feature:c,featureState:p,geometry:g,transform:w,pixelsToTileUnits:k}){const P=W1(l,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),-w.bearingInRadians,k),R=k/2*C3(this.paint.get("line-width").evaluate(c,p),this.paint.get("line-gap-width").evaluate(c,p)),L=this.paint.get("line-offset").evaluate(c,p);return L&&(g=(function(j,F){const te=[];for(const G of j){const oe=Vw(G),ue=[];for(let ve=0;
24ve<oe.length;ve++){const _e=oe[ve],Me=oe[ve-1],Te=oe[ve+1],Ae=ve===0?new f(0,0):_e.sub(Me)._unit()._perp(),ze=ve===oe.length-1?new f(0,0):Te.sub(_e)._unit()._perp(),We=Ae._add(ze)._unit(),dt=We.x*ze.x+We.y*ze.y;dt!==0&&We._mult(1/dt),ue.push(We._mult(F)._add(_e))}te.push(ue)}return te})(g,L*k)),(function(j,F,te){for(const G of F){if(j.length>=3){for(const oe of G)if(ha(j,oe))return!0}if(U1(j,G,te))return!0}return!1})(P,g,R)}isTileClipped(){return!0}}function C3(d,l){return l>0?l+2*d:d}const tf=oi([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),fE=oi([{name:"a_projected_pos",components:3,type:"Float32"}],4);oi([{name:"a_fade_opacity",components:1,type:"Uint32"}],4);const hE=oi([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"},{name:"a_box_real",components:2,type:"Int16"}]);oi([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Int16",name:"x1"},{type:"Int16",name:"y1"},{type:"Int16",name:"x2"},{type:"Int16",name:"y2"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]);const T3=oi([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4),pE=oi([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);function mE(d,l,c){const p=l.layout.get("text-transform").evaluate(c,{});return p==="uppercase"?d=d.toLocaleUpperCase():p==="lowercase"&&(d=d.toLocaleLowerCase()),bl.applyArabicShaping&&(d=bl.applyArabicShaping(d)),d}function Gb(d,l,c){for(const p of d.sections)p.text=mE(p.text,l,c);return d}oi([{name:"triangle",components:3,type:"Uint16"}]),oi([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"}]),oi([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",name:"textBoxScale"},{type:"Float32",name:"collisionCircleDiameter"},{type:"Uint16",name:"textAnchorOffsetStartIndex"},{type:"Uint16",name:"textAnchorOffsetEndIndex"}]),oi([{type:"Float32",name:"offsetX"}]),oi([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]),oi([{type:"Uint16",name:"textAnchor"},{type:"Float32",components:2,name:"textOffset"}]);var wa=24;const Xs={"!":"︕","#":"#",$:"$","%":"%","&":"&","(":"︵",")":"︶","*":"*","+":"+",",":"︐","-":"︲",".":"・","/":"/",":":"︓",";":"︔","<":"︿","=":"=",">":"﹀","?":"︖","@":"@","[":"﹇","\\":"\","]":"﹈","^":"^",_:"︳","`":"`","{":"︷","|":"―","}":"︸","~":"~","¢":"¢","£":"£","¥":"¥","¦":"¦","¬":"¬","¯":" ̄","–":"︲","—":"︱","‘":"﹃","’":"﹄","“":"﹁","”":"﹂","…":"︙","⋯":"︙","‧":"・","₩":"₩","、":"︑","。":"︒","〈":"︿","〉":"﹀","《":"︽","》":"︾","「":"﹁","」":"﹂","『":"﹃","』":"﹄","【":"︻","】":"︼","〔":"︹","〕":"︺","〖":"︗","〗":"︘","!":"︕","(":"︵",")":"︶",",":"︐","-":"︲",".":"・",":":"︓",";":"︔","<":"︿",">":"﹀","?":"︖","[":"﹇","]":"﹈","_":"︳","{":"︷","|":"―","}":"︸","⦅":"︵","⦆":"︶","。":"︒","「":"﹁","」":"﹂"},k3={10:!0,32:!0,38:!0,41:!0,43:!0,45:!0,47:!0,173:!0,183:!0,8203:!0,8208:!0,8211:!0,8231:!0},cv={40:!0};function Vi(d,l,c,p,g,w){if("fontStack"in l){const k=c[l.fontStack],P=k?.[d];return P?P.metrics.advance*l.scale+g:0}{const k=p[l.imageName];return k?k.displaySize[0]*l.scale*wa/w+g:0}}function Ji(d,l,c,p){const g=Math.pow(d-l,2);return p?d<l?g/2:2*g:g+Math.abs(c)*c}function E3(d,l,c){let p=0;
24return d===10&&(p-=1e4),c&&(p+=150),d!==40&&d!==65288||(p+=50),l!==41&&l!==65289||(p+=50),p}function P3(d,l,c,p,g,w){let k=null,P=Ji(l,c,g,w);for(const R of p){const L=Ji(l-R.x,c,g,w)+R.badness;L<=P&&(k=R,P=L)}return{index:d,x:l,priorBreak:k,badness:P}}function $3(d){return d?$3(d.priorBreak).concat(d.index):[]}class Tm{constructor(l="",c=[],p=[]){this.text=l,this.sections=c,this.sectionIndex=p,this.imageSectionID=null}static fromFeature(l,c){const p=new Tm;for(const g of l.sections)g.image?p.addImageSection(g):p.addTextSection(g,c);return p}length(){return[...this.text].length}getSection(l){return this.sections[this.sectionIndex[l]]}getSectionIndex(l){return this.sectionIndex[l]}verticalizePunctuation(){this.text=(function(l){let c="",p={premature:!0,value:void 0};const g=l[Symbol.iterator]();let w=g.next();const k=l[Symbol.iterator]();k.next();let P=k.next();for(;!w.done;)c+=!P.done&&_l(P.value.codePointAt(0))&&!Xs[P.value]||!p.premature&&_l(p.value.codePointAt(0))&&!Xs[p.value]||!Xs[w.value]?w.value:Xs[w.value],p={value:w.value,premature:!1},w=g.next(),P=k.next();return c})(this.text)}hasZeroWidthSpaces(){return this.text.includes("​")}trim(){const l=this.text.match(/^\s*/),c=l?l[0].length:0,p=this.text.match(/\S\s*$/),g=p?p[0].length-1:0;this.text=this.text.substring(c,this.text.length-g),this.sectionIndex=this.sectionIndex.slice(c,this.sectionIndex.length-g)}substring(l,c){const p=[...this.text].slice(l,c).join(""),g=this.sectionIndex.slice(l,c);return new Tm(p,this.sections,g)}toCodeUnitIndex(l){return[...this.text].slice(0,l).join("").length}toString(){return this.text}getMaxScale(){return this.sectionIndex.reduce(((l,c)=>Math.max(l,this.sections[c].scale)),0)}getMaxImageSize(l){let c=0,p=0;for(let g=0;g<this.length();g++){const w=this.getSection(g);if("imageName"in w){const k=l[w.imageName];if(!k)continue;const P=k.displaySize;c=Math.max(c,P[0]),p=Math.max(p,P[1])}}return{maxImageWidth:c,maxImageHeight:p}}addTextSection(l,c){this.text+=l.text,this.sections.push({scale:l.scale||1,verticalAlign:l.verticalAlign||"bottom",fontStack:l.fontStack||c});const p=this.sections.length-1;this.sectionIndex.push(...[...l.text].map((()=>p)))}addImageSection(l){const c=l.image?l.image.name:"";if(c.length===0)return void it("Can't add FormattedSection with an empty image.");const p=this.getNextImageSectionCharCode();p?(this.text+=String.fromCharCode(p),this.sections.push({scale:1,verticalAlign:l.verticalAlign||"bottom",imageName:c}),this.sectionIndex.push(this.sections.length-1)):it("Reached maximum number of images 6401")}getNextImageSectionCharCode(){return this.imageSectionID?this.imageSectionID>=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)}determineLineBreaks(l,c,p,g,w){const k=[],P=this.determineAverageLineWidth(l,c,p,g,w),R=this.hasZeroWidthSpaces();let L=0,j=0;const F=this.text[Symbol.iterator]();let te=F.next();const G=this.text[Symbol.iterator]();G.next();let oe=G.next();const ue=this.text[Symbol.iterator]();ue.next(),ue.next();let ve=ue.next();for(;!te.done;){const _e=this.getSection(j),Me=te.value.codePointAt(0);if(Vu(Me)||(L+=Vi(Me,_e,p,g,l,w)),!oe.done){const Te=vl(Me),Ae=oe.value.codePointAt(0);(k3[Me]||Te||"imageName"in _e||!ve.done&&cv[Ae])&&k.push(P3(j+1,L,P,k,E3(Me,Ae,Te&&R),!1))}j++,te=F.next(),oe=G.next(),ve=ue.next()}return $3(P3(this.length(),L,P,k,0,!0))}determineAverageLineWidth(l,c,p,g,w){let k=0,P=0;for(const R of this.text){const L=this.getSection(P);k+=Vi(R.codePointAt(0),L,p,g,l,w),P++}return k/Math.max(1,Math.ceil(k/c))}}const Yb=4294967296,M3=1/Yb,A3=typeof TextDecoder>"u"?null:new TextDecoder("utf-8");class Z0{constructor(l=new Uint8Array(16)){this.buf=ArrayBuffer.isView(l)?l:new Uint8Array(l),this.dataView=new DataView(this.buf.buffer),this.pos=0,this.type=0,this.length=this.buf.length}readFields(l,c,p=this.length){for(;this.pos<p;){const g=this.readVarint(),w=g>>3,k=this.pos;this.type=7&g,l(w,c,this),this.pos===k&&this.skip(g)}return c}readMessage(l,c){return this.readFields(l,c,this.readVarint()+this.pos)}readFixed32(){const l=this.dataView.getUint32(this.pos,!0);return this.pos+=4,l}readSFixed32(){const l=this.dataView.getInt32(this.pos,!0);return this.pos+=4,l}readFixed64(){const l=this.dataView.getUint32(this.pos,!0)+this.dataView.getUint32(this.pos+4,!0)*Yb;return this.pos+=8,l}readSFixed64(){const l=this.dataView.getUint32(this.pos,!0)+this.dataView.getInt32(this.pos+4,!0)*Yb;return this.pos+=8,l}readFloat(){const l=this.dataView.getFloat32(this.pos,!0);return this.pos+=4,l}readDouble(){const l=this.dataView.getFloat64(this.pos,!0);return this.pos+=8,l}readVarint(l){const c=this.buf;let p,g;return g=c[this.pos++],p=127&g,g<128?p:(g=c[this.pos++],p|=(127&g)<<7,g<128?p:(g=c[this.pos++],p|=(127&g)<<14,g<128?p:(g=c[this.pos++],p|=(127&g)<<21,g<128?p:(g=c[this.pos],p|=(15&g)<<28,(function(w,k,P){const R=P.buf;let L,j;if(j=R[P.pos++],L=(112&j)>>4,j<128||(j=R[P.pos++],L|=(127&j)<<3,j<128)||(j=R[P.pos++],L|=(127&j)<<10,j<128)||(j=R[P.pos++],L|=(127&j)<<17,j<128)||(j=R[P.pos++],L|=(127&j)<<24,j<128)||(j=R[P.pos++],L|=(1&j)<<31,j<128))return Gu(w,L,k);throw new Error("Expected varint not more than 10 bytes")})(p,l,this)))))}readVarint64(){return this.readVarint(!0)}readSVarint(){const l=this.readVarint();return l%2==1?(l+1)/-2:l/2}readBoolean(){return!!this.readVarint()}readString(){const l=this.readVarint()+this.pos,c=this.pos;return this.pos=l,l-c>
vendor: 5,706 bytes, line 24
24=12&&A3?A3.decode(this.buf.subarray(c,l)):(function(p,g,w){let k="",P=g;for(;P<w;){const R=p[P];let L,j,F,te=null,G=R>239?4:R>223?3:R>191?2:1;if(P+G>w)break;G===1?R<128&&(te=R):G===2?(L=p[P+1],(192&L)==128&&(te=(31&R)<<6|63&L,te<=127&&(te=null))):G===3?(L=p[P+1],j=p[P+2],(192&L)==128&&(192&j)==128&&(te=(15&R)<<12|(63&L)<<6|63&j,(te<=2047||te>=55296&&te<=57343)&&(te=null))):G===4&&(L=p[P+1],j=p[P+2],F=p[P+3],(192&L)==128&&(192&j)==128&&(192&F)==128&&(te=(15&R)<<18|(63&L)<<12|(63&j)<<6|63&F,(te<=65535||te>=1114112)&&(te=null))),te===null?(te=65533,G=1):te>65535&&(te-=65536,k+=String.fromCharCode(te>>>10&1023|55296),te=56320|1023&te),k+=String.fromCharCode(te),P+=G}return k})(this.buf,c,l)}readBytes(){const l=this.readVarint()+this.pos,c=this.buf.subarray(this.pos,l);return this.pos=l,c}readPackedVarint(l=[],c){const p=this.readPackedEnd();for(;this.pos<p;)l.push(this.readVarint(c));return l}readPackedSVarint(l=[]){const c=this.readPackedEnd();for(;this.pos<c;)l.push(this.readSVarint());return l}readPackedBoolean(l=[]){const c=this.readPackedEnd();for(;this.pos<c;)l.push(this.readBoolean());return l}readPackedFloat(l=[]){const c=this.readPackedEnd();for(;this.pos<c;)l.push(this.readFloat());return l}readPackedDouble(l=[]){const c=this.readPackedEnd();for(;this.pos<c;)l.push(this.readDouble());return l}readPackedFixed32(l=[]){const c=this.readPackedEnd();for(;this.pos<c;)l.push(this.readFixed32());return l}readPackedSFixed32(l=[]){const c=this.readPackedEnd();for(;this.pos<c;)l.push(this.readSFixed32());return l}readPackedFixed64(l=[]){const c=this.readPackedEnd();for(;this.pos<c;)l.push(this.readFixed64());return l}readPackedSFixed64(l=[]){const c=this.readPackedEnd();for(;this.pos<c;)l.push(this.readSFixed64());return l}readPackedEnd(){return this.type===2?this.readVarint()+this.pos:this.pos+1}skip(l){const c=7&l;if(c===0)for(;this.buf[this.pos++]>127;);else if(c===2)this.pos=this.readVarint()+this.pos;else if(c===5)this.pos+=4;else{if(c!==1)throw new Error(`Unimplemented type: ${c}`);this.pos+=8}}writeTag(l,c){this.writeVarint(l<<3|c)}realloc(l){let c=this.length||16;for(;c<this.pos+l;)c*=2;if(c!==this.length){const p=new Uint8Array(c);p.set(this.buf),this.buf=p,this.dataView=new DataView(p.buffer),this.length=c}}finish(){return this.length=this.pos,this.pos=0,this.buf.subarray(0,this.length)}writeFixed32(l){this.realloc(4),this.dataView.setInt32(this.pos,l,!0),this.pos+=4}writeSFixed32(l){this.realloc(4),this.dataView.setInt32(this.pos,l,!0),this.pos+=4}writeFixed64(l){this.realloc(8),this.dataView.setInt32(this.pos,-1&l,!0),this.dataView.setInt32(this.pos+4,Math.floor(l*M3),!0),this.pos+=8}writeSFixed64(l){this.realloc(8),this.dataView.setInt32(this.pos,-1&l,!0),this.dataView.setInt32(this.pos+4,Math.floor(l*M3),!0),this.pos+=8}writeVarint(l){(l=+l||0)>268435455||l<0?(function(c,p){let g,w;if(c>=0?(g=c%4294967296|0,w=c/4294967296|0):(g=~(-c%4294967296),w=~(-c/4294967296),4294967295^g?g=g+1|0:(g=0,w=w+1|0)),c>=18446744073709552e3||c<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");p.realloc(10),(function(k,P,R){R.buf[R.pos++]=127&k|128,k>>>=7,R.buf[R.pos++]=127&k|128,k>>>=7,R.buf[R.pos++]=127&k|128,k>>>=7,R.buf[R.pos++]=127&k|128,R.buf[R.pos]=127&(k>>>=7)})(g,0,p),(function(k,P){const R=(7&k)<<4;P.buf[P.pos++]|=R|((k>>>=3)?128:0),k&&(P.buf[P.pos++]=127&k|((k>>>=7)?128:0),k&&(P.buf[P.pos++]=127&k|((k>>>=7)?128:0),k&&(P.buf[P.pos++]=127&k|((k>>>=7)?128:0),k&&(P.buf[P.pos++]=127&k|((k>>>=7)?128:0),k&&(P.buf[P.pos++]=127&k)))))})(w,p)})(l,this):(this.realloc(4),this.buf[this.pos++]=127&l|(l>127?128:0),l<=127||(this.buf[this.pos++]=127&(l>>>=7)|(l>127?128:0),l<=127||(this.buf[this.pos++]=127&(l>>>=7)|(l>127?128:0),l<=127||(this.buf[this.pos++]=l>>>7&127))))}writeSVarint(l){this.writeVarint(l<0?2*-l-1:2*l)}writeBoolean(l){this.writeVarint(+l)}writeString(l){l=String(l),this.realloc(4*l.length),this.pos++;const c=this.pos;this.pos=(function(g,w,k){for(let P,R,L=0;L<w.length;L++){if(P=w.charCodeAt(L),P>55295&&P<57344){if(!R){P>56319||L+1===w.length?(g[k++]=239,g[k++]=191,g[k++]=189):R=P;continue}if(P<56320){g[k++]=239,g[k++]=191,g[k++]=189,R=P;continue}P=R-55296<<10|P-56320|65536,R=null}else R&&(g[k++]=239,g[k++]=191,g[k++]=189,R=null);P<128?g[k++]=P:(P<2048?g[k++]=P>>6|192:(P<65536?g[k++]=P>>12|224:(g[k++]=P>>18|240,g[k++]=P>>12&63|128),g[k++]=P>>6&63|128),g[k++]=63&P|128)}return k})(this.buf,l,this.pos);const p=this.pos-c;p>=128&&dv(c,p,this),this.pos=c-1,this.writeVarint(p),this.pos+=p}writeFloat(l){this.realloc(4),this.dataView.setFloat32(this.pos,l,!0),this.pos+=4}writeDouble(l){this.realloc(8),this.dataView.setFloat64(this.pos,l,!0),this.pos+=8}writeBytes(l){const c=l.length;this.writeVarint(c),this.realloc(c);for(let p=0;p<c;p++)this.buf[this.pos++]=l[p]}writeRawMessage(l,c){this.pos++;const p=this.pos;l(c,this);const g=this.pos-p;g>=128&&dv(p,g,this),this.pos=p-1,this.writeVarint(g),this.pos+=g}writeMessage(l,c,p){this.writeTag(l,2),this.writeRawMessage(c,p)}writePackedVarint(l,c){c.length&&this.writeMessage(l,gE,c)}writePackedSVarint(l,c){c.length&&this.writeMessage(l,I3,c)}writePackedBoolean(l,c){c.length&&this.writeMessage(l,km,c)}writePackedFloat(l,c){c.length&&this.writeMessage(l,fv,c)}writePackedDouble(l,c){c.length&&this.writeMessage(l,Js,c)}writePackedFixed32(l,c){c.length&&this.writeMessage(l,yE,c)}writePackedSFixed32(l,c){c.length&&this.writeMessage(l,vE,c)}writePackedFixed64(l,c){c.length&&this.writeMessage(l,_E,c)}writePackedSFixed64(l,c){c.length&&this.writeMessage(l,bE,c)}writeBytesField(l,c){this.writeTag(l,2),this.writeBytes(c)}writeFixed32Field(l,c){this.writeTag(l,5),this.writeFixed32(c)}writeSFixed32Field(l,c){this.writeTag(l,5),this.writeSFixed32(c)}
24writeFixed64Field(l,c){this.writeTag(l,1),this.writeFixed64(c)}writeSFixed64Field(l,c){this.writeTag(l,1),this.writeSFixed64(c)}writeVarintField(l,c){this.writeTag(l,0),this.writeVarint(c)}writeSVarintField(l,c){this.writeTag(l,0),this.writeSVarint(c)}writeStringField(l,c){this.writeTag(l,2),this.writeString(c)}writeFloatField(l,c){this.writeTag(l,5),this.writeFloat(c)}writeDoubleField(l,c){this.writeTag(l,1),this.writeDouble(c)}writeBooleanField(l,c){this.writeVarintField(l,+c)}}function Gu(d,l,c){return c?4294967296*l+(d>>>0):4294967296*(l>>>0)+(d>>>0)}function dv(d,l,c){const p=l<=16383?1:l<=2097151?2:l<=268435455?3:Math.floor(Math.log(l)/(7*Math.LN2));c.realloc(p);for(let g=c.pos-1;g>=d;g--)c.buf[g+p]=c.buf[g]}function gE(d,l){for(let c=0;c<d.length;c++)l.writeVarint(d[c])}function I3(d,l){for(let c=0;c<d.length;c++)l.writeSVarint(d[c])}function fv(d,l){for(let c=0;c<d.length;c++)l.writeFloat(d[c])}function Js(d,l){for(let c=0;c<d.length;c++)l.writeDouble(d[c])}function km(d,l){for(let c=0;c<d.length;c++)l.writeBoolean(d[c])}function yE(d,l){for(let c=0;c<d.length;c++)l.writeFixed32(d[c])}function vE(d,l){for(let c=0;c<d.length;c++)l.writeSFixed32(d[c])}function _E(d,l){for(let c=0;c<d.length;c++)l.writeFixed64(d[c])}function bE(d,l){for(let c=0;c<d.length;c++)l.writeSFixed64(d[c])}function xE(d,l,c){d===1&&c.readMessage(D3,l)}function D3(d,l,c){if(d===3){const{id:p,bitmap:g,width:w,height:k,left:P,top:R,advance:L}=c.readMessage(rd,{});l.push({id:p,bitmap:new R0({width:w+6,height:k+6},g),metrics:{width:w,height:k,left:P,top:R,advance:L}})}}function rd(d,l,c){d===1?l.id=c.readVarint():d===2?l.bitmap=c.readBytes():d===3?l.width=c.readVarint():d===4?l.height=c.readVarint():d===5?l.left=c.readSVarint():d===6?l.top=c.readSVarint():d===7&&(l.advance=c.readVarint())}function _r(d){let l=0,c=0;for(const k of d)l+=k.w*k.h,c=Math.max(c,k.w);d.sort(((k,P)=>P.h-k.h));const p=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(l/.95)),c),h:1/0}];let g=0,w=0;for(const k of d)for(let P=p.length-1;P>=0;P--){const R=p[P];if(!(k.w>R.w||k.h>R.h)){if(k.x=R.x,k.y=R.y,w=Math.max(w,k.y+k.h),g=Math.max(g,k.x+k.w),k.w===R.w&&k.h===R.h){const L=p.pop();L&&P<p.length&&(p[P]=L)}else k.h===R.h?(R.x+=k.w,R.w-=k.w):k.w===R.w?(R.y+=k.h,R.h-=k.h):(p.push({x:R.x+k.w,y:R.y,w:R.w-k.w,h:k.h}),R.y+=k.h,R.h-=k.h);break}}return{w:g,h:w,fill:l/(g*w)||0}}class hv{constructor(l,{pixelRatio:c,version:p,stretchX:g,stretchY:w,content:k,textFitWidth:P,textFitHeight:R}){this.paddedRect=l,this.pixelRatio=c,this.stretchX=g,this.stretchY=w,this.content=k,this.version=p,this.textFitWidth=P,this.textFitHeight=R}get tl(){return[this.paddedRect.x+1,this.paddedRect.y+1]}get br(){return[this.paddedRect.x+this.paddedRect.w-1,this.paddedRect.y+this.paddedRect.h-1]}get tlbr(){return this.tl.concat(this.br)}get displaySize(){return[(this.paddedRect.w-2)/this.pixelRatio,(this.paddedRect.h-2)/this.pixelRatio]}}class Qs{constructor(l,c){const p={},g={};this.haveRenderCallbacks=[];const w=[];this.addImages(l,p,w),this.addImages(c,g,w);const{w:k,h:P}=_r(w),R=new Lo({width:k||1,height:P||1});for(const L in l){const j=l[L],F=p[L].paddedRect;Lo.copy(j.data,R,{x:0,y:0},{x:F.x+1,y:F.y+1},j.data)}for(const L in c){const j=c[L],F=g[L].paddedRect,te=F.x+1,G=F.y+1,oe=j.data.width,ue=j.data.height;Lo.copy(j.data,R,{x:0,y:0},{x:te,y:G},j.data),Lo.copy(j.data,R,{x:0,y:ue-1},{x:te,y:G-1},{width:oe,height:1}),Lo.copy(j.data,R,{x:0,y:0},{x:te,y:G+ue},{width:oe,height:1}),Lo.copy(j.data,R,{x:oe-1,y:0},{x:te-1,y:G},{width:1,height:ue}),Lo.copy(j.data,R,{x:0,y:0},{x:te+oe,y:G},{width:1,height:ue})}this.image=R,this.iconPositions=p,this.patternPositions=g}addImages(l,c,p){for(const g in l){const w=l[g],k={x:0,y:0,w:w.data.width+2,h:w.data.height+2};p.push(k),c[g]=new hv(k,w),w.hasRenderCallback&&this.haveRenderCallbacks.push(g)}}patchUpdatedImages(l,c){l.dispatchRenderCallbacks(this.haveRenderCallbacks);for(const p in l.updatedImages)this.patchUpdatedImage(this.iconPositions[p],l.getImage(p),c),this.patchUpdatedImage(this.patternPositions[p],l.getImage(p),c)}patchUpdatedImage(l,c,p){if(!l||!c||l.version===c.version)return;l.version=c.version;const[g,w]=l.tl;p.update(c.data,void 0,{x:g,y:w})}}var id;function pv(d,l,c,p,g,w,k,P,R,L,j,F,te,G,oe){const ue=Tm.fromFeature(d,g);let ve;F===s.ax.vertical&&ue.verticalizePunctuation();let _e=ue.determineLineBreaks(L,w,l,p,G);const{processBidirectionalText:Me,processStyledBidirectionalText:Te}=bl;if(Me&&ue.sections.length===1){ve=[],_e=_e.map((dt=>ue.toCodeUnitIndex(dt)));const We=Me(ue.toString(),_e);for(const dt of We){const mt=[...dt].map((()=>0));ve.push(new Tm(dt,ue.sections,mt))}}else if(Te){ve=[],_e=_e.map((Lt=>ue.toCodeUnitIndex(Lt)));let We=0;const dt=[];for(const Lt of ue.text)dt.push(...Array(Lt.length).fill(ue.sectionIndex[We])),We++;const mt=Te(ue.text,dt,_e);for(const Lt of mt){const Et=[];let jt="";for(const Ut of Lt[0])Et.push(Lt[1][jt.length]),jt+=Ut;ve.push(new Tm(Lt[0],ue.sections,Et))}}else ve=(function(We,dt){const mt=[];let Lt=0;for(const Et of dt)mt.push(We.substring(Lt,Et)),Lt=Et;return Lt<We.length()&&mt.push(We.substring(Lt,We.length())),mt})(ue,_e);const Ae=[],ze={positionedLines:Ae,text:ue.toString(),top:j[1],bottom:j[1],left:j[0],right:j[0],writingMode:F,iconsInText:!1,verticalizable:!1};return(function(We,dt,mt,Lt,Et,jt,Ut,Bt,Mt,on,yn,hn){let cn=0,qn=0,Rr=0,Ur=0;const ii=Bt==="right"?1:Bt==="left"?0:.5,Vo=wa/hn;let Qi=0;for(const Oi of Et){Oi.trim();const bo=Oi.getMaxScale(),fs={positionedGlyphs:[],lineOffset:0};We.positionedLines[Qi]=fs;const hs=fs.positionedGlyphs;let tl=0;
24if(!Oi.length()){qn+=jt,++Qi;continue}const qo=wE(Lt,Oi,Vo);let nl=0;for(const ro of Oi.text){const qi=Oi.getSection(nl),Ca=ro.codePointAt(0),ea=L3(Mt,yn,Ca),io={glyph:Ca,imageName:null,x:cn,y:qn+-17,vertical:ea,scale:1,fontStack:"",sectionIndex:Oi.getSectionIndex(nl),metrics:null,rect:null};let $h;if("fontStack"in qi){if($h=Kb(qi,Ca,ea,qo,dt,mt),!$h)continue;io.fontStack=qi.fontStack}else{if(We.iconsInText=!0,qi.scale*=Vo,$h=SE(qi,ea,bo,qo,Lt),!$h)continue;tl=Math.max(tl,$h.imageOffset),io.imageName=qi.imageName}const{rect:ld,metrics:b2,baselineOffset:Dm}=$h;io.y+=Dm,io.scale=qi.scale,io.metrics=b2,io.rect=ld,hs.push(io),ea?(We.verticalizable=!0,cn+=("imageName"in qi?b2.advance:wa)*qi.scale+on):cn+=b2.advance*qi.scale+on,nl++}hs.length!==0&&(Rr=Math.max(cn-on,Rr),CE(hs,0,hs.length-1,ii)),cn=0,fs.lineOffset=Math.max(tl,(bo-1)*wa);const Zu=jt*bo+tl;qn+=Zu,Ur=Math.max(Zu,Ur),++Qi}const{horizontalAlign:za,verticalAlign:no}=Zr(Ut);(function(Oi,bo,fs,hs,tl,qo,nl,Zu,ro){const qi=(bo-fs)*tl;let Ca=0;Ca=qo!==nl?-Zu*hs- -17:-hs*ro*nl+.5*nl;for(const ea of Oi)for(const io of ea.positionedGlyphs)io.x+=qi,io.y+=Ca})(We.positionedLines,ii,za,no,Rr,Ur,jt,qn,Et.length),We.top+=-no*qn,We.bottom=We.top+qn,We.left+=-za*Rr,We.right=We.left+Rr})(ze,l,c,p,ve,k,P,R,F,L,te,oe),!(function(We){for(const dt of We)if(dt.positionedGlyphs.length!==0)return!1;return!0})(Ae)&&ze}function Zr(d){let l=.5,c=.5;switch(d){case"right":case"top-right":case"bottom-right":l=1;break;case"left":case"top-left":case"bottom-left":l=0}switch(d){case"bottom":case"bottom-right":case"bottom-left":c=1;break;case"top":case"top-right":case"top-left":c=0}return{horizontalAlign:l,verticalAlign:c}}function wE(d,l,c){const p=l.getMaxScale()*wa,{maxImageWidth:g,maxImageHeight:w}=l.getMaxImageSize(d),k=Math.max(p,w*c);return{verticalLineContentWidth:Math.max(p,g*c),horizontalLineContentHeight:k}}function Zb(d){switch(d){case"top":return 0;case"center":return .5;default:return 1}}function L3(d,l,c){return!(d===s.ax.horizontal||!l&&!Zl(c)||l&&(Vu(c)||(p=c,new RegExp("\\p{sc=Arab}","u").test(String.fromCodePoint(p)))));var p}function Kb(d,l,c,p,g,w){const k=w[d.fontStack],P=(function(L,j,F,te){if(L?.rect)return L;const G=j[F.fontStack],oe=G?.[te];return oe?{rect:null,metrics:oe.metrics}:null})(k?.[l],g,d,l);if(P===null)return null;let R;if(c)R=p.verticalLineContentWidth-d.scale*wa;else{const L=Zb(d.verticalAlign);R=(p.horizontalLineContentHeight-d.scale*wa)*L}return{rect:P.rect,metrics:P.metrics,baselineOffset:R}}function SE(d,l,c,p,g){const w=g[d.imageName];if(!w)return null;const k=w.paddedRect,P=w.displaySize,R={width:P[0],height:P[1],left:1,top:-3,advance:l?P[1]:P[0]};let L;if(l)L=p.verticalLineContentWidth-P[1]*d.scale;else{const j=Zb(d.verticalAlign);L=(p.horizontalLineContentHeight-P[1]*d.scale)*j}return{rect:k,metrics:R,baselineOffset:L,imageOffset:(l?P[0]:P[1])*d.scale-wa*c}}function CE(d,l,c,p){if(p===0)return;const g=d[c],w=(d[c].x+g.metrics.advance*g.scale)*p;for(let k=l;k<=c;k++)d[k].x-=w}function TE(d,l,c){const{horizontalAlign:p,verticalAlign:g}=Zr(c),w=l[0]-d.displaySize[0]*p,k=l[1]-d.displaySize[1]*g;return{image:d,top:k,bottom:k+d.displaySize[1],left:w,right:w+d.displaySize[0]}}function O3(d){var l,c;let p=d.left,g=d.top,w=d.right-p,k=d.bottom-g;const P=(l=d.image.textFitWidth)!==null&&l!==void 0?l:"stretchOrShrink",R=(c=d.image.textFitHeight)!==null&&c!==void 0?c:"stretchOrShrink",L=(d.image.content[2]-d.image.content[0])/(d.image.content[3]-d.image.content[1]);if(R==="proportional"){if(P==="stretchOnly"&&w/k<L||P==="proportional"){const j=Math.ceil(k*L);p*=j/w,w=j}}else if(P==="proportional"&&R==="stretchOnly"&&L!==0&&w/k>L){const j=Math.ceil(w/L);g*=j/k,k=j}return{x1:p,y1:g,x2:p+w,y2:g+k}}function R3(d,l,c,p,g,w){const k=d.image;let P;if(k.content){const ve=k.content,_e=k.pixelRatio||1;P=[ve[0]/_e,ve[1]/_e,k.displaySize[0]-ve[2]/_e,k.displaySize[1]-ve[3]/_e]}const R=l.left*w,L=l.right*w;let j,F,te,G;c==="width"||c==="both"?(G=g[0]+R-p[3],F=g[0]+L+p[1]):(G=g[0]+(R+L-k.displaySize[0])/2,F=G+k.displaySize[0]);const oe=l.top*w,ue=l.bottom*w;return c==="height"||c==="both"?(j=g[1]+oe-p[0],te=g[1]+ue+p[2]):(j=g[1]+(oe+ue-k.displaySize[1])/2,te=j+k.displaySize[1]),{image:k,top:j,r
vendor: 28,378 bytes, line 24
24ight:F,bottom:te,left:G,collisionPadding:P}}bn("ImagePosition",hv),bn("ImageAtlas",Qs),s.ax=void 0,(id=s.ax||(s.ax={}))[id.none=0]="none",id[id.horizontal=1]="horizontal",id[id.vertical=2]="vertical",id[id.horizontalOnly=3]="horizontalOnly";const ad=128,nf=32640;function B3(d,l){const{expression:c}=l;if(c.kind==="constant")return{kind:"constant",layoutSize:c.evaluate(new or(d+1))};if(c.kind==="source")return{kind:"source"};{const{zoomStops:p,interpolationType:g}=c;let w=0;for(;w<p.length&&p[w]<=d;)w++;w=Math.max(0,w-1);let k=w;for(;k<p.length&&p[k]<d+1;)k++;k=Math.min(p.length-1,k);const P=p[w],R=p[k];return c.kind==="composite"?{kind:"composite",minZoom:P,maxZoom:R,interpolationType:g}:{kind:"camera",minZoom:P,maxZoom:R,minSize:c.evaluate(new or(P)),maxSize:c.evaluate(new or(R)),interpolationType:g}}}function Xb(d,l,c){let p="never";const g=d.get(l);return g?p=g:d.get(c)&&(p="always"),p}const kE=[{name:"a_fade_opacity",components:1,type:"Uint8",offset:0}];function mv(d,l,c,p,g,w,k,P,R,L,j,F,te){const G=P?Math.min(nf,Math.round(P[0])):0,oe=P?Math.min(nf,Math.round(P[1])):0;d.emplaceBack(l,c,Math.round(32*p),Math.round(32*g),w,k,(G<<1)+(R?1:0),oe,16*L,16*j,256*F,256*te)}function Jb(d,l,c){d.emplaceBack(l.x,l.y,c),d.emplaceBack(l.x,l.y,c),d.emplaceBack(l.x,l.y,c),d.emplaceBack(l.x,l.y,c)}function Qb(d){for(const l of d.sections)if(E0(l.text))return!0;return!1}class e2{constructor(l){this.layoutVertexArray=new tt,this.indexArray=new Xt,this.programConfigurations=l,this.segments=new gn,this.dynamicLayoutVertexArray=new wt,this.opacityVertexArray=new Rt,this.hasVisibleVertices=!1,this.placedSymbolArray=new V}isEmpty(){return this.layoutVertexArray.length===0&&this.indexArray.length===0&&this.dynamicLayoutVertexArray.length===0&&this.opacityVertexArray.length===0}upload(l,c,p,g){this.isEmpty()||(p&&(this.layoutVertexBuffer=l.createVertexBuffer(this.layoutVertexArray,tf.members),this.indexBuffer=l.createIndexBuffer(this.indexArray,c),this.dynamicLayoutVertexBuffer=l.createVertexBuffer(this.dynamicLayoutVertexArray,fE.members,!0),this.opacityVertexBuffer=l.createVertexBuffer(this.opacityVertexArray,kE,!0),this.opacityVertexBuffer.itemSize=1),(p||g)&&this.programConfigurations.upload(l))}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.dynamicLayoutVertexBuffer.destroy(),this.opacityVertexBuffer.destroy())}}bn("SymbolBuffers",e2);class K0{constructor(l,c,p){this.layoutVertexArray=new l,this.layoutAttributes=c,this.indexArray=new p,this.segments=new gn,this.collisionVertexArray=new Qt}upload(l){this.layoutVertexBuffer=l.createVertexBuffer(this.layoutVertexArray,this.layoutAttributes),this.indexBuffer=l.createIndexBuffer(this.indexArray),this.collisionVertexBuffer=l.createVertexBuffer(this.collisionVertexArray,hE.members,!0)}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.collisionVertexBuffer.destroy())}}bn("CollisionBuffers",K0);class Em{constructor(l){this.collisionBoxArray=l.collisionBoxArray,this.zoom=l.zoom,this.overscaling=l.overscaling,this.layers=l.layers,this.layerIds=this.layers.map((k=>k.id)),this.index=l.index,this.pixelRatio=l.pixelRatio,this.sourceLayerIndex=l.sourceLayerIndex,this.hasDependencies=!1,this.hasRTLText=!1,this.sortKeyRanges=[],this.collisionCircleArray=[];const c=this.layers[0]._unevaluatedLayout._values;this.textSizeData=B3(this.zoom,c["text-size"]),this.iconSizeData=B3(this.zoom,c["icon-size"]);const p=this.layers[0].layout,g=p.get("symbol-sort-key"),w=p.get("symbol-z-order");this.canOverlap=Xb(p,"text-overlap","text-allow-overlap")!=="never"||Xb(p,"icon-overlap","icon-allow-overlap")!=="never"||p.get("text-ignore-placement")||p.get("icon-ignore-placement"),this.sortFeaturesByKey=w!=="viewport-y"&&!g.isConstant(),this.sortFeaturesByY=(w==="viewport-y"||w==="auto"&&!this.sortFeaturesByKey)&&this.canOverlap,p.get("symbol-placement")==="point"&&(this.writingModes=p.get("text-writing-mode").map((k=>s.ax[k]))),this.stateDependentLayerIds=this.layers.filter((k=>k.isStateDependent())).map((k=>k.id)),this.sourceID=l.sourceID}createArrays(){this.text=new e2(new Sl(this.layers,this.zoom,(l=>l.startsWith("text")))),this.icon=new e2(new Sl(this.layers,this.zoom,(l=>l.startsWith("icon")))),this.glyphOffsetArray=new re,this.lineVertexArray=new ie,this.symbolInstances=new X,this.textAnchorOffsets=new ge}calculateGlyphDependencies(l,c,p,g,w){for(const k of l)if(c[k.codePointAt(0)]=!0,(p||g)&&w){const P=Xs[k];P&&(c[P.codePointAt(0)]=!0)}}populate(l,c,p){var g;const w=this.layers[0],k=w.layout,P=k.get("text-font"),R=k.get("text-field"),L=k.get("icon-image"),j=(R.value.kind!=="constant"||R.value.value instanceof Eo&&!R.value.value.isEmpty()||R.value.value.toString().length>0)&&(P.value.kind!=="constant"||P.value.value.length>0),F=L.value.kind!=="constant"||!!L.value.value||Object.keys(L.parameters).length>0,te=k.get("symbol-sort-key");if(this.features=[],!j&&!F)return;const G=c.iconDependencies,oe=c.glyphDependencies,ue=c.availableImages,ve=new or(this.zoom);for(const{feature:_e,id:Me,index:Te,sourceLayerIndex:Ae}of l){const ze=w._featureFilter.needGeometry,We=eo(_e,ze);if(!w._featureFilter.filter(ve,We,p))continue;let dt,mt;if(ze||(We.geometry=Wu(_e)),j){const Et=w.getValueAndResolveTokens("text-field",We,p,ue),jt=Eo.factory(Et);this.hasRTLText||(this.hasRTLText=Qb(jt)),(!this.hasRTLText||bl.getRTLTextPluginStatus()==="unavailable"||this.hasRTLText&&bl.isParsed())&&(dt=Gb(jt,w,We))}if(F){const Et=w.getValueAndResolveTokens("icon-image",We,p,ue);mt=Et instanceof Qo?Et:Qo.fromString(Et)}if(!dt&&!mt)continue;const Lt=this.sortFeaturesByKey?te.evaluate(We,{},p):void 0;if(this.features.push({id:Me,text:dt,icon:mt,index:Te,sourceLayerIndex:Ae,geometry:We.geometry,properties:_e.properties,type:q0.types[_e.type],sortKey:Lt}),mt&&(G[mt.name]=!0),dt){const Et=P.evaluate(We,{},p).join(","),jt=k.get("text-rotation-alignment")!=="viewport"&&k.get("symbol-placement")!=="point";this.allowVerticalPlacement=(g=this.writingModes)===null||g===void 0?void 0:g.includes(s.ax.vertical);for(const Ut of dt.sections)if(Ut.image)G[Ut.image.name]=!0;else{const Bt=Ao(dt.toString()),Mt=Ut.fontStack||Et;oe[Mt]||(oe[Mt]={}),this.calculateGlyphDependencies(Ut.text,oe[Mt],jt,this.allowVerticalPlacement,Bt)}}}k.get("symbol-placement")==="line"&&(this.features=(function(_e){const Me={},Te={},Ae=[];let ze=0;function We(Et){Ae.push(_e[Et]),ze++}function dt(Et,jt,Ut){const Bt=Te[Et];return delete Te[Et],Te[jt]=Bt,Ae[Bt].geometry[0].pop(),Ae[Bt].geometry[0]=Ae[Bt].geometry[0].concat(Ut[0]),Bt}function mt(Et,jt,Ut){const Bt=Me[jt];return delete Me[jt],Me[Et]=Bt,Ae[Bt].geometry[0].shift(),Ae[Bt].geometry[0]=Ut[0].concat(Ae[Bt].geometry[0]),Bt}function Lt(Et,jt,Ut){const Bt=Ut?jt[0][jt[0].length-1]:jt[0][0];return`${Et}:${Bt.x}:${Bt.y}`}for(let Et=0;Et<_e.length;Et++){const jt=_e[Et],Ut=jt.geometry,Bt=jt.text?jt.text.toString():null;if(!Bt){We(Et);continue}const Mt=Lt(Bt,Ut),on=Lt(Bt,Ut,!0);if(Mt in Te&&on in Me&&Te[Mt]!==Me[on]){const yn=mt(Mt,on,Ut),hn=dt(Mt,on,Ae[yn].geometry);delete Me[Mt],delete Te[on],Te[Lt(Bt,Ae[hn].geometry,!0)]=hn,Ae[yn].geometry=null}else Mt in Te?dt(Mt,on,Ut):on in Me?mt(Mt,on,Ut):(We(Et),Me[Mt]=ze-1,Te[on]=ze-1)}return Ae.filter((Et=>Et.geometry))})(this.features)),this.sortFeaturesByKey&&this.features.sort(((_e,Me)=>_e.sortKey-Me.sortKey))}update(l,c,p){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(l,c,this.layers,{imagePositions:p}),this.icon.programConfigurations.updatePaintArrays(l,c,this.layers,{imagePositions:p}))}isEmpty(){return this.symbolInstances.length===0&&!this.hasRTLText}uploadPending(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload}upload(l){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(l),this.iconCollisionBox.upload(l)),this.text.upload(l,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(l,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0}destroyDebugData(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()}destroy(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&&this.destroyDebugData()}addToLineVertexArray(l,c){const p=this.lineVertexArray.length;if(l.segment!==void 0){let g=l.dist(c[l.segment+1]),w=l.dist(c[l.segment]);const k={};for(let P=l.segment+1;P<c.length;P++)k[P]={x:c[P].x,y:c[P].y,tileUnitDistanceFromAnchor:g},P<c.length-1&&(g+=c[P+1].dist(c[P]));for(let P=l.segment||0;P>=0;P--)k[P]={x:c[P].x,y:c[P].y,tileUnitDistanceFromAnchor:w},P>0&&(w+=c[P-1].dist(c[P]));for(let P=0;P<c.length;P++){const R=k[P];this.lineVertexArray.emplaceBack(R.x,R.y,R.tileUnitDistanceFromAnchor)}}return{lineStartIndex:p,lineLength:this.lineVertexArray.length-p}}addSymbols(l,c,p,g,w,k,P,R,L,j,F,te){const G=l.indexArray,oe=l.layoutVertexArray,ue=l.segments.prepareSegment(4*c.length,oe,G,this.canOverlap?k.sortKey:void 0),ve=this.glyphOffsetArray.length,_e=ue.vertexLength,Me=this.allowVerticalPlacement&&P===s.ax.vertical?Math.PI/2:0,Te=k.text&&k.text.sections;for(let Ae=0;Ae<c.length;Ae++){const{tl:ze,tr:We,bl:dt,br:mt,tex:Lt,pixelOffsetTL:Et,pixelOffsetBR:jt,minFontScaleX:Ut,minFontScaleY:Bt,glyphOffset:Mt,isSDF:on,sectionIndex:yn}=c[Ae],hn=ue.vertexLength,cn=Mt[1];mv(oe,R.x,R.y,ze.x,cn+ze.y,Lt.x,Lt.y,p,on,Et.x,Et.y,Ut,Bt),mv(oe,R.x,R.y,We.x,cn+We.y,Lt.x+Lt.w,Lt.y,p,on,jt.x,Et.y,Ut,Bt),mv(oe,R.x,R.y,dt.x,cn+dt.y,Lt.x,Lt.y+Lt.h,p,on,Et.x,jt.y,Ut,Bt),mv(oe,R.x,R.y,mt.x,cn+mt.y,Lt.x+Lt.w,Lt.y+Lt.h,p,on,jt.x,jt.y,Ut,Bt),Jb(l.dynamicLayoutVertexArray,R,Me),G.emplaceBack(hn,hn+2,hn+1),G.emplaceBack(hn+1,hn+2,hn+3),ue.vertexLength+=4,ue.primitiveLength+=2,this.glyphOffsetArray.emplaceBack(Mt[0]),Ae!==c.length-1&&yn===c[Ae+1].sectionIndex||l.programConfigurations.populatePaintArrays(oe.length,k,k.index,{imagePositions:{},canonical:te,formattedSection:Te?.[yn]})}l.placedSymbolArray.emplaceBack(R.x,R.y,ve,this.glyphOffsetArray.length-ve,_e,L,j,R.segment,p?p[0]:0,p?p[1]:0,g[0],g[1],P,0,!1,0,F)}_addCollisionDebugVertex(l,c,p,g,w,k){return c.emplaceBack(0,0),l.emplaceBack(p.x,p.y,g,w,Math.round(k.x),Math.round(k.y))}addCollisionDebugVertices(l,c,p,g,w,k,P){const R=w.segments.prepareSegment(4,w.layoutVertexArray,w.indexArray),L=R.vertexLength,j=w.layoutVertexArray,F=w.collisionVertexArray,te=P.anchorX,G=P.anchorY;this._addCollisionDebugVertex(j,F,k,te,G,new f(l,c)),this._addCollisionDebugVertex(j,F,k,te,G,new f(p,c)),this._addCollisionDebugVertex(j,F,k,te,G,new f(p,g)),this._addCollisionDebugVertex(j,F,k,te,G,new f(l,g)),R.vertexLength+=4;const oe=w.indexArray;oe.emplaceBack(L,L+1),oe.emplaceBack(L+1,L+2),oe.emplaceBack(L+2,L+3),oe.emplaceBack(L+3,L),R.primitiveLength+=4}addDebugCollisionBoxes(l,c,p,g){for(let w=l;w<c;w++){const k=this.collisionBoxArray.get(w);this.addCollisionDebugVertices(k.x1,k.y1,k.x2,k.y2,g?this.textCollisionBox:this.iconCollisionBox,k.anchorPoint,p)}}generateCollisionDebugBuffers(){this.hasDebugData()&&this.destroyDebugData(),this.textCollisionBox=new K0(Vt,T3.members,Tn),this.iconCollisionBox=new K0(Vt,T3.members,Tn);for(let l=0;l<this.symbolInstances.length;l++){const c=this.symbolInstances.get(l);this.addDebugCollisionBoxes(c.textBoxStartIndex,c.textBoxEndIndex,c,!0),this.addDebugCollisionBoxes(c.verticalTextBoxStartIndex,c.verticalTextBoxEndIndex,c,!0),this.addDebugCollisionBoxes(c.iconBoxStartIndex,c.iconBoxEndIndex,c,!1),this.addDebugCollisionBoxes(c.verticalIconBoxStartIndex,c.verticalIconBoxEndIndex,c,!1)}}_deserializeCollisionBoxesForSymbol(l,c,p,g,w,k,P,R,L){const j={};for(let F=c;F<p;F++){const te=l.get(F);j.textBox={x1:te.x1,y1:te.y1,x2:te.x2,y2:te.y2,anchorPointX:te.anchorPointX,anchorPointY:te.anchorPointY},j.textFeatureIndex=te.featureIndex;break}for(let F=g;F<w;F++){const te=l.get(F);j.verticalTextBox={x1:te.x1,y1:te.y1,x2:te.x2,y2:te.y2,anchorPointX:te.anchorPointX,anchorPointY:te.anchorPointY},j.verticalTextFeatureIndex=te.featureIndex;break}for(let F=k;F<P;F++){const te=l.get(F);j.iconBox={x1:te.x1,y1:te.y1,x2:te.x2,y2:te.y2,anchorPointX:te.anchorPointX,anchorPointY:te.anchorPointY},j.iconFeatureIndex=te.featureIndex;break}for(let F=R;F<L;F++){const te=l.get(F);j.verticalIconBox={x1:te.x1,y1:te.y1,x2:te.x2,y2:te.y2,anchorPointX:te.anchorPointX,anchorPointY:te.anchorPointY},j.verticalIconFeatureIndex=te.featureIndex;break}return j}deserializeCollisionBoxes(l){this.collisionArrays=[];for(let c=0;c<this.symbolInstances.length;c++){const p=this.symbolInstances.get(c);this.collisionArrays.push(this._deserializeCollisionBoxesForSymbol(l,p.textBoxStartIndex,p.textBoxEndIndex,p.verticalTextBoxStartIndex,p.verticalTextBoxEndIndex,p.iconBoxStartIndex,p.iconBoxEndIndex,p.verticalIconBoxStartIndex,p.verticalIconBoxEndIndex))}}hasTextData(){return this.text.segments.get().length>0}hasIconData(){return this.icon.segments.get().length>0}hasDebugData(){return this.textCollisionBox&&this.iconCollisionBox}hasTextCollisionBoxData(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0}hasIconCollisionBoxData(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0}addIndicesForPlacedSymbol(l,c){const p=l.placedSymbolArray.get(c),g=p.vertexStartIndex+4*p.numGlyphs;for(let w=p.vertexStartIndex;w<g;w+=4)l.indexArray.emplaceBack(w,w+2,w+1),l.indexArray.emplaceBack(w+1,w+2,w+3)}getSortedSymbolIndexes(l){if(this.sortedAngle===l&&this.symbolInstanceIndexes!==void 0)return this.symbolInstanceIndexes;const c=Math.sin(l),p=Math.cos(l),g=[],w=[],k=[];for(let P=0;P<this.symbolInstances.length;++P){k.push(P);const R=this.symbolInstances.get(P);g.push(0|Math.round(c*R.anchorX+p*R.anchorY)),w.push(R.featureIndex)}return k.sort(((P,R)=>g[P]-g[R]||w[R]-w[P])),k}addToSortKeyRanges(l,c){const p=this.sortKeyRanges[this.sortKeyRanges.length-1];p?.sortKey===c?p.symbolInstanceEnd=l+1:this.sortKeyRanges.push({sortKey:c,symbolInstanceStart:l,symbolInstanceEnd:l+1})}sortFeatures(l){if(this.sortFeaturesByY&&this.sortedAngle!==l&&!(this.text.segments.get().length>1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(l),this.sortedAngle=l,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(const c of this.symbolInstanceIndexes){const p=this.symbolInstances.get(c);this.featureSortOrder.push(p.featureIndex);const g=[p.rightJustifiedTextSymbolIndex,p.centerJustifiedTextSymbolIndex,p.leftJustifiedTextSymbolIndex];for(let w=0;w<g.length;w++){const k=g[w];k>=0&&g.indexOf(k)===w&&this.addIndicesForPlacedSymbol(this.text,k)}p.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,p.verticalPlacedTextSymbolIndex),p.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,p.placedIconSymbolIndex),p.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,p.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}}}let F3,z3;bn("SymbolBucket",Em,{omit:["layers","collisionBoxArray","features","compareText"]}),Em.MAX_GLYPHS=65535,Em.addDynamicAttributes=Jb;var Sa={get paint(){return z3=z3||new Xa({"icon-opacity":new Rn(Ft.paint_symbol["icon-opacity"]),"icon-color":new Rn(Ft.paint_symbol["icon-color"]),"icon-halo-color":new Rn(Ft.paint_symbol["icon-halo-color"]),"icon-halo-width":new Rn(Ft.paint_symbol["icon-halo-width"]),"icon-halo-blur":new Rn(Ft.paint_symbol["icon-halo-blur"]),"icon-translate":new Pn(Ft.paint_symbol["icon-translate"]),"icon-translate-anchor":new Pn(Ft.paint_symbol["icon-translate-anchor"]),"text-opacity":new Rn(Ft.paint_symbol["text-opacity"]),"text-color":new Rn(Ft.paint_symbol["text-color"],{runtimeType:Jo,getOverride:d=>d.textColor,hasOverride:d=>!!d.textColor}),"text-halo-color":new Rn(Ft.paint_symbol["text-halo-color"]),"text-halo-width":new Rn(Ft.paint_symbol["text-halo-width"]),"text-halo-blur":new Rn(Ft.paint_symbol["text-halo-blur"]),"text-translate":new Pn(Ft.paint_symbol["text-translate"]),"text-translate-anchor":new Pn(Ft.paint_symbol["text-translate-anchor"])})},get layout(){return F3=F3||new Xa({"symbol-placement":new Pn(Ft.layout_symbol["symbol-placement"]),"symbol-spacing":new Pn(Ft.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new Pn(Ft.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new Rn(Ft.layout_symbol["symbol-sort-key"]),"symbol-z-order":new Pn(Ft.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new Pn(Ft.layout_symbol["icon-allow-overlap"]),"icon-overlap":new Pn(Ft.layout_symbol["icon-overlap"]),"icon-ignore-placement":new Pn(Ft.layout_symbol["icon-ignore-placement"]),"icon-optional":new Pn(Ft.layout_symbol["icon-optional"]),"icon-rotation-alignment":new Pn(Ft.layout_symbol["icon-rotation-alignment"]),"icon-size":new Rn(Ft.layout_symbol["icon-size"]),"icon-text-fit":new Pn(Ft.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new Pn(Ft.layout_symbol["icon-text-fit-padding"]),"icon-image":new Rn(Ft.layout_symbol["icon-image"]),"icon-rotate":new Rn(Ft.layout_symbol["icon-rotate"]),"icon-padding":new Rn(Ft.layout_symbol["icon-padding"]),"icon-keep-upright":new Pn(Ft.layout_symbol["icon-keep-upright"]),"icon-offset":new Rn(Ft.layout_symbol["icon-offset"]),"icon-anchor":new Rn(Ft.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new Pn(Ft.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new Pn(Ft.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new Pn(Ft.layout_symbol["text-rotation-alignment"]),"text-field":new Rn(Ft.layout_symbol["text-field"]),"text-font":new Rn(Ft.layout_symbol["text-font"]),"text-size":new Rn(Ft.layout_symbol["text-size"]),"text-max-width":new Rn(Ft.layout_symbol["text-max-width"]),"text-line-height":new Pn(Ft.layout_symbol["text-line-height"]),"text-letter-spacing":new Rn(Ft.layout_symbol["text-letter-spacing"]),"text-justify":new Rn(Ft.layout_symbol["text-justify"]),"text-radial-offset":new Rn(Ft.layout_symbol["text-radial-offset"]),"text-variable-anchor":new Pn(Ft.layout_symbol["text-variable-anchor"]),"text-variable-anchor-offset":new Rn(Ft.layout_symbol["text-variable-anchor-offset"]),"text-anchor":new Rn(Ft.layout_symbol["text-anchor"]),"text-max-angle":new Pn(Ft.layout_symbol["text-max-angle"]),"text-writing-mode":new Pn(Ft.layout_symbol["text-writing-mode"]),"text-rotate":new Rn(Ft.layout_symbol["text-rotate"]),"text-padding":new Pn(Ft.layout_symbol["text-padding"]),"text-keep-upright":new Pn(Ft.layout_symbol["text-keep-upright"]),"text-transform":new Rn(Ft.layout_symbol["text-transform"]),"text-offset":new Rn(Ft.layout_symbol["text-offset"]),"text-allow-overlap":new Pn(Ft.layout_symbol["text-allow-overlap"]),"text-overlap":new Pn(Ft.layout_symbol["text-overlap"]),"text-ignore-placement":new Pn(Ft.layout_symbol["text-ignore-placement"]),"text-optional":new Pn(Ft.layout_symbol["text-optional"])})}};class us{constructor(l){if(l.property.overrides===void 0)throw new Error("overrides must be provided to instantiate FormatSectionOverride class");this.type=l.property.overrides?l.property.overrides.runtimeType:ku,this.defaultValue=l}evaluate(l){if(l.formattedSection){const c=this.defaultValue.property.overrides;if(c?.hasOverride(l.formattedSection))return c.getOverride(l.formattedSection)}return l.feature&&l.featureState?this.defaultValue.evaluate(l.feature,l.featureState):this.defaultValue.property.specification.default}eachChild(l){this.defaultValue.isConstant()||l(this.defaultValue.value._styleExpression.expression)}outputDefined(){return!1}serialize(){return null}}bn("FormatSectionOverride",us,{omit:["defaultValue"]});class gv extends Ja{constructor(l,c){super(l,Sa,c)}recalculate(l,c){if(super.recalculate(l,c),this.layout.get("icon-rotation-alignment")==="auto"&&(this.layout._values["icon-rotation-alignment"]=this.layout.get("symbol-placement")!=="point"?"map":"viewport"),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout._values["text-rotation-alignment"]=this.layout.get("symbol-placement")!=="point"?"map":"viewport"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")==="map"?"map":"viewport"),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),this.layout.get("symbol-placement")==="point"){const p=this.layout.get("text-writing-mode");if(p){const g=[];for(const w of p)g.includes(w)||g.push(w);this.layout._values["text-writing-mode"]=g}else this.layout._values["text-writing-mode"]=["horizontal"]}this._setPaintOverrides()}getValueAndResolveTokens(l,c,p,g){const w=this.layout.get(l).evaluate(c,{},p,g),k=this._unevaluatedLayout._values[l];return k.isDataDriven()||Kp(k.value)||!w?w:(function(P,R){return R.replace(/{([^{}]+)}/g,((L,j)=>P&&j in P?String(P[j]):""))})(c.properties,w)}createBucket(l){return new Em(l)}queryRadius(){return 0}queryIntersectsFeature(){throw new Error("Should take a different path in FeatureIndex")}_setPaintOverrides(){for(const l of Sa.paint.overridableProperties){if(!gv.hasPaintOverride(this.layout,l))continue;const c=this.paint.get(l),p=new us(c),g=new Hc(p,c.property.specification);let w=null;w=c.value.kind==="constant"||c.value.kind==="source"?new Xp("source",g):new Jp("composite",g,c.value.zoomStops),this.paint._values[l]=new is(c.property,w,c.parameters)}}_handleOverridablePaintPropertyUpdate(l,c,p){return!(!this.layout||c.isDataDriven()||p.isDataDriven())&&gv.hasPaintOverride(this.layout,l)}static hasPaintOverride(l,c){const p=l.get("text-field"),g=Sa.paint.properties[c];let w=!1;const k=P=>{var R;for(const L of P)if(!((R=g.overrides)===null||R===void 0)&&R.hasOverride(L))return void(w=!0)};if(p.value.kind==="constant"&&p.value.value instanceof Eo)k(p.value.value.sections);else if(p.value.kind==="source"||p.value.kind==="composite"){const P=L=>{w||(L instanceof dl&&Xn(L.value)===Eu?k(L.value.sections):L instanceof Dc?k(L.sections):L.eachChild(P))},R=p.value;R._styleExpression&&P(R._styleExpression.expression)}return w}}let N3;var EE={get paint(){return N3=N3||new Xa({"background-color":new Pn(Ft.paint_background["background-color"]),"background-pattern":new N1(Ft.paint_background["background-pattern"]),"background-opacity":new Pn(Ft.paint_background["background-opacity"])})}};class V3 extends Ja{constructor(l,c){super(l,EE,c)}}class PE extends Ja{constructor(l,c){super(l,{},c),this.onAdd=p=>{this.implementation.onAdd&&this.implementation.onAdd(p,p.painter.context.gl)},this.onRemove=p=>{this.implementation.onRemove&&this.implementation.onRemove(p,p.painter.context.gl)},this.implementation=l}is3D(){return this.implementation.renderingMode==="3d"}hasOffscreenPass(){return this.implementation.prerender!==void 0}recalculate(){}updateTransitions(){}hasTransition(){return!1}serialize(){throw new Error("Custom layers cannot be serialized")}}class $E{constructor(l){this._methodToThrottle=l,this._triggered=!1,this._channel=new MessageChannel,this._channel.port2.onmessage=()=>{this._triggered=!1,this._methodToThrottle()}}trigger(){var l;this._triggered||(this._triggered=!0,(l=this._channel)===null||l===void 0||l.port1.postMessage(!0))}remove(){delete this._channel,this._methodToThrottle=()=>{}}}const ME={once:!0},yv=63710088e-1;class rf{constructor(l,c){if(isNaN(l)||isNaN(c))throw new Error(`Invalid LngLat object: (${l}, ${c})`);if(this.lng=+l,this.lat=+c,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")}wrap(){return new rf(zt(this.lng,-180,180),this.lat)}toArray(){return[this.lng,this.lat]}toString(){return`LngLat(${this.lng}, ${this.lat})`}distanceTo(l){const c=Math.PI/180,p=this.lat*c,g=l.lat*c,w=Math.sin(p)*Math.sin(g)+Math.cos(p)*Math.cos(g)*Math.cos((l.lng-this.lng)*c);return yv*Math.acos(Math.min(w,1))}static convert(l){if(l instanceof rf)return l;if(Array.isArray(l)&&(l.length===2||l.length===3))return new rf(Number(l[0]),Number(l[1]));if(!Array.isArray(l)&&typeof l=="object"&&l!==null)return new rf(Number("lng"in l?l.lng:l.lon),Number(l.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: <lng>, lat: <lat>}, an object {lon: <lng>, lat: <lat>}, or an array of [<lng>, <lat>]")}}const q3=2*Math.PI*yv;function j3(d){return q3*Math.cos(d*Math.PI/180)}function t2(d){return(180+d)/360}function n2(d){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+d*Math.PI/360)))/360}function U3(d,l){return d/j3(l)}function H3(d){return 360*d-180}function vv(d){return 360/Math.PI*Math.atan(Math.exp((180-360*d)*Math.PI/180))-90}function W3(d,l){return d*j3(vv(l))}class Yu{constructor(l,c,p=0){this.x=+l,this.y=+c,this.z=+p}static fromLngLat(l,c=0){const p=rf.convert(l);return new Yu(t2(p.lng),n2(p.lat),U3(c,p.lat))}toLngLat(){return new rf(H3(this.x),vv(this.y))}toAltitude(){return W3(this.z,this.y)}meterInMercatorCoordinateUnits(){return 1/q3*(l=vv(this.y),1/Math.cos(l*Math.PI/180));var l}}function G3(d,l,c){var p=2*Math.PI*6378137/256/Math.pow(2,c);return[d*p-2*Math.PI*6378137/2,l*p-2*Math.PI*6378137/2]}class r2{constructor(l,c,p){if(!(function(g,w,k){return!(g<0||g>25||k<0||k>=Math.pow(2,g)||w<0||w>=Math.pow(2,g))})(l,c,p))throw new Error(`x=${c}, y=${p}, z=${l} outside of bounds. 0<=x<${Math.pow(2,l)}, 0<=y<${Math.pow(2,l)} 0<=z<=25 `);this.z=l,this.x=c,this.y=p,this.key=Pm(0,l,l,c,p)}equals(l){return this.z===l.z&&this.x===l.x&&this.y===l.y}url(l,c,p){const g=(k=this.y,P=this.z,R=G3(256*(w=this.x),256*(k=Math.pow(2,P)-k-1),P),L=G3(256*(w+1),256*(k+1),P),R[0]+","+R[1]+","+L[0]+","+L[1]);var w,k,P,R,L;const j=(function(F,te,G){let oe="";for(let ue=F;ue>0;ue--){const ve=1<<ue-1;oe+=(te&ve?1:0)+(G&ve?2:0)}return oe})(this.z,this.x,this.y);return l[(this.x+this.y)%l.length].replace(/{prefix}/g,(this.x%16).toString(16)+(this.y%16).toString(16)).replace(/{z}/g,String(this.z)).replace(/{x}/g,String(this.x)).replace(/{y}/g,String(p==="tms"?Math.pow(2,this.z)-this.y-1:this.y)).replace(/{ratio}/g,c>1?"@2x":"").replace(/{quadkey}/g,j).replace(/{bbox-epsg-3857}/g,g)}isChildOf(l){const c=this.z-l.z;return c>0&&l.x===this.x>>c&&l.y===this.y>>c}getTilePoint(l){const c=Math.pow(2,this.z);return new f((l.x*c-this.x)*$e,(l.y*c-this.y)*$e)}toString(){return`${this.z}/${this.x}/${this.y}`}}class Y3{constructor(l,c){this.wrap=l,this.canonical=c,this.key=Pm(l,c.z,c.z,c.x,c.y)}}class Os{constructor(l,c,p,g,w){if(this.terrainRttPosMatrix32f=null,l<p)throw new Error(`overscaledZ should be >= z; overscaledZ = ${l}; z = ${p}`);this.overscaledZ=l,this.wrap=c,this.canonical=new r2(p,+g,+w),this.key=Pm(c,l,p,g,w)}clone(){return new Os(this.overscaledZ,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)}equals(l){return this.overscaledZ===l.overscaledZ&&this.wrap===l.wrap&&this.canonical.equals(l.canonical)}scaledTo(l){if(l>this.overscaledZ)throw new Error(`targetZ > this.overscaledZ; targetZ = ${l}; overscaledZ = ${this.overscaledZ}`);const c=this.canonical.z-l;return l>this.canonical.z?new Os(l,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new Os(l,this.wrap,l,this.canonical.x>>c,this.canonical.y>>c)}isOverscaled(){return this.overscaledZ>this.canonical.z}calculateScaledKey(l,c){if(l>this.overscaledZ)throw new Error(`targetZ > this.overscaledZ; targetZ = ${l}; overscaledZ = ${this.overscaledZ}`);const p=this.canonical.z-l;return l>this.canonical.z?Pm(this.wrap*+c,l,this.canonical.z,this.canonical.x,this.canonical.y):Pm(this.wrap*+c,l,l,this.canonical.x>>p,this.canonical.y>>p)}isChildOf(l){if(l.wrap!==this.wrap||this.overscaledZ-l.overscaledZ<=0)return!1;if(l.overscaledZ===0)return this.overscaledZ>0;const c=this.canonical.z-l.canonical.z;return!(c<0)&&l.canonical.x===this.canonical.x>>c&&l.canonical.y===this.canonical.y>>c}children(l){if(this.overscaledZ>=l)return[new Os(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];const c=this.canonical.z+1,p=2*this.canonical.x,g=2*this.canonical.y;return[new Os(c,this.wrap,c,p,g),new Os(c,this.wrap,c,p+1,g),new Os(c,this.wrap,c,p,g+1),new Os(c,this.wrap,c,p+1,g+1)]}isLessThan(l){return this.wrap<l.wrap||!(this.wrap>l.wrap)&&(this.overscaledZ<l.overscaledZ||!(this.overscaledZ>
24l.overscaledZ)&&(this.canonical.x<l.canonical.x||!(this.canonical.x>l.canonical.x)&&this.canonical.y<l.canonical.y))}wrapped(){return new Os(this.overscaledZ,0,this.canonical.z,this.canonical.x,this.canonical.y)}unwrapTo(l){return new Os(this.overscaledZ,l,this.canonical.z,this.canonical.x,this.canonical.y)}overscaleFactor(){return Math.pow(2,this.overscaledZ-this.canonical.z)}toUnwrapped(){return new Y3(this.wrap,this.canonical)}toString(){return`${this.overscaledZ}/${this.canonical.x}/${this.canonical.y}`}getTilePoint(l){return this.canonical.getTilePoint(new Yu(l.x-this.wrap,l.y))}normalizeCoordinates(l,c,p=8192){if(l>=0&&l<p&&c>=0&&c<p)return{tileID:this,x:l,y:c};const g=Math.floor(l/p),w=Math.floor(c/p),k=l-g*p,P=c-w*p,R=this.canonical.z,L=1<<R,j=this.canonical.y+w;if(j<0||j>=L)return null;let F=this.canonical.x+g,te=this.wrap;return F<0?(te-=Math.ceil(-F/L),F=(F%L+L)%L):F>=L&&(te+=Math.floor(F/L),F%=L),{tileID:new Os(this.overscaledZ,te,R,F,j),x:k,y:P}}}function Pm(d,l,c,p,g){(d*=2)<0&&(d=-1*d-1);const w=1<<c;return(w*w*d+w*g+p).toString(36)+c.toString(36)+l.toString(36)}bn("CanonicalTileID",r2),bn("OverscaledTileID",Os,{omit:["terrainRttPosMatrix32f"]});class af{constructor(){this.minX=1/0,this.maxX=-1/0,this.minY=1/0,this.maxY=-1/0}extend(l){return this.minX=Math.min(this.minX,l.x),this.minY=Math.min(this.minY,l.y),this.maxX=Math.max(this.maxX,l.x),this.maxY=Math.max(this.maxY,l.y),this}expandBy(l){return this.minX-=l,this.minY-=l,this.maxX+=l,this.maxY+=l,(this.minX>this.maxX||this.minY>this.maxY)&&(this.minX=1/0,this.maxX=-1/0,this.minY=1/0,this.maxY=-1/0),this}shrinkBy(l){return this.expandBy(-l)}map(l){const c=new af;return c.extend(l(new f(this.minX,this.minY))),c.extend(l(new f(this.maxX,this.minY))),c.extend(l(new f(this.minX,this.maxY))),c.extend(l(new f(this.maxX,this.maxY))),c}static fromPoints(l){const c=new af;for(const p of l)c.extend(p);return c}contains(l){return l.x>=this.minX&&l.x<=this.maxX&&l.y>=this.minY&&l.y<=this.maxY}empty(){return this.minX>this.maxX}width(){return this.maxX-this.minX}height(){return this.maxY-this.minY}covers(l){return!this.empty()&&!l.empty()&&l.minX>=this.minX&&l.maxX<=this.maxX&&l.minY>=this.minY&&l.maxY<=this.maxY}intersects(l){return!this.empty()&&!l.empty()&&l.minX<=this.maxX&&l.maxX>=this.minX&&l.minY<=this.maxY&&l.maxY>=this.minY}}class i2{constructor(l){this._stringToNumber={},this._numberToString=[];for(let c=0;c<l.length;c++){const p=l[c];this._stringToNumber[p]=c,this._numberToString[c]=p}}encode(l){return this._stringToNumber[l]}decode(l){if(l>=this._numberToString.length)throw new Error(`Out of bounds. Index requested n=${l} can't be >= this._numberToString.length ${this._numberToString.length}`);return this._numberToString[l]}}class Z3{constructor(l,c,p,g,w){this.type="Feature",this._vectorTileFeature=l,this._x=p,this._y=g,this._z=c,this.properties=l.properties,this.id=w}projectPoint(l,c,p,g){return[360*(l.x+c)/g-180,360/Math.PI*Math.atan(Math.exp((1-2*(l.y+p)/g)*Math.PI))-90]}projectLine(l,c,p,g){return l.map((w=>this.projectPoint(w,c,p,g)))}get geometry(){if(this._geometry)return this._geometry;const l=this._vectorTileFeature,c=l.extent*Math.pow(2,this._z),p=l.extent*this._x,g=l.extent*this._y,w=l.loadGeometry();switch(l.type){case 1:{const k=[];for(const R of w)k.push(R[0]);const P=this.projectLine(k,p,g,c);this._geometry=k.length===1?{type:"Point",coordinates:P[0]}:{type:"MultiPoint",coordinates:P};break}case 2:{const k=w.map((P=>this.projectLine(P,p,g,c)));this._geometry=k.length===1?{type:"LineString",coordinates:k[0]}:{type:"MultiLineString",coordinates:k};break}case 3:{const k=l3(w),P=[];for(const R of k)P.push(R.map((L=>this.projectLine(L,p,g,c))));this._geometry=P.length===1?{type:"Polygon",coordinates:P[0]}:{type:"MultiPolygon",coordinates:P};break}default:throw new Error(`unknown feature type: ${l.type}`)}return this._geometry}set geometry(l){this._geometry=l}toJSON(){const l={geometry:this.geometry};for(const c in this)c!=="_geometry"&&c!=="_vectorTileFeature"&&c!=="_x"&&c!=="_y"&&c!=="_z"&&(l[c]=this[c]);return l}}class $m{constructor(l,c,p){this._name=l,this.dataBuffer=c,typeof p=="number"?this._size=p:(this.nullabilityBuffer=p,this._size=p.size())}getValue(l){return this.nullabilityBuffer&&!this.nullabilityBuffer.get(l)?null:this.getValueFromBuffer(l)}has(l){return this.nullabilityBuffer?.get(l)||!this.nullabilityBuffer}get name(){return this._name}get size(){return this._size}}class _v extends $m{}class a2 extends _v{getValueFromBuffer(l){return this.dataBuffer[l]}}class o2 extends _v{getValueFromBuffer(l){return this.dataBuffer[l]}}class K3 extends $m{constructor(l,c,p,g){super(l,c,g),this.delta=p}}class s2 extends K3{constructor(l,c,p,g){super(l,Int32Array.of(c),p,g)}getValueFromBuffer(l){return this.dataBuffer[0]+l*this.delta}}class l2 extends $m{constructor(l,c,p,g){super(l,g?Int32Array.of(c):Uint32Array.of(c),p)}getValueFromBuffer(l){return this.dataBuffer[0]}}class AE{constructor(l,c,p,g,w=4096){this._name=l,this._geometryVector=c,this._idVector=p,this._propertyVectors=g,this._extent=w}get name(){return this._name}get idVector(){return this._idVector}get geometryVector(){return this._geometryVector}get propertyVectors(){return this._propertyVectors}getPropertyVector(l){return this.propertyVectorsMap||(this.propertyVectorsMap=new Map(this._propertyVectors.map((c=>[c.name,c])))),this.propertyVectorsMap.get(l)}get numFeatures(){return this.geometryVector.numGeometries}get extent(){return this._extent}getFeatures(){const l=[],c=this.geometryVector.getGeometries();for(let p=0;p<this.numFeatures;p++){let g;if(this.idVector){const P=this.idVector.getValue(p);g=this.containsMaxSafeIntegerValues(this.idVector)&&P!==null?Number(P):P}
24const w={coordinates:c[p],type:this.geometryVector.geometryType(p)},k={};for(const P of this.propertyVectors){if(!P)continue;const R=P.name,L=P.getValue(p);L!==null&&(k[R]=L)}l.push({id:g,geometry:w,properties:k})}return l}containsMaxSafeIntegerValues(l){return l instanceof a2||l instanceof l2||l instanceof s2||l instanceof o2}}class X3{constructor(l){this.value=l}get(){return this.value}set(l){this.value=l}increment(){return this.value++}add(l){this.value+=l}}var br,of;(function(d){d.NONE="NONE",d.DELTA="DELTA",d.COMPONENTWISE_DELTA="COMPONENTWISE_DELTA",d.RLE="RLE",d.MORTON="MORTON",d.PDE="PDE"})(br||(br={})),(function(d){d.NONE="NONE",d.FAST_PFOR="FAST_PFOR",d.VARINT="VARINT",d.ALP="ALP"})(of||(of={}));const u2=new Uint32Array(33);u2[0]=0;for(let d=1;d<=32;d++)u2[d]=d===32?4294967295:4294967295>>>32-d;const c2=u2,od=256;function d2(d,l){return d-d%l}function IE(d){const l=d>>>0;return((255&l)<<24|(65280&l)<<8|l>>>8&65280|l>>>24&255)>>>0}const f2=(function(){if(!Number.isFinite(65536))return 65536;const d=d2(Math.floor(65536),od);return d===0?od:d})(),DE=3*f2/od+f2|0;function J3(){const d=new Uint8Array(DE);return{dataToBePacked:new Array(33),dataPointers:new Int32Array(33),byteContainer:d,byteContainerI32:new Int32Array(d.buffer,d.byteOffset,d.byteLength>>>2),exceptionSizes:new Int32Array(33)}}function LE(d,l,c,p,g){switch(g){case 1:(function(w,k,P,R){let L=R,j=k;for(let F=0;F<8;F++){const te=w[j++]>>>0;P[L++]=te>>>0&1,P[L++]=te>>>1&1,P[L++]=te>>>2&1,P[L++]=te>>>3&1,P[L++]=te>>>4&1,P[L++]=te>>>5&1,P[L++]=te>>>6&1,P[L++]=te>>>7&1,P[L++]=te>>>8&1,P[L++]=te>>>9&1,P[L++]=te>>>10&1,P[L++]=te>>>11&1,P[L++]=te>>>12&1,P[L++]=te>>>13&1,P[L++]=te>>>14&1,P[L++]=te>>>15&1,P[L++]=te>>>16&1,P[L++]=te>>>17&1,P[L++]=te>>>18&1,P[L++]=te>>>19&1,P[L++]=te>>>20&1,P[L++]=te>>>21&1,P[L++]=te>>>22&1,P[L++]=te>>>23&1,P[L++]=te>>>24&1,P[L++]=te>>>25&1,P[L++]=te>>>26&1,P[L++]=te>>>27&1,P[L++]=te>>>28&1,P[L++]=te>>>29&1,P[L++]=te>>>30&1,P[L++]=te>>>31&1}})(d,l,c,p);break;case 2:(function(w,k,P,R){let L=R,j=k;for(let F=0;F<8;F++){const te=w[j++]>>>0,G=w[j++]>>>0;P[L++]=te>>>0&3,P[L++]=te>>>2&3,P[L++]=te>>>4&3,P[L++]=te>>>6&3,P[L++]=te>>>8&3,P[L++]=te>>>10&3,P[L++]=te>>>12&3,P[L++]=te>>>14&3,P[L++]=te>>>16&3,P[L++]=te>>>18&3,P[L++]=te>>>20&3,P[L++]=te>>>22&3,P[L++]=te>>>24&3,P[L++]=te>>>26&3,P[L++]=te>>>28&3,P[L++]=te>>>30&3,P[L++]=G>>>0&3,P[L++]=G>>>2&3,P[L++]=G>>>4&3,P[L++]=G>>>6&3,P[L++]=G>>>8&3,P[L++]=G>>>10&3,P[L++]=G>>>12&3,P[L++]=G>>>14&3,P[L++]=G>>>16&3,P[L++]=G>>>18&3,P[L++]=G>>>20&3,P[L++]=G>>>22&3,P[L++]=G>>>24&3,P[L++]=G>>>26&3,P[L++]=G>>>28&3,P[L++]=G>>>30&3}})(d,l,c,p);break;case 3:(function(w,k,P,R){let L=R,j=k;for(let F=0;F<8;F++){const te=w[j++]>>>0,G=w[j++]>>>0,oe=w[j++]>>>0;P[L++]=te>>>0&7,P[L++]=te>>>3&7,P[L++]=te>>>6&7,P[L++]=te>>>9&7,P[L++]=te>>>12&7,P[L++]=te>>>15&7,P[L++]=te>>>18&7,P[L++]=te>>>21&7,P[L++]=te>>>24&7,P[L++]=te>>>27&7,P[L++]=7&(te>>>30|(1&G)<<2),P[L++]=G>>>1&7,P[L++]=G>>>4&7,P[L++]=G>>>7&7,P[L++]=G>>>10&7,P[L++]=G>>>13&7,P[L++]=G>>>16&7,P[L++]=G>>>19&7,P[L++]=G>>>22&7,P[L++]=G>>>25&7,P[L++]=G>>>28&7,P[L++]=7&(G>>>31|(3&oe)<<1),P[L++]=oe>>>2&7,P[L++]=oe>>>5&7,P[L++]=oe>>>8&7,P[L++]=oe>>>11&7,P[L++]=oe>>>14&7,P[L++]=oe>>>17&7,P[L++]=oe>>>20&7,P[L++]=oe>>>23&7,P[L++]=oe>>>26&7,P[L++]=oe>>>29&7}})(d,l,c,p);break;case 4:(function(w,k,P,R){let L=R,j=k;for(let F=0;F<8;F++){const te=w[j++]>>>0,G=w[j++]>>>0,oe=w[j++]>>>0,ue=w[j++]>>>0;P[L++]=te>>>0&15,P[L++]=te>>>4&15,P[L++]=te>>>8&15,P[L++]=te>>>12&15,P[L++]=te>>>16&15,P[L++]=te>>>20&15,P[L++]=te>>>24&15,P[L++]=te>>>28&15,P[L++]=G>>>0&15,P[L++]=G>>>4&15,P[L++]=G>>>8&15,P[L++]=G>>>12&15,P[L++]=G>>>16&15,P[L++]=G>>>20&15,P[L++]=G>>>24&15,P[L++]=G>>>28&15,P[L++]=oe>>>0&15,P[L++]=oe>>>4&15,P[L++]=oe>>>8&15,P[L++]=oe>>>12&15,P[L++]=oe>>>16&15,P[L++]=oe>>>20&15,P[L++]=oe>>>24&15,P[L++]=oe>>>28&15,P[L++]=ue>>>0&15,P[L++]=ue>>>4&15,P[L++]=ue>>>8&15,P[L++]=ue>>>12&15,P[L++]=ue>>>16&15,P[L++]=ue>>>20&15,P[L++]=ue>>>24&15,P[L++]=ue>>>28&15}})(d,l,c,p);break;case 5:(function(w,k,P,R){let L=R,j=k;for(let F=0;F<8;F++){const te=w[j++]>>>0,G=w[j++]>>>0,oe=w[j++]>>>0,ue=w[j++]>>>0,ve=w[j++]>>>0;P[L++]=te>>>0&31,P[L++]=te>>>5&31,P[L++]=te>>>10&31,P[L++]=te>>>15&31,P[L++]=te>>>20&31,P[L++]=te>>>25&31,P[L++]=31&(te>>>30|(7&G)<<2),P[L++]=G>>>3&31,P[L++]=G>>>8&31,P[L++]=G>>>
2413&31,P[L++]=G>>>18&31,P[L++]=G>>>23&31,P[L++]=31&(G>>>28|(1&oe)<<4),P[L++]=oe>>>1&31,P[L++]=oe>>>6&31,P[L++]=oe>>>11&31,P[L++]=oe>>>16&31,P[L++]=oe>>>21&31,P[L++]=oe>>>26&31,P[L++]=31&(oe>>>31|(15&ue)<<1),P[L++]=ue>>>4&31,P[L++]=ue>>>9&31,P[L++]=ue>>>14&31,P[L++]=ue>>>19&31,P[L++]=ue>>>24&31,P[L++]=31&(ue>>>29|(3&ve)<<3),P[L++]=ve>>>2&31,P[L++]=ve>>>7&31,P[L++]=ve>>>12&31,P[L++]=ve>>>17&31,P[L++]=ve>>>22&31,P[L++]=ve>>>27&31}})(d,l,c,p);break;case 6:(function(w,k,P,R){let L=R,j=k;for(let F=0;F<8;F++){const te=w[j++]>>>0,G=w[j++]>>>0,oe=w[j++]>>>0,ue=w[j++]>>>0,ve=w[j++]>>>0,_e=w[j++]>>>0;P[L++]=te>>>0&63,P[L++]=te>>>6&63,P[L++]=te>>>12&63,P[L++]=te>>>18&63,P[L++]=te>>>24&63,P[L++]=63&(te>>>30|(15&G)<<2),P[L++]=G>>>4&63,P[L++]=G>>>10&63,P[L++]=G>>>16&63,P[L++]=G>>>22&63,P[L++]=63&(G>>>28|(3&oe)<<4),P[L++]=oe>>>2&63,P[L++]=oe>>>8&63,P[L++]=oe>>>14&63,P[L++]=oe>>>20&63,P[L++]=oe>>>26&63,P[L++]=ue>>>0&63,P[L++]=ue>>>6&63,P[L++]=ue>>>12&63,P[L++]=ue>>>18&63,P[L++]=ue>>>24&63,P[L++]=63&(ue>>>30|(15&ve)<<2),P[L++]=ve>>>4&63,P[L++]=ve>>>10&63,P[L++]=ve>>>16&63,P[L++]=ve>>>22&63,P[L++]=63&(ve>>>28|(3&_e)<<4),P[L++]=_e>>>2&63,P[L++]=_e>>>8&63,P[L++]=_e>>>14&63,P[L++]=_e>>>20&63,P[L++]=_e>>>26&63}})(d,l,c,p);break;case 7:(function(w,k,P,R){let L=R,j=k;for(let F=0;F<8;F++){const te=w[j++]>>>0,G=w[j++]>>>0,oe=w[j++]>>>0,ue=w[j++]>>>0,ve=w[j++]>>>0,_e=w[j++]>>>0,Me=w[j++]>>>0;P[L++]=te>>>0&127,P[L++]=te>>>7&127,P[L++]=te>>>14&127,P[L++]=te>>>21&127,P[L++]=127&(te>>>28|(7&G)<<4),P[L++]=G>>>3&127,P[L++]=G>>>10&127,P[L++]=G>>>17&127,P[L++]=G>>>24&127,P[L++]=127&(G>>>31|(63&oe)<<1),P[L++]=oe>>>6&127,P[L++]=oe>>>13&127,P[L++]=oe>>>20&127,P[L++]=127&(oe>>>27|(3&ue)<<5),P[L++]=ue>>>2&127,P[L++]=ue>>>9&127,P[L++]=ue>>>16&127,P[L++]=ue>>>23&127,P[L++]=127&(ue>>>30|(31&ve)<<2),P[L++]=ve>>>5&127,P[L++]=ve>>>12&127,P[L++]=ve>>>19&127,P[L++]=127&(ve>>>26|(1&_e)<<6),P[L++]=_e>>>1&127,P[L++]=_e>>>8&127,P[L++]=_e>>>15&127,P[L++]=_e>>>22&127,P[L++]=127&(_e>>>29|(15&Me)<<3),P[L++]=Me>>>4&127,P[L++]=Me>>>11&127,P[L++]=Me>>>18&127,P[L++]=Me>>>25&127}})(d,l,c,p);break;case 8:(function(w,k,P,R){let L=R,j=k;for(let F=0;F<8;F++){const te=w[j++]>>>0,G=w[j++]>>>0,oe=w[j++]>>>0,ue=w[j++]>>>0,ve=w[j++]>>>0,_e=w[j++]>>>0,Me=w[j++]>>>0,Te=w[j++]>>>0;P[L++]=te>>>0&255,P[L++]=te>>>8&255,P[L++]=te>>>16&255,P[L++]=te>>>24&255,P[L++]=G>>>0&255,P[L++]=G>>>8&255,P[L++]=G>>>16&255,P[L++]=G>>>24&255,P[L++]=oe>>>0&255,P[L++]=oe>>>8&255,P[L++]=oe>>>16&255,P[L++]=oe>>>24&255,P[L++]=ue>>>0&255,P[L++]=ue>>>8&255,P[L++]=ue>>>16&255,P[L++]=ue>>>24&255,P[L++]=ve>>>0&255,P[L++]=ve>>>8&255,P[L++]=ve>>>16&255,P[L++]=ve>>>24&255,P[L++]=_e>>>0&255,P[L++]=_e>>>8&255,P[L++]=_e>>>16&255,P[L++]=_e>>>24&255,P[L++]=Me>>>0&255,P[L++]=Me>>>8&255,P[L++]=Me>>>16&255,P[L++]=Me>>>24&255,P[L++]=Te>>>0&255,P[L++]=Te>>>8&255,P[L++]=Te>>>16&255,P[L++]=Te>>>24&255}})(d,l,c,p);break;case 16:(function(w,k,P,R){let L=R,j=k;for(let F=0;F<128;F++){const te=w[j++]>>>0;P[L++]=65535&te,P[L++]=te>>>16&65535}})(d,l,c,p);break;default:(function(w,k,P,R,L){const j=c2[L]>>>0;let F=k,te=0,G=w[F]>>>0,oe=R;for(let ue=0;ue<8;ue++){for(let ve=0;ve<32;ve++)if(te+L<=32)P[oe+ve]=G>>>te&j,te+=L,te===32&&(te=0,F++,ve!==31&&(G=w[F]>>>0));else{const _e=32-te,Me=G>>>te;F++,G=w[F]>>>0;const Te=L-_e;P[oe+ve]=(Me|(G&-1>>>32-Te>>>0)<<_e)&j,te=Te}oe+=32,te=0,ue<7&&(G=w[F]>>>0)}})(d,l,c,p,g)}return l+(g<<3)|0}function OE(d,l,c,p){if(c+2>l)throw new Error(`FastPFOR decode: byteContainer underflow at block=${p} (need 2 bytes for [bitWidth, exceptionCount], bytePos=${c}, byteSize=${l})`);const g=d[c++],w=d[c++];if(g>32)throw new Error(`FastPFOR decode: invalid bitWidth=${g} at block=${p} (expected 0..32). This likely indicates corrupted or truncated input.`);return{bitWidth:g,exceptionCount:w,bytePosIn:c}}function RE(d,l,c,p,g,w,k,P,R){const{maxBits:L,exceptionBitWidth:j,bytePosIn:F}=(function(ve,_e,Me,Te,Ae,ze){if(Me+1>_e)throw new Error(`FastPFOR decode: exception header underflow at block=${ze} (need 1 byte for maxBits, bytePos=${Me}, byteSize=${_e})`);const We=ve[Me++];if(We<Te||We>32)throw new Error(`FastPFOR decode: invalid maxBits=${We} at block=${ze} (bitWidth=${Te}, expected ${Te}..32)`);const dt=We-Te|0;if(dt<1||dt>32)throw new Error(`FastPFOR decode: invalid exceptionBitWidth=${dt} at block=${ze} (bitWidth=${Te}, maxBits=${We})`);if(Me+Ae>_e)throw new Error(`FastPFOR decode: exception positions underflow at block=${ze} (need=${Ae}, have=${_e-Me})`);return{maxBits:We,exceptionBitWidth:dt,bytePosIn:Me}})(g,w,k,c,p,R);if(k=F,j===1){const ve=1<<c;for(let _e=0;_e<p;_e=_e+1|0)d[g[k++]+l|0]|=ve;return k}const te=P.dataToBePacked[j];if(!te)throw new Error(`FastPFOR decode: missing exception stream for exceptionBitWidth=${j} (bitWidth=${c}, maxBits=${L}) at block ${R}`);const G=P.dataPointers;let oe=0|G[j];const ue=0|P.exceptionSizes[j];if(oe+p>ue)throw new Error(`FastPFOR decode: exception stream overflow for exceptionBitWidth=${j} (ptr=${oe}, need ${p}, size=${ue}) at block ${R}`);for(let ve=0;ve<p;ve=ve+1|0){const _e=g[k++],Me=0|te[oe++];d[_e+l|0]|=Me<<c}return G[j]=oe,k}function BE(d,l,c,p,g,w){const k=0|c,P=0|d[k];if(P<=0||k+P>d.length-1)throw new Error(`FastPFOR decode: invalid whereMeta=${P} at pageStart=${k} (expected > 0 and pageStart+whereMeta < encoded.length=${d.length})`);const R=k+1|0,L=k+P|0,j=d[L]>>>0,F=j+3>>>2,te=L+1,G=te+F;if(G>=d.length)throw new Error(`FastPFOR decode: invalid byteSize=${j} (metaInts=${F}, pageStart=${k}, packedEnd=${L}, byteContainerStart=${te}) causes bitmapPos=${G} out of bounds (encoded.length=${d.length})`);const oe=(function(_e,Me,Te,Ae){Ae.byteContainer.length<Te&&(Ae.byteContainer=new Uint8Array(2*Te),Ae.byteContainerI32=void 0);const ze=Ae.byteContainer,We=Te>>>2;if(3&ze.byteOffset)for(let mt=0;mt<We;mt=mt+1|0){const Lt=0|_e[Me+mt|0],Et=mt<<2;ze[Et]=255&Lt,ze[Et+1|0]=Lt>>>8&255,ze[Et+2|0]=Lt>>>16&255,ze[Et+3|0]=Lt>>>24&255}else{let mt=Ae.byteContainerI32;(!mt||mt.buffer!==ze.buffer||mt.byteOffset!==ze.byteOffset||mt.length<We)&&(mt=Ae.byteContainerI32=new Int32Array(ze.buffer,ze.byteOffset,ze.byteLength>>>2)),mt.set(_e.subarray(Me,Me+We))}const dt=3&Te;if(dt>0){const mt=0|_e[Me+We|0],Lt=We<<2;for(let Et=0;Et<dt;Et=Et+1|0)ze[Lt+Et|0]=mt>>>(Et<<3)&255}return ze})(d,te,j,w),ue=j,ve=(function(_e,Me,Te){const Ae=0|_e[Me++],ze=Te.dataToBePacked;for(let We=2;We<=32;We=We+1|0){if(!(Ae>>>We-1&1))continue;if(Me>=_e.length)throw new Error(`FastPFOR decode: truncated exception stream header (bitWidth=${We}, streamWordIndex=${Me}, needWords=1, availableWords=${_e.length-Me}, encodedWords=${_e.length})`);const dt=_e[Me++]>>>0,mt=d2(dt+31,32),Lt=dt*We+31>>>5;if(Me+Lt>_e.length)throw new Error(`FastPFOR decode: truncated exception stream (bitWidth=${We}, size=${dt}, streamWordIndex=${Me}, needWords=${Lt}, availableWords=${_e.length-Me}, encodedWords=${_e.length})`);let Et=ze[We];(!Et||Et.length<mt)&&(Et=ze[We]=new Uint32Array(mt));let jt=0;for(;jt<dt;jt=jt+32|0)FE(_e,Me,Et,jt,We),Me=Me+We|0;Me=Me-((jt-dt|0)*We>>>5)|0,Te.exceptionSizes[We]=dt}return Me})(d,G,w);return w.dataPointers.fill(0),(function(_e,Me,Te,Ae,ze,We,dt,mt,Lt,Et){let jt=0|Te,Ut=0;for(let Bt=0;Bt<dt;Bt=Bt+1|0){const Mt=OE(mt,Lt,Ut,Bt);Ut=Mt.bytePosIn;const on=Mt.bitWidth,yn=Mt.exceptionCount,hn=We+Bt*od|0;switch(on){case 0:ze.fill(0,hn,hn+od);break;case 32:for(let cn=0;cn<od;cn=cn+1|0)ze[hn+cn|0]=0|_e[jt+cn|0];jt=jt+od|0;break;default:jt=LE(_e,jt,ze,hn,on)}yn>0&&(Ut=RE(ze,hn,on,yn,mt,Lt,Ut,Et,Bt))}if(jt!==Ae)throw new Error(`FastPFOR decode: packed region mismatch (pageStart=${Me}, packedStart=${Te}, consumedPackedEnd=${jt}, expectedPackedEnd=${Ae}, packedWords=${Ae-Te}, encoded.length=${_e.length})`)})(d,k,R,L,l,0|p,g/od|0,oe,ue,w),ve}function FE(d,l,c,p,g){switch(g){case 2:return void(function(L,j,F,te){let G=te;const oe=L[j]>>>0,ue=L[j+1]>>>0;F[G++]=oe>>>0&3,F[G++]=oe>>>2&3,F[G++]=oe>>>4&3,F[G++]=oe>>>6&3,F[G++]=oe>>>8&3,F[G++]=oe>>>10&3,F[G++]=oe>>>12&3,F[G++]=oe>>>14&3,F[G++]=oe>>>16&3,F[G++]=oe>>>18&3,F[G++]=oe>>>20&3,F[G++]=oe>>>22&3,F[G++]=oe>>>24&3,F[G++]=oe>>>26&3,F[G++]=oe>>>28&3,F[G++]=oe>>>30&3,F[G++]=ue>>>0&3,F[G++]=ue>>>2&3,F[G++]=ue>>>4&3,F[G++]=ue>>>6&3,F[G++]=ue>>>8&3,F[G++]=ue>>>10&3,F[G++]=ue>>>12&3,F[G++]=ue>>>14&3,F[G++]=ue>>>16&3,F[G++]=ue>>>18&3,F[G++]=ue>>>20&3,F[G++]=ue>>>22&3,F[G++]=ue>>>24&3,F[G++]=ue>>>26&3,F[G++]=ue>>>28&3,F[G]=ue>>>30&3})(d,l,c,p);case 3:return void(function(L,j,F,te){let G=te;const oe=L[j]>>>0,ue=L[j+1]>>>0,ve=L[j+2]>>>0;F[G++]=oe>>>0&7,F[G++]=oe>>>3&7,F[G++]=oe>>>6&7,F[G++]=oe>>>9&7,F[G++]=oe>>>12&7,F[G++]=oe>>>15&7,F[G++]=oe>>>18&7,F[G++]=oe>>>21&7,F[G++]=oe>>>24&7,F[G++]=oe>>>27&7,F[G++]=7&(oe>>>30|(1&ue)<<2),F[G++]=ue>>>1&7,F[G++]=ue>>>4&7,F[G++]=ue>>>7&7,F[G++]=ue>>>10&7,F[G++]=ue>>>13&7,F[G++]=ue>>>16&7,F[G++]=ue>>>19&7,F[G++]=ue>>>22&7,F[G++]=ue>>>25&7,F[G++]=ue>>>28&7,F[G++]=7&(ue>>>31|(3&ve)<<1),F[G++]=ve>>>2&7,F[G++]=ve>>>5&7,F[G++]=ve>>>8&7,F[G++]=ve>>>11&7,F[G++]=ve>>>14&7,F[G++]=ve>>>17&7,F[G++]=ve>>>20&7,F[G++]=ve>>>23&7,F[G++]=ve>>>26&7,F[G]=ve>>>29&7})(d,l,c,p);case 4:return void(function(L,j,F,te){let G=te;const oe=L[j]>>>0,ue=L[j+1]>>>0,ve=L[j+2]>>>0,_e=L[j+3]>>>0;F[G++]=oe>>>0&15,F[G++]=oe>>>4&15,F[G++]=oe>>>8&15,F[G++]=oe>>>12&15,F[G++]=oe>>>16&15,F[G++]=oe>>>20&15,F[G++]=oe>>>24&15,F[G++]=oe>>>28&15,F[G++]=ue>>>0&15,F[G++]=ue>>>4&15,F[G++]=ue>>>8&15,F[G++]=ue>>>12&15,F[G++]=ue>>>16&15,F[G++]=ue>>>20&15,F[G++]=ue>>>24&15,F[G++]=ue>>>28&15,F[G++]=ve>>>0&15,F[G++]=ve>>>4&15,F[G++]=ve>>>8&15,F[G++]=ve>>>12&15,F[G++]=ve>>>16&15,F[G++]=ve>>>20&15,F[G++]=ve>>>24&15,F[G++]=ve>>>28&15,F[G++]=_e>>>0&15,F[G++]=_e>>>4&15,F[G++]=_e>>>8&15,F[G++]=_e>>>12&15,F[G++]=_e>>>16&15,F[G++]=_e>>>20&15,F[G++]=_e>>>24&15,F[G]=_e>>>28&15})(d,l,c,p);case 5:return void(function(L,j,F,te){let G=te;const oe=L[j]>>>0,ue=L[j+1]>>>0,ve=L[j+2]>>>0,_e=L[j+3]>>>0,Me=L[j+4]>>>0;F[G++]=oe>>>0&31,F[G++]=oe>>>5&31,F[G++]=oe>>>10&31,F[G++]=oe>>>15&31,F[G++]=oe>>>20&31,F[G++]=oe>>>25&31,F[G++]=31&(oe>>>30|(7&ue)<<2),F[G++]=ue>>>3&31,F[G++]=ue>>>8&31,F[G++]=ue>>>13&31,F[G++]=ue>>>18&31,F[G++]=ue>>>23&31,F[G++]=31&(ue>>>28|(1&ve)<<4),F[G++]=ve>>>1&31,F[G++]=ve>>>6&31,F[G++]=ve>>>11&31,F[G++]=ve>>>16&31,F[G++]=ve>>>21&31,F[G++]=ve>>>26&31,F[G++]=31&(ve>>>31|(15&_e)<<1),F[G++]=_e>>>4&31,F[G++]=_e>>>9&31,F[G++]=_e>>>14&31,F[G++]=_e>>>19&31,F[G++]=_e>>>24&31,F[G++]=31&(_e>>>29|(3&Me)<<3),F[G++]=Me>>>2&31,F[G++]=Me>>>
247&31,F[G++]=Me>>>12&31,F[G++]=Me>>>17&31,F[G++]=Me>>>22&31,F[G]=Me>>>27&31})(d,l,c,p);case 6:return void(function(L,j,F,te){let G=te;const oe=L[j]>>>0,ue=L[j+1]>>>0,ve=L[j+2]>>>0,_e=L[j+3]>>>0,Me=L[j+4]>>>0,Te=L[j+5]>>>0;F[G++]=oe>>>0&63,F[G++]=oe>>>6&63,F[G++]=oe>>>12&63,F[G++]=oe>>>18&63,F[G++]=oe>>>24&63,F[G++]=63&(oe>>>30|(15&ue)<<2),F[G++]=ue>>>4&63,F[G++]=ue>>>10&63,F[G++]=ue>>>16&63,F[G++]=ue>>>22&63,F[G++]=63&(ue>>>28|(3&ve)<<4),F[G++]=ve>>>2&63,F[G++]=ve>>>8&63,F[G++]=ve>>>14&63,F[G++]=ve>>>20&63,F[G++]=ve>>>26&63,F[G++]=_e>>>0&63,F[G++]=_e>>>6&63,F[G++]=_e>>>12&63,F[G++]=_e>>>18&63,F[G++]=_e>>>24&63,F[G++]=63&(_e>>>30|(15&Me)<<2),F[G++]=Me>>>4&63,F[G++]=Me>>>10&63,F[G++]=Me>>>16&63,F[G++]=Me>>>22&63,F[G++]=63&(Me>>>28|(3&Te)<<4),F[G++]=Te>>>2&63,F[G++]=Te>>>8&63,F[G++]=Te>>>14&63,F[G++]=Te>>>20&63,F[G]=Te>>>26&63})(d,l,c,p);case 7:return void(function(L,j,F,te){let G=te;const oe=L[j]>>>0,ue=L[j+1]>>>0,ve=L[j+2]>>>0,_e=L[j+3]>>>0,Me=L[j+4]>>>0,Te=L[j+5]>>>0,Ae=L[j+6]>>>0;F[G++]=oe>>>0&127,F[G++]=oe>>>7&127,F[G++]=oe>>>14&127,F[G++]=oe>>>21&127,F[G++]=127&(oe>>>28|(7&ue)<<4),F[G++]=ue>>>3&127,F[G++]=ue>>>10&127,F[G++]=ue>>>17&127,F[G++]=ue>>>24&127,F[G++]=127&(ue>>>31|(63&ve)<<1),F[G++]=ve>>>6&127,F[G++]=ve>>>13&127,F[G++]=ve>>>20&127,F[G++]=127&(ve>>>27|(3&_e)<<5),F[G++]=_e>>>2&127,F[G++]=_e>>>9&127,F[G++]=_e>>>16&127,F[G++]=_e>>>23&127,F[G++]=127&(_e>>>30|(31&Me)<<2),F[G++]=Me>>>5&127,F[G++]=Me>>>12&127,F[G++]=Me>>>19&127,F[G++]=127&(Me>>>26|(1&Te)<<6),F[G++]=Te>>>1&127,F[G++]=Te>>>8&127,F[G++]=Te>>>15&127,F[G++]=Te>>>22&127,F[G++]=127&(Te>>>29|(15&Ae)<<3),F[G++]=Ae>>>4&127,F[G++]=Ae>>>11&127,F[G++]=Ae>>>18&127,F[G]=Ae>>>25&127})(d,l,c,p);case 8:return void(function(L,j,F,te){let G=te;const oe=L[j]>>>0,ue=L[j+1]>>>0,ve=L[j+2]>>>0,_e=L[j+3]>>>0,Me=L[j+4]>>>0,Te=L[j+5]>>>0,Ae=L[j+6]>>>0,ze=L[j+7]>>>0;F[G++]=oe>>>0&255,F[G++]=oe>>>8&255,F[G++]=oe>>>16&255,F[G++]=oe>>>24&255,F[G++]=ue>>>0&255,F[G++]=ue>>>8&255,F[G++]=ue>>>16&255,F[G++]=ue>>>24&255,F[G++]=ve>>>0&255,F[G++]=ve>>>8&255,F[G++]=ve>>>16&255,F[G++]=ve>>>24&255,F[G++]=_e>>>0&255,F[G++]=_e>>>8&255,F[G++]=_e>>>16&255,F[G++]=_e>>>24&255,F[G++]=Me>>>0&255,F[G++]=Me>>>8&255,F[G++]=Me>>>16&255,F[G++]=Me>>>24&255,F[G++]=Te>>>0&255,F[G++]=Te>>>8&255,F[G++]=Te>>>16&255,F[G++]=Te>>>24&255,F[G++]=Ae>>>0&255,F[G++]=Ae>>>8&255,F[G++]=Ae>>>16&255,F[G++]=Ae>>>24&255,F[G++]=ze>>>0&255,F[G++]=ze>>>8&255,F[G++]=ze>>>16&255,F[G]=ze>>>24&255})(d,l,c,p);case 9:return void(function(L,j,F,te){let G=te;const oe=L[j]>>>0,ue=L[j+1]>>>0,ve=L[j+2]>>>0,_e=L[j+3]>>>0,Me=L[j+4]>>>0,Te=L[j+5]>>>0,Ae=L[j+6]>>>0,ze=L[j+7]>>>0,We=L[j+8]>>>0;F[G++]=oe>>>0&511,F[G++]=oe>>>9&511,F[G++]=oe>>>18&511,F[G++]=511&(oe>>>27|(15&ue)<<5),F[G++]=ue>>>4&511,F[G++]=ue>>>13&511,F[G++]=ue>>>22&511,F[G++]=511&(ue>>>31|(255&ve)<<1),F[G++]=ve>>>8&511,F[G++]=ve>>>17&511,F[G++]=511&(ve>>>26|(7&_e)<<6),F[G++]=_e>>>3&511,F[G++]=_e>>>12&511,F[G++]=_e>>>21&511,F[G++]=511&(_e>>>30|(127&Me)<<2),F[G++]=Me>>>7&511,F[G++]=Me>>>16&511,F[G++]=511&(Me>>>25|(3&Te)<<7),F[G++]=Te>>>2&511,F[G++]=Te>>>11&511,F[G++]=Te>>>20&511,F[G++]=511&(Te>>>29|(63&Ae)<<3),F[G++]=Ae>>>6&511,F[G++]=Ae>>>15&511,F[G++]=511&(Ae>>>24|(1&ze)<<8),F[G++]=ze>>>1&511,F[G++]=ze>>>10&511,F[G++]=ze>>>19&511,F[G++]=511&(ze>>>28|(31&We)<<4),F[G++]=We>>>5&511,F[G++]=We>>>14&511,F[G]=We>>>23&511})(d,l,c,p);case 10:return void(function(L,j,F,te){let G=te;const oe=L[j]>>>0,ue=L[j+1]>>>0,ve=L[j+2]>>>0,_e=L[j+3]>>>0,Me=L[j+4]>>>0,Te=L[j+5]>>>0,Ae=L[j+6]>>>0,ze=L[j+7]>>>0,We=L[j+8]>>>0,dt=L[j+9]>>>0;F[G++]=oe>>>0&1023,F[G++]=oe>>>10&1023,F[G++]=oe>>>20&1023,F[G++]=1023&(oe>>>30|(255&ue)<<2),F[G++]=ue>>>8&1023,F[G++]=ue>>>18&1023,F[G++]=1023&(ue>>>28|(63&ve)<<4),F[G++]=ve>>>6&1023,F[G++]=ve>>>16&1023,F[G++]=1023&(ve>>>26|(15&_e)<<6),F[G++]=_e>>>4&1023,F[G++]=_e>>>14&1023,F[G++]=1023&(_e>>>24|(3&Me)<<8),F[G++]=Me>>>2&1023,F[G++]=Me>>>12&1023,F[G++]=Me>>>22&1023,F[G++]=Te>>>0&1023,F[G++]=Te>>>10&1023,F[G++]=Te>>>20&1023,F[G++]=1023&(Te>>>30|(255&Ae)<<2),F[G++]=Ae>>>8&1023,F[G++]=Ae>>>18&1023,F[G++]=1023&(Ae>>>28|(63&ze)<<4),F[G++]=ze>>>6&1023,F[G++]=ze>>>16&1023,F[G++]=1023&(ze>>>26|(15&We)<<6),F[G++]=We>>>4&1023,F[G++]=We>>>14&1023,F[G++]=1023&(We>>>24|(3&dt)<<8),F[G++]=dt>>>2&1023,F[G++]=dt>>>12&1023,F[G]=dt>>>22&1023})(d,l,c,p);case 11:return void(function(L,j,F,te){let G=te;const oe=L[j]>>>0,ue=L[j+1]>>>0,ve=L[j+2]>>>0,_e=L[j+3]>>>0,Me=L[j+4]>>>0,Te=L[j+5]>>>0,Ae=L[j+6]>>>0,ze=L[j+7]>>>0,We=L[j+8]>>>0,dt=L[j+9]>>>0,mt=L[j+10]>>>0;F[G++]=oe>>>0&2047,F[G++]=oe>>>11&2047,F[G++]=2047&(oe>>>22|(1&ue)<<10),F[G++]=ue>>>1&2047,F[G++]=ue>>>12&2047,F[G++]=2047&(ue>>>23|(3&ve)<<9),F[G++]=ve>>>2&2047,F[G++]=ve>>>13&2047,F[G++]=2047&(ve>>>24|(7&_e)<<8),F[G++]=_e>>>3&2047,F[G++]=_e>>>14&2047,F[G++]=2047&(_e>>>25|(15&Me)<<7),F[G++]=Me>>>4&2047,F[G++]=Me>>>15&2047,F[G++]=2047&(Me>>>26|(31&Te)<<6),F[G++]=Te>>>5&2047,F[G++]=Te>>>16&2047,F[G++]=2047&(Te>>>27|(63&Ae)<<5),F[G++]=Ae>>>6&2047,F[G++]=Ae>>>17&2047,F[G++]=2047&(Ae>>>28|(127&ze)<<4),F[G++]=ze>>>7&2047,F[G++]=ze>>>18&2047,F[G++]=2047&(ze>>>29|(255&We)<<3),F[G++]=We>>>8&2047,F[G++]=We>>>19&2047,F[G++]=2047&(We>>>30|(511&dt)<<2),F[G++]=dt>>>9&2047,F[G++]=dt>>>20&2047,F[G++]=2047&(dt>>>31|(1023&mt)<<1),F[G++]=mt>>>10&2047,F[G]=mt>>>21&2047})(d,l,c,p);case 12:return void(function(L,j,F,te){let G=te;const oe=L[j]>>>0,ue=L[j+1]>>>0,ve=L[j+2]>>>0,_e=L[j+3]>>>0,Me=L[j+4]>>>0,Te=L[j+5]>>>0,Ae=L[j+6]>>>0,ze=L[j+7]>>>0,We=L[j+8]>>>0,dt=L[j+9]>>>0,mt=L[j+10]>>>0,Lt=L[j+11]>>>0;F[G++]=oe>>>0&4095,F[G++]=oe>>>12&4095,F[G++]=4095&(oe>>>24|(15&ue)<<8),F[G++]=ue>>>4&4095,F[G++]=ue>>>16&4095,F[G++]=4095&(ue>>>28|(255&ve)<<4),F[G++]=ve>>>8&4095,F[G++]=ve>>>20&4095,F[G++]=_e>>>0&4095,F[G++]=_e>>>12&4095,F[G++]=4095&(_e>>>24|(15&Me)<<8),F[G++]=Me>>>4&4095,F[G++]=Me>>>16&4095,F[G++]=4095&(Me>>>28|(255&Te)<<4),F[G++]=Te>>>8&4095,F[G++]=Te>>>20&4095,F[G++]=Ae>>>0&4095,F[G++]=Ae>>>12&4095,F[G++]=4095&(Ae>>>24|(15&ze)<<8),F[G++]=ze>>>4&4095,F[G++]=ze>>>16&4095,F[G++]=4095&(ze>>>28|(255&We)<<4),F[G++]=We>>>8&4095,F[G++]=We>>>20&4095,F[G++]=dt>>>0&4095,F[G++]=dt>>>12&4095,F[G++]=4095&(dt>>>24|(15&mt)<<8),F[G++]=mt>>>4&4095,F[G++]=mt>>>16&4095,F[G++]=4095&(mt>>>28|(255&Lt)<<4),F[G++]=Lt>>>8&4095,F[G]=Lt>>>20&4095})(d,l,c,p);case 16:return void(function(L,j,F,te){let G=te;const oe=L[j]>>>0,ue=L[j+1]>>>0,ve=L[j+2]>>>0,_e=L[j+3]>>>0,Me=L[j+4]>>>0,Te=L[j+5]>>>0,Ae=L[j+6]>>>0,ze=L[j+7]>>>0,We=L[j+8]>>>0,dt=L[j+9]>>>0,mt=L[j+10]>>>0,Lt=L[j+11]>>>0,Et=L[j+12]>>>0,jt=L[j+13]>>>0,Ut=L[j+14]>>>0,Bt=L[j+15]>>>0;F[G++]=oe>>>0&65535,F[G++]=oe>>>16&65535,F[G++]=ue>>>0&65535,F[G++]=ue>>>16&65535,F[G++]=ve>>>0&65535,F[G++]=ve>>>16&65535,F[G++]=_e>>>0&65535,F[G++]=_e>>>16&65535,F[G++]=Me>>>0&65535,F[G++]=Me>>>16&65535,F[G++]=Te>>>0&65535,F[G++]=Te>>>16&65535,F[G++]=Ae>>>0&65535,F[G++]=Ae>>>16&65535,F[G++]=ze>>>0&65535,F[G++]=ze>>>16&65535,F[G++]=We>>>0&65535,F[G++]=We>>>16&65535,F[G++]=dt>>>0&65535,F[G++]=dt>>>16&65535,F[G++]=mt>>>0&65535,F[G++]=mt>>>16&65535,F[G++]=Lt>>>0&65535,F[G++]=Lt>>>16&65535,F[G++]=Et>>>0&65535,F[G++]=Et>>>16&65535,F[G++]=jt>>>0&65535,F[G++]=jt>>>16&65535,F[G++]=Ut>>>0&65535,F[G++]=Ut>>>16&65535,F[G++]=Bt>>>0&65535,F[G]=Bt>>>16&65535})(d,l,c,p);case 32:for(let L=0;L<32;L=L+1|0)c[p+L|0]=0|d[l+L|0];return}const w=c2[g]>>>0;let k=l,P=0,R=d[k]>>>0;for(let L=0;L<32;L++)if(P+g<=32)c[p+L]=R>>>P&w,P+=g,P===32&&(P=0,k++,L!==31&&(R=d[k]>>>0));else{const j=32-P,F=R>>>P;k++,R=d[k]>>>0,c[p+L]=(F|(R&c2[g-j]>>>0)<<j)&w,P=g-j}}function Fa(d,l,c){const p=new Uint32Array(c);let g=0,w=l.get();for(let k=0;k<p.length;k++){let P=d[w++],R=127&P;P<128||(P=d[w++],R|=(127&P)<<7,P<128||(P=d[w++],R|=(127&P)<<14,P<128||(P=d[w++],R|=(127&P)<<21,P<128||(P=d[w++],R|=(15&P)<<28)))),p[g++]=R}return l.set(w),p}function kh(d,l,c){const p=new BigUint64Array(c);for(let g=0;g<p.length;g++)p[g]=Q3(d,l);return p}function Q3(d,l){let c=0n,p=0,g=l.get();for(;g<d.length;){const w=d[g++];if(c|=BigInt(127&w)<<BigInt(p),!(128&w))break;if(p+=7,p>=64)throw new Error("Varint too long")}return l.set(g),c}function zE(d,l){let c,p;return p=d[l.get()],l.increment(),c=127&p,p<128?c:(p=d[l.get()],l.increment(),c|=(127&p)<<7,p<128?c:(p=d[l.get()],l.increment(),c|=(127&p)<<14,p<128?c:(p=d[l.get()],l.increment(),c|=(127&p)<<21,p<128?c:(p=d[l.get()],c|=(15&p)<<28,(function(g,w,k){let P,R;
24if(R=w[k.get()],k.increment(),P=(112&R)>>4,R<128||(R=w[k.get()],k.increment(),P|=(127&R)<<3,R<128)||(R=w[k.get()],k.increment(),P|=(127&R)<<10,R<128)||(R=w[k.get()],k.increment(),P|=(127&R)<<17,R<128)||(R=w[k.get()],k.increment(),P|=(127&R)<<24,R<128)||(R=w[k.get()],k.increment(),P|=(1&R)<<31,R<128))return 4294967296*P+(g>>>0);throw new Error("Expected varint not more than 10 bytes")})(c,d,l)))))}function Jr(d){return d>>>1^-(1&d)}function Ro(d){return d>>1n^-(1n&d)}function sf(d){return d%2==1?(d+1)/-2:d/2}function h2(d,l,c){if(c===void 0){c=0;for(let w=0;w<l;w++)c+=d[w]}const p=new Uint32Array(c);let g=0;for(let w=0;w<l;w++){const k=d[w];p.fill(d[w+l],g,g+k),g+=k}return p}function p2(d,l,c){if(c===void 0){c=0;for(let w=0;w<l;w++)c+=Number(d[w])}const p=new BigUint64Array(c);let g=0;for(let w=0;w<l;w++){const k=Number(d[w]);p.fill(d[w+l],g,g+k),g+=k}return p}function e5(d,l,c){const p=new Float64Array(c);let g=0;for(let w=0;w<l;w++){const k=d[w];p.fill(d[w+l],g,g+k),g+=k}return p}function cs(d){const l=new Int32Array(d.length);l[0]=Jr(d[0]);const c=d.length/4*4;let p=1;if(c>=4)for(;p<c-4;p+=4){const g=d[p+1],w=d[p+2],k=d[p+3];l[p]=Jr(d[p])+l[p-1],l[p+1]=Jr(g)+l[p],l[p+2]=Jr(w)+l[p+1],l[p+3]=Jr(k)+l[p+2]}for(;p!==d.length;++p)l[p]=Jr(d[p])+l[p-1];return l}function bv(d){const l=new BigInt64Array(d.length);l[0]=Ro(d[0]);const c=d.length/4*4;let p=1;if(c>=4)for(;p<c-4;p+=4){const g=d[p+1],w=d[p+2],k=d[p+3];l[p]=Ro(d[p])+l[p-1],l[p+1]=Ro(g)+l[p],l[p+2]=Ro(w)+l[p+1],l[p+3]=Ro(k)+l[p+2]}for(;p!==l.length;++p)l[p]=Ro(d[p])+l[p-1];return l}function m2(d){const l=d.length/4*4;let c=1;if(l>=4)for(let p=d[0];c<l-4;c+=4)p=d[c]+=p,p=d[c+1]+=p,p=d[c+2]+=p,p=d[c+3]+=p;for(;c!==d.length;)d[c]+=d[c-1],++c}var to,eu,Eh,Bo,Si,ua,t5,lf;function Fo(d,l){const c=(function(p,g){const w=p[g.get()],k=Object.values(to)[w>>4];let P=null;switch(k){case to.DATA:P={dictionaryType:Object.values(eu)[15&w]};break;case to.OFFSET:P={offsetType:Object.values(Eh)[15&w]};break;case to.LENGTH:P={lengthType:Object.values(Bo)[15&w]}}g.increment();const R=p[g.get()],L=Object.values(br)[R>>5],j=Object.values(br)[R>>2&7],F=Object.values(of)[3&R];g.increment();const te=Fa(p,g,2),G=te[0];return{physicalStreamType:k,logicalStreamType:P,logicalLevelTechnique1:L,logicalLevelTechnique2:j,physicalLevelTechnique:F,numValues:G,byteLength:te[1],decompressedCount:G}})(d,l);
24return c.logicalLevelTechnique1===br.MORTON?(function(p,g,w){const k=Fa(g,w,2);return{physicalStreamType:p.physicalStreamType,logicalStreamType:p.logicalStreamType,logicalLevelTechnique1:p.logicalLevelTechnique1,logicalLevelTechnique2:p.logicalLevelTechnique2,physicalLevelTechnique:p.physicalLevelTechnique,numValues:p.numValues,byteLength:p.byteLength,decompressedCount:p.decompressedCount,numBits:k[0],coordinateShift:k[1]}})(c,d,l):br.RLE!==c.logicalLevelTechnique1&&br.RLE!==c.logicalLevelTechnique2||of.NONE===c.physicalLevelTechnique?c:(function(p,g,w){const k=Fa(g,w,2);return{physicalStreamType:p.physicalStreamType,logicalStreamType:p.logicalStreamType,logicalLevelTechnique1:p.logicalLevelTechnique1,logicalLevelTechnique2:p.logicalLevelTechnique2,physicalLevelTechnique:p.physicalLevelTechnique,numValues:p.numValues,byteLength:p.byteLength,decompressedCount:k[1],runs:k[0],numRleValues:k[1]}})(c,d,l)}(function(d){d.PRESENT="PRESENT",d.DATA="DATA",d.OFFSET="OFFSET",d.LENGTH="LENGTH"})(to||(to={})),(function(d){d.NONE="NONE",d.SINGLE="SINGLE",d.SHARED="SHARED",d.VERTEX="VERTEX",d.MORTON="MORTON",d.FSST="FSST"})(eu||(eu={})),(function(d){d.VERTEX="VERTEX",d.INDEX="INDEX",d.STRING="STRING",d.KEY="KEY"})(Eh||(Eh={})),(function(d){d.VAR_BINARY="VAR_BINARY",d.GEOMETRIES="GEOMETRIES",d.PARTS="PARTS",d.RINGS="RINGS",d.TRIANGLES="TRIANGLES",d.SYMBOL="SYMBOL",d.DICTIONARY="DICTIONARY"})(Bo||(Bo={})),(function(d){d[d.FLAT=0]="FLAT",d[d.CONST=1]="CONST",d[d.SEQUENCE=2]="SEQUENCE",d[d.DICTIONARY=3]="DICTIONARY",d[d.FSST_DICTIONARY=4]="FSST_DICTIONARY"})(Si||(Si={}));class tu{constructor(l,c){this.values=l,this._size=c}get(l){const c=Math.floor(l/8);return(this.values[c]>>l%8&1)==1}set(l,c){const p=Math.floor(l/8);this.values[p]=this.values[p]|(c?1:0)<<l%8}getInt(l){const c=Math.floor(l/8);return this.values[c]>>l%8&1}size(){return this._size}getBuffer(){return this.values}}function Ph(d,l,c){if(!l)return d;const p=l.size(),g=new d.constructor(p);let w=0;for(let k=0;k<p;k++)g[k]=l.get(k)?d[w++]:c;return g}function g2(d,l,c,p,g){return(function(w,k,P,R){let L;switch(k.logicalLevelTechnique1){case br.DELTA:if(k.logicalLevelTechnique2===br.RLE){const j=k;if(!R)return(function(F,te,G){const oe=new Int32Array(G);let ue=0,ve=0;for(let _e=0;_e<te;_e++){const Me=F[_e],Te=Jr(F[_e+te]);for(let Ae=0;Ae<Me;Ae++)ve+=Te,oe[ue++]=ve}return oe})(w,j.runs,j.numRleValues);L=cs(w=h2(w,j.runs,j.numRleValues))}else L=cs(w);break;case br.RLE:L=(function(j,F,te){if(te===void 0){te=0;for(let ue=0;ue<F;ue++)te+=j[ue]}const G=new Int32Array(te);let oe=0;for(let ue=0;ue<F;ue++){const ve=j[ue];let _e=j[ue+F];_e=Jr(_e),G.fill(_e,oe,oe+ve),oe+=ve}return G})(w,k.runs,k.numRleValues);break;case br.MORTON:m2(w),L=new Int32Array(w);break;case br.COMPONENTWISE_DELTA:L=(function(j){if(j.length<2)return new Int32Array(j);const F=new Int32Array(j.length);F[0]=Jr(j[0]),F[1]=Jr(j[1]);const te=j.length/4*4;let G=2;if(te>=4)for(;G<te-4;G+=4){const oe=j[G+1],ue=j[G+2],ve=j[G+3];F[G]=Jr(j[G])+F[G-2],F[G+1]=Jr(oe)+F[G-1],F[G+2]=Jr(ue)+F[G],F[G+3]=Jr(ve)+F[G+1]}for(;G!==j.length;G+=2)F[G]=Jr(j[G])+F[G-2],F[G+1]=Jr(j[G+1])+F[G-1];return F})(w);break;case br.NONE:L=(function(j){const F=new Int32Array(j.length);for(let te=0;te<j.length;te++)F[te]=Jr(j[te]);return F})(w);break;default:throw new Error(`The specified Logical level technique is not supported: ${k.logicalLevelTechnique1}`)}return R?Ph(L,R,0):L})(cf(d,l,c),c,0,g)}function Rs(d,l,c,p,g){return(function(w,k,P,R){let L;switch(k.logicalLevelTechnique1){case br.DELTA:L=(function(j){const F=new Uint32Array(j.length);F[0]=Jr(j[0])>>>0;for(let te=1;te<j.length;te++)F[te]=F[te-1]+Jr(j[te])>>>0;return F})(k.logicalLevelTechnique2===br.RLE?h2(w,k.runs,k.numRleValues):w);break;case br.RLE:L=h2(w,k.runs,k.numRleValues);break;case br.MORTON:m2(w),L=w;break;case br.COMPONENTWISE_DELTA:L=(function(j){if(j.length<2)return new Uint32Array(j);const F=new Uint32Array(j.length);F[0]=Jr(j[0])>>>0,F[1]=Jr(j[1])>>>0;for(let te=2;te<j.length;te+=2)F[te]=F[te-2]+Jr(j[te])>>>0,F[te+1]=F[te-1]+Jr(j[te+1])>>>0;return F})(w);break;case br.NONE:L=w;break;default:throw new Error(`The specified Logical level technique is not supported: ${k.logicalLevelTechnique1}`)}return R?Ph(L,R,0):L})(cf(d,l,c),c,0,g)}function uf(d,l,c){return(function(p,g){if(g.logicalLevelTechnique1===br.DELTA&&g.logicalLevelTechnique2===br.NONE)return(function(w){const k=new Int32Array(w.length+1);k[0]=0,k[1]=Jr(w[0]);let P=k[1];for(let R=2;R!==k.length;++R)P+=Jr(w[R-1]),k[R]=k[R-1]+P;return new Uint32Array(k)})(p);if(g.logicalLevelTechnique1===br.RLE&&g.logicalLevelTechnique2===br.NONE)return(function(w,k,P){const R=new Uint32Array(P+1);R[0]=0;let L=1,j=R[0];for(let F=0;F<k;F++){const te=w[F],G=w[F+k];for(let oe=L;oe<L+te;oe++)R[oe]=G+j,j=R[oe];L+=te}return R})(p,g.runs,g.numRleValues);if(g.logicalLevelTechnique1===br.NONE&&g.logicalLevelTechnique2===br.NONE){(function(k){let P=0;for(let R=0;R<k.length;R++)k[R]+=P,P=k[R]})(p);const w=new Uint32Array(g.numValues+1);return w[0]=0,w.set(p,1),w}if(g.logicalLevelTechnique1===br.DELTA&&g.logicalLevelTechnique2===br.RLE){const w=(function(k,P,R){const L=new Int32Array(R+1);L[0]=0;let j=1,F=L[0];for(let te=0;te<P;te++){const G=k[te];let oe=k[te+P];oe=Jr(oe);for(let ue=j;ue<j+G;ue++)L[ue]=oe+F,F=L[ue];j+=G}return L})(p,g.runs,g.numRleValues);return m2(w),new Uint32Array(w)}throw new Error("Only delta encoding is supported for transforming length to offset streams yet.")})(cf(d,l,c),c)}function cf(d,l,c){const p=c.physicalLevelTechnique;switch(p){case of.FAST_PFOR:return(function(g,w,k,P){return(function(R,L,j,F,te){const G=F.get();
24if(3&j)throw new Error(`FastPFOR: invalid encodedByteLength=${j} at offset=${G} (encodedBytes.length=${R.length}; expected a multiple of 4 bytes for an int32 big-endian word stream)`);const oe=j>>>2,ue=(function(_e,Me){if(Me<=_e.encodedWords.length)return _e.encodedWords;const Te=new Uint32Array(Math.max(16,2*Me));return _e.encodedWords=Te,Te})(te,oe);(function(_e,Me,Te,Ae){if(Me<0||Te<0||Me+Te>_e.length)throw new RangeError(`decodeBigEndianInt32sInto: out of bounds (offset=${Me}, byteLength=${Te}, bytes.length=${_e.length})`);const ze=Math.floor(Te/4),We=Te%4!=0,dt=We?ze+1:ze;if(Ae.length<dt)throw new RangeError(`decodeBigEndianInt32sInto: out.length=${Ae.length} < ${dt}`);if(ze>0){const mt=_e.byteOffset+Me;if(3&mt)for(let Lt=0;Lt<ze;Lt++){const Et=Me+4*Lt;Ae[Lt]=_e[Et]<<24|_e[Et+1]<<16|_e[Et+2]<<8|_e[Et+3]}else{const Lt=new Uint32Array(_e.buffer,mt,ze);for(let Et=0;Et<ze;Et++)Ae[Et]=0|IE(Lt[Et])}}if(We){const mt=Me+4*ze,Lt=Te-4*ze;let Et=0;for(let jt=0;jt<Lt;jt++)Et|=_e[mt+jt]<<24-8*jt;Ae[ze]=0|Et}})(R,G,j,ue);const ve=(function(_e,Me,Te){let Ae=0,ze=0;const We=new Uint32Array(Me),dt=Te??J3();if(_e.length>0){const mt=0|_e[Ae];if(Ae=Ae+1|0,255&mt)throw new Error(`FastPFOR decode: invalid alignedLength=${mt} (expected multiple of 256)`);if(ze+mt>We.length)throw new Error(`FastPFOR decode: output buffer too small (outPos=${ze}, alignedLength=${mt}, out.length=${We.length})`);Ae=(function(Lt,Et,jt,Ut,Bt,Mt){const on=Ut+d2(Bt,od);let yn=Ut,hn=jt;for(;yn!==on;){const cn=Math.min(f2,on-yn);hn=BE(Lt,Et,hn,yn,cn,Mt),yn=yn+cn|0}return hn})(_e,We,Ae,ze,mt,dt),ze=ze+mt|0}return(function(mt,Lt,Et,jt,Ut,Bt){if(Bt===0)return Lt;let Mt=0,on=Lt;const yn=Lt+Et,hn=Ut;let cn=Ut;const qn=Ut+Bt;let Rr=0,Ur=0;for(;on<yn&&cn<qn;){const ii=mt[on]>>>Mt&255;if(Mt+=8,on+=Mt>>>5,Mt&=31,Rr|=(127&ii)<<Ur,128&ii)jt[cn++]=0|Rr,Rr=0,Ur=0;else if(Ur+=7,Ur>28)throw new Error(`FastPFOR VByte: unterminated value (expected MSB=1 terminator within 5 bytes; shift=${Ur}, partial=${Rr}, decoded=${cn-hn}/${Bt}, inPos=${on}, inEnd=${yn})`)}if(cn!==qn)throw new Error(`FastPFOR VByte: truncated stream (decoded=${cn-hn}, expected=${Bt}, consumedWords=${on-Lt}/${Et}, vbyteStart=${Lt}, vbyteEnd=${yn})`)})(_e,Ae,_e.length-Ae|0,We,ze,Me-ze|0),We})(ue.subarray(0,oe),L,te.decoderWorkspace);return F.add(j),ve})(g,w,k,P,(function(R=16){if(R<0)throw new RangeError(`initialEncodedWordCapacity must be >= 0, got ${R}`);const L=Math.max(16,0|R);return{encodedWords:new Uint32Array(L),decoderWorkspace:J3()}})(k>>>2))})(d,c.numValues,c.byteLength,l);case of.VARINT:return Fa(d,l,c.numValues);case of.NONE:{const g=l.get();l.add(c.byteLength);const w=d.subarray(g,l.get());return new Uint32Array(w)}default:throw new Error(`Specified physicalLevelTechnique ${p} is not supported (yet).`)}}function X0(d,l,c){const p=cf(d,l,c);return p.length===1?p[0]:(function(g){return g[1]})(p)}function n5(d,l,c){return(function(p){if(p.length===2){const g=Jr(p[1]);return[g,g]}return[Jr(p[2]),Jr(p[3])]})(cf(d,l,c))}function r5(d,l,c){return(function(p){if(p.length===2){const g=Ro(p[1]);return[g,g]}return[Ro(p[2]),Ro(p[3])]})(kh(d,l,c.numValues))}function i5(d,l,c,p){return(function(g,w,k){let P;switch(w.logicalLevelTechnique1){case br.DELTA:P=(function(R){const L=new BigUint64Array(R.length);L[0]=BigInt.asUintN(64,Ro(R[0]));for(let j=1;j<R.length;j++)L[j]=BigInt.asUintN(64,L[j-1]+Ro(R[j]));return L})(w.logicalLevelTechnique2===br.RLE?p2(g,w.runs,w.numRleValues):g);break;case br.RLE:P=p2(g,w.runs,w.numRleValues);break;case br.NONE:P=g;break;default:throw new Error(`The specified Logical level technique is not supported: ${w.logicalLevelTechnique1}`)}return k?Ph(P,k,0n):P})(kh(d,l,c.numValues),c,p)}function a5(d,l,c){const p=kh(d,l,c.numValues);return p.length===1?p[0]:(function(g){return g[1]})(p)}function xv(d,l,c,p,g="int32"){const w=d.logicalLevelTechnique1;if(w===br.RLE)return d.runs===1?Si.CONST:Si.FLAT;if(w!==br.DELTA||d.logicalLevelTechnique2!==br.RLE)return d.numValues===1?Si.CONST:Si.FLAT;
24const k=l instanceof tu?l.size():l;if(d.numRleValues!==k)return Si.FLAT;if(d.runs===1)return Si.SEQUENCE;if(d.runs!==2)return d.numValues===1?Si.CONST:Si.FLAT;const P=p.get();if(d.physicalLevelTechnique===of.VARINT)return(function(j,F,te){const G=new X3(F.get());if(te==="int64"){const ue=kh(j,G,4);return ue[2]===2n&&ue[3]===2n}const oe=Fa(j,G,4);return oe[2]===2&&oe[3]===2})(c,p,g)?Si.SEQUENCE:d.numValues===1?Si.CONST:Si.FLAT;const R=p.get(),L=new Int32Array(c.buffer,c.byteOffset+R,4);return p.set(P),L[2]===2&&L[3]===2?Si.SEQUENCE:d.numValues===1?Si.CONST:Si.FLAT}class o5 extends _v{getValueFromBuffer(l){return this.dataBuffer[l]}}class s5 extends K3{constructor(l,c,p,g){super(l,BigInt64Array.of(c),p,g)}getValueFromBuffer(l){return this.dataBuffer[0]+BigInt(l)*this.delta}}function y2(d,l,c){return{x:l5(d,l)-c,y:l5(d>>1,l)-c}}function l5(d,l){let c=0;for(let p=0;p<l;p++)c|=(d&1<<2*p)>>p;return c}function Mm(d,l,c,p,g,w,k){return d===lf.MORTON?(function(P,R,L,j,F,te){const G=new Array(F?j+1:j);for(let oe=0;oe<j;oe++){const ue=y2(P[R[L+oe]],te.numBits,te.coordinateShift);G[oe]=new f(ue.x,ue.y)}return F&&(G[G.length-1]=G[0]),G})(l,c,p,g,w,k):(function(P,R,L,j,F){const te=new Array(F?j+1:j);for(let G=0;G<2*j;G+=2){const oe=2*R[L+G/2];te[G/2]=new f(P[oe],P[oe+1])}return F&&(te[te.length-1]=te[0]),te})(l,c,p,g,w)}function Am(d,l,c,p){const g=new Array(p?c+1:c);for(let w=0;w<2*c;w+=2)g[w/2]=new f(d[l+w],d[l+w+1]);return p&&(g[g.length-1]=g[0]),g}(function(d){d[d.POINT=0]="POINT",d[d.LINESTRING=1]="LINESTRING",d[d.POLYGON=2]="POLYGON",d[d.MULTIPOINT=3]="MULTIPOINT",d[d.MULTILINESTRING=4]="MULTILINESTRING",d[d.MULTIPOLYGON=5]="MULTIPOLYGON"})(ua||(ua={})),(function(d){d[d.POINT=0]="POINT",d[d.LINESTRING=1]="LINESTRING",d[d.POLYGON=2]="POLYGON"})(t5||(t5={})),(function(d){d[d.MORTON=0]="MORTON",d[d.VEC_2=1]="VEC_2",d[d.VEC_3=2]="VEC_3"})(lf||(lf={}));class u5{constructor(l,c,p,g,w){this._vertexBufferType=l,this._topologyVector=c,this._vertexOffsets=p,this._vertexBuffer=g,this._mortonSettings=w}get vertexBufferType(){return this._vertexBufferType}get topologyVector(){return this._topologyVector}get vertexOffsets(){return this._vertexOffsets}get vertexBuffer(){return this._vertexBuffer}getSimpleEncodedVertex(l){const c=this.vertexOffsets?2*this.vertexOffsets[l]:2*l;return[this.vertexBuffer[c],this.vertexBuffer[c+1]]}getVertex(l){if(this.vertexOffsets&&this.mortonSettings){const p=y2(this.vertexBuffer[this.vertexOffsets[l]],this.mortonSettings.numBits,this.mortonSettings.coordinateShift);return[p.x,p.y]}const c=this.vertexOffsets?2*this.vertexOffsets[l]:2*l;return[this.vertexBuffer[c],this.vertexBuffer[c+1]]}getGeometries(){return(function(l){const c=new Array(l.numGeometries);let p=1,g=1,w=1,k=0,P=0,R=0;const L=l.mortonSettings,j=l.topologyVector,F=j.geometryOffsets,te=j.partOffsets,G=j.ringOffsets,oe=l.vertexOffsets,ue=!oe||oe.length===0,ve=l.containsPolygonGeometry(),_e=l.vertexBuffer;for(let Me=0;Me<l.numGeometries;Me++)switch(l.geometryType(Me)){case ua.POINT:{let Te,Ae;if(ue)Te=_e[P++],Ae=_e[P++];else if(l.vertexBufferType===lf.MORTON){const ze=y2(_e[oe[R++]],L.numBits,L.coordinateShift);Te=ze.x,Ae=ze.y}else{const ze=2*oe[R++];Te=_e[ze],Ae=_e[ze+1]}c[k++]=[[new f(Te,Ae)]],F&&w++,te&&p++,G&&g++}break;case ua.MULTIPOINT:{const Te=F[w]-F[w-1];w++;const Ae=new Array(Te);if(ue)for(let ze=0;ze<Te;ze++){const We=_e[P++],dt=_e[P++];Ae[ze]=new f(We,dt)}else for(let ze=0;ze<Te;ze++){const We=2*oe[R++];Ae[ze]=new f(_e[We],_e[We+1])}c[k++]=Ae.map((ze=>[ze])),p+=Te,g+=Te}break;case ua.LINESTRING:{let Te,Ae;ve?(Te=G[g]-G[g-1],g++):Te=te[p]-te[p-1],p++,ue?(Ae=Am(_e,P,Te,!1),P+=2*Te):(Ae=Mm(l.vertexBufferType,_e,oe,R,Te,!1,L),R+=Te),c[k++]=[Ae],F&&w++}break;case ua.POLYGON:{const Te=te[p]-te[p-1];p++;const Ae=new Array(Te-1);let ze,We=G[g]-G[g-1];if(g++,ue){ze=Am(_e,P,We,!0),P+=2*We;for(let dt=0;dt<Ae.length;dt++)We=G[g]-G[g-1],g++,Ae[dt]=Am(_e,P,We,!0),P+=2*We}else{ze=Mm(l.vertexBufferType,_e,oe,R,We,!0,L),R+=We;for(let dt=0;dt<Ae.length;dt++)We=G[g]-G[g-1],g++,Ae[dt]=Mm(l.vertexBufferType,_e,oe,R,We,!0,L),R+=We}c[k++]=[ze].concat(Ae),F&&w++}break;case ua.MULTILINESTRING:{const Te=F[w]-F[w-1];w++;const Ae=new Array(Te);for(let ze=0;ze<Te;ze++){let We;if(ve?(We=G[g]-G[g-1],g++):We=te[p]-te[p-1],p++,ue)Ae[ze]=Am(_e,P,We,!1),P+=2*We;else{const dt=Mm(l.vertexBufferType,_e,oe,R,We,!1,L);Ae[ze]=dt,R+=We}}c[k++]=Ae}break;case ua.MULTIPOLYGON:{const Te=F[w]-F[w-1];w++;const Ae=new Array(Te);for(let ze=0;ze<Te;ze++){const We=te[p]-te[p-1];let dt;p++;const mt=new Array(We-1),Lt=G[g]-G[g-1];
24g++,ue?(dt=Am(_e,P,Lt,!0),P+=2*Lt):(dt=Mm(l.vertexBufferType,_e,oe,R,Lt,!0,L),R+=Lt);for(let Et=0;Et<mt.length;Et++){const jt=G[g]-G[g-1];g++,ue?(mt[Et]=Am(_e,P,jt,!0),P+=2*jt):(mt[Et]=Mm(l.vertexBufferType,_e,oe,R,jt,!0,L),R+=jt)}Ae[ze]=[dt].concat(mt)}c[k++]=Ae.flat()}break;default:throw new Error("The specified geometry type is currently not supported.")}return c})(this)}get mortonSettings(){return this._mortonSettings}}class c5 extends u5{constructor(l,c,p,g,w,k,P){super(p,g,w,k,P),this._numGeometries=l,this._geometryType=c}geometryType(l){return this._geometryType}get numGeometries(){return this._numGeometries}containsPolygonGeometry(){return this._geometryType===ua.POLYGON||this._geometryType===ua.MULTIPOLYGON}containsSingleGeometryType(){return!0}}class d5 extends u5{constructor(l,c,p,g,w,k){super(l,p,g,w,k),this._geometryTypes=c}geometryType(l){return this._geometryTypes[l]}get numGeometries(){return this._geometryTypes.length}containsPolygonGeometry(){for(let l=0;l<this.numGeometries;l++)if(this.geometryType(l)===ua.POLYGON||this.geometryType(l)===ua.MULTIPOLYGON)return!0;return!1}containsSingleGeometryType(){return!1}}class f5{constructor(l,c,p,g){this._triangleOffsets=l,this._indexBuffer=c,this._vertexBuffer=p,this._topologyVector=g}get triangleOffsets(){return this._triangleOffsets}get indexBuffer(){return this._indexBuffer}get vertexBuffer(){return this._vertexBuffer}get topologyVector(){return this._topologyVector}getGeometries(){if(!this._topologyVector)throw new Error("Cannot convert GpuVector to coordinates without topology information");const l=new Array(this.numGeometries),c=this._topologyVector,p=c.partOffsets,g=c.ringOffsets,w=c.geometryOffsets;let k=0,P=1,R=1,L=1;for(let j=0;j<this.numGeometries;j++)switch(this.geometryType(j)){case ua.POLYGON:{const F=p[P]-p[P-1];P++;const te=[];for(let G=0;G<F;G++){const oe=g[R]-g[R-1];R++;const ue=[];for(let ve=0;ve<oe;ve++){const _e=this._vertexBuffer[k++],Me=this._vertexBuffer[k++];ue.push(new f(_e,Me))}ue.length>0&&ue.push(ue[0]),te.push(ue)}l[j]=te,w&&L++}break;case ua.MULTIPOLYGON:{const F=w[L]-w[L-1];L++;const te=[];for(let G=0;G<F;G++){const oe=p[P]-p[P-1];P++;for(let ue=0;ue<oe;ue++){const ve=g[R]-g[R-1];R++;const _e=[];for(let Me=0;Me<ve;Me++){const Te=this._vertexBuffer[k++],Ae=this._vertexBuffer[k++];_e.push(new f(Te,Ae))}_e.length>0&&_e.push(_e[0]),te.push(_e)}}l[j]=te}}return l}[Symbol.iterator](){return null}}function h5(d,l,c,p,g,w){return new NE(d,l,c,p,g,w)}class NE extends f5{constructor(l,c,p,g,w,k){super(p,g,w,k),this._numGeometries=l,this._geometryType=c}geometryType(l){return this._geometryType}get numGeometries(){return this._numGeometries}containsSingleGeometryType(){return!0}}function p5(d,l,c,p,g){return new VE(d,l,c,p,g)}class VE extends f5{constructor(l,c,p,g,w){super(c,p,g,w),this._geometryTypes=l}geometryType(l){return this._geometryTypes[l]}get numGeometries(){return this._geometryTypes.length}containsSingleGeometryType(){return!1}}function qE(d,l,c,p,g){const w=Fo(d,c);let k,P,R,L;if(xv(w,p,d,c)===Si.CONST){const Me=X0(d,c,w);let Te,Ae,ze,We;for(let dt=0;dt<l-1;dt++){const mt=Fo(d,c);switch(mt.physicalStreamType){case to.LENGTH:switch(mt.logicalStreamType.lengthType){case Bo.GEOMETRIES:Te=uf(d,c,mt);break;case Bo.PARTS:Ae=uf(d,c,mt);break;case Bo.RINGS:ze=uf(d,c,mt);break;case Bo.TRIANGLES:We=uf(d,c,mt)}break;case to.OFFSET:switch(mt.logicalStreamType.offsetType){case Eh.VERTEX:k=Rs(d,c,mt);break;case Eh.INDEX:L=Rs(d,c,mt)}break;case to.DATA:eu.VERTEX===mt.logicalStreamType.dictionaryType?P=g2(d,c,mt):(R={numBits:mt.numBits,coordinateShift:mt.coordinateShift},P=Rs(d,c,mt))}}return L?Te!==void 0||Ae!==void 0?h5(p,Me,We,L,P,{geometryOffsets:Te,partOffsets:Ae,ringOffsets:ze}):h5(p,Me,We,L,P):R===void 0?(function(dt,mt,Lt,Et,jt){return new c5(dt,mt,lf.VEC_2,Lt,Et,jt)})(p,Me,{geometryOffsets:Te,partOffsets:Ae,ringOffsets:ze},k,P):(function(dt,mt,Lt,Et,jt,Ut){return new c5(dt,mt,lf.MORTON,Lt,Et,jt,Ut)})(p,Me,{geometryOffsets:Te,partOffsets:Ae,ringOffsets:ze},k,P,R)}const j=Rs(d,c,w);let F,te,G,oe,ue,ve,_e;for(let Me=0;Me<l-1;Me++){const Te=Fo(d,c);switch(Te.physicalStreamType){case to.LENGTH:switch(Te.logicalStreamType.lengthType){case Bo.GEOMETRIES:F=Rs(d,c,Te);break;case Bo.PARTS:te=Rs(d,c,Te);break;case Bo.RINGS:G=Rs(d,c,Te);break;case Bo.TRIANGLES:oe=uf(d,c,Te)}break;case to.OFFSET:switch(Te.logicalStreamType.offsetType){case Eh.VERTEX:k=Rs(d,c,Te);break;case Eh.INDEX:L=Rs(d,c,Te)}break;case to.DATA:eu.VERTEX===Te.logicalStreamType.dictionaryType?P=g2(d,c,Te):(R={numBits:Te.numBits,coordinateShift:Te.coordinateShift},P=Rs(d,c,Te))}}return F?(ue=v2(j,F,2),te&&G?(ve=C(j,ue,te,!1),_e=(function(Me,Te,Ae,ze){const We=new Uint32Array(Ae[Ae.length-1]+1);let dt=0;We[0]=dt;let mt=1,Lt=1,Et=0;for(let jt=0;jt<Me.length;jt++){const Ut=Me[jt],Bt=Te[jt+1]-Te[jt];if(Ut!==0&&Ut!==3)for(let Mt=0;Mt<Bt;Mt++){const on=Ae[mt]-Ae[mt-1];mt++;for(let yn=0;yn<on;yn++)dt=We[Lt++]=dt+ze[Et++]}else for(let Mt=0;Mt<Bt;Mt++)We[Lt++]=++dt,mt++}return We})(j,ue,ve,G)):te&&(ve=(function(Me,Te,Ae){const ze=new Uint32Array(Te[Te.length-1]+1);let We=0;ze[0]=We;let dt=1,mt=0;for(let Lt=0;Lt<Me.length;Lt++){const Et=Me[Lt],jt=Te[Lt+1]-Te[Lt];if(Et===4||Et===1)for(let Ut=0;Ut<jt;Ut++)We=ze[dt++]=We+Ae[mt++];else for(let Ut=0;Ut<jt;Ut++)ze[dt++]=++We}return ze})(j,ue,te))):te&&G?(ve=v2(j,te,1),_e=C(j,ve,G,!0)):te&&(ve=v2(j,te,0)),L&&!ve?p5(j,oe,L,P):L?p5(j,oe,L,P,{geometryOffsets:ue,partOffsets:ve,ringOffsets:_e}):R===void 0?(function(Me,Te,Ae,ze){return new d5(lf.VEC_2,Me,Te,Ae,ze)})(j,{geometryOffsets:ue,partOffsets:ve,ringOffsets:_e},k,P):(function(Me,Te,Ae,ze,We){return new d5(lf.MORTON,Me,Te,Ae,ze,We)})(j,{geometryOffsets:ue,partOffsets:ve,ringOffsets:_e},k,P,R)}function v2(d,l,c){const p=new Uint32Array(d.length+1);let g=0;p[0]=g;let w=0;for(let k=0;k<d.length;k++)g=p[k+1]=g+(d[k]>c?l[w++]:1);return p}function C(d,l,c,p){const g=new Uint32Array(l[l.length-1]+1);let w=0;g[0]=w;let k=1,P=0;for(let R=0;R<d.length;R++){const L=d[R],j=l[R+1]-l[R];if(L===5||L===2||p&&(L===4||L===1))for(let F=0;F<j;F++)w=g[k++]=w+c[P++];else for(let F=0;F<j;F++)g[k++]=++w}return g}class D extends $m{constructor(l,c,p){super(l,c.getBuffer(),p),this.dataVector=c}getValueFromBuffer(l){return this.dataVector.get(l)}}class J extends _v{getValueFromBuffer(l){return this.dataBuffer[l]}}class fe extends $m{constructor(l,c,p,g){super(l,g?BigInt64Array.of(c):BigUint64Array.of(c),p)}getValueFromBuffer(l){return this.dataBuffer[0]}}function Pe(d,l,c,p,g){const w=(function(k,P,R,L){const j=new Uint8Array(P);let F=0;const te=L.get()+R;for(;F<P&&!(L.get()>=te);){const G=k[L.increment()];if(G<=127){const oe=G+3,ue=k[L.increment()],ve=Math.min(F+oe,P);j.fill(ue,F,ve),F=ve}else{const oe=256-G;for(let ue=0;ue<oe&&F<P;ue++)j[F++]=k[L.increment()]}}return L.set(te),j})(d,Math.ceil(l/8),c,p);return g?(function(k,P,R){if(!R)return k;const L=R.size(),j=new tu(k,P),F=new tu(new Uint8Array(Math.ceil(L/8)),L);let te=0;for(let G=0;G<L;G++){const oe=!!R.get(G)&&j.get(te++);F.set(G,oe)}return F.getBuffer()})(w,l,g):w}const Ue=new TextDecoder;function st(d,l,c){return c-l>
vendor: 1,474 bytes, line 24
24=12?Ue.decode(d.subarray(l,c)):(function(p,g,w){let k="",P=g;for(;P<w;){const R=p[P];let L,j,F,te=null,G=R>239?4:R>223?3:R>191?2:1;if(P+G>w)break;G===1?R<128&&(te=R):G===2?(L=p[P+1],(192&L)==128&&(te=(31&R)<<6|63&L,te<=127&&(te=null))):G===3?(L=p[P+1],j=p[P+2],(192&L)==128&&(192&j)==128&&(te=(15&R)<<12|(63&L)<<6|63&j,(te<=2047||te>=55296&&te<=57343)&&(te=null))):G===4&&(L=p[P+1],j=p[P+2],F=p[P+3],(192&L)==128&&(192&j)==128&&(192&F)==128&&(te=(15&R)<<18|(63&L)<<12|(63&j)<<6|63&F,(te<=65535||te>=1114112)&&(te=null))),te===null?(te=65533,G=1):te>65535&&(te-=65536,k+=String.fromCharCode(te>>>10&1023|55296),te=56320|1023&te),k+=String.fromCharCode(te),P+=G}return k})(d,l,c)}class gt extends $m{constructor(l,c,p,g){super(l,p,g),this.offsetBuffer=c}}class kt extends gt{constructor(l,c,p,g){super(l,c,p,g??c.length-1)}getValueFromBuffer(l){return st(this.dataBuffer,this.offsetBuffer[l],this.offsetBuffer[l+1])}}class Kt extends gt{constructor(l,c,p,g,w){super(l,p,g,w??c.length),this.indexBuffer=c,this.indexBuffer=c}getValueFromBuffer(l){const c=this.indexBuffer[l];return st(this.dataBuffer,this.offsetBuffer[c],this.offsetBuffer[c+1])}}class en extends gt{constructor(l,c,p,g,w,k,P){super(l,p,g,P),this.indexBuffer=c,this.symbolOffsetBuffer=w,this.symbolTableBuffer=k}getValueFromBuffer(l){this.decodedDictionary==null&&(this.symbolLengthBuffer==null&&(this.symbolLengthBuffer=this.offsetToLengthBuffer(this.symbolOffsetBuffer)),this.decodedDictionary=(function(p,g,w
24){const k=[],P=new Array(g.length).fill(0);for(let R=1;R<g.length;R++)P[R]=P[R-1]+g[R-1];for(let R=0;R<w.length;R++)if(w[R]===255)k.push(w[++R]);else{const L=g[w[R]],j=P[w[R]];for(let F=0;F<L;F++)k.push(p[j+F])}return new Uint8Array(k)})(this.symbolTableBuffer,this.symbolLengthBuffer,this.dataBuffer));const c=this.indexBuffer[l];return st(this.decodedDictionary,this.offsetBuffer[c],this.offsetBuffer[c+1])}offsetToLengthBuffer(l){const c=new Uint32Array(l.length-1);let p=l[0];for(let g=1;g<l.length;g++){const w=l[g];c[g-1]=w-p,p=w}return c}}function tn(d,l,c,p,g,w){return c.type==="scalarType"?(function(k,P,R,L,j,F){let te=null;if(k===0)return null;if(F.nullable){const oe=Fo(P,R),ue=oe.numValues,ve=R.get(),_e=Pe(P,ue,oe.byteLength,R);R.set(ve+oe.byteLength),te=new tu(_e,oe.numValues)}const G=te??L;switch(j.physicalType){case 4:case 3:return(function(oe,ue,ve,_e,Me){const Te=Fo(oe,ue),Ae=xv(Te,Me,oe,ue),ze=_e.physicalType===3;if(Ae===Si.FLAT){const dt=xn(Me)?Me:void 0,mt=ze?g2(oe,ue,Te,0,dt):Rs(oe,ue,Te,0,dt);return new a2(ve.name,mt,Me)}if(Ae===Si.SEQUENCE){const dt=n5(oe,ue,Te);return new s2(ve.name,dt[0],dt[1],Te.numRleValues)}const We=ze?(function(dt,mt,Lt){const Et=cf(dt,mt,Lt);return Et.length===1?Jr(Et[0]):(function(jt){return Jr(jt[1])})(Et)})(oe,ue,Te):X0(oe,ue,Te);return new l2(ve.name,We,Me,ze)})(P,R,F,j,G);case 9:return(function(oe,ue,ve,_e,Me){let Te=null,Ae=null,ze=null,We=null,dt=null,mt=Me??null,Lt=null,Et=null;for(let jt=0;jt<_e;jt++){const Ut=Fo(ue,ve);switch(Ut.physicalStreamType){case to.PRESENT:{const Bt=Pe(ue,Ut.numValues,Ut.byteLength,ve),Mt=new tu(Bt,Ut.numValues);mt=Me??Mt;break}case to.OFFSET:Ae=Rs(ue,ve,Ut,0,mt);break;case to.LENGTH:{const Bt=uf(ue,ve,Ut);Bo.DICTIONARY===Ut.logicalStreamType.lengthType?Te=Bt:Bo.SYMBOL===Ut.logicalStreamType.lengthType?We=Bt:Lt=Bt;break}case to.DATA:{const Bt=ue.subarray(ve.get(),ve.get()+Ut.byteLength);ve.add(Ut.byteLength);const Mt=Ut.logicalStreamType.dictionaryType;eu.FSST===Mt?dt=Bt:eu.SINGLE===Mt||eu.SHARED===Mt?ze=Bt:eu.NONE===Mt&&(Et=Bt);break}}}return(function(jt,Ut,Bt,Mt,on,yn,hn){return Ut?new en(jt,Bt,Mt,on,yn,Ut,hn):null})(oe,dt,Ae,Te,ze,We,mt)??(function(jt,Ut,Bt,Mt,on){return Ut?on?new Kt(jt,Bt,Mt,Ut,on):new Kt(jt,Bt,Mt,Ut):null})(oe,ze,Ae,Te,mt)??(function(jt,Ut,Bt,Mt,on){if(!Ut||!Bt)return null;if(Mt)return on?new Kt(jt,Mt,Ut,Bt,on):new Kt(jt,Mt,Ut,Bt);if(on&&on.size()!==Ut.length-1){const yn=new Uint32Array(on.size());let hn=0;for(let cn=0;cn<on.size();cn++)yn[cn]=on.get(cn)?hn++:0;return new Kt(jt,yn,Ut,Bt,on)}return on?new kt(jt,Ut,Bt,on):new kt(jt,Ut,Bt)})(oe,Lt,Et,Ae,mt)})(F.name,P,R,F.nullable?k-1:k,te);case 0:return(function(oe,ue,ve,_e,Me){const Te=Fo(oe,ue),Ae=Te.numValues,ze=ue.get(),We=xn(Me)?Me:void 0,dt=Pe(oe,Ae,Te.byteLength,ue,We);ue.set(ze+Te.byteLength);const mt=new tu(dt,Ae);return new D(ve.name,mt,Me)})(P,R,F,0,G);case 6:case 5:return(function(oe,ue,ve,_e,Me){const Te=Fo(oe,ue),Ae=xv(Te,_e,oe,ue,"int64"),ze=Me.physicalType===5;if(Ae===Si.FLAT){const dt=xn(_e)?_e:void 0,mt=ze?(function(Lt,Et,jt,Ut){return(function(Bt,Mt,on){let yn;switch(Mt.logicalLevelTechnique1){case br.DELTA:if(Mt.logicalLevelTechnique2===br.RLE){const hn=Mt;if(!on)return(function(cn,qn,Rr){const Ur=new BigInt64Array(Rr);let ii=0,Vo=0n;for(let Qi=0;Qi<qn;Qi++){const za=Number(cn[Qi]),no=Ro(cn[Qi+qn]);for(let Oi=0;Oi<za;Oi++)Vo+=no,Ur[ii++]=Vo}return Ur})(Bt,hn.runs,hn.numRleValues);yn=bv(Bt=p2(Bt,hn.runs,hn.numRleValues))}else yn=bv(Bt);break;case br.RLE:yn=(function(hn,cn,qn){if(qn===void 0){qn=0;for(let ii=0;ii<cn;ii++)qn+=Number(hn[ii])}const Rr=new BigInt64Array(qn);let Ur=0;for(let ii=0;ii<cn;ii++){const Vo=Number(hn[ii]);let Qi=hn[ii+cn];Qi=Ro(Qi),Rr.fill(Qi,Ur,Ur+Vo),Ur+=Vo}return Rr})(Bt,Mt.runs,Mt.numRleValues);break;case br.NONE:yn=(function(hn){const cn=new BigInt64Array(hn.length);for(let qn=0;qn<hn.length;qn++)cn[qn]=Ro(hn[qn]);return cn})(Bt);break;default:throw new Error(`The specified Logical level technique is not supported: ${Mt.logicalLevelTechnique1}`)}return on?Ph(yn,on,0n):yn})(kh(Lt,Et,jt.numValues),jt,Ut)})(oe,ue,Te,dt):i5(oe,ue,Te,dt);return new o5(ve.name,mt,_e)}if(Ae===Si.SEQUENCE){const dt=r5(oe,ue,Te);
24return new s5(ve.name,dt[0],dt[1],Te.numRleValues)}const We=ze?(function(dt,mt,Lt){const Et=kh(dt,mt,Lt.numValues);return Et.length===1?Ro(Et[0]):(function(jt){return Ro(jt[1])})(Et)})(oe,ue,Te):a5(oe,ue,Te);return new fe(ve.name,We,_e,ze)})(P,R,F,G,j);case 7:return(function(oe,ue,ve,_e){const Me=Fo(oe,ue),Te=xn(_e)?_e:void 0,Ae=(function(ze,We,dt,mt){const Lt=We.get(),Et=Lt+dt*Float32Array.BYTES_PER_ELEMENT,jt=new Uint8Array(ze.subarray(Lt,Et)).buffer,Ut=new Float32Array(jt);return We.set(Et),mt?Ph(Ut,mt,0):Ut})(oe,ue,Me.numValues,Te);return new J(ve.name,Ae,_e)})(P,R,F,G);case 8:return(function(oe,ue,ve,_e){const Me=Fo(oe,ue),Te=xn(_e)?_e:void 0,Ae=(function(ze,We,dt,mt){const Lt=We.get(),Et=Lt+dt*Float64Array.BYTES_PER_ELEMENT,jt=new Uint8Array(ze.subarray(Lt,Et)).buffer,Ut=new Float64Array(jt);return We.set(Et),mt?Ph(Ut,mt,0):Ut})(oe,ue,Me.numValues,Te);return new o2(ve.name,Ae,_e)})(P,R,F,G);default:throw new Error(`The specified data type for the field is currently not supported: ${j}`)}})(p,d,l,g,c.scalarType,c):p===0?null:(function(k,P,R,L){let j=null,F=null,te=null,G=null,oe=!1;for(;!oe;){const Me=Fo(k,P);switch(Me.physicalStreamType){case to.LENGTH:Bo.DICTIONARY===Me.logicalStreamType.lengthType?j=uf(k,P,Me):te=uf(k,P,Me);break;case to.DATA:eu.SINGLE===Me.logicalStreamType.dictionaryType||eu.SHARED===Me.logicalStreamType.dictionaryType?(F=k.subarray(P.get(),P.get()+Me.byteLength),oe=!0):G=k.subarray(P.get(),P.get()+Me.byteLength),P.add(Me.byteLength)}}const ue=R.complexType.children,ve=[];let _e=0;for(const Me of ue){const Te=Fa(k,P,1)[0];if(Te===0)continue;const Ae=Me.name?`${R.name}${Me.name}`:R.name;if(Te!==2||Me.type!=="scalarField"||Me.scalarField.physicalType!==9)throw new Error("Currently only optional string fields are implemented for a struct.");const ze=Fo(k,P),We=Pe(k,ze.numValues,ze.byteLength,P),dt=Fo(k,P),mt=Rs(k,P,dt,0,dt.decompressedCount!==L?new tu(We,ze.numValues):void 0);ve[_e++]=G?new en(Ae,mt,j,F,te,G,new tu(We,ze.numValues)):new Kt(Ae,mt,j,F,new tu(We,ze.numValues))}return ve})(d,l,c,g)}function xn(d){return d instanceof tu}function Fn(d){switch(d){case 0:case 1:case 2:case 3:{const l={};l.nullable=!!(1&d),l.columnScope=0;const c={type:"logicalType",logicalType:0};return c.longID=!!(2&d),l.scalarType=c,l.type="scalarType",l}case 4:{const l={nullable:!1,columnScope:0},c={type:"physicalType",physicalType:0};return l.type="complexType",l.complexType=c,l}case 30:{const l={nullable:!1,columnScope:0},c={type:"physicalType",physicalType:1};return l.type="complexType",l.complexType=c,l}default:return(function(l){let c;switch(l){case 10:case 11:c=0;break;case 12:case 13:c=1;break;case 14:case 15:c=2;break;case 16:case 17:c=3;break;case 18:case 19:c=4;break;case 20:case 21:c=5;break;case 22:case 23:c=6;break;case 24:case 25:c=7;break;case 26:case 27:c=8;break;case 28:case 29:c=9;break;default:return null}const p={};p.nullable=!!(1&l),p.columnScope=0;const g={type:"physicalType"};return g.physicalType=c,p.type="scalarType",p.scalarType=g,p})(d)}}function Zn(d){return d>=10}function wr(d){return d===30}function Gn(d){if(d.type==="scalarType"){const l=d.scalarType;if(l.type==="physicalType")switch(l.physicalType){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:default:return!1;case 9:return!0}if(l.type==="logicalType")return!1}else if(d.type==="complexType"){const l=d.complexType;if(l.type==="physicalType")switch(l.physicalType){case 0:case 1:return!0;default:return!1}}return!1}function Ir(d){return d.type==="complexType"&&d.complexType?.type==="physicalType"&&d.complexType.physicalType===0}const Or=new TextDecoder;function ds(d,l){const c=Fa(d,l,1)[0];if(c===0)return"";const p=l.get(),g=d.subarray(p,p+c);return l.add(c),Or.decode(g)}function zo(d,l){const c=Fa(d,l,1)[0]>>>0;if(c<10||c>30)throw new Error(`Unsupported field type code ${c}. Supported: 10-29(scalars), 30(STRUCT)`);const p=Fn(c);if(Zn(c)&&(p.name=ds(d,l)),wr(c)){const g=Fa(d,l,1)[0]>>>0;p.complexType.children=new Array(g);for(let w=0;w<g;w++)p.complexType.children[w]=zo(d,l)}return(function(g){return{name:g.name,nullable:g.nullable,scalarField:g.scalarType,complexField:g.complexType,type:g.type==="scalarType"?"scalarField":"complexField"}})(p)}function el(d,l){const c=Fa(d,l,1)[0]>>>0,p=Fn(c);
24if(!p)throw new Error(`Unsupported column type code ${c}. Supported: 0-3(ID), 4(GEOMETRY), 10-29(scalars), 30(STRUCT)`);if(Zn(c)?p.name=ds(d,l):c>=0&&c<=3?p.name="id":c===4&&(p.name="geometry"),wr(c)){const g=Fa(d,l,1)[0]>>>0,w=p.complexType;w.children=new Array(g);for(let k=0;k<g;k++)w.children[k]=zo(d,l)}return p}function ma(d,l){const c={featureTables:[]},p={};p.name=ds(d,l);const g=Fa(d,l,1)[0]>>>0,w=Fa(d,l,1)[0]>>>0;p.columns=new Array(w);for(let k=0;k<w;k++)p.columns[k]=el(d,l);return c.featureTables.push(p),[c,g]}function nu(d,l,c,p,g,w,k=!1){const P=l.scalarType;if(!P||P.type!=="logicalType"||P.logicalType!==0)throw new Error(`ID column must be a logical ID scalar type: ${p}`);const R=P.longID?6:4,L=typeof w=="number"?void 0:w,j=xv(g,w,d,c,R===6?"int64":"int32");if(R===4)switch(j){case Si.FLAT:{const F=Rs(d,c,g,0,L);return new a2(p,F,w)}case Si.SEQUENCE:{const F=n5(d,c,g);return new s2(p,F[0],F[1],g.numRleValues)}case Si.CONST:{const F=X0(d,c,g);return new l2(p,F,w,!1)}}switch(j){case Si.FLAT:{if(k){const te=(function(G,oe,ue){const ve=(function(_e,Me,Te){const Ae=new Float64Array(Te);for(let ze=0;ze<Te;ze++)Ae[ze]=zE(_e,Me);return Ae})(G,oe,ue.numValues);return(function(_e,Me){switch(Me.logicalLevelTechnique1){case br.DELTA:return Me.logicalLevelTechnique2===br.RLE&&(_e=e5(_e,Me.runs,Me.numRleValues)),(function(Te){Te[0]=sf(Te[0]);const Ae=Te.length/4*4;let ze=1;if(Ae>=4)for(;ze<Ae-4;ze+=4){const We=Te[ze+1],dt=Te[ze+2],mt=Te[ze+3];Te[ze]=sf(Te[ze])+Te[ze-1],Te[ze+1]=sf(We)+Te[ze],Te[ze+2]=sf(dt)+Te[ze+1],Te[ze+3]=sf(mt)+Te[ze+2]}for(;ze!==Te.length;++ze)Te[ze]=sf(Te[ze])+Te[ze-1]})(_e),_e;case br.RLE:return(function(Te,Ae){return e5(Te,Ae.runs,Ae.numRleValues)})(_e,Me);
24case br.NONE:return _e;default:throw new Error(`The specified Logical level technique is not supported: ${Me.logicalLevelTechnique1}`)}})(ve,ue)})(d,c,g);return new o2(p,te,w)}const F=i5(d,c,g,L);return new o5(p,F,w)}case Si.SEQUENCE:{const F=r5(d,c,g);return new s5(p,F[0],F[1],g.numRleValues)}case Si.CONST:{const F=a5(d,c,g);return new fe(p,F,w,!1)}}throw new Error("Vector type not supported for id column.")}class sd{constructor(l,c){var p;switch(this._featureData=l,this.properties=this._featureData.properties||{},(p=this._featureData.geometry)===null||p===void 0?void 0:p.type){case ua.POINT:case ua.MULTIPOINT:this.type=1;break;case ua.LINESTRING:case ua.MULTILINESTRING:this.type=2;break;case ua.POLYGON:case ua.MULTIPOLYGON:this.type=3;break;default:this.type=0}this.extent=c,this.id=Number(this._featureData.id)}loadGeometry(){const l=[];for(const c of this._featureData.geometry.coordinates){const p=[];for(const g of c)p.push(new f(g.x,g.y));l.push(p)}return l}}class m5{constructor(l){this.features=[],this.featureTable=l,this.name=l.name,this.extent=l.extent,this.version=2,this.features=l.getFeatures(),this.length=this.features.length}feature(l){return new sd(this.features[l],this.extent)}}class O7{constructor(l){this.layers={};const c=(function(p,g,w=!0){const k=new X3(0),P=[];for(;k.get()<p.length;){const L=Fa(p,k,1)[0]>>>0,j=k.get()+L;if(j>p.length)throw new Error(`Block overruns tile: ${j} > ${p.length}`);if(Fa(p,k,1)[0]>>>0!=1){k.set(j);continue}const[F,te]=ma(p,k),G=F.featureTables[0];let oe=null,ue=null;const ve=[];let _e=0;for(const Te of G.columns){const Ae=Te.name;if((R=Te).type==="scalarType"&&R.scalarType?.type==="logicalType"&&R.scalarType.logicalType===0){let ze=null;if(Te.nullable){const dt=Fo(p,k),mt=k.get(),Lt=Pe(p,dt.numValues,dt.byteLength,k);k.set(mt+dt.byteLength),ze=new tu(Lt,dt.numValues)}const We=Fo(p,k);_e=ze?ze.size():We.decompressedCount,oe=nu(p,Te,k,Ae,We,ze??_e,w)}else if(Ir(Te)){const ze=Fa(p,k,1)[0];if(_e===0){const We=k.get();_e=Fo(p,k).decompressedCount,k.set(We)}ue=qE(p,ze,k,_e)}else{const ze=Gn(Te)?Fa(p,k,1)[0]:1;if(ze===0)continue;const We=tn(p,k,Te,ze,_e);if(We)if(Array.isArray(We))for(const dt of We)ve.push(dt);else ve.push(We)}}const Me=new AE(G.name,ue,oe,ve,te);P.push(Me),k.set(j)}var R;return P})(new Uint8Array(l));this.layers=c.reduce(((p,g)=>Object.assign(Object.assign({},p),{[g.name]:new m5(g)})),{})}}class mK{constructor(l,c){this.feature=l,this.type=l.type,this.properties=l.tags?l.tags:{}
24,this.extent=c,"id"in l&&(typeof l.id=="string"?this.id=parseInt(l.id,10):typeof l.id!="number"||isNaN(l.id)||(this.id=l.id))}loadGeometry(){const l=[],c=this.feature.type===1?[this.feature.geometry]:this.feature.geometry;for(const p of c){const g=[];for(const w of p)g.push(new f(w[0],w[1]));l.push(g)}return l}}const _2="_geojsonTileLayer";function gK(d,l,c=""){l.writeVarintField(15,d.version||1),l.writeStringField(1,d.name||""),l.writeVarintField(5,d.extent||4096);const p={jsonPrefix:c,keys:[],values:[],keycache:{},valuecache:{}};for(let k=0;k<d.length;k++)p.feature=d.feature(k),l.writeMessage(2,yK,p);const g=p.keys;for(const k of g)l.writeStringField(3,k);const w=p.values;for(const k of w)l.writeMessage(4,bK,k)}function yK(d,l){if(!d.feature)return;const c=d.feature;c.id!==void 0&&l.writeVarintField(1,c.id),l.writeMessage(2,vK,d),l.writeVarintField(3,c.type),l.writeMessage(4,_K,c)}function vK(d,l){for(const c in d.feature?.properties){let p=d.feature.properties[c],g=d.keycache[c];if(p==null)continue;g===void 0&&(d.keys.push(c),g=d.keys.length-1,d.keycache[c]=g),l.writeVarint(g),typeof p!="string"&&typeof p!="boolean"&&typeof p!="number"&&(p=d.jsonPrefix+JSON.stringify(p));const w=typeof p+":"+p;let k=d.valuecache[w];k===void 0&&(d.values.push(p),k=d.values.length-1,d.valuecache[w]=k),l.writeVarint(k)}}function jE(d,l){return(l<<3)+(7&d)}function R7(d){return d<<1^d>>31}function _K(d,l){const c=d.loadGeometry(),p=d.type;let g=0,w=0;for(const k of c){let P=1;p===1&&(P=k.length),l.writeVarint(jE(1,P));const R=p===3?k.length-1:k.length;for(let L=0;L<R;L++){L===1&&p!==1&&l.writeVarint(jE(2,R-1));const j=k[L].x-g,F=k[L].y-w;l.writeVarint(R7(j)),l.writeVarint(R7(F)),g+=j,w+=F}d.type===3&&l.writeVarint(jE(7,1))}}function bK(d,l){const c=typeof d;c==="string"?l.writeStringField(1,d):c==="boolean"?l.writeBooleanField(7,d):c==="number"&&(d%1!=0?l.writeDoubleField(3,d):d<0?l.writeSVarintField(6,d):l.writeVarintField(5,d))}class B7{constructor(l,c){this.tileID=l,this.x=l.canonical.x,this.y=l.canonical.y,this.z=l.canonical.z,this.grid=new gl($e,16,0),this.grid3D=new gl($e,16,0),this.featureIndexArray=new Le,this.promoteId=c}insert(l,c,p,g,w,k){const P=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(p,g,w);const R=k?this.grid3D:this.grid;for(const L of c){const j=[1/0,1/0,-1/0,-1/0];for(const F of L)j[0]=Math.min(j[0],F.x),j[1]=Math.min(j[1],F.y),j[2]=Math.max(j[2],F.x),j[3]=Math.max(j[3],F.y);j[0]<$e&&j[1]<$e&&j[2]>=0&&j[3]>
vendor: 45,522 bytes, line 24
24=0&&R.insert(P,j[0],j[1],j[2],j[3])}}loadVTLayers(){return this.vtLayers||(this.vtLayers=this.encoding!=="mlt"?new u3(new Z0(this.rawTileData)).layers:new O7(this.rawTileData).layers,this.sourceLayerCoder=new i2(this.vtLayers?Object.keys(this.vtLayers).sort():[_2])),this.vtLayers}query(l,c,p,g){this.loadVTLayers();const w=l.params,k=$e/l.tileSize/l.scale,P=Ul(w.filter,w.globalState),R=l.queryGeometry,L=l.queryPadding*k,j=af.fromPoints(R),F=this.grid.query(j.minX-L,j.minY-L,j.maxX+L,j.maxY+L),te=af.fromPoints(l.cameraQueryGeometry).expandBy(L),G=this.grid3D.query(te.minX,te.minY,te.maxX,te.maxY,((ve,_e,Me,Te)=>(function(Ae,ze,We,dt,mt){for(const Et of Ae)if(ze<=Et.x&&We<=Et.y&&dt>=Et.x&&mt>=Et.y)return!0;const Lt=[new f(ze,We),new f(ze,mt),new f(dt,mt),new f(dt,We)];if(Ae.length>2){for(const Et of Lt)if(ha(Ae,Et))return!0}for(let Et=0;Et<Ae.length-1;Et++)if(yk(Ae[Et],Ae[Et+1],Lt))return!0;return!1})(l.cameraQueryGeometry,ve-L,_e-L,Me+L,Te+L)));for(const ve of G)F.push(ve);F.sort(xK);const oe={};let ue;for(const ve of F){if(ve===ue)continue;ue=ve;const _e=this.featureIndexArray.get(ve);let Me=null;this.loadMatchingFeature(oe,_e.bucketIndex,_e.sourceLayerIndex,_e.featureIndex,P,w.layers,w.availableImages,c,p,g,((Te,Ae,ze)=>(Me||(Me=Wu(Te)),Ae.queryIntersectsFeature({queryGeometry:R,feature:Te,featureState:ze,geometry:Me,zoom:this.z,transform:l.transform,pixelsToTileUnits:k,pixelPosMatrix:l.pixelPosMatrix,unwrappedTileID:this.tileID.toUnwrapped(),getElevation:l.getElevation}))))}return oe}loadMatchingFeature(l,c,p,g,w,k,P,R,L,j,F){const te=this.bucketLayerIDs[c];if(k&&!te.some((ve=>k.has(ve))))return;const G=this.sourceLayerCoder.decode(p),oe=this.vtLayers[G].feature(g);if(w.needGeometry){const ve=eo(oe,!0);if(!w.filter(new or(this.tileID.overscaledZ),ve,this.tileID.canonical))return}else if(!w.filter(new or(this.tileID.overscaledZ),oe))return;const ue=this.getId(oe,G);for(const ve of te){if(k&&!k.has(ve))continue;const _e=R[ve];if(!_e)continue;let Me={};ue&&j&&(Me=j.getState(_e.sourceLayer||_2,ue));const Te=ut({},L[ve]);Te.paint=F7(Te.paint,_e.paint,oe,Me,P),Te.layout=F7(Te.layout,_e.layout,oe,Me,P);const Ae=!F||F(oe,_e,Me);if(!Ae)continue;const ze=new Z3(oe,this.z,this.x,this.y,ue);ze.layer=Te;let We=l[ve];We===void 0&&(We=l[ve]=[]),We.push({featureIndex:g,feature:ze,intersectionZ:Ae})}}lookupSymbolFeatures(l,c,p,g,w,k,P,R){const L={};this.loadVTLayers();const j=Ul(w.filterSpec,w.globalState);for(const F of l)this.loadMatchingFeature(L,p,g,F,j,k,P,R,c);return L}hasLayer(l){for(const c of this.bucketLayerIDs)for(const p of c)if(l===p)return!0;return!1}getId(l,c){var p;let g=l.id;return this.promoteId&&(g=l.properties[typeof this.promoteId=="string"?this.promoteId:this.promoteId[c]],typeof g=="boolean"&&(g=Number(g)),g===void 0&&(!((p=l.properties)===null||p===void 0)&&p.cluster)&&this.promoteId&&(g=Number(l.properties.cluster_id))),g}}function F7(d,l,c,p,g){return Dt(d,((w,k)=>{const P=l instanceof ph?l.get(k):null;return P?.evaluate?P.evaluate(c,p,g):P}))}function xK(d,l){return l-d}function z7(d,l,c,p,g){const w=[];for(const k of d){let P;for(let R=0;R<k.length-1;R++){let L=k[R],j=k[R+1];L.x<l&&j.x<l||(L.x<l?L=new f(l,L.y+(l-L.x)/(j.x-L.x)*(j.y-L.y))._round():j.x<l&&(j=new f(l,L.y+(l-L.x)/(j.x-L.x)*(j.y-L.y))._round()),L.y<c&&j.y<c||(L.y<c?L=new f(L.x+(c-L.y)/(j.y-L.y)*(j.x-L.x),c)._round():j.y<c&&(j=new f(L.x+(c-L.y)/(j.y-L.y)*(j.x-L.x),c)._round()),L.x>=p&&j.x>=p||(L.x>=p?L=new f(p,L.y+(p-L.x)/(j.x-L.x)*(j.y-L.y))._round():j.x>=p&&(j=new f(p,L.y+(p-L.x)/(j.x-L.x)*(j.y-L.y))._round()),L.y>=g&&j.y>=g||(L.y>=g?L=new f(L.x+(g-L.y)/(j.y-L.y)*(j.x-L.x),g)._round():j.y>=g&&(j=new f(L.x+(g-L.y)/(j.y-L.y)*(j.x-L.x),g)._round()),P&&L.equals(P[P.length-1])||(P=[L],w.push(P)),P.push(j)))))}}return w}function N7(d,l,c,p,g){switch(l){case 1:return(function(w,k,P,R){const L=[];for(const j of w)for(const F of j){const te=R===0?F.x:F.y;te>=k&&te<=P&&L.push([F])}return L})(d,c,p,g);case 2:return V7(d,c,p,g,!1);case 3:return V7(d,c,p,g,!0)}return[]}function wK(d,l,c,p,g){const w=p===0?SK:CK;let k=[];const P=[];for(let j=0;j<d.length-1;j++){const F=d[j],te=d[j+1],G=p===0?F.x:F.y,oe=p===0?te.x:te.y;let ue=!1;G<l?oe>l&&k.push(w(F,te,l)):G>c?oe<c&&k.push(w(F,te,c)):k.push(F),oe<l&&G>=l&&(k.push(w(F,te,l)),ue=!0),oe>c&&G<=c&&(k.push(w(F,te,c)),ue=!0),!g&&ue&&(P.push(k),k=[])}const R=d.length-1,L=p===0?d[R].x:d[R].y;return L>=l&&L<=c&&k.push(d[R]),g&&k.length>0&&!k[0].equals(k[k.length-1])&&k.push(new f(k[0].x,k[0].y)),k.length>0&&P.push(k),P}function V7(d,l,c,p,g){const w=[];for(const k of d){const P=wK(k,l,c,p,g);P.length>0&&w.push(...P)}return w}function SK(d,l,c){return new f(c,d.y+(c-d.x)/(l.x-d.x)*(l.y-d.y))}function CK(d,l,c){return new f(d.x+(c-d.y)/(l.y-d.y)*(l.x-d.x),c)}bn("FeatureIndex",B7,{omit:["rawTileData","sourceLayerCoder"]});class Im extends f{constructor(l,c,p,g){super(l,c),this.angle=p,g!==void 0&&(this.segment=g)}clone(){return new Im(this.x,this.y,this.angle,this.segment)}}function q7(d,l,c,p,g){if(l.segment===void 0||c===0)return!0;let w=l,k=l.segment+1,P=0;for(;P>-c/2;){if(k--,k<0)return!1;P-=d[k].dist(w),w=d[k]}P+=d[k].dist(d[k+1]),k++;const R=[];let L=0;for(;P<c/2;){const j=d[k],F=d[k+1];if(!F)return!1;let te=d[k-1].angleTo(j)-j.angleTo(F);for(te=Math.abs((te+3*Math.PI)%(2*Math.PI)-Math.PI),R.push({distance:P,angleDelta:te}),L+=te;P-R[0].distance>p;)L-=R.shift().angleDelta;if(L>g)return!1;k++,P+=j.dist(F)}return!0}function j7(d){let l=0;for(let c=0;c<d.length-1;c++)l+=d[c].dist(d[c+1]);return l}function U7(d,l,c){return d?.6*l*c:0}function H7(d,l){return Math.max(d?d.right-d.left:0,l?l.right-l.left:0)}function TK(d,l,c,p,g,w){const k=U7(c,g,w),P=H7(c,p)*w;let R=0;const L=j7(d)/2;for(let j=0;j<d.length-1;j++){const F=d[j],te=d[j+1],G=F.dist(te);if(R+G>L){const oe=(L-R)/G,ue=Za.number(F.x,te.x,oe),ve=Za.number(F.y,te.y,oe),_e=new Im(ue,ve,te.angleTo(F),j);return _e._round(),!k||q7(d,_e,P,k,l)?_e:void 0}R+=G}}function kK(d,l,c,p,g,w,k,P,R){const L=U7(p,w,k),j=H7(p,g),F=j*k,te=d[0].x===0||d[0].x===R||d[0].y===0||d[0].y===R;return l-F<l/4&&(l=F+l/4),W7(d,te?l/2*P%l:(j/2+2*w)*k*P%l,l,L,c,F,te,!1,R)}function W7(d,l,c,p,g,w,k,P,R){const L=w/2,j=j7(d);let F=0,te=l-c,G=[];for(let oe=0;oe<d.length-1;oe++){const ue=d[oe],ve=d[oe+1],_e=ue.dist(ve),Me=ve.angleTo(ue);for(;te+c<F+_e;){te+=c;const Te=(te-F)/_e,Ae=Za.number(ue.x,ve.x,Te),ze=Za.number(ue.y,ve.y,Te);if(Ae>=0&&Ae<R&&ze>=0&&ze<R&&te-L>=0&&te+L<=j){const We=new Im(Ae,ze,Me,oe);We._round(),p&&!q7(d,We,w,p,g)||G.push(We)}}F+=_e}return P||G.length||k||(G=W7(d,F/2,c,p,g,w,k,!0,R)),G}function G7(d,l,c,p){const g=[],w=d.image,k=w.pixelRatio,P=w.paddedRect.w-2,R=w.paddedRect.h-2;let L={x1:d.left,y1:d.top,x2:d.right,y2:d.bottom};const j=w.stretchX||[[0,P]],F=w.stretchY||[[0,R]],te=(Mt,on)=>Mt+on[1]-on[0],G=j.reduce(te,0),oe=F.reduce(te,0),ue=P-G,ve=R-oe;let _e=0,Me=G,Te=0,Ae=oe,ze=0,We=ue,dt=0,mt=ve;if(w.content&&p){const Mt=w.content,on=Mt[2]-Mt[0],yn=Mt[3]-Mt[1];(w.textFitWidth||w.textFitHeight)&&(L=O3(d)),_e=g5(j,0,Mt[0]),Te=g5(F,0,Mt[1]),Me=g5(j,Mt[0],Mt[2]),Ae=g5(F,Mt[1],Mt[3]),ze=Mt[0]-_e,dt=Mt[1]-Te,We=on-Me,mt=yn-Ae}const Lt=L.x1,Et=L.y1,jt=L.x2-Lt,Ut=L.y2-Et,Bt=(Mt,on,yn,hn)=>{const cn=y5(Mt.stretch-_e,Me,jt,Lt),qn=v5(Mt.fixed-ze,We,Mt.stretch,G),Rr=y5(on.stretch-Te,Ae,Ut,Et),Ur=v5(on.fixed-dt,mt,on.stretch,oe),ii=y5(yn.stretch-_e,Me,jt,Lt),Vo=v5(yn.fixed-ze,We,yn.stretch,G),Qi=y5(hn.stretch-Te,Ae,Ut,Et),za=v5(hn.fixed-dt,mt,hn.stretch,oe),no=new f(cn,Rr),Oi=new f(ii,Rr),bo=new f(ii,Qi),fs=new f(cn,Qi),hs=new f(qn/k,Ur/k),tl=new f(Vo/k,za/k),qo=l*Math.PI/180;if(qo){const ro=Math.sin(qo),qi=Math.cos(qo),Ca=[qi,-ro,ro,qi];no._matMult(Ca),Oi._matMult(Ca),fs._matMult(Ca),bo._matMult(Ca)}const nl=Mt.stretch+Mt.fixed,Zu=on.stretch+on.fixed;return{tl:no,tr:Oi,bl:fs,br:bo,tex:{x:w.paddedRect.x+1+nl,y:w.paddedRect.y+1+Zu,w:yn.stretch+yn.fixed-nl,h:hn.stretch+hn.fixed-Zu},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:hs,pixelOffsetBR:tl,minFontScaleX:We/k/jt,minFontScaleY:mt/k/Ut,isSDF:c}};if(p&&(w.stretchX||w.stretchY)){const Mt=Y7(j,ue,G),on=Y7(F,ve,oe);for(let yn=0;yn<Mt.length-1;yn++){const hn=Mt[yn],cn=Mt[yn+1];for(let qn=0;qn<on.length-1;qn++)g.push(Bt(hn,on[qn],cn,on[qn+1]))}}else g.push(Bt({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:P+1},{fixed:0,stretch:R+1}));return g}function g5(d,l,c){let p=0;for(const g of d)p+=Math.max(l,Math.min(c,g[1]))-Math.max(l,Math.min(c,g[0]));return p}function Y7(d,l,c){const p=[{fixed:-1,stretch:0}];for(const[g,w]of d){const k=p[p.length-1];p.push({fixed:g-k.stretch,stretch:k.stretch}),p.push({fixed:g-k.stretch,stretch:k.stretch+(w-g)})}return p.push({fixed:l+1,stretch:c}),p}function y5(d,l,c,p){return d/l*c+p}function v5(d,l,c,p){return d-l*c/p}bn("Anchor",Im);class _5{constructor(l,c,p,g,w,k,P,R,L,j){var F;if(this.boxStartIndex=l.length,L){let te=k.top,G=k.bottom;const oe=k.collisionPadding;oe&&(te-=oe[1],G+=oe[3]);let ue=G-te;ue>0&&(ue=Math.max(10,ue),this.circleDiameter=ue)}else{const te=!((F=k.image)===null||F===void 0)&&F.content&&(k.image.textFitWidth||k.image.textFitHeight)?O3(k):{x1:k.left,y1:k.top,x2:k.right,y2:k.bottom};te.y1=te.y1*P-R[0],te.y2=te.y2*P+R[2],te.x1=te.x1*P-R[3],te.x2=te.x2*P+R[1];const G=k.collisionPadding;if(G&&(te.x1-=G[0]*P,te.y1-=G[1]*P,te.x2+=G[2]*P,te.y2+=G[3]*P),j){const oe=new f(te.x1,te.y1),ue=new f(te.x2,te.y1),ve=new f(te.x1,te.y2),_e=new f(te.x2,te.y2),Me=j*Math.PI/180;oe._rotate(Me),ue._rotate(Me),ve._rotate(Me),_e._rotate(Me),te.x1=Math.min(oe.x,ue.x,ve.x,_e.x),te.x2=Math.max(oe.x,ue.x,ve.x,_e.x),te.y1=Math.min(oe.y,ue.y,ve.y,_e.y),te.y2=Math.max(oe.y,ue.y,ve.y,_e.y)}l.emplaceBack(c.x,c.y,te.x1,te.y1,te.x2,te.y2,p,g,w)}this.boxEndIndex=l.length}}class EK{constructor(l=[],c=(p,g)=>p<g?-1:p>g?1:0){if(this.data=l,this.length=this.data.length,this.compare=c,this.length>0)for(let p=(this.length>>1)-1;p>=0;p--)this._down(p)}push(l){this.data.push(l),this._up(this.length++)}pop(){if(this.length===0)return;const l=this.data[0],c=this.data.pop();return--this.length>0&&(this.data[0]=c,this._down(0)),l}peek(){return this.data[0]}_up(l){const{data:c,compare:p}=this,g=c[l];for(;l>0;){const w=l-1>>1,k=c[w];if(p(g,k)>=0)break;c[l]=k,l=w}c[l]=g}_down(l){const{data:c,compare:p}=this,g=this.length>>1,w=c[l];for(;l<g;){let k=1+(l<<1);const P=k+1;if(P<this.length&&p(c[P],c[k])<0&&(k=P),p(c[k],w)>=0)break;c[l]=c[k],l=k}c[l]=w}}function PK(d,l=1){const c=af.fromPoints(d[0]),p=Math.min(c.width(),c.height());let g=p/2;const w=new EK([],$K),{minX:k,minY:P,maxX:R,maxY:L}=c;if(p===0)return new f(k,P);for(let te=k;te<R;te+=p)for(let G=P;G<L;G+=p)w.push(new wv(te+g,G+g,g,d));const j=(function(te){let G=0,oe=0,ue=0;const ve=te[0];for(let _e=0,Me=ve.length,Te=Me-1;_e<Me;Te=_e++){const Ae=ve[_e],ze=ve[Te],We=Ae.x*ze.y-ze.x*Ae.y;oe+=(Ae.x+ze.x)*We,ue+=(Ae.y+ze.y)*We,G+=3*We}return new wv(oe/G,ue/G,0,te)})(d);let F=j;for(;w.length;){const te=w.pop();(te.d>F.d||!F.d)&&(F=te),te.max-F.d<=l||(g=te.h/2,w.push(new wv(te.p.x-g,te.p.y-g,g,d)),w.push(new wv(te.p.x+g,te.p.y-g,g,d)),w.push(new wv(te.p.x-g,te.p.y+g,g,d)),w.push(new wv(te.p.x+g,te.p.y+g,g,d)))}return j.d>0&&F.d-j.d<=l?j.p:F.p}function $K(d,l){return l.max-d.max}class wv{constructor(l,c,p,g){this.p=new f(l,c),this.h=p,this.d=(function(w,k){let P=!1,R=1/0;for(const L of k)for(let j=0,F=L.length,te=F-1;j<F;te=j++){const G=L[j],oe=L[te];G.y>w.y!=oe.y>w.y&&w.x<(oe.x-G.x)*(w.y-G.y)/(oe.y-G.y)+G.x&&(P=!P),R=Math.min(R,H1(w,G,oe))}return(P?1:-1)*Math.sqrt(R)})(this.p,g),this.max=this.d+this.h*Math.SQRT2}}var No;s.aM=void 0,(No=s.aM||(s.aM={}))[No.center=1]="center",No[No.left=2]="left",No[No.right=3]="right",No[No.top=4]="top",No[No.bottom=5]="bottom",No[No["top-left"]=6]="top-left",No[No["top-right"]=7]="top-right",No[No["bottom-left"]=8]="bottom-left",No[No["bottom-right"]=9]="bottom-right";const UE=Number.POSITIVE_INFINITY;function Z7(d,l){return l[1]!==UE?(function(c,p,g){let w=0,k=0;switch(p=Math.abs(p),g=Math.abs(g),c){case"top-right":case"top-left":case"top":k=g-7;break;case"bottom-right":case"bottom-left":case"bottom":k=7-g}switch(c){case"top-right":case"bottom-right":case"right":w=-p;break;case"top-left":case"bottom-left":case"left":w=p}return[w,k]})(d,l[0],l[1]):(function(c,p){let g=0,w=0;p<0&&(p=0);const k=p/Math.SQRT2;switch(c){case"top-right":case"top-left":w=k-7;break;case"bottom-right":case"bottom-left":w=7-k;break;case"bottom":w=7-p;break;case"top":w=p-7}switch(c){case"top-right":case"bottom-right":g=-k;break;case"top-left":case"bottom-left":g=k;break;case"left":g=p;break;case"right":g=-p}return[g,w]})(d,l[0])}function K7(d,l,c){var p;const g=d.layout,w=(p=g.get("text-variable-anchor-offset"))===null||p===void 0?void 0:p.evaluate(l,{},c);if(w){const P=w.values,R=[];for(let L=0;L<P.length;L+=2){const j=R[L]=P[L],F=P[L+1].map((te=>te*wa));j.startsWith("top")?F[1]-=7:j.startsWith("bottom")&&(F[1]+=7),R[L+1]=F}return new ho(R)}const k=g.get("text-variable-anchor");if(k){let P;P=d._unevaluatedLayout.getValue("text-radial-offset")!==void 0?[g.get("text-radial-offset").evaluate(l,{},c)*wa,UE]:g.get("text-offset").evaluate(l,{},c).map((L=>L*wa));const R=[];for(const L of k)R.push(L,Z7(L,P));return new ho(R)}return null}function HE(d){switch(d){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}function MK(d,l,c,p,g,w,k,P,R,L,j,F){let te=w.textMaxSize.evaluate(l,{});te===void 0&&(te=k);const G=d.layers[0].layout,oe=G.get("icon-offset").evaluate(l,{},j),ue=J7(c.horizontal),ve=k/24,_e=d.tilePixelRatio*ve,Me=d.tilePixelRatio*te/24,Te=d.tilePixelRatio*P,Ae=d.tilePixelRatio*G.get("symbol-spacing"),ze=G.get("text-padding")*d.tilePixelRatio,We=(function(yn,hn,cn,qn=1){const Rr=yn.get("icon-padding").evaluate(hn,{},cn),Ur=Rr?.values;return[Ur[0]*qn,Ur[1]*qn,Ur[2]*qn,Ur[3]*qn]})(G,l,j,d.tilePixelRatio),dt=G.get("text-max-angle")/180*Math.PI,mt=G.get("text-rotation-alignment")!=="viewport"&&G.get("symbol-placement")!=="point",Lt=G.get("icon-rotation-alignment")==="map"&&G.get("symbol-placement")!=="point",Et=G.get("symbol-placement"),jt=Ae/2,Ut=G.get("icon-text-fit");let Bt;p&&Ut!=="none"&&(d.allowVerticalPlacement&&c.vertical&&(Bt=R3(p,c.vertical,Ut,G.get("icon-text-fit-padding"),oe,ve)),ue&&(p=R3(p,ue,Ut,G.get("icon-text-fit-padding"),oe,ve)));const Mt=j?F.line.getGranularityForZoomLevel(j.z):1,on=(yn,hn)=>{hn.x<0||hn.x>=$e||hn.y<0||hn.y>=$e||(function(cn,qn,Rr,Ur,ii,Vo,Qi,za,no,Oi,bo,fs,hs,tl,qo,nl,Zu,ro,qi,Ca,ea,io,$h,ld,b2){const Dm=cn.addToLineVertexArray(qn,Rr);let J0,Sv,Cv,Tv,Q7=0,e9=0,t9=0,n9=0,WE=-1,GE=-1;const Mh={};let r9=fa("");if(cn.allowVerticalPlacement&&Ur.vertical){const ps=za.layout.get("text-rotate").evaluate(ea,{},ld)+90;Cv=new _5(no,qn,Oi,bo,fs,Ur.vertical,hs,tl,qo,ps),Qi&&(Tv=new _5(no,qn,Oi,bo,fs,Qi,Zu,ro,qo,ps))}if(ii){const ps=za.layout.get("icon-rotate").evaluate(ea,{}),ru=za.layout.get("icon-text-fit")!=="none",Q0=G7(ii,ps,$h,ru),cd=Qi?G7(Qi,ps,$h,ru):void 0;Sv=new _5(no,qn,Oi,bo,fs,ii,Zu,ro,!1,ps),Q7=4*Q0.length;const ey=cn.iconSizeData;let df=null;ey.kind==="source"?(df=[ad*za.layout.get("icon-size").evaluate(ea,{})],df[0]>nf&&it(`${cn.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)):ey.kind==="composite"&&(df=[ad*io.compositeIconSizes[0].evaluate(ea,{},ld),ad*io.compositeIconSizes[1].evaluate(ea,{},ld)],(df[0]>nf||df[1]>nf)&&it(`${cn.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)),cn.addSymbols(cn.icon,Q0,df,Ca,qi,ea,s.ax.none,qn,Dm.lineStartIndex,Dm.lineLength,-1,ld),WE=cn.icon.placedSymbolArray.length-1,cd&&(e9=4*cd.length,cn.addSymbols(cn.icon,cd,df,Ca,qi,ea,s.ax.vertical,qn,Dm.lineStartIndex,Dm.lineLength,-1,ld),GE=cn.icon.placedSymbolArray.length-1)}const i9=Object.keys(Ur.horizontal);for(const ps of i9){const ru=Ur.horizontal[ps];if(!J0){r9=fa(ru.text);const cd=za.layout.get("text-rotate").evaluate(ea,{},ld);J0=new _5(no,qn,Oi,bo,fs,ru,hs,tl,qo,cd)}const Q0=ru.positionedLines.length===1;if(t9+=X7(cn,qn,ru,Vo,za,qo,ea,nl,Dm,Ur.vertical?s.ax.horizontal:s.ax.horizontalOnly,Q0?i9:[ps],Mh,WE,io,ld),Q0)break}Ur.vertical&&(n9+=X7(cn,qn,Ur.vertical,Vo,za,qo,ea,nl,Dm,s.ax.vertical,["vertical"],Mh,GE,io,ld));const IK=J0?J0.boxStartIndex:cn.collisionBoxArray.length,DK=J0?J0.boxEndIndex:cn.collisionBoxArray.length,LK=Cv?Cv.boxStartIndex:cn.collisionBoxArray.length,OK=Cv?Cv.boxEndIndex:cn.collisionBoxArray.length,RK=Sv?Sv.boxStartIndex:cn.collisionBoxArray.length,BK=Sv?Sv.boxEndIndex:cn.collisionBoxArray.length,FK=Tv?Tv.boxStartIndex:cn.collisionBoxArray.length,zK=Tv?Tv.boxEndIndex:cn.collisionBoxArray.length;let ud=-1;const b5=(ps,ru)=>ps?.circleDiameter?Math.max(ps.circleDiameter,ru):ru;ud=b5(J0,ud),ud=b5(Cv,ud),ud=b5(Sv,ud),ud=b5(Tv,ud);const a9=ud>-1?1:0;a9&&(ud*=b2/wa),cn.glyphOffsetArray.length>=Em.MAX_GLYPHS&&it("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),ea.sortKey!==void 0&&cn.addToSortKeyRanges(cn.symbolInstances.length,ea.sortKey);const NK=K7(za,ea,ld),[VK,qK]=(function(ps,ru){const Q0=ps.length,cd=ru?.values;if(cd?.length>0)for(let ey=0;ey<cd.length;ey+=2){const df=cd[ey+1];ps.emplaceBack(s.aM[cd[ey]],df[0],df[1])}return[Q0,ps.length]})(cn.textAnchorOffsets,NK);cn.symbolInstances.emplaceBack(qn.x,qn.y,Mh.right>=0?Mh.right:-1,Mh.center>=0?Mh.center:-1,Mh.left>=0?Mh.left:-1,Mh.vertical||-1,WE,GE,r9,IK,DK,LK,OK,RK,BK,FK,zK,Oi,t9,n9,Q7,e9,a9,0,hs,ud,VK,qK)})(d,hn,yn,c,p,g,Bt,d.layers[0],d.collisionBoxArray,l.index,l.sourceLayerIndex,d.index,_e,[ze,ze,ze,ze],mt,R,Te,We,Lt,oe,l,w,L,j,k)};if(Et==="line")for(const yn of z7(l.geometry,0,0,$e,$e)){const hn=Ch(yn,Mt),cn=kK(hn,Ae,dt,c.vertical||ue,p,24,Me,d.overscaling,$e);for(const qn of cn)ue&&AK(d,ue.text,jt,qn)||on(hn,qn)}else if(Et==="line-center"){for(const yn of l.geometry)if(yn.length>1){const hn=Ch(yn,Mt),cn=TK(hn,dt,c.vertical||ue,p,24,Me);cn&&on(hn,cn)}}else if(l.type==="Polygon")for(const yn of Ws(l.geometry,0)){const hn=PK(yn,16);on(Ch(yn[0],Mt,!0),new Im(hn.x,hn.y,0))}else if(l.type==="LineString")for(const yn of l.geometry){const hn=Ch(yn,Mt);on(hn,new Im(hn[0].x,hn[0].y,0))}else if(l.type==="Point")for(const yn of l.geometry)for(const hn of yn)on([hn],new Im(hn.x,hn.y,0))}function X7(d,l,c,p,g,w,k,P,R,L,j,F,te,G,oe){const ue=(function(Me,Te,Ae,ze,We,dt,mt,Lt){const Et=ze.layout.get("text-rotate").evaluate(dt,{})*Math.PI/180,jt=[];for(const Ut of Te.positionedLines)for(const Bt of Ut.positionedGlyphs){if(!Bt.rect)continue;const Mt=Bt.rect||{};let on=4,yn=!0,hn=1,cn=0;const qn=(We||Lt)&&Bt.vertical,Rr=Bt.metrics.advance*Bt.scale/2;if(Lt&&Te.verticalizable&&(cn=Ut.lineOffset/2-(Bt.imageName?-(wa-Bt.metrics.width*Bt.scale)/2:(Bt.scale-1)*wa)),Bt.imageName){const ro=mt[Bt.imageName];yn=ro.sdf,hn=ro.pixelRatio,on=1/hn}const Ur=We?[Bt.x+Rr,Bt.y]:[0,0];let ii=We?[0,0]:[Bt.x+Rr+Ae[0],Bt.y+Ae[1]-cn],Vo=[0,0];qn&&(Vo=ii,ii=[0,0]);const Qi=Bt.metrics.isDoubleResolution?2:1,za=(Bt.metrics.left-on)*Bt.scale-Rr+ii[0],no=(-Bt.metrics.top-on)*Bt.scale+ii[1],Oi=za+Mt.w/Qi*Bt.scale/hn,bo=no+Mt.h/Qi*Bt.scale/hn,fs=new f(za,no),hs=new f(Oi,no),tl=new f(za,bo),qo=new f(Oi,bo);if(qn){const ro=new f(-Rr,Rr- -17),qi=-Math.PI/2,Ca=12-Rr,ea=new f(22-Ca,-(Bt.imageName?Ca:0)),io=new f(...Vo);fs._rotateAround(qi,ro)._add(ea)._add(io),hs._rotateAround(qi,ro)._add(ea)._add(io),tl._rotateAround(qi,ro)._add(ea)._add(io),qo._rotateAround(qi,ro)._add(ea)._add(io)}if(Et){const ro=Math.sin(Et),qi=Math.cos(Et),Ca=[qi,-ro,ro,qi];fs._matMult(Ca),hs._matMult(Ca),tl._matMult(Ca),qo._matMult(Ca)}const nl=new f(0,0),Zu=new f(0,0);jt.push({tl:fs,tr:hs,bl:tl,br:qo,tex:Mt,writingMode:Te.writingMode,glyphOffset:Ur,sectionIndex:Bt.sectionIndex,isSDF:yn,pixelOffsetTL:nl,pixelOffsetBR:Zu,minFontScaleX:0,minFontScaleY:0})}return jt})(0,c,P,g,w,k,p,d.allowVerticalPlacement),ve=d.textSizeData;let _e=null;ve.kind==="source"?(_e=[ad*g.layout.get("text-size").evaluate(k,{})],_e[0]>nf&&it(`${d.layerIds[0]}: Value for "text-size" is >= 255. Reduce your "text-size".`)):ve.kind==="composite"&&(_e=[ad*G.compositeTextSizes[0].evaluate(k,{},oe),ad*G.compositeTextSizes[1].evaluate(k,{},oe)],(_e[0]>nf||_e[1]>nf)&&it(`${d.layerIds[0]}: Value for "text-size" is >= 255. Reduce your "text-size".`)),d.addSymbols(d.text,ue,_e,P,w,k,L,l,R.lineStartIndex,R.lineLength,te,oe);for(const Me of j)F[Me]=d.text.placedSymbolArray.length-1;return 4*ue.length}function J7(d){for(const l in d)return d[l];return null}function AK(d,l,c,p){const g=d.compareText;if(l in g){const w=g[l];for(let k=w.length-1;k>=0;k--)if(p.dist(w[k])<c)return!0}else g[l]=[];return g[l].push(p),!1}s.$=ft,s.A=U,s.B=fh,s.C=w0,s.D=Pn,s.E=va,s.F=ml,s.G=function([d,l,c]){return l+=90,l*=Math.PI/180,c*=Math.PI/180,{x:d*Math.cos(l)*Math.sin(c),y:d*Math.sin(l)*Math.sin(c),z:d*Math.cos(c)}},s.H=Za,s.I=hv,s.J=or,s.K=uh,s.L=function(d){if(Ie==null){const l=d.navigator?d.navigator.userAgent:null;Ie=!!d.safari||!(!l||!(/\b(iPad|iPhone|iPod)\b/.test(l)||l.match("Safari")&&!l.match("Chrome")))}return Ie},s.M=Gt,s.N=class{constructor(d,l){this.target=d,this.mapId=l,this.resolveRejects={},this.tasks={},this.taskQueue=[],this.abortControllers={},this.messageHandlers={},this.invoker=new $E((()=>this.process())),this.subscription=Yt(this.target,"message",(c=>this.receive(c)),!1),this.globalScope=St(self)?d:window}registerMessageHandler(d,l){this.messageHandlers[d]=l}unregisterMessageHandler(d){delete this.messageHandlers[d]}sendAsync(d,l){return new Promise(((c,p)=>{const g=Math.round(1e18*Math.random()).toString(36).substring(0,10),w=l?Yt(l.signal,"abort",(()=>{w?.unsubscribe(),delete this.resolveRejects[g];const R={id:g,type:"<cancel>",origin:location.origin,targetMapId:d.targetMapId,sourceMapId:this.mapId};this.target.postMessage(R)}),ME):null;this.resolveRejects[g]={resolve:R=>{w?.unsubscribe(),c(R)},reject:R=>{w?.unsubscribe(),p(R)}};const k=[],P=Object.assign(Object.assign({},d),{id:g,sourceMapId:this.mapId,origin:location.origin,data:Yl(d.data,k)});this.target.postMessage(P,{transfer:k})}))}receive(d){const l=d.data,c=l.id,p=["file://","resource://android","null"],g=[l.origin,location.origin],w=l.origin===location.origin,k=g.some((P=>p.includes(P)));if((w||k)&&(!l.targetMapId||this.mapId===l.targetMapId)){if(l.type==="<cancel>"){delete this.tasks[c];const P=this.abortControllers[c];return delete this.abortControllers[c],void(P&&P.abort())}if(St(self)||l.mustQueue)return this.tasks[c]=l,this.taskQueue.push(c),void this.invoker.trigger();this.processTask(c,l)}}process(){if(this.taskQueue.length===0)return;const d=this.taskQueue.shift(),l=this.tasks[d];delete this.tasks[d],this.taskQueue.length>0&&this.invoker.trigger(),l&&this.processTask(d,l)}processTask(d,l){return o(this,void 0,void 0,(function*(){if(l.type==="<response>"){const g=this.resolveRejects[d];return delete this.resolveRejects[d],g?void(l.error?g.reject(je(Wd(l.error))):g.resolve(Wd(l.data))):void 0}if(!this.messageHandlers[l.type])return void this.completeTask(d,new Error(`Could not find a registered handler for ${l.type}, map ID: ${this.mapId}, available handlers: ${Object.keys(this.messageHandlers).join(", ")}`));const c=Wd(l.data),p=new AbortController;this.abortControllers[d]=p;try{const g=yield this.messageHandlers[l.type](l.sourceMapId,c,p);this.completeTask(d,null,g)}catch(g){this.completeTask(d,je(g))}}))}completeTask(d,l,c){const p=[];delete this.abortControllers[d];const g={id:d,type:"<response>",sourceMapId:this.mapId,origin:location.origin,error:l?Yl(l):null,data:Yl(c,p)};this.target.postMessage(g,{transfer:p})}remove(){this.invoker.remove(),this.subscription.unsubscribe()}},s.O=function(){var d=new U(16);return U!=Float32Array&&(d[1]=0,d[2]=0,d[3]=0,d[4]=0,d[6]=0,d[7]=0,d[8]=0,d[9]=0,d[11]=0,d[12]=0,d[13]=0,d[14]=0),d[0]=1,d[5]=1,d[10]=1,d[15]=1,d},s.P=f,s.Q=function(d,l,c){var p,g,w,k,P,R,L,j,F,te,G,oe,ue=c[0],ve=c[1],_e=c[2];return l===d?(d[12]=l[0]*ue+l[4]*ve+l[8]*_e+l[12],d[13]=l[1]*ue+l[5]*ve+l[9]*_e+l[13],d[14]=l[2]*ue+l[6]*ve+l[10]*_e+l[14],d[15]=l[3]*ue+l[7]*ve+l[11]*_e+l[15]):(g=l[1],w=l[2],k=l[3],P=l[4],R=l[5],L=l[6],j=l[7],F=l[8],te=l[9],G=l[10],oe=l[11],d[0]=p=l[0],d[1]=g,d[2]=w,d[3]=k,d[4]=P,d[5]=R,d[6]=L,d[7]=j,d[8]=F,d[9]=te,d[10]=G,d[11]=oe,d[12]=p*ue+P*ve+F*_e+l[12],d[13]=g*ue+R*ve+te*_e+l[13],d[14]=w*ue+L*ve+G*_e+l[14],d[15]=k*ue+j*ve+oe*_e+l[15]),d},s.R=Lo,s.S=function(d,l,c){var p=c[0],g=c[1],w=c[2];return d[0]=l[0]*p,d[1]=l[1]*p,d[2]=l[2]*p,d[3]=l[3]*p,d[4]=l[4]*g,d[5]=l[5]*g,d[6]=l[6]*g,d[7]=l[7]*g,d[8]=l[8]*w,d[9]=l[9]*w,d[10]=l[10]*w,d[11]=l[11]*w,d[12]=l[12],d[13]=l[13],d[14]=l[14],d[15]=l[15],d},s.T=Ks,s.U=function(d,l,c){var p=l[0],g=l[1],w=l[2],k=l[3],P=l[4],R=l[5],L=l[6],j=l[7],F=l[8],te=l[9],G=l[10],oe=l[11],ue=l[12],ve=l[13],_e=l[14],Me=l[15],Te=c[0],Ae=c[1],ze=c[2],We=c[3];return d[0]=Te*p+Ae*P+ze*F+We*ue,d[1]=Te*g+Ae*R+ze*te+We*ve,d[2]=Te*w+Ae*L+ze*G+We*_e,d[3]=Te*k+Ae*j+ze*oe+We*Me,d[4]=(Te=c[4])*p+(Ae=c[5])*P+(ze=c[6])*F+(We=c[7])*ue,d[5]=Te*g+Ae*R+ze*te+We*ve,d[6]=Te*w+Ae*L+ze*G+We*_e,d[7]=Te*k+Ae*j+ze*oe+We*Me,d[8]=(Te=c[8])*p+(Ae=c[9])*P+(ze=c[10])*F+(We=c[11])*ue,d[9]=Te*g+Ae*R+ze*te+We*ve,d[10]=Te*w+Ae*L+ze*G+We*_e,d[11]=Te*k+Ae*j+ze*oe+We*Me,d[12]=(Te=c[12])*p+(Ae=c[13])*P+(ze=c[14])*F+(We=c[15])*ue,d[13]=Te*g+Ae*R+ze*te+We*ve,d[14]=Te*w+Ae*L+ze*G+We*_e,d[15]=Te*k+Ae*j+ze*oe+We*Me,d},s.V=function(d,l){const c={};for(const p of l)p in d&&(c[p]=d[p]);return c},s.W=rf,s.X=zt,s.Y=n2,s.Z=t2,s._=o,s.a=On,s.a$=function(d){var l=new U(3);return l[0]=d[0],l[1]=d[1],l[2]=d[2],l},s.a0=N,s.a1=O,s.a2=Tt,s.a3=Os,s.a4=H3,s.a5=vv,s.a6=$e,s.a7=Yu,s.a8=af,s.a9=25,s.aA=function(d){var l=d[0],c=d[1];return Math.sqrt(l*l+c*c)},s.aB=function(d){return d[0]=0,d[1]=0,d},s.aC=function(d,l,c){return d[0]=l[0]*c,d[1]=l[1]*c,d},s.aD=Jb,s.aE=pe,s.aF=function(d,l,c,p){const g=l.y-d.y,w=l.x-d.x,k=p.y-c.y,P=p.x-c.x,R=k*w-P*g;if(R===0)return null;const L=(P*(d.y-c.y)-k*(d.x-c.x))/R;return new f(d.x+L*w,d.y+L*g)},s.aG=z7,s.aH=Qc,s.aI=function(d){let l=1/0,c=1/0,p=-1/0,g=-1/0;for(const w of d)l=Math.min(l,w.x),c=Math.min(c,w.y),p=Math.max(p,w.x),g=Math.max(g,w.y);return[l,c,p,g]},s.aJ=wa,s.aK=Be,s.aL=function(d,l,c,p,g=!1){if(!c[0]&&!c[1])return[0,0];const w=g?p==="map"?-d.bearingInRadians:0:p==="viewport"?d.bearingInRadians:0;if(w){const k=Math.sin(w),P=Math.cos(w);c=[c[0]*P-c[1]*k,c[0]*k+c[1]*P]}return[g?c[0]:Be(l,c[0],d.zoom),g?c[1]:Be(l,c[1],d.zoom)]},s.aN=Xb,s.aO=HE,s.aP=Zr,s.aQ=d=>d.type==="symbol",s.aR=tv,s.aS=oi,s.aT=Q1,s.aU=He,s.aV=gn,s.aW=Xt,s.aX=vt,s.aY=W3,s.aZ=H,s.a_=z,s.aa=r2,s.ab=d=>{const l=window.document.createElement("video");return l.muted=!0,new Promise((c=>{l.onloadstart=()=>{c(l)};for(const p of d){const g=window.document.createElement("source");tr(p)||(l.crossOrigin="Anonymous"),g.src=p,l.appendChild(g)}}))},s.ac=un,s.ad=function(){return At++},s.ae=S,s.af=Em,s.ag=_2,s.ah=Ul,s.ai=eo,s.aj=Z3,s.ak=function(d){const l={};if(d.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,((c,p,g,w)=>{const k=g||w;return l[p]=!k||k.toLowerCase(),""})),l["max-age"]){const c=parseInt(l["max-age"],10);isNaN(c)?delete l["max-age"]:l["max-age"]=c}return l},s.al=ct,s.am=85.051129,s.an=_t,s.ao=function(d){return Math.pow(2,d)},s.ap=q,s.aq=U3,s.ar=function(d){return Math.log(d)/Math.LN2},s.as=function(d){var l=d[0],c=d[1];return l*l+c*c},s.at=function(d){if(!d.length)return new Set;const l=Math.max(...d.map((R=>R.canonical.z)));let c=1/0,p=-1/0,g=1/0,w=-1/0;const k=[];for(const R of d){const{x:L,y:j,z:F}=R.canonical,te=Math.pow(2,l-F),G=L*te,oe=j*te;k.push({id:R,x:G,y:oe}),G<c&&(c=G),G>p&&(p=G),oe<g&&(g=oe),oe>w&&(w=oe)}const P=new Set;for(const R of k)R.x!==c&&R.x!==p&&R.y!==g&&R.y!==w||P.add(R.id);return P},s.au=function(d,l){const c=Math.abs(2*d.wrap)-+(d.wrap<0),p=Math.abs(2*l.wrap)-+(l.wrap<0);return d.overscaledZ-l.overscaledZ||p-c||l.canonical.y-d.canonical.y||l.canonical.x-d.canonical.x},s.av=class{constructor(d,l){this.max=d,this.onRemove=l,this.reset()}reset(){for(const d in this.data)for(const l of this.data[d])l.timeout&&clearTimeout(l.timeout),this.onRemove(l.value);return this.data={},this.order=[],this}add(d,l,c){const p=d.wrapped().key;this.data[p]===void 0&&(this.data[p]=[]);const g={value:l,timeout:void 0};if(c!==void 0&&(g.timeout=setTimeout((()=>{this.remove(d,g)}),c)),this.data[p].push(g),this.order.push(p),this.order.length>this.max){const w=this._getAndRemoveByKey(this.order[0]);w&&this.onRemove(w)}return this}has(d){return d.wrapped().key in this.data}getAndRemove(d){return this.has(d)?this._getAndRemoveByKey(d.wrapped().key):null}_getAndRemoveByKey(d){const l=this.data[d].shift();return l.timeout&&clearTimeout(l.timeout),this.data[d].length===0&&delete this.data[d],this.order.splice(this.order.indexOf(d),1),l.value}getByKey(d){const l=this.data[d];return l?l[0].value:null}get(d){return this.has(d)?this.data[d.wrapped().key][0].value:null}remove(d,l){if(!this.has(d))return this;const c=d.wrapped().key,p=l===void 0?0:this.data[c].indexOf(l),g=this.data[c][p];return this.data[c].splice(p,1),g.timeout&&clearTimeout(g.timeout),this.data[c].length===0&&delete this.data[c],this.onRemove(g.value),this.order.splice(this.order.indexOf(c),1),this}setMaxSize(d){for(this.max=d;this.order.length>this.max;){const l=this._getAndRemoveByKey(this.order[0]);l&&this.onRemove(l)}return this}filter(d){const l=[];for(const c in this.data)for(const p of this.data[c])d(p.value)||l.push(p);for(const c of l)this.remove(c.value.tileID,c)}},s.aw=function(d,l){let c=0,p=0;if(d.kind==="constant")p=d.layoutSize;else if(d.kind!=="source"){const{interpolationType:g,minZoom:w,maxZoom:k}=d,P=g?ct(Fi.interpolationFactor(g,l,w,k),0,1):0;d.kind==="camera"?p=Za.number(d.minSize,d.maxSize,P):c=P}return{uSizeT:c,uSize:p}},s.ay=function(d,{uSize:l,uSizeT:c},{lowerSize:p,upperSize:g}){return d.kind==="source"?p/ad:d.kind==="composite"?Za.number(p/ad,g/ad,c):l},s.az=ce,s.b=qe,s.b$=Jc,s.b0=function(d,l,c){return d[0]=l[0]-c[0],d[1]=l[1]-c[1],d[2]=l[2]-c[2],d},s.b1=function(d,l){var c=l[0],p=l[1],g=l[2],w=c*c+p*p+g*g;return w>0&&(w=1/Math.sqrt(w)),d[0]=l[0]*w,d[1]=l[1]*w,d[2]=l[2]*w,d},s.b2=K,s.b3=function(d,l){return d[0]*l[0]+d[1]*l[1]+d[2]*l[2]},s.b4=function(d,l,c){return d[0]=l[0]*c[0],d[1]=l[1]*c[1],d[2]=l[2]*c[2],d[3]=l[3]*c[3],d},s.b5=ee,s.b6=function(d,l,c){const p=l[0]*c[0]+l[1]*c[1]+l[2]*c[2];return p===0?null:(-(d[0]*c[0]+d[1]*c[1]+d[2]*c[2])-c[3])/p},s.b7=le,s.b8=function(d,l,c){return d[0]=l[0]*c,d[1]=l[1]*c,d[2]=l[2]*c,d[3]=l[3]*c,d},s.b9=function(d,l){return d[0]*l[0]+d[1]*l[1]+d[2]*l[2]+d[3]},s.bA=se,s.bB=function(d,l,c){var p=c[0],g=c[1],w=c[2],k=c[3],P=l[0],R=l[1],L=l[2],j=g*L-w*R,F=w*P-p*L,te=p*R-g*P;return d[0]=P+k*(j+=j)+g*(te+=te)-w*(F+=F),d[1]=R+k*F+w*j-p*te,d[2]=L+k*te+p*F-g*j,d},s.bC=function(d,l,c){const p=(g=[d[0],d[1],d[2],l[0],l[1],l[2],c[0],c[1],c[2]])[0]*((j=g[8])*(k=g[4])-(P=g[5])*(L=g[7]))+g[1]*(-j*(w=g[3])+P*(R=g[6]))+g[2]*(L*w-k*R);var g,w,k,P,R,L,j;if(p===0)return null;const F=K([],[l[0],l[1],l[2]],[c[0],c[1],c[2]]),te=K([],[c[0],c[1],c[2]],[d[0],d[1],d[2]]),G=K([],[d[0],d[1],d[2]],[l[0],l[1],l[2]]),oe=H([],F,-d[3]);return z(oe,oe,H([],te,-l[3])),z(oe,oe,H([],G,-c[3])),H(oe,oe,1/p),oe},s.bD=yv,s.bE=function(){return new Float64Array(4)},s.bF=function(d,l,c,p){var g=[],w=[];return g[0]=l[0]-c[0],g[1]=l[1]-c[1],g[2]=l[2]-c[2],w[0]=g[0]*Math.cos(p)-g[1]*Math.sin(p),w[1]=g[0]*Math.sin(p)+g[1]*Math.cos(p),w[2]=g[2],d[0]=w[0]+c[0],d[1]=w[1]+c[1],d[2]=w[2]+c[2],d},s.bG=function(d,l,c,p){var g=[],w=[];return g[0]=l[0]-c[0],g[1]=l[1]-c[1],g[2]=l[2]-c[2],w[0]=g[0],w[1]=g[1]*Math.cos(p)-g[2]*Math.sin(p),w[2]=g[1]*Math.sin(p)+g[2]*Math.cos(p),d[0]=w[0]+c[0],d[1]=w[1]+c[1],d[2]=w[2]+c[2],d},s.bH=function(d,l,c,p){var g=[],w=[];return g[0]=l[0]-c[0],g[1]=l[1]-c[1],g[2]=l[2]-c[2],w[0]=g[2]*Math.sin(p)+g[0]*Math.cos(p),w[1]=g[1],w[2]=g[2]*Math.cos(p)-g[0]*Math.sin(p),d[0]=w[0]+c[0],d[1]=w[1]+c[1],d[2]=w[2]+c[2],d},s.bI=function(d,l,c){var p=Math.sin(c),g=Math.cos(c),w=l[0],k=l[1],P=l[2],R=l[3],L=l[8],j=l[9],F=l[10],te=l[11];return l!==d&&(d[4]=l[4],d[5]=l[5],d[6]=l[6],d[7]=l[7],d[12]=l[12],d[13]=l[13],d[14]=l[14],d[15]=l[15]),d[0]=w*g-L*p,d[1]=k*g-j*p,d[2]=P*g-F*p,d[3]=R*g-te*p,d[8]=w*p+L*g,d[9]=k*p+j*g,d[10]=P*p+F*g,d[11]=R*p+te*g,d},s.bJ=function(d,l){const c=at(d,360),p=at(l,360),g=p-c,w=p>c?g-360:g+360;return Math.abs(g)<Math.abs(w)?g:w},s.bK=function(d){return d[0]=0,d[1]=0,d[2]=0,d},s.bL=function(d,l,c,p){const g=Math.sqrt(d*d+l*l),w=Math.sqrt(c*c+p*p);d/=g,l/=g,c/=w,p/=w;const k=Math.acos(d*c+l*p);return-l*c+d*p>0?k:-k},s.bM=function(d,l){const c=at(d,2*Math.PI),p=at(l,2*Math.PI);return Math.min(Math.abs(c-p),Math.abs(c-p+2*Math.PI),Math.abs(c-p-2*Math.PI))},s.bN=function(){const d={},l=Ft.$version;for(const c in Ft.$root){const p=Ft.$root[c];if(p.required){let g=null;g=c==="version"?l:p.type==="array"?[]:{},g!=null&&(d[c]=g)}}return d},s.bO=rn,s.bP=S0,s.bQ=function d(l,c){if(Array.isArray(l)){if(!Array.isArray(c)||l.length!==c.length)return!1;for(let p=0;p<l.length;p++)if(!d(l[p],c[p]))return!1;return!0}if(typeof l=="object"&&l!==null&&c!==null){if(typeof c!="object"||Object.keys(l).length!==Object.keys(c).length)return!1;for(const p in l)if(!d(l[p],c[p]))return!1;return!0}return l===c},s.bR=Ge,s.bS=function(d){d=d.slice();const l=Object.create(null);for(let c=0;c<d.length;c++)l[d[c].id]=d[c];for(let c=0;c<d.length;c++)"ref"in d[c]&&(d[c]=wc(d[c],l[d[c].ref]));return d},s.bT=function(d,l){if(d.type==="custom")return new PE(d,l);switch(d.type){case"background":return new V3(d,l);case"circle":return new wk(d,l);case"color-relief":return new Zw(d,l);case"fill":return new Dk(d,l);case"fill-extrusion":return new Uk(d,l);case"heatmap":return new Ww(d,l);case"hillshade":return new Gw(d,l);case"line":return new pa(d,l);case"raster":return new M0(d,l);case"symbol":return new gv(d,l)}},s.bU=d=>d.type==="raster",s.bV=Ee,s.bW=function(d,l){if(!d)return[{command:"setStyle",args:[l]}];let c=[];try{if(!Mr(d.version,l.version))return[{command:"setStyle",args:[l]}];Mr(d.center,l.center)||c.push({command:"setCenter",args:[l.center]}),Mr(d.state,l.state)||c.push({command:"setGlobalState",args:[l.state]}),Mr(d.centerAltitude,l.centerAltitude)||c.push({command:"setCenterAltitude",args:[l.centerAltitude]}),Mr(d.zoom,l.zoom)||c.push({command:"setZoom",args:[l.zoom]}),Mr(d.bearing,l.bearing)||c.push({command:"setBearing",args:[l.bearing]}),Mr(d.pitch,l.pitch)||c.push({command:"setPitch",args:[l.pitch]}),Mr(d.roll,l.roll)||c.push({command:"setRoll",args:[l.roll]}),Mr(d.sprite,l.sprite)||c.push({command:"setSprite",args:[l.sprite]}),Mr(d.glyphs,l.glyphs)||c.push({command:"setGlyphs",args:[l.glyphs]}),Mr(d.transition,l.transition)||c.push({command:"setTransition",args:[l.transition]}),Mr(d.light,l.light)||c.push({command:"setLight",args:[l.light]}),Mr(d.terrain,l.terrain)||c.push({command:"setTerrain",args:[l.terrain]}),Mr(d.sky,l.sky)||c.push({command:"setSky",args:[l.sky]}),Mr(d.projection,l.projection)||c.push({command:"setProjection",args:[l.projection]});const p={},g=[];(function(k,P,R,L){let j;for(j in P=P||{},k=k||{})Object.prototype.hasOwnProperty.call(k,j)&&(Object.prototype.hasOwnProperty.call(P,j)||y1(j,R,L));for(j in P)Object.prototype.hasOwnProperty.call(P,j)&&(Object.prototype.hasOwnProperty.call(k,j)?Mr(k[j],P[j])||(k[j].type==="geojson"&&P[j].type==="geojson"&&sb(k,P,j)?_a(R,{command:"setGeoJSONSourceData",args:[j,P[j].data]}):Mp(j,P,R,L)):Sc(j,P,R))})(d.sources,l.sources,g,p);const w=[];d.layers&&d.layers.forEach((k=>{"source"in k&&p[k.source]?c.push({command:"removeLayer",args:[k.id]}):w.push(k)})),c=c.concat(g),(function(k,P,R){P=P||[];const L=(k=k||[]).map(Ug),j=P.map(Ug),F=k.reduce(v1,{}),te=P.reduce(v1,{}),G=L.slice(),oe=Object.create(null);let ue,ve,_e,Me,Te;for(let Ae=0,ze=0;Ae<L.length;Ae++)ue=L[Ae],Object.prototype.hasOwnProperty.call(te,ue)?ze++:(_a(R,{command:"removeLayer",args:[ue]}),G.splice(G.indexOf(ue,ze),1));for(let Ae=0,ze=0;Ae<j.length;Ae++)ue=j[j.length-1-Ae],G[G.length-1-Ae]!==ue&&(Object.prototype.hasOwnProperty.call(F,ue)?(_a(R,{command:"removeLayer",args:[ue]}),G.splice(G.lastIndexOf(ue,G.length-ze),1)):ze++,Me=G[G.length-Ae],_a(R,{command:"addLayer",args:[te[ue],Me]}),G.splice(G.length-Ae,0,ue),oe[ue]=!0);for(let Ae=0;Ae<j.length;Ae++)if(ue=j[Ae],ve=F[ue],_e=te[ue],!oe[ue]&&!Mr(ve,_e))if(Mr(ve.source,_e.source)&&Mr(ve["source-layer"],_e["source-layer"])&&Mr(ve.type,_e.type)){for(Te in Id(ve.layout,_e.layout,R,ue,null,"setLayoutProperty"),Id(ve.paint,_e.paint,R,ue,null,"setPaintProperty"),Mr(ve.filter,_e.filter)||_a(R,{command:"setFilter",args:[ue,_e.filter]}),Mr(ve.minzoom,_e.minzoom)&&Mr(ve.maxzoom,_e.maxzoom)||_a(R,{command:"setLayerZoomRange",args:[ue,_e.minzoom,_e.maxzoom]}),ve)Object.prototype.hasOwnProperty.call(ve,Te)&&Te!=="layout"&&Te!=="paint"&&Te!=="filter"&&Te!=="metadata"&&Te!=="minzoom"&&Te!=="maxzoom"&&(Te.indexOf("paint.")===0?Id(ve[Te],_e[Te],R,ue,Te.slice(6),"setPaintProperty"):Mr(ve[Te],_e[Te])||_a(R,{command:"setLayerProperty",args:[ue,Te,_e[Te]]}));for(Te in _e)Object.prototype.hasOwnProperty.call(_e,Te)&&!Object.prototype.hasOwnProperty.call(ve,Te)&&Te!=="layout"&&Te!=="paint"&&Te!=="filter"&&Te!=="metadata"&&Te!=="minzoom"&&Te!=="maxzoom"&&(Te.indexOf("paint.")===0?Id(ve[Te],_e[Te],R,ue,Te.slice(6),"setPaintProperty"):Mr(ve[Te],_e[Te])||_a(R,{command:"setLayerProperty",args:[ue,Te,_e[Te]]}))}else _a(R,{command:"removeLayer",args:[ue]}),Me=G[G.lastIndexOf(ue)+1],_a(R,{command:"addLayer",args:[_e,Me]})})(w,l.layers,c)}catch{c=[{command:"setStyle",args:[l]}]}return c},s.bX=function(d){const l=[],c=d.id;return c===void 0&&l.push({message:`layers.${c}: missing required property "id"`}),d.render===void 0&&l.push({message:`layers.${c}: missing required method "render"`}),d.renderingMode&&d.renderingMode!=="2d"&&d.renderingMode!=="3d"&&l.push({message:`layers.${c}: property "renderingMode" must be either "2d" or "3d"`}),l},s.bY=Dt,s.bZ=Ot,s.b_=class extends Ra{constructor(d,l){super(d,l),this.current=0}set(d){this.current!==d&&(this.current=d,this.gl.uniform1i(this.location,d))}},s.ba=Y3,s.bb=Pm,s.bc=function(d,l,c,p,g){var w=1/Math.tan(l/2);if(d[0]=w/c,d[1]=0,d[2]=0,d[3]=0,d[4]=0,d[5]=w,d[6]=0,d[7]=0,d[8]=0,d[9]=0,d[11]=-1,d[12]=0,d[13]=0,d[15]=0,g!=null&&g!==1/0){var k=1/(p-g);d[10]=(g+p)*k,d[14]=2*g*p*k}else d[10]=-1,d[14]=-2*p;return d},s.bd=function(d){var l=new U(16);return l[0]=d[0],l[1]=d[1],l[2]=d[2],l[3]=d[3],l[4]=d[4],l[5]=d[5],l[6]=d[6],l[7]=d[7],l[8]=d[8],l[9]=d[9],l[10]=d[10],l[11]=d[11],l[12]=d[12],l[13]=d[13],l[14]=d[14],l[15]=d[15],l},s.be=function(d,l,c){var p=Math.sin(c),g=Math.cos(c),w=l[0],k=l[1],P=l[2],R=l[3],L=l[4],j=l[5],F=l[6],te=l[7];return l!==d&&(d[8]=l[8],d[9]=l[9],d[10]=l[10],d[11]=l[11],d[12]=l[12],d[13]=l[13],d[14]=l[14],d[15]=l[15]),d[0]=w*g+L*p,d[1]=k*g+j*p,d[2]=P*g+F*p,d[3]=R*g+te*p,d[4]=L*g-w*p,d[5]=j*g-k*p,d[6]=F*g-P*p,d[7]=te*g-R*p,d},s.bf=function(d,l,c){var p=Math.sin(c),g=Math.cos(c),w=l[4],k=l[5],P=l[6],R=l[7],L=l[8],j=l[9],F=l[10],te=l[11];return l!==d&&(d[0]=l[0],d[1]=l[1],d[2]=l[2],d[3]=l[3],d[12]=l[12],d[13]=l[13],d[14]=l[14],d[15]=l[15]),d[4]=w*g+L*p,d[5]=k*g+j*p,d[6]=P*g+F*p,d[7]=R*g+te*p,d[8]=L*g-w*p,d[9]=j*g-k*p,d[10]=F*g-P*p,d[11]=te*g-R*p,d},s.bg=function(d,l){var c=l[0],p=l[1],g=l[2],w=l[3],k=l[4],P=l[5],R=l[6],L=l[7],j=l[8],F=l[9],te=l[10],G=l[11],oe=l[12],ue=l[13],ve=l[14],_e=l[15],Me=c*P-p*k,Te=c*R-g*k,Ae=c*L-w*k,ze=p*R-g*P,We=p*L-w*P,dt=g*L-w*R,mt=j*ue-F*oe,Lt=j*ve-te*oe,Et=j*_e-G*oe,jt=F*ve-te*ue,Ut=F*_e-G*ue,Bt=te*_e-G*ve,Mt=Me*Bt-Te*Ut+Ae*jt+ze*Et-We*Lt+dt*mt;return Mt?(d[0]=(P*Bt-R*Ut+L*jt)*(Mt=1/Mt),d[1]=(g*Ut-p*Bt-w*jt)*Mt,d[2]=(ue*dt-ve*We+_e*ze)*Mt,d[3]=(te*We-F*dt-G*ze)*Mt,d[4]=(R*Et-k*Bt-L*Lt)*Mt,d[5]=(c*Bt-g*Et+w*Lt)*Mt,d[6]=(ve*Ae-oe*dt-_e*Te)*Mt,d[7]=(j*dt-te*Ae+G*Te)*Mt,d[8]=(k*Ut-P*Et+L*mt)*Mt,d[9]=(p*Et-c*Ut-w*mt)*Mt,d[10]=(oe*We-ue*Ae+_e*Me)*Mt,d[11]=(F*Ae-j*We-G*Me)*Mt,d[12]=(P*Lt-k*jt-R*mt)*Mt,d[13]=(c*jt-p*Lt+g*mt)*Mt,d[14]=(ue*Te-oe*ze-ve*Me)*Mt,d[15]=(j*ze-F*Te+te*Me)*Mt,d):null},s.bh=function(){const d=new Float32Array(16);return q(d),d},s.bi=function(){const d=new Float64Array(16);return q(d),d},s.bj=function(){return new Float64Array(16)},s.bk=function(d,l,c){const p=new Float64Array(4);return se(p,d,l-90,c),p},s.bl=function(d,l,c,p){var g,w,k,P,R,L=l[0],j=l[1],F=l[2],te=l[3],G=c[0],oe=c[1],ue=c[2],ve=c[3];return(w=L*G+j*oe+F*ue+te*ve)<0&&(w=-w,G=-G,oe=-oe,ue=-ue,ve=-ve),1-w>I?(g=Math.acos(w),k=Math.sin(g),P=Math.sin((1-p)*g)/k,R=Math.sin(p*g)/k):(P=1-p,R=p),d[0]=P*L+R*G,d[1]=P*j+R*oe,d[2]=P*F+R*ue,d[3]=P*te+R*ve,d},s.bm=function(d){const l=new Float64Array(9);var c,p,g,w,k,P,R,L,j,F,te,G,oe,ue,ve,_e,Me,Te;F=(g=(p=d)[0])*(R=g+g),te=(w=p[1])*R,oe=(k=p[2])*R,ue=k*(L=w+w),_e=(P=p[3])*R,Me=P*L,Te=P*(j=k+k),(c=l)[0]=1-(G=w*L)-(ve=k*j),c[3]=te-Te,c[6]=oe+Me,c[1]=te+Te,c[4]=1-F-ve,c[7]=ue-_e,c[2]=oe-Me,c[5]=ue+_e,c[8]=1-F-G;const Ae=vt(-Math.asin(ct(l[2],-1,1)));let ze,We;return Math.hypot(l[5],l[8])<.001?(ze=0,We=-vt(Math.atan2(l[3],l[4]))):(ze=vt(l[5]===0&&l[8]===0?0:Math.atan2(l[5],l[8])),We=vt(l[1]===0&&l[0]===0?0:Math.atan2(l[1],l[0]))),{roll:ze,pitch:Ae+90,bearing:We}},s.bn=function(d,l){return d.roll==l.roll&&d.pitch==l.pitch&&d.bearing==l.bearing},s.bo=sr,s.bp=Is,s.bq=_m,s.br=N0,s.bs=vm,s.bt=Pt,s.bu=Qe,s.bv=po,s.bw=function(d,l,c,p,g){return Pt(p,g,ct((d-l)/(c-l),0,1))},s.bx=function(d,l,c,p){return d[0]=l[0]+c[0]*p,d[1]=l[1]+c[1]*p,d[2]=l[2]+c[2]*p,d},s.by=at,s.bz=function(){return new Float64Array(3)},s.c=rt,s.c$=qd,s.c0=class extends Ra{constructor(d,l){super(d,l),this.current=Ds}set(d){if(d[12]!==this.current[12]||d[0]!==this.current[0])return this.current=d,void this.gl.uniformMatrix4fv(this.location,!1,d);for(let l=1;l<16;l++)if(d[l]!==this.current[l]){this.current=d,this.gl.uniformMatrix4fv(this.location,!1,d);break}}},s.c1=Ql,s.c2=class extends Ra{constructor(d,l){super(d,l),this.current=[0,0,0]}set(d){d[0]===this.current[0]&&d[1]===this.current[1]&&d[2]===this.current[2]||(this.current=d,this.gl.uniform3f(this.location,d[0],d[1],d[2]))}},s.c3=class extends Ra{constructor(d,l){super(d,l),this.current=[0,0]}set(d){d[0]===this.current[0]&&d[1]===this.current[1]||(this.current=d,this.gl.uniform2f(this.location,d[0],d[1]))}},s.c4=B,s.c5=function(d,l){var c=Math.sin(l),p=Math.cos(l);return d[0]=p,d[1]=c,d[2]=0,d[3]=-c,d[4]=p,d[5]=0,d[6]=0,d[7]=0,d[8]=1,d},s.c6=function(d,l,c){var p=l[0],g=l[1],w=l[2];return d[0]=p*c[0]+g*c[3]+w*c[6],d[1]=p*c[1]+g*c[4]+w*c[7],d[2]=p*c[2]+g*c[5]+w*c[8],d},s.c7=function(d,l,c,p,g,w,k){var P=1/(l-c),R=1/(p-g),L=1/(w-k);return d[0]=-2*P,d[1]=0,d[2]=0,d[3]=0,d[4]=0,d[5]=-2*R,d[6]=0,d[7]=0,d[8]=0,d[9]=0,d[10]=2*L,d[11]=0,d[12]=(l+c)*P,d[13]=(g+p)*R,d[14]=(k+w)*L,d[15]=1,d},s.c8=class extends Ra{constructor(d,l){super(d,l),this.current=new Array}set(d){if(d!=this.current){this.current=d;const l=new Float32Array(4*d.length);for(let c=0;c<d.length;c++)l[4*c]=d[c].r,l[4*c+1]=d[c].g,l[4*c+2]=d[c].b,l[4*c+3]=d[c].a;this.gl.uniform4fv(this.location,l)}}},s.c9=class extends Ra{constructor(d,l){super(d,l),this.current=new Array}set(d){if(d!=this.current){this.current=d;const l=new Float32Array(d);this.gl.uniform1fv(this.location,l)}}},s.cA=function(d,l){return Jt[l]&&"touches"in d},s.cB=function(d){return Jt[d]||an[d]},s.cC=function(d,l,c){var p=l[0],g=l[1];return d[0]=c[0]*p+c[4]*g+c[12],d[1]=c[1]*p+c[5]*g+c[13],d},s.cD=function(d,l){const{x:c,y:p}=Yu.fromLngLat(l);return!(d<0||d>25||p<0||p>=1||c<0||c>=1)},s.cE=function(d,l){return d[0]=l[0],d[1]=0,d[2]=0,d[3]=0,d[4]=0,d[5]=l[1],d[6]=0,d[7]=0,d[8]=0,d[9]=0,d[10]=l[2],d[11]=0,d[12]=0,d[13]=0,d[14]=0,d[15]=1,d},s.cF=class extends am{},s.cG=Zt,s.cH=function(d,l){rt.REGISTERED_PROTOCOLS[d]=l},s.cI=function(d){delete rt.REGISTERED_PROTOCOLS[d]},s.cJ=function(d,l){const c={};for(let g=0;g<d.length;g++){const w=l&&l[d[g].id]||hb(d[g]);l&&(l[d[g].id]=w);let k=c[w];k||(k=c[w]=[]),k.push(d[g])}const p=[];for(const g in c)p.push(c[g]);return p},s.cK=bn,s.cL=i2,s.cM=B7,s.cN=Qs,s.cO=function(d){var l,c;d.bucket.createArrays(),d.bucket.tilePixelRatio=$e/(512*d.bucket.overscaling),d.bucket.compareText={},d.bucket.iconsNeedLinear=!1;const p=d.bucket.layers[0],g=p.layout,w=p._unevaluatedLayout._values,k={layoutIconSize:w["icon-size"].possiblyEvaluate(new or(d.bucket.zoom+1),d.canonical),layoutTextSize:w["text-size"].possiblyEvaluate(new or(d.bucket.zoom+1),d.canonical),textMaxSize:w["text-size"].possiblyEvaluate(new or(18))};if(d.bucket.textSizeData.kind==="composite"){const{minZoom:F,maxZoom:te}=d.bucket.textSizeData;k.compositeTextSizes=[w["text-size"].possiblyEvaluate(new or(F),d.canonical),w["text-size"].possiblyEvaluate(new or(te),d.canonical)]}if(d.bucket.iconSizeData.kind==="composite"){const{minZoom:F,maxZoom:te}=d.bucket.iconSizeData;k.compositeIconSizes=[w["icon-size"].possiblyEvaluate(new or(F),d.canonical),w["icon-size"].possiblyEvaluate(new or(te),d.canonical)]}const P=g.get("text-line-height")*wa,R=g.get("text-rotation-alignment")!=="viewport"&&g.get("symbol-placement")!=="point",L=g.get("text-keep-upright"),j=g.get("text-size");for(const F of d.bucket.features){const te=g.get("text-font").evaluate(F,{},d.canonical).join(","),G=j.evaluate(F,{},d.canonical),oe=k.layoutTextSize.evaluate(F,{},d.canonical),ue=k.layoutIconSize.evaluate(F,{},d.canonical),ve={horizontal:{},vertical:void 0},_e=F.text;let Me,Te=[0,0];if(_e){const We=_e.toString(),dt=g.get("text-letter-spacing").evaluate(F,{},d.canonical)*wa,mt=tm(We)?dt:0,Lt=g.get("text-anchor").evaluate(F,{},d.canonical),Et=K7(p,F,d.canonical);if(!Et){const Mt=g.get("text-radial-offset").evaluate(F,{},d.canonical);Te=Mt?Z7(Lt,[Mt*wa,UE]):g.get("text-offset").evaluate(F,{},d.canonical).map((on=>on*wa))}
24let jt=R?"center":g.get("text-justify").evaluate(F,{},d.canonical);const Ut=g.get("symbol-placement")==="point"?g.get("text-max-width").evaluate(F,{},d.canonical)*wa:1/0,Bt=()=>{d.bucket.allowVerticalPlacement&&Ao(We)&&(ve.vertical=pv(_e,d.glyphMap,d.glyphPositions,d.imagePositions,te,Ut,P,Lt,"left",mt,Te,s.ax.vertical,!0,oe,G))};if(!R&&Et){const Mt=new Set;if(jt==="auto")for(let yn=0;yn<Et.values.length;yn+=2)Mt.add(HE(Et.values[yn]));else Mt.add(jt);let on=!1;for(const yn of Mt)if(!ve.horizontal[yn])if(on)ve.horizontal[yn]=ve.horizontal[0];else{const hn=pv(_e,d.glyphMap,d.glyphPositions,d.imagePositions,te,Ut,P,"center",yn,mt,Te,s.ax.horizontal,!1,oe,G);hn&&(ve.horizontal[yn]=hn,on=hn.positionedLines.length===1)}Bt()}else{jt==="auto"&&(jt=HE(Lt));const Mt=pv(_e,d.glyphMap,d.glyphPositions,d.imagePositions,te,Ut,P,Lt,jt,mt,Te,s.ax.horizontal,!1,oe,G);Mt&&(ve.horizontal[jt]=Mt),Bt(),Ao(We)&&R&&L&&(ve.vertical=pv(_e,d.glyphMap,d.glyphPositions,d.imagePositions,te,Ut,P,Lt,jt,mt,Te,s.ax.vertical,!1,oe,G))}}let Ae=!1;if(!((l=F.icon)===null||l===void 0)&&l.name){const We=d.imageMap[F.icon.name];We&&(Me=TE(d.imagePositions[F.icon.name],g.get("icon-offset").evaluate(F,{},d.canonical),g.get("icon-anchor").evaluate(F,{},d.canonical)),Ae=!!We.sdf,d.bucket.sdfIcons===void 0?d.bucket.sdfIcons=Ae:d.bucket.sdfIcons!==Ae&&it("Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer"),(We.pixelRatio!==d.bucket.pixelRatio||g.get("icon-rotate").constantOr(1)!==0)&&(d.bucket.iconsNeedLinear=!0))}const ze=J7(ve.horizontal)||ve.vertical;(c=d.bucket).iconsInText||(c.iconsInText=!!ze&&ze.iconsInText),(ze||Me)&&MK(d.bucket,F,ve,Me,d.imageMap,k,oe,ue,Te,Ae,d.canonical,d.subdivisionGranularity)}d.showCollisionBoxes&&d.bucket.generateCollisionDebugBuffers()},s.cP=Mb,s.cQ=Ib,s.cR=Wb,s.cS=function(d,l=""){const c=new Z0;return(function(p,g,w=""){for(const k in p.layers)g.writeMessage(3,((P,R)=>gK(P,R,w)),p.layers[k])})(d,c,l),c.finish()},s.cT=function(d,l,c,p,g,w){let k=N7(d,l,c,g,0);return k=N7(k,l,p,w,1),k},s.cU=class{constructor(d){this.maxEntries=d,this.map=new Map}get(d){const l=this.map.get(d);return l!==void 0&&(this.map.delete(d),this.map.set(d,l)),l}set(d,l){if(this.map.has(d))this.map.delete(d);else if(this.map.size>
24=this.maxEntries){const c=this.map.keys().next().value;this.map.delete(c)}this.map.set(d,l)}clear(){this.map.clear()}},s.cV=u3,s.cW=Z0,s.cX=O7,s.cY=function(d,l,c,p,g){return o(this,void 0,void 0,(function*(){if(O())try{return yield Tt(d,l,c,p,g)}catch{}return(function(w,k,P,R,L){const j=w.width,F=w.height;It&&sn||(It=new OffscreenCanvas(j,F),sn=It.getContext("2d",{willReadFrequently:!0})),It.width=j,It.height=F,sn.drawImage(w,0,0,j,F);const te=sn.getImageData(k,P,R,L);return sn.clearRect(0,0,j,F),te.data})(d,l,c,p,g)}))},s.cZ=Qd,s.c_=class{constructor(d,l){this.layers={[_2]:this},this.name=_2,this.version=l?l.version:1,this.extent=l?l.extent:4096,this.length=d.length,this.features=d}feature(d){return new mK(this.features[d],this.extent)}},s.ca=class extends Xl{},s.cb=pE,s.cc=class extends Kc{},s.cd=B0,s.ce=function(d){return d<=1?1:Math.pow(2,Math.ceil(Math.log(d)/Math.LN2))},s.cf=Hw,s.cg=function(d,l,c){var p=l[0],g=l[1],w=l[2],k=c[3]*p+c[7]*g+c[11]*w+c[15];return d[0]=(c[0]*p+c[4]*g+c[8]*w+c[12])/(k=k||1),d[1]=(c[1]*p+c[5]*g+c[9]*w+c[13])/k,d[2]=(c[2]*p+c[6]*g+c[10]*w+c[14])/k,d},s.ch=class extends Yd{},s.ci=class extends u{},s.cj=function(d,l){return d[0]===l[0]&&d[1]===l[1]&&d[2]===l[2]&&d[3]===l[3]&&d[4]===l[4]&&d[5]===l[5]&&d[6]===l[6]&&d[7]===l[7]&&d[8]===l[8]&&d[9]===l[9]&&d[10]===l[10]&&d[11]===l[11]&&d[12]===l[12]&&d[13]===l[13]&&d[14]===l[14]&&d[15]===l[15]},s.ck=function(d,l){var c=d[0],p=d[1],g=d[2],w=d[3],k=d[4],P=d[5],R=d[6],L=d[7],j=d[8],F=d[9],te=d[10],G=d[11],oe=d[12],ue=d[13],ve=d[14],_e=d[15],Me=l[0],Te=l[1],Ae=l[2],ze=l[3],We=l[4],dt=l[5],mt=l[6],Lt=l[7],Et=l[8],jt=l[9],Ut=l[10],Bt=l[11],Mt=l[12],on=l[13],yn=l[14],hn=l[15];return Math.abs(c-Me)<=I*Math.max(1,Math.abs(c),Math.abs(Me))&&Math.abs(p-Te)<=I*Math.max(1,Math.abs(p),Math.abs(Te))&&Math.abs(g-Ae)<=I*Math.max(1,Math.abs(g),Math.abs(Ae))&&Math.abs(w-ze)<=I*Math.max(1,Math.abs(w),Math.abs(ze))&&Math.abs(k-We)<=I*Math.max(1,Math.abs(k),Math.abs(We))&&Math.abs(P-dt)<=I*Math.max(1,Math.abs(P),Math.abs(dt))&&Math.abs(R-mt)<=I*Math.max(1,Math.abs(R),Math.abs(mt))&&Math.abs(L-Lt)<=I*Math.max(1,Math.abs(L),Math.abs(Lt))&&Math.abs(j-Et)<=I*Math.max(1,Math.abs(j),Math.abs(Et))&&Math.abs(F-jt)<=I*Math.max(1,Math.abs(F),Math.abs(jt))&&Math.abs(te-Ut)<=I*Math.max(1,Math.abs(te),Math.abs(Ut))&&Math.abs(G-Bt)<=I*Math.max(1,Math.abs(G),Math.abs(Bt))&&Math.abs(oe-Mt)<=I*Math.max(1,Math.abs(oe),Math.abs(Mt))&&Math.abs(ue-on)<=I*Math.max(1,Math.abs(ue),Math.abs(on))&&Math.abs(ve-yn)<=I*Math.max(1,Math.abs(ve),Math.abs(yn))&&Math.abs(_e-hn)<=I*Math.max(1,Math.abs(_e),Math.abs(hn))},s.cl=function(d,l){return d[0]=l[0],d[1]=l[1],d[2]=l[2],d[3]=l[3],d[4]=l[4],d[5]=l[5],d[6]=l[6],d[7]=l[7],d[8]=l[8],d[9]=l[9],d[10]=l[10],d[11]=l[11],d[12]=l[12],d[13]=l[13],d[14]=l[14],d[15]=l[15],d},s.cm=d=>d.type==="circle",s.cn=d=>d.type==="heatmap",s.co=d=>d.type==="line",s.cp=d=>d.type==="fill",s.cq=d=>d.type==="fill-extrusion",s.cr=d=>d.type==="hillshade",s.cs=d=>d.type==="color-relief",s.ct=d=>d.type==="background",s.cu=d=>d.type==="custom",s.cv=nt,s.cw=function(d,l,c){if(l<=0)return d;const p=1/l;return c===void 0||Math.abs(c)<1e-10?Math.round(d*p)/p:(c>0?Math.ceil(d*p-1e-9):Math.floor(d*p+1e-10))/p},s.cx=function(d,l,c){const p=ye(l.x-c.x,l.y-c.y),g=ye(d.x-c.x,d.y-c.y);var w,k;return vt(Math.atan2(p[0]*g[1]-p[1]*g[0],(w=p)[0]*(k=g)[0]+w[1]*k[1]))},s.cy=Ve,s.cz=function(d,l){var c;if(!an[l])return!1;const p=d?.target,g=((c=p?.ownerDocument)===null||c===void 0?void 0:c.defaultView)||window;return d instanceof g.MouseEvent||d instanceof g.WheelEvent},s.d=je,s.d0=class{constructor(d,l){const c=(l=this.options=Object.assign({},aE,l)).debug;if(l.maxZoom<0||l.maxZoom>24)throw new Error("maxZoom should be in the 0-24 range");if(l.promoteId&&l.generateId)throw new Error("promoteId and generateId cannot be used together.");let p=Bb(d,l);p=av(p,l),l.updateable&&(this.source=p),this.initializeIndex(p,l)}initializeIndex(d,l){this.tileIndex=l.cluster?new Qk(l.clusterOptions):new iE(l),d.length&&this.tileIndex.initialize(d)}getTile(d,l,c){return l=+l,c=+c,(d=+d)<0||d>24?null:this.tileIndex.getTile(d,l,c)}updateData(d,l){const c=this.options;if(!c.updateable)throw new Error("to update tile geojson `updateable` option must be set to true");let{affected:p,source:g}=(function(w,k,P){const R=(function(j,F){return j?{removeAll:j.removeAll,remove:ne
24w Set(j.remove||[]),add:new Map(j.add?.map((te=>[F.promoteId?te.properties[F.promoteId]:te.id,te]))),update:new Map(j.update?.map((te=>[te.id,te])))}:{remove:new Set,add:new Map,update:new Map}})(k,P);let L=[];if(R.removeAll&&(L=w,w=[]),R.remove.size||R.add.size){const j=[];for(const F of w)(R.remove.has(F.id)||R.add.has(F.id))&&j.push(F);if(j.length){L.push(...j);const F=new Set(j.map((te=>te.id)));w=w.filter((te=>!F.has(te.id)))}if(R.add.size){let F=Bb({type:"FeatureCollection",features:Array.from(R.add.values())},P);F=av(F,P),L.push(...F),w.push(...F)}}if(R.update.size){const j=new Map,F=[];for(const te of w)R.update.has(te.id)?j.set(te.id,[...j.get(te.id)||[],te]):F.push(te);for(const[te,G]of R.update){const oe=j.get(te);if(!oe||oe.length===0)continue;const ue=_3(oe,G,P);L.push(...oe,...ue),F.push(...ue)}w=F}return{affected:L,source:w}})(this.source,d,c);l&&({affected:p,source:g}=this.filterUpdate(g,p,l)),p.length&&(this.source=g,this.tileIndex.updateIndex(g,p,c))}filterUpdate(d,l,c){const p=new Set;for(const g of d)g.id!=null&&(c(G0(g))||(l.push(g),p.add(g.id)));return{affected:l,source:d=d.filter((g=>!p.has(g.id)))}}getData(){if(!this.options.updateable)throw new Error("to retrieve data the `updateable` option must be set to true");return{type:"FeatureCollection",features:this.source.map((d=>G0(d)))}}updateClusterOptions(d,l){const c=this.options.cluster;this.options.cluster=d,this.options.clusterOptions=l,c!=d?this.initializeIndex(this.source,this.options):this.tileIndex.updateIndex(this.source,[],this.options)}getClusterExpansionZoom(d){return this.tileIndex.getClusterExpansionZoom(d)}getClusterChildren(d){return this.tileIndex.getChildren(d)}getClusterLeaves(d,l,c){return this.tileIndex.getLeaves(d,l,c)}},s.d1=bl,s.e=ut,s.f=tr,s.g=$t,s.h=d=>o(void 0,void 0,void 0,(function*(){if(d.byteLength===0)return createImageBitmap(new ImageData(1,1));const l=new Blob([new Uint8Array(d)],{type:"image/png"});try{return createImageBitmap(l)}catch(c){throw new Error(`Could not load image because of ${je(c).message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`)}})),s.i=St,s.j=d=>new Promise(((l,c)=>{const p=new Image;p.onload=()=>{l(p),URL.revokeObjectURL(p.src),p.onload=null,window.requestAnimationFrame((()=>p.src=pt))},p.onerror=()=>c(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."));const g=new Blob([new Uint8Array(d)],{type:"image/png"});p.src=d.byteLength?URL.createObjectURL(g):pt})),s.k=(d,l)=>Dn(ut(d,{type:"json"}),l),s.l=mi,s.m=Dn,s.n=pi,s.o=(d,l)=>Dn(ut(d,{type:"arrayBuffer"}),l),s.p=_r,s.q=function(d){return new Z0(d).readFields(xE,[])},s.r=function(d){return/[\u02EA\u02EB\u1100-\u11FF\u2E80-\u2FDF\u3000-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFE10-\uFE1F\uFE30-\uFE4F\uFF00-\uFFEF]|\uD81B[\uDFE0-\uDFFF]|[\uD81C-\uD822\uD840-\uD868\uD86A-\uD86D\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD88C][\uDC00-\uDFFF]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD1E\uDD80-\uDDF2]|\uD82B[\uDFF0-\uDFFF]|\uD82C[\uDC00-\uDEFB]|\uD83C[\uDE00-\uDEFF]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEAD\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD88D[\uDC00-\uDC79]/gim.test(String.fromCodePoint(d))},s.s=Yt,s.t=R0,s.u=Xa,s.v=go,s.w=it,s.x=Ft,s.y=Gd,s.z=rs})),i("worker",["./shared"],(function(s){class o{constructor(z,H){this.keyCache={},z&&this.replace(z,H)}replace(z,H){this._layerConfigs={},this._layers={},this.update(z,[],H)}update(z,H,K){for(const le of z){this._layerConfigs[le.id]=le;const pe=this._layers[le.id]=s.bT(le,K);pe._featureFilter=s.ah(pe.filter,K),this.keyCache[le.id]&&delete this.keyCache[le.id]}for(const le of H)delete this.keyCache[le],delete this._layerConfigs[le],delete this._layers[le];this.familiesBySource={};const ne=s.cJ(Object.values(this._layerConfigs),this.keyCache);for(const le of ne){const pe=le.map((Be=>this._layers[Be.id])),ae=pe[0];if(ae.isHidden())continue;const se=ae.source||"";let ce=this.familiesBySource[se];ce||(ce=this.familiesBySource[se]={});const ye=ae.sourceLayer||s.ag;let $e=ce[ye];$e||($e=ce[ye]=[]),$e.push(pe)}}}class f{constructor(z){const H={},K=[];for(const ae in z){const se=z[ae],ce=H[ae]={};for(const ye in se){const $e=se[+ye];if(!$e||$e.bitmap.width===0||$e.bitmap.height===0)continue;const Be={x:0,y:0,w:$e.bitmap.width+2,h:$e.bitmap.height+2};K.push(Be),ce[ye]={rect:Be,metrics:$e.metrics}}}const{w:ne,h:le}=s.p(K),pe=new s.t({width:ne||1,height:le||1});for(const ae in z){const se=z[ae];for(const ce in se){const ye=se[+ce];if(!ye||ye.bitmap.width===0||ye.bitmap.height===0)continue;const $e=H[ae][ce].rect;s.t.copy(ye.bitmap,pe,{x:0,y:0},{x:$e.x+1,y:$e.y+1},ye.bitmap)}}this.image=pe,this.positions=H}}s.cK("GlyphAtlas",f);class m{constructor(z){this.tileID=new s.a3(z.tileID.overscaledZ,z.tileID.wrap,z.tileID.canonical.z,z.tileID.canonical.x,z.tileID.canonical.y),this.uid=z.uid,this.zoom=z.zoom,this.pixelRatio=z.pixelRatio,this.tileSize=z.tileSize,this.source=z.source,this.overscaling=this.tileID.overscaleFactor(),this.showCollisionBoxes=z.showCollisionBoxes,this.collectResourceTiming=!!z.collectResourceTiming,this.returnDependencies=!!z.returnDependencies,this.promoteId=z.promoteId,this.inFlightDependencies=[]}parse(z,H,K,ne,le){return s._(this,void 0,void 0,(function*(){this.status="parsing",this.data=z,this.collisionBoxArray=new s.ae;const pe=new s.cL(Object.keys(z.layers).sort()),ae=new s.cM(this.tileID,this.promoteId);ae.bucketLayerIDs=[];const se={},ce={featureIndex:ae,iconDependencies:{},patternDependencies:{},glyphDependencies:{},dashDependencies:{},availableImages:K,subdivisionGranularity:le},ye=H.familiesBySource[this.source];for(const Ee in ye){const Ye=z.layers[Ee];if(!Ye)continue;Ye.version===1&&s.w(`Vector tile source "${this.source}" layer "${Ee}" does not use vector tile spec v2 and therefore may have some rendering errors.`);const it=pe.encode(Ee),yt=[];for(let St=0;St<Ye.length;St++){const Ie=Ye.feature(St),qe=ae.getId(Ie,Ee);yt.push({feature:Ie,id:qe,index:St,sourceLayerIndex:it})}for(const St of ye[Ee]){const Ie=St[0];Ie.source!==this.source&&s.w(`layer.source = ${Ie.source} does not equal this.source = ${this.source}`),Ie.isHidden(this.zoom,!0)||(y(St,this.zoom,K),(se[Ie.id]=Ie.createBucket({index:ae.bucketLayerIDs.length,layers:St,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:it,sourceID:this.source})).populate(yt,ce,this.tileID.canonical),ae.bucketLayerIDs.push(St.map((qe=>qe.id))))}}const $e=s.bY(ce.glyphDependencies,(Ee=>Object.keys(Ee).map(Number)));for(const Ee of this.inFlightDependencies)Ee?.abort();this.inFlightDependencies=[];let Be=Promise.resolve({});if(Object.keys($e).length){const Ee=new AbortController;this.inFlightDependencies.push(Ee),Be=ne.sendAsync({type:"GG",data:{stacks:$e,source:this.source,tileID:this.tileID,type:"glyphs"}},Ee)}const je=Object.keys(ce.iconDependencies);let at=Promise.resolve({});if(je.length){const Ee=new AbortController;this.inFlightDependencies.push(Ee),at=ne.sendAsync({type:"GI",data:{icons:je,source:this.source,tileID:this.tileID,type:"icons"}},Ee)}const Pt=Object.keys(ce.patternDependencies);let Qe=Promise.resolve({});if(Pt.length){const Ee=new AbortController;this.inFlightDependencies.push(Ee),Qe=ne.sendAsync({type:"GI",data:{icons:Pt,source:this.source,tileID:this.tileID,type:"patterns"}},Ee)}const nt=ce.dashDependencies;let Ve=Promise.resolve({});if(Object.keys(nt).length){const Ee=new AbortController;this.inFlightDependencies.push(Ee),Ve=ne.sendAsync({type:"GDA",data:{dashes:nt}},Ee)}const[ct,zt,ut,At]=yield Promise.all([Be,at,Qe,Ve]),Dt=new f(ct),Ot=new s.cN(zt,ut);for(const Ee in se){const Ye=se[Ee];Ye instanceof s.af?(y(Ye.layers,this.zoom,K),s.cO({bucket:Ye,glyphMap:ct,glyphPositions:Dt.positions,imageMap:zt,imagePositions:Ot.iconPositions,showCollisionBoxes:this.showCollisionBoxes,canonical:this.tileID.canonical,subdivisionGranularity:ce.subdivisionGranularity})):Ye.hasDependencies&&(Ye instanceof s.cP||Ye instanceof s.cQ||Ye instanceof s.cR)&&(y(Ye.layers,this.zoom,K),Ye.addFeatures(ce,this.tileID.canonical,Ot.patternPositions,At))}return this.status="done",{buckets:Object.values(se).filter((Ee=>!Ee.isEmpty())),featureIndex:ae,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:Dt.image,imageAtlas:Ot,dashPositions:At,glyphMap:this.returnDependencies?ct:null,iconMap:this.returnDependencies?zt:null,glyphPositions:this.returnDependencies?Dt.positions:null}}))}}function y(Y,z,H){const K=new s.J(z);for(const ne of Y)ne.recalculate(K,H)}class b{constructor(){this.loading={},this.loaded={},this.parsing={}}startLoading(z,H){this.loading[z]=H}finishLoading(z){delete this.loading[z]}abort(z){const H=this.loading[z];H?.abort&&(H.abort.abort(),delete this.loading[z])}setParsing(z,H){this.parsing[z]=H}consumeParsing(z){const H=this.parsing[z];if(H)return delete this.parsing[z],H}clearParsing(z){delete this.parsing[z]}
24markLoaded(z,H){this.loaded[z]=H}getLoaded(z){const H=this.loaded[z];if(H)return H}removeLoaded(z){delete this.loaded[z]}clearLoaded(){this.loaded={}}}class T{constructor(z){this.start=`${z}#start`,this.end=`${z}#end`,this.measure=z,performance.mark(this.start)}finish(){performance.mark(this.end);let z=performance.getEntriesByName(this.measure);return z.length===0&&(performance.measure(this.measure,this.start,this.end),z=performance.getEntriesByName(this.measure),performance.clearMarks(this.start),performance.clearMarks(this.end),performance.clearMeasures(this.measure)),z}}class x{constructor(z,H,K,ne,le){this.type=z,this.properties=K||{},this.extent=le,this.pointsArray=H,this.id=ne}loadGeometry(){return this.pointsArray.map((z=>z.map((H=>new s.P(H.x,H.y)))))}}class ${constructor(z,H,K){this.version=2,this._myFeatures=z,this.name=H,this.length=z.length,this.extent=K}feature(z){return this._myFeatures[z]}}class A{constructor(){this.layers={}}addLayer(z){this.layers[z.name]=z}}function N(Y){let z=s.cS(Y);return z.byteOffset===0&&z.byteLength===z.buffer.byteLength||(z=new Uint8Array(z)),{vectorTile:Y,rawData:z.buffer}}function O(Y,z,H){const{extent:K}=Y,ne=Math.pow(2,H.z-z.z),le=(H.x-z.x*ne)*K,pe=(H.y-z.y*ne)*K,ae=[];for(let se=0;se<Y.length;se++){const ce=Y.feature(se);let ye=ce.loadGeometry();for(const Be of ye)for(const je of Be)je.x=je.x*ne-le,je.y=je.y*ne-pe;const $e=128;ye=s.cT(ye,ce.type,-$e,-$e,K+$e,K+$e),ye.length!==0&&ae.push(new x(ce.type,ye,ce.properties,ce.id,K))}return new $(ae,Y.name,K)}class I{constructor(z,H,K){this.actor=z,this.layerIndex=H,this.availableImages=K,this.tileState=new b,this.overzoomedTileResultCache=new s.cU(1e3)}loadVectorTile(z,H){try{return{vectorTile:z.encoding!=="mlt"?new s.cV(new s.cW(H)):new s.cX(H),rawData:H}}catch(K){const ne=new Uint8Array(H);let le=`Unable to parse the tile at ${z.request.url}, `;throw le+=ne[0]===31&&ne[1]===139?"please make sure the data is not gzipped and that you have configured the relevant header in the server":`got error: ${s.d(K).message}`,new Error(le)}}loadTile(z){return s._(this,void 0,void 0,(function*(){const{uid:H,overzoomParameters:K}=z;K&&(z.request=K.overzoomRequest);const ne=this._startRequestTiming(z),le=new m(z);this.tileState.startLoading(H,le);const pe=new AbortController;le.abort=pe;try{const ae=yield s.o(z.request,pe);if(z.etag&&z.etag===ae.etag)return this.tileState.finishLoading(H),this._getEtagUnmodifiedResult(ae,ne);const se=this.loadVectorTile(z,ae.data);if(this.tileState.finishLoading(H),!se)return null;let{vectorTile:ce,rawData:ye}=se;K&&({vectorTile:ce,rawData:ye}=this._getOverzoomTile(z,ce));const $e=this._getExpiryData(ae),Be=this._finishRequestTiming(ne);le.vectorTile=ce,this.tileState.markLoaded(H,le);const je={rawData:ye,cacheControl:$e,resourceTiming:Be};this.tileState.setParsing(H,je);try{return yield this._parseWorkerTile(le,z,je)}finally{this.tileState.clearParsing(H)}}catch(ae){throw this.tileState.finishLoading(H),le.status="done",this.tileState.markLoaded(H,le),ae}}))}_getEtagUnmodifiedResult(z,H){const K=this._getExpiryData(z),ne=this._finishRequestTiming(H);return s.e({etagUnmodified:!0},K,ne)}_parseWorkerTile(z,H,K){return s._(this,void 0,void 0,(function*(){let ne=yield z.parse(z.vectorTile,this.layerIndex,this.availableImages,this.actor,H.subdivisionGranularity);if(K){const{rawData:le,cacheControl:pe,resourceTiming:ae}=K;ne=s.e({rawTileData:le.slice(0),encoding:H.encoding},ne,pe,ae)}return ne}))}_getExpiryData({expires:z,cacheControl:H,etag:K}){const ne={};return z&&(ne.expires=z),H&&(ne.cacheControl=H),K&&(ne.etag=K),ne}_startRequestTiming(z){var H;if(!((H=z.request)===null||H===void 0)&&H.collectResourceTiming)return new T(z.request.url)}_finishRequestTiming(z){const H=z?.finish();return H?{resourceTiming:JSON.parse(JSON.stringify(H))}:{}}_getOverzoomTile(z,H){var K;const{tileID:ne,source:le,overzoomParameters:pe}=z,{maxZoomTileID:ae}=pe,se=`${ae.key}_${ne.key}_${(K=z.request)===null||K===void 0?void 0:K.url}`,ce=this.overzoomedTileResultCache.get(se);if(ce)return ce;const ye=new A,$e=this.layerIndex.familiesBySource[le];for(const je in $e){const at=H.layers[je];if(!at)continue;const Pt=O(at,ae,ne.canonical);Pt.length>0&&ye.addLayer(Pt)}const Be=N(ye);return this.overzoomedTileResultCache.set(se,Be),Be}reloadTile(z){return s._(this,void 0,void 0,(function*(){const H=z.uid,K=this.tileState.getLoaded(H);if(!K)throw new Error("Should not be trying to reload a tile that was never loaded or has been removed");if(K.showCollisionBoxes=z.showCollisionBoxes,K.status==="parsing"){const ne=this.tileState.consumeParsing(H);return yield this._parseWorkerTile(K,z,ne)}if(K.status==="done"&&K.vectorTile)return yield this._parseWorkerTile(K,z)}
24))}abortTile(z){return s._(this,void 0,void 0,(function*(){this.tileState.abort(z.uid)}))}removeTile(z){return s._(this,void 0,void 0,(function*(){this.tileState.removeLoaded(z.uid)}))}}class U{constructor(){this.loaded={}}loadTile(z){return s._(this,void 0,void 0,(function*(){const{uid:H,encoding:K,rawImageData:ne,redFactor:le,greenFactor:pe,blueFactor:ae,baseShift:se}=z,ce=ne.width+2,ye=ne.height+2,$e=s.b(ne)?new s.R({width:ce,height:ye},yield s.cY(ne,-1,-1,ce,ye)):ne,Be=new s.cZ(H,$e,K,le,pe,ae,se);return this.loaded||(this.loaded={}),this.loaded[H]=Be,Be}))}removeTile(z){const H=this.loaded,K=z.uid;H?.[K]&&delete H[K]}}class B{constructor(z,H,K,ne=q){this.actor=z,this.layerIndex=H,this.availableImages=K,this.tileState=new b,this._createGeoJSONIndex=ne}loadVectorTile(z){if(!this._geoJSONIndex)throw new Error("Unable to parse the data into a cluster or geojson");const{z:H,x:K,y:ne}=z.tileID.canonical,le=this._geoJSONIndex.getTile(H,K,ne);return le?N(new s.c_(le.features,{version:2,extent:s.a6})):null}loadTile(z){return s._(this,void 0,void 0,(function*(){const{uid:H}=z,K=new m(z);K.abort=new AbortController;try{const ne=this.loadVectorTile(z);if(!ne)return null;const{vectorTile:le,rawData:pe}=ne;K.vectorTile=le,this.tileState.markLoaded(H,K);const ae={rawData:pe};this.tileState.setParsing(H,ae);try{return yield this._parseWorkerTile(K,z,ae)}finally{this.tileState.clearParsing(H)}}catch(ne){throw K.status="done",this.tileState.markLoaded(H,K),ne}}))}_reloadLoadedTile(z){return s._(this,void 0,void 0,(function*(){const H=z.uid,K=this.tileState.getLoaded(H);if(!K)throw new Error("Should not be trying to reload a tile that was never loaded or has been removed");if(K.showCollisionBoxes=z.showCollisionBoxes,K.status==="parsing"){const ne=this.tileState.consumeParsing(H);return yield this._parseWorkerTile(K,z,ne)}if(K.status==="done"&&K.vectorTile)return yield this._parseWorkerTile(K,z)}))}_parseWorkerTile(z,H,K){return s._(this,void 0,void 0,(function*(){let ne=yield z.parse(z.vectorTile,this.layerIndex,this.availableImages,this.actor,H.subdivisionGranularity);if(K){const{rawData:le}=K;ne=s.e({rawTileData:le.slice(0),encoding:"mvt"},ne)}return ne}))}abortTile(z){return s._(this,void 0,void 0,(function*(){this.tileState.abort(z.uid)}))}removeTile(z){return s._(this,void 0,void 0,(function*(){this.tileState.removeLoaded(z.uid)}))}loadData(z){return s._(this,void 0,void 0,(function*(){var H;(H=this._pendingRequest)===null||H===void 0||H.abort();const K=this._startRequestTiming(z);this._pendingRequest=new AbortController;try{yield this.loadAndProcessGeoJSON(z,this._pendingRequest),delete this._pendingRequest,this.tileState.clearLoaded();const ne={};return z.request&&(ne.data=z.data),this._finishRequestTiming(K,z,ne),ne}catch(ne){if(delete this._pendingRequest,!s.$(ne))throw ne;return{abandoned:!0}}}))}_startRequestTiming(z){var H;if(!((H=z.request)===null||H===void 0)&&H.collectResourceTiming)return new T(z.request.url)}_finishRequestTiming(z,H,K){const ne=z?.finish();ne&&(K.resourceTiming={[H.source]:JSON.parse(JSON.stringify(ne))})}reloadTile(z){return this.tileState.getLoaded(z.uid)?this._reloadLoadedTile(z):this.loadTile(z)}loadAndProcessGeoJSON(z,H){return s._(this,void 0,void 0,(function*(){var K;if(z.request&&(z.data=(yield s.k(z.request,H)).data),z.data)return z.data=this._filterGeoJSON(z.data,z.filter),void(this._geoJSONIndex=this._createGeoJSONIndex(z.data,z));if(z.dataDiff)return(K=this._geoJSONIndex)!==null&&K!==void 0||(this._geoJSONIndex=this._createGeoJSONIndex({type:"FeatureCollection",features:[]},z)),void this._geoJSONIndex.updateData(z.dataDiff,this._getFilterPredicate(z.filter));if(z.updateCluster&&this._geoJSONIndex.updateClusterOptions(z.geojsonVtOptions.cluster,Q(z)),this._geoJSONIndex==null)throw new Error(`Input data given to '${z.source}' is not a valid GeoJSON object.`)}))}_filterGeoJSON(z,H){if(z.type!=="FeatureCollection")return z;const K=this._getFilterPredicate(H);return K?{type:"FeatureCollection",features:z.features.filter((ne=>K(ne)))}:z}_getFilterPredicate(z){if(typeof z!="boolean"&&!z?.length)return;const H=s.c$(z,{type:"boolean","property-type":"data-driven",overridable:!1,transition:!1});if(H.result==="error")throw new Error(H.value.map((K=>`${K.key}: ${K.message}`)).join(", "));return K=>H.value.evaluate({zoom:0},K)}removeSource(z){return s._(this,void 0,void 0,(function*(){var H;
24(H=this._pendingRequest)===null||H===void 0||H.abort()}))}getClusterExpansionZoom(z){return this._geoJSONIndex.getClusterExpansionZoom(z.clusterId)}getClusterChildren(z){return this._geoJSONIndex.getClusterChildren(z.clusterId)}getClusterLeaves(z){return this._geoJSONIndex.getClusterLeaves(z.clusterId,z.limit,z.offset)}}function q(Y,z){const H=s.e(z.geojsonVtOptions||{},{updateable:!0,clusterOptions:Q(z)});return new s.d0(Y,H)}function Q({geojsonVtOptions:Y,clusterProperties:z}){if(!z||!Y.clusterOptions)return Y.clusterOptions;const H={},K={},ne={accumulated:null,zoom:0},le={properties:null},pe=Object.keys(z);for(const ae of pe){const[se,ce]=z[ae],ye=s.c$(ce),$e=s.c$(typeof se=="string"?[se,["accumulated"],["get",ae]]:se);H[ae]=ye.value,K[ae]=$e.value}return Y.clusterOptions.map=ae=>{le.properties=ae;const se={};for(const ce of pe)se[ce]=H[ce].evaluate(ne,le);return se},Y.clusterOptions.reduce=(ae,se)=>{le.properties=se;for(const ce of pe)ne.accumulated=ae[ce],ae[ce]=K[ce].evaluate(ne,le)},Y.clusterOptions}class ee{constructor(z){this.self=z,this.actor=new s.N(z),this.layerIndexes={},this.availableImages={},this.workerSources={},this.demWorkerSources={},this.externalWorkerSourceTypes={},this.globalStates=new Map,this.self.registerWorkerSource=(H,K)=>{if(this.externalWorkerSourceTypes[H])throw new Error(`Worker source with name "${H}" already registered.`);this.externalWorkerSourceTypes[H]=K},this.self.addProtocol=s.cH,this.self.removeProtocol=s.cI,this.self.registerRTLTextPlugin=H=>{s.d1.setMethods(H)},this.self.makeRequest=s.m,this.actor.registerMessageHandler("LDT",((H,K)=>this._getDEMWorkerSource(H,K.source).loadTile(K))),this.actor.registerMessageHandler("RDT",((H,K)=>s._(this,void 0,void 0,(function*(){this._getDEMWorkerSource(H,K.source).removeTile(K)})))),this.actor.registerMessageHandler("GCEZ",((H,K)=>s._(this,void 0,void 0,(function*(){return this._getWorkerSource(H,K.type,K.source).getClusterExpansionZoom(K)})))),this.actor.registerMessageHandler("GCC",((H,K)=>s._(this,void 0,void 0,(function*(){return this._getWorkerSource(H,K.type,K.source).getClusterChildren(K)})))),this.actor.registerMessageHandler("GCL",((H,K)=>s._(this,void 0,void 0,(function*(){return this._getWorkerSource(H,K.type,K.source).getClusterLeaves(K)})))),this.actor.registerMessageHandler("LD",((H,K)=>this._getWorkerSource(H,K.type,K.source).loadData(K))),this.actor.registerMessageHandler("LT",((H,K)=>this._getWorkerSource(H,K.type,K.source).loadTile(K))),this.actor.registerMessageHandler("RT",((H,K)=>this._getWorkerSource(H,K.type,K.source).reloadTile(K))),this.actor.registerMessageHandler("AT",((H,K)=>this._getWorkerSource(H,K.type,K.source).abortTile(K))),this.actor.registerMessageHandler("RMT",((H,K)=>this._getWorkerSource(H,K.type,K.source).removeTile(K))),this.actor.registerMessageHandler("RS",((H,K)=>s._(this,void 0,void 0,(function*(){var ne,le;if(!(!((le=(ne=this.workerSources[H])===null||ne===void 0?void 0:ne[K.type])===null||le===void 0)&&le[K.source]))return;const pe=this.workerSources[H][K.type][K.source];delete this.workerSources[H][K.type][K.source],pe.removeSource!==void 0&&pe.removeSource(K)})))),this.actor.registerMessageHandler("RM",(H=>s._(this,void 0,void 0,(function*(){delete this.layerIndexes[H],delete this.availableImages[H],delete this.workerSources[H],delete this.demWorkerSources[H],this.globalStates.delete(H)})))),this.actor.registerMessageHandler("SR",((H,K)=>s._(this,void 0,void 0,(function*(){this.referrer=K})))),this.actor.registerMessageHandler("SRPS",((H,K)=>this._syncRTLPluginState(H,K))),this.actor.registerMessageHandler("IS",((H,K)=>s._(this,void 0,void 0,(function*(){this.self.importScripts(K)})))),this.actor.registerMessageHandler("SI",((H,K)=>this._setImages(H,K))),this.actor.registerMessageHandler("UL",((H,K)=>s._(this,void 0,void 0,(function*(){this._getLayerIndex(H).update(K.layers,K.removedIds,this._getGlobalState(H))})))),this.actor.registerMessageHandler("UGS",((H,K)=>s._(this,void 0,void 0,(function*(){const ne=this._getGlobalState(H);for(const le in K)ne[le]=K[le]})))),this.actor.registerMessageHandler("SL",((H,K)=>s._(this,void 0,void 0,(function*(){this._getLayerIndex(H).replace(K,this._getGlobalState(H))}))))}_getGlobalState(z){let H=this.globalStates.get(z);return H||(H={},this.globalStates.set(z,H)),H}_setImages(z,H){return s._(this,void 0,void 0,(function*(){this.availableImages[z]=H;for(const K in this.workerSources[z]){const ne=this.workerSources[z][K];for(const le in ne)ne[le].availableImages=H}}))}_syncRTLPluginState(z,H){return s._(this,void 0,void 0,(function*(){return yield s.d1.syncState(H,this.self.importScripts)}))}_getAvailableImages(z){let H=this.availableImages[z];return H||(H=[]),H}_getLayerIndex(z){let H=this.layerIndexes[z];return H||(H=this.layerIndexes[z]=new o),H}_getWorkerSource(z,H,K){var ne,le;if((ne=this.workerSources)[z]||(ne[z]={}),(le=this.workerSources[z])[H]||(le[H]={}),!this.workerSources[z][H][K]){const pe={sendAsync:(ae,se)=>(ae.targetMapId=z,this.actor.sendAsync(ae,se))};switch(H){case"vector":this.workerSources[z][H][K]=new I(pe,this._getLayerIndex(z),this._getAvailableImages(z));break;case"geojson":this.workerSources[z][H][K]=new B(pe,this._getLayerIndex(z),this._getAvailableImages(z));break;default:this.workerSources[z][H][K]=new this.externalWorkerSourceTypes[H](
24pe,this._getLayerIndex(z),this._getAvailableImages(z))}}return this.workerSources[z][H][K]}_getDEMWorkerSource(z,H){var K,ne;return(K=this.demWorkerSources)[z]||(K[z]={}),(ne=this.demWorkerSources[z])[H]||(ne[H]=new U),this.demWorkerSources[z][H]}}return s.i(self)&&(self.worker=new ee(self)),ee})),i("index",["exports","./shared"],(function(s,o){var f="5.24.0";function m(){var E=new o.A(4);return o.A!=Float32Array&&(E[1]=0,E[2]=0),E[0]=1,E[3]=1,E}let y,b,T;const x={frame(E,u,h,_){const S=_||window,M=S.requestAnimationFrame((W=>{V(),u(W)})),{unsubscribe:V}=o.s(E.signal,"abort",(()=>{V(),S.cancelAnimationFrame(M),h(new o.a(E.signal.reason))}),!1)},frameAsync(E,u){return new Promise(((h,_)=>{this.frame(E,h,_,u)}))},getImageData(E,u=0){return this.getImageCanvasContext(E).getImageData(-u,-u,E.width+2*u,E.height+2*u)},getImageCanvasContext(E){const u=window.document.createElement("canvas"),h=u.getContext("2d",{willReadFrequently:!0});if(!h)throw new Error("failed to create canvas 2d context");return u.width=E.width,u.height=E.height,h.drawImage(E,0,0,E.width,E.height),h},resolveURL:E=>(y||(y=document.createElement("a")),y.href=E,y.href),hardwareConcurrency:typeof navigator<"u"&&navigator.hardwareConcurrency||4,get prefersReducedMotion(){return T!==void 0?T:!!matchMedia&&(b!=null||(b=matchMedia("(prefers-reduced-motion: reduce)")),b.matches)},set prefersReducedMotion(E){T=E}},$=new class{constructor(){this._frozenAt=null}getCurrentTime(){return this._frozenAt!==null?this._frozenAt:performance.now()}setNow(E){this._frozenAt=E}restoreNow(){this._frozenAt=null}isFrozen(){return this._frozenAt!==null}};function A(){return $.getCurrentTime()}var N,O;class I{static create(u,h,_){const S=window.document.createElement(u);return h!==void 0&&(S.className=h),_&&_.appendChild(S),S}static createNS(u,h){return window.document.createElementNS(u,h)}static disableDrag(){I.docStyle&&I.selectProp&&(I.userSelect=I.docStyle[I.selectProp],I.docStyle[I.selectProp]="none")}static enableDrag(){I.docStyle&&I.selectProp&&(I.docStyle[I.selectProp]=I.userSelect)}static suppressClickInternal(u){u.preventDefault(),u.stopPropagation(),window.removeEventListener("click",I.suppressClickInternal,!0)}static suppressClick(){window.addEventListener("click",I.suppressClickInternal,!0),window.setTimeout((()=>{window.removeEventListener("click",I.suppressClickInternal,!0)}),0)}static getScale(u){const h=u.getBoundingClientRect();return{x:h.width/u.offsetWidth||1,y:h.height/u.offsetHeight||1,boundingClientRect:h}}static getPoint(u,h,_){const S=h.boundingClientRect;return new o.P((_.clientX-S.left)/h.x-u.clientLeft,(_.clientY-S.top)/h.y-u.clientTop)}static mousePos(u,h){const _=I.getScale(u);return I.getPoint(u,_,h)}static touchPos(u,h){const _=[],S=I.getScale(u);for(const M of h)_.push(I.getPoint(u,S,M));return _}static sanitize(u){const h=new DOMParser().parseFromString(u,"text/html").body||document.createElement("body"),_=h.querySelectorAll("script");for(const S of _)S.remove();return I.clean(h),h.innerHTML}static isPossiblyDangerous(u,h){const _=h.replace(/\s+/g,"").toLowerCase();return!(!["src","href","xlink:href"].includes(u)||!_.includes("javascript:")&&!_.includes("data:"))||!!u.startsWith("on")||void 0}static clean(u){const h=u.children;for(const _ of h)I.removeAttributes(_),I.clean(_)}static removeAttributes(u){for(const{name:h,value:_}of u.attributes)I.isPossiblyDangerous(h,_)&&u.removeAttribute(h)}}I.docStyle=typeof window<"u"&&((N=window.document)===null||N===void 0?void 0:N.documentElement.style),I.selectProp=!I.docStyle||"userSelect"in I.docStyle?"userSelect":"webkitUserSelect",(function(E){let u,h,_,S;E.resetRequestQueue=()=>{u=[],h=0,_=0,S={}},E.addThrottleControl=X=>{const re=_++;return S[re]=X,re},E.removeThrottleControl=X=>{delete S[X],V()},E.getImage=(X,re,ie=!0)=>new Promise(((he,ge)=>{X.headers||(X.headers={}),X.headers.accept="image/webp,*/*",o.e(X,{type:"image"}),u.push({abortController:re,requestParameters:X,supportImageRefresh:ie,state:"queued",onError:we=>{ge(we)},onSuccess:we=>{he(we)}}),V()}));const M=X=>o._(this,void 0,void 0,(function*(){X.state="running";const{requestParameters:re,supportImageRefresh:ie,onError:he,onSuccess:ge,abortController:we}=X,Le=ie===!1&&!o.i(self)&&!o.g(re.url)&&(!re.headers||Object.keys(re.headers).reduce(((Ze,et)=>Ze&&et==="accept"),!0));h++;const He=Le?W(re,we):o.m(re,we);try{const Ze=yield He;delete X.abortController,X.state="completed",Ze.data instanceof HTMLImageElement||o.b(Ze.data)?ge(Ze):Ze.data&&ge({data:yield(Xe=Ze.data,typeof createImageBitmap=="function"?o.h(Xe):o.j(Xe)),cacheControl:Ze.cacheControl,expires:Ze.expires})}catch(Ze){delete X.abortController,he(o.d(Ze))}finally{h--,V()}var Xe})),V=()=>{const X=(()=>
24{for(const re of Object.keys(S))if(S[re]())return!0;return!1})()?o.c.MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME:o.c.MAX_PARALLEL_IMAGE_REQUESTS;for(let re=h;re<X&&u.length>0;re++){const ie=u.shift();ie.abortController.signal.aborted?re--:M(ie)}},W=(X,re)=>new Promise(((ie,he)=>{const ge=new Image,we=X.url,Le=X.credentials;Le&&Le==="include"?ge.crossOrigin="use-credentials":(Le&&Le==="same-origin"||!o.f(we))&&(ge.crossOrigin="anonymous"),re.signal.addEventListener("abort",(()=>{ge.src="",he(new o.a(re.signal.reason))})),ge.fetchPriority="high",ge.onload=()=>{ge.onerror=ge.onload=null,ie({data:ge})},ge.onerror=()=>{ge.onerror=ge.onload=null,re.signal.aborted||he(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))},ge.src=we}))})(O||(O={})),O.resetRequestQueue();class U{constructor(u){this._transformRequestFn=u??null}transformRequest(u,h){return this._transformRequestFn&&this._transformRequestFn(u,h)||{url:u}}setTransformRequest(u){this._transformRequestFn=u}}function B(E){const u=[];if(typeof E=="string")u.push({id:"default",url:E});else if(E&&E.length>0){const h=[];for(const{id:_,url:S}of E){const M=`${_}${S}`;h.includes(M)||(h.push(M),u.push({id:_,url:S}))}}return u}function q(E,u,h){try{const _=new URL(E);return _.pathname+=`${u}${h}`,_.toString()}catch{throw new Error(`Invalid sprite URL "${E}", must be absolute. Modify style specification directly or use TransformStyleFunction to correct the issue dynamically`)}}function Q(E){const{userImage:u}=E;return!(!u?.render||!u.render()||(E.data.replace(new Uint8Array(u.data.buffer)),0))}class ee extends o.E{constructor(){super(),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new o.R({width:1,height:1}),this.dirty=!0}destroy(){this.atlasTexture&&(this.atlasTexture.destroy(),this.atlasTexture=null);for(const u of Object.keys(this.images))this.removeImage(u);this.patterns={},this.atlasImage=new o.R({width:1,height:1}),this.dirty=!0}isLoaded(){return this.loaded}setLoaded(u){if(this.loaded!==u&&(this.loaded=u,u)){for(const{ids:h,promiseResolve:_}of this.requestors)_(this._getImagesForIds(h));this.requestors=[]}}getImage(u){const h=this.images[u];if(h&&!h.data&&h.spriteData){const _=h.spriteData;h.data=new o.R({width:_.width,height:_.height},_.context.getImageData(_.x,_.y,_.width,_.height).data),h.spriteData=null}return h}addImage(u,h){if(this.images[u])throw new Error(`Image id ${u} already exist, use updateImage instead`);this._validate(u,h)&&(this.images[u]=h)}_validate(u,h){let _=!0;const S=h.data||h.spriteData;return this._validateStretch(h.stretchX,S?.width)||(this.fire(new o.l(new Error(`Image "${u}" has invalid "stretchX" value`))),_=!1),this._validateStretch(h.stretchY,S?.height)||(this.fire(new o.l(new Error(`Image "${u}" has invalid "stretchY" value`))),_=!1),this._validateContent(h.content,h)||(this.fire(new o.l(new Error(`Image "${u}" has invalid "content" value`))),_=!1),_}_validateStretch(u,h){if(!u)return!0;let _=0;for(const S of u){if(S[0]<_||S[1]<S[0]||h<S[1])return!1;_=S[1]}return!0}_validateContent(u,h){if(!u)return!0;if(u.length!==4)return!1;const _=h.spriteData,S=_?.width||h.data.width,M=_?.height||h.data.height;return!(u[0]<0||S<u[0]||u[1]<0||M<u[1]||u[2]<0||S<u[2]||u[3]<0||M<u[3]||u[2]<u[0]||!(u[3]>=u[1]))}updateImage(u,h,_=!0){const S=this.getImage(u);if(_&&(S.data.width!==h.data.width||S.data.height!==h.data.height))throw new Error(`size mismatch between old image (${S.data.width}x${S.data.height}) and new image (${h.data.width}x${h.data.height}).`);h.version=S.version+1,this.images[u]=h,this.updatedImages[u]=!0}removeImage(u){var h;const _=this.images[u];delete this.images[u],delete this.patterns[u],!((h=_.userImage)===null||h===void 0)&&h.onRemove&&_.userImage.onRemove()}listImages(){return Object.keys(this.images)}getImages(u){return new Promise(((h,_)=>{let S=!0;if(!this.isLoaded())for(const M of u)this.images[M]||(S=!1);this.isLoaded()||S?h(this._getImagesForIds(u)):this.requestors.push({ids:u,promiseResolve:h})}))}_getImagesForIds(u){var h;const _={};for(const S of u){let M=this.getImage(S);M||(this.fire(new o.n("styleimagemissing",{id:S})),M=this.getImage(S)),M?_[S]={data:M.data.clone(),pixelRatio:M.pixelRatio,sdf:M.sdf,ver
24sion:M.version,stretchX:M.stretchX,stretchY:M.stretchY,content:M.content,textFitWidth:M.textFitWidth,textFitHeight:M.textFitHeight,hasRenderCallback:!!(!((h=M.userImage)===null||h===void 0)&&h.render)}:o.w(`Image "${S}" could not be loaded. Please make sure you have added the image with map.addImage() or a "sprite" property in your style. You can provide missing images by listening for the "styleimagemissing" map event.`)}return _}getPixelSize(){const{width:u,height:h}=this.atlasImage;return{width:u,height:h}}getPattern(u){const h=this.patterns[u],_=this.getImage(u);if(!_)return null;if(h&&h.position.version===_.version)return h.position;if(h)h.position.version=_.version;else{const S={w:_.data.width+2,h:_.data.height+2,x:0,y:0},M=new o.I(S,_);this.patterns[u]={bin:S,position:M}}return this._updatePatternAtlas(),this.patterns[u].position}bind(u){const h=u.gl;this.atlasTexture?this.dirty&&(this.atlasTexture.update(this.atlasImage),this.dirty=!1):this.atlasTexture=new o.T(u,this.atlasImage,h.RGBA),this.atlasTexture.bind(h.LINEAR,h.CLAMP_TO_EDGE)}_updatePatternAtlas(){const u=[];for(const M in this.patterns)u.push(this.patterns[M].bin);const{w:h,h:_}=o.p(u),S=this.atlasImage;S.resize({width:h||1,height:_||1});for(const M in this.patterns){const{bin:V}=this.patterns[M],W=V.x+1,X=V.y+1,re=this.getImage(M).data,ie=re.width,he=re.height;o.R.copy(re,S,{x:0,y:0},{x:W,y:X},{width:ie,height:he}),o.R.copy(re,S,{x:0,y:he-1},{x:W,y:X-1},{width:ie,height:1}),o.R.copy(re,S,{x:0,y:0},{x:W,y:X+he},{width:ie,height:1}),o.R.copy(re,S,{x:ie-1,y:0},{x:W-1,y:X},{width:1,height:he}),o.R.copy(re,S,{x:0,y:0},{x:W+ie,y:X},{width:1,height:he})}this.dirty=!0}beginFrame(){this.callbackDispatchedThisFrame={}}dispatchRenderCallbacks(u){for(const h of u){if(this.callbackDispatchedThisFrame[h])continue;this.callbackDispatchedThisFrame[h]=!0;const _=this.getImage(h);_||o.w(`Image with ID: "${h}" was not found`),Q(_)&&this.updateImage(h,_)}}cloneImages(){const u={};for(const h in this.images){const _=this.images[h];u[h]=Object.assign(Object.assign({},_),{data:_.data?_.data.clone():null})}return u}}const Y=1e20,z=new Float64Array(256);for(let E=0;E<256;E++){const u=.5-Math.pow(E/255,.45454545454545453);z[E]=u*Math.abs(u)}function H(E,u,h,_,S,M,V,W,X){for(let re=u;re<u+_;re++)K(E,h*M+re,M,S,V,W,X);for(let re=h;re<h+S;re++)K(E,re*M+u,1,_,V,W,X)}function K(E,u,h,_,S,M,V){M[0]=0,V[0]=-Y,V[1]=Y,S[0]=E[u];for(let W=1,X=0,re=0;W<_;W++){S[W]=E[u+W*h];const ie=W*W;do{const he=M[X];re=(S[W]-S[he]+ie-he*he)/(W-he)/2}while(re<=V[X]&&--X>-1);X++,M[X]=W,V[X]=re,V[X+1]=Y}for(let W=0,X=0;W<_;W++){for(;V[X+1]<W;)X++;const re=M[X],ie=W-re;E[u+W*h]=S[re]+ie*ie}}z[255]=-Y;const ne=o.v.layout_symbol["text-font"].default.join(",");class le{constructor(u,h,_){this.requestManager=u,this.localIdeographFontFamily=h,this.entries={},this.lang=_}setURL(u){this.url=u}getGlyphs(u){return o._(this,void 0,void 0,(function*(){const h=[];for(const M in u)for(const V of u[M])h.push(this._getAndCacheGlyphsPromise(M,V));const _=yield Promise.all(h),S={};for(const{stack:M,id:V,glyph:W}of _)S[M]||(S[M]={}),S[M][V]=W&&{id:W.id,bitmap:W.bitmap.clone(),metrics:W.metrics};return S}))}_getAndCacheGlyphsPromise(u,h){return o._(this,void 0,void 0,(function*(){var _,S;(_=(S=this.entries)[u])!==null&&_!==void 0||(S[u]={glyphs:{},requests:{},ranges:{}});const M=this.entries[u];let V=M.glyphs[h];return V!==void 0?{stack:u,id:h,glyph:V}:!this.url||this._charUsesLocalIdeographFontFamily(h)?(V=M.glyphs[h]=this._drawGlyph(M,u,h),{stack:u,id:h,glyph:V}):yield this._downloadAndCacheRangePromise(u,h)}))}_downloadAndCacheRangePromise(u,h){return o._(this,void 0,void 0,(function*(){var _;const S=this.entries[u],M=Math.floor(h/256);if(S.ranges[M])return{stack:u,id:h,glyph:null};(_=S.requests)[M]||(_[M]=le.loadGlyphRange(u,M,this.url,this.requestManager));try{const V=yield S.requests[M];for(const W in V)S.glyphs[+W]=V[+W];return S.ranges[M]=!0,{stack:u,id:h,glyph:V[h]||null}}catch(V){const W=S.glyphs[h]=this._drawGlyph(S,u,h);return this._warnOnMissingGlyphRange(W,M,h,o.d(V)),{stack:u,id:h,glyph:W}}}))}_warnOnMissingGlyphRange(u,h,_,S){const M=256*h,V=M+255,W=_.toString(16).padStart(4,"0").toUpperCase();o.w(`Unable to load glyph range ${h}, ${M}-${V}. Rendering codepoint U+${W} locally instead. ${S}`)}_charUsesLocalIdeographFontFamily(u){return!!this.localIdeographFontFamily&&o.r(u)}_drawGlyph(u,h,_){const S=h===ne&&this.localIdeographFontFamily!==""&&this._charUsesLocalIdeographFontFamily(_),M=S?"ideographTinySDF":"tinySDF";u[M]||(u[M]=this._createTinySDF(S?this.localIdeographFontFamily:h));const V=u[M].draw(String.fromCodePoint(_)),W=new RegExp("^\\p{gc=Cf}+$","u").test(String.fromCodePoint(_));return{id:_,bitmap:new o.t({width:V.width||60,height:V.height||60},V.data),metrics:{width:W?0:V.glyphWidth/2||24,height:V.glyphHeight/2||24,left:V.glyphLeft/2+.5||0,top:V.glyphTop/2-27.5||-8,advance:W?0:V.glyphAdvance/2||24,isDoubleResolution:!0}}}_createTinySDF(u){const h=u?u.split(","):[];h.push("sans-serif");const _=h.map((S=>/[-\w]+/.test(S)?S:`'${CSS.escape(S)}'`)).join(",");return new le.TinySDF({fontSize:48,buffer:6,radius:16,cutoff:.25,fontFamily:_,fontWeight:this._fontWeight(h[0]),fontStyle:this._fontStyle(h[0]),lang:this.lang})}_fontStyle(u){return/italic/i.test(u)?"italic":/oblique/i.test(u)?"oblique":"normal"}_fontWeight(u){const h={thin:100,hairline:100,"extra light":200,"ultra light":200,light:300,normal:400,regular:400,medium:500,semibold:600,demibold:600,bold:700,"extra bold":800,"ultra bold":800,black:900,heavy:900,"extra black":950,"ultra black":950};let _;for(const[S,M]of Object.entries(h))new RegExp(`\\b${S}\\b`,"i").test(u)&&(_=`${M}`);return _}destroy(){for(const u in this.entries){const h=this.entries[u];h.tinySDF=null,h.ideographTinySDF=null,h.glyphs={},h.requests={},h.ranges={}}this.entries={}}}le.loadGlyphRange=function(E,u,h,_){return o._(this,void 0,void 0,(function*(){const S=256*u,M=S+255,V=yield _.transformRequest(h.replace("{fontstack}",E).replace("{range}",`${S}-${M}`),"Glyphs"),W=yield o.o(V,new AbortController);if(!W?.data)throw new Error(`Could not load glyph range. range: ${u}, ${S}-${M}`);const X={};
24for(const re of o.q(W.data))X[re.id]=re;return X}))},le.TinySDF=class{constructor({fontSize:E=24,buffer:u=3,radius:h=8,cutoff:_=.25,fontFamily:S="sans-serif",fontWeight:M="normal",fontStyle:V="normal",lang:W=null}={}){this.buffer=u,this.radius=h,this.cutoff=_,this.lang=W;const X=this.size=E+4*u,re=this._createCanvas(X),ie=this.ctx=re.getContext("2d",{willReadFrequently:!0});ie.font=`${V} ${M} ${E}px ${S}`,ie.textBaseline="alphabetic",ie.textAlign="left",ie.fillStyle="black",this.gridOuter=new Float64Array(X*X),this.gridInner=new Float64Array(X*X),this.f=new Float64Array(X),this.z=new Float64Array(X+1),this.v=new Uint16Array(X)}_createCanvas(E){if(typeof OffscreenCanvas<"u")return new OffscreenCanvas(E,E);const u=document.createElement("canvas");return u.width=u.height=E,u}draw(E){const{width:u,actualBoundingBoxAscent:h,actualBoundingBoxDescent:_,actualBoundingBoxLeft:S,actualBoundingBoxRight:M}=this.ctx.measureText(E),V=Math.ceil(h),W=Math.floor(S),X=Math.max(0,Math.min(this.size-this.buffer,Math.ceil(M)-W)),re=Math.max(0,Math.min(this.size-this.buffer,V+Math.ceil(_))),ie=X+2*this.buffer,he=re+2*this.buffer,ge=Math.max(ie*he,0),we=new Uint8ClampedArray(ge),Le={data:we,width:ie,height:he,glyphWidth:X,glyphHeight:re,glyphTop:V,glyphLeft:W,glyphAdvance:u};if(X===0||re===0)return Le;const{ctx:He,buffer:Xe,gridInner:Ze,gridOuter:et}=this;this.lang&&(He.lang=this.lang),He.clearRect(Xe,Xe,X,re),He.fillText(E,Xe-W,Xe+V);const lt=He.getImageData(Xe,Xe,X,re);et.fill(Y,0,ge),Ze.fill(0,0,ge);let Je=3;for(let tt=0;tt<re;tt++){let wt=(tt+Xe)*ie+Xe;for(let Rt=0;Rt<X;Rt++,Je+=4,wt++){const Vt=lt.data[Je];if(Vt===0)continue;const Qt=z[Vt];et[wt]=Math.max(0,Qt),Ze[wt]=Math.max(0,-Qt)}}H(et,0,0,ie,he,ie,this.f,this.v,this.z),H(Ze,Xe,Xe,X,re,ie,this.f,this.v,this.z);const Ke=255/this.radius,ot=255*(1-this.cutoff);for(let tt=0;tt<ge;tt++){const wt=Math.sqrt(et[tt])-Math.sqrt(Ze[tt]);we[tt]=Math.round(ot-Ke*wt)}return Le}};class pe{constructor(){this.specification=o.x.light.position}possiblyEvaluate(u,h){return o.G(u.expression.evaluate(h))}interpolate(u,h,_){return{x:o.H.number(u.x,h.x,_),y:o.H.number(u.y,h.y,_),z:o.H.number(u.z,h.z,_)}}}let ae;class se extends o.E{constructor(u){super(),ae||(ae=new o.u({anchor:new o.D(o.x.light.anchor),position:new pe,color:new o.D(o.x.light.color),intensity:new o.D(o.x.light.intensity)})),this._transitionable=new o.y(ae,void 0),this.setLight(u),this._transitioning=this._transitionable.untransitioned()}getLight(){return this._transitionable.serialize()}setLight(u,h={}){if(!this._validate(o.z,u,h))for(const _ in u){const S=u[_];_.endsWith(o.B)?this._transitionable.setTransition(_.slice(0,-o.B.length),S):this._transitionable.setValue(_,S)}}updateTransitions(u){this._transitioning=this._transitionable.transitioned(u,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}recalculate(u){this.properties=this._transitioning.possiblyEvaluate(u)}_validate(u,h,_){return _?.validate!==!1&&o.C(this,u.call(o.F,{value:h,style:{glyphs:!0,sprite:!0},styleSpec:o.x}))}}const ce=new o.u({"sky-color":new o.D(o.x.sky["sky-color"]),"horizon-color":new o.D(o.x.sky["horizon-color"]),"fog-color":new o.D(o.x.sky["fog-color"]),"fog-ground-blend":new o.D(o.x.sky["fog-ground-blend"]),"horizon-fog-blend":new o.D(o.x.sky["horizon-fog-blend"]),"sky-horizon-blend":new o.D(o.x.sky["sky-horizon-blend"]),"atmosphere-blend":new o.D(o.x.sky["atmosphere-blend"])});class ye extends o.E{constructor(u){super(),this._transitionable=new o.y(ce,void 0),this.setSky(u),this._transitioning=this._transitionable.untransitioned(),this.recalculate(new o.J(0))}setSky(u,h={}){if(!this._validate(o.K,u,h)){u||(u={"sky-color":"transparent","horizon-color":"transparent","fog-color":"transparent","fog-ground-blend":1,"atmosphere-blend":0});for(const _ in u){const S=u[_];_.endsWith(o.B)?this._transitionable.setTransition(_.slice(0,-o.B.length),S):this._transitionable.setValue(_,S)}}}getSky(){return this._transitionable.serialize()}updateTransitions(u){this._transitioning=this._transitionable.transitioned(u,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}recalculate(u){this.properties=this._transitioning.possiblyEvaluate(u)}_validate(u,h,_={}){return _?.validate!==!1&&o.C(this,u.call(o.F,o.e({value:h,style:{glyphs:!0,sprite:!0},styleSpec:o.x})))}calculateFogBlendOpacity(u){return u<60?0:u<70?(u-60)/10:1}}class $e{constructor(u,h){this.width=u,this.height=h,this.nextRow=0,this.data=new Uint8Array(this.width*this.height),this.dashEntry={}}getDash(u,h){var _;const S=u.join(",")+String(h);return(_=this.dashEntry)[S]||(_[S]=this.addDash(u,h)),this.dashEntry[S]}getDashRanges(u,h,_){const S=[];let M=u.length%2==1?-u[u.length-1]*_:0,V=u[0]*_,W=!0;S.push({left:M,right:V,isDash:W,zeroLength:u[0]===0});let X=u[0];for(let re=1;re<u.length;re++){W=!W;const ie=u[re];M=X*_,X+=ie,V=X*_,S.push({left:M,right:V,isDash:W,zeroLength:ie===0})}return S}addRoundDash(u,h,_){const S=h/2;for(let M=-_;M<=_;M++){const V=this.width*(this.nextRow+_+M);let W=0,X=u[W];for(let re=0;re<this.width;
vendor: 2,692 bytes, line 24
24re++){re/X.right>1&&(X=u[++W]);const ie=Math.abs(re-X.left),he=Math.abs(re-X.right),ge=Math.min(ie,he);let we;const Le=M/_*(S+1);if(X.isDash){const He=S-Math.abs(Le);we=Math.sqrt(ge*ge+He*He)}else we=S-Math.sqrt(ge*ge+Le*Le);this.data[V+re]=Math.max(0,Math.min(255,we+128))}}}addRegularDash(u){for(let W=u.length-1;W>=0;--W){const X=u[W],re=u[W+1];X.zeroLength?u.splice(W,1):re&&re.isDash===X.isDash&&(re.left=X.left,u.splice(W,1))}const h=u[0],_=u[u.length-1];h.isDash===_.isDash&&(h.left=_.left-this.width,_.right=h.right+this.width);const S=this.width*this.nextRow;let M=0,V=u[M];for(let W=0;W<this.width;W++){W/V.right>1&&(V=u[++M]);const X=Math.abs(W-V.left),re=Math.abs(W-V.right),ie=Math.min(X,re);this.data[S+W]=Math.max(0,Math.min(255,(V.isDash?ie:-ie)+128))}}addDash(u,h){const _=h?7:0,S=2*_+1;if(this.nextRow+S>this.height)return o.w("LineAtlas out of space"),null;let M=0;for(const W of u)M+=W;if(M!==0){const W=this.width/M,X=this.getDashRanges(u,this.width,W);h?this.addRoundDash(X,W,_):this.addRegularDash(X)}const V={y:this.nextRow+_,height:2*_,width:M};return this.nextRow+=S,this.dirty=!0,V}bind(u){const h=u.gl;this.texture?(h.bindTexture(h.TEXTURE_2D,this.texture),this.dirty&&(this.dirty=!1,h.texSubImage2D(h.TEXTURE_2D,0,0,0,this.width,this.height,h.ALPHA,h.UNSIGNED_BYTE,this.data))):(this.texture=h.createTexture(),h.bindTexture(h.TEXTURE_2D,this.texture),h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_S,h.REPEAT),h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_T,h.REPEAT),h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MIN_FILTER,h.LINEAR),h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MAG_FILTER,h.LINEAR),h.texImage2D(h.TEXTURE_2D,0,h.ALPHA,this.width,this.height,0,h.ALPHA,h.UNSIGNED_BYTE,this.data))}}const Be="maplibre_preloaded_worker_pool";class je{constructor(){this.active={}}acquire(u){if(!this.workers)for(this.workers=[];this.workers.length<je.workerCount;)this.workers.push(new Worker(o.c.WORKER_URL));return this.active[u]=!0,this.workers.slice()}release(u){if(delete this.active[u],this.numActive()===0){for(const h of this.workers)h.terminate();this.workers=null}}isPreloaded(){return!!this.active[Be]}numActive(){return Object.keys(this.active).length}}const at=Math.floor(x.hardwareConcurrency/2);let Pt,Qe;function nt(){return Pt||(Pt=new je),Pt}je.workerCount=o.L(globalThis)?Math.max(Math.min(at,3),1):1;class Ve{constructor(u,h){this.workerPool=u,this.actors=[],this.currentActor=0,this.id=h;const _=this.workerPool.acquire(h);for(let S=0;S<_.length;S++){const M=new o.N(_[S],h);M.name=`Worker ${S}`,this.actors.push(M)}if(!this.actors.length)throw new Error("No actors found")}broadcast(u,h){const _=[];for(const S of this.actors)_.push(S.sendAsync({type:u,data:h}
24));return Promise.all(_)}getActor(){return this.currentActor=(this.currentActor+1)%this.actors.length,this.actors[this.currentActor]}remove(u=!0){for(const h of this.actors)h.remove();this.actors=[],u&&this.workerPool.release(this.id)}registerMessageHandler(u,h){for(const _ of this.actors)_.registerMessageHandler(u,h)}unregisterMessageHandler(u){for(const h of this.actors)h.unregisterMessageHandler(u)}}function ct(){return Qe||(Qe=new Ve(nt(),o.M),Qe.registerMessageHandler("GR",((E,u,h)=>o.m(u,h)))),Qe}function zt(E,u){const h=o.O();return o.Q(h,h,[1,1,0]),o.S(h,h,[.5*E.width,.5*E.height,1]),E.calculatePosMatrix?o.U(h,h,E.calculatePosMatrix(u.toUnwrapped())):h}function ut(E,u,h,_,S,M,V){var W;const X=(function(ge,we,Le){if(ge)for(const He of ge){const Xe=we[He];if(Xe?.source===Le&&Xe.type==="fill-extrusion")return!0}else for(const He in we){const Xe=we[He];if(Xe.source===Le&&Xe.type==="fill-extrusion")return!0}return!1})((W=S?.layers)!==null&&W!==void 0?W:null,u,E.id),re=M.maxPitchScaleFactor(),ie=E.tilesIn(_,re,X);ie.sort(At);const he=[];for(const ge of ie)he.push({wrappedTileID:ge.tileID.wrapped().key,queryResults:ge.tile.queryRenderedFeatures(u,h,E.getState(),ge.queryGeometry,ge.cameraQueryGeometry,ge.scale,S,M,re,zt(M,ge.tileID),V?(we,Le)=>V(ge.tileID,we,Le):void 0)});return(function(ge,we){for(const Le in ge)for(const He of ge[Le])Dt(He,we);return ge})((function(ge){const we={},Le={};for(const{queryResults:He,wrappedTileID:Xe}of ge){Le[Xe]||(Le[Xe]={});const Ze=Le[Xe];for(const et in He){const lt=He[et];Ze[et]||(Ze[et]={});const Je=Ze[et];we[et]||(we[et]=[]);for(const Ke of lt)Je[Ke.featureIndex]||(Je[Ke.featureIndex]=!0,we[et].push(Ke))}}return we})(he),E)}function At(E,u){const h=E.tileID,_=u.tileID;return h.overscaledZ-_.overscaledZ||h.canonical.y-_.canonical.y||h.wrap-_.wrap||h.canonical.x-_.canonical.x}function Dt(E,u){const h=E.feature,_=u.getFeatureState(h.layer["source-layer"],h.id);h.source=h.layer.source,h.layer["source-layer"]&&(h.sourceLayer=h.layer["source-layer"]),h.state=_}function Ot(E,u,h,_){return o._(this,void 0,void 0,(function*(){let S=E;if(E.url?S=(yield o.k(yield u.transformRequest(E.url,"Source"),h)).data:yield x.frameAsync(h,_),!S)return null;const M=o.V(o.e(S,E),["tiles","minzoom","maxzoom","attribution","bounds","scheme","tileSize","encoding"]);return"vector_layers"in S&&S.vector_layers&&(M.vectorLayerIds=S.vector_layers.map((V=>V.id))),M}))}class Ee{constructor(u,h){u&&(h?this.setSouthWest(u).setNorthEast(h):Array.isArray(u)&&(u.length===4?this.setSouthWest([u[0],u[1]]).setNorthEast([u[2],u[3]]):this.setSouthWest(u[0]).setNorthEast(u[1])))}setNorthEast(u){return this._ne=u instanceof o.W?new o.W(u.lng,u.lat):o.W.convert(u),this}setSouthWest(u){return this._sw=u instanceof o.W?new o.W(u.lng,u.lat):o.W.convert(u),this}extend(u){const h=this._sw,_=this._ne;let S,M;if(u instanceof o.W)S=u,M=u;else{if(!(u instanceof Ee))return Array.isArray(u)?u.length===4||u.every(Array.isArray)?this.extend(Ee.convert(u)):this.extend(o.W.convert(u)):u&&("lng"in u||"lon"in u)&&"lat"in u?this.extend(o.W.convert(u)):this;if(S=u._sw,M=u._ne,!S||!M)return this}return h||_?(h.lng=Math.min(S.lng,h.lng),h.lat=Math.min(S.lat,h.lat),_.lng=Math.max(M.lng,_.lng),_.lat=Math.max(M.lat,_.lat)):(this._sw=new o.W(S.lng,S.lat),this._ne=new o.W(M.lng,M.lat)),this}getCenter(){return new o.W((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)}getSouthWest(){return this._sw}getNorthEast(){return this._ne}getNorthWest(){return new o.W(this.getWest(),this.getNorth())}getSouthEast(){return new o.W(this.getEast(),this.getSouth())}getWest(){return this._sw.lng}getSouth(){return this._sw.lat}getEast(){return this._ne.lng}getNorth(){return this._ne.lat}toArray(){return[this._sw.toArray(),this._ne.toArray()]}toString(){return`LngLatBounds(${this._sw.toString()}, ${this._ne.toString()})`}isEmpty(){return!(this._sw&&this._ne)}contains(u){const{lng:h,lat:_}=o.W.convert(u);let S=this._sw.lng<=h&&h<=this._ne.lng;return this._sw.lng>this._ne.lng&&(S=this._sw.lng>=h&&h>=this._ne.lng),this._sw.lat<=_&&_<=this._ne.lat&&S}intersects(u){if(!((u=Ee.convert(u)).getNorth()>=this.getSouth()&&u.getSouth()<=this.getNorth()))return!1;const h=Math.abs(this.getEast()-this.getWest()),_=Math.abs(u.getEast()-u.getWest());if(h>=360||_>=360)return!0;const S=o.X(this.getWest(),-180,180),M=o.X(this.getEast(),-180,180),V=o.X(u.getWest(),-180,180),W=o.X(u.getEast(),-180,180),X=S>M,re=V>W;return!(!X||!re)||(X?W>=S||V<=M:re?M>=V||S<=W:V<=M&&W>=S)}static convert(u){return u instanceof Ee?u:u&&new Ee(u)}static fromLngLat(u,h=0){const _=360*h/40075017,S=_/Math.cos(Math.PI/180*u.lat);
vendor: 2,733 bytes, line 24
24return new Ee(new o.W(u.lng-S,u.lat-_),new o.W(u.lng+S,u.lat+_))}adjustAntiMeridian(){const u=new o.W(this._sw.lng,this._sw.lat),h=new o.W(this._ne.lng,this._ne.lat);return new Ee(u,u.lng>h.lng?new o.W(h.lng+360,h.lat):h)}}class Ye{constructor(u,h,_){this.bounds=Ee.convert(this.validateBounds(u)),this.minzoom=h||0,this.maxzoom=_||24}validateBounds(u){return Array.isArray(u)&&u.length===4?[Math.max(-180,u[0]),Math.max(-90,u[1]),Math.min(180,u[2]),Math.min(90,u[3])]:[-180,-90,180,90]}contains(u){const h=Math.pow(2,u.z),_=Math.floor(o.Z(this.bounds.getWest())*h),S=Math.floor(o.Y(this.bounds.getNorth())*h),M=Math.ceil(o.Z(this.bounds.getEast())*h),V=Math.ceil(o.Y(this.bounds.getSouth())*h);return u.x>=_&&u.x<M&&u.y>=S&&u.y<V}}class it extends o.E{constructor(u,h,_,S){if(super(),this.id=u,this.dispatcher=_,this.type="vector",this.minzoom=0,this.maxzoom=22,this.scheme="xyz",this.tileSize=512,this.reparseOverscaled=!0,this.isTileClipped=!0,this._loaded=!1,o.e(this,o.V(h,["url","scheme","tileSize","promoteId","encoding"])),this._options=o.e({type:"vector"},h),this._collectResourceTiming=h.collectResourceTiming,this.tileSize!==512)throw new Error("vector tile sources must have a tileSize of 512");this.setEventedParent(S)}load(){return o._(this,arguments,void 0,(function*(u=!1){this._loaded=!1,this.fire(new o.n("dataloading",{dataType:"source"})),this._tileJSONRequest=new AbortController;try{const h=yield Ot(this._options,this.map._requestManager,this._tileJSONRequest,this.map._ownerWindow);this._tileJSONRequest=null,this._loaded=!0,h&&(o.e(this,h),h.bounds&&(this.tileBounds=new Ye(h.bounds,this.minzoom,this.maxzoom)),this.fire(new o.n("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new o.n("data",{dataType:"source",sourceDataType:"content",sourceDataChanged:u})))}catch(h){this._tileJSONRequest=null,this._loaded=!0,o.$(h)||this.fire(new o.l(o.d(h)))}}))}loaded(){return this._loaded}hasTile(u){return!this.tileBounds||this.tileBounds.contains(u.canonical)}onAdd(u){this.map=u,this.load()}setSourceProperty(u){this._tileJSONRequest&&this._tileJSONRequest.abort(),u(),this.load(!0)}setTiles(u){return this.setSourceProperty((()=>{this._options.tiles=u})),this}setUrl(u){return this.setSourceProperty((()=>{this.url=u,this._options.url=u})),this}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest.abort(),this._tileJSONRequest=null)}serialize(){return o.e({},this._options)}loadTile(u){return o._(this,void 0,void 0,(function*(){const h=u.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme),_={request:yield this.map._requestManager.transformRequest(h,"Tile"),uid:u.uid,tileID:u.tileID,zoom:u.tileID.overscaledZ,tileSize:this.tileSize*u.tileID.overscaleFactor(),type:this.t
24ype,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId,subdivisionGranularity:this.map.style.projection.subdivisionGranularity,encoding:this.encoding,overzoomParameters:yield this._getOverzoomParameters(u),etag:u.etag};_.request.collectResourceTiming=this._collectResourceTiming;let S="RT";if(u.actor&&u.state!=="expired"){if(u.state==="loading")return new Promise(((M,V)=>{u.reloadPromise={resolve:M,reject:V}}))}else u.actor=this.dispatcher.getActor(),S="LT";u.abortController=new AbortController;try{const M=yield u.actor.sendAsync({type:S,data:_},u.abortController);if(delete u.abortController,u.aborted)return;this._afterTileLoadWorkerResponse(u,M);const V={};return M?.etagUnmodified&&(V.unmodified=!0),V}catch(M){if(delete u.abortController,u.aborted)return;if(M&&M.status!==404)throw M;this._afterTileLoadWorkerResponse(u,null)}}))}_getOverzoomParameters(u){return o._(this,void 0,void 0,(function*(){if(u.tileID.canonical.z<=this.maxzoom||this.map._zoomLevelsToOverscale===void 0)return;const h=u.tileID.scaledTo(this.maxzoom).canonical,_=h.url(this.tiles,this.map.getPixelRatio(),this.scheme);return{maxZoomTileID:h,overzoomRequest:yield this.map._requestManager.transformRequest(_,"Tile")}}))}_afterTileLoadWorkerResponse(u,h){if(h?.resourceTiming&&(u.resourceTiming=h.resourceTiming),h&&this.map._refreshExpiredTiles&&u.setExpiryData(h),u.etag=h?.etag,u.loadVectorData(h,this.map.painter),u.reloadPromise){const _=u.reloadPromise;u.reloadPromise=null,this.loadTile(u).then(_.resolve).catch(_.reject)}}abortTile(u){return o._(this,void 0,void 0,(function*(){u.abortController&&(u.abortController.abort(),delete u.abortController),u.actor&&(yield u.actor.sendAsync({type:"AT",data:{uid:u.uid,type:this.t
24ype,source:this.id}}))}))}unloadTile(u){return o._(this,void 0,void 0,(function*(){u.unloadVectorData(),u.actor&&(yield u.actor.sendAsync({type:"RMT",data:{uid:u.uid,type:this.type,source:this.id}}))}))}hasTransition(){return!1}}class yt extends o.E{constructor(u,h,_,S){super(),this.id=u,this.dispatcher=_,this.setEventedParent(S),this.type="raster",this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme="xyz",this.tileSize=512,this._loaded=!1,this._options=o.e({type:"raster"},h),o.e(this,o.V(h,["url","scheme","tileSize"]))}load(){return o._(this,arguments,void 0,(function*(u=!1){this._loaded=!1,this.fire(new o.n("dataloading",{dataType:"source"})),this._tileJSONRequest=new AbortController;try{const h=yield Ot(this._options,this.map._requestManager,this._tileJSONRequest,this.map._ownerWindow);this._tileJSONRequest=null,this._loaded=!0,h&&(o.e(this,h),h.bounds&&(this.tileBounds=new Ye(h.bounds,this.minzoom,this.maxzoom)),this.fire(new o.n("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new o.n("data",{dataType:"source",sourceDataType:"content",sourceDataChanged:u})))}catch(h){this._tileJSONRequest=null,this._loaded=!0,o.$(h)||this.fire(new o.l(o.d(h)))}}))}loaded(){return this._loaded}onAdd(u){this.map=u,this.load()}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest.abort(),this._tileJSONRequest=null)}setSourceProperty(u){this._tileJSONRequest&&(this._tileJSONRequest.abort(),this._tileJSONRequest=null),u(),this.load(!0)}setTiles(u){return this.setSourceProperty((()=>{this._options.tiles=u})),this}setUrl(u){return this.setSourceProperty((()=>{this.url=u,this._options.url=u})),this}serialize(){return o.e({},this._options)}hasTile(u){return!this.tileBounds||this.tileBounds.contains(u.canonical)}loadTile(u){return o._(this,void 0,void 0,(function*(){const h=u.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme);u.abortController=new AbortController;try{const _=yield O.getImage(yield this.map._requestManager.transformRequest(h,"Tile"),u.abortController,this.map._refreshExpiredTiles);if(delete u.abortController,u.aborted)return void(u.state="unloaded");
24if(_?.data){this.map._refreshExpiredTiles&&(_.cacheControl||_.expires)&&u.setExpiryData({cacheControl:_.cacheControl,expires:_.expires});const S=this.map.painter.context,M=S.gl,V=_.data;u.texture=this.map.painter.getTileTexture(V.width),u.texture?u.texture.update(V,{useMipmap:!0}):(u.texture=new o.T(S,V,M.RGBA,{useMipmap:!0}),u.texture.bind(M.LINEAR,M.CLAMP_TO_EDGE,M.LINEAR_MIPMAP_NEAREST)),u.state="loaded"}}catch(_){if(delete u.abortController,u.aborted)u.state="unloaded";else if(_)throw u.state="errored",_}}))}abortTile(u){return o._(this,void 0,void 0,(function*(){u.abortController&&(u.abortController.abort(),delete u.abortController)}))}unloadTile(u){return o._(this,void 0,void 0,(function*(){u.texture&&this.map.painter.saveTileTexture(u.texture)}))}hasTransition(){return!1}}class St extends yt{constructor(u,h,_,S){super(u,h,_,S),this.type="raster-dem",this.maxzoom=22,this._options=o.e({type:"raster-dem"},h),this.encoding=h.encoding||"mapbox",this.redFactor=h.redFactor,this.greenFactor=h.greenFactor,this.blueFactor=h.blueFactor,this.baseShift=h.baseShift}loadTile(u){return o._(this,void 0,void 0,(function*(){const h=u.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme),_=yield this.map._requestManager.transformRequest(h,"Tile");u.neighboringTiles=this._getNeighboringTiles(u.tileID),u.abortController=new AbortController;try{const S=yield O.getImage(_,u.abortController,this.map._refreshExpiredTiles);if(delete u.abortController,u.aborted)return void(u.state="unloaded");if(S?.data){const M=S.data;this.map._refreshExpiredTiles&&(S.cacheControl||S.expires)&&u.setExpiryData({cacheControl:S.cacheControl,expires:S.expires});const V=o.b(M)&&o.a0()?M:yield this.readImageNow(M),W={type:this.type,uid:u.uid,source:this.id,rawImageData:V,encoding:this.encoding,redFactor:this.redFactor,greenFactor:this.greenFactor,blueFactor:this.blueFactor,baseShift:this.baseShift};if(u.actor&&u.state!=="expired"&&u.state!=="reloading")return;u.actor&&u.state!=="expired"||(u.actor=this.dispatcher.getActor()),u.dem=yield u.actor.sendAsync({type:"LDT",data:W}),u.needsHillshadePrepare=!0,u.needsTerrainPrepare=!0,u.state="loaded"}}catch(S){if(delete u.abortController,u.aborted)u.state="unloaded";else if(S)throw u.state="errored",S}}))}readImageNow(u){return o._(this,void 0,void 0,(function*(){if(typeof VideoFrame<"u"&&o.a1()){const h=u.width+2,_=u.height+2;try{return new o.R({width:h,height:_},yield o.a2(u,-1,-1,h,_))}catch{}}return x.getImageData(u,1)}))}_getNeighboringTiles(u){const h=u.canonical,_=Math.pow(2,h.z),S=(h.x-1+_)%_,M=h.x===0?u.wrap-1:u.wrap,V=(h.x+1+_)%_,W=h.x+1===_?u.wrap+1:u.wrap,X={};return X[new o.a3(u.overscaledZ,M,h.z,S,h.y).key]={backfilled:!1},X[new o.a3(u.overscaledZ,W,h.z,V,h.y).key]={backfilled:!1},h.y>0&&(X[new o.a3(u.overscaledZ,M,h.z,S,h.y-1).key]={backfilled:!1},X[new o.a3(u.overscaledZ,u.wrap,h.z,h.x,h.y-1).key]={backfilled:!1},X[new o.a3(u.overscaledZ,W,h.z,V,h.y-1).key]={backfilled:!1}),h.y+1<_&&(X[new o.a3(u.overscaledZ,M,h.z,S,h.y+1).key]={backfilled:!1},X[new o.a3(u.overscaledZ,u.wrap,h.z,h.x,h.y+1).key]={backfilled:!1},X[new o.a3(u.overscaledZ,W,h.z,V,h.y+1).key]={backfilled:!1}),X}unloadTile(u){return o._(this,void 0,void 0,(function*(){u.demTexture&&this.map.painter.saveTileTexture(u.demTexture),u.fbo&&(u.fbo.destroy(),delete u.fbo),u.dem&&delete u.dem,delete u.neighboringTiles,u.state="unloaded",u.actor&&(yield u.actor.sendAsync({type:"RDT",data:{type:this.type,uid:u.uid,source:this.id}}))}))}}function Ie(E,u){return u?E.properties[u]:E.id}function qe(E,u){const h={id:E.id};if(u.removeAllProperties&&(delete E.removeProperties,delete E.addOrUpdateProperties,delete u.removeProperties),u.removeProperties)for(const _ of u.removeProperties){const S=E.addOrUpdateProperties.findIndex((M=>M.key===_));S>-1&&E.addOrUpdateProperties.splice(S,1)}return(E.removeAllProperties||u.removeAllProperties)&&(h.removeAllProperties=!0),(E.removeProperties||u.removeProperties)&&(h.removeProperties=[...E.removeProperties||[],...u.removeProperties||[]]),(E.addOrUpdateProperties||u.addOrUpdateProperties)&&(h.addOrUpdateProperties=[...E.addOrUpdateProperties||[],...u.addOrUpdateProperties||[]]),(E.newGeometry||u.newGeometry)&&(h.newGeometry=u.newGeometry||E.newGeometry),h}function pt(E){var u,h;if(!E)return{};const _={};
24return _.removeAll=E.removeAll,_.remove=new Set(E.remove||[]),_.add=new Map((u=E.add)===null||u===void 0?void 0:u.map((S=>[S.id,S]))),_.update=new Map((h=E.update)===null||h===void 0?void 0:h.map((S=>[S.id,S]))),_}function Tt(E){return E&&E.length!==0?typeof E[0]=="number"?[E]:E.flatMap((u=>Tt(u))):[]}function It(E){return E.type==="GeometryCollection"?E.geometries.flatMap((u=>It(u))):Tt(E.coordinates)}function sn(E){const u=new Ee;let h;switch(E.type){case"FeatureCollection":h=E.features.flatMap((_=>It(_.geometry)));break;case"Feature":h=It(E.geometry);break;default:h=It(E)}if(h.length===0)return u;for(const _ of h){const[S,M]=_;u.extend([S,M])}return u}class Yt extends o.E{constructor(u,h,_,S){super(),this.id=u,this.type="geojson",this.minzoom=0,this.maxzoom=18,this.tileSize=512,this.isTileClipped=!0,this.reparseOverscaled=!0,this._removed=!1,this._isUpdatingWorker=!1,this._pendingWorkerUpdate={data:h.data},this.actor=_.getActor(),this.setEventedParent(S),this._data=typeof h.data=="string"?{url:h.data}:{geojson:h.data},this._options=o.e({},h),this._collectResourceTiming=h.collectResourceTiming,h.maxzoom!==void 0&&(this.maxzoom=h.maxzoom),h.type&&(this.type=h.type),h.attribution&&(this.attribution=h.attribution),this.promoteId=h.promoteId,h.clusterMaxZoom!==void 0&&this.maxzoom<=h.clusterMaxZoom&&o.w(`The maxzoom value "${this.maxzoom}" is expected to be greater than the clusterMaxZoom value "${h.clusterMaxZoom}".`),this.workerOptions=o.e({source:this.id,geojsonVtOptions:{buffer:this._pixelsToTileUnits(h.buffer!==void 0?h.buffer:128),tolerance:this._pixelsToTileUnits(h.tolerance!==void 0?h.tolerance:.375),extent:o.a6,maxZoom:this.maxzoom,lineMetrics:h.lineMetrics||!1,generateId:h.generateId||!1,promoteId:typeof h.promoteId=="string"?h.promoteId:void 0,cluster:h.cluster||!1,clusterOptions:{maxZoom:this._getClusterMaxZoom(h.clusterMaxZoom),minPoints:Math.max(2,h.clusterMinPoints||2),extent:o.a6,radius:this._pixelsToTileUnits(h.clusterRadius||50),log:!1,generateId:h.generateId||!1}},clusterProperties:h.clusterProperties,filter:h.filter},h.workerOptions)}_hasPendingWorkerUpdate(){return this._pendingWorkerUpdate.data!==void 0||this._pendingWorkerUpdate.diff!==void 0||this._pendingWorkerUpdate.updateCluster}_pixelsToTileUnits(u){return u*(o.a6/this.tileSize)}_getClusterMaxZoom(u){const h=u?Math.round(u):this.maxzoom-1;return Number.isInteger(u)||u===void 0||o.w(`Integer expected for option 'clusterMaxZoom': provided value "${u}" rounded to "${h}"`),h}load(){return o._(this,void 0,void 0,(function*(){yield this._updateWorkerData()}))}onAdd(u){this.map=u,this.load()}setData(u,h){this._data=typeof u=="string"?{url:u}:{geojson:u},this._pendingWorkerUpdate={data:u};const _=this._updateWorkerData();return h?_:this}updateData(u,h){this._pendingWorkerUpdate.diff=(function(S,M){if(!S)return M||{};if(!M)return S||{};const V=pt(S),W=pt(M);(function(re,ie){ie.removeAll&&(re.add.clear(),re.update.clear(),re.remove.clear(),ie.remove.clear());for(const he of ie.remove)re.add.delete(he),re.update.delete(he);for(const[he,ge]of ie.update){const we=re.update.get(he);we&&(ie.update.set(he,qe(we,ge)),re.update.delete(he))}})(V,W);const X={};
24if((V.removeAll||W.removeAll)&&(X.removeAll=!0),X.remove=new Set([...V.remove,...W.remove]),X.add=new Map([...V.add,...W.add]),X.update=new Map([...V.update,...W.update]),X.remove.size&&X.add.size)for(const re of X.add.keys())X.remove.delete(re);return(function(re){const ie={};return re.removeAll&&(ie.removeAll=re.removeAll),re.remove&&(ie.remove=Array.from(re.remove)),re.add&&(ie.add=Array.from(re.add.values())),re.update&&(ie.update=Array.from(re.update.values())),ie})(X)})(this._pendingWorkerUpdate.diff,u);const _=this._updateWorkerData();return h?_:this}getData(){return o._(this,void 0,void 0,(function*(){return this._data.url&&(yield this.once("data")),this._data.geojson?this._data.geojson:{type:"FeatureCollection",features:Array.from(this._data.updateable.values())}}))}getBounds(){return o._(this,void 0,void 0,(function*(){return sn(yield this.getData())}))}setClusterOptions(u){return this.workerOptions.geojsonVtOptions.cluster=u.cluster,u.clusterRadius!==void 0&&(this.workerOptions.geojsonVtOptions.clusterOptions.radius=this._pixelsToTileUnits(u.clusterRadius)),u.clusterMaxZoom!==void 0&&(this.workerOptions.geojsonVtOptions.clusterOptions.maxZoom=this._getClusterMaxZoom(u.clusterMa
24xZoom)),this._pendingWorkerUpdate.updateCluster=!0,this._updateWorkerData(),this}getClusterExpansionZoom(u){return this.actor.sendAsync({type:"GCEZ",data:{type:this.type,clusterId:u,source:this.id}})}getClusterChildren(u){return this.actor.sendAsync({type:"GCC",data:{type:this.type,clusterId:u,source:this.id}})}getClusterLeaves(u,h,_){return this.actor.sendAsync({type:"GCL",data:{type:this.type,source:this.id,clusterId:u,limit:h,offset:_}})}_updateWorkerData(){return o._(this,void 0,void 0,(function*(){if(this._isUpdatingWorker)return;if(!this._hasPendingWorkerUpdate())return void o.w(`No pending worker updates for GeoJSONSource ${this.id}.`);const{data:u,diff:h,updateCluster:_}=this._pendingWorkerUpdate,S=this._getLoadGeoJSONParameters(u,h,_);u!==void 0?this._pendingWorkerUpdate.data=void 0:h?this._pendingWorkerUpdate.diff=void 0:_&&(this._pendingWorkerUpdate.updateCluster=void 0),yield this._dispatchWorkerUpdate(S)}))}_getLoadGeoJSONParameters(u,h,_){return o._(this,void 0,void 0,(function*(){const S=o.e({type:this.type},this.workerOptions);return typeof u=="string"?(S.request=yield this.map._requestManager.transformRequest(x.resolveURL(u),"Source"),S.request.collectResourceTiming=this._collectResourceTiming,S):u!==void 0?(S.data=u,S):h?(S.dataDiff=h,S):_?(S.updateCluster=!0,S):void 0}))}_dispatchWorkerUpdate(u){return o._(this,void 0,void 0,(function*(){this._isUpdatingWorker=!0,this.fire(new o.n("dataloading",{dataType:"source"}));try{const h=yield u,_=yield this.actor.sendAsync({type:"LD",data:h});if(this._isUpdatingWorker=!1,this._removed||_.abandoned)return void this.fire(new o.n("dataabort",{dataType:"source"}));_.data&&(this._data={geojson:_.data});const S=this._applyDiffToSource(h.dataDiff),M=this._getShouldReloadTileOptions(S),V={dataType:"source"};this._applyResourceTiming(V,_),this.fire(new o.n("data",Object.assign(Object.assign({},V),{sourceDataType:"metadata"}))),this.fire(new o.n("data",Object.assign(Object.assign({},V),{sourceDataType:"content",shouldReloadTileOptions:M})))}catch(h){if(this._isUpdatingWorker=!1,this._removed)return void this.fire(new o.n("dataabort",{dataType:"source"}));this.fire(new o.l(o.d(h)))}finally{this._hasPendingWorkerUpdate()&&this._updateWorkerData()}}))}_applyResourceTiming(u,h){var _;if(!this._collectResourceTiming)return;const S=(_=h.resourceTiming)===null||_===void 0?void 0:_[this.id];if(!S)return;const M=S.slice(0);M?.length&&o.e(u,{resourceTiming:M})}_applyDiffToSource(u){if(!u)return;const h=typeof this.promoteId=="string"?this.promoteId:void 0;if(!this._data.url&&!this._data.updateable){const S=(function(M,V){const W=new Map;if(M==null||M.type==null)return W;if(M.type==="Feature"){const X=Ie(M,V);return X==null?void 0:(W.set(X,M),W)}if(M.type==="FeatureCollection"){const X=new Set;for(const re of M.features){const ie=Ie(re,V);if(ie==null||X.has(ie))return;X.add(ie),W.set(ie,re)}return W}})(this._data.geojson,h);if(!S)throw new Error(`GeoJSONSource "${this.id}": GeoJSON data is not compatible with updateData`);this._data={updateable:S}}if(!this._data.updateable)return;const _=(function(S,M,V){var W,X;const re=[];if(M.removeAll)S.clear();else if(M.remove)for(const ie of M.remove){const he=S.get(ie);he&&(re.push(he.geometry),S.delete(ie))}if(M.add)for(const ie of M.add){const he=Ie(ie,V);if(he==null)continue;const ge=S.get(he);ge&&re.push(ge.geometry),re.push(ie.geometry),S.set(he,ie)}if(M.update)for(const ie of M.update){const he=S.get(ie.id);if(!he)continue;const ge=!!ie.newGeometry,we=ie.removeAllProperties||((W=ie.removeProperties)===null||W===void 0?void 0:W.length)>0||((X=ie.addOrUpdateProperties)===null||X===void 0?void 0:X.length)>0;if(!ge&&!we)continue;re.push(he.geometry);const Le=Object.assign({},he);if(S.set(ie.id,Le),ge&&(re.push(ie.newGeometry),Le.geometry=ie.newGeometry),we){if(Le.properties=ie.removeAllProperties?{}:Object.assign({},Le.properties||{}),ie.removeProperties)for(const He of ie.removeProperties)delete Le.properties[He];if(ie.addOrUpdateProperties)for(const{key:He,value:Xe}of ie.addOrUpdateProperties)Le.properties[He]=Xe}}return re})(this._data.updateable,u,h);return u.removeAll||this._options.cluster?void 0:_}_getShouldReloadTileOptions(u){if(u)return{affectedBounds:u.filter(Boolean).map((h=>sn(h)))}}shouldReloadTile(u,{affectedBounds:h}){if(u.state==="loading")return!0;
vendor: 1,357 bytes, line 24
24if(u.state==="unloaded")return!1;const{buffer:_,extent:S}=this.workerOptions.geojsonVtOptions,M=(function({x:V,y:W,z:X},re=0){const ie=o.a4((V-re)/Math.pow(2,X)),he=o.a5((W+1+re)/Math.pow(2,X)),ge=o.a4((V+1+re)/Math.pow(2,X)),we=o.a5((W-re)/Math.pow(2,X));return new Ee([ie,he],[ge,we])})(u.tileID.canonical,_/S);for(const V of h)if(M.intersects(V))return!0;return!1}loaded(){return!this._isUpdatingWorker&&!this._hasPendingWorkerUpdate()}loadTile(u){return o._(this,void 0,void 0,(function*(){const h=u.actor?"RT":"LT";u.actor=this.actor;const _={type:this.type,uid:u.uid,tileID:u.tileID,zoom:u.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId,subdivisionGranularity:this.map.style.projection.subdivisionGranularity};u.abortController=new AbortController;const S=yield this.actor.sendAsync({type:h,data:_},u.abortController);delete u.abortController,u.unloadVectorData(),u.aborted||u.loadVectorData(S,this.map.painter,h==="RT")}))}abortTile(u){return o._(this,void 0,void 0,(function*(){u.abortController&&(u.abortController.abort(),delete u.abortController),u.aborted=!0}))}unloadTile(u){return o._(this,void 0,void 0,(function*(){u.unloadVectorData(),yield this.actor.sendAsync({type:"RMT",data:{uid:u.uid,type:this.t
24ype,source:this.id}})}))}onRemove(){this._removed=!0,this.actor.sendAsync({type:"RS",data:{type:this.type,source:this.id}})}serialize(){return o.e({},this._options,{type:this.type,data:this._data.updateable?{type:"FeatureCollection",features:Array.from(this._data.updateable.values())}:this._data.url||this._data.geojson})}hasTransition(){return!1}}class _t extends o.E{constructor(u,h,_,S){super(),this.flippedWindingOrder=!1,this.id=u,this.dispatcher=_,this.coordinates=h.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(S),this.options=h}load(u){return o._(this,void 0,void 0,(function*(){this._loaded=!1,this.fire(new o.n("dataloading",{dataType:"source"})),this.url=this.options.url,this._request=new AbortController;try{const h=yield O.getImage(yield this.map._requestManager.transformRequest(this.url,"Image"),this._request);this._request=null,this._loaded=!0,h?.data&&(this.image=h.data,u&&(this.coordinates=u),this._finishLoading())}catch(h){this._request=null,this._loaded=!0,o.$(h)||this.fire(new o.l(o.d(h)))}}))}loaded(){return this._loaded}updateImage(u){return u.url?(this._request&&(this._request.abort(),this._request=null),this.options.url=u.url,this.load(u.coordinates).finally((()=>this.texture=null)),this):this}_finishLoading(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new o.n("data",{dataType:"source",sourceDataType:"metadata"})))}onAdd(u){this.map=u,this.load()}onRemove(){this._request&&(this._request.abort(),this._request=null)}setCoordinates(u){this.coordinates=u;const h=u.map(o.a7.fromLngLat);var _;return this.tileID=(function(S){const M=o.a8.fromPoints(S),V=M.width(),W=M.height(),X=Math.max(V,W),re=Math.max(0,Math.floor(-Math.log(X)/Math.LN2)),ie=Math.pow(2,re);return new o.aa(re,Math.floor((M.minX+M.maxX)/2*ie),Math.floor((M.minY+M.maxY)/2*ie))})(h),this.terrainTileRanges=this._getOverlappingTileRanges(h),this.minzoom=this.maxzoom=this.tileID.z,this.tileCoords=h.map((S=>this.tileID.getTilePoint(S)._round())),this.flippedWindingOrder=((_=this.tileCoords)[1].x-_[0].x)*(_[2].y-_[0].y)-(_[1].y-_[0].y)*(_[2].x-_[0].x)<0,this.fire(new o.n("data",{dataType:"source",sourceDataType:"content"})),this}prepare(){if(Object.keys(this.tiles).length===0||!this.image)return;const u=this.map.painter.context,h=u.gl;this.texture||(this.texture=new o.T(u,this.image,h.RGBA),this.texture.bind(h.LINEAR,h.CLAMP_TO_EDGE));let _=!1;for(const S in this.tiles){const M=this.tiles[S];M.state!=="loaded"&&(M.state="loaded",M.texture=this.texture,_=!0)}_&&this.fire(new o.n("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))}loadTile(u){return o._(this,void 0,void 0,(function*(){var h;!((h=this.tileID)===null||h===void 0)&&h.equals(u.tileID.canonical)?(this.tiles[String(u.tileID.wrap)]=u,u.buckets={}):u.state="errored"}))}serialize(){return{type:"image",url:this.options.url,coordinates:this.coordinates}}hasTransition(){return!1}_getOverlappingTileRanges(u){const{minX:h,minY:_,maxX:S,maxY:M}=o.a8.fromPoints(u),V={};for(let W=0;W<=o.a9;W++){const X=Math.pow(2,W),re=Math.floor(h*X),ie=Math.floor(_*X),he=Math.floor(S*X),ge=Math.floor(M*X),we=(re%X+X)%X,Le=he%X,He=Math.floor(re/X),Xe=Math.floor(he/X);V[W]={minWrap:He,maxWrap:Xe,minTileXWrapped:we,maxTileXWrapped:Le,minTileY:ie,maxTileY:ge}}return V}}class vt extends _t{constructor(u,h,_,S){super(u,h,_,S),this._onPlayingHandler=()=>{var M;(M=this.map)===null||M===void 0||M.triggerRepaint()},this.roundZoom=!0,this.type="video",this.options=h}load(){return o._(this,void 0,void 0,(function*(){this._loaded=!1;const u=this.options;this.urls=[];for(const h of u.urls)this.urls.push((yield this.map._requestManager.transformRequest(h,"Source")).url);try{const h=yield o.ab(this.urls);if(this._loaded=!0,!h)return;this.video=h,this.video.loop=!0,this.video.addEventListener("playing",this._onPlayingHandler),this.map&&this.video.play(),this._finishLoading()}catch(h){this.fire(new o.l(o.d(h)))}}))}pause(){this.video&&this.video.pause()}play(){this.video&&this.video.play()}seek(u){if(this.video){const h=this.video.seekable;u<h.start(0)||u>h.end(0)?this.fire(new o.l(new o.ac(`sources.${this.id}`,null,`Playback for this video can be set only between the ${h.start(0)} and ${h.end(0)}-second mark.`))):this.video.currentTime=u}}getVideo(){return this.video}
vendor: 4,360 bytes, line 24
24onAdd(u){this.map||(this.map=u,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))}onRemove(){super.onRemove(),this.video&&(this.video.removeEventListener("playing",this._onPlayingHandler),this.video.pause())}prepare(){if(Object.keys(this.tiles).length===0||this.video.readyState<2)return;const u=this.map.painter.context,h=u.gl;this.texture?this.video.paused||(this.texture.bind(h.LINEAR,h.CLAMP_TO_EDGE),h.texSubImage2D(h.TEXTURE_2D,0,0,0,h.RGBA,h.UNSIGNED_BYTE,this.video)):(this.texture=new o.T(u,this.video,h.RGBA),this.texture.bind(h.LINEAR,h.CLAMP_TO_EDGE));let _=!1;for(const S in this.tiles){const M=this.tiles[S];M.state!=="loaded"&&(M.state="loaded",M.texture=this.texture,_=!0)}_&&this.fire(new o.n("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))}serialize(){return{type:"video",urls:this.urls,coordinates:this.coordinates}}hasTransition(){return this.video&&!this.video.paused}}class Jt extends _t{constructor(u,h,_,S){super(u,h,_,S),h.coordinates?Array.isArray(h.coordinates)&&h.coordinates.length===4&&!h.coordinates.some((M=>!Array.isArray(M)||M.length!==2||M.some((V=>typeof V!="number"))))||this.fire(new o.l(new o.ac(`sources.${u}`,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new o.l(new o.ac(`sources.${u}`,null,'missing required property "coordinates"'))),h.animate&&typeof h.animate!="boolean"&&this.fire(new o.l(new o.ac(`sources.${u}`,null,'optional "animate" property must be a boolean value'))),h.canvas?typeof h.canvas=="string"||h.canvas instanceof HTMLCanvasElement||this.fire(new o.l(new o.ac(`sources.${u}`,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new o.l(new o.ac(`sources.${u}`,null,'missing required property "canvas"'))),this.options=h,this.animate=h.animate===void 0||h.animate}load(){return o._(this,void 0,void 0,(function*(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof HTMLCanvasElement?this.options.canvas:document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new o.l(new Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading())}))}getCanvas(){return this.canvas}onAdd(u){this.map=u,this.load(),this.canvas&&this.animate&&this.play()}onRemove(){this.pause()}prepare(){let u=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,u=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,u=!0),this._hasInvalidDimensions()||Object.keys(this.tiles).length===0)return;const h=this.map.painter.context,_=h.gl;this.texture?(u||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):(this.texture=new o.T(h,this.canvas,_.RGBA,{premultiply:!0}),this.texture.bind(_.LINEAR,_.CLAMP_TO_EDGE));let S=!1;for(const M in this.tiles){const V=this.tiles[M];V.state!=="loaded"&&(V.state="loaded",V.texture=this.texture,S=!0)}S&&this.fire(new o.n("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))}serialize(){return{type:"canvas",animate:this.animate,canvas:this.options.canvas,coordinates:this.coordinates}}hasTransition(){return this._playing}_hasInvalidDimensions(){for(const u of[this.canvas.width,this.canvas.height])if(isNaN(u)||u<=0)return!0;return!1}}const an={},Sn=E=>{switch(E){case"geojson":return Yt;case"image":return _t;case"raster":return yt;case"raster-dem":return St;case"vector":return it;case"video":return vt;case"canvas":return Jt}return an[E]},On="RTLPluginLoaded";class ft extends o.E{constructor(){super(...arguments),this.status="unavailable",this.url=null,this.dispatcher=ct()}_syncState(u){return this.status=u,this.dispatcher.broadcast("SRPS",{pluginStatus:u,pluginURL:this.url}).catch((h=>{throw this.status="error",h}))}getRTLTextPluginStatus(){return this.status}clearRTLTextPlugin(){this.status="unavailable",this.url=null}setRTLTextPlugin(u){return o._(this,arguments,void 0,(function*(h,_=!1){if(this.url)throw new Error("setRTLTextPlugin cannot be called multiple times.");if(this.url=x.resolveURL(h),!this.url)throw new Error(`requested url ${h}
24 is invalid`);if(this.status==="unavailable"){if(!_)return this._requestImport();this.status="deferred",this._syncState(this.status)}else if(this.status==="requested")return this._requestImport()}))}_requestImport(){return o._(this,void 0,void 0,(function*(){yield this._syncState("loading"),this.status="loaded",this.fire(new o.n(On))}))}lazyLoad(){this.status==="unavailable"?this.status="requested":this.status==="deferred"&&this._requestImport()}}let Ge=null;function rt(){return Ge||(Ge=new ft),Ge}var $t,Gt;(function(E){E[E.Base=0]="Base",E[E.Parent=1]="Parent"})($t||($t={})),(function(E){E[E.Departing=0]="Departing",E[E.Incoming=1]="Incoming"})(Gt||(Gt={}));class Zt{constructor(u,h){this.timeAdded=0,this.fadeEndTime=0,this.fadeOpacity=1,this.tileID=u,this.uid=o.ad(),this.uses=0,this.tileSize=h,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.hasRTLText=!1,this.dependencies={},this.rtt=[],this.rttFingerprint={},this.expiredRequestCount=0,this.state="loading"}isRenderable(u){return this.hasData()&&(!this.fadeEndTime||this.fadeOpacity>0)&&(u||!this.holdingForSymbolFade())}setCrossFadeLogic({fadingRole:u,fadingDirection:h,fadingParentID:_,fadeEndTime:S}){this.resetFadeLogic(),this.fadingRole=u,this.fadingDirection=h,this.fadingParentID=_,this.fadeEndTime=S}setSelfFadeLogic(u){this.resetFadeLogic(),this.selfFading=!0,this.fadeEndTime=u}resetFadeLogic(){this.fadingRole=null,this.fadingDirection=null,this.fadingParentID=null,this.selfFading=!1,this.timeAdded=A(),this.fadeEndTime=0,this.fadeOpacity=1}wasRequested(){return this.state==="errored"||this.state==="loaded"||this.state==="reloading"}clearTextures(u){this.demTexture&&u.saveTileTexture(this.demTexture),this.demTexture=null}loadVectorData(u,h,_){if(u?.etagUnmodified!==!0)if(this.hasData()&&this.unloadVectorData(),this.state="loaded",u){u.featureIndex&&(this.latestFeatureIndex=u.featureIndex,u.rawTileData?(this.latestRawTileData=u.rawTileData,this.latestEncoding=u.encoding,this.latestFeatureIndex.rawTileData=u.rawTileData,this.latestFeatureIndex.encoding=u.encoding):this.latestRawTileData&&(this.latestFeatureIndex.rawTileData=this.latestRawTileData,this.latestFeatureIndex.encoding=this.latestEncoding)),this.collisionBoxArray=u.collisionBoxArray,this.buckets=(function(S,M){const V={};if(!M)return V;for(const W of S){const X=W.layerIds.map((re=>M.getLayer(re))).filter(Boolean);if(X.length!==0){W.layers=X,W.stateDependentLayerIds&&(W.stateDependentLayers=W.stateDependentLayerIds.map((re=>X.filter((ie=>ie.id===re))[0])));for(const re of X)V[re.id]=W}}return V})(u.buckets,h?.style),this.hasSymbolBuckets=!1;for(const S in this.buckets){const M=this.buckets[S];if(M instanceof o.af){if(this.hasSymbolBuckets=!0,!_)break;M.justReloaded=!0}}if(this.hasRTLText=!1,this.hasSymbolBuckets)for(const S in this.buckets){const M=this.buckets[S];if(M instanceof o.af&&M.hasRTLText){this.hasRTLText=!0,rt().lazyLoad();break}}this.queryPadding=0;for(const S in this.buckets){const M=this.buckets[S];this.queryPadding=Math.max(this.queryPadding,h.style.getLayer(S).queryRadius(M))}u.imageAtlas&&(this.imageAtlas=u.imageAtlas),u.glyphAtlasImage&&(this.glyphAtlasImage=u.glyphAtlasImage),this.dashPositions=u.dashPositions}else this.collisionBoxArray=new o.ae;else this.state="loaded"}unloadVectorData(){for(const u in this.buckets)this.buckets[u].destroy();this.buckets={},this.imageAtlasTexture&&this.imageAtlasTexture.destroy(),this.glyphAtlasTexture&&this.glyphAtlasTexture.destroy(),this.imageAtlas=null,this.dashPositions=null,this.latestFeatureIndex=null,this.state="unloaded"}getBucket(u){return this.buckets[u.id]}upload(u){for(const _ in this.buckets){const S=this.buckets[_];S.uploadPending()&&S.upload(u)}const h=u.gl;this.imageAtlas&&!this.imageAtlas.uploaded&&(this.imageAtlasTexture=new o.T(u,this.imageAtlas.image,h.RGBA),this.imageAtlas.uploaded=!0),this.glyphAtlasImage&&(this.glyphAtlasTexture=new o.T(u,this.glyphAtlasImage,h.ALPHA),this.glyphAtlasImage=null)}prepare(u){this.imageAtlas&&this.imageAtlas.patchUpdatedImages(u,this.imageAtlasTexture)}queryRenderedFeatures(u,h,_,S,M,V,W,X,re,ie,he){var ge;return!((ge=this.latestFeatureIndex)===null||ge===void 0)&&ge.rawTileData?this.latestFeatureIndex.query({queryGeometry:S,cameraQueryGeometry:M,scale:V,tileSize:this.tileSize,pixelPosMatrix:ie,transform:X,params:W,queryPadding:this.queryPadding*re,getElevation:he},u,h,_):{}}querySourceFeatures(u,h){const _=this.latestFeatureIndex;if(!_?.rawTileData)return;const S=_.loadVTLayers(),M=h?.sourceLayer?h.sourceLayer:"",V=S[o.ag]||S[M];if(!V)return;const W=o.ah(h?.filter,h?.globalState),{z:X,x:re,y:ie}=this.tileID.canonical,he={z:X,x:re,y:ie};for(let ge=0;ge<V.length;ge++){const we=V.feature(ge);
24if(W.needGeometry){const Xe=o.ai(we,!0);if(!W.filter(new o.J(this.tileID.overscaledZ),Xe,this.tileID.canonical))continue}else if(!W.filter(new o.J(this.tileID.overscaledZ),we))continue;const Le=_.getId(we,M),He=new o.aj(we,X,re,ie,Le);He.tile=he,u.push(He)}}hasData(){return this.state==="loaded"||this.state==="reloading"||this.state==="expired"}patternsLoaded(){return this.imageAtlas&&!!Object.keys(this.imageAtlas.patternPositions).length}setExpiryData(u){const h=this.expirationTime;if(u.cacheControl){const _=o.ak(u.cacheControl);_["max-age"]&&(this.expirationTime=Date.now()+1e3*_["max-age"])}else u.expires&&(this.expirationTime=new Date(u.expires).getTime());if(this.expirationTime){const _=Date.now();let S=!1;if(this.expirationTime>_)S=!1;else if(h)if(this.expirationTime<h)S=!0;else{const M=this.expirationTime-h;M?this.expirationTime=_+Math.max(M,3e4):S=!0}else S=!0;S?(this.expiredRequestCount++,this.state="expired"):this.expiredRequestCount=0}}getExpiryTimeout(){if(this.expirationTime)return this.expiredRequestCount?1e3*(1<<Math.min(this.expiredRequestCount-1,31)):Math.min(this.expirationTime-new Date().getTime(),Math.pow(2,31)-1)}setFeatureState(u,h){var _,S,M;if(!(!((_=this.latestFeatureIndex)===null||_===void 0)&&_.rawTileData)||Object.keys(u).length===0)return;const V=this.latestFeatureIndex.loadVTLayers();for(const W in this.buckets){if(!h.style.hasLayer(W))continue;const X=this.buckets[W],re=X.layers[0].sourceLayer||o.ag,ie=V[re],he=u[re];if(!ie||!he||Object.keys(he).length===0)continue;X.update(he,ie,((S=this.imageAtlas)===null||S===void 0?void 0:S.patternPositions)||{},this.dashPositions||{});const ge=(M=h?.style)===null||M===void 0?void 0:M.getLayer(W);ge&&(this.queryPadding=Math.max(this.queryPadding,ge.queryRadius(X)))}}holdingForSymbolFade(){return this.symbolFadeHoldUntil!==void 0}symbolFadeFinished(){return!this.symbolFadeHoldUntil||this.symbolFadeHoldUntil<A()}clearSymbolFadeHold(){this.symbolFadeHoldUntil=void 0}setSymbolHoldDuration(u){this.symbolFadeHoldUntil=A()+u}setDependencies(u,h){const _={};for(const S of h)_[S]=!0;this.dependencies[u]=_}hasDependency(u,h){for(const _ of u){const S=this.dependencies[_];if(S){for(const M of h)if(S[M])return!0}}return!1}}class rn{constructor(){this.state={},this.stateChanges={},this.deletedStates={},this.revision=0}updateState(u,h,_){var S,M,V,W,X;const re=String(h);if((W=this.stateChanges)[u]||(W[u]={}),(X=this.stateChanges[u])[re]||(X[re]={}),o.e(this.stateChanges[u][re],_),this.deletedStates[u]===null){this.deletedStates[u]={};for(const ie in this.state[u])ie!==re&&(this.deletedStates[u][ie]=null)}else if(((S=this.deletedStates[u])===null||S===void 0?void 0:S[re])===null){this.deletedStates[u][re]={};for(const ie in this.state[u][re])_[ie]||(this.deletedStates[u][re][ie]=null)}else for(const ie in _)((V=(M=this.deletedStates[u])===null||M===void 0?void 0:M[re])===null||V===void 0?void 0:V[ie])===null&&delete this.deletedStates[u][re][ie]}removeFeatureState(u,h,_){var S,M,V;if(this.deletedStates[u]===null)return;const W=String(h);if((M=this.deletedStates)[u]||(M[u]={}),_&&h!==void 0)this.deletedStates[u][W]!==null&&((V=this.deletedStates[u])[W]||(V[W]={}),this.deletedStates[u][W][_]=null);else if(h!==void 0)if(!((S=this.stateChanges[u])===null||S===void 0)&&S[W])for(_ in this.deletedStates[u][W]={},this.stateChanges[u][W])this.deletedStates[u][W][_]=null;else this.deletedStates[u][W]=null;else this.deletedStates[u]=null}getState(u,h){const _=String(h),S=o.e({},(this.state[u]||{})[_],(this.stateChanges[u]||{})[_]);if(this.deletedStates[u]===null)return{};if(this.deletedStates[u]){const M=this.deletedStates[u][h];if(M===null)return{};for(const V in M)delete S[V]}return S}initializeTileState(u,h){u.setFeatureState(this.state,h)}coalesceChanges(u,h){var _,S,M;const V={};for(const W in this.stateChanges){(_=this.state)[W]||(_[W]={});const X={};for(const re in this.stateChanges[W])(S=this.state[W])[re]||(S[re]={}),o.e(this.state[W][re],this.stateChanges[W][re]),X[re]=this.state[W][re];V[W]=X}for(const W in this.deletedStates){(M=this.state)[W]||(M[W]={});const X={};if(this.deletedStates[W]===null)for(const re in this.state[W])X[re]={},this.state[W][re]={};else for(const re in this.deletedStates[W]){if(this.deletedStates[W][re]===null)this.state[W][re]={};else for(const ie of Object.keys(this.deletedStates[W][re]))delete this.state[W][re][ie];X[re]=this.state[W][re]}V[W]||(V[W]={}),o.e(V[W],X)}this.stateChanges={},this.deletedStates={},Object.keys(V).length!==0&&(this.revision++,u.setFeatureState(V,h))}}const Dn=89.25;function tr(E,u){const h=o.al(u.lat,-o.am,o.am);return new o.P(o.Z(u.lng)*E,o.Y(h)*E)}function Nr(E,u){return new o.a7(u.x/E,u.y/E).toLngLat()}function $r(E){return E.cameraToCenterDistance*Math.min(.85*Math.tan(o.an(90-E.pitch)),Math.tan(o.an(Dn-E.pitch)))}function pi(E,u){const h=E.canonical,_=u/o.ao(h.z),S=h.x+Math.pow(2,h.z)*E.wrap,M=o.ap(new Float64Array(16));return o.Q(M,M,[S*_,h.y*_,0]),o.S(M,M,[_/o.a6,_/o.a6,1]),M}function mi(E,u,h,_,S){const M=o.a7.fromLngLat(E,u),V=S*o.aq(1,E.lat),{x:W,y:X,z:re}=va(h,_);return new o.a7(M.x+V*-W,M.y+V*-X,M.z+V*-re)}function va(E,u){const h=o.an(E),_=o.an(u),S=Math.cos(-h),M=Math.sin(h);return{x:M*Math.sin(_),y:-M*Math.cos(_),z:S}}function Ft(E,u,h){const _=u.intersectsFrustum(E);if(!h||_===0)return _;const S=u.intersectsPlane(h);return S===0?0:_===2&&S===2?2:1}function xc(E,u,h){let _=0;const S=(h-u)/10;for(let M=0;M<10;M++)_+=S*Math.pow(Math.cos(u+(M+.5)/10*(h-u)),E);return _}function wc(E,u){return function(h,_,S,M,V){const W=2*((E-1)/o.ar(Math.cos(o.an(Dn-V))/Math.cos(o.an(Dn)))-1),X=Math.acos(S/M),re=2*xc(W-1,0,o.an(V/2)),ie=Math.min(o.an(Dn),X+o.an(V/2)),he
24=xc(W-1,Math.min(ie,X-o.an(V/2)),ie),ge=Math.atan(_/S),we=Math.hypot(_,S);let Le=h;return Le+=o.ar(M/we/Math.max(.5,Math.cos(o.an(V/2)))),Le+=W*o.ar(Math.cos(ge))/2,Le-=o.ar(Math.max(1,he/re/u))/2,Le}}const Mr=wc(9.314,3);function _a(E,u){const h=(u.roundZoom?Math.round:Math.floor)(E.zoom+o.ar(E.tileSize/u.tileSize));return Math.max(0,h)}function Sc(E,u){const h=E.getCameraFrustum(),_=E.getClippingPlane(),S=E.screenPointToMercatorCoordinate(E.getCameraPoint()),M=o.a7.fromLngLat(E.center,E.elevation);S.z=M.z+Math.cos(E.pitchInRadians)*E.cameraToCenterDistance/E.worldSize;const V=E.getCoveringTilesDetailsProvider(),W=V.allowVariableZoom(E,u),X=_a(E,u),re=u.minzoom||0,ie=u.maxzoom!==void 0?u.maxzoom:E.maxZoom,he=Math.min(Math.max(0,X),ie),ge=Math.pow(2,he),we=[ge*S.x,ge*S.y,0],Le=[ge*M.x,ge*M.y,0],He=Math.hypot(M.x-S.x,M.y-S.y),Xe=Math.abs(M.z-S.z),Ze=Math.hypot(He,Xe),et=Ke=>({zoom:0,x:0,y:0,wrap:Ke,fullyVisible:!1}),lt=[],Je=[];if(E.renderWorldCopies&&V.allowWorldCopies())for(let Ke=1;Ke<=3;Ke++)lt.push(et(-Ke)),lt.push(et(Ke));for(lt.push(et(0));lt.length>0;){const Ke=lt.pop(),ot=Ke.x,tt=Ke.y;let wt=Ke.fullyVisible;const Rt={x:ot,y:tt,z:Ke.zoom},Vt=V.getTileBoundingVolume(Rt,Ke.wrap,E.elevation,u);if(!wt){const fn=Ft(h,Vt,_);if(fn===0)continue;wt=fn===2}const Qt=V.distanceToTile2d(S.x,S.y,Rt,Vt);let Xt=X;W&&(Xt=(u.calculateTileZoom||Mr)(E.zoom+o.ar(E.tileSize/u.tileSize),Qt,Xe,Ze,E.fov)),Xt=(u.roundZoom?Math.round:Math.floor)(Xt),Xt=Math.max(0,Xt);const Tn=Math.min(Xt,ie);if(Ke.wrap=V.getWrap(M,Rt,Ke.wrap),Ke.zoom>=Tn){if(Ke.zoom<re)continue;const fn=he-Ke.zoom,Wt=we[0]-.5-(ot<<fn),gn=we[1]-.5-(tt<<fn),Mn=u.reparseOverscaled?Math.max(Ke.zoom,Xt):Ke.zoom;Je.push({tileID:new o.a3(Ke.zoom===ie?Mn:Ke.zoom,Ke.wrap,Ke.zoom,ot,tt),distanceSq:o.as([Le[0]-.5-ot,Le[1]-.5-tt]),tileDistanceToCamera:Math.sqrt(Wt*Wt+gn*gn)})}else for(let fn=0;fn<4;fn++)lt.push({zoom:Ke.zoom+1,x:(ot<<1)+fn%2,y:(tt<<1)+(fn>>1),wrap:Ke.wrap,fullyVisible:wt})}return Je.sort(((Ke,ot)=>Ke.distanceSq-ot.distanceSq)).map((Ke=>Ke.tileID))}const y1=o.a8.fromPoints([new o.P(0,0),new o.P(o.a6,o.a6)]);function Mp(E){return E==="raster"||E==="image"||E==="video"}function sb(E,u,h,_,S,M,V){if(!u.hasData())return!1;const{tileID:W,fadingRole:X,fadingDirection:re,fadingParentID:ie}=u;if(X===$t.Base&&re===Gt.Incoming&&ie)return h[ie.key]=ie,!0;const he=Math.max(W.overscaledZ-S,M);for(let ge=W.overscaledZ-1;ge>=he;ge--){const we=W.scaledTo(ge),Le=E.getLoadedTile(we);if(Le)return u.setCrossFadeLogic({fadingRole:$t.Base,fadingDirection:Gt.Incoming,fadingParentID:Le.tileID,fadeEndTime:_+V}),Le.setCrossFadeLogic({fadingRole:$t.Parent,fadingDirection:Gt.Departing,fadeEndTime:_+V}),h[we.key]=we,!0}return!1}function Id(E,u,h,_,S,M){if(!u.hasData())return!1;const V=u.tileID.children(S);let W=Ug(E,u,V,h,_,S,M);if(W)return!0;for(const X of V)Ug(E,u,X.children(S),h,_,S,M)&&(W=!0);return W}function Ug(E,u,h,_,S,M,V){if(h[0].overscaledZ>=M)return!1;let W=!1;for(const X of h){const re=E.getLoadedTile(X);if(!re)continue;const{fadingRole:ie,fadingDirection:he,fadingParentID:ge}=re;ie===$t.Base&&he===Gt.Departing&&ge||(re.setCrossFadeLogic({fadingRole:$t.Base,fadingDirection:Gt.Departing,fadingParentID:u.tileID,fadeEndTime:S+V}),u.setCrossFadeLogic({fadingRole:$t.Parent,fadingDirection:Gt.Incoming,fadeEndTime:S+V})),_[X.key]=X,W=!0}return W}function v1(E,u,h,_){const S=E.tileID;return!!E.selfFading||!E.hasData()&&!!u.has(S)&&(E.setSelfFadeLogic(h+_),!0)}function un(E,u){var h;E.needsHillshadePrepare=!0,E.needsTerrainPrepare=!0;let _=u.tileID.canonical.x-E.tileID.canonical.x;const S=u.tileID.canonical.y-E.tileID.canonical.y,M=Math.pow(2,E.tileID.canonical.z),V=u.tileID.key;_===0&&S===0||Math.abs(S)>1||(Math.abs(_)>1&&(Math.abs(_+M)===1?_+=M:Math.abs(_-M)===1&&(_-=M)),u.dem&&E.dem&&(E.dem.backfillBorder(u.dem,_,S),!((h=E.neighboringTiles)===null||h===void 0)&&h[V]&&(E.neighboringTiles[V].backfilled=!0)))}class Cc{constructor(){this._tiles={}}handleWrapJump(u){const h={};for(const _ in this._tiles){const S=this._tiles[_];S.tileID=S.tileID.unwrapTo(S.tileID.wrap+u),h[S.tileID.key]=S}this._tiles=h}setFeatureState(u,h){for(const _ in this._tiles)this._tiles[_].setFeatureState(u,h)}getAllTiles(){return Object.values(this._tiles)}getAllIds(u=!1){return u?Object.values(this._tiles).map((h=>h.tileID)).sort(o.au).map((h=>h.key)):Object.keys(this._tiles)}getTileById(u){return this._tiles[u]}setTile(u,h){this._tiles[u]=h}deleteTileById(u){delete this._tiles[u]}getLoadedTile(u){const h=this.getTileById(u.key);return h?.hasData()?h:null}isIdRenderable(u,h=!1){var _;return(_=this.getTileById(u))===null||_===void 0?void 0:_.isRenderable(h)}getRenderableIds(u=0,h){const _=[];for(const S of this.getAllIds())this.isIdRenderable(S,h)&&_.push(this.getTileById(S));return h?_.sort(((S,M)=>{const V=S.tileID,W=M.tileID,X=new o.P(V.canonical.x,V.canonical.y)._rotate(-u),re=ne
24w o.P(W.canonical.x,W.canonical.y)._rotate(-u);return V.overscaledZ-W.overscaledZ||re.y-X.y||re.x-X.x})).map((S=>S.tileID.key)):_.map((S=>S.tileID)).sort(o.au).map((S=>S.key))}}class Ia extends o.E{constructor(u,h,_){super(),this.id=u,this.dispatcher=_,this.on("data",(S=>{this._dataHandler(S)})),this.on("dataloading",(()=>{this._sourceErrored=!1})),this.on("error",(()=>{this._sourceErrored=this._source.loaded()})),this._source=((S,M,V,W)=>{const X=new(Sn(M.type))(S,M,V,W);if(X.id!==S)throw new Error(`Expected Source id to be ${S} instead of ${X.id}`);return X})(u,h,_,this),this._inViewTiles=new Cc,this._outOfViewCache=new o.av(0,(S=>this._unloadTile(S))),this._timers={},this._maxTileCacheSize=null,this._maxTileCacheZoomLevels=null,this._rasterFadeDuration=0,this._maxFadingAncestorLevels=5,this._state=new rn,this._didEmitContent=!1,this._updated=!1}onAdd(u){var h;this.map=u,this._maxTileCacheSize=u?u._maxTileCacheSize:null,this._maxTileCacheZoomLevels=u?u._maxTileCacheZoomLevels:null,!((h=this._source)===null||h===void 0)&&h.onAdd&&this._source.onAdd(u)}onRemove(u){var h;for(const _ of this._inViewTiles.getAllTiles())_.unloadVectorData();this.clearTiles(),!((h=this._source)===null||h===void 0)&&h.onRemove&&this._source.onRemove(u),this._inViewTiles=new Cc}loaded(){if(this._sourceErrored)return!0;if(!this._sourceLoaded||!this._source.loaded())return!1;if(!(this.used===void 0&&this.usedForTerrain===void 0||this.used||this.usedForTerrain))return!0;if(!this._updated)return!1;for(const u of this._inViewTiles.getAllTiles())if(u.state!=="loaded"&&u.state!=="errored")return!1;return!0}getSource(){return this._source}getState(){return this._state}pause(){this._paused=!0}resume(){if(!this._paused)return;const u=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,u&&this.reload(),this.transform&&this.update(this.transform,this.terrain)}_loadTile(u,h,_){return o._(this,void 0,void 0,(function*(){try{const S=yield this._source.loadTile(u);this._tileLoaded(u,h,_,S)}catch(S){u.state="errored",S.status!==404?this._source.fire(new o.l(o.d(S),{tile:u})):this.update(this.transform,this.terrain)}}))}_unloadTile(u){this._source.unloadTile&&this._source.unloadTile(u)}_abortTile(u){this._source.abortTile&&this._source.abortTile(u),this._source.fire(new o.n("dataabort",{tile:u,coord:u.tileID,dataType:"source"}))}serialize(){return this._source.serialize()}prepare(u){this._source.prepare&&this._source.prepare(),this._state.coalesceChanges(this._inViewTiles,this.map?this.map.painter:null);for(const h of this._inViewTiles.getAllTiles())h.upload(u),h.prepare(this.map.style.imageManager)}getIds(){return this._inViewTiles.getAllIds(!0)}getRenderableIds(u){var h;return this._inViewTiles.getRenderableIds((h=this.transform)===null||h===void 0?void 0:h.bearingInRadians,u)}hasRenderableParent(u){const h=u.overscaledZ-1;if(h>=this._source.minzoom){const _=this.getLoadedTile(u.scaledTo(h));if(_)return this._inViewTiles.isIdRenderable(_.tileID.key)}return!1}reload(u,h=void 0){if(this._paused)this._shouldReloadOnResume=!0;else{this._outOfViewCache.reset();for(const _ of this._inViewTiles.getAllIds()){const S=this._inViewTiles.getTileById(_);h&&!this._source.shouldReloadTile(S,h)||(u?this._reloadTile(_,"expired"):S.state!=="errored"&&this._reloadTile(_,"reloading"))}}}_reloadTile(u,h){return o._(this,void 0,void 0,(function*(){const _=this._inViewTiles.getTileById(u);_&&(_.state!=="loading"&&(_.state=h),yield this._loadTile(_,u,h))}))}_tileLoaded(u,h,_,S){u.timeAdded=A(),u.selfFading&&(u.fadeEndTime=u.timeAdded+this._rasterFadeDuration),_==="expired"&&(u.refreshedUponExpiration=!0),this._setTileReloadTimer(h,u),S?.unmodified||(this.getSource().type==="raster-dem"&&u.dem&&(function(M,V){var W,X,re;const ie=V.getRenderableIds();for(const he of ie){if(!(!((W=M.neighboringTiles)===null||W===void 0)&&W[he]))continue;const ge=V.getTileById(he);M.neighboringTiles[he].backfilled||un(M,ge),!((re=(X=ge.neighboringTiles)===null||X===void 0?void 0:X[M.tileID.key])===null||re===void 0)&&re.backfilled||un(ge,M)}})(u,this._inViewTiles),this._state.initializeTileState(u,this.map?this.map.painter:null),u.aborted||this._source.fire(new o.n("data",{dataType:"source",tile:u,coord:u.tileID})))}getTile(u){return this.getTileByID(u.key)}getTileByID(u){return this._inViewTiles.getTileById(u)}_retainLoadedChildren(u,h){const _=this._getLoadedDescendents(h),S=new Set;for(const M of h){const V=_[M.key];if(!V?.length){S.add(M);continue}const W=M.overscaledZ+Ia.maxOverzooming,X=V.filter((he=>he.tileID.overscaledZ<=W));if(!X.length){S.add(M);continue}const re=Math.min(...X.map((he=>
24he.tileID.overscaledZ))),ie=X.filter((he=>he.tileID.overscaledZ===re)).map((he=>he.tileID));for(const he of ie)u[he.key]=he;this._areDescendentsComplete(ie,re,M.overscaledZ)||S.add(M)}return S}_getLoadedDescendents(u){var h;const _={};for(const S of this._inViewTiles.getAllTiles().filter((M=>M.hasData())))for(const M of u)S.tileID.isChildOf(M)&&(_[h=M.key]||(_[h]=[]),_[M.key].push(S));return _}_areDescendentsComplete(u,h,_){return u.length===1&&u[0].isOverscaled()?u[0].overscaledZ===h:Math.pow(4,h-_)===u.length}getLoadedTile(u){return this._inViewTiles.getLoadedTile(u)}updateCacheSize(u){const h=Math.ceil(u.width/this._source.tileSize)+1,_=Math.ceil(u.height/this._source.tileSize)+1,S=Math.floor(h*_*(this._maxTileCacheZoomLevels===null?o.c.MAX_TILE_CACHE_ZOOM_LEVELS:this._maxTileCacheZoomLevels)),M=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,S):S;this._outOfViewCache.setMaxSize(M)}handleWrapJump(u){const h=Math.round((u-(this._prevLng===void 0?u:this._prevLng))/360);this._prevLng=u,h&&(this._inViewTiles.handleWrapJump(h),this._resetTileReloadTimers())}update(u,h){if(!this._sourceLoaded||this._paused)return;let _;this.transform=u,this.terrain=h,this.updateCacheSize(u),this.handleWrapJump(this.transform.center.lng),this.used||this.usedForTerrain?this._source.tileID?_=u.getVisibleUnwrappedCoordinates(this._source.tileID).map((X=>new o.a3(X.canonical.z,X.wrap,X.canonical.z,X.canonical.x,X.canonical.y))):(_=Sc(u,{tileSize:this.usedForTerrain?this.tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.type==="vector"&&this.map._zoomLevelsToOverscale!==void 0?u.maxZoom-this.map._zoomLevelsToOverscale:this._source.maxzoom,roundZoom:!this.usedForTerrain&&this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled,terrain:h,calculateTileZoom:this._source.calculateTileZoom}),this._source.hasTile&&(_=_.filter((X=>this._source.hasTile(X))))):_=[],this.usedForTerrain&&(_=this._addTerrainIdealTiles(_));const S=_.length===0&&!this._updated&&this._didEmitContent;this._updated=!0,S&&this.fire(new o.n("data",{sourceDataType:"idle",dataType:"source",sourceId:this.id}));const M=_a(u,this._source),V=this._updateRetainedTiles(_,M),W=Mp(this._source.type);W&&this._rasterFadeDuration>0&&!h&&(function(X,re,ie,he,ge,we,Le){const He=A(),Xe=o.at(re);for(const Ze of re){const et=X.getTileById(Ze.key);et.fadingDirection!==Gt.Departing&&et.fadeOpacity!==0||et.resetFadeLogic(),sb(X,et,ie,He,he,ge,Le)||Id(X,et,ie,He,we,Le)||v1(et,Xe,He,Le)||et.resetFadeLogic()}})(this._inViewTiles,_,V,this._maxFadingAncestorLevels,this._source.minzoom,this._source.maxzoom,this._rasterFadeDuration),W?this._cleanUpRasterTiles(V):this._cleanUpVectorTiles(V)}_cleanUpRasterTiles(u){for(const h of this._inViewTiles.getAllIds())u[h]||this._removeTile(h)}_cleanUpVectorTiles(u){for(const h of this._inViewTiles.getAllIds()){const _=this._inViewTiles.getTileById(h);u[h]?_.clearSymbolFadeHold():_.hasSymbolBuckets?_.holdingForSymbolFade()?_.symbolFadeFinished()&&this._removeTile(h):_.setSymbolHoldDuration(this.map._fadeDuration):this._removeTile(h)}}_addTerrainIdealTiles(u){const h=[];for(const _ of u)if(_.canonical.z>this._source.minzoom){const S=_.scaledTo(_.canonical.z-1);h.push(S);const M=_.scaledTo(Math.max(this._source.minzoom,Math.min(_.canonical.z,5)));h.push(M)}return u.concat(h)}releaseSymbolFadeTiles(){for(const u of this._inViewTiles.getAllIds())this._inViewTiles.getTileById(u).holdingForSymbolFade()&&this._removeTile(u)}_updateRetainedTiles(u,h){var _;const S=new Set;for(const re of u)this._addTile(re).hasData()||S.add(re);const M=u.reduce(((re,ie)=>(re[ie.key]=ie,re)),{}),V=this._retainLoadedChildren(M,S),W={},X=Math.max(h-Ia.maxUnderzooming,this._source.minzoom);for(const re of V){let ie=this._inViewTiles.getTileById(re.key),he=ie?.wasRequested();for(let ge=re.overscaledZ-1;ge>=X;--ge){const we=re.scaledTo(ge);if(W[we.key])break;if(W[we.key]=!0,ie=this.getTile(we),!ie&&he&&(ie=this._addTile(we)),ie){const Le=ie.hasData();if((Le||!(!((_=this.map)===null||_===void 0)&&_.cancelPendingTileRequestsWhileZooming)||he)&&(M[we.key]=we),he=ie.wasRequested(),Le)break}}}return M}_addTile(u){let h=this._inViewTiles.getTileById(u.key);if(h)return h;h=this._outOfViewCache.getAndRemove(u),h&&(h.resetFadeLogic(),this._setTileReloadTimer(u.key,h),h.tileID=u,this._state.initializeTileState(h,this.map?this.map.painter:null));const _=h;return h||(h=new Zt(u,this._source.tileSize*u.overscaleFactor()),this._loadTile(h,u.key,h.state)),h.uses++,this._inViewTiles.setTile(u.key,h),_||this._source.fire(new o.n("dataloading",{tile:h,coord:h.tileID,dataType:"source"})),h}_setTileReloadTimer(u,h){this._clearTileReloadTimer(u);const _=h.getExpiryTimeout();_&&(this._timers[u]=setTimeout((()=>{this._reloadTile(u,"expired"),delete this._timers[u]}),_))}_clearTileReloadTimer(u){const h=this._timers[u];h&&(clearTimeout(h),delete this._timers[u])}_resetTileReloadTimers(){for(const u in this._timers)clearTimeout(this._timers[u]),delete this._timers[u];for(const u of this._inViewTiles.getAllIds()){const h=this._inViewTiles.getTileById(u);this._setTileReloadTimer(u,h)}}refreshTiles(u){for(const h of this._inViewTiles.getAllIds()){const _=this._inViewTiles.getTileById(h);(this._inViewTiles.isIdRenderable(h)||_.state=="errored")&&u.some((S=>S.equals(_.tileID.canonical)))&&this._reloadTile(h,"expired")}}_removeTile(u){const h=this._inViewTiles.getTileById(u);h&&(h.uses--,this._inViewTiles.deleteTileById(u),this._clearTileReloadTimer(u),h.uses>0||(h.hasData()&&h.state!=="reloading"?this._outOfViewCache.add(h.tileID,h,h.getExpiryTimeout()):(h.aborted=!0,this._abortTile(h),this._unloadTile(h))))}_dataHandler(u){u.dataType==="source"&&(u.sourceDataType!=="metadata"?u.sourceDataType==="content"&&this._sourceLoaded&&!this._paused&&(this.reload(u.sourceDataChanged,u.shouldReloadTileOptions),this.transform&&this.update(this.transform,this.terrain),this._didEmitContent=!0):this._sourceLoaded=!0)}clearTiles(){this._shouldReloadOnResume=!1,this._paused=!1;for(const u of this._inViewTiles.getAllIds())this._removeTile(u);this._outOfViewCache.reset()}tilesIn(u,h,_){const S=[],M=this.transform;if(!M)return S;const V=M.getCoveringTilesDetailsProvider().allowWorldCopies(),W=_?M.getCameraQueryGeometry(u):u,X=we=>M.screenPointToMercatorCoordinate(we,this.terrain),re=this.transformBbox(u,X,!V),ie=this.transformBbox(W,X,!V),he=this.getIds(),ge=o.a8.fromPoints(ie);for(const we of he){const Le=this._inViewTiles.getTileById(we);if(Le.holdingForSymbolFade())continue;const He=V?[Le.tileID]:[Le.tileID.unwrapTo(-1),Le.tileID.unwrapTo(0)],Xe=Math.pow(2,M.zoom-Le.tileID.overscaledZ
24),Ze=h*Le.queryPadding*o.a6/Le.tileSize/Xe;for(const et of He){const lt=ge.map((Je=>et.getTilePoint(new o.a7(Je.x,Je.y))));if(lt.expandBy(Ze),lt.intersects(y1)){const Je=re.map((ot=>et.getTilePoint(ot))),Ke=ie.map((ot=>et.getTilePoint(ot)));S.push({tile:Le,tileID:V?et:et.unwrapTo(0),queryGeometry:Je,cameraQueryGeometry:Ke,scale:Xe})}}}return S}transformBbox(u,h,_){let S=u.map(h);if(_){const M=o.a8.fromPoints(u);M.shrinkBy(.001*Math.min(M.width(),M.height()));const V=M.map(h);o.a8.fromPoints(S).covers(V)||(S=S.map((W=>W.x>.5?new o.a7(W.x-1,W.y,W.z):W)))}return S}getVisibleCoordinates(u){const h=this.getRenderableIds(u).map((_=>this._inViewTiles.getTileById(_).tileID));return this.transform&&this.transform.populateCache(h),h}hasTransition(){return!!this._source.hasTransition()||Mp(this._source.type)&&(function(u,h){if(h<=0)return!1;const _=A();for(const S of u.getAllTiles())if(S.fadeEndTime>=_)return!0;return!1})(this._inViewTiles,this._rasterFadeDuration)}setRasterFadeDuration(u){this._rasterFadeDuration=u}setFeatureState(u,h,_){u||(u=o.ag),this._state.updateState(u,h,_)}removeFeatureState(u,h,_){u||(u=o.ag),this._state.removeFeatureState(u,h,_)}getFeatureState(u,h){return u||(u=o.ag),this._state.getState(u,h)}setDependencies(u,h,_){const S=this._inViewTiles.getTileById(u);S&&S.setDependencies(h,_)}reloadTilesForDependencies(u,h){for(const _ of this._inViewTiles.getAllIds())this._inViewTiles.getTileById(_).hasDependency(u,h)&&this._reloadTile(_,"reloading");this._outOfViewCache.filter((_=>!_.hasDependency(u,h)))}areTilesLoaded(){for(const u of this._inViewTiles.getAllTiles())if(u.state!=="loaded"&&u.state!=="errored")return!1;return!0}}Ia.maxUnderzooming=10,Ia.maxOverzooming=3;class Ap{constructor(u,h){this.reset(u,h)}reset(u,h){this.points=u||[],this._distances=[0];for(let _=1;_<this.points.length;_++)this._distances[_]=this._distances[_-1]+this.points[_].dist(this.points[_-1]);this.length=this._distances[this._distances.length-1],this.padding=Math.min(h||0,.5*this.length),this.paddedLength=this.length-2*this.padding}lerp(u){if(this.points.length===1)return this.points[0];u=o.al(u,0,1);let h=1,_=this._distances[h];const S=u*this.paddedLength+this.padding;for(;_<S&&h<this._distances.length;)_=this._distances[++h];const M=h-1,V=this._distances[M],W=_-V,X=W>0?(S-V)/W:0;return this.points[M].mult(1-X).add(this.points[h].mult(X))}}function ku(E,u){let h=!0;return E==="always"||E!=="never"&&u!=="never"||(h=!1),h}class mn{constructor(u,h,_){const S=this.boxCells=[],M=this.circleCells=[];this.xCellCount=Math.ceil(u/_),this.yCellCount=Math.ceil(h/_);for(let V=0;V<this.xCellCount*this.yCellCount;V++)S.push([]),M.push([]);this.circleKeys=[],this.boxKeys=[],this.bboxes=[],this.circles=[],this.width=u,this.height=h,this.xScale=this.xCellCount/u,this.yScale=this.yCellCount/h,this.boxUid=0,this.circleUid=0}keysLength(){return this.boxKeys.length+this.circleKeys.length}insert(u,h,_,S,M){this._forEachCell(h,_,S,M,this._insertBoxCell,this.boxUid++),this.boxKeys.push(u),this.bboxes.push(h),this.bboxes.push(_),this.bboxes.push(S),this.bboxes.push(M)}insertCircle(u,h,_,S){this._forEachCell(h-S,_-S,h+S,_+S,this._insertCircleCell,this.circleUid++),this.circleKeys.push(u),this.circles.push(h),this.circles.push(_),this.circles.push(S)}_insertBoxCell(u,h,_,S,M,V){this.boxCells[M].push(V)}_insertCircleCell(u,h,_,S,M,V){this.circleCells[M].push(V)}_query(u,h,_,S,M,V,W){if(_<0||u>this.width||S<0||h>this.height)return[];const X=[];if(u<=0&&h<=0&&this.width<=_&&this.height<=S){if(M)return[{key:null,x1:u,y1:h,x2:_,y2:S}];for(let re=0;re<this.boxKeys.length;re++)X.push({key:this.boxKeys[re],x1:this.bboxes[4*re],y1:this.bboxes[4*re+1],x2:this.bboxes[4*re+2],y2:this.bboxes[4*re+3]});for(let re=0;re<this.circleKeys.length;re++){const ie=this.circles[3*re],he=this.circles[3*re+1],ge=this.circles[3*re+2];X.push({key:this.circleKeys[re],x1:ie-ge,y1:he-ge,x2:ie+ge,y2:he+ge})}}else this._forEachCell(u,h,_,S,this._queryCell,X,{hitTest:M,overlapMode:V,seenUids:{box:{},circle:{}}},W);return X}query(u,h,_,S){return this._query(u,h,_,S,!1,null)}hitTest(u,h,_,S,M,V){return this._query(u,h,_,S,!0,M,V).length>0}hitTestCircle(u,h,_,S,M){const V=u-_,W=u+_,X=h-_,re=h+_;if(W<0||V>this.width||re<0||X>this.height)return!1;const ie=[];
vendor: 42,602 bytes, lines 24-51
24return this._forEachCell(V,X,W,re,this._queryCellCircle,ie,{hitTest:!0,overlapMode:S,circle:{x:u,y:h,radius:_},seenUids:{box:{},circle:{}}},M),ie.length>0}_queryCell(u,h,_,S,M,V,W,X){const{seenUids:re,hitTest:ie,overlapMode:he}=W,ge=this.boxCells[M],we=1e-6;if(ge!==null){const He=this.bboxes;for(const Xe of ge)if(!re.box[Xe]){re.box[Xe]=!0;const Ze=4*Xe,et=this.boxKeys[Xe];if(u<=He[Ze+2]+we&&h<=He[Ze+3]+we&&_>=He[Ze+0]-we&&S>=He[Ze+1]-we&&(!X||X(et))&&(!ie||!ku(he,et.overlapMode))&&(V.push({key:et,x1:He[Ze],y1:He[Ze+1],x2:He[Ze+2],y2:He[Ze+3]}),ie))return!0}}const Le=this.circleCells[M];if(Le!==null){const He=this.circles;for(const Xe of Le)if(!re.circle[Xe]){re.circle[Xe]=!0;const Ze=3*Xe,et=this.circleKeys[Xe];if(this._circleAndRectCollide(He[Ze],He[Ze+1],He[Ze+2],u,h,_,S)&&(!X||X(et))&&(!ie||!ku(he,et.overlapMode))){const lt=He[Ze],Je=He[Ze+1],Ke=He[Ze+2];if(V.push({key:et,x1:lt-Ke,y1:Je-Ke,x2:lt+Ke,y2:Je+Ke}),ie)return!0}}}return!1}_queryCellCircle(u,h,_,S,M,V,W,X){const{circle:re,seenUids:ie,overlapMode:he}=W,ge=this.boxCells[M];if(ge!==null){const Le=this.bboxes;for(const He of ge)if(!ie.box[He]){ie.box[He]=!0;const Xe=4*He,Ze=this.boxKeys[He];if(this._circleAndRectCollide(re.x,re.y,re.radius,Le[Xe+0],Le[Xe+1],Le[Xe+2],Le[Xe+3])&&(!X||X(Ze))&&!ku(he,Ze.overlapMode))return V.push(!0),!0}}const we=this.circleCells[M];if(we!==null){const Le=this.circles;for(const He of we)if(!ie.circle[He]){ie.circle[He]=!0;const Xe=3*He,Ze=this.circleKeys[He];if(this._circlesCollide(Le[Xe],Le[Xe+1],Le[Xe+2],re.x,re.y,re.radius)&&(!X||X(Ze))&&!ku(he,Ze.overlapMode))return V.push(!0),!0}}}_forEachCell(u,h,_,S,M,V,W,X){const re=this._convertToXCellCoord(u),ie=this._convertToYCellCoord(h),he=this._convertToXCellCoord(_),ge=this._convertToYCellCoord(S);for(let we=re;we<=he;we++)for(let Le=ie;Le<=ge;Le++)if(M.call(this,u,h,_,S,this.xCellCount*Le+we,V,W,X))return}_convertToXCellCoord(u){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(u*this.xScale)))}_convertToYCellCoord(u){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(u*this.yScale)))}_circlesCollide(u,h,_,S,M,V){const W=S-u,X=M-h,re=_+V;return re*re>W*W+X*X}_circleAndRectCollide(u,h,_,S,M,V,W){const X=(V-S)/2,re=Math.abs(u-(S+X));if(re>X+_)return!1;const ie=(W-M)/2,he=Math.abs(h-(M+ie));if(he>ie+_)return!1;if(re<=X||he<=ie)return!0;const ge=re-X,we=he-ie;return ge*ge+we*we<=_*_}}function Kn(E,u){const h=1/(u[0]*u[0]+u[1]*u[1]+u[2]*u[2]),_=1/(u[8]*u[8]+u[9]*u[9]+u[10]*u[10]),S=u[0]*h,M=u[4]*h,V=u[8]*_,W=u[1]*h,X=u[5]*h,re=u[9]*_,ie=u[2]*h,he=u[6]*h,ge=u[10]*_;E[0]=S,E[1]=M,E[2]=V,E[4]=W,E[5]=X,E[6]=re,E[8]=ie,E[9]=he,E[10]=ge;const we=u[12],Le=u[13],He=u[14];return E[12]=-S*we-W*Le-ie*He,E[13]=-M*we-X*Le-he*He,E[14]=-V*we-re*Le-ge*He,E[3]=0,E[7]=0,E[11]=0,E[15]=1,E}const dr=o.O();function Jo(E,u,h){const _=o.O();if(!E){const{vecSouth:he,vecEast:ge}=Bl(u),we=m();we[0]=ge[0],we[1]=ge[1],we[2]=he[0],we[3]=he[1],S=we,(ie=(V=(M=we)[0])*(re=M[3])-(X=M[2])*(W=M[1]))&&(S[0]=re*(ie=1/ie),S[1]=-W*ie,S[2]=-X*ie,S[3]=V*ie),_[0]=we[0],_[1]=we[1],_[4]=we[2],_[5]=we[3]}var S,M,V,W,X,re,ie;return o.S(_,_,[1/h,1/h,1]),_}function Ip(E,u,h,_){if(E){const S=o.O();if(!u){const{vecSouth:M,vecEast:V}=Bl(h);S[0]=V[0],S[1]=V[1],S[4]=M[0],S[5]=M[1]}return o.S(S,S,[_,_,1]),S}return h.pixelsToClipSpaceMatrix}function Bl(E){const u=Math.cos(E.rollInRadians),h=Math.sin(E.rollInRadians),_=Math.cos(E.pitchInRadians),S=Math.cos(E.bearingInRadians),M=Math.sin(E.bearingInRadians),V=o.az();V[0]=-S*_*h-M*u,V[1]=-M*_*h+S*u;const W=o.aA(V);W<1e-9?o.aB(V):o.aC(V,V,1/W);const X=o.az();X[0]=S*_*u-M*h,X[1]=M*_*u+S*h;const re=o.aA(X);return re<1e-9?o.aB(X):o.aC(X,X,1/re),{vecEast:X,vecSouth:V}}function nr(E,u,h,_){let S;_?(S=[E,u,_(E,u),1],o.aE(S,S,h)):(S=[E,u,0,1],Yf(S,S,h));const M=S[3];return{point:new o.P(S[0]/M,S[1]/M),signedDistanceFromCamera:M,isOccluded:!1}}function jf(E,u){return .5+E/u*.5}function Eu(E,u){return E.x>=-u[0]&&E.x<=u[0]&&E.y>=-u[1]&&E.y<=u[1]}function Dp(E,u,h,_,S,M,V,W,X,re,ie,he,ge){const we=h?E.textSizeData:E.iconSizeData,Le=o.aw(we,u.transform.zoom),He=[256/u.width*2+1,256/u.height*2+1],Xe=h?E.text.dynamicLayoutVertexArray:E.icon.dynamicLayoutVertexArray;Xe.clear();const Ze=E.lineVertexArray,et=h?E.text.placedSymbolArray:E.icon.placedSymbolArray,lt=u.transform.width/u.transform.height;let Je=!1;for(let Ke=0;Ke<et.length;Ke++){const ot=et.get(Ke);if(ot.hidden||ot.writingMode===o.ax.vertical&&!Je){Pu(ot.numGlyphs,Xe);continue}Je=!1;const tt=new o.P(ot.anchorX,ot.anchorY),wt={getElevation:ge,pitchedLabelPlaneMatrix:_,lineVertexArray:Ze,pitchWithMap:M,projectionCache:{projections:{},offsets:{},cachedAnchorPoint:void 0,anyProjectionOccluded:!1},transform:u.transform,tileAnchorPoint:tt,unwrappedTileID:X,width:re,height:ie,translation:he},Rt=Ld(ot.anchorX,ot.anchorY,wt);if(!Eu(Rt.point,He)){Pu(ot.numGlyphs,Xe);continue}const Vt=jf(u.transform.cameraToCenterDistance,Rt.signedDistanceFromCamera),Qt=o.ay(we,Le,ot),Xt=M?Qt*u.transform.getPitchedTextCorrection(ot.anchorX,ot.anchorY,X)/Vt:Qt*Vt,Tn=Dd({projectionContext:wt,pitchedLabelPlaneMatrixInverse:S,symbol:ot,fontSize:Xt,flip:!1,keepUpright:V,glyphOffsetArray:E.glyphOffsetArray,dynamicLayoutVertexArray:Xe,aspectRatio:lt,rotateToLine:W});Je=Tn.useVertical,(Tn.notEnoughRoom||Je||Tn.needsFlipping&&Dd({projectionContext:wt,pitchedLabelPlaneMatrixInverse:S,symbol:ot,fontSize:Xt,flip:!0,keepUpright:V,glyphOffsetArray:E.glyphOffsetArray,dynamicLayoutVertexArray:Xe,aspectRatio:lt,rotateToLine:W}).notEnoughRoom)&&Pu(ot.numGlyphs,Xe)}h?E.text.dynamicLayoutVertexBuffer.updateData(Xe):E.icon.dynamicLayoutVertexBuffer.updateData(Xe)}function Fl(E,u,h,_,S,M,V,W){const X=M.glyphStartIndex+M.numGlyphs,re=M.lineStartIndex,ie=M.lineStartIndex+M.lineLength,he=u.getoffsetX(M.glyphStartIndex),ge=u.getoffsetX(X-1),we=Hs(E*he,h,_,S,M.segment,re,ie,W,V);if(!we)return null;const Le=Hs(E*ge,h,_,S,M.segment,re,ie,W,V);return Le?W.projectionCache.anyProjectionOccluded?null:{first:we,last:Le}:null}function Uf(E,u,h,_){return E===o.ax.horizontal&&Math.abs(h.y-u.y)>Math.abs(h.x-u.x)*_?{useVertical:!0}:(E===o.ax.vertical?u.y<h.y:u.x>h.x)?{needsFlipping:!0}:null}function Dd(E){const{projectionContext:u,pitchedLabelPlaneMatrixInverse:h,symbol:_,fontSize:S,flip:M,keepUpright:V,glyphOffsetArray:W,dynamicLayoutVertexArray:X,aspectRatio:re,rotateToLine:ie}=E,he=S/24,ge=_.lineOffsetX*he,we=_.lineOffsetY*he;let Le;if(_.numGlyphs>1){const He=_.glyphStartIndex+_.numGlyphs,Xe=_.lineStartIndex,Ze=_.lineStartIndex+_.lineLength,et=Fl(he,W,ge,we,M,_,ie,u);if(!et)return{notEnoughRoom:!0};const lt=Wf(et.first.point.x,et.first.point.y,u,h),Je=Wf(et.last.point.x,et.last.point.y,u,h);if(V&&!M){const Ke=Uf(_.writingMode,lt,Je,re);if(Ke)return Ke}Le=[et.first];for(let Ke=_.glyphStartIndex+1;Ke<He-1;Ke++){const ot=Hs(he*W.getoffsetX(Ke),ge,we,M,_.segment,Xe,Ze,u,ie);if(!ot)return{notEnoughRoom:!0};Le.push(ot)}Le.push(et.last)}else{if(V&&!M){const Xe=Vr(u.tileAnchorPoint.x,u.tileAnchorPoint.y,u).point,Ze=_.lineStartIndex+_.segment+1,et=new o.P(u.lineVertexArray.getx(Ze),u.lineVertexArray.gety(Ze)),lt=Vr(et.x,et.y,u),Je=lt.signedDistanceFromCamera>0?lt.point:Hf(u.tileAnchorPoint,et,Xe,1,u),Ke=Wf(Xe.x,Xe.y,u,h),ot=Wf(Je.x,Je.y,u,h),tt=Uf(_.writingMode,Ke,ot,re);if(tt)return tt}const He=Hs(he*W.getoffsetX(_.glyphStartIndex),ge,we,M,_.segment,_.lineStartIndex,_.lineStartIndex+_.lineLength,u,ie);if(!He||u.projectionCache.anyProjectionOccluded)return{notEnoughRoom:!0};Le=[He]}for(const He of Le)o.aD(X,He.point,He.angle);return{}}function Hf(E,u,h,_,S){const M=E.add(E.sub(u)._unit()),V=Vr(M.x,M.y,S).point,W=h.sub(V);return h.add(W._mult(_/W.mag()))}function ba(E,u,h){const _=u.projectionCache;if(_.projections[E])return _.projections[E];const S=new o.P(u.lineVertexArray.getx(E),u.lineVertexArray.gety(E)),M=Vr(S.x,S.y,u);if(M.signedDistanceFromCamera>0)return _.projections[E]=M.point,_.anyProjectionOccluded||(_.anyProjectionOccluded=M.isOccluded),M.point;const V=E-h.direction;return Hf(h.distanceFromAnchor===0?u.tileAnchorPoint:new o.P(u.lineVertexArray.getx(V),u.lineVertexArray.gety(V)),S,h.previousVertex,h.absOffsetX-h.distanceFromAnchor+1,u)}function Vr(E,u,h){const _=E+h.translation[0],S=u+h.translation[1];let M;return h.pitchWithMap?(M=nr(_,S,h.pitchedLabelPlaneMatrix,h.getElevation),M.isOccluded=!1):(M=h.transform.projectTileCoordinates(_,S,h.unwrappedTileID,h.getElevation),M.point.x=(.5*M.point.x+.5)*h.width,M.point.y=(.5*-M.point.y+.5)*h.height),M}function Wf(E,u,h,_){if(h.pitchWithMap){const S=[E,u,0,1];return o.aE(S,S,_),h.transform.projectTileCoordinates(S[0]/S[3],S[1]/S[3],h.unwrappedTileID,h.getElevation).point}return{x:E/h.width*2-1,y:1-u/h.height*2}}function Ld(E,u,h){return h.transform.projectTileCoordinates(E,u,h.unwrappedTileID,h.getElevation)}function Gf(E,u,h){return E._unit()._perp()._mult(u*h)}function Tc(E,u,h,_,S,M,V,W,X){if(W.projectionCache.offsets[E])return W.projectionCache.offsets[E];const re=h.add(u);if(E+X.direction<_||E+X.direction>=S)return W.projectionCache.offsets[E]=re,re;const ie=ba(E+X.direction,W,X),he=Gf(ie.sub(h),V,X.direction),ge=h.add(he),we=ie.add(he);return W.projectionCache.offsets[E]=o.aF(M,re,ge,we)||re,W.projectionCache.offsets[E]}function Hs(E,u,h,_,S,M,V,W,X){const re=_?E-u:E+u;let ie=re>0?1:-1,he=0;_&&(ie*=-1,he=Math.PI),ie<0&&(he+=Math.PI);let ge,we=ie>0?M+S:M+S+1;W.projectionCache.cachedAnchorPoint?ge=W.projectionCache.cachedAnchorPoint:(ge=Vr(W.tileAnchorPoint.x,W.tileAnchorPoint.y,W).point,W.projectionCache.cachedAnchorPoint=ge);let Le,He,Xe=ge,Ze=ge,et=0,lt=0;const Je=Math.abs(re),Ke=[];let ot;for(;et+lt<=Je;){if(we+=ie,we<M||we>=V)return null;et+=lt,Ze=Xe,He=Le;const Rt={absOffsetX:Je,direction:ie,distanceFromAnchor:et,previousVertex:Ze};if(Xe=ba(we,W,Rt),h===0)Ke.push(Ze),ot=Xe.sub(Ze);else{let Vt;const Qt=Xe.sub(Ze);Vt=Qt.mag()===0?Gf(ba(we+ie,W,Rt).sub(Xe),h,ie):Gf(Qt,h,ie),He||(He=Ze.add(Vt)),Le=Tc(we,Vt,Xe,M,V,He,h,W,Rt),Ke.push(He),ot=Le.sub(He)}lt=ot.mag()}const tt=ot._mult((Je-et)/lt)._add(He||Ze),wt=he+Math.atan2(Xe.y-Ze.y,Xe.x-Ze.x);return Ke.push(tt),{point:tt,angle:X?wt:0,path:Ke}}const Hg=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function Pu(E,u){for(let h=0;h<E;h++){const _=u.length;u.resize(_+4),u.float32.set(Hg,3*_)}}function Yf(E,u,h){const _=u[0],S=u[1];return E[0]=h[0]*_+h[4]*S+h[12],E[1]=h[1]*_+h[5]*S+h[13],E[3]=h[3]*_+h[7]*S+h[15],E}const xi=100;class _1{constructor(u,h=new mn(u.width+200,u.height+200,25),_=new mn(u.width+200,u.height+200,25)){this.transform=u,this.grid=h,this.ignoredGrid=_,this.pitchFactor=Math.cos(u.pitch*Math.PI/180)*u.cameraToCenterDistance,this.screenRightBoundary=u.width+xi,this.screenBottomBoundary=u.height+xi,this.gridRightBoundary=u.width+200,this.gridBottomBoundary=u.height+200,this.perspectiveRatioCutoff=.6}placeCollisionBox(u,h,_,S,M,V,W,X,re,ie,he,ge){const we=this.projectAndGetPerspectiveRatio(u.anchorPointX+X[0],u.anchorPointY+X[1],M,ie,ge),Le=_*we.perspectiveRatio;let He;if(V||W)He=this._projectCollisionBox(u,Le,S,M,V,W,X,we,ie,he,ge);else{const ot=we.x+(he?he.x*Le:0),tt=we.y+(he?he.y*Le:0);He={allPointsOccluded:!1,box:[ot+u.x1*Le,tt+u.y1*Le,ot+u.x2*Le,tt+u.y2*Le]}}const[Xe,Ze,et,lt]=He.box,Je=V?He.allPointsOccluded:we.isOccluded;let Ke=Je;return Ke||(Ke=we.perspectiveRatio<this.perspectiveRatioCutoff),Ke||(Ke=!this.isInsideGrid(Xe,Ze,et,lt)),Ke||h!=="always"&&this.grid.hitTest(Xe,Ze,et,lt,h,re)?{box:[Xe,Ze,et,lt],placeable:!1,offscreen:!1,occluded:Je}:{box:[Xe,Ze,et,lt],placeable:!0,offscreen:this.isOffscreen(Xe,Ze,et,lt),occluded:Je}}placeCollisionCircles(u,h,_,S,M,V,W,X,re,ie,he,ge,we,Le){const He=[],Xe=new o.P(h.anchorX,h.anchorY),Ze=this.getPerspectiveRatio(Xe.x,Xe.y,V,Le),et=(re?M*this.transform.getPitchedTextCorrection(h.anchorX,h.anchorY,V)/Ze:M*Ze)/o.aJ,lt={getElevation:Le,pitchedLabelPlaneMatrix:W,lineVertexArray:_,pitchWithMap:re,projectionCache:{projections:{},offsets:{},cachedAnchorPoint:void 0,anyProjectionOccluded:!1},transform:this.transform,tileAnchorPoint:Xe,unwrappedTileID:V,width:this.transform.width,height:this.transform.height,translation:we},Je=Fl(et,S,h.lineOffsetX*et,h.lineOffsetY*et,!1,h,!1,lt);let Ke=!1,ot=!1,tt=!0;if(Je){const wt=.5*he*Ze+ge,Rt=new o.P(-100,-100),Vt=new o.P(this.screenRightBoundary,this.screenBottomBoundary),Qt=new Ap,Xt=Je.first,Tn=Je.last;let fn=[];for(let Mn=Xt.path.length-1;Mn>=1;Mn--)fn.push(Xt.path[Mn]);for(let Mn=1;Mn<Tn.path.length;Mn++)fn.push(Tn.path[Mn]);const Wt=2.5*wt;if(re){const Mn=this.projectPathToScreenSpace(fn,lt);fn=Mn.some((ir=>ir.signedDistanceFromCamera<=0))?[]:Mn.map((ir=>ir.point))}let gn=[];if(fn.length>0){const Mn=fn[0].clone(),ir=fn[0].clone();for(let jr=1;jr<fn.length;jr++)Mn.x=Math.min(Mn.x,fn[jr].x),Mn.y=Math.min(Mn.y,fn[jr].y),ir.x=Math.max(ir.x,fn[jr].x),ir.y=Math.max(ir.y,fn[jr].y);gn=Mn.x>=Rt.x&&ir.x<=Vt.x&&Mn.y>=Rt.y&&ir.y<=Vt.y?[fn]:ir.x<Rt.x||Mn.x>Vt.x||ir.y<Rt.y||Mn.y>Vt.y?[]:o.aG([fn],Rt.x,Rt.y,Vt.x,Vt.y)}for(const Mn of gn){Qt.reset(Mn,.25*wt);let ir=0;ir=Qt.length<=.5*wt?1:Math.ceil(Qt.paddedLength/Wt)+1;for(let jr=0;jr<ir;jr++){const Xr=jr/Math.max(ir-1,1),Yi=Qt.lerp(Xr),Li=Yi.x+xi,Zi=Yi.y+xi;He.push(Li,Zi,wt,0);const Pi=Li-wt,Qa=Zi-wt,Oa=Li+wt,fa=Zi+wt;if(tt&&(tt=this.isOffscreen(Pi,Qa,Oa,fa)),ot||(ot=this.isInsideGrid(Pi,Qa,Oa,fa)),u!=="always"&&this.grid.hitTestCircle(Li,Zi,wt,u,ie)&&(Ke=!0,!X))return{circles:[],offscreen:!1,collisionDetected:Ke}}}}return{circles:!X&&Ke||!ot||Ze<this.perspectiveRatioCutoff?[]:He,offscreen:tt,collisionDetected:Ke}}projectPathToScreenSpace(u,h){const _=(function(S,M){const V=dr;return(function(W,X){const re=1/(X[0]*X[5]-X[1]*X[4]);W[0]=X[5]*re,W[1]=-X[1]*re,W[2]=0,W[3]=0,W[4]=-X[4]*re,W[5]=X[0]*re,W[6]=0,W[7]=0,W[8]=0,W[9]=0,W[10]=1/X[10],W[11]=0,W[12]=0,W[13]=0,W[14]=0,W[15]=1/X[15]})(V,M.pitchedLabelPlaneMatrix),S.map((W=>{const X=nr(W.x,W.y,V,M.getElevation),re=M.transform.projectTileCoordinates(X.point.x,X.point.y,M.unwrappedTileID,M.getElevation);return re.point.x=(.5*re.point.x+.5)*M.width,re.point.y=(.5*-re.point.y+.5)*M.height,re}))})(u,h);return(function(S){let M=0,V=0,W=0,X=0;for(let re=0;re<S.length;re++)S[re].isOccluded?(W=re+1,X=0):(X++,X>V&&(V=X,M=W));return S.slice(M,M+V)})(_)}queryRenderedSymbols(u){if(u.length===0||this.grid.keysLength()===0&&this.ignoredGrid.keysLength()===0)return{};const h=[],_=new o.a8;for(const he of u){const ge=new o.P(he.x+xi,he.y+xi);_.extend(ge),h.push(ge)}const{minX:S,minY:M,maxX:V,maxY:W}=_,X=this.grid.query(S,M,V,W).concat(this.ignoredGrid.query(S,M,V,W)),re={},ie={};for(const he of X){const ge=he.key;if(re[ge.bucketInstanceId]===void 0&&(re[ge.bucketInstanceId]={}),re[ge.bucketInstanceId][ge.featureIndex])continue;const we=[new o.P(he.x1,he.y1),new o.P(he.x2,he.y1),new o.P(he.x2,he.y2),new o.P(he.x1,he.y2)];o.aH(h,we)&&(re[ge.bucketInstanceId][ge.featureIndex]=!0,ie[ge.bucketInstanceId]===void 0&&(ie[ge.bucketInstanceId]=[]),ie[ge.bucketInstanceId].push(ge.featureIndex))}return ie}insertCollisionBox(u,h,_,S,M,V){(_?this.ignoredGrid:this.grid).insert({bucketInstanceId:S,featureIndex:M,collisionGroupID:V,overlapMode:h},u[0],u[1],u[2],u[3])}insertCollisionCircles(u,h,_,S,M,V){const W=_?this.ignoredGrid:this.grid,X={bucketInstanceId:S,featureIndex:M,collisionGroupID:V,overlapMode:h};for(let re=0;re<u.length;re+=4)W.insertCircle(X,u[re],u[re+1],u[re+2])}projectAndGetPerspectiveRatio(u,h,_,S,M){if(M){let V;S?(V=[u,h,S(u,h),1],o.aE(V,V,M)):(V=[u,h,0,1],Yf(V,V,M));const W=V[3];return{x:(V[0]/W+1)/2*this.transform.width+xi,y:(-V[1]/W+1)/2*this.transform.height+xi,perspectiveRatio:.5+this.transform.cameraToCenterDistance/W*.5,isOccluded:!1,signedDistanceFromCamera:W}}{const V=this.transform.projectTileCoordinates(u,h,_,S);return{x:(V.point.x+1)/2*this.transform.width+xi,y:(1-V.point.y)/2*this.transform.height+xi,perspectiveRatio:.5+this.transform.cameraToCenterDistance/V.signedDistanceFromCamera*.5,isOccluded:V.isOccluded,signedDistanceFromCamera:V.signedDistanceFromCamera}}}getPerspectiveRatio(u,h,_,S){const M=this.transform.projectTileCoordinates(u,h,_,S);return .5+this.transform.cameraToCenterDistance/M.signedDistanceFromCamera*.5}isOffscreen(u,h,_,S){return _<xi||u>=this.screenRightBoundary||S<xi||h>this.screenBottomBoundary}isInsideGrid(u,h,_,S){return _>=0&&u<this.gridRightBoundary&&S>=0&&h<this.gridBottomBoundary}getViewportMatrix(){const u=o.ap([]);return o.Q(u,u,[-100,-100,0]),u}_projectCollisionBox(u,h,_,S,M,V,W,X,re,ie,he){let ge=1,we=0,Le=0,He=1;const Xe=u.anchorPointX+W[0],Ze=u.anchorPointY+W[1];if(V&&!M){const fn=this.projectAndGetPerspectiveRatio(Xe+1,Ze,S,re,he),Wt=fn.x-X.x,gn=Math.atan((fn.y-X.y)/Wt)+(Wt<0?Math.PI:0),Mn=Math.sin(gn),ir=Math.cos(gn);ge=ir,we=Mn,Le=-Mn,He=ir}else if(!V&&M){const fn=Bl(this.transform);ge=fn.vecEast[0],we=fn.vecEast[1],Le=fn.vecSouth[0],He=fn.vecSouth[1]}let et=X.x,lt=X.y,Je=h;M&&(et=Xe,lt=Ze,Je=Math.pow(2,-(this.transform.zoom-_.overscaledZ)),Je*=this.transform.getPitchedTextCorrection(Xe,Ze,S),ie||(Je*=o.al(.5+X.signedDistanceFromCamera/this.transform.cameraToCenterDistance*.5,0,4))),ie&&(et+=ge*ie.x*Je+Le*ie.y*Je,lt+=we*ie.x*Je+He*ie.y*Je);const Ke=u.x1*Je,ot=u.x2*Je,tt=(Ke+ot)/2,wt=u.y1*Je,Rt=u.y2*Je,Vt=(wt+Rt)/2,Qt=[{offsetX:Ke,offsetY:wt},{offsetX:tt,offsetY:wt},{offsetX:ot,offsetY:wt},{offsetX:ot,offsetY:Vt},{offsetX:ot,offsetY:Rt},{offsetX:tt,offsetY:Rt},{offsetX:Ke,offsetY:Rt},{offsetX:Ke,offsetY:Vt}];let Xt=[];for(const{offsetX:fn,offsetY:Wt}of Qt)Xt.push(new o.P(et+ge*fn+Le*Wt,lt+we*fn+He*Wt));let Tn=!1;if(M){const fn=Xt.map((Wt=>this.projectAndGetPerspectiveRatio(Wt.x,Wt.y,S,re,he)));Tn=fn.some((Wt=>!Wt.isOccluded)),Xt=fn.map((Wt=>new o.P(Wt.x,Wt.y)))}else Tn=!0;return{box:o.aI(Xt),allPointsOccluded:!Tn}}}class Wg{constructor(u,h,_,S){this.opacity=u?Math.max(0,Math.min(1,u.opacity+(u.placed?h:-h))):S&&_?1:0,this.placed=_}isHidden(){return this.opacity===0&&!this.placed}}class $u{constructor(u,h,_,S,M){this.text=new Wg(u?u.text:null,h,_,M),this.icon=new Wg(u?u.icon:null,h,S,M)}isHidden(){return this.text.isHidden()&&this.icon.isHidden()}}class Gg{constructor(u,h,_){this.text=u,this.icon=h,this.skipFade=_}}class b1{constructor(u,h,_,S,M){this.bucketInstanceId=u,this.featureIndex=h,this.sourceLayerIndex=_,this.bucketIndex=S,this.tileID=M}}class Yg{constructor(u){this.crossSourceCollisions=u,this.maxGroupID=0,this.collisionGroups={}}get(u){if(this.crossSourceCollisions)return{ID:0,predicate:null};if(!this.collisionGroups[u]){const h=++this.maxGroupID;this.collisionGroups[u]={ID:h,predicate:_=>_.collisionGroupID===h}}return this.collisionGroups[u]}}function Zf(E,u,h,_,S){const{horizontalAlign:M,verticalAlign:V}=o.aP(E);return new o.P(-(M-.5)*u+_[0]*S,-(V-.5)*h+_[1]*S)}class Kf{constructor(u,h,_,S,M){this.transform=u.clone(),this.terrain=h,this.collisionIndex=new _1(this.transform),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=_,this.retainedQueryData={},this.collisionGroups=new Yg(S),this.collisionCircleArrays={},this.collisionBoxArrays=new Map,this.prevPlacement=M,M&&(M.prevPlacement=void 0),this.placedOrientations={}}_getTerrainElevationFunc(u){const h=this.terrain;return h?(_,S)=>h.getElevation(u,_,S):null}getBucketParts(u,h,_,S){const M=_.getBucket(h),V=_.latestFeatureIndex;if(!M||!V||h.id!==M.layerIds[0])return;const W=_.collisionBoxArray,X=M.layers[0].layout,re=M.layers[0].paint,ie=Math.pow(2,this.transform.zoom-_.tileID.overscaledZ),he=_.tileSize/o.a6,ge=_.tileID.toUnwrapped(),we=X.get("text-rotation-alignment")==="map",Le=o.aK(_,1,this.transform.zoom),He=o.aL(this.collisionIndex.transform,_,re.get("text-translate"),re.get("text-translate-anchor")),Xe=o.aL(this.collisionIndex.transform,_,re.get("icon-translate"),re.get("icon-translate-anchor")),Ze=Jo(we,this.transform,Le);this.retainedQueryData[M.bucketInstanceId]=new b1(M.bucketInstanceId,V,M.sourceLayerIndex,M.index,_.tileID);const et={bucket:M,layout:X,translationText:He,translationIcon:Xe,unwrappedTileID:ge,pitchedLabelPlaneMatrix:Ze,scale:ie,textPixelRatio:he,holdingForFade:_.holdingForSymbolFade(),collisionBoxArray:W,partiallyEvaluatedTextSize:o.aw(M.textSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(M.sourceID)};if(S)for(const lt of M.sortKeyRanges){const{sortKey:Je,symbolInstanceStart:Ke,symbolInstanceEnd:ot}=lt;u.push({sortKey:Je,symbolInstanceStart:Ke,symbolInstanceEnd:ot,parameters:et})}else u.push({symbolInstanceStart:0,symbolInstanceEnd:M.symbolInstances.length,parameters:et})}attemptAnchorPlacement(u,h,_,S,M,V,W,X,re,ie,he,ge,we,Le,He,Xe,Ze,et,lt,Je){var Ke,ot,tt;const wt=o.aM[u.textAnchor],Rt=[u.textOffset0,u.textOffset1],Vt=Zf(wt,_,S,Rt,M),Qt=this.collisionIndex.placeCollisionBox(h,ge,X,re,ie,W,V,Xe,he.predicate,lt,Vt,Je);if((!et||this.collisionIndex.placeCollisionBox(et,ge,X,re,ie,W,V,Ze,he.predicate,lt,Vt,Je).placeable)&&Qt.placeable){let Xt;if(!((Ke=this.prevPlacement)===null||Ke===void 0)&&Ke.variableOffsets[we.crossTileID]&&(!((tt=(ot=this.prevPlacement)===null||ot===void 0?void 0:ot.placements[we.crossTileID])===null||tt===void 0)&&tt.text)&&(Xt=this.prevPlacement.variableOffsets[we.crossTileID].anchor),we.crossTileID===0)throw new Error("symbolInstance.crossTileID can't be 0");return this.variableOffsets[we.crossTileID]={textOffset:Rt,width:_,height:S,anchor:wt,textBoxScale:M,prevAnchor:Xt},this.markUsedJustification(Le,wt,we,He),Le.allowVerticalPlacement&&(this.markUsedOrientation(Le,He,we),this.placedOrientations[we.crossTileID]=He),{shift:Vt,placedGlyphBoxes:Qt}}}placeLayerBucketPart(u,h,_){const{bucket:S,layout:M,translationText:V,translationIcon:W,unwrappedTileID:X,pitchedLabelPlaneMatrix:re,textPixelRatio:ie,holdingForFade:he,collisionBoxArray:ge,partiallyEvaluatedTextSize:we,collisionGroup:Le}=u.parameters,He=M.get("text-optional"),Xe=M.get("icon-optional"),Ze=o.aN(M,"text-overlap","text-allow-overlap"),et=Ze==="always",lt=o.aN(M,"icon-overlap","icon-allow-overlap"),Je=lt==="always",Ke=M.get("text-rotation-alignment")==="map",ot=M.get("text-pitch-alignment")==="map",tt=M.get("icon-text-fit")!=="none",wt=M.get("symbol-z-order")==="viewport-y",Rt=et&&(Je||!S.hasIconData()||Xe),Vt=Je&&(et||!S.hasTextData()||He);!S.collisionArrays&&ge&&S.deserializeCollisionBoxes(ge);const Qt=this.retainedQueryData[S.bucketInstanceId].tileID,Xt=this._getTerrainElevationFunc(Qt),Tn=this.transform.getFastPathSimpleProjectionMatrix(Qt),fn=(Wt,gn,Mn)=>{var ir,jr;if(h[Wt.crossTileID])return;if(he)return void(this.placements[Wt.crossTileID]=new Gg(!1,!1,!1));let Xr=!1,Yi=!1,Li=!0,Zi=null,Pi={box:null,placeable:!1,offscreen:null,occluded:!1},Qa={placeable:!1},Oa=null,fa=null,Ki=null,As=0,ju=0,Jl=0;gn.textFeatureIndex?As=gn.textFeatureIndex:Wt.useRuntimeCollisionCircles&&(As=Wt.featureIndex),gn.verticalTextFeatureIndex&&(ju=gn.verticalTextFeatureIndex);const Ra=gn.textBox;if(Ra){const Ds=si=>{let li=o.ax.horizontal;if(S.allowVerticalPlacement&&!si&&this.prevPlacement){const Ni=this.prevPlacement.placedOrientations[Wt.crossTileID];Ni&&(this.placedOrientations[Wt.crossTileID]=Ni,li=Ni,this.markUsedOrientation(S,li,Wt))}return li},as=(si,li)=>{if(S.allowVerticalPlacement&&Wt.numVerticalGlyphVertices>0&&gn.verticalTextBox){for(const Ni of S.writingModes)if(Ni===o.ax.vertical?(Pi=li(),Qa=Pi):Pi=si(),Pi?.placeable)break}else Pi=si()},ss=Wt.textAnchorOffsetStartIndex,ls=Wt.textAnchorOffsetEndIndex;if(ls===ss){const si=(li,Ni)=>{const $i=this.collisionIndex.placeCollisionBox(li,Ze,ie,Qt,X,ot,Ke,V,Le.predicate,Xt,void 0,Tn);return $i?.placeable&&(this.markUsedOrientation(S,Ni,Wt),this.placedOrientations[Wt.crossTileID]=Ni),$i};as((()=>si(Ra,o.ax.horizontal)),(()=>{const li=gn.verticalTextBox;return S.allowVerticalPlacement&&Wt.numVerticalGlyphVertices>0&&li?si(li,o.ax.vertical):{box:null,offscreen:null}})),Ds(Pi?.placeable)}else{let si=o.aM[(jr=(ir=this.prevPlacement)===null||ir===void 0?void 0:ir.variableOffsets[Wt.crossTileID])===null||jr===void 0?void 0:jr.anchor];const li=($i,Uu,Ls)=>{const Sl=$i.x2-$i.x1,dm=$i.y2-$i.y1,j1=Wt.textBoxScale,fm=tt&&lt==="never"?Uu:null;let Hu=null,Wu=Ze==="never"?1:2,eo="never";si&&Wu++;for(let bh=0;bh<Wu;bh++){for(let xh=ss;xh<ls;xh++){const Jd=S.textAnchorOffsets.get(xh);if(si&&Jd.textAnchor!==si)continue;const Qc=this.attemptAnchorPlacement(Jd,$i,Sl,dm,j1,Ke,ot,ie,Qt,X,Le,eo,Wt,S,Ls,V,W,fm,Xt);if(Qc&&(Hu=Qc.placedGlyphBoxes,Hu?.placeable))return Xr=!0,Zi=Qc.shift,Hu}si?si=null:eo=Ze}return _&&!Hu&&(Hu={box:this.collisionIndex.placeCollisionBox(Ra,"always",ie,Qt,X,ot,Ke,V,Le.predicate,Xt,void 0,Tn).box,offscreen:!1,placeable:!1,occluded:!1}),Hu};as((()=>li(Ra,gn.iconBox,o.ax.horizontal)),(()=>{const $i=gn.verticalTextBox;return S.allowVerticalPlacement&&!Pi?.placeable&&Wt.numVerticalGlyphVertices>0&&$i?li($i,gn.verticalIconBox,o.ax.vertical):{box:null,occluded:!0,offscreen:null}})),Pi&&(Xr=Pi.placeable,Li=Pi.offscreen);const Ni=Ds(Pi?.placeable);if(!Xr&&this.prevPlacement){const $i=this.prevPlacement.variableOffsets[Wt.crossTileID];$i&&(this.variableOffsets[Wt.crossTileID]=$i,this.markUsedJustification(S,$i.anchor,Wt,Ni))}}}if(Oa=Pi,Xr=Oa?.placeable,Li=Oa?.offscreen,Wt.useRuntimeCollisionCircles&&Wt.centerJustifiedTextSymbolIndex>=0){const Ds=S.text.placedSymbolArray.get(Wt.centerJustifiedTextSymbolIndex),as=o.ay(S.textSizeData,we,Ds),ss=M.get("text-padding");fa=this.collisionIndex.placeCollisionCircles(Ze,Ds,S.lineVertexArray,S.glyphOffsetArray,as,X,re,_,ot,Le.predicate,Wt.collisionCircleDiameter,ss,V,Xt),fa.circles.length&&fa.collisionDetected&&!_&&o.w("Collisions detected, but collision boxes are not shown"),Xr=et||fa.circles.length>0&&!fa.collisionDetected,Li&&(Li=fa.offscreen)}if(gn.iconFeatureIndex&&(Jl=gn.iconFeatureIndex),gn.iconBox){const Ds=as=>this.collisionIndex.placeCollisionBox(as,lt,ie,Qt,X,ot,Ke,W,Le.predicate,Xt,tt&&Zi?Zi:void 0,Tn);Qa&&Qa.placeable&&gn.verticalIconBox?(Ki=Ds(gn.verticalIconBox),Yi=Ki.placeable):(Ki=Ds(gn.iconBox),Yi=Ki.placeable),Li&&(Li=Ki.offscreen)}const Is=He||Wt.numHorizontalGlyphVertices===0&&Wt.numVerticalGlyphVertices===0,Ql=Xe||Wt.numIconVertices===0;Is||Ql?Ql?Is||Yi&&(Yi=Xr):Xr=Yi&&Xr:Yi=Xr=Yi&&Xr;const Jc=Yi&&Ki.placeable;if(Xr&&Oa.placeable&&this.collisionIndex.insertCollisionBox(Oa.box,Ze,M.get("text-ignore-placement"),S.bucketInstanceId,Qa&&Qa.placeable&&ju?ju:As,Le.ID),Jc&&this.collisionIndex.insertCollisionBox(Ki.box,lt,M.get("icon-ignore-placement"),S.bucketInstanceId,Jl,Le.ID),fa&&Xr&&this.collisionIndex.insertCollisionCircles(fa.circles,Ze,M.get("text-ignore-placement"),S.bucketInstanceId,As,Le.ID),_&&this.storeCollisionData(S.bucketInstanceId,Mn,gn,Oa,Ki,fa),Wt.crossTileID===0)throw new Error("symbolInstance.crossTileID can't be 0");if(S.bucketInstanceId===0)throw new Error("bucket.bucketInstanceId can't be 0");this.placements[Wt.crossTileID]=new Gg((Xr||Rt)&&!Oa?.occluded,(Yi||Vt)&&!Ki?.occluded,Li||S.justReloaded),h[Wt.crossTileID]=!0};if(wt){if(u.symbolInstanceStart!==0)throw new Error("bucket.bucketInstanceId should be 0");const Wt=S.getSortedSymbolIndexes(-this.transform.bearingInRadians);for(let gn=Wt.length-1;gn>=0;--gn){const Mn=Wt[gn];fn(S.symbolInstances.get(Mn),S.collisionArrays[Mn],Mn)}}else for(let Wt=u.symbolInstanceStart;Wt<u.symbolInstanceEnd;Wt++)fn(S.symbolInstances.get(Wt),S.collisionArrays[Wt],Wt);S.justReloaded=!1}storeCollisionData(u,h,_,S,M,V){if(_.textBox||_.iconBox){let W,X;this.collisionBoxArrays.has(u)?W=this.collisionBoxArrays.get(u):(W=new Map,this.collisionBoxArrays.set(u,W)),W.has(h)?X=W.get(h):(X={text:null,icon:null},W.set(h,X)),_.textBox&&(X.text=S.box),_.iconBox&&(X.icon=M.box)}if(V){let W=this.collisionCircleArrays[u];W===void 0&&(W=this.collisionCircleArrays[u]=[]);for(let X=0;X<V.circles.length;X+=4)W.push(V.circles[X+0]-xi),W.push(V.circles[X+1]-xi),W.push(V.circles[X+2]),W.push(V.collisionDetected?1:0)}}markUsedJustification(u,h,_,S){let M;M=S===o.ax.vertical?_.verticalPlacedTextSymbolIndex:{left:_.leftJustifiedTextSymbolIndex,center:_.centerJustifiedTextSymbolIndex,right:_.rightJustifiedTextSymbolIndex}[o.aO(h)];const V=[_.leftJustifiedTextSymbolIndex,_.centerJustifiedTextSymbolIndex,_.rightJustifiedTextSymbolIndex,_.verticalPlacedTextSymbolIndex];for(const W of V)W>=0&&(u.text.placedSymbolArray.get(W).crossTileID=M>=0&&W!==M?0:_.crossTileID)}markUsedOrientation(u,h,_){const S=h===o.ax.horizontal||h===o.ax.horizontalOnly?h:0,M=h===o.ax.vertical?h:0,V=[_.leftJustifiedTextSymbolIndex,_.centerJustifiedTextSymbolIndex,_.rightJustifiedTextSymbolIndex];for(const W of V)u.text.placedSymbolArray.get(W).placedOrientation=S;_.verticalPlacedTextSymbolIndex&&(u.text.placedSymbolArray.get(_.verticalPlacedTextSymbolIndex).placedOrientation=M)}commit(u){this.commitTime=u,this.zoomAtLastRecencyCheck=this.transform.zoom;const h=this.prevPlacement;let _=!1;this.prevZoomAdjustment=h?h.zoomAdjustment(this.transform.zoom):0;const S=h?h.symbolFadeChange(u):1,M=h?h.opacities:{},V=h?h.variableOffsets:{},W=h?h.placedOrientations:{};for(const X in this.placements){const re=this.placements[X],ie=M[X];ie?(this.opacities[X]=new $u(ie,S,re.text,re.icon),_||(_=re.text!==ie.text.placed),_||(_=re.icon!==ie.icon.placed)):(this.opacities[X]=new $u(null,S,re.text,re.icon,re.skipFade),_||(_=re.text||re.icon))}for(const X in M){const re=M[X];if(!this.opacities[X]){const ie=new $u(re,S,!1,!1);ie.isHidden()||(this.opacities[X]=ie,_||(_=re.text.placed),_||(_=re.icon.placed))}}for(const X in V)this.variableOffsets[X]||!this.opacities[X]||this.opacities[X].isHidden()||(this.variableOffsets[X]=V[X]);for(const X in W)this.placedOrientations[X]||!this.opacities[X]||this.opacities[X].isHidden()||(this.placedOrientations[X]=W[X]);if(h&&h.lastPlacementChangeTime===void 0)throw new Error("Last placement time for previous placement is not defined");_?this.lastPlacementChangeTime=u:typeof this.lastPlacementChangeTime!="number"&&(this.lastPlacementChangeTime=h?h.lastPlacementChangeTime:u)}updateLayerOpacities(u,h){const _={};for(const S of h){const M=S.getBucket(u);M&&S.latestFeatureIndex&&u.id===M.layerIds[0]&&this.updateBucketOpacities(M,S.tileID,_,S.collisionBoxArray)}}updateBucketOpacities(u,h,_,S){u.hasTextData()&&(u.text.opacityVertexArray.clear(),u.text.hasVisibleVertices=!1),u.hasIconData()&&(u.icon.opacityVertexArray.clear(),u.icon.hasVisibleVertices=!1),u.hasIconCollisionBoxData()&&u.iconCollisionBox.collisionVertexArray.clear(),u.hasTextCollisionBoxData()&&u.textCollisionBox.collisionVertexArray.clear();const M=u.layers[0],V=M.layout,W=new $u(null,0,!1,!1,!0),X=V.get("text-allow-overlap"),re=V.get("icon-allow-overlap"),ie=M._unevaluatedLayout.hasValue("text-variable-anchor")||M._unevaluatedLayout.hasValue("text-variable-anchor-offset"),he=V.get("text-rotation-alignment")==="map",ge=V.get("text-pitch-alignment")==="map",we=V.get("icon-text-fit")!=="none",Le=new $u(null,0,X&&(re||!u.hasIconData()||V.get("icon-optional")),re&&(X||!u.hasTextData()||V.get("text-optional")),!0);!u.collisionArrays&&S&&(u.hasIconCollisionBoxData()||u.hasTextCollisionBoxData())&&u.deserializeCollisionBoxes(S);const He=(Ze,et,lt)=>{for(let Je=0;Je<et/4;Je++)Ze.opacityVertexArray.emplaceBack(lt);Ze.hasVisibleVertices||(Ze.hasVisibleVertices=lt!==Rd)},Xe=this.collisionBoxArrays.get(u.bucketInstanceId);for(let Ze=0;Ze<u.symbolInstances.length;Ze++){const et=u.symbolInstances.get(Ze),{numHorizontalGlyphVertices:lt,numVerticalGlyphVertices:Je,crossTileID:Ke}=et;let ot=this.opacities[Ke];_[Ke]?ot=W:ot||(ot=Le,this.opacities[Ke]=ot),_[Ke]=!0;const tt=et.numIconVertices>0,wt=this.placedOrientations[et.crossTileID],Rt=wt===o.ax.vertical,Vt=wt===o.ax.horizontal||wt===o.ax.horizontalOnly;if(lt>0||Je>0){const Xt=Op(ot.text);He(u.text,lt,Rt?Rd:Xt),He(u.text,Je,Vt?Rd:Xt);const Tn=ot.text.isHidden(),fn=[et.rightJustifiedTextSymbolIndex,et.centerJustifiedTextSymbolIndex,et.leftJustifiedTextSymbolIndex];for(const Mn of fn)Mn>=0&&(u.text.placedSymbolArray.get(Mn).hidden=Tn||Rt?1:0);et.verticalPlacedTextSymbolIndex>=0&&(u.text.placedSymbolArray.get(et.verticalPlacedTextSymbolIndex).hidden=Tn||Vt?1:0);const Wt=this.variableOffsets[et.crossTileID];Wt&&this.markUsedJustification(u,Wt.anchor,et,wt);const gn=this.placedOrientations[et.crossTileID];gn&&(this.markUsedJustification(u,"left",et,gn),this.markUsedOrientation(u,gn,et))}if(tt){const Xt=Op(ot.icon),Tn=!(we&&et.verticalPlacedIconSymbolIndex&&Rt);et.placedIconSymbolIndex>=0&&(He(u.icon,et.numIconVertices,Tn?Xt:Rd),u.icon.placedSymbolArray.get(et.placedIconSymbolIndex).hidden=ot.icon.isHidden()),et.verticalPlacedIconSymbolIndex>=0&&(He(u.icon,et.numVerticalIconVertices,Tn?Rd:Xt),u.icon.placedSymbolArray.get(et.verticalPlacedIconSymbolIndex).hidden=ot.icon.isHidden())}const Qt=Xe?.has(Ze)?Xe.get(Ze):{text:null,icon:null};if(u.hasIconCollisionBoxData()||u.hasTextCollisionBoxData()){const Xt=u.collisionArrays[Ze];if(Xt){let Tn=new o.P(0,0);if(Xt.textBox||Xt.verticalTextBox){let fn=!0;if(ie){const Wt=this.variableOffsets[Ke];Wt?(Tn=Zf(Wt.anchor,Wt.width,Wt.height,Wt.textOffset,Wt.textBoxScale),he&&Tn._rotate(ge?-this.transform.bearingInRadians:this.transform.bearingInRadians)):fn=!1}if(Xt.textBox||Xt.verticalTextBox){let Wt;Xt.textBox&&(Wt=Rt),Xt.verticalTextBox&&(Wt=Vt),Zg(u.textCollisionBox.collisionVertexArray,ot.text.placed,!fn||Wt,Qt.text,Tn.x,Tn.y)}}if(Xt.iconBox||Xt.verticalIconBox){const fn=!!(!Vt&&Xt.verticalIconBox);let Wt;Xt.iconBox&&(Wt=fn),Xt.verticalIconBox&&(Wt=!fn),Zg(u.iconCollisionBox.collisionVertexArray,ot.icon.placed,Wt,Qt.icon,we?Tn.x:0,we?Tn.y:0)}}}}if(u.sortFeatures(-this.transform.bearingInRadians),this.retainedQueryData[u.bucketInstanceId]&&(this.retainedQueryData[u.bucketInstanceId].featureSortOrder=u.featureSortOrder),u.hasTextData()&&u.text.opacityVertexBuffer&&u.text.opacityVertexBuffer.updateData(u.text.opacityVertexArray),u.hasIconData()&&u.icon.opacityVertexBuffer&&u.icon.opacityVertexBuffer.updateData(u.icon.opacityVertexArray),u.hasIconCollisionBoxData()&&u.iconCollisionBox.collisionVertexBuffer&&u.iconCollisionBox.collisionVertexBuffer.updateData(u.iconCollisionBox.collisionVertexArray),u.hasTextCollisionBoxData()&&u.textCollisionBox.collisionVertexBuffer&&u.textCollisionBox.collisionVertexBuffer.updateData(u.textCollisionBox.collisionVertexArray),u.text.opacityVertexArray.length!==u.text.layoutVertexArray.length/4)throw new Error(`bucket.text.opacityVertexArray.length (= ${u.text.opacityVertexArray.length}) !== bucket.text.layoutVertexArray.length (= ${u.text.layoutVertexArray.length}) / 4`);if(u.icon.opacityVertexArray.length!==u.icon.layoutVertexArray.length/4)throw new Error(`bucket.icon.opacityVertexArray.length (= ${u.icon.opacityVertexArray.length}) !== bucket.icon.layoutVertexArray.length (= ${u.icon.layoutVertexArray.length}) / 4`);u.bucketInstanceId in this.collisionCircleArrays&&(u.collisionCircleArray=this.collisionCircleArrays[u.bucketInstanceId],delete this.collisionCircleArrays[u.bucketInstanceId])}symbolFadeChange(u){return this.fadeDuration===0?1:(u-this.commitTime)/this.fadeDuration+this.prevZoomAdjustment}zoomAdjustment(u){return Math.max(0,(this.transform.zoom-u)/1.5)}hasTransitions(u){return this.stale||u-this.lastPlacementChangeTime<this.fadeDuration}stillRecent(u,h){const _=this.zoomAtLastRecencyCheck===h?1-this.zoomAdjustment(h):1;return this.zoomAtLastRecencyCheck=h,this.commitTime+this.fadeDuration*_>u}setStale(){this.stale=!0}}function Zg(E,u,h,_,S,M){_&&_.length!==0||(_=[0,0,0,0]);const V=_[0]-xi,W=_[1]-xi,X=_[2]-xi,re=_[3]-xi;E.emplaceBack(u?1:0,h?1:0,S||0,M||0,V,W),E.emplaceBack(u?1:0,h?1:0,S||0,M||0,X,W),E.emplaceBack(u?1:0,h?1:0,S||0,M||0,X,re),E.emplaceBack(u?1:0,h?1:0,S||0,M||0,V,re)}const Lp=Math.pow(2,25),Xf=Math.pow(2,24),Kg=Math.pow(2,17),cl=Math.pow(2,16),Jf=Math.pow(2,9),Xg=Math.pow(2,8),Od=Math.pow(2,1);function Op(E){if(E.opacity===0&&!E.placed)return 0;if(E.opacity===1&&E.placed)return 4294967295;const u=E.placed?1:0,h=Math.floor(127*E.opacity);return h*Lp+u*Xf+h*Kg+u*cl+h*Jf+u*Xg+h*Od+u}const Rd=0;class zl{constructor(u){this._sortAcrossTiles=u.layout.get("symbol-z-order")!=="viewport-y"&&!u.layout.get("symbol-sort-key").isConstant(),this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]}continuePlacement(u,h,_,S,M){const V=this._bucketParts;for(;this._currentTileIndex<u.length;)if(h.getBucketParts(V,S,u[this._currentTileIndex],this._sortAcrossTiles),this._currentTileIndex++,M())return!0;for(this._sortAcrossTiles&&(this._sortAcrossTiles=!1,V.sort(((W,X)=>W.sortKey-X.sortKey)));this._currentPartIndex<V.length;)if(h.placeLayerBucketPart(V[this._currentPartIndex],this._seenCrossTileIDs,_),this._currentPartIndex++,M())return!0;return!1}}class kc{constructor(u,h,_,S,M,V,W,X){this.placement=new Kf(u,h,V,W,X),this._currentPlacementIndex=_.length-1,this._forceFullPlacement=S,this._showCollisionBoxes=M,this._done=!1}isDone(){return this._done}continuePlacement(u,h,_){const S=A(),M=()=>!this._forceFullPlacement&&A()-S>2;for(;this._currentPlacementIndex>=0;){const V=h[u[this._currentPlacementIndex]],W=this.placement.collisionIndex.transform.zoom;if(o.aQ(V)&&V.layout&&(!V.minzoom||V.minzoom<=W)&&(!V.maxzoom||V.maxzoom>W)){if(this._inProgressLayer||(this._inProgressLayer=new zl(V)),this._inProgressLayer.continuePlacement(_[V.source],this.placement,this._showCollisionBoxes,V,M))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0}commit(u){return this.placement.commit(u),this.placement}}const sr=512/o.a6/2;class Jg{constructor(u,h,_){this.tileID=u,this.bucketInstanceId=_,this._symbolsByKey={};const S=new Map;for(let M=0;M<h.length;M++){const V=h.get(M),W=V.key,X=S.get(W);X?X.push(V):S.set(W,[V])}for(const[M,V]of S){const W={positions:V.map((X=>({x:Math.floor(X.anchorX*sr),y:Math.floor(X.anchorY*sr)}))),crossTileIDs:V.map((X=>X.crossTileID))};if(W.positions.length>128){const X=new o.aR(W.positions.length,16,Uint16Array);for(const{x:re,y:ie}of W.positions)X.add(re,ie);X.finish(),delete W.positions,W.index=X}this._symbolsByKey[M]=W}}getScaledCoordinates(u,h){const{x:_,y:S,z:M}=this.tileID.canonical,{x:V,y:W,z:X}=h.canonical,re=sr/Math.pow(2,X-M),ie=(W*o.a6+u.anchorY)*re,he=S*o.a6*sr;return{x:Math.floor((V*o.a6+u.anchorX)*re-_*o.a6*sr),y:Math.floor(ie-he)}}findMatches(u,h,_){const S=this.tileID.canonical.z<h.canonical.z?1:Math.pow(2,this.tileID.canonical.z-h.canonical.z);for(let M=0;M<u.length;M++){const V=u.get(M);if(V.crossTileID)continue;const W=this._symbolsByKey[V.key];if(!W)continue;const X=this.getScaledCoordinates(V,h);if(W.index){const re=W.index.range(X.x-S,X.y-S,X.x+S,X.y+S).sort();for(const ie of re){const he=W.crossTileIDs[ie];if(!_[he]){_[he]=!0,V.crossTileID=he;break}}}else if(W.positions)for(let re=0;re<W.positions.length;re++){const ie=W.positions[re],he=W.crossTileIDs[re];if(Math.abs(ie.x-X.x)<=S&&Math.abs(ie.y-X.y)<=S&&!_[he]){_[he]=!0,V.crossTileID=he;break}}}}getCrossTileIDsLists(){return Object.values(this._symbolsByKey).map((({crossTileIDs:u})=>u))}}class lb{constructor(){this.maxCrossTileID=0}generate(){return++this.maxCrossTileID}}class Rp{constructor(){this.indexes={},this.usedCrossTileIDs={},this.lng=0}handleWrapJump(u){const h=Math.round((u-this.lng)/360);if(h!==0)for(const _ in this.indexes){const S=this.indexes[_],M={};for(const V in S){const W=S[V];W.tileID=W.tileID.unwrapTo(W.tileID.wrap+h),M[W.tileID.key]=W}this.indexes[_]=M}this.lng=u}addBucket(u,h,_){var S,M,V;if(!((S=this.indexes[u.overscaledZ])===null||S===void 0)&&S[u.key]){if(this.indexes[u.overscaledZ][u.key].bucketInstanceId===h.bucketInstanceId)return!1;this.removeBucketCrossTileIDs(u.overscaledZ,this.indexes[u.overscaledZ][u.key])}for(let X=0;X<h.symbolInstances.length;X++)h.symbolInstances.get(X).crossTileID=0;(M=this.usedCrossTileIDs)[V=u.overscaledZ]||(M[V]={});const W=this.usedCrossTileIDs[u.overscaledZ];for(const X in this.indexes){const re=this.indexes[X];if(Number(X)>u.overscaledZ)for(const ie in re){const he=re[ie];he.tileID.isChildOf(u)&&he.findMatches(h.symbolInstances,u,W)}else{const ie=re[u.scaledTo(Number(X)).key];ie&&ie.findMatches(h.symbolInstances,u,W)}}for(let X=0;X<h.symbolInstances.length;X++){const re=h.symbolInstances.get(X);re.crossTileID||(re.crossTileID=_.generate(),W[re.crossTileID]=!0)}return this.indexes[u.overscaledZ]===void 0&&(this.indexes[u.overscaledZ]={}),this.indexes[u.overscaledZ][u.key]=new Jg(u,h.symbolInstances,h.bucketInstanceId),!0}removeBucketCrossTileIDs(u,h){for(const _ of h.getCrossTileIDsLists())for(const S of _)delete this.usedCrossTileIDs[u][S]}removeStaleBuckets(u){let h=!1;for(const _ in this.indexes){const S=this.indexes[_];for(const M in S)u[S[M].bucketInstanceId]||(this.removeBucketCrossTileIDs(_,S[M]),delete S[M],h=!0)}return h}}class Eo{constructor(){this.layerIndexes={},this.crossTileIDs=new lb,this.maxBucketInstanceId=0,this.bucketsInCurrentPlacement={}}addLayer(u,h,_){let S=this.layerIndexes[u.id];S===void 0&&(S=this.layerIndexes[u.id]=new Rp);let M=!1;const V={};S.handleWrapJump(_);for(const W of h){const X=W.getBucket(u);u.id===X?.layerIds[0]&&(X.bucketInstanceId||(this.maxBucketInstanceId+=1,X.bucketInstanceId=this.maxBucketInstanceId),S.addBucket(W.tileID,X,this.crossTileIDs)&&(M=!0),V[X.bucketInstanceId]=!0)}return S.removeStaleBuckets(V)&&(M=!0),M}pruneUnusedLayers(u){const h={};for(const _ of u)h[_]=!0;for(const _ in this.layerIndexes)h[_]||delete this.layerIndexes[_]}}var Ga="void main() {fragColor=vec4(1.0);}";const ki={prelude:jn(`#ifdef GL_ES
25precision mediump float;
26#else
27#if !defined(lowp)
28#define lowp
29#endif
30#if !defined(mediump)
31#define mediump
32#endif
33#if !defined(highp)
34#define highp
35#endif
36#endif
37out highp vec4 fragColor;`,`#ifdef GL_ES
38precision highp float;
39#else
40#if !defined(lowp)
41#define lowp
42#endif
43#if !defined(mediump)
44#define mediump
45#endif
46#if !defined(highp)
47#define highp
48#endif
49#endif
50vec2 unpack_float(const float packedValue) {int packedIntValue=int(packedValue);int v0=packedIntValue/256;return vec2(v0,packedIntValue-v0*256);}vec2 unpack_opacity(const float packedOpacity) {int intOpacity=int(packedOpacity)/2;return vec2(float(intOpacity)/127.0,mod(packedOpacity,2.0));}vec4 decode_color(const vec2 encodedColor) {return vec4(unpack_float(encodedColor[0])/255.0,unpack_float(encodedColor[1])/255.0
51);}float unpack_mix_vec2(const vec2 packedValue,const float t) {return mix(packedValue[0],packedValue[1],t);}vec4 unpack_mix_color(const vec4 packedColors,const float t) {vec4 minColor=decode_color(vec2(packedColors[0],packedColors[1]));vec4 maxColor=decode_color(vec2(packedColors[2],packedColors[3]));return mix(minColor,maxColor,t);}vec2 get_pattern_pos(const vec2 pixel_coord_upper,const vec2 pixel_coord_lower,const vec2 pattern_size,const float tile_units_to_pixels,const vec2 pos) {vec2 offset=mod(mod(mod(pixel_coord_upper,pattern_size)*256.0,pattern_size)*256.0+pixel_coord_lower,pattern_size);
51return (tile_units_to_pixels*pos+offset)/pattern_size;}mat3 rotationMatrixFromAxisAngle(vec3 u,float angle) {float c=cos(angle);float s=sin(angle);float c2=1.0-c;return mat3(u.x*u.x*c2+      c,u.x*u.y*c2-u.z*s,u.x*u.z*c2+u.y*s,u.y*u.x*c2+u.z*s,u.y*u.y*c2+    c,u.y*u.z*c2-u.x*s,u.z*u.x*c2-u.y*s,u.z*u.y*c2+u.x*s,u.z*u.z*c2+    c
52);}
53#ifdef TERRAIN3D
54uniform sampler2D u_terrain;uniform float u_terrain_dim;uniform mat4 u_terrain_matrix;uniform vec4 u_terrain_unpack;uniform float u_terrain_exaggeration;uniform highp sampler2D u_depth;
55#endif
56const highp vec4 bitSh=vec4(256.*256.*256.,256.*256.,256.,1.);const highp vec4 bitShifts=vec4(1.)/bitSh;highp float unpack(highp vec4 color) {return dot(color,bitShifts);}highp float depthOpacity(vec3 frag) {
57#ifdef TERRAIN3D
58highp float d=unpack(texture(u_depth,frag.xy*0.5+0.5))+0.0001-frag.z;return 1.0-max(0.0,min(1.0,-d*500.0));
59#else
60return 1.0;
61#endif
62}float calculate_visibility(vec4 pos) {
63#ifdef TERRAIN3D
64vec3 frag=pos.xyz/pos.w;highp float d=depthOpacity(frag);if (d > 0.95) return 1.0;return (d+depthOpacity(frag+vec3(0.0,0.01,0.0)))/2.0;
65#else
66return 1.0;
67#endif
68}float ele(vec2 pos) {
69#ifdef TERRAIN3D
70vec4 rgb=(texture(u_terrain,pos)*255.0)*u_terrain_unpack;return rgb.r+rgb.g+rgb.b-u_terrain_unpack.a;
71#else
72return 0.0;
73#endif
74}float get_elevation(vec2 pos) {
75#ifdef TERRAIN3D
76#ifdef GLOBE
77if ((pos.y <-32767.5) || (pos.y > 32766.5)) {return 0.0;}
78#endif
79vec2 coord=(u_terrain_matrix*vec4(pos,0.0,1.0)).xy*u_terrain_dim+1.0;vec2 f=fract(coord);vec2 c=(floor(coord)+0.5)/(u_terrain_dim+2.0);float d=1.0/(u_terrain_dim+2.0);float tl=ele(c);float tr=ele(c+vec2(d,0.0));float bl=ele(c+vec2(0.0,d));float br=ele(c+vec2(d,d));float elevation=mix(mix(tl,tr,f.x),mix(bl,br,f.x),f.y);return elevation*u_terrain_exaggeration;
80#else
81return 0.0;
82#endif
83}const float PI=3.141592653589793;uniform mat4 u_projection_matrix;`),projectionMercator:jn("","float projectLineThickness(float tileY) {return 1.0;}float projectCircleRadius(float tileY) {return 1.0;}vec4 projectTile(vec2 p) {vec4 result=u_projection_matrix*vec4(p,0.0,1.0);return result;}vec4 projectTile(vec2 p,vec2 rawPos) {vec4 result=u_projection_matrix*vec4(p,0.0,1.0);if (rawPos.y <-32767.5 || rawPos.y > 32766.5) {result.z=-10000000.0;}return result;}vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return u_projection_matrix*vec4(posInTile,elevation,1.0);}vec4 projectTileFor3D(vec2 posInTile,float elevation) {return projectTileWithElevation(posInTile,elevation);}"),projectionGlobe:jn("",`#define GLOBE_RADIUS 6371008.8
84uniform highp vec4 u_projection_tile_mercator_coords;uniform highp vec4 u_projection_clipping_plane;uniform highp float u_projection_transition;uniform mat4 u_projection_fallback_matrix;vec3 globeRotateVector(vec3 vec,vec2 angles) {vec3 axisRight=vec3(vec.z,0.0,-vec.x);vec3 axisUp=cross(axisRight,vec);axisRight=normalize(axisRight);axisUp=normalize(axisUp);vec2 t=tan(angles);return normalize(vec+axisRight*t.x+axisUp*t.y);}mat3 globeGetRotationMatrix(vec3 spherePos) {vec3 axisRight=vec3(spherePos.z,0.0,-spherePos.x);vec3 axisDown=cross(axisRight,spherePos);axisRight=normalize(axisRight);axisDown=normalize(axisDown);return mat3(axisRight,axisDown,spherePos
85);}float circumferenceRatioAtTileY(float tileY) {float mercator_pos_y=u_projection_tile_mercator_coords.y+u_projection_tile_mercator_coords.w*tileY;float spherical_y=2.0*atan(exp(PI-(mercator_pos_y*PI*2.0)))-PI*0.5;return cos(spherical_y);}float projectLineThickness(float tileY) {float thickness=1.0/circumferenceRatioAtTileY(tileY); 
86if (u_projection_transition < 0.999) {return mix(1.0,thickness,u_projection_transition);} else {return thickness;}}vec3 projectToSphere(vec2 translatedPos,vec2 rawPos) {vec2 mercator_pos=u_projection_tile_mercator_coords.xy+u_projection_tile_mercator_coords.zw*translatedPos;vec2 spherical;spherical.x=mercator_pos.x*PI*2.0+PI;spherical.y=2.0*atan(exp(PI-(mercator_pos.y*PI*2.0)))-PI*0.5;float len=cos(spherical.y);vec3 pos=vec3(sin(spherical.x)*len,sin(spherical.y),cos(spherical.x)*len
87);if (rawPos.y <-32767.5) {pos=vec3(0.0,1.0,0.0);}if (rawPos.y > 32766.5) {pos=vec3(0.0,-1.0,0.0);}return pos;}vec3 projectToSphere(vec2 posInTile) {return projectToSphere(posInTile,vec2(0.0,0.0));}float globeComputeClippingZ(vec3 spherePos) {return (1.0-(dot(spherePos,u_projection_clipping_plane.xyz)+u_projection_clipping_plane.w));}vec4 interpolateProjection(vec2 posInTile,vec3 spherePos,float elevation) {vec3 elevatedPos=spherePos*(1.0+elevation/GLOBE_RADIUS);vec4 globePosition=u_projection_matrix*vec4(elevatedPos,1.0);globePosition.z=globeComputeClippingZ(elevatedPos)*globePosition.w;if (u_projection_transition > 0.999) {return globePosition;}vec4 flatPosition=u_projection_fallback_matrix*vec4(posInTile,elevation,1.0);const float z_globeness_threshold=0.2;vec4 result=globePosition;result.z=mix(0.0,globePosition.z,clamp((u_projection_transition-z_globeness_threshold)/(1.0-z_globeness_threshold),0.0,1.0));result.xyw=mix(flatPosition.xyw,globePosition.xyw,u_projection_transition);if ((posInTile.y <-32767.5) || (posInTile.y > 32766.5)) {result=globePosition;const float poles_hidden_anim_percentage=0.02;result.z=mix(globePosition.z,100.0,pow(max((1.0-u_projection_transition)/poles_hidden_anim_percentage,0.0),8.0));}return result;}vec4 interpolateProjectionFor3D(vec2 posInTile,vec3 spherePos,float elevation) {vec3 elevatedPos=spherePos*(1.0+elevation/GLOBE_RADIUS);vec4 globePosition=u_projection_matrix*vec4(elevatedPos,1.0);if (u_projection_transition > 0.999) {return globePosition;}vec4 fallbackPosition=u_projection_fallback_matrix*vec4(posInTile,elevation,1.0);return mix(fallbackPosition,globePosition,u_projection_transition);}vec4 projectTile(vec2 posInTile) {return interpolateProjection(posInTile,projectToSphere(posInTile),0.0);}vec4 projectTile(vec2 posInTile,vec2 rawPos) {return interpolateProjection(posInTile,projectToSphere(posInTile,rawPos),0.0);}vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return interpolateProjection(posInTile,projectToSphere(posInTile),elevation);}vec4 projectTileFor3D(vec2 posInTile,float elevation) {vec3 spherePos=projectToSphere(posInTile,posInTile);return interpolateProjectionFor3D(posInTile,spherePos,elevation);}`),background:jn(`uniform vec4 u_color;uniform float u_opacity;void main() {fragColor=u_color*u_opacity;
88#ifdef OVERDRAW_INSPECTOR
89fragColor=vec4(1.0);
90#endif
91}`,"in vec2 a_pos;void main() {gl_Position=projectTile(a_pos);}"),backgroundPattern:jn(`uniform vec2 u_pattern_tl_a;uniform vec2 u_pattern_br_a;uniform vec2 u_pattern_tl_b;uniform vec2 u_pattern_br_b;uniform vec2 u_texsize;
91uniform float u_mix;uniform float u_opacity;uniform sampler2D u_image;in vec2 v_pos_a;in vec2 v_pos_b;void main() {vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(u_pattern_tl_a/u_texsize,u_pattern_br_a/u_texsize,imagecoord);vec4 color1=texture(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(u_pattern_tl_b/u_texsize,u_pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture(u_image,pos2);fragColor=mix(color1,color2,u_mix)*u_opacity;
92#ifdef OVERDRAW_INSPECTOR
93fragColor=vec4(1.0);
94#endif
95}`,"uniform vec2 u_pattern_size_a;uniform vec2 u_pattern_size_b;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_scale_a;uniform float u_scale_b;uniform float u_tile_units_to_pixels;in vec2 a_pos;out vec2 v_pos_a;out vec2 v_pos_b;void main() {gl_Position=projectTile(a_pos);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_a*u_pattern_size_a,u_tile_units_to_pixels,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_b*u_pattern_size_b,u_tile_units_to_pixels,a_pos);}"),circle:jn(`in vec3 v_data;in float v_visibility;
96#pragma mapbox: define highp vec4 color
97#pragma mapbox: define mediump float radius
98#pragma mapbox: define lowp float blur
99#pragma mapbox: define lowp float opacity
100#pragma mapbox: define highp vec4 stroke_color
101#pragma mapbox: define mediump float stroke_width
102#pragma mapbox: define lowp float stroke_opacity
103void main() {
104#pragma mapbox: initialize highp vec4 color
105#pragma mapbox: initialize mediump float radius
106#pragma mapbox: initialize lowp float blur
107#pragma mapbox: initialize lowp float opacity
108#pragma mapbox: initialize highp vec4 stroke_color
109#pragma mapbox: initialize mediump float stroke_width
110#pragma mapbox: initialize lowp float stroke_opacity
111vec2 extrude=v_data.xy;float extrude_length=length(extrude);float antialiased_blur=v_data.z;float opacity_t=smoothstep(0.0,antialiased_blur,extrude_length-1.0);float color_t=stroke_width < 0.01 ? 0.0 : smoothstep(antialiased_blur,0.0,extrude_length-radius/(radius+stroke_width));fragColor=v_visibility*opacity_t*mix(color*opacity,stroke_color*stroke_opacity,color_t);const float epsilon=0.5/255.0;if (fragColor.r < epsilon && fragColor.g < epsilon && fragColor.b < epsilon && fragColor.a < epsilon) {discard;}
112#ifdef OVERDRAW_INSPECTOR
113fragColor=vec4(1.0);
114#endif
115}`,`uniform bool u_scale_with_map;uniform bool u_pitch_with_map;uniform vec2 u_extrude_scale;uniform highp float u_globe_extrude_scale;uniform lowp float u_device_pixel_ratio;uniform highp float u_camera_to_center_distance;uniform vec2 u_translate;in vec2 a_pos;out vec3 v_data;out float v_visibility;
116#pragma mapbox: define highp vec4 color
117#pragma mapbox: define mediump float radius
118#pragma mapbox: define lowp float blur
119#pragma mapbox: define lowp float opacity
120#pragma mapbox: define highp vec4 stroke_color
121#pragma mapbox: define mediump float stroke_width
122#pragma mapbox: define lowp float stroke_opacity
123void main(void) {
124#pragma mapbox: initialize highp vec4 color
125#pragma mapbox: initialize mediump float radius
126#pragma mapbox: initialize lowp float blur
127#pragma mapbox: initialize lowp float opacity
128#pragma mapbox: initialize highp vec4 stroke_color
129#pragma mapbox: initialize mediump float stroke_width
130#pragma mapbox: initialize lowp float stroke_opacity
131vec2 pos_raw=a_pos+32768.0;vec2 extrude=vec2(mod(pos_raw,8.0)/7.0*2.0-1.0);vec2 circle_center=floor(pos_raw/8.0)+u_translate;float ele=get_elevation(circle_center);v_visibility=calculate_visibility(projectTileWithElevation(circle_center,ele));if (u_pitch_with_map) {
132#ifdef GLOBE
133vec3 center_vector=projectToSphere(circle_center);
134#endif
135float angle_scale=u_globe_extrude_scale;vec2 corner_position=circle_center;if (u_scale_with_map) {angle_scale*=(radius+stroke_width);corner_position+=extrude*u_extrude_scale*(radius+stroke_width);} else {
136#ifdef GLOBE
137vec4 projected_center=interpolateProjection(circle_center,center_vector,ele);
138#else
139vec4 projected_center=projectTileWithElevation(circle_center,ele);
140#endif
141corner_position+=extrude*u_extrude_scale*(radius+stroke_width)*(projected_center.w/u_camera_to_center_distance);angle_scale*=(radius+stroke_width)*(projected_center.w/u_camera_to_center_distance);}
142#ifdef GLOBE
143vec2 angles=extrude*angle_scale;vec3 corner_vector=globeRotateVector(center_vector,angles);gl_Position=interpolateProjection(corner_position,corner_vector,ele);
144#else
145gl_Position=projectTileWithElevation(corner_position,ele);
146#endif
147} else {gl_Position=projectTileWithElevation(circle_center,ele);if (gl_Position.z/gl_Position.w > 1.0) {gl_Position.xy=vec2(10000.0);}if (u_scale_with_map) {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*u_camera_to_center_distance;} else {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*gl_Position.w;}}float antialiasblur=-max(1.0/u_device_pixel_ratio/(radius+stroke_width),blur);v_data=vec3(extrude.x,extrude.y,antialiasblur);}`),clippingMask:jn(Ga,"in vec2 a_pos;void main() {gl_Position=projectTile(a_pos);}"),heatmap:jn(`uniform highp float u_intensity;in vec2 v_extrude;
148#pragma mapbox: define highp float weight
149#define GAUSS_COEF 0.3989422804014327
150void main() {
151#pragma mapbox: initialize highp float weight
152float d=-0.5*3.0*3.0*dot(v_extrude,v_extrude);float val=weight*u_intensity*GAUSS_COEF*exp(d);fragColor=vec4(val,1.0,1.0,1.0);
153#ifdef OVERDRAW_INSPECTOR
154fragColor=vec4(1.0);
155#endif
156}`,`uniform float u_extrude_scale;uniform float u_opacity;uniform float u_intensity;uniform highp float u_globe_extrude_scale;in vec2 a_pos;out vec2 v_extrude;
157#pragma mapbox: define highp float weight
158#pragma mapbox: define mediump float radius
159const highp float ZERO=1.0/255.0/16.0;
160#define GAUSS_COEF 0.3989422804014327
161void main(void) {
162#pragma mapbox: initialize highp float weight
163#pragma mapbox: initialize mediump float radius
164vec2 pos_raw=a_pos+32768.0;vec2 unscaled_extrude=vec2(mod(pos_raw,8.0)/7.0*2.0-1.0);float S=sqrt(-2.0*log(ZERO/weight/u_intensity/GAUSS_COEF))/3.0;v_extrude=S*unscaled_extrude;vec2 extrude=v_extrude*radius*u_extrude_scale;vec2 circle_center=floor(pos_raw/8.0);
165#ifdef GLOBE
166vec2 angles=v_extrude*radius*u_globe_extrude_scale;vec3 center_vector=projectToSphere(circle_center);vec3 corner_vector=globeRotateVector(center_vector,angles);gl_Position=interpolateProjection(circle_center+extrude,corner_vector,0.0);
167#else
168gl_Position=projectTileFor3D(circle_center+extrude,get_elevation(circle_center));
169#endif
170}`),heatmapTexture:jn(`uniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform float u_opacity;in vec2 v_pos;void main() {float t=texture(u_image,v_pos).r;vec4 color=texture(u_color_ramp,vec2(t,0.5));fragColor=color*u_opacity;
171#ifdef OVERDRAW_INSPECTOR
172fragColor=vec4(0.0);
173#endif
174}`,"uniform mat4 u_matrix;uniform vec2 u_world;in vec2 a_pos;out vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos*u_world,0,1);v_pos.x=a_pos.x;v_pos.y=1.0-a_pos.y;}"),collisionBox:jn("in float v_placed;in float v_notUsed;void main() {float alpha=0.5;fragColor=vec4(1.0,0.0,0.0,1.0)*alpha;if (v_placed > 0.5) {fragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {fragColor*=.1;}}","in vec2 a_anchor_pos;in vec2 a_placed;in vec2 a_box_real;uniform vec2 u_pixel_extrude_scale;out float v_placed;out float v_notUsed;void main() {gl_Position=projectTileWithElevation(a_anchor_pos,get_elevation(a_anchor_pos));gl_Position.xy=((a_box_real+0.5)*u_pixel_extrude_scale*2.0-1.0)*vec2(1.0,-1.0)*gl_Position.w;if (gl_Position.z/gl_Position.w < 1.1) {gl_Position.z=0.5;}v_placed=a_placed.x;v_notUsed=a_placed.y;}"),collisionCircle:jn("in float v_radius;in vec2 v_extrude;in float v_collision;void main() {float alpha=0.5;float stroke_radius=0.9;float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);fragColor=color*alpha*opacity_t;}","in vec2 a_pos;in float a_radius;in vec2 a_flags;uniform vec2 u_viewport_size;out float v_radius;out vec2 v_extrude;out float v_collision;void main() {float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(mix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_collision=collision;gl_Position=vec4((a_pos/u_viewport_size*2.0-1.0)*vec2(1.0,-1.0),0.0,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}"),colorRelief:jn(`#ifdef GL_ES
175precision highp float;
176#endif
177uniform sampler2D u_image;uniform vec4 u_unpack;uniform sampler2D u_elevation_stops;uniform sampler2D u_color_stops;uniform int u_color_ramp_size;uniform float u_opacity;in vec2 v_pos;float getElevation(vec2 coord) {vec4 data=texture(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack);}float getElevationStop(int stop) {float x=(float(stop)+0.5)/float(u_color_ramp_size);vec4 data=texture(u_elevation_stops,vec2(x,0))*255.0;data.a=-1.0;return dot(data,u_unpack);}void main() {float el=getElevation(v_pos);int r=(u_color_ramp_size-1);int l=0;float el_l=getElevationStop(l);float el_r=getElevationStop(r);while(r-l > 1){int m=(r+l)/2;float el_m=getElevationStop(m);if(el < el_m){r=m;el_r=el_m;}else
178{l=m;el_l=el_m;}}float x=(float(l)+(el-el_l)/(el_r-el_l)+0.5)/float(u_color_ramp_size);fragColor=u_opacity*texture(u_color_stops,vec2(x,0));
179#ifdef OVERDRAW_INSPECTOR
180fragColor=vec4(1.0);
181#endif
182}`,"uniform vec2 u_dimension;in vec2 a_pos;out vec2 v_pos;void main() {gl_Position=projectTile(a_pos,a_pos);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_pos/8192.0)*scale+epsilon;if (a_pos.y <-32767.5) {v_pos.y=0.0;}if (a_pos.y > 32766.5) {v_pos.y=1.0;}}"),debug:jn("uniform highp vec4 u_color;uniform sampler2D u_overlay;in vec2 v_uv;void main() {vec4 overlay_color=texture(u_overlay,v_uv);fragColor=mix(u_color,overlay_color,overlay_color.a);}","in vec2 a_pos;out vec2 v_uv;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=projectTileWithElevation(a_pos*u_overlay_scale,get_elevation(a_pos));}"),depth:jn(Ga,`in vec2 a_pos;void main() {
183#ifdef GLOBE
184gl_Position=projectTileFor3D(a_pos,0.0);
185#else
186gl_Position=u_projection_matrix*vec4(a_pos,0.0,1.0);
187#endif
188}`),fill:jn(`#pragma mapbox: define highp vec4 color
189#pragma mapbox: define lowp float opacity
190void main() {
191#pragma mapbox: initialize highp vec4 color
192#pragma mapbox: initialize lowp float opacity
193fragColor=color*opacity;
194#ifdef OVERDRAW_INSPECTOR
195fragColor=vec4(1.0);
196#endif
197}`,`uniform vec2 u_fill_translate;in vec2 a_pos;
198#pragma mapbox: define highp vec4 color
199#pragma mapbox: define lowp float opacity
200void main() {
201#pragma mapbox: initialize highp vec4 color
202#pragma mapbox: initialize lowp float opacity
203gl_Position=projectTile(a_pos+u_fill_translate,a_pos);}`),fillOutline:jn(`in vec2 v_pos;
204#ifdef GLOBE
205in float v_depth;
206#endif
207#pragma mapbox: define highp vec4 outline_color
208#pragma mapbox: define lowp float opacity
209void main() {
210#pragma mapbox: initialize highp vec4 outline_color
211#pragma mapbox: initialize lowp float opacity
212float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);fragColor=outline_color*(alpha*opacity);
213#ifdef GLOBE
214if (v_depth > 1.0) {discard;}
215#endif
216#ifdef OVERDRAW_INSPECTOR
217fragColor=vec4(1.0);
218#endif
219}`,`uniform vec2 u_world;uniform vec2 u_fill_translate;in vec2 a_pos;out vec2 v_pos;
220#ifdef GLOBE
221out float v_depth;
222#endif
223#pragma mapbox: define highp vec4 outline_color
224#pragma mapbox: define lowp float opacity
225void main() {
226#pragma mapbox: initialize highp vec4 outline_color
227#pragma mapbox: initialize lowp float opacity
228gl_Position=projectTile(a_pos+u_fill_translate,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;
229#ifdef GLOBE
230v_depth=gl_Position.z/gl_Position.w;
231#endif
232}`),fillOutlinePattern:jn(`uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;in vec2 v_pos_a;in vec2 v_pos_b;in vec2 v_pos;
233#ifdef GLOBE
234in float v_depth;
235#endif
236#pragma mapbox: define lowp float opacity
237#pragma mapbox: define lowp vec4 pattern_from
238#pragma mapbox: define lowp vec4 pattern_to
239void main() {
240#pragma mapbox: initialize lowp float opacity
241#pragma mapbox: initialize mediump vec4 pattern_from
242#pragma mapbox: initialize mediump vec4 pattern_to
243vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture(u_image,pos2);float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);fragColor=mix(color1,color2,u_fade)*alpha*opacity;
244#ifdef GLOBE
245if (v_depth > 1.0) {discard;}
246#endif
247#ifdef OVERDRAW_INSPECTOR
248fragColor=vec4(1.0);
249#endif
250}`,`uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;uniform vec2 u_fill_translate;in vec2 a_pos;out vec2 v_pos_a;out vec2 v_pos_b;out vec2 v_pos;
251#ifdef GLOBE
252out float v_depth;
253#endif
254#pragma mapbox: define lowp float opacity
255#pragma mapbox: define lowp vec4 pattern_from
256#pragma mapbox: define lowp vec4 pattern_to
257#pragma mapbox: define lowp float pixel_ratio_from
258#pragma mapbox: define lowp float pixel_ratio_to
259void main() {
260#pragma mapbox: initialize lowp float opacity
261#pragma mapbox: initialize mediump vec4 pattern_from
262#pragma mapbox: initialize mediump vec4 pattern_to
263#pragma mapbox: initialize lowp float pixel_ratio_from
264#pragma mapbox: initialize lowp float pixel_ratio_to
265vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;gl_Position=projectTile(a_pos+u_fill_translate,a_pos);vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;
266#ifdef GLOBE
267v_depth=gl_Position.z/gl_Position.w;
268#endif
269}`),fillPattern:jn(`#ifdef GL_ES
270precision highp float;
271#endif
272uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;in vec2 v_pos_a;in vec2 v_pos_b;
273#pragma mapbox: define lowp float opacity
274#pragma mapbox: define lowp vec4 pattern_from
275#pragma mapbox: define lowp vec4 pattern_to
276void main() {
277#pragma mapbox: initialize lowp float opacity
278#pragma mapbox: initialize mediump vec4 pattern_from
279#pragma mapbox: initialize mediump vec4 pattern_to
280vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture(u_image,pos2);fragColor=mix(color1,color2,u_fade)*opacity;
281#ifdef OVERDRAW_INSPECTOR
282fragColor=vec4(1.0);
283#endif
284}`,`uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;uniform vec2 u_fill_translate;in vec2 a_pos;out vec2 v_pos_a;out vec2 v_pos_b;
285#pragma mapbox: define lowp float opacity
286#pragma mapbox: define lowp vec4 pattern_from
287#pragma mapbox: define lowp vec4 pattern_to
288#pragma mapbox: define lowp float pixel_ratio_from
289#pragma mapbox: define lowp float pixel_ratio_to
290void main() {
291#pragma mapbox: initialize lowp float opacity
292#pragma mapbox: initialize mediump vec4 pattern_from
293#pragma mapbox: initialize mediump vec4 pattern_to
294#pragma mapbox: initialize lowp float pixel_ratio_from
295#pragma mapbox: initialize lowp float pixel_ratio_to
296vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_siz
296e_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;gl_Position=projectTile(a_pos+u_fill_translate,a_pos);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}`),fillExtrusion:jn(`in vec4 v_color;void main() {fragColor=v_color;
297#ifdef OVERDRAW_INSPECTOR
298fragColor=vec4(1.0);
299#endif
300}`,`uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp vec3 u_lightpos_globe;uniform lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec2 u_fill_translate;in vec2 a_pos;in vec4 a_normal_ed;
301#ifdef TERRAIN3D
302in vec2 a_centroid;
303#endif
304out vec4 v_color;
305#pragma mapbox: define highp float base
306#pragma mapbox: define highp float height
307#pragma mapbox: define highp vec4 color
308void main() {
309#pragma mapbox: initialize highp float base
310#pragma mapbox: initialize highp float height
311#pragma mapbox: initialize highp vec4 color
312vec3 normal=a_normal_ed.xyz;
313#ifdef TERRAIN3D
314float height_terrain3d_offset=get_elevation(a_centroid);float base_terrain3d_offset=height_terrain3d_offset-(base > 0.0 ? 0.0 : 10.0);
315#else
316float height_terrain3d_offset=0.0;float base_terrain3d_offset=0.0;
317#endif
318base=max(0.0,base)+base_terrain3d_offset;height=max(0.0,height)+height_terrain3d_offset;float t=mod(normal.x,2.0);float elevation=t > 0.0 ? height : base;vec2 posInTile=a_pos+u_fill_translate;
319#ifdef GLOBE
320vec3 spherePos=projectToSphere(posInTile,a_pos);gl_Position=interpolateProjectionFor3D(posInTile,spherePos,elevation);
321#else
322gl_Position=u_projection_matrix*vec4(posInTile,elevation,1.0);
323#endif
324float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;vec3 normalForLighting=normal/16384.0;float directional=clamp(dot(normalForLighting,u_lightpos),0.0,1.0);
325#ifdef GLOBE
326mat3 rotMatrix=globeGetRotationMatrix(spherePos);normalForLighting=rotMatrix*normalForLighting;directional=mix(directional,clamp(dot(normalForLighting,u_lightpos_globe),0.0,1.0),u_projection_transition);
327#endif
328directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}`),fillExtrusionPattern:jn(`uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;in vec2 v_pos_a;in vec2 v_pos_b;in vec4 v_lighting;
329#pragma mapbox: define lowp float base
330#pragma mapbox: define lowp float height
331#pragma mapbox: define lowp vec4 pattern_from
332#pragma mapbox: define lowp vec4 pattern_to
333#pragma mapbox: define lowp float pixel_ratio_from
334#pragma mapbox: define lowp float pixel_ratio_to
335void main() {
336#pragma mapbox: initialize lowp float base
337#pragma mapbox: initialize lowp float height
338#pragma mapbox: initialize mediump vec4 pattern_from
339#pragma mapbox: initialize mediump vec4 pattern_to
340#pragma mapbox: initialize lowp float pixel_ratio_from
341#pragma mapbox: initialize lowp float pixel_ratio_to
342vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture(u_image,pos2);vec4 mixedColor=mix(color1,color2,u_fade);fragColor=mixedColor*v_lighting;
343#ifdef OVERDRAW_INSPECTOR
344fragColor=vec4(1.0);
345#endif
346}`,`uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform vec3 u_scale;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec2 u_fill_translate;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp vec3 u_lightpos_globe;uniform lowp float u_lightintensity;in vec2 a_pos;in vec4 a_normal_ed;
347#ifdef TERRAIN3D
348in vec2 a_centroid;
349#endif
350#ifdef GLOBE
351out vec3 v_sphere_pos;
352#endif
353out vec2 v_pos_a;out vec2 v_pos_b;out vec4 v_lighting;
354#pragma mapbox: define lowp float base
355#pragma mapbox: define lowp float height
356#pragma mapbox: define lowp vec4 pattern_from
357#pragma mapbox: define lowp vec4 pattern_to
358#pragma mapbox: define lowp float pixel_ratio_from
359#pragma mapbox: define lowp float pixel_ratio_to
360void main() {
361#pragma mapbox: initialize lowp float base
362#pragma mapbox: initialize lowp float height
363#pragma mapbox: initialize mediump vec4 pattern_from
364#pragma mapbox: initialize mediump vec4 pattern_to
365#pragma mapbox: initialize lowp float pixel_ratio_from
366#pragma mapbox: initialize lowp float pixel_ratio_to
367vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec3 normal=a_normal_ed.xyz;float edgedistance=a_normal_ed.w;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;
368#ifdef TERRAIN3D
369float height_terrain3d_offset=get_elevation(a_centroid);float base_terrain3d_offset=height_terrain3d_offset-(base > 0.0 ? 0.0 : 10.0);
370#else
371float height_terrain3d_offset=0.0;float base_terrain3d_offset=0.0;
372#endif
373base=max(0.0,base)+base_terrain3d_offset;height=max(0.0,height)+height_terrain3d_offset;float t=mod(normal.x,2.0);float elevation=t > 0.0 ? height : base;vec2 posInTile=a_pos+u_fill_translate;
374#ifdef GLOBE
375vec3 spherePos=projectToSphere(posInTile,a_pos);vec3 elevatedPos=spherePos*(1.0+elevation/GLOBE_RADIUS);v_sphere_pos=elevatedPos;gl_Position=interpolateProjectionFor3D(posInTile,spherePos,elevation);
376#else
377gl_Position=u_projection_matrix*vec4(posInTile,elevation,1.0);
378#endif
379vec2 pos=normal.x==1.0 && normal.y==0.0 && normal.z==16384.0
380? a_pos
381: vec2(edgedistance,elevation*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}`),hillshadePrepare:jn(`#ifdef GL_ES
382precision highp float;
383#endif
384uniform sampler2D u_image;in vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform vec4 u_unpack;float getElevation(vec2 coord,float bias) {vec4 data=texture(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack);}void main() {vec2 epsilon=1.0/u_dimension;float tileSize=u_dimension.x-2.0;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y),0.0);float b=getElevation(v_pos+vec2(0,-epsilon.y),0.0);float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y),0.0);float d=getElevation(v_pos+vec2(-epsilon.x,0),0.0);float e=getElevation(v_pos,0.0);float f=getElevation(v_pos+vec2(epsilon.x,0),0.0);float g=getElevation(v_pos+vec2(-epsilon.x,epsilon.y),0.0);float h=getElevation(v_pos+vec2(0,epsilon.y),0.0);float i=getElevation(v_pos+vec2(epsilon.x,epsilon.y),0.0);float exaggerationFactor=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;float exaggeration=u_zoom < 15.0 ? (u_zoom-15.0)*exaggerationFactor : 0.0;vec2 deriv=vec2((c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c))*tileSize/p
384ow(2.0,exaggeration+(28.2562-u_zoom));fragColor=clamp(vec4(deriv.x/8.0+0.5,deriv.y/8.0+0.5,1.0,1.0),0.0,1.0);
385#ifdef OVERDRAW_INSPECTOR
386fragColor=vec4(1.0);
387#endif
388}`,"uniform mat4 u_matrix;uniform vec2 u_dimension;in vec2 a_pos;in vec2 a_texture_pos;out vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}"),hillshade:jn(`uniform sampler2D u_image;in vec2 v_pos;uniform vec2 u_latrange;uniform float u_exaggeration;uniform vec4 u_accent;uniform int u_method;uniform float u_altitudes[NUM_ILLUMINATION_SOURCES];uniform float u_azimuths[NUM_ILLUMINATION_SOURCES];uniform vec4 u_shadows[NUM_ILLUMINATION_SOURCES];uniform vec4 u_highlights[NUM_ILLUMINATION_SOURCES];
389#define PI 3.141592653589793
390#define STANDARD 0
391#define COMBINED 1
392#define IGOR 2
393#define MULTIDIRECTIONAL 3
394#define BASIC 4
395float get_aspect(vec2 deriv){return deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);}void igor_hillshade(vec2 deriv){deriv=deriv*u_exaggeration*2.0;float aspect=get_aspect(deriv);float azimuth=u_azimuths[0]+PI;float slope_stength=atan(length(deriv))*2.0/PI;float aspect_strength=1.0-abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);float shadow_strength=slope_stength*aspect_strength;float highlight_strength=slope_stength*(1.0-aspect_strength);fragColor=u_shadows[0]*shadow_strength+u_highlights[0]*highlight_strength;}void standard_hillshade(vec2 deriv){float azimuth=u_azimuths[0]+PI;float slope=atan(0.625*length(deriv));float aspect=get_aspect(deriv);float intensity=u_exaggeration;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadows[0],u_highlights[0],shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);fragColor=accent_color*(1.0-shade_color.a)+shade_color;}void basic_hillshade(vec2 deriv){deriv=deriv*u_exaggeration*2.0;float azimuth=u_azimuths[0]+PI;float cos_az=cos(azimuth);float sin_az=sin(azimuth);float cos_alt=cos(u_altitudes[0]);float sin_alt=sin(u_altitudes[0]);float cang=(sin_alt-(deriv.y*cos_az*cos_alt-deriv.x*sin_az*cos_alt))/sqrt(1.0+dot(deriv,deriv));float shade=clamp(cang,0.0,1.0);if(shade > 0.5){fragColor=u_highlights[0]*(2.0*shade-1.0);}else
396{fragColor=u_shadows[0]*(1.0-2.0*shade);}}void multidirectional_hillshade(vec2 deriv){deriv=deriv*u_exaggeration*2.0;fragColor=vec4(0,0,0,0);for(int i=0; i < NUM_ILLUMINATION_SOURCES; i++){float cos_alt=cos(u_altitudes[i]);float sin_alt=sin(u_altitudes[i]);float cos_az=-cos(u_azimuths[i]);float sin_az=-sin(u_azimuths[i]);float cang=(sin_alt-(deriv.y*cos_az*cos_alt-deriv.x*sin_az*cos_alt))/sqrt(1.0+dot(deriv,deriv));float shade=clamp(cang,0.0,1.0);if(shade > 0.5){fragColor+=u_highlights[i]*(2.0*shade-1.0)/float(NUM_ILLUMINATION_SOURCES);}else
397{fragColor+=u_shadows[i]*(1.0-2.0*shade)/float(NUM_ILLUMINATION_SOURCES);}}}void combined_hillshade(vec2 deriv){deriv=deriv*u_exaggeration*2.0;float azimuth=u_azimuths[0]+PI;float cos_az=cos(azimuth);float sin_az=sin(azimuth);float cos_alt=cos(u_altitudes[0]);float sin_alt=sin(u_altitudes[0]);float cang=acos((sin_alt-(deriv.y*cos_az*cos_alt-deriv.x*sin_az*cos_alt))/sqrt(1.0+dot(deriv,deriv)));cang=clamp(cang,0.0,PI/2.0);float shade=cang*atan(length(deriv))*4.0/PI/PI;float highlight=(PI/2.0-cang)*atan(length(deriv))*4.0/PI/PI;fragColor=u_shadows[0]*shade+u_highlights[0]*highlight;}void main() {vec4 pixel=texture(u_image,v_pos);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));vec2 deriv=((pixel.rg*8.0)-4.0)/scaleFactor;if (u_method==BASIC) {basic_hillshade(deriv);} else if (u_method==COMBINED) {combined_hillshade(deriv);} else if (u_method==IGOR) {igor_hillshade(deriv);} else if (u_method==MULTIDIRECTIONAL) {multidirectional_hillshade(deriv);} else if (u_method==STANDARD) {standard_hillshade(deriv);} else {standard_hillshade(deriv);}
398#ifdef OVERDRAW_INSPECTOR
399fragColor=vec4(1.0);
400#endif
401}`,"uniform mat4 u_matrix;in vec2 a_pos;out vec2 v_pos;void main() {gl_Position=projectTile(a_pos,a_pos);v_pos=a_pos/8192.0;if (a_pos.y <-32767.5) {v_pos.y=0.0;}if (a_pos.y > 32766.5) {v_pos.y=1.0;}}"),line:jn(`uniform lowp float u_device_pixel_ratio;in vec2 v_width2;in vec2 v_normal;in float v_gamma_scale;
402#ifdef GLOBE
403in float v_depth;
404#endif
405#pragma mapbox: define highp vec4 color
406#pragma mapbox: define lowp float blur
407#pragma mapbox: define lowp float opacity
408void main() {
409#pragma mapbox: initialize highp vec4 color
410#pragma mapbox: initialize lowp float blur
411#pragma mapbox: initialize lowp float opacity
412float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);fragColor=color*(alpha*opacity);
413#ifdef GLOBE
414if (v_depth > 1.0) {discard;}
415#endif
416#ifdef OVERDRAW_INSPECTOR
417fragColor=vec4(1.0);
418#endif
419}`,`
420#define scale 0.015873016
421in vec2 a_pos_normal;in vec4 a_data;uniform vec2 u_translation;uniform mediump float u_ratio;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;out vec2 v_normal;out vec2 v_width2;out float v_gamma_scale;out highp float v_linesofar;
422#ifdef GLOBE
423out float v_depth;
424#endif
425#pragma mapbox: define highp vec4 color
426#pragma mapbox: define lowp float blur
427#pragma mapbox: define lowp float opacity
428#pragma mapbox: define mediump float gapwidth
429#pragma mapbox: define lowp float offset
430#pragma mapbox: define mediump float width
431void main() {
432#pragma mapbox: initialize highp vec4 color
433#pragma mapbox: initialize lowp float blur
434#pragma mapbox: initialize lowp float opacity
435#pragma mapbox: initialize mediump float gapwidth
436#pragma mapbox: initialize lowp float offset
437#pragma mapbox: initialize mediump float width
438float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);
438float adjustedThickness=projectLineThickness(pos.y);vec4 projected_no_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation);vec4 projected_with_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation+dist/u_ratio*adjustedThickness);gl_Position=projected_with_extrude;
439#ifdef GLOBE
440v_depth=gl_Position.z/gl_Position.w;
441#endif
442#ifdef TERRAIN3D
443v_gamma_scale=1.0;
444#else
445float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length((projected_with_extrude.xy-projected_no_extrude.xy)/projected_with_extrude.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;
446#endif
447v_width2=vec2(outset,inset);}`),lineGradient:jn(`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;in vec2 v_width2;in vec2 v_normal;in float v_gamma_scale;in highp vec2 v_uv;
448#ifdef GLOBE
449in float v_depth;
450#endif
451#pragma mapbox: define lowp float blur
452#pragma mapbox: define lowp float opacity
453void main() {
454#pragma mapbox: initialize lowp float blur
455#pragma mapbox: initialize lowp float opacity
456float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);vec4 color=texture(u_image,v_uv);fragColor=color*(alpha*opacity);
457#ifdef GLOBE
458if (v_depth > 1.0) {discard;}
459#endif
460#ifdef OVERDRAW_INSPECTOR
461fragColor=vec4(1.0);
462#endif
463}`,`
464#define scale 0.015873016
465in vec2 a_pos_normal;in vec4 a_data;in float a_uv_x;in float a_split_index;uniform vec2 u_translation;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;uniform float u_image_height;out vec2 v_normal;out vec2 v_width2;out float v_gamma_scale;out highp vec2 v_uv;
466#ifdef GLOBE
467out float v_depth;
468#endif
469#pragma mapbox: define lowp float blur
470#pragma mapbox: define lowp float opacity
471#pragma mapbox: define mediump float gapwidth
472#pragma mapbox: define lowp float offset
473#pragma mapbox: define mediump float width
474void main() {
475#pragma mapbox: initialize lowp float blur
476#pragma mapbox: initialize lowp float opacity
477#pragma mapbox: initialize mediump float gapwidth
478#pragma mapbox: initialize lowp float offset
479#pragma mapbox: initialize mediump float width
480float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;highp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec2(a_uv_x,a_split_index*texel_height-half_texel_height);vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);float adjustedThickness=projectLineThickness(pos.y);vec4 projected_no_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation);vec4 projected_with_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation+dist/u_ratio*adjustedThickness);gl_Position=projected_with_extrude;
481#ifdef GLOBE
482v_depth=gl_Position.z/gl_Position.w;
483#endif
484#ifdef TERRAIN3D
485v_gamma_scale=1.0;
486#else
487float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length((projected_with_extrude.xy-projected_no_extrude.xy)/projected_with_extrude.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;
488#endif
489v_width2=vec2(outset,inset);}`),linePattern:jn(`#ifdef GL_ES
490precision highp float;
491#endif
492uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;in vec2 v_normal;in vec2 v_width2;in float v_linesofar;in float v_gamma_scale;in float v_width;
493#ifdef GLOBE
494in float v_depth;
495#endif
496#pragma mapbox: define lowp vec4 pattern_from
497#pragma mapbox: define lowp vec4 pattern_to
498#pragma mapbox: define lowp float pixel_ratio_from
499#pragma mapbox: define lowp float pixel_ratio_to
500#pragma mapbox: define lowp float blur
501#pragma mapbox: define lowp float opacity
502void main() {
503#pragma mapbox: initialize mediump vec4 pattern_from
504#pragma mapbox: initialize mediump vec4 pattern_to
505#pragma mapbox: initialize lowp float pixel_ratio_from
506#pragma mapbox: initialize lowp float pixel_ratio_to
507#pragma mapbox: initialize lowp float blur
508#pragma mapbox: initialize lowp float opacity
509vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;vec2 pattern_size_a=vec2(display_size_a.x*fromScale/tileZoomRatio,display_size_a.y);vec2 pattern_size_b=vec2(display_size_b.x*toScale/tileZoomRatio,display_size_b.y);float aspect_a=display_size_a.y/v_width;float aspect_b=display_size_b.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x_a=mod(v_linesofar/pattern_size_a.x*aspect_a,1.0);float x_b=mod(v_linesofar/pattern_size_b.x*aspect_b,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos_a=mix(pattern_tl_a*texel_size-texel_size,pattern_br_a*texel_size+texel_size,vec2(x_a,y));vec2 pos_b=mix(pattern_tl_b*texel_size-texel_size,pattern_br_b*texel_size+texel_size,vec2(x_b,y));vec4 color=mix(texture(u_image,pos_a),texture(u_image,pos_b),u_fade);fragColor=color*alpha*opacity;
510#ifdef GLOBE
511if (v_depth > 1.0) {discard;}
512#endif
513#ifdef OVERDRAW_INSPECTOR
514fragColor=vec4(1.0);
515#endif
516}`,`
517#define scale 0.015873016
518#define LINE_DISTANCE_SCALE 2.0
519in vec2 a_pos_normal;in vec4 a_data;uniform vec2 u_translation;uniform vec2 u_units_to_pixels;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;out vec2 v_normal;out vec2 v_width2;out float v_linesofar;out float v_gamma_scale;out float v_width;
520#ifdef GLOBE
521out float v_depth;
522#endif
523#pragma mapbox: define lowp float blur
524#pragma mapbox: define lowp float opacity
525#pragma mapbox: define lowp float offset
526#pragma mapbox: define mediump float gapwidth
527#pragma mapbox: define mediump float width
528#pragma mapbox: define lowp float floorwidth
529#pragma mapbox: define lowp vec4 pattern_from
530#pragma mapbox: define lowp vec4 pattern_to
531#pragma mapbox: define lowp float pixel_ratio_from
532#pragma mapbox: define lowp float pixel_ratio_to
533void main() {
534#pragma mapbox: initialize lowp float blur
535#pragma mapbox: initialize lowp float opacity
536#pragma mapbox: initialize lowp float offset
537#pragma mapbox: initialize mediump float gapwidth
538#pragma mapbox: initialize mediump float width
539#pragma mapbox: initialize lowp float floorwidth
540#pragma mapbox: initialize mediump vec4 pattern_from
541#pragma mapbox: initialize mediump vec4 pattern_to
542#pragma mapbox: initialize lowp float pixel_ratio_from
543#pragma mapbox: initialize lowp float pixel_ratio_to
544float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);
544float adjustedThickness=projectLineThickness(pos.y);vec4 projected_no_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation);vec4 projected_with_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation+dist/u_ratio*adjustedThickness);gl_Position=projected_with_extrude;
545#ifdef GLOBE
546v_depth=gl_Position.z/gl_Position.w;
547#endif
548#ifdef TERRAIN3D
549v_gamma_scale=1.0;
550#else
551float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length((projected_with_extrude.xy-projected_no_extrude.xy)/projected_with_extrude.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;
552#endif
553v_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}`),lineSDF:jn(`uniform lowp float u_device_pixel_ratio;uniform lowp float u_lineatlas_width;uniform sampler2D u_image;uniform float u_mix;in vec2 v_normal;in vec2 v_width2;in vec2 v_tex_a;in vec2 v_tex_b;in float v_gamma_scale;
554#ifdef GLOBE
555in float v_depth;
556#endif
557#pragma mapbox: define highp vec4 color
558#pragma mapbox: define lowp float blur
559#pragma mapbox: define lowp float opacity
560#pragma mapbox: define mediump float width
561#pragma mapbox: define lowp float floorwidth
562#pragma mapbox: define mediump vec4 dasharray_from
563#pragma mapbox: define mediump vec4 dasharray_to
564void main() {
565#pragma mapbox: initialize highp vec4 color
566#pragma mapbox: initialize lowp float blur
567#pragma mapbox: initialize lowp float opacity
568#pragma mapbox: initialize mediump float width
569#pragma mapbox: initialize lowp float floorwidth
570#pragma mapbox: initialize mediump vec4 dasharray_from
571#pragma mapbox: initialize mediump vec4 dasharray_to
572float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float sdfdist_a=texture(u_image,v_tex_a).a;float sdfdist_b=texture(u_image,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);
572float sdfgamma=(u_lineatlas_width/256.0/u_device_pixel_ratio)/min(dasharray_from.w,dasharray_to.w);alpha*=smoothstep(0.5-sdfgamma/floorwidth,0.5+sdfgamma/floorwidth,sdfdist);fragColor=color*(alpha*opacity);
573#ifdef GLOBE
574if (v_depth > 1.0) {discard;}
575#endif
576#ifdef OVERDRAW_INSPECTOR
577fragColor=vec4(1.0);
578#endif
579}`,`
580#define scale 0.015873016
581#define LINE_DISTANCE_SCALE 2.0
582in vec2 a_pos_normal;in vec4 a_data;uniform vec2 u_translation;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;uniform float u_tileratio;uniform float u_crossfade_from;uniform float u_crossfade_to;uniform float u_lineatlas_height;out vec2 v_normal;out vec2 v_width2;out vec2 v_tex_a;out vec2 v_tex_b;out float v_gamma_scale;
583#ifdef GLOBE
584out float v_depth;
585#endif
586#pragma mapbox: define highp vec4 color
587#pragma mapbox: define lowp float blur
588#pragma mapbox: define lowp float opacity
589#pragma mapbox: define mediump float gapwidth
590#pragma mapbox: define lowp float offset
591#pragma mapbox: define mediump float width
592#pragma mapbox: define lowp float floorwidth
593#pragma mapbox: define mediump vec4 dasharray_from
594#pragma mapbox: define mediump vec4 dasharray_to
595void main() {
596#pragma mapbox: initialize highp vec4 color
597#pragma mapbox: initialize lowp float blur
598#pragma mapbox: initialize lowp float opacity
599#pragma mapbox: initialize mediump float gapwidth
600#pragma mapbox: initialize lowp float offset
601#pragma mapbox: initialize mediump float width
602#pragma mapbox: initialize lowp float floorwidth
603#pragma mapbox: initialize mediump vec4 dasharray_from
604#pragma mapbox: initialize mediump vec4 dasharray_to
605float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);float adjustedThickness=projectLineThickness(pos.y);vec4 projected_no_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation);vec4 projected_with_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation+dist/u_ratio*adjustedThickness);gl_Position=projected_with_extrude;
606#ifdef GLOBE
607v_depth=gl_Position.z/gl_Position.w;
608#endif
609#ifdef TERRAIN3D
610v_gamma_scale=1.0;
611#else
612float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length((projected_with_extrude.xy-projected_no_extrude.xy)/projected_with_extrude.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;
613#endif
614float u_patternscale_a_x=u_tileratio/dasharray_from.w/u_crossfade_from;float u_patternscale_a_y=-dasharray_from.z/2.0/u_lineatlas_height;float u_patternscale_b_x=u_tileratio/dasharray_to.w/u_crossfade_to;float u_patternscale_b_y=-dasharray_to.z/2.0/u_lineatlas_height;v_tex_a=vec2(a_linesofar*u_patternscale_a_x/floorwidth,normal.y*u_patternscale_a_y+(float(dasharray_from.y)+0.5)/u_lineatlas_height);v_tex_b=vec2(a_linesofar*u_patternscale_b_x/floorwidth,normal.y*u_patternscale_b_y+(float(dasharray_to.y)+0.5)/u_lineatlas_height);v_width2=vec2(outset,inset);}`),lineGradientSDF:jn(`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform sampler2D u_image_dash;uniform float u_mix;uniform lowp float u_lineatlas_width;in vec2 v_normal;in vec2 v_width2;in vec2 v_tex_a;in vec2 v_tex_b;in float v_gamma_scale;in highp vec2 v_uv;
615#ifdef GLOBE
616in float v_depth;
617#endif
618#pragma mapbox: define lowp float blur
619#pragma mapbox: define lowp float opacity
620#pragma mapbox: define mediump float width
621#pragma mapbox: define lowp float floorwidth
622#pragma mapbox: define mediump vec4 dasharray_from
623#pragma mapbox: define mediump vec4 dasharray_to
624void main() {
625#pragma mapbox: initialize lowp float blur
626#pragma mapbox: initialize lowp float opacity
627#pragma mapbox: initialize mediump float width
628#pragma mapbox: initialize lowp float floorwidth
629#pragma mapbox: initialize mediump vec4 dasharray_from
630#pragma mapbox: initialize mediump vec4 dasharray_to
631float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);vec4 color=texture(u_image,v_uv);float sdfdist_a=texture(u_image_dash,v_tex_a).a;float sdfdist_b=texture(u_image_dash,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);
631float sdfgamma=(u_lineatlas_width/256.0)/min(dasharray_from.w,dasharray_to.w);float dash_alpha=smoothstep(0.5-sdfgamma/floorwidth,0.5+sdfgamma/floorwidth,sdfdist);fragColor=color*(alpha*dash_alpha*opacity);
632#ifdef GLOBE
633if (v_depth > 1.0) {discard;}
634#endif
635#ifdef OVERDRAW_INSPECTOR
636fragColor=vec4(1.0);
637#endif
638}`,`
639#define scale 0.015873016
640#define LINE_DISTANCE_SCALE 2.0
641in vec2 a_pos_normal;in vec4 a_data;in float a_uv_x;in float a_split_index;uniform vec2 u_translation;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;uniform float u_image_height;uniform float u_tileratio;uniform float u_crossfade_from;uniform float u_crossfade_to;uniform float u_lineatlas_height;out vec2 v_normal;out vec2 v_width2;out float v_gamma_scale;out highp vec2 v_uv;out vec2 v_tex_a;out vec2 v_tex_b;
642#ifdef GLOBE
643out float v_depth;
644#endif
645#pragma mapbox: define lowp float blur
646#pragma mapbox: define lowp float opacity
647#pragma mapbox: define mediump float gapwidth
648#pragma mapbox: define lowp float offset
649#pragma mapbox: define mediump float width
650#pragma mapbox: define lowp float floorwidth
651#pragma mapbox: define mediump vec4 dasharray_from
652#pragma mapbox: define mediump vec4 dasharray_to
653void main() {
654#pragma mapbox: initialize lowp float blur
655#pragma mapbox: initialize lowp float opacity
656#pragma mapbox: initialize mediump float gapwidth
657#pragma mapbox: initialize lowp float offset
658#pragma mapbox: initialize mediump float width
659#pragma mapbox: initialize lowp float floorwidth
660#pragma mapbox: initialize mediump vec4 dasharray_from
661#pragma mapbox: initialize mediump vec4 dasharray_to
662float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;float texel_height=1.0/u_image_height;float half_texel_height=0.5*texel_height;v_uv=vec2(a_uv_x,a_split_index*texel_height-half_texel_height);vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);float adjustedThickness=projectLineThickness(pos.y);vec4 projected_no_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation);vec4 projected_with_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation+dist/u_ratio*adjustedThickness);gl_Position=projected_with_extrude;
663#ifdef GLOBE
664v_depth=gl_Position.z/gl_Position.w;
665#endif
666#ifdef TERRAIN3D
667v_gamma_scale=1.0;
668#else
669float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length((projected_with_extrude.xy-projected_no_extrude.xy)/projected_with_extrude.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;
670#endif
671float u_patternscale_a_x=u_tileratio/dasharray_from.w/u_crossfade_from;float u_patternscale_a_y=-dasharray_from.z/2.0/u_lineatlas_height;float u_patternscale_b_x=u_tileratio/dasharray_to.w/u_crossfade_to;float u_patternscale_b_y=-dasharray_to.z/2.0/u_lineatlas_height;v_tex_a=vec2(a_linesofar*u_patternscale_a_x/floorwidth,normal.y*u_patternscale_a_y+(float(dasharray_from.y)+0.5)/u_lineatlas_height);v_tex_b=vec2(a_linesofar*u_patternscale_b_x/floorwidth,normal.y*u_patternscale_b_y+(float(dasharray_to.y)+0.5)/u_lineatlas_height);v_width2=vec2(outset,inset);}`),raster:jn(`uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;in vec2 v_pos0;in vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture(u_image0,v_pos0);vec4 color1=texture(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);fragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a);
672#ifdef OVERDRAW_INSPECTOR
673fragColor=vec4(1.0);
674#endif
675}`,`uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;uniform vec4 u_coords_top;uniform vec4 u_coords_bottom;in vec2 a_pos;out vec2 v_pos0;out vec2 v_pos1;void main() {vec2 fractionalPos=a_pos/8192.0;vec2 position=mix(mix(u_coords_top.xy,u_coords_top.zw,fractionalPos.x),mix(u_coords_bottom.xy,u_coords_bottom.zw,fractionalPos.x),fractionalPos.y);gl_Position=projectTile(position,position);v_pos0=((fractionalPos-0.5)/u_buffer_scale)+0.5;
676#ifdef GLOBE
677if (a_pos.y <-32767.5) {v_pos0.y=0.0;}if (a_pos.y > 32766.5) {v_pos0.y=1.0;}
678#endif
679v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}`),symbolIcon:jn(`uniform sampler2D u_texture;in vec2 v_tex;in float v_total_opacity;void main() {fragColor=texture(u_texture,v_tex)*v_total_opacity;
680#ifdef OVERDRAW_INSPECTOR
681fragColor=vec4(1.0);
682#endif
683}`,`in vec4 a_pos_offset;in vec4 a_data;in vec4 a_pixeloffset;in vec3 a_projected_pos;in float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;uniform bool u_is_along_line;uniform bool u_is_variable_anchor;uniform vec2 u_translation;uniform float u_pitched_scale;out vec2 v_tex;out float v_total_opacity;
684#pragma mapbox: define lowp float opacity
685void main() {
686#pragma mapbox: initialize lowp float opacity
687vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_minFontScale=a_pixeloffset.zw/256.0;float ele=get_elevation(a_pos);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 translated_a_pos=a_pos+u_translation;vec4 projectedPoint=projectTileWithElevation(translated_a_pos,ele);vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float visibility=calculate_visibility(projectedPoint);v_total_opacity=opacity*max(0.0,min(visibility,fade_opacity[0]+fade_change));if (v_total_opacity < 0.1){gl_Position=vec4(-2.,-2.,-2.,1.);return;}highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?
688camera_to_anchor_distance/u_camera_to_center_distance :
689u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=projectTileWithElevation(translated_a_pos+vec2(1,0),ele);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos;if (u_is_along_line || u_is_variable_anchor) {projected_pos=vec4(a_projected_pos.xy,ele,1.0);} else if (u_pitch_with_map) {projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy+u_translation,ele,1.0);} else {projected_pos=u_label_plane_matrix*projectTileWithElevation(a_projected_pos.xy+u_translation,ele);}float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;float projectionScaling=1.0;
690#ifdef GLOBE
691if(u_pitch_with_map) {float anchor_pos_tile_y=(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w,z,1.0)).y;projectionScaling=mix(projectionScaling,1.0/circumferenceRatioAtTileY(anchor_pos_tile_y)*u_pitched_scale,u_projection_transition);}
692#endif
693vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}gl_Position=finalPos;v_tex=a_tex/u_texsize;}`),symbolSDF:jn(`#define SDF_PX 8.0
694uniform bool u_is_halo;uniform bool u_is_plain;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;in vec2 v_data0;in vec3 v_data1;
695#pragma mapbox: define highp vec4 fill_color
696#pragma mapbox: define highp vec4 halo_color
697#pragma mapbox: define lowp float halo_width
698#pragma mapbox: define lowp float halo_blur
699void main() {
700#pragma mapbox: initialize highp vec4 fill_color
701#pragma mapbox: initialize highp vec4 halo_color
702#pragma mapbox: initialize lowp float halo_width
703#pragma mapbox: initialize lowp float halo_blur
704float EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float total_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float inner_edge=(256.0-64.0)/256.0;lowp float dist=texture(u_texture,tex).a;lowp vec4 color_alpha_out_text,color_alpha_out_halo;if (u_is_plain){highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(inner_edge-gamma_scaled,inner_edge+gamma_scaled,dist);color_alpha_out_text=total_opacity*alpha*fill_color;}if (u_is_halo) {float gamma_halo=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);float inner_edge_halo=inner_edge+gamma_halo*gamma_scale;highp float gamma_scaled_halo=gamma_halo*gamma_scale;highp float alpha_halo=smoothstep(inner_edge_halo-gamma_scaled_halo,inner_edge_halo+gamma_scaled_halo,dist);highp float halo_edge=(6.0-halo_width/fontScale)/SDF_PX;alpha_halo= min(smoothstep(halo_edge-gamma_scaled_halo,halo_edge+gamma_scaled_halo,dist),1.0-alpha_halo);color_alpha_out_halo=total_opacity*alpha_halo*halo_color;}if (u_is_plain && u_is_halo) {fragColor=color_alpha_out_text+(1.-color_alpha_out_text.a)*color_alpha_out_halo;} else if (u_is_halo){fragColor=color_alpha_out_halo;} else {fragColor=color_alpha_out_text;}
705#ifdef OVERDRAW_INSPECTOR
706fragColor=vec4(1.0);
707#endif
708}`,`in vec4 a_pos_offset;in vec4 a_data;in vec4 a_pixeloffset;in vec3 a_projected_pos;in float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform bool u_is_along_line;uniform bool u_is_variable_anchor;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_translation;uniform float u_pitched_scale;out vec2 v_data0;out vec3 v_data1;
709#pragma mapbox: define highp vec4 fill_color
710#pragma mapbox: define highp vec4 halo_color
711#pragma mapbox: define lowp float opacity
712#pragma mapbox: define lowp float halo_width
713#pragma mapbox: define lowp float halo_blur
714void main() {
715#pragma mapbox: initialize highp vec4 fill_color
716#pragma mapbox: initialize highp vec4 halo_color
717#pragma mapbox: initialize lowp float opacity
718#pragma mapbox: initialize lowp float halo_width
719#pragma mapbox: initialize lowp float halo_blur
720vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy/16.0;vec2 a_minFontScale=a_pixeloffset.zw/256.0;float ele=get_elevation(a_pos);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 translated_a_pos=a_pos+u_translation;vec4 projectedPoint=projectTileWithElevation(translated_a_pos,ele);vec2 fade_opacity=unpack_opacity(a_fade_opacity);float visibility=calculate_visibility(projectedPoint);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));float total_opacity=opacity*interpolated_fade_opacity;if (total_opacity < 0.1){gl_Position=vec4(-2.,-2.,-2.,1.);return;}highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?
721camera_to_anchor_distance/u_camera_to_center_distance :
722u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=projectTileWithElevation(translated_a_pos+vec2(1,0),ele);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos;if (u_is_along_line || u_is_variable_anchor) {projected_pos=vec4(a_projected_pos.xy,ele,1.0);} else if (u_pitch_with_map) {projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy+u_translation,ele,1.0);} else {projected_pos=u_label_plane_matrix*projectTileWithElevation(a_projected_pos.xy+u_translation,ele);}float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;float projectionScaling=1.0;
723#ifdef GLOBE
724if(u_pitch_with_map) {float anchor_pos_tile_y=(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w,z,1.0)).y;projectionScaling=mix(projectionScaling,1.0/circumferenceRatioAtTileY(anchor_pos_tile_y)*u_pitched_scale,u_projection_transition);}
725#endif
726vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}float gamma_scale=finalPos.w;gl_Position=finalPos;v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,total_opacity);}`),symbolTextAndIcon:jn(`#define SDF_PX 8.0
727#define SDF 1.0
728#define ICON 0.0
729uniform bool u_is_halo;uniform bool u_is_text;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;in vec4 v_data0;in vec4 v_data1;
730#pragma mapbox: define highp vec4 fill_color
731#pragma mapbox: define highp vec4 halo_color
732#pragma mapbox: define lowp float halo_width
733#pragma mapbox: define lowp float halo_blur
734void main() {
735#pragma mapbox: initialize highp vec4 fill_color
736#pragma mapbox: initialize highp vec4 halo_color
737#pragma mapbox: initialize lowp float halo_width
738#pragma mapbox: initialize lowp float halo_blur
739float total_opacity=v_data1[2];if (v_data1.w==ICON) {vec2 tex_icon=v_data0.zw;
739fragColor=texture(u_texture_icon,tex_icon)*total_opacity;
740#ifdef OVERDRAW_INSPECTOR
741fragColor=vec4(1.0);
742#endif
743return;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_data1.x;float size=v_data1.y;float fontScale=size/24.0;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;lowp float dist=texture(u_texture,tex).a;lowp vec4 color_alpha_out,color_alpha_out_halo;if (u_is_text) {highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);color_alpha_out=fill_color*(alpha*total_opacity);}if (u_is_halo) {highp float gamma_halo=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);lowp float buff_halo=(6.0-halo_width/fontScale)/SDF_PX;highp float gamma_scaled_halo=gamma_halo*gamma_scale;highp float alpha_halo=smoothstep(buff_halo-gamma_scaled_halo,buff_halo+gamma_scaled_halo,dist);color_alpha_out_halo=halo_color*(alpha_halo*total_opacity);}if (u_is_text && u_is_halo) {fragColor=color_alpha_out+(1.-color_alpha_out.a)*color_alpha_out_halo;} else if (u_is_halo) {fragColor=color_alpha_out_halo;} else {fragColor=color_alpha_out;}
744#ifdef OVERDRAW_INSPECTOR
745fragColor=vec4(1.0);
746#endif
747}`,`in vec4 a_pos_offset;in vec4 a_data;in vec3 a_projected_pos;in float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_texsize_icon;uniform bool u_is_along_line;uniform bool u_is_variable_anchor;uniform vec2 u_translation;uniform float u_pitched_scale;out vec4 v_data0;out vec4 v_data1;
748#pragma mapbox: define highp vec4 fill_color
749#pragma mapbox: define highp vec4 halo_color
750#pragma mapbox: define lowp float opacity
751#pragma mapbox: define lowp float halo_width
752#pragma mapbox: define lowp float halo_blur
753void main() {
754#pragma mapbox: initialize highp vec4 fill_color
755#pragma mapbox: initialize highp vec4 halo_color
756#pragma mapbox: initialize lowp float opacity
757#pragma mapbox: initialize lowp float halo_width
758#pragma mapbox: initialize lowp float halo_blur
759vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;float ele=get_elevation(a_pos);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 translated_a_pos=a_pos+u_translation;vec4 projectedPoint=projectTileWithElevation(translated_a_pos,ele);vec2 fade_opacity=unpack_opacity(a_fade_opacity);float visibility=calculate_visibility(projectedPoint);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));float total_opacity=opacity*interpolated_fade_opacity;if (total_opacity < 0.1){gl_Position=vec4(-2.,-2.,-2.,1.);return;}highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?
760camera_to_anchor_distance/u_camera_to_center_distance :
761u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=projectTileWithElevation(translated_a_pos+vec2(1,0),ele);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos;if (u_is_along_line || u_is_variable_anchor) {projected_pos=vec4(a_projected_pos.xy,ele,1.0);} else if (u_pitch_with_map) {projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy+u_translation,ele,1.0);} else {projected_pos=u_label_plane_matrix*projectTileWithElevation(a_projected_pos.xy+u_translation,ele);}float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;float projectionScaling=1.0;
762#ifdef GLOBE
763if(u_pitch_with_map && !u_is_along_line) {float anchor_pos_tile_y=(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w,z,1.0)).y;projectionScaling=mix(projectionScaling,1.0/circumferenceRatioAtTileY(anchor_pos_tile_y)*u_pitched_scale,u_projection_transition);}
764#endif
765vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}float gamma_scale=finalPos.w;gl_Position=finalPos;v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,total_opacity,is_sdf);}`),terrain:jn("uniform sampler2D u_texture;uniform vec4 u_fog_color;uniform vec4 u_horizon_color;uniform float u_fog_ground_blend;uniform float u_fog_ground_blend_opacity;uniform float u_horizon_fog_blend;uniform bool u_is_globe_mode;in vec2 v_texture_pos;in float v_fog_depth;const float gamma=2.2;vec4 gammaToLinear(vec4 color) {return pow(color,vec4(gamma));}vec4 linearToGamma(vec4 color) {return pow(color,vec4(1.0/gamma));}void main() {vec4 surface_color=texture(u_texture,vec2(v_texture_pos.x,1.0-v_texture_pos.y));if (!u_is_globe_mode && u_fog_ground_blend_opacity > 0.0 && v_fog_depth > u_fog_ground_blend) {vec4 surface_color_linear=gammaToLinear(surface_color);float blend_color=smoothstep(0.0,1.0,max((v_fog_depth-u_horizon_fog_blend)/(1.0-u_horizon_fog_blend),0.0));vec4 fog_horizon_color_linear=mix(gammaToLinear(u_fog_color),gammaToLinear(u_horizon_color),blend_color);
765float factor_fog=max(v_fog_depth-u_fog_ground_blend,0.0)/(1.0-u_fog_ground_blend);fragColor=linearToGamma(mix(surface_color_linear,fog_horizon_color_linear,pow(factor_fog,2.0)*u_fog_ground_blend_opacity));} else {fragColor=surface_color;}}","in vec3 a_pos3d;uniform mat4 u_fog_matrix;uniform float u_ele_delta;out vec2 v_texture_pos;out float v_fog_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=projectTileFor3D(a_pos3d.xy,ele-ele_delta);vec4 pos=u_fog_matrix*vec4(a_pos3d.xy,ele,1.0);v_fog_depth=pos.z/pos.w*0.5+0.5;}"),terrainDepth:jn("in float v_depth;const highp vec4 bitSh=vec4(256.*256.*256.,256.*256.,256.,1.);const highp vec4 bitMsk=vec4(0.,vec3(1./256.0));highp vec4 pack(highp float value) {highp vec4 comp=fract(value*bitSh);comp-=comp.xxyz*bitMsk;return comp;}void main() {fragColor=pack(v_depth);}","in vec3 a_pos3d;uniform float u_ele_delta;out float v_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;gl_Position=projectTileFor3D(a_pos3d.xy,ele-ele_delta);v_depth=gl_Position.z/gl_Position.w;}"),terrainCoords:jn("precision mediump float;uniform sampler2D u_texture;uniform float u_terrain_coords_id;in vec2 v_texture_pos;void main() {vec4 rgba=texture(u_texture,v_texture_pos);fragColor=vec4(rgba.r,rgba.g,rgba.b,u_terrain_coords_id);}","in vec3 a_pos3d;uniform float u_ele_delta;out vec2 v_texture_pos;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=projectTileFor3D(a_pos3d.xy,ele-ele_delta);}"),projectionErrorMeasurement:jn("in vec4 v_output_error_encoded;void main() {fragColor=v_output_error_encoded;}","in vec2 a_pos;uniform highp float u_input;uniform highp float u_output_expected;out vec4 v_output_error_encoded;void main() {float real_output=2.0*atan(exp(PI-(u_input*PI*2.0)))-PI*0.5;float error=real_output-u_output_expected;float abs_error=abs(error)*128.0;v_output_error_encoded.x=min(floor(abs_error*256.0),255.0)/255.0;abs_error-=v_output_error_encoded.x;v_output_error_encoded.y=min(floor(abs_error*65536.0),255.0)/255.0;abs_error-=v_output_error_encoded.x/255.0;v_output_error_encoded.z=min(floor(abs_error*16777216.0),255.0)/255.0;v_output_error_encoded.w=error >=0.0 ? 1.0 : 0.0;gl_Position=vec4(a_pos,0.0,1.0);}"),atmosphere:jn(`#ifdef GL_ES
766precision highp float;
767#endif
768in vec3 view_direction;uniform vec3 u_sun_pos;uniform vec3 u_globe_position;uniform float u_globe_radius;uniform float u_atmosphere_blend;/**Shader use from https:*Made some change to adapt to MapLibre Globe geometry*/const float PI=3.141592653589793;const int iSteps=5;const int jSteps=3;/*radius of the planet*/const float EARTH_RADIUS=6371e3;/*radius of the atmosphere*/const float ATMOS_RADIUS=6471e3;vec2 rsi(vec3 r0,vec3 rd,float sr) {float a=dot(rd,rd);float b=2.0*dot(rd,r0);float c=dot(r0,r0)-(sr*sr);float d=(b*b)-4.0*a*c;if (d < 0.0) return vec2(1e5,-1e5);return vec2((-b-sqrt(d))/(2.0*a),(-b+sqrt(d))/(2.0*a));}vec4 atmosphere(vec3 r,vec3 r0,vec3 pSun,float iSun,float rPlanet,float rAtmos,vec3 kRlh,float kMie,float shRlh,float shMie,float g) {pSun=normalize(pSun);r=normalize(r);vec2 p=rsi(r0,r,rAtmos);if (p.x > p.y) {return vec4(0.0,0.0,0.0,1.0);}if (p.x < 0.0) {p.x=0.0;}vec3 pos=r0+r*p.x;vec2 p2=rsi(r0,r,rPlanet);if (p2.x <=p2.y && p2.x > 0.0) {p.y=min(p.y,p2.x);}float iStepSize=(p.y-p.x)/float(iSteps);float iTime=p.x+iStepSize*0.5;vec3 totalRlh=vec3(0,0,0);vec3 totalMie=vec3(0,0,0);float iOdRlh=0.0;float iOdMie=0.0;float mu=dot(r,pSun);float mumu=mu*mu;float gg=g*g;float pRlh=3.0/(16.0*PI)*(1.0+mumu);float pMie=3.0/(8.0*PI)*((1.0-gg)*(mumu+1.0))/(pow(1.0+gg-2.0*mu*g,1.5)*(2.0+gg));for (int i=0; i < iSteps; i++) {vec3 iPos=r0+r*iTime;float iHeight=length(iPos)-rPlanet;float odStepRlh=exp(-iHeight/shRlh)*iStepSize;float odStepMie=exp(-iHeight/shMie)*iStepSize;iOdRlh+=odStepRlh;iOdMie+=odStepMie;float jStepSize=rsi(iPos,pSun,rAtmos).y/float(jSteps);float jTime=jStepSize*0.5;float jOdRlh=0.0;float jOdMie=0.0;for (int j=0; j < jSteps; j++) {vec3 jPos=iPos+pSun*jTime;float jHeight=length(jPos)-rPlanet;jOdRlh+=exp(-jHeight/shRlh)*jStepSize;jOdMie+=exp(-jHeight/shMie)*jStepSize;jTime+=jStepSize;}vec3 attn=exp(-(kMie*(iOdMie+jOdMie)+kRlh*(iOdRlh+jOdRlh)));totalRlh+=odStepRlh*attn;totalMie+=odStepMie*attn;iTime+=iStepSize;}float opacity=exp(-(length(kRlh)*length(totalRlh)+kMie*length(totalMie)));vec3 color=iSun*(pRlh*kRlh*totalRlh+pMie*kMie*totalMie);return vec4(color,opacity);}void main() {vec3 scale_camera_pos=-u_globe_position*EARTH_RADIUS/u_globe_radius;vec4 color=atmosphere(normalize(view_direction),scale_camera_pos,u_sun_pos,22.0,EARTH_RADIUS,ATMOS_RADIUS,vec3(5.5e-6,13.0e-6,22.4e-6),21e-6,8e3,1.2e3,0.758
769);color.rgb=1.0-exp(-1.0*color.rgb);color=pow(color,vec4(1.0/2.2));fragColor=vec4(color.rgb,1.0-color.a)*u_atmosphere_blend;}`,"in vec2 a_pos;uniform mat4 u_inv_proj_matrix;out vec3 view_direction;void main() {view_direction=(u_inv_proj_matrix*vec4(a_pos,0.0,1.0)).xyz;gl_Position=vec4(a_pos,0.0,1.0);}"),sky:jn("uniform vec4 u_sky_color;uniform vec4 u_horizon_color;uniform vec2 u_horizon;uniform vec2 u_horizon_normal;uniform float u_sky_horizon_blend;uniform float u_sky_blend;void main() {float x=gl_FragCoord.x;float y=gl_FragCoord.y;float blend=(y-u_horizon.y)*u_horizon_normal.y+(x-u_horizon.x)*u_horizon_normal.x;if (blend > 0.0) {if (blend < u_sky_horizon_blend) {fragColor=mix(u_sky_color,u_horizon_color,pow(1.0-blend/u_sky_horizon_blend,2.0));} else {fragColor=u_sky_color;}}fragColor=mix(fragColor,vec4(vec3(0.0),0.0),u_sky_blend);}","in vec2 a_pos;void main() {gl_Position=vec4(a_pos,1.0,1.0);}")};
vendor: 10,652 bytes, lines 769-818
769function jn(E,u){const h=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,_=u.match(/in ([\w]+) ([\w]+)/g),S=E.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),M=u.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),V=M?M.concat(S):S,W={};return{fragmentSource:E=E.replace(h,((X,re,ie,he,ge)=>(W[ge]=!0,re==="define"?`
770#ifndef HAS_UNIFORM_u_${ge}
771in ${ie} ${he} ${ge};
772#else
773uniform ${ie} ${he} u_${ge};
774#endif
775`:`
776#ifdef HAS_UNIFORM_u_${ge}
777    ${ie} ${he} ${ge} = u_${ge};
778#endif
779`))),vertexSource:u=u.replace(h,((X,re,ie,he,ge)=>{const we=he==="float"?"vec2":"vec4",Le=ge.match(/color/)?"color":we;return W[ge]?re==="define"?`
780#ifndef HAS_UNIFORM_u_${ge}
781uniform lowp float u_${ge}_t;
782in ${ie} ${we} a_${ge};
783out ${ie} ${he} ${ge};
784#else
785uniform ${ie} ${he} u_${ge};
786#endif
787`:Le==="vec4"?`
788#ifndef HAS_UNIFORM_u_${ge}
789    ${ge} = a_${ge};
790#else
791    ${ie} ${he} ${ge} = u_${ge};
792#endif
793`:`
794#ifndef HAS_UNIFORM_u_${ge}
795    ${ge} = unpack_mix_${Le}(a_${ge}, u_${ge}_t);
796#else
797    ${ie} ${he} ${ge} = u_${ge};
798#endif
799`:re==="define"?`
800#ifndef HAS_UNIFORM_u_${ge}
801uniform lowp float u_${ge}_t;
802in ${ie} ${we} a_${ge};
803#else
804uniform ${ie} ${he} u_${ge};
805#endif
806`:Le==="vec4"?`
807#ifndef HAS_UNIFORM_u_${ge}
808    ${ie} ${he} ${ge} = a_${ge};
809#else
810    ${ie} ${he} ${ge} = u_${ge};
811#endif
812`:`
813#ifndef HAS_UNIFORM_u_${ge}
814    ${ie} ${he} ${ge} = unpack_mix_${Le}(a_${ge}, u_${ge}_t);
815#else
816    ${ie} ${he} ${ge} = u_${ge};
817#endif
818`})),staticAttributes:_,staticUniforms:V}}class Gr{constructor(u,h,_){this.vertexBuffer=u,this.indexBuffer=h,this.segments=_}destroy(){this.vertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.vertexBuffer=null,this.indexBuffer=null,this.segments=null}}var Mu=o.aS([{name:"a_pos",type:"Int16",components:2}]);const ho="#define PROJECTION_MERCATOR",Qo="mercator";class po{constructor(){this._cachedMesh=null}get name(){return"mercator"}get useSubdivision(){return!1}get shaderVariantName(){return Qo}get shaderDefine(){return ho}get shaderPreludeCode(){return ki.projectionMercator}get vertexShaderPreludeCode(){return ki.projectionMercator.vertexSource}get subdivisionGranularity(){return o.aT.noSubdivision}get useGlobeControls(){return!1}get transitionState(){return 0}get latitudeErrorCorrectionRadians(){return 0}destroy(){}updateGPUdependent(u){}getMeshFromTileID(u,h,_,S,M){if(this._cachedMesh)return this._cachedMesh;const V=new o.aU;V.emplaceBack(0,0),V.emplaceBack(o.a6,0),V.emplaceBack(0,o.a6),V.emplaceBack(o.a6,o.a6);const W=u.createVertexBuffer(V,Mu.members),X=o.aV.simpleSegment(0,0,4,2),re=new o.aW;re.emplaceBack(1,0,2),re.emplaceBack(1,2,3);const ie=u.createIndexBuffer(re);return this._cachedMesh=new Gr(W,ie,X),this._cachedMesh}recalculate(){}hasTransition(){return!1}setErrorQueryLatitudeDegrees(u){}}class Bd{constructor(u=0,h=0,_=0,S=0){if(isNaN(u)||u<0||isNaN(h)||h<0||isNaN(_)||_<0||isNaN(S)||S<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=u,this.bottom=h,this.left=_,this.right=S}interpolate(u,h,_){return h.top!=null&&u.top!=null&&(this.top=o.H.number(u.top,h.top,_)),h.bottom!=null&&u.bottom!=null&&(this.bottom=o.H.number(u.bottom,h.bottom,_)),h.left!=null&&u.left!=null&&(this.left=o.H.number(u.left,h.left,_)),h.right!=null&&u.right!=null&&(this.right=o.H.number(u.right,h.right,_)),this}getCenter(u,h){const _=o.al((this.left+u-this.right)/2,0,u),S=o.al((this.top+h-this.bottom)/2,0,h);return new o.P(_,S)}equals(u){return this.top===u.top&&this.bottom===u.bottom&&this.left===u.left&&this.right===u.right}clone(){return new Bd(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}function Fr(E,u){if(!E.renderWorldCopies||E.lngRange)return;const h=u.lng-E.center.lng;u.lng+=h>180?-360:h<-180?360:0}function Xn(E){return Math.max(0,Math.floor(E))}class Ec{constructor(u,h){var _;this.applyConstrain=(S,M)=>this._constrainOverride!==null?this._constrainOverride(S,M):this._callbacks.defaultConstrain(S,M),this._callbacks=u,this._tileSize=512,this._renderWorldCopies=h?.renderWorldCopies===void 0||!!h?.renderWorldCopies,this._minZoom=h?.minZoom||0,this._maxZoom=h?.maxZoom||22,this._minPitch=h?.minPitch==null?0:h?.minPitch,this._maxPitch=h?.maxPitch==null?60:h?.maxPitch,this._constrainOverride=(_=h?.constrainOverride)!==null&&_!==void 0?_:null,this.setMaxBounds(),this._width=0,this._height=0,this._center=new o.W(0,0),this._elevation=0,this._zoom=0,this._tileZoom=Xn(this._zoom),this._scale=o.ao(this._zoom),this._bearingInRadians=0,this._fovInRadians=.6435011087932844,this._pitchInRadians=0,this._rollInRadians=0,this._unmodified=!0,this._edgeInsets=new Bd,this._minElevationForCurrentTile=0,this._autoCalculateNearFarZ=!0}apply(u,h,_){this._constrainOverride=u.constrainOverride,this._latRange=u.latRange,this._lngRange=u.lngRange,this._width=u.width,this._height=u.height,this._center=u.center,this._elevation=u.elevation,this._minElevationForCurrentTile=u.minElevationForCurrentTile,this._zoom=u.zoom,this._tileZoom=Xn(this._zoom),this._scale=o.ao(this._zoom),this._bearingInRadians=u.bearingInRadians,this._fovInRadians=u.fovInRadians,this._pitchInRadians=u.pitchInRadians,this._rollInRadians=u.rollInRadians,this._unmodified=u.unmodified,this._edgeInsets=new Bd(u.padding.top,u.padding.bottom,u.padding.left,u.padding.right),this._minZoom=u.minZoom,this._maxZoom=u.maxZoom,this._minPitch=u.minPitch,this._maxPitch=u.maxPitch,this._renderWorldCopies=u.renderWorldCopies,this._cameraToCenterDistance=u.cameraToCenterDistance,this._nearZ=u.nearZ,this._farZ=u.farZ,this._autoCalculateNearFarZ=!_&&u.autoCalculateNearFarZ,h&&this.constrainInternal(),this._calcMatrices()}get pixelsToClipSpaceMatrix(){return this._pixelsToClipSpaceMatrix}get clipSpaceToPixelsMatrix(){return this._clipSpaceToPixelsMatrix}get minElevationForCurrentTile(){return this._minElevationForCurrentTile}setMinElevationForCurrentTile(u){this._minElevationForCurrentTile=u}get tileSize(){return this._tileSize}get tileZoom(){return this._tileZoom}get scale(){return this._scale}get width(){return this._width}get height(){return this._height}get bearingInRadians(){return this._bearingInRadians}get lngRange(){return this._lngRange}get latRange(){return this._latRange}get pixelsToGLUnits(){return this._pixelsToGLUnits}get minZoom(){return this._minZoom}setMinZoom(u){this._minZoom!==u&&(this._minZoom=u,this.setZoom(this.applyConstrain(this._center,this.zoom).zoom))}get maxZoom(){return this._maxZoom}setMaxZoom(u){this._maxZoom!==u&&(this._maxZoom=u,this.setZoom(this.applyConstrain(this._center,this.zoom).zoom))}get minPitch(){return this._minPitch}setMinPitch(u){this._minPitch!==u&&(this._minPitch=u,this.setPitch(Math.max(this.pitch,u)))}get maxPitch(){return this._maxPitch}setMaxPitch(u){this._maxPitch!==u&&(this._maxPitch=u,this.setPitch(Math.min(this.pitch,u)))}get renderWorldCopies(){return this._renderWorldCopies}setRenderWorldCopies(u){u===void 0?u=!0:u===null&&(u=!1),this._renderWorldCopies=u}get constrainOverride(){return this._constrainOverride}setConstrainOverride(u){u===void 0&&(u=null),this._constrainOverride!==u&&(this._constrainOverride=u,this.constrainInternal(),this._calcMatrices())}get worldSize(){return this._tileSize*this._scale}get centerOffset(){return this.centerPoint._sub(this.size._div(2))}get size(){return new o.P(this._width,this._height)}get bearing(){return this._bearingInRadians/Math.PI*180}setBearing(u){const h=o.X(u,-180,180)*Math.PI/180;var _,S,M,V,W,X,re,ie,he;this._bearingInRadians!==h&&(this._unmodified=!1,this._bearingInRadians=h,this._calcMatrices(),this._rotationMatrix=m(),_=this._rotationMatrix,M=-this._bearingInRadians,V=(S=this._rotationMatrix)[0],W=S[1],X=S[2],re=S[3],ie=Math.sin(M),he=Math.cos(M),_[0]=V*he+X*ie,_[1]=W*he+re*ie,_[2]=V*-ie+X*he,_[3]=W*-ie+re*he)}get rotationMatrix(){return this._rotationMatrix}get pitchInRadians(){return this._pitchInRadians}get pitch(){return this._pitchInRadians/Math.PI*180}setPitch(u){const h=o.al(u,this.minPitch,this.maxPitch)/180*Math.PI;this._pitchInRadians!==h&&(this._unmodified=!1,this._pitchInRadians=h,this._calcMatrices())}get rollInRadians(){return this._rollInRadians}get roll(){return this._rollInRadians/Math.PI*180}setRoll(u){const h=u/180*Math.PI;this._rollInRadians!==h&&(this._unmodified=!1,this._rollInRadians=h,this._calcMatrices())}get fovInRadians(){return this._fovInRadians}get fov(){return o.aX(this._fovInRadians)}setFov(u){u=o.al(u,.1,150),this.fov!==u&&(this._unmodified=!1,this._fovInRadians=o.an(u),this._calcMatrices())}get zoom(){return this._zoom}setZoom(u){const h=this.applyConstrain(this._center,u).zoom;this._zoom!==h&&(this._unmodified=!1,this._zoom=h,this._tileZoom=Math.max(0,Math.floor(h)),this._scale=o.ao(h),this.constrainInternal(),this._calcMatrices())}get center(){return this._center}setCenter(u){u.lat===this._center.lat&&u.lng===this._center.lng||(this._unmodified=!1,this._center=u,this.constrainInternal(),this._calcMatrices())}get elevation(){return this._elevation}setElevation(u){u!==this._elevation&&(this._elevation=u,this.constrainInternal(),this._calcMatrices())}get padding(){return this._edgeInsets.toJSON()}setPadding(u){this._edgeInsets.equals(u)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,u,1),this._calcMatrices())}get centerPoint(){return this._edgeInsets.getCenter(this._width,this._height)}get pixelsPerMeter(){return this._pixelPerMeter}get unmodified(){return this._unmodified}get cameraToCenterDistance(){return this._cameraToCenterDistance}get nearZ(){return this._nearZ}get farZ(){return this._farZ}get autoCalculateNearFarZ(){return this._autoCalculateNearFarZ}overrideNearFarZ(u,h){this._autoCalculateNearFarZ=!1,this._nearZ=u,this._farZ=h,this._calcMatrices()}clearNearFarZOverride(){this._autoCalculateNearFarZ=!0,this._calcMatrices()}isPaddingEqual(u){return this._edgeInsets.equals(u)}interpolatePadding(u,h,_){this._unmodified=!1,this._edgeInsets.interpolate(u,h,_),this.constrainInternal(),this._calcMatrices()}resize(u,h,_=!0){this._width=u,this._height=h,_&&this.constrainInternal(),this._calcMatrices()}getMaxBounds(){var u,h;return((u=this._latRange)===null||u===void 0?void 0:u.length)!==2||((h=this._lngRange)===null||h===void 0?void 0:h.length)!==2?null:new Ee([this._lngRange[0],this._latRange[0]],[this._lngRange[1],this._latRange[1]])}setMaxBounds(u){u?(this._lngRange=[u.getWest(),u.getEast()],this._latRange=[u.getSouth(),u.getNorth()],this.constrainInternal()):(this._lngRange=null,this._latRange=[-o.am,o.am])}getCameraQueryGeometry(u,h){if(h.length===1)return[h[0],u];{const{minX:_,minY:S,maxX:M,maxY:V}=o.a8.fromPoints(h).extend(u);
818return[new o.P(_,S),new o.P(M,S),new o.P(M,V),new o.P(_,V),new o.P(_,S)]}}constrainInternal(){if(!this.center||!this._width||!this._height||this._constraining)return;this._constraining=!0;const u=this._unmodified,{center:h,zoom:_}=this.applyConstrain(this.center,this.zoom);this.setCenter(h),this.setZoom(_),this._unmodified=u,this._constraining=!1}_calcMatrices(){if(this._width&&this._height){this._pixelsToGLUnits=[2/this._width,-2/this._height];let u=o.ap(new Float64Array(16));o.S(u,u,[this._width/2,-this._height/2,1]),o.Q(u,u,[1,-1,0]),this._clipSpaceToPixelsMatrix=u,u=o.ap(new Float64Array(16)),o.S(u,u,[1,-1,1]),o.Q(u,u,[-1,-1,0]),o.S(u,u,[2/this._width,2/this._height,1]),this._pixelsToClipSpaceMatrix=u,this._cameraToCenterDistance=.5/Math.tan(this.fovInRadians/2)*this._height}this._callbacks.calcMatrices()}calculateCenterFromCameraLngLatAlt(u,h,_,S){const M=_!==void 0?_:this.bearing,V=S=S!==void 0?S:this.pitch,{distanceToCenter:W,clampedElevation:X}=this._distanceToCenterFromAltElevationPitch(h,this.elevation,V),{x:re,y:ie}=va(V,M),he=o.a7.fromLngLat(u,h);let ge,we,Le=o.aY(1,he.y),He=0;do{if(He+=1,He>10)break;we=W/Le,ge=new o.a7(he.x+re*we,he.y+ie*we),Le=1/ge.meterInMercatorCoordinateUnits()}while(Math.abs(W-we*Le)>1e-12);return{center:ge.toLngLat(),elevation:X,zoom:o.ar(this.height/2/Math.tan(this.fovInRadians/2)/we/this.tileSize)}}recalculateZoomAndCenter(u){if(this.elevation-u==0)return;const h=1/this.worldSize,_=o.aq(1,this.center.lat)*this.worldSize,S=o.a7.fromLngLat(this.center,this.elevation),M=S.x/h,V=S.y/h,W=S.z/h,X=this.pitch,re=this.bearing,{x:ie,y:he,z:ge}=va(X,re),we=this.cameraToCenterDistance,Le=M+we*-ie,He=V+we*-he,Xe=W+we*ge,{distanceToCenter:Ze,clampedElevation:et}=this._distanceToCenterFromAltElevationPitch(Xe/_,u,X),lt=Ze*_,Je=new o.a7((Le+ie*lt)*h,(He+he*lt)*h,0).toLngLat(),Ke=o.aq(1,Je.lat),ot=o.ar(this.height/2/Math.tan(this.fovInRadians/2)/Ze/Ke/this.tileSize);this._elevation=et,this._center=Je,this.setZoom(ot)}_distanceToCenterFromAltElevationPitch(u,h,_){const S=-Math.cos(o.an(_)),M=u-h;let V,W=h;return S*M>=0||Math.abs(S)<.1?(V=1e4,W=u+V*S):V=-M/S,{distanceToCenter:V,clampedElevation:W}}getCameraPoint(){const u=Math.tan(this.pitchInRadians)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new o.P(u*Math.sin(this.rollInRadians),u*Math.cos(this.rollInRadians)))}getCameraAltitude(){return Math.cos(this.pitchInRadians)*this._cameraToCenterDistance/this._pixelPerMeter+this.elevation}getCameraLngLat(){const u=o.aq(1,this.center.lat)*this.worldSize;return mi(this.center,this.elevation,this.pitch,this.bearing,this.cameraToCenterDistance/u).toLngLat()}getMercatorTileCoordinates(u){if(!u)return[0,0,1,1];const h=u.canonical.z>=0?1<<u.canonical.z:Math.pow(2,u.canonical.z);return[u.canonical.x/h,u.canonical.y/h,1/h/o.a6,1/h/o.a6]}}class dl{constructor(u,h){this.min=u,this.max=h,this.center=o.aZ([],o.a_([],this.min,this.max),.5)}quadrant(u){const h=[u%2==0,u<2],_=o.a$(this.min),S=o.a$(this.max);for(let M=0;M<h.length;M++)_[M]=h[M]?this.min[M]:this.center[M],S[M]=h[M]?this.center[M]:this.max[M];return S[2]=this.max[2],new dl(_,S)}distanceX(u){return Math.max(Math.min(this.max[0],u[0]),this.min[0])-u[0]}distanceY(u){return Math.max(Math.min(this.max[1],u[1]),this.min[1])-u[1]}intersectsFrustum(u){let h=!0;for(const _ of u.planes){const S=this.intersectsPlane(_);if(S===0)return 0;S===1&&(h=!1)}return h?2:u.aabb.min[0]>this.max[0]||u.aabb.min[1]>this.max[1]||u.aabb.min[2]>this.max[2]||u.aabb.max[0]<this.min[0]||u.aabb.max[1]<this.min[1]||u.aabb.max[2]<this.min[2]?0:1}intersectsPlane(u){let h=u[3],_=u[3];for(let S=0;S<3;S++)u[S]>0?(h+=u[S]*this.min[S],_+=u[S]*this.max[S]):(_+=u[S]*this.min[S],h+=u[S]*this.max[S]);return h>=0?2:_<0?0:1}}class Bp{distanceToTile2d(u,h,_,S){const M=S,V=M.distanceX([u,h]),W=M.distanceY([u,h]);return Math.hypot(V,W)}getWrap(u,h,_){return _}getTileBoundingVolume(u,h,_,S){var M,V;let W=0,X=0;if(S?.terrain){const ie=new o.a3(u.z,h,u.z,u.x,u.y),he=S.terrain.getMinMaxElevation(ie);W=(M=he.minElevation)!==null&&M!==void 0?M:Math.min(0,_),X=(V=he.maxElevation)!==null&&V!==void 0?V:Math.max(0,_)}const re=1<<u.z;return new dl([h+u.x/re,u.y/re,W],[h+(u.x+1)/re,(u.y+1)/re,X])}allowVariableZoom(u,h){const _=u.fov*(Math.abs(Math.cos(u.rollInRadians))*u.height+Math.abs(Math.sin(u.rollInRadians))*u.width)/u.height,S=o.al(78.5-_/2,0,60);return!!h.terrain||u.pitch>S}allowWorldCopies(){return!0}prepareNextFrame(){}}class Po{constructor(u,h,_){this.points=u,this.planes=h,this.aabb=_}static fromInvProjectionMatrix(u,h=1,_=0,S,M){const V=M?[[6,5,4],[0,1,2],[0,3,7],[2,1,5],[3,2,6],[0,4,5]]:[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]],W=Math.pow(2,_),X=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map((ge=>(function(we,Le,He,Xe){const Ze=o.aE([],we,Le),et=1/Ze[3]/He*Xe;return o.b4(Ze,Ze,[et,et,1/Ze[3],et])})(ge,u,h,W)));
vendor: 14,739 bytes, line 818
818S&&(function(ge,we,Le,He){const Xe=He?4:0,Ze=He?0:4;let et=0;const lt=[],Je=[];for(let tt=0;tt<4;tt++){const wt=o.b0([],ge[tt+Ze],ge[tt+Xe]),Rt=o.b5(wt);o.aZ(wt,wt,1/Rt),lt.push(Rt),Je.push(wt)}for(let tt=0;tt<4;tt++){const wt=o.b6(ge[tt+Xe],Je[tt],Le);et=wt!==null&&wt>=0?Math.max(et,wt):Math.max(et,lt[tt])}const Ke=(function(tt,wt){const Rt=o.b0([],tt[wt[0]],tt[wt[1]]),Vt=o.b0([],tt[wt[2]],tt[wt[1]]),Qt=[0,0,0,0];return o.b1(Qt,o.b2([],Rt,Vt)),Qt[3]=-o.b3(Qt,tt[wt[0]]),Qt})(ge,we),ot=(function(tt,wt){const Rt=o.b7(tt),Vt=o.b8([],tt,1/Rt),Qt=o.b0([],wt,o.aZ([],Vt,o.b3(wt,Vt))),Xt=o.b7(Qt);if(Xt>0){const Tn=Math.sqrt(1-Vt[3]*Vt[3]),fn=o.aZ([],Vt,-Vt[3]),Wt=o.a_([],fn,o.aZ([],Qt,Tn/Xt));return o.b9(wt,Wt)}return null})(Le,Ke);if(ot!==null){const tt=ot/o.b3(Je[0],Ke);et=Math.min(et,tt)}for(let tt=0;tt<4;tt++){const wt=Math.min(et,lt[tt]);ge[tt+Ze]=[ge[tt+Xe][0]+Je[tt][0]*wt,ge[tt+Xe][1]+Je[tt][1]*wt,ge[tt+Xe][2]+Je[tt][2]*wt,1]}})(X,V[0],S,M);const re=V.map((ge=>{const we=o.b0([],X[ge[0]],X[ge[1]]),Le=o.b0([],X[ge[2]],X[ge[1]]),He=o.b1([],o.b2([],we,Le)),Xe=-o.b3(He,X[ge[1]]);return He.concat(Xe)})),ie=[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY],he=[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY];for(const ge of X)for(let we=0;we<3;we++)ie[we]=Math.min(ie[we],ge[we]),he[we]=Math.max(he[we],ge[we]);return new Po(X,re,new dl(ie,he))}}class Pc{get pixelsToClipSpaceMatrix(){return this._helper.pixelsToClipSpaceMatrix}get clipSpaceToPixelsMatrix(){return this._helper.clipSpaceToPixelsMatrix}get pixelsToGLUnits(){return this._helper.pixelsToGLUnits}get centerOffset(){return this._helper.centerOffset}get size(){return this._helper.size}get rotationMatrix(){return this._helper.rotationMatrix}get centerPoint(){return this._helper.centerPoint}get pixelsPerMeter(){return this._helper.pixelsPerMeter}setMinZoom(u){this._helper.setMinZoom(u)}setMaxZoom(u){this._helper.setMaxZoom(u)}setMinPitch(u){this._helper.setMinPitch(u)}setMaxPitch(u){this._helper.setMaxPitch(u)}setRenderWorldCopies(u){this._helper.setRenderWorldCopies(u)}setBearing(u){this._helper.setBearing(u)}setPitch(u){this._helper.setPitch(u)}setRoll(u){this._helper.setRoll(u)}setFov(u){this._helper.setFov(u)}setZoom(u){this._helper.setZoom(u)}setCenter(u){this._helper.setCenter(u)}setElevation(u){this._helper.setElevation(u)}setMinElevationForCurrentTile(u){this._helper.setMinElevationForCurrentTile(u)}setPadding(u){this._helper.setPadding(u)}interpolatePadding(u,h,_){this._helper.interpolatePadding(u,h,_)}isPaddingEqual(u){return this._helper.isPaddingEqual(u)}resize(u,h,_=!0){this._helper.resize(u,h,_)}getMaxBounds(){return this._helper.getMaxBounds()}setMaxBounds(u){this._helper.setMaxBounds(u)}setConstrainOverride(u){this._helper.setConstrainOverride(u)}overrideNearFarZ(u,h){this._helper.overrideNearFarZ(u,h)}clearNearFarZOverride(){this._helper.clearNearFarZOverride()}getCameraQueryGeometry(u){return this._helper.getCameraQueryGeometry(this.getCameraPoint(),u)}get tileSize(){return this._helper.tileSize}get tileZoom(){return this._helper.tileZoom}get scale(){return this._helper.scale}get worldSize(){return this._helper.worldSize}get width(){return this._helper.width}get height(){return this._helper.height}get lngRange(){return this._helper.lngRange}get latRange(){return this._helper.latRange}get minZoom(){return this._helper.minZoom}get maxZoom(){return this._helper.maxZoom}get zoom(){return this._helper.zoom}get center(){return this._helper.center}get minPitch(){return this._helper.minPitch}get maxPitch(){return this._helper.maxPitch}get pitch(){return this._helper.pitch}get pitchInRadians(){return this._helper.pitchInRadians}get roll(){return this._helper.roll}get rollInRadians(){return this._helper.rollInRadians}get bearing(){return this._helper.bearing}get bearingInRadians(){return this._helper.bearingInRadians}get fov(){return this._helper.fov}get fovInRadians(){return this._helper.fovInRadians}get elevation(){return this._helper.elevation}get minElevationForCurrentTile(){return this._helper.minElevationForCurrentTile}get padding(){return this._helper.padding}get unmodified(){return this._helper.unmodified}get renderWorldCopies(){return this._helper.renderWorldCopies}get cameraToCenterDistance(){return this._helper.cameraToCenterDistance}get constrainOverride(){return this._helper.constrainOverride}get nearZ(){return this._helper.nearZ}get farZ(){return this._helper.farZ}get autoCalculateNearFarZ(){return this._helper.autoCalculateNearFarZ}setTransitionState(u,h){}constructor(u){this._posMatrixCache=new Map,this._alignedPosMatrixCache=new Map,this._fogMatrixCacheF32=new Map,this.defaultConstrain=(h,_)=>{_=o.al(+_,this.minZoom,this.maxZoom);const S={center:new o.W(h.lng,h.lat),zoom:_};let M=this._helper._lngRange;if(!this._helper._renderWorldCopies&&M===null){const Je=179.9999999999;M=[-Je,Je]}const V=this.tileSize*o.ao(S.zoom);let W=0,X=V,re=0,ie=V,he=0,ge=0;const{x:we,y:Le}=this.size;if(this._helper._latRange){const Je=this._helper._latRange;W=o.Y(Je[1])*V,X=o.Y(Je[0])*V,X-W<Le&&(he=Le/(X-W))}M&&(re=o.X(o.Z(M[0])*V,0,V),ie=o.X(o.Z(M[1])*V,0,V),ie<re&&(ie+=V),ie-re<we&&(ge=we/(ie-re)));const{x:He,y:Xe}=tr(V,h);let Ze,et;const lt=Math.max(ge||0,he||0);if(lt){const Je=new o.P(ge?(ie+re)/2:He,he?(X+W)/2:Xe);return S.center=Nr(V,Je).wrap(),S.zoom+=o.ar(lt),S}if(this._helper._latRange){const Je=Le/2;Xe-Je<W&&(et=W+Je),Xe+Je>X&&(et=X-Je)}if(M){const Je=(re+ie)/2;let Ke=He;this._helper._renderWorldCopies&&(Ke=o.X(He,Je-V/2,Je+V/2));const ot=we/2;Ke-ot<re&&(Ze=re+ot),Ke+ot>ie&&(Ze=ie-ot)}if(Ze!==void 0||et!==void 0){const Je=new o.P(Ze??He,et??Xe);S.center=Nr(V,Je).wrap()}return S},this.applyConstrain=(h,_)=>this._helper.applyConstrain(h,_),this._helper=new Ec({calcMatrices:()=>this._calcMatrices(),defaultConstrain:(h,_)=>this.defaultConstrain(h,_)},u),this._coveringTilesDetailsProvider=new Bp}clone(){const u=new Pc;return u.apply(this,!1),u}apply(u,h,_){this._helper.apply(u,h,_)}get cameraPosition(){return this._cameraPosition}get projectionMatrix(){return this._projectionMatrix}get modelViewProjectionMatrix(){return this._viewProjMatrix}get inverseProjectionMatrix(){return this._invProjMatrix}get mercatorMatrix(){return this._mercatorMatrix}getVisibleUnwrappedCoordinates(u){const h=[new o.ba(0,u)];if(this._helper._renderWorldCopies){const _=this.screenPointToMercatorCoordinate(new o.P(0,0)),S=this.screenPointToMercatorCoordinate(new o.P(this._helper._width,0)),M=this.screenPointToMercatorCoordinate(new o.P(this._helper._width,this._helper._height)),V=this.screenPointToMercatorCoordinate(new o.P(0,this._helper._height)),W=Math.floor(Math.min(_.x,S.x,M.x,V.x)),X=Math.floor(Math.max(_.x,S.x,M.x,V.x)),re=1;for(let ie=W-re;ie<=X+re;ie++)ie!==0&&h.push(new o.ba(ie,u))}return h}getCameraFrustum(){return Po.fromInvProjectionMatrix(this._invViewProjMatrix,this.worldSize)}getClippingPlane(){return null}getCoveringTilesDetailsProvider(){return this._coveringTilesDetailsProvider}recalculateZoomAndCenter(u){const h=this.screenPointToLocation(this.centerPoint,u),_=u?u.getElevationForLngLatZoom(h,this._helper._tileZoom):0;this._helper.recalculateZoomAndCenter(_)}setLocationAtPoint(u,h){const _=o.aq(this.elevation,this.center.lat),S=this.screenPointToMercatorCoordinateAtZ(h,_),M=this.screenPointToMercatorCoordinateAtZ(this.centerPoint,_),V=o.a7.fromLngLat(u),W=new o.a7(V.x-(S.x-M.x),V.y-(S.y-M.y));this.setCenter(W?.toLngLat()),this._helper._renderWorldCopies&&this.setCenter(this.center.wrap())}locationToScreenPoint(u,h){return h?this.coordinatePoint(o.a7.fromLngLat(u),h.getElevationForLngLat(u,this),this._pixelMatrix3D):this.coordinatePoint(o.a7.fromLngLat(u))}screenPointToLocation(u,h){var _;return(_=this.screenPointToMercatorCoordinate(u,h))===null||_===void 0?void 0:_.toLngLat()}screenPointToMercatorCoordinate(u,h){if(h){const _=h.pointCoordinate(u);if(_!=null)return _}return this.screenPointToMercatorCoordinateAtZ(u)}screenPointToMercatorCoordinateAtZ(u,h){const _=h||0,S=[u.x,u.y,0,1],M=[u.x,u.y,1,1];o.aE(S,S,this._pixelMatrixInverse),o.aE(M,M,this._pixelMatrixInverse);const V=S[3],W=M[3],X=S[1]/V,re=M[1]/W,ie=S[2]/V,he=M[2]/W,ge=ie===he?0:(_-ie)/(he-ie);return new o.a7(o.H.number(S[0]/V,M[0]/W,ge)/this.worldSize,o.H.number(X,re,ge)/this.worldSize,_)}coordinatePoint(u,h=0,_=this._pixelMatrix){const S=[u.x*this.worldSize,u.y*this.worldSize,h,1];return o.aE(S,S,_),new o.P(S[0]/S[3],S[1]/S[3])}getBounds(){const u=Math.max(0,this._helper._height/2-$r(this));return new Ee().extend(this.screenPointToLocation(new o.P(0,u))).extend(this.screenPointToLocation(new o.P(this._helper._width,u))).extend(this.screenPointToLocation(new o.P(this._helper._width,this._helper._height))).extend(this.screenPointToLocation(new o.P(0,this._helper._height)))}isPointOnMapSurface(u,h){return h?h.pointCoordinate(u)!=null:u.y>this.height/2-$r(this)}calculatePosMatrix(u,h=!1,_){var S;const M=(S=u.key)!==null&&S!==void 0?S:o.bb(u.wrap,u.canonical.z,u.canonical.z,u.canonical.x,u.canonical.y),V=h?this._alignedPosMatrixCache:this._posMatrixCache;if(V.has(M)){const re=V.get(M);return _?re.f32:re.f64}const W=pi(u,this.worldSize);o.U(W,h?this._alignedProjMatrix:this._viewProjMatrix,W);const X={f64:W,f32:new Float32Array(W)};return V.set(M,X),_?X.f32:X.f64}calculateFogMatrix(u){const h=u.key,_=this._fogMatrixCacheF32;if(_.has(h))return _.get(h);const S=pi(u,this.worldSize);return o.U(S,this._fogMatrix,S),_.set(h,new Float32Array(S)),_.get(h)}calculateCenterFromCameraLngLatAlt(u,h,_,S){return this._helper.calculateCenterFromCameraLngLatAlt(u,h,_,S)}_calculateNearFarZIfNeeded(u,h,_){if(!this._helper.autoCalculateNearFarZ)return;const S=Math.min(this.elevation,this.minElevationForCurrentTile,this.getCameraAltitude()-100),M=u-S*this._helper._pixelPerMeter/Math.cos(h),V=S<0?M:u,W=Math.PI/2+this.pitchInRadians,X=o.an(this.fov)*(Math.abs(Math.cos(o.an(this.roll)))*this.height+Math.abs(Math.sin(o.an(this.roll)))*this.width)/this.height*(.5+_.y/this.height),re=Math.sin(X)*V/Math.sin(o.al(Math.PI-W-X,.01,Math.PI-.01)),ie=$r(this),he=Math.atan(ie/this._helper.cameraToCenterDistance),ge=o.an(.75),we=he>ge?2*he*(.5+_.y/(2*ie)):ge,Le=Math.sin(we)*V/Math.sin(o.al(Math.PI-W-we,.01,Math.PI-.01)),He=Math.min(re,Le);this._helper._farZ=1.01*(Math.cos(Math.PI/2-h)*He+V),this._helper._nearZ=this._helper._height/50}_calcMatrices(){if(!this._helper._height)return;const u=this.centerOffset,h=tr(this.worldSize,this.center),_=h.x,S=h.y;this._helper._pixelPerMeter=o.aq(1,this.center.lat)*this.worldSize;const M=o.an(Math.min(this.pitch,Dn)),V=Math.max(this._helper.cameraToCenterDistance/2,this._helper.cameraToCenterDistance+this._helper._elevation*this._helper._pixelPerMeter/Math.cos(M));let W;var X,re;this._calculateNearFarZIfNeeded(V,M,u),W=new Float64Array(16),o.bc(W,this.fovInRadians,this._helper._width/this._helper._height,this._helper._nearZ,this._helper._farZ),this._invProjMatrix=new Float64Array(16),(X=this._invProjMatrix)[0]=1/(re=W)[0],X[1]=0,X[2]=0,X[3]=0,X[4]=0,X[5]=1/re[5],X[6]=0,X[7]=0,X[8]=0,X[9]=0,X[10]=0,X[11]=1/re[14],X[12]=0,X[13]=0,X[14]=-1,X[15]=re[10]/re[14],W[8]=2*-u.x/this._helper._width,W[9]=2*u.y/this._helper._height,this._projectionMatrix=o.bd(W),o.S(W,W,[1,-1,1]),o.Q(W,W,[0,0,-this._helper.cameraToCenterDistance]),o.be(W,W,-this.rollInRadians),o.bf(W,W,this.pitchInRadians),o.be(W,W,-this.bearingInRadians),o.Q(W,W,[-_,-S,0]),this._mercatorMatrix=o.S([],W,[this.worldSize,this.worldSize,this.worldSize]),o.S(W,W,[1,1,this._helper._pixelPerMeter]),this._pixelMatrix=o.U(new Float64Array(16),this.clipSpaceToPixelsMatrix,W),o.Q(W,W,[0,0,-this.elevation]),this._viewProjMatrix=W,this._invViewProjMatrix=o.bg([],W);const ie=[0,0,-1,1];o.aE(ie,ie,this._invViewProjMatrix),this._cameraPosition=[ie[0]/ie[3],ie[1]/ie[3],ie[2]/ie[3]],this._fogMatrix=new Float64Array(16),o.bc(this._fogMatrix,this.fovInRadians,this.width/this.height,V,this._helper._farZ),this._fogMatrix[8]=2*-u.x/this.width,this._fogMatrix[9]=2*u.y/this.height,o.S(this._fogMatrix,this._fogMatrix,[1,-1,1]),o.Q(this._fogMatrix,this._fogMatrix,[0,0,-this.cameraToCenterDistance]),o.be(this._fogMatrix,this._fogMatrix,-this.rollInRadians),o.bf(this._fogMatrix,this._fogMatrix,this.pitchInRadians),o.be(this._fogMatrix,this._fogMatrix,-this.bearingInRadians),o.Q(this._fogMatrix,this._fogMatrix,[-_,-S,0]),o.S(this._fogMatrix,this._fogMatrix,[1,1,this._helper._pixelPerMeter]),o.Q(this._fogMatrix,this._fogMatrix,[0,0,-this.elevation]),this._pixelMatrix3D=o.U(new Float64Array(16),this.clipSpaceToPixelsMatrix,W);const he=this._helper._width%2/2,ge=this._helper._height%2/2,we=Math.cos(this.bearingInRadians),Le=Math.sin(-this.bearingInRadians),He=_-Math.round(_)+we*he+Le*ge,Xe=S-Math.round(S)+we*ge+Le*he,Ze=new Float64Array(W);if(o.Q(Ze,Ze,[He>.5?He-1:He,Xe>.5?Xe-1:Xe,0]),this._alignedProjMatrix=Ze,W=o.bg(new Float64Array(16),this._pixelMatrix),!W)throw new Error("failed to invert matrix");this._pixelMatrixInverse=W,this._clearMatrixCaches()}_clearMatrixCaches(){this._posMatrixCache.clear(),this._alignedPosMatrixCache.clear(),this._fogMatrixCacheF32.clear()}maxPitchScaleFactor(){if(!this._pixelMatrixInverse)return 1;const u=this.screenPointToMercatorCoordinate(new o.P(0,0)),h=[u.x*this.worldSize,u.y*this.worldSize,0,1];return o.aE(h,h,this._pixelMatrix)[3]/this._helper.cameraToCenterDistance}getCameraPoint(){return this._helper.getCameraPoint()}getCameraAltitude(){return this._helper.getCameraAltitude()}getCameraLngLat(){const u=o.aq(1,this.center.lat)*this.worldSize;return mi(this.center,this.elevation,this.pitch,this.bearing,this._helper.cameraToCenterDistance/u).toLngLat()}lngLatToCameraDepth(u,h){const _=o.a7.fromLngLat(u),S=[_.x*this.worldSize,_.y*this.worldSize,h,1];return o.aE(S,S,this._viewProjMatrix),S[2]/S[3]}getProjectionData(u){const{overscaledTileID:h,aligned:_,applyTerrainMatrix:S}=u,M=this._helper.getMercatorTileCoordinates(h),V=h?this.calculatePosMatrix(h,_,!0):null;let W;return W=h?.terrainRttPosMatrix32f&&S?h.terrainRttPosMatrix32f:V||o.bh(),{mainMatrix:W,tileMercatorCoords:M,clippingPlane:[0,0,0,0],projectionTransition:0,fallbackMatrix:W}}isLocationOccluded(u){return!1}getPixelScale(){return 1}getCircleRadiusCorrection(){return 1}getPitchedTextCorrection(u,h,_){return 1}transformLightDirection(u){return o.a$(u)}getRayDirectionFromPixel(u){throw new Error("Not implemented.")}projectTileCoordinates(u,h,_,S){const M=this.calculatePosMatrix(_);let V;S?(V=[u,h,S(u,h),1],o.aE(V,V,M)):(V=[u,h,0,1],Yf(V,V,M));const W=V[3];return{point:new o.P(V[0]/W,V[1]/W),signedDistanceFromCamera:W,isOccluded:!1}}populateCache(u){for(const h of u)this.calculatePosMatrix(h)}getMatrixForModel(u,h){const _=o.a7.fromLngLat(u,h),S=_.meterInMercatorCoordinateUnits(),M=o.bi();
vendor: 1,475 bytes, line 818
818return o.Q(M,M,[_.x,_.y,_.z]),o.be(M,M,Math.PI),o.bf(M,M,Math.PI/2),o.S(M,M,[-S,S,S]),M}getProjectionDataForCustomLayer(u=!0){const h=new o.a3(0,0,0,0,0),_=this.getProjectionData({overscaledTileID:h,applyGlobeMatrix:u}),S=pi(h,this.worldSize);o.U(S,this._viewProjMatrix,S),_.tileMercatorCoords=[0,0,1,1];const M=[o.a6,o.a6,this.worldSize/this._helper.pixelsPerMeter],V=o.bj();return o.S(V,S,M),_.fallbackMatrix=V,_.mainMatrix=V,_}getFastPathSimpleProjectionMatrix(u){return this.calculatePosMatrix(u)}}function Nl(){o.w("Map cannot fit within canvas with the given bounds, padding, and/or offset.")}function Qg(E){if(E.useSlerp)if(E.k<1){const u=o.bk(E.startEulerAngles.roll,E.startEulerAngles.pitch,E.startEulerAngles.bearing),h=o.bk(E.endEulerAngles.roll,E.endEulerAngles.pitch,E.endEulerAngles.bearing),_=new Float64Array(4);o.bl(_,u,h,E.k);const S=o.bm(_);E.tr.setRoll(S.roll),E.tr.setPitch(S.pitch),E.tr.setBearing(S.bearing)}else E.tr.setRoll(E.endEulerAngles.roll),E.tr.setPitch(E.endEulerAngles.pitch),E.tr.setBearing(E.endEulerAngles.bearing);else E.tr.setRoll(o.H.number(E.startEulerAngles.roll,E.endEulerAngles.roll,E.k)),E.tr.setPitch(o.H.number(E.startEulerAngles.pitch,E.endEulerAngles.pitch,E.k)),E.tr.setBearing(o.H.number(E.startEulerAngles.bearing,E.endEulerAngles.bearing,E.k))}function e0(E,u,h,_,S){const M=S.padding,V=tr(S.worldSize,h.getNorthWest()),W=tr(S.worldSize,h.getNorthEast()),X=tr(S.worldSize,h.getSouthEast()),re=tr(S.worldSize,h.getSouthWest
vendor: 48,183 bytes, line 818
818()),ie=o.an(-_),he=V.rotate(ie),ge=W.rotate(ie),we=X.rotate(ie),Le=re.rotate(ie),He=new o.P(Math.max(he.x,ge.x,Le.x,we.x),Math.max(he.y,ge.y,Le.y,we.y)),Xe=new o.P(Math.min(he.x,ge.x,Le.x,we.x),Math.min(he.y,ge.y,Le.y,we.y)),Ze=He.sub(Xe),et=(S.width-(M.left+M.right+u.left+u.right))/Ze.x,lt=(S.height-(M.top+M.bottom+u.top+u.bottom))/Ze.y;if(lt<0||et<0)return void Nl();const Je=Math.min(o.ar(S.scale*Math.min(et,lt)),E.maxZoom),Ke=o.P.convert(E.offset),ot=new o.P((u.left-u.right)/2,(u.top-u.bottom)/2).rotate(o.an(_)),tt=Ke.add(ot).mult(S.scale/o.ao(Je));return{center:Nr(S.worldSize,V.add(X).div(2).sub(tt)),zoom:Je,bearing:_}}class Di{get useGlobeControls(){return!1}handlePanInertia(u,h){const _=u.mag(),S=Math.abs($r(h));return{easingOffset:u.mult(Math.min(.75*S/_,1)),easingCenter:h.center}}handleMapControlsRollPitchBearingZoom(u,h){u.bearingDelta&&h.setBearing(h.bearing+u.bearingDelta),u.pitchDelta&&h.setPitch(h.pitch+u.pitchDelta),u.rollDelta&&h.setRoll(h.roll+u.rollDelta),u.zoomDelta&&h.setZoom(h.zoom+u.zoomDelta)}handleMapControlsPan(u,h,_){u.around.distSqr(h.centerPoint)<.01||h.setLocationAtPoint(_,u.around)}cameraForBoxAndBearing(u,h,_,S,M){return e0(u,h,_,S,M)}handleJumpToCenterZoom(u,h){u.zoom!==(h.zoom!==void 0?+h.zoom:u.zoom)&&u.setZoom(+h.zoom),h.center!==void 0&&u.setCenter(o.W.convert(h.center))}handleEaseTo(u,h){const _=u.zoom,S=u.padding,M={roll:u.roll,pitch:u.pitch,bearing:u.bearing},V={roll:h.roll===void 0?u.roll:h.roll,pitch:h.pitch===void 0?u.pitch:h.pitch,bearing:h.bearing===void 0?u.bearing:h.bearing},W=h.zoom!==void 0,X=!u.isPaddingEqual(h.padding);let re=!1;const ie=W?+h.zoom:u.zoom;let he=u.centerPoint.add(h.offsetAsPoint);const ge=u.screenPointToLocation(he),{center:we,zoom:Le}=u.applyConstrain(o.W.convert(h.center||ge),ie??_);Fr(u,we);const He=tr(u.worldSize,ge),Xe=tr(u.worldSize,we).sub(He),Ze=o.ao(Le-_);return re=Le!==_,{easeFunc:et=>{if(re&&u.setZoom(o.H.number(_,Le,et)),o.bn(M,V)||Qg({startEulerAngles:M,endEulerAngles:V,tr:u,k:et,useSlerp:M.roll!=V.roll}),X&&(u.interpolatePadding(S,h.padding,et),he=u.centerPoint.add(h.offsetAsPoint)),h.around)u.setLocationAtPoint(h.around,h.aroundPoint);else{const lt=o.ao(u.zoom-_),Je=Le>_?Math.min(2,Ze):Math.max(.5,Ze),Ke=Math.pow(Je,1-et),ot=Nr(u.worldSize,He.add(Xe.mult(et*Ke)).mult(lt));u.setLocationAtPoint(u.renderWorldCopies?ot.wrap():ot,he)}},isZooming:re,elevationCenter:we}}handleFlyTo(u,h){const _=h.zoom!==void 0,S=u.zoom,M=u.applyConstrain(o.W.convert(h.center||h.locationAtOffset),_?+h.zoom:S),V=M.center,W=M.zoom;Fr(u,V);const X=tr(u.worldSize,h.locationAtOffset),re=tr(u.worldSize,V).sub(X),ie=re.mag(),he=o.ao(W-S);let ge;if(h.minZoom!==void 0){const we=Math.min(+h.minZoom,S,W),Le=u.applyConstrain(V,we).zoom;ge=o.ao(Le-S)}return{easeFunc:(we,Le,He,Xe)=>{u.setZoom(we===1?W:S+o.ar(Le));const Ze=we===1?V:Nr(u.worldSize,X.add(re.mult(He)).mult(Le));u.setLocationAtPoint(u.renderWorldCopies?Ze.wrap():Ze,Xe)},scaleOfZoom:he,targetCenter:V,scaleOfMinZoom:ge,pixelPathLength:ie}}}class Yr{constructor(u,h,_){this.blendFunction=u,this.blendColor=h,this.mask=_}}Yr.Replace=[1,0],Yr.disabled=new Yr(Yr.Replace,o.bo.transparent,[!1,!1,!1,!1]),Yr.unblended=new Yr(Yr.Replace,o.bo.transparent,[!0,!0,!0,!0]),Yr.alphaBlended=new Yr([1,771],o.bo.transparent,[!0,!0,!0,!0]);const Cs=2305;class Cr{constructor(u,h,_){this.enable=u,this.mode=h,this.frontFace=_}}Cr.disabled=new Cr(!1,1029,Cs),Cr.backCCW=new Cr(!0,1029,Cs),Cr.frontCCW=new Cr(!0,1028,Cs);class Jn{constructor(u,h,_){this.func=u,this.mask=h,this.range=_}}Jn.ReadOnly=!1,Jn.ReadWrite=!0,Jn.disabled=new Jn(519,Jn.ReadOnly,[0,1]);const Da=7680;class kr{constructor(u,h,_,S,M,V){this.test=u,this.ref=h,this.mask=_,this.fail=S,this.depthFail=M,this.pass=V}}function Ts(E){return typeof WebGL2RenderingContext<"u"&&E instanceof WebGL2RenderingContext}kr.disabled=new kr({func:519,mask:0},0,0,Da,Da,Da);class $c{get awaitingQuery(){return!!this._readbackQueue}constructor(u){this._readbackWaitFrames=4,this._measureWaitFrames=6,this._texWidth=1,this._texHeight=1,this._measuredError=0,this._updateCount=0,this._lastReadbackFrame=-1e3,this._readbackQueue=null,this._cachedRenderContext=u;const h=u.context,_=h.gl;this._texFormat=_.RGBA,this._texType=_.UNSIGNED_BYTE;const S=new o.aU;S.emplaceBack(-1,-1),S.emplaceBack(2,-1),S.emplaceBack(-1,2);const M=new o.aW;M.emplaceBack(0,1,2),this._fullscreenTriangle=new Gr(h.createVertexBuffer(S,Mu.members),h.createIndexBuffer(M),o.aV.simpleSegment(0,0,S.length,M.length)),this._resultBuffer=new Uint8Array(4),h.activeTexture.set(_.TEXTURE1);const V=_.createTexture();_.bindTexture(_.TEXTURE_2D,V),_.texParameteri(_.TEXTURE_2D,_.TEXTURE_WRAP_S,_.CLAMP_TO_EDGE),_.texParameteri(_.TEXTURE_2D,_.TEXTURE_WRAP_T,_.CLAMP_TO_EDGE),_.texParameteri(_.TEXTURE_2D,_.TEXTURE_MIN_FILTER,_.NEAREST),_.texParameteri(_.TEXTURE_2D,_.TEXTURE_MAG_FILTER,_.NEAREST),_.texImage2D(_.TEXTURE_2D,0,this._texFormat,this._texWidth,this._texHeight,0,this._texFormat,this._texType,null),this._fbo=h.createFramebuffer(this._texWidth,this._texHeight,!1,!1),this._fbo.colorAttachment.set(V),Ts(_)&&(this._pbo=_.createBuffer(),_.bindBuffer(_.PIXEL_PACK_BUFFER,this._pbo),_.bufferData(_.PIXEL_PACK_BUFFER,4,_.STREAM_READ),_.bindBuffer(_.PIXEL_PACK_BUFFER,null))}destroy(){const u=this._cachedRenderContext.context.gl;this._fullscreenTriangle.destroy(),this._fbo.destroy(),u.deleteBuffer(this._pbo),this._fullscreenTriangle=null,this._fbo=null,this._pbo=null,this._resultBuffer=null}updateErrorLoop(u,h){const _=this._updateCount;return this._readbackQueue?_>=this._readbackQueue.frameNumberIssued+this._readbackWaitFrames&&this._tryReadback():_>=this._lastReadbackFrame+this._measureWaitFrames&&this._renderErrorTexture(u,h),this._updateCount++,this._measuredError}_bindFramebuffer(){const u=this._cachedRenderContext.context,h=u.gl;u.activeTexture.set(h.TEXTURE1),h.bindTexture(h.TEXTURE_2D,this._fbo.colorAttachment.get()),u.bindFramebuffer.set(this._fbo.framebuffer)}_renderErrorTexture(u,h){const _=this._cachedRenderContext.context,S=_.gl;if(this._bindFramebuffer(),_.viewport.set([0,0,this._texWidth,this._texHeight]),_.clear({color:o.bo.transparent}),this._cachedRenderContext.useProgram("projectionErrorMeasurement").draw(_,S.TRIANGLES,Jn.disabled,kr.disabled,Yr.unblended,Cr.disabled,((M,V)=>({u_input:M,u_output_expected:V}))(u,h),null,null,"$clipping",this._fullscreenTriangle.vertexBuffer,this._fullscreenTriangle.indexBuffer,this._fullscreenTriangle.segments),this._pbo&&Ts(S)){S.bindBuffer(S.PIXEL_PACK_BUFFER,this._pbo),S.readBuffer(S.COLOR_ATTACHMENT0),S.readPixels(0,0,this._texWidth,this._texHeight,this._texFormat,this._texType,0),S.bindBuffer(S.PIXEL_PACK_BUFFER,null);const M=S.fenceSync(S.SYNC_GPU_COMMANDS_COMPLETE,0);S.flush(),this._readbackQueue={frameNumberIssued:this._updateCount,sync:M}}else this._readbackQueue={frameNumberIssued:this._updateCount,sync:null}}_tryReadback(){const u=this._cachedRenderContext.context.gl;if(this._pbo&&this._readbackQueue&&Ts(u)){const h=u.clientWaitSync(this._readbackQueue.sync,0,0);if(h===u.WAIT_FAILED)return o.w("WebGL2 clientWaitSync failed."),this._readbackQueue=null,void(this._lastReadbackFrame=this._updateCount);if(h===u.TIMEOUT_EXPIRED)return;u.bindBuffer(u.PIXEL_PACK_BUFFER,this._pbo),u.getBufferSubData(u.PIXEL_PACK_BUFFER,0,this._resultBuffer,0,4),u.bindBuffer(u.PIXEL_PACK_BUFFER,null)}else this._bindFramebuffer(),u.readPixels(0,0,this._texWidth,this._texHeight,this._texFormat,this._texType,this._resultBuffer);this._readbackQueue=null,this._measuredError=$c._parseRGBA8float(this._resultBuffer),this._lastReadbackFrame=this._updateCount}static _parseRGBA8float(u){let h=0;return h+=u[0]/256,h+=u[1]/65536,h+=u[2]/16777216,u[3]<127&&(h=-h),h/128}}const Au=o.a6/128;function Mc(E,u){const h=E.granularity!==void 0?Math.max(E.granularity,1):1,_=h+(E.generateBorders?2:0),S=h+(E.extendToNorthPole||E.generateBorders?1:0)+(E.extendToSouthPole||E.generateBorders?1:0),M=_+1,V=S+1,W=E.generateBorders?-1:0,X=E.generateBorders||E.extendToNorthPole?-1:0,re=h+(E.generateBorders?1:0),ie=h+(E.generateBorders||E.extendToSouthPole?1:0),he=M*V,ge=_*S*6,we=M*V>65536;if(we&&u==="16bit")throw new Error("Granularity is too large and meshes would not fit inside 16 bit vertex indices.");const Le=we||u==="32bit",He=new Int16Array(2*he);let Xe=0;for(let lt=X;lt<=ie;lt++)for(let Je=W;Je<=re;Je++){let Ke=Je/h*o.a6;Je===-1&&(Ke=-Au),Je===h+1&&(Ke=o.a6+Au);let ot=lt/h*o.a6;lt===-1&&(ot=E.extendToNorthPole?o.bq:-Au),lt===h+1&&(ot=E.extendToSouthPole?o.br:o.a6+Au),He[Xe++]=Ke,He[Xe++]=ot}const Ze=Le?new Uint32Array(ge):new Uint16Array(ge);let et=0;for(let lt=0;lt<S;lt++)for(let Je=0;Je<_;Je++){const Ke=Je+1+lt*M,ot=Je+(lt+1)*M,tt=Je+1+(lt+1)*M;Ze[et++]=Je+lt*M,Ze[et++]=ot,Ze[et++]=Ke,Ze[et++]=Ke,Ze[et++]=ot,Ze[et++]=tt}return{vertices:He.buffer.slice(0),indices:Ze.buffer.slice(0),uses32bitIndices:Le}}const Fp=new o.aT({fill:new o.bs(128,2),line:new o.bs(512,0),tile:new o.bs(128,32),stencil:new o.bs(128,1),circle:3});class Ya{constructor(){this._tileMeshCache={},this._errorCorrectionUsable=0,this._errorMeasurementLastValue=0,this._errorCorrectionPreviousValue=0,this._errorMeasurementLastChangeTime=-1e3}get name(){return"vertical-perspective"}get transitionState(){return 1}get useSubdivision(){return!0}get shaderVariantName(){return"globe"}get shaderDefine(){return"#define GLOBE"}get shaderPreludeCode(){return ki.projectionGlobe}get vertexShaderPreludeCode(){return ki.projectionMercator.vertexSource}get subdivisionGranularity(){return Fp}get useGlobeControls(){return!0}get latitudeErrorCorrectionRadians(){return this._errorCorrectionUsable}destroy(){this._errorMeasurement&&this._errorMeasurement.destroy()}updateGPUdependent(u){this._errorMeasurement||(this._errorMeasurement=new $c(u));const h=o.Y(this._errorQueryLatitudeDegrees),_=2*Math.atan(Math.exp(Math.PI-h*Math.PI*2))-.5*Math.PI,S=this._errorMeasurement.updateErrorLoop(h,_),M=A();S!==this._errorMeasurementLastValue&&(this._errorCorrectionPreviousValue=this._errorCorrectionUsable,this._errorMeasurementLastValue=S,this._errorMeasurementLastChangeTime=M);const V=Math.min(Math.max((M-this._errorMeasurementLastChangeTime)/1e3/.5,0),1);this._errorCorrectionUsable=o.bt(this._errorCorrectionPreviousValue,-this._errorMeasurementLastValue,o.bu(V))}_getMeshKey(u){return`${u.granularity.toString(36)}_${u.generateBorders?"b":""}${u.extendToNorthPole?"n":""}${u.extendToSouthPole?"s":""}`}getMeshFromTileID(u,h,_,S,M){const V=(M==="stencil"?Fp.stencil:Fp.tile).getGranularityForZoomLevel(h.z);return this._getMesh(u,{granularity:V,generateBorders:_,extendToNorthPole:h.y===0&&S,extendToSouthPole:h.y===(1<<h.z)-1&&S})}_getMesh(u,h){const _=this._getMeshKey(h);if(_ in this._tileMeshCache)return this._tileMeshCache[_];const S=(function(M,V){const W=Mc(V,"16bit"),X=o.aU.deserialize({arrayBuffer:W.vertices,length:W.vertices.byteLength/2/2}),re=o.aW.deserialize({arrayBuffer:W.indices,length:W.indices.byteLength/2/3});return new Gr(M.createVertexBuffer(X,Mu.members),M.createIndexBuffer(re),o.aV.simpleSegment(0,0,X.length,re.length))})(u,h);return this._tileMeshCache[_]=S,S}recalculate(u){}hasTransition(){var u;const h=A();let _=!1;return _||(_=(h-this._errorMeasurementLastChangeTime)/1e3<.7),_||(_=(u=this._errorMeasurement)===null||u===void 0?void 0:u.awaitingQuery),_}setErrorQueryLatitudeDegrees(u){this._errorQueryLatitudeDegrees=u}}const x1=new o.u({type:new o.D(o.x.projection.type)});class $o extends o.E{constructor(u){super(),this._transitionable=new o.y(x1,void 0),this.setProjection(u),this._transitioning=this._transitionable.untransitioned(),this.recalculate(new o.J(0)),this._mercatorProjection=new po,this._verticalPerspectiveProjection=new Ya}get transitionState(){const u=this.properties.get("type");if(typeof u=="string"&&u==="mercator")return 0;if(typeof u=="string"&&u==="vertical-perspective")return 1;if(u instanceof o.bv){if(u.from==="vertical-perspective"&&u.to==="mercator")return 1-u.transition;if(u.from==="mercator"&&u.to==="vertical-perspective")return u.transition}return 1}get useGlobeRendering(){return this.transitionState>0}get latitudeErrorCorrectionRadians(){return this._verticalPerspectiveProjection.latitudeErrorCorrectionRadians}get currentProjection(){return this.useGlobeRendering?this._verticalPerspectiveProjection:this._mercatorProjection}get name(){return"globe"}get useSubdivision(){return this.currentProjection.useSubdivision}get shaderVariantName(){return this.currentProjection.shaderVariantName}get shaderDefine(){return this.currentProjection.shaderDefine}get shaderPreludeCode(){return this.currentProjection.shaderPreludeCode}get vertexShaderPreludeCode(){return this.currentProjection.vertexShaderPreludeCode}get subdivisionGranularity(){return this.currentProjection.subdivisionGranularity}get useGlobeControls(){return this.transitionState>0}destroy(){this._mercatorProjection.destroy(),this._verticalPerspectiveProjection.destroy()}updateGPUdependent(u){this._mercatorProjection.updateGPUdependent(u),this._verticalPerspectiveProjection.updateGPUdependent(u)}getMeshFromTileID(u,h,_,S,M){return this.currentProjection.getMeshFromTileID(u,h,_,S,M)}setProjection(u){this._transitionable.setValue("type",u?.type||"mercator")}updateTransitions(u){this._transitioning=this._transitionable.transitioned(u,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()||this.currentProjection.hasTransition()}recalculate(u){this.properties=this._transitioning.possiblyEvaluate(u)}setErrorQueryLatitudeDegrees(u){this._verticalPerspectiveProjection.setErrorQueryLatitudeDegrees(u),this._mercatorProjection.setErrorQueryLatitudeDegrees(u)}}function w1(E){const u=Za(E.worldSize,E.center.lat);return 2*Math.PI*u}function Fi(E,u,h,_,S){const M=1/(1<<S),V=u/o.a6*M+_*M,W=o.by((E/o.a6*M+h*M)*Math.PI*2+Math.PI,2*Math.PI),X=2*Math.atan(Math.exp(Math.PI-V*Math.PI*2))-.5*Math.PI,re=Math.cos(X),ie=new Float64Array(3);return ie[0]=Math.sin(W)*re,ie[1]=Math.sin(X),ie[2]=Math.cos(W)*re,ie}function wi(E){return(function(u,h){const _=Math.cos(h),S=new Float64Array(3);return S[0]=Math.sin(u)*_,S[1]=Math.sin(h),S[2]=Math.cos(u)*_,S})(E.lng*Math.PI/180,E.lat*Math.PI/180)}function Za(E,u){return E/(2*Math.PI)/Math.cos(u*Math.PI/180)}function Ac(E){const u=Math.asin(E[1])/Math.PI*180,h=Math.sqrt(E[0]*E[0]+E[2]*E[2]);if(h>1e-6){const _=E[0]/h,S=Math.acos(E[2]/h),M=(_>0?S:-S)/Math.PI*180;return new o.W(o.X(M,-180,180),u)}return new o.W(0,u)}function ni(E){return Math.cos(E*Math.PI/180)}function gi(E,u){const h=ni(E),_=ni(u);return o.ar(_/h)}function Vl(E,u){const h=E.rotate(u.bearingInRadians),_=u.zoom+gi(u.center.lat,0),S=o.bt(1/ni(u.center.lat),1/ni(Math.min(Math.abs(u.center.lat),60)),o.bw(_,7,3,0,1)),M=360/w1({worldSize:u.worldSize,center:{lat:u.center.lat}});return new o.W(u.center.lng-h.x*M*S,o.al(u.center.lat+h.y*M,-o.am,o.am))}function t0(E){const u=.5*E,h=Math.sin(u),_=Math.cos(u);return Math.log(h+_)-Math.log(_-h)}function zp(E,u,h,_){const S=E.lat+h*_;if(Math.abs(h)>1){const M=(Math.sign(E.lat+h)!==Math.sign(E.lat)?-Math.abs(E.lat):Math.abs(E.lat))*Math.PI/180,V=Math.abs(E.lat+h)*Math.PI/180,W=t0(M+_*(V-M)),X=t0(M),re=t0(V);return new o.W(E.lng+u*((W-X)/(re-X)),S)}return new o.W(E.lng+u*_,S)}class ub{constructor(u){this._cachePrevious=new Map,this._cache=new Map,this._hadAnyChanges=!1,this._boundingVolumeFactory=u}swapBuffers(){if(!this._hadAnyChanges)return;const u=this._cachePrevious;this._cachePrevious=this._cache,this._cache=u,this._cache.clear(),this._hadAnyChanges=!1}getTileBoundingVolume(u,h,_,S){const M=`${u.z}_${u.x}_${u.y}_${S?.terrain?"t":""}`,V=this._cache.get(M);if(V)return V;const W=this._cachePrevious.get(M);if(W)return this._cache.set(M,W),W;const X=this._boundingVolumeFactory(u,h,_,S);return this._cache.set(M,X),this._hadAnyChanges=!0,X}}class Fd{constructor(u,h,_,S){this.min=_,this.max=S,this.points=u,this.planes=h}static fromAabb(u,h){const _=[];for(let S=0;S<8;S++)_.push([1&~S?u[0]:h[0],(S>>1&1)==1?h[1]:u[1],(S>>2&1)==1?h[2]:u[2]]);return new Fd(_,[[-1,0,0,h[0]],[1,0,0,-u[0]],[0,-1,0,h[1]],[0,1,0,-u[1]],[0,0,-1,h[2]],[0,0,1,-u[2]]],u,h)}static fromCenterSizeAngles(u,h,_){const S=o.bA([],_[0],_[1],_[2]),M=o.bB([],[h[0],0,0],S),V=o.bB([],[0,h[1],0],S),W=o.bB([],[0,0,h[2]],S),X=[...u],re=[...u];for(let he=0;he<8;he++)for(let ge=0;ge<3;ge++){const we=u[ge]+M[ge]*(1&~he?-1:1)+V[ge]*((he>>1&1)==1?1:-1)+W[ge]*((he>>2&1)==1?1:-1);X[ge]=Math.min(X[ge],we),re[ge]=Math.max(re[ge],we)}const ie=[];for(let he=0;he<8;he++){const ge=[...u];o.a_(ge,ge,o.aZ([],M,1&~he?-1:1)),o.a_(ge,ge,o.aZ([],V,(he>>1&1)==1?1:-1)),o.a_(ge,ge,o.aZ([],W,(he>>2&1)==1?1:-1)),ie.push(ge)}return new Fd(ie,[[...M,-o.b3(M,ie[0])],[...V,-o.b3(V,ie[0])],[...W,-o.b3(W,ie[0])],[-M[0],-M[1],-M[2],-o.b3(M,ie[7])],[-V[0],-V[1],-V[2],-o.b3(V,ie[7])],[-W[0],-W[1],-W[2],-o.b3(W,ie[7])]],X,re)}intersectsFrustum(u){let h=!0;const _=this.points.length,S=this.planes.length,M=u.planes.length,V=u.points.length;for(let W=0;W<M;W++){const X=u.planes[W];let re=0;for(let ie=0;ie<_;ie++){const he=this.points[ie];X[0]*he[0]+X[1]*he[1]+X[2]*he[2]+X[3]>=0&&re++}if(re===0)return 0;re<_&&(h=!1)}if(h)return 2;for(let W=0;W<S;W++){const X=this.planes[W];let re=0;for(let ie=0;ie<V;ie++){const he=u.points[ie];X[0]*he[0]+X[1]*he[1]+X[2]*he[2]+X[3]>=0&&re++}if(re===0)return 0}return 1}intersectsPlane(u){const h=this.points.length;let _=0;for(let S=0;S<h;S++){const M=this.points[S];u[0]*M[0]+u[1]*M[1]+u[2]*M[2]+u[3]>=0&&_++}return _===h?2:_===0?0:1}}function Np(E,u,h){const _=E-u;return _<0?-_:Math.max(0,_-h)}function Vp(E,u,h,_,S){const M=E-h;let V;return V=M<0?Math.min(-M,1+M-S):M>S?Math.min(Math.max(M-S,0),1-M):0,Math.max(V,Np(u,_,S))}class Ic{constructor(){this._boundingVolumeCache=new ub(this._computeTileBoundingVolume)}prepareNextFrame(){this._boundingVolumeCache.swapBuffers()}distanceToTile2d(u,h,_,S){const M=1<<_.z,V=1/M,W=_.x/M,X=_.y/M;let re=2;return re=Math.min(re,Vp(u,h,W,X,V)),re=Math.min(re,Vp(u,h,W+.5,-X-V,V)),re=Math.min(re,Vp(u,h,W+.5,2-X-V,V)),re}getWrap(u,h,_){const S=1<<h.z,M=1/S,V=h.x/S,W=Np(u.x,V,M),X=Np(u.x,V-1,M),re=Np(u.x,V+1,M),ie=Math.min(W,X,re);return ie===re?1:ie===X?-1:0}allowVariableZoom(u,h){return _a(u,h)>4}allowWorldCopies(){return!1}getTileBoundingVolume(u,h,_,S){return this._boundingVolumeCache.getTileBoundingVolume(u,h,_,S)}_computeTileBoundingVolume(u,h,_,S){var M,V;let W=0,X=0;if(S?.terrain){const re=new o.a3(u.z,h,u.z,u.x,u.y),ie=S.terrain.getMinMaxElevation(re);W=(M=ie.minElevation)!==null&&M!==void 0?M:Math.min(0,_),X=(V=ie.maxElevation)!==null&&V!==void 0?V:Math.max(0,_)}if(W/=o.bD,X/=o.bD,W+=1,X+=1,u.z<=0)return Fd.fromAabb([-X,-X,-X],[X,X,X]);if(u.z===1)return Fd.fromAabb([u.x===0?-X:0,u.y===0?0:-X,-X],[u.x===0?0:X,u.y===0?X:0,X]);{const re=[Fi(0,0,u.x,u.y,u.z),Fi(o.a6,0,u.x,u.y,u.z),Fi(o.a6,o.a6,u.x,u.y,u.z),Fi(0,o.a6,u.x,u.y,u.z)],ie=[];for(const Qt of re)ie.push(o.aZ([],Qt,X));if(X!==W)for(const Qt of re)ie.push(o.aZ([],Qt,W));u.y===0&&ie.push([0,1,0]),u.y===(1<<u.z)-1&&ie.push([0,-1,0]);const he=[1,1,1],ge=[-1,-1,-1];for(const Qt of ie)for(let Xt=0;Xt<3;Xt++)he[Xt]=Math.min(he[Xt],Qt[Xt]),ge[Xt]=Math.max(ge[Xt],Qt[Xt]);const we=Fi(o.a6/2,o.a6/2,u.x,u.y,u.z),Le=o.b2([],[0,1,0],we);o.b1(Le,Le);const He=o.b2([],we,Le);o.b1(He,He);const Xe=o.b2([],re[2],re[1]);o.b1(Xe,Xe);const Ze=o.b2([],re[0],re[3]);o.b1(Ze,Ze),ie.push(o.aZ([],we,X)),u.y>=(1<<u.z)/2&&ie.push(o.aZ([],Fi(o.a6/2,0,u.x,u.y,u.z),X)),u.y<(1<<u.z)/2&&ie.push(o.aZ([],Fi(o.a6/2,o.a6,u.x,u.y,u.z),X));const et=ql(we,ie),lt=ql(He,ie),Je=[-we[0],-we[1],-we[2],et.max],Ke=[we[0],we[1],we[2],-et.min],ot=[-He[0],-He[1],-He[2],lt.max],tt=[He[0],He[1],He[2],-lt.min],wt=[...Xe,0],Rt=[...Ze,0],Vt=[];return u.y===0?Vt.push(o.bC(Rt,wt,Je),o.bC(Rt,wt,Ke)):Vt.push(o.bC(ot,wt,Je),o.bC(ot,wt,Ke),o.bC(ot,Rt,Je),o.bC(ot,Rt,Ke)),u.y===(1<<u.z)-1?Vt.push(o.bC(Rt,wt,Je),o.bC(Rt,wt,Ke)):Vt.push(o.bC(tt,wt,Je),o.bC(tt,wt,Ke),o.bC(tt,Rt,Je),o.bC(tt,Rt,Ke)),new Fd(Vt,[Je,Ke,ot,tt,wt,Rt],he,ge)}}}function ql(E,u){let h=1/0,_=-1/0;for(const S of u){const M=o.b3(E,S);h=Math.min(h,M),_=Math.max(_,M)}return{min:h,max:_}}class Dc{get pixelsToClipSpaceMatrix(){return this._helper.pixelsToClipSpaceMatrix}get clipSpaceToPixelsMatrix(){return this._helper.clipSpaceToPixelsMatrix}get pixelsToGLUnits(){return this._helper.pixelsToGLUnits}get centerOffset(){return this._helper.centerOffset}get size(){return this._helper.size}get rotationMatrix(){return this._helper.rotationMatrix}get centerPoint(){return this._helper.centerPoint}get pixelsPerMeter(){return this._helper.pixelsPerMeter}setMinZoom(u){this._helper.setMinZoom(u)}setMaxZoom(u){this._helper.setMaxZoom(u)}setMinPitch(u){this._helper.setMinPitch(u)}setMaxPitch(u){this._helper.setMaxPitch(u)}setRenderWorldCopies(u){this._helper.setRenderWorldCopies(u)}setBearing(u){this._helper.setBearing(u)}setPitch(u){this._helper.setPitch(u)}setRoll(u){this._helper.setRoll(u)}setFov(u){this._helper.setFov(u)}setZoom(u){this._helper.setZoom(u)}setCenter(u){this._helper.setCenter(u)}setElevation(u){this._helper.setElevation(u)}setMinElevationForCurrentTile(u){this._helper.setMinElevationForCurrentTile(u)}setPadding(u){this._helper.setPadding(u)}interpolatePadding(u,h,_){this._helper.interpolatePadding(u,h,_)}isPaddingEqual(u){return this._helper.isPaddingEqual(u)}resize(u,h){this._helper.resize(u,h)}getMaxBounds(){return this._helper.getMaxBounds()}setMaxBounds(u){this._helper.setMaxBounds(u)}setConstrainOverride(u){this._helper.setConstrainOverride(u)}overrideNearFarZ(u,h){this._helper.overrideNearFarZ(u,h)}clearNearFarZOverride(){this._helper.clearNearFarZOverride()}getCameraQueryGeometry(u){return this._helper.getCameraQueryGeometry(this.getCameraPoint(),u)}get tileSize(){return this._helper.tileSize}get tileZoom(){return this._helper.tileZoom}get scale(){return this._helper.scale}get worldSize(){return this._helper.worldSize}get width(){return this._helper.width}get height(){return this._helper.height}get lngRange(){return this._helper.lngRange}get latRange(){return this._helper.latRange}get minZoom(){return this._helper.minZoom}get maxZoom(){return this._helper.maxZoom}get zoom(){return this._helper.zoom}get center(){return this._helper.center}get minPitch(){return this._helper.minPitch}get maxPitch(){return this._helper.maxPitch}get pitch(){return this._helper.pitch}get pitchInRadians(){return this._helper.pitchInRadians}get roll(){return this._helper.roll}get rollInRadians(){return this._helper.rollInRadians}get bearing(){return this._helper.bearing}get bearingInRadians(){return this._helper.bearingInRadians}get fov(){return this._helper.fov}get fovInRadians(){return this._helper.fovInRadians}get elevation(){return this._helper.elevation}get minElevationForCurrentTile(){return this._helper.minElevationForCurrentTile}get padding(){return this._helper.padding}get unmodified(){return this._helper.unmodified}get renderWorldCopies(){return this._helper.renderWorldCopies}get constrainOverride(){return this._helper.constrainOverride}get nearZ(){return this._helper.nearZ}get farZ(){return this._helper.farZ}get autoCalculateNearFarZ(){return this._helper.autoCalculateNearFarZ}setTransitionState(u){}constructor(u){this._cachedClippingPlane=o.bE(),this._projectionMatrix=o.bi(),this._globeViewProjMatrix32f=o.bh(),this._globeViewProjMatrixNoCorrection=o.bi(),this._globeViewProjMatrixNoCorrectionInverted=o.bi(),this._globeProjMatrixInverted=o.bi(),this._cameraPosition=o.bz(),this._globeLatitudeErrorCorrectionRadians=0,this.defaultConstrain=(h,_)=>{const S=o.al(h.lat,-o.am,o.am),M=o.al(+_,this.minZoom+gi(0,S),this.maxZoom);return{center:new o.W(h.lng,S),zoom:M}},this.applyConstrain=(h,_)=>this._helper.applyConstrain(h,_),this._helper=new Ec({calcMatrices:()=>this._calcMatrices(),defaultConstrain:(h,_)=>this.defaultConstrain(h,_)},u),this._coveringTilesDetailsProvider=new Ic}clone(){const u=new Dc;return u.apply(this,!1),u}apply(u,h,_){this._globeLatitudeErrorCorrectionRadians=_||0,this._helper.apply(u,h)}get projectionMatrix(){return this._projectionMatrix}get modelViewProjectionMatrix(){return this._globeViewProjMatrixNoCorrection}get inverseProjectionMatrix(){return this._globeProjMatrixInverted}get cameraPosition(){const u=o.bz();return u[0]=this._cameraPosition[0],u[1]=this._cameraPosition[1],u[2]=this._cameraPosition[2],u}get cameraToCenterDistance(){return this._helper.cameraToCenterDistance}getProjectionData(u){const{overscaledTileID:h,applyGlobeMatrix:_}=u,S=this._helper.getMercatorTileCoordinates(h);return{mainMatrix:this._globeViewProjMatrix32f,tileMercatorCoords:S,clippingPlane:this._cachedClippingPlane,projectionTransition:_?1:0,fallbackMatrix:this._globeViewProjMatrix32f}}_computeClippingPlane(u){const h=this.pitchInRadians,_=this.cameraToCenterDistance/u,S=Math.sin(h)*_,M=Math.cos(h)*_+1,V=1/Math.sqrt(S*S+M*M)*1;let W=-S,X=M;const re=Math.sqrt(W*W+X*X);W/=re,X/=re;const ie=[0,W,X];o.bF(ie,ie,[0,0,0],-this.bearingInRadians),o.bG(ie,ie,[0,0,0],-1*this.center.lat*Math.PI/180),o.bH(ie,ie,[0,0,0],this.center.lng*Math.PI/180);const he=1/o.b5(ie);return o.aZ(ie,ie,he),[...ie,-V*he]}isLocationOccluded(u){return!this.isSurfacePointVisible(wi(u))}transformLightDirection(u){const h=this._helper._center.lng*Math.PI/180,_=this._helper._center.lat*Math.PI/180,S=Math.cos(_),M=[Math.sin(h)*S,Math.sin(_),Math.cos(h)*S],V=[M[2],0,-M[0]],W=[0,0,0];o.b2(W,V,M),o.b1(V,V),o.b1(W,W);const X=[0,0,0];return o.b1(X,[V[0]*u[0]+W[0]*u[1]+M[0]*u[2],V[1]*u[0]+W[1]*u[1]+M[1]*u[2],V[2]*u[0]+W[2]*u[1]+M[2]*u[2]]),X}getPixelScale(){return 1/Math.cos(this._helper._center.lat*Math.PI/180)}getCircleRadiusCorrection(){return Math.cos(this._helper._center.lat*Math.PI/180)}getPitchedTextCorrection(u,h,_){const S=(function(W,X,re){const ie=1/(1<<re.z);return new o.a7(W/o.a6*ie+re.x*ie,X/o.a6*ie+re.y*ie)})(u,h,_.canonical),M=(V=S.y,[o.by(S.x*Math.PI*2+Math.PI,2*Math.PI),2*Math.atan(Math.exp(Math.PI-V*Math.PI*2))-.5*Math.PI]);var V;return this.getCircleRadiusCorrection()/Math.cos(M[1])}projectTileCoordinates(u,h,_,S){const M=_.canonical,V=Fi(u,h,M.x,M.y,M.z),W=1+(S?S(u,h):0)/o.bD,X=[V[0]*W,V[1]*W,V[2]*W,1];o.aE(X,X,this._globeViewProjMatrixNoCorrection);const re=this._cachedClippingPlane,ie=re[0]*V[0]+re[1]*V[1]+re[2]*V[2]+re[3]<0;return{point:new o.P(X[0]/X[3],X[1]/X[3]),signedDistanceFromCamera:X[3],isOccluded:ie}}_calcMatrices(){if(!this._helper._width||!this._helper._height)return;const u=Za(this.worldSize,this.center.lat),h=o.bj(),_=o.bj();this._helper.autoCalculateNearFarZ&&(this._helper._nearZ=.5,this._helper._farZ=this.cameraToCenterDistance+2*u),o.bc(h,this.fovInRadians,this.width/this.height,this._helper._nearZ,this._helper._farZ);const S=this.centerOffset;h[8]=2*-S.x/this._helper._width,h[9]=2*S.y/this._helper._height,this._projectionMatrix=o.bd(h),this._globeProjMatrixInverted=o.bj(),o.bg(this._globeProjMatrixInverted,h),o.Q(h,h,[0,0,-this.cameraToCenterDistance]),o.be(h,h,this.rollInRadians),o.bf(h,h,-this.pitchInRadians),o.be(h,h,this.bearingInRadians),o.Q(h,h,[0,0,-u]);const M=o.bz();M[0]=u,M[1]=u,M[2]=u,o.bf(_,h,this.center.lat*Math.PI/180),o.bI(_,_,-this.center.lng*Math.PI/180),o.S(_,_,M),this._globeViewProjMatrixNoCorrection=_,o.bf(h,h,this.center.lat*Math.PI/180-this._globeLatitudeErrorCorrectionRadians),o.bI(h,h,-this.center.lng*Math.PI/180),o.S(h,h,M),this._globeViewProjMatrix32f=new Float32Array(h),this._globeViewProjMatrixNoCorrectionInverted=o.bj(),o.bg(this._globeViewProjMatrixNoCorrectionInverted,_);const V=o.bz();this._cameraPosition=o.bz(),this._cameraPosition[2]=this.cameraToCenterDistance/u,o.bF(this._cameraPosition,this._cameraPosition,V,-this.rollInRadians),o.bG(this._cameraPosition,this._cameraPosition,V,this.pitchInRadians),o.bF(this._cameraPosition,this._cameraPosition,V,-this.bearingInRadians),o.a_(this._cameraPosition,this._cameraPosition,[0,0,1]),o.bG(this._cameraPosition,this._cameraPosition,V,-this.center.lat*Math.PI/180),o.bH(this._cameraPosition,this._cameraPosition,V,this.center.lng*Math.PI/180),this._cachedClippingPlane=this._computeClippingPlane(u);const W=o.bd(this._globeViewProjMatrixNoCorrectionInverted);o.S(W,W,[1,1,-1]),this._cachedFrustum=Po.fromInvProjectionMatrix(W,1,0,this._cachedClippingPlane,!0)}calculateFogMatrix(u){o.w("calculateFogMatrix is not supported on globe projection.");const h=o.bj();return o.ap(h),h}getVisibleUnwrappedCoordinates(u){return[new o.ba(0,u)]}getCameraFrustum(){return this._cachedFrustum}getClippingPlane(){return this._cachedClippingPlane}getCoveringTilesDetailsProvider(){return this._coveringTilesDetailsProvider}recalculateZoomAndCenter(u){u&&o.w("terrain is not fully supported on vertical perspective projection."),this._helper.recalculateZoomAndCenter(0)}maxPitchScaleFactor(){return 1}getCameraPoint(){return this._helper.getCameraPoint()}getCameraAltitude(){return this._helper.getCameraAltitude()}getCameraLngLat(){return this._helper.getCameraLngLat()}lngLatToCameraDepth(u,h){if(!this._globeViewProjMatrixNoCorrection)return 1;const _=wi(u);o.aZ(_,_,1+h/o.bD);const S=o.bE();return o.aE(S,[_[0],_[1],_[2],1],this._globeViewProjMatrixNoCorrection),S[2]/S[3]}populateCache(u){}getBounds(){const u=.5*this.width,h=.5*this.height,_=[new o.P(0,0),new o.P(u,0),new o.P(this.width,0),new o.P(this.width,h),new o.P(this.width,this.height),new o.P(u,this.height),new o.P(0,this.height),new o.P(0,h)],S=[];for(const he of _)S.push(this.unprojectScreenPoint(he));let M=0,V=0,W=0,X=0;const re=this.center;for(const he of S){const ge=o.bJ(re.lng,he.lng),we=o.bJ(re.lat,he.lat);ge<V&&(V=ge),ge>M&&(M=ge),we<X&&(X=we),we>W&&(W=we)}const ie=[re.lng+V,re.lat+X,re.lng+M,re.lat+W];return this.isSurfacePointOnScreen([0,1,0])&&(ie[3]=90,ie[0]=-180,ie[2]=180),this.isSurfacePointOnScreen([0,-1,0])&&(ie[1]=-90,ie[0]=-180,ie[2]=180),new Ee(ie)}calculateCenterFromCameraLngLatAlt(u,h,_,S){return this._helper.calculateCenterFromCameraLngLatAlt(u,h,_,S)}setLocationAtPoint(u,h){const _=wi(this.unprojectScreenPoint(h)),S=wi(u),M=o.bz();o.bK(M);const V=o.bz();o.bH(V,_,M,-this.center.lng*Math.PI/180),o.bG(V,V,M,this.center.lat*Math.PI/180);const W=S[0]*S[0]+S[2]*S[2],X=V[0]*V[0];if(W<X)return;const re=Math.sqrt(W-X),ie=-re,he=o.bL(S[0],S[2],V[0],re),ge=o.bL(S[0],S[2],V[0],ie),we=o.bz();o.bH(we,S,M,-he);const Le=o.bL(we[1],we[2],V[1],V[2]),He=o.bz();o.bH(He,S,M,-ge);const Xe=o.bL(He[1],He[2],V[1],V[2]),Ze=.5*Math.PI,et=Le>=-Ze&&Le<=Ze,lt=Xe>=-Ze&&Xe<=Ze;let Je,Ke;if(et&&lt){const Rt=this.center.lng*Math.PI/180,Vt=this.center.lat*Math.PI/180;o.bM(he,Rt)+o.bM(Le,Vt)<o.bM(ge,Rt)+o.bM(Xe,Vt)?(Je=he,Ke=Le):(Je=ge,Ke=Xe)}else if(et)Je=he,Ke=Le;else{if(!lt)return;Je=ge,Ke=Xe}const ot=Je/Math.PI*180,tt=Ke/Math.PI*180,wt=this.center.lat;this.setCenter(new o.W(ot,o.al(tt,-90,90))),this.setZoom(this.zoom+gi(wt,this.center.lat))}locationToScreenPoint(u,h){const _=wi(u);if(h){const S=h.getElevationForLngLatZoom(u,this._helper._tileZoom);o.aZ(_,_,1+S/o.bD)}return this._projectSurfacePointToScreen(_)}_projectSurfacePointToScreen(u){const h=o.bE();return o.aE(h,[...u,1],this._globeViewProjMatrixNoCorrection),h[0]/=h[3],h[1]/=h[3],new o.P((.5*h[0]+.5)*this.width,(.5*-h[1]+.5)*this.height)}screenPointToMercatorCoordinate(u,h){if(h){const _=h.pointCoordinate(u);if(_)return _}return o.a7.fromLngLat(this.unprojectScreenPoint(u))}screenPointToLocation(u,h){var _;return(_=this.screenPointToMercatorCoordinate(u,h))===null||_===void 0?void 0:_.toLngLat()}isPointOnMapSurface(u,h){const _=this._cameraPosition,S=this.getRayDirectionFromPixel(u);return!!this.rayPlanetIntersection(_,S)}getRayDirectionFromPixel(u){const h=o.bE();h[0]=u.x/this.width*2-1,h[1]=-1*(u.y/this.height*2-1),h[2]=1,h[3]=1,o.aE(h,h,this._globeViewProjMatrixNoCorrectionInverted),h[0]/=h[3],h[1]/=h[3],h[2]/=h[3];const _=o.bz();_[0]=h[0]-this._cameraPosition[0],_[1]=h[1]-this._cameraPosition[1],_[2]=h[2]-this._cameraPosition[2];const S=o.bz();return o.b1(S,_),S}isSurfacePointVisible(u){const h=this._cachedClippingPlane;return h[0]*u[0]+h[1]*u[1]+h[2]*u[2]+h[3]>=0}isSurfacePointOnScreen(u){if(!this.isSurfacePointVisible(u))return!1;const h=o.bE();return o.aE(h,[...u,1],this._globeViewProjMatrixNoCorrection),h[0]/=h[3],h[1]/=h[3],h[2]/=h[3],h[0]>-1&&h[0]<1&&h[1]>-1&&h[1]<1&&h[2]>-1&&h[2]<1}rayPlanetIntersection(u,h){const _=o.b3(u,h),S=o.bz(),M=o.bz();o.aZ(M,h,_),o.b0(S,u,M);const V=1-o.b3(S,S);if(V<0)return null;const W=o.b3(u,u)-1,X=-_+(_<0?1:-1)*Math.sqrt(V),re=W/X,ie=X;return{tMin:Math.min(re,ie),tMax:Math.max(re,ie)}}unprojectScreenPoint(u){const h=this._cameraPosition,_=this.getRayDirectionFromPixel(u),S=this.rayPlanetIntersection(h,_);if(S){const ie=o.bz();o.a_(ie,h,[_[0]*S.tMin,_[1]*S.tMin,_[2]*S.tMin]);const he=o.bz();return o.b1(he,ie),Ac(he)}const M=this._cachedClippingPlane,V=M[0]*_[0]+M[1]*_[1]+M[2]*_[2],W=-o.b9(M,h)/V,X=o.bz();if(W>0)o.a_(X,h,[_[0]*W,_[1]*W,_[2]*W]);else{const ie=o.bz();o.a_(ie,h,[2*_[0],2*_[1],2*_[2]]);const he=o.b9(this._cachedClippingPlane,ie);o.b0(X,ie,[this._cachedClippingPlane[0]*he,this._cachedClippingPlane[1]*he,this._cachedClippingPlane[2]*he])}const re=(function(ie){const he=o.bz();return he[0]=ie[0]*-ie[3],he[1]=ie[1]*-ie[3],he[2]=ie[2]*-ie[3],{center:he,radius:Math.sqrt(1-ie[3]*ie[3])}})(M);return Ac((function(ie,he,ge){const we=o.bz();o.b0(we,ge,ie);const Le=o.bz();return o.bx(Le,ie,we,he/o.b7(we)),Le})(re.center,re.radius,X))}getMatrixForModel(u,h){const _=o.W.convert(u),S=1/o.bD,M=o.bi();return o.bI(M,M,_.lng/180*Math.PI),o.bf(M,M,-_.lat/180*Math.PI),o.Q(M,M,[0,0,1+h/o.bD]),o.bf(M,M,.5*Math.PI),o.S(M,M,[S,S,S]),M}getProjectionDataForCustomLayer(u=!0){const h=this.getProjectionData({overscaledTileID:new o.a3(0,0,0,0,0),applyGlobeMatrix:u});return h.tileMercatorCoords=[0,0,1,1],h}getFastPathSimpleProjectionMatrix(u){}}class Lc{get pixelsToClipSpaceMatrix(){return this._helper.pixelsToClipSpaceMatrix}get clipSpaceToPixelsMatrix(){return this._helper.clipSpaceToPixelsMatrix}get pixelsToGLUnits(){return this._helper.pixelsToGLUnits}get centerOffset(){return this._helper.centerOffset}get size(){return this._helper.size}get rotationMatrix(){return this._helper.rotationMatrix}get centerPoint(){return this._helper.centerPoint}get pixelsPerMeter(){return this._helper.pixelsPerMeter}setMinZoom(u){this._helper.setMinZoom(u)}setMaxZoom(u){this._helper.setMaxZoom(u)}setMinPitch(u){this._helper.setMinPitch(u)}setMaxPitch(u){this._helper.setMaxPitch(u)}setRenderWorldCopies(u){this._helper.setRenderWorldCopies(u)}setBearing(u){this._helper.setBearing(u)}setPitch(u){this._helper.setPitch(u)}setRoll(u){this._helper.setRoll(u)}setFov(u){this._helper.setFov(u)}setZoom(u){this._helper.setZoom(u)}setCenter(u){this._helper.setCenter(u)}setElevation(u){this._helper.setElevation(u)}setMinElevationForCurrentTile(u){this._helper.setMinElevationForCurrentTile(u)}setPadding(u){this._helper.setPadding(u)}interpolatePadding(u,h,_){this._helper.interpolatePadding(u,h,_)}isPaddingEqual(u){return this._helper.isPaddingEqual(u)}resize(u,h,_=!0){this._helper.resize(u,h,_)}getMaxBounds(){return this._helper.getMaxBounds()}setMaxBounds(u){this._helper.setMaxBounds(u)}setConstrainOverride(u){this._helper.setConstrainOverride(u)}overrideNearFarZ(u,h){this._helper.overrideNearFarZ(u,h)}clearNearFarZOverride(){this._helper.clearNearFarZOverride()}getCameraQueryGeometry(u){return this._helper.getCameraQueryGeometry(this.getCameraPoint(),u)}get tileSize(){return this._helper.tileSize}get tileZoom(){return this._helper.tileZoom}get scale(){return this._helper.scale}get worldSize(){return this._helper.worldSize}get width(){return this._helper.width}get height(){return this._helper.height}get lngRange(){return this._helper.lngRange}get latRange(){return this._helper.latRange}get minZoom(){return this._helper.minZoom}get maxZoom(){return this._helper.maxZoom}get zoom(){return this._helper.zoom}get center(){return this._helper.center}get minPitch(){return this._helper.minPitch}get maxPitch(){return this._helper.maxPitch}get pitch(){return this._helper.pitch}get pitchInRadians(){return this._helper.pitchInRadians}get roll(){return this._helper.roll}get rollInRadians(){return this._helper.rollInRadians}get bearing(){return this._helper.bearing}get bearingInRadians(){return this._helper.bearingInRadians}get fov(){return this._helper.fov}get fovInRadians(){return this._helper.fovInRadians}get elevation(){return this._helper.elevation}get minElevationForCurrentTile(){return this._helper.minElevationForCurrentTile}get padding(){return this._helper.padding}get unmodified(){return this._helper.unmodified}get renderWorldCopies(){return this._helper.renderWorldCopies}get cameraToCenterDistance(){return this._helper.cameraToCenterDistance}get constrainOverride(){return this._helper.constrainOverride}get nearZ(){return this._helper.nearZ}get farZ(){return this._helper.farZ}get autoCalculateNearFarZ(){return this._helper.autoCalculateNearFarZ}get isGlobeRendering(){return this._globeness>0}setTransitionState(u,h){this._globeness=u,this._globeLatitudeErrorCorrectionRadians=h,this._calcMatrices(),this._verticalPerspectiveTransform.getCoveringTilesDetailsProvider().prepareNextFrame(),this._mercatorTransform.getCoveringTilesDetailsProvider().prepareNextFrame()}get currentTransform(){return this.isGlobeRendering?this._verticalPerspectiveTransform:this._mercatorTransform}constructor(u){this._globeLatitudeErrorCorrectionRadians=0,this._globeness=1,this.defaultConstrain=(h,_)=>this.currentTransform.defaultConstrain(h,_),this.applyConstrain=(h,_)=>this._helper.applyConstrain(h,_),this._helper=new Ec({calcMatrices:()=>this._calcMatrices(),defaultConstrain:(h,_)=>this.defaultConstrain(h,_)},u),this._globeness=1,this._mercatorTransform=new Pc,this._verticalPerspectiveTransform=new Dc}clone(){const u=new Lc;return u._globeness=this._globeness,u._globeLatitudeErrorCorrectionRadians=this._globeLatitudeErrorCorrectionRadians,u.apply(this,!1),u}apply(u,h){this._helper.apply(u,h),this._mercatorTransform.apply(this,!1),this._verticalPerspectiveTransform.apply(this,!1,this._globeLatitudeErrorCorrectionRadians)}get projectionMatrix(){return this.currentTransform.projectionMatrix}get modelViewProjectionMatrix(){return this.currentTransform.modelViewProjectionMatrix}get inverseProjectionMatrix(){return this.currentTransform.inverseProjectionMatrix}get cameraPosition(){return this.currentTransform.cameraPosition}getProjectionData(u){const h=this._mercatorTransform.getProjectionData(u),_=this._verticalPerspectiveTransform.getProjectionData(u);return{mainMatrix:this.isGlobeRendering?_.mainMatrix:h.mainMatrix,clippingPlane:_.clippingPlane,tileMercatorCoords:_.tileMercatorCoords,projectionTransition:u.applyGlobeMatrix?this._globeness:0,fallbackMatrix:h.fallbackMatrix}}isLocationOccluded(u){return this.currentTransform.isLocationOccluded(u)}transformLightDirection(u){return this.currentTransform.transformLightDirection(u)}getPixelScale(){return o.bt(this._mercatorTransform.getPixelScale(),this._verticalPerspectiveTransform.getPixelScale(),this._globeness)}getCircleRadiusCorrection(){return o.bt(this._mercatorTransform.getCircleRadiusCorrection(),this._verticalPerspectiveTransform.getCircleRadiusCorrection(),this._globeness)}getPitchedTextCorrection(u,h,_){const S=this._mercatorTransform.getPitchedTextCorrection(u,h,_),M=this._verticalPerspectiveTransform.getPitchedTextCorrection(u,h,_);return o.bt(S,M,this._globeness)}projectTileCoordinates(u,h,_,S){return this.currentTransform.projectTileCoordinates(u,h,_,S)}_calcMatrices(){this._helper._width&&this._helper._height&&(this._verticalPerspectiveTransform.apply(this,!1,this._globeLatitudeErrorCorrectionRadians),this._helper._nearZ=this._verticalPerspectiveTransform.nearZ,this._helper._farZ=this._verticalPerspectiveTransform.farZ,this._mercatorTransform.apply(this,!0,this.isGlobeRendering),this._helper._nearZ=this._mercatorTransform.nearZ,this._helper._farZ=this._mercatorTransform.farZ)}calculateFogMatrix(u){return this.currentTransform.calculateFogMatrix(u)}getVisibleUnwrappedCoordinates(u){return this.currentTransform.getVisibleUnwrappedCoordinates(u)}getCameraFrustum(){return this.currentTransform.getCameraFrustum()}getClippingPlane(){return this.currentTransform.getClippingPlane()}getCoveringTilesDetailsProvider(){return this.currentTransform.getCoveringTilesDetailsProvider()}recalculateZoomAndCenter(u){this._mercatorTransform.recalculateZoomAndCenter(u),this._verticalPerspectiveTransform.recalculateZoomAndCenter(u)}maxPitchScaleFactor(){return this._mercatorTransform.maxPitchScaleFactor()}getCameraPoint(){return this._helper.getCameraPoint()}getCameraAltitude(){return this._helper.getCameraAltitude()}getCameraLngLat(){return this._helper.getCameraLngLat()}lngLatToCameraDepth(u,h){return this.currentTransform.lngLatToCameraDepth(u,h)}populateCache(u){this._mercatorTransform.populateCache(u),this._verticalPerspectiveTransform.populateCache(u)}getBounds(){return this.currentTransform.getBounds()}calculateCenterFromCameraLngLatAlt(u,h,_,S){return this._helper.calculateCenterFromCameraLngLatAlt(u,h,_,S)}setLocationAtPoint(u,h){if(!this.isGlobeRendering)return this._mercatorTransform.setLocationAtPoint(u,h),void this.apply(this._mercatorTransform,!1);this._verticalPerspectiveTransform.setLocationAtPoint(u,h),this.apply(this._verticalPerspectiveTransform,!1)}locationToScreenPoint(u,h){return this.currentTransform.locationToScreenPoint(u,h)}screenPointToMercatorCoordinate(u,h){return this.currentTransform.screenPointToMercatorCoordinate(u,h)}screenPointToLocation(u,h){return this.currentTransform.screenPointToLocation(u,h)}isPointOnMapSurface(u,h){return this.currentTransform.isPointOnMapSurface(u,h)}getRayDirectionFromPixel(u){return this._verticalPerspectiveTransform.getRayDirectionFromPixel(u)}getMatrixForModel(u,h){return this.currentTransform.getMatrixForModel(u,h)}getProjectionDataForCustomLayer(u=!0){const h=this._mercatorTransform.getProjectionDataForCustomLayer(u);if(!this.isGlobeRendering)return h;const _=this._verticalPerspectiveTransform.getProjectionDataForCustomLayer(u);return _.fallbackMatrix=h.mainMatrix,_}getFastPathSimpleProjectionMatrix(u){return this.currentTransform.getFastPathSimpleProjectionMatrix(u)}}class Mo{get useGlobeControls(){return!0}handlePanInertia(u,h){const _=Vl(u,h);return Math.abs(_.lng-h.center.lng)>180&&(_.lng=h.center.lng+179.5*Math.sign(_.lng-h.center.lng)),{easingCenter:_,easingOffset:new o.P(0,0)}}handleMapControlsRollPitchBearingZoom(u,h){const _=u.around,S=h.screenPointToLocation(_);u.bearingDelta&&h.setBearing(h.bearing+u.bearingDelta),u.pitchDelta&&h.setPitch(h.pitch+u.pitchDelta),u.rollDelta&&h.setRoll(h.roll+u.rollDelta);const M=h.zoom;u.zoomDelta&&h.setZoom(h.zoom+u.zoomDelta);const V=h.zoom-M;if(V===0)return;const W=o.bJ(h.center.lng,S.lng),X=W/(Math.abs(W/180)+1),re=o.bJ(h.center.lat,S.lat),ie=h.getRayDirectionFromPixel(_),he=h.cameraPosition,ge=-1*o.b3(he,ie),we=o.bz();o.a_(we,he,[ie[0]*ge,ie[1]*ge,ie[2]*ge]);const Le=o.b5(we)-1,He=Math.exp(.5*-Math.max(Le-.3,0)),Xe=Za(h.worldSize,h.center.lat)/Math.min(h.width,h.height),Ze=o.bw(Xe,.9,.5,1,.25),et=(1-o.ao(-V))*Math.min(He,Ze),lt=h.center.lat,Je=h.zoom,Ke=new o.W(h.center.lng+X*et,o.al(h.center.lat+re*et,-o.am,o.am));h.setLocationAtPoint(S,_);const ot=h.center,tt=o.bw(Math.abs(W),45,85,0,1),wt=o.bw(Xe,.75,.35,0,1),Rt=Math.pow(Math.max(tt,wt),.25),Vt=o.bJ(ot.lng,Ke.lng),Qt=o.bJ(ot.lat,Ke.lat);h.setCenter(new o.W(ot.lng+Vt*Rt,ot.lat+Qt*Rt).wrap()),h.setZoom(Je+gi(lt,h.center.lat))}handleMapControlsPan(u,h,_){if(!u.panDelta)return;const S=h.center.lat,M=h.zoom;h.setCenter(Vl(u.panDelta,h).wrap()),h.setZoom(M+gi(S,h.center.lat))}cameraForBoxAndBearing(u,h,_,S,M){const V=e0(u,h,_,S,M),W=h.left/M.width*2-1,X=(M.width-h.right)/M.width*2-1,re=h.top/M.height*-2+1,ie=(M.height-h.bottom)/M.height*-2+1,he=o.bJ(_.getWest(),_.getEast())<0,ge=he?_.getEast():_.getWest(),we=he?_.getWest():_.getEast(),Le=Math.max(_.getNorth(),_.getSouth()),He=Math.min(_.getNorth(),_.getSouth()),Xe=ge+.5*o.bJ(ge,we),Ze=Le+.5*o.bJ(Le,He),et=M.clone();et.setCenter(V.center),et.setBearing(V.bearing),et.setPitch(0),et.setRoll(0),et.setZoom(V.zoom);const lt=et.modelViewProjectionMatrix,Je=[wi(_.getNorthWest()),wi(_.getNorthEast()),wi(_.getSouthWest()),wi(_.getSouthEast()),wi(new o.W(we,Ze)),wi(new o.W(ge,Ze)),wi(new o.W(Xe,Le)),wi(new o.W(Xe,He))],Ke=wi(V.center);let ot=Number.POSITIVE_INFINITY;for(const tt of Je)W<0&&(ot=Mo.getLesserNonNegativeNonNull(ot,Mo.solveVectorScale(tt,Ke,lt,"x",W))),X>0&&(ot=Mo.getLesserNonNegativeNonNull(ot,Mo.solveVectorScale(tt,Ke,lt,"x",X))),re>0&&(ot=Mo.getLesserNonNegativeNonNull(ot,Mo.solveVectorScale(tt,Ke,lt,"y",re))),ie<0&&(ot=Mo.getLesserNonNegativeNonNull(ot,Mo.solveVectorScale(tt,Ke,lt,"y",ie)));if(Number.isFinite(ot)&&ot!==0)return V.zoom=Math.min(et.zoom+o.ar(ot),u.maxZoom),V;Nl()}handleJumpToCenterZoom(u,h){const _=u.center.lat,S=u.applyConstrain(h.center?o.W.convert(h.center):u.center,u.zoom).center;u.setCenter(S.wrap());const M=h.zoom!==void 0?+h.zoom:u.zoom+gi(_,S.lat);u.zoom!==M&&u.setZoom(M)}handleEaseTo(u,h){const _=u.zoom,S=u.center,M=u.padding,V={roll:u.roll,pitch:u.pitch,bearing:u.bearing},W={roll:h.roll===void 0?u.roll:h.roll,pitch:h.pitch===void 0?u.pitch:h.pitch,bearing:h.bearing===void 0?u.bearing:h.bearing},X=h.zoom!==void 0,re=!u.isPaddingEqual(h.padding);let ie=!1;const he=h.center?o.W.convert(h.center):S,ge=u.applyConstrain(he,_).center;Fr(u,ge);const we=u.clone();we.setCenter(ge),we.setZoom(X?+h.zoom:_+gi(S.lat,he.lat)),we.setBearing(h.bearing);const Le=new o.P(o.al(u.centerPoint.x+h.offsetAsPoint.x,0,u.width),o.al(u.centerPoint.y+h.offsetAsPoint.y,0,u.height));we.setLocationAtPoint(ge,Le);const He=(h.offset&&h.offsetAsPoint.mag())>0?we.center:ge,Xe=X?+h.zoom:_+gi(S.lat,He.lat),Ze=_+gi(S.lat,0),et=Xe+gi(He.lat,0),lt=o.bJ(S.lng,He.lng),Je=o.bJ(S.lat,He.lat),Ke=o.ao(et-Ze);return ie=Xe!==_,{easeFunc:ot=>{if(o.bn(V,W)||Qg({startEulerAngles:V,endEulerAngles:W,tr:u,k:ot,useSlerp:V.roll!=W.roll}),re&&u.interpolatePadding(M,h.padding,ot),h.around)o.w("Easing around a point is not supported under globe projection."),u.setLocationAtPoint(h.around,h.aroundPoint);else{const tt=et>Ze?Math.min(2,Ke):Math.max(.5,Ke),wt=Math.pow(tt,1-ot),Rt=zp(S,lt,Je,ot*wt);u.setCenter(Rt.wrap())}if(ie){const tt=o.H.number(Ze,et,ot)+gi(0,u.center.lat);u.setZoom(tt)}},isZooming:ie,elevationCenter:He}}handleFlyTo(u,h){const _=h.zoom!==void 0,S=u.center,M=u.zoom,V=u.padding,W=!u.isPaddingEqual(h.padding),X=u.applyConstrain(o.W.convert(h.center||h.locationAtOffset),M).center,re=_?+h.zoom:u.zoom+gi(u.center.lat,X.lat),ie=u.clone();ie.setCenter(X),ie.setZoom(re),ie.setBearing(h.bearing);const he=new o.P(o.al(u.centerPoint.x+h.offsetAsPoint.x,0,u.width),o.al(u.centerPoint.y+h.offsetAsPoint.y,0,u.height));ie.setLocationAtPoint(X,he);const ge=ie.center;Fr(u,ge);const we=(function(Je,Ke,ot){const tt=wi(Ke),wt=wi(ot),Rt=o.b3(tt,wt),Vt=Math.acos(Rt),Qt=w1(Je);return Vt/(2*Math.PI)*Qt})(u,S,ge),Le=M+gi(S.lat,0),He=re+gi(ge.lat,0),Xe=o.ao(He-Le);let Ze;if(typeof h.minZoom=="number"){const Je=+h.minZoom+gi(ge.lat,0),Ke=Math.min(Je,Le,He)+gi(0,ge.lat),ot=u.applyConstrain(ge,Ke).zoom+gi(ge.lat,0);Ze=o.ao(ot-Le)}const et=o.bJ(S.lng,ge.lng),lt=o.bJ(S.lat,ge.lat);return{easeFunc:(Je,Ke,ot,tt)=>{const wt=zp(S,et,lt,ot);W&&u.interpolatePadding(V,h.padding,Je);const Rt=Je===1?ge:wt;u.setCenter(Rt.wrap());const Vt=Le+o.ar(Ke);u.setZoom(Je===1?re:Vt+gi(0,Rt.lat))},scaleOfZoom:Xe,targetCenter:ge,scaleOfMinZoom:Ze,pixelPathLength:we}}static solveVectorScale(u,h,_,S,M){const V=S==="x"?[_[0],_[4],_[8],_[12]]:[_[1],_[5],_[9],_[13]],W=[_[3],_[7],_[11],_[15]],X=u[0]*V[0]+u[1]*V[1]+u[2]*V[2],re=u[0]*W[0]+u[1]*W[1]+u[2]*W[2],ie=h[0]*V[0]+h[1]*V[1]+h[2]*V[2],he=h[0]*W[0]+h[1]*W[1]+h[2]*W[2];return ie+M*re===X+M*he||W[3]*(X-ie)+V[3]*(he-re)+X*he==ie*re?null:(ie+V[3]-M*he-M*W[3])/(ie-X-M*he+M*re)}static getLesserNonNegativeNonNull(u,h){return h!==null&&h>=0&&h<u?h:u}}class es{constructor(u){this._globe=u,this._mercatorCameraHelper=new Di,this._verticalPerspectiveCameraHelper=new Mo}get useGlobeControls(){return this._globe.useGlobeRendering}get currentHelper(){return this.useGlobeControls?this._verticalPerspectiveCameraHelper:this._mercatorCameraHelper}handlePanInertia(u,h){return this.currentHelper.handlePanInertia(u,h)}handleMapControlsRollPitchBearingZoom(u,h){this.currentHelper.handleMapControl
818sRollPitchBearingZoom(u,h)}handleMapControlsPan(u,h,_){this.currentHelper.handleMapControlsPan(u,h,_)}cameraForBoxAndBearing(u,h,_,S,M){return this.currentHelper.cameraForBoxAndBearing(u,h,_,S,M)}handleJumpToCenterZoom(u,h){this.currentHelper.handleJumpToCenterZoom(u,h)}handleEaseTo(u,h){return this.currentHelper.handleEaseTo(u,h)}handleFlyTo(u,h){return this.currentHelper.handleFlyTo(u,h)}}const zd=(E,u)=>o.C(E,u?.filter((h=>h.identifier!=="source.canvas"))),qp=o.bN();class Oc extends o.E{constructor(u,h={}){var _,S;super(),this._rtlPluginLoaded=()=>{for(const V in this.tileManagers){const W=this.tileManagers[V].getSource().type;W!=="vector"&&W!=="geojson"||this.tileManagers[V].reload()}},this.map=u,this.dispatcher=new Ve(nt(),u._getMapId()),this.dispatcher.registerMessageHandler("GG",((V,W)=>this.getGlyphs(V,W))),this.dispatcher.registerMessageHandler("GI",((V,W)=>this.getImages(V,W))),this.dispatcher.registerMessageHandler("GDA",((V,W)=>this.getDashes(V,W))),this.imageManager=new ee,this.imageManager.setEventedParent(this);const M=((_=u._container)===null||_===void 0?void 0:_.lang)||typeof document<"u"&&((S=document.documentElement)===null||S===void 0?void 0:S.lang)||void 0;this.glyphManager=new le(u._requestManager,h.localIdeographFontFamily,M),this.lineAtlas=new $e(256,512),this.crossTileSymbolIndex=new Eo,this._setInitialValues(),this._resetUpdates(),this.dispatcher.broadcast("SR",o.bO()),rt().on(On,this._rtlPluginLoaded),this.on("data",(V=>{if(V.dataType!=="source"||V.sourceDataType!=="metadata")return;const W=this.tileManagers[V.sourceId];if(!W)return;const X=W.getSource();if(X?.vectorLayerIds)for(const re in this._layers){const ie=this._layers[re];ie.source===X.id&&this._validateLayer(ie)}}))}_setInitialValues(){var u;this._spritesImagesIds={},this._layers={},this._order=[],this.tileManagers={},this.zoomHistory=new o.bP,this._availableImages=[],this._globalState={},this._serializedLayers={},this.stylesheet=null,this.light=null,this.sky=null,this.projection&&(this.projection.destroy(),delete this.projection),this._loaded=!1,this._changed=!1,this._updatedLayers={},this._updatedSources={},this._changedImages={},this._glyphsDidChange=!1,this._updatedPaintProps={},this._layerOrderChanged=!1,this.crossTileSymbolIndex=new(((u=this.crossTileSymbolIndex)===null||u===void 0?void 0:u.constructor)||Object),this.pauseablePlacement=void 0,this.placement=void 0,this.z=0}setGlobalStateProperty(u,h){var _,S,M;this._checkLoaded();const V=h===null?(M=(S=(_=this.stylesheet.state)===null||_===void 0?void 0:_[u])===null||S===void 0?void 0:S.default)!==null&&M!==void 0?M:null:h;if(o.bQ(V,this._globalState[u]))return this;this._globalState[u]=V,this._applyGlobalStateChanges([u])}getGlobalState(){return this._globalState}setGlobalState(u){this._checkLoaded();const h=[];for(const _ in u)!o.bQ(this._globalState[_],u[_].default)&&(h.push(_),this._globalState[_]=u[_].default);this._applyGlobalStateChanges(h)}_applyGlobalStateChanges(u){if(u.length===0)return;const h=new Set,_={};for(const S of u){_[S]=this._globalState[S];for(const M in this._layers){const V=this._layers[M],W=V.getLayoutAffectingGlobalStateRefs(),X=V.getPaintAffectingGlobalStateRefs(),re=V.getVisibilityAffectingGlobalStateRefs();if(W.has(S)&&h.add(V.source),X.has(S))for(const{name:ie,value:he}of X.get(S))this._updatePaintProperty(V,ie,he);re?.has(S)&&(V.recalculateVisibility(),this._updateLayer(V))}}this.dispatcher.broadcast("UGS",_);for(const S in this.tileManagers)h.has(S)&&(this._reloadSource(S),this._changed=!0)}loadURL(u){return o._(this,arguments,void 0,(function*(h,_={},S){this.fire(new o.n("dataloading",{dataType:"style"})),_.validate=typeof _.validate!="boolean"||_.validate,this._loadStyleRequest=new AbortController;const M=this._loadStyleRequest;try{const V=yield this.map._requestManager.transformRequest(h,"Style");o.bR(M.signal);const W=yield o.k(V,M);this._loadStyleRequest===M&&(this._loadStyleRequest=null),this._load(W.data,_,S)}catch(V){this._loadStyleRequest===M&&(this._loadStyleRequest=null),V&&!M.signal.aborted&&this.fire(new o.l(o.d(V)))}}))}loadJSON(u,h={},_){this.fire(new o.n("dataloading",{dataType:"style"})),this._frameRequest=new AbortController,x.frameAsync(this._frameRequest,this.map._ownerWindow).then((()=>{this._frameRequest=null,h.validate=h.validate!==!1,this._load(u,h,_)})).catch((()=>{}))}loadEmpty(){this.fire(new o.n("dataloading",{dataType:"style"})),this._load(qp,{validate:!1})}_load(u,h,_){var S,M;let V=h.transformStyle?h.transformStyle(_,u):u;if(!h.validate||!zd(this,o.F(V))){V=Object.assign({},V),this._loaded=!0,this.stylesheet=V;for(const W in V.sources)this.addSource(W,V.sources[W],{validate:!1});V.sprite?this._loadSprite(V.sprite):this.imageManager.setLoaded(!0),this.glyphManager.setURL(V.glyphs),this._createLayers(),this.light=new se(this.stylesheet.light),this._setProjectionInternal(((S=this.stylesheet.projection)===null||S===void 0?void 0:S.type)||"mercator"),this.sky=new ye(this.stylesheet.sky),this.map.setTerrain((M=this.stylesheet.terrain)!==null&&M!==void 0?M:null),this.fire(new o.n("data",{dataType:"style"})),this.fire(new o.n("style.load"))}}_createLayers(){var u,h,_;
vendor: 69,799 bytes, lines 818-820
818const S=o.bS(this.stylesheet.layers);this.setGlobalState((u=this.stylesheet.state)!==null&&u!==void 0?u:null),this.dispatcher.broadcast("SL",S),this._order=S.map((M=>M.id)),this._layers={},this._serializedLayers=null;for(const M of S){const V=o.bT(M,this._globalState);if(V.setEventedParent(this,{layer:{id:M.id}}),this._layers[M.id]=V,o.bU(V)&&this.tileManagers[V.source]){const W=(_=(h=M.paint)===null||h===void 0?void 0:h["raster-fade-duration"])!==null&&_!==void 0?_:V.paint.get("raster-fade-duration");this.tileManagers[V.source].setRasterFadeDuration(W)}}}_loadSprite(u,h=!1,_=void 0){this.imageManager.setLoaded(!1);const S=new AbortController;let M;this._spriteRequest=S,(function(V,W,X,re){return o._(this,void 0,void 0,(function*(){const ie=B(V),he=X>1?"@2x":"",ge={},we={};for(const{id:Le,url:He}of ie){const Xe=yield W.transformRequest(q(He,he,".json"),"SpriteJSON");ge[Le]=o.k(Xe,re);const Ze=yield W.transformRequest(q(He,he,".png"),"SpriteImage");we[Le]=O.getImage(Ze,re)}return yield Promise.all([...Object.values(ge),...Object.values(we)]),(function(Le,He){return o._(this,void 0,void 0,(function*(){const Xe={};for(const Ze in Le){Xe[Ze]={};const et=x.getImageCanvasContext((yield He[Ze]).data),lt=(yield Le[Ze]).data;for(const Je in lt){const{width:Ke,height:ot,x:tt,y:wt,sdf:Rt,pixelRatio:Vt,stretchX:Qt,stretchY:Xt,content:Tn,textFitWidth:fn,textFitHeight:Wt}=lt[Je];Xe[Ze][Je]={data:null,pixelRatio:Vt,sdf:Rt,stretchX:Qt,stretchY:Xt,content:Tn,textFitWidth:fn,textFitHeight:Wt,spriteData:{width:Ke,height:ot,x:tt,y:wt,context:et}}}}return Xe}))})(ge,we)}))})(u,this.map._requestManager,this.map.getPixelRatio(),this._spriteRequest).then((V=>{if(this._spriteRequest=null,V)for(const W in V){this._spritesImagesIds[W]=[];const X=this._spritesImagesIds[W]?this._spritesImagesIds[W].filter((re=>!(re in V))):[];for(const re of X)this.imageManager.removeImage(re),this._changedImages[re]=!0;for(const re in V[W]){const ie=W==="default"?re:`${W}:${re}`;this._spritesImagesIds[W].push(ie),ie in this.imageManager.images?this.imageManager.updateImage(ie,V[W][re],!1):this.imageManager.addImage(ie,V[W][re]),h&&(this._changedImages[ie]=!0)}}})).catch((V=>{this._spriteRequest=null,M=V,S.signal.aborted||this.fire(new o.l(M))})).finally((()=>{this.imageManager.setLoaded(!0),this._availableImages=this.imageManager.listImages(),h&&(this._changed=!0),this.dispatcher.broadcast("SI",this._availableImages),this.fire(new o.n("data",{dataType:"style"})),_&&_(M)}))}_unloadSprite(){for(const u of Object.values(this._spritesImagesIds).flat())this.imageManager.removeImage(u),this._changedImages[u]=!0;this._spritesImagesIds={},this._availableImages=this.imageManager.listImages(),this._changed=!0,this.dispatcher.broadcast("SI",this._availableImages),this.fire(new o.n("data",{dataType:"style"}))}_validateLayer(u){const h=this.tileManagers[u.source];if(!h)return;const _=u.sourceLayer;if(!_)return;const S=h.getSource();(S.type==="geojson"||S.vectorLayerIds&&!S.vectorLayerIds.includes(_))&&this.fire(new o.l(new Error(`Source layer "${_}" does not exist on source "${S.id}" as specified by style layer "${u.id}".`)))}loaded(){if(!this._loaded||Object.keys(this._updatedSources).length)return!1;for(const u in this.tileManagers)if(!this.tileManagers[u].loaded())return!1;return this.imageManager.isLoaded()}_serializeByIds(u,h=!1){const _=this._serializedAllLayers();if(!u||u.length===0)return Object.values(h?o.bV(_):_);const S=[];for(const M of u)if(_[M]){const V=h?o.bV(_[M]):_[M];S.push(V)}return S}_serializedAllLayers(){let u=this._serializedLayers;if(u)return u;u=this._serializedLayers={};const h=Object.keys(this._layers);for(const _ of h){const S=this._layers[_];S.type!=="custom"&&(u[_]=S.serialize())}return u}hasTransitions(){var u,h,_;if(!((u=this.light)===null||u===void 0)&&u.hasTransition()||!((h=this.sky)===null||h===void 0)&&h.hasTransition()||!((_=this.projection)===null||_===void 0)&&_.hasTransition())return!0;for(const S in this.tileManagers)if(this.tileManagers[S].hasTransition())return!0;for(const S in this._layers)if(this._layers[S].hasTransition())return!0;return!1}_checkLoaded(){if(!this._loaded)throw new Error("Style is not done loading.")}update(u){if(!this._loaded)return;const h=this._changed;if(h){const S=Object.keys(this._updatedLayers),M=Object.keys(this._removedLayers);(S.length||M.length)&&this._updateWorkerLayers(S,M);for(const V in this._updatedSources){const W=this._updatedSources[V];if(W==="reload")this._reloadSource(V);else{if(W!=="clear")throw new Error(`Invalid action ${W}`);this._clearSource(V)}}this._updateTilesForChangedImages(),this._updateTilesForChangedGlyphs();for(const V in this._updatedPaintProps)this._layers[V].updateTransitions(u);this.light.updateTransitions(u),this.sky.updateTransitions(u),this._resetUpdates()}const _={};for(const S in this.tileManagers){const M=this.tileManagers[S];_[S]=M.used,M.used=!1}for(const S of this._order){const M=this._layers[S];M.recalculate(u,this._availableImages),!M.isHidden(u.zoom)&&M.source&&(this.tileManagers[M.source].used=!0)}for(const S in _){const M=this.tileManagers[S];!!_[S]!=!!M.used&&M.fire(new o.n("data",{sourceDataType:"visibility",dataType:"source",sourceId:S}))}this.light.recalculate(u),this.sky.recalculate(u),this.projection.recalculate(u),this.z=u.zoom,h&&this.fire(new o.n("data",{dataType:"style"}))}_updateTilesForChangedImages(){const u=Object.keys(this._changedImages);if(u.length){for(const h in this.tileManagers)this.tileManagers[h].reloadTilesForDependencies(["icons","patterns"],u);this._changedImages={}}}_updateTilesForChangedGlyphs(){if(this._glyphsDidChange){for(const u in this.tileManagers)this.tileManagers[u].reloadTilesForDependencies(["glyphs"],[""]);this._glyphsDidChange=!1}}_updateWorkerLayers(u,h){this.dispatcher.broadcast("UL",{layers:this._serializeByIds(u,!1),removedIds:h})}_resetUpdates(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSources={},this._updatedPaintProps={},this._changedImages={},this._glyphsDidChange=!1}setState(u,h={}){var _;this._checkLoaded();const S=this.serialize();if(u=h.transformStyle?h.transformStyle(S,u):u,((_=h.validate)===null||_===void 0||_)&&zd(this,o.F(u)))return!1;(u=o.bV(u)).layers=o.bS(u.layers);const M=o.bW(S,u),V=this._getOperationsToPerform(M);if(V.unimplemented.length>0)throw new Error(`Unimplemented: ${V.unimplemented.join(", ")}.`);if(V.operations.length===0)return!1;for(const W of V.operations)W();return this.stylesheet=u,this._serializedLayers=null,this.fire(new o.n("style.load",{style:this})),!0}_getOperationsToPerform(u){const h=[],_=[];for(const S of u)switch(S.command){case"setCenter":case"setZoom":case"setBearing":case"setPitch":case"setRoll":continue;case"addLayer":h.push((()=>this.addLayer.apply(this,S.args)));break;case"removeLayer":h.push((()=>this.removeLayer.apply(this,S.args)));break;case"setPaintProperty":h.push((()=>this.setPaintProperty.apply(this,S.args)));break;case"setLayoutProperty":h.push((()=>this.setLayoutProperty.apply(this,S.args)));break;case"setFilter":h.push((()=>this.setFilter.apply(this,S.args)));break;case"addSource":h.push((()=>this.addSource.apply(this,S.args)));break;case"removeSource":h.push((()=>this.removeSource.apply(this,S.args)));break;case"setLayerZoomRange":h.push((()=>this.setLayerZoomRange.apply(this,S.args)));break;case"setLight":h.push((()=>this.setLight.apply(this,S.args)));break;case"setGeoJSONSourceData":h.push((()=>this.setGeoJSONSourceData.apply(this,S.args)));break;case"setGlyphs":h.push((()=>this.setGlyphs.apply(this,S.args)));break;case"setSprite":h.push((()=>this.setSprite.apply(this,S.args)));break;case"setTerrain":h.push((()=>this.map.setTerrain.apply(this,S.args)));break;case"setSky":h.push((()=>this.setSky.apply(this,S.args)));break;case"setProjection":this.setProjection.apply(this,S.args);break;case"setGlobalState":h.push((()=>this.setGlobalState.apply(this,S.args)));break;case"setTransition":h.push((()=>{}));break;default:_.push(S.command)}return{operations:h,unimplemented:_}}addImage(u,h){if(this.getImage(u))return this.fire(new o.l(new Error(`An image named "${u}" already exists.`)));this.imageManager.addImage(u,h),this._afterImageUpdated(u)}updateImage(u,h){this.imageManager.updateImage(u,h)}getImage(u){return this.imageManager.getImage(u)}removeImage(u){if(!this.getImage(u))return this.fire(new o.l(new Error(`An image named "${u}" does not exist.`)));this.imageManager.removeImage(u),this._afterImageUpdated(u)}_afterImageUpdated(u){this._availableImages=this.imageManager.listImages(),this._changedImages[u]=!0,this._changed=!0,this.dispatcher.broadcast("SI",this._availableImages),this.fire(new o.n("data",{dataType:"style"}))}listImages(){return this._checkLoaded(),this.imageManager.listImages()}addSource(u,h,_={}){var S;if(this._checkLoaded(),this.tileManagers[u]!==void 0)throw new Error(`Source "${u}" already exists.`);if(!h.type)throw new Error(`The type property must be defined, but only the following properties were given: ${Object.keys(h).join(", ")}.`);if(["vector","raster","geojson","video","image"].includes(h.type)&&this._validate(o.F.source,`sources.${u}`,h,null,_))return;!((S=this.map)===null||S===void 0)&&S._collectResourceTiming&&(h.collectResourceTiming=!0);const M=this.tileManagers[u]=new Ia(u,h,this.dispatcher);M.style=this,M.setEventedParent(this,(()=>({isSourceLoaded:M.loaded(),source:M.serialize(),sourceId:u}))),M.onAdd(this.map),this._changed=!0}removeSource(u){if(this._checkLoaded(),this.tileManagers[u]===void 0)throw new Error(`There is no source with this ID=${u}`);for(const _ in this._layers)if(this._layers[_].source===u)return this.fire(new o.l(new Error(`Source "${u}" cannot be removed while layer "${_}" is using it.`)));const h=this.tileManagers[u];delete this.tileManagers[u],delete this._updatedSources[u],h.fire(new o.n("data",{sourceDataType:"metadata",dataType:"source",sourceId:u})),h.setEventedParent(null),h.onRemove(this.map),this._changed=!0}setGeoJSONSourceData(u,h){if(this._checkLoaded(),this.tileManagers[u]===void 0)throw new Error(`There is no source with this ID=${u}`);const _=this.tileManagers[u].getSource();if(_.type!=="geojson")throw new Error(`geojsonSource.type is ${_.type}, which is !== 'geojson`);_.setData(h),this._changed=!0}getSource(u){var h;return(h=this.tileManagers[u])===null||h===void 0?void 0:h.getSource()}addLayer(u,h,_={}){this._checkLoaded();const S=u.id;if(this.getLayer(S))return void this.fire(new o.l(new Error(`Layer "${S}" already exists on this map.`)));let M;if(u.type==="custom"){if(zd(this,o.bX(u)))return;M=o.bT(u,this._globalState)}else{if("source"in u&&typeof u.source=="object"&&(this.addSource(S,u.source),u=o.bV(u),u=o.e(u,{source:S})),this._validate(o.F.layer,`layers.${S}`,u,{arrayIndex:-1},_))return;M=o.bT(u,this._globalState),this._validateLayer(M),M.setEventedParent(this,{layer:{id:S}})}const V=h?this._order.indexOf(h):this._order.length;if(h&&V===-1)this.fire(new o.l(new Error(`Cannot add layer "${S}" before non-existing layer "${h}".`)));else{if(this._order.splice(V,0,S),this._layerOrderChanged=!0,this._layers[S]=M,this._removedLayers[S]&&M.source&&M.type!=="custom"){const W=this._removedLayers[S];delete this._removedLayers[S],W.type!==M.type?this._updatedSources[M.source]="clear":(this._updatedSources[M.source]="reload",this.tileManagers[M.source].pause())}this._updateLayer(M),M.onAdd&&M.onAdd(this.map)}}moveLayer(u,h){if(this._checkLoaded(),this._changed=!0,!this._layers[u])return void this.fire(new o.l(new Error(`The layer '${u}' does not exist in the map's style and cannot be moved.`)));if(u===h)return;const _=this._order.indexOf(u);this._order.splice(_,1);const S=h?this._order.indexOf(h):this._order.length;h&&S===-1?this.fire(new o.l(new Error(`Cannot move layer "${u}" before non-existing layer "${h}".`))):(this._order.splice(S,0,u),this._layerOrderChanged=!0)}removeLayer(u){this._checkLoaded();const h=this._layers[u];if(!h)return void this.fire(new o.l(new Error(`Cannot remove non-existing layer "${u}".`)));h.setEventedParent(null);const _=this._order.indexOf(u);this._order.splice(_,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[u]=h,delete this._layers[u],this._serializedLayers&&delete this._serializedLayers[u],delete this._updatedLayers[u],delete this._updatedPaintProps[u],h.onRemove&&h.onRemove(this.map)}getLayer(u){return this._layers[u]}getLayersOrder(){return[...this._order]}hasLayer(u){return u in this._layers}setLayerZoomRange(u,h,_){this._checkLoaded();const S=this.getLayer(u);S?S.minzoom===h&&S.maxzoom===_||(h!=null&&(S.minzoom=h),_!=null&&(S.maxzoom=_),this._updateLayer(S)):this.fire(new o.l(new Error(`Cannot set the zoom range of non-existing layer "${u}".`)))}setFilter(u,h,_={}){this._checkLoaded();const S=this.getLayer(u);if(S){if(!o.bQ(S.filter,h))return h==null?(S.setFilter(void 0),void this._updateLayer(S)):void(this._validate(o.F.filter,`layers.${S.id}.filter`,h,null,_)||(S.setFilter(o.bV(h)),this._updateLayer(S)))}else this.fire(new o.l(new Error(`Cannot filter non-existing layer "${u}".`)))}getFilter(u){return o.bV(this.getLayer(u).filter)}setLayoutProperty(u,h,_,S={}){this._checkLoaded();const M=this.getLayer(u);M?o.bQ(M.getLayoutProperty(h),_)||(M.setLayoutProperty(h,_,S),this._updateLayer(M)):this.fire(new o.l(new Error(`Cannot style non-existing layer "${u}".`)))}getLayoutProperty(u,h){const _=this.getLayer(u);if(_)return _.getLayoutProperty(h);this.fire(new o.l(new Error(`Cannot get style of non-existing layer "${u}".`)))}setPaintProperty(u,h,_,S={}){this._checkLoaded();const M=this.getLayer(u);M?o.bQ(M.getPaintProperty(h),_)||this._updatePaintProperty(M,h,_,S):this.fire(new o.l(new Error(`Cannot style non-existing layer "${u}".`)))}_updatePaintProperty(u,h,_,S={}){u.setPaintProperty(h,_,S)&&this._updateLayer(u),o.bU(u)&&h==="raster-fade-duration"&&this.tileManagers[u.source].setRasterFadeDuration(_),this._changed=!0,this._updatedPaintProps[u.id]=!0,this._serializedLayers=null}getPaintProperty(u,h){return this.getLayer(u).getPaintProperty(h)}setFeatureState(u,h){this._checkLoaded();const _=u.source,S=u.sourceLayer,M=this.tileManagers[_];if(M===void 0)return void this.fire(new o.l(new Error(`The source '${_}' does not exist in the map's style.`)));const V=M.getSource().type;V==="geojson"&&S?this.fire(new o.l(new Error("GeoJSON sources cannot have a sourceLayer parameter."))):V!=="vector"||S?(u.id===void 0&&this.fire(new o.l(new Error("The feature id parameter must be provided."))),M.setFeatureState(S,u.id,h)):this.fire(new o.l(new Error("The sourceLayer parameter must be provided for vector source types.")))}removeFeatureState(u,h){this._checkLoaded();const _=u.source,S=this.tileManagers[_];if(S===void 0)return void this.fire(new o.l(new Error(`The source '${_}' does not exist in the map's style.`)));const M=S.getSource().type,V=M==="vector"?u.sourceLayer:void 0;M!=="vector"||V?h&&typeof u.id!="string"&&typeof u.id!="number"?this.fire(new o.l(new Error("A feature id is required to remove its specific state property."))):S.removeFeatureState(V,u.id,h):this.fire(new o.l(new Error("The sourceLayer parameter must be provided for vector source types.")))}getFeatureState(u){this._checkLoaded();const h=u.source,_=u.sourceLayer,S=this.tileManagers[h];if(S!==void 0)return S.getSource().type!=="vector"||_?(u.id===void 0&&this.fire(new o.l(new Error("The feature id parameter must be provided."))),S.getFeatureState(_,u.id)):void this.fire(new o.l(new Error("The sourceLayer parameter must be provided for vector source types.")));this.fire(new o.l(new Error(`The source '${h}' does not exist in the map's style.`)))}getTransition(){var u;return o.e({duration:300,delay:0},(u=this.stylesheet)===null||u===void 0?void 0:u.transition)}serialize(){if(!this._loaded)return;const u=o.bY(this.tileManagers,(M=>M.serialize())),h=this._serializeByIds(this._order,!0),_=this.map.getTerrain()||void 0,S=this.stylesheet;return o.bZ({version:S.version,name:S.name,metadata:S.metadata,light:S.light,sky:S.sky,center:S.center,zoom:S.zoom,bearing:S.bearing,pitch:S.pitch,sprite:S.sprite,glyphs:S.glyphs,transition:S.transition,projection:S.projection,sources:u,layers:h,terrain:_},(M=>M!==void 0))}_updateLayer(u){this._updatedLayers[u.id]=!0,u.source&&!this._updatedSources[u.source]&&this.tileManagers[u.source].getSource().type!=="raster"&&(this._updatedSources[u.source]="reload",this.tileManagers[u.source].pause()),this._serializedLayers=null,this._changed=!0}_flattenAndSortRenderedFeatures(u){const h=V=>this._layers[V].type==="fill-extrusion",_={},S=[];for(let V=this._order.length-1;V>=0;V--){const W=this._order[V];if(h(W)){_[W]=V;for(const X of u){const re=X[W];if(re)for(const ie of re)S.push(ie)}}}S.sort(((V,W)=>W.intersectionZ-V.intersectionZ));const M=[];for(let V=this._order.length-1;V>=0;V--){const W=this._order[V];if(h(W))for(let X=S.length-1;X>=0;X--){const re=S[X].feature;if(_[re.layer.id]<V)break;M.push(re),S.pop()}else for(const X of u){const re=X[W];if(re)for(const ie of re)M.push(ie.feature)}}return M}queryRenderedFeatures(u,h,_){h?.filter&&this._validate(o.F.filter,"queryRenderedFeatures.filter",h.filter,null,h);const S={};if(h?.layers){if(!(Array.isArray(h.layers)||h.layers instanceof Set))return this.fire(new o.l(new Error("parameters.layers must be an Array or a Set of strings"))),[];for(const re of h.layers){const ie=this._layers[re];if(!ie)return this.fire(new o.l(new Error(`The layer '${re}' does not exist in the map's style and cannot be queried for features.`))),[];S[ie.source]=!0}}const M=[];h.availableImages=this._availableImages;const V=this._serializedAllLayers(),W=h.layers instanceof Set?h.layers:Array.isArray(h.layers)?new Set(h.layers):null,X=Object.assign(Object.assign({},h),{layers:W,globalState:this._globalState});for(const re in this.tileManagers)h.layers&&!S[re]||M.push(ut(this.tileManagers[re],this._layers,V,u,X,_,this.map.terrain?(ie,he,ge)=>this.map.terrain.getElevation(ie,he,ge):void 0));return this.placement&&M.push((function(re,ie,he,ge,we,Le,He){const Xe={},Ze=Le.queryRenderedSymbols(ge),et=[];for(const lt of Object.keys(Ze).map(Number))et.push(He[lt]);et.sort(At);for(const lt of et){const Je=lt.featureIndex.lookupSymbolFeatures(Ze[lt.bucketInstanceId],ie,lt.bucketIndex,lt.sourceLayerIndex,{filterSpec:we.filter,globalState:we.globalState},we.layers,we.availableImages,re);for(const Ke in Je){Xe[Ke]||(Xe[Ke]=[]);const ot=Je[Ke];ot.sort(((tt,wt)=>{const Rt=lt.featureSortOrder;if(Rt){const Vt=Rt.indexOf(tt.featureIndex);return Rt.indexOf(wt.featureIndex)-Vt}return wt.featureIndex-tt.featureIndex}));for(const tt of ot)Xe[Ke].push(tt)}}return(function(lt,Je,Ke){for(const ot in lt)for(const tt of lt[ot])Dt(tt,Ke[Je[ot].source]);return lt})(Xe,re,he)})(this._layers,V,this.tileManagers,u,X,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenAndSortRenderedFeatures(M)}querySourceFeatures(u,h){h?.filter&&this._validate(o.F.filter,"querySourceFeatures.filter",h.filter,null,h);const _=this.tileManagers[u];return _?(function(S,M){const V=S.getRenderableIds().map((re=>S.getTileByID(re))),W=[],X={};for(const re of V){const ie=re.tileID.canonical.key;X[ie]||(X[ie]=!0,re.querySourceFeatures(W,M))}return W})(_,h?Object.assign(Object.assign({},h),{globalState:this._globalState}):{globalState:this._globalState}):[]}getLight(){return this.light.getLight()}setLight(u,h={}){this._checkLoaded();const _=this.light.getLight();let S=!1;for(const V in u)if(!o.bQ(u[V],_[V])){S=!0;break}if(!S)return;const M={now:A(),transition:o.e({duration:300,delay:0},this.stylesheet.transition)};this.light.setLight(u,h),this.light.updateTransitions(M)}getProjection(){var u;return(u=this.stylesheet)===null||u===void 0?void 0:u.projection}setProjection(u){this._checkLoaded();const h=u??{type:"mercator"};if(this.stylesheet.projection=u,this.projection){if(this.projection.name===h.type)return;this.projection.destroy(),delete this.projection}this._setProjectionInternal(h.type)}getSky(){var u;return(u=this.stylesheet)===null||u===void 0?void 0:u.sky}setSky(u,h={}){this._checkLoaded();const _=this.getSky();let S=!1;if(!u&&!_)return;if(u&&!_)S=!0;else if(!u&&_)S=!0;else for(const V in u)if(!o.bQ(u[V],_[V])){S=!0;break}if(!S)return;const M={now:A(),transition:o.e({duration:300,delay:0},this.stylesheet.transition)};this.stylesheet.sky=u,this.sky.setSky(u,h),this.sky.updateTransitions(M)}_setProjectionInternal(u){const h=(function(_,S){const M={constrainOverride:S};if(Array.isArray(_)){const V=new $o({type:_});return{projection:V,transform:new Lc(M),cameraHelper:new es(V)}}switch(_){case"mercator":return{projection:new po,transform:new Pc(M),cameraHelper:new Di};case"globe":{const V=new $o({type:["interpolate",["linear"],["zoom"],11,"vertical-perspective",12,"mercator"]});return{projection:V,transform:new Lc(M),cameraHelper:new es(V)}}case"vertical-perspective":return{projection:new Ya,transform:new Dc(M),cameraHelper:new Mo};default:return o.w(`Unknown projection name: ${_}. Falling back to mercator projection.`),{projection:new po,transform:new Pc(M),cameraHelper:new Di}}})(u,this.map.transformConstrain);this.projection=h.projection,this.map.migrateProjection(h.transform,h.cameraHelper);for(const _ in this.tileManagers)this.tileManagers[_].reload()}_validate(u,h,_,S,M={}){return M?.validate!==!1&&zd(this,u.call(o.F,o.e({key:h,style:this.serialize(),value:_,styleSpec:o.x},S)))}_remove(u=!0){this._frameRequest&&(this._frameRequest.abort(),this._frameRequest=null),this._loadStyleRequest&&(this._loadStyleRequest.abort(),this._loadStyleRequest=null),this._spriteRequest&&(this._spriteRequest.abort(),this._spriteRequest=null),rt().off(On,this._rtlPluginLoaded);for(const h in this._layers)this._layers[h].setEventedParent(null);for(const h in this.tileManagers){const _=this.tileManagers[h];_.setEventedParent(null),_.onRemove(this.map)}this.imageManager.setEventedParent(null),this.setEventedParent(null),u&&this.dispatcher.broadcast("RM",void 0),this.dispatcher.remove(u)}_clearSource(u){this.tileManagers[u].clearTiles()}_reloadSource(u){this.tileManagers[u].resume(),this.tileManagers[u].reload()}_updateSources(u){for(const h in this.tileManagers)this.tileManagers[h].update(u,this.map.terrain)}_generateCollisionBoxes(){for(const u in this.tileManagers)this._reloadSource(u)}_updatePlacement(u,h,_,S,M=!1){let V=!1,W=!1;const X={};for(const re of this._order){const ie=this._layers[re];if(ie.type!=="symbol")continue;if(!X[ie.source]){const ge=this.tileManagers[ie.source];X[ie.source]=ge.getRenderableIds(!0).map((we=>ge.getTileByID(we))).sort(((we,Le)=>Le.tileID.overscaledZ-we.tileID.overscaledZ||(we.tileID.isLessThan(Le.tileID)?-1:1)))}const he=this.crossTileSymbolIndex.addLayer(ie,X[ie.source],u.center.lng);V||(V=he)}if(this.crossTileSymbolIndex.pruneUnusedLayers(this._order),M||(M=this._layerOrderChanged||_===0),(M||!this.pauseablePlacement||this.pauseablePlacement.isDone()&&!this.placement.stillRecent(A(),u.zoom))&&(this.pauseablePlacement=new kc(u,this.map.terrain,this._order,M,h,_,S,this.placement),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,X),this.pauseablePlacement.isDone()&&(this.placement=this.pauseablePlacement.commit(A()),W=!0),V&&this.pauseablePlacement.placement.setStale()),W||V)for(const re of this._order){const ie=this._layers[re];ie.type==="symbol"&&this.placement.updateLayerOpacities(ie,X[ie.source])}return!this.pauseablePlacement.isDone()||this.placement.hasTransitions(A())}_releaseSymbolFadeTiles(){for(const u in this.tileManagers)this.tileManagers[u].releaseSymbolFadeTiles()}getImages(u,h){return o._(this,void 0,void 0,(function*(){const _=yield this.imageManager.getImages(h.icons);this._updateTilesForChangedImages();const S=this.tileManagers[h.source];return S&&S.setDependencies(h.tileID.key,h.type,h.icons),_}))}getGlyphs(u,h){return o._(this,void 0,void 0,(function*(){const _=yield this.glyphManager.getGlyphs(h.stacks),S=this.tileManagers[h.source];return S&&S.setDependencies(h.tileID.key,h.type,[""]),_}))}getGlyphsUrl(){return this.stylesheet.glyphs||null}setGlyphs(u,h={}){this._checkLoaded(),u&&this._validate(o.F.glyphs,"glyphs",u,null,h)||(this._glyphsDidChange=!0,this.stylesheet.glyphs=u,this.glyphManager.entries={},this.glyphManager.setURL(u))}getDashes(u,h){return o._(this,void 0,void 0,(function*(){const _={};for(const[S,M]of Object.entries(h.dashes))_[S]=this.lineAtlas.getDash(M.dasharray,M.round);return _}))}addSprite(u,h,_={},S){this._checkLoaded();const M=[{id:u,url:h}],V=[...B(this.stylesheet.sprite),...M];this._validate(o.F.sprite,"sprite",V,null,_)||(this.stylesheet.sprite=V,this._loadSprite(M,!0,S))}removeSprite(u){this._checkLoaded();const h=B(this.stylesheet.sprite);if(h.find((_=>_.id===u))){if(this._spritesImagesIds[u])for(const _ of this._spritesImagesIds[u])this.imageManager.removeImage(_),this._changedImages[_]=!0;h.splice(h.findIndex((_=>_.id===u)),1),this.stylesheet.sprite=h.length>0?h:void 0,delete this._spritesImagesIds[u],this._availableImages=this.imageManager.listImages(),this._changed=!0,this.dispatcher.broadcast("SI",this._availableImages),this.fire(new o.n("data",{dataType:"style"}))}else this.fire(new o.l(new Error(`Sprite "${u}" doesn't exists on this map.`)))}getSprite(){return B(this.stylesheet.sprite)}setSprite(u,h={},_){this._checkLoaded(),u&&this._validate(o.F.sprite,"sprite",u,null,h)||(this.stylesheet.sprite=u,u?this._loadSprite(u,!0,_):(this._unloadSprite(),_&&_(null)))}destroy(){this._frameRequest&&(this._frameRequest.abort(),this._frameRequest=null),this._loadStyleRequest&&(this._loadStyleRequest.abort(),this._loadStyleRequest=null),this._spriteRequest&&(this._spriteRequest.abort(),this._spriteRequest=null);for(const u in this.tileManagers){const h=this.tileManagers[u];h.setEventedParent(null),h.onRemove(this.map)}this.tileManagers={},this.imageManager&&(this.imageManager.setEventedParent(null),this.imageManager.destroy(),this._availableImages=[],this._spritesImagesIds={}),this.glyphManager&&this.glyphManager.destroy();for(const u in this._layers){const h=this._layers[u];h.setEventedParent(null),h.onRemove&&h.onRemove(this.map)}this._setInitialValues(),this.setEventedParent(null),this.dispatcher.unregisterMessageHandler("GG"),this.dispatcher.unregisterMessageHandler("GI"),this.dispatcher.unregisterMessageHandler("GDA"),this.dispatcher.remove(!0),this._listeners={},this._oneTimeListeners={}}}var Rc=o.aS([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]);class n0{constructor(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null}bind(u,h,_,S,M,V,W,X,re){this.context=u;let ie=this.boundPaintVertexBuffers.length!==S.length;for(let he=0;!ie&&he<S.length;he++)this.boundPaintVertexBuffers[he]!==S[he]&&(ie=!0);!this.vao||this.boundProgram!==h||this.boundLayoutVertexBuffer!==_||ie||this.boundIndexBuffer!==M||this.boundVertexOffset!==V||this.boundDynamicVertexBuffer!==W||this.boundDynamicVertexBuffer2!==X||this.boundDynamicVertexBuffer3!==re?this.freshBind(h,_,S,M,V,W,X,re):(u.bindVertexArray.set(this.vao),W&&W.bind(),M?.dynamicDraw&&M.bind(),X&&X.bind(),re&&re.bind())}freshBind(u,h,_,S,M,V,W,X){const re=u.numAttributes,ie=this.context,he=ie.gl;this.vao&&this.destroy(),this.vao=ie.createVertexArray(),ie.bindVertexArray.set(this.vao),this.boundProgram=u,this.boundLayoutVertexBuffer=h,this.boundPaintVertexBuffers=_,this.boundIndexBuffer=S,this.boundVertexOffset=M,this.boundDynamicVertexBuffer=V,this.boundDynamicVertexBuffer2=W,this.boundDynamicVertexBuffer3=X,h.enableAttributes(he,u);for(const ge of _)ge.enableAttributes(he,u);V&&V.enableAttributes(he,u),W&&W.enableAttributes(he,u),X&&X.enableAttributes(he,u),h.bind(),h.setVertexAttribPointers(he,u,M);for(const ge of _)ge.bind(),ge.setVertexAttribPointers(he,u,M);V&&(V.bind(),V.setVertexAttribPointers(he,u,M)),S&&S.bind(),W&&(W.bind(),W.setVertexAttribPointers(he,u,M)),X&&(X.bind(),X.setVertexAttribPointers(he,u,M)),ie.currentNumAttributes=re}destroy(){this.vao&&(this.context.deleteVertexArray(this.vao),this.vao=null)}}const jp=(E,u,h,_,S)=>({u_texture:0,u_ele_delta:E,u_fog_matrix:u,u_fog_color:h?h.properties.get("fog-color"):o.bo.white,u_fog_ground_blend:h?h.properties.get("fog-ground-blend"):1,u_fog_ground_blend_opacity:S?0:h?h.calculateFogBlendOpacity(_):0,u_horizon_color:h?h.properties.get("horizon-color"):o.bo.white,u_horizon_fog_blend:h?h.properties.get("horizon-fog-blend"):1,u_is_globe_mode:S?1:0}),S1={mainMatrix:"u_projection_matrix",tileMercatorCoords:"u_projection_tile_mercator_coords",clippingPlane:"u_projection_clipping_plane",projectionTransition:"u_projection_transition",fallbackMatrix:"u_projection_fallback_matrix"};function Gi(E){const u=[];for(const h of E){if(h===null)continue;const _=h.split(" ");u.push(_.pop())}return u}class r0{constructor(u,h,_,S,M,V,W,X,re=[]){const ie=u.gl;this.program=ie.createProgram();const he=Gi(h.staticAttributes),ge=_?_.getBinderAttributes():[],we=he.concat(ge),Le=ki.prelude.staticUniforms?Gi(ki.prelude.staticUniforms):[],He=W.staticUniforms?Gi(W.staticUniforms):[],Xe=h.staticUniforms?Gi(h.staticUniforms):[],Ze=_?_.getBinderUniforms():[],et=Le.concat(He).concat(Xe).concat(Ze),lt=[];for(const Vt of et)lt.includes(Vt)||lt.push(Vt);const Je=_?_.defines():[];Ts(ie)&&Je.unshift("#version 300 es"),M&&Je.push("#define OVERDRAW_INSPECTOR;"),V&&Je.push("#define TERRAIN3D;"),X&&Je.push(X),re&&Je.push(...re);let Ke=Je.concat(ki.prelude.fragmentSource,W.fragmentSource,h.fragmentSource).join(`
819`),ot=Je.concat(ki.prelude.vertexSource,W.vertexSource,h.vertexSource).join(`
820`);Ts(ie)||(Ke=(function(Vt){return Vt.replace(/\bin\s/g,"varying ").replace("out highp vec4 fragColor;","").replace(/fragColor/g,"gl_FragColor").replace(/texture\(/g,"texture2D(")})(Ke),ot=(function(Vt){return Vt.replace(/\bin\s/g,"attribute ").replace(/\bout\s/g,"varying ").replace(/texture\(/g,"texture2D(")})(ot));const tt=ie.createShader(ie.FRAGMENT_SHADER);if(ie.isContextLost())return void(this.failedToCreate=!0);if(ie.shaderSource(tt,Ke),ie.compileShader(tt),!ie.getShaderParameter(tt,ie.COMPILE_STATUS))throw new Error(`Could not compile fragment shader: ${ie.getShaderInfoLog(tt)}`);ie.attachShader(this.program,tt);const wt=ie.createShader(ie.VERTEX_SHADER);if(ie.isContextLost())return void(this.failedToCreate=!0);if(ie.shaderSource(wt,ot),ie.compileShader(wt),!ie.getShaderParameter(wt,ie.COMPILE_STATUS))throw new Error(`Could not compile vertex shader: ${ie.getShaderInfoLog(wt)}`);ie.attachShader(this.program,wt),this.attributes={};const Rt={};this.numAttributes=we.length;for(let Vt=0;Vt<this.numAttributes;Vt++)we[Vt]&&(ie.bindAttribLocation(this.program,Vt,we[Vt]),this.attributes[we[Vt]]=Vt);if(ie.linkProgram(this.program),!ie.getProgramParameter(this.program,ie.LINK_STATUS))throw new Error(`Program failed to link: ${ie.getProgramInfoLog(this.program)}`);ie.deleteShader(wt),ie.deleteShader(tt);for(const Vt of lt)if(Vt&&!Rt[Vt]){const Qt=ie.getUniformLocation(this.program,Vt);Qt&&(Rt[Vt]=Qt)}this.fixedUniforms=S(u,Rt),this.terrainUniforms=((Vt,Qt)=>({u_depth:new o.b_(Vt,Qt.u_depth),u_terrain:new o.b_(Vt,Qt.u_terrain),u_terrain_dim:new o.bp(Vt,Qt.u_terrain_dim),u_terrain_matrix:new o.c0(Vt,Qt.u_terrain_matrix),u_terrain_unpack:new o.c1(Vt,Qt.u_terrain_unpack),u_terrain_exaggeration:new o.bp(Vt,Qt.u_terrain_exaggeration)}))(u,Rt),this.projectionUniforms=((Vt,Qt)=>({u_projection_matrix:new o.c0(Vt,Qt.u_projection_matrix),u_projection_tile_mercator_coords:new o.c1(Vt,Qt.u_projection_tile_mercator_coords),u_projection_clipping_plane:new o.c1(Vt,Qt.u_projection_clipping_plane),u_projection_transition:new o.bp(Vt,Qt.u_projection_transition),u_projection_fallback_matrix:new o.c0(Vt,Qt.u_projection_fallback_matrix)}))(u,Rt),this.binderUniforms=_?_.getUniforms(u,Rt):[]}draw(u,h,_,S,M,V,W,X,re,ie,he,ge,we,Le,He,Xe,Ze,et,lt){var Je;const Ke=u.gl;if(this.failedToCreate)return;if(u.program.set(this.program),u.setDepthMode(_),u.setStencilMode(S),u.setColorMode(M),u.setCullFace(V),X){u.activeTexture.set(Ke.TEXTURE2),Ke.bindTexture(Ke.TEXTURE_2D,X.depthTexture),u.activeTexture.set(Ke.TEXTURE3),Ke.bindTexture(Ke.TEXTURE_2D,X.texture);for(const tt in this.terrainUniforms)this.terrainUniforms[tt].set(X[tt])}if(re)for(const tt in re)this.projectionUniforms[S1[tt]].set(re[tt]);if(W)for(const tt in this.fixedUniforms)this.fixedUniforms[tt].set(W[tt]);Xe&&Xe.setUniforms(u,this.binderUniforms,Le,{zoom:He});let ot=0;switch(h){case Ke.LINES:ot=2;break;case Ke.TRIANGLES:ot=3;break;case Ke.LINE_STRIP:ot=1}for(const tt of we.get())tt.vaos||(tt.vaos={}),(Je=tt.vaos)[ie]||(Je[ie]=new n0),tt.vaos[ie].bind(u,this,he,Xe?Xe.getPaintVertexBuffers():[],ge,tt.vertexOffset,Ze,et,lt),Ke.drawElements(h,tt.primitiveLength*ot,Ke.UNSIGNED_SHORT,tt.primitiveOffset*ot*2)}}function Bc(E,u,h){const _=1/o.aK(h,1,u.transform.tileZoom),S=Math.pow(2,h.tileID.overscaledZ),M=h.tileSize*Math.pow(2,u.transform.tileZoom)/S,V=M*(h.tileID.canonical.x+h.tileID.wrap*S),W=M*h.tileID.canonical.y;return{u_image:0,u_texsize:h.imageAtlasTexture.size,u_scale:[_,E.fromScale,E.toScale],u_fade:E.t,u_pixel_coord_upper:[V>>16,W>>16],u_pixel_coord_lower:[65535&V,65535&W]}}const i0=(E,u,h,_)=>{const S=E.style.light,M=S.properties.get("position"),V=[M.x,M.y,M.z],W=o.c4();S.properties.get("anchor")==="viewport"&&o.c5(W,E.transform.bearingInRadians),o.c6(V,V,W);const X=E.transform.transformLightDirection(V),re=S.properties.get("color");return{u_lightpos:V,u_lightpos_globe:X,u_lightintensity:S.properties.get("intensity"),u_lightcolor:[re.r,re.g,re.b],u_vertical_gradient:+u,u_opacity:h,u_fill_translate:_}},a0=(E,u,h,_,S,M,V)=>o.e(i0(E,u,h,_),Bc(M,E,V),{u_height_factor:-Math.pow(2,S.overscaledZ)/V.tileSize/8}),Up=(E,u,h,_)=>o.e(Bc(u,E,h),{u_fill_translate:_}),C1=(E,u)=>({u_world:E,u_fill_translate:u}),T1=(E,u,h,_,S)=>o.e(Up(E,u,h,S),{u_world:_}),k1=(E,u,h,_,S)=>{const M=E.transform;let V,W,X=0;if(h.paint.get("circle-pitch-alignment")==="map"){const re=o.aK(u,1,M.zoom);V=!0,W=[re,re],X=re/(o.a6*Math.pow(2,u.tileID.overscaledZ))*2*Math.PI*S}else V=!1,W=M.pixelsToGLUnits;return{u_camera_to_center_distance:M.cameraToCenterDistance,u_scale_with_map:+(h.paint.get("circle-pitch-scale")==="map"),u_pitch_with_map:+V,u_device_pixel_ratio:E.pixelRatio,u_extrude_scale:W,u_globe_extrude_scale:X,u_translate:_}},E1=E=>({u_pixel_extrude_scale:[1/E.width,1/E.height]}),ks=E=>({u_viewport_size:[E.width,E.height]}),o0=(E,u=1)=>({u_color:E,u_overlay:0,u_overlay_scale:u}),s0=(E,u,h,_)=>{const S=o.aK(E,1,u)/(o.a6*Math.pow(2,E.tileID.overscaledZ))*2*Math.PI*_;return{u_extrude_scale:o.aK(E,1,u),u_intensity:h,u_globe_extrude_scale:S}},Iu=(E,u,h,_)=>{const S=o.O();o.c7(S,0,E.width,E.height,0,0,1);const M=E.context.gl;return{u_matrix:S,u_world:[M.drawingBufferWidth,M.drawingBufferHeight],u_image:h,u_color_ramp:_,u_opacity:u.paint.get("heatmap-opacity")}},P1=(E,u,h)=>{const _=h.paint.get("hillshade-accent-color");let S;switch(h.paint.get("hillshade-method")){case"basic":S=4;break;case"combined":S=1;break;case"igor":S=2;break;case"multidirectional":S=3;break;default:S=0}const M=h.getIlluminationProperties();for(let V=0;V<M.directionRadians.length;V++)h.paint.get("hillshade-illumination-anchor")==="viewport"&&(M.directionRadians[V]+=E.transform.bearingInRadians);return{u_image:0,u_latrange:Hp(0,u.tileID),u_exaggeration:h.paint.get("hillshade-exaggeration"),u_altitudes:M.altitudeRadians,u_azimuths:M.directionRadians,u_accent:_,u_method:S,u_highlights:M.highlightColor,u_shadows:M.shadowColor}},Ws=(E,u)=>{const h=u.stride,_=o.O();return o.c7(_,0,o.a6,-o.a6,0,0,1),o.Q(_,_,[0,-o.a6,0]),{u_matrix:_,u_image:1,u_dimension:[h,h],u_zoom:E.overscaledZ,u_unpack:u.getUnpackVector()}};function Hp(E,u){const h=Math.pow(2,u.canonical.z),_=u.canonical.y;return[new o.a7(0,_/h).toLngLat().lat,new o.a7(0,(_+1)/h).toLngLat().lat]}const cb=(E,u,h=0)=>({u_image:0,u_unpack:u.getUnpackVector(),u_dimension:[u.stride,u.stride],u_elevation_stops:1,u_color_stops:4,u_color_ramp_size:h,u_opacity:E.paint.get("color-relief-opacity")}),Qf=(E,u,h,_)=>{const S=E.transform;return{u_translation:fl(E,u,h),u_ratio:_/o.aK(u,1,S.zoom),u_device_pixel_ratio:E.pixelRatio,u_units_to_pixels:[1/S.pixelsToGLUnits[0],1/S.pixelsToGLUnits[1]]}},$1=(E,u,h,_,S)=>o.e(Qf(E,u,h,_),{u_image:0,u_image_height:S}),Fc=(E,u,h,_,S)=>{const M=E.transform,V=Nd(u,M);return{u_translation:fl(E,u,h),u_texsize:u.imageAtlasTexture.size,u_ratio:_/o.aK(u,1,M.zoom),u_device_pixel_ratio:E.pixelRatio,u_image:0,u_scale:[V,S.fromScale,S.toScale],u_fade:S.t,u_units_to_pixels:[1/M.pixelsToGLUnits[0],1/M.pixelsToGLUnits[1]]}},ts=(E,u,h,_,S)=>{const M=Nd(u,E.transform);return o.e(Qf(E,u,h,_),{u_tileratio:M,u_crossfade_from:S.fromScale,u_crossfade_to:S.toScale,u_image:0,u_mix:S.t,u_lineatlas_width:E.lineAtlas.width,u_lineatlas_height:E.lineAtlas.height})},l0=(E,u,h,_,S,M)=>{const V=Nd(u,E.transform);return o.e(Qf(E,u,h,_),{u_image:0,u_image_height:M,u_tileratio:V,u_crossfade_from:S.fromScale,u_crossfade_to:S.toScale,u_image_dash:1,u_mix:S.t,u_lineatlas_width:E.lineAtlas.width,u_lineatlas_height:E.lineAtlas.height})};function Nd(E,u){return 1/o.aK(E,1,u.tileZoom)}function fl(E,u,h){return o.aL(E.transform,u,h.paint.get("line-translate"),h.paint.get("line-translate-anchor"))}const u0=(E,u,h,_,S)=>{return{u_tl_parent:E,u_scale_parent:u,u_buffer_scale:1,u_fade_t:h.mix,u_opacity:h.opacity*_.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:_.paint.get("raster-brightness-min"),u_brightness_high:_.paint.get("raster-brightness-max"),u_saturation_factor:(V=_.paint.get("raster-saturation"),V>0?1-1/(1.001-V):-V),u_contrast_factor:(M=_.paint.get("raster-contrast"),M>0?1/(1-M):1+M),u_spin_weights:c0(_.paint.get("raster-hue-rotate")),u_coords_top:[S[0].x,S[0].y,S[1].x,S[1].y],u_coords_bottom:[S[3].x,S[3].y,S[2].x,S[2].y]};var M,V};function c0(E){E*=Math.PI/180;const u=Math.sin(E),h=Math.cos(E);return[(2*h+1)/3,(-Math.sqrt(3)*u-h+1)/3,(Math.sqrt(3)*u-h+1)/3]}const Wp=(E,u,h,_,S,M,V,W,X,re,ie,he,ge)=>{const we=V.transform;return{u_is_size_zoom_constant:+(E==="constant"||E==="source"),u_is_size_feature_constant:+(E==="constant"||E==="camera"),u_size_t:u?u.uSizeT:0,u_size:u?u.uSize:0,u_camera_to_center_distance:we.cameraToCenterDistance,u_pitch:we.pitch/360*2*Math.PI,u_rotate_symbol:+h,u_aspect_ratio:we.width/we.height,u_fade_change:V.options.fadeDuration?V.symbolFadeChange:1,u_label_plane_matrix:W,u_coord_matrix:X,u_is_text:+ie,u_pitch_with_map:+_,u_is_along_line:S,u_is_variable_anchor:M,u_texsize:he,u_texture:0,u_translation:re,u_pitched_scale:ge}},Du=(E,u,h,_,S,M,V,W,X,re,ie,he,ge,we)=>{const Le=V.transform;return o.e(Wp(E,u,h,_,S,M,V,W,X,re,ie,he,we),{u_gamma_scale:_?Math.cos(Le.pitch*Math.PI/180)*Le.cameraToCenterDistance:1,u_device_pixel_ratio:V.pixelRatio,u_is_halo:ge?1:0,u_is_plain:1})},xt=(E,u,h,_,S,M,V,W,X,re,ie,he,ge)=>o.e(Du(E,u,h,_,S,M,V,W,X,re,!0,ie,!0,ge),{u_texsize_icon:he,u_texture_icon:1}),Ht=(E,u)=>({u_opacity:E,u_color:u}),Nt=(E,u,h,_,S)=>o.e((function(M,V,W,X){const re=W.imageManager.getPattern(M.from.toString()),ie=W.imageManager.getPattern(M.to.toString()),{width:he,height:ge}=W.imageManager.getPixelSize(),we=Math.pow(2,X.tileID.overscaledZ),Le=X.tileSize*Math.pow(2,W.transform.tileZoom)/we,He=Le*(X.tileID.canonical.x+X.tileID.wrap*we),Xe=Le*X.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:re.tl,u_pattern_br_a:re.br,u_pattern_tl_b:ie.tl,u_pattern_br_b:ie.br,u_texsize:[he,ge],u_mix:V.t,u_pattern_size_a:re.displaySize,u_pattern_size_b:ie.displaySize,u_scale_a:V.fromScale,u_scale_b:V.toScale,u_tile_units_to_pixels:1/o.aK(X,1,W.transform.tileZoom),u_pixel_coord_upper:[He>>16,Xe>>16],u_pixel_coord_lower:[65535&He,65535&Xe]}})(h,S,u,_),{u_opacity:E}),$n=(E,u)=>{},rr={fillExtrusion:(E,u)=>({u_lightpos:new o.c2(E,u.u_lightpos),u_lightpos_globe:new o.c2(E,u.u_lightpos_globe),u_lightintensity:new o.bp(E,u.u_lightintensity),u_lightcolor:new o.c2(E,u.u_lightcolor),u_vertical_gradient:new o.bp(E,u.u_vertical_gradient),u_opacity:new o.bp(E,u.u_opacity),u_fill_translate:new o.c3(E,u.u_fill_translate)}),fillExtrusionPattern:(E,u)=>({u_lightpos:new o.c2(E,u.u_lightpos),u_lightpos_globe:new o.c2(E,u.u_lightpos_globe),u_lightintensity:new o.bp(E,u.u_lightintensity),u_lightcolor:new o.c2(E,u.u_lightcolor),u_vertical_gradient:new o.bp(E,u.u_vertical_gradient),u_height_factor:new o.bp(E,u.u_height_factor),u_opacity:new o.bp(E,u.u_opacity),u_fill_translate:new o.c3(E,u.u_fill_translate),u_image:new o.b_(E,u.u_image),u_texsize:new o.c3(E,u.u_texsize),u_pixel_coord_upper:new o.c3(E,u.u_pixel_coord_upper),u_pixel_coord_lower:new o.c3(E,u.u_pixel_coord_lower),u_scale:new o.c2(E,u.u_scale),u_fade:new o.bp(E,u.u_fade)}),fill:(E,u)=>({u_fill_translate:new o.c3(E,u.u_fill_translate)}),fillPattern:(E,u)=>({u_image:new o.b_(E,u.u_image),u_texsize:new o.c3(E,u.u_texsize),u_pixel_coord_upper:new o.c3(E,u.u_pixel_coord_upper),u_pixel_coord_lower:new o.c3(E,u.u_pixel_coord_lower),u_scale:new o.c2(E,u.u_scale),u_fade:new o.bp(E,u.u_fade),u_fill_translate:new o.c3(E,u.u_fill_translate)}),fillOutline:(E,u)=>({u_world:new o.c3(E,u.u_world),u_fill_translate:new o.c3(E,u.u_fill_translate)}),fillOutlinePattern:(E,u)=>({u_world:new o.c3(E,u.u_world),u_image:new o.b_(E,u.u_image),u_texsize:new o.c3(E,u.u_texsize),u_pixel_coord_upper:new o.c3(E,u.u_pixel_coord_upper),u_pixel_coord_lower:new o.c3(E,u.u_pixel_coord_lower),u_scale:new o.c2(E,u.u_scale),u_fade:new o.bp(E,u.u_fade),u_fill_translate:new o.c3(E,u.u_fill_translate)}),circle:(E,u)=>({u_camera_to_center_distance:new o.bp(E,u.u_camera_to_center_distance),u_scale_with_map:new o.b_(E,u.u_scale_with_map),u_pitch_with_map:new o.b_(E,u.u_pitch_with_map),u_extrude_scale:new o.c3(E,u.u_extrude_scale),u_device_pixel_ratio:new o.bp(E,u.u_device_pixel_ratio),u_globe_extrude_scale:new o.bp(E,u.u_globe_extrude_scale),u_translate:new o.c3(E,u.u_translate)}),collisionBox:(E,u)=>({u_pixel_extrude_scale:new o.c3(E,u.u_pixel_extrude_scale)}),collisionCircle:(E,u)=>({u_viewport_size:new o.c3(E,u.u_viewport_size)}),debug:(E,u)=>({u_color:new o.b$(E,u.u_color),u_overlay:new o.b_(E,u.u_overlay),u_overlay_scale:new o.bp(E,u.u_overlay_scale)}),depth:$n,clippingMask:$n,heatmap:(E,u)=>({u_extrude_scale:new o.bp(E,u.u_extrude_scale),u_intensity:new o.bp(E,u.u_intensity),u_globe_extrude_scale:new o.bp(E,u.u_globe_extrude_scale)}),heatmapTexture:(E,u)=>({u_matrix:new o.c0(E,u.u_matrix),u_world:new o.c3(E,u.u_world),u_image:new o.b_(E,u.u_image),u_color_ramp:new o.b_(E,u.u_color_ramp),u_opacity:new o.bp(E,u.u_opacity)}),hillshade:(E,u)=>({u_image:new o.b_(E,u.u_image),u_latrange:new o.c3(E,u.u_latrange),u_exaggeration:new o.bp(E,u.u_exaggeration),u_altitudes:new o.c9(E,u.u_altitudes),u_azimuths:new o.c9(E,u.u_azimuths),u_accent:new o.b$(E,u.u_accent),u_method:new o.b_(E,u.u_method),u_shadows:new o.c8(E,u.u_shadows),u_highlights:new o.c8(E,u.u_highlights)}),hillshadePrepare:(E,u)=>({u_matrix:new o.c0(E,u.u_matrix),u_image:new o.b_(E,u.u_image),u_dimension:new o.c3(E,u.u_dimension),u_zoom:new o.bp(E,u.u_zoom),u_unpack:new o.c1(E,u.u_unpack)}),colorRelief:(E,u)=>({u_image:new o.b_(E,u.u_image),u_unpack:new o.c1(E,u.u_unpack),u_dimension:new o.c3(E,u.u_dimension),u_elevation_stops:new o.b_(E,u.u_elevation_stops),u_color_stops:new o.b_(E,u.u_color_stops),u_color_ramp_size:new o.b_(E,u.u_color_ramp_size),u_opacity:new o.bp(E,u.u_opacity)}),line:(E,u)=>({u_translation:new o.c3(E,u.u_translation),u_ratio:new o.bp(E,u.u_ratio),u_device_pixel_ratio:new o.bp(E,u.u_device_pixel_ratio),u_units_to_pixels:new o.c3(E,u.u_units_to_pixels)}),lineGradient:(E,u)=>({u_translation:new o.c3(E,u.u_translation),u_ratio:new o.bp(E,u.u_ratio),u_device_pixel_ratio:new o.bp(E,u.u_device_pixel_ratio),u_units_to_pixels:new o.c3(E,u.u_units_to_pixels),u_image:new o.b_(E,u.u_image),u_image_height:new o.bp(E,u.u_image_height)}),linePattern:(E,u)=>({u_translation:new o.c3(E,u.u_translation),u_texsize:new o.c3(E,u.u_texsize),u_ratio:new o.bp(E,u.u_ratio),u_device_pixel_ratio:new o.bp(E,u.u_device_pixel_ratio),u_image:new o.b_(E,u.u_image),u_units_to_pixels:new o.c3(E,u.u_units_to_pixels),u_scale:new o.c2(E,u.u_scale),u_fade:new o.bp(E,u.u_fade)}),lineSDF:(E,u)=>({u_translation:new o.c3(E,u.u_translation),u_ratio:new o.bp(E,u.u_ratio),u_device_pixel_ratio:new o.bp(E,u.u_device_pixel_ratio),u_units_to_pixels:new o.c3(E,u.u_units_to_pixels),u_image:new o.b_(E,u.u_image),u_mix:new o.bp(E,u.u_mix),u_tileratio:new o.bp(E,u.u_tileratio),u_crossfade_from:new o.bp(E,u.u_crossfade_from),u_crossfade_to:new o.bp(E,u.u_crossfade_to),u_lineatlas_width:new o.bp(E,u.u_lineatlas_width),u_lineatlas_height:new o.bp(E,u.u_lineatlas_height)}),lineGradientSDF:(E,u)=>({u_translation:new o.c3(E,u.u_translation),u_ratio:new o.bp(E,u.u_ratio),u_device_pixel_ratio:new o.bp(E,u.u_device_pixel_ratio),u_units_to_pixels:new o.c3(E,u.u_units_to_pixels),u_image:new o.b_(E,u.u_image),u_image_height:new o.bp(E,u.u_image_height),u_tileratio:new o.bp(E,u.u_tileratio),u_crossfade_from:new o.bp(E,u.u_crossfade_from),u_crossfade_to:new o.bp(E,u.u_crossfade_to),u_image_dash:new o.b_(E,u.u_image_dash),u_mix:new o.bp(E,u.u_mix),u_lineatlas_width:new o.bp(E,u.u_lineatlas_width),u_lineatlas_height:new o.bp(E,u.u_lineatlas_height)}),raster:(E,u)=>({u_tl_parent:new o.c3(E,u.u_tl_parent),u_scale_parent:new o.bp(E,u.u_scale_parent),u_buffer_scale:new o.bp(E,u.u_buffer_scale),u_fade_t:new o.bp(E,u.u_fade_t),u_opacity:new o.bp(E,u.u_opacity),u_image0:new o.b_(E,u.u_image0),u_image1:new o.b_(E,u.u_image1),u_brightness_low:new o.bp(E,u.u_brightness_low),u_brightness_high:new o.bp(E,u.u_brightness_high),u_saturation_factor:new o.bp(E,u.u_saturation_factor),u_contrast_factor:new o.bp(E,u.u_contrast_factor),u_spin_weights:new o.c2(E,u.u_spin_weights),u_coords_top:new o.c1(E,u.u_coords_top),u_coords_bottom:new o.c1(E,u.u_coords_bottom)}),symbolIcon:(E,u)=>({u_is_size_zoom_constant:new o.b_(E,u.u_is_size_zoom_constant),u_is_size_feature_constant:new o.b_(E,u.u_is_size_feature_constant),u_size_t:new o.bp(E,u.u_size_t),u_size:new o.bp(E,u.u_size),u_camera_to_center_distance:new o.bp(E,u.u_camera_to_center_distance),u_pitch:new o.bp(E,u.u_pitch),u_rotate_symbol:new o.b_(E,u.u_rotate_symbol),u_aspect_ratio:new o.bp(E,u.u_aspect_ratio),u_fade_change:new o.bp(E,u.u_fade_change),u_label_plane_matrix:new o.c0(E,u.u_label_plane_matrix),u_coord_matrix:new o.c0(E,u.u_coord_matrix),u_is_text:new o.b_(E,u.u_is_text),u_pitch_with_map:new o.b_(E,u.u_pitch_with_map),u_is_along_line:new o.b_(E,u.u_is_along_line),u_is_variable_anchor:new o.b_(E,u.u_is_variable_anchor),u_texsize:new o.c3(E,u.u_texsize),u_texture:new o.b_(E,u.u_texture),u_translation:new o.c3(E,u.u_translation),u_pitched_scale:new o.bp(E,u.u_pitched_scale)}),symbolSDF:(E,u)=>({u_is_size_zoom_constant:new o.b_(E,u.u_is_size_zoom_constant),u_is_size_feature_constant:new o.b_(E,u.u_is_size_feature_constant),u_size_t:new o.bp(E,u.u_size_t),u_size:new o.bp(E,u.u_size),u_camera_to_center_distance:new o.bp(E,u.u_camera_to_center_distance),u_pitch:new o.bp(E,u.u_pitch),u_rotate_symbol:new o.b_(E,u.u_rotate_symbol),u_aspect_ratio:new o.bp(E,u.u_aspect_ratio),u_fade_change:new o.bp(E,u.u_fade_change),u_label_plane_matrix:new o.c0(E,u.u_label_plane_matrix),u_coord_matrix:new o.c0(E,u.u_coord_matrix),u_is_text:new o.b_(E,u.u_is_text),u_pitch_with_map:new o.b_(E,u.u_pitch_with_map),u_is_along_line:new o.b_(E,u.u_is_along_line),u_is_variable_anchor:new o.b_(E,u.u_is_variable_anchor),u_texsize:new o.c3(E,u.u_texsize),u_texture:new o.b_(E,u.u_texture),u_gamma_scale:new o.bp(E,u.u_gamma_scale),u_device_pixel_ratio:new o.bp(E,u.u_device_pixel_ratio),u_is_halo:new o.b_(E,u.u_is_halo),u_is_plain:new o.b_(E,u.u_is_plain),u_translation:new o.c3(E,u.u_translation),u_pitched_scale:new o.bp(E,u.u_pitched_scale)}),symbolTextAndIcon:(E,u)=>({u_is_size_zoom_constant:new o.b_(E,u.u_is_size_zoom_constant),u_is_size_feature_constant:new o.b_(E,u.u_is_size_feature_constant),u_size_t:new o.bp(E,u.u_size_t),u_size:new o.bp(E,u.u_size),u_camera_to_center_distance:new o.bp(E,u.u_camera_to_center_distance),u_pitch:new o.bp(E,u.u_pitch),u_rotate_symbol:new o.b_(E,u.u_rotate_symbol),u_aspect_ratio:new o.bp(E,u.u_aspect_ratio),u_fade_change:new o.bp(E,u.u_fade_change),u_label_plane_matrix:new o.c0(E,u.u_label_plane_matrix),u_coord_matrix:new o.c0(E,u.u_coord_matrix),u_is_text:new o.b_(E,u.u_is_text),u_pitch_with_map:new o.b_(E,u.u_pitch_with_map),u_is_along_line:new o.b_(E,u.u_is_along_line),u_is_variable_anchor:new o.b_(E,u.u_is_variable_anchor),u_texsize:new o.c3(E,u.u_texsize),u_texsize_icon:new o.c3(E,u.u_texsize_icon),u_texture:new o.b_(E,u.u_texture),u_texture_icon:new o.b_(E,u.u_texture_icon),u_gamma_scale:new o.bp(E,u.u_gamma_scale),u_device_pixel_ratio:new o.bp(E,u.u_device_pixel_ratio),u_is_halo:new o.b_(E,u.u_is_halo),u_translation:new o.c3(E,u.u_translation),u_pitched_scale:new o.bp(E,u.u_pitched_scale)}),background:(E,u)=>({u_opacity:new o.bp(E,u.u_opacity),u_color:new o.b$(E,u.u_color)}),backgroundPattern:(E,u)=>({u_opacity:new o.bp(E,u.u_opacity),u_image:new o.b_(E,u.u_image),u_pattern_tl_a:new o.c3(E,u.u_pattern_tl_a),u_pattern_br_a:new o.c3(E,u.u_pattern_br_a),u_pattern_tl_b:new o.c3(E,u.u_pattern_tl_b),u_pattern_br_b:new o.c3(E,u.u_pattern_br_b),u_texsize:new o.c3(E,u.u_texsize),u_mix:new o.bp(E,u.u_mix),u_pattern_size_a:new o.c3(E,u.u_pattern_size_a),u_pattern_size_b:new o.c3(E,u.u_pattern_size_b),u_scale_a:new o.bp(E,u.u_scale_a),u_scale_b:new o.bp(E,u.u_scale_b),u_pixel_coord_upper:new o.c3(E,u.u_pixel_coord_upper),u_pixel_coord_lower:new o.c3(E,u.u_pixel_coord_lower),u_tile_units_to_pixels:new o.bp(E,u.u_tile_units_to_pixels)}),terrain:(E,u)=>({u_texture:new o.b_(E,u.u_texture),u_ele_delta:new o.bp(E,u.u_ele_delta),u_fog_matrix:new o.c0(E,u.u_fog_matrix),u_fog_color:new o.b$(E,u.u_fog_color),u_fog_ground_blend:new o.bp(E,u.u_fog_ground_blend),u_fog_ground_blend_opacity:new o.bp(E,u.u_fog_ground_blend_opacity),u_horizon_color:new o.b$(E,u.u_horizon_color),u_horizon_fog_blend:new o.bp(E,u.u_horizon_fog_blend),u_is_globe_mode:new o.bp(E,u.u_is_globe_mode)}),terrainDepth:(E,u)=>({u_ele_delta:new o.bp(E,u.u_ele_delta)}),terrainCoords:(E,u)=>({u_texture:new o.b_(E,u.u_texture),u_terrain_coords_id:new o.bp(E,u.u_terrain_coords_id),u_ele_delta:new o.bp(E,u.u_ele_delta)}),projectionErrorMeasurement:(E,u)=>({u_input:new o.bp(E,u.u_input),u_output_expected:new o.bp(E,u.u_output_expected)}),atmosphere:(E,u)=>({u_sun_pos:new o.c2(E,u.u_sun_pos),u_atmosphere_blend:new o.bp(E,u.u_atmosphere_blend),u_globe_position:new o.c2(E,u.u_globe_position),u_globe_radius:new o.bp(E,u.u_globe_radius),u_inv_proj_matrix:new o.c0(E,u.u_inv_proj_matrix)}),sky:(E,u)=>({u_sky_color:new o.b$(E,u.u_sky_color),u_horizon_color:new o.b$(E,u.u_horizon_color),u_horizon:new o.c3(E,u.u_horizon),u_horizon_normal:new o.c3(E,u.u_horizon_normal),u_sky_horizon_blend:new o.bp(E,u.u_sky_horizon_blend),u_sky_blend:new o.bp(E,u.u_sky_blend)})};class qr{constructor(u,h,_){this.context=u;const S=u.gl;this.buffer=S.createBuffer(),this.dynamicDraw=!!_,this.context.unbindVAO(),u.bindElementBuffer.set(this.buffer),S.bufferData(S.ELEMENT_ARRAY_BUFFER,h.arrayBuffer,this.dynamicDraw?S.DYNAMIC_DRAW:S.STATIC_DRAW),this.dynamicDraw||h.freeBufferAfterUpload()}bind(){this.context.bindElementBuffer.set(this.buffer)}updateData(u){const h=this.context.gl;if(!this.dynamicDraw)throw new Error("Attempted to update data while not in dynamic mode.");this.context.unbindVAO(),this.bind(),h.bufferSubData(h.ELEMENT_ARRAY_BUFFER,0,u.arrayBuffer)}destroy(){this.buffer&&(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)}}const ca={Int8:"BYTE",Uint8:"UNSIGNED_BYTE",Int16:"SHORT",Uint16:"UNSIGNED_SHORT",Int32:"INT",Uint32:"UNSIGNED_INT",Float32:"FLOAT"};class ri{constructor(u,h,_,S){this.length=h.length,this.attributes=_,this.itemSize=h.bytesPerElement,this.dynamicDraw=S,this.context=u;const M=u.gl;this.buffer=M.createBuffer(),u.bindVertexBuffer.set(this.buffer),M.bufferData(M.ARRAY_BUFFER,h.arrayBuffer,this.dynamicDraw?M.DYNAMIC_DRAW:M.STATIC_DRAW),this.dynamicDraw||h.freeBufferAfterUpload()}bind(){this.context.bindVertexBuffer.set(this.buffer)}updateData(u){if(u.length!==this.length)throw new Error(`Length of new data is ${u.length}, which doesn't match current length of ${this.length}`);const h=this.context.gl;this.bind(),h.bufferSubData(h.ARRAY_BUFFER,0,u.arrayBuffer)}enableAttributes(u,h){for(const _ of this.attributes){const S=h.attributes[_.name];S!==void 0&&u.enableVertexAttribArray(S)}}setVertexAttribPointers(u,h,_){for(const S of this.attributes){const M=h.attributes[S.name];M!==void 0&&u.vertexAttribPointer(M,S.components,u[ca[S.type]],!1,this.itemSize,S.offset+this.itemSize*(_||0))}}destroy(){this.buffer&&(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)}}class Lr{constructor(u){this.gl=u.gl,this.default=this.getDefault(),this.current=this.default,this.dirty=!1}get(){return this.current}set(u){}getDefault(){return this.default}setDefault(){this.set(this.default)}}class M1 extends Lr{getDefault(){return o.bo.transparent}set(u){const h=this.current;(u.r!==h.r||u.g!==h.g||u.b!==h.b||u.a!==h.a||this.dirty)&&(this.gl.clearColor(u.r,u.g,u.b,u.a),this.current=u,this.dirty=!1)}}class mo extends Lr{getDefault(){return 1}set(u){(u!==this.current||this.dirty)&&(this.gl.clearDepth(u),this.current=u,this.dirty=!1)}}class zc extends Lr{getDefault(){return 0}set(u){(u!==this.current||this.dirty)&&(this.gl.clearStencil(u),this.current=u,this.dirty=!1)}}class Gp extends Lr{getDefault(){return[!0,!0,!0,!0]}set(u){const h=this.current;(u[0]!==h[0]||u[1]!==h[1]||u[2]!==h[2]||u[3]!==h[3]||this.dirty)&&(this.gl.colorMask(u[0],u[1],u[2],u[3]),this.current=u,this.dirty=!1)}}class Lu extends Lr{getDefault(){return!0}set(u){(u!==this.current||this.dirty)&&(this.gl.depthMask(u),this.current=u,this.dirty=!1)}}class hl extends Lr{getDefault(){return 255}set(u){(u!==this.current||this.dirty)&&(this.gl.stencilMask(u),this.current=u,this.dirty=!1)}}class Ou extends Lr{getDefault(){return{func:this.gl.ALWAYS,ref:0,mask:255}}set(u){const h=this.current;(u.func!==h.func||u.ref!==h.ref||u.mask!==h.mask||this.dirty)&&(this.gl.stencilFunc(u.func,u.ref,u.mask),this.current=u,this.dirty=!1)}}class Ar extends Lr{getDefault(){const u=this.gl;return[u.KEEP,u.KEEP,u.KEEP]}set(u){const h=this.current;(u[0]!==h[0]||u[1]!==h[1]||u[2]!==h[2]||this.dirty)&&(this.gl.stencilOp(u[0],u[1],u[2]),this.current=u,this.dirty=!1)}}class Es extends Lr{getDefault(){return!1}set(u){if(u===this.current&&!this.dirty)return;const h=this.gl;u?h.enable(h.STENCIL_TEST):h.disable(h.STENCIL_TEST),this.current=u,this.dirty=!1}}class d0 extends Lr{getDefault(){return[0,1]}set(u){const h=this.current;(u[0]!==h[0]||u[1]!==h[1]||this.dirty)&&(this.gl.depthRange(u[0],u[1]),this.current=u,this.dirty=!1)}}class eh extends Lr{getDefault(){return!1}set(u){if(u===this.current&&!this.dirty)return;const h=this.gl;u?h.enable(h.DEPTH_TEST):h.disable(h.DEPTH_TEST),this.current=u,this.dirty=!1}}class f0 extends Lr{getDefault(){return this.gl.LESS}set(u){(u!==this.current||this.dirty)&&(this.gl.depthFunc(u),this.current=u,this.dirty=!1)}}class Nc extends Lr{getDefault(){return!1}set(u){if(u===this.current&&!this.dirty)return;const h=this.gl;u?h.enable(h.BLEND):h.disable(h.BLEND),this.current=u,this.dirty=!1}}class Yp extends Lr{getDefault(){const u=this.gl;return[u.ONE,u.ZERO]}set(u){const h=this.current;(u[0]!==h[0]||u[1]!==h[1]||this.dirty)&&(this.gl.blendFunc(u[0],u[1]),this.current=u,this.dirty=!1)}}class Vc extends Lr{getDefault(){return o.bo.transparent}set(u){const h=this.current;(u.r!==h.r||u.g!==h.g||u.b!==h.b||u.a!==h.a||this.dirty)&&(this.gl.blendColor(u.r,u.g,u.b,u.a),this.current=u,this.dirty=!1)}}class Ps extends Lr{getDefault(){return this.gl.FUNC_ADD}set(u){(u!==this.current||this.dirty)&&(this.gl.blendEquation(u),this.current=u,this.dirty=!1)}}class qc extends Lr{getDefault(){return!1}set(u){if(u===this.current&&!this.dirty)return;const h=this.gl;u?h.enable(h.CULL_FACE):h.disable(h.CULL_FACE),this.current=u,this.dirty=!1}}class h0 extends Lr{getDefault(){return this.gl.BACK}set(u){(u!==this.current||this.dirty)&&(this.gl.cullFace(u),this.current=u,this.dirty=!1)}}class jl extends Lr{getDefault(){return this.gl.CCW}set(u){(u!==this.current||this.dirty)&&(this.gl.frontFace(u),this.current=u,this.dirty=!1)}}class jc extends Lr{getDefault(){return null}set(u){(u!==this.current||this.dirty)&&(this.gl.useProgram(u),this.current=u,this.dirty=!1)}}class p0 extends Lr{getDefault(){return this.gl.TEXTURE0}set(u){(u!==this.current||this.dirty)&&(this.gl.activeTexture(u),this.current=u,this.dirty=!1)}}class Vd extends Lr{getDefault(){const u=this.gl;return[0,0,u.drawingBufferWidth,u.drawingBufferHeight]}set(u){const h=this.current;(u[0]!==h[0]||u[1]!==h[1]||u[2]!==h[2]||u[3]!==h[3]||this.dirty)&&(this.gl.viewport(u[0],u[1],u[2],u[3]),this.current=u,this.dirty=!1)}}class lr extends Lr{getDefault(){return null}set(u){if(u===this.current&&!this.dirty)return;const h=this.gl;h.bindFramebuffer(h.FRAMEBUFFER,u),this.current=u,this.dirty=!1}}class Ru extends Lr{getDefault(){return null}set(u){if(u===this.current&&!this.dirty)return;const h=this.gl;h.bindRenderbuffer(h.RENDERBUFFER,u),this.current=u,this.dirty=!1}}class Uc extends Lr{getDefault(){return null}set(u){if(u===this.current&&!this.dirty)return;const h=this.gl;h.bindTexture(h.TEXTURE_2D,u),this.current=u,this.dirty=!1}}class th extends Lr{getDefault(){return null}set(u){if(u===this.current&&!this.dirty)return;const h=this.gl;h.bindBuffer(h.ARRAY_BUFFER,u),this.current=u,this.dirty=!1}}class nh extends Lr{getDefault(){return null}set(u){const h=this.gl;h.bindBuffer(h.ELEMENT_ARRAY_BUFFER,u),this.current=u,this.dirty=!1}}class db extends Lr{getDefault(){return null}set(u){var h;if(u===this.current&&!this.dirty)return;const _=this.gl;Ts(_)?_.bindVertexArray(u):(h=_.getExtension("OES_vertex_array_object"))===null||h===void 0||h.bindVertexArrayOES(u),this.current=u,this.dirty=!1}}class fb extends Lr{getDefault(){return 4}set(u){if(u===this.current&&!this.dirty)return;const h=this.gl;h.pixelStorei(h.UNPACK_ALIGNMENT,u),this.current=u,this.dirty=!1}}class rh extends Lr{getDefault(){return!1}set(u){if(u===this.current&&!this.dirty)return;const h=this.gl;h.pixelStorei(h.UNPACK_PREMULTIPLY_ALPHA_WEBGL,u),this.current=u,this.dirty=!1}}class Zp extends Lr{getDefault(){return!1}set(u){if(u===this.current&&!this.dirty)return;const h=this.gl;h.pixelStorei(h.UNPACK_FLIP_Y_WEBGL,u),this.current=u,this.dirty=!1}}class Hc extends Lr{constructor(u,h){super(u),this.context=u,this.parent=h}getDefault(){return null}}class Kp extends Hc{setDirty(){this.dirty=!0}set(u){if(u===this.current&&!this.dirty)return;this.context.bindFramebuffer.set(this.parent);const h=this.gl;h.framebufferTexture2D(h.FRAMEBUFFER,h.COLOR_ATTACHMENT0,h.TEXTURE_2D,u,0),this.current=u,this.dirty=!1}}class qd extends Hc{set(u){if(u===this.current&&!this.dirty)return;this.context.bindFramebuffer.set(this.parent);const h=this.gl;h.framebufferRenderbuffer(h.FRAMEBUFFER,h.DEPTH_ATTACHMENT,h.RENDERBUFFER,u),this.current=u,this.dirty=!1}}class Xp extends Hc{set(u){if(u===this.current&&!this.dirty)return;this.context.bindFramebuffer.set(this.parent);const h=this.gl;h.framebufferRenderbuffer(h.FRAMEBUFFER,h.DEPTH_STENCIL_ATTACHMENT,h.RENDERBUFFER,u),this.current=u,this.dirty=!1}}const Jp="Framebuffer is not complete";class la{constructor(u,h,_,S,M){this.context=u,this.width=h,this.height=_;const V=u.gl,W=this.framebuffer=V.createFramebuffer();if(this.colorAttachment=new Kp(u,W),S)this.depthAttachment=M?new Xp(u,W):new qd(u,W);else if(M)throw new Error("Stencil cannot be set without depth");if(V.checkFramebufferStatus(V.FRAMEBUFFER)!==V.FRAMEBUFFER_COMPLETE)throw new Error(Jp)}destroy(){const u=this.context.gl,h=this.colorAttachment.get();if(h&&u.deleteTexture(h),this.depthAttachment){const _=this.depthAttachment.get();_&&u.deleteRenderbuffer(_)}u.deleteFramebuffer(this.framebuffer)}}class da{constructor(u){var h,_;if(this.gl=u,this.clearColor=new M1(this),this.clearDepth=new mo(this),this.clearStencil=new zc(this),this.colorMask=new Gp(this),this.depthMask=new Lu(this),this.stencilMask=new hl(this),this.stencilFunc=new Ou(this),this.stencilOp=new Ar(this),this.stencilTest=new Es(this),this.depthRange=new d0(this),this.depthTest=new eh(this),this.depthFunc=new f0(this),this.blend=new Nc(this),this.blendFunc=new Yp(this),this.blendColor=new Vc(this),this.blendEquation=new Ps(this),this.cullFace=new qc(this),this.cullFaceSide=new h0(this),this.frontFace=new jl(this),this.program=new jc(this),this.activeTexture=new p0(this),this.viewport=new Vd(this),this.bindFramebuffer=new lr(this),this.bindRenderbuffer=new Ru(this),this.bindTexture=new Uc(this),this.bindVertexBuffer=new th(this),this.bindElementBuffer=new nh(this),this.bindVertexArray=new db(this),this.pixelStoreUnpack=new fb(this),this.pixelStoreUnpackPremultiplyAlpha=new rh(this),this.pixelStoreUnpackFlipY=new Zp(this),this.extTextureFilterAnisotropic=u.getExtension("EXT_texture_filter_anisotropic"),this.extTextureFilterAnisotropic&&(this.extTextureFilterAnisotropicMax=u.getParameter(this.extTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT)),this.maxTextureSize=u.getParameter(u.MAX_TEXTURE_SIZE),Ts(u)){this.HALF_FLOAT=u.HALF_FLOAT;const S=u.getExtension("EXT_color_buffer_half_float");this.RGBA16F=(h=u.RGBA16F)!==null&&h!==void 0?h:S?.RGBA16F_EXT,this.RGB16F=(_=u.RGB16F)!==null&&_!==void 0?_:S?.RGB16F_EXT,u.getExtension("EXT_color_buffer_float")}else{u.getExtension("EXT_color_buffer_half_float"),u.getExtension("OES_texture_half_float_linear");const S=u.getExtension("OES_texture_half_float");this.HALF_FLOAT=S?.HALF_FLOAT_OES}}setDefault(){this.unbindVAO(),this.clearColor.setDefault(),this.clearDepth.setDefault(),this.clearStencil.setDefault(),this.colorMask.setDefault(),this.depthMask.setDefault(),this.stencilMask.setDefault(),this.stencilFunc.setDefault(),this.stencilOp.setDefault(),this.stencilTest.setDefault(),this.depthRange.setDefault(),this.depthTest.setDefault(),this.depthFunc.setDefault(),this.blend.setDefault(),this.blendFunc.setDefault(),this.blendColor.setDefault(),this.blendEquation.setDefault(),this.cullFace.setDefault(),this.cullFaceSide.setDefault(),this.frontFace.setDefault(),this.program.setDefault(),this.activeTexture.setDefault(),this.bindFramebuffer.setDefault(),this.pixelStoreUnpack.setDefault(),this.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.pixelStoreUnpackFlipY.setDefault()}setDirty(){this.clearColor.dirty=!0,this.clearDepth.dirty=!0,this.clearStencil.dirty=!0,this.colorMask.dirty=!0,this.depthMask.dirty=!0,this.stencilMask.dirty=!0,this.stencilFunc.dirty=!0,this.stencilOp.dirty=!0,this.stencilTest.dirty=!0,this.depthRange.dirty=!0,this.depthTest.dirty=!0,this.depthFunc.dirty=!0,this.blend.dirty=!0,this.blendFunc.dirty=!0,this.blendColor.dirty=!0,this.blendEquation.dirty=!0,this.cullFace.dirty=!0,this.cullFaceSide.dirty=!0,this.frontFace.dirty=!0,this.program.dirty=!0,this.activeTexture.dirty=!0,this.viewport.dirty=!0,this.bindFramebuffer.dirty=!0,this.bindRenderbuffer.dirty=!0,this.bindTexture.dirty=!0,this.bindVertexBuffer.dirty=!0,this.bindElementBuffer.dirty=!0,this.bindVertexArray.dirty=!0,this.pixelStoreUnpack.dirty=!0,this.pixelStoreUnpackPremultiplyAlpha.dirty=!0,this.pixelStoreUnpackFlipY.dirty=!0}createIndexBuffer(u,h){return new qr(this,u,h)}createVertexBuffer(u,h,_){return new ri(this,u,h,_)}createRenderbuffer(u,h,_){const S=this.gl,M=S.createRenderbuffer();return this.bindRenderbuffer.set(M),S.renderbufferStorage(S.RENDERBUFFER,u,h,_),this.bindRenderbuffer.set(null),M}createFramebuffer(u,h,_,S){return new la(this,u,h,_,S)}clear({color:u,depth:h,stencil:_}){const S=this.gl;let M=0;u&&(M|=S.COLOR_BUFFER_BIT,this.clearColor.set(u),this.colorMask.set([!0,!0,!0,!0])),h!==void 0&&(M|=S.DEPTH_BUFFER_BIT,this.depthRange.set([0,1]),this.clearDepth.set(h),this.depthMask.set(!0)),_!==void 0&&(M|=S.STENCIL_BUFFER_BIT,this.clearStencil.set(_),this.stencilMask.set(255)),S.clear(M)}setCullFace(u){u.enable===!1?this.cullFace.set(!1):(this.cullFace.set(!0),this.cullFaceSide.set(u.mode),this.frontFace.set(u.frontFace))}setDepthMode(u){u.func!==this.gl.ALWAYS||u.mask?(this.depthTest.set(!0),this.depthFunc.set(u.func),this.depthMask.set(u.mask),this.depthRange.set(u.range)):this.depthTest.set(!1)}setStencilMode(u){u.test.func!==this.gl.ALWAYS||u.mask?(this.stencilTest.set(!0),this.stencilMask.set(u.mask),this.stencilOp.set([u.fail,u.depthFail,u.pass]),this.stencilFunc.set({func:u.test.func,ref:u.ref,mask:u.test.mask})):this.stencilTest.set(!1)}setColorMode(u){o.bQ(u.blendFunction,Yr.Replace)?this.blend.set(!1):(this.blend.set(!0),this.blendFunc.set(u.blendFunction),this.blendColor.set(u.blendColor)),this.colorMask.set(u.mask)}createVertexArray(){var u;return Ts(this.gl)?this.gl.createVertexArray():(u=this.gl.getExtension("OES_vertex_array_object"))===null||u===void 0?void 0:u.createVertexArrayOES()}deleteVertexArray(u){var h;Ts(this.gl)?this.gl.deleteVertexArray(u):(h=this.gl.getExtension("OES_vertex_array_object"))===null||h===void 0||h.deleteVertexArrayOES(u)}unbindVAO(){this.bindVertexArray.set(null)}}let Wc;function jd(E,u,h,_,S){var M,V;const W=E.context,X=E.transform,re=W.gl,ie=E.useProgram("collisionBox"),he=[];let ge=0,we=0;for(const lt of _){const Je=u.getTile(lt).getBucket(h);if(!Je)continue;const Ke=S?Je.textCollisionBox:Je.iconCollisionBox,ot=Je.collisionCircleArray;ot.length>0&&(he.push({circleArray:ot,circleOffset:we,coord:lt}),ge+=ot.length/4,we=ge),Ke&&ie.draw(W,re.LINES,Jn.disabled,kr.disabled,E.colorModeForRenderPass(),Cr.disabled,E1(E.transform),(M=E.style.map.terrain)===null||M===void 0?void 0:M.getTerrainData(lt),X.getProjectionData({overscaledTileID:lt,applyGlobeMatrix:!0,applyTerrainMatrix:!0}),h.id,Ke.layoutVertexBuffer,Ke.indexBuffer,Ke.segments,null,E.transform.zoom,null,null,Ke.collisionVertexBuffer)}if(!S||!he.length)return;const Le=E.useProgram("collisionCircle"),He=new o.ca;He.resize(4*ge),He._trim();let Xe=0;for(const lt of he)for(let Je=0;Je<lt.circleArray.length/4;Je++){const Ke=4*Je,ot=lt.circleArray[Ke+0],tt=lt.circleArray[Ke+1],wt=lt.circleArray[Ke+2],Rt=lt.circleArray[Ke+3];He.emplace(Xe++,ot,tt,wt,Rt,0),He.emplace(Xe++,ot,tt,wt,Rt,1),He.emplace(Xe++,ot,tt,wt,Rt,2),He.emplace(Xe++,ot,tt,wt,Rt,3)}(!Wc||Wc.length<2*ge)&&(Wc=(function(lt){const Je=2*lt,Ke=new o.cc;Ke.resize(Je),Ke._trim();for(let ot=0;ot<Je;ot++){const tt=6*ot;Ke.uint16[tt+0]=4*ot+0,Ke.uint16[tt+1]=4*ot+1,Ke.uint16[tt+2]=4*ot+2,Ke.uint16[tt+3]=4*ot+2,Ke.uint16[tt+4]=4*ot+3,Ke.uint16[tt+5]=4*ot+0}return Ke})(ge));const Ze=W.createIndexBuffer(Wc,!0),et=W.createVertexBuffer(He,o.cb.members,!0);for(const lt of he){const Je=ks(E.transform);Le.draw(W,re.TRIANGLES,Jn.disabled,kr.disabled,E.colorModeForRenderPass(),Cr.disabled,Je,(V=E.style.map.terrain)===null||V===void 0?void 0:V.getTerrainData(lt.coord),null,h.id,et,Ze,o.aV.simpleSegment(0,2*lt.circleOffset,lt.circleArray.length,lt.circleArray.length/2),null,E.transform.zoom,null,null,null)}et.destroy(),Ze.destroy()}const Gc=o.ap(new Float32Array(16));function m0(E,u,h,_,S,M){const{horizontalAlign:V,verticalAlign:W}=o.aP(E);return new o.P((-(V-.5)*u/S+_[0])*M,(-(W-.5)*h/S+_[1])*M)}function g0(E,u,h,_,S,M){const V=u.tileAnchorPoint.add(new o.P(u.translation[0],u.translation[1]));if(u.pitchWithMap){let W=_.mult(M);h||(W=W.rotate(-S));const X=V.add(W);return nr(X.x,X.y,u.pitchedLabelPlaneMatrix,u.getElevation).point}if(h){const W=Vr(u.tileAnchorPoint.x+1,u.tileAnchorPoint.y,u).point.sub(E),X=Math.atan(W.y/W.x)+(W.x<0?Math.PI:0);return E.add(_.rotate(X))}return E.add(_)}function Ul(E,u,h,_,S,M,V,W,X,re,ie,he){const ge=E.text.placedSymbolArray,we=E.text.dynamicLayoutVertexArray,Le=E.icon.dynamicLayoutVertexArray,He={};we.clear();for(let Xe=0;Xe<ge.length;Xe++){const Ze=ge.get(Xe),et=Ze.hidden||!Ze.crossTileID||E.allowVerticalPlacement&&!Ze.placedOrientation?null:_[Ze.crossTileID];if(et){const lt=new o.P(Ze.anchorX,Ze.anchorY),Je={getElevation:he,width:S.width,height:S.height,pitchedLabelPlaneMatrix:M,pitchWithMap:h,transform:S,tileAnchorPoint:lt,translation:re,unwrappedTileID:ie},Ke=h?Ld(lt.x,lt.y,Je):Vr(lt.x,lt.y,Je),ot=jf(S.cameraToCenterDistance,Ke.signedDistanceFromCamera);let tt=o.ay(E.textSizeData,W,Ze)*ot/o.aJ;h&&(tt*=E.tilePixelRatio/V);const{width:wt,height:Rt,anchor:Vt,textOffset:Qt,textBoxScale:Xt}=et,Tn=m0(Vt,wt,Rt,Qt,Xt,tt),fn=S.getPitchedTextCorrection(lt.x+re[0],lt.y+re[1],ie),Wt=g0(Ke.point,Je,u,Tn,-S.bearingInRadians,fn),gn=E.allowVerticalPlacement&&Ze.placedOrientation===o.ax.vertical?Math.PI/2:0;for(let Mn=0;Mn<Ze.numGlyphs;Mn++)o.aD(we,Wt,gn);X&&Ze.associatedIconIndex>=0&&(He[Ze.associatedIconIndex]={shiftedAnchor:Wt,angle:gn})}else Pu(Ze.numGlyphs,we)}if(X){Le.clear();const Xe=E.icon.placedSymbolArray;for(let Ze=0;Ze<Xe.length;Ze++){const et=Xe.get(Ze);if(et.hidden)Pu(et.numGlyphs,Le);else{const lt=He[Ze];if(lt)for(let Je=0;Je<et.numGlyphs;Je++)o.aD(Le,lt.shiftedAnchor,lt.angle);else Pu(et.numGlyphs,Le)}}E.icon.dynamicLayoutVertexBuffer.updateData(Le)}E.text.dynamicLayoutVertexBuffer.updateData(we)}function y0(E,u,h){return h.iconsInText&&u?"symbolTextAndIcon":E?"symbolSDF":"symbolIcon"}function Bu(E,u,h,_,S,M,V,W,X,re,ie,he,ge){var we,Le;const He=E.context,Xe=He.gl,Ze=E.transform,et=W==="map",lt=X==="map",Je=W!=="viewport"&&h.layout.get("symbol-placement")!=="point",Ke=et&&!lt&&!Je,ot=!h.layout.get("symbol-sort-key").isConstant();let tt=!1;const wt=E.getDepthModeForSublayer(0,Jn.ReadOnly),Rt=h._unevaluatedLayout.hasValue("text-variable-anchor")||h._unevaluatedLayout.hasValue("text-variable-anchor-offset"),Vt=[],Qt=Ze.getCircleRadiusCorrection();for(const fn of _){const Wt=u.getTile(fn),gn=Wt.getBucket(h);if(!gn)continue;
820const Mn=S?gn.text:gn.icon;if(!Mn?.segments.get().length||!Mn.hasVisibleVertices)continue;const ir=Mn.programConfigurations.get(h.id),jr=S||gn.sdfIcons,Xr=S?gn.textSizeData:gn.iconSizeData,Yi=lt||Ze.pitch!==0,Li=E.useProgram(y0(jr,S,gn),ir),Zi=o.aw(Xr,Ze.zoom),Pi=(we=E.style.map.terrain)===null||we===void 0?void 0:we.getTerrainData(fn);let Qa,Oa,fa,Ki,As=[0,0],ju=null;if(S)Oa=Wt.glyphAtlasTexture,fa=Xe.LINEAR,Qa=Wt.glyphAtlasTexture.size,gn.iconsInText&&(As=Wt.imageAtlasTexture.size,ju=Wt.imageAtlasTexture,Ki=Yi||E.options.rotating||E.options.zooming||Xr.kind==="composite"||Xr.kind==="camera"?Xe.LINEAR:Xe.NEAREST);else{const $i=h.layout.get("icon-size").constantOr(0)!==1||gn.iconsNeedLinear;Oa=Wt.imageAtlasTexture,fa=jr||E.options.rotating||E.options.zooming||$i||Yi?Xe.LINEAR:Xe.NEAREST,Qa=Wt.imageAtlasTexture.size}const Jl=o.aK(Wt,1,E.transform.zoom),Ra=Jo(et,E.transform,Jl),Is=Ip(lt,et,E.transform,Jl),Ql=o.aL(Ze,Wt,M,V),Jc=Ze.getProjectionData({overscaledTileID:fn,applyGlobeMatrix:!ge,applyTerrainMatrix:!0}),Ds=Rt&&gn.hasTextData(),as=h.layout.get("icon-text-fit")!=="none"&&Ds&&gn.hasIconData();if(Je){const $i=o.O();Kn($i,Ra);const Uu=E.style.map.terrain?(Sl,dm)=>E.style.map.terrain.getElevation(fn,Sl,dm):null,Ls=h.layout.get("text-rotation-alignment")==="map";Dp(gn,E,S,Ra,$i,lt,re,Ls,fn.toUnwrapped(),Ze.width,Ze.height,Ql,Uu)}const ss=S&&Rt||as,ls=Je||ss?Gc:lt?Ra:E.transform.clipSpaceToPixelsMatrix,si=jr&&h.paint.get(S?"text-halo-width":"icon-halo-width").constantOr(1)!==0;let li;li=jr?gn.iconsInText?xt(Xr.kind,Zi,Ke,lt,Je,ss,E,ls,Is,Ql,Qa,As,Qt):Du(Xr.kind,Zi,Ke,lt,Je,ss,E,ls,Is,Ql,S,Qa,si,Qt):Wp(Xr.kind,Zi,Ke,lt,Je,ss,E,ls,Is,Ql,S,Qa,Qt);const Ni={program:Li,buffers:Mn,uniformValues:li,projectionData:Jc,atlasTexture:Oa,atlasTextureIcon:ju,atlasInterpolation:fa,atlasInterpolationIcon:Ki,isSDF:jr,hasHalo:si};if(ot&&gn.canOverlap){tt=!0;const $i=Mn.segments.get();for(const Uu of $i)Vt.push({segments:new o.aV([Uu]),sortKey:Uu.sortKey,state:Ni,terrainData:Pi})}else Vt.push({segments:Mn.segments,sortKey:0,state:Ni,terrainData:Pi})}tt&&Vt.sort(((fn,Wt)=>fn.sortKey-Wt.sortKey));const Xt=(Le=h.paint.get(S?"text-halo-width":"icon-halo-width").constantOr(null))!==null&&Le!==void 0?Le:1/0,Tn=h.layout.get("text-letter-spacing").constantOr(0)*o.aJ<0||Xt>1;for(const fn of Vt){const Wt=fn.state;He.activeTexture.set(Xe.TEXTURE0),Wt.atlasTexture.bind(Wt.atlasInterpolation,Xe.CLAMP_TO_EDGE),Wt.atlasTextureIcon&&(He.activeTexture.set(Xe.TEXTURE1),Wt.atlasTextureIcon&&Wt.atlasTextureIcon.bind(Wt.atlasInterpolationIcon,Xe.CLAMP_TO_EDGE));const gn=Wt.isSDF&&Wt.hasHalo;if(gn){const Mn=Wt.uniformValues;Mn.u_is_halo=1,Tn&&(Mn.u_is_plain=0,Hl(Wt.buffers,fn.segments,h,E,Wt.program,wt,ie,he,Mn,Wt.projectionData,fn.terrainData),Mn.u_is_halo=0,Mn.u_is_plain=1)}Hl(Wt.buffers,fn.segments,h,E,Wt.program,wt,ie,he,Wt.uniformValues,Wt.projectionData,fn.terrainData),gn&&!Tn&&(Wt.uniformValues.u_is_halo=0)}}function Hl(E,u,h,_,S,M,V,W,X,re,ie){const he=_.context;S.draw(he,he.gl.TRIANGLES,M,V,W,Cr.backCCW,X,ie,re,h.id,E.layoutVertexBuffer,E.indexBuffer,u,h.paint,_.transform.zoom,E.programConfigurations.get(h.id),E.dynamicLayoutVertexBuffer,E.opacityVertexBuffer)}function Yc(E,u,h,_,S){const M=E.context,V=M.gl,W=kr.disabled,X=new Yr([V.ONE,V.ONE],o.bo.transparent,[!0,!0,!0,!0]),re=u.getBucket(h);if(!re)return;const ie=_.key;let he=h.heatmapFbos.get(ie);he||(he=Fu(M,u.tileSize,u.tileSize),h.heatmapFbos.set(ie,he)),M.bindFramebuffer.set(he.framebuffer),M.viewport.set([0,0,u.tileSize,u.tileSize]),M.clear({color:o.bo.transparent});const ge=re.programConfigurations.get(h.id),we=E.useProgram("heatmap",ge,!S),Le=E.transform.getProjectionData({overscaledTileID:u.tileID,applyGlobeMatrix:!0,applyTerrainMatrix:!0}),He=E.style.map.terrain.getTerrainData(_);we.draw(M,V.TRIANGLES,Jn.disabled,W,X,Cr.disabled,s0(u,E.transform.zoom,h.paint.get("heatmap-intensity"),1),He,Le,h.id,re.layoutVertexBuffer,re.indexBuffer,re.segments,h.paint,E.transform.zoom,ge)}function ih(E,u,h,_,S){const M=E.context,V=M.gl,W=E.transform;M.setColorMode(E.colorModeForRenderPass());const X=ah(M,u),re=h.key,ie=u.heatmapFbos.get(re);if(!ie)return;M.activeTexture.set(V.TEXTURE0),V.bindTexture(V.TEXTURE_2D,ie.colorAttachment.get()),M.activeTexture.set(V.TEXTURE1),X.bind(V.LINEAR,V.CLAMP_TO_EDGE);const he=W.getProjectionData({overscaledTileID:h,applyTerrainMatrix:S,applyGlobeMatrix:!_});E.useProgram("heatmapTexture").draw(M,V.TRIANGLES,Jn.disabled,kr.disabled,E.colorModeForRenderPass(),Cr.disabled,Iu(E,u,0,1),null,he,u.id,E.rasterBoundsBuffer,E.quadTriangleIndexBuffer,E.rasterBoundsSegments,u.paint,W.zoom),ie.destroy(),u.heatmapFbos.delete(re)}function Fu(E,u,h){var _,S;const M=E.gl,V=M.createTexture();M.bindTexture(M.TEXTURE_2D,V),M.texParameteri(M.TEXTURE_2D,M.TEXTURE_WRAP_S,M.CLAMP_TO_EDGE),M.texParameteri(M.TEXTURE_2D,M.TEXTURE_WRAP_T,M.CLAMP_TO_EDGE),M.texParameteri(M.TEXTURE_2D,M.TEXTURE_MIN_FILTER,M.LINEAR),M.texParameteri(M.TEXTURE_2D,M.TEXTURE_MAG_FILTER,M.LINEAR);const W=(_=E.HALF_FLOAT)!==null&&_!==void 0?_:M.UNSIGNED_BYTE,X=(S=E.RGBA16F)!==null&&S!==void 0?S:M.RGBA;M.texImage2D(M.TEXTURE_2D,0,X,u,h,0,M.RGBA,W,null);const re=E.createFramebuffer(u,h,!1,!1);return re.colorAttachment.set(V),re}function ah(E,u){return u.colorRampTexture||(u.colorRampTexture=new o.T(E,u.colorRamp,E.gl.RGBA)),u.colorRampTexture}function Qp(E,u,h,_,S,M,V,W){let X=256;if(S.stepInterpolant){const re=u.getSource().maxzoom,ie=V.canonical.z===re?Math.ceil(1<<E.transform.maxZoom-V.canonical.z):1;X=o.al(o.ce(M.maxLineLength/o.a6*1024*ie),256,h.maxTextureSize)}return W.gradient=o.cf({expression:S.gradientExpression(),evaluationKey:"lineProgress",resolution:X,image:W.gradient||void 0,clips:M.lineClipsArray}),W.texture?W.texture.update(W.gradient):W.texture=new o.T(h,W.gradient,_.RGBA),W.version=S.gradientVersion,W.texture}function hb(E,u,h,_,S){E.activeTexture.set(u.TEXTURE0),h.imageAtlasTexture.bind(u.LINEAR,u.CLAMP_TO_EDGE),_.updatePaintBuffers(S)}function A1(E,u,h,_,S,M){(S||E.lineAtlas.dirty)&&(u.activeTexture.set(h.TEXTURE0),E.lineAtlas.bind(u)),_.updatePaintBuffers(M)}function zi(E,u,h,_,S,M,V){const W=M.gradients[S.id];let X=W.texture;
vendor: 64,385 bytes, lines 820-822
820S.gradientVersion!==W.version&&(X=Qp(E,u,h,_,S,M,V,W)),h.activeTexture.set(_.TEXTURE0),X.bind(S.stepInterpolant?_.NEAREST:_.LINEAR,_.CLAMP_TO_EDGE)}function pl(E,u,h,_,S,M,V,W,X){const re=M.gradients[S.id];let ie=re.texture;S.gradientVersion!==re.version&&(ie=Qp(E,u,h,_,S,M,V,re)),h.activeTexture.set(_.TEXTURE0),ie.bind(S.stepInterpolant?_.NEAREST:_.LINEAR,_.CLAMP_TO_EDGE),h.activeTexture.set(_.TEXTURE1),E.lineAtlas.bind(h),W.updatePaintBuffers(X)}function xa(E,u,h,_,S){if(!h||!_?.imageAtlas)return;const M=_.imageAtlas.patternPositions;let V=M[h.to.toString()],W=M[h.from.toString()];if(!V&&W&&(V=W),!W&&V&&(W=V),!V||!W){const X=S.getPaintProperty(u);V=M[X],W=M[X]}V&&W&&E.setConstantPatternPositions(V,W)}function oh(E,u,h,_,S,M,V,W){var X;const re=E.context.gl,ie="fill-pattern",he=h.paint.get(ie),ge=he?.constantOr(1),we=h.getCrossfadeParameters();let Le,He,Xe,Ze,et;const lt=E.transform,Je=h.paint.get("fill-translate"),Ke=h.paint.get("fill-translate-anchor");V?(He=ge&&!h.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline",Le=re.LINES):(He=ge?"fillPattern":"fill",Le=re.TRIANGLES);const ot=he.constantOr(null);for(const tt of _){const wt=u.getTile(tt);if(ge&&!wt.patternsLoaded())continue;const Rt=wt.getBucket(h);if(!Rt)continue;const Vt=Rt.programConfigurations.get(h.id),Qt=E.useProgram(He,Vt),Xt=(X=E.style.map.terrain)===null||X===void 0?void 0:X.getTerrainData(tt);ge&&(E.context.activeTexture.set(re.TEXTURE0),wt.imageAtlasTexture.bind(re.LINEAR,re.CLAMP_TO_EDGE),Vt.updatePaintBuffers(we)),xa(Vt,ie,ot,wt,h);const Tn=lt.getProjectionData({overscaledTileID:tt,applyGlobeMatrix:!W,applyTerrainMatrix:!0}),fn=o.aL(lt,wt,Je,Ke);if(V){Ze=Rt.indexBuffer2,et=Rt.segments2;const gn=[re.drawingBufferWidth,re.drawingBufferHeight];Xe=He==="fillOutlinePattern"&&ge?T1(E,we,wt,gn,fn):C1(gn,fn)}else Ze=Rt.indexBuffer,et=Rt.segments,Xe=ge?Up(E,we,wt,fn):{u_fill_translate:fn};const Wt=E.stencilModeForClipping(tt);Qt.draw(E.context,Le,S,Wt,M,Cr.backCCW,Xe,Xt,Tn,h.id,Rt.layoutVertexBuffer,Ze,et,h.paint,E.transform.zoom,Vt)}}function Oe(E,u,h,_,S,M,V,W){var X;const re=E.context,ie=re.gl,he="fill-extrusion-pattern",ge=h.paint.get(he),we=ge.constantOr(1),Le=h.getCrossfadeParameters(),He=h.paint.get("fill-extrusion-opacity"),Xe=ge.constantOr(null),Ze=E.transform;for(const et of _){const lt=u.getTile(et),Je=lt.getBucket(h);if(!Je)continue;const Ke=(X=E.style.map.terrain)===null||X===void 0?void 0:X.getTerrainData(et),ot=Je.programConfigurations.get(h.id),tt=E.useProgram(we?"fillExtrusionPattern":"fillExtrusion",ot);we&&(E.context.activeTexture.set(ie.TEXTURE0),lt.imageAtlasTexture.bind(ie.LINEAR,ie.CLAMP_TO_EDGE),ot.updatePaintBuffers(Le));const wt=Ze.getProjectionData({overscaledTileID:et,applyGlobeMatrix:!W,applyTerrainMatrix:!0});xa(ot,he,Xe,lt,h);const Rt=o.aL(Ze,lt,h.paint.get("fill-extrusion-translate"),h.paint.get("fill-extrusion-translate-anchor")),Vt=h.paint.get("fill-extrusion-vertical-gradient"),Qt=we?a0(E,Vt,He,Rt,et,Le,lt):i0(E,Vt,He,Rt);tt.draw(re,re.gl.TRIANGLES,S,M,V,Cr.backCCW,Qt,Ke,wt,h.id,Je.layoutVertexBuffer,Je.indexBuffer,Je.segments,h.paint,E.transform.zoom,ot,E.style.map.terrain&&Je.centroidVertexBuffer)}}function Wl(E,u,h,_,S,M,V,W,X){var re;const ie=E.style.projection,he=E.context,ge=E.transform,we=he.gl,Le=[`#define NUM_ILLUMINATION_SOURCES ${h.paint.get("hillshade-highlight-color").values.length}`],He=E.useProgram("hillshade",null,!1,Le),Xe=!E.options.moving;for(const Ze of _){const et=u.getTile(Ze),lt=et.fbo;if(!lt)continue;const Je=ie.getMeshFromTileID(he,Ze.canonical,W,!0,"raster"),Ke=(re=E.style.map.terrain)===null||re===void 0?void 0:re.getTerrainData(Ze);he.activeTexture.set(we.TEXTURE0),we.bindTexture(we.TEXTURE_2D,lt.colorAttachment.get());const ot=ge.getProjectionData({overscaledTileID:Ze,aligned:Xe,applyGlobeMatrix:!X,applyTerrainMatrix:!0});He.draw(he,we.TRIANGLES,M,S[Ze.overscaledZ],V,Cr.backCCW,P1(E,et,h),Ke,ot,h.id,Je.vertexBuffer,Je.indexBuffer,Je.segments)}}let Gs=0;function Ka(E,u,h,_,S,M,V,W,X){var re;const ie=E.style.projection,he=E.context,ge=E.transform,we=he.gl,Le=E.useProgram("colorRelief"),He=!E.options.moving,Xe=h.paint.get("resampling")==="nearest"?we.NEAREST:we.LINEAR;let Ze=!0,et=0;for(const lt of _){const Je=u.getTile(lt),Ke=Je.dem;if(Ze){Gs||(Gs=we.getParameter(we.MAX_TEXTURE_SIZE));const Qt=Gs,{elevationTexture:Xt,colorTexture:Tn}=h.getColorRampTextures(he,Qt,Ke.getUnpackVector());he.activeTexture.set(we.TEXTURE1),Xt.bind(we.NEAREST,we.CLAMP_TO_EDGE),he.activeTexture.set(we.TEXTURE4),Tn.bind(we.LINEAR,we.CLAMP_TO_EDGE),Ze=!1,et=Xt.size[0]}if(!Ke?.data)continue;const ot=Ke.stride,tt=Ke.getPixels();if(he.activeTexture.set(we.TEXTURE0),he.pixelStoreUnpackPremultiplyAlpha.set(!1),Je.demTexture||(Je.demTexture=E.getTileTexture(ot)),Je.demTexture){const Qt=Je.demTexture;Qt.update(tt,{premultiply:!1}),Qt.bind(Xe,we.CLAMP_TO_EDGE)}else Je.demTexture=new o.T(he,tt,we.RGBA,{premultiply:!1}),Je.demTexture.bind(Xe,we.CLAMP_TO_EDGE);const wt=ie.getMeshFromTileID(he,lt.canonical,W,!0,"raster"),Rt=(re=E.style.map.terrain)===null||re===void 0?void 0:re.getTerrainData(lt),Vt=ge.getProjectionData({overscaledTileID:lt,aligned:He,applyGlobeMatrix:!X,applyTerrainMatrix:!0});Le.draw(he,we.TRIANGLES,M,S[lt.overscaledZ],V,Cr.backCCW,cb(h,Je.dem,et),Rt,Vt,h.id,wt.vertexBuffer,wt.indexBuffer,wt.segments)}}const fr=[new o.P(0,0),new o.P(o.a6,0),new o.P(o.a6,o.a6),new o.P(0,o.a6)];function Ud(E,u,h,_,S,M,V,W,X=!1,re=!1){var ie;const he=_[_.length-1].overscaledZ,ge=E.context,we=ge.gl,Le=E.useProgram("raster"),He=E.transform,Xe=E.style.projection,Ze=E.colorModeForRenderPass(),et=!E.options.moving,lt=h.paint.get("raster-opacity"),Je=h.paint.get("resampling")==="nearest"||h.paint.get("raster-resampling")==="nearest"?we.NEAREST:we.LINEAR,Ke=h.paint.get("raster-fade-duration"),ot=!!E.style.map.terrain;for(const tt of _){const wt=E.getDepthModeForSublayer(tt.overscaledZ-he,lt===1?Jn.ReadWrite:Jn.ReadOnly,we.LESS),Rt=u.getTile(tt);ge.activeTexture.set(we.TEXTURE0),Rt.texture.bind(Je,we.CLAMP_TO_EDGE,we.LINEAR_MIPMAP_NEAREST),ge.activeTexture.set(we.TEXTURE1);const{parentTile:Vt,parentScaleBy:Qt,parentTopLeft:Xt,fadeValues:Tn}=I1(Rt,u,Ke,ot);Rt.fadeOpacity=Tn.tileOpacity,Vt?(Vt.fadeOpacity=Tn.parentTileOpacity,Vt.texture.bind(Je,we.CLAMP_TO_EDGE,we.LINEAR_MIPMAP_NEAREST)):Rt.texture.bind(Je,we.CLAMP_TO_EDGE,we.LINEAR_MIPMAP_NEAREST),Rt.texture.useMipmap&&ge.extTextureFilterAnisotropic&&E.transform.pitch>E.options.anisotropicFilterPitch&&we.texParameterf(we.TEXTURE_2D,ge.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,ge.extTextureFilterAnisotropicMax);const fn=(ie=E.style.map.terrain)===null||ie===void 0?void 0:ie.getTerrainData(tt),Wt=He.getProjectionData({overscaledTileID:tt,aligned:et,applyGlobeMatrix:!re,applyTerrainMatrix:!0}),gn=u0(Xt,Qt,Tn.fadeMix,h,W),Mn=Xe.getMeshFromTileID(ge,tt.canonical,M,V,"raster");Le.draw(ge,we.TRIANGLES,wt,S?S[tt.overscaledZ]:kr.disabled,Ze,X?Cr.frontCCW:Cr.backCCW,gn,fn,Wt,h.id,Mn.vertexBuffer,Mn.indexBuffer,Mn.segments)}}function I1(E,u,h,_){const S={parentTile:null,parentScaleBy:1,parentTopLeft:[0,0],fadeValues:{tileOpacity:1,parentTileOpacity:1,fadeMix:{opacity:1,mix:0}}};if(h===0||_)return S;if(E.fadingParentID){const M=u.getLoadedTile(E.fadingParentID);if(!M)return S;const V=Math.pow(2,M.tileID.overscaledZ-E.tileID.overscaledZ),W=[E.tileID.canonical.x*V%1,E.tileID.canonical.y*V%1],X=(function(re,ie,he){const ge=A(),we=(ge-ie.timeAdded)/he,Le=re.fadingDirection===Gt.Incoming,He=o.al((ge-re.timeAdded)/he,0,1),Xe=o.al(1-we,0,1),Ze=Le?He:Xe;return{tileOpacity:Ze,parentTileOpacity:Le?Xe:He,fadeMix:{opacity:1,mix:1-Ze}}})(E,M,h);return{parentTile:M,parentScaleBy:V,parentTopLeft:W,fadeValues:X}}if(E.selfFading){const M=(function(V,W){const X=(A()-V.timeAdded)/W,re=o.al(X,0,1);return{tileOpacity:re,fadeMix:{opacity:re,mix:0}}})(E,h);return{parentTile:null,parentScaleBy:1,parentTopLeft:[0,0],fadeValues:M}}return S}const D1=new o.bo(1,0,0,1),zu=new o.bo(0,1,0,1),L1=new o.bo(0,0,1,1),O1=new o.bo(1,0,1,1),Nu=new o.bo(0,1,1,1);function v0(E,u,h,_){ns(E,0,u+h/2,E.transform.width,h,_)}function _0(E,u,h,_){ns(E,u-h/2,0,h,E.transform.height,_)}function ns(E,u,h,_,S,M){const V=E.context,W=V.gl;W.enable(W.SCISSOR_TEST),W.scissor(u*E.pixelRatio,h*E.pixelRatio,_*E.pixelRatio,S*E.pixelRatio),V.clear({color:M}),W.disable(W.SCISSOR_TEST)}function R1(E,u,h){var _;const S=E.context,M=S.gl,V=E.useProgram("debug"),W=Jn.disabled,X=kr.disabled,re=E.colorModeForRenderPass(),ie="$debug",he=(_=E.style.map.terrain)===null||_===void 0?void 0:_.getTerrainData(h);S.activeTexture.set(M.TEXTURE0);const ge=u.getTileByID(h.key).latestRawTileData,we=Math.floor((ge?.byteLength||0)/1024),Le=u.getTile(h).tileSize,He=512/Math.min(Le,512)*(h.overscaledZ/E.transform.zoom)*.5;let Xe=h.canonical.toString();h.overscaledZ!==h.canonical.z&&(Xe+=` => ${h.overscaledZ}`),(function(et,lt){et.initDebugOverlayCanvas();const Je=et.debugOverlayCanvas,Ke=et.context.gl,ot=et.debugOverlayCanvas.getContext("2d");ot.clearRect(0,0,Je.width,Je.height),ot.shadowColor="white",ot.shadowBlur=2,ot.lineWidth=1.5,ot.strokeStyle="white",ot.textBaseline="top",ot.font="bold 36px Open Sans, sans-serif",ot.fillText(lt,5,5),ot.strokeText(lt,5,5),et.debugOverlayTexture.update(Je),et.debugOverlayTexture.bind(Ke.LINEAR,Ke.CLAMP_TO_EDGE)})(E,`${Xe} ${we}kB`);const Ze=E.transform.getProjectionData({overscaledTileID:h,applyGlobeMatrix:!0,applyTerrainMatrix:!0});V.draw(S,M.TRIANGLES,W,X,Yr.alphaBlended,Cr.disabled,o0(o.bo.transparent,He),null,Ze,ie,E.debugBuffer,E.quadTriangleIndexBuffer,E.debugSegments),V.draw(S,M.LINE_STRIP,W,X,re,Cr.disabled,o0(o.bo.red),he,Ze,ie,E.debugBuffer,E.tileBorderIndexBuffer,E.debugSegments)}function b0(E,u,h,_){const{isRenderingGlobe:S}=_,M=E.context,V=M.gl,W=E.transform,X=E.colorModeForRenderPass(),re=E.getDepthModeFor3D(),ie=E.useProgram("terrain");M.bindFramebuffer.set(null),M.viewport.set([0,0,E.width,E.height]);for(const he of h){const ge=u.getTerrainMesh(he.tileID),we=E.renderToTexture.getTexture(he),Le=u.getTerrainData(he.tileID);M.activeTexture.set(V.TEXTURE0),V.bindTexture(V.TEXTURE_2D,we.texture);const He=u.getMeshFrameDelta(W.zoom),Xe=W.calculateFogMatrix(he.tileID.toUnwrapped()),Ze=jp(He,Xe,E.style.sky,W.pitch,S),et=W.getProjectionData({overscaledTileID:he.tileID,applyTerrainMatrix:!1,applyGlobeMatrix:!0});ie.draw(M,V.TRIANGLES,re,kr.disabled,X,Cr.backCCW,Ze,Le,et,"terrain",ge.vertexBuffer,ge.indexBuffer,ge.segments)}}function x0(E,u){if(!u.mesh){const h=new o.aU;h.emplaceBack(-1,-1),h.emplaceBack(1,-1),h.emplaceBack(1,1),h.emplaceBack(-1,1);const _=new o.aW;_.emplaceBack(0,1,2),_.emplaceBack(0,2,3),u.mesh=new Gr(E.createVertexBuffer(h,Mu.members),E.createIndexBuffer(_),o.aV.simpleSegment(0,0,h.length,_.length))}return u.mesh}const B1={symbol:function(E,u,h,_,S,M){if(E.renderPass!=="translucent")return;const{isRenderingToTexture:V}=M,W=kr.disabled,X=E.colorModeForRenderPass();(h._unevaluatedLayout.hasValue("text-variable-anchor")||h._unevaluatedLayout.hasValue("text-variable-anchor-offset"))&&(function(re,ie,he,ge,we,Le,He,Xe,Ze){var et;const lt=ie.transform,Je=ie.style.map.terrain,Ke=we==="map",ot=Le==="map";for(const tt of re){const wt=ge.getTile(tt),Rt=wt.getBucket(he);if(!(!((et=Rt?.text)===null||et===void 0)&&et.segments.get().length))continue;const Vt=o.aw(Rt.textSizeData,lt.zoom),Qt=o.aK(wt,1,ie.transform.zoom),Xt=Jo(Ke,ie.transform,Qt),Tn=he.layout.get("icon-text-fit")!=="none"&&Rt.hasIconData();if(Vt){const fn=Math.pow(2,lt.zoom-wt.tileID.overscaledZ),Wt=Je?(gn,Mn)=>Je.getElevation(tt,gn,Mn):null;Ul(Rt,Ke,ot,Ze,lt,Xt,fn,Vt,Tn,o.aL(lt,wt,He,Xe),tt.toUnwrapped(),Wt)}}})(_,E,h,u,h.layout.get("text-rotation-alignment"),h.layout.get("text-pitch-alignment"),h.paint.get("text-translate"),h.paint.get("text-translate-anchor"),S),h.paint.get("icon-opacity").constantOr(1)!==0&&Bu(E,u,h,_,!1,h.paint.get("icon-translate"),h.paint.get("icon-translate-anchor"),h.layout.get("icon-rotation-alignment"),h.layout.get("icon-pitch-alignment"),h.layout.get("icon-keep-upright"),W,X,V),h.paint.get("text-opacity").constantOr(1)!==0&&Bu(E,u,h,_,!0,h.paint.get("text-translate"),h.paint.get("text-translate-anchor"),h.layout.get("text-rotation-alignment"),h.layout.get("text-pitch-alignment"),h.layout.get("text-keep-upright"),W,X,V),u.map.showCollisionBoxes&&(jd(E,u,h,_,!0),jd(E,u,h,_,!1))},circle:function(E,u,h,_,S){var M;if(E.renderPass!=="translucent")return;const{isRenderingToTexture:V}=S,W=h.paint.get("circle-opacity"),X=h.paint.get("circle-stroke-width"),re=h.paint.get("circle-stroke-opacity"),ie=!h.layout.get("circle-sort-key").isConstant();if(W.constantOr(1)===0&&(X.constantOr(1)===0||re.constantOr(1)===0))return;const he=E.context,ge=he.gl,we=E.transform,Le=E.getDepthModeForSublayer(0,Jn.ReadOnly),He=kr.disabled,Xe=E.colorModeForRenderPass(),Ze=[],et=we.getCircleRadiusCorrection();for(const lt of _){const Je=u.getTile(lt),Ke=Je.getBucket(h);if(!Ke)continue;const ot=h.paint.get("circle-translate"),tt=h.paint.get("circle-translate-anchor"),wt=o.aL(we,Je,ot,tt),Rt=Ke.programConfigurations.get(h.id),Vt=E.useProgram("circle",Rt),Qt=Ke.layoutVertexBuffer,Xt=Ke.indexBuffer,Tn=(M=E.style.map.terrain)===null||M===void 0?void 0:M.getTerrainData(lt),fn={programConfiguration:Rt,program:Vt,layoutVertexBuffer:Qt,indexBuffer:Xt,uniformValues:k1(E,Je,h,wt,et),terrainData:Tn,projectionData:we.getProjectionData({overscaledTileID:lt,applyGlobeMatrix:!V,applyTerrainMatrix:!0})};if(ie){const Wt=Ke.segments.get();for(const gn of Wt)Ze.push({segments:new o.aV([gn]),sortKey:gn.sortKey,state:fn})}else Ze.push({segments:Ke.segments,sortKey:0,state:fn})}ie&&Ze.sort(((lt,Je)=>lt.sortKey-Je.sortKey));for(const lt of Ze){const{programConfiguration:Je,program:Ke,layoutVertexBuffer:ot,indexBuffer:tt,uniformValues:wt,terrainData:Rt,projectionData:Vt}=lt.state;Ke.draw(he,ge.TRIANGLES,Le,He,Xe,Cr.backCCW,wt,Rt,Vt,h.id,ot,tt,lt.segments,h.paint,E.transform.zoom,Je)}},heatmap:function(E,u,h,_,S){if(h.paint.get("heatmap-opacity")===0)return;const M=E.context,{isRenderingToTexture:V,isRenderingGlobe:W}=S;if(E.style.map.terrain){for(const X of _){const re=u.getTile(X);u.hasRenderableParent(X)||(E.renderPass==="offscreen"?Yc(E,re,h,X,W):E.renderPass==="translucent"&&ih(E,h,X,V,W))}M.viewport.set([0,0,E.width,E.height])}else E.renderPass==="offscreen"?(function(X,re,ie,he){const ge=X.context,we=ge.gl,Le=X.transform,He=kr.disabled,Xe=new Yr([we.ONE,we.ONE],o.bo.transparent,[!0,!0,!0,!0]);(function(Ze,et,lt){const Je=Ze.gl;Ze.activeTexture.set(Je.TEXTURE1),Ze.viewport.set([0,0,et.width/4,et.height/4]);let Ke=lt.heatmapFbos.get(o.cd);Ke?(Je.bindTexture(Je.TEXTURE_2D,Ke.colorAttachment.get()),Ze.bindFramebuffer.set(Ke.framebuffer)):(Ke=Fu(Ze,et.width/4,et.height/4),lt.heatmapFbos.set(o.cd,Ke))})(ge,X,ie),ge.clear({color:o.bo.transparent});for(const Ze of he){if(re.hasRenderableParent(Ze))continue;const et=re.getTile(Ze),lt=et.getBucket(ie);if(!lt)continue;const Je=lt.programConfigurations.get(ie.id),Ke=X.useProgram("heatmap",Je),ot=Le.getProjectionData({overscaledTileID:Ze,applyGlobeMatrix:!0,applyTerrainMatrix:!1}),tt=Le.getCircleRadiusCorrection();Ke.draw(ge,we.TRIANGLES,Jn.disabled,He,Xe,Cr.backCCW,s0(et,Le.zoom,ie.paint.get("heatmap-intensity"),tt),null,ot,ie.id,lt.layoutVertexBuffer,lt.indexBuffer,lt.segments,ie.paint,Le.zoom,Je)}ge.viewport.set([0,0,X.width,X.height])})(E,u,h,_):E.renderPass==="translucent"&&(function(X,re){const ie=X.context,he=ie.gl;ie.setColorMode(X.colorModeForRenderPass());const ge=re.heatmapFbos.get(o.cd);ge&&(ie.activeTexture.set(he.TEXTURE0),he.bindTexture(he.TEXTURE_2D,ge.colorAttachment.get()),ie.activeTexture.set(he.TEXTURE1),ah(ie,re).bind(he.LINEAR,he.CLAMP_TO_EDGE),X.useProgram("heatmapTexture").draw(ie,he.TRIANGLES,Jn.disabled,kr.disabled,X.colorModeForRenderPass(),Cr.disabled,Iu(X,re,0,1),null,null,re.id,X.viewportBuffer,X.quadTriangleIndexBuffer,X.viewportSegments,re.paint,X.transform.zoom))})(E,h)},line:function(E,u,h,_,S){var M;if(E.renderPass!=="translucent")return;const{isRenderingToTexture:V}=S,W=h.paint.get("line-opacity"),X=h.paint.get("line-width");if(W.constantOr(1)===0||X.constantOr(1)===0)return;const re=E.getDepthModeForSublayer(0,Jn.ReadOnly),ie=E.colorModeForRenderPass(),he=h.paint.get("line-dasharray"),ge=he.constantOr(1),we=h.paint.get("line-pattern"),Le=we.constantOr(1),He=h.paint.get("line-gradient"),Xe=h.getCrossfadeParameters();let Ze;Ze=Le?"linePattern":ge&&He?"lineGradientSDF":ge?"lineSDF":He?"lineGradient":"line";const et=E.context,lt=et.gl,Je=E.transform;let Ke=!0;for(const ot of _){const tt=u.getTile(ot);if(Le&&!tt.patternsLoaded())continue;const wt=tt.getBucket(h);if(!wt)continue;const Rt=wt.programConfigurations.get(h.id),Vt=E.context.program.get(),Qt=E.useProgram(Ze,Rt),Xt=Ke||Qt.program!==Vt,Tn=(M=E.style.map.terrain)===null||M===void 0?void 0:M.getTerrainData(ot),fn=we.constantOr(null),Wt=he?.constantOr(null);if(fn&&tt.imageAtlas){const Xr=tt.imageAtlas,Yi=Xr.patternPositions[fn.to.toString()],Li=Xr.patternPositions[fn.from.toString()];Yi&&Li&&Rt.setConstantPatternPositions(Yi,Li)}else if(Wt){const Xr=h.layout.get("line-cap").constantOr(null)==="round",Yi=E.lineAtlas.getDash(Wt.to,Xr),Li=E.lineAtlas.getDash(Wt.from,Xr);Rt.setConstantDashPositions(Yi,Li)}const gn=Je.getProjectionData({overscaledTileID:ot,applyGlobeMatrix:!V,applyTerrainMatrix:!0}),Mn=Je.getPixelScale();let ir;Le?(ir=Fc(E,tt,h,Mn,Xe),hb(et,lt,tt,Rt,Xe)):ge&&He?(ir=l0(E,tt,h,Mn,Xe,wt.lineClipsArray.length),pl(E,u,et,lt,h,wt,ot,Rt,Xe)):ge?(ir=ts(E,tt,h,Mn,Xe),A1(E,et,lt,Rt,Xt,Xe)):He?(ir=$1(E,tt,h,Mn,wt.lineClipsArray.length),zi(E,u,et,lt,h,wt,ot)):ir=Qf(E,tt,h,Mn);const jr=E.stencilModeForClipping(ot);Qt.draw(et,lt.TRIANGLES,re,jr,ie,Cr.disabled,ir,Tn,gn,h.id,wt.layoutVertexBuffer,wt.indexBuffer,wt.segments,h.paint,E.transform.zoom,Rt,wt.layoutVertexBuffer2),Ke=!1}},fill:function(E,u,h,_,S){const M=h.paint.get("fill-color"),V=h.paint.get("fill-opacity");if(V.constantOr(1)===0)return;const{isRenderingToTexture:W}=S,X=E.colorModeForRenderPass(),re=h.paint.get("fill-pattern"),ie=E.opaquePassEnabledForLayer()&&!re.constantOr(1)&&M.constantOr(o.bo.transparent).a===1&&V.constantOr(0)===1?"opaque":"translucent";if(E.renderPass===ie){const he=E.getDepthModeForSublayer(1,E.renderPass==="opaque"?Jn.ReadWrite:Jn.ReadOnly);oh(E,u,h,_,he,X,!1,W)}if(E.renderPass==="translucent"&&h.paint.get("fill-antialias")){const he=E.getDepthModeForSublayer(h.getPaintProperty("fill-outline-color")?2:0,Jn.ReadOnly);oh(E,u,h,_,he,X,!0,W)}},fillExtrusion:function(E,u,h,_,S){const M=h.paint.get("fill-extrusion-opacity");if(M===0)return;const{isRenderingToTexture:V}=S;if(E.renderPass==="translucent"){const W=new Jn(E.context.gl.LEQUAL,Jn.ReadWrite,E.depthRangeFor3D);if(M!==1||h.paint.get("fill-extrusion-pattern").constantOr(1))Oe(E,u,h,_,W,kr.disabled,Yr.disabled,V),Oe(E,u,h,_,W,E.stencilModeFor3D(),E.colorModeForRenderPass(),V);else{const X=E.colorModeForRenderPass();Oe(E,u,h,_,W,kr.disabled,X,V)}}},hillshade:function(E,u,h,_,S){if(E.renderPass!=="offscreen"&&E.renderPass!=="translucent")return;const{isRenderingToTexture:M}=S,V=E.context,W=E.style.projection.useSubdivision,X=E.getDepthModeForSublayer(0,Jn.ReadOnly),re=E.colorModeForRenderPass();if(E.renderPass==="offscreen")(function(ie,he,ge,we,Le,He,Xe){const Ze=ie.context,et=Ze.gl,lt=we.paint.get("resampling")==="nearest"?et.NEAREST:et.LINEAR;for(const Je of ge){const Ke=he.getTile(Je),ot=Ke.dem;if(!ot?.data||!Ke.needsHillshadePrepare)continue;const tt=ot.dim,wt=ot.stride,Rt=ot.getPixels();if(Ze.activeTexture.set(et.TEXTURE1),Ze.pixelStoreUnpackPremultiplyAlpha.set(!1),Ke.demTexture||(Ke.demTexture=ie.getTileTexture(wt)),Ke.demTexture){const Qt=Ke.demTexture;Qt.update(Rt,{premultiply:!1}),Qt.bind(et.NEAREST,et.CLAMP_TO_EDGE)}else Ke.demTexture=new o.T(Ze,Rt,et.RGBA,{premultiply:!1}),Ke.demTexture.bind(et.NEAREST,et.CLAMP_TO_EDGE);Ze.activeTexture.set(et.TEXTURE0);let Vt=Ke.fbo;if(!Vt){const Qt=new o.T(Ze,{width:tt,height:tt,data:null},et.RGBA);Qt.bind(lt,et.CLAMP_TO_EDGE),Vt=Ke.fbo=Ze.createFramebuffer(tt,tt,!0,!1),Vt.colorAttachment.set(Qt.texture)}Ze.bindFramebuffer.set(Vt.framebuffer),Ze.viewport.set([0,0,tt,tt]),ie.useProgram("hillshadePrepare").draw(Ze,et.TRIANGLES,Le,He,Xe,Cr.disabled,Ws(Ke.tileID,ot),null,null,we.id,ie.rasterBoundsBuffer,ie.quadTriangleIndexBuffer,ie.rasterBoundsSegments),Ke.needsHillshadePrepare=!1}})(E,u,_,h,X,kr.disabled,re),V.viewport.set([0,0,E.width,E.height]);else if(E.renderPass==="translucent")if(W){const[ie,he,ge]=E.stencilConfigForOverlapTwoPass(_);Wl(E,u,h,ge,ie,X,re,!1,M),Wl(E,u,h,ge,he,X,re,!0,M)}else{const[ie,he]=E.getStencilConfigForOverlapAndUpdateStencilID(_);Wl(E,u,h,he,ie,X,re,!1,M)}},colorRelief:function(E,u,h,_,S){if(E.renderPass!=="translucent"||!_.length)return;const{isRenderingToTexture:M}=S,V=E.style.projection.useSubdivision,W=E.getDepthModeForSublayer(0,Jn.ReadOnly),X=E.colorModeForRenderPass();if(V){const[re,ie,he]=E.stencilConfigForOverlapTwoPass(_);Ka(E,u,h,he,re,W,X,!1,M),Ka(E,u,h,he,ie,W,X,!0,M)}else{const[re,ie]=E.getStencilConfigForOverlapAndUpdateStencilID(_);Ka(E,u,h,ie,re,W,X,!1,M)}},raster:function(E,u,h,_,S){if(E.renderPass!=="translucent"||h.paint.get("raster-opacity")===0||!_.length)return;const{isRenderingToTexture:M}=S,V=u.getSource(),W=E.style.projection.useSubdivision;if(V instanceof _t)Ud(E,u,h,_,null,!1,!1,V.tileCoords,V.flippedWindingOrder,M);else if(W){const[X,re,ie]=E.stencilConfigForOverlapTwoPass(_);Ud(E,u,h,ie,X,!1,!0,fr,!1,M),Ud(E,u,h,ie,re,!0,!0,fr,!1,M)}else{const[X,re]=E.getStencilConfigForOverlapAndUpdateStencilID(_);Ud(E,u,h,re,X,!1,!0,fr,!1,M)}},background:function(E,u,h,_,S){var M;const V=h.paint.get("background-color"),W=h.paint.get("background-opacity");if(W===0)return;const{isRenderingToTexture:X}=S,re=E.context,ie=re.gl,he=E.style.projection,ge=E.transform,we=ge.tileSize,Le=h.paint.get("background-pattern");if(E.isPatternMissing(Le))return;const He=!Le&&V.a===1&&W===1&&E.opaquePassEnabledForLayer()?"opaque":"translucent";if(E.renderPass!==He)return;const Xe=kr.disabled,Ze=E.getDepthModeForSublayer(0,He==="opaque"?Jn.ReadWrite:Jn.ReadOnly),et=E.colorModeForRenderPass(),lt=E.useProgram(Le?"backgroundPattern":"background"),Je=_||Sc(ge,{tileSize:we,terrain:E.style.map.terrain});Le&&(re.activeTexture.set(ie.TEXTURE0),E.imageManager.bind(E.context));const Ke=h.getCrossfadeParameters();for(const ot of Je){const tt=ge.getProjectionData({overscaledTileID:ot,applyGlobeMatrix:!X,applyTerrainMatrix:!0}),wt=Le?Nt(W,E,Le,{tileID:ot,tileSize:we},Ke):Ht(W,V),Rt=(M=E.style.map.terrain)===null||M===void 0?void 0:M.getTerrainData(ot),Vt=he.getMeshFromTileID(re,ot.canonical,!1,!0,"raster");lt.draw(re,ie.TRIANGLES,Ze,Xe,et,Cr.backCCW,wt,Rt,tt,h.id,Vt.vertexBuffer,Vt.indexBuffer,Vt.segments)}},sky:function(E,u){const h=E.context,_=h.gl,S=((ie,he,ge)=>{const we=Math.cos(he.rollInRadians),Le=Math.sin(he.rollInRadians),He=$r(he),Xe=he.getProjectionData({overscaledTileID:null,applyGlobeMatrix:!0,applyTerrainMatrix:!0}).projectionTransition;return{u_sky_color:ie.properties.get("sky-color"),u_horizon_color:ie.properties.get("horizon-color"),u_horizon:[(he.width/2-He*Le)*ge,(he.height/2+He*we)*ge],u_horizon_normal:[-Le,we],u_sky_horizon_blend:ie.properties.get("sky-horizon-blend")*he.height/2*ge,u_sky_blend:Xe}})(u,E.style.map.transform,E.pixelRatio),M=new Jn(_.LEQUAL,Jn.ReadWrite,[0,1]),V=kr.disabled,W=E.colorModeForRenderPass(),X=E.useProgram("sky"),re=x0(h,u);X.draw(h,_.TRIANGLES,M,V,W,Cr.disabled,S,null,void 0,"sky",re.vertexBuffer,re.indexBuffer,re.segments)},atmosphere:function(E,u,h){const _=E.context,S=_.gl,M=E.useProgram("atmosphere"),V=new Jn(S.LEQUAL,Jn.ReadOnly,[0,1]),W=E.transform,X=(function(Xe,Ze){const et=Xe.properties.get("position"),lt=[-et.x,-et.y,-et.z],Je=o.ap(new Float64Array(16));return Xe.properties.get("anchor")==="map"&&(o.be(Je,Je,Ze.rollInRadians),o.bf(Je,Je,-Ze.pitchInRadians),o.be(Je,Je,Ze.bearingInRadians),o.bf(Je,Je,Ze.center.lat*Math.PI/180),o.bI(Je,Je,-Ze.center.lng*Math.PI/180)),o.cg(lt,lt,Je),lt})(h,E.transform),re=W.getProjectionData({overscaledTileID:null,applyGlobeMatrix:!0,applyTerrainMatrix:!0}),ie=u.properties.get("atmosphere-blend")*re.projectionTransition;if(ie===0)return;const he=Za(W.worldSize,W.center.lat),ge=W.inverseProjectionMatrix,we=new Float64Array(4);we[3]=1,o.aE(we,we,W.modelViewProjectionMatrix),we[0]/=we[3],we[1]/=we[3],we[2]/=we[3],we[3]=1,o.aE(we,we,ge),we[0]/=we[3],we[1]/=we[3],we[2]/=we[3],we[3]=1;const Le=((Xe,Ze,et,lt,Je)=>({u_sun_pos:Xe,u_atmosphere_blend:Ze,u_globe_position:et,u_globe_radius:lt,u_inv_proj_matrix:Je}))(X,ie,[we[0],we[1],we[2]],he,ge),He=x0(_,u);M.draw(_,S.TRIANGLES,V,kr.disabled,Yr.alphaBlended,Cr.disabled,Le,null,null,"atmosphere",He.vertexBuffer,He.indexBuffer,He.segments)},custom:function(E,u,h,_){const{isRenderingGlobe:S}=_,M=E.context,V=h.implementation,W=E.style.projection,X=E.transform,re=X.getProjectionDataForCustomLayer(S),ie={farZ:X.farZ,nearZ:X.nearZ,fov:X.fov*Math.PI/180,modelViewProjectionMatrix:X.modelViewProjectionMatrix,projectionMatrix:X.projectionMatrix,shaderData:{variantName:W.shaderVariantName,vertexShaderPrelude:`const float PI = 3.141592653589793;
821uniform mat4 u_projection_matrix;
822${W.shaderPreludeCode.vertexSource}`,define:W.shaderDefine},defaultProjectionData:re},he=V.renderingMode?V.renderingMode:"2d";if(E.renderPass==="offscreen"){const ge=V.prerender;ge&&(E.setCustomLayerDefaults(),M.setColorMode(E.colorModeForRenderPass()),ge.call(V,M.gl,ie),M.setDirty(),E.setBaseState())}else if(E.renderPass==="translucent"){E.setCustomLayerDefaults(),M.setColorMode(E.colorModeForRenderPass()),M.setStencilMode(kr.disabled);const ge=he==="3d"?E.getDepthModeFor3D():E.getDepthModeForSublayer(0,Jn.ReadOnly);M.setDepthMode(ge),V.render(M.gl,ie),M.setDirty(),E.setBaseState(),M.bindFramebuffer.set(null)}},debug:function(E,u,h){for(const _ of h)R1(E,u,_)},debugPadding:function(E){const u=E.transform.padding;v0(E,E.transform.height-(u.top||0),3,D1),v0(E,u.bottom||0,3,zu),_0(E,u.left||0,3,L1),_0(E,E.transform.width-(u.right||0),3,O1);const h=E.transform.centerPoint;(function(_,S,M,V){ns(_,S-1,M-10,2,20,V),ns(_,S-10,M-1,20,2,V)})(E,h.x,E.transform.height-h.y,Nu)},terrainDepth:function(E,u){const h=E.context,_=h.gl,S=E.transform,M=Yr.unblended,V=new Jn(_.LEQUAL,Jn.ReadWrite,[0,1]),W=u.tileManager.getRenderableTiles(),X=E.useProgram("terrainDepth");h.bindFramebuffer.set(u.getFramebuffer("depth").framebuffer),h.viewport.set([0,0,E.width/devicePixelRatio,E.height/devicePixelRatio]),h.clear({color:o.bo.transparent,depth:1});for(const re of W){const ie=u.getTerrainMesh(re.tileID),he=u.getTerrainData(re.tileID),ge=S.getProjectionData({overscaledTileID:re.tileID,applyTerrainMatrix:!1,applyGlobeMatrix:!0}),we={u_ele_delta:u.getMeshFrameDelta(S.zoom)};X.draw(h,_.TRIANGLES,V,kr.disabled,M,Cr.backCCW,we,he,ge,"terrain",ie.vertexBuffer,ie.indexBuffer,ie.segments)}h.bindFramebuffer.set(null),h.viewport.set([0,0,E.width,E.height])},terrainCoords:function(E,u){const h=E.context,_=h.gl,S=E.transform,M=Yr.unblended,V=new Jn(_.LEQUAL,Jn.ReadWrite,[0,1]),W=u.getCoordsTexture(),X=u.tileManager.getRenderableTiles(),re=E.useProgram("terrainCoords");h.bindFramebuffer.set(u.getFramebuffer("coords").framebuffer),h.viewport.set([0,0,E.width/devicePixelRatio,E.height/devicePixelRatio]),h.clear({color:o.bo.transparent,depth:1}),u.coordsIndex=[];for(const ie of X){const he=u.getTerrainMesh(ie.tileID),ge=u.getTerrainData(ie.tileID);h.activeTexture.set(_.TEXTURE0),_.bindTexture(_.TEXTURE_2D,W.texture);const we={u_terrain_coords_id:(255-u.coordsIndex.length)/255,u_texture:0,u_ele_delta:u.getMeshFrameDelta(S.zoom)},Le=S.getProjectionData({overscaledTileID:ie.tileID,applyTerrainMatrix:!1,applyGlobeMatrix:!0});re.draw(h,_.TRIANGLES,V,kr.disabled,M,Cr.backCCW,we,ge,Le,"terrain",he.vertexBuffer,he.indexBuffer,he.segments),u.coordsIndex.push(ie.tileID.key)}h.bindFramebuffer.set(null),h.viewport.set([0,0,E.width,E.height])}};class sh{constructor(u,h){this.drawFunctions=B1,this.context=new da(u),this.transform=h,this._tileTextures={},this.terrainFacilitator={depthDirty:!0,coordsDirty:!1,matrix:o.ap(new Float64Array(16)),renderTime:0},this.setup(),this.numSublayers=Ia.maxOverzooming+Ia.maxUnderzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new Eo}resize(u,h,_){if(this.width=Math.floor(u*_),this.height=Math.floor(h*_),this.pixelRatio=_,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(const S of this.style._order)this.style._layers[S].resize()}setup(){const u=this.context,h=new o.aU;h.emplaceBack(0,0),h.emplaceBack(o.a6,0),h.emplaceBack(0,o.a6),h.emplaceBack(o.a6,o.a6),this.tileExtentBuffer=u.createVertexBuffer(h,Mu.members),this.tileExtentSegments=o.aV.simpleSegment(0,0,4,2);const _=new o.aU;_.emplaceBack(0,0),_.emplaceBack(o.a6,0),_.emplaceBack(0,o.a6),_.emplaceBack(o.a6,o.a6),this.debugBuffer=u.createVertexBuffer(_,Mu.members),this.debugSegments=o.aV.simpleSegment(0,0,4,5);const S=new o.ch;S.emplaceBack(0,0,0,0),S.emplaceBack(o.a6,0,o.a6,0),S.emplaceBack(0,o.a6,0,o.a6),S.emplaceBack(o.a6,o.a6,o.a6,o.a6),this.rasterBoundsBuffer=u.createVertexBuffer(S,Rc.members),this.rasterBoundsSegments=o.aV.simpleSegment(0,0,4,2);const M=new o.aU;M.emplaceBack(0,0),M.emplaceBack(o.a6,0),M.emplaceBack(0,o.a6),M.emplaceBack(o.a6,o.a6),this.rasterBoundsBufferPosOnly=u.createVertexBuffer(M,Mu.members),this.rasterBoundsSegmentsPosOnly=o.aV.simpleSegment(0,0,4,5);const V=new o.aU;V.emplaceBack(0,0),V.emplaceBack(1,0),V.emplaceBack(0,1),V.emplaceBack(1,1),this.viewportBuffer=u.createVertexBuffer(V,Mu.members),this.viewportSegments=o.aV.simpleSegment(0,0,4,2);const W=new o.ci;W.emplaceBack(0),W.emplaceBack(1),W.emplaceBack(3),W.emplaceBack(2),W.emplaceBack(0),this.tileBorderIndexBuffer=u.createIndexBuffer(W);const X=new o.aW;X.emplaceBack(1,0,2),X.emplaceBack(1,2,3),this.quadTriangleIndexBuffer=u.createIndexBuffer(X);const re=this.context.gl;this.stencilClearMode=new kr({func:re.ALWAYS,mask:0},0,255,re.ZERO,re.ZERO,re.ZERO),this.tileExtentMesh=new Gr(this.tileExtentBuffer,this.quadTriangleIndexBuffer,this.tileExtentSegments)}clearStencil(){const u=this.context,h=u.gl;this.nextStencilID=1,this.currentStencilSource=void 0;const _=o.O();o.c7(_,0,this.width,this.height,0,0,1),o.S(_,_,[h.drawingBufferWidth,h.drawingBufferHeight,0]);const S={mainMatrix:_,tileMercatorCoords:[0,0,1,1],clippingPlane:[0,0,0,0],projectionTransition:0,fallbackMatrix:_};this.useProgram("clippingMask",null,!0).draw(u,h.TRIANGLES,Jn.disabled,this.stencilClearMode,Yr.disabled,Cr.disabled,null,null,S,"$clipping",this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments)}_renderTileClippingMasks(u,h,_){if(this.currentStencilSource===u.source||!u.isTileClipped()||!h?.length)return;this.currentStencilSource=u.source,this.nextStencilID+h.length>256&&this.clearStencil();const S=this.context;S.setColorMode(Yr.disabled),S.setDepthMode(Jn.disabled);const M={};for(const V of h)M[V.key]=this.nextStencilID++;this._renderTileMasks(M,h,_,!0),this._renderTileMasks(M,h,_,!1),this._tileClippingMaskIDs=M}_renderTileMasks(u,h,_,S){var M;const V=this.context,W=V.gl,X=this.style.projection,re=this.transform,ie=this.useProgram("clippingMask");for(const he of h){const ge=u[he.key],we=(M=this.style.map.terrain)===null||M===void 0?void 0:M.getTerrainData(he),Le=X.getMeshFromTileID(this.context,he.canonical,S,!0,"stencil"),He=re.getProjectionData({overscaledTileID:he,applyGlobeMatrix:!_,applyTerrainMatrix:!0});ie.draw(V,W.TRIANGLES,Jn.disabled,new kr({func:W.ALWAYS,mask:0},ge,255,W.KEEP,W.KEEP,W.REPLACE),Yr.disabled,_?Cr.disabled:Cr.backCCW,null,we,He,"$clipping",Le.vertexBuffer,Le.indexBuffer,Le.segments)}}_renderTilesDepthBuffer(){var u;const h=this.context,_=h.gl,S=this.style.projection,M=this.transform,V=this.useProgram("depth"),W=this.getDepthModeFor3D(),X=Sc(M,{tileSize:M.tileSize});for(const re of X){const ie=(u=this.style.map.terrain)===null||u===void 0?void 0:u.getTerrainData(re),he=S.getMeshFromTileID(this.context,re.canonical,!0,!0,"raster"),ge=M.getProjectionData({overscaledTileID:re,applyGlobeMatrix:!0,applyTerrainMatrix:!0});V.draw(h,_.TRIANGLES,W,kr.disabled,Yr.disabled,Cr.backCCW,null,ie,ge,"$clipping",he.vertexBuffer,he.indexBuffer,he.segments)}}stencilModeFor3D(){this.currentStencilSource=void 0,this.nextStencilID+1>256&&this.clearStencil();const u=this.nextStencilID++,h=this.context.gl;return new kr({func:h.NOTEQUAL,mask:255},u,255,h.KEEP,h.KEEP,h.REPLACE)}stencilModeForClipping(u){const h=this.context.gl;return new kr({func:h.EQUAL,mask:255},this._tileClippingMaskIDs[u.key],0,h.KEEP,h.KEEP,h.REPLACE)}getStencilConfigForOverlapAndUpdateStencilID(u){const h=this.context.gl,_=u.sort(((V,W)=>W.overscaledZ-V.overscaledZ)),S=_[_.length-1].overscaledZ,M=_[0].overscaledZ-S+1;if(M>1){this.currentStencilSource=void 0,this.nextStencilID+M>256&&this.clearStencil();const V={};for(let W=0;W<M;W++)V[W+S]=new kr({func:h.GEQUAL,mask:255},W+this.nextStencilID,255,h.KEEP,h.KEEP,h.REPLACE);return this.nextStencilID+=M,[V,_]}return[{[S]:kr.disabled},_]}stencilConfigForOverlapTwoPass(u){const h=this.context.gl,_=u.sort(((V,W)=>W.overscaledZ-V.overscaledZ)),S=_[_.length-1].overscaledZ,M=_[0].overscaledZ-S+1;if(this.clearStencil(),M>1){const V={},W={};for(let X=0;X<M;X++)V[X+S]=new kr({func:h.GREATER,mask:255},M+1+X,255,h.KEEP,h.KEEP,h.REPLACE),W[X+S]=new kr({func:h.GREATER,mask:255},1+X,255,h.KEEP,h.KEEP,h.REPLACE);return this.nextStencilID=2*M+1,[V,W,_]}return this.nextStencilID=3,[{[S]:new kr({func:h.GREATER,mask:255},2,255,h.KEEP,h.KEEP,h.REPLACE)},{[S]:new kr({func:h.GREATER,mask:255},1,255,h.KEEP,h.KEEP,h.REPLACE)},_]}colorModeForRenderPass(){const u=this.context.gl;return this._showOverdrawInspector?new Yr([u.CONSTANT_COLOR,u.ONE],new o.bo(.125,.125,.125,0),[!0,!0,!0,!0]):this.renderPass==="opaque"?Yr.unblended:Yr.alphaBlended}getDepthModeForSublayer(u,h,_){if(!this.opaquePassEnabledForLayer())return Jn.disabled;const S=1-((1+this.currentLayer)*this.numSublayers+u)*this.depthEpsilon;return new Jn(_||this.context.gl.LEQUAL,h,[S,S])}getDepthModeFor3D(){return new Jn(this.context.gl.LEQUAL,Jn.ReadWrite,this.depthRangeFor3D)}opaquePassEnabledForLayer(){return this.currentLayer<this.opaquePassCutoff}render(u,h){var _,S,M;this.style=u,this.options=h,this.lineAtlas=u.lineAtlas,this.imageManager=u.imageManager,this.glyphManager=u.glyphManager,this.symbolFadeChange=u.placement.symbolFadeChange(A()),this.imageManager.beginFrame();const V=this.style._order,W=this.style.tileManagers,X={},re={},ie={},he={isRenderingToTexture:!1,isRenderingGlobe:((_=u.projection)===null||_===void 0?void 0:_.transitionState)>0};for(const we in W){const Le=W[we];Le.used&&Le.prepare(this.context),X[we]=Le.getVisibleCoordinates(!1),re[we]=X[we].slice().reverse(),ie[we]=Le.getVisibleCoordinates(!0).reverse()}this.opaquePassCutoff=1/0;for(let we=0;we<V.length;we++)if(this.style._layers[V[we]].is3D()){this.opaquePassCutoff=we;break}this.maybeDrawDepth(!1),this.renderToTexture&&(this.renderToTexture.prepareForRender(this.style,this.transform.zoom),this.opaquePassCutoff=0),this.renderPass="offscreen";for(const we of V){const Le=this.style._layers[we];if(!Le.hasOffscreenPass()||Le.isHidden(this.transform.zoom))continue;const He=re[Le.source];(Le.type==="custom"||He.length)&&this.renderLayer(this,W[Le.source],Le,He,he)}if((S=this.style.projection)===null||S===void 0||S.updateGPUdependent({context:this.context,useProgram:we=>this.useProgram(we)}),this.context.viewport.set([0,0,this.width,this.height]),this.context.bindFramebuffer.set(null),this.context.clear({color:h.showOverdrawInspector?o.bo.black:o.bo.transparent,depth:1}),this.clearStencil(),this.style.sky&&this.drawFunctions.sky(this,this.style.sky),this._showOverdrawInspector=h.showOverdrawInspector,this.depthRangeFor3D=[0,1-(u._order.length+2)*this.numSublayers*this.depthEpsilon],!this.renderToTexture)for(this.renderPass="opaque",this.currentLayer=V.length-1;this.currentLayer>=0;this.currentLayer--){const we=this.style._layers[V[this.currentLayer]],Le=W[we.source],He=X[we.source];this._renderTileClippingMasks(we,He,!1),this.renderLayer(this,Le,we,He,he)}this.renderPass="translucent";let ge=!1;for(this.currentLayer=0;this.currentLayer<V.length;this.currentLayer++){const we=this.style._layers[V[this.currentLayer]],Le=W[we.source];if(!((M=this.renderToTexture)===null||M===void 0)&&M.renderLayer(we,he))continue;this.opaquePassEnabledForLayer()||ge||(ge=!0,he.isRenderingGlobe&&!this.style.map.terrain&&this._renderTilesDepthBuffer());const He=(we.type==="symbol"?ie:re)[we.source];this._renderTileClippingMasks(we,X[we.source],!!this.renderToTexture),this.renderLayer(this,Le,we,He,he)}if(he.isRenderingGlobe&&this.drawFunctions.atmosphere(this,this.style.sky,this.style.light),this.options.showTileBoundaries){const we=(function(Le,He){let Xe=null;const Ze=Object.values(Le._layers).flatMap((Ke=>Ke.source&&!Ke.isHidden(He)?[Le.tileManagers[Ke.source]]:[])),et=Ze.filter((Ke=>Ke.getSource().type==="vector")),lt=Ze.filter((Ke=>Ke.getSource().type!=="vector")),Je=Ke=>{(!Xe||Xe.getSource().maxzoom<Ke.getSource().maxzoom)&&(Xe=Ke)};for(const Ke of et)Je(Ke);if(!Xe)for(const Ke of lt)Je(Ke);return Xe})(this.style,this.transform.zoom);we&&this.drawFunctions.debug(this,we,we.getVisibleCoordinates())}this.options.showPadding&&this.drawFunctions.debugPadding(this),this.context.setDefault()}maybeDrawDepth(u){var h,_;if(!(!((_=(h=this.style)===null||h===void 0?void 0:h.map)===null||_===void 0)&&_.terrain))return;const S=this.terrainFacilitator.matrix,M=this.transform.modelViewProjectionMatrix;let V=this.terrainFacilitator.depthDirty;V||(V=u?!o.cj(S,M):!o.ck(S,M)),V||(V=this.style.map.terrain.tileManager.anyTilesAfterTime(this.terrainFacilitator.renderTime)),V&&(o.cl(S,M),this.terrainFacilitator.renderTime=Date.now(),this.terrainFacilitator.depthDirty=!1,this.terrainFacilitator.coordsDirty=!0,this.drawFunctions.terrainDepth(this,this.style.map.terrain))}maybeDrawCoords(){var u,h;!((h=(u=this.style)===null||u===void 0?void 0:u.map)===null||h===void 0)&&h.terrain&&this.terrainFacilitator.coordsDirty&&(this.terrainFacilitator.coordsDirty=!1,this.drawFunctions.terrainCoords(this,this.style.map.terrain))}renderLayer(u,h,_,S,M){if(_.isHidden(this.transform.zoom)||_.type!=="background"&&_.type!=="custom"&&!(S||[]).length)return;this.id=_.id;const V=this.drawFunctions;o.aQ(_)?V.symbol(u,h,_,S,this.style.placement.variableOffsets,M):o.cm(_)?V.circle(u,h,_,S,M):o.cn(_)?V.heatmap(u,h,_,S,M):o.co(_)?V.line(u,h,_,S,M):o.cp(_)?V.fill(u,h,_,S,M):o.cq(_)?V.fillExtrusion(u,h,_,S,M):o.cr(_)?V.hillshade(u,h,_,S,M):o.cs(_)?V.colorRelief(u,h,_,S,M):o.bU(_)?V.raster(u,h,_,S,M):o.ct(_)?V.background(u,h,_,S,M):o.cu(_)&&V.custom(u,h,_,M)}saveTileTexture(u){const h=this._tileTextures[u.size[0]];h?h.length<sh.MAX_TEXTURE_POOL_SIZE_PER_BUCKET?h.push(u):u.destroy():this._tileTextures[u.size[0]]=[u]}getTileTexture(u){const h=this._tileTextures[u];return h&&h.length>0?h.pop():null}isPatternMissing(u){if(!u)return!1;if(!u.from||!u.to)return!0;const h=this.imageManager.getPattern(u.from.toString()),_=this.imageManager.getPattern(u.to.toString());return!h||!_}useProgram(u,h,_=!1,S=[]){var M;this.cache||(this.cache={});const V=!!this.style.map.terrain,W=this.style.projection,X=_?ki.projectionMercator:W.shaderPreludeCode,re=_?ho:W.shaderDefine,ie=u+(h?h.cacheKey:"")+`/${_?Qo:W.shaderVariantName}`+(this._showOverdrawInspector?"/overdraw":"")+(V?"/terrain":"")+(S?`/${S.join("/")}`:"");return(M=this.cache)[ie]||(M[ie]=new r0(this.context,ki[u],h,rr[u],this._showOverdrawInspector,V,X,re,S)),this.cache[ie]}setCustomLayerDefaults(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()}setBaseState(){const u=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(u.FUNC_ADD)}initDebugOverlayCanvas(){this.debugOverlayCanvas==null&&(this.debugOverlayCanvas=document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new o.T(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))}destroy(){var u,h;if(this._tileTextures){for(const _ in this._tileTextures){const S=this._tileTextures[_];if(S)for(const M of S)M.destroy()}this._tileTextures={}}if(this.tileExtentBuffer&&this.tileExtentBuffer.destroy(),this.debugBuffer&&this.debugBuffer.destroy(),this.rasterBoundsBuffer&&this.rasterBoundsBuffer.destroy(),this.rasterBoundsBufferPosOnly&&this.rasterBoundsBufferPosOnly.destroy(),this.viewportBuffer&&this.viewportBuffer.destroy(),this.tileBorderIndexBuffer&&this.tileBorderIndexBuffer.destroy(),this.quadTriangleIndexBuffer&&this.quadTriangleIndexBuffer.destroy(),this.tileExtentMesh&&((u=this.tileExtentMesh.vertexBuffer)===null||u===void 0||u.destroy()),this.tileExtentMesh&&((h=this.tileExtentMesh.indexBuffer)===null||h===void 0||h.destroy()),this.debugOverlayTexture&&this.debugOverlayTexture.destroy(),this.cache){for(const _ in this.cache){const S=this.cache[_];S?.program&&this.context.gl.deleteProgram(S.program)}this.cache={}}this.context&&this.context.setDefault()}overLimit(){const{drawingBufferWidth:u,drawingBufferHeight:h}=this.context.gl;return this.width!==u||this.height!==h}}function Ys(E,u){let h,_=!1,S=null;const M=()=>{S=null,_&&(E(...h),S=setTimeout(M,u),_=!1)};return(...V)=>(_=!0,h=V,S||M(),S)}sh.MAX_TEXTURE_POOL_SIZE_PER_BUCKET=50;class lh{constructor(u){this._getCurrentHash=()=>{const h=window.location.hash.replace("#","");if(this._hashName){let _;const S=h.split("&").map((M=>M.split("=")));for(const M of S)M[0]===this._hashName&&(_=M);return(_&&_[1]||"").split("/")}return h.split("/")},this._onHashChange=()=>{const h=this._getCurrentHash();if(!this._isValidHash(h))return!1;const _=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(h[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+h[2],+h[1]],zoom:+h[0],bearing:_,pitch:+(h[4]||0)}),!0},this._updateHashUnthrottled=()=>{const h=window.location.href.replace(/(#.*)?$/,this.getHashString());window.history.replaceState(window.history.state,null,h)},this._removeHash=()=>{const h=this._getCurrentHash();if(h.length===0)return;const _=h.join("/");let S=_;S.split("&").length>0&&(S=S.split("&")[0]),this._hashName&&(S=`${this._hashName}=${_}`);let M=window.location.hash.replace(S,"");M.startsWith("#&")?M=M.slice(0,1)+M.slice(2):M==="#"&&(M="");let V=window.location.href.replace(/(#.+)?$/,M);V=V.replace("&&","&"),window.history.replaceState(window.history.state,null,V)},this._updateHash=Ys(this._updateHashUnthrottled,300),this._hashName=u&&encodeURIComponent(u)}addTo(u){return this._map=u,addEventListener("hashchange",this._onHashChange,!1),this._map.on("moveend",this._updateHash),this}remove(){return removeEventListener("hashchange",this._onHashChange,!1),this._map.off("moveend",this._updateHash),clearTimeout(this._updateHash()),this._removeHash(),delete this._map,this}getHashString(u){const h=this._map.getCenter(),_=Math.round(100*this._map.getZoom())/100,S=Math.ceil((_*Math.LN2+Math.log(512/360/.5))/Math.LN10),M=Math.pow(10,S),V=Math.round(h.lng*M)/M,W=Math.round(h.lat*M)/M,X=this._map.getBearing(),re=this._map.getPitch();let ie="";if(ie+=u?`/${V}/${W}/${_}`:`${_}/${W}/${V}`,(X||re)&&(ie+="/"+Math.round(10*X)/10),re&&(ie+=`/${Math.round(re)}`),this._hashName){const he=this._hashName;let ge=!1;const we=window.location.hash.slice(1).split("&").map((Le=>{const He=Le.split("=")[0];return He===he?(ge=!0,`${He}=${ie}`):Le})).filter((Le=>Le));return ge||we.push(`${he}=${ie}`),`#${we.join("&")}`}return`#${ie}`}_isValidHash(u){if(u.length<3||u.some(isNaN))return!1;try{new o.W(+u[2],+u[1])}catch{return!1}const h=+u[0],_=+(u[3]||0),S=+(u[4]||0);return h>=this._map.getMinZoom()&&h<=this._map.getMaxZoom()&&_>=-180&&_<=180&&S>=this._map.getMinPitch()&&S<=this._map.getMaxPitch()}}const Hd={linearity:.3,easing:o.cv(0,0,.3,1)},$s=o.e({deceleration:2500,maxSpeed:1400},Hd),Zs=o.e({deceleration:20,maxSpeed:1400},Hd),F1=o.e({deceleration:1e3,maxSpeed:360},Hd),La=o.e({deceleration:1e3,maxSpeed:90},Hd),pb=o.e({deceleration:1e3,maxSpeed:360},Hd);class mb{constructor(u){this._map=u,this.clear()}clear(){this._inertiaBuffer=[]}record(u){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:A(),settings:u})}_drainInertiaBuffer(){const u=this._inertiaBuffer,h=A();for(;u.length>0&&h-u[0].time>160;)u.shift()}_onMoveEnd(u){if(this._drainInertiaBuffer(),this._inertiaBuffer.length<2)return;const h={zoom:0,bearing:0,pitch:0,roll:0,pan:new o.P(0,0),pinchAround:void 0,around:void 0};for(const{settings:M}of this._inertiaBuffer)h.zoom+=M.zoomDelta||0,h.bearing+=M.bearingDelta||0,h.pitch+=M.pitchDelta||0,h.roll+=M.rollDelta||0,M.panDelta&&h.pan._add(M.panDelta),M.around&&(h.around=M.around),M.pinchAround&&(h.pinchAround=M.pinchAround);const _=this._inertiaBuffer[this._inertiaBuffer.length-1].time-this._inertiaBuffer[0].time,S={};if(h.pan.mag()){const M=ml(h.pan.mag(),_,o.e({},$s,u||{})),V=h.pan.mult(M.amount/h.pan.mag()),W=this._map.cameraHelper.handlePanInertia(V,this._map.transform);S.center=W.easingCenter,S.offset=W.easingOffset,go(S,M)}if(h.zoom){const M=ml(h.zoom,_,Zs);S.zoom=o.cw(this._map.transform.zoom+M.amount,this._map.getZoomSnap(),M.amount),go(S,M)}if(h.bearing){const M=ml(h.bearing,_,F1);S.bearing=this._map.transform.bearing+o.al(M.amount,-179,179),go(S,M)}if(h.pitch){const M=ml(h.pitch,_,La);S.pitch=this._map.transform.pitch+M.amount,go(S,M)}if(h.roll){const M=ml(h.roll,_,pb);S.roll=this._map.transform.roll+o.al(M.amount,-179,179),go(S,M)}if(S.zoom||S.bearing){const M=h.pinchAround===void 0?h.around:h.pinchAround;S.around=M?this._map.unproject(M):this._map.getCenter()}return this.clear(),o.e(S,{noMoveStart:!0})}}function go(E,u){(!E.duration||E.duration<u.duration)&&(E.duration=u.duration,E.easing=u.easing)}function ml(E,u,h){const{maxSpeed:_,linearity:S,deceleration:M}=h,V=o.al(E*S/(u/1e3),-_,_),W=Math.abs(V)/(M*S);return{easing:h.easing,duration:1e3*W,amount:V*(W/2)}}class rs extends o.n{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(u,h,_,S={}){_=_ instanceof MouseEvent?_:new MouseEvent(u,_);const M=I.mousePos(h.getCanvas(),_),V=h.unproject(M);super(u,o.e({point:M,lngLat:V,originalEvent:_},S)),this._defaultPrevented=!1,this.target=h}}class uh extends o.n{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(u,h,_){const S=u==="touchend"?_.changedTouches:_.touches,M=I.touchPos(h.getCanvasContainer(),S),V=M.map((X=>h.unproject(X))),W=M.reduce(((X,re,ie,he)=>X.add(re.div(he.length))),new o.P(0,0));super(u,{points:M,point:W,lngLats:V,lngLat:h.unproject(W),originalEvent:_}),this._defaultPrevented=!1}}class z1 extends o.n{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(u,h,_){super(u,{originalEvent:_}),this._defaultPrevented=!1}}class gb{constructor(u,h){this._map=u,this._clickTolerance=h.clickTolerance}reset(){delete this._mousedownPos}wheel(u){return this._firePreventable(new z1(u.type,this._map,u))}mousedown(u,h){return this._mousedownPos=h,this._firePreventable(new rs(u.type,this._map,u))}mouseup(u){this._map.fire(new rs(u.type,this._map,u))}click(u,h){this._mousedownPos&&this._mousedownPos.dist(h)>=this._clickTolerance||this._map.fire(new rs(u.type,this._map,u))}dblclick(u){return this._firePreventable(new rs(u.type,this._map,u))}mouseover(u){this._map.fire(new rs(u.type,this._map,u))}mouseout(u){this._map.fire(new rs(u.type,this._map,u))}touchstart(u){return this._firePreventable(new uh(u.type,this._map,u))}touchmove(u){this._map.fire(new uh(u.type,this._map,u))}touchend(u){this._map.fire(new uh(u.type,this._map,u))}touchcancel(u){this._map.fire(new uh(u.type,this._map,u))}_firePreventable(u){if(this._map.fire(u),u.defaultPrevented)return{}}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class w0{constructor(u){this._map=u}reset(){this._delayContextMenu=!1,this._ignoreContextMenu=!0,delete this._contextMenuEvent}mousemove(u){this._map.fire(new rs(u.type,this._map,u))}mousedown(){this._delayContextMenu=!0,this._ignoreContextMenu=!1}mouseup(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new rs("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)}contextmenu(u){this._delayContextMenu?this._contextMenuEvent=u:this._ignoreContextMenu||this._map.fire(new rs(u.type,this._map,u)),this._map.listens("contextmenu")&&u.preventDefault()}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class gl{constructor(u){this._map=u}get transform(){return this._map._requestedCameraState||this._map.transform}get center(){return{lng:this.transform.center.lng,lat:this.transform.center.lat}}get zoom(){return this.transform.zoom}get pitch(){return this.transform.pitch}get bearing(){return this.transform.bearing}unproject(u){return this.transform.screenPointToLocation(o.P.convert(u),this._map.terrain)}}class yl{constructor(u,h){this._map=u,this._tr=new gl(u),this._el=u.getCanvasContainer(),this._container=u.getContainer(),this._clickTolerance=h.clickTolerance||1,h.boxZoom&&typeof h.boxZoom=="object"&&(this._boxZoomEnd=h.boxZoom.boxZoomEnd)}isEnabled(){return!!this._enabled}isActive(){return!!this._active}enable(){this.isEnabled()||(this._enabled=!0)}disable(){this.isEnabled()&&(this._enabled=!1)}mousedown(u,h){this.isEnabled()&&u.shiftKey&&u.button===0&&(I.disableDrag(),this._startPos=this._lastPos=h,this._active=!0)}mousemoveWindow(u,h){if(!this._active)return;const _=h;if(this._lastPos.equals(_)||!this._box&&_.dist(this._startPos)<this._clickTolerance)return;const S=this._startPos;this._lastPos=_,this._box||(this._box=I.create("div","maplibregl-boxzoom",this._container),this._container.classList.add("maplibregl-crosshair"),this._fireEvent("boxzoomstart",u));const M=Math.min(S.x,_.x),V=Math.max(S.x,_.x),W=Math.min(S.y,_.y),X=Math.max(S.y,_.y);this._box.style.transform=`translate(${M}px,${W}px)`,this._box.style.width=V-M+"px",this._box.style.height=X-W+"px"}mouseupWindow(u,h){if(!this._active||u.button!==0)return;const _=this._startPos,S=h;if(this.reset(),I.suppressClick(),_.x!==S.x||_.y!==S.y)return this._map.fire(new o.n("boxzoomend",{originalEvent:u})),this._boxZoomEnd?void this._boxZoomEnd(this._map,_,S,u):{cameraAnimation:M=>M.fitScreenCoordinates(_,S,this._tr.bearing,{linear:!0})};this._fireEvent("boxzoomcancel",u)}keydown(u){this._active&&u.keyCode===27&&(this.reset(),this._fireEvent("boxzoomcancel",u))}reset(){this._active=!1,this._container.classList.remove("maplibregl-crosshair"),this._box&&(this._box.remove(),this._box=null),I.enableDrag(),delete this._startPos,delete this._lastPos}_fireEvent(u,h){return this._map.fire(new o.n(u,{originalEvent:h}))}}function bn(E,u){if(E.length!==u.length)throw new Error(`The number of touches and points are not equal - touches ${E.length}, points ${u.length}`);const h={};for(let _=0;_<E.length;_++)h[E[_].identifier]=u[_];return h}class em{constructor(u){this.reset(),this.numTouches=u.numTouches}reset(){delete this.centroid,delete this.startTime,delete this.touches,this.aborted=!1}touchstart(u,h,_){(this.centroid||_.length>this.numTouches)&&(this.aborted=!0),this.aborted||(this.startTime===void 0&&(this.startTime=u.timeStamp),_.length===this.numTouches&&(this.centroid=(function(S){const M=new o.P(0,0);for(const V of S)M._add(V);return M.div(S.length)})(h),this.touches=bn(_,h)))}touchmove(u,h,_){if(this.aborted||!this.centroid)return;const S=bn(_,h);for(const M in this.touches){const V=S[M];(!V||V.dist(this.touches[M])>30)&&(this.aborted=!0)}}touchend(u,h,_){if((!this.centroid||u.timeStamp-this.startTime>500)&&(this.aborted=!0),_.length===0){const S=!this.aborted&&this.centroid;if(this.reset(),S)return S}}}class Gl{constructor(u){this.singleTap=new em(u),this.numTaps=u.numTaps,this.reset()}reset(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()}touchstart(u,h,_){this.singleTap.touchstart(u,h,_)}touchmove(u,h,_){this.singleTap.touchmove(u,h,_)}touchend(u,h,_){const S=this.singleTap.touchend(u,h,_);if(S){const M=u.timeStamp-this.lastTime<500,V=!this.lastTap||this.lastTap.dist(S)<30;if(M&&V||this.reset(),this.count++,this.lastTime=u.timeStamp,this.lastTap=S,this.count===this.numTaps)return this.reset(),S}}}class ch{constructor(u){this._tr=new gl(u),this._zoomIn=new Gl({numTouches:1,numTaps:2}),this._zoomOut=new Gl({numTouches:2,numTaps:1}),this.reset()}reset(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()}touchstart(u,h,_){this._zoomIn.touchstart(u,h,_),this._zoomOut.touchstart(u,h,_)}touchmove(u,h,_){this._zoomIn.touchmove(u,h,_),this._zoomOut.touchmove(u,h,_)}touchend(u,h,_){const S=this._zoomIn.touchend(u,h,_),M=this._zoomOut.touchend(u,h,_),V=this._tr;return S?(this._active=!0,u.preventDefault(),setTimeout((()=>this.reset()),0),{cameraAnimation:W=>W.easeTo({duration:300,zoom:o.cw(V.zoom+1,W.getZoomSnap()),around:V.unproject(S)},{originalEvent:u})}):M?(this._active=!0,u.preventDefault(),setTimeout((()=>this.reset()),0),{cameraAnimation:W=>W.easeTo({duration:300,zoom:o.cw(V.zoom-1,W.getZoomSnap()),around:V.unproject(M)},{originalEvent:u})}):void 0}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class Yl{constructor(u){this._enabled=!!u.enable,this._moveStateManager=u.moveStateManager,this._clickTolerance=u.clickTolerance||1,this._moveFunction=u.move,this._activateOnStart=!!u.activateOnStart,u.assignEvents(this),this.reset()}reset(u){this._active=!1,this._moved=!1,delete this._lastPoint,this._moveStateManager.endMove(u)}_move(...u){const h=this._moveFunction(...u);if(h.bearingDelta||h.pitchDelta||h.rollDelta||h.around||h.panDelta)return this._active=!0,h}dragStart(u,h){this.isEnabled()&&!this._lastPoint&&this._moveStateManager.isValidStartEvent(u)&&(this._moveStateManager.startMove(u),this._lastPoint=Array.isArray(h)?h[0]:h,this._activateOnStart&&this._lastPoint&&(this._active=!0))}dragMove(u,h){if(!this.isEnabled())return;const _=this._lastPoint;if(!_)return;if(u.preventDefault(),!this._moveStateManager.isValidMoveEvent(u))return void this.reset(u);const S=Array.isArray(h)?h[0]:h;return!this._moved&&S.dist(_)<this._clickTolerance?void 0:(this._moved=!0,this._lastPoint=S,this._move(_,S))}dragEnd(u){this.isEnabled()&&this._lastPoint&&this._moveStateManager.isValidEndEvent(u)&&(this._moved&&I.suppressClick(),this.reset(u))}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}getClickTolerance(){return this._clickTolerance}}const Wd=0,S0=2,vl={[Wd]:1,[S0]:2};class Zl{constructor(u){this._correctEvent=u.checkCorrectEvent}startMove(u){this._eventButton=u.button}endMove(u){delete this._eventButton}isValidStartEvent(u){return this._correctEvent(u)}isValidMoveEvent(u){return!(function(h,_){const S=vl[_];return h.buttons===void 0||(h.buttons&S)!==S})(u,this._eventButton)}isValidEndEvent(u){return u.button===this._eventButton}}class Vu{constructor(){this._firstTouch=void 0}_isOneFingerTouch(u){return u.targetTouches.length===1}_isSameTouchEvent(u){return u.targetTouches[0].identifier===this._firstTouch}startMove(u){this._firstTouch=u.targetTouches[0].identifier}endMove(u){delete this._firstTouch}isValidStartEvent(u){return this._isOneFingerTouch(u)}isValidMoveEvent(u){return this._isOneFingerTouch(u)&&this._isSameTouchEvent(u)}isValidEndEvent(u){return this._isOneFingerTouch(u)&&this._isSameTouchEvent(u)}}class Ao{constructor(u=new Zl({checkCorrectEvent:()=>!0}),h=new Vu){this.mouseMoveStateManager=u,this.oneFingerTouchMoveStateManager=h}_executeRelevantHandler(u,h,_){return u instanceof MouseEvent?h(u):typeof TouchEvent<"u"&&u instanceof TouchEvent?_(u):void 0}startMove(u){this._executeRelevantHandler(u,(h=>{this.mouseMoveStateManager.startMove(h)}),(h=>{this.oneFingerTouchMoveStateManager.startMove(h)}))}endMove(u){this._executeRelevantHandler(u,(h=>{this.mouseMoveStateManager.endMove(h)}),(h=>{this.oneFingerTouchMoveStateManager.endMove(h)}))}isValidStartEvent(u){return this._executeRelevantHandler(u,(h=>this.mouseMoveStateManager.isValidStartEvent(h)),(h=>this.oneFingerTouchMoveStateManager.isValidStartEvent(h)))}isValidMoveEvent(u){return this._executeRelevantHandler(u,(h=>this.mouseMoveStateManager.isValidMoveEvent(h)),(h=>this.oneFingerTouchMoveStateManager.isValidMoveEvent(h)))}isValidEndEvent(u){return this._executeRelevantHandler(u,(h=>this.mouseMoveStateManager.isValidEndEvent(h)),(h=>this.oneFingerTouchMoveStateManager.isValidEndEvent(h)))}}const tm=E=>{E.mousedown=E.dragStart,E.mousemoveWindow=E.dragMove,E.mouseup=E.dragEnd,E.contextmenu=u=>{u.preventDefault()}};class C0{constructor(u,h){this._clickTolerance=u.clickTolerance||1,this._map=h,this.reset()}reset(){this._active=!1,this._touches={},this._sum=new o.P(0,0)}_shouldBePrevented(u){return u<(this._map.cooperativeGestures.isEnabled()?2:1)}touchstart(u,h,_){return this._calculateTransform(u,h,_)}touchmove(u,h,_){if(this._active){if(!this._shouldBePrevented(_.length))return u.preventDefault(),this._calculateTransform(u,h,_);this._map.cooperativeGestures.notifyGestureBlocked("touch_pan",u)}}touchend(u,h,_){this._calculateTransform(u,h,_),this._active&&this._shouldBePrevented(_.length)&&this.reset()}touchcancel(){this.reset()}_calculateTransform(u,h,_){_.length>0&&(this._active=!0);const S=bn(_,h),M=new o.P(0,0),V=new o.P(0,0);let W=0;for(const re in S){const ie=S[re],he=this._touches[re];he&&(M._add(ie),V._add(ie.sub(he)),W++,S[re]=ie)}if(this._touches=S,this._shouldBePrevented(W)||!V.mag())return;const X=V.div(W);return this._sum._add(X),this._sum.mag()<this._clickTolerance?void 0:{around:M.div(W),panDelta:X}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class nm{constructor(){this.reset()}reset(){this._active=!1,delete this._firstTwoTouches}touchstart(u,h,_){this._firstTwoTouches||_.length<2||(this._firstTwoTouches=[_[0].identifier,_[1].identifier],this._start([h[0],h[1]]))}touchmove(u,h,_){if(!this._firstTwoTouches)return;u.preventDefault();const[S,M]=this._firstTwoTouches,V=qu(_,h,S),W=qu(_,h,M);if(!V||!W)return;const X=this._aroundCenter?null:V.add(W).div(2);return this._move([V,W],X,u)}touchend(u,h,_){if(!this._firstTwoTouches)return;const[S,M]=this._firstTwoTouches,V=qu(_,h,S),W=qu(_,h,M);V&&W||(this._active&&I.suppressClick(),this.reset())}touchcancel(){this.reset()}enable(u){this._enabled=!0,this._aroundCenter=!!u&&u.around==="center"}disable(){this._enabled=!1,this.reset()}isEnabled(){return!!this._enabled}isActive(){return!!this._active}}function qu(E,u,h){for(let _=0;_<E.length;_++)if(E[_].identifier===h)return u[_]}function _l(E,u){return Math.log(E/u)/Math.LN2}class T0 extends nm{constructor(){super(),this._zoomRate=1,this._zoomThreshold=.1}setZoomRate(u){this._zoomRate=u??1}setZoomThreshold(u){this._zoomThreshold=u??.1}reset(){super.reset(),delete this._distance,delete this._startDistance}_start(u){this._startDistance=this._distance=u[0].dist(u[1])}_move(u,h){const _=this._distance;if(this._distance=u[0].dist(u[1]),this._active||!(Math.abs(_l(this._distance,this._startDistance))<this._zoomThreshold))return this._active=!0,{zoomDelta:_l(this._distance,_)*this._zoomRate,pinchAround:h}}}function k0(E,u){return 180*E.angleWith(u)/Math.PI}class dh extends nm{reset(){super.reset(),delete this._minDiameter,delete this._startVector,delete this._vector}_start(u){this._startVector=this._vector=u[0].sub(u[1]),this._minDiameter=u[0].dist(u[1])}_move(u,h,_){const S=this._vector;if(this._vector=u[0].sub(u[1]),this._active||!this._isBelowThreshold(this._vector))return this._active=!0,{bearingDelta:k0(this._vector,S),pinchAround:h}}_isBelowThreshold(u){this._minDiameter=Math.min(this._minDiameter,u.mag());const h=25/(Math.PI*this._minDiameter)*360,_=k0(u,this._startVector);return Math.abs(_)<h}}function E0(E){return Math.abs(E.y)>Math.abs(E.x)}class bl extends nm{constructor(u){super(),this._currentTouchCount=0,this._map=u}reset(){super.reset(),this._valid=void 0,delete this._firstMove,delete this._lastPoints}touchstart(u,h,_){super.touchstart(u,h,_),this._currentTouchCount=_.length}_start(u){this._lastPoints=u,E0(u[0].sub(u[1]))&&(this._valid=!1)}_move(u,h,_){if(this._map.cooperativeGestures.isEnabled()&&this._currentTouchCount<3)return;const S=u[0].sub(this._lastPoints[0]),M=u[1].sub(this._lastPoints[1]);return this._valid=this.gestureBeginsVertically(S,M,_.timeStamp),this._valid?(this._lastPoints=u,this._active=!0,{pitchDelta:(S.y+M.y)/2*-.5}):void 0}gestureBeginsVertically(u,h,_){if(this._valid!==void 0)return this._valid;const S=u.mag()>=2,M=h.mag()>=2;if(!S&&!M)return;if(!S||!M)return this._firstMove===void 0&&(this._firstMove=_),_-this._firstMove<100&&void 0;const V=u.y>0==h.y>0;return E0(u)&&E0(h)&&V}}const or={panStep:100,bearingStep:15,pitchStep:10};class rm{constructor(u){this._tr=new gl(u);const h=or;this._panStep=h.panStep,this._bearingStep=h.bearingStep,this._pitchStep=h.pitchStep,this._rotationDisabled=!1}reset(){this._active=!1}keydown(u){if(u.altKey||u.ctrlKey||u.metaKey)return;let h=0,_=0,S=0,M=0,V=0;switch(u.keyCode){case 61:case 107:case 171:case 187:h=1;break;case 189:case 109:case 173:h=-1;break;case 37:u.shiftKey?_=-1:(u.preventDefault(),M=-1);break;case 39:u.shiftKey?_=1:(u.preventDefault(),M=1);break;case 38:u.shiftKey?S=1:(u.preventDefault(),V=-1);break;case 40:u.shiftKey?S=-1:(u.preventDefault(),V=1);break;default:return}return this._rotationDisabled&&(_=0,S=0),{cameraAnimation:W=>{const X=this._tr;W.easeTo({duration:300,easeId:"keyboardHandler",easing:fh,zoom:h?o.cw(X.zoom+h*(u.shiftKey?2:1),W.getZoomSnap()):X.zoom,bearing:X.bearing+_*this._bearingStep,pitch:X.pitch+S*this._pitchStep,offset:[-M*this._panStep,-V*this._panStep],center:X.center},{originalEvent:u})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}disableRotation(){this._rotationDisabled=!0}enableRotation(){this._rotationDisabled=!1}}function fh(E){return E*(2-E)}const Io=4.000244140625,hh=1/450;class Gd{constructor(u,h){this._onTimeout=_=>{this._type="wheel",this._delta-=this._lastValue,this._active||this._start(_)},this._map=u,this._tr=new gl(u),this._triggerRenderFrame=h,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=hh}setZoomRate(u){this._defaultZoomRate=u}setWheelZoomRate(u){this._wheelZoomRate=u}isEnabled(){return!!this._enabled}isActive(){return!!this._active||this._finishTimeout!==void 0}isZooming(){return!!this._zooming}enable(u){this.isEnabled()||(this._enabled=!0,this._aroundCenter=!!u&&u.around==="center")}disable(){this.isEnabled()&&(this._enabled=!1)}_shouldBePrevented(u){return!!this._map.cooperativeGestures.isEnabled()&&!(u.ctrlKey||this._map.cooperativeGestures.isBypassed(u))}wheel(u){if(!this.isEnabled())return;if(this._shouldBePrevented(u))return void this._map.cooperativeGestures.notifyGestureBlocked("wheel_zoom",u);let h=u.deltaMode===WheelEvent.DOM_DELTA_LINE?40*u.deltaY:u.deltaY;const _=A(),S=_-(this._lastWheelEventTime||0);this._lastWheelEventTime=_,h!==0&&h%Io==0?this._type="wheel":h!==0&&Math.abs(h)<4?this._type="trackpad":S>400?(this._type=null,this._lastValue=h,this._timeout=setTimeout(this._onTimeout,40,u)):this._type||(this._type=Math.abs(S*h)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,h+=this._lastValue)),u.shiftKey&&h&&(h/=4),this._type&&(this._lastWheelEvent=u,this._delta-=h,this._active||this._start(u)),u.preventDefault()}_start(u){if(!this._delta)return;this._needsRerender=!1,this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);const h=I.mousePos(this._map.getCanvas(),u),_=this._tr;this._aroundPoint=this._aroundCenter?_.transform.locationToScreenPoint(o.W.convert(_.center)):h,this._needsRerender||(this._needsRerender=!0,this._triggerRenderFrame())}renderFrame(){if(!this._needsRerender||(this._needsRerender=!1,!this.isActive()))return;const u=this._tr.transform;if(typeof this._lastExpectedZoom=="number"){const W=u.zoom-this._lastExpectedZoom;
822typeof this._startZoom=="number"&&(this._startZoom+=W),typeof this._targetZoom=="number"&&(this._targetZoom+=W)}if(this._delta!==0){const W=this._type==="wheel"&&Math.abs(this._delta)>Io?this._wheelZoomRate:this._defaultZoomRate;let X=2/(1+Math.exp(-Math.abs(this._delta*W)));this._delta<0&&X!==0&&(X=1/X);const re=typeof this._targetZoom!="number"?u.scale:o.ao(this._targetZoom),ie=u.applyConstrain(u.getCameraLngLat(),o.ar(re*X)).zoom,he=this._map.getZoomSnap();if(this._type==="wheel"&&he>0){const ge=o.cw(u.zoom,he);this._targetZoom=o.cw(ie,he,ie-ge)}else this._targetZoom=ie;this._type==="wheel"&&(this._startZoom=u.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}const h=typeof this._targetZoom!="number"?u.zoom:this._targetZoom,_=this._startZoom,S=this._easing;let M,V=!1;if(this._type==="wheel"&&_&&S){const W=A()-this._lastWheelEventTime,X=Math.min((W+5)/200,1),re=S(X);M=o.H.number(_,h,re),X<1?this._needsRerender=!0:V=!0}else M=h,V=!0;return this._active=!0,V&&(this._active=!1,this._finishTimeout=setTimeout((()=>{this._zooming=!1,this._triggerRenderFrame(),delete this._targetZoom,delete this._lastExpectedZoom,delete this._finishTimeout}),200)),this._lastExpectedZoom=M,{noInertia:!0,needsRenderFrame:!V,zoomDelta:M-u.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}_smoothOutEasing(u){let h=o.cy;if(this._prevEase){const _=this._prevEase,S=(A()-_.start)/_.duration,M=_.easing(S+.01)-_.easing(S),V=.27/Math.sqrt(M*M+1e-4)*.01,W=Math.sqrt(.0729-V*V);
822h=o.cv(V,W,.25,1)}return this._prevEase={start:A(),duration:u,easing:h},h}reset(){this._active=!1,this._zooming=!1,delete this._targetZoom,delete this._lastExpectedZoom,this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout)}}class Kl{constructor(u,h){this._clickZoom=u,this._tapZoom=h}enable(){this._clickZoom.enable(),this._tapZoom.enable()}disable(){this._clickZoom.disable(),this._tapZoom.disable()}isEnabled(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()}isActive(){return this._clickZoom.isActive()||this._tapZoom.isActive()}}class P0{constructor(u){this._tr=new gl(u),this.reset()}reset(){this._active=!1}dblclick(u,h){return u.preventDefault(),{cameraAnimation:_=>{_.easeTo({duration:300,zoom:o.cw(this._tr.zoom+(u.shiftKey?-1:1),_.getZoomSnap()),around:this._tr.unproject(h)},{originalEvent:u})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class yo{constructor(){this._tap=new Gl({numTouches:1,numTaps:1}),this._zoomRate=1,this.reset()}setZoomRate(u){this._zoomRate=u??1}reset(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,delete this._tapPoint,this._tap.reset()}touchstart(u,h,_){if(!this._swipePoint)if(this._tapTime){const S=h[0],M=u.timeStamp-this._tapTime<500,V=this._tapPoint.dist(S)<30;M&&V?_.length>0&&(this._swipePoint=S,this._swipeTouch=_[0].identifier):this.reset()}else this._tap.touchstart(u,h,_)}touchmove(u,h,_){if(this._tapTime){if(this._swipePoint){if(_[0].identifier!==this._swipeTouch)return;const S=h[0],M=S.y-this._swipePoint.y;return this._swipePoint=S,u.preventDefault(),this._active=!0,{zoomDelta:M/128*this._zoomRate}}}else this._tap.touchmove(u,h,_)}touchend(u,h,_){if(this._tapTime)this._swipePoint&&_.length===0&&this.reset();else{const S=this._tap.touchend(u,h,_);S&&(this._tapTime=u.timeStamp,this._tapPoint=S)}}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class is{constructor(u,h,_){this._el=u,this._mousePan=h,this._touchPan=_}enable(u){this._inertiaOptions=u||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("maplibregl-touch-drag-pan")}disable(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("maplibregl-touch-drag-pan")}isEnabled(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()}isActive(){return this._mousePan.isActive()||this._touchPan.isActive()}}class ph{constructor(u,h,_,S){this._pitchWithRotate=u.pitchWithRotate,this._rollEnabled=u.rollEnabled,this._mouseRotate=h,this._mousePitch=_,this._mouseRoll=S}enable(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable(),this._rollEnabled&&this._mouseRoll.enable()}disable(){this._mouseRotate.disable(),this._mousePitch.disable(),this._mouseRoll.disable()}isEnabled(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())&&(!this._rollEnabled||this._mouseRoll.isEnabled())}isActive(){return this._mouseRotate.isActive()||this._mousePitch.isActive()||this._mouseRoll.isActive()}}class Pn{constructor(u,h,_,S){this._el=u,this._touchZoom=h,this._touchRotate=_,this._tapDragZoom=S,this._rotationDisabled=!1,this._enabled=!0}enable(u){this._touchZoom.enable(u),this._rotationDisabled||this._touchRotate.enable(u),this._tapDragZoom.enable(),this._el.classList.add("maplibregl-touch-zoom-rotate")}disable(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("maplibregl-touch-zoom-rotate")}isEnabled(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()}isActive(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()}setZoomRate(u){this._touchZoom.setZoomRate(u),this._tapDragZoom.setZoomRate(u)}setZoomThreshold(u){this._touchZoom.setZoomThreshold(u)}disableRotation(){this._rotationDisabled=!0,this._touchRotate.disable()}enableRotation(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()}}class Rn{constructor(u,h){this._bypassKey=navigator.userAgent.includes("Mac")?"metaKey":"ctrlKey",this._map=u,this._options=h,this._enabled=!1}isActive(){return!1}reset(){}_setupUI(){if(this._container)return;const u=this._map.getCanvasContainer();u.classList.add("maplibregl-cooperative-gestures"),this._container=I.create("div","maplibregl-cooperative-gesture-screen",u);let h=this._map._getUIString("CooperativeGesturesHandler.WindowsHelpText");this._bypassKey==="metaKey"&&(h=this._map._getUIString("CooperativeGesturesHandler.MacHelpText"));const _=this._map._getUIString("CooperativeGesturesHandler.MobileHelpText"),S=document.createElement("div");S.className="maplibregl-desktop-message",S.textContent=h,this._container.appendChild(S);const M=document.createElement("div");M.className="maplibregl-mobile-message",M.textContent=_,this._container.appendChild(M),this._container.setAttribute("aria-hidden","true")}_destroyUI(){this._container&&(this._container.remove(),this._map.getCanvasContainer().classList.remove("maplibregl-cooperative-gestures")),delete this._container}enable(){this._setupUI(),this._enabled=!0}disable(){this._enabled=!1,this._destroyUI()}isEnabled(){return this._enabled}isBypassed(u){return u[this._bypassKey]}notifyGestureBlocked(u,h){this._enabled&&(this._map.fire(new o.n("cooperativegestureprevented",{gestureType:u,originalEvent:h})),this._container.classList.add("maplibregl-show"),setTimeout((()=>{this._container.classList.remove("maplibregl-show")}),100))}}const xl=E=>E.zoom||E.drag||E.roll||E.pitch||E.rotate;class N1 extends o.n{}function wl(E){var u;return((u=E.panDelta)===null||u===void 0?void 0:u.mag())||E.zoomDelta||E.bearingDelta||E.pitchDelta||E.rollDelta}class Xa{get _ownerDocument(){var u;return((u=this._el)===null||u===void 0?void 0:u.ownerDocument)||document}get _ownerWindow(){var u,h;return((h=(u=this._el)===null||u===void 0?void 0:u.ownerDocument)===null||h===void 0?void 0:h.defaultView)||window}constructor(u,h){this.handleWindowEvent=S=>{this.handleEvent(S,`${S.type}Window`)},this.handleEvent=(S,M)=>
vendor: 13,221 bytes, line 822
822{if(S.type==="blur")return void this.stop(!0);this._updatingCamera=!0;const V=S.type==="renderFrame"?void 0:S,W={needsRenderFrame:!1},X={},re={};for(const{handlerName:ge,handler:we,allowed:Le}of this._handlers){if(!we.isEnabled())continue;let He;if(this._blockedByActive(re,Le,ge))we.reset();else if(we[M||S.type]){if(o.cz(S,M||S.type)){const Xe=I.mousePos(this._map.getCanvas(),S);He=we[M||S.type](S,Xe)}else if(o.cA(S,M||S.type)){const Xe=this._getMapTouches(S.touches),Ze=I.touchPos(this._map.getCanvas(),Xe);He=we[M||S.type](S,Ze,Xe)}else o.cB(M||S.type)||(He=we[M||S.type](S));this.mergeHandlerResult(W,X,He,ge,V),He?.needsRenderFrame&&this._triggerRenderFrame()}(He||we.isActive())&&(re[ge]=we)}const ie={};for(const ge in this._previousActiveHandlers)re[ge]||(ie[ge]=V);this._previousActiveHandlers=re,(Object.keys(ie).length||wl(W))&&(this._changes.push([W,X,ie]),this._triggerRenderFrame()),(Object.keys(re).length||wl(W))&&this._map._stop(!0),this._updatingCamera=!1;const{cameraAnimation:he}=W;he&&(this._inertia.clear(),this._fireEvents({},{},!0),this._changes=[],he(this._map))},this._map=u,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new mb(u),this._bearingSnap=h.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(h);const _=this._el;this._listeners=[[_,"touchstart",{passive:!0}],[_,"touchmove",{passive:!1}],[_,"touchend",void 0],[_,"touchcancel",void 0],[_,"mousedown",void 0],[_,"mousemove",void 0],[_,"mouseup",void 0],[this._ownerDocument,"mousemove",{capture:!0}],[this._ownerDocument,"mouseup",void 0],[_,"mouseover",void 0],[_,"mouseout",void 0],[_,"dblclick",void 0],[_,"click",void 0],[_,"keydown",{capture:!1}],[_,"keyup",void 0],[_,"wheel",{passive:!1}],[_,"contextmenu",void 0],[this._ownerWindow,"blur",void 0]];for(const[S,M,V]of this._listeners)S.addEventListener(M,S===this._ownerDocument?this.handleWindowEvent:this.handleEvent,V)}destroy(){for(const[u,h,_]of this._listeners)u.removeEventListener(h,u===this._ownerDocument?this.handleWindowEvent:this.handleEvent,_)}_addDefaultHandlers(u){const h=this._map,_=h.getCanvasContainer();this._add("mapEvent",new gb(h,u));const S=h.boxZoom=new yl(h,u);this._add("boxZoom",S),u.interactive&&u.boxZoom&&S.enable();const M=h.cooperativeGestures=new Rn(h,u.cooperativeGestures);this._add("cooperativeGestures",M),u.cooperativeGestures&&M.enable();const V=new ch(h),W=new P0(h);h.doubleClickZoom=new Kl(W,V),this._add("tapZoom",V),this._add("clickZoom",W),u.interactive&&u.doubleClickZoom&&h.doubleClickZoom.enable();const X=new yo;this._add("tapDragZoom",X);const re=h.touchPitch=new bl(h);this._add("touchPitch",re),u.interactive&&u.touchPitch&&h.touchPitch.enable(u.touchPitch);const ie=()=>h.project(h.getCenter()),he=(function({enable:Je,clickTolerance:Ke,aroundCenter:ot=!0,minPixelCenterThreshold:tt=100,rotateDegreesPerPixelMoved:wt=.8},Rt){const Vt=new Zl({checkCorrectEvent:Qt=>Qt.button===0&&Qt.ctrlKey||Qt.button===2&&!Qt.ctrlKey});return new Yl({clickTolerance:Ke,move:(Qt,Xt)=>{const Tn=Rt();if(ot&&Math.abs(Tn.y-Qt.y)>tt)return{bearingDelta:o.cx(new o.P(Qt.x,Xt.y),Xt,Tn)};let fn=(Xt.x-Qt.x)*wt;return ot&&Xt.y<Tn.y&&(fn=-fn),{bearingDelta:fn}},moveStateManager:Vt,enable:Je,assignEvents:tm})})(u,ie),ge=(function({enable:Je,clickTolerance:Ke,pitchDegreesPerPixelMoved:ot=-.5}){const tt=new Zl({checkCorrectEvent:wt=>wt.button===0&&wt.ctrlKey||wt.button===2});return new Yl({clickTolerance:Ke,move:(wt,Rt)=>({pitchDelta:(Rt.y-wt.y)*ot}),moveStateManager:tt,enable:Je,assignEvents:tm})})(u),we=(function({enable:Je,clickTolerance:Ke,rollDegreesPerPixelMoved:ot=.3},tt){const wt=new Zl({checkCorrectEvent:Rt=>Rt.button===2&&Rt.ctrlKey});return new Yl({clickTolerance:Ke,move:(Rt,Vt)=>{const Qt=tt();let Xt=(Vt.x-Rt.x)*ot;return Vt.y<Qt.y&&(Xt=-Xt),{rollDelta:Xt}},moveStateManager:wt,enable:Je,assignEvents:tm})})(u,ie);h.dragRotate=new ph(u,he,ge,we),this._add("mouseRotate",he,["mousePitch"]),this._add("mousePitch",ge,["mouseRotate","mouseRoll"]),this._add("mouseRoll",we,["mousePitch"]),u.interactive&&u.dragRotate&&h.dragRotate.enable();const Le=(function({enable:Je,clickTolerance:Ke}){const ot=new Zl({checkCorrectEvent:tt=>tt.button===0&&!tt.ctrlKey});return new Yl({clickTolerance:Ke,move:(tt,wt)=>({around:wt,panDelta:wt.sub(tt)}),activateOnStart:!0,moveStateManager:ot,enable:Je,assignEvents:tm})})(u),He=new C0(u,h);h.dragPan=new is(_,Le,He),this._add("mousePan",Le),this._add("touchPan",He,["touchZoom","touchRotate"]),u.interactive&&u.dragPan&&h.dragPan.enable(u.dragPan);const Xe=new dh,Ze=new T0;h.touchZoomRotate=new Pn(_,Ze,Xe,X),this._add("touchRotate",Xe,["touchPan","touchZoom"]),this._add("touchZoom",Ze,["touchPan","touchRotate"]),u.interactive&&u.touchZoomRotate&&h.touchZoomRotate.enable(u.touchZoomRotate),this._add("blockableMapEvent",new w0(h));const et=h.scrollZoom=new Gd(h,(()=>this._triggerRenderFrame()));this._add("scrollZoom",et,["mousePan"]),u.interactive&&u.scrollZoom&&h.scrollZoom.enable(u.scrollZoom);const lt=h.keyboard=new rm(h);this._add("keyboard",lt),u.interactive&&u.keyboard&&h.keyboard.enable()}_add(u,h,_){this._handlers.push({handlerName:u,handler:h,allowed:_}),this._handlersById[u]=h}stop(u){if(!this._updatingCamera){for(const{handler:h}of this._handlers)h.reset();this._inertia.clear(),this._fireEvents({},{},u),this._changes=[]}}isActive(){for(const{handler:u}of this._handlers)if(u.isActive())return!0;return!1}isZooming(){return!!this._eventsInProgress.zoom||this._map.scrollZoom.isZooming()}isRotating(){return!!this._eventsInProgress.rotate}isMoving(){return!!xl(this._eventsInProgress)||this.isZooming()}_blockedByActive(u,h,_){for(const S in u)if(S!==_&&!h?.includes(S))return!0;return!1}_getMapTouches(u){const h=[];for(const _ of u)this._el.contains(_.target)&&h.push(_);return h}mergeHandlerResult(u,h,_,S,M){if(!_)return;o.e(u,_);const V={handlerName:S,originalEvent:_.originalEvent||M};_.zoomDelta!==void 0&&(h.zoom=V),_.panDelta!==void 0&&(h.drag=V),_.rollDelta!==void 0&&(h.roll=V),_.pitchDelta!==void 0&&(h.pitch=V),_.bearingDelta!==void 0&&(h.rotate=V)}_applyChanges(){const u={},h={},_={};for(const[S,M,V]of this._changes)S.panDelta&&(u.panDelta=(u.panDelta||new o.P(0,0))._add(S.panDelta)),S.zoomDelta&&(u.zoomDelta=(u.zoomDelta||0)+S.zoomDelta),S.bearingDelta&&(u.bearingDelta=(u.bearingDelta||0)+S.bearingDelta),S.pitchDelta&&(u.pitchDelta=(u.pitchDelta||0)+S.pitchDelta),S.rollDelta&&(u.rollDelta=(u.rollDelta||0)+S.rollDelta),S.around!==void 0&&(u.around=S.around),S.pinchAround!==void 0&&(u.pinchAround=S.pinchAround),S.noInertia&&(u.noInertia=S.noInertia),o.e(h,M),o.e(_,V);this._updateMapTransform(u,h,_),this._changes=[]}_updateMapTransform(u,h,_){const S=this._map,M=S._getTransformForUpdate(),V=S.terrain;if(!(wl(u)||V&&this._terrainMovement))return void this._fireEvents(h,_,!0);S._stop(!0);let{panDelta:W,zoomDelta:X,bearingDelta:re,pitchDelta:ie,rollDelta:he,around:ge,pinchAround:we}=u;we!==void 0&&(ge=we),ge||(ge=S.transform.centerPoint),V&&!M.isPointOnMapSurface(ge)&&(ge=M.centerPoint);const Le={panDelta:W,zoomDelta:X,rollDelta:he,pitchDelta:ie,bearingDelta:re,around:ge};this._map.cameraHelper.useGlobeControls&&!M.isPointOnMapSurface(ge)&&(ge=M.centerPoint);const He=ge.distSqr(M.centerPoint)<.01?M.center:M.screenPointToLocation(W?ge.sub(W):ge);this._handleMapControls({terrain:V,tr:M,deltasForHelper:Le,preZoomAroundLoc:He,combinedEventsInProgress:h,panDelta:W}),S._applyUpdatedTransform(M),this._map._update(),u.noInertia||this._inertia.record(u),this._fireEvents(h,_,!0)}_handleMapControls({terrain:u,tr:h,deltasForHelper:_,preZoomAroundLoc:S,combinedEventsInProgress:M,panDelta:V}){const W=this._map.cameraHelper;if(W.handleMapControlsRollPitchBearingZoom(_,h),u)return W.useGlobeControls?(this._terrainMovement||!M.drag&&!M.zoom||(this._terrainMovement=!0,this._map._elevationFreeze=!0),void W.handleMapControlsPan(_,h,S)):this._terrainMovement||!M.drag&&!M.zoom?void(M.drag&&this._terrainMovement&&V?h.setCenter(h.screenPointToLocation(h.centerPoint.sub(V))):W.handleMapControlsPan(_,h,S)):(this._terrainMovement=!0,this._map._elevationFreeze=!0,void W.handleMapControlsPan(_,h,S));W.handleMapControlsPan(_,h,S)}_fireEvents(u,h,_){const S=xl(this._eventsInProgress),M=xl(u),V={};for(const he in u){const{originalEvent:ge}=u[he];this._eventsInProgress[he]||(V[`${he}start`]=ge),this._eventsInProgress[he]=u[he]}!S&&M&&this._fireEvent("movestart",M.originalEvent);for(const he in V)this._fireEvent(he,V[he]);M&&this._fireEvent("move",M.originalEvent);for(const he in u){const{originalEvent:ge}=u[he];this._fireEvent(he,ge)}const W={};let X;for(const he in this._eventsInProgress){const{handlerName:ge,originalEvent:we}=this._eventsInProgress[he];this._handlersById[ge].isActive()||(delete this._eventsInProgress[he],X=h[ge]||we,W[`${he}end`]=X)}for(const he in W)this._fireEvent(he,W[he]);const re=xl(this._eventsInProgress),ie=(S||M)&&!re;if(ie&&this._terrainMovement){this._map._elevationFreeze=!1,this._terrainMovement=!1;const he=this._map._getTransformForUpdate();this._map.getCenterClampedToGround()&&he.recalculateZoomAndCenter(this._map.terrain),this._map._applyUpdatedTransform(he)}if(_&&ie){this._updatingCamera=!0;const he=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),ge=we=>we!==0&&-this._bearingSnap<we&&we<this._bearingSnap;!he||!he.essential&&x.prefersReducedMotion?(this._map.fire(new o.n("moveend",{originalEvent:X})),ge(this._map.getBearing())&&this._map.resetNorth()):(ge(he.bearing||this._map.getBearing())&&(he.bearing=0),he.freezeElevation=!0,this._map.easeTo(he,{originalEvent:X})),this._updatingCamera=!1}}_fireEvent(u,h){this._map.fire(new o.n(u,h?{originalEvent:h}:{}))}_requestFrame(){return this._map.triggerRepaint(),this._map._renderTaskQueue.add((u=>{delete this._frameId,this.handleEvent(new N1("renderFrame",{timeStamp:u})),this._applyChanges()}))}_triggerRenderFrame(){this._frameId===void 0&&(this._frameId=this._requestFrame())}}class V1 extends o.E{constructor(u,h,_){super(),this._renderFrameCallback=()=>{const S=Math.min((A()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(S)),S<1&&this._easeFrameId?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},this._moving=!1,this._zooming=!1,this.transform=u,this._bearingSnap=_.bearingSnap,this._zoomSnap=_.zoomSnap,this.cameraHelper=h,this.on("moveend",(()=>{delete this._requestedCameraState}))}migrateProjection(u,h){u.apply(this.transform,!0),this.transform=u,this.cameraHelper=h}getCenter(){return new o.W(this.transform.center.lng,this.transform.center.lat)}setCenter(u,h){return this.jumpTo({center:u},h)}getCenterElevation(){return this.transform.elevation}setCenterElevation(u,h){return this.jumpTo({elevation:u},h),this}getCenterClampedToGround(){return this._centerClampedToGround}setCenterClampedToGround(u){this._centerClampedToGround=u}panBy(u,h,_){return u=o.P.convert(u).mult(-1),this.panTo(this.transform.center,o.e({offset:u},h),_)}panTo(u,h,_){return this.easeTo(o.e({center:u},h),_)}getZoom(){return this.transform.zoom}setZoom(u,h){return this.jumpTo({zoom:u},h),this}zoomTo(u,h,_){return this.easeTo(o.e({zoom:u},h),_)}zoomIn(u,h){return this.zoomTo(o.cw(this.getZoom()+1,this._zoomSnap),u,h),this}zoomOut(u,h){return this.zoomTo(o.cw(this.getZoom()-1,this._zoomSnap),u,h),this}getVerticalFieldOfView(){return this.transform.fov}setVerticalFieldOfView(u,h){return u!=this.transform.fov&&(this.transform.setFov(u),this.fire(new o.n("movestart",h)).fire(new o.n("move",h)).fire(new o.n("moveend",h))),this}getBearing(){return this.transform.bearing}setZoomSnap(u){return this._zoomSnap=u,this}getZoomSnap(){return this._zoomSnap}setBearing(u,h){return this.jumpTo({bearing:u},h),this}getPadding(){return this.transform.padding}setPadding(u,h){return this.jumpTo({padding:u},h),this}rotateTo(u,h,_){return this.easeTo(o.e({bearing:u},h),_)}resetNorth(u,h){return this.rotateTo(0,o.e({duration:1e3},u),h),this}resetNorthPitch(u,h){return this.easeTo(o.e({bearing:0,pitch:0,roll:0,duration:1e3},u),h),this}snapToNorth(u,h){return Math.abs(this.getBearing())<this._bearingSnap?this.resetNorth(u,h):this}getPitch(){return this.transform.pitch}setPitch(u,h){return this.jumpTo({pitch:u},h),this}getRoll(){return this.transform.roll}setRoll(u,h){return this.jumpTo({roll:u},h),this}cameraForBounds(u,h){u=Ee.convert(u).adjustAntiMeridian();const _=h?.bearing||0;return this._cameraForBoxAndBearing(u.getNorthWest(),u.getSouthEast(),_,h)}_cameraForBoxAndBearing(u,h,_,S){const M={top:0,bottom:0,right:0,left:0};if(typeof(S=o.e({padding:M,offset:[0,0],maxZoom:this.transform.maxZoom},S)).padding=="number"){const ie=S.padding;S.padding={top:ie,bottom:ie,right:ie,left:ie}}const V=o.e(M,S.padding);S.padding=V;const W=this.transform,X=new Ee(u,h),re=this.cameraHelper.cameraForBoxAndBearing(S,V,X,_,W);return re&&this._zoomSnap&&(re.zoom=o.cw(re.zoom,this._zoomSnap,-1)),re}fitBounds(u,h,_){return this._fitInternal(this.cameraForBounds(u,h),h,_)}fitScreenCoordinates(u,h,_,S,M){return this._fitInternal(this._cameraForBoxAndBearing(this.transform.screenPointToLocation(o.P.convert(u)),this.transform.screenPointToLocation(o.P.convert(h)),_,S
822),S,M)}_fitInternal(u,h,_){return u?(delete(h=o.e(u,h)).padding,h.linear?this.easeTo(h,_):this.flyTo(h,_)):this}jumpTo(u,h){this.stop(),"zoom"in u&&this._zoomSnap&&(u.zoom=o.cw(u.zoom,this._zoomSnap));const _=this._getTransformForUpdate();let S=!1,M=!1,V=!1;const W=_.zoom;this.terrain&&_.setElevation(this.terrain.getElevationForLngLatZoom(u.center?o.W.convert(u.center):_.center,u.zoom||_.tileZoom)),this.cameraHelper.handleJumpToCenterZoom(_,u);const X=_.zoom!==W;return"elevation"in u&&_.elevation!==+u.elevation&&_.setElevation(+u.elevation),"bearing"in u&&_.bearing!==+u.bearing&&(S=!0,_.setBearing(+u.bearing)),"pitch"in u&&_.pitch!==+u.pitch&&(M=!0,_.setPitch(+u.pitch)),"roll"in u&&_.roll!==+u.roll&&(V=!0,_.setRoll(+u.roll)),u.padding==null||_.isPaddingEqual(u.padding)||_.setPadding(u.padding),this._applyUpdatedTransform(_),this.fire(new o.n("movestart",h)).fire(new o.n("move",h)),X&&this.fire(new o.n("zoomstart",h)).fire(new o.n("zoom",h)).fire(new o.n("zoomend",h)),S&&this.fire(new o.n("rotatestart",h)).fire(new o.n("rotate",h)).fire(new o.n("rotateend",h)),M&&this.fire(new o.n("pitchstart",h)).fire(new o.n("pitch",h)).fire(new o.n("pitchend",h)),V&&this.fire(new o.n("rollstart",h)).fire(new o.n("roll",h)).fire(new o.n("rollend",h)),this.fire(new o.n("moveend",h))}calculateCameraOptionsFromTo(u,h,_,S=0){const M=o.a7.fromLngLat(u,h),V=o.a7.fromLngLat(_,S),W=V.x-M.x,X=V.y-M.y,re=V.z-M.z,ie=Math.hypot(W,X,re);if(ie===0)throw new Error("Can't calculate camera options with same From and To");const he=Math.hypot(W,X),ge=o.ar(this.transform.cameraToCenterDistance/ie/this.transform.tileSize),we=180*Math.atan2(W,-X)/Math.PI;let Le=180*Math.acos(he/ie)/Math.PI;return Le=re<0?90-Le:90+Le,{center:V.toLngLat(),elevation:S,zoom:ge,pitch:Le,bearing:we}}calculateCameraOptionsFromCameraLngLatAltRotation(u,h,_,S,M){const V=this.transform.calculateCenterFromCameraLngLatAlt(u,h,_,S);return{center:V.center,elevation:V.elevation,zoom:V.zoom,bearing:_,pitch:S,roll:M}}easeTo(u,h){this._stop(!1,u.easeId),"zoom"in(u=o.e({offset:[0,0],duration:500,easing:o.cy},u))&&this._zoomSnap&&(u.zoom=o.cw(u.zoom,this._zoomSnap)),(u.animate===!1||!u.essential&&x.prefersReducedMotion)&&(u.duration=0);const _=this._getTransformForUpdate(),S=this.getBearing(),M=_.pitch,V=_.roll,W="bearing"in u?this._normalizeBearing(u.bearing,S):S,X="pitch"in u?+u.pitch:M,re="roll"in u?this._normalizeBearing(u.roll,V):V,ie="padding"in u?u.padding:_.padding,he=o.P.convert(u.offset);let ge,we;u.around&&(ge=o.W.convert(u.around),we=_.locationToScreenPoint(ge));const Le={moving:this._moving,zooming:this._zooming,rotating:this._rotating,pitching:this._pitching,rolling:this._rolling},He=this.cameraHelper.handleEaseTo(_,{bearing:W,pitch:X,roll:re,padding:ie,around:ge,aroundPoint:we,offsetAsPoint:he,offset:u.offset,zoom:u.zoom,center:u.center});return this._rotating||(this._rotating=S!==W),this._pitching||(this._pitching=X!==M),this._rolling||(this._rolling=re!==V),this._padding=!_.isPaddingEqual(ie),this._zooming||(this._zooming=He.isZooming),this._easeId=u.easeId,this._prepareEase(h,u.noMoveStart,Le),this.terrain&&this._prepareElevation(He.elevationCenter),this._ease((Xe=>{He.easeFunc(Xe),this.terrain&&!u.freezeElevation&&this._updateElevation(Xe),this._applyUpdatedTransform(_),this._fireMoveEvents(h)}),(Xe=>{this.terrain&&u.freezeElevation&&this._finalizeElevation(),this._afterEase(h,Xe)}),u),this}_prepareEase(u,h,_={}){this._moving=!0,h||_.moving||this.fire(new o.n("movestart",u)),this._zooming&&!_.zooming&&this.fire(new o.n("zoomstart",u)),this._rotating&&!_.rotating&&this.fire(new o.n("rotatestart",u)),this._pitching&&!_.pitching&&this.fire(new o.n("pitchstart",u)),this._rolling&&!_.rolling&&this.fire(new o.n("rollstart",u))}_prepareElevation(u){this._elevationCenter=u,this._elevationStart=this.transform.elevation,this._elevationTarget=this.terrain.getElevationForLngLatZoom(u,this.transform.tileZoom),this._elevationFreeze=!0}_updateElevation(u){this._elevationStart!==void 0&&this._elevationCenter!==void 0||this._prepareElevation(this.transform.center),this.transform.setMinElevationForCurrentTile(this.terrain.getMinTileElevationForLngLatZoom(this._elevationCenter,this.transform.tileZoom));const h=this.terrain.getElevationForLngLatZoom(this._elevationCenter,this.transform.tileZoom);if(u<1&&h!==this._elevationTarget){const _=this._elevationTarget-this._elevationStart;this._elevationStart+=u*(_-(h-(_*u+this._elevationStart))/(1-u)),this._elevationTarget=h}this.transform.setElevation(o.H.number(this._elevationStart,this._elevationTarget,u))}_finalizeElevation(){this._elevationFreeze=!1,this.getCenterClampedToGroun
vendor: 12,138 bytes, line 822
822d()&&this.transform.recalculateZoomAndCenter(this.terrain)}_getTransformForUpdate(){return this.transformCameraUpdate||this.terrain?(this._requestedCameraState||(this._requestedCameraState=this.transform.clone()),this._requestedCameraState):this.transform}_elevateCameraIfInsideTerrain(u){if(!this.terrain&&u.elevation>=0&&u.pitch<=90)return{};const h=u.getCameraLngLat(),_=u.getCameraAltitude(),S=this.terrain?this.terrain.getElevationForLngLatZoom(h,u.zoom):0;if(_<S){const M=this.calculateCameraOptionsFromTo(h,S,u.center,u.elevation);return{pitch:M.pitch,zoom:M.zoom}}return{}}_applyUpdatedTransform(u){const h=[];if(h.push((S=>this._elevateCameraIfInsideTerrain(S))),this.transformCameraUpdate&&h.push((S=>this.transformCameraUpdate(S))),!h.length)return;const _=u.clone();for(const S of h){const M=_.clone(),{center:V,zoom:W,roll:X,pitch:re,bearing:ie,elevation:he}=S(M);V&&M.setCenter(V),he!==void 0&&M.setElevation(he),W!==void 0&&M.setZoom(W),X!==void 0&&M.setRoll(X),re!==void 0&&M.setPitch(re),ie!==void 0&&M.setBearing(ie),_.apply(M,!1)}this.transform.apply(_,!1)}_fireMoveEvents(u){this.fire(new o.n("move",u)),this._zooming&&this.fire(new o.n("zoom",u)),this._rotating&&this.fire(new o.n("rotate",u)),this._pitching&&this.fire(new o.n("pitch",u)),this._rolling&&this.fire(new o.n("roll",u))}_afterEase(u,h){if(this._easeId&&h&&this._easeId===h)return;delete this._easeId;const _=this._zooming,S=this._rotating,M=this._pitching,V=this._rolling;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._rolling=!1,this._padding=!1,_&&this.fire(new o.n("zoomend",u)),S&&this.fire(new o.n("rotateend",u)),M&&this.fire(new o.n("pitchend",u)),V&&this.fire(new o.n("rollend",u)),this.fire(new o.n("moveend",u))}flyTo(u,h){if(!u.essential&&x.prefersReducedMotion){const Xt=o.V(u,["center","zoom","bearing","pitch","roll","elevation","padding"]);return this.jumpTo(Xt,h)}this.stop(),"zoom"in(u=o.e({offset:[0,0],speed:1.2,curve:1.42,easing:o.cy},u))&&this._zoomSnap&&(u.zoom=o.cw(u.zoom,this._zoomSnap));const _=this._getTransformForUpdate(),S=_.bearing,M=_.pitch,V=_.roll,W=_.padding,X="bearing"in u?this._normalizeBearing(u.bearing,S):S,re="pitch"in u?+u.pitch:M,ie="roll"in u?this._normalizeBearing(u.roll,V):V,he="padding"in u?u.padding:_.padding,ge=o.P.convert(u.offset);let we=_.centerPoint.add(ge);const Le=_.screenPointToLocation(we),He=this.cameraHelper.handleFlyTo(_,{bearing:X,pitch:re,roll:ie,padding:he,locationAtOffset:Le,offsetAsPoint:ge,center:u.center,minZoom:u.minZoom,zoom:u.zoom});let Xe=u.curve;const Ze=Math.max(_.width,_.height),et=Ze/He.scaleOfZoom,lt=He.pixelPathLength;typeof He.scaleOfMinZoom=="number"&&(Xe=Math.sqrt(Ze/He.scaleOfMinZoom/lt*2));const Je=Xe*Xe;function Ke(Xt){const Tn=(et*et-Ze*Ze+(Xt?-1:1)*Je*Je*lt*lt)/(2*(Xt?et:Ze)*Je*lt);return Math.log(Math.sqrt(Tn*Tn+1)-Tn)}function ot(Xt){return(Math.exp(Xt)-Math.exp(-Xt))/2}function tt(Xt){return(Math.exp(Xt)+Math.exp(-Xt))/2}const wt=Ke(!1);let Rt=function(Xt){return tt(wt)/tt(wt+Xe*Xt)},Vt=function(Xt){return Ze*((tt(wt)*(ot(Tn=wt+Xe*Xt)/tt(Tn))-ot(wt))/Je)/lt;var Tn},Qt=(Ke(!0)-wt)/Xe;if(Math.abs(lt)<2e-6||!isFinite(Qt)){if(Math.abs(Ze-et)<1e-6)return this.easeTo(u,h);const Xt=et<Ze?-1:1;Qt=Math.abs(Math.log(et/Ze))/Xe,Vt=()=>0,Rt=Tn=>Math.exp(Xt*Xe*Tn)}return u.duration="duration"in u?+u.duration:1e3*Qt/("screenSpeed"in u?+u.screenSpeed/Xe:+u.speed),u.maxDuration&&u.duration>u.maxDuration&&(u.duration=0),this._zooming=!0,this._rotating=S!==X,this._pitching=re!==M,this._rolling=ie!==V,this._padding=!_.isPaddingEqual(he),this._prepareEase(h,!1),this.terrain&&this._prepareElevation(He.targetCenter),this._ease((Xt=>{const Tn=Xt*Qt,fn=1/Rt(Tn),Wt=Vt(Tn);this._rotating&&_.setBearing(o.H.number(S,X,Xt)),this._pitching&&_.setPitch(o.H.number(M,re,Xt)),this._rolling&&_.setRoll(o.H.number(V,ie,Xt)),this._padding&&(_.interpolatePadding(W,he,Xt),we=_.centerPoint.add(ge)),He.easeFunc(Xt,fn,Wt,we),this.terrain&&!u.freezeElevation&&this._updateElevation(Xt),this._applyUpdatedTransform(_),this._fireMoveEvents(h)}),(()=>{this.terrain&&u.freezeElevation&&this._finalizeElevation(),this._afterEase(h)}),u),this}isEasing(){return!!this._easeFrameId}stop(){return this._stop()}_stop(u,h){var _;if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){const S=this._onEaseEnd;delete this._onEaseEnd,S.call(this,h)}return u||(_=this.handlers)===null||_===void 0||_.stop(!1),this}_ease(u,h,_){_.animate===!1||_.duration===0?(u(1),h()):(this._easeStart=A(),this._easeOptions=_,this._onEaseFrame=u,this._onEaseEnd=h,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))}_normalizeBearing(u,h){u=o.X(u,-180,180);const _=Math.abs(u-h);return Math.abs(u-360-h)<_&&(u-=360),Math.abs(u+360-h)<_&&(u+=360),u}queryTerrainElevation(u){return this.terrain?this.terrain.getElevationForLngLat(o.W.convert(u),this.transform):null}}const im={compact:!0,customAttribution:'<a href="https://maplibre.org/" target="_blank">MapLibre</a>'};class Ja{constructor(u=im){this._toggleAttribution=()=>{this._container.classList.contains("maplibregl-compact")&&(this._container.classList.contains("maplibregl-compact-show")?(this._container.setAttribute("open",""),this._container.classList.remove("maplibregl-compact-show")):(this._container.classList.add("maplibregl-compact-show"),this._container.removeAttribute("open")))},this._updateData=h=>{!h||h.sourceDataType!=="metadata"&&h.sourceDataType!=="visibility"&&h.dataType!=="style"&&h.type!=="terrain"||this._updateAttributions()},this._updateCompact=()=>{this._map.getCanvasContainer().offsetWidth<=640||this._compact?this._compact===!1?this._container.setAttribute("open",""):this._container.classList.contains("maplibregl-compact")||this._container.classList.contains("maplibregl-attrib-empty")||(this._container.setAttribute("open",""),this._container.classList.add("maplibregl-compact","maplibregl-compact-show")):(this._container.setAttribute("open",""),this._container.classList.contains("maplibregl-compact")&&this._container.classList.remove("maplibregl-compact","maplibregl-compact-show"))},this._updateCompactMinimize=()=>{this._container.classList.contains("maplibregl-compact")&&this._container.classList.contains("maplibregl-compact-show")&&this._container.classList.remove("maplibregl-compact-show")},this.options=u}getDefaultPosition(){return"bottom-right"}onAdd(u){return this._map=u,this._compact=this.options.compact,this._container=I.create("details","maplibregl-ctrl maplibregl-ctrl-attrib"),this._compactButton=I.create("summary","maplibregl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=I.create("div","maplibregl-ctrl-attrib-inner",this._container),this._updateAttributions(),this._updateCompact(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("terrain",this._updateData),this._map.on("resize",this._updateCompact),this._map.on("drag",this._updateCompactMinimize),this._container}onRemove(){this._container.remove(),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("terrain",this._updateData),this._map.off("resize",this._updateCompact),this._map.off("drag",this._updateCompactMinimize),this._map=void 0,this._compact=void 0,this._attribHTML=void 0}_setElementTitle(u,h){const _=this._map._getUIString(`AttributionControl.${h}`);u.title=_,u.setAttribute("aria-label",_)}_updateAttributions(){if(!this._map.style)return;let u=[];if(this.options.customAttribution&&(Array.isArray(this.options.customAttribution)?u=u.concat(this.options.customAttribution.map((S=>typeof S!="string"?"":S))):typeof this.options.customAttribution=="string"&&u.push(this.options.customAttribution)),this._map.style.stylesheet){const S=this._map.style.stylesheet;this.styleOwner=S.owner,this.styleId=S.id}const h=this._map.style.tileManagers;for(const S in h){const M=h[S];if(M.used||M.usedForTerrain){const V=M.getSource();V.attribution&&!u.includes(V.attribution)&&u.push(V.attribution)}}u=u.filter((S=>String(S).trim())),u.sort(((S,M)=>S.length-M.length)),u=u.filter(((S,M)=>{for(let V=M+1;V<u.length;V++)if(u[V].includes(S))return!1;return!0}));const _=u.join(" | ");_!==this._attribHTML&&(this._attribHTML=_,u.length?(this._innerContainer.innerHTML=I.sanitize(_),this._container.classList.remove("maplibregl-attrib-empty")):this._container.classList.add("maplibregl-attrib-empty"),this._updateCompact(),this._editLink=null)}}class $0{constructor(u={}){this._updateCompact=()=>{const h=this._container.children;if(h.length){const _=h[0];this._map.getCanvasContainer().offsetWidth<=640||this._compact?this._compact!==!1&&_.classList.add("maplibregl-compact"):_.classList.remove("maplibregl-compact")}},this.options=u}getDefaultPosition(){return"bottom-left"}onAdd(u){var h;this._map=u,this._compact=(h=this.options)===null||h===void 0?void 0:h.compact,this._container=I.create("div","maplibregl-ctrl");const _=I.create("a","maplibregl-ctrl-logo");return _.target="_blank",_.rel="noopener nofollow",_.href="https://maplibre.org/",_.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),_.setAttribute("rel","noopener nofollow"),this._container.appendChild(_),this._container.style.display="block",this._map.on("resize",this._updateCompact),this._updateCompact(),this._container}onRemove(){this._container.remove(),this._map.off("resize",this._updateCompact),this._map=void 0,this._compact=void 0}}class yb{constructor(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1}add(u){const h=++this._id;return this._queue.push({callback:u,id:h,cancelled:!1}),h}remove(u){const h=this._currentlyRunning,_=h?this._queue.concat(h):this._queue;for(const S of _)if(S.id===u)return void(S.cancelled=!0)}run(u=0){if(this._currentlyRunning)throw new Error("Attempting to run(), but is already running.");const h=this._currentlyRunning=this._queue;this._queue=[];for(const _ of h)if(!_.cancelled&&(_.callback(u),this._cleared))break;this._cleared=!1,this._currentlyRunning=!1}clear(){this._currentlyRunning&&(this._cleared=!0),this._queue=[]}}var M0=o.aS([{name:"a_pos3d",type:"Int16",components:3}]);class q1 extends o.E{constructor(u){super(),this._lastTilesetChange=A(),this.tileManager=u,this._tiles={},this._renderableTilesKeys=[],this._sourceTileCache={},this.minzoom=0,this.maxzoom=22,this.deltaZoom=1,this.tileSize=u._source.tileSize*2**this.deltaZoom,u.usedForTerrain=!0,u.tileSize=this.tileSize}destruct(){this.tileManager.usedForTerrain=!1,this.tileManager.tileSize=null}getSource(){return this.tileManager._source}update(u,h){this.tileManager.update(u,h),this._renderableTilesKeys=[];const _={};for(const S of Sc(u,{tileSize:this.tileSize,minzoom:this.minzoom,maxzoom:this.maxzoom,reparseOverscaled:!1,terrain:h,calculateTileZoom:this.tileManager._source.calculateTileZoom}))_[S.key]=!0,this._renderableTilesKeys.push(S.key),this._tiles[S.key]||(S.terrainRttPosMatrix32f=new Float64Array(16),o.c7(S.terrainRttPosMatrix32f,0,o.a6,o.a6,0,0,1),this._tiles[S.key]=new Zt(S,this.tileSize),this._lastTilesetChange=A());for(const S in this._tiles)_[S]||delete this._tiles[S]}freeRtt(u){for(const h in this._tiles){const _=this._tiles[h];(!u||_.tileID.equals(u)||_.tileID.isChildOf(u)||u.isChildOf(_.tileID))&&(_.rtt=[])}}getRenderableTiles(){return this._renderableTilesKeys.map((u=>this.getTileByID(u)))}getTileByID(u){return this._tiles[u]}getTerrainCoords(u,h){return h?this._getTerrainCoordsForTileRanges(u,h):this._getTerrainCoordsForRegularTile(u)}_getTerrainCoordsForRegularTile(u){const h={};for(const _ of this._renderableTilesKeys){const S=this._tiles[_].tileID,M=u.clone(),V=o.bj();if(S.canonical.equals(u.canonical))o.c7(V,0,o.a6,o.a6,0,0,1);else if(S.canonical.isChildOf(u.canonical)){const W=S.canonical.z-u.canonical.z,X=S.canonical.x-(S.canonical.x>>W<<W),re=S.canonical.y-(S.canonical.y>>W<<W),ie=o.a6>>W;o.c7(V,0,ie,ie,0,0,1),o.Q(V,V,[-X*ie,-re*ie,0])}else{if(!u.canonical.isChildOf(S.canonical))continue;
822{const W=u.canonical.z-S.canonical.z,X=u.canonical.x-(u.canonical.x>>W<<W),re=u.canonical.y-(u.canonical.y>>W<<W),ie=o.a6>>W;o.c7(V,0,o.a6,o.a6,0,0,1),o.Q(V,V,[X*ie,re*ie,0]),o.S(V,V,[1/2**W,1/2**W,0])}}M.terrainRttPosMatrix32f=new Float32Array(V),h[_]=M}return h}_getTerrainCoordsForTileRanges(u,h){const _={};for(const S of this._renderableTilesKeys){const M=this._tiles[S].tileID;if(!this._isWithinTileRanges(M,h))continue;const V=u.clone(),W=o.bj();if(M.canonical.z===u.canonical.z){const X=u.canonical.x-M.canonical.x+u.wrap*(1<<u.canonical.z),re=u.canonical.y-M.canonical.y;o.c7(W,0,o.a6,o.a6,0,0,1),o.Q(W,W,[X*o.a6,re*o.a6,0])}else if(M.canonical.z>u.canonical.z){const X=M.canonical.z-u.canonical.z,re=M.canonical.x-(M.canonical.x>>X<<X)+u.wrap*(1<<M.canonical.z),ie=M.canonical.y-(M.canonical.y>>X<<X),he=u.canonical.x-(M.canonical.x>>X),ge=u.canonical.y-(M.canonical.y>>X),we=o.a6>>X;o.c7(W,0,we,we,0,0,1),o.Q(W,W,[-re*we+he*o.a6,-ie*we+ge*o.a6,0])}else{const X=u.canonical.z-M.canonical.z,re=u.canonical.x-(u.canonical.x>>X<<X)+u.wrap*(1<<u.canonical.z),ie=u.canonical.y-(u.canonical.y>>X<<X),he=(u.canonical.x>>X)-M.canonical.x,ge=(u.canonical.y>>X)-M.canonical.y,we=o.a6<<X;o.c7(W,0,we,we,0,0,1),o.Q(W,W,[re*o.a6+he*we,ie*o.a6+ge*we,0])}V.terrainRttPosMatrix32f=new Float32Array(W),_[S]=V}return _}getSourceTile(u,h){var _,S;const M=this.tileManager._source;let V=u.overscaledZ-this.deltaZoom;if(V>M.maxzoom&&(V=M.maxzoom),V<M.minzoom)return;(_=this._sourceTileCache)[S=u.key]||(_[S]=u.scaledTo(V).key);let W=this.findTileInCaches(this._sourceTileCache[u.key]);if(!W?.dem&&h)for(;V>=M.minzoom&&!W?.dem;)W=this.findTileInCaches(u.scaledTo(V--).key);return W}findTileInCaches(u){let h=this.tileManager.getTileByID(u);return h||(h=this.tileManager._outOfViewCache.getByKey(u),h)}anyTilesAfterTime(u=Date.now()){return this._lastTilesetChange>=u}_isWithinTileRanges(u,h){const _=h[u.canonical.z];return!!_&&(u.wrap>_.minWrap||u.wrap<_.maxWrap||u.canonical.x>=_.minTileXWrapped&&u.canonical.x<=_.maxTileXWrapped&&u.canonical.y>=_.minTileY&&u.canonical.y<=_.maxTileY)}}class mh{constructor(u,h,_){this._meshCache={},this.painter=u,this.tileManager=new q1(h),this.options=_,this.exaggeration=typeof _.exaggeration=="number"?_.exaggeration:1,this.qualityFactor=2,this.meshSize=128,this._demMatrixCache={},this.coordsIndex=[],this._coordsTextureSize=1024}destroy(){this._fbo&&(this._fbo.destroy(),this._fbo=null),this._fboCoordsTexture&&(this._fboCoordsTexture.destroy(),this._fboCoordsTexture=null),this._fboDepthTexture&&(this._fboDepthTexture.destroy(),this._fboDepthTexture=null),this._emptyDemTexture&&(this._emptyDemTexture.destroy(),this._emptyDemTexture=null),this._emptyDepthTexture&&(this._emptyDepthTexture.destroy(),this._emptyDepthTexture=null),this._coordsTexture&&(this._coordsTexture.destroy(),this._coordsTexture=null);for(const u in this._meshCache)this._meshCache[u].destroy();this._meshCache={},this.tileManager.destruct()}getDEMElevation(u,h,_,S=o.a6){var M;const V=u.normalizeCoordinates(h,_,S);if(!V)return 0;const W=this.getTerrainData(V.tileID),X=(M=W.tile)===null||M===void 0?void 0:M.dem;if(!X)return 0;const re=o.cC([],[V.x/S*o.a6,V.y/S*o.a6],W.u_terrain_matrix),ie=[re[0]*X.dim,re[1]*X.dim],he=Math.floor(ie[0]),ge=Math.floor(ie[1]),we=ie[0]-he,Le=ie[1]-ge;return X.get(he,ge)*(1-we)*(1-Le)+X.get(he+1,ge)*we*(1-Le)+X.get(he,ge+1)*(1-we)*Le+X.get(he+1,ge+1)*we*Le}getElevationForLngLatZoom(u,h){if(!o.cD(h,u.wrap()))return 0;const{tileID:_,mercatorX:S,mercatorY:M}=this._getOverscaledTileIDFromLngLatZoom(u,h);return this.getElevation(_,S%o.a6,M%o.a6,o.a6)}getElevationForLngLat(u,h){const _=Sc(h,{maxzoom:this.tileManager.maxzoom,minzoom:this.tileManager.minzoom,tileSize:512,terrain:this});let S=0;for(const M of _)M.canonical.z>S&&(S=Math.min(M.canonical.z,this.tileManager.maxzoom));return this.getElevationForLngLatZoom(u,S)}getElevation(u,h,_,S=o.a6){return this.getDEMElevation(u,h,_,S)*this.exaggeration}getTerrainData(u){var h,_;if(!this._emptyDemTexture){const V=this.painter.context,W=new o.R({width:1,height:1},new Uint8Array(4));this._emptyDepthTexture=new o.T(V,W,V.gl.RGBA,{premultiply:!1}),this._emptyDemUnpack=[0,0,0,0],this._emptyDemTexture=new o.T(V,new o.R({width:1,height:1}),V.gl.RGBA,{premultiply:!1}),this._emptyDemTexture.bind(V.gl.NEAREST,V.gl.CLAMP_TO_EDGE),this._emptyDemMatrix=o.ap([])}const S=this.tileManager.getSourceTile(u,!0);if(S?.dem&&(!S.demTexture||S.needsTerrainPrepare)){const V=this.painter.context;S.demTexture=this.painter.getTileTexture(S.dem.stride),S.demTexture?S.demTexture.update(S.dem.getPixels(),{premultiply:!1}):S.demTexture=new o.T(V,S.dem.getPixels(),V.gl.RGBA,{premultiply:!1}),S.demTexture.bind(V.gl.NEAREST,V.gl.CLAMP_TO_EDGE),S.needsTerrainPrepare=!1}const M=S&&S.toString()+S.tileID.key+u.key;if(M&&!this._demMatrixCache[M]){const V=this.tileManager.getSource().maxzoom;let W=u.canonical.z-S.tileID.canonical.z;u.overscaledZ>u.canonical.z&&(u.canonical.z>=V?W=u.canonical.z-V:o.w("cannot calculate elevation if elevation maxzoom > source.maxzoom"));const X=u.canonical.x-(u.canonical.x>>W<<W),re=u.canonical.y-(u.canonical.y>>
vendor: 11,569 bytes, line 822
822W<<W),ie=o.cE(new Float64Array(16),[1/(o.a6<<W),1/(o.a6<<W),0]);o.Q(ie,ie,[X*o.a6,re*o.a6,0]),this._demMatrixCache[M]={matrix:ie,coord:u}}return{u_depth:2,u_terrain:3,u_terrain_dim:((h=S?.dem)===null||h===void 0?void 0:h.dim)||1,u_terrain_matrix:M?this._demMatrixCache[M].matrix:this._emptyDemMatrix,u_terrain_unpack:((_=S?.dem)===null||_===void 0?void 0:_.getUnpackVector())||this._emptyDemUnpack,u_terrain_exaggeration:this.exaggeration,texture:(S?.demTexture||this._emptyDemTexture).texture,depthTexture:(this._fboDepthTexture||this._emptyDepthTexture).texture,tile:S}}getFramebuffer(u){const h=this.painter,_=h.width/devicePixelRatio,S=h.height/devicePixelRatio;return!this._fbo||this._fbo.width===_&&this._fbo.height===S||(this._fbo.destroy(),this._fboCoordsTexture.destroy(),this._fboDepthTexture.destroy(),delete this._fbo,delete this._fboDepthTexture,delete this._fboCoordsTexture),this._fboCoordsTexture||(this._fboCoordsTexture=new o.T(h.context,{width:_,height:S,data:null},h.context.gl.RGBA,{premultiply:!1}),this._fboCoordsTexture.bind(h.context.gl.NEAREST,h.context.gl.CLAMP_TO_EDGE)),this._fboDepthTexture||(this._fboDepthTexture=new o.T(h.context,{width:_,height:S,data:null},h.context.gl.RGBA,{premultiply:!1}),this._fboDepthTexture.bind(h.context.gl.NEAREST,h.context.gl.CLAMP_TO_EDGE)),this._fbo||(this._fbo=h.context.createFramebuffer(_,S,!0,!1),this._fbo.depthAttachment.set(h.context.createRenderbuffer(h.context.gl.DEPTH_COMPONENT16,_,S))),this._fbo.colorAttachment.set(u==="coords"?this._fboCoordsTexture.texture:this._fboDepthTexture.texture),this._fbo}getCoordsTexture(){const u=this.painter.context;if(this._coordsTexture)return this._coordsTexture;const h=new Uint8Array(this._coordsTextureSize*this._coordsTextureSize*4);for(let M=0,V=0;M<this._coordsTextureSize;M++)for(let W=0;W<this._coordsTextureSize;W++,V+=4)h[V+0]=255&W,h[V+1]=255&M,h[V+2]=W>>8<<4|M>>8,h[V+3]=0;const _=new o.R({width:this._coordsTextureSize,height:this._coordsTextureSize},new Uint8Array(h.buffer)),S=new o.T(u,_,u.gl.RGBA,{premultiply:!1});return S.bind(u.gl.NEAREST,u.gl.CLAMP_TO_EDGE),this._coordsTexture=S,S}pointCoordinate(u){this.painter.maybeDrawDepth(!0),this.painter.maybeDrawCoords();const h=new Uint8Array(4),_=this.painter.context,S=_.gl,M=Math.round(u.x*this.painter.pixelRatio/devicePixelRatio),V=Math.round(u.y*this.painter.pixelRatio/devicePixelRatio),W=Math.round(this.painter.height/devicePixelRatio);_.bindFramebuffer.set(this.getFramebuffer("coords").framebuffer),S.readPixels(M,W-V-1,1,1,S.RGBA,S.UNSIGNED_BYTE,h),_.bindFramebuffer.set(null);const X=h[0]+(h[2]>>4<<8),re=h[1]+((15&h[2])<<8),ie=this.coordsIndex[255-h[3]],he=ie&&this.tileManager.getTileByID(ie);if(!he)return null;const ge=this._coordsTextureSize,we=(1<<he.tileID.canonical.z)*ge;return new o.a7((he.tileID.canonical.x*ge+X)/we+he.tileID.wrap,(he.tileID.canonical.y*ge+re)/we,this.getElevation(he.tileID,X,re,ge))}depthAtPoint(u){const h=new Uint8Array(4),_=this.painter.context,S=_.gl;return _.bindFramebuffer.set(this.getFramebuffer("depth").framebuffer),S.readPixels(u.x,this.painter.height/devicePixelRatio-u.y-1,1,1,S.RGBA,S.UNSIGNED_BYTE,h),_.bindFramebuffer.set(null),(h[0]/16777216+h[1]/65536+h[2]/256+h[3])/256}getTerrainMesh(u){var h;const _=((h=this.painter.style.projection)===null||h===void 0?void 0:h.transitionState)>0,S=_&&u.canonical.y===0,M=_&&u.canonical.y===(1<<u.canonical.z)-1,V=`m_${S?"n":""}_${M?"s":""}`;if(this._meshCache[V])return this._meshCache[V];const W=this.painter.context,X=new o.cF,re=new o.aW,ie=this.meshSize,he=o.a6/ie,ge=ie*ie;for(let tt=0;tt<=ie;tt++)for(let wt=0;wt<=ie;wt++)X.emplaceBack(wt*he,tt*he,0);for(let tt=0;tt<ge;tt+=ie+1)for(let wt=0;wt<ie;wt++)re.emplaceBack(wt+tt,ie+wt+tt+1,ie+wt+tt+2),re.emplaceBack(wt+tt,ie+wt+tt+2,wt+tt+1);const we=X.length,Le=we+(ie+1),He=(ie+1)*ie,Xe=S?o.bq:0,Ze=S?0:1,et=M?o.br:o.a6,lt=M?0:1;for(let tt=0;tt<=ie;tt++)X.emplaceBack(tt*he,Xe,Ze);for(let tt=0;tt<=ie;tt++)X.emplaceBack(tt*he,et,lt);for(let tt=0;tt<ie;tt++)re.emplaceBack(He+tt,Le+tt,Le+tt+1),re.emplaceBack(He+tt,Le+tt+1,He+tt+1),re.emplaceBack(0+tt,we+tt+1,we+tt),re.emplaceBack(0+tt,0+tt+1,we+tt+1);const Je=X.length,Ke=Je+2*(ie+1);for(const tt of[0,1])for(let wt=0;wt<=ie;wt++)for(const Rt of[0,1])X.emplaceBack(tt*o.a6,wt*he,Rt);for(let tt=0;tt<2*ie;tt+=2)re.emplaceBack(Je+tt,Je+tt+1,Je+tt+3),re.emplaceBack(Je+tt,Je+tt+3,Je+tt+2),re.emplaceBack(Ke+tt,Ke+tt+3,Ke+tt+1),re.emplaceBack(Ke+tt,Ke+tt+2,Ke+tt+3);const ot=new Gr(W.createVertexBuffer(X,M0.members),W.createIndexBuffer(re),o.aV.simpleSegment(0,0,X.length,re.length));return this._meshCache[V]=ot,ot}getMeshFrameDelta(u){return 2*Math.PI*o.bD/Math.pow(2,Math.max(u,0))/5}getMinTileElevationForLngLatZoom(u,h){var _;if(!o.cD(h,u.wrap()))return 0;const{tileID:S}=this._getOverscaledTileIDFromLngLatZoom(u,h);return(_=this.getMinMaxElevation(S).minElevation)!==null&&_!==void 0?_:0}getMinMaxElevation(u){const h=this.getTerrainData(u).tile,_={minElevation:null,maxElevation:null};return h?.dem&&(_.minElevation=h.dem.min*this.exaggeration,_.maxElevation=h.dem.max*this.exaggeration),_}_getOverscaledTileIDFromLngLatZoom(u,h){const _=o.a7.fromLngLat(u.wrap()),S=(1<<h)*o.a6,M=_.x*S,V=_.y*S,W=Math.floor(M/o.a6),X=Math.floor(V/o.a6);return{tileID:new o.a3(h,0,h,W,X),mercatorX:M,mercatorY:V}}}class Ei{constructor(u,h,_){this._context=u,this._size=h,this._tileSize=_,this._objects=[],this._recentlyUsed=[],this._stamp=0}destruct(){for(const u of this._objects)u.texture.destroy(),u.fbo.destroy()}_createObject(u){const h=this._context.createFramebuffer(this._tileSize,this._tileSize,!0,!0),_=new o.T(this._context,{width:this._tileSize,height:this._tileSize,data:null},this._context.gl.RGBA);return _.bind(this._context.gl.LINEAR,this._context.gl.CLAMP_TO_EDGE),this._context.extTextureFilterAnisotropic&&this._context.gl.texParameterf(this._context.gl.TEXTURE_2D,this._context.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,this._context.extTextureFilterAnisotropicMax),h.depthAttachment.set(this._context.createRenderbuffer(this._context.gl.DEPTH_STENCIL,this._tileSize,this._tileSize)),h.colorAttachment.set(_.texture),{id:u,fbo:h,texture:_,stamp:-1,inUse:!1}}getObjectForId(u){return this._objects[u]}useObject(u){u.inUse=!0,this._recentlyUsed=this._recentlyUsed.filter((h=>u.id!==h)),this._recentlyUsed.push(u.id)}stampObject(u){u.stamp=++this._stamp}getOrCreateFreeObject(){for(const h of this._recentlyUsed)if(!this._objects[h].inUse)return this._objects[h];if(this._objects.length>=this._size)throw new Error("No free RenderPool available, call freeAllObjects() required!");const u=this._createObject(this._objects.length);return this._objects.push(u),u}freeObject(u){u.inUse=!1}freeAllObjects(){for(const u of this._objects)this.freeObject(u)}isFull(){return!(this._objects.length<this._size)&&this._objects.some((u=>!u.inUse))===!1}}const oi={background:!0,fill:!0,line:!0,raster:!0,hillshade:!0,"color-relief":!0};class A0{constructor(u,h){this.painter=u,this.terrain=h,this.pool=new Ei(u.context,30,h.tileManager.tileSize*h.qualityFactor)}destruct(){this.pool.destruct()}getTexture(u){return this.pool.getObjectForId(u.rtt[this._stacks.length-1].id).texture}prepareForRender(u,h){var _,S,M;this._stacks=[],this._prevType=null,this._rttTiles=[],this._renderableTiles=this.terrain.tileManager.getRenderableTiles(),this._renderableLayerIds=u._order.filter((V=>!u._layers[V].isHidden(h))),this._coordsAscending={};for(const V in u.tileManagers){this._coordsAscending[V]={};const W=u.tileManagers[V].getVisibleCoordinates(),X=u.tileManagers[V].getSource(),re=X instanceof _t?X.terrainTileRanges:null;for(const ie of W){const he=this.terrain.tileManager.getTerrainCoords(ie,re);for(const ge in he)(M=this._coordsAscending[V])[ge]||(M[ge]=[]),this._coordsAscending[V][ge].push(he[ge])}}this._rttFingerprints={};for(const V of u._order){const W=u._layers[V],X=W.source;if(oi[W.type]&&!this._rttFingerprints[X]){this._rttFingerprints[X]={};const re=(S=(_=u.tileManagers[X])===null||_===void 0?void 0:_.getState().revision)!==null&&S!==void 0?S:0;for(const ie in this._coordsAscending[X])this._rttFingerprints[X][ie]=`${this._coordsAscending[X][ie].map((he=>he.key)).sort().join()}#${re}`}}for(const V of this._renderableTiles)for(const W in this._rttFingerprints){const X=this._rttFingerprints[W][V.tileID.key];X&&X!==V.rttFingerprint[W]&&(V.rtt=[])}}renderLayer(u,h){if(u.isHidden(this.painter.transform.zoom))return!1;const _=Object.assign(Object.assign({},h),{isRenderingToTexture:!0}),S=u.type,M=this.painter,V=this._renderableLayerIds[this._renderableLayerIds.length-1]===u.id;if(oi[S]&&(this._prevType&&oi[this._prevType]||this._stacks.push([]),this._prevType=S,this._stacks[this._stacks.length-1].push(u.id),!V))return!0;if(oi[this._prevType]||oi[S]&&V){this._prevType=S;const W=this._stacks.length-1,X=this._stacks[W]||[];for(const re of this._renderableTiles){if(this.pool.isFull()&&(b0(this.painter,this.terrain,this._rttTiles,_),this._rttTiles=[],this.pool.freeAllObjects()),this._rttTiles.push(re),re.rtt[W]){const he=this.pool.getObjectForId(re.rtt[W].id);if(he.stamp===re.rtt[W].stamp){this.pool.useObject(he);continue}}const ie=this.pool.getOrCreateFreeObject();this.pool.useObject(ie),this.pool.stampObject(ie),re.rtt[W]={id:ie.id,stamp:ie.stamp},M.context.bindFramebuffer.set(ie.fbo.framebuffer),M.context.clear({color:o.bo.transparent,stencil:0}),M.currentStencilSource=void 0;for(const he of X){const ge=M.style._layers[he],we=ge.source?this._coordsAscending[ge.source][re.tileID.key]:[re.tileID];M.context.viewport.set([0,0,ie.fbo.width,ie.fbo.height]),M._renderTileClippingMasks(ge,we,!0),M.renderLayer(M,M.style.tileManagers[ge.source],ge,we,_),ge.source&&(re.rttFingerprint[ge.source]=this._rttFingerprints[ge.source][re.tileID.key])}}return b0(this.painter,this.terrain,this._rttTiles,_),this._rttTiles=[],this.pool.freeAllObjects(),oi[S]}return!1}}const Zc={"AttributionControl.ToggleAttribution":"Toggle attribution","AttributionControl.MapFeedback":"Map feedback","FullscreenControl.Enter":"Enter fullscreen","FullscreenControl.Exit":"Exit fullscreen","GeolocateControl.FindMyLocation":"Find my location","GeolocateControl.LocationNotAvailable":"Location not available","LogoControl.Title":"MapLibre logo","Map.Title":"Map","Marker.Title":"Map marker","NavigationControl.ResetBearing":"Drag to rotate map, click to reset north","NavigationControl.ZoomIn":"Zoom in","NavigationControl.ZoomOut":"Zoom out","Popup.Close":"Close popup","ScaleControl.Feet":"ft","ScaleControl.Meters":"m","ScaleControl.Kilometers":"km","ScaleControl.Miles":"mi","ScaleControl.NauticalMiles":"nm","GlobeControl.Enable":"Enable globe","GlobeControl.Disable":"Disable globe","TerrainControl.Enable":"Enable terrain","TerrainControl.Disable":"Disable terrain","CooperativeGesturesHandler.WindowsHelpText":"Use Ctrl + scroll to zoom the map","CooperativeGesturesHandler.MacHelpText":"Use ⌘ + scroll to zoom the map","CooperativeGesturesHandler.MobileHelpText":"Use two fingers to move the map"},am=f,Yd={hash:!1,interactive:!0,bearingSnap:7,zoomSnap:0,attributionControl:im,maplibreLogo:!1,refreshExpiredTiles:!0,canvasContextAttributes:{antialias:!1,preserveDrawingBuffer:!1,powerPreference:"high-performance",failIfMajorPerformanceCaveat:!1,desynchronized:!1,contextType:void 0},scrollZoom:!0,minZoom:-2,maxZoom:22,minPitch:0,maxPitch:60,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,touchPitch:!0,cooperativeGestures:!1,trackResize:!0,center:[0,0],elevation:0,zoom:0,bearing:0,pitch:0,roll:0,renderWorldCopies:!0,maxTileC
822acheSize:null,maxTileCacheZoomLevels:o.c.MAX_TILE_CACHE_ZOOM_LEVELS,transformRequest:null,transformCameraUpdate:null,transformConstrain:null,fadeDuration:300,crossSourceCollisions:!0,clickTolerance:3,localIdeographFontFamily:"sans-serif",pitchWithRotate:!0,rollEnabled:!1,reduceMotion:void 0,validateStyle:!0,maxCanvasSize:[4096,4096],cancelPendingTileRequestsWhileZooming:!0,centerClampedToGround:!0,experimentalZoomLevelsToOverscale:void 0,anisotropicFilterPitch:20};let gh=class extends V1{get _ownerWindow(){var E,u;return((u=(E=this._container)===null||E===void 0?void 0:E.ownerDocument)===null||u===void 0?void 0:u.defaultView)||window}constructor(E){var u,h,_;const S=Object.assign(Object.assign(Object.assign({},Yd),E),{canvasContextAttributes:Object.assign(Object.assign({},Yd.canvasContextAttributes),E.canvasContextAttributes)});if(S.minZoom!=null&&S.maxZoom!=null&&S.minZoom>S.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(S.minPitch!=null&&S.maxPitch!=null&&S.minPitch>S.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(S.minPitch!=null&&S.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(S.maxPitch!=null&&S.maxPitch>180)throw new Error("maxPitch must be less than or equal to 180");const M=new Pc,V=new Di;S.minZoom!==void 0&&M.setMinZoom(S.minZoom),S.maxZoom!==void 0&&M.setMaxZoom(S.maxZoom),S.minPitch!==void 0&&M.setMinPitch(S.minPitch),S.maxPitch!==void 0&&M.setMaxPitch(S.maxPitch),S.renderWorldCopies!==void 0&&M.setRenderWorldCopies(S.renderWorldCopies),S.transformConstrain!==null&&M.setConstrainOverride(S.transformConstrain),super(M,V,{bearingSnap:S.bearingSnap,zoomSnap:S.zoomSnap}),this._idleTriggered=!1,this._crossFadingFactor=1,this._renderTaskQueue=new yb,this._controls=[],this._mapId=o.ad(),this._lostContextStyle={style:null,images:null},this._contextLost=X=>{if(X.preventDefault(),this._frameRequest&&(this._frameRequest.abort(),this._frameRequest=null),this.painter.destroy(),this._lostContextStyle=this._getStyleAndImages(),this.style){for(const re of Object.values(this.style._layers))if(re.type,re._listeners)for(const[ie]of Object.entries(re._listeners));this.style.destroy(),this.style=null,this.fire(new o.n("webglcontextlost",{originalEvent:X}
822))}else this.fire(new o.n("webglcontextlost",{originalEvent:X}))},this._contextRestored=X=>{this._lostContextStyle.style&&this.setStyle(this._lostContextStyle.style,{diff:!1}),this._lostContextStyle.images&&this.style&&(this.style.imageManager.images=this._lostContextStyle.images),this._lostContextStyle={style:null,images:null},this._setupPainter(),this.resize(),this._update(),this._resizeInternal(),this.fire(new o.n("webglcontextrestored",{originalEvent:X}))},this._onMapScroll=X=>{if(X.target===this._container)return this._container.scrollTop=0,this._container.scrollLeft=0,!1},this._onWindowOnline=()=>{this._update()},this._interactive=S.interactive,this._maxTileCacheSize=S.maxTileCacheSize,this._maxTileCacheZoomLevels=S.maxTileCacheZoomLevels,this._canvasContextAttributes=Object.assign({},S.canvasContextAttributes),this._trackResize=S.trackResize===!0,this._bearingSnap=S.bearingSnap,this._zoomSnap=S.zoomSnap,this._centerClampedToGround=S.centerClampedToGround,this._refreshExpiredTiles=S.refreshExpiredTiles===!0,this._fadeDuration=S.fadeDuration,this._crossSourceCollisions=S.crossSourceCollisions===!0,this._collectResourceTiming=S.collectResourceTiming===!0,this._locale=Object.assign(Object.assign({},Zc),S.locale),this._clickTolerance=S.clickTolerance,this._overridePixelRatio=S.pixelRatio,this._maxCanvasSize=S.maxCanvasSize,this._zoomLevelsToOverscale=S.experimentalZoomLevelsToOverscale,this.transformCameraUpdate=S.transformCameraUpdate,this.transformConstrain=S.transformConstrain,this.cancelPendingTileRequestsWhileZooming=S.cancelPendingTileRequestsWhileZooming===!0,this.setAnisotropicFilterPitch(S.anisotropicFilterPitch),S.reduceMotion!==void 0&&(x.prefersReducedMotion=S.reduceMotion),this._imageQueueHandle=O.addThrottleControl((()=>this.isMoving())),this._requestManager=new U(S.transformRequest),this._container=this._resolveContainer(S.container),S.maxBounds&&this.setMaxBounds(S.maxBounds),this._setupContainer(),this._setupPainter(),this.on("move",(()=>this._update(!1))),this.on("moveend",(()=>this._update(!1))),this.on("zoom",(()=>this._update(!0))),this.on("terrain",(()=>{this.painter.terrainFacilitator.depthDirty=!0,this._update(!0)})),this.once("idle",(()=>this._idleTriggered=!0)),typeof window<"u"&&(this._ownerWindow.addEventListener("online",this._onWindowOnline,!1),this._setupResizeObserver()),this.handlers=new Xa(this,S),this._hash=S.hash?new lh(typeof S.hash=="string"&&S.hash||void 0).addTo(this):void 0,!((u=this._hash)===null||u===void 0)&&u._onHashChange()||(this.jumpTo({center:S.center,elevation:S.elevation,zoom:S.zoom,bearing:S.bearing,pitch:S.pitch,roll:S.roll}),S.bounds&&(this.resize(),this.fitBounds(S.bounds,o.e({},S.fitBoundsOptions,{duration:0}))));const W=typeof S.style=="string"||((_=(h=S.style)===null||h===void 0?void 0:h.projection)===null||_===void 0?void 0:_.type)!=="globe";this.resize(null,W),this._localIdeographFontFamily=S.localIdeographFontFamily,this._validateStyle=S.validateStyle,S.style&&this.setStyle(S.style,{localIdeographFontFamily:S.localIdeographFontFamily}),S.attributionControl&&this.addControl(new Ja(typeof S.attributionControl=="boolean"?void 0:S.attributionControl)),S.maplibreLogo&&this.addControl(new $0,S.logoPosition),this.on("style.load",(()=>{if(W||this._resizeTransform(),this.transform.unmodified){const X=o.V(this.style.stylesheet,["center","zoom","bearing","pitch","roll"]);this.jumpTo(X)}})),this.on("data",(X=>{this._update(X.dataType==="style"),this.fire(new o.n(`${X.dataType}data`,X))})),this.on("dataloading",(X=>{this.fire(new o.n(`${X.dataType}dataloading`,X))})),this.on("dataabort",(X=>{this.fire(new o.n("sourcedataabort",X))}))}_getMapId(){return this._mapId}setGlobalStateProperty(E,u){return this.style.setGlobalStateProperty(E,u),this._update(!0)}getGlobalState(){return this.style.getGlobalState()}addControl(E,u){if(u===void 0&&(u=E.getDefaultPosition?E.getDefaultPosition():"top-right"),!E?.onAdd)return this.fire(new o.l(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));const h=E.onAdd(this);this._controls.push(E);const _=this._controlPositions[u];return u.includes("bottom")?_.insertBefore(h,_.firstChild):_.appendChild(h),this}
822removeControl(E){if(!E?.onRemove)return this.fire(new o.l(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));const u=this._controls.indexOf(E);return u>-1&&this._controls.splice(u,1),E.onRemove(this),this}hasControl(E){return this._controls.includes(E)}coveringTiles(E){return Sc(this.transform,E)}calculateCameraOptionsFromTo(E,u,h,_){return _==null&&this.terrain&&(_=this.terrain.getElevationForLngLat(h,this.transform)),super.calculateCameraOptionsFromTo(E,u,h,_)}resize(E,u=!0){if(this._lostContextStyle.style!==null)return this;this._resizeInternal(u);const h=!this._moving;return h&&(this.stop(),this.fire(new o.n("movestart",E)).fire(new o.n("move",E))),this.fire(new o.n("resize",E)),h&&this.fire(new o.n("moveend",E)),this}_resizeInternal(E=!0){const[u,h]=this._containerDimensions(),_=this._getClampedPixelRatio(u,h);if(this._resizeCanvas(u,h,_),this.painter.resize(u,h,_),this.painter.overLimit()){const S=this.painter.context.gl;this._maxCanvasSize=[S.drawingBufferWidth,S.drawingBufferHeight];const M=this._getClampedPixelRatio(u,h);this._resizeCanvas(u,h,M),this.painter.resize(u,h,M)}this._resizeTransform(E)}_resizeTransform(E=!0){var u;const[h,_]=this._containerDimensions();this.transform.resize(h,_,E),(u=this._requestedCameraState)===null||u===void 0||u.resize(h,_,E)}_getClampedPixelRatio(E,u){const{0:h,1:_}=this._maxCanvasSize,S=this.getPixelRatio(),M=E*S,V=u*S;return Math.min(M>h?h/M:1,V>_?_/V:1)*S}getPixelRatio(){var E;return(E=this._overridePixelRatio)!==null&&E!==void 0?E:devicePixelRatio}setPixelRatio(E){this._overridePixelRatio=E,this.resize()}getBounds(){return this.transform.getBounds()}getMaxBounds(){return this.transform.getMaxBounds()}setMaxBounds(E){return this.transform.setMaxBounds(Ee.convert(E)),this._update()}setMinZoom(E){if((E=E??-2)>=-2&&E<=this.transform.maxZoom){const u=this.transform.zoom,h=this._getTransformForUpdate();return h.setMinZoom(E),this._applyUpdatedTransform(h),this._update(),u!==this.transform.zoom&&this.fire(new o.n("zoomstart")).fire(new o.n("zoom")).fire(new o.n("zoomend")).fire(new o.n("movestart")).fire(new o.n("move")).fire(new o.n("moveend")),this}throw new Error("minZoom must be between -2 and the current maxZoom, inclusive")}getMinZoom(){return this.transform.minZoom}setMaxZoom(E){if((E=E??22)>=this.transform.minZoom){const u=this.transform.zoom,h=this._getTransformForUpdate();return h.setMaxZoom(E),this._applyUpdatedTransform(h),this._update(),u!==this.transform.zoom&&this.fire(new o.n("zoomstart")).fire(new o.n("zoom")).fire(new o.n("zoomend")).fire(new o.n("movestart")).fire(new o.n("move")).fire(new o.n("moveend")),this}throw new Error("maxZoom must be greater than the current minZoom")}getMaxZoom(){return this.transform.maxZoom}setMinPitch(E){if((E=E??0)<0)throw new Error("minPitch must be greater than or equal to 0");if(E>=0&&E<=this.transform.maxPitch){const u=this.transform.pitch,h=this._getTransformForUpdate();return h.setMinPitch(E),this._applyUpdatedTransform(h),this._update(),u!==this.transform.pitch&&this.fire(new o.n("pitchstart")).fire(new o.n("pitch")).fire(new o.n("pitchend")).fire(new o.n("movestart")).fire(new o.n("move")).fire(new o.n("moveend")),this}throw new Error("minPitch must be between 0 and the current maxPitch, inclusive")}getMinPitch(){return this.transform.minPitch}setMaxPitch(E){if((E=E??60)>180)throw new Error("maxPitch must be less than or equal to 180");if(E>=this.transform.minPitch){const u=this.transform.pitch,h=this._getTransformForUpdate();return h.setMaxPitch(E),this._applyUpdatedTransform(h),this._update(),u!==this.transform.pitch&&this.fire(new o.n("pitchstart")).fire(new o.n("pitch")).fire(new o.n("pitchend")).fire(new o.n("movestart")).fire(new o.n("move")).fire(new o.n("moveend")),this}throw new Error("maxPitch must be greater than the current minPitch")}getMaxPitch(){return this.transform.maxPitch}getAnisotropicFilterPitch(){return this._anisotropicFilterPitch}setAnisotropicFilterPitch(E){if((E=E??20)>180)throw new Error("anisotropicFilterPitch must be less than or equal to 180");if(E<0)throw new Error("anisotropicFilterPitch must be greater than or equal to 0");return this._anisotropicFilterPitch=E,this._update()}getRenderWorldCopies(){return this.transform.renderWorldCopies}setRenderWorldCopies(E){return this.transform.setRenderWorldCopies(E),this._update()}setTransformConstrain(E){return this.transform.setConstrainOverride(E),this._update()}project(E){return this.transform.locationToScreenPoint(o.W.convert(E),this.style&&this.terrain)}unproject(E){return this.transform.screenPointToLocation(o.P.convert(E),this.terrain)}isMoving(){var E;return this._moving||((E=this.handlers)===null||E===void 0?void 0:E.isMoving())}isZooming(){var E;return this._zooming||((E=this.handlers)===null||E===void 0?void 0:E.isZooming())}isRotating(){var E;return this._rotating||((E=this.handlers)===null||E===void 0?void 0:E.isRotating())}_createDelegatedListener(E,u,h){if(E==="mouseenter"||E==="mouseover"){let _=!1;return{layers:u,listener:h,delegates:{mousemove:M=>{const V=u.filter((X=>
822this.getLayer(X))),W=V.length!==0?this.queryRenderedFeatures(M.point,{layers:V}):[];W.length?_||(_=!0,h.call(this,new rs(E,this,M.originalEvent,{features:W}))):_=!1},mouseout:()=>{_=!1}}}}if(E==="mouseleave"||E==="mouseout"){let _=!1;return{layers:u,listener:h,delegates:{mousemove:V=>{const W=u.filter((X=>this.getLayer(X)));(W.length!==0?this.queryRenderedFeatures(V.point,{layers:W}):[]).length?_=!0:_&&(_=!1,h.call(this,new rs(E,this,V.originalEvent)))},mouseout:V=>{_&&(_=!1,h.call(this,new rs(E,this,V.originalEvent)))}}}}{const _=S=>{const M=u.filter((W=>this.getLayer(W))),V=M.length!==0?this.queryRenderedFeatures(S.point,{layers:M}):[];V.length&&(S.features=V,h.call(this,S),delete S.features)};return{layers:u,listener:h,delegates:{[E]:_}}}}_saveDelegatedListener(E,u){var h;this._delegatedListeners||(this._delegatedListeners={}),(h=this._delegatedListeners)[E]||(h[E]=[]),this._delegatedListeners[E].push(u)}_removeDelegatedListener(E,u,h){var _;if(!(!((_=this._delegatedListeners)===null||_===void 0)&&_[E]))return;const S=this._delegatedListeners[E];for(let M=0;M<S.length;M++){const V=S[M];if(V.listener===h&&V.layers.length===u.length&&V.layers.every((W=>u.includes(W)))){for(const W in V.delegates)this.off(W,V.delegates[W]);return void S.splice(M,1)}}}on(E,u,h){if(h===void 0)return super.on(E,u);const _=typeof u=="string"?[u]:u,S=this._createDelegatedListener(E,_,h);this._saveDelegatedListener(E,S);for(const M in S.delegates)this.on(M,S.delegates[M]);return{unsubscribe:()=>{this._removeDelegatedListener(E,_,h)}}}once(E,u,h){if(h===void 0)return super.once(E,u);const _=typeof u=="string"?[u]:u,S=this._createDelegatedListener(E,_,h);for(const M in S.delegates){const V=S.delegates[M];S.delegates[M]=(...W)=>{this._removeDelegatedListener(E,_,h),V(...W)}}this._saveDelegatedListener(E,S);for(const M in S.delegates)this.once(M,S.delegates[M]);return this}off(E,u,h){return h===void 0?super.off(E,u):(this._removeDelegatedListener(E,typeof u=="string"?[u]:u,h),this)}queryRenderedFeatures(E,u){if(!this.style)return[];let h;const _=E instanceof o.P||Array.isArray(E),S=_?E:[[0,0],[this.transform.width,this.transform.height]];if(u||(u=(_?{}:E)||{}),S instanceof o.P||typeof S[0]=="number")h=[o.P.convert(S)];else{const M=o.P.convert(S[0]),V=o.P.convert(S[1]);h=[M,new o.P(V.x,M.y),V,new o.P(M.x,V.y),M]}return this.style.queryRenderedFeatures(h,u,this.transform)}querySourceFeatures(E,u){return this.style.querySourceFeatures(E,u)}setStyle(E,u){return(u=o.e({},{localIdeographFontFamily:this._localIdeographFontFamily,validate:this._val
822idateStyle},u)).diff!==!1&&u.localIdeographFontFamily===this._localIdeographFontFamily&&this.style&&E?(this._diffStyle(E,u),this):(this._localIdeographFontFamily=u.localIdeographFontFamily,this._updateStyle(E,u))}setTransformRequest(E){return this._requestManager.setTransformRequest(E),this}_getUIString(E){const u=this._locale[E];if(u==null)throw new Error(`Missing UI string '${E}'`);return u}_updateStyle(E,u){var h,_,S;if((h=this._diffStyleRequest)===null||h===void 0||h.abort(),this._diffStyleRequest=null,u.transformStyle&&this.style&&!this.style._loaded)return void this.style.once("style.load",(()=>this._updateStyle(E,u)));const M=this.style&&u.transformStyle?this.style.serialize():void 0;return this.style&&(this.style.setEventedParent(null),this.style._remove(!E)),E?(this.style=new Oc(this,u||{}),this.style.setEventedParent(this,{style:this.style}),typeof E=="string"?this.style.loadURL(E,u,M):this.style.loadJSON(E,u,M),this):(this._frameRequest&&(this._frameRequest.abort(),this._frameRequest=null),(S=(_=this.style)===null||_===void 0?void 0:_.projection)===null||S===void 0||S.destroy(),delete this.style,this)}_lazyInitEmptyStyle(){this.style||(this.style=new Oc(this,{}),this.style.setEventedParent(this,{style:this.style}),this.style.loadEmpty())}_diffStyle(E,u){return o._(this,void 0,void 0,(function*(){var h;if((h=this._diffStyleRequest)===null||h===void 0||h.abort(),typeof E=="string"){const _=E;this._diffStyleRequest=new AbortController;const S=this._diffStyleRequest;try{const M=yield this._requestManager.transformRequest(_,"Style");if(S.signal.aborted)return void(this._diffStyleRequest=null);const V=yield o.k(M,S);this._diffStyleRequest=null,this._updateDiff(V.data,u)}catch(M){this._diffStyleRequest=null,o.$(M)||this.fire(new o.l(o.d(M)))}}else typeof E=="object"&&(this._diffStyleRequest=null,this._updateDiff(E,u))}))}_updateDiff(E,u){try{this.style.setState(E,u)&&this._update(!0)}catch(h){o.w(`Unable to perform style diff: ${o.d(h).message}.  Rebuilding the style from scratch.`),this._updateStyle(E,u)}}getStyle(){if(this.style)return this.style.serialize()}_getStyleAndImages(){return this.style?{style:this.style.serialize(),images:this.style.imageManager.cloneImages()}:{style:null,images:{}}}isStyleLoaded(){if(this.style)return this.style.loaded();o.w("There is no style added to the map.")}addSource(E,u){return this._lazyInitEmptyStyle(),this.style.addSource(E,u),this._update(!0)}isSourceLoaded(E){var u;const h=(u=this.style)===null||u===void 0?void 0:u.tileManagers[E];if(h!==void 0)return h.loaded();this.fire(new o.l(new Error(`There is no tile manager with ID '${E}'`)))}setTerrain(E){if(this.style._checkLoaded(),this._terrainDataCallback&&this.style.off("data",this._terrainDataCallback),E){const u=this.style.tileManagers[E.source];if(!u)throw new Error(`cannot load terrain, because there exists no source with ID: ${E.source}`);this.terrain===null&&u.reload();for(const h in this.style._layers){const _=this.style._layers[h];_.type==="hillshade"&&_.source===E.source&&o.w("You are using the same source for a hillshade layer and for 3D terrain. Please consider using two separate sources to improve rendering quality."),_.type==="color-relief"&&_.source===E.source&&o.w("You are using the same source for a color-relief layer and for 3D terrain. Please consider using two separate sources to improve rendering quality.")}this.terrain=new mh(this.painter,u,E),this.painter.renderToTexture=new A0(this.painter,this.terrain),this.transform.setMinElevationForCurrentTile(this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom)),this.transform.setElevation(this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom)),this._terrainDataCallback=h=>{var _;h.dataType==="style"?this.terrain.tileManager.freeRtt():h.dataType==="source"&&h.tile&&(h.sourceId!==E.source||this._elevationFreeze||(this.transform.setMinElevationForCurrentTile(this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom)),this._centerClampedToGround&&this.transform.setElevation(this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom))),((_=h.source)===null||_===void 0?void 0:_.type)==="image"?this.terrain.tileManager.freeRtt():this.terrain.tileManager.freeRtt(h.tile.tileID))},this.style.on("data",this._terrainDataCallback)}else this.terrain&&this.terrain.destroy(),this.terrain=null,this.painter.renderToTexture&&this.painter.renderToTexture.destruct(),this.painter.renderToTexture=null,this.transform.setMinElevationForCurrentTile(0),this._centerClampedToGroun
vendor: 5,579 bytes, line 822
822d&&this.transform.setElevation(0);return this.fire(new o.n("terrain",{terrain:E})),this}getTerrain(){var E,u;return(u=(E=this.terrain)===null||E===void 0?void 0:E.options)!==null&&u!==void 0?u:null}areTilesLoaded(){var E;const u=(E=this.style)===null||E===void 0?void 0:E.tileManagers;for(const h of Object.values(u))if(!h.areTilesLoaded())return!1;return!0}removeSource(E){return this.style.removeSource(E),this._update(!0)}getSource(E){return this.style.getSource(E)}setSourceTileLodParams(E,u,h){if(h){const _=this.getSource(h);if(!_)throw new Error(`There is no source with ID "${h}", cannot set LOD parameters`);_.calculateTileZoom=wc(Math.max(1,E),Math.max(1,u))}else for(const _ in this.style.tileManagers)this.style.tileManagers[_].getSource().calculateTileZoom=wc(Math.max(1,E),Math.max(1,u));return this._update(!0),this}refreshTiles(E,u){const h=this.style.tileManagers[E];if(!h)throw new Error(`There is no tile manager with ID "${E}", cannot refresh tile`);u===void 0?h.reload(!0):h.refreshTiles(u.map((_=>new o.aa(_.z,_.x,_.y))))}addImage(E,u,h={}){const{pixelRatio:_=1,sdf:S=!1,stretchX:M,stretchY:V,content:W,textFitWidth:X,textFitHeight:re}=h;if(this._lazyInitEmptyStyle(),!(u instanceof HTMLImageElement||o.b(u))){if(u.width===void 0||u.height===void 0)return this.fire(new o.l(new Error("Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));{const{width:ie,height:he,data:ge}=u,we=u;return this.style.addImage(E,{data:new o.R({width:ie,height:he},new Uint8Array(ge)),pixelRatio:_,stretchX:M,stretchY:V,content:W,textFitWidth:X,textFitHeight:re,sdf:S,version:0,userImage:we}),we.onAdd&&we.onAdd(this,E),this}}{const{width:ie,height:he,data:ge}=x.getImageData(u);this.style.addImage(E,{data:new o.R({width:ie,height:he},ge),pixelRatio:_,stretchX:M,stretchY:V,content:W,textFitWidth:X,textFitHeight:re,sdf:S,version:0})}}updateImage(E,u){const h=this.style.getImage(E);if(!h)return this.fire(new o.l(new Error("The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.")));const _=u instanceof HTMLImageElement||o.b(u)?x.getImageData(u):u,{width:S,height:M,data:V}=_;if(S===void 0||M===void 0)return this.fire(new o.l(new Error("Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));if(S!==h.data.width||M!==h.data.height)return this.fire(new o.l(new Error("The width and height of the updated image must be that same as the previous version of the image")));const W=!(u instanceof HTMLImageElement||o.b(u));return h.data.replace(V,W),this.style.updateImage(E,h),this}getImage(E){return this.style.getImage(E)}hasImage(E){return E?!!this.style.getImage(E):(this.fire(new o.l(new Error("Missing required image id"))),!1)}removeImage(E){this.style.removeImage(E)}loadImage(E){return o._(this,void 0,void 0,(function*(){return O.getImage(yield this._requestManager.transformRequest(E,"Image"),new AbortController)}))}listImages(){return this.style.listImages()}addLayer(E,u){return this._lazyInitEmptyStyle(),this.style.addLayer(E,u),this._update(!0)}moveLayer(E,u){return this.style.moveLayer(E,u),this._update(!0)}removeLayer(E){return this.style.removeLayer(E),this._update(!0)}getLayer(E){return this.style.getLayer(E)}getLayersOrder(){return this.style.getLayersOrder()}setLayerZoomRange(E,u,h){return this.style.setLayerZoomRange(E,u,h),this._update(!0)}setFilter(E,u,h={}){return this.style.setFilter(E,u,h),this._update(!0)}getFilter(E){return this.style.getFilter(E)}setPaintProperty(E,u,h,_={}){return this.style.setPaintProperty(E,u,h,_),this._update(!0)}getPaintProperty(E,u){return this.style.getPaintProperty(E,u)}setLayoutProperty(E,u,h,_={}){return this.style.setLayoutProperty(E,u,h,_),this._update(!0)}getLayoutProperty(E,u){return this.style.getLayoutProperty(E,u)}setGlyphs(E,u={}){return this._lazyInitEmptyStyle(),this.style.setGlyphs(E,u),this._update(!0)}getGlyphs(){return this.style.getGlyphsUrl()}addSprite(E,u,h={}){return this._lazyInitEmptyStyle(),this.style.addSprite(E,u,h,(_=>{_||this._update(!0)})),this}removeSprite(E){return this._lazyInitEmptyStyle(),this.style.removeSprite(E),this._update(!0)}getSprite(){return this.style.getSprite()}setSprite(E,u={}){return this._lazyInitEmptyStyle(),this.style.setSprite(E,u,(h=>{h||this._update(!0)})),this}setLight(E,u={}){return this._lazyInitEmptyStyle(),this.style.setLight(E,u),this._update(!0)}getLight(){return this.style.getLight()}setSky(E,u={}){return this._lazyInitEmptyStyle(),this.style.setSky(E,u),this._update(!0)}getSky(){return this.style.getSky()}setFeatureState(E,u){return this.style.setFeatureState(E,u),this._update()}removeFeatureState(E,u){return this.style.removeFeatureState(E,u),this._update()}getFeatureState(E){return this.style.getFeatureState(E)}getContainer(){return this._container}getCanvasContainer(){return this._canvasContainer}getCanvas(){return this._canvas}_containerDimensions(){let E=0,u=0;return this._container&&(E=this._container.clientWidth||400,u=this._container.clientHeight||300),[E,u]}_setupResizeObserver(){var E;let u=!1;const h=Ys((S=>{this._trackResize&&!this._removed&&(this.resize(S),this.redraw())}),50),_=(E=this._ownerWindow.ResizeObserver)!==null&&E!==void 0?E:ResizeObserver;this._resizeObserver=new _((S=>{u?h(S):u=!0})),this._resizeObserver.observe(this._container)}
822_resolveContainer(E){if(typeof E=="string"){const u=document.getElementById(E);if(!u)throw new Error(`Container '${E}' not found.`);return u}if(E instanceof HTMLElement||E&&typeof E=="object"&&E.nodeType===1)return E;throw new Error("Invalid type: 'container' must be a String or HTMLElement.")}_setupContainer(){const E=this._container;E.classList.add("maplibregl-map");const u=this._canvasContainer=I.create("div","maplibregl-canvas-container",E);this._interactive&&u.classList.add("maplibregl-interactive"),this._canvas=I.create("canvas","maplibregl-canvas",u),this._canvas.addEventListener("webglcontextlost",this._contextLost,!1),this._canvas.addEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.setAttribute("tabindex",this._interactive?"0":"-1"),this._canvas.setAttribute("aria-label",this._getUIString("Map.Title")),this._canvas.setAttribute("role","region");const h=this._containerDimensions(),_=this._getClampedPixelRatio(h[0],h[1]);this._resizeCanvas(h[0],h[1],_);const S=this._controlContainer=I.create("div","maplibregl-control-container",E),M=this._controlPositions={};for(const V of["top-left","top-right","bottom-left","bottom-right"])M[V]=I.create("div",`maplibregl-ctrl-${V} `,S);this._container.addEventListener("scroll",this._onMapScroll,!1)}_resizeCanvas(E,u,h){this._canvas.width=Math.floor(h*E),this._canvas.height=Math.floor(h*u),this._canvas.style.width=`${E}px`,this._canvas.style.height=`${u}px`}_setupPainter(){const E=Object.assign(Object.assign({},this._canvasContextAttributes),{alpha:!0,depth:!0,stencil:!0,premultipliedAlpha:!0});let u=null;this._canvas.addEventListener("webglcontextcreationerror",(_=>{u={requestedAttributes:E},_&&(u.statusMessage=_.statusMessage,u.type=_.type)}),{once:!0});let h=null;if(h=this._canvasContextAttributes.contextType?this._canvas.getContext(this._canvasContextAttributes.contextType,E):this._canvas.getContext("webgl2",E)||this._canvas.getContext("webgl",E),!h){const _="Failed to initialize WebGL";throw u?(u.message=_,new Error(JSON.stringify(u))):new Error(_)}this.painter=new sh(h,this.transform)}migrateProjection(E,u){super.migrateProjection(E,u),this.painter.transform=E,this.fire(new o.n("projectiontransition",{newProjection:this.style.projection.name}))}loaded(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()}_update(E){var u;return!((u=this.style)===null||u===void 0)&&u._loaded?(this._styleDirty||(this._styleDirty=E),this._sourcesDirty=!0,this.triggerRepaint(),this):this}_requestRenderFrame(E){return this._update(),this._renderTaskQueue.add(E)}_cancelRenderFrame(E){this._renderTaskQueue.remove(E)}_render(E){var u,h,_,S,M,V;const W=this._idleTriggered?this._fadeDuration:0,X=((u=this.style.projection)===null||u===void 0?void 0:u.transitionState)>0;if(this.painter.context.setDirty(),this.painter.setBaseState(),this._renderTaskQueue.run(E),this._removed)return;let re=!1;if(this.style&&this._styleDirty){this._styleDirty=!1;const ge=this.transform.zoom,we=A();this.style.zoomHistory.update(ge,we);const Le=new o.J(ge,{now:we,fadeDuration:W,zoomHistory:this.style.zoomHistory,transition:this.style.getTransition()}),He=Le.crossFadingFactor();He===1&&He===this._crossFadingFactor||(re=!0,this._crossFadingFactor=He),this.style.update(Le)}const ie=((h=this.style.projection)===null||h===void 0?void 0:h.transitionState)>0!==X;(_=this.style.projection)===null||_===void 0||_.setErrorQueryLatitudeDegrees(this.transform.center.lat),this.transform.setTransitionState((S=this.style.projection)===null||S===void 0?void 0:S.transitionState,(M=this.style.projection)===null||M===void 0?void 0:M.latitudeErrorCorrectionRadians),this.style&&(this._sourcesDirty||ie)&&(this._sourcesDirty=!1,this.style._updateSources(this.transform)),this.terrain?(this.terrain.tileManager.update(this.transform,this.terrain),this.transform.setMinElevationForCurrentTile(this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom)),!this._elevationFreeze&&this._centerClampedToGround&&this.transform.setElevation(this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom))):(this.transform.setMinElevationForCurrentTile(0),this._centerClampedToGroun
vendor: 6,443 bytes, line 822
822d&&this.transform.setElevation(0)),this._placementDirty=(V=this.style)===null||V===void 0?void 0:V._updatePlacement(this.transform,this.showCollisionBoxes,W,this._crossSourceCollisions,ie),this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showOverdrawInspector:this._showOverdrawInspector,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:W,showPadding:this.showPadding,anisotropicFilterPitch:this.getAnisotropicFilterPitch()}),this.fire(new o.n("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,this.fire(new o.n("load"))),this.style&&(this.style.hasTransitions()||re)&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles();const he=this._sourcesDirty||this._styleDirty||this._placementDirty;return he||this._repaint?this.triggerRepaint():!this.isMoving()&&this.loaded()&&this.fire(new o.n("idle")),!this._loaded||this._fullyLoaded||he||(this._fullyLoaded=!0),this}redraw(){return this.style&&(this._frameRequest&&(this._frameRequest.abort(),this._frameRequest=null),this._render(0)),this}remove(){var E,u;this._hash&&this._hash.remove();for(const _ of this._controls)_.onRemove(this);this._controls=[],this._frameRequest&&(this._frameRequest.abort(),this._frameRequest=null),this._renderTaskQueue.clear(),(E=this._diffStyleRequest)===null||E===void 0||E.abort(),this.painter.destroy(),this.handlers.destroy(),delete this.handlers,this.setStyle(null),typeof window<"u"&&this._ownerWindow.removeEventListener("online",this._onWindowOnline,!1),O.removeThrottleControl(this._imageQueueHandle),(u=this._resizeObserver)===null||u===void 0||u.disconnect();const h=this.painter.context.gl.getExtension("WEBGL_lose_context");h?.loseContext&&h.loseContext(),this._canvas.removeEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.removeEventListener("webglcontextlost",this._contextLost,!1),this._canvasContainer.remove(),this._controlContainer.remove(),this._container.removeEventListener("scroll",this._onMapScroll,!1),this._container.classList.remove("maplibregl-map"),this._removed=!0,this.fire(new o.n("remove"))}triggerRepaint(){this.style&&!this._frameRequest&&(this._frameRequest=new AbortController,x.frame(this._frameRequest,(E=>{this._frameRequest=null;try{this._render(E)}catch(u){if(!o.$(u)&&!(function(h){return h.message===Jp})(u))throw u}}),(()=>{}),this._ownerWindow))}get showTileBoundaries(){return!!this._showTileBoundaries}set showTileBoundaries(E){this._showTileBoundaries!==E&&(this._showTileBoundaries=E,this._update())}get showPadding(){return!!this._showPadding}set showPadding(E){this._showPadding!==E&&(this._showPadding=E,this._update())}get showCollisionBoxes(){return!!this._showCollisionBoxes}set showCollisionBoxes(E){this._showCollisionBoxes!==E&&(this._showCollisionBoxes=E,E?this.style._generateCollisionBoxes():this._update())}get showOverdrawInspector(){return!!this._showOverdrawInspector}set showOverdrawInspector(E){this._showOverdrawInspector!==E&&(this._showOverdrawInspector=E,this._update())}get repaint(){return!!this._repaint}set repaint(E){this._repaint!==E&&(this._repaint=E,this.triggerRepaint())}get vertices(){return!!this._vertices}set vertices(E){this._vertices=E,this._update()}get version(){return am}getCameraTargetElevation(){return this.transform.elevation}getProjection(){return this.style.getProjection()}setProjection(E){return this._lazyInitEmptyStyle(),this.style.setProjection(E),this._update(!0)}};const om={showCompass:!0,showZoom:!0,visualizePitch:!1,visualizeRoll:!0};class Zd{constructor(u,h,_=!1){this.mousedown=M=>{this.startMove(M,I.mousePos(this.element,M)),window.addEventListener("mousemove",this.mousemove),window.addEventListener("mouseup",this.mouseup)},this.mousemove=M=>{this.move(M,I.mousePos(this.element,M))},this.mouseup=M=>{this._rotatePitchHandler.dragEnd(M),this.offTemp()},this.touchstart=M=>{M.targetTouches.length!==1?this.reset():(this._startPos=this._lastPos=I.touchPos(this.element,M.targetTouches)[0],this.startMove(M,this._startPos),window.addEventListener("touchmove",this.touchmove,{passive:!1}),window.addEventListener("touchend",this.touchend))},this.touchmove=M=>{M.targetTouches.length!==1?this.reset():(this._lastPos=I.touchPos(this.element,M.targetTouches)[0],this.move(M,this._lastPos))},this.touchend=M=>{M.targetTouches.length===0&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos)<this._clickTolerance&&this.element.click(),delete this._startPos,delete this._lastPos,this.offTemp()},this.reset=()=>{this._rotatePitchHandler.reset(),delete this._startPos,delete this._lastPos,this.offTemp()},this._clickTolerance=10,this.element=h;const S=new Ao;this._rotatePitchHandler=new Yl({clickTolerance:3,move:(M,V)=>{const W=h.getBoundingClientRect(),X=new o.P((W.bottom-W.top)/2,(W.right-W.left)/2);return{bearingDelta:o.cx(new o.P(M.x,V.y),V,X),pitchDelta:_?-.5*(V.y-M.y):void 0}},moveStateManager:S,enable:!0,assignEvents:()=>{}}),this.map=u,h.addEventListener("mousedown",this.mousedown),h.addEventListener("touchstart",this.touchstart,{passive:!1}),h.addEventListener("touchcancel",this.reset)}startMove(u,h){this._rotatePitchHandler.dragStart(u,h),I.disableDrag()}move(u,h){const _=this.map,{bearingDelta:S,pitchDelta:M}=this._rotatePitchHandler.dragMove(u,h)||{};S&&_.setBearing(_.getBearing()+S),M&&_.setPitch(_.getPitch()+M)}off(){const u=this.element;u.removeEventListener("mousedown",this.mousedown),u.removeEventListener("touchstart",this.touchstart),window.removeEventListener("touchmove",this.touchmove),window.removeEventListener("touchend",this.touchend),u.removeEventListener("touchcancel",this.reset),this.offTemp()}offTemp(){I.enableDrag(),window.removeEventListener("mousemove",this.mousemove),window.removeEventListener("mouseup",this.mouseup),window.removeEventListener("touchmove",this.touchmove),window.removeEventListener("touchend",this.touchend)}}let Ms;function sm(E,u,h,_=!1){if(_||!h.getCoveringTilesDetailsProvider().allowWorldCopies())return E?.wrap();const S=new o.W(E.lng,E.lat);if(E=new o.W(E.lng,E.lat),u){const M=new o.W(E.lng-360,E.lat),V=new o.W(E.lng+360,E.lat),W=h.locationToScreenPoint(E).distSqr(u);h.locationToScreenPoint(M).distSqr(u)<W?E=M:h.locationToScreenPoint(V).distSqr(u)<W&&(E=V)}for(;Math.abs(E.lng-h.center.lng)>180;){const M=h.locationToScreenPoint(E);if(M.x>=0&&M.y>=0&&M.x<=h.width&&M.y<=h.height)break;E.lng>h.center.lng?E.lng-=360:E.lng+=360}
822return E.lng!==S.lng&&h.isPointOnMapSurface(h.locationToScreenPoint(E))?E:S}const Kd={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};function yh(E,u,h){const _=E.classList;for(const S in Kd)_.remove(`maplibregl-${h}-anchor-${S}`);_.add(`maplibregl-${h}-anchor-${u}`)}class vh extends o.E{constructor(u){if(super(),this._onClick=h=>{this.fire(new o.n("click",{originalEvent:h}))},this._onKeyPress=h=>{h.code!=="Space"&&h.code!=="Enter"||this.togglePopup()},this._onMapClick=h=>{const _=h.originalEvent.target,S=this._element;this._popup&&(_===S||S.contains(_))&&this.togglePopup()},this._update=h=>{if(!this._map)return;const _=this._map.loaded()&&!this._map.isMoving();(h?.type==="terrain"||h?.type==="render"&&!_)&&this._map.once("render",this._update),this._lngLat=sm(this._lngLat,this._flatPos,this._map.transform),this._flatPos=this._pos=this._map.project(this._lngLat)._add(this._offset),this._map.terrain&&(this._flatPos=this._map.transform.locationToScreenPoint(this._lngLat)._add(this._offset));let S="";this._rotationAlignment==="viewport"||this._rotationAlignment==="auto"?S=`rotateZ(${this._rotation}deg)`:this._rotationAlignment==="map"&&(S=`rotateZ(${this._rotation-this._map.getBearing()}deg)`);let M="";this._pitchAlignment==="viewport"||this._pitchAlignment==="auto"?M="rotateX(0deg)":this._pitchAlignment==="map"&&(M=`rotateX(${this._map.getPitch()}deg)`),this._subpixelPositioning||h&&h.type!=="moveend"||(this._pos=this._pos.round()),this._element.style.transform=`${Kd[this._anchor]} translate(${this._pos.x}px, ${this._pos.y}px) ${M} ${S}`,x.frameAsync(new AbortController,this._map._ownerWindow).then((()=>{this._updateOpacity(h?.type==="moveend")})).catch((()=>{}))},this._onMove=h=>{if(!this._isDragging){const _=this._clickTolerance||this._map._clickTolerance;this._isDragging=h.point.dist(this._pointerdownPos)>=_}this._isDragging&&(this._pos=h.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none",this._state==="pending"&&(this._state="active",this.fire(new o.n("dragstart"))),this.fire(new o.n("drag")))},this._onUp=()=>{this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),this._state==="active"&&this.fire(new o.n("dragend")),this._state="inactive"},this._addDragHandler=h=>{this._element.contains(h.originalEvent.target)&&(h.preventDefault(),this._positionDelta=h.point.sub(this._pos).add(this._offset),this._pointerdownPos=h.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},this._anchor=u?.anchor||"center",this._color=u?.color||"#3FB1CE",this._scale=u?.scale||1,this._draggable=u?.draggable||!1,this._clickTolerance=u?.clickTolerance||0,this._subpixelPositioning=u?.subpixelPositioning||!1,this._isDragging=!1,this._state="inactive",this._rotation=u?.rotation||0,this._rotationAlignment=u?.rotationAlignment||"auto",this._pitchAlignment=u?.pitchAlignment&&u.pitchAlignment!=="auto"?u.pitchAlignment:this._rotationAlignment,this.setOpacity(u?.opacity,u?.opacityWhenCovered),u?.element)this._element=u.element,this._offset=o.P.convert(u?.offset||[0,0]);else{this._defaultMarker=!0,this._element=I.create("div");const h=I.createNS("http://www.w3.org/2000/svg","svg"),_=41,S=27;h.setAttributeNS(null,"display","block"),h.setAttributeNS(null,"height",`${_}px`),h.setAttributeNS(null,"width",`${S}px`),h.setAttributeNS(null,"viewBox",`0 0 ${S} ${_}`);const M=I.createNS("http://www.w3.org/2000/svg","g");M.setAttributeNS(null,"stroke","none"),M.setAttributeNS(null,"stroke-width","1"),M.setAttributeNS(null,"fill","none"),M.setAttributeNS(null,"fill-rule","evenodd");const V=I.createNS("http://www.w3.org/2000/svg","g");V.setAttributeNS(null,"fill-rule","nonzero");const W=I.createNS("http://www.w3.org/2000/svg","g");W.setAttributeNS(null,"transform","translate(3.0, 29.0)"),W.setAttributeNS(null,"fill","#000000");const X=[{rx:"10.5",ry:"5.25002273"},{rx:"10.5",ry:"5.25002273"},{rx:"9.5",ry:"4.77275007"},{rx:"8.5",ry:"4.29549936"},{rx:"7.5",ry:"3.81822308"},{rx:"6.5",ry:"3.34094679"},{rx:"5.5",ry:"2.86367051"},{rx:"4.5",ry:"2.38636864"}];for(const Ze of X){const et=I.createNS("http://www.w3.org/2000/svg","ellipse");et.setAttributeNS(null,"opacity","0.04"),et.setAttributeNS(null,"cx","10.5"),et.setAttributeNS(null,"cy","5.80029008"),et.setAttributeNS(null,"rx",Ze.rx),et.setAttributeNS(null,"ry",Ze.ry),W.appendChild(et)}const re=I.createNS("http://www.w3.org/2000/svg","g");re.setAttributeNS(null,"fill",this._color);const ie=I.createNS("http://www.w3.org/2000/svg","path");
vendor: 4,303 bytes, line 822
822ie.setAttributeNS(null,"d","M27,13.5 C27,19.074644 20.250001,27.000002 14.75,34.500002 C14.016665,35.500004 12.983335,35.500004 12.25,34.500002 C6.7499993,27.000002 0,19.222562 0,13.5 C0,6.0441559 6.0441559,0 13.5,0 C20.955844,0 27,6.0441559 27,13.5 Z"),re.appendChild(ie);const he=I.createNS("http://www.w3.org/2000/svg","g");he.setAttributeNS(null,"opacity","0.25"),he.setAttributeNS(null,"fill","#000000");const ge=I.createNS("http://www.w3.org/2000/svg","path");ge.setAttributeNS(null,"d","M13.5,0 C6.0441559,0 0,6.0441559 0,13.5 C0,19.222562 6.7499993,27 12.25,34.5 C13,35.522727 14.016664,35.500004 14.75,34.5 C20.250001,27 27,19.074644 27,13.5 C27,6.0441559 20.955844,0 13.5,0 Z M13.5,1 C20.415404,1 26,6.584596 26,13.5 C26,15.898657 24.495584,19.181431 22.220703,22.738281 C19.945823,26.295132 16.705119,30.142167 13.943359,33.908203 C13.743445,34.180814 13.612715,34.322738 13.5,34.441406 C13.387285,34.322738 13.256555,34.180814 13.056641,33.908203 C10.284481,30.127985 7.4148684,26.314159 5.015625,22.773438 C2.6163816,19.232715 1,15.953538 1,13.5 C1,6.584596 6.584596,1 13.5,1 Z"),he.appendChild(ge);const we=I.createNS("http://www.w3.org/2000/svg","g");we.setAttributeNS(null,"transform","translate(6.0, 7.0)"),we.setAttributeNS(null,"fill","#FFFFFF");const Le=I.createNS("http://www.w3.org/2000/svg","g");Le.setAttributeNS(null,"transform","translate(8.0, 8.0)");const He=I.createNS("http://www.w3.org/2000/svg","circle");He.setAttributeNS(null,"fill","#000000"),He.setAttributeNS(null,"opacity","0.25"),He.setAttributeNS(null,"cx","5.5"),He.setAttributeNS(null,"cy","5.5"),He.setAttributeNS(null,"r","5.4999962");const Xe=I.createNS("http://www.w3.org/2000/svg","circle");Xe.setAttributeNS(null,"fill","#FFFFFF"),Xe.setAttributeNS(null,"cx","5.5"),Xe.setAttributeNS(null,"cy","5.5"),Xe.setAttributeNS(null,"r","5.4999962"),Le.appendChild(He),Le.appendChild(Xe),V.appendChild(W),V.appendChild(re),V.appendChild(he),V.appendChild(we),V.appendChild(Le),h.appendChild(V),h.setAttributeNS(null,"height",_*this._scale+"px"),h.setAttributeNS(null,"width",S*this._scale+"px"),this._element.appendChild(h),this._offset=o.P.convert(u?.offset||[0,-14])}if(this._element.classList.add("maplibregl-marker"),this._element.addEventListener("dragstart",(h=>{h.preventDefault()})),this._element.addEventListener("mousedown",(h=>{h.preventDefault()})),yh(this._element,this._anchor,"marker"),u?.className)for(const h of u.className.split(" "))this._element.classList.add(h);this._popup=null}addTo(u){return this.remove(),this._map=u,this._element.hasAttribute("aria-label")||this._element.setAttribute("aria-label",u._getUIString("Marker.Title")),this._element.hasAttribute("role")||this._element.setAttribute("role","button"),u.getCanvasContainer().appendChild(this._element),u.on("move",this._update),u.on("moveend",this._update),u.on("terrain",this._update),u.on("projectiontransition",this._update),this._element.addEventListener("click",this._onClick),this.setDraggable(this._draggable),this._update(),this._map.on("click",this._onMapClick),this}remove(){return this._opacityTimeout&&(clearTimeout(this._opacityTimeout),delete this._opacityTimeout),this._map&&(this._map.off("click",this._onMapClick),this._map.off("move",this._update),this._map.off("moveend",this._update),this._map.off("terrain",this._update),this._map.off("projectiontransition",this._update),this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler),this._map.off("mouseup",this._onUp),this._map.off("touchend",this._onUp),this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),delete this._map),this._element.removeEventListener("click",this._onClick),this._element.remove(),this._popup&&this._popup.remove(),this}getLngLat(){return this._lngLat}setLngLat(u){return this._lngLat=o.W.convert(u),this._pos=null,this._popup&&this._popup.setLngLat(this._lngLat),this._update(),this}getElement(){return this._element}setPopup(u){if(this._popup&&(this._popup.remove(),this._popup=null,this._element.removeEventListener("keypress",this._onKeyPress),this._originalTabIndex||this._element.removeAttribute("tabindex")),u){if(!("offset"in u.options)){const S=Math.abs(13.5)/Math.SQRT2;u.options.offset=this._defaultMarker?{top:[0,0],"top-left":[0,0],"top-right":[0,0],bottom:[
8220,-38.1],"bottom-left":[S,-1*(38.1-13.5+S)],"bottom-right":[-S,-1*(38.1-13.5+S)],left:[13.5,-1*(38.1-13.5)],right:[-13.5,-1*(38.1-13.5)]}:this._offset}this._popup=u,this._originalTabIndex=this._element.getAttribute("tabindex"),this._originalTabIndex||this._element.setAttribute("tabindex","0"),this._element.addEventListener("keypress",this._onKeyPress)}return this}setSubpixelPositioning(u){return this._subpixelPositioning=u,this}getPopup(){return this._popup}togglePopup(){const u=this._popup;return this._element.style.opacity===this._opacityWhenCovered?this:u?(u.isOpen()?u.remove():(u.setLngLat(this._lngLat),u.addTo(this._map)),this):this}_updateOpacity(u=!1){var h,_;const S=(h=this._map)===null||h===void 0?void 0:h.terrain,M=this._map.transform.isLocationOccluded(this._lngLat);if(!S||M){const we=M?this._opacityWhenCovered:this._opacity;return void(this._element.style.opacity!==we&&(this._element.style.opacity=we,this._element.classList.toggle("maplibregl-marker-covered",M)))}if(u)this._opacityTimeout=null;else{if(this._opacityTimeout)return;this._opacityTimeout=setTimeout((()=>{this._opacityTimeout=null}),100)}const V=this._map,W=V.terrain.depthAtPoint(this._pos),X=V.terrain.getElevationForLngLat(this._lngLat,V.transform);if(V.transform.lngLatToCameraDepth(this._lngLat,X)-W<.006)return this._element.style.opacity=this._opacity,void this._element.classList.remove("maplibregl-marker-covered");const re=-this._offset.y/V.transform.pixelsPerMeter,ie=Math.sin(V.getPitch()*Math.PI/180)*re,he=V.terrain.depthAtPoint(new o.P(this._pos.x,this._pos.y-this._offset.y)),ge=V.transform.lngLatToCameraDepth(this._lngLat,X+ie)-he>.006;!((_=this._popup)===null||_===void 0)&&_.isOpen()&&ge&&this._popup.remove(),this._element.style.opacity=ge?this._opacityWhenCovered:this._opacity,this._element.classList.toggle("maplibregl-marker-covered",ge)}getOffset(){return this._offset}setOffset(u){return this._offset=o.P.convert(u),this._update(),this}addClassName(u){this._element.classList.add(u)}removeClassName(u){this._element.classList.remove(u)}toggleClassName(u){return this._element.classList.toggle(u)}setDraggable(u){return this._draggable=!!u,this._map&&(u?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this}isDraggable(){return this._draggable}setRotation(u){return this._rotation=u||0,this._update(),this}getRotation(){return this._rotation}setRotationAlignment(u){return this._rotationAlignment=u||"auto",this._update(),this}getRotationAlignment(){return this._rotationAlignment}setPitchAlignment(u){return this._pitchAlignment=u&&u!=="auto"?u:this._rotationAlignment,this._update(),this}getPitchAlignment(){return this._pitchAlignment}setOpacity(u,h){return(this._opacity===void 0||u===void 0&&h===void 0)&&(this._opacity="1",this._opacityWhenCovered="0.2"),u!==void 0&&(this._opacity=String(u)),h!==void 0&&(this._opacityWhenCovered=String(h)),this._map&&this._updateOpacity(!0),this}}const lm={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0};let Xd=0,Xl=!1;const um={maxWidth:100,unit:"metric"};function Kc(E,u,h){const _=h?.maxWidth||100,S=E._container.clientHeight/2,M=E._container.clientWidth/2,V=E.unproject([M-_/2,S]),W=E.unproject([M+_/2,S]),X=Math.round(E.project(W).x-E.project(V).x),re=Math.min(_,X,E._container.clientWidth),ie=V.distanceTo(W);if(h?.unit==="imperial"){const he=3.2808*ie;he>5280?Xc(u,re,he/5280,E._getUIString("ScaleControl.Miles")):Xc(u,re,he,E._getUIString("ScaleControl.Feet"))}else h?.unit==="nautical"?Xc(u,re,ie/1852,E._getUIString("ScaleControl.NauticalMiles")):ie>=1e3?Xc(u,re,ie/1e3,E._getUIString("ScaleControl.Kilometers")):Xc(u,re,ie,E._getUIString("ScaleControl.Meters"))}function Xc(E,u,h,_){const S=(function(M){const V=Math.pow(10,`${Math.floor(M)}`.length-1);let W=M/V;return W=W>=10?10:W>=5?5:W>=3?3:W>=2?2:W>=1?1:(function(X){const re=Math.pow(10,Math.ceil(-Math.log(X)/Math.LN10));return Math.round(X*re)/re})(W),V*W})(h);E.style.width=u*(S/h)+"px",E.innerHTML=`${S}&nbsp;${_}`}const _h={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px",subpixelPositioning:!1,locationOccludedOpacity:void 0,padding:void 0}
vendor: 4,955 bytes, line 822
822,hr=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", ");function cm(E){if(E){if(typeof E=="number"){const u=Math.round(Math.abs(E)/Math.SQRT2);return{center:new o.P(0,0),top:new o.P(0,E),"top-left":new o.P(u,u),"top-right":new o.P(-u,u),bottom:new o.P(0,-E),"bottom-left":new o.P(u,-u),"bottom-right":new o.P(-u,-u),left:new o.P(E,0),right:new o.P(-E,0)}}if(E instanceof o.P||Array.isArray(E)){const u=o.P.convert(E);return{center:u,top:u,"top-left":u,"top-right":u,bottom:u,"bottom-left":u,"bottom-right":u,left:u,right:u}}return{center:o.P.convert(E.center||[0,0]),top:o.P.convert(E.top||[0,0]),"top-left":o.P.convert(E["top-left"]||[0,0]),"top-right":o.P.convert(E["top-right"]||[0,0]),bottom:o.P.convert(E.bottom||[0,0]),"bottom-left":o.P.convert(E["bottom-left"]||[0,0]),"bottom-right":o.P.convert(E["bottom-right"]||[0,0]),left:o.P.convert(E.left||[0,0]),right:o.P.convert(E.right||[0,0])}}return cm(new o.P(0,0))}const I0=f;s.AJAXError=o.cG,s.EXTENT=o.a6,s.Event=o.n,s.Evented=o.E,s.LngLat=o.W,s.MercatorCoordinate=o.a7,s.Point=o.P,s.addProtocol=o.cH,s.config=o.c,s.removeProtocol=o.cI,s.AttributionControl=Ja,s.BoxZoomHandler=yl,s.CanvasSource=Jt,s.CooperativeGesturesHandler=Rn,s.DoubleClickZoomHandler=Kl,s.DragPanHandler=is,s.DragRotateHandler=ph,s.EdgeInsets=Bd,s.FullscreenControl=class extends o.E{constructor(E={}){var u;super(),this._onFullscreenChange=()=>{var h;let _=window.document.fullscreenElement||window.document.webkitFullscreenElement;for(;!((h=_?.shadowRoot)===null||h===void 0)&&h.fullscreenElement;)_=_.shadowRoot.fullscreenElement;_===this._container!==this._fullscreen&&this._handleFullscreenChange()},this._onClickFullscreen=()=>{this._isFullscreen()?this._exitFullscreen():this._requestFullscreen()},this._fullscreen=!1,this._pseudo=(u=E.pseudo)!==null&&u!==void 0&&u,E?.container&&(E.container instanceof HTMLElement?this._container=E.container:o.w("Full screen control 'container' must be a DOM element.")),"onfullscreenchange"in document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in document&&(this._fullscreenchange="MSFullscreenChange")}onAdd(E){return this._map=E,this._container||(this._container=this._map.getContainer()),this._controlContainer=I.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._setupUI(),this._controlContainer}onRemove(){this._controlContainer.remove(),this._map=null,window.document.removeEventListener(this._fullscreenchange,this._onFullscreenChange)}_setupUI(){const E=this._fullscreenButton=I.create("button","maplibregl-ctrl-fullscreen",this._controlContainer);I.create("span","maplibregl-ctrl-icon",E).setAttribute("aria-hidden","true"),E.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),window.document.addEventListener(this._fullscreenchange,this._onFullscreenChange)}_updateTitle(){const E=this._getTitle();this._fullscreenButton.setAttribute("aria-label",E),this._fullscreenButton.title=E}_getTitle(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")}_isFullscreen(){return this._fullscreen}_handleFullscreenChange(){this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("maplibregl-ctrl-shrink"),this._fullscreenButton.classList.toggle("maplibregl-ctrl-fullscreen"),this._updateTitle(),this._fullscreen?(this.fire(new o.n("fullscreenstart")),this._prevCooperativeGesturesEnabled=this._map.cooperativeGestures.isEnabled(),this._map.cooperativeGestures.disable()):(this.fire(new o.n("fullscreenend")),this._prevCooperativeGesturesEnabled&&this._map.cooperativeGestures.enable())}_exitFullscreen(){this._pseudo?this._togglePseudoFullScreen():window.document.exitFullscreen?window.document.exitFullscreen():window.document.webkitCancelFullScreen?window.document.webkitCancelFullScreen():this._togglePseudoFullScreen()}_requestFullscreen(){this._pseudo?this._togglePseudoFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.webkitRequestFullscreen?this._container.webkitRequestFullscreen():this._togglePseudoFullScreen()}_togglePseudoFullScreen(){this._container.classList.toggle("maplibregl-pseudo-fullscreen"),this._handleFullscreenChange(),this._map.resize()}},s.GeoJSONSource=Yt,s.GeolocateControl=class extends o.E{constructor(E){super(),this._onSuccess=u=>{if(this._map){if(this._isOutOfMapMaxBounds(u))return this._setErrorState(),this.fire(new o.n("outofmaxbounds",u)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=u,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_E
822RROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background");break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(u),this.options.trackUserLocation&&this._watchState!=="ACTIVE_LOCK"||this._updateCamera(u),this.options.showUserLocation&&this._dotElement.classList.remove("maplibregl-user-location-dot-stale"),this.fire(new o.n("geolocate",u)),this._finish()}},this._updateCamera=u=>{const h=new o.W(u.coords.longitude,u.coords.latitude),_=u.coords.accuracy,S=this._map.getBearing(),M=o.e({bearing:S},this.options.fitBoundsOptions),V=Ee.fromLngLat(h,_);this._map.fitBounds(V,M,{geolocateSource:!0})},this._updateMarker=u=>{if(u){const h=new o.W(u.coords.longitude,u.coords.latitude);this._accuracyCircleMarker.setLngLat(h).addTo(this._map),this._userLocationDotMarker.setLngLat(h).addTo(this._map),this._accuracy=u.coords.accuracy,this._updateCircleRadiusIfNeeded()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},this._onUpdate=()=>{this._updateCircleRadiusIfNeeded()},this._onError=u=>{if(this._map){if(u.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;const h=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=h,this._geolocateButton.setAttribute("aria-label",h),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(u.code===3&&Xl)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("maplibregl-user-location-dot-stale"),this.fire(new o.n("error",u)),this._finish()}},this._finish=()=>{this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},this._onMoveStart=u=>{if(!this._map)return;const h=u?.[0]instanceof ResizeObserverEntry;u.geolocateSource||this._watchState!=="ACTIVE_LOCK"||h||this._map.isZooming()||(this._watchState="BACKGROUND",this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this.fire(new o.n("trackuserlocationend")),this.fire(new o.n("userlocationlostfocus")))},this._setupUI=()=>{this._map&&(this._container.addEventListener("contextmenu",(u=>{u.preventDefault()})),this._geolocateButton=I.create("button","maplibregl-ctrl-geolocate",this._container),I.create("span","maplibregl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden","true"),this._geolocateButton.type="button",this._geolocateButton.disabled=!0)},this._finishSetupUI=u=>{if(this._map){if(u===!1){o.w("Geolocation support is not available so the GeolocateControl will be disabled.");const h=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=h,this._geolocateButton.setAttribute("aria-label",h)}else{const h=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.disabled=!1,this._geolocateButton.title=h,this._geolocateButton.setAttribute("aria-label",h)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=I.create("div","maplibregl-user-location-dot"),this._userLocationDotMarker=new vh({element:this._dotElement}),this._circleElement=I.create("div","maplibregl-user-location-accuracy-circle"),this._accuracyCircleMarker=new vh({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onUpdate),this._map.on("move",this._onUpdate),this._map.on("rotate",this._onUpdate),this._map.on("pitch",this._onUpdate)),this._geolocateButton.addEventListener("click",(()=>this.trigger())),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",this._onMoveStart)}},this.options=o.e({},lm,E)}onAdd(E){return this._map=E,this._container=I.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._setupUI(),(function(){return o._(this,arguments,void 0,(function*(u=!1){if(Ms!==void 0&&!u)return Ms;if(window.navigator.permissions===void 0)return Ms=!!window.navigator.geolocation,Ms;try{Ms=(yield window.navigator.permissions.query({name:"geolocation"})).state!=="denied"}catch{Ms=!!window.navigator.geolocation}return Ms}))})().then((u=>this._finishSetupUI(u))),this._container}onRemove(){this._geolocationWatchID!==void 0&&(window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),this._container.remove(),this._map.off("movestart",this._onMoveStart),this._map.off("zoom",this._onUpdate),this._map.off("move",this._onUpdate),this._map.off("rotate",this._onUpdate),this._map.off("pitch",this._onUpdate),this._map=void 0,Xd=0,Xl=!1}_isOutOfMapMaxBounds(E){const u=this._map.getMaxBounds(),h=E.coords;return u&&(h.longitude<u.getWest()||h.longitude>u.getEast()||h.latitude<u.getSouth()||h.latitude>u.getNorth())}_setErrorState(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_E
822RROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting");break;case"ACTIVE_ERROR":case"BACKGROUND_ERROR":case"OFF":case void 0:break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}}_updateCircleRadiusIfNeeded(){const E=this._userLocationDotMarker.getLngLat();if(!(this.options.showUserLocation&&this.options.showAccuracyCircle&&this._accuracy&&E))return;const u=this._map.project(E),h=this._map.unproject([u.x+100,u.y]),_=E.distanceTo(h)
vendor: 8,917 bytes, line 822
822/100,S=2*this._accuracy/_;this._circleElement.style.width=`${S.toFixed(2)}px`,this._circleElement.style.height=`${S.toFixed(2)}px`}trigger(){if(!this._setup)return o.w("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new o.n("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":Xd--,Xl=!1,this._watchState="OFF",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this.fire(new o.n("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new o.n("trackuserlocationstart")),this.fire(new o.n("userlocationfocus"));break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"OFF":break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){let E;this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),Xd++,Xd>1?(E={maximumAge:6e5,timeout:0},Xl=!0):(E=this.options.positionOptions,Xl=!1),this._geolocationWatchID=window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,E)}}else window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0}_clearWatch(){window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)}},s.GlobeControl=class{constructor(){this._toggleProjection=()=>{var E;const u=(E=this._map.getProjection())===null||E===void 0?void 0:E.type;this._map.setProjection(u!=="mercator"&&u?{type:"mercator"}:{type:"globe"}),this._updateGlobeIcon()},this._updateGlobeIcon=()=>{var E;this._globeButton.classList.remove("maplibregl-ctrl-globe"),this._globeButton.classList.remove("maplibregl-ctrl-globe-enabled"),((E=this._map.getProjection())===null||E===void 0?void 0:E.type)==="globe"?(this._globeButton.classList.add("maplibregl-ctrl-globe-enabled"),this._globeButton.title=this._map._getUIString("GlobeControl.Disable")):(this._globeButton.classList.add("maplibregl-ctrl-globe"),this._globeButton.title=this._map._getUIString("GlobeControl.Enable"))}}onAdd(E){return this._map=E,this._container=I.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._globeButton=I.create("button","maplibregl-ctrl-globe",this._container),I.create("span","maplibregl-ctrl-icon",this._globeButton).setAttribute("aria-hidden","true"),this._globeButton.type="button",this._globeButton.addEventListener("click",this._toggleProjection),this._updateGlobeIcon(),this._map.on("styledata",this._updateGlobeIcon),this._map.on("projectiontransition",this._updateGlobeIcon),this._container}onRemove(){this._container.remove(),this._map.off("styledata",this._updateGlobeIcon),this._map.off("projectiontransition",this._updateGlobeIcon),this._globeButton.removeEventListener("click",this._toggleProjection),this._map=void 0}},s.Hash=lh,s.ImageSource=_t,s.KeyboardHandler=rm,s.LngLatBounds=Ee,s.LogoControl=$0,s.Map=gh,s.MapLibreMap=gh,s.MapMouseEvent=rs,s.MapTouchEvent=uh,s.MapWheelEvent=z1,s.Marker=vh,s.NavigationControl=class{constructor(E){this._updateZoomButtons=()=>{const u=this._map.getZoom(),h=u===this._map.getMaxZoom(),_=u===this._map.getMinZoom();this._zoomInButton.disabled=h,this._zoomOutButton.disabled=_,this._zoomInButton.setAttribute("aria-disabled",h.toString()),this._zoomOutButton.setAttribute("aria-disabled",_.toString())},this._rotateCompassArrow=()=>{this._compassIcon.style.transform=this.options.visualizePitch&&this.options.visualizeRoll?`scale(${1/Math.pow(Math.cos(this._map.transform.pitchInRadians),.5)}) rotateZ(${-this._map.transform.roll}deg) rotateX(${this._map.transform.pitch}deg) rotateZ(${-this._map.transform.bearing}deg)`:this.options.visualizePitch?`scale(${1/Math.pow(Math.cos(this._map.transform.pitchInRadians),.5)}) rotateX(${this._map.transform.pitch}deg) rotateZ(${-this._map.transform.bearing}deg)`:this.options.visualizeRoll?`rotate(${-this._map.transform.bearing-this._map.transform.roll}deg)`:`rotate(${-this._map.transform.bearing}deg)`},this._setButtonTitle=(u,h)=>{const _=this._map._getUIString(`NavigationControl.${h}`);u.title=_,u.setAttribute("aria-label",_)},this.options=o.e({},om,E),this._container=I.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._container.addEventListener("contextmenu",(u=>u.preventDefault())),this.options.showZoom&&(this._zoomInButton=this._createButton("maplibregl-ctrl-zoom-in",(u=>this._map.zoomIn({},{originalEvent:u}))),I.create("span","maplibregl-ctrl-icon",this._zoomInButton).setAttribute("aria-hidden","true"),this._zoomOutButton=this._createButton("maplibregl-ctrl-zoom-out",(u=>this._map.zoomOut({},{originalEvent:u}))),I.create("span","maplibregl-ctrl-icon",this._zoomOutButton).setAttribute("aria-hidden","true")),this.options.showCompass&&(this._compass=this._createButton("maplibregl-ctrl-compass",(u=>{this.options.visualizePitch?this._map.resetNorthPitch({},{originalEvent:u}):this._map.resetNorth({},{originalEvent:u})})),this._compassIcon=I.create("span","maplibregl-ctrl-icon",this._compass),this._compassIcon.setAttribute("aria-hidden","true"))}onAdd(E){return this._map=E,this.options.showZoom&&(this._setButtonTitle(this._zoomInButton,"ZoomIn"),this._setButtonTitle(this._zoomOutButton,"ZoomOut"),this._map.on("zoom",this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&&(this._setButtonTitle(this._compass,"ResetBearing"),this.options.visualizePitch&&this._map.on("pitch",this._rotateCompassArrow),this.options.visualizeRoll&&this._map.on("roll",this._rotateCompassArrow),this._map.on("rotate",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new Zd(this._map,this._compass,this.options.visualizePitch)),this._container}onRemove(){this._container.remove(),this.options.showZoom&&this._map.off("zoom",this._updateZoomButtons),this.options.showCompass&&(this.options.visualizePitch&&this._map.off("pitch",this._rotateCompassArrow),this.options.visualizeRoll&&this._map.off("roll",this._rotateCompassArrow),this._map.off("rotate",this._rotateCompassArrow),this._handler.off(),delete this._handler),delete this._map}_createButton(E,u){const h=I.create("button",E,this._container);return h.type="button",h.addEventListener("click",u),h}},s.Popup=class extends o.E{constructor(E){super(),this._updateOpacity=()=>{this.options.locationOccludedOpacity!==void 0&&(this._container.style.opacity=this._map.transform.isLocationOccluded(this.getLngLat())?`${this.options.locationOccludedOpacity}`:"")},this.remove=()=>(this._content&&this._content.remove(),this._container&&(this._container.remove(),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("terrain",this._update),this._map.off("projectiontransition",this._update),this._map.off("mousemove",this._update),this._map.off("mouseup",this._update),this._map.off("drag",this._update),this._map._canvasContainer.classList.remove("maplibregl-track-pointer"),delete this._map,this.fire(new o.n("close"))),this),this._update=u=>{if(!this._map||!this._lngLat&&!this._trackPointer||!this._content)return;if(!this._container){if(this._container=I.create("div","maplibregl-popup",this._map.getContainer()),this._tip=I.create("div","maplibregl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className)for(const W of this.options.className.split(" "))this._container.classList.add(W);this._closeButton&&this._closeButton.setAttribute("aria-label",this._map._getUIString("Popup.Close")),this._trackPointer&&this._container.classList.add("maplibregl-popup-track-pointer")}let h;
822if(this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._lngLat=sm(this._lngLat,this._flatPos,this._map.transform,this._trackPointer),u&&"point"in u&&u.point&&(h=u.point),this._trackPointer&&!h)return;const _=this._flatPos=this._pos=this._trackPointer&&h?h:this._map.project(this._lngLat);this._map.terrain&&(this._flatPos=this._trackPointer&&h?h:this._map.transform.locationToScreenPoint(this._lngLat));let S=this.options.anchor;const M=cm(this.options.offset);if(!S){const W=this._container.offsetWidth,X=this._container.offsetHeight,re=(function(he){var ge,we,Le,He;return he?{top:(ge=he.top)!==null&&ge!==void 0?ge:0,right:(we=he.right)!==null&&we!==void 0?we:0,bottom:(Le=he.bottom)!==null&&Le!==void 0?Le:0,left:(He=he.left)!==null&&He!==void 0?He:0}:{top:0,right:0,bottom:0,left:0}})(this.options.padding);let ie;ie=_.y+M.bottom.y<X+re.top?["top"]:_.y>this._map.transform.height-X-re.bottom?["bottom"]:[],_.x<W/2+re.left?ie.push("left"):_.x>this._map.transform.width-W/2-re.right&&ie.push("right"),S=ie.length===0?"bottom":ie.join("-")}let V=_.add(M[S]);this.options.subpixelPositioning||(V=V.round()),this._container.style.transform=`${Kd[S]} translate(${V.x}px,${V.y}px)`,yh(this._container,S,"popup"),this._updateOpacity()},this._onClose=()=>{this.remove()},this.options=o.e(Object.create(_h),E)}addTo(E){return this._map&&this.remove(),this._map=E,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._map.on("terrain",this._update),this._map.on("projectiontransition",this._update),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._update),this._map.on("mouseup",this._update),this._container&&this._container.classList.add("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.add("maplibregl-track-pointer")):this._map.on("move",this._update),this.fire(new o.n("open")),this}isOpen(){return!!this._map}getLngLat(){return this._lngLat}setLngLat(E){return this._lngLat=o.W.convert(E),this._pos=null,this._flatPos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._update),this._container&&this._container.classList.remove("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.remove("maplibregl-track-pointer")),this}trackPointer(){return this._trackPointer=!0,this._pos=null,this._flatPos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._update),this._map.on("drag",this._update),this._container&&this._container.classList.add("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.add("maplibregl-track-pointer")),this}getElement(){return this._container}setText(E){return this.setDOMContent(document.createTextNode(E))}setHTML(E){const u=document.createDocumentFragment(),h=document.createElement("body");let _;for(h.innerHTML=E;_=h.firstChild,_;)u.appendChild(_);return this.setDOMContent(u)}getMaxWidth(){var E;return(E=this._container)===null||E===void 0?void 0:E.style.maxWidth}setMaxWidth(E){return this.options.maxWidth=E,this._update(),this}setDOMContent(E){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=I.create("div","maplibregl-popup-content",this._container);return this._content.appendChild(E),this._createCloseButton(),this._update(),this._focusFirstElement(),this}addClassName(E){return this._container&&this._container.classList.add(E),this}removeClassName(E){return this._container&&this._container.classList.remove(E),this}setOffset(E){return this.options.offset=E,this._update(),this}toggleClassName(E){if(this._container)return this._container.classList.toggle(E)}setSubpixelPositioning(E){this.options.subpixelPositioning=E}setPadding(E){this.options.padding=E,this._update()}_createCloseButton(){this.options.closeButton&&(this._closeButton=I.create("button","maplibregl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.innerHTML="&#215;",this._closeButton.addEventListener("click",this._onClose))}_focusFirstElement(){if(!this.options.focusAfterOpen||!this._container)return;const E=this._container.querySelector(hr);E&&E.focus()}},s.RasterDEMTileSource=St,s.RasterTileSource=yt,s.ScaleControl=class{constructor(E){this._onMove=()=>{Kc(this._map,this._container,this.options)},this.setUnit=u=>{this.options.unit=u,Kc(this._map,this._container,this.options)},this.options=Object.assign(Object.assign({},um),E)}getDefaultPosition(){return"bottom-left"}onAdd(E){return this._map=E,this._container=I.create("div","maplibregl-ctrl maplibregl-ctrl-scale",E.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container}onRemove(){this._container.remove(),this._map.off("move",this._onMove),this._map=void 0}}
822,s.ScrollZoomHandler=Gd,s.Style=Oc,s.TerrainControl=class{constructor(E){this._toggleTerrain=()=>{this._map.getTerrain()?this._map.setTerrain(null):this._map.setTerrain(this.options),this._updateTerrainIcon()},this._updateTerrainIcon=()=>{this._terrainButton.classList.remove("maplibregl-ctrl-terrain"),this._terrainButton.classList.remove("maplibregl-ctrl-terrain-enabled"),this._map.terrain?(this._terrainButton.classList.add("maplibregl-ctrl-terrain-enabled"),this._terrainButton.title=this._map._getUIString("TerrainControl.Disable")):(this._terrainButton.classList.add("maplibregl-ctrl-terrain"),this._terrainButton.title=this._map._getUIString("TerrainControl.Enable"))},this.options=E}onAdd(E){return this._map=E,this._container=I.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._terrainButton=I.create("button","maplibregl-ctrl-terrain",this._container),I.create("span","maplibregl-ctrl-icon",this._terrainButton).setAttribute("aria-hidden","true"),this._terrainButton.type="button",this._terrainButton.addEventListener("click",this._toggleTerrain),this._updateTerrainIcon(),this._map.on("terrain",this._updateTerrainIcon),this._container}onRemove(){this._container.remove(),this._map.off("terrain",this._updateTerrainIcon),this._map=void 0}},s.TwoFingersTouchPitchHandler=bl,s.TwoFingersTouchRotateHandler=dh,s.TwoFingersTouchZoomHandler=T0,s.TwoFingersTouchZoomRotateHandler=Pn,s.VectorTileSource=it,s.VideoSource=vt,s.addSourceType=(E,u)=>o._(void 0,void 0,void 0,(function*(){if(Sn(E))throw new Error(`A source type called "${E}" already exists.`);((h,_)=>{an[h]=_})(E,u)})),s.clearPrewarmedResources=function(){const E=Pt;E&&(E.isPreloaded()&&E.numActive()===1&&(E.release(Be),Pt=null))},s.createTileMesh=Mc,s.getGlobalDispatcher=ct,s.getMaxParallelImageRequests=function(){return o.c.MAX_PARALLEL_IMAGE_REQUESTS},s.getRTLTextPluginStatus=function(){return rt().getRTLTextPluginStatus()},s.getVersion=function(){return I0},s.getWorkerCount=function(){return je.workerCount},s.getWorkerUrl=function(){return o.c.WORKER_URL},s.importScriptInWorkers=function(E){return ct().broadcast("IS",E)},s.isTimeFrozen=function(){return $.isFrozen()},s.now=A,s.prewarm=function(){nt().acquire(Be)},s.restoreNow=function(){$.restoreNow()},s.setMaxParallelImageRequests=function(E){o.c.MAX_PARALLEL_IMAGE_REQUESTS=E},s.setNow=function(E){$.setNow(E)},s.setRTLTextPlugin=function(E,u){return rt().setRTLTextPlugin(E,u)},s.setWorkerCount=function(E){je.workerCount=E},s.setWorkerUrl=function(E){o.c.WORKER_URL=E}}));var a=n;return a}))})(VS)),VS.exports}var Oh=iTe();function aTe(){return{filtered:n=>n?.filter(r=>!r?.fe_blacklist&&!r.feBlacklist),computedFiltered:(n,r,i,a)=>n.filter(s=>!s.fe_blacklist&&!s.feBlacklist)}}const oTe=["data-list-category"],XT=Fe({__name:"FieldCategory",props:{config:{},result:{default:()=>[]},type:{}},setup(e){const t=vr();t.siteBuilderInfos;const n=De(t.backendLayout),{isAmiral:r}=zr(),i=xe(()=>n.value==="home"),a=e,{getFieldName:s}=Ad(),o=s(a.config),f=xe(()=>!!a.config),m=De(!1),y=De(!0),{filtered:b,computedFiltered:T}=aTe(),x=xe(()=>y.value?!r()&&o==="typeEvenement"?null:f.value?b(a.result?.[o]):a.result?.typeEvenement?(m.value=!0,r()&&i.value?a.result?.categories?.length?b(a.result?.categories.concat(a.result?.typeEvenement)?.slice(0,2)):a.result?.typeEvenement:a.result?.categories?.length?b(a.result?.categories.concat(a.result?.typeEvenement)):a.result?.typeEvenement):r()&&i.value?b(a.result?.categories?.slice(0,1)):b(a.result?.categories||a.result?.categorie):T(a.result?.categories||a.result?.[o],f.value,a.result?.type,o)),$=[_u({rowGap:"0.5rem",columnGap:"1rem",flexWrap:"wrap"}),a?.config?.system_name==="type_evenement"?me({order:-2}):me({order:-1})],A=[_u({rowGap:"0.5rem",columnGap:"1rem",flexWrap:"wrap"}),me({order:-1,backgroundImage:{base:"linear-gradient(to right, {colors.secondary}, {colors.primary})",_print:"none"},color:"transparent !important",webkitBackgroundClip:"text",backgroundClip:"text",padding:"0 0 .5rem .5rem",borderLeft:{base:"{borders.sm} {colors.secondary}",_inverse:"{borders.sm} {colors.black}"},position:"relative",_after:{content:"''",position:"absolute",bottom:0,left:0,width:"100%",height:".1rem",bg:{base:"linear-gradient(to right, {colors.secondary}, {colors.primary})",_inverse:"black",_print:null}}})],N=[me({flexDir:"column",alignItems:"start","& > *":{_first:{bg:{base:"black",_print:"lightGray"},borderRadius:"1rem 0"}}})],O=[me({fontSize:{base:"1.2rem",md:"1.4rem",_print:"10pt"},fontWeight:700,textTransform:"uppercase",letterSpacing:"global",display:"inline-block",lineHeight:1,color:"white",padding:"1rem 2.5rem",borderRadius:"0 1rem",_print:{bgImage:"none",bgColor:"white",marginBottom:"1rem",color:"{colors.black}",border:".1rem solid {colors.black}"}}),a?.config?.system_name==="type_evenement"?me({bgColor:"black",borderRadius:"1rem 0",order:-2}):IU()],I=[me({fontSize:{base:"1.4rem",_print:"10pt"},fontWeight:700,textTransform:"uppercase",letterSpacing:"global",color:"primary",_print:{bgColor:"white",marginBottom:"1rem",color:"{colors.black}",border:".1rem solid {colors.black}"},"&:not(:first-child)":{paddingLeft:"1.5rem",position:"relative",_before:{content:"''",position:"absolute",top:"calc(50% - 0.2rem)",left:0,width:"0.5rem",height:"0.5rem",bgColor:"primary",borderRadius:"0.1em"}}})];return(U,B)=>{const q=Su,Q=BI,ee=nTe;return v(o)==="tarifs"?(Z(),Se(q,{key:0,"data-cat":"",result:v(x)?.[0]?.title,config:e.config,class:de(v(me)({flexDir:"row !important"}))},{default:be(()=>[Re("span",{class:de(v(me)({fontWeight:700}))},ht(e.config.title)+" :",3)]),_:1},8,["result","config","class"])):(v(o)==="accessibility"||e.type==="accessibility")&&v(x)?.length>0?(Z(),Se(Q,{key:1,result:v(x),config:e.config},null,8,["result","config"])):v(o)==="labels"&&v(x)?.length>0?(Z(),Se(ee,{key:2,result:v(x),config:e.config},null,8,["result","config"])):v(x)?.length>0?(Z(),Ce(Ct,{key:3},[v(x).length>1?(Z(),Ce("ul",{key:0,"data-list-category":"",class:de([v(o),v(r)()?[$,v(m)?N:null]:A])},[(Z(!0),Ce(Ct,null,ln(v(x),(Y,z)=>(Z(),Ce("li",{"data-category":"",class:de(v(r)()?O:I)},ht(Y?.title),3))),256))],2)):e.config?.frontend_picto?(Z(),Se(q,{key:1,"data-category":"",result:v(x)[0]?.title,config:e.config},null,8,["result","config"])):(Z(),Ce("p",{key:2,"data-list-category":v(o),class:de(v(r)()?[$]:v(me)({order:-1}))},[Re("span",{"data-category":"",class:de([v(o),v(r)()?O:I])},ht(v(x)[0].title),3)],10,oTe))],64)):Ne("",!0)}}}),sTe=Fe({__name:"Progressbar",props:{playing:{},duration:{},sliderThumbStyle:{}},setup(e,{expose:t}){const n=De([0]),{t:r}
822=Ii(),i=r("common.medias.audio.progressbar.minutes"),a=r("common.medias.audio.progressbar.secondes"),s=r("common.medias.audio.progressbar.sur"),o=f=>new Date(1e3*f).toISOString().slice(14,19).replace(":",` ${i} `)+` ${a}`;return t({progress:n}),(f,m)=>{const y=QH,b=tW,T=eW,x=XH;return e.duration?(Z(),Se(x,{key:0,modelValue:v(n),"onUpdate:modelValue":m[0]||(m[0]=$=>zn(n)?n.value=$:null),step:1,min:0,max:e.duration,class:de(v(me)({display:"block",cursor:"pointer"}))},{default:be(()=>[ke(b,null,{default:be(()=>[ke(y,{class:de(v(me)({position:"absolute",height:"100%",top:0,bgColor:"{colors.secondary}",border:"{borders.md} {colors.white}"}))},null,8,["class"])]),_:1}),ke(T,{"aria-label":f.$t("common.medias.audio.progressbar.label"),"aria-valuetext":o(v(n)?.[0])+" "+v(s)+" "+o(e.duration),class:de(e.sliderThumbStyle)},{default:be(()=>[_n(ht(new Date(1e3*v(n)).toISOString().slice(14,19)),1)]),_:1},8,["aria-label","aria-valuetext","class"])]),_:1},8,["modelValue","max","class"])):Ne("",!0)}}}),lTe=["opacity"],uTe=["opacity"],cTe=["opacity"],dTe=["opacity"],fTe=["opacity"],hTe=Fe({__name:"VolumeButton",props:{volume:{default:1},sliderThumbStyle:{}},setup(e,{expose:t}){const r=De([e.volume]);t({audioVolume:r});const{t:i}=Ii();return(a,s)=>{const o=QH,f=tW,m=eW,y=XH;return Z(),Se(y,{modelValue:v(r),"onUpdate:modelValue":s[0]||(s[0]=b=>zn(r)?r.value=b:null),step:.2,min:0,max:1,class:de(v(me)({display:"block",width:{base:"2rem",sm:"2.6rem"},height:"auto",cursor:"pointer",position:"relative"}))},{default:be(()=>[ke(f,null,{default:be(()=>[ke(o),(Z(),Ce("svg",{xmlns:"http://www.w3.org/2000/svg",width:"26.356",height:"19.768",viewBox:"0 0 26.356 19.768",class:de(v(me)({width:"100%",height:"100%","& *":{fill:"{colors.white}"}}))},[Re("path",{d:"M3.844,320H.549a.549.549,0,0,0-.549.549v5.491a.549.549,0,0,0,.549.549H3.844a.549.549,0,0,0,.549-.549v-5.491A.549.549,0,0,0,3.844,320Z",transform:"translate(0 -306.822)",opacity:v(r)?.[0]>0?1:.5},null,8,lTe),Re("path",{d:"M110.51,256h-3.294a.549.549,0,0,0-.549.549v8.785a.549.549,0,0,0,.549.549h3.294a.549.549,0,0,0,.549-.549v-8.785A.549.549,0,0,0,110.51,256Z",transform:"translate(-101.175 -246.117)",opacity:v(r)?.[0]>.2?1:.5},null,8,uTe),Re("path",{d:"M217.177,192h-3.294a.549.549,0,0,0-.549.549v12.08a.549.549,0,0,0,.549.549h3.294a.549.549,0,0,0,.549-.549v-12.08A.549.549,0,0,0,217.177,192Z",transform:"translate(-202.351 -185.411)",opacity:v(r)?.[0]>.4?1:.5},null,8,cTe),Re("path",{d:"M323.844,128h-3.295a.549.549,0,0,0-.549.549v15.374a.549.549,0,0,0,.549.549h3.295a.549.549,0,0,0,.549-.549V128.549A.549.549,0,0,0,323.844,128Z",transform:"translate(-303.527 -124.705)",opacity:v(r)?.[0]>.6?1:.5},null,8,dTe),Re("path",{d:"M430.51,64h-3.294a.549.549,0,0,0-.549.549V83.218a.549.549,0,0,0,.549.549h3.294a.549.549,0,0,0,.549-.549V64.549A.549.549,0,0,0,430.51,64Z",transform:"translate(-404.703 -64) ",opacity:v(r)?.[0]>.8?1:.5},null,8,fTe)],2))]),_:1}),ke(m,{class:de(e.sliderThumbStyle),"aria-label":a.$t("common.medias.audio.volume.label")},{default:be(()=>[_n(ht(v(r)[0]),1)]),_:1},8,["class","aria-label"])]),_:1},8,["modelValue","class"])}}}),pTe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 21.483 19.438"};function mTe(e,t){return Z(),Ce("svg",pTe,[...t[0]||(t[0]=[Re("path",{fill:"#fff",d:"M0 14.322h10.23v2.046H0Zm0-7.161h20.46v2.046H0ZM0 0h20.46v2.046H0Zm16.368 14.322v-3.069h2.046v3.069h3.069v2.046h-3.069v3.069h-2.046v-3.069H13.3v-2.046Z"},null,-1)])])}const gTe={render:mTe},yTe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 47.62 42.85"};function vTe(e,t){return Z(),Ce("svg",yTe,[...t[0]||(t[0]=[Re("path",{d:"M0 33.33h23.81v4.76H0zm0-16.66h47.62v4.76H0zM0 0h47.62v4.76H0z","data-name":"Layer 1"},null,-1),Re("g",{"data-name":"Calque 1"},[Re("path",{d:"M35.36 42.85h12.26v-4.76H35.36z","data-name":"Tracé 46739"})],-1)])])}const _Te={render:vTe},bTe=["title","onClick","tabindex"],xTe=Fe({__name:"Playlist",props:{playlist:{default:{}},playlist_container:{},currentAudio:{},playing:{},playPauseTitle:{},pauseIcon:{},playIcon:{}},emits:["playPause","changeCurrentAudio"],setup(e,{expose:t,emit:n}){const r=e,i=n,a=De(!1),s=y=>y?.properties?.filename===r.currentAudio?.properties?.filename,o=De("0:00"),{t:f}=Ii(),m=y=>s(y)?r.playPauseTitle:`${f("common.medias.audio.play")} ${y?.properties?.title||y?.properties?.filename} - ${o.value} ${f("common.medias.audio.progressbar.minutes")}`;
822return t({open:a}),(y,b)=>{const T=nb,x=hI,$=tb,A=tI,N=eb;return Z(),Se(N,{open:v(a),"onUpdate:open":b[2]||(b[2]=O=>zn(a)?a.value=O:null)},{default:be(()=>[ke(T,{title:v(a)?y.$t("common.medias.audio.playlist.close"):y.$t("common.medias.audio.playlist.open"),class:de(v(me)({_hover:{"& svg *":{fill:"{colors.white}"}}}))},{default:be(()=>[Re("span",{class:de(v(Er)())},ht(v(a)?y.$t("common.medias.audio.playlist.close"):y.$t("common.medias.audio.playlist.open")),3),(Z(),Se(xr(v(a)?v(_Te):v(gTe)),{"aria-hidden":"true",class:de([v(ei)({fill:"{colors.white}/75",size:{base:"1.5rem",sm:"2rem"}}),v(me)({"& *":{transition:"{easings.global}"}})])},null,8,["class"]))]),_:1},8,["title","class"]),ke(x),ke(A,{to:e.playlist_container},{default:be(()=>[ke($,{onInteractOutside:b[0]||(b[0]=ti(()=>{},["prevent"])),onPointerDownOutside:b[1]||(b[1]=ti(()=>{},["prevent"])),class:de(v(me)({bgColor:"{colors.secondary}",padding:"0 2rem",transition:"{easings.global}","&[data-state=closed]":{transform:"translateY(-100%)",position:"absolute",top:0,left:0,width:"100%"}}))},{default:be(()=>[Re("ul",{class:de(v(me)({marginBottom:0,paddingBottom:"2rem"}))},[(Z(!0),Ce(Ct,null,ln(e.playlist,O=>(Z(),Ce("li",{class:de(v(me)({position:"relative",padding:"1rem 0",borderTop:"0.1rem solid {colors.white}",transition:"{easings.global}",zIndex:0,"& *":{color:"{colors.white}"},_hover:{paddingLeft:"1rem",paddingRight:"1rem",bgColor:"{colors.white}/15"}}))},[Re("button",{title:m(O),onClick:I=>s(O)?i("playPause"):i("changeCurrentAudio",O),tabindex:v(a)?0:"-1",class:de([v(Qn)({gap:{base:"1.5rem",sm:"2rem"}}),v(me)({width:"100%",textAlign:"left"})])},[Re("span",{class:de(v(me)({flex:"auto",overflowWrap:"break-word",wordBreak:"break-word"}))},ht(O?.properties?.title||O?.properties?.filename),3),(Z(),Se(xr(s(O)&&e.playing?e.pauseIcon:e.playIcon),{"aria-hidden":"true",class:de([v(ei)({fill:"{colors.primary}"}),v(me)({minWidth:"2rem","& *":{transition:"{durations.fast} {easings.easeIn}"}})])},null,8,["class"])),Re("span",null,ht(v(o)),1)],10,bTe)],2))),256))],2)]),_:1},8,["class"])]),_:1},8,["to"])]),_:1},8,["open"])}}}),UW=Fe({__name:"AudioPlayer",props:{isBlocAudio:{type:Boolean,default:!1},audio_files:{},folder_audio_files:{}},setup(e){const t=e,n=xe(()=>t.audio_files?.length>0?t.audio_files:t.folder_audio_files),r=De(),i=De(),a=De(),s=De(),o=De(),f=De(n.value?.[0]),m=De();Hn(()=>{m.value=vO(r,{src:f?.value?.publicUrl})});const y=()=>{m.value.playing=!m.value.playing},b=()=>{m.value.currentTime=i.value.progress[0]};ko(()=>{m.value&&(i.value.progress=[m.value.currentTime])});const T=()=>{m.value.volume=a.value.audioVolume},x=q=>{f.value=q,m.value=vO(r,{src:f?.value?.publicUrl}),i.value.progress=[0],m.value.playing=!0},$=q=>new Date(1e3*q).toISOString().slice(14,19),A=xe(()=>f?.value?.properties?.title||f?.value?.properties?.filename),{t:N}=Ii(),O=xe(()=>{let q,Q;return n.value?.length>1?(q=`${N("common.medias.audio.play")} ${A.value}`,Q=`${N("common.medias.audio.pause",{title:A.value})}`):(q=N("common.medias.audio.simplePlay"),Q=N("common.medias.audio.simplePause")),m?.value?.playing?Q:q}),{$on:I,$off:U}=En();Hn(()=>{I("playPause",y),I("changeCurrentAudio",x)}),oa(()=>{U("playPause",y),U("changeCurrentAudio",x)});const B=me({bgColor:"{colors.white}",color:"{colors.black}",fontFamily:"{fonts.regular}",fontSize:"1.2em",padding:"0.2rem 0.3rem",borderRadius:"0.2em",transform:"translate(-50%, calc(-100% - 0.5rem)) !important",opacity:0,top:0,_focus:{opacity:1,outline:"none"}});return(q,Q)=>{const ee=sTe,Y=cr,z=hTe,H=xTe,K=iN("not-lazy");return Z(),Ce("div",{class:de(v(me)({position:e.isBlocAudio?"relative":null,zIndex:0,overflow:"hidden",borderRadius:"1em"}))},[Re("div",{"data-playing-container":"",class:de([v(Qn)({gap:{base:"1.5rem",sm:"2rem"},alignItems:"end",justifyContent:"space-between"}),e.isBlocAudio?v(me)({bgColor:"{colors.secondary}",color:"{colors.white}",padding:{base:"1.5rem",sm:"2rem 2.5rem"}}):null])},[Re("div",{"data-progressbar":"",class:de(v(me)({flex:"auto"}))},[e.isBlocAudio?(Z(),Ce("h3",{key:0,class:de(v(me)({fontSize:"{fontSizes.p}",marginBottom:"1rem",overflowWrap:"break-word",wordBreak:"break-word",color:"{colors.white}",fontWeight:"{fontWeights.regular}"}))},ht(v(A)),3)):Ne("",!0),Re("div",null,[Re("div",{class:de(v(me)({width:"100%",height:e.isBlocAudio?"1.2rem":"0.5rem",bgColor:e.isBlocAudio?"{colors.white}":"primary",borderRadius:"{radii.sm}"}))},[ke(ee,{ref_key:"progressbar",ref:i,"onUpdate:modelValue":b,playing:v(m)?.playing,duration:v(m)?.duration,class:de(v(me)({width:"100%",height:e.isBlocAudio?"1.2rem":"0.5rem",bgColor:e.isBlocAudio?"{colors.white}":"{colors.primary}",borderRadius:"{radii.lg}",position:"relative"})),sliderThumbStyle:v(B)},null,8,["playing","duration","class","sliderThumbStyle"])],2),v(m)&&e.isBlocAudio?(Z(),Ce("div",{key:0,class:de([v(_u)(),v(me)({marginTop:e.isBlocAudio?"0.5rem":0,justifyContent:"space-between"})])},[Re("p",{class:de(v(me)({marginBottom:0,fontSize:e.isBlocAudio?"1.4em":"1.2em"}))},ht($(v(m)?.currentTime)),3),Re("p",{class:de(v(me)({marginBottom:0,fontSize:e.isBlocAudio?"1.4em":"1.2em"}))},ht($(v(m)?.duration)),3)],2)):Ne("",!0)])],2),Re("div",{class:de([v(me)({order:"-1",alignSelf:"center",paddingTop:"10px"})])},[ke(Y,{onClick:Q[0]||(Q[0]=ne=>y()),title:v(O),link:{text:v(O)},type:"button",variante:e.isBlocAudio?{classes:"pictoRound",pictoColor:"secondary",pictoSize:"xs"}:{classes:"pictoRound",pictoColor:"secondary",pictoSize:"sm",pictoPlacement:"left"},showSr:!!e.isBlocAudio,picto:!e.isBlocAudio&&!v(m)?.playing?"ecouter":null,class:de(v(me)({"& svg":{borderColor:"transparent",padding:0,width:"2.5rem",height:"2.5rem"},_hover:{"& svg":{borderColor:"white"}}}))},{icon:be(()=>[(Z(),Se(xr(v(m)?.playing?v(S$):e.isBlocAudio?v(w$):null),{"aria-hidden":"true"}))]),_:1},8,["title","link","variante","showSr","picto","class"])],2),e.isBlocAudio?(Z(),Ce("div",{key:0,class:de(v(me)({paddingBottom:"2.5rem"}))},[ke(z,{ref_key:"volumeButton",ref:a,volume:v(m)?.volume,"onUpdate:modelValue":T,sliderThumbStyle:v(B)},null,8,["volume","sliderThumbStyle"])],2)):Ne("",!0),v(n)?.length>1?(Z(),Ce("div",{key:1,class:de(v(me)({paddingBottom:"2rem"}))},[ke(H,{ref_key:"playlistPopover",ref:o,playlist:v(n),playlist_container:v(s),playing:v(m)?.playing,currentAudio:v(f),playPauseTitle:v(O),playIcon:v(w$),pauseIcon:v(S$),onPlayPause:Q[1]||(Q[1]=ne=>v(m).playing=!v(m)?.playing),onChangeCurrentAudio:Q[2]||(Q[2]=ne=>x(ne))},null,8,["playlist","playlist_container","playing","currentAudio","playPauseTitle","playIcon","pauseIcon"])],2)):Ne("",!0)],2),v(n)?.length>1?(Z(),Ce("div",{key:0,ref_key:"playlist_container",ref:s,class:de(v(me)({position:"relative",width:"100%",left:0,zIndex:"-1",transition:"{easings.global}",height:"100%","& > *":{position:"static !important",transform:"none !important",minWidth:"auto !important"}}))},null,2)):Ne("",!0),Ol(Re("audio",{"data-not-lazy":"",ref_key:"audio",ref:r},null,512),[[K]])],2)}}}),wTe=dV("features",{state:()=>({flipBook:{filepath:null,isOpen:!1}}),getters:{getFlipOpen(){return this.flipBook!==null?this.flipBook.isOpen:!1},getFlipFilePath(){return this.flipBook!==null&&this.flipBook.filepath!==null?this.flipBook.filepath:""}},actions:{openFlip(e){this.flipBook===null?this.flipBook={filepath:e,isOpen:!0}:(this.flipBook.filepath=e,this.flipBook.isOpen=!0)},closeFlip(){this.flipBook={filepath:null,isOpen:!1}}}});function HW(){return oo}const Fs=(e,t)=>{const{locale:n}=Ii(),r={FULL_DATETIME:"D/MM/YYYY HH:mm",FULL_DATE:"D/MM/YYYY",WEEK_DAY:"dddd",DAY_MONTH:"D/MM",DAY_MONTH_ABBR:"D MMM",DAY_MONTH_FULL_TEXT:"D MMMM",DAY_MONTH_YEAR_FULL_TEXT:"D MMMM YYYY",DAY_ONLY:"D",MONTH_ONLY:"MM",YEAR_ONLY:"YYYY",MONTH_YEAR_FULL_TEXT:"MMMM YYYY",MONTH_ABBR_ONLY:"MMM",MONTH_FULL_TEXT_ONLY:"MMMM",TIME_ONLY:"HH:mm",HOUR_ONLY:"HH",MINUTE_ONLY:"mm"};function i(){oo.locale(n.value);let a=null;return whe(e)?a=oo.unix(e):wA(e)&&(a=oo(e)),a!==null?a.format(r[t]):""}return i()};function STe(e,t=2){function n(){if(typeof e=="string")return e;try{const i=["o","Ko","Mo","Go","To","Po","Eo"];t=Math.max(t,0);let a=0,s=e;for(;s>1024;)s/=1024,a++;return Math.ceil(s).toFixed(0)+" "+i[a]}catch{return e.toString()}}return n()}const CTe={key:0},WW=Fe({__name:"FieldFileMetadata",props:{result:{},metadata:{},links:{},title:{}},setup(e){const{isAmiral:t}=zr(),n=e,r=HW(),{t:i}=Ii(),{$emit:a}=En(),s=vr(),o=De(s.backendLayout);s.initialData,o.value;const f=n.metadata?.dateDisplayed||n.metadata?.date_displayed||n.metadata?.creation_date,m=Fs(f,"DAY_MONTH_YEAR_FULL_TEXT"),y=xe(()=>typeof n.metadata?.size<"u"&&n.metadata?.size!==null?STe(n.metadata?.size):"");wTe();const b=xe(()=>{let x=`${n.title}`;return f&&(x+=` - ${oj(r(f).format("MMMM YYYY"))}`),x+=` - ${ZL(n.metadata?.extension)}`,n.metadata?.extension==="pdf"&&(x+=` - ${n.metadata?.nbPages} ${i("common.medias.documents.pages")}`),x+=` - ${y.value}`,x}),T=n.metadata?.extension==="mp3";return(x,$)=>{const A=cr,N=UW;return Z(),Ce("div",null,[e.metadata?(Z(),Ce("p",CTe,[e.metadata?.numero||v(m)?(Z(),Ce("span",{key:0,class:de(v(me)({display:"block"}))},[e.metadata?.numero?(Z(),Ce(Ct,{key:0},[_n(" n° "+ht(e.metadata?.numero),1)],64)):Ne("",!0),e.metadata?.numero&&v(m)?(Z(),Ce(Ct,{key:1},[_n(" - ")],64)):Ne("",!0),v(m)?(Z(),Ce(Ct,{key:2},[_n(ht(v(m)),1)],64)):Ne("",!0)],2)):Ne("",!0),Re("span",{class:de(v(me)({display:"block"}))},[e.metadata?.extension?(Z(),Ce(Ct,{key:0},[_n(ht(("_toUpper"in x?x._toUpper:v(ZL))(e.metadata?.extension)),1)],64)):Ne("",!0),e.metadata?.extension&&(e.metadata?.nbPages||v(y))?(Z(),Ce(Ct,{key:1},[_n(" - ")],64)):Ne("",!0),e.metadata?.nbPages?(Z(),Ce(Ct,{key:2},[_n(ht(e.metadata.nbPages)+" "+ht(e.metadata.nbPages>1?x.$t("common.medias.documents.pages"):x.$t("common.medias.documents.page")),1)],64)):Ne("",!0),e.metadata?.nbPages&&v(y)?(Z(),Ce(Ct,{key:3},[_n(" - ")],64)):Ne("",!0),v(y)?(Z(),Ce(Ct,{key:4},[_n(ht(v(y)),1)],64)):Ne("",!0)],2)])):Ne("",!0),(e.links||e.metadata.external_url||e.metadata?.extension=="pdf"||e.metadata.listen_url)&&!T?(Z(),Ce("div",{key:1,"data-kiosque-links":"",class:de([v(_u)({rowGap:{base:"1rem",md:"2.5rem"},columnGap:{base:"1.5rem",md:"2.5rem"}}),v(me)({flexDir:"row !important","& span":{fontWeight:700,letterSpacing:"global"},"& svg":{marginRight:"1rem"}})])},[e.links?(Z(),Se(A,{key:0,variante:{classes:"pictoRound",pictoPlacement:"left",pictoColor:v(t)()?"primary":"black",pictoSize:"xs"},link:{href:e.links?.[0]?.href||e.links?.href,target:"_blank",text:x.$t("common.medias.documents.download")},picto:"telecharger",title:`${x.$t("common.medias.documents.download")} ${v(b)}`},null,8,["variante","link","title"])):Ne("",!0),e.metadata?.external_url?(Z(),Se(A,{key:1,variante:{classes:"pictoRound",pictoPlacement:"left",pictoColor:v(t)()?"primary":"black",pictoSize:"xs"},link:{href:e.metadata.external_url,target:"_blank",text:x.$t("common.medias.documents.read")},picto:"feuilleter",title:`${x.$t("common.medias.documents.readOnline")} ${v(b)}`},null,8,["variante","link","title"])):Ne("",!0),e.metadata?.listen_url?(Z(),Se(A,{key:2,variante:{classes:"pictoRound",pictoPlacement:"left",pictoColor:v(t)()?"primary":"black",pictoSize:"xs"},link:{href:e.metadata.listen_url,target:"_blank",text:x.$t("common.medias.documents.listen")},picto:"ecouter",title:`${x.$t("common.medias.documents.listen")} ${v(b)}`},null,8,["variante","link","title"])):Ne("",!0)],2)):Ne("",!0),T?(Z(),Se(N,{key:2,audio_files:[{publicUrl:e.links?.[0]?.href||e.links?.href,properties:{title:e.metadata?.name}}]},null,8,["audio_files"])):Ne("",!0)])}}}),TTe={key:0},kTe={key:0,"data-date-part":""},ETe={"data-nb":""},PTe={"data-month":""},$Te={key:2,"data-date-part":""},MTe={"data-nb":""},ATe={"data-month":""},GW=Fe({__name:"FieldDateComplexe",props:{result:{},config:{default:{}},showTime:{type:Boolean,default:!1},isDateAgenda:{type:Boolean},fullDate:{type:Boolean},showYear:{type:Boolean}},setup(e){const t=vr();t.siteBuilderInfos;const{isAmiral:n}=zr(),r=e,{t:i}=Ii(),a=xs(r?.config?.system_name),s=r.config?.type==="date_start_end",o=xe(()=>{if(s&&(!r.result?.[y.value]||r.result?.[y.value]==="")&&(!r.result?.[b.value]||r.result?.[b.value]==="")){if(r.result?.cimNewsScheduleDates?.length>0)return r.result?.cimNewsScheduleDates?.[0]}else return r.result}),f=r?.config?.start_suffix,m=r?.config?.end_suffix,y=xe(()=>a==="cimNewsScheduleDates"?"cimNewsStartDate":`${a}${f}`),b=xe(()=>a==="cimNewsScheduleDates"?"cimNewsEndDate":`${a}${m}`),T=(A,N)=>{if(A&&N)return i("common.dates.du");if(A)return i("common.dates.le")},x=(A,N)=>{if(A&&N)return i("common.dates.au");if(N)return i("common.dates.jusquau")},$=xe(()=>Fs(o.value?.[y.value],"DAY_MONTH_YEAR_FULL_TEXT")===Fs(o.value?.[b.value],"DAY_MONTH_YEAR_FULL_TEXT")?null:o.value?.[b.value]);return(A,N)=>{const O=ib;return v(o)?.[v(y)]||v($)?(Z(),Ce("p",TTe,[bt(A.$slots,"default"),v(o)?.[v(y)]?(Z(),Ce("span",kTe,[Re("span",{"data-wording":"",class:de(s?v(Er)():null)},ht(T(v(o)?.[v(y)],v($))),3),Re("span",{class:de(s?v(Er)():null)}," ",2),Re("span",ETe,[_n(ht(s?null:("useDisplayDate"in A?A.useDisplayDate:v(Fs))(v(o)?.[v(y)],"WEEK_DAY"))+" "+ht(("useDisplayDate"in A?A.useDisplayDate:v(Fs))(v(o)?.[v(y)],"DAY_ONLY"))+" ",1),("useDisplayDate"in A?A.useDisplayDate:v(Fs))(v(o)?.[v(y)],"DAY_ONLY")==="1"?bt(A.$slots,"suffix",{},void 0,void 0,0):Ne("",!0)]),Re("span",PTe,ht(` ${("useDisplayDate"in A?A.useDisplayDate:v(Fs))(v(o)?.[v(y)],e.fullDate?"MONTH_FULL_TEXT_ONLY":"MONTH_ABBR_ONLY")}`),1),_n(" "+ht(e.showYear?` ${("useDisplayDate"in A?A.useDisplayDate:v(Fs))(v(o)?.[v(y)],"YEAR_ONLY")}`:null),1)])):Ne("",!0),v(o)?.[v(y)]&&v($)?(Z(),Ce(Ct,{key:1},[s?(Z(),Se(O,{key:0,"aria-hidden":"true",class:de([v(ei)({fill:"{colors.black}"}),v(me)({transform:{md:"rotate(90deg)",_print:v(n)()?"rotate(0deg!)":"rotate(90deg!)"},minWidth:"2rem"})])},null,8,["class"])):(Z(),Ce(Ct,{key:1},[_n(" ")],64))],64)):Ne("",!0),v($)?(Z(),Ce("span",$Te,[Re("span",{"data-wording":"",class:de(s?v(Er)():null)},ht(x(v(o)?.[v(y)],v($))),3),Re("span",MTe,[_n(ht(s?null:` ${("useDisplayDate"in A?A.useDisplayDate:v(Fs))(v($),"W
822EEK_DAY")}`)+" "+ht(("useDisplayDate"in A?A.useDisplayDate:v(Fs))(v($),"DAY_ONLY"))+" ",1),("useDisplayDate"in A?A.useDisplayDate:v(Fs))(v(o)?.[v(b)],"DAY_ONLY")==="1"?bt(A.$slots,"suffix",{},void 0,void 0,0):Ne("",!0)]),Re("span",ATe,ht(` ${("useDisplayDate"in A?A.useDisplayDate:v(Fs))(v($),e.fullDate?"MONTH_FULL_TEXT_ONLY":"MONTH_ABBR_ONLY")}`),1),_n(" "+ht(e.showYear?` ${("useDisplayDate"in A?A.useDisplayDate:v(Fs))(v($),"YEAR_ONLY")}`:null),1)])):Ne("",!0),e.showTime?(Z(),Ce(Ct,{key:3},[_n(", "+ht(("useDisplayDate"in A?A.useDisplayDate:v(Fs))(v(o)?.[v(y)],"TIME_ONLY")),1)],64)):Ne("",!0)])):Ne("",!0)}}}),ITe={key:0,"data-date-inline":""},DTe=["innerHTML"],p1=Fe({__name:"FieldDate",props:{result:{},config:{default:{}}},setup(e){const t=vr();t.siteBuilderInfos;const n=De(t.backendLayout),{t:r}=Ii(),i=e;n.value;const{getFieldName:a}=Ad(),s=a(i.config),o=De(!1),f=xe(()=>typeof i?.result?.[s]<"u"?typeof i?.result?.[s]?.date=="object"?i?.result?.[s]?.date:i?.result?.[s]:(o.value=!0,i?.result)),m=xe(()=>{const A=f.value?.date||f.value;return(Fs(A,"DAY_MONTH_YEAR_FULL_TEXT")||"").replace(/^1\s/,"1<sup>er</sup> ")}),y=xe(()=>i.config?.type==="date_time"||i.config?.type==="date"),b=i.config?.type==="date_start_end",T=xe(()=>f.value?.cimNewsScheduleDates&&f.value?.cimNewsScheduleDates?.length?f.value?.cimNewsScheduleDates?.filter(N=>x(N.cimNewsEndDate)||x(N.cimNewsStartDate)):f.value?.length?(f.value?.filter(N=>x(N.cimNewsEndDate)||x(N.cimNewsStartDate))).slice(0,1):[f.value]),x=A=>{const N=new Date;return N.setHours(0,0,0,0),typeof A=="number"?A*1e3>=N.getTime():Date.parse(A)>=N.getTime()},$=me({display:"inline-block",fontSize:"1.4rem",fontWeight:500,transform:{base:"translate(-0.5rem, -0.2rem)",md:"translate(-0.5rem, -0.5rem)"}});return(A,N)=>{const O=GW,I=Su;return v(f)?(Z(),Ce(Ct,{key:0},[v(y)?(Z(),Ce("p",{key:0,"data-date":"inline",class:de([v(BS)(),v(me)({_print:{"& svg":{display:"none"},"& [data-date-container]":{transform:"none"}}})])},[v(y)?(Z(),Ce("span",ITe,[bt(A.$slots,"default"),Re("span",{innerHTML:v(m)},null,8,DTe)])):Ne("",!0)],2)):e.result?.cimNewsStartDate&&e.result?.cimNewsEndDate&&b?(Z(),Se(O,{key:1,result:e.result,config:e.config,showYear:!0,"data-date-container":"",class:de(v(BS)())},{suffix:be(()=>[Re("sup",{class:de(v($))},ht(v(r)("common.dates.suffix.first")),3)]),_:1},8,["result","config","class"])):v(f)?.length>0?(Z(!0),Ce(Ct,{key:2},ln(v(T),U=>(Z(),Se(O,{result:U,config:e.config,fullDate:!0,showYear:!0,"data-date":"sessions","data-date-container":"",class:de(v(BS)())},{suffix:be(()=>[Re("sup",{class:de([v($),v(me)({fontSize:{base:"1rem !",md:"1.2rem !"},transform:"translate(-0.2rem, 0.1rem !)"})])},ht(v(r)("common.dates.suffix.first")),3)]),default:be(()=>[Re("span",{class:de(v(me)({fontFamily:"{fonts.regular}"}))},ht(A.$t("listItem.session"))+" : ",3)]),_:1},8,["result","config","class"]))),256)):b?(Z(),Ce(Ct,{key:3},[ke(O,{"data-date-container":"",isDateAgenda:b,result:v(T)?.[0],config:e.config},{suffix:be(()=>[Re("sup",{class:de(v($))},ht(v(r)("common.dates.suffix.first")),3)]),_:1},8,["result","config"]),v(T)?.[0]?.schedule?(Z(),Se(I,{key:0,result:v(T)?.[0]?.schedule,config:{frontend_picto:"horaires"}},null,8,["result"])):Ne("",!0)],64)):Ne("",!0)],64)):Ne("",!0)}}}),LTe=Fe({__name:"FieldRelation",props:{result:{},config:{}},setup(e){return(t,n)=>{const r=p1,i=Su;return e.config?.frontend_template==="session"?(Z(),Se(r,{key:0,result:e.result,config:e.config},null,8,["result","config"])):(Z(),Se(i,{key:1,result:e.result?.[e.config?.system_name]?.[0]?.title,config:e.config},null,8,["result","config"]))}}}),FI=Fe({__name:"FieldLink",props:{result:{},config:{}},setup(e){const t=e,{t:n}=Ii(),r=kd(),{getFieldName:i,getResultField:a}=Ad(),s=i(t.config),o=Object.values(r.blocGeolocationFields),f=xe(()=>a(t.result,t.config)),m=t?.config?.sub_type??t.config,y=["lien_vers_billetterie"],b=xe(()=>y.includes(t.config?.system_name)),T=xe(()=>!Un(f.value.href)),x=xe(()=>f.type==="email"||m==="mail"||t.config?.system_name==="mail"||t.config?.system_name==="email"),$=O=>`<a href="${O.href}"
823        data-mailto-token="${O.additionalAttributes["data-mailto-token"]}"
824        data-mailto-vector="${O.additionalAttributes["data-mailto-vector"]}"
825    >${A(t.result)}</a>`,A=O=>x.value?n("common.contact.mail"):O?.type==="elus"?O?.estLeMaire?n("common.contact.maire"):n("common.contact.elu"):O?.type==="tool"||O?.type==="publication"?n("common.consult"):s==="mediaExterne"?O?.href:s==="lienVersBilletterie"?n("common.buttons.reservation"):f.value.text!==f.value.href?f.value.text:typeof O.href<"u"?t.config?.title??n("common.knowMore"):n("common.knowMore"),N=()=>{switch(t.config?.frontend_picto||t.config?.sub_type||hasPicto.includes(t.config?.system_name)||t.config?.system_name){case"adresse":case"address":case"address_secondary":case"address_tertiary":case"place":case"accueil":return PW;case"horaires":return $W;case"mail":case"email":case"mail_rh":case"mail_metier":return MW;case"person":case"contact_rh":case"contact_metier":return AW;case"phone":case"mobilePhone":case"telephone":case"telephone_rh":case"telephone_metier":return IW;case"website":return DW;default:return null}};return(O,I)=>{const U=d1,B=N_,q=Su,Q=cr;return v(f)||v(f)?.length>0?(Z(),Ce(Ct,{key:0},[v(T)?(Z(),Ce("p",{key:0,"data-field-link":"",class:de([v(Qn)({flexDirection:"row-reverse",justifyContent:"start",alignItems:"start",ga
825p:"1.2rem"}),v(me)({whiteSpace:"pre-line","& > *:not(svg)":{flexBasis:"fit-content"},"&[data-field-type=structure], &[data-field-type=function], &[data-field-type=function_secondary]":{fontWeight:600,fontSize:"{fontSizes.h4}"}})])},[v(x)?(Z(),Se(U,{key:0,as:"span",content:$(v(f))},null,8,["content"])):(Z(),Se(B,{key:1,to:v(f).href,target:v(f).target},{default:be(()=>[_n(ht(A(v(f))),1)]),_:1},8,["to","target"])),(Z(),Se(xr(N()),{"aria-hidden":"true",class:de(v(RA)())},null,8,["class"]))],2)):v(o).includes(e.config?.system_name)?(Z(),Se(q,{key:1,result:v(YL),config:e.config},null,8,["result","config"])):v(f)?.href!==""?(Z(),Se(Q,{key:2,"data-field-link":"",link:{text:A(v(YL)),href:v(f).href,target:v(f).target??"_blank"},variante:v(b)?{classes:"button",bgColor:"primary"}:null,class:de(v(b)?[v(me)({textTransform:"capitalize","& a":{boxShadow:"none !important",padding:"1rem 2.5rem !important"}})]:null)},null,8,["link","variante","class"])):Ne("",!0)],64)):Ne("",!0)}}}),zI=Fe({__name:"FieldBoolean",props:{result:{},config:{},yesOrNo:{type:Boolean}},setup(e){const t=e,{getFieldName:n,getResultField:r}=Ad(),i=n(t.config),a=xe(()=>{if(t.result.type!=="demarche")return r(t.result,t.config)});return(s,o)=>v(a)?(Z(),Ce("p",{key:0,"data-field-type":"boolean",class:de(v(i)==="onlineProcess"?v(me)({bgColor:"primary",color:"white",fontWeight:700,textTransform:"uppercase",padding:"1rem 1.5rem",fontSize:"1.2em",width:"auto !important"}):null)},ht(e.yesOrNo?e.result?.[v(i)]?s.$t("common.yes"):s.$t("common.no"):e.config?.title),3)):Ne("",!0)}}),OTe=Fe({__name:"DirRendererList",props:{result:{default:()=>[]},config:{}},setup(e){const t=n=>{let r;switch(n){case"select_category":r=XT;break;case"date":case"date_time":case"session":case"date_start_end":r=p1;break;case"relation":r=LTe;break;case"typolink":r=FI;break;case"boolean":r=zI;break;default:r=Su;break}return r};return(n,r)=>(Z(),Se(xr(t(e.config?.type)),{config:e.config,result:e.result},null,8,["config","result"]))}}),RTe=Fe({__name:"ListItemFields",props:{result:{},relation:{type:Boolean},isHeadPage:{type:Boolean,default:!1},fieldsToShow:{default:[]},ignoreAutoDisplay:{type:Boolean,default:!1}},setup(e){const t=e,{filteredFieldsToShow:n}=Ad(),r=xe(()=>t.isHeadPage?t.fieldsToShow:n(t.result,t.fieldsToShow,t.ignoreAutoDisplay).configListItemFields);return(i,a)=>{const s=OTe;return e.result?(Z(!0),Ce(Ct,{key:0},ln(v(r),o=>(Z(),Se(s,{config:o,result:e.result},null,8,["config","result"]))),256)):Ne("",!0)}}}),NI=Fe({__name:"ListItemContent",props:{result:{},options:{default:{}},fieldsToShow:{default:()=>[]},popin:{type:Boolean},ignoreAutoDisplay:{type:Boolean,default:!1},isHeadPage:{type:Boolean,default:!1}},setup(e){const t=vr(),n=De(t.initialData),r=De(t.backendLayout),{isAmiral:i}=zr(),a=e,s=a.result?.type==="kiosque",o=a.result?.type==="actes_administratifs",f=r.value==="list",m=xe(()=>n.value?.directories[a.result?.type+".json"]),y=["kiosque","elus","actes_administratifs","contact","generique","acteur","tool"],b=xe(()=>y.includes(a.result?.type)?!1:a.popin),T=["kiosque","elus","actes_administratifs","contact","generique","acteur","tool"],x=xe(()=>!(a?.options?.noLink||T.includes(a?.result?.type))),$=me({"& [data-date-container]:not([data-date=sessions])":{display:{base:"flex",_print:"block"},alignItems:"center"}}),A=me({"& [data-date-container]:not([data-date=sessions])":{order:-1,gap:"1rem","& svg":{transform:"rotate(0deg)","& *":{fill:"primary"}},"& [data-nb]":{fontWeight:700,fontFamily:"secondary",fontSize:{base:"2.5rem",md:"2.7rem",lg:"3rem"},lineHeight:1}}}),N=me({"& [data-date-container]:not([data-date=sessions])":{flexDir:{base:"row",md:"column"},gap:{base:"1rem",md:".4rem"},width:{base:"auto",md:"6rem",_print:"unset!"},fontSize:"sm",order:{mdDown:-1},padding:{base:"1.5rem 2rem",md:"1.5rem 1rem"},color:{base:"white",_print:"black"},borderRadius:"1em",position:{base:"relative",md:"absolute"},transform:{md:"translateX(-100%)",_print:"none"},top:{md:"-1.7rem"},left:0,zIndex:{base:0,md:-1},_before:{content:{base:"''",_print:"none"},position:"absolute",top:0,left:0,width:{base:"100%",md:"calc(100% + 10rem)"},height:"100%",bg:{base:"linear-gradient(to bottom, var(--colors-primary), var(--colors-secondary))",_inverse:"black"},borderRadius:"1em",zIndex:-1}
825,"& svg":{"& path":{fill:{base:"white",_print:"black"}}},"& [data-date-part]":{display:{base:"flex",_print:"block"},flexDir:"column",textAlign:{base:"center",_print:"start"}},"& [data-nb]":{fontWeight:700,fontSize:{base:"2rem",md:"2.2rem",lg:"2.5rem"},lineHeight:1}}});return(O,I)=>{const U=EW,B=rSe,q=XT,Q=d1,ee=WW,Y=RTe,z=cr,H=Nf;return Z(),Ce("div",{"data-list-item-content":"",class:de([e.result?.type==="events"?[v(me)({"& [data-list-item-title] a::before":{width:"calc(100% + 6rem)",left:"-6rem",height:"calc(100% + 1.7rem)",top:"-1.7rem"}})]:null,v($),v(i)()?v(A):v(N),v(me)({position:"relative",zIndex:0}),v(x)&&e.result?.links?.[0]?.href?v(me)({_hover:{"& [data-img]":{_before:{transition:"{easings.global}",width:"100%",height:"100%",opacity:.5}}}}):null,v(fU)({flexDirection:{base:"column-reverse",sm:"row-reverse"},gap:{base:"1.5rem",sm:"{spacing.gutter}"},justifyContent:{base:"center",sm:"end"},alignItems:{base:"start",sm:"center"},_print:{padding:"0 !important",flexDirection:"row-reverse"}})])},[Re("div",{"data-txt":"",class:de([v(_u)({alignItems:"center",rowGap:"1rem",columnGap:"1rem"}),v(me)({flex:"auto",flexBasis:"auto","& *":{marginBottom:0},"& p > a":{zIndex:"2",position:"relative"},"& > *:not([data-list-category], [data-container-access])":{width:"100%"},_print:{padding:"0 !important",bgColor:"transparent !important",color:"{colors.black} !important","& [data-list-category]":{border:"none",padding:0},"& [data-date], [data-field-type]":{display:"block",position:"relative",inset:0}}}),e.result?.type!=="kiosque"&&e.result?.type!=="actes_administratifs"&&v(f)?v(Wa)({shadowColor:"{colors.black}"}):null,v(f)?v(me)({position:{smDown:"relative"},"& [data-container-access]":{order:"-1",display:"flex",gap:"1rem",position:"relative",zIndex:"3"}}):null])},[e.result?.title||e.result?.metadata?.title||e.result?.metadata?.name?(Z(),Se(U,{key:0,title:e.result?.title||e.result?.metadata?.title||e.result?.metadata?.name,link:e.result?.links?.[0],listItemLink:v(x),options:e.options,popin:e.result?.type==="pav"?!1:v(b),class:de([v(me)({"& a":{boxOrient:"vertical",textOverflow:"ellipsis",overflow:"hidden",webkitBackgroundClip:"text",backgroundClip:"text",backgroundImage:{base:"linear-gradient(to right, {colors.secondary}, {colors.primary})",_inverse:"none"},boxShadow:"inset 0 0 0 0 {colors.primary} !important",lineHeight:"1.3",_hover:{color:{base:"transparent!",_inverse:"black!"},boxShadow:"inset 0 -0.1rem 0 0 {colors.primary} !important"}},_print:{marginBottom:"1rem"}}),v(i)()?v(me)({letterSpacing:0}):v(me)({}),v(s)||v(o)?v(me)({maxWidth:"100%",wordBreak:"break-word",fontSize:"h3",fontWeight:700}):null])},null,8,["title","link","listItemLink","options","popin","class"])):Ne("",!0),e.result?.type&&e.options?.showtype?(Z(),Se(B,{key:1,"data-type":"",type:e.result?.type,class:de(v(me)({order:"-1"}))},null,8,["type","class"])):Ne("",!0),v(m)?.enable_categories!==!1&&e.options?.showcategories!==!1?(Z(),Se(q,{key:2,result:e.result},null,8,["result"])):Ne("",!0),v(f)&&v(s)&&e.result?.metadata?.description||e.options?.baseline?(Z(),Se(Q,{key:3,content:e.result?.metadata?.description?e.result?.metadata?.description:e.options?.baseline},null,8,["content"])):Ne("",!0),v(s)||v(o)?(Z(),Se(ee,{key:4,"data-metadata":"",metadata:e.result?.metadata,links:e.result?.links?.[0]?.href?e.result?.links:[{href:e.result?.url}],title:e.result?.title,class:de(v(Tr)({alignItems:"start",gap:"1rem"}))},null,8,["metadata","links","title","class"])):(Z(),Se(Y,{key:5,result:e.result,fieldsToShow:e.fieldsToShow,ignoreAutoDisplay:e.ignoreAutoDisplay,isHeadPage:e.isHeadPage},null,8,["result","fieldsToShow","ignoreAutoDisplay","isHeadPage"])),e.result?.type==="elu"&&e.result?.linkToContact?.[0]?.href?(Z(),Se(z,{key:6,"data-contact-button":"",link:e.result?.linkToContact?.[0],variante:{classes:"button",bgColor:"white",size:"sm"},class:de(v(me)({"& a":{position:"relative",padding:"1.5rem 2.5rem!",boxShadow:"none!",_before:{}}}))},null,8,["link","class"])):Ne("",!0),e.options?.seemore?.show?(Z(),Se(z,{key:7,"data-see-more":"",link:{text:e.options?.seemore?.text},variante:e.options?.seemore?.btnVariante,picto:e.options?.seemore?.btnPicto,class:de(v(me)({transition:"{durations.fast} {easings.easeIn}",_print:{display:"none"}}))},null,8,["link","variante","picto","class"])):Ne("",!0),bt(O.$slots,"default")],2),e.options?.showimg!==!1?(Z(),Ce("div",{key:0,"data-img":"",class:de([v(me)({aspectRatio:"240/240",zIndex:"-1",minWidth:v(s)||v(o)?"20rem":"24rem",width:v(s)||v(o)?"20rem":"24rem",overflow:v(s)||v(o)?null:"hidden",position:"relative",alignSelf:"start","& *":{transition:"{durations.fast} {easings.easeIn}
825",aspectRatio:"inherit",objectFit:"cover",width:"100%",height:"100%"},_before:{content:"''",transition:"{easings.global}",zIndex:1,position:"absolute",bottom:0,left:0,width:0,height:0,bg:{base:"linear-gradient(270deg, var(--cim_primary_color) 50%, var(--cim_secondary_color) 100%)",_renforce:"red",_inverse:"yellow"},borderRadius:"0 1em"},_print:{display:"none"}}),(v(s)||v(o))&&v(f)?v(me)({display:"flex",justifyContent:"center",alignItems:"end",position:"relative",zIndex:0,bgColor:"transparent",aspectRatio:"200/285","& *":{aspectRatio:"200/285",boxShadow:{base:"{shadows.subtle}",_inverse:"{shadows.inverse}"},bgColor:"{colors.third}"}}):v(me)({borderRadius:"1em"})])},[ke(H,{image:e.isHeadPage?e.result?.pictureShow?.[0]||e.result?.pictureHome?.[0]:e.result?.imageList?.[0]||e.result?.image?.[0],noFigcaption:!e.isHeadPage,agent:e.result?.type==="agent"?e.result?.title:null},null,8,["image","noFigcaption","agent"])],2)):Ne("",!0)],2)}}}),Cu=Fe({__name:"ListItem",props:{result:{},options:{},fieldsToShow:{},popin:{type:Boolean},ignoreAutoDisplay:{type:Boolean,default:!1},isHeadPage:{type:Boolean,default:!1}},setup(e){return(t,n)=>{const r=eSe,i=NI;return e.result?.type==="faq"?(Z(),Se(r,{key:0,result:e.result},null,8,["result"])):e.result?.title?(Z(),Ce("article",{key:1,class:de([e.result?.type,v(me)({_print:{border:"{borders.sm} {colors.mediumGray}",padding:"1.5rem",width:"100%",marginBottom:"1rem"}})]),role:"listitem"},[ke(i,{result:e.result,options:e.options,fieldsToShow:e.fieldsToShow,popin:e.popin,ignoreAutoDisplay:e.ignoreAutoDisplay,isHeadPage:e.isHeadPage},{default:be(()=>[bt(t.$slots,"default")]),_:3},8,["result","options","fieldsToShow","popin","ignoreAutoDisplay","isHeadPage"])],2)):Ne("",!0)}}}),YW=Fe({__name:"FieldContact",props:{colPos:{},result:{},config:{},isLocated:{default:null},isBlocContact:{type:Boolean,default:!1}},setup(e){const{isAmiral:t}=zr(),n=e,r=xe(()=>{let o=[];return n.result?.[0]?o=n.result:o.push(n.result),o}),i=kd(),a=n.isBlocContact?["function","schedule","mail","email"]:Object.values(i.blocGeolocationFields),s=xe(()=>n.result.accueil?"https://www.google.com/maps/search/?api=1&query="+n.result.accueil:n.result?.address?"https://www.google.com/maps/search/?api=1&query="+n.result?.address:n.result?.title?"https://www.google.com/maps/search/?api=1&query="+n.result?.title+"&query_place_id="+n.result?.mapLatitude+","+n.result.mapLongitude:n.isLocated?"https://www.google.com/maps?q="+n.result?.mapLatitude+","+n.result?.mapLongitude:null);return(o,f)=>{const m=Cu,y=cr;return Z(),Ce("div",{class:de([v(Tr)({alignItems:"start",gap:"2rem"}),v(me)({width:{base:"100%",sm:e.isLocated?"1/2":"100%",md:e.colPos===0&&e.isLocated?"3/5":"100%"},bgColor:{base:v(t)()?"white":"lightGray",_print:"transparent"},borderRadius:e.colPos===0&&e.isLocated?"0 1.5rem 1.5rem 0":e.isLocated?"0 0 1.5rem 1.5rem":"1.5rem",padding:{_print:0,base:"2rem",sm:"3.5rem 3rem",md:e.colPos===0?v(t)()?{base:"3.5rem",lg:"5rem"}:{base:"2.5rem",lg:"4rem"}:"3rem 3rem 3.5rem 3rem"},_inverse:{border:"{borders.sm} {colors.black}"}})])},[(Z(!0),Ce(Ct,null,ln(v(r),b=>(Z(),Ce("div",{key:b,class:de([v(Tr)({alignItems:"start"}),v(me)({width:"100%","& *":{color:"black",_print:{color:"{colors.black}"}}}),v(Wa)({shadowColor:"{colors.black} !important",textColor:"{colors.white} !important"})])},[ke(m,{result:b,options:{showimg:!!e.isBlocContact,showcategories:!1,showbgtxt:!!e.isBlocContact,noLink:!0},fieldsToShow:v(a),ignoreAutoDisplay:!0,class:de([v(me)({width:"100%","& [data-txt]":{gap:"1.5rem !important",whiteSpace:"pre-wrap"},"& a *":{color:"inherit"},"& [data-txt], [data-field-type], [data-field-type] a, [data-field-type] span":{width:"100%"},"& [data-list-item-title]":{marginBottom:0,fontSize:"h3"},"& [data-field-type] span":{overflowWrap:{base:"anywhere",md:"break-word"}}}),e.isBlocContact?v(me)({maxWidth:"60rem",width:"100%","& [data-list-item-content]":{bgColor:"{colors.third}",width:"100%",columnGap:{base:"1.5rem",sm:"2.5rem"},rowGap:"1.5rem",flexDir:e.colPos===0?"row-reverse":"column-reverse",justifyContent:"start",alignItems:"center",position:"relative",_hover:{"& [data-img]::before":{content:"none"}},_print:{bgColor:"transparent"}},"& [data-txt] ":{gap:0,position:"static",padding:"1rem 0"},"& [data-field-type=function] ":{fontFamily:"regular",fontSize:"{fontSizes.p}",marginBottom:"1rem"},"& [data-img] ":{minWidth:{base:"7rem",sm:"8.5rem"},borderRadius:"50%",alignSelf:"start"},"& [data-img], [data-img] > * ":{width:{base:"7rem",sm:"8.5rem"},height:{base:"7rem",sm:"8.5rem"}},"& [data-img] > svg ":{padding:"2rem"},"& [data-txt] [data-img-container]":{position:"absolute",width:"100%",height:"100%",inset:0,maskImage:`linear-gradient(-90deg,
826                                    rgba(0,0,0,0.2) 0%,
827                                    rgba(0,0,0,0.1) 30%,
828                                    rgba(0,0,0,0.05) 40%,
829                                    rgba(0,0,0,0) 50%)`,_print:{display:"none"}},"& .boutonsRecipe__fontSize a":{border:"{borders.sm}{colors.white}",color:"{colors.white}",bgColor:"transparent",padding:"1.5rem 2.5rem !important",_hover:{color:"{colors.third}",bgColor:"{colors.white}"}},_print:{bgColor:"{colors.lightGray}"}}):null])},null,8,["result","options","fieldsToShow","class"])],2))),128)),v(s)&&e.isLocated?(Z(),Se(y,{key:0,link:{href:v(s),text:o.$t("blocks.geoloc.goTo"),target:"_blank"},variante:{classes:"button",bgColor:v(t)()?"white":"lightGray",size:"sm"},class:de(v(me)({marginBottom:0,"& a":{bgColor:v(t)()?"unset":"lightGray",padding:"1.5rem 2.5rem"}}))},null,8,["link","variante","class"])):Ne("",!0)],2)}}}),ZW=Fe({__name:"T3CeMaskBlocContact",props:{header:{},headerLayout:{},headerPosition:{},headerLink:{},subheader:{},uid:{},index:{},appearance:{},colPos:{},directories:{}},setup(e){return(t,n)=>{const r=YW,i=fi;return Z(),Se(i,{header:e.header,"header-layout":e.headerLayout},{content:be(()=>[ke(r,{header:e.header,headerLayout:e.headerLayout,result:e.directories,colPos:e.colPos,isBlocContact:!0},null,8,["header","headerLayout","result","colPos"])]),_:1},8,["header","header-layout"])}}}
829),BTe=["controls","autoplay","muted","loop"],FTe=["data-src","type"],zTe=["title","data-src","allow"],VI=Fe({__name:"Video",props:{video:{},controls:{type:Boolean,default:!0},muted:{type:Boolean,default:!1},loop:{type:Boolean,default:!1},colPos:{}},setup(e,{expose:t}){zr();const n=e,{cookiesEnabled:r,cookiesEnabledIds:i,moduleOptions:a,isConsentGiven:s}=Uq(),o=b=>i.value?.includes(b),f=b=>{const T=a.cookies.optional.filter($=>$.id===b)?.[0],x=r.value?.indexOf(T);typeof x>"u"?r.value=[T]:x<0&&r.value?.push(T),typeof i.value>"u"?i.value=[b]:i.value?.push(b)},m=De("htmlVideo");t({htmlVideo:m});const y=(n.video?.properties?.autoplay===1?"autoplay;":"")+(n.muted===!0?"muted;":"")+(n.loop===!0?"loop;":"");return(b,T)=>{const x=cr,$=iN("lazy-load");return Z(),Ce(Ct,null,[e.video?.properties?.extension==="mp4"?Ol((Z(),Ce("video",{key:0,"data-ratio":"",controls:e.controls!==!1,autoplay:e.video?.properties?.autoplay===1,muted:e.muted!==!1,loop:e.loop===!0,preload:"none",ref_key:"htmlVideo",ref:m},[Re("source",{"data-src":e.video?.publicUrl,type:e.video?.properties?.mimeType?e.video?.properties?.mimeType:null},null,8,FTe)],8,BTe)),[[$]]):o(e.video?.properties?.extension)?Ol((Z(),Ce("iframe",{key:2,title:`Vidéo - ${e.video?.properties?.title}`,"data-ratio":"",type:"text/html","data-src":e.video?.publicUrl,webkitallowfullscreen:"",mozallowfullscreen:"",allowfullscreen:"",allow:y===""?null:y},null,8,zTe)),[[$]]):(Z(),Ce("div",{key:1,"data-ratio":"",class:de([v(Qn)({justifyContent:"center"}),v(me)({width:"100%",borderRadius:"1rem",color:"{colors.white}",bgColor:"{colors.black}"})])},[Re("div",{class:de(v(Tr)({gap:0}))},[Re("p",null,[Re("span",{class:de(v(me)({textTransform:"capitalize"}))},ht(e.video?.properties?.extension),3),_n(" "+ht(b.$t("cookies.messageBlocked")),1)]),ke(x,{link:{text:b.$t("cookies.allow")},variante:{classes:"button",bgColor:"white",size:"sm"},type:"button",onClick:T[0]||(T[0]=A=>f(e.video?.properties?.extension)),class:de(v(me)({_before:{display:"none"},border:"none !important"}))},null,8,["link","class"])],2)],2)),e.video?.properties?.description||e.video?.properties?.copyright||e.video?.properties?.title?(Z(),Ce("p",{key:3,"data-description":"",class:de(v(me)({margin:{base:"1rem 0",md:e.colPos===1?"1rem 0":"{spacing.md} 0"},fontSize:"1em"}))},[e.video?.properties?.title?(Z(),Ce("span",{key:0,class:de(["legend",v(me)({fontSize:e.colPos===1?{base:"{fontSizes.h3}",md:"{fontSizes.p}"}:"{fontSizes.h3}",fontWeight:700,display:"block"})])},ht(e.video?.properties?.title),3)):Ne("",!0),e.video?.properties?.copyright?(Z(),Ce("span",{key:1,class:de(v(me)({fontSize:"{fontSizes.sm}"}))},"© "+ht(e.video?.properties?.copyright),3)):Ne("",!0)],2)):Ne("",!0)],64)}}}),KW=Fe({__name:"T3CeMaskBlocVideo",props:{header:{},headerLayout:{},headerPosition:{},headerLink:{},subheader:{},uid:{},index:{},appearance:{},colPos:{},video:{}},setup(e){return(t,n)=>{const r=VI,i=fi;return e.video?(Z(),Se(i,{key:0,header:e.header,"header-layout":e.headerLayout,class:de(v(me)({_print:{display:"none !important"}}))},{content:be(()=>[Re("div",{class:de(v(me)({"& > [data-ratio]":{aspectRatio:"16/9",width:"100%"}}))},[e.video?.[0]?(Z(),Se(r,{key:0,video:e.video[0],colPos:e.colPos},null,8,["video","colPos"])):Ne("",!0)],2)]),_:1},8,["header","header-layout","class"])):Ne("",!0)}}}),Dw=Fe({__name:"ButtonContainer",props:{align:{}},setup(e){return(t,n)=>(Z(),Ce("div",{class:de(v(_u)({justifyContent:e.align==="right"?"end":e.align==="center"?"center":e.align==="justify"?"space-between":null}))},[bt(t.$slots,"default")],2))}}),ab=Fe({__name:"BlocHome",props:{data:{},header:{},subheader:{},headerId:{},link_to_list:{},imageOnTheRight:{type:Boolean},colPos:{},otherLinkTitle:{},titleAlign:{default:"center"},isSubtitle:{type:Boolean,default:!1},blocWidth:{default:"100%"},blocGrid:{},buttonContainerAlign:{default:"center"},whiteTitleDeco:{type:Boolean,default:!1},isBlocHome:{type:Boolean},type:{},show_in_summary:{type:Boolean}},setup(e){const t=vr();t.siteBuilderInfos,t.backendLayout;const n=De(null),{isAmiral:r}=zr();return(i,a)=>{const s=CT,o=Dw;return Z(),Ce("div",{class:de([v(Dg)(),v(me)({margin:"0 auto",paddingTop:"{spacing.blocHomeTop}",paddingBottom:"{spacing.blocHomeBottom}",_print:{paddingBottom:"3.5rem"}}),v(_u)()])},[Re("div",{"data-grid":"",class:de([e.blocGrid,v(me)({width:{base:"100%",xl:e.blocWidth==="10/12"?"10/12":e.blocWidth==="11/12"?"11/12":"100%"},maxWidth:"100%",margin:"0 auto"})])},[bt(i.$slots,"title",{},()=>[e.header?(Z(),Ce("div",{key:0,ref_key:"blocTitle",ref:n,"data-title-container":"",class:de([v(Tr)({gap:"0.5rem",flexDir:"column-reverse",alignItems:{base:"center",md:e.titleAlign==="center"?"center":"start"}}),v(me)({position:"relative",marginBottom:"3rem",textAlign:{mdDown:"center"},_print:{marginBottom:0}})])},[ke(s,{header:e.header,"data-title":"",id:e.headerId||null,class:de(v(me)({color:"{colors.black}",fontFamily:"secondary",fontWeight:v(r)()?800:700,lineHeight:e.isSubtitle&&v(r)()?1.2:e.isSubtitle?1:.9,marginBottom:0,fontSize:e.isSubtitle?"lg":v(r)()||!e.isBlocHome?"xl":"xxl",_firstLetter:{textTransform:"uppercase"},_before:{display:"none"}}))},null,8,["header","id","class"]),e.subheader?(Z(),Ce("p",{key:0,class:de(v(me)({fontSize:e.isBlocHome?"h4":"h3",letterSpacing:"global",marginBottom:0,fontWeight:700,backgroundImage:{base:"linear-gradient(to right, {colors.secondary}, {colors.primary})",_inverse:"none"}
829,color:{base:"transparent",_inverse:"black"},webkitBackgroundClip:"text",backgroundClip:"text",_firstLetter:{textTransform:"uppercase"}}))},ht(e.subheader),3)):Ne("",!0)],2)):Ne("",!0)]),bt(i.$slots,"content"),i.$slots.bottom?(Z(),Se(o,{key:0,"data-buttons-container":"",align:e.buttonContainerAlign,class:de(v(me)({marginTop:{base:"3rem",_print:0},width:"100%","& > * > *":{borderRadius:"0.5rem",_before:{borderRadius:"0.5rem"}}}))},{default:be(()=>[bt(i.$slots,"bottom")]),_:3},8,["align","class"])):Ne("",!0)],2)],2)}}}),NTe=Fe({__name:"HomeBreves",props:{data:{},header:{}},setup(e){const{isAmiral:t}=zr();return(n,r)=>{const i=Cu,a=ab;return e.data?.results?.length?(Z(),Se(a,{key:0,data:e.data,header:e.header,isSubtitle:!0,"bloc-width":v(t)()?"100%":"10/12",blocGrid:[v(Qn)({flexDir:v(t)()?{base:"column",md:"row"}:"column"}),v(t)()?null:v(me)({bgColor:"white",position:"relative",paddingTop:{md:"3.5rem"},paddingBottom:{base:"5rem",md:"7rem"},_before:{content:{sm:"''"},position:"absolute",top:0,left:0,width:"50vw",height:"100%",bgColor:"lightGray",transform:"translateX(-100%)",borderRadius:"1.5em"},_after:{content:{sm:"''"},position:"absolute",top:0,right:0,width:"50vw",height:"100%",bgColor:"lightGray",transform:"translateX(100%)",borderRadius:"1.5em"}})],class:de([v(me)({"& [data-title-container]":{marginBottom:{smDown:0}}}),v(t)()?v(me)({"& [data-title-container]":{width:{md:"2/12"},marginBottom:0}}):null])},{content:be(()=>[Re("div",{class:de([v(Mi)({columns:{base:1,sm:2,md:3},columnGap:v(t)()?{base:"1.5rem",lg:"{spacing.gutter}"}:0}),v(me)({width:v(t)()?{base:"100%",md:"10/12"}:"100%"})])},[(Z(!0),Ce(Ct,null,ln(e.data?.results?.slice(0,3),(s,o)=>(Z(),Se(i,{result:s,"fields-to-show":["teaser","datetime"],options:{showcategories:!1,showimg:!1,seemore:{show:s.links?.[0]?.href,text:n.$t("common.knowMore"),btnVariante:{classes:"btnReadMore",pictoSize:"xxs",pictoPlacement:"left"},btnPicto:"next"}},class:de([v(me)({"& [data-list-item-title]":{lineClamp:2,lineHeight:1.2,fontSize:"h4",fontWeight:700,fontFamily:"regular"},"& [data-date=inline]":{order:-1},"& [data-field-type=teaser]":{display:"-webkit-box",boxOrient:"vertical",textOverflow:"ellipsis",overflow:"hidden",lineClamp:4,fontSize:"sm"},_hover:{"& [data-see-more]":{transform:"translateX(1rem)","& span.sr_false":{boxShadow:"inset 0 -0.1rem 0 0 {colors.black}"}}}}),v(t)()?v(me)({height:"100%","& [data-list-item-content]":{height:"100%",alignItems:"start",padding:{base:"1.5rem",sm:"2rem",md:"2.5rem",lg:"3.5rem"},borderRadius:"1em",bgColor:"white",boxShadow:{base:"0 0.4rem 1rem 0 rgba(0,0,0,0.2)",_inverse:"{shadows.inverse}",_print:"none"}}}):v(me)({padding:o===0?{sm:"0 3rem 0 2rem",md:"0 4.5rem 0 3rem"}:o===1?{sm:"0 3rem",md:"0 4.5rem"}:{sm:"0 2rem 0 3rem",md:"0 3rem 0 4.5rem"},position:"relative",_before:{content:o>0?"''":null,position:"absolute",top:{base:"-1.4rem",sm:0},left:0,width:{base:"100%",sm:"0.2rem"},height:{base:"0.1rem",sm:"18rem"},bgColor:{base:"lightGray",_inverse:"black"}}})])},null,8,["result","options","class"]))),256))],2)]),_:1},8,["data","header","bloc-width","blocGrid","class"])):Ne("",!0)}}}),VTe=Fe({__name:"SliderButton",props:{side:{default:""},classes:{default:""},variante:{default:{classes:"pictoRound",pictoColor:"white",pictoSize:"xl"}},buttonId:{}},setup(e){const t=vr();return t.siteBuilderInfos,(n,r)=>{const i=cr;return Z(),Se(i,{type:"button",id:e.buttonId,variante:e.variante,picto:e.side,showSr:!0,class:de([v(me)({position:"absolute",top:"50%",left:e.side==="prev"?0:null,right:e.side==="prev"?null:0,transform:"translate(0, -50%)",zIndex:5,_print:{display:"none"},"& svg":{width:{mdDown:"7rem!"},height:{mdDown:"7rem!"},padding:e.side==="prev"?{mdDown:"2rem 1rem 2rem 2.5rem!"}:{mdDown:"2rem 2.5rem 2rem 1rem!"}}})])},null,8,["id","variante","picto","class"])}}}),qTe=["aria-label","aria-controls"],jTe=Fe({__name:"SliderPagination",props:{swiper:{},wrapperId:{},activeIndex:{},nbSlides:{}},setup(e){const t=e,{t:n}=Ii(),r=De(t.activeIndex);return nn(()=>t.swiper,i=>{i&&i.on("slideChange",()=>{r.value=i.realIndex})},{immediate:!0}),(i,a)=>{const s=kI,o=TI,f=CI;return Z(),Se(f,{orientation:"vertical",modelValue:v(r),"onUpdate:modelValue":[a[0]||(a[0]=m=>zn(r)?r.value=m:null),a[1]||(a[1]=m=>e.swiper.slideTo(v(r)))]},{default:be(()=>
829[ke(o,{"data-slider-pagination":"",role:"tablist","aria-label":"Diaporama",class:de([v(Tr)({gap:"0.8rem"}),v(me)({marginBottom:"0",_print:{display:"none !important"}})])},{default:be(()=>[(Z(!0),Ce(Ct,null,ln(e.nbSlides,m=>(Z(),Se(s,{asChild:"",value:m-1},{default:be(()=>[Re("button",{"aria-label":`${i.$t("common.medias.swiper.slide")} ${m}`,"aria-controls":`${e.wrapperId}-slide-${m-1}`,class:de([v(S_)({size:"1rem",height:{base:"1rem",_selected:"3rem"}}),v(me)({bgColor:{base:"black/20",_selected:"primary"},transition:"{durations.slow} ease-in-out",padding:0,_hover:{opacity:1,bgColor:"primary",boxShadow:"0 0 0 0.2rem {colors.white}"},_focusVisible:{opacity:1}})])},[Re("span",{class:de(v(Er)())},ht(m),3)],10,qTe)]),_:2},1032,["value"]))),256))]),_:1},8,["class"])]),_:1},8,["modelValue"])}}});function iB(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function qI(e={},t={}){const n=["__proto__","constructor","prototype"];Object.keys(t).filter(r=>n.indexOf(r)<0).forEach(r=>{typeof e[r]>"u"?e[r]=t[r]:iB(t[r])&&iB(e[r])&&Object.keys(t[r]).length>0&&qI(e[r],t[r])})}const XW={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function mu(){const e=typeof document<"u"?document:{};return qI(e,XW),e}const UTe={document:XW,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout>"u"||clearTimeout(e)}};function Ss(){const e=typeof window<"u"?window:{};return qI(e,UTe),e}function HTe(e=""){return e.trim().split(" ").filter(t=>!!t.trim())}function WTe(e){const t=e;Object.keys(t).forEach(n=>{try{t[n]=null}catch{}try{delete t[n]}catch{}})}function JW(e,t=0){return setTimeout(e,t)}function U4(){return Date.now()}function GTe(e){const t=Ss();let n;return t.getComputedStyle&&(n=t.getComputedStyle(e,null)),!n&&e.currentStyle&&(n=e.currentStyle),n||(n=e.style),n}function A$(e,t="x"){const n=Ss();let r,i,a;const s=GTe(e);return n.WebKitCSSMatrix?(i=s.transform||s.webkitTransform,i.split(",").length>6&&(i=i.split(", ").map(o=>o.replace(",",".")).join(", ")),a=new n.WebKitCSSMatrix(i==="none"?"":i)):(a=s.MozTransform||s.OTransform||s.MsTransform||s.msTransform||s.transform||s.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),r=a.toString().split(",")),t==="x"&&(n.WebKitCSSMatrix?i=a.m41:r.length===16?i=parseFloat(r[12]):i=parseFloat(r[4])),t==="y"&&(n.WebKitCSSMatrix?i=a.m42:r.length===16?i=parseFloat(r[13]):i=parseFloat(r[5])),i||0}function aS(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function YTe(e){return typeof window<"u"&&typeof window.HTMLElement<"u"?e instanceof HTMLElement:e&&(e.nodeType===1||e.nodeType===11)}function au(...e){const t=Object(e[0]);for(let n=1;n<e.length;n+=1){const r=e[n];if(r!=null&&!YTe(r)){const i=Object.keys(Object(r)).filter(a=>a!=="__proto__"&&a!=="constructor"&&a!=="prototype");for(let a=0,s=i.length;a<s;a+=1){const o=i[a],f=Object.getOwnPropertyDescriptor(r,o);
vendor: 32,597 bytes, line 829
829f!==void 0&&f.enumerable&&(aS(t[o])&&aS(r[o])?r[o].__swiper__?t[o]=r[o]:au(t[o],r[o]):!aS(t[o])&&aS(r[o])?(t[o]={},r[o].__swiper__?t[o]=r[o]:au(t[o],r[o])):t[o]=r[o])}}}return t}function Iv(e,t,n){e.style.setProperty(t,n)}function QW({swiper:e,targetPosition:t,side:n}){const r=Ss(),i=-e.translate;let a=null,s;const o=e.params.speed;e.wrapperEl.style.scrollSnapType="none",r.cancelAnimationFrame(e.cssModeFrameID);const f=t>i?"next":"prev",m=(b,T)=>f==="next"&&b>=T||f==="prev"&&b<=T,y=()=>{s=new Date().getTime(),a===null&&(a=s);const b=Math.max(Math.min((s-a)/o,1),0),T=.5-Math.cos(b*Math.PI)/2;let x=i+T*(t-i);if(m(x,t)&&(x=t),e.wrapperEl.scrollTo({[n]:x}),m(x,t)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[n]:x})}),r.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=r.requestAnimationFrame(y)};y()}function eG(e){return e.querySelector(".swiper-slide-transform")||e.shadowRoot&&e.shadowRoot.querySelector(".swiper-slide-transform")||e}function cc(e,t=""){const n=Ss(),r=[...e.children];return n.HTMLSlotElement&&e instanceof HTMLSlotElement&&r.push(...e.assignedElements()),t?r.filter(i=>i.matches(t)):r}function ZTe(e,t){const n=[t];for(;n.length>0;){const r=n.shift();if(e===r)return!0;n.push(...r.children,...r.shadowRoot?r.shadowRoot.children:[],...r.assignedElements?r.assignedElements():[])}}function KTe(e,t){const n=Ss();let r=t.contains(e);return!r&&n.HTMLSlotElement&&t instanceof HTMLSlotElement&&(r=[...t.assignedElements()].includes(e),r||(r=ZTe(e,t))),r}function H4(e){try{return}catch{}}function Jx(e,t=[]){const n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:HTe(t)),n}function aB(e){const t=Ss(),n=mu(),r=e.getBoundingClientRect(),i=n.body,a=e.clientTop||i.clientTop||0,s=e.clientLeft||i.clientLeft||0,o=e===t?t.scrollY:e.scrollTop,f=e===t?t.scrollX:e.scrollLeft;return{top:r.top+o-a,left:r.left+f-s}}function XTe(e,t){const n=[];for(;e.previousElementSibling;){const r=e.previousElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function JTe(e,t){const n=[];for(;e.nextElementSibling;){const r=e.nextElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function ng(e,t){return Ss().getComputedStyle(e,null).getPropertyValue(t)}function Qx(e){let t=e,n;if(t){for(n=0;(t=t.previousSibling)!==null;)t.nodeType===1&&(n+=1);return n}}function dx(e,t){const n=[];let r=e.parentElement;for(;r;)t?r.matches(t)&&n.push(r):n.push(r),r=r.parentElement;return n}function QTe(e,t){function n(r){r.target===e&&(t.call(e,r),e.removeEventListener("transitionend",n))}t&&e.addEventListener("transitionend",n)}function I$(e,t,n){const r=Ss();return e[t==="width"?"offsetWidth":"offsetHeight"]+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-right":"margin-top"))+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-left":"margin-bottom"))}function Hr(e){return(Array.isArray(e)?e:[e]).filter(t=>!!t)}function P_(e,t=""){typeof trustedTypes<"u"?e.innerHTML=trustedTypes.createPolicy("html",{createHTML:n=>n}).createHTML(t):e.innerHTML=t}let r8;function eke(){const e=Ss(),t=mu();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}function tG(){return r8||(r8=eke()),r8}let i8;function tke({userAgent:e}={}){const t=tG(),n=Ss(),r=n.navigator.platform,i=e||n.navigator.userAgent,a={ios:!1,android:!1},s=n.screen.width,o=n.screen.height,f=i.match(/(Android);?[\s\/]+([\d.]+)?/);let m=i.match(/(iPad)(?!\1).*OS\s([\d_]+)/);const y=i.match(/(iPod)(.*OS\s([\d_]+))?/),b=!m&&i.match(/(iPhone\sOS|iOS)\s([\d_]+)/),T=r==="Win32";let x=r==="MacIntel";const $=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!m&&x&&t.touch&&$.indexOf(`${s}x${o}`)>=0&&(m=i.match(/(Version)\/([\d.]+)/),m||(m=[0,1,"13_0_0"]),x=!1),f&&!T&&(a.os="android",a.android=!0),(m||b||y)&&(a.os="ios",a.ios=!0),a}function nG(e={}){return i8||(i8=tke(e)),i8}let a8;function nke(){const e=Ss(),t=nG();let n=!1;function r(){const o=e.navigator.userAgent.toLowerCase();return o.indexOf("safari")>=0&&o.indexOf("chrome")<0&&o.indexOf("android")<0}if(r()){const o=String(e.navigator.userAgent);if(o.includes("Version/")){const[f,m]=o.split("Version/")[1].split(" ")[0].split(".").map(y=>Number(y));n=f<16||f===16&&m<2}}const i=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),a=r(),s=a||i&&t.ios;return{isSafari:n||a,needPerspectiveFix:n,need3dFix:s,isWebView:i}}function rG(){return a8||(a8=nke()),a8}function rke({swiper:e,on:t,emit:n}){const r=Ss();let i=null,a=null;const s=()=>{!e||e.destroyed||!e.initialized||(n("beforeResize"),n("resize"))},o=()=>{!e||e.destroyed||!e.initialized||(i=new ResizeObserver(y=>{a=r.requestAnimationFrame(()=>{const{width:b,height:T}=e;let x=b,$=T;y.forEach(({contentBoxSize:A,contentRect:N,target:O})=>{O&&O!==e.el||(x=N?N.width:(A[0]||A).inlineSize,$=N?N.height:(A[0]||A).blockSize)}),(x!==b||$!==T)&&s()})}),i.observe(e.el))},f=()=>{a&&r.cancelAnimationFrame(a),i&&i.unobserve&&e.el&&(i.unobserve(e.el),i=null)},m=()=>{!e||e.destroyed||!e.initialized||n("orientationchange")};t("init",()=>{if(e.params.resizeObserver&&typeof r.ResizeObserver<"u"){o();return}r.addEventListener("resize",s),r.addEventListener("orientationchange",m)}),t("destroy",()=>{f(),r.removeEventListener("resize",s),r.removeEventListener("orientationchange",m)})}function ike({swiper:e,extendParams:t,on:n,emit:r}){const i=[],a=Ss(),s=(m,y={})=>{const b=a.MutationObserver||a.WebkitMutationObserver,T=new b(x=>{if(e.__preventObserver__)return;if(x.length===1){r("observerUpdate",x[0]);return}const $=function(){r("observerUpdate",x[0])};a.requestAnimationFrame?a.requestAnimationFrame($):a.setTimeout($,0)});T.observe(m,{attributes:typeof y.attributes>"u"?!0:y.attributes,childList:e.isElement||(typeof y.childList>"u"?!0:y).childList,characterData:typeof y.characterData>"u"?!0:y.characterData}),i.push(T)},o=()=>{if(e.params.observer){if(e.params.observeParents){const m=dx(e.hostEl);for(let y=0;y<m.length;y+=1)s(m[y])}s(e.hostEl,{childList:e.params.observeSlideChildren}),s(e.wrapperEl,{attributes:!1})}},f=()=>{i.forEach(m=>{m.disconnect()}),i.splice(0,i.length)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",o),n("destroy",f)}var ake={on(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;const i=n?"unshift":"push";return e.split(" ").forEach(a=>{r.eventsListeners[a]||(r.eventsListeners[a]=[]),r.eventsListeners[a][i](t)}),r},once(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;function i(...a){r.off(e,i),i.__emitterProxy&&delete i.__emitterProxy,t.apply(r,a)}return i.__emitterProxy=t,r.on(e,i,n)},onAny(e,t){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;const r=t?"unshift":"push";return n.eventsAnyListeners.indexOf(e)<0&&n.eventsAnyListeners[r](e),n},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsAnyListeners)return t;const n=t.eventsAnyListeners.indexOf(e);return n>=0&&t.eventsAnyListeners.splice(n,1),t},off(e,t){const n=this;return!n.eventsListeners||n.destroyed||!n.eventsListeners||e.split(" ").forEach(r=>{typeof t>"u"?n.eventsListeners[r]=[]:n.eventsListeners[r]&&n.eventsListeners[r].forEach((i,a)=>{(i===t||i.__emitterProxy&&i.__emitterProxy===t)&&n.eventsListeners[r].splice(a,1)})}),n},emit(...e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let n,r,i;return typeof e[0]=="string"||Array.isArray(e[0])?(n=e[0],r=e.slice(1,e.length),i=t):(n=e[0].events,r=e[0].data,i=e[0].context||t),r.unshift(i),(Array.isArray(n)?n:n.split(" ")).forEach(s=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(o=>{o.apply(i,[s,...r])}),t.eventsListeners&&t.eventsListeners[s]&&t.eventsListeners[s].forEach(o=>{o.apply(i,r)})}),t}};function oke(){const e=this;let t,n;const r=e.el;typeof e.params.width<"u"&&e.params.width!==null?t=e.params.width:t=r.clientWidth,typeof e.params.height<"u"&&e.params.height!==null?n=e.params.height:n=r.clientHeight,!(t===0&&e.isHorizontal()||n===0&&e.isVertical())&&(t=t-parseInt(ng(r,"padding-left")||0,10)-parseInt(ng(r,"padding-right")||0,10),n=n-parseInt(ng(r,"padding-top")||0,10)-parseInt(ng(r,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(n)&&(n=0),Object.assign(e,{width:t,height:n,size:e.isHorizontal()?t:n}))}function ske(){const e=this;function t(H,K){return parseFloat(H.getPropertyValue(e.getDirectionLabel(K))||0)}const n=e.params,{wrapperEl:r,slidesEl:i,rtlTranslate:a,wrongRTL:s}=e,o=e.virtual&&n.virtual.enabled,f=o?e.virtual.slides.length:e.slides.length,m=cc(i,`.${e.params.slideClass}, swiper-slide`),y=o?e.virtual.slides.length:m.length;let b=[];const T=[],x=[];let $=n.slidesOffsetBefore;typeof $=="function"&&($=n.slidesOffsetBefore.call(e));let A=n.slidesOffsetAfter;typeof A=="function"&&(A=n.slidesOffsetAfter.call(e));const N=e.snapGrid.length,O=e.slidesGrid.length,I=e.size-$-A;let U=n.spaceBetween,B=-$,q=0,Q=0;if(typeof I>"u")return;typeof U=="string"&&U.indexOf("%")>=0?U=parseFloat(U.replace("%",""))/100*I:typeof U=="string"&&(U=parseFloat(U)),e.virtualSize=-U-$-A,m.forEach(H=>{a?H.style.marginLeft="":H.style.marginRight="",H.style.marginBottom="",H.style.marginTop=""}),n.centeredSlides&&n.cssMode&&(Iv(r,"--swiper-centered-offset-before",""),Iv(r,"--swiper-centered-offset-after","")),n.cssMode&&(Iv(r,"--swiper-slides-offset-before",`${$}px`),Iv(r,"--swiper-slides-offset-after",`${A}px`));const ee=n.grid&&n.grid.rows>1&&e.grid;ee?e.grid.initSlides(m):e.grid&&e.grid.unsetSlides();let Y;const z=n.slidesPerView==="auto"&&n.breakpoints&&Object.keys(n.breakpoints).filter(H=>typeof n.breakpoints[H].slidesPerView<"u").length>0;for(let H=0;H<y;H+=1){Y=0;const K=m[H];if(!(K&&(ee&&e.grid.updateSlide(H,K,m),ng(K,"display")==="none"))){if(o&&n.slidesPerView==="auto")n.virtual.slidesPerViewAutoSlideSize&&(Y=n.virtual.slidesPerViewAutoSlideSize),Y&&K&&(n.roundLengths&&(Y=Math.floor(Y)),K.style[e.getDirectionLabel("width")]=`${Y}px`);else if(n.slidesPerView==="auto"){z&&(K.style[e.getDirectionLabel("width")]="");const ne=getComputedStyle(K),le=K.style.transform,pe=K.style.webkitTransform;if(le&&(K.style.transform="none"),pe&&(K.style.webkitTransform="none"),n.roundLengths)Y=e.isHorizontal()?I$(K,"width"):I$(K,"height");else{const ae=t(ne,"width"),se=t(ne,"padding-left"),ce=t(ne,"padding-right"),ye=t(ne,"margin-left"),$e=t(ne,"margin-right"),Be=ne.getPropertyValue("box-sizing");if(Be&&Be==="border-box")Y=ae+ye+$e;else{const{clientWidth:je,offsetWidth:at}=K;Y=ae+se+ce+ye+$e+(at-je)}}le&&(K.style.transform=le),pe&&(K.style.webkitTransform=pe),n.roundLengths&&(Y=Math.floor(Y))}else Y=(I-(n.slidesPerView-1)*U)/n.slidesPerView,n.roundLengths&&(Y=Math.floor(Y)),K&&(K.style[e.getDirectionLabel("width")]=`${Y}px`);K&&(K.swiperSlideSize=Y),x.push(Y),n.centeredSlides?(B=B+Y/2+q/2+U,q===0&&H!==0&&(B=B-I/2-U),H===0&&(B=B-I/2-U),Math.abs(B)<1/1e3&&(B=0),n.roundLengths&&(B=Math.floor(B)),Q%n.slidesPerGroup===0&&b.push(B),T.push(B)):(n.roundLengths&&(B=Math.floor(B)),(Q-Math.min(e.params.slidesPerGroupSkip,Q))%e.params.slidesPerGroup===0&&b.push(B),T.push(B),B=B+Y+U),e.virtualSize+=Y+U,q=Y,Q+=1}}if(e.virtualSize=Math.max(e.virtualSize,I)+A,a&&s&&(n.effect==="slide"||n.effect==="coverflow")&&(r.style.width=`${e.virtualSize+U}px`),n.setWrapperSize&&(r.style[e.getDirectionLabel("width")]=`${e.virtualSize+U}px`),ee&&e.grid.updateWrapperSize(Y,b),!n.centeredSlides){const H=n.slidesPerView!=="auto"&&n.slidesPerView%1!==0,K=n.snapToSlideEdge&&!n.loop&&(n.slidesPerView==="auto"||H);let ne=b.length;if(K){let pe;if(n.slidesPerView==="auto"){pe=1;let ae=0;for(let se=x.length-1;se>=0&&(ae+=x[se]+(se<x.length-1?U:0),ae<=I);se-=1)pe=x.length-se}else pe=Math.floor(n.slidesPerView);ne=Math.max(y-pe,0)}const le=[];for(let pe=0;pe<b.length;pe+=1){let ae=b[pe];n.roundLengths&&(ae=Math.floor(ae)),K?pe<=ne&&le.push(ae):b[pe]<=e.virtualSize-I&&le.push(ae)}b=le,Math.floor(e.virtualSize-I)-Math.floor(b[b.length-1])>1&&(K||b.push(e.virtualSize-I))}if(o&&n.loop){const H=x[0]+U;if(n.slidesPerGroup>1){const K=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/n.slidesPerGroup),ne=H*n.slidesPerGroup;for(let le=0;le<K;le+=1)b.push(b[b.length-1]+ne)}for(let K=0;K<e.virtual.slidesBefore+e.virtual.slidesAfter;K+=1)n.slidesPerGroup===1&&b.push(b[b.length-1]+H),T.push(T[T.length-1]+H),e.virtualSize+=H}if(b.length===0&&(b=[0]),U!==0){const H=e.isHorizontal()&&a?"marginLeft":e.getDirectionLabel("marginRight");m.filter((K,ne)=>!n.cssMode||n.loop?!0:ne!==m.length-1).forEach(K=>{K.style[H]=`${U}px`})}if(n.centeredSlides&&n.centeredSlidesBounds){let H=0;x.forEach(ne=>{H+=ne+(U||0)}),H-=U;const K=H>I?H-I:0;b=b.map(ne=>ne<=0?-$:ne>K?K+A:ne)}if(n.centerInsufficientSlides){let H=0;if(x.forEach(K=>{H+=K+(U||0)}),H-=U,H<I){const K=(I-H)/2;b.forEach((ne,le)=>{b[le]=ne-K}),T.forEach((ne,le)=>{T[le]=ne+K})}}if(Object.assign(e,{slides:m,snapGrid:b,slidesGrid:T,slidesSizesGrid:x}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){Iv(r,"--swiper-centered-offset-before",`${-b[0]}px`),Iv(r,"--swiper-centered-offset-after",`${e.size/2-x[x.length-1]/2}px`);const H=-e.snapGrid[0],K=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(ne=>ne+H),e.slidesGrid=e.slidesGrid.map(ne=>ne+K)}if(y!==f&&e.emit("slidesLengthChange"),b.length!==N&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),T.length!==O&&e.emit("slidesGridLengthChange"),n.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!o&&!n.cssMode&&(n.effect==="slide"||n.effect==="fade")){const H=`${n.containerModifierClass}backface-hidden`,K=e.el.classList.contains(H);y<=n.maxBackfaceHiddenSlides?K||e.el.classList.add(H):K&&e.el.classList.remove(H)}}function lke(e){const t=this,n=[],r=t.virtual&&t.params.virtual.enabled;let i=0,a;typeof e=="number"?t.setTransition(e):e===!0&&t.setTransition(t.params.speed);const s=o=>r?t.slides[t.getSlideIndexByData(o)]:t.slides[o];if(t.params.slidesPerView!=="auto"&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(o=>{n.push(o)});else for(a=0;a<Math.ceil(t.params.slidesPerView);a+=1){const o=t.activeIndex+a;if(o>t.slides.length&&!r)break;n.push(s(o))}else n.push(s(t.activeIndex));for(a=0;a<n.length;a+=1)if(typeof n[a]<"u"){const o=n[a].offsetHeight;i=o>i?o:i}(i||i===0)&&(t.wrapperEl.style.height=`${i}px`)}function uke(){const e=this,t=e.slides,n=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let r=0;r<t.length;r+=1)t[r].swiperSlideOffset=(e.isHorizontal()?t[r].offsetLeft:t[r].offsetTop)-n-e.cssOverflowAdjustment()}const oB=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)};function cke(e=this&&this.translate||0){const t=this,n=t.params,{slides:r,rtlTranslate:i,snapGrid:a}=t;if(r.length===0)return;typeof r[0].swiperSlideOffset>"u"&&t.updateSlidesOffset();let s=-e;i&&(s=e),t.visibleSlidesIndexes=[],t.visibleSlides=[];let o=n.spaceBetween;typeof o=="string"&&o.indexOf("%")>=0?o=parseFloat(o.replace("%",""))/100*t.size:typeof o=="string"&&(o=parseFloat(o));for(let f=0;f<r.length;f+=1){const m=r[f];let y=m.swiperSlideOffset;n.cssMode&&n.centeredSlides&&(y-=r[0].swiperSlideOffset);const b=(s+(n.centeredSlides?t.minTranslate():0)-y)/(m.swiperSlideSize+o),T=(s-a[0]+(n.centeredSlides?t.minTranslate():0)-y)/(m.swiperSlideSize+o),x=-(s-y),$=x+t.slidesSizesGrid[f],A=x>=0&&x<=t.size-t.slidesSizesGrid[f],N=x>=0&&x<t.size-1||$>1&&$<=t.size||x<=0&&$>=t.size;N&&(t.visibleSlides.push(m),t.visibleSlidesIndexes.push(f)),oB(m,N,n.slideVisibleClass),oB(m,A,n.slideFullyVisibleClass),m.progress=i?-b:b,m.originalProgress=i?-T:T}}function dke(e){const t=this;if(typeof e>"u"){const y=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*y||0}const n=t.params,r=t.maxTranslate()-t.minTranslate();let{progress:i,isBeginning:a,isEnd:s,progressLoop:o}=t;const f=a,m=s;if(r===0)i=0,a=!0,s=!0;else{i=(e-t.minTranslate())/r;const y=Math.abs(e-t.minTranslate())<1,b=Math.abs(e-t.maxTranslate())<1;a=y||i<=0,s=b||i>=1,y&&(i=0),b&&(i=1)}if(n.loop){const y=t.getSlideIndexByData(0),b=t.getSlideIndexByData(t.slides.length-1),T=t.slidesGrid[y],x=t.slidesGrid[b],$=t.slidesGrid[t.slidesGrid.length-1],A=Math.abs(e);A>=T?o=(A-T)/$:o=(A+$-x)/$,o>1&&(o-=1)}Object.assign(t,{progress:i,progressLoop:o,isBeginning:a,isEnd:s}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),a&&!f&&t.emit("reachBeginning toEdge"),s&&!m&&t.emit("reachEnd toEdge"),(f&&!a||m&&!s)&&t.emit("fromEdge"),t.emit("progress",i)}const o8=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)};function fke(){const e=this,{slides:t,params:n,slidesEl:r,activeIndex:i}=e,a=e.virtual&&n.virtual.enabled,s=e.grid&&n.grid&&n.grid.rows>1,o=b=>cc(r,`.${n.slideClass}${b}, swiper-slide${b}`)[0];let f,m,y;if(a)if(n.loop){let b=i-e.virtual.slidesBefore;b<0&&(b=e.virtual.slides.length+b),b>=e.virtual.slides.length&&(b-=e.virtual.slides.length),f=o(`[data-swiper-slide-index="${b}"]`)}else f=o(`[data-swiper-slide-index="${i}"]`);else s?(f=t.find(b=>b.column===i),y=t.find(b=>b.column===i+1),m=t.find(b=>b.column===i-1)):f=t[i];f&&(s||(y=JTe(f,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!y&&(y=t[0]),m=XTe(f,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!m===0&&(m=t[t.length-1]))),t.forEach(b=>{o8(b,b===f,n.slideActiveClass),o8(b,b===y,n.slideNextClass),o8(b,b===m,n.slidePrevClass)}),e.emitSlidesClasses()}const qS=(e,t)=>{if(!e||e.destroyed||!e.params)return;const n=()=>e.isElement?"swiper-slide":`.${e.params.slideClass}`,r=t.closest(n());if(r){let i=r.querySelector(`.${e.params.lazyPreloaderClass}`);!i&&e.isElement&&(r.shadowRoot?i=r.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{r.shadowRoot&&(i=r.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`),i&&!i.lazyPreloaderManaged&&i.remove())})),i&&!i.lazyPreloaderManaged&&i.remove()}},s8=(e,t)=>{if(!e.slides[t])return;const n=e.slides[t].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},D$=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const n=e.slides.length;if(!n||!t||t<0)return;t=Math.min(t,n);const r=e.params.slidesPerView==="auto"?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),i=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const s=i,o=[s-t];o.push(...Array.from({length:t}).map((f,m)=>s+r+m)),e.slides.forEach((f,m)=>{o.includes(f.column)&&s8(e,m)});return}const a=i+r-1;if(e.params.rewind||e.params.loop)for(let s=i-t;s<=a+t;s+=1){const o=(s%n+n)%n;(o<i||o>a)&&s8(e,o)}else for(let s=Math.max(i-t,0);s<=Math.min(a+t,n-1);s+=1)s!==i&&(s>a||s<i)&&s8(e,s)};function hke(e){const{slidesGrid:t,params:n}=e,r=e.rtlTranslate?e.translate:-e.translate;let i;for(let a=0;a<t.length;a+=1)typeof t[a+1]<"u"?r>=t[a]&&r<t[a+1]-(t[a+1]-t[a])/2?i=a:r>=t[a]&&r<t[a+1]&&(i=a+1):r>=t[a]&&(i=a);return n.normalizeSlideIndex&&(i<0||typeof i>"u")&&(i=0),i}function pke(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{snapGrid:r,params:i,activeIndex:a,realIndex:s,snapIndex:o}=t;let f=e,m;const y=x=>{let $=x-t.virtual.slidesBefore;return $<0&&($=t.virtual.slides.length+$),$>=t.virtual.slides.length&&($-=t.virtual.slides.length),$};if(typeof f>"u"&&(f=hke(t)),r.indexOf(n)>=0)m=r.indexOf(n);else{const x=Math.min(i.slidesPerGroupSkip,f);m=x+Math.floor((f-x)/i.slidesPerGroup)}if(m>=r.length&&(m=r.length-1),f===a&&!t.params.loop){m!==o&&(t.snapIndex=m,t.emit("snapIndexChange"));return}if(f===a&&t.params.loop&&t.virtual&&t.params.virtual.enabled){t.realIndex=y(f);return}const b=t.grid&&i.grid&&i.grid.rows>1;let T;if(t.virtual&&i.virtual.enabled)i.loop?T=y(f):T=f;else if(b){const x=t.slides.find(A=>A.column===f);let $=parseInt(x.getAttribute("data-swiper-slide-index"),10);Number.isNaN($)&&($=Math.max(t.slides.indexOf(x),0)),T=Math.floor($/i.grid.rows)}else if(t.slides[f]){const x=t.slides[f].getAttribute("data-swiper-slide-index");x?T=parseInt(x,10):T=f}else T=f;Object.assign(t,{previousSnapIndex:o,snapIndex:m,previousRealIndex:s,realIndex:T,previousIndex:a,activeIndex:f}),t.initialized&&D$(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(s!==T&&t.emit("realIndexChange"),t.emit("slideChange"))}function mke(e,t){const n=this,r=n.params;let i=e.closest(`.${r.slideClass}, swiper-slide`);!i&&n.isElement&&t&&t.length>1&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach(o=>{!i&&o.matches&&o.matches(`.${r.slideClass}, swiper-slide`)&&(i=o)});let a=!1,s;if(i){for(let o=0;o<n.slides.length;o+=1)if(n.slides[o]===i){a=!0,s=o;break}}if(i&&a)n.clickedSlide=i,n.virtual&&n.params.virtual.enabled?n.clickedIndex=parseInt(i.getAttribute("data-swiper-slide-index"),10):n.clickedIndex=s;else{n.clickedSlide=void 0,n.clickedIndex=void 0;return}r.slideToClickedSlide&&n.clickedIndex!==void 0&&n.clickedIndex!==n.activeIndex&&n.slideToClickedSlide()}var gke={updateSize:oke,updateSlides:ske,updateAutoHeight:lke,updateSlidesOffset:uke,updateSlidesProgress:cke,updateProgress:dke,updateSlidesClasses:fke,updateActiveIndex:pke,updateClickedSlide:mke};function yke(e=this.isHorizontal()?"x":"y"){const t=this,{params:n,rtlTranslate:r,translate:i,wrapperEl:a}=t;if(n.virtualTranslate)return r?-i:i;if(n.cssMode)return i;let s=A$(a,e);return s+=t.cssOverflowAdjustment(),r&&(s=-s),s||0}function vke(e,t){const n=this,{rtlTranslate:r,params:i,wrapperEl:a,progress:s}=n;let o=0,f=0;const m=0;n.isHorizontal()?o=r?-e:e:f=e,i.roundLengths&&(o=Math.floor(o),f=Math.floor(f)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?o:f,i.cssMode?a[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-o:-f:i.virtualTranslate||(n.isHorizontal()?o-=n.cssOverflowAdjustment():f-=n.cssOverflowAdjustment(),a.style.transform=`translate3d(${o}px, ${f}px, ${m}px)`);let y;const b=n.maxTranslate()-n.minTranslate();b===0?y=0:y=(e-n.minTranslate())/b,y!==s&&n.updateProgress(e),n.emit("setTranslate",n.translate,t)}function _ke(){return-this.snapGrid[0]}function bke(){return-this.snapGrid[this.snapGrid.length-1]}function xke(e=0,t=this.params.speed,n=!0,r=!0,i){const a=this,{params:s,wrapperEl:o}=a;if(a.animating&&s.preventInteractionOnTransition)return!1;const f=a.minTranslate(),m=a.maxTranslate();let y;if(r&&e>f?y=f:r&&e<m?y=m:y=e,a.updateProgress(y),s.cssMode){const b=a.isHorizontal();if(t===0)o[b?"scrollLeft":"scrollTop"]=-y;else{if(!a.support.smoothScroll)return QW({swiper:a,targetPosition:-y,side:b?"left":"top"}),!0;o.scrollTo({[b?"left":"top"]:-y,behavior:"smooth"})}return!0}return t===0?(a.setTransition(0),a.setTranslate(y),n&&(a.emit("beforeTransitionStart",t,i),a.emit("transitionEnd"))):(a.setTransition(t),a.setTranslate(y),n&&(a.emit("beforeTransitionStart",t,i),a.emit("transitionStart")),a.animating||(a.animating=!0,a.onTranslateToWrapperTransitionEnd||(a.onTranslateToWrapperTransitionEnd=function(T){!a||a.destroyed||T.target===this&&(a.wrapperEl.removeEventListener("transitionend",a.onTranslateToWrapperTransitionEnd),a.onTranslateToWrapperTransitionEnd=null,delete a.onTranslateToWrapperTransitionEnd,a.animating=!1,n&&a.emit("transitionEnd"))}),a.wrapperEl.addEventListener("transitionend",a.onTranslateToWrapperTransitionEnd))),!0}var wke={getTranslate:yke,setTranslate:vke,minTranslate:_ke,maxTranslate:bke,translateTo:xke};function Ske(e,t){const n=this;n.params.cssMode||(n.wrapperEl.style.transitionDuration=`${e}ms`,n.wrapperEl.style.transitionDelay=e===0?"0ms":""),n.emit("setTransition",e,t)}function iG({swiper:e,runCallbacks:t,direction:n,step:r}){const{activeIndex:i,previousIndex:a}=e;let s=n;s||(i>a?s="next":i<a?s="prev":s="reset"),e.emit(`transition${r}`),t&&s==="reset"?e.emit(`slideResetTransition${r}`):t&&i!==a&&(e.emit(`slideChangeTransition${r}`),s==="next"?e.emit(`slideNextTransition${r}`):e.emit(`slidePrevTransition${r}`))}function Cke(e=!0,t){const n=this,{params:r}=n;r.cssMode||(r.autoHeight&&n.updateAutoHeight(),iG({swiper:n,runCallbacks:e,direction:t,step:"Start"}))}function Tke(e=!0,t){const n=this,{params:r}=n;n.animating=!1,!r.cssMode&&(n.setTransition(0),iG({swiper:n,runCallbacks:e,direction:t,step:"End"}))}var kke={setTransition:Ske,transitionStart:Cke,transitionEnd:Tke};function Eke(e=0,t,n=!0,r,i){typeof e=="string"&&(e=parseInt(e,10));const a=this;let s=e;s<0&&(s=0);const{params:o,snapGrid:f,slidesGrid:m,previousIndex:y,activeIndex:b,rtlTranslate:T,wrapperEl:x,enabled:$}=a;if(!$&&!r&&!i||a.destroyed||a.animating&&o.preventInteractionOnTransition)return!1;typeof t>"u"&&(t=a.params.speed);const A=Math.min(a.params.slidesPerGroupSkip,s);let N=A+Math.floor((s-A)/a.params.slidesPerGroup);N>=f.length&&(N=f.length-1);const O=-f[N];if(o.normalizeSlideIndex)for(let ee=0;ee<m.length;ee+=1){const Y=-Math.floor(O*100),z=Math.floor(m[ee]*100),H=Math.floor(m[ee+1]*100);typeof m[ee+1]<"u"?Y>=z&&Y<H-(H-z)/2?s=ee:Y>=z&&Y<H&&(s=ee+1):Y>=z&&(s=ee)}if(a.initialized&&s!==b&&(!a.allowSlideNext&&(T?O>a.translate&&O>a.minTranslate():O<a.translate&&O<a.minTranslate())||!a.allowSlidePrev&&O>a.translate&&O>a.maxTranslate()&&(b||0)!==s))return!1;s!==(y||0)&&n&&a.emit("beforeSlideChangeStart"),a.updateProgress(O);let I;s>b?I="next":s<b?I="prev":I="reset";const U=a.virtual&&a.params.virtual.enabled;if(!(U&&i)&&(T&&-O===a.translate||!T&&O===a.translate))return a.updateActiveIndex(s),o.autoHeight&&a.updateAutoHeight(),a.updateSlidesClasses(),o.effect!=="slide"&&a.setTranslate(O),I!=="reset"&&(a.transitionStart(n,I),a.transitionEnd(n,I)),!1;if(o.cssMode){const ee=a.isHorizontal(),Y=T?O:-O;if(t===0)U&&(a.wrapperEl.style.scrollSnapType="none",a._immediateVirtual=!0),U&&!a._cssModeVirtualInitialSet&&a.params.initialSlide>0?(a._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{x[ee?"scrollLeft":"scrollTop"]=Y})):x[ee?"scrollLeft":"scrollTop"]=Y,U&&requestAnimationFrame(()=>{a.wrapperEl.style.scrollSnapType="",a._immediateVirtual=!1});else{if(!a.support.smoothScroll)return QW({swiper:a,targetPosition:Y,side:ee?"left":"top"}),!0;x.scrollTo({[ee?"left":"top"]:Y,behavior:"smooth"})}return!0}const Q=rG().isSafari;return U&&!i&&Q&&a.isElement&&a.virtual.update(!1,!1,s),a.setTransition(t),a.setTranslate(O),a.updateActiveIndex(s),a.updateSlidesClasses(),a.emit("beforeTransitionStart",t,r),a.transitionStart(n,I),t===0?a.transitionEnd(n,I):a.animating||(a.animating=!0,a.onSlideToWrapperTransitionEnd||(a.onSlideToWrapperTransitionEnd=function(Y){!a||a.destroyed||Y.target===this&&(a.wrapperEl.removeEventListener("transitionend",a.onSlideToWrapperTransitionEnd),a.onSlideToWrapperTransitionEnd=null,delete a.onSlideToWrapperTransitionEnd,a.transitionEnd(n,I))}),a.wrapperEl.addEventListener("transitionend",a.onSlideToWrapperTransitionEnd)),!0}function Pke(e=0,t,n=!0,r){typeof e=="string"&&(e=parseInt(e,10));const i=this;if(i.destroyed)return;typeof t>"u"&&(t=i.params.speed);const a=i.grid&&i.params.grid&&i.params.grid.rows>1;let s=e;if(i.params.loop)if(i.virtual&&i.params.virtual.enabled)s=s+i.virtual.slidesBefore;else{let o;if(a){const A=s*i.params.grid.rows;o=i.slides.find(N=>N.getAttribute("data-swiper-slide-index")*1===A).column}else o=i.getSlideIndexByData(s);const f=a?Math.ceil(i.slides.length/i.params.grid.rows):i.slides.length,{centeredSlides:m,slidesOffsetBefore:y,slidesOffsetAfter:b}=i.params,T=m||!!y||!!b;let x=i.params.slidesPerView;x==="auto"?x=i.slidesPerViewDynamic():(x=Math.ceil(parseFloat(i.params.slidesPerView,10)),T&&x%2===0&&(x=x+1));let $=f-o<x;if(T&&($=$||o<Math.ceil(x/2)),r&&T&&i.params.slidesPerView!=="auto"&&!a&&($=!1),$){const A=T?o<i.activeIndex?"prev":"next":o-i.activeIndex-1<i.params.slidesPerView?"next":"prev";i.loopFix({direction:A,slideTo:!0,activeSlideIndex:A==="next"?o+1:o-f+1,slideRealIndex:A==="next"?i.realIndex:void 0})}if(a){const A=s*i.params.grid.rows;s=i.slides.find(N=>N.getAttribute("data-swiper-slide-index")*1===A).column}else s=i.getSlideIndexByData(s)}return requestAnimationFrame(()=>{i.slideTo(s,t,n,r)}),i}function $ke(e,t=!0,n){const r=this,{enabled:i,params:a,animating:s}=r;if(!i||r.destroyed)return r;typeof e>"u"&&(e=r.params.speed);let o=a.slidesPerGroup;a.slidesPerView==="auto"&&a.slidesPerGroup===1&&a.slidesPerGroupAuto&&(o=Math.max(r.slidesPerViewDynamic("current",!0),1));const f=r.activeIndex<a.slidesPerGroupSkip?1:o,m=r.virtual&&a.virtual.enabled;if(a.loop){if(s&&!m&&a.loopPreventsSliding)return!1;if(r.loopFix({direction:"next"}),r._clientLeft=r.wrapperEl.clientLeft,r.activeIndex===r.slides.length-1&&a.cssMode)return requestAnimationFrame(()=>{r.slideTo(r.activeIndex+f,e,t,n)}),!0}return a.rewind&&r.isEnd?r.slideTo(0,e,t,n):r.slideTo(r.activeIndex+f,e,t,n)}function Mke(e,t=!0,n){const r=this,{params:i,snapGrid:a,slidesGrid:s,rtlTranslate:o,enabled:f,animating:m}=r;if(!f||r.destroyed)return r;typeof e>"u"&&(e=r.params.speed);const y=r.virtual&&i.virtual.enabled;if(i.loop){if(m&&!y&&i.loopPreventsSliding)return!1;r.loopFix({direction:"prev"}),r._clientLeft=r.wrapperEl.clientLeft}const b=o?r.translate:-r.translate;function T(I){return I<0?-Math.floor(Math.abs(I)):Math.floor(I)}const x=T(b),$=a.map(I=>T(I)),A=i.freeMode&&i.freeMode.enabled;let N=a[$.indexOf(x)-1];if(typeof N>"u"&&(i.cssMode||A)){let I;a.forEach((U,B)=>{x>=U&&(I=B)}),typeof I<"u"&&(N=A?a[I]:a[I>0?I-1:I])}let O=0;if(typeof N<"u"&&(O=s.indexOf(N),O<0&&(O=r.activeIndex-1),i.slidesPerView==="auto"&&i.slidesPerGroup===1&&i.slidesPerGroupAuto&&(O=O-r.slidesPerViewDynamic("previous",!0)+1,O=Math.max(O,0))),i.rewind&&r.isBeginning){const I=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(I,e,t,n)}else if(i.loop&&r.activeIndex===0&&i.cssMode)return requestAnimationFrame(()=>{r.slideTo(O,e,t,n)}),!0;return r.slideTo(O,e,t,n)}function Ake(e,t=!0,n){const r=this;if(!r.destroyed)return typeof e>"u"&&(e=r.params.speed),r.slideTo(r.activeIndex,e,t,n)}function Ike(e,t=!0,n,r=.5){const i=this;if(i.destroyed)return;typeof e>"u"&&(e=i.params.speed);let a=i.activeIndex;const s=Math.min(i.params.slidesPerGroupSkip,a),o=s+Math.floor((a-s)/i.params.slidesPerGroup),f=i.rtlTranslate?i.translate:-i.translate;if(f>=i.snapGrid[o]){const m=i.snapGrid[o],y=i.snapGrid[o+1];f-m>(y-m)*r&&(a+=i.params.slidesPerGroup)}else{const m=i.snapGrid[o-1],y=i.snapGrid[o];f-m<=(y-m)*r&&(a-=i.params.slidesPerGroup)}return a=Math.max(a,0),a=Math.min(a,i.slidesGrid.length-1),i.slideTo(a,e,t,n)}function Dke(){const e=this;if(e.destroyed)return;const{params:t,slidesEl:n}=e,r=t.slidesPerView==="auto"?e.slidesPerViewDynamic():t.slidesPerView;let i=e.getSlideIndexWhenGrid(e.clickedIndex),a;const s=e.isElement?"swiper-slide":`.${t.slideClass}`,o=e.grid&&e.params.grid&&e.params.grid.rows>1;if(t.loop){if(e.animating)return;a=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?e.slideToLoop(a):i>(o?(e.slides.length-r)/2-(e.params.grid.rows-1):e.slides.length-r)?(e.loopFix(),i=e.getSlideIndex(cc(n,`${s}[data-swiper-slide-index="${a}"]`)[0]),JW(()=>{e.slideTo(i)})):e.slideTo(i)}else e.slideTo(i)}var Lke={slideTo:Eke,slideToLoop:Pke,slideNext:$ke,slidePrev:Mke,slideReset:Ake,slideToClosest:Ike,slideToClickedSlide:Dke};function Oke(e,t){const n=this,{params:r,slidesEl:i}=n;if(!r.loop||n.virtual&&n.params.virtual.enabled)return;const a=()=>{cc(i,`.${r.slideClass}, swiper-slide`).forEach(($,A)=>{$.setAttribute("data-swiper-slide-index",A)})},s=()=>{const x=cc(i,`.${r.slideBlankClass}`);x.forEach($=>{$.remove()}),x.length>0&&(n.recalcSlides(),n.updateSlides())},o=n.grid&&r.grid&&r.grid.rows>1;r.loopAddBlankSlides&&(r.slidesPerGroup>1||o)&&s();const f=r.slidesPerGroup*(o?r.grid.rows:1),m=n.slides.length%f!==0,y=o&&n.slides.length%r.grid.rows!==0,b=x=>{for(let $=0;$<x;$+=1){const A=n.isElement?Jx("swiper-slide",[r.slideBlankClass]):Jx("div",[r.slideClass,r.slideBlankClass]);n.slidesEl.append(A)}};if(m){if(r.loopAddBlankSlides){const x=f-n.slides.length%f;b(x),n.recalcSlides(),n.updateSlides()}else H4("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");a()}else if(y){if(r.loopAddBlankSlides){const x=r.grid.rows-n.slides.length%r.grid.rows;b(x),n.recalcSlides(),n.updateSlides()}else H4("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may 
829not function properly. You need to add more slides (or make duplicates, or empty slides)");a()}else a();const T=r.centeredSlides||!!r.slidesOffsetBefore||!!r.slidesOffsetAfter;n.loopFix({slideRealIndex:e,direction:T?void 0:"next",initial:t})}function Rke({slideRealIndex:e,slideTo:t=!0,direction:n,setTranslate:r,activeSlideIndex:i,initial:a,byController:s,byMousewheel:o}={}){const f=this;if(!f.params.loop)return;f.emit("beforeLoopFix");const{slides:m,allowSlidePrev:y,allowSlideNext:b,slidesEl:T,params:x}=f,{centeredSlides:$,slidesOffsetBefore:A,slidesOffsetAfter:N,initialSlide:O}=x,I=$||!!A||!!N;if(f.allowSlidePrev=!0,f.allowSlideNext=!0,f.virtual&&x.virtual.enabled){t&&(!I&&f.snapIndex===0?f.slideTo(f.virtual.slides.length,0,!1,!0):I&&f.snapIndex<x.slidesPerView?f.slideTo(f.virtual.slides.length+f.snapIndex,0,!1,!0):f.snapIndex===f.snapGrid.length-1&&f.slideTo(f.virtual.slidesBefore,0,!1,!0)),f.allowSlidePrev=y,f.allowSlideNext=b,f.emit("loopFix");return}let U=x.slidesPerView;U==="auto"?U=f.slidesPerViewDynamic():(U=Math.ceil(parseFloat(x.slidesPerView,10)),I&&U%2===0&&(U=U+1));const B=x.slidesPerGroupAuto?U:x.slidesPerGroup;let q=I?Math.max(B,Math.ceil(U/2)):B;q%B!==0&&(q+=B-q%B),q+=x.loopAdditionalSlides,f.loopedSlides=q;const Q=f.grid&&x.grid&&x.grid.rows>1;m.length<U+q||f.params.effect==="cards"&&m.length<U+q*2?H4("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):Q&&x.grid.fill==="row"&&H4("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const ee=[],Y=[],z=Q?Math.ceil(m.length/x.grid.rows):m.length,H=a&&z-O<U&&!I;let K=H?O:f.activeIndex;typeof i>"u"?i=f.getSlideIndex(m.find(ye=>ye.classList.contains(x.slideActiveClass))):K=i;const ne=n==="next"||!n,le=n==="prev"||!n;let pe=0,ae=0;const ce=(Q?m[i].column:i)+(I&&typeof r>"u"?-U/2+.5:0);if(ce<q){pe=Math.max(q-ce,B);for(let ye=0;ye<q-ce;ye+=1){const $e=ye-Math.floor(ye/z)*z;if(Q){const Be=z-$e-1;for(let je=m.length-1;je>=0;je-=1)m[je].column===Be&&ee.push(je)}else ee.push(z-$e-1)}}else if(ce+U>z-q){ae=Math.max(ce-(z-q*2),B),H&&(ae=Math.max(ae,U-z+O+1));for(let ye=0;ye<ae;ye+=1){const $e=ye-Math.floor(ye/z)*z;Q?m.forEach((Be,je)=>{Be.column===$e&&Y.push(je)}):Y.push($e)}}if(f.__preventObserver__=!0,requestAnimationFrame(()=>{f.__preventObserver__=!1}),f.params.effect==="cards"&&m.length<U+q*2&&(Y.includes(i)&&Y.splice(Y.indexOf(i),1),ee.includes(i)&&ee.splice(ee.indexOf(i),1)),le&&ee.forEach(ye=>{m[ye].swiperLoopMoveDOM=!0,T.prepend(m[ye]),m[ye].swiperLoopMoveDOM=!1}),ne&&Y.forEach(ye=>{m[ye].swiperLoopMoveDOM=!0,T.append(m[ye]),m[ye].swiperLoopMoveDOM=!1}),f.recalcSlides(),x.slidesPerView==="auto"?f.updateSlides():Q&&(ee.length>0&&le||Y.length>0&&ne)&&f.slides.forEach((ye,$e)=>{f.grid.updateSlide($e,ye,f.slides)}),x.watchSlidesProgress&&f.updateSlidesOffset(),t){if(ee.length>0&&le){if(typeof e>"u"){const ye=f.slidesGrid[K],Be=f.slidesGrid[K+pe]-ye;o?f.setTranslate(f.translate-Be):(f.slideTo(K+Math.ceil(pe),0,!1,!0),r&&(f.touchEventsData.startTranslate=f.touchEventsData.startTranslate-Be,f.touchEventsData.currentTranslate=f.touchEventsData.currentTranslate-Be))}else if(r){const ye=Q?ee.length/x.grid.rows:ee.length;f.slideTo(f.activeIndex+ye,0,!1,!0),f.touchEventsData.currentTranslate=f.translate}}else if(Y.length>0&&ne)if(typeof e>"u"){const ye=f.slidesGrid[K],Be=f.slidesGrid[K-ae]-ye;o?f.setTranslate(f.translate-Be):(f.slideTo(K-ae,0,!1,!0),r&&(f.touchEventsData.startTranslate=f.touchEventsData.startTranslate-Be,f.touchEventsData.currentTranslate=f.touchEventsData.currentTranslate-Be))}else{const ye=Q?Y.length/x.grid.rows:Y.length;f.slideTo(f.activeIndex-ye,0,!1,!0)}}if(f.allowSlidePrev=y,f.allowSlideNext=b,f.controller&&f.controller.control&&!s){const ye={slideRealIndex:e,direction:n,setTranslate:r,activeSlideIndex:i,byController:!0};Array.isArray(f.controller.control)?f.controller.control.forEach($e=>{!$e.destroyed&&$e.params.loop&&$e.loopFix({...ye,slideTo:$e.params.slidesPerView===x.slidesPerView?t:!1})}):f.controller.control instanceof f.constructor&&f.controller.control.params.loop&&f.controller.control.loopFix({...ye,slideTo:f.controller.control.params.slidesPerView===x.slidesPerView?t:!1})}f.emit("loopFix")}function Bke(){const e=this,{params:t,slidesEl:n}=e;if(!t.loop||!n||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const r=[];
vendor: 16,978 bytes, line 829
829e.slides.forEach(i=>{const a=typeof i.swiperSlideIndex>"u"?i.getAttribute("data-swiper-slide-index")*1:i.swiperSlideIndex;r[a]=i}),e.slides.forEach(i=>{i.removeAttribute("data-swiper-slide-index")}),r.forEach(i=>{n.append(i)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}var Fke={loopCreate:Oke,loopFix:Rke,loopDestroy:Bke};function zke(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const n=t.params.touchEventsTarget==="container"?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),n.style.cursor="move",n.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})}function Nke(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e[e.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}var Vke={setGrabCursor:zke,unsetGrabCursor:Nke};function qke(e,t=this){function n(r){if(!r||r===mu()||r===Ss())return null;r.assignedSlot&&(r=r.assignedSlot);const i=r.closest(e);return!i&&!r.getRootNode?null:i||n(r.getRootNode().host)}return n(t)}function sB(e,t,n){const r=Ss(),{params:i}=e,a=i.edgeSwipeDetection,s=i.edgeSwipeThreshold;return a&&(n<=s||n>=r.innerWidth-s)?a==="prevent"?(t.preventDefault(),!0):!1:!0}function jke(e){const t=this;if(t.destroyed)return;const n=mu();let r=e;r.originalEvent&&(r=r.originalEvent);const i=t.touchEventsData;if(r.type==="pointerdown"){if(i.pointerId!==null&&i.pointerId!==r.pointerId)return;i.pointerId=r.pointerId}else r.type==="touchstart"&&r.targetTouches.length===1&&(i.touchId=r.targetTouches[0].identifier);if(r.type==="touchstart"){sB(t,r,r.targetTouches[0].pageX);return}const{params:a,touches:s,enabled:o}=t;if(!o||!a.simulateTouch&&r.pointerType==="mouse"||t.animating&&a.preventInteractionOnTransition)return;!t.animating&&a.cssMode&&a.loop&&t.loopFix();let f=r.target;if(a.touchEventsTarget==="wrapper"&&!KTe(f,t.wrapperEl)||"which"in r&&r.which===3||"button"in r&&r.button>0||i.isTouched&&i.isMoved)return;const m=!!a.noSwipingClass&&a.noSwipingClass!=="",y=r.composedPath?r.composedPath():r.path;m&&r.target&&r.target.shadowRoot&&y&&(f=y[0]);const b=a.noSwipingSelector?a.noSwipingSelector:`.${a.noSwipingClass}`,T=!!(r.target&&r.target.shadowRoot);if(a.noSwiping&&(T?qke(b,f):f.closest(b))){t.allowClick=!0;return}if(a.swipeHandler&&!f.closest(a.swipeHandler))return;s.currentX=r.pageX,s.currentY=r.pageY;const x=s.currentX,$=s.currentY;if(!sB(t,r,x))return;Object.assign(i,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),s.startX=x,s.startY=$,i.touchStartTime=U4(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,a.threshold>0&&(i.allowThresholdMove=!1);let A=!0;f.matches(i.focusableElements)&&(A=!1,f.nodeName==="SELECT"&&(i.isTouched=!1)),n.activeElement&&n.activeElement.matches(i.focusableElements)&&n.activeElement!==f&&(r.pointerType==="mouse"||r.pointerType!=="mouse"&&!f.matches(i.focusableElements))&&n.activeElement.blur();const N=A&&t.allowTouchMove&&a.touchStartPreventDefault;(a.touchStartForcePreventDefault||N)&&!f.isContentEditable&&r.preventDefault(),a.freeMode&&a.freeMode.enabled&&t.freeMode&&t.animating&&!a.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",r)}function Uke(e){const t=mu(),n=this;if(n.destroyed)return;const r=n.touchEventsData,{params:i,touches:a,rtlTranslate:s,enabled:o}=n;if(!o||!i.simulateTouch&&e.pointerType==="mouse")return;let f=e;if(f.originalEvent&&(f=f.originalEvent),f.type==="pointermove"&&(r.touchId!==null||f.pointerId!==r.pointerId))return;let m;if(f.type==="touchmove"){if(m=[...f.changedTouches].find(q=>q.identifier===r.touchId),!m||m.identifier!==r.touchId)return}else m=f;if(!r.isTouched){r.startMoving&&r.isScrolling&&n.emit("touchMoveOpposite",f);return}const y=m.pageX,b=m.pageY;if(f.preventedByNestedSwiper){a.startX=y,a.startY=b;return}if(!n.allowTouchMove){f.target.matches(r.focusableElements)||(n.allowClick=!1),r.isTouched&&(Object.assign(a,{startX:y,startY:b,currentX:y,currentY:b}),r.touchStartTime=U4());return}if(i.touchReleaseOnEdges&&!i.loop)if(n.isVertical()){if(b<a.startY&&n.translate<=n.maxTranslate()||b>a.startY&&n.translate>=n.minTranslate()){r.isTouched=!1,r.isMoved=!1;return}}else{if(s&&(y>a.startX&&-n.translate<=n.maxTranslate()||y<a.startX&&-n.translate>=n.minTranslate()))return;if(!s&&(y<a.startX&&n.translate<=n.maxTranslate()||y>a.startX&&n.translate>=n.minTranslate()))return}if(t.activeElement&&t.activeElement.matches(r.focusableElements)&&t.activeElement!==f.target&&f.pointerType!=="mouse"&&t.activeElement.blur(),t.activeElement&&f.target===t.activeElement&&f.target.matches(r.focusableElements)){r.isMoved=!0,n.allowClick=!1;return}r.allowTouchCallbacks&&n.emit("touchMove",f),a.previousX=a.currentX,a.previousY=a.currentY,a.currentX=y,a.currentY=b;const T=a.currentX-a.startX,x=a.currentY-a.startY;if(n.params.threshold&&Math.sqrt(T**2+x**2)<n.params.threshold)return;if(typeof r.isScrolling>"u"){let q;n.isHorizontal()&&a.currentY===a.startY||n.isVertical()&&a.currentX===a.startX?r.isScrolling=!1:T*T+x*x>=25&&(q=Math.atan2(Math.abs(x),Math.abs(T))*180/Math.PI,r.isScrolling=n.isHorizontal()?q>i.touchAngle:90-q>i.touchAngle)}if(r.isScrolling&&n.emit("touchMoveOpposite",f),typeof r.startMoving>"u"&&(a.currentX!==a.startX||a.currentY!==a.startY)&&(r.startMoving=!0),r.isScrolling||f.type==="touchmove"&&r.preventTouchMoveFromPointerMove){r.isTouched=!1;return}if(!r.startMoving)return;n.allowClick=!1,!i.cssMode&&f.cancelable&&f.preventDefault(),i.touchMoveStopPropagation&&!i.nested&&f.stopPropagation();let $=n.isHorizontal()?T:x,A=n.isHorizontal()?a.currentX-a.previousX:a.currentY-a.previousY;i.oneWayMovement&&($=Math.abs($)*(s?1:-1),A=Math.abs(A)*(s?1:-1)),a.diff=$,$*=i.touchRatio,s&&($=-$,A=-A);const N=n.touchesDirection;n.swipeDirection=$>0?"prev":"next",n.touchesDirection=A>0?"prev":"next";const O=n.params.loop&&!i.cssMode,I=n.touchesDirection==="next"&&n.allowSlideNext||n.touchesDirection==="prev"&&n.allowSlidePrev;if(!r.isMoved){if(O&&I&&n.loopFix({direction:n.swipeDirection}),r.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){const q=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});n.wrapperEl.dispatchEvent(q)}r.allowMomentumBounce=!1,i.grabCursor&&(n.allowSlideNext===!0||n.allowSlidePrev===!0)&&n.setGrabCursor(!0),n.emit("sliderFirstMove",f)}if(new Date().getTime(),i._loopSwapReset!==!1&&r.isMoved&&r.allowThresholdMove&&N!==n.touchesDirection&&O&&I&&Math.abs($)>=1){Object.assign(a,{startX:y,startY:b,currentX:y,currentY:b,startTranslate:r.currentTranslate}),r.loopSwapReset=!0,r.startTranslate=r.currentTranslate;return}n.emit("sliderMove",f),r.isMoved=!0,r.currentTranslate=$+r.startTranslate;let U=!0,B=i.resistanceRatio;if(i.touchReleaseOnEdges&&(B=0),$>0?(O&&I&&r.allowThresholdMove&&r.currentTranslate>(i.centeredSlides?n.minTranslate()-n.slidesSizesGrid[n.activeIndex+1]-(i.slidesPerView!=="auto"&&n.slides.length-i.slidesPerView>=2?n.slidesSizesGrid[n.activeIndex+1]+n.params.spaceBetween:0)-n.params.spaceBetween:n.minTranslate())&&n.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),r.currentTranslate>n.minTranslate()&&(U=!1,i.resistance&&(r.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+r.startTranslate+$)**B))):$<0&&(O&&I&&r.allowThresholdMove&&r.currentTranslate<(i.centeredSlides?n.maxTranslate()+n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween+(i.slidesPerView!=="auto"&&n.slides.length-i.slidesPerView>=2?n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween:0):n.maxTranslate())&&n.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:n.slides.length-(i.slidesPerView==="auto"?n.slidesPerViewDynamic():Math.ceil(parseFloat(i.slidesPerView,10)))}),r.currentTranslate<n.maxTranslate()&&(U=!1,i.resistance&&(r.currentTranslate=n.maxTranslate()+1-(n.maxTranslate()-r.startTranslate-$)**B))),U&&(f.preventedByNestedSwiper=!0),!n.allowSlideNext&&n.swipeDirection==="next"&&r.currentTranslate<r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&n.swipeDirection==="prev"&&r.currentTranslate>r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&!n.allowSlideNext&&(r.currentTranslate=r.startTranslate),i.threshold>0)if(Math.abs($)>i.threshold||r.allowThresholdMove){if(!r.allowThresholdMove){r.allowThresholdMove=!0,a.startX=a.currentX,a.startY=a.currentY,r.currentTranslate=r.startTranslate,a.diff=n.isHorizontal()?a.currentX-a.startX:a.currentY-a.startY;return}}else{r.currentTranslate=r.startTranslate;return}!i.followFinger||i.cssMode||((i.freeMode&&i.freeMode.enabled&&n.freeMode||i.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),i.freeMode&&i.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(r.currentTranslate),n.setTranslate(r.currentTranslate))}function Hke(e){const t=this;if(t.destroyed)return;const n=t.touchEventsData;let r=e;r.originalEvent&&(r=r.originalEvent);let i;if(r.type==="touchend"||r.type==="touchcancel"){if(i=[...r.changedTouches].find(q=>q.identifier===n.touchId),!i||i.identifier!==n.touchId)return}else{if(n.touchId!==null||r.pointerId!==n.pointerId)return;i=r}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(r.type)&&!(["pointercancel","contextmenu"].includes(r.type)&&(t.browser.isSafari||t.browser.isWebView)))return;n.pointerId=null,n.touchId=null;const{params:s,touches:o,rtlTranslate:f,slidesGrid:m,enabled:y}=t;if(!y||!s.simulateTouch&&r.pointerType==="mouse")return;if(n.allowTouchCallbacks&&t.emit("touchEnd",r),n.allowTouchCallbacks=!1,!n.isTouched){n.isMoved&&s.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,n.startMoving=!1;return}s.grabCursor&&n.isMoved&&n.isTouched&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!1);const b=U4(),T=b-n.touchStartTime;if(t.allowClick){const q=r.path||r.composedPath&&r.composedPath();t.updateClickedSlide(q&&q[0]||r.target,q),t.emit("tap click",r),T<300&&b-n.lastClickTime<300&&t.emit("doubleTap doubleClick",r)}if(n.lastClickTime=U4(),JW(()=>{t.destroyed||(t.allowClick=!0)}),!n.isTouched||!n.isMoved||!t.swipeDirection||o.diff===0&&!n.loopSwapReset||n.currentTranslate===n.startTranslate&&!n.loopSwapReset){n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;return}n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;let x;if(s.followFinger?x=f?t.translate:-t.translate:x=-n.currentTranslate,s.cssMode)return;if(s.freeMode&&s.freeMode.enabled){t.freeMode.onTouchEnd({currentPos:x});return}const $=x>=-t.maxTranslate()&&!t.params.loop;let A=0,N=t.slidesSizesGrid[0];for(let q=0;q<m.length;q+=q<s.slidesPerGroupSkip?1:s.slidesPerGroup){const Q=q<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;typeof m[q+Q]<"u"?($||x>=m[q]&&x<m[q+Q])&&(A=q,N=m[q+Q]-m[q]):($||x>=m[q])&&(A=q,N=m[m.length-1]-m[m.length-2])}let O=null,I=null;s.rewind&&(t.isBeginning?I=s.virtual&&s.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(O=0));const U=(x-m[A])/N,B=A<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;if(T>s.longSwipesMs){if(!s.longSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection==="next"&&(U>=s.longSwipesRatio?t.slideTo(s.rewind&&t.isEnd?O:A+B):t.slideTo(A)),t.swipeDirection==="prev"&&(U>1-s.longSwipesRatio?t.slideTo(A+B):I!==null&&U<0&&Math.abs(U)>s.longSwipesRatio?t.slideTo(I):t.slideTo(A))}else{if(!s.shortSwipes){t.slideTo(t.activeIndex);return}t.navigation&&(r.target===t.navigation.nextEl||r.target===t.navigation.prevEl)?r.target===t.navigation.nextEl?t.slideTo(A+B):t.slideTo(A):(t.swipeDirection==="next"&&t.slideTo(O!==null?O:A+B),t.swipeDirection==="prev"&&t.slideTo(I!==null?I:A))}}function lB(){const e=this,{params:t,el:n}=e;if(n&&n.offsetWidth===0)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:r,allowSlidePrev:i,snapGrid:a}=e,s=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const o=s&&t.loop;if((t.slidesPerView==="auto"||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides&&!o){const f=s?e.virtual.slides:e.slides;e.slideTo(f.length-1,0,!1,!0)}else e.params.loop&&!s?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0);e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=i,e.allowSlideNext=r,e.params.watchOverflow&&a!==e.snapGrid&&e.checkOverflow()}function Wke(e){const t=this;t.destroyed||t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function Gke(){const e=this;if(e.destroyed)return;const{wrapperEl:t,rtlTranslate:n,enabled:r}=e;if(!r)return;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,e.translate===0&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();let i;const a=e.maxTranslate()-e.minTranslate();a===0?i=0:i=(e.translate-e.minTranslate())/a,i!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function Yke(e){const t=this;t.destroyed||(qS(t,e.target),!(t.params.cssMode||t.params.slidesPerView!=="auto"&&!t.params.autoHeight)&&t.update())}function Zke(){const e=this;e.destroyed||e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}const aG=(e,t)=>{const n=mu(),{params:r,el:i,wrapperEl:a,device:s}=e,o=!!r.nested,f=t==="on"?"addEventListener":"removeEventListener",m=t;!i||typeof i=="string"||(n[f]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:o}),i[f]("touchstart",e.onTouchStart,{passive:!1}),i[f]("pointerdown",e.onTouchStart,{passive:!1}),n[f]("touchmove",e.onTouchMove,{passive:!1,capture:o}),n[f]("pointermove",e.onTouchMove,{passive:!1,capture:o}),n[f]("touchend",e.onTouchEnd,{passive:!0}),n[f]("pointerup",e.onTouchEnd,{passive:!0}),n[f]("pointercancel",e.onTouchEnd,{passive:!0}),n[f]("touchcancel",e.onTouchEnd,{passive:!0}),n[f]("pointerout",e.onTouchEnd,{passive:!0}),n[f]("pointerleave",e.onTouchEnd,{passive:!0}),n[f]("contextmenu",e.onTouchEnd,{passive:!0}),(r.preventClicks||r.preventClicksPropagation)&&i[f]("click",e.onClick,!0),r.cssMode&&a[f]("scroll",e.onScroll),r.updateOnWindowResize?e[m](s.ios||s.android?"resize orientationchange observerUpdate":"resize observerUpdate",lB,!0):e[m]("observerUpdate",lB,!0),i[f]("load",e.onLoad,{capture:!0}))};function Kke(){const e=this,{params:t}=e;e.onTouchStart=jke.bind(e),e.onTouchMove=Uke.bind(e),e.onTouchEnd=Hke.bind(e),e.onDocumentTouchStart=Zke.bind(e),t.cssMode&&(e.onScroll=Gke.bind(e)),e.onClick=Wke.bind(e),e.onLoad=Yke.bind(e),aG(e,"on")}function Xke(){aG(this,"off")}var Jke={attachEvents:Kke,detachEvents:Xke};const uB=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;function Qke(){const e=this,{realIndex:t,initialized:n,params:r,el:i}=e,a=r.breakpoints;if(!a||a&&Object.keys(a).length===0)return;const s=mu(),o=r.breakpointsBase==="window"||!r.breakpointsBase?r.breakpointsBase:"container",f=["window","container"].includes(r.breakpointsBase)||!r.breakpointsBase?e.el:s.querySelector(r.breakpointsBase),m=e.getBreakpoint(a,o,f);if(!m||e.currentBreakpoint===m)return;const b=(m in a?a[m]:void 0)||e.originalParams,T=uB(e,r),x=uB(e,b),$=e.params.grabCursor,A=b.grabCursor,N=r.enabled;T&&!x?(i.classList.remove(`${r.containerModifierClass}grid`,`${r.containerModifierClass}grid-column`),e.emitContainerClasses()):!T&&x&&(i.classList.add(`${r.containerModifierClass}grid`),(b.grid.fill&&b.grid.fill==="column"||!b.grid.fill&&r.grid.fill==="column")&&i.classList.add(`${r.containerModifierClass}grid-column`),e.emitContainerClasses()),$&&!A?e.unsetGrabCursor():!$&&A&&e.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(Q=>{if(typeof b[Q]>"u")return;const ee=r[Q]&&r[Q].enabled,Y=b[Q]&&b[Q].enabled;ee&&!Y&&e[Q].disable(),!ee&&Y&&e[Q].enable()});const O=b.direction&&b.direction!==r.direction,I=r.loop&&(b.slidesPerView!==r.slidesPerView||O),U=r.loop;O&&n&&e.changeDirection(),au(e.params,b);const B=e.params.enabled,q=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),N&&!B?e.disable():!N&&B&&e.enable(),e.currentBreakpoint=m,e.emit("_beforeBreakpoint",b),n&&(I?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!U&&q?(e.loopCreate(t),e.updateSlides()):U&&!q&&e.loopDestroy()),e.emit("breakpoint",b)}function eEe(e,t="window",n){if(!e||t==="container"&&!n)return;let r=!1;const i=Ss(),a=t==="window"?i.innerHeight:n.clientHeight,s=Object.keys(e).map(o=>{if(typeof o=="string"&&o.indexOf("@")===0){const f=parseFloat(o.substr(1));return{value:a*f,point:o}}return{value:o,point:o}});s.sort((o,f)=>
vendor: 4,691 bytes, line 829
829parseInt(o.value,10)-parseInt(f.value,10));for(let o=0;o<s.length;o+=1){const{point:f,value:m}=s[o];t==="window"?i.matchMedia(`(min-width: ${m}px)`).matches&&(r=f):m<=n.clientWidth&&(r=f)}return r||"max"}var tEe={setBreakpoint:Qke,getBreakpoint:eEe};function nEe(e,t){const n=[];return e.forEach(r=>{typeof r=="object"?Object.keys(r).forEach(i=>{r[i]&&n.push(t+i)}):typeof r=="string"&&n.push(t+r)}),n}function rEe(){const e=this,{classNames:t,params:n,rtl:r,el:i,device:a}=e,s=nEe(["initialized",n.direction,{"free-mode":e.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:r},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&n.grid.fill==="column"},{android:a.android},{ios:a.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...s),i.classList.add(...t),e.emitContainerClasses()}function iEe(){const e=this,{el:t,classNames:n}=e;!t||typeof t=="string"||(t.classList.remove(...n),e.emitContainerClasses())}var aEe={addClasses:rEe,removeClasses:iEe};function oEe(){const e=this,{isLocked:t,params:n}=e,{slidesOffsetBefore:r}=n;if(r){const i=e.slides.length-1,a=e.slidesGrid[i]+e.slidesSizesGrid[i]+r*2;e.isLocked=e.size>a}else e.isLocked=e.snapGrid.length===1;n.allowSlideNext===!0&&(e.allowSlideNext=!e.isLocked),n.allowSlidePrev===!0&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}var sEe={checkOverflow:oEe},L$={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,snapToSlideEdge:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function lEe(e,t){return function(r={}){const i=Object.keys(r)[0],a=r[i];if(typeof a!="object"||a===null){au(t,r);return}if(e[i]===!0&&(e[i]={enabled:!0}),i==="navigation"&&e[i]&&e[i].enabled&&!e[i].prevEl&&!e[i].nextEl&&(e[i].auto=!0),["pagination","scrollbar"].indexOf(i)>=0&&e[i]&&e[i].enabled&&!e[i].el&&(e[i].auto=!0),!(i in e&&"enabled"in a)){au(t,r);return}typeof e[i]=="object"&&!("enabled"in e[i])&&(e[i].enabled=!0),e[i]||(e[i]={enabled:!1}),au(t,r)}}const l8={eventsEmitter:ake,update:gke,translate:wke,transition:kke,slide:Lke,loop:Fke,grabCursor:Vke,events:Jke,breakpoints:tEe,checkOverflow:sEe,classes:aEe},u8={};let jI=class Vh{constructor(...t){let n,r;t.length===1&&t[0].constructor&&Object.prototype.toString.call(t[0]).slice(8,-1)==="Object"?r=t[0]:[n,r]=t,r||(r={}),r=au({},r),n&&!r.el&&(r.el=n);const i=mu();if(r.el&&typeof r.el=="string"&&i.querySelectorAll(r.el).length>1){const f=[];return i.querySelectorAll(r.el).forEach(m=>{const y=au({},r,{el:m});f.push(new Vh(y))}),f}const a=this;a.__swiper__=!0,a.support=tG(),a.device=nG({userAgent:r.userAgent}),a.browser=rG(),a.eventsListeners={},a.eventsAnyListeners=[],a.modules=[...a.__modules__],r.modules&&Array.isArray(r.modules)&&r.modules.forEac
vendor: 8,372 bytes, line 829
829h(f=>{typeof f=="function"&&a.modules.indexOf(f)<0&&a.modules.push(f)});const s={};a.modules.forEach(f=>{f({params:r,swiper:a,extendParams:lEe(r,s),on:a.on.bind(a),once:a.once.bind(a),off:a.off.bind(a),emit:a.emit.bind(a)})});const o=au({},L$,s);return a.params=au({},o,u8,r),a.originalParams=au({},a.params),a.passedParams=au({},r),a.params&&a.params.on&&Object.keys(a.params.on).forEach(f=>{a.on(f,a.params.on[f])}),a.params&&a.params.onAny&&a.onAny(a.params.onAny),Object.assign(a,{enabled:a.params.enabled,el:n,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return a.params.direction==="horizontal"},isVertical(){return a.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:a.params.allowSlideNext,allowSlidePrev:a.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:a.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:a.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),a.emit("_swiper"),a.params.init&&a.init(),a}getDirectionLabel(t){return this.isHorizontal()?t:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[t]}getSlideIndex(t){const{slidesEl:n,params:r}=this,i=cc(n,`.${r.slideClass}, swiper-slide`),a=Qx(i[0]);return Qx(t)-a}getSlideIndexByData(t){return this.getSlideIndex(this.slides.find(n=>n.getAttribute("data-swiper-slide-index")*1===t))}getSlideIndexWhenGrid(t){return this.grid&&this.params.grid&&this.params.grid.rows>1&&(this.params.grid.fill==="column"?t=Math.floor(t/this.params.grid.rows):this.params.grid.fill==="row"&&(t=t%Math.ceil(this.slides.length/this.params.grid.rows))),t}recalcSlides(){const t=this,{slidesEl:n,params:r}=t;t.slides=cc(n,`.${r.slideClass}, swiper-slide`)}enable(){const t=this;t.enabled||(t.enabled=!0,t.params.grabCursor&&t.setGrabCursor(),t.emit("enable"))}disable(){const t=this;t.enabled&&(t.enabled=!1,t.params.grabCursor&&t.unsetGrabCursor(),t.emit("disable"))}setProgress(t,n){const r=this;t=Math.min(Math.max(t,0),1);const i=r.minTranslate(),s=(r.maxTranslate()-i)*t+i;r.translateTo(s,typeof n>"u"?0:n),r.updateActiveIndex(),r.updateSlidesClasses()}emitContainerClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=t.el.className.split(" ").filter(r=>r.indexOf("swiper")===0||r.indexOf(t.params.containerModifierClass)===0);t.emit("_containerClasses",n.join(" "))}getSlideClasses(t){const n=this;return n.destroyed?"":t.className.split(" ").filter(r=>r.indexOf("swiper-slide")===0||r.indexOf(n.params.slideClass)===0).join(" ")}emitSlidesClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=[];t.slides.forEach(r=>{const i=t.getSlideClasses(r);n.push({slideEl:r,classNames:i}),t.emit("_slideClass",r,i)}),t.emit("_slideClasses",n)}slidesPerViewDynamic(t="current",n=!1){const r=this,{params:i,slides:a,slidesGrid:s,slidesSizesGrid:o,size:f,activeIndex:m}=r;let y=1;if(typeof i.slidesPerView=="number")return i.slidesPerView;if(i.centeredSlides){let b=a[m]?Math.ceil(a[m].swiperSlideSize):0,T;for(let x=m+1;x<a.length;x+=1)a[x]&&!T&&(b+=Math.ceil(a[x].swiperSlideSize),y+=1,b>f&&(T=!0));for(let x=m-1;x>=0;x-=1)a[x]&&!T&&(b+=a[x].swiperSlideSize,y+=1,b>f&&(T=!0))}else if(t==="current")for(let b=m+1;b<a.length;b+=1)(n?s[b]+o[b]-s[m]<f:s[b]-s[m]<f)&&(y+=1);else for(let b=m-1;b>=0;b-=1)s[m]-s[b]<f&&(y+=1);return y}update(){const t=this;if(!t||t.destroyed)return;const{snapGrid:n,params:r}=t;r.breakpoints&&t.setBreakpoint(),[...t.el.querySelectorAll('[loading="lazy"]')].forEach(s=>{s.complete&&qS(t,s)}),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses();function i(){const s=t.rtlTranslate?t.translate*-1:t.translate,o=Math.min(Math.max(s,t.maxTranslate()),t.minTranslate());t.setTranslate(o),t.updateActiveIndex(),t.updateSlidesClasses()}let a;if(r.freeMode&&r.freeMode.enabled&&!r.cssMode)i(),r.autoHeight&&t.updateAutoHeight();else{if((r.slidesPerView==="auto"||r.slidesPerView>1)&&t.isEnd&&!r.centeredSlides){const s=t.virtual&&r.virtual.enabled?t.virtual.slides:t.slides;a=t.slideTo(s.length-1,0,!1,!0)}else a=t.slideTo(t.activeIndex,0,!1,!0);a||i()}r.watchOverflow&&n!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,n=!0){const r=this,i=r.params.direction;return t||(t=i==="horizontal"?"vertical":"horizontal"),t===i||t!=="horizontal"&&t!=="vertical"||(r.el.classList.remove(`${r.params.containerModifierClass}${i}`),r.el.classList.add(`${r.params.containerModifierClass}${t}`),r.emitContainerClasses(),r.params.direction=t,r.slides.forEach(a=>{t==="vertical"?a.style.width="":a.style.height=""}),r.emit("changeDirection"),n&&r.update()),r}changeLanguageDirection(t){const n=this;n.rtl&&t==="rtl"||!n.rtl&&t==="ltr"||(n.rtl=t==="rtl",n.rtlTranslate=n.params.direction==="horizontal"&&n.rtl,n.rtl?(n.el.classList.add(`${n.params.containerModifierClass}rtl`),n.el.dir="rtl"):(n.el.classList.remove(`${n.params.containerModifierClass}rtl`),n.el.dir="ltr"),n.update())}mount(t){const n=this;if(n.mounted)return!0;let r=t||n.params.el;if(typeof r=="string"&&(r=document.querySelector(r)),!r)return!1;r.swiper=n,r.parentNode&&r.parentNode.host&&r.parentNode.host.nodeName===n.params.swiperElementNodeName.toUpperCase()&&(n.isElement=!0);const i=()=>`.${(n.params.wrapperClass||"").trim().split(" ").join(".")}`;let s=r&&r.shadowRoot&&r.shadowRoot.querySelector?r.shadowRoot.querySelector(i()):cc(r,i())[0];return!s&&n.params.createElements&&(s=Jx("div",n.params.wrapperClass),r.append(s),cc(r,`.${n.params.slideClass}`).forEach(o=>{s.append(o)})),Object.assign(n,{el:r,wrapperEl:s,slidesEl:n.isElement&&!r.parentNode.host.slideSlots?r.parentNode.host:s,hostEl:n.isElement?r.parentNode.host:r,mounted:!0,rtl:r.dir.toLowerCase()==="rtl"||ng(r,"direction")==="rtl",rtlTranslate:n.params.direction==="horizontal"&&(r.dir.toLowerCase()==="rtl"||ng(r,"direction")==="rtl"),wrongRTL:ng(s,"display")==="-webkit-box"}),!0}init(t){const n=this;if(n.initialized||n.mount(t)===!1)return n;n.emit("beforeInit"),n.params.breakpoints&&n.setBreakpoint(),n.addClasses(),n.updateSize(),n.updateSlides(),n.params.watchOverflow&&n.checkOverflow(),n.params.grabCursor&&n.enabled&&n.setGrabCursor(),n.params.loop&&n.virtual&&n.params.virtual.enabled?n.slideTo(n.params.initialSlide+n.virtual.slidesBefore,0,n.params.runCallbacksOnInit,!1,!0):n.slideTo(n.params.initialSlide,0,n.params.runCallbacksOnInit,!1,!0),n.params.loop&&n.loopCreate(void 0,!0),n.attachEvents();const i=[...n.el.querySelectorAll('[loading="lazy"]')];return n.isElement&&i.push(...n.hostEl.querySelectorAll('[loading="lazy"]')),i.forEach(a=>{a.complete?qS(n,a):a.addEventListener("load",s=>{qS(n,s.target)})}),D$(n),n.initialized=!0,D$(n),n.emit("init"),n.emit("afterInit"),n}destroy(t=!0,n=!0){const r=this,{params:i,el:a,wrapperEl:s,slides:o}=r;return typeof r.params>"u"||r.destroyed||(r.emit("beforeDestroy"),r.initialized=!1,r.detachEvents(),i.loop&&r.loopDestroy(),n&&(r.removeClasses(),a&&typeof a!="string"&&a.removeAttribute("style"),s&&s.removeAttribute("style"),o&&o.length&&o.forEach(f=>{f.classList.remove(i.slideVisibleClass,i.slideFullyVisibleClass,i.slideActiveClass,i.slideNextClass,i.slidePrevClass),f.removeAttribute("style"),f.removeAttribute("data-swiper-slide-index")})),r.emit("destroy"),Object.keys(r.eventsListeners).forEach(f=>{r.off(f)}),t!==!1&&(r.el&&typeof r.el!="string"&&(r.el.swiper=null),WTe(r)),r.destroyed=!0),null}static extendDefaults(t){au(u8,t)}static get extendedDefaults(){return u8}static get defaults(){return L$}static installModule(t){Vh.prototype.__modules__||(Vh.prototype.__modules__=[]);const n=Vh.prototype.__modules__;typeof t=="function"&&n.indexOf(t)<0&&n.push(t)}static use(t){return Array.isArray(t)?(t.forEach(n=>Vh.installModule(n)),Vh):(Vh.installModule(t),Vh)}};
vendor: 4,873 bytes, line 829
829Object.keys(l8).forEach(e=>{Object.keys(l8[e]).forEach(t=>{jI.prototype[t]=l8[e][t]})});jI.use([rke,ike]);const oG=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_snapToSlideEdge","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function e1(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"&&!e.__swiper__}function l_(e,t){const n=["__proto__","constructor","prototype"];Object.keys(t).filter(r=>n.indexOf(r)<0).forEach(r=>{typeof e[r]>"u"?e[r]=t[r]:e1(t[r])&&e1(e[r])&&Object.keys(t[r]).length>0?t[r].__swiper__?e[r]=t[r]:l_(e[r],t[r]):e[r]=t[r]})}function sG(e={}){return e.navigation&&typeof e.navigation.nextEl>"u"&&typeof e.navigation.prevEl>"u"}function lG(e={}){return e.pagination&&typeof e.pagination.el>"u"}function uG(e={}){return e.scrollbar&&typeof e.scrollbar.el>"u"}function cG(e=""){const t=e.split(" ").map(r=>r.trim()).filter(r=>!!r),n=[];return t.forEach(r=>{n.indexOf(r)<0&&n.push(r)}),n.join(" ")}function uEe(e=""){return e?e.includes("swiper-wrapper")?e:`swiper-wrapper ${e}`:"swiper-wrapper"}function cEe({swiper:e,slides:t,passedParams:n,changedParams:r,nextEl:i,prevEl:a,scrollbarEl:s,paginationEl:o}){const f=r.filter(Y=>Y!=="children"&&Y!=="direction"&&Y!=="wrapperClass"),{params:m,pagination:y,navigation:b,scrollbar:T,virtual:x,thumbs:$}=e;let A,N,O,I,U,B,q,Q;r.includes("thumbs")&&n.thumbs&&n.thumbs.swiper&&!n.thumbs.swiper.destroyed&&m.thumbs&&(!m.thumbs.swiper||m.thumbs.swiper.destroyed)&&(A=!0),r.includes("controller")&&n.controller&&n.controller.control&&m.controller&&!m.controller.control&&(N=!0),r.includes("pagination")&&n.pagination&&(n.pagination.el||o)&&(m.pagination||m.pagination===!1)&&y&&!y.el&&(O=!0),r.includes("scrollbar")&&n.scrollbar&&(n.scrollbar.el||s)&&(m.scrollbar||m.scrollbar===!1)&&T&&!T.el&&(I=!0),r.includes("navigation")&&n.navigation&&(n.navigation.prevEl||a)&&(n.navigation.nextEl||i)&&(m.navigation||m.navigation===!1)&&b&&!b.prevEl&&!b.nextEl&&(U=!0);const ee=Y=>{e[Y]&&(e[Y].destroy(),Y==="navigation"?(e.isElement&&(e[Y].prevEl.remove(),e[Y].nextEl.remove()),m[Y].prevEl=void 0,m[Y].nextEl=void 0,e[Y].prevEl=void 0,e[Y].nextEl=void 0):(e.isElement&&e[Y].el.remove(),m[Y].el=void 0,e[Y].el=void 0))};r.includes("loop")&&e.isElement&&(m.loop&&!n.loop?B=!0:!m.loop&&n.loop?q=!0:Q=!0),f.forEach(Y=>{if(e1(m[Y])&&e1(n[Y]))Object.assign(m[Y],n[Y]),(Y==="navigation"||Y==="pagination"||Y==="scrollbar")&&"enabled"in n[Y]&&!n[Y].enabled&&ee(Y);else{const z=n[Y];(z===!0||z===!1)&&(Y==="navigation"||Y==="pagination"||Y==="scrollbar")?z===!1&&ee(Y):m[Y]=n[Y]}}),f.includes("controller")&&!N&&e.controller&&e.controller.control&&m.controller&&m.controller.control&&(e.controller.control=m.controller.control),r.includes("children")&&t&&x&&m.virtual.enabled?(x.slides=t,x.update(!0)):r.includes("virtual")&&x&&m.virtual.enabled&&(t&&(x.slides=t),x.update(!0)),r.includes("children")&&t&&m.loop&&(Q=!0),A&&$.init()&&$.update(!0),N&&(e.controller.control=m.controller.control),O&&(e.isElement&&(!o||typeof o=="str
829ing")&&(o=document.createElement("div"),o.classList.add("swiper-pagination"),o.part.add("pagination"),e.el.appendChild(o)),o&&(m.pagination.el=o),y.init(),y.render(),y.update()),I&&(e.isElement&&(!s||typeof s=="string")&&(s=document.createElement("div"),s.classList.add("swiper-scrollbar"),s.part.add("scrollbar"),e.el.appendChild(s)),s&&(m.scrollbar.el=s),T.init(),T.updateSize(),T.setTranslate()),U&&(e.isElement&&((!i||typeof i=="string")&&(i=document.createElement("div"),i.classList.add("swiper-button-next"),P_(i,e.navigation.arrowSvg),i.part.add("button-next"),e.el.appendChild(i)),(!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-button-prev"),P_(a,e.navigation.arrowSvg),a.part.add("button-prev"),e.el.appendChild(a))),i&&(m.navigation.nextEl=i),a&&(m.navigation.prevEl=a),b.init(),b.update()),r.includes("allowSlideNext")&&(e.allowSlideNext=n.allowSlideNext),r.includes("allowSlidePrev")&&(e.allowSlidePrev=n.allowSlidePrev),r.includes("direction")&&e.changeDirection(n.direction,!1),(B||Q)&&e.loopDestroy(),(q||Q)&&e.loopCreate(),e.update()}function cB(e={},t=!0){const n={on:{}},r={},i={};l_(n,L$),n._emitClasses=!0,n.init=!1;const a={},s=oG.map(f=>f.replace(/_/,"")),o=Object.assign({},e);return Object.keys(o).forEach(f=>{typeof e[f]>"u"||(s.indexOf(f)>=0?e1(e[f])?(n[f]={},i[f]={},l_(n[f],e[f]),l_(i[f],e[f])):(n[f]=e[f],i[f]=e[f]):f.search(/on[A-Z]/)===0&&typeof e[f]=="function"?t?r[`${f[2].toLowerCase()}${f.substr(3)}`]=e[f]:n.on[`${f[2].toLowerCase()}${f.substr(3)}`]=e[f]:a[f]=e[f])}),["navigation","pagination","scrollbar"].forEach(f=>{n[f]===!0&&(n[f]={}),n[f]===!1&&delete n[f]}),{params:n,passedParams:i,rest:a,events:r}}function dEe({el:e,nextEl:t,prevEl:n,paginationEl:r,scrollbarEl:i,swiper:a},s){sG(s)&&t&&n&&(a.params.navigation.nextEl=t,a.originalParams.navigation.nextEl=t,a.params.navigation.prevEl=n,a.originalParams.navigation.prevEl=n),lG(s)&&r&&(a.params.pagination.el=r,a.originalParams.pagination.el=r),uG(s)&&i&&(a.params.scrollbar.el=i,a.originalParams.scrollbar.el=i),a.init(e)}function fEe(e,t,n,r,i){const a=[];if(!t)return a;const s=f=>{a.indexOf(f)<0&&a.push(f)};if(n&&r){const f=r.map(i),m=n.map(i);f.join("")!==m.join("")&&s("children"),r.length!==n.length&&s("children")}return oG.filter(f=>f[0]==="_").map(f=>f.replace(/_/,"")).forEach(f=>{if(f in e&&f in t)if(e1(e[f])&&e1(t[f])){const m=Object.keys(e[f]),y=Object.keys(t[f]);m.length!==y.length?s(f):(m.forEach(b=>{e[f][b]!==t[f][b]&&s(f)}),y.forEach(b=>{e[f][b]!==t[f][b]&&s(f)}))}else e[f]!==t[f]&&s(f)}),a}const hEe=e=>{!e||e.destroyed||!e.params.virtual||e.params.virtual&&!e.params.virtual.enabled||(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.emit("_virtualUpdated"),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())};function c8(e={},t,n){const r=[],i={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]},a=(s,o)=>{Array.isArray(s)&&s.forEach(f=>{const m=typeof f.type=="symbol";o==="default"&&(o="container-end"),m&&f.children?a(f.children,o):f.type&&(f.type.name==="SwiperSlide"||f.type.name==="AsyncComponentWrapper")||f.componentOptions&&f.componentOptions.tag==="SwiperSlide"?r.push(f):i[o]&&i[o].push(f)})};return Object.keys(e).forEach(s=>{if(typeof e[s]!="function")return;const o=e[s]();a(o,s)}),n.value=t.value,t.value=r,{slides:r,slots:i}}function pEe(e,t,n){if(!n)return null;const r=y=>{let b=y;return y<0?b=t.length+y:b>=t.length&&(b=b-t.length),b},i=e.value.isHorizontal()?{[e.value.rtlTranslate?"right":"left"]:`${n.offset}px`}:{top:`${n.offset}px`},{from:a,to:s}=n,o=e.value.params.loop?-t.length:0,f=e.value.params.loop?t.length*2:t.length,m=[];for(let y=o;y<f;y+=1)y>=a&&y<=s&&m.length<t.length&&m.push(t[r(y)]);return m.map(y=>{if(y.props||(y.props={}),y.props.style||(y.props.style={}),y.props.swiperRef=e,y.props.style=i,y.type)return Yn(y.type,{...y.props},y.children);if(y.componentOptions)return Yn(y.componentOptions.Ctor,{...y.props},y.componentOptions.children)})}const mEe={name:"Swiper",props:{tag:{type:String,default:"div"},wrapperTag:{type:String,default:"div"},modules:{type:Array,default:void 0},init:{type:Boolean,default:void 0},direction:{type:String,default:void 0},oneWayMovement:{type:Boolean,default:void 0},swiperElementNodeName:{type:String,default:"SWIPER-CONTAINER"},touchEventsTarget:{type:String,default:void 0},initialSlide:{type:Number,default:void 0},speed:{type:Number,default:void 0},cssMode:{type:Boolean,default:void 0},updateOnWindowResize:{type:Boolean,default:void 0},resizeObserver:{type:Boolean,default:void 0},nested:{type:Boolean,default:void 0},focusableElements:{type:String,default:void 0},width:{type:Number,default:void 0},height:{type:Number,default:void 0},preventInteractionOnTransition:{type:Boolean,default:void 0},userAgent:{type:String,default:void 0},url:{type:String,default:void 0},edgeSwipeDetection:{type:[Boolean,String],default:void 0},edgeSwipeThreshold:{type:Number,default:void 0},autoHeight:{type:Boolean,default:void 0},setWrapperSize:{type:Boolean,default:void 0},virtualTranslate:{type:Boolean,default:void 0},effect:{type:String,default:void 0},breakpoints:{type:Object,default:void 0},breakpointsBase:{type:String,default:void 0},spaceBetween:{type:[Number,String],default:void 0},slidesPerView:{type:[Number,String],default:void 0},maxBackfaceHiddenSlides:{type:Number,default:void 0},slidesPerGroup:{type:Number,default:void 0},slidesPerGroupSkip:{type:Number,default:void 0},slidesPerGroupAuto:{type:Boolean,default:void 0},centeredSlides:{type:Boolean,default:void 0}
829,centeredSlidesBounds:{type:Boolean,default:void 0},slidesOffsetBefore:{type:Number,default:void 0},slidesOffsetAfter:{type:Number,default:void 0},normalizeSlideIndex:{type:Boolean,default:void 0},centerInsufficientSlides:{type:Boolean,default:void 0},watchOverflow:{type:Boolean,default:void 0},roundLengths:{type:Boolean,default:void 0},touchRatio:{type:Number,default:void 0},touchAngle:{type:Number,default:void 0},simulateTouch:{type:Boolean,default:void 0},shortSwipes:{type:Boolean,default:void 0},longSwipes:{type:Boolean,default:void 0},longSwipesRatio:{type:Number,default:void 0},longSwipesMs:{type:Number,default:void 0},followFinger:{type:Boolean,default:void 0},allowTouchMove:{type:Boolean,default:void 0},threshold:{type:Number,default:void 0},touchMoveStopPropagation:{type:Boolean,default:void 0},touchStartPreventDefault:{type:Boolean,default:void 0},touchStartForcePreventDefault:{type:Boolean,default:void 0},touchReleaseOnEdges:{type:Boolean,default:void 0},uniqueNavElements:{type:Boolean,default:void 0},resistance:{type:Boolean,default:void 0},resistanceRatio:{type:Number,default:void 0},watchSlidesProgress:{type:Boolean,default:void 0},grabCursor:{type:Boolean,default:void 0},preventClicks:{type:Boolean,default:void 0},preventClicksPropagation:{type:Boolean,default:void 0},slideToClickedSlide:{type:Boolean,default:void 0},loop:{type:Boolean,default:void 0},loopedSlides:{type:Number,default:void 0},loopPreventsSliding:{type:Boolean,default:void 0},loopAdditionalSlides:{type:Number,default:void 0},loopAddBlankSlides:{type:Boolean,default:void 0},rewind:{type:Boolean,default:void 0},allowSlidePrev:{type:Boolean,default:void 0},allowSlideNext:{type:Boolean,default:void 0},swipeHandler:{type:Boolean,default:void 0},noSwiping:{type:Boolean,default:void 0},noSwipingClass:{type:String,default:void 0},noSwipingSelector:{type:String,default:void 0},passiveListeners:{type:Boolean,default:void 0},containerModifierClass:{type:String,default:void 0},slideClass:{type:String,default:void 0},slideActiveClass:{type:String,default:void 0},slideVisibleClass:{type:String,default:void 0},slideFullyVisibleClass:{type:String,default:void 0},slideBlankClass:{type:String,default:void 0},slideNextClass:{type:String,default:void 0},slidePrevClass:{type:String,default:void 0},wrapperClass:{type:String,default:void 0},lazyPreloaderClass:{type:String,default:void 0},lazyPreloadPrevNext:{type:Number,default:void 0},runCallbacksOnInit:{type:Boolean,default:void 0},observer:{type:Boolean,default:void 0},observeParents:{type:Boolean,default:void 0},observeSlideChildren:{type:Boolean,default:void 0},a11y:{type:[Boolean,Object],default:void 0},autoplay:{type:[Boolean,Object],default:void 0},controller:{type:Object,default:void 0},coverflowEffect:{type:Object,default:void 0},cubeEffect:{type:Object,default:void 0},fadeEffect:{type:Object,default:void 0},flipEffect:{type:Object,default:void 0},creativeEffect:{type:Object,default:void 0},cardsEffect:{type:Object,default:void 0},hashNavigation:{type:[Boolean,Object],default:void 0},history:{type:[Boolean,Object],default:void 0},keyboard:{type:[Boolean,Object],default:void 0},mousewheel:{type:[Boolean,Object],default:void 0},navigation:{type:[Boolean,Object],default:void 0},pagination:{type:[Boolean,Object],default:void 0},parallax:{type:[Boolean,Object],default:void 0},scrollbar:{type:[Boolean,Object],default:void 0},thumbs:{type:Object,default:void 0},virtual:{type:[Boolean,Object],default:void 0},zoom:{type:[Boolean,Object],default:void 0},grid:{type:[Object],default:void 0},freeMode:{type:[Boolean,Object],default:void 0},enabled:{type:Boolean,default:void 0}},emits:["_beforeBreakpoint","_containerClasses","_slideClass","_slideClasses","_swiper","_freeModeNoMomentumRelease","_virtualUpdated","activeIndexChange","afterInit","autoplay","autoplayStart","autoplayStop","autoplayPause","autoplayResume","autoplayTimeLeft","beforeDestroy","beforeInit","beforeLoopFix","beforeResize","beforeSlideChangeStart","beforeTransitionStart","breakpoint","changeDirection","click","disable","doubleTap","doubleClick","destroy","enable","fromEdge","hashChange","hashSet","init","keyPress","lock","loopFix","momentumBounce","navigationHide","navigationShow","navigationPrev","navigationNext","observerUpdate","orientationchange","paginationHide","paginationRender","paginationShow","paginationUpdate","progress","reachBeginning","reachEnd","realIndexChange","resize","scroll","scrollbarDragEnd","scrollbarDragMove","scrollbarDragStart","setTransition","setTranslate","slidesUpdated","slideChange","slideChangeTransitionEnd","slideChangeTransitionStart","slideNextTransitionEnd","slideNextTransitionStart","slidePrevTransitionEnd","slidePrevTransitionStart","slideResetTransitionStart","slideResetTransitionEnd","sliderMove","sliderFirstMove","slidesLengthChange","slidesGridLengthChange","snapGridLengthChange","snapIndexChange","swiper","tap","toEdge","touchEnd","touchMove","touchMoveOpposite","touchStart","transitionEnd","transitionStart","unlock","update","virtualUpdate","zoomChange"],setup(e,{slots:t,emit:n}){const{tag:r,wrapperTag:i}=e,a=De("swiper"),s=De(null),o=De(!1),f=De(!1),m=De(null),y=De(null),b=De(null),T={value:[]},x={value:[]},$=De(null),A=De(null),N=De(null),O=De(null),{params:I,passedParams:U}=cB(e,!1);c8(t,T,x),b.value=U,x.value=T.value;const B=()=>{c8(t,T,x),o.value=!0};I.onAny=(ee,...Y)=>{n(ee,...Y)},Object.assign(I.on,{_beforeBreakpoint:B,_containerClasses(ee,Y){a.value=Y}});const q={...I};if(delete q.wrapperClass,y.value=new jI(q),y.value.virtual&&y.value.params.virtual.enabled){y.value.virtual.slides=T.value;const ee={cache:!1,slides:T.value,renderExternal:Y=>{s.value=Y},renderExternalUpdate:!1};l_(y.value.params.virtual,ee),l_(y.value.originalParams.virtual,ee)}gw(()=>{!f.value&&y.value&&(y.value.emitSlidesClasses(),f.value=!0);const{passedParams:ee}=cB(e,!1),Y=fEe(ee,b.value,T.value,x.value,z=>z.props&&z.props.key);b.value=ee,(Y.length||o.value)&&y.value&&!y.value.destroyed&&cEe({swiper:y.value,slides:T.value,passedParams:ee,changedParams:Y,nextEl:$.value,prevEl:A.value,scrollbarEl:O.value,paginationEl:N.value}),o.value=!1}),co("swiper",y),nn(s,()=>{ur(()=>{hEe(y.value)})}),Hn(()=>{m.value&&(dEe({el:m.value,nextEl:$.value,prevEl:A.value,paginationEl:N.value,scrollbarEl:O.value,swiper:y.value},I),n("swiper",y.value))}),xu(()=>{y.value&&!y.value.destroyed&&y.value.destroy(!0,!1)});function Q(ee){return I.virtual?pEe(y,ee,s.value):(ee.forEach((Y,z)=>{Y.props||(Y.props={}),Y.props.swiperRef=y,Y.props.swiperSlideIndex=z}),ee)}return()=>{const{slides:ee,slots:Y}=c8(t,T,x);return Yn(r,{ref:m,class:cG(a.value)},[Y["container-start"],Yn(i,{class:uEe(I.wrapperClass)},[Y["wrapper-start"],Q(ee),Y["wrapper-end"]]),sG(e)&&[Yn("div",{ref:A,class:"swiper-button-prev"}),Yn("div",{ref:$,class:"swiper-button-next"})],uG(e)&&Yn("div",{ref:O,class:"swiper-scrollbar"}),lG(e)&&Yn("div",{ref:N,class:"swiper-pagination"}),Y["container-end"]])}}},gEe={name:"SwiperSlide",props:{tag:{type:String,default:"div"},swiperRef:{type:Object,required:!1},swiperSlideIndex:{type:Number,default:void 0,required:!1},zoom:{type:Boolean,default:void 0,required:!1},lazy:{type:Boolean,default:!1,required:!1},virtualIndex:{type:[String,Number],default:void 0}},setup(e,{slots:t}){let n=!1;const{swiperRef:r}=e,i=De(null),a=De("swiper-slide"),s=De(!1);
829function o(y,b,T){b===i.value&&(a.value=T)}Hn(()=>{!r||!r.value||(r.value.on("_slideClass",o),n=!0)}),tN(()=>{n||!r||!r.value||(r.value.on("_slideClass",o),n=!0)}),gw(()=>{!i.value||!r||!r.value||(typeof e.swiperSlideIndex<"u"&&(i.value.swiperSlideIndex=e.swiperSlideIndex),r.value.destroyed&&a.value!=="swiper-slide"&&(a.value="swiper-slide"))}),xu(()=>{!r||!r.value||r.value.off("_slideClass",o)});const f=xe(()=>({isActive:a.value.indexOf("swiper-slide-active")>=0,isVisible:a.value.indexOf("swiper-slide-visible")>=0,isPrev:a.value.indexOf("swiper-slide-prev")>=0,isNext:a.value.indexOf("swiper-slide-next")>=0}));co("swiperSlide",f);const m=()=>{s.value=!0};return()=>Yn(e.tag,{class:cG(`${a.value}`),ref:i,"data-swiper-slide-index":typeof e.virtualIndex>"u"&&r&&r.value&&r.value.params.loop?e.swiperSlideIndex:e.virtualIndex,onLoadCapture:m},e.zoom?Yn("div",{class:"swiper-zoom-container","data-swiper-zoom":typeof e.zoom=="number"?e.zoom:void 0},[t.default&&t.default(f.value),e.lazy&&!s.value&&Yn("div",{class:"swiper-lazy-preloader",onVnodeMounted:y=>{y.el&&(y.el.lazyPreloaderManaged=!0)}})]):[t.default&&t.default(f.value),e.lazy&&!s.value&&Yn("div",{class:"swiper-lazy-preloader",onVnodeMounted:y=>{y.el&&(y.el.lazyPreloaderManaged=!0)}})])}};function dG(e,t,n,r){return e.params.createElements&&Object.keys(r).forEach(i=>{if(!n[i]&&n.auto===!0){let a=cc(e.el,`.${r[i]}`)[0];a||(a=Jx("div",r[i]),a.className=r[i],e.el.append(a)),n[i]=a,t[i]=a}}),n}const dB='<svg class="swiper-navigation-icon" width="11" height="20" viewBox="0 0 11 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.38296 20.0762C0.111788 19.805 0.111788 19.3654 0.38296 19.0942L9.19758 10.2796L0.38296 1.46497C0.111788 1.19379 0.111788 0.754138 0.38296 0.482966C0.654131 0.211794 1.09379 0.211794 1.36496 0.482966L10.4341 9.55214C10.8359 9.9539 10.8359 10.6053 10.4341 11.007L1.36496 20.0762C1.09379 20.3474 0.654131 20.3474 0.38296 20.0762Z" fill="currentColor"/></svg>';function fG({swiper:e,extendParams:t,on:n,emit:r}){t({navigation:{nextEl:null,prevEl:null,addIcons:!0,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null,arrowSvg:dB};function i(x){let $;return x&&typeof x=="string"&&e.isElement&&($=e.el.querySelector(x)||e.hostEl.querySelector(x),$)?$:(x&&(typeof x=="string"&&($=[...document.querySelectorAll(x)]),e.params.uniqueNavElements&&typeof x=="string"&&$&&$.length>1&&e.el.querySelectorAll(x).length===1?$=e.el.querySelector(x):$&&$.length===1&&($=$[0])),x&&!$?x:$)}function a(x,$){const A=e.params.navigation;x=Hr(x),x.forEach(N=>{N&&(N.classList[$?"add":"remove"](...A.disabledClass.split(" ")),N.tagName==="BUTTON"&&(N.disabled=$),e.params.watchOverflow&&e.enabled&&N.classList[e.isLocked?"add":"remove"](A.lockClass))})}function s(){const{nextEl:x,prevEl:$}=e.navigation;if(e.params.loop){a($,!1),a(x,!1);return}a($,e.isBeginning&&!e.params.rewind),a(x,e.isEnd&&!e.params.rewind)}function o(x){x.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),r("navigationPrev"))}function f(x){x.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),r("navigationNext"))}function m(){const x=e.params.navigation;if(e.params.navigation=dG(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(x.nextEl||x.prevEl))return;let $=i(x.nextEl),A=i(x.prevEl);Object.assign(e.navigation,{nextEl:$,prevEl:A}),$=Hr($),A=Hr(A);const N=(O,I)=>{if(O){if(x.addIcons&&O.matches(".swiper-button-next,.swiper-button-prev")&&!O.querySelector("svg")){const U=document.createElement("div");P_(U,dB),O.appendChild(U.querySelector("svg")),U.remove()}O.addEventListener("click",I==="next"?f:o)}!e.enabled&&O&&O.classList.add(...x.lockClass.split(" "))};$.forEach(O=>N(O,"next")),A.forEach(O=>N(O,"prev"))}function y(){let{nextEl:x,prevEl:$}=e.navigation;x=Hr(x),$=Hr($);const A=(N,O)=>{N.removeEventListener("click",O==="next"?f:o),N.classList.remove(...e.params.navigation.disabledClass.split(" "))};x.forEach(N=>A(N,"next")),$.forEach(N=>A(N,"prev"))}n("init",()=>{e.params.navigation.enabled===!1?T():(m(),s())}),n("toEdge fromEdge lock unlock",()=>{s()}),n("destroy",()=>{y()}),n("enable disable",()=>{let{nextEl:x,prevEl:$}=e.navigation;if(x=Hr(x),$=Hr($),e.enabled){s();return}[...x,...$].filter(A=>!!A).forEach(A=>A.classList.add(e.params.navigation.lockClass))}),n("click",(x,$)=>{let{nextEl:A,prevEl:N}=e.navigation;A=Hr(A),N=Hr(N);const O=$.target;let I=N.includes(O)||A.includes(O);if(e.isElement&&!I){const U=$.path||$.composedPath&&$.composedPath();U&&(I=U.find(B=>A.includes(B)||N.includes(B)))}if(e.params.navigation.hideOnClick&&!I){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===O||e.pagination.el.contains(O)))return;let U;A.length?U=A[0].classList.contains(e.params.navigation.hiddenClass):N.length&&(U=N[0].classList.contains(e.params.navigation.hiddenClass)),r(U===!0?"navigationShow":"navigationHide"),[...A,...N].filter(
vendor: 4,107 bytes, line 829
829B=>!!B).forEach(B=>B.classList.toggle(e.params.navigation.hiddenClass))}});const b=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),m(),s()},T=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),y()};Object.assign(e.navigation,{enable:b,disable:T,update:s,init:m,destroy:y})}function Xm(e=""){return`.${e.trim().replace(/([\.:!+\/()[\]#>~*^$|=,'"@{}\\])/g,"\\$1").replace(/ /g,".")}`}function yEe({swiper:e,extendParams:t,on:n,emit:r}){const i="swiper-pagination";t({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:O=>O,formatFractionTotal:O=>O,bulletClass:`${i}-bullet`,bulletActiveClass:`${i}-bullet-active`,modifierClass:`${i}-`,currentClass:`${i}-current`,totalClass:`${i}-total`,hiddenClass:`${i}-hidden`,progressbarFillClass:`${i}-progressbar-fill`,progressbarOppositeClass:`${i}-progressbar-opposite`,clickableClass:`${i}-clickable`,lockClass:`${i}-lock`,horizontalClass:`${i}-horizontal`,verticalClass:`${i}-vertical`,paginationDisabledClass:`${i}-disabled`}}),e.pagination={el:null,bullets:[]};let a,s=0;function o(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function f(O,I){const{bulletActiveClass:U}=e.params.pagination;O&&(O=O[`${I==="prev"?"previous":"next"}ElementSibling`],O&&(O.classList.add(`${U}-${I}`),O=O[`${I==="prev"?"previous":"next"}ElementSibling`],O&&O.classList.add(`${U}-${I}-${I}`)))}function m(O,I,U){if(O=O%U,I=I%U,I===O+1)return"next";if(I===O-1)return"previous"}function y(O){const I=O.target.closest(Xm(e.params.pagination.bulletClass));if(!I)return;O.preventDefault();const U=Qx(I)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===U)return;const B=m(e.realIndex,U,e.slides.length);B==="next"?e.slideNext():B==="previous"?e.slidePrev():e.slideToLoop(U)}else e.slideTo(U)}function b(){const O=e.rtl,I=e.params.pagination;if(o())return;let U=e.pagination.el;U=Hr(U);let B,q;const Q=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,ee=e.params.loop?Math.ceil(Q/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(q=e.previousRealIndex||0,B=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):typeof e.snapIndex<"u"?(B=e.snapIndex,q=e.previousSnapIndex):(q=e.previousIndex||0,B=e.activeIndex||0),I.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const Y=e.pagination.bullets;let z,H,K;if(I.dynamicBullets&&(a=I$(Y[0],e.isHorizontal()?"width":"height"),U.forEach(ne=>{ne.style[e.isHorizontal()?"width":"height"]=`${a*(I.dynamicMainBullets+4)}px`}),I.dynamicMainBullets>1&&q!==void 0&&(s+=B-(q||0),s>I.dynamicMainBullets-1?s=I.dynamicMainBullets-1:s<0&&(s=0)),z=Math.max(B-s,0),H=z+(Math.min(Y.length,I.dynamicMainBullets)-1),K=(H+z)/2),Y.forEach(ne=>{const le=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(pe=>`${I.bulletActiveClass}${pe}`)].map(pe=>typeof pe=="string"&&pe.includes(" ")?pe.split(" "):pe).flat();ne.classList.remove(...le)}),U.length>1)Y.forEach(ne=>{const le=Qx(ne);le===B?ne.classList.add(...I.bulletActiveClass.split(" ")):e.isElement&&ne.setAttribute("part","bullet"),I.dynamicBullets&&(le>=z&&le<=H&&ne.classList.add(...`${I.bulletActiveClass}-main`.split(" ")),le===z&&f(ne,"prev"),le===H&&f(ne,"next"))});else{const ne=Y[B];if(ne&&ne.classList.add(...I.bulletActiveClass.split(" ")),e.isElement&&Y.forEach((le,pe)=>{le.setAttribute("part",pe===B?"bullet-active":"bullet")}),I.dynamicBullets){const le=Y[z],pe=Y[H];for(let ae=z;ae<=H;ae+=1)Y[ae]&&Y[ae].classList.add(...`${I.bulletActiveClass}-main`.split(" "));f(le,"prev"),f(pe,"next")}}if(I.dynamicBullets){const ne=Math.min(Y.length,I.dynamicMainBullets+4),le=(a*ne-a)/2-K*a,pe=O?"right":"left";Y.forEach(ae=>{ae.style[e.isHorizontal()?pe:"top"]=`${le}px`})}}U.forEach((Y,z)=>{if(I.type==="fraction"&&(Y.querySelectorAll(Xm(I.currentClass)).forEac
829h(H=>{H.textContent=I.formatFractionCurrent(B+1)}),Y.querySelectorAll(Xm(I.totalClass)).forEach(H=>{H.textContent=I.formatFractionTotal(ee)})),I.type==="progressbar"){let H;I.progressbarOpposite?H=e.isHorizontal()?"vertical":"horizontal":H=e.isHorizontal()?"horizontal":"vertical";const K=(B+1)/ee;let ne=1,le=1;H==="horizontal"?ne=K:le=K,Y.querySelectorAll(Xm(I.progressbarFillClass)).forEach(pe=>{pe.style.transform=`translate3d(0,0,0) scaleX(${ne}) scaleY(${le})`,pe.style.transitionDuration=`${e.params.speed}ms`})}I.type==="custom"&&I.renderCustom?(P_(Y,I.renderCustom(e,B+1,ee)),z===0&&r("paginationRender",Y)):(z===0&&r("paginationRender",Y),r("paginationUpdate",Y)),e.params.watchOverflow&&e.enabled&&Y.classList[e.isLocked?"add":"remove"](I.lockClass)})}function T(){const O=e.params.pagination;if(o())return;const I=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.grid&&e.params.grid.rows>1?e.slides.length/Math.ceil(e.params.grid.rows):e.slides.length;let U=e.pagination.el;U=Hr(U);let B="";if(O.type==="bullets"){let q=e.params.loop?Math.ceil(I/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&q>I&&(q=I);for(let Q=0;Q<q;Q+=1)O.renderBullet?B+=O.renderBullet.call(e,Q,O.bulletClass):B+=`<${O.bulletElement} ${e.isElement?'part="bullet"':""} class="${O.bulletClass}"></${O.bulletElement}>`}O.type==="fraction"&&(O.renderFraction?B=O.renderFraction.call(e,O.currentClass,O.totalClass):B=`<span class="${O.currentClass}"></span> / <span class="${O.totalClass}"></span>`),O.type==="progressbar"&&(O.renderProgressbar?B=O.renderProgressbar.call(e,O.progressbarFillClass):B=`<span class="${O.progressbarFillClass}"></span>
829`),e.pagination.bullets=[],U.forEach(q=>{O.type!=="custom"&&P_(q,B||""),O.type==="bullets"&&e.pagination.bullets.push(...q.querySelectorAll(Xm(O.bulletClass)))}),O.type!=="custom"&&r("paginationRender",U[0])}function x(){e.params.pagination=dG(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const O=e.params.pagination;if(!O.el)return;let I;typeof O.el=="string"&&e.isElement&&(I=e.el.querySelector(O.el)),!I&&typeof O.el=="string"&&(I=[...document.querySelectorAll(O.el)]),I||(I=O.el),!(!I||I.length===0)&&(e.params.uniqueNavElements&&typeof O.el=="string"&&Array.isArray(I)&&I.length>1&&(I=[...e.el.querySelectorAll(O.el)],I.length>1&&(I=I.find(U=>dx(U,".swiper")[0]===e.el))),Array.isArray(I)&&I.length===1&&(I=I[0]),Object.assign(e.pagination,{el:I}),I=Hr(I),I.forEach(U=>{O.type==="bullets"&&O.clickable&&U.classList.add(...(O.clickableClass||"").split(" ")),U.classList.add(O.modifierClass+O.type),U.classList.add(e.isHorizontal()?O.horizontalClass:O.verticalClass),O.type==="bullets"&&O.dynamicBullets&&(U.classList.add(`${O.modifierClass}${O.type}-dynamic`),s=0,O.dynamicMainBullets<1&&(O.dynamicMainBullets=1)),O.type==="progressbar"&&O.progressbarOpposite&&U.classList.add(O.progressbarOppositeClass),O.clickable&&U.addEventListener("click",y),e.enabled||U.classList.add(O.lockClass)}))}function $(){const O=e.params.pagination;if(o())return;let I=e.pagination.el;I&&(I=Hr(I),I.forEach(U=>{U.classList.remove(O.hiddenClass),U.classList.remove(O.modifierClass+O.type),U.classList.remove(e.isHorizontal()?O.horizontalClass:O.verticalClass),O.clickable&&(U.classList.remove(...(O.clickableClass||"").split(" ")),U.removeEventListener("click",y))})),e.pagination.bullets&&e.pagination.bullets.forEach(U=>U.classList.remove(...O.bulletActiveClass.split(" ")))}n("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const O=e.params.pagination;let{el:I}=e.pagination;I=Hr(I),I.forEach(U=>{U.classList.remove(O.horizontalClass,O.verticalClass),U.classList.add(e.isHorizontal()?O.horizontalClass:O.verticalClass)})}),n("init",()=>{e.params.pagination.enabled===!1?N():(x(),T(),b())}),n("activeIndexChange",()=>{typeof e.snapIndex>"u"&&b()}),n("snapIndexChange",()=>{b()}),n("snapGridLengthChange",()=>{T(),b()}),n("destroy",()=>{$()}),n("enable disable",()=>{let{el:O}=e.pagination;O&&(O=Hr(O),O.forEach(I=>I.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),n("lock unlock",()=>{b()}),n("click",(O,I)=>{const U=I.target,B=Hr(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&B&&B.length>0&&!U.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&U===e.navigation.nextEl||e.navigation.prevEl&&U===e.navigation.prevEl))return;const q=B[0].classList.contains(e.params.pagination.hiddenClass);r(q===!0?"paginationShow":"paginationHide"),B.forEach(Q=>Q.classList.toggle(e.params.pagination.hiddenClass))}});const A=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:O}=e.pagination;O&&(O=Hr(O),O.forEach(I=>I.classList.remove(e.params.pagination.paginationDisabledClass))),x(),T(),b()},N=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:O}=e.pagination;O&&(O=Hr(O),O.forEach(I=>I.classList.add(e.params.pagination.paginationDisabledClass))),$()};Object.assign(e.pagination,{enable:A,disable:N,render:T,update:b,init:x,destroy:$})}function vEe({swiper:e,extendParams:t,on:n,emit:r}){const i=Ss();t({zoom:{enabled:!1,limitToOriginalSize:!1,maxRatio:3,minRatio:1,panOnMouseMove:!1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}}),e.zoom={enabled:!1};let a=1,s=!1,o=!1,f={x:0,y:0};const m=-3;let y,b;const T=[],x={originX:0,originY:0,slideEl:void 0,slideWidth:void 0,slideHeight:void 0,imageEl:void 0,imageWrapEl:void 0,maxRatio:3},$={isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},A={x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0};let N=1;Object.defineProperty(e.zoom,"scale",{get(){return N},set(Qe){if(N!==Qe){const nt=x.imageEl,Ve=x.slideEl;r("zoomChange",Qe,nt,Ve)}N=Qe}});function O(){if(T.length<2)return 1;const Qe=T[0].pageX,nt=T[0].pageY,Ve=T[1].pageX,ct=T[1].pageY;return Math.sqrt((Ve-Qe)**2+(ct-nt)**2)}function I(){const Qe=e.params.zoom,nt=x.imageWrapEl.getAttribute("data-swiper-zoom")||Qe.maxRatio;
829if(Qe.limitToOriginalSize&&x.imageEl&&x.imageEl.naturalWidth){const Ve=x.imageEl.naturalWidth/x.imageEl.offsetWidth;return Math.min(Ve,nt)}return nt}function U(){if(T.length<2)return{x:null,y:null};const Qe=x.imageEl.getBoundingClientRect();return[(T[0].pageX+(T[1].pageX-T[0].pageX)/2-Qe.x-i.scrollX)/a,(T[0].pageY+(T[1].pageY-T[0].pageY)/2-Qe.y-i.scrollY)/a]}function B(){return e.isElement?"swiper-slide":`.${e.params.slideClass}`}function q(Qe){const nt=B();return!!(Qe.target.matches(nt)||e.slides.filter(Ve=>Ve.contains(Qe.target)).length>0)}function Q(Qe){const nt=`.${e.params.zoom.containerClass}`;return!!(Qe.target.matches(nt)||[...e.hostEl.querySelectorAll(nt)].filter(Ve=>Ve.contains(Qe.target)).length>0)}function ee(Qe){if(Qe.pointerType==="mouse"&&T.splice(0,T.length),!q(Qe))return;const nt=e.params.zoom;if(y=!1,b=!1,T.push(Qe),!(T.length<2)){if(y=!0,x.scaleStart=O(),!x.slideEl){x.slideEl=Qe.target.closest(`.${e.params.slideClass}, swiper-slide`),x.slideEl||(x.slideEl=e.slides[e.activeIndex]);let Ve=x.slideEl.querySelector(`.${nt.containerClass}`);if(Ve&&(Ve=Ve.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),x.imageEl=Ve,Ve?x.imageWrapEl=dx(x.imageEl,`.${nt.containerClass}`)[0]:x.imageWrapEl=void 0,!x.imageWrapEl){x.imageEl=void 0;return}x.maxRatio=I()}if(x.imageEl){const[Ve,ct]=U();x.originX=Ve,x.originY=ct,x.imageEl.style.transitionDuration="0ms"}s=!0}}function Y(Qe){if(!q(Qe))return;const nt=e.params.zoom,Ve=e.zoom,ct=T.findIndex(zt=>zt.pointerId===Qe.pointerId);ct>=0&&(T[ct]=Qe),!(T.length<2)&&(b=!0,x.scaleMove=O(),x.imageEl&&(Ve.scale=x.scaleMove/x.scaleStart*a,Ve.scale>x.maxRatio&&(Ve.scale=x.maxRatio-1+(Ve.scale-x.maxRatio+1)**.5),Ve.scale<nt.minRatio&&(Ve.scale=nt.minRatio+1-(nt.minRatio-Ve.scale+1)**.5),x.imageEl.style.transform=`translate3d(0,0,0) scale(${Ve.scale})`))}function z(Qe){if(!q(Qe)||Qe.pointerType==="mouse"&&Qe.type==="pointerout")return;const nt=e.params.zoom,Ve=e.zoom,ct=T.findIndex(zt=>zt.pointerId===Qe.pointerId);ct>=0&&T.splice(ct,1),!(!y||!b)&&(y=!1,b=!1,x.imageEl&&(Ve.scale=Math.max(Math.min(Ve.scale,x.maxRatio),nt.minRatio),x.imageEl.style.transitionDuration=`${e.params.speed}ms`,x.imageEl.style.transform=`translate3d(0,0,0) scale(${Ve.scale})`,a=Ve.scale,s=!1,Ve.scale>1&&x.slideEl?x.slideEl.classList.add(`${nt.zoomedSlideClass}`):Ve.scale<=1&&x.slideEl&&x.slideEl.classList.remove(`${nt.zoomedSlideClass}`),Ve.scale===1&&(x.originX=0,x.originY=0,x.slideEl=void 0)))}let H;function K(){e.touchEventsData.preventTouchMoveFromPointerMove=!1}function ne(){clearTimeout(H),e.touchEventsData.preventTouchMoveFromPointerMove=!0,H=setTimeout(()=>{e.destroyed||K()})}function le(Qe){const nt=e.device;if(!x.imageEl||$.isTouched)return;nt.android&&Qe.cancelable&&Qe.preventDefault(),$.isTouched=!0;const Ve=T.length>0?T[0]:Qe;$.touchesStart.x=Ve.pageX,$.touchesStart.y=Ve.pageY}function pe(Qe){const Ve=Qe.pointerType==="mouse"&&e.params.zoom.panOnMouseMove;if(!q(Qe)||!Q(Qe))return;const ct=e.zoom;if(!x.imageEl)return;if(!$.isTouched||!x.slideEl){Ve&&ce(Qe);return}if(Ve){ce(Qe);return}$.isMoved||($.width=x.imageEl.offsetWidth||x.imageEl.clientWidth,$.height=x.imageEl.offsetHeight||x.imageEl.clientHeight,$.startX=A$(x.imageWrapEl,"x")||0,$.startY=A$(x.imageWrapEl,"y")||0,x.slideWidth=x.slideEl.offsetWidth,x.slideHeight=x.slideEl.offsetHeight,x.imageWrapEl.style.transitionDuration="0ms");const zt=$.width*ct.scale,ut=$.height*ct.scale;if($.minX=Math.min(x.slideWidth/2-zt/2,0),$.maxX=-$.minX,$.minY=Math.min(x.slideHeight/2-ut/2,0),$.maxY=-$.minY,$.touchesCurrent.x=T.length>0?T[0].pageX:Qe.pageX,$.touchesCurrent.y=T.length>0?T[0].pageY:Qe.pageY,Math.max(Math.abs($.touchesCurrent.x-$.touchesStart.x),Math.abs($.touchesCurrent.y-$.touchesStart.y))>5&&(e.allowClick=!1),!$.isMoved&&!s){if(e.isHorizontal()&&(Math.floor($.minX)===Math.floor($.startX)&&$.touchesCurrent.x<$.touchesStart.x||Math.floor($.maxX)===Math.floor($.startX)&&$.touchesCurrent.x>$.touchesStart.x)){$.isTouched=!1,K();return}if(!e.isHorizontal()&&(Math.floor($.minY)===Math.floor($.startY)&&$.touchesCurrent.y<$.touchesStart.y||Math.floor($.maxY)===Math.floor($.startY)&&$.touchesCurrent.y>$.touchesStart.y)){$.isTouched=!1,K();return}}Qe.cancelable&&Qe.preventDefault(),Qe.stopPropagation(),ne(),$.isMoved=!0;
829const Dt=(ct.scale-a)/(x.maxRatio-e.params.zoom.minRatio),{originX:Ot,originY:Ee}=x;$.currentX=$.touchesCurrent.x-$.touchesStart.x+$.startX+Dt*($.width-Ot*2),$.currentY=$.touchesCurrent.y-$.touchesStart.y+$.startY+Dt*($.height-Ee*2),$.currentX<$.minX&&($.currentX=$.minX+1-($.minX-$.currentX+1)**.8),$.currentX>$.maxX&&($.currentX=$.maxX-1+($.currentX-$.maxX+1)**.8),$.currentY<$.minY&&($.currentY=$.minY+1-($.minY-$.currentY+1)**.8),$.currentY>$.maxY&&($.currentY=$.maxY-1+($.currentY-$.maxY+1)**.8),A.prevPositionX||(A.prevPositionX=$.touchesCurrent.x),A.prevPositionY||(A.prevPositionY=$.touchesCurrent.y),A.prevTime||(A.prevTime=Date.now()),A.x=($.touchesCurrent.x-A.prevPositionX)/(Date.now()-A.prevTime)/2,A.y=($.touchesCurrent.y-A.prevPositionY)/(Date.now()-A.prevTime)/2,Math.abs($.touchesCurrent.x-A.prevPositionX)<2&&(A.x=0),Math.abs($.touchesCurrent.y-A.prevPositionY)<2&&(A.y=0),A.prevPositionX=$.touchesCurrent.x,A.prevPositionY=$.touchesCurrent.y,A.prevTime=Date.now(),x.imageWrapEl.style.transform=`translate3d(${$.currentX}px, ${$.currentY}px,0)`}function ae(){const Qe=e.zoom;if(T.length=0,!x.imageEl)return;if(!$.isTouched||!$.isMoved){$.isTouched=!1,$.isMoved=!1;return}$.isTouched=!1,$.isMoved=!1;let nt=300,Ve=300;const ct=A.x*nt,zt=$.currentX+ct,ut=A.y*Ve,At=$.currentY+ut;A.x!==0&&(nt=Math.abs((zt-$.currentX)/A.x)),A.y!==0&&(Ve=Math.abs((At-$.currentY)/A.y));const Dt=Math.max(nt,Ve);$.currentX=zt,$.currentY=At;const Ot=$.width*Qe.scale,Ee=$.height*Qe.scale;$.minX=Math.min(x.slideWidth/2-Ot/2,0),$.maxX=-$.minX,$.minY=Math.min(x.slideHeight/2-Ee/2,0),$.maxY=-$.minY,$.currentX=Math.max(Math.min($.currentX,$.maxX),$.minX),$.currentY=Math.max(Math.min($.currentY,$.maxY),$.minY),x.imageWrapEl.style.transitionDuration=`${Dt}ms`,x.imageWrapEl.style.transform=`translate3d(${$.currentX}px, ${$.currentY}px,0)`}function se(){const Qe=e.zoom;x.slideEl&&e.activeIndex!==e.slides.indexOf(x.slideEl)&&(x.imageEl&&(x.imageEl.style.transform="translate3d(0,0,0) scale(1)"),x.imageWrapEl&&(x.imageWrapEl.style.transform="translate3d(0,0,0)"),x.slideEl.classList.remove(`${e.params.zoom.zoomedSlideClass}`),Qe.scale=1,a=1,x.slideEl=void 0,x.imageEl=void 0,x.imageWrapEl=void 0,x.originX=0,x.originY=0)}function ce(Qe){if(a<=1||!x.imageWrapEl||!q(Qe)||!Q(Qe))return;const nt=i.getComputedStyle(x.imageWrapEl).transform,Ve=new i.DOMMatrix(nt);if(!o){o=!0,f.x=Qe.clientX,f.y=Qe.clientY,$.startX=Ve.e,$.startY=Ve.f,$.width=x.imageEl.offsetWidth||x.imageEl.clientWidth,$.height=x.imageEl.offsetHeight||x.imageEl.clientHeight,x.slideWidth=x.slideEl.offsetWidth,x.slideHeight=x.slideEl.offsetHeight;return}const ct=(Qe.clientX-f.x)*m,zt=(Qe.clientY-f.y)*m,ut=$.width*a,At=$.height*a,Dt=x.slideWidth,Ot=x.slideHeight,Ee=Math.min(Dt/2-ut/2,0),Ye=-Ee,it=Math.min(Ot/2-At/2,0),yt=-it,St=Math.max(Math.min($.startX+ct,Ye),Ee),Ie=Math.max(Math.min($.startY+zt,yt),it);x.imageWrapEl.style.transitionDuration="0ms",x.imageWrapEl.style.transform=`translate3d(${St}px, ${Ie}px, 0)`,f.x=Qe.clientX,f.y=Qe.clientY,$.startX=St,$.startY=Ie,$.currentX=St,$.currentY=Ie}function ye(Qe){const nt=e.zoom,Ve=e.params.zoom;if(!x.slideEl){Qe&&Qe.target&&(x.slideEl=Qe.target.closest(`.${e.params.slideClass}, swiper-slide`)),x.slideEl||(e.params.virtual&&e.params.virtual.enabled&&e.virtual?x.slideEl=cc(e.slidesEl,`.${e.params.slideActiveClass}`)[0]:x.slideEl=e.slides[e.activeIndex]);let an=x.slideEl.querySelector(`.${Ve.containerClass}`);an&&(an=an.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),x.imageEl=an,an?x.imageWrapEl=dx(x.imageEl,`.${Ve.containerClass}`)[0]:x.imageWrapEl=void 0}if(!x.imageEl||!x.imageWrapEl)return;x.maxRatio=I(),e.params.cssMode&&(e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.touchAction="none"),x.slideEl.classList.add(`${Ve.zoomedSlideClass}`);let ct,zt,ut,At,Dt,Ot,Ee,Ye,it,yt,St,Ie,qe,pt,Tt,It,sn,Yt;typeof $.touchesStart.x>"u"&&Qe?(ct=Qe.pageX,zt=Qe.pageY):(ct=$.touchesStart.x,zt=$.touchesStart.y);const _t=a,vt=typeof Qe=="number"?Qe:null;a===1&&vt&&(ct=void 0,zt=void 0,$.touchesStart.x=void 0,$.touchesStart.y=void 0);const Jt=I();nt.scale=vt||Jt,a=vt||Jt,Qe&&!(a===1&&vt)?(sn=x.slideEl.offsetWidth,Yt=x.slideEl.offsetHeight,ut=aB(x.slideEl).left+i.scrollX,At=aB(x.slideEl).top+i.scrollY,Dt=ut+sn/2-ct,Ot=At+Yt/2-zt,it=x.imageEl.offsetWidth||x.imageEl.clientWidth,yt=x.imageEl.offsetHeight||x.imageEl.clientHeight,St=it*nt.scale,Ie=yt*nt.scale,qe=Math.min(sn/2-St/2,0),pt=Math.min(Yt/2-Ie/2,0),Tt=-qe,It=-pt,_t>0&&vt&&typeof $.currentX=="number"&&typeof $.currentY=="number"?(Ee=$.currentX*nt.scale/_t,Ye=$.currentY*nt.scale/_t):(Ee=Dt*nt.scale,Ye=Ot*nt.scale),Ee<qe&&(Ee=qe),Ee>Tt&&(Ee=Tt),Ye<pt&&(Ye=pt),Ye>It&&(Ye=It)):(Ee=0,Ye=0),vt&&nt.scale===1&&(x.originX=0,x.originY=0),$.currentX=Ee,$.currentY=Ye,x.imageWrapEl.style.transitionDuration="300ms",x.imageWrapEl.style.transform=`translate3d(${Ee}px, ${Ye}px,0)`,x.imageEl.style.transitionDuration="300ms",x.imageEl.style.transform=`translate3d(0,
8290,0) scale(${nt.scale})`}function $e(){const Qe=e.zoom,nt=e.params.zoom;if(!x.slideEl){e.params.virtual&&e.params.virtual.enabled&&e.virtual?x.slideEl=cc(e.slidesEl,`.${e.params.slideActiveClass}`)[0]:x.slideEl=e.slides[e.activeIndex];let Ve=x.slideEl.querySelector(`.${nt.containerClass}`);Ve&&(Ve=Ve.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),x.imageEl=Ve,Ve?x.imageWrapEl=dx(x.imageEl,`.${nt.containerClass}`)[0]:x.imageWrapEl=void 0}!x.imageEl||!x.imageWrapEl||(x.maxRatio=I(),e.params.cssMode&&(e.wrapperEl.style.overflow="",e.wrapperEl.style.touchAction=""),Qe.scale=1,a=1,$.currentX=void 0,$.currentY=void 0,$.touchesStart.x=void 0,$.touchesStart.y=void 0,x.imageWrapEl.style.transitionDuration="300ms",x.imageWrapEl.style.transform="translate3d(0,0,0)",x.imageEl.style.transitionDuration="300ms",x.imageEl.style.transform="translate3d(0,0,0) scale(1)",x.slideEl.classList.remove(`${nt.zoomedSlideClass}`),x.slideEl=void 0,x.originX=0,x.originY=0,e.params.zoom.panOnMouseMove&&(f={x:0,y:0},o&&(o=!1,$.startX=0,$.startY=0)))}function Be(Qe){const nt=e.zoom;nt.scale&&nt.scale!==1?$e():ye(Qe)}function je(){const Qe=e.params.passiveListeners?{passive:!0,capture:!1}:!1,nt=e.params.passiveListeners?{passive:!1,capture:!0}:!0;return{passiveListener:Qe,activeListenerWithCapture:nt}}function at(){const Qe=e.zoom;if(Qe.enabled)return;Qe.enabled=!0;const{passiveListener:nt,activeListenerWithCapture:Ve}=je();e.wrapperEl.addEventListener("pointerdown",ee,nt),e.wrapperEl.addEventListener("pointermove",Y,Ve),["pointerup","pointercancel","pointerout"].forEach(ct=>{e.wrapperEl.addEventListener(ct,z,nt)}),e.wrapperEl.addEventListener("pointermove",pe,Ve)}function Pt(){const Qe=e.zoom;if(!Qe.enabled)return;Qe.enabled=!1;const{passiveListener:nt,activeListenerWithCapture:Ve}=je();e.wrapperEl.removeEventListener("pointerdown",ee,nt),e.wrapperEl.removeEventListener("pointermove",Y,Ve),["pointerup","pointercancel","pointerout"].forEach(ct=>{e.wrapperEl.removeEventListener(ct,z,nt)}),e.wrapperEl.removeEventListener("pointermove",pe,Ve)}n("init",()=>{e.params.zoom.enabled&&at()}),n("destroy",()=>{Pt()}),n("touchStart",(Qe,nt)=>{e.zoom.enabled&&le(nt)}),n("touchEnd",(Qe,nt)=>{e.zoom.enabled&&ae()}),n("doubleTap",(Qe,nt)=>{!e.animating&&e.params.zoom.enabled&&e.zoom.enabled&&e.params.zoom.toggle&&Be(nt)}),n("transitionEnd",()=>{e.zoom.enabled&&e.params.zoom.enabled&&se()}),n("slideChange",()=>{e.zoom.enabled&&e.params.zoom.enabled&&e.params.cssMode&&se()}),Object.assign(e.zoom,{enable:at,disable:Pt,in:ye,out:$e,toggle:Be})}function _Ee({swiper:e,extendParams:t,on:n}){t({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,containerRole:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null,scrollOnFocus:!0,wrapperLiveRegion:!0}}),e.a11y={clicked:!1};let r=null,i,a,s=new Date().getTime();function o(ae){const se=r;se.length!==0&&P_(se,ae)}function f(ae=16){const se=()=>Math.round(16*Math.random()).toString(16);return"x".repeat(ae).replace(/x/g,se)}function m(ae){ae=Hr(ae),ae.forEach(se=>{se.setAttribute("tabIndex","0")})}function y(ae){ae=Hr(ae),ae.forEach(se=>{se.setAttribute("tabIndex","-1")})}function b(ae,se){ae=Hr(ae),ae.forEach(ce=>{ce.setAttribute("role",se)})}function T(ae,se){ae=Hr(ae),ae.forEach(ce=>{ce.setAttribute("aria-roledescription",se)})}function x(ae,se){ae=Hr(ae),ae.forEach(ce=>{ce.setAttribute("aria-label",se)})}function $(ae,se){ae=Hr(ae),ae.forEach(ce=>{ce.setAttribute("id",se)})}function A(ae,se){ae=Hr(ae),ae.forEach(ce=>{ce.setAttribute("aria-live",se)})}function N(ae){ae=Hr(ae),ae.forEach(se=>{se.setAttribute("aria-disabled",!0)})}function O(ae){ae=Hr(ae),ae.forEach(se=>{se.removeAttribute("aria-disabled")})}function I(ae){if(ae.keyCode!==13&&ae.keyCode!==32)return;const se=e.params.a11y,ce=ae.target;
829if(!(e.pagination&&e.pagination.el&&(ce===e.pagination.el||e.pagination.el.contains(ae.target))&&!ae.target.matches(Xm(e.params.pagination.bulletClass)))){if(e.navigation&&e.navigation.prevEl&&e.navigation.nextEl){const ye=Hr(e.navigation.prevEl);Hr(e.navigation.nextEl).includes(ce)&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?o(se.lastSlideMessage):o(se.nextSlideMessage)),ye.includes(ce)&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?o(se.firstSlideMessage):o(se.prevSlideMessage))}e.pagination&&ce.matches(Xm(e.params.pagination.bulletClass))&&ce.click()}}function U(){if(e.params.loop||e.params.rewind||!e.navigation)return;const{nextEl:ae,prevEl:se}=e.navigation;se&&(e.isBeginning?(N(se),y(se)):(O(se),m(se))),ae&&(e.isEnd?(N(ae),y(ae)):(O(ae),m(ae)))}function B(){return e.pagination&&e.pagination.bullets&&e.pagination.bullets.length}function q(){return B()&&e.params.pagination.clickable}function Q(){const ae=e.params.a11y;B()&&e.pagination.bullets.forEach(se=>{e.params.pagination.clickable&&(m(se),e.params.pagination.renderBullet||(b(se,"button"),x(se,ae.paginationBulletMessage.replace(/\{\{index\}\}/,Qx(se)+1)))),se.matches(Xm(e.params.pagination.bulletActiveClass))?se.setAttribute("aria-current","true"):se.removeAttribute("aria-current")})}const ee=(ae,se,ce)=>{m(ae),ae.tagName!=="BUTTON"&&(b(ae,"button"),ae.addEventListener("keydown",I)),x(ae,ce)},Y=ae=>{a&&a!==ae.target&&!a.contains(ae.target)&&(i=!0),e.a11y.clicked=!0},z=()=>{i=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.destroyed||(e.a11y.clicked=!1)})})},H=ae=>{s=new Date().getTime()},K=ae=>{if(e.a11y.clicked||!e.params.a11y.scrollOnFocus||new Date().getTime()-s<100)return;const se=ae.target.closest(`.${e.params.slideClass}, swiper-slide`);if(!se||!e.slides.includes(se))return;a=se;const ce=e.virtual&&e.params.virtual.enabled,ye=(ce?parseInt(se.getAttribute("data-swiper-slide-index"),10):e.slides.indexOf(se))===e.activeIndex,$e=e.params.watchSlidesProgress&&e.visibleSlides&&e.visibleSlides.includes(se);ye||$e||ae.sourceCapabilities&&ae.sourceCapabilities.firesTouchEvents||(e.isHorizontal()?e.el.scrollLeft=0:e.el.scrollTop=0,requestAnimationFrame(()=>{i||(e.params.loop?e.slideToLoop(e.getSlideIndexWhenGrid(parseInt(se.getAttribute("data-swiper-slide-index"))),0):ce?e.slideTo(e.getSlideIndexWhenGrid(parseInt(se.getAttribute("data-swiper-slide-index"),10)),0):e.slideTo(e.getSlideIndexWhenGrid(e.slides.indexOf(se)),0),i=!1)}))},ne=()=>{const ae=e.params.a11y;ae.itemRoleDescriptionMessage&&T(e.slides,ae.itemRoleDescriptionMessage),ae.slideRole&&b(e.slides,ae.slideRole);const se=e.slides.length;ae.slideLabelMessage&&e.slides.forEach((ce,ye)=>{const $e=e.params.loop?parseInt(ce.getAttribute("data-swiper-slide-index"),10):ye,Be=ae.slideLabelMessage.replace(/\{\{index\}\}/,$e+1).replace(/\{\{slidesLength\}\}/,se);x(ce,Be)})},le=()=>{const ae=e.params.a11y;e.el.append(r);const se=e.el;ae.containerRoleDescriptionMessage&&T(se,ae.containerRoleDescriptionMessage),ae.containerMessage&&x(se,ae.containerMessage),ae.containerRole&&b(se,ae.containerRole);const ce=e.wrapperEl,ye=ae.id||ce.getAttribute("id")||`swiper-wrapper-${f(16)}`;if($(ce,ye),ae.wrapperLiveRegion){const at=e.params.autoplay&&e.params.autoplay.enabled?"off":"polite";A(ce,at)}ne();let{nextEl:$e,prevEl:Be}=e.navigation?e.navigation:{};$e=Hr($e),Be=Hr(Be),$e&&$e.forEach(at=>ee(at,ye,ae.nextSlideMessage)),Be&&Be.forEach(at=>ee(at,ye,ae.prevSlideMessage)),q()&&Hr(e.pagination.el).forEach(Pt=>{Pt.addEventListener("keydown",I)}),mu().addEventListener("visibilitychange",H),e.el.addEventListener("focus",K,!0),e.el.addEventListener("pointerdown",Y,!0),e.el.addEventListener("pointerup",z,!0)};function pe(){r&&r.remove();let{nextEl:ae,prevEl:se}=e.navigation?e.navigation:{};ae=Hr(ae),se=Hr(se),ae&&ae.forEach(ye=>ye.removeEventListener("keydown",I)),se&&se.forEach(ye=>ye.removeEventListener("keydown",I)),q()&&Hr(e.pagination.el).forEach($e=>{$e.removeEventListener("keydown",I)}),mu().removeEventListener("visibilitychange",H),e.el&&typeof e.el!="string"&&(e.el.removeEventListener("focus",K,!0),e.el.removeEventListener("pointerdown",Y,!0),e.el.removeEventListener("pointerup",z,!0))}n("beforeInit",()=>{r=Jx("span",e.params.a11y.notificationClass),r.setAttribute("aria-live","assertive"),r.setAttribute("aria-atomic","true")}),n("afterInit",()=>{e.params.a11y.enabled&&le()}),n("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{e.params.a11y.enabled&&ne()}),n("fromEdge toEdge afterInit lock unlock",()=>{e.params.a11y.enabled&&U()}),n("paginationUpdate",()=>{e.params.a11y.enabled&&Q()}),n("destroy",()=>{e.params.a11y.enabled&&pe()})}function bEe({swiper:e,extendParams:t,on:n,emit:r,params:i}){e.autoplay={running:!1,paused:!1,timeLeft:0},t({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let a,s,o=i&&i.autoplay?i.autoplay.delay:3e3,f=i&&i.autoplay?i.autoplay.delay:3e3,m,y=new Date().getTime(),b,T,x,$,A,N;function O(ce){!e||e.destroyed||!e.wrapperEl||ce.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",O),!(N||ce.detail&&ce.detail.bySwiperTouchMove)&&z())}const I=()=>
829{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?b=!0:b&&(f=m,b=!1);const ce=e.autoplay.paused?m:y+f-new Date().getTime();e.autoplay.timeLeft=ce,r("autoplayTimeLeft",ce,ce/o),s=requestAnimationFrame(()=>{I()})},U=()=>{let ce;return e.virtual&&e.params.virtual.enabled?ce=e.slides.find($e=>$e.classList.contains("swiper-slide-active")):ce=e.slides[e.activeIndex],ce?parseInt(ce.getAttribute("data-swiper-autoplay"),10):void 0},B=()=>{let ce=e.params.autoplay.delay;const ye=U();return!Number.isNaN(ye)&&ye>0&&(ce=ye),ce},q=ce=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(s),I();let ye=ce;typeof ye>"u"&&(ye=B(),o=ye,f=ye),m=ye;const $e=e.params.speed,Be=()=>{!e||e.destroyed||(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev($e,!0,!0),r("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,$e,!0,!0),r("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext($e,!0,!0),r("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,$e,!0,!0),r("autoplay")),e.params.cssMode&&(y=new Date().getTime(),requestAnimationFrame(()=>{q()})))};return ye>0?(clearTimeout(a),a=setTimeout(()=>{Be()},ye)):requestAnimationFrame(()=>{Be()}),ye},Q=()=>{y=new Date().getTime(),e.autoplay.running=!0,q(),r("autoplayStart")},ee=()=>{e.autoplay.running=!1,clearTimeout(a),cancelAnimationFrame(s),r("autoplayStop")},Y=(ce,ye)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(a),ce||(A=!0);const $e=()=>{r("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",O):z()};if(e.autoplay.paused=!0,ye){$e();return}m=(m||e.params.autoplay.delay)-(new Date().getTime()-y),!(e.isEnd&&m<0&&!e.params.loop)&&(m<0&&(m=0),$e())},z=()=>{e.isEnd&&m<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(y=new Date().getTime(),A?(A=!1,q(m)):q(),e.autoplay.paused=!1,r("autoplayResume"))},H=()=>{if(e.destroyed||!e.autoplay.running)return;const ce=mu();ce.visibilityState==="hidden"&&(A=!0,Y(!0)),ce.visibilityState==="visible"&&z()},K=ce=>{ce.pointerType==="mouse"&&(A=!0,N=!0,!(e.animating||e.autoplay.paused)&&Y(!0))},ne=ce=>{ce.pointerType==="mouse"&&(N=!1,e.autoplay.paused&&z())},le=()=>{e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",K),e.el.addEventListener("pointerleave",ne))},pe=()=>{e.el&&typeof e.el!="string"&&(e.el.removeEventListener("pointerenter",K),e.el.removeEventListener("pointerleave",ne))},ae=()=>{mu().addEventListener("visibilitychange",H)},se=()=>{mu().removeEventListener("visibilitychange",H)};n("init",()=>{e.params.autoplay.enabled&&(le(),ae(),Q())}),n("destroy",()=>{pe(),se(),e.autoplay.running&&ee()}),n("_freeModeStaticRelease",()=>{(x||A)&&z()}),n("_freeModeNoMomentumRelease",()=>{e.params.autoplay.disableOnInteraction?ee():Y(!0,!0)}),n("beforeTransitionStart",(ce,ye,$e)=>{e.destroyed||!e.autoplay.running||($e||!e.params.autoplay.disableOnInteraction?Y(!0,!0):ee())}),n("sliderFirstMove",()=>{if(!(e.destroyed||!e.autoplay.running)){if(e.params.autoplay.disableOnInteraction){ee();return}T=!0,x=!1,A=!1,$=setTimeout(()=>{A=!0,x=!0,Y(!0)},200)}}),n("touchEnd",()=>{if(!(e.destroyed||!e.autoplay.running||!T)){if(clearTimeout($),clearTimeout(a),e.params.autoplay.disableOnInteraction){x=!1,T=!1;return}x&&e.params.cssMode&&z(),x=!1,T=!1}}),n("slideChange",()=>{e.destroyed||!e.autoplay.running||e.autoplay.paused&&(m=B(),o=B())}),Object.assign(e.autoplay,{start:Q,stop:ee,pause:Y,resume:z})}function xEe(e){const{effect:t,swiper:n,on:r,setTranslate:i,setTransition:a,overwriteParams:s,perspective:o,recreateShadows:f,getEffectParams:m}=e;r("beforeInit",()=>{if(n.params.effect!==t)return;n.classNames.push(`${n.params.containerModifierClass}${t}`),o&&o()&&n.classNames.push(`${n.params.containerModifierClass}3d`);const b=s?s():{};Object.assign(n.params,b),Object.assign(n.originalParams,b)}),r("setTranslate _virtualUpdated",()=>{n.params.effect===t&&i()}),r("setTransition",(b,T)=>{n.params.effect===t&&a(T)}),r("transitionEnd",()=>{if(n.params.effect===t&&f){if(!m||!m().slideShadows)return;
829n.slides.forEach(b=>{b.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(T=>T.remove())}),f()}});let y;r("virtualUpdate",()=>{n.params.effect===t&&(n.slides.length||(y=!0),requestAnimationFrame(()=>{y&&n.slides&&n.slides.length&&(i(),y=!1)}))})}function wEe(e,t){const n=eG(t);return n!==t&&(n.style.backfaceVisibility="hidden",n.style["-webkit-backface-visibility"]="hidden"),n}function SEe({swiper:e,duration:t,transformElements:n,allSlides:r}){const{activeIndex:i}=e;if(e.params.virtualTranslate&&t!==0){let a=!1,s;s=n,s.forEach(o=>{QTe(o,()=>{if(a||!e||e.destroyed)return;a=!0,e.animating=!1;const f=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});e.wrapperEl.dispatchEvent(f)})})}}function CEe({swiper:e,extendParams:t,on:n}){t({fadeEffect:{crossFade:!1}}),xEe({effect:"fade",swiper:e,on:n,setTranslate:()=>{const{slides:a}=e,s=e.params.fadeEffect;for(let o=0;o<a.length;o+=1){const f=e.slides[o];let y=-f.swiperSlideOffset;e.params.virtualTranslate||(y-=e.translate);let b=0;e.isHorizontal()||(b=y,y=0);const T=e.params.fadeEffect.crossFade?Math.max(1-Math.abs(f.progress),0):1+Math.min(Math.max(f.progress,-1),0),x=wEe(s,f);x.style.opacity=T,x.style.transform=`translate3d(${y}px, ${b}px, 0px)`}},setTransition:a=>{const s=e.slides.map(o=>eG(o));s.forEach(o=>{o.style.transitionDuration=`${a}ms`}),SEe({swiper:e,duration:a,transformElements:s,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!e.params.cssMode})})}typeof window<"u"&&window.SwiperElementRegisterParams&&window.SwiperElementRegisterParams(["materialEffect"]);function TEe(e,t){function n(r){r.target===e&&(t.call(e,r),e.removeEventListener("transitionend",n))}t&&e.addEventListener("transitionend",n)}function kEe({swiper:e,duration:t,transformElements:n,allSlides:r}){const{activeIndex:i}=e;if(e.params.virtualTranslate&&t!==0){let a=!1,s;s=n,s.forEach(o=>{TEe(o,()=>{if(a||!e||e.destroyed)return;a=!0,e.animating=!1;const f=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});e.wrapperEl.dispatchEvent(f)})})}}function EEe({swiper:e,on:t,extendParams:n}){n({materialEffect:{slideSplitRatio:.65}});const r=()=>{const{slides:a,slidesSizesGrid:s,params:o,size:f}=e,{slidesPerView:m,spaceBetween:y,cssMode:b,centeredSlides:T}=o,x=T?.5:Math.min(Math.max(o.materialEffect.slideSplitRatio,0),1),$=T?.5:1-Math.min(Math.max(o.materialEffect.slideSplitRatio,0),1);for(let A=0;A<a.length;A+=1){const N=a[A],O=N.querySelector(".swiper-material-wrapper"),I=N.querySelectorAll(".swiper-material-animate-opacity"),U=N.querySelectorAll("[data-swiper-material-scale]"),B=-N.progress,q=N.swiperSlideOffset,Q=e.translate;let ee,Y=0,z=0;const H=s[A],K=$===0&&!T?0:y/2/H,ne=b?Q:0,le=T&&m%2===1,pe=T&&m%2===0;if(B<=0)if(T&&m>1){if(B<=0&&B>=-(m-2)&&(Y=Q,ee=1,z=1),le&&B<-(m-Math.ceil(m/2))){const ae=Math.ceil(m/2)-Math.abs(B);ee=ae,z=ee**4,Y=Q+H*(1-ae)*(1+K*2)}if(pe&&B<-(m/2-1)&&B>=-(m/2)){const ae=m/2-Math.abs(B);ee=x-K+($+K*2)*(m/2-Math.abs(B)),z=((ee-x)/(1-x))**4,Y=Q+H*($+K)*(1-ae)}if(pe&&B<-m/2){let ae=m/2+1-Math.abs(B);ee=0,ae>=0&&(ae=-K*2+ae*(1+K*2),ae=Math.max(Math.min(ae,1),0),ee=($-K)*ae),Y=Q+H*($+K)*(2-ae)+H*($-K)*(1-ae)}}else ee=1+B,Y=-q,z=ee**4;if(m===1)B>0&&(ee=1-B,Y=-q+f*Math.min(B,1),z=ee**4);else{if(B>0&&B<=m-2&&(Y=Q,ee=1,z=1),pe?B>m/2-1&&B<=m/2:B>m-2&&B<=m-1){const se=pe?Math.floor(m/2):1;ee=x-K+($+K*2)*(m-se-Math.abs(B)),Y=Q,x===1?z=ee**4:z=((ee-x)/(1-x))**4}if(le&&B>m-Math.ceil(m/2)){const se=Math.ceil(m/2)-(m-Math.abs(B));Y=Q-H*(K*2)*se,ee=1-se,z=ee**4}if(B>m-1&&B<=m&&!T){const se=m-Math.abs(B),ce=x-K,ye=$-K;ee=ye+(ce-ye)*se,Y=Q-H*($+K)*(1-se),$===0&&(z=ee**4)}if(B>(T?m/2:m)&&!le){let se=(T?m/2+1:m+1)-Math.abs(B),ce=0;ee=0,se>=0&&(se=-K*2+se*(1+K*2),se=Math.max(Math.min(se,1),0),ee=($-K)*se,ce=-se*($+K)*H+se*y),Y=-q+f*Math.min(B,1)+ce,z=0}}ee<0&&(ee=0),ee>1&&(ee=1),N.style.setProperty("--swiper-material-scale",ee),I.forEach(ae=>{ae.style.opacity=z}),U.forEach(ae=>{let se=parseFloat(ae.getAttribute("data-swiper-material-scale"));(Number.isNaN(se)||!se&&se!==0)&&(se=1),ae.style.transform=`scale(${1+(se-1)*(1-ee)})`}),e.isHorizontal()?(O.style.width=`${100*ee}%`,O.style.transform=`translate3d(${Y-ne}px, 0, 0)`):(O.style.height=`${100*ee}%`,O.style.transform=`translate3d(0, ${Y-ne}px, 0)`)}},i=a=>{const{slides:s}=e,o=[];for(let f=0;f<s.length;f+=1){const m=s[f],y=m.querySelector(".swiper-material-wrapper"),b=m.querySelectorAll(".swiper-material-animate-opacity"),T=m.querySelectorAll("[data-swiper-material-scale]");[y,...T,...b].forEach(x=>{x.style.transitionDuration=`${a}ms`}),o.push(y)}kEe({swiper:e,duration:a,transformElements:o,allSlides:!0})};t("beforeInit",()=>{if(e.params.effect!=="material")return;e.classNames.push(`${e.params.containerModifierClass}material`),e.isElement&&e.hostEl&&e.hostEl.classList.add(`swiper-${e.params.direction}`);const a={loopAdditionalSlides:1,watchSlidesProgress:!0,virtualTranslate:!e.params.cssMode};Object.assign(e.params,a),Object.assign(e.originalParams,a)}),t("setTranslate",()=>{e.params.effect==="material"&&r()}),t("setTransition",(a,s)=>{e.params.effect==="material"&&i(s)}),t("slidesUpdated",()=>{if(!e.params.centeredSlides&&e.params.slidesPerView>1&&!e.params.loop&&e.params.materialEffect.slideSplitRatio<1){const a=e.snapGrid[e.snapGrid.length-1];e.snapGrid.push(a+e.slidesSizesGrid[0]+e.params.spaceBetween)}e.el.style.setProperty("--swiper-material-slide-size",`${e.slidesSizesGrid[0]}px`)}
829)}function hG({swiper:e,on:t,extendParams:n}){n({carouselEffect:{opacityStep:.33,scaleStep:.2,sideSlides:2}}),t("beforeInit",()=>{if(e.params.effect!=="carousel")return;e.classNames.push(`${e.params.containerModifierClass}carousel`);const r={watchSlidesProgress:!0,centeredSlides:!0};Object.assign(e.params,r),Object.assign(e.originalParams,r)}),t("progress",()=>{if(e.params.effect!=="carousel")return;const{scaleStep:r,opacityStep:i}=e.params.carouselEffect,a=Math.max(Math.min(e.params.carouselEffect.sideSlides,3),1),s={1:2,2:1,3:.2}[a],o={1:50,2:50,3:67}[a],f=e.slides.length;for(let m=0;m<e.slides.length;m+=1){const y=e.slides[m],b=e.slides[m].progress,T=Math.abs(b);let x=1;T>1&&(x=(T-1)*.3*s+1);const $=y.querySelectorAll(".swiper-carousel-animate-opacity"),A=`${b*x*o*(e.rtlTranslate?-1:1)}%`,N=1-T*r,O=f-Math.abs(Math.round(b));y.style.transform=`translateX(${A}) scale(${N})`,y.style.zIndex=O,T>a+1?y.style.opacity=0:y.style.opacity=1,$.forEach(I=>{I.style.opacity=1-T*i})}}),t("setTransition",(r,i)=>{if(e.params.effect==="carousel")for(let a=0;a<e.slides.length;a+=1){const s=e.slides[a],o=s.querySelectorAll(".swiper-carousel-animate-opacity");s.style.transitionDuration=`${i}ms`,o.forEach(f=>{f.style.transitionDuration=`${i}ms`})}})}const PEe=["id"],$Ee=Fe({__name:"FractionNavigation",props:{wrapperId:{}},setup(e){return(t,n)=>(Z(),Ce("p",{"data-fraction-pagination":"",id:`${e.wrapperId}-fraction-pagination`},null,8,PEe))}}),MEe={key:0,"data-navigation":""},Vf=Fe({__name:"CimSwiper",props:{slides:{},breakpoints:{default:null},zoom:{type:Boolean,default:!1},autoplay:{type:Boolean,default:!1},showPagination:{type:Boolean,default:!1},hideNavigation:{type:Boolean,default:!1},fractionPagination:{type:Boolean,default:!1},grabCursor:{type:Boolean,default:!0},allowTouchMove:{type:Boolean,default:!0},initialSlide:{default:0},slidesPerView:{default:"auto"},direction:{default:"horizontal"},wrapperTag:{default:"div"},slideTag:{default:"div"},blocTitleId:{},ariaLabel:{},loop:{type:Boolean,default:!1},loopAdditionalSlides:{default:0},grid:{default:()=>{}},autoHeight:{type:Boolean,default:!0},centeredSlides:{type:Boolean,default:!1},spaceBetween:{default:30},speed:{default:600},effect:{default:""},materialEffectData:{default:null},carouselEffect:{default:null},isLightbox:{type:Boolean,default:!1},SliderButtonVariante:{}},setup(e,{expose:t}){const n=vr(),i=De(n.siteBuilderInfos).value?.theme==="Theme3",a=e,s=Rf(),o=De(null),f=De(!1),m=De(a.initialSlide),y=xe(()=>{let H=[_Ee];return a.hideNavigation||H.push(fG),a.fractionPagination&&H.push(yEe),a.autoplay&&H.push(bEe),a.zoom&&-H.push(vEe),a.effect==="fade"&&H.push(CEe),a.effect==="carousel"&&H.push(hG),a.effect==="material"&&H.push(EEe),H}),b=xe(()=>a.slides?.length),T=xe(()=>o.value?.currentBreakpoint),x=xe(()=>o.value?.params?.breakpoints),$=De(!1),A=De(!1),N=De(!1),O=De(!1),I=H=>{o.value=H,Q(),ee()},U=H=>!!H?.properties?.mimeType?.includes("video"),B=H=>!!H?.mimetype?.includes("audio"),{width:q}=_ge();nn(q,()=>{Q(),o.value?.update()});const Q=()=>{const H=a.slidesPerView,K=x.value?.[T.value]?.slidesPerView;xe(()=>K?a.grid?K*2:K:a.grid&&H?H*2:H).value<b.value||a.slidesPerView==="auto"&&!x.value?f.value=!0:f.value=!1},ee=()=>{let H=o.value?.realIndex||a.initialSlide;a.zoom?U(a.slides?.[H])?$.value=!1:$.value=!0:$.value=!1},Y=()=>{o.value?.zoom.toggle(),A.value=!A.value};nn(N,()=>{N?.value?o.value?.autoplay.stop():o.value?.autoplay.start()});const z=()=>{N.value=!N.value,N?.value?O.value=!0:O.value=!1};return t({theSlider:o,activeIndex:m}),(H,K)=>{const ne=cr,le=VTe,pe=jTe;return Z(),Ce("div",{class:de(e.isLightbox?v(me)({height:"100%"}):null)},[!e.hideNavigation||e.showPagination||e.autoplay?(Z(),Ce("div",MEe,[v(f)&&e.autoplay?(Z(),Se(ne,{key:0,"data-play-pause":"",onClick:z,type:"button",link:{text:v(N)?H.$t("common.medias.swiper.play"):H.$t("common.medias.swiper.pause")},"aria-label":v(N)?H.$t("common.medias.swiper.play"):H.$t("common.medias.swiper.pause"),"aria-controls":v(s),title:v(N)?H.$t("common.medias.swiper.play"):H.$t("common.medias.swiper.pause"),picto:v(N)?"play":"pause","show-sr":!0},null,8,["link","aria-label","aria-controls","title","picto"])):Ne("",!0),e.hideNavigation?Ne("",!0):(Z(),Se(le,{key:1,"data-button-slider":"prev",side:"prev",buttonId:`${v(s)}_slider_prev`,variante:e.SliderButtonVariante,class:de(v(me)({display:v(f)?"block":"none !important"}))},null,8,["buttonId","variante","class"])),e.fractionPagination?(Z(),Se($Ee,{key:2,wrapperId:v(s)},null,8,["wrapperId"])):Ne("",!0),e.hideNavigation?Ne("",!0):(Z(),Se(le,{key:3,"data-button-slider":"next",side:"next",buttonId:`${v(s)}_slider_next`,variante:e.SliderButtonVariante,class:de(v(me)({display:v(f)?"block":"none !important"}))},null,8,["buttonId","variante","class"])),e.showPagination?(Z(),Se(pe,{key:4,swiper:v(o),wrapperId:v(s),activeIndex:v(m),nbSlides:e.slides?.length}
829,null,8,["swiper","wrapperId","activeIndex","nbSlides"])):Ne("",!0)])):Ne("",!0),ke(v(mEe),{tag:"section",wrapperTag:e.wrapperTag,onActiveIndexChange:K[0]||(K[0]=ae=>m.value=v(o)?.realIndex),role:"region","aria-labelledby":e.blocTitleId?e.blocTitleId:null,onInit:I,onSlideChange:K[1]||(K[1]=ae=>A.value=!1),onSlideChangeTransitionEnd:ee,onMouseover:K[2]||(K[2]=ae=>e.autoplay?N.value=!0:null),onMouseleave:K[3]||(K[3]=ae=>e.autoplay?v(O)?null:N.value=!1:null),modules:v(y),navigation:{prevEl:`[id='${v(s)}_slider_prev']`,nextEl:`[id='${v(s)}_slider_next']`},pagination:e.fractionPagination?{el:`[id='${v(s)}-fraction-pagination']`,type:"fraction"}:{},zoom:e.zoom,direction:e.direction,initialSlide:e.initialSlide,slidesPerView:e.breakpoints?null:e.slidesPerView,breakpoints:e.breakpoints,grid:e.grid,"space-between":e.spaceBetween,autoHeight:e.autoHeight,rewind:!e.loop,loop:e.loop,loopAdditionalSlides:e.loopAdditionalSlides!==0?e.loopAdditionalSlides:null,autoplay:e.autoplay?{delay:3e3,disableOnInteraction:!0,pauseOnMouseEnter:!0,reverseDirection:!1,stopOnLastSlide:!1,waitForTransition:!0}:null,watchOverflow:!0,watchSlidesProgress:!0,effect:e.effect,materialEffect:e.materialEffectData,carouselEffect:e.carouselEffect,centeredSlides:e.centeredSlides,grabCursor:e.grabCursor,allowTouchMove:e.allowTouchMove,speed:e.speed,a11y:{id:v(s),containerMessage:e.ariaLabel?e.ariaLabel:null,containerRoleDescriptionMessage:"carousel",itemRoleDescriptionMessage:"slide",nextSlideMessage:`${H.$t("common.medias.swiper.content")} ${H.$t("common.next")}`,prevSlideMessage:`${H.$t("common.medias.swiper.content")} ${H.$t("common.prev")}`,scrollOnFocus:!0,slideRole:e.showPagination?"tabpanel":"group"},class:de([e.isLightbox?v(me)({height:"100%"}):null,v(me)({"& .swiper-wrapper":{_print:{display:"block !important",height:"auto !important",transform:"none !important"}},"& .swiper-slide":{marginBottom:"2rem",_print:{"& [data-img-container], img":{margin:"0 auto",filter:"grayscale(100%)"}}}}),v(f)?"show_arrows":v(me)({"& .swiper-wrapper":{transform:"none !important"}})])},{default:be(()=>[v($)?(Z(),Se(ne,{key:0,onClick:Y,link:{text:v(A)?H.$t("common.medias.images.popin.zoomOut"):H.$t("common.medias.images.popin.zoomIn")},title:v(A)?H.$t("common.medias.images.popin.zoomOut"):H.$t("common.medias.images.popin.zoomIn"),variante:{classes:"pictoRound",pictoColor:i?"primary":"white",pictoSize:"md"},type:"button",picto:v(A)?"zoomOut":"zoomIn",showSr:!0,class:de(v(me)({position:"fixed",zIndex:"999",top:{base:"1.5rem",md:"9rem"},right:{base:"7rem",sm:"8rem",md:"3rem"}}))},null,8,["link","title","variante","picto","class"])):Ne("",!0),(Z(!0),Ce(Ct,null,ln(e.slides,(ae,se)=>(Z(),Se(v(gEe),{key:se,id:`${v(s)}-slide-${se}`,tag:e.slideTag,"aria-label":`${H.$t("common.medias.swiper.slide")} ${se+1} sur ${Object.keys(e.slides)?.length}`,class:de(v(me)({display:"flex",justifyContent:"center","&:is(li)":{fontSize:"1em"},"&.swiper-slide-zoomed":{"& [data-description], & [data-long-description]":{opacity:"0 !important"}},_print:{marginRight:"0 !important",width:"100% !important"}}))},{default:be(()=>[bt(H.$slots,"slideContent",{slide:ae,index:se,isVideo:U(ae),isAudio:B(ae)})]),_:2},1032,["id","tag","aria-label","class"]))),128))]),_:3},8,["wrapperTag","aria-labelledby","modules","navigation","pagination","zoom","direction","initialSlide","slidesPerView","breakpoints","grid","space-between","autoHeight","rewind","loop","loopAdditionalSlides","autoplay","effect","materialEffect","carouselEffect","centeredSlides","grabCursor","allowTouchMove","speed","a11y","class"])],2)}}}),AEe=Fe({__name:"ZoomSurSlider",props:{results:{}},setup(e){return(t,n)=>{const r=ib,i=Cu,a=Vf;return Z(),Ce("div",{class:de(v(me)({position:"relative",marginInline:{smDown:"-3rem"}}))},[ke(a,{slides:e.results,blocTitleId:"bloc_zoomsur_title",breakpoints:{320:{slidesPerView:1,autoHeight:!0},1024:{slidesPerView:1,autoHeight:!1}},rewind:!0,class:de(v(me)({width:"100%",position:"relative","& .swiper":{overflow:"visible !important"},"& .swiper-slide":{marginBottom:"0 !important",height:"auto !important"},"& .swiper-slide:not(.swiper-slide-visible) article":{scale:.8},"& [data-button-slider=prev]":{transform:{base:"translate(-100%, -50%)!",md:"translate(-25%, -50%)!",xl:"translate(-100%, -50%)!"},left:{base:"4.5rem",sm:"1.5rem",md:0,xl:"-2.2rem"}},"& [data-button-slider=next]":{transform:{base:"translate(100%, -50%)!",md:"translate(25%, -50%) !important",xl:"translate(100%, -50%) !important"},right:{base:"4.5rem",sm:"1.5rem",md:0,xl:"-0.5rem"}},"& [data-button-slider]":{top:{smDown:"40%"},"& svg":{bgColor:{mdDown:"black"},borderColor:{mdDown:"transparent"},"& *":{fill:{mdDown:"white"}}},_hover:{"& svg":{bgColor:{mdDown:"white"},borderColor:{mdDown:"black"},"& *":{fill:{mdDown:"black"}}}}}}))},{slideContent:be(s=>[ke(i,{result:s.slide,"fields-to-show":["datetime","teaser"],options:{showDecor:!0},class:de(v(me)({height:"100%",transition:"{easings.global}","& [data-list-item-content]":{paddingTop:{sm:"20rem",md:"47rem"},height:"100%",alignItems:"end",gap:0},"& [data-txt]":{width:{base:"100%",sm:"80%",md:"50%"},maxWidth:{base:"100%",sm:"80%",md:"50%"},bgColor:"white",padding:{base:"2rem 3rem",sm:"3rem",md:"5rem 5rem 3rem 5rem"},borderRadius:"1em",boxShadow:{sm:"0 0.4rem 1.5rem 0 rgba(0,0,0,0.2)",_inverse:"{shadows.inverse}"},gap:"1.5rem"},"& [data-list-item-title]":{fontSize:"h3Ville",lineClamp:3},"& [data-list-category]":{position:{sm:"absolute"},top:{mdDown:0},bottom:{md:"7.4rem"},left:0,flexDir:"column",alignItems:"start"},"& [data-img]":{aspectRatio:"1170/640",width:"100%",borderRadius:{smDown:0},position:{sm:"absolute"},top:0,left:0,height:{sm:"calc(100% - 7.4rem)"}}}))},{default:be(()=>[ke(r,{"aria-hidden":"true",class:de([v(ei)({fill:"primary",size:"2rem !important"}),v(me)({marginLeft:"auto"})])},null,8,["class"])]),_:1},8,["result","class"])]),_:1},8,["slides","class"])],2)}}}),IEe=Fe({__name:"HomeZoomSur",props:{results:{},header:{},link_to_list:{}},setup(e){const t=vr();return t.backendLayout,t.siteBuilderInfos,(n,r)=>{const i=AEe,a=cr,s=ab;return e.results?.length>0?(Z(),Se(s,{key:0,header:e.header,headerId:"bloc_zoomsur_title",blocWidth:"10/12",buttonContainerAlign:"right",class:de(v(me)({"& [data-title-container]":{marginBottom:{md:"4.5rem"}},"& [data-buttons-container]":{marginTop:{md:"4.5rem"},justifyContent:{mdDown:"center"}}}))},Tg({content:be(()=>[ke(i,{results:e.results},null,8,["results"])]),_:2},[e.link_to_list?.[0]?.href?{name:"bottom",fn:be(()=>[e.link_to_list?.[0]?(Z(),Se(a,{key:0,link:e.link_to_list?.[0],variante:{classes:"btnGradient",bgColor:"white"}},null,8,["link"])):Ne("",!0)]),key:"0"}:void 0]),1032,["header","class"])):Ne("",!0)}}}),DEe=Fe({__name:"HomeNewsTpl1",props:{data:{},header:{},isBlocHome:{type:Boolean}},setup(e){const t=e,n=xe(()=>t?.data?.results?.slice(0,1)),r=xe(()=>{const a=t.isBlocHome?1:0;return t?.data?.results?.slice(a,3+a)}),i=me({"& [data-list-item-content]":{alignItems:{base:"center",md:"start"},flexDir:"column-reverse",gap:{base:"1.5rem",sm:"2.5rem"}},"& [data-txt]":{alignItems:"initial"},"& [data-list-item-title]":{lineClamp:3,lineHeight:1.2,fontWeight:700,fontSize:t.isBlocHome?null:"h3Ville"},"& [data-field-type=teaser]":{display:"-webkit-box",boxOrient:"vertical",textOverflow:"ellipsis",overflow:"hidden",lineClamp:3,fontSize:"sm"},"& [data-list-category]":{position:"absolute",transform:{base:"translateY(calc(-100% - 1.5rem))",sm:"translateY(calc(-100% - 2.5rem))"},flexDir:"column",alignItems:"start",_print:{padding:"0.5rem",marginBottom:"1rem"}},"& [data-img]":{aspectRatio:"570/430",width:"100%"},_hover:{}});return(a,s)=>{const o=Cu,f=Vf,m=cr,y=ab;return e.data?.results?.length>0?(Z(),Se(y,{key:0,header:e.header,headerId:"bloc_news_title",titleAlign:e.isBlocHome?"left":"center","bloc-grid":v(Mi)({columns:{base:1,sm:12}}),class:de([v(me)({paddingX:{base:"1.5rem",sm:"3rem"},"& [data-title-container]":{gridColumnStart:e.isBlocHome?{base:1,md:6}:1,gridColumnEnd:{base:2,sm:13},marginBottom:0,paddingTop:e.isBlocHome?"2.2rem":null},"& [data-buttons-container]":{gridColumnStart:1,gridColumnEnd:{base:2,sm:13}}}
829),e.isBlocHome?null:v(me)({"& [data-title-container]":{"& > *":{paddingBottom:0,fontSize:"lg",_before:{display:"none"},_after:{display:"none"}}}})])},Tg({content:be(()=>[e.isBlocHome&&v(n)?(Z(!0),Ce(Ct,{key:0},ln(v(n),b=>(Z(),Ce("div",{key:b.id,class:de(v(Gy)({colSpan:{base:1,sm:12,md:5},rowStart:{base:2,md:1},rowEnd:3}))},[ke(o,{result:b,"fields-to-show":["teaser","datetime"],options:{showDecor:!0},class:de([v(i),v(me)({"& [data-list-item-content]":{flexDir:{smOnly:"row-reverse"}},"& [data-list-category]":{position:{smOnly:"static",_print:"relative"},transform:{smOnly:"none",_print:"none"}},"& [data-img]":{aspectRatio:"570/430",minWidth:{smOnly:"50%"},width:{base:"100%",smOnly:"50%"}}})])},null,8,["result","class"])],2))),128)):Ne("",!0),v(r)?(Z(),Ce("div",{key:1,class:de([e.isBlocHome?null:v(me)({maxWidth:{base:"100%",md:"11/12"}}),v(Gy)({colStart:e.isBlocHome?{base:1,md:6}:1,colEnd:{base:2,sm:13}})])},[ke(f,{slides:v(r),SliderButtonVariante:{classes:"pictoRound",pictoColor:"white",pictoSize:"md"},spaceBetween:e.isBlocHome?void 0:60,blocTitleId:"bloc_news_title",breakpoints:{320:{slidesPerView:1,autoHeight:!0},640:{slidesPerView:e.isBlocHome?2:1,autoHeight:!0},720:{slidesPerView:e.isBlocHome?2:1,autoHeight:!0},780:{slidesPerView:2,autoHeight:!0},1024:{slidesPerView:2,autoHeight:!1},1170:{slidesPerView:e.isBlocHome?2:3,autoHeight:!1}},class:de([v(me)({position:"relative","& .swiper-slide":{height:"auto !important",marginBottom:"0 !important"},"& [data-button-slider]":{top:{base:"30%",md:"40%"},"& svg":{bgColor:{mdDown:"black"},borderColor:{mdDown:"transparent"},"& *":{fill:{mdDown:"white"}}},_hover:{"& svg":{bgColor:{mdDown:"white"},borderColor:{mdDown:"black"},"& *":{fill:{mdDown:"black"}}}}}}),e.isBlocHome?v(me)({"& [data-button-slider=prev]":{transform:{smDown:"translate(-100%, -50%)"},left:{base:"3rem",sm:"-1rem",md:"-1rem"}},"& [data-button-slider=next]":{transform:{smDown:"translate(100%, -50%)"},right:{base:"3rem",sm:"-1rem",md:"-1rem"}}}):v(me)({"& [data-button-slider=prev]":{transform:{base:"translate(-100%, -50%)",sm:"translate(-40%, -50%)",md:"none"},left:{base:0,sm:"-6rem",md:"-3.5rem"}},"& [data-button-slider=next]":{transform:{base:"translate(100%, -50%)",sm:"translate(40%, -50%)",md:"none"},right:{base:0,sm:"-6rem",md:"-3.5rem"}}})])},{slideContent:be(b=>[ke(o,{result:b.slide,"fields-to-show":["teaser","datetime"],class:de([v(i),v(me)({"& [data-list-category]":{position:{_print:"relative"},transform:{_print:"none"}},"& [data-img]":{aspectRatio:"390/293",width:"100%",minWidth:e.isBlocHome?null:{base:"10rem",sm:"30rem"}}})])},null,8,["result","class"])]),_:1},8,["slides","spaceBetween","breakpoints","class"])],2)):Ne("",!0)]),_:2},[e.isBlocHome&&e.data?.listLink?.href?{name:"bottom",fn:be(()=>[ke(m,{link:{href:e.data?.listLink?.href,text:a.$t("common.buttons.home.news")},variante:{classes:"btnGradient",bgColor:"white"}},null,8,["link"])]),key:"0"}:void 0]),1032,["header","titleAlign","bloc-grid","class"])):Ne("",!0)}}}),LEe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 390 240"};function OEe(e,t){return Z(),Ce("svg",LEe,[...t[0]||(t[0]=[Re("g",{fill:"#131313","clip-path":"url(#i135191195__a)"},[Re("path",{d:"M262.04 0h-3.02L85.56 239.21l-.57.79H88L261.46.79zM282.43 0h-3L107.74 239.21l-.57.79h3.01L281.87.79zM300.96 0 127.48 240h3.01L303.97 0zM320.67 0 147.8 239.21l-.57.79h3.01L323.68 0zM344.77 0h-3L169.14 240h3.01L344.2.79zM19.31 0 0 26.74v4.16L22.32 0zM365.28 0h-3.01L189.04 239.21l-.58.79h3.02L364.71.79zM40.06 0 0 55.31v4.16L43.07 0zM384.87 0h-3.02L207.83 239.21l-.58.79h3.02L384.29.79zM59.94 0 0 82.76v4.16L62.95 0zM227.24 239.21l-.58.79h3.02L389.9 19.85l.1-.14v-4.14zM79.44 0 .1 109.57l-.1.13v4.16L82.46 0zM248.49 240h3.01L389.91 48.66l.09-.13v-4.17L249.06 239.21zM99.8 0 .1 137.68l-.1.13v4.16L102.82 0zM272.08 240 389.91 77.31l.09-.13v-4.16L269.07 240zM120.66 0 .1 166.49l-.1.13v4.16L123.68 0zM292.95 240l96.96-133.89.09-.13v-4.16L289.93 240zM141.52 0 .1 195.29l-.1.14v4.16L144.54 0zM312.26 240 390 132.66v-4.16L309.25 240zM160.84 0 .1 221.97l-.1.13v4.16L163.86 0zM330.64 240 390 158.21v-4.16L327.62 240zM182.63 0h-3.01L6 239.21l-.57.79h3.01L182.06.79zM350.73 240 390 185.76v-4.16L347.72 240zM202.29 0h-3.01L26.08 239.21l-.58.79h3.02L201.72.79zM371.31 240 390 214.25v-4.16L368.29 240zM223.31 0h-3.02L46.68 239.21l-.58.79h3.02L222.73.79zM390 240v-2.53l-1.83 2.53zM242.77 0h-3.01L66.53 239.21l-.58.79h3.02L242.2.79z"})],-1),Re("defs",null,[Re("clipPath",{id:"i135191195__a"},[Re("path",{fill:"#fff",d:"M0 0h390v240H0z"})])],-1)])])}const pG={render:OEe},REe=Fe({__name:"HomeNewsTpl2",props:{data:{},header:{},isBlocHome:{type:Boolean}},setup(e){return(t,n)=>{const r=ib,i=pG,a=Cu,s=Vf,o=cr,f=ab;return e.data?.results?.length>0?(Z(),Se(f,{key:0,header:e.header,subheader:"À voir aussi",headerId:"bloc_news_title",isBlocHome:e.isBlocHome,class:de(v(me)({"& [data-title-container]":{marginBottom:e.isBlocHome?"3.5rem":"3rem","& h2":{fontSize:e.isBlocHome?null:{smDown:"2.5rem!"}}}}))},Tg({content:be(()=>[ke(s,{slides:e.data?.results,SliderButtonVariante:{classes:"pictoRound",pictoColor:"black",pictoSize:"md"},blocTitleId:"bloc_news_title",spaceBetween:30,breakpoints:{320:{slidesPerView:1,autoHeight:!0},640:{slidesPerView:e.isBlocHome?2:1,autoHeight:!0},870:{slidesPerView:e.isBlocHome?3:1,autoHeight:!0},970:{slidesPerView:e.isBlocHome?3:2,autoHeight:!0},1320:{slidesPerView:3,autoHeight:!1}},class:de([v(me)({"& .swiper":{overflow:{mdDown:"visible!"}},"& .swiper-slide":{height:"auto!",marginBottom:"0!"},"& [data-button-slider]":{top:{smDown:"50%"}}}),e.isBlocHome?v(me)({"& [data-button-slider=prev]":{left:{base:0,md:"-1rem"},transform:{mdDown:"translate(-3rem, -50%)"}},"& [data-button-slider=next]":{right:{base:0,md:"-1rem"},transform:{mdDown:"translate(3rem, -50%)"}}}):v(me)({"& [data-button-slider=prev]":{transform:{base:"translate(-40%, -50%)",md:"none"},left:{base:"-3rem",md:"-3.5rem"}},"& [data-button-slider=next]":{transform:{base:"translate(40%, -50%)",md:"none"},right:{base:"-3rem",md:"-3.5rem"}}})])},{slideContent:be(m=>[ke(a,{result:m.slide,"fields-to-show":["teaser","datetime"],class:de(v(me)({height:"100%",maxWidth:{mdDown:"39rem"},"& [data-list-item-content]":{flexDir:"column-reverse",gap:0,paddingBottom:"3.5rem",justifyContent:"start",height:"100%"},"& [data-txt]":{marginTop:"-3rem",alignItems:"initial",padding:{base:"2rem",md:"2.5rem 2.5rem 2rem 2.5rem",lg:"3.5rem 3.5rem 3rem 3.5rem"},borderRadius:"1.5em",bgColor:"white",marginLeft:{md:"1.5rem",lg:"3rem"},transition:"{easings.global}",flex:"initial",_inverse:{border:"{borders.sm} {colors.black}"}},"& [data-list-item-title]":{lineClamp:3,lineHeight:1.2,fontSize:"h4",fontWeight:700},"& [data-field-type=teaser]":{display:"-webkit-box",boxOrient:"vertical",textOverflow:"ellipsis",overflow:"hidden",lineClamp:3,fontSize:"sm"},"& [data-list-category]":{_print:{padding:"0.5rem",marginBottom:"1rem"}},"& [data-img]":{aspectRatio:"390/293",width:"100%",maxWidth:"39rem",minWidth:"auto",overflow:"visible",marginBottom:{mdDown:"-1.5rem"},"& *":{borderRadius:"inherit"},_before:{width:{base:"8.4rem",md:"11rem"},height:{base:"8.4rem",md:"11rem"},bottom:"-5rem"}},_hover:{"& [data-txt]":{marginLeft:0,marginRight:{md:"3rem"}},"& [data-img]":{_before:{height:"calc(100% + 5rem) !important",borderTopLeftRadius:"1rem"}}}}))},{default:be(()=>[ke(r,{"aria-hidden":"true",class:de([v(ei)({fill:"primary",size:"2rem !important"}),v(me)({marginLeft:"auto",hideBelow:"md"})])},null,8,["class"]),ke(i,{"aria-hidden":"true",class:de([v(ei)({fill:"lightGray",size:{base:"30rem",lg:"39rem"},height:"auto"}),v(me)({display:{_print:"none"},position:"absolute",bottom:0,left:{base:"-3rem",md:0},zIndex:-2})])},null,8,["class"])]),_:1},8,["result","class"])]),_:1},8,["slides","breakpoints","class"])]),_:2},[e.isBlocHome&&e.data?.listLink?.href?{name:"bottom",fn:be(()=>[ke(o,{link:{href:e.data?.listLink?.href,text:t.$t("common.buttons.home.news")},variante:{classes:"btnUnderlined"}},null,8,["link"])]),key:"0"}:void 0]),1032,["header","isBlocHome","class"])):Ne("",!0)}}}),mG=Fe({__name:"HomeNews",props:{data:{},header:{}},setup(e){const t=e,n=vr(),r=De(n.backendLayout),{isAmiral:i}=zr(),a=xe(()=>r.value==="home"),{t:s}=Ii(),o=xe(()=>a.value?t?.header||t.data?.settings?.title:`${s(`blocks.blocsLies.type.${t.data?.results?.[0]?.type}`)}`);return(f,m)=>{const y=DEe,b=REe;return v(i)()?(Z(),Se(y,{key:0,data:e.data,header:v(o),isBlocHome:v(a)},null,8,["data","header","isBlocHome"])):(Z(),Se(b,{key:1,data:e.data,header:v(o),isBlocHome:v(a)},null,8,["data","header","isBlocHome"]))}}}),BEe=Fe({__name:"HomeEventTpl1",props:{data:{},header:{},subheader:{},isBlocHome:{type:Boolean}},setup(e){return(t,n)=>{const r=cr,i=Cu,a=Vf,s=ab;return e.data?.results?.length?(Z(),Se(s,{key:0,data:e.data,header:e.header,subheader:e.subheader,headerId:"bloc_events_title",titleAlign:e.isBlocHome?"left":"center",buttonContainerAlign:"left",blocWidth:e.isBlocHome?"11/12":"12/12",blocGrid:[v(Mi)({columns:e.isBlocHome?{base:1,sm:12,md:11}:{base:1,sm:12},rowGap:e.isBlocHome?"unset":"4.5rem"}),v(me)({marginRight:0}),e.isBlocHome?v(me)({"& [data-title-container]":{marginBottom:"3.5rem"},"& [data-title]":{marginTop:0,marginBottom:"3rem"}}):v(me)({"& [data-title-container]":{"& > *":{paddingBottom:0,fontSize:"lg",_before:{display:"none"}}}})],isSubtitle:!e.isBlocHome,class:de([v(me)({paddingInline:{mdDown:e.isBlocHome?"none":0},"& [data-title-container]":{gridColumnStart:1,gridColumnEnd:e.isBlocHome?{base:2,sm:13,md:4}:{sm:13},marginBottom:0},"& [data-buttons-container]":{gridColumnStart:1,gridColumnEnd:{base:2,sm:13,md:12},justifyContent:{mdDown:"center"}}})])},Tg({content:be(()=>[e.data?.prefilters?.length>0?(Z(),Ce("ul",{key:0,class:de([v(Gy)({colStart:{base:1,md:4},colEnd:{base:2,sm:13,md:12},alignSelf:{md:"end"},justifySelf:{base:"center",md:"end"}}),v(Qn)({gap:{base:"1.5rem",md:"2.5rem"},flexWrap:{mdDown:"wrap"},justifyContent:{mdDown:"center"}}),v(me)({marginBottom:"3rem",display:{_print:"none"}})])},[(Z(!0),Ce(Ct,null,ln(e.data?.prefilters,o=>(Z(),Ce("li",{class:de(v(me)({bgColor:"primary",border:"{borders.sm} {colors.black}",borderRadius:"0.5em",overflow:"hidden",_hover:{borderColor:"primary"}}))},[ke(r,{link:o?.link?.[0],picto:"next",class:de([v(me)({"& .boutonsRecipe__skin":{display:"flex",alignItems:"center",gap:"0.5rem",padding:"1.5rem 2.5rem",bgColor:"white",transition:"{easings.global}"},"& svg":{width:"2rem",height:"2rem","& *":{fill:"primary"}}
829,_hover:{"& .boutonsRecipe__skin":{bgColor:{base:"transparent",_inverse:"black"},color:"white"},"& svg":{"& *":{fill:{base:"white",_inverse:"white"}}}}})])},null,8,["link","class"])],2))),256))],2)):Ne("",!0),Re("div",{"data-items":"",class:de(v(Gy)({colStart:e.isBlocHome?1:{sm:1,md:2},colEnd:{base:e.isBlocHome?2:null,sm:13,md:e.isBlocHome?13:12}}))},[ke(a,{slides:e.data?.results,blocTitleId:"bloc_events_title",breakpoints:{320:{slidesPerView:1,autoHeight:!0},580:{slidesPerView:1,autoHeight:!0},640:{slidesPerView:2,autoHeight:!0},880:{slidesPerView:3,autoHeight:!0},1024:{slidesPerView:3,autoHeight:!1},1220:{slidesPerView:3,autoHeight:!1},1440:{slidesPerView:3,autoHeight:!1}},spaceBetween:70,class:de([v(me)({width:e.isBlocHome?{lg:"100%",xl:"calc(33rem * 3 + 14rem)"}:null,position:"relative","& .swiper":{overflow:"visible !important"},"& [data-navigation]":{"& button":{top:"35%"}},"& .swiper-slide":{marginBottom:"0 !important"},"& [data-button-slider]":{"& svg":{bgColor:{mdDown:"black"},borderColor:{mdDown:"transparent"},"& *":{fill:{mdDown:"white"}}},_hover:{"& svg":{bgColor:{mdDown:"white"},borderColor:{mdDown:"black"},"& *":{fill:{mdDown:"black"}}}}}}),e.isBlocHome?v(me)({"& [data-button-slider=prev]":{transform:{base:"translate(-100%, -50%)",md:"translate(-25%, -50%)",xl:"translate(-100%, -50%)"},left:{base:"1.5rem",md:0,xl:"-2.2rem"}},"& [data-button-slider=next]":{transform:{base:"translate(100%, -50%)",md:"translate(25%, -50%)",xl:"translate(100%, -50%)"},right:{base:"1.5rem",md:0,xl:"-0.5rem"}}}):v(me)({"& [data-button-slider=prev]":{left:0,transform:"translate(-75%, -50%)"},"& [data-button-slider=next]":{right:0,transform:"translate(75%, -50%)"}})])},{slideContent:be(o=>[ke(i,{result:o.slide,"fields-to-show":["cim_news","place","type_evenement"],class:de([v(me)({transition:"{easings.global}",maxWidth:e.isBlocHome?"100%":null,_print:{maxWidth:"none",marginTop:"2rem"},"& [data-list-item-content]":{flexDir:"column-reverse",gap:e.isBlocHome?"1.5rem":"2rem",alignItems:"start"},"& [data-txt]":{alignItems:"initial"},"& [data-list-item-title]":{lineClamp:3,lineHeight:1.2,fontSize:"h4"},"& [data-date-container]":{"& svg":{rotate:{_print:"90deg"}}},"& [data-list-category]":{position:"absolute",rowGap:0,transform:e.isBlocHome?"translateY(calc(-100% - 1.5rem))":"translateY(calc(-100% - 2rem))",_print:{position:"relative",transform:"none"}},"& [data-list-category=typeEvenement]":{transform:e.isBlocHome?"translateY(calc(-200% - 1.5rem))":"translateY(calc(-200% - 2rem))"},"& [data-field-type]":{},"& [data-img]":{aspectRatio:e.isBlocHome?"330/420":"325/415",minWidth:"100%"}})])},null,8,["result","class"])]),_:1},8,["slides","class"])],2)]),_:2},[e.isBlocHome&&e.data?.listLink?.href?{name:"bottom",fn:be(()=>[ke(r,{link:{href:e.data?.listLink?.href,text:t.$t("common.buttons.home.events")},variante:{classes:"btnGradient",bgColor:"white"}},null,8,["link"])]),key:"0"}:void 0]),1032,["data","header","subheader","titleAlign","blocWidth","blocGrid","isSubtitle","class"])):Ne("",!0)}}}),FEe=Fe({__name:"HomeEventTpl2",props:{data:{},header:{},subheader:{},isBlocHome:{type:Boolean}},setup(e){return(t,n)=>{const r=cr,i=Cu,a=Vf,s=pG,o=ab;return e.data?.results?.length?(Z(),Se(o,{key:0,data:e.data,header:e.header,subheader:e.isBlocHome?e.subheader:t.$t("listItem.type.subEvents"),headerId:"bloc_events_title",titleAlign:e.isBlocHome?"left":"center",blocGrid:[v(Mi)({columns:{base:1,sm:12}})],isSubtitle:!e.isBlocHome,class:de([v(me)({paddingBottom:"calc({spacing.blocHomeBottom} * 2)","& [data-title-container]":{gridColumnStart:1,gridColumnEnd:{base:2,sm:13,md:e.isBlocHome?6:13},marginBottom:0,paddingLeft:{md:"6rem"}},"& [data-buttons-container]":{gridColumnStart:1,gridColumnEnd:{base:2,sm:13},marginTop:0,position:"relative",_before:{display:e.isBlocHome?"block":"none",content:{base:"''",_print:"none"},position:"absolute",bottom:"calc(-1 * {spacing.blocHomeBottom})",left:"50%",width:"100vw",height:"calc(100% + {spacing.blocHomeBottom} + {spacing.gutter})",bgColor:"lightGray",transform:"translateX(-50%)"}}})])},Tg({content:be(()=>[e.data?.prefilters?.length>0?(Z(),Ce("ul",{key:0,class:de([v(Gy)({colStart:{base:1,md:6},colEnd:{base:2,sm:13},alignSelf:{md:"end"},justifySelf:{base:"center",md:"end"}}),v(Qn)({gap:{base:"1.5rem",md:"2rem"},flexWrap:{mdDown:"wrap"},justifyContent:{mdDown:"center"}}),v(me)({marginBottom:0})])},[(Z(!0),Ce(Ct,null,ln(e.data?.prefilters,f=>(Z(),Ce("li",{class:de(v(me)({bg:"linear-gradient(270deg, var(--cim_primary_color) 49.5%, var(--cim_secondary_color) 100%)",borderRadius:"0.5em",overflow:"hidden",_inverse:{border:"{borders.sm} {colors.black}"}}))},[ke(r,{link:f?.link?.[0],picto:"next",class:de([v(me)({"& .boutonsRecipe__skin":{display:"flex",alignItems:"center",gap:"0.5rem",padding:"1.5rem 2.5rem",transition:"{easings.global}",bgColor:"lightGray"},"& svg":{width:"2rem",height:"2rem","& *":{fill:"primary"}}
829,_hover:{"& .boutonsRecipe__skin":{bgColor:{base:"transparent",_inverse:"black"},color:"white"},"& svg":{"& *":{fill:{base:"black",_inverse:"white"}}}}})])},null,8,["link","class"])],2))),256))],2)):Ne("",!0),Re("div",{"data-items":"",class:de([v(Gy)({colStart:1,colEnd:{base:2,sm:13}}),v(me)({position:"relative",marginTop:"1.5rem",marginInline:{smDown:"-3rem"},_before:{display:e.isBlocHome?"block":"none",content:{base:"''",_print:"none"},position:"absolute",bottom:0,left:"50%",width:"100vw",height:"65%",bgColor:"lightGray",transform:"translateX(-50%)"}})])},[ke(a,{slides:e.data?.results,blocTitleId:"bloc_events_title",SliderButtonVariante:{classes:"pictoRound",pictoColor:"black",pictoSize:"lg"},breakpoints:{320:{slidesPerView:1,autoHeight:!0},640:{slidesPerView:2,autoHeight:!0},950:{slidesPerView:3,autoHeight:!1}},"space-between":e.isBlocHome?30:40,class:de([v(me)({width:"100%",position:"relative","& [data-navigation]":{},"& .swiper-slide":{marginBottom:"0 !important",height:"auto !important"}}),e.isBlocHome?v(me)({"& [data-button-slider=prev]":{transform:{base:"translate(-100%, -50%)",xl:"translate(-50%, -50%) !important",xxl:"translate(-100%, -50%) !important"},top:"35%",left:{base:"4.5rem",sm:"1.5rem",md:e.isBlocHome?null:"1rem"}},"& [data-button-slider=next]":{transform:{base:"translate(100%, -50%)",xl:"translate(50%, -50%) !important",xxl:"translate(100%, -50%) !important"},top:"35%",right:{base:"4.5rem",sm:"1.5rem",md:e.isBlocHome?null:"1rem"}}}):v(me)({"& [data-button-slider=prev]":{left:{base:0,sm:"-3rem"},transform:"translate(-75%, -50%)"},"& [data-button-slider=next]":{right:{base:0,sm:"-3rem"},transform:"translate(75%, -50%)"}})])},{slideContent:be(f=>[ke(i,{result:f.slide,"fields-to-show":["cim_news","place","type_evenement"],class:de([v(me)({transition:"{easings.global}",maxWidth:{md:"45rem"},height:"100%",paddingLeft:{md:"6rem"},overflow:"hidden",_print:{maxWidth:"none",marginTop:"2rem"},"& [data-list-item-content]":{flexDir:"column-reverse",gap:0,height:"100%"},"& [data-txt]":{justifyContent:"start",alignItems:"initial",padding:{base:"2rem 2.5rem",lg:"3rem 3.5rem"},borderRadius:{base:"0 0 1.5em 1.5em",md:"1.5em"},bgColor:"white",minHeight:"20rem",marginLeft:{md:"1.5rem"},transition:"{easings.global}",position:"relative",_after:{content:{mdDown:"''",_print:"none"},position:"absolute",top:"-3rem",left:0,width:"100%",height:"3rem",bgColor:"white",zIndex:-2,borderRadius:{mdDown:"1.5em 1.5em 0 0"}},_inverse:{border:"{borders.sm} {colors.black}"}},"& [data-list-item-title]":{lineClamp:3,lineHeight:1.2,fontSize:"h4Ville","& a:before":{height:"100vh",top:"-50vh"}},"& [data-date-container]:not([data-date=sessions])":{padding:"1.5rem 2rem",width:{md:"7.5rem !important"},order:{mdDown:-2},position:{mdDown:"absolute"},left:{mdDown:"2rem"},transform:{mdDown:"translateY(calc(-1 * 100% - 2rem))"}},"& [data-list-category]":{},"& [data-field-type]":{fontSize:"sm"},"& [data-img]":{marginBottom:{md:"-3rem"},zIndex:{md:-2},aspectRatio:"352/448",alignSelf:{mdDown:"center"},minWidth:{md:e.isBlocHome?"calc(100% - 3rem)":"100%"},maxWidth:{mdDown:"35.2rem"},width:{mdDown:"calc(100% - 6rem)"}},_hover:{"& [data-txt]":{marginTop:"-1.6rem",marginBottom:"1.6rem"},"& [data-date-container]":{}}})])},null,8,["result","class"])]),_:1},8,["slides","space-between","class"]),e.isBlocHome?(Z(),Se(s,{key:0,"aria-hidden":"true",class:de([v(ei)({fill:"lightGray",size:"39rem !important",height:"auto"}),v(me)({display:{_print:"none"},position:"absolute",top:"7.7rem",left:"6rem",zIndex:-1,transform:"translateX(-100%)"})])},null,8,["class"])):Ne("",!0)],2)]),_:2},[e.isBlocHome&&e.data?.listLink?.href?{name:"bottom",fn:be(()=>[ke(r,{link:{href:e.data?.listLink?.href,text:t.$t("common.buttons.home.events")},variante:{classes:"btnUnderlined"}},null,8,["link"])]),key:"0"}:void 0]),1032,["data","header","subheader","titleAlign","blocGrid","isSubtitle","class"])):Ne("",!0)}}}),gG=Fe({__name:"HomeEvent",props:{data:{},header:{},subheader:{}},setup(e){const t=vr(),n=De(t.backendLayout),r=e,{isAmiral:i}=zr(),a=xe(()=>n.value==="home"),{t:s}=Ii(),o=xe(()=>a.value?r?.header||r.data?.settings?.title:`${s(`blocks.blocsLies.type.${r.data?.results?.[0]?.type}`)}`);return(f,m)=>{const y=BEe,b=FEe;return v(i)()?(Z(),Se(y,{key:0,data:e.data,header:v(o),isBlocHome:v(a),subheader:e.subheader},null,8,["data","header","isBlocHome","subheader"])):(Z(),Se(b,{key:1,data:e.data,header:v(o),isBlocHome:v(a),subheader:e.subheader},null,8,["data","header","isBlocHome","subheader"]))}}}),zEe=Fe({__name:"HomeKiosque",props:{data:{},header:{}},setup(e){const t=vr();t.initialData;const{isAmiral:n}=zr();return(r,i)=>{const a=Cu,s=Vf,o=cr,f=Dw;return e.data?.results?.length>0?(Z(),Ce("div",{key:0,class:de(v(me)({marginBottom:{mdDown:"3rem"}}))},[Re("div",null,[Re("div",{class:de(v(me)({position:"relative"}))},[ke(s,{slides:e.data?.results,blocTitleId:"bloc_kiosque_title",modules:[v(fG),v(hG)],wrapperTag:"div",slideTag:"div",loop:!0,SliderButtonVariante:{classes:"pictoRound",pictoColor:v(n)()?"white":"black",pictoSize:"lg"},slidesPerView:"auto",centeredSlides:!0,effect:"carousel","space-between":0,autoHeight:!1,carouselEffect:{opacityStep:.33,scaleStep:.2,sideSlides:2},class:de([v(me)({position:"relative",paddingBottom:{base:0,sm:"2rem"},"& [data-button-slider]":{top:{base:"33%",md:"37%"},"& svg":{bgColor:{mdDown:"black"},borderColor:{mdDown:"transparent"},"& *":{fill:{mdDown:"white"}}},_hover:{"& svg":{bgColor:{mdDown:"white"},borderColor:{mdDown:"black"},"& *":{fill:{mdDown:"black"}}}}},"& [data-button-slider=prev]":{transform:"translate(-100%, -50%)",left:{base:"1.5rem",md:"5rem",xl:"8.5rem"}},"& [data-button-slider=next]":{transform:"translate(100%, -50%)",right:{base:"1.5rem",md:"5rem",xl:"8.5rem"}},"& .swiper":{width:{lg:"10/12"},margin:{lg:"0 auto"}},"& .swiper-slide":{maxWidth:"23.5rem",marginBottom:{smDown:"0 !important"}},"& .swiper-slide-active":{"& [data-txt]":{opacity:1}}})])},{slideContent:be(m=>[ke(a,{result:m.slide,options:{noLink:!0,showcategories:!1},class:de(v(me)({"& [data-list-item-content]":{flexDir:"column-reverse",textAlign:"center"},"& [data-txt]":{color:"black",opacity:0,width:{base:"100%",sm:"40rem",lg:"45rem"},alignItems:"center",gap:0,marginTop:{base:"1rem",sm:0},paddingRight:{md:"18rem"},position:"relative",minHeight:"13.5rem",flex:"none !",flexWrap:"nowrap",display:"flex",flexDir:"column"},"& [data-list-item-title]":{maxWidth:"100%",wordBreak:"break-word",width:"auto",fontSize:{base:"{fontSizes.h3}",lg:"h4Ville"},color:"black",fontWeight:700,marginBottom:".5rem",textAlign:v(n)()?{base:"center",md:"start"}:"center",display:{base:"flex",_print:"block"},justifyContent:v(n)()?{base:"center",md:"initial"}:"center"},"& [data-metadata]":{alignItems:v(n)()?{base:"center",md:"start"}:"center","& span":{marginBottom:".5rem",textAlign:v(n)()?{base:"center",md:"start"}:"center"},"& span:last-child":{fontSize:v(n)()?"1.4rem":"1.6rem",marginBottom:0}},"& [data-kiosque-links]":{flexDir:"column !important",flexWrap:"nowrap",position:{md:"absolute"}
829,right:0,top:0,alignItems:"start",gap:"1.5rem",justifyContent:{base:"start",md:"center"}},"& [data-img]":{aspectRatio:"235/315",minWidth:"100%",boxShadow:{base:"0 .4rem 1.5rem 0 rgba(0,0,0,.2)",_inverse:"{shadows.inverse}"},"& img":{width:"100%",height:"100%",objectFit:"cover"}}}))},null,8,["result","class"])]),_:1},8,["slides","modules","SliderButtonVariante","class"])],2)]),e.data?.listLink?.href?(Z(),Ce("div",{key:0,class:de(v(me)({marginTop:"2.5rem"}))},[ke(f,{align:"center"},{default:be(()=>[ke(o,{link:{href:e.data?.listLink?.href,text:r.$t("common.buttons.home.kiosque")},variante:{classes:v(n)()?"btnGradient":"btnUnderlined",bgColor:v(n)()?"white":"unset"}},null,8,["link","variante"])]),_:1})],2)):Ne("",!0)],2)):Ne("",!0)}}}),NEe={key:0,class:"bloc_home maj"},VEe={key:0,class:"bloc_home_title_container"},qEe={class:"bloc_home_content"},jEe={class:"list_item"},UEe={class:"list_item_content"},HEe={key:0},WEe=Fe({__name:"LastUpdate",props:{header:{},data:{default:{}}},setup(e){return(t,n)=>{const r=CT,i=EW;return e.data?.results?(Z(),Ce("div",NEe,[e.header?(Z(),Ce("div",VEe,[ke(r,{home:!0,header:e.header},null,8,["header"])])):Ne("",!0),Re("ul",qEe,[(Z(!0),Ce(Ct,null,ln(e.data.results,a=>(Z(),Ce("li",jEe,[Re("div",UEe,[ke(i,{title:a?.title,link:a.links[0],listItemLink:!0},null,8,["title","link"]),a.tsedit?(Z(),Ce("span",HEe,ht(t.$t("blocHome.maj"))+" "+ht(("useDisplayDate"in t?t.useDisplayDate:v(Fs))(a.tsedit,"DAY_MONTH_YEAR_FULL_TEXT")),1)):Ne("",!0)])]))),256))])])):Ne("",!0)}}}),GEe=Fe({__name:"ListItemDemarches",props:{result:{default:{}},popin:{type:Boolean,default:!0}},setup(e){const{isAmiral:t}=zr();return(n,r)=>{const i=Cu;return Z(),Ce(Ct,null,[ke(i,{result:e.result,popin:e.popin,fieldsToShow:[""],options:{showimg:!1,showcategories:!1,hn:"h4"},class:de(["cell shrink",v(me)({"& > *":{marginBottom:"0 !important"},_hover:{"& > svg":{transform:"translate(1rem, -50%)"}},"& [data-txt]":{width:"100%"},"& [data-txt] > *":{width:"100%",fontSize:"{fontSizes.p}"},"& [data-list-item-title]":{fontWeight:"{fonts.regular}","& a":{fontWeight:"{fonts.regular}",width:"100%"}},"& [data-list-item-content]":{position:"static"}})])},null,8,["result","popin","class"]),e.result.onlineProcess?(Z(),Ce("span",{key:0,class:de(v(me)({bgColor:v(t)()?"primary":"black",color:"white",fontWeight:700,padding:{base:".5rem 1.2rem",sm:".8rem 1.5rem"},fontSize:{base:"1.2em",sm:"1.4em"},borderRadius:".5rem",letterSpacing:"global",lineHeight:1.2,width:"fit-content"}))}," En ligne ",2)):Ne("",!0)],64)}}}),YEe=Fe({__name:"GroupByCategory",props:{category:{default:{}},popin:{type:Boolean,default:!0}},setup(e){vr();const{isAmiral:t}=zr(),n=e,r=De(!1),i=n.category?.results?.slice(4)?.length>0,a=[Qn({gap:"1.2rem",alignItems:{sm:"center"},flexDir:{smDown:"column-reverse"}}),me({position:"relative",padding:"1.2rem 0",width:"100%",paddingLeft:{base:"3rem",sm:"3.5rem"},fontSize:"1em",rowGap:".5rem",borderBottom:"{borders.sm} {colors.black}",borderBottomColor:"black/20",_last:{borderBottomColor:"transparent"}})],s=[ei({size:{base:"2rem",sm:"2.5rem"},fill:t()?"primary":"black"}),me({position:"absolute",left:0,top:"50%",transform:"translate(0, -50%)",transition:"{easings.global}"})];return(o,f)=>{const m=GEe,y=ib,b=AT,T=cr,x=IT,$=MT;return Z(),Ce("div",{class:de([v(t)()?v(me)({position:"relative",padding:"4.5rem",borderRadius:"1.5rem",bgColor:"white",boxShadow:"0 .3rem 1.5rem 0 rgba(0,0,0,.15)"}):v(me)({position:"relative",marginInline:{md:"3rem"},padding:{base:"1.5rem 0 1.5rem 2.5rem",sm:"1.5rem 3.5rem",md:"1.5rem 4.5rem"},_before:{content:"''",position:"absolute",top:0,left:0,width:".2rem",height:"100%",bgImage:"linear-gradient(to bottom, {colors.primary}, {colors.secondary})"}})])},[Re("h3",{"data-h2":"",class:de([v(LA)(),v(me)({fontFamily:"secondary",fontSize:"h3"})])},ht(e.category?.title==="uncategorized"?o.$t("search.list.noCategory"):e.category?.title),3),ke($,{open:v(r),"onUpdate:open":f[0]||(f[0]=A=>zn(r)?r.value=A:null)},{default:be(()=>[Re("ul",{class:de([v(me)({marginBottom:0,marginTop:"2rem"})])},[(Z(!0),Ce(Ct,null,ln(e.category?.results?.slice(0,4),(A,N)=>(Z(),Ce("li",{key:N,class:de(a)},[ke(m,{result:A,popin:e.popin},null,8,["result","popin"]),ke(y,{"aria-hidden":"true",class:de(s)})]))),128))],2),ke(b,null,{default:be(()=>[Re("ul",{class:de(v(me)({borderTop:".1rem solid {colors.lightGray}",marginBottom:0}))},[(Z(!0),Ce(Ct,null,ln(e.category?.results?.slice(4),A=>(Z(),Ce("li",{key:A,class:de([a,v(me)({borderTop:"{borders.sm} {colors.black}",borderTopColor:"black/20"})])},[ke(m,{result:A,popin:e.popin},null,8,["result","popin"]),ke(y,{"aria-hidden":"true",class:de(s)})],2))),128))],2)]),_:1}),i?(Z(),Se(x,{key:0,asChild:"",class:de(v(Tr)({alignItems:"center",gap:"1rem",marginTop:"1rem"}))},{default:be(()=>[ke(T,{link:{href:"#",text:v(r)?o.$t("common.showLess"):o.$t("common.showMore")},variante:{classes:"btnTxt",bgColor:"black"},type:"button",class:de(v(me)({"& span":{_before:{content:v(r)?"'- '":"'+ '"}}}))},null,8,["link","class"])]),_:1},8,["class"])):Ne("",!0)]),_:1},8,["open"])],2)}}}),ZEe={key:0},KEe={key:3},XEe=Fe({__name:"Pagination",props:tP({resultsScrollCount:{},itemsPerPage:{default:10},items:{},title:{},isSearch:{type:Boolean,default:!1}},{modelValue:{default:1},modelModifiers:{}}),emits:["update:modelValue"],setup(e,{expose:t}){const{isAmiral:n}=zr(),r=e,i=uN(e,"modelValue"),a=xe(()=>Math.ceil(r.resultsScrollCount/r.itemsPerPage)),s=xe(()=>i.value==1),o=xe(()=>i.value>=a.value);return t({pagesTotal:a}),(f,m)=>{const y=cr,b=rxe,T=mxe,x=dxe,$=J2e,A=hxe,N=axe,O=uxe,I=txe;return Z(),Se(I,{page:i.value,"onUpdate:page":m[0]||(m[0]=U=>i.value=U),total:e.resultsScrollCount,"items-per-page":+e.itemsPerPage,"sibling-count":1,"show-edges":!0,"aria-label":f.$t("search.pagination.paginationLabel"),class:de(v(me)({_print:{display:"none"}}))},{default:be(()=>[v(a)>1?(Z(),Se(O,{key:0,as:"ul",class:de([v(_u)({columnGap:"1rem"}),v(Wa)({shadowInitial:0}),v(me)({margin:0,"& li":{fontSize:"p",display:{base:"flex",_print:"block"},justifyContent:"center"}})])},{default:be(({items:U})=>[v(s)?Ne("",!0):(Z(),Ce("li",ZEe,[ke(b,{asChild:""},{default:be(()=>[ke(y,{link:{href:"#",text:f.$t("search.pagination.paginationFirst")},"aria-label":f.$t("search.pagination.paginationFirst"),title:f.$t("search.pagination.paginationFirst"),variante:{classes:"pictoRound",pictoColor:v(n)()?"white":"black",pictoSize:"md"},showSr:!0,picto:"first"}
829,null,8,["link","aria-label","title","variante"])]),_:1})])),v(s)?Ne("",!0):(Z(),Ce("li",{key:1,class:de(v(me)({marginRight:"1rem"}))},[ke(T,{asChild:""},{default:be(()=>[ke(y,{link:{href:"#",text:f.$t("search.pagination.paginationPrev")},"aria-label":f.$t("search.pagination.paginationPrev"),title:f.$t("search.pagination.paginationPrev"),variante:{classes:"pictoRound",pictoColor:v(n)()?"white":"black",pictoSize:"md"},showSr:!0,picto:"prev"},null,8,["link","aria-label","title","variante"])]),_:1})],2)),(Z(!0),Ce(Ct,null,ln(U,(B,q)=>(Z(),Ce("li",{key:q,class:de(v(me)({margin:"0 0.5rem"}))},[B.type==="page"&&B.value!==i.value?(Z(),Se(x,{key:0,value:B.value,"aria-label":f.$t("search.pagination.paginationListItem")+" "+B.value,title:f.$t("search.pagination.paginationListItem")+" "+B.value,as:"a",href:"#"},{default:be(()=>[Re("span",{class:de(v(Er)())},ht(f.$t("search.pagination.paginationListItem"))+" ",3),Re("span",null,ht(B.value),1)]),_:2},1032,["value","aria-label","title"])):B.type==="page"&&B.value===i.value?(Z(),Se(x,{key:1,value:B.value,"aria-label":f.$t("search.pagination.paginationCurrent")+" : "+B.value,title:f.$t("search.pagination.paginationCurrent")+" : "+B.value,as:"span",class:de(B.value===i.value?v(me)({fontWeight:700}):null)},{default:be(()=>[Re("span",{class:de(v(Er)())},ht(f.$t("search.pagination.paginationListItem"))+" ",3),_n(" "+ht(B.value),1)]),_:2},1032,["value","aria-label","title","class"])):(Z(),Se($,{key:2,index:q,class:"unavailable",as:"span"},{default:be(()=>[...m[1]||(m[1]=[_n(" … ",-1)])]),_:1},8,["index"]))],2))),128)),v(o)?Ne("",!0):(Z(),Ce("li",{key:2,class:de(v(me)({marginLeft:"2rem"}))},[ke(A,{asChild:""},{default:be(()=>[ke(y,{link:{href:"#",text:f.$t("search.pagination.paginationNext")},"aria-label":f.$t("search.pagination.paginationNext"),title:f.$t("search.pagination.paginationNext"),variante:{classes:"pictoRound",pictoColor:v(n)()?"white":"black",pictoSize:"md"},picto:"next",showSr:!0},null,8,["link","aria-label","title","variante"])]),_:1})],2)),v(o)?Ne("",!0):(Z(),Ce("li",KEe,[ke(N,{asChild:""},{default:be(()=>[ke(y,{link:{href:"#",text:f.$t("search.pagination.paginationLast")},"aria-label":f.$t("search.pagination.paginationLast"),title:f.$t("search.pagination.paginationLast"),variante:{classes:"pictoRound",pictoColor:v(n)()?"white":"black",pictoSize:"md"},picto:"last",showSr:!0},null,8,["link","aria-label","title","variante"])]),_:1})]))]),_:1},8,["class"])):Ne("",!0)]),_:1},8,["page","total","items-per-page","aria-label","class"])}}}),yG=Fe({__name:"ListResults",props:{results:{},fieldsToShow:{}},setup(e){return(t,n)=>{const r=Cu;return Z(),Ce("div",{class:de([v(Tr)({gap:0,alignItems:"initial"}),v(me)({overflow:"auto",height:"100%"}),v(Wa)()])},[e.results?.length?(Z(!0),Ce(Ct,{key:0},ln(e.results,(i,a)=>(Z(),Se(r,{key:a,result:i,"is-horizontal":!0,options:{showimg:!1},popin:!0,"fields-to-show":["cim_news","datetime","place","address","schedule","phone","mobilePhone","mail","website","city"],class:de(v(me)({"& [data-list-item-content]":{padding:{base:"2rem",md:"3rem",lg:"3rem 5rem"},paddingLeft:i?.cimNewsStartDate?{md:"7rem !"}:null,minHeight:i?.cimNewsEndDate?{md:"16rem"}:"initial"},"& [data-list-item-title]":{fontSize:"h3"},"& [data-txt]":{padding:0,bgColor:"transparent",minHeight:"initial"},"& [data-date-container]:not([data-date=sessions])":{position:"static",transform:"none !",padding:"0 !",order:-1,width:{mdDown:"100% !"},color:"black",top:"unset !",_before:{display:"none"},"& svg > path":{fill:"black !"}},_even:{"& [data-list-item-content]":{bgColor:"lightGray"}},_inverse:{borderTop:"{borders.sm} {colors.black}"}}))},null,8,["result","class"]))),128)):(Z(),Ce("div",{key:1,class:de(v(me)({padding:"3rem 1.5rem",height:"100%"}))},[Re("p",null,ht(t.$t("search.autocomplete.noResultAtAll")),1)],2))],2)}}});var d8,fB;function vG(){if(fB)return d8;fB=1,d8=t;var e=Object.prototype.hasOwnProperty;function t(){for(var n={},r=0;r<arguments.length;r++){var i=arguments[r];for(var a in i)e.call(i,a)&&(n[a]=i[a])}return n}return d8}var f8={exports:{}},hB;function JEe(){return hB||(hB=1,(function(e,t){(function(){var n={};e.exports=n,n.simpleFilter=function(r,i){return i.filter(function(a){return n.test(r,a)})},n.test=function(r,i){return n.match(r,i)!==null},n.match=function(r,i,a){a=a||{};
829var s=0,o=[],f=i.length,m=0,y=0,b=a.pre||"",T=a.post||"",x=a.caseSensitive&&i||i.toLowerCase(),$;r=a.caseSensitive&&r||r.toLowerCase();for(var A=0;A<f;A++)$=i[A],x[A]===r[s]?($=b+$+T,s+=1,y+=1+y):y=0,m+=y,o[o.length]=$;return s===r.length?(m=x===r?1/0:m,{rendered:o.join(""),score:m}):null},n.filter=function(r,i,a){return!i||i.length===0?[]:typeof r!="string"?i:(a=a||{},i.reduce(function(s,o,f,m){var y=o;a.extract&&(y=a.extract(o));var b=n.match(r,y,a);return b!=null&&(s[s.length]={string:b.rendered,score:b.score,index:f,original:o}),s},[]).sort(function(s,o){var f=o.score-s.score;return f||s.index-o.index}))}})()})(f8)),f8.exports}var h8,pB;function QEe(){if(pB)return h8;pB=1;var e=function(t){return this.component=t,this.items=[],this.active=0,this.wrapper=document.createElement("div"),this.wrapper.className="suggestions-wrapper",this.element=document.createElement("ul"),this.element.className="suggestions",this.wrapper.appendChild(this.element),this.selectingListItem=!1,t.el.parentNode.insertBefore(this.wrapper,t.el.nextSibling),this};return e.prototype.show=function(){this.element.style.display="block"},e.prototype.hide=function(){this.element.style.display="none"},e.prototype.add=function(t){this.items.push(t)},e.prototype.clear=function(){this.items=[],this.active=0},e.prototype.isEmpty=function(){return!this.items.length},e.prototype.isVisible=function(){return this.element.style.display==="block"},e.prototype.draw=function(){if(this.element.innerHTML="",this.items.length===0){this.hide();return}for(var t=0;t<this.items.length;t++)this.drawItem(this.items[t],this.active===t);this.show()},e.prototype.drawItem=function(t,n){var r=document.createElement("li"),i=document.createElement("a");n&&(r.className+=" active"),i.innerHTML=t.string,r.appendChild(i),this.element.appendChild(r),r.addEventListener("mousedown",(function(){this.selectingListItem=!0}).bind(this)),r.addEventListener("mouseup",(function(){this.handleMouseUp.call(this,t)}).bind(this))},e.prototype.handleMouseUp=function(t){this.selectingListItem=!1,this.component.value(t.original),this.clear(),this.draw()},e.prototype.move=function(t){this.active=t,this.draw()},e.prototype.previous=function(){this.move(this.active===0?this.items.length-1:this.active-1)},e.prototype.next=function(){this.move(this.active===this.items.length-1?0:this.active+1)},e.prototype.drawError=function(t){var n=document.createElement("li");n.innerHTML=t,this.element.appendChild(n),this.show()},h8=e,h8}var p8,mB;function e6e(){if(mB)return p8;mB=1;var e=vG(),t=JEe(),n=QEe(),r=function(i,a,s){return s=s||{},this.options=e({minLength:2,limit:5,filter:!0,hideOnBlur:!0},s),this.el=i,this.data=a||[],this.list=new n(this),this.query="",this.selected=null,this.list.draw(),this.el.addEventListener("keyup",(function(o){this.handleKeyUp(o.keyCode)}).bind(this),!1),this.el.addEventListener("keydown",(function(o){this.handleKeyDown(o)}).bind(this)),this.el.addEventListener("focus",(function(){this.handleFocus()}).bind(this)),this.el.addEventListener("blur",(function(){this.handleBlur()}).bind(this)),this.el.addEventListener("paste",(function(o){this.handlePaste(o)}).bind(this)),this.render=this.options.render?this.options.render.bind(this):this.render.bind(this),this.getItemValue=this.options.getItemValue?this.options.getItemValue.bind(this):this.getItemValue.bind(this),this};return r.prototype.handleKeyUp=function(i){i===40||i===38||i===27||i===13||i===9||this.handleInputChange(this.el.value)},r.prototype.handleKeyDown=function(i){switch(i.keyCode){case 13:case 9:this.list.isEmpty()||(this.list.isVisible()&&i.preventDefault(),this.value(this.list.items[this.list.active].original),this.list.hide());break;case 27:this.list.isEmpty()||this.list.hide();break;case 38:this.list.previous();break;case 40:this.list.next();break}},r.prototype.handleBlur=function(){!this.list.selectingListItem&&this.options.hideOnBlur&&this.list.hide()},r.prototype.handlePaste=function(i){if(i.clipboardData)this.handleInputChange(i.clipboardData.getData("Text"));else{var a=this;setTimeout(function(){a.handleInputChange(i.target.value)},100)}},r.prototype.handleInputChange=function(i){if(this.query=this.normalize(i),this.list.clear(),this.query.length<this.options.minLength){this.list.draw();return}this.getCandidates((function(a){for(var s=0;s<a.length&&(this.list.add(a[s]),s!==this.options.limit-1);s++);this.list.draw()}).bind(this))},r.prototype.handleFocus=function(){this.list.isEmpty()||this.list.show(),this.list.selectingListItem=!1},r.prototype.update=function(i){this.data=i,this.handleKeyUp()},r.prototype.clear=function(){this.data=[],this.list.clear()},r.prototype.normalize=function(i){return i=i.toLowerCase(),i},r.prototype.match=function(i,a){return i.indexOf(a)>-1},r.prototype.value=function(i){if(this.selected=i,this.el.value=this.getItemV
829alue(i),document.createEvent){var a=document.createEvent("HTMLEvents");a.initEvent("change",!0,!1),this.el.dispatchEvent(a)}else this.el.fireEvent("onchange")},r.prototype.getCandidates=function(i){var a={pre:"<strong>",post:"</strong>",extract:(function(o){return this.getItemValue(o)}).bind(this)},s;this.options.filter?(s=t.filter(this.query,this.data,a),s=s.map((function(o){return{original:o.original,string:this.render(o.original,o.string)}}).bind(this))):s=this.data.map((function(o){var f=this.render(o);return{original:o,string:f}}).bind(this)),i(s)},r.prototype.getItemValue=function(i){return i},r.prototype.render=function(i,a){if(a)return a;for(var s=i.original?this.getItemValue(i.original):this.getItemValue(i),o=this.normalize(s),f=o.lastIndexOf(this.query);f>-1;){var m=f+this.query.length;s=s.slice(0,f)+"<strong>"+s.slice(f,m)+"</strong>"+s.slice(m),f=o.slice(0,f).lastIndexOf(this.query)}return s},r.prototype.renderError=function(i){this.list.drawError(i)},p8=r,p8}var m8,gB;function t6e(){if(gB)return m8;gB=1;var e=e6e();return m8=e,typeof window<"u"&&(window.Suggestions=e),m8}var g8,yB;function n6e(){if(yB)return g8;yB=1;var e="Expected a function",t=NaN,n="[object Symbol]",r=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,s=/^0o[0-7]+$/i,o=parseInt,f=typeof Qm=="object"&&Qm&&Qm.Object===Object&&Qm,m=typeof self=="object"&&self&&self.Object===Object&&self,y=f||m||Function("return this")(),b=Object.prototype,T=b.toString,x=Math.max,$=Math.min,A=function(){return y.Date.now()};function N(q,Q,ee){var Y,z,H,K,ne,le,pe=0,ae=!1,se=!1,ce=!0;if(typeof q!="function")throw new TypeError(e);Q=B(Q)||0,O(ee)&&(ae=!!ee.leading,se="maxWait"in ee,H=se?x(B(ee.maxWait)||0,Q):H,ce="trailing"in ee?!!ee.trailing:ce);function ye(ct){var zt=Y,ut=z;return Y=z=void 0,pe=ct,K=q.apply(ut,zt),K}function $e(ct){return pe=ct,ne=setTimeout(at,Q),ae?ye(ct):K}function Be(ct){var zt=ct-le,ut=ct-pe,At=Q-zt;return se?$(At,H-ut):At}function je(ct){var zt=ct-le,ut=ct-pe;return le===void 0||zt>=Q||zt<0||se&&ut>=H}function at(){var ct=A();if(je(ct))return Pt(ct);ne=setTimeout(at,Be(ct))}function Pt(ct){return ne=void 0,ce&&Y?ye(ct):(Y=z=void 0,K)}function Qe(){ne!==void 0&&clearTimeout(ne),pe=0,Y=le=z=ne=void 0}function nt(){return ne===void 0?K:Pt(A())}function Ve(){var ct=A(),zt=je(ct);if(Y=arguments,z=this,le=ct,zt){if(ne===void 0)return $e(le);if(se)return ne=setTimeout(at,Q),ye(le)}return ne===void 0&&(ne=setTimeout(at,Q)),K}return Ve.cancel=Qe,Ve.flush=nt,Ve}function O(q){var Q=typeof q;return!!q&&(Q=="object"||Q=="function")}function I(q){return!!q&&typeof q=="object"}function U(q){return typeof q=="symbol"||I(q)&&T.call(q)==n}function B(q){if(typeof q=="number")return q;if(U(q))return t;if(O(q)){var Q=typeof q.valueOf=="function"?q.valueOf():q;q=O(Q)?Q+"":Q}if(typeof q!="string")return q===0?q:+q;q=q.replace(r,"");var ee=a.test(q);return ee||s.test(q)?o(q.slice(2),ee?2:8):i.test(q)?t:+q}return g8=N,g8}var oS={exports:{}},vB;function r6e(){if(vB)return oS.exports;vB=1;var e=typeof Reflect=="object"?Reflect:null,t=e&&typeof e.apply=="function"?e.apply:function(q,Q,ee){return Function.prototype.apply.call(q,Q,ee)},n;e&&typeof e.ownKeys=="function"?n=e.ownKeys:Object.getOwnPropertySymbols?n=function(q){return Object.getOwnPropertyNames(q).concat(Object.getOwnPropertySymbols(q))}:n=function(q){return Object.getOwnPropertyNames(q)};function r(B){}var i=Number.isNaN||function(q){return q!==q};function a(){a.init.call(this)}oS.exports=a,oS.exports.once=O,a.EventEmitter=a,a.prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var s=10;function o(B){if(typeof B!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof B)}Object.defineProperty(a,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(B){if(typeof B!="number"||B<0||i(B))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+B+".");s=B}}),a.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},a.prototype.setMaxListeners=function(q){if(typeof q!="number"||q<0||i(q))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+q+".");return this._maxListeners=q,this};function f(B){return B._maxListeners===void 0?a.defaultMaxListeners:B._maxListeners}a.prototype.getMaxListeners=function(){return f(this)},a.prototype.emit=function(q){for(var Q=[],ee=1;ee<arguments.length;ee++)Q.push(arguments[ee]);var Y=q==="error",z=this._events;if(z!==void 0)Y=Y&&z.error===void 0;else if(!Y)return!1;if(Y){var H;if(Q.length>0&&(H=Q[0]),H instanceof Error)throw H;var K=new Error("Unhandled error."+(H?" ("+H.message+")":""));throw K.context=H,K}var ne=z[q];if(ne===void 0)return!1;if(typeof ne=="function")t(ne,this,Q);else for(var le=ne.length,pe=$(ne,le),ee=0;ee<le;++ee)t(pe[ee],this,Q);return!0};function m(B,q,Q,ee){var Y,z,H;if(o(Q),z=B._events,z===void 0?(z=B._events=Object.create(null),B._eventsCount=0):(z.newListener!==void 0&&(B.emit("newListener",q,Q.listener?Q.listener:Q),z=B._events),H=z[q]),H===void 0)H=z[q]=Q,++B._eventsCount;else if(typeof H=="function"?H=z[q]=ee?[Q,H]:[H,Q]:ee?H.unshift(Q):H.push(Q
829),Y=f(B),Y>0&&H.length>Y&&!H.warned){H.warned=!0;var K=new Error("Possible EventEmitter memory leak detected. "+H.length+" "+String(q)+" listeners added. Use emitter.setMaxListeners() to increase limit");K.name="MaxListenersExceededWarning",K.emitter=B,K.type=q,K.count=H.length}return B}a.prototype.addListener=function(q,Q){return m(this,q,Q,!1)},a.prototype.on=a.prototype.addListener,a.prototype.prependListener=function(q,Q){return m(this,q,Q,!0)};function y(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function b(B,q,Q){var ee={fired:!1,wrapFn:void 0,target:B,type:q,listener:Q},Y=y.bind(ee);return Y.listener=Q,ee.wrapFn=Y,Y}a.prototype.once=function(q,Q){return o(Q),this.on(q,b(this,q,Q)),this},a.prototype.prependOnceListener=function(q,Q){return o(Q),this.prependListener(q,b(this,q,Q)),this},a.prototype.removeListener=function(q,Q){var ee,Y,z,H,K;if(o(Q),Y=this._events,Y===void 0)return this;if(ee=Y[q],ee===void 0)return this;if(ee===Q||ee.listener===Q)--this._eventsCount===0?this._events=Object.create(null):(delete Y[q],Y.removeListener&&this.emit("removeListener",q,ee.listener||Q));else if(typeof ee!="function"){for(z=-1,H=ee.length-1;H>=0;H--)if(ee[H]===Q||ee[H].listener===Q){K=ee[H].listener,z=H;break}if(z<0)return this;z===0?ee.shift():A(ee,z),ee.length===1&&(Y[q]=ee[0]),Y.removeListener!==void 0&&this.emit("removeListener",q,K||Q)}return this},a.prototype.off=a.prototype.removeListener,a.prototype.removeAllListeners=function(q){var Q,ee,Y;if(ee=this._events,ee===void 0)return this;if(ee.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):ee[q]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete ee[q]),this;if(arguments.length===0){var z=Object.keys(ee),H;for(Y=0;Y<z.length;++Y)H=z[Y],H!=="removeListener"&&this.removeAllListeners(H);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(Q=ee[q],typeof Q=="function")this.removeListener(q,Q);else if(Q!==void 0)for(Y=Q.length-1;Y>=0;Y--)this.removeListener(q,Q[Y]);return this};function T(B,q,Q){var ee=B._events;if(ee===void 0)return[];var Y=ee[q];return Y===void 0?[]:typeof Y=="function"?Q?[Y.listener||Y]:[Y]:Q?N(Y):$(Y,Y.length)}a.prototype.listeners=function(q){return T(this,q,!0)},a.prototype.rawListeners=function(q){return T(this,q,!1)},a.listenerCount=function(B,q){return typeof B.listenerCount=="function"?B.listenerCount(q):x.call(B,q)},a.prototype.listenerCount=x;function x(B){var q=this._events;if(q!==void 0){var Q=q[B];if(typeof Q=="function")return 1;if(Q!==void 0)return Q.length}return 0}a.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]};function $(B,q){for(var Q=new Array(q),ee=0;ee<q;++ee)Q[ee]=B[ee];return Q}function A(B,q){for(;q+1<B.length;q++)B[q]=B[q+1];B.pop()}function N(B){for(var q=new Array(B.length),Q=0;Q<q.length;++Q)q[Q]=B[Q].listener||B[Q];return q}function O(B,q){return new Promise(function(Q,ee){function Y(H){B.removeListener(q,z),ee(H)}function z(){typeof B.removeListener=="function"&&B.removeListener("error",Y),Q([].slice.call(arguments))}U(B,q,z,{once:!0}),q!=="error"&&I(B,Y,{once:!0})})}function I(B,q,Q){typeof B.on=="function"&&U(B,"error",q,Q)}function U(B,q,Q,ee){if(typeof B.on=="function")ee.once?B.once(q,Q):B.on(q,Q);else if(typeof B.addEventListener=="function")B.addEventListener(q,function Y(z){ee.once&&B.removeEventListener(q,Y),Q(z)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof B)}return oS.exports}var y8,_B;function i6e(){if(_B)return y8;_B=1;var e=t6e(),t=n6e(),n=vG(),r=r6e().EventEmitter;function i(a,s){this._eventEmitter=new r,this.options=n({},this.options,a),this.geocodeRequest=s}return i.prototype={options:{placeholder:"Search for Place or Address",zoom:16,flyTo:!0,minLength:2,limit:5,fitBoundsOptions:{}},onAdd:function(a){this._map=a,this._onChange=this._onChange.bind(this),this._onKeyDown=this._onKeyDown.bind(this),this._clear=this._clear.bind(this);var s=this.container=document.createElement("div");s.className="mapboxgl-ctrl-generic-geocoder mapboxgl-ctrl";var o=document.createElement("span");o.className="geocoder-icon geocoder-icon-search",this._inputEl=document.createElement("input"),this._inputEl.type="text",this._inputEl.placeholder=this.options.placeholder,this._inputEl.addEventListener("keydown",this._onKeyDown),this._inputEl.addEventListener("change",this._onChange);var f=document.createElement("div");return f.classList.add("geocoder-pin-right"),this._clearEl=document.createElement("button"),this._clearEl.className="geocoder-icon geocoder-icon-close",this._clearEl.setAttribute("aria-label","Clear"),this._clearEl.addEventListener("click",this._clear),this._loadingEl=document.createElement("span"),this._loadingEl.className="geocoder-icon geocoder-icon-loading",f.appendChild(this._clearEl),f.appendChild(this._loadingEl),s.appendChild(o),s.appendChild(this._inputEl),s.appendChild(f),this._typeahead=new e(this._inputEl,[],{filter:!1,minLength:this.options.minLength,limit:this.options.limit}
829),this._typeahead.getItemValue=function(m){return m.name},s},onRemove:function(){return this.container.parentNode.removeChild(this.container),this._map=null,this},_onKeyDown:t(function(a){if(!a.target.value)return this._clearEl.style.display="none";[9,27,37,39,13,38,40].indexOf(a.keyCode)===-1&&a.target.value.length>=this.options.minLength&&this._geocode(a.target.value)},500),_onChange:function(){this._inputEl.value&&(this._clearEl.style.display="block");var a=this._typeahead.selected;if(a){if(this.options.flyTo){var s=a.bbox;s?this._map.fitBounds([[s[0],s[1]],[s[2],s[3]]],this.options.fitBoundsOptions):this._map.flyTo({center:[a.lon,a.lat],zoom:this.options.zoom})}this._eventEmitter.emit("result",{result:a})}},_geocode:function(a){this._loadingEl.style.display="block",this._eventEmitter.emit("loading",{query:a}),this.geocodeRequest(a,this._map.getBounds(),this.options).then((function(s){this._loadingEl.style.display="none",s.length?(s=s.slice(0,this.options.limit),this._clearEl.style.display="block"):(this._clearEl.style.display="none",this._typeahead.selected=null),this._eventEmitter.emit("results",s),this._typeahead.update(s)}).bind(this)).catch((function(s){this._loadingEl.style.display="none",this._eventEmitter.emit("error",{text:s.message,err:s})}).bind(this))},_clear:function(a){a&&a.preventDefault(),this._inputEl.value="",this._typeahead.selected=null,this._typeahead.clear(),this._onChange(),this._inputEl.focus(),this._clearEl.style.display="none",this._eventEmitter.emit("clear")},on:function(a,s){return this._eventEmitter.on(a,s),this},off:function(a,s){return this._eventEmitter.removeListener(a,s),this}},y8=i,y8}var a6e=i6e();const o6e=Pp(a6e),O$={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87
829],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};for(const e in O$)Object.freeze(O$[e]);const Mf=Object.freeze(O$),_G=Object.create(null);for(const e in Mf)Object.hasOwn(Mf,e)&&(_G[Mf[e]]=e);const So={to:{},get:{}};So.get=function(e){const t=e.slice(0,3).toLowerCase();let n,r;switch(t){case"hsl":{n=So.get.hsl(e),r="hsl";break}case"hwb":{n=So.get.hwb(e),r="hwb";break}default:{n=So.get.rgb(e),r="rgb";break}}return n?{model:r,value:n}:null};So.get.rgb=function(e){if(!e)return null;const t=/^#([a-f\d]{3,4})$/i,n=/^#([a-f\d]{6})([a-f\d]{2})?$/i,r=/^rgba?\(\s*([+-]?(?:\d*\.)?\d+(?:e\d+)?)(?=[\s,])\s*(?:,\s*)?([+-]?(?:\d*\.)?\d+(?:e\d+)?)(?=[\s,])\s*(?:,\s*)?([+-]?(?:\d*\.)?\d+(?:e\d+)?)\s*(?:[\s,|/]\s*([+-]?(?:\d*\.)?\d+(?:e\d+)?)(%?)\s*)?\)$/i,i=/^rgba?\(\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[\s,|/]\s*([+-]?[\d.]+)(%?)\s*)?\)$/i,a=/^(\w+)$/;let s=[0,0,0,1],o,f,m;if(o=e.match(n)){for(m=o[2],o=o[1],f=0;f<3;f++){const y=f*2;s[f]=Number.parseInt(o.slice(y,y+2),16)}m&&(s[3]=Number.parseInt(m,16)/255)}else if(o=e.match(t)){for(o=o[1],m=o[3],f=0;f<3;f++)s[f]=Number.parseInt(o[f]+o[f],16);m&&(s[3]=Number.parseInt(m+m,16)/255)}else if(o=e.match(r)){for(f=0;f<3;f++)s[f]=Number.parseFloat(o[f+1]);o[4]&&(s[3]=o[5]?Number.parseFloat(o[4])*.01:Number.parseFloat(o[4]))}else if(o=e.match(i)){for(f=0;f<3;f++)s[f]=Math.round(Number.parseFloat(o[f+1])*2.55);o[4]&&(s[3]=o[5]?Number.parseFloat(o[4])*.01:Number.parseFloat(o[4]))}else return(o=e.toLowerCase().match(a))?o[1]==="transparent"?[0,0,0,0]:Object.hasOwn(Mf,o[1])?(s=Mf[o[1]].slice(),s[3]=1,s):null:null;for(f=0;f<3;f++)s[f]=dg(s[f],0,255);return s[3]=dg(s[3],0,1),s};So.get.hsl=function(e){if(!e)return null;const t=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[,|/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:e[+-]?\d+)?)\s*)?\)$/i,n=e.match(t);if(n){const r=Number.parseFloat(n[4]),i=(Number.parseFloat(n[1])%360+360)%360,a=dg(Number.parseFloat(n[2]),0,100),s=dg(Number.parseFloat(n[3]),0,100),o=dg(Number.isNaN(r)?1:r,0,1);return[i,a,s,o]}return null};So.get.hwb=function(e){if(!e)return null;const t=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*[\s,]\s*([+-]?[\d.]+)%\s*[\s,]\s*([+-]?[\d.]+)%\s*(?:[\s,]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:e[+-]?\d+)?)\s*)?\)$/i,n=e.match(t);if(n){const r=Number.parseFloat(n[4]),i=(Number.parseFloat(n[1])%360+360)%360,a=dg(Number.parseFloat(n[2]),0,100),s=dg(Number.parseFloat(n[3]),0,100),o=dg(Number.isNaN(r)?1:r,0,1);return[i,a,s,o]}return null};So.to.hex=function(...e){return"#"+sS(e[0])+sS(e[1])+sS(e[2])+(e[3]<1?sS(Math.round(e[3]*255)):"")};So.to.rgb=function(...e){return e.length<4||e[3]===1?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"};So.to.rgb.percent=function(...e){const t=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),r=Math.round(e[2]/255*100);return e.length<4||e[3]===1?"rgb("+t+"%, "+n+"%, "+r+"%)":"rgba("+t+"%, "+n+"%, "+r+"%, "+e[3]+")"};So.to.hsl=function(...e){return e.length<4||e[3]===1?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"};So.to.hwb=function(...e){let t="";return e.length>=4&&e[3]!==1&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"};So.to.keyword=function(...e){return _G[e.slice(0,3)]};function dg(e,t,n){return Math.min(Math.max(t,e),n)}function sS(e){const t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}const bG={};for(const e of Object.keys(Mf))bG[Mf[e]]=e;const kn={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},oklab:{channels:3,labels:["okl","oka","okb"]},lch:{channels:3,labels:"lch"},oklch:{channels:3,labels:["okl","okc","okh"]},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}},fp=(6/29)**3;function u_(e){const t=e>.0031308?1.055*e**.4166666666666667-.055:e*12.92;return Math.min(Math.max(0,t),1)}function c_(e){return e>.04045?((e+.055)/1.055)**2.4:e/12.92}for(const e of Object.keys(kn)){if(!("channels"in kn[e]))throw new Error("missing channels property: "+e);if(!("labels"in kn[e]))throw new Error("missing channel labels property: "+e);if(kn[e].labels.length!==kn[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=kn[e];delete kn[e].channels,delete kn[e].labels,Object.defineProperty(kn[e],"channels",{value:t}
829),Object.defineProperty(kn[e],"labels",{value:n})}kn.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),a=Math.max(t,n,r),s=a-i;let o,f;switch(a){case i:{o=0;break}case t:{o=(n-r)/s;break}case n:{o=2+(r-t)/s;break}case r:{o=4+(t-n)/s;break}}o=Math.min(o*60,360),o<0&&(o+=360);const m=(i+a)/2;return a===i?f=0:m<=.5?f=s/(a+i):f=s/(2-a-i),[o,f*100,m*100]};kn.rgb.hsv=function(e){let t,n,r,i,a;const s=e[0]/255,o=e[1]/255,f=e[2]/255,m=Math.max(s,o,f),y=m-Math.min(s,o,f),b=function(T){return(m-T)/6/y+1/2};if(y===0)i=0,a=0;else{switch(a=y/m,t=b(s),n=b(o),r=b(f),m){case s:{i=r-n;break}case o:{i=1/3+t-r;break}case f:{i=2/3+n-t;break}}i<0?i+=1:i>1&&(i-=1)}return[i*360,a*100,m*100]};kn.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const i=kn.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[i,a*100,r*100]};kn.rgb.oklab=function(e){const t=c_(e[0]/255),n=c_(e[1]/255),r=c_(e[2]/255),i=Math.cbrt(.4122214708*t+.5363325363*n+.0514459929*r),a=Math.cbrt(.2119034982*t+.6806995451*n+.1073969566*r),s=Math.cbrt(.0883024619*t+.2817188376*n+.6299787005*r),o=.2104542553*i+.793617785*a-.0040720468*s,f=1.9779984951*i-2.428592205*a+.4505937099*s,m=.0259040371*i+.7827717662*a-.808675766*s;return[o*100,f*100,m*100]};kn.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(1-t,1-n,1-r),a=(1-t-i)/(1-i)||0,s=(1-n-i)/(1-i)||0,o=(1-r-i)/(1-i)||0;return[a*100,s*100,o*100,i*100]};function s6e(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}kn.rgb.keyword=function(e){const t=bG[e];if(t)return t;let n=Number.POSITIVE_INFINITY,r;for(const i of Object.keys(Mf)){const a=Mf[i],s=s6e(e,a);s<n&&(n=s,r=i)}return r};kn.keyword.rgb=function(e){return[...Mf[e]]};kn.rgb.xyz=function(e){const t=c_(e[0]/255),n=c_(e[1]/255),r=c_(e[2]/255),i=t*.4124564+n*.3575761+r*.1804375,a=t*.2126729+n*.7151522+r*.072175,s=t*.0193339+n*.119192+r*.9503041;return[i*100,a*100,s*100]};kn.rgb.lab=function(e){const t=kn.rgb.xyz(e);let n=t[0],r=t[1],i=t[2];n/=95.047,r/=100,i/=108.883,n=n>fp?n**(1/3):7.787*n+16/116,r=r>fp?r**(1/3):7.787*r+16/116,i=i>fp?i**(1/3):7.787*i+16/116;const a=116*r-16,s=500*(n-r),o=200*(r-i);return[a,s,o]};kn.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let i,a;if(n===0)return a=r*255,[a,a,a];const s=r<.5?r*(1+n):r+n-r*n,o=2*r-s,f=[0,0,0];for(let m=0;m<3;m++)i=t+1/3*-(m-1),i<0&&i++,i>1&&i--,6*i<1?a=o+(s-o)*6*i:2*i<1?a=s:3*i<2?a=o+(s-o)*(2/3-i)*6:a=o,f[m]=a*255;return f};kn.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,i=n;const a=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,i*=a<=1?a:2-a;const s=(r+n)/2,o=r===0?2*i/(a+i):2*n/(r+n);return[t,o*100,s*100]};kn.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const i=Math.floor(t)%6,a=t-Math.floor(t),s=255*r*(1-n),o=255*r*(1-n*a),f=255*r*(1-n*(1-a));switch(r*=255,i){case 0:return[r,f,s];case 1:return[o,r,s];case 2:return[s,r,f];case 3:return[s,o,r];case 4:return[f,s,r];case 5:return[r,s,o]}};kn.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,i=Math.max(r,.01);let a,s;s=(2-n)*r;const o=(2-n)*i;return a=n*i,a/=o<=1?o:2-o,a=a||0,s/=2,[t,a*100,s*100]};kn.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const i=n+r;let a;i>1&&(n/=i,r/=i);const s=Math.floor(6*t),o=1-r;a=6*t-s,(s&1)!==0&&(a=1-a);const f=n+a*(o-n);let m,y,b;switch(s){default:case 6:case 0:{m=o,y=f,b=n;break}case 1:{m=f,y=o,b=n;break}case 2:{m=n,y=o,b=f;break}case 3:{m=n,y=f,b=o;break}case 4:{m=f,y=n,b=o;break}case 5:{m=o,y=n,b=f;break}}return[m*255,y*255,b*255]};kn.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100,a=1-Math.min(1,t*(1-i)+i),s=1-Math.min(1,n*(1-i)+i),o=1-Math.min(1,r*(1-i)+i);return[a*255,s*255,o*255]};kn.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let i,a,s;return i=t*3.2404542+n*-1.5371385+r*-.4985314,a=t*-.969266+n*1.8760108+r*.041556,s=t*.0556434+n*-.2040259+r*1.0572252,i=u_(i),a=u_(a),s=u_(s),[i*255,a*255,s*255]};kn.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>fp?t**(1/3):7.787*t+16/116,n=n>fp?n**(1/3):7.787*n+16/116,r=r>fp?r**(1/3):7.787*r+16/116;const i=116*n-16,a=500*(t-n),s=200*(n-r);return[i,a,s]};kn.xyz.oklab=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,i=Math.cbrt(.8189330101*t+.3618667424*n-.1288597137*r),a=Math.cbrt(.0329845436*t+.9293118715*n+.0361456387*r),s=Math.cbrt(.0482003018*t+.2643662691*n+.633851707*r),o=.2104542553*i+.793617785*a-.0040720468*s,f=1.9779984951*i-2.428592205*a+.4505937099*s,m=.0259040371*i+.7827717662*a-.808675766*s;return[o*100,f*100,m*100]};kn.oklab.oklch=function(e){return kn.lab.lch(e)};kn.oklab.xyz=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,i=(.999999998*t+.396337792*n+.215803758*r)**3,a=(1.000000008*t-.105561342*n-.063854175*r)**3,s=(1.000000055*t-.089484182*n-1.291485538*r)**3,o=1.227013851*i-.55779998*a+.281256149*s,f=-.040580178*i+1.11225687*a-.071676679*s,m=-.076381285*i-.421481978*a+1.58616322*s;return[o*100,f*100,m*100]};kn.oklab.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,i=(t+.3963377774*n+.2158037573*r)**3,a=(t-.1055613458*n-.0638541728*r)**3,s=(t-.0894841775*n-1.291485548*r)**3,o=u_(4.0767416621*i-3.3077115913*a+.2309699292*s),f=u_(-1.2684380046*i+2.6097574011*a-.3413193965*s),m=u_(-.0041960863*i-.7034186147*a+1.707614701*s);return[o*255,f*255,m*255]};kn.oklch.oklab=function(e){return kn.lch.lab(e)};kn.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let i,a,s;a=(t+16)/116,i=n/500+a,s=a-r/200;const o=a**3,f=i**3,m=s**3;return a=o>fp?o:(a-16/116)/7.787,i=f>fp?f:(i-16/116)/7.787,s=m>fp?m:(s-16/116)/7.787,i*=95.047,a*=100,s*=108.883,[i,a,s]};kn.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let i;i=Math.atan2(r,n)*360/2/Math.PI,i<0&&(i+=360);const s=Math.sqrt(n*n+r*r);return[t,s,i]};kn.lch.lab=function(e){const t=e[0],n=e[1],i=e[2]/360*2*Math.PI,a=n*Math.cos(i),s=n*Math.sin(i);return[t,a,s]};kn.rgb.ansi16=function(e,t=null){const[n,r,i]=e;let a=t===null?kn.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),a===0)return 30;let s=30+(Math.round(i/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return a===2&&(s+=60),s};kn.hsv.ansi16=function(e){return kn.rgb.ansi16(kn.hsv.rgb(e),e[2])};kn.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];return t>>4===n>>4&&n>>4===r>>4?t<8?16:t>
829248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)};kn.ansi16.rgb=function(e){e=e[0];let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=(Math.trunc(e>50)+1)*.5,r=(t&1)*n*255,i=(t>>1&1)*n*255,a=(t>>2&1)*n*255;return[r,i,a]};kn.ansi256.rgb=function(e){if(e=e[0],e>=232){const a=(e-232)*10+8;return[a,a,a]}e-=16;let t;const n=Math.floor(e/36)/5*255,r=Math.floor((t=e%36)/6)/5*255,i=t%6/5*255;return[n,r,i]};kn.rgb.hex=function(e){const n=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".slice(n.length)+n};kn.hex.rgb=function(e){const t=e.toString(16).match(/[a-f\d]{6}|[a-f\d]{3}/i);if(!t)return[0,0,0];let n=t[0];t[0].length===3&&(n=[...n].map(o=>o+o).join(""));const r=Number.parseInt(n,16),i=r>>16&255,a=r>>8&255,s=r&255;return[i,a,s]};kn.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.max(Math.max(t,n),r),a=Math.min(Math.min(t,n),r),s=i-a;let o;const f=s<1?a/(1-s):0;return s<=0?o=0:i===t?o=(n-r)/s%6:i===n?o=2+(r-t)/s:o=4+(t-n)/s,o/=6,o%=1,[o*360,s*100,f*100]};kn.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let i=0;return r<1&&(i=(n-.5*r)/(1-r)),[e[0],r*100,i*100]};kn.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],r*100,i*100]};kn.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[r*255,r*255,r*255];const i=[0,0,0],a=t%1*6,s=a%1,o=1-s;let f=0;switch(Math.floor(a)){case 0:{i[0]=1,i[1]=s,i[2]=0;break}case 1:{i[0]=o,i[1]=1,i[2]=0;break}case 2:{i[0]=0,i[1]=1,i[2]=s;break}case 3:{i[0]=0,i[1]=o,i[2]=1;break}case 4:{i[0]=s,i[1]=0,i[2]=1;break}default:i[0]=1,i[1]=0,i[2]=o}return f=(1-n)*r,[(n*i[0]+f)*255,(n*i[1]+f)*255,(n*i[2]+f)*255]};kn.hcg.hsv=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);let i=0;return r>0&&(i=t/r),[e[0],i*100,r*100]};kn.hcg.hsl=function(e){const t=e[1]/100,r=e[2]/100*(1-t)+.5*t;let i=0;return r>0&&r<.5?i=t/(2*r):r>=.5&&r<1&&(i=t/(2*(1-r))),[e[0],i*100,r*100]};kn.hcg.hwb=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);return[e[0],(r-t)*100,(1-r)*100]};kn.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,i=r-t;let a=0;return i<1&&(a=(r-i)/(1-i)),[e[0],i*100,a*100]};kn.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};kn.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};kn.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};kn.gray.hsl=function(e){return[0,0,e[0]]};kn.gray.hsv=kn.gray.hsl;kn.gray.hwb=function(e){return[0,100,e[0]]};kn.gray.cmyk=function(e){return[0,0,0,e[0]]};kn.gray.lab=function(e){return[e[0],0,0]};kn.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255,r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".slice(r.length)+r};kn.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};function l6e(){const e={},t=Object.keys(kn);for(let{length:n}=t,r=0;r<n;r++)e[t[r]]={distance:-1,parent:null};return e}function u6e(e){const t=l6e(),n=[e];for(t[e].distance=0;n.length>0;){const r=n.pop(),i=Object.keys(kn[r]);for(let{length:a}=i,s=0;s<a;s++){const o=i[s],f=t[o];f.distance===-1&&(f.distance=t[r].distance+1,f.parent=r,n.unshift(o))}}return t}function c6e(e,t){return function(n){return t(e(n))}}function d6e(e,t){const n=[t[e].parent,e];let r=kn[t[e].parent][e],i=t[e].parent;for(;t[i].parent;)n.unshift(t[i].parent),r=c6e(kn[t[i].parent][i],r),i=t[i].parent;return r.conversion=n,r}function f6e(e){const t=u6e(e),n={},r=Object.keys(t);for(let{length:i}=r,a=0;a<i;a++){const s=r[a];t[s].parent!==null&&(n[s]=d6e(s,t))}return n}const Go={},h6e=Object.keys(kn);function p6e(e){const t=function(...n){const r=n[0];return r==null?r:(r.length>1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function m6e(e){const t=function(...n){const r=n[0];if(r==null)return r;r.length>1&&(n=r);const i=e(n);if(typeof i=="object")for(let{length:a}=i,s=0;s<a;s++)i[s]=Math.round(i[s]);return i};return"conversion"in e&&(t.conversion=e.conversion),t}for(const e of h6e){Go[e]={},Object.defineProperty(Go[e],"channels",{value:kn[e].channels}),Object.defineProperty(Go[e],"labels",{value:kn[e].labels});const t=f6e(e),n=Object.keys(t);for(const r of n){const i=t[r];Go[e][r]=m6e(i),Go[e][r].raw=p6e(i)}}const xG=["keyword","gray","hex"],R$={};for(const e of Object.keys(Go))R$[[...Go[e].labels].sort().join("")]=e;const B$={};function Na(e,t){if(!(this instanceof Na))return new Na(e,t);if(t&&t in xG&&(t=null),t&&!(t in Go))throw new Error("Unknown model: "+t);let n,r;if(e==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof Na)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if(typeof e=="string"){const i=So.get(e);if(i===null)throw new Error("Unable to parse color from string: "+e);this.model=i.model,r=Go[this.model].channels,this.color=i.value.slice(0,r),this.valpha=typeof i.value[r]=="number"?i.value[r]:1}else if(e.length>0){this.model=t||"rgb",r=Go[this.model].channels;const i=Array.prototype.slice.call(e,0,r);this.color=F$(i,r),this.valpha=typeof e[r]=="number"?e[r]:1}else if(typeof e=="number")this.model="rgb",this.color=[e>>16&255,e>>8&255,e&255],this.valpha=1;else{this.valpha=1;const i=Object.keys(e);"alpha"in e&&(i.splice(i.indexOf("alpha"),1),this.valpha=typeof e.alpha=="number"?e.alpha:0);const a=i.sort().join("");if(!(a in R$))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=R$[a];const{labels:s}=Go[this.model],o=[];for(n=0;n<s.length;n++)o.push(e[s[n]]);this.color=F$(o)}if(B$[this.model])for(r=Go[this.model].channels,n=0;n<r;n++){const i=B$[this.model][n];i&&(this.color[n]=i(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}Na.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(e){let t=this.model in So.to?this:this.rgb();t=t.round(typeof e=="number"?e:1);const n=t.valpha===1?t.color:[...t.color,this.valpha];return So.to[t.model](...n)}
829,percentString(e){const t=this.rgb().round(typeof e=="number"?e:1),n=t.valpha===1?t.color:[...t.color,this.valpha];return So.to.rgb.percent(...n)},array(){return this.valpha===1?[...this.color]:[...this.color,this.valpha]},object(){const e={},{channels:t}=Go[this.model],{labels:n}=Go[this.model];for(let r=0;r<t;r++)e[n[r]]=this.color[r];return this.valpha!==1&&(e.alpha=this.valpha),e},unitArray(){const e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,this.valpha!==1&&e.push(this.valpha),e},unitObject(){const e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,this.valpha!==1&&(e.alpha=this.valpha),e},round(e){return e=Math.max(e||0,0),new Na([...this.color.map(y6e(e)),this.valpha],this.model)},alpha(e){return e!==void 0?new Na([...this.color,Math.max(0,Math.min(1,e))],this.model):this.valpha},red:Ta("rgb",0,xo(255)),green:Ta("rgb",1,xo(255)),blue:Ta("rgb",2,xo(255)),hue:Ta(["hsl","hsv","hsl","hwb","hcg"],0,e=>(e%360+360)%360),saturationl:Ta("hsl",1,xo(100)),lightness:Ta("hsl",2,xo(100)),saturationv:Ta("hsv",1,xo(100)),value:Ta("hsv",2,xo(100)),chroma:Ta("hcg",1,xo(100)),gray:Ta("hcg",2,xo(100)),white:Ta("hwb",1,xo(100)),wblack:Ta("hwb",2,xo(100)),cyan:Ta("cmyk",0,xo(100)),magenta:Ta("cmyk",1,xo(100)),yellow:Ta("cmyk",2,xo(100)),black:Ta("cmyk",3,xo(100)),x:Ta("xyz",0,xo(95.047)),y:Ta("xyz",1,xo(100)),z:Ta("xyz",2,xo(108.833)),l:Ta("lab",0,xo(100)),a:Ta("lab",1),b:Ta("lab",2),keyword(e){return e!==void 0?new Na(e):Go[this.model].keyword(this.color)},hex(e){return e!==void 0?new Na(e):So.to.hex(...this.rgb().round().color)},hexa(e){if(e!==void 0)return new Na(e);const t=this.rgb().round().color;let n=Math.round(this.valpha*255).toString(16).toUpperCase();return n.length===1&&(n="0"+n),So.to.hex(...t)+n},rgbNumber(){const e=this.rgb().color;return(e[0]&255)<<16|(e[1]&255)<<8|e[2]&255},luminosity(){const e=this.rgb().color,t=[];for(const[n,r]of e.entries()){const i=r/255;t[n]=i<=.04045?i/12.92:((i+.055)/1.055)**2.4}return .2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){const t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level(e){const t=this.contrast(e);return t>=7?"AAA":t>=4.5?"AA":""},isDark(){const e=this.rgb().color;return(e[0]*2126+e[1]*7152+e[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){const e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){const t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){const t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){const t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){const t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){const t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){const t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){const e=this.rgb().color,t=e[0]*.3+e[1]*.59+e[2]*.11;return Na.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const t=this.hsl();let n=t.color[0];return n=(n+e)%360,n=n<0?360+n:n,t.color[0]=n,t},mix(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const n=e.rgb(),r=this.rgb(),i=t===void 0?.5:t,a=2*i-1,s=n.alpha()-r.alpha(),o=((a*s===-1?a:(a+s)/(1+a*s))+1)/2,f=1-o;return Na.rgb(o*n.red()+f*r.red(),o*n.green()+f*r.green(),o*n.blue()+f*r.blue(),n.alpha()*i+r.alpha()*(1-i))}};for(const e of Object.keys(Go)){if(xG.includes(e))continue;const{channels:t}=Go[e];Na.prototype[e]=function(...n){return this.model===e?new Na(this):n.length>0?new Na(n,e):new Na([...v6e(Go[this.model][e].raw(this.color)),this.valpha],e)},Na[e]=function(...n){let r=n[0];return typeof r=="number"&&(r=F$(n,t)),new Na(r,e)}}function g6e(e,t){return Number(e.toFixed(t))}function y6e(e){return function(t){return g6e(t,e)}}function Ta(e,t,n){e=Array.isArray(e)?e:[e];for(const r of e)(B$[r]||=[])[t]=n;return e=e[0],function(r){let i;return r!==void 0?(n&&(r=n(r)),i=this[e](),i.color[t]=r,i):(i=this[e]().color[t],n&&(i=n(i)),i)}}function xo(e){return function(t){return Math.max(0,Math.min(e,t))}}function v6e(e){return Array.isArray(e)?e:[e]}function F$(e,t){for(let n=0;n<t;n++)typeof e[n]!="number"&&(e[n]=0);return e}function UI(e,t,n={}){const r={type:"Feature"};return(n.id===0||n.id)&&(r.id=n.id),n.bbox&&(r.bbox=n.bbox),r.properties=t||{},r.geometry=e,r}function z$(e,t,n={}){if(!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(e.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!bB(e[0])||!bB(e[1]))throw new Error("coordinates must contain numbers");return UI({type:"Point",coordinates:e},t,n)}function HI(e,t,n={}
829){for(const i of e){if(i.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");if(i[i.length-1].length!==i[0].length)throw new Error("First and last Position are not equivalent.");for(let a=0;a<i[i.length-1].length;a++)if(i[i.length-1][a]!==i[0][a])throw new Error("First and last Position are not equivalent.")}return UI({type:"Polygon",coordinates:e},t,n)}function _6e(e,t,n={}){return UI({type:"MultiPolygon",coordinates:e},t,n)}function bB(e){return!isNaN(e)&&e!==null&&!Array.isArray(e)}function Lw(e,t,n){if(e!==null)for(var r,i,a,s,o,f,m,y=0,b=0,T,x=e.type,$=x==="FeatureCollection",A=x==="Feature",N=$?e.features.length:1,O=0;O<N;O++){m=$?e.features[O].geometry:A?e.geometry:e,T=m?m.type==="GeometryCollection":!1,o=T?m.geometries.length:1;for(var I=0;I<o;I++){var U=0,B=0;if(s=T?m.geometries[I]:m,s!==null){f=s.coordinates;var q=s.type;switch(y=n&&(q==="Polygon"||q==="MultiPolygon")?1:0,q){case null:break;case"Point":if(t(f,b,O,U,B)===!1)return!1;b++,U++;break;case"LineString":case"MultiPoint":for(r=0;r<f.length;r++){if(t(f[r],b,O,U,B)===!1)return!1;b++,q==="MultiPoint"&&U++}q==="LineString"&&U++;break;case"Polygon":case"MultiLineString":for(r=0;r<f.length;r++){for(i=0;i<f[r].length-y;i++){if(t(f[r][i],b,O,U,B)===!1)return!1;b++}q==="MultiLineString"&&U++,q==="Polygon"&&B++}q==="Polygon"&&U++;break;case"MultiPolygon":for(r=0;r<f.length;r++){for(B=0,i=0;i<f[r].length;i++){for(a=0;a<f[r][i].length-y;a++){if(t(f[r][i][a],b,O,U,B)===!1)return!1;b++}B++}U++}break;case"GeometryCollection":for(r=0;r<s.geometries.length;r++)if(Lw(s.geometries[r],t,n)===!1)return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function b6e(e,t){var n,r,i,a,s,o,f,m,y,b,T=0,x=e.type==="FeatureCollection",$=e.type==="Feature",A=x?e.features.length:1;for(n=0;n<A;n++){for(o=x?e.features[n].geometry:$?e.geometry:e,m=x?e.features[n].properties:$?e.properties:{},y=x?e.features[n].bbox:$?e.bbox:void 0,b=x?e.features[n].id:$?e.id:void 0,f=o?o.type==="GeometryCollection":!1,s=f?o.geometries.length:1,i=0;i<s;i++){if(a=f?o.geometries[i]:o,a===null){if(t(null,T,m,y,b)===!1)return!1;continue}switch(a.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":{if(t(a,T,m,y,b)===!1)return!1;break}case"GeometryCollection":{for(r=0;r<a.geometries.length;r++)if(t(a.geometries[r],T,m,y,b)===!1)return!1;break}default:throw new Error("Unknown Geometry Type")}}T++}}function x6e(e,t={}){if(e.bbox!=null&&t.recompute!==!0)return e.bbox;const n=[1/0,1/0,-1/0,-1/0];return Lw(e,r=>{n[0]>r[0]&&(n[0]=r[0]),n[1]>r[1]&&(n[1]=r[1]),n[2]<r[0]&&(n[2]=r[0]),n[3]<r[1]&&(n[3]=r[1])}),n}var lS=x6e;function w6e(e,t={}){const n=Number(e[0]),r=Number(e[1]),i=Number(e[2]),a=Number(e[3]);if(e.length===6)throw new Error("@turf/bbox-polygon does not support BBox with 6 positions");const s=[n,r];return HI([[s,[i,r],[i,a],[n,a],s]],t.properties,{bbox:e,id:t.id})}var xB=w6e,S6e=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,v8=Math.ceil,ec=Math.floor,kl="[BigNumber Error] ",wB=kl+"Number primitive has more than 15 significant digits: ",dd=1e14,Sr=14,_8=9007199254740991,b8=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],zm=1e7,jo=1e9;function wG(e){var t,n,r,i=I.prototype={constructor:I,toString:null,valueOf:null},a=new I(1),s=20,o=4,f=-7,m=21,y=-1e7,b=1e7,T=!1,x=1,$=0,A={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},N="0123456789abcdefghijklmnopqrstuvwxyz",O=!0;function I(Y,z){var H,K,ne,le,pe,ae,se,ce,ye=this;if(!(ye instanceof I))return new I(Y,z);if(z==null){if(Y&&Y._isBigNumber===!0){ye.s=Y.s,!Y.c||Y.e>b?ye.c=ye.e=null:Y.e<y?ye.c=[ye.e=0]:(ye.e=Y.e,ye.c=Y.c.slice());return}if((ae=typeof Y=="number")&&Y*0==0){if(ye.s=1/Y<0?(Y=-Y,-1):1,Y===~~Y){for(le=0,pe=Y;pe>=10;pe/=10,le++);le>b?ye.c=ye.e=null:(ye.e=le,ye.c=[Y]);return}ce=String(Y)}else{if(!S6e.test(ce=String(Y)))return r(ye,ce,ae);ye.s=ce.charCodeAt(0)==45?(ce=ce.slice(1),-1):1}(le=ce.indexOf("."))>-1&&(ce=ce.replace(".","")),(pe=ce.search(/e/i))>0?(le<0&&(le=pe),le+=+ce.slice(pe+1),ce=ce.substring(0,pe)):le<0&&(le=ce.length)}else{if(ga(z,2,N.length,"Base"),z==10&&O)return ye=new I(Y),Q(ye,s+ye.e+1,o);if(ce=String(Y),ae=typeof Y=="number"){if(Y*0!=0)return r(ye,ce,ae,z);if(ye.s=1/Y<0?(ce=ce.slice(1),-1):1,I.DEBUG&&ce.replace(/^0\.0*|\./,"").length>15)throw Error(wB+Y)}else ye.s=ce.charCodeAt(0)===45?(ce=ce.slice(1),-1):1;for(H=N.slice(0,z),le=pe=0,se=ce.length;pe<se;pe++)if(H.indexOf(K=ce.charAt(pe))<0){if(K=="."){if(pe>le){le=se;continue}}else if(!ne&&(ce==ce.toUpperCase()&&(ce=ce.toLowerCase())||ce==ce.toLowerCase()&&(ce=ce.toUpperCase()))){ne=!0,pe=-1,le=0;continue}return r(ye,String(Y),ae,z)}ae=!1,ce=n(ce,z,10,ye.s),(le=ce.indexOf("."))>-1?ce=ce.replace(".",""):le=ce.length}for(pe=0;ce.charCodeAt(pe)===48;pe++);for(se=ce.length;ce.charCodeAt(--se)===48;);if(ce=ce.slice(pe,++se)){if(se-=pe,ae&&I.DEBUG&&se>15&&(Y>_8||Y!==ec(Y)))throw Error(wB+ye.s*Y);if((le=le-pe-1)>b)ye.c=ye.e=null;else if(le<y)ye.c=[ye.e=0];else{if(ye.e=le,ye.c=[],pe=(le+1)%Sr,le<0&&(pe+=Sr),pe<se){for(pe&&ye.c.push(+ce.slice(0,pe)),se-=Sr;pe<se;)ye.c.push(+ce.slice(pe,pe+=Sr));pe=Sr-(ce=ce.slice(pe)).length}else pe-=se;for(;pe--;ce+="0");ye.c.push(+ce)}}else ye.c=[ye.e=0]}I.clone=wG,I.ROUND_UP=0,I.ROUND_DOWN=1,I.ROUND_CEIL=2,I.ROUND_FLOOR=3,I.ROUND_HALF_UP=4,I.ROUND_HALF_DOWN=5,I.ROUND_HALF_EVEN=6,I.ROUND_HALF_CEIL=7,I.ROUND_HALF_FLOOR=8,I.EUCLID=9,I.config=I.set=function(Y){var z,H;if(Y!=null)if(typeof Y=="object"){if(Y.hasOwnProperty(z="DECIMAL_PLACES")&&(H=Y[z],ga(H,0,jo,z),s=H),Y.hasOwnProperty(z="ROUNDING_MODE")&&(H=Y[z],ga(H,0,8,z),o=H),Y.hasOwnProperty(z="EXPONENTIAL_AT")&&(H=Y[z],H&&H.pop?(ga(H[0],-jo,0,z),ga(H[1],0,jo,z),f=H[0],m=H[1]):(ga(H,-jo,jo,z),f=-(m=H<0?-H:H))),Y.hasOwnProperty(z="RANGE"))if(H=Y[z],H&&H.pop)ga(H[0],-jo,-1,z),ga(H[1],1,jo,z),y=H[0],b=H[1];else if(ga(H,-jo,jo,z),H)y=-(b=H<0?-H:H);else throw Error(kl+z+" cannot be zero: "+H);if(Y.hasOwnProperty(z="CRYPTO"))if(H=Y[z],H===!!H)if(H)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))T=H;else throw T=!H,Error(kl+"crypto unavailable");else T=H;else throw Error(kl+z+" not true or false: "+H);if(Y.hasOwnProperty(z="MODULO_MODE")&&(H=Y[z],ga(H,0,9,z),x=H),Y.hasOwnProperty(z="POW_PRECISION")&&(H=Y[z],ga(H,0,jo,z),$=H),Y.hasOwnProperty(z="FORMAT"))if(H=Y[z],t
vendor: 17,217 bytes, line 829
829ypeof H=="object")A=H;else throw Error(kl+z+" not an object: "+H);if(Y.hasOwnProperty(z="ALPHABET"))if(H=Y[z],typeof H=="string"&&!/^.?$|[+\-.\s]|(.).*\1/.test(H))O=H.slice(0,10)=="0123456789",N=H;else throw Error(kl+z+" invalid: "+H)}else throw Error(kl+"Object expected: "+Y);return{DECIMAL_PLACES:s,ROUNDING_MODE:o,EXPONENTIAL_AT:[f,m],RANGE:[y,b],CRYPTO:T,MODULO_MODE:x,POW_PRECISION:$,FORMAT:A,ALPHABET:N}},I.isBigNumber=function(Y){if(!Y||Y._isBigNumber!==!0)return!1;if(!I.DEBUG)return!0;var z,H,K=Y.c,ne=Y.e,le=Y.s;e:if({}.toString.call(K)=="[object Array]"){if((le===1||le===-1)&&ne>=-jo&&ne<=jo&&ne===ec(ne)){if(K[0]===0){if(ne===0&&K.length===1)return!0;break e}if(z=(ne+1)%Sr,z<1&&(z+=Sr),String(K[0]).length==z){for(z=0;z<K.length;z++)if(H=K[z],H<0||H>=dd||H!==ec(H))break e;if(H!==0)return!0}}}else if(K===null&&ne===null&&(le===null||le===1||le===-1))return!0;throw Error(kl+"Invalid BigNumber: "+Y)},I.maximum=I.max=function(){return B(arguments,-1)},I.minimum=I.min=function(){return B(arguments,1)},I.random=(function(){var Y=9007199254740992,z=Math.random()*Y&2097151?function(){return ec(Math.random()*Y)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(H){var K,ne,le,pe,ae,se=0,ce=[],ye=new I(a);if(H==null?H=s:ga(H,0,jo),pe=v8(H/Sr),T)if(crypto.getRandomValues){for(K=crypto.getRandomValues(new Uint32Array(pe*=2));se<pe;)ae=K[se]*131072+(K[se+1]>>>11),ae>=9e15?(ne=crypto.getRandomValues(new Uint32Array(2)),K[se]=ne[0],K[se+1]=ne[1]):(ce.push(ae%1e14),se+=2);se=pe/2}else if(crypto.randomBytes){for(K=crypto.randomBytes(pe*=7);se<pe;)ae=(K[se]&31)*281474976710656+K[se+1]*1099511627776+K[se+2]*4294967296+K[se+3]*16777216+(K[se+4]<<16)+(K[se+5]<<8)+K[se+6],ae>=9e15?crypto.randomBytes(7).copy(K,se):(ce.push(ae%1e14),se+=7);se=pe/7}else throw T=!1,Error(kl+"crypto unavailable");if(!T)for(;se<pe;)ae=z(),ae<9e15&&(ce[se++]=ae%1e14);for(pe=ce[--se],H%=Sr,pe&&H&&(ae=b8[Sr-H],ce[se]=ec(pe/ae)*ae);ce[se]===0;ce.pop(),se--);if(se<0)ce=[le=0];else{for(le=-1;ce[0]===0;ce.splice(0,1),le-=Sr);for(se=1,ae=ce[0];ae>=10;ae/=10,se++);se<Sr&&(le-=Sr-se)}return ye.e=le,ye.c=ce,ye}})(),I.sum=function(){for(var Y=1,z=arguments,H=new I(z[0]);Y<z.length;)H=H.plus(z[Y++]);return H},n=(function(){var Y="0123456789";function z(H,K,ne,le){for(var pe,ae=[0],se,ce=0,ye=H.length;ce<ye;){for(se=ae.length;se--;ae[se]*=K);for(ae[0]+=le.indexOf(H.charAt(ce++)),pe=0;pe<ae.length;pe++)ae[pe]>ne-1&&(ae[pe+1]==null&&(ae[pe+1]=0),ae[pe+1]+=ae[pe]/ne|0,ae[pe]%=ne)}return ae.reverse()}return function(H,K,ne,le,pe){var ae,se,ce,ye,$e,Be,je,at,Pt=H.indexOf("."),Qe=s,nt=o;for(Pt>=0&&(ye=$,$=0,H=H.replace(".",""),at=new I(K),Be=at.pow(H.length-Pt),$=ye,at.c=z(Rh(Xu(Be.c),Be.e,"0"),10,ne,Y),at.e=at.c.length),je=z(H,K,ne,pe?(ae=N,Y):(ae=Y,N)),ce=ye=je.length;je[--ye]==0;je.pop());if(!je[0])return ae.charAt(0);if(Pt<0?--ce:(Be.c=je,Be.e=ce,Be.s=le,Be=t(Be,at,Qe,nt,ne),je=Be.c,$e=Be.r,ce=Be.e),se=ce+Qe+1,Pt=je[se],ye=ne/2,$e=$e||se<0||je[se+1]!=null,$e=nt<4?(Pt!=null||$e)&&(nt==0||nt==(Be.s<0?3:2)):Pt>ye||Pt==ye&&(nt==4||$e||nt==6&&je[se-1]&1||nt==(Be.s<0?8:7)),se<1||!je[0])H=$e?Rh(ae.charAt(1),-Qe,ae.charAt(0)):ae.charAt(0);else{if(je.length=se,$e)for(--ne;++je[--se]>ne;)je[se]=0,se||(++ce,je=[1].concat(je));for(ye=je.length;!je[--ye];);for(Pt=0,H="";Pt<=ye;H+=ae.charAt(je[Pt++]));H=Rh(H,ce,ae.charAt(0))}return H}})(),t=(function(){function Y(K,ne,le){var pe,ae,se,ce,ye=0,$e=K.length,Be=ne%zm,je=ne/zm|0;for(K=K.slice();$e--;)se=K[$e]%zm,ce=K[$e]/zm|0,pe=je*se+ce*Be,ae=Be*se+pe%zm*zm+ye,ye=(ae/le|0)+(pe/zm|0)+je*ce,K[$e]=ae%le;return ye&&(K=[ye].concat(K)),K}function z(K,ne,le,pe){var ae,se;if(le!=pe)se=le>pe?1:-1;else for(ae=se=0;ae<le;ae++)if(K[ae]!=ne[ae]){se=K[ae]>ne[ae]?1:-1;break}return se}function H(K,ne,le,pe){for(var ae=0;le--;)K[le]-=ae,ae=K[le]<ne[le]?1:0,K[le]=ae*pe+K[le]-ne[le];for(;!K[0]&&K.length>1;K.splice(0,1));}return function(K,ne,le,pe,ae){var se,ce,ye,$e,Be,je,at,Pt,Qe,nt,Ve,ct,zt,ut,At,Dt,Ot,Ee=K.s==ne.s?1:-1,Ye=K.c,it=ne.c;if(!Ye||!Ye[0]||!it||!it[0])return new I(!K.s||!ne.s||(Ye?it&&Ye[0]==it[0]:!it)?NaN:Ye&&Ye[0]==0||!it?Ee*0:Ee/0);for(Pt=new I(Ee),Qe=Pt.c=[],ce=K.e-ne.e,Ee=le+ce+1,ae||(ae=dd,ce=tc(K.e/Sr)-tc(ne.e/Sr),Ee=Ee/Sr|0),ye=0;it[ye]==(Ye[ye]||0);ye++);if(it[ye]>(Ye[ye]||0)&&ce--,Ee<0)Qe.push(1),$e=!0;else{for(ut=Ye.length,Dt=it.length,ye=0,Ee+=2,Be=ec(ae/(it[0]+1)),Be>1&&(it=Y(it,Be,ae),Ye=Y(Ye,Be,ae),Dt=it.length,ut=Ye.length),zt=Dt,nt=Ye.slice(0,Dt),Ve=nt.length;Ve<Dt;nt[Ve++]=0);Ot=it.slice(),Ot=[0].concat(Ot),At=it[0],it[1]>=ae/2&&At++;do{if(Be=0,se=z(it,nt,Dt,Ve),se<0){if(ct=nt[0],Dt!=Ve&&(ct=ct*ae+(nt[1]||0)),Be=ec(ct/At),Be>1)for(Be>=ae&&(Be=ae-1),je=Y(it,Be,ae),at=je.length,Ve=nt.length;z(je,nt,at,Ve)==1;)Be--,H(je,Dt<at?Ot:it,at,ae),at=je.length,se=1;else Be==0&&(se=Be=1),je=it.slice(),at=je.length;if(at<Ve&&(je=[0].concat(je)),H(nt,je,Ve,ae),Ve=nt.length,se==-1)for(;z(it,nt,Dt,Ve)<1;)Be++,H(nt,Dt<Ve?Ot:it,Ve,ae),Ve=nt.length}else se===0&&(Be++,nt=[0]);Qe[ye++]=Be,nt[0]?nt[Ve++]=Ye[zt]||0:(nt=[Ye[zt]],Ve=1)}while((zt++<ut||nt[0]!=null)&&Ee--);$e=nt[0]!=null,Qe[0]||Qe.splice(0,1)}if(ae==dd){for(ye=1,Ee=Qe[0];Ee>=10;Ee/=10,ye++);Q(Pt,le+(Pt.e=ye+ce*Sr-1)+1,pe,$e)}else Pt.e=ce,Pt.r=+$e;return Pt}})();function U(Y,z,H,K){var ne,le,pe,ae,se;if(H==null?H=o:ga(H,0,8),!Y.c)return Y.toString();if(ne=Y.c[0],pe=Y.e,z==null)se=Xu(Y.c),se=K==1||K==2&&(pe<=f||pe>=m)?cS(se,pe):Rh(se,pe,"0");else if(Y=Q(new I(Y),z,H),le=Y.e,se=Xu(Y.c),ae=se.length,K==1||K==2&&(z<=le||le<=f)){for(;ae<z;se+="0",ae++);se=cS(se,le)}else if(z-=pe+(K===2&&le>pe),se=Rh(se,le,"0"),le+1>ae){if(--z>0)for(se+=".";z--;se+="0");}else if(z+=le-ae,z>0)for(le+1==ae&&(se+=".");z--;se+="0");return Y.s<0&&ne?"-"+se:se}function B(Y,z){for(var H,K,ne=1,le=new I(Y[0]);ne<Y.length;ne++)K=new I(Y[ne]),(!K.s||(H=uy(le,K))===z||H===0&&le.s===z)&&(le=K);return le}function q(Y,z,H){for(var K=1,ne=z.length;!z[--ne];z.pop());for(ne=z[0];ne>=10;ne/=10,K++);return(H=K+H*Sr-1)>b?Y.c=Y.e=null:H<y?Y.c=[Y.e=0]:(Y.e=H,Y.c=z),Y}r=(function(){var Y=/^(-?)0([xbo])(?=\w[\w.]*$)/i,z=/^([^.]+)\.$/,H=/^\.([^.]+)$/,K=/^-?(Infinity|NaN)$/,ne=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(le,pe,ae,se){var ce,ye=ae?pe:pe.replace(ne,"");if(K.test(ye))le.s=isNaN(ye)?null:ye<0?-1:1;else{if(!ae&&(ye=ye.replace(Y,function($e,Be,je){return ce=(je=je.toLowerCase())=="x"?16:je=="b"?2:8,!se||se==ce?Be:$e}),se&&(ce=se,ye=ye.replace(z,"$1").replace(H,"0.$1")),pe!=ye))return new I(ye,ce);if(I.DEBUG)throw Error(kl+"Not a"+(se?" base "+se:"")+" number: "+pe);le.s=null}le.c=le.e=null}})();function Q(Y,z,H,K){var ne,le,pe,ae,se,ce,ye,$e=Y.c,Be=b8;if($e){e:{for(ne=1,ae=$e[0];ae>=10;ae/=10,ne++);if(le=z-ne,le<0)le+=Sr,pe=z,se=$e[ce=0],ye=ec(se/Be[ne-pe-1]%10);else if(ce=v8((le+1)/Sr),ce>=$e.length)if(K){for(;$e.length<=ce;$e.push(0));se=ye=0,ne=1,le%=Sr,pe=le-Sr+1}else break e;else{for(se=ae=$e[ce],ne=1;ae>=10;ae/=10,ne++);le%=Sr,pe=le-Sr+ne,ye=pe<0?0:ec(se/Be[ne-pe-1]%10)}if(K=K||z<0||$e[ce+1]!=null||(pe<0?se:se%Be[ne-pe-1]),K=H<4?(ye||K)&&(H==0||H==(Y.s<0?3:2)):ye>5||ye==5&&(H==4||K||H==6&&(le>0?pe>0?se/Be[ne-pe]:0:$e[ce-1])%10&1||H==(Y.s<0?8:7)),z<1||!$e[0])return $e.length=0,K?(z-=Y.e+1,$e[0]=Be[(Sr-z%Sr)%Sr],Y.e=-z||0):$e[0]=Y.e=0,Y;if(le==0?($e.length=ce,ae=1,ce--):($e.length=ce+1,ae=Be[Sr-le],$e[ce]=pe>0?ec(se/Be[ne-pe]%Be[pe])*ae:0),K)for(;;)if(ce==0){for(le=1,pe=$e[0];pe>=10;pe/=10,le++);for(pe=$e[0]+=ae,ae=1;pe>=10;pe/=10,ae++);le!=ae&&(Y.e++,$e[0]==dd&&($e[0]=1));break}else{if($e[ce]+=ae,$e[ce]!=dd)break;$e[ce--]=0,ae=1}for(le=$e.length;$e[--le]===0;$e.pop());}Y.e>b?Y.c=Y.e=null:Y.e<y&&(Y.c=[Y.e=0])}return Y}function ee(Y){var z,H=Y.e;return H===null?Y.toString():(z=Xu(Y.c),z=H<=f||H>=m?cS(z,H):Rh(z,H,"0"),Y.s<0?"-"+z:z)}return i.absoluteValue=i.abs=function(){var Y=new I(this);return Y.s<0&&(Y.s=1),Y},i.comparedTo=function(Y,z){return uy(this,new I(Y,z))},i.decimalPlaces=i.dp=function(Y,z){var H,K,ne,le=this;if(Y!=null)return ga(Y,0,jo),z==null?z=o:ga(z,0,8),Q(new I(le),Y+le.e+1,z);if(!(H=le.c))return null;if(K=((ne=H.length-1)-tc(this.e/Sr))*Sr,ne=H[ne])for(;ne%10==0;ne/=10,K--);return K<0&&(K=0),K},i.dividedBy=i.div=function(Y,z){return t(this,new I(Y,z),s,o)},i.dividedToIntegerBy=i.idiv=function(Y,z){return t(this,new I(Y,z),0,1)},i.exponentiatedBy=i.pow=function(Y,z){var H,K,ne,le,pe,ae,se,ce,ye,$e=this;if(Y=new I(Y),Y.c&&!Y.isInteger())throw Error(kl+"Exponent not an integer: "+ee(Y));if(z!=null&&(z=new I(z)),ae=Y.e>14,!$e.c||!$e.c[0]||$e.c[0]==1&&!$e.e&&$e.c.length==1||!Y.c||!Y.c[0])return ye=new I(Math.pow(+ee($e),ae?Y.s*(2-uS(Y)):+ee(Y))),z?ye.mod(z):ye;if(se=Y.s<0,z){if(z.c?!z.c[0]:!z.s)return new I(NaN);K=!se&&$e.isInteger()&&z.isInteger(),K&&($e=$e.mod(z))}else{if(Y.e>9&&($e.e>0||$e.e<-1||($e.e==0?$e.c[0]>1||ae&&$e.c[1]>=24e7:$e.c[0]<8e13||ae&&$e.c[0]<=9999975e7)))return le=$e.s<0&&uS(Y)?-0:0,$e.e>-1&&(le=1/le),new I(se?1/le:le);$&&(le=v8($/Sr+2))}for(ae?(H=new I(.5),se&&(Y.s=1),ce=uS(Y)):(ne=Math.abs(+ee(Y)),ce=ne%2),ye=new I(a);;){if(ce){if(ye=ye.times($e),!ye.c)break;le?ye.c.length>le&&(ye.c.length=le):K&&(ye=ye.mod(z))}if(ne){if(ne=ec(ne/2),ne===0)break;ce=ne%2}else if(Y=Y.times(H),Q(Y,Y.e+1,1),Y.e>14)ce=uS(Y);else{if(ne=+ee(Y),ne===0)break;ce=ne%2}$e=$e.times($e),le?$e.c&&$e.c.length>le&&($e.c.length=le):K&&($e=$e.mod(z))}return K?ye:(se&&(ye=a.div(ye)),z?ye.mod(z):le?Q(ye,$,o,pe):ye)},i.integerValue=function(Y){var z=new I(this);return Y==null?Y=o:ga(Y,0,8),Q(z,z.e+1,Y)},i.isEqualTo=i.eq=function(Y,z){return uy(this,new I(Y,z))===0},i.isFinite=function(){return!!this.c},i.isGreaterThan=i.gt=function(Y,z){return uy(this,new I(Y,z))>0},i.isGreaterThanOrEqualTo=i.gte=function(Y,z){return(z=uy(this,new I(Y,z)))===1||z===0},i.isInteger=function(){return!!this.c&&tc(this.e/Sr)>this.c.length-2},i.isLessThan=i.lt=function(Y,z){return uy(this,new I(Y,z))<0},i.isLessThanOrEqualTo=i.lte=function(Y,z){return(z=uy(this,new I(Y,z)))===-1||z===0},i.isNaN=function(){return!this.s},i.isNegative=function(){return this.s<0},i.isPositive=function(){return this.s>0},i.isZero=function(){return!!this.c&&this.c[0]==0},i.minus=function(Y,z){var H,K,ne,le,pe=this,ae=pe.s;if(Y=new I(Y,z),z=Y.s,!ae||!z)return new I(NaN);if(ae!=z)return Y.s=-z,pe.plus(Y);var se=pe.e/Sr,ce=Y.e/Sr,ye=pe.c,$e=Y.c;if(!se||!ce){if(!ye||!$e)return ye?(Y.s=-z,Y):new I($e?pe:NaN);if(!ye[0]||!$e[0])return $e[0]?(Y.s=-z,Y):new I(ye[0]?pe:o==3?-0:0)}if(se=tc(se),ce=tc(ce),ye=ye.slice(),ae=se-ce){for((le=ae<0)?(ae=-ae,ne=ye):(ce=se,ne=$e),ne.reverse(),z=ae;z--;ne.push(0));ne.reverse()}else for(K=(le=(ae=ye.length)<(z=$e.length))?ae:z,ae=z=0;z<K;z++)if(ye[z]!=$e[z]){le=ye[z]<$e[z];break}if(le&&(ne=ye,ye=$e,$e=ne,Y.s=-Y.s),z=(K=$e.length)-(H=ye.length),z>0)for(;z--;ye[H++]=0);for(z=dd-1;K>ae;){if(ye[--K]<$e[K]){for(H=K;H&&!ye[--H];ye[H]=z);--ye[H],ye[K]+=dd}ye[K]-=$e[K]}for(;ye[0]==0;ye.splice(0,1),--ce);return ye[0]?q(Y,ye,ce):(Y.s=o==3?-1:1,Y.c=[Y.e=0],Y)},i.modulo=i.mod=function(Y,z){var H,K,ne=this;return Y=new I(Y,z),!ne.c||!Y.s||Y.c&&!Y.c[0]?new I(NaN):!Y.c||ne.c&&!ne.c[0]?new I(ne):(x==9?(K=Y.s,Y.s=1,H=t(ne,Y,0,3),Y.s=K,H.s*=K):H=t(ne,Y,0,x),Y=ne.minus(H.times(Y)),!Y.c[0]&&x==1&&(Y.s=ne.s),Y)},i.multipliedBy=i.times=function(Y,z){var H,K,ne,le,pe,ae,se,ce,ye,$e,Be,je,at,Pt,Qe,nt=this,Ve=nt.c,ct=(Y=new I(Y,z)).c;if(!Ve||!ct||!Ve[0]||!ct[0])return!nt.s||!Y.s||Ve&&!Ve[0]&&!ct||ct&&!ct[0]&&!Ve?Y.c=Y.e=Y.s=null:(Y.s*=nt.s,!Ve||!ct?Y.c=Y.e=null:(Y.c=[0],Y.e=0)),Y;for(K=tc(nt.e/Sr)+tc(Y.e/Sr),Y.s*=nt.s,se=Ve.length,$e=ct.length,se<$e&&(at=Ve,Ve=ct,ct=at,ne=se,se=$e,$e=ne),ne=se+$e,at=[];ne--;at.push(0));for(Pt=dd,Qe=zm,ne=$e;--ne>=0;){for(H=0,Be=ct[ne]%Qe,je=ct[ne]/Qe|0,pe=se,le=ne+pe;le>ne;)ce=Ve[--pe]%Qe,ye=Ve[pe]/Qe|0,ae=je*ce+ye*Be,ce=Be*ce+ae%Qe*Qe+at[le]+H,H=(ce/Pt|0)+(ae/Qe|0)+je*ye,at[le--]=ce%Pt;at[le]=H}return H?++K:at.splice(0,1),q(Y,at,K)},i.negated=function(){var Y=new I(this);return Y.s=-Y.s||null,Y},i.plus=function(Y,z){var H,K=this,ne=K.s;if(Y=new I(Y,z),z=Y.s,!ne||!z)return new I(NaN);if(ne!=z)return Y.s=-z,K.minus(Y);var le=K.e/Sr,pe=Y.e/Sr,ae=K.c,se=Y.c;if(!le||!pe){if(!ae||!se)return new I(ne/0);if(!ae[0]||!se[0])return se[0]?Y:new I(ae[0]?K:ne*0)}if(le=tc(le),pe=tc(pe),ae=ae.slice(),ne=le-pe){for(ne>0?(pe=le,H=se):(ne=-ne,H=ae),H.reverse();ne--;H.push(0));H.reverse()}for(ne=ae.length,z=se.length,ne-z<0&&(H=se,se=ae,ae=H,z=ne),ne=0;z;)ne=(ae[--z]=ae[z]+se[z]+ne)/dd|0,ae[z]=dd===ae[z]?0:ae[z]%dd;return ne&&(ae=[ne].concat(ae),++pe),q(Y,ae,pe)},i.precision=i.sd=function(Y,z){var H,K,ne,le=this;if(Y!=null&&Y!==!!Y)return ga(Y,1,jo),z==null?z=o:ga(z,0,8),Q(new I(le),Y,z);if(!(H=le.c))return null;if(ne=H.length-1,K=ne*Sr+1,ne=H[ne]){for(;ne%10==0;ne/=10,K--);for(ne=H[0];ne>=10;ne/=10,K++);}return Y&&le.e+1>K&&(K=le.e+1),K},i.shiftedBy=function(Y){return ga(Y,-_8,_8),this.times("1e"+Y)},i.squareRoot=i.sqrt=function(){var Y,z,H,K,ne,le=this,pe=le.c,ae=le.s,se=le.e,ce=s+4,ye=new I("0.5");if(ae!==1||!pe||!pe[0])return new I(!ae||ae<0&&(!pe||pe[0])?NaN:pe?le:1/0);if(ae=Math.sqrt(+ee(le)),ae==0||ae==1/0?(z=Xu(pe),(z.length+se)%2==0&&(z+="0"),ae=Math.sqrt(+z),se=tc((se+1)/2)-(se<0||se%2),ae==1/0?z="5e"+se:(z=ae.toExponential(),z=z.slice(0,z.indexOf("e")+1)+se),H=new I(z)):H=new I(ae+""),H.c[0]){for(se=H.e,ae=se+ce,ae<3&&(ae=0);;)if(ne=H,H=ye.times(ne.plus(t(le,ne,ce,1))),Xu(ne.c).slice(0,ae)===(z=Xu(H.c)).slice(0,ae))if(H.e<se&&--ae,z=z.slice(ae-3,ae+1),z=="9999"||!K&&z=="4999"){if(!K&&(Q(ne,ne.e+s+2,0),ne.times(ne).eq(le))){H=ne;break}ce+=4,ae+=4,K=1}else{(!+z||!+z.slice(1)&&z.charAt(0)=="5")&&(Q(H,H.e+s+2,1),Y=!H.times(H).eq(le));break}}return Q(H,H.e+s+1,o,Y)},i.toExponential=function(Y,z){return Y!=null&&(ga(Y,0,jo),Y++),U(this,Y,z,1)},i.toFixed=function(Y,z){return Y!=null&&(ga(Y,0,jo),Y=Y+this.e+1),U(this,Y,z)},i.toFormat=function(Y,z,H){var K,ne=this;if(H==null)Y!=null&&z&&typeof z=="object"?(H=z,z=null):Y&&typeof Y=="object"?(H=Y,Y=z=null):H=A;else if(typeof H!="object")throw Error(kl+"Argument not an object: "+H);if(K=ne.toFixed(Y,z),ne.c){var le,pe=K.split("."),ae=+H.groupSize,se=+H.secondaryGroupSize,ce=H.groupSeparator||"",ye=pe[0],$e=pe[1],Be=ne.s<0,je=Be?ye.slice(1):ye,at=je.length;if(se&&(le=ae,ae=se,se=le,at-=le),ae>0&&at>0){for(le=at%ae||ae,ye=je.substr(0,le);le<at;le+=ae)ye+=ce+je.substr(le,ae);se>0&&(ye+=ce+je.slice(le)),Be&&(ye="-"+ye)}K=$e?ye+(H.decimalSeparator||"")+((se=+H.fractionGroupSize)?$e.replace(new RegExp("\\d{"+se+"}\\B","g"),"$&"+(H.fractionGroupSeparator||"")):$e):ye}return(H.prefix||"")+K+(H.suffix||"")},i.toFraction=function(Y){var z,H,K,ne,le,pe,ae,se,ce,ye,$e,Be,je=this,at=je.c;if(Y!=null&&(ae=new I(Y),!ae.isInteger()&&(ae.c||ae.s!==1)||ae.lt(a)))throw Error(kl+"Argument "+(ae.isInteger()?"out of range: ":"not an integer: ")+ee(ae));if(!at)return new I(je);for(z=new I(a),ce=H=new I(a),K=se=new I(a),Be=Xu(at),le=z.e=Be.length-je.e-1,z.c[0]=b8[(pe=le%Sr)<0?Sr+pe:pe],Y=!Y||ae.comparedTo(z)>0?le>0?z:ce:ae,pe=b,b=1/0,ae=new I(Be),se.c[0]=0;ye=t(ae,z,0,1),ne=H.plus(ye.times(K)),ne.comparedTo(Y)!=1;)H=K,K=ne,ce=se.plus(ye.times(ne=ce)),se=ne,z=ae.minus(ye.times(ne=z)),ae=ne;return ne=t(Y.minus(H),K,0,1),se=se.plus(ne.times(ce)),H=H.plus(ne.times(K)),se.s=ce.s=je.s,le=le*2,$e=t(ce,K,le,o).minus(je).abs().comparedTo(t(se,H,le,o).minus(je).abs())<1?[ce,K]:[se,H],b=pe,$e},i.toNumber=function(){return+ee(this)},i.toPrecision=function(Y,z){return Y!=null&&ga(Y,1,jo),U(this,Y,z,2)},i.toString=function(Y){var z,H=this,K=H.s,ne=H.e;return ne===null?K?(z="Infinity",K<0&&(z="-"+z)):z="NaN":(Y==null?z=ne<=f||ne>=m?cS(Xu(H.c),ne):Rh(Xu(H.c),ne,"0"):Y===10&&O?(H=Q(new I(H),s+ne+1,o),z=Rh(Xu(H.c),H.e,"0")):(ga(Y,2,N.length,"Base"),z=n(Rh(Xu(H.c),ne,"0"),10,Y,K,!0)),K<0&&H.c[0]&&(z="-"+z)),z},i.valueOf=i.toJSON=function(){return ee(this)},i._isBigNumber=!0,i[Symbol.toStringTag]="BigNumber",i[Symbol.for("nodejs.util.inspect.custom")]=i.valueOf,e!=null&&I.set(e),I}function tc(e){var t=e|0;return e>0||e===t?t:t-1}function Xu(e){for(var t,n,r=1,i=e.length,a=e[0]+"";r<i;){for(t=e[r++]+"",n=Sr-t.length;n--;t="0"+t);a+=t}for(i=a.length;a.charCodeAt(--i)===48;);return a.slice(0,i+1||1)}function uy(e,t){var n,r,i=e.c,a=t.c,s=e.s,o=t.s,f=e.e,m=t.e;if(!s||!o)return null;if(n=i&&!i[0],r=a&&!a[0],n||r)return n?r?0:-o:s;if(s!=o)return s;if(n=s<0,r=f==m,!i||!a)return r?0:!i^n?1:-1;if(!r)return f>m^n?1:-1;for(o=(f=i.length)<(m=a.length)?f:m,s=0;s<o;s++)if(i[s]!=a[s])return i[s]>a[s]^n?1:-1;return f==m?0:f>m^n?1:-1}function ga(e,t,n,r){if(e<t||e>n||e!==ec(e))throw Error(kl+(r||"Argument")+(typeof e=="number"?e<t||e>n?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function uS(e){var t=e.c.length-1;return tc(e.e/Sr)==t&&e.c[t]%2!=0}function cS(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function Rh(e,t,n){var r,i;if(t<0){for(i=n+".";++t;i+=n);e=i+e}else if(r=e.length,++t>r){for(i=n,t-=r;--t;i+=n);e+=i}else t<r&&(e=e.slice(0,t)+"."+e.slice(t));return e}var Tf=wG(),C6e=class{key;left=null;right=null;constructor(e){this.key=e}},$2=class extends C6e{constructor(e){super(e)}},T6e=class{size=0;modificationCount=0;splayCount=0;splay(e){const t=this.root;if(t==null)return this.compare(e,e),-1;let n=null,r=null,i=null,a=null,s=t;const o=this.compare;let f;for(;;)if(f=o(s.key,e),f>0){let m=s.left;if(m==null||(f=o(m.key,e),f>
8290&&(s.left=m.right,m.right=s,s=m,m=s.left,m==null)))break;n==null?r=s:n.left=s,n=s,s=m}else if(f<0){let m=s.right;if(m==null||(f=o(m.key,e),f<0&&(s.right=m.left,m.left=s,s=m,m=s.right,m==null)))break;i==null?a=s:i.right=s,i=s,s=m}else break;return i!=null&&(i.right=s.left,s.left=a),n!=null&&(n.left=s.right,s.right=r),this.root!==s&&(this.root=s,this.splayCount++),f}splayMin(e){let t=e,n=t.left;for(;n!=null;){const r=n;t.left=r.right,r.right=t,t=r,n=t.left}return t}splayMax(e){let t=e,n=t.right;for(;n!=null;){const r=n;t.right=r.left,r.left=t,t=r,n=t.right}return t}_delete(e){if(this.root==null||this.splay(e)!=0)return null;let n=this.root;const r=n,i=n.left;if(this.size--,i==null)this.root=n.right;else{const a=n.right;n=this.splayMax(i),n.right=a,this.root=n}return this.modificationCount++,r}addNewRoot(e,t){this.size++,this.modificationCount++;const n=this.root;if(n==null){this.root=e;return}t<0?(e.left=n,e.right=n.right,n.right=null):(e.right=n,e.left=n.left,n.left=null),this.root=e}_first(){const e=this.root;return e==null?null:(this.root=this.splayMin(e),this.root)}_last(){const e=this.root;return e==null?null:(this.root=this.splayMax(e),this.root)}clear(){this.root=null,this.size=0,this.modificationCount++}has(e){return this.validKey(e)&&this.splay(e)==0}defaultCompare(){return(e,t)=>e<t?-1:e>t?1:0}wrap(){return{getRoot:()=>this.root,setRoot:e=>{this.root=e},getSize:()=>this.size,getModificationCount:()=>this.modificationCount,getSplayCount:()=>this.splayCount,setSplayCount:e=>{this.splayCount=e},splay:e=>this.splay(e),has:e=>this.has(e)}}},W4=class j2 extends T6e{root=null;compare;validKey;constructor(t,n){super(),this.compare=t??this.defaultCompare(),this.validKey=n??(r=>r!=null&&r!=null)}delete(t){return this.validKey(t)?this._delete(t)!=null:!1}deleteAll(t){for(const n of t)this.delete(n)}forEach(t){const n=this[Symbol.iterator]();let r;for(;r=n.next(),!r.done;)t(r.value,r.value,this)}add(t){const n=this.splay(t);return n!=0&&this.addNewRoot(new $2(t),n),this}addAndReturn(t){const n=this.splay(t);return n!=0&&this.addNewRoot(new $2(t),n),this.root.key}addAll(t){for(const n of t)this.add(n)}isEmpty(){return this.root==null}isNotEmpty(){return this.root!=null}single(){if(this.size==0)throw"Bad state: No element";if(this.size>1)throw"Bad state: Too many element";return this.root.key}first(){if(this.size==0)throw"Bad state: No element";return this._first().key}last(){if(this.size==0)throw"Bad state: No element";return this._last().key}lastBefore(t){if(t==null)throw"Invalid arguments(s)";if(this.root==null)return null;if(this.splay(t)<0)return this.root.key;let r=this.root.left;if(r==null)return null;let i=r.right;for(;i!=null;)r=i,i=r.right;return r.key}firstAfter(t){if(t==null)throw"Invalid arguments(s)";if(this.root==null)return null;if(this.splay(t)>0)return this.root.key;let r=this.root.right;if(r==null)return null;let i=r.left;for(;i!=null;)r=i,i=r.left;return r.key}retainAll(t){const n=new j2(this.compare,this.validKey),r=this.modificationCount;for(const i of t){if(r!=this.modificationCount)throw"Concurrent modification during iteration.";this.validKey(i)&&this.splay(i)==0&&n.add(this.root.key)}n.size!=this.size&&(this.root=n.root,this.size=n.size,this.modificationCount++)}lookup(t){return!this.validKey(t)||this.splay(t)!=0?null:this.root.key}intersection(t){const n=new j2(this.compare,this.validKey);for(const r of this)t.has(r)&&n.add(r);return n}difference(t){const n=new j2(this.compare,this.validKey);for(const r of this)t.has(r)||n.add(r);return n}union(t){const n=this.clone();return n.addAll(t),n}clone(){const t=new j2(this.compare,this.validKey);return t.size=this.size,t.root=this.copyNode(this.root),t}copyNode(t){if(t==null)return null;function n(i,a){let s,o;do{if(s=i.left,o=i.right,s!=null){const f=new $2(s.key);a.left=f,n(s,f)}if(o!=null){const f=new $2(o.key);a.right=f,i=o,a=f}}while(o!=null)}const r=new $2(t.key);return n(t,r),r}toSet(){return this.clone()}entries(){return new E6e(this.wrap())}keys(){return this[Symbol.iterator]()}values(){return this[Symbol.iterator]()}[Symbol.iterator](){return new k6e(this.wrap())}[Symbol.toStringTag]="[object Set]"},SG=class{tree;path=new Array;modificationCount=null;splayCount;constructor(e){this.tree=e,this.splayCount=e.getSplayCount()}[Symbol.iterator](){return this}next(){return this.moveNext()?{done:!1,value:this.current()}:{done:!0,value:null}}current(){if(!this.path.length)return null;const e=this.path[this.path.length-1];return this.getValue(e)}rebuildPath(e){this.path.splice(0,this.path.length),this.tree.splay(e),this.path.push(this.tree.getRoot()),this.splayCount=this.tree.getSplayCount()}findLeftMostDescendent(e){for(;e!=null;)this.path.push(e),e=e.left}moveNext(){if(this.modificationCount!=this.tree.getModificationCount()){if(this.modificationCount==null){this.modificationCount=this.tree.getModificationCount();let n=this.tree.getRoot();for(;n!=null;)this.path.push(n),n=n.left;return this.path.length>0}throw"Concurrent modification during iteration."}if(!this.path.length)return!1;this.splayCount!=this.tree.getSplayCount()&&this.rebuildPath(this.path[this.path.length-1].key);let e=this.path[this.path.length-1],t=e.right;if(t!=null){for(;t!=null;)this.path.push(t),t=t.left;return!0}for(this.path.pop();this.path.length&&this.path[this.path.length-1].right===e;)e=this.path.pop();return this.path.length>0}},k6e=class extends SG{getValue(e){return e.key}},E6e=class extends SG{getValue(e){return[e.key,e.key]}},CG=e=>()=>e,N$=e=>{const t=e?(n,r)=>r.minus(n).abs().isLessThanOrEqualTo(e):CG(!1);return(n,r)=>t(n,r)?0:n.comparedTo(r)};function P6e(e){const t=e?(n,r,i,a,s)=>n.exponentiatedBy(2).isLessThanOrEqualTo(a.minus(r).exponentiatedBy(2).plus(s.minus(i).exponentiatedBy(2)).times(e)):CG(!1);return(n,r,i)=>{const a=n.x,s=n.y,o=i.x,f=i.y,m=s.minus(f).times(r.x.minus(o)).minus(a.minus(o).times(r.y.minus(f)));return t(m,a,s,o,f)?0:m.comparedTo(0)}}var $6e=e=>e,M6e=e=>{if(e){const t=new W4(N$(e)),n=new W4(N$(e)),r=(a,s)=>s.addAndReturn(a),i=a=>({x:r(a.x,t),y:r(a.y,n)});return i({x:new Tf(0),y:new Tf(0)}),i}return $6e},V$=e=>({set:t=>{Cp=V$(t)},reset:()=>V$(e),compare:N$(e),snap:M6e(e),orient:P6e(e)}),Cp=V$(),M2=(e,t)=>
829e.ll.x.isLessThanOrEqualTo(t.x)&&t.x.isLessThanOrEqualTo(e.ur.x)&&e.ll.y.isLessThanOrEqualTo(t.y)&&t.y.isLessThanOrEqualTo(e.ur.y),q$=(e,t)=>{if(t.ur.x.isLessThan(e.ll.x)||e.ur.x.isLessThan(t.ll.x)||t.ur.y.isLessThan(e.ll.y)||e.ur.y.isLessThan(t.ll.y))return null;const n=e.ll.x.isLessThan(t.ll.x)?t.ll.x:e.ll.x,r=e.ur.x.isLessThan(t.ur.x)?e.ur.x:t.ur.x,i=e.ll.y.isLessThan(t.ll.y)?t.ll.y:e.ll.y,a=e.ur.y.isLessThan(t.ur.y)?e.ur.y:t.ur.y;return{ll:{x:n,y:i},ur:{x:r,y:a}}},jS=(e,t)=>e.x.times(t.y).minus(e.y.times(t.x)),TG=(e,t)=>e.x.times(t.x).plus(e.y.times(t.y)),G4=e=>TG(e,e).sqrt(),A6e=(e,t,n)=>{const r={x:t.x.minus(e.x),y:t.y.minus(e.y)},i={x:n.x.minus(e.x),y:n.y.minus(e.y)};return jS(i,r).div(G4(i)).div(G4(r))},I6e=(e,t,n)=>{const r={x:t.x.minus(e.x),y:t.y.minus(e.y)},i={x:n.x.minus(e.x),y:n.y.minus(e.y)};return TG(i,r).div(G4(i)).div(G4(r))},SB=(e,t,n)=>t.y.isZero()?null:{x:e.x.plus(t.x.div(t.y).times(n.minus(e.y))),y:n},CB=(e,t,n)=>t.x.isZero()?null:{x:n,y:e.y.plus(t.y.div(t.x).times(n.minus(e.x)))},D6e=(e,t,n,r)=>{if(t.x.isZero())return CB(n,r,e.x);if(r.x.isZero())return CB(e,t,n.x);if(t.y.isZero())return SB(n,r,e.y);if(r.y.isZero())return SB(e,t,n.y);const i=jS(t,r);if(i.isZero())return null;const a={x:n.x.minus(e.x),y:n.y.minus(e.y)},s=jS(a,t).div(i),o=jS(a,r).div(i),f=e.x.plus(o.times(t.x)),m=n.x.plus(s.times(r.x)),y=e.y.plus(o.times(t.y)),b=n.y.plus(s.times(r.y)),T=f.plus(m).div(2),x=y.plus(b).div(2);return{x:T,y:x}},xf=class kG{point;isLeft;segment;otherSE;consumedBy;static compare(t,n){const r=kG.comparePoints(t.point,n.point);return r!==0?r:(t.point!==n.point&&t.link(n),t.isLeft!==n.isLeft?t.isLeft?1:-1:Y4.compare(t.segment,n.segment))}static comparePoints(t,n){return t.x.isLessThan(n.x)?-1:t.x.isGreaterThan(n.x)?1:t.y.isLessThan(n.y)?-1:t.y.isGreaterThan(n.y)?1:0}constructor(t,n){t.events===void 0?t.events=[this]:t.events.push(this),this.point=t,this.isLeft=n}link(t){if(t.point===this.point)throw new Error("Tried to link already linked events");const n=t.point.events;for(let r=0,i=n.length;r<i;r++){const a=n[r];this.point.events.push(a),a.point=this.point}this.checkForConsuming()}checkForConsuming(){const t=this.point.events.length;for(let n=0;n<t;n++){const r=this.point.events[n];if(r.segment.consumedBy===void 0)for(let i=n+1;i<t;i++){const a=this.point.events[i];a.consumedBy===void 0&&r.otherSE.point.events===a.otherSE.point.events&&r.segment.consume(a.segment)}}}getAvailableLinkedEvents(){const t=[];for(let n=0,r=this.point.events.length;n<r;n++){const i=this.point.events[n];i!==this&&!i.segment.ringOut&&i.segment.isInResult()&&t.push(i)}return t}getLeftmostComparator(t){const n=new Map,r=i=>{const a=i.otherSE;n.set(i,{sine:A6e(this.point,t.point,a.point),cosine:I6e(this.point,t.point,a.point)})};return(i,a)=>{n.has(i)||r(i),n.has(a)||r(a);const{sine:s,cosine:o}=n.get(i),{sine:f,cosine:m}=n.get(a);return s.isGreaterThanOrEqualTo(0)&&f.isGreaterThanOrEqualTo(0)?o.isLessThan(m)?1:o.isGreaterThan(m)?-1:0:s.isLessThan(0)&&f.isLessThan(0)?o.isLessThan(m)?-1:o.isGreaterThan(m)?1:0:f.isLessThan(s)?-1:f.isGreaterThan(s)?1:0}}},L6e=class j${events;poly;_isExteriorRing;_enclosingRing;static factory(t){const n=[];for(let r=0,i=t.length;r<i;r++){const a=t[r];if(!a.isInResult()||a.ringOut)continue;let s=null,o=a.leftSE,f=a.rightSE;const m=[o],y=o.point,b=[];for(;s=o,o=f,m.push(o),o.point!==y;)for(;;){const T=o.getAvailableLinkedEvents();if(T.length===0){const A=m[0].point,N=m[m.length-1].point;throw new Error(`Unable to complete output ring starting at [${A.x}, ${A.y}]. Last matching segment found ends at [${N.x}, ${N.y}].`)}if(T.length===1){f=T[0].otherSE;break}let x=null;for(let A=0,N=b.length;A<N;A++)if(b[A].point===o.point){x=A;break}if(x!==null){const A=b.splice(x)[0],N=m.splice(A.index);N.unshift(N[0].otherSE),n.push(new j$(N.reverse()));continue}b.push({index:m.length,point:o.point});const $=o.getLeftmostComparator(s);f=T.sort($)[0].otherSE;break}n.push(new j$(m))}return n}constructor(t){this.events=t;for(let n=0,r=t.length;n<r;n++)t[n].segment.ringOut=this;this.poly=null}getGeom(){let t=this.events[0].point;const n=[t];for(let m=1,y=this.events.length-1;m<y;m++){const b=this.events[m].point,T=this.events[m+1].point;Cp.orient(b,t,T)!==0&&(n.push(b),t=b)}if(n.length===1)return null;const r=n[0],i=n[1];Cp.orient(r,t,i)===0&&n.shift(),n.push(n[0]);const a=this.isExteriorRing()?1:-1,s=this.isExteriorRing()?0:n.length-1,o=this.isExteriorRing()?n.length:-1,f=[];for(let m=s;m!=o;m+=a)f.push([n[m].x.toNumber(),n[m].y.toNumber()]);return f}isExteriorRing(){if(this._isExteriorRing===void 0){const t=this.enclosingRing();this._isExteriorRing=t?!t.isExteriorRing():!0}return this._isExteriorRing}enclosingRing(){return this._enclosingRing===void 0&&(this._enclosingRing=this._calcEnclosingRing()),this._enclosingRing}_calcEnclosingRing(){let t=this.events[0];for(let i=1,a=this.events.length;i<a;i++){const s=this.events[i];xf.compare(t,s)>0&&(t=s)}let n=t.segment.prevInResult(),r=n?n.prevInResult():null;for(;;){if(!n)return null;if(!r)return n.ringOut;if(r.ringOut!==n.ringOut)return r.ringOut?.enclosingRing()!==n.ringOut?n.ringOut:n.ringOut?.enclosingRing();n=r.prevInResult(),r=n?n.prevInResult():null}}},TB=class{exteriorRing;interiorRings;constructor(e){this.exteriorRing=e,e.poly=this,this.interiorRings=[]}addInterior(e){this.interiorRings.push(e),e.poly=this}getGeom(){const e=this.exteriorRing.getGeom();if(e===null)return null;const t=[e];for(let n=0,r=this.interiorRings.length;n<r;n++){const i=this.interiorRings[n].getGeom();i!==null&&t.push(i)}return t}},O6e=class{rings;polys;constructor(e){this.rings=e,this.polys=this._composePolys(e)}getGeom(){const e=[];for(let t=0,n=this.polys.length;t<n;t++){const r=this.polys[t].getGeom();r!==null&&e.push(r)}return e}_composePolys(e){const t=[];for(let n=0,r=e.length;n<r;n++){const i=e[n];if(!i.poly)if(i.isExteriorRing())t.push(new TB(i));else{const a=i.enclosingRing();
829a?.poly||t.push(new TB(a)),a?.poly?.addInterior(i)}}return t}},R6e=class{queue;tree;segments;constructor(e,t=Y4.compare){this.queue=e,this.tree=new W4(t),this.segments=[]}process(e){const t=e.segment,n=[];if(e.consumedBy)return e.isLeft?this.queue.delete(e.otherSE):this.tree.delete(t),n;e.isLeft&&this.tree.add(t);let r=t,i=t;do r=this.tree.lastBefore(r);while(r!=null&&r.consumedBy!=null);do i=this.tree.firstAfter(i);while(i!=null&&i.consumedBy!=null);if(e.isLeft){let a=null;if(r){const o=r.getIntersection(t);if(o!==null&&(t.isAnEndpoint(o)||(a=o),!r.isAnEndpoint(o))){const f=this._splitSafely(r,o);for(let m=0,y=f.length;m<y;m++)n.push(f[m])}}let s=null;if(i){const o=i.getIntersection(t);if(o!==null&&(t.isAnEndpoint(o)||(s=o),!i.isAnEndpoint(o))){const f=this._splitSafely(i,o);for(let m=0,y=f.length;m<y;m++)n.push(f[m])}}if(a!==null||s!==null){let o=null;a===null?o=s:s===null?o=a:o=xf.comparePoints(a,s)<=0?a:s,this.queue.delete(t.rightSE),n.push(t.rightSE);const f=t.split(o);for(let m=0,y=f.length;m<y;m++)n.push(f[m])}n.length>0?(this.tree.delete(t),n.push(e)):(this.segments.push(t),t.prev=r)}else{if(r&&i){const a=r.getIntersection(i);if(a!==null){if(!r.isAnEndpoint(a)){const s=this._splitSafely(r,a);for(let o=0,f=s.length;o<f;o++)n.push(s[o])}if(!i.isAnEndpoint(a)){const s=this._splitSafely(i,a);for(let o=0,f=s.length;o<f;o++)n.push(s[o])}}}this.tree.delete(t)}return n}_splitSafely(e,t){this.tree.delete(e);const n=e.rightSE;this.queue.delete(n);const r=e.split(t);return r.push(n),e.consumedBy===void 0&&this.tree.add(e),r}},B6e=class{type;numMultiPolys;
829run(e,t,n){U2.type=e;const r=[new EB(t,!0)];for(let m=0,y=n.length;m<y;m++)r.push(new EB(n[m],!1));if(U2.numMultiPolys=r.length,U2.type==="difference"){const m=r[0];let y=1;for(;y<r.length;)q$(r[y].bbox,m.bbox)!==null?y++:r.splice(y,1)}if(U2.type==="intersection")for(let m=0,y=r.length;m<y;m++){const b=r[m];for(let T=m+1,x=r.length;T<x;T++)if(q$(b.bbox,r[T].bbox)===null)return[]}const i=new W4(xf.compare);for(let m=0,y=r.length;m<y;m++){const b=r[m].getSweepEvents();for(let T=0,x=b.length;T<x;T++)i.add(b[T])}const a=new R6e(i);let s=null;for(i.size!=0&&(s=i.first(),i.delete(s));s;){const m=a.process(s);for(let y=0,b=m.length;y<b;y++){const T=m[y];T.consumedBy===void 0&&i.add(T)}i.size!=0?(s=i.first(),i.delete(s)):s=null}Cp.reset();const o=L6e.factory(a.segments);return new O6e(o).getGeom()}},U2=new B6e,U$=U2,F6e=0,Y4=class US{id;leftSE;rightSE;rings;windings;ringOut;consumedBy;prev;_prevInResult;_beforeState;_afterState;_isInResult;static compare(t,n){const r=t.leftSE.point.x,i=n.leftSE.point.x,a=t.rightSE.point.x,s=n.rightSE.point.x;if(s.isLessThan(r))return 1;if(a.isLessThan(i))return-1;const o=t.leftSE.point.y,f=n.leftSE.point.y,m=t.rightSE.point.y,y=n.rightSE.point.y;if(r.isLessThan(i)){if(f.isLessThan(o)&&f.isLessThan(m))return 1;if(f.isGreaterThan(o)&&f.isGreaterThan(m))return-1;const b=t.comparePoint(n.leftSE.point);if(b<0)return 1;if(b>0)return-1;const T=n.comparePoint(t.rightSE.point);return T!==0?T:-1}if(r.isGreaterThan(i)){if(o.isLessThan(f)&&o.isLessThan(y))return-1;if(o.isGreaterThan(f)&&o.isGreaterThan(y))return 1;const b=n.comparePoint(t.leftSE.point);if(b!==0)return b;const T=t.comparePoint(n.rightSE.point);return T<0?1:T>0?-1:1}if(o.isLessThan(f))return-1;if(o.isGreaterThan(f))return 1;if(a.isLessThan(s)){const b=n.comparePoint(t.rightSE.point);if(b!==0)return b}if(a.isGreaterThan(s)){const b=t.comparePoint(n.rightSE.point);if(b<0)return 1;if(b>0)return-1}if(!a.eq(s)){const b=m.minus(o),T=a.minus(r),x=y.minus(f),$=s.minus(i);if(b.isGreaterThan(T)&&x.isLessThan($))return 1;if(b.isLessThan(T)&&x.isGreaterThan($))return-1}return a.isGreaterThan(s)?1:a.isLessThan(s)||m.isLessThan(y)?-1:m.isGreaterThan(y)?1:t.id<n.id?-1:t.id>n.id?1:0}constructor(t,n,r,i){this.id=++F6e,this.leftSE=t,t.segment=this,t.otherSE=n,this.rightSE=n,n.segment=this,n.otherSE=t,this.rings=r,this.windings=i}static fromRing(t,n,r){let i,a,s;const o=xf.comparePoints(t,n);if(o<0)i=t,a=n,s=1;else if(o>0)i=n,a=t,s=-1;else throw new Error(`Tried to create degenerate segment at [${t.x}, ${t.y}]`);const f=new xf(i,!0),m=new xf(a,!1);return new US(f,m,[r],[s])}replaceRightSE(t){this.rightSE=t,this.rightSE.segment=this,this.rightSE.otherSE=this.leftSE,this.leftSE.otherSE=this.rightSE}bbox(){const t=this.leftSE.point.y,n=this.rightSE.point.y;return{ll:{x:this.leftSE.point.x,y:t.isLessThan(n)?t:n},ur:{x:this.rightSE.point.x,y:t.isGreaterThan(n)?t:n}}}vector(){return{x:this.rightSE.point.x.minus(this.leftSE.point.x),y:this.rightSE.point.y.minus(this.leftSE.point.y)}}isAnEndpoint(t){return t.x.eq(this.leftSE.point.x)&&t.y.eq(this.leftSE.point.y)||t.x.eq(this.rightSE.point.x)&&t.y.eq(this.rightSE.point.y)}comparePoint(t){return Cp.orient(this.leftSE.point,t,this.rightSE.point)}getIntersection(t){const n=this.bbox(),r=t.bbox(),i=q$(n,r);if(i===null)return null;const a=this.leftSE.point,s=this.rightSE.point,o=t.leftSE.point,f=t.rightSE.point,m=M2(n,o)&&this.comparePoint(o)===0,y=M2(r,a)&&t.comparePoint(a)===0,b=M2(n,f)&&this.comparePoint(f)===0,T=M2(r,s)&&t.comparePoint(s)===0;if(y&&m)return T&&!b?s:!T&&b?f:null;if(y)return b&&a.x.eq(f.x)&&a.y.eq(f.y)?null:a;if(m)return T&&s.x.eq(o.x)&&s.y.eq(o.y)?null:o;if(T&&b)return null;if(T)return s;if(b)return f;const x=D6e(a,this.vector(),o,t.vector());return x===null||!M2(i,x)?null:Cp.snap(x)}split(t){const n=[],r=t.events!==void 0,i=new xf(t,!0),a=new xf(t,!1),s=this.rightSE;this.replaceRightSE(a),n.push(a),n.push(i);const o=new US(i,s,this.rings.slice(),this.windings.slice());return xf.comparePoints(o.leftSE.point,o.rightSE.point)>0&&o.swapEvents(),xf.comparePoints(this.leftSE.point,this.rightSE.point)>0&&this.swapEvents(),r&&(i.checkForConsuming(),a.checkForConsuming()),n}swapEvents(){const t=this.rightSE;this.rightSE=this.leftSE,this.leftSE=t,this.leftSE.isLeft=!0,this.rightSE.isLeft=!1;for(let n=0,r=this.windings.length;n<r;n++)this.windings[n]*=-1}consume(t){let n=this,r=t;for(;n.consumedBy;)n=n.consumedBy;for(;r.consumedBy;)r=r.consumedBy;const i=US.compare(n,r);if(i!==0){if(i>0){const a=n;n=r,r=a}if(n.prev===r){const a=n;n=r,r=a}for(let a=0,s=r.rings.length;a<s;a++){const o=r.rings[a],f=r.windings[a],m=n.rings.indexOf(o);m===-1?(n.rings.push(o),n.windings.push(f)):n.windings[m]+=f}r.rings=null,r.windings=null,r.consumedBy=n,r.leftSE.consumedBy=n.leftSE,r.rightSE.consumedBy=n.rightSE}}prevInResult(){return this._prevInResult!==void 0?this._prevInResult:(this.prev?this.prev.isInResult()?this._prevInResult=this.prev:this._prevInResult=this.prev.prevInResult():this._prevInResult=null,this._prevInResult)}beforeState(){if(this._beforeState!==void 0)return this._beforeState;if(!this.prev)this._beforeState={rings:[],windings:[],multiPolys:[]};else{const t=this.prev.consumedBy||this.prev;this._beforeState=t.afterState()}return this._beforeState}afterState(){if(this._afterState!==void 0)return this._afterState;const t=this.beforeState();this._afterState={rings:t.rings.slice(0),windings:t.windings.slice(0),multiPolys:[]};const n=this._afterState.rings,r=this._afterState.windings,i=this._afterState.multiPolys;for(let o=0,f=this.rings.length;o<f;o++){const m=this.rings[o],y=this.windings[o],b=n.indexOf(m);b===-1?(n.push(m),r.push(y)):r[b]+=y}const a=[],s=[];for(let o=0,f=n.length;o<f;o++){if(r[o]===0)continue;const m=n[o],y=m.poly;if(s.indexOf(y)===-1)if(m.isExterior)a.push(y);else{s.indexOf(y)===-1&&s.push(y);const b=a.indexOf(m.poly);b!==-1&&a.splice(b,1)}}for(let o=0,f=a.length;o<f;o++){const m=a[o].multiPoly;i.indexOf(m)===-1&&i.push(m)}return this._afterState}
829isInResult(){if(this.consumedBy)return!1;if(this._isInResult!==void 0)return this._isInResult;const t=this.beforeState().multiPolys,n=this.afterState().multiPolys;switch(U$.type){case"union":{const r=t.length===0,i=n.length===0;this._isInResult=r!==i;break}case"intersection":{let r,i;t.length<n.length?(r=t.length,i=n.length):(r=n.length,i=t.length),this._isInResult=i===U$.numMultiPolys&&r<i;break}case"xor":{const r=Math.abs(t.length-n.length);this._isInResult=r%2===1;break}case"difference":{const r=i=>i.length===1&&i[0].isSubject;this._isInResult=r(t)!==r(n);break}}return this._isInResult}},kB=class{poly;isExterior;segments;bbox;constructor(e,t,n){if(!Array.isArray(e)||e.length===0)throw new Error("Input geometry is not a valid Polygon or MultiPolygon");if(this.poly=t,this.isExterior=n,this.segments=[],typeof e[0][0]!="number"||typeof e[0][1]!="number")throw new Error("Input geometry is not a valid Polygon or MultiPolygon");const r=Cp.snap({x:new Tf(e[0][0]),y:new Tf(e[0][1])});this.bbox={ll:{x:r.x,y:r.y},ur:{x:r.x,y:r.y}};let i=r;for(let a=1,s=e.length;a<s;a++){if(typeof e[a][0]!="number"||typeof e[a][1]!="number")throw new Error("Input geometry is not a valid Polygon or MultiPolygon");const o=Cp.snap({x:new Tf(e[a][0]),y:new Tf(e[a][1])});o.x.eq(i.x)&&o.y.eq(i.y)||(this.segments.push(Y4.fromRing(i,o,this)),o.x.isLessThan(this.bbox.ll.x)&&(this.bbox.ll.x=o.x),o.y.isLessThan(this.bbox.ll.y)&&(this.bbox.ll.y=o.y),o.x.isGreaterThan(this.bbox.ur.x)&&(this.bbox.ur.x=o.x),o.y.isGreaterThan(this.bbox.ur.y)&&(this.bbox.ur.y=o.y),i=o)}(!r.x.eq(i.x)||!r.y.eq(i.y))&&this.segments.push(Y4.fromRing(i,r,this))}getSweepEvents(){const e=[];for(let t=0,n=this.segments.length;t<n;t++){const r=this.segments[t];e.push(r.leftSE),e.push(r.rightSE)}return e}},z6e=class{multiPoly;exteriorRing;interiorRings;bbox;constructor(e,t){if(!Array.isArray(e))throw new Error("Input geometry is not a valid Polygon or MultiPolygon");this.exteriorRing=new kB(e[0],this,!0),this.bbox={ll:{x:this.exteriorRing.bbox.ll.x,y:this.exteriorRing.bbox.ll.y},ur:{x:this.exteriorRing.bbox.ur.x,y:this.exteriorRing.bbox.ur.y}},this.interiorRings=[];for(let n=1,r=e.length;n<r;n++){const i=new kB(e[n],this,!1);i.bbox.ll.x.isLessThan(this.bbox.ll.x)&&(this.bbox.ll.x=i.bbox.ll.x),i.bbox.ll.y.isLessThan(this.bbox.ll.y)&&(this.bbox.ll.y=i.bbox.ll.y),i.bbox.ur.x.isGreaterThan(this.bbox.ur.x)&&(this.bbox.ur.x=i.bbox.ur.x),i.bbox.ur.y.isGreaterThan(this.bbox.ur.y)&&(this.bbox.ur.y=i.bbox.ur.y),this.interiorRings.push(i)}this.multiPoly=t}getSweepEvents(){const e=this.exteriorRing.getSweepEvents();for(let t=0,n=this.interiorRings.length;t<n;t++){const r=this.interiorRings[t].getSweepEvents();for(let i=0,a=r.length;i<a;i++)e.push(r[i])}return e}},EB=class{isSubject;polys;bbox;constructor(e,t){if(!Array.isArray(e))throw new Error("Input geometry is not a valid Polygon or MultiPolygon");try{typeof e[0][0][0]=="number"&&(e=[e])}catch{}this.polys=[],this.bbox={ll:{x:new Tf(Number.POSITIVE_INFINITY),y:new Tf(Number.POSITIVE_INFINITY)},ur:{x:new Tf(Number.NEGATIVE_INFINITY),y:new Tf(Number.NEGATIVE_INFINITY)}};for(let n=0,r=e.length;n<r;n++){const i=new z6e(e[n],this);i.bbox.ll.x.isLessThan(this.bbox.ll.x)&&(this.bbox.ll.x=i.bbox.ll.x),i.bbox.ll.y.isLessThan(this.bbox.ll.y)&&(this.bbox.ll.y=i.bbox.ll.y),i.bbox.ur.x.isGreaterThan(this.bbox.ur.x)&&(this.bbox.ur.x=i.bbox.ur.x),i.bbox.ur.y.isGreaterThan(this.bbox.ur.y)&&(this.bbox.ur.y=i.bbox.ur.y),this.polys.push(i)}this.isSubject=t}getSweepEvents(){const e=[];for(let t=0,n=this.polys.length;t<n;t++){const r=this.polys[t].getSweepEvents();for(let i=0,a=r.length;i<a;i++)e.push(r[i])}return e}},N6e=(e,...t)=>U$.run("union",e,t);Cp.set;function V6e(e,t={}){const n=[];if(b6e(e,i=>{n.push(i.coordinates)}
829),n.length<2)throw new Error("Must have at least 2 geometries");const r=N6e(n[0],...n.slice(1));return r.length===0?null:r.length===1?HI(r[0],t.properties):_6e(r,t.properties)}var q6e=V6e,dS={exports:{}},HS={exports:{}},j6e=HS.exports,PB;function U6e(){return PB||(PB=1,(function(e,t){(function(n,r){e.exports=r()})(j6e,function(){function n(I,U,B,q,Q){(function ee(Y,z,H,K,ne){for(;K>H;){if(K-H>600){var le=K-H+1,pe=z-H+1,ae=Math.log(le),se=.5*Math.exp(2*ae/3),ce=.5*Math.sqrt(ae*se*(le-se)/le)*(pe-le/2<0?-1:1),ye=Math.max(H,Math.floor(z-pe*se/le+ce)),$e=Math.min(K,Math.floor(z+(le-pe)*se/le+ce));ee(Y,z,ye,$e,ne)}var Be=Y[z],je=H,at=K;for(r(Y,H,z),ne(Y[K],Be)>0&&r(Y,H,K);je<at;){for(r(Y,je,at),je++,at--;ne(Y[je],Be)<0;)je++;for(;ne(Y[at],Be)>0;)at--}ne(Y[H],Be)===0?r(Y,H,at):r(Y,++at,K),at<=z&&(H=at+1),z<=at&&(K=at-1)}})(I,U,B||0,q||I.length-1,Q||i)}function r(I,U,B){var q=I[U];I[U]=I[B],I[B]=q}function i(I,U){return I<U?-1:I>U?1:0}var a=function(I){I===void 0&&(I=9),this._maxEntries=Math.max(4,I),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function s(I,U,B){if(!B)return U.indexOf(I);for(var q=0;q<U.length;q++)if(B(I,U[q]))return q;return-1}function o(I,U){f(I,0,I.children.length,U,I)}function f(I,U,B,q,Q){Q||(Q=N(null)),Q.minX=1/0,Q.minY=1/0,Q.maxX=-1/0,Q.maxY=-1/0;for(var ee=U;ee<B;ee++){var Y=I.children[ee];m(Q,I.leaf?q(Y):Y)}return Q}function m(I,U){return I.minX=Math.min(I.minX,U.minX),I.minY=Math.min(I.minY,U.minY),I.maxX=Math.max(I.maxX,U.maxX),I.maxY=Math.max(I.maxY,U.maxY),I}function y(I,U){return I.minX-U.minX}function b(I,U){return I.minY-U.minY}function T(I){return(I.maxX-I.minX)*(I.maxY-I.minY)}function x(I){return I.maxX-I.minX+(I.maxY-I.minY)}function $(I,U){return I.minX<=U.minX&&I.minY<=U.minY&&U.maxX<=I.maxX&&U.maxY<=I.maxY}function A(I,U){return U.minX<=I.maxX&&U.minY<=I.maxY&&U.maxX>=I.minX&&U.maxY>=I.minY}function N(I){return{children:I,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function O(I,U,B,q,Q){for(var ee=[U,B];ee.length;)if(!((B=ee.pop())-(U=ee.pop())<=q)){var Y=U+Math.ceil((B-U)/q/2)*q;n(I,Y,U,B,Q),ee.push(U,Y,Y,B)}}return a.prototype.all=function(){return this._all(this.data,[])},a.prototype.search=function(I){var U=this.data,B=[];if(!A(I,U))return B;for(var q=this.toBBox,Q=[];U;){for(var ee=0;ee<U.children.length;ee++){var Y=U.children[ee],z=U.leaf?q(Y):Y;A(I,z)&&(U.leaf?B.push(Y):$(I,z)?this._all(Y,B):Q.push(Y))}U=Q.pop()}return B},a.prototype.collides=function(I){var U=this.data;if(!A(I,U))return!1;for(var B=[];U;){for(var q=0;q<U.children.length;q++){var Q=U.children[q],ee=U.leaf?this.toBBox(Q):Q;if(A(I,ee)){if(U.leaf||$(I,ee))return!0;B.push(Q)}}U=B.pop()}return!1},a.prototype.load=function(I){if(!I||!I.length)return this;if(I.length<this._minEntries){for(var U=0;U<I.length;U++)this.insert(I[U]);return this}var B=this._build(I.slice(),0,I.length-1,0);if(this.data.children.length)if(this.data.height===B.height)this._splitRoot(this.data,B);else{if(this.data.height<B.height){var q=this.data;this.data=B,B=q}this._insert(B,this.data.height-B.height-1,!0)}else this.data=B;return this},a.prototype.insert=function(I){return I&&this._insert(I,this.data.height-1),this},a.prototype.clear=function(){return this.data=N([]),this},a.prototype.remove=function(I,U){if(!I)return this;for(var B,q,Q,ee=this.data,Y=this.toBBox(I),z=[],H=[];ee||z.length;){if(ee||(ee=z.pop(),q=z[z.length-1],B=H.pop(),Q=!0),ee.leaf){var K=s(I,ee.children,U);
829if(K!==-1)return ee.children.splice(K,1),z.push(ee),this._condense(z),this}Q||ee.leaf||!$(ee,Y)?q?(B++,ee=q.children[B],Q=!1):ee=null:(z.push(ee),H.push(B),B=0,q=ee,ee=ee.children[0])}return this},a.prototype.toBBox=function(I){return I},a.prototype.compareMinX=function(I,U){return I.minX-U.minX},a.prototype.compareMinY=function(I,U){return I.minY-U.minY},a.prototype.toJSON=function(){return this.data},a.prototype.fromJSON=function(I){return this.data=I,this},a.prototype._all=function(I,U){for(var B=[];I;)I.leaf?U.push.apply(U,I.children):B.push.apply(B,I.children),I=B.pop();return U},a.prototype._build=function(I,U,B,q){var Q,ee=B-U+1,Y=this._maxEntries;if(ee<=Y)return o(Q=N(I.slice(U,B+1)),this.toBBox),Q;q||(q=Math.ceil(Math.log(ee)/Math.log(Y)),Y=Math.ceil(ee/Math.pow(Y,q-1))),(Q=N([])).leaf=!1,Q.height=q;var z=Math.ceil(ee/Y),H=z*Math.ceil(Math.sqrt(Y));O(I,U,B,H,this.compareMinX);for(var K=U;K<=B;K+=H){var ne=Math.min(K+H-1,B);O(I,K,ne,z,this.compareMinY);for(var le=K;le<=ne;le+=z){var pe=Math.min(le+z-1,ne);Q.children.push(this._build(I,le,pe,q-1))}}return o(Q,this.toBBox),Q},a.prototype._chooseSubtree=function(I,U,B,q){for(;q.push(U),!U.leaf&&q.length-1!==B;){for(var Q=1/0,ee=1/0,Y=void 0,z=0;z<U.children.length;z++){var H=U.children[z],K=T(H),ne=(le=I,pe=H,(Math.max(pe.maxX,le.maxX)-Math.min(pe.minX,le.minX))*(Math.max(pe.maxY,le.maxY)-Math.min(pe.minY,le.minY))-K);ne<ee?(ee=ne,Q=K<Q?K:Q,Y=H):ne===ee&&K<Q&&(Q=K,Y=H)}U=Y||U.children[0]}var le,pe;return U},a.prototype._insert=function(I,U,B){var q=B?I:this.toBBox(I),Q=[],ee=this._chooseSubtree(q,this.data,U,Q);for(ee.children.push(I),m(ee,q);U>=0&&Q[U].children.length>this._maxEntries;)this._split(Q,U),U--;this._adjustParentBBoxes(q,Q,U)},a.prototype._split=function(I,U){var B=I[U],q=B.children.length,Q=this._minEntries;this._chooseSplitAxis(B,Q,q);var ee=this._chooseSplitIndex(B,Q,q),Y=N(B.children.splice(ee,B.children.length-ee));Y.height=B.height,Y.leaf=B.leaf,o(B,this.toBBox),o(Y,this.toBBox),U?I[U-1].children.push(Y):this._splitRoot(B,Y)},a.prototype._splitRoot=function(I,U){this.data=N([I,U]),this.data.height=I.height+1,this.data.leaf=!1,o(this.data,this.toBBox)},a.prototype._chooseSplitIndex=function(I,U,B){for(var q,Q,ee,Y,z,H,K,ne=1/0,le=1/0,pe=U;pe<=B-U;pe++){var ae=f(I,0,pe,this.toBBox),se=f(I,pe,B,this.toBBox),ce=(Q=ae,ee=se,Y=void 0,z=void 0,H=void 0,K=void 0,Y=Math.max(Q.minX,ee.minX),z=Math.max(Q.minY,ee.minY),H=Math.min(Q.maxX,ee.maxX),K=Math.min(Q.maxY,ee.maxY),Math.max(0,H-Y)*Math.max(0,K-z)),ye=T(ae)+T(se);ce<ne?(ne=ce,q=pe,le=ye<le?ye:le):ce===ne&&ye<le&&(le=ye,q=pe)}return q||B-U},a.prototype._chooseSplitAxis=function(I,U,B){var q=I.leaf?this.compareMinX:y,Q=I.leaf?this.compareMinY:b;this._allDistMargin(I,U,B,q)<this._allDistMargin(I,U,B,Q)&&I.children.sort(q)},a.prototype._allDistMargin=function(I,U,B,q){I.children.sort(q);for(var Q=this.toBBox,ee=f(I,0,U,Q),Y=f(I,B-U,B,Q),z=x(ee)+x(Y),H=U;H<B-U;H++){var K=I.children[H];m(ee,I.leaf?Q(K):K),z+=x(ee)}for(var ne=B-U-1;ne>=U;ne--){var le=I.children[ne];m(Y,I.leaf?Q(le):le),z+=x(Y)}return z},a.prototype._adjustParentBBoxes=function(I,U,B){for(var q=B;q>=0;q--)m(U[q],I)},a.prototype._condense=function(I){for(var U=I.length-1,B=void 0;U>=0;U--)I[U].children.length===0?U>0?(B=I[U-1].children).splice(B.indexOf(I[U]),1):this.clear():o(I[U],this.toBBox)},a})})(HS)),HS.exports}class H6e{constructor(t=[],n=W6e){if(this.data=t,this.length=this.data.length,this.compare=n,this.length>0)for(let r=(this.length>>1)-1;r>=0;r--)this._down(r)}push(t){this.data.push(t),this.length++,this._up(this.length-1)}pop(){if(this.length===0)return;const t=this.data[0],n=this.data.pop();return this.length--,this.length>0&&(this.data[0]=n,this._down(0)),t}peek(){return this.data[0]}_up(t){const{data:n,compare:r}=this,i=n[t];for(;t>0;){const a=t-1>>1,s=n[a];if(r(i,s)>=0)break;n[t]=s,t=a}n[t]=i}_down(t){const{data:n,compare:r}=this,i=this.length>>1,a=n[t];for(;t<i;){let s=(t<<1)+1,o=n[s];const f=s+1;if(f<this.length&&r(n[f],o)<0&&(s=f,o=n[f]),r(o,a)>=0)break;n[t]=o,t=s}n[t]=a}}function W6e(e,t){return e<t?-1:e>t?1:0}const G6e=Object.freeze(Object.defineProperty({__proto__:null,default:H6e},Symbol.toStringTag,{value:"Module"})),Y6e=bae(G6e);var A2={exports:{}},x8,$B;function Z6e(){return $B||($B=1,x8=function(t,n,r,i){var a=t[0],s=t[1],o=!1;r===void 0&&(r=0),i===void 0&&(i=n.length);for(var f=(i-r)/2,m=0,y=f-1;m<f;y=m++){var b=n[r+m*2+0],T=n[r+m*2+1],x=n[r+y*2+0],$=n[r+y*2+1],A=T>s!=$>s&&a<(x-b)*(s-T)/($-T)+b;A&&(o=!o)}return o}
829),x8}var w8,MB;function K6e(){return MB||(MB=1,w8=function(t,n,r,i){var a=t[0],s=t[1],o=!1;r===void 0&&(r=0),i===void 0&&(i=n.length);for(var f=i-r,m=0,y=f-1;m<f;y=m++){var b=n[m+r][0],T=n[m+r][1],x=n[y+r][0],$=n[y+r][1],A=T>s!=$>s&&a<(x-b)*(s-T)/($-T)+b;A&&(o=!o)}return o}),w8}var AB;function X6e(){if(AB)return A2.exports;AB=1;var e=Z6e(),t=K6e();return A2.exports=function(r,i,a,s){return i.length>0&&Array.isArray(i[0])?t(r,i,a,s):e(r,i,a,s)},A2.exports.nested=t,A2.exports.flat=e,A2.exports}var H2={exports:{}},J6e=H2.exports,IB;function Q6e(){return IB||(IB=1,(function(e,t){(function(n,r){r(t)})(J6e,function(n){const i=33306690738754706e-32;function a(A,N,O,I,U){let B,q,Q,ee,Y=N[0],z=I[0],H=0,K=0;z>Y==z>-Y?(B=Y,Y=N[++H]):(B=z,z=I[++K]);let ne=0;if(H<A&&K<O)for(z>Y==z>-Y?(Q=B-((q=Y+B)-Y),Y=N[++H]):(Q=B-((q=z+B)-z),z=I[++K]),B=q,Q!==0&&(U[ne++]=Q);H<A&&K<O;)z>Y==z>-Y?(Q=B-((q=B+Y)-(ee=q-B))+(Y-ee),Y=N[++H]):(Q=B-((q=B+z)-(ee=q-B))+(z-ee),z=I[++K]),B=q,Q!==0&&(U[ne++]=Q);for(;H<A;)Q=B-((q=B+Y)-(ee=q-B))+(Y-ee),Y=N[++H],B=q,Q!==0&&(U[ne++]=Q);for(;K<O;)Q=B-((q=B+z)-(ee=q-B))+(z-ee),z=I[++K],B=q,Q!==0&&(U[ne++]=Q);return B===0&&ne!==0||(U[ne++]=B),ne}function s(A){return new Float64Array(A)}const o=33306690738754716e-32,f=22204460492503146e-32,m=11093356479670487e-47,y=s(4),b=s(8),T=s(12),x=s(16),$=s(4);n.orient2d=function(A,N,O,I,U,B){const q=(N-B)*(O-U),Q=(A-U)*(I-B),ee=q-Q;if(q===0||Q===0||q>0!=Q>0)return ee;const Y=Math.abs(q+Q);return Math.abs(ee)>=o*Y?ee:-(function(z,H,K,ne,le,pe,ae){let se,ce,ye,$e,Be,je,at,Pt,Qe,nt,Ve,ct,zt,ut,At,Dt,Ot,Ee;const Ye=z-le,it=K-le,yt=H-pe,St=ne-pe;Be=(At=(Pt=Ye-(at=(je=134217729*Ye)-(je-Ye)))*(nt=St-(Qe=(je=134217729*St)-(je-St)))-((ut=Ye*St)-at*Qe-Pt*Qe-at*nt))-(Ve=At-(Ot=(Pt=yt-(at=(je=134217729*yt)-(je-yt)))*(nt=it-(Qe=(je=134217729*it)-(je-it)))-((Dt=yt*it)-at*Qe-Pt*Qe-at*nt))),y[0]=At-(Ve+Be)+(Be-Ot),Be=(zt=ut-((ct=ut+Ve)-(Be=ct-ut))+(Ve-Be))-(Ve=zt-Dt),y[1]=zt-(Ve+Be)+(Be-Dt),Be=(Ee=ct+Ve)-ct,y[2]=ct-(Ee-Be)+(Ve-Be),y[3]=Ee;let Ie=(function(sn,Yt){let _t=Yt[0];for(let vt=1;vt<sn;vt++)_t+=Yt[vt];return _t})(4,y),qe=f*ae;if(Ie>=qe||-Ie>=qe||(se=z-(Ye+(Be=z-Ye))+(Be-le),ye=K-(it+(Be=K-it))+(Be-le),ce=H-(yt+(Be=H-yt))+(Be-pe),$e=ne-(St+(Be=ne-St))+(Be-pe),se===0&&ce===0&&ye===0&&$e===0)||(qe=m*ae+i*Math.abs(Ie),(Ie+=Ye*$e+St*se-(yt*ye+it*ce))>=qe||-Ie>=qe))return Ie;Be=(At=(Pt=se-(at=(je=134217729*se)-(je-se)))*(nt=St-(Qe=(je=134217729*St)-(je-St)))-((ut=se*St)-at*Qe-Pt*Qe-at*nt))-(Ve=At-(Ot=(Pt=ce-(at=(je=134217729*ce)-(je-ce)))*(nt=it-(Qe=(je=134217729*it)-(je-it)))-((Dt=ce*it)-at*Qe-Pt*Qe-at*nt))),$[0]=At-(Ve+Be)+(Be-Ot),Be=(zt=ut-((ct=ut+Ve)-(Be=ct-ut))+(Ve-Be))-(Ve=zt-Dt),$[1]=zt-(Ve+Be)+(Be-Dt),Be=(Ee=ct+Ve)-ct,$[2]=ct-(Ee-Be)+(Ve-Be),$[3]=Ee;const pt=a(4,y,4,$,b);Be=(At=(Pt=Ye-(at=(je=134217729*Ye)-(je-Ye)))*(nt=$e-(Qe=(je=134217729*$e)-(je-$e)))-((ut=Ye*$e)-at*Qe-Pt*Qe-at*nt))-(Ve=At-(Ot=(Pt=yt-(at=(je=134217729*yt)-(je-yt)))*(nt=ye-(Qe=(je=134217729*ye)-(je-ye)))-((Dt=yt*ye)-at*Qe-Pt*Qe-at*nt))),$[0]=At-(Ve+Be)+(Be-Ot),Be=(zt=ut-((ct=ut+Ve)-(Be=ct-ut))+(Ve-Be))-(Ve=zt-Dt),$[1]=zt-(Ve+Be)+(Be-Dt),Be=(Ee=ct+Ve)-ct,$[2]=ct-(Ee-Be)+(Ve-Be),$[3]=Ee;const Tt=a(pt,b,4,$,T);Be=(At=(Pt=se-(at=(je=134217729*se)-(je-se)))*(nt=$e-(Qe=(je=134217729*$e)-(je-$e)))-((ut=se*$e)-at*Qe-Pt*Qe-at*nt))-(Ve=At-(Ot=(Pt=ce-(at=(je=134217729*ce)-(je-ce)))*(nt=ye-(Qe=(je=134217729*ye)-(je-ye)))-((Dt=ce*ye)-at*Qe-Pt*Qe-at*nt))),$[0]=At-(Ve+Be)+(Be-Ot),Be=(zt=ut-((ct=ut+Ve)-(Be=ct-ut))+(Ve-Be))-(Ve=zt-Dt),$[1]=zt-(Ve+Be)+(Be-Dt),Be=(Ee=ct+Ve)-ct,$[2]=ct-(Ee-Be)+(Ve-Be),$[3]=Ee;const It=a(Tt,T,4,$,x);return x[It-1]})(A,N,O,I,U,B,Y)},n.orient2dfast=function(A,N,O,I,U,B){return(N-B)*(O-U)-(A-U)*(I-B)},Object.defineProperty(n,"__esModule",{value:!0})})})(H2,H2.exports)),H2.exports}var DB;function e8e(){if(DB)return dS.exports;DB=1;var e=U6e(),t=Y6e,n=X6e(),r=Q6e().orient2d;t.default&&(t=t.default),dS.exports=i,dS.exports.default=i;function i(B,q,Q){q=Math.max(0,q===void 0?2:q),Q=Q||0;var ee=x(B),Y=new e(16);Y.toBBox=function(at){return{minX:at[0],minY:at[1],maxX:at[0],maxY:at[1]}},Y.compareMinX=function(at,Pt){return at[0]-Pt[0]},Y.compareMinY=function(at,Pt){return at[1]-Pt[1]},Y.load(B);for(var z=[],H=0,K;H<ee.length;H++){var ne=ee[H];
829Y.remove(ne),K=$(ne,K),z.push(K)}var le=new e(16);for(H=0;H<z.length;H++)le.insert(T(z[H]));for(var pe=q*q,ae=Q*Q;z.length;){var se=z.shift(),ce=se.p,ye=se.next.p,$e=A(ce,ye);if(!($e<ae)){var Be=$e/pe;ne=a(Y,se.prev.p,ce,ye,se.next.next.p,Be,le),ne&&Math.min(A(ne,ce),A(ne,ye))<=Be&&(z.push(se),z.push($(ne,se)),Y.remove(ne),le.remove(se),le.insert(T(se)),le.insert(T(se.next)))}}se=K;var je=[];do je.push(se.p),se=se.next;while(se!==K);return je.push(se.p),je}function a(B,q,Q,ee,Y,z,H){for(var K=new t([],s),ne=B.data;ne;){for(var le=0;le<ne.children.length;le++){var pe=ne.children[le],ae=ne.leaf?N(pe,Q,ee):o(Q,ee,pe);ae>z||K.push({node:pe,dist:ae})}for(;K.length&&!K.peek().node.children;){var se=K.pop(),ce=se.node,ye=N(ce,q,Q),$e=N(ce,ee,Y);if(se.dist<ye&&se.dist<$e&&m(Q,ce,H)&&m(ee,ce,H))return ce}ne=K.pop(),ne&&(ne=ne.node)}return null}function s(B,q){return B.dist-q.dist}function o(B,q,Q){if(f(B,Q)||f(q,Q))return 0;var ee=O(B[0],B[1],q[0],q[1],Q.minX,Q.minY,Q.maxX,Q.minY);if(ee===0)return 0;var Y=O(B[0],B[1],q[0],q[1],Q.minX,Q.minY,Q.minX,Q.maxY);if(Y===0)return 0;var z=O(B[0],B[1],q[0],q[1],Q.maxX,Q.minY,Q.maxX,Q.maxY);if(z===0)return 0;var H=O(B[0],B[1],q[0],q[1],Q.minX,Q.maxY,Q.maxX,Q.maxY);return H===0?0:Math.min(ee,Y,z,H)}function f(B,q){return B[0]>=q.minX&&B[0]<=q.maxX&&B[1]>=q.minY&&B[1]<=q.maxY}function m(B,q,Q){for(var ee=Math.min(B[0],q[0]),Y=Math.min(B[1],q[1]),z=Math.max(B[0],q[0]),H=Math.max(B[1],q[1]),K=Q.search({minX:ee,minY:Y,maxX:z,maxY:H}),ne=0;ne<K.length;ne++)if(b(K[ne].p,K[ne].next.p,B,q))return!1;return!0}function y(B,q,Q){return r(B[0],B[1],q[0],q[1],Q[0],Q[1])}function b(B,q,Q,ee){return B!==ee&&q!==Q&&y(B,q,Q)>0!=y(B,q,ee)>0&&y(Q,ee,B)>0!=y(Q,ee,q)>0}function T(B){var q=B.p,Q=B.next.p;return B.minX=Math.min(q[0],Q[0]),B.minY=Math.min(q[1],Q[1]),B.maxX=Math.max(q[0],Q[0]),B.maxY=Math.max(q[1],Q[1]),B}function x(B){for(var q=B[0],Q=B[0],ee=B[0],Y=B[0],z=0;z<B.length;z++){var H=B[z];H[0]<q[0]&&(q=H),H[0]>ee[0]&&(ee=H),H[1]<Q[1]&&(Q=H),H[1]>Y[1]&&(Y=H)}var K=[q,Q,ee,Y],ne=K.slice();for(z=0;z<B.length;
829z++)n(B[z],K)||ne.push(B[z]);return U(ne)}function $(B,q){var Q={p:B,prev:null,next:null,minX:0,minY:0,maxX:0,maxY:0};return q?(Q.next=q.next,Q.prev=q,q.next.prev=Q,q.next=Q):(Q.prev=Q,Q.next=Q),Q}function A(B,q){var Q=B[0]-q[0],ee=B[1]-q[1];return Q*Q+ee*ee}function N(B,q,Q){var ee=q[0],Y=q[1],z=Q[0]-ee,H=Q[1]-Y;if(z!==0||H!==0){var K=((B[0]-ee)*z+(B[1]-Y)*H)/(z*z+H*H);K>1?(ee=Q[0],Y=Q[1]):K>0&&(ee+=z*K,Y+=H*K)}return z=B[0]-ee,H=B[1]-Y,z*z+H*H}function O(B,q,Q,ee,Y,z,H,K){var ne=Q-B,le=ee-q,pe=H-Y,ae=K-z,se=B-Y,ce=q-z,ye=ne*ne+le*le,$e=ne*pe+le*ae,Be=pe*pe+ae*ae,je=ne*se+le*ce,at=pe*se+ae*ce,Pt=ye*Be-$e*$e,Qe,nt,Ve,ct,zt=Pt,ut=Pt;Pt===0?(nt=0,zt=1,ct=at,ut=Be):(nt=$e*at-Be*je,ct=ye*at-$e*je,nt<0?(nt=0,ct=at,ut=Be):nt>zt&&(nt=zt,ct=at+$e,ut=Be)),ct<0?(ct=0,-je<0?nt=0:-je>ye?nt=zt:(nt=-je,zt=ye)):ct>ut&&(ct=ut,-je+$e<0?nt=0:-je+$e>ye?nt=zt:(nt=-je+$e,zt=ye)),Qe=nt===0?0:nt/zt,Ve=ct===0?0:ct/ut;var At=(1-Qe)*B+Qe*Q,Dt=(1-Qe)*q+Qe*ee,Ot=(1-Ve)*Y+Ve*H,Ee=(1-Ve)*z+Ve*K,Ye=Ot-At,it=Ee-Dt;return Ye*Ye+it*it}function I(B,q){return B[0]===q[0]?B[1]-q[1]:B[0]-q[0]}function U(B){B.sort(I);for(var q=[],Q=0;Q<B.length;Q++){for(;q.length>=2&&y(q[q.length-2],q[q.length-1],B[Q])<=0;)q.pop();q.push(B[Q])}for(var ee=[],Y=B.length-1;Y>=0;Y--){for(;ee.length>=2&&y(ee[ee.length-2],ee[ee.length-1],B[Y])<=0;)ee.pop();ee.push(B[Y])}return ee.pop(),q.pop(),q.concat(ee)}return dS.exports}var t8e=e8e();const n8e=Pp(t8e);function r8e(e,t={}){t.concavity=t.concavity||1/0;const n=[];if(Lw(e,i=>{n.push([i[0],i[1]])}),!n.length)return null;const r=n8e(n,t.concavity);return r.length>3?HI([r],t.properties):null}function LB(e,t={}){let n=0,r=0,i=0;return Lw(e,function(a){n+=a[0],r+=a[1],i++},!0),z$([n/i,r/i],t.properties)}
829function i8e(e){if(!e)throw new Error("coord is required");if(!Array.isArray(e)){if(e.type==="Feature"&&e.geometry!==null&&e.geometry.type==="Point")return[...e.geometry.coordinates];if(e.type==="Point")return[...e.coordinates]}if(Array.isArray(e)&&e.length>=2&&!Array.isArray(e[0])&&!Array.isArray(e[1]))return[...e];throw new Error("coord must be GeoJSON Point or an Array of numbers")}function a8e(e,t){return e.type==="FeatureCollection"?"FeatureCollection":e.type==="GeometryCollection"?"GeometryCollection":e.type==="Feature"&&e.geometry!==null?e.geometry.type:e.type}function EG(e,t={}){switch(a8e(e)){case"Point":return z$(i8e(e),t.properties);case"Polygon":var n=[];Lw(e,function(B){n.push(B)});var r=LB(e,{properties:t.properties}),i=r.geometry.coordinates,a=0,s=0,o=0,f,m,y,b,T,x,$,A,N=n.map(function(B){return[B[0]-i[0],B[1]-i[1]]});for(f=0;f<n.length-1;f++)m=N[f],b=m[0],x=m[1],y=N[f+1],T=y[0],$=y[1],A=b*$-T*x,o+=A,a+=(b+T)*A,s+=(x+$)*A;if(o===0)return r;var O=o*.5,I=1/(6*O);return z$([i[0]+I*a,i[1]+I*s],t.properties);default:var U=r8e(e);return U?EG(U,{properties:t.properties}):LB(e,{properties:t.properties})}}var OB=EG;const RB=globalThis.setInterval;async function PG(e,t,n,r,i){const a="points",s="highlight-point",o="geocoder",f="geometry",m="feature-point",y="unclustered-point-default",b="clusters",T="feature-geometry-polygon",x="feature-geometry-line",A=ul().public.typo3.sites[0].api.baseUrl??"",N=[[-4.884395916648543,42.1760617648321],[8.77443228167985,51.19991725798357]],O=[],I=Bn(),U=De([]),B=De(null),q=De([]),Q=De(()=>{}),ee=De([]),Y=De(),z=De(t.zoom),H=De(t.center);let K,ne;const le=De(!1);let pe=!1,ae=null;const se=De(null),ce={type:"FeatureCollection",features:[]},ye={type:"FeatureCollection",features:[]},$e={type:"FeatureCollection",features:[]},Be={type:"FeatureCollection",features:[]},je=async()=>{if(await at(),typeof e.value>"u")return;let Ge=In(await $fetch(t.style));const rt=Na(t.primary_color);Ge=JSON.stringify(Ge),Ge=Ge.replaceAll("$PRIMARY:0.25$",rt.alpha(.25).rgb().string()),Ge=Ge.replaceAll("$PRIMARY:0.5$",rt.alpha(.5).rgb().string()),Ge=Ge.replaceAll("$PRIMARY:0.75$",rt.alpha(.75).rgb().string()),Ge=Ge.replaceAll("$PRIMARY:1$",rt.alpha(1).rgb().string()),Ge=JSON.parse(Ge);const $t=`/map/configuration/${t.option}.json`;t={...In(await $fetch($t)),...t,style:Ge,container:e.value,maxBounds:t.maxBounds??N};try{se.value=await cie(A+"?type=1736782933","$mZQKHQZS1G")??null}catch{se.value=null}try{I.value=O_(new Oh.Map(t))}catch{I.value=void 0;return}Ye(),t.scrollZoom===!1&&I.value.scrollZoom.disable(),I.value.on("load",()=>{setTimeout(async()=>{if(Ve(),nt(),await At(),Dt(),K=new Oh.Popup({anchor:"top",className:"maplibregl-popup-cluster"}),K.setHTML("&nbsp;").on("close",Jt),ne=new Oh.Popup({closeButton:!1,closeOnClick:!1,anchor:"top",className:"maplibregl-popup-hover",offset:"180px"}),typeof i<"u"&&typeof K<"u"&&nn(i,()=>{K.setDOMContent(i.value)},{immediate:!0}),typeof r=="function"){const Zt=RB(()=>{I.value?.loaded()&&(r(),clearInterval(Zt))},1e3)}},10)})},at=async()=>{typeof I.value==typeof Oh.Map&&I.value?.remove(),I.value=void 0;const{$off:Ge}=En();typeof Ge=="function"&&Ge("popinDetail:close",Qe)},Pt=(Ge,rt,$t)=>{setTimeout(()=>{typeof $t>"u"&&($t={top:0,bottom:0,left:0,right:0}),I.value?.easeTo({center:Ge,zoom:rt,padding:$t})},10)},Qe=Ge=>{Pt(H.value,z.value??8)},nt=()=>{I.value?.getSource(a)?.setData(ce),I.value?.getSource(s)?.setData(ye),I.value?.getSource(o)?.setData($e),I.value?.getSource(f)?.setData(Be)},Ve=()=>{I.value?.setPaintProperty(T,"fill-color",new Na(t.primary_color).alpha(.3).rgb().string()),I.value?.setPaintProperty("geometry-border","line-color",new Na(t.primary_color).rgb().string()),I.value?.setPaintProperty("geometry","fill-color",{base:1,stops:[[15.5,new Na(t.primary_color).alpha(.3).rgb().string()]]})},ct=Ge=>zt(btoa(Ge),"image/svg+xml"),zt=(Ge,rt)=>`data:${rt};base64,${Ge}`,ut=(Ge,rt)=>{let $t;return($t=rt.exec(Ge))!==null?$t[1]:null},At=async()=>{Array.isArray(t.icons)&&await t.icons.forEach(async Ge=>{if(Ge.path.endsWith("svg")){const $t=`${Ge.path}`;let Gt=In(await(await $fetch($t))?.text())??"";const Zt=Number.parseInt(ut(Gt,/width="(\d+)"/g)??40),rn=Number.parseInt(ut(Gt,/height="(\d+)"/g)??40);Gt=Gt.replace(/fill="(#[0-9a-zA-Z]+)"/g,`fill="${t?.primary_color??"#000"}"`);const Dn=new Image(Zt,rn);Dn.src=ct(Gt),Dn.onload=()=>{I.value?.addImage(Ge.id,Dn,{sdf:!1})},O[Ge.id]={...Ge,element:Dn}}else I.value?.loadImage(Ge.path,($t,Gt)=>{$t||(I.value?.addImage(Ge.id,Gt,{sdf:!1}),O[Ge.id]={...Ge,element:Gt})});Ge.id!=="default"&&(q.value.push("unclustered-point-"+Ge.id),I.value?.addLayer({id:"unclustered-point-"+Ge.id,type:"symbol",source:a,filter:["all",["!has","point_count"],["==","icon",Ge.id],["!has","icon"]],layout:{"icon-image":Ge.id||"default","icon-anchor":Ge.anchor||"bottom","icon-allow-overlap":!0}}))}
829),Array.isArray(se.value?.layers)&&se.value.layers.forEach(Ge=>{Ge.layerName==="Categories"&&Ge.legend.forEach(rt=>{rt.contentType;const $t=new Image(rt.width,rt.height);$t.src=zt(rt.imageData,rt.contentType),$t.onload=()=>{I.value?.addImage(rt.label,$t,{sdf:!1}),I.value?.addLayer({id:rt.label,type:"symbol",source:a,filter:["any",["in",rt.label,["get","categories"]]],layout:{"icon-image":rt.label,"icon-anchor":"bottom","icon-allow-overlap":!0}})}})})},Dt=()=>{if(typeof I.value>"u")return;I.value.on("mouseenter",y,rt=>{if(t.points?.shouldDisplayPopupOnHover){I.value.getCanvas().style.cursor="pointer";const $t=rt.features[0];typeof $t<"u"&&Sn($t,!1)}}),I.value.on("mouseleave",y,rt=>{I.value.getCanvas().style.cursor="",On()}),I.value.on("mouseenter",m,rt=>{t.points?.shouldDisplayPopupOnHover&&(I.value.getCanvas().style.cursor="pointer")}),I.value.on("mouseleave",m,rt=>{I.value.getCanvas().style.cursor=""}),I.value.on("mouseenter",T,rt=>{if(t.points?.shouldDisplayPopupOnHover){I.value.getCanvas().style.cursor="pointer";const $t=rt.features[0];typeof $t<"u"&&Sn($t,!1)}}),I.value.on("mousemove",T,rt=>{if(t.points?.shouldDisplayPopupOnHover){const $t=rt.features[0];typeof $t<"u"&&Sn($t,!1)}}),I.value.on("mouseleave",T,rt=>{I.value.getCanvas().style.cursor="",On()}),I.value.on("mouseenter",x,rt=>{if(t.points?.shouldDisplayPopupOnHover){I.value.getCanvas().style.cursor="pointer";const $t=rt.features[0];typeof $t<"u"&&Sn($t,!1,rt.lngLat)}}),I.value.on("mouseleave",x,rt=>{I.value.getCanvas().style.cursor="",On()}),I.value.on("mouseenter",b,rt=>{t.points?.shouldDisplayPopupOnHover&&(I.value.getCanvas().style.cursor="pointer")}),I.value.on("mouseleave",b,rt=>{I.value.getCanvas().style.cursor=""}),I.value.on("zoomend",()=>{}),I.value.on("click",Ee);const{$on:Ge}=En();typeof Ge=="function"&&Ge("popinDetail:close",Qe)},Ot=()=>{z.value=I.value?.getZoom(),H.value=I.value?.getCenter()},Ee=async Ge=>{const rt=I.value?.queryRenderedFeatures(Ge.point,{layers:[b]})??[],$t=I.value?.queryRenderedFeatures(Ge.point,{layers:[m,T,x]})??[];if(rt.length>0&&typeof rt[0].properties<"u"){const Gt=rt[0].properties.cluster_id,Zt=rt[0].properties.point_count,rn=I.value?.getSource(a)??[];if(typeof rn<"u")if(Gt!=Y.value){const Dn=await rn.getClusterExpansionZoom(Gt),tr=rt[0].geometry.coordinates;if(Dn>=t.maxZoom){I.value?.setFeatureState({id:Gt,source:a},{active:1});const Nr=await rn.getClusterLeaves(Gt,Zt,0)??[];if(typeof Nr[0].properties?.onClick?.args>"u")return;const $r={...Nr[0].properties?.onClick?.args,coordinates:tr};ee.value=[];const pi=[];Nr?.forEach((mi,va)=>{ee.value.push(mi.properties),pi.push(mi.properties.pid+"_"+mi.properties.uid)}),$r.formData["tx_cimsearchelastic_displaysearch[identifiers]"]=pi,Y.value=Gt,await vt($r),Ot(),Pt(tr,Dn)}else Ot(),Pt(tr,Dn)}else Jt()}else if(typeof $t<"u"&&$t.length>0){const Gt=$t[0];if(["LineString","MultiLineString"].includes(Gt.geometry.type))return;let Zt;Gt.geometry.type==="LineString"?Zt=Ge.lngLat:Gt.geometry.type==="Point"?Zt=Gt.geometry.coordinates.slice():Zt=OB(Gt).geometry.coordinates.slice();const rn=Gt.properties??null;if(typeof rn.onClick<"u"){const Dn={...JSON.parse(rn.onClick),properties:rn};if(Ot(),typeof Gt.geometry<"u")It(Gt.geometry);else{const tr=I.value?.getZoom()>t.maxZoom-2?I.value?.getZoom():t.maxZoom-2;Pt(Zt,tr,{top:10,bottom:10})}typeof Gt<"u"&&(On(),rn.type==="pav"?dc(Dn.link.href):an(Dn))}Y.value=void 0}else Jt()},Ye=()=>{if(t.controls?.navigation?.enable&&I.value?.addControl(new Oh.NavigationControl,t.controls?.navigation?.position??"bottom-right"),t.controls?.geolocate?.enable&&I.value?.addControl(new Oh.GeolocateControl({positionOptions:{enableHighAccuracy:!0},trackUserLocation:!0}),t.controls?.geolocate?.position??"bottom-right"),t?.controls?.geocoder?.enable){let Ge=new o6e(t.controls.geocoder,ft);I.value.addControl(Ge,"top-left"),Ge.on("result",rt=>{it(rt.result.lat,rt.result.lon)})}t.controls?.scale?.enable&&I.value?.addControl(new Oh.ScaleControl(t),t.controls?.scale?.position||"bottom-left")},it=async(Ge,rt)=>{if(B.value===null){const $t=O[o]??null;B.value=new Oh.Marker({draggable:!0,element:$t.element,anchor:$t.anchor||"bottom"}).setLngLat([rt,Ge]).addTo(I.value),B.value.on("dragend",()=>{I.value.fire("geocoder:result",{latitude:B.value.getLngLat().lat,longitude:B.value.getLngLat().lng})})}else B.value.setLngLat([rt,Ge]);I.value.fire("geocoder:result",{latitude:Ge,longitude:rt})},yt=()=>{B.value!==null&&B.value.remove()},St=Ge=>{Array.isArray(Ge)&&Ge.forEach(rt=>{const $t={...rt};if(delete $t.mapLatitude,delete $t.mapLongitude,delete $t.mapGeometry,typeof rt.mapGeometry<"u"&&rt.mapGeometry!==null&&rt.mapGeometry.length>0)try{const Gt=JSON.parse(rt.mapGeometry);Array.isArray(Gt)?Gt.forEach(Zt=>qe(Zt,$t)):qe(Gt,$t)}catch{}else typeof rt.mapLatitude<"u"&&typeof rt.mapLongitude<"u"&&rt.mapLatitude!==0&&rt.mapLongitude!==0&&(rt.mapLatitude!==1||rt.mapLongitude!==1)&&rt.mapLatitude>=-90&&rt.mapLatitude<=90&&rt.mapLongitude>=-180&&rt.mapLongitude<=180&&Ie(rt?.mapLatitude??rt.latitude,rt?.mapLongitude??rt.longitude,{...rt})})},Ie=(Ge,rt,$t)=>{if(typeof Ge>"u"||typeof rt>"u")return;const Gt=new Oh.LngLat(rt,Ge),Zt={...$t,longitude:rt,latitude:Ge};return Array.isArray(se.value?.layers)&&In(se.value.layers.filter(Dn=>Dn.layerName==="Categories")?.[0].legend.map(Dn=>
829Dn.label)).forEach(Dn=>{(Zt.categories??[]).includes(Dn)&&(Zt.icon=!0)}),typeof Zt.mapLatitude<"u"&&delete Zt.mapLatitude,typeof Zt.mapLongitude<"u"&&delete Zt.mapLongitude,U.value.push(Gt),sn(Zt,a,ce)},qe=(Ge,rt)=>{if(typeof Ge>"u")throw"No geometry provided";if(typeof Ge.coordinates>"u")throw"No geometry coordinates provided";if(typeof Ge.type>"u")throw"No geometry type provided";const $t={type:"Feature",geometry:Ge,properties:rt};return Be.features.push($t),Yt(f,Be),$t},pt=()=>{U.value=[],Tt(a,ce),Tt(s,ye),Tt(o,$e),Tt(f,Be)},Tt=(Ge,rt)=>{rt.features=[],Yt(Ge,rt)},It=Ge=>{let rt=[1/0,1/0,-1/0,-1/0];const $t=lS(ce),Gt=lS(Be),Zt={top:80,bottom:80,left:60,right:60};if(typeof Ge<"u")rt=lS(Ge),I.value?.setPadding(Zt),I.value?.fitBounds(rt);else if(ce.features.length>0||ye.features.length>0||$e.features.length>0||Be.features.length>0){if(ce.features.length>0&&Be.features.length>0){const rn=xB($t),Dn=xB(Gt),tr=q6e(rn,Dn);rt=lS(tr)}else{if(ce.features.length>0)if(ce.features.length===1){I.value?.jumpTo({center:ce.features[0].geometry.coordinates,zoom:15});return}else rt=$t;Be.features.length>0&&(rt=Gt)}I.value?.setPadding(Zt),I.value?.fitBounds(rt)}},sn=(Ge,rt,$t)=>{const Gt={type:"Feature",geometry:{type:"Point",coordinates:[Number.parseFloat(Ge.longitude),Number.parseFloat(Ge.latitude)]},properties:Ge};return $t.features.push(Gt),Yt(rt,$t),Gt},Yt=(Ge,rt)=>{typeof I.value<"u"&&typeof Q.value[Ge]>"u"&&(Q.value[Ge]=setTimeout(()=>{const $t=RB(()=>{const Gt=I.value?.getSource(Ge);typeof I.value<"u"&&I.value?.loaded()&&typeof Gt<"u"&&(Gt.setData(rt),I.value?.triggerRepaint(),clearInterval($t))},25);delete Q.value[Ge]},15))},_t=(Ge,rt,$t,Gt)=>Ge.map(Zt=>{const rn={type:Zt.type,uid:Zt.uid,pid:Zt.pid,title:Zt.title};!Un(Zt.mapLatitude)&&!Un(Zt.mapLongitude)&&(rn.mapLatitude=Zt.mapLatitude,rn.mapLongitude=Zt.mapLongitude),Un(Zt.mapGeometry)||(rn.mapGeometry=Zt.mapGeometry);const Dn=(Zt.categories??[]).concat(Zt.specificCategories??[]).map(Nr=>Nr.title??null).filter(Nr=>Nr!==null);Dn.length>0&&(rn.categories=Dn);const tr={"tx_cimsearchelastic_displaysearch[contentElementId]":n?.settings?.content_element,"tx_cimsearchelastic_displaysearch[itemUid]":rn?.uid,"tx_cimsearchelastic_displaysearch[itemPid]":rn?.pid};return rt==="displayListPopin"&&(rn.onClick={link:In(Zt?.links?.[0]),callback:rt,args:{urlShow:Zt.popinUrl,urlCluster:n.urlShow,formData:tr}}),rt==="displayPopup"&&(rn.onClick={link:In(Zt?.links?.[0]),callback:rt,args:{templateId:"popin_poi",additionalCssClasses:$t,contentId:Gt}}),rn}),vt=async Ge=>{if(K.setHTML("&nbsp;").setLngLat(Ge.coordinates),typeof Ge.formData>"u")return;Ge.additionalCssClasses!==""&&K.addClassName(Ge.additionalCssClasses),ee.value=[],le.value=!0;const rt=new FormData;Object.keys(Ge.formData).forEach(Zt=>{Un(Ge.formData[Zt])||rt.append(Zt,Ge.formData[Zt])}),ee.value=[];const Gt=(await $fetch(A+Ge.urlCluster,{method:"POST",body:new URLSearchParams(rt)})).results||[];if(Gt.length>0)if(Gt.forEach(Zt=>{ee.value.push(Zt)}),typeof i?.value<"u")K.setDOMContent(i.value).addTo(I.value);else throw`clusterResultsRef is undefined (value: ${i.value})`},Jt=()=>{le.value&&(ee.value=[],le.value=!1,typeof K<"u"&&K.setHTML("&nbsp;"),typeof I.value<"u"&&typeof Y.value<"u"&&(I.value.setFeatureState({id:Y.value,source:a},{active:0}),Y.value=void 0),H.value&&Pt(H.value,z.value??15))},an=Ge=>{const{$emit:rt}=En();typeof rt=="function"&&Ge.link&&typeof Ge.link<"u"&&typeof Ge.link?.href<"u"&&rt("popinDetail:open",{link:Ge.link,showArrows:!1,result:Ge.properties,fromMarker:!0})},Sn=(Ge,rt=!1,$t)=>{if(t.points?.shouldDisplayPopupOnHover&&ae!==Ge){typeof $t>"u"&&($t=OB(Ge).geometry.coordinates.slice());const Gt=Ge.properties;let Zt=Gt.title;if(Un(Zt)&&!Un(Gt.categories)&&(Zt=(JSON.parse(Gt.categories)??[])[0].title),Un(Zt)&&!Un(Gt.specificCategories)&&(Zt=(JSON.parse(Gt.specificCategories)??[])[0].title),!Un(Zt)){pe&&ne.remove();const rn=`
830					<div class="contenu_bloc">
831						<div class="content">
832							<p class="subtitle">${Zt}</p>
833						</div>
834					</div>`;ne.setLngLat($t).setHTML(rn),rt&&ne.trackPointer(),ne.addTo(I.value),ae=Ge,pe=!0}}},On=()=>{ne.remove(),pe=!1},ft=async function(Ge,rt,$t){const Gt={format:"json",q:Ge,limit:$t.limit},Zt=new URLSearchParams(Object.entries(Gt)),rn=await $fetch("https://api-adresse.data.gouv.fr/search/?"+Zt);if(rn?.features)return rn.features.map(Dn=>({name:Dn.properties.label,lat:Dn.geometry.coordinates[1],lon:Dn.geometry.coordinates[0]}))};return{create:je,destroy:at,addMarker:Ie,addFeatures:St,clearAll:pt,fitBounds:It,prepareResults:_t,closePopupCluster:Jt,moveTo:Pt,setDrawMarkerPosition:it,removeDrawMarker:yt,map:I,options:t,data:{markers:U,layerIds:q,refresh:Q,popupItems:ee,lastZoom:z,lastCenter:H,isClusterOpen:le},layers:{LAYER_POINTS:a,LAYER_HIGHLIGHT:s,LAYER_GEOCODER:o,LAYER_GEOMETRY:f}}}const JT=Fe({__name:"Map",props:{settings:{},results:{default:()=>[]},fieldsToShow:{},display:{default:"block"},isInteractiveMap:{type:Boolean,default:!1}},emits:["geocoder:result"],async setup(e,{expose:t,emit:n}){let r,i;const a=e,s=De(),o=De(),f=vr(),m={container:s,option:`Main/${a.display}`,style:"/map/styles/ign.json",center:[f.siteBuilderInfos?.coordinates?.longitude,f.siteBuilderInfos?.coordinates?.latitude],primary_color:"black",zoom:8,minZoom:5,maxZoom:17,antialias:!0},y=([r,i]=jM(()=>PG(s,m,a.settings??{},()=>{y.map.value.on("geocoder:result",x=>{T("geocoder:result",x)}),b(a.results)},o)),r=await r,i(),r),b=x=>{y.clearAll();
834const $=y.prepareResults(v(x),"displayListPopin","","",`modal_multi_${a.settings?.settings?.content_element}`);$.length>0&&(y.addFeatures($),y.fitBounds())};Hn(async()=>{await y.create(),nn(a.results,()=>{b(a.results)},{immediate:!0})}),oa(()=>{y.destroy()});const T=n;return t({mapInstance:De(y.map),isClusterOpen:y.data.isClusterOpen,maplibre:y}),(x,$)=>{const A=yG;return Z(),Ce("div",{class:de(v(me)({height:"100%"}))},[Re("div",{class:de(v(me)({position:"relative",height:"100%",display:"flex",flexDir:"column","& .maplibregl-map":{fontFamily:"regular!",fontSize:"1em!",position:"absolute!",lineHeight:"1.4!"},"& .maplibregl-popup":{pointerEvents:"all!"},"& .maplibregl-popup-cluster":{display:"none",maxWidth:{base:"100% !important",md:"54.5rem !important"},transform:"none!",zIndex:5,bottom:{mdDown:0},top:{mdDown:"auto!"},height:{base:"100%",mdDown:"75%"},width:{base:"100%",md:"54.5rem"},"& .maplibregl-popup-tip":{display:"none"},"& .maplibregl-popup-content":{padding:"0!",height:"100%",background:"white!",borderRadius:"0!",boxShadow:"none!","& > div":{display:"flex"}},"& .maplibregl-popup-close-button":{top:"0.3rem!",right:"0.5rem!",backgroundColor:"black!",width:"3.5rem",height:"3.5rem",borderRadius:"50%!",color:"transparent",border:"{borders.sm} transparent!",_before:{content:"''",position:"absolute",top:"50%",left:"50%",width:"2rem",height:"2rem",maskImage:"url(~/assets/img/svg/btn/close.svg)",bgColor:"{colors.white}",maskPosition:"center center",maskSize:"contain",maskRepeat:"no-repeat",transform:"translate(-50%, -50%)",borderRadius:"inherit",transition:"{easings.global}"},_hover:{bgColor:"white!",borderColor:"white!",_before:{bgColor:"primary!"}}}},"& .maplibregl-popup:not(.maplibregl-popup-cluster)":{"& p":{fontSize:{base:"1.3em",md:"1.5em"},marginBottom:0,lineHeight:1.2},"& .maplibregl-popup-tip":{borderBottomColor:{base:"{colors.black}!",_inverse:"{colors.white}!"}},"& .maplibregl-popup-content":{padding:"0.5rem",backgroundColor:{base:"{colors.black}!",_inverse:"white!"},color:{base:"white!",_inverse:"black!"},textAlign:"center!"}},"& .maplibregl-ctrl-top-left":{left:"0.5rem!",top:"0.5rem!",width:"100%",maxWidth:"30rem","& .mapboxgl-ctrl-generic-geocoder":{pointerEvents:"all!","& input[type=text]":{bgColor:"white"},"& .suggestions-wrapper":{maxHeight:"20rem !important",overflow:"auto",bgColor:"{colors.white}",border:"{borders.sm} {colors.black}",borderTop:0,borderRadius:"0 0 {radii.sm} {radii.sm}","& .suggestions":{marginBottom:0,"& > li":{fontSize:"sm","& > a":{display:"block",padding:"0.5rem 1rem",borderBottom:"{borders.sm} {colors.lightGray}",transition:"{easings.global}",cursor:"pointer",outline:"none",_last:{border:"none"},"&:not([data-state=checked]):hover":{bgColor:"{colors.primary}",color:"white"}}}}}}},"& .maplibregl-ctrl-attrib":{marginRight:e.isInteractiveMap?{mdDown:"12rem !important"}:0}}))},[Re("div",{ref_key:"mapContainer",ref:s,class:de([e.isInteractiveMap?v(me)({flex:"auto",position:"absolute",width:"100%",height:"100%"}):v(me)({height:"60rem",width:"100%"})])},null,2)],2),Re("div",{ref_key:"clusterResultsRef",ref:o,class:de([v(Tr)({display:"none",alignItems:"initial",gap:0}),v(me)({bgColor:"{colors.white}",height:"100%",position:"relative"})])},[Re("p",{class:de(v(me)({padding:{base:"1rem 2rem",md:"1rem 5rem"},bgColor:"black",color:"white",marginBottom:0,fontWeight:700}))},[Re("span",null,[Re("span",null,ht(v(y)?.data.popupItems.value.length),1),_n(" "+ht(x.$t("search.filters.results")),1)]),_n(" "+ht(x.$t("search.map.inTheZone")),1)],2),ke(A,{results:v(y)?.data.popupItems.value||[],"fields-to-show":e.fieldsToShow},null,8,["results","fields-to-show"])],2)],2)}}}),$G=Fe({__name:"PopinClose",props:{title:{},popinFull:{type:Boolean},variante:{},picto:{}},setup(e){return(t,n)=>{const r=cr;return Z(),Se(r,{link:{text:e.title},title:e.title,type:"button",variante:e.variante!=null?e.variante:{classes:"pictoRound",pictoColor:"white",pictoSize:e.popinFull?"md":"sm"},picto:e.picto??"close",showSr:!0},null,8,["link","title","variante","picto"])}}}),MG=Fe({__name:"FieldSessions",props:{colPos:{},result:{},header:{},config:{}},setup(e){const t=e,{isAmiral:n}=zr(),r=Rf();t.result?.slice(3)?.length>0;const i=xe(()=>t.result?.filter(f=>s(f.cimNewsEndDate||f.cimNewsStartDate))),{t:a}=Ii(),s=f=>{const m=new Date;return m.setHours(0,0,0,0),typeof f=="number"?f*1e3>=m.getTime():Date.parse(f)>=m.getTime()},o=me({display:"inline-block",fontSize:"1.2rem",fontWeight:500,lineHeight:1,transform:"translateX(-0.3rem)"});return(f,m)=>{const y=GW,b=Su,T=fi;return v(i)?.length>1?(Z(),Se(T,{key:0,header:f.$t("blocks.sessions.title"),uid:v(r)},{content:be(()=>[Re("ul",{class:de([v(Mi)({gridTemplateColumns:"repeat(auto-fill, minmax(22rem, 1fr))",rowGap:"2rem"}),v(me)({marginBottom:0})])},[(Z(!0),Ce(Ct,null,ln(v(i),x=>(Z(),Ce("li",{class:de([v(me)({padding:v(n)()?"0.3rem 0 0.3rem 1.5rem":"2rem",borderLeft:v(n)()?"{borders.sm} {colors.black}":null,"& [data-date-part]":{_first:{"& [data-wording]":{textTransform:"capitalize"}}},"& p":{marginBottom:0}}
834),v(n)()?null:v(me)({bgColor:{base:"lightGray",_print:"transparent"},borderRadius:"0.5em"})])},[ke(y,{result:x,config:e.config,showYear:!0,fullDate:!0,class:de(v(me)({fontWeight:700}))},{suffix:be(()=>[Re("sup",{class:de(v(o))},ht(v(a)("common.dates.suffix.first")),3)]),_:1},8,["result","config","class"]),ke(b,{result:x.schedule,config:e.config},null,8,["result","config"]),ke(b,{result:x.placeTitle,config:e.config},null,8,["result","config"])],2))),256))],2)]),_:1},8,["header","uid"])):Ne("",!0)}}}),o8e=Fe({__name:"FieldDescription",props:{result:{},header:{},config:{}},setup(e){const t=Rf();return(n,r)=>{const i=Su,a=fi;return e.result?(Z(),Se(a,{key:0,header:e.header||"Description",uid:v(t),titleInside:!1,class:de([v(Md)(),v(Wa)()])},{content:be(()=>[ke(i,{result:e.result,config:e.config},null,8,["result","config"])]),_:1},8,["header","uid","class"])):Ne("",!0)}}}),AG=Fe({__name:"FieldInformations",props:{data:{},descriptionFields:{}},setup(e){const t=e,n=Rf(),{checkIfResults:r}=Ad(),i=xe(()=>{let a=[];return t.descriptionFields?.length>0&&t.descriptionFields.forEach(s=>{r(t.data,s)&&a.push(s)}),!(a.length>0)});return(a,s)=>{const o=BI,f=p1,m=zI,y=FI,b=Su,T=fi;return v(i)?Ne("",!0):(Z(),Se(T,{key:0,header:"Informations générales",uid:v(n),titleInside:!1,class:de([v(Md)(),v(Wa)()])},{content:be(()=>[e.data.association_title?(Z(),Ce("div",{key:0,class:de(v(me)({marginBottom:"1rem"}))},[Re("p",{class:de(v(me)({lineHeight:"1.4",display:"inline-block !important",marginBottom:0,"& + *":{display:"inline","& .t3-ce-rte, & .t3-ce-rte > p":{display:"inline"}}}))},[s[0]||(s[0]=Re("strong",null,"Association : ",-1)),Re("span",null,ht(e.data.association_title),1)],2)],2)):Ne("",!0),(Z(!0),Ce(Ct,null,ln(e.descriptionFields,x=>(Z(),Ce("div",{class:de(v(me)({marginBottom:"1rem"}))},[x.title?(Z(),Ce("p",{key:0,class:de(v(me)({lineHeight:"1.4",display:"inline-block !important",marginBottom:0,"& + *":{display:"inline","& .t3-ce-rte, & .t3-ce-rte > p":{display:"inline"}}}))},[Re("strong",null,ht(x.title)+" : ",1)],2)):Ne("",!0),x?.system_name==="accessibility"?(Z(),Se(o,{key:1,result:e.data?.[("_stringToCamelCase"in a?a._stringToCamelCase:v(xs))(x?.system_name)],config:x,notSr:!0},null,8,["result","config"])):x?.frontend_template==="date_inline"?(Z(),Se(f,{key:2,result:e.data,config:x},null,8,["result","config"])):x?.type==="boolean"?(Z(),Se(m,{key:3,config:x,result:e.data,yesOrNo:!0},null,8,["config","result"])):x?.type==="typolink"?(Z(),Se(y,{key:4,result:e.data?.[("_stringToCamelCase"in a?a._stringToCamelCase:v(xs))(x?.system_name)],config:x},null,8,["result","config"])):(Z(),Se(b,{key:5,result:e.data?.[("_stringToCamelCase"in a?a._stringToCamelCase:v(xs))(x?.system_name)]?.[0]?.title||e.data?.[("_stringToCamelCase"in a?a._stringToCamelCase:v(xs))(x?.system_name)],config:x},null,8,["result","config"]))],2))),256))]),_:1},8,["uid","class"]))}}}),ew=Fe({__name:"FieldGeoloc",props:{colPos:{},result:{},header:{},headerLayout:{},config:{},uid:{},show_in_summary:{type:Boolean}},async setup(e){let t,n;const{isAmiral:r}=zr(),i=e,a=vr(),s=De(),o={container:s,option:"Main/block",style:"/map/styles/ign.json",center:[a.siteBuilderInfos?.coordinates?.longitude,a.siteBuilderInfos?.coordinates?.latitude],primary_color:"black",zoom:8,minZoom:5,maxZoom:17,antialias:!0},f=xe(()=>!Un(i.result?.mapLatitude)&&!Un(i.result?.mapLongitude)),m=([t,n]=jM(()=>PG(s,o,()=>{},()=>{m.addMarker(i.result.mapLatitude,i.result.mapLongitude,i.result),m.fitBounds()},void 0)),t=await t,n(),t);return nn(i,y=>{m.clearAll(),m.addMarker(i.result.mapLatitude,i.result.mapLongitude,i.result),m.fitBounds()}),Hn(()=>{f.value&&m.create()}),oa(()=>{f.value&&m.destroy()}),(y,b)=>{const T=YW,x=fi;return e.result?(Z(),Se(x,{key:0,header:e.header||e.config?.title,"header-layout":e.headerLayout,boxShadow:v(r)(),titleInside:!1,uid:e.uid,class:de([v(Md)(),v(me)({"& [data-bloc-content]":{borderRadius:"1.5rem !important"}})])},{content:be(()=>[Re("div",{class:de([v(me)({zIndex:6}),v(Qn)({flexDir:{base:"column",sm:"row",md:e.colPos===0?"row":"column"},gap:0,alignItems:"stretch"})])},[v(f)?(Z(),Ce("div",{key:0,class:de(v(me)({width:{base:"100%",sm:"1/2",md:e.colPos===0?"3/4":"100%"},_print:{display:"none"}}))},[Re("div",{ref_key:"mapContainerRef",ref:s,class:de(v(me)({position:"relative",minHeight:{base:"30rem",md:e.colPos===0?"30rem":null},height:{base:"100%",md:e.colPos===0?"100%":"30rem"},"& > .maplibregl-canvas-container":{position:"absolute",top:0,left:0,width:"100%",height:"100%",overflow:"hidden",borderRadius:e.colPos===0?"1.5rem 0 0 0":"1.5rem 1.5rem 0 0"},"& > .maplibregl-control-container":{position:"absolute",bottom:0,left:0,width:"100%",bgColor:"{colors.white}/80"}}))},null,2)],2)):Ne("",!0),ke(T,{result:e.result,colPos:e.colPos,isLocated:v(f)},null,8,["result","colPos","isLocated"])],2)]),_:1},8,["header","header-layout","boxShadow","uid","class"])):Ne("",!0)}}}),s8e=Fe({__name:"FieldDiaporamaVideos",props:{colPos:{},result:{},header:{},config:{},headerLayout:{},noNavigation:{type:Boolean,default:!1},uid:{}},setup(e){const t=e,n=Rf(),r=t.uid??n;return(i,a)=>{const s=VI,o=Vf,f=fi;return Z(),Se(f,{header:e.header||e.config?.title,"header-layout":e.headerLayout,headerId:`bloc_diaporama_videos_${v(r)}`,uid:v(r),class:de(v(me)({_print:{display:"none !important"}}))},{content:be(()=>[ke(o,{slides:e.result,blocTitleId:`bloc_diaporama_videos_${v(n)}`,fractionPagination:!0,effect:"material",materialEffect:{slideSplitRatio:.65},rewind:!0,autoHeight:!0,grabCursor:!0,slidesPerView:1,spaceBetween:60,speed:600,class:de(v(me)({"& [data-fraction-pagination]":{fontWeight:"{fontWeights.bold}",fontSize:"2em",marginTop:"{spacing.md}"}}))},{slideContent:be(m=>[Re("div",{class:de(["swiper-material-wrapper",v(me)({position:"relative !important"})])},[Re("div",{class:de(["swiper-material-content",v(Tr)({alignItems:"start !important",gap:"1rem"}),v(me)({position:"relative !important","& > [data-ratio]":{aspectRatio:"16/9",width:"100%"}})])},[m.slide?(Z(),Se(s,{key:0,video:m.slide}
834,null,8,["video"])):Ne("",!0)],2)],2)]),_:1},8,["slides","blocTitleId","class"])]),_:1},8,["header","header-layout","headerId","uid","class"])}}}),IG=Fe({__name:"FieldDiaporamaPictures",props:{colPos:{},header:{},headerLayout:{},uid:{},result:{},config:{}},setup(e){const{isAmiral:t}=zr(),n=e,{$emit:r}=En(),i=(o,f)=>{r("lightbox:open",{index:o,items:f})},a=Rf(),s=n.uid??a;return(o,f)=>{const m=cr,y=Nf,b=Vf,T=fi;return Z(),Se(T,{header:e.header||e.config?.title,"header-layout":e.headerLayout,headerId:`bloc_diaporama_images_${v(s)}`,uid:v(s),class:de(v(me)({marginBottom:{mdDown:"5rem"},_print:{display:"none !important"}}))},{content:be(()=>[ke(b,{slides:e.result,blocTitleId:`bloc_diaporama_images_${v(s)}`,fractionPagination:!0,effect:"material",materialEffect:{slideSplitRatio:.65},autoHeight:!0,slidesPerView:1,spaceBetween:16,SliderButtonVariante:{classes:"pictoRound",pictoColor:v(t)()?"white":"black",pictoSize:"lg"},speed:600,class:de(v(me)({"& [data-fraction-pagination]":{position:"absolute",right:{base:"-1rem",md:"-2.5rem"},bottom:0,transform:"translateY(calc(100% - 2.5rem))",marginBottom:0,display:{base:"flex",_print:"block"},justifyContent:"end",alignItems:"end",gap:".2rem",bg:{base:"linear-gradient(to left, {colors.primary}, {colors.secondary})",_inverse:"black"},color:"white",fontSize:"sm",fontWeight:700,width:{base:"6rem",md:"8rem"},height:{base:"5.5rem",md:"7.5rem"},padding:{base:"1rem",md:"1rem 2rem 1.5rem 1rem"},borderRadius:v(t)()?".5rem":"1rem","& > *:first-child":{fontWeight:"400 !important"}},"& [data-navigation]":{"& [data-button-slider=prev]":{transform:v(t)()?{base:"translate(-50%, -50%)",md:"translate(-100%, -50%)"}:"translate(-60%, -50%)"},"& [data-button-slider=next]":{transform:v(t)()?{base:"translate(50%, -50%)",md:"translate(100%, -50%)"}:"translate(60%, -50%)"}}}))},{slideContent:be(x=>[Re("div",{class:de(["swiper-material-wrapper",v(me)({position:"relative !important"})])},[Re("div",{class:de(["swiper-material-content",v(Tr)({alignItems:"start",gap:0}),v(me)({position:"relative !important","& figure":{minWidth:"100%"},"& img":{aspectRatio:"810/450",objectFit:"cover",minWidth:"100%",borderRadius:"1rem"},"& [data-description]":{position:"absolute",bottom:0,left:0,width:"100%",bg:"linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%)",borderRadius:"1rem",padding:"3rem 1rem 1rem 1rem",color:"white"}})])},[ke(m,{link:{text:`${o.$t("common.medias.images.popin.btnTitle")} ${x.index+1}`},title:`${o.$t("common.medias.images.popin.btnTitle")} ${x.index+1}`,showSr:!0,type:"button",picto:"zoomIn",class:de(v(me)({position:"absolute",top:0,left:0,width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",zIndex:"2",opacity:0,bgColor:"{colors.black}/75",borderRadius:"1rem","& svg":{width:"5rem",height:"5rem","& *":{fill:"{colors.white}"}},_hover:{opacity:1}})),onClick:$=>i(x.index,e.result)},null,8,["link","title","class","onClick"]),ke(y,{image:x.slide,altPrefix:`${o.$t("common.medias.images.illustration")} ${x.index+1}`},null,8,["image","altPrefix"])],2)],2)]),_:1},8,["slides","blocTitleId","SliderButtonVariante","class"])]),_:1},8,["header","header-layout","headerId","uid","class"])}}}),DG=Fe({__name:"FieldDownload",props:{colPos:{},result:{},header:{},headerLayout:{},uid:{},config:{},show_images:{type:Boolean},show_in_summary:{type:Boolean}},setup(e){const{isAmiral:t}=zr(),n=r=>r.properties?.title||r.properties?.filename;return(r,i)=>{const a=WW,s=Nf,o=fi;return e.result?.length>0?(Z(),Se(o,{key:0,header:e.header||e.config?.title,headerLayout:e.headerLayout||2,titleInside:!1,bgColor:v(t)()?null:"gray",uid:e.uid,show_in_summary:e.show_in_summary,class:de(v(me)({"& [data-bloc-content]":{borderRadius:v(t)()?"unset":"1.5rem"},_print:{display:"none !important"}}))},{content:be(()=>[Re("ul",{class:de(v(Mi)({columns:{base:1,sm:2,md:e.colPos===0?2:1,lg:e.colPos===0?2:1},columnGap:{base:"1.5rem",md:"3rem"},alignItems:"start"}))},[(Z(!0),Ce(Ct,null,ln(e.result,f=>(Z(),Ce("li",{class:de([v(Tr)({alignItems:e.colPos===0&&!e.show_images?"center":"start",gap:!e.show_images&&e.colPos===0?"2rem":e.colPos!==0?"1rem":"2rem",flexDir:e.colPos===0?"row":"column"}),v(me)({fontSize:"1em","& [data-img-container]":{order:-1}})])},[e.show_images?Ne("",!0):(Z(),Ce("span",{key:0,class:de(v(me)({width:"5rem",height:"5rem",minHeight:"5rem",minWidth:"5rem",top:0,left:0,bg:{base:"linear-gradient(to left, {colors.primary}, {colors.secondary})",_inverse:"yellow"},maskPosition:"center center",maskRepeat:"no-repeat",maskSize:"contain",maskImage:"url(~/assets/img/svg/contenus_edito/download.svg)"}))},null,2)),Re("div",{class:de(v(me)({width:"100%"}))},[Re("span",{class:de(v(me)({display:"block",fontSize:"{fontSizes.h3}",fontWeight:700,maxWidth:"100%",wordBreak:"break-word",overflowWrap:"break-word",marginBottom:v(t)()?0:".5rem !important"}))},ht(n(f)),3),ke(a,{metadata:f?.properties,links:{href:f?.properties?.originalUrl||f?.publicUrl,text:n(f)},title:n(f),class:de(v(me)({"& > p":{marginBottom:"1rem"},"& > p > span":{fontSize:"sm"},"& [data-kiosque-links]":{columnGap:"2rem",rowGap:"1rem",flexDir:(e.colPos===0,"row !important"),alignItems:"start","& p":{marginBottom:0}}}))},null,8,["metadata","links","title","class"])],2),e.show_images&&(f.properties?.publicUrl||f.properties?.thumbnail?.[0])?(Z(),Se(s,{key:1,class:de([e.colPos===0?v(me)({aspectRatio:"100/130",minWidth:"10rem",width:"10rem"}):v(me)({aspectRatio:"105/140",minWidth:"10.5rem",width:"10.5rem"}),v(me)({objectFit:"cover",boxShadow:"0 .4rem 1.5rem 0 rgba(0,0,0,.2)"})]),image:f.properties?.thumbnail?.[0]??f,defaultImg:!1,"no-figcaption":!0},null,8,["class","image"])):Ne("",!0)],2))),256))],2)]),_:1},8,["header","headerLayout","bgColor","uid","show_in_summary","class"])):Ne("",!0)}}}),l8e=["id"],QT=Fe({__name:"FieldLinks",props:{colPos:{},result:{},header:{},config:{},headerLayout:{},uid:{},show_in_summary:{type:Boolean}},setup(e){const{isAmiral:t}=zr(),n=e,r=i=>n.config?.frontend_template==="link"?{href:i.link,text:i.title}:i.href?{href:i.href,text:i.text,target:i.target}:i.links?.[0];return(i,a)=>{const s=ib,o=f1,f=fi;return Z(),Se(f,{header:e.header||e.config?.title,"header-layout":e.headerLayout,titleInside:!1,uid:e.uid,show_in_summary:e.show_in_summary,class:de(v(me)({_print:{display:"none !important"}}))},{content:be(()=>[Re("div",{id:`c${e.uid}`,class:de(v(Yy)()),tabindex:"0"},null,10,l8e),e.result?(Z(),Se(xr(e.result?.length>
8341?"ul":"div"),{key:0,class:de([v(Tr)({alignItems:"start",gap:"1rem"}),v(me)({marginBottom:0})])},{default:be(()=>[(Z(!0),Ce(Ct,null,ln(e.result,m=>(Z(),Se(xr(e.result?.length>1?"li":"p"),{class:de(v(me)({fontSize:"p",width:"100%",_before:{display:"none !important"}}))},{default:be(()=>[ke(o,{link:r(m),class:de([v(Qn)({gap:0}),v(me)({letterSpacing:"global",padding:"1.5rem",paddingLeft:v(t)()?null:0,borderBottom:{base:"{borders.md} {colors.lightGray}",_inverse:"{borders.md} {colors.black}"},fontWeight:600,transition:"{easings.global}",boxShadow:"none !important",_hover:{paddingLeft:v(t)()?"2.5rem":"1rem",color:"inherit !important"}})])},{icon:be(()=>[ke(s,{"aria-hidden":"true",class:de(v(ei)({size:{base:"3rem",sm:"3.5rem"},height:{base:"2rem",sm:"2.5rem"},fill:"primary"}))},null,8,["class"])]),_:1},8,["link","class"]),m?.complement?(Z(),Ce("span",{key:0,class:de(v(me)({fontSize:"1.4rem"}))},ht(m.complement),3)):Ne("",!0)]),_:2},1032,["class"]))),256))]),_:1},8,["class"])):Ne("",!0)]),_:1},8,["header","header-layout","uid","show_in_summary","class"])}}}),u8e=Fe({__name:"DirRendererDetail",props:{result:{default:()=>[]},config:{}},setup(e){const t=n=>{let r;switch(n){case"session":r=MG;break;case"place":case"geoloc":r=ew;break;case"video":r=s8e;break;case"image":r=IG;break;case"download":case"fal":case"folder":r=DG;break;case"link":case"other":r=QT;break;default:r=AG;break}return r};return(n,r)=>(Z(),Se(xr(t(e.config?.frontend_template??e.config?.type)),{config:e.config,result:e.result},null,8,["config","result"]))}}),c8e=Fe({__name:"AutoDetailBlocks",props:{data:{},colPos:{},configPage:{},descriptionFields:{},configBoucle:{},blocGeoloc:{}},setup(e){const t=e,n=r=>{const i=xs(r?.system_name);return r?.frontend_template==="geoloc"||r?.type==="place"?t.data?.[i]?.[0]:r?.type==="select_category"?t?.data?.[i]?.[0]?.title:t.data?.[i]};return(r,i)=>{const a=ew,s=u8e;return Z(),Ce(Ct,null,[e.blocGeoloc?.length>0?(Z(),Se(a,{key:0,result:e.data,colPos:e.colPos},null,8,["result","colPos"])):Ne("",!0),e.data?(Z(!0),Ce(Ct,{key:1},ln(e.configBoucle,o=>(Z(),Se(s,{config:o,result:n(o),colPos:e.colPos},null,8,["config","result","colPos"]))),256)):Ne("",!0)],64)}}}),md=(e,t={})=>{const{$fetch:n}=hu();return n(e,t)},d8e={class:"map_container"},LG=Fe({__name:"TinyInteractiveMap",props:{data:{},items:{}},setup(e){const t=e,n=kd(),r=De(Object.values(n.blocTinyInteractiveMapFields)),i=De(),a=De([]);return Hn(()=>{t.data.results?a.value=t.data.results:md(t.data.urlGeo).then(s=>{a.value=s.documents})}),(s,o)=>{const f=JT,m=ZI,y=fi;return v(a)?.length>0?(Z(),Se(y,{key:0,header:e.data?.settings?.title,titleInside:!1},{content:be(()=>[Re("div",d8e,[ke(f,{class:de(["map-wrap_container",v(me)({height:"60rem"})]),ref_key:"mapRef",ref:i,settings:e.data,results:v(a),fieldsToShow:v(r),display:"map"},null,8,["settings","results","fieldsToShow","class"])]),ke(m)]),_:1},8,["header"])):Ne("",!0)}}}),ek=Fe({__name:"FieldSeeAlso",props:{colPos:{},result:{},header:{},headerLayout:{},display_mode:{},loop:{type:Boolean,default:!1},isCarrefour:{type:Boolean,default:!1},isRelated:{type:Boolean,default:!1}},setup(e){const t=e,n=Rf(),r=xe(()=>t.result?.subpages?t.result.subpages:t.result),{t:i}=Ii(),a=xe(()=>{if(r?.value?.[0]?.type)return`${i("blocks.blocsLies.title")} ${i(`blocks.blocsLies.type.${r?.value?.[0]?.type}`)}`}),s=t?.display_mode==="list_type",o=m=>s?["city","cim_news","schedule","tarif_type","online_process","profil","teaser","status","delivery_date","elu","annee","link","specific_categories"]:m==="pages"?["teaser","subtitle"]:["teaser","description"],f=me({maxWidth:{base:s?"100%":"25rem",_print:"initial"},width:"100%","& [data-list-item-content]":{flexDir:s?null:"column-reverse",alignItems:s?"center":"start",gap:"2rem"},"& [data-txt]":{width:"100%",gap:"0.5rem"},"& [data-list-item-title]":{fontSize:"{fontSizes.h4}",lineClamp:2},"& [data-field-type]":{lineClamp:2},"& [data-img]":{aspectRatio:"1/1",width:s?null:"100%",minWidth:s?null:"100%","& > *":{width:"100%",height:"100%",objectFit:"cover"}},"& [data-field-type=horaires]":{display:"flex"},"& [data-date-container]":{position:"absolute !",top:{mdDown:"24rem"},transform:{mdDown:"translateY(-100%)"},left:{mdDown:"-1rem !"}}});return(m,y)=>{const b=Cu,T=Vf,x=fi;return e.result?.length>0?(Z(),Se(x,{key:0,template:e.display_mode,header:e.isRelated?v(a):e.header,headerId:`bloc_seealso_${v(n)}`,"header-layout":e.headerLayout,titleInside:!1,uid:v(n)},{content:be(()=>[e.loop?(Z(),Se(T,{key:1,slides:e.result,blocTitleId:`bloc_seealso_${v(n)}`,breakpoints:{320:{slidesPerView:1,autoHeight:!0},640:{slidesPerView:2,autoHeight:!0},800:{slidesPerView:3,autoHeight:!0},1024:{slidesPerView:3,autoHeight:!1}},wrapperTag:"div",slideTag:"div",class:de(v(me)({padding:{base:"0 3.5rem",md:"1.5rem"},"& [data-button-slider=prev]":{transform:{base:"translate(50%, -50%)",md:"translate(0%, -50%)"}},"& [data-button-slider=next]":{transform:{base:"translate(-50%, -50%)",md:"translate(0%, -50%)"}},"& .swiper-slide":{display:"flex !important"}}))},{slideContent:be($=>[$.slide?.link||$.slide?.links?(Z(),Se(b,{key:0,result:$.slide?.link||$.slide,options:{showtype:!1,showcategories:!!(e.isRelated||s)},"fields-to-show":e.isCarrefour?[""]:o($.slide?.link?.type),class:de(v(f))},null,8,["result","options","fields-to-show","class"])):Ne("",!0)]),_:1},8,["slides","blocTitleId","class"])):(Z(),Ce("div",{key:0,class:de([s?null:[v(Mi)({columns:{base:2,sm:3,md:3},rowGap:{base:"1.5rem",md:"{spacing.gutter}"},columnGap:{base:"1.5rem",md:"{spacing.gutter}"}}),v(me)({"& article":{width:{base:"100%",md:"auto"},height:"100%",paddingBottom:"1.5rem",borderBottom:"{borders.sm} {colors.black}
834",borderColor:{base:"{colors.black}/20",_inverse:"black"},"& [data-txt]":{textAlign:"center"}}})],v(me)({display:{base:"grid !important",_print:"block !important"},justifyItems:{base:"center",md:"initial"}}),v(_u)({alignItems:"start"})])},[(Z(!0),Ce(Ct,null,ln(e.result,$=>(Z(),Ce(Ct,null,[$.link||$.links?(Z(),Se(b,{key:0,result:$.link||$,options:{showtype:!1,showcategories:!!(e.isRelated||s)},"fields-to-show":e.isCarrefour?[""]:o($?.link?.type),class:de(v(f))},null,8,["result","options","fields-to-show","class"])):Ne("",!0)],64))),256))],2))]),_:1},8,["template","header","headerId","header-layout","uid"])):Ne("",!0)}}}),f8e=Fe({__name:"FieldContactH2s",props:{header:{},headerLayout:{},headerPosition:{},headerLink:{},subheader:{},uid:{},index:{},appearance:{},colPos:{},result:{},show_in_summary:{type:Boolean},config:{},isMetier:{type:Boolean,default:!1}},setup(e){const t=e,{isAmiral:n}=zr(),r=kd(),{getConfigByType:i}=Ad(),a=t.isMetier?r.blocContactH2sFieldsMetier:r.blocContactH2sFieldsRH,s=Object.values(a),o=f=>i(f).fields;return(f,m)=>{const y=Su,b=fi;return Z(!0),Ce(Ct,null,ln(e.result,T=>(Z(),Se(b,{header:e.header??f.$t("common.contact.contact"),headerLayout:v(n)()?e.headerLayout:3,headerPosition:e.headerPosition,headerLink:e.headerLink,subheader:e.subheader,uid:e.uid,index:e.index,appearance:e.appearance,colPos:e.colPos,"bloc-skin":{bgColor:"white",border:"",titleInside:!0},show_in_summary:e.show_in_summary,class:de([v(n)()?v(me)({boxShadow:{base:"0 .4rem 2rem 0 rgba(0,0,0,.2)",_inverse:"inverse",_print:"none"},padding:"2rem 3.5rem 3.5rem 3.5rem"}):v(me)({bgColor:"lightGray",padding:"3.5rem 3rem"}),v(me)({"& [data-title-container]":{textTransform:"capitalize"},borderRadius:"1.5rem"})])},{content:be(()=>[Re("div",{class:de([v(Tr)({alignItems:"initial",gap:"2rem"}),v(Wa)({shadowColor:"black"}),v(Md)()])},[(Z(!0),Ce(Ct,null,ln(o(T.type),x=>(Z(),Ce(Ct,null,[v(s).includes(x.system_name)?(Z(),Se(y,{key:0,result:T?.[("_stringToCamelCase"in f?f._stringToCamelCase:v(xs))(x?.system_name)]?.[0]?.title||T?.[("_stringToCamelCase"in f?f._stringToCamelCase:v(xs))(x?.system_name)],config:x,class:de(v(me)({marginBottom:0,gap:"0!",flexWrap:"wrap-reverse","& span + span":{display:"block",width:"100%",flexBasis:"auto",paddingLeft:"3rem"},"& > svg":{order:2,marginRight:"1rem"}}))},null,8,["result","config","class"])):Ne("",!0)],64))),256))],2)]),_:2},1032,["header","headerLayout","headerPosition","headerLink","subheader","uid","index","appearance","colPos","show_in_summary","class"]))),256)}}}),h8e={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 4 4"};function p8e(e,t){return Z(),Ce("svg",h8e,[...t[0]||(t[0]=[Re("circle",{cx:"2",cy:"2",r:"2",fill:"#131313"},null,-1)])])}const m8e={render:p8e},g8e=["aria-label"],WI=Fe({__name:"Breadcrumb",setup(e){const t=vr(),n=De(t.pageData),r=xe(()=>{let s=n.value?.breadcrumbs||[];return i.value?.forEach(o=>{if(typeof o?.content?.data?.title<"u"){s.push({title:o.content.data.title,link:"",target:"",active:1,current:1,spacer:0,hasSubpages:0});return}}),s}),i=xe(()=>n.value?.content?.colPos0?.filter(({type:s})=>["news_newsdetail","cimdirectory_display"].includes(s))),a=s=>{const o=s.split(" ")??[s],f=o.length>4;return`${o.splice(0,4).join(" ")}${f?"...":""}`};return(s,o)=>{const f=m8e,m=ST,y=N_;return Z(),Ce("nav",{role:"navigation","aria-label":s.$t("layout.breadcrumbs.ariaLabel")},[Re("ol",{vocab:"http://schema.org/",typeof:"BreadcrumbList",class:de([v(Wa)({shadowInitial:0}),v(me)({margin:"2.5rem 0 0 0",position:"relative",zIndex:1,_print:{marginTop:"1rem"}})])},[(Z(!0),Ce(Ct,null,ln(v(r),(b,T)=>(Z(),Ce("li",{property:"itemListElement",typeof:"ListItem",class:de([v(me)({display:"inline",fontSize:"sm",paddingLeft:T!==0?"2rem":0,position:"relative",_print:{display:"inline-block"}})])},[T!==0?(Z(),Se(f,{key:0,"aria-hidden":"true",class:de([v(ei)({fill:"{colors.black}",size:"0.5rem"}),v(me)({position:"absolute",top:"1rem",left:"0.5rem",_print:{display:"inline-block",margin:"0 0.5rem"}})])},null,8,["class"])):Ne("",!0),b?.current?(Z(),Se(m,{key:1,property:"name","aria-current":b?.current?"page":null,text:a(b?.title),title:b.title,class:de(v(me)({fontWeight:600}))}
834,null,8,["aria-current","text","title","class"])):(Z(),Se(y,{key:2,property:"item",typeof:"WebPage",to:b?.link},{default:be(()=>[ke(m,{text:b?.title,property:"name"},null,8,["text"])]),_:2},1032,["to"]))],2))),256))],2)],8,g8e)}}}),OG=Fe({__name:"Banner",props:{image:{},parallax:{type:Boolean,default:!1},isBanner:{type:Boolean},isAmiral:{type:Boolean}},setup(e){const t=e,{y:n}=vge(),r=xe(()=>t.parallax?`${n.value/5}px`:"");return(i,a)=>{const s=Nf;return Z(),Ce("div",{class:de([v(me)({position:"relative",_print:{display:"none"}}),e.isBanner?v(me)({marginTop:e.isAmiral?0:{mdDown:"3.5rem"},"& img, & figure, & svg":{height:"100%",width:"100%",objectFit:"cover"},"& [data-description]":{position:"absolute",bottom:0,left:0,margin:0,borderBottomLeftRadius:{mdDown:"1.5em"},bg:{base:"linear-gradient(to left, {colors.primary}, {colors.secondary})",_inverse:"yellow"},color:"{colors.white}",padding:"0.5rem 1rem","& > span":{fontSize:"1.2em"}}}):null])},[Re("div",{style:fo(e.parallax?`transform:translateY(${v(r)})`:null),class:de(v(me)({maxWidth:"94.5rem",height:e.isAmiral?{base:"26rem",sm:"36rem",md:"46rem"}:{base:"32.5rem",sm:"42.5rem",md:"62.5rem"},position:{md:"absolute"},top:0,right:0,width:{md:"calc(50vw - 1.5rem)",xxxl:"calc(50vw + 1.5rem)"},borderRadius:e.isAmiral?"1.5em":{base:"1.5em",md:"0 0 1.5em 0"},overflow:"hidden"}))},[ke(s,{image:e.image,defaultImg:!0,motif:!0},null,8,["image"])],6)],2)}}}),RG=Fe({__name:"HeadPageTitle",props:{title:{}},setup(e){return(t,n)=>(Z(),Ce("h1",null,ht(e.title),1))}}),y8e={name:"Bluesky",shareUrl:"https://bsky.app/intent/compose?text=[u]",icon:{viewBox:"0 0 24 24",path:"M12 11.388c-.906-1.761-3.372-5.044-5.665-6.662c-2.197-1.55-3.034-1.283-3.583-1.033C2.116 3.978 2 4.955 2 5.528c0 .575.315 4.709.52 5.4c.68 2.28 3.094 3.05 5.32 2.803c-3.26.483-6.157 1.67-2.36 5.898c4.178 4.325 5.726-.927 6.52-3.59c.794 2.663 1.708 7.726 6.444 3.59c3.556-3.59.977-5.415-2.283-5.898c2.225.247 4.64-.523 5.319-2.803c.205-.69.52-4.825.52-5.399c0-.575-.116-1.55-.752-1.838c-.549-.248-1.386-.517-3.583 1.033c-2.293 1.621-4.76 4.904-5.665 6.664"},color:"#1185FE"},v8e={name:"Email",shareUrl:"mailto:?body=[u]",args:{title:"&subject=[t]"},icon:{viewBox:"0 0 24 24",path:"M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m-.4 4.25l-6.54 4.09c-.65.41-1.47.41-2.12 0L4.4 8.25a.85.85 0 1 1 .9-1.44L12 11l6.7-4.19a.85.85 0 1 1 .9 1.44"},color:"#7e7e7e"},_8e={name:"Facebook",shareUrl:"https://www.facebook.com/sharer/sharer.php?u=[u]",icon:{viewBox:"0 0 24 24",path:"M14 13.5h2.5l1-4H14v-2c0-1.03 0-2 2-2h1.5V2.14c-.326-.043-1.557-.14-2.857-.14C11.928 2 10 3.657 10 6.7v2.8H7v4h3V22h4z"},color:"#0866FF"},b8e={name:"Hacker News",shareUrl:"https://news.ycombinator.com/submitlink?u=[u]",args:{title:"&t=[t]"},icon:{viewBox:"0 0 24 24",path:"M3 3v18h18V3zm9.61 10.103v4.036h-1.278v-4.123L8.14 6.832h1.48c2.12 3.92 1.975 4.094 2.381 5.023c.493-1.103.203-.987 2.468-5.023h1.393z"},color:"#F0652F"},x8e={name:"Instapaper",shareUrl:"https://www.instapaper.com/text?u=[u]",icon:{viewBox:"0 0 24 24",path:"M5 1a4 4 0 0 0-4 4v14a4 4 0 0 0 4 4h14a4 4 0 0 0 4-4V5a4 4 0 0 0-4-4zm3.364 3.5A.364.364 0 0 0 8 4.864v.727c0 .2.163.364.364.364c.5 0 .92.083 1.21.165c.148.042.244.18.244.334v11.092a.34.34 0 0 1-.243.334c-.292.082-.71.166-1.211.166a.363.363 0 0 0-.364.363v.727c0 .201.163.364.364.364h7.272a.364.364 0 0 0 .364-.364v-.727c0-.2-.163-.363-.364-.363c-.5 0-.92-.084-1.21-.166a.34.34 0 0 1-.244-.334V6.454c0-.153.096-.292.243-.334c.291-.082.71-.165 1.211-.165A.364.364 0 0 0 16 5.591v-.727a.364.364 0 0 0-.364-.364z"},color:"#1F1F1F"},w8e={name:"LINE",shareUrl:"https://social-plugins.line.me/lineit/share?url=[u]",args:{title:"&text=[t]"},icon:{viewBox:"0 0 24 24",path:"M18.664 10.84a.526.526 0 0 1-.526.525h-1.462v.938h1.463a.525.525 0 1 1 0 1.049H16.15a.526.526 0 0 1-.522-.524V8.852c0-.287.235-.525.525-.525h1.988a.526.526 0 0 1-.002 1.05h-1.463v.938h1.463c.29 0 .524.237.524.525m-4.098 2.485a.54.54 0 0 1-.166.025a.515.515 0 0 1-.425-.208l-2.036-2.764v2.45a.525.525 0 0 1-1.047 0V8.852a.522.522 0 0 1 .52-.523c.162 0 .312.086.412.211l2.052 2.775V8.852c0-.287.235-.525.525-.525c.287 0 .525.238.525.525v3.976a.524.524 0 0 1-.36.497m-4.95.027a.526.526 0 0 1-.523-.524V8.852c0-.287.235-.525.525-.525c.289 0 .524.238.524.525v3.976a.527.527 0 0 1-.526.524m-1.53 0H6.099a.528.528 0 0 1-.525-.524V8.852c0-.287.238-.525.525-.525c.29 0 .525.238.525.525v3.45h1.464a.525.525 0 0 1 0 1.05m3.915-10.78c-5.513 0-10 3.643-10 8.118c0 4.01 3.558 7.369 8.363 8.007c.325.068.769.215.881.492c.1.25.066.638.032.9l-.137.85c-.037.25-.2.988.874.537c1.076-.449 5.764-3.398 7.864-5.812C21.314 14.089 22 12.477 22 10.69c0-4.475-4.488-8.118-10-8.118"},color:"#06C655"},S8e={name:"LinkedIn",shareUrl:"https://www.linkedin.com/sharing/share-offsite/?url=[u]",icon:{viewBox:"0 0 24 24",path:"M6.94 5a2 2 0 1 1-4-.002a2 2 0 0 1 4 .002M7 8.48H3V21h4zm6.32 0H9.34V21h3.94v-6.57c0-3.66 4.77-4 4.77 0V21H22v-7.93c0-6.17-7.06-5.94-8.72-2.91z"},color:"#0A66C2"},C8e={name:"Mastodon",shareUrl:"https://mastodonshare.com/?url=[u]",args:{title:"&text=[t]"},icon:{viewBox:"0 0 24 24",path:"M21.26 13.99c-.275 1.41-2.457 2.955-4.963 3.254c-1.306.156-2.593.3-3.965.236c-2.244-.103-4.014-.535-4.014-.535q0 .328.04.62c.292 2.215 2.196 2.347 4 2.41c1.82.061 3.44-.45 3.44-.45l.075 1.646s-1.273.684-3.54.81c-1.252.068-2.8
83405-.032-4.613-.51c-3.923-1.039-4.598-5.22-4.701-9.464c-.032-1.26-.012-2.447-.012-3.44c0-4.34 2.843-5.611 2.843-5.611C7.283 2.298 9.742 2.021 12.3 2h.062c2.557.02 5.018.298 6.451.956c0 0 2.843 1.272 2.843 5.61c0 0 .036 3.201-.396 5.424m-2.957-5.087q0-1.611-.823-2.558c-.566-.631-1.307-.955-2.228-.955c-1.065 0-1.872.41-2.405 1.228l-.518.87l-.519-.87C11.277 5.8 10.47 5.39 9.406 5.39c-.921 0-1.663.324-2.229.955q-.823.947-.822 2.558v5.253h2.081V9.057c0-1.075.452-1.62 1.357-1.62c1 0 1.501.647 1.501 1.927v2.79h2.07v-2.79c0-1.28.5-1.927 1.5-1.927c.905 0 1.358.545 1.358 1.62v5.1h2.08z"},color:"#6364FF"},T8e={name:"Pinterest",shareUrl:"https://pinterest.com/pin/create/button/?url=[u]",args:{title:"&description=[t]",image:"&media=[i]"},icon:{viewBox:"-4.5 -2 24 24",path:"M6.17 13.097c-.506 2.726-1.122 5.34-2.95 6.705c-.563-4.12.829-7.215 1.475-10.5c-1.102-1.91.133-5.755 2.457-4.808c2.86 1.166-2.477 7.102 1.106 7.844c3.741.774 5.269-6.683 2.949-9.109C7.855-.272 1.45 3.15 2.238 8.163c.192 1.226 1.421 1.598.491 3.29C.584 10.962-.056 9.22.027 6.897C.159 3.097 3.344.435 6.538.067c4.04-.466 7.831 1.527 8.354 5.44c.59 4.416-1.823 9.2-6.142 8.855c-1.171-.093-1.663-.69-2.58-1.265"},color:"#BD081C"},k8e={name:"Pocket",shareUrl:"https://getpocket.com/edit?url=[u]",icon:{viewBox:"0 0 24 24",path:"M21.902 4.194A1.82 1.82 0 0 0 20.197 3H3.813A1.823 1.823 0 0 0 2 4.814v6.035l.069 1.2c.29 2.73 1.707 5.116 3.9 6.779c.038.03.078.059.118.089l.025.018a9.897 9.897 0 0 0 3.91 1.727a10.06 10.06 0 0 0 4.05-.014a.261.261 0 0 0 .064-.023a9.906 9.906 0 0 0 3.753-1.691l.025-.018c.04-.03.08-.058.119-.09c2.192-1.663 3.609-4.048 3.898-6.778l.069-1.2V4.814a1.792 1.792 0 0 0-.098-.62m-4.235 6.287l-4.704 4.513a1.372 1.372 0 0 1-1.899 0L6.36 10.48a1.371 1.371 0 1 1 1.898-1.979l3.756 3.601l3.756-3.6a1.372 1.372 0 0 1 1.898 1.978"},color:"#EF3F56"},E8e={name:"Raindrop",shareUrl:"https://app.raindrop.io/add?link=[u]",args:{title:"&title=[t]"},icon:{viewBox:"0 0 48 48",path:"M24 7.14c-3.65 0-7.3 1.4-10.06 4.17-2.23 2.22-3.56 5-4 7.9A11.3 11.3 0 0 0 3 29.6c0 6.2 5.05 11.25 11.25 11.25h19.5c6.2 0 11.25-5.05 11.25-11.24 0-4.67-2.87-8.7-6.94-10.39a14 14 0 0 0-4-7.9v-.01A14.2 14.2 0 0 0 24 7.14m0 2.98c2.87 0 5.74 1.1 7.94 3.3v.01a11 11 0 0 1 2.9 4.98q-.53-.05-1.09-.05c-4.25 0-7.84 2.47-9.75 5.97a11.2 11.2 0 0 0-9.74-5.97l-.01-.01q-.56 0-1.1.05c.5-1.82 1.47-3.54 2.9-4.97h.01c2.2-2.2 5.07-3.3 7.94-3.3m-9.76 11.23a8.23 8.23 0 0 1 8.25 8.25v6.14l-6.44-6.44a11.2 11.2 0 0 1-3.3-7.82q.72-.12 1.48-.13m19.51 0q.77 0 1.5.14a11.2 11.2 0 0 1-3.3 7.8h-.01l-6.44 6.45V29.6a8.23 8.23 0 0 1 8.25-8.24M9.83 22.63a14 14 0 0 0 4.11 8.8l6.43 6.43h-6.12A8.23 8.23 0 0 1 6 29.6a8.2 8.2 0 0 1 3.83-6.98m28.34.01A8.2 8.2 0 0 1 42 29.61a8.23 8.23 0 0 1-8.25 8.25h-6.13l6.44-6.44a14 14 0 0 0 4.1-8.79"},color:"#0B7ED0"},P8e={name:"Reddit",shareUrl:"https://www.reddit.com/submit?url=[u]",args:{title:"&title=[t]"},icon:{viewBox:"0 0 24 24",path:"m11.053 7.815l.751-3.536a2 2 0 0 1 2.372-1.54l3.196.68a2 2 0 1 1-.415 1.956l-3.197-.68l-.666 3.135c1.785.137 3.558.73 5.164 1.7A3.192 3.192 0 0 1 23 12.203v.021a3.193 3.193 0 0 1-1.207 2.55a2.852 2.852 0 0 1-.008.123c0 3.998-4.45 7.03-9.799 7.03c-5.333 0-9.708-3.024-9.705-6.953a5.316 5.316 0 0 1-.01-.181a3.193 3.193 0 0 1 3.454-5.35a11.446 11.446 0 0 1 5.329-1.628m9.285 5.526a1.19 1.19 0 0 0 .662-1.075a1.192 1.192 0 0 0-2.016-.806l-.585.56l-.67-.455c-1.615-1.098-3.452-1.725-5.23-1.764h-1.006c-1.875.028-3.652.6-5.237 1.675l-.664.45l-.583-.55a1.192 1.192 0 1 0-1.315 1.952l.633.29l-.053.695a3.95 3.95 0 0 0 .003.584c0 2.71 3.356 5.03 7.708 5.03c4.371 0 7.799-2.336 7.802-5.107a3.304 3.304 0 0 0 0-.507l-.052-.672zM6.951 13.5a1.5 1.5 0 1 1 3 0a1.5 1.5 0 0 1-3 0m7 0a1.5 1.5 0 1 1 3 0a1.5 1.5 0 0 1-3 0m-1.985 5.103c-1.397 0-2.766-.37-3.881-1.21a.424.424 0 0 1 .597-.597c.945.693 2.123.99 3.269.99s2.33-.275 3.284-.959a.439.439 0 0 1 .732.206a.469.469 0 0 1-.12.423c-.683.797-2.483 1.147-3.88 1.147"},color:"#FF4500"},$8e={name:"Skype",shareUrl:"https://web.skype.com/share?url=[u]",args:{title:"&text=[t]"},icon:{viewBox:"0 0 24 24",path:"M13.31 20.4a8.5 8.5 0 0 1-9.71-9.71a5.25 5.25 0 0 1 7.09-7.09a8.5 8.5 0 0 1 9.71 9.71a5.25 5.25 0 0 1-7.09 7.09m-1.257-3.244h-.04c2.872 0 4.303-1.386 4.303-3.243c0-1.198-.551-2.471-2.726-2.958l-1.983-.44c-.755-.172-1.622-.4-1.622-1.115s.62-1.213 1.724-1.213c2.23 0 2.027 1.528 3.131 1.528c.576 0 1.093-.342 1.093-.93c0-1.37-2.197-2.4-4.056-2.4c-2.021 0-4.173.859-4.173 3.144c0 1.098.394 2.27 2.56 2.813l2.689.671c.816.202 1.018.659 1.018 1.072c0 .687-.684 1.358-1.918 1.358c-2.417 0-2.078-1.857-3.374-1.857c-.58 0-1.003.398-1.003.971c0 1.114 1.352 2.598 4.377 2.598"},color:"#00AFF0"},M8e={name:"Telegram",shareUrl:"https://t.me/share/url?url=[u]",args:{title:"&text=[t]"},icon:{viewBox:"0 0 48 48",path:"M41.42 7.309s3.885-1.515 3.56 2.164c-.107 1.515-1.078 6.818-1.834 12.553l-2.59 16.99s-.216 2.489-2.159 2.922c-1.942.432-4.856-1.515-5.396-1.948c-.432-.325-8.094-5.195-10.792-7.575c-.756-.65-1.62-1.948.108-3.463L33.649 18.13c1.295-1.3 2.59-4.33-2.806-.65l-15.11 10.28s-1.727 1.083-4.964.109l-7.016-2.165s-2.59-1.623 1.835-3.246c10.793-5.086 24.068-10.28 35.831-15.15"},color:"#26A5E4"},A8e={name:"Threads",shareUrl:"https://www.threads.net/intent/post?url=[u]",args:{title:"&text=[t]"},icon:{viewBox:"0 0 24 24",path:"M16.705 11.108c-.162-2.987-1.794-4.697-4.534-4.714c-1.652-.01-3.033.69-3.879 1.973L9.8 9.4c.634-.961 1.635-1.16 2.36-1.153c.903.006 1.583.268 2.024.78c.32.372.535.887.642 
8341.536q-1.202-.204-2.59-.125c-2.606.15-4.28 1.67-4.168 3.781c.057 1.071.59 1.993 1.502 2.595c.77.509 1.764.757 2.795.701c1.363-.075 2.432-.594 3.178-1.545c.566-.722.924-1.658 1.082-2.836c.65.392 1.13.907 1.397 1.527c.452 1.054.478 2.786-.935 4.198c-1.238 1.236-2.726 1.772-4.975 1.788c-2.495-.018-4.382-.819-5.608-2.378c-1.15-1.46-1.743-3.57-1.765-6.269c.022-2.7.616-4.809 1.765-6.27c1.226-1.559 3.113-2.359 5.608-2.377c2.513.019 4.432.822 5.706 2.39c.625.768 1.095 1.734 1.406 2.86l1.766-.47c-.377-1.387-.969-2.582-1.774-3.573c-1.633-2.01-4.033-3.039-7.11-3.06c-3.071.021-5.432 1.055-7.019 3.071c-1.411 1.795-2.14 4.306-2.164 7.436c.024 3.13.753 5.627 2.164 7.422c1.587 2.016 3.96 3.05 7.03 3.071c2.731-.019 4.655-.734 6.24-2.317c2.075-2.073 2.012-4.67 1.329-6.264c-.525-1.225-1.57-2.206-2.98-2.81m-4.438 4.557c-1.142.064-2.328-.448-2.387-1.546c-.043-.814.58-1.722 2.457-1.83a9.4 9.4 0 0 1 2.533.174c-.216 2.702-1.485 3.14-2.603 3.202"},color:"#000000"},I8e={name:"Tumblr",shareUrl:"http://tumblr.com/widgets/share/tool?canonicalUrl=[u]",args:{title:"&title=[t]",image:"&content=[i]",hashtags:"&tags=[h]"},icon:{viewBox:"0 0 24 24",path:"M6.27 7.63A5.76 5.76 0 0 0 10.817 2h3.03v5.152h3.637v3.636h-3.637v5.454c0 .515.198 1.207.91 1.667q.711.46 3.03.455V22h-4.243a4.546 4.546 0 0 1-4.545-4.546v-6.666H6.27z"},color:"#001F38"},D8e={name:"Viber",shareUrl:"viber://forward?text=[u]",args:{title:"%20[t]"},icon:{viewBox:"0 0 24 24",path:"M11.4 0C9.473.028 5.333.344 3.02 2.467C1.302 4.187.696 6.7.633 9.817S.488 18.776 6.12 20.36h.003l-.004 2.416s-.037.977.61 1.177c.777.242 1.234-.5 1.98-1.302c.407-.44.972-1.084 1.397-1.58c3.85.326 6.812-.416 7.15-.525c.776-.252 5.176-.816 5.892-6.657c.74-6.02-.36-9.83-2.34-11.546c-.596-.55-3.006-2.3-8.375-2.323c0 0-.395-.025-1.037-.017zm.058 1.693c.545-.004.88.017.88.017c4.542.02 6.717 1.388 7.222 1.846c1.675 1.435 2.53 4.868 1.906 9.897v.002c-.604 4.878-4.174 5.184-4.832 5.395c-.28.09-2.882.737-6.153.524c0 0-2.436 2.94-3.197 3.704c-.12.12-.26.167-.352.144c-.13-.033-.166-.188-.165-.414l.02-4.018c-4.762-1.32-4.485-6.292-4.43-8.895c.054-2.604.543-4.738 1.996-6.173c1.96-1.773 5.474-2.018 7.11-2.03zm.38 2.602a.304.304 0 0 0-.004.607c1.624.01 2.946.537 4.028 1.592c1.073 1.046 1.62 2.468 1.633 4.334c.002.167.14.3.307.3a.304.304 0 0 0 .3-.304c-.014-1.984-.618-3.596-1.816-4.764c-1.19-1.16-2.692-1.753-4.447-1.765zm-3.96.695a.98.98 0 0 0-.616.117l-.01.002c-.43.247-.816.562-1.146.932l-.008.008q-.4.484-.46.948a.6.6 0 0 0-.007.14q0 .205.065.4l.013.01c.135.48.473 1.276 1.205 2.604c.42.768.903 1.5 1.446 2.186q.405.517.87.984l.132.132q.466.463.984.87a15.5 15.5 0 0 0 2.186 1.447c1.328.733 2.126 1.07 2.604 1.206l.01.014a1.3 1.3 0 0 0 .54.055q.466-.055.948-.46c.004 0 .003-.002.008-.005c.37-.33.683-.72.93-1.148l.003-.01c.225-.432.15-.842-.18-1.12c-.004 0-.698-.58-1.037-.83q-.54-.383-1.113-.71c-.51-.285-1.032-.106-1.248.174l-.447.564c-.23.283-.657.246-.657.246c-3.12-.796-3.955-3.955-3.955-3.955s-.037-.426.248-.656l.563-.448c.277-.215.456-.737.17-1.248a13 13 0 0 0-.71-1.115a28 28 0 0 0-.83-1.035a.82.82 0 0 0-.502-.297zm4.49.88a.303.303 0 0 0-.018.606c1.16.085 2.017.466 2.645 1.15c.63.688.93 1.524.906 2.57a.306.306 0 0 0 .61.013c.025-1.175-.334-2.193-1.067-2.994c-.74-.81-1.777-1.253-3.05-1.346h-.024zm.463 1.63a.305.305 0 0 0-.3.287c-.008.167.12.31.288.32c.523.028.875.175 1.113.422c.24.245.388.62.416 1.164a.304.304 0 0 0 .605-.03c-.03-.644-.215-1.178-.58-1.557c-.367-.378-.893-.574-1.52-.607h-.018z"},color:"#7360f2"},BG={name:"VKontakte",shareUrl:"https://vk.com/share.php?url=[u]",args:{title:"&title=[t]",image:"&image=[i]"},icon:{viewBox:"0 0 24 24",path:"M21.504 18.381h-2.282c-.863 0-1.123-.699-2.67-2.247c-1.352-1.303-1.923-1.465-2.265-1.465c-.473 0-.602.13-.602.781v2.052c0 .555-.18.88-1.63.88a8.9 8.9 0 0 1-6.955-4.17a18.2 18.2 0 0 1-3.6-7.558c0-.342.13-.652.782-.652h2.28c.586 0 .797.261 1.027.864c1.107 3.258 2.996 6.092 3.763 6.092c.294 0 .422-.13.422-.863V8.739c-.097-1.531-.91-1.66-.91-2.214a.563.563 0 0 1 .585-.523h3.584c.49 0 .652.244.652.83v4.53c0 .489.21.651.358.651c.294 0 .52-.162 1.059-.7a18.8 18.8 0 0 0 2.802-4.66a.98.98 0 0 1 .993-.65h2.281c.684 0 .829.342.684.83a28.5 28.5 0 0 1-3.062 5.262c-.246.375-.344.57 0 1.01c.226.342 1.026 1.01 1.563 1.645c.782.78 1.431 1.682 1.922 2.67c.196.636-.131.961-.782.961"},color:"#0077FF"}
834,L8e={name:"WhatsApp",shareUrl:"https://api.whatsapp.com/send?text=[u]",args:{title:"%20[t]"},icon:{viewBox:"0 0 24 24",path:"m7.254 18.494l.724.423A7.953 7.953 0 0 0 12.001 20a8 8 0 1 0-8-8a7.95 7.95 0 0 0 1.084 4.024l.422.724l-.653 2.401zM2.005 22l1.352-4.968A9.953 9.953 0 0 1 2.001 12c0-5.523 4.477-10 10-10s10 4.477 10 10s-4.477 10-10 10a9.954 9.954 0 0 1-5.03-1.355zM8.392 7.308c.134-.01.269-.01.403-.004c.054.004.108.01.162.016c.159.018.334.115.393.249c.298.676.588 1.357.868 2.04c.062.152.025.347-.093.537c-.06.097-.154.233-.263.372c-.113.145-.356.411-.356.411s-.099.118-.061.265c.014.056.06.137.102.205l.059.095c.256.427.6.86 1.02 1.268c.12.116.237.235.363.346c.468.413.998.75 1.57 1l.005.002c.085.037.128.057.252.11c.062.026.126.048.191.066a.35.35 0 0 0 .367-.13c.724-.877.79-.934.796-.934v.002a.482.482 0 0 1 .378-.127c.06.004.121.015.177.04c.531.243 1.4.622 1.4.622l.582.261c.098.047.187.158.19.265c.004.067.01.175-.013.373c-.032.259-.11.57-.188.733a1.158 1.158 0 0 1-.21.302a2.381 2.381 0 0 1-.33.288c-.082.062-.125.09-.125.09a5.063 5.063 0 0 1-.383.22a1.99 1.99 0 0 1-.833.23c-.185.01-.37.024-.556.014c-.008 0-.568-.087-.568-.087a9.448 9.448 0 0 1-3.84-2.046c-.226-.199-.436-.413-.65-.626c-.888-.885-1.561-1.84-1.97-2.742a3.472 3.472 0 0 1-.33-1.413a2.73 2.73 0 0 1 .565-1.68c.073-.094.142-.192.261-.305c.126-.12.207-.184.294-.228a.961.961 0 0 1 .371-.1"},color:"#25D366"},FG={name:"X",shareUrl:"https://x.com/intent/post?url=[u]",args:{title:"&text=[t]",user:"&via=[uid]",hashtags:"&hashtags=[h]"},icon:{viewBox:"0 0 24 24",path:"M18.205 2.25h3.308l-7.227 8.26l8.502 11.24H16.13l-5.214-6.817L4.95 21.75H1.64l7.73-8.835L1.215 2.25H8.04l4.713 6.231zm-1.161 17.52h1.833L7.045 4.126H5.078z"},color:"#000000"},O8e={name:"Xing",shareUrl:"https://www.xing.com/spi/shares/new?url=[u]",icon:{viewBox:"0 0 24 24",path:"M20.462 3.23c.154 0 .308.078.384.155a.49.49 0 0 1 0 .461l-6.076 10.77l3.846 7.076a.49.49 0 0 1 0 .462a.6.6 0 0 1-.385.154h-2.77c-.384 0-.614-.308-.768-.539l-3.923-7.154C11 14.308 16.924 3.77 16.924 3.77c.153-.308.384-.538.769-.538zM8.923 7c.385 0 .616.308.77.538l1.923 3.308c-.154.154-3 5.23-3 5.23c-.154.232-.385.54-.77.54H5.155a.6.6 0 0 1-.384-.154a.49.49 0 0 1 0-.462l2.846-5.154l-1.846-3.23a.49.49 0 0 1 0-.462A.6.6 0 0 1 6.154 7z"},color:"#0698A0"},R8e={facebook:_8e,x:FG,linkedin:S8e,pinterest:T8e,reddit:P8e,bluesky:y8e,threads:A8e,mastodon:C8e,vkontakte:BG,xing:O8e,tumblr:I8e,hackernews:b8e,pocket:k8e,instapaper:x8e,raindrop:E8e,whatsapp:L8e,telegram:M8e,skype:$8e,line:w8e,viber:D8e,email:v8e},B8e={twitter:FG,vk:BG},S8={...R8e,...B8e},F8e={network:"",url:void 0,title:void 0,user:void 0,hashtags:void 0,image:void 0};function z8e(e=F8e){const{network:t,url:n,title:r,user:i,hashtags:a,image:s}=e,o=ul().public.socialShare;if(!S8[t]){const x=Object.keys(S8).sort().join(", ");return xe(()=>null)}const f=S8[t],m=Td(),y=xe(()=>n!==void 0?new URL(n).href:o.baseUrl!==""?new URL(m.fullPath,o.baseUrl).href:""),b=xe(()=>{const x=f.shareUrl,$=f.args?.title&&r?f.args?.title:"",A=f.args?.user&&i?f.args?.user:"",N=f.args?.hashtags&&a?f.args?.hashtags:"",O=f.args?.image&&s?f.args?.image:"";let I=x+$+A+N+O;return I=I.replace(/\[u\]/i,encodeURIComponent(y.value)).replace(/\[t\]/i,encodeURIComponent(r||"")).replace(/\[uid\]/i,encodeURIComponent(i||"")).replace(/\[h\]/i,encodeURIComponent(a||"")).replace(/\[i\]/i,encodeURIComponent(s||"")),new URL(I).href});return xe(()=>{const{args:x,shareUrl:$,...A}=f;return{...A,shareUrl:b.value}})}const N8e=["href","aria-label","rel"],V8e=["viewBox"],q8e=["d"],j8e={key:1,class:"social-share-button__label"},U8e={__name:"SocialShare",props:{styled:{type:Boolean,default:void 0},label:{type:Boolean,default:void 0},icon:{type:Boolean,default:void 0},network:{type:String,required:!0},url:{type:String,default:void 0},title:{type:String,default:void 0},user:{type:String,default:void 0},hashtags:{type:String,default:void 0},image:{type:String,default:void 0},rel:{type:String,default:"nofollow noopener noreferrer"}},setup(e){const t=e,n=ul().public.socialShare,r=t.styled!==void 0?t.styled:n.styled,i=t.label!==void 0?t.label:n.label,a=t.icon!==void 0?t.icon:n.icon,s=z8e({network:t.network,url:t.url,t
834itle:t.title,user:t.user,hashtags:t.hashtags,image:t.image});return(o,f)=>v(s)?(Z(),Ce("a",{key:0,class:de(["social-share-button",[`social-share-button--${e.network}`,{"social-share-button--styled":v(r)}]]),href:v(s).shareUrl,style:fo(`--color-brand:${v(s).color}`),"aria-label":`Share with ${v(s).name}`,rel:e.rel,target:"_blank"},[v(a)?bt(o.$slots,"icon",{},()=>[(Z(),Ce("svg",{class:"social-share-button__icon",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:`${v(s).icon.viewBox}`},[Re("path",{fill:"currentColor","fill-rule":"evenodd",d:`${v(s).icon.path}`},null,8,q8e)],8,V8e))],void 0,0):Ne("",!0),v(i)?(Z(),Ce("span",j8e,[bt(o.$slots,"label",{},()=>[f[0]||(f[0]=_n("Share",-1))])])):Ne("",!0)],14,N8e)):Ne("",!0)}},H8e={xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 11 10"};function W8e(e,t){return Z(),Ce("svg",H8e,[...t[0]||(t[0]=[Re("path",{d:"M10.9 1.8 9.3.1c0-.1-.2-.1-.3 0L3.4 6 2 4.5q-.15-.15-.3 0L.1 6.2q-.15.15 0 .3l3.2 3.4q.15.15.3 0l7.3-7.8q.15-.15 0-.3",class:"i422388224__st0"},null,-1)])])}const zG={render:W8e},G8e={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 25 25"};function Y8e(e,t){return Z(),Ce("svg",G8e,[...t[0]||(t[0]=[Re("path",{fill:"#212121",d:"m13.642 15.834-2.018 2.017a3.11 3.11 0 0 1-4.398-4.397l2.017-2.02a.619.619 0 0 0-.875-.874l-2.017 2.02a4.347 4.347 0 0 0 6.15 6.146l2.017-2.018a.619.619 0 0 0-.874-.874zM18.65 6.275A4.32 4.32 0 0 0 15.578 5a4.32 4.32 0 0 0-3.073 1.272l-2.02 2.019a.619.619 0 1 0 .874.875l2.02-2.018a3.1 3.1 0 0 1 2.198-.91 3.11 3.11 0 0 1 2.198 5.308l-2.017 2.018a.619.619 0 1 0 .875.875l2.017-2.017a4.353 4.353 0 0 0 .002-6.147"},null,-1),Re("path",{fill:"#212121",d:"m13.919 10.199-3.712 3.711a.618.618 0 1 0 .875.875l3.711-3.712a.618.618 0 0 0-.874-.874"},null,-1)])])}const NG={render:Y8e},Z8e=Fe({__name:"Share",props:{sharePrintStyle:{}}
834,setup(e){const t=rT(),{copy:n,copied:r}=nge(),i=me({bgColor:"{colors.black}",color:"{colors.white}",fontSize:"1em",fontWeight:600,margin:0,padding:"0.5rem",borderRadius:"0.3em"});return(a,s)=>{const o=cr,f=nb,m=U8e,y=Kwe,b=Wwe,T=Ywe,x=Vwe,$=Fwe,A=zG,N=NG,O=tb,I=mI,U=eb;return Z(),Se(U,null,{default:be(()=>[ke(f,{asChild:""},{default:be(()=>[ke(o,{title:a.$t("common.socials.sharePage"),link:{text:a.$t("common.socials.sharePage")},type:"button",picto:"share",variante:{classes:"pictoRound",pictoColor:"transparentPrimary",pictoSize:"sm"},showSr:!0,class:de(v(me)({_expanded:{"& svg":{bgColor:"primary",borderRadius:{base:"10em 0 0 10em",md:"0 10em 10em 0"},"& *":{fill:"white"}},_hover:{"& svg":{borderRadius:"50%"}}}}))},null,8,["title","link","class"])]),_:1}),ke(I,{disabled:""},{default:be(()=>[ke(O,{as:"ul",side:"left",align:"center",alignOffset:0,sideOffset:-5,tabindex:"0",class:de([v(Qn)({gap:"0.5rem"}),v(me)({bgColor:"{colors.primary}",padding:{base:".7rem",md:"1rem"},marginBottom:0,borderRadius:"0.5em"})])},{default:be(()=>[(Z(),Ce(Ct,null,ln(["facebook","twitter","linkedin"],B=>Re("li",null,[ke($,{disableHoverableContent:!0},{default:be(()=>[ke(x,null,{default:be(()=>[ke(y,{"as-child":""},{default:be(()=>[(Z(),Se(m,{key:B,network:B,label:!1,styled:!1,"aria-label":`${a.$t("common.socials.shareOn")} ${B} ${a.$t("common.newWindow")}`,title:"",class:de([v(S_)({size:"2.5rem !important",bgColor:"{colors.primary}"}),v(me)({"& svg":{width:"2rem",height:"2rem","& *":{fill:"{colors.white}",transition:"{easings.global}"}},_hover:{bgColor:"{colors.white}","& svg *":{fill:"{colors.black}"}}})])},null,8,["network","aria-label","class"]))]),_:2},1024),ke(T,null,{default:be(()=>[ke(b,{"as-child":"",side:"top",sideOffset:10},{default:be(()=>[B==="email"?(Z(),Ce("p",{key:0,class:de(v(i))},ht(a.$t("common.socials.shareMail"))+" "+ht(a.$t("common.newWindow")),3)):(Z(),Ce("p",{key:1,class:de(v(i))},ht(a.$t("common.socials.shareOn"))+" "+ht(B)+" "+ht(a.$t("common.newWindow")),3))]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024)])),64)),Re("li",null,[ke($,{disableHoverableContent:!0},{default:be(()=>[ke(x,null,{default:be(()=>[ke(y,{"as-child":""},{default:be(()=>[ke(o,{type:"button",link:{text:v(r)?a.$t("common.socials.pageLinked"):a.$t("common.socials.pageLink")},showSr:!0,onClick:s[0]||(s[0]=B=>v(n)(v(t))),class:de([v(S_)({size:"2.5rem !important",bgColor:"{colors.primary}"}),v(me)({"& svg":{width:"2.5rem",height:"2.5rem","& *":{fill:"{colors.white} !important",transition:"{easings.global}"}},_hover:{bgColor:"{colors.white}","& svg *":{fill:"{colors.black} !important"}}})])},{icon:be(()=>[v(r)?(Z(),Se(A,{key:0,"aria-hidden":"true"})):(Z(),Se(N,{key:1,"aria-hidden":"true"}))]),_:1},8,["link","class"])]),_:1}),ke(T,null,{default:be(()=>[ke(b,{"as-child":"",side:"top",sideOffset:10},{default:be(()=>[Re("p",{class:de(v(i))},ht(v(r)?a.$t("common.socials.pageLinked"):a.$t("common.socials.pageLink")),3)]),_:1})]),_:1})]),_:1})]),_:1})])]),_:1},8,["class"])]),_:1})]),_:1})}}}),K8e={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 26 25"};function X8e(e,t){return Z(),Ce("svg",K8e,[...t[0]||(t[0]=[Re("path",{fill:"#E03138",d:"M20.96 8.35h-1.41V2.78H6.78v5.57H5.37c-.81 0-1.58.32-2.15.89-.58.57-.89 1.34-.89 2.15v6.38h4.45v4.45h12.77v-4.45H24v-6.38c0-.81-.32-1.58-.89-2.15-.58-.57-1.34-.89-2.15-.89M8.41 4.41h9.5v3.94h-9.5zm9.51 16.19H8.41v-5.05h9.5v5.05zm4.46-4.45h-2.83v-2.23H6.78v2.23H3.95V11.4c0-.38.15-.74.42-1a1.4 1.4 0 0 1 1-.42h15.59c.38 0 .74.15 1 .42.27.27.42.62.42 1z"},null,-1),Re("path",{fill:"#E03138",d:"M20.6 11.42a.86.86 0 0 0-.46-.14c-.22 0-.43.09-.59.24-.16.16-.24.37-.24.59 0 .17.05.33.14.46.09.14.22.24.37.31a.825.825 0 0 0 .91-.18c.12-.12.2-.27.23-.43s.02-.33-.05-.48a.8.8 0 0 0-.31-.37"},null,-1)])])}const J8e={render:X8e},VG=Fe({__name:"SharePrint",props:{popin:{type:Boolean},pageData:{},data:{}},setup(e){const t=e,n=()=>{t.popin?(sessionStorage.setItem("print","1"),window.location.reload()):window.print()},r=[me({display:"block","& svg":{width:"2rem",height:"2rem","& *":{fill:"{colors.black}",transition:"{easings.global}"}},_hover:{bgColor:"{colors.black}",borderColor:"{colors.white}","& svg *":{fill:"{colors.white}"}}})];return(i,a)=>{const s=cr,o=Z8e;
834return Z(),Ce("ul",{class:de([v(Tr)({gap:0,flexDir:{base:"row",md:"column"}}),v(me)({margin:{mdDown:"1rem 0 0 2.5rem"},marginBottom:"0 !important",_print:{display:"none !important"}})])},[Re("li",{class:de(v(me)({lineHeight:1,fontSize:"1em","& p":{lineHeight:1,fontSize:"1em"}}))},[ke(s,{role:"button",title:i.$t("layout.arianePrint.printPage"),link:{href:"#",text:i.$t("layout.arianePrint.printPage")},variante:{classes:"pictoRound",pictoColor:"transparentPrimary",pictoSize:"sm"},onClick:ti(n,["prevent"]),showSr:!0},{icon:be(()=>[ke(v(J8e),{"aria-hidden":"true"})]),_:1},8,["title","link"])],2),Re("li",{class:de(v(me)({lineHeight:1,fontSize:"1em"}))},[ke(o,{sharePrintStyle:r})],2)],2)}}}),Q8e={key:1},ePe=Fe({__name:"HeadPageTpl1",props:{pageData:{},data:{},popin:{type:Boolean,default:!1},fieldsToShow:{},isEdito:{type:Boolean},isDetail:{type:Boolean},isEvent:{type:Boolean},isNews:{type:Boolean},bannerImg:{},isBanner:{type:Boolean},teaser:{},lastEditDate:{},dataComputed:{}},setup(e){const{t}=Ii(),n=vr(),r=De(n.initialData),i=e,a=xe(()=>{const o=t("dashboard.bandeauId.hello"),f=t("dashboard.bandeauId.espace"),m=n?.feUser?.firstName||"",y=n?.feUser?.lastName||"";return`${o} ${m} ${y} ${f}`}),s=xe(()=>i.data?.type==="offre");return(o,f)=>{const m=WI,y=OG,b=RG,T=XT,x=Nf,$=p1,A=cr,N=NI,O=VG;return Z(),Ce("div",{class:de([v(me)({marginBottom:"7.5rem",paddingTop:e.popin?"5rem":0,position:"relative",_print:{paddingBottom:0,borderBottom:"0.2rem dashed {colors.mediumGray}",margin:"3.5rem 0",padding:0,background:"none"}})])},[Re("div",{class:de([v(Dg)(),v(Tr)({alignItems:"initial",gap:"2.5rem"}),v(me)()])},[e.popin?Ne("",!0):(Z(),Se(m,{key:0})),e.isDetail?e.isDetail?(Z(),Se(N,{key:2,result:e.data,fieldsToShow:e.fieldsToShow,isHeadPage:!0,options:{hn:"h1",showimg:e.data?.pictureShow?.length>0,noLink:!0},class:de([v(me)({gap:{base:"1.5rem",sm:"3rem",md:0},alignItems:"start !important",flexWrap:{mdDown:"wrap"},flexDir:{mdDown:"column-reverse"},_before:{content:{base:"''",_print:"none"},position:"absolute",bottom:{sm:"50%"},top:{smDown:"-11rem"},width:"100vw",left:"50%",bgColor:"lightGray",transform:"translateX(-50%)",height:{base:"27rem",sm:"100vh"},zIndex:-1},"& [data-txt]":{borderRadius:e.data?.pictureShow?.length>0?"0 1rem 1rem 0":"1rem",marginTop:e.data?.pictureShow?.length>0?{md:"7rem"}:null,padding:{base:e.data?.pictureShow?.length>0?"0":"2rem",sm:e.data?.pictureShow?.length>0?"0":"3rem",md:"4rem 6rem 4rem 4.5rem",lg:"5.5rem 6rem"},position:"relative",bgColor:{base:e.data?.pictureShow?.length>0?"none":"white",md:"white"}},"& [data-list-category]":{},"& [data-field-type]":{_print:{marginTop:"1rem"}},"& [data-field-type=teaser]":{fontSize:{md:"p",lg:"h4"},marginBottom:0},"& [data-list-item-title]":{},"& [data-date-container]":{},"& [data-container-access]":{},"& [data-img]":{aspectRatio:e.isEvent?"392/440":"570/430",width:e.isEvent?{base:"100%",md:"39.2rem"}:{base:"100%",md:"45rem",lg:"57rem"},minWidth:e.isEvent?{md:"39.2rem"}:{md:"45rem",lg:"57rem"},maxWidth:e.isEvent?{base:"39.2rem",md:"100%"}:{base:"45rem",md:"100%"},alignSelf:"start","& > *":{aspectRatio:e.isEvent?"346/440":"570/430",width:e.isEvent?"34.6rem":"100%",height:"auto",borderRadius:"inherit",marginLeft:{md:"auto"}},"& [data-description]":{position:"absolute",aspectRatio:"initial",height:"unset",width:"unset",bottom:0,fontSize:"1.2em",bg:{base:"linear-gradient(to left, {colors.primary}, {colors.secondary})",_inverse:"yellow"},color:"white",padding:"0.5rem 1rem","& *":{fontSize:"1em"}}}}),i.data?.profil?v(me)({"& [data-list-category]":{position:"static !",transform:{md:"translateY(calc(-50% - 5rem)) !",lg:"translateY(calc(-50% - 6.5rem)) !"},marginBottom:{md:"-5.5rem"}}}):null])},{default:be(()=>[v(s)?(Z(),Ce("div",{key:0,class:de([v(Qn)({order:-1,gap:"2rem",flexWrap:"wrap",marginBottom:0,_print:{marginBottom:"1rem"}}),v(me)({"& p span":{bgColor:"primary",color:"{colors.white}",padding:"0.8rem",borderRadius:"0.5rem",marginTop:"-0.2rem"}})])},[Re("p",{class:de([v(Qn)({order:-1}),v(me)({color:"primary"})])},ht(e.data.directionService[0].title),3),ke(T,{result:e.dataComputed},null,8,["result"])],2)):Ne("",!0),v(s)?(Z(),Ce("div",Q8e,[ke($,{result:e.data?.dateLimiteDeCandidature.date,config:{type:"date_time"}},{default:be(()=>[...f[0]||(f[0]=[_n(" Date limite de candidature : ",-1)])]),_:1},8,["result"]),e.data?.urlDepotDeCandidature?.href?(Z(),Se(A,{key:0,link:{href:e.data.urlDepotDeCandidature.href,text:"Postuler"},variante:{classes:"button",bgColor:"primary"},class:de(v(me)({marginTop:"2rem","& a":{boxShadow:"none!",padding:"1.5rem 2.5rem!",_hover:{color:"primary!"}}}))},null,8,["link","class"])):Ne("",!0)])):Ne("",!0)]),_:1},8,["result","fieldsToShow","options","class"])):Ne("",!0):(Z(),Ce("div",{key:1,class:de([v(Qn)({gap:0,alignItems:"initial",flexDir:{mdDown:"column"}}
834),v(me)({position:"relative",_before:{content:{base:"''",_print:"none"},position:"absolute",bottom:"50%",width:"100vw",left:"50%",bgColor:"lightGray",transform:"translateX(-50%)",height:"100vh",zIndex:-1}}),e.isBanner?v(me)({minHeight:{base:"46rem",_print:0}}):null])},[e.isBanner?(Z(),Se(y,{key:0,image:e.bannerImg,isBanner:e.isBanner,parallax:!1,isAmiral:!0,class:de(v(me)({width:{md:"50%"},position:"relative"}))},null,8,["image","isBanner","class"])):Ne("",!0),Re("div",{class:de([v(Tr)({alignItems:"start",gap:"1.5rem"}),v(me)({width:e.isBanner?{md:"50%"}:"100%",borderRadius:e.isBanner?"0 1rem 1rem 0":"1rem",marginTop:e.isBanner?{md:"7rem"}:"2.5rem",padding:e.isBanner?{base:"3rem 0 0 0",md:"5rem 6rem"}:{base:"3rem",sm:"5rem"},position:"relative",bgColor:"white","& [data-list-category]":{marginBottom:{mdDown:0},position:{md:"absolute",_print:"relative"},top:0,transform:{md:"translateY(-50%)",_print:"none"}},_inverse:{border:"{borders.sm} {colors.black}"}})])},[v(r)?.pageUids?.idDashboard==e.pageData?.id?(Z(),Se(b,{key:0,title:v(a)},null,8,["title"])):(Z(),Se(b,{key:1,title:e.data?.title||e.data?.ogTitle,class:de(v(me)({marginBottom:0}))},null,8,["title","class"])),e.teaser?(Z(),Ce("p",{key:2,class:de(v(me)({fontSize:"h4",marginBottom:0}))},ht(e.teaser),3)):Ne("",!0),ke(T,{result:e.dataComputed},null,8,["result"]),e.dataComputed?.pictureIcon?.length?(Z(),Se(x,{key:3,image:e.dataComputed?.pictureIcon?.[0],"no-figcaption":!0,"default-img":!1,class:de(v(me)({order:-1}))},null,8,["image","class"])):Ne("",!0),e.lastEditDate?(Z(),Se($,{key:4,result:e.lastEditDate,config:{type:"date_time"}},{default:be(()=>[_n(ht(v(t)("common.dates.lastUpdate"))+" : ",1)]),_:1},8,["result"])):Ne("",!0)],2)],2))],2),ke(O,{popin:e.popin,data:e.dataComputed,pageData:e.pageData,class:de(v(me)({position:{md:"absolute"},top:{md:"calc(50% + 6.5rem)"},right:"2rem",_print:{display:"none !important"}}))},null,8,["popin","data","pageData","class"])],2)}}}),tPe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 705 125"};function nPe(e,t){return Z(),Ce("svg",tPe,[...t[0]||(t[0]=[Re("g",{fill:"#131313","clip-path":"url(#i-1145285373__a)"},[Re("path",{d:"m146.04 0-88 125h-1.88l88-125zM168.9 0 81.76 125h-1.88L167.02 0zM190.84 0l-87.73 125h-1.88L188.96 0zM211.73 0l-87.71 125h-1.88L209.85 0zM234.61 0 147.3 125h-1.88L232.74 0zM255.55 0l-87.89 125h-1.89L253.66 0zM275.77 0 187.5 125h-1.89L273.88 0zM296.37 0l-88.31 125h-1.88l88.3-125zM319.02 0l-87.78 125h-1.89L317.14 0zM340.91 0l-87.89 125h-1.88L339.03 0zM363 0l-87.89 125h-1.88L361.12 0zM21.77 0 0 30.97v-2.68L19.89 0zM383.46 0l-87.89 125h-1.88L381.58 0zM42.23 0 0 60.06v-2.67L40.35 0zM403.1 0l-88.08 125h-1.88L401.21 0zM61.83 0 0 87.75v-2.67L59.94 0zM424.18 0l-87.87 125h-1.88L422.3 0zM82.96 0 0 118.01v-2.68L81.07 0zM446.18 0l-88.07 125h-1.89L444.3 0zM104.91 0 16.84 125h-1.89L103.02 0zM467.03 0l-87.88 125h-1.89L465.15 0zM125.81 0 37.92 125h-1.89L123.92 0zM488.61 0l-87.7 125h-1.89L486.73 0zM511.18 0l-86.94 125h-1.87L509.3 0zM533.02 0l-87.58 125h-1.89L531.14 0zM553.6 0l-87.71 125H464L551.72 0zM576.7 0l-88.81 125H486L574.81 0zM597.42 0l-87.89 125h-1.88L595.54 0zM618.47 0l-87.88 125h-1.89L616.59 0zM639.13 0l-87.89 125h-1.88L637.25 0zM660.69 0 572.8 125h-1.88L658.81 0zM682.78 0 594.9 125h-1.89L680.9 0zM704.88 0l-87.89 125h-1.88L702.99 0zM705 26.24v2.68L637.45 125h-1.89zM705 54.07v2.68L656.91 125h-1.88zM705 84.17v2.68L678.18 125h-1.88zM705 115.22v2.68l-5 7.1h-1.89z"})],-1),Re("defs",null,[Re("clipPath",{id:"i-1145285373__a"},[Re("path",{fill:"#fff",d:"M0 0h705v125H0z"})])],-1)])])}const GI={render:nPe},rPe={key:1},iPe=Fe({__name:"HeadPageTpl2",props:{pageData:{},data:{},popin:{type:Boolean,default:!1},fieldsToShow:{},isEdito:{type:Boolean},isDetail:{type:Boolean},isEvent:{type:Boolean},isNews:{type:Boolean},bannerImg:{},isBanner:{type:Boolean},teaser:{},lastEditDate:{},dataComputed:{}},setup(e){const t=e,n=xe(()=>t.data?.type==="offre");return(r,i)=>{const a=OG,s=WI,o=RG,f=XT,m=Nf,y=p1,b=cr,T=NI,x=VG,$=GI;return Z(),Ce("div",{class:de([v(me)({marginBottom:"5rem",position:"relative",paddingTop:e.popin?"2rem":e.isDetail?{base:"{spacing.preheader}",md:"calc({spacing.header} + {spacing.preheader})"}:{base:"{spacing.preheader}",md:0},_print:{paddingBottom:0,borderBottom:"0.2rem dashed {colors.mediumGray}",margin:"3.5rem 0",padding:0,background:"none"},_before:{bottom:e.isBanner?"4rem":"5.5rem",content:e.isDetail?null:{base:"''",_print:"none"},position:"absolute",width:"100vw",left:"50%",bgColor:"lightGray",transform:"translateX(-50%)",height:"100%",zIndex:-1}})])},[Re("div",{class:de([v(Dg)(),v(Tr)({alignItems:"initial",gap:"2.5rem"}),v(me)()])},[e.isDetail?e.isDetail?(Z(),Ce(Ct,{key:1},[e.popin?Ne("",!0):(Z(),Se(s,{key:0})),ke(T,{result:e.data,fieldsToShow:e.fieldsToShow,isHeadPage:!0,options:{hn:"h1",showimg:e.data?.pictureShow?.length>0,noLink:!0}
834,class:de([v(me)({gap:e.isEvent?{base:"0rem!",md:"12rem!",lg:"16rem!"}:{base:"0rem!",md:"6rem!",lg:"11rem!"},flexWrap:{smDown:"wrap"},flexDir:{mdDown:"column-reverse"},_after:{content:{base:"''",_print:"none"},position:"absolute",bottom:"11rem",width:"100vw",left:"50%",bgColor:"lightGray",transform:"translateX(-50%)",height:"100vh",zIndex:-2},"& [data-txt]":{borderRadius:"1rem",padding:{base:"6rem 0rem 2rem 0rem",sm:"6rem 0 2rem 0",md:"3.5rem 6rem 2rem 3.5rem",lg:"5rem 6rem 2rem 5rem",xl:"5rem 5rem 2rem 5rem"},position:"relative",bgColor:"white",marginTop:{md:"2rem",_print:"1.5rem"},_before:{content:e.isEvent?null:{base:"''",_print:"none"},position:"absolute",top:"-2rem",left:"-3rem",width:"10rem",height:"8rem",borderRadius:"0 1.5em",zIndex:-1,bg:{base:"linear-gradient(270deg, var(--cim_primary_color) 50%, var(--cim_secondary_color) 100%)",_renforce:"red",_inverse:"yellow"}},_after:{content:{base:"''",md:"none"},position:"absolute",top:0,left:"-3rem",width:"100vw",height:"100%",bgColor:"white",borderRadius:"1.5rem",zIndex:-1}},"& [data-list-category]":{},"& [data-field-type]":{_print:{marginTop:"1rem"}},"& [data-field-type=teaser]":{fontSize:{base:"p",lg:"h4"},marginBottom:0},"& [data-list-item-title]":{},"& [data-date-container]:not([data-date=sessions])":{position:{base:"absolute",_print:"relative"},width:{base:"initial!",md:"8rem!"},padding:{mdDown:"1.5rem 2rem"},gap:{mdDown:"1rem"},top:{mdDown:0}
834,left:{mdDown:"-1rem"},zIndex:{mdDown:2},transform:{mdDown:"translateY(calc(-100% + 3.56rem))"},flexDir:{mdDown:"row"},"& svg":{minHeight:"2rem",minWidth:"2rem",transform:{mdDown:"rotate(0deg)"}},_before:{width:{mdDown:"100%"}}},"& [data-container-access]":{},"& [data-img]":{aspectRatio:e.isEvent?"initial":"507/385",width:e.isEvent?{base:"100%",md:"33.7rem",lg:"39.7rem"}:{base:"100%",md:"42rem",lg:"50.7rem"},minWidth:e.isEvent?{md:"33.7rem",lg:"39.7rem"}:{md:"42rem",lg:"50.7rem"},maxWidth:e.isEvent?{base:"33.7rem",md:"100%"}:{base:"42rem",md:"100%"},alignSelf:"start",zIndex:1,"& > *":{aspectRatio:e.isEvent?"337/430":"507/385",width:e.isEvent?"33.7rem":"100%",height:"auto",borderRadius:"inherit",marginLeft:{sm:"1rem",md:"auto"}},"& [data-description]":{position:"absolute",aspectRatio:"initial",height:"unset",width:"unset",bottom:e.isEvent?{base:"unset",md:0}:0,fontSize:"1.2em",bg:{base:"linear-gradient(to left, {colors.primary}, {colors.secondary})",_inverse:"yellow"},color:"white",padding:"0.5rem 1rem","& *":{fontSize:"1em"}}}})])},{default:be(()=>[v(n)?(Z(),Ce("div",{key:0,class:de([v(Qn)({order:-1,gap:"2rem",flexWrap:"wrap",marginBottom:0,_print:{marginBottom:"1rem"}}),v(me)({"& p span":{bgColor:"primary",color:"{colors.white}",padding:"0.8rem",borderRadius:"0.5rem",marginTop:"-0.2rem"}})])},[Re("p",{class:de([v(Qn)({order:-1}),v(me)({color:"primary"})])},ht(e.data.directionService[0].title),3),ke(f,{result:e.dataComputed},null,8,["result"])],2)):Ne("",!0),v(n)?(Z(),Ce("div",rPe,[ke(y,{result:e.data?.dateLimiteDeCandidature.date,config:{type:"date_time"}},{default:be(()=>[...i[0]||(i[0]=[_n(" Date limite de candidature : ",-1)])]),_:1},8,["result"]),e.data?.urlDepotDeCandidature?.href?(Z(),Se(b,{key:0,link:{href:e.data.urlDepotDeCandidature.href,text:"Postuler"},variante:{classes:"button",bgColor:"primary"},class:de(v(me)({marginTop:"2rem","& a":{boxShadow:"none!",padding:"1.5rem 2.5rem!",_hover:{color:"primary!"}}}))},null,8,["link","class"])):Ne("",!0)])):Ne("",!0)]),_:1},8,["result","fieldsToShow","options","class"])],64)):Ne("",!0):(Z(),Ce("div",{key:0,class:de([v(Qn)({alignItems:"initial",flexDir:{mdDown:"column"},gap:{base:0,md:"3rem"}}),v(me)({position:"relative"}),e.isBanner?v(me)({minHeight:{base:"42.5rem",md:"62.5rem"}}):null])},[e.isBanner?(Z(),Se(a,{key:0,image:e.bannerImg,isBanner:e.isBanner,isAmiral:!1,parallax:!1,class:de(v(me)({width:{md:"50%"},position:"relative"}))},null,8,["image","isBanner","class"])):Ne("",!0),Re("div",{class:de([v(Tr)({alignItems:"initial",gap:{base:"1.5rem",sm:"3rem"}}),v(me)({width:e.isBanner?{md:"50%"}:"11/12",padding:e.isBanner?{base:"0 0 2rem 0",md:"0 0 2rem 2rem"}:{base:"0 0 5rem 0",md:"0 0 11rem 0"},position:"relative",paddingTop:{md:"calc({spacing.header} + {spacing.preheader})"},"& [data-list-category]":{marginBottom:0}})])},[e.popin?Ne("",!0):(Z(),Se(s,{key:0,class:de(v(me)({order:-2}))},null,8,["class"])),Re("div",{class:de([v(Tr)({alignItems:"initial",gap:"1rem",justifyContent:"center"}),v(me)({flex:"1 1 auto"})])},[ke(o,{title:e.data?.title||e.data?.ogTitle,class:de(v(me)({marginBottom:0}))},null,8,["title","class"]),e.teaser?(Z(),Ce("p",{key:0,class:de(v(me)({fontSize:"h4",marginBottom:0}))},ht(e.teaser),3)):Ne("",!0),ke(f,{result:e.dataComputed},null,8,["result"]),e.dataComputed?.pictureIcon?.length?(Z(),Se(m,{key:1,image:e.dataComputed?.pictureIcon?.[0],"no-figcaption":!0,"default-img":!1,class:de(v(me)({order:-2}))},null,8,["image","class"])):Ne("",!0),e.lastEditDate?(Z(),Se(y,{key:2,result:e.lastEditDate,config:{type:"date_time"}},{default:be(()=>[_n(ht(r.$t("common.dates.lastUpdate"))+" : ",1)]),_:1},8,["result"])):Ne("",!0)],2)],2)],2))],2),ke(x,{popin:e.popin,data:e.dataComputed,pageData:e.pageData,class:de(v(me)({position:{md:"absolute"},bottom:e.isDetail?"4rem":0,right:{md:e.isBanner?"2rem":"4rem",xl:"2rem"},marginLeft:{sm:"6rem",md:null},transform:e.isBanner?{md:"translateY(-6rem)"}:{md:"translateY(-9rem)"},_print:{display:"none !important"}}))},null,8,["popin","data","pageData","class"]),ke($,{"aria-hidden":"true",class:de([v(ei)({fill:"lightGray",size:"70.5rem",height:"12.5rem"}),v(me)({display:{_print:"none"},position:"absolute",bottom:0,right:0,zIndex:-1})])},null,8,["class"])],2)}}}),aPe=Fe({__name:"HeadPage",props:{pageData:{},data:{},popin:{type:Boolean,default:!1},fieldsToShow:{}},setup(e){const t=e,{isAmiral:n}=zr(),r=t.pageData?.appearance?.backendLayout==="detail",i=t.pageData?.appearance?.backendLayout==="editorial";t.pageData?.appearance?.backendLayout;const a=t?.data?.type==="events",s=t?.data?.type==="news",o=xe(()=>r?t.data?.pictureShow?.[0]:t.pageData?.pictureBannerEditorial?.[1]),f=xe(()=>r?!1:o.value),m=xe(()=>t.data?.type==="offre"),y=xe(()=>
834t.data?.subtitle||t.data?.teaser),b=xe(()=>t.pageData?.cim_base_hide_update_date||t.isError?!1:t.data?.tstamp||+t.pageData?.tsedit),T=xe(()=>r||m?t.data:t.pageData);return(x,$)=>{const A=ePe,N=iPe;return v(n)()?(Z(),Se(A,{key:0,data:e.data,popin:e.popin,isEdito:i,isDetail:r,isEvent:a,isNews:s,bannerImg:v(o),isBanner:v(f),teaser:v(y),lastEditDate:v(b),dataComputed:v(T),fieldsToShow:e.fieldsToShow,pageData:e.pageData},null,8,["data","popin","bannerImg","isBanner","teaser","lastEditDate","dataComputed","fieldsToShow","pageData"])):(Z(),Se(N,{key:1,data:e.data,popin:e.popin,isEdito:i,isDetail:r,isEvent:a,isNews:s,bannerImg:v(o),isBanner:v(f),teaser:v(y),lastEditDate:v(b),dataComputed:v(T),fieldsToShow:e.fieldsToShow},null,8,["data","popin","bannerImg","isBanner","teaser","lastEditDate","dataComputed","fieldsToShow"]))}}}),oPe=Fe({__name:"TableOfContent",props:{items:{}},setup(e){const t=Td(),n=i=>{ur(()=>{const a=document.querySelector(i);if(!a)return;const o=a.getBoundingClientRect().top+window.scrollY-120;window.scrollTo({top:o,behavior:"smooth"}),a.focus({preventScroll:!0})})},r=xe(()=>t?.hash);return(i,a)=>{const s=f1,o=fi;return e.items?.length>1?(Z(),Se(o,{key:0,header:i.$t("blocks.tableOfContent.title"),titleInside:!0,noAnchor:!0,class:de(v(me)({"& h2":{paddingBottom:"0 !important",marginTop:"0 !important",_before:{display:"none !important"}},"& [data-bloc-content]":{padding:{base:"0 1.5rem",sm:"0 4rem",md:"1.5rem 4.5rem"},_before:{content:{base:"''",_print:"none"},position:"absolute",top:"0",left:"0",width:".3rem",height:"100%",bg:{base:"linear-gradient(to top, {colors.primary}, {colors.secondary})",_inverse:"black"}},"& > div":{_print:{marginBottom:"1rem"}}}}))},{content:be(()=>[Re("div",null,[Re("ol",{class:de([v(me)({marginBottom:0,columnCount:{base:1,sm:2}})])},[(Z(!0),Ce(Ct,null,ln(e.items,(f,m)=>(Z(),Ce("li",{key:m,class:de([v(me)({_marker:{fontWeight:700},transition:"{easings.global}",_hover:{transform:"translateX(1rem)",color:"inherit",transition:"{easings.global}"}})])},[ke(s,{link:{text:f.title,href:`#c${f.id}`},onClick:ti(y=>n(`#c${f.id}`),["prevent"]),class:de([v(Qn)({flexDir:"row-reverse",justifyContent:"start",alignItems:"start",gap:"1rem"}),v(me)({"& span":{maxWidth:"100%",display:"block",overflowWrap:"break-word"},_print:{marginBottom:".5rem"}}),`#c${f.id}`===v(r)?v(me)({fontWeight:700}):null])},null,8,["link","onClick","class"])],2))),128))],2)])]),_:1},8,["header","class"])):Ne("",!0)}}}),qG={"application/prs.cww":["cww"],"application/prs.xsf+xml":["xsf"],"application/vnd.1000minds.decision-model+xml":["1km"],"application/vnd.3gpp.pic-bw-large":["plb"],"application/vnd.3gpp.pic-bw-small":["psb"],"application/vnd.3gpp.pic-bw-var":["pvb"],"application/vnd.3gpp2.tcap":["tcap"],"application/vnd.3m.post-it-notes":["pwn"],"application/vnd.accpac.simply.aso":["aso"],"application/vnd.accpac.simply.imp":["imp"],"application/vnd.acucobol":["acu"],"application/vnd.acucorp":["atc","acutc"],"application/vnd.adobe.air-application-installer-package+zip":["air"],"application/vnd.adobe.formscentral.fcdt":["fcdt"],"application/vnd.adobe.fxp":["fxp","fxpl"],"application/vnd.adobe.xdp+xml":["xdp"],"application/vnd.adobe.xfdf":["*xfdf"],"application/vnd.age":["age"],"application/vnd.ahead.space":["ahead"],"application/vnd.airzip.filesecure.azf":["azf"],"application/vnd.airzip.filesecure.azs":["azs"],"application/vnd.amazon.ebook":["azw"],"application/vnd.americandynamics.acc":["acc"],"application/vnd.amiga.ami":["ami"],"application/vnd.android.package-archive":["apk"],"application/vnd.anser-web-certificate-issue-initiation":["cii"],"application/vnd.anser-web-funds-transfer-initiation":["fti"],"application/vnd.antix.game-component":["atx"],"application/vnd.apple.installer+xml":["mpkg"],"application/vnd.apple.keynote":["key"],"application/vnd.apple.mpegurl":["m3u8"],"application/vnd.apple.numbers":["numbers"],"application/vnd.apple.pages":["pages"],"application/vnd.apple.pkpass":["pkpass"],"application/vnd.aristanetworks.swi":["swi"],"application/vnd.astraea-software.iota":["iota"],"application/vnd.audiograph":["aep"],"application/vnd.autodesk.fbx":["fbx"],"application/vnd.balsamiq.bmml+xml":["bmml"],"application/vnd.blueice.multipass":["mpm"],"application/vnd.bmi":["bmi"],"application/vnd.businessobjects":["rep"],"application/vnd.chemdraw+xml":["cdxml"],"application/vnd.chipnuts.karaoke-mmd":["mmd"],"application/vnd.cinderella":["cdy"],"application/vnd.citationstyles.style+xml":["csl"],"application/vnd.claymore":["cla"],"application/vnd.cloanto.rp9":["rp9"],"application/vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"application/vnd.cluetrust.cartomobile-config":["c11amc"],"application/vnd.cluetrust.cartomobile-config-pkg":["c11amz"],"application/vnd.commonspace"
834:["csp"],"application/vnd.contact.cmsg":["cdbcmsg"],"application/vnd.cosmocaller":["cmc"],"application/vnd.crick.clicker":["clkx"],"application/vnd.crick.clicker.keyboard":["clkk"],"application/vnd.crick.clicker.palette":["clkp"],"application/vnd.crick.clicker.template":["clkt"],"application/vnd.crick.clicker.wordbank":["clkw"],"application/vnd.criticaltools.wbs+xml":["wbs"],"application/vnd.ctc-posml":["pml"],"application/vnd.cups-ppd":["ppd"],"application/vnd.curl.car":["car"],"application/vnd.curl.pcurl":["pcurl"],"application/vnd.dart":["dart"],"application/vnd.data-vision.rdz":["rdz"],"application/vnd.dbf":["dbf"],"application/vnd.dcmp+xml":["dcmp"],"application/vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"application/vnd.dece.ttml+xml":["uvt","uvvt"],"application/vnd.dece.unspecified":["uvx","uvvx"],"application/vnd.dece.zip":["uvz","uvvz"],"application/vnd.denovo.fcselayout-link":["fe_launch"],"application/vnd.dna":["dna"],"application/vnd.dolby.mlp":["mlp"],"application/vnd.dpgraph":["dpg"],"application/vnd.dreamfactory":["dfac"],"application/vnd.ds-keypoint":["kpxx"],"application/vnd.dvb.ait":["ait"],"application/vnd.dvb.service":["svc"],"application/vnd.dynageo":["geo"],"application/vnd.ecowin.chart":["mag"],"application/vnd.enliven":["nml"],"application/vnd.epson.esf":["esf"],"application/vnd.epson.msf":["msf"],"application/vnd.epson.quickanime":["qam"],"application/vnd.epson.salt":["slt"],"application/vnd.epson.ssf":["ssf"],"application/vnd.eszigno3+xml":["es3","et3"],"application/vnd.ezpix-album":["ez2"],"application/vnd.ezpix-package":["ez3"],"application/vnd.fdf":["*fdf"],"application/vnd.fdsn.mseed":["mseed"],"application/vnd.fdsn.seed":["seed","dataless"],"application/vnd.flographit":["gph"],"application/vnd.fluxtime.clip":["ftc"],"application/vnd.framemaker":["fm","frame","maker","book"],"application/vnd.frogans.fnc":["fnc"],"application/vnd.frogans.ltf":["ltf"],"application/vnd.fsc.weblaunch":["fsc"],"application/vnd.fujitsu.oasys":["oas"],"application/vnd.fujitsu.oasys2":["oa2"],"application/vnd.fujitsu.oasys3":["oa3"],"application/vnd.fujitsu.oasysgp":["fg5"],"application/vnd.fujitsu.oasysprs":["bh2"],"application/vnd.fujixerox.ddd":["ddd"],"application/vnd.fujixerox.docuworks":["xdw"],"application/vnd.fujixerox.docuworks.binder":["xbd"],"application/vnd.fuzzysheet":["fzs"],"application/vnd.genomatix.tuxedo":["txd"],"application/vnd.geogebra.file":["ggb"],"application/vnd.geogebra.slides":["ggs"],"application/vnd.geogebra.tool":["ggt"],"application/vnd.geometry-explorer":["gex","gre"],"application/vnd.geonext":["gxt"],"application/vnd.geoplan":["g2w"],"application/vnd.geospace":["g3w"],"application/vnd.gmx":["gmx"],"application/vnd.google-apps.document":["gdoc"],"application/vnd.google-apps.drawing":["gdraw"],"application/vnd.google-apps.form":["gform"],"application/vnd.google-apps.jam":["gjam"],"application/vnd.google-apps.map":["gmap"],"application/vnd.google-apps.presentation":["gslides"],"application/vnd.google-apps.script":["gscript"],"application/vnd.google-apps.site":["gsite"],"application/vnd.google-apps.spreadsheet":["gsheet"],"application/vnd.google-earth.kml+xml":["kml"],"application/vnd.google-earth.kmz":["kmz"],"application/vnd.gov.sk.xmldatacontainer+xml":["xdcf"],"application/vnd.grafeq":["gqf","gqs"],"application/vnd.groove-account":["gac"],"application/vnd.groove-help":["ghf"],"application/vnd.groove-identity-message":["gim"],"application/vnd.groove-injector":["grv"],"application/vnd.groove-tool-message":["gtm"],"application/vnd.groove-tool-template":["tpl"],"application/vnd.groove-vcard":["vcg"],"application/vnd.hal+xml":["hal"],"application/vnd.handheld-entertainment+xml":["zmm"],"application/vnd.hbci":["hbci"],"application/vnd.hhe.lesson-player":["les"],"application/vnd.hp-hpgl":["hpgl"],"application/vnd.hp-hpid":["hpid"],"application/vnd.hp-hps":["hps"],"application/vnd.hp-jlyt":["jlt"],"application/vnd.hp-pcl":["pcl"],"application/vnd.hp-pclxl":["pclxl"],"application/vnd.hydrostatix.sof-data":["sfd-hdstx"],"application/vnd.ibm.minipay":["mpy"],"application/vnd.ibm.modcap":["afp","listafp","list3820"],"application/vnd.ibm.rights-management":["irm"],"application/vnd.ibm.secure-container":["sc"],"application/vnd.iccprofile":["icc","icm"],"application/vnd.igloader":["igl"],"application/vnd.immervision-ivp":["ivp"],"application/vnd.immervision-ivu":["ivu"],"application/vnd.insors.igm":["igm"],"application/vnd.intercon.formnet":["xpw","xpx"],"application/vnd.intergeo":["i2g"],"application/vnd.intu.qbo":["qbo"],"application/vnd.intu.qfx":["qfx"],"application/vnd.ipunplugged.rcprofile":["rcprofile"],"application/vnd.irepository.package+xml":["irp"],"application/vnd.is-xpr":["xpr"],"application/vnd.isac.fcs":["fcs"],"application/vnd.jam":["jam"],"application/vnd.jcp.javame.midlet-rms":["rms"],"application/vnd.jisp":["jisp"],"application/vnd.joost.joda-archive":["joda"],"application/vnd.kahootz":["ktz","ktr"],"application/vnd.kde.karbon":["karbon"],"application/vnd.kde.kchart":["chrt"],"application/vnd.kde.kformula":["kfo"],"application/vnd.kde.kivio":["flw"],"application/vnd.kde.kontour":["kon"],"application/vnd.kde.kpresenter":["kpr","kpt"],"application/vnd.kde.kspread":["ksp"],"application/vnd.kde.kword":["kwd","kwt"],"application/vnd.kenameaapp":["htke"],"application/vnd.kidspiration":["kia"],"application/vnd.kinar":["kne","knp"],"application/vnd.koan":["skp","skd","skt","skm"],"application/vnd.kodak-descriptor":["sse"],"application/vnd.las.las+xml":["lasxml"],"application/vnd.llamagraphics.life-balance.desktop":["lbd"],"application/vnd.llamagraphics.life-balance.exchange+xml":["lbe"],"application/vnd.lotus-1-2-3":["123"],"application/vnd.lotus-approach":["apr"],"application/vnd.lotus-freelance":["pre"],"application/vnd.lotus-notes":["nsf"],"application/vnd.lotus-organizer":["org"],"application/vnd.lotus-screencam":["scm"],"application/vnd.lotus-wordpro":["lwp"],"application/vnd.macports.portpkg":["portpkg"],"application/vnd.mapbox-vector-tile":["mvt"],"application/vnd.mcd":["mcd"],"application/vnd.medcalcdata":["mc1"],"application/vnd.mediastation.cdkey":["cdkey"],"application/vnd.mfer":["mwf"],"application/vnd.mfmp":["mfm"],"application/vnd.micrografx.flo":["flo"],"application/vnd.micrografx.igx":["igx"],"application/vnd.mif":["mif"],"application/vnd.mobius.daf":["daf"],"application/vnd.mobius.dis":["dis"],"application/vnd.mobius.mbk":["mbk"],"application/vnd.mobius.mqy":["mqy"],"application/vnd.mobius.msl":["msl"],"application/vnd.mobius.plc":["plc"],"application/vnd.mobius.txf":["txf"],"application/vnd.mophun.application":["mpn"],"application/vnd.mophun.certificate":["mpc"],"application/vnd.mozilla.xul+xml":["xul"],"application/vnd.ms-artgalry":["cil"],"application/vnd.ms-cab-compressed":["cab"],"application/vnd.ms-excel":["xls","xlm","xla","xlc","xlt","xlw"],"application/vnd.ms-excel.addin.macroenabled.12":["xlam"],"application/vnd.ms-excel.sheet.binary.macroenabled.12":["xlsb"],"application/vnd.ms-excel.sheet.macroenabled.12":["xlsm"],"application/vnd.ms-excel.template.macroenabled.12":["xltm"],"application/vnd.ms-fontobject":["eot"],"application/vnd.ms-htmlhelp":["chm"],"application/vnd.ms-ims":["ims"],"application/vnd.ms-lrm":["lrm"],"application/vnd.ms-officetheme":["thmx"],"application/vnd.ms-outlook":["msg"],"application/vnd.ms-pki.seccat":["cat"],"application/vnd.ms-pki.stl":["*stl"],"application/vnd.ms-powerpoint":["ppt","pps","pot"],"application/vnd.ms-powerpoint.addin.macroenabled.12":["ppam"],"application/vnd.ms-powerpoint.presentation.macroenabled.12":["pptm"],"application/vnd.ms-powerpoint.slide.macroenabled.12":["sldm"],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":["ppsm"],"application/vnd.ms-powerpoint.template.macroenabled.12":["potm"],"application/vnd.ms-project":["*mpp","mpt"],"application/vnd.ms-visio.viewer":["vdx"],"application/vnd.ms-word.document.macroenabled.12":["docm"],"application/vnd.ms-word.template.macroenabled.12":["dotm"],"application/vnd.ms-works":["wps","wks","wcm","wdb"],"application/vnd.ms-wpl":["wpl"],"application/vnd.ms-xpsdocument":["xps"],"application/vnd.mseq":["mseq"],"application/vnd.musician":["mus"],"application/vnd.muvee.style":["msty"],"application/vnd.mynfc":["taglet"],"application/vnd.nato.bindingdataobject+xml":["bdo"],"application/vnd.neurolanguage.nlu":["nlu"],"application/vnd.nitf":["ntf","nitf"],"application/vnd.noblenet-directory":["nnd"],"application/vnd.noblenet-sealer":["nns"],"application/vnd.noblenet-web":["nnw"],"application/vnd.nokia.n-gage.ac+xml":["*ac"],"application/vnd.nokia.n-gage.data":["ngdat"],"application/vnd.nokia.n-gage.symbian.install":["n-gage"],"application/vnd.nokia.radio-preset":["rpst"],"application/vnd.nokia.radio-presets":["rpss"],"application/vnd.novadigm.edm":["edm"],"application/vnd.novadigm.edx":["edx"],"application/vnd.novadigm.ext":["ext"],"application/vnd.oasis.opendocument.chart":["odc"],"application/vnd.oasis.opendocument.chart-template":["otc"],"application/vnd.oasis.opendocument.database":["odb"],"application/vnd.oasis.opendocument.formula":["odf"],"application/vnd.oasis.opendocument.formula-template":["odft"],"application/vnd.oasis.opendocument.graphics":["odg"],"application/vnd.oasis.opendocument.graphics-template":["otg"],"application/vnd.oasis.opendocument.image":["odi"],"application/vnd.oasis.opendocument.image-template":["oti"],"application/vnd.oasis.opendocument.presentation":["odp"],"application/vnd.oasis.opendocument.presentation-template":["otp"],"application/vnd.oasis.opendocument.spreadsheet":["ods"],"application/vnd.oasis.opendocument.spreadsheet-template":["ots"],"application/vnd.oasis.opendocument.text":["odt"],"application/vnd.oasis.opendocument.text-master":["odm"],"application/vnd.oasis.opendocument.text-template":["ott"],"application/vnd.oasis.opendocument.text-web":["oth"],"application/vnd.olpc-sugar":["xo"],"application/vnd.oma.dd2+xml":["dd2"],"application/vnd.openblox.game+xml":["obgx"],"application/vnd.openofficeorg.extension":["oxt"],"application/vnd.openstreetmap.data+xml":["osm"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"application/vnd.openxmlformats-officedocument.presentationml.slide":["sldx"],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":["ppsx"],"application/vnd.openxmlformats-officedocument.presentationml.template":["potx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":["xltx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":["dotx"],"application/vnd.osgeo.mapguide.package":["mgp"],"application/vnd.osgi.dp":["dp"],"application/vnd.osgi.subsystem":["esa"],"application/vnd.palm":["pdb","pqa","oprc"],"application/vnd.pawaafile":["paw"],"application/vnd.pg.format":["str"],"application/vnd.pg.osasli":["ei6"],"application/vnd.picsel":["efif"],"application/vnd.pmi.widget":["wg"],"application/vnd.pocketlearn":["plf"],"application/vnd.powerbuilder6":["pbd"],"application/vnd.previewsystems.box":["box"],"application/vnd.procrate.brushset":["brushset"],"application/vnd.procreate.brush":["brush"],"application/vnd.procreate.dream":["drm"],"application/vnd.proteus.magazine":["mgz"],"application/vnd.publishare-delta-tree":["qps"],"application/vnd.pvi.ptid1":["ptid"],"application/vnd.pwg-xhtml-print+xml":["xhtm"],"application/vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"application/vnd.rar":["rar"],"application/vnd.realvnc.bed":["bed"],"application/vnd.recordare.musicxml":["mxl"],"application/vnd.recordare.musicxml+xml":["musicxml"],"application/vnd.rig.cryptonote":["cryptonote"],"application/vnd.rim.cod":["cod"],"application/vnd.rn-realmedia":["rm"],"application/vnd.rn-realmedia-vbr":["rmvb"],"application/vnd.route66.link66+xml":["link66"],"application/vnd.sailingtracker.track":["st"],"application/vnd.seemail":["see"],"application/vnd.sema":["sema"],"application/vnd.semd":["semd"],"application/vnd.semf":["semf"],"application/vnd.shana.informed.formdata":["ifm"],"application/vnd.shana.informed.formtemplate":["itp"],"application/vnd.shana.informed.interchange":["iif"],"application/vnd.shana.informed.package":["ipk"],"application/vnd.simtech-mindmapper":["twd","twds"],"application/vnd.smaf":["mmf"],"application/vnd.smart.teacher":["teacher"],"application/vnd.software602.filler.form+xml":["fo"],"application/vnd.solent.sdkm+xml":["sdkm","sdkd"],"application/vnd.spotfire.dxp":["dxp"],"application/vnd.spotfire.sfs":["sfs"],"application/vnd.stardivision.calc":["sdc"],"application/vnd.stardivision.draw":["sda"],"application/vnd.stardivision.impress":["sdd"],"application/vnd.stardivision.math":["smf"],"application/vnd.stardivision.writer":["sdw","vor"],"application/vnd.stardivision.writer-global":["sgl"],"application/vnd.stepmania.package":["smz
834ip"],"application/vnd.stepmania.stepchart":["sm"],"application/vnd.sun.wadl+xml":["wadl"],"application/vnd.sun.xml.calc":["sxc"],"application/vnd.sun.xml.calc.template":["stc"],"application/vnd.sun.xml.draw":["sxd"],"application/vnd.sun.xml.draw.template":["std"],"application/vnd.sun.xml.impress":["sxi"],"application/vnd.sun.xml.impress.template":["sti"],"application/vnd.sun.xml.math":["sxm"],"application/vnd.sun.xml.writer":["sxw"],"application/vnd.sun.xml.writer.global":["sxg"],"application/vnd.sun.xml.writer.template":["stw"],"application/vnd.sus-calendar":["sus","susp"],"application/vnd.svd":["svd"],"application/vnd.symbian.install":["sis","sisx"],"application/vnd.syncml+xml":["xsm"],"application/vnd.syncml.dm+wbxml":["bdm"],"application/vnd.syncml.dm+xml":["xdm"],"application/vnd.syncml.dmddf+xml":["ddf"],"application/vnd.tao.intent-module-archive":["tao"],"application/vnd.tcpdump.pcap":["pcap","cap","dmp"],"application/vnd.tmobile-livetv":["tmo"],"application/vnd.trid.tpt":["tpt"],"application/vnd.triscape.mxs":["mxs"],"application/vnd.trueapp":["tra"],"application/vnd.ufdl":["ufd","ufdl"],"application/vnd.uiq.theme":["utz"],"application/vnd.umajin":["umj"],"application/vnd.unity":["unityweb"],"application/vnd.uoml+xml":["uoml","uo"],"application/vnd.vcx":["vcx"],"application/vnd.visio":["vsd","vst","vss","vsw","vsdx","vtx"],"application/vnd.visionary":["vis"],"application/vnd.vsf":["vsf"],"application/vnd.wap.wbxml":["wbxml"],"application/vnd.wap.wmlc":["wmlc"],"application/vnd.wap.wmlscriptc":["wmlsc"],"application/vnd.webturbo":["wtb"],"application/vnd.wolfram.player":["nbp"],"application/vnd.wordperfect":["wpd"],"application/vnd.wqd":["wqd"],"application/vnd.wt.stf":["stf"],"application/vnd.xara":["xar"],"application/vnd.xfdl":["xfdl"],"application/vnd.yamaha.hv-dic":["hvd"],"application/vnd.yamaha.hv-script":["hvs"],"application/vnd.yamaha.hv-voice":["hvp"],"application/vnd.yamaha.openscoreformat":["osf"],"application/vnd.yamaha.openscoreformat.osfpvg+xml":["osfpvg"],"application/vnd.yamaha.smaf-audio":["saf"],"application/vnd.yamaha.smaf-phrase":["spf"],"application/vnd.yellowriver-custom-menu":["cmp"],"application/vnd.zul":["zir","zirz"],"application/vnd.zzazz.deck+xml":["zaz"],"application/x-7z-compressed":["7z"],"application/x-abiword":["abw"],"application/x-ace-compressed":["ace"],"application/x-apple-diskimage":["*dmg"],"application/x-arj":["arj"],"application/x-authorware-bin":["aab","x32","u32","vox"],"application/x-authorware-map":["aam"],"application/x-authorware-seg":["aas"],"application/x-bcpio":["bcpio"],"application/x-bdoc":["*bdoc"],"application/x-bittorrent":["torrent"],"application/x-blender":["blend"],"application/x-blorb":["blb","blorb"],"application/x-bzip":["bz"],"application/x-bzip2":["bz2","boz"],"application/x-cbr":["cbr","cba","cbt","cbz","cb7"],"application/x-cdlink":["vcd"],"application/x-cfs-compressed":["cfs"],"application/x-chat":["chat"],"application/x-chess-pgn":["pgn"],"application/x-chrome-extension":["crx"],"application/x-cocoa":["cco"],"application/x-compressed":["*rar"],"application/x-conference":["nsc"],"application/x-cpio":["cpio"],"application/x-csh":["csh"],"application/x-debian-package":["*deb","udeb"],"application/x-dgc-compressed":["dgc"],"application/x-director":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"],"application/x-doom":["wad"],"application/x-dtbncx+xml":["ncx"],"application/x-dtbook+xml":["dtb"],"application/x-dtbresource+xml":["res"],"application/x-dvi":["dvi"],"application/x-envoy":["evy"],"application/x-eva":["eva"],"application/x-font-bdf":["bdf"],"application/x-font-ghostscript":["gsf"],"application/x-font-linux-psf":["psf"],"application/x-font-pcf":["pcf"],"application/x-font-snf":["snf"],"application/x-font-type1":["pfa","pfb","pfm","afm"],"application/x-freearc":["arc"],"application/x-futuresplash":["spl"],"application/x-gca-compressed":["gca"],"application/x-glulx":["ulx"],"application/x-gnumeric":["gnumeric"],"application/x-gramps-xml":["gramps"],"application/x-gtar":["gtar"],"application/x-hdf":["hdf"],"application/x-httpd-php":["php"],"application/x-install-instructions":["install"],"application/x-ipynb+json":["ipynb"],"application/x-iso9660-image":["*iso"],"application/x-iwork-keynote-sffkey":["*key"],"application/x-iwork-numbers-sffnumbers":["*numbers"],"application/x-iwork-pages-sffpages":["*pages"],"application/x-java-archive-diff":["jardiff"],"application/x-java-jnlp-file":["jnlp"],"application/x-keepass2":["kdbx"],"application/x-latex":["latex"],"application/x-lua-bytecode":["luac"],"application/x-lzh-compressed":["lzh","lha"],"application/x-makeself":["run"],"application/x-mie":["mie"],"application/x-mobipocket-ebook":["*prc","mobi"],"application/x-ms-application":["application"],"application/x-ms-shortcut":["lnk"],"application/x-ms-wmd":["wmd"],"application/x-ms-wmz":["wmz"],"application/x-ms-xbap":["xbap"],"application/x-msaccess":["mdb"],"application/x-msbinder":["obd"],"application/x-mscardfile":["crd"],"application/x-msclip":["clp"],"application/x-msdos-program":["*exe"],"application/x-msdownload":["*exe","*dll","com","bat","*msi"],"application/x-msmediaview":["mvb","m13","m14"],"application/x-msmetafile":["*wmf","*wmz","*emf","emz"],"application/x-msmoney":["mny"],"application/x-mspublisher":["pub"],"application/x-msschedule":["scd"],"application/x-msterminal":["trm"],"application/x-mswrite":["wri"],"application/x-netcdf":["nc","cdf"],"application/x-ns-proxy-autoconfig":["pac"],"application/x-nzb":["nzb"],"application/x-perl":["pl","pm"],"application/x-pilot":["*prc","*pdb"],"application/x-pkcs12":["p12","pfx"],"application/x-pkcs7-certificates":["p7b","spc"],"application/x-pkcs7-certreqresp":["p7r"],"application/x-rar-compressed":["*rar"],"application/x-redhat-package-manager"
834:["rpm"],"application/x-research-info-systems":["ris"],"application/x-sea":["sea"],"application/x-sh":["sh"],"application/x-shar":["shar"],"application/x-shockwave-flash":["swf"],"application/x-silverlight-app":["xap"],"application/x-sql":["*sql"],"application/x-stuffit":["sit"],"application/x-stuffitx":["sitx"],"application/x-subrip":["srt"],"application/x-sv4cpio":["sv4cpio"],"application/x-sv4crc":["sv4crc"],"application/x-t3vm-image":["t3"],"application/x-tads":["gam"],"application/x-tar":["tar"],"application/x-tcl":["tcl","tk"],"application/x-tex":["tex"],"application/x-tex-tfm":["tfm"],"application/x-texinfo":["texinfo","texi"],"application/x-tgif":["*obj"],"application/x-ustar":["ustar"],"application/x-virtualbox-hdd":["hdd"],"application/x-virtualbox-ova":["ova"],"application/x-virtualbox-ovf":["ovf"],"application/x-virtualbox-vbox":["vbox"],"application/x-virtualbox-vbox-extpack":["vbox-extpack"],"application/x-virtualbox-vdi":["vdi"],"application/x-virtualbox-vhd":["vhd"],"application/x-virtualbox-vmdk":["vmdk"],"application/x-wais-source":["src"],"application/x-web-app-manifest+json":["webapp"],"application/x-x509-ca-cert":["der","crt","pem"],"application/x-xfig":["fig"],"application/x-xliff+xml":["*xlf"],"application/x-xpinstall":["xpi"],"application/x-xz":["xz"],"application/x-zip-compressed":["*zip"],"application/x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"audio/vnd.dece.audio":["uva","uvva"],"audio/vnd.digital-winds":["eol"],"audio/vnd.dra":["dra"],"audio/vnd.dts":["dts"],"audio/vnd.dts.hd":["dtshd"],"audio/vnd.lucent.voice":["lvp"],"audio/vnd.ms-playready.media.pya":["pya"],"audio/vnd.nuera.ecelp4800":["ecelp4800"],"audio/vnd.nuera.ecelp7470":["ecelp7470"],"audio/vnd.nuera.ecelp9600":["ecelp9600"],"audio/vnd.rip":["rip"],"audio/x-aac":["*aac"],"audio/x-aiff":["aif","aiff","aifc"],"audio/x-caf":["caf"],"audio/x-flac":["flac"],"audio/x-m4a":["*m4a"],"audio/x-matroska":["mka"],"audio/x-mpegurl":["m3u"],"audio/x-ms-wax":["wax"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio":["ram","ra"],"audio/x-pn-realaudio-plugin":["rmp"],"audio/x-realaudio":["*ra"],"audio/x-wav":["*wav"],"chemical/x-cdx":["cdx"],"chemical/x-cif":["cif"],"chemical/x-cmdf":["cmdf"],"chemical/x-cml":["cml"],"chemical/x-csml":["csml"],"chemical/x-xyz":["xyz"],"image/prs.btif":["btif","btf"],"image/prs.pti":["pti"],"image/vnd.adobe.photoshop":["psd"],"image/vnd.airzip.accelerator.azv":["azv"],"image/vnd.blockfact.facti":["facti"],"image/vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"image/vnd.djvu":["djvu","djv"],"image/vnd.dvb.subtitle":["*sub"],"image/vnd.dwg":["dwg"],"image/vnd.dxf":["dxf"],"image/vnd.fastbidsheet":["fbs"],"image/vnd.fpx":["fpx"],"image/vnd.fst":["fst"],"image/vnd.fujixerox.edmics-mmr":["mmr"],"image/vnd.fujixerox.edmics-rlc":["rlc"],"image/vnd.microsoft.icon":["ico"],"image/vnd.ms-dds":["dds"],"image/vnd.ms-modi":["mdi"],"image/vnd.ms-photo":["wdp"],"image/vnd.net-fpx":["npx"],"image/vnd.pco.b16":["b16"],"image/vnd.tencent.tap":["tap"],"image/vnd.valve.source.texture":["vtf"],"image/vnd.wap.wbmp":["wbmp"],"image/vnd.xiff":["xif"],"image/vnd.zbrush.pcx":["pcx"],"image/x-3ds":["3ds"],"image/x-adobe-dng":["dng"],"image/x-cmu-raster":["ras"],"image/x-cmx":["cmx"],"image/x-freehand":["fh","fhc","fh4","fh5","fh7"],"image/x-icon":["*ico"],"image/x-jng":["jng"],"image/x-mrsid-image":["sid"],"image/x-ms-bmp":["*bmp"],"image/x-pcx":["*pcx"],"image/x-pict":["pic","pct"],"image/x-portable-anymap":["pnm"],"image/x-portable-bitmap":["pbm"],"image/x-portable-graymap":["pgm"],"image/x-portable-pixmap":["ppm"],"image/x-rgb":["rgb"],"image/x-tga":["tga"],"image/x-xbitmap":["xbm"],"image/x-xpixmap":["xpm"],"image/x-xwindowdump":["xwd"],"message/vnd.wfa.wsc":["wsc"],"model/vnd.bary":["bary"],"model/vnd.cld":["cld"],"model/vnd.collada+xml":["dae"],"model/vnd.dwf":["dwf"],"model/vnd.gdl":["gdl"],"model/vnd.gtw":["gtw"],"model/vnd.mts":["*mts"],"model/vnd.opengex":["ogex"],"model/vnd.parasolid.transmit.binary":["x_b"],"model/vnd.parasolid.transmit.text":["x_t"],"model/vnd.pytha.pyox":["pyo","pyox"],"model/vnd.sap.vds":["vds"],"model/vnd.usda":["usda"],"model/vnd.usdz+zip":["usdz"],"model/vnd.valve.source.compiled-map":["bsp"],"model/vnd.vtu":["vtu"],"text/prs.lines.tag":["dsc"],"text/vnd.curl":["curl"],"text/vnd.curl.dcurl":["dcurl"],"text/vnd.curl.mcurl":["mcurl"],"text/vnd.curl.scurl":["scurl"],"text/vnd.dvb.subtitle":["sub"],"text/vnd.familysearch.gedcom":["ged"],"text/vnd.fly":["fly"],"text/vnd.fmi.flexstor":["flx"],"text/vnd.graphviz":["gv"],"text/vnd.in3d.3dml":["3dml"],"text/vnd.in3d.spot":["spot"],"text/vnd.sun.j2me.app-descriptor":["jad"],"text/vnd.wap.wml":["wml"],"text/vnd.wap.wmlscript":["wmls"],"text/x-asm":["s","asm"],"text/x-c":["c","cc","cxx","cpp","h","hh","dic"],"text/x-component":["htc"],"text/x-fortran":["f","for","f77","f90"],"text/x-handlebars-template":["hbs"],"text/x-java-source":["java"],"text/x-lua":["lua"],"text/x-markdown":["mkd"],"text/x-nfo":["nfo"],"text/x-opml":["opml"],"text/x-org":["*org"],"text/x-p
834ascal":["p","pas"],"text/x-processing":["pde"],"text/x-sass":["sass"],"text/x-scss":["scss"],"text/x-setext":["etx"],"text/x-sfv":["sfv"],"text/x-suse-ymp":["ymp"],"text/x-uuencode":["uu"],"text/x-vcalendar":["vcs"],"text/x-vcard":["vcf"],"video/vnd.dece.hd":["uvh","uvvh"],"video/vnd.dece.mobile":["uvm","uvvm"],"video/vnd.dece.pd":["uvp","uvvp"],"video/vnd.dece.sd":["uvs","uvvs"],"video/vnd.dece.video":["uvv","uvvv"],"video/vnd.dvb.file":["dvb"],"video/vnd.fvt":["fvt"],"video/vnd.mpegurl":["mxu","m4u"],"video/vnd.ms-playready.media.pyv":["pyv"],"video/vnd.uvvu.mp4":["uvu","uvvu"],"video/vnd.vivo":["viv"],"video/x-f4v":["f4v"],"video/x-fli":["fli"],"video/x-flv":["flv"],"video/x-m4v":["m4v"],"video/x-matroska":["mkv","mk3d","mks"],"video/x-mng":["mng"],"video/x-ms-asf":["asf","asx"],"video/x-ms-vob":["vob"],"video/x-ms-wm":["wm"],"video/x-ms-wmv":["wmv"],"video/x-ms-wmx":["wmx"],"video/x-ms-wvx":["wvx"],"video/x-msvideo":["avi"],"video/x-sgi-movie":["movie"],"video/x-smv":["smv"],"x-conference/x-cooltalk":["ice"]};Object.freeze(qG);const jG={"application/andrew-inset":["ez"],"application/appinstaller":["appinstaller"],"application/applixware":["aw"],"application/appx":["appx"],"application/appxbundle":["appxbundle"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/automationml-aml+xml":["aml"],"application/automationml-amlx+zip":["amlx"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cpl+xml":["cpl"],"application/cu-seeme":["cu"],"application/cwl":["cwl"],"application/dash+xml":["mpd"],"application/dash-patch+xml":["mpp"],"application/davmount+xml":["davmount"],"application/dicom":["dcm"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdf":["fdf"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["*js"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/media-policy-dataset+xml":["mpf"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["*mp4","*mpg4","mp4s","m4p"],"application/msix":["msix"],"application/msixbundle":["msixbundle"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg","one","onea"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-keys":["asc"],"application/pgp-signature":["sig","*asc"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/sql":["sql"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/watcherinfo+xml":["wif"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xfdf":["xfdf"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"application/zip+dotlottie":["lottie"],"audio/3gpp":["*3gpp"],"audio/aac":["adts","aac"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a","m4b"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["w
834off"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avci":["avci"],"image/avcs":["avcs"],"image/avif":["avif"],"image/bmp":["bmp","dib"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/dpx":["dpx"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/ief":["ief"],"image/jaii":["jaii"],"image/jais":["jais"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpg","jpeg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm","jpgm"],"image/jpx":["jpx","jpf"],"image/jxl":["jxl"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/pjpeg":["jfif"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime","mht","mhtml"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/jt":["jt"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/prc":["prc"],"model/step":["step","stp","stpnc","p21","210"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/u3d":["u3d"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/javascript":["js","mjs"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["md","markdown"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/wgsl":["wgsl"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","*jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts","m2t","m2ts","mts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]};Object.freeze(jG);var Ju=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},Nv,W2,py;class sPe{constructor(...t){Nv.set(this,new Map),W2.set(this,new Map),py.set(this,new Map);for(const n of t)this.define(n)}define(t,n=!1){for(let[r,i]of Object.entries(t)){r=r.toLowerCase(),i=i.map(o=>o.toLowerCase()),Ju(this,py,"f").has(r)||Ju(this,py,"f").set(r,new Set);const a=Ju(this,py,"f").get(r);let s=!0;for(let o of i){const f=o.startsWith("*");if(o=f?o.slice(1):o,a?.add(o),s&&Ju(this,W2,"f").set(r,o),s=!1,f)continue;const m=Ju(this,Nv,"f").get(o);if(m&&m!=r&&!n)throw new Error(`"${r} -> ${o}" conflicts with "${m} -> ${o}". Pass \`force=true\` to override this definition.`);Ju(this,Nv,"f").set(o,r)}}return this}getType(t){if(typeof t!="string")return null;const n=t.replace(/^.*[/\\]/s,"").toLowerCase(),r=n.replace(/^.*\./s,"").toLowerCase(),i=n.length<t.length;return!(r.length<n.length-1)&&i?null:Ju(this,Nv,"f").get(r)??null}getExtension(t){return typeof t!="string"?null:(t=t?.split?.(";")[0],(t&&Ju(this,W2,"f").get(t.trim().toLowerCase()))??null)}getAllExtensions(t){return typeof t!="string"?null:Ju(this,py,"f").get(t.toLowerCase())??null}_freeze(){this.define=()=>{throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances")},Object.freeze(this);for(const t of Ju(this,py,"f").values())Object.freeze(t);return this}_getTestState(){return{types:Ju(this,Nv,"f"),extensions:Ju(this,W2,"f")}}}Nv=new WeakMap,W2=new WeakMap,py=new WeakMap;const lPe=new sPe(jG,qG)._freeze(),uPe=["apng"];function cPe(e){return Zhe(e.map(t=>lPe.getExtension(t)).filter(t=>t!=null)).filter(t=>!uPe.includes(t))}const dPe=["innerHTML"],fPe=["id"],hPe=["id"],pPe={key:0},mPe=["id"],gPe={key:0},yPe={key:1},zg=Fe({__name:"T3FormLabel",props:{name:{},field:{}
834,type:{default:""},tag:{default:"label"},needFormat:{type:Boolean},fieldHTMLType:{}},setup(e){const t=e,{locale:n}=Ii(),r=xe(()=>t.field.properties?.fluidAdditionalAttributes?.required??t.field.validators.required??t.field.validators?.NotEmpty??(t.field.validatorsOptions??[]).some(m=>m.identifier==="NotEmpty")),i=xe(()=>t.field?.properties?.dateFormat),a=xe(()=>{switch(i.value){case"H:i":return"HH:mm";case"d/m/Y H:i":return"dd/MM/yyyy HH:mm";default:return"dd/MM/yyyy"}}),s=xe(()=>{let m=a.value.toLowerCase();return n.value==="fr"&&(m=m.replaceAll("d","j").replaceAll("y","a")),m});function o(m){return m.replace("M"," Mo").replace("K"," Ko").replace("B"," o").replace("G"," Go")}const f=me({fontSize:"0.8em"});return(m,y)=>(Z(),Se(xr(e.tag),{for:e.tag=="label"?e.field.identifier:null,id:`${e.field.identifier}_label`},{default:be(()=>[Re("span",{innerHTML:e.field.label},null,8,dPe),v(r)?(Z(),Ce("span",{key:0,class:de(v(me)({color:"primary"}))}," * ",2)):Ne("",!0),v(i)?(Z(),Ce("span",{key:1,id:`format-${e.field.identifier}`,class:de(v(f))}," ("+ht(m.$t("form.file.onlyFormat"))+" : "+ht(v(s))+") ",11,fPe)):Ne("",!0),e.field?.properties?.allowedMimeTypes?.length>0?(Z(),Ce("span",{key:2,id:`format-${e.field.identifier}`,class:de(v(f))},[_n(" ("+ht(m.$t("form.file.acceptedFormat"))+" : "+ht(v(cPe)(e.field?.properties?.allowedMimeTypes).join(", "))+" ",1),(Z(!0),Ce(Ct,null,ln(e.field?.validatorsOptions??[],b=>(Z(),Ce(Ct,null,[b.identifier=="FileSize"&&b?.options?.maximum?(Z(),Ce("span",pPe,ht(m.$t("form.file.maxSizeAllowed"))+" : "+ht(o(b?.options?.maximum)),1)):Ne("",!0)],64))),256)),y[0]||(y[0]=_n(") ",-1))],10,hPe)):Ne("",!0),e.needFormat?(Z(),Ce("span",{key:3,id:`format-${e.field.identifier}`,class:de(v(f))},[_n(" ("+ht(m.$t("form.file.onlyFormat"))+" : ",1),e.fieldHTMLType==="tel"?(Z(),Ce("span",gPe,"01 23 45 67 89")):Ne("",!0),e.fieldHTMLType==="email"?(Z(),Ce("span",yPe,ht(m.$t("form.mailExemple")),1)):Ne("",!0),y[1]||(y[1]=_n(") ",-1))],10,mPe)):Ne("",!0)]),_:1},8,["for","id"]))}}),vPe=["id","role"],_Pe=["innerHTML"],YI=Fe({__name:"T3FormMessage",props:{field:{},message:{},isSuccess:{type:Boolean,default:!1},isError:{type:Boolean,default:!1},inputMessageStyle:{},messageId:{},isPreparedMessage:{type:Boolean,default:!1}},setup(e){return(t,n)=>{const r=gk;return e.message&&!e.isPreparedMessage?(Z(),Ce("p",{key:0,id:e.isError&&!("isEmptyCustom"in t?t.isEmptyCustom:v(Un))(e.field)?`error_${e.field.identifier}`:null,role:e.isError?"alert":e.isSuccess?"status":null,class:de([e.inputMessageStyle,v(me)({bgColor:e.isSuccess?"{colors.successBg}":"{colors.dangerBg}",padding:"0.5rem",color:e.isSuccess?"success":"danger",marginTop:0,_print:{bgColor:"{colors.white}",color:"{colors.black}",marginBottom:"1.5rem"}})])},[Re("span",{innerHTML:e.message},null,8,_Pe)],10,vPe)):e.message&&e.isPreparedMessage?(Z(),Ce(Ct,{key:1},[e.isPreparedMessage?(Z(),Se(r,{key:0,frame:!1,content:[e.message]},null,8,["content"])):Ne("",!0)],64)):Ne("",!0)}}}),bPe=["innerHTML"],xPe=["id"],UG=Fe({__name:"FormFieldInfo",props:{field:{},showSuccessMessage:{type:Boolean,default:!1},showErrorMessage:{type:Boolean,default:!1},message:{default:null},fileLoaded:{type:Boolean,default:!1},fieldValue:{default:void 0},isMessageFromForm:{type:Boolean,default:!1}},setup(e){const t=e;Vj();const n=t.field?.properties?.elementDescription,r=xe(()=>["fileupload","imageupload"].includes(t?.field?.type)?t?.fieldValue?Array.isArray(t.fieldValue)?t.fieldValue:[t.fieldValue]:[]:[]),i=s=>{const o=document.createElement("div");o.innerHTML=s;for(let f=o.childNodes,m=f.length;m--;)if(f[m].nodeType==1)return!0;return!1};nn(r,()=>{if(t.field.type==="imageupload")for(const s of r.value)s.url=URL.createObjectURL(s)});const a=me({"& p,& ul li,& ol li":{fontSize:"1.6em"},marginBottom:0,marginTop:"1rem"});return(s,o)=>{const f=YI,m=wW;return Z(),Ce("div",{class:de([v(Tr)({alignItems:"initial",gap:0})])},[e.showErrorMessage&&!v(Un)(e.message)?(Z(),Se(f,{key:0,"is-error":e.showErrorMessage,field:e.field,message:e.message,messageId:e.field?.identifier,inputMessageStyle:[v(a),v(me)({marginTop:"0 !important",paddingInline:"0.5rem"})]},null,8,["is-error","field","message","messageId","inputMessageStyle"])):Ne("",!0),v(n)?(Z(),Se(xr(i(v(n))?"div":"p"),{key:1,id:`description-${e.field.identifier}`,class:de([v(a),v(Qn)({flexDir:"row-reverse",gap:"1rem",justifyContent:"start"}),v(me)({fontSize:"1rem"})])},{default:be(()=>[i(v(n))?(Z(),Ce("div",{key:0,innerHTML:v(n)},null,8,bPe)):(Z(),Ce(Ct,{key:1},[_n(ht(v(n)),1)],64))]),_:1},8,["id","class"])):Ne("",!0),e.fileLoaded?(Z(),Ce("p",{key:2,"aria-live":"polite",id:`loaded-${e.field.identifier}`,class:de([v(a),v(me)({borderLeft:"{borders.sm} {colors.success}",paddingLeft:"1rem"})])},[_n(ht(s.$t("form.file.add"))+". ",1),e.field.type==="fileupload"?(Z(!0),Ce(Ct,{key:0},ln(v(r),y=>(Z(),Ce("span",null," - "+ht(y.name),1))),256)):Ne("",!0),e.field.type==="imageupload"?(Z(!0),Ce(Ct,{key:1},ln(v(r),y=>(Z(),Ce("span",null,[_n(" - "+ht(y.name)+" ",1),y.url?(Z(),Se(m,{key:0,src:y.url,width:"200",height:"200",alt:"",class:de(v(me)({objectFit:"cover"}))},null,8,["src","class"])):Ne("",!0)]))),256)):Ne("",!0)],10,xPe)):Ne("",!0)],2)}}}),wPe=["value","id","name","type","title","placeholder","autocomplete","required","min","max","step","aria-describedby","aria-invalid"],Xo=Fe({__name:"T3FormField",props:{name:{},field:{}
834,type:{},showLabel:{type:Boolean,default:!0},showForSr:{type:Boolean,default:!1},componentCustomClass:{default:""},labelCustomClass:{default:""},inputCustomClass:{default:""},fileLoaded:{type:Boolean},title:{}},setup(e){const t=e,{value:n,setValue:r,meta:i,errorMessage:a,errors:s}=Ma(t.name,t.field.validators,{label:t.field.label});r(t?.field?.value??t?.field?.defaultValue??null,!1);const o=Vj(),f=xe(()=>(i.dirty||i.touched)&&o.value),m=xe(()=>t.field.type==="telephone"?"tel":t.field.type),y=xe(()=>{if(m.value==="tel"||m.value==="email")return!0});return(b,T)=>{const x=zg,$=UG;return Z(),Ce("div",{class:de([v(me)({position:"relative"})])},[e.field.label&&e.field.label.length&&e.showLabel?(Z(),Se(x,{key:0,field:e.field,name:e.name,needFormat:y.value,fieldHTMLType:m.value,tag:"label",class:de([e.labelCustomClass,e.labelCustomClass==="srOnly"?v(Er)():null])},null,8,["field","name","needFormat","fieldHTMLType","class"])):Ne("",!0),bt(b.$slots,"input",{showErrorMessage:f.value&&v(a),needFormat:y.value,fileLoaded:e.fileLoaded},()=>[Ol(Re("input",{"onUpdate:modelValue":T[0]||(T[0]=A=>zn(n)?n.value=A:null),value:v(n),id:e.field.identifier,name:e.name,type:m.value,title:e.field.label?e.field.label:void 0,placeholder:e.field?.placeholder??e.field.properties?.fluidAdditionalAttributes?.placeholder,autocomplete:e.field.properties?.fluidAdditionalAttributes?.autocomplete,required:e.field?.required||e.field.properties?.fluidAdditionalAttributes?.required,min:e.field.properties?.fluidAdditionalAttributes?.min,max:e.field.properties?.fluidAdditionalAttributes?.max,step:e.field.properties?.fluidAdditionalAttributes?.step,class:de(e.inputCustomClass),"aria-describedby":f.value&&v(a)?`error_${e.field.identifier}`:y.value?`format-date-${e.field.identifier}`:"","aria-invalid":f.value?!0:null},null,10,wPe),[[RN,v(n)]])]),bt(b.$slots,"infos",{},()=>[e.field?(Z(),Se($,{key:0,field:e.field,showErrorMessage:f.value,message:v(a),fileLoaded:e.fileLoaded,fieldValue:v(n)},null,8,["field","showErrorMessage","message","fileLoaded","fieldValue"])):Ne("",!0)])],2)}}});function tk(e){return xe(()=>(Array.isArray(e)||(e=Object.entries(e)),e.map(t=>Array.isArray(t)?{label:t[0]??null,value:(t?.[1]??t?.[0]??null).toString()}:typeof t=="object"?t:{label:t,value:t})))}function bc(){return{getdescribedBy:(t,n)=>{let r=t?.showErrorMessage,i=n.properties?.elementDescription,a=t?.fileLoaded,s=`error_${n.identifier}`,o="description-"+n.identifier,f=`loaded-${n.identifier}`;return`${i?o:""} ${r?s:""} ${a?f:""}`}}}const SPe={key:0},CPe=["for"],TPe={key:1},kPe=["for"],HG=Fe({__name:"T3FormFieldRadiobutton",props:{name:{},field:{}},setup(e){const t=e,n=xe(()=>tk(t.field.properties.options).value),{value:r}=Ma(()=>t.name),{getdescribedBy:i}=bc(),a=De(!1),s=vr(),o=De(s.backendLayout),f=xe(()=>{if(o.value==="list")return a.value=!0,!0}),m=xe(()=>a.value?n.value.slice(0,3):n.value);return(y,b)=>{const T=zg,x=aW,$=iW,A=Xo;return Z(),Se(A,vn(t,{"show-label":!1}),{input:be(N=>[v(f)?(Z(),Ce("fieldset",SPe,[ke(T,{field:e.field,id:`checkbox_legend_${e.field.identifier}`,name:e.name,tag:"legend","data-label-like":""},null,8,["field","id","name"]),ke(v(MT),{class:"collapsible","onUpdate:open":b[1]||(b[1]=O=>a.value=!v(a))},{default:be(()=>[ke(v(AT),{forceMount:""},{default:be(()=>[ke($,{modelValue:v(r),"onUpdate:modelValue":b[0]||(b[0]=O=>zn(r)?r.value=O:null),"aria-invalid":N.showErrorMessage?!0:null,"aria-describedby":v(i)(N,e.field),required:e.field.properties?.fluidAdditionalAttributes?.required?!0:null},{default:be(()=>[(Z(!0),Ce(Ct,null,ln(v(m),(O,I)=>(Z(),Ce("div",null,[O.label?(Z(),Ce("label",{key:0,for:`${e.field.identifier}_${I}`,class:de(v(Er)())},ht(O.label??O.value),11,CPe)):Ne("",!0),ke(x,{"data-tag-item":"",id:`${e.field.identifier}_${I}`,name:e.name,value:O.value},{default:be(()=>[_n(ht(O.label??O.value),1)]),_:2},1032,["id","name","value"])]))),256))]),_:1},8,["modelValue","aria-invalid","aria-describedby","required"])]),_:2},1024),v(f)&&v(n)?.length>3?(Z(),Se(v(IT),{key:0},{default:be(()=>[Re("span",null,ht(v(a)?y.$t("common.seeMore"):y.$t("common.seeLess")),1)]),_:1})):Ne("",!0)]),_:2},1024)])):(Z(),Ce("fieldset",TPe,[ke(T,{field:e.field,id:`checkbox_legend_${e.field.identifier}`,name:e.name,tag:"legend","data-label-like":""},null,8,["field","id","name"]),ke($,{modelValue:v(r),"onUpdate:modelValue":b[2]||(b[2]=O=>zn(r)?r.value=O:null),"aria-invalid":N.showErrorMessage?!0:null,"aria-describedby":v(i)(N,e.field),required:e.field.properties?.fluidAdditionalAttributes?.required?!0:null,class:de(v(Mi)({columns:{base:1,lg:2},rowGap:"1rem"}))},{default:be(()=>[(Z(!0),Ce(Ct,null,ln(v(n),(O,I)=>(Z(),Ce("div",null,[O.label?(Z(),Ce("label",{key:0,for:`${e.field.identifier}_${I}`,class:de(v(Er)())},ht(O.label??O.value),11,kPe)):Ne("",!0),ke(x,{id:`${e.field.identifier}_${I}`,name:e.name,value:O.value},{default:be(()=>[_n(ht(O.label??O.value),1)]),_:2},1032,["id","name","value"])]))),256))]),_:1},8,["modelValue","aria-invalid","aria-describedby","required","class"])]))]),_:1},16)}}}),EPe=["id","name","placeholder","aria-invalid","aria-describedby","aria-required"],WG=Fe({__name:"T3FormFieldTextarea",props:{name:{},field:{}},setup(e){const t=e,{value:n,setValue:r}=Ma(()=>t.name);r(t.field.value,!1);const{getdescribedBy:i}=bc();return(a,s)=>{const o=Xo;return Z(),Se(o,gr(yr(t)),{input:be(f=>[Ol(Re("textarea",{"onUpdate:modelValue":s[0]||(s[0]=m=>
834zn(n)?n.value=m:null),id:e.field.identifier,name:e.name,placeholder:e.field?.placeholder||e.field.properties?.fluidAdditionalAttributes?.placeholder,"aria-invalid":f.showErrorMessage?!0:null,"aria-describedby":v(i)(f,e.field),"aria-required":e.field.properties?.fluidAdditionalAttributes?.required?!0:null},null,8,EPe),[[Ix,v(n)]])]),_:1},16)}}}),BB="hcaptcha-api-script-id",GG="_hcaptchaOnLoad";let H$,YG;const C8=new Promise((e,t)=>{H$=e,YG=t});function PPe(e){if(window.hcaptcha)return H$(),C8;if(document.getElementById(BB))return C8;window[GG]=H$;const t=$Pe(e),n=document.createElement("script");return n.id=BB,n.src=t,n.async=!0,n.defer=!0,n.onerror=r=>{YG("Failed to load api.js")},document.head.appendChild(n),C8}function $Pe(e){let t=e.apiEndpoint;return t=pf(t,"render","explicit"),t=pf(t,"onload",GG),t=pf(t,"recaptchacompat",e.reCaptchaCompat===!1?"off":null),t=pf(t,"hl",e.language),t=pf(t,"sentry",e.sentry),t=pf(t,"custom",e.custom),t=pf(t,"endpoint",e.endpoint),t=pf(t,"assethost",e.assethost),t=pf(t,"imghost",e.imghost),t=pf(t,"reportapi",e.reportapi),t}function pf(e,t,n){if(n!=null){const r=e.includes("?")?"&":"?";return e+r+t+"="+encodeURIComponent(n)}return e}var MPe=(e,t)=>{for(const[n,r]of t)e[n]=r;return e};const APe={name:"VueHcaptcha",props:{sitekey:{type:String,required:!0},theme:{type:String,default:void 0},size:{type:String,default:void 0},tabindex:{type:String,default:void 0},language:{type:String,default:void 0},reCaptchaCompat:{type:Boolean,default:!0},challengeContainer:{type:String,default:void 0},rqdata:{type:String,default:void 0},sentry:{type:Boolean,default:!0},custom:{type:Boolean,default:void 0},apiEndpoint:{type:String,default:"https://hcaptcha.com/1/api.js"},endpoint:{type:String,default:void 0},reportapi:{type:String,default:void 0},assethost:{type:String,default:void 0},imghost:{type:String,default:void 0}},data:()=>({widgetId:null,hcaptcha:null,renderedCb:null}),mounted(){return PPe(this.$props).then(this.onApiLoaded).catch(this.onError)},unmounted(){this.teardown()},destroyed(){this.teardown()},methods:{teardown(){this.widgetId&&(this.hcaptcha.reset(this.widgetId),this.hcaptcha.remove(this.widgetId))},onApiLoaded(){this.hcaptcha=window.hcaptcha;const e={sitekey:this.sitekey,theme:this.theme,size:this.size,tabindex:this.tabindex,callback:this.onVerify,"expired-callback":this.onExpired,"chalexpired-callback":this.onChallengeExpired,"error-callback":this.onError,"open-callback":this.onOpen,"close-callback":this.onClose};this.challengeContainer&&(e["challenge-container"]=this.challengeContainer),this.widgetId=this.hcaptcha.render(this.$el,e),this.rqdata&&this.hcaptcha.setData(this.widgetId,{rqdata:this.rqdata}),this.onRendered()},execute(){this.widgetId?(this.hcaptcha.execute(this.widgetId),this.onExecuted()):this.renderedCb=()=>{this.renderedCb=null,this.execute()}},executeAsync(){if(this.widgetId)return this.onExecuted(),this.hcaptcha.execute(this.widgetId,{async:!0});let e;const t=new Promise(n=>{e=n});return this.renderedCb=()=>{this.renderedCb=null,e()},t.then(this.executeAsync)},reset(){this.widgetId?(this.hcaptcha.reset(this.widgetId),this.onReset()):this.$emit("error","Element is not rendered yet and thus cannot reset it. Wait for `rendered` event to safely call reset.")},onRendered(){this.$emit("rendered"),this.renderedCb&&this.renderedCb()},onExecuted(){this.$emit("executed")},onReset(){this.$emit("reset")},onError(e){this.$emit("error",e),this.reset()},onVerify(){const e=this.hcaptcha.getResponse(this.widgetId),t=this.hcaptcha.getRespKey(this.widgetId);this.$emit("verify",e,t)},onExpired(){this.$emit("expired")},onChallengeExpired(){this.$emit("challengeExpired")},onOpen(){this.$emit("opened")},onClose(){this.$emit("closed")}}},IPe={id:"hcap-script"};function DPe(e,t,n,r,i,a){return Z(),Ce("div",IPe)}var W$=MPe(APe,[["render",DPe]]);const LPe={key:1},OPe=Fe({__name:"QualityForm",props:{pageData:null},setup(e){const t=vr(),n=De(t.initialData),{resetForm:r}=U_(),i=e,a=De(""),s=De(!1),o=(x,[$])=>$!=="Non"||x?!0:"Veuillez renseigner un commentaire",f=(x,[$])=>
834$!==void 0&&(!x||x==="")?"Veuillez compléter le captcha":!0;xy("required",T$),xy("commentaire",o),xy("captcha",f);const m={"tx_cimquality_displayquality[newQuality][answer]":x=>x?!0:"Vous devez choisir une réponse","tx_cimquality_displayquality[newQuality][comment]":"commentaire:@tx_cimquality_displayquality[newQuality][answer]","tx_cimquality_displayquality[hcaptcha]":"captcha:@tx_cimquality_displayquality[newQuality][answer]"},y=(x,$)=>{a.value=x},b=async x=>{const $=new FormData;for(const[N,O]of Object.entries(x))$.append(N,O);$.append("tx_cimquality_displayquality[newQuality]",""),(await md(i.pageData.quality.postUrl,{method:"POST",body:$})).success?s.value=!s.value:r()},T=me({fontSize:"1.2em",marginBottom:0,lineHeight:"2",marginTop:"1rem",paddingLeft:"1rem"});return(x,$)=>{const A=HG,N=cr,O=WG;return Z(),Ce("div",{class:de(v(me)({_print:{display:"none"}}))},[v(s)?Ne("",!0):(Z(),Se(v(ime),{key:0,"validation-schema":m,onSubmit:b,class:de(v(me)({border:"none !important",borderTop:".1rem solid {colors.primary} !important",padding:"3rem 0 !important",borderRadius:0}))},{default:be(({values:I})=>[Re("fieldset",null,[Re("legend",{class:de(v(me)({srOnly:!0}))},ht(x.$t("qualityForm.title")),3),ke(A,{skinChange:!0,name:"tx_cimquality_displayquality[newQuality][answer]",field:{identifier:"qualityForm",label:x.$t("qualityForm.question.legend"),properties:{options:{yes:x.$t("qualityForm.question.oui"),no:x.$t("qualityForm.question.non")}}},class:de([v(me)({"& [role=radiogroup]":{flexDir:"row",justifyContent:"end",gap:"1.5rem"},"& button[role=radio]":{textTransform:"uppercase",border:".2rem solid {colors.primary}",padding:{base:"0.75rem 1.5rem",sm:"1.5rem 3rem"},borderRadius:"10rem",fontWeight:"{fontWeights.extraBold}",_hover:{background:"{colors.primary}",color:"{colors.white}"},"& svg, & svg *":{transition:"none"}},"& button[role=radio]::before, & button[role=radio]::after":{display:"none"},"& button[value=no] svg":{rotate:"180deg"}})])},null,8,["field","class"]),I["tx_cimquality_displayquality[newQuality][answer]"]==="OUI"?(Z(),Ce("div",{key:0,class:de(v(me)({marginTop:"2rem"}))},[I["tx_cimquality_displayquality[newQuality][answer]"]?(Z(),Se(v(dO),{key:0,name:"tx_cimquality_displayquality[hcaptcha]",modelValue:v(a),"onUpdate:modelValue":$[0]||($[0]=U=>zn(a)?a.value=U:null),type:"hidden"},{default:be(()=>[ke(v(W$),{onVerify:y,sitekey:v(n)?.hcaptchaPublicKey},null,8,["sitekey"])]),_:1},8,["modelValue"])):Ne("",!0),ke(v(M6),{name:"tx_cimquality_displayquality[hcaptcha]",as:"p",role:"alert",class:de([v(T),v(me)({bgColor:"{colors.danger}",color:"{colors.white}",marginTop:0,_print:{bgColor:"{colors.white}",color:"{colors.danger}",marginBottom:"1.5rem"}})])},null,8,["class"]),I["tx_cimquality_displayquality[newQuality][answer]"]?(Z(),Se(N,{key:1,link:{text:x.$t("common.send")},type:"submit",variante:{classes:"button",bgColor:"white",size:"sm"}},null,8,["link"])):Ne("",!0)],2)):Ne("",!0),I["tx_cimquality_displayquality[newQuality][answer]"]==="NON"?(Z(),Ce("fieldset",{key:1,class:de(v(me)({marginTop:"2rem"}))},[Re("legend",{class:de(v(me)({fontSize:"{fontSizes.p}"}))},ht(x.$t("qualityForm.commentaire.legend")),3),ke(v(M6),{name:"tx_cimquality_displayquality[newQuality][answer]"}),ke(O,{name:"tx_cimquality_displayquality[newQuality][comment]",field:{identifier:"qualityFormComment",label:x.$t("qualityForm.commentaire.textareaLabel"),fluidAdditionalAttributes:{required:"required"},validators:{NotEmpty:!0}}},null,8,["field"]),I["tx_cimquality_displayquality[newQuality][answer]"]?(Z(),Se(v(dO),{key:0,name:"tx_cimquality_displayquality[hcaptcha]",modelValue:v(a),"onUpdate:modelValue":$[1]||($[1]=U=>zn(a)?a.value=U:null),type:"hidden"},{default:be(()=>[ke(v(W$),{onVerify:y,sitekey:v(n)?.hcaptchaPublicKey},null,8,["sitekey"])]),_:1},8,["modelValue"])):Ne("",!0),ke(v(M6),{name:"tx_cimquality_displayquality[hcaptcha]",as:"p",role:"alert",class:de([v(T),v(me)({bgColor:"{colors.danger}",color:"{colors.white}",marginTop:0,_print:{bgColor:"{colors.white}",color:"{colors.danger}",marginBottom:"1.5rem"}})])},null,8,["class"]),I["tx_cimquality_displayquality[newQuality][answer]"]?(Z(),Se(N,{key:1,link:{text:x.$t("common.send")},type:"submit",variante:{classes:"button",bgColor:"white",size:"sm"}},null,8,["link"])):Ne("",!0)],2)):Ne("",!0)])]),_:1}
834,8,["class"])),v(s)?(Z(),Ce("p",LPe,ht(x.$t("qualityForm.success")),1)):Ne("",!0)],2)}}}),RPe=()=>{const e=kd();let t=Object.values(e.blocsAlwaysInSummary);return{getTableOfContentItems:r=>{let i=[];return r&&r.length>0&&r?.forEach(a=>{if(t.includes(a.type)||a.show_in_summary===!0)if(a.type==="shortcut"&&(a=a.content.shortcut?.[0]),a.content?.header&&a.content?.headerLayout===2&&a.type!=="html")i.push({title:a.content?.header,id:a.id});else if(a.content?.bodytext){if(a.content.bodytext.includes("<h2>")){let s=a.content.bodytext.split("<h2>"),o=[];s.forEach(f=>{f.includes("</h2>")&&o.push(f)}),o.forEach((f,m)=>{var y=new DOMParser,b=y.parseFromString(f.split("<h2>").pop().split("</h2>")[0],"text/html");i.push({title:b.body.textContent,id:`${a.id}_${m}`})})}}else(a.content?.left?.length||a.content?.right?.length||a.content?.middle?.length)&&(a.content?.left?.forEach(s=>{s.show_in_summary&&i.push({title:s?.content?.header,id:s.id})}),a.content?.middle?.forEach(s=>{s.show_in_summary&&i.push({title:s?.content?.header,id:s.id})}),a.content?.right?.forEach(s=>{s.show_in_summary&&i.push({title:s?.content?.header,id:s.id})}));else a.type==="form_formframework"&&i.push({title:a.content.form?.api?.label,id:a.id})}),i}}},BPe={key:1},ZG=Fe({__name:"MainLayout",props:{pageData:{},data:{},mainContent:{},asideContent:{},bottomContent:{},popin:{type:Boolean,default:!1},fieldsToShow:{},isDetail:{type:Boolean,default:!1},isError:{type:Boolean,default:!1},isTplEdito:{type:Boolean},name:{}},setup(e){const{isAmiral:t}=zr(),n=e,r=xe(()=>n?.pageData?.cim_base_hide_quality==!0),i=xe(()=>n.isDetail||n.isError?!1:n?.pageData?.cim_base_hide_summary!="1"),{getTableOfContentItems:a}=RPe(),s=a(n.mainContent),o=a(n.asideContent),f=s.concat(o),m=xe(()=>n.data?.type==="offre");return(y,b)=>{const T=aPe,x=oPe;return Z(),Ce("div",{class:de(v(me)({paddingBottom:{base:"2.5rem",md:"5rem"}}))},[ke(T,{pageData:e.pageData,data:e.data,popin:e.popin,fieldsToShow:e.fieldsToShow,isTplEdito:e.isTplEdito},null,8,["pageData","data","popin","fieldsToShow","isTplEdito"]),Re("div",{class:de([v(Dg)(),v(LA)()])},[Re("div",{class:de([v(Qn)({alignItems:"start",justifyContent:"center",flexWrap:{base:"wrap",md:"nowrap"},gap:{base:"{spacing.gutter}",xl:"3rem"},margin:"0 auto"}),v(me)({"& [data-form-container]":{padding:{base:"3.5rem",sm:"5rem"},borderRadius:"1.5rem",boxShadow:v(t)()?{base:"0 .4rem 2rem 0 rgba(0,0,0,.2)",_inverse:"inverse"}:null,bgColor:v(t)()?null:"lightGray",marginBottom:"5rem"}})])},[Re("div",{class:de(v(me)({width:{base:"100%",md:"8/12"},minWidth:{base:"100%",md:"8/12"}}))},[v(i)?(Z(),Se(x,{key:0,items:v(f)},null,8,["items"])):Ne("",!0),bt(y.$slots,"mainContent"),v(r)?(Z(),Se(OPe,{key:1,"page-data":e.pageData},null,8,["page-data"])):Ne("",!0)],2),e.asideContent&&e.asideContent?.length>0||v(m)?(Z(),Ce("div",{key:0,class:de(v(me)({width:{base:"100%",md:"4/12",xl:"4/12"},marginInline:{xl:"3.5rem"}}))},[bt(y.$slots,"asideContent")],2)):Ne("",!0)],2),e.isDetail?(Z(),Ce("div",{key:0,class:de(v(me)({width:{md:e.asideContent&&e.asideContent?.length>0?"100%":"8/12",xl:e.asideContent&&e.asideContent?.length>0?"10/12":"8/12"},margin:"0 auto","& svg":{padding:{base:"0.6rem !important",md:"auto"},width:{base:"3rem !important",md:"auto"},height:{base:"3rem !important",md:"auto"}}}))},[bt(y.$slots,"btnBack")],2)):Ne("",!0),y.$slots.bottomContent&&e.bottomContent?(Z(),Ce("div",BPe,[bt(y.$slots,"bottomContent")])):Ne("",!0)],2)],2)}}}),T8=Fe({__name:"FieldInformationsH2s",props:{data:{},descriptionFields:{},header:{default:"Votre profil"}},setup(e){const t=e,n=Rf(),{checkIfResults:r}=Ad(),i=xe(()=>{let a=[];return t.descriptionFields?.length>0&&t.descriptionFields.forEach(s=>{r(t.data,s)&&a.push(s)}),!(a.length>0)});return(a,s)=>{const o=BI,f=p1,m=zI,y=FI,b=Su,T=fi;return v(i)?Ne("",!0):(Z(),Se(T,{key:0,header:e.header,uid:v(n),"bloc-grid":v(Tr)({alignItems:"start"})},{content:be(()=>[(Z(!0),Ce(Ct,null,ln(e.descriptionFields,x=>(Z(),Ce("div",{class:de([v(Wa)(),v(Md)(),v(me)({"&:has(> p)":{marginBottom:"-2rem"}})])},[x.system_name==="missions"||x.system_name==="prerequis"||x.system_name==="competences"||x.system_name==="experience"||x.system_name==="avantages"||x.system_name==="specificites_du_poste"||x.system_name==="modalites_de_recrutement"?(Z(),Ce(Ct,{key:0},[x.title&&x.system_name!="missions"?(Z(),Ce("h3",{key:0,class:de(v(me)({marginBottom:"0.5rem",marginTop:"2rem"}))},ht(x.title),3)):Ne("",!0)],64)):(Z(),Ce(Ct,{key:1},[x.title?(Z(),Ce("p",{key:0,class:de(v(me)({lineHeight:"1.4",display:"inline-block !important","& + *":{display:"inline","& .t3-ce-rte, & .t3-ce-rte > p":{display:"inline"}}}))},[Re("strong",null,ht(x.title)+" : ",1)],2)):Ne("",!0)],64)),x?.system_name==="accessibility"?(Z(),Se(o,{key:2,result:e.data?.[("_stringToCamelCase"in a?a._stringToCamelCase:v(xs))(x?.system_name)],config:x,notSr:!0},null,8,["result","config"])):x?.frontend_template==="date_inline"?(Z(),Se(f,{key:3,result:e.data,config:x},null,8,["result","config"])):x?.type==="boolean"?(Z(),Se(m,{key:4,config:x,result:e.data,yesOrNo:!0},null,8,["config","result"])):x?.type==="typolink"?(Z(),Se(y,{key:5,result:e.data?.[("_stringToCamelCase"in a?a._stringToCamelCase:v(xs))(x?.system_name)],config:x},null,8,["result","config"])):(Z(),Se(b,{key:6,result:e.data?.[("_stringToCamelCase"in a?a._stringToCamelCase:v(xs))(x?.system_name)]?.[0]?.title||e.data?.[("_stringToCamelCase"in a?a._stringToCamelCase:v(xs))(x?.system_name)],config:x},null,8,["result","config"]))],2))),256))]),_:1},8,["header","uid","bloc-grid"]))}}}),KG=Fe({__name:"DetailContent",props:{pageData:{},data:{},content:{},popin:{type:Boolean}},setup(e){const t=e,n=kd(),r=Object.values(n.listItemTplEdito),{checkIfResults:i,filteredConfigPage:a}=Ad(),s=xe(()=>a(t.data)),o=xe(()=>{let q=[O("contextualFields"),y("contextualFields"),s?.contextualFields,t.data?.contentElementsContext,t.data?.relatedContent?.travaux],Q=[];return q.forEach(ee=>{ee?.length>0&&Q.push(ee)}),Q}),f=kd(),m=Object.values(f.blocGeolocationFields),y=q=>s.value?.[q]?.filter(Q=>m.includes(Q.system_name)&&Q.auto_display&&i(t.data,Q)),b=s.value?.principalFields.filter(q=>!m.includes(q.system_name)&&q.system_name!=="description"&&(!q.frontend_template||q.frontend_template==="")&&i(t.data,q)),T=s.value?.principalFields.filter(q=>q.system_name==="contact_rh"||q.system_name==="telephone_rh"||q.system_name==="mail_rh"&&(!q.frontend_template||q.frontend_template==="")&&i(t.data,q)),x=s.value?.principalFields.filter(q=>q.system_name==="contact_metier"||q.system_name==="telephone_metier"||q.system_name==="mail_metier"&&(!q.frontend_template||q.frontend_template==="")&&i(t.data,q)),$=s.value?.principalFields.filter(q=>!m.includes(q.system_name)&&q.system_name==="prerequis"||q.system_name==="competences"||q.system_name==="experience"&&(!q.frontend_template||q.frontend_template==="")&&i(t.data,q)),A=s.value?.principalFields.filter(q=>!m.includes(q.system_name)&&q.system_name==="missions"&&(!q.frontend_template||q.frontend_template==="")&&i(t.data,q)),N=s.value?.principalFields.filter(q=>!m.includes(q.system_name)&&q.system_name!=="missions"&&q.system_name!=="prerequis"&&q.system_name!=="competences"&&q.system_name!=="experience"&&q.system_name!=="description"&&q.system_name!=="url_depot_de_candidature"&&q.system_name!=="url_depot_de_candidature_interne"&&q.system_name!=="contact_rh"&&q.system_name!=="telephone_rh"&&q.system_name!=="mail_rh"&&q.system_name!=="contact_metier"&&q.system_name!=="telephone_metier"&&q.system_name!=="mail_metier"&&(!q.frontend_template||q.frontend_template==="")&&i(t.data,q)),O=q=>s.value?.[q]?.filter(Q=>i(t.data,Q)),I=xe(()=>s.value?.contextualFields?.filter(q=>m.includes(q.system_name)&&i(t.data?.organizer?.[0],q))),U=q=>{const Q=xe(()=>q==="news"?t.data?.hideRelatedContent:t.data?.hideRelatedEvents),ee=t.data?.type===q,Y=t.data?.relatedContent?.[q]?.length>0;return!Q.value&&ee&&Y},B=xe(()=>s.value?.principalFields?.filter(q=>q.system_name==="description"));return(q,Q)=>{const ee=MG,Y=o8e,z=gk,H=p1,K=cr,ne=AG,le=c8e,pe=LG,ae=ek,se=QT,ce=f8e,ye=gG,$e=mG,Be=ZG;return Z(),Se(Be,{pageData:e.pageData,data:e.data,mainContent:!0,asideContent:v(o),bottomContent:!e.data?.hideRelatedContent,popin:e.popin,fieldsToShow:v(s)?.headFields,isDetail:!0,isTplEdito:v(r).includes(e.data?.type)},{mainContent:be(()=>[ke(ee,{result:e.data?.cimNewsScheduleDates,config:{system_name:"cim_news_schedule_dates"}},null,8,["result"]),ke(Y,{result:e.data?.description,header:e.data.type==="offre"?"Le poste en bref":v(B)?.[0]?.title,config:v(B)?.[0]},null,8,["result","header","config"]),ke(z,{content:e.data?.contentElements},null,8,["content"]),v(N)?.length&&e.data.type==="offre"?(Z(),Se(T8,{
834key:0,descriptionFields:v(A),header:"Vos futures missions",data:e.data},null,8,["descriptionFields","data"])):Ne("",!0),v($)?.length&&e.data.type==="offre"?(Z(),Se(T8,{key:1,descriptionFields:v($),data:e.data},null,8,["descriptionFields","data"])):Ne("",!0),v(N)?.length&&e.data.type==="offre"?(Z(),Se(T8,{key:2,descriptionFields:v(N),header:"Informations complémentaires",data:e.data},null,8,["descriptionFields","data"])):Ne("",!0),e.data?.dateLimiteDeCandidature?.date&&e.data.type==="offre"?(Z(),Se(H,{key:3,result:e.data?.dateLimiteDeCandidature?.date,config:{type:"date_time"}},{default:be(()=>[...Q[0]||(Q[0]=[Re("b",null,"Date limite de candidature :",-1)])]),_:1},8,["result"])):Ne("",!0),e.data?.urlDepotDeCandidature?.href&&e.data.type==="offre"?(Z(),Se(K,{key:4,link:{href:e.data.urlDepotDeCandidature.href,text:"Postuler"},variante:{classes:"button",bgColor:"primary"},class:de(v(me)({marginTop:"2rem"}))},null,8,["link","class"])):Ne("",!0),v(b)?.length>0&&e.data.type!=="offre"?(Z(),Se(ne,{key:5,descriptionFields:v(b),data:e.data},null,8,["descriptionFields","data"])):Ne("",!0),ke(le,{configPage:v(s)?.principalFields,configBoucle:O("principalFields"),blocGeoloc:y("principalFields"),data:e.data,colPos:0},null,8,["configPage","configBoucle","blocGeoloc","data"]),e.data.type==="activite"?(Z(),Se(ew,{key:6,result:e.data?.association?.[0],isBlocContact:!0},null,8,["result"])):Ne("",!0),e.data?.type!=="events"&&e.data?.type!=="news"&&!e.data?.hideRelatedContent?(Z(!0),Ce(Ct,{key:7},ln(e.data?.relatedContent,je=>(Z(),Ce(Ct,null,[je?.[0]?.type==="equipements"?(Z(),Se(pe,{key:0,items:je,data:{settings:{title:`${q.$t("blocks.blocsLies.title")} ${q.$t("blocks.blocsLies.type.projets")}`,template:"TinyInteractiveMap"}},isRelated:!0},null,8,["items","data"])):je?.[0]?.type!=="travaux"?(Z(),Se(ae,{key:1,result:je,isRelated:!0},null,8,["result"])):Ne("",!0),je?.relatedContent?.activites?(Z(),Se(se,{key:2,result:je?.relatedContent?.activites,config:{title:`${q.$t("blocks.blocsLies.title")} ${q.$t("blocks.blocsLies.type.activite")}`},isRelated:!0},null,8,["result","config"])):Ne("",!0)],64))),256)):Ne("",!0)]),asideContent:be(()=>[ke(le,{configPage:v(s)?.contextualFields,configBoucle:O("contextualFields"),blocGeoloc:y("contextualFields"),data:e.data,colPos:1},null,8,["configPage","configBoucle","blocGeoloc","data"]),e.data.type==="offre"&&v(x)?(Z(),Se(ce,{key:0,config:v(x),result:[e.data],colPos:1,"is-metier":!0,header:"Contact Métier"},null,8,["config","result"])):Ne("",!0),e.data.type==="offre"&&v(T)?(Z(),Se(ce,{key:1,config:v(T),result:[e.data],colPos:1,header:"Contact RH"},null,8,["config","result"])):Ne("",!0),v(I)?.length?(Z(),Se(ew,{key:2,header:q.$t("blocks.geoloc.organizer"),result:e.data?.organizer?.[0],colPos:1},null,8,["header","result"])):Ne("",!0),e.data?.relatedContent?.travaux&&!e.data?.hideRelatedContent?(Z(),Se(se,{key:3,result:e.data?.relatedContent?.travaux,config:{title:`${q.$t("blocks.blocsLies.title")} ${q.$t("blocks.blocsLies.type.travaux")}`},isRelated:!0},null,8,["result","config"])):Ne("",!0),ke(z,{content:e.data?.contentElementsContext,colPos:1},null,8,["content"])]),btnBack:be(()=>[bt(q.$slots,"btnBack")]),bottomContent:be(()=>[U(e.data?.type)&&e.data?.type==="events"?(Z(),Se(ye,{key:0,data:{results:e.data?.relatedContent?.events}},null,8,["data"])):Ne("",!0),U(e.data?.type)&&e.data?.type==="news"?(Z(),Se($e,{key:1,data:{results:e.data?.relatedContent?.news}},null,8,["data"])):Ne("",!0)]),_:3},8,["pageData","data","asideContent","bottomContent","popin","fieldsToShow","isTplEdito"])}}});function XG(e){return Un(e)?null:e}function hp(e,t=!1){if(typeof e!="object")return()=>{};let n={};return Object.keys(e).forEach(r=>{let i=XG(Pa(e[r])?e[r].filter(s=>!Un(s)):e[r]),a=r;Pa(i)&&!a.endsWith("[]")&&(a+="[]"),(!SA(i)||!t)&&(n[a]=i)}),n}function bd(e){return Array.isArray(e)?e?.filter(t=>!Un(t))??[]:[]}function Ow(){let e=[],t=[],n=[];const r=async($,A,N,O=!1)=>{let I=new FormData;if(Object.keys(A).forEach(U=>{if(!Un(A[U]))if(Pa(A[U])&&A[U].length>0){let B=U;B.endsWith("[]")||(B+="[]");for(let q=0;q<A[U].length;q++)I.append(B,A[U][q])}else I.append(U,A[U])}),N=Math.max(N,0),I.append("page",N.toString()),JSON.stringify(Object.fromEntries(I.entries()))==JSON.stringify(t)&&!O)return{success:!1,response:null,documents:[],nbResults:0,form:null};{t=Object.fromEntries(I.entries());const B=(await md($,{method:"POST",body:new URLSearchParams(I)})).content.colPos0[0].content.data;return{success:!0,response:B,documents:B?.results||[],nbResults:B?.nbResults||0,form:B?.form}}},i=async($,A,N,O=!1)=>{const I=new FormData;let U=new Map;if(Object.keys(A).forEach(B=>
834{if(!Un(A[B]))if(Pa(A[B])&&A[B].length>0){let q=B;q.endsWith("[]")||(q+="[]");let Q=[];for(let ee=0;ee<A[B].length;ee++)I.append(q,A[B][ee]),Q.push(A[B][ee]);U.set(q,Q)}else I.append(B,A[B]),U.set(B,A[B])}),I.append("tx_cimsearchelastic_displaysearch[page]",Math.max(0,N-1).toString()),U.set("tx_cimsearchelastic_displaysearch[page]",Math.max(0,N-1).toString()),JSON.stringify(Object.fromEntries(U.entries()))==JSON.stringify(e)&&!O)return{success:!1,response:null,documents:[],nbResults:0,form:null};{e=Object.fromEntries(U.entries());let B=await md($,{method:"POST",body:new URLSearchParams(I)});return{success:!0,response:B,documents:B?.documents||[],nbResults:B?.nb_results||0,form:B?.form?.fieldset?.[0]}}},a=async($,A,N=!1)=>{const O=new FormData;let I=new Map;if(Object.keys(A).forEach(U=>{if(!Un(A[U]))if(Pa(A[U])&&A[U].length>0){let B=U;B.endsWith("[]")||(B+="[]");let q=[];for(let Q=0;Q<A[U].length;Q++)O.append(B,A[U][Q]),q.push(A[U][Q]);I.set(B,q)}else O.append(U,A[U]),I.set(U,A[U])}),JSON.stringify(Object.fromEntries(I.entries()))==JSON.stringify(n)&&!N)return{success:!1,response:null,documents:[],nbResults:0,form:null};{n=Object.fromEntries(I.entries());let U=await md($,{method:"POST",body:new URLSearchParams(O)});return{success:!0,response:U,documents:U?.documents||[],nbResults:U?.nb_results||0,form:U?.form?.fieldset?.[0]}}},s=async $=>{let A=await md($,{method:"GET"});return{response:A,content:A?.content?.colPos0?.[0]?.content?.data}},o=async($,A,N,O)=>{await md("/",{method:"HEAD",params:{"tx_cimelastic_viewcount[action]":"count","tx_cimelastic_viewcount[controller]":"ViewCount","tx_cimelastic_viewcount[countType]":$,"tx_cimelastic_viewcount[pid]":A,"tx_cimelastic_viewcount[uid]":N,"tx_cimelastic_viewcount[table]":O??"",type:1597406382,no_cache:1}})},f=$=>{const N=ja().currentRoute.value;return Object.values($).map(O=>({identifier:O.identifier,type:b(O),name:O.name,label:O.label,validators:"",value:m(N,O),fieldlist:!1,properties:{options:T(O),fluidAdditionalAttributes:{placeholder:O.placeholder,autocomplete:"off",isKeyword:O?.isKeyword,required:!1}},elements:typeof O.subFields<"u"?f(O.subFields):[],cssClass:O?.cssClass,placeholder:O.placeholder,required:!1}))};function m($,A){return typeof $.query[A.name]>"u"?A.value!==null&&!Un(A.value)?Array.isArray(A.value)?bd(A.value):A.value:void 0:$.query[A.name]}const y=($,A,N="_popin")=>$.map(O=>{const I={...O};for(const U in A)I.type===U&&(I.type=A[U]);return I.identifier=`${I.identifier}${N}`,I}),b=$=>{let A;switch($?.fieldType){case"checkbox":A="Checkbox";break;case"list":case"calendar_interval":switch($.template){case"checkbox":A="Multicheckbox";break;case"radio":A="Radiobutton";break;case"select_multiple":A="Multiselect";break;default:A="Singleselect";break}break;case"dates":case"periods":A="DatePeriod";break;default:A="Text";break}return A},T=$=>{let A={};return $?.items?.forEach(N=>{let O=typeof N.count<"u"?`${N.label} (${N.count})`:N.label;A[O]=N.value}),A};return{computeFieldFromSettings:f,modifyFiltersForPopin:y,requestSearch:r,requestScroll:i,requestGeo:a,requestDetail:s,requestViewCount:o,activeFilterCount:$=>{const A=hp($,!0);if(!A)return 0;const N=Object.values(A)?.map(O=>typeof O=="string"?O.trim().length>0?1:0:Pa(O)?O.length:0);return Pj(N)}}}const FPe={key:0},ZI=Fe({__name:"PopinDetail",props:{resultsScrollCount:{}},emits:["onPrevious","onNext"],setup(e,{emit:t}){const n=e,{$on:r,$off:i,$emit:a}=En(),{requestDetail:s,requestViewCount:o}=Ow(),m=ja().currentRoute,y=De(),b=vr(),T=De(b.initialData),x=De(b.pageData),$=De(x.value?.meta?.title),A=t,N=De(null),O=De(null),I=De(!1),U=De(!1),B=async({link:Y,showArrows:z})=>{const{response:H,content:K}=await s(Y.href);N.value=H,b.popinDetailData=N,O.value=K,I.value=!0,U.value=n.resultsScrollCount!==1||z||!1,ee(Y),o("search",K.pid,K.uid,K.type),fu({title:K.title,htmlAttrs:{class:K.type}}),A4(T.value,K),y.value&&(y.value.scrollTop=0)},q=Y=>{Y||Q()},Q=()=>{a("popinDetail:close",{}),b.popinDetailData=null,O.value=null,I.value=!1,ee(),fu({title:$.value}),A4(T.value,x.value)},ee=Y=>{history.pushState({},null,I.value?Y?.href:m.value.href)};return Hn(()=>{r("popinDetail:open",B)}),oa(()=>{i("popinDetail:open",B)}),fu({htmlAttrs:{class:{overflow:I}}}),(Y,z)=>{const H=kH,K=$G,ne=bH,le=cr,pe=KG,ae=TH,se=CH,ce=tI,ye=_H;return Z(),Se(ye,{open:v(I),"onUpdate:open":[z[2]||(z[2]=$e=>zn(I)?I.value=$e:null),q]},{default:be(()=>[ke(ce,null,{default:be(()=>[ke(H,{class:de(v(OA)())},null,8,["class"]),ke(se,{id:"popin_detail","aria-label":`${Y.$t("listItem.popin.ariaLabel")} ${v(O)?.title}`,class:de([v(me)({position:"fixed",zIndex:"9998",top:{base:"calc(50% - 45vh)",_print:0},left:{base:"calc(50% - 45vw)",_print:0},width:{base:"90vw",_print:"100vw"},minHeight:"90vh"}),v(Tr)({justifyContent:"center"})])},{default:be(()=>[Re("div",{ref_key:"popinScrollContainer",ref:y,class:de(v(me)({bgColor:"{colors.white}",maxWidth:{base:"95vw",md:"90vw"},height:"90vh",width:"100%",overflow:"hidden",overflowY:"auto",_print:{height:"100vh",maxWidth:"100vw"}}))},[ke(ne,{asChild:""},{default:be(()=>[ke(K,{title:Y.$t("listItem.popin.btnClose"),popinFull:!0,class:de(v(me)({position:"fixed",zIndex:"3",top:{base:"1.5rem",md:"3rem"},right:{base:"1.5rem",md:"3rem"}}))},null,8,["title","class"])]),_:1}),v(O)?(Z(),Se(ae,{key:0,as:"div",class:de(v(me)({height:"100%"}))},{default:be(()=>[ke(pe,{popin:!0,"page-data":v(N),data:v(O)},{btnBack:be(()=>[ke(ne,{"as-child":""},{default:be(()=>[ke(le,{link:{text:`${Y.$t("common.buttons.btnBack")} ${Y.$t("listItem.type."+v(O).type,2)}`},variante:{classes:"pictoRound",pictoColor:"white",pictoSize:"md",pictoPlacement:"left"},showSr:!1,picto:"prev",type:"button",autofocus:""},null,8,["link"])]),_:1})]),_:1},8,["page-data","data"])]),_:1},8,["class"])):Ne("",!0)],2),v(U)?(Z(),Ce("div",FPe,[ke(le,{onClick:z[0]||(z[0]=$e=>A("onPrevious",v(O))),link:{text:Y.$t("common.prev")},variante:{classes:"pictoRound",pictoColor:"white",pictoSize:"lg"}
834,type:"button",picto:"prev",showSr:!0,class:de(v(me)({position:"fixed",top:"50%",left:{base:"0.5rem",md:0},transform:{base:"translate(0,0)",md:"translate(50%, -50%)"},zIndex:2}))},null,8,["link","class"]),ke(le,{onClick:z[1]||(z[1]=$e=>A("onNext",v(O))),link:{text:Y.$t("common.next")},variante:{classes:"pictoRound",pictoColor:"white",pictoSize:"lg"},type:"button",picto:"next",showSr:!0,class:de(v(me)({position:"fixed",top:"50%",right:{base:"0.5rem",md:0},transform:{base:"translate(0,0)",md:"translate(-50%, -50%)"},zIndex:2}))},null,8,["link","class"])])):Ne("",!0)]),_:1},8,["aria-label","class"])]),_:1})]),_:1},8,["open"])}}}),zPe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 21 20"};function NPe(e,t){return Z(),Ce("svg",zPe,[...t[0]||(t[0]=[Re("path",{fill:"#131313",d:"M4.068 13.75v1.5h4.5v-1.5zm0-9v1.5h7.5v-1.5zm7.5 12v-1.5h6v-1.5h-6v-1.5h-1.5v4.5zm-4.5-9v1.5h-3v1.5h3v1.5h1.5v-4.5zm10.5 3v-1.5h-7.5v1.5zm-4.5-3h1.5v-1.5h3v-1.5h-3v-1.5h-1.5z"},null,-1)])])}const JG={render:NPe},VPe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 35 35"};function qPe(e,t){return Z(),Ce("svg",VPe,[...t[0]||(t[0]=[Re("path",{fill:"#fff",d:"M20.725 19.44h-.677l-.24-.231a5.577 5.577 0 1 0-.599.6l.231.24v.676L23.724 25 25 23.724zm-5.14 0a3.855 3.855 0 1 1 0-7.709 3.855 3.855 0 0 1 0 7.71"},null,-1)])])}const jPe={render:qPe},UPe=["value","id","title","name","type","placeholder","autocomplete","aria-invalid","aria-describedby","aria-required","required"],HPe=Fe({__name:"T3FormFieldText",props:{name:{},field:{},type:{},showLabel:{type:Boolean,default:!0},showForSr:{type:Boolean},componentCustomClass:{},labelCustomClass:{},inputCustomClass:{},fileLoaded:{type:Boolean},title:{}},emits:["update:value"],setup(e,{emit:t}){const{isAmiral:n}=zr(),r=e,i=r.field.properties?.fluidAdditionalAttributes?.isKeyword,a=xe(()=>r.field.properties?.fluidAdditionalAttributes?.required??r.field.validators.required??r.field.validators?.NotEmpty),s=t,{$emit:o}=En(),{getdescribedBy:f}=bc(),{value:m,setValue:y}=Ma(()=>r.name);y(r.field.value,!1);const b=x=>{T(x),o("filters:onFieldValueChanged",{...r.field})},T=x=>{y(x),s("update:value",x)};return(x,$)=>{const A=cr,N=jPe,O=Xo;return Z(),Se(O,gr(yr(r)),{input:be(I=>[Ol(Re("input",{"onUpdate:modelValue":$[0]||($[0]=U=>zn(m)?m.value=U:null),value:v(m),id:e.field.identifier,title:e.labelCustomClass==="srOnly"?e.field.label:null,name:e.name,type:e.field.type==="telephone"?"tel":e.field.type,placeholder:e.field?.placeholder||e.field.properties?.fluidAdditionalAttributes?.placeholder,autocomplete:e.field.properties?.fluidAdditionalAttributes?.autocomplete,"aria-invalid":I.showErrorMessage?!0:null,"aria-describedby":v(f)(I,e.field),"aria-required":v(a),required:v(a),class:de([v(me)({paddingLeft:v(i)?{base:"5rem",md:"4.5rem"}:null,paddingRight:v(i)?"6rem":null,_placeholder:{color:"{colors.black}"}})]),onChange:$[1]||($[1]=U=>b(U.target.value))},null,42,UPe),[[RN,v(m)]]),v(i)&&v(m)?.length>0?(Z(),Se(A,{key:0,type:"button",title:x.$t("form.reinitField"),link:{text:x.$t("form.reinitField")},onClick:$[2]||($[2]=U=>b("")),variante:{classes:"pictoRound",pictoColor:v(n)()?"black":"primary",pictoSize:e.field?.cssClass==="keyword"?"xs":"xxs"},showSr:!0,picto:"close",class:de(v(me)({position:"absolute",bottom:e.field?.cssClass==="keyword"?"0.6rem":"0.8rem",right:e.field?.cssClass==="keyword"?"1rem":"2rem",zIndex:1}))},null,8,["title","link","variante","class"])):Ne("",!0),v(i)?(Z(),Se(N,{key:1,"aria-hidden":"true",class:de([v(ei)({width:"3.5rem",height:"3.5rem",fill:"black"}),v(me)({position:"absolute",left:"1rem",bottom:"0.5rem",borderRadius:"50%",backgroundColor:"transparent"})])},null,8,["class"])):Ne("",!0)]),_:1},16)}}}),WPe=["id","value","name","placeholder","autocomplete","aria-invalid","aria-describedby","aria-required"],GPe=Fe({__name:"T3FormFieldTelephone",props:{name:{},field:{},type:{},showLabel:{type:Boolean,default:!0},showForSr:{type:Boolean},componentCustomClass:{},labelCustomClass:{},inputCustomClass:{},fileLoaded:{type:Boolean},title:{}},emits:["update:value"],setup(e,{emit:t}){const n=e,r=t,{value:i,setValue:a}=Ma(()=>n.name,void 0,{keepValueOnUnmount:!0}),s=xe(()=>n.field.properties?.fluidAdditionalAttributes?.required??n.field.validators.required??n.field.validators?.NotEmpty),{getdescribedBy:o}=bc(),f=m=>{a(m),r("update:value",m)};return(m,y)=>{const b=Xo;return Z(),Se(b,gr(yr(n)),{input:be(T=>[Re("input",{id:e.field.identifier,"data-form-phone":"",value:v(i),name:e.field.name,type:"tel",placeholder:e.field?.placeholder||e.field.properties?.fluidAdditionalAttributes?.placeholder,autocomplete:e.field.properties?.fluidAdditionalAttributes?.autocomplete||"tel","aria-invalid":T.showErrorMessage?!0:void 0,"aria-describedby":v(o),"aria-required":v(s),onChange:y[0]||(y[0]=x=>f(x.target.value))},null,40,WPe)]),_:1},16)}}}),YPe=["innerHTML"],ZPe=["innerHTML"],KPe=Fe({__name:"T3FormFieldCheckbox",props:{name:{},field:{}},emits:["update:value"],setup(e,{emit:t}){const n=e,r=t,{$emit:i}=En(),{value:a,setValue:s,handleChange:o}=Ma(()=>n.name),{getdescribedBy:f}=bc(),m=xe(()=>!1),y=De(m.value);nn(a,()=>{y.value=a.value?!!a.value:m.value},{immediate:!0});const b=xe(()=>n.field.properties?.fluidAdditionalAttributes?.required);typeof n.field.defaultValue<"u"&&s(n.field.defaultValue,!1),typeof n.field.value<"u"&&s(n.field.value,!1);const T=()=>{x(),i("filters:onFieldValueChanged",{...n.field})},x=()=>{const $=y.value===m.value?!1:y.value;o($,!0),r("update:value",$)};return($,A)=>{const N=zg,O=dI,I=Xo;return Z(),Se(I,vn(n,{"show-label":!1}),{input:be(U=>[ke(N,{field:e.field,name:e.name,tag:"label",class:de(v(Er)())},null,8,["field","name","class"]),ke(O,{modelValue:v(y),"onUpdate:modelValue":[A[0]||(A[0]=B=>
834zn(y)?y.value=B:null),T],class:de(["checkbox",v(Tr)({flexDir:"row",gap:"0.5rem"})]),id:e.field.identifier,name:e.name,"aria-invalid":U.showErrorMessage?!0:null,"aria-describedby":v(f)(U,e.field),required:v(b)},{default:be(()=>[e.field?.properties?.contentElementHtml?.content?.bodytext?(Z(),Ce("div",{key:0,class:de([v(me)({"& > *":{fontSize:"1.6rem",marginBottom:0}}),v(Wa)()]),innerHTML:e.field?.properties?.contentElementHtml?.content?.bodytext},null,10,YPe)):(Z(),Ce("span",{key:1,innerHTML:e.field.label},null,8,ZPe)),e.field.properties?.fluidAdditionalAttributes?.required||e.field.validators?.NotEmpty?(Z(),Ce("span",{key:2,class:de(v(me)({color:"primary",fontWeight:800}))}," *",2)):Ne("",!0)]),_:1},8,["modelValue","id","name","aria-invalid","aria-describedby","required","class"])]),_:1},16)}}}),XPe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"};function JPe(e,t){return Z(),Ce("svg",XPe,[...t[0]||(t[0]=[Re("path",{fill:"none",d:"M0 0h24v24H0Z"},null,-1),Re("path",{d:"M7 11h2v2H7Zm14-5v14a2.006 2.006 0 0 1-2 2H5a2 2 0 0 1-2-2l.01-14A1.99 1.99 0 0 1 5 4h1V2h2v2h8V2h2v2h1a2.006 2.006 0 0 1 2 2M5 8h14V6H5Zm14 12V10H5v10Zm-4-7h2v-2h-2Zm-4 0h2v-2h-2Z","data-name":"black"},null,-1)])])}const QPe={render:JPe},e$e=["value","name"],G$=Fe({__name:"DatePicker",props:tP({dateField:{},locale:{},minValue:{},maxValue:{},ariaDescribedby:{},isDateTime:{type:Boolean}},{veeValidateValue:{},veeValidateValueModifiers:{}}),emits:tP(["update"],["update:veeValidateValue"]),setup(e,{expose:t,emit:n}){const r=e,i=n,a=uN(e,"veeValidateValue"),s=T=>{if(T){const x=N0e(T.toString());return r.isDateTime?`${x.year}-${oy(x.month.toString(),2,"0")}-${oy(x.day.toString(),2,"0")} ${oy(x.hour.toString(),2,"0")}:${oy(x.minute.toString(),2,"0")}:${oy(x.second.toString(),2,"0")}`:`${x.year}-${oy(x.month.toString(),2,"0")}-${oy(x.day.toString(),2,"0")}`}return""},o=De(null),f=De(o);nn(f,T=>{if(T){const x=s(T);a.value=x,i("update",x)}},{immediate:!0});const m=xe(()=>r.dateField.properties?.fluidAdditionalAttributes?.required??r.dateField.validators.required??r.dateField.validators?.NotEmpty),y=xe(()=>s(f.value)),b=xe(()=>r.dateField.name.replace(r.dateField.identifier,`${r.dateField.identifier}_raw`).replace(xs(r.dateField.identifier),`${xs(r.dateField.identifier)}_raw`));return Hn(()=>{if(typeof r.dateField.value<"u"&&yT(r.dateField.value)){const T=oo.unix(r.dateField.value).toDate();o.value=new xg(T.getFullYear(),T.getMonth()+1,T.getDate(),T.getHours(),T.getMinutes(),T.getSeconds()),f.value=o.value}}),t({value:f,setDate:T=>{f.value=B6(T)}}),(T,x)=>{const $=$2e,A=QPe,N=R2e,O=h2e,I=qbe,U=Hbe,B=cr,q=D2e,Q=E2e,ee=A2e,Y=T2e,z=S2e,H=x2e,K=_2e,ne=e2e,le=Jbe,pe=y2e,ae=m2e,se=Kbe,ce=d2e,ye=Ybe;return e.dateField&&e.dateField.name?(Z(),Ce(Ct,{key:0},[Re("input",{type:"hidden",value:v(y),name:e.dateField.name},null,8,e$e),ke(ye,{locale:e.locale,modelValue:v(f),"onUpdate:modelValue":[x[0]||(x[0]=$e=>zn(f)?f.value=$e:null),T.onUpdate],granularity:e.isDateTime?"minute":"day",minValue:e.minValue?v(B6)(e.minValue):new(v(ai))(1920,1,1),maxValue:e.maxValue?v(B6)(e.maxValue):new(v(ai))(2050,12,31),name:v(b),hourCycle:24,id:e.dateField?.identifier,required:v(m)},{default:be(()=>[ke(O,{"data-input-style":"","aria-required":v(m),"aria-describedby":e.ariaDescribedby,class:de(v(Qn)({gap:0}))},{default:be(({segments:$e})=>[(Z(!0),Ce(Ct,null,ln($e,Be=>(Z(),Ce(Ct,{key:Be.part},[Be.part==="literal"?(Z(),Se($,{key:0,part:Be.part},{default:be(()=>[_n(ht(Be.value),1)]),_:2},1032,["part"])):(Z(),Se($,{key:1,part:Be.part,"aria-label":Be.part=="day"?"jour":Be.part=="month"?"mois":"année",class:de(Be.part==="hour"?v(me)({marginLeft:"0.5rem"}):null)},{default:be(()=>[_n(ht(Be.value),1)]),_:2},1032,["part","aria-label","class"]))],64))),128)),ke(N,null,{default:be(()=>[ke(A,{"aria-hidden":"true",class:de(v(ei)({marginLeft:".5rem"}))},null,8,["class"])]),_:1})]),_:1},8,["aria-required","aria-describedby","class"]),ke(I),ke(ce,{align:"start",side:"bottom"},{default:be(()=>[ke(U,{"aria-hidden":"true",class:de(v(me)({fill:"{colors.black}",width:"1.5rem",height:"1rem"}))},null,8,["class"]),ke(se,{locale:e.locale,class:de(v(me)({bgColor:"{colors.white}",border:"{borders.sm} {colors.black}",borderRadius:"{radii.sm}",padding:"1rem"}))},{default:be(({weekDays:$e,grid:Be})=>[ke(Y,{class:de([v(Qn)({justifyContent:"space-between"}),v(me)({paddingBottom:"1rem",marginBottom:"0.5rem",borderBottom:"{borders.sm} {colors.lightGray}"})])},{default:be(()=>[ke(q,{asChild:""},{default:be(()=>[ke(B,{link:{text:T.$t("search.pagination.paginationPrev")},variante:{classes:"pictoRound",pictoColor:"primary",pictoSize:"sm"},type:"button",picto:"prev",showSr:!0},null,8,["link"])]),_:1}),ke(Q,{class:de(v(me)({fontWeight:600,fontSize:"{fontSizes.p}"}))},null,8,["class"]),ke(ee,null,{default:be(()=>[ke(B,{link:{text:T.$t("search.pagination.paginationNext")},variante:{classes:"pictoRound",pictoColor:"primary",pictoSize:"sm"},type:"button",picto:"next",showSr:!0},null,8,["link"])]),_:1})]),_:1},8,["class"]),(Z(!0),Ce(Ct,null,ln(Be,je=>(Z(),Se(ae,{key:je.value.toString(),class:de(v(me)({width:"100%",textAlign:"center"}))},{default:be(()=>[ke(K,null,{default:be(()=>[ke(H,null,{default:be(()=>[(Z(!0),Ce(Ct,null,ln($e,at=>(Z(),Se(z,{key:at,class:de(v(me)({fontWeight:600,fontSize:"{fontSizes.sm}",padding:"1rem",marginBottom:"0.5rem",borderBottom:"{borders.sm} {colors.lightGray}",textAlign:"center"}))},{default:be(()=>[_n(ht(at),1)]),_:2},1032,["class"]))),128))]),_:2},1024)]),_:2},1024),ke(pe,{class:de(v(me)({"& [data-today]":{bgColor:"secondary",color:"white"},"& [data-selected=true]":{bgColor:"{colors.black}",color:"{colors.white}"},"& [data-radix-vue-calendar-cell-trigger]":{transition:"{easings.global}",_hover:{bgColor:"{colors.primary}",color:"{colors.black}",boxShadow:"inset 0 0 0 0.2rem {colors.black}"}}}))},{default:be(()=>[(Z(!0),Ce(Ct,null,ln(je.rows,(at,Pt)=>(Z(),Se(H,{key:`weekDate-${Pt}`},{default:be(()=>[(Z(!0),Ce(Ct,null,ln(at,Qe=>(Z(),Se(le,{key:Qe.toString(),date:Qe},{default:be(()=>[ke(ne,{day:Qe,month:je.value,class:de(v(me)({cursor:"pointer",padding:"1rem",fontSize:"{fontSizes.sm}"}))},null,8,["day","month","class"])]),_:2},1032,["date"]))),128))]),_:2},1024))),128))]),_:2},1032,["class"])]),_:2},1032,["class"]))),128))]),_:1},8,["locale","class"])]),_:1})]),_:1},8,["locale","modelValue","granularity","minValue","maxValue","name","id","required","onUpdate:modelValue"])],64)):Ne("",!0)}}}),t$e=Fe({__name:"T3FormFieldDate",props:{name:{},field:{}},emits:["update"],setup(e,{emit:t}){const{locale:n}=Ii(),r=e,i=De(r.field),{value:a,setValue:s}=Ma(r.name),{getdescribedBy:o}=bc(),f=De(r.field.value);return nn(f,()=>{if(w_(f.value)&&i.value?.properties?.dateFormat){let m=i.value?.properties?.dateFormat;m=m.replace("H",f.value.hour),m=m.replace("i",f.value.minute),m=m.replace("s",f.value.second),s(m)}},{immediate:!0}),(m,y)=>{const b=vwe,T=gwe,x=Xo;return Z(),Se(x,gr(yr(r)),{input:be($=>[v(i)?.properties?.dateFormat==="H:i"?(Z(),Se(T,{key:0,granularity:"minute",locale:v(n),modelValue:v(f),"onUpdate:modelValue":y[0]||(y[0]=A=>zn(f)?f.value=A:null),name:v(i).name,"data-input-style":"",class:de(v(Qn)({gap:0}))},{default:be(({segments:A})=>[(Z(!0),Ce(Ct,null,ln(A,N=>(Z(),Ce(Ct,{key:N.part},[N.part==="literal"?(Z(),Se(b,{key:0,part:N.part},{default:be(()=>[_n(ht(N.value),1)]),_:2},1032,["part"])):(Z(),Se(b,{key:1,part:N.part},{default:be(()=>[_n(ht(N.value),1)]),_:2},1032,["part"]))],64))),128))]),_:1},8,["locale","modelValue","name","class"])):(Z(),Se(G$,{key:1,locale:v(n),"aria-invalid":$.showErrorMessage?!0:null,"aria-describedby":v(o)($,e.field),dateField:v(i),isDateTime:v(i)?.properties?.dateFormat==="d/m/Y H:i",onUpdate:y[1]||(y[1]=A=>v(s)(A))},null,8,["locale","aria-invalid","aria-describedby","dateField","isDateTime"]))]),_:1},16)}}}),n$e={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 30 30"};function r$e(e,t){return Z(),Ce("svg",n$e,[...t[0]||(t[0]=[JC('<g clip-path="url(#i-1116914151__a)"><path d="M14.999 30.004C23.284 30.004 30 23.288 30 15.003S23.284.002 14.999.002-.002 6.718-.002 15.003
834s6.716 15.001 15.001 15.001" data-name="primary"></path><path d="m10.201 14.346 1.414-1.414L15 16.316l3.384-3.384 1.414 1.414L15 19.144z" clip-rule="evenodd" data-name="white"></path></g><defs><clipPath id="i-1116914151__a"><path d="M0 0h30v30H0z" data-name="white"></path></clipPath></defs>',2)])])}const KI={render:r$e},i$e={key:0},a$e=["for"],o$e=["for"],s$e=Fe({__name:"T3FormFieldDatePeriod",props:{name:{},field:{}},emits:["update:value"],setup(e,{emit:t}){const{isAmiral:n}=zr(),{locale:r}=Ii(),i=HW(),a=e,s=t,{$emit:o}=En(),f=De(a.field.elements[0]),m=De(a.field.elements[1]),y=De(a.field.elements[2]),{value:b,handleChange:T}=Ma(()=>f.value.name),{value:x,handleChange:$}=Ma(()=>m.value.name),{value:A,handleChange:N}=Ma(()=>y.value.name),O=xe(()=>r.value==="fr"?"jj/mm/aaaa":"mm/dd/yyyy"),I=z=>{$(z?.toString())},U=z=>{N(z?.toString())},B=[{label:"Aujourd'hui",value:"today",startModifier:()=>{const z=i();return new ai(z.year(),z.month()+1,z.date())},endModifier:()=>{const z=i().hour(23).minute(59).second(59);return new ai(z.year(),z.month()+1,z.date())}},{label:"Cette semaine",value:"week",startModifier:()=>{const z=i().day(1);return new ai(z.year(),z.month()+1,z.date())},endModifier:()=>{const z=i().day(7).hour(23).minute(59).second(59);return new ai(z.year(),z.month()+1,z.date())}},{label:"Ce week-end",value:"weekend",startModifier:()=>{const z=i().day(5).hour(17).minute(0).second(0);return new ai(z.year(),z.month()+1,z.date())},endModifier:()=>{const z=i().day(7).hour(23).minute(59).second(59);return new ai(z.year(),z.month()+1,z.date())}},{label:"Ce mois",value:"month",startModifier:()=>{const z=i();return new ai(z.year(),z.month(),z.date())},endModifier:()=>{const z=i().date(31).hour(23).minute(59).second(59);return new ai(z.year(),z.month(),z.date())}}],q=xe(()=>f.value.properties?.prependOptionLabel||f.value.placeholder||"-- Sélectionner --"),Q=De(f.value.value?f.value.value:q.value);nn(b,()=>{Q.value=SA(b.value)?q.value:b.value.toString()}),Hn(()=>{const z=Q.value===q.value?"":Q.value;T(z)});const ee=()=>{Y(),o("filters:onFieldValueChanged",{...f.value})},Y=()=>{const z=Q.value===q.value?"":Q.value;if(T(z),s("update:value",z),Q.value==="period")I(Fx(bg())),U(Fx(bg()));else if(Un(b))$(void 0),N(void 0);else{let H=B.filter(K=>K.value===Q.value)[0]||void 0;typeof H<"u"?(typeof H.startModifier=="function"&&I(H.startModifier()),typeof H.endModifier=="function"&&U(H.endModifier())):($(void 0),N(void 0))}};return(z,H)=>{const K=lW,ne=KI,le=wI,pe=bI,ae=_I,se=SI,ce=vI,ye=xI,$e=yI,Be=UG,je=Xo;return Z(),Se(je,gr(yr(a)),{input:be(at=>[ke($e,{modelValue:v(Q),"onUpdate:modelValue":[H[0]||(H[0]=Pt=>zn(Q)?Q.value=Pt:null),H[1]||(H[1]=Pt=>ee())],name:v(f).name,class:de(v(me)({"& *":{overflow:"auto !important"}}))},{default:be(()=>[ke(le,{id:v(f).identifier,"aria-labelledby":`${e.field.identifier}_label`,"aria-describedby":v(f).properties?.elementDescription?"description-"+e.field.identifier:null,class:de(v(me)({_expanded:{"& svg":{transform:"rotate(-180deg)"}}}))},{default:be(()=>[ke(K),ke(ne,{"aria-hidden":"true",class:de([v(me)({transition:"{easings.global}"}),v(ei)({"& path":{_first:{fill:v(n)()?"black":"primary"}},size:"3rem"})])},null,8,["class"])]),_:1},8,["id","aria-labelledby","aria-describedby","class"]),ke(ye,{disabled:""},{default:be(()=>[ke(ce,{style:{"user-select":"none"},position:"popper",avoidCollisions:!1},{default:be(()=>[ke(se,{as:"ul"},{default:be(()=>[ke(ae,{as:"li",value:v(q)},{default:be(()=>[ke(pe,null,{default:be(()=>[_n(ht(v(q)),1)]),_:1})]),_:1},8,["value"]),(Z(),Ce(Ct,null,ln(B,Pt=>ke(ae,{as:"li",key:Pt.value,value:Pt.value},{default:be(()=>[ke(pe,null,{default:be(()=>[_n(ht(Pt.label),1)]),_:2},1024)]),_:2},1032,["value"])),64)),ke(ae,{as:"li",value:"period"},{default:be(()=>[ke(pe,null,{default:be(()=>[_n(ht(z.$t("search.filters.period")),1)]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue","name","class"]),v(b)==="period"?(Z(),Ce("fieldset",i$e,[Re("legend",{class:de(v(Er)())},ht(z.$t("search.filters.period")),3),Re("div",{class:de([v(Mi)({columns:2}),v(me)({marginTop:"1.5rem"})])},[Re("div",null,[Re("label",{for:v(m)?.identifier},"Du",8,a$e),ke(G$,{dateField:v(m),locale:v(r),"aria-describedby":`${v(m).identifier}-help`,onUpdate:I},null,8,["dateField","locale","aria-describedby"]),ke(Be,{identifier:v(m).identifier},{default:be(()=>[_n(ht(z.$t("form.file.onlyFormat"))+" : "+ht(v(O)),1)]),_:1},8,["identifier"])]),Re("div",null,[Re("label",{for:v(y)?.identifier},"Au",8,o$e),ke(G$,{dateField:v(y),locale:v(r),"aria-describedby":`${v(y).identifier}-help`,"min-value":v(x)?.toString(),onUpdate:U},null,8,["dateField","locale","aria-describedby","min-value"]),ke(Be,{identifier:v(y).identifier},{default:be(()=>[_n(ht(z.$t("form.file.onlyFormat"))+" : "+ht(v(O)),1)]),_:1},8,["identifier"])])],2)])):Ne("",!0)]),_:1},16)}}}),l$e=["id","name","accept","aria-describedby","aria-invalid","aria-required"],u$e=Fe({__name:"T3FormField
834Fileupload",props:{name:{},field:{},type:{},showLabel:{type:Boolean},showForSr:{type:Boolean},componentCustomClass:{},labelCustomClass:{},inputCustomClass:{},fileLoaded:{type:Boolean},title:{}},setup(e){const t=e,n=De(),{handleChange:r,value:i}=Ma(()=>t.name),a=De(!1),{getdescribedBy:s}=bc(),o=xe(()=>t.field.properties?.allowedMimeTypes?.join(",")),f=m=>{r(m);const y=m.target;a.value=!!(y.files&&y.files.length>0)};return nn(i,m=>{!m&&typeof m<"u"&&n.value&&(n.value.value="")}),(m,y)=>{const b=zg,T=Xo;return Z(),Se(T,vn(t,{"show-label":!1,fileLoaded:a.value}),{input:be(x=>[ke(b,{field:e.field,name:e.name,tag:"label"},null,8,["field","name"]),Re("input",{ref_key:"fieldRef",ref:n,id:e.field.identifier,type:"file",name:e.field.name,accept:o.value,"aria-describedby":v(s)(x,e.field),"aria-invalid":x.showErrorMessage?!0:null,"aria-required":e.field.properties?.fluidAdditionalAttributes?.required?!0:null,onChange:f},null,40,l$e)]),_:1},16,["fileLoaded"])}}}),c$e={class:"form_image"},d$e=["id","name","accept","aria-describedby","aria-invalid","aria-required"],f$e=Fe({__name:"T3FormFieldImageupload",props:{name:{},field:{},type:{},showLabel:{type:Boolean},showForSr:{type:Boolean},componentCustomClass:{},labelCustomClass:{},inputCustomClass:{},fileLoaded:{type:Boolean},title:{}},setup(e){const t=e,n=De(),{handleChange:r,value:i,setValue:a}=Ma(()=>t.name),{getdescribedBy:s}=bc(),o=xe(()=>t.field.properties?.allowedMimeTypes?.join(",")),f=De(!1),m=y=>{r(y);const b=y.target;f.value=!!(b.files&&b.files.length>0)};return(y,b)=>{const T=zg,x=Xo;return Z(),Se(x,vn(t,{"show-label":!1,fileLoaded:f.value}),{input:be($=>[ke(T,{field:e.field,name:e.name,tag:"label"},null,8,["field","name"]),Re("div",c$e,[Re("input",{ref_key:"fieldRef",ref:n,id:e.f
834ield.identifier,type:"file",name:e.field.name,class:"form_file_input",accept:o.value,"aria-describedby":v(s)($,e.field),"aria-invalid":$.showErrorMessage?!0:null,"aria-required":e.field.properties?.fluidAdditionalAttributes?.required?!0:null,onChange:m},null,40,d$e)])]),_:1},16,["fileLoaded"])}}}),h$e={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 21 20"};function p$e(e,t){return Z(),Ce("svg",h$e,[...t[0]||(t[0]=[Re("path",{fill:"#131313",d:"m18.407 9.213-7.783 4.343-7.783-4.343a.8.8 0 0 0-.562-.078.74.74 0 0 0-.456.315.65.65 0 0 0-.084.522c.048.178.17.33.338.425l8.165 4.555a.79.79 0 0 0 .765 0l8.165-4.555a.7.7 0 0 0 .215-.181.67.67 0 0 0 .137-.513.7.7 0 0 0-.097-.253.7.7 0 0 0-.195-.2.77.77 0 0 0-.551-.128.8.8 0 0 0-.274.091"},null,-1),Re("path",{fill:"#131313",d:"m18.407 12.366-7.783 4.341-7.783-4.341a.8.8 0 0 0-.562-.078.74.74 0 0 0-.456.314.65.65 0 0 0-.084.523c.048.177.17.33.338.424l8.165 4.556a.79.79 0 0 0 .765 0l8.165-4.556a.7.7 0 0 0 .215-.18.643.643 0 0 0 .04-.766.7.7 0 0 0-.195-.2.798.798 0 0 0-.825-.037M10.625 11.835c-.4 0-.793-.102-1.136-.293L2.077 7.407a.7.7 0 0 1-.264-.252.65.65 0 0 1 0-.68.7.7 0 0 1 .264-.251l7.41-4.135a2.33 2.33 0 0 1 1.137-.293c.4 0 .793.102 1.137.293l7.41 4.135c.11.061.201.148.264.252a.65.65 0 0 1 0 .679.7.7 0 0 1-.263.252L11.76 11.54a2.34 2.34 0 0 1-1.136.294m-6.722-5.02 6.35 3.542a.77.77 0 0 0 .743 0l6.35-3.543-6.35-3.541a.77.77 0 0 0-.742 0z"},null,-1)])])}const QG={render:p$e},m$e={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 30 30"};function g$e(e,t){return Z(),Ce("svg",m$e,[...t[0]||(t[0]=[JC('<g clip-path="url(#i1621056633__a)"><path d="M14.999 30.004C23.284 30.004 30 23.288 30 15.003S23.284.002 14.999.002-.002 6.718-.002 15.003s6.716 15.001 15.001 15.001" data-name="primary"></path><path d="m10.201 14.346 1.414-1.414L15 16.316l3.384-3.384 1.414 1.414L15 19.144z" clip-rule="evenodd" data-name="white"></path></g><defs><clipPath id="i1621056633__a"><path d="M0 0h30v30H0z" data-name="white"></path></clipPath></defs>',2)])])}const eY={render:g$e},XI=Fe({__name:"Badge",props:{value:{}},setup(e){return(t,n)=>e.value!=="0"?(Z(),Ce("span",{key:0,class:de(v(me)({minWidth:0,borderRadius:"50%",fontSize:"1.2rem",textAlign:"center",fontWeight:600,textTransform:"uppercase",lineHeight:"1.6",backgroundColor:"lightGray",color:"{colors.black}",position:"absolute",top:0,right:{base:0,md:"1.5rem"},width:"2.5rem",height:"2.5rem",border:"{borders.md}{colors.black}",display:"block",padding:0,transform:"translateY(-50%)"}))},ht(e.value),3)):Ne("",!0)}});function nk(e){if(Un(e))return 0;Array.isArray(e)||(e=Object.values(e));const t=e?.map(n=>Un(n)?0:typeof n=="string"?n.trim().length>0?1:0:Pa(n)?bd(n).length:0);return Pj(t)}const y$e=["aria-labelledby","aria-describedby","aria-required"],v$e=["for"],_$e={key:1},b$e=["aria-labelledby","aria-describedby","aria-required"],x$e=["for"],w$e=["aria-labelledby","aria-describedby","aria-required"],S$e={"data-checkbox-container":""},C$e=["for"],T$e=Fe({__name:"T3FormFieldMulticheckbox",props:{name:{},field:{},isPopover:{type:Boolean,default:!1}},emits:["update:value"],setup(e,{emit:t}){const n=e,r=t,{$emit:i}=En(),{getdescribedBy:a}=bc(),s=xe(()=>tk(n.field.properties?.options).value),o=xe(()=>n.field.properties?.fluidAdditionalAttributes?.required),f=De(!1),m=xe(()=>n.field?.identifier.includes("_popin")),y=vr(),b=xe(()=>{if(y.backendLayout==="list"||m.value)return f.value=!0,!0}),T=xe(()=>f.value?s.value.slice(0,10):s.value),{value:x,handleChange:$}=Ma(In(n.name)),A=De([]),N=De(A.value);Un(N.value)||$(N.value,!1);const O=(B,q)=>{I(B,q),i("filters:onFieldValueChanged",{...n.field})},I=(B,q)=>{if(q)N.value.push(B);else{let Q=N.value.indexOf(B);Q>=0&&delete N.value[Q]}N.value=bT(bd(N.value)).value,$(N.value,!0),r("update:value",N.value)},U=xe(()=>nk(N.value));return nn(x,()=>{const B=bd(x.value??A.value);N.value=Pa(B)?B:[B]},{immediate:!0}),Hn(()=>{const B=bd(Pa(n.field.value)?n.field.value:[n.field.value]);Un(B)||$(B,!1)}),(B,q)=>{const Q=QG,ee=eY,Y=XI,z=nb,H=zg,K=dI,ne=tb,le=eb,pe=cr,ae=Xo;return v(s).length?(Z(),Se(ae,vn({key:0},n,{"show-label":!1}),{input:be(se=>[e.isPopover?(Z(),Se(le,{key:0},{default:be(()=>[ke(z,{asChild:"",class:de(v(U)!==0?v(me)({borderColor:"{colors.primary} !important"}):null)},{default:be(()=>[Re("button",null,[ke(Q,{"aria-hidden":"true"}),Re("span",null,ht(e.field.label),1),ke(ee,{"aria-hidden":"true",class:de(v(me)({width:"1rem !important",height:"1rem !important",position:"absolute",top:"1.5rem",right:"1.5rem"}))},null,8,["class"])]),ke(Y,{value:v(U).toString()},null,8,["value"])]),_:1},8,["class"]),ke(ne,null,{default:be(()=>[Re("fieldset",null,[ke(H,{id:`checkbox_legend_${e.field.identifier}`,field:e.field,name:e.name,tag:"legend","data-label-like":"",class:de(v(Er)())},null,8,["id","field","name","class"]),Re("div",{"data-tag-group":"",role:"group","aria-labelledby":`checkbox_legend_${e.field.identifier}`,"aria-describedby":v(a)(se,e.field),"aria-required":v(o)},[(Z(!0),Ce(Ct,null,ln(v(s),(ce,ye)=>
834(Z(),Ce("div",{key:ye,class:de([v(Qn)({justify:"start",gap:"1rem",alignItems:"center"}),v(me)({width:"100%"})])},[Re("label",{for:`${e.field.identifier}_${ye}`,class:de(v(Er)())},ht(ce.label??ce.value),11,v$e),ke(K,{id:`${e.field.identifier}_${ye}`,name:e.name,value:ce.value,modelValue:v(N).includes(ce.value),class:de(v(me)({width:"100%",textAlign:"start",fontSize:"{fontSizes.sm}",padding:"1rem 1.5rem 1rem 3.5rem",transition:"{easings.global}",_before:{backgroundColor:"{colors.white}"},"&::before, &::after":{top:"50%",left:"1rem",transform:"translate(0,-50%)"},_hover:{bgColor:"{colors.primary}",color:"{colors.white}",_before:{borderColor:"{colors.secondary}",boxShadow:"0 0 0 0.2rem {colors.white}, 0 0 0 0.4rem {colors.primary}"}},_checked:{_before:{backgroundColor:"{colors.primary}"}}})),"onUpdate:modelValue":$e=>O(ce.value,$e)},{default:be(()=>[_n(ht(ce.label??ce.value),1)]),_:2},1032,["id","name","value","modelValue","class","onUpdate:modelValue"])],2))),128))],8,y$e)])]),_:2},1024)]),_:2},1024)):(Z(),Ce("fieldset",_$e,[ke(H,{id:`checkbox_legend_${e.field.identifier}`,field:e.field,name:e.name,tag:"legend","data-label-like":""},null,8,["id","field","name"]),v(b)?(Z(),Se(v(MT),{key:0,"onUpdate:open":q[0]||(q[0]=ce=>f.value=!v(f))},{default:be(()=>[ke(v(AT),{forceMount:""},{default:be(()=>[Re("div",{"data-tag-group":"",role:"group","aria-labelledby":`checkbox_legend_${e.field.identifier}`,"aria-describedby":v(a)(se,e.field),"aria-required":v(o)},[(Z(!0),Ce(Ct,null,ln(v(T),(ce,ye)=>(Z(),Ce(Ct,null,[Re("label",{for:`${e.field.identifier}_${ye}`,class:de(v(Er)())},ht(ce.label??ce.value),11,x$e),ke(K,{"data-tag-item":"",id:`${e.field.identifier}_${ye}`,name:e.name,value:ce.value,modelValue:v(N).includes(ce.value),"onUpdate:modelValue":$e=>O(ce.value,$e)},{default:be(()=>[_n(ht(ce.label??ce.value),1)]),_:2},1032,["id","name","value","modelValue","onUpdate:modelValue"])],64))),256))],8,b$e)]),_:2},1024),v(b)&&v(s)?.length>10?(Z(),Se(v(IT),{key:0,asChild:""},{default:be(()=>[ke(pe,{link:{text:v(f)?B.$t("common.seeMore"):B.$t("common.seeLess")},variante:{classes:"btnTxt",bgColor:"black"},type:"button",class:de(v(me)({fontSize:"{fontSizes.sm} !important"}))},null,8,["link","class"])]),_:1})):Ne("",!0)]),_:2},1024)):(Z(),Ce("div",{key:1,role:"group","aria-labelledby":`checkbox_legend_${e.field.identifier}`,"aria-describedby":v(a)(se,e.field),"aria-required":v(o),class:de(v(Mi)({columns:{base:1,lg:2},rowGap:"1rem"}))},[(Z(!0),Ce(Ct,null,ln(v(s),(ce,ye)=>(Z(),Ce("div",S$e,[Re("label",{for:`${e.field.identifier}_${ye}`,class:de(v(Er)())},ht(ce.label??ce.value),11,C$e),ke(K,{id:`${e.field.identifier}_${ye}`,name:e.name,value:ce.value,modelValue:v(N).includes(ce.value),"onUpdate:modelValue":$e=>O(ce.value,$e)},{default:be(()=>[_n(ht(ce.label??ce.value),1)]),_:2},1032,["id","name","value","modelValue","onUpdate:modelValue"])]))),256))],10,w$e))]))]),_:1},16)):Ne("",!0)}}}),k$e=Fe({__name:"T3FormFieldSingleselect",props:{name:{},field:{}},emits:["update:value"],setup(e,{emit:t}){const{isAmiral:n}=zr(),r=e,i=t,{value:a,setValue:s,handleChange:o}=Ma(()=>r.name),{$emit:f}=En(),{getdescribedBy:m}=bc(),{t:y}=Ii(),b=xe(()=>tk(r.field.properties.options).value),T=xe(()=>r.field.properties?.fluidAdditionalAttributes?.required??r.field.validators.required??r.field.validators?.NotEmpty),x=xe(()=>r.field.properties?.prependOptionLabel??r.field.placeholder!==""?r.f
834ield.placeholder:`-- ${y("common.select")} --`),$=De(Un(r.field.value)?x.value:r.field.value);nn(a,()=>{$.value=Un(a.value)?x.value:a.value},{immediate:!0});const A=()=>{N(),f("filters:onFieldValueChanged",{...r.field})},N=()=>{const O=$.value===x.value?"":$.value;o(O),i("update:value",O)};return Hn(()=>{b.value?.length===1&&!Un(r.field.properties?.queryParamName)&&($.value=b.value[0]?.value,s(b.value[0]?.value,!1))}),(O,I)=>{const U=lW,B=eY,q=wI,Q=bI,ee=_I,Y=SI,z=vI,H=xI,K=yI,ne=Xo;return v(b).length?(Z(),Se(ne,gr(vn({key:0},r)),{input:be(le=>[ke(K,{modelValue:v($),"onUpdate:modelValue":[I[1]||(I[1]=pe=>zn($)?$.value=pe:null),A],name:e.name,required:v(T)},{default:be(()=>[ke(q,{id:e.field.identifier,"aria-labelledby":`${e.field.identifier}_label`,"aria-describedby":v(m)(le,e.field),"aria-invalid":le.showErrorMessage?!0:null,"aria-required":v(T),class:de(v(me)({_expanded:{"& svg":{transform:"rotate(-180deg)",transition:"{easings.global}"}}}))},{default:be(()=>[ke(U),ke(B,{"aria-hidden":"true",class:de(v(ei)({size:"3rem",transition:"{easings.global}","& path":{_first:{fill:v(n)()?"black":"primary"}}}))},null,8,["class"])]),_:1},8,["id","aria-labelledby","aria-describedby","aria-invalid","aria-required","class"]),ke(H,{disabled:""},{default:be(()=>[ke(z,{style:{"user-select":"none"},position:"popper",side:"bottom",align:"start",avoidCollisions:!1,onCloseAutoFocus:I[0]||(I[0]=()=>{})},{default:be(()=>[ke(Y,{as:"ul"},{default:be(()=>[("isEmptyCustom"in O?O.isEmptyCustom:v(Un))(e.field.properties?.queryParamName)?(Z(),Se(ee,{key:0,value:v(x),as:"li"},{default:be(()=>[ke(Q,null,{default:be(()=>[_n(ht(v(x)),1)]),_:1})]),_:1},8,["value"])):Ne("",!0),(Z(!0),Ce(Ct,null,ln(v(b),(pe,ae)=>(Z(),Se(ee,{key:ae,value:pe.value,as:"li"},{default:be(()=>[ke(Q,null,{default:be(()=>[_n(ht(pe.label.slice(0,140)),1)]),_:2},1024)]),_:2},1032,["value"]))),128))]),_:1})]),_:1})]),_:1})]),_:2},1032,["modelValue","name","required"])]),_:1},16)):Ne("",!0)}}}),E$e={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"};function P$e(e,t){return Z(),Ce("svg",E$e,[...t[0]||(t[0]=[Re("path",{fill:"#131313",stroke:"#131313","stroke-width":".25",d:"M10.415 1.663a.607.607 0 0 0-.827 0l-8.5 7.893a.607.607 0 1 0 .827.889l.8-.744v6.978a1.82 1.82 0 0 0 1.822 1.82h10.928a1.82 1.82 0 0 0 1.821-1.82v-6.98l.8.745a.615.615 0 0 0 .858-.031.61.61 0 0 0-.03-.858zM8.18 17.286v-4.25a.607.607 0 0 1 .607-.607h2.43a.607.607 0 0 1 .606.607v4.25zm7.893-.607a.607.607 0 0 1-.607.607h-2.429v-4.25a1.82 1.82 0 0 0-1.82-1.821h-2.43a1.82 1.82 0 0 0-1.82 1.82v4.25h-2.43a.607.607 0 0 1-.607-.606V8.573l6.071-5.638 6.071 5.638z"},null,-1)])])}const $$e={render:P$e},M$e={key:0},A$e=["aria-labelledby","aria-describedby","aria-required"],I$e={"data-tag-item":""},D$e=["for"],L$e={key:1},O$e=["aria-labelledby","aria-describedby","aria-required"],R$e={"data-checkbox-container":""},B$e=["for"],F$e=Fe({__name:"T3FormFieldMultiselect",props:{name:{},field:{}},emits:["update:value"],setup(e,{emit:t}){const n=e,r=t,{$emit:i}=En(),{getdescribedBy:a}=bc(),s=xe(()=>tk(n.field.properties.options).value),o=xe(()=>n.field?.identifier.includes("_popin")),f=De(!1),m=vr(),y=De(m.backendLayout),b=xe(()=>{if(y.value==="list"||o.value)return f.value=!0,!0}),T=xe(()=>f.value?s.value.slice(0,3):s.value),{value:x,handleChange:$}=Ma(In(n.name)),A=De([]),N=De(A.value);Un(N.value)||$(N.value,!1);const O=(B,q)=>{I(B,q),i("filters:onFieldValueChanged",{...n.field})},I=(B,q)=>{if(q)N.value.push(B);else{let Q=N.value.indexOf(B);Q>=0&&delete N.value[Q]}N.value=bT(bd(N.value)).value,$(N.value,!0),r("update:value",N.value)},U=xe(()=>nk(N.value));return nn(x,()=>{const B=bd(x.value??A.value);N.value=Pa(B)?B:[B]},{immediate:!0}),Hn(()=>{const B=bd(Pa(n.field.value)?n.field.value:[n.field.value]);Un(B)||$(B,!1)}),(B,q)=>{const Q=QG,ee=$$e,Y=XI,z=KI,H=nb,K=zg,ne=dI,le=tb,pe=eb,ae=Xo;return Z(),Se(ae,vn(n,{"show-label":!1}),{input:be(se=>[ke(pe,null,{default:be(()=>[ke(H,{"data-form-popover":"",class:de(v(U)!==0?"active_filters":null)},{default:be(()=>[e.field.cssClass==="type_contenu"?(Z(),Se(Q,{key:0,class:de(v(ei)({fill:"black",size:"2rem"})),"aria-hidden":"true"},null,8,["class"])):Ne("",!0),e.field.cssClass==="themes"?(Z(),Se(ee,{key:1,class:de(v(ei)({fill:"black",size:"2rem"})),"aria-hidden":"true"},null,8,["class"])):Ne("",!0),Re("span",null,ht(e.field.label),1),ke(Y,{value:v(U).toString()},null,8,["value"]),ke(z,{"aria-hidden":"true",class:de([v(ei)({size:"2rem"}),v(me)({"& *":{transition:"{easings.global}"},"& [data-name=white]":{fill:"black"},"& [data-name=primary]":{fill:"transparent"}})])},null,8,["class"])]),_:1},8,["class"]),ke(le,null,{default:be(()=>[v(b)?(Z(),Ce("fieldset",M$e,[ke(K,{field:e.field,id:`checkbox_legend_${e.field.identifier}`,name:e.name,tag:"legend",class:de(v(Er)())},null,8,["field","id","name","class"]),Re("div",{"data-tag-group":"",role:"group","aria-labelledby":`checkbox_legend_${e.field.identifier}`,"aria-describedby":v(a)(se,e.field),"aria-required":e.field.properties?.fluidAdditionalAttributes?.required?!0:null,class:de(v(me)({marginBottom:0,gap:0}))},[(Z(!0),Ce(Ct,null,ln(v(T),(ce,ye)=>(Z(),Ce("div",I$e,[ce.label?(Z(),Ce("label",{key:0,for:`${e.field.identifier}_${ye}`,class:de(v(Er)())},ht(ce.label??ce.value),11,D$e)):Ne("",!0),ke(ne,{class:"tag_item",id:`${e.field.identifier}_${ye}`,name:e.name,value:ce.value,modelValue:v(N).includes(ce.value),"onUpdate:modelValue":$e=>O(ce.value,$e)},{default:be(()=>[_n(ht(ce.label??ce.value),1)]),_:2},1032,["id","name","value","modelValue","onUpdate:modelValue"])]))),256))],10,A$e)])):(Z(),Ce("fieldset",L$e,[ke(K,{field:e.field,id:`checkbox_legend_${e.field.identifier}`,name:e.name,tag:"legend",class:de(v(Er)())},null,8,["field","id","name","class"]),Re("div",{"data-tag-group":"",role:"group","aria-labelledby":`checkbox_legend_${e.field.identifier}`,"aria-describedby":v(a)(se,e.field),"aria-required":e.field.properties?.fluidAdditionalAttributes?.required?!0:null,class:de(v(me)({marginBottom:0,gap:0}))},[(Z(!0),Ce(Ct,null,ln(v(s),(ce,ye)=>(Z(),Ce("div",R$e,[ce.label?(Z(),Ce("label",{key:0,for:`${e.field.identifier}_${ye}`,class:de(v(Er)())},ht(ce.label??ce.value),11,B$e)):Ne("",!0),ke(ne,{class:"checkbox",id:`${e.field.identifier}_${ye}`,name:e.name,value:ce.value,modelValue:v(N).includes(ce.value),"onUpdate:modelValue":$e=>O(ce.value,$e)},{default:be(()=>[_n(ht(ce.label??ce.value),1)]),_:2},1032,["id","name","value","modelValue","onUpdate:modelValue"])]))),256))],10,O$e)]))]),_:2},1024)]),_:2},1024)]),_:1},16)}}}),z$e=["value","id","name","type","placeholder","autocomplete","aria-invalid","aria-describedby","aria-required"],N$e=Fe({__name:"T3FormFieldPassword",props:{name:{},field:{}
834,type:{},showLabel:{type:Boolean,default:!0},showForSr:{type:Boolean},componentCustomClass:{},labelCustomClass:{},inputCustomClass:{},fileLoaded:{type:Boolean},title:{}},emits:["update:value"],setup(e,{emit:t}){const n=e,r=t,{value:i,setValue:a}=Ma(()=>n.name),{getdescribedBy:s}=bc(),o=De(!1),f=T=>{a(T),r("update:value",T)},m=De(),{focused:y}=pge(m),b=()=>{o.value=!o.value,y.value=!0};return(T,x)=>{const $=cr,A=Xo;return Z(),Se(A,gr(yr(n)),{input:be(N=>[Re("div",{class:de(v(me)({position:"relative"}))},[Re("input",{value:v(i),ref_key:"inputRef",ref:m,id:e.field.identifier,name:e.field.name,type:v(o)?"text":"password",placeholder:e.field?.placeholder||e.field.properties?.fluidAdditionalAttributes?.placeholder,autocomplete:e.field.properties?.fluidAdditionalAttributes?.autocomplete,onChange:x[0]||(x[0]=O=>f(O.target.value)),class:de(v(me)({paddingRight:"5.5rem"})),"aria-invalid":N.showErrorMessage?!0:null,"aria-describedby":v(s)(N,e.field),"aria-required":e.field.properties?.fluidAdditionalAttributes?.required?!0:null},null,42,z$e),ke($,{type:"button",title:`${v(o)?T.$t("common.hide"):T.$t("common.show")} ${T.$t("form.password.content")}`,link:{text:`${v(o)?T.$t("common.hide"):T.$t("common.show")} ${T.$t("form.password.content")}`},onClick:b,variante:{classes:"pictoRound",pictoColor:"black",pictoSize:"xs"},showSr:!0,picto:v(o)?"hideField":"showField",class:de(v(me)({position:"absolute",top:"50%",right:"1rem",transform:"translateY(-50%)"}))},null,8,["title","link","picto","class"])],2)]),_:1},16)}}}),V$e=["id","name","required"],q$e=Fe({__name:"T3FormFieldHidden",props:{name:{},field:{},type:{},showLabel:{type:Boolean,default:!1},showForSr:{type:Boolean},componentCustomClass:{},labelCustomClass:{},inputCustomClass:{},fileLoaded:{type:Boolean},title:{}},setup(e){const t=e,{value:n,setValue:r}=Ma(()=>t.name);return r(t.field.value,!1),(i,a)=>Ol((Z(),Ce("input",{"onUpdate:modelValue":a[0]||(a[0]=s=>zn(n)?n.value=s:null),id:e.field.identifier,name:e.name,type:"hidden",required:e.field?.required||e.field.properties?.fluidAdditionalAttributes?.required},null,8,V$e)),[[Ix,v(n)]])}}),j$e={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 25 25"};function U$e(e,t){return Z(),Ce("svg",j$e,[...t[0]||(t[0]=[Re("path",{fill:"#212121",d:"M17 15.342c0-.757-.182-1.498-.521-2.136-.34-.638-.824-1.146-1.396-1.466.311-.602.482-1.293.495-2a4.6 4.6 0 0 0-.419-2.026 3.73 3.73 0 0 0-1.217-1.49 2.9 2.9 0 0 0-1.679-.545H8.947a.88.88 0 0 0-.67.333A1.26 1.26 0 0 0 8 6.816v11.368c0 .302.1.59.277.804a.88.88 0 0 0 .67.333h4.737c.88-.001 1.722-.42 2.344-1.167.621-.746.97-1.757.972-2.812m-7.105-7.39h2.368c.377 0 .738.18 1.005.5s.416.754.416 1.206-.15.886-.416 1.206c-.267.32-.628.5-1.005.5H9.895zm3.79 9.095h-3.79v-3.41h3.79c.376 0 .737.18 1.004.5s.416.753.416 1.205-.15.886-.416 1.206c-.267.32-.628.5-1.005.5"},null,-1)])])}const H$e={render:U$e},W$e={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 25 25"};function G$e(e,t){return Z(),Ce("svg",W$e,[...t[0]||(t[0]=[Re("path",{fill:"#212121",d:"M9.612 9.034h9.243a.578.578 0 1 0 0-1.156H9.612a.578.578 0 1 0 0 1.156M18.855 11.922H9.612a.578.578 0 0 0 0 1.156h9.243a.578.578 0 0 0 0-1.156M18.855 15.966H9.612a.577.577 0 1 0 0 1.156h9.243a.577.577 0 1 0 0-1.156M6.723 9.612a1.155 1.155 0 1 0 0-2.311 1.155 1.155 0 0 0 0 2.31M6.723 13.655a1.155 1.155 0 1 0 0-2.31 1.155 1.155 0 0 0 0 2.31M6.723 17.7a1.155 1.155 0 1 0 0-2.312 1.155 1.155 0 0 0 0 2.311"},null,-1)])])}const Y$e={render:G$e},Z$e={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 25 25"};function K$e(e,t){return Z(),Ce("svg",Z$e,[...t[0]||(t[0]=[Re("path",{fill:"#212121",d:"M10.198 9.77h9.243a.578.578 0 0 0 0-1.156h-9.243a.578.578 0 0 0 0 1.156M4.981 17.972q0-.709.234-1.14.234-.438.77-.72l.622-.328q.428-.224.428-.621a.45.45 0 0 0-.468-.472.51.51 0 0 0-.416.178q-.143.172-.143.501h-.941q0-.633.405-1.013.41-.385 1.09-.385.666 0 1.043.31.376.306.376.846 0 .784-.77 1.192l-.576.31a1.4 1.4 0 0 0-.359.26.85.85 0 0 0-.16.322h1.831v.76zM5.944 12.029V8.866H5v-.934q.636 0 .859-.206.223-.205.223-.699H7v5zM19.44 12.658h-9.242a.578.578 0 0 0 0 1.156h9.243a.578.578 0 1 0 0-1.156M19.44 16.702h-9.242a.577.577 0 1 0 0 1.155h9.243a.578.578 0 1 0 0-1.155"},null,-1)])])}const X$e={render:K$e};function ms(e){this.content=e}ms.prototype={constructor:ms,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return-1},get:function(e){var t=this.find(e);return t==-1?void 0:this.content[t+1]},update:function(e,t,n){var r=n&&n!=e?this.remove(n):this,i=r.find(e),a=r.content.slice();return i==-1?a.push(n||e,t):(a[i+1]=t,n&&(a[i]=n)),new ms(a)},remove:function(e){var t=this.find(e);if(t==-1)return this;var n=this.content.slice();return n.splice(t,2),new ms(n)},addToStart:function(e,t){return new ms([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var n=this.remove(e).content.slice();return n.push(e,t),new ms(n)},addBefore:function(e,t,n){var r=this.remove(t),i=r.content.slice(),a=r.find(e);return i.splice(a==-1?i.length:a,0,t,n),new ms(i)}
vendor: 5,365 bytes, line 834
834,forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return e=ms.from(e),e.size?new ms(e.content.concat(this.subtract(e).content)):this},append:function(e){return e=ms.from(e),e.size?new ms(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=ms.from(e);for(var n=0;n<e.content.length;n+=2)t=t.remove(e.content[n]);return t},toObject:function(){var e={};return this.forEach(function(t,n){e[t]=n}),e},get size(){return this.content.length>>1}};ms.from=function(e){if(e instanceof ms)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new ms(t)};function tY(e,t,n){for(let r=0;;r++){if(r==e.childCount||r==t.childCount)return e.childCount==t.childCount?null:n;let i=e.child(r),a=t.child(r);if(i==a){n+=i.nodeSize;continue}if(!i.sameMarkup(a))return n;if(i.isText&&i.text!=a.text){let s=i.text,o=a.text,f=0;for(;s[f]==o[f];f++)n++;return f&&f<s.length&&f<o.length&&iY(s.charCodeAt(f-1))&&rY(s.charCodeAt(f))&&n--,n}if(i.content.size||a.content.size){let s=tY(i.content,a.content,n+1);if(s!=null)return s}n+=i.nodeSize}}function nY(e,t,n,r){for(let i=e.childCount,a=t.childCount;;){if(i==0||a==0)return i==a?null:{a:n,b:r};let s=e.child(--i),o=t.child(--a),f=s.nodeSize;if(s==o){n-=f,r-=f;continue}if(!s.sameMarkup(o))return{a:n,b:r};if(s.isText&&s.text!=o.text){let m=s.text,y=o.text,b=m.length,T=y.length;for(;b>0&&T>0&&m[b-1]==y[T-1];)b--,T--,n--,r--;return b&&T&&b<m.length&&iY(m.charCodeAt(b-1))&&rY(m.charCodeAt(b))&&(n++,r++),{a:n,b:r}}if(s.content.size||o.content.size){let m=nY(s.content,o.content,n-1,r-1);if(m)return m}n-=f,r-=f}}function rY(e){return e>=56320&&e<57344}function iY(e){return e>=55296&&e<56320}class dn{constructor(t,n){if(this.content=t,this.size=n||0,n==null)for(let r=0;r<t.length;r++)this.size+=t[r].nodeSize}nodesBetween(t,n,r,i=0,a){for(let s=0,o=0;o<n;s++){let f=this.content[s],m=o+f.nodeSize;if(m>t&&r(f,i+o,a||null,s)!==!1&&f.content.size){let y=o+1;f.nodesBetween(Math.max(0,t-y),Math.min(f.content.size,n-y),r,i+y)}o=m}}descendants(t){this.nodesBetween(0,this.size,t)}textBetween(t,n,r,i){let a="",s=!0;return this.nodesBetween(t,n,(o,f)=>{let m=o.isText?o.text.slice(Math.max(t,f)-f,n-f):o.isLeaf?i?typeof i=="function"?i(o):i:o.type.spec.leafText?o.type.spec.leafText(o):"":"";o.isBlock&&(o.isLeaf&&m||o.isTextblock)&&r&&(s?s=!1:a+=r),a+=m},0),a}append(t){if(!t.size)return this;if(!this.size)return t;let n=this.lastChild,r=t.firstChild,i=this.content.slice(),a=0;for(n.isText&&n.sameMarkup(r)&&(i[i.length-1]=n.withText(n.text+r.text),a=1);a<t.content.length;a++)i.push(t.content[a]);return new dn(i,this.size+t.size)}cut(t,n=this.size){if(t==0&&n==this.size)return this;let r=[],i=0;if(n>t)for(let a=0,s=0;s<n;a++){let o=this.content[a],f=s+o.nodeSize;f>t&&((s<t||f>n)&&(o.isText?o=o.cut(Math.max(0,t-s),Math.min(o.text.length,n-s)):o=o.cut(Math.max(0,t-s-1),Math.min(o.content.size,n-s-1))),r.push(o),i+=o.nodeSize),s=f}return new dn(r,i)}cutByIndex(t,n){return t==n?dn.empty:t==0&&n==this.content.length?this:new dn(this.content.slice(t,n))}replaceChild(t,n){let r=this.content[t];if(r==n)return this;let i=this.content.slice(),a=this.size+n.nodeSize-r.nodeSize;return i[t]=n,new dn(i,a)}addToStart(t){return new dn([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new dn(this.content.concat(t),this.size+t.nodeSize)}eq(t){if(this.content.length!=t.content.length)return!1;for(let n=0;n<this.content.length;n++)if(!this.content[n].eq(t.content[n]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(t){let n=this.content[t];if(!n)throw new RangeError("Index "+t+" out of range for "+this);return n}maybeChild(t){return this.content[t]||null}forEach(t){for(let n=0,r=0;n<this.content.length;n++){let i=this.content[n];t(i,r,n),r+=i.nodeSize}}findDiffStart(t,n=0){return tY(this,t,n)}findDiffEnd(t,n=this.size,r=t.size){return nY(this,t,n,r)}findIndex(t){if(t==0)return fS(0,t);if(t==this.size)return fS(this.content.length,t);if(t>this.size||t<0)throw new RangeError(`Position ${t} outside of fragment (${this})`);for(let n=0,r=0;;n++){let i=this.child(n),a=r+i.nodeSize;if(a>=t)return a==t?fS(n+1,a):fS(n,r);r=a}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(t=>t.toJSON()):null}static fromJSON(t,n){if(!n)return dn.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return dn.fromArray(n.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return dn.empty;let n,r=0;for(let i=0;i<t.length;i++){let a=t[i];r+=a.nodeSize,i&&a.isText&&t[i-1].sameMarkup(a)?(n||(n=t.slice(0,i)),n[n.length-1]=a.withText(n[n.length-1].text+a.text)):n&&n.push(a)}return new dn(n||t,r)}static from(t){if(!t)return dn.empty;if(t instanceof dn)return t;if(Array.isArray(t))return this.fromArray(t);if(t.attrs)return new dn([t],t.nodeSize);throw new RangeError("Can not convert "+t+" to a Fragment"+(t.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}dn.empty=new dn([],0);const k8={index:0,offset:0};function fS(e,t){return k8.index=e,k8.offset=t,k8}function Z4(e,t){if(e===t)return!0;
vendor: 4,186 bytes, line 834
834if(!(e&&typeof e=="object")||!(t&&typeof t=="object"))return!1;let n=Array.isArray(e);if(Array.isArray(t)!=n)return!1;if(n){if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!Z4(e[r],t[r]))return!1}else{for(let r in e)if(!(r in t)||!Z4(e[r],t[r]))return!1;for(let r in t)if(!(r in e))return!1}return!0}let Ri=class Y${constructor(t,n){this.type=t,this.attrs=n}addToSet(t){let n,r=!1;for(let i=0;i<t.length;i++){let a=t[i];if(this.eq(a))return t;if(this.type.excludes(a.type))n||(n=t.slice(0,i));else{if(a.type.excludes(this.type))return t;!r&&a.type.rank>this.type.rank&&(n||(n=t.slice(0,i)),n.push(this),r=!0),n&&n.push(a)}}return n||(n=t.slice()),r||n.push(this),n}removeFromSet(t){for(let n=0;n<t.length;n++)if(this.eq(t[n]))return t.slice(0,n).concat(t.slice(n+1));return t}isInSet(t){for(let n=0;n<t.length;n++)if(this.eq(t[n]))return!0;return!1}eq(t){return this==t||this.type==t.type&&Z4(this.attrs,t.attrs)}toJSON(){let t={type:this.type.name};for(let n in this.attrs){t.attrs=this.attrs;break}return t}static fromJSON(t,n){if(!n)throw new RangeError("Invalid input for Mark.fromJSON");let r=t.marks[n.type];if(!r)throw new RangeError(`There is no mark type ${n.type} in this schema`);let i=r.create(n.attrs);return r.checkAttrs(i.attrs),i}static sameSet(t,n){if(t==n)return!0;if(t.length!=n.length)return!1;for(let r=0;r<t.length;r++)if(!t[r].eq(n[r]))return!1;return!0}static setFrom(t){if(!t||Array.isArray(t)&&t.length==0)return Y$.none;if(t instanceof Y$)return[t];let n=t.slice();return n.sort((r,i)=>r.type.rank-i.type.rank),n}};Ri.none=[];class tw extends Error{}class Ln{constructor(t,n,r){this.content=t,this.openStart=n,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,n){let r=oY(this.content,t+this.openStart,n,this.openStart+1,this.openEnd+1);return r&&new Ln(r,this.openStart,this.openEnd)}removeBetween(t,n){return new Ln(aY(this.content,t+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(t){return this.content.eq(t.content)&&this.openStart==t.openStart&&this.openEnd==t.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let t={content:this.content.toJSON()};return this.openStart>0&&(t.openStart=this.openStart),this.openEnd>0&&(t.openEnd=this.openEnd),t}static fromJSON(t,n){if(!n)return Ln.empty;let r=n.openStart||0,i=n.openEnd||0;if(typeof r!="number"||typeof i!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new Ln(dn.fromJSON(t,n.content),r,i)}static maxOpen(t,n=!0){let r=0,i=0;for(let a=t.firstChild;a&&!a.isLeaf&&(n||!a.type.spec.isolating);a=a.firstChild)r++;for(let a=t.lastChild;a&&!a.isLeaf&&(n||!a.type.spec.isolating);a=a.lastChild)i++;return new Ln(t,r,i)}}Ln.empty=new Ln(dn.empty,0,0);function aY(e,t,n){let{index:r,offset:i}=e.findIndex(t),a=e.maybeChild(r),{index:s,offset:o}=e.findIndex(n);if(i==t||a.isText){if(o!=n&&!e.child(s).isText)throw new RangeError("Removing non-flat range");return e.cut(0,t).append(e.cut(n))}if(r!=s)throw new RangeError("Removing non-flat range");return e.replaceChild(r,a.copy(aY(a.content,t-i-1,n-i-1)))}function oY(e,t,n,r,i,a){let{index:s,offset:o}=e.findIndex(t),f=e.maybeChild(s);if(o==t||f.isText)return a&&r<=0&&i<=0&&!a.canReplace(s,s,n)?null:e.cut(0,t).append(n).append(e.cut(t));let m=oY(f.content,t-o-1,n,s==0?r-1:0,s==e.childCount-1?i-1:0,f);return m&&e.replaceChild(s,f.copy(m))}function J$e(e,t,n){if(n.openStart>e.depth)throw new tw("Inserted content deeper than insertion position");if(e.depth-n.openStart!=t.depth-n.openEnd)throw new tw("Inconsistent open depths");return sY(e,t,n,0)}function sY(e,t,n,r){let i=e.index(r),a=e.node(r);if(i==t.index(r)&&r<e.depth-n.openStart){let s=sY(e,t,n,r+1);return a.copy(a.content.replaceChild(i,s))}else if(n.content.size)if(!n.openStart&&!n.openEnd&&e.depth==r&&t.depth==r){let s=e.parent,o=s.content;return Oy(s,o.cut(0,e.parentOffset).append(n.content).append(o.cut(t.parentOffset)))}else{let{start:s,end:o}=Q$e(n,e);return Oy(a,uY(e,s,o,t,r))}else return Oy(a,K4(e,t,r))}function lY(e,t){if(!t.type.compatibleContent(e.type))throw new tw("Cannot join "+t.type.name+" onto "+e.type.n
vendor: 10,852 bytes, line 834
834ame)}function Z$(e,t,n){let r=e.node(n);return lY(r,t.node(n)),r}function Ly(e,t){let n=t.length-1;n>=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function fx(e,t,n,r){let i=(t||e).node(n),a=0,s=t?t.index(n):i.childCount;e&&(a=e.index(n),e.depth>n?a++:e.textOffset&&(Ly(e.nodeAfter,r),a++));for(let o=a;o<s;o++)Ly(i.child(o),r);t&&t.depth==n&&t.textOffset&&Ly(t.nodeBefore,r)}function Oy(e,t){if(!e.type.validContent(t))throw new tw("Invalid content for node "+e.type.name);return e.copy(t)}function uY(e,t,n,r,i){let a=e.depth>i&&Z$(e,t,i+1),s=r.depth>i&&Z$(n,r,i+1),o=[];return fx(null,e,i,o),a&&s&&t.index(i)==n.index(i)?(lY(a,s),Ly(Oy(a,uY(e,t,n,r,i+1)),o)):(a&&Ly(Oy(a,K4(e,t,i+1)),o),fx(t,n,i,o),s&&Ly(Oy(s,K4(n,r,i+1)),o)),fx(r,null,i,o),new dn(o)}function K4(e,t,n){let r=[];if(fx(null,e,n,r),e.depth>n){let i=Z$(e,t,n+1);Ly(Oy(i,K4(e,t,n+1)),r)}return fx(t,null,n,r),new dn(r)}function Q$e(e,t){let n=t.depth-e.openStart,i=t.node(n).copy(e.content);for(let a=n-1;a>=0;a--)i=t.node(a).copy(dn.from(i));return{start:i.resolveNoCache(e.openStart+n),end:i.resolveNoCache(i.content.size-e.openEnd-n)}}class nw{constructor(t,n,r){this.pos=t,this.path=n,this.parentOffset=r,this.depth=n.length/3-1}resolveDepth(t){return t==null?this.depth:t<0?this.depth+t:t}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(t){return this.path[this.resolveDepth(t)*3]}index(t){return this.path[this.resolveDepth(t)*3+1]}indexAfter(t){return t=this.resolveDepth(t),this.index(t)+(t==this.depth&&!this.textOffset?0:1)}start(t){return t=this.resolveDepth(t),t==0?0:this.path[t*3-1]+1}end(t){return t=this.resolveDepth(t),this.start(t)+this.node(t).content.size}before(t){if(t=this.resolveDepth(t),!t)throw new RangeError("There is no position before the top-level node");return t==this.depth+1?this.pos:this.path[t*3-1]}after(t){if(t=this.resolveDepth(t),!t)throw new RangeError("There is no position after the top-level node");return t==this.depth+1?this.pos:this.path[t*3-1]+this.path[t*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let t=this.parent,n=this.index(this.depth);if(n==t.childCount)return null;let r=this.pos-this.path[this.path.length-1],i=t.child(n);return r?t.child(n).cut(r):i}get nodeBefore(){let t=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(t).cut(0,n):t==0?null:this.parent.child(t-1)}posAtIndex(t,n){n=this.resolveDepth(n);let r=this.path[n*3],i=n==0?0:this.path[n*3-1]+1;for(let a=0;a<t;a++)i+=r.child(a).nodeSize;return i}marks(){let t=this.parent,n=this.index();if(t.content.size==0)return Ri.none;if(this.textOffset)return t.child(n).marks;let r=t.maybeChild(n-1),i=t.maybeChild(n);if(!r){let o=r;r=i,i=o}let a=r.marks;for(var s=0;s<a.length;s++)a[s].type.spec.inclusive===!1&&(!i||!a[s].isInSet(i.marks))&&(a=a[s--].removeFromSet(a));return a}marksAcross(t){let n=this.parent.maybeChild(this.index());if(!n||!n.isInline)return null;let r=n.marks,i=t.parent.maybeChild(t.index());for(var a=0;a<r.length;a++)r[a].type.spec.inclusive===!1&&(!i||!r[a].isInSet(i.marks))&&(r=r[a--].removeFromSet(r));return r}sharedDepth(t){for(let n=this.depth;n>0;n--)if(this.start(n)<=t&&this.end(n)>=t)return n;return 0}blockRange(t=this,n){if(t.pos<this.pos)return t.blockRange(this);for(let r=this.depth-(this.parent.inlineContent||this.pos==t.pos?1:0);r>=0;r--)if(t.pos<=this.end(r)&&(!n||n(this.node(r))))return new X4(this,t,r);return null}sameParent(t){return this.pos-this.parentOffset==t.pos-t.parentOffset}max(t){return t.pos>this.pos?t:this}min(t){return t.pos<this.pos?t:this}toString(){let t="";for(let n=1;n<=this.depth;n++)t+=(t?"/":"")+this.node(n).type.name+"_"+this.index(n-1);return t+":"+this.parentOffset}static resolve(t,n){if(!(n>=0&&n<=t.content.size))throw new RangeError("Position "+n+" out of range");let r=[],i=0,a=n;for(let s=t;;){let{index:o,offset:f}=s.content.findIndex(a),m=a-f;if(r.push(s,o,i+f),!m||(s=s.child(o),s.isText))break;a=m-1,i+=f+1}return new nw(n,r,a)}static resolveCached(t,n){let r=FB.get(t);if(r)for(let a=0;a<r.elts.length;a++){let s=r.elts[a];if(s.pos==n)return s}else FB.set(t,r=new eMe);let i=r.elts[r.i]=nw.resolve(t,n);return r.i=(r.i+1)%tMe,i}}class eMe{constructor(){this.elts=[],this.i=0}}const tMe=12,FB=new WeakMap;class X4{constructor(t,n,r){this.$from=t,this.$to=n,this.depth=r}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const nMe=Object.create(null);let fg=class K${constructor(t,n,r,i=Ri.none){this.type=t,this.attrs=n,this.marks=i,this.content=r||dn.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(t){return this.content.child(t)}maybeChild(t){return this.content.maybeChild(t)}forEach(t){this.content.forEach(t)}nodesBetween(t,n,r,i=0){this.content.nodesBetween(t,n,r,i,this)}descendants(t){this.nodesBetween(0,this.content.size,t)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(t,n,r,i){return this.content.textBetween(t,n,r,i)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(t){return this==t||this.sameMarkup(t)&&this.content.eq(t.content)}sameMarkup(t){return this.hasMarkup(t.type,t.attrs,t.marks)}hasMarkup(t,n,r){return this.type==t&&Z4(this.attrs,n||t.defaultAttrs||nMe)&&Ri.sameSet(this.marks,r||Ri.none)}copy(t=null){return t==this.content?this:new K$(this.type,this.attrs,t,this.marks)}mark(t){return t==this.marks?this:new K$(this.type,this.attrs,this.content,t)}cut(t,n=this.content.size){return t==0&&n==this.content.size?this:this.copy(this.content.cut(t,n))}slice(t,n=this.content.size,r=!1){if(t==n)return Ln.empty;let i=this.resolve(t),a=this.resolve(n),s=r?0:i.sharedDepth(n),o=i.start(s),m=i.node(s).content.cut(i.pos-o,a.pos-o);return new Ln(m,i.depth-s,a.depth-s)}replace(t,n,r){return J$e(this.resolve(t),this.resolve(n),r)}nodeAt(t){for(let n=this;;){let{index:r,offset:i}=n.content.findIndex(t);if(n=n.maybeChild(r),!n)return null;if(i==t||n.isText)return n;t-=i+1}}childAfter(t){let{index:n,offset:r}=this.content.findIndex(t);return{node:this.content.maybeChild(n),index:n,offset:r}}childBefore(t){if(t==0)return{node:null,index:0,offset:0};let{index:n,offset:r}=this.content.findIndex(t);if(r<t)return{node:this.content.child(n),index:n,offset:r};let i=this.content.child(n-1);return{node:i,index:n-1,offset:r-i.nodeSize}}resolve(t){return nw.resolveCached(this,t)}resolveNoCache(t){return nw.resolve(this,t)}rangeHasMark(t,n,r){let i=!1;return n>t&&this.nodesBetween(t,n,a=>(r.isInSet(a.marks)&&(i=!0),!i)),i}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let t=this.type.name;return this.content.size&&(t+="("+this.content.toStringInner()+")"),cY(this.marks,t)}contentMatchAt(t){let n=this.type.contentMatch.matchFragment(this.content,0,t);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(t,n,r=dn.empty,i=0,a=r.childCount){let s=this.contentMatchAt(t).matchFragment(r,i,a),o=s&&s.matchFragment(this.content,n);if(!o||!o.validEnd)return!1;for(let f=i;f<a;f++)if(!this.type.allowsMarks(r.child(f).marks))return!1;return!0}canReplaceWith(t,n,r,i){if(i&&!this.type.allowsMarks(i))return!1;let a=this.contentMatchAt(t).matchType(r),s=a&&a.matchFragment(this.content,n);return s?s.validEnd:!1}canAppend(t){return t.content.size?this.canReplace(this.childCount,this.childCount,t.content):this.type.compatibleContent(t.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let t=Ri.none;for(let n=0;n<this.marks.length;n++){let r=this.marks[n];r.type.checkAttrs(r.attrs),t=r.addToSet(t)}if(!Ri.sameSet(t,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(n=>n.type.name)}`);this.content.forEach(n=>n.check())}toJSON(){let t={type:this.type.name};for(let n in this.attrs){t.attrs=this.attrs;break}return this.content.size&&(t.content=this.content.toJSON()),this.marks.length&&(t.marks=this.marks.map(n=>n.toJSON())),t}static fromJSON(t,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let r;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=n.marks.map(t.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return t.text(n.text,r)}let i=dn.fromJSON(t,n.content),a=t.nodeType(n.type).create(n.attrs,i,r);return a.type.checkAttrs(a.attrs),a}};fg.prototype.text=void 0;class J4 extends fg{constructor(t,n,r,i){if(super(t,n,null,i),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):cY(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(t,n){return this.text.slice(t,n)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new J4(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new J4(this.type,this.attrs,t,this.marks)}cut(t=0,n=this.text.length){return t==0&&n==this.text.length?this:this.withText(this.text.slice(t,n))}eq(t){return this.sameMarkup(t)&&this.text==t.text}toJSON(){let t=super.toJSON();return t.text=this.text,t}}function cY(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+"("+t+")";return t}class t1{constructor(t){this.validEnd=t,this.next=[],this.wrapCache=[]}static parse(t,n){let r=new rMe(t,n);if(r.next==null)return t1.empty;let i=dY(r);r.next&&r.err("Unexpected trailing text");let a=cMe(uMe(i));return dMe(a,r),a}matchType(t){for(let n=0;n<this.next.length;n++)if(this.next[n].type==t)return this.next[n].next;return null}matchFragment(t,n=0,r=t.childCount){let i=this;for(let a=n;i&&a<r;a++)i=i.matchType(t.child(a).type);return i}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let t=0;t<this.next.length;t++){let{type:n}=this.next[t];if(!(n.isText||n.hasRequiredAttrs()))return n}return null}compatible(t){for(let n=0;n<this.next.length;n++)for(let r=0;r<t.next.length;r++)if(this.next[n].type==t.next[r].type)return!0;return!1}fillBefore(t,n=!1,r=0){let i=[this];function a(s,o){let f=s.matchFragment(t,r);
vendor: 13,313 bytes, lines 834-835
834if(f&&(!n||f.validEnd))return dn.from(o.map(m=>m.createAndFill()));for(let m=0;m<s.next.length;m++){let{type:y,next:b}=s.next[m];if(!(y.isText||y.hasRequiredAttrs())&&i.indexOf(b)==-1){i.push(b);let T=a(b,o.concat(y));if(T)return T}}return null}return a(this,[])}findWrapping(t){for(let r=0;r<this.wrapCache.length;r+=2)if(this.wrapCache[r]==t)return this.wrapCache[r+1];let n=this.computeWrapping(t);return this.wrapCache.push(t,n),n}computeWrapping(t){let n=Object.create(null),r=[{match:this,type:null,via:null}];for(;r.length;){let i=r.shift(),a=i.match;if(a.matchType(t)){let s=[];for(let o=i;o.type;o=o.via)s.push(o.type);return s.reverse()}for(let s=0;s<a.next.length;s++){let{type:o,next:f}=a.next[s];!o.isLeaf&&!o.hasRequiredAttrs()&&!(o.name in n)&&(!i.type||f.validEnd)&&(r.push({match:o.contentMatch,type:o,via:i}),n[o.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(t){if(t>=this.next.length)throw new RangeError(`There's no ${t}th edge in this content match`);return this.next[t]}toString(){let t=[];function n(r){t.push(r);for(let i=0;i<r.next.length;i++)t.indexOf(r.next[i].next)==-1&&n(r.next[i].next)}return n(this),t.map((r,i)=>{let a=i+(r.validEnd?"*":" ")+" ";for(let s=0;s<r.next.length;s++)a+=(s?", ":"")+r.next[s].type.name+"->"+t.indexOf(r.next[s].next);return a}).join(`
835`)}}t1.empty=new t1(!0);class rMe{constructor(t,n){this.string=t,this.nodeTypes=n,this.inline=null,this.pos=0,this.tokens=t.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(t){return this.next==t&&(this.pos++||!0)}err(t){throw new SyntaxError(t+" (in content expression '"+this.string+"')")}}function dY(e){let t=[];do t.push(iMe(e));while(e.eat("|"));return t.length==1?t[0]:{type:"choice",exprs:t}}function iMe(e){let t=[];do t.push(aMe(e));while(e.next&&e.next!=")"&&e.next!="|");return t.length==1?t[0]:{type:"seq",exprs:t}}function aMe(e){let t=lMe(e);for(;;)if(e.eat("+"))t={type:"plus",expr:t};else if(e.eat("*"))t={type:"star",expr:t};else if(e.eat("?"))t={type:"opt",expr:t};else if(e.eat("{"))t=oMe(e,t);else break;return t}function zB(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");let t=Number(e.next);return e.pos++,t}function oMe(e,t){let n=zB(e),r=n;return e.eat(",")&&(e.next!="}"?r=zB(e):r=-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:t}}function sMe(e,t){let n=e.nodeTypes,r=n[t];if(r)return[r];let i=[];for(let a in n){let s=n[a];s.isInGroup(t)&&i.push(s)}return i.length==0&&e.err("No node type or group '"+t+"' found"),i}function lMe(e){if(e.eat("(")){let t=dY(e);return e.eat(")")||e.err("Missing closing paren"),t}else if(/\W/.test(e.next))e.err("Unexpected token '"+e.next+"'");else{let t=sMe(e,e.next).map(n=>(e.inline==null?e.inline=n.isInline:e.inline!=n.isInline&&e.err("Mixing inline and block content"),{type:"name",value:n}));return e.pos++,t.length==1?t[0]:{type:"choice",exprs:t}}}function uMe(e){let t=[[]];return i(a(e,0),n()),t;function n(){return t.push([])-1}function r(s,o,f){let m={term:f,to:o};return t[s].push(m),m}function i(s,o){s.forEach(f=>f.to=o)}function a(s,o){if(s.type=="choice")return s.exprs.reduce((f,m)=>f.concat(a(m,o)),[]);if(s.type=="seq")for(let f=0;;f++){let m=a(s.exprs[f],o);if(f==s.exprs.length-1)return m;i(m,o=n())}else if(s.type=="star"){let f=n();return r(o,f),i(a(s.expr,f),f),[r(f)]}else if(s.type=="plus"){let f=n();return i(a(s.expr,o),f),i(a(s.expr,f),f),[r(f)]}else{if(s.type=="opt")return[r(o)].concat(a(s.expr,o));if(s.type=="range"){let f=o;for(let m=0;m<s.min;m++){let y=n();i(a(s.expr,f),y),f=y}if(s.max==-1)i(a(s.expr,f),f);else for(let m=s.min;m<s.max;m++){let y=n();r(f,y),i(a(s.expr,f),y),f=y}return[r(f)]}else{if(s.type=="name")return[r(o,void 0,s.value)];throw new Error("Unknown expr type")}}}}function fY(e,t){return t-e}function NB(e,t){let n=[];return r(t),n.sort(fY);function r(i){let a=e[i];if(a.length==1&&!a[0].term)return r(a[0].to);n.push(i);for(let s=0;s<a.length;s++){let{term:o,to:f}=a[s];!o&&n.indexOf(f)==-1&&r(f)}}}function cMe(e){let t=Object.create(null);return n(NB(e,0));function n(r){let i=[];r.forEach(s=>{e[s].forEach(({term:o,to:f})=>{if(!o)return;let m;for(let y=0;y<i.length;y++)i[y][0]==o&&(m=i[y][1]);NB(e,f).forEach(y=>{m||i.push([o,m=[]]),m.indexOf(y)==-1&&m.push(y)})})});let a=t[r.join(",")]=new t1(r.indexOf(e.length-1)>-1);for(let s=0;s<i.length;s++){let o=i[s][1].sort(fY);a.next.push({type:i[s][0],next:t[o.join(",")]||n(o)})}return a}}function dMe(e,t){for(let n=0,r=[e];n<r.length;n++){let i=r[n],a=!i.validEnd,s=[];for(let o=0;o<i.next.length;o++){let{type:f,next:m}=i.next[o];s.push(f.name),a&&!(f.isText||f.hasRequiredAttrs())&&(a=!1),r.indexOf(m)==-1&&r.push(m)}a&&t.err("Only non-generatable nodes ("+s.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function hY(e){let t=Object.create(null);for(let n in e){let r=e[n];if(!r.hasDefault)return null;t[n]=r.default}return t}function pY(e,t){let n=Object.create(null);for(let r in e){let i=t&&t[r];if(i===void 0){let a=e[r];if(a.hasDefault)i=a.default;else throw new RangeError("No value supplied for attribute "+r)}n[r]=i}return n}function mY(e,t,n,r){for(let i in t)if(!(i in e))throw new RangeError(`Unsupported attribute ${i} for ${n} of type ${r}`);for(let i in e)e[i].validate&&e[i].validate(t[i])}function gY(e,t){let n=Object.create(null);if(t)for(let r in t)n[r]=new hMe(e,r,t[r]);return n}let VB=class yY{constructor(t,n,r){this.name=t,this.schema=n,this.spec=r,this.markSet=null,this.groups=r.group?r.group.split(" "):[],this.attrs=gY(t,r.attrs),this.defaultAttrs=hY(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(r.inline||t=="text"),this.isText=t=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==t1.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(t){return this.groups.indexOf(t)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let t in this.attrs)if(this.attrs[t].isRequired)return!0;return!1}compatibleContent(t){return this==t||this.contentMatch.compatible(t.contentMatch)}computeAttrs(t){return!t&&this.defaultAttrs?this.defaultAttrs:pY(this.attrs,t)}create(t=null,n,r){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new fg(this,this.computeAttrs(t),dn.from(n),Ri.setFrom(r))}createChecked(t=null,n,r){return n=dn.from(n),this.checkContent(n),new fg(this,this.computeAttrs(t),n,Ri.setFrom(r))}createAndFill(t=null,n,r){if(t=this.computeAttrs(t),n=dn.from(n),n.size){let s=this.contentMatch.fillBefore(n);if(!s)return null;n=s.append(n)}let i=this.contentMatch.matchFragment(n),a=i&&i.fillBefore(dn.empty,!0);return a?new fg(this,t,n.append(a),Ri.setFrom(r)):null}validContent(t){let n=this.contentMatch.matchFragment(t);if(!n||!n.validEnd)return!1;for(let r=0;r<t.childCount;r++)if(!this.allowsMarks(t.child(r).marks))return!1;return!0}checkContent(t){if(!this.validContent(t))throw new RangeError(`Invalid content for node ${this.name}: ${t.toString().slice(0,50)}`)}checkAttrs(t){mY(this.attrs,t,"node",this.name)}allowsMarkType(t){return this.markSet==null||this.markSet.indexOf(t)>-1}allowsMarks(t){if(this.markSet==null)return!0;for(let n=0;n<t.length;n++)if(!this.allowsMarkType(t[n].type))return!1;return!0}allowedMarks(t){if(this.markSet==null)return t;let n;for(let r=0;r<t.length;r++)this.allowsMarkType(t[r].type)?n&&n.push(t[r]):n||(n=t.slice(0,r));return n?n.length?n:Ri.none:t}static compile(t,n){let r=Object.create(null);t.forEach((a,s)=>r[a]=new yY(a,n,s));let i=n.spec.topNode||"doc";if(!r[i])throw new RangeError("Schema is missing its top node type ('"+i+"')");if(!r.text)throw new RangeError("Every schema needs a 'text' type");for(let a in r.text.attrs)throw new RangeError("The text node type should not have attributes");return r}};function fMe(e,t,n){let r=n.split("|");return i=>{let a=i===null?"null":typeof i;if(r.indexOf(a)<0)throw new RangeError(`Expected value of type ${r} for attribute ${t} on type ${e}, got ${a}`)}}class hMe{constructor(t,n,r){this.hasDefault=Object.prototype.hasOwnProperty.call(r,"default"),this.default=r.default,this.validate=typeof r.validate=="string"?fMe(t,n,r.validate):r.validate}get isRequired(){return!this.hasDefault}}class rk{constructor(t,n,r,i){this.name=t,this.rank=n,this.schema=r,this.spec=i,this.attrs=gY(t,i.attrs),this.excluded=null;let a=hY(this.attrs);this.instance=a?new Ri(this,a):null}create(t=null){return!t&&this.instance?this.instance:new Ri(this,pY(this.attrs,t))}static compile(t,n){let r=Object.create(null),i=0;return t.forEach((a,s)=>r[a]=new rk(a,i++,n,s)),r}removeFromSet(t){for(var n=0;n<t.length;n++)t[n].type==this&&(t=t.slice(0,n).concat(t.slice(n+1)),n--);return t}isInSet(t){for(let n=0;n<t.length;n++)if(t[n].type==this)return t[n]}checkAttrs(t){mY(this.attrs,t,"mark",this.name)}excludes(t){return this.excluded.indexOf(t)>-1}}class vY{constructor(t){this.linebreakReplacement=null,this.cached=Object.create(null);let n=this.spec={};for(let i in t)n[i]=t[i];n.nodes=ms.from(t.nodes),n.marks=ms.from(t.marks||{}),this.nodes=VB.compile(this.spec.nodes,this),this.marks=rk.compile(this.spec.marks,this);let r=Object.create(null);for(let i in this.nodes){if(i in this.marks)throw new RangeError(i+" can not be both a node and a mark");let a=this.nodes[i],s=a.spec.content||"",o=a.spec.marks;if(a.contentMatch=r[s]||(r[s]=t1.parse(s,this.nodes)),a.inlineContent=a.contentMatch.inlineContent,a.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!a.isInline||!a.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=a}a.markSet=o=="_"?null:o?qB(this,o.split(" ")):o==""||!a.inlineContent?[]:null}for(let i in this.marks){let a=this.marks[i],s=a.spec.excludes;a.excluded=s==null?[a]:s==""?[]:qB(this,s.split(" "))}this.nodeFromJSON=i=>fg.fromJSON(this,i),this.markFromJSON=i=>Ri.fromJSON(this,i),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(t,n=null,r,i){if(typeof t=="string")t=this.nodeType(t);else if(t instanceof VB){if(t.schema!=this)throw new RangeError("Node type from different schema used ("+t.name+")")}else throw new RangeError("Invalid node type: "+t);return t.createChecked(n,r,i)}text(t,n){let r=this.nodes.text;return new J4(r,r.defaultAttrs,t,Ri.setFrom(n))}mark(t,n){return typeof t=="string"&&(t=this.marks[t]),t.create(n)}nodeType(t){let n=this.nodes[t];if(!n)throw new RangeError("Unknown node type: "+t);return n}}function qB(e,t){let n=[];for(let r=0;r<t.length;r++){let i=t[r],a=e.marks[i],s=a;if(a)n.push(a);else for(let o in e.marks){let f=e.marks[o];(i=="_"||f.spec.group&&f.spec.group.split(" ").indexOf(i)>-1)&&n.push(s=f)}if(!s)throw new SyntaxError("Unknown mark type: '"+t[r]+"'")}return n}function pMe(e){return e.tag!=null}function mMe(e){return e.style!=null}let hx=class X${constructor(t,n){this.schema=t,this.rules=n,this.tags=[],this.styles=[];let r=this.matchedStyles=[];n.forEach(i=>{if(pMe(i))this.tags.push(i);else if(mMe(i)){let a=/[^=]*/.exec(i.style)[0];r.indexOf(a)<0&&r.push(a),this.styles.push(i)}}),this.normalizeLists=!this.tags.some(i=>{if(!/^(ul|ol)\b/.test(i.tag)||!i.node)return!1;let a=t.nodes[i.node];return a.contentMatch.matchType(a)})}parse(t,n={}){let r=new UB(this,n,!1);return r.addAll(t,Ri.none,n.from,n.to),r.finish()}parseSlice(t,n={}){let r=new UB(this,n,!0);return r.addAll(t,Ri.none,n.from,n.to),Ln.maxOpen(r.finish())}matchTag(t,n,r){for(let i=r?this.tags.indexOf(r)+1:0;i<this.tags.length;i++){let a=this.tags[i];if(vMe(t,a.tag)&&(a.namespace===void 0||t.namespaceURI==a.namespace)&&(!a.context||n.matchesContext(a.context))){if(a.getAttrs){let s=a.getAttrs(t);if(s===!1)continue;a.attrs=s||void 0}return a}}}matchStyle(t,n,r,i){for(let a=i?this.styles.indexOf(i)+1:0;a<this.styles.length;a++){let s=this.styles[a],o=s.style;if(!(o.indexOf(t)!=0||s.context&&!r.matchesContext(s.context)||o.length>t.length&&(o.charCodeAt(t.length)!=61||o.slice(t.length+1)!=n))){if(s.getAttrs){let f=s.getAttrs(n);if(f===!1)continue;s.attrs=f||void 0}return s}}}static schemaRules(t){let n=[];function r(i){let a=i.priority==null?50:i.priority,s=0;for(;s<n.length;s++){let o=n[s];if((o.priority==null?50:o.priority)<a)break}n.splice(s,0,i)}for(let i in t.marks){let a=t.marks[i].spec.parseDOM;a&&a.forEach(s=>{r(s=HB(s)),s.mark||s.ignore||s.clearMark||(s.mark=i)})}for(let i in t.nodes){let a=t.nodes[i].spec.parseDOM;a&&a.forEach(s=>{r(s=HB(s)),s.node||s.ignore||s.mark||(s.node=i)})}return n}static fromSchema(t){return t.cached.domParser||(t.cached.domParser=new X$(t,X$.schemaRules(t)))}};const _Y={address:!0,article:!0,aside:!0,blockquote:!0,body:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},gMe={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},bY={ol:!0,ul:!0},rw=1,J$=2,px=4;function jB(e,t,n){return t!=null?(t?rw:0)|(t==="full"?J$:0):e&&e.
vendor: 4,267 bytes, lines 835-837
835whitespace=="pre"?rw|J$:n&~px}class hS{constructor(t,n,r,i,a,s){this.type=t,this.attrs=n,this.marks=r,this.solid=i,this.options=s,this.content=[],this.activeMarks=Ri.none,this.match=a||(s&px?null:t.contentMatch)}findWrapping(t){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(dn.from(t));if(n)this.match=this.type.contentMatch.matchFragment(n);else{let r=this.type.contentMatch,i;return(i=r.findWrapping(t.type))?(this.match=r,i):null}}return this.match.findWrapping(t.type)}finish(t){if(!(this.options&rw)){let r=this.content[this.content.length-1],i;if(r&&r.isText&&(i=/[ \t\r\n\u000c]+$/.exec(r.text))){let a=r;r.text.length==i[0].length?this.content.pop():this.content[this.content.length-1]=a.withText(a.text.slice(0,a.text.length-i[0].length))}}let n=dn.from(this.content);return!t&&this.match&&(n=n.append(this.match.fillBefore(dn.empty,!0))),this.type?this.type.create(this.attrs,n,this.marks):n}inlineContext(t){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:t.parentNode&&!_Y.hasOwnProperty(t.parentNode.nodeName.toLowerCase())}}class UB{constructor(t,n,r){this.parser=t,this.options=n,this.isOpen=r,this.open=0,this.localPreserveWS=!1;let i=n.topNode,a,s=jB(null,n.preserveWhitespace,0)|(r?px:0);i?a=new hS(i.type,i.attrs,Ri.none,!0,n.topMatch||i.type.contentMatch,s):r?a=new hS(null,null,Ri.none,!0,null,s):a=new hS(t.schema.topNodeType,null,Ri.none,!0,null,s),this.nodes=[a],this.find=n.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(t,n){t.nodeType==3?this.addTextNode(t,n):t.nodeType==1&&this.addElement(t,n)}addTextNode(t,n){let r=t.nodeValue,i=this.top,a=i.options&J$?"full":this.localPreserveWS||(i.options&rw)>0,{schema:s}=this.parser;if(a==="full"||i.inlineContext(t)||/[^ \t\r\n\u000c]/.test(r)){if(a)if(a==="full")r=r.replace(/\r\n?/g,`
836`);else if(s.linebreakReplacement&&/[\r\n]/.test(r)&&this.top.findWrapping(s.linebreakReplacement.create())){let o=r.split(/\r?\n|\r/);for(let f=0;f<o.length;f++)f&&this.insertNode(s.linebreakReplacement.create(),n,!0),o[f]&&this.insertNode(s.text(o[f]),n,!/\S/.test(o[f]));r=""}else r=r.replace(/\r?\n|\r/g," ");else if(r=r.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(r)&&this.open==this.nodes.length-1){let o=i.content[i.content.length-1],f=t.previousSibling;(!o||f&&f.nodeName=="BR"||o.isText&&/[ \t\r\n\u000c]$/.test(o.text))&&(r=r.slice(1))}r&&this.insertNode(s.text(r),n,!/\S/.test(r)),this.findInText(t)}else this.findInside(t)}addElement(t,n,r){let i=this.localPreserveWS,a=this.top;(t.tagName=="PRE"||/pre/.test(t.style&&t.style.whiteSpace))&&(this.localPreserveWS=!0);let s=t.nodeName.toLowerCase(),o;bY.hasOwnProperty(s)&&this.parser.normalizeLists&&yMe(t);let f=this.options.ruleFromNode&&this.options.ruleFromNode(t)||(o=this.parser.matchTag(t,this,r));e:if(f?f.ignore:gMe.hasOwnProperty(s))this.findInside(t),this.ignoreFallback(t,n);else if(!f||f.skip||f.closeParent){f&&f.closeParent?this.open=Math.max(0,this.open-1):f&&f.skip.nodeType&&(t=f.skip);let m,y=this.needsBlock;if(_Y.hasOwnProperty(s))a.content.length&&a.content[0].isInline&&this.open&&(this.open--,a=this.top),m=!0,a.type||(this.needsBlock=!0);else if(!t.firstChild){this.leafFallback(t,n);break e}let b=f&&f.skip?n:this.readStyles(t,n);b&&this.addAll(t,b),m&&this.sync(a),this.needsBlock=y}else{let m=this.readStyles(t,n);m&&this.addElementByRule(t,f,m,f.consuming===!1?o:void 0)}this.localPreserveWS=i}leafFallback(t,n){t.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(t.ownerDocument.createTextNode(`
837`),n)}ignoreFallback(t,n){t.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"),n,!0)}readStyles(t,n){let r=t.style;if(r&&r.length)for(let i=0;i<this.parser.matchedStyles.length;i++){let a=this.parser.matchedStyles[i],s=r.getPropertyValue(a);if(s)for(let o=void 0;;){let f=this.parser.matchStyle(a,s,this,o);if(!f)break;if(f.ignore)return null;if(f.clearMark?n=n.filter(m=>!f.clearMark(m)):n=n.concat(this.parser.schema.marks[f.mark].create(f.attrs)),f.consuming===!1)o=f;else break}}return n}addElementByRule(t,n,r,i){let a,s;if(n.node)if(s=this.parser.schema.nodes[n.node],s.isLeaf)this.insertNode(s.create(n.attrs),r,t.n
vendor: 4,930 bytes, line 837
837odeName=="BR")||this.leafFallback(t,r);else{let f=this.enter(s,n.attrs||null,r,n.preserveWhitespace);f&&(a=!0,r=f)}else{let f=this.parser.schema.marks[n.mark];r=r.concat(f.create(n.attrs))}let o=this.top;if(s&&s.isLeaf)this.findInside(t);else if(i)this.addElement(t,r,i);else if(n.getContent)this.findInside(t),n.getContent(t,this.parser.schema).forEach(f=>this.insertNode(f,r,!1));else{let f=t;typeof n.contentElement=="string"?f=t.querySelector(n.contentElement):typeof n.contentElement=="function"?f=n.contentElement(t):n.contentElement&&(f=n.contentElement),this.findAround(t,f,!0),this.addAll(f,r),this.findAround(t,f,!1)}a&&this.sync(o)&&this.open--}addAll(t,n,r,i){let a=r||0;for(let s=r?t.childNodes[r]:t.firstChild,o=i==null?null:t.childNodes[i];s!=o;s=s.nextSibling,++a)this.findAtPoint(t,a),this.addDOM(s,n);this.findAtPoint(t,a)}findPlace(t,n,r){let i,a;for(let s=this.open,o=0;s>=0;s--){let f=this.nodes[s],m=f.findWrapping(t);if(m&&(!i||i.length>m.length+o)&&(i=m,a=f,!m.length))break;if(f.solid){if(r)break;o+=2}}if(!i)return null;this.sync(a);for(let s=0;s<i.length;s++)n=this.enterInner(i[s],null,n,!1);return n}insertNode(t,n,r){if(t.isInline&&this.needsBlock&&!this.top.type){let a=this.textblockFromContext();a&&(n=this.enterInner(a,null,n))}let i=this.findPlace(t,n,r);if(i){this.closeExtra();let a=this.top;a.match&&(a.match=a.match.matchType(t.type));let s=Ri.none;for(let o of i.concat(t.marks))(a.type?a.type.allowsMarkType(o.type):WB(o.type,t.type))&&(s=o.addToSet(s));return a.content.push(t.mark(s)),!0}return!1}enter(t,n,r,i){let a=this.findPlace(t.create(n),r,!1);return a&&(a=this.enterInner(t,n,r,!0,i)),a}enterInner(t,n,r,i=!1,a){this.closeExtra();let s=this.top;s.match=s.match&&s.match.matchType(t);let o=jB(t,a,s.options);s.options&px&&s.content.length==0&&(o|=px);let f=Ri.none;return r=r.filter(m=>(s.type?s.type.allowsMarkType(m.type):WB(m.type,t))?(f=m.addToSet(f),!1):!0),this.nodes.push(new hS(t,n,f,i,null,o)),this.open++,r}closeExtra(t=!1){let n=this.nodes.length-1;if(n>this.open){for(;n>this.open;n--)this.nodes[n-1].content.push(this.nodes[n].finish(t));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(t){for(let n=this.open;n>=0;n--){if(this.nodes[n]==t)return this.open=n,!0;this.localPreserveWS&&(this.nodes[n].options|=rw)}return!1}get currentPos(){this.closeExtra();let t=0;for(let n=this.open;n>=0;n--){let r=this.nodes[n].content;for(let i=r.length-1;i>=0;i--)t+=r[i].nodeSize;n&&t++}return t}findAtPoint(t,n){if(this.find)for(let r=0;r<this.find.length;r++)this.find[r].node==t&&this.find[r].offset==n&&(this.find[r].pos=this.currentPos)}findInside(t){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].pos==null&&t.nodeType==1&&t.contains(this.find[n].node)&&(this.find[n].pos=this.currentPos)}findAround(t,n,r){if(t!=n&&this.find)for(let i=0;i<this.find.length;i++)this.find[i].pos==null&&t.nodeType==1&&t.contains(this.find[i].node)&&n.compareDocumentPosition(this.find[i].node)&(r?2:4)&&(this.find[i].pos=this.currentPos)}findInText(t){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==t&&(this.find[n].pos=this.currentPos-(t.nodeValue.length-this.find[n].offset))}matchesContext(t){if(t.indexOf("|")>-1)return t.split(/\s*\|\s*/).some(this.matchesContext,this);let n=t.split("/"),r=this.options.context,i=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),a=-(r?r.depth+1:0)+(i?0:1),s=(o,f)=>{for(;o>=0;o--){let m=n[o];if(m==""){if(o==n.length-1||o==0)continue;for(;f>=a;f--)if(s(o-1,f))return!0;return!1}else{let y=f>0||f==0&&i?this.nodes[f].type:r&&f>=a?r.node(f-a).type:null;if(!y||y.name!=m&&!y.isInGroup(m))return!1;f--}}return!0};return s(n.length-1,this.open)}textblockFromContext(){let t=this.options.context;if(t)for(let n=t.depth;n>=0;n--){let r=t.node(n).contentMatchAt(t.indexAfter(n)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let n in this.parser.schema.nodes){let r=this.parser.schema.nodes[n];if(r.isTextblock&&r.defaultAttrs)return r}}}function yMe(e){for(let t=e.firstChild,n=null;t;t=t.nextSibling){let r=t.nodeType==1?t.nodeName.toLowerCase():null;r&&bY.hasOwnProperty(r)&&n?(n.appendChild(t),t=n):r=="li"?n=t:r&&(n=null)}}function vMe(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function HB(e){let t={};for(let n in e)t[n]=e[n];return t}function WB(e,t){let n=t.schema.nodes;for(let r in n){let i=n[r];if(!i.allowsMarkType(e))continue;let a=[],s=o=>{a.push(o);for(let f=0;f<o.edgeCount;f++){let{type:m,next:y}=o.edge(f);if(m==t||a.indexOf(y)<0&&s(y))return!0}};if(s(i.contentMatch))return!0}}class m1{constructor(t,n){this.nodes=t,this.marks=n}serializeFragment(t,n={},r){r||(r=pS(n).createDocumentFragment());let i=r,a=[];return t.forEach(s=>{if(a.length||s.marks.length){let o=0,f=0;for(;o<a.length&&f<s.marks.length;){let m=s.marks[f];
837if(!this.marks[m.type.name]){f++;continue}if(!m.eq(a[o][0])||m.type.spec.spanning===!1)break;o++,f++}for(;o<a.length;)i=a.pop()[1];for(;f<s.marks.length;){let m=s.marks[f++],y=this.serializeMark(m,s.isInline,n);y&&(a.push([m,i]),i.appendChild(y.dom),i=y.contentDOM||y.dom)}}i.appendChild(this.serializeNodeInner(s,n))}),r}serializeNodeInner(t,n){if(t.isText)return pS(n).createTextNode(t.text);let{dom:r,contentDOM:i}=WS(pS(n),this.nodes[t.type.name](t),null,t.attrs);if(i){if(t.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(t.content,n,i)}return r}serializeNode(t,n={}){let r=this.serializeNodeInner(t,n);for(let i=t.marks.length-1;i>=0;i--){let a=this.serializeMark(t.marks[i],t.isInline,n);a&&((a.contentDOM||a.dom).appendChild(r),r=a.dom)}return r}serializeMark(t,n,r={}){let i=this.marks[t.type.name];return i&&WS(pS(r),i(t,n),null,t.attrs)}static renderSpec(t,n,r=null,i){return typeof n=="string"?{dom:t.createTextNode(n)}:WS(t,n,r,i)}static fromSchema(t){return t.cached.domSerializer||(t.cached.domSerializer=new m1(this.nodesFromSchema(t),this.marksFromSchema(t)))}static nodesFromSchema(t){let n=GB(t.nodes);return n.text||(n.text=r=>r.text),n}static marksFromSchema(t){return GB(t.marks)}}function GB(e){let t={};for(let n in e){let r=e[n].spec.toDOM;r&&(t[n]=r)}return t}function pS(e){return e.document||window.document}const YB=new WeakMap;function _Me(e){let t=YB.get(e);return t===void 0&&YB.set(e,t=bMe(e)),t}function bMe(e){let t=null;function n(r){if(r&&typeof r=="object")if(Array.isArray(r))if(typeof r[0]=="string")t||(t=[]),t.push(r);else for(let i=0;i<r.length;i++)n(r[i]);else for(let i in r)n(r[i])}return n(e),t}function WS(e,t,n,r){if(t.nodeType==1)return{dom:t};if(t.dom&&t.dom.nodeType==1)return t;let i=t[0],a;if(typeof i!="string")throw new RangeError("Invalid array passed to renderSpec");if(r&&(a=_Me(r))&&a.indexOf(t)>-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let s=i.indexOf(" ");s>0&&(n=i.slice(0,s),i=i.slice(s+1));let o,f=n?e.createElementNS(n,i):e.createElement(i),m=t[1],y=1;if(m&&typeof m=="object"&&m.nodeType==null&&!Array.isArray(m)){y=2;for(let b in m)if(m[b]!=null){let T=b.indexOf(" ");T>0?f.setAttributeNS(b.slice(0,T),b.slice(T+1),m[b]):b=="style"&&f.style?f.style.cssText=m[b]:f.setAttribute(b,m[b])}}for(let b=y;b<t.length;b++){let T=t[b];if(T===0){if(b<t.length-1||b>y)throw new RangeError("Content hole must be the only child of its parent node");return{dom:f,contentDOM:f}}else if(typeof T=="string")f.appendChild(e.createTextNode(T));else{let{dom:x,contentDOM:$}=WS(e,T,n,r);if(f.appendChild(x),$){if(o)throw new RangeError("Multiple content holes");o=$}}}return{dom:f,contentDOM:o}}const xY=65535,wY=Math.pow(2,16);function xMe(e,t){return e+t*wY}function ZB(e){return e&xY}function wMe(e){return(e-(e&xY))/wY}const SY=1,CY=2,GS=4,TY=8;class Q${constructor(t,n,r){this.pos=t,this.delInfo=n,this.recover=r}get deleted(){return(this.delInfo&TY)>0}get deletedBefore(){return(this.delInfo&(SY|GS))>0}get deletedAfter(){return(this.delInfo&(CY|GS))>0}get deletedAcross(){return(this.delInfo&GS)>0}}class lu{constructor(t,n=!1){if(this.ranges=t,this.inverted=n,!t.length&&lu.empty)return lu.empty}recover(t){let n=0,r=ZB(t);if(!this.inverted)for(let i=0;i<r;
vendor: 3,660 bytes, line 837
837i++)n+=this.ranges[i*3+2]-this.ranges[i*3+1];return this.ranges[r*3]+n+wMe(t)}mapResult(t,n=1){return this._map(t,n,!1)}map(t,n=1){return this._map(t,n,!0)}_map(t,n,r){let i=0,a=this.inverted?2:1,s=this.inverted?1:2;for(let o=0;o<this.ranges.length;o+=3){let f=this.ranges[o]-(this.inverted?i:0);if(f>t)break;let m=this.ranges[o+a],y=this.ranges[o+s],b=f+m;if(t<=b){let T=m?t==f?-1:t==b?1:n:n,x=f+i+(T<0?0:y);if(r)return x;let $=t==(n<0?f:b)?null:xMe(o/3,t-f),A=t==f?CY:t==b?SY:GS;return(n<0?t!=f:t!=b)&&(A|=TY),new Q$(x,A,$)}i+=y-m}return r?t+i:new Q$(t+i,0,null)}touches(t,n){let r=0,i=ZB(n),a=this.inverted?2:1,s=this.inverted?1:2;for(let o=0;o<this.ranges.length;o+=3){let f=this.ranges[o]-(this.inverted?r:0);if(f>t)break;let m=this.ranges[o+a],y=f+m;if(t<=y&&o==i*3)return!0;r+=this.ranges[o+s]-m}return!1}forEach(t){let n=this.inverted?2:1,r=this.inverted?1:2;for(let i=0,a=0;i<this.ranges.length;i+=3){let s=this.ranges[i],o=s-(this.inverted?a:0),f=s+(this.inverted?0:a),m=this.ranges[i+n],y=this.ranges[i+r];t(o,o+m,f,f+y),a+=y-m}}invert(){return new lu(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(t){return t==0?lu.empty:new lu(t<0?[0,-t,0]:[0,0,t])}}lu.empty=new lu([]);class Q4{constructor(t,n,r=0,i=t?t.length:0){this.mirror=n,this.from=r,this.to=i,this._maps=t||[],this.ownData=!(t||n)}get maps(){return this._maps}slice(t=0,n=this.maps.length){return new Q4(this._maps,this.mirror,t,n)}appendMap(t,n){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(t),n!=null&&this.setMirror(this._maps.length-1,n)}appendMapping(t){for(let n=0,r=this._maps.length;n<t._maps.length;n++){let i=t.getMirror(n);this.appendMap(t._maps[n],i!=null&&i<n?r+i:void 0)}}getMirror(t){if(this.mirror){for(let n=0;n<this.mirror.length;n++)if(this.mirror[n]==t)return this.mirror[n+(n%2?-1:1)]}}setMirror(t,n){this.mirror||(this.mirror=[]),this.mirror.push(t,n)}appendMappingInverted(t){for(let n=t.maps.length-1,r=this._maps.length+t._maps.length;n>=0;n--){let i=t.getMirror(n);this.appendMap(t._maps[n].invert(),i!=null&&i>n?r-i-1:void 0)}}invert(){let t=new Q4;return t.appendMappingInverted(this),t}map(t,n=1){if(this.mirror)return this._map(t,n,!0);for(let r=this.from;r<this.to;r++)t=this._maps[r].map(t,n);return t}mapResult(t,n=1){return this._map(t,n,!1)}_map(t,n,r){let i=0;for(let a=this.from;a<this.to;a++){let s=this._maps[a],o=s.mapResult(t,n);if(o.recover!=null){let f=this.getMirror(a);if(f!=null&&f>a&&f<this.to){a=f,t=this._maps[f].recover(o.recover);continue}}i|=o.delInfo,t=o.pos}return r?t:new Q$(t,i,null)}}const E8=Object.create(null);class Us{getMap(){return lu.empty}merge(t){return null}static fromJSON(t,n){if(!n||!n.stepType)throw new RangeError("Invalid input for Step.fromJSON");let r=E8[n.stepType];if(!r)throw new RangeError(`No step type ${n.stepType} defined`);return r.fromJSON(t,n)}static jsonID(t,n){if(t in E8)throw new RangeError("Duplicate use of step JSON ID "+t);return E8[t]=n,n.prototype.jsonID=t,n}}class uo{constructor(t,n){this.doc=t,this.failed=n}static ok(t){return new uo(t,null)}static fail(t){return new uo(null,t)}static fromReplace(t,n,r,i){try{return uo.ok(t.replace(n,r,i))}catch(a){if(a instanceof tw)return uo.fail(a.message);throw a}}}function JI(e,t,n){let r=[];for(let i=0;i<e.childCount;i++){let a=e.child(i);a.content.size&&(a=a.copy(JI(a.content,t,a))),a.isInline&&(a=t(a,n,i)),r.push(a)}return dn.fromArray(r)}class rg extends Us{constructor(t,n,r){super(),this.from=t,this.to=n,this.mark=r}apply(t){let n=t.slice(this.from,this.to),r=t.resolve(this.from),i=r.no
vendor: 7,003 bytes, line 837
837de(r.sharedDepth(this.to)),a=new Ln(JI(n.content,(s,o)=>!s.isAtom||!o.type.allowsMarkType(this.mark.type)?s:s.mark(this.mark.addToSet(s.marks)),i),n.openStart,n.openEnd);return uo.fromReplace(t,this.from,this.to,a)}invert(){return new kf(this.from,this.to,this.mark)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new rg(n.pos,r.pos,this.mark)}merge(t){return t instanceof rg&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new rg(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new rg(n.from,n.to,t.markFromJSON(n.mark))}}Us.jsonID("addMark",rg);class kf extends Us{constructor(t,n,r){super(),this.from=t,this.to=n,this.mark=r}apply(t){let n=t.slice(this.from,this.to),r=new Ln(JI(n.content,i=>i.mark(this.mark.removeFromSet(i.marks)),t),n.openStart,n.openEnd);return uo.fromReplace(t,this.from,this.to,r)}invert(){return new rg(this.from,this.to,this.mark)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new kf(n.pos,r.pos,this.mark)}merge(t){return t instanceof kf&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new kf(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new kf(n.from,n.to,t.markFromJSON(n.mark))}}Us.jsonID("removeMark",kf);class ig extends Us{constructor(t,n){super(),this.pos=t,this.mark=n}apply(t){let n=t.nodeAt(this.pos);if(!n)return uo.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return uo.fromReplace(t,this.pos,this.pos+1,new Ln(dn.from(r),0,n.isLeaf?0:1))}invert(t){let n=t.nodeAt(this.pos);if(n){let r=this.mark.addToSet(n.marks);if(r.length==n.marks.length){for(let i=0;i<n.marks.length;i++)if(!n.marks[i].isInSet(r))return new ig(this.pos,n.marks[i]);return new ig(this.pos,this.mark)}}return new n1(this.pos,this.mark)}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new ig(n.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new ig(n.pos,t.markFromJSON(n.mark))}}Us.jsonID("addNodeMark",ig);class n1 extends Us{constructor(t,n){super(),this.pos=t,this.mark=n}apply(t){let n=t.nodeAt(this.pos);if(!n)return uo.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.removeFromSet(n.marks));return uo.fromReplace(t,this.pos,this.pos+1,new Ln(dn.from(r),0,n.isLeaf?0:1))}invert(t){let n=t.nodeAt(this.pos);return!n||!this.mark.isInSet(n.marks)?this:new ig(this.pos,this.mark)}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new n1(n.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new n1(n.pos,t.markFromJSON(n.mark))}}Us.jsonID("removeNodeMark",n1);class so extends Us{constructor(t,n,r,i=!1){super(),this.from=t,this.to=n,this.slice=r,this.structure=i}apply(t){return this.structure&&eM(t,this.from,this.to)?uo.fail("Structure replace would overwrite content"):uo.fromReplace(t,this.from,this.to,this.slice)}getMap(){return new lu([this.from,this.to-this.from,this.slice.size])}invert(t){return new so(this.from,this.from+this.slice.size,t.slice(this.from,this.to))}map(t){let n=t.mapResult(this.to,-1),r=this.from==this.to&&so.MAP_BIAS<0?n:t.mapResult(this.from,1);return r.deletedAcross&&n.deletedAcross?null:new so(r.pos,Math.max(r.pos,n.pos),this.slice,this.structure)}merge(t){if(!(t instanceof so)||t.structure||this.structure)return null;if(this.from+this.slice.size==t.from&&!this.slice.openEnd&&!t.slice.openStart){let n=this.slice.size+t.slice.size==0?Ln.empty:new Ln(this.slice.content.append(t.slice.content),this.slice.openStart,t.slice.openEnd);return new so(this.from,this.to+(t.to-t.from),n,this.structure)}else if(t.to==this.from&&!this.slice.openStart&&!t.slice.openEnd){let n=this.slice.size+t.slice.size==0?Ln.empty:new Ln(t.slice.content.append(this.slice.content),t.slice.openStart,this.slice.openEnd);return new so(t.from,this.to,n,this.structure)}else return null}toJSON(){let t={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=!0),t}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new so(n.from,n.to,Ln.fromJSON(t,n.slice),!!n.structure)}}so.MAP_BIAS=1;Us.jsonID("replace",so);class Zo extends Us{constructor(t,n,r,i,a,s,o=!1){super(),this.from=t,this.to=n,this.gapFrom=r,this.gapTo=i,this.slice=a,this.insert=s,this.structure=o}apply(t){if(this.structure&&(eM(t,this.from,this.gapFrom)||eM(t,this.gapTo,this.to)))return uo.fail("Structure gap-replace would overwrite content");let n=t.slice(this.gapFrom,this.gapTo);if(n.openStart||n.openEnd)return uo.fail("Gap is not a flat range");let r=this.slice.insertAt(this.insert,n.content);return r?uo.fromReplace(t,this.from,this.to,r):uo.fail("Content does not fit in gap")}getMap(){return new lu([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(t){let n=this.gapTo-this.gapFrom;return new Zo(this.from,this.from+this.slice.size+n,this.from+this.insert,this.from+this.insert+n,t.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1),i=this.from==this.gapFrom?n.pos:t.map(this.gapFrom,-1),a=this.to==this.gapTo?r.pos:t.map(this.gapTo,1);return n.deletedAcross&&r.deletedAcross||i<n.pos||a>r.pos?null:new Zo(n.pos,r.pos,i,a,this.slice,this.insert,this.structure)}toJSON(){let t={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=!0),t}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number"||typeof n.gapFrom!="number"||typeof n.gapTo!="number"||typeof n.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new Zo(n.from,n.to,n.gapFrom,n.gapTo,Ln.fromJSON(t,n.slice),n.insert,!!n.structure)}}Us.jsonID("replaceAround",Zo);function eM(e,t,n){let r=e.resolve(t),i=n-t,a=r.depth;for(;i>0&&a>0&&r.indexAfter(a)==r.node(a).childCount;)a--,i--;if(i>
vendor: 4,149 bytes, line 837
8370){let s=r.node(a).maybeChild(r.indexAfter(a));for(;i>0;){if(!s||s.isLeaf)return!0;s=s.firstChild,i--}}return!1}function SMe(e,t,n,r){let i=[],a=[],s,o;e.doc.nodesBetween(t,n,(f,m,y)=>{if(!f.isInline)return;let b=f.marks;if(!r.isInSet(b)&&y.type.allowsMarkType(r.type)){let T=Math.max(m,t),x=Math.min(m+f.nodeSize,n),$=r.addToSet(b);for(let A=0;A<b.length;A++)b[A].isInSet($)||(s&&s.to==T&&s.mark.eq(b[A])?s.to=x:i.push(s=new kf(T,x,b[A])));o&&o.to==T?o.to=x:a.push(o=new rg(T,x,r))}}),i.forEach(f=>e.step(f)),a.forEach(f=>e.step(f))}function CMe(e,t,n,r){let i=[],a=0;e.doc.nodesBetween(t,n,(s,o)=>{if(!s.isInline)return;a++;let f=null;if(r instanceof rk){let m=s.marks,y;for(;y=r.isInSet(m);)(f||(f=[])).push(y),m=y.removeFromSet(m)}else r?r.isInSet(s.marks)&&(f=[r]):f=s.marks;if(f&&f.length){let m=Math.min(o+s.nodeSize,n);for(let y=0;y<f.length;y++){let b=f[y],T;for(let x=0;x<i.length;x++){let $=i[x];$.step==a-1&&b.eq(i[x].style)&&(T=$)}T?(T.to=m,T.step=a):i.push({style:b,from:Math.max(o,t),to:m,step:a})}}}),i.forEach(s=>e.step(new kf(s.from,s.to,s.style)))}function QI(e,t,n,r=n.contentMatch,i=!0){let a=e.doc.nodeAt(t),s=[],o=t+1;for(let f=0;f<a.childCount;f++){let m=a.child(f),y=o+m.nodeSize,b=r.matchType(m.type);if(!b)s.push(new so(o,y,Ln.empty));else{r=b;for(let T=0;T<m.marks.length;T++)n.allowsMarkType(m.marks[T].type)||e.step(new kf(o,y,m.marks[T]));if(i&&m.isText&&n.whitespace!="pre"){let T,x=/\r?\n|\r/g,$;for(;T=x.exec(m.text);)$||($=new Ln(dn.from(n.schema.text(" ",n.allowedMarks(m.marks))),0,0)),s.push(new so(o+T.index,o+T.index+T[0].length,$))}}o=y}if(!r.validEnd){let f=r.fillBefore(dn.empty,!0);e.replace(o,o,new Ln(f,0,0))}for(let f=s.length-1;f>=0;f--)e.step(s[f])}function TMe(e,t,n){return(t==0||e.canReplace(t,e.childCount))&&(n==e.childCount||e.canReplace(0,n))}function ob(e){let n=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let r=e.depth,i=0,a=0;;--r){let s=e.$from.node(r),o=e.$from.index(r)+i,f=e.$to.indexAfter(r)-a;if(r<e.depth&&s.canReplace(o,f,n))return r;if(r==0||s.type.spec.isolating||!TMe(s,o,f))break;o&&(i=1),f<s.childCount&&(a=1)}return null}function kMe(e,t,n){let{$from:r,$to:i,depth:a}=t,s=r.before(a+1),o=i.after(a+1),f=s,m=o,y=dn.empty,b=0;for(let $=a,A=!1;$>n;$--)A||r.index($)>0?(A=!0,y=dn.from(r.node($).copy(y)),b++):f--;let T=dn.empty,x=0;for(let $=a,A=!1;$>n;$--)A||i.after($+1)<i.end($)?(A=!0,T=dn.from(i.node($).copy(T)),x++):m++;e.step(new Zo(f,m,s,o,new Ln(y.append(T),b,x),y.size-b,!0))}function e7(e,t,n=null,r=e){let i=EMe(e,t),a=i&&PMe(r,t);return a?i.map(KB).concat({type:t,attrs:n}).concat(a.map(KB)):null}function KB(e){return{type:e,attrs:null}}function EMe(e,t){let{parent:n,startIndex:r,endIndex:i}=e,a=n.contentMatchAt(r).findWrapping(t);if(!a)return null;let s=a.length?a[0]:t;return n.canReplaceWith(r,i,s)?a:null}function PMe(e,t){let{parent:n,startIndex:r,endIndex:i}=e,a=n.child(r),s=t.contentMatch.findWrapping(a.type);if(!s)return null;let f=(s.length?s[s.length-1]:t).contentMatch;for(let m=r;f&&m<i;m++)f=f.matchType(n.child(m).type);return!f||!f.validEnd?null:s}function $Me(e,t,n){let r=dn.empty;for(let s=n.length-1;s>=0;s--){if(r.size){let o=n[s].type.contentMatch.matchFragment(r);if(!o||!o.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=dn.from(n[s].type.create(n[s].attrs,r))}let i=t.start,a=t.end;e.step(new Zo(i,a,i,a,new Ln(r,0,0),n.length,!0))}function MMe(e,t,n,r,i){if(!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let a=e.steps.length;e.doc.nodesBetween(t,n,(s,o)=>{let f=typeof i=="function"?i(s):i;if(s.isTextblock&&!s.hasMarkup(r,f)&&AMe(e.doc,e.mapping.slice(a).map(o),r)){let m=null;if(r.schema.linebreakReplacement){let x=r.whitespace=="pre",$=!!r.contentMatch.matchType(r.schema.linebreakReplacement);x&&!$?m=!1:!x&&$&&(m=!0)}m===!1&&EY(e,s,o,a),QI(e,e.mapping.slice(a).map(o,1),r,void 0,m===null);let y=e.mapping.slice(a),b=y.map(o,1),T=y.map(o+s.nodeSize,1);return e.step(new Zo(b,T,b+1,T-1,new Ln(dn.from(r.create(f,null,s.marks)),0,0),1,!0)),m===!0&&kY(e,s,o,a),!1}})}function kY(e,t,n,r){t.forEach((i,a)=>
vendor: 5,747 bytes, lines 837-838
837{if(i.isText){let s,o=/\r?\n|\r/g;for(;s=o.exec(i.text);){let f=e.mapping.slice(r).map(n+1+a+s.index);e.replaceWith(f,f+1,t.type.schema.linebreakReplacement.create())}}})}function EY(e,t,n,r){t.forEach((i,a)=>{if(i.type==i.type.schema.linebreakReplacement){let s=e.mapping.slice(r).map(n+1+a);e.replaceWith(s,s+1,t.type.schema.text(`
838`))}})}function AMe(e,t,n){let r=e.resolve(t),i=r.index();return r.parent.canReplaceWith(i,i+1,n)}function IMe(e,t,n,r,i){let a=e.doc.nodeAt(t);if(!a)throw new RangeError("No node at given position");n||(n=a.type);let s=n.create(r,null,i||a.marks);if(a.isLeaf)return e.replaceWith(t,t+a.nodeSize,s);if(!n.validContent(a.content))throw new RangeError("Invalid content for node type "+n.name);e.step(new Zo(t,t+a.nodeSize,t+1,t+a.nodeSize-1,new Ln(dn.from(s),0,0),1,!0))}function pp(e,t,n=1,r){let i=e.resolve(t),a=i.depth-n,s=r&&r[r.length-1]||i.parent;if(a<0||i.parent.type.spec.isolating||!i.parent.canReplace(i.index(),i.parent.childCount)||!s.type.validContent(i.parent.content.cutByIndex(i.index(),i.parent.childCount)))return!1;for(let m=i.depth-1,y=n-2;m>a;m--,y--){let b=i.node(m),T=i.index(m);if(b.type.spec.isolating)return!1;let x=b.content.cutByIndex(T,b.childCount),$=r&&r[y+1];$&&(x=x.replaceChild(0,$.type.create($.attrs)));let A=r&&r[y]||b;if(!b.canReplace(T+1,b.childCount)||!A.type.validContent(x))return!1}let o=i.indexAfter(a),f=r&&r[0];return i.node(a).canReplaceWith(o,o,f?f.type:i.node(a+1).type)}function DMe(e,t,n=1,r){let i=e.doc.resolve(t),a=dn.empty,s=dn.empty;for(let o=i.depth,f=i.depth-n,m=n-1;o>f;o--,m--){a=dn.from(i.node(o).copy(a));let y=r&&r[m];s=dn.from(y?y.type.create(y.attrs,s):i.node(o).copy(s))}e.step(new so(t,t,new Ln(a.append(s),n,n),!0))}function Ng(e,t){let n=e.resolve(t),r=n.index();return PY(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function LMe(e,t){t.content.size||e.type.compatibleContent(t.type);let n=e.contentMatchAt(e.childCount),{linebreakReplacement:r}=e.type.schema;for(let i=0;i<t.childCount;i++){let a=t.child(i),s=a.type==r?e.type.schema.nodes.text:a.type;if(n=n.matchType(s),!n||!e.type.allowsMarks(a.marks))return!1}return n.validEnd}function PY(e,t){return!!(e&&t&&!e.isLeaf&&LMe(e,t))}function ik(e,t,n=-1){let r=e.resolve(t);for(let i=r.depth;;i--){let a,s,o=r.index(i);if(i==r.depth?(a=r.nodeBefore,s=r.nodeAfter):n>0?(a=r.node(i+1),o++,s=r.node(i).maybeChild(o)):(a=r.node(i).maybeChild(o-1),s=r.node(i+1)),a&&!a.isTextblock&&PY(a,s)&&r.node(i).canReplace(o,o+1))return t;if(i==0)break;t=n<0?r.before(i):r.after(i)}}function OMe(e,t,n){let r=null,{linebreakReplacement:i}=e.doc.type.schema,a=e.doc.resolve(t-n),s=a.node().type;if(i&&s.inlineContent){let y=s.whitespace=="pre",b=!!s.contentMatch.matchType(i);y&&!b?r=!1:!y&&b&&(r=!0)}let o=e.steps.length;if(r===!1){let y=e.doc.resolve(t+n);EY(e,y.node(),y.before(),o)}s.inlineContent&&QI(e,t+n-1,s,a.node().contentMatchAt(a.index()),r==null);let f=e.mapping.slice(o),m=f.map(t-n);if(e.step(new so(m,f.map(t+n,-1),Ln.empty,!0)),r===!0){let y=e.doc.resolve(m);kY(e,y.node(),y.before(),e.steps.length)}return e}function RMe(e,t,n){let r=e.resolve(t);if(r.parent.canReplaceWith(r.index(),r.index(),n))return t;if(r.parentOffset==0)for(let i=r.depth-1;i>=0;i--){let a=r.index(i);if(r.node(i).canReplaceWith(a,a,n))return r.before(i+1);if(a>0)return null}if(r.parentOffset==r.parent.content.size)for(let i=r.depth-1;i>=0;i--){let a=r.indexAfter(i);if(r.node(i).canReplaceWith(a,a,n))return r.after(i+1);if(a<r.node(i).childCount)return null}return null}function BMe(e,t,n){let r=e.resolve(t);if(!n.content.size)return t;let i=n.content;for(let a=0;a<n.openStart;a++)i=i.firstChild.content;for(let a=1;a<=(n.openStart==0&&n.size?2:1);a++)for(let s=r.depth;s>=0;s--){let o=s==r.depth?0:r.pos<=(r.start(s+1)+r.end(s+1))/2?-1:1,f=r.index(s)+(o>0?1:0),m=r.node(s),y=!1;if(a==1)y=m.canReplace(f,f,i);else{let b=m.contentMatchAt(f).findWrapping(i.firstChild.type);y=b&&m.canReplaceWith(f,f,b[0])}if(y)return o==0?r.pos:o<0?r.before(s+1):r.after(s+1)}return null}function ak(e,t,n=t,r=Ln.empty){if(t==n&&!r.size)return null;let i=e.resolve(t),a=e.resolve(n);return $Y(i,a,r)?new so(t,n,r):new FMe(i,a,r).fit()}function $Y(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}class FMe{constructor(t,n,r){this.$from=t,this.$to=n,this.unplaced=r,this.frontier=[],this.placed=dn.empty;for(let i=0;i<=t.depth;i++){let a=t.node(i);this.frontier.push({type:a.type,match:a.contentMatchAt(t.indexAfter(i))})}for(let i=t.depth;i>0;i--)this.placed=dn.from(t.node(i).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let m=this.findFittable();m?this.placeNodes(m):this.openMore()||this.dropNode()}let t=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,r=this.$from,i=this.close(t<0?this.$to:r.doc.resolve(t));if(!i)return null;let a=this.placed,s=r.depth,o=i.depth;for(;s&&o&&a.childCount==1;)a=a.firstChild.content,s--,o--;let f=new Ln(a,s,o);return t>-1?new Zo(r.pos,t,this.$to.pos,this.$to.end(),f,n):f.size||r.pos!=this.$to.pos?new so(r.pos,i.pos,f):null}findFittable(){let t=this.unplaced.openStart;for(let n=this.unplaced.content,r=0,i=this.unplaced.openEnd;r<t;r++){let a=n.firstChild;if(n.childCount>1&&(i=0),a.type.spec.isolating&&i<=r){t=r;break}n=a.content}for(let n=1;n<=2;n++)for(let r=n==1?t:this.unplaced.openStart;r>=0;r--){let i,a=null;r?(a=XB(this.unplaced.content,r-1).firstChild,i=a.content):i=this.unplaced.content;let s=i.firstChild;for(let o=this.depth;o>=0;o--){let{type:f,match:m}=this.frontier[o],y,b=null;if(n==1&&(s?m.matchType(s.type)||(b=m.fillBefore(dn.from(s),!1)):a&&f.compatibleContent(a.type)))return{sliceDepth:r,frontierDepth:o,parent:a,inject:b};
vendor: 8,848 bytes, line 838
838if(n==2&&s&&(y=m.findWrapping(s.type)))return{sliceDepth:r,frontierDepth:o,parent:a,wrap:y};if(a&&m.matchType(a.type))break}}}openMore(){let{content:t,openStart:n,openEnd:r}=this.unplaced;return JB(t,-1)<=n?!1:(this.unplaced.size>1&&JB(t,1)>r&&r++,this.unplaced=new Ln(t,n+1,r),!0)}dropNode(){let{content:t,openStart:n,openEnd:r}=this.unplaced,i=XB(t,n);if(i.childCount<=1&&n>0){let a=t.size-n<=n+i.size;this.unplaced=new Ln(G2(t,n-1,1),n-1,a?n-1:r)}else this.unplaced=new Ln(G2(t,n,1),n,r)}placeNodes({sliceDepth:t,frontierDepth:n,parent:r,inject:i,wrap:a}){for(;this.depth>n;)this.closeFrontierNode();if(a)for(let A=0;A<a.length;A++)this.openFrontierNode(a[A]);let s=this.unplaced,o=r?r.content:s.content,f=s.openStart-t,m=0,y=[],{match:b,type:T}=this.frontier[n];if(i){for(let A=0;A<i.childCount;A++)y.push(i.child(A));b=b.matchFragment(i)}let x=o.size+t-(s.content.size-s.openEnd);for(;m<o.childCount;){let A=o.child(m),N=b.matchType(A.type);if(!N)break;m++,(m>1||f==0||A.content.size)&&(b=N,y.push(MY(A.mark(T.allowedMarks(A.marks)),m==1?f:0,m==o.childCount?x:-1)))}let $=m==o.childCount;$||(x=-1),this.placed=Y2(this.placed,n,dn.from(y)),this.frontier[n].match=b,$&&x<0&&r&&r.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let A=0,N=o;A<x;A++){let O=N.lastChild;this.frontier.push({type:O.type,match:O.contentMatchAt(O.childCount)}),N=O.content}this.unplaced=$?t==0?Ln.empty:new Ln(G2(s.content,t-1,1),t-1,x<0?s.openEnd:t-1):new Ln(G2(s.content,t,m),s.openStart,s.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let t=this.frontier[this.depth],n;if(!t.type.isTextblock||!P8(this.$to,this.$to.depth,t.type,t.match,!1)||this.$to.depth==this.depth&&(n=this.findCloseLevel(this.$to))&&n.depth==this.depth)return-1;let{depth:r}=this.$to,i=this.$to.after(r);for(;r>1&&i==this.$to.end(--r);)++i;return i}findCloseLevel(t){e:for(let n=Math.min(this.depth,t.depth);n>=0;n--){let{match:r,type:i}=this.frontier[n],a=n<t.depth&&t.end(n+1)==t.pos+(t.depth-(n+1)),s=P8(t,n,i,r,a);if(s){for(let o=n-1;o>=0;o--){let{match:f,type:m}=this.frontier[o],y=P8(t,o,m,f,!0);if(!y||y.childCount)continue e}return{depth:n,fit:s,move:a?t.doc.resolve(t.after(n+1)):t}}}}close(t){let n=this.findCloseLevel(t);if(!n)return null;for(;this.depth>n.depth;)this.closeFrontierNode();n.fit.childCount&&(this.placed=Y2(this.placed,n.depth,n.fit)),t=n.move;for(let r=n.depth+1;r<=t.depth;r++){let i=t.node(r),a=i.type.contentMatch.fillBefore(i.content,!0,t.index(r));this.openFrontierNode(i.type,i.attrs,a)}return t}openFrontierNode(t,n=null,r){let i=this.frontier[this.depth];i.match=i.match.matchType(t),this.placed=Y2(this.placed,this.depth,dn.from(t.create(n,r))),this.frontier.push({type:t,match:t.contentMatch})}closeFrontierNode(){let n=this.frontier.pop().match.fillBefore(dn.empty,!0);n.childCount&&(this.placed=Y2(this.placed,this.frontier.length,n))}}function G2(e,t,n){return t==0?e.cutByIndex(n,e.childCount):e.replaceChild(0,e.firstChild.copy(G2(e.firstChild.content,t-1,n)))}function Y2(e,t,n){return t==0?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy(Y2(e.lastChild.content,t-1,n)))}function XB(e,t){for(let n=0;n<t;n++)e=e.firstChild.content;return e}function MY(e,t,n){if(t<=0)return e;let r=e.content;return t>1&&(r=r.replaceChild(0,MY(r.firstChild,t-1,r.childCount==1?n-1:0))),t>0&&(r=e.type.contentMatch.fillBefore(r).append(r),n<=0&&(r=r.append(e.type.contentMatch.matchFragment(r).fillBefore(dn.empty,!0)))),e.copy(r)}function P8(e,t,n,r,i){let a=e.node(t),s=i?e.indexAfter(t):e.index(t);if(s==a.childCount&&!n.compatibleContent(a.type))return null;let o=r.fillBefore(a.content,!0,s);return o&&!zMe(n,a.content,s)?o:null}function zMe(e,t,n){for(let r=n;r<t.childCount;r++)if(!e.allowsMarks(t.child(r).marks))return!0;return!1}function NMe(e){return e.spec.defining||e.spec.definingForContent}function JB(e,t){for(let n=0;;n++){let r=t<0?e.firstChild:e.lastChild;if(!r||r.isAtom)return n;e=r.content}}function VMe(e,t,n,r){if(!r.size)return e.deleteRange(t,n);let i=e.doc.resolve(t),a=e.doc.resolve(n);if($Y(i,a,r))return e.step(new so(t,n,r));let s=IY(i,a);s[s.length-1]==0&&s.pop();let o=-(i.depth+1);s.unshift(o);for(let T=i.depth,x=i.pos-1;T>0;T--,x--){let $=i.node(T).type.spec;if($.defining||$.definingAsContext||$.isolating)break;s.indexOf(T)>-1?o=T:i.before(T)==x&&s.splice(1,0,-T)}let f=s.indexOf(o),m=[],y=r.openStart;for(let T=r.content,x=0;;x++){let $=T.firstChild;if(m.push($),x==r.openStart)break;T=$.content}for(let T=y-1;T>=0;T--){let x=m[T],$=NMe(x.type);if($&&!x.sameMarkup(i.node(Math.abs(o)-1)))y=T;else if($||!x.type.isTextblock)break}for(let T=r.openStart;T>=0;T--){let x=(T+y+1)%(r.openStart+1),$=m[x];if($)for(let A=0;A<s.length;A++){let N=s[(A+f)%s.length],O=!0;N<0&&(O=!1,N=-N);let I=i.node(N-1),U=i.index(N-1);if(I.canReplaceWith(U,U,$.type,$.marks))return e.replace(i.before(N),O?a.after(N):n,new Ln(AY(r.content,0,r.openStart,x),x,r.openEnd))}}let b=e.steps.length;for(let T=s.length-1;T>=0&&(e.replace(t,n,r),!(e.steps.length>b));T--){let x=s[T];x<0||(t=i.before(x),n=a.after(x))}}function AY(e,t,n,r,i){if(t<n){let a=e.firstChild;e=e.replaceChild(0,a.copy(AY(a.content,t+1,n,r,a)))}if(t>r){let a=i.contentMatchAt(0),s=a.fillBefore(e).append(e);e=s.append(a.matchFragment(s).fillBefore(dn.empty,!0))}return e}function qMe(e,t,n,r){if(!r.isInline&&t==n&&e.doc.resolve(t).parent.content.size){let i=RMe(e.doc,t,r.type);i!=null&&(t=n=i)}e.replaceRange(t,n,new Ln(dn.from(r),0,0))}function jMe(e,t,n){let r=e.doc.resolve(t),i=e.doc.resolve(n);if(r.parent.isTextblock&&i.parent.isTextblock&&r.start()!=i.start()&&r.parentOffset==0&&i.parentOffset==0){let s=r.sharedDepth(n),o=!1;for(let f=r.depth;f>s;f--)r.node(f).type.spec.isolating&&(o=!0);for(let f=i.depth;f>s;f--)i.node(f).type.spec.isolating&&(o=!0);if(!o){for(let f=r.depth;f>0&&t==r.start(f);f--)t=r.before(f);for(let f=i.depth;f>0&&n==i.start(f);f--)n=i.before(f);r=e.doc.resolve(t),i=e.doc.resolve(n)}}let a=IY(r,i);for(let s=0;s<a.length;s++){let o=a[s],f=s==a.length-1;if(f&&o==0||r.node(o).type.contentMatch.validEnd)return e.delete(r.start(o),i.end(o));if(o>0&&(f||r.node(o-1).canReplace(r.index(o-1),i.indexAfter(o-1))))return e.delete(r.before(o),i.after(o))}for(let s=1;s<=r.depth&&s<=i.depth;s++)if(t-r.start(s)==r.depth-s&&n>r.end(s)&&i.end(s)-n!=i.depth-s&&r.start(s-1)==i.start(s-1)&&r.node(s-1).canReplace(r.index(s-1),i.index(s-1)))return e.delete(r.before(s),n);e.delete(t,n)}function IY(e,t){let n=[],r=Math.min(e.depth,t.depth);for(let i=r;i>=0;i--){let a=e.start(i);if(a<e.pos-(e.depth-i)||t.end(i)>t.pos+(t.depth-i)||e.node(i).type.spec.isolating||t.node(i).type.spec.isolating)break;(a==t.start(i)||i==e.depth&&i==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&i&&t.start(i-1)==a-1)&&n.push(i)}return n}class d_ extends Us{constructor(t,n,r){super(),this.pos=t,this.attr=n,this.value=r}apply(t){let n=t.nodeAt(this.pos);if(!n)return uo.fail("No node at attribute step's position");let r=Object.create(null);for(let a in n.attrs)r[a]=n.attrs[a];r[this.attr]=this.value;let i=n.type.create(r,null,n.marks);return uo.fromReplace(t,this.pos,this.pos+1,new Ln(dn.from(i),0,n.isLeaf?0:1))}getMap(){return lu.empty}invert(t){return new d_(this.pos,this.attr,t.nodeAt(this.pos).attrs[this.attr])}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new d_(n.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(t,n){if(typeof n.pos!="number"||typeof n.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new d_(n.pos,n.attr,n.value)}}Us.jsonID("attr",d_);class iw extends Us{constructor(t,n){super(),this.attr=t,this.value=n}apply(t){let n=Object.create(null);for(let i in t.attrs)n[i]=t.attrs[i];n[this.attr]=this.value;let r=t.type.create(n,t.content,t.marks);return uo.ok(r)}getMap(){return lu.empty}invert(t){return new iw(this.attr,t.attrs[this.attr])}map(t){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(t,n){if(typeof n.attr!="string")throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new iw(n.attr,n.value)}}Us.jsonID("docAttr",iw);let $_=class extends Error{};$_=function e(t){let n=Error.call(this,t);return n.__proto__=e.prototype,n};$_.prototype=Object.create(Error.prototype);$_.prototype.constructor=$_;$_.prototype.name="TransformError";class DY{constructor(t){this.doc=t,this.steps=[],this.docs=[],this.mapping=new Q4}get before(){return this.docs.length?this.docs[0]:this.doc}step(t){let n=this.maybeStep(t);if(n.failed)throw new $_(n.failed);return this}maybeStep(t){let n=t.apply(this.doc);return n.failed||this.addStep(t,n.doc),n}get docChanged(){return this.steps.length>0}changedRange(){let t=1e9,n=-1e9;for(let r=0;r<this.mapping.maps.length;r++){let i=this.mapping.maps[r];
vendor: 5,817 bytes, line 838
838r&&(t=i.map(t,1),n=i.map(n,-1)),i.forEach((a,s,o,f)=>{t=Math.min(t,o),n=Math.max(n,f)})}return t==1e9?null:{from:t,to:n}}addStep(t,n){this.docs.push(this.doc),this.steps.push(t),this.mapping.appendMap(t.getMap()),this.doc=n}replace(t,n=t,r=Ln.empty){let i=ak(this.doc,t,n,r);return i&&this.step(i),this}replaceWith(t,n,r){return this.replace(t,n,new Ln(dn.from(r),0,0))}delete(t,n){return this.replace(t,n,Ln.empty)}insert(t,n){return this.replaceWith(t,t,n)}replaceRange(t,n,r){return VMe(this,t,n,r),this}replaceRangeWith(t,n,r){return qMe(this,t,n,r),this}deleteRange(t,n){return jMe(this,t,n),this}lift(t,n){return kMe(this,t,n),this}join(t,n=1){return OMe(this,t,n),this}wrap(t,n){return $Me(this,t,n),this}setBlockType(t,n=t,r,i=null){return MMe(this,t,n,r,i),this}setNodeMarkup(t,n,r=null,i){return IMe(this,t,n,r,i),this}setNodeAttribute(t,n,r){return this.step(new d_(t,n,r)),this}setDocAttribute(t,n){return this.step(new iw(t,n)),this}addNodeMark(t,n){return this.step(new ig(t,n)),this}removeNodeMark(t,n){let r=this.doc.nodeAt(t);if(!r)throw new RangeError("No node at position "+t);if(n instanceof Ri)n.isInSet(r.marks)&&this.step(new n1(t,n));else{let i=r.marks,a,s=[];for(;a=n.isInSet(i);)s.push(new n1(t,a)),i=a.removeFromSet(i);for(let o=s.length-1;o>=0;o--)this.step(s[o])}return this}split(t,n=1,r){return DMe(this,t,n,r),this}addMark(t,n,r){return SMe(this,t,n,r),this}removeMark(t,n,r){return CMe(this,t,n,r),this}clearIncompatible(t,n,r){return QI(this,t,n,r),this}}const $8=Object.create(null);class Wr{constructor(t,n,r){this.$anchor=t,this.$head=n,this.ranges=r||[new UMe(t.min(n),t.max(n))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let t=this.ranges;for(let n=0;n<t.length;n++)if(t[n].$from.pos!=t[n].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(t,n=Ln.empty){let r=n.content.lastChild,i=null;for(let o=0;o<n.openEnd;o++)i=r,r=r.lastChild;let a=t.steps.length,s=this.ranges;for(let o=0;o<s.length;o++){let{$from:f,$to:m}=s[o],y=t.mapping.slice(a);t.replaceRange(y.map(f.pos),y.map(m.pos),o?Ln.empty:n),o==0&&tF(t,a,(r?r.isInline:i&&i.isTextblock)?-1:1)}}replaceWith(t,n){let r=t.steps.length,i=this.ranges;for(let a=0;a<i.length;a++){let{$from:s,$to:o}=i[a],f=t.mapping.slice(r),m=f.map(s.pos),y=f.map(o.pos);a?t.deleteRange(m,y):(t.replaceRangeWith(m,y,n),tF(t,r,n.isInline?-1:1))}}static findFrom(t,n,r=!1){let i=t.parent.inlineContent?new Pr(t):Vv(t.node(0),t.parent,t.pos,t.index(),n,r);if(i)return i;for(let a=t.depth-1;a>=0;a--){let s=n<0?Vv(t.node(0),t.node(a),t.before(a+1),t.index(a),n,r):Vv(t.node(0),t.node(a),t.after(a+1),t.index(a)+1,n,r);if(s)return s}return null}static near(t,n=1){return this.findFrom(t,n)||this.findFrom(t,-n)||new gu(t.node(0))}static atStart(t){return Vv(t,t,0,0,1)||new gu(t)}static atEnd(t){return Vv(t,t,t.content.size,t.childCount,-1)||new gu(t)}static fromJSON(t,n){if(!n||!n.type)throw new RangeError("Invalid input for Selection.fromJSON");let r=$8[n.type];if(!r)throw new RangeError(`No selection type ${n.type} defined`);return r.fromJSON(t,n)}static jsonID(t,n){if(t in $8)throw new RangeError("Duplicate use of selection JSON ID "+t);return $8[t]=n,n.prototype.jsonID=t,n}getBookmark(){return Pr.between(this.$anchor,this.$head).getBookmark()}}Wr.prototype.visible=!0;class UMe{constructor(t,n){this.$from=t,this.$to=n}}let QB=!1;function eF(e){!QB&&!e.parent.inlineContent&&(QB=!0)}class Pr extends Wr{constructor(t,n=t){eF(t),eF(n),super(t,n)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(t,n){let r=t.resolve(n.map(this.head));if(!r.parent.inlineContent)return Wr.near(r);let i=t.resolve(n.map(this.anchor));return new Pr(i.parent.inlineContent?i:r,r)}replace(t,n=Ln.empty){if(super.replace(t,n),n==Ln.empty){let r=this.$from.marksAcross(this.$to);r&&t.ensureMarks(r)}}eq(t){return t instanceof Pr&&t.anchor==this.anchor&&t.head==this.head}getBookmark(){return new ok(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(t,n){if(typeof n.anchor!="number"||typeof n.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new Pr(t.resolve(n.anchor),t.resolve(n.head))}static create(t,n,r=n){let i=t.resolve(n);return new this(i,r==n?i:t.resolve(r))}static between(t,n,r){let i=t.pos-n.pos;if((!r||i)&&(r=i>=0?1:-1),!n.parent.inlineContent){let a=Wr.findFrom(n,r,!0)||Wr.findFrom(n,-r,!0);if(a)n=a.$head;else return Wr.near(n,r)}return t.parent.inlineContent||(i==0?t=n:(t=(Wr.findFrom(t,-r,!0)||Wr.findFrom(t,r,!0)).$anchor,t.pos<n.pos!=i<0&&(t=n))),new Pr(t,n)}}Wr.jsonID("text",Pr);class ok{constructor(t,n){this.anchor=t,this.head=n}map(t){return new ok(t.map(this.anchor),t.map(this.head))}resolve(t){return Pr.between(t.resolve(this.anchor),t.resolve(this.head))}}class ar extends Wr{constructor(t){let n=t.nodeAfter,r=t.node(0).resolve(t.pos+n.nodeSize);super(t,r),this.node=n}map(t,n){let{deleted:r,pos:i}=n.mapResult(this.anchor),a=t.resolve(i);return r?Wr.near(a):new ar(a)}content(){return new Ln(dn.from(this.node),0,0)}eq(t){return t instanceof ar&&t.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new t7(this.anchor)}static fromJSON(t,n){if(typeof n.anchor!="number")throw new RangeError("Invalid input for NodeSelection.fromJSON");return new ar(t.resolve(n.anchor))}static create(t,n){return new ar(t.resolve(n))}static isSelectable(t){return!t.isText&&t.type.spec.selectable!==!1}}ar.prototype.visible=!1;Wr.jsonID("node",ar);class t7{constructor(t){this.anchor=t}map(t){let{deleted:n,pos:r}=t.mapResult(this.anchor);return n?new ok(r,r):new t7(r)}
vendor: 4,434 bytes, line 838
838resolve(t){let n=t.resolve(this.anchor),r=n.nodeAfter;return r&&ar.isSelectable(r)?new ar(n):Wr.near(n)}}class gu extends Wr{constructor(t){super(t.resolve(0),t.resolve(t.content.size))}replace(t,n=Ln.empty){if(n==Ln.empty){t.delete(0,t.doc.content.size);let r=Wr.atStart(t.doc);r.eq(t.selection)||t.setSelection(r)}else super.replace(t,n)}toJSON(){return{type:"all"}}static fromJSON(t){return new gu(t)}map(t){return new gu(t)}eq(t){return t instanceof gu}getBookmark(){return HMe}}Wr.jsonID("all",gu);const HMe={map(){return this},resolve(e){return new gu(e)}};function Vv(e,t,n,r,i,a=!1){if(t.inlineContent)return Pr.create(e,n);for(let s=r-(i>0?0:1);i>0?s<t.childCount:s>=0;s+=i){let o=t.child(s);if(o.isAtom){if(!a&&ar.isSelectable(o))return ar.create(e,n-(i<0?o.nodeSize:0))}else{let f=Vv(e,o,n+i,i<0?o.childCount:0,i,a);if(f)return f}n+=o.nodeSize*i}return null}function tF(e,t,n){let r=e.steps.length-1;if(r<t)return;let i=e.steps[r];if(!(i instanceof so||i instanceof Zo))return;let a=e.mapping.maps[r],s;a.forEach((o,f,m,y)=>{s==null&&(s=y)}),e.setSelection(Wr.near(e.doc.resolve(s),n))}const nF=1,mS=2,rF=4;class WMe extends DY{constructor(t){super(t.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=t.selection,this.storedMarks=t.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(t){if(t.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=t,this.curSelectionFor=this.steps.length,this.updated=(this.updated|nF)&~mS,this.storedMarks=null,this}get selectionSet(){return(this.updated&nF)>0}setStoredMarks(t){return this.storedMarks=t,this.updated|=mS,this}ensureMarks(t){return Ri.sameSet(this.storedMarks||this.selection.$from.marks(),t)||this.setStoredMarks(t),this}addStoredMark(t){return this.ensureMarks(t.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(t){return this.ensureMarks(t.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&mS)>0}addStep(t,n){super.addStep(t,n),this.updated=this.updated&~mS,this.storedMarks=null}setTime(t){return this.time=t,this}replaceSelection(t){return this.selection.replace(this,t),this}replaceSelectionWith(t,n=!0){let r=this.selection;return n&&(t=t.mark(this.storedMarks||(r.empty?r.$from.marks():r.$from.marksAcross(r.$to)||Ri.none))),r.replaceWith(this,t),this}deleteSelection(){return this.selection.replace(this),this}insertText(t,n,r){let i=this.doc.type.schema;if(n==null)return t?this.replaceSelectionWith(i.text(t),!0):this.deleteSelection();{if(r==null&&(r=n),!t)return this.deleteRange(n,r);let a=this.storedMarks;if(!a){let s=this.doc.resolve(n);a=r==n?s.marks():s.marksAcross(this.doc.resolve(r))}return this.replaceRangeWith(n,r,i.text(t,a)),!this.selection.empty&&this.selection.to==n+t.length&&this.setSelection(Wr.near(this.selection.$to)),this}}setMeta(t,n){return this.meta[typeof t=="string"?t:t.key]=n,this}getMeta(t){return this.meta[typeof t=="string"?t:t.key]}get isGeneric(){for(let t in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=rF,this}get scrolledIntoView(){return(this.updated&rF)>0}}function iF(e,t){return!t||!e?e:e.bind(t)}class Z2{constructor(t,n,r){this.name=t,this.init=iF(n.init,r),this.apply=iF(n.apply,r)}}const GMe=[new Z2("doc",{init(e){return e.doc||e.schema.topNodeType.createAndFill()},apply(e){return e.doc}}),new Z2("selection",{init(e,t){return e.selection||Wr.atStart(t.doc)},apply(e){return e.selection}}),new Z2("storedMarks",{init(e){return e.storedMarks||null},apply(e,t,n,r){return r.selection.$cursor?e.storedMarks:null}}),new Z2("scrollToSelection",{init(){return 0},apply(e,t){return e.scrolledIntoView?t+1:t}})];class M8{constructor(t,n){this.schema=t,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=GMe.slice(),n&&n.forEach(r=>{if(this.pluginsByKey[r.key])throw new RangeError("Adding different instances of a keyed plugin ("+r.key+")");this.plugins.push(r),this.pluginsByKey[r.key]=r,r.spec.state&&this.fields.push(new Z2(r.key,r.spec.state,r))})}}class Wv{constructor(t){this.config=t}get schema(){return this.config.schema}get plugins(){return this.config.plugins}
vendor: 5,091 bytes, line 838
838apply(t){return this.applyTransaction(t).state}filterTransaction(t,n=-1){for(let r=0;r<this.config.plugins.length;r++)if(r!=n){let i=this.config.plugins[r];if(i.spec.filterTransaction&&!i.spec.filterTransaction.call(i,t,this))return!1}return!0}applyTransaction(t){if(!this.filterTransaction(t))return{state:this,transactions:[]};let n=[t],r=this.applyInner(t),i=null;for(;;){let a=!1;for(let s=0;s<this.config.plugins.length;s++){let o=this.config.plugins[s];if(o.spec.appendTransaction){let f=i?i[s].n:0,m=i?i[s].state:this,y=f<n.length&&o.spec.appendTransaction.call(o,f?n.slice(f):n,m,r);if(y&&r.filterTransaction(y,s)){if(y.setMeta("appendedTransaction",t),!i){i=[];for(let b=0;b<this.config.plugins.length;b++)i.push(b<s?{state:r,n:n.length}:{state:this,n:0})}n.push(y),r=r.applyInner(y),a=!0}i&&(i[s]={state:r,n:n.length})}}if(!a)return{state:r,transactions:n}}}applyInner(t){if(!t.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let n=new Wv(this.config),r=this.config.fields;for(let i=0;i<r.length;i++){let a=r[i];n[a.name]=a.apply(t,this[a.name],this,n)}return n}get tr(){return new WMe(this)}static create(t){let n=new M8(t.doc?t.doc.type.schema:t.schema,t.plugins),r=new Wv(n);for(let i=0;i<n.fields.length;i++)r[n.fields[i].name]=n.fields[i].init(t,r);return r}reconfigure(t){let n=new M8(this.schema,t.plugins),r=n.fields,i=new Wv(n);for(let a=0;a<r.length;a++){let s=r[a].name;i[s]=this.hasOwnProperty(s)?this[s]:r[a].init(t,i)}return i}toJSON(t){let n={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(n.storedMarks=this.storedMarks.map(r=>r.toJSON())),t&&typeof t=="object")for(let r in t){if(r=="doc"||r=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let i=t[r],a=i.spec.state;a&&a.toJSON&&(n[r]=a.toJSON.call(i,this[i.key]))}return n}static fromJSON(t,n,r){if(!n)throw new RangeError("Invalid input for EditorState.fromJSON");if(!t.schema)throw new RangeError("Required config field 'schema' missing");let i=new M8(t.schema,t.plugins),a=new Wv(i);return i.fields.forEach(s=>{if(s.name=="doc")a.doc=fg.fromJSON(t.schema,n.doc);else if(s.name=="selection")a.selection=Wr.fromJSON(a.doc,n.selection);else if(s.name=="storedMarks")n.storedMarks&&(a.storedMarks=n.storedMarks.map(t.schema.markFromJSON));else{if(r)for(let o in r){let f=r[o],m=f.spec.state;if(f.key==s.name&&m&&m.fromJSON&&Object.prototype.hasOwnProperty.call(n,o)){a[s.name]=m.fromJSON.call(f,t,n[o],a);return}}a[s.name]=s.init(t,a)}}),a}}function LY(e,t,n){for(let r in e){let i=e[r];i instanceof Function?i=i.bind(t):r=="handleDOMEvents"&&(i=LY(i,t,{})),n[r]=i}return n}class Tu{constructor(t){this.spec=t,this.props={},t.props&&LY(t.props,this,this.props),this.key=t.key?t.key.key:OY("plugin")}getState(t){return t[this.key]}}const A8=Object.create(null);function OY(e){return e in A8?e+"$"+ ++A8[e]:(A8[e]=0,e+"$")}class qf{constructor(t="key"){this.key=OY(t)}get(t){return t.config.pluginsByKey[this.key]}getState(t){return t[this.key]}}const gs=function(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t},M_=function(e){let t=e.assignedSlot||e.parentNode;return t&&t.nodeType==11?t.host:t};let tM=null;const Hh=function(e,t,n){let r=tM||(tM=document.createRange());return r.setEnd(e,n??e.nodeValue.length),r.setStart(e,t||0),r},YMe=function(){tM=null},r1=function(e,t,n,r){return n&&(aF(e,t,n,r,-1)||aF(e,t,n,r,1))},ZMe=/^(img|br|input|textarea|hr)$/i;function aF(e,t,n,r,i){for(var a;;){if(e==n&&t==r)return!0;if(t==(i<0?0:lc(e))){let s=e.parentNode;if(!s||s.nodeType!=1||Rw(e)||ZMe.test(e.nodeName)||e.contentEditable=="false")return!1;t=gs(e)+(i<0?0:1),e=s}else if(e.nodeType==1){let s=e.childNodes[t+(i<0?-1:0)];if(s.nodeType==1&&s.contentEditable=="false")if(!((a=s.pmViewDesc)===null||a===void 0)&&a.ignoreForSelection)t+=i;else return!1;else e=s,t=i<0?lc(e):0}else return!1}}function lc(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function KMe(e,t){for(;;){if(e.nodeType==3&&t)return e;if(e.nodeType==1&&t>0){if(e.contentEditable=="false")return null;e=e.childNodes[t-1],t=lc(e)}else if(e.parentNode&&!Rw(e))t=gs(e),e=e.parentNode;else return null}}function XMe(e,t){for(;;){if(e.nodeType==3&&t<e.nodeValue.length)return e;if(e.nodeType==1&&t<e.childNodes.length){if(e.contentEditable=="false")return null;e=e.childNodes[t],t=0}else if(e.parentNode&&!Rw(e))t=gs(e)+1,e=e.parentNode;else return null}}function JMe(e,t,n){for(let r=t==0,i=t==lc(e);r||i;){if(e==n)return!0;let a=gs(e);if(e=e.parentNode,!e)return!1;r=r&&a==0,i=i&&a==lc(e)}}function Rw(e){let t;for(let n=e;n&&!(t=n.pmViewDesc);n=n.parentNode);return t&&t.node&&t.node.isBlock&&(t.dom==e||t.contentDOM==e)}const sk=function(e){return e.focusNode&&r1(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)};function vy(e,t){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=e,n.key=n.code=t,n}function QMe(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}function eAe(e,t,n){if(e.caretPositionFromPoint)try{let r=e.caretPositionFromPoint(t,n);
vendor: 16,334 bytes, lines 838-839
838if(r)return{node:r.offsetNode,offset:Math.min(lc(r.offsetNode),r.offset)}}catch{}if(e.caretRangeFromPoint){let r=e.caretRangeFromPoint(t,n);if(r)return{node:r.startContainer,offset:Math.min(lc(r.startContainer),r.startOffset)}}}const Of=typeof navigator<"u"?navigator:null,oF=typeof document<"u"?document:null,Vg=Of&&Of.userAgent||"",nM=/Edge\/(\d+)/.exec(Vg),RY=/MSIE \d/.exec(Vg),rM=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Vg),Ll=!!(RY||rM||nM),hg=RY?document.documentMode:rM?+rM[1]:nM?+nM[1]:0,hc=!Ll&&/gecko\/(\d+)/i.test(Vg);hc&&+(/Firefox\/(\d+)/.exec(Vg)||[0,0])[1];const iM=!Ll&&/Chrome\/(\d+)/.exec(Vg),ws=!!iM,BY=iM?+iM[1]:0,qs=!Ll&&!!Of&&/Apple Computer/.test(Of.vendor),A_=qs&&(/Mobile\/\w+/.test(Vg)||!!Of&&Of.maxTouchPoints>2),ac=A_||(Of?/Mac/.test(Of.platform):!1),FY=Of?/Win/.test(Of.platform):!1,ap=/Android \d/.test(Vg),Bw=!!oF&&"webkitFontSmoothing"in oF.documentElement.style,tAe=Bw?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function nAe(e){let t=e.defaultView&&e.defaultView.visualViewport;return t?{left:0,right:t.width,top:0,bottom:t.height}:{left:0,right:e.documentElement.clientWidth,top:0,bottom:e.documentElement.clientHeight}}function Bh(e,t){return typeof e=="number"?e:e[t]}function rAe(e){let t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,r=t.height/e.offsetHeight||1;return{left:t.left,right:t.left+e.clientWidth*n,top:t.top,bottom:t.top+e.clientHeight*r}}function sF(e,t,n){if(!aM(t)&&t.left==0)return;let r=e.someProp("scrollThreshold")||0,i=e.someProp("scrollMargin")||5,a=e.dom.ownerDocument;for(let s=n||e.dom;s;){if(s.nodeType!=1){s=M_(s);continue}let o=s,f=o==a.body,m=f?nAe(a):rAe(o),y=0,b=0;if(t.top<m.top+Bh(r,"top")?b=-(m.top-t.top+Bh(i,"top")):t.bottom>m.bottom-Bh(r,"bottom")&&(b=t.bottom-t.top>m.bottom-m.top?t.top+Bh(i,"top")-m.top:t.bottom-m.bottom+Bh(i,"bottom")),t.left<m.left+Bh(r,"left")?y=-(m.left-t.left+Bh(i,"left")):t.right>m.right-Bh(r,"right")&&(y=t.right-m.right+Bh(i,"right")),y||b)if(f)a.defaultView.scrollBy(y,b);else{let x=o.scrollLeft,$=o.scrollTop;b&&(o.scrollTop+=b),y&&(o.scrollLeft+=y);let A=o.scrollLeft-x,N=o.scrollTop-$;t={left:t.left-A,top:t.top-N,right:t.right-A,bottom:t.bottom-N}}let T=f?"fixed":getComputedStyle(s).position;if(/^(fixed|sticky)$/.test(T))break;s=T=="absolute"?s.offsetParent:M_(s)}}function iAe(e){let t=e.dom.getBoundingClientRect(),n=Math.max(0,t.top),r,i;for(let a=(t.left+t.right)/2,s=n+1;s<Math.min(innerHeight,t.bottom);s+=5){let o=e.root.elementFromPoint(a,s);if(!o||o==e.dom||!e.dom.contains(o))continue;let f=o.getBoundingClientRect();if(f.top>=n-20){r=o,i=f.top;break}}return{refDOM:r,refTop:i,stack:zY(e.dom)}}function zY(e){let t=[],n=e.ownerDocument;for(let r=e;r&&(t.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),e!=n);r=M_(r));return t}function aAe({refDOM:e,refTop:t,stack:n}){let r=e?e.getBoundingClientRect().top:0;NY(n,r==0?0:r-t)}function NY(e,t){for(let n=0;n<e.length;n++){let{dom:r,top:i,left:a}=e[n];r.scrollTop!=i+t&&(r.scrollTop=i+t),r.scrollLeft!=a&&(r.scrollLeft=a)}}let Dv=null;function oAe(e){if(e.setActive)return e.setActive();if(Dv)return e.focus(Dv);let t=zY(e);e.focus(Dv==null?{get preventScroll(){return Dv={preventScroll:!0},!0}}:void 0),Dv||(Dv=!1,NY(t,0))}function VY(e,t){let n,r=2e8,i,a=0,s=t.top,o=t.top,f,m;for(let y=e.firstChild,b=0;y;y=y.nextSibling,b++){let T;if(y.nodeType==1)T=y.getClientRects();else if(y.nodeType==3)T=Hh(y).getClientRects();else continue;for(let x=0;x<T.length;x++){let $=T[x];if($.top<=s&&$.bottom>=o){s=Math.max($.bottom,s),o=Math.min($.top,o);let A=$.left>t.left?$.left-t.left:$.right<t.left?t.left-$.right:0;if(A<r){n=y,r=A,i=A&&n.nodeType==3?{left:$.right<t.left?$.right:$.left,top:t.top}:t,y.nodeType==1&&A&&(a=b+(t.left>=($.left+$.right)/2?1:0));continue}}else $.top>t.top&&!f&&$.left<=t.left&&$.right>=t.left&&(f=y,m={left:Math.max($.left,Math.min($.right,t.left)),top:$.top});!n&&(t.left>=$.right&&t.top>=$.top||t.left>=$.left&&t.top>=$.bottom)&&(a=b+1)}}return!n&&f&&(n=f,i=m,r=0),n&&n.nodeType==3?sAe(n,i):!n||r&&n.nodeType==1?{node:e,offset:a}:VY(n,i)}function sAe(e,t){let n=e.nodeValue.length,r=document.createRange(),i;for(let a=0;a<n;a++){r.setEnd(e,a+1),r.setStart(e,a);let s=Um(r,1);if(s.top!=s.bottom&&n7(t,s)){i={node:e,offset:a+(t.left>=(s.left+s.right)/2?1:0)};break}}return r.detach(),i||{node:e,offset:0}}function n7(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>=t.top-1&&e.top<=t.bottom+1}function lAe(e,t){let n=e.parentNode;return n&&/^li$/i.test(n.nodeName)&&t.left<e.getBoundingClientRect().left?n:e}function uAe(e,t,n){let{node:r,offset:i}=VY(t,n),a=-1;if(r.nodeType==1&&!r.firstChild){let s=r.getBoundingClientRect();a=s.left!=s.right&&n.left>(s.left+s.right)/2?1:-1}return e.docView.posFromDOM(r,i,a)}function cAe(e,t,n,r){let i=-1;for(let a=t,s=!1;a!=e.dom;){let o=e.docView.nearestDesc(a,!0),f;if(!o)return null;if(o.dom.nodeType==1&&(o.node.isBlock&&o.parent||!o.contentDOM)&&((f=o.dom.getBoundingClientRect()).width||f.height)&&(o.node.isBlock&&o.parent&&!/^T(R|BODY|HEAD|FOOT)$/.test(o.dom.nodeName)&&(!s&&f.left>r.left||f.top>r.top?i=o.posBefore:(!s&&f.right<r.left||f.bottom<r.top)&&(i=o.posAfter),s=!0),!o.contentDOM&&i<0&&!o.node.isText))return(o.node.isBlock?r.top<(f.top+f.bottom)/2:r.left<(f.left+f.right)/2)?o.posBefore:o.posAfter;a=o.dom.parentNode}return i>-1?i:e.docView.posFromDOM(t,n,-1)}function qY(e,t,n){let r=e.childNodes.length;if(r&&n.top<n.bottom)for(let i=Math.max(0,Math.min(r-1,Math.floor(r*(t.top-n.top)/(n.bottom-n.top))-2)),a=i;;){let s=e.childNodes[a];if(s.nodeType==1){let o=s.getClientRects();for(let f=0;f<o.length;f++){let m=o[f];if(n7(t,m))return qY(s,t,m)}}if((a=(a+1)%r)==i)break}return e}function dAe(e,t){let n=e.dom.ownerDocument,r,i=0,a=eAe(n,t.left,t.top);a&&({node:r,offset:i}=a);let s=(e.root.elementFromPoint?e.root:n).elementFromPoint(t.left,t.top),o;if(!s||!e.dom.contains(s.nodeType!=1?s.parentNode:s)){let m=e.dom.getBoundingClientRect();if(!n7(t,m)||(s=qY(e.dom,t,m),!s))return null}if(qs)for(let m=s;r&&m;m=M_(m))m.draggable&&(r=void 0);if(s=lAe(s,t),r){if(hc&&r.nodeType==1&&(i=Math.min(i,r.childNodes.length),i<r.childNodes.length)){let y=r.childNodes[i],b;y.nodeName=="IMG"&&(b=y.getBoundingClientRect()).right<=t.left&&b.bottom>t.top&&i++}let m;Bw&&i&&r.nodeType==1&&(m=r.childNodes[i-1]).nodeType==1&&m.contentEditable=="false"&&m.getBoundingClientRect().top>=t.top&&i--,r==e.dom&&i==r.childNodes.length-1&&r.lastChild.nodeType==1&&t.top>r.lastChild.getBoundingClientRect().bottom?o=e.state.doc.content.size:(i==0||r.nodeType!=1||r.childNodes[i-1].nodeName!="BR")&&(o=cAe(e,r,i,t))}o==null&&(o=uAe(e,s,t));let f=e.docView.nearestDesc(s,!0);return{pos:o,inside:f?f.posAtStart-f.border:-1}}function aM(e){return e.top<e.bottom||e.left<e.right}function Um(e,t){let n=e.getClientRects();if(n.length){let r=n[t<0?0:n.length-1];if(aM(r))return r}return Array.prototype.find.call(n,aM)||e.getBoundingClientRect()}const fAe=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function jY(e,t,n){let{node:r,offset:i,atom:a}=e.docView.domFromPos(t,n<0?-1:1),s=Bw||hc;if(r.nodeType==3)if(s&&(fAe.test(r.nodeValue)||(n<0?!i:i==r.nodeValue.length))){let f=Um(Hh(r,i,i),n);if(hc&&i&&/\s/.test(r.nodeValue[i-1])&&i<r.nodeValue.length){let m=Um(Hh(r,i-1,i-1),-1);if(m.top==f.top){let y=Um(Hh(r,i,i+1),-1);if(y.top!=f.top)return I2(y,y.left<m.left)}}return f}else{let f=i,m=i,y=n<0?1:-1;return n<0&&!i?(m++,y=-1):n>=0&&i==r.nodeValue.length?(f--,y=1):n<0?f--:m++,I2(Um(Hh(r,f,m),y),y<0)}if(!e.state.doc.resolve(t-(a||0)).parent.inlineContent){if(a==null&&i&&(n<0||i==lc(r))){let f=r.childNodes[i-1];if(f.nodeType==1)return I8(f.getBoundingClientRect(),!1)}if(a==null&&i<lc(r)){let f=r.childNodes[i];if(f.nodeType==1)return I8(f.getBoundingClientRect(),!0)}return I8(r.getBoundingClientRect(),n>=0)}if(a==null&&i&&(n<0||i==lc(r))){let f=r.childNodes[i-1],m=f.nodeType==3?Hh(f,lc(f)-(s?0:1)):f.nodeType==1&&(f.nodeName!="BR"||!f.nextSibling)?f:null;if(m)return I2(Um(m,1),!1)}if(a==null&&i<lc(r)){let f=r.childNodes[i];for(;f.pmViewDesc&&f.pmViewDesc.ignoreForCoords;)f=f.nextSibling;let m=f?f.nodeType==3?Hh(f,0,s?0:1):f.nodeType==1?f:null:null;if(m)return I2(Um(m,-1),!0)}return I2(Um(r.nodeType==3?Hh(r):r,-n),n>=0)}function I2(e,t){if(e.width==0)return e;let n=t?e.left:e.right;return{top:e.top,bottom:e.bottom,left:n,right:n}}function I8(e,t){if(e.height==0)return e;let n=t?e.top:e.bottom;return{top:n,bottom:n,left:e.left,right:e.right}}function UY(e,t,n){let r=e.state,i=e.root.activeElement;r!=t&&e.updateState(t),i!=e.dom&&e.focus();try{return n()}finally{r!=t&&e.updateState(r),i!=e.dom&&i&&i.focus()}}function hAe(e,t,n){let r=t.selection,i=n=="up"?r.$from:r.$to;return UY(e,t,()=>{let{node:a}=e.docView.domFromPos(i.pos,n=="up"?-1:1);for(;;){let o=e.docView.nearestDesc(a,!0);if(!o)break;if(o.node.isBlock){a=o.contentDOM||o.dom;break}a=o.dom.parentNode}let s=jY(e,i.pos,1);for(let o=a.firstChild;o;o=o.nextSibling){let f;if(o.nodeType==1)f=o.getClientRects();else if(o.nodeType==3)f=Hh(o,0,o.nodeValue.length).getClientRects();else continue;for(let m=0;m<f.length;m++){let y=f[m];if(y.bottom>y.top+1&&(n=="up"?s.top-y.top>(y.bottom-s.top)*2:y.bottom-s.bottom>(s.bottom-y.top)*2))return!1}}return!0})}const pAe=/[\u0590-\u08ac]/;function mAe(e,t,n){let{$head:r}=t.selection;if(!r.parent.isTextblock)return!1;let i=r.parentOffset,a=!i,s=i==r.parent.content.size,o=e.domSelection();return o?!pAe.test(r.parent.textContent)||!o.modify?n=="left"||n=="backward"?a:s:UY(e,t,()=>{let{focusNode:f,focusOffset:m,anchorNode:y,anchorOffset:b}=e.domSelectionRange(),T=o.caretBidiLevel;o.modify("move",n,"character");let x=r.depth?e.docView.domAfterPos(r.before()):e.dom,{focusNode:$,focusOffset:A}=e.domSelectionRange(),N=$&&!x.contains($.nodeType==1?$:$.parentNode)||f==$&&m==A;try{o.collapse(y,b),f&&(f!=y||m!=b)&&o.extend&&o.extend(f,m)}catch{}return T!=null&&(o.caretBidiLevel=T),N}):r.pos==r.start()||r.pos==r.end()}let lF=null,uF=null,cF=!1;function gAe(e,t,n){return lF==t&&uF==n?cF:(lF=t,uF=n,cF=n=="up"||n=="down"?hAe(e,t,n):mAe(e,t,n))}const pc=0,dF=1,Ty=2,xd=3;class Fw{constructor(t,n,r,i){this.parent=t,this.children=n,this.dom=r,this.contentDOM=i,this.dirty=pc,r.pmViewDesc=this}matchesWidget(t){return!1}matchesMark(t){return!1}matchesNode(t,n,r){return!1}matchesHack(t){return!1}parseRule(t){return null}stopEvent(t){return!1}get size(){let t=0;for(let n=0;n<this.children.length;n++)t+=this.children[n].size;return t}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let t=0;t<this.children.length;t++)this.children[t].destroy()}posBeforeChild(t){for(let n=0,r=this.posAtStart;;n++){let i=this.children[n];if(i==t)return r;r+=i.size}}get posBefore(){return this.parent.posBeforeChild(this)}get posAtStart(){return this.parent?this.parent.posBeforeChild(this)+this.border:0}get posAfter(){return this.posBefore+this.size}get posAtEnd(){return this.posAtStart+this.size-2*this.border}localPosFromDOM(t,n,r){if(this.contentDOM&&this.contentDOM.contains(t.nodeType==1?t:t.parentNode))if(r<0){let a,s;if(t==this.contentDOM)a=t.childNodes[n-1];else{for(;t.parentNode!=this.contentDOM;)t=t.parentNode;a=t.previousSibling}for(;a&&!((s=a.pmViewDesc)&&s.parent==this);)a=a.previousSibling;return a?this.posBeforeChild(s)+s.size:this.posAtStart}else{let a,s;if(t==this.contentDOM)a=t.childNodes[n];else{for(;t.parentNode!=this.contentDOM;)t=t.parentNode;a=t.nextSibling}for(;a&&!((s=a.pmViewDesc)&&s.parent==this);)a=a.nextSibling;return a?this.posBeforeChild(s):this.posAtEnd}let i;if(t==this.dom&&this.contentDOM)i=n>gs(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))i=t.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(n==0)for(let a=t;;a=a.parentNode){if(a==this.dom){i=!1;break}if(a.previousSibling)break}if(i==null&&n==t.childNodes.length)for(let a=t;;a=a.parentNode){if(a==this.dom){i=!0;break}if(a.nextSibling)break}}return i??r>0?this.posAtEnd:this.posAtStart}nearestDesc(t,n=!1){for(let r=!0,i=t;i;i=i.parentNode){let a=this.getDesc(i),s;if(a&&(!n||a.node))if(r&&(s=a.nodeDOM)&&!(s.nodeType==1?s.contains(t.nodeType==1?t:t.parentNode):s==t))r=!1;else return a}}getDesc(t){let n=t.pmViewDesc;for(let r=n;r;r=r.parent)if(r==this)return n}posFromDOM(t,n,r){for(let i=t;i;i=i.parentNode){let a=this.getDesc(i);if(a)return a.localPosFromDOM(t,n,r)}return-1}descAt(t){for(let n=0,r=0;n<this.children.length;n++){let i=this.children[n],a=r+i.size;if(r==t&&a!=r){for(;!i.border&&i.children.length;)for(let s=0;s<i.children.length;s++){let o=i.children[s];if(o.size){i=o;break}}return i}if(t<a)return i.descAt(t-r-i.border);r=a}}domFromPos(t,n){if(!this.contentDOM)return{node:this.dom,offset:0,atom:t+1};let r=0,i=0;for(let a=0;r<this.children.length;r++){let s=this.children[r],o=a+s.size;if(o>t||s instanceof WY){i=t-a;break}a=o}if(i)return this.children[r].domFromPos(i-this.children[r].border,n);for(let a;r&&!(a=this.children[r-1]).size&&a instanceof HY&&a.side>=0;r--);if(n<=0){let a,s=!0;for(;a=r?this.children[r-1]:null,!(!a||a.dom.parentNode==this.contentDOM);r--,s=!1);return a&&n&&s&&!a.border&&!a.domAtom?a.domFromPos(a.size,n):{node:this.contentDOM,offset:a?gs(a.dom)+1:0}}else{let a,s=!0;for(;a=r<this.children.length?this.children[r]:null,!(!a||a.dom.parentNode==this.contentDOM);r++,s=!1);return a&&s&&!a.border&&!a.domAtom?a.domFromPos(0,n):{node:this.contentDOM,offset:a?gs(a.dom):this.contentDOM.childNodes.length}}}parseRange(t,n,r=0){if(this.children.length==0)return{node:this.contentDOM,from:t,to:n,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let i=-1,a=-1;for(let s=r,o=0;;o++){let f=this.children[o],m=s+f.size;if(i==-1&&t<=m){let y=s+f.border;if(t>=y&&n<=m-f.border&&f.node&&f.contentDOM&&this.contentDOM.contains(f.contentDOM))return f.parseRange(t,n,y);t=s;for(let b=o;b>0;b--){let T=this.children[b-1];if(T.size&&T.dom.parentNode==this.contentDOM&&!T.emptyChildAt(1)){i=gs(T.dom)+1;break}t-=T.size}i==-1&&(i=0)}if(i>-1&&(m>n||o==this.children.length-1)){n=m;for(let y=o+1;y<this.children.length;y++){let b=this.children[y];if(b.size&&b.dom.parentNode==this.contentDOM&&!b.emptyChildAt(-1)){a=gs(b.dom);break}n+=b.size}a==-1&&(a=this.contentDOM.childNodes.length);break}s=m}return{node:this.contentDOM,from:t,to:n,fromOffset:i,toOffset:a}}emptyChildAt(t){if(this.border||!this.contentDOM||!this.children.length)return!1;let n=this.children[t<0?0:this.children.length-1];return n.size==0||n.emptyChildAt(t)}domAfterPos(t){let{node:n,offset:r}=this.domFromPos(t,0);if(n.nodeType!=1||r==n.childNodes.length)throw new RangeError("No node after pos "+t);return n.childNodes[r]}setSelection(t,n,r,i=!1){let a=Math.min(t,n),s=Math.max(t,n);for(let x=0,$=0;x<this.children.length;x++){let A=this.children[x],N=$+A.size;if(a>$&&s<N)return A.setSelection(t-$-A.border,n-$-A.border,r,i);$=N}let o=this.domFromPos(t,t?-1:1),f=n==t?o:this.domFromPos(n,n?-1:1),m=r.root.getSelection(),y=r.domSelectionRange(),b=!1;if((hc||qs)&&t==n){let{node:x,offset:$}=o;if(x.nodeType==3){if(b=!!($&&x.nodeValue[$-1]==`
839`),b&&$==x.nodeValue.length)for(let A=x,N;A;A=A.parentNode){if(N=A.nextSibling){N.nodeName=="BR"&&(o=f={node:N.parentNode,offset:gs(N)+1});break}let O=A.pmViewDesc;if(O&&O.node&&O.node.isBlock)break}}else{let A=x.childNodes[$-1];b=A&&(A.nodeName=="BR"||A.contentEditable=="false")}}if(hc&&y.focusNode&&y.focusNode!=f.node&&y.focusNode.nodeType==1){let x=y.focusNode.childNodes[y.focusOffset];x&&x.contentEditable=="false"&&(i=!0)}if(!(i||b&&qs)&&r1(o.node,o.offset,y.anchorNode,y.anchorOffset)&&r1(f.node,f.offset,y.focusNode,y.focusOffset))return;let T=!1;if((m.extend||t==n)&&!(b&&hc)){m.collapse(o.node,o.offset);try{t!=n&&m.extend(f.node,f.offset),T=!0}catch{}}if(!T){if(t>n){let $=o;o=f,f=$}let x=document.createRange();x.setEnd(f.node,f.offset),x.setStart(o.node,o.offset),m.removeAllRanges(),m.addRange(x)}}ignoreMutation(t){return!this.contentDOM&&t.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(t,n){for(let r=0,i=0;i<this.children.length;i++){let a=this.children[i],s=r+a.size;if(r==s?t<=s&&n>=r:t<s&&n>r){let o=r+a.border,f=s-a.border;if(t>=o&&n<=f){this.dirty=t==r||n==s?Ty:dF,t==o&&n==f&&(a.contentLost||a.dom.parentNode!=this.contentDOM)?a.dirty=xd:a.markDirty(t-o,n-o);return}
vendor: 9,359 bytes, line 839
839else a.dirty=a.dom==a.contentDOM&&a.dom.parentNode==this.contentDOM&&!a.children.length?Ty:xd}r=s}this.dirty=Ty}markParentsDirty(){let t=1;for(let n=this.parent;n;n=n.parent,t++){let r=t==1?Ty:dF;n.dirty<r&&(n.dirty=r)}}get domAtom(){return!1}get ignoreForCoords(){return!1}get ignoreForSelection(){return!1}isText(t){return!1}}class HY extends Fw{constructor(t,n,r,i){let a,s=n.type.toDOM;if(typeof s=="function"&&(s=s(r,()=>{if(!a)return i;if(a.parent)return a.parent.posBeforeChild(a)})),!n.type.spec.raw){if(s.nodeType!=1){let o=document.createElement("span");o.appendChild(s),s=o}s.hasAttribute("contenteditable")||(s.contentEditable="false"),s.classList.add("ProseMirror-widget")}super(t,[],s,null),this.widget=n,this.widget=n,a=this}matchesWidget(t){return this.dirty==pc&&t.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(t){let n=this.widget.spec.stopEvent;return n?n(t):!1}ignoreMutation(t){return t.type!="selection"||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get ignoreForSelection(){return!!this.widget.type.spec.relaxedSide}get side(){return this.widget.type.side}}class yAe extends Fw{constructor(t,n,r,i){super(t,[],n,null),this.textDOM=r,this.text=i}get size(){return this.text.length}localPosFromDOM(t,n){return t!=this.textDOM?this.posAtStart+(n?this.size:0):this.posAtStart+n}domFromPos(t){return{node:this.textDOM,offset:t}}ignoreMutation(t){return t.type==="characterData"&&t.target.nodeValue==t.oldValue}}class pg extends Fw{constructor(t,n,r,i,a){super(t,[],r,i),this.mark=n,this.spec=a}static create(t,n,r,i){let a=i.nodeViews[n.type.name],s=a&&a(n,i,r);return(!s||!s.dom)&&(s=m1.renderSpec(document,n.type.spec.toDOM(n,r),null,n.attrs)),new pg(t,n,s.dom,s.contentDOM||s.dom,s)}parseRule(){return this.dirty&xd||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(t){return this.dirty!=xd&&this.mark.eq(t)}markDirty(t,n){if(super.markDirty(t,n),this.dirty!=pc){let r=this.parent;for(;!r.node;)r=r.parent;r.dirty<this.dirty&&(r.dirty=this.dirty),this.dirty=pc}}slice(t,n,r){let i=pg.create(this.parent,this.mark,!0,r),a=this.children,s=this.size;n<s&&(a=sM(a,n,s,r)),t>0&&(a=sM(a,0,t,r));for(let o=0;o<a.length;o++)a[o].parent=i;return i.children=a,i}ignoreMutation(t){return this.spec.ignoreMutation?this.spec.ignoreMutation(t):super.ignoreMutation(t)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}}class mg extends Fw{constructor(t,n,r,i,a,s,o){super(t,[],a,s),this.node=n,this.outerDeco=r,this.innerDeco=i,this.nodeDOM=o}static create(t,n,r,i,a,s){let o=a.nodeViews[n.type.name],f,m=o&&o(n,a,()=>{if(!f)return s;if(f.parent)return f.parent.posBeforeChild(f)},r,i),y=m&&m.dom,b=m&&m.contentDOM;if(n.isText){if(!y)y=document.createTextNode(n.text);else if(y.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else y||({dom:y,contentDOM:b}=m1.renderSpec(document,n.type.spec.toDOM(n),null,n.attrs));!b&&!n.isText&&y.nodeName!="BR"&&(y.hasAttribute("contenteditable")||(y.contentEditable="false"),n.type.spec.draggable&&(y.draggable=!0));let T=y;return y=ZY(y,r,n),m?f=new vAe(t,n,r,i,y,b||null,T,m):n.isText?new lk(t,n,r,i,y,T):new mg(t,n,r,i,y,b||null,T)}parseRule(t){if(this.node.type.spec.reparseInView)return null;let n={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&(n.preserveWhitespace="full"),!this.contentDOM)n.getContent=()=>this.node.content;else if(!this.contentLost)n.contentElement=this.contentDOM;else{for(let r=this.children.length-1;r>=0;r--){let i=this.children[r];if(this.dom.contains(i.dom.parentNode)){n.contentElement=i.dom.parentNode;break}}if(!n.contentElement){let r=t&&t.find(i=>i.nodeType==1&&t.indexOf(i.parentNode)<0&&this.dom.contains(i));r?n.contentElement=r:n.getContent=()=>dn.empty}}return n}matchesNode(t,n,r){return this.dirty==pc&&t.eq(this.node)&&eC(n,this.outerDeco)&&r.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(t,n){let r=this.node.inlineContent,i=n,a=t.composing?this.localCompositionInfo(t,n):null,s=a&&a.pos>-1?a:null,o=a&&a.pos<0,f=new bAe(this,s&&s.node,t);SAe(this.node,this.innerDeco,(m,y,b)=>{m.spec.marks?f.syncToMarks(m.spec.marks,r,t,y):m.type.side>=0&&!b&&f.syncToMarks(y==this.node.childCount?Ri.none:this.node.child(y).marks,r,t,y),f.placeWidget(m,t,i)},(m,y,b,T)=>{f.syncToMarks(m.marks,r,t,T);let x;f.findNodeMatch(m,y,b,T)||o&&t.state.selection.from>i&&t.state.selection.to<i+m.nodeSize&&(x=f.findIndexWithChild(a.node))>-1&&f.updateNodeAt(m,y,b,x,t)||f.updateNextNode(m,y,b,t,T,i)||f.addNode(m,y,b,t,i),i+=m.nodeSize}),f.syncToMarks([],r,t,0),this.node.isTextblock&&f.addTextblockHacks(),f.destroyRest(),(f.changed||this.dirty==Ty)&&(s&&this.protectLocalComposition(t,s),GY(this.contentDOM,this.children,t),A_&&CAe(this.dom))}localCompositionInfo(t,n){let{from:r,to:i}=t.state.selection;if(!(t.state.selection instanceof Pr)||r<n||i>n+this.node.content.size)return null;let a=t.input.compositionNode;if(!a||!this.dom.contains(a.parentNode))return null;if(this.node.inlineContent){let s=a.nodeValue,o=TAe(this.node.content,s,r-n,i-n);return o<0?null:{node:a,pos:o,text:s}}else return{node:a,pos:-1,text:""}}protectLocalComposition(t,{node:n,pos:r,text:i}){if(this.getDesc(n))return;let a=n;for(;a.parentNode!=this.contentDOM;a=a.parentNode){for(;a.previousSibling;)a.parentNode.removeChild(a.previousSibling);for(;a.nextSibling;)a.parentNode.removeChild(a.nextSibling);a.pmViewDesc&&(a.pmViewDesc=void 0)}let s=new yAe(this,a,n,i);t.input.compositionNodes.push(s),this.children=sM(this.children,r,r+i.length,t,s)}update(t,n,r,i){return this.dirty==xd||!t.sameMarkup(this.node)?!1:(this.updateInner(t,n,r,i),!0)}updateInner(t,n,r,i){this.updateOuterDeco(n),this.node=t,this.innerDeco=r,this.contentDOM&&this.updateChildren(i,this.posAtStart),this.dirty=pc}updateOuterDeco(t){if(eC(t,this.outerDeco))return;let n=this.nodeDOM.nodeType!=1,r=this.dom;this.dom=YY(this.dom,this.nodeDOM,oM(this.outerDeco,this.node,n),oM(t,this.node,n)),this.dom!=r&&(r.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=t}selectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.nodeDOM.draggable=!0))}deselectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.nodeDOM.removeAttribute("draggable"))}get domAtom(){return this.node.isAtom}}function fF(e,t,n,r,i){ZY(r,t,e);let a=new mg(void 0,e,t,n,r,r,r);return a.contentDOM&&a.updateChildren(i,0),a}class lk extends mg{constructor(t,n,r,i,a,s){super(t,n,r,i,a,null,s)}parseRule(){let t=this.nodeDOM.parentNode;for(;t&&t!=this.dom&&!t.pmIsDeco;)t=t.parentNode;return{skip:t||!0}}update(t,n,r,i){return this.dirty==xd||this.dirty!=pc&&!this.inParent()||!t.sameMarkup(this.node)?!1:(this.updateOuterDeco(n),(this.dirty!=pc||t.text!=this.node.text)&&t.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=t.text,i.trackWrites==this.nodeDOM&&(i.trackWrites=null)),this.node=t,this.dirty=pc,!0)}inParent(){let t=this.parent.contentDOM;for(let n=this.nodeDOM;n;n=n.parentNode)if(n==t)return!0;return!1}domFromPos(t){return{node:this.nodeDOM,offset:t}}localPosFromDOM(t,n,r){return t==this.nodeDOM?this.posAtStart+Math.min(n,this.node.text.length):super.localPosFromDOM(t,n,r)}ignoreMutation(t){return t.type!="characterData"&&t.type!="selection"}slice(t,n,r){let i=this.node.cut(t,n),a=document.createTextNode(i.text);return new lk(this.parent,i,this.outerDeco,this.innerDeco,a,a)}markDirty(t,n){super.markDirty(t,n),this.dom!=this.nodeDOM&&(t==0||n==this.nodeDOM.nodeValue.length)&&(this.dirty=xd)}get domAtom(){return!1}isText(t){return this.node.text==t}}class WY extends Fw{parseRule(){return{ignore:!0}}matchesHack(t){return this.dirty==pc&&this.dom.nodeName==t}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class vAe extends mg{constructor(t,n,r,i,a,s,o,f){super(t,n,r,i,a,s,o),this.spec=f}update(t,n,r,i){if(this.dirty==xd)return!1;if(this.spec.update&&(this.node.type==t.type||this.spec.multiType)){let a=this.spec.update(t,n,r);return a&&this.updateInner(t,n,r,i),a}else return!this.contentDOM&&!t.isLeaf?!1:super.update(t,n,r,i)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(t,n,r,i){this.spec.setSelection?this.spec.setSelection(t,n,r.root):super.setSelection(t,n,r,i)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(t){return this.spec.stopEvent?this.spec.stopEvent(t):!1}ignoreMutation(t){return this.spec.ignoreMutation?this.spec.ignoreMutation(t):super.ignoreMutation(t)}}function GY(e,t,n){let r=e.firstChild,i=!1;for(let a=0;a<t.length;a++){let s=t[a],o=s.dom;if(o.parentNode==e){for(;o!=r;)r=hF(r),i=!0;r=r.nextSibling}else i=!0,e.insertBefore(o,r);if(s instanceof pg){let f=r?r.previousSibling:e.lastChild;GY(s.contentDOM,s.children,n),r=f?f.nextSibling:e.firstChild}}for(;r;)r=hF(r),i=!0;i&&n.trackWrites==e&&(n.trackWrites=null)}const mx=function(e){e&&(this.nodeName=e)};mx.prototype=Object.create(null);const ky=[new mx];
vendor: 4,512 bytes, line 839
839function oM(e,t,n){if(e.length==0)return ky;let r=n?ky[0]:new mx,i=[r];for(let a=0;a<e.length;a++){let s=e[a].type.attrs;if(s){s.nodeName&&i.push(r=new mx(s.nodeName));for(let o in s){let f=s[o];f!=null&&(n&&i.length==1&&i.push(r=new mx(t.isInline?"span":"div")),o=="class"?r.class=(r.class?r.class+" ":"")+f:o=="style"?r.style=(r.style?r.style+";":"")+f:o!="nodeName"&&(r[o]=f))}}}return i}function YY(e,t,n,r){if(n==ky&&r==ky)return t;let i=t;for(let a=0;a<r.length;a++){let s=r[a],o=n[a];if(a){let f;o&&o.nodeName==s.nodeName&&i!=e&&(f=i.parentNode)&&f.nodeName.toLowerCase()==s.nodeName||(f=document.createElement(s.nodeName),f.pmIsDeco=!0,f.appendChild(i),o=ky[0]),i=f}_Ae(i,o||ky[0],s)}return i}function _Ae(e,t,n){for(let r in t)r!="class"&&r!="style"&&r!="nodeName"&&!(r in n)&&e.removeAttribute(r);for(let r in n)r!="class"&&r!="style"&&r!="nodeName"&&n[r]!=t[r]&&e.setAttribute(r,n[r]);if(t.class!=n.class){let r=t.class?t.class.split(" ").filter(Boolean):[],i=n.class?n.class.split(" ").filter(Boolean):[];for(let a=0;a<r.length;a++)i.indexOf(r[a])==-1&&e.classList.remove(r[a]);for(let a=0;a<i.length;a++)r.indexOf(i[a])==-1&&e.classList.add(i[a]);e.classList.length==0&&e.removeAttribute("class")}if(t.style!=n.style){if(t.style){let r=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g,i;for(;i=r.exec(t.style);)e.style.removeProperty(i[1])}n.style&&(e.style.cssText+=n.style)}}function ZY(e,t,n){return YY(e,e,ky,oM(t,n,e.nodeType!=1))}function eC(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].type.eq(t[n].type))return!1;return!0}function hF(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}class bAe{constructor(t,n,r){this.lock=n,this.view=r,this.index=0,this.stack=[],this.changed=!1,this.top=t,this.preMatch=xAe(t.node.content,t)}destroyBetween(t,n){if(t!=n){for(let r=t;r<n;r++)this.top.children[r].destroy();this.top.children.splice(t,n-t),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(t,n,r,i){let a=0,s=this.stack.length>>1,o=Math.min(s,t.length);for(;a<o&&(a==s-1?this.top:this.stack[a+1<<1]).matchesMark(t[a])&&t[a].type.spec.spanning!==!1;)a++;for(;a<s;)this.destroyRest(),this.top.dirty=pc,this.index=this.stack.pop(),this.top=this.stack.pop(),s--;for(;s<t.length;){this.stack.push(this.top,this.index+1);let f=-1,m=this.top.children.length;i<this.preMatch.index&&(m=Math.min(this.index+3,m));for(let y=this.index;y<m;y++){let b=this.top.children[y];if(b.matchesMark(t[s])&&!this.isLocked(b.dom)){f=y;break}}if(f<0&&this.index<this.top.children.length){let y=this.top.children[this.index];y instanceof pg&&y.dirty!=xd&&y.mark.type==t[s].type&&y.spec.update&&!this.isLocked(y.dom)&&y.spec.update(t[s])&&(y.mark=t[s],f=this.index,this.changed=!0)}if(f>-1)f>this.index&&(this.changed=!0,this.destroyBetween(this.index,f)),this.top=this.top.children[this.index];else{let y=pg.create(this.top,t[s],n,r);this.top.children.splice(this.index,0,y),this.top=y,this.changed=!0}this.index=0,s++}}findNodeMatch(t,n,r,i){let a=-1,s;if(i>=this.preMatch.index&&(s=this.preMatch.matches[i-this.preMatch.index]).parent==this.top&&s.matchesNode(t,n,r))a=this.top.children.indexOf(s,this.index);else for(let o=this.index,f=Math.min(this.top.children.length,o+5);o<f;o++){let m=this.top.children[o];if(m.matchesNode(t,n,r)&&!this.preMatch.matched.has(m)){a=o;break}}return a<0?!1:(this.destroyBetween(this.index,a),this.index++,!0)}updateNodeAt(t,n,r,i,a){let s=this.top.children[i];return s.dirty==xd&&s.dom==s.contentDOM&&(s.dirty=Ty),s.update(t,n,r,a)?(this.destroyBetween(this.index,i),this.index++,!0):!1}findIndexWithChild(t){for(;;){let n=t.parentNode;if(!n)return-1;if(n==this.top.contentDOM){let r=t.pmViewDesc;if(r){for(let i=this.index;i<this.top.children.length;i++)if(this.top.children[i]==r)return i}return-1}t=n}}updateNextNode(t,n,r,i,a,s){for(let o=this.index;o<this.top.children.length;o++){let f=this.top.children[o];if(f instanceof mg){let m=this.preMatch.matched.get(f);if(m!=null&&m!=a)return!1;let y=f.dom,b,T=this.isLocked(y)&&!(t.isText&&f.node&&f.node.isText&&f.nodeDOM.nodeValue==t.text&&f.dirty!=xd&&eC(n,f.outerDeco));if(!T&&f.update(t,n,r,i))return this.destroyBetween(this.index,o),f.dom!=y&&(this.changed=!0),this.index++,!0;if(!T&&(b=this.recreateWrapper(f,t,n,r,i,s)))return this.destroyBetween(this.index,o),this.top.children[this.index]=b,b.contentDOM&&(b.dirty=Ty,b.updateChildren(i,s+1),b.dirty=pc),this.changed=!0,this.index++,!0;break}}return!1}
vendor: 14,361 bytes, lines 839-842
839recreateWrapper(t,n,r,i,a,s){if(t.dirty||n.isAtom||!t.children.length||!t.node.content.eq(n.content)||!eC(r,t.outerDeco)||!i.eq(t.innerDeco))return null;let o=mg.create(this.top,n,r,i,a,s);if(o.contentDOM){o.children=t.children,t.children=[];for(let f of o.children)f.parent=o}return t.destroy(),o}addNode(t,n,r,i,a){let s=mg.create(this.top,t,n,r,i,a);s.contentDOM&&s.updateChildren(i,a+1),this.top.children.splice(this.index++,0,s),this.changed=!0}placeWidget(t,n,r){let i=this.index<this.top.children.length?this.top.children[this.index]:null;if(i&&i.matchesWidget(t)&&(t==i.widget||!i.widget.type.toDOM.parentNode))this.index++;else{let a=new HY(this.top,t,n,r);this.top.children.splice(this.index++,0,a),this.changed=!0}}addTextblockHacks(){let t=this.top.children[this.index-1],n=this.top;for(;t instanceof pg;)n=t,t=n.children[n.children.length-1];(!t||!(t instanceof lk)||/\n$/.test(t.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(t.node.text))&&((qs||ws)&&t&&t.dom.contentEditable=="false"&&this.addHackNode("IMG",n),this.addHackNode("BR",this.top))}addHackNode(t,n){if(n==this.top&&this.index<n.children.length&&n.children[this.index].matchesHack(t))this.index++;else{let r=document.createElement(t);t=="IMG"&&(r.className="ProseMirror-separator",r.alt=""),t=="BR"&&(r.className="ProseMirror-trailingBreak");let i=new WY(this.top,[],r,null);n!=this.top?n.children.push(i):n.children.splice(this.index++,0,i),this.changed=!0}}isLocked(t){return this.lock&&(t==this.lock||t.nodeType==1&&t.contains(this.lock.parentNode))}}function xAe(e,t){let n=t,r=n.children.length,i=e.childCount,a=new Map,s=[];e:for(;i>0;){let o;for(;;)if(r){let m=n.children[r-1];if(m instanceof pg)n=m,r=m.children.length;else{o=m,r--;break}}else{if(n==t)break e;r=n.parent.children.indexOf(n),n=n.parent}let f=o.node;if(f){if(f!=e.child(i-1))break;--i,a.set(o,i),s.push(o)}}return{index:i,matched:a,matches:s.reverse()}}function wAe(e,t){return e.type.side-t.type.side}function SAe(e,t,n,r){let i=t.locals(e),a=0;if(i.length==0){for(let m=0;m<e.childCount;m++){let y=e.child(m);r(y,i,t.forChild(a,y),m),a+=y.nodeSize}return}let s=0,o=[],f=null;for(let m=0;;){let y,b;for(;s<i.length&&i[s].to==a;){let N=i[s++];N.widget&&(y?(b||(b=[y])).push(N):y=N)}if(y)if(b){b.sort(wAe);for(let N=0;N<b.length;N++)n(b[N],m,!!f)}else n(y,m,!!f);let T,x;if(f)x=-1,T=f,f=null;else if(m<e.childCount)x=m,T=e.child(m++);else break;for(let N=0;N<o.length;N++)o[N].to<=a&&o.splice(N--,1);for(;s<i.length&&i[s].from<=a&&i[s].to>a;)o.push(i[s++]);let $=a+T.nodeSize;if(T.isText){let N=$;s<i.length&&i[s].from<N&&(N=i[s].from);for(let O=0;O<o.length;O++)o[O].to<N&&(N=o[O].to);N<$&&(f=T.cut(N-a),T=T.cut(0,N-a),$=N,x=-1)}else for(;s<i.length&&i[s].to<$;)s++;let A=T.isInline&&!T.isLeaf?o.filter(N=>!N.inline):o.slice();r(T,A,t.forChild(a,T),x),a=$}}function CAe(e){if(e.nodeName=="UL"||e.nodeName=="OL"){let t=e.style.cssText;e.style.cssText=t+"; list-style: square !important",window.getComputedStyle(e).listStyle,e.style.cssText=t}}function TAe(e,t,n,r){for(let i=0,a=0;i<e.childCount&&a<=r;){let s=e.child(i++),o=a;if(a+=s.nodeSize,!s.isText)continue;let f=s.text;for(;i<e.childCount;){let m=e.child(i++);if(a+=m.nodeSize,!m.isText)break;f+=m.text}if(a>=n){if(a>=r&&f.slice(r-t.length-o,r-o)==t)return r-t.length;let m=o<r?f.lastIndexOf(t,r-o-1):-1;if(m>=0&&m+t.length+o>=n)return o+m;if(n==r&&f.length>=r+t.length-o&&f.slice(r-o,r-o+t.length)==t)return r}}return-1}function sM(e,t,n,r,i){let a=[];for(let s=0,o=0;s<e.length;s++){let f=e[s],m=o,y=o+=f.size;m>=n||y<=t?a.push(f):(m<t&&a.push(f.slice(0,t-m,r)),i&&(a.push(i),i=void 0),y>n&&a.push(f.slice(n-m,f.size,r)))}return a}function r7(e,t=null){let n=e.domSelectionRange(),r=e.state.doc;if(!n.focusNode)return null;let i=e.docView.nearestDesc(n.focusNode),a=i&&i.size==0,s=e.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(s<0)return null;let o=r.resolve(s),f,m;if(sk(n)){for(f=s;i&&!i.node;)i=i.parent;let b=i.node;if(i&&b.isAtom&&ar.isSelectable(b)&&i.parent&&!(b.isInline&&JMe(n.focusNode,n.focusOffset,i.dom))){let T=i.posBefore;m=new ar(s==T?o:r.resolve(T))}}else{if(n instanceof e.dom.ownerDocument.defaultView.Selection&&n.rangeCount>1){let b=s,T=s;for(let x=0;x<n.rangeCount;x++){let $=n.getRangeAt(x);b=Math.min(b,e.docView.posFromDOM($.startContainer,$.startOffset,1)),T=Math.max(T,e.docView.posFromDOM($.endContainer,$.endOffset,-1))}if(b<0)return null;[f,s]=T==e.state.selection.anchor?[T,b]:[b,T],o=r.resolve(s)}else f=e.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(f<0)return null}let y=r.resolve(f);if(!m){let b=t=="pointer"||e.state.selection.head<o.pos&&!a?1:-1;m=i7(e,y,o,b)}return m}function KY(e){return e.editable?e.hasFocus():JY(e)&&document.activeElement&&document.activeElement.contains(e.dom)}function mp(e,t=!1){let n=e.state.selection;if(XY(e,n),!KY(e))return;let r=e.input.mouseDown;if(!t&&ws&&r){let i=e.domSelectionRange(),a=e.domObserver.currentSelection;if(i.anchorNode&&a.anchorNode&&r1(i.anchorNode,i.anchorOffset,a.anchorNode,a.anchorOffset)&&r.delaySelUpdate()){e.domObserver.setCurSelection();return}}if(e.domObserver.disconnectSelection(),e.cursorWrapper)EAe(e);else{let{anchor:i,head:a}=n,s,o;pF&&!(n instanceof Pr)&&(n.$from.parent.inlineContent||(s=mF(e,n.from)),!n.empty&&!n.$from.parent.inlineContent&&(o=mF(e,n.to))),e.docView.setSelection(i,a,e,t),pF&&(s&&gF(s),o&&gF(o)),n.visible?e.dom.classList.remove("ProseMirror-hideselection"):(e.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&kAe(e))}e.domObserver.setCurSelection(),e.domObserver.connectSelection()}const pF=qs||ws&&BY<63;function mF(e,t){let{node:n,offset:r}=e.docView.domFromPos(t,0),i=r<n.childNodes.length?n.childNodes[r]:null,a=r?n.childNodes[r-1]:null;if(qs&&i&&i.contentEditable=="false")return D8(i);if((!i||i.contentEditable=="false")&&(!a||a.contentEditable=="false")){if(i)return D8(i);if(a)return D8(a)}}function D8(e){return e.contentEditable="true",qs&&e.draggable&&(e.draggable=!1,e.wasDraggable=!0),e}function gF(e){e.contentEditable="false",e.wasDraggable&&(e.draggable=!0,e.wasDraggable=null)}function kAe(e){let t=e.dom.ownerDocument;t.removeEventListener("selectionchange",e.input.hideSelectionGuard);let n=e.domSelectionRange(),r=n.anchorNode,i=n.anchorOffset;t.addEventListener("selectionchange",e.input.hideSelectionGuard=()=>{(n.anchorNode!=r||n.anchorOffset!=i)&&(t.removeEventListener("selectionchange",e.input.hideSelectionGuard),setTimeout(()=>{(!KY(e)||e.state.selection.visible)&&e.dom.classList.remove("ProseMirror-hideselection")},20))})}function EAe(e){let t=e.domSelection();if(!t)return;let n=e.cursorWrapper.dom,r=n.nodeName=="IMG";r?t.collapse(n.parentNode,gs(n)+1):t.collapse(n,0),!r&&!e.state.selection.visible&&Ll&&hg<=11&&(n.disabled=!0,n.disabled=!1)}function XY(e,t){if(t instanceof ar){let n=e.docView.descAt(t.from);n!=e.lastSelectedViewDesc&&(yF(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else yF(e)}function yF(e){e.lastSelectedViewDesc&&(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),e.lastSelectedViewDesc=void 0)}function i7(e,t,n,r){return e.someProp("createSelectionBetween",i=>i(e,t,n))||Pr.between(t,n,r)}function vF(e){return e.editable&&!e.hasFocus()?!1:JY(e)}function JY(e){let t=e.domSelectionRange();if(!t.anchorNode)return!1;try{return e.dom.contains(t.anchorNode.nodeType==3?t.anchorNode.parentNode:t.anchorNode)&&(e.editable||e.dom.contains(t.focusNode.nodeType==3?t.focusNode.parentNode:t.focusNode))}catch{return!1}}function PAe(e){let t=e.docView.domFromPos(e.state.selection.anchor,0),n=e.domSelectionRange();return r1(t.node,t.offset,n.anchorNode,n.anchorOffset)}function lM(e,t){let{$anchor:n,$head:r}=e.selection,i=t>0?n.max(r):n.min(r),a=i.parent.inlineContent?i.depth?e.doc.resolve(t>0?i.after():i.before()):null:i;return a&&Wr.findFrom(a,t)}function Ym(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function _F(e,t,n){let r=e.state.selection;if(r instanceof Pr)if(n.indexOf("s")>-1){let{$head:i}=r,a=i.textOffset?null:t<0?i.nodeBefore:i.nodeAfter;if(!a||a.isText||!a.isLeaf)return!1;let s=e.state.doc.resolve(i.pos+a.nodeSize*(t<0?-1:1));return Ym(e,new Pr(r.$anchor,s))}else if(r.empty){if(e.endOfTextblock(t>0?"forward":"backward")){let i=lM(e.state,t);return i&&i instanceof ar?Ym(e,i):!1}else if(!(ac&&n.indexOf("m")>-1)){let i=r.$head,a=i.textOffset?null:t<0?i.nodeBefore:i.nodeAfter,s;if(!a||a.isText)return!1;let o=t<0?i.pos-a.nodeSize:i.pos;return a.isAtom||(s=e.docView.descAt(o))&&!s.contentDOM?ar.isSelectable(a)?Ym(e,new ar(t<0?e.state.doc.resolve(i.pos-a.nodeSize):i)):Bw?Ym(e,new Pr(e.state.doc.resolve(t<0?o:o+a.nodeSize))):!1:!1}}else return!1;else{if(r instanceof ar&&r.node.isInline)return Ym(e,new Pr(t>0?r.$to:r.$from));{let i=lM(e.state,t);return i?Ym(e,i):!1}}}function tC(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function gx(e,t){let n=e.pmViewDesc;return n?n.size==0&&(t<0||e.nextSibling||e.nodeName!="BR"):e.nodeType==1&&e.contentEditable=="false"}function Lv(e,t){return t<0?$Ae(e):MAe(e)}function $Ae(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let i,a,s=!1;for(hc&&n.nodeType==1&&r<tC(n)&&gx(n.childNodes[r],-1)&&(s=!0);;)if(r>0){if(n.nodeType!=1)break;{let o=n.childNodes[r-1];if(gx(o,-1))i=n,a=--r;else if(o.nodeType==3)n=o,r=n.nodeValue.length;else break}}else{if(QY(n))break;{let o=n.previousSibling;for(;o&&gx(o,-1);)i=n.parentNode,a=gs(o),o=o.previousSibling;if(o)n=o,r=tC(n);else{if(n=n.parentNode,n==e.dom)break;r=0}}}s?uM(e,n,r):i&&uM(e,i,a)}function MAe(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let i=tC(n),a,s;for(;;)if(r<i){if(n.nodeType!=1)break;let o=n.childNodes[r];if(gx(o,1))a=n,s=++r;else break}else{if(QY(n))break;{let o=n.nextSibling;for(;o&&gx(o,1);)a=o.parentNode,s=gs(o)+1,o=o.nextSibling;if(o)n=o,r=0,i=tC(n);else{if(n=n.parentNode,n==e.dom)break;r=i=0}}}a&&uM(e,a,s)}function QY(e){let t=e.pmViewDesc;return t&&t.node&&t.node.isBlock}function AAe(e,t){for(;e&&t==e.childNodes.length&&!Rw(e);)t=gs(e)+1,e=e.parentNode;for(;e&&t<e.childNodes.length;){let n=e.childNodes[t];if(n.nodeType==3)return n;if(n.nodeType==1&&n.contentEditable=="false")break;e=n,t=0}}function IAe(e,t){for(;e&&!t&&!Rw(e);)t=gs(e),e=e.parentNode;for(;e&&t;){let n=e.childNodes[t-1];if(n.nodeType==3)return n;if(n.nodeType==1&&n.contentEditable=="false")break;e=n,t=e.childNodes.length}}function uM(e,t,n){if(t.nodeType!=3){let a,s;(s=AAe(t,n))?(t=s,n=0):(a=IAe(t,n))&&(t=a,n=a.nodeValue.length)}let r=e.domSelection();if(!r)return;if(sk(r)){let a=document.createRange();a.setEnd(t,n),a.setStart(t,n),r.removeAllRanges(),r.addRange(a)}else r.extend&&r.extend(t,n);e.domObserver.setCurSelection();let{state:i}=e;setTimeout(()=>{e.state==i&&mp(e)},50)}function bF(e,t){let n=e.state.doc.resolve(t);if(!(ws||FY)&&n.parent.inlineContent){let i=e.coordsAtPos(t);if(t>n.start()){let a=e.coordsAtPos(t-1),s=(a.top+a.bottom)/2;if(s>i.top&&s<i.bottom&&Math.abs(a.left-i.left)>1)return a.left<i.left?"ltr":"rtl"}if(t<n.end()){let a=e.coordsAtPos(t+1),s=(a.top+a.bottom)/2;if(s>i.top&&s<i.bottom&&Math.abs(a.left-i.left)>1)return a.left>i.left?"ltr":"rtl"}}return getComputedStyle(e.dom).direction=="rtl"?"rtl":"ltr"}function xF(e,t,n){let r=e.state.selection;if(r instanceof Pr&&!r.empty||n.indexOf("s")>-1||ac&&n.indexOf("m")>-1)return!1;let{$from:i,$to:a}=r;if(!i.parent.inlineContent||e.endOfTextblock(t<0?"up":"down")){let s=lM(e.state,t);if(s&&s instanceof ar)return Ym(e,s)}if(!i.parent.inlineContent){let s=t<0?i:a,o=r instanceof gu?Wr.near(s,t):Wr.findFrom(s,t);return o?Ym(e,o):!1}return!1}function wF(e,t){if(!(e.state.selection instanceof Pr))return!0;let{$head:n,$anchor:r,empty:i}=e.state.selection;if(!n.sameParent(r))return!0;if(!i)return!1;if(e.endOfTextblock(t>0?"forward":"backward"))return!0;let a=!n.textOffset&&(t<0?n.nodeBefore:n.nodeAfter);if(a&&!a.isText){let s=e.state.tr;return t<0?s.delete(n.pos-a.nodeSize,n.pos):s.delete(n.pos,n.pos+a.nodeSize),e.dispatch(s),!0}return!1}function SF(e,t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function DAe(e){if(!qs||e.state.selection.$head.parentOffset>0)return!1;let{focusNode:t,focusOffset:n}=e.domSelectionRange();if(t&&t.nodeType==1&&n==0&&t.firstChild&&t.firstChild.contentEditable=="false"){let r=t.firstChild;SF(e,r,"true"),setTimeout(()=>SF(e,r,"false"),20)}return!1}function LAe(e){let t="";return e.ctrlKey&&(t+="c"),e.metaKey&&(t+="m"),e.altKey&&(t+="a"),e.shiftKey&&(t+="s"),t}function OAe(e,t){let n=t.keyCode,r=LAe(t);if(n==8||ac&&n==72&&r=="c")return wF(e,-1)||Lv(e,-1);if(n==46&&!t.shiftKey||ac&&n==68&&r=="c")return wF(e,1)||Lv(e,1);if(n==13||n==27)return!0;if(n==37||ac&&n==66&&r=="c"){let i=n==37?bF(e,e.state.selection.from)=="ltr"?-1:1:-1;return _F(e,i,r)||Lv(e,i)}else if(n==39||ac&&n==70&&r=="c"){let i=n==39?bF(e,e.state.selection.from)=="ltr"?1:-1:1;return _F(e,i,r)||Lv(e,i)}else{if(n==38||ac&&n==80&&r=="c")return xF(e,-1,r)||Lv(e,-1);if(n==40||ac&&n==78&&r=="c")return DAe(e)||xF(e,1,r)||Lv(e,1);if(r==(ac?"m":"c")&&(n==66||n==73||n==89||n==90))return!0}return!1}function a7(e,t){e.someProp("transformCopied",x=>{t=x(t,e)});let n=[],{content:r,openStart:i,openEnd:a}=t;for(;i>1&&a>1&&r.childCount==1&&r.firstChild.childCount==1;){i--,a--;let x=r.firstChild;n.push(x.type.name,x.attrs!=x.type.defaultAttrs?x.attrs:null),r=x.content}let s=e.someProp("clipboardSerializer")||m1.fromSchema(e.state.schema),o=aZ(),f=o.createElement("div");f.appendChild(s.serializeFragment(r,{document:o}));let m=f.firstChild,y,b=0;for(;m&&m.nodeType==1&&(y=iZ[m.nodeName.toLowerCase()]);){for(let x=y.length-1;x>=0;x--){let $=o.createElement(y[x]);for(;f.firstChild;)$.appendChild(f.firstChild);f.appendChild($),b++}m=f.firstChild}m&&m.nodeType==1&&m.setAttribute("data-pm-slice",`${i} ${a}${b?` -${b}`:""} ${JSON.stringify(n)}`);let T=e.someProp("clipboardTextSerializer",x=>x(t,e))||t.content.textBetween(0,t.content.size,`
840
841`);return{dom:f,text:T,slice:t}}function eZ(e,t,n,r,i){let a=i.parent.type.spec.code,s,o;if(!n&&!t)return null;let f=!!t&&(r||a||!n);if(f){if(e.someProp("transformPastedText",T=>{t=T(t,a||r,e)}),a)return o=new Ln(dn.from(e.state.schema.text(t.replace(/\r\n?/g,`
842`))),0,0),e.someProp("transformPasted",T=>{o=T(o,e,!0)}),o;let b=e.someProp("clipboardTextParser",T=>T(t,i,r,e));if(b)o=b;else{let T=i.marks(),{schema:x}=e.state,$=m1.fromSchema(x);
842s=document.createElement("div"),t.split(/(?:\r\n?|\n)+/).forEach(A=>{let N=s.appendChild(document.createElement("p"));A&&N.appendChild($.serializeNode(x.text(A,T)))})}}else e.someProp("transformPastedHTML",b=>{n=b(n,e)}),s=zAe(n),Bw&&NAe(s);let m=s&&s.querySelector("[data-pm-slice]"),y=m&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(m.getAttribute("data-pm-slice")||"");if(y&&y[3])for(let b=+y[3];b>0;b--){let T=s.firstChild;for(;T&&T.nodeType!=1;)T=T.nextSibling;if(!T)break;s=T}if(o||(o=(e.someProp("clipboardParser")||e.someProp("domParser")||hx.fromSchema(e.state.schema)).parseSlice(s,{preserveWhitespace:!!(f||y),context:i,ruleFromNode(T){return T.nodeName=="BR"&&!T.nextSibling&&T.parentNode&&!RAe.test(T.parentNode.nodeName)?{ignore:!0}:null}})),y)o=VAe(CF(o,+y[1],+y[2]),y[4]);else if(o=Ln.maxOpen(BAe(o.content,i),!0),o.openStart||o.openEnd){let b=0,T=0;for(let x=o.content.firstChild;b<o.openStart&&!x.type.spec.isolating;b++,x=x.firstChild);for(let x=o.content.lastChild;T<o.openEnd&&!x.type.spec.isolating;T++,x=x.lastChild);o=CF(o,b,T)}return e.someProp("transformPasted",b=>{o=b(o,e,f)}),o}const RAe=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function BAe(e,t){if(e.childCount<2)return e;for(let n=t.depth;n>=0;n--){let i=t.node(n).contentMatchAt(t.index(n)),a,s=[];if(e.forEach(o=>{if(!s)return;let f=i.findWrapping(o.type),m;if(!f)return s=null;if(m=s.length&&a.length&&nZ(f,a,o,s[s.length-1],0))s[s.length-1]=m;else{s.length&&(s[s.length-1]=rZ(s[s.length-1],a.length));let y=tZ(o,f);s.push(y),i=i.matchType(y.type),a=f}}),s)return dn.from(s)}return e}function tZ(e,t,n=0){for(let r=t.length-1;r>=n;r--)e=t[r].create(null,dn.from(e));return e}function nZ(e,t,n,r,i){if(i<e.length&&i<t.length&&e[i]==t[i]){let a=nZ(e,t,n,r.lastChild,i+1);if(a)return r.copy(r.content.replaceChild(r.childCount-1,a));if(r.contentMatchAt(r.childCount).matchType(i==e.length-1?n.type:e[i+1]))return r.copy(r.content.append(dn.from(tZ(n,e,i+1))))}}function rZ(e,t){if(t==0)return e;let n=e.content.replaceChild(e.childCount-1,rZ(e.lastChild,t-1)),r=e.contentMatchAt(e.childCount).fillBefore(dn.empty,!0);return e.copy(n.append(r))}function cM(e,t,n,r,i,a){let s=t<0?e.firstChild:e.lastChild,o=s.content;return e.childCount>1&&(a=0),i<r-1&&(o=cM(o,t,n,r,i+1,a)),i>=n&&(o=t<0?s.contentMatchAt(0).fillBefore(o,a<=i).append(o):o.append(s.contentMatchAt(s.childCount).fillBefore(dn.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,s.copy(o))}function CF(e,t,n){return t<e.openStart&&(e=new Ln(cM(e.content,-1,t,e.openStart,0,e.openEnd),t,e.openEnd)),n<e.openEnd&&(e=new Ln(cM(e.content,1,n,e.openEnd,0,0),e.openStart,n)),e}const iZ={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]};function aZ(){return document.implementation.createHTMLDocument("title")}let D2=null;function FAe(e){let t=window.trustedTypes;if(!t)return e;if(!D2){if(D2=t.defaultPolicy)try{return D2.createHTML(e)}catch{}D2=t.createPolicy("ProseMirrorClipboard",{createHTML:n=>n})}return D2.createHTML(e)}function zAe(e){let t=/^(\s*<meta [^>]*>)*/.exec(e);t&&(e=e.slice(t[0].length));let n=aZ(),r=n.body,i=/<([a-z][^>\s]+)/i.exec(e),a;if((a=i&&iZ[i[1].toLowerCase()])&&(e=a.map(s=>"<"+s+">").join("")+e+a.map(s=>"</"+s+">").reverse().join("")),r.innerHTML=FAe(e),a)for(let s=0;s<a.length;s++)r=r.querySelector(a[s])||r;for(let s=0;s<n.styleSheets.length;s++){let o=n.styleSheets[s];for(let f=0;f<o.rules.length;f++){let m=o.rules[f];if(m instanceof CSSStyleRule){let y=r.querySelectorAll(m.selectorText);for(let b=0;b<y.length;b++)y[b].style.cssText+=m.style.cssText}}}return r}function NAe(e){let t=e.querySelectorAll(ws?"span:not([class]):not([style])":"span.Apple-converted-space");for(let n=0;n<t.length;n++){let r=t[n];r.childNodes.length==1&&r.textContent==" "&&r.parentNode&&r.parentNode.replaceChild(e.ownerDocument.createTextNode(" "),r)}}function VAe(e,t){if(!e.size)return e;let n=e.content.firstChild.type.schema,r;try{r=JSON.parse(t)}catch{return e}let{content:i,openStart:a,openEnd:s}=e;for(let o=r.length-2;o>=0;o-=2){let f=n.nodes[r[o]];if(!f||f.hasRequiredAttrs())break;try{f.checkAttrs(r[o+1])}catch{break}i=dn.from(f.create(r[o+1],i)),a++,s++}return new Ln(i,a,s)}const sl={},ll={},qAe={touchstart:!0,touchmove:!0};
vendor: 4,827 bytes, line 842
842class jAe{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:"",button:0},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastChromeDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.badSafariComposition=!1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function UAe(e){for(let t in sl){let n=sl[t];e.dom.addEventListener(t,e.input.eventHandlers[t]=r=>{WAe(e,r)&&!o7(e,r)&&(e.editable||!(r.type in ll))&&n(e,r)},qAe[t]?{passive:!0}:void 0)}qs&&e.dom.addEventListener("input",()=>null),dM(e)}function op(e,t){e.input.lastSelectionOrigin=t,e.input.lastSelectionTime=Date.now()}function HAe(e){e.input.mouseDown&&e.input.mouseDown.done(),e.domObserver.stop();for(let t in e.input.eventHandlers)e.dom.removeEventListener(t,e.input.eventHandlers[t]);clearTimeout(e.input.composingTimeout),clearTimeout(e.input.lastIOSEnterFallbackTimeout)}function dM(e){e.someProp("handleDOMEvents",t=>{for(let n in t)e.input.eventHandlers[n]||e.dom.addEventListener(n,e.input.eventHandlers[n]=r=>o7(e,r))})}function o7(e,t){return e.someProp("handleDOMEvents",n=>{let r=n[t.type];return r?r(e,t)||t.defaultPrevented:!1})}function WAe(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n=t.target;n!=e.dom;n=n.parentNode)if(!n||n.nodeType==11||n.pmViewDesc&&n.pmViewDesc.stopEvent(t))return!1;return!0}function GAe(e,t){!o7(e,t)&&sl[t.type]&&(e.editable||!(t.type in ll))&&sl[t.type](e,t)}ll.keydown=(e,t)=>{let n=t;if(e.input.shiftKey=n.keyCode==16||n.shiftKey,!uZ(e)&&(e.input.lastKeyCode=n.keyCode,e.input.lastKeyCodeTime=Date.now(),!(ap&&ws&&n.keyCode==13)))if(n.keyCode!=229&&e.domObserver.forceFlush(),A_&&n.keyCode==13&&!n.ctrlKey&&!n.altKey&&!n.metaKey){let r=Date.now();e.input.lastIOSEnter=r,e.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{e.input.lastIOSEnter==r&&(e.someProp("handleKeyDown",i=>i(e,vy(13,"Enter"))),e.input.lastIOSEnter=0)},200)}else e.someProp("handleKeyDown",r=>r(e,n))||OAe(e,n)?n.preventDefault():op(e,"key")};ll.keyup=(e,t)=>{t.keyCode==16&&(e.input.shiftKey=!1)};ll.keypress=(e,t)=>{let n=t;if(uZ(e)||!n.charCode||n.ctrlKey&&!n.altKey||ac&&n.metaKey)return;if(e.someProp("handleKeyPress",i=>i(e,n))){n.preventDefault();return}let r=e.state.selection;if(!(r instanceof Pr)||!r.$from.sameParent(r.$to)){let i=String.fromCharCode(n.charCode),a=()=>e.state.tr.insertText(i).scrollIntoView();!/[\r\n]/.test(i)&&!e.someProp("handleTextInput",s=>s(e,r.$from.pos,r.$to.pos,i,a))&&e.dispatch(a()),n.preventDefault()}};function zw(e){return{left:e.clientX,top:e.clientY}}function YAe(e,t){let n=t.x-e.clientX,r=t.y-e.clientY;return n*n+r*r<100}function s7(e,t,n,r,i){if(r==-1)return!1;let a=e.state.doc.resolve(r);for(let s=a.depth+1;s>0;s--)if(e.someProp(t,o=>s>a.depth?o(e,n,a.nodeAfter,a.before(s),i,!0):o(e,n,a.node(s),a.before(s),i,!1)))return!0;return!1}function Nw(e,t,n){if(e.focused||e.focus(),e.state.selection.eq(t))return;let r=e.state.tr.setSelection(t);r.setMeta("pointer",!0),e.dispatch(r)}function ZAe(e,t){if(t==-1)return!1;let n=e.state.doc.resolve(t),r=n.nodeAfter;return r&&r.isAtom&&ar.isSelectable(r)?(Nw(e,new ar(n)),!0):!1}function KAe(e,t){if(t==-1)return!1;let n=e.state.selection,r,i;n instanceof ar&&(r=n.node);let a=e.state.doc.resolve(t);for(let s=a.depth+1;s>0;s--){let o=s>a.depth?a.nodeAfter:a.node(s);if(ar.isSelectable(o)){r&&n.$from.depth>0&&s>=n.$from.depth&&a.before(n.$from.depth+1)==n.$from.pos?i=a.before(n.$from.depth):i=a.before(s);break}}return i!=null?(Nw(e,ar.create(e.state.doc,i)),!0):!1}function XAe(e,t,n,r,i){return s7(e,"handleClickOn",t,n,r)||e.someProp("handleClick",a=>a(e,t,r))||(i?KAe(e,n):ZAe(e,n))}function JAe(e,t,n,r){return s7(e,"handleDoubleClickOn",t,n,r)||e.someProp("handleDoubleClick",i=>i(e,t,r))}function QAe(e,t,n,r){return s7(e,"handleTripleClickOn",t,n,r)||e.someProp("handleTripleClick",i=>i(e,t,r))||eIe(e,n,r)}function eIe(e,t,n){if(n.button!=0)return!1;let r=oZ(e,t,!0),i=e.state.doc;return r?(Nw(e,r),r instanceof Pr&&i.eq(e.state.doc)&&(e.input.mouseDown=new nIe(e,r)),!0):!1}function oZ(e,t,n){let r=e.state.doc;if(t==-1)return r.inlineContent?Pr.create(r,0,r.content.size):null;let i=r.resolve(t);for(let a=i.depth+1;a>0;a--){let s=a>i.depth?i.nodeAfter:i.node(a),o=i.before(a);if(s.inlineContent)return Pr.create(r,o+1,o+1+s.content.size);if(n&&ar.isSelectable(s))return ar.create(r,o)}return null}function l7(e){return nC(e)}const sZ=ac?"metaKey":"ctrlKey";sl.mousedown=(e,t)=>{let n=t;e.input.shiftKey=n.shiftKey;let r=l7(e),i=Date.now(),a="singleClick";
842i-e.input.lastClick.time<500&&YAe(n,e.input.lastClick)&&!n[sZ]&&e.input.lastClick.button==n.button&&(e.input.lastClick.type=="singleClick"?a="doubleClick":e.input.lastClick.type=="doubleClick"&&(a="tripleClick")),e.input.lastClick={time:i,x:n.clientX,y:n.clientY,type:a,button:n.button},e.input.mouseDown&&e.input.mouseDown.done();let s=e.posAtCoords(zw(n));s&&(a=="singleClick"?e.input.mouseDown=new tIe(e,s,n,!!r):(a=="doubleClick"?JAe:QAe)(e,s.pos,s.inside,n)?n.preventDefault():op(e,"pointer"))};class lZ{constructor(t){this.view=t,this.mightDrag=null,t.root.addEventListener("mouseup",this.up=this.up.bind(this)),t.root.addEventListener("mousemove",this.move=this.move.bind(this))}up(t){this.done()}move(t){t.buttons==0&&this.done()}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.view.input.mouseDown==this&&(this.view.input.mouseDown=null)}delaySelUpdate(){return!1}}class tIe extends lZ{constructor(t,n,r,i){super(t),this.pos=n,this.event=r,this.flushed=i,this.delayedSelectionSync=!1,this.startDoc=t.state.doc,this.selectNode=!!r[sZ],this.allowDefault=r.shiftKey;let a,s;if(n.inside>-1)a=t.state.doc.nodeAt(n.inside),s=n.inside;else{let y=t.state.doc.resolve(n.pos);a=y.parent,s=y.depth?y.before():0}const o=i?null:r.target,f=o?t.docView.nearestDesc(o,!0):null;this.target=f&&f.nodeDOM.nodeType==1?f.nodeDOM:null;let{selection:m}=t.state;r.button==0&&(a.type.spec.draggable&&a.type.spec.selectable!==!1||m instanceof ar&&m.from<=s&&m.to>s)&&(this.mightDrag={node:a,pos:s,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&hc&&!this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),op(t,"pointer")}done(){super.done(),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>{this.view.isDestroyed||mp(this.view)})}up(t){if(this.done(),!this.view.dom.contains(t.target))return;let n=this.pos;this.view.state.doc!=this.startDoc&&(n=this.view.posAtCoords(zw(t))),this.updateAllowDefault(t),this.allowDefault||!n?op(this.view,"pointer"):XAe(this.view,n.pos,n.inside,t,this.selectNode)?t.preventDefault():t.button==0&&(this.flushed||qs&&this.mightDrag&&!this.mightDrag.node.isAtom||ws&&!this.view.state.selection.visible&&Math.min(Math.abs(n.pos-this.view.state.selection.from),Math.abs(n.pos-this.view.state.selection.to))<=2)?(Nw(this.view,Wr.near(this.view.state.doc.resolve(n.pos))),t.preventDefault()):op(this.view,"pointer")}move(t){this.updateAllowDefault(t),op(this.view,"pointer"),super.move(t)}updateAllowDefault(t){!this.allowDefault&&(Math.abs(this.event.x-t.clientX)>4||Math.abs(this.event.y-t.clientY)>4)&&(this.allowDefault=!0)}delaySelUpdate(){return this.allowDefault?(this.delayedSelectionSync=!0,!0):!1}}class nIe extends lZ{constructor(t,n){super(t),this.startSelection=n,this.startDoc=t.state.doc}move(t){if(t.buttons==0||this.view.isDestroyed||!this.view.state.doc.eq(this.startDoc)){this.done();return}t.preventDefault(),op(this.view,"pointer");let n=this.view.posAtCoords(zw(t)),r=n&&oZ(this.view,n.inside,!1);if(!r)return;let{doc:i}=this.view.state,a=this.startSelection,[s,o]=r.from<a.from?[a.to,r.from]:[a.from,r.to];Nw(this.view,Pr.create(i,s,o))}}sl.touchstart=e=>{e.input.lastTouch=Date.now(),l7(e),op(e,"pointer")};sl.touchmove=e=>{e.input.lastTouch=Date.now(),op(e,"pointer")};sl.contextmenu=e=>l7(e);function uZ(e,t){return e.composing?!0:qs&&Math.abs(Date.now()-e.input.compositionEndedAt)<500?(e.input.compositionEndedAt=-2e8,!0):!1}const rIe=ap?5e3:-1;ll.compositionstart=ll.compositionupdate=e=>{if(!e.composing){e.domObserver.flush();let{state:t}=e,n=t.selection.$to;if(t.selection instanceof Pr&&t.selection.empty&&(t.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(r=>r.type.spec.inclusive===!1)||ws&&FY&&iIe(e)))e.markCursor=e.state.storedMarks||n.marks(),nC(e,!0),e.markCursor=null;else if(nC(e,!t.selection.empty),hc&&t.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let r=e.domSelectionRange();for(let i=r.focusNode,a=r.focusOffset;i&&i.nodeType==1&&a!=0;
vendor: 4,432 bytes, line 842
842){let s=a<0?i.lastChild:i.childNodes[a-1];if(!s)break;if(s.nodeType==3){let o=e.domSelection();o&&o.collapse(s,s.nodeValue.length);break}else i=s,a=-1}}e.input.composing=!0}cZ(e,rIe)};function iIe(e){let{focusNode:t,focusOffset:n}=e.domSelectionRange();if(!t||t.nodeType!=1||n>=t.childNodes.length)return!1;let r=t.childNodes[n];return r.nodeType==1&&r.contentEditable=="false"}ll.compositionend=(e,t)=>{e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=Date.now(),e.input.compositionPendingChanges=e.domObserver.pendingRecords().length?e.input.compositionID:0,e.input.compositionNode=null,e.input.badSafariComposition?e.domObserver.forceFlush():e.input.compositionPendingChanges&&Promise.resolve().then(()=>e.domObserver.flush()),e.input.compositionID++,cZ(e,20))};function cZ(e,t){clearTimeout(e.input.composingTimeout),t>-1&&(e.input.composingTimeout=setTimeout(()=>nC(e),t))}function dZ(e){for(e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=Date.now());e.input.compositionNodes.length>0;)e.input.compositionNodes.pop().markParentsDirty()}function aIe(e){let t=e.domSelectionRange();if(!t.focusNode)return null;let n=KMe(t.focusNode,t.focusOffset),r=XMe(t.focusNode,t.focusOffset);if(n&&r&&n!=r){let i=r.pmViewDesc,a=e.domObserver.lastChangedTextNode;if(n==a||r==a)return a;if(!i||!i.isText(r.nodeValue))return r;if(e.input.compositionNode==r){let s=n.pmViewDesc;if(!(!s||!s.isText(n.nodeValue)))return r}}return n||r}function nC(e,t=!1){if(!(ap&&e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),dZ(e),t||e.docView&&e.docView.dirty){let n=r7(e),r=e.state.selection;return n&&!n.eq(r)?e.dispatch(e.state.tr.setSelection(n)):(e.markCursor||t)&&!r.$from.node(r.$from.sharedDepth(r.to)).inlineContent?e.dispatch(e.state.tr.deleteSelection()):e.updateState(e.state),!0}return!1}}function oIe(e,t){if(!e.dom.parentNode)return;let n=e.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(t),n.style.cssText="position: fixed; left: -10000px; top: 10px";let r=getSelection(),i=document.createRange();i.selectNodeContents(t),e.dom.blur(),r.removeAllRanges(),r.addRange(i),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),e.focus()},50)}const aw=Ll&&hg<15||A_&&tAe<604;sl.copy=ll.cut=(e,t)=>{let n=t,r=e.state.selection,i=n.type=="cut";if(r.empty)return;let a=aw?null:n.clipboardData,s=r.content(),{dom:o,text:f}=a7(e,s);a?(n.preventDefault(),a.clearData(),a.setData("text/html",o.innerHTML),a.setData("text/plain",f)):oIe(e,o),i&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function sIe(e){return e.openStart==0&&e.openEnd==0&&e.content.childCount==1?e.content.firstChild:null}function lIe(e,t){if(!e.dom.parentNode)return;let n=e.input.shiftKey||e.state.selection.$from.parent.type.spec.code,r=e.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(r.contentEditable="true"),r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus();let i=e.input.shiftKey&&e.input.lastKeyCode!=45;setTimeout(()=>{e.focus(),r.parentNode&&r.parentNode.removeChild(r),n?ow(e,r.value,null,i,t):ow(e,r.textContent,r.innerHTML,i,t)},50)}function ow(e,t,n,r,i){let a=eZ(e,t,n,r,e.state.selection.$from);if(e.someProp("handlePaste",f=>f(e,i,a||Ln.empty)))return!0;if(!a)return!1;let s=sIe(a),o=s?e.state.tr.replaceSelectionWith(s,r):e.state.tr.replaceSelection(a);return e.dispatch(o.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function fZ(e){let t=e.getData("text/plain")||e.getData("Text");if(t)return t;let n=e.getData("text/uri-list");return n?n.replace(/\r?\n/g," "):""}ll.paste=(e,t)=>{let n=t;if(e.composing&&!ap)return;let r=aw?null:n.clipboardData,i=e.input.shiftKey&&e.input.lastKeyCode!=45;r&&ow(e,fZ(r),r.getData("text/html"),i,n)?n.preventDefault():lIe(e,n)};class hZ{constructor(t,n,r){this.slice=t,this.move=n,this.node=r}}const uIe=ac?"altKey":"ctrlKey";function pZ(e,t){let n;return e.someProp("dragCopies",r=>{n=n||r(t)}),n!=null?!n:!t[uIe]}sl.dragstart=(e,t)=>{let n=t,r=e.input.mouseDown;if(r&&r.done(),!n.dataTransfer)return;let i=e.state.selection,a=i.empty?null:e.posAtCoords(zw(n)),s;if(!(a&&a.pos>=i.from&&a.pos<=(i instanceof ar?i.to-1:i.to))){if(r&&r.mightDrag)s=ar.create(e.state.doc,r.mightDrag.pos);else if(n.target&&n.target.nodeType==1){let b=e.docView.nearestDesc(n.target,!0);b&&b.node.type.spec.draggable&&b!=e.docView&&(s=ar.create(e.state.doc,b.posBefore))}}
vendor: 8,323 bytes, line 842
842let o=(s||e.state.selection).content(),{dom:f,text:m,slice:y}=a7(e,o);(!n.dataTransfer.files.length||!ws||BY>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(aw?"Text":"text/html",f.innerHTML),n.dataTransfer.effectAllowed="copyMove",aw||n.dataTransfer.setData("text/plain",m),e.dragging=new hZ(y,pZ(e,n),s)};sl.dragend=e=>{let t=e.dragging;window.setTimeout(()=>{e.dragging==t&&(e.dragging=null)},50)};ll.dragover=ll.dragenter=(e,t)=>t.preventDefault();ll.drop=(e,t)=>{try{cIe(e,t,e.dragging)}finally{e.dragging=null}};function cIe(e,t,n){if(!t.dataTransfer)return;let r=e.posAtCoords(zw(t));if(!r)return;let i=e.state.doc.resolve(r.pos),a=n&&n.slice;a?e.someProp("transformPasted",x=>{a=x(a,e,!1)}):a=eZ(e,fZ(t.dataTransfer),aw?null:t.dataTransfer.getData("text/html"),!1,i);let s=!!(n&&pZ(e,t));if(e.someProp("handleDrop",x=>x(e,t,a||Ln.empty,s))){t.preventDefault();return}if(!a)return;t.preventDefault();let o=a?BMe(e.state.doc,i.pos,a):i.pos;o==null&&(o=i.pos);let f=e.state.tr;if(s){let{node:x}=n;x?x.replace(f):f.deleteSelection()}let m=f.mapping.map(o),y=a.openStart==0&&a.openEnd==0&&a.content.childCount==1,b=f.doc;if(y?f.replaceRangeWith(m,m,a.content.firstChild):f.replaceRange(m,m,a),f.doc.eq(b))return;let T=f.doc.resolve(m);if(y&&ar.isSelectable(a.content.firstChild)&&T.nodeAfter&&T.nodeAfter.sameMarkup(a.content.firstChild))f.setSelection(new ar(T));else{let x=f.mapping.map(o);f.mapping.maps[f.mapping.maps.length-1].forEach(($,A,N,O)=>x=O),f.setSelection(i7(e,T,f.doc.resolve(x)))}e.focus(),e.dispatch(f.setMeta("uiEvent","drop"))}sl.focus=e=>{e.input.lastFocus=Date.now(),e.focused||(e.domObserver.stop(),e.dom.classList.add("ProseMirror-focused"),e.domObserver.start(),e.focused=!0,setTimeout(()=>{e.docView&&e.hasFocus()&&!e.domObserver.currentSelection.eq(e.domSelectionRange())&&mp(e)},20))};sl.blur=(e,t)=>{let n=t;e.focused&&(e.domObserver.stop(),e.dom.classList.remove("ProseMirror-focused"),e.domObserver.start(),n.relatedTarget&&e.dom.contains(n.relatedTarget)&&e.domObserver.currentSelection.clear(),e.focused=!1)};sl.beforeinput=(e,t)=>{if(ap&&t.inputType=="deleteContentBackward"){e.domObserver.flushSoon();let{domChangeCount:r}=e.input;setTimeout(()=>{if(e.input.domChangeCount!=r||(e.dom.blur(),e.focus(),e.someProp("handleKeyDown",a=>a(e,vy(8,"Backspace")))))return;let{$cursor:i}=e.state.selection;i&&i.pos>0&&e.dispatch(e.state.tr.delete(i.pos-1,i.pos).scrollIntoView())},50)}};for(let e in ll)sl[e]=ll[e];function sw(e,t){if(e==t)return!0;for(let n in e)if(e[n]!==t[n])return!1;for(let n in t)if(!(n in e))return!1;return!0}class rC{constructor(t,n){this.toDOM=t,this.spec=n||Ry,this.side=this.spec.side||0}map(t,n,r,i){let{pos:a,deleted:s}=t.mapResult(n.from+i,this.side<0?-1:1);return s?null:new yd(a-r,a-r,this)}valid(){return!0}eq(t){return this==t||t instanceof rC&&(this.spec.key&&this.spec.key==t.spec.key||this.toDOM==t.toDOM&&sw(this.spec,t.spec))}destroy(t){this.spec.destroy&&this.spec.destroy(t)}}class gg{constructor(t,n){this.attrs=t,this.spec=n||Ry}map(t,n,r,i){let a=t.map(n.from+i,this.spec.inclusiveStart?-1:1)-r,s=t.map(n.to+i,this.spec.inclusiveEnd?1:-1)-r;return a>=s?null:new yd(a,s,this)}valid(t,n){return n.from<n.to}eq(t){return this==t||t instanceof gg&&sw(this.attrs,t.attrs)&&sw(this.spec,t.spec)}static is(t){return t.type instanceof gg}destroy(){}}class u7{constructor(t,n){this.attrs=t,this.spec=n||Ry}map(t,n,r,i){let a=t.mapResult(n.from+i,1);if(a.deleted)return null;let s=t.mapResult(n.to+i,-1);return s.deleted||s.pos<=a.pos?null:new yd(a.pos-r,s.pos-r,this)}valid(t,n){let{index:r,offset:i}=t.content.findIndex(n.from),a;return i==n.from&&!(a=t.child(r)).isText&&i+a.nodeSize==n.to}eq(t){return this==t||t instanceof u7&&sw(this.attrs,t.attrs)&&sw(this.spec,t.spec)}destroy(){}}class yd{constructor(t,n,r){this.from=t,this.to=n,this.type=r}copy(t,n){return new yd(t,n,this.type)}eq(t,n=0){return this.type.eq(t.type)&&this.from+n==t.from&&this.to+n==t.to}map(t,n,r){return this.type.map(t,this,n,r)}static widget(t,n,r){return new yd(t,t,new rC(n,r))}static inline(t,n,r,i){return new yd(t,n,new gg(r,i))}static node(t,n,r,i){return new yd(t,n,new u7(r,i))}get spec(){return this.type.spec}get inline(){return this.type instanceof gg}get widget(){return this.type instanceof rC}}const qv=[],Ry={};class Ho{constructor(t,n){this.local=t.length?t:qv,this.children=n.length?n:qv}static create(t,n){return n.length?iC(n,t,0,Ry):zs}find(t,n,r){let i=[];return this.findInner(t??0,n??1e9,i,0,r),i}findInner(t,n,r,i,a){for(let s=0;s<this.local.length;s++){let o=this.local[s];o.from<=n&&o.to>=t&&(!a||a(o.spec))&&r.push(o.copy(o.from+i,o.to+i))}for(let s=0;s<this.children.length;s+=3)if(this.children[s]<n&&this.children[s+1]>t){let o=this.children[s]+1;this.children[s+2].findInner(t-o,n-o,r,i+o,a)}}map(t,n,r){return this==zs||t.maps.length==0?this:this.mapInner(t,n,0,0,r||Ry)}mapInner(t,n,r,i,a){let s;for(let o=0;o<this.local.length;o++){let f=this.local[o].map(t,r,i);f&&f.type.valid(n,f)?(s||(s=[])).push(f):a.onRemove&&a.onRemove(this.local[o].spec)}return this.children.length?dIe(this.children,s||[],t,n,r,i,a):s?new Ho(s.sort(By),qv):zs}add(t,n){return n.length?this==zs?Ho.create(t,n):this.addInner(t,n,0):this}addInner(t,n,r){let i,a=0;t.forEach((o,f)=>{let m=f+r,y;if(y=gZ(n,o,m)){for(i||(i=this.children.slice());a<i.length&&i[a]<f;)a+=3;i[a]==f?i[a+2]=i[a+2].addInner(o,y,m+1):i.splice(a,0,f,f+o.nodeSize,iC(y,o,m+1,Ry)),a+=3}});let s=mZ(a?yZ(n):n,-r);for(let o=0;o<s.length;o++)s[o].type.valid(t,s[o])||s.splice(o--,1);return new Ho(s.length?this.local.concat(s).sort(By):this.local,i||this.children)}remove(t){return t.length==0||this==zs?this:this.removeInner(t,0)}removeInner(t,n){let r=this.children,i=this.local;for(let a=0;a<r.length;a+=3){let s,o=r[a]+n,f=r[a+1]+n;for(let y=0,b;y<t.length;y++)(b=t[y])&&b.from>o&&b.to<f&&(t[y]=null,(s||(s=[])).push(b));if(!s)continue;r==this.children&&(r=this.children.slice());let m=r[a+2].removeInner(s,o+1);m!=zs?r[a+2]=m:(r.splice(a,3),a-=3)}if(i.length){for(let a=0,s;a<t.length;a++)if(s=t[a])for(let o=0;o<i.length;o++)i[o].eq(s,n)&&(i==this.local&&(i=this.local.slice()),i.splice(o--,1))}return r==this.children&&i==this.local?this:i.length||r.length?new Ho(i,r):zs}forChild(t,n){if(this==zs)return this;if(n.isLeaf)return Ho.empty;let r,i;for(let o=0;o<this.children.length;o+=3)if(this.children[o]>=t){this.children[o]==t&&(r=this.children[o+2]);break}let a=t+1,s=a+n.content.size;for(let o=0;o<this.local.length;o++){let f=this.local[o];if(f.from<s&&f.to>a&&f.type instanceof gg){let m=Math.max(a,f.from)-a,y=Math.min(s,f.to)-a;m<y&&(i||(i=[])).push(f.copy(m,y))}}if(i){let o=new Ho(i.sort(By),qv);return r?new Jm([o,r]):o}return r||zs}eq(t){if(this==t)return!0;if(!(t instanceof Ho)||this.local.length!=t.local.length||this.children.length!=t.children.length)return!1;for(let n=0;n<this.local.length;n++)if(!this.local[n].eq(t.local[n]))return!1;for(let n=0;n<this.children.length;n+=3)if(this.children[n]!=t.children[n]||this.children[n+1]!=t.children[n+1]||!this.children[n+2].eq(t.children[n+2]))return!1;return!0}locals(t){return c7(this.localsInner(t))}localsInner(t){if(this==zs)return qv;if(t.inlineContent||!this.local.some(gg.is))return this.local;let n=[];for(let r=0;r<this.local.length;r++)this.local[r].type instanceof gg||n.push(this.local[r]);return n}forEachSet(t){t(this)}}Ho.empty=new Ho([],[]);Ho.removeOverlap=c7;const zs=Ho.empty;class Jm{constructor(t){this.members=t}map(t,n){const r=this.members.map(i=>i.map(t,n,Ry));return Jm.from(r)}forChild(t,n){if(n.isLeaf)return Ho.empty;let r=[];for(let i=0;i<this.members.length;i++){let a=this.members[i].forChild(t,n);a!=zs&&(a instanceof Jm?r=r.concat(a.members):r.push(a))}return Jm.from(r)}eq(t){if(!(t instanceof Jm)||t.members.length!=this.members.length)return!1;for(let n=0;n<this.members.length;n++)if(!this.members[n].eq(t.members[n]))return!1;return!0}locals(t){let n,r=!0;for(let i=0;i<this.members.length;i++){let a=this.members[i].localsInner(t);if(a.length)if(!n)n=a;else{r&&(n=n.slice(),r=!1);for(let s=0;s<a.length;s++)n.push(a[s])}}return n?c7(r?n:n.sort(By)):qv}static from(t){switch(t.length){case 0:return zs;case 1:return t[0];default:return new Jm(t.every(n=>n instanceof Ho)?t:t.reduce((n,r)=>n.concat(r instanceof Ho?r:r.members),[]))}}forEachSet(t){for(let n=0;n<this.members.length;
vendor: 6,342 bytes, line 842
842n++)this.members[n].forEachSet(t)}}function dIe(e,t,n,r,i,a,s){let o=e.slice();for(let m=0,y=a;m<n.maps.length;m++){let b=0;n.maps[m].forEach((T,x,$,A)=>{let N=A-$-(x-T);for(let O=0;O<o.length;O+=3){let I=o[O+1];if(I<0||T>I+y-b)continue;let U=o[O]+y-b;x>=U?o[O+1]=T<=U?-2:-1:T>=y&&N&&(o[O]+=N,o[O+1]+=N)}b+=N}),y=n.maps[m].map(y,-1)}let f=!1;for(let m=0;m<o.length;m+=3)if(o[m+1]<0){if(o[m+1]==-2){f=!0,o[m+1]=-1;continue}let y=n.map(e[m]+a),b=y-i;if(b<0||b>=r.content.size){f=!0;continue}let T=n.map(e[m+1]+a,-1),x=T-i,{index:$,offset:A}=r.content.findIndex(b),N=r.maybeChild($);if(N&&A==b&&A+N.nodeSize==x){let O=o[m+2].mapInner(n,N,y+1,e[m]+a+1,s);O!=zs?(o[m]=b,o[m+1]=x,o[m+2]=O):(o[m+1]=-2,f=!0)}else f=!0}if(f){let m=fIe(o,e,t,n,i,a,s),y=iC(m,r,0,s);t=y.local;for(let b=0;b<o.length;b+=3)o[b+1]<0&&(o.splice(b,3),b-=3);for(let b=0,T=0;b<y.children.length;b+=3){let x=y.children[b];for(;T<o.length&&o[T]<x;)T+=3;o.splice(T,0,y.children[b],y.children[b+1],y.children[b+2])}}return new Ho(t.sort(By),o)}function mZ(e,t){if(!t||!e.length)return e;let n=[];for(let r=0;r<e.length;r++){let i=e[r];n.push(new yd(i.from+t,i.to+t,i.type))}return n}function fIe(e,t,n,r,i,a,s){function o(f,m){for(let y=0;y<f.local.length;y++){let b=f.local[y].map(r,i,m);b?n.push(b):s.onRemove&&s.onRemove(f.local[y].spec)}for(let y=0;y<f.children.length;y+=3)o(f.children[y+2],f.children[y]+m+1)}for(let f=0;f<e.length;f+=3)e[f+1]==-1&&o(e[f+2],t[f]+a+1);return n}function gZ(e,t,n){if(t.isLeaf)return null;let r=n+t.nodeSize,i=null;for(let a=0,s;a<e.length;a++)(s=e[a])&&s.from>n&&s.to<r&&((i||(i=[])).push(s),e[a]=null);return i}function yZ(e){let t=[];for(let n=0;n<e.length;n++)e[n]!=null&&t.push(e[n]);return t}function iC(e,t,n,r){let i=[],a=!1;t.forEach((o,f)=>{let m=gZ(e,o,f+n);if(m){a=!0;let y=iC(m,o,n+f+1,r);y!=zs&&i.push(f,f+o.nodeSize,y)}});let s=mZ(a?yZ(e):e,-n).sort(By);for(let o=0;o<s.length;o++)s[o].type.valid(t,s[o])||(r.onRemove&&r.onRemove(s[o].spec),s.splice(o--,1));return s.length||i.length?new Ho(s,i):zs}function By(e,t){return e.from-t.from||e.to-t.to}function c7(e){let t=e;for(let n=0;n<t.length-1;n++){let r=t[n];if(r.from!=r.to)for(let i=n+1;i<t.length;i++){let a=t[i];if(a.from==r.from){a.to!=r.to&&(t==e&&(t=e.slice()),t[i]=a.copy(a.from,r.to),TF(t,i+1,a.copy(r.to,a.to)));continue}else{a.from<r.to&&(t==e&&(t=e.slice()),t[n]=r.copy(r.from,a.from),TF(t,i,r.copy(a.from,r.to)));break}}}return t}function TF(e,t,n){for(;t<e.length&&By(n,e[t])>0;)t++;e.splice(t,0,n)}function L8(e){let t=[];return e.someProp("decorations",n=>{let r=n(e.state);r&&r!=zs&&t.push(r)}),e.cursorWrapper&&t.push(Ho.create(e.state.doc,[e.cursorWrapper.deco])),Jm.from(t)}const hIe={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},pIe=Ll&&hg<=11;class mIe{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(t){this.anchorNode=t.anchorNode,this.anchorOffset=t.anchorOffset,this.focusNode=t.focusNode,this.focusOffset=t.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(t){return t.anchorNode==this.anchorNode&&t.anchorOffset==this.anchorOffset&&t.focusNode==this.focusNode&&t.focusOffset==this.focusOffset}}class gIe{constructor(t,n){this.view=t,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new mIe,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(r=>{for(let i=0;i<r.length;i++)this.queue.push(r[i]);Ll&&hg<=11&&r.some(i=>i.type=="childList"&&i.removedNodes.length||i.type=="characterData"&&i.oldValue.length>i.target.nodeValue.length)?this.flushSoon():qs&&t.composing&&r.some(i=>i.type=="childList"&&i.target.nodeName=="TR")?(t.input.badSafariComposition=!0,this.flushSoon()):this.flush()}),pIe&&(this.onCharData=r=>{this.queue.push({target:r.target,type:"characterData",oldValue:r.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,hIe)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let t=this.observer.takeRecords();if(t.length){for(let n=0;n<t.length;n++)this.queue.push(t[n]);window.setTimeout(()=>this.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(vF(this.view)){if(this.suppressingSelectionUpdates)return mp(this.view);if(Ll&&hg<=11&&!this.view.state.selection.empty){let t=this.view.domSelectionRange();if(t.focusNode&&r1(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(t){if(!t.focusNode)return!0;let n=new Set,r;for(let a=t.focusNode;a;a=M_(a))n.add(a);for(let a=t.anchorNode;a;a=M_(a))if(n.has(a)){r=a;break}let i=r&&this.view.docView.nearestDesc(r);if(i&&i.ignoreMutation({type:"selection",target:r.nodeType==3?r.parentNode:r}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let t of this.observer.takeRecords())this.queue.push(t);return this.queue}flush(){let{view:t}=this;if(!t.docView||this.flushingSoon>-1)return;let n=this.pendingRecords();n.length&&(this.queue=[]);let r=t.domSelectionRange(),i=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(r)&&vF(t)&&!this.ignoreSelectionChange(r),a=-1,s=-1,o=!1,f=[];if(t.editable)for(let y=0;y<n.length;y++){let b=this.registerMutation(n[y],f);b&&(a=a<0?b.from:Math.min(b.from,a),s=s<0?b.to:Math.max(b.to,s),b.typeOver&&(o=!0))}
842if(f.some(y=>y.nodeName=="BR")&&(t.input.lastKeyCode==8||t.input.lastKeyCode==46||ws&&(t.composing||t.input.compositionEndedAt>Date.now()-50)&&n.some(y=>y.type=="childList"&&y.removedNodes.length))){for(let y of f)if(y.nodeName=="BR"&&y.parentNode){let b=y.nextSibling;for(;b&&b.nodeType==1;){if(b.contentEditable=="false"){y.parentNode.removeChild(y);break}b=b.firstChild}}}else if(hc&&f.length){let y=f.filter(b=>b.nodeName=="BR");if(y.length==2){let[b,T]=y;b.parentNode&&b.parentNode.parentNode==T.parentNode?T.remove():b.remove()}else{let{focusNode:b}=this.currentSelection;for(let T of y){let x=T.parentNode;x&&x.nodeName=="LI"&&(!b||_Ie(t,b)!=x)&&T.remove()}}}let m=null;a<0&&i&&t.input.lastFocus>Date.now()-200&&Math.max(t.input.lastTouch,t.input.lastClick.time)<Date.now()-300&&sk(r)&&(m=r7(t))&&m.eq(Wr.near(t.state.doc.resolve(0),1))?(t.input.lastFocus=0,mp(t),this.currentSelection.set(r),t.scrollToSelection()):(a>-1||i)&&(a>-1&&(t.docView.markDirty(a,s),yIe(t)),t.input.badSafariComposition&&(t.input.badSafariComposition=!1,bIe(t,f)),this.handleDOMChange(a,s,o,f),t.docView&&t.docView.dirty?t.updateState(t.state):this.currentSelection.eq(r)||mp(t),this.currentSelection.set(r))}registerMutation(t,n){if(n.indexOf(t.target)>-1)return null;let r=this.view.docView.nearestDesc(t.target);if(t.type=="attributes"&&(r==this.view.docView||t.attributeName=="contenteditable"||t.attributeName=="style"&&!t.oldValue&&!t.target.getAttribute("style"))||!r||r.ignoreMutation(t))return null;if(t.type=="childList"){for(let y=0;y<t.addedNodes.length;y++){let b=t.addedNodes[y];n.push(b),b.nodeType==3&&(this.lastChangedTextNode=b)}if(r.contentDOM&&r.contentDOM!=r.dom&&!r.contentDOM.contains(t.target))return{from:r.posBefore,to:r.posAfter};let i=t.previousSibling,a=t.nextSibling;if(Ll&&hg<=11&&t.addedNodes.length)for(let y=0;y<t.addedNodes.length;y++){let{previousSibling:b,nextSibling:T}=t.addedNodes[y];(!b||Array.prototype.indexOf.call(t.addedNodes,b)<0)&&(i=b),(!T||Array.prototype.indexOf.call(t.addedNodes,T)<0)&&(a=T)}let s=i&&i.parentNode==t.target?gs(i)+1:0,o=r.localPosFromDOM(t.target,s,-1),f=a&&a.parentNode==t.target?gs(a):t.target.childNodes.length,m=r.localPosFromDOM(t.target,f,1);return{from:o,to:m}}else return t.type=="attributes"?{from:r.posAtStart-r.border,to:r.posAt
vendor: 8,412 bytes, line 842
842End+r.border}:(this.lastChangedTextNode=t.target,{from:r.posAtStart,to:r.posAtEnd,typeOver:t.target.nodeValue==t.oldValue})}}let kF=new WeakMap,EF=!1;function yIe(e){if(!kF.has(e)&&(kF.set(e,null),["normal","nowrap","pre-line"].indexOf(getComputedStyle(e.dom).whiteSpace)!==-1)){if(e.requiresGeckoHackNode=hc,EF)return;EF=!0}}function PF(e,t){let n=t.startContainer,r=t.startOffset,i=t.endContainer,a=t.endOffset,s=e.domAtPos(e.state.selection.anchor);return r1(s.node,s.offset,i,a)&&([n,r,i,a]=[i,a,n,r]),{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:a}}function vIe(e,t){if(t.getComposedRanges){let i=t.getComposedRanges(e.root)[0];if(i)return PF(e,i)}let n;function r(i){i.preventDefault(),i.stopImmediatePropagation(),n=i.getTargetRanges()[0]}return e.dom.addEventListener("beforeinput",r,!0),document.execCommand("indent"),e.dom.removeEventListener("beforeinput",r,!0),n?PF(e,n):null}function _Ie(e,t){for(let n=t.parentNode;n&&n!=e.dom;n=n.parentNode){let r=e.docView.nearestDesc(n,!0);if(r&&r.node.isBlock)return n}return null}function bIe(e,t){var n;let{focusNode:r,focusOffset:i}=e.domSelectionRange();for(let a of t)if(((n=a.parentNode)===null||n===void 0?void 0:n.nodeName)=="TR"){let s=a.nextSibling;for(;s&&s.nodeName!="TD"&&s.nodeName!="TH";)s=s.nextSibling;if(s){let o=s;for(;;){let f=o.firstChild;if(!f||f.nodeType!=1||f.contentEditable=="false"||/^(BR|IMG)$/.test(f.nodeName))break;o=f}o.insertBefore(a,o.firstChild),r==a&&e.domSelection().collapse(a,i)}else a.parentNode.removeChild(a)}}function xIe(e,t,n,r){let{node:i,fromOffset:a,toOffset:s,from:o,to:f}=e.docView.parseRange(t,n),m=e.domSelectionRange(),y,b=m.anchorNode;if(b&&e.dom.contains(b.nodeType==1?b:b.parentNode)&&(y=[{node:b,offset:m.anchorOffset}],sk(m)||y.push({node:m.focusNode,offset:m.focusOffset})),ws&&e.input.lastKeyCode===8)for(let O=s;O>a;O--){let I=i.childNodes[O-1],U=I.pmViewDesc;if(I.nodeName=="BR"&&!U){s=O;break}if(!U||U.size)break}let T=e.state.doc,x=e.someProp("domParser")||hx.fromSchema(e.state.schema),$=T.resolve(o),A=null,N=x.parse(i,{topNode:$.parent,topMatch:$.parent.contentMatchAt($.index()),topOpen:!0,from:a,to:s,preserveWhitespace:$.parent.type.whitespace=="pre"?"full":!0,findPositions:y,ruleFromNode:wIe(r),context:$});if(y&&y[0].pos!=null){let O=y[0].pos,I=y[1]&&y[1].pos;I==null&&(I=O),A={anchor:O+o,head:I+o}}return{doc:N,sel:A,from:o,to:f}}const wIe=e=>t=>{let n=t.pmViewDesc;if(n)return n.parseRule(e);if(t.nodeName=="BR"&&t.parentNode){if(qs&&/^(ul|ol)$/i.test(t.parentNode.nodeName)){let r=document.createElement("div");return r.appendChild(document.createElement("li")),{skip:r}}else if(t.parentNode.lastChild==t||qs&&/^(tr|table)$/i.test(t.parentNode.nodeName))return{ignore:!0}}else if(t.nodeName=="IMG"&&t.getAttribute("mark-placeholder"))return{ignore:!0};return null},SIe=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|img|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function CIe(e,t,n,r,i){let a=e.input.compositionPendingChanges||(e.composing?e.input.compositionID:0);if(e.input.compositionPendingChanges=0,t<0){let ee=e.input.lastSelectionTime>Date.now()-50?e.input.lastSelectionOrigin:null,Y=r7(e,ee);if(Y&&!e.state.selection.eq(Y)){if(ws&&ap&&e.input.lastKeyCode===13&&Date.now()-100<e.input.lastKeyCodeTime&&e.someProp("handleKeyDown",H=>H(e,vy(13,"Enter"))))return;let z=e.state.tr.setSelection(Y);ee=="pointer"?z.setMeta("pointer",!0):ee=="key"&&z.scrollIntoView(),a&&z.setMeta("composition",a),e.dispatch(z)}return}let s=e.state.doc.resolve(t),o=s.sharedDepth(n);t=s.before(o+1),n=e.state.doc.resolve(n).after(o+1);let f=e.state.selection,m=xIe(e,t,n,i),y=e.state.doc,b=y.slice(m.from,m.to),T,x;e.input.lastKeyCode===8&&Date.now()-100<e.input.lastKeyCodeTime?(T=e.state.selection.to,x="end"):(T=e.state.selection.from,x="start"),e.input.lastKeyCode=null;let $=EIe(b.content,m.doc.content,m.from,T,x);if($&&e.input.domChangeCount++,(A_&&e.input.lastIOSEnter>Date.now()-225||ap)&&i.some(ee=>ee.nodeType==1&&!SIe.test(ee.nodeName))&&(!$||$.endA>=$.endB)&&e.someProp("handleKeyDown",ee=>ee(e,vy(13,"Enter")))){e.input.lastIOSEnter=0;return}if(!$)if(r&&f instanceof Pr&&!f.empty&&f.$head.sameParent(f.$anchor)&&!e.composing&&!(m.sel&&m.sel.anchor!=m.sel.head))$={start:f.from,endA:f.to,endB:f.to};else{if(m.sel){let ee=$F(e,e.state.doc,m.sel);if(ee&&!ee.eq(e.state.selection)){let Y=e.state.tr.setSelection(ee);a&&Y.setMeta("composition",a),e.dispatch(Y)}}return}e.state.selection.from<e.state.selection.to&&$.start==$.endB&&e.state.selection instanceof Pr&&($.start>e.state.selection.from&&$.start<=e.state.selection.from+2&&e.state.selection.from>=m.from?$.start=e.state.selection.from:$.endA<e.state.selection.to&&$.endA>=e.state.selection.to-2&&e.state.selection.to<=m.to&&($.endB+=e.state.selection.to-$.endA,$.endA=e.state.selection.to)),Ll&&hg<=11&&$.endB==$.start+1&&$.endA==$.start&&$.start>m.from&&m.doc.textBetween($.start-m.from-1,$.start-m.from+1)=="  "&&($.start--,$.endA--,$.endB--);let A=m.doc.resolveNoCache($.start-m.from),N=m.doc.resolveNoCache($.endB-m.from),O=y.resolve($.start),I=A.sameParent(N)&&A.parent.inlineContent&&O.end()>=$.endA;if((A_&&e.input.lastIOSEnter>Date.now()-225&&(!I||i.some(ee=>ee.nodeName=="DIV"||ee.nodeName=="P"))||!I&&A.pos<m.doc.content.size&&(!A.sameParent(N)||!A.parent.inlineContent)&&A.pos<N.pos&&!/\S/.test(m.doc.textBetween(A.pos,N.pos,"","")))&&e.someProp("handleKeyDown",ee=>ee(e,vy(13,"Enter")))){e.input.lastIOSEnter=0;return}if(e.state.selection.anchor>$.start&&kIe(y,$.start,$.endA,A,N)&&e.someProp("handleKeyDown",ee=>ee(e,vy(8,"Backspace")))){ap&&ws&&e.domObserver.suppressSelectionUpdates();return}ws&&$.endB==$.start&&(e.input.lastChromeDelete=Date.now()),ap&&!I&&A.start()!=N.start()&&N.parentOffset==0&&A.depth==N.depth&&m.sel&&m.sel.anchor==m.sel.head&&m.sel.head==$.endA&&($.endB-=2,N=m.doc.resolveNoCache($.endB-m.from),setTimeout(()=>{e.someProp("handleKeyDown",function(ee){return ee(e,vy(13,"Enter"))})},20));let U=$.start,B=$.endA,q=ee=>{let Y=ee||e.state.tr.replace(U,B,m.doc.slice($.start-m.from,$.endB-m.from));if(m.sel){let z=$F(e,Y.doc,m.sel);z&&!(ws&&e.composing&&z.empty&&($.start!=$.endB||e.input.lastChromeDelete<Date.now()-100)&&(z.head==U||z.head==Y.mapping.map(B)-1)||Ll&&z.empty&&z.head==U)&&Y.setSelection(z)}return a&&Y.setMeta("composition",a),Y.scrollIntoView()},Q;if(I)if(A.pos==N.pos){Ll&&hg<=11&&A.parentOffset==0&&(e.domObserver.suppressSelectionUpdates(),setTimeout(()=>mp(e),20));let ee=q(e.state.tr.delete(U,B)),Y=y.resolve($.start).marksAcross(y.resolve($.endA));Y&&ee.ensureMarks(Y),e.dispatch(ee)}else if($.endA==$.endB&&(Q=TIe(A.parent.content.cut(A.parentOffset,N.parentOffset),O.parent.content.cut(O.parentOffset,$.endA-O.start())))){let ee=q(e.state.tr);Q.type=="add"?ee.addMark(U,B,Q.mark):ee.removeMark(U,B,Q.mark),e.dispatch(ee)}else if(A.parent.child(A.index()).isText&&A.index()==N.index()-(N.textOffset?0:1)){let ee=A.parent.textBetween(A.parentOffset,N.parentOffset),Y=()=>q(e.state.tr.insertText(ee,U,B));e.someProp("handleTextInput",z=>z(e,U,B,ee,Y))||e.dispatch(Y())}else e.dispatch(q());else e.dispatch(q())}function $F(e,t,n){return Math.max(n.anchor,n.head)>t.content.size?null:i7(e,t.resolve(n.anchor),t.resolve(n.head))}function TIe(e,t){let n=e.firstChild.marks,r=t.firstChild.marks,i=n,a=r,s,o,f;for(let y=0;y<r.length;y++)i=r[y].removeFromSet(i);for(let y=0;y<n.length;y++)a=n[y].removeFromSet(a);if(i.length==1&&a.length==0)o=i[0],s="add",f=y=>y.mark(o.addToSet(y.marks));else if(i.length==0&&a.length==1)o=a[0],s="remove",f=y=>y.mark(o.removeFromSet(y.marks));else return null;let m=[];for(let y=0;y<t.childCount;y++)m.push(f(t.child(y)));if(dn.from(m).eq(e))return{mark:o,type:s}}function kIe(e,t,n,r,i){if(n-t<=i.pos-r.pos||O8(r,!0,!1)<i.pos)return!1;let a=e.resolve(t);if(!r.parent.isTextblock){let o=a.nodeAfter;return o!=null&&n==t+o.nodeSize}if(a.parentOffset<a.parent.content.size||!a.parent.isTextblock)return!1;let s=e.resolve(O8(a,!0,!0));return!s.parent.isTextblock||s.pos>n||O8(s,!0,!1)<n?!1:r.parent.content.cut(r.parentOffset).eq(s.parent.content)}function O8(e,t,n){let r=e.depth,i=t?e.end():e.pos;for(;r>0&&(t||e.indexAfter(r)==e.node(r).childCount);)r--,i++,t=!1;if(n){let a=e.node(r).maybeChild(e.indexAfter(r));for(;a&&!a.isLeaf;)a=a.firstChild,i++}return i}function EIe(e,t,n,r,i){let a=e.findDiffStart(t,n),s=n+e.size,o=n+t.size;if(a==null)return null;
vendor: 4,280 bytes, line 842
842let{a:f,b:m}=e.findDiffEnd(t,s,o);if(i=="end"){let y=Math.max(0,a-Math.min(f,m));r-=f+y-a}if(f<a&&s<o){let y=r<=a&&r>=f?a-r:0;a-=y,m=a+(m-f),f=a}else if(m<a){let y=r<=a&&r>=m?a-r:0;a-=y,f=a+(f-m),m=a}return{start:a,endA:f,endB:m}}class vZ{constructor(t,n){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new jAe,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(LF),this.dispatch=this.dispatch.bind(this),this.dom=t&&t.mount||document.createElement("div"),t&&(t.appendChild?t.appendChild(this.dom):typeof t=="function"?t(this.dom):t.mount&&(this.mounted=!0)),this.editable=IF(this),AF(this),this.nodeViews=DF(this),this.docView=fF(this.state.doc,MF(this),L8(this),this.dom,this),this.domObserver=new gIe(this,(r,i,a,s)=>CIe(this,r,i,a,s)),this.domObserver.start(),UAe(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let t=this._props;this._props={};for(let n in t)this._props[n]=t[n];this._props.state=this.state}return this._props}update(t){t.handleDOMEvents!=this._props.handleDOMEvents&&dM(this);let n=this._props;this._props=t,t.plugins&&(t.plugins.forEach(LF),this.directPlugins=t.plugins),this.updateStateInner(t.state,n)}setProps(t){let n={};for(let r in this._props)n[r]=this._props[r];n.state=this.state;for(let r in t)n[r]=t[r];this.update(n)}updateState(t){this.updateStateInner(t,this._props)}updateStateInner(t,n){var r;let i=this.state,a=!1,s=!1;t.storedMarks&&this.composing&&(dZ(this),s=!0),this.state=t;let o=i.plugins!=t.plugins||this._props.plugins!=n.plugins;if(o||this._props.plugins!=n.plugins||this._props.nodeViews!=n.nodeViews){let x=DF(this);$Ie(x,this.nodeViews)&&(this.nodeViews=x,a=!0)}(o||n.handleDOMEvents!=this._props.handleDOMEvents)&&dM(this),this.editable=IF(this),AF(this);let f=L8(this),m=MF(this),y=i.plugins!=t.plugins&&!i.doc.eq(t.doc)?"reset":t.scrollToSelection>i.scrollToSelection?"to selection":"preserve",b=a||!this.docView.matchesNode(t.doc,m,f);(b||!t.selection.eq(i.selection))&&(s=!0);let T=y=="preserve"&&s&&this.dom.style.overflowAnchor==null&&iAe(this);if(s){this.domObserver.stop();let x=b&&(Ll||ws)&&!this.composing&&!i.selection.empty&&!t.selection.empty&&PIe(i.selection,t.selection);if(b){let A=ws?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=aIe(this)),(a||!this.docView.update(t.doc,m,f,this))&&(this.docView.updateOuterDeco(m),this.docView.destroy(),this.docView=fF(t.doc,m,f,this.dom,this)),A&&(!this.trackWrites||!this.dom.contains(this.trackWrites))&&(x=!0)}let $=this.input.mouseDown;x||!($&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&PAe(this)&&$.delaySelUpdate())?mp(this,x):(XY(this,t.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(i),!((r=this.dragging)===null||r===void 0)&&r.node&&!i.doc.eq(t.doc)&&this.updateDraggedNode(this.dragging,i),y=="reset"?this.dom.scrollTop=0:y=="to selection"?this.scrollToSelection():T&&aAe(T)}scrollToSelection(){let t=this.domSelectionRange().focusNode;if(!(!t||!this.dom.contains(t.nodeType==1?t:t.parentNode))){if(!this.someProp("handleScrollToSelection",n=>n(this)))if(this.state.selection instanceof ar){let n=this.docView.domAfterPos(this.state.selection.from);n.nodeType==1&&sF(this,n.getBoundingClientRect(),t)}else sF(this,this.coordsAtPos(this.state.selection.head,1),t)}}destroyPluginViews(){let t;for(;t=this.pluginViews.pop();)t.destroy&&t.destroy()}updatePluginViews(t){if(!t||t.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let n=0;n<this.directPlugins.length;n++){let r=this.directPlugins[n];r.spec.view&&this.pluginViews.push(r.spec.view(this))}for(let n=0;n<this.state.plugins.length;n++){let r=this.state.plugins[n];r.spec.view&&this.pluginViews.push(r.spec.view(this))}}else for(let n=0;n<this.pluginViews.length;n++){let r=this.pluginViews[n];r.update&&r.update(this,t)}}updateDraggedNode(t,n){let r=t.node,i=-1;
vendor: 77,246 bytes, lines 842-922
842if(r.from<this.state.doc.content.size&&this.state.doc.nodeAt(r.from)==r.node)i=r.from;else{let a=r.from+(this.state.doc.content.size-n.doc.content.size);(a>0&&a<this.state.doc.content.size&&this.state.doc.nodeAt(a))==r.node&&(i=a)}this.dragging=new hZ(t.slice,t.move,i<0?void 0:ar.create(this.state.doc,i))}someProp(t,n){let r=this._props&&this._props[t],i;if(r!=null&&(i=n?n(r):r))return i;for(let s=0;s<this.directPlugins.length;s++){let o=this.directPlugins[s].props[t];if(o!=null&&(i=n?n(o):o))return i}let a=this.state.plugins;if(a)for(let s=0;s<a.length;s++){let o=a[s].props[t];if(o!=null&&(i=n?n(o):o))return i}}hasFocus(){if(Ll){let t=this.root.activeElement;if(t==this.dom)return!0;if(!t||!this.dom.contains(t))return!1;for(;t&&this.dom!=t&&this.dom.contains(t);){if(t.contentEditable=="false")return!1;t=t.parentElement}return!0}return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&oAe(this.dom),mp(this),this.domObserver.start()}get root(){let t=this._root;if(t==null){for(let n=this.dom.parentNode;n;n=n.parentNode)if(n.nodeType==9||n.nodeType==11&&n.host)return n.getSelection||(Object.getPrototypeOf(n).getSelection=()=>n.ownerDocument.getSelection()),this._root=n}return t||document}updateRoot(){this._root=null}posAtCoords(t){return dAe(this,t)}coordsAtPos(t,n=1){return jY(this,t,n)}domAtPos(t,n=0){return this.docView.domFromPos(t,n)}nodeDOM(t){let n=this.docView.descAt(t);return n?n.nodeDOM:null}posAtDOM(t,n,r=-1){let i=this.docView.posFromDOM(t,n,r);if(i==null)throw new RangeError("DOM position not inside the editor");return i}endOfTextblock(t,n){return gAe(this,n||this.state,t)}pasteHTML(t,n){return ow(this,"",t,!1,n||new ClipboardEvent("paste"))}pasteText(t,n){return ow(this,t,null,!0,n||new ClipboardEvent("paste"))}serializeForClipboard(t){return a7(this,t)}destroy(){this.docView&&(HAe(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],L8(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,YMe())}get isDestroyed(){return this.docView==null}dispatchEvent(t){return GAe(this,t)}domSelectionRange(){let t=this.domSelection();return t?qs&&this.root.nodeType===11&&QMe(this.dom.ownerDocument)==this.dom&&vIe(this,t)||t:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}}vZ.prototype.dispatch=function(e){let t=this._props.dispatchTransaction;t?t.call(this,e):this.updateState(this.state.apply(e))};function MF(e){let t=Object.create(null);return t.class="ProseMirror",t.contenteditable=String(e.editable),e.someProp("attributes",n=>{if(typeof n=="function"&&(n=n(e.state)),n)for(let r in n)r=="class"?t.class+=" "+n[r]:r=="style"?t.style=(t.style?t.style+";":"")+n[r]:!t[r]&&r!="contenteditable"&&r!="nodeName"&&(t[r]=String(n[r]))}),t.translate||(t.translate="no"),[yd.node(0,e.state.doc.content.size,t)]}function AF(e){if(e.markCursor){let t=document.createElement("img");t.className="ProseMirror-separator",t.setAttribute("mark-placeholder","true"),t.setAttribute("alt",""),e.cursorWrapper={dom:t,deco:yd.widget(e.state.selection.from,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function IF(e){return!e.someProp("editable",t=>t(e.state)===!1)}function PIe(e,t){let n=Math.min(e.$anchor.sharedDepth(e.head),t.$anchor.sharedDepth(t.head));return e.$anchor.start(n)!=t.$anchor.start(n)}function DF(e){let t=Object.create(null);function n(r){for(let i in r)Object.prototype.hasOwnProperty.call(t,i)||(t[i]=r[i])}return e.someProp("nodeViews",n),e.someProp("markViews",n),t}function $Ie(e,t){let n=0,r=0;for(let i in e){if(e[i]!=t[i])return!0;n++}for(let i in t)r++;return n!=r}function LF(e){if(e.spec.state||e.spec.filterTransaction||e.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}var Cg={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},aC={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},MIe=typeof navigator<"u"&&/Mac/.test(navigator.platform),AIe=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var ys=0;ys<10;ys++)Cg[48+ys]=Cg[96+ys]=String(ys);for(var ys=1;ys<=24;ys++)Cg[ys+111]="F"+ys;for(var ys=65;ys<=90;ys++)Cg[ys]=String.fromCharCode(ys+32),aC[ys]=String.fromCharCode(ys);for(var R8 in Cg)aC.hasOwnProperty(R8)||(aC[R8]=Cg[R8]);function IIe(e){var t=MIe&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||AIe&&e.shiftKey&&e.key&&e.key.length==1||e.key=="Unidentified",n=!t&&e.key||(e.shiftKey?aC:Cg)[e.keyCode]||e.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}const DIe=typeof navigator<"u"&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),LIe=typeof navigator<"u"&&/Win/.test(navigator.platform);function OIe(e){let t=e.split(/-(?!$)/),n=t[t.length-1];n=="Space"&&(n=" ");let r,i,a,s;for(let o=0;o<t.length-1;o++){let f=t[o];if(/^(cmd|meta|m)$/i.test(f))s=!0;else if(/^a(lt)?$/i.test(f))r=!0;else if(/^(c|ctrl|control)$/i.test(f))i=!0;else if(/^s(hift)?$/i.test(f))a=!0;else if(/^mod$/i.test(f))DIe?s=!0:i=!0;else throw new Error("Unrecognized modifier name: "+f)}return r&&(n="Alt-"+n),i&&(n="Ctrl-"+n),s&&(n="Meta-"+n),a&&(n="Shift-"+n),n}function RIe(e){let t=Object.create(null);for(let n in e)t[OIe(n)]=e[n];return t}function B8(e,t,n=!0){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),n&&t.shiftKey&&(e="Shift-"+e),e}function BIe(e){return new Tu({props:{handleKeyDown:FIe(e)}})}function FIe(e){let t=RIe(e);return function(n,r){let i=IIe(r),a,s=t[B8(i,r)];if(s&&s(n.state,n.dispatch,n))return!0;if(i.length==1&&i!=" "){if(r.shiftKey){let o=t[B8(i,r,!1)];if(o&&o(n.state,n.dispatch,n))return!0}if((r.altKey||r.metaKey||r.ctrlKey)&&!(LIe&&r.ctrlKey&&r.altKey)&&(a=Cg[r.keyCode])&&a!=i){let o=t[B8(a,r)];if(o&&o(n.state,n.dispatch,n))return!0}}return!1}}const d7=(e,t)=>e.selection.empty?!1:(t&&t(e.tr.deleteSelection().scrollIntoView()),!0);function _Z(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock("backward",e):n.parentOffset>0)?null:n}const bZ=(e,t,n)=>{let r=_Z(e,n);if(!r)return!1;let i=f7(r);if(!i){let s=r.blockRange(),o=s&&ob(s);return o==null?!1:(t&&t(e.tr.lift(s,o).scrollIntoView()),!0)}let a=i.nodeBefore;if($Z(e,i,t,-1))return!0;if(r.parent.content.size==0&&(I_(a,"end")||ar.isSelectable(a)))for(let s=r.depth;;s--){let o=ak(e.doc,r.before(s),r.after(s),Ln.empty);if(o&&o.slice.size<o.to-o.from){if(t){let f=e.tr.step(o);f.setSelection(I_(a,"end")?Wr.findFrom(f.doc.resolve(f.mapping.map(i.pos,-1)),-1):ar.create(f.doc,i.pos-a.nodeSize)),t(f.scrollIntoView())}return!0}if(s==1||r.node(s-1).childCount>1)break}return a.isAtom&&i.depth==r.depth-1?(t&&t(e.tr.delete(i.pos-a.nodeSize,i.pos).scrollIntoView()),!0):!1},zIe=(e,t,n)=>{let r=_Z(e,n);if(!r)return!1;let i=f7(r);return i?xZ(e,i,t):!1},NIe=(e,t,n)=>{let r=SZ(e,n);if(!r)return!1;let i=h7(r);return i?xZ(e,i,t):!1};function xZ(e,t,n){let r=t.nodeBefore,i=r,a=t.pos-1;for(;!i.isTextblock;a--){if(i.type.spec.isolating)return!1;let y=i.lastChild;if(!y)return!1;i=y}let s=t.nodeAfter,o=s,f=t.pos+1;for(;!o.isTextblock;f++){if(o.type.spec.isolating)return!1;let y=o.firstChild;if(!y)return!1;o=y}let m=ak(e.doc,a,f,Ln.empty);if(!m||m.from!=a||m instanceof so&&m.slice.size>=f-a)return!1;if(n){let y=e.tr.step(m);y.setSelection(Pr.create(y.doc,a)),n(y.scrollIntoView())}return!0}function I_(e,t,n=!1){for(let r=e;r;r=t=="start"?r.firstChild:r.lastChild){if(r.isTextblock)return!0;if(n&&r.childCount!=1)return!1}return!1}const wZ=(e,t,n)=>{let{$head:r,empty:i}=e.selection,a=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("backward",e):r.parentOffset>0)return!1;a=f7(r)}let s=a&&a.nodeBefore;return!s||!ar.isSelectable(s)?!1:(t&&t(e.tr.setSelection(ar.create(e.doc,a.pos-s.nodeSize)).scrollIntoView()),!0)};function f7(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function SZ(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock("forward",e):n.parentOffset<n.parent.content.size)?null:n}const CZ=(e,t,n)=>{let r=SZ(e,n);if(!r)return!1;let i=h7(r);if(!i)return!1;let a=i.nodeAfter;if($Z(e,i,t,1))return!0;if(r.parent.content.size==0&&(I_(a,"start")||ar.isSelectable(a))){let s=ak(e.doc,r.before(),r.after(),Ln.empty);if(s&&s.slice.size<s.to-s.from){if(t){let o=e.tr.step(s);o.setSelection(I_(a,"start")?Wr.findFrom(o.doc.resolve(o.mapping.map(i.pos)),1):ar.create(o.doc,o.mapping.map(i.pos))),t(o.scrollIntoView())}return!0}}return a.isAtom&&i.depth==r.depth-1?(t&&t(e.tr.delete(i.pos,i.pos+a.nodeSize).scrollIntoView()),!0):!1},TZ=(e,t,n)=>{let{$head:r,empty:i}=e.selection,a=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("forward",e):r.parentOffset<r.parent.content.size)return!1;a=h7(r)}let s=a&&a.nodeAfter;return!s||!ar.isSelectable(s)?!1:(t&&t(e.tr.setSelection(ar.create(e.doc,a.pos)).scrollIntoView()),!0)};function h7(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){let n=e.node(t);if(e.index(t)+1<n.childCount)return e.doc.resolve(e.after(t+1));if(n.type.spec.isolating)break}return null}const VIe=(e,t)=>{let n=e.selection,r=n instanceof ar,i;if(r){if(n.node.isTextblock||!Ng(e.doc,n.from))return!1;i=n.from}else if(i=ik(e.doc,n.from,-1),i==null)return!1;if(t){let a=e.tr.join(i);r&&a.setSelection(ar.create(a.doc,i-e.doc.resolve(i).nodeBefore.nodeSize)),t(a.scrollIntoView())}return!0},qIe=(e,t)=>{let n=e.selection,r;if(n instanceof ar){if(n.node.isTextblock||!Ng(e.doc,n.to))return!1;r=n.to}else if(r=ik(e.doc,n.to,1),r==null)return!1;return t&&t(e.tr.join(r).scrollIntoView()),!0},jIe=(e,t)=>{let{$from:n,$to:r}=e.selection,i=n.blockRange(r),a=i&&ob(i);return a==null?!1:(t&&t(e.tr.lift(i,a).scrollIntoView()),!0)},kZ=(e,t)=>{let{$head:n,$anchor:r}=e.selection;return!n.parent.type.spec.code||!n.sameParent(r)?!1:(t&&t(e.tr.insertText(`
843`).scrollIntoView()),!0)};function p7(e){for(let t=0;t<e.edgeCount;t++){let{type:n}=e.edge(t);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}const UIe=(e,t)=>{let{$head:n,$anchor:r}=e.selection;if(!n.parent.type.spec.code||!n.sameParent(r))return!1;let i=n.node(-1),a=n.indexAfter(-1),s=p7(i.contentMatchAt(a));if(!s||!i.canReplaceWith(a,a,s))return!1;if(t){let o=n.after(),f=e.tr.replaceWith(o,o,s.createAndFill());f.setSelection(Wr.near(f.doc.resolve(o),1)),t(f.scrollIntoView())}return!0},EZ=(e,t)=>{let n=e.selection,{$from:r,$to:i}=n;if(n instanceof gu||r.parent.inlineContent||i.parent.inlineContent)return!1;let a=p7(i.parent.contentMatchAt(i.indexAfter()));if(!a||!a.isTextblock)return!1;if(t){let s=(!r.parentOffset&&i.index()<i.parent.childCount?r:i).pos,o=e.tr.insert(s,a.createAndFill());o.setSelection(Pr.create(o.doc,s+1)),t(o.scrollIntoView())}return!0},PZ=(e,t)=>{let{$cursor:n}=e.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let a=n.before();if(pp(e.doc,a))return t&&t(e.tr.split(a).scrollIntoView()),!0}let r=n.blockRange(),i=r&&ob(r);return i==null?!1:(t&&t(e.tr.lift(r,i).scrollIntoView()),!0)};function HIe(e){return(t,n)=>{if(t.selection instanceof ar&&t.selection.node.isBlock){let{$from:x}=t.selection;return!x.parentOffset||!pp(t.doc,x.pos)?!1:(n&&n(t.tr.split(x.pos).scrollIntoView()),!0)}if(!t.selection.$from.depth)return!1;let r=t.tr;!t.selection.empty&&(t.selection instanceof Pr||t.selection instanceof gu)&&r.deleteSelection();let{$from:i}=r.selection,a=r.steps.length,s=[],o,f,m=!1,y=!1;for(let x=i.depth;;x--)if(i.node(x).isBlock){m=i.end(x)==i.pos+(i.depth-x),y=i.start(x)==i.pos-(i.depth-x),f=p7(i.node(x-1).contentMatchAt(i.indexAfter(x-1))),s.unshift(m&&f?{type:f}:null),o=x;break}else{if(x==1)return!1;s.unshift(null)}let b=i.pos,T=pp(r.doc,b,s.length,s);if(T||(s[0]=f?{type:f}:null,T=pp(r.doc,b,s.length,s)),!T)return!1;if(r.split(b,s.length,s),!m&&y&&i.node(o).type!=f){let x=r.mapping.slice(a),$=x.map(i.before(o)),A=r.doc.resolve($);f&&i.node(o-1).canReplaceWith(A.index(),A.index()+1,f)&&r.setNodeMarkup(x.map(i.before(o)),f)}return n&&n(r.scrollIntoView()),!0}}const WIe=HIe(),GIe=(e,t)=>{let{$from:n,to:r}=e.selection,i,a=n.sharedDepth(r);return a==0?!1:(i=n.before(a),t&&t(e.tr.setSelection(ar.create(e.doc,i))),!0)};function YIe(e,t,n){let r=t.nodeBefore,i=t.nodeAfter,a=t.index();return!r||!i||!r.type.compatibleContent(i.type)?!1:!r.content.size&&t.parent.canReplace(a-1,a)?(n&&n(e.tr.delete(t.pos-r.nodeSize,t.pos).scrollIntoView()),!0):!t.parent.canReplace(a,a+1)||!(i.isTextblock||Ng(e.doc,t.pos))?!1:(n&&n(e.tr.join(t.pos).scrollIntoView()),!0)}function $Z(e,t,n,r){let i=t.nodeBefore,a=t.nodeAfter,s,o,f=i.type.spec.isolating||a.type.spec.isolating;if(!f&&YIe(e,t,n))return!0;let m=!f&&t.parent.canReplace(t.index(),t.index()+1);if(m&&(s=(o=i.contentMatchAt(i.childCount)).findWrapping(a.type))&&o.matchType(s[0]||a.type).validEnd){if(n){let x=t.pos+a.nodeSize,$=dn.empty;for(let O=s.length-1;O>=0;O--)$=dn.from(s[O].create(null,$));$=dn.from(i.copy($));let A=e.tr.step(new Zo(t.pos-1,x,t.pos,x,new Ln($,1,0),s.length,!0)),N=A.doc.resolve(x+2*s.length);N.nodeAfter&&N.nodeAfter.type==i.type&&Ng(A.doc,N.pos)&&A.join(N.pos),n(A.scrollIntoView())}return!0}let y=a.type.spec.isolating||r>0&&f?null:Wr.findFrom(t,1),b=y&&y.$from.blockRange(y.$to),T=b&&ob(b);if(T!=null&&T>=t.depth)return n&&n(e.tr.lift(b,T).scrollIntoView()),!0;if(m&&I_(a,"start",!0)&&I_(i,"end")){let x=i,$=[];for(;$.push(x),!x.isTextblock;)x=x.lastChild;let A=a,N=1;for(;!A.isTextblock;A=A.firstChild)N++;if(x.canReplace(x.childCount,x.childCount,A.content)){if(n){let O=dn.empty;for(let U=$.length-1;U>=0;U--)O=dn.from($[U].copy(O));let I=e.tr.step(new Zo(t.pos-$.length,t.pos+a.nodeSize,t.pos+N,t.pos+a.nodeSize-N,new Ln(O,$.length,0),0,!0));n(I.scrollIntoView())}return!0}}return!1}function MZ(e){return function(t,n){let r=t.selection,i=e<0?r.$from:r.$to,a=i.depth;for(;i.node(a).isInline;){if(!a)return!1;a--}return i.node(a).isTextblock?(n&&n(t.tr.setSelection(Pr.create(t.doc,e<0?i.start(a):i.end(a)))),!0):!1}}const ZIe=MZ(-1),KIe=MZ(1);function XIe(e,t=null){return function(n,r){let{$from:i,$to:a}=n.selection,s=i.blockRange(a),o=s&&e7(s,e,t);return o?(r&&r(n.tr.wrap(s,o).scrollIntoView()),!0):!1}}function OF(e,t=null){return function(n,r){let i=!1;for(let a=0;a<n.selection.ranges.length&&!i;a++){let{$from:{pos:s},$to:{pos:o}}=n.selection.ranges[a];n.doc.nodesBetween(s,o,(f,m)=>{if(i)return!1;if(!(!f.isTextblock||f.hasMarkup(e,t)))if(f.type==e)i=!0;else{let y=n.doc.resolve(m),b=y.index();i=y.parent.canReplaceWith(b,b+1,e)}})}if(!i)return!1;if(r){let a=n.tr;for(let s=0;s<n.selection.ranges.length;s++){let{$from:{pos:o},$to:{pos:f}}=n.selection.ranges[s];a.setBlockType(o,f,e,t)}r(a.scrollIntoView())}return!0}}function m7(...e){return function(t,n,r){for(let i=0;i<e.length;i++)if(e[i](t,n,r))return!0;return!1}}m7(d7,bZ,wZ);m7(d7,CZ,TZ);m7(kZ,EZ,PZ,WIe);typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<"u"&&os.platform&&os.platform()=="darwin";function JIe(e,t=null){return function(n,r){let{$from:i,$to:a}=n.selection,s=i.blockRange(a);if(!s)return!1;let o=r?n.tr:null;return QIe(o,s,e,t)?(r&&r(o.scrollIntoView()),!0):!1}}function QIe(e,t,n,r=null){let i=!1,a=t,s=t.$from.doc;if(t.depth>=2&&t.$from.node(t.depth-1).type.compatibleContent(n)&&t.startIndex==0){if(t.$from.index(t.depth-1)==0)return!1;let f=s.resolve(t.start-2);a=new X4(f,f,t.depth),t.endIndex<t.parent.childCount&&(t=new X4(t.$from,s.resolve(t.$to.end(t.depth)),t.depth)),i=!0}let o=e7(a,n,r,t);return o?(e&&e7e(e,t,o,i,n),!0):!1}function e7e(e,t,n,r,i){let a=dn.empty;for(let y=n.length-1;y>=0;y--)a=dn.from(n[y].type.create(n[y].attrs,a));e.step(new Zo(t.start-(r?2:0),t.end,t.start,t.end,new Ln(a,0,0),n.length,!0));let s=0;for(let y=0;y<n.length;y++)n[y].type==i&&(s=y+1);let o=n.length-s,f=t.start+n.length-(r?2:0),m=t.parent;for(let y=t.startIndex,b=t.endIndex,T=!0;y<b;y++,T=!1)!T&&pp(e.doc,f,o)&&(e.split(f,o),f+=2*o),f+=m.child(y).nodeSize;return e}function t7e(e){return function(t,n){let{$from:r,$to:i}=t.selection,a=r.blockRange(i,s=>s.childCount>0&&s.firstChild.type==e);return a?n?r.node(a.depth-1).type==e?n7e(t,n,e,a):r7e(t,n,a):!0:!1}}function n7e(e,t,n,r){let i=e.tr,a=r.end,s=r.$to.end(r.depth);a<s&&(i.step(new Zo(a-1,s,a,s,new Ln(dn.from(n.create(null,r.parent.copy())),1,0),1,!0)),r=new X4(i.doc.resolve(r.$from.pos),i.doc.resolve(s),r.depth));const o=ob(r);if(o==null)return!1;i.lift(r,o);let f=i.doc.resolve(i.mapping.map(a,-1)-1);return Ng(i.doc,f.pos)&&f.nodeBefore.type==f.nodeAfter.type&&i.join(f.pos),t(i.scrollIntoView()),!0}function r7e(e,t,n){let r=e.tr,i=n.parent;for(let x=n.end,$=n.endIndex-1,A=n.startIndex;$>A;$--)x-=i.child($).nodeSize,r.delete(x-1,x+1);let a=r.doc.resolve(n.start),s=a.nodeAfter;if(r.mapping.map(n.end)!=n.start+a.nodeAfter.nodeSize)return!1;let o=n.startIndex==0,f=n.endIndex==i.childCount,m=a.node(-1),y=a.index(-1);if(!m.canReplace(y+(o?0:1),y+1,s.content.append(f?dn.empty:dn.from(i))))return!1;let b=a.pos,T=b+s.nodeSize;return r.step(new Zo(b-(o?1:0),T+(f?1:0),b+1,T-1,new Ln((o?dn.empty:dn.from(i.copy(dn.empty))).append(f?dn.empty:dn.from(i.copy(dn.empty))),o?0:1,f?0:1),o?0:1)),t(r.scrollIntoView()),!0}function i7e(e){return function(t,n){let{$from:r,$to:i}=t.selection,a=r.blockRange(i,m=>m.childCount>0&&m.firstChild.type==e);if(!a)return!1;let s=a.startIndex;if(s==0)return!1;let o=a.parent,f=o.child(s-1);if(f.type!=e)return!1;if(n){let m=f.lastChild&&f.lastChild.type==o.type,y=dn.from(m?e.create():null),b=new Ln(dn.from(e.create(null,dn.from(o.type.create(null,y)))),m?3:1,0),T=a.start,x=a.end;n(t.tr.step(new Zo(T-(m?3:1),x,T,x,b,1,!0)).scrollIntoView())}return!0}}function uk(e){const{state:t,transaction:n}=e;let{selection:r}=n,{doc:i}=n,{storedMarks:a}=n;return{...t,apply:t.apply.bind(t),applyTransaction:t.applyTransaction.bind(t),plugins:t.plugins,schema:t.schema,reconfigure:t.reconfigure.bind(t),toJSON:t.toJSON.bind(t),get storedMarks(){return a},get selection(){return r},get doc(){return i},get tr(){return r=n.selection,i=n.doc,a=n.storedMarks,n}}}class ck{constructor(t){this.editor=t.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=t.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:t,editor:n,state:r}=this,{view:i}=n,{tr:a}=r,s=this.buildProps(a);return Object.fromEntries(Object.entries(t).map(([o,f])=>[o,(...y)=>{const b=f(...y)(s);return!a.getMeta("preventDispatch")&&!this.hasCustomState&&i.dispatch(a),b}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(t,n=!0){const{rawCommands:r,editor:i,state:a}=this,{view:s}=i,o=[],f=!!t,m=t||a.tr,y=()=>(!f&&n&&!m.getMeta("preventDispatch")&&!this.hasCustomState&&s.dispatch(m),o.every(T=>T===!0)),b={...Object.fromEntries(Object.entries(r).map(([T,x])=>[T,(...A)=>{const N=this.buildProps(m,n),O=x(...A)(N);return o.push(O),b}])),run:y};return b}createCan(t){const{rawCommands:n,state:r}=this,i=!1,a=t||r.tr,s=this.buildProps(a,i);return{...Object.fromEntries(Object.entries(n).map(([f,m])=>[f,(...y)=>m(...y)({...s,dispatch:void 0})])),chain:()=>this.createChain(a,i)}}buildProps(t,n=!0){const{rawCommands:r,editor:i,state:a}=this,{view:s}=i,o={tr:t,editor:i,view:s,state:uk({state:a,transaction:t}),dispatch:n?()=>{}:void 0,chain:()=>this.createChain(t,n),can:()=>this.createCan(t),get commands(){return Object.fromEntries(Object.entries(r).map(([f,m])=>[f,(...y)=>m(...y)(o)]))}};return o}}class a7e{constructor(){this.callbacks={}}on(t,n){return this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t].push(n),this}emit(t,...n){const r=this.callbacks[t];return r&&r.forEach(i=>i.apply(this,n)),this}off(t,n){const r=this.callbacks[t];return r&&(n?this.callbacks[t]=r.filter(i=>i!==n):delete this.callbacks[t]),this}once(t,n){const r=(...i)=>{this.off(t,r),n.apply(this,i)};return this.on(t,r)}removeAllListeners(){this.callbacks={}}}function Nn(e,t,n){return e.config[t]===void 0&&e.parent?Nn(e.parent,t,n):typeof e.config[t]=="function"?e.config[t].bind({...n,parent:e.parent?Nn(e.parent,t,n):null}):e.config[t]}function dk(e){const t=e.filter(i=>i.type==="extension"),n=e.filter(i=>i.type==="node"),r=e.filter(i=>i.type==="mark");return{baseExtensions:t,nodeExtensions:n,markExtensions:r}}function AZ(e){const t=[],{nodeExtensions:n,markExtensions:r}=dk(e),i=[...n,...r],a={default:null,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return e.forEach(s=>{const o={name:s.name,options:s.options,storage:s.storage,extensions:i},f=Nn(s,"addGlobalAttributes",o);if(!f)return;f().forEach(y=>{y.types.forEach(b=>{Object.entries(y.attributes).forEach(([T,x])=>{t.push({type:b,name:T,attribute:{...a,...x}})})})})}),i.forEach(s=>{const o={name:s.name,options:s.options,storage:s.storage},f=Nn(s,"addAttributes",o);if(!f)return;const m=f();Object.entries(m).forEach(([y,b])=>{const T={...a,...b};typeof T?.default=="function"&&(T.default=T.default()),T?.isRequired&&T?.default===void 0&&delete T.default,t.push({type:s.name,name:y,attribute:T})})}),t}function Ko(e,t){if(typeof e=="string"){if(!t.nodes[e])throw Error(`There is no node type named '${e}'. Maybe you forgot to add the extension?`);return t.nodes[e]}return e}function $d(...e){return e.filter(t=>!!t).reduce((t,n)=>{const r={...t};return Object.entries(n).forEach(([i,a])=>{if(i==="__proto__"){Object.defineProperty(r,i,{configurable:!0,enumerable:!0,value:a,writable:!0});return}if(!r[i]){r[i]=a;return}if(i==="class"){const o=a?String(a).split(" "):[],f=r[i]?r[i].split(" "):[],m=o.filter(y=>!f.includes(y));r[i]=[...f,...m].join(" ")}else if(i==="style"){const o=a?a.split(";").map(y=>y.trim()).filter(Boolean):[],f=r[i]?r[i].split(";").map(y=>y.trim()).filter(Boolean):[],m=new Map;f.forEach(y=>{const[b,T]=y.split(":").map(x=>x.trim());m.set(b,T)}),o.forEach(y=>{const[b,T]=y.split(":").map(x=>x.trim());m.set(b,T)}),r[i]=Array.from(m.entries()).map(([y,b])=>`${y}: ${b}`).join("; ")}else r[i]=a}),r},{})}function fM(e,t){return t.filter(n=>n.type===e.type.name).filter(n=>n.attribute.rendered).map(n=>n.attribute.renderHTML?n.attribute.renderHTML(e.attrs)||{}:{[n.name]:e.attrs[n.name]}).reduce((n,r)=>$d(n,r),{})}function IZ(e){return typeof e=="function"}function Br(e,t=void 0,...n){return IZ(e)?t?e.bind(t)(...n):e(...n):e}function o7e(e={}){return Object.keys(e).length===0&&e.constructor===Object}function s7e(e){return typeof e!="string"?e:e.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(e):e==="true"?!0:e==="false"?!1:e}function RF(e,t){return"style"in e?e:{...e,getAttrs:n=>{const r=e.getAttrs?e.getAttrs(n):e.attrs;if(r===!1)return!1;const i=t.reduce((a,s)=>{const o=s.attribute.parseHTML?s.attribute.parseHTML(n):s7e(n.getAttribute(s.name));return o==null?a:{...a,[s.name]:o}},{});return{...r,...i}}}}function BF(e){return Object.fromEntries(Object.entries(e).filter(([t,n])=>t==="attrs"&&o7e(n)?!1:n!=null))}function l7e(e,t){var n;const r=AZ(e),{nodeExtensions:i,markExtensions:a}=dk(e),s=(n=i.find(m=>Nn(m,"topNode")))===null||n===void 0?void 0:n.name,o=Object.fromEntries(i.map(m=>{const y=r.filter(O=>O.type===m.name),b={name:m.name,options:m.options,storage:m.storage,editor:t},T=e.reduce((O,I)=>{const U=Nn(I,"extendNodeSchema",b);return{...O,...U?U(m):{}}},{}),x=BF({...T,content:Br(Nn(m,"content",b)),marks:Br(Nn(m,"marks",b)),group:Br(Nn(m,"group",b)),inline:Br(Nn(m,"inline",b)),atom:Br(Nn(m,"atom",b)),selectable:Br(Nn(m,"selectable",b)),draggable:Br(Nn(m,"draggable",b)),code:Br(Nn(m,"code",b)),whitespace:Br(Nn(m,"whitespace",b)),linebreakReplacement:Br(Nn(m,"linebreakReplacement",b)),defining:Br(Nn(m,"defining",b)),isolating:Br(Nn(m,"isolating",b)),attrs:Object.fromEntries(y.map(O=>{var I;return[O.name,{default:(I=O?.attribute)===null||I===void 0?void 0:I.default}]}))}),$=Br(Nn(m,"parseHTML",b));$&&(x.parseDOM=$.map(O=>RF(O,y)));const A=Nn(m,"renderHTML",b);A&&(x.toDOM=O=>A({node:O,HTMLAttributes:fM(O,y)}));const N=Nn(m,"renderText",b);return N&&(x.toText=N),[m.name,x]})),f=Object.fromEntries(a.map(m=>{const y=r.filter(N=>N.type===m.name),b={name:m.name,options:m.options,storage:m.storage,editor:t},T=e.reduce((N,O)=>{const I=Nn(O,"extendMarkSchema",b);return{...N,...I?I(m):{}}},{}),x=BF({...T,inclusive:Br(Nn(m,"inclusive",b)),excludes:Br(Nn(m,"excludes",b)),group:Br(Nn(m,"group",b)),spanning:Br(Nn(m,"spanning",b)),code:Br(Nn(m,"code",b)),attrs:Object.fromEntries(y.map(N=>{var O;return[N.name,{default:(O=N?.attribute)===null||O===void 0?void 0:O.default}]}))}),$=Br(Nn(m,"parseHTML",b));$&&(x.parseDOM=$.map(N=>RF(N,y)));const A=Nn(m,"renderHTML",b);return A&&(x.toDOM=N=>A({mark:N,HTMLAttributes:fM(N,y)})),[m.name,x]}));return new vY({topNode:s,nodes:o,marks:f})}function F8(e,t){return t.nodes[e]||t.marks[e]||null}function FF(e,t){return Array.isArray(t)?t.some(n=>(typeof n=="string"?n:n.name)===e.name):t}function g7(e,t){const n=m1.fromSchema(t).serializeFragment(e),i=document.implementation.createHTMLDocument().createElement("div");return i.appendChild(n),i.innerHTML}const u7e=(e,t=500)=>{let n="";const r=e.parentOffset;return e.parent.nodesBetween(Math.max(0,r-t),r,(i,a,s,o)=>{var f,m;const y=((m=(f=i.type.spec).toText)===null||m===void 0?void 0:m.call(f,{node:i,pos:a,parent:s,index:o}))||i.textContent||"%leaf%";n+=i.isAtom&&!i.isText?y:y.slice(0,Math.max(0,r-a))}),n};function y7(e){return Object.prototype.toString.call(e)==="[object RegExp]"}class fk{constructor(t){this.find=t.find,this.handler=t.handler}}const c7e=(e,t)=>{if(y7(t))return t.exec(e);const n=t(e);if(!n)return null;const r=[n.text];return r.index=n.index,r.input=e,r.data=n.data,n.replaceWith&&(n.text.includes(n.replaceWith),r.push(n.replaceWith)),r};function gS(e){var t;const{editor:n,from:r,to:i,text:a,rules:s,plugin:o}=e,{view:f}=n;if(f.composing)return!1;const m=f.state.doc.resolve(r);if(m.parent.type.spec.code||!((t=m.nodeBefore||m.nodeAfter)===null||t===void 0)&&t.marks.find(T=>T.type.spec.code))return!1;let y=!1;const b=u7e(m)+a;return s.forEach(T=>{if(y)return;const x=c7e(b,T.find);if(!x)return;const $=f.state.tr,A=uk({state:f.state,transaction:$}),N={from:r-(x[0].length-a.length),to:i},{commands:O,chain:I,can:U}=new ck({editor:n,state:A});T.handler({state:A,range:N,match:x,commands:O,chain:I,can:U})===null||!$.steps.length||($.setMeta(o,{transform:$,from:r,to:i,text:a}),f.dispatch($),y=!0)}),y}function d7e(e){const{editor:t,rules:n}=e,r=new Tu({state:{init(){return null},apply(i,a,s){const o=i.getMeta(r);if(o)return o;const f=i.getMeta("applyInputRules");return f&&setTimeout(()=>{let{text:y}=f;typeof y=="string"?y=y:y=g7(dn.from(y),s.schema);const{from:b}=f,T=b+y.length;gS({editor:t,from:b,to:T,text:y,rules:n,plugin:r})}),i.selectionSet||i.docChanged?null:a}},props:{handleTextInput(i,a,s,o){return gS({editor:t,from:a,to:s,text:o,rules:n,plugin:r})},handleDOMEvents:{compositionend:i=>(setTimeout(()=>{const{$cursor:a}=i.state.selection;a&&gS({editor:t,from:a.pos,to:a.pos,text:"",rules:n,plugin:r})}),!1)},handleKeyDown(i,a){if(a.key!=="Enter")return!1;const{$cursor:s}=i.state.selection;return s?gS({editor:t,from:s.pos,to:s.pos,text:`
844`,rules:n,plugin:r}):!1}},isInputRules:!0});return r}function f7e(e){return Object.prototype.toString.call(e).slice(8,-1)}function yS(e){return f7e(e)!=="Object"?!1:e.constructor===Object&&Object.getPrototypeOf(e)===Object.prototype}function hk(e,t){const n={...e};return yS(e)&&yS(t)&&Object.keys(t).forEach(r=>{yS(t[r])&&yS(e[r])?n[r]=hk(e[r],t[r]):n[r]=t[r]}),n}class D_{constructor(t={}){this.type="mark",this.name="mark",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...t},this.name=this.config.name,t.defaultOptions&&Object.keys(t.defaultOptions).length>0,this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=Br(Nn(this,"addOptions",{name:this.name}))),this.storage=Br(Nn(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(t={}){return new D_(t)}configure(t={}){const n=this.extend({...this.config,addOptions:()=>hk(this.options,t)});return n.name=this.name,n.parent=this.parent,n}extend(t={}){const n=new D_(t);return n.parent=this,this.child=n,n.name=t.name?t.name:n.parent.name,t.defaultOptions&&Object.keys(t.defaultOptions).length>0,n.options=Br(Nn(n,"addOptions",{name:n.name})),n.storage=Br(Nn(n,"addStorage",{name:n.name,options:n.options})),n}static handleExit({editor:t,mark:n}){const{tr:r}=t.state,i=t.state.selection.$from;if(i.pos===i.end()){const s=i.marks();if(!!!s.find(m=>m?.type.name===n.name))return!1;const f=s.find(m=>m?.type.name===n.name);return f&&r.removeStoredMark(f),r.insertText(" ",i.pos),t.view.dispatch(r),!0}return!1}}function h7e(e){return typeof e=="number"}class p7e{constructor(t){this.find=t.find,this.handler=t.handler}}const m7e=(e,t,n)=>{if(y7(t))return[...e.matchAll(t)];const r=t(e,n);return r?r.map(i=>{const a=[i.text];return a.index=i.index,a.input=e,a.data=i.data,i.replaceWith&&(i.text.includes(i.replaceWith),a.push(i.replaceWith)),a}):[]};function g7e(e){const{editor:t,state:n,from:r,to:i,rule:a,pasteEvent:s,dropEvent:o}=e,{commands:f,chain:m,can:y}=new ck({editor:t,state:n}),b=[];return n.doc.nodesBetween(r,i,(x,$)=>{if(!x.isTextblock||x.type.spec.code)return;const A=Math.max(r,$),N=Math.min(i,$+x.content.size),O=x.textBetween(A-$,N-$,void 0,"");m7e(O,a.find,s).forEach(U=>{if(U.index===void 0)return;const B=A+U.index+1,q=B+U[0].length,Q={from:n.tr.mapping.map(B),to:n.tr.mapping.map(q)},ee=a.handler({state:n,range:Q,match:U,commands:f,chain:m,can:y,pasteEvent:s,dropEvent:o});b.push(ee)})}),b.every(x=>x!==null)}let vS=null;const y7e=e=>{var t;const n=new ClipboardEvent("paste",{clipboardData:new DataTransfer});return(t=n.clipboardData)===null||t===void 0||t.setData("text/html",e),n};function v7e(e){const{editor:t,rules:n}=e;let r=null,i=!1,a=!1,s=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,o;try{o=typeof DragEvent<"u"?new DragEvent("drop"):null}catch{o=null}const f=({state:y,from:b,to:T,rule:x,pasteEvt:$})=>{const A=y.tr,N=uk({state:y,transaction:A});if(!(!g7e({editor:t,state:N,from:Math.max(b-1,0),to:T.b-1,rule:x,pasteEvent:$,dropEvent:o})||!A.steps.length)){try{o=typeof DragEvent<"u"?new DragEvent("drop"):null}catch{o=null}return s=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,A}};return n.map(y=>new Tu({view(b){const T=$=>{var A;r=!((A=b.dom.parentElement)===null||A===void 0)&&A.contains($.target)?b.dom.parentElement:null,r&&(vS=t)},x=()=>{vS&&(vS=null)};return window.addEventListener("dragstart",T),window.addEventListener("dragend",x),{destroy(){window.removeEventListener("dragstart",T),window.removeEventListener("dragend",x)}}},props:{handleDOMEvents:{drop:(b,T)=>{if(a=r===b.dom.parentElement,o=T,!a){const x=vS;x?.isEditable&&setTimeout(()=>{const $=x.state.selection;$&&x.commands.deleteRange({from:$.from,to:$.to})},10)}return!1},paste:(b,T)=>{var x;const $=(x=T.clipboardData)===null||x===void 0?void 0:x.getData("text/html");return s=T,i=!!$?.includes("data-pm-slice"),!1}}},appendTransaction:(b,T,x)=>{const $=b[0],A=$.getMeta("uiEvent")==="paste"&&!i,N=$.getMeta("uiEvent")==="drop"&&!a,O=$.getMeta("applyPasteRules"),I=!!O;if(!A&&!N&&!I)return;if(I){let{text:q}=O;typeof q=="string"?q=q:q=g7(dn.from(q),x.schema);const{from:Q}=O,ee=Q+q.length,Y=y7e(q);return f({rule:y,state:x,from:Q,to:{b:ee},pasteEvt:Y})}const U=T.doc.content.findDiffStart(x.doc.content),B=T.doc.content.findDiffEnd(x.doc.content);if(!(!h7e(U)||!B||U===B.b))return f({rule:y,state:x,from:U,to:B,pasteEvt:s})}}))}function _7e(e){const t=e.filter((n,r)=>e.indexOf(n)!==r);return Array.from(new Set(t))}class Gv{constructor(t,n){this.splittableMarks=[],this.editor=n,this.extensions=Gv.resolve(t),this.schema=l7e(this.extensions,n),this.setupExtensions()}static resolve(t){const n=Gv.sort(Gv.flatten(t));return _7e(n.map(i=>i.name)).length,n}static flatten(t){return t.map(n=>{const r={name:n.name,options:n.options,storage:n.storage},i=Nn(n,"addExtensions",r);return i?[n,...this.flatten(i())]:n}).flat(10)}static sort(t){return t.sort((r,i)=>{const a=Nn(r,"priority")||100,s=Nn(i,"priority")||100;return a>s?-1:a<s?1:0})}get commands(){return this.extensions.reduce((t,n)=>{const r={name:n.name,options:n.options,storage:n.storage,editor:this.editor,type:F8(n.name,this.schema)},i=Nn(n,"addCommands",r);return i?{...t,...i()}:t},{})}get plugins(){const{editor:t}=this,n=Gv.sort([...this.extensions].reverse()),r=[],i=[],a=n.map(s=>{const o={name:s.name,options:s.options,storage:s.storage,editor:t,type:F8(s.name,this.schema)},f=[],m=Nn(s,"addKeyboardShortcuts",o);let y={};if(s.type==="mark"&&Nn(s,"exitable",o)&&(y.ArrowRight=()=>D_.handleExit({editor:t,mark:s})),m){const A=Object.fromEntries(Object.entries(m()).map(([N,O])=>[N,()=>O({editor:t})]));y={...y,...A}}const b=BIe(y);f.push(b);const T=Nn(s,"addInputRules",o);FF(s,t.options.enableInputRules)&&T&&r.push(...T());const x=Nn(s,"addPasteRules",o);FF(s,t.options.enablePasteRules)&&x&&i.push(...x());const $=Nn(s,"addProseMirrorPlugins",o);if($){const A=$();f.push(...A)}return f}).flat();return[d7e({editor:t,rules:r}),...v7e({editor:t,rules:i}),...a]}get attributes(){return AZ(this.extensions)}get nodeViews(){const{editor:t}=this,{nodeExtensions:n}=dk(this.extensions);return Object.fromEntries(n.filter(r=>!!Nn(r,"addNodeView")).map(r=>{const i=this.attributes.filter(f=>f.type===r.name),a={name:r.name,options:r.options,storage:r.storage,editor:t,type:Ko(r.name,this.schema)},s=Nn(r,"addNodeView",a);if(!s)return[];const o=(f,m,y,b,T)=>{const x=fM(f,i);return s()({node:f,view:m,getPos:y,decorations:b,innerDecorations:T,editor:t,extension:r,HTMLAttributes:x})};return[r.name,o]}))}setupExtensions(){this.extensions.forEach(t=>{var n;this.editor.extensionStorage[t.name]=t.storage;const r={name:t.name,options:t.options,storage:t.storage,editor:this.editor,type:F8(t.name,this.schema)};t.type==="mark"&&(!((n=Br(Nn(t,"keepOnSplit",r)))!==null&&n!==void 0)||n)&&this.splittableMarks.push(t.name);const i=Nn(t,"onBeforeCreate",r),a=Nn(t,"onCreate",r),s=Nn(t,"onUpdate",r),o=Nn(t,"onSelectionUpdate",r),f=Nn(t,"onTransaction",r),m=Nn(t,"onFocus",r),y=Nn(t,"onBlur",r),b=Nn(t,"onDestroy",r);i&&this.editor.on("beforeCreate",i),a&&this.editor.on("create",a),s&&this.editor.on("update",s),o&&this.editor.on("selectionUpdate",o),f&&this.editor.on("transaction",f),m&&this.editor.on("focus",m),y&&this.editor.on("blur",y),b&&this.editor.on("destroy",b)})}}class vc{constructor(t={}){this.type="extension",this.name="extension",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...t},this.name=this.config.name,t.defaultOptions&&Object.keys(t.defaultOptions).length>0,this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=Br(Nn(this,"addOptions",{name:this.name}))),this.storage=Br(Nn(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(t={}){return new vc(t)}configure(t={}){const n=this.extend({...this.config,addOptions:()=>hk(this.options,t)});return n.name=this.name,n.parent=this.parent,n}extend(t={}){const n=new vc({...this.config,...t});return n.parent=this,this.child=n,n.name=t.name?t.name:n.parent.name,t.defaultOptions&&Object.keys(t.defaultOptions).length>0,n.options=Br(Nn(n,"addOptions",{name:n.name})),n.storage=Br(Nn(n,"addStorage",{name:n.name,options:n.options})),n}}function DZ(e,t,n){const{from:r,to:i}=t,{blockSeparator:a=`
845
846`,textSerializers:s={}}=n||{};let o="";return e.nodesBetween(r,i,(f,m,y,b)=>{var T;f.isBlock&&m>r&&(o+=a);const x=s?.[f.type.name];if(x)return y&&(o+=x({node:f,pos:m,parent:y,index:b,range:t})),!1;f.isText&&(o+=(T=f?.text)===null||T===void 0?void 0:T.slice(Math.max(r,m)-m,i-m))}),o}function LZ(e){return Object.fromEntries(Object.entries(e.nodes).filter(([,t])=>t.spec.toText).map(([t,n])=>[t,n.spec.toText]))}const b7e=vc.create({name:"clipboardTextSerializer",addOptions(){return{blockSeparator:void 0}},addProseMirrorPlugins(){return[new Tu({key:new qf("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:e}=this,{state:t,schema:n}=e,{doc:r,selection:i}=t,{ranges:a}=i,s=Math.min(...a.map(y=>y.$from.pos)),o=Math.max(...a.map(y=>y.$to.pos)),f=LZ(n);return DZ(r,{from:s,to:o},{...this.options.blockSeparator!==void 0?{blockSeparator:this.options.blockSeparator}:{},textSerializers:f})}}})]}}),x7e=()=>({editor:e,view:t})=>(requestAnimationFrame(()=>{var n;e.isDestroyed||(t.dom.blur(),(n=window?.getSelection())===null||n===void 0||n.removeAllRanges())}),!0),w7e=(e=!1)=>({commands:t})=>t.setContent("",e),S7e=()=>({state:e,tr:t,dispatch:n})=>{const{selection:r}=t,{ranges:i}=r;return n&&i.forEach(({$from:a,$to:s})=>{e.doc.nodesBetween(a.pos,s.pos,(o,f)=>{if(o.type.isText)return;const{doc:m,mapping:y}=t,b=m.resolve(y.map(f)),T=m.resolve(y.map(f+o.nodeSize)),x=b.blockRange(T);if(!x)return;const $=ob(x);if(o.type.isTextblock){const{defaultType:A}=b.parent.contentMatchAt(b.index());t.setNodeMarkup(x.start,A)}($||$===0)&&t.lift(x,$)})}),!0},C7e=e=>t=>e(t),T7e=()=>({state:e,dispatch:t})=>EZ(e,t),k7e=(e,t)=>({editor:n,tr:r})=>{const{state:i}=n,a=i.doc.slice(e.from,e.to);r.deleteRange(e.from,e.to);const s=r.mapping.map(t);return r.insert(s,a.content),r.setSelection(new Pr(r.doc.resolve(Math.max(s-1,0)))),!0},E7e=()=>({tr:e,dispatch:t})=>{const{selection:n}=e,r=n.$anchor.node();if(r.content.size>0)return!1;const i=e.selection.$anchor;for(let a=i.depth;a>0;a-=1)if(i.node(a).type===r.type){if(t){const o=i.before(a),f=i.after(a);e.delete(o,f).scrollIntoView()}return!0}return!1},P7e=e=>({tr:t,state:n,dispatch:r})=>{const i=Ko(e,n.schema),a=t.selection.$anchor;for(let s=a.depth;s>0;s-=1)if(a.node(s).type===i){if(r){const f=a.before(s),m=a.after(s);t.delete(f,m).scrollIntoView()}return!0}return!1},$7e=e=>({tr:t,dispatch:n})=>{const{from:r,to:i}=e;return n&&t.delete(r,i),!0},M7e=()=>({state:e,dispatch:t})=>d7(e,t),A7e=()=>({commands:e})=>e.keyboardShortcut("Enter"),I7e=()=>({state:e,dispatch:t})=>UIe(e,t);function oC(e,t,n={strict:!0}){const r=Object.keys(t);return r.length?r.every(i=>n.strict?t[i]===e[i]:y7(t[i])?t[i].test(e[i]):t[i]===e[i]):!0}function OZ(e,t,n={}){return e.find(r=>r.type===t&&oC(Object.fromEntries(Object.keys(n).map(i=>[i,r.attrs[i]])),n))}function zF(e,t,n={}){return!!OZ(e,t,n)}function v7(e,t,n){var r;if(!e||!t)return;let i=e.parent.childAfter(e.parentOffset);if((!i.node||!i.node.marks.some(y=>y.type===t))&&(i=e.parent.childBefore(e.parentOffset)),!i.node||!i.node.marks.some(y=>y.type===t)||(n=n||((r=i.node.marks[0])===null||r===void 0?void 0:r.attrs),!OZ([...i.node.marks],t,n)))return;let s=i.index,o=e.start()+i.offset,f=s+1,m=o+i.node.nodeSize;for(;s>0&&zF([...e.parent.child(s-1).marks],t,n);)s-=1,o-=e.parent.child(s).nodeSize;for(;f<e.parent.childCount&&zF([...e.parent.child(f).marks],t,n);)m+=e.parent.child(f).nodeSize,f+=1;return{from:o,to:m}}function qg(e,t){if(typeof e=="string"){if(!t.marks[e])throw Error(`There is no mark type named '${e}'. Maybe you forgot to add the extension?`);return t.marks[e]}return e}const D7e=(e,t={})=>({tr:n,state:r,dispatch:i})=>{const a=qg(e,r.schema),{doc:s,selection:o}=n,{$from:f,from:m,to:y}=o;if(i){const b=v7(f,a,t);if(b&&b.from<=m&&b.to>=y){const T=Pr.create(s,b.from,b.to);n.setSelection(T)}}return!0},L7e=e=>t=>{const n=typeof e=="function"?e(t):e;for(let r=0;r<n.length;r+=1)if(n[r](t))return!0;return!1};function RZ(e){return e instanceof Pr}function Ey(e=0,t=0,n=0){return Math.min(Math.max(e,t),n)}function BZ(e,t=null){if(!t)return null;const n=Wr.atStart(e),r=Wr.atEnd(e);if(t==="start"||t===!0)return n;if(t==="end")return r;const i=n.from,a=r.to;return t==="all"?Pr.create(e,Ey(0,i,a),Ey(e.content.size,i,a)):Pr.create(e,Ey(t,i,a),Ey(t,i,a))}function NF(){return navigator.platform==="Android"||/android/i.test(navigator.userAgent)}function sC(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}function O7e(){return typeof navigator<"u"?/^((?!chrome|android).)*safari/i.test(navigator.userAgent):!1}const R7e=(e=null,t={})=>({editor:n,view:r,tr:i,dispatch:a})=>{t={scrollIntoView:!0,...t};const s=()=>{(sC()||NF())&&r.dom.focus(),requestAnimationFrame(()=>{n.isDestroyed||(r.focus(),O7e()&&!sC()&&!NF()&&r.dom.focus({preventScroll:!0}))})};if(r.hasFocus()&&e===null||e===!1)return!0;if(a&&e===null&&!RZ(n.state.selection))return s(),!0;const o=BZ(i.doc,e)||n.state.selection,f=n.state.selection.eq(o);return a&&(f||i.setSelection(o),f&&i.storedMarks&&i.setStoredMarks(i.storedMarks),s()),!0},B7e=(e,t)=>n=>e.every((r,i)=>t(r,{...n,index:i})),F7e=(e,t)=>({tr:n,commands:r})=>r.insertContentAt({from:n.selection.from,to:n.selection.to},e,t),FZ=e=>{const t=e.childNodes;for(let n=t.length-1;n>=0;n-=1){const r=t[n];r.nodeType===3&&r.nodeValue&&/^(\n\s\s|\n)$/.test(r.nodeValue)?e.removeChild(r):r.nodeType===1&&FZ(r)}return e};function _S(e){const t=`<body>${e}</body>`,n=new window.DOMParser().parseFromString(t,"text/html").body;return FZ(n)}function lw(e,t,n){if(e instanceof fg||e instanceof dn)return e;n={slice:!0,parseOptions:{},...n};const r=typeof e=="object"&&e!==null,i=typeof e=="string";if(r)try{if(Array.isArray(e)&&e.length>0)return dn.fromArray(e.map(o=>t.nodeFromJSON(o)));const s=t.nodeFromJSON(e);return n.errorOnInvalidContent&&s.check(),s}catch(a){if(n.errorOnInvalidContent)throw new Error("[tiptap error]: Invalid JSON content",{cause:a});return lw("",t,n)}if(i){if(n.errorOnInvalidContent){let s=!1,o="";const f=new vY({topNode:t.spec.topNode,marks:t.spec.marks,nodes:t.spec.nodes.append({__tiptap__private__unknown__catch__all__node:{content:"inline*",group:"block",parseDOM:[{tag:"*",getAttrs:m=>(s=!0,o=typeof m=="string"?m:m.outerHTML,null)}]}})});if(n.slice?hx.fromSchema(f).parseSlice(_S(e),n.parseOptions):hx.fromSchema(f).parse(_S(e),n.parseOptions),n.errorOnInvalidContent&&s)throw new Error("[tiptap error]: Invalid HTML content",{cause:new Error(`Invalid element found: ${o}`)})}const a=hx.fromSchema(t);return n.slice?a.parseSlice(_S(e),n.parseOptions).content:a.parse(_S(e),n.parseOptions)}return lw("",t,n)}function z7e(e,t,n){const r=e.steps.length-1;if(r<t)return;const i=e.steps[r];if(!(i instanceof so||i instanceof Zo))return;const a=e.mapping.maps[r];let s=0;a.forEach((o,f,m,y)=>{s===0&&(s=y)}),e.setSelection(Wr.near(e.doc.resolve(s),n))}const N7e=e=>!("type"in e),V7e=(e,t,n)=>({tr:r,dispatch:i,editor:a})=>{var s;if(i){n={parseOptions:a.options.parseOptions,updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...n};let o;const f=N=>{a.emit("contentError",{editor:a,error:N,disableCollaboration:()=>{a.storage.collaboration&&(a.storage.collaboration.isDisabled=!0)}})},m={preserveWhitespace:"full",...n.parseOptions};if(!n.errorOnInvalidContent&&!a.options.enableContentCheck&&a.options.emitContentError)try{lw(t,a.schema,{parseOptions:m,errorOnInvalidContent:!0})}catch(N){f(N)}try{o=lw(t,a.schema,{parseOptions:m,errorOnInvalidContent:(s=n.errorOnInvalidContent)!==null&&s!==void 0?s:a.options.enableContentCheck})}catch(N){return f(N),!1}let{from:y,to:b}=typeof e=="number"?{from:e,to:e}:{from:e.from,to:e.to},T=!0,x=!0;if((N7e(o)?o:[o]).forEach(N=>{N.check(),T=T?N.isText&&N.marks.length===0:!1,x=x?N.isBlock:!1}),y===b&&x){const{parent:N}=r.doc.resolve(y);N.isTextblock&&!N.type.spec.code&&!N.childCount&&(y-=1,b+=1)}let A;if(T){if(Array.isArray(t))A=t.map(N=>N.text||"").join("");else if(t instanceof dn){let N="";t.forEach(O=>{O.text&&(N+=O.text)}),A=N}else typeof t=="object"&&t&&t.text?A=t.text:A=t;r.insertText(A,y,b)}else A=o,r.replaceWith(y,b,A);n.updateSelection&&z7e(r,r.steps.length-1,-1),n.applyInputRules&&r.setMeta("applyInputRules",{from:y,text:A}),n.applyPasteRules&&r.setMeta("applyPasteRules",{from:y,text:A})}return!0},q7e=()=>({state:e,dispatch:t})=>VIe(e,t),j7e=()=>({state:e,dispatch:t})=>qIe(e,t),U7e=()=>({state:e,dispatch:t})=>bZ(e,t),H7e=()=>({state:e,dispatch:t})=>CZ(e,t),W7e=()=>({state:e,dispatch:t,tr:n})=>{try{const r=ik(e.doc,e.selection.$from.pos,-1);return r==null?!1:(n.join(r,2),t&&t(n),!0)}catch{return!1}},G7e=()=>({state:e,dispatch:t,tr:n})=>{try{const r=ik(e.doc,e.selection.$from.pos,1);return r==null?!1:(n.join(r,2),t&&t(n),!0)}catch{return!1}},Y7e=()=>({state:e,dispatch:t})=>zIe(e,t),Z7e=()=>({state:e,dispatch:t})=>NIe(e,t);function zZ(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function K7e(e){const t=e.split(/-(?!$)/);let n=t[t.length-1];n==="Space"&&(n=" ");let r,i,a,s;for(let o=0;o<t.length-1;o+=1){const f=t[o];if(/^(cmd|meta|m)$/i.test(f))s=!0;else if(/^a(lt)?$/i.test(f))r=!0;else if(/^(c|ctrl|control)$/i.test(f))i=!0;else if(/^s(hift)?$/i.test(f))a=!0;else if(/^mod$/i.test(f))sC()||zZ()?s=!0:i=!0;else throw new Error(`Unrecognized modifier name: ${f}`)}return r&&(n=`Alt-${n}`),i&&(n=`Ctrl-${n}`),s&&(n=`Meta-${n}`),a&&(n=`Shift-${n}`),n}const X7e=e=>({editor:t,view:n,tr:r,dispatch:i})=>{const a=K7e(e).split(/-(?!$)/),s=a.find(m=>!["Alt","Ctrl","Meta","Shift"].includes(m)),o=new KeyboardEvent("keydown",{key:s==="Space"?" ":s,altKey:a.includes("Alt"),ctrlKey:a.includes("Ctrl"),metaKey:a.includes("Meta"),shiftKey:a.includes("Shift"),bubbles:!0,cancelable:!0}),f=t.captureTransaction(()=>{n.someProp("handleKeyDown",m=>m(n,o))});return f?.steps.forEach(m=>{const y=m.map(r.mapping);y&&i&&r.maybeStep(y)}),!0};function uw(e,t,n={}){const{from:r,to:i,empty:a}=e.selection,s=t?Ko(t,e.schema):null,o=[];e.doc.nodesBetween(r,i,(b,T)=>{if(b.isText)return;const x=Math.max(r,T),$=Math.min(i,T+b.nodeSize);o.push({node:b,from:x,to:$})});const f=i-r,m=o.filter(b=>s?s.name===b.node.type.name:!0).filter(b=>oC(b.node.attrs,n,{strict:!1}));return a?!!m.length:m.reduce((b,T)=>b+T.to-T.from,0)>=f}const J7e=(e,t={})=>({state:n,dispatch:r})=>{const i=Ko(e,n.schema);return uw(n,i,t)?jIe(n,r):!1},Q7e=()=>({state:e,dispatch:t})=>PZ(e,t),e9e=e=>({state:t,dispatch:n})=>{const r=Ko(e,t.schema);return t7e(r)(t,n)},t9e=()=>({state:e,dispatch:t})=>kZ(e,t);function pk(e,t){return t.nodes[e]?"node":t.marks[e]?"mark":null}function VF(e,t){const n=typeof t=="string"?[t]:t;return Object.keys(e).reduce((r,i)=>(n.includes(i)||(r[i]=e[i]),r),{})}const n9e=(e,t)=>({tr:n,state:r,dispatch:i})=>{let a=null,s=null;const o=pk(typeof e=="string"?e:e.name,r.schema);return o?(o==="node"&&(a=Ko(e,r.schema)),o==="mark"&&(s=qg(e,r.schema)),i&&n.selection.ranges.forEach(f=>{r.doc.nodesBetween(f.$from.pos,f.$to.pos,(m,y)=>{a&&a===m.type&&n.setNodeMarkup(y,void 0,VF(m.attrs,t)),s&&m.marks.length&&m.marks.forEach(b=>{s===b.type&&n.addMark(y,y+m.nodeSize,s.create(VF(b.attrs,t)))})})}),!0):!1},r9e=()=>({tr:e,dispatch:t})=>(t&&e.scrollIntoView(),!0),i9e=()=>({tr:e,dispatch:t})=>{if(t){const n=new gu(e.doc);e.setSelection(n)}return!0},a9e=()=>({state:e,dispatch:t})=>wZ(e,t),o9e=()=>({state:e,dispatch:t})=>TZ(e,t),s9e=()=>({state:e,dispatch:t})=>GIe(e,t),l9e=()=>({state:e,dispatch:t})=>KIe(e,t),u9e=()=>({state:e,dispatch:t})=>ZIe(e,t);function hM(e,t,n={},r={}){return lw(e,t,{slice:!1,parseOptions:n,errorOnInvalidContent:r.errorOnInvalidContent})}const c9e=(e,t=!1,n={},r={})=>({editor:i,tr:a,dispatch:s,commands:o})=>{var f,m;const{doc:y}=a;if(n.preserveWhitespace!=="full"){const b=hM(e,i.schema,n,{errorOnInvalidContent:(f=r.errorOnInvalidContent)!==null&&f!==void 0?f:i.options.enableContentCheck});return s&&a.replaceWith(0,y.content.size,b).setMeta("preventUpdate",!t),!0}return s&&a.setMeta("preventUpdate",!t),o.insertContentAt({from:0,to:y.content.size},e,{parseOptions:n,errorOnInvalidContent:(m=r.errorOnInvalidContent)!==null&&m!==void 0?m:i.options.enableContentCheck})};function NZ(e,t){const n=qg(t,e.schema),{from:r,to:i,empty:a}=e.selection,s=[];a?(e.storedMarks&&s.push(...e.storedMarks),s.push(...e.selection.$head.marks())):e.doc.nodesBetween(r,i,f=>{s.push(...f.marks)});const o=s.find(f=>f.type.name===n.name);return o?{...o.attrs}:{}}function d9e(e,t){const n=new DY(e);return t.forEach(r=>{r.steps.forEach(i=>{n.step(i)})}),n}function f9e(e){for(let t=0;t<e.edgeCount;t+=1){const{type:n}=e.edge(t);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}function h9e(e,t,n){const r=[];return e.nodesBetween(t.from,t.to,(i,a)=>{n(i)&&r.push({node:i,pos:a})}),r}function p9e(e,t){for(let n=e.depth;n>0;n-=1){const r=e.node(n);if(t(r))return{pos:n>0?e.before(n):0,start:e.start(n),depth:n,node:r}}}function _7(e){return t=>p9e(t.$from,e)}function m9e(e,t){const n={from:0,to:e.content.size};return DZ(e,n,t)}function g9e(e,t){const n=Ko(t,e.schema),{from:r,to:i}=e.selection,a=[];e.doc.nodesBetween(r,i,o=>{a.push(o)});const s=a.reverse().find(o=>o.type.name===n.name);return s?{...s.attrs}:{}}function VZ(e,t){const n=pk(typeof t=="string"?t:t.name,e.schema);return n==="node"?g9e(e,t):n==="mark"?NZ(e,t):{}}function y9e(e,t=JSON.stringify){const n={};return e.filter(r=>{const i=t(r);return Object.prototype.hasOwnProperty.call(n,i)?!1:n[i]=!0})}function v9e(e){const t=y9e(e);return t.length===1?t:t.filter((n,r)=>!t.filter((a,s)=>s!==r).some(a=>n.oldRange.from>=a.oldRange.from&&n.oldRange.to<=a.oldRange.to&&n.newRange.from>=a.newRange.from&&n.newRange.to<=a.newRange.to))}function _9e(e){const{mapping:t,steps:n}=e,r=[];return t.maps.forEach((i,a)=>{const s=[];if(i.ranges.length)i.forEach((o,f)=>{s.push({from:o,to:f})});else{const{from:o,to:f}=n[a];if(o===void 0||f===void 0)return;s.push({from:o,to:f})}s.forEach(({from:o,to:f})=>{const m=t.slice(a).map(o,-1),y=t.slice(a).map(f),b=t.invert().map(m,-1),T=t.invert().map(y);r.push({oldRange:{from:b,to:T},newRange:{from:m,to:y}})})}),v9e(r)}function b7(e,t,n){const r=[];return e===t?n.resolve(e).marks().forEach(i=>{const a=n.resolve(e),s=v7(a,i.type);s&&r.push({mark:i,...s})}):n.nodesBetween(e,t,(i,a)=>{!i||i?.nodeSize===void 0||r.push(...i.marks.map(s=>({from:a,to:a+i.nodeSize,mark:s})))}),r}function YS(e,t,n){return Object.fromEntries(Object.entries(n).filter(([r])=>{const i=e.find(a=>a.type===t&&a.name===r);return i?i.attribute.keepOnSplit:!1}))}function pM(e,t,n={}){const{empty:r,ranges:i}=e.selection,a=t?qg(t,e.schema):null;if(r)return!!(e.storedMarks||e.selection.$from.marks()).filter(b=>a?a.name===b.type.name:!0).find(b=>oC(b.attrs,n,{strict:!1}));let s=0;const o=[];if(i.forEach(({$from:b,$to:T})=>{const x=b.pos,$=T.pos;e.doc.nodesBetween(x,$,(A,N)=>{if(!A.isText&&!A.marks.length)return;const O=Math.max(x,N),I=Math.min($,N+A.nodeSize),U=I-O;s+=U,o.push(...A.marks.map(B=>({mark:B,from:O,to:I})))})}),s===0)return!1;const f=o.filter(b=>a?a.name===b.mark.type.name:!0).filter(b=>oC(b.mark.attrs,n,{strict:!1})).reduce((b,T)=>b+T.to-T.from,0),m=o.filter(b=>a?b.mark.type!==a&&b.mark.type.excludes(a):!0).reduce((b,T)=>b+T.to-T.from,0);return(f>0?f+m:f)>=s}function b9e(e,t,n={}){if(!t)return uw(e,null,n)||pM(e,null,n);const r=pk(t,e.schema);return r==="node"?uw(e,t,n):r==="mark"?pM(e,t,n):!1}function qF(e,t){const{nodeExtensions:n}=dk(t),r=n.find(s=>s.name===e);if(!r)return!1;const i={name:r.name,options:r.options,storage:r.storage},a=Br(Nn(r,"group",i));return typeof a!="string"?!1:a.split(" ").includes("list")}function x7(e,{checkChildren:t=!0,ignoreWhitespace:n=!1}={}){var r;if(n){if(e.type.name==="hardBreak")return!0;if(e.isText)return/^\s*$/m.test((r=e.text)!==null&&r!==void 0?r:"")}if(e.isText)return!e.text;if(e.isAtom||e.isLeaf)return!1;if(e.content.childCount===0)return!0;if(t){let i=!0;return e.content.forEach(a=>{i!==!1&&(x7(a,{ignoreWhitespace:n,checkChildren:t})||(i=!1))}),i}return!1}function x9e(e,t,n){var r;const{selection:i}=t;let a=null;if(RZ(i)&&(a=i.$cursor),a){const o=(r=e.storedMarks)!==null&&r!==void 0?r:a.marks();return!!n.isInSet(o)||!o.some(f=>f.type.excludes(n))}const{ranges:s}=i;return s.some(({$from:o,$to:f})=>{let m=o.depth===0?e.doc.inlineContent&&e.doc.type.allowsMarkType(n):!1;return e.doc.nodesBetween(o.pos,f.pos,(y,b,T)=>{if(m)return!1;if(y.isInline){const x=!T||T.type.allowsMarkType(n),$=!!n.isInSet(y.marks)||!y.marks.some(A=>A.type.excludes(n));m=x&&$}return!m}),m})}const w9e=(e,t={})=>({tr:n,state:r,dispatch:i})=>{const{selection:a}=n,{empty:s,ranges:o}=a,f=qg(e,r.schema);if(i)if(s){const m=NZ(r,f);n.addStoredMark(f.create({...m,...t}))}else o.forEach(m=>{const y=m.$from.pos,b=m.$to.pos;r.doc.nodesBetween(y,b,(T,x)=>{const $=Math.max(x,y),A=Math.min(x+T.nodeSize,b);T.marks.find(O=>O.type===f)?T.marks.forEach(O=>{f===O.type&&n.addMark($,A,f.create({...O.attrs,...t}))}):n.addMark($,A,f.create(t))})});return x9e(r,n,f)},S9e=(e,t)=>({tr:n})=>(n.setMeta(e,t),!0),C9e=(e,t={})=>({state:n,dispatch:r,chain:i})=>{const a=Ko(e,n.schema);let s;return n.selection.$anchor.sameParent(n.selection.$head)&&(s=n.selection.$anchor.parent.attrs),a.isTextblock?i().command(({commands:o})=>OF(a,{...s,...t})(n)?!0:o.clearNodes()).command(({state:o})=>OF(a,{...s,...t})(o,r)).run():!1},T9e=e=>({tr:t,dispatch:n})=>{if(n){const{doc:r}=t,i=Ey(e,0,r.content.size),a=ar.create(r,i);t.setSelection(a)}return!0},k9e=e=>({tr:t,dispatch:n})=>{if(n){const{doc:r}=t,{from:i,to:a}=typeof e=="number"?{from:e,to:e}:e,s=Pr.atStart(r).from,o=Pr.atEnd(r).to,f=Ey(i,s,o),m=Ey(a,s,o),y=Pr.create(r,f,m);t.setSelection(y)}return!0},E9e=e=>({state:t,dispatch:n})=>{const r=Ko(e,t.schema);return i7e(r)(t,n)};function jF(e,t){const n=e.storedMarks||e.selection.$to.parentOffset&&e.selection.$from.marks();if(n){const r=n.filter(i=>t?.includes(i.type.name));e.tr.ensureMarks(r)}}const P9e=({keepMarks:e=!0}={})=>({tr:t,state:n,dispatch:r,editor:i})=>{const{selection:a,doc:s}=t,{$from:o,$to:f}=a,m=i.extensionManager.attributes,y=YS(m,o.node().type.name,o.node().attrs);if(a instanceof ar&&a.node.isBlock)return!o.parentOffset||!pp(s,o.pos)?!1:(r&&(e&&jF(n,i.extensionManager.splittableMarks),t.split(o.pos).scrollIntoView()),!0);if(!o.parent.isBlock)return!1;const b=f.parentOffset===f.parent.content.size,T=o.depth===0?void 0:f9e(o.node(-1).contentMatchAt(o.indexAfter(-1)));let x=b&&T?[{type:T,attrs:y}]:void 0,$=pp(t.doc,t.mapping.map(o.pos),1,x);if(!x&&!$&&pp(t.doc,t.mapping.map(o.pos),1,T?[{type:T}]:void 0)&&($=!0,x=T?[{type:T,attrs:y}]:void 0),r){if($&&(a instanceof Pr&&t.deleteSelection(),t.split(t.mapping.map(o.pos),1,x),T&&!b&&!o.parentOffset&&o.parent.type!==T)){const A=t.mapping.map(o.before()),N=t.doc.resolve(A);o.node(-1).canReplaceWith(N.index(),N.index()+1,T)&&t.setNodeMarkup(t.mapping.map(o.before()),T)}e&&jF(n,i.extensionManager.splittableMarks),t.scrollIntoView()}return $},$9e=(e,t={})=>({tr:n,state:r,dispatch:i,editor:a})=>{var s;const o=Ko(e,r.schema),{$from:f,$to:m}=r.selection,y=r.selection.node;if(y&&y.isBlock||f.depth<2||!f.sameParent(m))return!1;const b=f.node(-1);if(b.type!==o)return!1;const T=a.extensionManager.attributes;if(f.parent.content.size===0&&f.node(-1).childCount===f.indexAfter(-1)){if(f.depth===2||f.node(-3).type!==o||f.index(-2)!==f.node(-2).childCount-1)return!1;if(i){let O=dn.empty;const I=f.index(-1)?1:f.index(-2)?2:3;for(let Y=f.depth-I;Y>=f.depth-3;Y-=1)O=dn.from(f.node(Y).copy(O));const U=f.indexAfter(-1)<f.node(-2).childCount?1:f.indexAfter(-2)<f.node(-3).childCount?2:3,B={...YS(T,f.node().type.name,f.node().attrs),...t},q=((s=o.contentMatch.defaultType)===null||s===void 0?void 0:s.createAndFill(B))||void 0;O=O.append(dn.from(o.createAndFill(null,q)||void 0));const Q=f.before(f.depth-(I-1));n.replace(Q,f.after(-U),new Ln(O,4-I,0));let ee=-1;n.doc.nodesBetween(Q,n.doc.content.size,(Y,z)=>{if(ee>-1)return!1;Y.isTextblock&&Y.content.size===0&&(ee=z+1)}),ee>-1&&n.setSelection(Pr.near(n.doc.resolve(ee))),n.scrollIntoView()}return!0}const x=m.pos===f.end()?b.contentMatchAt(0).defaultType:null,$={...YS(T,b.type.name,b.attrs),...t},A={...YS(T,f.node().type.name,f.node().attrs),...t};n.delete(f.pos,m.pos);const N=x?[{type:o,attrs:$},{type:x,attrs:A}]:[{type:o,attrs:$}];if(!pp(n.doc,f.pos,2))return!1;if(i){const{selection:O,storedMarks:I}=r,{splittableMarks:U}=a.extensionManager,B=I||O.$to.parentOffset&&O.$from.marks();if(n.split(f.pos,2,N).scrollIntoView(),!B||!i)return!0;const q=B.filter(Q=>U.includes(Q.type.name));n.ensureMarks(q)}return!0},z8=(e,t)=>{const n=_7(s=>s.type===t)(e.selection);if(!n)return!0;const r=e.doc.resolve(Math.max(0,n.pos-1)).before(n.depth);if(r===void 0)return!0;const i=e.doc.nodeAt(r);return n.node.type===i?.type&&Ng(e.doc,n.pos)&&e.join(n.pos),!0},N8=(e,t)=>{const n=_7(s=>s.type===t)(e.selection);if(!n)return!0;const r=e.doc.resolve(n.start).after(n.depth);if(r===void 0)return!0;const i=e.doc.nodeAt(r);return n.node.type===i?.type&&Ng(e.doc,r)&&e.join(r),!0},M9e=(e,t,n,r={})=>({editor:i,tr:a,state:s,dispatch:o,chain:f,commands:m,can:y})=>{const{extensions:b,splittableMarks:T}=i.extensionManager,x=Ko(e,s.schema),$=Ko(t,s.schema),{selection:A,storedMarks:N}=s,{$from:O,$to:I}=A,U=O.blockRange(I),B=N||A.$to.parentOffset&&A.$from.marks();if(!U)return!1;const q=_7(Q=>qF(Q.type.name,b))(A);if(U.depth>=1&&q&&U.depth-q.depth<=1){if(q.node.type===x)return m.liftListItem($);if(qF(q.node.type.name,b)&&x.validContent(q.node.content)&&o)return f().command(()=>(a.setNodeMarkup(q.pos,x),!0)).command(()=>z8(a,x)).command(()=>N8(a,x)).run()}return!n||!B||!o?f().command(()=>y().wrapInList(x,r)?!0:m.clearNodes()).wrapInList(x,r).command(()=>z8(a,x)).command(()=>N8(a,x)).run():f().command(()=>{const Q=y().wrapInList(x,r),ee=B.filter(Y=>T.includes(Y.type.name));return a.ensureMarks(ee),Q?!0:m.clearNodes()}).wrapInList(x,r).command(()=>z8(a,x)).command(()=>N8(a,x)).run()},A9e=(e,t={},n={})=>({state:r,commands:i})=>{const{extendEmptyMarkRange:a=!1}=n,s=qg(e,r.schema);return pM(r,s,t)?i.unsetMark(s,{extendEmptyMarkRange:a}):i.setMark(s,t)},I9e=(e,t,n={})=>({state:r,commands:i})=>{const a=Ko(e,r.schema),s=Ko(t,r.schema),o=uw(r,a,n);let f;return r.selection.$anchor.sameParent(r.selection.$head)&&(f=r.selection.$anchor.parent.attrs),o?i.setNode(s,f):i.setNode(a,{...f,...n})},D9e=(e,t={})=>({state:n,commands:r})=>{const i=Ko(e,n.schema);return uw(n,i,t)?r.lift(i):r.wrapIn(i,t)},L9e=()=>({state:e,dispatch:t})=>{const n=e.plugins;for(let r=0;r<n.length;r+=1){const i=n[r];let a;if(i.spec.isInputRules&&(a=i.getState(e))){if(t){const s=e.tr,o=a.transform;for(let f=o.steps.length-1;f>=0;f-=1)s.step(o.steps[f].invert(o.docs[f]));if(a.text){const f=s.doc.resolve(a.from).marks();s.replaceWith(a.from,a.to,e.schema.text(a.text,f))}else s.delete(a.from,a.to)}return!0}}return!1},O9e=()=>({tr:e,dispatch:t})=>{const{selection:n}=e,{empty:r,ranges:i}=n;return r||t&&i.forEach(a=>{e.removeMark(a.$from.pos,a.$to.pos)}),!0},R9e=(e,t={})=>({tr:n,state:r,dispatch:i})=>{var a;const{extendEmptyMarkRange:s=!1}=t,{selection:o}=n,f=qg(e,r.schema),{$from:m,empty:y,ranges:b}=o;if(!i)return!0;if(y&&s){let{from:T,to:x}=o;const $=(a=m.marks().find(N=>N.type===f))===null||a===void 0?void 0:a.attrs,A=v7(m,f,$);A&&(T=A.from,x=A.to),n.removeMark(T,x,f)}else b.forEach(T=>{n.removeMark(T.$from.pos,T.$to.pos,f)});return n.removeStoredMark(f),!0},B9e=(e,t={})=>({tr:n,state:r,dispatch:i})=>{let a=null,s=null;const o=pk(typeof e=="string"?e:e.name,r.schema);return o?(o==="node"&&(a=Ko(e,r.schema)),o==="mark"&&(s=qg(e,r.schema)),i&&n.selection.ranges.forEach(f=>{const m=f.$from.pos,y=f.$to.pos;let b,T,x,$;n.selection.empty?r.doc.nodesBetween(m,y,(A,N)=>{a&&a===A.type&&(x=Math.max(N,m),$=Math.min(N+A.nodeSize,y),b=N,T=A)}):r.doc.nodesBetween(m,y,(A,N)=>{N<m&&a&&a===A.type&&(x=Math.max(N,m),$=Math.min(N+A.nodeSize,y),b=N,T=A),N>=m&&N<=y&&(a&&a===A.type&&n.setNodeMarkup(N,void 0,{...A.attrs,...t}),s&&A.marks.length&&A.marks.forEach(O=>{if(s===O.type){const I=Math.max(N,m),U=Math.min(N+A.nodeSize,y);n.addMark(I,U,s.create({...O.attrs,...t}))}}))}),T&&(b!==void 0&&n.setNodeMarkup(b,void 0,{...T.attrs,...t}),s&&T.marks.length&&T.marks.forEach(A=>{s===A.type&&n.addMark(x,$,s.create({...A.attrs,...t}))}))}),!0):!1},F9e=(e,t={})=>({state:n,dispatch:r})=>{const i=Ko(e,n.schema);return XIe(i,t)(n,r)},z9e=(e,t={})=>({state:n,dispatch:r})=>{const i=Ko(e,n.schema);return JIe(i,t)(n,r)};var N9e=Object.freeze({__proto__:null,blur:x7e,clearContent:w7e,clearNodes:S7e,command:C7e,createParagraphNear:T7e,cut:k7e,deleteCurrentNode:E7e,deleteNode:P7e,deleteRange:$7e,deleteSelection:M7e,enter:A7e,exitCode:I7e,extendMarkRange:D7e,first:L7e,focus:R7e,forEach:B7e,insertContent:F7e,insertContentAt:V7e,joinBackward:U7e,joinDown:j7e,joinForward:H7e,joinItemBackward:W7e,joinItemForward:G7e,joinTextblockBackward:Y7e,joinTextblockForward:Z7e,joinUp:q7e,keyboardShortcut:X7e,lift:J7e,liftEmptyBlock:Q7e,liftListItem:e9e,newlineInCode:t9e,resetAttributes:n9e,scrollIntoView:r9e,selectAll:i9e,selectNodeBackward:a9e,selectNodeForward:o9e,selectParentNode:s9e,selectTextblockEnd:l9e,selectTextblockStart:u9e,setContent:c9e,setMark:w9e,setMeta:S9e,setNode:C9e,setNodeSelection:T9e,setTextSelection:k9e,sinkListItem:E9e,splitBlock:P9e,splitListItem:$9e,toggleList:M9e,toggleMark:A9e,toggleNode:I9e,toggleWrap:D9e,undoInputRule:L9e,unsetAllMarks:O9e,unsetMark:R9e,updateAttributes:B9e,wrapIn:F9e,wrapInList:z9e});const V9e=vc.create({name:"commands",addCommands(){return{...N9e}}}),q9e=vc.create({name:"drop",addProseMirrorPlugins(){return[new Tu({key:new qf("tiptapDrop"),props:{handleDrop:(e,t,n,r)=>{this.editor.emit("drop",{editor:this.editor,event:t,slice:n,moved:r})}}})]}}),j9e=vc.create({name:"editable",addProseMirrorPlugins(){return[new Tu({key:new qf("editable"),props:{editable:()=>this.editor.options.editable}})]}}),U9e=new qf("focusEvents"),H9e=vc.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:e}=this;return[new Tu({key:U9e,props:{handleDOMEvents:{focus:(t,n)=>{e.isFocused=!0;const r=e.state.tr.setMeta("focus",{event:n}).setMeta("addToHistory",!1);return t.dispatch(r),!1},blur:(t,n)=>{e.isFocused=!1;const r=e.state.tr.setMeta("blur",{event:n}).setMeta("addToHistory",!1);return t.dispatch(r),!1}}}})]}}),W9e=vc.create({name:"keymap",addKeyboardShortcuts(){const e=()=>this.editor.commands.first(({commands:s})=>[()=>s.undoInputRule(),()=>s.command(({tr:o})=>{const{selection:f,doc:m}=o,{empty:y,$anchor:b}=f,{pos:T,parent:x}=b,$=b.parent.isTextblock&&T>0?o.doc.resolve(T-1):b,A=$.parent.type.spec.isolating,N=b.pos-b.parentOffset,O=A&&$.parent.childCount===1?N===b.pos:Wr.atStart(m).from===T;return!y||!x.type.isTextblock||x.textContent.length||!O||O&&b.parent.type.name==="paragraph"?!1:s.clearNodes()}),()=>s.deleteSelection(),()=>s.joinBackward(),()=>s.selectNodeBackward()]),t=()=>this.editor.commands.first(({commands:s})=>[()=>s.deleteSelection(),()=>s.deleteCurrentNode(),()=>s.joinForward(),()=>s.selectNodeForward()]),r={Enter:()=>this.editor.commands.first(({commands:s})=>[()=>s.newlineInCode(),()=>s.createParagraphNear(),()=>s.liftEmptyBlock(),()=>s.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:e,"Mod-Backspace":e,"Shift-Backspace":e,Delete:t,"Mod-Delete":t,"Mod-a":()=>this.editor.commands.selectAll()},i={...r},a={...r,"Ctrl-h":e,"Alt-Backspace":e,"Ctrl-d":t,"Ctrl-Alt-Backspace":t,"Alt-Delete":t,"Alt-d":t,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return sC()||zZ()?a:i},addProseMirrorPlugins(){return[new Tu({key:new qf("clearDocument"),appendTransaction:(e,t,n)=>{if(e.some(A=>A.getMeta("composition")))return;const r=e.some(A=>A.docChanged)&&!t.doc.eq(n.doc),i=e.some(A=>A.getMeta("preventClearDocument"));if(!r||i)return;const{empty:a,from:s,to:o}=t.selection,f=Wr.atStart(t.doc).from,m=Wr.atEnd(t.doc).to;if(a||!(s===f&&o===m)||!x7(n.doc))return;const T=n.tr,x=uk({state:n,transaction:T}),{commands:$}=new ck({editor:this.editor,state:x});if($.clearNodes(),!!T.steps.length)return T}})]}}),G9e=vc.create({name:"paste",addProseMirrorPlugins(){return[new Tu({key:new qf("tiptapPaste"),props:{handlePaste:(e,t,n)=>{this.editor.emit("paste",{editor:this.editor,event:t,slice:n})}}})]}}),Y9e=vc.create({name:"tabindex",addProseMirrorPlugins(){return[new Tu({key:new qf("tabindex"),props:{attributes:()=>this.editor.isEditable?{tabindex:"0"}:{}}})]}});class _y{get name(){return this.node.type.name}constructor(t,n,r=!1,i=null){this.currentNode=null,this.actualDepth=null,this.isBlock=r,this.resolvedPos=t,this.editor=n,this.currentNode=i}get node(){return this.currentNode||this.resolvedPos.node()}get element(){return this.editor.view.domAtPos(this.pos).node}get depth(){var t;return(t=this.actualDepth)!==null&&t!==void 0?t:this.resolvedPos.depth}get pos(){return this.resolvedPos.pos}get content(){return this.node.content}set content(t){let n=this.from,r=this.to;if(this.isBlock){if(this.content.size===0)return;n=this.from+1,r=this.to-1}this.editor.commands.insertContentAt({from:n,to:r},t)}get attributes(){return this.node.attrs}get textContent(){return this.node.textContent}get size(){return this.node.nodeSize}get from(){return this.isBlock?this.pos:this.resolvedPos.start(this.resolvedPos.depth)}get range(){return{from:this.from,to:this.to}}get to(){return this.isBlock?this.pos+this.size:this.resolvedPos.end(this.resolvedPos.depth)+(this.node.isText?0:1)}get parent(){if(this.depth===0)return null;const t=this.resolvedPos.start(this.resolvedPos.depth-1),n=this.resolvedPos.doc.resolve(t);return new _y(n,this.editor)}get before(){let t=this.resolvedPos.doc.resolve(this.from-(this.isBlock?1:2));return t.depth!==this.depth&&(t=this.resolvedPos.doc.resolve(this.from-3)),new _y(t,this.editor)}get after(){let t=this.resolvedPos.doc.resolve(this.to+(this.isBlock?2:1));return t.depth!==this.depth&&(t=this.resolvedPos.doc.resolve(this.to+3)),new _y(t,this.editor)}get children(){const t=[];return this.node.content.forEach((n,r)=>{const i=n.isBlock&&!n.isTextblock,a=n.isAtom&&!n.isText,s=this.pos+r+(a?0:1);if(s<0||s>this.resolvedPos.doc.nodeSize-2)return;const o=this.resolvedPos.doc.resolve(s);if(!i&&o.depth<=this.depth)return;const f=new _y(o,this.editor,i,i?n:null);i&&(f.actualDepth=this.depth+1),t.push(new _y(o,this.editor,i,i?n:null))}),t}get firstChild(){return this.children[0]||null}get lastChild(){const t=this.children;return t[t.length-1]||null}closest(t,n={}){let r=null,i=this.parent;for(;i&&!r;){if(i.node.type.name===t)if(Object.keys(n).length>0){const a=i.node.attrs,s=Object.keys(n);for(let o=0;o<s.length;o+=1){const f=s[o];if(a[f]!==n[f])break}}else r=i;i=i.parent}return r}querySelector(t,n={}){return this.querySelectorAll(t,n,!0)[0]||null}querySelectorAll(t,n={},r=!1){let i=[];if(!this.children||this.children.length===0)return i;const a=Object.keys(n);return this.children.forEach(s=>{r&&i.length>0||(s.node.type.name===t&&a.every(f=>n[f]===s.node.attrs[f])&&i.push(s),!(r&&i.length>0)&&(i=i.concat(s.querySelectorAll(t,n,r))))}),i}setAttribute(t){const{tr:n}=this.editor.state;n.setNodeMarkup(this.from,void 0,{...this.node.attrs,...t}),this.editor.view.dispatch(n)}}const Z9e=`.ProseMirror {
847  position: relative;
848}
849
850.ProseMirror {
851  word-wrap: break-word;
852  white-space: pre-wrap;
853  white-space: break-spaces;
854  -webkit-font-variant-ligatures: none;
855  font-variant-ligatures: none;
856  font-feature-settings: "liga" 0; /* the above doesn't seem to work in Edge */
857}
858
859.ProseMirror [contenteditable="false"] {
860  white-space: normal;
861}
862
863.ProseMirror [contenteditable="false"] [contenteditable="true"] {
864  white-space: pre-wrap;
865}
866
867.ProseMirror pre {
868  white-space: pre-wrap;
869}
870
871img.ProseMirror-separator {
872  display: inline !important;
873  border: none !important;
874  margin: 0 !important;
875  width: 0 !important;
876  height: 0 !important;
877}
878
879.ProseMirror-gapcursor {
880  display: none;
881  pointer-events: none;
882  position: absolute;
883  margin: 0;
884}
885
886.ProseMirror-gapcursor:after {
887  content: "";
888  display: block;
889  position: absolute;
890  top: -2px;
891  width: 20px;
892  border-top: 1px solid black;
893  animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;
894}
895
896@keyframes ProseMirror-cursor-blink {
897  to {
898    visibility: hidden;
899  }
900}
901
902.ProseMirror-hideselection *::selection {
903  background: transparent;
904}
905
906.ProseMirror-hideselection *::-moz-selection {
907  background: transparent;
908}
909
910.ProseMirror-hideselection * {
911  caret-color: transparent;
912}
913
914.ProseMirror-focused .ProseMirror-gapcursor {
915  display: block;
916}
917
918.tippy-box[data-animation=fade][data-state=hidden] {
919  opacity: 0
920}`;function K9e(e,t,n){const r=document.querySelector("style[data-tiptap-style]");if(r!==null)return r;const i=document.createElement("style");return t&&i.setAttribute("nonce",t),i.setAttribute("data-tiptap-style",""),i.innerHTML=e,document.getElementsByTagName("head")[0].appendChild(i),i}let X9e=class extends a7e{constructor(t={}){super(),this.isFocused=!1,this.isInitialized=!1,this.extensionStorage={},this.options={element:document.createElement("div"),content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,editorProps:{},parseOptions:{},coreExtensionOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,enableContentCheck:!1,emitContentError:!1,onBeforeCreate:()=>null,onCreate:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null,onContentError:({error:n})=>{throw n},onPaste:()=>null,onDrop:()=>null},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.setOptions(t),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.on("contentError",this.options.onContentError),this.createView(),this.injectCSS(),this.on("create",this.options.onCreate),this.on("update",this.options.onUpdate),this.on("selectionUpdate",this.options.onSelectionUpdate),this.on("transaction",this.options.onTransaction),this.on("focus",this.options.onFocus),this.on("blur",this.options.onBlur),this.on("destroy",this.options.onDestroy),this.on("drop",({event:n,slice:r,moved:i})=>this.options.onDrop(n,r,i)),this.on("paste",({event:n,slice:r})=>this.options.onPaste(n,r)),window.setTimeout(()=>{this.isDestroyed||(this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}),this.isInitialized=!0)},0)}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager.chain()}can(){return this.commandManager.can()}injectCSS(){this.options.injectCSS&&document&&(this.css=K9e(Z9e,this.options.injectNonce))}setOptions(t={}){this.options={...this.options,...t},!(!this.view||!this.state||this.isDestroyed)&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(t,n=!0){this.setOptions({editable:t}),n&&this.emit("update",{editor:this,transaction:this.state.tr})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get state(){return this.view.state}registerPlugin(t,n){const r=IZ(n)?n(t,[...this.state.plugins]):[...this.state.plugins,t],i=this.state.reconfigure({plugins:r});return this.view.updateState(i),i}unregisterPlugin(t){if(this.isDestroyed)return;const n=this.state.plugins;let r=n;if([].concat(t).forEach(a=>{const s=typeof a=="string"?`${a}$`:a.key;r=r.filter(o=>!o.key.startsWith(s))}),n.length===r.length)return;const i=this.state.reconfigure({plugins:r});return this.view.updateState(i),i}createExtensionManager(){var t,n;const i=[...this.options.enableCoreExtensions?[j9e,b7e.configure({blockSeparator:(n=(t=this.options.coreExtensionOptions)===null||t===void 0?void 0:t.clipboardTextSerializer)===null||n===void 0?void 0:n.blockSeparator}),V9e,H9e,W9e,Y9e,q9e,G9e].filter(a=>typeof this.options.enableCoreExtensions=="object"?this.options.enableCoreExtensions[a.name]!==!1:!0):[],...this.options.extensions].filter(a=>["extension","node","mark"].includes(a?.type));this.extensionManager=new Gv(i,this)}createCommandManager(){this.commandManager=new ck({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createView(){var t;let n;try{n=hM(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:this.options.enableContentCheck})}catch(s){if(!(s instanceof Error)||!["[tiptap error]: Invalid JSON content","[tiptap error]: Invalid HTML content"].includes(s.message))throw s;this.emit("contentError",{editor:this,error:s,disableCollaboration:()=>{this.storage.collaboration&&(this.storage.collaboration.isDisabled=!0),this.options.extensions=this.options.extensions.filter(o=>o.name!=="collaboration"),this.createExtensionManager()}}),n=hM(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:!1})}const r=BZ(n,this.options.autofocus);this.view=new vZ(this.options.element,{...this.options.editorProps,attributes:{role:"textbox",...(t=this.options.editorProps)===null||t===void 0?void 0:t.attributes},dispatchTransaction:this.dispatchTransaction.bind(this),state:Wv.create({doc:n,selection:r||void 0})});const i=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(i),this.createNodeViews(),this.prependClass();const a=this.view.dom;a.editor=this}createNodeViews(){this.view.isDestroyed||this.view.setProps({nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className=`tiptap ${this.view.dom.className}`}captureTransaction(t){this.isCapturingTransaction=!0,t(),this.isCapturingTransaction=!1;const n=this.capturedTransaction;return this.capturedTransaction=null,n}dispatchTransaction(t){if(this.view.isDestroyed)return;if(this.isCapturingTransaction){if(!this.capturedTransaction){this.capturedTransaction=t;return}t.steps.forEach(s=>{var o;return(o=this.capturedTransaction)===null||o===void 0?void 0:o.step(s)});return}const n=this.state.apply(t),r=!this.state.selection.eq(n.selection);this.emit("beforeTransaction",{editor:this,transaction:t,nextState:n}),this.view.updateState(n),this.emit("transaction",{editor:this,transaction:t}),r&&this.emit("selectionUpdate",{editor:this,transaction:t});const i=t.getMeta("focus"),a=t.getMeta("blur");i&&this.emit("focus",{editor:this,event:i.event,transaction:t}),a&&this.emit("blur",{editor:this,event:a.event,transaction:t}),!(!t.docChanged||t.getMeta("preventUpdate"))&&this.emit("update",{editor:this,transaction:t})}getAttributes(t){return VZ(this.state,t)}isActive(t,n){const r=typeof t=="string"?t:null,i=typeof t=="string"?n:t;return b9e(this.state,r,i)}getJSON(){return this.state.doc.toJSON()}getHTML(){return g7(this.state.doc.content,this.schema)}getText(t){const{blockSeparator:n=`
921
922`,textSerializers:r={}}=t||{};return m9e(this.state.doc,{blockSeparator:n,textSerializers:{...LZ(this.schema),...r}})}get isEmpty(){return x7(this.state.doc)}getCharacterCount(){return this.state.doc.content.size-2}destroy(){if(this.emit("destroy"),this.view){const t=this.view.dom;t&&t.editor&&delete t.editor,this.view.destroy()}this.removeAllListeners()}get isDestroyed(){var t;return!(!((t=this.view)===null||t===void 0)&&t.docView)}$node(t,n){var r;return((r=this.$doc)===null||r===void 0?void 0:r.querySelector(t,n))||null}$nodes(t,n){var r;return((r=this.$doc)===null||r===void 0?void 0:r.querySelectorAll(t,n))||null}$pos(t){const n=this.state.doc.resolve(t);return new _y(n,this)}get $doc(){return this.$pos(0)}};function UF(e){return new fk({find:e.find,handler:({state:t,range:n,match:r})=>{const i=Br(e.getAttributes,void 0,r);if(i===!1||i===null)return null;const{tr:a}=t,s=r[r.length-1],o=r[0];if(s){const f=o.search(/\S/),m=n.from+o.indexOf(s),y=m+s.length;if(b7(n.from,n.to,t.doc).filter(x=>x.mark.type.excluded.find(A=>A===e.type&&A!==x.mark.type)).filter(x=>x.to>m).length)return null;y<n.to&&a.delete(y,n.to),m>n.from&&a.delete(n.from+f,m);const T=n.from+f+s.length;a.addMark(n.from+f,T,e.type.create(i||{})),a.removeStoredMark(e.type)}}})}function J9e(e){return new fk({find:e.find,handler:({state:t,range:n,match:r})=>{const i=t.doc.resolve(n.from),a=Br(e.getAttributes,void 0,r)||{};if(!i.node(-1).canReplaceWith(i.index(-1),i.indexAfter(-1),e.type))return null;t.tr.delete(n.from,n.to).setBlockType(n.from,n.from,e.type,a)}})}function Aa(e){return new fk({find:e.find,handler:({state:t,range:n,match:r})=>{let i=e.replace,a=n.from;const s=n.to;if(r[1]){const o=r[0].lastIndexOf(r[1]);i+=r[0].slice(o+r[1].length),a+=o;const f=a-s;f>0&&(i=r[0].slice(o-f,o)+i,a=s)}t.tr.insertText(i,a,s)}})}function lC(e){return new fk({find:e.find,handler:({state:t,range:n,match:r,chain:i})=>{const a=Br(e.getAttributes,void 0,r)||{},s=t.tr.delete(n.from,n.to),f=s.doc.resolve(n.from).blockRange(),m=f&&e7(f,e.type,a);if(!m)return null;if(s.wrap(f,m),e.keepMarks&&e.editor){const{selection:b,storedMarks:T}=t,{splittableMarks:x}=e.editor.extensionManager,$=T||b.$to.parentOffset&&b.$from.marks();if($){const A=$.filter(N=>x.includes(N.type.name));s.ensureMarks(A)}}
922if(e.keepAttributes){const b=e.type.name==="bulletList"||e.type.name==="orderedList"?"listItem":"taskList";i().updateAttributes(b,a).run()}const y=s.doc.resolve(n.from-1).nodeBefore;y&&y.type===e.type&&Ng(s.doc,n.from-1)&&(!e.joinPredicate||e.joinPredicate(r,y))&&s.join(n.from-1)}})}let jg=class mM{constructor(t={}){this.type="node",this.name="node",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...t},this.name=this.config.name,t.defaultOptions&&Object.keys(t.defaultOptions).length>0,this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=Br(Nn(this,"addOptions",{name:this.name}))),this.storage=Br(Nn(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(t={}){return new mM(t)}configure(t={}){const n=this.extend({...this.config,addOptions:()=>hk(this.options,t)});return n.name=this.name,n.parent=this.parent,n}extend(t={}){const n=new mM(t);return n.parent=this,this.child=n,n.name=t.name?t.name:n.parent.name,t.defaultOptions&&Object.keys(t.defaultOptions).length>0,n.options=Br(Nn(n,"addOptions",{name:n.name})),n.storage=Br(Nn(n,"addStorage",{name:n.name,options:n.options})),n}};function gM(e){return new p7e({find:e.find,handler:({state:t,range:n,match:r,pasteEvent:i})=>{const a=Br(e.getAttributes,void 0,r,i);if(a===!1||a===null)return null;const{tr:s}=t,o=r[r.length-1],f=r[0];let m=n.to;if(o){const y=f.search(/\S/),b=n.from+f.indexOf(o),T=b+o.length;if(b7(n.from,n.to,t.doc).filter($=>$.mark.type.excluded.find(N=>N===e.type&&N!==$.mark.type)).filter($=>$.to>
922b).length)return null;T<n.to&&s.delete(T,n.to),b>n.from&&s.delete(n.from+y,b),m=n.from+y+o.length,s.addMark(n.from+y,m,e.type.create(a||{})),s.removeStoredMark(e.type)}}})}function HF(e){return R_((t,n)=>({get(){return t(),e},set(r){e=r,requestAnimationFrame(()=>{requestAnimationFrame(()=>{n()})})}}))}class Q9e extends X9e{constructor(t={}){return super(t),this.contentComponent=null,this.appContext=null,this.reactiveState=HF(this.view.state),this.reactiveExtensionStorage=HF(this.extensionStorage),this.on("beforeTransaction",({nextState:n})=>{this.reactiveState.value=n,this.reactiveExtensionStorage.value=this.extensionStorage}),O_(this)}get state(){return this.reactiveState?this.reactiveState.value:this.view.state}get storage(){return this.reactiveExtensionStorage?this.reactiveExtensionStorage.value:super.storage}registerPlugin(t,n){const r=super.registerPlugin(t,n);return this.reactiveState&&(this.reactiveState.value=r),r}unregisterPlugin(t){const n=super.unregisterPlugin(t);return this.reactiveState&&n&&(this.reactiveState.value=n),n}}const eDe=Fe({name:"EditorContent",props:{editor:{default:null,type:Object}},setup(e){const t=De(),n=Ci();return ko(()=>{const r=e.editor;r&&r.options.element&&t.value&&ur(()=>{if(!t.value||!r.options.element.firstChild)return;const i=v(t.value);t.value.append(...r.options.element.childNodes),r.contentComponent=n.ctx._,n&&(r.appContext={...n.appContext,provides:n.provides}),r.setOptions({element:i}),r.createNodeViews()})}),xu(()=>{const r=e.editor;r&&(r.contentComponent=null,r.appContext=null)}),{rootEl:t}},render(){return Yn("div",{ref:e=>{this.rootEl=e}})}}),tDe=(e={})=>{const t=Bn();return Hn(()=>{t.value=new Q9e(e)}),xu(()=>{var n,r,i;const a=(n=t.value)===null||n===void 0?void 0:n.options.element,s=a?.cloneNode(!0);(r=a?.parentNode)===null||r===void 0||r.replaceChild(s,a),(i=t.value)===null||i===void 0||i.destroy()}),t},nDe="aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2odyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rck0msd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2
922ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2oodside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",rDe="ελ1υ2бг1ел3дети4ею2католик6ом3мÐ
922ºÐ´2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3Õ°Õ¡Õµ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1ì»´2삼성2한국2",yM="numeric",vM="ascii",_M="alpha",yx="asciinumeric",K2="alphanumeric",bM="domain",qZ="emoji",iDe="scheme",aDe="slashscheme",V8="whitespace";function oDe(e,t){return e in t||(t[e]=[]),t[e]}function Py(e,t,n){t[yM]&&(t[yx]=!0,t[K2]=!0),t[vM]&&(t[yx]=!0,t[_M]=!0),t[yx]&&(t[K2]=!0),t[_M]&&(t[K2]=!0),t[K2]&&(t[bM]=!0),t[qZ]&&(t[bM]=!0);for(const r in t){const i=oDe(r,n);i.indexOf(e)<0&&i.push(e)}}function sDe(e,t){const n={};for(const r in t)t[r].indexOf(e)>=0&&(n[r]=!0);return n}function $l(e=null){this.j={},this.jr=[],this.jd=null,this.t=e}$l.groups={};$l.prototype={accepts(){return!!this.t},go(e){const t=this,n=t.j[e];if(n)return n;for(let r=0;r<t.jr.length;r++){const i=t.jr[r][0],a=t.jr[r][1];if(a&&i.test(e))return a}return t.jd},has(e,t=!1){return t?e in this.j:!!this.go(e)},ta(e,t,n,r){for(let i=0;i<e.length;i++)this.tt(e[i],t,n,r)},tr(e,t,n,r){r=r||$l.groups;let i;return t&&t.j?i=t:(i=new $l(t),n&&r&&Py(t,n,r)),this.jr.push([e,i]),i},ts(e,t,n,r){let i=this;const a=e.length;if(!a)return i;for(let s=0;s<a-1;s++)i=i.tt(e[s]);return i.tt(e[a-1],t,n,r)},tt(e,t,n,r){r=r||$l.groups;const i=this;if(t&&t.j)return i.j[e]=t,t;const a=t;let s,o=i.go(e);if(o?(s=new $l,Object.assign(s.j,o.j),s.jr.push.apply(s.jr,o.jr),s.jd=o.jd,s.t=o.t):s=new $l,a){if(r)if(s.t&&typeof s.t=="string"){const f=Object.assign(sDe(s.t,r),n);Py(a,f,r)}else n&&Py(a,n,r);s.t=a}return i.j[e]=s,s}};const Dr=(e,t,n,r,i)=>e.ta(t,n,r,i),ka=(e,t,n,r,i)=>e.tr(t,n,r,i),WF=(e,t,n,r,i)=>e.ts(t,n,r,i),pn=(e,t,n,r,i)=>e.tt(t,n,r,i),qh="WORD",xM="UWORD",jZ="ASCIINUMERICAL",UZ="ALPHANUMERICAL",cw="LOCALHOST",wM="TLD",SM="UTLD",ZS="SCHEME",jv="SLASH_SCHEME",w7="NUM",CM="WS",S7="NL",vx="OPENBRACE",_x="CLOSEBRACE",uC="OPENBRACKET",cC="CLOSEBRACKET",dC="OPENPAREN",fC="CLOSEPAREN",hC="OPENANGLEBRACKET",pC="CLOSEANGLEBRACKET",mC="FULLWIDTHLEFTPAREN",gC="FULLWIDTHRIGHTPAREN",yC="LEFTCORNERBRACKET",vC="RIGHTCORNERBRACKET",_C="LEFTWHITECORNERBRACKET",bC="RIGHTWHITECORNERBRACKET",xC="FULLWIDTHLESSTHAN",wC="FULLWIDTHGREATERTHAN",SC="AMPERSAND",CC="APOSTROPHE",TC="ASTERISK",Zm="AT",kC="BACKSLASH",EC="BACKTICK",PC="CARET",$y="COLON",C7="COMMA",$C="DOLLAR",yf="DOT",MC="EQUALS",T7="EXCLAMATION",nc="HYPHEN",bx="PERCENT",AC="PIPE",IC="PLUS",DC="POUND",xx="QUERY",k7="QUOTE",HZ="FULLWIDTHMIDDLEDOT",E7="SEMI",vf="SLASH",wx="TILDE",LC="UNDERSCORE",WZ="EMOJI",OC="SYM";var GZ=Object.freeze({__proto__:null,ALPHANUMERICAL:UZ,AMPERSAND:SC,APOSTROPHE:CC,ASCIINUMERICAL:jZ,ASTERISK:TC,AT:Zm,BACKSLASH:kC,BACKTICK:EC,CARET:PC,CLOSEANGLEBRACKET:pC,CLOSEBRACE:_x,CLOSEBRACKET:cC,CLOSEPAREN:fC,COLON:$y,COMMA:C7,DOLLAR:$C,DOT:yf,EMOJI:WZ,EQUALS:MC,EXCLAMATION:T7,FULLWIDTHGREATERTHAN:wC,FULLWIDTHLEFTPAREN:mC,FULLWIDTHLESSTHAN:xC,FULLWIDTHMIDDLEDOT:HZ,FULLWIDTHRIGHTPAREN:gC,HYPHEN:nc,LEFTCORNERBRACKET:yC,LEFTWHITECORNERBRACKET:_C,LOCALHOST:cw,NL:S7,NUM:w7,OPENANGLEBRACKET:hC,OPENBRACE:vx,OPENBRACKET:uC,OPENPAREN:dC,PERCENT:bx,PIPE:AC,PLUS:IC,POUND:DC,QUERY:xx,QUOTE:k7,RIGHTCORNERBRACKET:vC,RIGHTWHITECORNERBRACKET:bC,SCHEME:ZS,SEMI:E7,SLASH:vf,SLASH_SCHEME:jv,SYM:OC,TILDE:wx,TLD:wM,UNDERSCORE:LC,UTLD:SM,UWORD:xM,WORD:qh,WS:CM});const Fh=/[a-z]/,L2=new RegExp("\\p{L}","u"),q8=new RegExp("\\p{Emoji}","u"),zh=/\d/,j8=/\s/,GF="\r",U8=`
923`,lDe="️",uDe="‍",H8="";let bS=null,xS=null;function cDe(e=[]){const t={};$l.groups=t;const n=new $l;bS==null&&(bS=YF(nDe)),xS==null&&(xS=YF(rDe)),pn(n,"'",CC),pn(n,"{",vx),pn(n,"}",_x),pn(n,"[",uC),pn(n,"]",cC),pn(n,"(",dC),pn(n,")",fC),pn(n,"<",hC),pn(n,">",pC),pn(n,"(",mC),pn(n,")",gC),pn(n,"「",yC),pn(n,"」",vC
vendor: 7,716 bytes, line 923
923),pn(n,"『",_C),pn(n,"』",bC),pn(n,"<",xC),pn(n,">",wC),pn(n,"&",SC),pn(n,"*",TC),pn(n,"@",Zm),pn(n,"`",EC),pn(n,"^",PC),pn(n,":",$y),pn(n,",",C7),pn(n,"$",$C),pn(n,".",yf),pn(n,"=",MC),pn(n,"!",T7),pn(n,"-",nc),pn(n,"%",bx),pn(n,"|",AC),pn(n,"+",IC),pn(n,"#",DC),pn(n,"?",xx),pn(n,'"',k7),pn(n,"/",vf),pn(n,";",E7),pn(n,"~",wx),pn(n,"_",LC),pn(n,"\\",kC),pn(n,"・",HZ);const r=ka(n,zh,w7,{[yM]:!0});ka(r,zh,r);const i=ka(r,Fh,jZ,{[yx]:!0}),a=ka(r,L2,UZ,{[K2]:!0}),s=ka(n,Fh,qh,{[vM]:!0});ka(s,zh,i),ka(s,Fh,s),ka(i,zh,i),ka(i,Fh,i);const o=ka(n,L2,xM,{[_M]:!0});ka(o,Fh),ka(o,zh,a),ka(o,L2,o),ka(a,zh,a),ka(a,Fh),ka(a,L2,a);const f=pn(n,U8,S7,{[V8]:!0}),m=pn(n,GF,CM,{[V8]:!0}),y=ka(n,j8,CM,{[V8]:!0});pn(n,H8,y),pn(m,U8,f),pn(m,H8,y),ka(m,j8,y),pn(y,GF),pn(y,U8),ka(y,j8,y),pn(y,H8,y);const b=ka(n,q8,WZ,{[qZ]:!0});pn(b,"#"),ka(b,q8,b),pn(b,lDe,b);const T=pn(b,uDe);pn(T,"#"),ka(T,q8,b);const x=[[Fh,s],[zh,i]],$=[[Fh,null],[L2,o],[zh,a]];for(let A=0;A<bS.length;A++)Nm(n,bS[A],wM,qh,x);for(let A=0;A<xS.length;A++)Nm(n,xS[A],SM,xM,$);Py(wM,{tld:!0,ascii:!0},t),Py(SM,{utld:!0,alpha:!0},t),Nm(n,"file",ZS,qh,x),Nm(n,"mailto",ZS,qh,x),Nm(n,"http",jv,qh,x),Nm(n,"https",jv,qh,x),Nm(n,"ftp",jv,qh,x),Nm(n,"ftps",jv,qh,x),Py(ZS,{scheme:!0,ascii:!0},t),Py(jv,{slashscheme:!0,ascii:!0},t),e=e.sort((A,N)=>A[0]>N[0]?1:-1);for(let A=0;A<e.length;A++){const N=e[A][0],I=e[A][1]?{[iDe]:!0}:{[aDe]:!0};N.indexOf("-")>=0?I[bM]=!0:Fh.test(N)?zh.test(N)?I[yx]=!0:I[vM]=!0:I[yM]=!0,WF(n,N,N,I)}return WF(n,"localhost",cw,{ascii:!0}),n.jd=new $l(OC),{start:n,tokens:Object.assign({groups:t},GZ)}}function YZ(e,t){const n=dDe(t.replace(/[A-Z]/g,o=>o.toLowerCase())),r=n.length,i=[];let a=0,s=0;for(;s<r;){let o=e,f=null,m=0,y=null,b=-1,T=-1;for(;s<r&&(f=o.go(n[s]));)o=f,o.accepts()?(b=0,T=0,y=o):b>=0&&(b+=n[s].length,T++),m+=n[s].length,a+=n[s].length,s++;a-=b,s-=T,m-=b,i.push({t:y.t,v:t.slice(a-m,a),s:a-m,e:a})}return i}function dDe(e){const t=[],n=e.length;let r=0;for(;r<n;){let i=e.charCodeAt(r),a,s=i<55296||i>56319||r+1===n||(a=e.charCodeAt(r+1))<56320||a>57343?e[r]:e.slice(r,r+2);t.push(s),r+=s.length}return t}function Nm(e,t,n,r,i){let a;const s=t.length;for(let o=0;o<s-1;o++){const f=t[o];e.j[f]?a=e.j[f]:(a=new $l(r),a.jr=i.slice(),e.j[f]=a),e=a}return a=new $l(n),a.jr=i.slice(),e.j[t[s-1]]=a,a}function YF(e){const t=[],n=[];let r=0,i="0123456789";for(;r<e.length;){let a=0;for(;i.indexOf(e[r+a])>=0;)a++;if(a>0){t.push(n.join(""));for(let s=parseInt(e.substring(r,r+a),10);s>0;s--)n.pop();r+=a}else n.push(e[r]),r++}return t}const dw={defaultProtocol:"http",events:null,format:ZF,formatHref:ZF,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function P7(e,t=null){let n=Object.assign({},dw);e&&(n=Object.assign(n,e instanceof P7?e.o:e));const r=n.ignoreTags,i=[];for(let a=0;a<r.length;a++)i.push(r[a].toUpperCase());this.o=n,t&&(this.defaultRender=t),this.ignoreTags=i}P7.prototype={o:dw,ignoreTags:[],defaultRender(e){return e},check(e){return this.get("validate",e.toString(),e)},get(e,t,n){const r=t!=null;let i=this.o[e];return i&&(typeof i=="object"?(i=n.t in i?i[n.t]:dw[e],typeof i=="function"&&r&&(i=i(t,n))):typeof i=="function"&&r&&(i=i(t,n.t,n)),i)},getObj(e,t,n){let r=this.o[e];return typeof r=="function"&&t!=null&&(r=r(t,n.t,n)),r},render(e){const t=e.render(this);return(this.get("render",null,e)||this.defaultRender)(t,e.t,e)}};function ZF(e){return e}function ZZ(e,t){this.t="token",this.v=e,this.tk=t}ZZ.prototype={isLink:!1,toString(){return this.v},toHref(e){return this.toString()},toFormattedString(e){const t=this.toString(),n=e.get("truncate",t,this),r=e.get("format",t,this);return n&&r.length>n?r.substring(0,n)+"…":r},toFormattedHref(e){return e.get("formatHref",this.toHref(e.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(e=dw.defaultProtocol){return{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(e),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(e){return{type:this.t,value:this.toFormattedString(e),isLink:this.isLink,href:this.toFormattedHref(e),start:this.startIndex(),end:this.endIndex()}},validate(e){return e.get("validate",this.toString(),this)},render(e){const t=this,n=this.toHref(e.get("defaultProtocol")),r=e.get("formatHref",n,this),i=e.get("tagName",n,t),a=this.toFormattedString(e),s={},o=e.get("className",n,t),f=e.get("target",n,t),m=e.get("rel",n,t),y=e.getObj("attributes",n,t),b=e.getObj("events",n,t);return s.href=r,o&&(s.class=o),f&&(s.target=f),m&&(s.rel=m),y&&Object.assign(s,y),{tagName:i,attributes:s,content:a,eventListeners:b}}};function mk(e,t){class n extends ZZ{constructor(i,a){super(i,a),this.t=e}}for(const r in t)n.prototype[r]=t[r];return n.t=e,n}const fDe=mk("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),KF=mk("text"),hDe=mk("nl"),wS=mk("url",{isLink:!0,toHref(e=dw.defaultProtocol){return this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){const e=this.tk;return e.length>=2&&e[0].t!==cw&&e[1].t===$y}}),Qu=e=>new $l(e);function pDe({groups:e}){const t=e.domain.concat([SC,TC,Zm,kC,EC,PC,$C,MC,nc,w7,bx,AC,IC,DC,vf,OC,wx,LC]),n=[CC,$y,C7,yf,T7,bx,xx,k7,E7,hC,pC,vx,_x,cC,uC,dC,fC,mC,gC,yC,vC,_C,bC,xC,wC],r=[SC,CC,TC,kC,EC,PC,$C,MC,nc,vx,_x,bx,AC,IC,DC,xx,vf,OC,wx,LC],i=Qu(),a=pn(i,wx);Dr(a,r,a),Dr(a,e.domain,a);const s=Qu(),o=Qu(),f=Qu();Dr(i,e.domain,s),Dr(i,e.scheme,o),Dr(i,e.slashscheme,f),Dr(s,r,a),Dr(s,e.domain,s);const m=pn(s,Zm);pn(a,Zm,m),pn(o,Zm,m),pn(f,Zm,m);const y=pn(a,yf);Dr(y,r,a),Dr(y,e.domain,a);const b=Qu();Dr(m,e.domain,b),Dr(b,e.domain,b);const T=pn(b,yf);Dr(T,e.domain,b);const x=Qu(fDe);Dr(T,e.tld,x),Dr(T,e.utld,x),pn(m,cw,x);const $=pn(b,nc);pn($,nc,$),Dr($,e.domain,b),Dr(x,e.domain,b),pn(x,yf,T),pn(x,nc,$);const A=pn(s,nc),N=pn(s,yf);pn(A,nc,A),Dr(A,e.domain,s),Dr(N,r,a),Dr(N,e.domain,s);const O=Qu(wS);Dr(N,e.tld,O),Dr(N,e.utld,O),Dr(O,e.domain,s),Dr(O,r,a),pn(O,yf,N),pn(O,nc,A),pn(O,Zm,m);const I=pn(O,$y),U=Qu(wS);Dr(I,e.numeric,U);const B=Qu(wS),q=Qu();Dr(B,t,B),Dr(B,n,q),Dr(q,t,B),Dr(q,n,q),pn(O,vf,B),pn(U,vf,B);const Q=pn(o,$y),ee=pn(f,$y),Y=pn(ee,vf),z=pn(Y,vf);Dr(o,e.domain,s),pn(o,yf,N),pn(o,nc,A),Dr(f,e.domain,s),pn(f,yf,N),pn(f,nc,A),Dr(Q,e.domain,B),pn(Q,vf,B),pn(Q,xx,B),Dr(z,e.domain,B),Dr(z,t,B),pn(z,vf,B);const H=[[vx,_x],[uC,cC],[dC,fC],[hC,pC],[mC,gC],[yC,vC],[_C,bC],[xC,wC]];for(let K=0;K<H.length;K++){const[ne,le]=H[K],pe=pn(B,ne);pn(q,ne,pe);const ae=Qu(wS);Dr(pe,t,ae);const se=Qu();Dr(pe,n,se),pn(pe,le,B),Dr(ae,t,ae),Dr(ae,n,se),Dr(se,t,ae),Dr(se,n,se),pn(ae,le,B),pn(se,le,B)}return pn(i,cw,O),pn(i,S7,hDe),{start:i,tokens:GZ}}function mDe(e,t,n){let r=n.length,i=0,a=[],s=[];for(;i<r;){let o=e,f=null,m=null,y=0,b=null,T=-1;for(;i<r&&!(f=o.go(n[i].t));)s.push(n[i++]);for(;i<r&&(m=f||o.go(n[i].t));)f=null,o=m,o.accepts()?(T=0,b=o):T>=0&&T++,i++,y++;if(T<0)i-=y,i<r&&(s.push(n[i]),i++);else{s.length>0&&(a.push(W8(KF,t,s)),s=[]),i-=T,y-=T;const x=b.t,$=n.slice(i-y,i);a.push(W8(x,t,$))}}return s.length>0&&a.push(W8(KF,t,s)),a}function W8(e,t,n){const r=n[0].s,i=n[n.length-1].e,a=t.slice(r,i);return new e(a,n)}const gDe=typeof console<"u"&&console&&console.warn||(()=>{}),yDe="until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.",na={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function vDe(){return $l.groups={},na.scanner=null,na.parser=null,na.tokenQueue=[],na.pluginQueue=[],na.customSchemes=[],na.initialized=!1,na}function XF(e,t=!1){if(na.initialized&&gDe(`linkifyjs: already initialized - will not register custom scheme "${e}" ${yDe}
923`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(e))throw new Error(`linkifyjs: incorrect scheme format.
9241. Must only contain digits, lowercase ASCII letters or "-"
9252. Cannot start or end with "-"
9263. "-" cannot repeat`);na.customSchemes.push([e,t])}function _De(){na.scanner=cDe(na.customSchemes);for(let e=0;e<na.tokenQueue.length;e++)na.tokenQueue[e][1]({scanner:na.scanner});na.parser=pDe(na.scanner.tokens);for(let e=0;e<na.pluginQueue.length;e++)na.pluginQueue[e][1]({scanner:na.scanner,parser:na.parser});return na.initialized=!0,na}function $7(e){return na.initialized||_De(),mDe(na.parser.start,e,YZ(na.scanner.start,e))}$7.scan=YZ;function KZ(e,t=null,n=null){if(t&&typeof t=="object"){if(n)throw Error(`linkifyjs: Invalid link type ${t}; must be a string`);n=t,t=null}const r=new P7(n),i=$7(e),a=[];for(let s=0;s<i.length;s++){const o=i[s];o.isLink&&(!t||o.t===t)&&r.check(o)&&a.push(o.toFormattedObject(r))}return a}const M7="[\0-   ᠎ -\u2029  ]",bDe=new RegExp(M7),xDe=new RegExp(`${M7}$`),wDe=new RegExp(M7,"g");function SDe(e){return e.length===1?e[0].isLink:e.length===3&&e[1].isLink?["()","[]"].includes(e[0].value+e[2].value):!1}function CDe(e){return new Tu({key:new qf("autolink"),appendTransaction:(t,n,r)=>{const i=t.some(m=>m.docChanged)&&!n.doc.eq(r.doc),a=t.some(m=>m.getMeta("preventAutolink"));if(!i||a)return;const{tr:s}=r,o=d9e(n.doc,[...t]);if(_9e(o).forEach(({newRange:m})=>{const y=h9e(r.doc,m,x=>x.isTextblock);let b,T;if(y.length>1)b=y[0],T=r.doc.textBetween(b.pos,b.pos+b.node.nodeSize,void 0," ");else if(y.length){const x=r.doc.textBetween(m.from,m.to," "," ");if(!xDe.test(x))return;b=y[0],T=r.doc.textBetween(b.pos,m.to,void 0," ")}if(b&&T){const x=T.split(bDe).filter(Boolean);if(x.length<=0)return!1;const $=x[x.length-1],A=b.pos+T.lastIndexOf($);if(!$)return!1;const N=$7($).map(O=>O.toObject(e.defaultProtocol));if(!SDe(N))return!1;N.filter(O=>O.isLink).map(O=>({...O,from:A+O.start+1,to:A+O.end+1})).filter(O=>r.schema.marks.code?!r.doc.rangeHasMark(O.from,O.to,r.schema.marks.code):!0).filter(O=>e.validate(O.value)).filter(O=>e.shouldAutoLink(O.value)).forEach(O=>{b7(O.from,O.to,r.doc).some(I=>I.mark.type===e.type)||s.addMark(O.from,O.to,e.type.create({href:O.href}))})}}),!!s.steps.length)return s}})}function TDe(e){return new Tu({key:new qf("handleClickLink"),props:{handleClick:(t,n,r)=>{var i,a;if(r.button!==0||!t.editable)return!1;let s=r.target;const o=[];for(;s.nodeName!=="DIV";)o.push(s),s=s.parentNode;if(!o.find(T=>T.nodeName==="A"))return!1;const f=VZ(t.state,e.type.name),m=r.target,y=(i=m?.href)!==null&&i!==void 0?i:f.href,b=(a=m?.target)!==null&&a!==void 0?a:f.target;return m&&y?(window.open(y,b),!0):!1}}})}function kDe(e){return new Tu({key:new qf("handlePasteLink"),props:{handlePaste:(t,n,r)=>{const{state:i}=t,{selection:a}=i,{empty:s}=a;if(s)return!1;let o="";r.content.forEach(m=>{o+=m.textContent});const f=KZ(o,{defaultProtocol:e.defaultProtocol}).find(m=>m.isLink&&m.value===o);return!o||!f?!1:e.editor.commands.setMark(e.type,{href:f.href})}}})}function cy(e,t){const n=["http","https","ftp","ftps","mailto","tel","callto","sms","cid","xmpp"];return t&&t.forEach(r=>{const i=typeof r=="string"?r:r.scheme;i&&n.push(i)}),!e||e.replace(wDe,"").match(new RegExp(`^(?:(?:${n.join("|")}):|[^a-z]|[a-z0-9+.-]+(?:[^a-z+.-:]|$))`,"i"))}const EDe=D_.create({name:"link",priority:1e3,keepOnSplit:!1,exitable:!0,onCreate(){this.options.validate&&!this.options.shouldAutoLink&&(this.options.shouldAutoLink=this.options.validate),this.options.protocols.forEach(e=>{if(typeof e=="string"){XF(e);return}XF(e.scheme,e.optionalSlashes)})},onDestroy(){vDe()},inclusive(){return this.options.autolink},addOptions(){return{openOnClick:!0,linkOnPaste:!0,autolink:!0,protocols:[],defaultProtocol:"http",HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},isAllowedUri:(e,t)=>!!cy(e,t.protocols),validate:e=>!!e,shouldAutoLink:e=>!!e}},addAttributes(){return{href:{default:null,parseHTML(e){return e.getAttribute("href")}},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class}}},parseHTML(){return[{tag:"a[href]",getAttrs:e=>{const t=e.getAttribute("href");return!t||!this.options.isAllowedUri(t,{defaultValidate:n=>!!cy(n,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:null}}]},renderHTML({HTMLAttributes:e}){return this.options.isAllowedUri(e.href,{defaultValidate:t=>!!cy(t,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?["a",$d(this.options.HTMLAttributes,e),0]:["a",$d(this.options.HTMLAttributes,{...e,href:""}),0]},addCommands(){return{setLink:e=>({chain:t})=>{const{href:n}=e;return this.options.isAllowedUri(n,{defaultValidate:r=>!!cy(r,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?t().setMark(this.name,e).setMeta("preventAutolink",!0).run():!1},toggleLink:e=>({chain:t})=>{const{href:n}=e;return this.options.isAllowedUri(n,{defaultValidate:r=>!!cy(r,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?t().toggleMark(this.name,e,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run():!1},unsetLink:()=>({chain:e})=>e().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[gM({find:e=>{const t=[];if(e){const{protocols:n,defaultProtocol:r}=this.options,i=KZ(e).filter(a=>a.isLink&&this.options.isAllowedUri(a.value,{defaultValidate:s=>!!cy(s,n),protocols:n,defaultProtocol:r}));
vendor: 7,064 bytes, lines 926-927
926i.length&&i.forEach(a=>t.push({text:a.value,data:{href:a.href},index:a.start}))}return t},type:this.type,getAttributes:e=>{var t;return{href:(t=e.data)===null||t===void 0?void 0:t.href}}})]},addProseMirrorPlugins(){const e=[],{protocols:t,defaultProtocol:n}=this.options;return this.options.autolink&&e.push(CDe({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:r=>this.options.isAllowedUri(r,{defaultValidate:i=>!!cy(i,t),protocols:t,defaultProtocol:n}),shouldAutoLink:this.options.shouldAutoLink})),this.options.openOnClick===!0&&e.push(TDe({type:this.type})),this.options.linkOnPaste&&e.push(kDe({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type})),e}}),PDe=jg.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:e}){return["p",$d(this.options.HTMLAttributes,e),0]},addCommands(){return{setParagraph:()=>({commands:e})=>e.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),$De=jg.create({name:"hardBreak",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,linebreakReplacement:!0,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:e}){return["br",$d(this.options.HTMLAttributes,e)]},renderText(){return`
927`},addCommands(){return{setHardBreak:()=>({commands:e,chain:t,state:n,editor:r})=>e.first([()=>e.exitCode(),()=>e.command(()=>{const{selection:i,storedMarks:a}=n;if(i.$from.parent.type.spec.isolating)return!1;const{keepMarks:s}=this.options,{splittableMarks:o}=r.extensionManager,f=a||i.$to.parentOffset&&i.$from.marks();return t().insertContent({type:this.name}).command(({tr:m,dispatch:y})=>{if(y&&f&&s){const b=f.filter(T=>o.includes(T.type.name));m.ensureMarks(b)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),MDe=jg.create({name:"text",group:"inline"}),ADe="listItem",JF="textStyle",QF=/^\s*([-+*])\s$/,IDe=jg.create({name:"bulletList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:"ul"}]},renderHTML({HTMLAttributes:e}){return["ul",$d(this.options.HTMLAttributes,e),0]},addCommands(){return{toggleBulletList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(ADe,this.editor.getAttributes(JF)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let e=lC({find:QF,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(e=lC({find:QF,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(JF),editor:this.editor})),[e]}}),DDe="listItem",ez="textStyle",tz=/^(\d+)\.\s$/,LDe=jg.create({name:"orderedList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes(){return{start:{default:1,parseHTML:e=>e.hasAttribute("start")?parseInt(e.getAttribute("start")||"",10):1},type:{default:null,parseHTML:e=>e.getAttribute("type")}}},parseHTML(){return[{tag:"ol"}]},renderHTML({HTMLAttributes:e}){const{start:t,...n}=e;return t===1?["ol",$d(this.options.HTMLAttributes,n),0]:["ol",$d(this.options.HTMLAttributes,e),0]},addCommands(){return{toggleOrderedList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(DDe,this.editor.getAttributes(ez)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let e=lC({find:tz,type:this.type,getAttributes:t=>({start:+t[1]}),joinPredicate:(t,n)=>n.childCount+n.attrs.start===+t[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(e=lC({find:tz,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:t=>({start:+t[1],...this.editor.getAttributes(ez)}),joinPredicate:(t,n)=>n.childCount+n.attrs.start===+t[1],editor:this.editor})),[e]}}),ODe=jg.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:e}){return["li",$d(this.options.HTMLAttributes,e),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),RDe=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,BDe=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,FDe=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,zDe=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,NDe=D_.create({name:"bold",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:e=>e.style.fontWeight!=="normal"&&null},{style:"font-weight=400",clearMark:e=>e.type.name===this.name},{style:"font-weight",getAttrs:e=>/^(bold(er)?|[5-9]\d{2,})$/.test(e)&&null}]},renderHTML({HTMLAttributes:e}){return["strong",$d(this.options.HTMLAttributes,e),0]},addCommands(){return{setBold:()=>({commands:e})=>e.setMark(this.name),toggleBold:()=>({commands:e})=>e.toggleMark(this.name),unsetBold:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[UF({find:RDe,type:this.type}),UF({find:FDe,type:this.type})]},addPasteRules(){return[gM({find:BDe,type:this.type}),gM({find:zDe,type:this.type})]}}),VDe=jg.create({name:"heading",addOptions(){return{levels:[1,2,3,4,5,6],HTMLAttributes:{}}},content:"inline*",group:"block",defining:!0,addAttributes(){return{level:{default:1,rendered:!1}}},parseHTML(){return this.options.levels.map(e=>({tag:`h${e}`,attrs:{level:e}}))},renderHTML({node:e,HTMLAttributes:t}){return[`h${this.options.levels.includes(e.attrs.level)?e.attrs.level:this.options.levels[0]}`,$d(this.options.HTMLAttributes,t),0]},addCommands(){return{setHeading:e=>({commands:t})=>this.options.levels.includes(e.level)?t.setNode(this.name,e):!1,toggleHeading:e=>({commands:t})=>this.options.levels.includes(e.level)?t.toggleNode(this.name,"paragraph",e):!1}},addKeyboardShortcuts(){return this.options.levels.reduce((e,t)=>({...e,[`Mod-Alt-${t}`]:()=>this.editor.commands.toggleHeading({level:t})}),{})},addInputRules(){return this.options.levels.map(e=>J9e({find:new RegExp(`^(#{${Math.min(...this.options.levels)},${e}}
927)\\s$`),type:this.type,getAttributes:{level:e}}))}}),qDe=jg.create({name:"doc",topNode:!0,content:"block+"}),jDe=e=>Aa({find:/--$/,replace:e??"—"}),UDe=e=>Aa({find:/\.\.\.$/,replace:e??"…"}),HDe=e=>Aa({find:/(?:^|[\s{[(<'"\u2018\u201C])(")$/,replace:e??"“"}),WDe=e=>Aa({find:/"$/,replace:e??"”"}),GDe=e=>Aa({find:/(?:^|[\s{[(<'"\u2018\u201C])(')$/,replace:e??"‘"}),YDe=e=>Aa({find:/'$/,replace:e??"’"}),ZDe=e=>Aa({find:/<-$/,replace:e??"←"}),KDe=e=>Aa({find:/->$/,replace:e??"→"}),XDe=e=>Aa({find:/\(c\)$/,replace:e??"©"}),JDe=e=>Aa({find:/\(tm\)$/,replace:e??"™"}),QDe=e=>Aa({find:/\(sm\)$/,replace:e??"℠"}),eLe=e=>Aa({find:/\(r\)$/,replace:e??"®"}),tLe=e=>Aa({find:/(?:^|\s)(1\/2)\s$/,replace:e??"½"}),nLe=e=>Aa({find:/\+\/-$/,replace:e??"±"}),rLe=e=>Aa({find:/!=$/,replace:e??"≠"}),iLe=e=>Aa({find:/<<$/,replace:e??"«"}),aLe=e=>Aa({find:/>>$/,replace:e??"»"}),oLe=e=>Aa({find:/\d+\s?([*x])\s?\d+$/,replace:e??"×"}),sLe=e=>Aa({find:/\^2$/,replace:e??"²"}),lLe=e=>Aa({find:/\^3$/,replace:e??"³"}),uLe=e=>Aa({find:/(?:^|\s)(1\/4)\s$/,replace:e??"¼"}),cLe=e=>Aa({find:/(?:^|\s)(3\/4)\s$/,replace:e??"¾"}),dLe=vc.create({name:"typography",addOptions(){return{closeDoubleQuote:"”",closeSingleQuote:"’",copyright:"©",ellipsis:"…",emDash:"—",laquo:"«",leftArrow:"←",multiplication:"×",notEqual:"≠",oneHalf:"½",oneQuarter:"¼",openDoubleQuote:"“",openSingleQuote:"‘",plusMinus:"±",raquo:"»",registeredTrademark:"®",rightArrow:"→",servicemark:"℠",superscriptThree:"³",superscriptTwo:"²",threeQuarters:"¾",trademark:"™"}},addInputRules(){const e=[];return this.options.emDash!==!1&&e.push(jDe(this.options.emDash)),this.options.ellipsis!==!1&&e.push(UDe(this.options.ellipsis)),this.options.openDoubleQuote!==!1&&e.push(HDe(this.options.openDoubleQuote)),this.options.closeDoubleQuote!==!1&&e.push(WDe(this.options.closeDoubleQuote)),this.options.openSingleQuote!==!1&&e.push(GDe(this.options.openSingleQuote)),this.options.closeSingleQuote!==!1&&e.push(YDe(this.options.closeSingleQuote)),this.options.leftArrow!==!1&&e.push(ZDe(this.options.leftArrow)),this.options.rightArrow!==!1&&e.push(KDe(this.options.rightArrow)),this.options.copyright!==!1&&e.push(XDe(this.options.copyright)),this.options.trademark!==!1&&e.push(JDe(this.options.trademark)),this.options.servicemark!==!1&&e.push(QDe(this.options.servicemark)),this.options.registeredTrademark!==!1&&e.push(eLe(this.options.registeredTrademark)),this.options.oneHalf!==!1&&e.push(tLe(this.options.oneHalf)),this.options.plusMinus!==!1&&e.push(nLe(this.options.plusMinus)),this.options.notEqual!==!1&&e.push(rLe(this.options.notEqual)),this.options.laquo!==!1&&e.push(iLe(this.options.laquo)),this.options.raquo!==!1&&e.push(aLe(this.options.raquo)),this.options.multiplication!==!1&&e.push(oLe(this.options.multiplication)),this.options.superscriptTwo!==!1&&e.push(sLe(this.options.superscriptTwo)),this.options.superscriptThree!==!1&&e.push(lLe(this.options.superscriptThree)),this.options.oneQuarter!==!1&&e.push(uLe(this.options.oneQuarter)),this.options.threeQuarters!==!1&&e.push(cLe(this.options.threeQuarters)),e}}),fLe=["for"],hLe=["id","title"],pLe=["value","id","name"],mLe=Fe({__name:"T3FormFieldRte",props:{name:{},field:{}},setup(e){const t=e,{value:n,setValue:r}=Ma(In(t.name)),{t:i}=Ii(),a=[{name:i("userExchange.frontRte.textStyles.bold"),value:"bold"}],s=De([]),o=[{name:i("userExchange.frontRte.headings.paragraph"),value:"paragraph"},{name:`${i("userExchange.frontRte.headings.heading")} 2`,value:2},{name:`${i("userExchange.frontRte.headings.heading")} 3`,value:3},{name:`${i("userExchange.frontRte.headings.heading")} 4`,value:4}],f=De(o?.[0]),m=[{name:i("userExchange.frontRte.otherTags.bulletList"),value:"bulletList"},{name:i("userExchange.frontRte.otherTags.orderedList"),value:"orderedList"}],y=De(),b=tDe({content:t.field.value,enableContentCheck:!0,extensions:[qDe,PDe,$De,MDe,NDe,ODe,IDe,LDe,dLe,VDe.configure({levels:[2,3,4]}),EDe.configure({openOnClick:!1,autolink:!0,defaultProtocol:"https",protocols:["https","mailto"]})],onUpdate:()=>{const B=b.value?.getHTML().replaceAll("<p></p>","").replaceAll("<h2></h2>","").replaceAll("<h3></h3>","").replaceAll("<h4></h4>","").replaceAll("<ul><li></li></ul>","").replaceAll("<ol><li></li></ol>","").replaceAll("<li><p>","<li>").replaceAll("</p></li>","</li>");r(B,!0),x(),$(),A()}}),T=()=>{f.value.value==="paragraph"?b.value?.chain().focus().setNode("paragraph").run():b.value?.chain().focus().setHeading({level:f.value.value}).run()},x=()=>{o.forEach(B=>{b.value?.isActive("heading",{level:B.value})&&f.value?.value!==B.value&&(f.value=B),!b.value?.isActive("heading",{level:B.value})&&f.value?.value===B.value&&(f.value=o[0])})},$=()=>{a.forEach(B=>{b.value?.isActive(B.value)&&!s.value?.includes(B.value)&&s.value?.push(B.value),!b.value?.isActive(B.value)&&s.value?.includes(B.value)&&(s.value=s.value?.filter(q=>q!==B.value))})},A=()=>{m.forEach(B=>{b.value?.isActive(B.value)&&y.value!==B.value&&(y.value=B.value),!b.value?.isActive(B.value)&&y.value===B.value&&(y.value="")}
927)},N=De(),O=()=>{if(b.value?.getAttributes("link").href,N.value!==void 0){if(N.value===""||N.value===" "){b.value?.chain().focus().extendMarkRange("link").unsetLink().run();return}b.value?.chain().focus().extendMarkRange("link").setLink({href:N.value}).run()}},I=[Qn({gap:0,alignItems:"stretch"}),me()],U=[Tr({justifyContent:"center"}),me({width:"4.5rem",padding:0,height:"100%",_hover:{"& svg *":{fill:"white"}},_pressed:{bgColor:"primary","& svg *":{fill:"white"}}})];return(B,q)=>{const Q=KI,ee=wI,Y=bI,z=_I,H=SI,K=vI,ne=xI,le=yI,pe=Awe,ae=H$e,se=Owe,ce=Dwe,ye=NG,$e=pW,Be=nb,je=hI,at=cr,Pt=n2e,Qe=nW,nt=tb,Ve=mI,ct=eb,zt=Y$e,ut=X$e,At=$we,Dt=Xo;return Z(),Se(Dt,gr(yr(t)),{input:be(()=>[ke(At,{class:de([v(Qn)({alignItems:"stretch",gap:0}),v(me)({bgColor:"lightGray"})])},{default:be(()=>[Re("div",{class:de(v(me)({position:"relative"}))},[ke(le,{modelValue:v(f),"onUpdate:modelValue":[q[1]||(q[1]=Ot=>zn(f)?f.value=Ot:null),q[2]||(q[2]=Ot=>T())]},{default:be(()=>[ke(ee,{class:de([v(Qn)({gap:"1.5rem"}),v(me)({padding:"1rem",borderBottom:0,"& + [data-reka-popper-content-wrapper]":{position:"absolute !important"},_expanded:{"& svg":{transform:"rotate(-180deg)"}}})])},{default:be(()=>[Re("span",null,ht(v(f).name),1),ke(Q,{"aria-hidden":"true",class:de([v(ei)({size:"3rem"}),v(me)({transition:"{easings.global}","& [data-name=third]":{fill:"secondary"}})])},null,8,["class"])]),_:1},8,["class"]),ke(ne,{disabled:""},{default:be(()=>[ke(K,{style:{"user-select":"none"},position:"popper",avoidCollisions:!1,onCloseAutoFocus:q[0]||(q[0]=()=>{})},{default:be(()=>[ke(H,{as:"ul",class:de(v(me)({padding:0}))},{default:be(()=>[(Z(),Ce(Ct,null,ln(o,(Ot,Ee)=>ke(z,{key:Ee,value:Ot,as:"li"},{default:be(()=>[ke(Y,null,{default:be(()=>[_n(ht(Ot.name),1)]),_:2},1024)]),_:2},1032,["value"])),64))]),_:1},8,["class"])]),_:1})]),_:1})]),_:1},8,["modelValue"])],2),ke(pe,{class:de(v(me)({width:"0.1rem",bgColor:"darkGray",opacity:.5}))},null,8,["class"]),ke(ce,{modelValue:v(s),"onUpdate:modelValue":q[3]||(q[3]=Ot=>zn(s)?s.value=Ot:null),type:"multiple",class:de(I)},{default:be(()=>[(Z(),Ce(Ct,null,ln(a,Ot=>ke(se,{value:Ot.value,title:Ot.name,onClick:Ee=>v(b).chain().focus().toggleMark(Ot.value).run(),class:de(U)},{default:be(()=>[Re("span",{class:de(v(Er)())},ht(Ot.name),3),Ot.value==="bold"?(Z(),Se(ae,{key:0,"aria-hidden":"true",class:de([v(ei)({size:"3rem",f
927ill:"black"}),v(me)({transition:"{easings.global}"})])},null,8,["class"])):Ne("",!0)]),_:2},1032,["value","title","onClick"])),64))]),_:1},8,["modelValue"]),Re("div",null,[ke(ct,null,{default:be(()=>[ke(Be,{asChild:""},{default:be(()=>[ke($e,{title:B.$t("userExchange.frontRte.link.createLink"),class:de([U,v(me)({"& + div + [data-reka-popper-content-wrapper]":{width:{base:"50vw !important",md:"30rem !important"},left:{base:"calc(50% - 25vw) !important",md:"calc(50% - 15rem) !important"}}})])},{default:be(()=>[Re("span",{class:de(v(Er)())},ht(B.$t("userExchange.frontRte.link.createLink")),3),ke(ye,{"aria-hidden":"true",class:de([v(ei)({size:"3rem",fill:"black"}),v(me)({transition:"{easings.global}"})])},null,8,["class"])]),_:1},8,["title","class"])]),_:1}),ke(je),ke(Ve,{disabled:""},{default:be(()=>[ke(nt,{class:de([v(Qn)({gap:"1rem"}),v(me)({bgColor:"lightGray",padding:"1.5rem"})])},{default:be(()=>[Re("label",{for:"rte_url-"+e.field.identifier,class:de(v(Er)())},ht(B.$t("userExchange.frontRte.link.targetUrl")),11,fLe),Ol(Re("input",{"onUpdate:modelValue":q[4]||(q[4]=Ot=>zn(N)?N.value=Ot:null),type:"text",id:"rte_url-"+e.field.identifier,onKeyup:q[5]||(q[5]=Ep(ti(Ot=>O(),["prevent"]),["enter"])),title:B.$t("userExchange.frontRte.link.targetUrl"),onkeydown:"return event.key != 'Enter'",class:de(v(me)({height:"3rem",padding:"0.5rem",fontSize:"1.4em"}))},null,42,hLe),[[Ix,v(N)]]),ke(Pt,{asChild:""},{default:be(()=>[ke(at,{type:"button",onClick:q[6]||(q[6]=Ot=>O()),link:{text:"OK"},variante:{classes:"button",bgColor:"primary",size:"xs"}})]),_:1}),ke(Qe)]),_:1},8,["class"])]),_:1})]),_:1})]),ke(ce,{modelValue:v(y),"onUpdate:modelValue":q[9]||(q[9]=Ot=>zn(y)?y.value=Ot:null),type:"single",class:de(I)},{default:be(()=>[ke(se,{value:"bulletList",title:B.$t("userExchange.frontRte.otherTags.bulletList"),class:de(U),onClick:q[7]||(q[7]=Ot=>v(b).chain().focus().toggleBulletList().run())},{default:be(()=>[Re("span",{class:de(v(Er)())},ht(B.$t("userExchange.frontRte.otherTags.bulletList")),3),ke(zt,{"aria-hidden":"true",class:de([v(ei)({size:"3rem",f
927ill:"black"}),v(me)({transition:"{easings.global}"})])},null,8,["class"])]),_:1},8,["title"]),ke(se,{value:"orderedList",title:B.$t("userExchange.frontRte.otherTags.orderedList"),class:de(U),onClick:q[8]||(q[8]=Ot=>v(b).chain().focus().toggleOrderedList().run())},{default:be(()=>[Re("span",{class:de(v(Er)())},ht(B.$t("userExchange.frontRte.otherTags.orderedList")),3),ke(ut,{"aria-hidden":"true",class:de([v(ei)({size:"3rem",fill:"black"}),v(me)({transition:"{easings.global}"})])},null,8,["class"])]),_:1},8,["title"])]),_:1},8,["modelValue"])]),_:1},8,["class"]),ke(v(eDe),{editor:v(b),class:de([v(me)({"& .ProseMirror":{minHeight:"20rem",maxHeight:"50vh",overflow:"auto",transition:"{easings.global}",display:"block",fontSize:"1em",padding:"1rem",border:"{borders.sm} black"}}),v(Wa)(),v(Md)()])},null,8,["editor","class"]),Re("textarea",{value:v(n),id:e.field.identifier,name:e.name,class:de(v(me)({display:"none"})),readonly:""},null,10,pLe)]),_:1},16)}}});var X2={exports:{}};var gLe=X2.exports,nz;function yLe(){return nz||(nz=1,(function(e,t){(function(){var n,r="4.18.1",i=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",o="Invalid `variable` option passed into `_.template`",f="Invalid `imports` option passed into `_.template`",m="__lodash_hash_undefined__",y=500,b="__lodash_placeholder__",T=1,x=2,$=4,A=1,N=2,O=1,I=2,U=4,B=8,q=16,Q=32,ee=64,Y=128,z=256,H=512,K=30,ne="...",le=800,pe=16,ae=1,se=2,ce=3,ye=1/0,$e=9007199254740991,Be=17976931348623157e292,je=NaN,at=4294967295,Pt=at-1,Qe=at>>>1,nt=[["ary",Y],["bind",O],["bindKey",I],["curry",B],["curryRight",q],["flip",H],["partial",Q],["partialRight",ee],["rearg",z]],Ve="[object Arguments]",ct="[object Array]",zt="[object AsyncFunction]",ut="[object Boolean]",At="[object Date]",Dt="[object DOMException]",Ot="[object Error]",Ee="[object Function]",Ye="[object GeneratorFunction]",it="[object Map]",yt="[object Number]",St="[object Null]",Ie="[object Object]",qe="[object Promise]",pt="[object Proxy]",Tt="[object RegExp]",It="[object Set]",sn="[object String]",Yt="[object Symbol]",_t="[object Undefined]",vt="[object WeakMap]",Jt="[object WeakSet]",an="[object ArrayBuffer]",Sn="[object DataView]",On="[object Float32Array]",ft="[object Float64Array]",Ge="[object Int8Array]",rt="[object Int16Array]",$t="[object Int32Array]",Gt="[object Uint8Array]",Zt="[object Uint8ClampedArray]",rn="[object Uint16Array]",Dn="[object Uint32Array]",tr=/\b__p \+= '';/g,Nr=/\b(__p \+=) '' \+/g,$r=/(__e\(.*?\)|\b__t\)) \+\n'';/g,pi=/&(?:amp|lt|gt|quot|#39);/g,mi=/[&<>"']/g,va=RegExp(pi.source),Ft=RegExp(mi.source),xc=/<%-([\s\S]+?)%>/g,wc=/<%([\s\S]+?)%>/g,Mr=/<%=([\s\S]+?)%>/g,_a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Sc=/^\w*$/,y1=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Mp=/[\\^$.*+?()[\]{}|]/g,sb=RegExp(Mp.source),Id=/^\s+/,Ug=/\s/,v1=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,un=/\{\n\/\* \[wrapped with (.+)\] \*/,Cc=/,? & /,Ia=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ap=/[()=,{}\[\]\/\s]/,ku=/\\(\\)?/g,mn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Kn=/\w*$/,dr=/^[-+]0x[0-9a-f]+$/i,Jo=/^0b[01]+$/i,Ip=/^\[object .+?Constructor\]$/,Bl=/^0o[0-7]+$/i,nr=/^(?:0|[1-9]\d*)$/,jf=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u01
vendor: 66,447 bytes, lines 927-946
9277f]/g,Eu=/($^)/,Dp=/['\n\r\u2028\u2029\\]/g,Fl="\\ud800-\\udfff",Uf="\\u0300-\\u036f",Dd="\\ufe20-\\ufe2f",Hf="\\u20d0-\\u20ff",ba=Uf+Dd+Hf,Vr="\\u2700-\\u27bf",Wf="a-z\\xdf-\\xf6\\xf8-\\xff",Ld="\\xac\\xb1\\xd7\\xf7",Gf="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Tc="\\u2000-\\u206f",Hs=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Hg="A-Z\\xc0-\\xd6\\xd8-\\xde",Pu="\\ufe0e\\ufe0f",Yf=Ld+Gf+Tc+Hs,xi="['’]",_1="["+Fl+"]",Wg="["+Yf+"]",$u="["+ba+"]",Gg="\\d+",b1="["+Vr+"]",Yg="["+Wf+"]",Zf="[^"+Fl+Yf+Gg+Vr+Wf+Hg+"]",Kf="\\ud83c[\\udffb-\\udfff]",Zg="(?:"+$u+"|"+Kf+")",Lp="[^"+Fl+"]",Xf="(?:\\ud83c[\\udde6-\\uddff]){2}",Kg="[\\ud800-\\udbff][\\udc00-\\udfff]",cl="["+Hg+"]",Jf="\\u200d",Xg="(?:"+Yg+"|"+Zf+")",Od="(?:"+cl+"|"+Zf+")",Op="(?:"+xi+"(?:d|ll|m|re|s|t|ve))?",Rd="(?:"+xi+"(?:D|LL|M|RE|S|T|VE))?",zl=Zg+"?",kc="["+Pu+"]?",sr="(?:"+Jf+"(?:"+[Lp,Xf,Kg].join("|")+")"+kc+zl+")*",Jg="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",lb="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Rp=kc+zl+sr,Eo="(?:"+[b1,Xf,Kg].join("|")+")"+Rp,Ga="(?:"+[Lp+$u+"?",$u,Xf,Kg,_1].join("|")+")",ki=RegExp(xi,"g"),jn=RegExp($u,"g"),Gr=RegExp(Kf+"(?="+Kf+")|"+Ga+Rp,"g"),Mu=RegExp([cl+"?"+Yg+"+"+Op+"(?="+[Wg,cl,"$"].join("|")+")",Od+"+"+Rd+"(?="+[Wg,cl+Xg,"$"].join("|")+")",cl+"?"+Xg+"+"+Op,cl+"+"+Rd,lb,Jg,Gg,Eo].join("|"),"g"),ho=RegExp("["+Jf+Fl+ba+Pu+"]"),Qo=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,po=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Bd=-1,Fr={};Fr[On]=Fr[ft]=Fr[Ge]=Fr[rt]=Fr[$t]=Fr[Gt]=Fr[Zt]=Fr[rn]=Fr[Dn]=!0,Fr[Ve]=Fr[ct]=Fr[an]=Fr[ut]=Fr[Sn]=Fr[At]=Fr[Ot]=Fr[Ee]=Fr[it]=Fr[yt]=Fr[Ie]=Fr[Tt]=Fr[It]=Fr[sn]=Fr[vt]=!1;var Xn={};Xn[Ve]=Xn[ct]=Xn[an]=Xn[Sn]=Xn[ut]=Xn[At]=Xn[On]=Xn[ft]=Xn[Ge]=Xn[rt]=Xn[$t]=Xn[it]=Xn[yt]=Xn[Ie]=Xn[Tt]=Xn[It]=Xn[sn]=Xn[Yt]=Xn[Gt]=Xn[Zt]=Xn[rn]=Xn[Dn]=!0,Xn[Ot]=Xn[Ee]=Xn[vt]=!1;var Ec={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},dl={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Bp={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Po={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Pc=parseFloat,Nl=parseInt,Qg=typeof Qm=="object"&&Qm&&Qm.Object===Object&&Qm,e0=typeof self=="object"&&self&&self.Object===Object&&self,Di=Qg||e0||Function("return this")(),Yr=t&&!t.nodeType&&t,Cs=Yr&&!0&&e&&!e.nodeType&&e,Cr=Cs&&Cs.exports===Yr,Jn=Cr&&Qg.process,Da=(function(){try{var xt=Cs&&Cs.require&&Cs.require("util").types;return xt||Jn&&Jn.binding&&Jn.binding("util")}catch{}})(),kr=Da&&Da.isArrayBuffer,Ts=Da&&Da.isDate,$c=Da&&Da.isMap,Au=Da&&Da.isRegExp,Mc=Da&&Da.isSet,Fp=Da&&Da.isTypedArray;function Ya(xt,Ht,Nt){switch(Nt.length){case 0:return xt.call(Ht);case 1:return xt.call(Ht,Nt[0]);case 2:return xt.call(Ht,Nt[0],Nt[1]);case 3:return xt.call(Ht,Nt[0],Nt[1],Nt[2])}return xt.apply(Ht,Nt)}function x1(xt,Ht,Nt,$n){for(var rr=-1,qr=xt==null?0:xt.length;++rr<qr;){var ca=xt[rr];Ht($n,ca,Nt(ca),xt)}return $n}function $o(xt,Ht){for(var Nt=-1,$n=xt==null?0:xt.length;++Nt<$n&&Ht(xt[Nt],Nt,xt)!==!1;);return xt}function w1(xt,Ht){for(var Nt=xt==null?0:xt.length;Nt--&&Ht(xt[Nt],Nt,xt)!==!1;);return xt}function Fi(xt,Ht){for(var Nt=-1,$n=xt==null?0:xt.length;++Nt<$n;)if(!Ht(xt[Nt],Nt,xt))return!1;return!0}function wi(xt,Ht){for(var Nt=-1,$n=xt==null?0:xt.length,rr=0,qr=[];++Nt<$n;){var ca=xt[Nt];Ht(ca,Nt,xt)&&(qr[rr++]=ca)}return qr}function Za(xt,Ht){var Nt=xt==null?0:xt.length;return!!Nt&&ql(xt,Ht,0)>-1}function Ac(xt,Ht,Nt){for(var $n=-1,rr=xt==null?0:xt.length;++$n<rr;)if(Nt(Ht,xt[$n]))return!0;return!1}function ni(xt,Ht){for(var Nt=-1,$n=xt==null?0:xt.length,rr=Array($n);++Nt<$n;)rr[Nt]=Ht(xt[Nt],Nt,xt);return rr}function gi(xt,Ht){for(var Nt=-1,$n=Ht.length,rr=xt.length;++Nt<$n;)xt[rr+Nt]=Ht[Nt];return xt}function Vl(xt,Ht,Nt,$n){var rr=-1,qr=xt==null?0:xt.length;for($n&&qr&&(Nt=xt[++rr]);++rr<qr;)Nt=Ht(Nt,xt[rr],rr,xt);return Nt}function t0(xt,Ht,Nt,$n){var rr=xt==null?0:xt.length;for($n&&rr&&(Nt=xt[--rr]);rr--;)Nt=Ht(Nt,xt[rr],rr,xt);return Nt}function zp(xt,Ht){for(var Nt=-1,$n=xt==null?0:xt.length;++Nt<$n;)if(Ht(xt[Nt],Nt,xt))return!0;return!1}var ub=es("length");function Fd(xt){return xt.split("")}function Np(xt){return xt.match(Ia)||[]}function Vp(xt,Ht,Nt){var $n;return Nt(xt,function(rr,qr,ca){if(Ht(rr,qr,ca))return $n=qr,!1}),$n}function Ic(xt,Ht,Nt,$n){for(var rr=xt.length,qr=Nt+($n?1:-1);$n?qr--:++qr<rr;)if(Ht(xt[qr],qr,xt))return qr;return-1}function ql(xt,Ht,Nt){return Ht===Ht?Qf(xt,Ht,Nt):Ic(xt,Lc,Nt)}function Dc(xt,Ht,Nt,$n){for(var rr=Nt-1,qr=xt.length;++rr<qr;)if($n(xt[rr],Ht))return rr;return-1}function Lc(xt){return xt!==xt}function Mo(xt,Ht){var Nt=xt==null?0:xt.length;return Nt?Rc(xt,Ht)/Nt:je}function es(xt){return function(Ht){return Ht==null?n:Ht[xt]}}function zd(xt){return function(Ht){return xt==null?n:xt[Ht]}}function qp(xt,Ht,Nt,$n,rr){return rr(xt,function(qr,ca,ri){Nt=$n?($n=!1,qr):Ht(Nt,qr,ca,ri)}),Nt}function Oc(xt,Ht){var Nt=xt.length;for(xt.sort(Ht);Nt--;)xt[Nt]=xt[Nt].value;return xt}function Rc(xt,Ht){for(var Nt,$n=-1,rr=xt.length;++$n<rr;){var qr=Ht(xt[$n]);qr!==n&&(Nt=Nt===n?qr:Nt+qr)}return Nt}function n0(xt,Ht){for(var Nt=-1,$n=Array(xt);++Nt<xt;)$n[Nt]=Ht(Nt);return $n}function jp(xt,Ht){return ni(Ht,function(Nt){return[Nt,xt[Nt]]})}function S1(xt){return xt&&xt.slice(0,l0(xt)+1).replace(Id,"")}function Gi(xt){return function(Ht){return xt(Ht)}}function r0(xt,Ht){return ni(Ht,function(Nt){return xt[Nt]})}function Bc(xt,Ht){return xt.has(Ht)}function i0(xt,Ht){for(var Nt=-1,$n=xt.length;++Nt<$n&&ql(Ht,xt[Nt],0)>-1;);return Nt}function a0(xt,Ht){for(var Nt=xt.length;Nt--&&ql(Ht,xt[Nt],0)>-1;);return Nt}function Up(xt,Ht){for(var Nt=xt.length,$n=0;Nt--;)xt[Nt]===Ht&&++$n;return $n}var C1=zd(Ec),T1=zd(dl);function k1(xt){return"\\"+Po[xt]}function E1(xt,Ht){return xt==null?n:xt[Ht]}function ks(xt){return ho.test(xt)}function o0(xt){return Qo.test(xt)}function s0(xt){for(var Ht,Nt=[];!(Ht=xt.next()).done;)Nt.push(Ht.value);return Nt}function Iu(xt){var Ht=-1,Nt=Array(xt.size);return xt.forEach(function($n,rr){Nt[++Ht]=[rr,$n]}),Nt}function P1(xt,Ht){return function(Nt){return xt(Ht(Nt))}}function Ws(xt,Ht){for(var Nt=-1,$n=xt.length,rr=0,qr=[];++Nt<$n;){var ca=xt[Nt];(ca===Ht||ca===b)&&(xt[Nt]=b,qr[rr++]=Nt)}return qr}function Hp(xt){var Ht=-1,Nt=Array(xt.size);return xt.forEach(function($n){Nt[++Ht]=$n}),Nt}function cb(xt){var Ht=-1,Nt=Array(xt.size);return xt.forEach(function($n){Nt[++Ht]=[$n,$n]}),Nt}function Qf(xt,Ht,Nt){for(var $n=Nt-1,rr=xt.length;++$n<rr;)if(xt[$n]===Ht)return $n;return-1}function $1(xt,Ht,Nt){for(var $n=Nt+1;$n--;)if(xt[$n]===Ht)return $n;return $n}function Fc(xt){return ks(xt)?fl(xt):ub(xt)}function ts(xt){return ks(xt)?u0(xt):Fd(xt)}function l0(xt){for(var Ht=xt.length;Ht--&&Ug.test(xt.charAt(Ht)););return Ht}var Nd=zd(Bp);function fl(xt){for(var Ht=Gr.lastIndex=0;Gr.test(xt);)++Ht;return Ht}function u0(xt){return xt.match(Gr)||[]}function c0(xt){return xt.match(Mu)||[]}var Wp=(function xt(Ht){Ht=Ht==null?Di:Du.defaults(Di.Object(),Ht,Du.pick(Di,po));var Nt=Ht.Array,$n=Ht.Date,rr=Ht.Error,qr=Ht.Function,ca=Ht.Math,ri=Ht.Object,Lr=Ht.RegExp,M1=Ht.String,mo=Ht.TypeError,zc=Nt.prototype,Gp=qr.prototype,Lu=ri.prototype,hl=Ht["__core-js_shared__"],Ou=Gp.toString,Ar=Lu.hasOwnProperty,Es=0,d0=(function(){var C=/[^.]+$/.exec(hl&&hl.keys&&hl.keys.IE_PROTO||"");return C?"Symbol(src)_1."+C:""})(),eh=Lu.toString,f0=Ou.call(ri),Nc=Di._,Yp=Lr("^"+Ou.call(Ar).replace(Mp,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Vc=Cr?Ht.Buffer:n,Ps=Ht.Symbol,qc=Ht.Uint8Array,h0=Vc?Vc.allocUnsafe:n,jl=P1(ri.getPrototypeOf,ri),jc=ri.create,p0=Lu.propertyIsEnumerable,Vd=zc.splice,lr=Ps?Ps.isConcatSpreadable:n,Ru=Ps?Ps.iterator:n,Uc=Ps?Ps.toStringTag:n,th=(function(){try{var C=wh(ri,"defineProperty");return C({},"",{}),C}catch{}})(),nh=Ht.clearTimeout!==Di.clearTimeout&&Ht.clearTimeout,db=$n&&$n.now!==Di.Date.now&&$n.now,fb=Ht.setTimeout!==Di.setTimeout&&Ht.setTimeout,rh=ca.ceil,Zp=ca.floor,Hc=ri.getOwnPropertySymbols,Kp=Vc?Vc.isBuffer:n,qd=Ht.isFinite,Xp=zc.join,Jp=P1(ri.keys,ri),la=ca.max,da=ca.min,Wc=$n.now,jd=Ht.parseInt,Gc=ca.random,m0=zc.reverse,g0=wh(Ht,"DataView"),Ul=wh(Ht,"Map"),y0=wh(Ht,"Promise"),Bu=wh(Ht,"Set"),Hl=wh(Ht,"WeakMap"),Yc=wh(ri,"create"),ih=Hl&&new Hl,Fu={},ah=Qd(g0),Qp=Qd(Ul),hb=Qd(y0),A1=Qd(Bu),zi=Qd(Hl),pl=Ps?Ps.prototype:n,xa=pl?pl.valueOf:n,oh=pl?pl.toString:n;function Oe(C){if(Ji(C)&&!pr(C)&&!(C instanceof fr)){if(C instanceof Ka)return C;if(Ar.call(C,"__wrapped__"))return Zw(C)}return new Ka(C)}var Wl=(function(){function C(){}return function(D){if(!Vi(D))return{};if(jc)return jc(D);C.prototype=D;var J=new C;return C.prototype=n,J}})();function Gs(){}function Ka(C,D){this.__wrapped__=C,this.__actions__=[],this.__chain__=!!D,this.__index__=0,this.__values__=n}Oe.templateSettings={escape:xc,evaluate:wc,interpolate:Mr,variable:"",imports:{_:Oe}},Oe.prototype=Gs.prototype,Oe.prototype.constructor=Oe,Ka.prototype=Wl(Gs.prototype),Ka.prototype.constructor=Ka;function fr(C){this.__wrapped__=C,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=at,this.__views__=[]}function Ud(){var C=new fr(this.__wrapped__);return C.__actions__=ir(this.__actions__),C.__dir__=this.__dir__,C.__filtered__=this.__filtered__,C.__iteratees__=ir(this.__iteratees__),C.__takeCount__=this.__takeCount__,C.__views__=ir(this.__views__),C}function I1(){if(this.__filtered__){var C=new fr(this);C.__dir__=-1,C.__filtered__=!0}else C=this.clone(),C.__dir__*=-1;return C}function D1(){var C=this.__wrapped__.value(),D=this.__dir__,J=pr(C),fe=D<0,Pe=J?C.length:0,Ue=yk(0,Pe,this.__views__),st=Ue.start,gt=Ue.end,kt=gt-st,Kt=fe?gt:st-1,en=this.__iteratees__,tn=en.length,xn=0,Fn=da(kt,this.__takeCount__);if(!J||!fe&&Pe==kt&&Fn==kt)return He(C,this.__actions__);var Zn=[];e:for(;kt--&&xn<Fn;){Kt+=D;for(var wr=-1,Gn=C[Kt];++wr<tn;){var Ir=en[wr],Or=Ir.iteratee,ds=Ir.type,zo=Or(Gn);if(ds==se)Gn=zo;else if(!zo){if(ds==ae)continue e;break e}}Zn[xn++]=Gn}return Zn}fr.prototype=Wl(Gs.prototype),fr.prototype.constructor=fr;function zu(C){var D=-1,J=C==null?0:C.length;for(this.clear();++D<J;){var fe=C[D];this.set(fe[0],fe[1])}}function L1(){this.__data__=Yc?Yc(null):{},this.size=0}function O1(C){var D=this.has(C)&&delete this.__data__[C];return this.size-=D?1:0,D}function Nu(C){var D=this.__data__;if(Yc){var J=D[C];return J===m?n:J}return Ar.call(D,C)?D[C]:n}function v0(C){var D=this.__data__;return Yc?D[C]!==n:Ar.call(D,C)}function _0(C,D){var J=this.__data__;return this.size+=this.has(C)?0:1,J[C]=Yc&&D===n?m:D,this}zu.prototype.clear=L1,zu.prototype.delete=O1,zu.prototype.get=Nu,zu.prototype.has=v0,zu.prototype.set=_0;function ns(C){var D=-1,J=C==null?0:C.length;for(this.clear();++D<J;){var fe=C[D];this.set(fe[0],fe[1])}}function R1(){this.__data__=[],this.size=0}function b0(C){var D=this.__data__,J=ch(D,C);if(J<0)return!1;var fe=D.length-1;return J==fe?D.pop():Vd.call(D,J,1),--this.size,!0}function x0(C){var D=this.__data__,J=ch(D,C);return J<0?n:D[J][1]}function B1(C){return ch(this.__data__,C)>-1}function sh(C,D){var J=this.__data__,fe=ch(J,C);return fe<0?(++this.size,J.push([C,D])):J[fe][1]=D,this}ns.prototype.clear=R1,ns.prototype.delete=b0,ns.prototype.get=x0,ns.prototype.has=B1,ns.prototype.set=sh;function Ys(C){var D=-1,J=C==null?0:C.length;for(this.clear();++D<J;){var fe=C[D];this.set(fe[0],fe[1])}}function lh(){this.size=0,this.__data__={hash:new zu,map:new(Ul||ns),string:new zu}}function Hd(C){var D=U1(this,C).delete(C);return this.size-=D?1:0,D}function $s(C){return U1(this,C).get(C)}function Zs(C){return U1(this,C).has(C)}function F1(C,D){var J=U1(this,C),fe=J.size;return J.set(C,D),this.size+=J.size==fe?0:1,this}Ys.prototype.clear=lh,Ys.prototype.delete=Hd,Ys.prototype.get=$s,Ys.prototype.has=Zs,Ys.prototype.set=F1;function La(C){var D=-1,J=C==null?0:C.length;for(this.__data__=new Ys;++D<J;)this.add(C[D])}function pb(C){return this.__data__.set(C,m),this}function mb(C){return this.__data__.has(C)}La.prototype.add=La.prototype.push=pb,La.prototype.has=mb;function go(C){var D=this.__data__=new ns(C);this.size=D.size}function ml(){this.__data__=new ns,this.size=0}function rs(C){var D=this.__data__,J=D.delete(C);return this.size=D.size,J}function uh(C){return this.__data__.get(C)}function z1(C){return this.__data__.has(C)}function gb(C,D){var J=this.__data__;if(J instanceof ns){var fe=J.__data__;if(!Ul||fe.length<i-1)return fe.push([C,D]),this.size=++J.size,this;J=this.__data__=new Ys(fe)}return J.set(C,D),this.size=J.size,this}go.prototype.clear=ml,go.prototype.delete=rs,go.prototype.get=uh,go.prototype.has=z1,go.prototype.set=gb;function w0(C,D){var J=pr(C),fe=!J&&ef(C),Pe=!J&&!fe&&tf(C),Ue=!J&&!fe&&!Pe&&km(C),st=J||fe||Pe||Ue,gt=st?n0(C.length,M1):[],kt=gt.length;for(var Kt in C)(D||Ar.call(C,Kt))&&!(st&&(Kt=="length"||Pe&&(Kt=="offset"||Kt=="parent")||Ue&&(Kt=="buffer"||Kt=="byteLength"||Kt=="byteOffset")||td(Kt,kt)))&&gt.push(Kt);return gt}function gl(C){var D=C.length;return D?C[Kc(0,D-1)]:n}function yl(C,D){return Y1(ir(C),Vu(D,0,C.length))}function bn(C){return Y1(ir(C))}function em(C,D,J){(J!==n&&!Cl(C[D],J)||J===n&&!(D in C))&&vl(C,D,J)}function Gl(C,D,J){var fe=C[D];(!(Ar.call(C,D)&&Cl(fe,J))||J===n&&!(D in C))&&vl(C,D,J)}function ch(C,D){for(var J=C.length;J--;)if(Cl(C[J][0],D))return J;return-1}function Yl(C,D,J,fe){return _l(C,function(Pe,Ue,st){D(fe,Pe,J(Pe),st)}),fe}function Wd(C,D){return C&&jr(D,Sa(D),C)}function S0(C,D){return C&&jr(D,us(D),C)}function vl(C,D,J){D=="__proto__"&&th?th(C,D,{configurable:!0,enumerable:!0,value:J,writable:!0}):C[D]=J}function Zl(C,D){for(var J=-1,fe=D.length,Pe=Nt(fe),Ue=C==null;++J<fe;)Pe[J]=Ue?n:Qb(C,D[J]);return Pe}function Vu(C,D,J){return C===C&&(J!==n&&(C=C<=J?C:J),D!==n&&(C=C>=D?C:D)),C}function Ao(C,D,J,fe,Pe,Ue){var st,gt=D&T,kt=D&x,Kt=D&$;if(J&&(st=Pe?J(C,fe,Pe,Ue):J(C)),st!==n)return st;if(!Vi(C))return C;var en=pr(C);if(en){if(st=W1(C),!gt)return ir(C,st)}else{var tn=ha(C),xn=tn==Ee||tn==Ye;if(tf(C))return wt(C,gt);if(tn==Ie||tn==Ve||xn&&!Pe){if(st=kt||xn?{}:Vw(C),!gt)return kt?Yi(C,S0(st,C)):Xr(C,Wd(st,C))}else{if(!Xn[tn])return Pe?C:{};st=vk(C,tn,gt)}}Ue||(Ue=new go);var Fn=Ue.get(C);if(Fn)return Fn;Ue.set(C,st),I3(C)?C.forEach(function(Gn){st.add(Ao(Gn,D,J,Gn,C,Ue))}):E3(C)&&C.forEach(function(Gn,Ir){st.set(Ir,Ao(Gn,D,J,Ir,C,Ue))});var Zn=Kt?kt?xh:bh:kt?us:Sa,wr=en?n:Zn(C);return $o(wr||C,function(Gn,Ir){wr&&(Ir=Gn,Gn=C[Ir]),Gl(st,Ir,Ao(Gn,D,J,Ir,C,Ue))}),st}function tm(C){var D=Sa(C);return function(J){return C0(J,C,D)}}function C0(C,D,J){var fe=J.length;if(C==null)return!fe;for(C=ri(C);fe--;){var Pe=J[fe],Ue=D[Pe],st=C[Pe];if(st===n&&!(Pe in C)||!Ue(st))return!1}return!0}function nm(C,D,J){if(typeof C!="function")throw new mo(s);return mm(function(){C.apply(n,J)},D)}function qu(C,D,J,fe){var Pe=-1,Ue=Za,st=!0,gt=C.length,kt=[],Kt=D.length;if(!gt)return kt;J&&(D=ni(D,Gi(J))),fe?(Ue=Ac,st=!1):D.length>=i&&(Ue=Bc,st=!1,D=new La(D));e:for(;++Pe<gt;){var en=C[Pe],tn=J==null?en:J(en);if(en=fe||en!==0?en:0,st&&tn===tn){for(var xn=Kt;xn--;)if(D[xn]===tn)continue e;kt.push(en)}else Ue(D,tn,fe)||kt.push(en)}return kt}var _l=Pi(Io),T0=Pi(hh,!0);function k0(C,D){var J=!0;return _l(C,function(fe,Pe,Ue){return J=!!D(fe,Pe,Ue),J}),J}function dh(C,D,J){for(var fe=-1,Pe=C.length;++fe<Pe;){var Ue=C[fe],st=D(Ue);if(st!=null&&(gt===n?st===st&&!Js(st):J(st,gt)))var gt=st,kt=Ue}return kt}function E0(C,D,J,fe){var Pe=C.length;for(J=_r(J),J<0&&(J=-J>Pe?0:Pe+J),fe=fe===n||fe>Pe?Pe:_r(fe),fe<0&&(fe+=Pe),fe=J>fe?0:hv(fe);J<fe;)C[J++]=D;return C}function bl(C,D){var J=[];return _l(C,function(fe,Pe,Ue){D(fe,Pe,Ue)&&J.push(fe)}),J}function or(C,D,J,fe,Pe){var Ue=-1,st=C.length;for(J||(J=bk),Pe||(Pe=[]);++Ue<st;){var gt=C[Ue];D>0&&J(gt)?D>1?or(gt,D-1,J,fe,Pe):gi(Pe,gt):fe||(Pe[Pe.length]=gt)}return Pe}var rm=Qa(),fh=Qa(!0);function Io(C,D){return C&&rm(C,D,Sa)}function hh(C,D){return C&&fh(C,D,Sa)}function Gd(C,D){return wi(D,function(J){return Xs(C[J])})}function Kl(C,D){D=Je(D,C);for(var J=0,fe=D.length;C!=null&&J<fe;)C=C[Ks(D[J++])];return J&&J==fe?C:n}function P0(C,D,J){var fe=D(C);return pr(C)?fe:gi(fe,J(C))}function yo(C){return C==null?C===n?_t:St:Uc&&Uc in ri(C)?vb(C):R0(C)}function is(C,D){return C>D}function ph(C,D){return C!=null&&Ar.call(C,D)}function Pn(C,D){return C!=null&&D in ri(C)}function Rn(C,D,J){return C>=da(D,J)&&C<la(D,J)}function xl(C,D,J){for(var fe=J?Ac:Za,Pe=C[0].length,Ue=C.length,st=Ue,gt=Nt(Ue),kt=1/0,Kt=[];st--;){var en=C[st];st&&D&&(en=ni(en,Gi(D))),kt=da(en.length,kt),gt[st]=!J&&(D||Pe>=120&&en.length>=120)?new La(st&&en):n}en=C[0];var tn=-1,xn=gt[0];e:for(;++tn<Pe&&Kt.length<kt;){var Fn=en[tn],Zn=D?D(Fn):Fn;if(Fn=J||Fn!==0?Fn:0,!(xn?Bc(xn,Zn):fe(Kt,Zn,J))){for(st=Ue;--st;){var wr=gt[st];if(!(wr?Bc(wr,Zn):fe(C[st],Zn,J)))continue e}xn&&xn.push(Zn),Kt.push(Fn)}}return Kt}function N1(C,D,J,fe){return Io(C,function(Pe,Ue,st){D(fe,J(Pe),Ue,st)}),fe}function wl(C,D,J){D=Je(D,C),C=Sb(C,D);var fe=C==null?C:C[Ks(Oo(D))];return fe==null?n:Ya(fe,C,J)}function Xa(C){return Ji(C)&&yo(C)==Ve}function V1(C){return Ji(C)&&yo(C)==an}function im(C){return Ji(C)&&yo(C)==At}function Ja(C,D,J,fe,Pe){return C===D?!0:C==null||D==null||!Ji(C)&&!Ji(D)?C!==C&&D!==D:$0(C,D,J,fe,Ja,Pe)}function $0(C,D,J,fe,Pe,Ue){var st=pr(C),gt=pr(D),kt=st?ct:ha(C),Kt=gt?ct:ha(D);kt=kt==Ve?Ie:kt,Kt=Kt==Ve?Ie:Kt;var en=kt==Ie,tn=Kt==Ie,xn=kt==Kt;if(xn&&tf(C)){if(!tf(D))return!1;st=!0,en=!1}if(xn&&!en)return Ue||(Ue=new go),st||km(C)?fm(C,D,J,fe,Pe,Ue):Hu(C,D,kt,J,fe,Pe,Ue);if(!(J&A)){var Fn=en&&Ar.call(C,"__wrapped__"),Zn=tn&&Ar.call(D,"__wrapped__");if(Fn||Zn){var wr=Fn?C.value():C,Gn=Zn?D.value():D;return Ue||(Ue=new go),Pe(wr,Gn,J,fe,Ue)}}return xn?(Ue||(Ue=new go),Wu(C,D,J,fe,Pe,Ue)):!1}function yb(C){return Ji(C)&&ha(C)==it}function M0(C,D,J,fe){var Pe=J.length,Ue=Pe,st=!fe;if(C==null)return!Ue;for(C=ri(C);Pe--;){var gt=J[Pe];if(st&&gt[2]?gt[1]!==C[gt[0]]:!(gt[0]in C))return!1}for(;++Pe<Ue;){gt=J[Pe];var kt=gt[0],Kt=C[kt],en=gt[1];if(st&&gt[2]){if(Kt===n&&!(kt in C))return!1}else{var tn=new go;if(fe)var xn=fe(Kt,en,kt,C,D,tn);if(!(xn===n?Ja(en,Kt,A|N,fe,tn):xn))return!1}}return!0}function q1(C){if(!Vi(C)||xk(C))return!1;var D=Xs(C)?Yp:Ip;return D.test(Qd(C))}function mh(C){return Ji(C)&&yo(C)==Tt}function Ei(C){return Ji(C)&&ha(C)==It}function oi(C){return Ji(C)&&cv(C.length)&&!!Fr[yo(C)]}function A0(C){return typeof C=="function"?C:C==null?cs:typeof C=="object"?pr(C)?Zd(C[0],C[1]):om(C):Ph(C)}function Zc(C){if(!pm(C))return Jp(C);var D=[];for(var J in ri(C))Ar.call(C,J)&&J!="constructor"&&D.push(J);return D}function am(C){if(!Vi(C))return wb(C);var D=pm(C),J=[];for(var fe in C)fe=="constructor"&&(D||!Ar.call(C,fe))||J.push(fe);return J}function Yd(C,D){return C<D}function gh(C,D){var J=-1,fe=_o(C)?Nt(C.length):[];return _l(C,function(Pe,Ue,st){fe[++J]=D(Pe,Ue,st)}),fe}function om(C){var D=D0(C);return D.length==1&&D[0][2]?jw(D[0][0],D[0][1]):function(J){return J===C||M0(J,C,D)}}function Zd(C,D){return O0(C)&&bb(D)?jw(Ks(C),D):function(J){var fe=Qb(J,C);return fe===n&&fe===D?K0(J,C):Ja(D,fe,A|N)}}function Ms(C,D,J,fe,Pe){C!==D&&rm(D,function(Ue,st){if(Pe||(Pe=new go),Vi(Ue))sm(C,D,st,J,Ms,fe,Pe);else{var gt=fe?fe(B0(C,st),Ue,st+"",C,D,Pe):n;gt===n&&(gt=Ue),em(C,st,gt)}},us)}function sm(C,D,J,fe,Pe,Ue,st){var gt=B0(C,J),kt=B0(D,J),Kt=st.get(kt);if(Kt){em(C,J,Kt);return}var en=Ue?Ue(gt,kt,J+"",C,D,st):n,tn=en===n;if(tn){var xn=pr(kt),Fn=!xn&&tf(kt),Zn=!xn&&!Fn&&km(kt);en=kt,xn||Fn||Zn?pr(gt)?en=gt:pa(gt)?en=ir(gt):Fn?(tn=!1,en=wt(kt,!0)):Zn?(tn=!1,en=Tn(kt,!0)):en=[]:Gu(kt)||ef(kt)?(en=gt,ef(gt)?en=id(gt):(!Vi(gt)||Xs(gt))&&(en=Vw(kt))):tn=!1}tn&&(st.set(kt,en),Pe(en,kt,fe,Ue,st),st.delete(kt)),em(C,J,en)}function Kd(C,D){var J=C.length;if(J)return D+=D<0?J:0,td(D,J)?C[D]:n}function yh(C,D,J){D.length?D=ni(D,function(Ue){return pr(Ue)?function(st){return Kl(st,Ue.length===1?Ue[0]:Ue)}:Ue}):D=[cs];var fe=-1;D=ni(D,Gi(Wn()));var Pe=gh(C,function(Ue,st,gt){var kt=ni(D,function(Kt){return Kt(Ue)});return{criteria:kt,index:++fe,value:Ue}});return Oc(Pe,function(Ue,st){return Wt(Ue,st,J)})}function vh(C,D){return lm(C,D,function(J,fe){return K0(C,fe)})}function lm(C,D,J){for(var fe=-1,Pe=D.length,Ue={};++fe<Pe;){var st=D[fe],gt=Kl(C,st);J(gt,st)&&E(Ue,Je(st,C),gt)}return Ue}function Xd(C){return function(D){return Kl(D,C)}}function Xl(C,D,J,fe){var Pe=fe?Dc:ql,Ue=-1,st=D.length,gt=C;for(C===D&&(D=ir(D)),J&&(gt=ni(C,Gi(J)));++Ue<st;)for(var kt=0,Kt=D[Ue],en=J?J(Kt):Kt;(kt=Pe(gt,en,kt,fe))>-1;)gt!==C&&Vd.call(gt,kt,1),Vd.call(C,kt,1);return C}function um(C,D){for(var J=C?D.length:0,fe=J-1;J--;){var Pe=D[J];if(J==fe||Pe!==Ue){var Ue=Pe;td(Pe)?Vd.call(C,Pe,1):ge(C,Pe)}}return C}function Kc(C,D){return C+Zp(Gc()*(D-C+1))}function Xc(C,D,J,fe){for(var Pe=-1,Ue=la(rh((D-C)/(J||1)),0),st=Nt(Ue);Ue--;)st[fe?Ue:++Pe]=C,C+=J;return st}function _h(C,D){var J="";if(!C||D<1||D>$e)return J;do D%2&&(J+=C),D=Zp(D/2),D&&(C+=C);while(D);return J}function hr(C,D){return Cb(Lo(C,D,cs),C+"")}function cm(C){return gl(Yu(C))}function I0(C,D){var J=Yu(C);return Y1(J,Vu(D,0,J.length))}function E(C,D,J,fe){if(!Vi(C))return C;D=Je(D,C);for(var Pe=-1,Ue=D.length,st=Ue-1,gt=C;gt!=null&&++Pe<Ue;){var kt=Ks(D[Pe]),Kt=J;if(kt==="__proto__"||kt==="constructor"||kt==="prototype")return C;if(Pe!=st){var en=gt[kt];Kt=fe?fe(en,kt,gt):n,Kt===n&&(Kt=Vi(en)?en:td(D[Pe+1])?[]:{})}Gl(gt,kt,Kt),gt=gt[kt]}return C}var u=ih?function(C,D){return ih.set(C,D),C}:cs,h=th?function(C,D){return th(C,"toString",{configurable:!0,enumerable:!1,value:sf(D),writable:!0})}:cs;function _(C){return Y1(Yu(C))}function S(C,D,J){var fe=-1,Pe=C.length;D<0&&(D=-D>Pe?0:Pe+D),J=J>Pe?Pe:J,J<0&&(J+=Pe),Pe=D>J?0:J-D>>>0,D>>>=0;for(var Ue=Nt(Pe);++fe<Pe;)Ue[fe]=C[fe+D];return Ue}function M(C,D){var J;return _l(C,function(fe,Pe,Ue){return J=D(fe,Pe,Ue),!J}),!!J}function V(C,D,J){var fe=0,Pe=C==null?fe:C.length;if(typeof D=="number"&&D===D&&Pe<=Qe){for(;fe<Pe;){var Ue=fe+Pe>>>1,st=C[Ue];st!==null&&!Js(st)&&(J?st<=D:st<D)?fe=Ue+1:Pe=Ue}return Pe}return W(C,D,cs,J)}function W(C,D,J,fe){var Pe=0,Ue=C==null?0:C.length;if(Ue===0)return 0;D=J(D);for(var st=D!==D,gt=D===null,kt=Js(D),Kt=D===n;Pe<Ue;){var en=Zp((Pe+Ue)/2),tn=J(C[en]),xn=tn!==n,Fn=tn===null,Zn=tn===tn,wr=Js(tn);if(st)var Gn=fe||Zn;else Kt?Gn=Zn&&(fe||xn):gt?Gn=Zn&&xn&&(fe||!Fn):kt?Gn=Zn&&xn&&!Fn&&(fe||!wr):Fn||wr?Gn=!1:Gn=fe?tn<=D:tn<D;Gn?Pe=en+1:Ue=en}return da(Ue,Pt)}function X(C,D){for(var J=-1,fe=C.length,Pe=0,Ue=[];++J<fe;){var st=C[J],gt=D?D(st):st;if(!J||!Cl(gt,kt)){var kt=gt;Ue[Pe++]=st===0?0:st}}return Ue}function re(C){return typeof C=="number"?C:Js(C)?je:+C}function ie(C){if(typeof C=="string")return C;if(pr(C))return ni(C,ie)+"";if(Js(C))return oh?oh.call(C):"";var D=C+"";return D=="0"&&1/C==-ye?"-0":D}function he(C,D,J){var fe=-1,Pe=Za,Ue=C.length,st=!0,gt=[],kt=gt;if(J)st=!1,Pe=Ac;else if(Ue>=i){var Kt=D?null:$i(C);if(Kt)return Hp(Kt);st=!1,Pe=Bc,kt=new La}else kt=D?[]:gt;e:for(;++fe<Ue;){var en=C[fe],tn=D?D(en):en;if(en=J||en!==0?en:0,st&&tn===tn){for(var xn=kt.length;xn--;)if(kt[xn]===tn)continue e;D&&kt.push(tn),gt.push(en)}else Pe(kt,tn,J)||(kt!==gt&&kt.push(tn),gt.push(en))}return gt}function ge(C,D){D=Je(D,C);var J=-1,fe=D.length;if(!fe)return!0;for(;++J<fe;){var Pe=Ks(D[J]);if(Pe==="__proto__"&&!Ar.call(C,"__proto__")||(Pe==="constructor"||Pe==="prototype")&&J<fe-1)return!1}var Ue=Sb(C,D);return Ue==null||delete Ue[Ks(Oo(D))]}function we(C,D,J,fe){return E(C,D,J(Kl(C,D)),fe)}function Le(C,D,J,fe){for(var Pe=C.length,Ue=fe?Pe:-1;(fe?Ue--:++Ue<Pe)&&D(C[Ue],Ue,C););return J?S(C,fe?0:Ue,fe?Ue+1:Pe):S(C,fe?Ue+1:0,fe?Pe:Ue)}function He(C,D){var J=C;return J instanceof fr&&(J=J.value()),Vl(D,function(fe,Pe){return Pe.func.apply(Pe.thisArg,gi([fe],Pe.args))},J)}function Xe(C,D,J){var fe=C.length;if(fe<2)return fe?he(C[0]):[];for(var Pe=-1,Ue=Nt(fe);++Pe<fe;)for(var st=C[Pe],gt=-1;++gt<fe;)gt!=Pe&&(Ue[Pe]=qu(Ue[Pe]||st,C[gt],D,J));return he(or(Ue,1),D,J)}function Ze(C,D,J){for(var fe=-1,Pe=C.length,Ue=D.length,st={};++fe<Pe;){var gt=fe<Ue?D[fe]:n;J(st,C[fe],gt)}return st}function et(C){return pa(C)?C:[]}function lt(C){return typeof C=="function"?C:cs}function Je(C,D){return pr(C)?C:O0(C,D)?[C]:kb(Zr(C))}var Ke=hr;function ot(C,D,J){var fe=C.length;return J=J===n?fe:J,!D&&J>=fe?C:S(C,D,J)}var tt=nh||function(C){return Di.clearTimeout(C)};function wt(C,D){if(D)return C.slice();var J=C.length,fe=h0?h0(J):new C.constructor(J);return C.copy(fe),fe}function Rt(C){var D=new C.constructor(C.byteLength);return new qc(D).set(new qc(C)),D}function Vt(C,D){var J=D?Rt(C.buffer):C.buffer;return new C.constructor(J,C.byteOffset,C.byteLength)}function Qt(C){var D=new C.constructor(C.source,Kn.exec(C));return D.lastIndex=C.lastIndex,D}function Xt(C){return xa?ri(xa.call(C)):{}}function Tn(C,D){var J=D?Rt(C.buffer):C.buffer;return new C.constructor(J,C.byteOffset,C.length)}function fn(C,D){if(C!==D){var J=C!==n,fe=C===null,Pe=C===C,Ue=Js(C),st=D!==n,gt=D===null,kt=D===D,Kt=Js(D);if(!gt&&!Kt&&!Ue&&C>D||Ue&&st&&kt&&!gt&&!Kt||fe&&st&&kt||!J&&kt||!Pe)return 1;if(!fe&&!Ue&&!Kt&&C<D||Kt&&J&&Pe&&!fe&&!Ue||gt&&J&&Pe||!st&&Pe||!kt)return-1}return 0}function Wt(C,D,J){for(var fe=-1,Pe=C.criteria,Ue=D.criteria,st=Pe.length,gt=J.length;++fe<st;){var kt=fn(Pe[fe],Ue[fe]);if(kt){if(fe>=gt)return kt;var Kt=J[fe];return kt*(Kt=="desc"?-1:1)}}return C.index-D.index}function gn(C,D,J,fe){for(var Pe=-1,Ue=C.length,st=J.length,gt=-1,kt=D.length,Kt=la(Ue-st,0),en=Nt(kt+Kt),tn=!fe;++gt<kt;)en[gt]=D[gt];for(;++Pe<st;)(tn||Pe<Ue)&&(en[J[Pe]]=C[Pe]);for(;Kt--;)en[gt++]=C[Pe++];return en}function Mn(C,D,J,fe){for(var Pe=-1,Ue=C.length,st=-1,gt=J.length,kt=-1,Kt=D.length,en=la(Ue-gt,0),tn=Nt(en+Kt),xn=!fe;++Pe<en;)tn[Pe]=C[Pe];for(var Fn=Pe;++kt<Kt;)tn[Fn+kt]=D[kt];for(;++st<gt;)(xn||Pe<Ue)&&(tn[Fn+J[st]]=C[Pe++]);return tn}function ir(C,D){var J=-1,fe=C.length;for(D||(D=Nt(fe));++J<fe;)D[J]=C[J];return D}function jr(C,D,J,fe){var Pe=!J;J||(J={});for(var Ue=-1,st=D.length;++Ue<st;){var gt=D[Ue],kt=fe?fe(J[gt],C[gt],gt,J,C):n;kt===n&&(kt=C[gt]),Pe?vl(J,gt,kt):Gl(J,gt,kt)}return J}function Xr(C,D){return jr(C,H1(C),D)}function Yi(C,D){return jr(C,_b(C),D)}function Li(C,D){return function(J,fe){var Pe=pr(J)?x1:Yl,Ue=D?D():{};return Pe(J,C,Wn(fe,2),Ue)}}function Zi(C){return hr(function(D,J){var fe=-1,Pe=J.length,Ue=Pe>1?J[Pe-1]:n,st=Pe>2?J[2]:n;for(Ue=C.length>3&&typeof Ue=="function"?(Pe--,Ue):n,st&&Do(J[0],J[1],st)&&(Ue=Pe<3?n:Ue,Pe=1),D=ri(D);++fe<Pe;){var gt=J[fe];gt&&C(D,gt,fe,Ue)}return D})}function Pi(C,D){return function(J,fe){if(J==null)return J;if(!_o(J))return C(J,fe);for(var Pe=J.length,Ue=D?Pe:-1,st=ri(J);(D?Ue--:++Ue<Pe)&&fe(st[Ue],Ue,st)!==!1;);return J}}function Qa(C){return function(D,J,fe){for(var Pe=-1,Ue=ri(D),st=fe(D),gt=st.length;gt--;){var kt=st[C?gt:++Pe];if(J(Ue[kt],kt,Ue)===!1)break}return D}}function Oa(C,D,J){var fe=D&O,Pe=As(C);function Ue(){var st=this&&this!==Di&&this instanceof Ue?Pe:C;return st.apply(fe?J:this,arguments)}return Ue}function fa(C){return function(D){D=Zr(D);var J=ks(D)?ts(D):n,fe=J?J[0]:D.charAt(0),Pe=J?ot(J,1).join(""):D.slice(1);return fe[C]()+Pe}}function Ki(C){return function(D){return Vl(kh(i2(D).replace(ki,"")),C,"")}}function As(C){return function(){var D=arguments;switch(D.length){case 0:return new C;case 1:return new C(D[0]);case 2:return new C(D[0],D[1]);case 3:return new C(D[0],D[1],D[2]);case 4:return new C(D[0],D[1],D[2],D[3]);case 5:return new C(D[0],D[1],D[2],D[3],D[4]);case 6:return new C(D[0],D[1],D[2],D[3],D[4],D[5]);case 7:return new C(D[0],D[1],D[2],D[3],D[4],D[5],D[6])}var J=Wl(C.prototype),fe=C.apply(J,D);return Vi(fe)?fe:J}}function ju(C,D,J){var fe=As(C);function Pe(){for(var Ue=arguments.length,st=Nt(Ue),gt=Ue,kt=ed(Pe);gt--;)st[gt]=arguments[gt];var Kt=Ue<3&&st[0]!==kt&&st[Ue-1]!==kt?[]:Ws(st,kt);if(Ue-=Kt.length,Ue<J)return li(C,D,Is,Pe.placeholder,n,st,Kt,n,n,J-Ue);var en=this&&this!==Di&&this instanceof Pe?fe:C;return Ya(en,this,st)}return Pe}function Jl(C){return function(D,J,fe){var Pe=ri(D);if(!_o(D)){var Ue=Wn(J,3);D=Sa(D),J=function(gt){return Ue(Pe[gt],gt,Pe)}}var st=C(D,J,fe);return st>-1?Pe[Ue?D[st]:st]:n}}function Ra(C){return eo(function(D){var J=D.length,fe=J,Pe=Ka.prototype.thru;for(C&&D.reverse();fe--;){var Ue=D[fe];if(typeof Ue!="function")throw new mo(s);if(Pe&&!st&&Qc(Ue)=="wrapper")var st=new Ka([],!0)}for(fe=st?fe:J;++fe<J;){Ue=D[fe];var gt=Qc(Ue),kt=gt=="wrapper"?Jd(Ue):n;kt&&G1(kt[0])&&kt[1]==(Y|B|Q|z)&&!kt[4].length&&kt[9]==1?st=st[Qc(kt[0])].apply(st,kt[3]):st=Ue.length==1&&G1(Ue)?st[gt]():st.thru(Ue)}return function(){var Kt=arguments,en=Kt[0];if(st&&Kt.length==1&&pr(en))return st.plant(en).value();for(var tn=0,xn=J?D[tn].apply(this,Kt):en;++tn<J;)xn=D[tn].call(this,xn);return xn}})}function Is(C,D,J,fe,Pe,Ue,st,gt,kt,Kt){var en=D&Y,tn=D&O,xn=D&I,Fn=D&(B|q),Zn=D&H,wr=xn?n:As(C);function Gn(){for(var Ir=arguments.length,Or=Nt(Ir),ds=Ir;ds--;)Or[ds]=arguments[ds];if(Fn)var zo=ed(Gn),el=Up(Or,zo);if(fe&&(Or=gn(Or,fe,Pe,Fn)),Ue&&(Or=Mn(Or,Ue,st,Fn)),Ir-=el,Fn&&Ir<Kt){var ma=Ws(Or,zo);return li(C,D,Is,Gn.placeholder,J,Or,ma,gt,kt,Kt-Ir)}var nu=tn?J:this,sd=xn?nu[C]:C;return Ir=Or.length,gt?Or=Hw(Or,gt):Zn&&Ir>1&&Or.reverse(),en&&kt<Ir&&(Or.length=kt),this&&this!==Di&&this instanceof Gn&&(sd=wr||As(sd)),sd.apply(nu,Or)}return Gn}function Ql(C,D){return function(J,fe){return N1(J,C,D(fe),{})}}function Jc(C,D){return function(J,fe){var Pe;if(J===n&&fe===n)return D;if(J!==n&&(Pe=J),fe!==n){if(Pe===n)return fe;typeof J=="string"||typeof fe=="string"?(J=ie(J),fe=ie(fe)):(J=re(J),fe=re(fe)),Pe=C(J,fe)}return Pe}}function Ds(C){return eo(function(D){return D=ni(D,Gi(Wn())),hr(function(J){var fe=this;return C(D,function(Pe){return Ya(Pe,fe,J)})})})}function as(C,D){D=D===n?" ":ie(D);var J=D.length;if(J<2)return J?_h(D,C):D;var fe=_h(D,rh(C/Fc(D)));return ks(D)?ot(ts(fe),0,C).join(""):fe.slice(0,C)}function ss(C,D,J,fe){var Pe=D&O,Ue=As(C);function st(){for(var gt=-1,kt=arguments.length,Kt=-1,en=fe.length,tn=Nt(en+kt),xn=this&&this!==Di&&this instanceof st?Ue:C;++Kt<en;)tn[Kt]=fe[Kt];for(;kt--;)tn[Kt++]=arguments[++gt];return Ya(xn,Pe?J:this,tn)}return st}function ls(C){return function(D,J,fe){return fe&&typeof fe!="number"&&Do(D,J,fe)&&(J=fe=n),D=rd(D),J===n?(J=D,D=0):J=rd(J),fe=fe===n?D<J?1:-1:rd(fe),Xc(D,J,fe,C)}}function si(C){return function(D,J){return typeof D=="string"&&typeof J=="string"||(D=Qs(D),J=Qs(J)),C(D,J)}}function li(C,D,J,fe,Pe,Ue,st,gt,kt,Kt){var en=D&B,tn=en?st:n,xn=en?n:st,Fn=en?Ue:n,Zn=en?n:Ue;D|=en?Q:ee,D&=~(en?ee:Q),D&U||(D&=-4);var wr=[C,D,Pe,Fn,tn,Zn,xn,gt,kt,Kt],Gn=J.apply(n,wr);return G1(C)&&Ww(Gn,wr),Gn.placeholder=fe,Gw(Gn,C,D)}function Ni(C){var D=ca[C];return function(J,fe){if(J=Qs(J),fe=fe==null?0:da(_r(fe),292),fe&&qd(J)){var Pe=(Zr(J)+"e").split("e"),Ue=D(Pe[0]+"e"+(+Pe[1]+fe));return Pe=(Zr(Ue)+"e").split("e"),+(Pe[0]+"e"+(+Pe[1]-fe))}return D(J)}}var $i=Bu&&1/Hp(new Bu([,-0]))[1]==ye?function(C){return new Bu(C)}:ua;function Uu(C){return function(D){var J=ha(D);return J==it?Iu(D):J==It?cb(D):jp(D,C(D))}}function Ls(C,D,J,fe,Pe,Ue,st,gt){var kt=D&I;if(!kt&&typeof C!="function")throw new mo(s);var Kt=fe?fe.length:0;if(Kt||(D&=-97,fe=Pe=n),st=st===n?st:la(_r(st),0),gt=gt===n?gt:_r(gt),Kt-=Pe?Pe.length:0,D&ee){var en=fe,tn=Pe;fe=Pe=n}var xn=kt?n:Jd(C),Fn=[C,D,J,fe,Pe,en,tn,Ue,st,gt];if(xn&&Uw(Fn,xn),C=Fn[0],D=Fn[1],J=Fn[2],fe=Fn[3],Pe=Fn[4],gt=Fn[9]=Fn[9]===n?kt?0:C.length:la(Fn[9]-Kt,0),!gt&&D&(B|q)&&(D&=-25),!D||D==O)var Zn=Oa(C,D,J);else D==B||D==q?Zn=ju(C,D,gt):(D==Q||D==(O|Q))&&!Pe.length?Zn=ss(C,D,J,fe):Zn=Is.apply(n,Fn);var wr=xn?u:Ww;return Gw(wr(Zn,Fn),C,D)}function Sl(C,D,J,fe){return C===n||Cl(C,Lu[J])&&!Ar.call(fe,J)?D:C}function dm(C,D,J,fe,Pe,Ue){return Vi(C)&&Vi(D)&&(Ue.set(D,C),Ms(C,D,n,dm,Ue),Ue.delete(D)),C}function j1(C){return Gu(C)?n:C}function fm(C,D,J,fe,Pe,Ue){var st=J&A,gt=C.length,kt=D.length;if(gt!=kt&&!(st&&kt>gt))return!1;var Kt=Ue.get(C),en=Ue.get(D);if(Kt&&en)return Kt==D&&en==C;var tn=-1,xn=!0,Fn=J&N?new La:n;for(Ue.set(C,D),Ue.set(D,C);++tn<gt;){var Zn=C[tn],wr=D[tn];if(fe)var Gn=st?fe(wr,Zn,tn,D,C,Ue):fe(Zn,wr,tn,C,D,Ue);if(Gn!==n){if(Gn)continue;xn=!1;break}if(Fn){if(!zp(D,function(Ir,Or){if(!Bc(Fn,Or)&&(Zn===Ir||Pe(Zn,Ir,J,fe,Ue)))return Fn.push(Or)})){xn=!1;break}}else if(!(Zn===wr||Pe(Zn,wr,J,fe,Ue))){xn=!1;break}}return Ue.delete(C),Ue.delete(D),xn}function Hu(C,D,J,fe,Pe,Ue,st){switch(J){case Sn:if(C.byteLength!=D.byteLength||C.byteOffset!=D.byteOffset)return!1;C=C.buffer,D=D.buffer;case an:return!(C.byteLength!=D.byteLength||!Ue(new qc(C),new qc(D)));case ut:case At:case yt:return Cl(+C,+D);case Ot:return C.name==D.name&&C.message==D.message;case Tt:case sn:return C==D+"";case it:var gt=Iu;case It:var kt=fe&A;if(gt||(gt=Hp),C.size!=D.size&&!kt)return!1;var Kt=st.get(C);if(Kt)return Kt==D;fe|=N,st.set(C,D);var en=fm(gt(C),gt(D),fe,Pe,Ue,st);return st.delete(C),en;case Yt:if(xa)return xa.call(C)==xa.call(D)}return!1}function Wu(C,D,J,fe,Pe,Ue){var st=J&A,gt=bh(C),kt=gt.length,Kt=bh(D),en=Kt.length;if(kt!=en&&!st)return!1;for(var tn=kt;tn--;){var xn=gt[tn];if(!(st?xn in D:Ar.call(D,xn)))return!1}var Fn=Ue.get(C),Zn=Ue.get(D);if(Fn&&Zn)return Fn==D&&Zn==C;var wr=!0;Ue.set(C,D),Ue.set(D,C);for(var Gn=st;++tn<kt;){xn=gt[tn];var Ir=C[xn],Or=D[xn];if(fe)var ds=st?fe(Or,Ir,xn,D,C,Ue):fe(Ir,Or,xn,C,D,Ue);if(!(ds===n?Ir===Or||Pe(Ir,Or,J,fe,Ue):ds)){wr=!1;break}Gn||(Gn=xn=="constructor")}if(wr&&!Gn){var zo=C.constructor,el=D.constructor;zo!=el&&"constructor"in C&&"constructor"in D&&!(typeof zo=="function"&&zo instanceof zo&&typeof el=="function"&&el instanceof el)&&(wr=!1)}return Ue.delete(C),Ue.delete(D),wr}function eo(C){return Cb(Lo(C,n,Qw),C+"")}function bh(C){return P0(C,Sa,H1)}function xh(C){return P0(C,us,_b)}var Jd=ih?function(C){return ih.get(C)}:ua;function Qc(C){for(var D=C.name+"",J=Fu[D],fe=Ar.call(Fu,D)?J.length:0;fe--;){var Pe=J[fe],Ue=Pe.func;if(Ue==null||Ue==C)return Pe.name}return D}function ed(C){var D=Ar.call(Oe,"placeholder")?Oe:C;return D.placeholder}function Wn(){var C=Oe.iteratee||bv;return C=C===bv?A0:C,arguments.length?C(arguments[0],arguments[1]):C}function U1(C,D){var J=C.__data__;return qw(D)?J[typeof D=="string"?"string":"hash"]:J.map}function D0(C){for(var D=Sa(C),J=D.length;J--;){var fe=D[J],Pe=C[fe];D[J]=[fe,Pe,bb(Pe)]}return D}function wh(C,D){var J=E1(C,D);return q1(J)?J:n}function vb(C){var D=Ar.call(C,Uc),J=C[Uc];try{C[Uc]=n;var fe=!0}catch{}var Pe=eh.call(C);return fe&&(D?C[Uc]=J:delete C[Uc]),Pe}var H1=Hc?function(C){return C==null?[]:(C=ri(C),wi(Hc(C),function(D){return p0.call(C,D)}))}:cf,_b=Hc?function(C){for(var D=[];C;)gi(D,H1(C)),C=jl(C);return D}:cf,ha=yo;(g0&&ha(new g0(new ArrayBuffer(1)))!=Sn||Ul&&ha(new Ul)!=it||y0&&ha(y0.resolve())!=qe||Bu&&ha(new Bu)!=It||Hl&&ha(new Hl)!=vt)&&(ha=function(C){var D=yo(C),J=D==Ie?C.constructor:n,fe=J?Qd(J):"";if(fe)switch(fe){case ah:return Sn;case Qp:return it;case hb:return qe;case A1:return It;case zi:return vt}return D});function yk(C,D,J){for(var fe=-1,Pe=J.length;++fe<Pe;){var Ue=J[fe],st=Ue.size;switch(Ue.type){case"drop":C+=st;break;case"dropRight":D-=st;break;case"take":D=da(D,C+st);break;case"takeRight":C=la(C,D-st);break}}return{start:C,end:D}}function hm(C){var D=C.match(un);return D?D[1].split(Cc):[]}function L0(C,D,J){D=Je(D,C);for(var fe=-1,Pe=D.length,Ue=!1;++fe<Pe;){var st=Ks(D[fe]);if(!(Ue=C!=null&&J(C,st)))break;C=C[st]}return Ue||++fe!=Pe?Ue:(Pe=C==null?0:C.length,!!Pe&&cv(Pe)&&td(st,Pe)&&(pr(C)||ef(C)))}function W1(C){var D=C.length,J=new C.constructor(D);return D&&typeof C[0]=="string"&&Ar.call(C,"index")&&(J.index=C.index,J.input=C.input),J}function Vw(C){return typeof C.constructor=="function"&&!pm(C)?Wl(jl(C)):{}}function vk(C,D,J){var fe=C.constructor;switch(D){case an:return Rt(C);case ut:case At:return new fe(+C);case Sn:return Vt(C,J);case On:case ft:case Ge:case rt:case $t:case Gt:case Zt:case rn:case Dn:return Tn(C,J);case it:return new fe;case yt:case sn:return new fe(C);case Tt:return Qt(C);case It:return new fe;case Yt:return Xt(C)}}function _k(C,D){var J=D.length;if(!J)return C;var fe=J-1;return D[fe]=(J>1?"& ":"")+D[fe],D=D.join(J>2?", ":" "),C.replace(v1,`{
928/* [wrapped with `+D+`] */
929`)}function bk(C){return pr(C)||ef(C)||!!(lr&&C&&C[lr])}function td(C,D){var J=typeof C;return D=D??$e,!!D&&(J=="number"||J!="symbol"&&nr.test(C))&&C>-1&&C%1==0&&C<D}function Do(C,D,J){if(!Vi(J))return!1;var fe=typeof D;return(fe=="number"?_o(J)&&td(D,J.length):fe=="string"&&D in J)?Cl(J[D],C):!1}function O0(C,D){if(pr(C))return!1;var J=typeof C;return J=="number"||J=="symbol"||J=="boolean"||C==null||Js(C)?!0:Sc.test(C)||!_a.test(C)||D!=null&&C in ri(D)}function qw(C){var D=typeof C;return D=="string"||D=="number"||D=="symbol"||D=="boolean"?C!=="__proto__":C===null}function G1(C){var D=Qc(C),J=Oe[D];if(typeof J!="function"||!(D in fr.prototype))return!1;if(C===J)return!0;var fe=Jd(J);return!!fe&&C===fe[0]}function xk(C){return!!d0&&d0 in C}var wk=hl?Xs:X0;function pm(C){var D=C&&C.constructor,J=typeof D=="function"&&D.prototype||Lu;return C===J}function bb(C){return C===C&&!Vi(C)}function jw(C,D){return function(J){return J==null?!1:J[C]===D&&(D!==n||C in ri(J))}}function xb(C){var D=Sm(C,function(fe){return J.size===y&&J.clear(),fe}),J=D.cache;return D}function Uw(C,D){var J=C[1],fe=D[1],Pe=J|fe,Ue=Pe<(O|I|Y),st=fe==Y&&J==B||fe==Y&&J==z&&C[7].length<=D[8]||fe==(Y|z)&&D[7].length<=D[8]&&J==B;if(!(Ue||st))return C;fe&O&&(C[2]=D[2],Pe|=J&O?0:U);var gt=D[3];if(gt){var kt=C[3];C[3]=kt?gn(kt,gt,D[4]):gt,C[4]=kt?Ws(C[3],b):D[4]}return gt=D[5],gt&&(kt=C[5],C[5]=kt?Mn(kt,gt,D[6]):gt,C[6]=kt?Ws(C[5],b):D[6]),gt=D[7],gt&&(C[7]=gt),fe&Y&&(C[8]=C[8]==null?D[8]:da(C[8],D[8])),C[9]==null&&(C[9]=D[9]),C[0]=D[0],C[1]=Pe,C}function wb(C){var D=[];if(C!=null)for(var J in ri(C))D.push(J);return D}function R0(C){return eh.call(C)}function Lo(C,D,J){return D=la(D===n?C.length-1:D,0),function(){for(var fe=arguments,Pe=-1,Ue=la(fe.length-D,0),st=Nt(Ue);++Pe<Ue;)st[Pe]=fe[D+Pe];Pe=-1;for(var gt=Nt(D+1);++Pe<D;)gt[Pe]=fe[Pe];return gt[D]=J(st),Ya(C,this,gt)}}function Sb(C,D){return D.length<2?C:Kl(C,S(D,0,-1))}function Hw(C,D){for(var J=C.length,fe=da(D.length,J),Pe=ir(C);fe--;){var Ue=D[fe];C[fe]=td(Ue,J)?Pe[Ue]:n}return C}function B0(C,D){if(!(D==="constructor"&&typeof C[D]=="function")&&D!="__proto__")return C[D]}var Ww=Tb(u),mm=fb||function(C,D){return Di.setTimeout(C,D)},Cb=Tb(h);function Gw(C,D,J){var fe=D+"";return Cb(C,_k(fe,Yw(hm(fe),J)))}function Tb(C){var D=0,J=0;return function(){var fe=Wc(),Pe=pe-(fe-J);if(J=fe,Pe>0){if(++D>=le)return arguments[0]}else D=0;return C.apply(n,arguments)}}function Y1(C,D){var J=-1,fe=C.length,Pe=fe-1;for(D=D===n?fe:D;++J<D;){var Ue=Kc(J,Pe),st=C[Ue];C[Ue]=C[J],C[J]=st}return C.length=D,C}var kb=xb(function(C){var D=[];return C.charCodeAt(0)===46&&D.push(""),C.replace(y1,function(J,fe,Pe,Ue){D.push(Pe?Ue.replace(ku,"$1"):fe||J)}),D});function Ks(C){if(typeof C=="string"||Js(C))return C;var D=C+"";return D=="0"&&1/C==-ye?"-0":D}function Qd(C){if(C!=null){try{return Ou.call(C)}catch{}try{return C+""}catch{}}return""}function Yw(C,D){return $o(nt,function(J){var fe="_."+J[0];D&J[1]&&!Za(C,fe)&&C.push(fe)}),C.sort()}function Zw(C){if(C instanceof fr)return C.clone();var D=new Ka(C.__wrapped__,C.__chain__);return D.__actions__=ir(C.__actions__),D.__index__=C.__index__,D.__values__=C.__values__,D}function Sk(C,D,J){(J?Do(C,D,J):D===n)?D=1:D=la(_r(D),0);var fe=C==null?0:C.length;if(!fe||D<1)return[];for(var Pe=0,Ue=0,st=Nt(rh(fe/D));Pe<fe;)st[Ue++]=S(C,Pe,Pe+=D);return st}function Ck(C){for(var D=-1,J=C==null?0:C.length,fe=0,Pe=[];++D<J;){var Ue=C[D];Ue&&(Pe[fe++]=Ue)}return Pe}function Z1(){var C=arguments.length;if(!C)return[];for(var D=Nt(C-1),J=arguments[0],fe=C;fe--;)D[fe-1]=arguments[fe];return gi(pr(J)?ir(J):[J],or(D,1))}var Eb=hr(function(C,D){return pa(C)?qu(C,or(D,1,pa,!0)):[]}),Kw=hr(function(C,D){var J=Oo(D);return pa(J)&&(J=n),pa(C)?qu(C,or(D,1,pa,!0),Wn(J,2)):[]}),Sh=hr(function(C,D){var J=Oo(D);return pa(J)&&(J=n),pa(C)?qu(C,or(D,1,pa,!0),n,J):[]});function F0(C,D,J){var fe=C==null?0:C.length;return fe?(D=J||D===n?1:_r(D),S(C,D<0?0:D,fe)):[]}function Tk(C,D,J){var fe=C==null?0:C.length;return fe?(D=J||D===n?1:_r(D),D=fe-D,S(C,0,D<0?0:D)):[]}function kk(C,D){return C&&C.length?Le(C,Wn(D,3),!0,!0):[]}function Ek(C,D){return C&&C.length?Le(C,Wn(D,3),!0):[]}function Pk(C,D,J,fe){var Pe=C==null?0:C.length;return Pe?(J&&typeof J!="number"&&Do(C,D,J)&&(J=0,fe=Pe),E0(C,D,J,fe)):[]}function Xw(C,D,J){var fe=C==null?0:C.length;if(!fe)return-1;var Pe=J==null?0:_r(J);return Pe<0&&(Pe=la(fe+Pe,0)),Ic(C,Wn(D,3),Pe)}function Jw(C,D,J){var fe=C==null?0:C.length;if(!fe)return-1;var Pe=fe-1;return J!==n&&(Pe=_r(J),Pe=J<0?la(fe+Pe,0):da(Pe,fe-1)),Ic(C,Wn(D,3),Pe,!0)}function Qw(C){var D=C==null?0:C.length;return D?or(C,1):[]}function Pb(C){var D=C==null?0:C.length;return D?or(C,ye):[]}function $k(C,D){var J=C==null?0:C.length;return J?(D=D===n?1:_r(D),or(C,D)):[]}function e3(C){for(var D=-1,J=C==null?0:C.length,fe={};++D<J;){var Pe=C[D];vl(fe,Pe[0],Pe[1])}return fe}function gm(C){return C&&C.length?C[0]:n}function Mk(C,D,J){var fe=C==null?0:C.length;if(!fe)return-1;var Pe=J==null?0:_r(J);return Pe<0&&(Pe=la(fe+Pe,0)),ql(C,D,Pe)}function Xi(C){var D=C==null?0:C.length;return D?S(C,0,-1):[]}var ym=hr(function(C){var D=ni(C,et);return D.length&&D[0]===C[0]?xl(D):[]}),t3=hr(function(C){var D=Oo(C),J=ni(C,et);return D===Oo(J)?D=n:J.pop(),J.length&&J[0]===C[0]?xl(J,Wn(D,2)):[]}),K1=hr(function(C){var D=Oo(C),J=ni(C,et);return D=typeof D=="function"?D:n,D&&J.pop(),J.length&&J[0]===C[0]?xl(J,n,D):[]});function X1(C,D){return C==null?"":Xp.call(C,D)}function Oo(C){var D=C==null?0:C.length;return D?C[D-1]:n}function n3(C,D,J){var fe=C==null?0:C.length;if(!fe)return-1;var Pe=fe;return J!==n&&(Pe=_r(J),Pe=Pe<0?la(fe+Pe,0):da(Pe,fe-1)),D===D?$1(C,D,Pe):Ic(C,Lc,Pe,!0)}function r3(C,D){return C&&C.length?Kd(C,_r(D)):n}var z0=hr(J1);function J1(C,D){return C&&C.length&&D&&D.length?Xl(C,D):C}function vm(C,D,J){return C&&C.length&&D&&D.length?Xl(C,D,Wn(J,2)):C}function Q1(C,D,J){return C&&C.length&&D&&D.length?Xl(C,D,n,J):C}var _m=eo(function(C,D){var J=C==null?0:C.length,fe=Zl(C,D);return um(C,ni(D,function(Pe){return td(Pe,J)?+Pe:Pe}).sort(fn)),fe});function N0(C,D){var J=[];if(!(C&&C.length))return J;var fe=-1,Pe=[],Ue=C.length;for(D=Wn(D,3);++fe<Ue;){var st=C[fe];D(st,fe,C)&&(J.push(st),Pe.push(fe))}return um(C,Pe),J}function $b(C){return C==null?C:m0.call(C)}function i3(C,D,J){var fe=C==null?0:C.length;return fe?(J&&typeof J!="number"&&Do(C,D,J)?(D=0,J=fe):(D=D==null?0:_r(D),J=J===n?fe:_r(J)),S(C,D,J)):[]}function Ch(C,D){return V(C,D)}function Ak(C,D,J){return W(C,D,Wn(J,2))}function a3(C,D){var J=C==null?0:C.length;if(J){var fe=V(C,D);if(fe<J&&Cl(C[fe],D))return fe}return-1}function V0(C,D){return V(C,D,!0)}function Mb(C,D,J){return W(C,D,Wn(J,2),!0)}function o3(C,D){var J=C==null?0:C.length;if(J){var fe=V(C,D,!0)-1;if(Cl(C[fe],D))return fe}return-1}function s3(C){return C&&C.length?X(C):[]}function Ik(C,D){return C&&C.length?X(C,Wn(D,2)):[]}function Dk(C){var D=C==null?0:C.length;return D?S(C,1,D):[]}function Lk(C,D,J){return C&&C.length?(D=J||D===n?1:_r(D),S(C,0,D<0?0:D)):[]}function Ok(C,D,J){var fe=C==null?0:C.length;return fe?(D=J||D===n?1:_r(D),D=fe-D,S(C,D<0?0:D,fe)):[]}function Rk(C,D){return C&&C.length?Le(C,Wn(D,3),!1,!0):[]}function q0(C,D){return C&&C.length?Le(C,Wn(D,3)):[]}var Bk=hr(function(C){return he(or(C,1,pa,!0))}),l3=hr(function(C){var D=Oo(C);return pa(D)&&(D=n),he(or(C,1,pa,!0),Wn(D,2))}),Fk=hr(function(C){var D=Oo(C);return D=typeof D=="function"?D:n,he(or(C,1,pa,!0),n,D)});function zk(C){return C&&C.length?he(C):[]}function Nk(C,D){return C&&C.length?he(C,Wn(D,2)):[]}function u3(C,D){return D=typeof D=="function"?D:n,C&&C.length?he(C,n,D):[]}function Ab(C){if(!(C&&C.length))return[];var D=0;return C=wi(C,function(J){if(pa(J))return D=la(J.length,D),!0}),n0(D,function(J){return ni(C,es(J))})}function ev(C,D){if(!(C&&C.length))return[];var J=Ab(C);return D==null?J:ni(J,function(fe){return Ya(D,n,fe)})}var j0=hr(function(C,D){return pa(C)?qu(C,D):[]}),Ib=hr(function(C){return Xe(wi(C,pa))}),Vk=hr(function(C){var D=Oo(C);return pa(D)&&(D=n),Xe(wi(C,pa),Wn(D,2))}),qk=hr(function(C){var D=Oo(C);return D=typeof D=="function"?D:n,Xe(wi(C,pa),n,D)}),c3=hr(Ab);function d3(C,D){return Ze(C||[],D||[],Gl)}function jk(C,D){return Ze(C||[],D||[],E)}var Uk=hr(function(C){var D=C.length,J=D>1?C[D-1]:n;return J=typeof J=="function"?(C.pop(),J):n,ev(C,J)});function bm(C){var D=Oe(C);return D.__chain__=!0,D}function f3(C,D){return D(C),C}function U0(C,D){return D(C)}var tv=eo(function(C){var D=C.length,J=D?C[0]:0,fe=this.__wrapped__,Pe=function(Ue){return Zl(Ue,C)};return D>1||this.__actions__.length||!(fe instanceof fr)||!td(J)?this.thru(Pe):(fe=fe.slice(J,+J+(D?1:0)),fe.__actions__.push({func:U0,args:[Pe],thisArg:n}),new Ka(fe,this.__chain__).thru(function(Ue){return D&&!Ue.length&&Ue.push(n),Ue}))});function Db(){return bm(this)}function h3(){return new Ka(this.value(),this.__chain__)}function H0(){this.__values__===n&&(this.__values__=D3(this.value()));var C=this.__index__>=this.__values__.length,D=C?n:this.__values__[this.__index__++];return{done:C,value:D}}function Lb(){return this}function p3(C){for(var D,J=this;J instanceof Gs;){var fe=Zw(J);fe.__index__=0,fe.__values__=n,D?Pe.__wrapped__=fe:D=fe;var Pe=fe;J=J.__wrapped__}return Pe.__wrapped__=C,D}function Ob(){var C=this.__wrapped__;if(C instanceof fr){var D=C;return this.__actions__.length&&(D=new fr(this)),D=D.reverse(),D.__actions__.push({func:U0,args:[$b],thisArg:n}),new Ka(D,this.__chain__)}return this.thru($b)}function Hk(){return He(this.__wrapped__,this.__actions__)}var Ba=Li(function(C,D,J){Ar.call(C,J)?++C[J]:vl(C,J,1)});function Rb(C,D,J){var fe=pr(C)?Fi:k0;return J&&Do(C,D,J)&&(D=n),fe(C,Wn(D,3))}function W0(C,D){var J=pr(C)?wi:bl;return J(C,Wn(D,3))}var Bb=Jl(Xw),nv=Jl(Jw);function Fb(C,D){return or(Y0(C,D),1)}function zb(C,D){return or(Y0(C,D),ye)}function xm(C,D,J){return J=J===n?1:_r(J),or(Y0(C,D),J)}function Th(C,D){var J=pr(C)?$o:_l;return J(C,Wn(D,3))}function G0(C,D){var J=pr(C)?w1:T0;return J(C,Wn(D,3))}var Wk=Li(function(C,D,J){Ar.call(C,J)?C[J].push(D):vl(C,J,[D])});function rv(C,D,J,fe){C=_o(C)?C:Yu(C),J=J&&!fe?_r(J):0;var Pe=C.length;return J<0&&(J=la(Pe+J,0)),fv(C)?J<=Pe&&C.indexOf(D,J)>-1:!!Pe&&ql(C,D,J)>-1}var m3=hr(function(C,D,J){var fe=-1,Pe=typeof D=="function",Ue=_o(C)?Nt(C.length):[];return _l(C,function(st){Ue[++fe]=Pe?Ya(D,st,J):wl(st,D,J)}),Ue}),g3=Li(function(C,D,J){vl(C,J,D)});function Y0(C,D){var J=pr(C)?ni:gh;return J(C,Wn(D,3))}function vo(C,D,J,fe){return C==null?[]:(pr(D)||(D=D==null?[]:[D]),J=fe?n:J,pr(J)||(J=J==null?[]:[J]),yh(C,D,J))}var nd=Li(function(C,D,J){C[J?0:1].push(D)},function(){return[[],[]]});function Gk(C,D,J){var fe=pr(C)?Vl:qp,Pe=arguments.length<3;return fe(C,Wn(D,4),J,Pe,_l)}function Yk(C,D,J){var fe=pr(C)?t0:qp,Pe=arguments.length<3;return fe(C,Wn(D,4),J,Pe,T0)}function Zk(C,D){var J=pr(C)?wi:bl;return J(C,Cm(Wn(D,3)))}function Kk(C){var D=pr(C)?gl:cm;return D(C)}function Xk(C,D,J){(J?Do(C,D,J):D===n)?D=1:D=_r(D);var fe=pr(C)?yl:I0;return fe(C,D)}function y3(C){var D=pr(C)?bn:_;return D(C)}function v3(C){if(C==null)return 0;if(_o(C))return fv(C)?Fc(C):C.length;var D=ha(C);return D==it||D==It?C.size:Zc(C).length}function Nb(C,D,J){var fe=pr(C)?zp:M;return J&&Do(C,D,J)&&(D=n),fe(C,Wn(D,3))}var wm=hr(function(C,D){if(C==null)return[];var J=D.length;return J>1&&Do(C,D[0],D[1])?D=[]:J>2&&Do(D[0],D[1],D[2])&&(D=[D[0]]),yh(C,or(D,1),[])}),iv=db||function(){return Di.Date.now()};function Jk(C,D){if(typeof D!="function")throw new mo(s);return C=_r(C),function(){if(--C<1)return D.apply(this,arguments)}}function av(C,D,J){return D=J?n:D,D=C&&D==null?C.length:D,Ls(C,Y,n,n,n,n,D)}function Vb(C,D){var J;if(typeof D!="function")throw new mo(s);return C=_r(C),function(){return--C>0&&(J=D.apply(this,arguments)),C<=1&&(D=n),J}}var qb=hr(function(C,D,J){var fe=O;if(J.length){var Pe=Ws(J,ed(qb));fe|=Q}return Ls(C,fe,D,J,Pe)}),ov=hr(function(C,D,J){var fe=O|I;if(J.length){var Pe=Ws(J,ed(ov));fe|=Q}return Ls(D,fe,C,J,Pe)});function _3(C,D,J){D=J?n:D;var fe=Ls(C,B,n,n,n,n,n,D);return fe.placeholder=_3.placeholder,fe}function jb(C,D,J){D=J?n:D;var fe=Ls(C,q,n,n,n,n,n,D);return fe.placeholder=jb.placeholder,fe}function sv(C,D,J){var fe,Pe,Ue,st,gt,kt,Kt=0,en=!1,tn=!1,xn=!0;if(typeof C!="function")throw new mo(s);D=Qs(D)||0,Vi(J)&&(en=!!J.leading,tn="maxWait"in J,Ue=tn?la(Qs(J.maxWait)||0,D):Ue,xn="trailing"in J?!!J.trailing:xn);function Fn(ma){var nu=fe,sd=Pe;return fe=Pe=n,Kt=ma,st=C.apply(sd,nu),st}function Zn(ma){return Kt=ma,gt=mm(Ir,D),en?Fn(ma):st}function wr(ma){var nu=ma-kt,sd=ma-Kt,m5=D-nu;return tn?da(m5,Ue-sd):m5}function Gn(ma){var nu=ma-kt,sd=ma-Kt;return kt===n||nu>=D||nu<0||tn&&sd>=Ue}function Ir(){var ma=iv();if(Gn(ma))return Or(ma);gt=mm(Ir,wr(ma))}function Or(ma){return gt=n,xn&&fe?Fn(ma):(fe=Pe=n,st)}function ds(){gt!==n&&tt(gt),Kt=0,fe=kt=Pe=gt=n}function zo(){return gt===n?st:Or(iv())}function el(){var ma=iv(),nu=Gn(ma);if(fe=arguments,Pe=this,kt=ma,nu){if(gt===n)return Zn(kt);if(tn)return tt(gt),gt=mm(Ir,D),Fn(kt)}return gt===n&&(gt=mm(Ir,D)),st}return el.cancel=ds,el.flush=zo,el}var Qk=hr(function(C,D){return nm(C,1,D)}),eE=hr(function(C,D,J){return nm(C,Qs(D)||0,J)});function tE(C){return Ls(C,H)}function Sm(C,D){if(typeof C!="function"||D!=null&&typeof D!="function")throw new mo(s);var J=function(){var fe=arguments,Pe=D?D.apply(this,fe):fe[0],Ue=J.cache;if(Ue.has(Pe))return Ue.get(Pe);var st=C.apply(this,fe);return J.cache=Ue.set(Pe,st)||Ue,st};return J.cache=new(Sm.Cache||Ys),J}Sm.Cache=Ys;function Cm(C){if(typeof C!="function")throw new mo(s);return function(){var D=arguments;switch(D.length){case 0:return!C.call(this);case 1:return!C.call(this,D[0]);case 2:return!C.call(this,D[0],D[1]);case 3:return!C.call(this,D[0],D[1],D[2])}return!C.apply(this,D)}}function Ub(C){return Vb(2,C)}var b3=Ke(function(C,D){D=D.length==1&&pr(D[0])?ni(D[0],Gi(Wn())):ni(or(D,1),Gi(Wn()));var J=D.length;return hr(function(fe){for(var Pe=-1,Ue=da(fe.length,J);++Pe<Ue;)fe[Pe]=D[Pe].call(this,fe[Pe]);return Ya(C,this,fe)})}),Hb=hr(function(C,D){var J=Ws(D,ed(Hb));return Ls(C,Q,n,D,J)}),lv=hr(function(C,D){var J=Ws(D,ed(lv));return Ls(C,ee,n,D,J)}),x3=eo(function(C,D){return Ls(C,z,n,n,n,D)});function nE(C,D){if(typeof C!="function")throw new mo(s);return D=D===n?D:_r(D),hr(C,D)}function rE(C,D){if(typeof C!="function")throw new mo(s);return D=D==null?0:la(_r(D),0),hr(function(J){var fe=J[D],Pe=ot(J,0,D);return fe&&gi(Pe,fe),Ya(C,this,Pe)})}function w3(C,D,J){var fe=!0,Pe=!0;if(typeof C!="function")throw new mo(s);return Vi(J)&&(fe="leading"in J?!!J.leading:fe,Pe="trailing"in J?!!J.trailing:Pe),sv(C,D,{leading:fe,maxWait:D,trailing:Pe})}function iE(C){return av(C,1)}function uv(C,D){return Hb(lt(D),C)}function aE(){if(!arguments.length)return[];var C=arguments[0];return pr(C)?C:[C]}function oE(C){return Ao(C,$)}function sE(C,D){return D=typeof D=="function"?D:n,Ao(C,$,D)}function lE(C){return Ao(C,T|$)}function uE(C,D){return D=typeof D=="function"?D:n,Ao(C,T|$,D)}function cE(C,D){return D==null||C0(C,D,Sa(D))}function Cl(C,D){return C===D||C!==C&&D!==D}var Wb=si(is),S3=si(function(C,D){return C>=D}),ef=Xa((function(){return arguments})())?Xa:function(C){return Ji(C)&&Ar.call(C,"callee")&&!p0.call(C,"callee")},pr=Nt.isArray,dE=kr?Gi(kr):V1;function _o(C){return C!=null&&cv(C.length)&&!Xs(C)}function pa(C){return Ji(C)&&_o(C)}function C3(C){return C===!0||C===!1||Ji(C)&&yo(C)==ut}var tf=Kp||X0,fE=Ts?Gi(Ts):im;function hE(C){return Ji(C)&&C.nodeType===1&&!Gu(C)}function T3(C){if(C==null)return!0;if(_o(C)&&(pr(C)||typeof C=="string"||typeof C.splice=="function"||tf(C)||km(C)||ef(C)))return!C.length;var D=ha(C);if(D==it||D==It)return!C.size;if(pm(C))return!Zc(C).length;for(var J in C)if(Ar.call(C,J))return!1;return!0}function pE(C,D){return Ja(C,D)}function mE(C,D,J){J=typeof J=="function"?J:n;var fe=J?J(C,D):n;return fe===n?Ja(C,D,n,J):!!fe}function Gb(C){if(!Ji(C))return!1;var D=yo(C);return D==Ot||D==Dt||typeof C.message=="string"&&typeof C.name=="string"&&!Gu(C)}function wa(C){return typeof C=="number"&&qd(C)}function Xs(C){if(!Vi(C))return!1;var D=yo(C);return D==Ee||D==Ye||D==zt||D==pt}function k3(C){return typeof C=="number"&&C==_r(C)}function cv(C){return typeof C=="number"&&C>-1&&C%1==0&&C<=$e}function Vi(C){var D=typeof C;return C!=null&&(D=="object"||D=="function")}function Ji(C){return C!=null&&typeof C=="object"}var E3=$c?Gi($c):yb;function P3(C,D){return C===D||M0(C,D,D0(D))}function $3(C,D,J){return J=typeof J=="function"?J:n,M0(C,D,D0(D),J)}function Tm(C){return Z0(C)&&C!=+C}function Yb(C){if(wk(C))throw new rr(a);return q1(C)}function M3(C){return C===null}function A3(C){return C==null}function Z0(C){return typeof C=="number"||Ji(C)&&yo(C)==yt}function Gu(C){if(!Ji(C)||yo(C)!=Ie)return!1;var D=jl(C);if(D===null)return!0;var J=Ar.call(D,"constructor")&&D.constructor;return typeof J=="function"&&J instanceof J&&Ou.call(J)==f0}var dv=Au?Gi(Au):mh;function gE(C){return k3(C)&&C>=-$e&&C<=$e}var I3=Mc?Gi(Mc):Ei;function fv(C){return typeof C=="string"||!pr(C)&&Ji(C)&&yo(C)==sn}function Js(C){return typeof C=="symbol"||Ji(C)&&yo(C)==Yt}var km=Fp?Gi(Fp):oi;function yE(C){return C===n}function vE(C){return Ji(C)&&ha(C)==vt}function _E(C){return Ji(C)&&yo(C)==Jt}var bE=si(Yd),xE=si(function(C,D){return C<=D});function D3(C){if(!C)return[];if(_o(C))return fv(C)?ts(C):ir(C);if(Ru&&C[Ru])return s0(C[Ru]());var D=ha(C),J=D==it?Iu:D==It?Hp:Yu;return J(C)}function rd(C){if(!C)return C===0?C:0;if(C=Qs(C),C===ye||C===-ye){var D=C<0?-1:1;return D*Be}return C===C?C:0}function _r(C){var D=rd(C),J=D%1;return D===D?J?D-J:D:0}function hv(C){return C?Vu(_r(C),0,at):0}function Qs(C){if(typeof C=="number")return C;if(Js(C))return je;if(Vi(C)){var D=typeof C.valueOf=="function"?C.valueOf():C;C=Vi(D)?D+"":D}if(typeof C!="string")return C===0?C:+C;C=S1(C);var J=Jo.test(C);return J||Bl.test(C)?Nl(C.slice(2),J?2:8):dr.test(C)?je:+C}function id(C){return jr(C,us(C))}function pv(C){return C?Vu(_r(C),-$e,$e):C===0?C:0}function Zr(C){return C==null?"":ie(C)}var wE=Zi(function(C,D){if(pm(D)||_o(D)){jr(D,Sa(D),C);return}for(var J in D)Ar.call(D,J)&&Gl(C,J,D[J])}),Zb=Zi(function(C,D){jr(D,us(D),C)}),L3=Zi(function(C,D,J,fe){jr(D,us(D),C,fe)}),Kb=Zi(function(C,D,J,fe){jr(D,Sa(D),C,fe)}),SE=eo(Zl);function CE(C,D){var J=Wl(C);return D==null?J:Wd(J,D)}var TE=hr(function(C,D){C=ri(C);var J=-1,fe=D.length,Pe=fe>2?D[2]:n;for(Pe&&Do(D[0],D[1],Pe)&&(fe=1);++J<fe;)for(var Ue=D[J],st=us(Ue),gt=-1,kt=st.length;++gt<kt;){var Kt=st[gt],en=C[Kt];(en===n||Cl(en,Lu[Kt])&&!Ar.call(C,Kt))&&(C[Kt]=Ue[Kt])}return C}),O3=hr(function(C){return C.push(n,dm),Ya(V3,n,C)});function R3(C,D){return Vp(C,Wn(D,3),Io)}function ad(C,D){return Vp(C,Wn(D,3),hh)}function nf(C,D){return C==null?C:rm(C,Wn(D,3),us)}function B3(C,D){return C==null?C:fh(C,Wn(D,3),us)}function Xb(C,D){return C&&Io(C,Wn(D,3))}function kE(C,D){return C&&hh(C,Wn(D,3))}function mv(C){return C==null?[]:Gd(C,Sa(C))}function Jb(C){return C==null?[]:Gd(C,us(C))}function Qb(C,D,J){var fe=C==null?n:Kl(C,D);return fe===n?J:fe}function e2(C,D){return C!=null&&L0(C,D,ph)}function K0(C,D){return C!=null&&L0(C,D,Pn)}var Em=Ql(function(C,D,J){D!=null&&typeof D.toString!="function"&&(D=eh.call(D)),C[D]=J},sf(cs)),F3=Ql(function(C,D,J){D!=null&&typeof D.toString!="function"&&(D=eh.call(D)),Ar.call(C,D)?C[D].push(J):C[D]=[J]},Wn),z3=hr(wl);function Sa(C){return _o(C)?w0(C):Zc(C)}function us(C){return _o(C)?w0(C,!0):am(C)}function gv(C,D){var J={};return D=Wn(D,3),Io(C,function(fe,Pe,Ue){vl(J,D(fe,Pe,Ue),fe)}),J}function N3(C,D){var J={};return D=Wn(D,3),Io(C,function(fe,Pe,Ue){vl(J,Pe,D(fe,Pe,Ue))}),J}var EE=Zi(function(C,D,J){Ms(C,D,J)}),V3=Zi(function(C,D,J,fe){Ms(C,D,J,fe)}),PE=eo(function(C,D){var J={};if(C==null)return J;var fe=!1;D=ni(D,function(Ue){return Ue=Je(Ue,C),fe||(fe=Ue.length>1),Ue}),jr(C,xh(C),J),fe&&(J=Ao(J,T|x|$,j1));for(var Pe=D.length;Pe--;)ge(J,D[Pe]);return J});function $E(C,D){return yv(C,Cm(Wn(D)))}var ME=eo(function(C,D){return C==null?{}:vh(C,D)});function yv(C,D){if(C==null)return{};var J=ni(xh(C),function(fe){return[fe]});return D=Wn(D),lm(C,J,function(fe,Pe){return D(fe,Pe[0])})}function rf(C,D,J){D=Je(D,C);var fe=-1,Pe=D.length;for(Pe||(Pe=1,C=n);++fe<Pe;){var Ue=C==null?n:C[Ks(D[fe])];Ue===n&&(fe=Pe,Ue=J),C=Xs(Ue)?Ue.call(C):Ue}return C}function q3(C,D,J){return C==null?C:E(C,D,J)}function j3(C,D,J,fe){return fe=typeof fe=="function"?fe:n,C==null?C:E(C,D,J,fe)}var t2=Uu(Sa),n2=Uu(us);function U3(C,D,J){var fe=pr(C),Pe=fe||tf(C)||km(C);if(D=Wn(D,4),J==null){var Ue=C&&C.constructor;Pe?J=fe?new Ue:[]:Vi(C)?J=Xs(Ue)?Wl(jl(C)):{}:J={}}return(Pe?$o:Io)(C,function(st,gt,kt){return D(J,st,gt,kt)}),J}function H3(C,D){return C==null?!0:ge(C,D)}function vv(C,D,J){return C==null?C:we(C,D,lt(J))}function W3(C,D,J,fe){return fe=typeof fe=="function"?fe:n,C==null?C:we(C,D,lt(J),fe)}function Yu(C){return C==null?[]:r0(C,Sa(C))}function G3(C){return C==null?[]:r0(C,us(C))}function r2(C,D,J){return J===n&&(J=D,D=n),J!==n&&(J=Qs(J),J=J===J?J:0),D!==n&&(D=Qs(D),D=D===D?D:0),Vu(Qs(C),D,J)}function Y3(C,D,J){return D=rd(D),J===n?(J=D,D=0):J=rd(J),C=Qs(C),Rn(C,D,J)}function Os(C,D,J){if(J&&typeof J!="boolean"&&Do(C,D,J)&&(D=J=n),J===n&&(typeof D=="boolean"?(J=D,D=n):typeof C=="boolean"&&(J=C,C=n)),C===n&&D===n?(C=0,D=1):(C=rd(C),D===n?(D=C,C=0):D=rd(D)),C>D){var fe=C;C=D,D=fe}if(J||C%1||D%1){var Pe=Gc();return da(C+Pe*(D-C+Pc("1e-"+((Pe+"").length-1))),D)}return Kc(C,D)}var Pm=Ki(function(C,D,J){return D=D.toLowerCase(),C+(J?af(D):D)});function af(C){return Fa(Zr(C).toLowerCase())}function i2(C){return C=Zr(C),C&&C.replace(jf,C1).replace(jn,"")}function Z3(C,D,J){C=Zr(C),D=ie(D);var fe=C.length;J=J===n?fe:Vu(_r(J),0,fe);var Pe=J;return J-=D.length,J>=0&&C.slice(J,Pe)==D}function $m(C){return C=Zr(C),C&&Ft.test(C)?C.replace(mi,T1):C}function _v(C){return C=Zr(C),C&&sb.test(C)?C.replace(Mp,"\\$&"):C}var a2=Ki(function(C,D,J){return C+(J?"-":"")+D.toLowerCase()}),o2=Ki(function(C,D,J){return C+(J?" ":"")+D.toLowerCase()}),K3=fa("toLowerCase");function s2(C,D,J){C=Zr(C),D=_r(D);var fe=D?Fc(C):0;if(!D||fe>=D)return C;var Pe=(D-fe)/2;return as(Zp(Pe),J)+C+as(rh(Pe),J)}function l2(C,D,J){C=Zr(C),D=_r(D);var fe=D?Fc(C):0;return D&&fe<D?C+as(D-fe,J):C}function AE(C,D,J){C=Zr(C),D=_r(D);var fe=D?Fc(C):0;return D&&fe<D?as(D-fe,J)+C:C}function X3(C,D,J){return J||D==null?D=0:D&&(D=+D),jd(Zr(C).replace(Id,""),D||0)}function br(C,D,J){return(J?Do(C,D,J):D===n)?D=1:D=_r(D),_h(Zr(C),D)}function of(){var C=arguments,D=Zr(C[0]);return C.length<3?D:D.replace(C[1],C[2])}var u2=Ki(function(C,D,J){return C+(J?"_":"")+D.toLowerCase()});function c2(C,D,J){return J&&typeof J!="number"&&Do(C,D,J)&&(D=J=n),J=J===n?at:J>>>0,J?(C=Zr(C),C&&(typeof D=="string"||D!=null&&!dv(D))&&(D=ie(D),!D&&ks(C))?ot(ts(C),0,J):C.split(D,J)):[]}var od=Ki(function(C,D,J){return C+(J?" ":"")+Fa(D)});function d2(C,D,J){return C=Zr(C),J=J==null?0:Vu(_r(J),0,C.length),D=ie(D),C.slice(J,J+D.length)==D}function IE(C,D,J){var fe=Oe.templateSettings;J&&Do(C,D,J)&&(D=n),C=Zr(C),D=Kb({},D,fe,Sl);var Pe=Kb({},D.imports,fe.imports,Sl),Ue=Sa(Pe),st=r0(Pe,Ue);$o(Ue,function(Gn){if(Ap.test(Gn))throw new rr(f)});var gt,kt,Kt=0,en=D.interpolate||Eu,tn="__p += '",xn=Lr((D.escape||Eu).source+"|"+en.source+"|"+(en===Mr?mn:Eu).source+"|"+(D.evaluate||Eu).source+"|$","g"),Fn="//# sourceURL="+(Ar.call(D,"sourceURL")?(D.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Bd+"]")+`
930`;C.replace(xn,function(Gn,Ir,Or,ds,zo,el){return Or||(Or=ds),tn+=C.slice(Kt,el).replace(Dp,k1),Ir&&(gt=!0,tn+=`' +
931__e(`+Ir+`) +
932'`),zo&&(kt=!0,tn+=`';
933`+zo+`;
934__p += '`),Or&&(tn+=`' +
935((__t = (`+Or+`)) == null ? '' : __t) +
936'`),Kt=el+Gn.length,Gn}),tn+=`';
937`;var Zn=Ar.call(D,"variable")&&D.variable;if(!Zn)tn=`with (obj) {
938`+tn+`
939}
940`;else if(Ap.test(Zn))throw new rr(o);tn=(kt?tn.replace(tr,""):tn).replace(Nr,"$1").replace($r,"$1;"),tn="function("+(Zn||"obj")+`) {
941`+(Zn?"":`obj || (obj = {});
942`)+"var __t, __p = ''"+(gt?", __e = _.escape":"")+(kt?`, __j = Array.prototype.join;
943function print() { __p += __j.call(arguments, '') }
944`:`;
945`)+tn+`return __p
946}`;var wr=Q3(function(){return qr(Ue,Fn+"return "+tn).apply(n,st)});if(wr.source=tn,Gb(wr))throw wr;return wr}function f2(C){return Zr(C).toLowerCase()}function DE(C){return Zr(C).toUpperCase()}function J3(C,D,J){if(C=Zr(C),C&&(J||D===n))return S1(C);if(!C||!(D=ie(D)))return C;var fe=ts(C),Pe=ts(D),Ue=i0(fe,Pe),st=a0(fe,Pe)+1;return ot(fe,Ue,st).join("")}function LE(C,D,J){if(C=Zr(C),C&&(J||D===n))return C.slice(0,l0(C)+1);if(!C||!(D=ie(D)))return C;var fe=ts(C),Pe=a0(fe,ts(D))+1;return ot(fe,0,Pe).join("")}function OE(C,D,J){if(C=Zr(C),C&&(J||D===n))return C.replace(Id,"");if(!C||!(D=ie(D)))return C;var fe=ts(C),Pe=i0(fe,ts(D));return ot(fe,Pe).join("")}function RE(C,D){var J=K,fe=ne;if(Vi(D)){var Pe="separator"in D?D.separator:Pe;J="length"in D?_r(D.length):J,fe="omission"in D?ie(D.omission):fe}C=Zr(C);var Ue=C.length;if(ks(C)){var st=ts(C);Ue=st.length}if(J>=Ue)return C;var gt=J-Fc(fe);if(gt<1)return fe;var kt=st?ot(st,0,gt).join(""):C.slice(0,gt);if(Pe===n)return kt+fe;if(st&&(gt+=kt.length-gt),dv(Pe)){if(C.slice(gt).search(Pe)){var Kt,en=kt;for(Pe.global||(Pe=Lr(Pe.source,Zr(Kn.exec(Pe))+"g")),Pe.lastIndex=0;Kt=Pe.exec(en);)var tn=Kt.index;kt=kt.slice(0,tn===n?gt:tn)}}else if(C.indexOf(ie(Pe),gt)!=gt){var xn=kt.lastIndexOf(Pe);xn>-1&&(kt=kt.slice(0,xn))}return kt+fe}function BE(C){return C=Zr(C),C&&va.test(C)?C.replace(pi,Nd):C}var FE=Ki(function(C,D,J){return C+(J?" ":"")+D.toUpperCase()}),Fa=fa("toUpperCase");function kh(C,D,J){return C=Zr(C),D=J?n:D,D===n?o0(C)?c0(C):Np(C):C.match(D)||[]}var Q3=hr(function(C,D){try{return Ya(C,n,D)}catch(J){return Gb(J)?J:new rr(J)}}),zE=eo(function(C,D){return $o(D,function(J){J=Ks(J),vl(C,J,qb(C[J],C))}),C});function Jr(C){var D=C==null?0:C.length,J=Wn();return C=D?ni(C,function(fe){if(typeof fe[1]!="function")throw new mo(s);return[J(fe[0]),fe[1]]}):[],hr(function(fe){for(var Pe=-1;++Pe<D;){var Ue=C[Pe];if(Ya(Ue[0],this,fe))return Ya(Ue[1],this,fe)}})}function Ro(C){return tm(Ao(C,T))}function sf(C){return function(){return C}}function h2(C,D){return C==null||C!==C?D:C}var p2=Ra(),e5=Ra(!0);function cs(C){return C}function bv(C){return A0(typeof C=="function"?C:Ao(C,T))}function m2(C){return om(Ao(C,T))}function to(C,D){return Zd(C,Ao(D,T))}var eu=hr(function(C,D){return function(J){return wl(J,C,D)}}),Eh=hr(function(C,D){return function(J){return wl(C,J,D)}});function Bo(C,D,J){var fe=Sa(D),Pe=Gd(D,fe);J==null&&!(Vi(D)&&(Pe.length||!fe.length))&&(J=D,D=C,C=this,Pe=Gd(D,Sa(D)));var Ue=!(Vi(J)&&"chain"in J)||!!J.chain,st=Xs(C);return $o(Pe,function(gt){var kt=D[gt];C[gt]=kt,st&&(C.prototype[gt]=function(){var Kt=this.__chain__;if(Ue||Kt){var en=C(this.__wrapped__),tn=en.__actions__=ir(this.__actions__);return tn.push({func:kt,args:arguments,thisArg:C}),en.__chain__=Kt,en}return kt.apply(C,gi([this.value()],arguments))})}),C}function Si(){return Di._===this&&(Di._=Nc),this}function ua(){}function t5(C){return C=_r(C),hr(function(D){return Kd(D,C)})}var lf=Ds(ni),Fo=Ds(Fi),tu=Ds(zp);function Ph(C){return O0(C)?es(Ks(C)):Xd(C)}function g2(C){return function(D){return C==null?n:Kl(C,D)}}var Rs=ls(),uf=ls(!0);function cf(){return[]}function X0(){return!1}function n5(){return{}}function r5(){return""}function i5(){return!0}function a5(C,D){if(C=_r(C),C<1||C>$e)return[];var J=at,fe=da(C,at);D=Wn(D),C-=at;for(var Pe=n0(fe,D);++J<C;)D(J);return Pe}function xv(C){return pr(C)?ni(C,Ks):Js(C)?[C]:ir(kb(Zr(C)))}function o5(C){var D=++Es;return Zr(C)+D}var s5=Jc(function(C,D){return C+D},0),y2=Ni("ceil"),l5=Jc(function(C,D){return C/D},1),Mm=Ni("floor");function Am(C){return C&&C.length?dh(C,cs,is):n}function u5(C,D){return C&&C.length?dh(C,Wn(D,2),is):n}function c5(C){return Mo(C,cs)}function d5(C,D){return Mo(C,Wn(D,2))}function f5(C){return C&&C.length?dh(C,cs,Yd):n}function h5(C,D){return C&&C.length?dh(C,Wn(D,2),Yd):n}var NE=Jc(function(C,D){return C*D},1),p5=Ni("round"),VE=Jc(function(C,D){return C-D},0);function qE(C){return C&&C.length?Rc(C,cs):0}function v2(C,D){return C&&C.length?Rc(C,Wn(D,2)):0}return Oe.after=Jk,Oe.ary=av,Oe.assign=wE,Oe.assignIn=Zb,Oe.assignInWith=L3,Oe.assignWith=Kb,Oe.at=SE,Oe.before=Vb,Oe.bind=qb,Oe.bindAll=zE,Oe.bindKey=ov,Oe.castArray=aE,Oe.chain=bm,Oe.chunk=Sk,Oe.compact=Ck,Oe.concat=Z1,Oe.cond=Jr,Oe.conforms=Ro,Oe.constant=sf,Oe.countBy=Ba,Oe.create=CE,Oe.curry=_3,Oe.curryRight=jb,Oe.debounce=sv,Oe.defaults=TE,Oe.defaultsDeep=O3,Oe.defer=Qk,Oe.delay=eE,Oe.difference=Eb,Oe.differenceBy=Kw,Oe.differenceWith=Sh,Oe.drop=F0,Oe.dropRight=Tk,Oe.dropRightWhile=kk,Oe.dropWhile=Ek,Oe.fill=Pk,Oe.filter=W0,Oe.flatMap=Fb,Oe.flatMapDeep=zb,Oe.flatMapDepth=xm,Oe.flatten=Qw,Oe.flatten
946Deep=Pb,Oe.flattenDepth=$k,Oe.flip=tE,Oe.flow=p2,Oe.flowRight=e5,Oe.fromPairs=e3,Oe.functions=mv,Oe.functionsIn=Jb,Oe.groupBy=Wk,Oe.initial=Xi,Oe.intersection=ym,Oe.intersectionBy=t3,Oe.intersectionWith=K1,Oe.invert=Em,Oe.invertBy=F3,Oe.invokeMap=m3,Oe.iteratee=bv,Oe.keyBy=g3,Oe.keys=Sa,Oe.keysIn=us,Oe.map=Y0,Oe.mapKeys=gv,Oe.mapValues=N3,Oe.matches=m2,Oe.matchesProperty=to,Oe.memoize=Sm,Oe.merge=EE,Oe.mergeWith=V3,Oe.method=eu,Oe.methodOf=Eh,Oe.mixin=Bo,Oe.negate=Cm,Oe.nthArg=t5,Oe.omit=PE,Oe.omitBy=$E,Oe.once=Ub,Oe.orderBy=vo,Oe.over=lf,Oe.overArgs=b3,Oe.overEvery=Fo,Oe.overSome=tu,Oe.partial=Hb,Oe.partialRight=lv,Oe.partition=nd,Oe.pick=ME,Oe.pickBy=yv,Oe.property=Ph,Oe.propertyOf=g2,Oe.pull=z0,Oe.pullAll=J1,Oe.pullAllBy=vm,Oe.pullAllWith=Q1,Oe.pullAt=_m,Oe.range=Rs,Oe.rangeRight=uf,Oe.rearg=x3,Oe.reject=Zk,Oe.remove=N0,Oe.rest=nE,Oe.reverse=$b,Oe.sampleSize=Xk,Oe.set=q3,Oe.setWith=j3,Oe.shuffle=y3,Oe.slice=i3,Oe.sortBy=wm,Oe.sortedUniq=s3,Oe.sortedUniqBy=Ik,Oe.split=c2,Oe.spread=rE,Oe.tail=Dk,Oe.take=Lk,Oe.takeRight=Ok,Oe.takeRightWhile=Rk,Oe.takeWhile=q0,Oe.tap=f3,Oe.throttle=w3,Oe.thru=U0,Oe.toArray=D3,Oe.toPairs=t2,Oe.toPairsIn=n2,Oe.toPath=xv,Oe.toPlainObject=id,Oe.transform=U3,Oe.unary=iE,Oe.union=Bk,Oe.unionBy=l3,Oe.unionWith=Fk,Oe.uniq=zk,Oe.uniqBy=Nk,Oe.uniqWith=u3,Oe.unset=H3,Oe.unzip=Ab,Oe.unzipWith=ev,Oe.update=vv,Oe.updateWith=W3,Oe.values=Yu,Oe.valuesIn=G3,Oe.without=j0,Oe.words=kh,Oe.wrap=uv,Oe.xor=Ib,Oe.xorBy=Vk,Oe.xorWith=qk,Oe.zip=c3,Oe.zipObject=d3,Oe.zipObjectDeep=jk,Oe.zipWith=Uk,Oe.entries=t2,Oe.entriesIn=n2,Oe.extend=Zb,Oe.extendWith=L3,Bo(Oe,Oe),Oe.add=s5,Oe.attempt=Q3,Oe.camelCase=Pm,Oe.capitalize=af,Oe.ceil=y2,Oe.clamp=r2,Oe.clone=oE,Oe.cloneDeep=lE,Oe.cloneDeepWith=uE,Oe.cloneWith=sE,Oe.conformsTo=cE,Oe.deburr=i2,Oe.defaultTo=h2,Oe.divide=l5,Oe.endsWith=Z3,Oe.eq=Cl,Oe.escape=$m,Oe.escapeRegExp=_v,Oe.every=Rb,Oe.find=Bb,Oe.findIndex=Xw,Oe.findKey=R3,Oe.findLast=nv,Oe.findLastIndex=Jw,Oe.findLastKey=ad,Oe.floor=Mm,Oe.forEach=Th,Oe.forEachRight=G0,Oe.forIn=nf,Oe.forInRight=B3,Oe.forOwn=Xb,Oe.forOwnRight=kE,Oe.get=Qb,Oe.gt=Wb,Oe.gte=S3,Oe.has=e2,Oe.hasIn=K0,Oe.head=gm,Oe.identity=cs,Oe.includes=rv,Oe.indexOf=Mk,Oe.inRange=Y3,Oe.invoke=z3,Oe.isArguments=ef,Oe.isArray=pr,Oe.isArrayBuffer=dE,Oe.isArrayLike=_o,Oe.isArrayLikeObject=pa,Oe.isBoolean=C3,Oe.isBuffer=tf,Oe.isDate=fE,Oe.isElement=hE,Oe.isEmpty=T3,Oe.isEqual=pE,Oe.isEqualWith=mE,Oe.isError=Gb,Oe.isFinite=wa,Oe.isFunction=Xs,Oe.isInteger=k3,Oe.isLength=cv,Oe.isMap=E3,Oe.isMatch=P3,Oe.isMatchWith=$3,Oe.isNaN=Tm,Oe.isNative=Yb,Oe.isNil=A3,Oe.isNull=M3,Oe.isNumber=Z0,Oe.isObject=Vi,Oe.isObjectLike=Ji,Oe.isPlainObject=Gu,Oe.isRegExp=dv,Oe.isSafeInteger=gE,Oe.isSet=I3,Oe.isString=fv,Oe.isSymbol=Js,Oe.isTypedArray=km,Oe.isUndefined=yE,Oe.isWeakMap=vE,Oe.isWeakSet=_E,Oe.join=X1,Oe.kebabCase=a2,Oe.last=Oo,Oe.lastIndexOf=n3,Oe.lowerCase=o2,Oe.lowerFirst=K3,Oe.lt=bE,Oe.lte=xE,Oe.max=Am,Oe.maxBy=u5,Oe.mean=c5,Oe.meanBy=d5,Oe.min=f5,Oe.minBy=h5,Oe.stubArray=cf,Oe.stubFalse=X0,Oe.stubObject=n5,Oe.stubString=r5,Oe.stubTrue=i5,Oe.multiply=NE,Oe.nth=r3,Oe.noConflict=Si,Oe.noop=ua,Oe.now=iv,Oe.pad=s2,Oe.padEnd=l2,Oe.padStart=AE,Oe.parseInt=X3,Oe.random=Os,Oe.reduce=Gk,Oe.reduceRight=Yk,Oe.repeat=br,Oe.replace=of,Oe.result=rf,Oe.round=p5,Oe.runInContext=xt,Oe.sample=Kk,Oe.size=v3,Oe.snakeCase=u2,Oe.some=Nb,Oe.sortedIndex=Ch,Oe.sortedIndexBy=Ak,Oe.sortedIndexOf=a3,Oe.sortedLastIndex=V0,Oe.sortedLastIndexBy=Mb,Oe.sortedLastIndexOf=o3,Oe.startCase=od,Oe.startsWith=d2,Oe.subtract=VE,Oe.sum=qE,Oe.sumBy=v2,Oe.template=IE,Oe.times=a5,Oe.toFinite=rd,Oe.toInteger=_r,Oe.toLength=hv,Oe.toLower=f2,Oe.toNumber=Qs,Oe.toSafeInteger=pv,Oe.toString=Zr,Oe.toUpper=DE,Oe.trim=J3,Oe.trimEnd=LE,Oe.trimStart=OE,Oe.truncate=RE,Oe.unescape=BE,Oe.uniqueId=o5,Oe.upperCase=FE,Oe.upperFirst=Fa,Oe.each=Th,Oe.eachRight=G0,Oe.first=gm,Bo(Oe,(function(){var C={};return Io(Oe,function(D,J){Ar.call(Oe.prototype,J)||(C[J]=D)}),C})(),{chain:!1}),Oe.VERSION=r,$o(["bind","bindKey","curry","curryRight","partial","partialRight"],function(C){Oe[C].placeholder=Oe}),$o(["drop","take"],function(C,D){fr.prototype[C]=function(J){J=J===n?1:la(_r(J),0);var fe=this.__filtered__&&!D?new fr(this):this.clone();return fe.__filtered__?fe.__takeCount__=da(J,fe.__takeCount__):fe.__views__.push({size:da(J,at),type:C+(fe.__dir__<0?"Right":"")}),fe},fr.prototype[C+"Right"]=function(J){return this.reverse()[C](J).reverse()}}),$o(["filter","map","takeWhile"],function(C,D){var J=D+1,fe=J==ae||J==ce;fr.prototype[C]=function(Pe){var Ue=this.clone();return Ue.__iteratees__.push({iteratee:Wn(Pe,3),type:J}),Ue.__filtered__=Ue.__filtered__||fe,Ue}}),$o(["head","last"],function(C,D){var J="take"+(D?"Right":"");
vendor: 1,884 bytes, line 946
946fr.prototype[C]=function(){return this[J](1).value()[0]}}),$o(["initial","tail"],function(C,D){var J="drop"+(D?"":"Right");fr.prototype[C]=function(){return this.__filtered__?new fr(this):this[J](1)}}),fr.prototype.compact=function(){return this.filter(cs)},fr.prototype.find=function(C){return this.filter(C).head()},fr.prototype.findLast=function(C){return this.reverse().find(C)},fr.prototype.invokeMap=hr(function(C,D){return typeof C=="function"?new fr(this):this.map(function(J){return wl(J,C,D)})}),fr.prototype.reject=function(C){return this.filter(Cm(Wn(C)))},fr.prototype.slice=function(C,D){C=_r(C);var J=this;return J.__filtered__&&(C>0||D<0)?new fr(J):(C<0?J=J.takeRight(-C):C&&(J=J.drop(C)),D!==n&&(D=_r(D),J=D<0?J.dropRight(-D):J.take(D-C)),J)},fr.prototype.takeRightWhile=function(C){return this.reverse().takeWhile(C).reverse()},fr.prototype.toArray=function(){return this.take(at)},Io(fr.prototype,function(C,D){var J=/^(?:filter|find|map|reject)|While$/.test(D),fe=/^(?:head|last)$/.test(D),Pe=Oe[fe?"take"+(D=="last"?"Right":""):D],Ue=fe||/^find/.test(D);Pe&&(Oe.prototype[D]=function(){var st=this.__wrapped__,gt=fe?[1]:arguments,kt=st instanceof fr,Kt=gt[0],en=kt||pr(st),tn=function(Ir){var Or=Pe.apply(Oe,gi([Ir],gt));return fe&&xn?Or[0]:Or};en&&J&&typeof Kt=="function"&&Kt.length!=1&&(kt=en=!1);var xn=this.__chain__,Fn=!!this.__actions__.length,Zn=Ue&&!xn,wr=kt&&!Fn;if(!Ue&&en){st=wr?st:new fr(this);var Gn=C.apply(st,gt);return Gn.__actions__.push({func:U0,args:[tn],thisArg:n}),new Ka(Gn,xn)}return Zn&&wr?C.apply(this,gt):(Gn=this.thru(tn),Zn?fe?Gn.value()[0]:Gn.value():Gn)})}),$o(["pop","push","shift","sort","splice","unshift"],function(C){var D=zc[C],J=/^(?:push|sort|unshift)$/.test(C)?"tap":"thru",fe=/^(?:pop|shift)$/.test(C);Oe.prototype[C]=function(){var Pe=arguments;if(fe&&!this.__chain__){var Ue=this.value();return D.apply(pr(Ue)?Ue:[],Pe)}
946return this[J](function(st){return D.apply(pr(st)?st:[],Pe)})}}),Io(fr.prototype,function(C,D){var J=Oe[D];if(J){var fe=J.name+"";Ar.call(Fu,fe)||(Fu[fe]=[]),Fu[fe].push({name:D,func:J})}}),Fu[Is(n,I).name]=[{name:"wrapper",func:n}],fr.prototype.clone=Ud,fr.prototype.reverse=I1,fr.prototype.value=D1,Oe.prototype.at=tv,Oe.prototype.chain=Db,Oe.prototype.commit=h3,Oe.prototype.next=H0,Oe.prototype.plant=p3,Oe.prototype.reverse=Ob,Oe.prototype.toJSON=Oe.prototype.valueOf=Oe.prototype.value=Hk,Oe.prototype.first=Oe.prototype.head,Ru&&(Oe.prototype[Ru]=Lb),Oe}),Du=Wp();Cs?((Cs.exports=Du)._=Du,Yr._=Du):Di._=Du}).call(gLe)})(X2,X2.exports)),X2.exports}var vLe=yLe();const SS=Pp(vLe),_Le=Fe({__name:"T3FormFieldSession",props:{name:{},field:{},type:{},showLabel:{type:Boolean},showForSr:{type:Boolean},componentCustomClass:{},labelCustomClass:{},inputCustomClass:{},fileLoaded:{type:Boolean},title:{}},setup(e){const{isAmiral:t}=zr(),n=e,r=De(1),i=De(10),a=De(1),{values:s}=U_(),o=()=>{r.value=SS.clamp(r.value+1,a.value,i.value)},f=()=>{r.value=SS.clamp(r.value-1,a.value,i.value)},m=$=>Pa(x.value)&&$<x.value.length&&x.value[$]?x.value[$]:y(T.value,$),y=($,A)=>{const N=SS.cloneDeep($);for(const O of N)O.name=O.name?.replace("[]",`[${A}]`),O.elements?.length&&(O.elements=y(O.elements,A));return N??[]},b=$=>{let A=`${n.field.label} ${$+1}`;if(!s)return A;const N=s?.[n.name]?.[$]?.["[title]"];N&&(A=`${N}`);let O=s?.[n.name]?.[$]?.["[cimNewsStartDate]"],I=s?.[n.name]?.[$]?.["[cimNewsEndDate]"];return O&&I&&(O=oo(O).format("YYYY-MM-DD HH:mm"),I=oo(I).format("YYYY-MM-DD HH:mm"),oo(O).format("YYYY-MM-DD")===oo(I).format("YYYY-MM-DD")?A+=` - Le ${oo(O).format("DD/MM/YYYY")}`:A+=` - Du ${oo(O).format("DD/MM/YYYY")} au ${oo(I).format("DD/MM/YYYY")}`),A},T=xe(()=>n.field.elements?.filter($=>$.isTemplate)??[]),x=xe(()=>{const $=n.field.elements?.filter(N=>N.isTemplate!==!0&&yT(N.iteration))??[],A={};return $.forEach(N=>{const O=parseInt(N.iteration);typeof A[O]>"u"&&(A[O]=[]),A[O].push(N)}),Object.values(A)});return Hn(()=>{r.value=SS.clamp(x.value.length??0,a.value,i.value)}),($,A)=>{const N=PI,O=cr,I=Xo;return Z(),Se(I,gr(yr(n)),{input:be(U=>[Re("div",{class:de([v(Tr)({alignItems:"initial"})])},[(Z(!0),Ce(Ct,null,ln(Array(r.value),(B,q)=>(Z(),Se(Fy,{key:q,field:{type:"fieldset"},legend:b(q),elements:m(q),id:`${e.field.identifier}_${q}`,tabindex:"0",class:de(v(me)({paddingLeft:{base:"2rem",sm:"4rem"},borderLeft:"0.3rem solid {colors.primary}",borderColor:v(t)()?"primary/50":"primary/75",marginBottom:"2rem"}))},null,8,["legend","elements","id","class"]))),128))],2),Re("div",{class:de([v(Qn)(),v(me)({marginTop:"2rem"})])},[ke(O,{type:"button",link:{text:$.$t("form.sessions.add")},variante:{classes:"button",bgColor:"primary",pictoPlacement:"left",size:"xs"},onClick:o},{icon:be(()=>[ke(N,{"aria-hidden":"true"})]),_:1},8,["link"]),r.value>a.value?(Z(),Se(O,{key:0,type:"button",link:{text:$.$t("form.sessions.remove")},variante:{classes:"button",bgColor:"white",pictoPlacement:"left",size:"xs"},picto:"close",onClick:f},null,8,["link"])):Ne("",!0)],2)]),_:1},16)}}}),bLe={"data-label-like":""},xLe={class:"static_txt"},wLe=Fe({__name:"T3FormFieldStatictext",props:{showLabel:{type:Boolean,default:!0},field:{default:{}}},setup(e){return(t,n)=>(Z(),Ce("div",null,[Re("p",bLe,ht(e.field.label),1),Re("p",xLe,ht(e.field.properties?.text),1)]))}}),A7=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},SLe=A7(wLe,[["__scopeId","data-v-a90861b2"]]),CLe={key:1},TLe=Fe({__name:"T3FormFieldHcaptcha",props:{name:{},field:{}},setup(e){const{$on:t,$off:n}=En(),r=De(),{initialData:i}=vr(),a=e,{value:s,setValue:o,resetField:f}=Ma(()=>a.name),m=(x,$)=>{o(x,!1)},y=x=>{},b=()=>{v(s)&&(r.value?.reset(),f())},T=(x,$)=>{b()};return Hn(()=>{t("submit:validation:error",T)}),oa(()=>{n("submit:validation:error",T)}),(x,$)=>{const A=Xo;return v(i)?.hcaptchaPublicKey?(Z(),Se(A,gr(vn({key:0},a)),{input:be(()=>[ke(v(W$),{ref_key:"captchaRef",ref:r,sitekey:v(i).hcaptchaPublicKey,onVerify:m,onError:y},null,8,["sitekey"])]),_:1},16)):(Z(),Ce("p",CLe,ht(x.$t("form.captcha.missingPublicKey")),1))}}}),kLe=["innerHTML"],ELe=Fe({__name:"T3FormFieldContentElement",props:{name:{},field:{}},setup(e){const t=e;return(n,r)=>{const i=zg,a=Xo;return Z(),Se(a,vn(t,{"show-label":!1}),{input:be(s=>[ke(i,{field:e.field,name:e.name,tag:"label",class:de(v(Er)())},null,8,["field","name","class"]),e.field?.properties?.contentElementHtml?.content?.bodytext?(Z(),Ce("div",{key:0,innerHTML:e.field?.properties?.contentElementHtml?.content?.bodytext},null,8,kLe)):Ne("",!0)]),_:1},16)}}}),PLe=Fe({__name:"T3FormCta",props:{i18n:{}},emits:["click:submit","click:reset"],setup(e){zr();const t=Ai("submitStatus"),n=e,r=xe(()=>({submitButton:"Envoyer",sendingLabel:"En cours d'envoi",resetButton:"Réinitialiser",serverSuccess:"The form was sent, thank you.",serverError:"We can not process form right now, please try again later.",validationErrors:"There were some errors, review the form",...n.i18n}));return(i,a)=>{const s=cr;return r.value.submitButton!==!1?(Z(),Ce("div",{key:0,class:de(v(_u)())},[ke(s,{type:"submit",disabled:v(t).pending,value:v(t).pending?r.value.sendingLabel:r.value.submitButton,onClick:a[0]||(a[0]=ti(o=>i.$emit("click:submit"),["prevent"])),link:{text:v(t).pending?r.value.sendingLabel:r.value.submitButton},variante:{classes:"button",bgColor:"white",size:"sm"},class:de([v(me)({padding:"1.5rem 2.5rem !important",zIndex:"initial"})])},null,8,["disabled","value","link","class"]),r.value.resetButton!==!1?(Z(),Se(s,{key:0,t
946ype:"button",value:r.value.resetButton,onClick:a[1]||(a[1]=ti(o=>i.$emit("click:reset"),["prevent"])),link:{text:r.value.resetButton},variante:{classes:"btnTxt",bgColor:"black"}},null,8,["value","link"])):Ne("",!0)],2)):Ne("",!0)}}}),$Le=Symbol("CustomComponents");function XZ({elements:e,i18n:t,customComponents:n}){co($Le,{honeypot:"T3FormFieldHidden",...n??{}});const r=xe(()=>{const I=U=>U.reduce((B,q)=>{const Q=q.name?[...B,q]:B;return q.elements&&Q.push(...I(q.elements)),Q},[]);return I(e)}),i=()=>{const I=r.value.map(U=>[U.name,U.validators]);return Object.fromEntries(I)},a=()=>{const I=r.value.map(U=>[U.name,U.initialValue||null]);return Object.fromEntries(I)},s=i(),o=a(),{errors:f,handleSubmit:m,meta:y,values:b,resetForm:T,setErrors:x,submitForm:$,isSubmitting:A,setFieldValue:N,errorBag:O}=U_({validationSchema:s,initialValues:o,initialErrors:{}});return{i18n:{submitButton:"Submit",sendingLabel:"Sending",resetButton:"Reset form",serverSuccess:"The form was sent, thank you.",serverError:"We can not process form right now, please try again later.",validationErrors:"There were some errors, review the form",...t},validationSchema:s,initialValues:o,errors:f,values:b,resetForm:T,submitForm:$,handleSubmit:m,setErrors:x,meta:y,isSubmitting:A,setFieldValue:N,errorBag:O}}const rz="cim_fs_",iz="-metadata",az=De(["__currentPage","__trustedProperties","__state"]);function JZ({formIdentifier:e,formRef:t=De({}),formDefinition:n={},watchers:r=[],active:i=!1}){const a=vr(),s=De(!1),o=i?V2(`${rz}${e}${iz}`,{lastUpdated:0,lastSubmitted:0}):De({}),f=i?V2(`${rz}${e}`,{}):De({}),m=V2(`${e}${iz}`,null),y=V2(`${e}`,null);m.value&&o.value.lastUpdated===0&&(o.value=m,y.value&&(f.value=y.value));const b=De({bytes:0,kb:0,mb:0});for(const O of r)nn(O,I=>{$()});function T(){i&&(f.value=null,o.value.lastSubmitted=new Date().getTime(),x())}function x(){if(!i)return;let O=0,I,U;const B={};for(U in localStorage)localStorage.hasOwnProperty(U)&&(I=(localStorage[U].length+U.length)*2,O+=I,B[U]={bytes:I,kb:I/1024,mb:I/1024/1024});return b.value={bytes:O,kb:O/1024,mb:O/1024/1024},b.value.mb>4,B}x();function $(O=null){if(!i||O!==null||Un(t?.value))return;const I=new FormData(t.value),U={};for(const[B,q]of I.entries())Un(q)||A(B)||(U[B]=q);return f.value=null,f.value=U,o.value.lastUpdated=new Date().getTime(),o.value.title=n?.api?.label,o.value.identifier=e,o.value.pageUid=a.pageData.uid,o.value.pageTitle=a.pageData.meta.title,o.value.url=window.location.pathname,x(),!0}function A(O){let I=!1;for(const U of az.value)O.includes(U)&&(I=!0);return I}function N(O,I=!1){i&&(I?t.value=O:t=O)}return{formLocalStorageData:f,formLocalStorageMetadata:o,deleteFormLocalStorageData:T,submitFormLocalStorageData:T,saveFormLocalStorageData:$,localStorageDebug:s,elementBlacklist:az,setFormRef:N,isLocalStorageActive:i}}const O2=new Map;function QZ({formIdentifier:e}){let t=null;O2.has(e)?t=O2.get(e):(t=De({pending:!1}),O2.set(e,t));function n(r){O2.has(r)&&O2.delete(r)}return{formState:t,deleteFormState:n}}const MLe={key:0,class:"step_form_prefields"},ALe=Fe({__name:"T3Form",props:{elements:{},i18n:{},type:{},customComponents:{},legend:{},legendSr:{type:Boolean},form:{},submitStatus:{}},emits:["submit"],setup(e,{expose:t,emit:n}){const r=vr(),i=De(r.backendLayout),a=e,{$emit:s}=En(),o=Ai("submitStatus"),f=De(),m=n,{saveFormLocalStorageData:y,isLocalStorageActive:b}=JZ({formIdentifier:a?.form?.id,formRef:f,active:a.form?.renderingOptions?.useFormLocalStorageSaver??!1,formDefinition:a.form}),{i18n:T,isSubmitting:x,handleSubmit:$,resetForm:A,errors:N,setErrors:O,validationSchema:I,meta:U,values:B,setFieldValue:q}=XZ(a),{deleteFormState:Q}=QZ(a.form?.id??"");co("t3Form",aa({form:a.form,i18n:T,isSubmitting:x,handleSubmit:$,resetForm:A,errors:N,setErrors:O,validationSchema:I,meta:U,values:B,setFieldValue:q})),oa(()=>{Q(a.form?.id??"")});const ee=$(Qe=>{o.value.pending=!0,m("submit",{values:Qe,formRef:f})},Qe=>{se.value=Object.entries(Qe.results).map(([nt,Ve])=>({fieldIdentifier:nt,errorMetadata:Ve})),$e(),Be(),at(),Pt(),s("submit:validation:error",{formUid:a.form?.uid||a.form?.id,errors:Qe.results})}),Y=$(Qe=>{},Qe=>{se.value=Object.entries(Qe.results).map(([nt,Ve])=>({fieldIdentifier:nt,errorMetadata:Ve})),$e(),Be(),at()}),z=De(),H=RS(z),K=a.form?.renderingOptions?.multistep??!1,ne=De(a.elements.filter(Qe=>Qe.type==="fieldset")),le=De(ne.value.length>0?ne.value[0].identifier:""),pe=De(ne.value.map(Qe=>Qe.identifier)),ae=xe(()=>i.value==="list"),se=De([]);nn(le,Qe=>{if(U.value.touched&&Y(),ae.value)s("activeTab:change");else{const nt=H.top.value+window.scrollY-180;window.scrollTo({top:nt,behavior:"smooth"})}b&&y()});const ce=new Map;for(const[Qe,nt]of Object.entries(ne.value))ye(nt.identifier,nt,Qe);function ye(Qe,nt,Ve){for(const ct of nt?.elements??[])ct?.elements?.length>0?ye(Qe,ct,Ve):ce.set(ct.name,{identifier:Qe,id:Ve})}function $e(){se.value=se.value.filter(Qe=>(Qe=In(Qe),!Qe.errorMetadata.valid))}function Be(){const Qe=Array.from(ce.keys());se.value=se.value.sort((nt,Ve)=>Qe.indexOf(nt.fieldIdentifier)===0?-1:Qe.indexOf(nt.fieldIdentifier)-Qe.indexOf(Ve.fieldIdentifier))}const je=De({});function at(){je.value={};for(const{fieldIdentifier:Qe,errorMetadata:nt}of se.value){const ct=ce.get(Qe)?.identifier??0;je.value[ct]===void 0&&(je.value[ct]=[]),je.value[ct]?.push({fieldIdentifier:Qe,errorMetadata:nt})}}function Pt(){K&&(le.value=Object.keys(je.value)[0]);let Qe=[];if(Qe.push(...document.getElementsByName(Object.values(je.value)[0][0].fieldIdentifier)),Qe[0]&&typeof Qe[0].getBoundingClientRect=="function"){const Ve=Qe[0].getBoundingClientRect().top+window.scrollY+-240;window.scrollTo({top:Ve,behavior:"smooth"}),setTimeout(()=>{Qe[0].focus()},500)}}return t({isSubmitting:x,resetForm:A,errors:N,meta:U,i18n:T,setErrors:O,formRef:f,values:B,handleSubmit:$,setFieldValue:q}),(Qe,nt)=>{const Ve=fW,ct=kI,zt=TI,ut=cr,At=PLe,Dt=dW,Ot=CI;return Z(),Ce("form",{ref_key:"formRef",ref:f,class:"t3-form",novalidate:"",onSubmit:nt[1]||(nt[1]=ti(()=>{},["prevent"]))},[Qe.$slots["before-fields"]?(Z(),Ce("div",MLe,[bt(Qe.$slots,"before-fields")])):Ne("",!0),bt(Qe.$slots,"fields",{},()=>[v(K)?(Z(),Se(Ot,{key:0,ref_key:"tabForm",ref:z,modelValue:le.value,"onUpdate:modelValue":nt[0]||(nt[0]=Ee=>le.value=Ee)},{default:be(()=>[ke(zt,{"aria-label":e.legend,class:de([v(Mi)({gridTemplateColumns:{base:"repeat(auto-fill, minmax(7.5rem, 1fr))",sm:"repeat(auto-fill, minmax(10rem, 1fr))"},rowGap:"0.5rem",columnGap:{base:"1rem",md:"2rem"}})])},{default:be(()=>[ke(Ve,{class:de(v(me)({position:"absolute",width:"var(--radix-tabs-indicator-size)",height:"0.2rem",bgColor:"white",bottom:"-0.1rem",left:"var(--radix-tabs-indicator-position)"}))},null,8,["class"]),(Z(!0),Ce(Ct,null,ln(e.elements.filter(Ee=>Ee.type==="fieldset"),(Ee,Ye)=>
946(Z(),Se(ct,{value:Ee.identifier,title:je.value[Ee.identifier]?.length>0?`${Ee.label} (${Qe.$t("form.tabs.errorTab")})`:"",class:de([v(Tr)({gap:"0.5rem"}),v(me)({maxWidth:"13.5rem",paddingBottom:"1rem",borderBottom:"0 !important",fontWeight:600,color:"inherit",_selected:{"& [data-nb]":{bgColor:"primary",color:"white",borderColor:"transparent"}},_hover:{bgColor:"transparent","& [data-nb]":{bgColor:"primary",color:"white"}}})])},{default:be(()=>[Re("span",{class:de(v(Er)())},ht(Qe.$t("form.tabs.tabNb")),3),Re("span",{"data-nb":"",class:de([v(me)({boxShadow:"0 0 0 0.6rem {colors.white}",transition:"{easings.global}",aspectRatio:1/1,display:"inline-block",borderRadius:"50%",padding:"0.5rem"}),je.value[Ee.identifier]?.length>0?v(me)({bgColor:"danger",color:"white"}):v(me)({bgColor:"white",color:"primary",border:"{borders.sm} {colors.primary}"})])},ht(Ye+1),3),_n(" "+ht(Ee.label)+" ",1),je.value[Ee.identifier]?.length>0?(Z(),Ce("span",{key:0,class:de(v(Er)())},ht(Qe.$t("form.tabs.errorTab")),3)):Ne("",!0)]),_:2},1032,["value","title","class"]))),256))]),_:1},8,["aria-label","class"]),(Z(!0),Ce(Ct,null,ln(e.elements.filter(Ee=>Ee.type==="fieldset"),Ee=>Ol((Z(),Se(Dt,{value:Ee.identifier,forceMount:"",class:de(v(me)({padding:"2rem"}))},{default:be(()=>[ke(Fy,{legend:Ee.label,elements:Ee.elements,"custom-components":e.customComponents},{default:be(()=>[pe.value.indexOf(le.value)!==pe.value.length?(Z(),Se(zt,{key:0,class:de([v(Qn)({justifyContent:"space-between"}),v(me)({marginTop:"1.5rem"})])},{default:be(()=>[pe.value[pe.value.indexOf(le.value)-1]?(Z(),Se(ct,{key:0,value:pe.value[pe.value.indexOf(le.value)-1],asChild:""},{default:be(()=>[ke(ut,{link:{text:Qe.$t("form.tabs.previous")},variante:{classes:"pictoRound",pictoPlacement:"left",pictoColor:"primary",pictoSize:"xs"},picto:"prev",class:de(v(me)({borderBottom:"0 !important",padding:"0 !important",_hover:{bgColor:"transparent !important"}}))},null,8,["link","class"])]),_:1},8,["value"])):Ne("",!0),pe.value[pe.value.indexOf(le.value)+1]?(Z(),Se(ct,{key:1,class:"button",value:pe.value[pe.value.indexOf(le.value)+1],asChild:""},{default:be(()=>[ke(ut,{link:{text:Qe.$t("form.tabs.next")},variante:{classes:"pictoRound",pictoPlacement:"left",pictoColor:"primary",pictoSize:"xs"},picto:"next",class:de(v(me)({flexDir:"row!",borderBottom:"0 !important",padding:"0 !important","& svg":{marginRight:0,marginLeft:"1rem"},_hover:{bgColor:"transparent !important"}}))},null,8,["link","class"])]),_:1},8,["value"])):Ne("",!0)]),_:1},8,["class"])):Ne("",!0),bt(Qe.$slots,"cta",{},()=>[pe.value.indexOf(le.value)+1===pe.value.length?(Z(),Se(At,{key:0,i18n:v(T),state:{sending:v(o).pending},"onClick:reset":v(A),"onClick:submit":v(ee)},null,8,["i18n","state","onClick:reset","onClick:submit"])):Ne("",!0)])]),_:3},8,["legend","elements","custom-components"])]),_:2},1032,["value","class"])),[[p_,le.value===Ee.identifier]])),256)),ke(Fy,{fieldType:"fieldset",elements:e.elements.filter(Ee=>Ee.type==="hidden"),tabindex:"0"},null,8,["elements"])]),_:3},8,["modelValue"])):(Z(),Se(Fy,{key:1,legend:e.legend,"legend-sr":e.legendSr,elements:e.elements,"custom-components":e.customComponents},{default:be(()=>[bt(Qe.$slots,"cta",{},()=>[ke(At,{i18n:v(T),"onClick:reset":v(A),"onClick:submit":v(ee)},null,8,["i18n","onClick:reset","onClick:submit"])])]),_:3},8,["legend","legend-sr","elements","custom-components"]))]),bt(Qe.$slots,"after-fields")],544)}}}),ILe=Fe({__name:"T3FormFieldGeolocationmap",props:{name:{},field:{}},setup(e){const t=e,n=Ai("t3Form"),r=De(),{value:i}=Ma(()=>t.name);nn(i,()=>{(typeof i.value?.mapLatitude>"u"||typeof i.value?.mapLongitude>"u")&&(r.value?.maplibre?.removeDrawMarker(),n.setFieldValue(t.name,{mapLatitude:null,mapLongitude:null}))});const a=f=>{n.setFieldValue(s.value,f.latitude),n.setFieldValue(o.value,f.longitude)},s=xe(()=>`${n.form.api.extensionName}[directory][mapLatitude]`),o=xe(()=>`${n.form.api.extensionName}[directory][mapLongitude]`);return(f,m)=>{const y=Xo;return Z(),Se(y,gr(yr(t)),{input:be(()=>[ke(JT,{ref_key:"mapRef",ref:r,display:"geolocation","draw-marker-lat-lng":e.field.value,class:de(v(me)({height:"60rem"})),"onGeocoder:result":a},null,8,["draw-marker-lat-lng","class"])]),_:1},16)}}}),Fy=Fe({__name:"T3FormFieldList",props:{type:{},i18n:{},elements:{},customComponents:{},componentCustomClass:{default:""},labelCustomClass:{default:""},inputCustomClass:{default:""},field:{},legend:{},legendSr:{type:Boolean,default:!1},isPopover:{type:Boolean},classes:{},title:{},isHorizontal:{type:Boolean},categorie:{type:Boolean}},setup(e){const{isAmiral:t}=zr(),n=r=>{switch(r.toLowerCase()){case"text":case"email":case"url":case"number":return HPe;case"telephone":return GPe;case"submit":return Va("T3FormFieldCta");case"checkbox":return KPe;case"radiobutton":case"combobox":case"radio":return HG;case"date":return t$e;case"date_period":case"dateperiod":return s$e;case"fileupload":return u$e;case"imageupload":return f$e;case"multicheckbox":return T$e;case"singleselect":return k$e;case"multiselect":return F$e;case"password":case"advancedpassword":return N$e;case"honeypot":case"hidden":return q$e;case"textarea":return WG;case"rte":return mLe;case"session":return _Le;case"statictext":return SLe;case"hcaptcha":return TLe;case"contentelement":return ELe;case"geolocationmap":return ILe}};return(r,i)=>{const a=Fy;return Z(),Se(xr(e.field?"fieldset":"div"),{class:de([v(Tr)({alignItems:"initial"}),e.type==="gridrow"?v(Mi)({columns:{base:1,sm:2,md:e.elements.length}}):null,v(me)({width:"100%",rowGap:v(t)()?{base:"2.5rem",lg:"4rem"}:"2.5rem"})])},{default:be(()=>[e.field&&e.legend?(Z(),Ce("legend",{key:0,class:de(e.legendSr?v(Er)():null)},ht(e.legend),3)):Ne("",!0),(Z(!0),Ce(Ct,null,ln(e.elements,s=>(Z(),Ce(Ct,{key:s.identifier},[["fieldset","gridrow"].includes(s.type?.toLowerCase()??"")?(Z(),Se(a,{key:0,field:s,type:s.type,elements:s.elements,legend:s.label,"legend-sr":!s.properties?.renderingOptions?.visible,"custom-components":e.customComponents,"component-custom-class":e.componentCustomClass,"label-custom-class":e.labelCustomClass,"input-custom-class":e.inputCustomClass,class:de([e.type==="gridrow"?v(Mi)({columns:e.elements.length}
946):null,s.type?v(me)({paddingLeft:{base:"2rem",sm:"4rem"},borderLeft:"0.3rem solid {colors.primary}",borderColor:v(t)()?"primary/50":"primary/75",marginBottom:"2rem"}):null])},null,8,["field","type","elements","legend","legend-sr","custom-components","component-custom-class","label-custom-class","input-custom-class","class"])):(Z(),Se(xr(n(s.type)),{key:1,"data-field":s?.properties?.fluidAdditionalAttributes?.isKeyword?"keyword":"",name:s.name,field:s,title:e.legendSr?s.label:null,"component-custom-class":`${e.componentCustomClass} ${s?.cssClass?s?.cssClass:""}`,"label-custom-class":e.labelCustomClass,"input-custom-class":e.inputCustomClass},null,8,["data-field","name","field","title","component-custom-class","label-custom-class","input-custom-class"]))],64))),128)),bt(r.$slots,"default")]),_:3},8,["class"])}}}),eK=Fe({__name:"FiltersCta",props:{pending:{type:Boolean},i18n:{},isDirty:{type:Boolean},isInteractiveMap:{type:Boolean,default:!1}},emits:["onSubmit","onReset"],setup(e,{emit:t}){const n=vr(),r=De(n.backendLayout),{isAmiral:i}=zr(),a=t,s=()=>{a("onSubmit")},o=()=>{a("onReset")};return(f,m)=>{const y=cr,b=Dw;return Z(),Se(b,{"data-buttons-container":"",align:e.isInteractiveMap?"justify":null},{default:be(()=>
946[ke(y,{id:"btn_submit_search",link:{text:f.$t("search.filters.submit")},variante:{classes:"button",bgColor:v(i)()||v(r)==="interactive_map"?"white":"lightGray",size:"sm"},type:"submit",onClick:ti(s,["prevent"]),class:de([e.pending?"loader_submit":null,v(me)({padding:"1.5rem 2.5rem !",zIndex:"initial"})])},null,8,["link","variante","class"]),e.isDirty?(Z(),Se(y,{key:0,id:"btn_reset_search",link:{text:f.$t("search.filters.deleteAll")},variante:{classes:"btnTxt",bgColor:"black"},type:"button",onClick:ti(o,["prevent"])},null,8,["link"])):Ne("",!0)]),_:1},8,["align"])}}});function DLe(e){const t=bT([...Object.keys(e)]).value,n={...e};let r=!1;return t.forEach(i=>{const a=In(n[i]);(typeof a=="string"&&a.trim().length>0||typeof a=="boolean"&&a||Pa(a)&&bd(a).length>0)&&(r=!0)}),r}function LLe(e,t){const n=bT([...Object.keys(e),...Object.keys(t)]).value,r={...e},i={...t};n.forEach(s=>{(typeof r?.[s]>"u"||r[s]==null||r[s]==""||r[s].length==0)&&(r[s]=null),(typeof i?.[s]>"u"||i[s]==null||i[s]==""||i[s].length==0)&&(i[s]=null)});let a=!1;return n.forEach(s=>{JSON.stringify(r[s])!=JSON.stringify(i[s])&&(a=!0)}),{aa:r,bb:i,allKeys:n,hasChanged:a}}const tK=Fe({__name:"T3FiltersForm",props:{elements:{default:[]},moreElements:{default:[]},initialElements:{default:[]},i18n:{},customComponents:{},pending:{type:Boolean,default:!1},archiveListLink:{},settings:{},isInteractiveMap:{type:Boolean,default:!1}},emits:["submit"],setup(e,{expose:t,emit:n}){const r=e,i=n,a=De(),{i18n:s,resetForm:o,handleSubmit:f,isSubmitting:m,errors:y,meta:b,setErrors:T,initialValues:x}=XZ(r),{setFieldValue:$,values:A}=U_(),N=ja(),O=xe(()=>DLe(A)),I=De({...x}),U=()=>{q()},B=()=>{const ae=N.currentRoute.value.query;return Object.keys(ae).length>0},q=()=>{const ae=N.currentRoute.value.query??{};Q(ae)},Q=ae=>
946{Object.keys(v(A)).forEach(se=>{if(typeof ae[se]<"u"){let ce;Array.isArray(ae[se]??null)||se.endsWith("[]")?ce=bd(ae[se]):ce=XG(ae[se]),$(se,ce,!1)}})},ee=f(()=>{H()}),Y=()=>{Object.keys(A).forEach(ae=>{let ce=z(r.initialElements,ae)?.value??null;Pa(ce)&&(ce=bd(ce)),$(ae,ce,!1)}),H()},z=(ae,se)=>{if(!Un(ae))for(let ce=0;ce<ae.length;ce++){if(!Un(ae[ce].subFields)){const ye=z(ae[ce].subFields,se);if(!Un(ye))return ye}if(ae[ce].name===se)return In(ae[ce])}return null},H=()=>{LLe(hp(A),hp(I.value)).hasChanged&&(I.value={...hp(A)},i("submit",{values:A,formRef:a}),K(A))},K=ae=>{const se=new URL(window.location.origin+v(N.currentRoute).path);Object.keys(ae).forEach(ce=>{if(!Un(ae[ce])){let ye=ce;Array.isArray(ae[ce])&&!ye.endsWith("[]")&&(ye+="[]"),se.searchParams.append(ye,ae[ce])}}),history.pushState({},"",se.toString())},ne=r.elements.filter(ae=>ae.properties?.fluidAdditionalAttributes?.isKeyword),le=ne.length>0?Ma(()=>ne[0].name).setValue:()=>{},pe=ae=>{ae.trim()!==""&&typeof le<"u"&&le(ae)};return Kme(A,()=>{H()},{debounce:600,maxWait:3e3}),Hn(()=>{window.addEventListener("popstate",U),B()&&q(),H()}),oa(()=>{window.removeEventListener("popstate",U)}),t({isSubmitting:m,resetForm:o,errors:y,meta:b,i18n:s,setErrors:T,values:A,setKeywords:pe,isDirty:O,onSubmit:ee,onReset:Y}),(ae,se)=>{const ce=Fy,ye=eK,$e=cr,Be=Dw;return Z(),Ce("form",{ref_key:"formRef",ref:a,novalidate:"",onSubmit:se[0]||(se[0]=ti(()=>{},["prevent"])),class:de(v(me)({marginBottom:0}))},[bt(ae.$slots,"fields",{},()=>[ke(ce,{elements:[...e.elements,...e.moreElements]},null,8,["elements"])]),bt(ae.$slots,"cta",{},()=>[ke(Be,{class:de([v(_u)({columnGap:"2rem"}),v(me)({marginTop:{base:"2.5rem",md:"4rem"}})])},{default:be(()=>[ke(ye,{pending:e.pending,"is-dirty":v(O),onOnSubmit:v(ee),onOnReset:Y},null,8,["pending","is-dirty","onOnSubmit"]),e.settings?.showArchives&&e.archiveListLink?.href?(Z(),Se($e,{key:0,link:e.archiveListLink,variante:{classes:"button"}},null,8,["link"])):Ne("",!0)]),_:1},8,["class"])])],34)}}}),OLe={key:0,id:"searched_word"},RLe={key:1},BLe=Fe({__name:"Filters",props:{url:{},elements:{default:[]},initialElements:{default:[]},settings:{},nbResults:{default:0},hasList:{type:Boolean,default:!0},hasMap:{type:Boolean,default:!1},showMap:{type:Boolean,default:!1},pending:{type:Boolean,default:!1},archiveListLink:{},isSearch:{type:Boolean,default:!1},queryString:{},suggestedWord:{}},emits:["onSubmit","onShowMapChanged"],setup(e,{expose:t,emit:n}){const{isAmiral:r}=zr(),i=e,a=n,s=De(),o=De(!0),f=De(),m=xe(()=>f.value?.values),y=async $=>{a("onSubmit",$)},b=()=>{a("onShowMapChanged",!i.showMap)},T=Km("(max-width: 1024px)");T&&(o.value=!1);const x=De();return t({values:m,stickyFilters:x,isNotLargeScreen:T}),($,A)=>{const N=owe,O=iwe,I=SW,U=JG,B=cr,q=tK;return Z(),Ce("div",{ref_key:"stickyFilters",ref:x,class:de(v(me)({zIndex:5,padding:v(r)()?{md:"3rem 4rem",lg:"3rem 4.5rem 6.5rem 4.5rem"}:{md:"2rem 4rem",lg:"3rem 4.5rem 4rem 4.5rem"},borderRadius:v(r)()?"1rem":{base:"1rem",md:"1.5rem"},position:"relative",border:v(r)()?"{borders.sm} {colors.black}":null,borderColor:{base:"black/20",_inverse:"black"},bgColor:v(r)()?"white":"lightGray"}))},[Re("div",{class:de([v(Qn)({justifyContent:"space-between",flexWrap:"wrap",gap:{base:"1rem",sm:".5rem",lg:"{spacing.gutter}"}}),v(me)({marginBottom:v(r)()?{md:"4rem"}:{md:"2.5rem"},padding:{mdDown:"2rem"},overflowX:"hidden"})])},[Re("p",{"aria-atomic":"true",class:de([v(Qn)({gap:".8rem",alignItems:"end"}),v(me)({fontWeight:700,marginBottom:0,color:"black",width:"auto",borderBottom:"{borders.sm} {colors.black}",borderBottomColor:v(r)()?{base:"black/20",_inverse:"black"}:null,paddingBottom:v(r)()?".8rem":{base:".8rem",md:"1.5rem"}})])},[Re("span",{"aria-live":"polite",class:de(v(me)({fontFamily:"secondary",fontSize:{base:"2rem",sm:"2.5rem",md:"4rem"},lineHeight:1,backgroundImage:"linear-gradient(to right, {colors.secondary}, {colors.primary})",color:{base:"transparent",_inverse:"black"},webkitBackgroundClip:"text",backgroundClip:"text"}))},ht(e.nbResults),3),_n(" "+ht(e.nbResults>1?`${$.$t("search.filters.results")}`:`${$.$t("search.filters.result")}`),1)],2),e.hasList&&e.hasMap?(Z(),Se(O,{key:0,onClick:b,class:de([v(Qn)({gap:"1rem"}),v(me)({fontSize:"{fontSizes.sm}",_hover:{"& [data-switch-thumb]":{borderColor:"{colors.white}",boxShadow:"0 0 0 0.1rem {colors.black}"}}})])},{default:be(()=>[Re("span",{class:de(v(Er)())},ht(e.showMap?$.$t("search.switchMap.show"):$.$t("search.switchMap.hide")),3),Re("span",{class:de([v(Qn)({gap:"1rem"}),v(me)({position:"relative",height:"2.4rem",_after:{content:"''",display:"block",width:{base:"3.5rem",sm:"4.5rem"},height:{base:"1.8rem",sm:"2.4rem"},borderRadius:"3.6em",border:"{borders.sm} {colors.black}"}})])},[_n(ht($.$t("search.switchMap.list"))+" ",1),ke(N,{"data-switch-thumb":"","aria-hidden":"true",class:de([v(S_)({size:{base:"1.2rem",sm:"1.8rem"},bgColor:"{colors.black}"}),v(me)({position:"absolute",transition:"{easings.global}",border:"{borders.md} transparent",boxShadow:"0 0 0 {colors.black}",right:e.showMap?"0.4rem":{base:"1.9rem",sm:"2.3rem"}})])},null,8,["class"])],2),Re("span",{class:de(v(Er)())},ht(e.showMap?$.$t("search.switchMap.hide"):$.$t("search.switchMap.show")),3),Re("span",null,ht($.$t("search.switchMap.map")),1)]),_:1},8,["class"])):Ne("",!0),ke(B,{type:"button",onClick:A[0]||(A[0]=Q=>o.value=!v(o)),"aria-haspopup":"true","aria-expanded":v(o),"aria-controls":"filters",link:{text:`${v(
946o)?$.$t("common.hide"):$.$t("common.show")} ${$.$t("search.filters.btn")}`},variante:{classes:"pictoRound",pictoColor:"primary",pictoSize:"sm"},showSr:!0,class:de(v(me)({hideFrom:"md","& svg":{overflow:"visible"},_expanded:{}}))},{icon:be(()=>[v(o)?(Z(),Se(I,{key:0,"aria-hidden":"true"})):(Z(),Se(U,{key:1,"aria-hidden":"true"}))]),_:1},8,["aria-expanded","link","class"])],2),e.isSearch&&(e.queryString||e.suggestedWord)?(Z(),Ce("div",{key:0,class:de([v(Wa)(),v(me)({order:-1,padding:{base:"0 2rem 1rem 2rem",md:0},"& p":{marginBottom:{base:0,md:"1.5rem"}}})])},[e.isSearch&&e.queryString?(Z(),Ce("p",OLe,[_n(ht($.$t("search.autocomplete.yourSearchString"))+' "',1),Re("span",null,ht(e.queryString),1),A[2]||(A[2]=_n('". ',-1))])):Ne("",!0),e.isSearch&&e.suggestedWord?(Z(),Ce("p",RLe,[_n(ht($.$t("search.autocomplete.suggestedResult"))+" ",1),Re("a",{role:"button",onClick:A[1]||(A[1]=Q=>v(f).setKeywords(e.suggestedWord))},[A[3]||(A[3]=_n(' "',-1)),Re("span",null,ht(e.suggestedWord),1),A[4]||(A[4]=_n('" ',-1))]),A[5]||(A[5]=_n(" ? ",-1))])):Ne("",!0)],2)):Ne("",!0),Re("div",{ref_key:"filtersRef",ref:s,id:"filters",class:de([v(me)({hideBelow:v(o)?null:"md",borderBottom:{base:"{borders.sm} {colors.mediumGray}",md:0},maxHeight:{mdDown:"calc(100vh - {spacing.header} * 2)"},overflowY:{mdDown:"auto"},padding:{mdDown:"2rem"},"& form label, & [data-field] > fieldset > legend":{fontWeight:700},"& form > fieldset":{marginBottom:"4rem"}})])},[e.elements?(Z(),Se(q,{key:0,ref_key:"formRef",ref:f,elements:e.elements,initialElements:e.initialElements,i18n:{submitButton:$.$t("search.filters.submit"),sendingLabel:$.$t("form.sending"),resetButton:$.$t("form.reinit"),serverSuccess:"The form was sent, thank you.",serverError:"We can not process form right now, please try again later.",validationErrors:"There were some errors, review the form"},pending:!!e.pending,"archive-list-link":e.archiveListLink,settings:e.settings,onSubmit:y},null,8,["elements","initialElements","i18n","pending","archive-list-link","settings"])):Ne("",!0)],2)],2)}}}),FLe=["aria-hidden"],zLe={class:"group_by_category"},NLe={key:3},VLe={key:4,"aria-live":"polite"},qLe=Fe({__name:"SearchList",props:{data:{default:{}},isSearch:{type:Boolean,default:!1}},setup(e){const t=e,n=vr(),r=De(n.initialData),i=r?.value?.searchUrl,{isAmiral:a}=zr(),{$emit:s,$on:o,$off:f}=En(),{computeFieldFromSettings:m,requestSearch:y,requestScroll:b,requestGeo:T}=Ow(),x=JSON.parse(t.data?.settings?.showFilters),$=De(),A=De(),N=De(1),O=De([]),I=De(0),U=De(!1),B=De(),q=De(),Q=De(t.data?.initialForm??t.data?.form),ee=De({...Q.value}),Y=De(),z=De([]),H=De(0),K=De(!1),ne=xe(()=>t.data?.settings?.type_affichage||"list"),le=xe(()=>t.data?.settings?.template==="list"&&["list","list_map","list_map_hide"].includes(ne.value)),pe=xe(()=>t.data?.settings?.template==="list"&&["map","list_map","list_map_hide"].includes(ne.value)),ae=xe(()=>t.isSearch?!1:["map","list_map"].includes(ne.value)),se=De(ae.value),ce=xe(()=>U.value||K.value);Hn(()=>{O.value=t.data.results||t.data.items||[],I.value=t.data.nbResults||0,B.value=t.data?.queryString,q.value=t.data?.suggestedWord,o("filters:onFieldValueChanged",ye),pe.value&&se.value&&parseInt(t.data.settings.showResults)&&nt(Be.value)}),oa(()=>{f("filters:onFieldValueChanged",ye)});const ye=async vt=>{Y.value=vt},$e=xe(()=>m(ee.value?.fields||[])),Be=xe(()=>hp($.value?.values)),je=vt=>{N.value=1,le.value&&(t.isSearch?Pt(In(vt.values),N.value):Qe(In(vt.values),N.value)),pe.value&&se.value&&nt(vt.values)},at=()=>{le.value&&(t.isSearch?Pt(In(Be.value),N.value):Qe(In(Be.value),N.value)),Ot()},Pt=async(vt,Jt)=>{U.value=!0;const{success:an,documents:Sn,nbResults:On,response:ft,form:Ge}=await y(t.data.urlScroll||i,vt,Jt);if(U.value=!1,!an)return;O.value=In(Sn),I.value=On,B.value=ft?.queryString,q.value=ft.suggestedWord;const rt=In(hp(vt,!0));Object.keys(rt).length===0&&(Y.value=void 0),Sn.length>0&&(ee.value.fields=ee.value.fields.map(($t,Gt)=>(["list","calendar_interval"].includes($t.fieldType)&&typeof $t?.items<"u"&&typeof Ge.fields?.[Gt]?.items<"u"&&((["calendar_interval"].includes($t.fieldType)||$t.name!==Y.value?.name)&&!Object.keys(rt).includes($t.name)?$t.items=Ge.fields[Gt].items:$t.items=v(Q).fields[Gt].items),{...$t}))),Ee()},Qe=async(vt,Jt)=>{U.value=!0;const{success:an,documents:Sn,nbResults:On,form:ft}=await b(t.data.urlScroll,vt,Jt);if(U.value=!1,!an)return;O.value=In(Sn),I.value=On;const Ge=In(hp(vt,!0));Sn.length>0&&(ee.value.fields=ee.value.fields.map((rt,$t)=>
946(["list","calendar_interval"].includes(rt.fieldType)&&typeof rt?.items<"u"&&typeof ft.fields?.[$t]?.items<"u"&&((["calendar_interval"].includes(rt.fieldType)||rt.name!==Y.value?.name)&&!Object.keys(Ge).includes(rt.name)?rt.items=ft.fields[$t].items:rt.items=Q.value.fields[$t].items),{...rt})),ee.value.moreFields=ee.value.moreFields.map((rt,$t)=>(["list","calendar_interval"].includes(rt.fieldType)&&typeof rt?.items<"u"&&typeof ft.moreFields?.[$t]?.items<"u"&&((["calendar_interval"].includes(rt.fieldType)||rt.name!==Y.value?.name)&&!Object.keys(Ge).includes(rt.name)?rt.items=ft.moreFields[$t].items:rt.items=Q.value.moreFields[$t].items),{...rt}))),Ee()},nt=async vt=>{K.value=!0;const{success:Jt,documents:an,nbResults:Sn}=await T(t.data.urlGeo,vt);if(K.value=!1,Jt)z.value=In(an),H.value=In(Sn);else{const On=z.value;z.value=[],z.value=On}},Ve=xe(()=>I.value!==1),ct=vt=>{if(t.data.settings.getResultsByCategories==="1")for(let Jt=0;Jt<O.value.length;Jt++)for(let an=0;an<O.value[Jt].results.length;an++){const Sn=O.value[Jt].results[an];if(Sn.uid===vt.uid&&Sn.pid===vt.pid){let On=an,ft=Jt;an===0?(ft===0?ft=O.value.length-1:ft=Jt-1,On=O.value[ft].results.length-1):On=an<=0?O.value[ft].results.length-1:an-1,typeof O.value[ft].results[On].links[0]<"u"&&s("popinDetail:open",{link:O.value[ft].results[On].links[0],showArrows:Ve.value});break}}else for(let Jt=0;Jt<O.value.length;Jt++){const an=O.value[Jt];if(an.uid===vt.uid&&an.pid===vt.pid){const Sn=Jt<=0?O.value.length-1:Jt-1;typeof O.value[Sn].links[0]<"u"&&s("popinDetail:open",{link:O.value[Sn].links[0],showArrows:Ve.value});break}}},zt=vt=>{if(t.data.settings.getResultsByCategories==="1")for(let Jt=0;Jt<O.value.length;Jt++)for(let an=0;an<O.value[Jt].results.length;an++){const Sn=O.value[Jt].results[an];if(Sn.uid===vt.uid&&Sn.pid===vt.pid){let On=an,ft=Jt;an===O.value[Jt].results.length-1?(On=0,ft===O.value.length-1?ft=0:ft=Jt+1):On=an>=O.value[ft].results.length-1?0:an+1,typeof O.value[ft].results[On].links[0]<"u"&&s("popinDetail:open",{link:O.value[ft].results[On].links[0],showArrows:Ve.value});return}}else for(let Jt=0;Jt<O.value.length;Jt++){const an=O.value[Jt];if(an.uid===vt.uid&&an.pid===vt.pid){const Sn=Jt>=O.value.length-1?0:Jt+1;typeof O.value[Sn].links[0]<"u"&&s("popinDetail:open",{link:O.value[Sn].links[0],showArrows:Ve.value});break}}},{t:ut}=Ii(),At=De(),Dt=xe(()=>At.value?.pagesTotal);Zj(Dt,()=>{Ot()},{deep:!0,immediate:!0});const Ot=()=>{const vt=De("");t.isSearch?vt.value=`${B.value} - Page ${N.value} sur ${Dt.value} - `+r.value.siteBuilderInfos?.siteName:vt.value=`${Q.value?.title} - Page ${N.value} sur ${Dt.value} - `+r.value.siteBuilderInfos?.siteName,fu({title:vt.value})};nn(se,async()=>{se.value&&await nt(Be.value)});const Ee=()=>{window.scrollTo(0,0),qe.value=!1,pt.value=!1},Ye=De(),it=De(),yt=De(),St=xe(()=>$.value?.stickyFilters),Ie=xe(()=>$.value?.isNotLargeScreen),qe=De(!1),pt=De(!1),Tt=RS(yt),It=RS(St),sn=RS(Ye),Yt=xe(()=>Ie?0:100),_t=nn(Tt.bottom,()=>{});return pt.value===!1?nn(Tt.bottom,()=>{Tt.bottom.value<=It.bottom.value&&(pt.value=!0)}):_t(),nn(It.top,()=>{pt.value&&It.top.value>=Yt.value?pt.value=!1:hge(it,([{isIntersecting:vt}],Jt)=>{ce.value?qe.value=!1:qe.value=!vt})}),(vt,Jt)=>{const an=YEe,Sn=Cu,On=XEe,ft=JT,Ge=ZI;return Z(),Ce("div",{class:de([v(Qn)({alignItems:"start",justifyContent:"space-between",flexWrap:{base:"wrap",md:"nowrap"},gap:{base:"1rem",md:"1.5rem",lg:"{spacing.gutter}"}}),v(me)({marginBottom:{base:"2rem",sm:"5rem",md:"10rem"}})])},[Re("div",{ref_key:"filtersAnchorTop",ref:it,class:de(v(me)({width:"100%",position:"absolute",transform:{base:"translateY(calc(-1 * ({spacing.preheader} + 2rem)))",md:"translateY(calc(-1 * ({spacing.header} + 4rem)))"}}))},null,2),Re("div",{ref_key:"filtersContainerRef",ref:Ye,class:de(v(me)({width:{base:"100%",md:"5/12",xl:"4/12"},_print:{display:"none"}})),style:fo(`min-height:${v(It).height.value}px`)},[v(x)?(Z(),Se(BLe,{key:0,ref_key:"filtersRef",ref:$,url:e.data.url||v(i),elements:v($e),"initial-elements":v(Q)?.fields,settings:e.data.settings,"nb-results":v(se)?v(H):v(I),"has-list":v(le),"has-map":v(pe),"show-map":v(se),pending:v(ce),"archive-list-link":e.data.archiveListLink,"is-search":e.isSearch,"query-string":v(B),"suggested-word":v(q),onOnSubmit:je,onOnShowMapChanged:Jt[0]||(Jt[0]=rt=>se.value=!v(se)),class:de([v(qe)?v(me)({marginTop:{base:"calc({spacing.preheader} + 2rem)",md:"calc({spacing.header} + 4rem)"},boxShadow:{mdDown:"0 .4rem 2rem 0 rgba(0,0,0,.2)"}}):null,v(qe)&&!v(pt)?v(me)({position:"fixed",top:0,maxHeight:{base:"calc(100vh - {spacing.preheader} - {spacing.header} - 4rem)",md:"calc(100vh - {spacing.header} - 6rem)"},overflowY:"auto",overflowX:{md:"visible"}}):null,v(pt)?v(me)({position:"absolute",bottom:"10rem"}):null]),style:fo(`width:${v(sn).width.value}px`)},null,8,["url","elements","initial-elements","settings","nb-results","has-list","has-map","show-map","pending","archive-list-link","is-search","query-string","suggested-word","class","style"])):Ne("",!0)],6),v(le)&&!v(se)?(Z(),Ce("div",{key:0,id:"first_display",class:de([v(Tr)({alignItems:"start",ga
946p:e.data?.results?.[0]?.results?.[0]?.type==="demarche"?"6rem":"3.5rem"}),v(me)({width:{base:"100%",md:"7/12",xl:"8/12"},paddingLeft:v(a)()?{md:"3rem",lg:"6rem"}:{md:"6rem"},marginTop:{smOnly:"2.5rem"},"& > *":{width:"100%"},"& [data-list-category]":{_print:{border:"none",padding:0,marginBottom:"1rem"}},"& [data-field-type]":{_print:{margin:"1rem 0"}},"& [data-bloc-content]":{padding:"0!"}}),v(a)()?null:v(me)({"& [data-date-container]:not([data-date=sessions])":{position:"absolute!",top:{base:"-1.5rem",sm:"24.1rem"},left:{mdDown:"-1rem"},transform:{mdDown:"translateY(-100%)"},order:{mdDown:-5}}}),e.data?.results?.[0]?.results?.[0]?.type!=="demarche"?v(me)({"& [data-list-item-title]":{"& a::before":{height:{smDown:"calc(100% + 24rem + 1.5rem)"},width:{smDown:"100%"},top:{smDown:"calc(-24rem - 1.5rem)"},left:{smDown:0}}}}):null]),role:"list"},[v(ce)?(Z(),Ce(Ct,{key:0},ln(3,rt=>Re("div",{class:"placeholder_loader placeholder_list_item","aria-hidden":!v(ce)},null,8,FLe)),64)):e.data.settings?.getResultsByCategories==="1"&&v(O).length>0?(Z(!0),Ce(Ct,{key:1},ln(v(O),rt=>(Z(),Ce("div",zLe,[ke(an,{category:rt,popin:!1},null,8,["category"])]))),256)):v(O).length>0?(Z(!0),Ce(Ct,{key:2},ln(v(O),rt=>(Z(),Se(Sn,{key:rt.id,result:rt,popin:!e.isSearch,options:{showtype:e.isSearch,showimg:rt?.type!=="association"}},null,8,["result","popin","options"]))),128)):(Z(),Ce("p",NLe,ht(vt.$t("search.autocomplete.noResultAtAll")),1)),ke(On,{ref_key:"paginationRef",ref:At,modelValue:v(N),"onUpdate:modelValue":[Jt[1]||(Jt[1]=rt=>zn(N)?N.value=rt:null),at],"results-scroll-count":v(I),"items-per-page":+e.data.resultsPerPage,items:v(O),title:v(ee)?.title,isSearch:e.isSearch},null,8,["modelValue","results-scroll-count","items-per-page","items","title","isSearch"]),!v(se)&&v(O).length>0?(Z(),Ce("p",VLe,ht(v(O)?.length)+" "+ht(v(O)?.length>1?vt.$t("search.filters.resultsOnPage"):vt.$t("search.filters.resultOnPage"))+" - "+ht(v(I))+" "+ht(v(I)>1?vt.$t("search.filters.resultsTotal"):vt.$t("search.filters.resultTotal")),1)):Ne("",!0)],2)):Ne("",!0),v(pe)&&v(se)?(Z(),Ce("div",{key:1,id:"second_display",class:de([v(ce)?"placeholder_map":null,v(me)({width:{base:"100%",lg:"7/12",md:"8/12"},height:"60rem",marginBottom:"6rem"})])},[ke(ft,{ref_key:"mapRef",ref:A,settings:e.data,results:v(z),display:"list"},null,8,["settings","results"])],2)):Ne("",!0),Re("div",{class:de(["ancre_bottom",v(me)({width:"100%",position:"absolute",bottom:0,transform:"translateY(0rem)"})]),ref_key:"filtersAnchorBottom",ref:yt},null,2),ke(Ge,{resultsScrollCount:v(I),onOnPrevious:ct,onOnNext:zt},null,8,["resultsScrollCount"])],2)}}}),nK=Fe({__name:"FieldSubpages",props:{colPos:{},result:{},header:{},config:{},isRelated:{type:Boolean,default:!1}},setup(e){const t=e,n=xe(()=>t.result?.subpages?t.result.subpages:t.result);return(r,i)=>{const a=ek;return Z(),Se(a,{header:e.header,colPos:e.colPos,result:v(n)},null,8,["header","colPos","result"])}}}),jLe=Fe({__name:"ProfileList",props:{data:{default:{}},header:{default:{}}},setup(e){return(t,n)=>{const r=nK;return Z(),Se(r,{result:e.data?.results,header:e.header},null,8,["result","header"])}}}),ULe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 195 115"};function HLe(e,t){return Z(),Ce("svg",ULe,[...t[0]||(t[0]=[Re("path",{fill:"url(#i-813830099__a)",d:"M.322 12.327c-.217.09-.322.146-.322.146s.119-.056.322-.146m67.987 56.225c-7.494 2.118-29.956-.513-49.517-3.476 15.967 4.57 32.019 16.962 46.72 17.038 19.408.097 17.017-17.585 2.79-13.562zm119.889 29.375c-16.052-24.474-40.373-36.527-47.777-40.75-.461-.312-5.054-2.375-10.214-8.205-1.146-1.751-1.174-3.337-.832
946-4.991 1.783-4.424 7.236-9.61 12.731-10.434-9.731-2.194-12.297-5.711-21.148-1.329-2.034 1.004-3.831 1.904-4.97 2.209-.182-.125-.098-.36-.133-.194-.531-3.517-3.09-8.004-8.557-14.027-7.271-8.01-15.877-13.133-25-16.228A43 43 0 0 0 78.9 2.926C44.456-6.767 4.223 10.583.322 12.327c.74-.304 2.824-1.045 6.85-1.606 6.146-1.24 12.717-1.91 19.548-1.91 34.046 0 61.646 16.678 61.646 37.247 0 7.505-3.677 14.49-9.997 20.34l-.272.34c2.069-.042 20.86.616 28.264 1.585C149.803 74.007 184.723 93.282 195 115c-1.14-5.684-3.216-11.61-6.802-17.08z",opacity:".1"},null,-1),Re("defs",null,[Re("linearGradient",{id:"i-813830099__a",x1:"195",x2:"0",y1:"57.5",y2:"57.5",gradientUnits:"userSpaceOnUse"},[Re("stop",{offset:".495","stop-color":"#E03138"}),Re("stop",{offset:"1","stop-color":"#F0821F"})])],-1)])])}const WLe={render:HLe},GLe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 152 210"};function YLe(e,t){return Z(),Ce("svg",GLe,[...t[0]||(t[0]=[JC('<g fill="#fff" opacity=".75"><path d="M151.98 19.093V0h-9.291v12.792h-21.046V.022h-15.19v12.77H83.068V.022H68.406v12.77H44.958V.022H30.295v12.77H9.312V0H0v24.481h151.98zM142.688 33.497v61.776c0 10.332-1.137 20.133-3.391 29.361H81.298v7.404h55.871c-4.614 14.383-12.135 27.281-22.521 38.61h-9.902c0 1.336 1.285 2.524 3.16 3.118h3.792c-1.011 1.018-2.043 2.058-3.097 3.055-10.954 10.268-22.057 16.653-29.03 20.069v-26.349h-7.353v26.2c-6.826-3.373-17.507-9.525-28.083-19.305a105 105 0 0 1-3.792-3.691h3.813c1.897-.615 3.182-1.782 3.182-3.119h-9.944c-10.386-11.328-17.907-24.226-22.542-38.61h55.765v-7.403H12.724c-2.254-9.229-3.392-19.03-3.392-29.36V31.63H.021v63.621c0 45.611 20.772 74.42 38.195 90.543C55.322 201.62 72.64 208.706 76.01 210c3.35-1.273 20.688-8.358 37.795-24.205C131.228 169.672 152 140.863 152 95.252V31.631h-9.312v1.8659999999999999"></path><path d="M139.318 31.652H12.682v42.746h126.615V31.652zM49.381 60.46s-1.77.912-4.213-.34l-.485-.254.443-.34s1.58-1.23 1.517-2.61c-.021-.72-.527-1.4-1.433-1.993 0 0-1.411-.764-3.118-.085-1.812.721-3.265 2.736-4.382 5.982h2.95v.68h-3.034c.232 1.76.8 2.927 1.706 3.478 1.159.68 2.507.127 2.528.127l.274.637s-.653.276-1.474.276a3.2 3.2 0 0 1-1.665-.446c-1.116-.657-1.79-2.015-2.043-4.073h-1.37c.042.446.169 1.379.611 2.44.064.17.148.34.232.53.758 1.655 1.917 4.137-1.032 7.552l-.253.297-.253-.297c-2.95-3.436-1.79-5.918-1.032-7.552.084-.19.168-.36.253-.53a9 9 0 0 0 .632-2.44h-1.39c-.254 2.037-.928 3.416-2.044 4.073a3.2 3.2 0 0 1-1.665.446 4 4 0 0 1-1.474-.276l.273-.636s1.37.572 2.508-.128c.905-.551 1.474-1.718 1.706-3.479h-3.076v-.679h2.97c-1.095-3.224-2.57-5.26-4.381-5.982-1.707-.679-3.097.085-3.118.085-.906.594-1.39 1.251-1.433 1.994-.063 1.379 1.496 2.61 1.517 2.61l.442.339-.484.254c-2.444 1.252-4.13.382-4.214.34-2.97-1.422-2.886-4.9-2.886-5.05.21-1.972.97-3.457 2.233-4.433 2.254-1.74 5.31-1.252 5.436-1.23 6.34 1.272 7.479 9.334 7.668 11.073h1.39c-.126-1.166-.674-5.58-2.422-8.528-2.17-3.67-4.087-7.68-1.686-12.728 1.833-3.84 4.172-6.916 4.193-6.937 0 0 .02 0 .042-.022 0 0 0-.02.021-.02h.021c.021 0 .042-.022.063-.043h.253c.021 0 .042 0 .063.042h.021l.021.021s.022 0 .043.021c.02.043 2.38 3.098 4.213 6.938 2.402 5.07.485 9.058-1.685 12.728-1.749 2.949-2.297 7.383-2.423 8.528h1.39c.169-1.74 1.328-9.822 7.669-11.074.126-.02 3.181-.509 5.435 1.23 1.285.977 2.023 2.462 2.233 4.435 0 .148.085 3.627-2.886 5.049zm40.703 0s-1.75.912-4.214-.34l-.485-.254.443-.34s1.58-1.23 1.517-2.61c-.021-.72-.527-1.4-1.433-1.993 0 0-1.411-.764-3.118-.085-1.812.721-3.265 2.736-4.382 5.961h2.95v.7h-3.034c.232 1.74.8 2.928 1.706 3.48 1.159.7 2.507.126 2.528.126l.274.637s-.653.276-1.474.276a3.2 3.2 0 0 1-1.665-.446c-1.116-.657-1.79-2.036-2.043-4.073h-1.37c.042.446.169 1.379.632 2.44.064.17.148.34.232.53.758 1.634 1.917 4.137-1.032 7.552l-.253.297-.253-.297c-2.95-3.415-1.79-5.918-1.032-7.552.084-.19.168-.36.253-.53.442-1.082.59-1.994.61-2.44h-1.39c-.253 2.037-.927 3.416-2.043 4.073a3.2 3.2 0 0 1-1.665.446c-.8 0-1.432-.255-1.474-.276l.273-.636s1.37.572 2.508-.128c.905-.53 1.474-1.718 1.706-3.479H70.28v-.7h2.97c-1.095-3.224-2.57-5.24-4.381-5.961-1.707-.679-3.097.085-3.118.085-.906.594-1.39 1.251-1.433 1.994-.063 1.379 1.496 2.61 1.517 2.61l.442.339-.484.254c-2.444 
9461.252-4.13.382-4.214.34-2.97-1.422-2.886-4.9-2.886-5.05.21-1.972.97-3.457 2.233-4.433 2.255-1.74 5.31-1.252 5.436-1.23 6.34 1.272 7.479 9.334 7.668 11.073h1.39c-.126-1.166-.674-5.58-2.422-8.528-2.17-3.67-4.087-7.68-1.686-12.728 1.833-3.84 4.172-6.916 4.193-6.937 0 0 .02 0 .042-.022 0 0 0-.02.021-.042h.021c.021 0 .042-.021.063-.043 0 0 .043 0 .064-.02h.126s.042 0 .063.02c.021 0 .042 0 .063.043h.021s0 .021.021.042c0 0 .022 0 .043.021s2.38 3.098 4.213 6.938c2.402 5.07.485 9.08-1.685 12.728-1.749 2.949-2.297 7.383-2.423 8.528h1.412c.168-1.74 1.327-9.822 7.668-11.074.126-.02 3.181-.509 5.435 1.23 1.285.977 2.044 2.462 2.233 4.435 0 .148.085 3.627-2.886 5.049zm40.638.02s-1.769.913-4.213-.339l-.485-.254.443-.34s1.58-1.23 1.517-2.609c-.043-.721-.527-1.4-1.433-1.994 0 0-1.412-.764-3.118-.085-1.812.721-3.265 2.737-4.382 5.961H122v.7h-3.033c.231 1.74.8 2.928 1.706 3.458 1.159.7 2.507.127 2.507.127l.274.637s-.653.276-1.475.276a3.2 3.2 0 0 1-1.664-.446c-1.117-.657-1.791-2.036-2.043-4.073h-1.3699999999999999a8.5 8.5 0 0 0 .611 2.44c.063.17.148.34.253.53.758 1.634 1.917 4.137-1.032 7.552l-.253.297-.253-.297c-2.949-3.415-1.791-5.918-1.032-7.552.084-.19.168-.36.252-.53.443-1.082.59-1.994.611-2.44h-1.3900000000000001c-.253 2.037-.927 3.416-2.044 4.073a3.2 3.2 0 0 1-1.664.446 4 4 0 0 1-1.475-.276l.274-.636s1.37.572 2.507-.128c.906-.53 1.475-1.718 1.707-3.458h-3.076v-.7h2.97c-1.095-3.224-2.57-5.24-4.382-5.961-1.706-.679-3.096.085-3.118.085-.905.594-1.39 1.252-1.432 1.994-.063 1.379 1.517 2.61 1.517 2.61l.442.339-.484.254c-2.444 1.252-4.13.382-4.214.34-2.97-1.422-2.886-4.9-2.886-5.05.21-1.972.969-3.457 2.233-4.433 2.254-1.74 5.309-1.252 5.435-1.23 6.342 1.273 7.5 9.334 7.669 11.074h1.39c-.126-1.167-.674-5.58-2.422-8.529-2.17-3.67-4.087-7.68-1.686-12.728 1.833-3.84 4.172-6.916 4.193-6.937 0 0 .021 0 .042-.022.021-.02 0-.02.021-.042h.021s.042-.021.063-.021h.253s.042 0 .063.021h.021s0 .021.021.042c0 0 .021 0 .042.022.021.02 2.381 3.097 4.193 6.937 2.401 5.07.484 9.058-1.686 12.728-1.748 2.95-2.296 7.383-2.422 8.529h1.39c.169-1.74 1.327-9.823 7.669-11.074.126-.022 3.181-.51 5.435 1.23 1.285.976 2.022 2.46 2.233 4.434 0 .148.084 3.627-2.886 5.049zM40.829 84.115c.273 2.63-6.005 5.07-1.16 10.48 0 0-.99-2.589.949-5.135 2.212 1.019 2.001 3.034 1.875 4.031 2.76-2.036.864-6.173-1.665-9.398z"></path><path d="M40.85 93.64v1.654h-2.234v7.595h4.972v-7.594h-2.233V93.64zM38.005 116.848h6.13c1.897-.615 3.182-1.782 3.182-3.119H34.845c0 1.337 1.285 2.525 3.16 3.119M37.69 105.01h.547c.148.425.548.785 1.075 1.061-.57 1.337-1.454 3.628-1.454 4.752 0 .997.548 1.57.97 1.867h4.339c.421-.297.97-.87.97-1.867 0-1.082-.844-3.309-1.412-4.646.632-.254 1.095-.658 1.264-1.145h.59v-1.125h-6.91v1.125zM110.709 84.093c.274 2.63-6.005 5.07-1.159 10.501 0 0-.99-2.588.948-5.134 2.212 1.019 2.001 3.034 1.875 4.031 2.76-2.037.864-6.173-1.664-9.398"></path><path d="M110.75 93.64v1.654h-2.233v7.595h4.972v-7.595h-2.233V93.64zM107.885 116.827h6.13c1.896-.594 3.181-1.782 3.181-3.119h-12.471c0 1.337 1.285 2.525 3.16 3.119M107.59 105.01h.547c.148.425.548.785 1.075 1.061-.569 1.336-1.454 3.628-1.454 4.731 0 .997.548 1.57.969 1.867h4.34c.422-.297.969-.87.969-1.867 0-1.082-.842-3.31-1.411-4.646.632-.255 1.095-.658 1.264-1.146h.59v-1.124h-6.91v1.124zM40.829 141.053c.273 2.631-6.005 5.07-1.16 10.48 0 0-.99-2.588.949-5.134 2.212 1.019 2.001 3.034 1.875 4.031 2.76-2.037.864-6.173-1.665-9.398z"></path><path d="M40.85 150.578v1.655h-2.234v7.616h4.972v-7.616h-2.233v-1.655zM44.01 161.971h.59v-1.125h-6.911v1.125h.548c.147.424.547.784 1.074 1.06-.569 1.337-1.453 3.628-1.453 4.752 0 .997.547 1.57.969 1.867h4.34c.42-.297.969-.87.969-1.867 0-1.082-.843-3.309-1.412-4.646.632-.254 1.096-.657 1.264-1.145zM110.709 141.032c.274 2.631-6.005 5.07-1.159 10.501 0 0-.99-2.588.948-5.134 2.212 1.019 2.001 3.034 1.875 4.031 2.76-2.037.864-6.173-1.664-9.398"></path><path d="M110.75 150.578v1.655h-2.233v7.595h4.972v-7.595h-2.233v-1.655zM107.59 161.949h.547c.148.424.548.785 1.075 1.061-.569 1.336-1.454 3.628-1.454 4.731 0 .997.548 1.57.969 1.867h4.34c.422-.297.969-.87.969-1.867 0-1.082-.842-3.31-1.411-4.646.632-.255 1.095-.658 1.264-1.
946146h.59v-1.124h-6.91v1.124zM79.509 76.18h-7.353V91.88h7.352zM63.791 162.204c-.42.403-.632.933-.632 1.57 0 .636.211 1.145.632 1.57a2.2 2.2 0 0 0 1.56.615c.61 0 1.158-.212 1.558-.615.422-.403.632-.934.632-1.57 0-.637-.21-1.167-.61-1.57s-.927-.594-1.58-.594c-.654 0-1.16.191-1.56.594M66.952 155.712c-.4-.403-.927-.594-1.58-.594s-1.159.191-1.56.594c-.42.403-.631.934-.631 1.57 0 .637.21 1.146.632 1.57.421.424.948.615 1.559.615.61 0 1.158-.212 1.559-.615.421-.403.632-.933.632-1.57 0-.636-.211-1.167-.611-1.57M72.05 152.87c-1.138.615-2.022 1.442-2.675 2.524-.653 1.061-.97 2.27-.97 3.628s.317 2.546.97 3.628a6.8 6.8 0 0 0 2.675 2.503c1.138.615 2.423.912 3.834.912s2.697-.297 3.835-.912 2.022-1.443 2.675-2.503c.653-1.082.97-2.27.97-3.628s-.317-2.546-.97-3.628-1.538-1.909-2.675-2.524a7.6 7.6 0 0 0-2.17-.764V97.289c0-.85-.696-1.55-1.538-1.55s-1.538.7-1.538 1.55v1.76h-5.751v3.119h3.728v2.27h-2.507v3.118h2.507v2.27h-3.728v3.097h5.75v39.162a7.1 7.1 0 0 0-2.4.806zm3.834 2.27c.675 0 1.285.17 1.854.488.548.318.99.785 1.306 1.357a4.25 4.25 0 0 1 .485 2.016c0 .742-.168 1.442-.484 2.015a3.37 3.37 0 0 1-1.307 1.358 3.6 3.6 0 0 1-1.854.488c-.695 0-1.285-.17-1.853-.488a3.5 3.5 0 0 1-1.307-1.358 4.2 4.2 0 0 1-.484-2.015c0-.764.168-1.443.484-2.016a3.37 3.37 0 0 1 1.306-1.357 3.6 3.6 0 0 1 1.854-.488"></path></g>',1)])])}const ZLe={render:YLe},KLe={key:0},I7=Fe({__name:"Popin",props:{popinId:{},popinTitle:{},popinTitleSr:{type:Boolean},popinAriaLabel:{},popinFull:{type:Boolean},btnCloseTxt:{},triggerId:{},triggerTitle:{},forceMount:{type:Boolean,default:!1},modal:{type:Boolean,default:!0},popinParentRef:{},isSmartMenu:{type:Boolean},noPaddingDescription:{type:Boolean},popinOnSide:{type:Boolean},defaultOpen:{type:Boolean,default:!1}},setup(e,{expose:t}){const n=e,r=vr();r.initialData;const{isAmiral:i}=zr(),a=De(!1),s=()=>{a.value=!1},{$on:o,$off:f}=En();Hn(()=>{o("popinRecherche:close",s)}),oa(()=>{f("popinRecherche:close",s)});const m=xe(()=>n.popinTitle?.split(" ")[0]||""),y=xe(()=>n.popinTitle?.split(" ").slice(1).join(" ")||"");fu({htmlAttrs:{class:{overflow:a}}}),t({opened:a}),rX(()=>{requestAnimationFrame(()=>{document.activeElement instanceof HTMLElement&&document.activeElement.blur()})});const T=uU({className:"popinRecipe",slots:["content","container","title","description","close"],base:{title:{color:"{colors.black}",fontWeight:700,letterSpacing:0},content:{position:"fixed",bgColor:"{colors.white}",zIndex:"9999"},close:{position:"absolute",zIndex:5}},variants:{size:{full:{content:{bgColor:"white",color:"{colors.black}",inset:0,width:"100%",height:"100%",overflowY:"auto",padding:{base:"5rem 0",sm:"5rem 1.5rem",md:"10rem 5rem 5rem 5rem",lg:"15rem 5rem 5rem 5rem"}},title:{fontSize:"{fontSizes.xl}",fontFamily:"secondary",marginBottom:"3rem",position:"relative"},close:{top:{base:"1rem",sm:"3rem"},right:{base:"1rem",sm:"3rem"}}},simple:{content:{top:{base:0,sm:"50%"},left:{base:0,sm:"50%"},transform:{sm:"translate(-50%, -50%)"},width:{base:"100%",sm:"75%",lg:"100%"},maxWidth:"75rem",borderRadius:{base:0,sm:"1em"},height:{base:"100%",sm:"auto"},_inverse:{border:"0.1rem solid {colors.yellow}"}},container:{padding:"0 !important",height:{base:"100%",lg:"auto"}},title:{fontSize:"h3",fontFamily:"secondary",fontWeight:700,padding:{base:"1.5rem 3rem 1.5rem 2rem",md:"3rem 5rem 2rem 5rem"},borderBottom:"{borders.sm} {colors.mediumGray}",marginBottom:0},description:{padding:{base:"2rem",md:"4rem 5rem"},overflow:"auto",maxHeight:{lg:"75rem"},height:{base:"100%",lg:"auto"},overflowX:"hidden","& [data-form-container]":{padding:"0!","& form > *":{padding:0}},"& input, [data-label-like], legend:not(.sr_true), label":{fontSize:"{fontSizes.sm}"},"& button[role=checkbox]":{fontSize:"p"},"& form":{marginBottom:0},"& form > *":{gap:0,padding:{base:"0 1.5rem",sm:"0 3rem",md:"0 5.5rem"}},"& [data-field]":{padding:{base:"1.5rem 0",md:"3rem 0"}},"& [data-buttons-container]":{flexDir:"row-reverse",padding:{base:"1.5rem",sm:"2rem 3rem",md:"2rem 5.5rem"},position:"relative",borderTop:"{borders.sm}{colors.mediumGray}",gap:"3rem",justifyContent:"space-between"},"& [data-field]:not(:last-child)":{borderBottom:"{borders.sm} {colors.mediumGray}"},"& [data-field=keyword]":{"& input":{maxWidth:"35rem",paddingLeft:"5.5rem"},"& > svg":{left:{base:"0.5rem",md:"1rem"},bottom:{base:"2rem",md:"3.7rem"},right:"auto"},"& > button":{left:"calc(35rem - 4rem)",bottom:{base:"2.5rem",md:"3.7rem"},right:"auto"}}},close:{top:{base:"0.5rem",md:"2rem"},right:{base:"1.5rem",md:"2.5rem"}}},side:{content:{bgColor:"white/95",color:"black",top:0,right:0,transform:"none",width:{base:"100%",sm:"75%",md:"100%"},borderRadius:0,height:"100vh",maxWidth:"69.5rem !important",_inverse:{border:"0.1rem solid {colors.yellow}"}},container:{padding:{base:"5rem 3rem 3rem 3rem !important",sm:"10rem 4.5rem 4.5rem 4.5rem !important",md:"13.5rem 9.5rem 8rem 7.5rem !important"},height:{base:"100%",md:"auto"}},title:{fontSize:"lg!",fontFamily:"secondary",lineHeight:1.2,marginBottom:i()?{base:"1.5rem",sm:"3rem"}:{base:"2rem",sm:"4rem"}},description:{padding:{base:0,md:0},overflow:"hidden",overflowY:"auto",height:"100%",maxHeight:{base:"calc(100% - 5rem)",sm:"calc(100% - 10rem)",md:"calc(100% - 20rem)"}},close:{top:{base:"1rem",md:"2rem"},right:{base:"1.5rem",md:"2.5rem"}}}}},defaultVariants:{}})({size:n?.popinOnSide?"side":n?.popinFull?"full":"simple"});return(x,$)=>{const A=M1e,N=kH,O=$G,I=bH,U=WLe,B=ZLe,q=P1e,Q=TH,ee=CH,Y=tI,z=_H;return Z(),Se(z,{open:v(a),"onUpdate:open":$[0]||($[0]=H=>zn(a)?a.value=H:null),modal:e.modal,defaultOpen:e.defaultOpen},{default:be(()=>[ke(A,{id:e.triggerId,"aria-controls":`popin_${e.popinId}`,title:e.triggerTitle?e.triggerTitle:null,asChild:""},{default:be(()=>[bt(x.$slots,"trigger")]),_:3},8,["id","aria-controls","title"]),ke(Y,{to:e.popinParentRef},{default:be(()=>[ke(N,{class:de([v(OA)(),e.popinFull?v(me)({display:"none"}):null,e.isSmartMenu?v(me)({maxHeight:"calc(100% - {spacing.header})"}):null])},null,8,["class"]),ke(ee,{id:`popin_${e.popinId}`,"aria-modal":e.modal?!0:null,"aria-label":e.popinAriaLabel,"force-mount":e.forceMount||!1,class:de([`popin_${e.popinId}`,v(T).content,v(a)?"":v(me)({display:"none"}),e.isSmartMenu?v(me)({maxHeight:"calc(100% - {spacing.header}
946)",top:"0 !important",left:"0 !important",transform:"none !important",height:"100% !important",borderRadius:"0 !important"}):null,e.popinId==="listResults"&&v(a)?v(me)({animation:{md:"listResultsSwipeInMd .3s ease-in-out forwards !important",base:"listResultsSwipeInBase .3s ease-in-out forwards !important"}}):null,e.popinId==="recherche"?v(me)({overflowX:"hidden"}):null,e.popinId==="alert"?v(me)({maxWidth:"93rem"}):null,e.popinOnSide?v(me)({transform:"translateX(100%)"}):null,e.popinOnSide&&v(a)?v(me)({animation:"popinSideRightSwipeIn .3s ease-in-out forwards !important"}):null])},{default:be(()=>[Re("div",{class:de([v(T).container,e.popinId==="listResults"?v(me)({position:"relative",height:"100% !important",width:"100% !important"}):v(Dg)({position:"static"}),e.isSmartMenu?v(me)({padding:"0 !important"}):null])},[ke(I,{"as-child":""},{default:be(()=>[ke(O,{title:e.btnCloseTxt,popinFull:e.popinFull,autofocus:"",variante:e.popinOnSide?{classes:"pictoRound",pictoColor:"transparentWhite",pictoSize:"sm"}:e.popinId==="listResults"?{}:null,showSr:e.popinId!=="listResults",picto:e.popinId==="listResults"?"prev":null,class:de([v(T).close,e.isSmartMenu?v(me)({top:"4.25rem",right:"2rem"}):null])},null,8,["title","popinFull","variante","showSr","picto","class"])]),_:1}),ke(q,{as:"p",role:"heading","aria-level":"1",class:de([v(T).title,e.popinTitleSr?v(Er)():null])},{default:be(()=>[Re("span",{class:de(v(me)({position:"relative"}))},[e.popinId!=="recherche"?(Z(),Ce("span",KLe,ht(e.popinTitle),1)):(Z(),Ce("span",{key:1,class:de(v(Tr)({gap:0,alignItems:"start"}))},[Re("span",{class:de(v(i)()?v(me)({fontSize:{base:"3rem",sm:"4.2rem"}}):v(me)({fontSize:{base:"3rem",sm:"4rem"},bgImage:{base:"linear-gradient(to right, {colors.secondary}, {colors.primary})",_renforce:"transparent",_inverse:"transparent"},color:{base:"transparent",_renforce:"red",_inverse:"yellow"},webkitBackgroundClip:"text",backgroundClip:"text"}))},ht(v(m)),3),Re("span",{class:de([v(i)()?v(me)({fontSize:{base:"3rem",sm:"4.2rem"}}):v(me)({fontSize:{base:"2.5rem",sm:"3.5rem"}})])},ht(v(y)),3)],2)),v(i)()&&(e.popinFull||e.popinOnSide)?(Z(),Se(U,{key:2,"aria-hidden":"true",class:de([v(me)({position:"absolute",bottom:"1rem",right:"11.5rem",zIndex:-1,_print:{display:"none"}}),v(ei)({size:{base:"15.5rem",sm:"19.5rem"},height:{base:"7.5rem",sm:"11.5rem"}})])},null,8,["class"])):e.popinFull||e.popinOnSide?(Z(),Se(B,{key:3,"aria-hidden":"true",class:de([v(me)({position:"absolute",bottom:"-3rem",right:"11.5rem",zIndex:-1,_print:{display:"none"}}),v(ei)({size:{base:"10rem",sm:"14rem"},height:{base:"15rem",sm:"19rem"},"& > g":{fill:"{colors.lightGray}"}})])},null,8,["class"])):Ne("",!0)],2)]),_:1},8,["class"]),ke(Q,{as:"div","data-popin-description":"",class:de([v(T).description,e.popinId==="recherche"?v(me)({minHeight:"45rem"}):null,e.noPaddingDescription?v(me)({padding:"0 !important"}):null])},{default:be(()=>[bt(x.$slots,"content")]),_:3},8,["class"])],2)]),_:3},8,["id","aria-modal","aria-label","force-mount","class"])]),_:3},8,["to"])]),_:3},8,["open","modal","defaultOpen"])}}}),XLe=Fe({__name:"InteractiveMapFilters",props:{elements:{default:[]},moreElements:{default:[]},initialElements:{default:[]},settings:{},pending:{type:Boolean,default:!1},isInteractiveMap:{type:Boolean}},emits:["onSubmit"],setup(e,{expose:t,emit:n}){const{modifyFiltersForPopin:r}=Ow(),i=e,a=n,s=De(),o=De(),f=xe(()=>s.value?.values),m=async T=>{a("onSubmit",T)},y=xe(()=>r([...i.elements,...i.moreElements],{Multiselect:"Multicheckbox"})),b=xe(()=>nk(f.value));return t({values:f}),(T,x)=>{const $=Fy,A=JG,N=XI,O=eK,I=I7,U=tK;return Z(),Se(U,{ref_key:"formRef",ref:s,elements:e.elements,"more-elements":e.moreElements,"initial-elements":e.initialElements,i18n:{submitButton:T.$t("search.filters.submit"),sendingLabel:T.$t("form.sending"),resetButton:T.$t("form.reinit"),serverSuccess:"The form was sent, thank you.",serverError:"We can not process form right now, please try again later.",validationErrors:"There were some errors, review the form"},pending:e.pending,settings:e.settings,"is-interactive-map":!0,onSubmit:m,class:de([v(Qn)({gap:{base:"1rem",md:"2rem",lg:"2.5rem"}
946,justifyContent:{base:"center",md:"start"}}),v(me)({width:{base:"auto",md:"100%"},margin:{base:"0 auto",md:0},paddingBottom:{base:"1.5rem",sm:"2.5rem",md:"4rem",lg:"3rem"},flexWrap:"wrap",rowGap:{base:0,md:"1rem!",lg:"2rem!"},position:"relative","& > div":{flexWrap:{mdDown:"wrap"},alignItems:"center",justifyContent:{md:"start"},gap:"2.5rem",display:{base:"inline-block",md:"flex"},width:"unset !important",textAlign:{smDown:"center"},flexDir:{base:"column",sm:"row"},"& [data-field]":{width:"auto"},"& [data-field]:not([data-field=keyword])":{hideBelow:"md"},"& [data-field=keyword]":{width:{base:"100%",md:"auto"},margin:{base:"0 auto",md:0},marginBottom:{smDown:"1rem"},maxWidth:{md:"25vw"},paddingRight:{mdDown:"4rem"},"& button":{right:{mdDown:"6rem"}}},"& [data-field] + [data-field]":{display:"inline-block",margin:{base:"0.5rem",sm:"1rem 0.5rem",md:0},marginTop:{mdDown:"2rem"},"& fieldset":{textAlign:"left"}}}}),e.isInteractiveMap?v(me)({"& #btn_submit_search":{position:{lgDown:"absolute"},bottom:0,left:"50%",transform:{lgDown:"translate(-50%, 50%)"},zIndex:1},"& [data-buttons-container]":{alignItems:{mdDown:"start"},display:"flex",position:{mdDown:"absolute"},bottom:0,left:"50%",transform:{mdDown:"translate(-50%, 0)"},zIndex:1}}):null])},{fields:be(()=>[ke($,{elements:e.elements,"label-custom-class":"srOnly",legendSr:!0,isPopover:!0},null,8,["elements"]),e.moreElements?.length?(Z(),Se(I,{key:0,ref_key:"popinFiltersRef",ref:o,popinId:"filters",popinTitle:T.$t("search.filters.popin.popinTitle"),popinTitleSr:!1,popinAriaLabel:T.$t("search.filters.popin.ariaLabel"),popinFull:!1,btnCloseTxt:T.$t("search.filters.popin.btnClose"),triggerId:"btn_mapFilters",triggerTitle:T.$t("search.filters.popin.btnTitle"),triggerTxt:T.$t("search.filters.popin.btnText"),modal:v(o)?.opened,"force-mount":!0,noPaddingDescription:!0},{trigger:be(()=>[Re("button",{"data-form-popover":"",class:de(v(me)({position:e.isInteractiveMap?{mdDown:"absolute"}:null,right:0,top:0,height:{mdDown:"4.5rem"},padding:{smDown:"1rem"},borderRadius:{mdDown:0}}))},[ke(A,{"aria-hidden":"true",class:de(v(ei)({fill:"black"}))},null,8,["class"]),Re("span",{class:de(v(me)({srOnly:{md:"false",base:"true"}}))},ht(T.$t("search.filters.popin.btnText")),3),ke(N,{value:v(b).toString()},null,8,["value"])],2)]),content:be(()=>[Re("form",{novalidate:"",onSubmit:x[0]||(x[0]=ti(()=>{},["prevent"]))},[ke($,{elements:v(y),tags:!0},null,8,["elements"]),bt(T.$slots,"cta",{},()=>[ke(O,{pending:e.pending,"is-dirty":v(s)?.isDirty,onOnSubmit:v(s)?.onSubmit,onOnReset:v(s)?.onReset},null,8,["pending","is-dirty","onOnSubmit","onOnReset"])])],32)]),_:3},8,["popinTitle","popinAriaLabel","btnCloseTxt","triggerTitle","triggerTxt","modal"])):Ne("",!0)]),cta:be(()=>[ke(O,{pending:e.pending,"is-dirty":v(s)?.isDirty,onOnSubmit:v(s)?.onSubmit,onOnReset:v(s)?.onReset},null,8,["pending","is-dirty","onOnSubmit","onOnReset"])]),_:3},8,["elements","more-elements","initial-elements","i18n","pending","settings","class"])}}}),JLe=Fe({__name:"MostViewedModal",props:{open:{type:Boolean},count:{}},emits:["close"],setup(e,{emit:t}){const n=t,r=()=>{n("close")};return(i,a)=>{const s=cr;return e.open?(Z(),Ce("div",{key:0,class:de([v(Dg)(),v(me)({position:"absolute",left:{base:0,md:"18rem",lg:"50%"},top:{base:"3rem",md:"calc({spacing.resultsCounter} + 3rem)"},transform:{lg:"translateX(-50%)"},zIndex:10,_print:{display:"none"}})]),"aria-labelledby":"popinModalTitle"},[Re("div",{class:de([v(Tr)({alignItems:"start",gap:"1rem"}),v(me)({bgColor:"white",borderRadius:"0.5em",width:{base:"90vw",md:"62.5rem"},padding:{base:"2rem",md:"4rem"},boxShadow:"0 0.4rem 1.5rem 0 rgba(0,0,0,0.15)"})])},[Re("h2",{id:"popinModalTitle",class:de(v(me)({fontSize:"h3",marginBottom:0}))},ht(i.$t("blocks.carteInteractive.mostViewed.title"))+" ! ",3),Re("p",null,ht(i.$t("blocks.carteInteractive.mostViewed.firstPart"))+" ("+ht(e.count)+"). "+ht(i.$t("blocks.carteInteractive.mostViewed.lastPart"))+" ! ",1),ke(s,{type:"button",link:{text:i.$t("common.validate")},variante:{classes:"button",bgColor:"white",size:"sm"},onClick:a[0]||(a[0]=o=>r())},null,8,["link"])],2)],2)):Ne("",!0)}}}
946),QLe=A7(JLe,[["__scopeId","data-v-16c00b5a"]]),eOe=Fe({__name:"ResultCounter",props:{count:{}},setup(e){return(t,n)=>(Z(),Ce("p",{"aria-atomic":"true",class:de([v(Qn)({gap:"0.5rem",justifyContent:{base:"start",md:"center"},alignItems:"end"}),v(me)({position:"absolute",left:0,lineHeight:1.4,transition:"{easings.global}",marginBottom:0,padding:{base:"1.5rem 2rem",md:"2.5rem 3rem 3.5rem 3rem"},width:{mdDown:"100%"},height:"{spacing.resultsCounter}",borderRadius:{md:"sm"},bgColor:"white",fontWeight:700,boxShadow:"0 0.4rem 0.5rem 0 rgba(0,0,0,0.1)",_before:{content:"''",position:"absolute",bottom:{base:"1rem",md:"2.5rem"},left:{base:"2rem",md:"3rem"},width:{base:"calc(100% - 4rem)",md:"calc(100% - 6rem)"},height:"0.1rem",bgColor:"mediumGray"},_after:{content:{mdDown:"''"},position:"absolute",bottom:0,left:"-0.5rem",width:"100vw",height:"100%",bgColor:"third",zIndex:-2}})])},[Re("span",{"aria-live":"polite",class:de(v(me)({fontSize:{base:"2rem",sm:"2.5rem",md:"3.5rem"},lineHeight:1,backgroundImage:"linear-gradient(to right, {colors.secondary}, {colors.primary})",color:{base:"transparent",_inverse:"black!"},webkitBackgroundClip:"text",backgroundClip:"text"}))},ht(e.count),3),_n(" "+ht(e.count>1?t.$t("search.filters.results"):t.$t("search.filters.result")),1)],2))}}),tOe=!0,nOe=Fe({__name:"InteractiveMap",props:{header:{},subheader:{},id:{},data:{}},setup(e){const t=e,{computeFieldFromSettings:n,requestGeo:r}=Ow();kd();const i=De(t.data?.initialForm??t.data?.form),a=De({...i.value}),s=De(),o=De(),f=De(),{$on:m,$off:y}=En(),b=De([]),T=De(0),x=De(!1),$=De(!1),A=De(),N=De(),O=xe(()=>f.value?.isClusterOpen),I=xe(()=>N.value?.opened),U=structuredClone(In(t.data.initialForm?.fields??[])).concat(structuredClone(In(t.data.initialForm?.moreFields??[]))),B=async K=>{x.value=!0;const{success:ne,documents:le,nbResults:pe,form:ae}=await r(t.data.urlMostViewed,K);x.value=!1,ne&&(b.value=In(le),T.value=In(le.length),$.value=!0)},q=async K=>{x.value=!0;const{success:ne,documents:le,nbResults:pe,form:ae}=await r(t.data.urlGeo,K);if(x.value=!1,!ne)return;b.value=In(le),T.value=In(pe),$.value=!1;const se=In(hp(K,!0));le.length>0&&(a.value.fields=a.value.fields.map((ce,ye)=>(["list","calendar_interval"].includes(ce.fieldType)&&typeof ce?.items<"u"&&typeof ae.fields?.[ye]?.items<"u"&&((["calendar_interval"].includes(ce.fieldType)||ce.name!==s.value?.name)&&!Object.keys(se).includes(ce.name)?ce.items=ae.fields[ye].items:ce.items=i.value.fields[ye].items),{...ce})),a.value.moreFields=a.value.moreFields.map((ce,ye)=>(["list","calendar_interval"].includes(ce.fieldType)&&typeof ce?.items<"u"&&typeof ae.moreFields?.[ye]?.items<"u"&&((["calendar_interval"].includes(ce.fieldType)||ce.name!==s.value?.name)&&!Object.keys(se).includes(ce.name)?ce.items=ae.moreFields[ye].items:ce.items=i.value.moreFields[ye].items),{...ce})))},Q=K=>{q(K.values)},ee=xe(()=>n(a.value?.fields||[])),Y=xe(()=>n(a.value?.moreFields||[])),z=xe(()=>hp(o.value?.values));Hn(()=>{m("filters:onFieldValueChanged",H),t.data.settings.resultstToDisplay==="mostViewed"&&nk(z.value)===0?B({}):q(z.value)}),oa(()=>{y("filters:onFieldValueChanged",H)});const H=async K=>{s.value=K};return(K,ne)=>{const le=WI,pe=XLe,ae=QLe,se=eOe,ce=cr,ye=yG,$e=I7,Be=JT,je=ZI;return Z(),Ce("div",{"data-interactive-map-container":"",class:de([v(Tr)({alignItems:"initial",gap:0}),v(me)({height:{base:"calc(100% - {spacing.header})",md:"100%"}})])},[Re("div",{class:de([v(Dg)(),v(Tr)({gap:0,alignItems:"initial"}),v(me)({paddingTop:{base:0,md:"2rem",lg:"2rem"}})])},[ke(le,{class:de(v(me)({paddingTop:{smDown:"1rem"},paddingLeft:{smOnly:"15rem"},paddingBottom:"1.5rem"}))},null,8,["class"]),ke(pe,{ref_key:"filtersRef",ref:o,elements:v(ee),"more-elements":v(Y),"initial-elements":v(U),settings:e.data.settings,pending:v(x),isInteractiveMap:!0,onOnSubmit:Q,class:de(v(me)({"& [data-buttons-container]":{"& button[type=submit]":{srOnly:{base:!0,_focus:!1},_focus:{padding:{base:"1rem!",md:"1.8rem 3.5rem!"}}}},_print:{display:"none"}}))},null,8,["elements","more-elements","initial-elements","settings","pending","class"])],2),Re("div",{ref_key:"interactiveMapRef",ref:A,class:de([v(x)?v(MU)():null,v(me)({position:"relative",flex:{base:"auto",_print:"none"},"& [role=dialog]":{animation:{base:v(I)?"listResultsSwipeInBase {durations.slow} {easings.easeIn} forwards":"listResultsSwipeOutBase {durations.slow} {easings.easeIn} forwards",md:v(I)?"listResultsSwipeInMd {durations.slow} {easings.easeIn} forwards":"listResultsSwipeOutMd {durations.slow} {easings.easeIn} forwards"},top:{base:"{spacing.resultsCounter}",md:0}
946,left:0,position:{base:"absolute !important",_print:"static !important"},width:{base:"100%",md:"54.5rem",_print:"auto"},height:{base:"calc(100% - {spacing.resultsCounter})",md:"100%",_print:"auto !important"},maxWidth:{mdDown:"100%"},"& .popinRecipe__description":{maxHeight:"100%"},"& .popinRecipe__close":{display:"flex",gap:"1rem",alignItems:"center",flexDir:{base:"column-reverse",md:"row"},minWidth:{md:"17rem"},fontSize:{base:"1.3em",md:"1.5em"},fontWeight:600,bgColor:{base:"black",_inverse:"white"},color:{base:"white",_inverse:"black"},padding:{base:"1rem",md:"1rem 1rem 1rem 2rem"},borderRadius:{base:"0 0 0 0.8em",md:"0 0.8em 0.8em 0"},textAlign:{base:"center",md:"left"},position:"absolute",left:{base:"auto",md:"100%"},right:{base:0,md:"auto"},top:{base:0,md:"50%"},bottom:{md:"auto"},transformOrigin:"top left",transform:{mdDown:"translateY(calc(-1 * {spacing.resultsCounter}))"},"& span":{maxWidth:"9.5rem"},"& svg":{minWidth:{base:"2rem!",sm:"3rem!"},height:{base:"2rem!",sm:"3rem!"},"& path":{transform:{mdDown:"rotate(-90deg) translateX(-100%)"}}},_hover:{bgColor:{base:"white",_inverse:"black"},boxShadow:"0 0 0 0.1rem {colors.black}",color:{base:"black",_inverse:"white"},"& svg *":{fill:{base:"black",_inverse:"white"}}},_focus:{bgColor:"white",boxShadow:"0 0 0 0.1rem {colors.black}",color:"black","& svg *":{fill:"black"}}}}})])},[v($)&&!v(I)&&!v(O)?(Z(),Se(ae,{key:0,open:v($),count:v(T),onClose:ne[0]||(ne[0]=at=>$.value=!1)},null,8,["open","count"])):Ne("",!0),ke(se,{count:v(T),class:de(v(me)({transform:v(O)||v(I)?{base:"none",md:"translateX(54.5rem)"}:"none",top:{base:v(I)?0:"calc(100% - {spacing.resultsCounter})",md:"1rem"},zIndex:v(O)?{base:0,md:9999}:v(I)?{base:1,md:9999}:99999,_print:{display:"none"}}))},null,8,["count","class"]),ke($e,{popinId:"listResults",popinTitle:K.$t("search.switchMap.popin.popinTitle"),popinTitleSr:!0,popinAriaLabel:K.$t("search.switchMap.popin.ariaLabel"),popinFull:!1,btnCloseTxt:K.$t("blocks.carteInteractive.resultsList.close"),triggerId:"btn_listResults",modal:!1,"force-mount":!0,"popin-parent-ref":v(A),noPaddingDescription:!0,ref_key:"listResultsRef",ref:N},{trigger:be(()=>[ke(ce,{type:"button",link:{text:K.$t("blocks.carteInteractive.resultsList.open")},picto:"next",showSr:!0,class:de([v(Qn)({gap:"1rem",flexDir:{base:"column-reverse",md:"row"}}),v(me)({zIndex:v(O)||v(I)?"initial":99999,fontSize:{base:"1.3em",md:"1.5em"},fontWeight:600,bgColor:{base:"black",_inverse:"white"},color:{base:"white",_inverse:"black"},padding:{base:"1rem",md:"1rem 1rem 1rem 2rem"},borderRadius:{base:"0.8em 0 0 0",md:"0 0.8em 0.8em 0"},textAlign:{base:"center",md:"left"},position:"absolute",left:{base:"auto",md:0},right:{base:0,md:"auto"},top:{base:"auto",md:"50%"},bottom:{base:0,md:"auto"},"& svg":{width:{base:"2rem!",sm:"3rem!"},height:{base:"2rem!",sm:"3rem!"},"& path":{transform:{mdDown:"rotate(-90deg) translateX(-100%)"}}},"& span":{maxWidth:"9.5rem",srOnly:{mdDown:!1}},_hover:{bgColor:{base:"white",_inverse:"black"},boxShadow:"0 0 0 0.1rem {colors.black}",color:{base:"black",_inverse:"white"},"& svg *":{fill:{base:"black",_inverse:"white"}}},_focus:{bgColor:"white",boxShadow:"0 0 0 0.1rem {colors.black}",color:"black","& svg *":{fill:"black"}}})])},null,8,["link","class"])]),content:be(()=>[ke(ye,{results:v(b),"fields-to-show":["cim_news","datetime","place","address","schedule","phone","mobilePhone","mail","website","city"]},null,8,["results"])]),_:1},8,["popinTitle","popinAriaLabel","btnCloseTxt","popin-parent-ref"]),ke(Be,{ref_key:"mapRef",ref:f,isInteractiveMap:tOe,settings:e.data,results:v(b),display:"map",class:de(v(me)({position:"absolute",top:0,left:0,width:"100%",height:"100%",_print:{display:"none"}}))},null,8,["settings","results","class"])],2),ke(je)],2)}}}),rK=Fe({__name:"T3CeCimsearchelasticDisplaysearch",props:{header:{},headerLayout:{},headerPosition:{},headerLink:{},subheader:{},uid:{},index:{},appearance:{},colPos:{},data:{default:{}},type:{},show_in_summary:{type:Boolean}},setup(e){const t=(n,r)=>{switch((r.custom_template||r.template).toLowerCase()){case"homebreves":return NTe;case"zoomsur":return IEe;case"homenews":return mG;case"homeevent":return gG;case"homekiosque":return zEe;case"lastupdate":return WEe;case"list":return qLe;case"profile":return jLe;case"interactivemap":return nOe}};return(n,r)=>e.data.settings?(Z(),Se(xr(t(e.appearance,e.data.settings)),{key:0,"data-elasticsearch-container":"",data:e.data,header:e.header,subheader:e.subheader,linkList:e.data?.linkList?.[0]},null,8,["data","header","subheader","linkList"])):Ne("",!0)}}),D7=Fe({__name:"FieldButtons",props:{colPos:{},result:{},header:{},headerLayout:{},uid:{},config:{}},setup(e){const t=e,n=xe(()=>t.result.map(r=>r.links[0])||[]);return(r,i)=>{const a=cr,s=fi;return v(n).length?(Z(),Se(s,{key:0,header:e.header,"header-layout":e.headerLayout,uid:e.uid,class:de(v(me)({_print:{display:"none !important"}}))},{content:be(()=>[v(n).length>1?(Z(),Ce("ul",{key:0,class:de(v(_u)({rowGap:{base:"1rem",sm:"{spacing.gutter}"}}))},[(Z(!0),Ce(Ct,null,ln(v(n),o=>(Z(),Ce("li",{class:de(v(me)({fontSize:"1em"}))},[ke(a,{link:o,variante:{classes:"button",bgColor:"white",size:"sm"}},null,8,["link"])],2))),256))],2)):(Z(),Se(a,{key:1,link:v(n)?.[0],variante:{classes:"button",bgColor:"white",size:"sm"}},null,8,["link"]))]),_:1},8,["header","header-layout","uid","class"])):Ne("",!0)}}}),iK=Fe({__name:"T3CeMaskBlocButtons",props:{header:{},headerLayout:{},headerPosition:{},headerLink:{},subheader:{},uid:{},index:{},appearance:{},colPos:{},buttons:{default:()=>[]},show_in_summary:{type:Boolean}},setup(e){return(t,n)=>{const r=D7;return Z(),Se(r,{header:e.header,headerLayout:e.headerLayout,result:e.buttons,colPos:e.colPos,uid:e.uid},null,8,["header","headerLayout","result","colPos","uid"])}}}),rOe=/\d/,iOe=["-","_","/","."];function aOe(e=""){if(!rOe.test(e))return e!==e.toLowerCase()}function oOe(e,t){const n=iOe,r=[];if(typeof e!="string")return r;let i="",a,s;for(const o of e){const f=n.includes(o);if(f===!0){r.push(i),i="",a=void 0;continue}const m=aOe(o);if(s===!1){if(a===!1&&m===!0){r.push(i),i=o,a=m;continue}if(a===!0&&m===!1&&i.length>1){const y=i.at(-1);
946r.push(i.slice(0,Math.max(0,i.length-1))),i=y+o,a=m;continue}}i+=o,a=m,s=f}return r.push(i),r}function sOe(e){return e?e[0].toUpperCase()+e.slice(1):""}function lOe(e,t){return(Array.isArray(e)?e:oOe(e)).map(n=>sOe(n)).join("")}const aK=({type:e,prefix:t,mode:n}={type:"Default",prefix:"T3Ce",mode:"Lazy"})=>{const r=(n||"Lazy")+(t||"T3Ce")+lOe(e||"default"),i=xr(r);return typeof i=="string"?xr(`${t}Default`):i},tBe=(e="default")=>aK({type:e,prefix:"T3Bl",mode:""}),oK=(e="default")=>aK({type:e,prefix:"T3Ce",mode:""}),TM=Fe({__name:"T3RendererMultiCols",props:{content:{default:()=>[]},frame:{type:Boolean,default:!0},class:{}},setup(e){const t=(n,r)=>{const{id:i,type:a,appearance:s,content:o,colPos:f}=n;let m;switch(a){case"mask_bloc_contact":m=ZW;break;case"mask_bloc_diaporama_videos":m=Va("T3CeMaskBlocDiaporamaVideos");break;case"mask_bloc_video":m=KW;break;case"cimsearchelastic_displaysearch":m=rK;break;case"mask_bloc_phototeque":m=Va("T3CeMaskBlocPhototeque");break;case"mask_bloc_buttons":m=iK;break;case"textpic":m=AI;break;default:m=oK(a);break}return Yn(m,{uid:i,appearance:s,index:r,colPos:f,type:a,content_color:n.content_color,show_in_summary:n.show_in_summary,id:s.frameClass==="none"?`c${i}`:null,...o})};return(n,r)=>(Z(!0),Ce(Ct,null,ln(e.content,(i,a)=>(Z(),Se(xr(t(i,a)),{key:a,class:de(e.class),id:`c${i.id}`},null,8,["class","id"]))),128))}}),uOe=Fe({__name:"T3CeCimeos2cols",props:{header:{},headerLayout:{},headerPosition:{},headerLink:{},subheader:{},uid:{},index:{},appearance:{},colPos:{},left:{},right:{},showInSummary:{type:Boolean},type:{}},setup(e){return(t,n)=>{const r=fi;return Z(),Se(r,{header:e.header,"header-layout":e.headerLayout,titleInside:!1,uid:e.uid,showInSummary:e.showInSummary,type:e.type},{content:be(()=>[Re("div",{class:de(v(Mi)({columns:{base:1,md:2},columnGap:"6.5rem !important",rowGap:{base:0,md:"1.5rem"}}))},[Re("div",null,[e.left?(Z(),Se(TM,{key:0,content:e.left},null,8,["content"])):Ne("",!0)]),Re("div",null,[e.right?(Z(),Se(TM,{key:0,content:e.right},null,8,["content"])):Ne("",!0)])],2)]),_:1},8,["header","header-layout","uid","showInSummary","type"])}}}),cOe=Fe({__name:"T3CeCimeos3cols",props:{header:{},headerLayout:{},headerPosition:{},headerLink:{},subheader:{},uid:{},index:{},appearance:{},colPos:{},left:{},middle:{},right:{},showInSummary:{type:Boolean},type:{}},setup(e){return(t,n)=>{const r=TM,i=fi;return Z(),Se(i,{header:e.header,"header-layout":e.headerLayout,titleInside:!1,uid:e.uid,showInSummary:e.showInSummary,type:e.type},{content:be(()=>[Re("div",{class:de(v(Mi)({columns:{lg:3,md:2},columnGap:{base:"3.5rem !important",lg:"6.5rem !important"},rowGap:{base:0,md:"1.5rem"}}))},[Re("div",null,[e.left?(Z(),Se(r,{key:0,content:e.left},null,8,["content"])):Ne("",!0)]),Re("div",null,[e.middle?(Z(),Se(r,{key:0,content:e.middle},null,8,["content"])):Ne("",!0)]),Re("div",null,[e.right?(Z(),Se(r,{key:0,content:e.right},null,8,["content"])):Ne("",!0)])],2)]),_:1},8,["header","header-layout","uid","showInSummary","type"])}}}),dOe=Fe({__name:"T3CeMaskBlocAccordion",props:{header:{},headerLayout:{},headerPosition:{},headerLink:{},subheader:{},uid:{},index:{},appearance:{},colPos:{},first_element_opened:{type:Boolean,default:!1},show_in_summary:{type:Boolean},items:{}},setup(e){return(t,n)=>{const r=YT;return Z(),Se(r,{header:e.header,headerLayout:e.headerLayout,result:e.items,colPos:e.colPos,first_element_opened:e.first_element_opened,uid:e.uid,show_in_summary:e.show_in_summary},null,8,["header","headerLayout","result","colPos","first_element_opened","uid","show_in_summary"])}}}),fOe=Fe({__name:"T3CeMaskBlocAudioPlayer",props:{header:{},headerLayout:{},headerPosition:{},headerLink:{},subheader:{},uid:{},index:{},appearance:{},colPos:{},audio_files:{},folder_audio_files:{}},setup(e){return(t,n)=>{const r=UW,i=fi;return Z(),Se(i,{header:e.header,"header-layout":e.headerLayout,class:de(v(me)({_print:{display:"none !important"}}))},{content:be(()=>[ke(r,{audio_files:e.audio_files,folder_audio_files:e.folder_audio_files,isBlocAudio:!0},null,8,["audio_files","folder_audio_files"])]),_:1},8,["header","header-layout","class"])}}}),hOe=Fe({__name:"T3CeMaskBlocDiaporamaPictures",props:{header:{},headerLayout:{},headerPosition:{},headerLink:{},subheader:{},uid:{},index:{},appearance:{},colPos:{},items:{},itemsFolder:{}},setup(e){return(t,n)=>{const r=IG;return Z(),Se(r,{header:e.header,headerLayout:e.headerLayout,colPos:e.colPos,uid:e.uid,result:e.itemsFolder.length?e.itemsFolder:e.items},null,8,["header","headerLayout","colPos","uid","result"])}}}),pOe=Fe({__name:"T3CeMaskBlocDownloads",props:{header:{},headerLayout:{},headerPosition:{},headerLink:{},subheader:{},uid:{},index:{},appearance:{},show_images:{type:Boolean},colPos:{},items:{}},setup(e){return(t,n)=>{const r=DG;return Z(),Se(r,{header:e.header,headerLayout:e.headerLayout,result:e.items,colPos:e.colPos,show_images:e.show_images,uid:e.uid},null,8,["header","headerLayout","result","colPos","show_images","uid"])}}}),mOe=Fe({__name:"FieldsElus",props:{colPos:{},maire:{type:Boolean},header:{},headerLayout:{},related:{},links:{default:()=>[]},isRelated:{type:Boolean,default:!1},uid:{}},setup(e){return(t,n)=>{const r=Cu,i=fi;return e.related?.length>0?(Z(),Se(i,{key:0,header:e.header,"header-layout":e.headerLayout,titleInside:!1,uid:e.uid,class:de([v(me)({marginBottom:{base:"5rem !important",md:"11.5rem !important"},_print:{marginBottom:"0 !important"},"& [data-bloc-content] svg":{display:{base:"none",sm:"block"}},"& h2":{marginBottom:{base:"2rem",sm:"3.5rem !important"}}})])},{content:be(()=>[Re("div",{class:de([e.maire?null:v(Mi)({gridTemplateColumns:"repeat(auto-fill, minmax(23rem, 1fr))",columnGap:{base:"2rem",sm:"5rem"},rowGap:"5rem"})])},[(Z(!0),Ce(Ct,null,ln(e.related,a=>(Z(),Se(r,{result:a,key:a.id,options:{noLink:!0,showcategories:!1},class:de([e.maire?v(me)({"& [data-list-item-content]":{display:"grid",gridTemplateColumns:{base:"1fr",sm:"1fr 1fr"},gap:{base:"1rem!",sm:"3rem!"}},"& [data-list-item-title]":{fontSize:"h2",lineHeight:1},"& [data-txt]":{position:"relative",flexDir:"column",gap:"1.2rem",flexWrap:"nowrap",margin:"auto 0",marginLeft:{lg:"3rem"},padding:{base:"1rem 0 4rem 0",sm:"4rem 0"}
946,_before:{content:{base:"''",_print:"none"},position:"absolute",bottom:0,left:0,width:"100%",height:".3rem",bg:{base:"linear-gradient(to right, {colors.secondary}, {colors.primary})",_inverse:"black"}}},"& [data-field-type=function]":{fontSize:"h3 !important"},"& [data-img]":{order:-1}}):v(me)({_print:{maxWidth:"none"},"& [data-list-item-title]":{fontSize:"h3"},"& [data-field-type=function]":{fontSize:"h4"},"& [data-txt]":{gap:"1.2rem"}}),v(me)({width:"100%","& [data-list-item-content]":{flexDir:e.maire?{base:"column-reverse",sm:"row-reverse"}:"column-reverse",alignItems:e.maire?"center":"unset",gap:e.maire?0:"2rem"},"& [data-txt]":{lineHeight:1.2,"& [data-list-category]":{display:"none"}},"& [data-img]":{aspectRatio:e.maire?"460/440":"285/340",width:"100%",alignSelf:"initial"},"& [data-field-type=function]":{fontWeight:700},"& [data-field-type=description]":{},"& [data-field-type]":{display:"-webkit-box",boxOrient:"vertical",textOverflow:"ellipsis",overflow:"hidden",webkitBackgroundClip:"text","& p, &:is(p)":{fontSize:"sm"}},"& [data-field-type=adresse]":{color:"primary"}})])},null,8,["result","class"]))),128))],2)]),_:1},8,["header","header-layout","uid","class"])):Ne("",!0)}}}),gOe=Fe({__name:"T3CeMaskBlocElected",props:{header:{},headerLayout:{},headerPosition:{},headerLink:{},subheader:{},uid:{},index:{},appearance:{},colPos:{},maire:{type:Boolean,default:!1},related:{default:()=>[]},links:{default:()=>[]}},setup(e){return(t,n)=>{const r=mOe;return Z(),Se(r,{colPos:e.colPos,maire:e.maire,related:e.related,header:e.header,headerLayout:e.headerLayout,links:e.links,uid:e.uid},null,8,["colPos","maire","related","header","headerLayout","links","uid"])}}}),sK=Fe({__name:"T3CeHtml",props:{header:{},headerLayout:{},headerPosition:{},headerLink:{},subheader:{},uid:{},index:{},appearance:{},colPos:{},bodytext:{},gallery:{}},setup(e){const t=vr();return t.siteBuilderInfos,(n,r)=>{const i=d1;return Z(),Ce("div",{class:de(["t3-ce-html",v(Wa)(),v(Md)(),v(me)({overflow:"hidden",marginTop:"{spacing.gutter}",marginBottom:"{spacing.gutter}",position:"relative"})])},[bt(n.$slots,"default"),ke(i,{content:e.bodytext,uid:e.uid},null,8,["content","uid"])],2)}}}),yOe=Fe({__name:"T3CeMaskBlocExternalWidget",props:{header:{},headerLayout:{},headerPosition:{},headerLink:{},subheader:{},uid:{},index:{},appearance:{},colPos:{},widget_content:{},items:{}},setup(e){const t=e,n=[];return t.items.length>0&&t.items.forEach(r=>{n.push({src:r.script,type:"text/javascript",async:!0})}),n.length>0&&fu({script:n}),(r,i)=>{const a=sK;return Z(),Se(a,{bodytext:e.widget_content},null,8,["bodytext"])}}}),vOe=Fe({__name:"T3CeMaskBlocFaq",props:{header:{},headerLayout:{},headerPosition:{},headerLink:{},subheader:{},uid:{},index:{},appearance:{},colPos:{},faqs_category:{},show_in_summary:{type:Boolean},faqs_select:{}},setup(e){return(t,n)=>{const r=YT;return Z(),Se(r,{header:e.header,result:e.faqs_category?.length>0?e.faqs_category:e.faqs_select,colPos:e.colPos,uid:e.uid,show_in_summary:e.show_in_summary},null,8,["header","result","colPos","uid","show_in_summary"])}}}),_Oe=Fe({__name:"T3CeMaskBlocGeolocation",props:{header:{},headerLayout:{},headerPosition:{},headerLink:{},subheader:{},uid:{},index:{},appearance:{},colPos:{},directory:{default:void 0}},setup(e){return(t,n)=>{const r=ew;return Z(),Se(r,{header:e.header,result:e.directory,colPos:e.colPos,"header-layout":e.headerLayout,uid:e.uid},null,8,["header","result","colPos","header-layout","uid"])}}}),lK=Fe({__name:"FieldHighlightContent",props:{colPos:{},result:{},header:{},headerLayout:{},uid:{},images:{},display_template:{},type:{},isComarquage:{type:Boolean,default:!1}},setup(e){const{isAmiral:t}=zr(),n=e,i=qM()?.icon,a=xe(()=>i?i.endsWith(".svg")?`url('${i}')`:!1:"none"),{t:s}=Ii(),o=xe(()=>n.header?n.header:s("blocks.highlightContent.title")),f=xe(()=>{switch(n.type){case"Exemple":return"gray";case"Rappel":return"white";case"OuSAdresser":return"white";default:return t()?"white":"gray"}});return(m,y)=>{const b=d1,T=CW,x=GI,$=fi;return Z(),Se($,{template:e.display_template,header:v(o),"header-layout":e.headerLayout,uid:e.uid,bgColor:v(f),boxShadow:!!v(t)(),titleInside:!0,isComarquage:e.isComarquage,class:de([v(Wa)(),v(Md)(),v(Tw)({picto:"url(~/assets/img/svg/contenus_edito/quote.svg)"}),v(me)({"& [data-bloc-content]":{position:"relative",padding:{base:"2rem",sm:"3.5rem",lg:"5rem"},borderRadius:"1.5rem",marginLeft:v(t)()?0:{sm:"2rem",lg:"3.5rem"},marginTop:v(t)()?0:{sm:"2rem",lg:"6rem"},"& h2":{paddingBottom:0,_before:{display:"none"}},"& > div:first-child":{gap:{base:"1rem",sm:"2rem"}}
946,_before:{content:{base:"''",_print:"none"},position:"absolute",width:"100%",height:"10rem",bottom:"-.4rem",left:0,borderRadius:"1.5rem",bg:{base:"linear-gradient(to left, {colors.primary}, {colors.secondary})",_inverse:"yellow"},zIndex:-1},_inverse:{border:"{borders.sm} {colors.black}"}},_print:{"& figure, & img":{display:"none"},"& *":{color:"{colors.black}"}}})])},Tg({content:be(()=>[bt(m.$slots,"content",{},()=>[ke(T,{gallery:{position:{horizontal:"left",noWrap:!1,vertical:"intext"},count:{columns:1,files:e.images?.length,rows:1},border:{enabled:!1,padding:0,width:2},rows:{1:{columns:{1:e.images?.[0]}}}}},{default:be(()=>[e.result?(Z(),Se(b,{key:0,content:e.result},null,8,["content"])):Ne("",!0)]),_:1},8,["gallery"])]),v(t)()?Ne("",!0):(Z(),Se(x,{key:0,"aria-hidden":"true",class:de([v(ei)({fill:{base:"{colors.black}/10",_inverse:"black"},size:{base:"50.5rem !",lg:"70.5rem !"},height:"12.5rem"}),v(me)({display:{smDown:"none",_print:"none"},position:"absolute",top:"-3.5rem",left:{base:"-2rem",lg:"-3.5rem"},zIndex:-1})])},null,8,["class"]))]),_:2},[v(a)?{name:"picto",fn:be(()=>[Re("span",{class:de(v(me)({width:{base:"4.5rem",md:"6rem"},height:{base:"4.5rem",md:"6rem"},minHeight:{base:"4.5rem",md:"6rem"},minWidth:{base:"4.5rem",md:"6rem"},top:0,left:0,bg:{base:"linear-gradient(to bottom, {colors.primary}, {colors.secondary})",_inverse:"yellow"}})),style:fo({maskImage:v(a),WebkitMaskImage:v(a),maskRepeat:"no-repeat",maskSize:"contain"})},null,6)]),key:"0"}:void 0]),1032,["template","header","header-layout","uid","bgColor","boxShadow","isComarquage","class"])}}}),bOe=Fe({__name:"T3CeMaskBlocHighlightContent",props:{header:{},headerLayout:{},headerPosition:{},headerLink:{},subheader:{},uid:{},index:{},appearance:{},colPos:{},description:{},images:{},display_template:{},show_in_summary:{type:Boolean}},setup(e){const{t}=Ii();return(n,r)=>{const i=lK;return Z(),Se(i,{header:e.header,headerLayout:e.headerLayout,result:e.description,images:e.images,colPos:e.colPos,display_template:e.display_template,uid:e.uid},null,8,["header","headerLayout","result","images","colPos","display_template","uid"])}}}),xOe=Fe({__name:"T3CeMaskBlocKeyNumbers",props:{header:{},headerLayout:{},headerPosition:{},headerLink:{},subheader:{},uid:{},index:{},appearance:{},display_mode:{},colPos:{},items:{}},setup(e){const t=vr();return t.siteBuilderInfos,(n,r)=>{const i=ST,a=fi;return e.items?(Z(),Se(a,{key:0,header:e.header,"header-layout":e.headerLayout,titleInside:!1,uid:e.uid},{content:be(()=>[Re("ul",{class:de([v(Mi)({columns:{base:1,sm:e.colPos===0?2:1},columnGap:"6rem",rowGap:"4rem"})])},[(Z(!0),Ce(Ct,null,ln(e.items,s=>(Z(),Ce("li",{key:s,class:de([v(Tr)({gap:"1rem",alignItems:"start"}),v(me)({fontSize:"1em",position:"relative",paddingBottom:"2rem",borderBottom:{base:"{borders.md} {colors.lightGray}",_inverse:"{borders.sm} {colors.black}"},_print:{marginBottom:"1.5rem",color:"{colors.black}",display:"block"}})])},[Re("span",{class:de([v(me)({fontSize:{base:"3em",md:"4em",lg:"4.8em"},lineHeight:1,fontWeight:800,position:"relative",zIndex:0,marginBottom:0,_print:{display:"block"}})])},[ke(i,{text:s.number,class:de(v(me)({bgImage:"linear-gradient(270deg, var(--cim_primary_color) 82.35%, var(--cim_secondary_color) 100%)",color:{base:"transparent",_inverse:"yellow"},webkitBackgroundClip:"text",backgroundClip:"text","& span":{color:"{colors.black}",fontSize:"2.2rem",fontWeight:700,fontFamily:"secondary",position:"relative"}}))},null,8,["text","class"])],2),s.description?(Z(),Ce("span",{key:0,class:de([v(me)({fontSize:"{fontSizes.p}"})])},ht(s.description),3)):Ne("",!0)],2))),128))],2)]),_:1},8,["header","header-layout","uid"])):Ne("",!0)}}}),wOe={key:0},SOe={key:0},COe={key:1},TOe=Fe({__name:"T3CeMaskBlocQuote",props:{header:{},headerLayout:{},headerPosition:{},headerLink:{},subheader:{},uid:{},index:{},appearance:{},colPos:{},quote:{},author:{},function:{},show_in_summary:{type:Boolean}},setup(e){const{isAmiral:t}=zr();return(n,r)=>{const i=GI,a=fi;return Z(),Se(a,{header:e.header,"header-layout":e.headerLayout,titleInside:!1,bgColor:"white",boxShadow:!!v(t)(),uid:e.uid,class:de([v(Wa)(),v(Md)(),v(Tw)({picto:"url(~/assets/img/svg/contenus_edito/quote.svg)"}),v(me)({"& [data-bloc-content]":{marginTop:{base:"3rem",sm:"6rem",_print:0},marginLeft:{base:"1.5rem",sm:"3rem"},borderRadius:"1.5rem",padding:0,marginBottom:v(t)()?null:{mdDown:"4.5rem"}
946,_before:{content:{base:"''",_print:"none"},position:"absolute",width:{base:"5rem",sm:"10rem"},height:{base:"6rem",sm:"11rem"},top:{base:"-1.5rem",sm:"-3rem"},left:{base:"-1.5rem",sm:"-3rem"},borderRadius:"0 1.5rem 1.5rem 1.5rem",bg:{base:"linear-gradient(to left, {colors.primary}, {colors.secondary})",_inverse:"yellow"},zIndex:-1},_inverse:{border:"{borders.sm} {colors.black}"}}})])},{content:be(()=>[Re("blockquote",{class:de(v(me)({position:"relative",padding:{base:"5rem 2rem 2rem 2rem !",sm:"8rem 3rem 2.5rem 3rem !",md:"10rem 5rem 4.5rem 5rem !",_print:"1.5rem!"},marginTop:"0 !",_before:{left:{base:"1.5rem !",sm:"3rem !",md:"5rem !"},top:{base:"1.5rem !",sm:"2.5rem !",md:"4.5rem !"},width:{base:"4rem!",sm:"6rem!"},height:{base:"3rem!",sm:"4rem!"}}}))},[e.quote?(Z(),Ce("p",wOe,ht(e.quote),1)):Ne("",!0),Re("p",{class:de(v(me)({fontWeight:700}))},[e.author?(Z(),Ce("span",SOe,ht(e.author),1)):Ne("",!0),e.function?(Z(),Ce("span",COe,ht(e.author?", ":"")+ht(e.function),1)):Ne("",!0)],2)],2),v(t)()?Ne("",!0):(Z(),Se(i,{key:0,"aria-hidden":"true",class:de([v(ei)({fill:"{colors.black}/10",size:{base:"50.5rem !",lg:"70.5rem !"},height:"12.5rem"}),v(me)({display:{_print:"none"},position:"absolute",bottom:{base:"-3.5rem",lg:"-2rem"},left:"-3rem",zIndex:-1})])},null,8,["class"]))]),_:1},8,["header","header-layout","boxShadow","uid","class"])}}}),kOe=Fe({__name:"T3CeMaskBlocSeeAlso",props:{header:{},headerLayout:{},headerPosition:{},headerLink:{},subheader:{},uid:{},index:{},appearance:{},colPos:{},display_mode:{},links:{}},setup(e){return(t,n)=>{const r=ek;return Z(),Se(r,{header:e.header,headerLayout:e.headerLayout,colPos:e.colPos,display_mode:e.display_mode,result:e.links},null,8,["header","headerLayout","colPos","display_mode","result"])}}}),EOe=Fe({__name:"T3CeMaskBlocTestIntegration",setup(e){const t=["white","black","primary","secondary","third"],n=["xxs","xs","xsm","sm","md","lg","xl"];return(r,i)=>{const a=cr,s=Dw;return Z(),Ce(Ct,null,[i[1]||(i[1]=Re("h2",null,"Trame Boutons",-1)),i[2]||(i[2]=Re("h3",null,"button",-1)),Re("div",{class:de(v(Mi)({columns:2}))},[ke(s,{class:de(v(me)({bg:"{colors.black}"}))},{default:be(()=>[(Z(),Ce(Ct,null,ln(t,o=>ke(a,{link:{href:"#",text:`Btn fond ${o}`},variante:{classes:"button",bgColor:o}},null,8,["link","variante"])),64))]),_:1},8,["class"]),ke(s,null,{default:be(()=>[(Z(),Ce(Ct,null,ln(t,o=>ke(a,{link:{href:"#",text:`Btn fond ${o}`},variante:{classes:"button",bgColor:o}},null,8,["link","variante"])),64))]),_:1})],2),Re("h4",{class:de(v(me)({marginTop:"2rem"}))},"align",2),Re("div",null,[ke(s,null,{default:be(()=>[ke(a,{link:{href:"#",text:"Btn à gauche"},type:"button",variante:{classes:"button",bgColor:"primary"}})]),_:1}),ke(s,{align:"center"},{default:be(()=>[ke(a,{link:{href:"#",text:"Btn au centre"},type:"button",variante:{classes:"button",bgColor:"primary"}})]),_:1}),ke(s,{align:"right"},{default:be(()=>[ke(a,{link:{href:"#",text:"Btn aligné à droite"},type:"button",variante:{classes:"button",bgColor:"primary"}})]),_:1})]),Re("h4",{class:de(v(me)({marginTop:"2rem"}))},"picto",2),Re("div",{class:de(v(Mi)({columns:2}))},[ke(s,{class:de(v(me)({bg:"{colors.black}"}))},{default:be(()=>[(Z(),Ce(Ct,null,ln(t,o=>ke(a,{link:{href:"#",text:`Btn fond ${o}`},variante:{classes:"button",bgColor:o,pictoPlacement:"left"},picto:"close"},null,8,["link","variante"])),64))]),_:1},8,["class"]),ke(s,null,{default:be(()=>[(Z(),Ce(Ct,null,ln(t,o=>ke(a,{link:{href:"#",text:`Btn fond ${o}`},variante:{classes:"button",bgColor:o,pictoPlacement:"right"},picto:"close"},null,8,["link","variante"])),64))]),_:1})],2),Re("hr",{class:de(v(me)({margin:"5rem 0"}))},null,2),i[3]||(i[3]=Re("h3",null,"btnGradient",-1)),Re("div",{class:de(v(Mi)({columns:2}))},[ke(s,{class:de(v(me)({bg:"{colors.black}"}))},{default:be(()=>[(Z(),Ce(Ct,null,ln(["white","third"],o=>ke(a,{link:{href:"#",text:`Btn fond ${o}`},variante:{classes:"btnGradient",bgColor:o}},null,8,["link","variante"])),64))]),_:1},8,["class"]),ke(s,null,{default:be(()=>[(Z(),Ce(Ct,null,ln(["white","third"],o=>ke(a,{link:{href:"#",text:`Btn fond ${o}`},variante:{classes:"btnGradient",bgColor:o}},null,8,["link","variante"])),64))]),_:1})],2),Re("hr",{class:de(v(me)({margin:"5rem 0"}))},null,2),i[4]||(i[4]=Re("h3",null,"btnUnderlined",-1)),Re("div",{class:de(v(Mi)({columns:2}))},[ke(s,{align:"center",class:de(v(me)({bg:"{colors.black}",color:"white"}))},{default:be(()=>[ke(a,{link:{href:"#",text:"Btn underlined"},variante:{classes:"btnUnderlined"}})]),_:1},8,["class"]),ke(s,{align:"center"},{default:be(()=>[ke(a,{link:{href:"#",text:"Btn underlined"},variante:{classes:"btnUnderlined"}})]),_:1})],2),Re("hr",{class:de(v(me)({margin:"5rem 0"}))},null,2),i[5]||(i[5]=Re("h3",null,"btnTxt",-1)),Re("div",{class:de(v(Mi)({columns:2}))},[ke(s,{class:de(v(me)({bg:"{colors.black}"}))},{default:be(()=>[(Z(),Ce(Ct,null,ln(["white","black","primary","secondary"],o=>ke(a,{link:{href:"#",text:`Btn Txt fond ${o}`},variante:{classes:"btnTxt",bgColor:o}},null,8,["link","variante"])),64))]),_:1},8,["class"]),ke(s,null,{default:be(()=>[(Z(),Ce(Ct,null,ln(["white","black","primary","secondary"],o=>ke(a,{link:{href:"#",text:`Btn Txt fond ${o}`},variante:{classes:"btnTxt",bgColor:o}},null,8,["link","variante"])),64))]),_:1})],2),Re("h4",{class:de(v(me)({marginTop:"2rem"}))},"picto",2),Re("div",{class:de(v(Mi)({columns:2}))},[ke(s,{class:de(v(me)({bg:"{colors.black}"}))},{default:be(()=>[(Z(),Ce(Ct,null,ln(["white","black","primary","secondary"],o=>ke(a,{link:{href:"#",text:`Btn Txt fond ${o}`},variante:{classes:"btnTxt",bgColor:o,pictoPlacement:"left"},picto:"close"},null,8,["link","variante"])),64))]),_:1},8,["class"]),ke(s,null,{default:be(()=>[(Z(),Ce(Ct,null,ln(["white","black","primary","secondary"],o=>ke(a,{link:{href:"#",text:`Btn Txt fond ${o}`},variante:{classes:"btnTxt",bgColor:o,pictoPlacement:"right"},picto:"close"},null,8,["link","variante"])),64))]),_:1})],2),Re("hr",{class:de(v(me)({margin:"5rem 0"}))},null,2),i[6]||(i[6]=Re("h3",null,"pictoRound",-1)),Re("div",{class:de(v(Mi)({columns:2}))},[ke(s,{class:de(v(me)({bg:"{colors.black}",color:"{colors.white}"}))},{default:be(()=>[(Z(),Ce(Ct,null,ln(["white","transparentWhite","black","primary","transparentPrimary","gradient"],o=>ke(a,{link:{href:"#",text:`pictoColor ${o}`},variante:{classes:"pictoRound",pictoColor:o,pictoSize:"sm",pictoPlacement:"right"},picto:"close"},null,8,["link","variante"])),64))]),_:1},8,["class"]),ke(s,null,{default:be(()=>[(Z(),Ce(Ct,null,ln(["white","transparentWhite","black","primary","transparentPrimary","gradient"],o=>ke(a,{link:{href:"#",text:`pictoColor ${o}`},variante:{classes:"pictoRound",pictoColor:o,pictoSize:"md",pictoPlacement:"left"},picto:"close"},null,8,["link","variante"])),64))]),_:1}),Re("div",null,[i[0]||(i[0]=Re("h4",null,"ShowSr true",-1)),ke(s,{class:de(v(me)({bg:"{colors.black}"}))},{default:be(()=>[(Z(),Ce(Ct,null,ln(["white","transparentWhite","black","primary","transparentPrimary","gradient"],o=>ke(a,{link:{href:"#",text:`pictoColor ${o}`},variante:{classes:"pictoRound",pictoColor:o,pictoSize:"md"},showSr:!0,picto:"close"},null,8,["link","variante"])),64))]),_:1},8,["class"])]),ke(s,null,{default:be(()=>[(Z(),Ce(Ct,null,ln(["white","transparentWhite","black","primary","transparentPrimary","gradient"],o=>ke(a,{link:{href:"#",text:`pictoColor ${o}`},variante:{classes:"pictoRound",pictoColor:o,pictoSize:"md"},showSr:!0,picto:"close"},null,8,["link","variante"])),64))]),_:1}),ke(s,null,{default:be(()=>[(Z(),Ce(Ct,null,ln(n,o=>ke(a,{link:{href:"#",text:`${o}`},variante:{classes:"pictoRound",pictoColor:"primary",pictoSize:o,pictoPlacement:"right"},picto:"close"},null,8,["link","variante"])),64))]),_:1})],2),i[7]||(i[7]=Re("h3",null,"btnReadMore",-1)),Re("div",{class:de(v(Mi)({columns:2}))},[ke(s,null,{default:be(()=>[ke(a,{link:{href:"#",text:"btnReadMore"},variante:{classes:"btnReadMore",pictoSize:"xxs",pictoPlacement:"left"},picto:"close"})]),_:1})],2)],64)}}}),POe=Fe({__name:"T3CeMaskBlocUsefulLinks",props:{header:{},headerLayout:{},headerPosition:{},headerLink:{},subheader:{},uid:{},index:{},appearance:{},colPos:{},items:{}},setup(e){return(t,n)=>{const r=QT;return Z(),Se(r,{result:e.items,colPos:e.colPos,header:e.header,"header-layout":e.headerLayout,uid:e.uid},null,8,["result","colPos","header","header-layout","uid"])}}}),$Oe=Fe({__name:"T3CeMaskBlocTimeline",props:{header:{},headerLayout:{},headerPosition:{},headerLink:{},subheader:{},uid:{},index:{},appearance:{},colPos:{},steps:{},show_in_summary:{type:Boolean}},setup(e){const t=Rf();return(n,r)=>{const i=d1,a=Nf,s=Vf,o=fi;return e.steps?.length>0?(Z(),Se(o,{key:0,header:e.header,"header-layout":e.headerLayout,headerId:`bloc_frise_${v(t)}
946`,titleInside:!1,uid:e.uid},{content:be(()=>[Re("div",{class:de(v(me)({position:"relative","& ol":{marginLeft:0}}))},[ke(s,{slides:e.steps,blocTitleId:`bloc_frise_${v(t)}`,SliderButtonVariante:{classes:"pictoRound",pictoColor:"transparentWhite",pictoSize:"xl"},wrapperTag:"ol",slideTag:"li",breakpoints:{320:{slidesPerView:1},450:{slidesPerView:1},640:{slidesPerView:2},800:{slidesPerView:2},1024:{slidesPerView:2}},class:de(v(me)({"& .swiper":{_before:{content:"''",position:"absolute",top:"17rem",left:0,width:"100%",height:"0.2rem",bgColor:"{colors.black}",_print:{display:"none"}}},"& .swiper-wrapper":{height:"100% !important"},"& [data-navigation]":{top:0},"& [data-button-slider=next]":{transform:{base:"translate(calc(50% - 0.3rem), calc(-50% + 0.6rem)) !important",sm:"translate(calc(50% - 0.3rem), calc(-50% + 0.1rem)) !important",md:"translate(calc(50% - 0.3rem), calc(-50% - 1.7rem)) !important"}},"& [data-button-slider=prev]":{transform:{base:"translate(calc(-50% + 0.3rem), calc(-50% + 0.6rem)) !important",sm:"translate(calc(-50% + 0.3rem), calc(-50% + 0.1rem)) !important",md:"translate(calc(-50% + 0.3rem), calc(-50% - 1.7rem)) !important"}}}))},{slideContent:be(f=>[Re("div",{class:de([v(Tr)({gap:"0.5rem"}),v(me)({position:"relative",textAlign:"center",maxWidth:"25rem",margin:"0 auto",_before:{content:"''",position:"absolute",top:"17rem",left:"50%",transform:"translateX(-50%)",width:"0.2rem",height:"1.5rem",bgColor:"{colors.black}",_print:{display:"none"}},"& [data-img-container]":{order:"-1",maxWidth:"15rem",minHeight:"15rem",marginBottom:"3.5rem"}})])},[Re("p",{class:de(v(me)({fontSize:"sm",color:"primary",marginBottom:0,lineHeight:1,marginTop:"1rem"}))},ht(f.slide?.date),3),Re("div",{class:de(v(me)({"& p":{fontSize:"h4",fontWeight:700,lineHeight:1.2}}))},[f.slide?.description?(Z(),Se(i,{key:0,content:f.slide?.description},null,8,["content"])):Ne("",!0)],2),ke(a,{image:f.slide?.images?.[0],"no-figcaption":!0,class:de(v(me)({borderRadius:".5rem",_print:{display:"none"}}))},null,8,["image","class"])],2)]),_:1},8,["slides","blocTitleId","class"])],2)]),_:1},8,["header","header-layout","headerId","uid"])):Ne("",!0)}}}),MOe=Fe({__name:"Applications",props:{applis:{}},setup(e){return(t,n)=>{const r=Nf,i=f1,a=Va("i-decor-logoPattern"),s=fi;return Z(),Se(s,{header:t.$t("userExchange.applications.title"),uid:t.uid,class:de(v(me)({"& h2":{marginBottom:"2.5rem"}}))},{content:be(()=>[Re("ul",{class:de([v(Mi)({columns:{base:1,sm:3,md:2,lg:3},gap:"1.5rem !important"}),v(me)({marginBottom:0})])},[(Z(!0),Ce(Ct,null,ln(e.applis,o=>(Z(),Ce("li",{class:de(v(me)({position:"relative"}))},[ke(i,{link:o.link,class:de([v(Tr)({flexDir:"column-reverse",gap:"1.5rem",justifyContent:"center",alignItems:"start"}),v(me)({bgColor:"white",color:"black",padding:"3.5rem",boxShadow:"0 .4rem 2rem 0 rgba(0,0,0,.2)",height:{base:"16rem",md:"19rem"},borderRadius:".5rem","& span":{fontWeight:700,fontSize:{base:"1.8rem",md:"2rem"},lineHeight:1.2},"& [data-img-container]":{width:"4rem",height:"4rem",minHeight:"4rem",minWidth:"4rem",transition:"{easings.global}"},_hover:{bgColor:"primary",color:"white","& [data-img-container]":{scale:1.1},"& img":{filter:"invert(1) grayscale(1) brightness(2)"}}})])},{icon:be(()=>[ke(r,{image:o.cim_base_image_menu},null,8,["image"])]),_:2},1032,["link","class"]),ke(a,{"aria-hidden":"true",class:de([v(me)({width:{base:"20rem",md:"29rem"},height:"auto",pointerEvents:"none",position:"absolute",bottom:"3rem",right:"-4rem","& *":{fill:"white"}})])},null,8,["class"])],2))),256))],2)]),_:1},8,["header","uid","class"])}}}),AOe=Fe({__name:"T3CeCimdashboardShow",props:{header:{},headerLayout:{},headerPosition:{},headerLink:{},subheader:{},uid:{},index:{},appearance:{},data:{}},setup(e){return(t,n)=>{const r=MOe;return Z(!0),Ce(Ct,null,ln(Object.values(e.data.sections),(i,a)=>(Z(),Ce("div",null,[ke(r,{applis:i.pages},null,8,["applis"])]))),256)}}}),IOe=Fe({__name:"ButtonBack",props:{popin:{type:Boolean},itemType:{},link:{default:{}},variante:{},align:{default:""},noContainer:{type:Boolean,default:!1},type:{},showSr:{type:Boolean},picto:{},role:{},isLoading:{type:Boolean},disabled:{type:Boolean}},setup(e){return(t,n)=>{const r=cr;return Z(),Se(r,{link:{text:`${t.$t("common.buttons.btnBack")} ${t.$t("listItem.type."+e.itemType,2)}`,href:e.link?.href},variante:{classes:"pictoRound",pictoPlacement:"left",pictoColor:"white",pictoSize:"md"},picto:"prev"},null,8,["link"])}}}),DOe=Fe({__name:"T3CeCimdirectoryDisplay",props:{header:{},headerLayout:{},headerPosition:{},headerLink:{},subheader:{},uid:{},index:{},appearance:{},colPos:{},data:{}},setup(e){const{requestViewCount:t}=Ow(),n=e,r=vr(),i=De(r.initialData),a=De(r.pageData);return fu({title:n.data.title+" - "+i.value.siteBuilderInfos?.siteName,htmlAttrs:{class:n.data.type}}),Zj(n.data,()=>
946{A4(i.value,n.data),t("search",n.data.pid,n.data.uid,n.data.type)},{deep:!0,immediate:!0}),(s,o)=>{const f=IOe,m=KG;return Z(),Se(m,{pageData:v(a),content:e.data,data:e.data},{btnBack:be(()=>[ke(f,{popin:!1,link:{href:e.data?.backToListUrl},itemType:e.data?.type},null,8,["link","itemType"])]),_:1},8,["pageData","content","data"])}}}),LOe=Fe({__name:"T3CeCimsubpagesDisplaysubpages",props:{header:{},headerLayout:{},headerPosition:{},headerLink:{},subheader:{},uid:{},index:{},appearance:{},colPos:{},data:{}},setup(e){return(t,n)=>{const r=nK;return Z(),Se(r,{result:e.data?.results??[],header:e.header,isCarrefour:!0},null,8,["result","header"])}}}),uK=Fe({__name:"TitreFlottant",props:{result:{},header:{}},setup(e){return(t,n)=>{const r=Su,i=fi;return Z(),Se(i,null,{content:be(()=>[(Z(!0),Ce(Ct,null,ln(e.result,a=>(Z(),Se(r,{result:a?.text,config:{type:"richtext"}},null,8,["result"]))),256))]),_:1})}}}),cK=Fe({__name:"BlocChapitre",props:{result:{}},setup(e){return(t,n)=>{const r=g1,i=YT;return Z(),Se(i,{result:e.result,headerSr:!0,class:de(v(me)({marginBottom:"3rem !important","& [data-bloc-col]":{marginBottom:"4rem"},"& [data-bloc-content] [data-state] > [data-bloc-col]:last-child":{marginBottom:0}}))},{content:be(a=>[ke(r,{result:a.item},null,8,["result"])]),_:1},8,["result","class"])}}}),OOe=Fe({__name:"BlocSousChapitre",props:{header:{},result:{}},setup(e){return(t,n)=>{const r=g1,i=fi;return Z(),Se(i,{header:e.header,headerLayout:3,noAnchor:!0,class:de(v(me)({"& [data-bloc-col]":{marginBottom:"4rem"},"& [data-bloc-content] > [data-bloc-col]:last-child":{marginBottom:0}}))},{content:be(()=>[ke(r,{result:e.result},null,8,["result"])]),_:1},8,["header","class"])}}}),ROe=Fe({__name:"FieldHoverCard",props:{result:{}},setup(e){return(t,n)=>{const r=PI,i=K2e,a=Su,s=F2e,o=W2e,f=Y2e,m=V2e;return Z(),Se(m,null,{default:be(()=>[ke(i,{class:de(v(me)({cursor:"pointer",display:"inline-block",verticalAlign:"middle",marginLeft:"1rem"}))},{default:be(()=>[ke(r,{"aria-hidden":"true",class:de([v(ei)({fill:"white"}),v(S_)({bgColor:"primary"})])},null,8,["class"])]),_:1},8,["class"]),ke(f,null,{default:be(()=>[ke(o,{align:"center",side:"top",class:de(v(me)({bgColor:"white",padding:"1rem",boxShadow:"{shadows.accent}",maxWidth:"20rem","& p":{marginBottom:0,fontSize:"xs"}}))},{default:be(()=>[ke(a,{result:e.result,config:{type:"richtext"}},null,8,["result"]),ke(s,{fill:"white"})]),_:1},8,["class"])]),_:1})]),_:1})}}}),BOe=Fe({__name:"SituationRadio",props:{result:{}},setup(e,{expose:t}){const n=e,r=De(""),i=xe(()=>n.result?.[r.value]?.titre);return t({situation:r}),(a,s)=>{const o=ROe,f=aW,m=iW,y=zG,b=cr;return Z(),Ce("div",null,[v(r)===""?(Z(),Se(m,{key:0,modelValue:v(r),"onUpdate:modelValue":s[0]||(s[0]=T=>zn(r)?r.value=T:null),class:de(v(Tr)({alignItems:"initial",gap:"1.5rem"}))},{default:be(()=>[(Z(!0),Ce(Ct,null,ln(e.result,(T,x)=>(Z(),Se(f,{value:`${x}`,class:de(v(me)({textAlign:"left",fontSize:"p"}))},{default:be(()=>[Re("span",null,ht(T.titre??T.title),1),(Z(!0),Ce(Ct,null,ln(T?.children,$=>(Z(),Ce(Ct,null,[$?.type==="Aide"?(Z(),Se(o,{key:0,result:$?.children?.text},null,8,["result"])):Ne("",!0)],64))),256))]),_:2},1032,["value","class"]))),256))]),_:1},8,["modelValue","class"])):(Z(),Ce("div",{key:1,class:de([v(Qn)({justifyContent:"space-between"}),v(me)({bgColor:"primary/15",padding:"1rem",marginBottom:"1.5rem"})])},[Re("p",{class:de([v(Qn)({gap:"1rem"}),v(me)({marginBottom:0,maxWidth:"75%"})])},[ke(y,{"aria-hidden":"true",class:de(v(ei)({fill:"primary"}))},null,8,["class"]),_n(" "+ht(v(i)),1)],2),ke(b,{link:{text:a.$t("common.modify")},type:"button",variante:{classes:"btnTxt",bgColor:"primary",pictoPlacement:"right"},picto:"close",onClick:s[1]||(s[1]=T=>r.value="")},null,8,["link"])],2))])}}}),FOe=Fe({__name:"BlocCas",props:{result:{}},setup(e){const{$emit:t}=En(),n=De(),r=xe(()=>n.value?.situation);return(i,a)=>{const s=BOe,o=g1,f=fi;return Z(),Se(f,{header:i.$t("comarquage.titles.situation"),"header-layout":3},{content:be(()=>[ke(s,{ref_key:"situationRadio",ref:n,result:e.result},null,8,["result"]),ke(o,{result:e.result?.[v(r)]},null,8,["result"])]),_:1},8,["header"])}}}),zOe={key:0},NOe=Fe({__name:"BlocHighlight",props:{result:{},header:{},type:{}},setup(e){return(t,n)=>{const r=g1,i=D7,a=lK;return Z(),Se(a,{result:e.result,header:e.type==="OuSAdresser"?t.$t("comarquage.titles.OuSAdresser"):e.header,headerLayout:4,type:e.type,isComarquage:!0},Tg({_:2},[e.result?.type==="OuSAdresser"?{name:"content",fn:be(()=>[e.header?(Z(),Ce("h5",zOe,ht(e.header),1)):Ne("",!0),ke(r,{result:e.result?.children},null,8,["result"]),e.result?.link?(Z(),Se(i,{key:1,result:[{links:[{href:e.result?.link?.href?.[0],target:e.result?.link?.target,text:e.result?.link?.text}]}]},null,8,["result"])):Ne("",!0)]),key:"0"}:void 0]),1032,["result","header","type"])}}}),VOe={key:0},qOe=["innerHTML"],jOe=["innerHTML"],dK=Fe({__name:"FieldList",props:{result:{},header:{},type:{}},setup(e){return(t,n)=>{const r=dK;return Z(),Ce("ul",null,[(Z(!0),Ce(Ct,null,ln(e.result,i=>(Z(),Ce(Ct,null,[i?.[1]?(Z(),Ce("li",VOe,[Re("div",{innerHTML:i?.[0]?.text},null,8,qOe),ke(r,{result:i?.[1]?.children},null,8,["result"])])):Ne("",!0),Re("li",{innerHTML:i?.[0]?.text},null,8,jOe)],64))),256))])}}}),UOe={key:0},HOe={key:1},WOe=["innerHTML"],GOe={key:2},YOe=["innerHTML"],ZOe=Fe({__name:"FieldTable",props:{result:{},header:{},type:{}},setup(e){const t=e,n=xe(()=>t.result?.children?.head?.[0]),r=xe(()=>t.result?.children?.body);return(i,a)=>e.result?(Z(),Ce("table",{key:0,class:de(v(me)({marginBottom:"2rem"}))}
946,[e.result.title?(Z(),Ce("caption",UOe,ht(e.result.title),1)):Ne("",!0),v(n)?(Z(),Ce("thead",HOe,[(Z(!0),Ce(Ct,null,ln(v(n),s=>(Z(),Ce("th",{innerHTML:s?.text},null,8,WOe))),256))])):Ne("",!0),v(r)?(Z(),Ce("tbody",GOe,[(Z(!0),Ce(Ct,null,ln(v(r),s=>(Z(),Ce("tr",null,[(Z(!0),Ce(Ct,null,ln(s,o=>(Z(),Ce("td",{innerHTML:o?.text},null,8,YOe))),256))]))),256))])):Ne("",!0)],2)):Ne("",!0)}}),KOe=Fe({__name:"BlocVideo",props:{result:{}},setup(e){const t=e,n=xe(()=>{let o=t.result?.link?.fournisseur;if(o==="youtube")return{mimeType:"video/youtube",extension:"youtube",startLink:"https://www.youtube.com/embed/"};if(o==="vimeo")return{mimeType:"video/vimeo",extension:"vimeo",startLink:"https://player.vimeo.com/video/"};if(o==="dailyMotion")return{mimeType:"video/dailymotion",extension:"dailymotion",startLink:"https://geo.dailymotion.com/player.html?video="}}),r=xe(()=>t.result?.link?.href);let i=[{player:"youtube",regex:/https:\/\/(www\.)?yout.*?\?v=([a-zA-Z0-9_\-]*)/},{player:"youtube",regex:/https:\/\/(www\.)?yout.*?\/([a-zA-Z0-9_\-]*)/},{player:"vimeo",regex:/https:\/\/(www\.)?vim.*?\/([a-zA-Z0-9_\-]*)/},{player:"dailymotion",regex:/https:\/\/(www\.)?dai.*?\/.*?\/([a-zA-Z0-9_\-]*)/}];const a=xe(()=>{let o;return i.forEach(f=>{r.value?.match(f.regex)&&(o=t.result?.link?.href?.match(f.regex))}),o?.[2]}),s=xe(()=>({publicUrl:`${n.value?.startLink}${a.value}`,properties:{title:t.result?.title,alternative:null,description:t.result?.children,mimeType:n.value?.mimeType,type:"video",filename:"",originalUrl:null,dimensions:{width:1920,height:1080},cropDimensions:{width:1920,height:1080},autoplay:"0",extension:n.value?.extension,publicUrl:null}}));return(o,f)=>{const m=VI;return Z(),Ce("div",{class:de(v(me)({"& [data-ratio]":{width:"100%",aspectRatio:16/9}}))},[ke(m,{video:v(s)},null,8,["video"])],2)}}}),g1=Fe({__name:"DirRendererComarquage",props:{result:{}},setup(e){const t=r=>{let i;switch(r){case"Texte":i=g1;break;case"Chapitre":i=cK;break;case"SousChapitre":i=OOe;break;case"BlocCas":i=FOe;break;case"ASavoir":case"Exemple":case"Rappel":case"OuSAdresser":case"Attention":i=NOe;break;case"ServiceEnLigne":i=D7;break;case"Liste":i=dK;break;case"LinkList":i=QT;break;case"Tableau":i=ZOe;break;case"TitreFlottant":i=uK;break;case"Video":i=KOe;break;default:i=Su;break}return i},n=r=>{switch(r?.type){case"Chapitre":return[r];case"Paragraphe":return r?.text;case"ASavoir":case"Exemple":case"Rappel":case"Attention":return r?.children?.text;case"Liste":case"BlocCas":case"LinkList":return r?.children;case"ServiceEnLigne":return[{links:[r?.link]}];default:return r}};return(r,i)=>(Z(!0),Ce(Ct,null,ln(e.result?.children,a=>(Z(),Ce(Ct,null,[a?.type!=="Aide"?(Z(),Se(xr(t(a?.type)),{key:0,result:n(a),config:a?.type==="Paragraphe"?{type:"richtext"}:null,header:a?.title,type:a?.type},null,8,["result","config","header","type"])):Ne("",!0)],64))),256))}}),XOe=Fe({__name:"FieldsTabs",props:{result:{}},setup(e){return(t,n)=>{const r=fW,i=kI,a=TI,s=g1,o=dW,f=CI,m=fi;return Z(),Se(m,null,{content:be(()=>[ke(f,{"default-value":0},{default:be(()=>[ke(a,{class:de([v(Qn)({gap:"0.5rem"}),v(me)({position:"relative",fontSize:"p",paddingLeft:"1rem"})])},{default:be(()=>[ke(r,{class:de(v(me)({position:"absolute",width:"var(--reka-tabs-indicator-size)",height:"0.2rem",bgColor:"white",bottom:"-0.1rem",left:"var(--reka-tabs-indicator-position)"}))},null,8,["class"]),(Z(!0),Ce(Ct,null,ln(e.result?.children,(y,b)=>(Z(),Se(i,{value:b,class:de(v(me)({padding:"1rem",border:"{borders.sm} {colors.mediumGray}",borderBottom:0,fontWeight:600,bgColor:"primary/15",fontSize:"1em",_selected:{bgColor:"white",color:"primary"},_hover:{bgColor:"primary",color:"white"}}))},{default:be(()=>[_n(ht(y.titre),1)]),_:2},1032,["value","class"]))),256))]),_:1},8,["class"]),(Z(!0),Ce(Ct,null,ln(e.result?.children,(y,b)=>(Z(),Se(o,{value:b,class:de(v(me)({padding:"2rem",border:"{borders.sm} {colors.mediumGray}"}))},{default:be(()=>[(Z(!0),Ce(Ct,null,ln(y?.children,T=>(Z(),Se(s,{result:T},null,8,["result"]))),256))]),_:2},1032,["value","class"]))),256))]),_:1})]),_:1})}}}),JOe=Fe({__name:"T3CeCimcomarquageDisplay",props:{header:{},headerLayout:{},headerPosition:{},headerLink:{},subheader:{},uid:{},index:{},appearance:{},type:{},show_in_summary:{type:Boolean},colPos:{},data:{}},setup(e){return(t,n)=>{const r=CT,i=uK,a=XOe,s=g1,o=cK;return Z(),Ce("div",null,[ke(r,{header:e.header,headerLayout:e.headerLayout},null,8,["header","headerLayout"]),e.data?.publication?.Introduction?(Z(),Se(i,{key:0,result:e.data?.publication?.Introduction?.children},null,8,["result"])):Ne("",!0),e.data?.publication?.ListeSituations?(Z(),Se(a,{key:1,result:e.data?.publication?.ListeSituations},null,8,["result"])):Ne("",!0),(Z(!0),Ce(Ct,null,ln(e.data?.publication,f=>(Z(),Ce(Ct,null,[f?.type!=="Introduction"&&f?.type!=="ListeSituations"?(Z(),Se(s,{key:0,result:f},null,8,["result"])):Ne("",!0)],64))),256)),e.data?.publication?.pourEnSavoirPlus.length?(Z(),Se(o,{key:2,result:[{type:"Chapitre",children:[{type:"LinkList",children:e.data?.publication?.pourEnSavoirPlus}],title:t.$t("comarquage.titles.pourEnSavoirPlus")}]},null,8,["result"])):Ne("",!0),e.data?.publication?.references.length?(Z(),Se(o,{key:3,result:[{type:"Chapitre",children:[{type:"LinkList",children:e.data?.publication?.references}],title:t.$t("comarquage.titles.references")}]},null,8,["result"])):Ne("",!0),e.data?.publication?.serviceEnLigne.length?(Z(),Se(o,{key:4,result:[{type:"Chapitre",children:[{type:"LinkList",children:e.data?.publication?.serviceEnLigne}],title:t.$t("comarquage.titles.serviceEnLigne")}]},null,8,["result"])):Ne("",!0),e.data?.publication?.voirAussi.length?(Z(),Se(o,{key:5,result:[{type:"Chapitre",children:[{type:"LinkList",children:e.data?.publication?.voirAussi}],title:t.$t("comarquage.titles.voirAussi")}]},null,8,["result"])):Ne("",!0)])}}}),Il=e=>!!(e==null||typeof e=="string"&&e.trim()===""||typeof e=="number"&&xp(e)||Array.isArray(e)&&e.length===0||typeof e=="object"&&Object.keys(e).length===0),QOe=e=>Il(e)?!0:MI(e,{regex:"^-?\\d*\\.?\\d+$"}),eRe=(e,t)=>{if(Il(e))return!0;
946const n=t.options?.regularExpression;return Il(n)?!0:MI(e,{regex:n.replace(/^\/|\/$/g,"")})},oz=(e,t)=>{if(Il(e))return!0;const n=(Array.isArray(e)?e:String(e)).length,{minimum:r,maximum:i}=t.options??{};if(Il(r)||Il(i))return!0;const a=parseInt(r),s=parseInt(i);return xp(a)||xp(s)||a>s?!0:!!GT(n,{min:a,max:s})},fK=e=>xp(e)&&!xp(Date.parse(e)),sz=e=>fK(e)?Date.parse(e):parseFloat(e),lz=(e,t)=>{if(Il(e)||typeof e!="string")return!0;const{minimum:n,maximum:r}=t.options??{};if(Il(n)||Il(r))return!0;const i=sz(n),a=sz(r);if(xp(i)||xp(a)||i>a)return!0;const s=fK(e)?Date.parse(e):parseFloat(e);return!!GT(s,{min:i,max:a})},uz=e=>{const t={B:1,K:1024,M:1048576,G:1073741824},n=new RegExp(/(\d+(?:\.\d+)?)\s*([BKMG])/i),r=e.match(n);if(r){const[,i,a]=r;if(a.toUpperCase()in t)return xp(parseFloat(i))?void 0:parseFloat(i)*t[a.toUpperCase()]}},tRe=(e,t)=>{if(!(e instanceof File))return!0;const{minimum:n,maximum:r}=t??{};if(Il(n)||Il(r))return!0;const i=uz(n),a=uz(r);return Il(i)||Il(a)||i>a?!0:!!GT(e.size,{min:i,max:a})};function nRe(e){return!(!e||!e.length)}function cz(e){return Il(e)?!0:!!/^(?:(?:\+33|0033|0)[1-9])(?:[\s.-]?\d{2}){4}$/.test(e)}function rRe({uid:e,form:t,link:n},r,i){const a=De(null),s={required:{veeValidateName:"required",function:T$},NotEmpty:{veeValidateName:"required",function:T$},Alphanumeric:{veeValidateName:"alpha_num",function:C$},Number:{veeValidateName:"alpha_num",function:C$},Integer:{veeValidateName:"integer",function:Y5e},Float:{veeValidateName:"float",function:QOe},EmailAddress:{veeValidateName:"email",function:RR},Email:{veeValidateName:"email",function:RR},RegularExpression:{veeValidateName:"regex",function:eRe},StringLength:{veeValidateName:"between",function:oz},Count:{veeValidateName:"between",function:oz},NumberRange:{veeValidateName:"range",function:lz},DateRange:{veeValidateName:"range",function:lz},FileSize:{veeValidateName:"size",function:tRe},Hcaptcha:{veeValidateName:"hcaptcha",function:nRe},Telephone:{veeValidateName:"telephone",function:cz},PhoneNumber:{veeValidateName:"telephone",function:cz}},o=(b,T)=>{const x={};return b&&(b.forEach($=>{const A=$.identifier;if(Object.keys(s).includes(A)){try{typeof s[A].function=="function"&&xy(s[A].veeValidateName,s[A].function)}catch{}x[s[A].veeValidateName]=$.options,A==="RegularExpression"&&$.options&&(x[s[A].veeValidateName]=new RegExp($.options.regularExpression)),A==="StringLength"&&$.options&&($.options.minimum&&(xy("minLength",kW),x.minLength=$.options.minimum),$.options.maximum&&(xy("maxLength",TW),x.maxLength=$.options.maximum))}}),T==="telephone"&&!Object.keys(x).includes("phone")&&(xy(s.Telephone.veeValidateName,$=>s.Telephone.function($,{})),x[s.Telephone.veeValidateName]=!0)),x},f=(b=t.elements??[])=>b.map(T=>({properties:T.properties,label:T.label,identifier:T.identifier,type:T.type.toLowerCase(),name:T.name?.replace("<index>",""),validators:o(T.validators,T.type.toLowerCase()),validatorsOptions:T.validators,value:(Un(T.defaultValue)?T.value:T.defaultValue)??"",defaultValue:T.defaultValue??"",isTemplate:!!T.isTemplate,iteration:yT(T.iteration)?T.iteration:-1,fieldlist:T.type==="Fieldset",elements:T.elements?f(T.elements):void 0})),m=xe(()=>{const b=t.elements[0].name;if(typeof b=="string"){const T=b.match(/^([^\[\]]+\[[^\[\]]+\])/);if(T&&T[1])return T[1]}return null}),y=async b=>{if(!r.value)return;a.value=null;const T=new FormData(b.formRef.value);e&&(T.append("responseElementId",e.toString()),T.append("responseElementRecursive","1"));const{$fetch:x}=hu(),{meta:$,resetForm:A,setErrors:N,i18n:O}=r.value;if($?.valid)try{const U=(await x(n.href,{method:"POST",body:T}))?.content?.form?.api;if(U?.status==="success"){a.value=O?.serverSuccess??null,A();const B=U.actionAfterSuccess?.redirectUrl;return B?dc(B,{external:B.includes("http")}):void 0}if(U?.status==="failure"){a.value=O?.validationErrors??null;const B={};for(const[q,Q]of Object.entries(U.errors)){const ee=`${m.value}[${q}]`;B[ee]=Q}N(B)}}catch{a.value=O?.serverError??null}};return{elements:f(),onSubmit:y,responseMessage:a}}const iRe={key:0},aRe={key:0,class:"ligne_form"},oRe={class:"grid-x grid-margin-x align-middle align-right form_datas_btns"},sRe={class:"cell shrink btn_reinit"},f_=Fe({__name:"T3CeFormFormframework",props:{header:{},headerLayout:{},headerPosition:{},headerLink:{},subheader:{},uid:{},index:{},appearance:{},colPos:{},link:{},form:{},customSubmit:{},i18n:{default:{submitButton:"Envoyer",sendingLabel:"En cours d'envoi",resetButton:"Réinitialiser",serverSuccess:"Le formulaire a été envoyé, merci.",serverError:"Nous ne pouvons pas traiter le formulaire pour le moment, veuillez réessayer plus tard.",validationErrors:"Il y a eu des erreurs, merci de revoir le formulaire"}},legendSr:{type:Boolean,default:!0},noTitle:{type:Boolean,default:!1}},setup(e,{expose:t}){const n=vr(),r=De({isSubmited:!1,pending:!1,message:null,hasError:!1,isPreparedMessage:!1});co("submitStatus",r);const i=De(null),a=e,{elements:s}=rRe(a,i);QZ({formIdentifier:a.form?.id??""});const{formLocalStorageData:o,deleteFormLocalStorageData:f,saveFormLocalStorageData:m,setFormRef:y,isLocalStorageActive:b}=JZ({formIdentifier:a.form.id,formRef:i?.value?.formRef,active:a.form?.renderingOptions?.useFormLocalStorageSaver??!1,formDefinition:a.form}),T=B=>{for(const q of B){if(!Un(q.name)){const Q=o.value[q.name];Un(Q)||(q.value=Q)}q.elements?.length>0&&T(q.elements)}};b&&T(s);const x=De(a?.uid),$=De(),A=xe(()=>["detail","list"].includes(n.pageData?.appearance.backendLayout??"")),N=async B=>{if(!i.value)return;if(b&&(y(B.formRef.value),m()),typeof a.customSubmit=="function")return await a.customSubmit(B,i);const q=new FormData(B.formRef.value);a.uid&&(A.value?($.value=n.pageData?.content.colPos0[0].id,n.popinDetailData&&($.value=n.popinDetailData?.content.colPos0[0].id),q.append("responseElementId",$.value.toString())):q.append("responseElementId",x.value.toString()),q.append("responseElementRecursive","1"));const{meta:Q,setErrors:ee,i18n:Y}=i.value;if(!Q?.valid)return;let z=null;try{z=await md(a?.link?.href??a?.form?.link?.href??"/",{method:"POST",body:q})}catch{r.value.message="Une erreur est survenue lors de l'envoi des données du formulaire.",r.value.pending=!1;return}if(r.value.pending=!1,r.value.isSubmited=!1,typeof z?.content?.form=="string"){let ne=z.value?.content?.form;r.value.message=`Le formulaire a rencontré une erreur, veuillez contacter l'administrateur du site avec ce co
946de : "${ne}"`,r.value.pending=!1;return}let H=z;A.value&&(H=H?.content?.data?.contentElements?.find(ne=>ne?.type=="form_formframework"&&ne?.id==x.value)),H=H?.content?.form?.api;try{if(!H){r.value.message="La réponse du formulaire n'a pas été trouvée.",r.value.pending=!1;return}if(H.status==="failure"){r.value.pending=!1;const ne={};for(const[le,pe]of Object.entries(H?.errors??[])){const ae=`tx_form_formframework[${a.form.id}][${le}]`;ne[ae]=pe}ee(ne),r.value.message="La validation du formulaire n'a pas pu aboutir. Les erreurs de validation sont affichées sous les champs.";return}}catch{r.value.message="Le formulaire a été envoyé. Une erreur est survenue lors de la réponse du formulaire.",r.value.pending=!1;return}if(H?.status==="success"&&(r.value.pending=!1,r.value.isSubmited=!0,r.value.message=O(H)??"Votre demande a bien été prise en compte.",r.value.isPreparedMessage=H?.actionAfterSuccess?.isPreparedMessage??!1,b&&f(),H.actionAfterSuccess?.redirectUrl)){const ne=H.actionAfterSuccess?.redirectUrl;return dc(ne,{external:ne.includes("http")})}const K=document.querySelector("[data-form-container]");K&&K.scrollIntoView({behavior:"smooth",block:"start"})},O=B=>{for(const q of a.form?.finishers??[])if(q?.identifier==="Confirmation"&&q?.options?.message?.length>0)return q.options.message;return B.actionAfterSuccess!==null?B.actionAfterSuccess.message:null},I=()=>{i.value?.resetForm(),f()};function U(B){r.value.pending=!1,r.value.isSubmited=!1,r.value.message=""}return t({submitStatus:r,t3form:i}),(B,q)=>{const Q=YI,ee=Va("Button"),Y=cr;return Z(),Ce("div",{"data-form-container":"",class:de(v(me)({padding:{base:"2.5rem !important",sm:"5.5rem !important"},paddingRight:{base:"2.5rem",sm:"10rem !important"}}))},[e.form.api?.label&&!e.noTitle?(Z(),Ce("h2",iRe,ht(e.form.api.label),1)):Ne("",!0),ke(Q,{"is-success":r.value.isSubmited,"is-error":r.value.hasError,message:r.value.message??"",isPreparedMessage:r.value.isPreparedMessage??!1},null,8,["is-success","is-error","message","isPreparedMessage"]),r.value.isSubmited?(Z(),Ce(Ct,{key:2},[e.form?.renderingOptions?.showResetButtonAfterSubmit?(Z(),Se(Y,{key:0,type:"submit",value:e.form?.renderingOptions?.showResetButtonAfterSubmitText??B.$t("form.showFormBack"),onClick:ti(U,["prevent"]),link:{text:e.form?.renderingOptions?.showResetButtonAfterSubmitText??B.$t("form.showFormBack")},variante:{classes:"btnGradient",bgColor:"white"}},null,8,["value","link"])):Ne("",!0)],64)):(Z(),Ce(Ct,{key:1},[e.form?(Z(),Se(ALe,{key:0,ref_key:"t3form",ref:i,form:e.form,elements:v(s),legend:e.form?.api?.label,legendSr:e.legendSr,i18n:e.i18n,onSubmit:N,class:de(v(me)({marginBottom:0,"& > div":{_last:{rowGap:"2.5rem"}}}))},{"before-fields":be(()=>[bt(B.$slots,"title"),Re("p",{class:de(v(me)({marginBottom:"3.5rem"}))}," * "+ht(B.$t("form.mandatoryLegend")),3),v(b)?(Z(),Ce("div",aRe,[Re("div",oRe,[Re("div",sRe,[ke(ee,{type:"button",link:{text:B.$t("form.step.deleteLocalDatas")},classes:"btn_txt btn_txt_color_inverse",onClick:ti(I,["prevent"])},null,8,["link"])])])])):Ne("",!0)]),fields:be(()=>[bt(B.$slots,"fields")]),"after-fields":be(()=>[bt(B.$slots,"after-fields")]),_:3},8,["form","elements","legend","legendSr","i18n","class"])):Ne("",!0)],64))],2)}}}),lRe={key:1},uRe={key:1},cRe={key:1},dRe="none",dz="question",G8="answers",fRe=Fe({__name:"BlocSondages",props:{header:{},headerLayout:{},headerPosition:{},headerLink:{},subheader:{},uid:{},index:{},appearance:{},link:{},colPos:{},data:{},noAnchor:{type:Boolean,default:!1}},setup(e){const t=De();vr();const n=e;co("isSondage",!0);const r=De(n.data.questions.filter(f=>typeof f.question<"u")),i=De(dRe);Hn(()=>{i.value=r.value[0]?.hasResponded?G8:dz});const a=De(!1),s=async f=>{const m=new FormData(f.formRef.value);m.append("responseElementId",n.uid.toString()),m.append("responseElementRecursive","1");const y=0;let b=await hu().$fetch(r.value[y].form.link.href,{method:"POST",body:m});b=b.content.data,r.value[y]={...r.value[y],...b.questions[y]},a.value=!0,i.value=G8},o=(f,m)=>{const y=f.score/m.totalScore*100;return xp(y)?0:y};return(f,m)=>{const y=f_,b=fi;return Z(),Se(b,{header:v(r)?.[0]?.question.title,"header-layout":e.headerLayout,uid:e.uid,noAnchor:e.noAnchor,border:"third",class:de(v(Wa)())},{content:be(()=>[(Z(!0),Ce(Ct,null,ln(v(r),T=>(Z(),Ce(Ct,null,[T.question?(Z(),Ce("div",{key:0,class:de(v(me)({padding:"5rem"}))},[v(i)==dz?(Z(),Ce("div",{key:0,class:de(v(me)({"& form":{border:"none !important",padding:"0 !important",marginBottom:0,"& > fieldset":{"& > legend":{fontWeight:"{fontWeights.extraBold}",fontSize:"{fontSizes.h3}",paddingBottom:0,color:"{colors.primary}",marginBottom:"3rem",_after:{display:"none"}}},"& [role=radiogroup] button":{width:"calc(100% - 3.5rem)",marginLeft:"auto",display:"block",padding:"1.5rem 2rem",border:"0.1rem solid {colors.primary}",textAlign:"left",fontSize:"{fontSizes.p}",borderRadius:"{radii.sm}","&::before, &::after":{left:"-2rem",top:"50%",transform:"translate(-100%,-50%)"},_checked:{borderColor:"third",boxShadow:"inset 0 0 0 0.1rem {colors.third}",bgColor:"third/25"}},"& [role=checkbox]":{textAlign:"left"}}}))},[T.question.description?(Z(),Ce("h3",{key:0,class:de(v(me)({marginBottom:"3rem"}))},ht(T.question.description),3)):Ne("",!0),ke(y,{ref_for:!0,ref_key:"formRef",ref:t,form:T.form,link:T.form.link,uid:n.uid,customSubmit:s,legendSr:!1,i18n:{submitButton:f.$t("common.validate"),resetButton:!1,sendingLabel:f.$t("form.sending")}},null,8,["form","link","uid","i18n"])],2)):v(i)==G8?(Z(),Ce("div",lRe,[T.question.description?(Z(),Ce("h3",{key:0,class:de(v(me)({marginBottom:"3rem"}))},ht(T.question.description),3)):Ne("",!0),Re("ul",{class:de(v(Tr)({gap:"1rem"}))},[(Z(!0),Ce(Ct,null,ln(T.question.answers,(x,$)=>(Z(),Ce("li",{key:$,class:de([v(Qn)({justifyContent:"space-between",gap:"1.5rem"}),v(me)({width:"100%",fontSize:"{fontSizes.p}",color:"{colors.primary}",position:"relative",textAlign:"start",borderRadius:"{radii.sm}",lineHeight:1,padding:"1.5rem 2rem",_before:{display:"none"},border:T.answer===x.uid?"0.2rem solid {colors.third}":"0.1rem solid {colors.primary}"})])},[Re("span",null,ht(x.title),1),Re("span",{class:de(v(me)({fontWeight:"{fontWeights.bold}"}))},ht(o(x,T).toFixed(0)+"%"),3),Re("div",{class:de(v(me)({position:"absolute",transition:"{easings.global}",inset:0,height:"100%",backgroundColor:T.answer===x.uid?"{colors.third/25}":"{colors.primary/10}"})),style:fo({width:o(x,T)+"%"})},null,6)],2))),128))],2),T.totalScore>0?(Z(),Ce("p",uRe,ht(T.totalScore)+" "+ht(T.totalScore>1?f.$t("poll.votes"):f.$t("poll.vote")),1)):Ne("",!0)])):Ne("",!0)],2)):(Z(),Ce("div",cRe,[Re("p",null,ht(f.$t("poll.none")),1)]))],64))),256))]),_:1},8,["header","header-layout","uid","noAnchor","class"])}}}),hRe=Fe({__name:"T3CeCimpollDisplaypoll",props:{header:{},headerLayout:{},headerPosition:{},headerLink:{},subheader:{},uid:{},index:{},appearance:{},link:{},colPos:{},data:{},noAnchor:{type:Boolean}},setup(e){return(t,n)=>{const r=fRe;return Z(),Se(r,{header:e.header,headerLayout:e.headerLayout,link:e.link,colPos:e.colPos,uid:e.uid,data:e.data,noAnchor:e.noAnchor,appearance:e.appearance,index:e.index},null,8,["header","headerLayout","link","colPos","uid","data","noAnchor","appearance","index"])}}}),L7=Fe({__name:"T3CeMenuPagesList",props:{children:{default:()=>[]}},setup(e){const t=e,n=()=>t.children.map(i=>Yn("li",{},[Yn(N_,{to:i.link,target:i.target||null,title:i.title},()=>[i.title]),i.children?Yn(L7,{children:i.children}):null])),r=()=>Yn("ul",{},{default:()=>n()});return(i,a)=>(Z(),Se(r))}}),hK=Fe({__name:"T3CeMenuPages",props:{menu:{}},setup(e){const t=e;return(n,r)=>{const i=EI,a=N_,s=L7;return Z(),Ce("div",null,[ke(i,gr(yr(t)),null,16),t.menu?(Z(),Ce("div",{key:0,class:de([v(Mi)({columns:{base:1,lg:2}}),v(Wa)({shadowInitial:0})])},[(Z(!0),Ce(Ct,null,ln(e.menu,(o,f)=>(Z(),Ce("div",{key:f,class:de(v(me)({padding:"1.5rem",fontSize:"{fontSizes.h3}",bgColor:"{colors.lightGray}"}))},[ke(a,{to:o.link,target:o.target||null,title:o.title,class:de(v(me)({fontWeight:600}))},{default:be(()=>[_n(ht(o.title),1)]),_:2},1032,["to","target","title","class"]),bt(n.$slots,"link",{link:o}),o.children?(Z(),Se(s,{key:0,children:o.children,class:de([v(me)({marginTop:"0.5rem","& li":{fontSize:"1.8rem",borderLeft:"{borders.md} {colors.black}",marginLeft:"1.5rem",paddingLeft:"1.5rem"},"& > li ul":{marginTop:"1rem","& li":{fontSize:"1.6rem"}}})])},null,8,["children","class"])):Ne("",!0)],2))),128))],2)):Ne("",!0)])}}}),pRe={};function mRe(e,t){const n=hK;return Z(),Se(n)}const gRe=A7(pRe,[["render",mRe]]),yRe=e=>
946Yn(gk,{content:e.shortcut.map(t=>(t.colPos=e.colPos,t)),frame:!1}),vRe=yRe,_Re=Fe({__name:"T3CeCimsearchelasticTinyinteractivemap",props:{header:{},headerLayout:{},headerPosition:{},headerLink:{},subheader:{},uid:{},index:{},appearance:{},colPos:{},data:{default:{}}},setup(e){return(t,n)=>(Z(),Ce("div",{class:de(v(me)({_print:{display:"none !important"}}))},[e.data.settings.template=="TinyInteractiveMap"?(Z(),Se(LG,{key:0,data:e.data,header:e.header},null,8,["data","header"])):Ne("",!0)],2))}}),bRe={key:0},xRe=["innerHTML"],wRe=["innerHTML"],SRe=["innerHTML"],CRe=Fe({__name:"T3CeFeloginLogin",props:{type:{},required:{},data:{},uid:{}},setup(e){const t=e,n=De(),r=vr(),i=Td(),a=ja(),s=De(),o=De(),f=De(),m=De(),y=xe(()=>t.data.form??{}),b=xe(()=>{const K=t.data.recoveryForm??{};return K.elements=K.elements?.filter(ne=>ne.name==="user"),K}),T=xe(()=>{const K={...t.data.form};return Un(K.action)&&!Un(K.link?.href)&&(K.action=K.link.href,delete K.linkt),Un(t.data?.passwordRequirements)||(K.elements=K.elements.map(ne=>(ne.identifier==="newPass"&&Un(ne.properties?.elementDescription)&&(Un(ne.properties)&&(ne.properties={}),ne.properties.elementDescription=`
947          <p>Le mot de passe doit respecter les exigences suivantes :</p>
948          <ul>
949              ${Object.values(t.data?.passwordRequirements).map(le=>`<li>${le}</li>`).join("")}
950          </ul>`),ne))),K}),{setErrors:x}=U_(),$=xe(()=>y.value?.elements?.find(K=>K.name==="logintype")?.value??"login"),A=xe(()=>n.value?.message||t?.data?.message),N=xe(()=>n.value?.status||t?.data?.status),O=xe(()=>i.query["tx_felogin_login[action]"]??"login"),I=async()=>{r.initialData?.loginUrl&&(await a.push(r.initialData.loginUrl),hu().pageData.value=await hu().getPage(r.initialData.loginUrl),sA({path:r.initialData.loginUrl,force:!0}))},U=async K=>{const ne=new FormData(K.formRef.value);o.value.submitStatus.hasError=!1,o.value.submitStatus.isSubmited=!1,o.value.submitStatus.hasError=!0,o.value.submitStatus.message=null,ne.has("tx_felogin_login[hash]")&&!Un(i.query["tx_felogin_login[hash]"])&&ne.set("tx_felogin_login[hash]",i.query["tx_felogin_login[hash]"]),t.uid&&(ne.append("responseElementId",t.uid.toString()),ne.append("responseElementRecursive","1")),o.value.submitStatus.pending=!0;let le=await hu().$fetch(t.data.form.action,{method:y.value.method??"post",body:ne,credentials:"include"});if(o.value.submitStatus.pending=!1,le=le?.content?.data,n.value=le,N.value==="success"&&O.value==="login")try{(await y4().getUser())?.logged?await B(le):(A.value.message="Une erreur est survenue lors de la connexion. Veuillez réessayer",q(le))}catch{q(le)}else q(le)},B=async K=>{const{redirectUrl:ne}=K;await y4().getInitialData(),o.value.submitStatus.isSubmited=!0,typeof ne<"u"?dc(ne):($.value,dc("/"))},q=K=>{o.value.submitStatus.hasError=!0,K.message&&(A.value=K.message),Q(K.form.elements)},Q=K=>{K.filter(ne=>ne.type?.toString().toLowerCase()==="hidden").forEach(ne=>{o.value.t3form.setFieldValue(ne.name,ne.value,!1)})},ee=async K=>{const ne=new FormData(K.formRef.value);f.value.submitStatus.pending=!0,o.value.submitStatus.hasError=!1,o.value.submitStatus.isSubmited=!1,o.value.submitStatus.hasError=!0,o.value.submitStatus.message=null,t.uid&&(ne.append("responseElementId",t.uid.toString()),ne.append("responseElementRecursive","1"));try{f.value.submitStatus.pending=!0;const le=await md(t.data.recovery,{method:b.value.method??"post",body:ne});f.value.submitStatus.pending=!1;const pe=le.content.data;if(pe.status==="success")f.value.submitStatus.isSubmited=!0,f.value.submitStatus.message=pe.message;else if(f.value.submitStatus.hasError=!0,f.value.submitStatus.message=pe.message,pe.errors)try{const ae={};for(const[se,ce]of Object.entries(pe.errors??[])){const ye=`tx_felogin_login${se}`;ae[ye]=ce}f.value.t3form.setErrors(ae)}catch{}}catch{f.value.submitStatus.pending=!1,f.value.submitStatus.hasError=!0,f.value.submitStatus.message="Une erreur est survenue. Veuillez réessayer."}},Y=async K=>{const ne=new FormData(K.formRef.value);m.value.submitStatus.pending=!0,t.uid&&(ne.append("responseElementId",t.uid.toString()),ne.append("responseElementRecursive","1"));try{const pe=(await md(T.value.action,{method:T.value.method??"post",body:ne})).content.data;if(pe.status==="success")m.value.submitStatus.isSubmited=!0,m.value.submitStatus.message=pe.message,m.value.submitStatus.hasError=!1,z("#form_message");else if(m.value.submitStatus.isSubmited=!1,m.value.submitStatus.hasError=!0,m.value.submitStatus.message=pe.message,pe.errors)try{const ae={};for(const[se,ce]of Object.entries(pe.errors??[])){const ye=`tx_felogin_login${se}`;ae[ye]=ce}m.value.t3form.setErrors(ae)}catch{}}catch{m.value.submitStatus.isSubmited=!1,m.value.submitStatus.hasError=!0,m.value.submitStatus.message="Une erreur est survenue. Veuillez réessayer."}m.value.submitStatus.pending=!1},z=K=>{ur(()=>{const ne=document.querySelector(K);if(!ne)return;const pe=ne.getBoundingClientRect().top+window.scrollY-120;window.scrollTo({top:pe,behavior:"smooth"}
950),ne.focus({preventScroll:!0})})},H=me({padding:"1.5rem 0"});return(K,ne)=>{const le=YI,pe=cr;return Z(),Ce("div",{ref_key:"elRef",ref:s,class:de(["login fe-login",v(Wa)(),v(me)({"& [data-form-container]":{marginBottom:"0 !important"},marginBottom:"5rem"})])},[["error","failure"].includes(e.data.status)?(Z(),Ce(Ct,{key:0},[ke(le,{"is-success":!1,"is-error":!0,message:e.data.message??K.$t("form.errors.error")},null,8,["message"]),v(r).initialData?.loginUrl?(Z(),Se(pe,{key:0,type:"button",link:{text:K.$t("login.buttons.goToLogin")},variante:{classes:"btnTxt",bgColor:"primary"},class:de(v(me)({margin:"2rem 0 0 5.5rem"})),onClick:ne[0]||(ne[0]=ti(ae=>I(),["prevent"]))},null,8,["link","class"])):Ne("",!0)],64)):v(O)==="login"?(Z(),Ce(Ct,{key:1},[v(r)?.isLoggedIn?(Z(),Ce(Ct,{key:0},[Re("p",null,[ne[2]||(ne[2]=_n("Vous êtes connecté au compte ",-1)),Re("strong",null,ht(v(r).userData?.feUser?.username),1),ne[3]||(ne[3]=_n(".",-1))]),ne[4]||(ne[4]=Re("p",null,"Vous allez être redirigé dans quelques secondes.",-1)),v(r).userData?.myaccountUrl?(Z(),Se(pe,{key:0,link:{href:v(r).userData?.myaccountUrl,text:"Accéder à mon espace"},variante:{classes:"btnTxt",bgColor:"primary"},class:de(v(me)({margin:"2rem 0 0 5.5rem"}))},null,8,["link","class"])):Ne("",!0)],64)):Ne("",!0),Ol(ke(f_,{ref_key:"formRef",ref:o,form:v(y),link:{href:v(y).action},uid:e.uid,"custom-submit":U,i18n:{submitButton:v(r)?.isLoggedIn?null:K.$t("login.buttons.login"),sendingLabel:K.$t("login.connecting"),resetButton:!1},class:de([v(r)?.isLoggedIn?v(me)({"& .step_form_prefields":{"& > p":{display:"none"}},"& form > div:not(:first-child)":{display:"none"}}):null])},{title:be(()=>[v(r)?.isLoggedIn?Ne("",!0):(Z(),Ce("h2",bRe,ht(v(y).title||K.$t("login.buttons.login")),1)),Re("div",{class:de([{"show-for-sr":v(N)!=="failure"},v(H),v(N)==="failure"?v(me)({bgColor:"danger",color:"white",padding:"2.5rem !"}):null])},[v(A)&&v(A).message?(Z(),Ce("p",{key:0,"aria-live":"assertive","aria-atomic":"true",innerHTML:v(A).message,class:de(v(me)({marginBottom:0}))},null,10,xRe)):Ne("",!0)],2)]),_:1},8,["form","link","uid","i18n","class"]),[[p_,!v(r)?.isLoggedIn]]),v(b)?(Z(),Se(I7,{key:1,popinId:"mdp_forgotten_popin",popinTitle:K.$t("login.fields.password.forgotten"),popinTitleSr:!1,popinAriaLabel:K.$t("login.fields.password.popinTitle"),popinFull:!1,btnCloseTxt:K.$t("login.fields.password.btnClose")},Tg({content:be(()=>[ke(f_,{ref_key:"recoveryFormRef",ref:f,form:v(b),link:{href:""},uid:e.uid,"custom-submit":ee,i18n:{submitButton:K.$t("login.buttons.recovery"),sendingLabel:K.$t("login.connecting"),resetButton:!1}},null,8,["form","uid","i18n"])]),_:2},[v(r)?.isLoggedIn?void 0:{name:"trigger",fn:be(()=>[ke(pe,{type:"button",link:{text:K.$t("login.fields.password.forgotten")},variante:{classes:"btnTxt",bgColor:"primary"},class:de(v(me)({margin:"2rem 0 0 5.5rem"}))},null,8,["link","class"])]),key:"0"}]),1032,["popinTitle","popinAriaLabel","btnCloseTxt"])):Ne("",!0),v(r).initialData?.registerUrl&&!v(r)?.isLoggedIn?(Z(),Ce("div",{key:2,class:de([v(Qn)({gap:"2.5rem"}),v(me)({margin:"1rem 0 0 5.5rem"})])},[Re("p",{class:de(v(me)({marginBottom:0}))},ht(K.$t("login.noAccount")),3),ke(pe,{link:{text:K.$t("login.create"),href:v(r).initialData?.registerUrl},variante:{classes:"button",bgColor:"white",size:"md"},class:de(v(me)({"& a":{paddingInline:"2.5rem !important",boxShadow:"initial !important"}}))},null,8,["link","class"])],2)):Ne("",!0)],64)):v(O)==="showChangePassword"?(Z(),Ce(Ct,{key:2},[Re("div",{class:de(["form_infos",{"show-for-sr":v(N)!=="failure"}])},[v(A)&&v(A).header?(Z(),Ce("p",{key:0,innerHTML:v(A).header},null,8,wRe)):Ne("",!0),v(A)&&v(A).message?(Z(),Ce("p",{key:1,innerHTML:v(A).message},null,8,SRe)):Ne("",!0)],2),ke(f_,{ref_key:"changePasswordFormRef",ref:m,form:v(T),link:{href:v(T).action},uid:e.uid,"custom-submit":Y,i18n:{submitButton:K.$t("login.buttons.changepassword"),sendingLabel:K.$t("login.connecting"),resetButton:!1}},null,8,["form","link","uid","i18n"]),v(r).initialData?.loginUrl&&(e.type!="felogin_login"||v(m)?.submitStatus.isSubmited)?(Z(),Se(pe,{key:0,type:"button",link:{text:K.$t("login.buttons.goToLogin")},variante:{classes:"btnTxt",bgColor:"primary"},class:de(v(me)({margin:"2rem 0 0 5.5rem"})),onClick:ne[1]||(ne[1]=ti(ae=>I(),["prevent"]))},null,8,["link","class"])):Ne("",!0)],64)):Ne("",!0)],2)}}}),TRe=Fe({__name:"T3CeMaskBlocDirectoryList",props:{header:{},headerLayout:{},headerPosition:{},headerLink:{},subheader:{},uid:{},index:{},appearance:{},colPos:{},display_mode:{},items:{}},setup(e){return(t,n)=>{const r=ek;return Z(),Se(r,{header:e.header,headerLayout:e.headerLayout,colPos:e.colPos,display_mode:e.dis
950play_mode,result:e.items},null,8,["header","headerLayout","colPos","display_mode","result"])}}}),kRe={role:"alert",class:"form_message error"},ERe=Fe({__name:"T3FormErrors",props:{errors:{}},setup(e){return(t,n)=>e.errors.length>0?(Z(!0),Ce(Ct,{key:0},ln(e.errors,r=>(Z(),Ce("p",kRe,ht(r),1))),256)):Ne("",!0)}}),PRe=Fe({__name:"T3CeCimpackageProposition",props:["uid","data"],setup(e){const t=e,n=De(null),r=De([]);async function i(a){if(!a.values||!n.value)return;r.value=[];const s=new FormData(a.formRef.value);s.keys().forEach(y=>{(y.endsWith("_raw")||y.endsWith("_raw]"))&&s.delete(y)});let o=[];s.entries().forEach(([y,b])=>{y.endsWith("[]")&&Un(b)&&o.push(y)}),o.forEach(y=>{s.delete(y)}),t.uid&&(s.append("responseElementId",t.uid.toString()),s.append("responseElementRecursive","1"));let f;try{f=await md(t.data.form.link.href,{method:"POST",body:s})}catch{n.value.submitStatus.pending=!1}const m=f?.content?.data;if(!wA(m))if(m?.status==="success")n.value.submitStatus.isSubmited=!0,n.value.submitStatus.message=m.message||"Votre demande a été envoyée.";else{n.value.submitStatus.isSubmited=!1,n.value.submitStatus.pending=!1,n.value.submitStatus.message=m?.message;try{for(const[y,b]of Object.entries(m?.errors??[])){delete m.errors[y];let T=(t.data?.form?.api?.extensionName??"")+y.replaceAll("'","");t.data.form.elements.map($=>$.name).includes(`${T}[]`)&&!T.endsWith("[]")&&(T+="[]"),m.errors[T]=b,n.value.t3form.setErrors(m.errors)}}catch{}}}return(a,s)=>{const o=cr,f=ERe;return Z(),Ce(Ct,null,[!e.data.error&&e.data?.linksToDetail?(Z(),Ce("div",{key:0,class:de([v(Wa)(),v(Qn)({alignItems:"center",gap:".5rem",marginBottom:"2rem"})])},[Re("p",{class:de(v(me)({marginBottom:0}))},"Vous pouvez visualiser votre fiche ici :",2),ke(o,{link:e.data?.linksToDetail,variante:{classes:"btnTxt",bgColor:"primay"}},null,8,["link"])],2)):Ne("",!0),e.data.error?(Z(),Ce(Ct,{key:1},[Re("p",null,ht(e.data.error),1),ke(o,{link:{href:"#",text:"Retour à la page précédente"},variante:{classes:"pictoRound",pictoPlacement:"left",pictoColor:"primary",pictoSize:"md"},picto:"prev",onClick:s[0]||(s[0]=ti(m=>("useRouter"in a?a.useRouter:v(ja))().back(),["prevent"]))})],64)):Ol((Z(),Se(f_,{key:2,form:e.data.form,uid:t.uid,"custom-submit":i,ref_key:"t3FrameworkRef",ref:n,i18n:{submitButton:e.data?.form?.renderingOptions?.submitButtonLabel??"Envoyer",sendingLabel:"En cours d'envoi",resetButton:"Réinitialiser",serverSuccess:"Le formulaire a été envoyé, merci.",serverError:"Nous ne pouvons pas traiter le formulaire pour le moment, veuillez réessayer plus tard.",validationErrors:"Il y a eu des erreurs, merci de revoir le formulaire"}},{"before-form":be(()=>[ke(f,{errors:v(r)},null,8,["errors"])]),_:1},8,["form","uid","i18n"])),[[p_,e.data.form]])],64)}}}),gk=Fe({__name:"T3RendererEdito",props:{content:{default:()=>[]},frame:{type:Boolean,default:!0},class:{}},setup(e){const t=(n,r)=>{const{id:i,type:a,appearance:s,content:o,colPos:f}=n;let m;switch(a){case"mask_bloc_":m=Va("T3CeMaskBloc");break;case"cimeos-2cols":m=uOe;break;case"cimeos-3cols":m=cOe;break;case"mask_bloc_accordion":m=dOe;break;case"mask_bloc_audio_player":m=fOe;break;case"mask_bloc_buttons":m=iK;break;case"mask_bloc_contact":m=ZW;break;case"mask_bloc_diaporama_pictures":m=hOe;break;case"mask_bloc_diaporama_videos":m=Va("T3CeMaskBlocDiaporamaVideos");break;case"mask_bloc_downloads":m=pOe;break;case"mask_bloc_elected":m=gOe;break;case"mask_bloc_external_widget":m=yOe;break;case"mask_bloc_faq":m=vOe;break;case"mask_bloc_geolocation":m=_Oe;break;case"mask_bloc_highlight_content":m=bOe;break;case"mask_bloc_key_numbers":m=xOe;break;case"mask_bloc_quote":m=TOe;break;case"mask_bloc_see_also":m=kOe;break;case"mask_bloc_test_integration":m=EOe;break;case"mask_bloc_useful_links":m=POe;break;case"mask_bloc_video":m=KW;break;case"mask_bloc_timeline":m=$Oe;break;case"cimdashboard_show":m=AOe;break;case"cimdirectory_display":m=DOe;break;case"cimelastic_search":m=Va("T3CeCimElasticSearch");break;case"cimsearchelastic_displaysearch":m=rK;break;case"cimsubpages_displaysubpages":m=LOe;break;case"cimcomarquage_display":m=JOe;break;case"cimpoll_displaypoll":m=hRe;break;case"mask_bloc_phototeque":m=Va("T3CeMaskBlocPhototeque");break;case"html":m=sK;break;case"menu_pages":m=hK;break;case"menu_pages_list":m=L7;break;case"menu_sitemap_pages":m=gRe;break;case"shortcut":m=vRe;break;case"textpic":m=AI;break;case"cimsearchelastic_tinyinteractivemap":m=_Re;break;case"form_formframework":m=f_;break;case"felogin_login":m=CRe;break;case"mask_bloc_directory_list":m=TRe;break;default:m=oK(a);break}return a.startsWith("cimpackage_")&&(a.endsWith("creation")||a.endsWith("modification"))&&(m=PRe),Yn(m,{uid:i,appearance:s,index:r,colPos:f,type:a,content_color:n.content_color,show_in_summary:n.show_in_summary,id:s.frameClass==="none"?`c${i}`:null,...o})};return(n,r)=>(Z(!0),Ce(Ct,null,ln(e.content,(i,a)=>(Z(),Se(xr(t(i,a)),{key:a,class:de(e.class),id:`c${i.id}`},null,8,["class","id"]))),128))}}),$Re={key:0},MRe=Fe({__name:"T3BlError",props:{pageData:{},error:{}},setup(e){return(t,n)=>{const r=gk,i=ZG;return Z(),Se(i,{pageData:e.pageData,data:e.pageData?.meta,mainContent:e.pageData?.content?.colPos0,asideContent:e.pageData?.content?.colPos1,bottomContent:e.pageData?.content?.colPos2,isError:!0},{mainContent:be(()=>[e.error.statusCode?(Z(),Ce("p",$Re,"Code d'erreur : "+ht(e.error.statusCode),1)):Ne("",!0),ke(r,{content:e.pageData?.content?.colPos0},null,8,["content"])]),asideContent:be(()=>[ke(r,{content:e.pageData?.content?.colPos1},null,8,["content"])]),bottomContent:be(()=>[ke(r,{content:e.pageData?.content?.colPos2},null,8,["content"])]),_:1},8,["pageData","data","mainContent","asideContent","bottomContent"])}}}),pK=_V,ARe=Fe({name:"LayoutLoader",inheritAttrs:!1,props:{name:String,layoutProps:Object},setup(e,t){return()=>Yn(ep[e.name],e.layoutProps,t.slots)}}),IRe={name:{type:[String,Boolean,Object],default:null},fallback:{type:[String,Object],default:null}},DRe=Fe({name:"NuxtLayout",inheritAttrs:!1,props:IRe,setup(e,t){const n=En(),r=Ai(Uy),a=!r||r===Td()?CV():r,s=xe(()=>{let y=v(e.name)??a?.meta.layout??pK(a?.path).appLayout??"default";return y&&!(y in ep)&&e.fallback&&(y=v(e.fallback)),y}),o=Bn();t.expose({layoutRef:o});const f=n.deferHydration();if(n.isHydrating){const y=n.hooks.hookOnce("app:error",f);ja().beforeEach(y)}let m;return()=>{const b=!!s.value&&s.value in ep&&!!(a?.meta.layoutTransition??Y9),T=b&&FV([a?.meta.layoutTransition,Y9,{onBeforeLeave(){n["~transitionPromise"]=new Promise($=>{n["~transitionFinish"]=$})},onAfterLeave(){n["~transitionFinish"]?.(),delete n["~transitionFinish"],delete n["~transitionPromise"]}}]),x=m;return m=s.value,BV(T,{default:()=>Yn(GM,{suspensible:!0,onResolve:async()=>{await ur(f)}},{default:()=>Yn(LRe,{layoutProps:vn(t.attrs,a.meta.layoutProps??{},{ref:o}),key:s.value||void 0,name:s.value,shouldProvide:!e.name,isRenderingNewLayout:$=>$!==x&&$===s.value,hasTransition:b},t.slots)})}).default()}}}),LRe=Fe({name:"NuxtLayoutProvider",inheritAttrs:!1,props:{name:{type:[String,Boolean]},layoutProps:{type:Object},hasTransition:{type:Boolean},shouldProvide:{type:Boolean},isRenderingNewLayout:{type:Function,required:!0}},setup(e,t){const n=e.name;e.shouldProvide&&co(rV,{isCurrent:a=>n===!1||n===(a.meta.layout??pK(a.path).appLayout??"default")});const r=Ai(Uy);if(r&&r===Td()){const a=CV(),s={};for(const o in a){const f=o;Object.defineProperty(s,f,{enumerable:!0,get:()=>e.isRenderingNewLayout(e.name)?a[f]:r[f]})}co(Uy,Sf(s))}return()=>!n||typeof n=="string"&&!(n in ep)?t.slots.default?.():Yn(ARe,{key:n,layoutProps:e.layoutProps,name:n},t.slots)}}),ORe=()=>{const e=En(),t=jq(),{currentSiteOptions:n}=xw();return{redirect:async a=>{await e.callHook("t3:redirect",a);const{redirectUrl:s,statusCode:o}=a,f=zq(s,{acceptRelative:!0});return await e.runWithContext(()=>dc(s,{external:f,replace:!0}))},localePath:a=>{const{i18n:s}=n.value,o=s.default===t.value?"":t.value;return Vq(`/${o}${a?`/${a}
950`:""}`)}}},RRe=(e="default")=>e in ep,BRe=()=>{const{getCurrentLocaleData:e}=dT(),t=e(),n=WV(),{currentSiteOptions:r}=xw(),i=xe(()=>n.value?.meta),a=xe(()=>{const{twitterTitle:T,twitterDescription:x,twitterImage:$,twitterCard:A,title:N,description:O,ogImage:I}=i.value;return[{id:"twitter:title",name:"twitter:title",content:T||N},{id:"twitter:description",name:"twitter:description",content:x||O},{id:"twitter:image",name:"twitter:image",content:$?.publicUrl||I?.publicUrl||void 0},{id:"twitter:card",name:"twitter:card",content:A||"summary"}]}),s=xe(()=>{const{ogTitle:T,ogDescription:x,ogImage:$,title:A,description:N}=i.value;return[{id:"og:title",property:"og:title",content:T||A},{id:"og:description",property:"og:description",content:x||N},{id:"og:type",property:"og:type",content:"website"},{id:"og:image",property:"og:image",content:$?.publicUrl||void 0}]}),o=xe(()=>[{id:"generator",name:"generator",content:"TYPO3 CMS x T3Headless"},{id:"description",name:"description",content:i?.value?.description},{id:"robots",name:"robots",content:Object.keys(i.value?.robots||{}).filter(T=>i.value?.robots[T]).join(", ")}]),f=xe(()=>{const T=[],x=r.value?.baseUrl,$={rel:"canonical",href:i.value?.canonical?.href||""};return x&&n.value?.i18n.forEach(A=>{A.active&&($.href=x+($.href||A.link)),A.languageId===0&&T.push({rel:"alternate",hreflang:"x-default",href:x+A.link}),A.available&&T.push({rel:"alternate",hreflang:A.hreflang,href:x+A.link})}),$.href&&T.push($),T}),m=xe(()=>{if(!i.value)return{};const T=Array.prototype.concat(o.value,a.value,s.value);return{title:i?.value?.title,htmlAttrs:{lang:t?.twoLetterIsoCode,dir:t?.direction},bodyAttrs:{class:y},meta:b(T),link:f}}),y=xe(()=>{const T={pid:n.value?.id,layout:n.value?.appearance?.layout},x=[];for(const A in T)T[A]!==void 0&&x.push(`${A}-${T[A]}`);return x.join(" ")}),b=T=>T.filter(({content:x})=>!!x&&(Object.keys(x).length>0||typeof x=="string"&&x.length>0));return{metaData:i,headData:m,twitter:a,base:o,opengraph:s,openGraph:s}},FRe=async(e={route:Td(),fetchOnInit:!0})=>{const{route:t,fetchOnInit:n}=e,r=ul().public.typo3Internals?.useLegacyAsyncDataPageKey,{pageData:i,getPage:a,getPageKey:s}=hu(),{headData:o}=BRe(),{redirect:f}=ORe(),{payload:m}=En(),y=xe(()=>s(t.fullPath)),{data:b,execute:T,error:x}=qV(r?y.value:y,()=>a(t.fullPath),{immediate:!1}),$=async()=>(m.serverRendered||rie(y.value),await T(),x.value&&Gh({...x.value,unhandled:!1,fatal:!0}),b.value?.redirectUrl?f(b.value):(i.value=b.value,{data:b,error:x})),A=xe(()=>{const I=yw();if(!I.value||!("data"in I.value))return null;try{return typeof I.value.data=="string"?JSON.parse(I.value.data):I.value.data}catch{return null}});n&&t&&await $(),nn(()=>t.query,$);const N=i.value?.appearance?.backendLayout||"default",O=RRe(i.value?.appearance?.layout)?i.value?.appearance.layout:"default";return{pageDataFallback:A,pageData:i,getPageData:$,headData:o,backendLayout:N,frontendLayout:O}},zRe=Fe({__name:"error",props:{error:{}},async setup(e){let t,n;const{pageDataFallback:r,backendLayout:i,frontendLayout:a}=([t,n]=jM(()=>FRe()),t=await t,n(),t);return r.value&&fu(r.value.meta),(s,o)=>{const f=MRe,m=DRe;return Z(),Ce("div",null,[ke(m,{name:v(a)||"default"},{default:be(()=>[v(r)?.content&&v(r)?.appearance?.backendLayout?(Z(),Se(f,{key:0,name:v(r).appearance.backendLayout,content:v(r).content,pageData:v(r),error:e.error},null,8,["name","content","pageData","error"])):Ne("",!0)]),_:1},8,["name"])])}}}),NRe={key:0},fz={__name:"nuxt-root",setup(e){const t=()=>null,n=En(),r=n.deferHydration();if(n.isHydrating){const m=n.hooks.hookOnce("app:error",r);ja().beforeEach(m)}const i=!1;co(Uy,Td()),n.hooks.callHookWith(m=>m.map(y=>y()),"vue:setup");const a=yw(),s=!1,o=/bot\b|chrome-lighthouse|facebookexternalhit|google\b/i;nN((m,y,b)=>{if(n.hooks.callHook("vue:error",m,y,b).catch(T=>{}),o.test(navigator.userAgent))return n.hooks.callHook("app:error",m),!1;if(oV(m)&&(m.fatal||m.unhandled))return n.runWithContext(()=>Gh(m)),!1});const f=!1;return(m,y)=>(Z(),Se(GM,{onResolve:v(r)},{default:be(()=>[v(s)?(Z(),Ce("div",NRe)):v(a)?(Z(),Se(v(zRe),{key:1,error:v(a)},null,8,["error"])):v(f)?(Z(),Se(v(t),{key:2,context:v(f)},null,8,["context"])):v(i)?(Z(),Se(xr(v(i)),{key:3})):(Z(),Se(v(bge),{key:4}))]),_:1},8,["onResolve"]))}};let hz;{let e;hz=async function(){if(e)return e;const r=!!(window.__NUXT__?.serverRendered??document.getElementById("__NUXT_DATA__")?.dataset.ssr==="true")?LQ(fz):DQ(fz),i=qee({vueApp:r});async function a(s){await i.callHook("app:error",s),i.payload.error||=lg(s)}r.config.errorHandler=a,i.hook("app:suspense:resolve",()=>{r.config.errorHandler===a&&(r.config.errorHandler=void 0)});try{await Hee(i,xme)}catch(s){a(s)}try{await i.hooks.callHook("app:created",r),await i.hooks.callHook("app:beforeMount",r),r.mount(zee),await i.hooks.callHook("app:mounted",r),await ur()}catch(s){a(s)}return r}
950,e=hz().catch(t=>{throw t})}export{POe as $,ei as A,Qn as B,f1 as C,cr as D,wA as E,Ct as F,Un as G,md as H,XRe as I,ERe as J,f_ as K,hu as L,ug as M,Va as N,I7 as O,Dw as P,bH as Q,d1 as R,AOe as S,gRe as T,L7 as U,hK as V,LOe as W,rK as X,DOe as Y,KW as Z,CRe as _,Se as a,b5e as a$,EOe as a0,kOe as a1,TOe as a2,xOe as a3,bOe as a4,_Oe as a5,vOe as a6,yOe as a7,gOe as a8,pOe as a9,Cu as aA,Vf as aB,_ge as aC,IEe as aD,CT as aE,_u as aF,c0e as aG,_n as aH,WLe as aI,ST as aJ,ZLe as aK,Er as aL,fo as aM,Dg as aN,Tg as aO,S_ as aP,fG as aQ,bEe as aR,ko as aS,Hn as aT,xwe as aU,zn as aV,Twe as aW,HW as aX,F5e as aY,I5e as aZ,S5e as a_,hOe as aa,ZW as ab,iK as ac,fOe as ad,dOe as ae,cOe as af,uOe as ag,PRe as ah,ZG as ai,gk as aj,gG as ak,xe as al,Tr as am,eb as an,nb as ao,ib as ap,hI as aq,tb as ar,Mi as as,Nf as at,ab as au,N_ as av,Gy as aw,IU as ax,zr as ay,VI as az,xr as b,jRe as b$,qLe as b0,aPe as b1,jM as b2,FRe as b3,DRe as b4,MRe as b5,iN as b6,Ol as b7,vn as b8,tBe as b9,Hi as bA,zf as bB,bi as bC,wu as bD,Gj as bE,Ume as bF,mr as bG,bu as bH,Ep as bI,m0e as bJ,Pw as bK,s1 as bL,jme as bM,Og as bN,Rl as bO,Wz as bP,Mw as bQ,To as bR,AA as bS,QRe as bT,GRe as bU,yp as bV,YRe as bW,ege as bX,ti as bY,u1e as bZ,wH as b_,gr as ba,EI as bb,A7 as bc,yr as bd,CW as be,ur as bf,xu as bg,dc as bh,bt as bi,xw as bj,q5e as bk,WV as bl,jq as bm,aK as bn,Ma as bo,RN as bp,TQ as bq,nn as br,qM as bs,Vj as bt,wn as bu,Tl as bv,oa as bw,Cn as bx,_s as by,hi as bz,Ce as c,Ci as c$,ul as c0,Uq as c1,gae as c2,FM as c3,yae as c4,pae as c5,URe as c6,eQ as c7,HRe as c8,uJ as c9,AW as cA,ZRe as cB,jPe as cC,vge as cD,PW as cE,MW as cF,Su as cG,Rf as cH,P1e as cI,tI as cJ,kH as cK,OA as cL,CH as cM,TH as cN,_H as cO,Wi as cP,Ti as cQ,LA as cR,bp as cS,gH as cT,l1 as cU,Xy as cV,Lg as cW,i$ as cX,F1e as cY,K_ as cZ,LT as c_,Bn as ca,Bf as cb,lx as cc,qt as cd,jj as ce,Wa as cf,jX as cg,dT as ch,wW as ci,ja as cj,$G as ck,p_ as cl,jye as cm,Kye as cn,Jye as co,PI as cp,Yye as cq,Wye as cr,cge as cs,oo as ct,iW as cu,aW as cv,y4 as cw,hge as cx,mI as cy,n2e as cz,Fe as d,Aw as d0,FA as d1,fH as d2,JA as d3,Y_ as d4,eI as d5,NT as d6,VM as d7,Qve as d8,Kme as d9,Ix as da,aa as db,In as dc,wTe as dd,KRe as de,Km as df,RB as dg,AI as e,vRe as f,sK as g,Yn as h,vr as i,De as j,fu as k,Re as l,JC as m,de as n,Z as o,Ii as p,En as q,ln as r,v as s,ht as t,oK as u,Fs as v,me as w,Ne as x,be as y,ke as z};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.