576 lines
1.8 MiB
576 lines
1.8 MiB
(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function t(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 n(i){if(i.ep)return;i.ep=!0;const a=t(i);fetch(i.href,a)}})();function Zw(r,e){const t=Object.create(null),n=r.split(",");for(let i=0;i<n.length;i++)t[n[i]]=!0;return e?i=>!!t[i.toLowerCase()]:i=>!!t[i]}const R9="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt",M9=Zw(R9);function By(r){if(Fe(r)){const e={};for(let t=0;t<r.length;t++){const n=r[t],i=Xn(n)?D9(n):By(n);if(i)for(const a in i)e[a]=i[a]}return e}else{if(Xn(r))return r;if(Tn(r))return r}}const N9=/;(?![^(]*\))/g,P9=/:([^]+)/,U9=/\/\*.*?\*\//gs;function D9(r){const e={};return r.replace(U9,"").split(N9).forEach(t=>{if(t){const n=t.split(P9);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e}function Ty(r){let e="";if(Xn(r))e=r;else if(Fe(r))for(let t=0;t<r.length;t++){const n=Ty(r[t]);n&&(e+=n+" ")}else if(Tn(r))for(const t in r)r[t]&&(e+=t+" ");return e.trim()}function Q9(r){if(!r)return null;let{class:e,style:t}=r;return e&&!Xn(e)&&(r.class=Ty(e)),t&&(r.style=By(t)),r}const k9="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",H9=Zw(k9);function GD(r){return!!r||r===""}function G9(r,e){if(r.length!==e.length)return!1;let t=!0;for(let n=0;t&&n<r.length;n++)t=Dc(r[n],e[n]);return t}function Dc(r,e){if(r===e)return!0;let t=jR(r),n=jR(e);if(t||n)return t&&n?r.getTime()===e.getTime():!1;if(t=Vm(r),n=Vm(e),t||n)return r===e;if(t=Fe(r),n=Fe(e),t||n)return t&&n?G9(r,e):!1;if(t=Tn(r),n=Tn(e),t||n){if(!t||!n)return!1;const i=Object.keys(r).length,a=Object.keys(e).length;if(i!==a)return!1;for(const o in r){const s=r.hasOwnProperty(o),A=e.hasOwnProperty(o);if(s&&!A||!s&&A||!Dc(r[o],e[o]))return!1}}return String(r)===String(e)}function Jw(r,e){return r.findIndex(t=>Dc(t,e))}const $9=r=>Xn(r)?r:r==null?"":Fe(r)||Tn(r)&&(r.toString===VD||!ir(r.toString))?JSON.stringify(r,$D,2):String(r),$D=(r,e)=>e&&e.__v_isRef?$D(r,e.value):Pd(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((t,[n,i])=>(t[`${n} =>`]=i,t),{})}:Wf(e)?{[`Set(${e.size})`]:[...e.values()]}:Tn(e)&&!Fe(e)&&!jD(e)?String(e):e,_n={},Nd=[],cA=()=>{},V9=()=>!1,j9=/^on[^a-z]/,by=r=>j9.test(r),AL=r=>r.startsWith("onUpdate:"),Ai=Object.assign,lL=(r,e)=>{const t=r.indexOf(e);t>-1&&r.splice(t,1)},K9=Object.prototype.hasOwnProperty,Gr=(r,e)=>K9.call(r,e),Fe=Array.isArray,Pd=r=>Sy(r)==="[object Map]",Wf=r=>Sy(r)==="[object Set]",jR=r=>Sy(r)==="[object Date]",ir=r=>typeof r=="function",Xn=r=>typeof r=="string",Vm=r=>typeof r=="symbol",Tn=r=>r!==null&&typeof r=="object",uL=r=>Tn(r)&&ir(r.then)&&ir(r.catch),VD=Object.prototype.toString,Sy=r=>VD.call(r),Y9=r=>Sy(r).slice(8,-1),jD=r=>Sy(r)==="[object Object]",cL=r=>Xn(r)&&r!=="NaN"&&r[0]!=="-"&&""+parseInt(r,10)===r,vm=Zw(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),tE=r=>{const e=Object.create(null);return t=>e[t]||(e[t]=r(t))},W9=/-(\w)/g,Mo=tE(r=>r.replace(W9,(e,t)=>t?t.toUpperCase():"")),z9=/\B([A-Z])/g,Rs=tE(r=>r.replace(z9,"-$1").toLowerCase()),xy=tE(r=>r.charAt(0).toUpperCase()+r.slice(1)),gm=tE(r=>r?`on${xy(r)}`:""),Zd=(r,e)=>!Object.is(r,e),Ud=(r,e)=>{for(let t=0;t<r.length;t++)r[t](e)},M1=(r,e,t)=>{Object.defineProperty(r,e,{configurable:!0,enumerable:!1,value:t})},hu=r=>{const e=parseFloat(r);return isNaN(e)?r:e};let KR;const X9=()=>KR||(KR=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let ss;class hL{constructor(e=!1){this.detached=e,this.active=!0,this.effects=[],this.cleanups=[],this.parent=ss,!e&&ss&&(this.index=(ss.scopes||(ss.scopes=[])).push(this)-1)}run(e){if(this.active){const t=ss;try{return ss=this,e()}finally{ss=t}}}on(){ss=this}off(){ss=this.parent}stop(e){if(this.active){let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);if(!this.detached&&this.parent&&!e){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0,this.active=!1}}}function q9(r){return new hL(r)}function KD(r,e=ss){e&&e.active&&e.effects.push(r)}function Z9(){return ss}function J9(r){ss&&ss.cleanups.push(r)}const fL=r=>{const e=new Set(r);return e.w=0,e.n=0,e},YD=r=>(r.w&Qc)>0,WD=r=>(r.n&Qc)>0,tV=({deps:r})=>{if(r.length)for(let e=0;e<r.length;e++)r[e].w|=Qc},eV=r=>{const{deps:e}=r;if(e.length){let t=0;for(let n=0;n<e.length;n++){const i=e[n];YD(i)&&!WD(i)?i.delete(r):e[t++]=i,i.w&=~Qc,i.n&=~Qc}e.length=t}},Lb=new WeakMap;let Xg=0,Qc=1;const Fb=30;let AA;const ff=Symbol(""),Ob=Symbol("");class Iy{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,KD(this,n)}run(){if(!this.active)return this.fn();let e=AA,t=Lc;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=AA,AA=this,Lc=!0,Qc=1<<++Xg,Xg<=Fb?tV(this):YR(this),this.fn()}finally{Xg<=Fb&&eV(this),Qc=1<<--Xg,AA=this.parent,Lc=t,this.parent=void 0,this.deferStop&&this.stop()}}stop(){AA===this?this.deferStop=!0:this.active&&(YR(this),this.onStop&&this.onStop(),this.active=!1)}}function YR(r){const{deps:e}=r;if(e.length){for(let t=0;t<e.length;t++)e[t].delete(r);e.length=0}}function rV(r,e){r.effect&&(r=r.effect.fn);const t=new Iy(r);e&&(Ai(t,e),e.scope&&KD(t,e.scope)),(!e||!e.lazy)&&t.run();const n=t.run.bind(t);return n.effect=t,n}function nV(r){r.effect.stop()}let Lc=!0;const zD=[];function Bv(){zD.push(Lc),Lc=!1}function Tv(){const r=zD.pop();Lc=r===void 0?!0:r}function ps(r,e,t){if(Lc&&AA){let n=Lb.get(r);n||Lb.set(r,n=new Map);let i=n.get(t);i||n.set(t,i=fL()),XD(i)}}function XD(r,e){let t=!1;Xg<=Fb?WD(r)||(r.n|=Qc,t=!YD(r)):t=!r.has(AA),t&&(r.add(AA),AA.deps.push(r))}function fu(r,e,t,n,i,a){const o=Lb.get(r);if(!o)return;let s=[];if(e==="clear")s=[...o.values()];else if(t==="length"&&Fe(r)){const A=hu(n);o.forEach((l,u)=>{(u==="length"||u>=A)&&s.push(l)})}else switch(t!==void 0&&s.push(o.get(t)),e){case"add":Fe(r)?cL(t)&&s.push(o.get("length")):(s.push(o.get(ff)),Pd(r)&&s.push(o.get(Ob)));break;case"delete":Fe(r)||(s.push(o.get(ff)),Pd(r)&&s.push(o.get(Ob)));break;case"set":Pd(r)&&s.push(o.get(ff));break}if(s.length===1)s[0]&&Rb(s[0]);else{const A=[];for(const l of s)l&&A.push(...l);Rb(fL(A))}}function Rb(r,e){const t=Fe(r)?r:[...r];for(const n of t)n.computed&&WR(n);for(const n of t)n.computed||WR(n)}function WR(r,e){(r!==AA||r.allowRecurse)&&(r.scheduler?r.scheduler():r.run())}const iV=Zw("__proto__,__v_isRef,__isVue"),qD=new Set(Object.getOwnPropertyNames(Symbol).filter(r=>r!=="arguments"&&r!=="caller").map(r=>Symbol[r]).filter(Vm)),aV=eE(),oV=eE(!1,!0),sV=eE(!0),AV=eE(!0,!0),zR=lV();function lV(){const r={};return["includes","indexOf","lastIndexOf"].forEach(e=>{r[e]=function(...t){const n=jr(this);for(let a=0,o=this.length;a<o;a++)ps(n,"get",a+"");const i=n[e](...t);return i===-1||i===!1?n[e](...t.map(jr)):i}}),["push","pop","shift","unshift","splice"].forEach(e=>{r[e]=function(...t){Bv();const n=jr(this)[e].apply(this,t);return Tv(),n}}),r}function eE(r=!1,e=!1){return function(n,i,a){if(i==="__v_isReactive")return!r;if(i==="__v_isReadonly")return r;if(i==="__v_isShallow")return e;if(i==="__v_raw"&&a===(r?e?iQ:nQ:e?rQ:eQ).get(n))return n;const o=Fe(n);if(!r&&o&&Gr(zR,i))return Reflect.get(zR,i,a);const s=Reflect.get(n,i,a);return(Vm(i)?qD.has(i):iV(i))||(r||ps(n,"get",i),e)?s:oa(s)?o&&cL(i)?s:s.value:Tn(s)?r?dL(s):zf(s):s}}const uV=ZD(),cV=ZD(!0);function ZD(r=!1){return function(t,n,i,a){let o=t[n];if(Lf(o)&&oa(o)&&!oa(i))return!1;if(!r&&(!jm(i)&&!Lf(i)&&(o=jr(o),i=jr(i)),!Fe(t)&&oa(o)&&!oa(i)))return o.value=i,!0;const s=Fe(t)&&cL(n)?Number(n)<t.length:Gr(t,n),A=Reflect.set(t,n,i,a);return t===jr(a)&&(s?Zd(i,o)&&fu(t,"set",n,i):fu(t,"add",n,i)),A}}function hV(r,e){const t=Gr(r,e);r[e];const n=Reflect.deleteProperty(r,e);return n&&t&&fu(r,"delete",e,void 0),n}function fV(r,e){const t=Reflect.has(r,e);return(!Vm(e)||!qD.has(e))&&ps(r,"has",e),t}function pV(r){return ps(r,"iterate",Fe(r)?"length":ff),Reflect.ownKeys(r)}const JD={get:aV,set:uV,deleteProperty:hV,has:fV,ownKeys:pV},tQ={get:sV,set(r,e){return!0},deleteProperty(r,e){return!0}},dV=Ai({},JD,{get:oV,set:cV}),vV=Ai({},tQ,{get:AV}),pL=r=>r,rE=r=>Reflect.getPrototypeOf(r);function N0(r,e,t=!1,n=!1){r=r.__v_raw;const i=jr(r),a=jr(e);t||(e!==a&&ps(i,"get",e),ps(i,"get",a));const{has:o}=rE(i),s=n?pL:t?mL:Km;if(o.call(i,e))return s(r.get(e));if(o.call(i,a))return s(r.get(a));r!==i&&r.get(e)}function P0(r,e=!1){const t=this.__v_raw,n=jr(t),i=jr(r);return e||(r!==i&&ps(n,"has",r),ps(n,"has",i)),r===i?t.has(r):t.has(r)||t.has(i)}function U0(r,e=!1){return r=r.__v_raw,!e&&ps(jr(r),"iterate",ff),Reflect.get(r,"size",r)}function XR(r){r=jr(r);const e=jr(this);return rE(e).has.call(e,r)||(e.add(r),fu(e,"add",r,r)),this}function qR(r,e){e=jr(e);const t=jr(this),{has:n,get:i}=rE(t);let a=n.call(t,r);a||(r=jr(r),a=n.call(t,r));const o=i.call(t,r);return t.set(r,e),a?Zd(e,o)&&fu(t,"set",r,e):fu(t,"add",r,e),this}function ZR(r){const e=jr(this),{has:t,get:n}=rE(e);let i=t.call(e,r);i||(r=jr(r),i=t.call(e,r)),n&&n.call(e,r);const a=e.delete(r);return i&&fu(e,"delete",r,void 0),a}function JR(){const r=jr(this),e=r.size!==0,t=r.clear();return e&&fu(r,"clear",void 0,void 0),t}function D0(r,e){return function(n,i){const a=this,o=a.__v_raw,s=jr(o),A=e?pL:r?mL:Km;return!r&&ps(s,"iterate",ff),o.forEach((l,u)=>n.call(i,A(l),A(u),a))}}function Q0(r,e,t){return function(...n){const i=this.__v_raw,a=jr(i),o=Pd(a),s=r==="entries"||r===Symbol.iterator&&o,A=r==="keys"&&o,l=i[r](...n),u=t?pL:e?mL:Km;return!e&&ps(a,"iterate",A?Ob:ff),{next(){const{value:c,done:h}=l.next();return h?{value:c,done:h}:{value:s?[u(c[0]),u(c[1])]:u(c),done:h}},[Symbol.iterator](){return this}}}}function Ju(r){return function(...e){return r==="delete"?!1:this}}function gV(){const r={get(a){return N0(this,a)},get size(){return U0(this)},has:P0,add:XR,set:qR,delete:ZR,clear:JR,forEach:D0(!1,!1)},e={get(a){return N0(this,a,!1,!0)},get size(){return U0(this)},has:P0,add:XR,set:qR,delete:ZR,clear:JR,forEach:D0(!1,!0)},t={get(a){return N0(this,a,!0)},get size(){return U0(this,!0)},has(a){return P0.call(this,a,!0)},add:Ju("add"),set:Ju("set"),delete:Ju("delete"),clear:Ju("clear"),forEach:D0(!0,!1)},n={get(a){return N0(this,a,!0,!0)},get size(){return U0(this,!0)},has(a){return P0.call(this,a,!0)},add:Ju("add"),set:Ju("set"),delete:Ju("delete"),clear:Ju("clear"),forEach:D0(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(a=>{r[a]=Q0(a,!1,!1),t[a]=Q0(a,!0,!1),e[a]=Q0(a,!1,!0),n[a]=Q0(a,!0,!0)}),[r,t,e,n]}const[mV,yV,_V,wV]=gV();function nE(r,e){const t=e?r?wV:_V:r?yV:mV;return(n,i,a)=>i==="__v_isReactive"?!r:i==="__v_isReadonly"?r:i==="__v_raw"?n:Reflect.get(Gr(t,i)&&i in n?t:n,i,a)}const EV={get:nE(!1,!1)},CV={get:nE(!1,!0)},BV={get:nE(!0,!1)},TV={get:nE(!0,!0)},eQ=new WeakMap,rQ=new WeakMap,nQ=new WeakMap,iQ=new WeakMap;function bV(r){switch(r){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function SV(r){return r.__v_skip||!Object.isExtensible(r)?0:bV(Y9(r))}function zf(r){return Lf(r)?r:iE(r,!1,JD,EV,eQ)}function aQ(r){return iE(r,!1,dV,CV,rQ)}function dL(r){return iE(r,!0,tQ,BV,nQ)}function xV(r){return iE(r,!0,vV,TV,iQ)}function iE(r,e,t,n,i){if(!Tn(r)||r.__v_raw&&!(e&&r.__v_isReactive))return r;const a=i.get(r);if(a)return a;const o=SV(r);if(o===0)return r;const s=new Proxy(r,o===2?n:t);return i.set(r,s),s}function pf(r){return Lf(r)?pf(r.__v_raw):!!(r&&r.__v_isReactive)}function Lf(r){return!!(r&&r.__v_isReadonly)}function jm(r){return!!(r&&r.__v_isShallow)}function vL(r){return pf(r)||Lf(r)}function jr(r){const e=r&&r.__v_raw;return e?jr(e):r}function gL(r){return M1(r,"__v_skip",!0),r}const Km=r=>Tn(r)?zf(r):r,mL=r=>Tn(r)?dL(r):r;function yL(r){Lc&&AA&&(r=jr(r),XD(r.dep||(r.dep=fL())))}function aE(r,e){r=jr(r),r.dep&&Rb(r.dep)}function oa(r){return!!(r&&r.__v_isRef===!0)}function Io(r){return sQ(r,!1)}function oQ(r){return sQ(r,!0)}function sQ(r,e){return oa(r)?r:new IV(r,e)}class IV{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:jr(e),this._value=t?e:Km(e)}get value(){return yL(this),this._value}set value(e){const t=this.__v_isShallow||jm(e)||Lf(e);e=t?e:jr(e),Zd(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:Km(e),aE(this))}}function LV(r){aE(r)}function df(r){return oa(r)?r.value:r}const FV={get:(r,e,t)=>df(Reflect.get(r,e,t)),set:(r,e,t,n)=>{const i=r[e];return oa(i)&&!oa(t)?(i.value=t,!0):Reflect.set(r,e,t,n)}};function _L(r){return pf(r)?r:new Proxy(r,FV)}class OV{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:t,set:n}=e(()=>yL(this),()=>aE(this));this._get=t,this._set=n}get value(){return this._get()}set value(e){this._set(e)}}function RV(r){return new OV(r)}function kc(r){const e=Fe(r)?new Array(r.length):{};for(const t in r)e[t]=AQ(r,t);return e}class MV{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0}get value(){const e=this._object[this._key];return e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}}function AQ(r,e,t){const n=r[e];return oa(n)?n:new MV(r,e,t)}var lQ;class NV{constructor(e,t,n,i){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this[lQ]=!1,this._dirty=!0,this.effect=new Iy(e,()=>{this._dirty||(this._dirty=!0,aE(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=n}get value(){const e=jr(this);return yL(e),(e._dirty||!e._cacheable)&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}lQ="__v_isReadonly";function PV(r,e,t=!1){let n,i;const a=ir(r);return a?(n=r,i=cA):(n=r.get,i=r.set),new NV(n,i,a||!i,t)}function UV(r,...e){}function iu(r,e,t,n){let i;try{i=n?r(...n):r()}catch(a){Xf(a,e,t)}return i}function fs(r,e,t,n){if(ir(r)){const a=iu(r,e,t,n);return a&&uL(a)&&a.catch(o=>{Xf(o,e,t)}),a}const i=[];for(let a=0;a<r.length;a++)i.push(fs(r[a],e,t,n));return i}function Xf(r,e,t,n=!0){const i=e?e.vnode:null;if(e){let a=e.parent;const o=e.proxy,s=t;for(;a;){const l=a.ec;if(l){for(let u=0;u<l.length;u++)if(l[u](r,o,s)===!1)return}a=a.parent}const A=e.appContext.config.errorHandler;if(A){iu(A,null,10,[r,o,s]);return}}DV(r,t,i,n)}function DV(r,e,t,n=!0){console.error(r)}let Ym=!1,Mb=!1;const $a=[];let YA=0;const Dd=[];let Xl=null,tf=0;const uQ=Promise.resolve();let wL=null;function oE(r){const e=wL||uQ;return r?e.then(this?r.bind(this):r):e}function QV(r){let e=YA+1,t=$a.length;for(;e<t;){const n=e+t>>>1;Wm($a[n])<r?e=n+1:t=n}return e}function sE(r){(!$a.length||!$a.includes(r,Ym&&r.allowRecurse?YA+1:YA))&&(r.id==null?$a.push(r):$a.splice(QV(r.id),0,r),cQ())}function cQ(){!Ym&&!Mb&&(Mb=!0,wL=uQ.then(hQ))}function kV(r){const e=$a.indexOf(r);e>YA&&$a.splice(e,1)}function EL(r){Fe(r)?Dd.push(...r):(!Xl||!Xl.includes(r,r.allowRecurse?tf+1:tf))&&Dd.push(r),cQ()}function tM(r,e=Ym?YA+1:0){for(;e<$a.length;e++){const t=$a[e];t&&t.pre&&($a.splice(e,1),e--,t())}}function N1(r){if(Dd.length){const e=[...new Set(Dd)];if(Dd.length=0,Xl){Xl.push(...e);return}for(Xl=e,Xl.sort((t,n)=>Wm(t)-Wm(n)),tf=0;tf<Xl.length;tf++)Xl[tf]();Xl=null,tf=0}}const Wm=r=>r.id==null?1/0:r.id,HV=(r,e)=>{const t=Wm(r)-Wm(e);if(t===0){if(r.pre&&!e.pre)return-1;if(e.pre&&!r.pre)return 1}return t};function hQ(r){Mb=!1,Ym=!0,$a.sort(HV);const e=cA;try{for(YA=0;YA<$a.length;YA++){const t=$a[YA];t&&t.active!==!1&&iu(t,null,14)}}finally{YA=0,$a.length=0,N1(),Ym=!1,wL=null,($a.length||Dd.length)&&hQ()}}let cd,k0=[];function fQ(r,e){var t,n;cd=r,cd?(cd.enabled=!0,k0.forEach(({event:i,args:a})=>cd.emit(i,...a)),k0=[]):typeof window<"u"&&window.HTMLElement&&!(!((n=(t=window.navigator)===null||t===void 0?void 0:t.userAgent)===null||n===void 0)&&n.includes("jsdom"))?((e.__VUE_DEVTOOLS_HOOK_REPLAY__=e.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(a=>{fQ(a,e)}),setTimeout(()=>{cd||(e.__VUE_DEVTOOLS_HOOK_REPLAY__=null,k0=[])},3e3)):k0=[]}function GV(r,e,...t){if(r.isUnmounted)return;const n=r.vnode.props||_n;let i=t;const a=e.startsWith("update:"),o=a&&e.slice(7);if(o&&o in n){const u=`${o==="modelValue"?"model":o}Modifiers`,{number:c,trim:h}=n[u]||_n;h&&(i=t.map(f=>Xn(f)?f.trim():f)),c&&(i=t.map(hu))}let s,A=n[s=gm(e)]||n[s=gm(Mo(e))];!A&&a&&(A=n[s=gm(Rs(e))]),A&&fs(A,r,6,i);const l=n[s+"Once"];if(l){if(!r.emitted)r.emitted={};else if(r.emitted[s])return;r.emitted[s]=!0,fs(l,r,6,i)}}function pQ(r,e,t=!1){const n=e.emitsCache,i=n.get(r);if(i!==void 0)return i;const a=r.emits;let o={},s=!1;if(!ir(r)){const A=l=>{const u=pQ(l,e,!0);u&&(s=!0,Ai(o,u))};!t&&e.mixins.length&&e.mixins.forEach(A),r.extends&&A(r.extends),r.mixins&&r.mixins.forEach(A)}return!a&&!s?(Tn(r)&&n.set(r,null),null):(Fe(a)?a.forEach(A=>o[A]=null):Ai(o,a),Tn(r)&&n.set(r,o),o)}function AE(r,e){return!r||!by(e)?!1:(e=e.slice(2).replace(/Once$/,""),Gr(r,e[0].toLowerCase()+e.slice(1))||Gr(r,Rs(e))||Gr(r,e))}let ma=null,lE=null;function zm(r){const e=ma;return ma=r,lE=r&&r.type.__scopeId||null,e}function $V(r){lE=r}function VV(){lE=null}const jV=r=>CL;function CL(r,e=ma,t){if(!e||r._n)return r;const n=(...i)=>{n._d&&Hb(-1);const a=zm(e);let o;try{o=r(...i)}finally{zm(a),n._d&&Hb(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function a1(r){const{type:e,vnode:t,proxy:n,withProxy:i,props:a,propsOptions:[o],slots:s,attrs:A,emit:l,render:u,renderCache:c,data:h,setupState:f,ctx:p,inheritAttrs:v}=r;let m,g;const _=zm(r);try{if(t.shapeFlag&4){const C=i||n;m=As(u.call(C,C,c,a,f,h,p)),g=A}else{const C=e;m=As(C.length>1?C(a,{attrs:A,slots:s,emit:l}):C(a,null)),g=e.props?A:YV(A)}}catch(C){_m.length=0,Xf(C,r,1),m=Mn(ja)}let w=m;if(g&&v!==!1){const C=Object.keys(g),{shapeFlag:F}=w;C.length&&F&7&&(o&&C.some(AL)&&(g=WV(g,o)),w=ll(w,g))}return t.dirs&&(w=ll(w),w.dirs=w.dirs?w.dirs.concat(t.dirs):t.dirs),t.transition&&(w.transition=t.transition),m=w,zm(_),m}function KV(r){let e;for(let t=0;t<r.length;t++){const n=r[t];if(Hc(n)){if(n.type!==ja||n.children==="v-if"){if(e)return;e=n}}else return}return e}const YV=r=>{let e;for(const t in r)(t==="class"||t==="style"||by(t))&&((e||(e={}))[t]=r[t]);return e},WV=(r,e)=>{const t={};for(const n in r)(!AL(n)||!(n.slice(9)in e))&&(t[n]=r[n]);return t};function zV(r,e,t){const{props:n,children:i,component:a}=r,{props:o,children:s,patchFlag:A}=e,l=a.emitsOptions;if(e.dirs||e.transition)return!0;if(t&&A>=0){if(A&1024)return!0;if(A&16)return n?eM(n,o,l):!!o;if(A&8){const u=e.dynamicProps;for(let c=0;c<u.length;c++){const h=u[c];if(o[h]!==n[h]&&!AE(l,h))return!0}}}else return(i||s)&&(!s||!s.$stable)?!0:n===o?!1:n?o?eM(n,o,l):!0:!!o;return!1}function eM(r,e,t){const n=Object.keys(e);if(n.length!==Object.keys(r).length)return!0;for(let i=0;i<n.length;i++){const a=n[i];if(e[a]!==r[a]&&!AE(t,a))return!0}return!1}function BL({vnode:r,parent:e},t){for(;e&&e.subTree===r;)(r=e.vnode).el=t,e=e.parent}const dQ=r=>r.__isSuspense,XV={name:"Suspense",__isSuspense:!0,process(r,e,t,n,i,a,o,s,A,l){r==null?ZV(e,t,n,i,a,o,s,A,l):JV(r,e,t,n,i,o,s,A,l)},hydrate:tj,create:TL,normalize:ej},qV=XV;function Xm(r,e){const t=r.props&&r.props[e];ir(t)&&t()}function ZV(r,e,t,n,i,a,o,s,A){const{p:l,o:{createElement:u}}=A,c=u("div"),h=r.suspense=TL(r,i,n,e,c,t,a,o,s,A);l(null,h.pendingBranch=r.ssContent,c,null,n,h,a,o),h.deps>0?(Xm(r,"onPending"),Xm(r,"onFallback"),l(null,r.ssFallback,e,t,n,null,a,o),Qd(h,r.ssFallback)):h.resolve()}function JV(r,e,t,n,i,a,o,s,{p:A,um:l,o:{createElement:u}}){const c=e.suspense=r.suspense;c.vnode=e,e.el=r.el;const h=e.ssContent,f=e.ssFallback,{activeBranch:p,pendingBranch:v,isInFallback:m,isHydrating:g}=c;if(v)c.pendingBranch=h,WA(h,v)?(A(v,h,c.hiddenContainer,null,i,c,a,o,s),c.deps<=0?c.resolve():m&&(A(p,f,t,n,i,null,a,o,s),Qd(c,f))):(c.pendingId++,g?(c.isHydrating=!1,c.activeBranch=v):l(v,i,c),c.deps=0,c.effects.length=0,c.hiddenContainer=u("div"),m?(A(null,h,c.hiddenContainer,null,i,c,a,o,s),c.deps<=0?c.resolve():(A(p,f,t,n,i,null,a,o,s),Qd(c,f))):p&&WA(h,p)?(A(p,h,t,n,i,c,a,o,s),c.resolve(!0)):(A(null,h,c.hiddenContainer,null,i,c,a,o,s),c.deps<=0&&c.resolve()));else if(p&&WA(h,p))A(p,h,t,n,i,c,a,o,s),Qd(c,h);else if(Xm(e,"onPending"),c.pendingBranch=h,c.pendingId++,A(null,h,c.hiddenContainer,null,i,c,a,o,s),c.deps<=0)c.resolve();else{const{timeout:_,pendingId:w}=c;_>0?setTimeout(()=>{c.pendingId===w&&c.fallback(f)},_):_===0&&c.fallback(f)}}function TL(r,e,t,n,i,a,o,s,A,l,u=!1){const{p:c,m:h,um:f,n:p,o:{parentNode:v,remove:m}}=l,g=hu(r.props&&r.props.timeout),_={vnode:r,parent:e,parentComponent:t,isSVG:o,container:n,hiddenContainer:i,anchor:a,deps:0,pendingId:0,timeout:typeof g=="number"?g:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:u,isUnmounted:!1,effects:[],resolve(w=!1){const{vnode:C,activeBranch:F,pendingBranch:O,pendingId:I,effects:b,parentComponent:L,container:N}=_;if(_.isHydrating)_.isHydrating=!1;else if(!w){const P=F&&O.transition&&O.transition.mode==="out-in";P&&(F.transition.afterLeave=()=>{I===_.pendingId&&h(O,N,U,0)});let{anchor:U}=_;F&&(U=p(F),f(F,L,_,!0)),P||h(O,N,U,0)}Qd(_,O),_.pendingBranch=null,_.isInFallback=!1;let x=_.parent,S=!1;for(;x;){if(x.pendingBranch){x.effects.push(...b),S=!0;break}x=x.parent}S||EL(b),_.effects=[],Xm(C,"onResolve")},fallback(w){if(!_.pendingBranch)return;const{vnode:C,activeBranch:F,parentComponent:O,container:I,isSVG:b}=_;Xm(C,"onFallback");const L=p(F),N=()=>{_.isInFallback&&(c(null,w,I,L,O,null,b,s,A),Qd(_,w))},x=w.transition&&w.transition.mode==="out-in";x&&(F.transition.afterLeave=N),_.isInFallback=!0,f(F,O,null,!0),x||N()},move(w,C,F){_.activeBranch&&h(_.activeBranch,w,C,F),_.container=w},next(){return _.activeBranch&&p(_.activeBranch)},registerDep(w,C){const F=!!_.pendingBranch;F&&_.deps++;const O=w.vnode.el;w.asyncDep.catch(I=>{Xf(I,w,0)}).then(I=>{if(w.isUnmounted||_.isUnmounted||_.pendingId!==w.suspenseId)return;w.asyncResolved=!0;const{vnode:b}=w;Gb(w,I,!1),O&&(b.el=O);const L=!O&&w.subTree.el;C(w,b,v(O||w.subTree.el),O?null:p(w.subTree),_,o,A),L&&m(L),BL(w,b.el),F&&--_.deps===0&&_.resolve()})},unmount(w,C){_.isUnmounted=!0,_.activeBranch&&f(_.activeBranch,t,w,C),_.pendingBranch&&f(_.pendingBranch,t,w,C)}};return _}function tj(r,e,t,n,i,a,o,s,A){const l=e.suspense=TL(e,n,t,r.parentNode,document.createElement("div"),null,i,a,o,s,!0),u=A(r,l.pendingBranch=e.ssContent,t,l,a,o);return l.deps===0&&l.resolve(),u}function ej(r){const{shapeFlag:e,children:t}=r,n=e&32;r.ssContent=rM(n?t.default:t),r.ssFallback=n?rM(t.fallback):Mn(ja)}function rM(r){let e;if(ir(r)){const t=Rf&&r._c;t&&(r._d=!1,Zn()),r=r(),t&&(r._d=!0,e=Ro,VQ())}return Fe(r)&&(r=KV(r)),r=As(r),e&&!r.dynamicChildren&&(r.dynamicChildren=e.filter(t=>t!==r)),r}function vQ(r,e){e&&e.pendingBranch?Fe(r)?e.effects.push(...r):e.effects.push(r):EL(r)}function Qd(r,e){r.activeBranch=e;const{vnode:t,parentComponent:n}=r,i=t.el=e.el;n&&n.subTree===t&&(n.vnode.el=i,BL(n,i))}function Ur(r,e){if(Vi){let t=Vi.provides;const n=Vi.parent&&Vi.parent.provides;n===t&&(t=Vi.provides=Object.create(n)),t[r]=e}}function Be(r,e,t=!1){const n=Vi||ma;if(n){const i=n.parent==null?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides;if(i&&r in i)return i[r];if(arguments.length>1)return t&&ir(e)?e.call(n.proxy):e}}function gQ(r,e){return Ly(r,null,e)}function mQ(r,e){return Ly(r,null,{flush:"post"})}function rj(r,e){return Ly(r,null,{flush:"sync"})}const H0={};function ye(r,e,t){return Ly(r,e,t)}function Ly(r,e,{immediate:t,deep:n,flush:i,onTrack:a,onTrigger:o}=_n){const s=Vi;let A,l=!1,u=!1;if(oa(r)?(A=()=>r.value,l=jm(r)):pf(r)?(A=()=>r,n=!0):Fe(r)?(u=!0,l=r.some(w=>pf(w)||jm(w)),A=()=>r.map(w=>{if(oa(w))return w.value;if(pf(w))return of(w);if(ir(w))return iu(w,s,2)})):ir(r)?e?A=()=>iu(r,s,2):A=()=>{if(!(s&&s.isUnmounted))return c&&c(),fs(r,s,3,[h])}:A=cA,e&&n){const w=A;A=()=>of(w())}let c,h=w=>{c=g.onStop=()=>{iu(w,s,4)}},f;if(tv)if(h=cA,e?t&&fs(e,s,3,[A(),u?[]:void 0,h]):A(),i==="sync"){const w=r6();f=w.__watcherHandles||(w.__watcherHandles=[])}else return cA;let p=u?new Array(r.length).fill(H0):H0;const v=()=>{if(g.active)if(e){const w=g.run();(n||l||(u?w.some((C,F)=>Zd(C,p[F])):Zd(w,p)))&&(c&&c(),fs(e,s,3,[w,p===H0?void 0:u&&p[0]===H0?[]:p,h]),p=w)}else g.run()};v.allowRecurse=!!e;let m;i==="sync"?m=v:i==="post"?m=()=>pa(v,s&&s.suspense):(v.pre=!0,s&&(v.id=s.uid),m=()=>sE(v));const g=new Iy(A,m);e?t?v():p=g.run():i==="post"?pa(g.run.bind(g),s&&s.suspense):g.run();const _=()=>{g.stop(),s&&s.scope&&lL(s.scope.effects,g)};return f&&f.push(_),_}function nj(r,e,t){const n=this.proxy,i=Xn(r)?r.includes(".")?yQ(n,r):()=>n[r]:r.bind(n,n);let a;ir(e)?a=e:(a=e.handler,t=e);const o=Vi;Gc(this);const s=Ly(i,a.bind(n),t);return o?Gc(o):Fc(),s}function yQ(r,e){const t=e.split(".");return()=>{let n=r;for(let i=0;i<t.length&&n;i++)n=n[t[i]];return n}}function of(r,e){if(!Tn(r)||r.__v_skip||(e=e||new Set,e.has(r)))return r;if(e.add(r),oa(r))of(r.value,e);else if(Fe(r))for(let t=0;t<r.length;t++)of(r[t],e);else if(Wf(r)||Pd(r))r.forEach(t=>{of(t,e)});else if(jD(r))for(const t in r)of(r[t],e);return r}function bL(){const r={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return ur(()=>{r.isMounted=!0}),fE(()=>{r.isUnmounting=!0}),r}const Ss=[Function,Array],ij={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ss,onEnter:Ss,onAfterEnter:Ss,onEnterCancelled:Ss,onBeforeLeave:Ss,onLeave:Ss,onAfterLeave:Ss,onLeaveCancelled:Ss,onBeforeAppear:Ss,onAppear:Ss,onAfterAppear:Ss,onAppearCancelled:Ss},setup(r,{slots:e}){const t=nh(),n=bL();let i;return()=>{const a=e.default&&uE(e.default(),!0);if(!a||!a.length)return;let o=a[0];if(a.length>1){for(const v of a)if(v.type!==ja){o=v;break}}const s=jr(r),{mode:A}=s;if(n.isLeaving)return dB(o);const l=nM(o);if(!l)return dB(o);const u=Jd(l,s,n,t);Ff(l,u);const c=t.subTree,h=c&&nM(c);let f=!1;const{getTransitionKey:p}=l.type;if(p){const v=p();i===void 0?i=v:v!==i&&(i=v,f=!0)}if(h&&h.type!==ja&&(!WA(l,h)||f)){const v=Jd(h,s,n,t);if(Ff(h,v),A==="out-in")return n.isLeaving=!0,v.afterLeave=()=>{n.isLeaving=!1,t.update.active!==!1&&t.update()},dB(o);A==="in-out"&&l.type!==ja&&(v.delayLeave=(m,g,_)=>{const w=_Q(n,h);w[String(h.key)]=h,m._leaveCb=()=>{g(),m._leaveCb=void 0,delete u.delayedLeave},u.delayedLeave=_})}return o}}},SL=ij;function _Q(r,e){const{leavingVNodes:t}=r;let n=t.get(e.type);return n||(n=Object.create(null),t.set(e.type,n)),n}function Jd(r,e,t,n){const{appear:i,mode:a,persisted:o=!1,onBeforeEnter:s,onEnter:A,onAfterEnter:l,onEnterCancelled:u,onBeforeLeave:c,onLeave:h,onAfterLeave:f,onLeaveCancelled:p,onBeforeAppear:v,onAppear:m,onAfterAppear:g,onAppearCancelled:_}=e,w=String(r.key),C=_Q(t,r),F=(b,L)=>{b&&fs(b,n,9,L)},O=(b,L)=>{const N=L[1];F(b,L),Fe(b)?b.every(x=>x.length<=1)&&N():b.length<=1&&N()},I={mode:a,persisted:o,beforeEnter(b){let L=s;if(!t.isMounted)if(i)L=v||s;else return;b._leaveCb&&b._leaveCb(!0);const N=C[w];N&&WA(r,N)&&N.el._leaveCb&&N.el._leaveCb(),F(L,[b])},enter(b){let L=A,N=l,x=u;if(!t.isMounted)if(i)L=m||A,N=g||l,x=_||u;else return;let S=!1;const P=b._enterCb=U=>{S||(S=!0,U?F(x,[b]):F(N,[b]),I.delayedLeave&&I.delayedLeave(),b._enterCb=void 0)};L?O(L,[b,P]):P()},leave(b,L){const N=String(r.key);if(b._enterCb&&b._enterCb(!0),t.isUnmounting)return L();F(c,[b]);let x=!1;const S=b._leaveCb=P=>{x||(x=!0,L(),P?F(p,[b]):F(f,[b]),b._leaveCb=void 0,C[N]===r&&delete C[N])};C[N]=r,h?O(h,[b,S]):S()},clone(b){return Jd(b,e,t,n)}};return I}function dB(r){if(Oy(r))return r=ll(r),r.children=null,r}function nM(r){return Oy(r)?r.children?r.children[0]:void 0:r}function Ff(r,e){r.shapeFlag&6&&r.component?Ff(r.component.subTree,e):r.shapeFlag&128?(r.ssContent.transition=e.clone(r.ssContent),r.ssFallback.transition=e.clone(r.ssFallback)):r.transition=e}function uE(r,e=!1,t){let n=[],i=0;for(let a=0;a<r.length;a++){let o=r[a];const s=t==null?o.key:String(t)+String(o.key!=null?o.key:a);o.type===ga?(o.patchFlag&128&&i++,n=n.concat(uE(o.children,e,s))):(e||o.type!==ja)&&n.push(s!=null?ll(o,{key:s}):o)}if(i>1)for(let a=0;a<n.length;a++)n[a].patchFlag=-2;return n}function Fy(r){return ir(r)?{setup:r,name:r.name}:r}const vf=r=>!!r.type.__asyncLoader;function aj(r){ir(r)&&(r={loader:r});const{loader:e,loadingComponent:t,errorComponent:n,delay:i=200,timeout:a,suspensible:o=!0,onError:s}=r;let A=null,l,u=0;const c=()=>(u++,A=null,h()),h=()=>{let f;return A||(f=A=e().catch(p=>{if(p=p instanceof Error?p:new Error(String(p)),s)return new Promise((v,m)=>{s(p,()=>v(c()),()=>m(p),u+1)});throw p}).then(p=>f!==A&&A?A:(p&&(p.__esModule||p[Symbol.toStringTag]==="Module")&&(p=p.default),l=p,p)))};return Fy({name:"AsyncComponentWrapper",__asyncLoader:h,get __asyncResolved(){return l},setup(){const f=Vi;if(l)return()=>vB(l,f);const p=_=>{A=null,Xf(_,f,13,!n)};if(o&&f.suspense||tv)return h().then(_=>()=>vB(_,f)).catch(_=>(p(_),()=>n?Mn(n,{error:_}):null));const v=Io(!1),m=Io(),g=Io(!!i);return i&&setTimeout(()=>{g.value=!1},i),a!=null&&setTimeout(()=>{if(!v.value&&!m.value){const _=new Error(`Async component timed out after ${a}ms.`);p(_),m.value=_}},a),h().then(()=>{v.value=!0,f.parent&&Oy(f.parent.vnode)&&sE(f.parent.update)}).catch(_=>{p(_),m.value=_}),()=>{if(v.value&&l)return vB(l,f);if(m.value&&n)return Mn(n,{error:m.value});if(t&&!g.value)return Mn(t)}}})}function vB(r,e){const{ref:t,props:n,children:i,ce:a}=e.vnode,o=Mn(r,n,i);return o.ref=t,o.ce=a,delete e.vnode.ce,o}const Oy=r=>r.type.__isKeepAlive,oj={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(r,{slots:e}){const t=nh(),n=t.ctx;if(!n.renderer)return()=>{const _=e.default&&e.default();return _&&_.length===1?_[0]:_};const i=new Map,a=new Set;let o=null;const s=t.suspense,{renderer:{p:A,m:l,um:u,o:{createElement:c}}}=n,h=c("div");n.activate=(_,w,C,F,O)=>{const I=_.component;l(_,w,C,0,s),A(I.vnode,_,w,C,I,s,F,_.slotScopeIds,O),pa(()=>{I.isDeactivated=!1,I.a&&Ud(I.a);const b=_.props&&_.props.onVnodeMounted;b&&xo(b,I.parent,_)},s)},n.deactivate=_=>{const w=_.component;l(_,h,null,1,s),pa(()=>{w.da&&Ud(w.da);const C=_.props&&_.props.onVnodeUnmounted;C&&xo(C,w.parent,_),w.isDeactivated=!0},s)};function f(_){gB(_),u(_,t,s,!0)}function p(_){i.forEach((w,C)=>{const F=Vb(w.type);F&&(!_||!_(F))&&v(C)})}function v(_){const w=i.get(_);!o||w.type!==o.type?f(w):o&&gB(o),i.delete(_),a.delete(_)}ye(()=>[r.include,r.exclude],([_,w])=>{_&&p(C=>qg(_,C)),w&&p(C=>!qg(w,C))},{flush:"post",deep:!0});let m=null;const g=()=>{m!=null&&i.set(m,mB(t.subTree))};return ur(g),hE(g),fE(()=>{i.forEach(_=>{const{subTree:w,suspense:C}=t,F=mB(w);if(_.type===F.type){gB(F);const O=F.component.da;O&&pa(O,C);return}f(_)})}),()=>{if(m=null,!e.default)return null;const _=e.default(),w=_[0];if(_.length>1)return o=null,_;if(!Hc(w)||!(w.shapeFlag&4)&&!(w.shapeFlag&128))return o=null,w;let C=mB(w);const F=C.type,O=Vb(vf(C)?C.type.__asyncResolved||{}:F),{include:I,exclude:b,max:L}=r;if(I&&(!O||!qg(I,O))||b&&O&&qg(b,O))return o=C,w;const N=C.key==null?F:C.key,x=i.get(N);return C.el&&(C=ll(C),w.shapeFlag&128&&(w.ssContent=C)),m=N,x?(C.el=x.el,C.component=x.component,C.transition&&Ff(C,C.transition),C.shapeFlag|=512,a.delete(N),a.add(N)):(a.add(N),L&&a.size>parseInt(L,10)&&v(a.values().next().value)),C.shapeFlag|=256,o=C,dQ(w.type)?w:C}}},sj=oj;function qg(r,e){return Fe(r)?r.some(t=>qg(t,e)):Xn(r)?r.split(",").includes(e):r.test?r.test(e):!1}function wQ(r,e){CQ(r,"a",e)}function EQ(r,e){CQ(r,"da",e)}function CQ(r,e,t=Vi){const n=r.__wdc||(r.__wdc=()=>{let i=t;for(;i;){if(i.isDeactivated)return;i=i.parent}return r()});if(cE(e,n,t),t){let i=t.parent;for(;i&&i.parent;)Oy(i.parent.vnode)&&Aj(n,e,t,i),i=i.parent}}function Aj(r,e,t,n){const i=cE(e,r,n,!0);pr(()=>{lL(n[e],i)},t)}function gB(r){r.shapeFlag&=-257,r.shapeFlag&=-513}function mB(r){return r.shapeFlag&128?r.ssContent:r}function cE(r,e,t=Vi,n=!1){if(t){const i=t[r]||(t[r]=[]),a=e.__weh||(e.__weh=(...o)=>{if(t.isUnmounted)return;Bv(),Gc(t);const s=fs(e,t,r,o);return Fc(),Tv(),s});return n?i.unshift(a):i.push(a),a}}const Eu=r=>(e,t=Vi)=>(!tv||r==="sp")&&cE(r,(...n)=>e(...n),t),BQ=Eu("bm"),ur=Eu("m"),TQ=Eu("bu"),hE=Eu("u"),fE=Eu("bum"),pr=Eu("um"),bQ=Eu("sp"),SQ=Eu("rtg"),xQ=Eu("rtc");function IQ(r,e=Vi){cE("ec",r,e)}function lj(r,e){const t=ma;if(t===null)return r;const n=vE(t)||t.proxy,i=r.dirs||(r.dirs=[]);for(let a=0;a<e.length;a++){let[o,s,A,l=_n]=e[a];o&&(ir(o)&&(o={mounted:o,updated:o}),o.deep&&of(s),i.push({dir:o,instance:n,value:s,oldValue:void 0,arg:A,modifiers:l}))}return r}function jA(r,e,t,n){const i=r.dirs,a=e&&e.dirs;for(let o=0;o<i.length;o++){const s=i[o];a&&(s.oldValue=a[o].value);let A=s.dir[n];A&&(Bv(),fs(A,t,8,[r.el,s,r,e]),Tv())}}const xL="components",uj="directives";function LQ(r,e){return IL(xL,r,!0,e)||r}const FQ=Symbol();function cj(r){return Xn(r)?IL(xL,r,!1)||r:r||FQ}function hj(r){return IL(uj,r)}function IL(r,e,t=!0,n=!1){const i=ma||Vi;if(i){const a=i.type;if(r===xL){const s=Vb(a,!1);if(s&&(s===e||s===Mo(e)||s===xy(Mo(e))))return a}const o=iM(i[r]||a[r],e)||iM(i.appContext[r],e);return!o&&n?a:o}}function iM(r,e){return r&&(r[e]||r[Mo(e)]||r[xy(Mo(e))])}function fj(r,e,t,n){let i;const a=t&&t[n];if(Fe(r)||Xn(r)){i=new Array(r.length);for(let o=0,s=r.length;o<s;o++)i[o]=e(r[o],o,void 0,a&&a[o])}else if(typeof r=="number"){i=new Array(r);for(let o=0;o<r;o++)i[o]=e(o+1,o,void 0,a&&a[o])}else if(Tn(r))if(r[Symbol.iterator])i=Array.from(r,(o,s)=>e(o,s,void 0,a&&a[s]));else{const o=Object.keys(r);i=new Array(o.length);for(let s=0,A=o.length;s<A;s++){const l=o[s];i[s]=e(r[l],l,s,a&&a[s])}}else i=[];return t&&(t[n]=i),i}function pj(r,e){for(let t=0;t<e.length;t++){const n=e[t];if(Fe(n))for(let i=0;i<n.length;i++)r[n[i].name]=n[i].fn;else n&&(r[n.name]=n.key?(...i)=>{const a=n.fn(...i);return a&&(a.key=n.key),a}:n.fn)}return r}function Or(r,e,t={},n,i){if(ma.isCE||ma.parent&&vf(ma.parent)&&ma.parent.isCE)return e!=="default"&&(t.name=e),Mn("slot",t,n&&n());let a=r[e];a&&a._c&&(a._d=!1),Zn();const o=a&&OQ(a(t)),s=pE(ga,{key:t.key||o&&o.key||`_${e}`},o||(n?n():[]),o&&r._===1?64:-2);return!i&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),a&&a._c&&(a._d=!0),s}function OQ(r){return r.some(e=>Hc(e)?!(e.type===ja||e.type===ga&&!OQ(e.children)):!0)?r:null}function dj(r,e){const t={};for(const n in r)t[e&&/[A-Z]/.test(n)?`on:${n}`:gm(n)]=r[n];return t}const Nb=r=>r?XQ(r)?vE(r)||r.proxy:Nb(r.parent):null,mm=Ai(Object.create(null),{$:r=>r,$el:r=>r.vnode.el,$data:r=>r.data,$props:r=>r.props,$attrs:r=>r.attrs,$slots:r=>r.slots,$refs:r=>r.refs,$parent:r=>Nb(r.parent),$root:r=>Nb(r.root),$emit:r=>r.emit,$options:r=>LL(r),$forceUpdate:r=>r.f||(r.f=()=>sE(r.update)),$nextTick:r=>r.n||(r.n=oE.bind(r.proxy)),$watch:r=>nj.bind(r)}),yB=(r,e)=>r!==_n&&!r.__isScriptSetup&&Gr(r,e),Pb={get({_:r},e){const{ctx:t,setupState:n,data:i,props:a,accessCache:o,type:s,appContext:A}=r;let l;if(e[0]!=="$"){const f=o[e];if(f!==void 0)switch(f){case 1:return n[e];case 2:return i[e];case 4:return t[e];case 3:return a[e]}else{if(yB(n,e))return o[e]=1,n[e];if(i!==_n&&Gr(i,e))return o[e]=2,i[e];if((l=r.propsOptions[0])&&Gr(l,e))return o[e]=3,a[e];if(t!==_n&&Gr(t,e))return o[e]=4,t[e];Ub&&(o[e]=0)}}const u=mm[e];let c,h;if(u)return e==="$attrs"&&ps(r,"get",e),u(r);if((c=s.__cssModules)&&(c=c[e]))return c;if(t!==_n&&Gr(t,e))return o[e]=4,t[e];if(h=A.config.globalProperties,Gr(h,e))return h[e]},set({_:r},e,t){const{data:n,setupState:i,ctx:a}=r;return yB(i,e)?(i[e]=t,!0):n!==_n&&Gr(n,e)?(n[e]=t,!0):Gr(r.props,e)||e[0]==="$"&&e.slice(1)in r?!1:(a[e]=t,!0)},has({_:{data:r,setupState:e,accessCache:t,ctx:n,appContext:i,propsOptions:a}},o){let s;return!!t[o]||r!==_n&&Gr(r,o)||yB(e,o)||(s=a[0])&&Gr(s,o)||Gr(n,o)||Gr(mm,o)||Gr(i.config.globalProperties,o)},defineProperty(r,e,t){return t.get!=null?r._.accessCache[e]=0:Gr(t,"value")&&this.set(r,e,t.value,null),Reflect.defineProperty(r,e,t)}},vj=Ai({},Pb,{get(r,e){if(e!==Symbol.unscopables)return Pb.get(r,e,r)},has(r,e){return e[0]!=="_"&&!M9(e)}});let Ub=!0;function gj(r){const e=LL(r),t=r.proxy,n=r.ctx;Ub=!1,e.beforeCreate&&aM(e.beforeCreate,r,"bc");const{data:i,computed:a,methods:o,watch:s,provide:A,inject:l,created:u,beforeMount:c,mounted:h,beforeUpdate:f,updated:p,activated:v,deactivated:m,beforeDestroy:g,beforeUnmount:_,destroyed:w,unmounted:C,render:F,renderTracked:O,renderTriggered:I,errorCaptured:b,serverPrefetch:L,expose:N,inheritAttrs:x,components:S,directives:P,filters:U}=e;if(l&&mj(l,n,null,r.appContext.config.unwrapInjectedRef),o)for(const rt in o){const nt=o[rt];ir(nt)&&(n[rt]=nt.bind(t))}if(i){const rt=i.call(t,t);Tn(rt)&&(r.data=zf(rt))}if(Ub=!0,a)for(const rt in a){const nt=a[rt],At=ir(nt)?nt.bind(t,t):ir(nt.get)?nt.get.bind(t,t):cA,ct=!ir(nt)&&ir(nt.set)?nt.set.bind(t):cA,bt=qe({get:At,set:ct});Object.defineProperty(n,rt,{enumerable:!0,configurable:!0,get:()=>bt.value,set:M=>bt.value=M})}if(s)for(const rt in s)RQ(s[rt],n,t,rt);if(A){const rt=ir(A)?A.call(t):A;Reflect.ownKeys(rt).forEach(nt=>{Ur(nt,rt[nt])})}u&&aM(u,r,"c");function q(rt,nt){Fe(nt)?nt.forEach(At=>rt(At.bind(t))):nt&&rt(nt.bind(t))}if(q(BQ,c),q(ur,h),q(TQ,f),q(hE,p),q(wQ,v),q(EQ,m),q(IQ,b),q(xQ,O),q(SQ,I),q(fE,_),q(pr,C),q(bQ,L),Fe(N))if(N.length){const rt=r.exposed||(r.exposed={});N.forEach(nt=>{Object.defineProperty(rt,nt,{get:()=>t[nt],set:At=>t[nt]=At})})}else r.exposed||(r.exposed={});F&&r.render===cA&&(r.render=F),x!=null&&(r.inheritAttrs=x),S&&(r.components=S),P&&(r.directives=P)}function mj(r,e,t=cA,n=!1){Fe(r)&&(r=Db(r));for(const i in r){const a=r[i];let o;Tn(a)?"default"in a?o=Be(a.from||i,a.default,!0):o=Be(a.from||i):o=Be(a),oa(o)&&n?Object.defineProperty(e,i,{enumerable:!0,configurable:!0,get:()=>o.value,set:s=>o.value=s}):e[i]=o}}function aM(r,e,t){fs(Fe(r)?r.map(n=>n.bind(e.proxy)):r.bind(e.proxy),e,t)}function RQ(r,e,t,n){const i=n.includes(".")?yQ(t,n):()=>t[n];if(Xn(r)){const a=e[r];ir(a)&&ye(i,a)}else if(ir(r))ye(i,r.bind(t));else if(Tn(r))if(Fe(r))r.forEach(a=>RQ(a,e,t,n));else{const a=ir(r.handler)?r.handler.bind(t):e[r.handler];ir(a)&&ye(i,a,r)}}function LL(r){const e=r.type,{mixins:t,extends:n}=e,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=r.appContext,s=a.get(e);let A;return s?A=s:!i.length&&!t&&!n?A=e:(A={},i.length&&i.forEach(l=>P1(A,l,o,!0)),P1(A,e,o)),Tn(e)&&a.set(e,A),A}function P1(r,e,t,n=!1){const{mixins:i,extends:a}=e;a&&P1(r,a,t,!0),i&&i.forEach(o=>P1(r,o,t,!0));for(const o in e)if(!(n&&o==="expose")){const s=yj[o]||t&&t[o];r[o]=s?s(r[o],e[o]):e[o]}return r}const yj={data:oM,props:Xh,emits:Xh,methods:Xh,computed:Xh,beforeCreate:no,created:no,beforeMount:no,mounted:no,beforeUpdate:no,updated:no,beforeDestroy:no,beforeUnmount:no,destroyed:no,unmounted:no,activated:no,deactivated:no,errorCaptured:no,serverPrefetch:no,components:Xh,directives:Xh,watch:wj,provide:oM,inject:_j};function oM(r,e){return e?r?function(){return Ai(ir(r)?r.call(this,this):r,ir(e)?e.call(this,this):e)}:e:r}function _j(r,e){return Xh(Db(r),Db(e))}function Db(r){if(Fe(r)){const e={};for(let t=0;t<r.length;t++)e[r[t]]=r[t];return e}return r}function no(r,e){return r?[...new Set([].concat(r,e))]:e}function Xh(r,e){return r?Ai(Ai(Object.create(null),r),e):e}function wj(r,e){if(!r)return e;if(!e)return r;const t=Ai(Object.create(null),r);for(const n in e)t[n]=no(r[n],e[n]);return t}function Ej(r,e,t,n=!1){const i={},a={};M1(a,dE,1),r.propsDefaults=Object.create(null),MQ(r,e,i,a);for(const o in r.propsOptions[0])o in i||(i[o]=void 0);t?r.props=n?i:aQ(i):r.type.props?r.props=i:r.props=a,r.attrs=a}function Cj(r,e,t,n){const{props:i,attrs:a,vnode:{patchFlag:o}}=r,s=jr(i),[A]=r.propsOptions;let l=!1;if((n||o>0)&&!(o&16)){if(o&8){const u=r.vnode.dynamicProps;for(let c=0;c<u.length;c++){let h=u[c];if(AE(r.emitsOptions,h))continue;const f=e[h];if(A)if(Gr(a,h))f!==a[h]&&(a[h]=f,l=!0);else{const p=Mo(h);i[p]=Qb(A,s,p,f,r,!1)}else f!==a[h]&&(a[h]=f,l=!0)}}}else{MQ(r,e,i,a)&&(l=!0);let u;for(const c in s)(!e||!Gr(e,c)&&((u=Rs(c))===c||!Gr(e,u)))&&(A?t&&(t[c]!==void 0||t[u]!==void 0)&&(i[c]=Qb(A,s,c,void 0,r,!0)):delete i[c]);if(a!==s)for(const c in a)(!e||!Gr(e,c))&&(delete a[c],l=!0)}l&&fu(r,"set","$attrs")}function MQ(r,e,t,n){const[i,a]=r.propsOptions;let o=!1,s;if(e)for(let A in e){if(vm(A))continue;const l=e[A];let u;i&&Gr(i,u=Mo(A))?!a||!a.includes(u)?t[u]=l:(s||(s={}))[u]=l:AE(r.emitsOptions,A)||(!(A in n)||l!==n[A])&&(n[A]=l,o=!0)}if(a){const A=jr(t),l=s||_n;for(let u=0;u<a.length;u++){const c=a[u];t[c]=Qb(i,A,c,l[c],r,!Gr(l,c))}}return o}function Qb(r,e,t,n,i,a){const o=r[t];if(o!=null){const s=Gr(o,"default");if(s&&n===void 0){const A=o.default;if(o.type!==Function&&ir(A)){const{propsDefaults:l}=i;t in l?n=l[t]:(Gc(i),n=l[t]=A.call(null,e),Fc())}else n=A}o[0]&&(a&&!s?n=!1:o[1]&&(n===""||n===Rs(t))&&(n=!0))}return n}function NQ(r,e,t=!1){const n=e.propsCache,i=n.get(r);if(i)return i;const a=r.props,o={},s=[];let A=!1;if(!ir(r)){const u=c=>{A=!0;const[h,f]=NQ(c,e,!0);Ai(o,h),f&&s.push(...f)};!t&&e.mixins.length&&e.mixins.forEach(u),r.extends&&u(r.extends),r.mixins&&r.mixins.forEach(u)}if(!a&&!A)return Tn(r)&&n.set(r,Nd),Nd;if(Fe(a))for(let u=0;u<a.length;u++){const c=Mo(a[u]);sM(c)&&(o[c]=_n)}else if(a)for(const u in a){const c=Mo(u);if(sM(c)){const h=a[u],f=o[c]=Fe(h)||ir(h)?{type:h}:Object.assign({},h);if(f){const p=uM(Boolean,f.type),v=uM(String,f.type);f[0]=p>-1,f[1]=v<0||p<v,(p>-1||Gr(f,"default"))&&s.push(c)}}}const l=[o,s];return Tn(r)&&n.set(r,l),l}function sM(r){return r[0]!=="$"}function AM(r){const e=r&&r.toString().match(/^\s*function (\w+)/);return e?e[1]:r===null?"null":""}function lM(r,e){return AM(r)===AM(e)}function uM(r,e){return Fe(e)?e.findIndex(t=>lM(t,r)):ir(e)&&lM(e,r)?0:-1}const PQ=r=>r[0]==="_"||r==="$stable",FL=r=>Fe(r)?r.map(As):[As(r)],Bj=(r,e,t)=>{if(e._n)return e;const n=CL((...i)=>FL(e(...i)),t);return n._c=!1,n},UQ=(r,e,t)=>{const n=r._ctx;for(const i in r){if(PQ(i))continue;const a=r[i];if(ir(a))e[i]=Bj(i,a,n);else if(a!=null){const o=FL(a);e[i]=()=>o}}},DQ=(r,e)=>{const t=FL(e);r.slots.default=()=>t},Tj=(r,e)=>{if(r.vnode.shapeFlag&32){const t=e._;t?(r.slots=jr(e),M1(e,"_",t)):UQ(e,r.slots={})}else r.slots={},e&&DQ(r,e);M1(r.slots,dE,1)},bj=(r,e,t)=>{const{vnode:n,slots:i}=r;let a=!0,o=_n;if(n.shapeFlag&32){const s=e._;s?t&&s===1?a=!1:(Ai(i,e),!t&&s===1&&delete i._):(a=!e.$stable,UQ(e,i)),o=e}else e&&(DQ(r,e),o={default:1});if(a)for(const s in i)!PQ(s)&&!(s in o)&&delete i[s]};function QQ(){return{app:null,config:{isNativeTag:V9,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 Sj=0;function xj(r,e){return function(n,i=null){ir(n)||(n=Object.assign({},n)),i!=null&&!Tn(i)&&(i=null);const a=QQ(),o=new Set;let s=!1;const A=a.app={_uid:Sj++,_component:n,_props:i,_container:null,_context:a,_instance:null,version:i6,get config(){return a.config},set config(l){},use(l,...u){return o.has(l)||(l&&ir(l.install)?(o.add(l),l.install(A,...u)):ir(l)&&(o.add(l),l(A,...u))),A},mixin(l){return a.mixins.includes(l)||a.mixins.push(l),A},component(l,u){return u?(a.components[l]=u,A):a.components[l]},directive(l,u){return u?(a.directives[l]=u,A):a.directives[l]},mount(l,u,c){if(!s){const h=Mn(n,i);return h.appContext=a,u&&e?e(h,l):r(h,l,c),s=!0,A._container=l,l.__vue_app__=A,vE(h.component)||h.component.proxy}},unmount(){s&&(r(null,A._container),delete A._container.__vue_app__)},provide(l,u){return a.provides[l]=u,A}};return A}}function U1(r,e,t,n,i=!1){if(Fe(r)){r.forEach((h,f)=>U1(h,e&&(Fe(e)?e[f]:e),t,n,i));return}if(vf(n)&&!i)return;const a=n.shapeFlag&4?vE(n.component)||n.component.proxy:n.el,o=i?null:a,{i:s,r:A}=r,l=e&&e.r,u=s.refs===_n?s.refs={}:s.refs,c=s.setupState;if(l!=null&&l!==A&&(Xn(l)?(u[l]=null,Gr(c,l)&&(c[l]=null)):oa(l)&&(l.value=null)),ir(A))iu(A,s,12,[o,u]);else{const h=Xn(A),f=oa(A);if(h||f){const p=()=>{if(r.f){const v=h?Gr(c,A)?c[A]:u[A]:A.value;i?Fe(v)&&lL(v,a):Fe(v)?v.includes(a)||v.push(a):h?(u[A]=[a],Gr(c,A)&&(c[A]=u[A])):(A.value=[a],r.k&&(u[r.k]=A.value))}else h?(u[A]=o,Gr(c,A)&&(c[A]=o)):f&&(A.value=o,r.k&&(u[r.k]=o))};o?(p.id=-1,pa(p,t)):p()}}}let tc=!1;const G0=r=>/svg/.test(r.namespaceURI)&&r.tagName!=="foreignObject",$0=r=>r.nodeType===8;function Ij(r){const{mt:e,p:t,o:{patchProp:n,createText:i,nextSibling:a,parentNode:o,remove:s,insert:A,createComment:l}}=r,u=(g,_)=>{if(!_.hasChildNodes()){t(null,g,_),N1(),_._vnode=g;return}tc=!1,c(_.firstChild,g,null,null,null),N1(),_._vnode=g,tc&&console.error("Hydration completed but contains mismatches.")},c=(g,_,w,C,F,O=!1)=>{const I=$0(g)&&g.data==="[",b=()=>v(g,_,w,C,F,I),{type:L,ref:N,shapeFlag:x,patchFlag:S}=_;let P=g.nodeType;_.el=g,S===-2&&(O=!1,_.dynamicChildren=null);let U=null;switch(L){case Of:P!==3?_.children===""?(A(_.el=i(""),o(g),g),U=g):U=b():(g.data!==_.children&&(tc=!0,g.data=_.children),U=a(g));break;case ja:P!==8||I?U=b():U=a(g);break;case gf:if(I&&(g=a(g),P=g.nodeType),P===1||P===3){U=g;const tt=!_.children.length;for(let q=0;q<_.staticCount;q++)tt&&(_.children+=U.nodeType===1?U.outerHTML:U.data),q===_.staticCount-1&&(_.anchor=U),U=a(U);return I?a(U):U}else b();break;case ga:I?U=p(g,_,w,C,F,O):U=b();break;default:if(x&1)P!==1||_.type.toLowerCase()!==g.tagName.toLowerCase()?U=b():U=h(g,_,w,C,F,O);else if(x&6){_.slotScopeIds=F;const tt=o(g);if(e(_,tt,null,w,C,G0(tt),O),U=I?m(g):a(g),U&&$0(U)&&U.data==="teleport end"&&(U=a(U)),vf(_)){let q;I?(q=Mn(ga),q.anchor=U?U.previousSibling:tt.lastChild):q=g.nodeType===3?ML(""):Mn("div"),q.el=g,_.component.subTree=q}}else x&64?P!==8?U=b():U=_.type.hydrate(g,_,w,C,F,O,r,f):x&128&&(U=_.type.hydrate(g,_,w,C,G0(o(g)),F,O,r,c))}return N!=null&&U1(N,null,C,_),U},h=(g,_,w,C,F,O)=>{O=O||!!_.dynamicChildren;const{type:I,props:b,patchFlag:L,shapeFlag:N,dirs:x}=_,S=I==="input"&&x||I==="option";if(S||L!==-1){if(x&&jA(_,null,w,"created"),b)if(S||!O||L&48)for(const U in b)(S&&U.endsWith("value")||by(U)&&!vm(U))&&n(g,U,null,b[U],!1,void 0,w);else b.onClick&&n(g,"onClick",null,b.onClick,!1,void 0,w);let P;if((P=b&&b.onVnodeBeforeMount)&&xo(P,w,_),x&&jA(_,null,w,"beforeMount"),((P=b&&b.onVnodeMounted)||x)&&vQ(()=>{P&&xo(P,w,_),x&&jA(_,null,w,"mounted")},C),N&16&&!(b&&(b.innerHTML||b.textContent))){let U=f(g.firstChild,_,g,w,C,F,O);for(;U;){tc=!0;const tt=U;U=U.nextSibling,s(tt)}}else N&8&&g.textContent!==_.children&&(tc=!0,g.textContent=_.children)}return g.nextSibling},f=(g,_,w,C,F,O,I)=>{I=I||!!_.dynamicChildren;const b=_.children,L=b.length;for(let N=0;N<L;N++){const x=I?b[N]:b[N]=As(b[N]);if(g)g=c(g,x,C,F,O,I);else{if(x.type===Of&&!x.children)continue;tc=!0,t(null,x,w,null,C,F,G0(w),O)}}return g},p=(g,_,w,C,F,O)=>{const{slotScopeIds:I}=_;I&&(F=F?F.concat(I):I);const b=o(g),L=f(a(g),_,b,w,C,F,O);return L&&$0(L)&&L.data==="]"?a(_.anchor=L):(tc=!0,A(_.anchor=l("]"),b,L),L)},v=(g,_,w,C,F,O)=>{if(tc=!0,_.el=null,O){const L=m(g);for(;;){const N=a(g);if(N&&N!==L)s(N);else break}}const I=a(g),b=o(g);return s(g),t(null,_,b,I,w,C,G0(b),F),I},m=g=>{let _=0;for(;g;)if(g=a(g),g&&$0(g)&&(g.data==="["&&_++,g.data==="]")){if(_===0)return a(g);_--}return g};return[u,c]}const pa=vQ;function kQ(r){return GQ(r)}function HQ(r){return GQ(r,Ij)}function GQ(r,e){const t=X9();t.__VUE__=!0;const{insert:n,remove:i,patchProp:a,createElement:o,createText:s,createComment:A,setText:l,setElementText:u,parentNode:c,nextSibling:h,setScopeId:f=cA,insertStaticContent:p}=r,v=(j,Z,ft,it=null,V=null,Ot=null,Mt=!1,Et=null,Bt=!!Z.dynamicChildren)=>{if(j===Z)return;j&&!WA(j,Z)&&(it=ot(j),M(j,V,Ot,!0),j=null),Z.patchFlag===-2&&(Bt=!1,Z.dynamicChildren=null);const{type:Ct,ref:Rt,shapeFlag:Nt}=Z;switch(Ct){case Of:m(j,Z,ft,it);break;case ja:g(j,Z,ft,it);break;case gf:j==null&&_(Z,ft,it,Mt);break;case ga:S(j,Z,ft,it,V,Ot,Mt,Et,Bt);break;default:Nt&1?F(j,Z,ft,it,V,Ot,Mt,Et,Bt):Nt&6?P(j,Z,ft,it,V,Ot,Mt,Et,Bt):(Nt&64||Nt&128)&&Ct.process(j,Z,ft,it,V,Ot,Mt,Et,Bt,X)}Rt!=null&&V&&U1(Rt,j&&j.ref,Ot,Z||j,!Z)},m=(j,Z,ft,it)=>{if(j==null)n(Z.el=s(Z.children),ft,it);else{const V=Z.el=j.el;Z.children!==j.children&&l(V,Z.children)}},g=(j,Z,ft,it)=>{j==null?n(Z.el=A(Z.children||""),ft,it):Z.el=j.el},_=(j,Z,ft,it)=>{[j.el,j.anchor]=p(j.children,Z,ft,it,j.el,j.anchor)},w=({el:j,anchor:Z},ft,it)=>{let V;for(;j&&j!==Z;)V=h(j),n(j,ft,it),j=V;n(Z,ft,it)},C=({el:j,anchor:Z})=>{let ft;for(;j&&j!==Z;)ft=h(j),i(j),j=ft;i(Z)},F=(j,Z,ft,it,V,Ot,Mt,Et,Bt)=>{Mt=Mt||Z.type==="svg",j==null?O(Z,ft,it,V,Ot,Mt,Et,Bt):L(j,Z,V,Ot,Mt,Et,Bt)},O=(j,Z,ft,it,V,Ot,Mt,Et)=>{let Bt,Ct;const{type:Rt,props:Nt,shapeFlag:Dt,transition:Yt,dirs:te}=j;if(Bt=j.el=o(j.type,Ot,Nt&&Nt.is,Nt),Dt&8?u(Bt,j.children):Dt&16&&b(j.children,Bt,null,it,V,Ot&&Rt!=="foreignObject",Mt,Et),te&&jA(j,null,it,"created"),Nt){for(const oe in Nt)oe!=="value"&&!vm(oe)&&a(Bt,oe,null,Nt[oe],Ot,j.children,it,V,J);"value"in Nt&&a(Bt,"value",null,Nt.value),(Ct=Nt.onVnodeBeforeMount)&&xo(Ct,it,j)}I(Bt,j,j.scopeId,Mt,it),te&&jA(j,null,it,"beforeMount");const Ae=(!V||V&&!V.pendingBranch)&&Yt&&!Yt.persisted;Ae&&Yt.beforeEnter(Bt),n(Bt,Z,ft),((Ct=Nt&&Nt.onVnodeMounted)||Ae||te)&&pa(()=>{Ct&&xo(Ct,it,j),Ae&&Yt.enter(Bt),te&&jA(j,null,it,"mounted")},V)},I=(j,Z,ft,it,V)=>{if(ft&&f(j,ft),it)for(let Ot=0;Ot<it.length;Ot++)f(j,it[Ot]);if(V){let Ot=V.subTree;if(Z===Ot){const Mt=V.vnode;I(j,Mt,Mt.scopeId,Mt.slotScopeIds,V.parent)}}},b=(j,Z,ft,it,V,Ot,Mt,Et,Bt=0)=>{for(let Ct=Bt;Ct<j.length;Ct++){const Rt=j[Ct]=Et?dc(j[Ct]):As(j[Ct]);v(null,Rt,Z,ft,it,V,Ot,Mt,Et)}},L=(j,Z,ft,it,V,Ot,Mt)=>{const Et=Z.el=j.el;let{patchFlag:Bt,dynamicChildren:Ct,dirs:Rt}=Z;Bt|=j.patchFlag&16;const Nt=j.props||_n,Dt=Z.props||_n;let Yt;ft&&Dh(ft,!1),(Yt=Dt.onVnodeBeforeUpdate)&&xo(Yt,ft,Z,j),Rt&&jA(Z,j,ft,"beforeUpdate"),ft&&Dh(ft,!0);const te=V&&Z.type!=="foreignObject";if(Ct?N(j.dynamicChildren,Ct,Et,ft,it,te,Ot):Mt||nt(j,Z,Et,null,ft,it,te,Ot,!1),Bt>0){if(Bt&16)x(Et,Z,Nt,Dt,ft,it,V);else if(Bt&2&&Nt.class!==Dt.class&&a(Et,"class",null,Dt.class,V),Bt&4&&a(Et,"style",Nt.style,Dt.style,V),Bt&8){const Ae=Z.dynamicProps;for(let oe=0;oe<Ae.length;oe++){const Jt=Ae[oe],fe=Nt[Jt],qt=Dt[Jt];(qt!==fe||Jt==="value")&&a(Et,Jt,fe,qt,V,j.children,ft,it,J)}}Bt&1&&j.children!==Z.children&&u(Et,Z.children)}else!Mt&&Ct==null&&x(Et,Z,Nt,Dt,ft,it,V);((Yt=Dt.onVnodeUpdated)||Rt)&&pa(()=>{Yt&&xo(Yt,ft,Z,j),Rt&&jA(Z,j,ft,"updated")},it)},N=(j,Z,ft,it,V,Ot,Mt)=>{for(let Et=0;Et<Z.length;Et++){const Bt=j[Et],Ct=Z[Et],Rt=Bt.el&&(Bt.type===ga||!WA(Bt,Ct)||Bt.shapeFlag&70)?c(Bt.el):ft;v(Bt,Ct,Rt,null,it,V,Ot,Mt,!0)}},x=(j,Z,ft,it,V,Ot,Mt)=>{if(ft!==it){if(ft!==_n)for(const Et in ft)!vm(Et)&&!(Et in it)&&a(j,Et,ft[Et],null,Mt,Z.children,V,Ot,J);for(const Et in it){if(vm(Et))continue;const Bt=it[Et],Ct=ft[Et];Bt!==Ct&&Et!=="value"&&a(j,Et,Ct,Bt,Mt,Z.children,V,Ot,J)}"value"in it&&a(j,"value",ft.value,it.value)}},S=(j,Z,ft,it,V,Ot,Mt,Et,Bt)=>{const Ct=Z.el=j?j.el:s(""),Rt=Z.anchor=j?j.anchor:s("");let{patchFlag:Nt,dynamicChildren:Dt,slotScopeIds:Yt}=Z;Yt&&(Et=Et?Et.concat(Yt):Yt),j==null?(n(Ct,ft,it),n(Rt,ft,it),b(Z.children,ft,Rt,V,Ot,Mt,Et,Bt)):Nt>0&&Nt&64&&Dt&&j.dynamicChildren?(N(j.dynamicChildren,Dt,ft,V,Ot,Mt,Et),(Z.key!=null||V&&Z===V.subTree)&&OL(j,Z,!0)):nt(j,Z,ft,Rt,V,Ot,Mt,Et,Bt)},P=(j,Z,ft,it,V,Ot,Mt,Et,Bt)=>{Z.slotScopeIds=Et,j==null?Z.shapeFlag&512?V.ctx.activate(Z,ft,it,Mt,Bt):U(Z,ft,it,V,Ot,Mt,Bt):tt(j,Z,Bt)},U=(j,Z,ft,it,V,Ot,Mt)=>{const Et=j.component=zQ(j,it,V);if(Oy(j)&&(Et.ctx.renderer=X),qQ(Et),Et.asyncDep){if(V&&V.registerDep(Et,q),!j.el){const Bt=Et.subTree=Mn(ja);g(null,Bt,Z,ft)}return}q(Et,j,Z,ft,V,Ot,Mt)},tt=(j,Z,ft)=>{const it=Z.component=j.component;if(zV(j,Z,ft))if(it.asyncDep&&!it.asyncResolved){rt(it,Z,ft);return}else it.next=Z,kV(it.update),it.update();else Z.el=j.el,it.vnode=Z},q=(j,Z,ft,it,V,Ot,Mt)=>{const Et=()=>{if(j.isMounted){let{next:Rt,bu:Nt,u:Dt,parent:Yt,vnode:te}=j,Ae=Rt,oe;Dh(j,!1),Rt?(Rt.el=te.el,rt(j,Rt,Mt)):Rt=te,Nt&&Ud(Nt),(oe=Rt.props&&Rt.props.onVnodeBeforeUpdate)&&xo(oe,Yt,Rt,te),Dh(j,!0);const Jt=a1(j),fe=j.subTree;j.subTree=Jt,v(fe,Jt,c(fe.el),ot(fe),j,V,Ot),Rt.el=Jt.el,Ae===null&&BL(j,Jt.el),Dt&&pa(Dt,V),(oe=Rt.props&&Rt.props.onVnodeUpdated)&&pa(()=>xo(oe,Yt,Rt,te),V)}else{let Rt;const{el:Nt,props:Dt}=Z,{bm:Yt,m:te,parent:Ae}=j,oe=vf(Z);if(Dh(j,!1),Yt&&Ud(Yt),!oe&&(Rt=Dt&&Dt.onVnodeBeforeMount)&&xo(Rt,Ae,Z),Dh(j,!0),Nt&&at){const Jt=()=>{j.subTree=a1(j),at(Nt,j.subTree,j,V,null)};oe?Z.type.__asyncLoader().then(()=>!j.isUnmounted&&Jt()):Jt()}else{const Jt=j.subTree=a1(j);v(null,Jt,ft,it,j,V,Ot),Z.el=Jt.el}if(te&&pa(te,V),!oe&&(Rt=Dt&&Dt.onVnodeMounted)){const Jt=Z;pa(()=>xo(Rt,Ae,Jt),V)}(Z.shapeFlag&256||Ae&&vf(Ae.vnode)&&Ae.vnode.shapeFlag&256)&&j.a&&pa(j.a,V),j.isMounted=!0,Z=ft=it=null}},Bt=j.effect=new Iy(Et,()=>sE(Ct),j.scope),Ct=j.update=()=>Bt.run();Ct.id=j.uid,Dh(j,!0),Ct()},rt=(j,Z,ft)=>{Z.component=j;const it=j.vnode.props;j.vnode=Z,j.next=null,Cj(j,Z.props,it,ft),bj(j,Z.children,ft),Bv(),tM(),Tv()},nt=(j,Z,ft,it,V,Ot,Mt,Et,Bt=!1)=>{const Ct=j&&j.children,Rt=j?j.shapeFlag:0,Nt=Z.children,{patchFlag:Dt,shapeFlag:Yt}=Z;if(Dt>0){if(Dt&128){ct(Ct,Nt,ft,it,V,Ot,Mt,Et,Bt);return}else if(Dt&256){At(Ct,Nt,ft,it,V,Ot,Mt,Et,Bt);return}}Yt&8?(Rt&16&&J(Ct,V,Ot),Nt!==Ct&&u(ft,Nt)):Rt&16?Yt&16?ct(Ct,Nt,ft,it,V,Ot,Mt,Et,Bt):J(Ct,V,Ot,!0):(Rt&8&&u(ft,""),Yt&16&&b(Nt,ft,it,V,Ot,Mt,Et,Bt))},At=(j,Z,ft,it,V,Ot,Mt,Et,Bt)=>{j=j||Nd,Z=Z||Nd;const Ct=j.length,Rt=Z.length,Nt=Math.min(Ct,Rt);let Dt;for(Dt=0;Dt<Nt;Dt++){const Yt=Z[Dt]=Bt?dc(Z[Dt]):As(Z[Dt]);v(j[Dt],Yt,ft,null,V,Ot,Mt,Et,Bt)}Ct>Rt?J(j,V,Ot,!0,!1,Nt):b(Z,ft,it,V,Ot,Mt,Et,Bt,Nt)},ct=(j,Z,ft,it,V,Ot,Mt,Et,Bt)=>{let Ct=0;const Rt=Z.length;let Nt=j.length-1,Dt=Rt-1;for(;Ct<=Nt&&Ct<=Dt;){const Yt=j[Ct],te=Z[Ct]=Bt?dc(Z[Ct]):As(Z[Ct]);if(WA(Yt,te))v(Yt,te,ft,null,V,Ot,Mt,Et,Bt);else break;Ct++}for(;Ct<=Nt&&Ct<=Dt;){const Yt=j[Nt],te=Z[Dt]=Bt?dc(Z[Dt]):As(Z[Dt]);if(WA(Yt,te))v(Yt,te,ft,null,V,Ot,Mt,Et,Bt);else break;Nt--,Dt--}if(Ct>Nt){if(Ct<=Dt){const Yt=Dt+1,te=Yt<Rt?Z[Yt].el:it;for(;Ct<=Dt;)v(null,Z[Ct]=Bt?dc(Z[Ct]):As(Z[Ct]),ft,te,V,Ot,Mt,Et,Bt),Ct++}}else if(Ct>Dt)for(;Ct<=Nt;)M(j[Ct],V,Ot,!0),Ct++;else{const Yt=Ct,te=Ct,Ae=new Map;for(Ct=te;Ct<=Dt;Ct++){const Ne=Z[Ct]=Bt?dc(Z[Ct]):As(Z[Ct]);Ne.key!=null&&Ae.set(Ne.key,Ct)}let oe,Jt=0;const fe=Dt-te+1;let qt=!1,rr=0;const ke=new Array(fe);for(Ct=0;Ct<fe;Ct++)ke[Ct]=0;for(Ct=Yt;Ct<=Nt;Ct++){const Ne=j[Ct];if(Jt>=fe){M(Ne,V,Ot,!0);continue}let Pe;if(Ne.key!=null)Pe=Ae.get(Ne.key);else for(oe=te;oe<=Dt;oe++)if(ke[oe-te]===0&&WA(Ne,Z[oe])){Pe=oe;break}Pe===void 0?M(Ne,V,Ot,!0):(ke[Pe-te]=Ct+1,Pe>=rr?rr=Pe:qt=!0,v(Ne,Z[Pe],ft,null,V,Ot,Mt,Et,Bt),Jt++)}const _r=qt?Lj(ke):Nd;for(oe=_r.length-1,Ct=fe-1;Ct>=0;Ct--){const Ne=te+Ct,Pe=Z[Ne],kr=Ne+1<Rt?Z[Ne+1].el:it;ke[Ct]===0?v(null,Pe,ft,kr,V,Ot,Mt,Et,Bt):qt&&(oe<0||Ct!==_r[oe]?bt(Pe,ft,kr,2):oe--)}}},bt=(j,Z,ft,it,V=null)=>{const{el:Ot,type:Mt,transition:Et,children:Bt,shapeFlag:Ct}=j;if(Ct&6){bt(j.component.subTree,Z,ft,it);return}if(Ct&128){j.suspense.move(Z,ft,it);return}if(Ct&64){Mt.move(j,Z,ft,X);return}if(Mt===ga){n(Ot,Z,ft);for(let Nt=0;Nt<Bt.length;Nt++)bt(Bt[Nt],Z,ft,it);n(j.anchor,Z,ft);return}if(Mt===gf){w(j,Z,ft);return}if(it!==2&&Ct&1&&Et)if(it===0)Et.beforeEnter(Ot),n(Ot,Z,ft),pa(()=>Et.enter(Ot),V);else{const{leave:Nt,delayLeave:Dt,afterLeave:Yt}=Et,te=()=>n(Ot,Z,ft),Ae=()=>{Nt(Ot,()=>{te(),Yt&&Yt()})};Dt?Dt(Ot,te,Ae):Ae()}else n(Ot,Z,ft)},M=(j,Z,ft,it=!1,V=!1)=>{const{type:Ot,props:Mt,ref:Et,children:Bt,dynamicChildren:Ct,shapeFlag:Rt,patchFlag:Nt,dirs:Dt}=j;if(Et!=null&&U1(Et,null,ft,j,!0),Rt&256){Z.ctx.deactivate(j);return}const Yt=Rt&1&&Dt,te=!vf(j);let Ae;if(te&&(Ae=Mt&&Mt.onVnodeBeforeUnmount)&&xo(Ae,Z,j),Rt&6)H(j.component,ft,it);else{if(Rt&128){j.suspense.unmount(ft,it);return}Yt&&jA(j,null,Z,"beforeUnmount"),Rt&64?j.type.remove(j,Z,ft,V,X,it):Ct&&(Ot!==ga||Nt>0&&Nt&64)?J(Ct,Z,ft,!1,!0):(Ot===ga&&Nt&384||!V&&Rt&16)&&J(Bt,Z,ft),it&&Y(j)}(te&&(Ae=Mt&&Mt.onVnodeUnmounted)||Yt)&&pa(()=>{Ae&&xo(Ae,Z,j),Yt&&jA(j,null,Z,"unmounted")},ft)},Y=j=>{const{type:Z,el:ft,anchor:it,transition:V}=j;if(Z===ga){z(ft,it);return}if(Z===gf){C(j);return}const Ot=()=>{i(ft),V&&!V.persisted&&V.afterLeave&&V.afterLeave()};if(j.shapeFlag&1&&V&&!V.persisted){const{leave:Mt,delayLeave:Et}=V,Bt=()=>Mt(ft,Ot);Et?Et(j.el,Ot,Bt):Bt()}else Ot()},z=(j,Z)=>{let ft;for(;j!==Z;)ft=h(j),i(j),j=ft;i(Z)},H=(j,Z,ft)=>{const{bum:it,scope:V,update:Ot,subTree:Mt,um:Et}=j;it&&Ud(it),V.stop(),Ot&&(Ot.active=!1,M(Mt,j,Z,ft)),Et&&pa(Et,Z),pa(()=>{j.isUnmounted=!0},Z),Z&&Z.pendingBranch&&!Z.isUnmounted&&j.asyncDep&&!j.asyncResolved&&j.suspenseId===Z.pendingId&&(Z.deps--,Z.deps===0&&Z.resolve())},J=(j,Z,ft,it=!1,V=!1,Ot=0)=>{for(let Mt=Ot;Mt<j.length;Mt++)M(j[Mt],Z,ft,it,V)},ot=j=>j.shapeFlag&6?ot(j.component.subTree):j.shapeFlag&128?j.suspense.next():h(j.anchor||j.el),ut=(j,Z,ft)=>{j==null?Z._vnode&&M(Z._vnode,null,null,!0):v(Z._vnode||null,j,Z,null,null,null,ft),tM(),N1(),Z._vnode=j},X={p:v,um:M,m:bt,r:Y,mt:U,mc:b,pc:nt,pbc:N,n:ot,o:r};let It,at;return e&&([It,at]=e(X)),{render:ut,hydrate:It,createApp:xj(ut,It)}}function Dh({effect:r,update:e},t){r.allowRecurse=e.allowRecurse=t}function OL(r,e,t=!1){const n=r.children,i=e.children;if(Fe(n)&&Fe(i))for(let a=0;a<n.length;a++){const o=n[a];let s=i[a];s.shapeFlag&1&&!s.dynamicChildren&&((s.patchFlag<=0||s.patchFlag===32)&&(s=i[a]=dc(i[a]),s.el=o.el),t||OL(o,s)),s.type===Of&&(s.el=o.el)}}function Lj(r){const e=r.slice(),t=[0];let n,i,a,o,s;const A=r.length;for(n=0;n<A;n++){const l=r[n];if(l!==0){if(i=t[t.length-1],r[i]<l){e[n]=i,t.push(n);continue}for(a=0,o=t.length-1;a<o;)s=a+o>>1,r[t[s]]<l?a=s+1:o=s;l<r[t[a]]&&(a>0&&(e[n]=t[a-1]),t[a]=n)}}for(a=t.length,o=t[a-1];a-- >0;)t[a]=o,o=e[o];return t}const Fj=r=>r.__isTeleport,ym=r=>r&&(r.disabled||r.disabled===""),cM=r=>typeof SVGElement<"u"&&r instanceof SVGElement,kb=(r,e)=>{const t=r&&r.to;return Xn(t)?e?e(t):null:t},Oj={__isTeleport:!0,process(r,e,t,n,i,a,o,s,A,l){const{mc:u,pc:c,pbc:h,o:{insert:f,querySelector:p,createText:v,createComment:m}}=l,g=ym(e.props);let{shapeFlag:_,children:w,dynamicChildren:C}=e;if(r==null){const F=e.el=v(""),O=e.anchor=v("");f(F,t,n),f(O,t,n);const I=e.target=kb(e.props,p),b=e.targetAnchor=v("");I&&(f(b,I),o=o||cM(I));const L=(N,x)=>{_&16&&u(w,N,x,i,a,o,s,A)};g?L(t,O):I&&L(I,b)}else{e.el=r.el;const F=e.anchor=r.anchor,O=e.target=r.target,I=e.targetAnchor=r.targetAnchor,b=ym(r.props),L=b?t:O,N=b?F:I;if(o=o||cM(O),C?(h(r.dynamicChildren,C,L,i,a,o,s),OL(r,e,!0)):A||c(r,e,L,N,i,a,o,s,!1),g)b||V0(e,t,F,l,1);else if((e.props&&e.props.to)!==(r.props&&r.props.to)){const x=e.target=kb(e.props,p);x&&V0(e,x,null,l,0)}else b&&V0(e,O,I,l,1)}$Q(e)},remove(r,e,t,n,{um:i,o:{remove:a}},o){const{shapeFlag:s,children:A,anchor:l,targetAnchor:u,target:c,props:h}=r;if(c&&a(u),(o||!ym(h))&&(a(l),s&16))for(let f=0;f<A.length;f++){const p=A[f];i(p,e,t,!0,!!p.dynamicChildren)}},move:V0,hydrate:Rj};function V0(r,e,t,{o:{insert:n},m:i},a=2){a===0&&n(r.targetAnchor,e,t);const{el:o,anchor:s,shapeFlag:A,children:l,props:u}=r,c=a===2;if(c&&n(o,e,t),(!c||ym(u))&&A&16)for(let h=0;h<l.length;h++)i(l[h],e,t,2);c&&n(s,e,t)}function Rj(r,e,t,n,i,a,{o:{nextSibling:o,parentNode:s,querySelector:A}},l){const u=e.target=kb(e.props,A);if(u){const c=u._lpa||u.firstChild;if(e.shapeFlag&16)if(ym(e.props))e.anchor=l(o(r),e,s(r),t,n,i,a),e.targetAnchor=c;else{e.anchor=o(r);let h=c;for(;h;)if(h=o(h),h&&h.nodeType===8&&h.data==="teleport anchor"){e.targetAnchor=h,u._lpa=e.targetAnchor&&o(e.targetAnchor);break}l(c,e,u,t,n,i,a)}$Q(e)}return e.anchor&&o(e.anchor)}const Mj=Oj;function $Q(r){const e=r.ctx;if(e&&e.ut){let t=r.children[0].el;for(;t!==r.targetAnchor;)t.nodeType===1&&t.setAttribute("data-v-owner",e.uid),t=t.nextSibling;e.ut()}}const ga=Symbol(void 0),Of=Symbol(void 0),ja=Symbol(void 0),gf=Symbol(void 0),_m=[];let Ro=null;function Zn(r=!1){_m.push(Ro=r?null:[])}function VQ(){_m.pop(),Ro=_m[_m.length-1]||null}let Rf=1;function Hb(r){Rf+=r}function jQ(r){return r.dynamicChildren=Rf>0?Ro||Nd:null,VQ(),Rf>0&&Ro&&Ro.push(r),r}function Yi(r,e,t,n,i,a){return jQ(RL(r,e,t,n,i,a,!0))}function pE(r,e,t,n,i){return jQ(Mn(r,e,t,n,i,!0))}function Hc(r){return r?r.__v_isVNode===!0:!1}function WA(r,e){return r.type===e.type&&r.key===e.key}function Nj(r){}const dE="__vInternal",KQ=({key:r})=>r??null,o1=({ref:r,ref_key:e,ref_for:t})=>r!=null?Xn(r)||oa(r)||ir(r)?{i:ma,r,k:e,f:!!t}:r:null;function RL(r,e=null,t=null,n=0,i=null,a=r===ga?0:1,o=!1,s=!1){const A={__v_isVNode:!0,__v_skip:!0,type:r,props:e,key:e&&KQ(e),ref:e&&o1(e),scopeId:lE,slotScopeIds:null,children:t,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:n,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:ma};return s?(NL(A,t),a&128&&r.normalize(A)):t&&(A.shapeFlag|=Xn(t)?8:16),Rf>0&&!o&&Ro&&(A.patchFlag>0||a&6)&&A.patchFlag!==32&&Ro.push(A),A}const Mn=Pj;function Pj(r,e=null,t=null,n=0,i=null,a=!1){if((!r||r===FQ)&&(r=ja),Hc(r)){const s=ll(r,e,!0);return t&&NL(s,t),Rf>0&&!a&&Ro&&(s.shapeFlag&6?Ro[Ro.indexOf(r)]=s:Ro.push(s)),s.patchFlag|=-2,s}if(Vj(r)&&(r=r.__vccOpts),e){e=YQ(e);let{class:s,style:A}=e;s&&!Xn(s)&&(e.class=Ty(s)),Tn(A)&&(vL(A)&&!Fe(A)&&(A=Ai({},A)),e.style=By(A))}const o=Xn(r)?1:dQ(r)?128:Fj(r)?64:Tn(r)?4:ir(r)?2:0;return RL(r,e,t,n,i,o,a,!0)}function YQ(r){return r?vL(r)||dE in r?Ai({},r):r:null}function ll(r,e,t=!1){const{props:n,ref:i,patchFlag:a,children:o}=r,s=e?WQ(n||{},e):n;return{__v_isVNode:!0,__v_skip:!0,type:r.type,props:s,key:s&&KQ(s),ref:e&&e.ref?t&&i?Fe(i)?i.concat(o1(e)):[i,o1(e)]:o1(e):i,scopeId:r.scopeId,slotScopeIds:r.slotScopeIds,children:o,target:r.target,targetAnchor:r.targetAnchor,staticCount:r.staticCount,shapeFlag:r.shapeFlag,patchFlag:e&&r.type!==ga?a===-1?16:a|16:a,dynamicProps:r.dynamicProps,dynamicChildren:r.dynamicChildren,appContext:r.appContext,dirs:r.dirs,transition:r.transition,component:r.component,suspense:r.suspense,ssContent:r.ssContent&&ll(r.ssContent),ssFallback:r.ssFallback&&ll(r.ssFallback),el:r.el,anchor:r.anchor,ctx:r.ctx}}function ML(r=" ",e=0){return Mn(Of,null,r,e)}function Uj(r,e){const t=Mn(gf,null,r);return t.staticCount=e,t}function Rr(r="",e=!1){return e?(Zn(),pE(ja,null,r)):Mn(ja,null,r)}function As(r){return r==null||typeof r=="boolean"?Mn(ja):Fe(r)?Mn(ga,null,r.slice()):typeof r=="object"?dc(r):Mn(Of,null,String(r))}function dc(r){return r.el===null&&r.patchFlag!==-1||r.memo?r:ll(r)}function NL(r,e){let t=0;const{shapeFlag:n}=r;if(e==null)e=null;else if(Fe(e))t=16;else if(typeof e=="object")if(n&65){const i=e.default;i&&(i._c&&(i._d=!1),NL(r,i()),i._c&&(i._d=!0));return}else{t=32;const i=e._;!i&&!(dE in e)?e._ctx=ma:i===3&&ma&&(ma.slots._===1?e._=1:(e._=2,r.patchFlag|=1024))}else ir(e)?(e={default:e,_ctx:ma},t=32):(e=String(e),n&64?(t=16,e=[ML(e)]):t=8);r.children=e,r.shapeFlag|=t}function WQ(...r){const e={};for(let t=0;t<r.length;t++){const n=r[t];for(const i in n)if(i==="class")e.class!==n.class&&(e.class=Ty([e.class,n.class]));else if(i==="style")e.style=By([e.style,n.style]);else if(by(i)){const a=e[i],o=n[i];o&&a!==o&&!(Fe(a)&&a.includes(o))&&(e[i]=a?[].concat(a,o):o)}else i!==""&&(e[i]=n[i])}return e}function xo(r,e,t,n=null){fs(r,e,7,[t,n])}const Dj=QQ();let Qj=0;function zQ(r,e,t){const n=r.type,i=(e?e.appContext:r.appContext)||Dj,a={uid:Qj++,vnode:r,type:n,parent:e,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new hL(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:NQ(n,i),emitsOptions:pQ(n,i),emit:null,emitted:null,propsDefaults:_n,inheritAttrs:n.inheritAttrs,ctx:_n,data:_n,props:_n,attrs:_n,slots:_n,refs:_n,setupState:_n,setupContext:null,suspense:t,suspenseId:t?t.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=e?e.root:a,a.emit=GV.bind(null,a),r.ce&&r.ce(a),a}let Vi=null;const nh=()=>Vi||ma,Gc=r=>{Vi=r,r.scope.on()},Fc=()=>{Vi&&Vi.scope.off(),Vi=null};function XQ(r){return r.vnode.shapeFlag&4}let tv=!1;function qQ(r,e=!1){tv=e;const{props:t,children:n}=r.vnode,i=XQ(r);Ej(r,t,i,e),Tj(r,n);const a=i?kj(r,e):void 0;return tv=!1,a}function kj(r,e){const t=r.type;r.accessCache=Object.create(null),r.proxy=gL(new Proxy(r.ctx,Pb));const{setup:n}=t;if(n){const i=r.setupContext=n.length>1?JQ(r):null;Gc(r),Bv();const a=iu(n,r,0,[r.props,i]);if(Tv(),Fc(),uL(a)){if(a.then(Fc,Fc),e)return a.then(o=>{Gb(r,o,e)}).catch(o=>{Xf(o,r,0)});r.asyncDep=a}else Gb(r,a,e)}else ZQ(r,e)}function Gb(r,e,t){ir(e)?r.type.__ssrInlineRender?r.ssrRender=e:r.render=e:Tn(e)&&(r.setupState=_L(e)),ZQ(r,t)}let D1,$b;function Hj(r){D1=r,$b=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,vj))}}const Gj=()=>!D1;function ZQ(r,e,t){const n=r.type;if(!r.render){if(!e&&D1&&!n.render){const i=n.template||LL(r).template;if(i){const{isCustomElement:a,compilerOptions:o}=r.appContext.config,{delimiters:s,compilerOptions:A}=n,l=Ai(Ai({isCustomElement:a,delimiters:s},o),A);n.render=D1(i,l)}}r.render=n.render||cA,$b&&$b(r)}Gc(r),Bv(),gj(r),Tv(),Fc()}function $j(r){return new Proxy(r.attrs,{get(e,t){return ps(r,"get","$attrs"),e[t]}})}function JQ(r){const e=n=>{r.exposed=n||{}};let t;return{get attrs(){return t||(t=$j(r))},slots:r.slots,emit:r.emit,expose:e}}function vE(r){if(r.exposed)return r.exposeProxy||(r.exposeProxy=new Proxy(_L(gL(r.exposed)),{get(e,t){if(t in e)return e[t];if(t in mm)return mm[t](r)},has(e,t){return t in e||t in mm}}))}function Vb(r,e=!0){return ir(r)?r.displayName||r.name:r.name||e&&r.__name}function Vj(r){return ir(r)&&"__vccOpts"in r}const qe=(r,e)=>PV(r,e,tv);function jj(){return null}function Kj(){return null}function Yj(r){}function Wj(r,e){return null}function zj(){return t6().slots}function Xj(){return t6().attrs}function t6(){const r=nh();return r.setupContext||(r.setupContext=JQ(r))}function qj(r,e){const t=Fe(r)?r.reduce((n,i)=>(n[i]={},n),{}):r;for(const n in e){const i=t[n];i?Fe(i)||ir(i)?t[n]={type:i,default:e[n]}:i.default=e[n]:i===null&&(t[n]={default:e[n]})}return t}function Zj(r,e){const t={};for(const n in r)e.includes(n)||Object.defineProperty(t,n,{enumerable:!0,get:()=>r[n]});return t}function Jj(r){const e=nh();let t=r();return Fc(),uL(t)&&(t=t.catch(n=>{throw Gc(e),n})),[t,()=>Gc(e)]}function gE(r,e,t){const n=arguments.length;return n===2?Tn(e)&&!Fe(e)?Hc(e)?Mn(r,null,[e]):Mn(r,e):Mn(r,null,e):(n>3?t=Array.prototype.slice.call(arguments,2):n===3&&Hc(t)&&(t=[t]),Mn(r,e,t))}const e6=Symbol(""),r6=()=>Be(e6);function tK(){}function eK(r,e,t,n){const i=t[n];if(i&&n6(i,r))return i;const a=e();return a.memo=r.slice(),t[n]=a}function n6(r,e){const t=r.memo;if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(Zd(t[n],e[n]))return!1;return Rf>0&&Ro&&Ro.push(r),!0}const i6="3.2.45",rK={createComponentInstance:zQ,setupComponent:qQ,renderComponentRoot:a1,setCurrentRenderingInstance:zm,isVNode:Hc,normalizeVNode:As},nK=rK,iK=null,aK=null,oK="http://www.w3.org/2000/svg",ef=typeof document<"u"?document:null,hM=ef&&ef.createElement("template"),sK={insert:(r,e,t)=>{e.insertBefore(r,t||null)},remove:r=>{const e=r.parentNode;e&&e.removeChild(r)},createElement:(r,e,t,n)=>{const i=e?ef.createElementNS(oK,r):ef.createElement(r,t?{is:t}:void 0);return r==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:r=>ef.createTextNode(r),createComment:r=>ef.createComment(r),setText:(r,e)=>{r.nodeValue=e},setElementText:(r,e)=>{r.textContent=e},parentNode:r=>r.parentNode,nextSibling:r=>r.nextSibling,querySelector:r=>ef.querySelector(r),setScopeId(r,e){r.setAttribute(e,"")},insertStaticContent(r,e,t,n,i,a){const o=t?t.previousSibling:e.lastChild;if(i&&(i===a||i.nextSibling))for(;e.insertBefore(i.cloneNode(!0),t),!(i===a||!(i=i.nextSibling)););else{hM.innerHTML=n?`<svg>${r}</svg>`:r;const s=hM.content;if(n){const A=s.firstChild;for(;A.firstChild;)s.appendChild(A.firstChild);s.removeChild(A)}e.insertBefore(s,t)}return[o?o.nextSibling:e.firstChild,t?t.previousSibling:e.lastChild]}};function AK(r,e,t){const n=r._vtc;n&&(e=(e?[e,...n]:[...n]).join(" ")),e==null?r.removeAttribute("class"):t?r.setAttribute("class",e):r.className=e}function lK(r,e,t){const n=r.style,i=Xn(t);if(t&&!i){for(const a in t)jb(n,a,t[a]);if(e&&!Xn(e))for(const a in e)t[a]==null&&jb(n,a,"")}else{const a=n.display;i?e!==t&&(n.cssText=t):e&&r.removeAttribute("style"),"_vod"in r&&(n.display=a)}}const fM=/\s*!important$/;function jb(r,e,t){if(Fe(t))t.forEach(n=>jb(r,e,n));else if(t==null&&(t=""),e.startsWith("--"))r.setProperty(e,t);else{const n=uK(r,e);fM.test(t)?r.setProperty(Rs(n),t.replace(fM,""),"important"):r[n]=t}}const pM=["Webkit","Moz","ms"],_B={};function uK(r,e){const t=_B[e];if(t)return t;let n=Mo(e);if(n!=="filter"&&n in r)return _B[e]=n;n=xy(n);for(let i=0;i<pM.length;i++){const a=pM[i]+n;if(a in r)return _B[e]=a}return e}const dM="http://www.w3.org/1999/xlink";function cK(r,e,t,n,i){if(n&&e.startsWith("xlink:"))t==null?r.removeAttributeNS(dM,e.slice(6,e.length)):r.setAttributeNS(dM,e,t);else{const a=H9(e);t==null||a&&!GD(t)?r.removeAttribute(e):r.setAttribute(e,a?"":t)}}function hK(r,e,t,n,i,a,o){if(e==="innerHTML"||e==="textContent"){n&&o(n,i,a),r[e]=t??"";return}if(e==="value"&&r.tagName!=="PROGRESS"&&!r.tagName.includes("-")){r._value=t;const A=t??"";(r.value!==A||r.tagName==="OPTION")&&(r.value=A),t==null&&r.removeAttribute(e);return}let s=!1;if(t===""||t==null){const A=typeof r[e];A==="boolean"?t=GD(t):t==null&&A==="string"?(t="",s=!0):A==="number"&&(t=0,s=!0)}try{r[e]=t}catch{}s&&r.removeAttribute(e)}function eu(r,e,t,n){r.addEventListener(e,t,n)}function fK(r,e,t,n){r.removeEventListener(e,t,n)}function pK(r,e,t,n,i=null){const a=r._vei||(r._vei={}),o=a[e];if(n&&o)o.value=n;else{const[s,A]=dK(e);if(n){const l=a[e]=mK(n,i);eu(r,s,l,A)}else o&&(fK(r,s,o,A),a[e]=void 0)}}const vM=/(?:Once|Passive|Capture)$/;function dK(r){let e;if(vM.test(r)){e={};let n;for(;n=r.match(vM);)r=r.slice(0,r.length-n[0].length),e[n[0].toLowerCase()]=!0}return[r[2]===":"?r.slice(3):Rs(r.slice(2)),e]}let wB=0;const vK=Promise.resolve(),gK=()=>wB||(vK.then(()=>wB=0),wB=Date.now());function mK(r,e){const t=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=t.attached)return;fs(yK(n,t.value),e,5,[n])};return t.value=r,t.attached=gK(),t}function yK(r,e){if(Fe(e)){const t=r.stopImmediatePropagation;return r.stopImmediatePropagation=()=>{t.call(r),r._stopped=!0},e.map(n=>i=>!i._stopped&&n&&n(i))}else return e}const gM=/^on[a-z]/,_K=(r,e,t,n,i=!1,a,o,s,A)=>{e==="class"?AK(r,n,i):e==="style"?lK(r,t,n):by(e)?AL(e)||pK(r,e,t,n,o):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):wK(r,e,n,i))?hK(r,e,n,a,o,s,A):(e==="true-value"?r._trueValue=n:e==="false-value"&&(r._falseValue=n),cK(r,e,n,i))};function wK(r,e,t,n){return n?!!(e==="innerHTML"||e==="textContent"||e in r&&gM.test(e)&&ir(t)):e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&r.tagName==="INPUT"||e==="type"&&r.tagName==="TEXTAREA"||gM.test(e)&&Xn(t)?!1:e in r}function a6(r,e){const t=Fy(r);class n extends mE{constructor(a){super(t,a,e)}}return n.def=t,n}const EK=r=>a6(r,_6),CK=typeof HTMLElement<"u"?HTMLElement:class{};class mE extends CK{constructor(e,t={},n){super(),this._def=e,this._props=t,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&n?n(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,oE(()=>{this._connected||(Wb(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let n=0;n<this.attributes.length;n++)this._setAttr(this.attributes[n].name);new MutationObserver(n=>{for(const i of n)this._setAttr(i.attributeName)}).observe(this,{attributes:!0});const e=(n,i=!1)=>{const{props:a,styles:o}=n;let s;if(a&&!Fe(a))for(const A in a){const l=a[A];(l===Number||l&&l.type===Number)&&(A in this._props&&(this._props[A]=hu(this._props[A])),(s||(s=Object.create(null)))[Mo(A)]=!0)}this._numberProps=s,i&&this._resolveProps(n),this._applyStyles(o),this._update()},t=this._def.__asyncLoader;t?t().then(n=>e(n,!0)):e(this._def)}_resolveProps(e){const{props:t}=e,n=Fe(t)?t:Object.keys(t||{});for(const i of Object.keys(this))i[0]!=="_"&&n.includes(i)&&this._setProp(i,this[i],!0,!1);for(const i of n.map(Mo))Object.defineProperty(this,i,{get(){return this._getProp(i)},set(a){this._setProp(i,a)}})}_setAttr(e){let t=this.getAttribute(e);const n=Mo(e);this._numberProps&&this._numberProps[n]&&(t=hu(t)),this._setProp(n,t,!1)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,i=!0){t!==this._props[e]&&(this._props[e]=t,i&&this._instance&&this._update(),n&&(t===!0?this.setAttribute(Rs(e),""):typeof t=="string"||typeof t=="number"?this.setAttribute(Rs(e),t+""):t||this.removeAttribute(Rs(e))))}_update(){Wb(this._createVNode(),this.shadowRoot)}_createVNode(){const e=Mn(this._def,Ai({},this._props));return this._instance||(e.ce=t=>{this._instance=t,t.isCE=!0;const n=(a,o)=>{this.dispatchEvent(new CustomEvent(a,{detail:o}))};t.emit=(a,...o)=>{n(a,o),Rs(a)!==a&&n(Rs(a),o)};let i=this;for(;i=i&&(i.parentNode||i.host);)if(i instanceof mE){t.parent=i._instance,t.provides=i._instance.provides;break}}),e}_applyStyles(e){e&&e.forEach(t=>{const n=document.createElement("style");n.textContent=t,this.shadowRoot.appendChild(n)})}}function BK(r="$style"){{const e=nh();if(!e)return _n;const t=e.type.__cssModules;if(!t)return _n;const n=t[r];return n||_n}}function TK(r){const e=nh();if(!e)return;const t=e.ut=(i=r(e.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${e.uid}"]`)).forEach(a=>Yb(a,i))},n=()=>{const i=r(e.proxy);Kb(e.subTree,i),t(i)};mQ(n),ur(()=>{const i=new MutationObserver(n);i.observe(e.subTree.el.parentNode,{childList:!0}),pr(()=>i.disconnect())})}function Kb(r,e){if(r.shapeFlag&128){const t=r.suspense;r=t.activeBranch,t.pendingBranch&&!t.isHydrating&&t.effects.push(()=>{Kb(t.activeBranch,e)})}for(;r.component;)r=r.component.subTree;if(r.shapeFlag&1&&r.el)Yb(r.el,e);else if(r.type===ga)r.children.forEach(t=>Kb(t,e));else if(r.type===gf){let{el:t,anchor:n}=r;for(;t&&(Yb(t,e),t!==n);)t=t.nextSibling}}function Yb(r,e){if(r.nodeType===1){const t=r.style;for(const n in e)t.setProperty(`--${n}`,e[n])}}const ec="transition",Tg="animation",PL=(r,{slots:e})=>gE(SL,s6(r),e);PL.displayName="Transition";const o6={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},bK=PL.props=Ai({},SL.props,o6),Qh=(r,e=[])=>{Fe(r)?r.forEach(t=>t(...e)):r&&r(...e)},mM=r=>r?Fe(r)?r.some(e=>e.length>1):r.length>1:!1;function s6(r){const e={};for(const S in r)S in o6||(e[S]=r[S]);if(r.css===!1)return e;const{name:t="v",type:n,duration:i,enterFromClass:a=`${t}-enter-from`,enterActiveClass:o=`${t}-enter-active`,enterToClass:s=`${t}-enter-to`,appearFromClass:A=a,appearActiveClass:l=o,appearToClass:u=s,leaveFromClass:c=`${t}-leave-from`,leaveActiveClass:h=`${t}-leave-active`,leaveToClass:f=`${t}-leave-to`}=r,p=SK(i),v=p&&p[0],m=p&&p[1],{onBeforeEnter:g,onEnter:_,onEnterCancelled:w,onLeave:C,onLeaveCancelled:F,onBeforeAppear:O=g,onAppear:I=_,onAppearCancelled:b=w}=e,L=(S,P,U)=>{cc(S,P?u:s),cc(S,P?l:o),U&&U()},N=(S,P)=>{S._isLeaving=!1,cc(S,c),cc(S,f),cc(S,h),P&&P()},x=S=>(P,U)=>{const tt=S?I:_,q=()=>L(P,S,U);Qh(tt,[P,q]),yM(()=>{cc(P,S?A:a),Wl(P,S?u:s),mM(tt)||_M(P,n,v,q)})};return Ai(e,{onBeforeEnter(S){Qh(g,[S]),Wl(S,a),Wl(S,o)},onBeforeAppear(S){Qh(O,[S]),Wl(S,A),Wl(S,l)},onEnter:x(!1),onAppear:x(!0),onLeave(S,P){S._isLeaving=!0;const U=()=>N(S,P);Wl(S,c),l6(),Wl(S,h),yM(()=>{S._isLeaving&&(cc(S,c),Wl(S,f),mM(C)||_M(S,n,m,U))}),Qh(C,[S,U])},onEnterCancelled(S){L(S,!1),Qh(w,[S])},onAppearCancelled(S){L(S,!0),Qh(b,[S])},onLeaveCancelled(S){N(S),Qh(F,[S])}})}function SK(r){if(r==null)return null;if(Tn(r))return[EB(r.enter),EB(r.leave)];{const e=EB(r);return[e,e]}}function EB(r){return hu(r)}function Wl(r,e){e.split(/\s+/).forEach(t=>t&&r.classList.add(t)),(r._vtc||(r._vtc=new Set)).add(e)}function cc(r,e){e.split(/\s+/).forEach(n=>n&&r.classList.remove(n));const{_vtc:t}=r;t&&(t.delete(e),t.size||(r._vtc=void 0))}function yM(r){requestAnimationFrame(()=>{requestAnimationFrame(r)})}let xK=0;function _M(r,e,t,n){const i=r._endId=++xK,a=()=>{i===r._endId&&n()};if(t)return setTimeout(a,t);const{type:o,timeout:s,propCount:A}=A6(r,e);if(!o)return n();const l=o+"end";let u=0;const c=()=>{r.removeEventListener(l,h),a()},h=f=>{f.target===r&&++u>=A&&c()};setTimeout(()=>{u<A&&c()},s+1),r.addEventListener(l,h)}function A6(r,e){const t=window.getComputedStyle(r),n=p=>(t[p]||"").split(", "),i=n(`${ec}Delay`),a=n(`${ec}Duration`),o=wM(i,a),s=n(`${Tg}Delay`),A=n(`${Tg}Duration`),l=wM(s,A);let u=null,c=0,h=0;e===ec?o>0&&(u=ec,c=o,h=a.length):e===Tg?l>0&&(u=Tg,c=l,h=A.length):(c=Math.max(o,l),u=c>0?o>l?ec:Tg:null,h=u?u===ec?a.length:A.length:0);const f=u===ec&&/\b(transform|all)(,|$)/.test(n(`${ec}Property`).toString());return{type:u,timeout:c,propCount:h,hasTransform:f}}function wM(r,e){for(;r.length<e.length;)r=r.concat(r);return Math.max(...e.map((t,n)=>EM(t)+EM(r[n])))}function EM(r){return Number(r.slice(0,-1).replace(",","."))*1e3}function l6(){return document.body.offsetHeight}const u6=new WeakMap,c6=new WeakMap,IK={name:"TransitionGroup",props:Ai({},bK,{tag:String,moveClass:String}),setup(r,{slots:e}){const t=nh(),n=bL();let i,a;return hE(()=>{if(!i.length)return;const o=r.moveClass||`${r.name||"v"}-move`;if(!MK(i[0].el,t.vnode.el,o))return;i.forEach(FK),i.forEach(OK);const s=i.filter(RK);l6(),s.forEach(A=>{const l=A.el,u=l.style;Wl(l,o),u.transform=u.webkitTransform=u.transitionDuration="";const c=l._moveCb=h=>{h&&h.target!==l||(!h||/transform$/.test(h.propertyName))&&(l.removeEventListener("transitionend",c),l._moveCb=null,cc(l,o))};l.addEventListener("transitionend",c)})}),()=>{const o=jr(r),s=s6(o);let A=o.tag||ga;i=a,a=e.default?uE(e.default()):[];for(let l=0;l<a.length;l++){const u=a[l];u.key!=null&&Ff(u,Jd(u,s,n,t))}if(i)for(let l=0;l<i.length;l++){const u=i[l];Ff(u,Jd(u,s,n,t)),u6.set(u,u.el.getBoundingClientRect())}return Mn(A,null,a)}}},LK=IK;function FK(r){const e=r.el;e._moveCb&&e._moveCb(),e._enterCb&&e._enterCb()}function OK(r){c6.set(r,r.el.getBoundingClientRect())}function RK(r){const e=u6.get(r),t=c6.get(r),n=e.left-t.left,i=e.top-t.top;if(n||i){const a=r.el.style;return a.transform=a.webkitTransform=`translate(${n}px,${i}px)`,a.transitionDuration="0s",r}}function MK(r,e,t){const n=r.cloneNode();r._vtc&&r._vtc.forEach(o=>{o.split(/\s+/).forEach(s=>s&&n.classList.remove(s))}),t.split(/\s+/).forEach(o=>o&&n.classList.add(o)),n.style.display="none";const i=e.nodeType===1?e:e.parentNode;i.appendChild(n);const{hasTransform:a}=A6(n);return i.removeChild(n),a}const $c=r=>{const e=r.props["onUpdate:modelValue"]||!1;return Fe(e)?t=>Ud(e,t):e};function NK(r){r.target.composing=!0}function CM(r){const e=r.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const Q1={created(r,{modifiers:{lazy:e,trim:t,number:n}},i){r._assign=$c(i);const a=n||i.props&&i.props.type==="number";eu(r,e?"change":"input",o=>{if(o.target.composing)return;let s=r.value;t&&(s=s.trim()),a&&(s=hu(s)),r._assign(s)}),t&&eu(r,"change",()=>{r.value=r.value.trim()}),e||(eu(r,"compositionstart",NK),eu(r,"compositionend",CM),eu(r,"change",CM))},mounted(r,{value:e}){r.value=e??""},beforeUpdate(r,{value:e,modifiers:{lazy:t,trim:n,number:i}},a){if(r._assign=$c(a),r.composing||document.activeElement===r&&r.type!=="range"&&(t||n&&r.value.trim()===e||(i||r.type==="number")&&hu(r.value)===e))return;const o=e??"";r.value!==o&&(r.value=o)}},UL={deep:!0,created(r,e,t){r._assign=$c(t),eu(r,"change",()=>{const n=r._modelValue,i=ev(r),a=r.checked,o=r._assign;if(Fe(n)){const s=Jw(n,i),A=s!==-1;if(a&&!A)o(n.concat(i));else if(!a&&A){const l=[...n];l.splice(s,1),o(l)}}else if(Wf(n)){const s=new Set(n);a?s.add(i):s.delete(i),o(s)}else o(f6(r,a))})},mounted:BM,beforeUpdate(r,e,t){r._assign=$c(t),BM(r,e,t)}};function BM(r,{value:e,oldValue:t},n){r._modelValue=e,Fe(e)?r.checked=Jw(e,n.props.value)>-1:Wf(e)?r.checked=e.has(n.props.value):e!==t&&(r.checked=Dc(e,f6(r,!0)))}const DL={created(r,{value:e},t){r.checked=Dc(e,t.props.value),r._assign=$c(t),eu(r,"change",()=>{r._assign(ev(r))})},beforeUpdate(r,{value:e,oldValue:t},n){r._assign=$c(n),e!==t&&(r.checked=Dc(e,n.props.value))}},h6={deep:!0,created(r,{value:e,modifiers:{number:t}},n){const i=Wf(e);eu(r,"change",()=>{const a=Array.prototype.filter.call(r.options,o=>o.selected).map(o=>t?hu(ev(o)):ev(o));r._assign(r.multiple?i?new Set(a):a:a[0])}),r._assign=$c(n)},mounted(r,{value:e}){TM(r,e)},beforeUpdate(r,e,t){r._assign=$c(t)},updated(r,{value:e}){TM(r,e)}};function TM(r,e){const t=r.multiple;if(!(t&&!Fe(e)&&!Wf(e))){for(let n=0,i=r.options.length;n<i;n++){const a=r.options[n],o=ev(a);if(t)Fe(e)?a.selected=Jw(e,o)>-1:a.selected=e.has(o);else if(Dc(ev(a),e)){r.selectedIndex!==n&&(r.selectedIndex=n);return}}!t&&r.selectedIndex!==-1&&(r.selectedIndex=-1)}}function ev(r){return"_value"in r?r._value:r.value}function f6(r,e){const t=e?"_trueValue":"_falseValue";return t in r?r[t]:e}const p6={created(r,e,t){j0(r,e,t,null,"created")},mounted(r,e,t){j0(r,e,t,null,"mounted")},beforeUpdate(r,e,t,n){j0(r,e,t,n,"beforeUpdate")},updated(r,e,t,n){j0(r,e,t,n,"updated")}};function d6(r,e){switch(r){case"SELECT":return h6;case"TEXTAREA":return Q1;default:switch(e){case"checkbox":return UL;case"radio":return DL;default:return Q1}}}function j0(r,e,t,n,i){const o=d6(r.tagName,t.props&&t.props.type)[i];o&&o(r,e,t,n)}function PK(){Q1.getSSRProps=({value:r})=>({value:r}),DL.getSSRProps=({value:r},e)=>{if(e.props&&Dc(e.props.value,r))return{checked:!0}},UL.getSSRProps=({value:r},e)=>{if(Fe(r)){if(e.props&&Jw(r,e.props.value)>-1)return{checked:!0}}else if(Wf(r)){if(e.props&&r.has(e.props.value))return{checked:!0}}else if(r)return{checked:!0}},p6.getSSRProps=(r,e)=>{if(typeof e.type!="string")return;const t=d6(e.type.toUpperCase(),e.props&&e.props.type);if(t.getSSRProps)return t.getSSRProps(r,e)}}const UK=["ctrl","shift","alt","meta"],DK={stop:r=>r.stopPropagation(),prevent:r=>r.preventDefault(),self:r=>r.target!==r.currentTarget,ctrl:r=>!r.ctrlKey,shift:r=>!r.shiftKey,alt:r=>!r.altKey,meta:r=>!r.metaKey,left:r=>"button"in r&&r.button!==0,middle:r=>"button"in r&&r.button!==1,right:r=>"button"in r&&r.button!==2,exact:(r,e)=>UK.some(t=>r[`${t}Key`]&&!e.includes(t))},QK=(r,e)=>(t,...n)=>{for(let i=0;i<e.length;i++){const a=DK[e[i]];if(a&&a(t,e))return}return r(t,...n)},kK={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},HK=(r,e)=>t=>{if(!("key"in t))return;const n=Rs(t.key);if(e.some(i=>i===n||kK[i]===n))return r(t)},v6={beforeMount(r,{value:e},{transition:t}){r._vod=r.style.display==="none"?"":r.style.display,t&&e?t.beforeEnter(r):bg(r,e)},mounted(r,{value:e},{transition:t}){t&&e&&t.enter(r)},updated(r,{value:e,oldValue:t},{transition:n}){!e!=!t&&(n?e?(n.beforeEnter(r),bg(r,!0),n.enter(r)):n.leave(r,()=>{bg(r,!1)}):bg(r,e))},beforeUnmount(r,{value:e}){bg(r,e)}};function bg(r,e){r.style.display=e?r._vod:"none"}function GK(){v6.getSSRProps=({value:r})=>{if(!r)return{style:{display:"none"}}}}const g6=Ai({patchProp:_K},sK);let wm,bM=!1;function m6(){return wm||(wm=kQ(g6))}function y6(){return wm=bM?wm:HQ(g6),bM=!0,wm}const Wb=(...r)=>{m6().render(...r)},_6=(...r)=>{y6().hydrate(...r)},w6=(...r)=>{const e=m6().createApp(...r),{mount:t}=e;return e.mount=n=>{const i=E6(n);if(!i)return;const a=e._component;!ir(a)&&!a.render&&!a.template&&(a.template=i.innerHTML),i.innerHTML="";const o=t(i,!1,i instanceof SVGElement);return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},e},$K=(...r)=>{const e=y6().createApp(...r),{mount:t}=e;return e.mount=n=>{const i=E6(n);if(i)return t(i,!0,i instanceof SVGElement)},e};function E6(r){return Xn(r)?document.querySelector(r):r}let SM=!1;const VK=()=>{SM||(SM=!0,PK(),GK())},jK=()=>{},KK=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:SL,Comment:ja,EffectScope:hL,Fragment:ga,KeepAlive:sj,ReactiveEffect:Iy,Static:gf,Suspense:qV,Teleport:Mj,Text:Of,Transition:PL,TransitionGroup:LK,VueElement:mE,callWithAsyncErrorHandling:fs,callWithErrorHandling:iu,camelize:Mo,capitalize:xy,cloneVNode:ll,compatUtils:aK,compile:jK,computed:qe,createApp:w6,createBlock:pE,createCommentVNode:Rr,createElementBlock:Yi,createElementVNode:RL,createHydrationRenderer:HQ,createPropsRestProxy:Zj,createRenderer:kQ,createSSRApp:$K,createSlots:pj,createStaticVNode:Uj,createTextVNode:ML,createVNode:Mn,customRef:RV,defineAsyncComponent:aj,defineComponent:Fy,defineCustomElement:a6,defineEmits:Kj,defineExpose:Yj,defineProps:jj,defineSSRCustomElement:EK,get devtools(){return cd},effect:rV,effectScope:q9,getCurrentInstance:nh,getCurrentScope:Z9,getTransitionRawChildren:uE,guardReactiveProps:YQ,h:gE,handleError:Xf,hydrate:_6,initCustomFormatter:tK,initDirectivesForSSR:VK,inject:Be,isMemoSame:n6,isProxy:vL,isReactive:pf,isReadonly:Lf,isRef:oa,isRuntimeOnly:Gj,isShallow:jm,isVNode:Hc,markRaw:gL,mergeDefaults:qj,mergeProps:WQ,nextTick:oE,normalizeClass:Ty,normalizeProps:Q9,normalizeStyle:By,onActivated:wQ,onBeforeMount:BQ,onBeforeUnmount:fE,onBeforeUpdate:TQ,onDeactivated:EQ,onErrorCaptured:IQ,onMounted:ur,onRenderTracked:xQ,onRenderTriggered:SQ,onScopeDispose:J9,onServerPrefetch:bQ,onUnmounted:pr,onUpdated:hE,openBlock:Zn,popScopeId:VV,provide:Ur,proxyRefs:_L,pushScopeId:$V,queuePostFlushCb:EL,reactive:zf,readonly:dL,ref:Io,registerRuntimeCompiler:Hj,render:Wb,renderList:fj,renderSlot:Or,resolveComponent:LQ,resolveDirective:hj,resolveDynamicComponent:cj,resolveFilter:iK,resolveTransitionHooks:Jd,setBlockTracking:Hb,setDevtoolsHook:fQ,setTransitionHooks:Ff,shallowReactive:aQ,shallowReadonly:xV,shallowRef:oQ,ssrContextKey:e6,ssrUtils:nK,stop:nV,toDisplayString:$9,toHandlerKey:gm,toHandlers:dj,toRaw:jr,toRef:AQ,toRefs:kc,transformVNodeArgs:Nj,triggerRef:LV,unref:df,useAttrs:Xj,useCssModule:BK,useCssVars:TK,useSSRContext:r6,useSlots:zj,useTransitionState:bL,vModelCheckbox:UL,vModelDynamic:p6,vModelRadio:DL,vModelSelect:h6,vModelText:Q1,vShow:v6,version:i6,warn:UV,watch:ye,watchEffect:gQ,watchPostEffect:mQ,watchSyncEffect:rj,withAsyncContext:Jj,withCtx:CL,withDefaults:Wj,withDirectives:lj,withKeys:HK,withMemo:eK,withModifiers:QK,withScopeId:jV},Symbol.toStringTag,{value:"Module"})),YK=(r,e)=>{const t=r.__vccOpts||r;for(const[n,i]of e)t[n]=i;return t},WK={};function zK(r,e){const t=LQ("router-view");return Zn(),pE(t)}const XK=YK(WK,[["render",zK]]);var qK=Object.defineProperty,ZK=Object.defineProperties,JK=Object.getOwnPropertyDescriptors,xM=Object.getOwnPropertySymbols,tY=Object.prototype.hasOwnProperty,eY=Object.prototype.propertyIsEnumerable,IM=(r,e,t)=>e in r?qK(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,qn=(r,e)=>{for(var t in e||(e={}))tY.call(e,t)&&IM(r,t,e[t]);if(xM)for(var t of xM(e))eY.call(e,t)&&IM(r,t,e[t]);return r},yA=(r,e)=>ZK(r,JK(e)),rY=function(){function r(){this.disposed=!1}return r.prototype.dispose=function(){this.disposed||(this.disposed=!0,this.disposeInternal())},r.prototype.disposeInternal=function(){},r}(),yE=rY;function nY(r,e,t){for(var n,i,a=t||Vc,o=0,s=r.length,A=!1;o<s;)n=o+(s-o>>1),i=+a(r[n],e),i<0?o=n+1:(s=n,A=!i);return A?o:~o}function Vc(r,e){return r>e?1:r<e?-1:0}function Ri(r,e){return r.indexOf(e)>=0}function _E(r,e,t){var n=r.length;if(r[0]<=e)return 0;if(e<=r[n-1])return n-1;var i=void 0;if(t>0){for(i=1;i<n;++i)if(r[i]<e)return i-1}else if(t<0){for(i=1;i<n;++i)if(r[i]<=e)return i}else for(i=1;i<n;++i){if(r[i]==e)return i;if(r[i]<e)return typeof t=="function"?t(e,r[i-1],r[i])>0?i-1:i:r[i-1]-e<e-r[i]?i-1:i}return n-1}function iY(r,e,t){for(;e<t;){var n=r[e];r[e]=r[t],r[t]=n,++e,--t}}function Jr(r,e){for(var t=Array.isArray(e)?e:[e],n=t.length,i=0;i<n;i++)r[r.length]=t[i]}function Cu(r,e){var t=r.length;if(t!==e.length)return!1;for(var n=0;n<t;n++)if(r[n]!==e[n])return!1;return!0}function aY(r,e,t){var n=e||Vc;return r.every(function(i,a){if(a===0)return!0;var o=n(r[a-1],i);return!(o>0||t&&o===0)})}function il(){return!0}function qf(){return!1}function Mf(){}function oY(r){var e=!1,t,n,i;return function(){var a=Array.prototype.slice.call(arguments);return(!e||this!==i||!Cu(a,n))&&(e=!0,i=this,n=a,t=r.apply(this,arguments)),t}}function Re(){return function(){throw new Error("Unimplemented abstract method.")}()}var sY=0;function Ee(r){return r.ol_uid||(r.ol_uid=String(++sY))}var C6="6.14.1",jc=typeof navigator<"u"&&typeof navigator.userAgent<"u"?navigator.userAgent.toLowerCase():"",AY=jc.indexOf("firefox")!==-1,lY=jc.indexOf("safari")!==-1&&jc.indexOf("chrom")==-1,uY=lY&&!!(jc.indexOf("version/15.4")>=0||jc.match(/cpu (os|iphone os) 15_4 like mac os x/)),cY=jc.indexOf("webkit")!==-1&&jc.indexOf("edge")==-1,B6=jc.indexOf("macintosh")!==-1,Nf=typeof devicePixelRatio<"u"?devicePixelRatio:1,wE=typeof WorkerGlobalScope<"u"&&typeof OffscreenCanvas<"u"&&self instanceof WorkerGlobalScope,hY=typeof Image<"u"&&Image.prototype.decode,T6=function(){var r=!1;try{var e=Object.defineProperty({},"passive",{get:function(){r=!0}});window.addEventListener("_",null,e),window.removeEventListener("_",null,e)}catch{}return r}(),fY=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),pY=function(r){fY(e,r);function e(t){var n=this,i="v"+C6.split("-")[0],a="Assertion failed. See https://openlayers.org/en/"+i+"/doc/errors/#"+t+" for details.";return n=r.call(this,a)||this,n.code=t,n.name="AssertionError",n.message=a,n}return e}(Error),b6=pY;function Le(r,e){if(!r)throw new b6(e)}var QL=new Array(6);function Ti(){return[1,0,0,1,0,0]}function Em(r){return Ry(r,1,0,0,1,0,0)}function bv(r,e){var t=r[0],n=r[1],i=r[2],a=r[3],o=r[4],s=r[5],A=e[0],l=e[1],u=e[2],c=e[3],h=e[4],f=e[5];return r[0]=t*A+i*l,r[1]=n*A+a*l,r[2]=t*u+i*c,r[3]=n*u+a*c,r[4]=t*h+i*f+o,r[5]=n*h+a*f+s,r}function Ry(r,e,t,n,i,a,o){return r[0]=e,r[1]=t,r[2]=n,r[3]=i,r[4]=a,r[5]=o,r}function dY(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r}function Bn(r,e){var t=e[0],n=e[1];return e[0]=r[0]*t+r[2]*n+r[4],e[1]=r[1]*t+r[3]*n+r[5],e}function vY(r,e){var t=Math.cos(e),n=Math.sin(e);return bv(r,Ry(QL,t,n,-n,t,0,0))}function Cm(r,e,t){return bv(r,Ry(QL,e,0,0,t,0,0))}function gY(r,e,t){return Ry(r,e,0,0,t,0,0)}function mY(r,e,t){return bv(r,Ry(QL,1,0,0,1,e,t))}function vo(r,e,t,n,i,a,o,s){var A=Math.sin(a),l=Math.cos(a);return r[0]=n*l,r[1]=i*A,r[2]=-n*A,r[3]=i*l,r[4]=o*n*l-s*n*A+e,r[5]=o*i*A+s*i*l+t,r}function My(r,e){var t=yY(e);Le(t!==0,32);var n=e[0],i=e[1],a=e[2],o=e[3],s=e[4],A=e[5];return r[0]=o/t,r[1]=-i/t,r[2]=-a/t,r[3]=n/t,r[4]=(a*A-o*s)/t,r[5]=-(n*A-i*s)/t,r}function yY(r){return r[0]*r[3]-r[1]*r[2]}var LM;function kL(r){var e="matrix("+r.join(", ")+")";if(wE)return e;var t=LM||(LM=document.createElement("div"));return t.style.transform=e,t.style.transform}var Zg={BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",TOP_LEFT:"top-left",TOP_RIGHT:"top-right"},na={UNKNOWN:0,INTERSECTING:1,ABOVE:2,RIGHT:4,BELOW:8,LEFT:16};function ia(r){for(var e=Ni(),t=0,n=r.length;t<n;++t)yf(e,r[t]);return e}function _Y(r,e,t){var n=Math.min.apply(null,r),i=Math.min.apply(null,e),a=Math.max.apply(null,r),o=Math.max.apply(null,e);return Uo(n,i,a,o,t)}function go(r,e,t){return t?(t[0]=r[0]-e,t[1]=r[1]-e,t[2]=r[2]+e,t[3]=r[3]+e,t):[r[0]-e,r[1]-e,r[2]+e,r[3]+e]}function HL(r,e){return e?(e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e):r.slice()}function ih(r,e,t){var n,i;return e<r[0]?n=r[0]-e:r[2]<e?n=e-r[2]:n=0,t<r[1]?i=r[1]-t:r[3]<t?i=t-r[3]:i=0,n*n+i*i}function fA(r,e){return EE(r,e[0],e[1])}function us(r,e){return r[0]<=e[0]&&e[2]<=r[2]&&r[1]<=e[1]&&e[3]<=r[3]}function EE(r,e,t){return r[0]<=e&&e<=r[2]&&r[1]<=t&&t<=r[3]}function k1(r,e){var t=r[0],n=r[1],i=r[2],a=r[3],o=e[0],s=e[1],A=na.UNKNOWN;return o<t?A=A|na.LEFT:o>i&&(A=A|na.RIGHT),s<n?A=A|na.BELOW:s>a&&(A=A|na.ABOVE),A===na.UNKNOWN&&(A=na.INTERSECTING),A}function Ni(){return[1/0,1/0,-1/0,-1/0]}function Uo(r,e,t,n,i){return i?(i[0]=r,i[1]=e,i[2]=t,i[3]=n,i):[r,e,t,n]}function ah(r){return Uo(1/0,1/0,-1/0,-1/0,r)}function mf(r,e){var t=r[0],n=r[1];return Uo(t,n,t,n,e)}function wY(r,e){var t=ah(e);return GL(t,r)}function CE(r,e,t,n,i){var a=ah(i);return $L(a,r,e,t,n)}function EY(r,e){var t=ah(e);return S6(t,r)}function ul(r,e){return r[0]==e[0]&&r[2]==e[2]&&r[1]==e[1]&&r[3]==e[3]}function CY(r,e,t){return Math.abs(r[0]-e[0])<t&&Math.abs(r[2]-e[2])<t&&Math.abs(r[1]-e[1])<t&&Math.abs(r[3]-e[3])<t}function Kc(r,e){return e[0]<r[0]&&(r[0]=e[0]),e[2]>r[2]&&(r[2]=e[2]),e[1]<r[1]&&(r[1]=e[1]),e[3]>r[3]&&(r[3]=e[3]),r}function yf(r,e){e[0]<r[0]&&(r[0]=e[0]),e[0]>r[2]&&(r[2]=e[0]),e[1]<r[1]&&(r[1]=e[1]),e[1]>r[3]&&(r[3]=e[1])}function GL(r,e){for(var t=0,n=e.length;t<n;++t)yf(r,e[t]);return r}function $L(r,e,t,n,i){for(;t<n;t+=i)x6(r,e[t],e[t+1]);return r}function S6(r,e){for(var t=0,n=e.length;t<n;++t)GL(r,e[t]);return r}function x6(r,e,t){r[0]=Math.min(r[0],e),r[1]=Math.min(r[1],t),r[2]=Math.max(r[2],e),r[3]=Math.max(r[3],t)}function BE(r,e){var t;return t=e(Ny(r)),t||(t=e(Sv(r)),t)||(t=e(Py(r)),t)||(t=e(_A(r)),t)?t:!1}function qm(r){var e=0;return xv(r)||(e=Vr(r)*Si(r)),e}function Ny(r){return[r[0],r[1]]}function Sv(r){return[r[2],r[1]]}function Ya(r){return[(r[0]+r[2])/2,(r[1]+r[3])/2]}function I6(r,e){var t;return e===Zg.BOTTOM_LEFT?t=Ny(r):e===Zg.BOTTOM_RIGHT?t=Sv(r):e===Zg.TOP_LEFT?t=_A(r):e===Zg.TOP_RIGHT?t=Py(r):Le(!1,13),t}function BY(r,e){var t=Math.min(r[0],e[0]),n=Math.min(r[1],e[1]),i=Math.max(r[2],e[2]),a=Math.max(r[3],e[3]);return(i-t)*(a-n)}function _f(r,e,t,n,i){var a=e*n[0]/2,o=e*n[1]/2,s=Math.cos(t),A=Math.sin(t),l=a*s,u=a*A,c=o*s,h=o*A,f=r[0],p=r[1],v=f-l+h,m=f-l-h,g=f+l-h,_=f+l+h,w=p-u-c,C=p-u+c,F=p+u+c,O=p+u-c;return Uo(Math.min(v,m,g,_),Math.min(w,C,F,O),Math.max(v,m,g,_),Math.max(w,C,F,O),i)}function Si(r){return r[3]-r[1]}function TY(r,e){var t=Ps(r,e);return qm(t)}function Ps(r,e,t){var n=t||Ni();return Wn(r,e)?(r[0]>e[0]?n[0]=r[0]:n[0]=e[0],r[1]>e[1]?n[1]=r[1]:n[1]=e[1],r[2]<e[2]?n[2]=r[2]:n[2]=e[2],r[3]<e[3]?n[3]=r[3]:n[3]=e[3]):ah(n),n}function bY(r){return Vr(r)+Si(r)}function SY(r){return[r[2]-r[0],r[3]-r[1]]}function _A(r){return[r[0],r[3]]}function Py(r){return[r[2],r[3]]}function Vr(r){return r[2]-r[0]}function Wn(r,e){return r[0]<=e[2]&&r[2]>=e[0]&&r[1]<=e[3]&&r[3]>=e[1]}function xv(r){return r[2]<r[0]||r[3]<r[1]}function L6(r,e){return e?(e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e):r}function F6(r,e){var t=(r[2]-r[0])/2*(e-1),n=(r[3]-r[1])/2*(e-1);r[0]-=t,r[2]+=t,r[1]-=n,r[3]+=n}function O6(r,e,t){var n=!1,i=k1(r,e),a=k1(r,t);if(i===na.INTERSECTING||a===na.INTERSECTING)n=!0;else{var o=r[0],s=r[1],A=r[2],l=r[3],u=e[0],c=e[1],h=t[0],f=t[1],p=(f-c)/(h-u),v=void 0,m=void 0;a&na.ABOVE&&!(i&na.ABOVE)&&(v=h-(f-l)/p,n=v>=o&&v<=A),!n&&a&na.RIGHT&&!(i&na.RIGHT)&&(m=f-(h-A)*p,n=m>=s&&m<=l),!n&&a&na.BELOW&&!(i&na.BELOW)&&(v=h-(f-s)/p,n=v>=o&&v<=A),!n&&a&na.LEFT&&!(i&na.LEFT)&&(m=f-(h-o)*p,n=m>=s&&m<=l)}return n}function VL(r,e,t,n){var i=[];if(n>1)for(var a=r[2]-r[0],o=r[3]-r[1],s=0;s<n;++s)i.push(r[0]+a*s/n,r[1],r[2],r[1]+o*s/n,r[2]-a*s/n,r[3],r[0],r[3]-o*s/n);else i=[r[0],r[1],r[2],r[1],r[2],r[3],r[0],r[3]];e(i,i,2);for(var A=[],l=[],s=0,u=i.length;s<u;s+=2)A.push(i[s]),l.push(i[s+1]);return _Y(A,l,t)}function R6(r,e){var t=e.getExtent(),n=Ya(r);if(e.canWrapX()&&(n[0]<t[0]||n[0]>=t[2])){var i=Vr(t),a=Math.floor((n[0]-t[0])/i),o=a*i;r[0]-=o,r[2]-=o}return r}var xY=Object.freeze(Object.defineProperty({__proto__:null,boundingExtent:ia,buffer:go,clone:HL,closestSquaredDistanceXY:ih,containsCoordinate:fA,containsExtent:us,containsXY:EE,coordinateRelationship:k1,createEmpty:Ni,createOrUpdate:Uo,createOrUpdateEmpty:ah,createOrUpdateFromCoordinate:mf,createOrUpdateFromCoordinates:wY,createOrUpdateFromFlatCoordinates:CE,createOrUpdateFromRings:EY,equals:ul,approximatelyEquals:CY,extend:Kc,extendCoordinate:yf,extendCoordinates:GL,extendFlatCoordinates:$L,extendRings:S6,extendXY:x6,forEachCorner:BE,getArea:qm,getBottomLeft:Ny,getBottomRight:Sv,getCenter:Ya,getCorner:I6,getEnlargedArea:BY,getForViewAndSize:_f,getHeight:Si,getIntersectionArea:TY,getIntersection:Ps,getMargin:bY,getSize:SY,getTopLeft:_A,getTopRight:Py,getWidth:Vr,intersects:Wn,isEmpty:xv,returnOrUpdate:L6,scaleFromCenter:F6,intersectsSegment:O6,applyTransform:VL,wrapX:R6},Symbol.toStringTag,{value:"Module"}));function Nn(r,e,t){return Math.min(Math.max(r,e),t)}var IY=function(){var r;return"cosh"in Math?r=Math.cosh:r=function(e){var t=Math.exp(e);return(t+1/t)/2},r}(),M6=function(){var r;return"log2"in Math?r=Math.log2:r=function(e){return Math.log(e)*Math.LOG2E},r}();function LY(r,e,t,n,i,a){var o=i-t,s=a-n;if(o!==0||s!==0){var A=((r-t)*o+(e-n)*s)/(o*o+s*s);A>1?(t=i,n=a):A>0&&(t+=o*A,n+=s*A)}return wf(r,e,t,n)}function wf(r,e,t,n){var i=t-r,a=n-e;return i*i+a*a}function FY(r){for(var e=r.length,t=0;t<e;t++){for(var n=t,i=Math.abs(r[t][t]),a=t+1;a<e;a++){var o=Math.abs(r[a][t]);o>i&&(i=o,n=a)}if(i===0)return null;var s=r[n];r[n]=r[t],r[t]=s;for(var A=t+1;A<e;A++)for(var l=-r[A][t]/r[t][t],u=t;u<e+1;u++)t==u?r[A][u]=0:r[A][u]+=l*r[t][u]}for(var c=new Array(e),h=e-1;h>=0;h--){c[h]=r[h][e]/r[h][h];for(var f=h-1;f>=0;f--)r[f][e]-=r[f][h]*c[h]}return c}function FM(r){return r*180/Math.PI}function Oc(r){return r*Math.PI/180}function Rc(r,e){var t=r%e;return t*e<0?t+e:t}function Jl(r,e,t){return r+t*(e-r)}function jL(r,e){var t=Math.pow(10,e);return Math.round(r*t)/t}function OM(r,e){return Math.round(jL(r,e))}function Bd(r,e){return Math.floor(jL(r,e))}function _c(r,e){return Math.ceil(jL(r,e))}var N6=/^#([a-f0-9]{3}|[a-f0-9]{4}(?:[a-f0-9]{2}){0,2})$/i,P6=/^([a-z]*)$|^hsla?\(.*\)$/i;function au(r){return typeof r=="string"?r:Q6(r)}function U6(r){var e=document.createElement("div");if(e.style.color=r,e.style.color!==""){document.body.appendChild(e);var t=getComputedStyle(e).color;return document.body.removeChild(e),t}else return""}var D6=function(){var r=1024,e={},t=0;return function(n){var i;if(e.hasOwnProperty(n))i=e[n];else{if(t>=r){var a=0;for(var o in e)a++&3||(delete e[o],--t)}i=OY(n),e[n]=i,++t}return i}}();function Yc(r){return Array.isArray(r)?r:D6(r)}function OY(r){var e,t,n,i,a;if(P6.exec(r)&&(r=U6(r)),N6.exec(r)){var o=r.length-1,s=void 0;o<=4?s=1:s=2;var A=o===4||o===8;e=parseInt(r.substr(1+0*s,s),16),t=parseInt(r.substr(1+1*s,s),16),n=parseInt(r.substr(1+2*s,s),16),A?i=parseInt(r.substr(1+3*s,s),16):i=255,s==1&&(e=(e<<4)+e,t=(t<<4)+t,n=(n<<4)+n,A&&(i=(i<<4)+i)),a=[e,t,n,i/255]}else r.indexOf("rgba(")==0?(a=r.slice(5,-1).split(",").map(Number),RM(a)):r.indexOf("rgb(")==0?(a=r.slice(4,-1).split(",").map(Number),a.push(1),RM(a)):Le(!1,14);return a}function RM(r){return r[0]=Nn(r[0]+.5|0,0,255),r[1]=Nn(r[1]+.5|0,0,255),r[2]=Nn(r[2]+.5|0,0,255),r[3]=Nn(r[3],0,1),r}function Q6(r){var e=r[0];e!=(e|0)&&(e=e+.5|0);var t=r[1];t!=(t|0)&&(t=t+.5|0);var n=r[2];n!=(n|0)&&(n=n+.5|0);var i=r[3]===void 0?1:Math.round(r[3]*100)/100;return"rgba("+e+","+t+","+n+","+i+")"}function RY(r){return P6.test(r)&&(r=U6(r)),N6.test(r)||r.indexOf("rgba(")===0||r.indexOf("rgb(")===0}var MY=function(){function r(){this.cache_={},this.cacheSize_=0,this.maxCacheSize_=32}return r.prototype.clear=function(){this.cache_={},this.cacheSize_=0},r.prototype.canExpireCache=function(){return this.cacheSize_>this.maxCacheSize_},r.prototype.expire=function(){if(this.canExpireCache()){var e=0;for(var t in this.cache_){var n=this.cache_[t];!(e++&3)&&!n.hasListener()&&(delete this.cache_[t],--this.cacheSize_)}}},r.prototype.get=function(e,t,n){var i=MM(e,t,n);return i in this.cache_?this.cache_[i]:null},r.prototype.set=function(e,t,n,i){var a=MM(e,t,n);this.cache_[a]=i,++this.cacheSize_},r.prototype.setSize=function(e){this.maxCacheSize_=e,this.expire()},r}();function MM(r,e,t){var n=t?au(t):"null";return e+":"+r+":"+n}var H1=new MY,NY=function(){function r(e){this.propagationStopped,this.defaultPrevented,this.type=e,this.target=null}return r.prototype.preventDefault=function(){this.defaultPrevented=!0},r.prototype.stopPropagation=function(){this.propagationStopped=!0},r}();function PY(r){r.stopPropagation()}var ko=NY,Pf={PROPERTYCHANGE:"propertychange"},Ce=typeof Object.assign=="function"?Object.assign:function(r,e){if(r==null)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(r),n=1,i=arguments.length;n<i;++n){var a=arguments[n];if(a!=null)for(var o in a)a.hasOwnProperty(o)&&(t[o]=a[o])}return t};function Zf(r){for(var e in r)delete r[e]}var KL=typeof Object.values=="function"?Object.values:function(r){var e=[];for(var t in r)e.push(r[t]);return e};function Uf(r){var e;for(e in r)return!1;return!e}var UY=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),DY=function(r){UY(e,r);function e(t){var n=r.call(this)||this;return n.eventTarget_=t,n.pendingRemovals_=null,n.dispatching_=null,n.listeners_=null,n}return e.prototype.addEventListener=function(t,n){if(!(!t||!n)){var i=this.listeners_||(this.listeners_={}),a=i[t]||(i[t]=[]);a.indexOf(n)===-1&&a.push(n)}},e.prototype.dispatchEvent=function(t){var n=typeof t=="string",i=n?t:t.type,a=this.listeners_&&this.listeners_[i];if(a){var o=n?new ko(t):t;o.target||(o.target=this.eventTarget_||this);var s=this.dispatching_||(this.dispatching_={}),A=this.pendingRemovals_||(this.pendingRemovals_={});i in s||(s[i]=0,A[i]=0),++s[i];for(var l,u=0,c=a.length;u<c;++u)if("handleEvent"in a[u]?l=a[u].handleEvent(o):l=a[u].call(this,o),l===!1||o.propagationStopped){l=!1;break}if(--s[i]===0){var h=A[i];for(delete A[i];h--;)this.removeEventListener(i,Mf);delete s[i]}return l}},e.prototype.disposeInternal=function(){this.listeners_&&Zf(this.listeners_)},e.prototype.getListeners=function(t){return this.listeners_&&this.listeners_[t]||void 0},e.prototype.hasListener=function(t){return this.listeners_?t?t in this.listeners_:Object.keys(this.listeners_).length>0:!1},e.prototype.removeEventListener=function(t,n){var i=this.listeners_&&this.listeners_[t];if(i){var a=i.indexOf(n);a!==-1&&(this.pendingRemovals_&&t in this.pendingRemovals_?(i[a]=Mf,++this.pendingRemovals_[t]):(i.splice(a,1),i.length===0&&delete this.listeners_[t]))}},e}(yE),Jf=DY,xe={CHANGE:"change",ERROR:"error",BLUR:"blur",CLEAR:"clear",CONTEXTMENU:"contextmenu",CLICK:"click",DBLCLICK:"dblclick",DRAGENTER:"dragenter",DRAGOVER:"dragover",DROP:"drop",FOCUS:"focus",KEYDOWN:"keydown",KEYPRESS:"keypress",LOAD:"load",RESIZE:"resize",TOUCHMOVE:"touchmove",WHEEL:"wheel"};function je(r,e,t,n,i){if(n&&n!==r&&(t=t.bind(n)),i){var a=t;t=function(){r.removeEventListener(e,t),a.apply(this,arguments)}}var o={target:r,type:e,listener:t};return r.addEventListener(e,t),o}function Zm(r,e,t,n){return je(r,e,t,n,!0)}function Wr(r){r&&r.target&&(r.target.removeEventListener(r.type,r.listener),Zf(r))}var QY=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Uy=function(r){QY(e,r);function e(){var t=r.call(this)||this;return t.on=t.onInternal,t.once=t.onceInternal,t.un=t.unInternal,t.revision_=0,t}return e.prototype.changed=function(){++this.revision_,this.dispatchEvent(xe.CHANGE)},e.prototype.getRevision=function(){return this.revision_},e.prototype.onInternal=function(t,n){if(Array.isArray(t)){for(var i=t.length,a=new Array(i),o=0;o<i;++o)a[o]=je(this,t[o],n);return a}else return je(this,t,n)},e.prototype.onceInternal=function(t,n){var i;if(Array.isArray(t)){var a=t.length;i=new Array(a);for(var o=0;o<a;++o)i[o]=Zm(this,t[o],n)}else i=Zm(this,t,n);return n.ol_key=i,i},e.prototype.unInternal=function(t,n){var i=n.ol_key;if(i)ds(i);else if(Array.isArray(t))for(var a=0,o=t.length;a<o;++a)this.removeEventListener(t[a],n);else this.removeEventListener(t,n)},e}(Jf);Uy.prototype.on;Uy.prototype.once;Uy.prototype.un;function ds(r){if(Array.isArray(r))for(var e=0,t=r.length;e<t;++e)Wr(r[e]);else Wr(r)}var k6=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),NM=function(r){k6(e,r);function e(t,n,i){var a=r.call(this,t)||this;return a.key=n,a.oldValue=i,a}return e}(ko),kY=function(r){k6(e,r);function e(t){var n=r.call(this)||this;return n.on,n.once,n.un,Ee(n),n.values_=null,t!==void 0&&n.setProperties(t),n}return e.prototype.get=function(t){var n;return this.values_&&this.values_.hasOwnProperty(t)&&(n=this.values_[t]),n},e.prototype.getKeys=function(){return this.values_&&Object.keys(this.values_)||[]},e.prototype.getProperties=function(){return this.values_&&Ce({},this.values_)||{}},e.prototype.hasProperties=function(){return!!this.values_},e.prototype.notify=function(t,n){var i;i="change:".concat(t),this.hasListener(i)&&this.dispatchEvent(new NM(i,t,n)),i=Pf.PROPERTYCHANGE,this.hasListener(i)&&this.dispatchEvent(new NM(i,t,n))},e.prototype.addChangeListener=function(t,n){this.addEventListener("change:".concat(t),n)},e.prototype.removeChangeListener=function(t,n){this.removeEventListener("change:".concat(t),n)},e.prototype.set=function(t,n,i){var a=this.values_||(this.values_={});if(i)a[t]=n;else{var o=a[t];a[t]=n,o!==n&&this.notify(t,o)}},e.prototype.setProperties=function(t,n){for(var i in t)this.set(i,t[i],n)},e.prototype.applyProperties=function(t){t.values_&&Ce(this.values_||(this.values_={}),t.values_)},e.prototype.unset=function(t,n){if(this.values_&&t in this.values_){var i=this.values_[t];delete this.values_[t],Uf(this.values_)&&(this.values_=null),n||this.notify(t,i)}},e}(Uy),xi=kY,Zr={OPACITY:"opacity",VISIBLE:"visible",EXTENT:"extent",Z_INDEX:"zIndex",MAX_RESOLUTION:"maxResolution",MIN_RESOLUTION:"minResolution",MAX_ZOOM:"maxZoom",MIN_ZOOM:"minZoom",SOURCE:"source",MAP:"map"},HY=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),GY=function(r){HY(e,r);function e(t){var n=r.call(this)||this;n.on,n.once,n.un,n.background_=t.background;var i=Ce({},t);return typeof t.properties=="object"&&(delete i.properties,Ce(i,t.properties)),i[Zr.OPACITY]=t.opacity!==void 0?t.opacity:1,Le(typeof i[Zr.OPACITY]=="number",64),i[Zr.VISIBLE]=t.visible!==void 0?t.visible:!0,i[Zr.Z_INDEX]=t.zIndex,i[Zr.MAX_RESOLUTION]=t.maxResolution!==void 0?t.maxResolution:1/0,i[Zr.MIN_RESOLUTION]=t.minResolution!==void 0?t.minResolution:0,i[Zr.MIN_ZOOM]=t.minZoom!==void 0?t.minZoom:-1/0,i[Zr.MAX_ZOOM]=t.maxZoom!==void 0?t.maxZoom:1/0,n.className_=i.className!==void 0?i.className:"ol-layer",delete i.className,n.setProperties(i),n.state_=null,n}return e.prototype.getBackground=function(){return this.background_},e.prototype.getClassName=function(){return this.className_},e.prototype.getLayerState=function(t){var n=this.state_||{layer:this,managed:t===void 0?!0:t},i=this.getZIndex();return n.opacity=Nn(Math.round(this.getOpacity()*100)/100,0,1),n.visible=this.getVisible(),n.extent=this.getExtent(),n.zIndex=i===void 0&&!n.managed?1/0:i,n.maxResolution=this.getMaxResolution(),n.minResolution=Math.max(this.getMinResolution(),0),n.minZoom=this.getMinZoom(),n.maxZoom=this.getMaxZoom(),this.state_=n,n},e.prototype.getLayersArray=function(t){return Re()},e.prototype.getLayerStatesArray=function(t){return Re()},e.prototype.getExtent=function(){return this.get(Zr.EXTENT)},e.prototype.getMaxResolution=function(){return this.get(Zr.MAX_RESOLUTION)},e.prototype.getMinResolution=function(){return this.get(Zr.MIN_RESOLUTION)},e.prototype.getMinZoom=function(){return this.get(Zr.MIN_ZOOM)},e.prototype.getMaxZoom=function(){return this.get(Zr.MAX_ZOOM)},e.prototype.getOpacity=function(){return this.get(Zr.OPACITY)},e.prototype.getSourceState=function(){return Re()},e.prototype.getVisible=function(){return this.get(Zr.VISIBLE)},e.prototype.getZIndex=function(){return this.get(Zr.Z_INDEX)},e.prototype.setBackground=function(t){this.background_=t,this.changed()},e.prototype.setExtent=function(t){this.set(Zr.EXTENT,t)},e.prototype.setMaxResolution=function(t){this.set(Zr.MAX_RESOLUTION,t)},e.prototype.setMinResolution=function(t){this.set(Zr.MIN_RESOLUTION,t)},e.prototype.setMaxZoom=function(t){this.set(Zr.MAX_ZOOM,t)},e.prototype.setMinZoom=function(t){this.set(Zr.MIN_ZOOM,t)},e.prototype.setOpacity=function(t){Le(typeof t=="number",64),this.set(Zr.OPACITY,t)},e.prototype.setVisible=function(t){this.set(Zr.VISIBLE,t)},e.prototype.setZIndex=function(t){this.set(Zr.Z_INDEX,t)},e.prototype.disposeInternal=function(){this.state_&&(this.state_.layer=null,this.state_=null),r.prototype.disposeInternal.call(this)},e}(xi),YL=GY,Oo={PRERENDER:"prerender",POSTRENDER:"postrender",PRECOMPOSE:"precompose",POSTCOMPOSE:"postcompose",RENDERCOMPLETE:"rendercomplete"},Ao={UNDEFINED:"undefined",LOADING:"loading",READY:"ready",ERROR:"error"},$Y=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),VY=function(r){$Y(e,r);function e(t){var n=this,i=Ce({},t);delete i.source,n=r.call(this,i)||this,n.on,n.once,n.un,n.mapPrecomposeKey_=null,n.mapRenderKey_=null,n.sourceChangeKey_=null,n.renderer_=null,n.rendered=!1,t.render&&(n.render=t.render),t.map&&n.setMap(t.map),n.addChangeListener(Zr.SOURCE,n.handleSourcePropertyChange_);var a=t.source?t.source:null;return n.setSource(a),n}return e.prototype.getLayersArray=function(t){var n=t||[];return n.push(this),n},e.prototype.getLayerStatesArray=function(t){var n=t||[];return n.push(this.getLayerState()),n},e.prototype.getSource=function(){return this.get(Zr.SOURCE)||null},e.prototype.getRenderSource=function(){return this.getSource()},e.prototype.getSourceState=function(){var t=this.getSource();return t?t.getState():Ao.UNDEFINED},e.prototype.handleSourceChange_=function(){this.changed()},e.prototype.handleSourcePropertyChange_=function(){this.sourceChangeKey_&&(Wr(this.sourceChangeKey_),this.sourceChangeKey_=null);var t=this.getSource();t&&(this.sourceChangeKey_=je(t,xe.CHANGE,this.handleSourceChange_,this)),this.changed()},e.prototype.getFeatures=function(t){return this.renderer_?this.renderer_.getFeatures(t):new Promise(function(n){return n([])})},e.prototype.getData=function(t){return!this.renderer_||!this.rendered?null:this.renderer_.getData(t)},e.prototype.render=function(t,n){var i=this.getRenderer();if(i.prepareFrame(t))return this.rendered=!0,i.renderFrame(t,n)},e.prototype.unrender=function(){this.rendered=!1},e.prototype.setMapInternal=function(t){t||this.unrender(),this.set(Zr.MAP,t)},e.prototype.getMapInternal=function(){return this.get(Zr.MAP)},e.prototype.setMap=function(t){this.mapPrecomposeKey_&&(Wr(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),t||this.changed(),this.mapRenderKey_&&(Wr(this.mapRenderKey_),this.mapRenderKey_=null),t&&(this.mapPrecomposeKey_=je(t,Oo.PRECOMPOSE,function(n){var i=n,a=i.frameState.layerStatesArray,o=this.getLayerState(!1);Le(!a.some(function(s){return s.layer===o.layer}),67),a.push(o)},this),this.mapRenderKey_=je(this,xe.CHANGE,t.render,t),this.changed())},e.prototype.setSource=function(t){this.set(Zr.SOURCE,t)},e.prototype.getRenderer=function(){return this.renderer_||(this.renderer_=this.createRenderer()),this.renderer_},e.prototype.hasRenderer=function(){return!!this.renderer_},e.prototype.createRenderer=function(){return null},e.prototype.disposeInternal=function(){this.renderer_&&(this.renderer_.dispose(),delete this.renderer_),this.setSource(null),r.prototype.disposeInternal.call(this)},e}(YL);function G1(r,e){if(!r.visible)return!1;var t=e.resolution;if(t<r.minResolution||t>=r.maxResolution)return!1;var n=e.zoom;return n>r.minZoom&&n<=r.maxZoom}var tp=VY;function Sg(r,e,t){var n=t!==void 0?r.toFixed(t):""+r,i=n.indexOf(".");return i=i===-1?n.length:i,i>e?n:new Array(1+e-i).join("0")+n}function H6(r,e){for(var t=(""+r).split("."),n=(""+e).split("."),i=0;i<Math.max(t.length,n.length);i++){var a=parseInt(t[i]||"0",10),o=parseInt(n[i]||"0",10);if(a>o)return 1;if(o>a)return-1}return 0}function G6(r,e){return r[0]+=+e[0],r[1]+=+e[1],r}function jY(r,e){var t=e.getRadius(),n=e.getCenter(),i=n[0],a=n[1],o=r[0],s=r[1],A=o-i,l=s-a;A===0&&l===0&&(A=1);var u=Math.sqrt(A*A+l*l),c=i+t*A/u,h=a+t*l/u;return[c,h]}function WL(r,e){var t=r[0],n=r[1],i=e[0],a=e[1],o=i[0],s=i[1],A=a[0],l=a[1],u=A-o,c=l-s,h=u===0&&c===0?0:(u*(t-o)+c*(n-s))/(u*u+c*c||0),f,p;return h<=0?(f=o,p=s):h>=1?(f=A,p=l):(f=o+h*u,p=s+h*c),[f,p]}function oA(r,e){for(var t=!0,n=r.length-1;n>=0;--n)if(r[n]!=e[n]){t=!1;break}return t}function zL(r,e){var t=Math.cos(e),n=Math.sin(e),i=r[0]*t-r[1]*n,a=r[1]*t+r[0]*n;return r[0]=i,r[1]=a,r}function $6(r,e){return r[0]*=e,r[1]*=e,r}function ou(r,e){var t=r[0]-e[0],n=r[1]-e[1];return t*t+n*n}function PM(r,e){return Math.sqrt(ou(r,e))}function KY(r,e){return ou(r,WL(r,e))}function XL(r,e){if(e.canWrapX()){var t=Vr(e.getExtent()),n=V6(r,e,t);n&&(r[0]-=n*t)}return r}function V6(r,e,t){var n=e.getExtent(),i=0;if(e.canWrapX()&&(r[0]<n[0]||r[0]>n[2])){var a=t||Vr(n);i=Math.floor((r[0]-n[0])/a)}return i}var YY=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),WY=function(r){YY(e,r);function e(t){var n=r.call(this)||this;return n.map_=t,n}return e.prototype.dispatchRenderEvent=function(t,n){Re()},e.prototype.calculateMatrices2D=function(t){var n=t.viewState,i=t.coordinateToPixelTransform,a=t.pixelToCoordinateTransform;vo(i,t.size[0]/2,t.size[1]/2,1/n.resolution,-1/n.resolution,-n.rotation,-n.center[0],-n.center[1]),My(a,i)},e.prototype.forEachFeatureAtCoordinate=function(t,n,i,a,o,s,A,l){var u,c=n.viewState;function h(tt,q,rt,nt){return o.call(s,q,tt?rt:null,nt)}var f=c.projection,p=XL(t.slice(),f),v=[[0,0]];if(f.canWrapX()&&a){var m=f.getExtent(),g=Vr(m);v.push([-g,0],[g,0])}for(var _=n.layerStatesArray,w=_.length,C=[],F=[],O=0;O<v.length;O++)for(var I=w-1;I>=0;--I){var b=_[I],L=b.layer;if(L.hasRenderer()&&G1(b,c)&&A.call(l,L)){var N=L.getRenderer(),x=L.getSource();if(N&&x){var S=x.getWrapX()?p:t,P=h.bind(null,b.managed);F[0]=S[0]+v[O][0],F[1]=S[1]+v[O][1],u=N.forEachFeatureAtCoordinate(F,n,i,P,C)}if(u)return u}}if(C.length!==0){var U=1/C.length;return C.forEach(function(tt,q){return tt.distanceSq+=q*U}),C.sort(function(tt,q){return tt.distanceSq-q.distanceSq}),C.some(function(tt){return u=tt.callback(tt.feature,tt.layer,tt.geometry)}),u}},e.prototype.forEachLayerAtPixel=function(t,n,i,a,o){return Re()},e.prototype.hasFeatureAtCoordinate=function(t,n,i,a,o,s){var A=this.forEachFeatureAtCoordinate(t,n,i,a,il,this,o,s);return A!==void 0},e.prototype.getMap=function(){return this.map_},e.prototype.renderFrame=function(t){Re()},e.prototype.scheduleExpireIconCache=function(t){H1.canExpireCache()&&t.postRenderFunctions.push(zY)},e}(yE);function zY(r,e){H1.expire()}var XY=WY,qY=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),ZY=function(r){qY(e,r);function e(t,n,i,a){var o=r.call(this,t)||this;return o.inversePixelTransform=n,o.frameState=i,o.context=a,o}return e}(ko),Bm=ZY,K0="ol-hidden",JY="ol-selectable",cl="ol-unselectable",UM="ol-unsupported",ep="ol-control",$1="ol-collapsed",tW=new RegExp(["^\\s*(?=(?:(?:[-a-z]+\\s*){0,2}(italic|oblique))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(small-caps))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(bold(?:er)?|lighter|[1-9]00 ))?)","(?:(?:normal|\\1|\\2|\\3)\\s*){0,3}((?:xx?-)?","(?:small|large)|medium|smaller|larger|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx]))","(?:\\s*\\/\\s*(normal|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx])?))",`?\\s*([-,\\"\\'\\sa-z]+?)\\s*$`].join(""),"i"),DM=["style","variant","weight","size","lineHeight","family"],j6=function(r){var e=r.match(tW);if(!e)return null;for(var t={lineHeight:"normal",size:"1.2em",style:"normal",weight:"normal",variant:"normal"},n=0,i=DM.length;n<i;++n){var a=e[n+1];a!==void 0&&(t[DM[n]]=a)}return t.families=t.family.split(/,\s?/),t};function K6(r){return r===1?"":String(Math.round(r*100)/100)}function mo(r,e,t,n){var i;return t&&t.length?i=t.shift():wE?i=new OffscreenCanvas(r||300,e||300):i=document.createElement("canvas"),r&&(i.width=r),e&&(i.height=e),i.getContext("2d",n)}function eW(r){var e=r.offsetWidth,t=getComputedStyle(r);return e+=parseInt(t.marginLeft,10)+parseInt(t.marginRight,10),e}function rW(r){var e=r.offsetHeight,t=getComputedStyle(r);return e+=parseInt(t.marginTop,10)+parseInt(t.marginBottom,10),e}function rv(r,e){var t=e.parentNode;t&&t.replaceChild(r,e)}function V1(r){return r&&r.parentNode?r.parentNode.removeChild(r):null}function Y6(r){for(;r.lastChild;)r.removeChild(r.lastChild)}function nW(r,e){for(var t=r.childNodes,n=0;;++n){var i=t[n],a=e[n];if(!i&&!a)break;if(i!==a){if(!i){r.appendChild(a);continue}if(!a){r.removeChild(i),--n;continue}r.insertBefore(a,i)}}}var W6="10px sans-serif",su="#000",j1="round",Jm=[],ty=0,nv="round",ey=10,ry="#000",ny="center",K1="middle",sf=[0,0,0,0],iy=1,zl=new xi,iW=new Jf;iW.setSize=function(){console.warn("labelCache is deprecated.")};var hd=null,zb,Xb={},aW=function(){var r=100,e="32px ",t=["monospace","serif"],n=t.length,i="wmytzilWMYTZIL@#/&?$%10",a,o;function s(l,u,c){for(var h=!0,f=0;f<n;++f){var p=t[f];if(o=Y1(l+" "+u+" "+e+p,i),c!=p){var v=Y1(l+" "+u+" "+e+c+","+p,i);h=h&&v!=o}}return!!h}function A(){for(var l=!0,u=zl.getKeys(),c=0,h=u.length;c<h;++c){var f=u[c];zl.get(f)<r&&(s.apply(this,f.split(`
|
||
`))?(Zf(Xb),hd=null,zb=void 0,zl.set(f,r)):(zl.set(f,zl.get(f)+1,!0),l=!1))}l&&(clearInterval(a),a=void 0)}return function(l){var u=j6(l);if(u)for(var c=u.families,h=0,f=c.length;h<f;++h){var p=c[h],v=u.style+`
|
||
`+u.weight+`
|
||
`+p;zl.get(v)===void 0&&(zl.set(v,r,!0),s(u.style,u.weight,p)||(zl.set(v,0,!0),a===void 0&&(a=setInterval(A,32))))}}}(),oW=function(){var r;return function(e){var t=Xb[e];if(t==null){if(wE){var n=j6(e),i=z6(e,"Žg"),a=isNaN(Number(n.lineHeight))?1.2:Number(n.lineHeight);t=a*(i.actualBoundingBoxAscent+i.actualBoundingBoxDescent)}else r||(r=document.createElement("div"),r.innerHTML="M",r.style.minHeight="0",r.style.maxHeight="none",r.style.height="auto",r.style.padding="0",r.style.border="none",r.style.position="absolute",r.style.display="block",r.style.left="-99999px"),r.style.font=e,document.body.appendChild(r),t=r.offsetHeight,document.body.removeChild(r);Xb[e]=t}return t}}();function z6(r,e){return hd||(hd=mo(1,1)),r!=zb&&(hd.font=r,zb=hd.font),hd.measureText(e)}function Y1(r,e){return z6(r,e).width}function QM(r,e,t){if(e in t)return t[e];var n=Y1(r,e);return t[e]=n,n}function sW(r,e){for(var t=[],n=[],i=[],a=0,o=0,s=0,A=0,l=0,u=e.length;l<=u;l+=2){var c=e[l];if(c===`
|
||
`||l===u){a=Math.max(a,o),i.push(o),o=0,s+=A;continue}var h=e[l+1]||r.font,f=Y1(h,c);t.push(f),o+=f;var p=oW(h);n.push(p),A=Math.max(A,p)}return{width:a,height:s,widths:t,heights:n,lineWidths:i}}function AW(r,e,t,n,i,a,o,s,A,l,u){r.save(),t!==1&&(r.globalAlpha*=t),e&&r.setTransform.apply(r,e),n.contextInstructions?(r.translate(A,l),r.scale(u[0],u[1]),lW(n,r)):u[0]<0||u[1]<0?(r.translate(A,l),r.scale(u[0],u[1]),r.drawImage(n,i,a,o,s,0,0,o,s)):r.drawImage(n,i,a,o,s,A,l,o*u[0],s*u[1]),r.restore()}function lW(r,e){for(var t=r.contextInstructions,n=0,i=t.length;n<i;n+=2)Array.isArray(t[n+1])?e[t[n]].apply(e,t[n+1]):e[t[n]]=t[n+1]}var uW=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),cW=function(r){uW(e,r);function e(t){var n=r.call(this,t)||this;n.fontChangeListenerKey_=je(zl,Pf.PROPERTYCHANGE,t.redrawText.bind(t)),n.element_=document.createElement("div");var i=n.element_.style;i.position="absolute",i.width="100%",i.height="100%",i.zIndex="0",n.element_.className=cl+" ol-layers";var a=t.getViewport();return a.insertBefore(n.element_,a.firstChild||null),n.children_=[],n.renderedVisible_=!0,n}return e.prototype.dispatchRenderEvent=function(t,n){var i=this.getMap();if(i.hasListener(t)){var a=new Bm(t,void 0,n);i.dispatchEvent(a)}},e.prototype.disposeInternal=function(){Wr(this.fontChangeListenerKey_),this.element_.parentNode.removeChild(this.element_),r.prototype.disposeInternal.call(this)},e.prototype.renderFrame=function(t){if(!t){this.renderedVisible_&&(this.element_.style.display="none",this.renderedVisible_=!1);return}this.calculateMatrices2D(t),this.dispatchRenderEvent(Oo.PRECOMPOSE,t);var n=t.layerStatesArray.sort(function(f,p){return f.zIndex-p.zIndex}),i=t.viewState;this.children_.length=0;for(var a=[],o=null,s=0,A=n.length;s<A;++s){var l=n[s];t.layerIndex=s;var u=l.layer,c=u.getSourceState();if(!G1(l,i)||c!=Ao.READY&&c!=Ao.UNDEFINED){u.unrender();continue}var h=u.render(t,o);h&&(h!==o&&(this.children_.push(h),o=h),"getDeclutter"in u&&a.push(u))}for(var s=a.length-1;s>=0;--s)a[s].renderDeclutter(t);nW(this.element_,this.children_),this.dispatchRenderEvent(Oo.POSTCOMPOSE,t),this.renderedVisible_||(this.element_.style.display="",this.renderedVisible_=!0),this.scheduleExpireIconCache(t)},e.prototype.forEachLayerAtPixel=function(t,n,i,a,o){for(var s=n.viewState,A=n.layerStatesArray,l=A.length,u=l-1;u>=0;--u){var c=A[u],h=c.layer;if(h.hasRenderer()&&G1(c,s)&&o(h)){var f=h.getRenderer(),p=f.getDataAtPixel(t,n,i);if(p){var v=a(h,p);if(v)return v}}}},e}(XY),X6=cW,ai={ADD:"add",REMOVE:"remove"},q6=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),kM={LENGTH:"length"},Y0=function(r){q6(e,r);function e(t,n,i){var a=r.call(this,t)||this;return a.element=n,a.index=i,a}return e}(ko),hW=function(r){q6(e,r);function e(t,n){var i=r.call(this)||this;i.on,i.once,i.un;var a=n||{};if(i.unique_=!!a.unique,i.array_=t||[],i.unique_)for(var o=0,s=i.array_.length;o<s;++o)i.assertUnique_(i.array_[o],o);return i.updateLength_(),i}return e.prototype.clear=function(){for(;this.getLength()>0;)this.pop()},e.prototype.extend=function(t){for(var n=0,i=t.length;n<i;++n)this.push(t[n]);return this},e.prototype.forEach=function(t){for(var n=this.array_,i=0,a=n.length;i<a;++i)t(n[i],i,n)},e.prototype.getArray=function(){return this.array_},e.prototype.item=function(t){return this.array_[t]},e.prototype.getLength=function(){return this.get(kM.LENGTH)},e.prototype.insertAt=function(t,n){this.unique_&&this.assertUnique_(n),this.array_.splice(t,0,n),this.updateLength_(),this.dispatchEvent(new Y0(ai.ADD,n,t))},e.prototype.pop=function(){return this.removeAt(this.getLength()-1)},e.prototype.push=function(t){this.unique_&&this.assertUnique_(t);var n=this.getLength();return this.insertAt(n,t),this.getLength()},e.prototype.remove=function(t){for(var n=this.array_,i=0,a=n.length;i<a;++i)if(n[i]===t)return this.removeAt(i)},e.prototype.removeAt=function(t){var n=this.array_[t];return this.array_.splice(t,1),this.updateLength_(),this.dispatchEvent(new Y0(ai.REMOVE,n,t)),n},e.prototype.setAt=function(t,n){var i=this.getLength();if(t<i){this.unique_&&this.assertUnique_(n,t);var a=this.array_[t];this.array_[t]=n,this.dispatchEvent(new Y0(ai.REMOVE,a,t)),this.dispatchEvent(new Y0(ai.ADD,n,t))}else{for(var o=i;o<t;++o)this.insertAt(o,void 0);this.insertAt(t,n)}},e.prototype.updateLength_=function(){this.set(kM.LENGTH,this.array_.length)},e.prototype.assertUnique_=function(t,n){for(var i=0,a=this.array_.length;i<a;++i)if(this.array_[i]===t&&i!==n)throw new b6(58)},e}(xi),bi=hW,Z6=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),vc=function(r){Z6(e,r);function e(t,n){var i=r.call(this,t)||this;return i.layer=n,i}return e}(ko),CB={LAYERS:"layers"},fW=function(r){Z6(e,r);function e(t){var n=this,i=t||{},a=Ce({},i);delete a.layers;var o=i.layers;return n=r.call(this,a)||this,n.on,n.once,n.un,n.layersListenerKeys_=[],n.listenerKeys_={},n.addChangeListener(CB.LAYERS,n.handleLayersChanged_),o?Array.isArray(o)?o=new bi(o.slice(),{unique:!0}):Le(typeof o.getArray=="function",43):o=new bi(void 0,{unique:!0}),n.setLayers(o),n}return e.prototype.handleLayerChange_=function(){this.changed()},e.prototype.handleLayersChanged_=function(){this.layersListenerKeys_.forEach(Wr),this.layersListenerKeys_.length=0;var t=this.getLayers();this.layersListenerKeys_.push(je(t,ai.ADD,this.handleLayersAdd_,this),je(t,ai.REMOVE,this.handleLayersRemove_,this));for(var n in this.listenerKeys_)this.listenerKeys_[n].forEach(Wr);Zf(this.listenerKeys_);for(var i=t.getArray(),a=0,o=i.length;a<o;a++){var s=i[a];this.registerLayerListeners_(s),this.dispatchEvent(new vc("addlayer",s))}this.changed()},e.prototype.registerLayerListeners_=function(t){var n=[je(t,Pf.PROPERTYCHANGE,this.handleLayerChange_,this),je(t,xe.CHANGE,this.handleLayerChange_,this)];t instanceof e&&n.push(je(t,"addlayer",this.handleLayerGroupAdd_,this),je(t,"removelayer",this.handleLayerGroupRemove_,this)),this.listenerKeys_[Ee(t)]=n},e.prototype.handleLayerGroupAdd_=function(t){this.dispatchEvent(new vc("addlayer",t.layer))},e.prototype.handleLayerGroupRemove_=function(t){this.dispatchEvent(new vc("removelayer",t.layer))},e.prototype.handleLayersAdd_=function(t){var n=t.element;this.registerLayerListeners_(n),this.dispatchEvent(new vc("addlayer",n)),this.changed()},e.prototype.handleLayersRemove_=function(t){var n=t.element,i=Ee(n);this.listenerKeys_[i].forEach(Wr),delete this.listenerKeys_[i],this.dispatchEvent(new vc("removelayer",n)),this.changed()},e.prototype.getLayers=function(){return this.get(CB.LAYERS)},e.prototype.setLayers=function(t){var n=this.getLayers();if(n)for(var i=n.getArray(),a=0,o=i.length;a<o;++a)this.dispatchEvent(new vc("removelayer",i[a]));this.set(CB.LAYERS,t)},e.prototype.getLayersArray=function(t){var n=t!==void 0?t:[];return this.getLayers().forEach(function(i){i.getLayersArray(n)}),n},e.prototype.getLayerStatesArray=function(t){var n=t!==void 0?t:[],i=n.length;this.getLayers().forEach(function(u){u.getLayerStatesArray(n)});var a=this.getLayerState(),o=a.zIndex;!t&&a.zIndex===void 0&&(o=0);for(var s=i,A=n.length;s<A;s++){var l=n[s];l.opacity*=a.opacity,l.visible=l.visible&&a.visible,l.maxResolution=Math.min(l.maxResolution,a.maxResolution),l.minResolution=Math.max(l.minResolution,a.minResolution),l.minZoom=Math.max(l.minZoom,a.minZoom),l.maxZoom=Math.min(l.maxZoom,a.maxZoom),a.extent!==void 0&&(l.extent!==void 0?l.extent=Ps(l.extent,a.extent):l.extent=a.extent),l.zIndex===void 0&&(l.zIndex=o)}return n},e.prototype.getSourceState=function(){return Ao.READY},e}(YL),Dy=fW,pW=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),dW=function(r){pW(e,r);function e(t,n,i){var a=r.call(this,t)||this;return a.map=n,a.frameState=i!==void 0?i:null,a}return e}(ko),fd=dW,vW=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),gW=function(r){vW(e,r);function e(t,n,i,a,o){var s=r.call(this,t,n,o)||this;return s.originalEvent=i,s.pixel_=null,s.coordinate_=null,s.dragging=a!==void 0?a:!1,s}return Object.defineProperty(e.prototype,"pixel",{get:function(){return this.pixel_||(this.pixel_=this.map.getEventPixel(this.originalEvent)),this.pixel_},set:function(t){this.pixel_=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"coordinate",{get:function(){return this.coordinate_||(this.coordinate_=this.map.getCoordinateFromPixel(this.pixel)),this.coordinate_},set:function(t){this.coordinate_=t},enumerable:!1,configurable:!0}),e.prototype.preventDefault=function(){r.prototype.preventDefault.call(this),"preventDefault"in this.originalEvent&&this.originalEvent.preventDefault()},e.prototype.stopPropagation=function(){r.prototype.stopPropagation.call(this),"stopPropagation"in this.originalEvent&&this.originalEvent.stopPropagation()},e}(fd),ql=gW,mr={SINGLECLICK:"singleclick",CLICK:xe.CLICK,DBLCLICK:xe.DBLCLICK,POINTERDRAG:"pointerdrag",POINTERMOVE:"pointermove",POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERCANCEL:"pointercancel"},zA={POINTERMOVE:"pointermove",POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERCANCEL:"pointercancel"},mW=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),yW=function(r){mW(e,r);function e(t,n){var i=r.call(this,t)||this;i.map_=t,i.clickTimeoutId_,i.emulateClicks_=!1,i.dragging_=!1,i.dragListenerKeys_=[],i.moveTolerance_=n===void 0?1:n,i.down_=null;var a=i.map_.getViewport();return i.activePointers_=0,i.trackedTouches_={},i.element_=a,i.pointerdownListenerKey_=je(a,zA.POINTERDOWN,i.handlePointerDown_,i),i.originalPointerMoveEvent_,i.relayedListenerKey_=je(a,zA.POINTERMOVE,i.relayEvent_,i),i.boundHandleTouchMove_=i.handleTouchMove_.bind(i),i.element_.addEventListener(xe.TOUCHMOVE,i.boundHandleTouchMove_,T6?{passive:!1}:!1),i}return e.prototype.emulateClick_=function(t){var n=new ql(mr.CLICK,this.map_,t);this.dispatchEvent(n),this.clickTimeoutId_!==void 0?(clearTimeout(this.clickTimeoutId_),this.clickTimeoutId_=void 0,n=new ql(mr.DBLCLICK,this.map_,t),this.dispatchEvent(n)):this.clickTimeoutId_=setTimeout(function(){this.clickTimeoutId_=void 0;var i=new ql(mr.SINGLECLICK,this.map_,t);this.dispatchEvent(i)}.bind(this),250)},e.prototype.updateActivePointers_=function(t){var n=t;n.type==mr.POINTERUP||n.type==mr.POINTERCANCEL?delete this.trackedTouches_[n.pointerId]:n.type==mr.POINTERDOWN&&(this.trackedTouches_[n.pointerId]=!0),this.activePointers_=Object.keys(this.trackedTouches_).length},e.prototype.handlePointerUp_=function(t){this.updateActivePointers_(t);var n=new ql(mr.POINTERUP,this.map_,t);this.dispatchEvent(n),this.emulateClicks_&&!n.defaultPrevented&&!this.dragging_&&this.isMouseActionButton_(t)&&this.emulateClick_(this.down_),this.activePointers_===0&&(this.dragListenerKeys_.forEach(Wr),this.dragListenerKeys_.length=0,this.dragging_=!1,this.down_=null)},e.prototype.isMouseActionButton_=function(t){return t.button===0},e.prototype.handlePointerDown_=function(t){this.emulateClicks_=this.activePointers_===0,this.updateActivePointers_(t);var n=new ql(mr.POINTERDOWN,this.map_,t);this.dispatchEvent(n),this.down_={};for(var i in t){var a=t[i];this.down_[i]=typeof a=="function"?Mf:a}if(this.dragListenerKeys_.length===0){var o=this.map_.getOwnerDocument();this.dragListenerKeys_.push(je(o,mr.POINTERMOVE,this.handlePointerMove_,this),je(o,mr.POINTERUP,this.handlePointerUp_,this),je(this.element_,mr.POINTERCANCEL,this.handlePointerUp_,this)),this.element_.getRootNode&&this.element_.getRootNode()!==o&&this.dragListenerKeys_.push(je(this.element_.getRootNode(),mr.POINTERUP,this.handlePointerUp_,this))}},e.prototype.handlePointerMove_=function(t){if(this.isMoving_(t)){this.dragging_=!0;var n=new ql(mr.POINTERDRAG,this.map_,t,this.dragging_);this.dispatchEvent(n)}},e.prototype.relayEvent_=function(t){this.originalPointerMoveEvent_=t;var n=!!(this.down_&&this.isMoving_(t));this.dispatchEvent(new ql(t.type,this.map_,t,n))},e.prototype.handleTouchMove_=function(t){var n=this.originalPointerMoveEvent_;(!n||n.defaultPrevented)&&(typeof t.cancelable!="boolean"||t.cancelable===!0)&&t.preventDefault()},e.prototype.isMoving_=function(t){return this.dragging_||Math.abs(t.clientX-this.down_.clientX)>this.moveTolerance_||Math.abs(t.clientY-this.down_.clientY)>this.moveTolerance_},e.prototype.disposeInternal=function(){this.relayedListenerKey_&&(Wr(this.relayedListenerKey_),this.relayedListenerKey_=null),this.element_.removeEventListener(xe.TOUCHMOVE,this.boundHandleTouchMove_),this.pointerdownListenerKey_&&(Wr(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(Wr),this.dragListenerKeys_.length=0,this.element_=null,r.prototype.disposeInternal.call(this)},e}(Jf),_W=yW,KA={POSTRENDER:"postrender",MOVESTART:"movestart",MOVEEND:"moveend",LOADSTART:"loadstart",LOADEND:"loadend"},mi={LAYERGROUP:"layergroup",SIZE:"size",TARGET:"target",VIEW:"view"},W1=1/0,wW=function(){function r(e,t){this.priorityFunction_=e,this.keyFunction_=t,this.elements_=[],this.priorities_=[],this.queuedElements_={}}return r.prototype.clear=function(){this.elements_.length=0,this.priorities_.length=0,Zf(this.queuedElements_)},r.prototype.dequeue=function(){var e=this.elements_,t=this.priorities_,n=e[0];e.length==1?(e.length=0,t.length=0):(e[0]=e.pop(),t[0]=t.pop(),this.siftUp_(0));var i=this.keyFunction_(n);return delete this.queuedElements_[i],n},r.prototype.enqueue=function(e){Le(!(this.keyFunction_(e)in this.queuedElements_),31);var t=this.priorityFunction_(e);return t!=W1?(this.elements_.push(e),this.priorities_.push(t),this.queuedElements_[this.keyFunction_(e)]=!0,this.siftDown_(0,this.elements_.length-1),!0):!1},r.prototype.getCount=function(){return this.elements_.length},r.prototype.getLeftChildIndex_=function(e){return e*2+1},r.prototype.getRightChildIndex_=function(e){return e*2+2},r.prototype.getParentIndex_=function(e){return e-1>>1},r.prototype.heapify_=function(){var e;for(e=(this.elements_.length>>1)-1;e>=0;e--)this.siftUp_(e)},r.prototype.isEmpty=function(){return this.elements_.length===0},r.prototype.isKeyQueued=function(e){return e in this.queuedElements_},r.prototype.isQueued=function(e){return this.isKeyQueued(this.keyFunction_(e))},r.prototype.siftUp_=function(e){for(var t=this.elements_,n=this.priorities_,i=t.length,a=t[e],o=n[e],s=e;e<i>>1;){var A=this.getLeftChildIndex_(e),l=this.getRightChildIndex_(e),u=l<i&&n[l]<n[A]?l:A;t[e]=t[u],n[e]=n[u],e=u}t[e]=a,n[e]=o,this.siftDown_(s,e)},r.prototype.siftDown_=function(e,t){for(var n=this.elements_,i=this.priorities_,a=n[t],o=i[t];t>e;){var s=this.getParentIndex_(t);if(i[s]>o)n[t]=n[s],i[t]=i[s],t=s;else break}n[t]=a,i[t]=o},r.prototype.reprioritize=function(){var e=this.priorityFunction_,t=this.elements_,n=this.priorities_,i=0,a=t.length,o,s,A;for(s=0;s<a;++s)o=t[s],A=e(o),A==W1?delete this.queuedElements_[this.keyFunction_(o)]:(n[i]=A,t[i++]=o);t.length=i,n.length=i,this.heapify_()},r}(),EW=wW,be={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4},CW=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),BW=function(r){CW(e,r);function e(t,n){var i=r.call(this,function(a){return t.apply(null,a)},function(a){return a[0].getKey()})||this;return i.boundHandleTileChange_=i.handleTileChange.bind(i),i.tileChangeCallback_=n,i.tilesLoading_=0,i.tilesLoadingKeys_={},i}return e.prototype.enqueue=function(t){var n=r.prototype.enqueue.call(this,t);if(n){var i=t[0];i.addEventListener(xe.CHANGE,this.boundHandleTileChange_)}return n},e.prototype.getTilesLoading=function(){return this.tilesLoading_},e.prototype.handleTileChange=function(t){var n=t.target,i=n.getState();if(i===be.LOADED||i===be.ERROR||i===be.EMPTY){n.removeEventListener(xe.CHANGE,this.boundHandleTileChange_);var a=n.getKey();a in this.tilesLoadingKeys_&&(delete this.tilesLoadingKeys_[a],--this.tilesLoading_),this.tileChangeCallback_()}},e.prototype.loadMoreTiles=function(t,n){for(var i=0,a,o,s;this.tilesLoading_<t&&i<n&&this.getCount()>0;)o=this.dequeue()[0],s=o.getKey(),a=o.getState(),a===be.IDLE&&!(s in this.tilesLoadingKeys_)&&(this.tilesLoadingKeys_[s]=!0,++this.tilesLoading_,++i,o.load())},e}(EW),TW=BW;function bW(r,e,t,n,i){if(!r||!(t in r.wantedTiles)||!r.wantedTiles[t][e.getKey()])return W1;var a=r.viewState.center,o=n[0]-a[0],s=n[1]-a[1];return 65536*Math.log(i)+Math.sqrt(o*o+s*s)/i}var dt={POINT:"Point",LINE_STRING:"LineString",LINEAR_RING:"LinearRing",POLYGON:"Polygon",MULTI_POINT:"MultiPoint",MULTI_LINE_STRING:"MultiLineString",MULTI_POLYGON:"MultiPolygon",GEOMETRY_COLLECTION:"GeometryCollection",CIRCLE:"Circle"},Iv={RADIANS:"radians",DEGREES:"degrees",FEET:"ft",METERS:"m",PIXELS:"pixels",TILE_PIXELS:"tile-pixels",USFEET:"us-ft"},pA={};pA[Iv.RADIANS]=6370997/(2*Math.PI);pA[Iv.DEGREES]=2*Math.PI*6370997/360;pA[Iv.FEET]=.3048;pA[Iv.METERS]=1;pA[Iv.USFEET]=1200/3937;var lo=Iv,Sn={ANIMATING:0,INTERACTING:1},os={CENTER:"center",RESOLUTION:"resolution",ROTATION:"rotation"},SW=42,qL=256,xW=function(){function r(e){this.code_=e.code,this.units_=e.units,this.extent_=e.extent!==void 0?e.extent:null,this.worldExtent_=e.worldExtent!==void 0?e.worldExtent:null,this.axisOrientation_=e.axisOrientation!==void 0?e.axisOrientation:"enu",this.global_=e.global!==void 0?e.global:!1,this.canWrapX_=!!(this.global_&&this.extent_),this.getPointResolutionFunc_=e.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=e.metersPerUnit}return r.prototype.canWrapX=function(){return this.canWrapX_},r.prototype.getCode=function(){return this.code_},r.prototype.getExtent=function(){return this.extent_},r.prototype.getUnits=function(){return this.units_},r.prototype.getMetersPerUnit=function(){return this.metersPerUnit_||pA[this.units_]},r.prototype.getWorldExtent=function(){return this.worldExtent_},r.prototype.getAxisOrientation=function(){return this.axisOrientation_},r.prototype.isGlobal=function(){return this.global_},r.prototype.setGlobal=function(e){this.global_=e,this.canWrapX_=!!(e&&this.extent_)},r.prototype.getDefaultTileGrid=function(){return this.defaultTileGrid_},r.prototype.setDefaultTileGrid=function(e){this.defaultTileGrid_=e},r.prototype.setExtent=function(e){this.extent_=e,this.canWrapX_=!!(this.global_&&e)},r.prototype.setWorldExtent=function(e){this.worldExtent_=e},r.prototype.setGetPointResolution=function(e){this.getPointResolutionFunc_=e},r.prototype.getPointResolutionFunc=function(){return this.getPointResolutionFunc_},r}(),Bu=xW,IW=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Qy=6378137,Td=Math.PI*Qy,LW=[-Td,-Td,Td,Td],FW=[-180,-85,180,85],W0=Qy*Math.log(Math.tan(Math.PI/2)),jp=function(r){IW(e,r);function e(t){return r.call(this,{code:t,units:lo.METERS,extent:LW,global:!0,worldExtent:FW,getPointResolution:function(n,i){return n/IY(i[1]/Qy)}})||this}return e}(Bu),HM=[new jp("EPSG:3857"),new jp("EPSG:102100"),new jp("EPSG:102113"),new jp("EPSG:900913"),new jp("http://www.opengis.net/def/crs/EPSG/0/3857"),new jp("http://www.opengis.net/gml/srs/epsg.xml#3857")];function OW(r,e,t){var n=r.length,i=t>1?t:2,a=e;a===void 0&&(i>2?a=r.slice():a=new Array(n));for(var o=0;o<n;o+=i){a[o]=Td*r[o]/180;var s=Qy*Math.log(Math.tan(Math.PI*(+r[o+1]+90)/360));s>W0?s=W0:s<-W0&&(s=-W0),a[o+1]=s}return a}function RW(r,e,t){var n=r.length,i=t>1?t:2,a=e;a===void 0&&(i>2?a=r.slice():a=new Array(n));for(var o=0;o<n;o+=i)a[o]=180*r[o]/Td,a[o+1]=360*Math.atan(Math.exp(r[o+1]/Qy))/Math.PI-90;return a}var MW=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),NW=6378137,GM=[-180,-90,180,90],PW=Math.PI*NW/180,kh=function(r){MW(e,r);function e(t,n){return r.call(this,{code:t,units:lo.DEGREES,extent:GM,axisOrientation:n,global:!0,metersPerUnit:PW,worldExtent:GM})||this}return e}(Bu),$M=[new kh("CRS:84"),new kh("EPSG:4326","neu"),new kh("urn:ogc:def:crs:OGC:1.3:CRS84"),new kh("urn:ogc:def:crs:OGC:2:84"),new kh("http://www.opengis.net/def/crs/OGC/1.3/CRS84"),new kh("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new kh("http://www.opengis.net/def/crs/EPSG/0/4326","neu")],qb={};function UW(r){return qb[r]||qb[r.replace(/urn:(x-)?ogc:def:crs:EPSG:(.*:)?(\w+)$/,"EPSG:$3")]||null}function DW(r,e){qb[r]=e}var kd={};function iv(r,e,t){var n=r.getCode(),i=e.getCode();n in kd||(kd[n]={}),kd[n][i]=t}function J6(r,e){var t;return r in kd&&e in kd[r]&&(t=kd[r][e]),t}var t4=63710088e-1;function z1(r,e,t){var n=t||t4,i=Oc(r[1]),a=Oc(e[1]),o=(a-i)/2,s=Oc(e[0]-r[0])/2,A=Math.sin(o)*Math.sin(o)+Math.sin(s)*Math.sin(s)*Math.cos(i)*Math.cos(a);return 2*n*Math.atan2(Math.sqrt(A),Math.sqrt(1-A))}function QW(r,e,t,n){var i=n||t4,a=Oc(r[1]),o=Oc(r[0]),s=e/i,A=Math.asin(Math.sin(a)*Math.cos(s)+Math.cos(a)*Math.sin(s)*Math.cos(t)),l=o+Math.atan2(Math.sin(t)*Math.sin(s)*Math.cos(a),Math.cos(s)-Math.sin(a)*Math.sin(A));return[FM(l),FM(A)]}var Zb=!0;function kW(r){var e=r===void 0?!0:r;Zb=!e}function ZL(r,e,t){var n;if(e!==void 0){for(var i=0,a=r.length;i<a;++i)e[i]=r[i];n=e}else n=r.slice();return n}function TE(r,e,t){if(e!==void 0&&r!==e){for(var n=0,i=r.length;n<i;++n)e[n]=r[n];r=e}return r}function e4(r){DW(r.getCode(),r),iv(r,r,ZL)}function HW(r){r.forEach(e4)}function Ve(r){return typeof r=="string"?UW(r):r||null}function X1(r,e,t,n){r=Ve(r);var i,a=r.getPointResolutionFunc();if(a){if(i=a(e,t),n&&n!==r.getUnits()){var o=r.getMetersPerUnit();o&&(i=i*o/pA[n])}}else{var s=r.getUnits();if(s==lo.DEGREES&&!n||n==lo.DEGREES)i=e;else{var A=Df(r,Ve("EPSG:4326"));if(A===TE&&s!==lo.DEGREES)i=e*r.getMetersPerUnit();else{var l=[t[0]-e/2,t[1],t[0]+e/2,t[1],t[0],t[1]-e/2,t[0],t[1]+e/2];l=A(l,l,2);var u=z1(l.slice(0,2),l.slice(2,4)),c=z1(l.slice(4,6),l.slice(6,8));i=(u+c)/2}var o=n?pA[n]:r.getMetersPerUnit();o!==void 0&&(i/=o)}}return i}function Jb(r){HW(r),r.forEach(function(e){r.forEach(function(t){e!==t&&iv(e,t,ZL)})})}function GW(r,e,t,n){r.forEach(function(i){e.forEach(function(a){iv(i,a,t),iv(a,i,n)})})}function JL(r,e){return r?typeof r=="string"?Ve(r):r:Ve(e)}function VM(r){return function(e,t,n){for(var i=e.length,a=n!==void 0?n:2,o=t!==void 0?t:new Array(i),s=0;s<i;s+=a){var A=r([e[s],e[s+1]]);o[s]=A[0],o[s+1]=A[1];for(var l=a-1;l>=2;--l)o[s+l]=e[s+l]}return o}}function $W(r,e,t,n){var i=Ve(r),a=Ve(e);iv(i,a,VM(t)),iv(a,i,VM(n))}function XA(r,e){if(r===e)return!0;var t=r.getUnits()===e.getUnits();if(r.getCode()===e.getCode())return t;var n=Df(r,e);return n===ZL&&t}function Df(r,e){var t=r.getCode(),n=e.getCode(),i=J6(t,n);return i||(i=TE),i}function ay(r,e){var t=Ve(r),n=Ve(e);return Df(t,n)}function Wc(r,e,t){var n=ay(e,t);return n(r,void 0,r.length)}function q1(r,e,t,n){var i=ay(e,t);return VL(r,i,void 0,n)}var VW=null;function Qf(){return VW}function av(r,e){return r}function On(r,e){return Zb&&!oA(r,[0,0])&&r[0]>=-180&&r[0]<=180&&r[1]>=-90&&r[1]<=90&&(Zb=!1,console.warn("Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.")),r}function bE(r,e){return r}function cs(r,e){return r}function jW(r,e){return r}function jM(r,e,t){return function(n){var i=n[0],a=n[1],o,s;if(r.canWrapX()){var A=r.getExtent(),l=Vr(A);s=V6(n,r,l),s&&(i=i-s*l),i=Nn(i,A[0],A[2]),a=Nn(a,A[1],A[3]),o=t([i,a])}else o=t(n);return s&&e.canWrapX()&&(o[0]+=s*Vr(e.getExtent())),o}}function KW(){Jb(HM),Jb($M),GW($M,HM,OW,RW)}KW();function KM(r,e,t){return function(n,i,a,o,s){if(n){if(!i&&!e)return n;var A=e?0:a[0]*i,l=e?0:a[1]*i,u=s?s[0]:0,c=s?s[1]:0,h=r[0]+A/2+u,f=r[2]-A/2+u,p=r[1]+l/2+c,v=r[3]-l/2+c;h>f&&(h=(f+h)/2,f=h),p>v&&(p=(v+p)/2,v=p);var m=Nn(n[0],h,f),g=Nn(n[1],p,v);if(o&&t&&i){var _=30*i;m+=-_*Math.log(1+Math.max(0,h-n[0])/_)+_*Math.log(1+Math.max(0,n[0]-f)/_),g+=-_*Math.log(1+Math.max(0,p-n[1])/_)+_*Math.log(1+Math.max(0,n[1]-v)/_)}return[m,g]}}}function YW(r){return r}function tF(r,e,t,n){var i=Vr(e)/t[0],a=Si(e)/t[1];return n?Math.min(r,Math.max(i,a)):Math.min(r,Math.min(i,a))}function eF(r,e,t){var n=Math.min(r,e),i=50;return n*=Math.log(1+i*Math.max(0,r/e-1))/i+1,t&&(n=Math.max(n,t),n/=Math.log(1+i*Math.max(0,t/r-1))/i+1),Nn(n,t/2,e*2)}function WW(r,e,t,n){return function(i,a,o,s){if(i!==void 0){var A=r[0],l=r[r.length-1],u=t?tF(A,t,o,n):A;if(s){var c=e!==void 0?e:!0;return c?eF(i,u,l):Nn(i,l,u)}var h=Math.min(u,i),f=Math.floor(_E(r,h,a));return r[f]>u&&f<r.length-1?r[f+1]:r[f]}else return}}function zW(r,e,t,n,i,a){return function(o,s,A,l){if(o!==void 0){var u=i?tF(e,i,A,a):e,c=t!==void 0?t:0;if(l){var h=n!==void 0?n:!0;return h?eF(o,u,c):Nn(o,c,u)}var f=1e-9,p=Math.ceil(Math.log(e/u)/Math.log(r)-f),v=-s*(.5-f)+.5,m=Math.min(u,o),g=Math.floor(Math.log(e/m)/Math.log(r)+v),_=Math.max(p,g),w=e/Math.pow(r,_);return Nn(w,c,u)}else return}}function YM(r,e,t,n,i){return function(a,o,s,A){if(a!==void 0){var l=n?tF(r,n,s,i):r,u=t!==void 0?t:!0;return!u||!A?Nn(a,e,l):eF(a,l,e)}else return}}function rF(r){if(r!==void 0)return 0}function WM(r){if(r!==void 0)return r}function XW(r){var e=2*Math.PI/r;return function(t,n){if(n)return t;if(t!==void 0)return t=Math.floor(t/e+.5)*e,t}}function qW(r){var e=r||Oc(5);return function(t,n){if(n)return t;if(t!==void 0)return Math.abs(t)<=e?0:t}}function nF(r){return Math.pow(r,3)}function Ds(r){return 1-nF(1-r)}function Z1(r){return 3*r*r-2*r*r*r}function iF(r){return r}function ZW(r){return r<.5?Z1(2*r):1-Z1(2*(r-.5))}var JW=Object.freeze(Object.defineProperty({__proto__:null,easeIn:nF,easeOut:Ds,inAndOut:Z1,linear:iF,upAndDown:ZW},Symbol.toStringTag,{value:"Module"})),ae={XY:"XY",XYZ:"XYZ",XYM:"XYM",XYZM:"XYZM"};function Mc(r,e,t,n,i,a){for(var o=a||[],s=0,A=e;A<t;A+=n){var l=r[A],u=r[A+1];o[s++]=i[0]*l+i[2]*u+i[4],o[s++]=i[1]*l+i[3]*u+i[5]}return a&&o.length!=s&&(o.length=s),o}function aF(r,e,t,n,i,a,o){for(var s=o||[],A=Math.cos(i),l=Math.sin(i),u=a[0],c=a[1],h=0,f=e;f<t;f+=n){var p=r[f]-u,v=r[f+1]-c;s[h++]=u+p*A-v*l,s[h++]=c+p*l+v*A;for(var m=f+2;m<f+n;++m)s[h++]=r[m]}return o&&s.length!=h&&(s.length=h),s}function tz(r,e,t,n,i,a,o,s){for(var A=s||[],l=o[0],u=o[1],c=0,h=e;h<t;h+=n){var f=r[h]-l,p=r[h+1]-u;A[c++]=l+i*f,A[c++]=u+a*p;for(var v=h+2;v<h+n;++v)A[c++]=r[v]}return s&&A.length!=c&&(A.length=c),A}function r4(r,e,t,n,i,a,o){for(var s=o||[],A=0,l=e;l<t;l+=n){s[A++]=r[l]+i,s[A++]=r[l+1]+a;for(var u=l+2;u<l+n;++u)s[A++]=r[u]}return o&&s.length!=A&&(s.length=A),s}var ez=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),zM=Ti(),rz=function(r){ez(e,r);function e(){var t=r.call(this)||this;return t.extent_=Ni(),t.extentRevision_=-1,t.simplifiedGeometryMaxMinSquaredTolerance=0,t.simplifiedGeometryRevision=0,t.simplifyTransformedInternal=oY(function(n,i,a){if(!a)return this.getSimplifiedGeometry(i);var o=this.clone();return o.applyTransform(a),o.getSimplifiedGeometry(i)}),t}return e.prototype.simplifyTransformed=function(t,n){return this.simplifyTransformedInternal(this.getRevision(),t,n)},e.prototype.clone=function(){return Re()},e.prototype.closestPointXY=function(t,n,i,a){return Re()},e.prototype.containsXY=function(t,n){var i=this.getClosestPoint([t,n]);return i[0]===t&&i[1]===n},e.prototype.getClosestPoint=function(t,n){var i=n||[NaN,NaN];return this.closestPointXY(t[0],t[1],i,1/0),i},e.prototype.intersectsCoordinate=function(t){return this.containsXY(t[0],t[1])},e.prototype.computeExtent=function(t){return Re()},e.prototype.getExtent=function(t){if(this.extentRevision_!=this.getRevision()){var n=this.computeExtent(this.extent_);(isNaN(n[0])||isNaN(n[1]))&&ah(n),this.extentRevision_=this.getRevision()}return L6(this.extent_,t)},e.prototype.rotate=function(t,n){Re()},e.prototype.scale=function(t,n,i){Re()},e.prototype.simplify=function(t){return this.getSimplifiedGeometry(t*t)},e.prototype.getSimplifiedGeometry=function(t){return Re()},e.prototype.getType=function(){return Re()},e.prototype.applyTransform=function(t){Re()},e.prototype.intersectsExtent=function(t){return Re()},e.prototype.translate=function(t,n){Re()},e.prototype.transform=function(t,n){var i=Ve(t),a=i.getUnits()==lo.TILE_PIXELS?function(o,s,A){var l=i.getExtent(),u=i.getWorldExtent(),c=Si(u)/Si(l);return vo(zM,u[0],u[3],c,-c,0,0,0),Mc(o,0,o.length,A,zM,s),ay(i,n)(o,s,A)}:ay(i,n);return this.applyTransform(a),this},e}(xi),SE=rz,nz=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),iz=function(r){nz(e,r);function e(){var t=r.call(this)||this;return t.layout=ae.XY,t.stride=2,t.flatCoordinates=null,t}return e.prototype.computeExtent=function(t){return CE(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)},e.prototype.getCoordinates=function(){return Re()},e.prototype.getFirstCoordinate=function(){return this.flatCoordinates.slice(0,this.stride)},e.prototype.getFlatCoordinates=function(){return this.flatCoordinates},e.prototype.getLastCoordinate=function(){return this.flatCoordinates.slice(this.flatCoordinates.length-this.stride)},e.prototype.getLayout=function(){return this.layout},e.prototype.getSimplifiedGeometry=function(t){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),t<0||this.simplifiedGeometryMaxMinSquaredTolerance!==0&&t<=this.simplifiedGeometryMaxMinSquaredTolerance)return this;var n=this.getSimplifiedGeometryInternal(t),i=n.getFlatCoordinates();return i.length<this.flatCoordinates.length?n:(this.simplifiedGeometryMaxMinSquaredTolerance=t,this)},e.prototype.getSimplifiedGeometryInternal=function(t){return this},e.prototype.getStride=function(){return this.stride},e.prototype.setFlatCoordinates=function(t,n){this.stride=tS(t),this.layout=t,this.flatCoordinates=n},e.prototype.setCoordinates=function(t,n){Re()},e.prototype.setLayout=function(t,n,i){var a;if(t)a=tS(t);else{for(var o=0;o<i;++o)if(n.length===0){this.layout=ae.XY,this.stride=2;return}else n=n[0];a=n.length,t=az(a)}this.layout=t,this.stride=a},e.prototype.applyTransform=function(t){this.flatCoordinates&&(t(this.flatCoordinates,this.flatCoordinates,this.stride),this.changed())},e.prototype.rotate=function(t,n){var i=this.getFlatCoordinates();if(i){var a=this.getStride();aF(i,0,i.length,a,t,n,i),this.changed()}},e.prototype.scale=function(t,n,i){var a=n;a===void 0&&(a=t);var o=i;o||(o=Ya(this.getExtent()));var s=this.getFlatCoordinates();if(s){var A=this.getStride();tz(s,0,s.length,A,t,a,o,s),this.changed()}},e.prototype.translate=function(t,n){var i=this.getFlatCoordinates();if(i){var a=this.getStride();r4(i,0,i.length,a,t,n,i),this.changed()}},e}(SE);function az(r){var e;return r==2?e=ae.XY:r==3?e=ae.XYZ:r==4&&(e=ae.XYZM),e}function tS(r){var e;return r==ae.XY?e=2:r==ae.XYZ||r==ae.XYM?e=3:r==ae.XYZM&&(e=4),e}function oz(r,e,t){var n=r.getFlatCoordinates();if(n){var i=r.getStride();return Mc(n,0,n.length,i,e,t)}else return null}var dA=iz;function XM(r,e,t,n,i,a,o){var s=r[e],A=r[e+1],l=r[t]-s,u=r[t+1]-A,c;if(l===0&&u===0)c=e;else{var h=((i-s)*l+(a-A)*u)/(l*l+u*u);if(h>1)c=t;else if(h>0){for(var f=0;f<n;++f)o[f]=Jl(r[e+f],r[t+f],h);o.length=n;return}else c=e}for(var f=0;f<n;++f)o[f]=r[c+f];o.length=n}function oF(r,e,t,n,i){var a=r[e],o=r[e+1];for(e+=n;e<t;e+=n){var s=r[e],A=r[e+1],l=wf(a,o,s,A);l>i&&(i=l),a=s,o=A}return i}function sF(r,e,t,n,i){for(var a=0,o=t.length;a<o;++a){var s=t[a];i=oF(r,e,s,n,i),e=s}return i}function sz(r,e,t,n,i){for(var a=0,o=t.length;a<o;++a){var s=t[a];i=sF(r,e,s,n,i),e=s[s.length-1]}return i}function AF(r,e,t,n,i,a,o,s,A,l,u){if(e==t)return l;var c,h;if(i===0)if(h=wf(o,s,r[e],r[e+1]),h<l){for(c=0;c<n;++c)A[c]=r[e+c];return A.length=n,h}else return l;for(var f=u||[NaN,NaN],p=e+n;p<t;)if(XM(r,p-n,p,n,o,s,f),h=wf(o,s,f[0],f[1]),h<l){for(l=h,c=0;c<n;++c)A[c]=f[c];A.length=n,p+=n}else p+=n*Math.max((Math.sqrt(h)-Math.sqrt(l))/i|0,1);if(a&&(XM(r,t-n,e,n,o,s,f),h=wf(o,s,f[0],f[1]),h<l)){for(l=h,c=0;c<n;++c)A[c]=f[c];A.length=n}return l}function lF(r,e,t,n,i,a,o,s,A,l,u){for(var c=u||[NaN,NaN],h=0,f=t.length;h<f;++h){var p=t[h];l=AF(r,e,p,n,i,a,o,s,A,l,c),e=p}return l}function Az(r,e,t,n,i,a,o,s,A,l,u){for(var c=u||[NaN,NaN],h=0,f=t.length;h<f;++h){var p=t[h];l=lF(r,e,p,n,i,a,o,s,A,l,c),e=p[p.length-1]}return l}function n4(r,e,t,n){for(var i=0,a=t.length;i<a;++i)r[e++]=t[i];return e}function ky(r,e,t,n){for(var i=0,a=t.length;i<a;++i)for(var o=t[i],s=0;s<n;++s)r[e++]=o[s];return e}function uF(r,e,t,n,i){for(var a=i||[],o=0,s=0,A=t.length;s<A;++s){var l=ky(r,e,t[s],n);a[o++]=l,e=l}return a.length=o,a}function lz(r,e,t,n,i){for(var a=i||[],o=0,s=0,A=t.length;s<A;++s){var l=uF(r,e,t[s],n,a[o]);a[o++]=l,e=l[l.length-1]}return a.length=o,a}function cF(r,e,t,n,i,a,o){var s=(t-e)/n;if(s<3){for(;e<t;e+=n)a[o++]=r[e],a[o++]=r[e+1];return o}var A=new Array(s);A[0]=1,A[s-1]=1;for(var l=[e,t-n],u=0;l.length>0;){for(var c=l.pop(),h=l.pop(),f=0,p=r[h],v=r[h+1],m=r[c],g=r[c+1],_=h+n;_<c;_+=n){var w=r[_],C=r[_+1],F=LY(w,C,p,v,m,g);F>f&&(u=_,f=F)}f>i&&(A[(u-e)/n]=1,h+n<u&&l.push(h,u),u+n<c&&l.push(u,c))}for(var _=0;_<s;++_)A[_]&&(a[o++]=r[e+_*n],a[o++]=r[e+_*n+1]);return o}function uz(r,e,t,n,i,a,o,s){for(var A=0,l=t.length;A<l;++A){var u=t[A];o=cF(r,e,u,n,i,a,o),s.push(o),e=u}return o}function qh(r,e){return e*Math.round(r/e)}function cz(r,e,t,n,i,a,o){if(e==t)return o;var s=qh(r[e],i),A=qh(r[e+1],i);e+=n,a[o++]=s,a[o++]=A;var l,u;do if(l=qh(r[e],i),u=qh(r[e+1],i),e+=n,e==t)return a[o++]=l,a[o++]=u,o;while(l==s&&u==A);for(;e<t;){var c=qh(r[e],i),h=qh(r[e+1],i);if(e+=n,!(c==l&&h==u)){var f=l-s,p=u-A,v=c-s,m=h-A;if(f*m==p*v&&(f<0&&v<f||f==v||f>0&&v>f)&&(p<0&&m<p||p==m||p>0&&m>p)){l=c,u=h;continue}a[o++]=l,a[o++]=u,s=l,A=u,l=c,u=h}}return a[o++]=l,a[o++]=u,o}function i4(r,e,t,n,i,a,o,s){for(var A=0,l=t.length;A<l;++A){var u=t[A];o=cz(r,e,u,n,i,a,o),s.push(o),e=u}return o}function hz(r,e,t,n,i,a,o,s){for(var A=0,l=t.length;A<l;++A){var u=t[A],c=[];o=i4(r,e,u,n,i,a,o,c),s.push(c),e=u[u.length-1]}return o}function ru(r,e,t,n,i){for(var a=i!==void 0?i:[],o=0,s=e;s<t;s+=n)a[o++]=r.slice(s,s+n);return a.length=o,a}function oy(r,e,t,n,i){for(var a=i!==void 0?i:[],o=0,s=0,A=t.length;s<A;++s){var l=t[s];a[o++]=ru(r,e,l,n,a[o]),e=l}return a.length=o,a}function eS(r,e,t,n,i){for(var a=i!==void 0?i:[],o=0,s=0,A=t.length;s<A;++s){var l=t[s];a[o++]=oy(r,e,l,n,a[o]),e=l[l.length-1]}return a.length=o,a}function a4(r,e,t,n){for(var i=0,a=r[t-n],o=r[t-n+1];e<t;e+=n){var s=r[e],A=r[e+1];i+=o*s-a*A,a=s,o=A}return i/2}function o4(r,e,t,n){for(var i=0,a=0,o=t.length;a<o;++a){var s=t[a];i+=a4(r,e,s,n),e=s}return i}function fz(r,e,t,n){for(var i=0,a=0,o=t.length;a<o;++a){var s=t[a];i+=o4(r,e,s,n),e=s[s.length-1]}return i}var pz=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),dz=function(r){pz(e,r);function e(t,n){var i=r.call(this)||this;return i.maxDelta_=-1,i.maxDeltaRevision_=-1,n!==void 0&&!Array.isArray(t[0])?i.setFlatCoordinates(n,t):i.setCoordinates(t,n),i}return e.prototype.clone=function(){return new e(this.flatCoordinates.slice(),this.layout)},e.prototype.closestPointXY=function(t,n,i,a){return a<ih(this.getExtent(),t,n)?a:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(oF(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),AF(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!0,t,n,i,a))},e.prototype.getArea=function(){return a4(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getCoordinates=function(){return ru(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getSimplifiedGeometryInternal=function(t){var n=[];return n.length=cF(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,n,0),new e(n,ae.XY)},e.prototype.getType=function(){return dt.LINEAR_RING},e.prototype.intersectsExtent=function(t){return!1},e.prototype.setCoordinates=function(t,n){this.setLayout(n,t,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=ky(this.flatCoordinates,0,t,this.stride),this.changed()},e}(dA),ov=dz,vz=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),gz=function(r){vz(e,r);function e(t,n){var i=r.call(this)||this;return i.setCoordinates(t,n),i}return e.prototype.clone=function(){var t=new e(this.flatCoordinates.slice(),this.layout);return t.applyProperties(this),t},e.prototype.closestPointXY=function(t,n,i,a){var o=this.flatCoordinates,s=wf(t,n,o[0],o[1]);if(s<a){for(var A=this.stride,l=0;l<A;++l)i[l]=o[l];return i.length=A,s}else return a},e.prototype.getCoordinates=function(){return this.flatCoordinates?this.flatCoordinates.slice():[]},e.prototype.computeExtent=function(t){return mf(this.flatCoordinates,t)},e.prototype.getType=function(){return dt.POINT},e.prototype.intersectsExtent=function(t){return EE(t,this.flatCoordinates[0],this.flatCoordinates[1])},e.prototype.setCoordinates=function(t,n){this.setLayout(n,t,0),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=n4(this.flatCoordinates,0,t,this.stride),this.changed()},e}(dA),Sr=gz;function mz(r,e,t,n,i){var a=BE(i,function(o){return!Af(r,e,t,n,o[0],o[1])});return!a}function Af(r,e,t,n,i,a){for(var o=0,s=r[t-n],A=r[t-n+1];e<t;e+=n){var l=r[e],u=r[e+1];A<=a?u>a&&(l-s)*(a-A)-(i-s)*(u-A)>0&&o++:u<=a&&(l-s)*(a-A)-(i-s)*(u-A)<0&&o--,s=l,A=u}return o!==0}function hF(r,e,t,n,i,a){if(t.length===0||!Af(r,e,t[0],n,i,a))return!1;for(var o=1,s=t.length;o<s;++o)if(Af(r,t[o-1],t[o],n,i,a))return!1;return!0}function yz(r,e,t,n,i,a){if(t.length===0)return!1;for(var o=0,s=t.length;o<s;++o){var A=t[o];if(hF(r,e,A,n,i,a))return!0;e=A[A.length-1]}return!1}function fF(r,e,t,n,i,a,o){for(var s,A,l,u,c,h,f,p=i[a+1],v=[],m=0,g=t.length;m<g;++m){var _=t[m];for(u=r[_-n],h=r[_-n+1],s=e;s<_;s+=n)c=r[s],f=r[s+1],(p<=h&&f<=p||h<=p&&p<=f)&&(l=(p-h)/(f-h)*(c-u)+u,v.push(l)),u=c,h=f}var w=NaN,C=-1/0;for(v.sort(Vc),u=v[0],s=1,A=v.length;s<A;++s){c=v[s];var F=Math.abs(c-u);F>C&&(l=(u+c)/2,hF(r,e,t,n,l,p)&&(w=l,C=F)),u=c}return isNaN(w)&&(w=i[a]),o?(o.push(w,p,C),o):[w,p,C]}function s4(r,e,t,n,i){for(var a=[],o=0,s=t.length;o<s;++o){var A=t[o];a=fF(r,e,A,n,i,2*o,a),e=A[A.length-1]}return a}function A4(r,e,t,n,i){var a;for(e+=n;e<t;e+=n)if(a=i(r.slice(e-n,e),r.slice(e,e+n)),a)return a;return!1}function xE(r,e,t,n,i){var a=$L(Ni(),r,e,t,n);return Wn(i,a)?us(i,a)||a[0]>=i[0]&&a[2]<=i[2]||a[1]>=i[1]&&a[3]<=i[3]?!0:A4(r,e,t,n,function(o,s){return O6(i,o,s)}):!1}function _z(r,e,t,n,i){for(var a=0,o=t.length;a<o;++a){if(xE(r,e,t[a],n,i))return!0;e=t[a]}return!1}function wz(r,e,t,n,i){return!!(xE(r,e,t,n,i)||Af(r,e,t,n,i[0],i[1])||Af(r,e,t,n,i[0],i[3])||Af(r,e,t,n,i[2],i[1])||Af(r,e,t,n,i[2],i[3]))}function l4(r,e,t,n,i){if(!wz(r,e,t[0],n,i))return!1;if(t.length===1)return!0;for(var a=1,o=t.length;a<o;++a)if(mz(r,t[a-1],t[a],n,i)&&!xE(r,t[a-1],t[a],n,i))return!1;return!0}function Ez(r,e,t,n,i){for(var a=0,o=t.length;a<o;++a){var s=t[a];if(l4(r,e,s,n,i))return!0;e=s[s.length-1]}return!1}function Cz(r,e,t,n){for(;e<t-n;){for(var i=0;i<n;++i){var a=r[e+i];r[e+i]=r[t-n+i],r[t-n+i]=a}e+=n,t-=n}}function IE(r,e,t,n){for(var i=0,a=r[t-n],o=r[t-n+1];e<t;e+=n){var s=r[e],A=r[e+1];i+=(s-a)*(A+o),a=s,o=A}return i===0?void 0:i>0}function u4(r,e,t,n,i){for(var a=i!==void 0?i:!1,o=0,s=t.length;o<s;++o){var A=t[o],l=IE(r,e,A,n);if(o===0){if(a&&l||!a&&!l)return!1}else if(a&&!l||!a&&l)return!1;e=A}return!0}function Bz(r,e,t,n,i){for(var a=0,o=t.length;a<o;++a){var s=t[a];if(!u4(r,e,s,n,i))return!1;s.length&&(e=s[s.length-1])}return!0}function rS(r,e,t,n,i){for(var a=i!==void 0?i:!1,o=0,s=t.length;o<s;++o){var A=t[o],l=IE(r,e,A,n),u=o===0?a&&l||!a&&!l:a&&!l||!a&&l;u&&Cz(r,e,A,n),e=A}return e}function qM(r,e,t,n,i){for(var a=0,o=t.length;a<o;++a)e=rS(r,e,t[a],n,i);return e}function Tz(r,e){for(var t=[],n=0,i=0,a=0,o=e.length;a<o;++a){var s=e[a];if(!IE(r,n,s,2))t.push(e.slice(i,a+1));else{if(t.length===0)continue;t[t.length-1].push(e[i])}i=a+1,n=s}return t}var bz=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),LE=function(r){bz(e,r);function e(t,n,i){var a=r.call(this)||this;return a.ends_=[],a.flatInteriorPointRevision_=-1,a.flatInteriorPoint_=null,a.maxDelta_=-1,a.maxDeltaRevision_=-1,a.orientedRevision_=-1,a.orientedFlatCoordinates_=null,n!==void 0&&i?(a.setFlatCoordinates(n,t),a.ends_=i):a.setCoordinates(t,n),a}return e.prototype.appendLinearRing=function(t){this.flatCoordinates?Jr(this.flatCoordinates,t.getFlatCoordinates()):this.flatCoordinates=t.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()},e.prototype.clone=function(){var t=new e(this.flatCoordinates.slice(),this.layout,this.ends_.slice());return t.applyProperties(this),t},e.prototype.closestPointXY=function(t,n,i,a){return a<ih(this.getExtent(),t,n)?a:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(sF(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),lF(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!0,t,n,i,a))},e.prototype.containsXY=function(t,n){return hF(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t,n)},e.prototype.getArea=function(){return o4(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride)},e.prototype.getCoordinates=function(t){var n;return t!==void 0?(n=this.getOrientedFlatCoordinates().slice(),rS(n,0,this.ends_,this.stride,t)):n=this.flatCoordinates,oy(n,0,this.ends_,this.stride)},e.prototype.getEnds=function(){return this.ends_},e.prototype.getFlatInteriorPoint=function(){if(this.flatInteriorPointRevision_!=this.getRevision()){var t=Ya(this.getExtent());this.flatInteriorPoint_=fF(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t,0),this.flatInteriorPointRevision_=this.getRevision()}return this.flatInteriorPoint_},e.prototype.getInteriorPoint=function(){return new Sr(this.getFlatInteriorPoint(),ae.XYM)},e.prototype.getLinearRingCount=function(){return this.ends_.length},e.prototype.getLinearRing=function(t){return t<0||this.ends_.length<=t?null:new ov(this.flatCoordinates.slice(t===0?0:this.ends_[t-1],this.ends_[t]),this.layout)},e.prototype.getLinearRings=function(){for(var t=this.layout,n=this.flatCoordinates,i=this.ends_,a=[],o=0,s=0,A=i.length;s<A;++s){var l=i[s],u=new ov(n.slice(o,l),t);a.push(u),o=l}return a},e.prototype.getOrientedFlatCoordinates=function(){if(this.orientedRevision_!=this.getRevision()){var t=this.flatCoordinates;u4(t,0,this.ends_,this.stride)?this.orientedFlatCoordinates_=t:(this.orientedFlatCoordinates_=t.slice(),this.orientedFlatCoordinates_.length=rS(this.orientedFlatCoordinates_,0,this.ends_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_},e.prototype.getSimplifiedGeometryInternal=function(t){var n=[],i=[];return n.length=i4(this.flatCoordinates,0,this.ends_,this.stride,Math.sqrt(t),n,0,i),new e(n,ae.XY,i)},e.prototype.getType=function(){return dt.POLYGON},e.prototype.intersectsExtent=function(t){return l4(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t)},e.prototype.setCoordinates=function(t,n){this.setLayout(n,t,2),this.flatCoordinates||(this.flatCoordinates=[]);var i=uF(this.flatCoordinates,0,t,this.stride,this.ends_);this.flatCoordinates.length=i.length===0?0:i[i.length-1],this.changed()},e}(dA),Pn=LE;function Sz(r,e,t,n){for(var i=t||32,a=[],o=0;o<i;++o)Jr(a,QW(r,e,2*Math.PI*o/i,n));return a.push(a[0],a[1]),new LE(a,ae.XY,[a.length])}function zc(r){var e=r[0],t=r[1],n=r[2],i=r[3],a=[e,t,e,i,n,i,n,t,e,t];return new LE(a,ae.XY,[a.length])}function c4(r,e,t){for(var n=e||32,i=r.getStride(),a=r.getLayout(),o=r.getCenter(),s=i*(n+1),A=new Array(s),l=0;l<s;l+=i){A[l]=0,A[l+1]=0;for(var u=2;u<i;u++)A[l+u]=o[u]}var c=[A.length],h=new LE(A,a,c);return xz(h,o,r.getRadius(),t),h}function xz(r,e,t,n){for(var i=r.getFlatCoordinates(),a=r.getStride(),o=i.length/a-1,s=n||0,A=0;A<=o;++A){var l=A*a,u=s+Rc(A,o)*2*Math.PI/o;i[l]=e[0]+t*Math.cos(u),i[l+1]=e[1]+t*Math.sin(u)}r.changed()}var Iz=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),BB=0,Lz=function(r){Iz(e,r);function e(t){var n=r.call(this)||this;n.on,n.once,n.un;var i=Ce({},t);return n.hints_=[0,0],n.animations_=[],n.updateAnimationKey_,n.projection_=JL(i.projection,"EPSG:3857"),n.viewportSize_=[100,100],n.targetCenter_=null,n.targetResolution_,n.targetRotation_,n.nextCenter_=null,n.nextResolution_,n.nextRotation_,n.cancelAnchor_=void 0,i.projection&&kW(),i.center&&(i.center=On(i.center,n.projection_)),i.extent&&(i.extent=cs(i.extent,n.projection_)),n.applyOptions_(i),n}return e.prototype.applyOptions_=function(t){var n=Ce({},t);for(var i in os)delete n[i];this.setProperties(n,!0);var a=Oz(t);this.maxResolution_=a.maxResolution,this.minResolution_=a.minResolution,this.zoomFactor_=a.zoomFactor,this.resolutions_=t.resolutions,this.padding_=t.padding,this.minZoom_=a.minZoom;var o=Fz(t),s=a.constraint,A=Rz(t);this.constraints_={center:o,resolution:s,rotation:A},this.setRotation(t.rotation!==void 0?t.rotation:0),this.setCenterInternal(t.center!==void 0?t.center:null),t.resolution!==void 0?this.setResolution(t.resolution):t.zoom!==void 0&&this.setZoom(t.zoom)},Object.defineProperty(e.prototype,"padding",{get:function(){return this.padding_},set:function(t){var n=this.padding_;this.padding_=t;var i=this.getCenter();if(i){var a=t||[0,0,0,0];n=n||[0,0,0,0];var o=this.getResolution(),s=o/2*(a[3]-n[3]+n[1]-a[1]),A=o/2*(a[0]-n[0]+n[2]-a[2]);this.setCenterInternal([i[0]+s,i[1]-A])}},enumerable:!1,configurable:!0}),e.prototype.getUpdatedOptions_=function(t){var n=this.getProperties();return n.resolution!==void 0?n.resolution=this.getResolution():n.zoom=this.getZoom(),n.center=this.getCenterInternal(),n.rotation=this.getRotation(),Ce({},n,t)},e.prototype.animate=function(t){this.isDef()&&!this.getAnimating()&&this.resolveConstraints(0);for(var n=new Array(arguments.length),i=0;i<n.length;++i){var a=arguments[i];a.center&&(a=Ce({},a),a.center=On(a.center,this.getProjection())),a.anchor&&(a=Ce({},a),a.anchor=On(a.anchor,this.getProjection())),n[i]=a}this.animateInternal.apply(this,n)},e.prototype.animateInternal=function(t){var n=arguments.length,i;n>1&&typeof arguments[n-1]=="function"&&(i=arguments[n-1],--n);for(var a=0;a<n&&!this.isDef();++a){var o=arguments[a];o.center&&this.setCenterInternal(o.center),o.zoom!==void 0?this.setZoom(o.zoom):o.resolution&&this.setResolution(o.resolution),o.rotation!==void 0&&this.setRotation(o.rotation)}if(a===n){i&&z0(i,!0);return}for(var s=Date.now(),A=this.targetCenter_.slice(),l=this.targetResolution_,u=this.targetRotation_,c=[];a<n;++a){var h=arguments[a],f={start:s,complete:!1,anchor:h.anchor,duration:h.duration!==void 0?h.duration:1e3,easing:h.easing||Z1,callback:i};if(h.center&&(f.sourceCenter=A,f.targetCenter=h.center.slice(),A=f.targetCenter),h.zoom!==void 0?(f.sourceResolution=l,f.targetResolution=this.getResolutionForZoom(h.zoom),l=f.targetResolution):h.resolution&&(f.sourceResolution=l,f.targetResolution=h.resolution,l=f.targetResolution),h.rotation!==void 0){f.sourceRotation=u;var p=Rc(h.rotation-u+Math.PI,2*Math.PI)-Math.PI;f.targetRotation=u+p,u=f.targetRotation}Mz(f)?f.complete=!0:s+=f.duration,c.push(f)}this.animations_.push(c),this.setHint(Sn.ANIMATING,1),this.updateAnimations_()},e.prototype.getAnimating=function(){return this.hints_[Sn.ANIMATING]>0},e.prototype.getInteracting=function(){return this.hints_[Sn.INTERACTING]>0},e.prototype.cancelAnimations=function(){this.setHint(Sn.ANIMATING,-this.hints_[Sn.ANIMATING]);for(var t,n=0,i=this.animations_.length;n<i;++n){var a=this.animations_[n];if(a[0].callback&&z0(a[0].callback,!1),!t)for(var o=0,s=a.length;o<s;++o){var A=a[o];if(!A.complete){t=A.anchor;break}}}this.animations_.length=0,this.cancelAnchor_=t,this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN},e.prototype.updateAnimations_=function(){if(this.updateAnimationKey_!==void 0&&(cancelAnimationFrame(this.updateAnimationKey_),this.updateAnimationKey_=void 0),!!this.getAnimating()){for(var t=Date.now(),n=!1,i=this.animations_.length-1;i>=0;--i){for(var a=this.animations_[i],o=!0,s=0,A=a.length;s<A;++s){var l=a[s];if(!l.complete){var u=t-l.start,c=l.duration>0?u/l.duration:1;c>=1?(l.complete=!0,c=1):o=!1;var h=l.easing(c);if(l.sourceCenter){var f=l.sourceCenter[0],p=l.sourceCenter[1],v=l.targetCenter[0],m=l.targetCenter[1];this.nextCenter_=l.targetCenter;var g=f+h*(v-f),_=p+h*(m-p);this.targetCenter_=[g,_]}if(l.sourceResolution&&l.targetResolution){var w=h===1?l.targetResolution:l.sourceResolution+h*(l.targetResolution-l.sourceResolution);if(l.anchor){var C=this.getViewportSize_(this.getRotation()),F=this.constraints_.resolution(w,0,C,!0);this.targetCenter_=this.calculateCenterZoom(F,l.anchor)}this.nextResolution_=l.targetResolution,this.targetResolution_=w,this.applyTargetState_(!0)}if(l.sourceRotation!==void 0&&l.targetRotation!==void 0){var O=h===1?Rc(l.targetRotation+Math.PI,2*Math.PI)-Math.PI:l.sourceRotation+h*(l.targetRotation-l.sourceRotation);if(l.anchor){var I=this.constraints_.rotation(O,!0);this.targetCenter_=this.calculateCenterRotate(I,l.anchor)}this.nextRotation_=l.targetRotation,this.targetRotation_=O}if(this.applyTargetState_(!0),n=!0,!l.complete)break}}if(o){this.animations_[i]=null,this.setHint(Sn.ANIMATING,-1),this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN;var b=a[0].callback;b&&z0(b,!0)}}this.animations_=this.animations_.filter(Boolean),n&&this.updateAnimationKey_===void 0&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_.bind(this)))}},e.prototype.calculateCenterRotate=function(t,n){var i,a=this.getCenterInternal();return a!==void 0&&(i=[a[0]-n[0],a[1]-n[1]],zL(i,t-this.getRotation()),G6(i,n)),i},e.prototype.calculateCenterZoom=function(t,n){var i,a=this.getCenterInternal(),o=this.getResolution();if(a!==void 0&&o!==void 0){var s=n[0]-t*(n[0]-a[0])/o,A=n[1]-t*(n[1]-a[1])/o;i=[s,A]}return i},e.prototype.getViewportSize_=function(t){var n=this.viewportSize_;if(t){var i=n[0],a=n[1];return[Math.abs(i*Math.cos(t))+Math.abs(a*Math.sin(t)),Math.abs(i*Math.sin(t))+Math.abs(a*Math.cos(t))]}else return n},e.prototype.setViewportSize=function(t){this.viewportSize_=Array.isArray(t)?t.slice():[100,100],this.getAnimating()||this.resolveConstraints(0)},e.prototype.getCenter=function(){var t=this.getCenterInternal();return t&&av(t,this.getProjection())},e.prototype.getCenterInternal=function(){return this.get(os.CENTER)},e.prototype.getConstraints=function(){return this.constraints_},e.prototype.getConstrainResolution=function(){return this.get("constrainResolution")},e.prototype.getHints=function(t){return t!==void 0?(t[0]=this.hints_[0],t[1]=this.hints_[1],t):this.hints_.slice()},e.prototype.calculateExtent=function(t){var n=this.calculateExtentInternal(t);return bE(n,this.getProjection())},e.prototype.calculateExtentInternal=function(t){var n=t||this.getViewportSizeMinusPadding_(),i=this.getCenterInternal();Le(i,1);var a=this.getResolution();Le(a!==void 0,2);var o=this.getRotation();return Le(o!==void 0,3),_f(i,a,o,n)},e.prototype.getMaxResolution=function(){return this.maxResolution_},e.prototype.getMinResolution=function(){return this.minResolution_},e.prototype.getMaxZoom=function(){return this.getZoomForResolution(this.minResolution_)},e.prototype.setMaxZoom=function(t){this.applyOptions_(this.getUpdatedOptions_({maxZoom:t}))},e.prototype.getMinZoom=function(){return this.getZoomForResolution(this.maxResolution_)},e.prototype.setMinZoom=function(t){this.applyOptions_(this.getUpdatedOptions_({minZoom:t}))},e.prototype.setConstrainResolution=function(t){this.applyOptions_(this.getUpdatedOptions_({constrainResolution:t}))},e.prototype.getProjection=function(){return this.projection_},e.prototype.getResolution=function(){return this.get(os.RESOLUTION)},e.prototype.getResolutions=function(){return this.resolutions_},e.prototype.getResolutionForExtent=function(t,n){return this.getResolutionForExtentInternal(cs(t,this.getProjection()),n)},e.prototype.getResolutionForExtentInternal=function(t,n){var i=n||this.getViewportSizeMinusPadding_(),a=Vr(t)/i[0],o=Si(t)/i[1];return Math.max(a,o)},e.prototype.getResolutionForValueFunction=function(t){var n=t||2,i=this.getConstrainedResolution(this.maxResolution_),a=this.minResolution_,o=Math.log(i/a)/Math.log(n);return function(s){var A=i/Math.pow(n,s*o);return A}},e.prototype.getRotation=function(){return this.get(os.ROTATION)},e.prototype.getValueForResolutionFunction=function(t){var n=Math.log(t||2),i=this.getConstrainedResolution(this.maxResolution_),a=this.minResolution_,o=Math.log(i/a)/n;return function(s){var A=Math.log(i/s)/n/o;return A}},e.prototype.getViewportSizeMinusPadding_=function(t){var n=this.getViewportSize_(t),i=this.padding_;return i&&(n=[n[0]-i[1]-i[3],n[1]-i[0]-i[2]]),n},e.prototype.getState=function(){var t=this.getProjection(),n=this.getResolution(),i=this.getRotation(),a=this.getCenterInternal(),o=this.padding_;if(o){var s=this.getViewportSizeMinusPadding_();a=TB(a,this.getViewportSize_(),[s[0]/2+o[3],s[1]/2+o[0]],n,i)}return{center:a.slice(0),projection:t!==void 0?t:null,resolution:n,nextCenter:this.nextCenter_,nextResolution:this.nextResolution_,nextRotation:this.nextRotation_,rotation:i,zoom:this.getZoom()}},e.prototype.getZoom=function(){var t,n=this.getResolution();return n!==void 0&&(t=this.getZoomForResolution(n)),t},e.prototype.getZoomForResolution=function(t){var n=this.minZoom_||0,i,a;if(this.resolutions_){var o=_E(this.resolutions_,t,1);n=o,i=this.resolutions_[o],o==this.resolutions_.length-1?a=2:a=i/this.resolutions_[o+1]}else i=this.maxResolution_,a=this.zoomFactor_;return n+Math.log(i/t)/Math.log(a)},e.prototype.getResolutionForZoom=function(t){if(this.resolutions_){if(this.resolutions_.length<=1)return 0;var n=Nn(Math.floor(t),0,this.resolutions_.length-2),i=this.resolutions_[n]/this.resolutions_[n+1];return this.resolutions_[n]/Math.pow(i,Nn(t-n,0,1))}else return this.maxResolution_/Math.pow(this.zoomFactor_,t-this.minZoom_)},e.prototype.fit=function(t,n){var i;if(Le(Array.isArray(t)||typeof t.getSimplifiedGeometry=="function",24),Array.isArray(t)){Le(!xv(t),25);var a=cs(t,this.getProjection());i=zc(a)}else if(t.getType()===dt.CIRCLE){var a=cs(t.getExtent(),this.getProjection());i=zc(a),i.rotate(this.getRotation(),Ya(a))}else{var o=Qf();o?i=t.clone().transform(o,this.getProjection()):i=t}this.fitInternal(i,n)},e.prototype.rotatedExtentForGeometry=function(t){for(var n=this.getRotation(),i=Math.cos(n),a=Math.sin(-n),o=t.getFlatCoordinates(),s=t.getStride(),A=1/0,l=1/0,u=-1/0,c=-1/0,h=0,f=o.length;h<f;h+=s){var p=o[h]*i-o[h+1]*a,v=o[h]*a+o[h+1]*i;A=Math.min(A,p),l=Math.min(l,v),u=Math.max(u,p),c=Math.max(c,v)}return[A,l,u,c]},e.prototype.fitInternal=function(t,n){var i=n||{},a=i.size;a||(a=this.getViewportSizeMinusPadding_());var o=i.padding!==void 0?i.padding:[0,0,0,0],s=i.nearest!==void 0?i.nearest:!1,A;i.minResolution!==void 0?A=i.minResolution:i.maxZoom!==void 0?A=this.getResolutionForZoom(i.maxZoom):A=0;var l=this.rotatedExtentForGeometry(t),u=this.getResolutionForExtentInternal(l,[a[0]-o[1]-o[3],a[1]-o[0]-o[2]]);u=isNaN(u)?A:Math.max(u,A),u=this.getConstrainedResolution(u,s?0:1);var c=this.getRotation(),h=Math.sin(c),f=Math.cos(c),p=Ya(l);p[0]+=(o[1]-o[3])/2*u,p[1]+=(o[0]-o[2])/2*u;var v=p[0]*f-p[1]*h,m=p[1]*f+p[0]*h,g=this.getConstrainedCenter([v,m],u),_=i.callback?i.callback:Mf;i.duration!==void 0?this.animateInternal({resolution:u,center:g,duration:i.duration,easing:i.easing},_):(this.targetResolution_=u,this.targetCenter_=g,this.applyTargetState_(!1,!0),z0(_,!0))},e.prototype.centerOn=function(t,n,i){this.centerOnInternal(On(t,this.getProjection()),n,i)},e.prototype.centerOnInternal=function(t,n,i){this.setCenterInternal(TB(t,n,i,this.getResolution(),this.getRotation()))},e.prototype.calculateCenterShift=function(t,n,i,a){var o,s=this.padding_;if(s&&t){var A=this.getViewportSizeMinusPadding_(-i),l=TB(t,a,[A[0]/2+s[3],A[1]/2+s[0]],n,i);o=[t[0]-l[0],t[1]-l[1]]}return o},e.prototype.isDef=function(){return!!this.getCenterInternal()&&this.getResolution()!==void 0},e.prototype.adjustCenter=function(t){var n=av(this.targetCenter_,this.getProjection());this.setCenter([n[0]+t[0],n[1]+t[1]])},e.prototype.adjustCenterInternal=function(t){var n=this.targetCenter_;this.setCenterInternal([n[0]+t[0],n[1]+t[1]])},e.prototype.adjustResolution=function(t,n){var i=n&&On(n,this.getProjection());this.adjustResolutionInternal(t,i)},e.prototype.adjustResolutionInternal=function(t,n){var i=this.getAnimating()||this.getInteracting(),a=this.getViewportSize_(this.getRotation()),o=this.constraints_.resolution(this.targetResolution_*t,0,a,i);n&&(this.targetCenter_=this.calculateCenterZoom(o,n)),this.targetResolution_*=t,this.applyTargetState_()},e.prototype.adjustZoom=function(t,n){this.adjustResolution(Math.pow(this.zoomFactor_,-t),n)},e.prototype.adjustRotation=function(t,n){n&&(n=On(n,this.getProjection())),this.adjustRotationInternal(t,n)},e.prototype.adjustRotationInternal=function(t,n){var i=this.getAnimating()||this.getInteracting(),a=this.constraints_.rotation(this.targetRotation_+t,i);n&&(this.targetCenter_=this.calculateCenterRotate(a,n)),this.targetRotation_+=t,this.applyTargetState_()},e.prototype.setCenter=function(t){this.setCenterInternal(t&&On(t,this.getProjection()))},e.prototype.setCenterInternal=function(t){this.targetCenter_=t,this.applyTargetState_()},e.prototype.setHint=function(t,n){return this.hints_[t]+=n,this.changed(),this.hints_[t]},e.prototype.setResolution=function(t){this.targetResolution_=t,this.applyTargetState_()},e.prototype.setRotation=function(t){this.targetRotation_=t,this.applyTargetState_()},e.prototype.setZoom=function(t){this.setResolution(this.getResolutionForZoom(t))},e.prototype.applyTargetState_=function(t,n){var i=this.getAnimating()||this.getInteracting()||n,a=this.constraints_.rotation(this.targetRotation_,i),o=this.getViewportSize_(a),s=this.constraints_.resolution(this.targetResolution_,0,o,i),A=this.constraints_.center(this.targetCenter_,s,o,i,this.calculateCenterShift(this.targetCenter_,s,a,o));this.get(os.ROTATION)!==a&&this.set(os.ROTATION,a),this.get(os.RESOLUTION)!==s&&(this.set(os.RESOLUTION,s),this.set("zoom",this.getZoom(),!0)),(!A||!this.get(os.CENTER)||!oA(this.get(os.CENTER),A))&&this.set(os.CENTER,A),this.getAnimating()&&!t&&this.cancelAnimations(),this.cancelAnchor_=void 0},e.prototype.resolveConstraints=function(t,n,i){var a=t!==void 0?t:200,o=n||0,s=this.constraints_.rotation(this.targetRotation_),A=this.getViewportSize_(s),l=this.constraints_.resolution(this.targetResolution_,o,A),u=this.constraints_.center(this.targetCenter_,l,A,!1,this.calculateCenterShift(this.targetCenter_,l,s,A));if(a===0&&!this.cancelAnchor_){this.targetResolution_=l,this.targetRotation_=s,this.targetCenter_=u,this.applyTargetState_();return}var c=i||(a===0?this.cancelAnchor_:void 0);this.cancelAnchor_=void 0,(this.getResolution()!==l||this.getRotation()!==s||!this.getCenterInternal()||!oA(this.getCenterInternal(),u))&&(this.getAnimating()&&this.cancelAnimations(),this.animateInternal({rotation:s,center:u,resolution:l,duration:a,easing:Ds,anchor:c}))},e.prototype.beginInteraction=function(){this.resolveConstraints(0),this.setHint(Sn.INTERACTING,1)},e.prototype.endInteraction=function(t,n,i){var a=i&&On(i,this.getProjection());this.endInteractionInternal(t,n,a)},e.prototype.endInteractionInternal=function(t,n,i){this.setHint(Sn.INTERACTING,-1),this.resolveConstraints(t,n,i)},e.prototype.getConstrainedCenter=function(t,n){var i=this.getViewportSize_(this.getRotation());return this.constraints_.center(t,n||this.getResolution(),i)},e.prototype.getConstrainedZoom=function(t,n){var i=this.getResolutionForZoom(t);return this.getZoomForResolution(this.getConstrainedResolution(i,n))},e.prototype.getConstrainedResolution=function(t,n){var i=n||0,a=this.getViewportSize_(this.getRotation());return this.constraints_.resolution(t,i,a)},e}(xi);function z0(r,e){setTimeout(function(){r(e)},0)}function Fz(r){if(r.extent!==void 0){var e=r.smoothExtentConstraint!==void 0?r.smoothExtentConstraint:!0;return KM(r.extent,r.constrainOnlyCenter,e)}var t=JL(r.projection,"EPSG:3857");if(r.multiWorld!==!0&&t.isGlobal()){var n=t.getExtent().slice();return n[0]=-1/0,n[2]=1/0,KM(n,!1,!1)}return YW}function Oz(r){var e,t,n,i=28,a=2,o=r.minZoom!==void 0?r.minZoom:BB,s=r.maxZoom!==void 0?r.maxZoom:i,A=r.zoomFactor!==void 0?r.zoomFactor:a,l=r.multiWorld!==void 0?r.multiWorld:!1,u=r.smoothResolutionConstraint!==void 0?r.smoothResolutionConstraint:!0,c=r.showFullExtent!==void 0?r.showFullExtent:!1,h=JL(r.projection,"EPSG:3857"),f=h.getExtent(),p=r.constrainOnlyCenter,v=r.extent;if(!l&&!v&&h.isGlobal()&&(p=!1,v=f),r.resolutions!==void 0){var m=r.resolutions;t=m[o],n=m[s]!==void 0?m[s]:m[m.length-1],r.constrainResolution?e=WW(m,u,!p&&v,c):e=YM(t,n,u,!p&&v,c)}else{var g=f?Math.max(Vr(f),Si(f)):360*pA[lo.DEGREES]/h.getMetersPerUnit(),_=g/qL/Math.pow(a,BB),w=_/Math.pow(a,i-BB);t=r.maxResolution,t!==void 0?o=0:t=_/Math.pow(A,o),n=r.minResolution,n===void 0&&(r.maxZoom!==void 0?r.maxResolution!==void 0?n=t/Math.pow(A,s):n=_/Math.pow(A,s):n=w),s=o+Math.floor(Math.log(t/n)/Math.log(A)),n=t/Math.pow(A,s-o),r.constrainResolution?e=zW(A,t,n,u,!p&&v,c):e=YM(t,n,u,!p&&v,c)}return{constraint:e,maxResolution:t,minResolution:n,minZoom:o,zoomFactor:A}}function Rz(r){var e=r.enableRotation!==void 0?r.enableRotation:!0;if(e){var t=r.constrainRotation;return t===void 0||t===!0?qW():t===!1?WM:typeof t=="number"?XW(t):WM}else return rF}function Mz(r){return!(r.sourceCenter&&r.targetCenter&&!oA(r.sourceCenter,r.targetCenter)||r.sourceResolution!==r.targetResolution||r.sourceRotation!==r.targetRotation)}function TB(r,e,t,n,i){var a=Math.cos(-i),o=Math.sin(-i),s=r[0]*a-r[1]*o,A=r[1]*a+r[0]*o;s+=(e[0]/2-t[0])*n,A+=(t[1]-e[1]/2)*n,o=-o;var l=s*a-A*o,u=A*a+s*o;return[l,u]}var qA=Lz;function ZM(r,e,t){return t===void 0&&(t=[0,0]),t[0]=r[0]+2*e,t[1]=r[1]+2*e,t}function JM(r){return r[0]>0&&r[1]>0}function h4(r,e,t){return t===void 0&&(t=[0,0]),t[0]=r[0]*e+.5|0,t[1]=r[1]*e+.5|0,t}function ji(r,e){return Array.isArray(r)?r:(e===void 0?e=[r,r]:(e[0]=r,e[1]=r),e)}var Nz=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();function f4(r){if(r instanceof tp){r.setMapInternal(null);return}r instanceof Dy&&r.getLayers().forEach(f4)}function p4(r,e){if(r instanceof tp){r.setMapInternal(e);return}if(r instanceof Dy)for(var t=r.getLayers().getArray(),n=0,i=t.length;n<i;++n)p4(t[n],e)}var Pz=function(r){Nz(e,r);function e(t){var n=r.call(this)||this;n.on,n.once,n.un;var i=Uz(t);n.renderComplete_,n.loaded_=!0,n.boundHandleBrowserEvent_=n.handleBrowserEvent.bind(n),n.maxTilesLoading_=t.maxTilesLoading!==void 0?t.maxTilesLoading:16,n.pixelRatio_=t.pixelRatio!==void 0?t.pixelRatio:Nf,n.postRenderTimeoutHandle_,n.animationDelayKey_,n.animationDelay_=function(){this.animationDelayKey_=void 0,this.renderFrame_(Date.now())}.bind(n),n.coordinateToPixelTransform_=Ti(),n.pixelToCoordinateTransform_=Ti(),n.frameIndex_=0,n.frameState_=null,n.previousExtent_=null,n.viewPropertyListenerKey_=null,n.viewChangeListenerKey_=null,n.layerGroupPropertyListenerKeys_=null,n.viewport_=document.createElement("div"),n.viewport_.className="ol-viewport"+("ontouchstart"in window?" ol-touch":""),n.viewport_.style.position="relative",n.viewport_.style.overflow="hidden",n.viewport_.style.width="100%",n.viewport_.style.height="100%",n.overlayContainer_=document.createElement("div"),n.overlayContainer_.style.position="absolute",n.overlayContainer_.style.zIndex="0",n.overlayContainer_.style.width="100%",n.overlayContainer_.style.height="100%",n.overlayContainer_.style.pointerEvents="none",n.overlayContainer_.className="ol-overlaycontainer",n.viewport_.appendChild(n.overlayContainer_),n.overlayContainerStopEvent_=document.createElement("div"),n.overlayContainerStopEvent_.style.position="absolute",n.overlayContainerStopEvent_.style.zIndex="0",n.overlayContainerStopEvent_.style.width="100%",n.overlayContainerStopEvent_.style.height="100%",n.overlayContainerStopEvent_.style.pointerEvents="none",n.overlayContainerStopEvent_.className="ol-overlaycontainer-stopevent",n.viewport_.appendChild(n.overlayContainerStopEvent_),n.mapBrowserEventHandler_=null,n.moveTolerance_=t.moveTolerance,n.keyboardEventTarget_=i.keyboardEventTarget,n.targetChangeHandlerKeys_=null,n.controls=i.controls||new bi,n.interactions=i.interactions||new bi,n.overlays_=i.overlays,n.overlayIdIndex_={},n.renderer_=null,n.postRenderFunctions_=[],n.tileQueue_=new TW(n.getTilePriority.bind(n),n.handleTileChange_.bind(n)),n.addChangeListener(mi.LAYERGROUP,n.handleLayerGroupChanged_),n.addChangeListener(mi.VIEW,n.handleViewChanged_),n.addChangeListener(mi.SIZE,n.handleSizeChanged_),n.addChangeListener(mi.TARGET,n.handleTargetChanged_),n.setProperties(i.values);var a=n;return t.view&&!(t.view instanceof qA)&&t.view.then(function(o){a.setView(new qA(o))}),n.controls.addEventListener(ai.ADD,function(o){o.element.setMap(this)}.bind(n)),n.controls.addEventListener(ai.REMOVE,function(o){o.element.setMap(null)}.bind(n)),n.interactions.addEventListener(ai.ADD,function(o){o.element.setMap(this)}.bind(n)),n.interactions.addEventListener(ai.REMOVE,function(o){o.element.setMap(null)}.bind(n)),n.overlays_.addEventListener(ai.ADD,function(o){this.addOverlayInternal_(o.element)}.bind(n)),n.overlays_.addEventListener(ai.REMOVE,function(o){var s=o.element,A=s.getId();A!==void 0&&delete this.overlayIdIndex_[A.toString()],o.element.setMap(null)}.bind(n)),n.controls.forEach(function(o){o.setMap(this)}.bind(n)),n.interactions.forEach(function(o){o.setMap(this)}.bind(n)),n.overlays_.forEach(n.addOverlayInternal_.bind(n)),n}return e.prototype.createRenderer=function(){throw new Error("Use a map type that has a createRenderer method")},e.prototype.addControl=function(t){this.getControls().push(t)},e.prototype.addInteraction=function(t){this.getInteractions().push(t)},e.prototype.addLayer=function(t){var n=this.getLayerGroup().getLayers();n.push(t)},e.prototype.handleLayerAdd_=function(t){p4(t.layer,this)},e.prototype.addOverlay=function(t){this.getOverlays().push(t)},e.prototype.addOverlayInternal_=function(t){var n=t.getId();n!==void 0&&(this.overlayIdIndex_[n.toString()]=t),t.setMap(this)},e.prototype.disposeInternal=function(){this.setTarget(null),r.prototype.disposeInternal.call(this)},e.prototype.forEachFeatureAtPixel=function(t,n,i){if(!(!this.frameState_||!this.renderer_)){var a=this.getCoordinateFromPixelInternal(t);i=i!==void 0?i:{};var o=i.hitTolerance!==void 0?i.hitTolerance:0,s=i.layerFilter!==void 0?i.layerFilter:il,A=i.checkWrapped!==!1;return this.renderer_.forEachFeatureAtCoordinate(a,this.frameState_,o,A,n,null,s,null)}},e.prototype.getFeaturesAtPixel=function(t,n){var i=[];return this.forEachFeatureAtPixel(t,function(a){i.push(a)},n),i},e.prototype.getAllLayers=function(){var t=[];function n(i){i.forEach(function(a){a instanceof Dy?n(a.getLayers()):t.push(a)})}return n(this.getLayers()),t},e.prototype.forEachLayerAtPixel=function(t,n,i){if(!(!this.frameState_||!this.renderer_)){var a=i||{},o=a.hitTolerance!==void 0?a.hitTolerance:0,s=a.layerFilter||il;return this.renderer_.forEachLayerAtPixel(t,this.frameState_,o,n,s)}},e.prototype.hasFeatureAtPixel=function(t,n){if(!this.frameState_||!this.renderer_)return!1;var i=this.getCoordinateFromPixelInternal(t);n=n!==void 0?n:{};var a=n.layerFilter!==void 0?n.layerFilter:il,o=n.hitTolerance!==void 0?n.hitTolerance:0,s=n.checkWrapped!==!1;return this.renderer_.hasFeatureAtCoordinate(i,this.frameState_,o,s,a,null)},e.prototype.getEventCoordinate=function(t){return this.getCoordinateFromPixel(this.getEventPixel(t))},e.prototype.getEventCoordinateInternal=function(t){return this.getCoordinateFromPixelInternal(this.getEventPixel(t))},e.prototype.getEventPixel=function(t){var n=this.viewport_.getBoundingClientRect(),i="changedTouches"in t?t.changedTouches[0]:t;return[i.clientX-n.left,i.clientY-n.top]},e.prototype.getTarget=function(){return this.get(mi.TARGET)},e.prototype.getTargetElement=function(){var t=this.getTarget();return t!==void 0?typeof t=="string"?document.getElementById(t):t:null},e.prototype.getCoordinateFromPixel=function(t){return av(this.getCoordinateFromPixelInternal(t),this.getView().getProjection())},e.prototype.getCoordinateFromPixelInternal=function(t){var n=this.frameState_;return n?Bn(n.pixelToCoordinateTransform,t.slice()):null},e.prototype.getControls=function(){return this.controls},e.prototype.getOverlays=function(){return this.overlays_},e.prototype.getOverlayById=function(t){var n=this.overlayIdIndex_[t.toString()];return n!==void 0?n:null},e.prototype.getInteractions=function(){return this.interactions},e.prototype.getLayerGroup=function(){return this.get(mi.LAYERGROUP)},e.prototype.setLayers=function(t){var n=this.getLayerGroup();if(t instanceof bi){n.setLayers(t);return}var i=n.getLayers();i.clear(),i.extend(t)},e.prototype.getLayers=function(){var t=this.getLayerGroup().getLayers();return t},e.prototype.getLoadingOrNotReady=function(){for(var t=this.getLayerGroup().getLayerStatesArray(),n=0,i=t.length;n<i;++n){var a=t[n];if(a.visible){var o=a.layer.getRenderer();if(o&&!o.ready)return!0;var s=a.layer.getSource();if(s&&s.loading)return!0}}return!1},e.prototype.getPixelFromCoordinate=function(t){var n=On(t,this.getView().getProjection());return this.getPixelFromCoordinateInternal(n)},e.prototype.getPixelFromCoordinateInternal=function(t){var n=this.frameState_;return n?Bn(n.coordinateToPixelTransform,t.slice(0,2)):null},e.prototype.getRenderer=function(){return this.renderer_},e.prototype.getSize=function(){return this.get(mi.SIZE)},e.prototype.getView=function(){return this.get(mi.VIEW)},e.prototype.getViewport=function(){return this.viewport_},e.prototype.getOverlayContainer=function(){return this.overlayContainer_},e.prototype.getOverlayContainerStopEvent=function(){return this.overlayContainerStopEvent_},e.prototype.getOwnerDocument=function(){var t=this.getTargetElement();return t?t.ownerDocument:document},e.prototype.getTilePriority=function(t,n,i,a){return bW(this.frameState_,t,n,i,a)},e.prototype.handleBrowserEvent=function(t,n){var i=n||t.type,a=new ql(i,this,t);this.handleMapBrowserEvent(a)},e.prototype.handleMapBrowserEvent=function(t){if(this.frameState_){var n=t.originalEvent,i=n.type;if(i===zA.POINTERDOWN||i===xe.WHEEL||i===xe.KEYDOWN){var a=this.getOwnerDocument(),o=this.viewport_.getRootNode?this.viewport_.getRootNode():a,s=n.target;if(this.overlayContainerStopEvent_.contains(s)||!(o===a?a.documentElement:o).contains(s))return}if(t.frameState=this.frameState_,this.dispatchEvent(t)!==!1)for(var A=this.getInteractions().getArray().slice(),l=A.length-1;l>=0;l--){var u=A[l];if(!(u.getMap()!==this||!u.getActive()||!this.getTargetElement())){var c=u.handleEvent(t);if(!c||t.propagationStopped)break}}}},e.prototype.handlePostRender=function(){var t=this.frameState_,n=this.tileQueue_;if(!n.isEmpty()){var i=this.maxTilesLoading_,a=i;if(t){var o=t.viewHints;if(o[Sn.ANIMATING]||o[Sn.INTERACTING]){var s=Date.now()-t.time>8;i=s?0:8,a=s?0:2}}n.getTilesLoading()<i&&(n.reprioritize(),n.loadMoreTiles(i,a))}t&&this.renderer_&&!t.animate&&(this.renderComplete_===!0?(this.hasListener(Oo.RENDERCOMPLETE)&&this.renderer_.dispatchRenderEvent(Oo.RENDERCOMPLETE,t),this.loaded_===!1&&(this.loaded_=!0,this.dispatchEvent(new fd(KA.LOADEND,this,t)))):this.loaded_===!0&&(this.loaded_=!1,this.dispatchEvent(new fd(KA.LOADSTART,this,t))));for(var A=this.postRenderFunctions_,l=0,u=A.length;l<u;++l)A[l](this,t);A.length=0},e.prototype.handleSizeChanged_=function(){this.getView()&&!this.getView().getAnimating()&&this.getView().resolveConstraints(0),this.render()},e.prototype.handleTargetChanged_=function(){if(this.mapBrowserEventHandler_){for(var t=0,n=this.targetChangeHandlerKeys_.length;t<n;++t)Wr(this.targetChangeHandlerKeys_[t]);this.targetChangeHandlerKeys_=null,this.viewport_.removeEventListener(xe.CONTEXTMENU,this.boundHandleBrowserEvent_),this.viewport_.removeEventListener(xe.WHEEL,this.boundHandleBrowserEvent_),this.mapBrowserEventHandler_.dispose(),this.mapBrowserEventHandler_=null,V1(this.viewport_)}var i=this.getTargetElement();if(!i)this.renderer_&&(clearTimeout(this.postRenderTimeoutHandle_),this.postRenderTimeoutHandle_=void 0,this.postRenderFunctions_.length=0,this.renderer_.dispose(),this.renderer_=null),this.animationDelayKey_&&(cancelAnimationFrame(this.animationDelayKey_),this.animationDelayKey_=void 0);else{i.appendChild(this.viewport_),this.renderer_||(this.renderer_=this.createRenderer()),this.mapBrowserEventHandler_=new _W(this,this.moveTolerance_);for(var a in mr)this.mapBrowserEventHandler_.addEventListener(mr[a],this.handleMapBrowserEvent.bind(this));this.viewport_.addEventListener(xe.CONTEXTMENU,this.boundHandleBrowserEvent_,!1),this.viewport_.addEventListener(xe.WHEEL,this.boundHandleBrowserEvent_,T6?{passive:!1}:!1);var o=this.getOwnerDocument().defaultView,s=this.keyboardEventTarget_?this.keyboardEventTarget_:i;this.targetChangeHandlerKeys_=[je(s,xe.KEYDOWN,this.handleBrowserEvent,this),je(s,xe.KEYPRESS,this.handleBrowserEvent,this),je(o,xe.RESIZE,this.updateSize,this)]}this.updateSize()},e.prototype.handleTileChange_=function(){this.render()},e.prototype.handleViewPropertyChanged_=function(){this.render()},e.prototype.handleViewChanged_=function(){this.viewPropertyListenerKey_&&(Wr(this.viewPropertyListenerKey_),this.viewPropertyListenerKey_=null),this.viewChangeListenerKey_&&(Wr(this.viewChangeListenerKey_),this.viewChangeListenerKey_=null);var t=this.getView();t&&(this.updateViewportSize_(),this.viewPropertyListenerKey_=je(t,Pf.PROPERTYCHANGE,this.handleViewPropertyChanged_,this),this.viewChangeListenerKey_=je(t,xe.CHANGE,this.handleViewPropertyChanged_,this),t.resolveConstraints(0)),this.render()},e.prototype.handleLayerGroupChanged_=function(){this.layerGroupPropertyListenerKeys_&&(this.layerGroupPropertyListenerKeys_.forEach(Wr),this.layerGroupPropertyListenerKeys_=null);var t=this.getLayerGroup();t&&(this.handleLayerAdd_(new vc("addlayer",t)),this.layerGroupPropertyListenerKeys_=[je(t,Pf.PROPERTYCHANGE,this.render,this),je(t,xe.CHANGE,this.render,this),je(t,"addlayer",this.handleLayerAdd_,this),je(t,"removelayer",this.handleLayerRemove_,this)]),this.render()},e.prototype.isRendered=function(){return!!this.frameState_},e.prototype.renderSync=function(){this.animationDelayKey_&&cancelAnimationFrame(this.animationDelayKey_),this.animationDelay_()},e.prototype.redrawText=function(){for(var t=this.getLayerGroup().getLayerStatesArray(),n=0,i=t.length;n<i;++n){var a=t[n].layer;a.hasRenderer()&&a.getRenderer().handleFontsChanged()}},e.prototype.render=function(){this.renderer_&&this.animationDelayKey_===void 0&&(this.animationDelayKey_=requestAnimationFrame(this.animationDelay_))},e.prototype.removeControl=function(t){return this.getControls().remove(t)},e.prototype.removeInteraction=function(t){return this.getInteractions().remove(t)},e.prototype.removeLayer=function(t){var n=this.getLayerGroup().getLayers();return n.remove(t)},e.prototype.handleLayerRemove_=function(t){f4(t.layer)},e.prototype.removeOverlay=function(t){return this.getOverlays().remove(t)},e.prototype.renderFrame_=function(t){var n=this,i=this.getSize(),a=this.getView(),o=this.frameState_,s=null;if(i!==void 0&&JM(i)&&a&&a.isDef()){var A=a.getHints(this.frameState_?this.frameState_.viewHints:void 0),l=a.getState();if(s={animate:!1,coordinateToPixelTransform:this.coordinateToPixelTransform_,declutterTree:null,extent:_f(l.center,l.resolution,l.rotation,i),index:this.frameIndex_++,layerIndex:0,layerStatesArray:this.getLayerGroup().getLayerStatesArray(),pixelRatio:this.pixelRatio_,pixelToCoordinateTransform:this.pixelToCoordinateTransform_,postRenderFunctions:[],size:i,tileQueue:this.tileQueue_,time:t,usedTiles:{},viewState:l,viewHints:A,wantedTiles:{},mapId:Ee(this),renderTargets:{}},l.nextCenter&&l.nextResolution){var u=isNaN(l.nextRotation)?l.rotation:l.nextRotation;s.nextExtent=_f(l.nextCenter,l.nextResolution,u,i)}}if(this.frameState_=s,this.renderer_.renderFrame(s),s){if(s.animate&&this.render(),Array.prototype.push.apply(this.postRenderFunctions_,s.postRenderFunctions),o){var c=!this.previousExtent_||!xv(this.previousExtent_)&&!ul(s.extent,this.previousExtent_);c&&(this.dispatchEvent(new fd(KA.MOVESTART,this,o)),this.previousExtent_=ah(this.previousExtent_))}var h=this.previousExtent_&&!s.viewHints[Sn.ANIMATING]&&!s.viewHints[Sn.INTERACTING]&&!ul(s.extent,this.previousExtent_);h&&(this.dispatchEvent(new fd(KA.MOVEEND,this,s)),HL(s.extent,this.previousExtent_))}this.dispatchEvent(new fd(KA.POSTRENDER,this,s)),this.renderComplete_=this.hasListener(KA.LOADSTART)||this.hasListener(KA.LOADEND)||this.hasListener(Oo.RENDERCOMPLETE)?!this.tileQueue_.getTilesLoading()&&!this.tileQueue_.getCount()&&!this.getLoadingOrNotReady():void 0,this.postRenderTimeoutHandle_||(this.postRenderTimeoutHandle_=setTimeout(function(){n.postRenderTimeoutHandle_=void 0,n.handlePostRender()},0))},e.prototype.setLayerGroup=function(t){var n=this.getLayerGroup();n&&this.handleLayerRemove_(new vc("removelayer",n)),this.set(mi.LAYERGROUP,t)},e.prototype.setSize=function(t){this.set(mi.SIZE,t)},e.prototype.setTarget=function(t){this.set(mi.TARGET,t)},e.prototype.setView=function(t){if(!t||t instanceof qA){this.set(mi.VIEW,t);return}this.set(mi.VIEW,new qA);var n=this;t.then(function(i){n.setView(new qA(i))})},e.prototype.updateSize=function(){var t=this.getTargetElement(),n=void 0;if(t){var i=getComputedStyle(t),a=t.offsetWidth-parseFloat(i.borderLeftWidth)-parseFloat(i.paddingLeft)-parseFloat(i.paddingRight)-parseFloat(i.borderRightWidth),o=t.offsetHeight-parseFloat(i.borderTopWidth)-parseFloat(i.paddingTop)-parseFloat(i.paddingBottom)-parseFloat(i.borderBottomWidth);!isNaN(a)&&!isNaN(o)&&(n=[a,o],!JM(n)&&(t.offsetWidth||t.offsetHeight||t.getClientRects().length)&&console.warn("No map visible because the map container's width or height are 0."))}this.setSize(n),this.updateViewportSize_()},e.prototype.updateViewportSize_=function(){var t=this.getView();if(t){var n=void 0,i=getComputedStyle(this.viewport_);i.width&&i.height&&(n=[parseInt(i.width,10),parseInt(i.height,10)]),t.setViewportSize(n)}},e}(xi);function Uz(r){var e=null;r.keyboardEventTarget!==void 0&&(e=typeof r.keyboardEventTarget=="string"?document.getElementById(r.keyboardEventTarget):r.keyboardEventTarget);var t={},n=r.layers&&typeof r.layers.getLayers=="function"?r.layers:new Dy({layers:r.layers});t[mi.LAYERGROUP]=n,t[mi.TARGET]=r.target,t[mi.VIEW]=r.view instanceof qA?r.view:new qA;var i;r.controls!==void 0&&(Array.isArray(r.controls)?i=new bi(r.controls.slice()):(Le(typeof r.controls.getArray=="function",47),i=r.controls));var a;r.interactions!==void 0&&(Array.isArray(r.interactions)?a=new bi(r.interactions.slice()):(Le(typeof r.interactions.getArray=="function",48),a=r.interactions));var o;return r.overlays!==void 0?Array.isArray(r.overlays)?o=new bi(r.overlays.slice()):(Le(typeof r.overlays.getArray=="function",49),o=r.overlays):o=new bi,{controls:i,interactions:a,keyboardEventTarget:e,overlays:o,values:t}}var d4=Pz,Dz=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Qz=function(r){Dz(e,r);function e(t){var n=r.call(this)||this,i=t.element;return i&&!t.target&&!i.style.pointerEvents&&(i.style.pointerEvents="auto"),n.element=i||null,n.target_=null,n.map_=null,n.listenerKeys=[],t.render&&(n.render=t.render),t.target&&n.setTarget(t.target),n}return e.prototype.disposeInternal=function(){V1(this.element),r.prototype.disposeInternal.call(this)},e.prototype.getMap=function(){return this.map_},e.prototype.setMap=function(t){this.map_&&V1(this.element);for(var n=0,i=this.listenerKeys.length;n<i;++n)Wr(this.listenerKeys[n]);if(this.listenerKeys.length=0,this.map_=t,t){var a=this.target_?this.target_:t.getOverlayContainerStopEvent();a.appendChild(this.element),this.render!==Mf&&this.listenerKeys.push(je(t,KA.POSTRENDER,this.render,this)),t.render()}},e.prototype.render=function(t){},e.prototype.setTarget=function(t){this.target_=typeof t=="string"?document.getElementById(t):t},e}(xi),Mr=Qz,kz=Object.freeze(Object.defineProperty({__proto__:null,default:Mr},Symbol.toStringTag,{value:"Module"})),Hz=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Gz=function(r){Hz(e,r);function e(t){var n=this,i=t||{};n=r.call(this,{element:document.createElement("div"),render:i.render,target:i.target})||this,n.ulElement_=document.createElement("ul"),n.collapsed_=i.collapsed!==void 0?i.collapsed:!0,n.userCollapsed_=n.collapsed_,n.overrideCollapsible_=i.collapsible!==void 0,n.collapsible_=i.collapsible!==void 0?i.collapsible:!0,n.collapsible_||(n.collapsed_=!1);var a=i.className!==void 0?i.className:"ol-attribution",o=i.tipLabel!==void 0?i.tipLabel:"Attributions",s=i.expandClassName!==void 0?i.expandClassName:a+"-expand",A=i.collapseLabel!==void 0?i.collapseLabel:"›",l=i.collapseClassName!==void 0?i.collapseClassName:a+"-collapse";typeof A=="string"?(n.collapseLabel_=document.createElement("span"),n.collapseLabel_.textContent=A,n.collapseLabel_.className=l):n.collapseLabel_=A;var u=i.label!==void 0?i.label:"i";typeof u=="string"?(n.label_=document.createElement("span"),n.label_.textContent=u,n.label_.className=s):n.label_=u;var c=n.collapsible_&&!n.collapsed_?n.collapseLabel_:n.label_;n.toggleButton_=document.createElement("button"),n.toggleButton_.setAttribute("type","button"),n.toggleButton_.setAttribute("aria-expanded",String(!n.collapsed_)),n.toggleButton_.title=o,n.toggleButton_.appendChild(c),n.toggleButton_.addEventListener(xe.CLICK,n.handleClick_.bind(n),!1);var h=a+" "+cl+" "+ep+(n.collapsed_&&n.collapsible_?" "+$1:"")+(n.collapsible_?"":" ol-uncollapsible"),f=n.element;return f.className=h,f.appendChild(n.toggleButton_),f.appendChild(n.ulElement_),n.renderedAttributions_=[],n.renderedVisible_=!0,n}return e.prototype.collectSourceAttributions_=function(t){for(var n={},i=[],a=!0,o=t.layerStatesArray,s=0,A=o.length;s<A;++s){var l=o[s];if(G1(l,t.viewState)){var u=l.layer.getSource();if(u){var c=u.getAttributions();if(c){var h=c(t);if(h)if(a=a&&u.getAttributionsCollapsible()!==!1,Array.isArray(h))for(var f=0,p=h.length;f<p;++f)h[f]in n||(i.push(h[f]),n[h[f]]=!0);else h in n||(i.push(h),n[h]=!0)}}}}return this.overrideCollapsible_||this.setCollapsible(a),i},e.prototype.updateElement_=function(t){if(!t){this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1);return}var n=this.collectSourceAttributions_(t),i=n.length>0;if(this.renderedVisible_!=i&&(this.element.style.display=i?"":"none",this.renderedVisible_=i),!Cu(n,this.renderedAttributions_)){Y6(this.ulElement_);for(var a=0,o=n.length;a<o;++a){var s=document.createElement("li");s.innerHTML=n[a],this.ulElement_.appendChild(s)}this.renderedAttributions_=n}},e.prototype.handleClick_=function(t){t.preventDefault(),this.handleToggle_(),this.userCollapsed_=this.collapsed_},e.prototype.handleToggle_=function(){this.element.classList.toggle($1),this.collapsed_?rv(this.collapseLabel_,this.label_):rv(this.label_,this.collapseLabel_),this.collapsed_=!this.collapsed_,this.toggleButton_.setAttribute("aria-expanded",String(!this.collapsed_))},e.prototype.getCollapsible=function(){return this.collapsible_},e.prototype.setCollapsible=function(t){this.collapsible_!==t&&(this.collapsible_=t,this.element.classList.toggle("ol-uncollapsible"),this.userCollapsed_&&this.handleToggle_())},e.prototype.setCollapsed=function(t){this.userCollapsed_=t,!(!this.collapsible_||this.collapsed_===t)&&this.handleToggle_()},e.prototype.getCollapsed=function(){return this.collapsed_},e.prototype.render=function(t){this.updateElement_(t.frameState)},e}(Mr),v4=Gz,$z=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Vz=function(r){$z(e,r);function e(t){var n=this,i=t||{};n=r.call(this,{element:document.createElement("div"),render:i.render,target:i.target})||this;var a=i.className!==void 0?i.className:"ol-rotate",o=i.label!==void 0?i.label:"⇧",s=i.compassClassName!==void 0?i.compassClassName:"ol-compass";n.label_=null,typeof o=="string"?(n.label_=document.createElement("span"),n.label_.className=s,n.label_.textContent=o):(n.label_=o,n.label_.classList.add(s));var A=i.tipLabel?i.tipLabel:"Reset rotation",l=document.createElement("button");l.className=a+"-reset",l.setAttribute("type","button"),l.title=A,l.appendChild(n.label_),l.addEventListener(xe.CLICK,n.handleClick_.bind(n),!1);var u=a+" "+cl+" "+ep,c=n.element;return c.className=u,c.appendChild(l),n.callResetNorth_=i.resetNorth?i.resetNorth:void 0,n.duration_=i.duration!==void 0?i.duration:250,n.autoHide_=i.autoHide!==void 0?i.autoHide:!0,n.rotation_=void 0,n.autoHide_&&n.element.classList.add(K0),n}return e.prototype.handleClick_=function(t){t.preventDefault(),this.callResetNorth_!==void 0?this.callResetNorth_():this.resetNorth_()},e.prototype.resetNorth_=function(){var t=this.getMap(),n=t.getView();if(n){var i=n.getRotation();i!==void 0&&(this.duration_>0&&i%(2*Math.PI)!==0?n.animate({rotation:0,duration:this.duration_,easing:Ds}):n.setRotation(0))}},e.prototype.render=function(t){var n=t.frameState;if(n){var i=n.viewState.rotation;if(i!=this.rotation_){var a="rotate("+i+"rad)";if(this.autoHide_){var o=this.element.classList.contains(K0);!o&&i===0?this.element.classList.add(K0):o&&i!==0&&this.element.classList.remove(K0)}this.label_.style.transform=a}this.rotation_=i}},e}(Mr),g4=Vz,jz=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Kz=function(r){jz(e,r);function e(t){var n=this,i=t||{};n=r.call(this,{element:document.createElement("div"),target:i.target})||this;var a=i.className!==void 0?i.className:"ol-zoom",o=i.delta!==void 0?i.delta:1,s=i.zoomInClassName!==void 0?i.zoomInClassName:a+"-in",A=i.zoomOutClassName!==void 0?i.zoomOutClassName:a+"-out",l=i.zoomInLabel!==void 0?i.zoomInLabel:"+",u=i.zoomOutLabel!==void 0?i.zoomOutLabel:"–",c=i.zoomInTipLabel!==void 0?i.zoomInTipLabel:"Zoom in",h=i.zoomOutTipLabel!==void 0?i.zoomOutTipLabel:"Zoom out",f=document.createElement("button");f.className=s,f.setAttribute("type","button"),f.title=c,f.appendChild(typeof l=="string"?document.createTextNode(l):l),f.addEventListener(xe.CLICK,n.handleClick_.bind(n,o),!1);var p=document.createElement("button");p.className=A,p.setAttribute("type","button"),p.title=h,p.appendChild(typeof u=="string"?document.createTextNode(u):u),p.addEventListener(xe.CLICK,n.handleClick_.bind(n,-o),!1);var v=a+" "+cl+" "+ep,m=n.element;return m.className=v,m.appendChild(f),m.appendChild(p),n.duration_=i.duration!==void 0?i.duration:250,n}return e.prototype.handleClick_=function(t,n){n.preventDefault(),this.zoomByDelta_(t)},e.prototype.zoomByDelta_=function(t){var n=this.getMap(),i=n.getView();if(i){var a=i.getZoom();if(a!==void 0){var o=i.getConstrainedZoom(a+t);this.duration_>0?(i.getAnimating()&&i.cancelAnimations(),i.animate({zoom:o,duration:this.duration_,easing:Ds})):i.setZoom(o)}}},e}(Mr),m4=Kz,Yz=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),tN=["fullscreenchange","webkitfullscreenchange","MSFullscreenChange"],eN={ENTERFULLSCREEN:"enterfullscreen",LEAVEFULLSCREEN:"leavefullscreen"},Wz=function(r){Yz(e,r);function e(t){var n=this,i=t||{};n=r.call(this,{element:document.createElement("div"),target:i.target})||this,n.on,n.once,n.un,n.keys_=i.keys!==void 0?i.keys:!1,n.source_=i.source,n.isInFullscreen_=!1,n.boundHandleMapTargetChange_=n.handleMapTargetChange_.bind(n),n.cssClassName_=i.className!==void 0?i.className:"ol-full-screen",n.documentListeners_=[],n.activeClassName_=i.activeClassName!==void 0?i.activeClassName.split(" "):[n.cssClassName_+"-true"],n.inactiveClassName_=i.inactiveClassName!==void 0?i.inactiveClassName.split(" "):[n.cssClassName_+"-false"];var a=i.label!==void 0?i.label:"⤢";n.labelNode_=typeof a=="string"?document.createTextNode(a):a;var o=i.labelActive!==void 0?i.labelActive:"×";n.labelActiveNode_=typeof o=="string"?document.createTextNode(o):o;var s=i.tipLabel?i.tipLabel:"Toggle full-screen";return n.button_=document.createElement("button"),n.button_.title=s,n.button_.setAttribute("type","button"),n.button_.appendChild(n.labelNode_),n.button_.addEventListener(xe.CLICK,n.handleClick_.bind(n),!1),n.setClassName_(n.button_,n.isInFullscreen_),n.element.className="".concat(n.cssClassName_," ").concat(cl," ").concat(ep),n.element.appendChild(n.button_),n}return e.prototype.handleClick_=function(t){t.preventDefault(),this.handleFullScreen_()},e.prototype.handleFullScreen_=function(){var t=this.getMap();if(t){var n=t.getOwnerDocument();if(rN(n))if(nN(n))Xz(n);else{var i=void 0;this.source_?i=typeof this.source_=="string"?n.getElementById(this.source_):this.source_:i=t.getTargetElement(),this.keys_?zz(i):y4(i)}}},e.prototype.handleFullScreenChange_=function(){var t=this.getMap();if(t){var n=this.isInFullscreen_;this.isInFullscreen_=nN(t.getOwnerDocument()),n!==this.isInFullscreen_&&(this.setClassName_(this.button_,this.isInFullscreen_),this.isInFullscreen_?(rv(this.labelActiveNode_,this.labelNode_),this.dispatchEvent(eN.ENTERFULLSCREEN)):(rv(this.labelNode_,this.labelActiveNode_),this.dispatchEvent(eN.LEAVEFULLSCREEN)),t.updateSize())}},e.prototype.setClassName_=function(t,n){var i,a,o,s;n?((i=t.classList).remove.apply(i,this.inactiveClassName_),(a=t.classList).add.apply(a,this.activeClassName_)):((o=t.classList).remove.apply(o,this.activeClassName_),(s=t.classList).add.apply(s,this.inactiveClassName_))},e.prototype.setMap=function(t){var n=this.getMap();n&&n.removeChangeListener(mi.TARGET,this.boundHandleMapTargetChange_),r.prototype.setMap.call(this,t),this.handleMapTargetChange_(),t&&t.addChangeListener(mi.TARGET,this.boundHandleMapTargetChange_)},e.prototype.handleMapTargetChange_=function(){for(var t=this.documentListeners_,n=0,i=t.length;n<i;++n)Wr(t[n]);t.length=0;var a=this.getMap();if(a){var o=a.getOwnerDocument();rN(o)?this.element.classList.remove(UM):this.element.classList.add(UM);for(var n=0,i=tN.length;n<i;++n)t.push(je(o,tN[n],this.handleFullScreenChange_,this));this.handleFullScreenChange_()}},e}(Mr);function rN(r){var e=r.body;return!!(e.webkitRequestFullscreen||e.msRequestFullscreen&&r.msFullscreenEnabled||e.requestFullscreen&&r.fullscreenEnabled)}function nN(r){return!!(r.webkitIsFullScreen||r.msFullscreenElement||r.fullscreenElement)}function y4(r){r.requestFullscreen?r.requestFullscreen():r.msRequestFullscreen?r.msRequestFullscreen():r.webkitRequestFullscreen&&r.webkitRequestFullscreen()}function zz(r){r.webkitRequestFullscreen?r.webkitRequestFullscreen():y4(r)}function Xz(r){r.exitFullscreen?r.exitFullscreen():r.msExitFullscreen?r.msExitFullscreen():r.webkitExitFullscreen&&r.webkitExitFullscreen()}var qz=Wz,Zz=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),bB="projection",iN="coordinateFormat",Jz=function(r){Zz(e,r);function e(t){var n=this,i=t||{},a=document.createElement("div");a.className=i.className!==void 0?i.className:"ol-mouse-position",n=r.call(this,{element:a,render:i.render,target:i.target})||this,n.on,n.once,n.un,n.addChangeListener(bB,n.handleProjectionChanged_),i.coordinateFormat&&n.setCoordinateFormat(i.coordinateFormat),i.projection&&n.setProjection(i.projection);var o=!0,s=" ";return"undefinedHTML"in i?(i.undefinedHTML!==void 0&&(s=i.undefinedHTML),o=!!s):"placeholder"in i&&(i.placeholder===!1?o=!1:s=String(i.placeholder)),n.placeholder_=s,n.renderOnMouseOut_=o,n.renderedHTML_=a.innerHTML,n.mapProjection_=null,n.transform_=null,n}return e.prototype.handleProjectionChanged_=function(){this.transform_=null},e.prototype.getCoordinateFormat=function(){return this.get(iN)},e.prototype.getProjection=function(){return this.get(bB)},e.prototype.handleMouseMove=function(t){var n=this.getMap();this.updateHTML_(n.getEventPixel(t))},e.prototype.handleMouseOut=function(t){this.updateHTML_(null)},e.prototype.setMap=function(t){if(r.prototype.setMap.call(this,t),t){var n=t.getViewport();this.listenerKeys.push(je(n,zA.POINTERMOVE,this.handleMouseMove,this)),this.renderOnMouseOut_&&this.listenerKeys.push(je(n,zA.POINTEROUT,this.handleMouseOut,this)),this.updateHTML_(null)}},e.prototype.setCoordinateFormat=function(t){this.set(iN,t)},e.prototype.setProjection=function(t){this.set(bB,Ve(t))},e.prototype.updateHTML_=function(t){var n=this.placeholder_;if(t&&this.mapProjection_){if(!this.transform_){var i=this.getProjection();i?this.transform_=Df(this.mapProjection_,i):this.transform_=TE}var a=this.getMap(),o=a.getCoordinateFromPixelInternal(t);if(o){var s=Qf();s&&(this.transform_=Df(this.mapProjection_,s)),this.transform_(o,o);var A=this.getCoordinateFormat();A?n=A(o):n=o.toString()}}(!this.renderedHTML_||n!==this.renderedHTML_)&&(this.element.innerHTML=n,this.renderedHTML_=n)},e.prototype.render=function(t){var n=t.frameState;n?this.mapProjection_!=n.viewState.projection&&(this.mapProjection_=n.viewState.projection,this.transform_=null):this.mapProjection_=null},e}(Mr),tX=Jz,bo={BOTTOM_LEFT:"bottom-left",BOTTOM_CENTER:"bottom-center",BOTTOM_RIGHT:"bottom-right",CENTER_LEFT:"center-left",CENTER_CENTER:"center-center",CENTER_RIGHT:"center-right",TOP_LEFT:"top-left",TOP_CENTER:"top-center",TOP_RIGHT:"top-right"},eX=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Ma={ELEMENT:"element",MAP:"map",OFFSET:"offset",POSITION:"position",POSITIONING:"positioning"},rX=function(r){eX(e,r);function e(t){var n=r.call(this)||this;n.on,n.once,n.un,n.options=t,n.id=t.id,n.insertFirst=t.insertFirst!==void 0?t.insertFirst:!0,n.stopEvent=t.stopEvent!==void 0?t.stopEvent:!0,n.element=document.createElement("div"),n.element.className=t.className!==void 0?t.className:"ol-overlay-container "+JY,n.element.style.position="absolute",n.element.style.pointerEvents="auto";var i=t.autoPan;return i&&typeof i!="object"&&(i={animation:t.autoPanAnimation,margin:t.autoPanMargin}),n.autoPan=i||!1,n.rendered={transform_:"",visible:!0},n.mapPostrenderListenerKey=null,n.addChangeListener(Ma.ELEMENT,n.handleElementChanged),n.addChangeListener(Ma.MAP,n.handleMapChanged),n.addChangeListener(Ma.OFFSET,n.handleOffsetChanged),n.addChangeListener(Ma.POSITION,n.handlePositionChanged),n.addChangeListener(Ma.POSITIONING,n.handlePositioningChanged),t.element!==void 0&&n.setElement(t.element),n.setOffset(t.offset!==void 0?t.offset:[0,0]),n.setPositioning(t.positioning!==void 0?t.positioning:bo.TOP_LEFT),t.position!==void 0&&n.setPosition(t.position),n}return e.prototype.getElement=function(){return this.get(Ma.ELEMENT)},e.prototype.getId=function(){return this.id},e.prototype.getMap=function(){return this.get(Ma.MAP)||null},e.prototype.getOffset=function(){return this.get(Ma.OFFSET)},e.prototype.getPosition=function(){return this.get(Ma.POSITION)},e.prototype.getPositioning=function(){return this.get(Ma.POSITIONING)},e.prototype.handleElementChanged=function(){Y6(this.element);var t=this.getElement();t&&this.element.appendChild(t)},e.prototype.handleMapChanged=function(){this.mapPostrenderListenerKey&&(V1(this.element),Wr(this.mapPostrenderListenerKey),this.mapPostrenderListenerKey=null);var t=this.getMap();if(t){this.mapPostrenderListenerKey=je(t,KA.POSTRENDER,this.render,this),this.updatePixelPosition();var n=this.stopEvent?t.getOverlayContainerStopEvent():t.getOverlayContainer();this.insertFirst?n.insertBefore(this.element,n.childNodes[0]||null):n.appendChild(this.element),this.performAutoPan()}},e.prototype.render=function(){this.updatePixelPosition()},e.prototype.handleOffsetChanged=function(){this.updatePixelPosition()},e.prototype.handlePositionChanged=function(){this.updatePixelPosition(),this.performAutoPan()},e.prototype.handlePositioningChanged=function(){this.updatePixelPosition()},e.prototype.setElement=function(t){this.set(Ma.ELEMENT,t)},e.prototype.setMap=function(t){this.set(Ma.MAP,t)},e.prototype.setOffset=function(t){this.set(Ma.OFFSET,t)},e.prototype.setPosition=function(t){this.set(Ma.POSITION,t)},e.prototype.performAutoPan=function(){this.autoPan&&this.panIntoView(this.autoPan)},e.prototype.panIntoView=function(t){var n=this.getMap();if(!(!n||!n.getTargetElement()||!this.get(Ma.POSITION))){var i=this.getRect(n.getTargetElement(),n.getSize()),a=this.getElement(),o=this.getRect(a,[eW(a),rW(a)]),s=t||{},A=s.margin===void 0?20:s.margin;if(!us(i,o)){var l=o[0]-i[0],u=i[2]-o[2],c=o[1]-i[1],h=i[3]-o[3],f=[0,0];if(l<0?f[0]=l-A:u<0&&(f[0]=Math.abs(u)+A),c<0?f[1]=c-A:h<0&&(f[1]=Math.abs(h)+A),f[0]!==0||f[1]!==0){var p=n.getView().getCenterInternal(),v=n.getPixelFromCoordinateInternal(p);if(!v)return;var m=[v[0]+f[0],v[1]+f[1]],g=s.animation||{};n.getView().animateInternal({center:n.getCoordinateFromPixelInternal(m),duration:g.duration,easing:g.easing})}}}},e.prototype.getRect=function(t,n){var i=t.getBoundingClientRect(),a=i.left+window.pageXOffset,o=i.top+window.pageYOffset;return[a,o,a+n[0],o+n[1]]},e.prototype.setPositioning=function(t){this.set(Ma.POSITIONING,t)},e.prototype.setVisible=function(t){this.rendered.visible!==t&&(this.element.style.display=t?"":"none",this.rendered.visible=t)},e.prototype.updatePixelPosition=function(){var t=this.getMap(),n=this.getPosition();if(!t||!t.isRendered()||!n){this.setVisible(!1);return}var i=t.getPixelFromCoordinate(n),a=t.getSize();this.updateRenderedPosition(i,a)},e.prototype.updateRenderedPosition=function(t,n){var i=this.element.style,a=this.getOffset(),o=this.getPositioning();this.setVisible(!0);var s=Math.round(t[0]+a[0])+"px",A=Math.round(t[1]+a[1])+"px",l="0%",u="0%";o==bo.BOTTOM_RIGHT||o==bo.CENTER_RIGHT||o==bo.TOP_RIGHT?l="-100%":(o==bo.BOTTOM_CENTER||o==bo.CENTER_CENTER||o==bo.TOP_CENTER)&&(l="-50%"),o==bo.BOTTOM_LEFT||o==bo.BOTTOM_CENTER||o==bo.BOTTOM_RIGHT?u="-100%":(o==bo.CENTER_LEFT||o==bo.CENTER_CENTER||o==bo.CENTER_RIGHT)&&(u="-50%");var c="translate(".concat(l,", ").concat(u,") translate(").concat(s,", ").concat(A,")");this.rendered.transform_!=c&&(this.rendered.transform_=c,i.transform=c,i.msTransform=c)},e.prototype.getOptions=function(){return this.options},e}(xi),_4=rX,w4=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),SB=.75,X0=.1,nX=function(r){w4(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.createRenderer=function(){return new X6(this)},e}(d4),iX=function(r){w4(e,r);function e(t){var n=this,i=t||{};n=r.call(this,{element:document.createElement("div"),render:i.render,target:i.target})||this,n.boundHandleRotationChanged_=n.handleRotationChanged_.bind(n),n.collapsed_=i.collapsed!==void 0?i.collapsed:!0,n.collapsible_=i.collapsible!==void 0?i.collapsible:!0,n.collapsible_||(n.collapsed_=!1),n.rotateWithView_=i.rotateWithView!==void 0?i.rotateWithView:!1,n.viewExtent_=void 0;var a=i.className!==void 0?i.className:"ol-overviewmap",o=i.tipLabel!==void 0?i.tipLabel:"Overview map",s=i.collapseLabel!==void 0?i.collapseLabel:"‹";typeof s=="string"?(n.collapseLabel_=document.createElement("span"),n.collapseLabel_.textContent=s):n.collapseLabel_=s;var A=i.label!==void 0?i.label:"›";typeof A=="string"?(n.label_=document.createElement("span"),n.label_.textContent=A):n.label_=A;var l=n.collapsible_&&!n.collapsed_?n.collapseLabel_:n.label_,u=document.createElement("button");u.setAttribute("type","button"),u.title=o,u.appendChild(l),u.addEventListener(xe.CLICK,n.handleClick_.bind(n),!1),n.ovmapDiv_=document.createElement("div"),n.ovmapDiv_.className="ol-overviewmap-map",n.view_=i.view,n.ovmap_=new nX({view:i.view});var c=n.ovmap_;i.layers&&i.layers.forEach(function(F){c.addLayer(F)});var h=document.createElement("div");h.className="ol-overviewmap-box",h.style.boxSizing="border-box",n.boxOverlay_=new _4({position:[0,0],positioning:bo.CENTER_CENTER,element:h}),n.ovmap_.addOverlay(n.boxOverlay_);var f=a+" "+cl+" "+ep+(n.collapsed_&&n.collapsible_?" "+$1:"")+(n.collapsible_?"":" ol-uncollapsible"),p=n.element;p.className=f,p.appendChild(n.ovmapDiv_),p.appendChild(u);var v=n,m=n.boxOverlay_,g=n.boxOverlay_.getElement(),_=function(F){return{clientX:F.clientX,clientY:F.clientY}},w=function(F){var O=_(F),I=c.getEventCoordinateInternal(O);m.setPosition(I)},C=function(F){var O=c.getEventCoordinateInternal(F);v.getMap().getView().setCenterInternal(O),window.removeEventListener("mousemove",w),window.removeEventListener("mouseup",C)};return g.addEventListener("mousedown",function(){window.addEventListener("mousemove",w),window.addEventListener("mouseup",C)}),n}return e.prototype.setMap=function(t){var n=this.getMap();if(t!==n){if(n){var i=n.getView();i&&this.unbindView_(i),this.ovmap_.setTarget(null)}if(r.prototype.setMap.call(this,t),t){this.ovmap_.setTarget(this.ovmapDiv_),this.listenerKeys.push(je(t,Pf.PROPERTYCHANGE,this.handleMapPropertyChange_,this));var a=t.getView();a&&(this.bindView_(a),a.isDef()&&(this.ovmap_.updateSize(),this.resetExtent_())),this.ovmap_.isRendered()||this.updateBoxAfterOvmapIsRendered_()}}},e.prototype.handleMapPropertyChange_=function(t){if(t.key===mi.VIEW){var n=t.oldValue;n&&this.unbindView_(n);var i=this.getMap().getView();this.bindView_(i)}else!this.ovmap_.isRendered()&&(t.key===mi.TARGET||t.key===mi.SIZE)&&this.ovmap_.updateSize()},e.prototype.bindView_=function(t){if(!this.view_){var n=new qA({projection:t.getProjection()});this.ovmap_.setView(n)}t.addChangeListener(os.ROTATION,this.boundHandleRotationChanged_),this.handleRotationChanged_()},e.prototype.unbindView_=function(t){t.removeChangeListener(os.ROTATION,this.boundHandleRotationChanged_)},e.prototype.handleRotationChanged_=function(){this.rotateWithView_&&this.ovmap_.getView().setRotation(this.getMap().getView().getRotation())},e.prototype.validateExtent_=function(){var t=this.getMap(),n=this.ovmap_;if(!(!t.isRendered()||!n.isRendered())){var i=t.getSize(),a=t.getView(),o=a.calculateExtentInternal(i);if(!(this.viewExtent_&&ul(o,this.viewExtent_))){this.viewExtent_=o;var s=n.getSize(),A=n.getView(),l=A.calculateExtentInternal(s),u=n.getPixelFromCoordinateInternal(_A(o)),c=n.getPixelFromCoordinateInternal(Sv(o)),h=Math.abs(u[0]-c[0]),f=Math.abs(u[1]-c[1]),p=s[0],v=s[1];h<p*X0||f<v*X0||h>p*SB||f>v*SB?this.resetExtent_():us(l,o)||this.recenter_()}}},e.prototype.resetExtent_=function(){var t=this.getMap(),n=this.ovmap_,i=t.getSize(),a=t.getView(),o=a.calculateExtentInternal(i),s=n.getView(),A=Math.log(SB/X0)/Math.LN2,l=1/(Math.pow(2,A/2)*X0);F6(o,l),s.fitInternal(zc(o))},e.prototype.recenter_=function(){var t=this.getMap(),n=this.ovmap_,i=t.getView(),a=n.getView();a.setCenterInternal(i.getCenterInternal())},e.prototype.updateBox_=function(){var t=this.getMap(),n=this.ovmap_;if(!(!t.isRendered()||!n.isRendered())){var i=t.getSize(),a=t.getView(),o=n.getView(),s=this.rotateWithView_?0:-a.getRotation(),A=this.boxOverlay_,l=this.boxOverlay_.getElement(),u=a.getCenterInternal(),c=a.getResolution(),h=o.getResolution(),f=i[0]*c/h,p=i[1]*c/h;if(A.setPosition(u),l){l.style.width=f+"px",l.style.height=p+"px";var v="rotate("+s+"rad)";l.style.transform=v}}},e.prototype.updateBoxAfterOvmapIsRendered_=function(){this.ovmapPostrenderKey_||(this.ovmapPostrenderKey_=Zm(this.ovmap_,KA.POSTRENDER,function(t){delete this.ovmapPostrenderKey_,this.updateBox_()},this))},e.prototype.handleClick_=function(t){t.preventDefault(),this.handleToggle_()},e.prototype.handleToggle_=function(){this.element.classList.toggle($1),this.collapsed_?rv(this.collapseLabel_,this.label_):rv(this.label_,this.collapseLabel_),this.collapsed_=!this.collapsed_;var t=this.ovmap_;if(!this.collapsed_){if(t.isRendered()){this.viewExtent_=void 0,t.render();return}t.updateSize(),this.resetExtent_(),this.updateBoxAfterOvmapIsRendered_()}},e.prototype.getCollapsible=function(){return this.collapsible_},e.prototype.setCollapsible=function(t){this.collapsible_!==t&&(this.collapsible_=t,this.element.classList.toggle("ol-uncollapsible"),!t&&this.collapsed_&&this.handleToggle_())},e.prototype.setCollapsed=function(t){!this.collapsible_||this.collapsed_===t||this.handleToggle_()},e.prototype.getCollapsed=function(){return this.collapsed_},e.prototype.getRotateWithView=function(){return this.rotateWithView_},e.prototype.setRotateWithView=function(t){this.rotateWithView_!==t&&(this.rotateWithView_=t,this.getMap().getView().getRotation()!==0&&(this.rotateWithView_?this.handleRotationChanged_():this.ovmap_.getView().setRotation(0),this.viewExtent_=void 0,this.validateExtent_(),this.updateBox_()))},e.prototype.getOverviewMap=function(){return this.ovmap_},e.prototype.render=function(t){this.validateExtent_(),this.updateBox_()},e}(Mr),aX=iX,oX=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),xB="units",Hh={DEGREES:"degrees",IMPERIAL:"imperial",NAUTICAL:"nautical",METRIC:"metric",US:"us"},sX=[1,2,5],IB=25.4/.28,AX=function(r){oX(e,r);function e(t){var n=this,i=t||{},a=i.className!==void 0?i.className:i.bar?"ol-scale-bar":"ol-scale-line";return n=r.call(this,{element:document.createElement("div"),render:i.render,target:i.target})||this,n.on,n.once,n.un,n.innerElement_=document.createElement("div"),n.innerElement_.className=a+"-inner",n.element.className=a+" "+cl,n.element.appendChild(n.innerElement_),n.viewState_=null,n.minWidth_=i.minWidth!==void 0?i.minWidth:64,n.renderedVisible_=!1,n.renderedWidth_=void 0,n.renderedHTML_="",n.addChangeListener(xB,n.handleUnitsChanged_),n.setUnits(i.units||Hh.METRIC),n.scaleBar_=i.bar||!1,n.scaleBarSteps_=i.steps||4,n.scaleBarText_=i.text||!1,n.dpi_=i.dpi||void 0,n}return e.prototype.getUnits=function(){return this.get(xB)},e.prototype.handleUnitsChanged_=function(){this.updateElement_()},e.prototype.setUnits=function(t){this.set(xB,t)},e.prototype.setDpi=function(t){this.dpi_=t},e.prototype.updateElement_=function(){var t=this.viewState_;if(!t){this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1);return}var n=t.center,i=t.projection,a=this.getUnits(),o=a==Hh.DEGREES?lo.DEGREES:lo.METERS,s=X1(i,t.resolution,n,o),A=this.minWidth_*(this.dpi_||IB)/IB,l=A*s,u="";if(a==Hh.DEGREES){var c=pA[lo.DEGREES];l*=c,l<c/60?(u="″",s*=3600):l<c?(u="′",s*=60):u="°"}else a==Hh.IMPERIAL?l<.9144?(u="in",s/=.0254):l<1609.344?(u="ft",s/=.3048):(u="mi",s/=1609.344):a==Hh.NAUTICAL?(s/=1852,u="nm"):a==Hh.METRIC?l<.001?(u="μm",s*=1e6):l<1?(u="mm",s*=1e3):l<1e3?u="m":(u="km",s/=1e3):a==Hh.US?l<.9144?(u="in",s*=39.37):l<1609.344?(u="ft",s/=.30480061):(u="mi",s/=1609.3472):Le(!1,33);for(var h=3*Math.floor(Math.log(A*s)/Math.log(10)),f,p,v;;){v=Math.floor(h/3);var m=Math.pow(10,v);if(f=sX[(h%3+3)%3]*m,p=Math.round(f/s),isNaN(p)){this.element.style.display="none",this.renderedVisible_=!1;return}else if(p>=A)break;++h}var g;this.scaleBar_?g=this.createScaleBar(p,f,u):g=f.toFixed(v<0?-v:0)+" "+u,this.renderedHTML_!=g&&(this.innerElement_.innerHTML=g,this.renderedHTML_=g),this.renderedWidth_!=p&&(this.innerElement_.style.width=p+"px",this.renderedWidth_=p),this.renderedVisible_||(this.element.style.display="",this.renderedVisible_=!0)},e.prototype.createScaleBar=function(t,n,i){for(var a="1 : "+Math.round(this.getScaleForResolution()).toLocaleString(),o=[],s=t/this.scaleBarSteps_,A="#ffffff",l=0;l<this.scaleBarSteps_;l++)l===0&&o.push(this.createMarker("absolute",l)),o.push('<div><div class="ol-scale-singlebar" style="width: '+s+"px;background-color: "+A+';"></div>'+this.createMarker("relative",l)+(l%2===0||this.scaleBarSteps_===2?this.createStepText(l,t,!1,n,i):"")+"</div>"),l===this.scaleBarSteps_-1&&o.push(this.createStepText(l+1,t,!0,n,i)),A==="#ffffff"?A="#000000":A="#ffffff";var u;this.scaleBarText_?u='<div class="ol-scale-text" style="width: '+t+'px;">'+a+"</div>":u="";var c='<div style="display: flex;">'+u+o.join("")+"</div>";return c},e.prototype.createMarker=function(t,n){var i=t==="absolute"?3:-10;return'<div class="ol-scale-step-marker" style="position: '+t+";top: "+i+'px;"></div>'},e.prototype.createStepText=function(t,n,i,a,o){var s=t===0?0:Math.round(a/this.scaleBarSteps_*t*100)/100,A=s+(t===0?"":" "+o),l=t===0?-3:n/this.scaleBarSteps_*-1,u=t===0?0:n/this.scaleBarSteps_*2;return'<div class="ol-scale-step-text" style="margin-left: '+l+"px;text-align: "+(t===0?"left":"center")+"; min-width: "+u+"px;left: "+(i?n+"px":"unset")+';">'+A+"</div>"},e.prototype.getScaleForResolution=function(){var t=X1(this.viewState_.projection,this.viewState_.resolution,this.viewState_.center,lo.METERS),n=this.dpi_||IB,i=1e3/25.4;return parseFloat(t.toString())*i*n},e.prototype.render=function(t){var n=t.frameState;n?this.viewState_=n.viewState:this.viewState_=null,this.updateElement_()},e}(Mr),lX=AX,uX=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),xg={VERTICAL:0,HORIZONTAL:1},cX=function(r){uX(e,r);function e(t){var n=this,i=t||{};n=r.call(this,{element:document.createElement("div"),render:i.render})||this,n.dragListenerKeys_=[],n.currentResolution_=void 0,n.direction_=xg.VERTICAL,n.dragging_,n.heightLimit_=0,n.widthLimit_=0,n.startX_,n.startY_,n.thumbSize_=null,n.sliderInitialized_=!1,n.duration_=i.duration!==void 0?i.duration:200;var a=i.className!==void 0?i.className:"ol-zoomslider",o=document.createElement("button");o.setAttribute("type","button"),o.className=a+"-thumb "+cl;var s=n.element;return s.className=a+" "+cl+" "+ep,s.appendChild(o),s.addEventListener(zA.POINTERDOWN,n.handleDraggerStart_.bind(n),!1),s.addEventListener(zA.POINTERMOVE,n.handleDraggerDrag_.bind(n),!1),s.addEventListener(zA.POINTERUP,n.handleDraggerEnd_.bind(n),!1),s.addEventListener(xe.CLICK,n.handleContainerClick_.bind(n),!1),o.addEventListener(xe.CLICK,PY,!1),n}return e.prototype.setMap=function(t){r.prototype.setMap.call(this,t),t&&t.render()},e.prototype.initSlider_=function(){var t=this.element,n=t.offsetWidth,i=t.offsetHeight;if(n===0&&i===0)return this.sliderInitialized_=!1;var a=getComputedStyle(t);n-=parseFloat(a.paddingRight)+parseFloat(a.paddingLeft),i-=parseFloat(a.paddingTop)+parseFloat(a.paddingBottom);var o=t.firstElementChild,s=getComputedStyle(o),A=o.offsetWidth+parseFloat(s.marginRight)+parseFloat(s.marginLeft),l=o.offsetHeight+parseFloat(s.marginTop)+parseFloat(s.marginBottom);return this.thumbSize_=[A,l],n>i?(this.direction_=xg.HORIZONTAL,this.widthLimit_=n-A):(this.direction_=xg.VERTICAL,this.heightLimit_=i-l),this.sliderInitialized_=!0},e.prototype.handleContainerClick_=function(t){var n=this.getMap().getView(),i=this.getRelativePosition_(t.offsetX-this.thumbSize_[0]/2,t.offsetY-this.thumbSize_[1]/2),a=this.getResolutionForPosition_(i),o=n.getConstrainedZoom(n.getZoomForResolution(a));n.animateInternal({zoom:o,duration:this.duration_,easing:Ds})},e.prototype.handleDraggerStart_=function(t){if(!this.dragging_&&t.target===this.element.firstElementChild){var n=this.element.firstElementChild;if(this.getMap().getView().beginInteraction(),this.startX_=t.clientX-parseFloat(n.style.left),this.startY_=t.clientY-parseFloat(n.style.top),this.dragging_=!0,this.dragListenerKeys_.length===0){var i=this.handleDraggerDrag_,a=this.handleDraggerEnd_,o=this.getMap().getOwnerDocument();this.dragListenerKeys_.push(je(o,zA.POINTERMOVE,i,this),je(o,zA.POINTERUP,a,this))}}},e.prototype.handleDraggerDrag_=function(t){if(this.dragging_){var n=t.clientX-this.startX_,i=t.clientY-this.startY_,a=this.getRelativePosition_(n,i);this.currentResolution_=this.getResolutionForPosition_(a),this.getMap().getView().setResolution(this.currentResolution_)}},e.prototype.handleDraggerEnd_=function(t){if(this.dragging_){var n=this.getMap().getView();n.endInteraction(),this.dragging_=!1,this.startX_=void 0,this.startY_=void 0,this.dragListenerKeys_.forEach(Wr),this.dragListenerKeys_.length=0}},e.prototype.setThumbPosition_=function(t){var n=this.getPositionForResolution_(t),i=this.element.firstElementChild;this.direction_==xg.HORIZONTAL?i.style.left=this.widthLimit_*n+"px":i.style.top=this.heightLimit_*n+"px"},e.prototype.getRelativePosition_=function(t,n){var i;return this.direction_===xg.HORIZONTAL?i=t/this.widthLimit_:i=n/this.heightLimit_,Nn(i,0,1)},e.prototype.getResolutionForPosition_=function(t){var n=this.getMap().getView().getResolutionForValueFunction();return n(1-t)},e.prototype.getPositionForResolution_=function(t){var n=this.getMap().getView().getValueForResolutionFunction();return Nn(1-n(t),0,1)},e.prototype.render=function(t){if(t.frameState&&!(!this.sliderInitialized_&&!this.initSlider_())){var n=t.frameState.viewState.resolution;this.currentResolution_=n,this.setThumbPosition_(n)}},e}(Mr),hX=cX,fX=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),pX=function(r){fX(e,r);function e(t){var n=this,i=t||{};n=r.call(this,{element:document.createElement("div"),target:i.target})||this,n.extent=i.extent?i.extent:null;var a=i.className!==void 0?i.className:"ol-zoom-extent",o=i.label!==void 0?i.label:"E",s=i.tipLabel!==void 0?i.tipLabel:"Fit to extent",A=document.createElement("button");A.setAttribute("type","button"),A.title=s,A.appendChild(typeof o=="string"?document.createTextNode(o):o),A.addEventListener(xe.CLICK,n.handleClick_.bind(n),!1);var l=a+" "+cl+" "+ep,u=n.element;return u.className=l,u.appendChild(A),n}return e.prototype.handleClick_=function(t){t.preventDefault(),this.handleZoomToExtent()},e.prototype.handleZoomToExtent=function(){var t=this.getMap(),n=t.getView(),i=this.extent?this.extent:n.getProjection().getExtent();n.fitInternal(zc(i))},e}(Mr),dX=pX;function vX(r){var e=r||{},t=new bi,n=e.zoom!==void 0?e.zoom:!0;n&&t.push(new m4(e.zoomOptions));var i=e.rotate!==void 0?e.rotate:!0;i&&t.push(new g4(e.rotateOptions));var a=e.attribution!==void 0?e.attribution:!0;return a&&t.push(new v4(e.attributionOptions)),t}var nS={ACTIVE:"active"},gX=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),mX=function(r){gX(e,r);function e(t){var n=r.call(this)||this;return n.on,n.once,n.un,t&&t.handleEvent&&(n.handleEvent=t.handleEvent),n.map_=null,n.setActive(!0),n}return e.prototype.getActive=function(){return this.get(nS.ACTIVE)},e.prototype.getMap=function(){return this.map_},e.prototype.handleEvent=function(t){return!0},e.prototype.setActive=function(t){this.set(nS.ACTIVE,t)},e.prototype.setMap=function(t){this.map_=t},e}(xi);function yX(r,e,t){var n=r.getCenterInternal();if(n){var i=[n[0]+e[0],n[1]+e[1]];r.animateInternal({duration:t!==void 0?t:250,easing:iF,center:r.getConstrainedCenter(i)})}}function pF(r,e,t,n){var i=r.getZoom();if(i!==void 0){var a=r.getConstrainedZoom(i+e),o=r.getResolutionForZoom(a);r.getAnimating()&&r.cancelAnimations(),r.animate({resolution:o,anchor:t,duration:n!==void 0?n:250,easing:Ds})}}var Lv=mX,_X=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),wX=function(r){_X(e,r);function e(t){var n=r.call(this)||this,i=t||{};return n.delta_=i.delta?i.delta:1,n.duration_=i.duration!==void 0?i.duration:250,n}return e.prototype.handleEvent=function(t){var n=!1;if(t.type==mr.DBLCLICK){var i=t.originalEvent,a=t.map,o=t.coordinate,s=i.shiftKey?-this.delta_:this.delta_,A=a.getView();pF(A,s,o,this.duration_),i.preventDefault(),n=!0}return!n},e}(Lv),EX=wX,CX=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),BX=function(r){CX(e,r);function e(t){var n=this,i=t||{};return n=r.call(this,i)||this,i.handleDownEvent&&(n.handleDownEvent=i.handleDownEvent),i.handleDragEvent&&(n.handleDragEvent=i.handleDragEvent),i.handleMoveEvent&&(n.handleMoveEvent=i.handleMoveEvent),i.handleUpEvent&&(n.handleUpEvent=i.handleUpEvent),i.stopDown&&(n.stopDown=i.stopDown),n.handlingDownUpSequence=!1,n.trackedPointers_={},n.targetPointers=[],n}return e.prototype.getPointerCount=function(){return this.targetPointers.length},e.prototype.handleDownEvent=function(t){return!1},e.prototype.handleDragEvent=function(t){},e.prototype.handleEvent=function(t){if(!t.originalEvent)return!0;var n=!1;if(this.updateTrackedPointers_(t),this.handlingDownUpSequence){if(t.type==mr.POINTERDRAG)this.handleDragEvent(t),t.originalEvent.preventDefault();else if(t.type==mr.POINTERUP){var i=this.handleUpEvent(t);this.handlingDownUpSequence=i&&this.targetPointers.length>0}}else if(t.type==mr.POINTERDOWN){var a=this.handleDownEvent(t);this.handlingDownUpSequence=a,n=this.stopDown(a)}else t.type==mr.POINTERMOVE&&this.handleMoveEvent(t);return!n},e.prototype.handleMoveEvent=function(t){},e.prototype.handleUpEvent=function(t){return!1},e.prototype.stopDown=function(t){return t},e.prototype.updateTrackedPointers_=function(t){if(TX(t)){var n=t.originalEvent,i=n.pointerId.toString();t.type==mr.POINTERUP?delete this.trackedPointers_[i]:t.type==mr.POINTERDOWN?this.trackedPointers_[i]=n:i in this.trackedPointers_&&(this.trackedPointers_[i]=n),this.targetPointers=KL(this.trackedPointers_)}},e}(Lv);function dF(r){for(var e=r.length,t=0,n=0,i=0;i<e;i++)t+=r[i].clientX,n+=r[i].clientY;return[t/e,n/e]}function TX(r){var e=r.type;return e===mr.POINTERDOWN||e===mr.POINTERDRAG||e===mr.POINTERUP}var ms=BX;function J1(r){var e=arguments;return function(t){for(var n=!0,i=0,a=e.length;i<a&&(n=n&&e[i](t),!!n);++i);return n}}var E4=function(r){var e=r.originalEvent;return e.altKey&&!(e.metaKey||e.ctrlKey)&&!e.shiftKey},C4=function(r){var e=r.originalEvent;return e.altKey&&!(e.metaKey||e.ctrlKey)&&e.shiftKey},B4=function(r){var e=r.map.getTargetElement(),t=r.map.getOwnerDocument().activeElement;return e.contains(t)},vF=function(r){return r.map.getTargetElement().hasAttribute("tabindex")?B4(r):!0},FE=il,bX=function(r){return r.type==mr.CLICK},gF=function(r){var e=r.originalEvent;return e.button==0&&!(cY&&B6&&e.ctrlKey)},iS=qf,SX=function(r){return r.type=="pointermove"},OE=function(r){return r.type==mr.SINGLECLICK},xX=function(r){return r.type==mr.DBLCLICK},RE=function(r){var e=r.originalEvent;return!e.altKey&&!(e.metaKey||e.ctrlKey)&&!e.shiftKey},IX=function(r){var e=r.originalEvent;return!e.altKey&&(B6?e.metaKey:e.ctrlKey)&&!e.shiftKey},Hy=function(r){var e=r.originalEvent;return!e.altKey&&!(e.metaKey||e.ctrlKey)&&e.shiftKey},mF=function(r){var e=r.originalEvent,t=e.target.tagName;return t!=="INPUT"&&t!=="SELECT"&&t!=="TEXTAREA"},Ef=function(r){var e=r.originalEvent;return Le(e!==void 0,56),e.pointerType=="mouse"},LX=function(r){var e=r.originalEvent;return Le(e!==void 0,56),e.pointerType==="touch"},FX=function(r){var e=r.originalEvent;return Le(e!==void 0,56),e.pointerType==="pen"},yF=function(r){var e=r.originalEvent;return Le(e!==void 0,56),e.isPrimary&&e.button===0},OX=Object.freeze(Object.defineProperty({__proto__:null,all:J1,altKeyOnly:E4,altShiftKeysOnly:C4,focus:B4,focusWithTabindex:vF,always:FE,click:bX,mouseActionButton:gF,never:iS,pointerMove:SX,singleClick:OE,doubleClick:xX,noModifierKeys:RE,platformModifierKeyOnly:IX,shiftKeyOnly:Hy,targetNotEditable:mF,mouseOnly:Ef,touchOnly:LX,penOnly:FX,primaryAction:yF},Symbol.toStringTag,{value:"Module"})),RX=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),MX=function(r){RX(e,r);function e(t){var n=r.call(this,{stopDown:qf})||this,i=t||{};n.kinetic_=i.kinetic,n.lastCentroid=null,n.lastPointersCount_,n.panning_=!1;var a=i.condition?i.condition:J1(RE,yF);return n.condition_=i.onFocusOnly?J1(vF,a):a,n.noKinetic_=!1,n}return e.prototype.handleDragEvent=function(t){this.panning_||(this.panning_=!0,this.getMap().getView().beginInteraction());var n=this.targetPointers,i=dF(n);if(n.length==this.lastPointersCount_){if(this.kinetic_&&this.kinetic_.update(i[0],i[1]),this.lastCentroid){var a=[this.lastCentroid[0]-i[0],i[1]-this.lastCentroid[1]],o=t.map,s=o.getView();$6(a,s.getResolution()),zL(a,s.getRotation()),s.adjustCenterInternal(a)}}else this.kinetic_&&this.kinetic_.begin();this.lastCentroid=i,this.lastPointersCount_=n.length,t.originalEvent.preventDefault()},e.prototype.handleUpEvent=function(t){var n=t.map,i=n.getView();if(this.targetPointers.length===0){if(!this.noKinetic_&&this.kinetic_&&this.kinetic_.end()){var a=this.kinetic_.getDistance(),o=this.kinetic_.getAngle(),s=i.getCenterInternal(),A=n.getPixelFromCoordinateInternal(s),l=n.getCoordinateFromPixelInternal([A[0]-a*Math.cos(o),A[1]-a*Math.sin(o)]);i.animateInternal({center:i.getConstrainedCenter(l),duration:500,easing:Ds})}return this.panning_&&(this.panning_=!1,i.endInteraction()),!1}else return this.kinetic_&&this.kinetic_.begin(),this.lastCentroid=null,!0},e.prototype.handleDownEvent=function(t){if(this.targetPointers.length>0&&this.condition_(t)){var n=t.map,i=n.getView();return this.lastCentroid=null,i.getAnimating()&&i.cancelAnimations(),this.kinetic_&&this.kinetic_.begin(),this.noKinetic_=this.targetPointers.length>1,!0}else return!1},e}(ms),NX=MX,PX=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),UX=function(r){PX(e,r);function e(t){var n=this,i=t||{};return n=r.call(this,{stopDown:qf})||this,n.condition_=i.condition?i.condition:C4,n.lastAngle_=void 0,n.duration_=i.duration!==void 0?i.duration:250,n}return e.prototype.handleDragEvent=function(t){if(Ef(t)){var n=t.map,i=n.getView();if(i.getConstraints().rotation!==rF){var a=n.getSize(),o=t.pixel,s=Math.atan2(a[1]/2-o[1],o[0]-a[0]/2);if(this.lastAngle_!==void 0){var A=s-this.lastAngle_;i.adjustRotationInternal(-A)}this.lastAngle_=s}}},e.prototype.handleUpEvent=function(t){if(!Ef(t))return!0;var n=t.map,i=n.getView();return i.endInteraction(this.duration_),!1},e.prototype.handleDownEvent=function(t){if(!Ef(t))return!1;if(gF(t)&&this.condition_(t)){var n=t.map;return n.getView().beginInteraction(),this.lastAngle_=void 0,!0}else return!1},e}(ms),DX=UX,QX=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),kX=function(r){QX(e,r);function e(t){var n=r.call(this)||this;return n.geometry_=null,n.element_=document.createElement("div"),n.element_.style.position="absolute",n.element_.style.pointerEvents="auto",n.element_.className="ol-box "+t,n.map_=null,n.startPixel_=null,n.endPixel_=null,n}return e.prototype.disposeInternal=function(){this.setMap(null)},e.prototype.render_=function(){var t=this.startPixel_,n=this.endPixel_,i="px",a=this.element_.style;a.left=Math.min(t[0],n[0])+i,a.top=Math.min(t[1],n[1])+i,a.width=Math.abs(n[0]-t[0])+i,a.height=Math.abs(n[1]-t[1])+i},e.prototype.setMap=function(t){if(this.map_){this.map_.getOverlayContainer().removeChild(this.element_);var n=this.element_.style;n.left="inherit",n.top="inherit",n.width="inherit",n.height="inherit"}this.map_=t,this.map_&&this.map_.getOverlayContainer().appendChild(this.element_)},e.prototype.setPixels=function(t,n){this.startPixel_=t,this.endPixel_=n,this.createOrUpdateGeometry(),this.render_()},e.prototype.createOrUpdateGeometry=function(){var t=this.startPixel_,n=this.endPixel_,i=[t,[t[0],n[1]],n,[n[0],t[1]]],a=i.map(this.map_.getCoordinateFromPixelInternal,this.map_);a[4]=a[0].slice(),this.geometry_?this.geometry_.setCoordinates([a]):this.geometry_=new Pn([a])},e.prototype.getGeometry=function(){return this.geometry_},e}(yE),HX=kX,T4=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),q0={BOXSTART:"boxstart",BOXDRAG:"boxdrag",BOXEND:"boxend",BOXCANCEL:"boxcancel"},LB=function(r){T4(e,r);function e(t,n,i){var a=r.call(this,t)||this;return a.coordinate=n,a.mapBrowserEvent=i,a}return e}(ko),GX=function(r){T4(e,r);function e(t){var n=r.call(this)||this;n.on,n.once,n.un;var i=t||{};return n.box_=new HX(i.className||"ol-dragbox"),n.minArea_=i.minArea!==void 0?i.minArea:64,i.onBoxEnd&&(n.onBoxEnd=i.onBoxEnd),n.startPixel_=null,n.condition_=i.condition?i.condition:gF,n.boxEndCondition_=i.boxEndCondition?i.boxEndCondition:n.defaultBoxEndCondition,n}return e.prototype.defaultBoxEndCondition=function(t,n,i){var a=i[0]-n[0],o=i[1]-n[1];return a*a+o*o>=this.minArea_},e.prototype.getGeometry=function(){return this.box_.getGeometry()},e.prototype.handleDragEvent=function(t){this.box_.setPixels(this.startPixel_,t.pixel),this.dispatchEvent(new LB(q0.BOXDRAG,t.coordinate,t))},e.prototype.handleUpEvent=function(t){this.box_.setMap(null);var n=this.boxEndCondition_(t,this.startPixel_,t.pixel);return n&&this.onBoxEnd(t),this.dispatchEvent(new LB(n?q0.BOXEND:q0.BOXCANCEL,t.coordinate,t)),!1},e.prototype.handleDownEvent=function(t){return this.condition_(t)?(this.startPixel_=t.pixel,this.box_.setMap(t.map),this.box_.setPixels(this.startPixel_,this.startPixel_),this.dispatchEvent(new LB(q0.BOXSTART,t.coordinate,t)),!0):!1},e.prototype.onBoxEnd=function(t){},e}(ms),$X=GX,VX=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),jX=function(r){VX(e,r);function e(t){var n=this,i=t||{},a=i.condition?i.condition:Hy;return n=r.call(this,{condition:a,className:i.className||"ol-dragzoom",minArea:i.minArea})||this,n.duration_=i.duration!==void 0?i.duration:200,n.out_=i.out!==void 0?i.out:!1,n}return e.prototype.onBoxEnd=function(t){var n=this.getMap(),i=n.getView(),a=this.getGeometry();if(this.out_){var o=i.rotatedExtentForGeometry(a),s=i.getResolutionForExtentInternal(o),A=i.getResolution()/s;a=a.clone(),a.scale(A*A)}i.fitInternal(a,{duration:this.duration_,easing:Ds})},e}($X),KX=jX,Gh={LEFT:37,UP:38,RIGHT:39,DOWN:40},YX=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),WX=function(r){YX(e,r);function e(t){var n=r.call(this)||this,i=t||{};return n.defaultCondition_=function(a){return RE(a)&&mF(a)},n.condition_=i.condition!==void 0?i.condition:n.defaultCondition_,n.duration_=i.duration!==void 0?i.duration:100,n.pixelDelta_=i.pixelDelta!==void 0?i.pixelDelta:128,n}return e.prototype.handleEvent=function(t){var n=!1;if(t.type==xe.KEYDOWN){var i=t.originalEvent,a=i.keyCode;if(this.condition_(t)&&(a==Gh.DOWN||a==Gh.LEFT||a==Gh.RIGHT||a==Gh.UP)){var o=t.map,s=o.getView(),A=s.getResolution()*this.pixelDelta_,l=0,u=0;a==Gh.DOWN?u=-A:a==Gh.LEFT?l=-A:a==Gh.RIGHT?l=A:u=A;var c=[l,u];zL(c,s.getRotation()),yX(s,c,this.duration_),i.preventDefault(),n=!0}}return!n},e}(Lv),zX=WX,XX=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),qX=function(r){XX(e,r);function e(t){var n=r.call(this)||this,i=t||{};return n.condition_=i.condition?i.condition:mF,n.delta_=i.delta?i.delta:1,n.duration_=i.duration!==void 0?i.duration:100,n}return e.prototype.handleEvent=function(t){var n=!1;if(t.type==xe.KEYDOWN||t.type==xe.KEYPRESS){var i=t.originalEvent,a=i.charCode;if(this.condition_(t)&&(a=="+".charCodeAt(0)||a=="-".charCodeAt(0))){var o=t.map,s=a=="+".charCodeAt(0)?this.delta_:-this.delta_,A=o.getView();pF(A,s,void 0,this.duration_),i.preventDefault(),n=!0}}return!n},e}(Lv),ZX=qX,JX=function(){function r(e,t,n){this.decay_=e,this.minVelocity_=t,this.delay_=n,this.points_=[],this.angle_=0,this.initialVelocity_=0}return r.prototype.begin=function(){this.points_.length=0,this.angle_=0,this.initialVelocity_=0},r.prototype.update=function(e,t){this.points_.push(e,t,Date.now())},r.prototype.end=function(){if(this.points_.length<6)return!1;var e=Date.now()-this.delay_,t=this.points_.length-3;if(this.points_[t+2]<e)return!1;for(var n=t-3;n>0&&this.points_[n+2]>e;)n-=3;var i=this.points_[t+2]-this.points_[n+2];if(i<1e3/60)return!1;var a=this.points_[t]-this.points_[n],o=this.points_[t+1]-this.points_[n+1];return this.angle_=Math.atan2(o,a),this.initialVelocity_=Math.sqrt(a*a+o*o)/i,this.initialVelocity_>this.minVelocity_},r.prototype.getDistance=function(){return(this.minVelocity_-this.initialVelocity_)/this.decay_},r.prototype.getAngle=function(){return this.angle_},r}(),tq=JX,eq=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),FB={TRACKPAD:"trackpad",WHEEL:"wheel"},rq=function(r){eq(e,r);function e(t){var n=this,i=t||{};n=r.call(this,i)||this,n.totalDelta_=0,n.lastDelta_=0,n.maxDelta_=i.maxDelta!==void 0?i.maxDelta:1,n.duration_=i.duration!==void 0?i.duration:250,n.timeout_=i.timeout!==void 0?i.timeout:80,n.useAnchor_=i.useAnchor!==void 0?i.useAnchor:!0,n.constrainResolution_=i.constrainResolution!==void 0?i.constrainResolution:!1;var a=i.condition?i.condition:FE;return n.condition_=i.onFocusOnly?J1(vF,a):a,n.lastAnchor_=null,n.startTime_=void 0,n.timeoutId_,n.mode_=void 0,n.trackpadEventGap_=400,n.trackpadTimeoutId_,n.deltaPerZoom_=300,n}return e.prototype.endInteraction_=function(){this.trackpadTimeoutId_=void 0;var t=this.getMap().getView();t.endInteraction(void 0,this.lastDelta_?this.lastDelta_>0?1:-1:0,this.lastAnchor_)},e.prototype.handleEvent=function(t){if(!this.condition_(t))return!0;var n=t.type;if(n!==xe.WHEEL)return!0;var i=t.map,a=t.originalEvent;a.preventDefault(),this.useAnchor_&&(this.lastAnchor_=t.coordinate);var o;if(t.type==xe.WHEEL&&(o=a.deltaY,AY&&a.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(o/=Nf),a.deltaMode===WheelEvent.DOM_DELTA_LINE&&(o*=40)),o===0)return!1;this.lastDelta_=o;var s=Date.now();this.startTime_===void 0&&(this.startTime_=s),(!this.mode_||s-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(o)<4?FB.TRACKPAD:FB.WHEEL);var A=i.getView();if(this.mode_===FB.TRACKPAD&&!(A.getConstrainResolution()||this.constrainResolution_))return this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):(A.getAnimating()&&A.cancelAnimations(),A.beginInteraction()),this.trackpadTimeoutId_=setTimeout(this.endInteraction_.bind(this),this.timeout_),A.adjustZoom(-o/this.deltaPerZoom_,this.lastAnchor_),this.startTime_=s,!1;this.totalDelta_+=o;var l=Math.max(this.timeout_-(s-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,i),l),!1},e.prototype.handleWheelZoom_=function(t){var n=t.getView();n.getAnimating()&&n.cancelAnimations();var i=-Nn(this.totalDelta_,-this.maxDelta_*this.deltaPerZoom_,this.maxDelta_*this.deltaPerZoom_)/this.deltaPerZoom_;(n.getConstrainResolution()||this.constrainResolution_)&&(i=i?i>0?1:-1:0),pF(n,i,this.lastAnchor_,this.duration_),this.mode_=void 0,this.totalDelta_=0,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_=void 0},e.prototype.setMouseAnchor=function(t){this.useAnchor_=t,t||(this.lastAnchor_=null)},e}(Lv),nq=rq,iq=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),aq=function(r){iq(e,r);function e(t){var n=this,i=t||{},a=i;return a.stopDown||(a.stopDown=qf),n=r.call(this,a)||this,n.anchor_=null,n.lastAngle_=void 0,n.rotating_=!1,n.rotationDelta_=0,n.threshold_=i.threshold!==void 0?i.threshold:.3,n.duration_=i.duration!==void 0?i.duration:250,n}return e.prototype.handleDragEvent=function(t){var n=0,i=this.targetPointers[0],a=this.targetPointers[1],o=Math.atan2(a.clientY-i.clientY,a.clientX-i.clientX);if(this.lastAngle_!==void 0){var s=o-this.lastAngle_;this.rotationDelta_+=s,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),n=s}this.lastAngle_=o;var A=t.map,l=A.getView();if(l.getConstraints().rotation!==rF){var u=A.getViewport().getBoundingClientRect(),c=dF(this.targetPointers);c[0]-=u.left,c[1]-=u.top,this.anchor_=A.getCoordinateFromPixelInternal(c),this.rotating_&&(A.render(),l.adjustRotationInternal(n,this.anchor_))}},e.prototype.handleUpEvent=function(t){if(this.targetPointers.length<2){var n=t.map,i=n.getView();return i.endInteraction(this.duration_),!1}else return!0},e.prototype.handleDownEvent=function(t){if(this.targetPointers.length>=2){var n=t.map;return this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.handlingDownUpSequence||n.getView().beginInteraction(),!0}else return!1},e}(ms),oq=aq,sq=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Aq=function(r){sq(e,r);function e(t){var n=this,i=t||{},a=i;return a.stopDown||(a.stopDown=qf),n=r.call(this,a)||this,n.anchor_=null,n.duration_=i.duration!==void 0?i.duration:400,n.lastDistance_=void 0,n.lastScaleDelta_=1,n}return e.prototype.handleDragEvent=function(t){var n=1,i=this.targetPointers[0],a=this.targetPointers[1],o=i.clientX-a.clientX,s=i.clientY-a.clientY,A=Math.sqrt(o*o+s*s);this.lastDistance_!==void 0&&(n=this.lastDistance_/A),this.lastDistance_=A;var l=t.map,u=l.getView();n!=1&&(this.lastScaleDelta_=n);var c=l.getViewport().getBoundingClientRect(),h=dF(this.targetPointers);h[0]-=c.left,h[1]-=c.top,this.anchor_=l.getCoordinateFromPixelInternal(h),l.render(),u.adjustResolutionInternal(n,this.anchor_)},e.prototype.handleUpEvent=function(t){if(this.targetPointers.length<2){var n=t.map,i=n.getView(),a=this.lastScaleDelta_>1?1:-1;return i.endInteraction(this.duration_,a),!1}else return!0},e.prototype.handleDownEvent=function(t){if(this.targetPointers.length>=2){var n=t.map;return this.anchor_=null,this.lastDistance_=void 0,this.lastScaleDelta_=1,this.handlingDownUpSequence||n.getView().beginInteraction(),!0}else return!1},e}(ms),lq=Aq,lA={ARRAY_BUFFER:"arraybuffer",JSON:"json",TEXT:"text",XML:"xml"},uq=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),cq=function(r){uq(e,r);function e(t){var n=this,i=t||{};return n=r.call(this,i)||this,n.condition_=i.condition?i.condition:Hy,n.lastAngle_=void 0,n.lastMagnitude_=void 0,n.lastScaleDelta_=0,n.duration_=i.duration!==void 0?i.duration:400,n}return e.prototype.handleDragEvent=function(t){if(Ef(t)){var n=t.map,i=n.getSize(),a=t.pixel,o=a[0]-i[0]/2,s=i[1]/2-a[1],A=Math.atan2(s,o),l=Math.sqrt(o*o+s*s),u=n.getView();if(this.lastAngle_!==void 0){var c=this.lastAngle_-A;u.adjustRotationInternal(c)}this.lastAngle_=A,this.lastMagnitude_!==void 0&&u.adjustResolutionInternal(this.lastMagnitude_/l),this.lastMagnitude_!==void 0&&(this.lastScaleDelta_=this.lastMagnitude_/l),this.lastMagnitude_=l}},e.prototype.handleUpEvent=function(t){if(!Ef(t))return!0;var n=t.map,i=n.getView(),a=this.lastScaleDelta_>1?1:-1;return i.endInteraction(this.duration_,a),this.lastScaleDelta_=0,!1},e.prototype.handleDownEvent=function(t){return Ef(t)&&this.condition_(t)?(t.map.getView().beginInteraction(),this.lastAngle_=void 0,this.lastMagnitude_=void 0,!0):!1},e}(ms),hq=cq,fq=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),b4=function(r){fq(e,r);function e(t,n,i){var a=r.call(this)||this;if(i!==void 0&&n===void 0)a.setFlatCoordinates(i,t);else{var o=n||0;a.setCenterAndRadius(t,o,i)}return a}return e.prototype.clone=function(){var t=new e(this.flatCoordinates.slice(),void 0,this.layout);return t.applyProperties(this),t},e.prototype.closestPointXY=function(t,n,i,a){var o=this.flatCoordinates,s=t-o[0],A=n-o[1],l=s*s+A*A;if(l<a){if(l===0)for(var u=0;u<this.stride;++u)i[u]=o[u];else{var c=this.getRadius()/Math.sqrt(l);i[0]=o[0]+c*s,i[1]=o[1]+c*A;for(var u=2;u<this.stride;++u)i[u]=o[u]}return i.length=this.stride,l}else return a},e.prototype.containsXY=function(t,n){var i=this.flatCoordinates,a=t-i[0],o=n-i[1];return a*a+o*o<=this.getRadiusSquared_()},e.prototype.getCenter=function(){return this.flatCoordinates.slice(0,this.stride)},e.prototype.computeExtent=function(t){var n=this.flatCoordinates,i=n[this.stride]-n[0];return Uo(n[0]-i,n[1]-i,n[0]+i,n[1]+i,t)},e.prototype.getRadius=function(){return Math.sqrt(this.getRadiusSquared_())},e.prototype.getRadiusSquared_=function(){var t=this.flatCoordinates[this.stride]-this.flatCoordinates[0],n=this.flatCoordinates[this.stride+1]-this.flatCoordinates[1];return t*t+n*n},e.prototype.getType=function(){return dt.CIRCLE},e.prototype.intersectsExtent=function(t){var n=this.getExtent();if(Wn(t,n)){var i=this.getCenter();return t[0]<=i[0]&&t[2]>=i[0]||t[1]<=i[1]&&t[3]>=i[1]?!0:BE(t,this.intersectsCoordinate.bind(this))}return!1},e.prototype.setCenter=function(t){var n=this.stride,i=this.flatCoordinates[n]-this.flatCoordinates[0],a=t.slice();a[n]=a[0]+i;for(var o=1;o<n;++o)a[n+o]=t[o];this.setFlatCoordinates(this.layout,a),this.changed()},e.prototype.setCenterAndRadius=function(t,n,i){this.setLayout(i,t,0),this.flatCoordinates||(this.flatCoordinates=[]);var a=this.flatCoordinates,o=n4(a,0,t,this.stride);a[o++]=a[0]+n;for(var s=1,A=this.stride;s<A;++s)a[o++]=a[s];a.length=o,this.changed()},e.prototype.getCoordinates=function(){return null},e.prototype.setCoordinates=function(t,n){},e.prototype.setRadius=function(t){this.flatCoordinates[this.stride]=this.flatCoordinates[0]+t,this.changed()},e.prototype.rotate=function(t,n){var i=this.getCenter(),a=this.getStride();this.setCenter(aF(i,0,i.length,a,t,n,i)),this.changed()},e.prototype.translate=function(t,n){var i=this.getCenter(),a=this.getStride();this.setCenter(r4(i,0,i.length,a,t,n,i)),this.changed()},e}(dA);b4.prototype.transform;var _F=b4,pq=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),dq=function(r){pq(e,r);function e(t){var n=r.call(this)||this;if(n.on,n.once,n.un,n.id_=void 0,n.geometryName_="geometry",n.style_=null,n.styleFunction_=void 0,n.geometryChangeKey_=null,n.addChangeListener(n.geometryName_,n.handleGeometryChanged_),t)if(typeof t.getSimplifiedGeometry=="function"){var i=t;n.setGeometry(i)}else{var a=t;n.setProperties(a)}return n}return e.prototype.clone=function(){var t=new e(this.hasProperties()?this.getProperties():null);t.setGeometryName(this.getGeometryName());var n=this.getGeometry();n&&t.setGeometry(n.clone());var i=this.getStyle();return i&&t.setStyle(i),t},e.prototype.getGeometry=function(){return this.get(this.geometryName_)},e.prototype.getId=function(){return this.id_},e.prototype.getGeometryName=function(){return this.geometryName_},e.prototype.getStyle=function(){return this.style_},e.prototype.getStyleFunction=function(){return this.styleFunction_},e.prototype.handleGeometryChange_=function(){this.changed()},e.prototype.handleGeometryChanged_=function(){this.geometryChangeKey_&&(Wr(this.geometryChangeKey_),this.geometryChangeKey_=null);var t=this.getGeometry();t&&(this.geometryChangeKey_=je(t,xe.CHANGE,this.handleGeometryChange_,this)),this.changed()},e.prototype.setGeometry=function(t){this.set(this.geometryName_,t)},e.prototype.setStyle=function(t){this.style_=t,this.styleFunction_=t?vq(t):void 0,this.changed()},e.prototype.setId=function(t){this.id_=t,this.changed()},e.prototype.setGeometryName=function(t){this.removeChangeListener(this.geometryName_,this.handleGeometryChanged_),this.geometryName_=t,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),this.handleGeometryChanged_()},e}(xi);function vq(r){if(typeof r=="function")return r;var e;if(Array.isArray(r))e=r;else{Le(typeof r.getZIndex=="function",41);var t=r;e=[t]}return function(){return e}}var yr=dq;function tw(r,e,t,n,i,a,o){var s,A,l=(t-e)/n;if(l===1)s=e;else if(l===2)s=e,A=i;else if(l!==0){for(var u=r[e],c=r[e+1],h=0,f=[0],p=e+n;p<t;p+=n){var v=r[p],m=r[p+1];h+=Math.sqrt((v-u)*(v-u)+(m-c)*(m-c)),f.push(h),u=v,c=m}var g=i*h,_=nY(f,g);_<0?(A=(g-f[-_-2])/(f[-_-1]-f[-_-2]),s=e+(-_-2)*n):s=e+_*n}for(var w=o>1?o:2,C=a||new Array(w),p=0;p<w;++p)C[p]=s===void 0?NaN:A===void 0?r[s+p]:Jl(r[s+p],r[s+n+p],A);return C}function aS(r,e,t,n,i,a){if(t==e)return null;var o;if(i<r[e+n-1])return a?(o=r.slice(e,e+n),o[n-1]=i,o):null;if(r[t-1]<i)return a?(o=r.slice(t-n,t),o[n-1]=i,o):null;if(i==r[e+n-1])return r.slice(e,e+n);for(var s=e/n,A=t/n;s<A;){var l=s+A>>1;i<r[(l+1)*n-1]?A=l:s=l+1}var u=r[s*n-1];if(i==u)return r.slice((s-1)*n,(s-1)*n+n);var c=r[(s+1)*n-1],h=(i-u)/(c-u);o=[];for(var f=0;f<n-1;++f)o.push(Jl(r[(s-1)*n+f],r[s*n+f],h));return o.push(i),o}function gq(r,e,t,n,i,a,o){if(o)return aS(r,e,t[t.length-1],n,i,a);var s;if(i<r[n-1])return a?(s=r.slice(0,n),s[n-1]=i,s):null;if(r[r.length-1]<i)return a?(s=r.slice(r.length-n),s[n-1]=i,s):null;for(var A=0,l=t.length;A<l;++A){var u=t[A];if(e!=u){if(i<r[e+n-1])return null;if(i<=r[u-1])return aS(r,e,u,n,i,!1);e=u}}return null}function S4(r,e,t,n){for(var i=r[e],a=r[e+1],o=0,s=e+n;s<t;s+=n){var A=r[s],l=r[s+1];o+=Math.sqrt((A-i)*(A-i)+(l-a)*(l-a)),i=A,a=l}return o}var mq=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),yq=function(r){mq(e,r);function e(t,n){var i=r.call(this)||this;return i.flatMidpoint_=null,i.flatMidpointRevision_=-1,i.maxDelta_=-1,i.maxDeltaRevision_=-1,n!==void 0&&!Array.isArray(t[0])?i.setFlatCoordinates(n,t):i.setCoordinates(t,n),i}return e.prototype.appendCoordinate=function(t){this.flatCoordinates?Jr(this.flatCoordinates,t):this.flatCoordinates=t.slice(),this.changed()},e.prototype.clone=function(){var t=new e(this.flatCoordinates.slice(),this.layout);return t.applyProperties(this),t},e.prototype.closestPointXY=function(t,n,i,a){return a<ih(this.getExtent(),t,n)?a:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(oF(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),AF(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!1,t,n,i,a))},e.prototype.forEachSegment=function(t){return A4(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)},e.prototype.getCoordinateAtM=function(t,n){if(this.layout!=ae.XYM&&this.layout!=ae.XYZM)return null;var i=n!==void 0?n:!1;return aS(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,i)},e.prototype.getCoordinates=function(){return ru(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getCoordinateAt=function(t,n){return tw(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,n,this.stride)},e.prototype.getLength=function(){return S4(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getFlatMidpoint=function(){return this.flatMidpointRevision_!=this.getRevision()&&(this.flatMidpoint_=this.getCoordinateAt(.5,this.flatMidpoint_),this.flatMidpointRevision_=this.getRevision()),this.flatMidpoint_},e.prototype.getSimplifiedGeometryInternal=function(t){var n=[];return n.length=cF(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,n,0),new e(n,ae.XY)},e.prototype.getType=function(){return dt.LINE_STRING},e.prototype.intersectsExtent=function(t){return xE(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)},e.prototype.setCoordinates=function(t,n){this.setLayout(n,t,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=ky(this.flatCoordinates,0,t,this.stride),this.changed()},e}(dA),tn=yq,_q=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),wq=function(r){_q(e,r);function e(t,n,i){var a=r.call(this)||this;if(a.ends_=[],a.maxDelta_=-1,a.maxDeltaRevision_=-1,Array.isArray(t[0]))a.setCoordinates(t,n);else if(n!==void 0&&i)a.setFlatCoordinates(n,t),a.ends_=i;else{for(var o=a.getLayout(),s=t,A=[],l=[],u=0,c=s.length;u<c;++u){var h=s[u];u===0&&(o=h.getLayout()),Jr(A,h.getFlatCoordinates()),l.push(A.length)}a.setFlatCoordinates(o,A),a.ends_=l}return a}return e.prototype.appendLineString=function(t){this.flatCoordinates?Jr(this.flatCoordinates,t.getFlatCoordinates().slice()):this.flatCoordinates=t.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()},e.prototype.clone=function(){var t=new e(this.flatCoordinates.slice(),this.layout,this.ends_.slice());return t.applyProperties(this),t},e.prototype.closestPointXY=function(t,n,i,a){return a<ih(this.getExtent(),t,n)?a:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(sF(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),lF(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!1,t,n,i,a))},e.prototype.getCoordinateAtM=function(t,n,i){if(this.layout!=ae.XYM&&this.layout!=ae.XYZM||this.flatCoordinates.length===0)return null;var a=n!==void 0?n:!1,o=i!==void 0?i:!1;return gq(this.flatCoordinates,0,this.ends_,this.stride,t,a,o)},e.prototype.getCoordinates=function(){return oy(this.flatCoordinates,0,this.ends_,this.stride)},e.prototype.getEnds=function(){return this.ends_},e.prototype.getLineString=function(t){return t<0||this.ends_.length<=t?null:new tn(this.flatCoordinates.slice(t===0?0:this.ends_[t-1],this.ends_[t]),this.layout)},e.prototype.getLineStrings=function(){for(var t=this.flatCoordinates,n=this.ends_,i=this.layout,a=[],o=0,s=0,A=n.length;s<A;++s){var l=n[s],u=new tn(t.slice(o,l),i);a.push(u),o=l}return a},e.prototype.getFlatMidpoints=function(){for(var t=[],n=this.flatCoordinates,i=0,a=this.ends_,o=this.stride,s=0,A=a.length;s<A;++s){var l=a[s],u=tw(n,i,l,o,.5);Jr(t,u),i=l}return t},e.prototype.getSimplifiedGeometryInternal=function(t){var n=[],i=[];return n.length=uz(this.flatCoordinates,0,this.ends_,this.stride,t,n,0,i),new e(n,ae.XY,i)},e.prototype.getType=function(){return dt.MULTI_LINE_STRING},e.prototype.intersectsExtent=function(t){return _z(this.flatCoordinates,0,this.ends_,this.stride,t)},e.prototype.setCoordinates=function(t,n){this.setLayout(n,t,2),this.flatCoordinates||(this.flatCoordinates=[]);var i=uF(this.flatCoordinates,0,t,this.stride,this.ends_);this.flatCoordinates.length=i.length===0?0:i[i.length-1],this.changed()},e}(dA),Wa=wq,Eq=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Cq=function(r){Eq(e,r);function e(t,n){var i=r.call(this)||this;return n&&!Array.isArray(t[0])?i.setFlatCoordinates(n,t):i.setCoordinates(t,n),i}return e.prototype.appendPoint=function(t){this.flatCoordinates?Jr(this.flatCoordinates,t.getFlatCoordinates()):this.flatCoordinates=t.getFlatCoordinates().slice(),this.changed()},e.prototype.clone=function(){var t=new e(this.flatCoordinates.slice(),this.layout);return t.applyProperties(this),t},e.prototype.closestPointXY=function(t,n,i,a){if(a<ih(this.getExtent(),t,n))return a;for(var o=this.flatCoordinates,s=this.stride,A=0,l=o.length;A<l;A+=s){var u=wf(t,n,o[A],o[A+1]);if(u<a){a=u;for(var c=0;c<s;++c)i[c]=o[A+c];i.length=s}}return a},e.prototype.getCoordinates=function(){return ru(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getPoint=function(t){var n=this.flatCoordinates?this.flatCoordinates.length/this.stride:0;return t<0||n<=t?null:new Sr(this.flatCoordinates.slice(t*this.stride,(t+1)*this.stride),this.layout)},e.prototype.getPoints=function(){for(var t=this.flatCoordinates,n=this.layout,i=this.stride,a=[],o=0,s=t.length;o<s;o+=i){var A=new Sr(t.slice(o,o+i),n);a.push(A)}return a},e.prototype.getType=function(){return dt.MULTI_POINT},e.prototype.intersectsExtent=function(t){for(var n=this.flatCoordinates,i=this.stride,a=0,o=n.length;a<o;a+=i){var s=n[a],A=n[a+1];if(EE(t,s,A))return!0}return!1},e.prototype.setCoordinates=function(t,n){this.setLayout(n,t,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=ky(this.flatCoordinates,0,t,this.stride),this.changed()},e}(dA),Qs=Cq;function x4(r,e,t,n){for(var i=[],a=Ni(),o=0,s=t.length;o<s;++o){var A=t[o];a=CE(r,e,A[0],n),i.push((a[0]+a[2])/2,(a[1]+a[3])/2),e=A[A.length-1]}return i}var Bq=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Tq=function(r){Bq(e,r);function e(t,n,i){var a=r.call(this)||this;if(a.endss_=[],a.flatInteriorPointsRevision_=-1,a.flatInteriorPoints_=null,a.maxDelta_=-1,a.maxDeltaRevision_=-1,a.orientedRevision_=-1,a.orientedFlatCoordinates_=null,!i&&!Array.isArray(t[0])){for(var o=a.getLayout(),s=t,A=[],l=[],u=0,c=s.length;u<c;++u){var h=s[u];u===0&&(o=h.getLayout());for(var f=A.length,p=h.getEnds(),v=0,m=p.length;v<m;++v)p[v]+=f;Jr(A,h.getFlatCoordinates()),l.push(p)}n=o,t=A,i=l}return n!==void 0&&i?(a.setFlatCoordinates(n,t),a.endss_=i):a.setCoordinates(t,n),a}return e.prototype.appendPolygon=function(t){var n;if(!this.flatCoordinates)this.flatCoordinates=t.getFlatCoordinates().slice(),n=t.getEnds().slice(),this.endss_.push();else{var i=this.flatCoordinates.length;Jr(this.flatCoordinates,t.getFlatCoordinates()),n=t.getEnds().slice();for(var a=0,o=n.length;a<o;++a)n[a]+=i}this.endss_.push(n),this.changed()},e.prototype.clone=function(){for(var t=this.endss_.length,n=new Array(t),i=0;i<t;++i)n[i]=this.endss_[i].slice();var a=new e(this.flatCoordinates.slice(),this.layout,n);return a.applyProperties(this),a},e.prototype.closestPointXY=function(t,n,i,a){return a<ih(this.getExtent(),t,n)?a:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(sz(this.flatCoordinates,0,this.endss_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),Az(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,this.maxDelta_,!0,t,n,i,a))},e.prototype.containsXY=function(t,n){return yz(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,t,n)},e.prototype.getArea=function(){return fz(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride)},e.prototype.getCoordinates=function(t){var n;return t!==void 0?(n=this.getOrientedFlatCoordinates().slice(),qM(n,0,this.endss_,this.stride,t)):n=this.flatCoordinates,eS(n,0,this.endss_,this.stride)},e.prototype.getEndss=function(){return this.endss_},e.prototype.getFlatInteriorPoints=function(){if(this.flatInteriorPointsRevision_!=this.getRevision()){var t=x4(this.flatCoordinates,0,this.endss_,this.stride);this.flatInteriorPoints_=s4(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,t),this.flatInteriorPointsRevision_=this.getRevision()}return this.flatInteriorPoints_},e.prototype.getInteriorPoints=function(){return new Qs(this.getFlatInteriorPoints().slice(),ae.XYM)},e.prototype.getOrientedFlatCoordinates=function(){if(this.orientedRevision_!=this.getRevision()){var t=this.flatCoordinates;Bz(t,0,this.endss_,this.stride)?this.orientedFlatCoordinates_=t:(this.orientedFlatCoordinates_=t.slice(),this.orientedFlatCoordinates_.length=qM(this.orientedFlatCoordinates_,0,this.endss_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_},e.prototype.getSimplifiedGeometryInternal=function(t){var n=[],i=[];return n.length=hz(this.flatCoordinates,0,this.endss_,this.stride,Math.sqrt(t),n,0,i),new e(n,ae.XY,i)},e.prototype.getPolygon=function(t){if(t<0||this.endss_.length<=t)return null;var n;if(t===0)n=0;else{var i=this.endss_[t-1];n=i[i.length-1]}var a=this.endss_[t].slice(),o=a[a.length-1];if(n!==0)for(var s=0,A=a.length;s<A;++s)a[s]-=n;return new Pn(this.flatCoordinates.slice(n,o),this.layout,a)},e.prototype.getPolygons=function(){for(var t=this.layout,n=this.flatCoordinates,i=this.endss_,a=[],o=0,s=0,A=i.length;s<A;++s){var l=i[s].slice(),u=l[l.length-1];if(o!==0)for(var c=0,h=l.length;c<h;++c)l[c]-=o;var f=new Pn(n.slice(o,u),t,l);a.push(f),o=u}return a},e.prototype.getType=function(){return dt.MULTI_POLYGON},e.prototype.intersectsExtent=function(t){return Ez(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,t)},e.prototype.setCoordinates=function(t,n){this.setLayout(n,t,3),this.flatCoordinates||(this.flatCoordinates=[]);var i=lz(this.flatCoordinates,0,t,this.stride,this.endss_);if(i.length===0)this.flatCoordinates.length=0;else{var a=i[i.length-1];this.flatCoordinates.length=a.length===0?0:a[a.length-1]}this.changed()},e}(dA),za=Tq;function bq(r,e,t,n,i){I4(r,e,t||0,n||r.length-1,i||Sq)}function I4(r,e,t,n,i){for(;n>t;){if(n-t>600){var a=n-t+1,o=e-t+1,s=Math.log(a),A=.5*Math.exp(2*s/3),l=.5*Math.sqrt(s*A*(a-A)/a)*(o-a/2<0?-1:1),u=Math.max(t,Math.floor(e-o*A/a+l)),c=Math.min(n,Math.floor(e+(a-o)*A/a+l));I4(r,e,u,c,i)}var h=r[e],f=t,p=n;for(Ig(r,t,e),i(r[n],h)>0&&Ig(r,t,n);f<p;){for(Ig(r,f,p),f++,p--;i(r[f],h)<0;)f++;for(;i(r[p],h)>0;)p--}i(r[t],h)===0?Ig(r,t,p):(p++,Ig(r,p,n)),p<=e&&(t=p+1),e<=p&&(n=p-1)}}function Ig(r,e,t){var n=r[e];r[e]=r[t],r[t]=n}function Sq(r,e){return r<e?-1:r>e?1:0}class L4{constructor(e=9){this._maxEntries=Math.max(4,e),this._minEntries=Math.max(2,Math.ceil(this._maxEntries*.4)),this.clear()}all(){return this._all(this.data,[])}search(e){let t=this.data;const n=[];if(!J0(e,t))return n;const i=this.toBBox,a=[];for(;t;){for(let o=0;o<t.children.length;o++){const s=t.children[o],A=t.leaf?i(s):s;J0(e,A)&&(t.leaf?n.push(s):RB(e,A)?this._all(s,n):a.push(s))}t=a.pop()}return n}collides(e){let t=this.data;if(!J0(e,t))return!1;const n=[];for(;t;){for(let i=0;i<t.children.length;i++){const a=t.children[i],o=t.leaf?this.toBBox(a):a;if(J0(e,o)){if(t.leaf||RB(e,o))return!0;n.push(a)}}t=n.pop()}return!1}load(e){if(!(e&&e.length))return this;if(e.length<this._minEntries){for(let n=0;n<e.length;n++)this.insert(e[n]);return this}let t=this._build(e.slice(),0,e.length-1,0);if(!this.data.children.length)this.data=t;else if(this.data.height===t.height)this._splitRoot(this.data,t);else{if(this.data.height<t.height){const n=this.data;this.data=t,t=n}this._insert(t,this.data.height-t.height-1,!0)}return this}insert(e){return e&&this._insert(e,this.data.height-1),this}clear(){return this.data=pd([]),this}remove(e,t){if(!e)return this;let n=this.data;const i=this.toBBox(e),a=[],o=[];let s,A,l;for(;n||a.length;){if(n||(n=a.pop(),A=a[a.length-1],s=o.pop(),l=!0),n.leaf){const u=xq(e,n.children,t);if(u!==-1)return n.children.splice(u,1),a.push(n),this._condense(a),this}!l&&!n.leaf&&RB(n,i)?(a.push(n),o.push(s),s=0,A=n,n=n.children[0]):A?(s++,n=A.children[s],l=!1):n=null}return this}toBBox(e){return e}compareMinX(e,t){return e.minX-t.minX}compareMinY(e,t){return e.minY-t.minY}toJSON(){return this.data}fromJSON(e){return this.data=e,this}_all(e,t){const n=[];for(;e;)e.leaf?t.push(...e.children):n.push(...e.children),e=n.pop();return t}_build(e,t,n,i){const a=n-t+1;let o=this._maxEntries,s;if(a<=o)return s=pd(e.slice(t,n+1)),Kp(s,this.toBBox),s;i||(i=Math.ceil(Math.log(a)/Math.log(o)),o=Math.ceil(a/Math.pow(o,i-1))),s=pd([]),s.leaf=!1,s.height=i;const A=Math.ceil(a/o),l=A*Math.ceil(Math.sqrt(o));aN(e,t,n,l,this.compareMinX);for(let u=t;u<=n;u+=l){const c=Math.min(u+l-1,n);aN(e,u,c,A,this.compareMinY);for(let h=u;h<=c;h+=A){const f=Math.min(h+A-1,c);s.children.push(this._build(e,h,f,i-1))}}return Kp(s,this.toBBox),s}_chooseSubtree(e,t,n,i){for(;i.push(t),!(t.leaf||i.length-1===n);){let a=1/0,o=1/0,s;for(let A=0;A<t.children.length;A++){const l=t.children[A],u=OB(l),c=Fq(e,l)-u;c<o?(o=c,a=u<a?u:a,s=l):c===o&&u<a&&(a=u,s=l)}t=s||t.children[0]}return t}_insert(e,t,n){const i=n?e:this.toBBox(e),a=[],o=this._chooseSubtree(i,this.data,t,a);for(o.children.push(e),tm(o,i);t>=0&&a[t].children.length>this._maxEntries;)this._split(a,t),t--;this._adjustParentBBoxes(i,a,t)}_split(e,t){const n=e[t],i=n.children.length,a=this._minEntries;this._chooseSplitAxis(n,a,i);const o=this._chooseSplitIndex(n,a,i),s=pd(n.children.splice(o,n.children.length-o));s.height=n.height,s.leaf=n.leaf,Kp(n,this.toBBox),Kp(s,this.toBBox),t?e[t-1].children.push(s):this._splitRoot(n,s)}_splitRoot(e,t){this.data=pd([e,t]),this.data.height=e.height+1,this.data.leaf=!1,Kp(this.data,this.toBBox)}_chooseSplitIndex(e,t,n){let i,a=1/0,o=1/0;for(let s=t;s<=n-t;s++){const A=Jg(e,0,s,this.toBBox),l=Jg(e,s,n,this.toBBox),u=Oq(A,l),c=OB(A)+OB(l);u<a?(a=u,i=s,o=c<o?c:o):u===a&&c<o&&(o=c,i=s)}return i||n-t}_chooseSplitAxis(e,t,n){const i=e.leaf?this.compareMinX:Iq,a=e.leaf?this.compareMinY:Lq,o=this._allDistMargin(e,t,n,i),s=this._allDistMargin(e,t,n,a);o<s&&e.children.sort(i)}_allDistMargin(e,t,n,i){e.children.sort(i);const a=this.toBBox,o=Jg(e,0,t,a),s=Jg(e,n-t,n,a);let A=Z0(o)+Z0(s);for(let l=t;l<n-t;l++){const u=e.children[l];tm(o,e.leaf?a(u):u),A+=Z0(o)}for(let l=n-t-1;l>=t;l--){const u=e.children[l];tm(s,e.leaf?a(u):u),A+=Z0(s)}return A}_adjustParentBBoxes(e,t,n){for(let i=n;i>=0;i--)tm(t[i],e)}_condense(e){for(let t=e.length-1,n;t>=0;t--)e[t].children.length===0?t>0?(n=e[t-1].children,n.splice(n.indexOf(e[t]),1)):this.clear():Kp(e[t],this.toBBox)}}function xq(r,e,t){if(!t)return e.indexOf(r);for(let n=0;n<e.length;n++)if(t(r,e[n]))return n;return-1}function Kp(r,e){Jg(r,0,r.children.length,e,r)}function Jg(r,e,t,n,i){i||(i=pd(null)),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(let a=e;a<t;a++){const o=r.children[a];tm(i,r.leaf?n(o):o)}return i}function tm(r,e){return r.minX=Math.min(r.minX,e.minX),r.minY=Math.min(r.minY,e.minY),r.maxX=Math.max(r.maxX,e.maxX),r.maxY=Math.max(r.maxY,e.maxY),r}function Iq(r,e){return r.minX-e.minX}function Lq(r,e){return r.minY-e.minY}function OB(r){return(r.maxX-r.minX)*(r.maxY-r.minY)}function Z0(r){return r.maxX-r.minX+(r.maxY-r.minY)}function Fq(r,e){return(Math.max(e.maxX,r.maxX)-Math.min(e.minX,r.minX))*(Math.max(e.maxY,r.maxY)-Math.min(e.minY,r.minY))}function Oq(r,e){const t=Math.max(r.minX,e.minX),n=Math.max(r.minY,e.minY),i=Math.min(r.maxX,e.maxX),a=Math.min(r.maxY,e.maxY);return Math.max(0,i-t)*Math.max(0,a-n)}function RB(r,e){return r.minX<=e.minX&&r.minY<=e.minY&&e.maxX<=r.maxX&&e.maxY<=r.maxY}function J0(r,e){return e.minX<=r.maxX&&e.minY<=r.maxY&&e.maxX>=r.minX&&e.maxY>=r.minY}function pd(r){return{children:r,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function aN(r,e,t,n,i){const a=[e,t];for(;a.length;){if(t=a.pop(),e=a.pop(),t-e<=n)continue;const o=e+Math.ceil((t-e)/n/2)*n;bq(r,o,e,t,i),a.push(e,o,o,t)}}var er={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4},Rq=function(){function r(e){this.opacity_=e.opacity,this.rotateWithView_=e.rotateWithView,this.rotation_=e.rotation,this.scale_=e.scale,this.scaleArray_=ji(e.scale),this.displacement_=e.displacement}return r.prototype.clone=function(){var e=this.getScale();return new r({opacity:this.getOpacity(),scale:Array.isArray(e)?e.slice():e,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice()})},r.prototype.getOpacity=function(){return this.opacity_},r.prototype.getRotateWithView=function(){return this.rotateWithView_},r.prototype.getRotation=function(){return this.rotation_},r.prototype.getScale=function(){return this.scale_},r.prototype.getScaleArray=function(){return this.scaleArray_},r.prototype.getDisplacement=function(){return this.displacement_},r.prototype.getAnchor=function(){return Re()},r.prototype.getImage=function(e){return Re()},r.prototype.getHitDetectionImage=function(){return Re()},r.prototype.getPixelRatio=function(e){return 1},r.prototype.getImageState=function(){return Re()},r.prototype.getImageSize=function(){return Re()},r.prototype.getOrigin=function(){return Re()},r.prototype.getSize=function(){return Re()},r.prototype.setDisplacement=function(e){this.displacement_=e},r.prototype.setOpacity=function(e){this.opacity_=e},r.prototype.setRotateWithView=function(e){this.rotateWithView_=e},r.prototype.setRotation=function(e){this.rotation_=e},r.prototype.setScale=function(e){this.scale_=e,this.scaleArray_=ji(e)},r.prototype.listenImageChange=function(e){Re()},r.prototype.load=function(){Re()},r.prototype.unlistenImageChange=function(e){Re()},r}(),F4=Rq;function JA(r){return Array.isArray(r)?Q6(r):r}var Mq=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Nq=function(r){Mq(e,r);function e(t){var n=this,i=t.rotateWithView!==void 0?t.rotateWithView:!1;return n=r.call(this,{opacity:1,rotateWithView:i,rotation:t.rotation!==void 0?t.rotation:0,scale:t.scale!==void 0?t.scale:1,displacement:t.displacement!==void 0?t.displacement:[0,0]})||this,n.canvas_=void 0,n.hitDetectionCanvas_=null,n.fill_=t.fill!==void 0?t.fill:null,n.origin_=[0,0],n.points_=t.points,n.radius_=t.radius!==void 0?t.radius:t.radius1,n.radius2_=t.radius2,n.angle_=t.angle!==void 0?t.angle:0,n.stroke_=t.stroke!==void 0?t.stroke:null,n.size_=null,n.renderOptions_=null,n.render(),n}return e.prototype.clone=function(){var t=this.getScale(),n=new e({fill:this.getFill()?this.getFill().clone():void 0,points:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),stroke:this.getStroke()?this.getStroke().clone():void 0,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(t)?t.slice():t,displacement:this.getDisplacement().slice()});return n.setOpacity(this.getOpacity()),n},e.prototype.getAnchor=function(){var t=this.size_;if(!t)return null;var n=this.getDisplacement();return[t[0]/2-n[0],t[1]/2+n[1]]},e.prototype.getAngle=function(){return this.angle_},e.prototype.getFill=function(){return this.fill_},e.prototype.getHitDetectionImage=function(){return this.hitDetectionCanvas_||this.createHitDetectionCanvas_(this.renderOptions_),this.hitDetectionCanvas_},e.prototype.getImage=function(t){var n=this.canvas_[t];if(!n){var i=this.renderOptions_,a=mo(i.size*t,i.size*t);this.draw_(i,a,t),n=a.canvas,this.canvas_[t]=n}return n},e.prototype.getPixelRatio=function(t){return t},e.prototype.getImageSize=function(){return this.size_},e.prototype.getImageState=function(){return er.LOADED},e.prototype.getOrigin=function(){return this.origin_},e.prototype.getPoints=function(){return this.points_},e.prototype.getRadius=function(){return this.radius_},e.prototype.getRadius2=function(){return this.radius2_},e.prototype.getSize=function(){return this.size_},e.prototype.getStroke=function(){return this.stroke_},e.prototype.listenImageChange=function(t){},e.prototype.load=function(){},e.prototype.unlistenImageChange=function(t){},e.prototype.calculateLineJoinSize_=function(t,n,i){if(n===0||this.points_===1/0||t!=="bevel"&&t!=="miter")return n;var a=this.radius_,o=this.radius2_===void 0?a:this.radius2_;if(a<o){var s=a;a=o,o=s}var A=this.radius2_===void 0?this.points_:this.points_*2,l=2*Math.PI/A,u=o*Math.sin(l),c=Math.sqrt(o*o-u*u),h=a-c,f=Math.sqrt(u*u+h*h),p=f/u;if(t==="miter"&&p<=i)return p*n;var v=n/2/p,m=n/2*(h/f),g=Math.sqrt((a+v)*(a+v)+m*m),_=g-a;if(this.radius2_===void 0||t==="bevel")return _*2;var w=a*Math.sin(l),C=Math.sqrt(a*a-w*w),F=o-C,O=Math.sqrt(w*w+F*F),I=O/w;if(I<=i){var b=I*n/2-o-a;return 2*Math.max(_,b)}return _*2},e.prototype.createRenderOptions=function(){var t=nv,n=0,i=null,a=0,o,s=0;this.stroke_&&(o=this.stroke_.getColor(),o===null&&(o=ry),o=JA(o),s=this.stroke_.getWidth(),s===void 0&&(s=iy),i=this.stroke_.getLineDash(),a=this.stroke_.getLineDashOffset(),t=this.stroke_.getLineJoin(),t===void 0&&(t=nv),n=this.stroke_.getMiterLimit(),n===void 0&&(n=ey));var A=this.calculateLineJoinSize_(t,s,n),l=Math.max(this.radius_,this.radius2_||0),u=Math.ceil(2*l+A);return{strokeStyle:o,strokeWidth:s,size:u,lineDash:i,lineDashOffset:a,lineJoin:t,miterLimit:n}},e.prototype.render=function(){this.renderOptions_=this.createRenderOptions();var t=this.renderOptions_.size;this.canvas_={},this.size_=[t,t]},e.prototype.draw_=function(t,n,i){if(n.scale(i,i),n.translate(t.size/2,t.size/2),this.createPath_(n),this.fill_){var a=this.fill_.getColor();a===null&&(a=su),n.fillStyle=JA(a),n.fill()}this.stroke_&&(n.strokeStyle=t.strokeStyle,n.lineWidth=t.strokeWidth,n.setLineDash&&t.lineDash&&(n.setLineDash(t.lineDash),n.lineDashOffset=t.lineDashOffset),n.lineJoin=t.lineJoin,n.miterLimit=t.miterLimit,n.stroke())},e.prototype.createHitDetectionCanvas_=function(t){if(this.fill_){var n=this.fill_.getColor(),i=0;if(typeof n=="string"&&(n=Yc(n)),n===null?i=1:Array.isArray(n)&&(i=n.length===4?n[3]:1),i===0){var a=mo(t.size,t.size);this.hitDetectionCanvas_=a.canvas,this.drawHitDetectionCanvas_(t,a)}}this.hitDetectionCanvas_||(this.hitDetectionCanvas_=this.getImage(1))},e.prototype.createPath_=function(t){var n=this.points_,i=this.radius_;if(n===1/0)t.arc(0,0,i,0,2*Math.PI);else{var a=this.radius2_===void 0?i:this.radius2_;this.radius2_!==void 0&&(n*=2);for(var o=this.angle_-Math.PI/2,s=2*Math.PI/n,A=0;A<n;A++){var l=o+A*s,u=A%2===0?i:a;t.lineTo(u*Math.cos(l),u*Math.sin(l))}t.closePath()}},e.prototype.drawHitDetectionCanvas_=function(t,n){n.translate(t.size/2,t.size/2),this.createPath_(n),n.fillStyle=su,n.fill(),this.stroke_&&(n.strokeStyle=t.strokeStyle,n.lineWidth=t.strokeWidth,t.lineDash&&(n.setLineDash(t.lineDash),n.lineDashOffset=t.lineDashOffset),n.lineJoin=t.lineJoin,n.miterLimit=t.miterLimit,n.stroke())},e}(F4),s1=Nq,Pq=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Uq=function(r){Pq(e,r);function e(t){var n=t||{};return r.call(this,{points:1/0,fill:n.fill,radius:n.radius,stroke:n.stroke,scale:n.scale!==void 0?n.scale:1,rotation:n.rotation!==void 0?n.rotation:0,rotateWithView:n.rotateWithView!==void 0?n.rotateWithView:!1,displacement:n.displacement!==void 0?n.displacement:[0,0]})||this}return e.prototype.clone=function(){var t=this.getScale(),n=new e({fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,radius:this.getRadius(),scale:Array.isArray(t)?t.slice():t,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice()});return n.setOpacity(this.getOpacity()),n},e.prototype.setRadius=function(t){this.radius_=t,this.render()},e}(s1),Gy=Uq,Dq=function(){function r(e){var t=e||{};this.color_=t.color!==void 0?t.color:null}return r.prototype.clone=function(){var e=this.getColor();return new r({color:Array.isArray(e)?e.slice():e||void 0})},r.prototype.getColor=function(){return this.color_},r.prototype.setColor=function(e){this.color_=e},r}(),Ea=Dq,Qq=function(){function r(e){var t=e||{};this.color_=t.color!==void 0?t.color:null,this.lineCap_=t.lineCap,this.lineDash_=t.lineDash!==void 0?t.lineDash:null,this.lineDashOffset_=t.lineDashOffset,this.lineJoin_=t.lineJoin,this.miterLimit_=t.miterLimit,this.width_=t.width}return r.prototype.clone=function(){var e=this.getColor();return new r({color:Array.isArray(e)?e.slice():e||void 0,lineCap:this.getLineCap(),lineDash:this.getLineDash()?this.getLineDash().slice():void 0,lineDashOffset:this.getLineDashOffset(),lineJoin:this.getLineJoin(),miterLimit:this.getMiterLimit(),width:this.getWidth()})},r.prototype.getColor=function(){return this.color_},r.prototype.getLineCap=function(){return this.lineCap_},r.prototype.getLineDash=function(){return this.lineDash_},r.prototype.getLineDashOffset=function(){return this.lineDashOffset_},r.prototype.getLineJoin=function(){return this.lineJoin_},r.prototype.getMiterLimit=function(){return this.miterLimit_},r.prototype.getWidth=function(){return this.width_},r.prototype.setColor=function(e){this.color_=e},r.prototype.setLineCap=function(e){this.lineCap_=e},r.prototype.setLineDash=function(e){this.lineDash_=e},r.prototype.setLineDashOffset=function(e){this.lineDashOffset_=e},r.prototype.setLineJoin=function(e){this.lineJoin_=e},r.prototype.setMiterLimit=function(e){this.miterLimit_=e},r.prototype.setWidth=function(e){this.width_=e},r}(),Ki=Qq,bd=function(){function r(e){var t=e||{};this.geometry_=null,this.geometryFunction_=oN,t.geometry!==void 0&&this.setGeometry(t.geometry),this.fill_=t.fill!==void 0?t.fill:null,this.image_=t.image!==void 0?t.image:null,this.renderer_=t.renderer!==void 0?t.renderer:null,this.hitDetectionRenderer_=t.hitDetectionRenderer!==void 0?t.hitDetectionRenderer:null,this.stroke_=t.stroke!==void 0?t.stroke:null,this.text_=t.text!==void 0?t.text:null,this.zIndex_=t.zIndex}return r.prototype.clone=function(){var e=this.getGeometry();return e&&typeof e=="object"&&(e=e.clone()),new r({geometry:e,fill:this.getFill()?this.getFill().clone():void 0,image:this.getImage()?this.getImage().clone():void 0,renderer:this.getRenderer(),stroke:this.getStroke()?this.getStroke().clone():void 0,text:this.getText()?this.getText().clone():void 0,zIndex:this.getZIndex()})},r.prototype.getRenderer=function(){return this.renderer_},r.prototype.setRenderer=function(e){this.renderer_=e},r.prototype.setHitDetectionRenderer=function(e){this.hitDetectionRenderer_=e},r.prototype.getHitDetectionRenderer=function(){return this.hitDetectionRenderer_},r.prototype.getGeometry=function(){return this.geometry_},r.prototype.getGeometryFunction=function(){return this.geometryFunction_},r.prototype.getFill=function(){return this.fill_},r.prototype.setFill=function(e){this.fill_=e},r.prototype.getImage=function(){return this.image_},r.prototype.setImage=function(e){this.image_=e},r.prototype.getStroke=function(){return this.stroke_},r.prototype.setStroke=function(e){this.stroke_=e},r.prototype.getText=function(){return this.text_},r.prototype.setText=function(e){this.text_=e},r.prototype.getZIndex=function(){return this.zIndex_},r.prototype.setGeometry=function(e){typeof e=="function"?this.geometryFunction_=e:typeof e=="string"?this.geometryFunction_=function(t){return t.get(e)}:e?e!==void 0&&(this.geometryFunction_=function(){return e}):this.geometryFunction_=oN,this.geometry_=e},r.prototype.setZIndex=function(e){this.zIndex_=e},r}();function kq(r){var e;if(typeof r=="function")e=r;else{var t;if(Array.isArray(r))t=r;else{Le(typeof r.getZIndex=="function",41);var n=r;t=[n]}e=function(){return t}}return e}var MB=null;function Hq(r,e){if(!MB){var t=new Ea({color:"rgba(255,255,255,0.4)"}),n=new Ki({color:"#3399CC",width:1.25});MB=[new bd({image:new Gy({fill:t,stroke:n,radius:5}),fill:t,stroke:n})]}return MB}function wF(){var r={},e=[255,255,255,1],t=[0,153,255,1],n=3;return r[dt.POLYGON]=[new bd({fill:new Ea({color:[255,255,255,.5]})})],r[dt.MULTI_POLYGON]=r[dt.POLYGON],r[dt.LINE_STRING]=[new bd({stroke:new Ki({color:e,width:n+2})}),new bd({stroke:new Ki({color:t,width:n})})],r[dt.MULTI_LINE_STRING]=r[dt.LINE_STRING],r[dt.CIRCLE]=r[dt.POLYGON].concat(r[dt.LINE_STRING]),r[dt.POINT]=[new bd({image:new Gy({radius:n*2,fill:new Ea({color:t}),stroke:new Ki({color:e,width:n/2})}),zIndex:1/0})],r[dt.MULTI_POINT]=r[dt.POINT],r[dt.GEOMETRY_COLLECTION]=r[dt.POLYGON].concat(r[dt.LINE_STRING],r[dt.POINT]),r}function oN(r){return r.getGeometry()}var _a=bd,Gq=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),sN={RENDER_ORDER:"renderOrder"},$q=function(r){Gq(e,r);function e(t){var n=this,i=t||{},a=Ce({},i);return delete a.style,delete a.renderBuffer,delete a.updateWhileAnimating,delete a.updateWhileInteracting,n=r.call(this,a)||this,n.declutter_=i.declutter!==void 0?i.declutter:!1,n.renderBuffer_=i.renderBuffer!==void 0?i.renderBuffer:100,n.style_=null,n.styleFunction_=void 0,n.setStyle(i.style),n.updateWhileAnimating_=i.updateWhileAnimating!==void 0?i.updateWhileAnimating:!1,n.updateWhileInteracting_=i.updateWhileInteracting!==void 0?i.updateWhileInteracting:!1,n}return e.prototype.getDeclutter=function(){return this.declutter_},e.prototype.getFeatures=function(t){return r.prototype.getFeatures.call(this,t)},e.prototype.getRenderBuffer=function(){return this.renderBuffer_},e.prototype.getRenderOrder=function(){return this.get(sN.RENDER_ORDER)},e.prototype.getStyle=function(){return this.style_},e.prototype.getStyleFunction=function(){return this.styleFunction_},e.prototype.getUpdateWhileAnimating=function(){return this.updateWhileAnimating_},e.prototype.getUpdateWhileInteracting=function(){return this.updateWhileInteracting_},e.prototype.renderDeclutter=function(t){t.declutterTree||(t.declutterTree=new L4(9)),this.getRenderer().renderDeclutter(t)},e.prototype.setRenderOrder=function(t){this.set(sN.RENDER_ORDER,t)},e.prototype.setStyle=function(t){this.style_=t!==void 0?t:Hq,this.styleFunction_=t===null?void 0:kq(this.style_),this.changed()},e}(tp),ME=$q,$y={BEGIN_GEOMETRY:0,BEGIN_PATH:1,CIRCLE:2,CLOSE_PATH:3,CUSTOM:4,DRAW_CHARS:5,DRAW_IMAGE:6,END_GEOMETRY:7,FILL:8,MOVE_TO_LINE_TO:9,SET_FILL_STYLE:10,SET_STROKE_STYLE:11,STROKE:12},t_=[$y.FILL],wc=[$y.STROKE],lf=[$y.BEGIN_PATH],AN=[$y.CLOSE_PATH],We=$y,Vq=function(){function r(){}return r.prototype.drawCustom=function(e,t,n,i){},r.prototype.drawGeometry=function(e){},r.prototype.setStyle=function(e){},r.prototype.drawCircle=function(e,t){},r.prototype.drawFeature=function(e,t){},r.prototype.drawGeometryCollection=function(e,t){},r.prototype.drawLineString=function(e,t){},r.prototype.drawMultiLineString=function(e,t){},r.prototype.drawMultiPoint=function(e,t){},r.prototype.drawMultiPolygon=function(e,t){},r.prototype.drawPoint=function(e,t){},r.prototype.drawPolygon=function(e,t){},r.prototype.drawText=function(e,t){},r.prototype.setFillStrokeStyle=function(e,t){},r.prototype.setImageStyle=function(e,t){},r.prototype.setTextStyle=function(e,t){},r}(),O4=Vq,jq=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Kq=function(r){jq(e,r);function e(t,n,i,a){var o=r.call(this)||this;return o.tolerance=t,o.maxExtent=n,o.pixelRatio=a,o.maxLineWidth=0,o.resolution=i,o.beginGeometryInstruction1_=null,o.beginGeometryInstruction2_=null,o.bufferedMaxExtent_=null,o.instructions=[],o.coordinates=[],o.tmpCoordinate_=[],o.hitDetectionInstructions=[],o.state={},o}return e.prototype.applyPixelRatio=function(t){var n=this.pixelRatio;return n==1?t:t.map(function(i){return i*n})},e.prototype.appendFlatPointCoordinates=function(t,n){for(var i=this.getBufferedMaxExtent(),a=this.tmpCoordinate_,o=this.coordinates,s=o.length,A=0,l=t.length;A<l;A+=n)a[0]=t[A],a[1]=t[A+1],fA(i,a)&&(o[s++]=a[0],o[s++]=a[1]);return s},e.prototype.appendFlatLineCoordinates=function(t,n,i,a,o,s){var A=this.coordinates,l=A.length,u=this.getBufferedMaxExtent();s&&(n+=a);var c=t[n],h=t[n+1],f=this.tmpCoordinate_,p=!0,v,m,g;for(v=n+a;v<i;v+=a)f[0]=t[v],f[1]=t[v+1],g=k1(u,f),g!==m?(p&&(A[l++]=c,A[l++]=h,p=!1),A[l++]=f[0],A[l++]=f[1]):g===na.INTERSECTING?(A[l++]=f[0],A[l++]=f[1],p=!1):p=!0,c=f[0],h=f[1],m=g;return(o&&p||v===n+a)&&(A[l++]=c,A[l++]=h),l},e.prototype.drawCustomCoordinates_=function(t,n,i,a,o){for(var s=0,A=i.length;s<A;++s){var l=i[s],u=this.appendFlatLineCoordinates(t,n,l,a,!1,!1);o.push(u),n=l}return n},e.prototype.drawCustom=function(t,n,i,a){this.beginGeometry(t,n);var o=t.getType(),s=t.getStride(),A=this.coordinates.length,l,u,c,h,f;switch(o){case dt.MULTI_POLYGON:l=t.getOrientedFlatCoordinates(),h=[];var p=t.getEndss();f=0;for(var v=0,m=p.length;v<m;++v){var g=[];f=this.drawCustomCoordinates_(l,f,p[v],s,g),h.push(g)}this.instructions.push([We.CUSTOM,A,h,t,i,eS]),this.hitDetectionInstructions.push([We.CUSTOM,A,h,t,a||i,eS]);break;case dt.POLYGON:case dt.MULTI_LINE_STRING:c=[],l=o==dt.POLYGON?t.getOrientedFlatCoordinates():t.getFlatCoordinates(),f=this.drawCustomCoordinates_(l,0,t.getEnds(),s,c),this.instructions.push([We.CUSTOM,A,c,t,i,oy]),this.hitDetectionInstructions.push([We.CUSTOM,A,c,t,a||i,oy]);break;case dt.LINE_STRING:case dt.CIRCLE:l=t.getFlatCoordinates(),u=this.appendFlatLineCoordinates(l,0,l.length,s,!1,!1),this.instructions.push([We.CUSTOM,A,u,t,i,ru]),this.hitDetectionInstructions.push([We.CUSTOM,A,u,t,a||i,ru]);break;case dt.MULTI_POINT:l=t.getFlatCoordinates(),u=this.appendFlatPointCoordinates(l,s),u>A&&(this.instructions.push([We.CUSTOM,A,u,t,i,ru]),this.hitDetectionInstructions.push([We.CUSTOM,A,u,t,a||i,ru]));break;case dt.POINT:l=t.getFlatCoordinates(),this.coordinates.push(l[0],l[1]),u=this.coordinates.length,this.instructions.push([We.CUSTOM,A,u,t,i]),this.hitDetectionInstructions.push([We.CUSTOM,A,u,t,a||i]);break}this.endGeometry(n)},e.prototype.beginGeometry=function(t,n){this.beginGeometryInstruction1_=[We.BEGIN_GEOMETRY,n,0,t],this.instructions.push(this.beginGeometryInstruction1_),this.beginGeometryInstruction2_=[We.BEGIN_GEOMETRY,n,0,t],this.hitDetectionInstructions.push(this.beginGeometryInstruction2_)},e.prototype.finish=function(){return{instructions:this.instructions,hitDetectionInstructions:this.hitDetectionInstructions,coordinates:this.coordinates}},e.prototype.reverseHitDetectionInstructions=function(){var t=this.hitDetectionInstructions;t.reverse();var n,i=t.length,a,o,s=-1;for(n=0;n<i;++n)a=t[n],o=a[0],o==We.END_GEOMETRY?s=n:o==We.BEGIN_GEOMETRY&&(a[2]=n,iY(this.hitDetectionInstructions,s,n),s=-1)},e.prototype.setFillStrokeStyle=function(t,n){var i=this.state;if(t){var a=t.getColor();i.fillStyle=JA(a||su)}else i.fillStyle=void 0;if(n){var o=n.getColor();i.strokeStyle=JA(o||ry);var s=n.getLineCap();i.lineCap=s!==void 0?s:j1;var A=n.getLineDash();i.lineDash=A?A.slice():Jm;var l=n.getLineDashOffset();i.lineDashOffset=l||ty;var u=n.getLineJoin();i.lineJoin=u!==void 0?u:nv;var c=n.getWidth();i.lineWidth=c!==void 0?c:iy;var h=n.getMiterLimit();i.miterLimit=h!==void 0?h:ey,i.lineWidth>this.maxLineWidth&&(this.maxLineWidth=i.lineWidth,this.bufferedMaxExtent_=null)}else i.strokeStyle=void 0,i.lineCap=void 0,i.lineDash=null,i.lineDashOffset=void 0,i.lineJoin=void 0,i.lineWidth=void 0,i.miterLimit=void 0},e.prototype.createFill=function(t){var n=t.fillStyle,i=[We.SET_FILL_STYLE,n];return typeof n!="string"&&i.push(!0),i},e.prototype.applyStroke=function(t){this.instructions.push(this.createStroke(t))},e.prototype.createStroke=function(t){return[We.SET_STROKE_STYLE,t.strokeStyle,t.lineWidth*this.pixelRatio,t.lineCap,t.lineJoin,t.miterLimit,this.applyPixelRatio(t.lineDash),t.lineDashOffset*this.pixelRatio]},e.prototype.updateFillStyle=function(t,n){var i=t.fillStyle;(typeof i!="string"||t.currentFillStyle!=i)&&(i!==void 0&&this.instructions.push(n.call(this,t)),t.currentFillStyle=i)},e.prototype.updateStrokeStyle=function(t,n){var i=t.strokeStyle,a=t.lineCap,o=t.lineDash,s=t.lineDashOffset,A=t.lineJoin,l=t.lineWidth,u=t.miterLimit;(t.currentStrokeStyle!=i||t.currentLineCap!=a||o!=t.currentLineDash&&!Cu(t.currentLineDash,o)||t.currentLineDashOffset!=s||t.currentLineJoin!=A||t.currentLineWidth!=l||t.currentMiterLimit!=u)&&(i!==void 0&&n.call(this,t),t.currentStrokeStyle=i,t.currentLineCap=a,t.currentLineDash=o,t.currentLineDashOffset=s,t.currentLineJoin=A,t.currentLineWidth=l,t.currentMiterLimit=u)},e.prototype.endGeometry=function(t){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;var n=[We.END_GEOMETRY,t];this.instructions.push(n),this.hitDetectionInstructions.push(n)},e.prototype.getBufferedMaxExtent=function(){if(!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=HL(this.maxExtent),this.maxLineWidth>0)){var t=this.resolution*(this.maxLineWidth+1)/2;go(this.bufferedMaxExtent_,t,this.bufferedMaxExtent_)}return this.bufferedMaxExtent_},e}(O4),Vy=Kq,Yq=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Wq=function(r){Yq(e,r);function e(t,n,i,a){var o=r.call(this,t,n,i,a)||this;return o.hitDetectionImage_=null,o.image_=null,o.imagePixelRatio_=void 0,o.anchorX_=void 0,o.anchorY_=void 0,o.height_=void 0,o.opacity_=void 0,o.originX_=void 0,o.originY_=void 0,o.rotateWithView_=void 0,o.rotation_=void 0,o.scale_=void 0,o.width_=void 0,o.declutterImageWithText_=void 0,o}return e.prototype.drawPoint=function(t,n){if(this.image_){this.beginGeometry(t,n);var i=t.getFlatCoordinates(),a=t.getStride(),o=this.coordinates.length,s=this.appendFlatPointCoordinates(i,a);this.instructions.push([We.DRAW_IMAGE,o,s,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterImageWithText_]),this.hitDetectionInstructions.push([We.DRAW_IMAGE,o,s,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterImageWithText_]),this.endGeometry(n)}},e.prototype.drawMultiPoint=function(t,n){if(this.image_){this.beginGeometry(t,n);var i=t.getFlatCoordinates(),a=t.getStride(),o=this.coordinates.length,s=this.appendFlatPointCoordinates(i,a);this.instructions.push([We.DRAW_IMAGE,o,s,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterImageWithText_]),this.hitDetectionInstructions.push([We.DRAW_IMAGE,o,s,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterImageWithText_]),this.endGeometry(n)}},e.prototype.finish=function(){return this.reverseHitDetectionInstructions(),this.anchorX_=void 0,this.anchorY_=void 0,this.hitDetectionImage_=null,this.image_=null,this.imagePixelRatio_=void 0,this.height_=void 0,this.scale_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.width_=void 0,r.prototype.finish.call(this)},e.prototype.setImageStyle=function(t,n){var i=t.getAnchor(),a=t.getSize(),o=t.getHitDetectionImage(),s=t.getImage(this.pixelRatio),A=t.getOrigin();this.imagePixelRatio_=t.getPixelRatio(this.pixelRatio),this.anchorX_=i[0],this.anchorY_=i[1],this.hitDetectionImage_=o,this.image_=s,this.height_=a[1],this.opacity_=t.getOpacity(),this.originX_=A[0]*this.imagePixelRatio_,this.originY_=A[1]*this.imagePixelRatio_,this.rotateWithView_=t.getRotateWithView(),this.rotation_=t.getRotation(),this.scale_=t.getScaleArray(),this.width_=a[0],this.declutterImageWithText_=n},e}(Vy),zq=Wq,Xq=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),qq=function(r){Xq(e,r);function e(t,n,i,a){return r.call(this,t,n,i,a)||this}return e.prototype.drawFlatCoordinates_=function(t,n,i,a){var o=this.coordinates.length,s=this.appendFlatLineCoordinates(t,n,i,a,!1,!1),A=[We.MOVE_TO_LINE_TO,o,s];return this.instructions.push(A),this.hitDetectionInstructions.push(A),i},e.prototype.drawLineString=function(t,n){var i=this.state,a=i.strokeStyle,o=i.lineWidth;if(!(a===void 0||o===void 0)){this.updateStrokeStyle(i,this.applyStroke),this.beginGeometry(t,n),this.hitDetectionInstructions.push([We.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,Jm,ty],lf);var s=t.getFlatCoordinates(),A=t.getStride();this.drawFlatCoordinates_(s,0,s.length,A),this.hitDetectionInstructions.push(wc),this.endGeometry(n)}},e.prototype.drawMultiLineString=function(t,n){var i=this.state,a=i.strokeStyle,o=i.lineWidth;if(!(a===void 0||o===void 0)){this.updateStrokeStyle(i,this.applyStroke),this.beginGeometry(t,n),this.hitDetectionInstructions.push([We.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,i.lineDash,i.lineDashOffset],lf);for(var s=t.getEnds(),A=t.getFlatCoordinates(),l=t.getStride(),u=0,c=0,h=s.length;c<h;++c)u=this.drawFlatCoordinates_(A,u,s[c],l);this.hitDetectionInstructions.push(wc),this.endGeometry(n)}},e.prototype.finish=function(){var t=this.state;return t.lastStroke!=null&&t.lastStroke!=this.coordinates.length&&this.instructions.push(wc),this.reverseHitDetectionInstructions(),this.state=null,r.prototype.finish.call(this)},e.prototype.applyStroke=function(t){t.lastStroke!=null&&t.lastStroke!=this.coordinates.length&&(this.instructions.push(wc),t.lastStroke=this.coordinates.length),t.lastStroke=0,r.prototype.applyStroke.call(this,t),this.instructions.push(lf)},e}(Vy),Zq=qq,Jq=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),t3=function(r){Jq(e,r);function e(t,n,i,a){return r.call(this,t,n,i,a)||this}return e.prototype.drawFlatCoordinatess_=function(t,n,i,a){var o=this.state,s=o.fillStyle!==void 0,A=o.strokeStyle!==void 0,l=i.length;this.instructions.push(lf),this.hitDetectionInstructions.push(lf);for(var u=0;u<l;++u){var c=i[u],h=this.coordinates.length,f=this.appendFlatLineCoordinates(t,n,c,a,!0,!A),p=[We.MOVE_TO_LINE_TO,h,f];this.instructions.push(p),this.hitDetectionInstructions.push(p),A&&(this.instructions.push(AN),this.hitDetectionInstructions.push(AN)),n=c}return s&&(this.instructions.push(t_),this.hitDetectionInstructions.push(t_)),A&&(this.instructions.push(wc),this.hitDetectionInstructions.push(wc)),n},e.prototype.drawCircle=function(t,n){var i=this.state,a=i.fillStyle,o=i.strokeStyle;if(!(a===void 0&&o===void 0)){this.setFillStrokeStyles_(),this.beginGeometry(t,n),i.fillStyle!==void 0&&this.hitDetectionInstructions.push([We.SET_FILL_STYLE,su]),i.strokeStyle!==void 0&&this.hitDetectionInstructions.push([We.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,i.lineDash,i.lineDashOffset]);var s=t.getFlatCoordinates(),A=t.getStride(),l=this.coordinates.length;this.appendFlatLineCoordinates(s,0,s.length,A,!1,!1);var u=[We.CIRCLE,l];this.instructions.push(lf,u),this.hitDetectionInstructions.push(lf,u),i.fillStyle!==void 0&&(this.instructions.push(t_),this.hitDetectionInstructions.push(t_)),i.strokeStyle!==void 0&&(this.instructions.push(wc),this.hitDetectionInstructions.push(wc)),this.endGeometry(n)}},e.prototype.drawPolygon=function(t,n){var i=this.state,a=i.fillStyle,o=i.strokeStyle;if(!(a===void 0&&o===void 0)){this.setFillStrokeStyles_(),this.beginGeometry(t,n),i.fillStyle!==void 0&&this.hitDetectionInstructions.push([We.SET_FILL_STYLE,su]),i.strokeStyle!==void 0&&this.hitDetectionInstructions.push([We.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,i.lineDash,i.lineDashOffset]);var s=t.getEnds(),A=t.getOrientedFlatCoordinates(),l=t.getStride();this.drawFlatCoordinatess_(A,0,s,l),this.endGeometry(n)}},e.prototype.drawMultiPolygon=function(t,n){var i=this.state,a=i.fillStyle,o=i.strokeStyle;if(!(a===void 0&&o===void 0)){this.setFillStrokeStyles_(),this.beginGeometry(t,n),i.fillStyle!==void 0&&this.hitDetectionInstructions.push([We.SET_FILL_STYLE,su]),i.strokeStyle!==void 0&&this.hitDetectionInstructions.push([We.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,i.lineDash,i.lineDashOffset]);for(var s=t.getEndss(),A=t.getOrientedFlatCoordinates(),l=t.getStride(),u=0,c=0,h=s.length;c<h;++c)u=this.drawFlatCoordinatess_(A,u,s[c],l);this.endGeometry(n)}},e.prototype.finish=function(){this.reverseHitDetectionInstructions(),this.state=null;var t=this.tolerance;if(t!==0)for(var n=this.coordinates,i=0,a=n.length;i<a;++i)n[i]=qh(n[i],t);return r.prototype.finish.call(this)},e.prototype.setFillStrokeStyles_=function(){var t=this.state,n=t.fillStyle;n!==void 0&&this.updateFillStyle(t,this.createFill),t.strokeStyle!==void 0&&this.updateStrokeStyle(t,this.applyStroke)},e}(Vy),lN=t3,R4={POINT:"point",LINE:"line"};function e3(r,e,t,n,i){var a=t,o=t,s=0,A=0,l=t,u,c,h,f,p,v,m,g,_,w;for(c=t;c<n;c+=i){var C=e[c],F=e[c+1];p!==void 0&&(_=C-p,w=F-v,f=Math.sqrt(_*_+w*w),m!==void 0&&(A+=h,u=Math.acos((m*_+g*w)/(h*f)),u>r&&(A>s&&(s=A,a=l,o=c),A=0,l=c-i)),h=f,m=_,g=w),p=C,v=F}return A+=f,A>s?[l,c]:[a,o]}var r3=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),ew={left:0,end:0,center:.5,right:1,start:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1},n3=function(r){r3(e,r);function e(t,n,i,a){var o=r.call(this,t,n,i,a)||this;return o.labels_=null,o.text_="",o.textOffsetX_=0,o.textOffsetY_=0,o.textRotateWithView_=void 0,o.textRotation_=0,o.textFillState_=null,o.fillStates={},o.textStrokeState_=null,o.strokeStates={},o.textState_={},o.textStates={},o.textKey_="",o.fillKey_="",o.strokeKey_="",o.declutterImageWithText_=void 0,o}return e.prototype.finish=function(){var t=r.prototype.finish.call(this);return t.textStates=this.textStates,t.fillStates=this.fillStates,t.strokeStates=this.strokeStates,t},e.prototype.drawText=function(t,n){var i=this.textFillState_,a=this.textStrokeState_,o=this.textState_;if(!(this.text_===""||!o||!i&&!a)){var s=this.coordinates,A=s.length,l=t.getType(),u=null,c=t.getStride();if(o.placement===R4.LINE&&(l==dt.LINE_STRING||l==dt.MULTI_LINE_STRING||l==dt.POLYGON||l==dt.MULTI_POLYGON)){if(!Wn(this.getBufferedMaxExtent(),t.getExtent()))return;var h=void 0;if(u=t.getFlatCoordinates(),l==dt.LINE_STRING)h=[u.length];else if(l==dt.MULTI_LINE_STRING)h=t.getEnds();else if(l==dt.POLYGON)h=t.getEnds().slice(0,1);else if(l==dt.MULTI_POLYGON){var f=t.getEndss();h=[];for(var p=0,v=f.length;p<v;++p)h.push(f[p][0])}this.beginGeometry(t,n);for(var m=o.textAlign,g=0,_=void 0,w=0,C=h.length;w<C;++w){if(m==null){var F=e3(o.maxAngle,u,g,h[w],c);g=F[0],_=F[1]}else _=h[w];for(var p=g;p<_;p+=c)s.push(u[p],u[p+1]);var O=s.length;g=h[w],this.drawChars_(A,O),A=O}this.endGeometry(n)}else{var I=o.overflow?null:[];switch(l){case dt.POINT:case dt.MULTI_POINT:u=t.getFlatCoordinates();break;case dt.LINE_STRING:u=t.getFlatMidpoint();break;case dt.CIRCLE:u=t.getCenter();break;case dt.MULTI_LINE_STRING:u=t.getFlatMidpoints(),c=2;break;case dt.POLYGON:u=t.getFlatInteriorPoint(),o.overflow||I.push(u[2]/this.resolution),c=3;break;case dt.MULTI_POLYGON:var b=t.getFlatInteriorPoints();u=[];for(var p=0,v=b.length;p<v;p+=3)o.overflow||I.push(b[p+2]/this.resolution),u.push(b[p],b[p+1]);if(u.length===0)return;c=2;break}var O=this.appendFlatPointCoordinates(u,c);if(O===A)return;if(I&&(O-A)/2!==u.length/c){var L=A/2;I=I.filter(function(nt,At){var ct=s[(L+At)*2]===u[At*c]&&s[(L+At)*2+1]===u[At*c+1];return ct||--L,ct})}this.saveTextStates_(),(o.backgroundFill||o.backgroundStroke)&&(this.setFillStrokeStyle(o.backgroundFill,o.backgroundStroke),o.backgroundFill&&(this.updateFillStyle(this.state,this.createFill),this.hitDetectionInstructions.push(this.createFill(this.state))),o.backgroundStroke&&(this.updateStrokeStyle(this.state,this.applyStroke),this.hitDetectionInstructions.push(this.createStroke(this.state)))),this.beginGeometry(t,n);var N=o.padding;if(N!=sf&&(o.scale[0]<0||o.scale[1]<0)){var x=o.padding[0],S=o.padding[1],P=o.padding[2],U=o.padding[3];o.scale[0]<0&&(S=-S,U=-U),o.scale[1]<0&&(x=-x,P=-P),N=[x,S,P,U]}var tt=this.pixelRatio;this.instructions.push([We.DRAW_IMAGE,A,O,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[1,1],NaN,this.declutterImageWithText_,N==sf?sf:N.map(function(nt){return nt*tt}),!!o.backgroundFill,!!o.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,I]);var q=1/tt;this.hitDetectionInstructions.push([We.DRAW_IMAGE,A,O,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[q,q],NaN,this.declutterImageWithText_,N,!!o.backgroundFill,!!o.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,I]),this.endGeometry(n)}}},e.prototype.saveTextStates_=function(){var t=this.textStrokeState_,n=this.textState_,i=this.textFillState_,a=this.strokeKey_;t&&(a in this.strokeStates||(this.strokeStates[a]={strokeStyle:t.strokeStyle,lineCap:t.lineCap,lineDashOffset:t.lineDashOffset,lineWidth:t.lineWidth,lineJoin:t.lineJoin,miterLimit:t.miterLimit,lineDash:t.lineDash}));var o=this.textKey_;o in this.textStates||(this.textStates[o]={font:n.font,textAlign:n.textAlign||ny,textBaseline:n.textBaseline||K1,scale:n.scale});var s=this.fillKey_;i&&(s in this.fillStates||(this.fillStates[s]={fillStyle:i.fillStyle}))},e.prototype.drawChars_=function(t,n){var i=this.textStrokeState_,a=this.textState_,o=this.strokeKey_,s=this.textKey_,A=this.fillKey_;this.saveTextStates_();var l=this.pixelRatio,u=ew[a.textBaseline],c=this.textOffsetY_*l,h=this.text_,f=i?i.lineWidth*Math.abs(a.scale[0])/2:0;this.instructions.push([We.DRAW_CHARS,t,n,u,a.overflow,A,a.maxAngle,l,c,o,f*l,h,s,1]),this.hitDetectionInstructions.push([We.DRAW_CHARS,t,n,u,a.overflow,A,a.maxAngle,1,c,o,f,h,s,1/l])},e.prototype.setTextStyle=function(t,n){var i,a,o;if(!t)this.text_="";else{var s=t.getFill();s?(a=this.textFillState_,a||(a={},this.textFillState_=a),a.fillStyle=JA(s.getColor()||su)):(a=null,this.textFillState_=a);var A=t.getStroke();if(!A)o=null,this.textStrokeState_=o;else{o=this.textStrokeState_,o||(o={},this.textStrokeState_=o);var l=A.getLineDash(),u=A.getLineDashOffset(),c=A.getWidth(),h=A.getMiterLimit();o.lineCap=A.getLineCap()||j1,o.lineDash=l?l.slice():Jm,o.lineDashOffset=u===void 0?ty:u,o.lineJoin=A.getLineJoin()||nv,o.lineWidth=c===void 0?iy:c,o.miterLimit=h===void 0?ey:h,o.strokeStyle=JA(A.getColor()||ry)}i=this.textState_;var f=t.getFont()||W6;aW(f);var p=t.getScaleArray();i.overflow=t.getOverflow(),i.font=f,i.maxAngle=t.getMaxAngle(),i.placement=t.getPlacement(),i.textAlign=t.getTextAlign(),i.textBaseline=t.getTextBaseline()||K1,i.backgroundFill=t.getBackgroundFill(),i.backgroundStroke=t.getBackgroundStroke(),i.padding=t.getPadding()||sf,i.scale=p===void 0?[1,1]:p;var v=t.getOffsetX(),m=t.getOffsetY(),g=t.getRotateWithView(),_=t.getRotation();this.text_=t.getText()||"",this.textOffsetX_=v===void 0?0:v,this.textOffsetY_=m===void 0?0:m,this.textRotateWithView_=g===void 0?!1:g,this.textRotation_=_===void 0?0:_,this.strokeKey_=o?(typeof o.strokeStyle=="string"?o.strokeStyle:Ee(o.strokeStyle))+o.lineCap+o.lineDashOffset+"|"+o.lineWidth+o.lineJoin+o.miterLimit+"["+o.lineDash.join()+"]":"",this.textKey_=i.font+i.scale+(i.textAlign||"?")+(i.textBaseline||"?"),this.fillKey_=a?typeof a.fillStyle=="string"?a.fillStyle:"|"+Ee(a.fillStyle):""}this.declutterImageWithText_=n},e}(Vy),i3=n3,a3={Circle:lN,Default:Vy,Image:zq,LineString:Zq,Polygon:lN,Text:i3},o3=function(){function r(e,t,n,i){this.tolerance_=e,this.maxExtent_=t,this.pixelRatio_=i,this.resolution_=n,this.buildersByZIndex_={}}return r.prototype.finish=function(){var e={};for(var t in this.buildersByZIndex_){e[t]=e[t]||{};var n=this.buildersByZIndex_[t];for(var i in n){var a=n[i].finish();e[t][i]=a}}return e},r.prototype.getBuilder=function(e,t){var n=e!==void 0?e.toString():"0",i=this.buildersByZIndex_[n];i===void 0&&(i={},this.buildersByZIndex_[n]=i);var a=i[t];if(a===void 0){var o=a3[t];a=new o(this.tolerance_,this.maxExtent_,this.resolution_,this.pixelRatio_),i[t]=a}return a},r}(),rw=o3,s3=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),A3=function(r){s3(e,r);function e(t){var n=r.call(this)||this;return n.ready=!0,n.boundHandleImageChange_=n.handleImageChange_.bind(n),n.layer_=t,n.declutterExecutorGroup=null,n}return e.prototype.getFeatures=function(t){return Re()},e.prototype.getData=function(t){return null},e.prototype.prepareFrame=function(t){return Re()},e.prototype.renderFrame=function(t,n){return Re()},e.prototype.loadedTileCallback=function(t,n,i){t[n]||(t[n]={}),t[n][i.tileCoord.toString()]=i},e.prototype.createLoadedTileFinder=function(t,n,i){return function(a,o){var s=this.loadedTileCallback.bind(this,i,a);return t.forEachLoadedTile(n,a,o,s)}.bind(this)},e.prototype.forEachFeatureAtCoordinate=function(t,n,i,a,o){},e.prototype.getDataAtPixel=function(t,n,i){return null},e.prototype.getLayer=function(){return this.layer_},e.prototype.handleFontsChanged=function(){},e.prototype.handleImageChange_=function(t){var n=t.target;n.getState()===er.LOADED&&this.renderIfReadyAndVisible()},e.prototype.loadImage=function(t){var n=t.getState();return n!=er.LOADED&&n!=er.ERROR&&t.addEventListener(xe.CHANGE,this.boundHandleImageChange_),n==er.IDLE&&(t.load(),n=t.getState()),n==er.LOADED},e.prototype.renderIfReadyAndVisible=function(){var t=this.getLayer();t.getVisible()&&t.getSourceState()==Ao.READY&&t.changed()},e.prototype.disposeInternal=function(){delete this.layer_,r.prototype.disposeInternal.call(this)},e}(Uy),M4=A3,l3=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),em=null;function u3(){var r=document.createElement("canvas");r.width=1,r.height=1,em=r.getContext("2d")}var c3=function(r){l3(e,r);function e(t){var n=r.call(this,t)||this;return n.container=null,n.renderedResolution,n.tempTransform=Ti(),n.pixelTransform=Ti(),n.inversePixelTransform=Ti(),n.context=null,n.containerReused=!1,n.pixelContext_=null,n.frameState=null,n}return e.prototype.getImageData=function(t,n,i){em||u3(),em.clearRect(0,0,1,1);var a;try{em.drawImage(t,n,i,1,1,0,0,1,1),a=em.getImageData(0,0,1,1).data}catch{return null}return a},e.prototype.getBackground=function(t){var n=this.getLayer(),i=n.getBackground();return typeof i=="function"&&(i=i(t.viewState.resolution)),i||void 0},e.prototype.useContainer=function(t,n,i,a){var o=this.getLayer().getClassName(),s,A;if(t&&t.className===o&&t.style.opacity===""&&i===1&&(!a||t.style.backgroundColor&&Cu(Yc(t.style.backgroundColor),Yc(a)))){var l=t.firstElementChild;l instanceof HTMLCanvasElement&&(A=l.getContext("2d"))}if(A&&A.canvas.style.transform===n?(this.container=t,this.context=A,this.containerReused=!0):this.containerReused&&(this.container=null,this.context=null,this.containerReused=!1),!this.container){s=document.createElement("div"),s.className=o;var u=s.style;u.position="absolute",u.width="100%",u.height="100%",a&&(u.backgroundColor=a),A=mo();var l=A.canvas;s.appendChild(l),u=l.style,u.position="absolute",u.left="0",u.transformOrigin="top left",this.container=s,this.context=A}},e.prototype.clipUnrotated=function(t,n,i){var a=_A(i),o=Py(i),s=Sv(i),A=Ny(i);Bn(n.coordinateToPixelTransform,a),Bn(n.coordinateToPixelTransform,o),Bn(n.coordinateToPixelTransform,s),Bn(n.coordinateToPixelTransform,A);var l=this.inversePixelTransform;Bn(l,a),Bn(l,o),Bn(l,s),Bn(l,A),t.save(),t.beginPath(),t.moveTo(Math.round(a[0]),Math.round(a[1])),t.lineTo(Math.round(o[0]),Math.round(o[1])),t.lineTo(Math.round(s[0]),Math.round(s[1])),t.lineTo(Math.round(A[0]),Math.round(A[1])),t.clip()},e.prototype.dispatchRenderEvent_=function(t,n,i){var a=this.getLayer();if(a.hasListener(t)){var o=new Bm(t,this.inversePixelTransform,i,n);a.dispatchEvent(o)}},e.prototype.preRender=function(t,n){this.frameState=n,this.dispatchRenderEvent_(Oo.PRERENDER,t,n)},e.prototype.postRender=function(t,n){this.dispatchRenderEvent_(Oo.POSTRENDER,t,n)},e.prototype.getRenderTransform=function(t,n,i,a,o,s,A){var l=o/2,u=s/2,c=a/n,h=-c,f=-t[0]+A,p=-t[1];return vo(this.tempTransform,l,u,c,h,-i,f,p)},e.prototype.getDataAtPixel=function(t,n,i){var a=Bn(this.inversePixelTransform,t.slice()),o=this.context,s=this.getLayer(),A=s.getExtent();if(A){var l=Bn(n.pixelToCoordinateTransform,t.slice());if(!fA(A,l))return null}var u=Math.round(a[0]),c=Math.round(a[1]),h=this.pixelContext_;if(!h){var f=document.createElement("canvas");f.width=1,f.height=1,h=f.getContext("2d"),this.pixelContext_=h}h.clearRect(0,0,1,1);var p;try{h.drawImage(o.canvas,u,c,1,1,0,0,1,1),p=h.getImageData(0,0,1,1).data}catch(v){return v.name==="SecurityError"?(this.pixelContext_=null,new Uint8Array):p}return p[3]===0?null:p},e.prototype.disposeInternal=function(){delete this.frameState,r.prototype.disposeInternal.call(this)},e}(M4),EF=c3,wr={CIRCLE:"Circle",DEFAULT:"Default",IMAGE:"Image",LINE_STRING:"LineString",POLYGON:"Polygon",TEXT:"Text"};function h3(r,e,t,n,i,a,o,s,A,l,u,c){var h=r[e],f=r[e+1],p=0,v=0,m=0,g=0;function _(){p=h,v=f,e+=n,h=r[e],f=r[e+1],g+=m,m=Math.sqrt((h-p)*(h-p)+(f-v)*(f-v))}do _();while(e<t-n&&g+m<a);for(var w=m===0?0:(a-g)/m,C=Jl(p,h,w),F=Jl(v,f,w),O=e-n,I=g,b=a+s*A(l,i,u);e<t-n&&g+m<b;)_();w=m===0?0:(b-g)/m;var L=Jl(p,h,w),N=Jl(v,f,w),x;if(c){var S=[C,F,L,N];aF(S,0,4,2,c,S,S),x=S[0]>S[2]}else x=C>L;var P=Math.PI,U=[],tt=O+n===e;e=O,m=0,g=I,h=r[e],f=r[e+1];var q;if(tt){_(),q=Math.atan2(f-v,h-p),x&&(q+=q>0?-P:P);var rt=(L+C)/2,nt=(N+F)/2;return U[0]=[rt,nt,(b-a)/2,q,i],U}for(var At=0,ct=i.length;At<ct;){_();var bt=Math.atan2(f-v,h-p);if(x&&(bt+=bt>0?-P:P),q!==void 0){var M=bt-q;if(M+=M>P?-2*P:M<-P?2*P:0,Math.abs(M)>o)return null}q=bt;for(var Y=At,z=0;At<ct;++At){var H=x?ct-At-1:At,J=s*A(l,i[H],u);if(e+n<t&&g+m<a+z+J/2)break;z+=J}if(At!==Y){var ot=x?i.substring(ct-Y,ct-At):i.substring(Y,At);w=m===0?0:(a+z/2-g)/m;var rt=Jl(p,h,w),nt=Jl(v,f,w);U.push([rt,nt,z/2,bt,ot]),a+=z}}return U}var Yp=Ni(),rc=[],Ul=[],Dl=[],nc=[];function uN(r){return r[3].declutterBox}var f3=new RegExp("["+String.fromCharCode(1425)+"-"+String.fromCharCode(2303)+String.fromCharCode(64285)+"-"+String.fromCharCode(65023)+String.fromCharCode(65136)+"-"+String.fromCharCode(65276)+String.fromCharCode(67584)+"-"+String.fromCharCode(69631)+String.fromCharCode(124928)+"-"+String.fromCharCode(126975)+"]");function cN(r,e){return(e==="start"||e==="end")&&!f3.test(r)&&(e=e==="start"?"left":"right"),ew[e]}function p3(r,e,t){return t>0&&r.push(`
|
||
`,""),r.push(e,""),r}var d3=function(){function r(e,t,n,i){this.overlaps=n,this.pixelRatio=t,this.resolution=e,this.alignFill_,this.instructions=i.instructions,this.coordinates=i.coordinates,this.coordinateCache_={},this.renderedTransform_=Ti(),this.hitDetectionInstructions=i.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=i.fillStates||{},this.strokeStates=i.strokeStates||{},this.textStates=i.textStates||{},this.widths_={},this.labels_={}}return r.prototype.createLabel=function(e,t,n,i){var a=e+t+n+i;if(this.labels_[a])return this.labels_[a];var o=i?this.strokeStates[i]:null,s=n?this.fillStates[n]:null,A=this.textStates[t],l=this.pixelRatio,u=[A.scale[0]*l,A.scale[1]*l],c=Array.isArray(e),h=cN(c?e[0]:e,A.textAlign||ny),f=i&&o.lineWidth?o.lineWidth:0,p=c?e:e.split(`
|
||
`).reduce(p3,[]),v=sW(A,p),m=v.width,g=v.height,_=v.widths,w=v.heights,C=v.lineWidths,F=m+f,O=[],I=(F+2)*u[0],b=(g+f)*u[1],L={width:I<0?Math.floor(I):Math.ceil(I),height:b<0?Math.floor(b):Math.ceil(b),contextInstructions:O};if((u[0]!=1||u[1]!=1)&&O.push("scale",u),i){O.push("strokeStyle",o.strokeStyle),O.push("lineWidth",f),O.push("lineCap",o.lineCap),O.push("lineJoin",o.lineJoin),O.push("miterLimit",o.miterLimit);var N=wE?OffscreenCanvasRenderingContext2D:CanvasRenderingContext2D;N.prototype.setLineDash&&(O.push("setLineDash",[o.lineDash]),O.push("lineDashOffset",o.lineDashOffset))}n&&O.push("fillStyle",s.fillStyle),O.push("textBaseline","middle"),O.push("textAlign","center");for(var x=.5-h,S=h*F+x*f,P=[],U=[],tt=0,q=0,rt=0,nt=0,At,ct=0,bt=p.length;ct<bt;ct+=2){var M=p[ct];if(M===`
|
||
`){q+=tt,tt=0,S=h*F+x*f,++nt;continue}var Y=p[ct+1]||A.font;Y!==At&&(i&&P.push("font",Y),n&&U.push("font",Y),At=Y),tt=Math.max(tt,w[rt]);var z=[M,S+x*_[rt]+h*(_[rt]-C[nt]),.5*(f+tt)+q];S+=_[rt],i&&P.push("strokeText",z),n&&U.push("fillText",z),++rt}return Array.prototype.push.apply(O,P),Array.prototype.push.apply(O,U),this.labels_[a]=L,L},r.prototype.replayTextBackground_=function(e,t,n,i,a,o,s){e.beginPath(),e.moveTo.apply(e,t),e.lineTo.apply(e,n),e.lineTo.apply(e,i),e.lineTo.apply(e,a),e.lineTo.apply(e,t),o&&(this.alignFill_=o[2],this.fill_(e)),s&&(this.setStrokeStyle_(e,s),e.stroke())},r.prototype.calculateImageOrLabelDimensions_=function(e,t,n,i,a,o,s,A,l,u,c,h,f,p,v,m){s*=h[0],A*=h[1];var g=n-s,_=i-A,w=a+l>e?e-l:a,C=o+u>t?t-u:o,F=p[3]+w*h[0]+p[1],O=p[0]+C*h[1]+p[2],I=g-p[3],b=_-p[0];(v||c!==0)&&(rc[0]=I,nc[0]=I,rc[1]=b,Ul[1]=b,Ul[0]=I+F,Dl[0]=Ul[0],Dl[1]=b+O,nc[1]=Dl[1]);var L;return c!==0?(L=vo(Ti(),n,i,1,1,c,-n,-i),Bn(L,rc),Bn(L,Ul),Bn(L,Dl),Bn(L,nc),Uo(Math.min(rc[0],Ul[0],Dl[0],nc[0]),Math.min(rc[1],Ul[1],Dl[1],nc[1]),Math.max(rc[0],Ul[0],Dl[0],nc[0]),Math.max(rc[1],Ul[1],Dl[1],nc[1]),Yp)):Uo(Math.min(I,I+F),Math.min(b,b+O),Math.max(I,I+F),Math.max(b,b+O),Yp),f&&(g=Math.round(g),_=Math.round(_)),{drawImageX:g,drawImageY:_,drawImageW:w,drawImageH:C,originX:l,originY:u,declutterBox:{minX:Yp[0],minY:Yp[1],maxX:Yp[2],maxY:Yp[3],value:m},canvasTransform:L,scale:h}},r.prototype.replayImageOrLabel_=function(e,t,n,i,a,o,s){var A=!!(o||s),l=i.declutterBox,u=e.canvas,c=s?s[2]*i.scale[0]/2:0,h=l.minX-c<=u.width/t&&l.maxX+c>=0&&l.minY-c<=u.height/t&&l.maxY+c>=0;return h&&(A&&this.replayTextBackground_(e,rc,Ul,Dl,nc,o,s),AW(e,i.canvasTransform,a,n,i.originX,i.originY,i.drawImageW,i.drawImageH,i.drawImageX,i.drawImageY,i.scale)),!0},r.prototype.fill_=function(e){if(this.alignFill_){var t=Bn(this.renderedTransform_,[0,0]),n=512*this.pixelRatio;e.save(),e.translate(t[0]%n,t[1]%n),e.rotate(this.viewRotation_)}e.fill(),this.alignFill_&&e.restore()},r.prototype.setStrokeStyle_=function(e,t){e.strokeStyle=t[1],e.lineWidth=t[2],e.lineCap=t[3],e.lineJoin=t[4],e.miterLimit=t[5],e.setLineDash&&(e.lineDashOffset=t[7],e.setLineDash(t[6]))},r.prototype.drawLabelWithPointPlacement_=function(e,t,n,i){var a=this.textStates[t],o=this.createLabel(e,t,i,n),s=this.strokeStates[n],A=this.pixelRatio,l=cN(Array.isArray(e)?e[0]:e,a.textAlign||ny),u=ew[a.textBaseline||K1],c=s&&s.lineWidth?s.lineWidth:0,h=o.width/A-2*a.scale[0],f=l*h+2*(.5-l)*c,p=u*o.height/A+2*(.5-u)*c;return{label:o,anchorX:f,anchorY:p}},r.prototype.execute_=function(e,t,n,i,a,o,s,A){var l;this.pixelCoordinates_&&Cu(n,this.renderedTransform_)?l=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),l=Mc(this.coordinates,0,this.coordinates.length,2,n,this.pixelCoordinates_),dY(this.renderedTransform_,n));for(var u=0,c=i.length,h=0,f,p,v,m,g,_,w,C,F,O,I,b,L=0,N=0,x=null,S=null,P=this.coordinateCache_,U=this.viewRotation_,tt=Math.round(Math.atan2(-n[1],n[0])*1e12)/1e12,q={context:e,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:U},rt=this.instructions!=i||this.overlaps?0:200,nt,At,ct,bt;u<c;){var M=i[u],Y=M[0];switch(Y){case We.BEGIN_GEOMETRY:nt=M[1],bt=M[3],nt.getGeometry()?s!==void 0&&!Wn(s,bt.getExtent())?u=M[2]+1:++u:u=M[2];break;case We.BEGIN_PATH:L>rt&&(this.fill_(e),L=0),N>rt&&(e.stroke(),N=0),!L&&!N&&(e.beginPath(),m=NaN,g=NaN),++u;break;case We.CIRCLE:h=M[1];var z=l[h],H=l[h+1],J=l[h+2],ot=l[h+3],ut=J-z,X=ot-H,It=Math.sqrt(ut*ut+X*X);e.moveTo(z+It,H),e.arc(z,H,It,0,2*Math.PI,!0),++u;break;case We.CLOSE_PATH:e.closePath(),++u;break;case We.CUSTOM:h=M[1],f=M[2];var at=M[3],j=M[4],Z=M.length==6?M[5]:void 0;q.geometry=at,q.feature=nt,u in P||(P[u]=[]);var ft=P[u];Z?Z(l,h,f,2,ft):(ft[0]=l[h],ft[1]=l[h+1],ft.length=2),j(ft,q),++u;break;case We.DRAW_IMAGE:h=M[1],f=M[2],C=M[3],p=M[4],v=M[5];var it=M[6],V=M[7],Ot=M[8],Mt=M[9],Et=M[10],Bt=M[11],Ct=M[12],Rt=M[13],Nt=M[14];if(!C&&M.length>=19){F=M[18],O=M[19],I=M[20],b=M[21];var Dt=this.drawLabelWithPointPlacement_(F,O,I,b);C=Dt.label,M[3]=C;var Yt=M[22];p=(Dt.anchorX-Yt)*this.pixelRatio,M[4]=p;var te=M[23];v=(Dt.anchorY-te)*this.pixelRatio,M[5]=v,it=C.height,M[6]=it,Rt=C.width,M[13]=Rt}var Ae=void 0;M.length>24&&(Ae=M[24]);var oe=void 0,Jt=void 0,fe=void 0;M.length>16?(oe=M[15],Jt=M[16],fe=M[17]):(oe=sf,Jt=!1,fe=!1),Et&&tt?Bt+=U:!Et&&!tt&&(Bt-=U);for(var qt=0;h<f;h+=2)if(!(Ae&&Ae[qt++]<Rt/this.pixelRatio)){var rr=this.calculateImageOrLabelDimensions_(C.width,C.height,l[h],l[h+1],Rt,it,p,v,Ot,Mt,Bt,Ct,a,oe,Jt||fe,nt),ke=[e,t,C,rr,V,Jt?x:null,fe?S:null],_r=void 0,Ne=void 0;if(A&&Nt){var Pe=f-h;if(!Nt[Pe]){Nt[Pe]=ke;continue}if(_r=Nt[Pe],delete Nt[Pe],Ne=uN(_r),A.collides(Ne))continue}A&&A.collides(rr.declutterBox)||(_r&&(A&&A.insert(Ne),this.replayImageOrLabel_.apply(this,_r)),A&&A.insert(rr.declutterBox),this.replayImageOrLabel_.apply(this,ke))}++u;break;case We.DRAW_CHARS:var kr=M[1],se=M[2],ui=M[3],dr=M[4];b=M[5];var Jn=M[6],Kr=M[7],Yr=M[8];I=M[9];var He=M[10];F=M[11],O=M[12];var xr=[M[13],M[13]],kn=this.textStates[O],mn=kn.font,ci=[kn.scale[0]*Kr,kn.scale[1]*Kr],hi=void 0;mn in this.widths_?hi=this.widths_[mn]:(hi={},this.widths_[mn]=hi);var Ue=S4(l,kr,se,2),ti=Math.abs(ci[0])*QM(mn,F,hi);if(dr||ti<=Ue){var En=this.textStates[O].textAlign,fi=(Ue-ti)*ew[En],un=h3(l,kr,se,2,F,fi,Jn,Math.abs(ci[0]),QM,mn,hi,tt?0:this.viewRotation_);t:if(un){var Cr=[],yn=void 0,Za=void 0,pe=void 0,_t=void 0,$t=void 0;if(I)for(yn=0,Za=un.length;yn<Za;++yn){$t=un[yn],pe=$t[4],_t=this.createLabel(pe,O,"",I),p=$t[2]+(ci[0]<0?-He:He),v=ui*_t.height+(.5-ui)*2*He*ci[1]/ci[0]-Yr;var rr=this.calculateImageOrLabelDimensions_(_t.width,_t.height,$t[0],$t[1],_t.width,_t.height,p,v,0,0,$t[3],xr,!1,sf,!1,nt);if(A&&A.collides(rr.declutterBox))break t;Cr.push([e,t,_t,rr,1,null,null])}if(b)for(yn=0,Za=un.length;yn<Za;++yn){$t=un[yn],pe=$t[4],_t=this.createLabel(pe,O,b,""),p=$t[2],v=ui*_t.height-Yr;var rr=this.calculateImageOrLabelDimensions_(_t.width,_t.height,$t[0],$t[1],_t.width,_t.height,p,v,0,0,$t[3],xr,!1,sf,!1,nt);if(A&&A.collides(rr.declutterBox))break t;Cr.push([e,t,_t,rr,1,null,null])}A&&A.load(Cr.map(uN));for(var ne=0,Ze=Cr.length;ne<Ze;++ne)this.replayImageOrLabel_.apply(this,Cr[ne])}}++u;break;case We.END_GEOMETRY:if(o!==void 0){nt=M[1];var Ir=o(nt,bt);if(Ir)return Ir}++u;break;case We.FILL:rt?L++:this.fill_(e),++u;break;case We.MOVE_TO_LINE_TO:for(h=M[1],f=M[2],At=l[h],ct=l[h+1],_=At+.5|0,w=ct+.5|0,(_!==m||w!==g)&&(e.moveTo(At,ct),m=_,g=w),h+=2;h<f;h+=2)At=l[h],ct=l[h+1],_=At+.5|0,w=ct+.5|0,(h==f-2||_!==m||w!==g)&&(e.lineTo(At,ct),m=_,g=w);++u;break;case We.SET_FILL_STYLE:x=M,this.alignFill_=M[2],L&&(this.fill_(e),L=0,N&&(e.stroke(),N=0)),e.fillStyle=M[1],++u;break;case We.SET_STROKE_STYLE:S=M,N&&(e.stroke(),N=0),this.setStrokeStyle_(e,M),++u;break;case We.STROKE:rt?N++:e.stroke(),++u;break;default:++u;break}}L&&this.fill_(e),N&&e.stroke()},r.prototype.execute=function(e,t,n,i,a,o){this.viewRotation_=i,this.execute_(e,t,n,this.instructions,a,void 0,void 0,o)},r.prototype.executeHitDetection=function(e,t,n,i,a){return this.viewRotation_=n,this.execute_(e,1,t,this.hitDetectionInstructions,!0,i,a)},r}(),v3=d3,NB=[wr.POLYGON,wr.CIRCLE,wr.LINE_STRING,wr.IMAGE,wr.TEXT,wr.DEFAULT],g3=function(){function r(e,t,n,i,a,o){this.maxExtent_=e,this.overlaps_=i,this.pixelRatio_=n,this.resolution_=t,this.renderBuffer_=o,this.executorsByZIndex_={},this.hitDetectionContext_=null,this.hitDetectionTransform_=Ti(),this.createExecutors_(a)}return r.prototype.clip=function(e,t){var n=this.getClipCoords(t);e.beginPath(),e.moveTo(n[0],n[1]),e.lineTo(n[2],n[3]),e.lineTo(n[4],n[5]),e.lineTo(n[6],n[7]),e.clip()},r.prototype.createExecutors_=function(e){for(var t in e){var n=this.executorsByZIndex_[t];n===void 0&&(n={},this.executorsByZIndex_[t]=n);var i=e[t];for(var a in i){var o=i[a];n[a]=new v3(this.resolution_,this.pixelRatio_,this.overlaps_,o)}}},r.prototype.hasExecutors=function(e){for(var t in this.executorsByZIndex_)for(var n=this.executorsByZIndex_[t],i=0,a=e.length;i<a;++i)if(e[i]in n)return!0;return!1},r.prototype.forEachFeatureAtCoordinate=function(e,t,n,i,a,o){i=Math.round(i);var s=i*2+1,A=vo(this.hitDetectionTransform_,i+.5,i+.5,1/t,-1/t,-n,-e[0],-e[1]),l=!this.hitDetectionContext_;l&&(this.hitDetectionContext_=mo(s,s));var u=this.hitDetectionContext_;u.canvas.width!==s||u.canvas.height!==s?(u.canvas.width=s,u.canvas.height=s):l||u.clearRect(0,0,s,s);var c;this.renderBuffer_!==void 0&&(c=Ni(),yf(c,e),go(c,t*(this.renderBuffer_+i),c));var h=m3(i),f;function p(O,I){for(var b=u.getImageData(0,0,s,s).data,L=0,N=h.length;L<N;L++)if(b[h[L]]>0){if(!o||f!==wr.IMAGE&&f!==wr.TEXT||o.indexOf(O)!==-1){var x=(h[L]-3)/4,S=i-x%s,P=i-(x/s|0),U=a(O,I,S*S+P*P);if(U)return U}u.clearRect(0,0,s,s);break}}var v=Object.keys(this.executorsByZIndex_).map(Number);v.sort(Vc);var m,g,_,w,C;for(m=v.length-1;m>=0;--m){var F=v[m].toString();for(_=this.executorsByZIndex_[F],g=NB.length-1;g>=0;--g)if(f=NB[g],w=_[f],w!==void 0&&(C=w.executeHitDetection(u,A,n,p,c),C))return C}},r.prototype.getClipCoords=function(e){var t=this.maxExtent_;if(!t)return null;var n=t[0],i=t[1],a=t[2],o=t[3],s=[n,i,n,o,a,o,a,i];return Mc(s,0,8,2,e,s),s},r.prototype.isEmpty=function(){return Uf(this.executorsByZIndex_)},r.prototype.execute=function(e,t,n,i,a,o,s){var A=Object.keys(this.executorsByZIndex_).map(Number);A.sort(Vc),this.maxExtent_&&(e.save(),this.clip(e,n));var l=o||NB,u,c,h,f,p,v;for(s&&A.reverse(),u=0,c=A.length;u<c;++u){var m=A[u].toString();for(p=this.executorsByZIndex_[m],h=0,f=l.length;h<f;++h){var g=l[h];v=p[g],v!==void 0&&v.execute(e,t,n,i,a,s)}}this.maxExtent_&&e.restore()},r}(),PB={};function m3(r){if(PB[r]!==void 0)return PB[r];for(var e=r*2+1,t=r*r,n=new Array(t+1),i=0;i<=r;++i)for(var a=0;a<=r;++a){var o=i*i+a*a;if(o>t)break;var s=n[o];s||(s=[],n[o]=s),s.push(((r+i)*e+(r+a))*4+3),i>0&&s.push(((r-i)*e+(r+a))*4+3),a>0&&(s.push(((r+i)*e+(r-a))*4+3),i>0&&s.push(((r-i)*e+(r-a))*4+3))}for(var A=[],i=0,l=n.length;i<l;++i)n[i]&&A.push.apply(A,n[i]);return PB[r]=A,A}var nw=g3,y3=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),_3=function(r){y3(e,r);function e(t,n,i,a,o,s,A){var l=r.call(this)||this;return l.context_=t,l.pixelRatio_=n,l.extent_=i,l.transform_=a,l.viewRotation_=o,l.squaredTolerance_=s,l.userTransform_=A,l.contextFillState_=null,l.contextStrokeState_=null,l.contextTextState_=null,l.fillState_=null,l.strokeState_=null,l.image_=null,l.imageAnchorX_=0,l.imageAnchorY_=0,l.imageHeight_=0,l.imageOpacity_=0,l.imageOriginX_=0,l.imageOriginY_=0,l.imageRotateWithView_=!1,l.imageRotation_=0,l.imageScale_=[0,0],l.imageWidth_=0,l.text_="",l.textOffsetX_=0,l.textOffsetY_=0,l.textRotateWithView_=!1,l.textRotation_=0,l.textScale_=[0,0],l.textFillState_=null,l.textStrokeState_=null,l.textState_=null,l.pixelCoordinates_=[],l.tmpLocalTransform_=Ti(),l}return e.prototype.drawImages_=function(t,n,i,a){if(this.image_){var o=Mc(t,n,i,a,this.transform_,this.pixelCoordinates_),s=this.context_,A=this.tmpLocalTransform_,l=s.globalAlpha;this.imageOpacity_!=1&&(s.globalAlpha=l*this.imageOpacity_);var u=this.imageRotation_;this.imageRotateWithView_&&(u+=this.viewRotation_);for(var c=0,h=o.length;c<h;c+=2){var f=o[c]-this.imageAnchorX_,p=o[c+1]-this.imageAnchorY_;if(u!==0||this.imageScale_[0]!=1||this.imageScale_[1]!=1){var v=f+this.imageAnchorX_,m=p+this.imageAnchorY_;vo(A,v,m,1,1,u,-v,-m),s.setTransform.apply(s,A),s.translate(v,m),s.scale(this.imageScale_[0],this.imageScale_[1]),s.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,-this.imageAnchorX_,-this.imageAnchorY_,this.imageWidth_,this.imageHeight_),s.setTransform(1,0,0,1,0,0)}else s.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,f,p,this.imageWidth_,this.imageHeight_)}this.imageOpacity_!=1&&(s.globalAlpha=l)}},e.prototype.drawText_=function(t,n,i,a){if(!(!this.textState_||this.text_==="")){this.textFillState_&&this.setContextFillState_(this.textFillState_),this.textStrokeState_&&this.setContextStrokeState_(this.textStrokeState_),this.setContextTextState_(this.textState_);var o=Mc(t,n,i,a,this.transform_,this.pixelCoordinates_),s=this.context_,A=this.textRotation_;for(this.textRotateWithView_&&(A+=this.viewRotation_);n<i;n+=a){var l=o[n]+this.textOffsetX_,u=o[n+1]+this.textOffsetY_;if(A!==0||this.textScale_[0]!=1||this.textScale_[1]!=1){var c=vo(this.tmpLocalTransform_,l,u,1,1,A,-l,-u);s.setTransform.apply(s,c),s.translate(l,u),s.scale(this.textScale_[0],this.textScale_[1]),this.textStrokeState_&&s.strokeText(this.text_,0,0),this.textFillState_&&s.fillText(this.text_,0,0),s.setTransform(1,0,0,1,0,0)}else this.textStrokeState_&&s.strokeText(this.text_,l,u),this.textFillState_&&s.fillText(this.text_,l,u)}}},e.prototype.moveToLineTo_=function(t,n,i,a,o){var s=this.context_,A=Mc(t,n,i,a,this.transform_,this.pixelCoordinates_);s.moveTo(A[0],A[1]);var l=A.length;o&&(l-=2);for(var u=2;u<l;u+=2)s.lineTo(A[u],A[u+1]);return o&&s.closePath(),i},e.prototype.drawRings_=function(t,n,i,a){for(var o=0,s=i.length;o<s;++o)n=this.moveToLineTo_(t,n,i[o],a,!0);return n},e.prototype.drawCircle=function(t){if(Wn(this.extent_,t.getExtent())){if(this.fillState_||this.strokeState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var n=oz(t,this.transform_,this.pixelCoordinates_),i=n[2]-n[0],a=n[3]-n[1],o=Math.sqrt(i*i+a*a),s=this.context_;s.beginPath(),s.arc(n[0],n[1],o,0,2*Math.PI),this.fillState_&&s.fill(),this.strokeState_&&s.stroke()}this.text_!==""&&this.drawText_(t.getCenter(),0,2,2)}},e.prototype.setStyle=function(t){this.setFillStrokeStyle(t.getFill(),t.getStroke()),this.setImageStyle(t.getImage()),this.setTextStyle(t.getText())},e.prototype.setTransform=function(t){this.transform_=t},e.prototype.drawGeometry=function(t){var n=t.getType();switch(n){case dt.POINT:this.drawPoint(t);break;case dt.LINE_STRING:this.drawLineString(t);break;case dt.POLYGON:this.drawPolygon(t);break;case dt.MULTI_POINT:this.drawMultiPoint(t);break;case dt.MULTI_LINE_STRING:this.drawMultiLineString(t);break;case dt.MULTI_POLYGON:this.drawMultiPolygon(t);break;case dt.GEOMETRY_COLLECTION:this.drawGeometryCollection(t);break;case dt.CIRCLE:this.drawCircle(t);break}},e.prototype.drawFeature=function(t,n){var i=n.getGeometryFunction()(t);!i||!Wn(this.extent_,i.getExtent())||(this.setStyle(n),this.drawGeometry(i))},e.prototype.drawGeometryCollection=function(t){for(var n=t.getGeometriesArray(),i=0,a=n.length;i<a;++i)this.drawGeometry(n[i])},e.prototype.drawPoint=function(t){this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var n=t.getFlatCoordinates(),i=t.getStride();this.image_&&this.drawImages_(n,0,n.length,i),this.text_!==""&&this.drawText_(n,0,n.length,i)},e.prototype.drawMultiPoint=function(t){this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var n=t.getFlatCoordinates(),i=t.getStride();this.image_&&this.drawImages_(n,0,n.length,i),this.text_!==""&&this.drawText_(n,0,n.length,i)},e.prototype.drawLineString=function(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),!!Wn(this.extent_,t.getExtent())){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);var n=this.context_,i=t.getFlatCoordinates();n.beginPath(),this.moveToLineTo_(i,0,i.length,t.getStride(),!1),n.stroke()}if(this.text_!==""){var a=t.getFlatMidpoint();this.drawText_(a,0,2,2)}}},e.prototype.drawMultiLineString=function(t){this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var n=t.getExtent();if(Wn(this.extent_,n)){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);var i=this.context_,a=t.getFlatCoordinates(),o=0,s=t.getEnds(),A=t.getStride();i.beginPath();for(var l=0,u=s.length;l<u;++l)o=this.moveToLineTo_(a,o,s[l],A,!1);i.stroke()}if(this.text_!==""){var c=t.getFlatMidpoints();this.drawText_(c,0,c.length,2)}}},e.prototype.drawPolygon=function(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),!!Wn(this.extent_,t.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var n=this.context_;n.beginPath(),this.drawRings_(t.getOrientedFlatCoordinates(),0,t.getEnds(),t.getStride()),this.fillState_&&n.fill(),this.strokeState_&&n.stroke()}if(this.text_!==""){var i=t.getFlatInteriorPoint();this.drawText_(i,0,2,2)}}},e.prototype.drawMultiPolygon=function(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),!!Wn(this.extent_,t.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var n=this.context_,i=t.getOrientedFlatCoordinates(),a=0,o=t.getEndss(),s=t.getStride();n.beginPath();for(var A=0,l=o.length;A<l;++A){var u=o[A];a=this.drawRings_(i,a,u,s)}this.fillState_&&n.fill(),this.strokeState_&&n.stroke()}if(this.text_!==""){var c=t.getFlatInteriorPoints();this.drawText_(c,0,c.length,2)}}},e.prototype.setContextFillState_=function(t){var n=this.context_,i=this.contextFillState_;i?i.fillStyle!=t.fillStyle&&(i.fillStyle=t.fillStyle,n.fillStyle=t.fillStyle):(n.fillStyle=t.fillStyle,this.contextFillState_={fillStyle:t.fillStyle})},e.prototype.setContextStrokeState_=function(t){var n=this.context_,i=this.contextStrokeState_;i?(i.lineCap!=t.lineCap&&(i.lineCap=t.lineCap,n.lineCap=t.lineCap),n.setLineDash&&(Cu(i.lineDash,t.lineDash)||n.setLineDash(i.lineDash=t.lineDash),i.lineDashOffset!=t.lineDashOffset&&(i.lineDashOffset=t.lineDashOffset,n.lineDashOffset=t.lineDashOffset)),i.lineJoin!=t.lineJoin&&(i.lineJoin=t.lineJoin,n.lineJoin=t.lineJoin),i.lineWidth!=t.lineWidth&&(i.lineWidth=t.lineWidth,n.lineWidth=t.lineWidth),i.miterLimit!=t.miterLimit&&(i.miterLimit=t.miterLimit,n.miterLimit=t.miterLimit),i.strokeStyle!=t.strokeStyle&&(i.strokeStyle=t.strokeStyle,n.strokeStyle=t.strokeStyle)):(n.lineCap=t.lineCap,n.setLineDash&&(n.setLineDash(t.lineDash),n.lineDashOffset=t.lineDashOffset),n.lineJoin=t.lineJoin,n.lineWidth=t.lineWidth,n.miterLimit=t.miterLimit,n.strokeStyle=t.strokeStyle,this.contextStrokeState_={lineCap:t.lineCap,lineDash:t.lineDash,lineDashOffset:t.lineDashOffset,lineJoin:t.lineJoin,lineWidth:t.lineWidth,miterLimit:t.miterLimit,strokeStyle:t.strokeStyle})},e.prototype.setContextTextState_=function(t){var n=this.context_,i=this.contextTextState_,a=t.textAlign?t.textAlign:ny;i?(i.font!=t.font&&(i.font=t.font,n.font=t.font),i.textAlign!=a&&(i.textAlign=a,n.textAlign=a),i.textBaseline!=t.textBaseline&&(i.textBaseline=t.textBaseline,n.textBaseline=t.textBaseline)):(n.font=t.font,n.textAlign=a,n.textBaseline=t.textBaseline,this.contextTextState_={font:t.font,textAlign:a,textBaseline:t.textBaseline})},e.prototype.setFillStrokeStyle=function(t,n){var i=this;if(!t)this.fillState_=null;else{var a=t.getColor();this.fillState_={fillStyle:JA(a||su)}}if(!n)this.strokeState_=null;else{var o=n.getColor(),s=n.getLineCap(),A=n.getLineDash(),l=n.getLineDashOffset(),u=n.getLineJoin(),c=n.getWidth(),h=n.getMiterLimit(),f=A||Jm;this.strokeState_={lineCap:s!==void 0?s:j1,lineDash:this.pixelRatio_===1?f:f.map(function(p){return p*i.pixelRatio_}),lineDashOffset:(l||ty)*this.pixelRatio_,lineJoin:u!==void 0?u:nv,lineWidth:(c!==void 0?c:iy)*this.pixelRatio_,miterLimit:h!==void 0?h:ey,strokeStyle:JA(o||ry)}}},e.prototype.setImageStyle=function(t){var n;if(!t||!(n=t.getSize())){this.image_=null;return}var i=t.getAnchor(),a=t.getOrigin();this.image_=t.getImage(this.pixelRatio_),this.imageAnchorX_=i[0]*this.pixelRatio_,this.imageAnchorY_=i[1]*this.pixelRatio_,this.imageHeight_=n[1]*this.pixelRatio_,this.imageOpacity_=t.getOpacity(),this.imageOriginX_=a[0],this.imageOriginY_=a[1],this.imageRotateWithView_=t.getRotateWithView(),this.imageRotation_=t.getRotation(),this.imageScale_=t.getScaleArray(),this.imageWidth_=n[0]*this.pixelRatio_},e.prototype.setTextStyle=function(t){if(!t)this.text_="";else{var n=t.getFill();if(!n)this.textFillState_=null;else{var i=n.getColor();this.textFillState_={fillStyle:JA(i||su)}}var a=t.getStroke();if(!a)this.textStrokeState_=null;else{var o=a.getColor(),s=a.getLineCap(),A=a.getLineDash(),l=a.getLineDashOffset(),u=a.getLineJoin(),c=a.getWidth(),h=a.getMiterLimit();this.textStrokeState_={lineCap:s!==void 0?s:j1,lineDash:A||Jm,lineDashOffset:l||ty,lineJoin:u!==void 0?u:nv,lineWidth:c!==void 0?c:iy,miterLimit:h!==void 0?h:ey,strokeStyle:JA(o||ry)}}var f=t.getFont(),p=t.getOffsetX(),v=t.getOffsetY(),m=t.getRotateWithView(),g=t.getRotation(),_=t.getScaleArray(),w=t.getText(),C=t.getTextAlign(),F=t.getTextBaseline();this.textState_={font:f!==void 0?f:W6,textAlign:C!==void 0?C:ny,textBaseline:F!==void 0?F:K1},this.text_=w!==void 0?Array.isArray(w)?w.reduce(function(O,I,b){return O+=b%2?" ":I},""):w:"",this.textOffsetX_=p!==void 0?this.pixelRatio_*p:0,this.textOffsetY_=v!==void 0?this.pixelRatio_*v:0,this.textRotateWithView_=m!==void 0?m:!1,this.textRotation_=g!==void 0?g:0,this.textScale_=[this.pixelRatio_*_[0],this.pixelRatio_*_[1]]}},e}(O4),CF=_3,so={FRACTION:"fraction",PIXELS:"pixels"},Hi={BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",TOP_LEFT:"top-left",TOP_RIGHT:"top-right"},w3=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),E3=function(r){w3(e,r);function e(t,n,i,a){var o=r.call(this)||this;return o.extent=t,o.pixelRatio_=i,o.resolution=n,o.state=a,o}return e.prototype.changed=function(){this.dispatchEvent(xe.CHANGE)},e.prototype.getExtent=function(){return this.extent},e.prototype.getImage=function(){return Re()},e.prototype.getPixelRatio=function(){return this.pixelRatio_},e.prototype.getResolution=function(){return this.resolution},e.prototype.getState=function(){return this.state},e.prototype.load=function(){Re()},e}(Jf),N4=E3,C3=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),B3=function(r){C3(e,r);function e(t,n,i,a,o,s){var A=r.call(this,t,n,i,er.IDLE)||this;return A.src_=a,A.image_=new Image,o!==null&&(A.image_.crossOrigin=o),A.unlisten_=null,A.state=er.IDLE,A.imageLoadFunction_=s,A}return e.prototype.getImage=function(){return this.image_},e.prototype.handleImageError_=function(){this.state=er.ERROR,this.unlistenImage_(),this.changed()},e.prototype.handleImageLoad_=function(){this.resolution===void 0&&(this.resolution=Si(this.extent)/this.image_.height),this.state=er.LOADED,this.unlistenImage_(),this.changed()},e.prototype.load=function(){(this.state==er.IDLE||this.state==er.ERROR)&&(this.state=er.LOADING,this.changed(),this.imageLoadFunction_(this,this.src_),this.unlisten_=BF(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))},e.prototype.setImage=function(t){this.image_=t,this.resolution=Si(this.extent)/this.image_.height},e.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},e}(N4);function BF(r,e,t){var n=r,i=!0,a=!1,o=!1,s=[Zm(n,xe.LOAD,function(){o=!0,a||e()})];return n.src&&hY?(a=!0,n.decode().then(function(){i&&e()}).catch(function(A){i&&(o?e():t())})):s.push(Zm(n,xe.ERROR,t)),function(){i=!1,s.forEach(Wr)}}var P4=B3,T3=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Lg=null,b3=function(r){T3(e,r);function e(t,n,i,a,o,s){var A=r.call(this)||this;return A.hitDetectionImage_=null,A.image_=t||new Image,a!==null&&(A.image_.crossOrigin=a),A.canvas_={},A.color_=s,A.unlisten_=null,A.imageState_=o,A.size_=i,A.src_=n,A.tainted_,A}return e.prototype.isTainted_=function(){if(this.tainted_===void 0&&this.imageState_===er.LOADED){Lg||(Lg=mo(1,1)),Lg.drawImage(this.image_,0,0);try{Lg.getImageData(0,0,1,1),this.tainted_=!1}catch{Lg=null,this.tainted_=!0}}return this.tainted_===!0},e.prototype.dispatchChangeEvent_=function(){this.dispatchEvent(xe.CHANGE)},e.prototype.handleImageError_=function(){this.imageState_=er.ERROR,this.unlistenImage_(),this.dispatchChangeEvent_()},e.prototype.handleImageLoad_=function(){this.imageState_=er.LOADED,this.size_?(this.image_.width=this.size_[0],this.image_.height=this.size_[1]):this.size_=[this.image_.width,this.image_.height],this.unlistenImage_(),this.dispatchChangeEvent_()},e.prototype.getImage=function(t){return this.replaceColor_(t),this.canvas_[t]?this.canvas_[t]:this.image_},e.prototype.getPixelRatio=function(t){return this.replaceColor_(t),this.canvas_[t]?t:1},e.prototype.getImageState=function(){return this.imageState_},e.prototype.getHitDetectionImage=function(){if(!this.hitDetectionImage_)if(this.isTainted_()){var t=this.size_[0],n=this.size_[1],i=mo(t,n);i.fillRect(0,0,t,n),this.hitDetectionImage_=i.canvas}else this.hitDetectionImage_=this.image_;return this.hitDetectionImage_},e.prototype.getSize=function(){return this.size_},e.prototype.getSrc=function(){return this.src_},e.prototype.load=function(){if(this.imageState_==er.IDLE){this.imageState_=er.LOADING;try{this.image_.src=this.src_}catch{this.handleImageError_()}this.unlisten_=BF(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this))}},e.prototype.replaceColor_=function(t){if(!(!this.color_||this.canvas_[t]||this.imageState_!==er.LOADED)){var n=document.createElement("canvas");this.canvas_[t]=n,n.width=Math.ceil(this.image_.width*t),n.height=Math.ceil(this.image_.height*t);var i=n.getContext("2d");if(i.scale(t,t),i.drawImage(this.image_,0,0),i.globalCompositeOperation="multiply",i.globalCompositeOperation==="multiply"||this.isTainted_())i.fillStyle=au(this.color_),i.fillRect(0,0,n.width/t,n.height/t),i.globalCompositeOperation="destination-in",i.drawImage(this.image_,0,0);else{for(var a=i.getImageData(0,0,n.width,n.height),o=a.data,s=this.color_[0]/255,A=this.color_[1]/255,l=this.color_[2]/255,u=this.color_[3],c=0,h=o.length;c<h;c+=4)o[c]*=s,o[c+1]*=A,o[c+2]*=l,o[c+3]*=u;i.putImageData(a,0,0)}}},e.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},e}(Jf);function S3(r,e,t,n,i,a){var o=H1.get(e,n,a);return o||(o=new b3(r,e,t,n,i,a),H1.set(e,n,a,o)),o}var x3=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),I3=function(r){x3(e,r);function e(t){var n=this,i=t||{},a=i.opacity!==void 0?i.opacity:1,o=i.rotation!==void 0?i.rotation:0,s=i.scale!==void 0?i.scale:1,A=i.rotateWithView!==void 0?i.rotateWithView:!1;n=r.call(this,{opacity:a,rotation:o,scale:s,displacement:i.displacement!==void 0?i.displacement:[0,0],rotateWithView:A})||this,n.anchor_=i.anchor!==void 0?i.anchor:[.5,.5],n.normalizedAnchor_=null,n.anchorOrigin_=i.anchorOrigin!==void 0?i.anchorOrigin:Hi.TOP_LEFT,n.anchorXUnits_=i.anchorXUnits!==void 0?i.anchorXUnits:so.FRACTION,n.anchorYUnits_=i.anchorYUnits!==void 0?i.anchorYUnits:so.FRACTION,n.crossOrigin_=i.crossOrigin!==void 0?i.crossOrigin:null;var l=i.img!==void 0?i.img:null;n.imgSize_=i.imgSize;var u=i.src;Le(!(u!==void 0&&l),4),Le(!l||l&&n.imgSize_,5),(u===void 0||u.length===0)&&l&&(u=l.src||Ee(l)),Le(u!==void 0&&u.length>0,6);var c=i.src!==void 0?er.IDLE:er.LOADED;return n.color_=i.color!==void 0?Yc(i.color):null,n.iconImage_=S3(l,u,n.imgSize_!==void 0?n.imgSize_:null,n.crossOrigin_,c,n.color_),n.offset_=i.offset!==void 0?i.offset:[0,0],n.offsetOrigin_=i.offsetOrigin!==void 0?i.offsetOrigin:Hi.TOP_LEFT,n.origin_=null,n.size_=i.size!==void 0?i.size:null,n}return e.prototype.clone=function(){var t=this.getScale();return new e({anchor:this.anchor_.slice(),anchorOrigin:this.anchorOrigin_,anchorXUnits:this.anchorXUnits_,anchorYUnits:this.anchorYUnits_,color:this.color_&&this.color_.slice?this.color_.slice():this.color_||void 0,crossOrigin:this.crossOrigin_,imgSize:this.imgSize_,offset:this.offset_.slice(),offsetOrigin:this.offsetOrigin_,opacity:this.getOpacity(),rotateWithView:this.getRotateWithView(),rotation:this.getRotation(),scale:Array.isArray(t)?t.slice():t,size:this.size_!==null?this.size_.slice():void 0,src:this.getSrc()})},e.prototype.getAnchor=function(){var t=this.normalizedAnchor_;if(!t){t=this.anchor_;var n=this.getSize();if(this.anchorXUnits_==so.FRACTION||this.anchorYUnits_==so.FRACTION){if(!n)return null;t=this.anchor_.slice(),this.anchorXUnits_==so.FRACTION&&(t[0]*=n[0]),this.anchorYUnits_==so.FRACTION&&(t[1]*=n[1])}if(this.anchorOrigin_!=Hi.TOP_LEFT){if(!n)return null;t===this.anchor_&&(t=this.anchor_.slice()),(this.anchorOrigin_==Hi.TOP_RIGHT||this.anchorOrigin_==Hi.BOTTOM_RIGHT)&&(t[0]=-t[0]+n[0]),(this.anchorOrigin_==Hi.BOTTOM_LEFT||this.anchorOrigin_==Hi.BOTTOM_RIGHT)&&(t[1]=-t[1]+n[1])}this.normalizedAnchor_=t}var i=this.getDisplacement();return[t[0]-i[0],t[1]+i[1]]},e.prototype.setAnchor=function(t){this.anchor_=t,this.normalizedAnchor_=null},e.prototype.getColor=function(){return this.color_},e.prototype.getImage=function(t){return this.iconImage_.getImage(t)},e.prototype.getPixelRatio=function(t){return this.iconImage_.getPixelRatio(t)},e.prototype.getImageSize=function(){return this.iconImage_.getSize()},e.prototype.getImageState=function(){return this.iconImage_.getImageState()},e.prototype.getHitDetectionImage=function(){return this.iconImage_.getHitDetectionImage()},e.prototype.getOrigin=function(){if(this.origin_)return this.origin_;var t=this.offset_;if(this.offsetOrigin_!=Hi.TOP_LEFT){var n=this.getSize(),i=this.iconImage_.getSize();if(!n||!i)return null;t=t.slice(),(this.offsetOrigin_==Hi.TOP_RIGHT||this.offsetOrigin_==Hi.BOTTOM_RIGHT)&&(t[0]=i[0]-n[0]-t[0]),(this.offsetOrigin_==Hi.BOTTOM_LEFT||this.offsetOrigin_==Hi.BOTTOM_RIGHT)&&(t[1]=i[1]-n[1]-t[1])}return this.origin_=t,this.origin_},e.prototype.getSrc=function(){return this.iconImage_.getSrc()},e.prototype.getSize=function(){return this.size_?this.size_:this.iconImage_.getSize()},e.prototype.listenImageChange=function(t){this.iconImage_.addEventListener(xe.CHANGE,t)},e.prototype.load=function(){this.iconImage_.load()},e.prototype.unlistenImageChange=function(t){this.iconImage_.removeEventListener(xe.CHANGE,t)},e}(F4),jy=I3,L3="#333",F3=function(){function r(e){var t=e||{};this.font_=t.font,this.rotation_=t.rotation,this.rotateWithView_=t.rotateWithView,this.scale_=t.scale,this.scaleArray_=ji(t.scale!==void 0?t.scale:1),this.text_=t.text,this.textAlign_=t.textAlign,this.textBaseline_=t.textBaseline,this.fill_=t.fill!==void 0?t.fill:new Ea({color:L3}),this.maxAngle_=t.maxAngle!==void 0?t.maxAngle:Math.PI/4,this.placement_=t.placement!==void 0?t.placement:R4.POINT,this.overflow_=!!t.overflow,this.stroke_=t.stroke!==void 0?t.stroke:null,this.offsetX_=t.offsetX!==void 0?t.offsetX:0,this.offsetY_=t.offsetY!==void 0?t.offsetY:0,this.backgroundFill_=t.backgroundFill?t.backgroundFill:null,this.backgroundStroke_=t.backgroundStroke?t.backgroundStroke:null,this.padding_=t.padding===void 0?null:t.padding}return r.prototype.clone=function(){var e=this.getScale();return new r({font:this.getFont(),placement:this.getPlacement(),maxAngle:this.getMaxAngle(),overflow:this.getOverflow(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(e)?e.slice():e,text:this.getText(),textAlign:this.getTextAlign(),textBaseline:this.getTextBaseline(),fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,offsetX:this.getOffsetX(),offsetY:this.getOffsetY(),backgroundFill:this.getBackgroundFill()?this.getBackgroundFill().clone():void 0,backgroundStroke:this.getBackgroundStroke()?this.getBackgroundStroke().clone():void 0,padding:this.getPadding()||void 0})},r.prototype.getOverflow=function(){return this.overflow_},r.prototype.getFont=function(){return this.font_},r.prototype.getMaxAngle=function(){return this.maxAngle_},r.prototype.getPlacement=function(){return this.placement_},r.prototype.getOffsetX=function(){return this.offsetX_},r.prototype.getOffsetY=function(){return this.offsetY_},r.prototype.getFill=function(){return this.fill_},r.prototype.getRotateWithView=function(){return this.rotateWithView_},r.prototype.getRotation=function(){return this.rotation_},r.prototype.getScale=function(){return this.scale_},r.prototype.getScaleArray=function(){return this.scaleArray_},r.prototype.getStroke=function(){return this.stroke_},r.prototype.getText=function(){return this.text_},r.prototype.getTextAlign=function(){return this.textAlign_},r.prototype.getTextBaseline=function(){return this.textBaseline_},r.prototype.getBackgroundFill=function(){return this.backgroundFill_},r.prototype.getBackgroundStroke=function(){return this.backgroundStroke_},r.prototype.getPadding=function(){return this.padding_},r.prototype.setOverflow=function(e){this.overflow_=e},r.prototype.setFont=function(e){this.font_=e},r.prototype.setMaxAngle=function(e){this.maxAngle_=e},r.prototype.setOffsetX=function(e){this.offsetX_=e},r.prototype.setOffsetY=function(e){this.offsetY_=e},r.prototype.setPlacement=function(e){this.placement_=e},r.prototype.setRotateWithView=function(e){this.rotateWithView_=e},r.prototype.setFill=function(e){this.fill_=e},r.prototype.setRotation=function(e){this.rotation_=e},r.prototype.setScale=function(e){this.scale_=e,this.scaleArray_=ji(e!==void 0?e:1)},r.prototype.setStroke=function(e){this.stroke_=e},r.prototype.setText=function(e){this.text_=e},r.prototype.setTextAlign=function(e){this.textAlign_=e},r.prototype.setTextBaseline=function(e){this.textBaseline_=e},r.prototype.setBackgroundFill=function(e){this.backgroundFill_=e},r.prototype.setBackgroundStroke=function(e){this.backgroundStroke_=e},r.prototype.setPadding=function(e){this.padding_=e},r}(),rp=F3,ls=.5;function U4(r,e,t,n,i,a,o){var s=r[0]*ls,A=r[1]*ls,l=mo(s,A);l.imageSmoothingEnabled=!1;for(var u=l.canvas,c=new CF(l,ls,i,null,o),h=t.length,f=Math.floor((256*256*256-1)/h),p={},v=1;v<=h;++v){var m=t[v-1],g=m.getStyleFunction()||n;if(n){var _=g(m,a);if(_){Array.isArray(_)||(_=[_]);for(var w=v*f,C="#"+("000000"+w.toString(16)).slice(-6),F=0,O=_.length;F<O;++F){var I=_[F],b=I.getGeometryFunction()(m);if(!(!b||!Wn(i,b.getExtent()))){var L=I.clone(),N=L.getFill();N&&N.setColor(C);var x=L.getStroke();x&&(x.setColor(C),x.setLineDash(null)),L.setText(void 0);var S=I.getImage();if(S&&S.getOpacity()!==0){var P=S.getImageSize();if(!P)continue;var U=mo(P[0],P[1],void 0,{alpha:!1}),tt=U.canvas;U.fillStyle=C,U.fillRect(0,0,tt.width,tt.height),L.setImage(new jy({img:tt,imgSize:P,anchor:S.getAnchor(),anchorXUnits:so.PIXELS,anchorYUnits:so.PIXELS,offset:S.getOrigin(),opacity:1,size:S.getSize(),scale:S.getScale(),rotation:S.getRotation(),rotateWithView:S.getRotateWithView()}))}var q=L.getZIndex()||0,rt=p[q];rt||(rt={},p[q]=rt,rt[dt.POLYGON]=[],rt[dt.CIRCLE]=[],rt[dt.LINE_STRING]=[],rt[dt.POINT]=[]),rt[b.getType().replace("Multi","")].push(b,L)}}}}}for(var nt=Object.keys(p).map(Number).sort(Vc),v=0,At=nt.length;v<At;++v){var rt=p[nt[v]];for(var ct in rt)for(var bt=rt[ct],F=0,O=bt.length;F<O;F+=2){c.setStyle(bt[F+1]);for(var M=0,Y=e.length;M<Y;++M)c.setTransform(e[M]),c.drawGeometry(bt[F])}}return l.getImageData(0,0,u.width,u.height)}function D4(r,e,t){var n=[];if(t){var i=Math.floor(Math.round(r[0])*ls),a=Math.floor(Math.round(r[1])*ls),o=(Nn(i,0,t.width-1)+Nn(a,0,t.height-1)*t.width)*4,s=t.data[o],A=t.data[o+1],l=t.data[o+2],u=l+256*(A+256*s),c=Math.floor((256*256*256-1)/e.length);u&&u%c===0&&n.push(e[u/c-1])}return n}var O3=.5,Q4={Point:k3,LineString:U3,Polygon:G3,MultiPoint:H3,MultiLineString:D3,MultiPolygon:Q3,GeometryCollection:P3,Circle:M3};function R3(r,e){return parseInt(Ee(r),10)-parseInt(Ee(e),10)}function k4(r,e){var t=oS(r,e);return t*t}function oS(r,e){return O3*r/e}function M3(r,e,t,n,i){var a=t.getFill(),o=t.getStroke();if(a||o){var s=r.getBuilder(t.getZIndex(),wr.CIRCLE);s.setFillStrokeStyle(a,o),s.drawCircle(e,n)}var A=t.getText();if(A&&A.getText()){var l=(i||r).getBuilder(t.getZIndex(),wr.TEXT);l.setTextStyle(A),l.drawText(e,n)}}function iw(r,e,t,n,i,a,o){var s=!1,A=t.getImage();if(A){var l=A.getImageState();l==er.LOADED||l==er.ERROR?A.unlistenImageChange(i):(l==er.IDLE&&A.load(),l=A.getImageState(),A.listenImageChange(i),s=!0)}return N3(r,e,t,n,a,o),s}function N3(r,e,t,n,i,a){var o=t.getGeometryFunction()(e);if(o){var s=o.simplifyTransformed(n,i),A=t.getRenderer();if(A)H4(r,s,t,e);else{var l=Q4[s.getType()];l(r,s,t,e,a)}}}function H4(r,e,t,n){if(e.getType()==dt.GEOMETRY_COLLECTION){for(var i=e.getGeometries(),a=0,o=i.length;a<o;++a)H4(r,i[a],t,n);return}var s=r.getBuilder(t.getZIndex(),wr.DEFAULT);s.drawCustom(e,n,t.getRenderer(),t.getHitDetectionRenderer())}function P3(r,e,t,n,i){var a=e.getGeometriesArray(),o,s;for(o=0,s=a.length;o<s;++o){var A=Q4[a[o].getType()];A(r,a[o],t,n,i)}}function U3(r,e,t,n,i){var a=t.getStroke();if(a){var o=r.getBuilder(t.getZIndex(),wr.LINE_STRING);o.setFillStrokeStyle(null,a),o.drawLineString(e,n)}var s=t.getText();if(s&&s.getText()){var A=(i||r).getBuilder(t.getZIndex(),wr.TEXT);A.setTextStyle(s),A.drawText(e,n)}}function D3(r,e,t,n,i){var a=t.getStroke();if(a){var o=r.getBuilder(t.getZIndex(),wr.LINE_STRING);o.setFillStrokeStyle(null,a),o.drawMultiLineString(e,n)}var s=t.getText();if(s&&s.getText()){var A=(i||r).getBuilder(t.getZIndex(),wr.TEXT);A.setTextStyle(s),A.drawText(e,n)}}function Q3(r,e,t,n,i){var a=t.getFill(),o=t.getStroke();if(o||a){var s=r.getBuilder(t.getZIndex(),wr.POLYGON);s.setFillStrokeStyle(a,o),s.drawMultiPolygon(e,n)}var A=t.getText();if(A&&A.getText()){var l=(i||r).getBuilder(t.getZIndex(),wr.TEXT);l.setTextStyle(A),l.drawText(e,n)}}function k3(r,e,t,n,i){var a=t.getImage(),o=t.getText(),s;if(i&&(r=i,s=a&&o&&o.getText()?{}:void 0),a){if(a.getImageState()!=er.LOADED)return;var A=r.getBuilder(t.getZIndex(),wr.IMAGE);A.setImageStyle(a,s),A.drawPoint(e,n)}if(o&&o.getText()){var l=r.getBuilder(t.getZIndex(),wr.TEXT);l.setTextStyle(o,s),l.drawText(e,n)}}function H3(r,e,t,n,i){var a=t.getImage(),o=t.getText(),s;if(i&&(r=i,s=a&&o&&o.getText()?{}:void 0),a){if(a.getImageState()!=er.LOADED)return;var A=r.getBuilder(t.getZIndex(),wr.IMAGE);A.setImageStyle(a,s),A.drawMultiPoint(e,n)}if(o&&o.getText()){var l=(i||r).getBuilder(t.getZIndex(),wr.TEXT);l.setTextStyle(o,s),l.drawText(e,n)}}function G3(r,e,t,n,i){var a=t.getFill(),o=t.getStroke();if(a||o){var s=r.getBuilder(t.getZIndex(),wr.POLYGON);s.setFillStrokeStyle(a,o),s.drawPolygon(e,n)}var A=t.getText();if(A&&A.getText()){var l=(i||r).getBuilder(t.getZIndex(),wr.TEXT);l.setTextStyle(A),l.drawText(e,n)}}var $3=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),V3=function(r){$3(e,r);function e(t){var n=r.call(this,t)||this;return n.boundHandleStyleImageChange_=n.handleStyleImageChange_.bind(n),n.animatingOrInteracting_,n.dirty_=!1,n.hitDetectionImageData_=null,n.renderedFeatures_=null,n.renderedRevision_=-1,n.renderedResolution_=NaN,n.renderedExtent_=Ni(),n.wrappedRenderedExtent_=Ni(),n.renderedRotation_,n.renderedCenter_=null,n.renderedProjection_=null,n.renderedRenderOrder_=null,n.replayGroup_=null,n.replayGroupChanged=!0,n.declutterExecutorGroup=null,n.clipping=!0,n}return e.prototype.renderWorlds=function(t,n,i){var a=n.extent,o=n.viewState,s=o.center,A=o.resolution,l=o.projection,u=o.rotation,c=l.getExtent(),h=this.getLayer().getSource(),f=n.pixelRatio,p=n.viewHints,v=!(p[Sn.ANIMATING]||p[Sn.INTERACTING]),m=this.context,g=Math.round(n.size[0]*f),_=Math.round(n.size[1]*f),w=h.getWrapX()&&l.canWrapX(),C=w?Vr(c):null,F=w?Math.ceil((a[2]-c[2])/C)+1:1,O=w?Math.floor((a[0]-c[0])/C):0;do{var I=this.getRenderTransform(s,A,u,f,g,_,O*C);t.execute(m,1,I,u,v,void 0,i)}while(++O<F)},e.prototype.renderDeclutter=function(t){this.declutterExecutorGroup&&this.renderWorlds(this.declutterExecutorGroup,t,t.declutterTree)},e.prototype.renderFrame=function(t,n){var i=t.pixelRatio,a=t.layerStatesArray[t.layerIndex];gY(this.pixelTransform,1/i,1/i),My(this.inversePixelTransform,this.pixelTransform);var o=kL(this.pixelTransform);this.useContainer(n,o,a.opacity,this.getBackground(t));var s=this.context,A=s.canvas,l=this.replayGroup_,u=this.declutterExecutorGroup;if((!l||l.isEmpty())&&(!u||u.isEmpty()))return null;var c=Math.round(t.size[0]*i),h=Math.round(t.size[1]*i);A.width!=c||A.height!=h?(A.width=c,A.height=h,A.style.transform!==o&&(A.style.transform=o)):this.containerReused||s.clearRect(0,0,c,h),this.preRender(s,t);var f=t.viewState;f.projection;var p=!1,v=!0;if(a.extent&&this.clipping){var m=cs(a.extent);v=Wn(m,t.extent),p=v&&!us(m,t.extent),p&&this.clipUnrotated(s,t,m)}v&&this.renderWorlds(l,t),p&&s.restore(),this.postRender(s,t);var g=K6(a.opacity),_=this.container;return g!==_.style.opacity&&(_.style.opacity=g),this.renderedRotation_!==f.rotation&&(this.renderedRotation_=f.rotation,this.hitDetectionImageData_=null),this.container},e.prototype.getFeatures=function(t){return new Promise(function(n){if(!this.hitDetectionImageData_&&!this.animatingOrInteracting_){var i=[this.context.canvas.width,this.context.canvas.height];Bn(this.pixelTransform,i);var a=this.renderedCenter_,o=this.renderedResolution_,s=this.renderedRotation_,A=this.renderedProjection_,l=this.wrappedRenderedExtent_,u=this.getLayer(),c=[],h=i[0]*ls,f=i[1]*ls;c.push(this.getRenderTransform(a,o,s,ls,h,f,0).slice());var p=u.getSource(),v=A.getExtent();if(p.getWrapX()&&A.canWrapX()&&!us(v,l)){for(var m=l[0],g=Vr(v),_=0,w=void 0;m<v[0];)--_,w=g*_,c.push(this.getRenderTransform(a,o,s,ls,h,f,w).slice()),m+=g;for(_=0,m=l[2];m>v[2];)++_,w=g*_,c.push(this.getRenderTransform(a,o,s,ls,h,f,w).slice()),m-=g}this.hitDetectionImageData_=U4(i,c,this.renderedFeatures_,u.getStyleFunction(),l,o,s)}n(D4(t,this.renderedFeatures_,this.hitDetectionImageData_))}.bind(this))},e.prototype.forEachFeatureAtCoordinate=function(t,n,i,a,o){var s=this;if(this.replayGroup_){var A=n.viewState.resolution,l=n.viewState.rotation,u=this.getLayer(),c={},h=function(v,m,g){var _=Ee(v),w=c[_];if(w){if(w!==!0&&g<w.distanceSq){if(g===0)return c[_]=!0,o.splice(o.lastIndexOf(w),1),a(v,u,m);w.geometry=m,w.distanceSq=g}}else{if(g===0)return c[_]=!0,a(v,u,m);o.push(c[_]={feature:v,layer:u,geometry:m,distanceSq:g,callback:a})}},f,p=[this.replayGroup_];return this.declutterExecutorGroup&&p.push(this.declutterExecutorGroup),p.some(function(v){return f=v.forEachFeatureAtCoordinate(t,A,l,i,h,v===s.declutterExecutorGroup&&n.declutterTree?n.declutterTree.all().map(function(m){return m.value}):null)}),f}},e.prototype.handleFontsChanged=function(){var t=this.getLayer();t.getVisible()&&this.replayGroup_&&t.changed()},e.prototype.handleStyleImageChange_=function(t){this.renderIfReadyAndVisible()},e.prototype.prepareFrame=function(t){var n=this.getLayer(),i=n.getSource();if(!i)return!1;var a=t.viewHints[Sn.ANIMATING],o=t.viewHints[Sn.INTERACTING],s=n.getUpdateWhileAnimating(),A=n.getUpdateWhileInteracting();if(!this.dirty_&&!s&&a||!A&&o)return this.animatingOrInteracting_=!0,!0;this.animatingOrInteracting_=!1;var l=t.extent,u=t.viewState,c=u.projection,h=u.resolution,f=t.pixelRatio,p=n.getRevision(),v=n.getRenderBuffer(),m=n.getRenderOrder();m===void 0&&(m=R3);var g=u.center.slice(),_=go(l,v*h),w=_.slice(),C=[_.slice()],F=c.getExtent();if(i.getWrapX()&&c.canWrapX()&&!us(F,t.extent)){var O=Vr(F),I=Math.max(Vr(_)/2,O);_[0]=F[0]-I,_[2]=F[2]+I,XL(g,c);var b=R6(C[0],c);b[0]<F[0]&&b[2]<F[2]?C.push([b[0]+O,b[1],b[2]+O,b[3]]):b[0]>F[0]&&b[2]>F[2]&&C.push([b[0]-O,b[1],b[2]-O,b[3]])}if(!this.dirty_&&this.renderedResolution_==h&&this.renderedRevision_==p&&this.renderedRenderOrder_==m&&us(this.wrappedRenderedExtent_,_))return Cu(this.renderedExtent_,w)||(this.hitDetectionImageData_=null,this.renderedExtent_=w),this.renderedCenter_=g,this.replayGroupChanged=!1,!0;this.replayGroup_=null,this.dirty_=!1;var L=new rw(oS(h,f),_,h,f),N;this.getLayer().getDeclutter()&&(N=new rw(oS(h,f),_,h,f));for(var x,S,P,S=0,P=C.length;S<P;++S)i.loadFeatures(C[S],h,c);var U=k4(h,f),tt=function(ct){var bt,M=ct.getStyleFunction()||n.getStyleFunction();if(M&&(bt=M(ct,h)),bt){var Y=this.renderFeature(ct,U,bt,L,x,N);this.dirty_=this.dirty_||Y}}.bind(this),q=bE(_),rt=i.getFeaturesInExtent(q);m&&rt.sort(m);for(var S=0,P=rt.length;S<P;++S)tt(rt[S]);this.renderedFeatures_=rt;var nt=L.finish(),At=new nw(_,h,f,i.getOverlaps(),nt,n.getRenderBuffer());return N&&(this.declutterExecutorGroup=new nw(_,h,f,i.getOverlaps(),N.finish(),n.getRenderBuffer())),this.renderedResolution_=h,this.renderedRevision_=p,this.renderedRenderOrder_=m,this.renderedExtent_=w,this.wrappedRenderedExtent_=_,this.renderedCenter_=g,this.renderedProjection_=c,this.replayGroup_=At,this.hitDetectionImageData_=null,this.replayGroupChanged=!0,!0},e.prototype.renderFeature=function(t,n,i,a,o,s){if(!i)return!1;var A=!1;if(Array.isArray(i))for(var l=0,u=i.length;l<u;++l)A=iw(a,t,i[l],n,this.boundHandleStyleImageChange_,o,s)||A;else A=iw(a,t,i,n,this.boundHandleStyleImageChange_,o,s);return A},e}(EF),j3=V3,K3=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Y3=function(r){K3(e,r);function e(t){return r.call(this,t)||this}return e.prototype.createRenderer=function(){return new j3(this)},e}(ME),dl=Y3,W3=function(){function r(e){this.rbush_=new L4(e),this.items_={}}return r.prototype.insert=function(e,t){var n={minX:e[0],minY:e[1],maxX:e[2],maxY:e[3],value:t};this.rbush_.insert(n),this.items_[Ee(t)]=n},r.prototype.load=function(e,t){for(var n=new Array(t.length),i=0,a=t.length;i<a;i++){var o=e[i],s=t[i],A={minX:o[0],minY:o[1],maxX:o[2],maxY:o[3],value:s};n[i]=A,this.items_[Ee(s)]=A}this.rbush_.load(n)},r.prototype.remove=function(e){var t=Ee(e),n=this.items_[t];return delete this.items_[t],this.rbush_.remove(n)!==null},r.prototype.update=function(e,t){var n=this.items_[Ee(t)],i=[n.minX,n.minY,n.maxX,n.maxY];ul(i,e)||(this.remove(t),this.insert(e,t))},r.prototype.getAll=function(){var e=this.rbush_.all();return e.map(function(t){return t.value})},r.prototype.getInExtent=function(e){var t={minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]},n=this.rbush_.search(t);return n.map(function(i){return i.value})},r.prototype.forEach=function(e){return this.forEach_(this.getAll(),e)},r.prototype.forEachInExtent=function(e,t){return this.forEach_(this.getInExtent(e),t)},r.prototype.forEach_=function(e,t){for(var n,i=0,a=e.length;i<a;i++)if(n=t(e[i]),n)return n;return n},r.prototype.isEmpty=function(){return Uf(this.items_)},r.prototype.clear=function(){this.rbush_.clear(),this.items_={}},r.prototype.getExtent=function(e){var t=this.rbush_.toJSON();return Uo(t.minX,t.minY,t.maxX,t.maxY,e)},r.prototype.concat=function(e){this.rbush_.load(e.rbush_.all());for(var t in e.items_)this.items_[t]=e.items_[t]},r}(),aw=W3,z3=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),X3=function(r){z3(e,r);function e(t){var n=r.call(this)||this;n.projection=Ve(t.projection),n.attributions_=hN(t.attributions),n.attributionsCollapsible_=t.attributionsCollapsible!==void 0?t.attributionsCollapsible:!0,n.loading=!1,n.state_=t.state!==void 0?t.state:Ao.READY,n.wrapX_=t.wrapX!==void 0?t.wrapX:!1,n.interpolate_=!!t.interpolate,n.viewResolver=null,n.viewRejector=null;var i=n;return n.viewPromise_=new Promise(function(a,o){i.viewResolver=a,i.viewRejector=o}),n}return e.prototype.getAttributions=function(){return this.attributions_},e.prototype.getAttributionsCollapsible=function(){return this.attributionsCollapsible_},e.prototype.getProjection=function(){return this.projection},e.prototype.getResolutions=function(){return Re()},e.prototype.getView=function(){return this.viewPromise_},e.prototype.getState=function(){return this.state_},e.prototype.getWrapX=function(){return this.wrapX_},e.prototype.getInterpolate=function(){return this.interpolate_},e.prototype.refresh=function(){this.changed()},e.prototype.setAttributions=function(t){this.attributions_=hN(t),this.changed()},e.prototype.setState=function(t){this.state_=t,this.changed()},e}(xi);function hN(r){return r?Array.isArray(r)?function(e){return r}:typeof r=="function"?r:function(e){return[r]}:null}var NE=X3,Gi={ADDFEATURE:"addfeature",CHANGEFEATURE:"changefeature",CLEAR:"clear",REMOVEFEATURE:"removefeature",FEATURESLOADSTART:"featuresloadstart",FEATURESLOADEND:"featuresloadend",FEATURESLOADERROR:"featuresloaderror"};function G4(r,e){return[[-1/0,-1/0,1/0,1/0]]}function q3(r,e){return[r]}function Z3(r){return function(e,t,n){var i=r.getZForResolution(jW(t)),a=r.getTileRangeForExtentAndZ(cs(e),i),o=[],s=[i,0,0];for(s[1]=a.minX;s[1]<=a.maxX;++s[1])for(s[2]=a.minY;s[2]<=a.maxY;++s[2])o.push(bE(r.getTileCoordExtent(s)));return o}}var J3=Object.freeze(Object.defineProperty({__proto__:null,all:G4,bbox:q3,tile:Z3},Symbol.toStringTag,{value:"Module"})),tZ=!1;function eZ(r,e,t,n,i,a,o){var s=new XMLHttpRequest;s.open("GET",typeof r=="function"?r(t,n,i):r,!0),e.getType()==lA.ARRAY_BUFFER&&(s.responseType="arraybuffer"),s.withCredentials=tZ,s.onload=function(A){if(!s.status||s.status>=200&&s.status<300){var l=e.getType(),u=void 0;l==lA.JSON||l==lA.TEXT?u=s.responseText:l==lA.XML?(u=s.responseXML,u||(u=new DOMParser().parseFromString(s.responseText,"application/xml"))):l==lA.ARRAY_BUFFER&&(u=s.response),u?a(e.readFeatures(u,{extent:t,featureProjection:i}),e.readProjection(u)):o()}else o()},s.onerror=o,s.send()}function fN(r,e){return function(t,n,i,a,o){var s=this;eZ(r,e,t,n,i,function(A,l){s.addFeatures(A),a!==void 0&&a(A)},o||Mf)}}var $4=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),ic=function(r){$4(e,r);function e(t,n,i){var a=r.call(this,t)||this;return a.feature=n,a.features=i,a}return e}(ko),rZ=function(r){$4(e,r);function e(t){var n=this,i=t||{};n=r.call(this,{attributions:i.attributions,interpolate:!0,projection:void 0,state:Ao.READY,wrapX:i.wrapX!==void 0?i.wrapX:!0})||this,n.on,n.once,n.un,n.loader_=Mf,n.format_=i.format,n.overlaps_=i.overlaps===void 0?!0:i.overlaps,n.url_=i.url,i.loader!==void 0?n.loader_=i.loader:n.url_!==void 0&&(Le(n.format_,7),n.loader_=fN(n.url_,n.format_)),n.strategy_=i.strategy!==void 0?i.strategy:G4;var a=i.useSpatialIndex!==void 0?i.useSpatialIndex:!0;n.featuresRtree_=a?new aw:null,n.loadedExtentsRtree_=new aw,n.loadingExtentsCount_=0,n.nullGeometryFeatures_={},n.idIndex_={},n.uidIndex_={},n.featureChangeKeys_={},n.featuresCollection_=null;var o,s;return Array.isArray(i.features)?s=i.features:i.features&&(o=i.features,s=o.getArray()),!a&&o===void 0&&(o=new bi(s)),s!==void 0&&n.addFeaturesInternal(s),o!==void 0&&n.bindFeaturesCollection_(o),n}return e.prototype.addFeature=function(t){this.addFeatureInternal(t),this.changed()},e.prototype.addFeatureInternal=function(t){var n=Ee(t);if(!this.addToIndex_(n,t)){this.featuresCollection_&&this.featuresCollection_.remove(t);return}this.setupChangeEvents_(n,t);var i=t.getGeometry();if(i){var a=i.getExtent();this.featuresRtree_&&this.featuresRtree_.insert(a,t)}else this.nullGeometryFeatures_[n]=t;this.dispatchEvent(new ic(Gi.ADDFEATURE,t))},e.prototype.setupChangeEvents_=function(t,n){this.featureChangeKeys_[t]=[je(n,xe.CHANGE,this.handleFeatureChange_,this),je(n,Pf.PROPERTYCHANGE,this.handleFeatureChange_,this)]},e.prototype.addToIndex_=function(t,n){var i=!0,a=n.getId();return a!==void 0&&(a.toString()in this.idIndex_?i=!1:this.idIndex_[a.toString()]=n),i&&(Le(!(t in this.uidIndex_),30),this.uidIndex_[t]=n),i},e.prototype.addFeatures=function(t){this.addFeaturesInternal(t),this.changed()},e.prototype.addFeaturesInternal=function(t){for(var n=[],i=[],a=[],o=0,s=t.length;o<s;o++){var A=t[o],l=Ee(A);this.addToIndex_(l,A)&&i.push(A)}for(var o=0,u=i.length;o<u;o++){var A=i[o],l=Ee(A);this.setupChangeEvents_(l,A);var c=A.getGeometry();if(c){var h=c.getExtent();n.push(h),a.push(A)}else this.nullGeometryFeatures_[l]=A}if(this.featuresRtree_&&this.featuresRtree_.load(n,a),this.hasListener(Gi.ADDFEATURE))for(var o=0,f=i.length;o<f;o++)this.dispatchEvent(new ic(Gi.ADDFEATURE,i[o]))},e.prototype.bindFeaturesCollection_=function(t){var n=!1;this.addEventListener(Gi.ADDFEATURE,function(i){n||(n=!0,t.push(i.feature),n=!1)}),this.addEventListener(Gi.REMOVEFEATURE,function(i){n||(n=!0,t.remove(i.feature),n=!1)}),t.addEventListener(ai.ADD,function(i){n||(n=!0,this.addFeature(i.element),n=!1)}.bind(this)),t.addEventListener(ai.REMOVE,function(i){n||(n=!0,this.removeFeature(i.element),n=!1)}.bind(this)),this.featuresCollection_=t},e.prototype.clear=function(t){if(t){for(var n in this.featureChangeKeys_){var i=this.featureChangeKeys_[n];i.forEach(Wr)}this.featuresCollection_||(this.featureChangeKeys_={},this.idIndex_={},this.uidIndex_={})}else if(this.featuresRtree_){var a=function(A){this.removeFeatureInternal(A)}.bind(this);this.featuresRtree_.forEach(a);for(var o in this.nullGeometryFeatures_)this.removeFeatureInternal(this.nullGeometryFeatures_[o])}this.featuresCollection_&&this.featuresCollection_.clear(),this.featuresRtree_&&this.featuresRtree_.clear(),this.nullGeometryFeatures_={};var s=new ic(Gi.CLEAR);this.dispatchEvent(s),this.changed()},e.prototype.forEachFeature=function(t){if(this.featuresRtree_)return this.featuresRtree_.forEach(t);this.featuresCollection_&&this.featuresCollection_.forEach(t)},e.prototype.forEachFeatureAtCoordinateDirect=function(t,n){var i=[t[0],t[1],t[0],t[1]];return this.forEachFeatureInExtent(i,function(a){var o=a.getGeometry();if(o.intersectsCoordinate(t))return n(a)})},e.prototype.forEachFeatureInExtent=function(t,n){if(this.featuresRtree_)return this.featuresRtree_.forEachInExtent(t,n);this.featuresCollection_&&this.featuresCollection_.forEach(n)},e.prototype.forEachFeatureIntersectingExtent=function(t,n){return this.forEachFeatureInExtent(t,function(i){var a=i.getGeometry();if(a.intersectsExtent(t)){var o=n(i);if(o)return o}})},e.prototype.getFeaturesCollection=function(){return this.featuresCollection_},e.prototype.getFeatures=function(){var t;return this.featuresCollection_?t=this.featuresCollection_.getArray().slice(0):this.featuresRtree_&&(t=this.featuresRtree_.getAll(),Uf(this.nullGeometryFeatures_)||Jr(t,KL(this.nullGeometryFeatures_))),t},e.prototype.getFeaturesAtCoordinate=function(t){var n=[];return this.forEachFeatureAtCoordinateDirect(t,function(i){n.push(i)}),n},e.prototype.getFeaturesInExtent=function(t){return this.featuresRtree_?this.featuresRtree_.getInExtent(t):this.featuresCollection_?this.featuresCollection_.getArray().slice(0):[]},e.prototype.getClosestFeatureToCoordinate=function(t,n){var i=t[0],a=t[1],o=null,s=[NaN,NaN],A=1/0,l=[-1/0,-1/0,1/0,1/0],u=n||il;return this.featuresRtree_.forEachInExtent(l,function(c){if(u(c)){var h=c.getGeometry(),f=A;if(A=h.closestPointXY(i,a,s,A),A<f){o=c;var p=Math.sqrt(A);l[0]=i-p,l[1]=a-p,l[2]=i+p,l[3]=a+p}}}),o},e.prototype.getExtent=function(t){return this.featuresRtree_.getExtent(t)},e.prototype.getFeatureById=function(t){var n=this.idIndex_[t.toString()];return n!==void 0?n:null},e.prototype.getFeatureByUid=function(t){var n=this.uidIndex_[t];return n!==void 0?n:null},e.prototype.getFormat=function(){return this.format_},e.prototype.getOverlaps=function(){return this.overlaps_},e.prototype.getUrl=function(){return this.url_},e.prototype.handleFeatureChange_=function(t){var n=t.target,i=Ee(n),a=n.getGeometry();if(!a)i in this.nullGeometryFeatures_||(this.featuresRtree_&&this.featuresRtree_.remove(n),this.nullGeometryFeatures_[i]=n);else{var o=a.getExtent();i in this.nullGeometryFeatures_?(delete this.nullGeometryFeatures_[i],this.featuresRtree_&&this.featuresRtree_.insert(o,n)):this.featuresRtree_&&this.featuresRtree_.update(o,n)}var s=n.getId();if(s!==void 0){var A=s.toString();this.idIndex_[A]!==n&&(this.removeFromIdIndex_(n),this.idIndex_[A]=n)}else this.removeFromIdIndex_(n),this.uidIndex_[i]=n;this.changed(),this.dispatchEvent(new ic(Gi.CHANGEFEATURE,n))},e.prototype.hasFeature=function(t){var n=t.getId();return n!==void 0?n in this.idIndex_:Ee(t)in this.uidIndex_},e.prototype.isEmpty=function(){return this.featuresRtree_?this.featuresRtree_.isEmpty()&&Uf(this.nullGeometryFeatures_):this.featuresCollection_?this.featuresCollection_.getLength()===0:!0},e.prototype.loadFeatures=function(t,n,i){for(var a=this.loadedExtentsRtree_,o=this.strategy_(t,n,i),s=function(c,h){var f=o[c],p=a.forEachInExtent(f,function(v){return us(v.extent,f)});p||(++A.loadingExtentsCount_,A.dispatchEvent(new ic(Gi.FEATURESLOADSTART)),A.loader_.call(A,f,n,i,function(v){--this.loadingExtentsCount_,this.dispatchEvent(new ic(Gi.FEATURESLOADEND,void 0,v))}.bind(A),function(){--this.loadingExtentsCount_,this.dispatchEvent(new ic(Gi.FEATURESLOADERROR))}.bind(A)),a.insert(f,{extent:f.slice()}))},A=this,l=0,u=o.length;l<u;++l)s(l);this.loading=this.loader_.length<4?!1:this.loadingExtentsCount_>0},e.prototype.refresh=function(){this.clear(!0),this.loadedExtentsRtree_.clear(),r.prototype.refresh.call(this)},e.prototype.removeLoadedExtent=function(t){var n=this.loadedExtentsRtree_,i;n.forEachInExtent(t,function(a){if(ul(a.extent,t))return i=a,!0}),i&&n.remove(i)},e.prototype.removeFeature=function(t){if(t){var n=Ee(t);n in this.nullGeometryFeatures_?delete this.nullGeometryFeatures_[n]:this.featuresRtree_&&this.featuresRtree_.remove(t);var i=this.removeFeatureInternal(t);i&&this.changed()}},e.prototype.removeFeatureInternal=function(t){var n=Ee(t),i=this.featureChangeKeys_[n];if(i){i.forEach(Wr),delete this.featureChangeKeys_[n];var a=t.getId();return a!==void 0&&delete this.idIndex_[a.toString()],delete this.uidIndex_[n],this.dispatchEvent(new ic(Gi.REMOVEFEATURE,t)),t}},e.prototype.removeFromIdIndex_=function(t){var n=!1;for(var i in this.idIndex_)if(this.idIndex_[i]===t){delete this.idIndex_[i],n=!0;break}return n},e.prototype.setLoader=function(t){this.loader_=t},e.prototype.setUrl=function(t){Le(this.format_,7),this.url_=t,this.setLoader(fN(t,this.format_))},e}(NE),Tu=rZ,V4=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Hr={POINT:"Point",LINE_STRING:"LineString",POLYGON:"Polygon",CIRCLE:"Circle"},e_={DRAWSTART:"drawstart",DRAWEND:"drawend",DRAWABORT:"drawabort"},r_=function(r){V4(e,r);function e(t,n){var i=r.call(this,t)||this;return i.feature=n,i}return e}(ko),nZ=function(r){V4(e,r);function e(t){var n=this,i=t;i.stopDown||(i.stopDown=qf),n=r.call(this,i)||this,n.on,n.once,n.un,n.shouldHandle_=!1,n.downPx_=null,n.downTimeout_,n.lastDragTime_,n.pointerType_,n.freehand_=!1,n.source_=t.source?t.source:null,n.features_=t.features?t.features:null,n.snapTolerance_=t.snapTolerance?t.snapTolerance:12,n.type_=t.type,n.mode_=aZ(n.type_),n.stopClick_=!!t.stopClick,n.minPoints_=t.minPoints?t.minPoints:n.mode_===Hr.POLYGON?3:2,n.maxPoints_=n.mode_===Hr.CIRCLE?2:t.maxPoints?t.maxPoints:1/0,n.finishCondition_=t.finishCondition?t.finishCondition:il;var a=t.geometryFunction;if(!a){var o=n.mode_;if(o===Hr.CIRCLE)a=function(A,l,u){var c=l||new _F([NaN,NaN]),h=On(A[0]),f=ou(h,On(A[A.length-1]));return c.setCenterAndRadius(h,Math.sqrt(f)),c};else{var s;o===Hr.POINT?s=Sr:o===Hr.LINE_STRING?s=tn:o===Hr.POLYGON&&(s=Pn),a=function(A,l,u){return l?o===Hr.POLYGON?A[0].length?l.setCoordinates([A[0].concat([A[0][0]])]):l.setCoordinates([]):l.setCoordinates(A):l=new s(A),l}}}return n.geometryFunction_=a,n.dragVertexDelay_=t.dragVertexDelay!==void 0?t.dragVertexDelay:500,n.finishCoordinate_=null,n.sketchFeature_=null,n.sketchPoint_=null,n.sketchCoords_=null,n.sketchLine_=null,n.sketchLineCoords_=null,n.squaredClickTolerance_=t.clickTolerance?t.clickTolerance*t.clickTolerance:36,n.overlay_=new dl({source:new Tu({useSpatialIndex:!1,wrapX:t.wrapX?t.wrapX:!1}),style:t.style?t.style:iZ(),updateWhileInteracting:!0}),n.geometryName_=t.geometryName,n.condition_=t.condition?t.condition:RE,n.freehandCondition_,t.freehand?n.freehandCondition_=FE:n.freehandCondition_=t.freehandCondition?t.freehandCondition:Hy,n.addChangeListener(nS.ACTIVE,n.updateState_),n}return e.prototype.setMap=function(t){r.prototype.setMap.call(this,t),this.updateState_()},e.prototype.getOverlay=function(){return this.overlay_},e.prototype.handleEvent=function(t){t.originalEvent.type===xe.CONTEXTMENU&&t.originalEvent.preventDefault(),this.freehand_=this.mode_!==Hr.POINT&&this.freehandCondition_(t);var n=t.type===mr.POINTERMOVE,i=!0;if(!this.freehand_&&this.lastDragTime_&&t.type===mr.POINTERDRAG){var a=Date.now();a-this.lastDragTime_>=this.dragVertexDelay_?(this.downPx_=t.pixel,this.shouldHandle_=!this.freehand_,n=!0):this.lastDragTime_=void 0,this.shouldHandle_&&this.downTimeout_!==void 0&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0)}return this.freehand_&&t.type===mr.POINTERDRAG&&this.sketchFeature_!==null?(this.addToDrawing_(t.coordinate),i=!1):this.freehand_&&t.type===mr.POINTERDOWN?i=!1:n&&this.getPointerCount()<2?(i=t.type===mr.POINTERMOVE,i&&this.freehand_?(this.handlePointerMove_(t),this.shouldHandle_&&t.originalEvent.preventDefault()):(t.originalEvent.pointerType==="mouse"||t.type===mr.POINTERDRAG&&this.downTimeout_===void 0)&&this.handlePointerMove_(t)):t.type===mr.DBLCLICK&&(i=!1),r.prototype.handleEvent.call(this,t)&&i},e.prototype.handleDownEvent=function(t){return this.shouldHandle_=!this.freehand_,this.freehand_?(this.downPx_=t.pixel,this.finishCoordinate_||this.startDrawing_(t.coordinate),!0):this.condition_(t)?(this.lastDragTime_=Date.now(),this.downTimeout_=setTimeout(function(){this.handlePointerMove_(new ql(mr.POINTERMOVE,t.map,t.originalEvent,!1,t.frameState))}.bind(this),this.dragVertexDelay_),this.downPx_=t.pixel,!0):(this.lastDragTime_=void 0,!1)},e.prototype.handleUpEvent=function(t){var n=!0;if(this.getPointerCount()===0)if(this.downTimeout_&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0),this.handlePointerMove_(t),this.shouldHandle_){var i=!this.finishCoordinate_;i&&this.startDrawing_(t.coordinate),!i&&this.freehand_?this.finishDrawing():!this.freehand_&&(!i||this.mode_===Hr.POINT)&&(this.atFinish_(t.pixel)?this.finishCondition_(t)&&this.finishDrawing():this.addToDrawing_(t.coordinate)),n=!1}else this.freehand_&&this.abortDrawing();return!n&&this.stopClick_&&t.preventDefault(),n},e.prototype.handlePointerMove_=function(t){if(this.pointerType_=t.originalEvent.pointerType,this.downPx_&&(!this.freehand_&&this.shouldHandle_||this.freehand_&&!this.shouldHandle_)){var n=this.downPx_,i=t.pixel,a=n[0]-i[0],o=n[1]-i[1],s=a*a+o*o;if(this.shouldHandle_=this.freehand_?s>this.squaredClickTolerance_:s<=this.squaredClickTolerance_,!this.shouldHandle_)return}this.finishCoordinate_?this.modifyDrawing_(t.coordinate):this.createOrUpdateSketchPoint_(t.coordinate.slice())},e.prototype.atFinish_=function(t){var n=!1;if(this.sketchFeature_){var i=!1,a=[this.finishCoordinate_],o=this.mode_;if(o===Hr.POINT)n=!0;else if(o===Hr.CIRCLE)n=this.sketchCoords_.length===2;else if(o===Hr.LINE_STRING)i=this.sketchCoords_.length>this.minPoints_;else if(o===Hr.POLYGON){var s=this.sketchCoords_;i=s[0].length>this.minPoints_,a=[s[0][0],s[0][s[0].length-2]]}if(i)for(var A=this.getMap(),l=0,u=a.length;l<u;l++){var c=a[l],h=A.getPixelFromCoordinate(c),f=t[0]-h[0],p=t[1]-h[1],v=this.freehand_?1:this.snapTolerance_;if(n=Math.sqrt(f*f+p*p)<=v,n){this.finishCoordinate_=c;break}}}return n},e.prototype.createOrUpdateSketchPoint_=function(t){if(!this.sketchPoint_)this.sketchPoint_=new yr(new Sr(t)),this.updateSketchFeatures_();else{var n=this.sketchPoint_.getGeometry();n.setCoordinates(t)}},e.prototype.createOrUpdateCustomSketchLine_=function(t){this.sketchLine_||(this.sketchLine_=new yr);var n=t.getLinearRing(0),i=this.sketchLine_.getGeometry();i?(i.setFlatCoordinates(n.getLayout(),n.getFlatCoordinates()),i.changed()):(i=new tn(n.getFlatCoordinates(),n.getLayout()),this.sketchLine_.setGeometry(i))},e.prototype.startDrawing_=function(t){var n=this.getMap().getView().getProjection();this.finishCoordinate_=t,this.mode_===Hr.POINT?this.sketchCoords_=t.slice():this.mode_===Hr.POLYGON?(this.sketchCoords_=[[t.slice(),t.slice()]],this.sketchLineCoords_=this.sketchCoords_[0]):this.sketchCoords_=[t.slice(),t.slice()],this.sketchLineCoords_&&(this.sketchLine_=new yr(new tn(this.sketchLineCoords_)));var i=this.geometryFunction_(this.sketchCoords_,void 0,n);this.sketchFeature_=new yr,this.geometryName_&&this.sketchFeature_.setGeometryName(this.geometryName_),this.sketchFeature_.setGeometry(i),this.updateSketchFeatures_(),this.dispatchEvent(new r_(e_.DRAWSTART,this.sketchFeature_))},e.prototype.modifyDrawing_=function(t){var n=this.getMap(),i=this.sketchFeature_.getGeometry(),a=n.getView().getProjection(),o,s;if(this.mode_===Hr.POINT?s=this.sketchCoords_:this.mode_===Hr.POLYGON?(o=this.sketchCoords_[0],s=o[o.length-1],this.atFinish_(n.getPixelFromCoordinate(t))&&(t=this.finishCoordinate_.slice())):(o=this.sketchCoords_,s=o[o.length-1]),s[0]=t[0],s[1]=t[1],this.geometryFunction_(this.sketchCoords_,i,a),this.sketchPoint_){var A=this.sketchPoint_.getGeometry();A.setCoordinates(t)}if(i.getType()===dt.POLYGON&&this.mode_!==Hr.POLYGON)this.createOrUpdateCustomSketchLine_(i);else if(this.sketchLineCoords_){var l=this.sketchLine_.getGeometry();l.setCoordinates(this.sketchLineCoords_)}this.updateSketchFeatures_()},e.prototype.addToDrawing_=function(t){var n=this.sketchFeature_.getGeometry(),i=this.getMap().getView().getProjection(),a,o,s=this.mode_;s===Hr.LINE_STRING||s===Hr.CIRCLE?(this.finishCoordinate_=t.slice(),o=this.sketchCoords_,o.length>=this.maxPoints_&&(this.freehand_?o.pop():a=!0),o.push(t.slice()),this.geometryFunction_(o,n,i)):s===Hr.POLYGON&&(o=this.sketchCoords_[0],o.length>=this.maxPoints_&&(this.freehand_?o.pop():a=!0),o.push(t.slice()),a&&(this.finishCoordinate_=o[0]),this.geometryFunction_(this.sketchCoords_,n,i)),this.createOrUpdateSketchPoint_(t.slice()),this.updateSketchFeatures_(),a&&this.finishDrawing()},e.prototype.removeLastPoint=function(){if(this.sketchFeature_){var t=this.sketchFeature_.getGeometry(),n=this.getMap().getView().getProjection(),i,a=this.mode_;if(a===Hr.LINE_STRING||a===Hr.CIRCLE){if(i=this.sketchCoords_,i.splice(-2,1),i.length>=2){this.finishCoordinate_=i[i.length-2].slice();var o=this.finishCoordinate_.slice();i[i.length-1]=o,this.createOrUpdateSketchPoint_(o)}this.geometryFunction_(i,t,n),t.getType()===dt.POLYGON&&this.sketchLine_&&this.createOrUpdateCustomSketchLine_(t)}else if(a===Hr.POLYGON){i=this.sketchCoords_[0],i.splice(-2,1);var s=this.sketchLine_.getGeometry();if(i.length>=2){var o=i[i.length-2].slice();i[i.length-1]=o,this.createOrUpdateSketchPoint_(o)}s.setCoordinates(i),this.geometryFunction_(this.sketchCoords_,t,n)}i.length===1&&this.abortDrawing(),this.updateSketchFeatures_()}},e.prototype.finishDrawing=function(){var t=this.abortDrawing_();if(t){var n=this.sketchCoords_,i=t.getGeometry(),a=this.getMap().getView().getProjection();this.mode_===Hr.LINE_STRING?(n.pop(),this.geometryFunction_(n,i,a)):this.mode_===Hr.POLYGON&&(n[0].pop(),this.geometryFunction_(n,i,a),n=i.getCoordinates()),this.type_===dt.MULTI_POINT?t.setGeometry(new Qs([n])):this.type_===dt.MULTI_LINE_STRING?t.setGeometry(new Wa([n])):this.type_===dt.MULTI_POLYGON&&t.setGeometry(new za([n])),this.dispatchEvent(new r_(e_.DRAWEND,t)),this.features_&&this.features_.push(t),this.source_&&this.source_.addFeature(t)}},e.prototype.abortDrawing_=function(){this.finishCoordinate_=null;var t=this.sketchFeature_;return this.sketchFeature_=null,this.sketchPoint_=null,this.sketchLine_=null,this.overlay_.getSource().clear(!0),t},e.prototype.abortDrawing=function(){var t=this.abortDrawing_();t&&this.dispatchEvent(new r_(e_.DRAWABORT,t))},e.prototype.appendCoordinates=function(t){var n=this.mode_,i=!this.sketchFeature_;i&&this.startDrawing_(t[0]);var a;if(n===Hr.LINE_STRING||n===Hr.CIRCLE)a=this.sketchCoords_;else if(n===Hr.POLYGON)a=this.sketchCoords_&&this.sketchCoords_.length?this.sketchCoords_[0]:[];else return;i&&a.shift(),a.pop();for(var o=0;o<t.length;o++)this.addToDrawing_(t[o]);var s=t[t.length-1];this.addToDrawing_(s),this.modifyDrawing_(s)},e.prototype.extend=function(t){var n=t.getGeometry(),i=n;this.sketchFeature_=t,this.sketchCoords_=i.getCoordinates();var a=this.sketchCoords_[this.sketchCoords_.length-1];this.finishCoordinate_=a.slice(),this.sketchCoords_.push(a.slice()),this.sketchPoint_=new yr(new Sr(a)),this.updateSketchFeatures_(),this.dispatchEvent(new r_(e_.DRAWSTART,this.sketchFeature_))},e.prototype.updateSketchFeatures_=function(){var t=[];this.sketchFeature_&&t.push(this.sketchFeature_),this.sketchLine_&&t.push(this.sketchLine_),this.sketchPoint_&&t.push(this.sketchPoint_);var n=this.overlay_.getSource();n.clear(!0),n.addFeatures(t)},e.prototype.updateState_=function(){var t=this.getMap(),n=this.getActive();(!t||!n)&&this.abortDrawing(),this.overlay_.setMap(n?t:null)},e}(ms);function iZ(){var r=wF();return function(e,t){return r[e.getGeometry().getType()]}}function aZ(r){switch(r){case dt.POINT:case dt.MULTI_POINT:return Hr.POINT;case dt.LINE_STRING:case dt.MULTI_LINE_STRING:return Hr.LINE_STRING;case dt.POLYGON:case dt.MULTI_POLYGON:return Hr.POLYGON;case dt.CIRCLE:return Hr.CIRCLE;default:throw new Error("Invalid type: "+r)}}var TF=nZ,j4=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),pN=0,Tm=1,dN=[0,0,0,0],Hd=[],UB={MODIFYSTART:"modifystart",MODIFYEND:"modifyend"},DB=function(r){j4(e,r);function e(t,n,i){var a=r.call(this,t)||this;return a.features=n,a.mapBrowserEvent=i,a}return e}(ko),oZ=function(r){j4(e,r);function e(t){var n=r.call(this,t)||this;n.on,n.once,n.un,n.boundHandleFeatureChange_=n.handleFeatureChange_.bind(n),n.condition_=t.condition?t.condition:yF,n.defaultDeleteCondition_=function(a){return E4(a)&&OE(a)},n.deleteCondition_=t.deleteCondition?t.deleteCondition:n.defaultDeleteCondition_,n.insertVertexCondition_=t.insertVertexCondition?t.insertVertexCondition:FE,n.vertexFeature_=null,n.vertexSegments_=null,n.lastPixel_=[0,0],n.ignoreNextSingleClick_=!1,n.featuresBeingModified_=null,n.rBush_=new aw,n.pixelTolerance_=t.pixelTolerance!==void 0?t.pixelTolerance:10,n.snappedToVertex_=!1,n.changingFeature_=!1,n.dragSegments_=[],n.overlay_=new dl({source:new Tu({useSpatialIndex:!1,wrapX:!!t.wrapX}),style:t.style?t.style:AZ(),updateWhileAnimating:!0,updateWhileInteracting:!0}),n.SEGMENT_WRITERS_={Point:n.writePointGeometry_.bind(n),LineString:n.writeLineStringGeometry_.bind(n),LinearRing:n.writeLineStringGeometry_.bind(n),Polygon:n.writePolygonGeometry_.bind(n),MultiPoint:n.writeMultiPointGeometry_.bind(n),MultiLineString:n.writeMultiLineStringGeometry_.bind(n),MultiPolygon:n.writeMultiPolygonGeometry_.bind(n),Circle:n.writeCircleGeometry_.bind(n),GeometryCollection:n.writeGeometryCollectionGeometry_.bind(n)},n.source_=null,n.hitDetection_=null;var i;if(t.features?i=t.features:t.source&&(n.source_=t.source,i=new bi(n.source_.getFeatures()),n.source_.addEventListener(Gi.ADDFEATURE,n.handleSourceAdd_.bind(n)),n.source_.addEventListener(Gi.REMOVEFEATURE,n.handleSourceRemove_.bind(n))),!i)throw new Error("The modify interaction requires features, a source or a layer");return t.hitDetection&&(n.hitDetection_=t.hitDetection),n.features_=i,n.features_.forEach(n.addFeature_.bind(n)),n.features_.addEventListener(ai.ADD,n.handleFeatureAdd_.bind(n)),n.features_.addEventListener(ai.REMOVE,n.handleFeatureRemove_.bind(n)),n.lastPointerEvent_=null,n.delta_=[0,0],n.snapToPointer_=t.snapToPointer===void 0?!n.hitDetection_:t.snapToPointer,n}return e.prototype.addFeature_=function(t){var n=t.getGeometry();if(n){var i=this.SEGMENT_WRITERS_[n.getType()];i&&i(t,n)}var a=this.getMap();a&&a.isRendered()&&this.getActive()&&this.handlePointerAtPixel_(this.lastPixel_,a),t.addEventListener(xe.CHANGE,this.boundHandleFeatureChange_)},e.prototype.willModifyFeatures_=function(t,n){if(!this.featuresBeingModified_){this.featuresBeingModified_=new bi;for(var i=this.featuresBeingModified_.getArray(),a=0,o=n.length;a<o;++a)for(var s=n[a],A=0,l=s.length;A<l;++A){var u=s[A].feature;u&&i.indexOf(u)===-1&&this.featuresBeingModified_.push(u)}this.featuresBeingModified_.getLength()===0?this.featuresBeingModified_=null:this.dispatchEvent(new DB(UB.MODIFYSTART,this.featuresBeingModified_,t))}},e.prototype.removeFeature_=function(t){this.removeFeatureSegmentData_(t),this.vertexFeature_&&this.features_.getLength()===0&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),t.removeEventListener(xe.CHANGE,this.boundHandleFeatureChange_)},e.prototype.removeFeatureSegmentData_=function(t){var n=this.rBush_,i=[];n.forEach(function(A){t===A.feature&&i.push(A)});for(var a=i.length-1;a>=0;--a){for(var o=i[a],s=this.dragSegments_.length-1;s>=0;--s)this.dragSegments_[s][0]===o&&this.dragSegments_.splice(s,1);n.remove(o)}},e.prototype.setActive=function(t){this.vertexFeature_&&!t&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),r.prototype.setActive.call(this,t)},e.prototype.setMap=function(t){this.overlay_.setMap(t),r.prototype.setMap.call(this,t)},e.prototype.getOverlay=function(){return this.overlay_},e.prototype.handleSourceAdd_=function(t){t.feature&&this.features_.push(t.feature)},e.prototype.handleSourceRemove_=function(t){t.feature&&this.features_.remove(t.feature)},e.prototype.handleFeatureAdd_=function(t){this.addFeature_(t.element)},e.prototype.handleFeatureChange_=function(t){if(!this.changingFeature_){var n=t.target;this.removeFeature_(n),this.addFeature_(n)}},e.prototype.handleFeatureRemove_=function(t){var n=t.element;this.removeFeature_(n)},e.prototype.writePointGeometry_=function(t,n){var i=n.getCoordinates(),a={feature:t,geometry:n,segment:[i,i]};this.rBush_.insert(n.getExtent(),a)},e.prototype.writeMultiPointGeometry_=function(t,n){for(var i=n.getCoordinates(),a=0,o=i.length;a<o;++a){var s=i[a],A={feature:t,geometry:n,depth:[a],index:a,segment:[s,s]};this.rBush_.insert(n.getExtent(),A)}},e.prototype.writeLineStringGeometry_=function(t,n){for(var i=n.getCoordinates(),a=0,o=i.length-1;a<o;++a){var s=i.slice(a,a+2),A={feature:t,geometry:n,index:a,segment:s};this.rBush_.insert(ia(s),A)}},e.prototype.writeMultiLineStringGeometry_=function(t,n){for(var i=n.getCoordinates(),a=0,o=i.length;a<o;++a)for(var s=i[a],A=0,l=s.length-1;A<l;++A){var u=s.slice(A,A+2),c={feature:t,geometry:n,depth:[a],index:A,segment:u};this.rBush_.insert(ia(u),c)}},e.prototype.writePolygonGeometry_=function(t,n){for(var i=n.getCoordinates(),a=0,o=i.length;a<o;++a)for(var s=i[a],A=0,l=s.length-1;A<l;++A){var u=s.slice(A,A+2),c={feature:t,geometry:n,depth:[a],index:A,segment:u};this.rBush_.insert(ia(u),c)}},e.prototype.writeMultiPolygonGeometry_=function(t,n){for(var i=n.getCoordinates(),a=0,o=i.length;a<o;++a)for(var s=i[a],A=0,l=s.length;A<l;++A)for(var u=s[A],c=0,h=u.length-1;c<h;++c){var f=u.slice(c,c+2),p={feature:t,geometry:n,depth:[A,a],index:c,segment:f};this.rBush_.insert(ia(f),p)}},e.prototype.writeCircleGeometry_=function(t,n){var i=n.getCenter(),a={feature:t,geometry:n,index:pN,segment:[i,i]},o={feature:t,geometry:n,index:Tm,segment:[i,i]},s=[a,o];a.featureSegments=s,o.featureSegments=s,this.rBush_.insert(mf(i),a);var A=n;this.rBush_.insert(A.getExtent(),o)},e.prototype.writeGeometryCollectionGeometry_=function(t,n){for(var i=n.getGeometriesArray(),a=0;a<i.length;++a){var o=i[a],s=this.SEGMENT_WRITERS_[o.getType()];s(t,o)}},e.prototype.createOrUpdateVertexFeature_=function(t,n,i){var a=this.vertexFeature_;if(!a)a=new yr(new Sr(t)),this.vertexFeature_=a,this.overlay_.getSource().addFeature(a);else{var o=a.getGeometry();o.setCoordinates(t)}return a.set("features",n),a.set("geometries",i),a},e.prototype.handleEvent=function(t){if(!t.originalEvent)return!0;this.lastPointerEvent_=t;var n;return!t.map.getView().getInteracting()&&t.type==mr.POINTERMOVE&&!this.handlingDownUpSequence&&this.handlePointerMove_(t),this.vertexFeature_&&this.deleteCondition_(t)&&(t.type!=mr.SINGLECLICK||!this.ignoreNextSingleClick_?n=this.removePoint():n=!0),t.type==mr.SINGLECLICK&&(this.ignoreNextSingleClick_=!1),r.prototype.handleEvent.call(this,t)&&!n},e.prototype.handleDragEvent=function(t){this.ignoreNextSingleClick_=!1,this.willModifyFeatures_(t,this.dragSegments_);for(var n=[t.coordinate[0]+this.delta_[0],t.coordinate[1]+this.delta_[1]],i=[],a=[],o=0,s=this.dragSegments_.length;o<s;++o){var A=this.dragSegments_[o],l=A[0],u=l.feature;i.indexOf(u)===-1&&i.push(u);var c=l.geometry;a.indexOf(c)===-1&&a.push(c);for(var h=l.depth,f=void 0,p=l.segment,v=A[1];n.length<c.getStride();)n.push(p[v][n.length]);switch(c.getType()){case dt.POINT:f=n,p[0]=n,p[1]=n;break;case dt.MULTI_POINT:f=c.getCoordinates(),f[l.index]=n,p[0]=n,p[1]=n;break;case dt.LINE_STRING:f=c.getCoordinates(),f[l.index+v]=n,p[v]=n;break;case dt.MULTI_LINE_STRING:f=c.getCoordinates(),f[h[0]][l.index+v]=n,p[v]=n;break;case dt.POLYGON:f=c.getCoordinates(),f[h[0]][l.index+v]=n,p[v]=n;break;case dt.MULTI_POLYGON:f=c.getCoordinates(),f[h[1]][h[0]][l.index+v]=n,p[v]=n;break;case dt.CIRCLE:if(p[0]=n,p[1]=n,l.index===pN)this.changingFeature_=!0,c.setCenter(n),this.changingFeature_=!1;else{this.changingFeature_=!0;var m=t.map.getView().getProjection(),g=PM(On(c.getCenter()),On(n)),_=Qf();if(_){var w=c.clone().transform(_,m);w.setRadius(g),g=w.transform(m,_).getRadius()}c.setRadius(g),this.changingFeature_=!1}break}f&&this.setGeometryCoordinates_(c,f)}this.createOrUpdateVertexFeature_(n,i,a)},e.prototype.handleDownEvent=function(t){if(!this.condition_(t))return!1;var n=t.coordinate;this.handlePointerAtPixel_(t.pixel,t.map,n),this.dragSegments_.length=0,this.featuresBeingModified_=null;var i=this.vertexFeature_;if(i){var a=t.map.getView().getProjection(),o=[],s=i.getGeometry().getCoordinates(),A=ia([s]),l=this.rBush_.getInExtent(A),u={};l.sort(sZ);for(var c=0,h=l.length;c<h;++c){var f=l[c],p=f.segment,v=Ee(f.geometry),m=f.depth;if(m&&(v+="-"+m.join("-")),u[v]||(u[v]=new Array(2)),f.geometry.getType()===dt.CIRCLE&&f.index===Tm){var g=gN(n,f,a);oA(g,s)&&!u[v][0]&&(this.dragSegments_.push([f,0]),u[v][0]=f);continue}if(oA(p[0],s)&&!u[v][0]){this.dragSegments_.push([f,0]),u[v][0]=f;continue}if(oA(p[1],s)&&!u[v][1]){if((f.geometry.getType()===dt.LINE_STRING||f.geometry.getType()===dt.MULTI_LINE_STRING)&&u[v][0]&&u[v][0].index===0)continue;this.dragSegments_.push([f,1]),u[v][1]=f;continue}Ee(p)in this.vertexSegments_&&!u[v][0]&&!u[v][1]&&this.insertVertexCondition_(t)&&o.push(f)}o.length&&this.willModifyFeatures_(t,[o]);for(var _=o.length-1;_>=0;--_)this.insertVertex_(o[_],s)}return!!this.vertexFeature_},e.prototype.handleUpEvent=function(t){for(var n=this.dragSegments_.length-1;n>=0;--n){var i=this.dragSegments_[n][0],a=i.geometry;if(a.getType()===dt.CIRCLE){var o=a.getCenter(),s=i.featureSegments[0],A=i.featureSegments[1];s.segment[0]=o,s.segment[1]=o,A.segment[0]=o,A.segment[1]=o,this.rBush_.update(mf(o),s);var l=a,u=Qf();if(u){var c=t.map.getView().getProjection();l=l.clone().transform(u,c),l=c4(l).transform(c,u)}this.rBush_.update(l.getExtent(),A)}else this.rBush_.update(ia(i.segment),i)}return this.featuresBeingModified_&&(this.dispatchEvent(new DB(UB.MODIFYEND,this.featuresBeingModified_,t)),this.featuresBeingModified_=null),!1},e.prototype.handlePointerMove_=function(t){this.lastPixel_=t.pixel,this.handlePointerAtPixel_(t.pixel,t.map,t.coordinate)},e.prototype.handlePointerAtPixel_=function(t,n,i){var a=this,o=i||n.getCoordinateFromPixel(t),s=n.getView().getProjection(),A=function(U,tt){return vN(o,U,s)-vN(o,tt,s)},l,u;if(this.hitDetection_){var c=typeof this.hitDetection_=="object"?function(U){return U===a.hitDetection_}:void 0;n.forEachFeatureAtPixel(t,function(U,tt,q){if(q=q||U.getGeometry(),q.getType()===dt.POINT&&Ri(a.features_.getArray(),U)){u=q;var rt=q.getFlatCoordinates().slice(0,2);l=[{feature:U,geometry:q,segment:[rt,rt]}]}return!0},{layerFilter:c})}if(!l){var h=cs(mf(o,dN)),f=n.getView().getResolution()*this.pixelTolerance_,p=bE(go(h,f,dN));l=this.rBush_.getInExtent(p)}if(l&&l.length>0){var v=l.sort(A)[0],m=v.segment,g=gN(o,v,s),_=n.getPixelFromCoordinate(g),w=PM(t,_);if(u||w<=this.pixelTolerance_){var C={};if(C[Ee(m)]=!0,this.snapToPointer_||(this.delta_[0]=g[0]-o[0],this.delta_[1]=g[1]-o[1]),v.geometry.getType()===dt.CIRCLE&&v.index===Tm)this.snappedToVertex_=!0,this.createOrUpdateVertexFeature_(g,[v.feature],[v.geometry]);else{var F=n.getPixelFromCoordinate(m[0]),O=n.getPixelFromCoordinate(m[1]),I=ou(_,F),b=ou(_,O);w=Math.sqrt(Math.min(I,b)),this.snappedToVertex_=w<=this.pixelTolerance_,this.snappedToVertex_&&(g=I>b?m[1]:m[0]),this.createOrUpdateVertexFeature_(g,[v.feature],[v.geometry]);var L={};L[Ee(v.geometry)]=!0;for(var N=1,x=l.length;N<x;++N){var S=l[N].segment;if(oA(m[0],S[0])&&oA(m[1],S[1])||oA(m[0],S[1])&&oA(m[1],S[0])){var P=Ee(l[N].geometry);P in L||(L[P]=!0,C[Ee(S)]=!0)}else break}}this.vertexSegments_=C;return}}this.vertexFeature_&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null)},e.prototype.insertVertex_=function(t,n){for(var i=t.segment,a=t.feature,o=t.geometry,s=t.depth,A=t.index,l;n.length<o.getStride();)n.push(0);switch(o.getType()){case dt.MULTI_LINE_STRING:l=o.getCoordinates(),l[s[0]].splice(A+1,0,n);break;case dt.POLYGON:l=o.getCoordinates(),l[s[0]].splice(A+1,0,n);break;case dt.MULTI_POLYGON:l=o.getCoordinates(),l[s[1]][s[0]].splice(A+1,0,n);break;case dt.LINE_STRING:l=o.getCoordinates(),l.splice(A+1,0,n);break;default:return}this.setGeometryCoordinates_(o,l);var u=this.rBush_;u.remove(t),this.updateSegmentIndices_(o,A,s,1);var c={segment:[i[0],n],feature:a,geometry:o,depth:s,index:A};u.insert(ia(c.segment),c),this.dragSegments_.push([c,1]);var h={segment:[n,i[1]],feature:a,geometry:o,depth:s,index:A+1};u.insert(ia(h.segment),h),this.dragSegments_.push([h,0]),this.ignoreNextSingleClick_=!0},e.prototype.removePoint=function(){if(this.lastPointerEvent_&&this.lastPointerEvent_.type!=mr.POINTERDRAG){var t=this.lastPointerEvent_;this.willModifyFeatures_(t,this.dragSegments_);var n=this.removeVertex_();return this.featuresBeingModified_&&this.dispatchEvent(new DB(UB.MODIFYEND,this.featuresBeingModified_,t)),this.featuresBeingModified_=null,n}return!1},e.prototype.removeVertex_=function(){var t=this.dragSegments_,n={},i=!1,a,o,s,A,l,u,c,h,f,p,v;for(l=t.length-1;l>=0;--l)s=t[l],p=s[0],v=Ee(p.feature),p.depth&&(v+="-"+p.depth.join("-")),v in n||(n[v]={}),s[1]===0?(n[v].right=p,n[v].index=p.index):s[1]==1&&(n[v].left=p,n[v].index=p.index+1);for(v in n){switch(f=n[v].right,c=n[v].left,u=n[v].index,h=u-1,c!==void 0?p=c:p=f,h<0&&(h=0),A=p.geometry,o=A.getCoordinates(),a=o,i=!1,A.getType()){case dt.MULTI_LINE_STRING:o[p.depth[0]].length>2&&(o[p.depth[0]].splice(u,1),i=!0);break;case dt.LINE_STRING:o.length>2&&(o.splice(u,1),i=!0);break;case dt.MULTI_POLYGON:a=a[p.depth[1]];case dt.POLYGON:a=a[p.depth[0]],a.length>4&&(u==a.length-1&&(u=0),a.splice(u,1),i=!0,u===0&&(a.pop(),a.push(a[0]),h=a.length-1));break}if(i){this.setGeometryCoordinates_(A,o);var m=[];if(c!==void 0&&(this.rBush_.remove(c),m.push(c.segment[0])),f!==void 0&&(this.rBush_.remove(f),m.push(f.segment[1])),c!==void 0&&f!==void 0){var g={depth:p.depth,feature:p.feature,geometry:p.geometry,index:h,segment:m};this.rBush_.insert(ia(g.segment),g)}this.updateSegmentIndices_(A,u,p.depth,-1),this.vertexFeature_&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),t.length=0}}return i},e.prototype.setGeometryCoordinates_=function(t,n){this.changingFeature_=!0,t.setCoordinates(n),this.changingFeature_=!1},e.prototype.updateSegmentIndices_=function(t,n,i,a){this.rBush_.forEachInExtent(t.getExtent(),function(o){o.geometry===t&&(i===void 0||o.depth===void 0||Cu(o.depth,i))&&o.index>n&&(o.index+=a)})},e}(ms);function sZ(r,e){return r.index-e.index}function vN(r,e,t){var n=e.geometry;if(n.getType()===dt.CIRCLE){var i=n;if(e.index===Tm){var a=Qf();a&&(i=i.clone().transform(a,t));var o=ou(i.getCenter(),On(r)),s=Math.sqrt(o)-i.getRadius();return s*s}}var A=On(r);return Hd[0]=On(e.segment[0]),Hd[1]=On(e.segment[1]),KY(A,Hd)}function gN(r,e,t){var n=e.geometry;if(n.getType()===dt.CIRCLE&&e.index===Tm){var i=n,a=Qf();return a&&(i=i.clone().transform(a,t)),av(i.getClosestPoint(On(r)))}var o=On(r);return Hd[0]=On(e.segment[0]),Hd[1]=On(e.segment[1]),av(WL(o,Hd))}function AZ(){var r=wF();return function(e,t){return r[dt.POINT]}}var bF=oZ,K4=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),lZ={SELECT:"select"},uZ=function(r){K4(e,r);function e(t,n,i,a){var o=r.call(this,t)||this;return o.selected=n,o.deselected=i,o.mapBrowserEvent=a,o}return e}(ko),n_={},cZ=function(r){K4(e,r);function e(t){var n=r.call(this)||this;n.on,n.once,n.un;var i=t||{};n.boundAddFeature_=n.addFeature_.bind(n),n.boundRemoveFeature_=n.removeFeature_.bind(n),n.condition_=i.condition?i.condition:OE,n.addCondition_=i.addCondition?i.addCondition:iS,n.removeCondition_=i.removeCondition?i.removeCondition:iS,n.toggleCondition_=i.toggleCondition?i.toggleCondition:Hy,n.multi_=i.multi?i.multi:!1,n.filter_=i.filter?i.filter:il,n.hitTolerance_=i.hitTolerance?i.hitTolerance:0,n.style_=i.style!==void 0?i.style:hZ(),n.features_=i.features||new bi;var a;if(i.layers)if(typeof i.layers=="function")a=i.layers;else{var o=i.layers;a=function(s){return Ri(o,s)}}else a=il;return n.layerFilter_=a,n.featureLayerAssociation_={},n}return e.prototype.addFeatureLayerAssociation_=function(t,n){this.featureLayerAssociation_[Ee(t)]=n},e.prototype.getFeatures=function(){return this.features_},e.prototype.getHitTolerance=function(){return this.hitTolerance_},e.prototype.getLayer=function(t){return this.featureLayerAssociation_[Ee(t)]},e.prototype.setHitTolerance=function(t){this.hitTolerance_=t},e.prototype.setMap=function(t){var n=this.getMap();n&&this.style_&&this.features_.forEach(this.restorePreviousStyle_.bind(this)),r.prototype.setMap.call(this,t),t?(this.features_.addEventListener(ai.ADD,this.boundAddFeature_),this.features_.addEventListener(ai.REMOVE,this.boundRemoveFeature_),this.style_&&this.features_.forEach(this.applySelectedStyle_.bind(this))):(this.features_.removeEventListener(ai.ADD,this.boundAddFeature_),this.features_.removeEventListener(ai.REMOVE,this.boundRemoveFeature_))},e.prototype.addFeature_=function(t){var n=t.element;if(this.style_&&this.applySelectedStyle_(n),!this.getLayer(n)){var i=this.getMap().getAllLayers().find(function(a){if(a instanceof dl&&a.getSource()&&a.getSource().hasFeature(n))return a});i&&this.addFeatureLayerAssociation_(n,i)}},e.prototype.removeFeature_=function(t){var n=t.element;this.style_&&this.restorePreviousStyle_(n)},e.prototype.getStyle=function(){return this.style_},e.prototype.applySelectedStyle_=function(t){var n=Ee(t);n in n_||(n_[n]=t.getStyle()),t.setStyle(this.style_)},e.prototype.restorePreviousStyle_=function(t){for(var n=this.getMap().getInteractions().getArray(),i=n.length-1;i>=0;--i){var a=n[i];if(a!==this&&a instanceof e&&a.getStyle()&&a.getFeatures().getArray().lastIndexOf(t)!==-1){t.setStyle(a.getStyle());return}}var o=Ee(t);t.setStyle(n_[o]),delete n_[o]},e.prototype.removeFeatureLayerAssociation_=function(t){delete this.featureLayerAssociation_[Ee(t)]},e.prototype.handleEvent=function(t){if(!this.condition_(t))return!0;var n=this.addCondition_(t),i=this.removeCondition_(t),a=this.toggleCondition_(t),o=!n&&!i&&!a,s=t.map,A=this.getFeatures(),l=[],u=[];if(o){Zf(this.featureLayerAssociation_),s.forEachFeatureAtPixel(t.pixel,function(v,m){if(this.filter_(v,m))return this.addFeatureLayerAssociation_(v,m),u.push(v),!this.multi_}.bind(this),{layerFilter:this.layerFilter_,hitTolerance:this.hitTolerance_});for(var c=A.getLength()-1;c>=0;--c){var h=A.item(c),f=u.indexOf(h);f>-1?u.splice(f,1):(A.remove(h),l.push(h))}u.length!==0&&A.extend(u)}else{s.forEachFeatureAtPixel(t.pixel,function(v,m){if(this.filter_(v,m))return(n||a)&&!Ri(A.getArray(),v)?(this.addFeatureLayerAssociation_(v,m),u.push(v)):(i||a)&&Ri(A.getArray(),v)&&(l.push(v),this.removeFeatureLayerAssociation_(v)),!this.multi_}.bind(this),{layerFilter:this.layerFilter_,hitTolerance:this.hitTolerance_});for(var p=l.length-1;p>=0;--p)A.remove(l[p]);A.extend(u)}return(u.length>0||l.length>0)&&this.dispatchEvent(new uZ(lZ.SELECT,u,l,t)),!0},e}(Lv);function hZ(){var r=wF();return Jr(r[dt.POLYGON],r[dt.LINE_STRING]),Jr(r[dt.GEOMETRY_COLLECTION],r[dt.LINE_STRING]),function(e){return e.getGeometry()?r[e.getGeometry().getType()]:null}}var PE=cZ,fZ=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();function mN(r){if(r.feature)return r.feature;if(r.element)return r.element}var QB=[],pZ=function(r){fZ(e,r);function e(t){var n=this,i=t||{},a=i;return a.handleDownEvent||(a.handleDownEvent=il),a.stopDown||(a.stopDown=qf),n=r.call(this,a)||this,n.source_=i.source?i.source:null,n.vertex_=i.vertex!==void 0?i.vertex:!0,n.edge_=i.edge!==void 0?i.edge:!0,n.features_=i.features?i.features:null,n.featuresListenerKeys_=[],n.featureChangeListenerKeys_={},n.indexedFeaturesExtents_={},n.pendingFeatures_={},n.pixelTolerance_=i.pixelTolerance!==void 0?i.pixelTolerance:10,n.rBush_=new aw,n.GEOMETRY_SEGMENTERS_={Point:n.segmentPointGemetry_.bind(n),LineString:n.segmentLineStringGemetry_.bind(n),LinearRing:n.segmentLineStringGemetry_.bind(n),Polygon:n.segmentPolygonGemetry_.bind(n),MultiPoint:n.segmentMultiPointGemetry_.bind(n),MultiLineString:n.segmentMultiLineStringGemetry_.bind(n),MultiPolygon:n.segmentMultiPolygonGemetry_.bind(n),GeometryCollection:n.segmentGeometryCollectionGemetry_.bind(n),Circle:n.segmentCircleGemetry_.bind(n)},n}return e.prototype.addFeature=function(t,n){var i=n!==void 0?n:!0,a=Ee(t),o=t.getGeometry();if(o){var s=this.GEOMETRY_SEGMENTERS_[o.getType()];if(s){this.indexedFeaturesExtents_[a]=o.getExtent(Ni());var A=[];if(s(A,o),A.length===1)this.rBush_.insert(ia(A[0]),{feature:t,segment:A[0]});else if(A.length>1){var l=A.map(function(c){return ia(c)}),u=A.map(function(c){return{feature:t,segment:c}});this.rBush_.load(l,u)}}}i&&(this.featureChangeListenerKeys_[a]=je(t,xe.CHANGE,this.handleFeatureChange_,this))},e.prototype.forEachFeatureAdd_=function(t){this.addFeature(t)},e.prototype.forEachFeatureRemove_=function(t){this.removeFeature(t)},e.prototype.getFeatures_=function(){var t;return this.features_?t=this.features_:this.source_&&(t=this.source_.getFeatures()),t},e.prototype.handleEvent=function(t){var n=this.snapTo(t.pixel,t.coordinate,t.map);return n&&(t.coordinate=n.vertex.slice(0,2),t.pixel=n.vertexPixel),r.prototype.handleEvent.call(this,t)},e.prototype.handleFeatureAdd_=function(t){var n=mN(t);this.addFeature(n)},e.prototype.handleFeatureRemove_=function(t){var n=mN(t);this.removeFeature(n)},e.prototype.handleFeatureChange_=function(t){var n=t.target;if(this.handlingDownUpSequence){var i=Ee(n);i in this.pendingFeatures_||(this.pendingFeatures_[i]=n)}else this.updateFeature_(n)},e.prototype.handleUpEvent=function(t){var n=KL(this.pendingFeatures_);return n.length&&(n.forEach(this.updateFeature_.bind(this)),this.pendingFeatures_={}),!1},e.prototype.removeFeature=function(t,n){var i=n!==void 0?n:!0,a=Ee(t),o=this.indexedFeaturesExtents_[a];if(o){var s=this.rBush_,A=[];s.forEachInExtent(o,function(u){t===u.feature&&A.push(u)});for(var l=A.length-1;l>=0;--l)s.remove(A[l])}i&&(Wr(this.featureChangeListenerKeys_[a]),delete this.featureChangeListenerKeys_[a])},e.prototype.setMap=function(t){var n=this.getMap(),i=this.featuresListenerKeys_,a=this.getFeatures_();n&&(i.forEach(Wr),i.length=0,a.forEach(this.forEachFeatureRemove_.bind(this))),r.prototype.setMap.call(this,t),t&&(this.features_?i.push(je(this.features_,ai.ADD,this.handleFeatureAdd_,this),je(this.features_,ai.REMOVE,this.handleFeatureRemove_,this)):this.source_&&i.push(je(this.source_,Gi.ADDFEATURE,this.handleFeatureAdd_,this),je(this.source_,Gi.REMOVEFEATURE,this.handleFeatureRemove_,this)),a.forEach(this.forEachFeatureAdd_.bind(this)))},e.prototype.snapTo=function(t,n,i){var a=i.getCoordinateFromPixel([t[0]-this.pixelTolerance_,t[1]+this.pixelTolerance_]),o=i.getCoordinateFromPixel([t[0]+this.pixelTolerance_,t[1]-this.pixelTolerance_]),s=ia([a,o]),A=this.rBush_.getInExtent(s),l=A.length;if(l===0)return null;var u=i.getView().getProjection(),c=On(n),h,f=1/0,p=this.pixelTolerance_*this.pixelTolerance_,v=function(){if(h){var N=i.getPixelFromCoordinate(h),x=ou(t,N);if(x<=p)return{vertex:h,vertexPixel:[Math.round(N[0]),Math.round(N[1])]}}return null};if(this.vertex_){for(var m=0;m<l;++m){var g=A[m];g.feature.getGeometry().getType()!==dt.CIRCLE&&g.segment.forEach(function(N){var x=On(N),S=ou(c,x);S<f&&(h=N,f=S)})}var _=v();if(_)return _}if(this.edge_){for(var m=0;m<l;++m){var w=null,g=A[m];if(g.feature.getGeometry().getType()===dt.CIRCLE){var C=g.feature.getGeometry(),F=Qf();F&&(C=C.clone().transform(F,u)),w=av(jY(c,C))}else{var O=g.segment,I=O[0],b=O[1];b&&(QB[0]=On(I),QB[1]=On(b),w=WL(c,QB))}if(w){var L=ou(c,w);L<f&&(h=w,f=L)}}var _=v();if(_)return _}return null},e.prototype.updateFeature_=function(t){this.removeFeature(t,!1),this.addFeature(t,!1)},e.prototype.segmentCircleGemetry_=function(t,n){this.getMap().getView().getProjection();for(var i=n,a=c4(i),o=a.getCoordinates()[0],s=0,A=o.length-1;s<A;++s)t.push(o.slice(s,s+2))},e.prototype.segmentGeometryCollectionGemetry_=function(t,n){for(var i=n.getGeometriesArray(),a=0;a<i.length;++a){var o=this.GEOMETRY_SEGMENTERS_[i[a].getType()];o&&o(t,i[a])}},e.prototype.segmentLineStringGemetry_=function(t,n){for(var i=n.getCoordinates(),a=0,o=i.length-1;a<o;++a)t.push(i.slice(a,a+2))},e.prototype.segmentMultiLineStringGemetry_=function(t,n){for(var i=n.getCoordinates(),a=0,o=i.length;a<o;++a)for(var s=i[a],A=0,l=s.length-1;A<l;++A)t.push(s.slice(A,A+2))},e.prototype.segmentMultiPointGemetry_=function(t,n){n.getCoordinates().forEach(function(i){t.push([i])})},e.prototype.segmentMultiPolygonGemetry_=function(t,n){for(var i=n.getCoordinates(),a=0,o=i.length;a<o;++a)for(var s=i[a],A=0,l=s.length;A<l;++A)for(var u=s[A],c=0,h=u.length-1;c<h;++c)t.push(u.slice(c,c+2))},e.prototype.segmentPointGemetry_=function(t,n){t.push([n.getCoordinates()])},e.prototype.segmentPolygonGemetry_=function(t,n){for(var i=n.getCoordinates(),a=0,o=i.length;a<o;++a)for(var s=i[a],A=0,l=s.length-1;A<l;++A)t.push(s.slice(A,A+2))},e}(ms),dZ=pZ;function vZ(r){var e=r||{},t=new bi,n=new tq(-.005,.05,100),i=e.altShiftDragRotate!==void 0?e.altShiftDragRotate:!0;i&&t.push(new DX);var a=e.doubleClickZoom!==void 0?e.doubleClickZoom:!0;a&&t.push(new EX({delta:e.zoomDelta,duration:e.zoomDuration}));var o=e.dragPan!==void 0?e.dragPan:!0;o&&t.push(new NX({onFocusOnly:e.onFocusOnly,kinetic:n}));var s=e.pinchRotate!==void 0?e.pinchRotate:!0;s&&t.push(new oq);var A=e.pinchZoom!==void 0?e.pinchZoom:!0;A&&t.push(new lq({duration:e.zoomDuration}));var l=e.keyboard!==void 0?e.keyboard:!0;l&&(t.push(new zX),t.push(new ZX({delta:e.zoomDelta,duration:e.zoomDuration})));var u=e.mouseWheelZoom!==void 0?e.mouseWheelZoom:!0;u&&t.push(new nq({onFocusOnly:e.onFocusOnly,duration:e.zoomDuration}));var c=e.shiftDragZoom!==void 0?e.shiftDragZoom:!0;return c&&t.push(new KX({duration:e.zoomDuration})),t}var gZ=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),mZ=function(r){gZ(e,r);function e(t){return t=Ce({},t),t.controls||(t.controls=vX()),t.interactions||(t.interactions=vZ({onFocusOnly:!0})),r.call(this,t)||this}return e.prototype.createRenderer=function(){return new X6(this)},e}(d4),UE=mZ;function Lr(r,e=[]){let t=kc(r);Object.keys(t).forEach(i=>{t[i]=t[i].value});const n=zf(qn({},t));return ye(r,()=>{t=kc(r),Object.keys(t).forEach(i=>{n[i]!=t[i].value&&!e.includes(i)&&(n[i]=t[i].value)})}),{properties:n}}var me=(r,e)=>{const t=r.__vccOpts||r;for(const[n,i]of e)t[n]=i;return t};const yZ={name:"ol-map",setup(r,{emit:e}){const{properties:t}=Lr(r),n=Io(null);let i=new UE(t);ye(t,()=>{i.setProperties(t)}),ur(()=>{i.setTarget(n.value)}),pr(()=>{i.setTarget(null),i=null}),Ur("map",i);const a=()=>i.focus(),o=(h,f,p={})=>i.forEachFeatureAtPixel(h,f,p),s=(h,f,p)=>i.forEachLayerAtPixel(h,f,p),A=h=>i.getCoordinateFromPixel(h),l=()=>i.refresh(),u=()=>i.render(),c=()=>i.updateSize();return i.on("click",h=>e("click",h)),i.on("dblclick",h=>e("dblclick",h)),i.on("singleclick",h=>e("singleclick",h)),i.on("pointerdrag",h=>e("pointerdrag",h)),i.on("pointermove",h=>e("pointermove",h)),i.on("movestart",h=>e("movestart",h)),i.on("moveend",h=>e("moveend",h)),i.on("postrender",h=>e("postrender",h)),i.on("precompose",h=>e("precompose",h)),i.on("postcompose",h=>e("postcompose",h)),{map:i,mapRef:n,focus:a,forEachFeatureAtPixel:o,forEachLayerAtPixel:s,getCoordinateFromPixel:A,refresh:l,render:u,updateSize:c}},props:{loadTilesWhileAnimating:{type:Boolean,default:!1},loadTilesWhileInteracting:{type:Boolean,default:!1},moveTolerance:{type:Number,default:1},pixelRatio:{type:Number,default:1},controls:{type:Array,default:()=>[]}}};function _Z(r,e,t,n,i,a){return Zn(),Yi("div",{ref:o=>n.mapRef=o},[Or(r.$slots,"default")],512)}var sS=me(yZ,[["render",_Z]]);function wZ(r,e){const t=Be("map"),{properties:n}=Lr(r),i=()=>yA(qn({},n),{projection:typeof n.projection=="string"?n.projection:new Bu(qn({},n.projection))});let a=new qA(i());ur(()=>{t.setView(a)}),a.on("change:center",()=>{e("centerChanged",F()),e("zoomChanged",ct())}),a.on("change:resolution",()=>e("resolutionChanged",U())),a.on("change:rotation",()=>e("rotationChanged",At())),ye(n,()=>{let X=i();a.setProperties(X),a.applyOptions_(X)});const o=X=>a.adjustCenter(X),s=(X,It)=>a.adjustResolution(X,It),A=(X,It)=>a.adjustRotation(X,It),l=(X,It)=>a.adjustZoom(X,It),u=X=>a.animate(X),c=()=>a.beginInteraction(),h=X=>a.calculateExtent(X),f=()=>a.cancelAnimations(),p=(X,It,at)=>a.centerOn(X,It,at),v=()=>a.changed(),m=X=>a.dispatchEvent(X),g=(X,It,at)=>a.endInteraction(X,It,at),_=(X,It)=>a.fit(X,It),w=X=>a.get(X),C=()=>a.getAnimating(),F=()=>a.getCenter(),O=()=>a.getInteracting(),I=()=>a.getKeys(),b=()=>a.getMaxResolution(),L=()=>a.getMaxZoom(),N=()=>a.getMinResolution(),x=()=>a.getMinZoom(),S=()=>a.getProjection(),P=()=>a.getProperties(),U=()=>a.getResolution(),tt=(X,It)=>a.getResolutionForExtent(X,It),q=X=>a.getResolutionForZoom(X),rt=()=>a.getResolutions(),nt=()=>a.getRevision(),At=()=>a.getRotation(),ct=()=>a.getZoom();return{view:a,adjustCenter:o,adjustResolution:s,adjustRotation:A,adjustZoom:l,animate:u,beginInteraction:c,calculateExtent:h,cancelAnimations:f,centerOn:p,changed:v,dispatchEvent:m,endInteraction:g,fit:_,get:w,getAnimating:C,getCenter:F,getInteracting:O,getKeys:I,getMaxResolution:b,getMaxZoom:L,getMinResolution:N,getMinZoom:x,getProjection:S,getProperties:P,getResolution:U,getResolutionForExtent:tt,getResolutionForZoom:q,getResolutions:rt,getRevision:nt,getRotation:At,getZoom:ct,getZoomForResolution:X=>a.getZoomForResolution(X),setCenter:X=>a.setCenter(X),setConstrainResolution:X=>a.setConstrainResolution(X),setMaxZoom:X=>a.setMaxZoom(X),setMinZoom:X=>a.setMinZoom(X),setResolution:X=>a.setResolution(X),setRotation:X=>a.setRotation(X),setZoom:X=>a.setZoom(X)}}const EZ={name:"ol-view",setup(r,{emit:e}){const t=wZ(r,e);return qn({},t)},props:{center:{type:Array,default:()=>[0,0]},constrainRotation:{type:Boolean,default:!0},enableRotation:{type:Boolean,default:!0},extent:{type:Array},constrainOnlyCenter:{type:Boolean,default:!1},smoothExtentConstraint:{type:Boolean,default:!0},maxResolution:{type:Number},minResolution:{type:Number},maxZoom:{type:Number,default:28},minZoom:{type:Number,default:0},multiWorld:{type:Boolean,default:!1},constrainResolution:{type:Boolean,default:!1},smoothResolutionConstraint:{type:Boolean,default:!0},showFullExtent:{type:Boolean,default:!1},projection:{type:[String,Object],default:"EPSG:3857"},resolution:{type:Number},resolutions:{type:Array},rotation:{type:Number},zoom:{type:Number,default:0},zoomFactor:{type:Number,default:2},padding:{type:Array,default:()=>[0,0,0,0]}}};function CZ(r,e,t,n,i,a){return Rr("",!0)}var AS=me(EZ,[["render",CZ]]);const BZ={name:"ol-feature",setup(r){const e=Be("vectorSource"),t=Be("vectorLayer"),n=Be("animation",null),{properties:i}=Lr(r);let a=qe(()=>new yr(qn({},i.properties)));return ye(a,(o,s)=>{e.value.removeFeature(s),e.value.addFeature(o),e.value.changed()}),ye(e,(o,s)=>{s.removeFeature(a.value),o.addFeature(a.value),o.changed()}),ur(()=>{e.value.addFeature(a.value),n!=null&&t.value.animateFeature(a.value,n.value)}),pr(()=>{e.value.removeFeature(a.value)}),Ur("feature",a),Ur("stylable",a),{feature:a}},props:{properties:{type:[SE,Object,Array]}}};function TZ(r,e,t,n,i,a){return Or(r.$slots,"default")}var lS=me(BZ,[["render",TZ]]);function bZ(r,e){const t=Be("map"),n=Io(null),{properties:i}=Lr(r);let a=qe(()=>new _4(i));ur(()=>{t.addOverlay(a.value)}),pr(()=>{t.removeOverlay(a.value)}),ye(a,(v,m)=>{t.removeOverlay(m),t.addOverlay(v)}),gQ(()=>{c(n.value)},{flush:"post"}),a.value.on("change:element",()=>e("elementChanged",o())),a.value.on("change:offset",()=>e("offsetChanged",s())),a.value.on("change:position",()=>e("positionChanged",A())),a.value.on("change:positioning",()=>e("positioningChanged",l()));const o=()=>a.value.getElement(),s=()=>a.value.getOffset(),A=()=>a.value.getPosition(),l=()=>a.value.getPositioning(),u=v=>a.value.panIntoView(v),c=v=>a.value.setElement(v);return{overlay:a,htmlContent:n,getOffset:s,getPosition:A,getPositioning:l,panIntoView:u,setElement:c,setOffset:v=>a.value.setOffset(v),setPosition:v=>a.value.setPosition(v),setPositioning:v=>a.value.setPositioning(v)}}const SZ={name:"ol-overlay",setup(r,{emit:e}){const t=new bZ(r,e);return qn({},t)},props:{position:{type:Array},offset:{type:Array},positioning:{type:String},stopEvent:{type:Boolean,default:!0},insertFirst:{type:Boolean,default:!0},autoPan:{type:Boolean,default:!1},autoPanMargin:{type:Number,default:20},autoPanAnimation:{type:Object,default:void 0}}},xZ={ref:"htmlContent"};function IZ(r,e,t,n,i,a){return Zn(),Yi("div",xZ,[Or(r.$slots,"default",{position:t.position})],512)}var uS=me(SZ,[["render",IZ]]),Y4=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Kn={ACCURACY:"accuracy",ACCURACY_GEOMETRY:"accuracyGeometry",ALTITUDE:"altitude",ALTITUDE_ACCURACY:"altitudeAccuracy",HEADING:"heading",POSITION:"position",PROJECTION:"projection",SPEED:"speed",TRACKING:"tracking",TRACKING_OPTIONS:"trackingOptions"},LZ=function(r){Y4(e,r);function e(t){var n=r.call(this,xe.ERROR)||this;return n.code=t.code,n.message=t.message,n}return e}(ko),FZ=function(r){Y4(e,r);function e(t){var n=r.call(this)||this;n.on,n.once,n.un;var i=t||{};return n.position_=null,n.transform_=TE,n.watchId_=void 0,n.addChangeListener(Kn.PROJECTION,n.handleProjectionChanged_),n.addChangeListener(Kn.TRACKING,n.handleTrackingChanged_),i.projection!==void 0&&n.setProjection(i.projection),i.trackingOptions!==void 0&&n.setTrackingOptions(i.trackingOptions),n.setTracking(i.tracking!==void 0?i.tracking:!1),n}return e.prototype.disposeInternal=function(){this.setTracking(!1),r.prototype.disposeInternal.call(this)},e.prototype.handleProjectionChanged_=function(){var t=this.getProjection();t&&(this.transform_=Df(Ve("EPSG:4326"),t),this.position_&&this.set(Kn.POSITION,this.transform_(this.position_)))},e.prototype.handleTrackingChanged_=function(){if("geolocation"in navigator){var t=this.getTracking();t&&this.watchId_===void 0?this.watchId_=navigator.geolocation.watchPosition(this.positionChange_.bind(this),this.positionError_.bind(this),this.getTrackingOptions()):!t&&this.watchId_!==void 0&&(navigator.geolocation.clearWatch(this.watchId_),this.watchId_=void 0)}},e.prototype.positionChange_=function(t){var n=t.coords;this.set(Kn.ACCURACY,n.accuracy),this.set(Kn.ALTITUDE,n.altitude===null?void 0:n.altitude),this.set(Kn.ALTITUDE_ACCURACY,n.altitudeAccuracy===null?void 0:n.altitudeAccuracy),this.set(Kn.HEADING,n.heading===null?void 0:Oc(n.heading)),this.position_?(this.position_[0]=n.longitude,this.position_[1]=n.latitude):this.position_=[n.longitude,n.latitude];var i=this.transform_(this.position_);this.set(Kn.POSITION,i),this.set(Kn.SPEED,n.speed===null?void 0:n.speed);var a=Sz(this.position_,n.accuracy);a.applyTransform(this.transform_),this.set(Kn.ACCURACY_GEOMETRY,a),this.changed()},e.prototype.positionError_=function(t){this.dispatchEvent(new LZ(t))},e.prototype.getAccuracy=function(){return this.get(Kn.ACCURACY)},e.prototype.getAccuracyGeometry=function(){return this.get(Kn.ACCURACY_GEOMETRY)||null},e.prototype.getAltitude=function(){return this.get(Kn.ALTITUDE)},e.prototype.getAltitudeAccuracy=function(){return this.get(Kn.ALTITUDE_ACCURACY)},e.prototype.getHeading=function(){return this.get(Kn.HEADING)},e.prototype.getPosition=function(){return this.get(Kn.POSITION)},e.prototype.getProjection=function(){return this.get(Kn.PROJECTION)},e.prototype.getSpeed=function(){return this.get(Kn.SPEED)},e.prototype.getTracking=function(){return this.get(Kn.TRACKING)},e.prototype.getTrackingOptions=function(){return this.get(Kn.TRACKING_OPTIONS)},e.prototype.setProjection=function(t){this.set(Kn.PROJECTION,Ve(t))},e.prototype.setTracking=function(t){this.set(Kn.TRACKING,t)},e.prototype.setTrackingOptions=function(t){this.set(Kn.TRACKING_OPTIONS,t)},e}(xi),OZ=FZ;const RZ={name:"ol-geolocation",emits:["positionChanged","speedChanged","headingChanged","altitudeChanged","altitudeAccuracyChanged","accuracyGeometryChanged"],setup(r,{emit:e}){const{properties:t}=Lr(r);let n=qe(()=>{let h=new OZ(t);return h.on("change",c),h});const i=Io([]),a=Io(0),o=Io(0),s=Io(0),A=Io(0),l=Io(0),u=Io({});ye(i,()=>{e("positionChanged",i.value)}),ye(A,()=>{e("speedChanged",A.value)}),ye(l,()=>{e("headingChanged",l.value)}),ye(o,()=>{e("altitudeChanged",o.value)}),ye(s,()=>{e("altitudeAccuracyChanged",s.value)}),ye(u,()=>{e("accuracyGeometryChanged",u.value)});const c=()=>{i.value=n.value.getPosition(),A.value=n.value.getSpeed(),l.value=n.value.getHeading(),a.value=n.value.getAccuracy(),o.value=n.value.getAltitude(),s.value=n.value.getAltitudeAccuracy(),u.value=n.value.getAccuracyGeometry()};return ye(n,(h,f)=>{f.un("change",c),h.on("change",c)}),{geoLoc:n,position:i,accuracy:a,altitude:o,altitudeAccuracy:s,speed:A,heading:l,accuracyGeometry:u}},props:{projection:{type:[String,Object],default:"EPSG:3857"},tracking:{type:Boolean,default:!0},trackingOptions:{type:Object,default:()=>({enableHighAccuracy:!0})}}};function MZ(r,e,t,n,i,a){return Or(r.$slots,"default",{position:n.position,speed:n.speed,heading:n.heading,accuracy:n.accuracy,altitude:n.altitude,altitudeAccuracy:n.altitudeAccuracy,accuracyGeometry:n.accuracyGeometry})}var cS=me(RZ,[["render",MZ]]);function NZ(r){r("EPSG:4326","+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"),r("EPSG:4269","+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees"),r("EPSG:3857","+title=WGS 84 / Pseudo-Mercator +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs"),r.WGS84=r["EPSG:4326"],r["EPSG:3785"]=r["EPSG:3857"],r.GOOGLE=r["EPSG:3857"],r["EPSG:900913"]=r["EPSG:3857"],r["EPSG:102113"]=r["EPSG:3857"]}var kf=1,Hf=2,A1=3,PZ=4,hS=5,yN=6378137,UZ=6356752314e-3,_N=.0066943799901413165,bm=484813681109536e-20,ee=Math.PI/2,DZ=.16666666666666666,QZ=.04722222222222222,kZ=.022156084656084655,he=1e-10,da=.017453292519943295,tl=57.29577951308232,sn=Math.PI/4,sy=Math.PI*2,_i=3.14159265359,Ho={};Ho.greenwich=0;Ho.lisbon=-9.131906111111;Ho.paris=2.337229166667;Ho.bogota=-74.080916666667;Ho.madrid=-3.687938888889;Ho.rome=12.452333333333;Ho.bern=7.439583333333;Ho.jakarta=106.807719444444;Ho.ferro=-17.666666666667;Ho.brussels=4.367975;Ho.stockholm=18.058277777778;Ho.athens=23.7163375;Ho.oslo=10.722916666667;var HZ={ft:{to_meter:.3048},"us-ft":{to_meter:1200/3937}},wN=/[\s_\-\/\(\)]/g;function Xc(r,e){if(r[e])return r[e];for(var t=Object.keys(r),n=e.toLowerCase().replace(wN,""),i=-1,a,o;++i<t.length;)if(a=t[i],o=a.toLowerCase().replace(wN,""),o===n)return r[a]}function fS(r){var e={},t=r.split("+").map(function(s){return s.trim()}).filter(function(s){return s}).reduce(function(s,A){var l=A.split("=");return l.push(!0),s[l[0].toLowerCase()]=l[1],s},{}),n,i,a,o={proj:"projName",datum:"datumCode",rf:function(s){e.rf=parseFloat(s)},lat_0:function(s){e.lat0=s*da},lat_1:function(s){e.lat1=s*da},lat_2:function(s){e.lat2=s*da},lat_ts:function(s){e.lat_ts=s*da},lon_0:function(s){e.long0=s*da},lon_1:function(s){e.long1=s*da},lon_2:function(s){e.long2=s*da},alpha:function(s){e.alpha=parseFloat(s)*da},gamma:function(s){e.rectified_grid_angle=parseFloat(s)},lonc:function(s){e.longc=s*da},x_0:function(s){e.x0=parseFloat(s)},y_0:function(s){e.y0=parseFloat(s)},k_0:function(s){e.k0=parseFloat(s)},k:function(s){e.k0=parseFloat(s)},a:function(s){e.a=parseFloat(s)},b:function(s){e.b=parseFloat(s)},r_a:function(){e.R_A=!0},zone:function(s){e.zone=parseInt(s,10)},south:function(){e.utmSouth=!0},towgs84:function(s){e.datum_params=s.split(",").map(function(A){return parseFloat(A)})},to_meter:function(s){e.to_meter=parseFloat(s)},units:function(s){e.units=s;var A=Xc(HZ,s);A&&(e.to_meter=A.to_meter)},from_greenwich:function(s){e.from_greenwich=s*da},pm:function(s){var A=Xc(Ho,s);e.from_greenwich=(A||parseFloat(s))*da},nadgrids:function(s){s==="@null"?e.datumCode="none":e.nadgrids=s},axis:function(s){var A="ewnsud";s.length===3&&A.indexOf(s.substr(0,1))!==-1&&A.indexOf(s.substr(1,1))!==-1&&A.indexOf(s.substr(2,1))!==-1&&(e.axis=s)},approx:function(){e.approx=!0}};for(n in t)i=t[n],n in o?(a=o[n],typeof a=="function"?a(i):e[a]=i):e[n]=i;return typeof e.datumCode=="string"&&e.datumCode!=="WGS84"&&(e.datumCode=e.datumCode.toLowerCase()),e}var Ay=1,W4=2,z4=3,ow=4,X4=5,SF=-1,GZ=/\s/,$Z=/[A-Za-z]/,VZ=/[A-Za-z84_]/,DE=/[,\]]/,q4=/[\d\.E\-\+]/;function bu(r){if(typeof r!="string")throw new Error("not a string");this.text=r.trim(),this.level=0,this.place=0,this.root=null,this.stack=[],this.currentObject=null,this.state=Ay}bu.prototype.readCharicter=function(){var r=this.text[this.place++];if(this.state!==ow)for(;GZ.test(r);){if(this.place>=this.text.length)return;r=this.text[this.place++]}switch(this.state){case Ay:return this.neutral(r);case W4:return this.keyword(r);case ow:return this.quoted(r);case X4:return this.afterquote(r);case z4:return this.number(r);case SF:return}};bu.prototype.afterquote=function(r){if(r==='"'){this.word+='"',this.state=ow;return}if(DE.test(r)){this.word=this.word.trim(),this.afterItem(r);return}throw new Error(`havn't handled "`+r+'" in afterquote yet, index '+this.place)};bu.prototype.afterItem=function(r){if(r===","){this.word!==null&&this.currentObject.push(this.word),this.word=null,this.state=Ay;return}if(r==="]"){this.level--,this.word!==null&&(this.currentObject.push(this.word),this.word=null),this.state=Ay,this.currentObject=this.stack.pop(),this.currentObject||(this.state=SF);return}};bu.prototype.number=function(r){if(q4.test(r)){this.word+=r;return}if(DE.test(r)){this.word=parseFloat(this.word),this.afterItem(r);return}throw new Error(`havn't handled "`+r+'" in number yet, index '+this.place)};bu.prototype.quoted=function(r){if(r==='"'){this.state=X4;return}this.word+=r};bu.prototype.keyword=function(r){if(VZ.test(r)){this.word+=r;return}if(r==="["){var e=[];e.push(this.word),this.level++,this.root===null?this.root=e:this.currentObject.push(e),this.stack.push(this.currentObject),this.currentObject=e,this.state=Ay;return}if(DE.test(r)){this.afterItem(r);return}throw new Error(`havn't handled "`+r+'" in keyword yet, index '+this.place)};bu.prototype.neutral=function(r){if($Z.test(r)){this.word=r,this.state=W4;return}if(r==='"'){this.word="",this.state=ow;return}if(q4.test(r)){this.word=r,this.state=z4;return}if(DE.test(r)){this.afterItem(r);return}throw new Error(`havn't handled "`+r+'" in neutral yet, index '+this.place)};bu.prototype.output=function(){for(;this.place<this.text.length;)this.readCharicter();if(this.state===SF)return this.root;throw new Error('unable to parse string "'+this.text+'". State is '+this.state)};function jZ(r){var e=new bu(r);return e.output()}function EN(r,e,t){Array.isArray(e)&&(t.unshift(e),e=null);var n=e?{}:r,i=t.reduce(function(a,o){return Sd(o,a),a},n);e&&(r[e]=i)}function Sd(r,e){if(!Array.isArray(r)){e[r]=!0;return}var t=r.shift();if(t==="PARAMETER"&&(t=r.shift()),r.length===1){if(Array.isArray(r[0])){e[t]={},Sd(r[0],e[t]);return}e[t]=r[0];return}if(!r.length){e[t]=!0;return}if(t==="TOWGS84"){e[t]=r;return}if(t==="AXIS"){t in e||(e[t]=[]),e[t].push(r);return}Array.isArray(t)||(e[t]={});var n;switch(t){case"UNIT":case"PRIMEM":case"VERT_DATUM":e[t]={name:r[0].toLowerCase(),convert:r[1]},r.length===3&&Sd(r[2],e[t]);return;case"SPHEROID":case"ELLIPSOID":e[t]={name:r[0],a:r[1],rf:r[2]},r.length===4&&Sd(r[3],e[t]);return;case"PROJECTEDCRS":case"PROJCRS":case"GEOGCS":case"GEOCCS":case"PROJCS":case"LOCAL_CS":case"GEODCRS":case"GEODETICCRS":case"GEODETICDATUM":case"EDATUM":case"ENGINEERINGDATUM":case"VERT_CS":case"VERTCRS":case"VERTICALCRS":case"COMPD_CS":case"COMPOUNDCRS":case"ENGINEERINGCRS":case"ENGCRS":case"FITTED_CS":case"LOCAL_DATUM":case"DATUM":r[0]=["name",r[0]],EN(e,t,r);return;default:for(n=-1;++n<r.length;)if(!Array.isArray(r[n]))return Sd(r,e[t]);return EN(e,t,r)}}var KZ=.017453292519943295;function YZ(r,e){var t=e[0],n=e[1];!(t in r)&&n in r&&(r[t]=r[n],e.length===3&&(r[t]=e[2](r[t])))}function Ql(r){return r*KZ}function WZ(r){if(r.type==="GEOGCS"?r.projName="longlat":r.type==="LOCAL_CS"?(r.projName="identity",r.local=!0):typeof r.PROJECTION=="object"?r.projName=Object.keys(r.PROJECTION)[0]:r.projName=r.PROJECTION,r.AXIS){for(var e="",t=0,n=r.AXIS.length;t<n;++t){var i=[r.AXIS[t][0].toLowerCase(),r.AXIS[t][1].toLowerCase()];i[0].indexOf("north")!==-1||(i[0]==="y"||i[0]==="lat")&&i[1]==="north"?e+="n":i[0].indexOf("south")!==-1||(i[0]==="y"||i[0]==="lat")&&i[1]==="south"?e+="s":i[0].indexOf("east")!==-1||(i[0]==="x"||i[0]==="lon")&&i[1]==="east"?e+="e":(i[0].indexOf("west")!==-1||(i[0]==="x"||i[0]==="lon")&&i[1]==="west")&&(e+="w")}e.length===2&&(e+="u"),e.length===3&&(r.axis=e)}r.UNIT&&(r.units=r.UNIT.name.toLowerCase(),r.units==="metre"&&(r.units="meter"),r.UNIT.convert&&(r.type==="GEOGCS"?r.DATUM&&r.DATUM.SPHEROID&&(r.to_meter=r.UNIT.convert*r.DATUM.SPHEROID.a):r.to_meter=r.UNIT.convert));var a=r.GEOGCS;r.type==="GEOGCS"&&(a=r),a&&(a.DATUM?r.datumCode=a.DATUM.name.toLowerCase():r.datumCode=a.name.toLowerCase(),r.datumCode.slice(0,2)==="d_"&&(r.datumCode=r.datumCode.slice(2)),(r.datumCode==="new_zealand_geodetic_datum_1949"||r.datumCode==="new_zealand_1949")&&(r.datumCode="nzgd49"),(r.datumCode==="wgs_1984"||r.datumCode==="world_geodetic_system_1984")&&(r.PROJECTION==="Mercator_Auxiliary_Sphere"&&(r.sphere=!0),r.datumCode="wgs84"),r.datumCode.slice(-6)==="_ferro"&&(r.datumCode=r.datumCode.slice(0,-6)),r.datumCode.slice(-8)==="_jakarta"&&(r.datumCode=r.datumCode.slice(0,-8)),~r.datumCode.indexOf("belge")&&(r.datumCode="rnb72"),a.DATUM&&a.DATUM.SPHEROID&&(r.ellps=a.DATUM.SPHEROID.name.replace("_19","").replace(/[Cc]larke\_18/,"clrk"),r.ellps.toLowerCase().slice(0,13)==="international"&&(r.ellps="intl"),r.a=a.DATUM.SPHEROID.a,r.rf=parseFloat(a.DATUM.SPHEROID.rf,10)),a.DATUM&&a.DATUM.TOWGS84&&(r.datum_params=a.DATUM.TOWGS84),~r.datumCode.indexOf("osgb_1936")&&(r.datumCode="osgb36"),~r.datumCode.indexOf("osni_1952")&&(r.datumCode="osni52"),(~r.datumCode.indexOf("tm65")||~r.datumCode.indexOf("geodetic_datum_of_1965"))&&(r.datumCode="ire65"),r.datumCode==="ch1903+"&&(r.datumCode="ch1903"),~r.datumCode.indexOf("israel")&&(r.datumCode="isr93")),r.b&&!isFinite(r.b)&&(r.b=r.a);function o(l){var u=r.to_meter||1;return l*u}var s=function(l){return YZ(r,l)},A=[["standard_parallel_1","Standard_Parallel_1"],["standard_parallel_1","Latitude of 1st standard parallel"],["standard_parallel_2","Standard_Parallel_2"],["standard_parallel_2","Latitude of 2nd standard parallel"],["false_easting","False_Easting"],["false_easting","False easting"],["false-easting","Easting at false origin"],["false_northing","False_Northing"],["false_northing","False northing"],["false_northing","Northing at false origin"],["central_meridian","Central_Meridian"],["central_meridian","Longitude of natural origin"],["central_meridian","Longitude of false origin"],["latitude_of_origin","Latitude_Of_Origin"],["latitude_of_origin","Central_Parallel"],["latitude_of_origin","Latitude of natural origin"],["latitude_of_origin","Latitude of false origin"],["scale_factor","Scale_Factor"],["k0","scale_factor"],["latitude_of_center","Latitude_Of_Center"],["latitude_of_center","Latitude_of_center"],["lat0","latitude_of_center",Ql],["longitude_of_center","Longitude_Of_Center"],["longitude_of_center","Longitude_of_center"],["longc","longitude_of_center",Ql],["x0","false_easting",o],["y0","false_northing",o],["long0","central_meridian",Ql],["lat0","latitude_of_origin",Ql],["lat0","standard_parallel_1",Ql],["lat1","standard_parallel_1",Ql],["lat2","standard_parallel_2",Ql],["azimuth","Azimuth"],["alpha","azimuth",Ql],["srsCode","name"]];A.forEach(s),!r.long0&&r.longc&&(r.projName==="Albers_Conic_Equal_Area"||r.projName==="Lambert_Azimuthal_Equal_Area")&&(r.long0=r.longc),!r.lat_ts&&r.lat1&&(r.projName==="Stereographic_South_Pole"||r.projName==="Polar Stereographic (variant B)")&&(r.lat0=Ql(r.lat1>0?90:-90),r.lat_ts=r.lat1)}function Z4(r){var e=jZ(r),t=e.shift(),n=e.shift();e.unshift(["name",n]),e.unshift(["type",t]);var i={};return Sd(e,i),WZ(i),i}function ao(r){var e=this;if(arguments.length===2){var t=arguments[1];typeof t=="string"?t.charAt(0)==="+"?ao[r]=fS(arguments[1]):ao[r]=Z4(arguments[1]):ao[r]=t}else if(arguments.length===1){if(Array.isArray(r))return r.map(function(n){Array.isArray(n)?ao.apply(e,n):ao(n)});if(typeof r=="string"){if(r in ao)return ao[r]}else"EPSG"in r?ao["EPSG:"+r.EPSG]=r:"ESRI"in r?ao["ESRI:"+r.ESRI]=r:"IAU2000"in r?ao["IAU2000:"+r.IAU2000]=r:console.log(r);return}}NZ(ao);function zZ(r){return typeof r=="string"}function XZ(r){return r in ao}var qZ=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"];function ZZ(r){return qZ.some(function(e){return r.indexOf(e)>-1})}var JZ=["3857","900913","3785","102113"];function tJ(r){var e=Xc(r,"authority");if(e){var t=Xc(e,"epsg");return t&&JZ.indexOf(t)>-1}}function eJ(r){var e=Xc(r,"extension");if(e)return Xc(e,"proj4")}function rJ(r){return r[0]==="+"}function nJ(r){if(zZ(r)){if(XZ(r))return ao[r];if(ZZ(r)){var e=Z4(r);if(tJ(e))return ao["EPSG:3857"];var t=eJ(e);return t?fS(t):e}if(rJ(r))return fS(r)}else return r}function CN(r,e){r=r||{};var t,n;if(!e)return r;for(n in e)t=e[n],t!==void 0&&(r[n]=t);return r}function hl(r,e,t){var n=r*e;return t/Math.sqrt(1-n*n)}function Ky(r){return r<0?-1:1}function we(r){return Math.abs(r)<=_i?r:r-Ky(r)*sy}function hA(r,e,t){var n=r*t,i=.5*r;return n=Math.pow((1-n)/(1+n),i),Math.tan(.5*(ee-e))/n}function ly(r,e){for(var t=.5*r,n,i,a=ee-2*Math.atan(e),o=0;o<=15;o++)if(n=r*Math.sin(a),i=ee-2*Math.atan(e*Math.pow((1-n)/(1+n),t))-a,a+=i,Math.abs(i)<=1e-10)return a;return-9999}function iJ(){var r=this.b/this.a;this.es=1-r*r,"x0"in this||(this.x0=0),"y0"in this||(this.y0=0),this.e=Math.sqrt(this.es),this.lat_ts?this.sphere?this.k0=Math.cos(this.lat_ts):this.k0=hl(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)}function aJ(r){var e=r.x,t=r.y;if(t*tl>90&&t*tl<-90&&e*tl>180&&e*tl<-180)return null;var n,i;if(Math.abs(Math.abs(t)-ee)<=he)return null;if(this.sphere)n=this.x0+this.a*this.k0*we(e-this.long0),i=this.y0+this.a*this.k0*Math.log(Math.tan(sn+.5*t));else{var a=Math.sin(t),o=hA(this.e,t,a);n=this.x0+this.a*this.k0*we(e-this.long0),i=this.y0-this.a*this.k0*Math.log(o)}return r.x=n,r.y=i,r}function oJ(r){var e=r.x-this.x0,t=r.y-this.y0,n,i;if(this.sphere)i=ee-2*Math.atan(Math.exp(-t/(this.a*this.k0)));else{var a=Math.exp(-t/(this.a*this.k0));if(i=ly(this.e,a),i===-9999)return null}return n=we(this.long0+e/(this.a*this.k0)),r.x=n,r.y=i,r}var sJ=["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","merc"],AJ={init:iJ,forward:aJ,inverse:oJ,names:sJ};function lJ(){}function BN(r){return r}var uJ=["longlat","identity"],cJ={init:lJ,forward:BN,inverse:BN,names:uJ},hJ=[AJ,cJ],l1={},sw=[];function J4(r,e){var t=sw.length;return r.names?(sw[t]=r,r.names.forEach(function(n){l1[n.toLowerCase()]=t}),this):(console.log(e),!0)}function fJ(r){if(!r)return!1;var e=r.toLowerCase();if(typeof l1[e]<"u"&&sw[l1[e]])return sw[l1[e]]}function pJ(){hJ.forEach(J4)}var dJ={start:pJ,add:J4,get:fJ},sr={};sr.MERIT={a:6378137,rf:298.257,ellipseName:"MERIT 1983"};sr.SGS85={a:6378136,rf:298.257,ellipseName:"Soviet Geodetic System 85"};sr.GRS80={a:6378137,rf:298.257222101,ellipseName:"GRS 1980(IUGG, 1980)"};sr.IAU76={a:6378140,rf:298.257,ellipseName:"IAU 1976"};sr.airy={a:6377563396e-3,b:635625691e-2,ellipseName:"Airy 1830"};sr.APL4={a:6378137,rf:298.25,ellipseName:"Appl. Physics. 1965"};sr.NWL9D={a:6378145,rf:298.25,ellipseName:"Naval Weapons Lab., 1965"};sr.mod_airy={a:6377340189e-3,b:6356034446e-3,ellipseName:"Modified Airy"};sr.andrae={a:637710443e-2,rf:300,ellipseName:"Andrae 1876 (Den., Iclnd.)"};sr.aust_SA={a:6378160,rf:298.25,ellipseName:"Australian Natl & S. Amer. 1969"};sr.GRS67={a:6378160,rf:298.247167427,ellipseName:"GRS 67(IUGG 1967)"};sr.bessel={a:6377397155e-3,rf:299.1528128,ellipseName:"Bessel 1841"};sr.bess_nam={a:6377483865e-3,rf:299.1528128,ellipseName:"Bessel 1841 (Namibia)"};sr.clrk66={a:63782064e-1,b:63565838e-1,ellipseName:"Clarke 1866"};sr.clrk80={a:6378249145e-3,rf:293.4663,ellipseName:"Clarke 1880 mod."};sr.clrk58={a:6378293645208759e-9,rf:294.2606763692654,ellipseName:"Clarke 1858"};sr.CPM={a:63757387e-1,rf:334.29,ellipseName:"Comm. des Poids et Mesures 1799"};sr.delmbr={a:6376428,rf:311.5,ellipseName:"Delambre 1810 (Belgium)"};sr.engelis={a:637813605e-2,rf:298.2566,ellipseName:"Engelis 1985"};sr.evrst30={a:6377276345e-3,rf:300.8017,ellipseName:"Everest 1830"};sr.evrst48={a:6377304063e-3,rf:300.8017,ellipseName:"Everest 1948"};sr.evrst56={a:6377301243e-3,rf:300.8017,ellipseName:"Everest 1956"};sr.evrst69={a:6377295664e-3,rf:300.8017,ellipseName:"Everest 1969"};sr.evrstSS={a:6377298556e-3,rf:300.8017,ellipseName:"Everest (Sabah & Sarawak)"};sr.fschr60={a:6378166,rf:298.3,ellipseName:"Fischer (Mercury Datum) 1960"};sr.fschr60m={a:6378155,rf:298.3,ellipseName:"Fischer 1960"};sr.fschr68={a:6378150,rf:298.3,ellipseName:"Fischer 1968"};sr.helmert={a:6378200,rf:298.3,ellipseName:"Helmert 1906"};sr.hough={a:6378270,rf:297,ellipseName:"Hough"};sr.intl={a:6378388,rf:297,ellipseName:"International 1909 (Hayford)"};sr.kaula={a:6378163,rf:298.24,ellipseName:"Kaula 1961"};sr.lerch={a:6378139,rf:298.257,ellipseName:"Lerch 1979"};sr.mprts={a:6397300,rf:191,ellipseName:"Maupertius 1738"};sr.new_intl={a:63781575e-1,b:63567722e-1,ellipseName:"New International 1967"};sr.plessis={a:6376523,rf:6355863,ellipseName:"Plessis 1817 (France)"};sr.krass={a:6378245,rf:298.3,ellipseName:"Krassovsky, 1942"};sr.SEasia={a:6378155,b:63567733205e-4,ellipseName:"Southeast Asia"};sr.walbeck={a:6376896,b:63558348467e-4,ellipseName:"Walbeck"};sr.WGS60={a:6378165,rf:298.3,ellipseName:"WGS 60"};sr.WGS66={a:6378145,rf:298.25,ellipseName:"WGS 66"};sr.WGS7={a:6378135,rf:298.26,ellipseName:"WGS 72"};var vJ=sr.WGS84={a:6378137,rf:298.257223563,ellipseName:"WGS 84"};sr.sphere={a:6370997,b:6370997,ellipseName:"Normal Sphere (r=6370997)"};function gJ(r,e,t,n){var i=r*r,a=e*e,o=(i-a)/i,s=0;n?(r*=1-o*(DZ+o*(QZ+o*kZ)),i=r*r,o=0):s=Math.sqrt(o);var A=(i-a)/a;return{es:o,e:s,ep2:A}}function mJ(r,e,t,n,i){if(!r){var a=Xc(sr,n);a||(a=vJ),r=a.a,e=a.b,t=a.rf}return t&&!e&&(e=(1-1/t)*r),(t===0||Math.abs(r-e)<he)&&(i=!0,e=r),{a:r,b:e,rf:t,sphere:i}}var Aa={};Aa.wgs84={towgs84:"0,0,0",ellipse:"WGS84",datumName:"WGS84"};Aa.ch1903={towgs84:"674.374,15.056,405.346",ellipse:"bessel",datumName:"swiss"};Aa.ggrs87={towgs84:"-199.87,74.79,246.62",ellipse:"GRS80",datumName:"Greek_Geodetic_Reference_System_1987"};Aa.nad83={towgs84:"0,0,0",ellipse:"GRS80",datumName:"North_American_Datum_1983"};Aa.nad27={nadgrids:"@conus,@alaska,@ntv2_0.gsb,@ntv1_can.dat",ellipse:"clrk66",datumName:"North_American_Datum_1927"};Aa.potsdam={towgs84:"598.1,73.7,418.2,0.202,0.045,-2.455,6.7",ellipse:"bessel",datumName:"Potsdam Rauenberg 1950 DHDN"};Aa.carthage={towgs84:"-263.0,6.0,431.0",ellipse:"clark80",datumName:"Carthage 1934 Tunisia"};Aa.hermannskogel={towgs84:"577.326,90.129,463.919,5.137,1.474,5.297,2.4232",ellipse:"bessel",datumName:"Hermannskogel"};Aa.osni52={towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"airy",datumName:"Irish National"};Aa.ire65={towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"mod_airy",datumName:"Ireland 1965"};Aa.rassadiran={towgs84:"-133.63,-157.5,-158.62",ellipse:"intl",datumName:"Rassadiran"};Aa.nzgd49={towgs84:"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993",ellipse:"intl",datumName:"New Zealand Geodetic Datum 1949"};Aa.osgb36={towgs84:"446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894",ellipse:"airy",datumName:"Airy 1830"};Aa.s_jtsk={towgs84:"589,76,480",ellipse:"bessel",datumName:"S-JTSK (Ferro)"};Aa.beduaram={towgs84:"-106,-87,188",ellipse:"clrk80",datumName:"Beduaram"};Aa.gunung_segara={towgs84:"-403,684,41",ellipse:"bessel",datumName:"Gunung Segara Jakarta"};Aa.rnb72={towgs84:"106.869,-52.2978,103.724,-0.33657,0.456955,-1.84218,1",ellipse:"intl",datumName:"Reseau National Belge 1972"};function yJ(r,e,t,n,i,a,o){var s={};return r===void 0||r==="none"?s.datum_type=hS:s.datum_type=PZ,e&&(s.datum_params=e.map(parseFloat),(s.datum_params[0]!==0||s.datum_params[1]!==0||s.datum_params[2]!==0)&&(s.datum_type=kf),s.datum_params.length>3&&(s.datum_params[3]!==0||s.datum_params[4]!==0||s.datum_params[5]!==0||s.datum_params[6]!==0)&&(s.datum_type=Hf,s.datum_params[3]*=bm,s.datum_params[4]*=bm,s.datum_params[5]*=bm,s.datum_params[6]=s.datum_params[6]/1e6+1)),o&&(s.datum_type=A1,s.grids=o),s.a=t,s.b=n,s.es=i,s.ep2=a,s}var t8={};function _J(r,e){var t=new DataView(e),n=CJ(t),i=BJ(t,n);i.nSubgrids>1&&console.log("Only single NTv2 subgrids are currently supported, subsequent sub grids are ignored");var a=TJ(t,i,n),o={header:i,subgrids:a};return t8[r]=o,o}function wJ(r){if(r===void 0)return null;var e=r.split(",");return e.map(EJ)}function EJ(r){if(r.length===0)return null;var e=r[0]==="@";return e&&(r=r.slice(1)),r==="null"?{name:"null",mandatory:!e,grid:null,isNull:!0}:{name:r,mandatory:!e,grid:t8[r]||null,isNull:!1}}function xd(r){return r/3600*Math.PI/180}function CJ(r){var e=r.getInt32(8,!1);return e===11?!1:(e=r.getInt32(8,!0),e!==11&&console.warn("Failed to detect nadgrid endian-ness, defaulting to little-endian"),!0)}function BJ(r,e){return{nFields:r.getInt32(8,e),nSubgridFields:r.getInt32(24,e),nSubgrids:r.getInt32(40,e),shiftType:pS(r,56,56+8).trim(),fromSemiMajorAxis:r.getFloat64(120,e),fromSemiMinorAxis:r.getFloat64(136,e),toSemiMajorAxis:r.getFloat64(152,e),toSemiMinorAxis:r.getFloat64(168,e)}}function pS(r,e,t){return String.fromCharCode.apply(null,new Uint8Array(r.buffer.slice(e,t)))}function TJ(r,e,t){for(var n=176,i=[],a=0;a<e.nSubgrids;a++){var o=SJ(r,n,t),s=xJ(r,n,o,t),A=Math.round(1+(o.upperLongitude-o.lowerLongitude)/o.longitudeInterval),l=Math.round(1+(o.upperLatitude-o.lowerLatitude)/o.latitudeInterval);i.push({ll:[xd(o.lowerLongitude),xd(o.lowerLatitude)],del:[xd(o.longitudeInterval),xd(o.latitudeInterval)],lim:[A,l],count:o.gridNodeCount,cvs:bJ(s)})}return i}function bJ(r){return r.map(function(e){return[xd(e.longitudeShift),xd(e.latitudeShift)]})}function SJ(r,e,t){return{name:pS(r,e+8,e+16).trim(),parent:pS(r,e+24,e+24+8).trim(),lowerLatitude:r.getFloat64(e+72,t),upperLatitude:r.getFloat64(e+88,t),lowerLongitude:r.getFloat64(e+104,t),upperLongitude:r.getFloat64(e+120,t),latitudeInterval:r.getFloat64(e+136,t),longitudeInterval:r.getFloat64(e+152,t),gridNodeCount:r.getInt32(e+168,t)}}function xJ(r,e,t,n){for(var i=e+176,a=16,o=[],s=0;s<t.gridNodeCount;s++){var A={latitudeShift:r.getFloat32(i+s*a,n),longitudeShift:r.getFloat32(i+s*a+4,n),latitudeAccuracy:r.getFloat32(i+s*a+8,n),longitudeAccuracy:r.getFloat32(i+s*a+12,n)};o.push(A)}return o}function al(r,e){if(!(this instanceof al))return new al(r);e=e||function(l){if(l)throw l};var t=nJ(r);if(typeof t!="object"){e(r);return}var n=al.projections.get(t.projName);if(!n){e(r);return}if(t.datumCode&&t.datumCode!=="none"){var i=Xc(Aa,t.datumCode);i&&(t.datum_params=t.datum_params||(i.towgs84?i.towgs84.split(","):null),t.ellps=i.ellipse,t.datumName=i.datumName?i.datumName:t.datumCode)}t.k0=t.k0||1,t.axis=t.axis||"enu",t.ellps=t.ellps||"wgs84",t.lat1=t.lat1||t.lat0;var a=mJ(t.a,t.b,t.rf,t.ellps,t.sphere),o=gJ(a.a,a.b,a.rf,t.R_A),s=wJ(t.nadgrids),A=t.datum||yJ(t.datumCode,t.datum_params,a.a,a.b,o.es,o.ep2,s);CN(this,t),CN(this,n),this.a=a.a,this.b=a.b,this.rf=a.rf,this.sphere=a.sphere,this.es=o.es,this.e=o.e,this.ep2=o.ep2,this.datum=A,this.init(),e(null,this)}al.projections=dJ;al.projections.start();function IJ(r,e){return r.datum_type!==e.datum_type||r.a!==e.a||Math.abs(r.es-e.es)>5e-11?!1:r.datum_type===kf?r.datum_params[0]===e.datum_params[0]&&r.datum_params[1]===e.datum_params[1]&&r.datum_params[2]===e.datum_params[2]:r.datum_type===Hf?r.datum_params[0]===e.datum_params[0]&&r.datum_params[1]===e.datum_params[1]&&r.datum_params[2]===e.datum_params[2]&&r.datum_params[3]===e.datum_params[3]&&r.datum_params[4]===e.datum_params[4]&&r.datum_params[5]===e.datum_params[5]&&r.datum_params[6]===e.datum_params[6]:!0}function e8(r,e,t){var n=r.x,i=r.y,a=r.z?r.z:0,o,s,A,l;if(i<-ee&&i>-1.001*ee)i=-ee;else if(i>ee&&i<1.001*ee)i=ee;else{if(i<-ee)return{x:-1/0,y:-1/0,z:r.z};if(i>ee)return{x:1/0,y:1/0,z:r.z}}return n>Math.PI&&(n-=2*Math.PI),s=Math.sin(i),l=Math.cos(i),A=s*s,o=t/Math.sqrt(1-e*A),{x:(o+a)*l*Math.cos(n),y:(o+a)*l*Math.sin(n),z:(o*(1-e)+a)*s}}function r8(r,e,t,n){var i=1e-12,a=i*i,o=30,s,A,l,u,c,h,f,p,v,m,g,_,w,C=r.x,F=r.y,O=r.z?r.z:0,I,b,L;if(s=Math.sqrt(C*C+F*F),A=Math.sqrt(C*C+F*F+O*O),s/t<i){if(I=0,A/t<i)return b=ee,L=-n,{x:r.x,y:r.y,z:r.z}}else I=Math.atan2(F,C);l=O/A,u=s/A,c=1/Math.sqrt(1-e*(2-e)*u*u),p=u*(1-e)*c,v=l*c,w=0;do w++,f=t/Math.sqrt(1-e*v*v),L=s*p+O*v-f*(1-e*v*v),h=e*f/(f+L),c=1/Math.sqrt(1-h*(2-h)*u*u),m=u*(1-h)*c,g=l*c,_=g*p-m*v,p=m,v=g;while(_*_>a&&w<o);return b=Math.atan(g/Math.abs(m)),{x:I,y:b,z:L}}function LJ(r,e,t){if(e===kf)return{x:r.x+t[0],y:r.y+t[1],z:r.z+t[2]};if(e===Hf){var n=t[0],i=t[1],a=t[2],o=t[3],s=t[4],A=t[5],l=t[6];return{x:l*(r.x-A*r.y+s*r.z)+n,y:l*(A*r.x+r.y-o*r.z)+i,z:l*(-s*r.x+o*r.y+r.z)+a}}}function FJ(r,e,t){if(e===kf)return{x:r.x-t[0],y:r.y-t[1],z:r.z-t[2]};if(e===Hf){var n=t[0],i=t[1],a=t[2],o=t[3],s=t[4],A=t[5],l=t[6],u=(r.x-n)/l,c=(r.y-i)/l,h=(r.z-a)/l;return{x:u+A*c-s*h,y:-A*u+c+o*h,z:s*u-o*c+h}}}function i_(r){return r===kf||r===Hf}function OJ(r,e,t){if(IJ(r,e)||r.datum_type===hS||e.datum_type===hS)return t;var n=r.a,i=r.es;if(r.datum_type===A1){var a=TN(r,!1,t);if(a!==0)return;n=yN,i=_N}var o=e.a,s=e.b,A=e.es;if(e.datum_type===A1&&(o=yN,s=UZ,A=_N),i===A&&n===o&&!i_(r.datum_type)&&!i_(e.datum_type))return t;if(t=e8(t,i,n),i_(r.datum_type)&&(t=LJ(t,r.datum_type,r.datum_params)),i_(e.datum_type)&&(t=FJ(t,e.datum_type,e.datum_params)),t=r8(t,A,o,s),e.datum_type===A1){var l=TN(e,!0,t);if(l!==0)return}return t}function TN(r,e,t){if(r.grids===null||r.grids.length===0)return console.log("Grid shift grids not found"),-1;for(var n={x:-t.x,y:t.y},i={x:Number.NaN,y:Number.NaN},a=[],o=0;o<r.grids.length;o++){var s=r.grids[o];if(a.push(s.name),s.isNull){i=n;break}if(s.grid===null){if(s.mandatory)return console.log("Unable to find mandatory grid '"+s.name+"'"),-1;continue}var A=s.grid.subgrids[0],l=(Math.abs(A.del[1])+Math.abs(A.del[0]))/1e4,u=A.ll[0]-l,c=A.ll[1]-l,h=A.ll[0]+(A.lim[0]-1)*A.del[0]+l,f=A.ll[1]+(A.lim[1]-1)*A.del[1]+l;if(!(c>n.y||u>n.x||f<n.y||h<n.x)&&(i=RJ(n,e,A),!isNaN(i.x)))break}return isNaN(i.x)?(console.log("Failed to find a grid shift table for location '"+-n.x*tl+" "+n.y*tl+" tried: '"+a+"'"),-1):(t.x=-i.x,t.y=i.y,0)}function RJ(r,e,t){var n={x:Number.NaN,y:Number.NaN};if(isNaN(r.x))return n;var i={x:r.x,y:r.y};i.x-=t.ll[0],i.y-=t.ll[1],i.x=we(i.x-Math.PI)+Math.PI;var a=bN(i,t);if(e){if(isNaN(a.x))return n;a.x=i.x-a.x,a.y=i.y-a.y;var o=9,s=1e-12,A,l;do{if(l=bN(a,t),isNaN(l.x)){console.log("Inverse grid shift iteration failed, presumably at grid edge. Using first approximation.");break}A={x:i.x-(l.x+a.x),y:i.y-(l.y+a.y)},a.x+=A.x,a.y+=A.y}while(o--&&Math.abs(A.x)>s&&Math.abs(A.y)>s);if(o<0)return console.log("Inverse grid shift iterator failed to converge."),n;n.x=we(a.x+t.ll[0]),n.y=a.y+t.ll[1]}else isNaN(a.x)||(n.x=r.x+a.x,n.y=r.y+a.y);return n}function bN(r,e){var t={x:r.x/e.del[0],y:r.y/e.del[1]},n={x:Math.floor(t.x),y:Math.floor(t.y)},i={x:t.x-1*n.x,y:t.y-1*n.y},a={x:Number.NaN,y:Number.NaN},o;if(n.x<0||n.x>=e.lim[0]||n.y<0||n.y>=e.lim[1])return a;o=n.y*e.lim[0]+n.x;var s={x:e.cvs[o][0],y:e.cvs[o][1]};o++;var A={x:e.cvs[o][0],y:e.cvs[o][1]};o+=e.lim[0];var l={x:e.cvs[o][0],y:e.cvs[o][1]};o--;var u={x:e.cvs[o][0],y:e.cvs[o][1]},c=i.x*i.y,h=i.x*(1-i.y),f=(1-i.x)*(1-i.y),p=(1-i.x)*i.y;return a.x=f*s.x+h*A.x+p*u.x+c*l.x,a.y=f*s.y+h*A.y+p*u.y+c*l.y,a}function SN(r,e,t){var n=t.x,i=t.y,a=t.z||0,o,s,A,l={};for(A=0;A<3;A++)if(!(e&&A===2&&t.z===void 0))switch(A===0?(o=n,"ew".indexOf(r.axis[A])!==-1?s="x":s="y"):A===1?(o=i,"ns".indexOf(r.axis[A])!==-1?s="y":s="x"):(o=a,s="z"),r.axis[A]){case"e":l[s]=o;break;case"w":l[s]=-o;break;case"n":l[s]=o;break;case"s":l[s]=-o;break;case"u":t[s]!==void 0&&(l.z=o);break;case"d":t[s]!==void 0&&(l.z=-o);break;default:return null}return l}function n8(r){var e={x:r[0],y:r[1]};return r.length>2&&(e.z=r[2]),r.length>3&&(e.m=r[3]),e}function MJ(r){xN(r.x),xN(r.y)}function xN(r){if(typeof Number.isFinite=="function"){if(Number.isFinite(r))return;throw new TypeError("coordinates must be finite numbers")}if(typeof r!="number"||r!==r||!isFinite(r))throw new TypeError("coordinates must be finite numbers")}function NJ(r,e){return(r.datum.datum_type===kf||r.datum.datum_type===Hf)&&e.datumCode!=="WGS84"||(e.datum.datum_type===kf||e.datum.datum_type===Hf)&&r.datumCode!=="WGS84"}function Aw(r,e,t,n){var i;if(Array.isArray(t)&&(t=n8(t)),MJ(t),r.datum&&e.datum&&NJ(r,e)&&(i=new al("WGS84"),t=Aw(r,i,t,n),r=i),n&&r.axis!=="enu"&&(t=SN(r,!1,t)),r.projName==="longlat")t={x:t.x*da,y:t.y*da,z:t.z||0};else if(r.to_meter&&(t={x:t.x*r.to_meter,y:t.y*r.to_meter,z:t.z||0}),t=r.inverse(t),!t)return;if(r.from_greenwich&&(t.x+=r.from_greenwich),t=OJ(r.datum,e.datum,t),!!t)return e.from_greenwich&&(t={x:t.x-e.from_greenwich,y:t.y,z:t.z||0}),e.projName==="longlat"?t={x:t.x*tl,y:t.y*tl,z:t.z||0}:(t=e.forward(t),e.to_meter&&(t={x:t.x/e.to_meter,y:t.y/e.to_meter,z:t.z||0})),n&&e.axis!=="enu"?SN(e,!0,t):t}var IN=al("WGS84");function kB(r,e,t,n){var i,a,o;return Array.isArray(t)?(i=Aw(r,e,t,n)||{x:NaN,y:NaN},t.length>2?typeof r.name<"u"&&r.name==="geocent"||typeof e.name<"u"&&e.name==="geocent"?typeof i.z=="number"?[i.x,i.y,i.z].concat(t.splice(3)):[i.x,i.y,t[2]].concat(t.splice(3)):[i.x,i.y].concat(t.splice(2)):[i.x,i.y]):(a=Aw(r,e,t,n),o=Object.keys(t),o.length===2||o.forEach(function(s){if(typeof r.name<"u"&&r.name==="geocent"||typeof e.name<"u"&&e.name==="geocent"){if(s==="x"||s==="y"||s==="z")return}else if(s==="x"||s==="y")return;a[s]=t[s]}),a)}function LN(r){return r instanceof al?r:r.oProj?r.oProj:al(r)}function Do(r,e,t){r=LN(r);var n=!1,i;return typeof e>"u"?(e=r,r=IN,n=!0):(typeof e.x<"u"||Array.isArray(e))&&(t=e,e=r,r=IN,n=!0),e=LN(e),t?kB(r,e,t):(i={forward:function(a,o){return kB(r,e,a,o)},inverse:function(a,o){return kB(e,r,a,o)}},n&&(i.oProj=e),i)}var FN=6,i8="AJSAJS",a8="AFAFAF",Id=65,So=73,Is=79,rm=86,nm=90,PJ={forward:o8,inverse:UJ,toPoint:s8};function o8(r,e){return e=e||5,kJ(DJ({lat:r[1],lon:r[0]}),e)}function UJ(r){var e=xF(l8(r.toUpperCase()));return e.lat&&e.lon?[e.lon,e.lat,e.lon,e.lat]:[e.left,e.bottom,e.right,e.top]}function s8(r){var e=xF(l8(r.toUpperCase()));return e.lat&&e.lon?[e.lon,e.lat]:[(e.left+e.right)/2,(e.top+e.bottom)/2]}function HB(r){return r*(Math.PI/180)}function ON(r){return 180*(r/Math.PI)}function DJ(r){var e=r.lat,t=r.lon,n=6378137,i=.00669438,a=.9996,o,s,A,l,u,c,h,f=HB(e),p=HB(t),v,m;m=Math.floor((t+180)/6)+1,t===180&&(m=60),e>=56&&e<64&&t>=3&&t<12&&(m=32),e>=72&&e<84&&(t>=0&&t<9?m=31:t>=9&&t<21?m=33:t>=21&&t<33?m=35:t>=33&&t<42&&(m=37)),o=(m-1)*6-180+3,v=HB(o),s=i/(1-i),A=n/Math.sqrt(1-i*Math.sin(f)*Math.sin(f)),l=Math.tan(f)*Math.tan(f),u=s*Math.cos(f)*Math.cos(f),c=Math.cos(f)*(p-v),h=n*((1-i/4-3*i*i/64-5*i*i*i/256)*f-(3*i/8+3*i*i/32+45*i*i*i/1024)*Math.sin(2*f)+(15*i*i/256+45*i*i*i/1024)*Math.sin(4*f)-35*i*i*i/3072*Math.sin(6*f));var g=a*A*(c+(1-l+u)*c*c*c/6+(5-18*l+l*l+72*u-58*s)*c*c*c*c*c/120)+5e5,_=a*(h+A*Math.tan(f)*(c*c/2+(5-l+9*u+4*u*u)*c*c*c*c/24+(61-58*l+l*l+600*u-330*s)*c*c*c*c*c*c/720));return e<0&&(_+=1e7),{northing:Math.round(_),easting:Math.round(g),zoneNumber:m,zoneLetter:QJ(e)}}function xF(r){var e=r.northing,t=r.easting,n=r.zoneLetter,i=r.zoneNumber;if(i<0||i>60)return null;var a=.9996,o=6378137,s=.00669438,A,l=(1-Math.sqrt(1-s))/(1+Math.sqrt(1-s)),u,c,h,f,p,v,m,g,_,w=t-5e5,C=e;n<"N"&&(C-=1e7),m=(i-1)*6-180+3,A=s/(1-s),v=C/a,g=v/(o*(1-s/4-3*s*s/64-5*s*s*s/256)),_=g+(3*l/2-27*l*l*l/32)*Math.sin(2*g)+(21*l*l/16-55*l*l*l*l/32)*Math.sin(4*g)+151*l*l*l/96*Math.sin(6*g),u=o/Math.sqrt(1-s*Math.sin(_)*Math.sin(_)),c=Math.tan(_)*Math.tan(_),h=A*Math.cos(_)*Math.cos(_),f=o*(1-s)/Math.pow(1-s*Math.sin(_)*Math.sin(_),1.5),p=w/(u*a);var F=_-u*Math.tan(_)/f*(p*p/2-(5+3*c+10*h-4*h*h-9*A)*p*p*p*p/24+(61+90*c+298*h+45*c*c-252*A-3*h*h)*p*p*p*p*p*p/720);F=ON(F);var O=(p-(1+2*c+h)*p*p*p/6+(5-2*h+28*c-3*h*h+8*A+24*c*c)*p*p*p*p*p/120)/Math.cos(_);O=m+ON(O);var I;if(r.accuracy){var b=xF({northing:r.northing+r.accuracy,easting:r.easting+r.accuracy,zoneLetter:r.zoneLetter,zoneNumber:r.zoneNumber});I={top:b.lat,right:b.lon,bottom:F,left:O}}else I={lat:F,lon:O};return I}function QJ(r){var e="Z";return 84>=r&&r>=72?e="X":72>r&&r>=64?e="W":64>r&&r>=56?e="V":56>r&&r>=48?e="U":48>r&&r>=40?e="T":40>r&&r>=32?e="S":32>r&&r>=24?e="R":24>r&&r>=16?e="Q":16>r&&r>=8?e="P":8>r&&r>=0?e="N":0>r&&r>=-8?e="M":-8>r&&r>=-16?e="L":-16>r&&r>=-24?e="K":-24>r&&r>=-32?e="J":-32>r&&r>=-40?e="H":-40>r&&r>=-48?e="G":-48>r&&r>=-56?e="F":-56>r&&r>=-64?e="E":-64>r&&r>=-72?e="D":-72>r&&r>=-80&&(e="C"),e}function kJ(r,e){var t="00000"+r.easting,n="00000"+r.northing;return r.zoneNumber+r.zoneLetter+HJ(r.easting,r.northing,r.zoneNumber)+t.substr(t.length-5,e)+n.substr(n.length-5,e)}function HJ(r,e,t){var n=A8(t),i=Math.floor(r/1e5),a=Math.floor(e/1e5)%20;return GJ(i,a,n)}function A8(r){var e=r%FN;return e===0&&(e=FN),e}function GJ(r,e,t){var n=t-1,i=i8.charCodeAt(n),a=a8.charCodeAt(n),o=i+r-1,s=a+e,A=!1;o>nm&&(o=o-nm+Id-1,A=!0),(o===So||i<So&&o>So||(o>So||i<So)&&A)&&o++,(o===Is||i<Is&&o>Is||(o>Is||i<Is)&&A)&&(o++,o===So&&o++),o>nm&&(o=o-nm+Id-1),s>rm?(s=s-rm+Id-1,A=!0):A=!1,(s===So||a<So&&s>So||(s>So||a<So)&&A)&&s++,(s===Is||a<Is&&s>Is||(s>Is||a<Is)&&A)&&(s++,s===So&&s++),s>rm&&(s=s-rm+Id-1);var l=String.fromCharCode(o)+String.fromCharCode(s);return l}function l8(r){if(r&&r.length===0)throw"MGRSPoint coverting from nothing";for(var e=r.length,t=null,n="",i,a=0;!/[A-Z]/.test(i=r.charAt(a));){if(a>=2)throw"MGRSPoint bad conversion from: "+r;n+=i,a++}var o=parseInt(n,10);if(a===0||a+3>e)throw"MGRSPoint bad conversion from: "+r;var s=r.charAt(a++);if(s<="A"||s==="B"||s==="Y"||s>="Z"||s==="I"||s==="O")throw"MGRSPoint zone letter "+s+" not handled: "+r;t=r.substring(a,a+=2);for(var A=A8(o),l=$J(t.charAt(0),A),u=VJ(t.charAt(1),A);u<jJ(s);)u+=2e6;var c=e-a;if(c%2!==0)throw`MGRSPoint has to have an even number
|
||
of digits after the zone letter and two 100km letters - front
|
||
half for easting meters, second half for
|
||
northing meters`+r;var h=c/2,f=0,p=0,v,m,g,_,w;return h>0&&(v=1e5/Math.pow(10,h),m=r.substring(a,a+h),f=parseFloat(m)*v,g=r.substring(a+h),p=parseFloat(g)*v),_=f+l,w=p+u,{easting:_,northing:w,zoneLetter:s,zoneNumber:o,accuracy:v}}function $J(r,e){for(var t=i8.charCodeAt(e-1),n=1e5,i=!1;t!==r.charCodeAt(0);){if(t++,t===So&&t++,t===Is&&t++,t>nm){if(i)throw"Bad character: "+r;t=Id,i=!0}n+=1e5}return n}function VJ(r,e){if(r>"V")throw"MGRSPoint given invalid Northing "+r;for(var t=a8.charCodeAt(e-1),n=0,i=!1;t!==r.charCodeAt(0);){if(t++,t===So&&t++,t===Is&&t++,t>rm){if(i)throw"Bad character: "+r;t=Id,i=!0}n+=1e5}return n}function jJ(r){var e;switch(r){case"C":e=11e5;break;case"D":e=2e6;break;case"E":e=28e5;break;case"F":e=37e5;break;case"G":e=46e5;break;case"H":e=55e5;break;case"J":e=64e5;break;case"K":e=73e5;break;case"L":e=82e5;break;case"M":e=91e5;break;case"N":e=0;break;case"P":e=8e5;break;case"Q":e=17e5;break;case"R":e=26e5;break;case"S":e=35e5;break;case"T":e=44e5;break;case"U":e=53e5;break;case"V":e=62e5;break;case"W":e=7e6;break;case"X":e=79e5;break;default:e=-1}if(e>=0)return e;throw"Invalid zone letter: "+r}function sv(r,e,t){if(!(this instanceof sv))return new sv(r,e,t);if(Array.isArray(r))this.x=r[0],this.y=r[1],this.z=r[2]||0;else if(typeof r=="object")this.x=r.x,this.y=r.y,this.z=r.z||0;else if(typeof r=="string"&&typeof e>"u"){var n=r.split(",");this.x=parseFloat(n[0],10),this.y=parseFloat(n[1],10),this.z=parseFloat(n[2],10)||0}else this.x=r,this.y=e,this.z=t||0;console.warn("proj4.Point will be removed in version 3, use proj4.toPoint")}sv.fromMGRS=function(r){return new sv(s8(r))};sv.prototype.toMGRS=function(r){return o8([this.x,this.y],r)};var KJ=1,YJ=.25,RN=.046875,MN=.01953125,NN=.01068115234375,WJ=.75,zJ=.46875,XJ=.013020833333333334,qJ=.007120768229166667,ZJ=.3645833333333333,JJ=.005696614583333333,ttt=.3076171875;function u8(r){var e=[];e[0]=KJ-r*(YJ+r*(RN+r*(MN+r*NN))),e[1]=r*(WJ-r*(RN+r*(MN+r*NN)));var t=r*r;return e[2]=t*(zJ-r*(XJ+r*qJ)),t*=r,e[3]=t*(ZJ-r*JJ),e[4]=t*r*ttt,e}function QE(r,e,t,n){return t*=e,e*=e,n[0]*r-t*(n[1]+e*(n[2]+e*(n[3]+e*n[4])))}var ett=20;function c8(r,e,t){for(var n=1/(1-e),i=r,a=ett;a;--a){var o=Math.sin(i),s=1-e*o*o;if(s=(QE(i,o,Math.cos(i),t)-r)*(s*Math.sqrt(s))*n,i-=s,Math.abs(s)<he)return i}return i}function rtt(){this.x0=this.x0!==void 0?this.x0:0,this.y0=this.y0!==void 0?this.y0:0,this.long0=this.long0!==void 0?this.long0:0,this.lat0=this.lat0!==void 0?this.lat0:0,this.es&&(this.en=u8(this.es),this.ml0=QE(this.lat0,Math.sin(this.lat0),Math.cos(this.lat0),this.en))}function ntt(r){var e=r.x,t=r.y,n=we(e-this.long0),i,a,o,s=Math.sin(t),A=Math.cos(t);if(this.es){var u=A*n,c=Math.pow(u,2),h=this.ep2*Math.pow(A,2),f=Math.pow(h,2),p=Math.abs(A)>he?Math.tan(t):0,v=Math.pow(p,2),m=Math.pow(v,2);i=1-this.es*Math.pow(s,2),u=u/Math.sqrt(i);var g=QE(t,s,A,this.en);a=this.a*(this.k0*u*(1+c/6*(1-v+h+c/20*(5-18*v+m+14*h-58*v*h+c/42*(61+179*m-m*v-479*v)))))+this.x0,o=this.a*(this.k0*(g-this.ml0+s*n*u/2*(1+c/12*(5-v+9*h+4*f+c/30*(61+m-58*v+270*h-330*v*h+c/56*(1385+543*m-m*v-3111*v))))))+this.y0}else{var l=A*Math.sin(n);if(Math.abs(Math.abs(l)-1)<he)return 93;if(a=.5*this.a*this.k0*Math.log((1+l)/(1-l))+this.x0,o=A*Math.cos(n)/Math.sqrt(1-Math.pow(l,2)),l=Math.abs(o),l>=1){if(l-1>he)return 93;o=0}else o=Math.acos(o);t<0&&(o=-o),o=this.a*this.k0*(o-this.lat0)+this.y0}return r.x=a,r.y=o,r}function itt(r){var e,t,n,i,a=(r.x-this.x0)*(1/this.a),o=(r.y-this.y0)*(1/this.a);if(this.es)if(e=this.ml0+o/this.k0,t=c8(e,this.es,this.en),Math.abs(t)<ee){var c=Math.sin(t),h=Math.cos(t),f=Math.abs(h)>he?Math.tan(t):0,p=this.ep2*Math.pow(h,2),v=Math.pow(p,2),m=Math.pow(f,2),g=Math.pow(m,2);e=1-this.es*Math.pow(c,2);var _=a*Math.sqrt(e)/this.k0,w=Math.pow(_,2);e=e*f,n=t-e*w/(1-this.es)*.5*(1-w/12*(5+3*m-9*p*m+p-4*v-w/30*(61+90*m-252*p*m+45*g+46*p-w/56*(1385+3633*m+4095*g+1574*g*m)))),i=we(this.long0+_*(1-w/6*(1+2*m+p-w/20*(5+28*m+24*g+8*p*m+6*p-w/42*(61+662*m+1320*g+720*g*m))))/h)}else n=ee*Ky(o),i=0;else{var s=Math.exp(a/this.k0),A=.5*(s-1/s),l=this.lat0+o/this.k0,u=Math.cos(l);e=Math.sqrt((1-Math.pow(u,2))/(1+Math.pow(A,2))),n=Math.asin(e),o<0&&(n=-n),A===0&&u===0?i=0:i=we(Math.atan2(A,u)+this.long0)}return r.x=i,r.y=n,r}var att=["Fast_Transverse_Mercator","Fast Transverse Mercator"],u1={init:rtt,forward:ntt,inverse:itt,names:att};function h8(r){var e=Math.exp(r);return e=(e-1/e)/2,e}function kE(r,e){r=Math.abs(r),e=Math.abs(e);var t=Math.max(r,e),n=Math.min(r,e)/(t||1);return t*Math.sqrt(1+Math.pow(n,2))}function ott(r){var e=1+r,t=e-1;return t===0?r:r*Math.log(e)/t}function stt(r){var e=Math.abs(r);return e=ott(e*(1+e/(kE(1,e)+1))),r<0?-e:e}function IF(r,e){for(var t=2*Math.cos(2*e),n=r.length-1,i=r[n],a=0,o;--n>=0;)o=-a+t*i+r[n],a=i,i=o;return e+o*Math.sin(2*e)}function Att(r,e){for(var t=2*Math.cos(e),n=r.length-1,i=r[n],a=0,o;--n>=0;)o=-a+t*i+r[n],a=i,i=o;return Math.sin(e)*o}function ltt(r){var e=Math.exp(r);return e=(e+1/e)/2,e}function f8(r,e,t){for(var n=Math.sin(e),i=Math.cos(e),a=h8(t),o=ltt(t),s=2*i*o,A=-2*n*a,l=r.length-1,u=r[l],c=0,h=0,f=0,p,v;--l>=0;)p=h,v=c,h=u,c=f,u=-p+s*h-A*c+r[l],f=-v+A*h+s*c;return s=n*o,A=i*a,[s*u-A*f,s*f+A*u]}function utt(){if(!this.approx&&(isNaN(this.es)||this.es<=0))throw new Error('Incorrect elliptical usage. Try using the +approx option in the proj string, or PROJECTION["Fast_Transverse_Mercator"] in the WKT.');this.approx&&(u1.init.apply(this),this.forward=u1.forward,this.inverse=u1.inverse),this.x0=this.x0!==void 0?this.x0:0,this.y0=this.y0!==void 0?this.y0:0,this.long0=this.long0!==void 0?this.long0:0,this.lat0=this.lat0!==void 0?this.lat0:0,this.cgb=[],this.cbg=[],this.utg=[],this.gtu=[];var r=this.es/(1+Math.sqrt(1-this.es)),e=r/(2-r),t=e;this.cgb[0]=e*(2+e*(-2/3+e*(-2+e*(116/45+e*(26/45+e*(-2854/675)))))),this.cbg[0]=e*(-2+e*(2/3+e*(4/3+e*(-82/45+e*(32/45+e*(4642/4725)))))),t=t*e,this.cgb[1]=t*(7/3+e*(-8/5+e*(-227/45+e*(2704/315+e*(2323/945))))),this.cbg[1]=t*(5/3+e*(-16/15+e*(-13/9+e*(904/315+e*(-1522/945))))),t=t*e,this.cgb[2]=t*(56/15+e*(-136/35+e*(-1262/105+e*(73814/2835)))),this.cbg[2]=t*(-26/15+e*(34/21+e*(8/5+e*(-12686/2835)))),t=t*e,this.cgb[3]=t*(4279/630+e*(-332/35+e*(-399572/14175))),this.cbg[3]=t*(1237/630+e*(-12/5+e*(-24832/14175))),t=t*e,this.cgb[4]=t*(4174/315+e*(-144838/6237)),this.cbg[4]=t*(-734/315+e*(109598/31185)),t=t*e,this.cgb[5]=t*(601676/22275),this.cbg[5]=t*(444337/155925),t=Math.pow(e,2),this.Qn=this.k0/(1+e)*(1+t*(1/4+t*(1/64+t/256))),this.utg[0]=e*(-.5+e*(2/3+e*(-37/96+e*(1/360+e*(81/512+e*(-96199/604800)))))),this.gtu[0]=e*(.5+e*(-2/3+e*(5/16+e*(41/180+e*(-127/288+e*(7891/37800)))))),this.utg[1]=t*(-1/48+e*(-1/15+e*(437/1440+e*(-46/105+e*(1118711/3870720))))),this.gtu[1]=t*(13/48+e*(-3/5+e*(557/1440+e*(281/630+e*(-1983433/1935360))))),t=t*e,this.utg[2]=t*(-17/480+e*(37/840+e*(209/4480+e*(-5569/90720)))),this.gtu[2]=t*(61/240+e*(-103/140+e*(15061/26880+e*(167603/181440)))),t=t*e,this.utg[3]=t*(-4397/161280+e*(11/504+e*(830251/7257600))),this.gtu[3]=t*(49561/161280+e*(-179/168+e*(6601661/7257600))),t=t*e,this.utg[4]=t*(-4583/161280+e*(108847/3991680)),this.gtu[4]=t*(34729/80640+e*(-3418889/1995840)),t=t*e,this.utg[5]=t*(-20648693/638668800),this.gtu[5]=t*(212378941/319334400);var n=IF(this.cbg,this.lat0);this.Zb=-this.Qn*(n+Att(this.gtu,2*n))}function ctt(r){var e=we(r.x-this.long0),t=r.y;t=IF(this.cbg,t);var n=Math.sin(t),i=Math.cos(t),a=Math.sin(e),o=Math.cos(e);t=Math.atan2(n,o*i),e=Math.atan2(a*i,kE(n,i*o)),e=stt(Math.tan(e));var s=f8(this.gtu,2*t,2*e);t=t+s[0],e=e+s[1];var A,l;return Math.abs(e)<=2.623395162778?(A=this.a*(this.Qn*e)+this.x0,l=this.a*(this.Qn*t+this.Zb)+this.y0):(A=1/0,l=1/0),r.x=A,r.y=l,r}function htt(r){var e=(r.x-this.x0)*(1/this.a),t=(r.y-this.y0)*(1/this.a);t=(t-this.Zb)/this.Qn,e=e/this.Qn;var n,i;if(Math.abs(e)<=2.623395162778){var a=f8(this.utg,2*t,2*e);t=t+a[0],e=e+a[1],e=Math.atan(h8(e));var o=Math.sin(t),s=Math.cos(t),A=Math.sin(e),l=Math.cos(e);t=Math.atan2(o*l,kE(A,l*s)),e=Math.atan2(A,l*s),n=we(e+this.long0),i=IF(this.cgb,t)}else n=1/0,i=1/0;return r.x=n,r.y=i,r}var ftt=["Extended_Transverse_Mercator","Extended Transverse Mercator","etmerc","Transverse_Mercator","Transverse Mercator","tmerc"],c1={init:utt,forward:ctt,inverse:htt,names:ftt};function ptt(r,e){if(r===void 0){if(r=Math.floor((we(e)+Math.PI)*30/Math.PI)+1,r<0)return 0;if(r>60)return 60}return r}var dtt="etmerc";function vtt(){var r=ptt(this.zone,this.long0);if(r===void 0)throw new Error("unknown utm zone");this.lat0=0,this.long0=(6*Math.abs(r)-183)*da,this.x0=5e5,this.y0=this.utmSouth?1e7:0,this.k0=.9996,c1.init.apply(this),this.forward=c1.forward,this.inverse=c1.inverse}var gtt=["Universal Transverse Mercator System","utm"],mtt={init:vtt,names:gtt,dependsOn:dtt};function LF(r,e){return Math.pow((1-r)/(1+r),e)}var ytt=20;function _tt(){var r=Math.sin(this.lat0),e=Math.cos(this.lat0);e*=e,this.rc=Math.sqrt(1-this.es)/(1-this.es*r*r),this.C=Math.sqrt(1+this.es*e*e/(1-this.es)),this.phic0=Math.asin(r/this.C),this.ratexp=.5*this.C*this.e,this.K=Math.tan(.5*this.phic0+sn)/(Math.pow(Math.tan(.5*this.lat0+sn),this.C)*LF(this.e*r,this.ratexp))}function wtt(r){var e=r.x,t=r.y;return r.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*t+sn),this.C)*LF(this.e*Math.sin(t),this.ratexp))-ee,r.x=this.C*e,r}function Ett(r){for(var e=1e-14,t=r.x/this.C,n=r.y,i=Math.pow(Math.tan(.5*n+sn)/this.K,1/this.C),a=ytt;a>0&&(n=2*Math.atan(i*LF(this.e*Math.sin(r.y),-.5*this.e))-ee,!(Math.abs(n-r.y)<e));--a)r.y=n;return a?(r.x=t,r.y=n,r):null}var Ctt=["gauss"],FF={init:_tt,forward:wtt,inverse:Ett,names:Ctt};function Btt(){FF.init.apply(this),this.rc&&(this.sinc0=Math.sin(this.phic0),this.cosc0=Math.cos(this.phic0),this.R2=2*this.rc,this.title||(this.title="Oblique Stereographic Alternative"))}function Ttt(r){var e,t,n,i;return r.x=we(r.x-this.long0),FF.forward.apply(this,[r]),e=Math.sin(r.y),t=Math.cos(r.y),n=Math.cos(r.x),i=this.k0*this.R2/(1+this.sinc0*e+this.cosc0*t*n),r.x=i*t*Math.sin(r.x),r.y=i*(this.cosc0*e-this.sinc0*t*n),r.x=this.a*r.x+this.x0,r.y=this.a*r.y+this.y0,r}function btt(r){var e,t,n,i,a;if(r.x=(r.x-this.x0)/this.a,r.y=(r.y-this.y0)/this.a,r.x/=this.k0,r.y/=this.k0,a=Math.sqrt(r.x*r.x+r.y*r.y)){var o=2*Math.atan2(a,this.R2);e=Math.sin(o),t=Math.cos(o),i=Math.asin(t*this.sinc0+r.y*e*this.cosc0/a),n=Math.atan2(r.x*e,a*this.cosc0*t-r.y*this.sinc0*e)}else i=this.phic0,n=0;return r.x=n,r.y=i,FF.inverse.apply(this,[r]),r.x=we(r.x+this.long0),r}var Stt=["Stereographic_North_Pole","Oblique_Stereographic","Polar_Stereographic","sterea","Oblique Stereographic Alternative","Double_Stereographic"],xtt={init:Btt,forward:Ttt,inverse:btt,names:Stt};function Itt(r,e,t){return e*=t,Math.tan(.5*(ee+r))*Math.pow((1-e)/(1+e),.5*t)}function Ltt(){this.coslat0=Math.cos(this.lat0),this.sinlat0=Math.sin(this.lat0),this.sphere?this.k0===1&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=he&&(this.k0=.5*(1+Ky(this.lat0)*Math.sin(this.lat_ts))):(Math.abs(this.coslat0)<=he&&(this.lat0>0?this.con=1:this.con=-1),this.cons=Math.sqrt(Math.pow(1+this.e,1+this.e)*Math.pow(1-this.e,1-this.e)),this.k0===1&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=he&&(this.k0=.5*this.cons*hl(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/hA(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=hl(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(this.ssfn_(this.lat0,this.sinlat0,this.e))-ee,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))}function Ftt(r){var e=r.x,t=r.y,n=Math.sin(t),i=Math.cos(t),a,o,s,A,l,u,c=we(e-this.long0);return Math.abs(Math.abs(e-this.long0)-Math.PI)<=he&&Math.abs(t+this.lat0)<=he?(r.x=NaN,r.y=NaN,r):this.sphere?(a=2*this.k0/(1+this.sinlat0*n+this.coslat0*i*Math.cos(c)),r.x=this.a*a*i*Math.sin(c)+this.x0,r.y=this.a*a*(this.coslat0*n-this.sinlat0*i*Math.cos(c))+this.y0,r):(o=2*Math.atan(this.ssfn_(t,n,this.e))-ee,A=Math.cos(o),s=Math.sin(o),Math.abs(this.coslat0)<=he?(l=hA(this.e,t*this.con,this.con*n),u=2*this.a*this.k0*l/this.cons,r.x=this.x0+u*Math.sin(e-this.long0),r.y=this.y0-this.con*u*Math.cos(e-this.long0),r):(Math.abs(this.sinlat0)<he?(a=2*this.a*this.k0/(1+A*Math.cos(c)),r.y=a*s):(a=2*this.a*this.k0*this.ms1/(this.cosX0*(1+this.sinX0*s+this.cosX0*A*Math.cos(c))),r.y=a*(this.cosX0*s-this.sinX0*A*Math.cos(c))+this.y0),r.x=a*A*Math.sin(c)+this.x0,r))}function Ott(r){r.x-=this.x0,r.y-=this.y0;var e,t,n,i,a,o=Math.sqrt(r.x*r.x+r.y*r.y);if(this.sphere){var s=2*Math.atan(o/(2*this.a*this.k0));return e=this.long0,t=this.lat0,o<=he?(r.x=e,r.y=t,r):(t=Math.asin(Math.cos(s)*this.sinlat0+r.y*Math.sin(s)*this.coslat0/o),Math.abs(this.coslat0)<he?this.lat0>0?e=we(this.long0+Math.atan2(r.x,-1*r.y)):e=we(this.long0+Math.atan2(r.x,r.y)):e=we(this.long0+Math.atan2(r.x*Math.sin(s),o*this.coslat0*Math.cos(s)-r.y*this.sinlat0*Math.sin(s))),r.x=e,r.y=t,r)}else if(Math.abs(this.coslat0)<=he){if(o<=he)return t=this.lat0,e=this.long0,r.x=e,r.y=t,r;r.x*=this.con,r.y*=this.con,n=o*this.cons/(2*this.a*this.k0),t=this.con*ly(this.e,n),e=this.con*we(this.con*this.long0+Math.atan2(r.x,-1*r.y))}else i=2*Math.atan(o*this.cosX0/(2*this.a*this.k0*this.ms1)),e=this.long0,o<=he?a=this.X0:(a=Math.asin(Math.cos(i)*this.sinX0+r.y*Math.sin(i)*this.cosX0/o),e=we(this.long0+Math.atan2(r.x*Math.sin(i),o*this.cosX0*Math.cos(i)-r.y*this.sinX0*Math.sin(i)))),t=-1*ly(this.e,Math.tan(.5*(ee+a)));return r.x=e,r.y=t,r}var Rtt=["stere","Stereographic_South_Pole","Polar Stereographic (variant B)"],Mtt={init:Ltt,forward:Ftt,inverse:Ott,names:Rtt,ssfn_:Itt};function Ntt(){var r=this.lat0;this.lambda0=this.long0;var e=Math.sin(r),t=this.a,n=this.rf,i=1/n,a=2*i-Math.pow(i,2),o=this.e=Math.sqrt(a);this.R=this.k0*t*Math.sqrt(1-a)/(1-a*Math.pow(e,2)),this.alpha=Math.sqrt(1+a/(1-a)*Math.pow(Math.cos(r),4)),this.b0=Math.asin(e/this.alpha);var s=Math.log(Math.tan(Math.PI/4+this.b0/2)),A=Math.log(Math.tan(Math.PI/4+r/2)),l=Math.log((1+o*e)/(1-o*e));this.K=s-this.alpha*A+this.alpha*o/2*l}function Ptt(r){var e=Math.log(Math.tan(Math.PI/4-r.y/2)),t=this.e/2*Math.log((1+this.e*Math.sin(r.y))/(1-this.e*Math.sin(r.y))),n=-this.alpha*(e+t)+this.K,i=2*(Math.atan(Math.exp(n))-Math.PI/4),a=this.alpha*(r.x-this.lambda0),o=Math.atan(Math.sin(a)/(Math.sin(this.b0)*Math.tan(i)+Math.cos(this.b0)*Math.cos(a))),s=Math.asin(Math.cos(this.b0)*Math.sin(i)-Math.sin(this.b0)*Math.cos(i)*Math.cos(a));return r.y=this.R/2*Math.log((1+Math.sin(s))/(1-Math.sin(s)))+this.y0,r.x=this.R*o+this.x0,r}function Utt(r){for(var e=r.x-this.x0,t=r.y-this.y0,n=e/this.R,i=2*(Math.atan(Math.exp(t/this.R))-Math.PI/4),a=Math.asin(Math.cos(this.b0)*Math.sin(i)+Math.sin(this.b0)*Math.cos(i)*Math.cos(n)),o=Math.atan(Math.sin(n)/(Math.cos(this.b0)*Math.cos(n)-Math.sin(this.b0)*Math.tan(i))),s=this.lambda0+o/this.alpha,A=0,l=a,u=-1e3,c=0;Math.abs(l-u)>1e-7;){if(++c>20)return;A=1/this.alpha*(Math.log(Math.tan(Math.PI/4+a/2))-this.K)+this.e*Math.log(Math.tan(Math.PI/4+Math.asin(this.e*Math.sin(l))/2)),u=l,l=2*Math.atan(Math.exp(A))-Math.PI/2}return r.x=s,r.y=l,r}var Dtt=["somerc"],Qtt={init:Ntt,forward:Ptt,inverse:Utt,names:Dtt},dd=1e-7;function ktt(r){var e=["Hotine_Oblique_Mercator","Hotine_Oblique_Mercator_Azimuth_Natural_Origin"],t=typeof r.PROJECTION=="object"?Object.keys(r.PROJECTION)[0]:r.PROJECTION;return"no_uoff"in r||"no_off"in r||e.indexOf(t)!==-1}function Htt(){var r,e,t,n,i,a,o,s,A,l,u=0,c,h=0,f=0,p=0,v=0,m=0,g=0;this.no_off=ktt(this),this.no_rot="no_rot"in this;var _=!1;"alpha"in this&&(_=!0);var w=!1;if("rectified_grid_angle"in this&&(w=!0),_&&(g=this.alpha),w&&(u=this.rectified_grid_angle*da),_||w)h=this.longc;else if(f=this.long1,v=this.lat1,p=this.long2,m=this.lat2,Math.abs(v-m)<=dd||(r=Math.abs(v))<=dd||Math.abs(r-ee)<=dd||Math.abs(Math.abs(this.lat0)-ee)<=dd||Math.abs(Math.abs(m)-ee)<=dd)throw new Error;var C=1-this.es;e=Math.sqrt(C),Math.abs(this.lat0)>he?(s=Math.sin(this.lat0),t=Math.cos(this.lat0),r=1-this.es*s*s,this.B=t*t,this.B=Math.sqrt(1+this.es*this.B*this.B/C),this.A=this.B*this.k0*e/r,n=this.B*e/(t*Math.sqrt(r)),i=n*n-1,i<=0?i=0:(i=Math.sqrt(i),this.lat0<0&&(i=-i)),this.E=i+=n,this.E*=Math.pow(hA(this.e,this.lat0,s),this.B)):(this.B=1/e,this.A=this.k0,this.E=n=i=1),_||w?(_?(c=Math.asin(Math.sin(g)/n),w||(u=g)):(c=u,g=Math.asin(n*Math.sin(c))),this.lam0=h-Math.asin(.5*(i-1/i)*Math.tan(c))/this.B):(a=Math.pow(hA(this.e,v,Math.sin(v)),this.B),o=Math.pow(hA(this.e,m,Math.sin(m)),this.B),i=this.E/a,A=(o-a)/(o+a),l=this.E*this.E,l=(l-o*a)/(l+o*a),r=f-p,r<-Math.pi?p-=sy:r>Math.pi&&(p+=sy),this.lam0=we(.5*(f+p)-Math.atan(l*Math.tan(.5*this.B*(f-p))/A)/this.B),c=Math.atan(2*Math.sin(this.B*we(f-this.lam0))/(i-1/i)),u=g=Math.asin(n*Math.sin(c))),this.singam=Math.sin(c),this.cosgam=Math.cos(c),this.sinrot=Math.sin(u),this.cosrot=Math.cos(u),this.rB=1/this.B,this.ArB=this.A*this.rB,this.BrA=1/this.ArB,this.A*this.B,this.no_off?this.u_0=0:(this.u_0=Math.abs(this.ArB*Math.atan(Math.sqrt(n*n-1)/Math.cos(g))),this.lat0<0&&(this.u_0=-this.u_0)),i=.5*c,this.v_pole_n=this.ArB*Math.log(Math.tan(sn-i)),this.v_pole_s=this.ArB*Math.log(Math.tan(sn+i))}function Gtt(r){var e={},t,n,i,a,o,s,A,l;if(r.x=r.x-this.lam0,Math.abs(Math.abs(r.y)-ee)>he){if(o=this.E/Math.pow(hA(this.e,r.y,Math.sin(r.y)),this.B),s=1/o,t=.5*(o-s),n=.5*(o+s),a=Math.sin(this.B*r.x),i=(t*this.singam-a*this.cosgam)/n,Math.abs(Math.abs(i)-1)<he)throw new Error;l=.5*this.ArB*Math.log((1-i)/(1+i)),s=Math.cos(this.B*r.x),Math.abs(s)<dd?A=this.A*r.x:A=this.ArB*Math.atan2(t*this.cosgam+a*this.singam,s)}else l=r.y>0?this.v_pole_n:this.v_pole_s,A=this.ArB*r.y;return this.no_rot?(e.x=A,e.y=l):(A-=this.u_0,e.x=l*this.cosrot+A*this.sinrot,e.y=A*this.cosrot-l*this.sinrot),e.x=this.a*e.x+this.x0,e.y=this.a*e.y+this.y0,e}function $tt(r){var e,t,n,i,a,o,s,A={};if(r.x=(r.x-this.x0)*(1/this.a),r.y=(r.y-this.y0)*(1/this.a),this.no_rot?(t=r.y,e=r.x):(t=r.x*this.cosrot-r.y*this.sinrot,e=r.y*this.cosrot+r.x*this.sinrot+this.u_0),n=Math.exp(-this.BrA*t),i=.5*(n-1/n),a=.5*(n+1/n),o=Math.sin(this.BrA*e),s=(o*this.cosgam+i*this.singam)/a,Math.abs(Math.abs(s)-1)<he)A.x=0,A.y=s<0?-ee:ee;else{if(A.y=this.E/Math.sqrt((1+s)/(1-s)),A.y=ly(this.e,Math.pow(A.y,1/this.B)),A.y===1/0)throw new Error;A.x=-this.rB*Math.atan2(i*this.cosgam-o*this.singam,Math.cos(this.BrA*e))}return A.x+=this.lam0,A}var Vtt=["Hotine_Oblique_Mercator","Hotine Oblique Mercator","Hotine_Oblique_Mercator_Azimuth_Natural_Origin","Hotine_Oblique_Mercator_Two_Point_Natural_Origin","Hotine_Oblique_Mercator_Azimuth_Center","Oblique_Mercator","omerc"],jtt={init:Htt,forward:Gtt,inverse:$tt,names:Vtt};function Ktt(){if(this.lat2||(this.lat2=this.lat1),this.k0||(this.k0=1),this.x0=this.x0||0,this.y0=this.y0||0,!(Math.abs(this.lat1+this.lat2)<he)){var r=this.b/this.a;this.e=Math.sqrt(1-r*r);var e=Math.sin(this.lat1),t=Math.cos(this.lat1),n=hl(this.e,e,t),i=hA(this.e,this.lat1,e),a=Math.sin(this.lat2),o=Math.cos(this.lat2),s=hl(this.e,a,o),A=hA(this.e,this.lat2,a),l=hA(this.e,this.lat0,Math.sin(this.lat0));Math.abs(this.lat1-this.lat2)>he?this.ns=Math.log(n/s)/Math.log(i/A):this.ns=e,isNaN(this.ns)&&(this.ns=e),this.f0=n/(this.ns*Math.pow(i,this.ns)),this.rh=this.a*this.f0*Math.pow(l,this.ns),this.title||(this.title="Lambert Conformal Conic")}}function Ytt(r){var e=r.x,t=r.y;Math.abs(2*Math.abs(t)-Math.PI)<=he&&(t=Ky(t)*(ee-2*he));var n=Math.abs(Math.abs(t)-ee),i,a;if(n>he)i=hA(this.e,t,Math.sin(t)),a=this.a*this.f0*Math.pow(i,this.ns);else{if(n=t*this.ns,n<=0)return null;a=0}var o=this.ns*we(e-this.long0);return r.x=this.k0*(a*Math.sin(o))+this.x0,r.y=this.k0*(this.rh-a*Math.cos(o))+this.y0,r}function Wtt(r){var e,t,n,i,a,o=(r.x-this.x0)/this.k0,s=this.rh-(r.y-this.y0)/this.k0;this.ns>0?(e=Math.sqrt(o*o+s*s),t=1):(e=-Math.sqrt(o*o+s*s),t=-1);var A=0;if(e!==0&&(A=Math.atan2(t*o,t*s)),e!==0||this.ns>0){if(t=1/this.ns,n=Math.pow(e/(this.a*this.f0),t),i=ly(this.e,n),i===-9999)return null}else i=-ee;return a=we(A/this.ns+this.long0),r.x=a,r.y=i,r}var ztt=["Lambert Tangential Conformal Conic Projection","Lambert_Conformal_Conic","Lambert_Conformal_Conic_1SP","Lambert_Conformal_Conic_2SP","lcc"],Xtt={init:Ktt,forward:Ytt,inverse:Wtt,names:ztt};function qtt(){this.a=6377397155e-3,this.es=.006674372230614,this.e=Math.sqrt(this.es),this.lat0||(this.lat0=.863937979737193),this.long0||(this.long0=.7417649320975901-.308341501185665),this.k0||(this.k0=.9999),this.s45=.785398163397448,this.s90=2*this.s45,this.fi0=this.lat0,this.e2=this.es,this.e=Math.sqrt(this.e2),this.alfa=Math.sqrt(1+this.e2*Math.pow(Math.cos(this.fi0),4)/(1-this.e2)),this.uq=1.04216856380474,this.u0=Math.asin(Math.sin(this.fi0)/this.alfa),this.g=Math.pow((1+this.e*Math.sin(this.fi0))/(1-this.e*Math.sin(this.fi0)),this.alfa*this.e/2),this.k=Math.tan(this.u0/2+this.s45)/Math.pow(Math.tan(this.fi0/2+this.s45),this.alfa)*this.g,this.k1=this.k0,this.n0=this.a*Math.sqrt(1-this.e2)/(1-this.e2*Math.pow(Math.sin(this.fi0),2)),this.s0=1.37008346281555,this.n=Math.sin(this.s0),this.ro0=this.k1*this.n0/Math.tan(this.s0),this.ad=this.s90-this.uq}function Ztt(r){var e,t,n,i,a,o,s,A=r.x,l=r.y,u=we(A-this.long0);return e=Math.pow((1+this.e*Math.sin(l))/(1-this.e*Math.sin(l)),this.alfa*this.e/2),t=2*(Math.atan(this.k*Math.pow(Math.tan(l/2+this.s45),this.alfa)/e)-this.s45),n=-u*this.alfa,i=Math.asin(Math.cos(this.ad)*Math.sin(t)+Math.sin(this.ad)*Math.cos(t)*Math.cos(n)),a=Math.asin(Math.cos(t)*Math.sin(n)/Math.cos(i)),o=this.n*a,s=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(i/2+this.s45),this.n),r.y=s*Math.cos(o)/1,r.x=s*Math.sin(o)/1,this.czech||(r.y*=-1,r.x*=-1),r}function Jtt(r){var e,t,n,i,a,o,s,A,l=r.x;r.x=r.y,r.y=l,this.czech||(r.y*=-1,r.x*=-1),o=Math.sqrt(r.x*r.x+r.y*r.y),a=Math.atan2(r.y,r.x),i=a/Math.sin(this.s0),n=2*(Math.atan(Math.pow(this.ro0/o,1/this.n)*Math.tan(this.s0/2+this.s45))-this.s45),e=Math.asin(Math.cos(this.ad)*Math.sin(n)-Math.sin(this.ad)*Math.cos(n)*Math.cos(i)),t=Math.asin(Math.cos(n)*Math.sin(i)/Math.cos(e)),r.x=this.long0-t/this.alfa,s=e,A=0;var u=0;do r.y=2*(Math.atan(Math.pow(this.k,-1/this.alfa)*Math.pow(Math.tan(e/2+this.s45),1/this.alfa)*Math.pow((1+this.e*Math.sin(s))/(1-this.e*Math.sin(s)),this.e/2))-this.s45),Math.abs(s-r.y)<1e-10&&(A=1),s=r.y,u+=1;while(A===0&&u<15);return u>=15?null:r}var tet=["Krovak","krovak"],eet={init:qtt,forward:Ztt,inverse:Jtt,names:tet};function uo(r,e,t,n,i){return r*i-e*Math.sin(2*i)+t*Math.sin(4*i)-n*Math.sin(6*i)}function Yy(r){return 1-.25*r*(1+r/16*(3+1.25*r))}function Wy(r){return .375*r*(1+.25*r*(1+.46875*r))}function zy(r){return .05859375*r*r*(1+.75*r)}function Xy(r){return r*r*r*(35/3072)}function Av(r,e,t){var n=e*t;return r/Math.sqrt(1-n*n)}function Fv(r){return Math.abs(r)<ee?r:r-Ky(r)*Math.PI}function lw(r,e,t,n,i){var a,o;a=r/e;for(var s=0;s<15;s++)if(o=(r-(e*a-t*Math.sin(2*a)+n*Math.sin(4*a)-i*Math.sin(6*a)))/(e-2*t*Math.cos(2*a)+4*n*Math.cos(4*a)-6*i*Math.cos(6*a)),a+=o,Math.abs(o)<=1e-10)return a;return NaN}function ret(){this.sphere||(this.e0=Yy(this.es),this.e1=Wy(this.es),this.e2=zy(this.es),this.e3=Xy(this.es),this.ml0=this.a*uo(this.e0,this.e1,this.e2,this.e3,this.lat0))}function net(r){var e,t,n=r.x,i=r.y;if(n=we(n-this.long0),this.sphere)e=this.a*Math.asin(Math.cos(i)*Math.sin(n)),t=this.a*(Math.atan2(Math.tan(i),Math.cos(n))-this.lat0);else{var a=Math.sin(i),o=Math.cos(i),s=Av(this.a,this.e,a),A=Math.tan(i)*Math.tan(i),l=n*Math.cos(i),u=l*l,c=this.es*o*o/(1-this.es),h=this.a*uo(this.e0,this.e1,this.e2,this.e3,i);e=s*l*(1-u*A*(1/6-(8-A+8*c)*u/120)),t=h-this.ml0+s*a/o*u*(.5+(5-A+6*c)*u/24)}return r.x=e+this.x0,r.y=t+this.y0,r}function iet(r){r.x-=this.x0,r.y-=this.y0;var e=r.x/this.a,t=r.y/this.a,n,i;if(this.sphere){var a=t+this.lat0;n=Math.asin(Math.sin(a)*Math.cos(e)),i=Math.atan2(Math.tan(e),Math.cos(a))}else{var o=this.ml0/this.a+t,s=lw(o,this.e0,this.e1,this.e2,this.e3);if(Math.abs(Math.abs(s)-ee)<=he)return r.x=this.long0,r.y=ee,t<0&&(r.y*=-1),r;var A=Av(this.a,this.e,Math.sin(s)),l=A*A*A/this.a/this.a*(1-this.es),u=Math.pow(Math.tan(s),2),c=e*this.a/A,h=c*c;n=s-A*Math.tan(s)/l*c*c*(.5-(1+3*u)*c*c/24),i=c*(1-h*(u/3+(1+3*u)*u*h/15))/Math.cos(s)}return r.x=we(i+this.long0),r.y=Fv(n),r}var aet=["Cassini","Cassini_Soldner","cass"],oet={init:ret,forward:net,inverse:iet,names:aet};function Nc(r,e){var t;return r>1e-7?(t=r*e,(1-r*r)*(e/(1-t*t)-.5/r*Math.log((1-t)/(1+t)))):2*e}var set=1,Aet=2,uet=3,cet=4;function het(){var r=Math.abs(this.lat0);if(Math.abs(r-ee)<he?this.mode=this.lat0<0?this.S_POLE:this.N_POLE:Math.abs(r)<he?this.mode=this.EQUIT:this.mode=this.OBLIQ,this.es>0){var e;switch(this.qp=Nc(this.e,1),this.mmf=.5/(1-this.es),this.apa=wet(this.es),this.mode){case this.N_POLE:this.dd=1;break;case this.S_POLE:this.dd=1;break;case this.EQUIT:this.rq=Math.sqrt(.5*this.qp),this.dd=1/this.rq,this.xmf=1,this.ymf=.5*this.qp;break;case this.OBLIQ:this.rq=Math.sqrt(.5*this.qp),e=Math.sin(this.lat0),this.sinb1=Nc(this.e,e)/this.qp,this.cosb1=Math.sqrt(1-this.sinb1*this.sinb1),this.dd=Math.cos(this.lat0)/(Math.sqrt(1-this.es*e*e)*this.rq*this.cosb1),this.ymf=(this.xmf=this.rq)/this.dd,this.xmf*=this.dd;break}}else this.mode===this.OBLIQ&&(this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0))}function fet(r){var e,t,n,i,a,o,s,A,l,u,c=r.x,h=r.y;if(c=we(c-this.long0),this.sphere){if(a=Math.sin(h),u=Math.cos(h),n=Math.cos(c),this.mode===this.OBLIQ||this.mode===this.EQUIT){if(t=this.mode===this.EQUIT?1+u*n:1+this.sinph0*a+this.cosph0*u*n,t<=he)return null;t=Math.sqrt(2/t),e=t*u*Math.sin(c),t*=this.mode===this.EQUIT?a:this.cosph0*a-this.sinph0*u*n}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(n=-n),Math.abs(h+this.lat0)<he)return null;t=sn-h*.5,t=2*(this.mode===this.S_POLE?Math.cos(t):Math.sin(t)),e=t*Math.sin(c),t*=n}}else{switch(s=0,A=0,l=0,n=Math.cos(c),i=Math.sin(c),a=Math.sin(h),o=Nc(this.e,a),(this.mode===this.OBLIQ||this.mode===this.EQUIT)&&(s=o/this.qp,A=Math.sqrt(1-s*s)),this.mode){case this.OBLIQ:l=1+this.sinb1*s+this.cosb1*A*n;break;case this.EQUIT:l=1+A*n;break;case this.N_POLE:l=ee+h,o=this.qp-o;break;case this.S_POLE:l=h-ee,o=this.qp+o;break}if(Math.abs(l)<he)return null;switch(this.mode){case this.OBLIQ:case this.EQUIT:l=Math.sqrt(2/l),this.mode===this.OBLIQ?t=this.ymf*l*(this.cosb1*s-this.sinb1*A*n):t=(l=Math.sqrt(2/(1+A*n)))*s*this.ymf,e=this.xmf*l*A*i;break;case this.N_POLE:case this.S_POLE:o>=0?(e=(l=Math.sqrt(o))*i,t=n*(this.mode===this.S_POLE?l:-l)):e=t=0;break}}return r.x=this.a*e+this.x0,r.y=this.a*t+this.y0,r}function pet(r){r.x-=this.x0,r.y-=this.y0;var e=r.x/this.a,t=r.y/this.a,n,i,a,o,s,A,l;if(this.sphere){var u=0,c,h=0;if(c=Math.sqrt(e*e+t*t),i=c*.5,i>1)return null;switch(i=2*Math.asin(i),(this.mode===this.OBLIQ||this.mode===this.EQUIT)&&(h=Math.sin(i),u=Math.cos(i)),this.mode){case this.EQUIT:i=Math.abs(c)<=he?0:Math.asin(t*h/c),e*=h,t=u*c;break;case this.OBLIQ:i=Math.abs(c)<=he?this.lat0:Math.asin(u*this.sinph0+t*h*this.cosph0/c),e*=h*this.cosph0,t=(u-Math.sin(i)*this.sinph0)*c;break;case this.N_POLE:t=-t,i=ee-i;break;case this.S_POLE:i-=ee;break}n=t===0&&(this.mode===this.EQUIT||this.mode===this.OBLIQ)?0:Math.atan2(e,t)}else{if(l=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(e/=this.dd,t*=this.dd,A=Math.sqrt(e*e+t*t),A<he)return r.x=this.long0,r.y=this.lat0,r;o=2*Math.asin(.5*A/this.rq),a=Math.cos(o),e*=o=Math.sin(o),this.mode===this.OBLIQ?(l=a*this.sinb1+t*o*this.cosb1/A,s=this.qp*l,t=A*this.cosb1*a-t*this.sinb1*o):(l=t*o/A,s=this.qp*l,t=A*a)}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(t=-t),s=e*e+t*t,!s)return r.x=this.long0,r.y=this.lat0,r;l=1-s/this.qp,this.mode===this.S_POLE&&(l=-l)}n=Math.atan2(e,t),i=Eet(Math.asin(l),this.apa)}return r.x=we(this.long0+n),r.y=i,r}var det=.3333333333333333,vet=.17222222222222222,get=.10257936507936508,met=.06388888888888888,yet=.0664021164021164,_et=.016415012942191543;function wet(r){var e,t=[];return t[0]=r*det,e=r*r,t[0]+=e*vet,t[1]=e*met,e*=r,t[0]+=e*get,t[1]+=e*yet,t[2]=e*_et,t}function Eet(r,e){var t=r+r;return r+e[0]*Math.sin(t)+e[1]*Math.sin(t+t)+e[2]*Math.sin(t+t+t)}var Cet=["Lambert Azimuthal Equal Area","Lambert_Azimuthal_Equal_Area","laea"],Bet={init:het,forward:fet,inverse:pet,names:Cet,S_POLE:set,N_POLE:Aet,EQUIT:uet,OBLIQ:cet};function qc(r){return Math.abs(r)>1&&(r=r>1?1:-1),Math.asin(r)}function Tet(){Math.abs(this.lat1+this.lat2)<he||(this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e3=Math.sqrt(this.es),this.sin_po=Math.sin(this.lat1),this.cos_po=Math.cos(this.lat1),this.t1=this.sin_po,this.con=this.sin_po,this.ms1=hl(this.e3,this.sin_po,this.cos_po),this.qs1=Nc(this.e3,this.sin_po,this.cos_po),this.sin_po=Math.sin(this.lat2),this.cos_po=Math.cos(this.lat2),this.t2=this.sin_po,this.ms2=hl(this.e3,this.sin_po,this.cos_po),this.qs2=Nc(this.e3,this.sin_po,this.cos_po),this.sin_po=Math.sin(this.lat0),this.cos_po=Math.cos(this.lat0),this.t3=this.sin_po,this.qs0=Nc(this.e3,this.sin_po,this.cos_po),Math.abs(this.lat1-this.lat2)>he?this.ns0=(this.ms1*this.ms1-this.ms2*this.ms2)/(this.qs2-this.qs1):this.ns0=this.con,this.c=this.ms1*this.ms1+this.ns0*this.qs1,this.rh=this.a*Math.sqrt(this.c-this.ns0*this.qs0)/this.ns0)}function bet(r){var e=r.x,t=r.y;this.sin_phi=Math.sin(t),this.cos_phi=Math.cos(t);var n=Nc(this.e3,this.sin_phi,this.cos_phi),i=this.a*Math.sqrt(this.c-this.ns0*n)/this.ns0,a=this.ns0*we(e-this.long0),o=i*Math.sin(a)+this.x0,s=this.rh-i*Math.cos(a)+this.y0;return r.x=o,r.y=s,r}function xet(r){var e,t,n,i,a,o;return r.x-=this.x0,r.y=this.rh-r.y+this.y0,this.ns0>=0?(e=Math.sqrt(r.x*r.x+r.y*r.y),n=1):(e=-Math.sqrt(r.x*r.x+r.y*r.y),n=-1),i=0,e!==0&&(i=Math.atan2(n*r.x,n*r.y)),n=e*this.ns0/this.a,this.sphere?o=Math.asin((this.c-n*n)/(2*this.ns0)):(t=(this.c-n*n)/this.ns0,o=this.phi1z(this.e3,t)),a=we(i/this.ns0+this.long0),r.x=a,r.y=o,r}function Iet(r,e){var t,n,i,a,o,s=qc(.5*e);if(r<he)return s;for(var A=r*r,l=1;l<=25;l++)if(t=Math.sin(s),n=Math.cos(s),i=r*t,a=1-i*i,o=.5*a*a/n*(e/(1-A)-t/a+.5/r*Math.log((1-i)/(1+i))),s=s+o,Math.abs(o)<=1e-7)return s;return null}var Let=["Albers_Conic_Equal_Area","Albers","aea"],Fet={init:Tet,forward:bet,inverse:xet,names:Let,phi1z:Iet};function Oet(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0),this.infinity_dist=1e3*this.a,this.rc=1}function Ret(r){var e,t,n,i,a,o,s,A,l=r.x,u=r.y;return n=we(l-this.long0),e=Math.sin(u),t=Math.cos(u),i=Math.cos(n),o=this.sin_p14*e+this.cos_p14*t*i,a=1,o>0||Math.abs(o)<=he?(s=this.x0+this.a*a*t*Math.sin(n)/o,A=this.y0+this.a*a*(this.cos_p14*e-this.sin_p14*t*i)/o):(s=this.x0+this.infinity_dist*t*Math.sin(n),A=this.y0+this.infinity_dist*(this.cos_p14*e-this.sin_p14*t*i)),r.x=s,r.y=A,r}function Met(r){var e,t,n,i,a,o;return r.x=(r.x-this.x0)/this.a,r.y=(r.y-this.y0)/this.a,r.x/=this.k0,r.y/=this.k0,(e=Math.sqrt(r.x*r.x+r.y*r.y))?(i=Math.atan2(e,this.rc),t=Math.sin(i),n=Math.cos(i),o=qc(n*this.sin_p14+r.y*t*this.cos_p14/e),a=Math.atan2(r.x*t,e*this.cos_p14*n-r.y*this.sin_p14*t),a=we(this.long0+a)):(o=this.phic0,a=0),r.x=a,r.y=o,r}var Net=["gnom"],Pet={init:Oet,forward:Ret,inverse:Met,names:Net};function Uet(r,e){var t=1-(1-r*r)/(2*r)*Math.log((1-r)/(1+r));if(Math.abs(Math.abs(e)-t)<1e-6)return e<0?-1*ee:ee;for(var n=Math.asin(.5*e),i,a,o,s,A=0;A<30;A++)if(a=Math.sin(n),o=Math.cos(n),s=r*a,i=Math.pow(1-s*s,2)/(2*o)*(e/(1-r*r)-a/(1-s*s)+.5/r*Math.log((1-s)/(1+s))),n+=i,Math.abs(i)<=1e-10)return n;return NaN}function Det(){this.sphere||(this.k0=hl(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))}function Qet(r){var e=r.x,t=r.y,n,i,a=we(e-this.long0);if(this.sphere)n=this.x0+this.a*a*Math.cos(this.lat_ts),i=this.y0+this.a*Math.sin(t)/Math.cos(this.lat_ts);else{var o=Nc(this.e,Math.sin(t));n=this.x0+this.a*this.k0*a,i=this.y0+this.a*o*.5/this.k0}return r.x=n,r.y=i,r}function ket(r){r.x-=this.x0,r.y-=this.y0;var e,t;return this.sphere?(e=we(this.long0+r.x/this.a/Math.cos(this.lat_ts)),t=Math.asin(r.y/this.a*Math.cos(this.lat_ts))):(t=Uet(this.e,2*r.y*this.k0/this.a),e=we(this.long0+r.x/(this.a*this.k0))),r.x=e,r.y=t,r}var Het=["cea"],Get={init:Det,forward:Qet,inverse:ket,names:Het};function $et(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Equidistant Cylindrical (Plate Carre)",this.rc=Math.cos(this.lat_ts)}function Vet(r){var e=r.x,t=r.y,n=we(e-this.long0),i=Fv(t-this.lat0);return r.x=this.x0+this.a*n*this.rc,r.y=this.y0+this.a*i,r}function jet(r){var e=r.x,t=r.y;return r.x=we(this.long0+(e-this.x0)/(this.a*this.rc)),r.y=Fv(this.lat0+(t-this.y0)/this.a),r}var Ket=["Equirectangular","Equidistant_Cylindrical","eqc"],Yet={init:$et,forward:Vet,inverse:jet,names:Ket},PN=20;function Wet(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=Yy(this.es),this.e1=Wy(this.es),this.e2=zy(this.es),this.e3=Xy(this.es),this.ml0=this.a*uo(this.e0,this.e1,this.e2,this.e3,this.lat0)}function zet(r){var e=r.x,t=r.y,n,i,a,o=we(e-this.long0);if(a=o*Math.sin(t),this.sphere)Math.abs(t)<=he?(n=this.a*o,i=-1*this.a*this.lat0):(n=this.a*Math.sin(a)/Math.tan(t),i=this.a*(Fv(t-this.lat0)+(1-Math.cos(a))/Math.tan(t)));else if(Math.abs(t)<=he)n=this.a*o,i=-1*this.ml0;else{var s=Av(this.a,this.e,Math.sin(t))/Math.tan(t);n=s*Math.sin(a),i=this.a*uo(this.e0,this.e1,this.e2,this.e3,t)-this.ml0+s*(1-Math.cos(a))}return r.x=n+this.x0,r.y=i+this.y0,r}function Xet(r){var e,t,n,i,a,o,s,A,l;if(n=r.x-this.x0,i=r.y-this.y0,this.sphere)if(Math.abs(i+this.a*this.lat0)<=he)e=we(n/this.a+this.long0),t=0;else{o=this.lat0+i/this.a,s=n*n/this.a/this.a+o*o,A=o;var u;for(a=PN;a;--a)if(u=Math.tan(A),l=-1*(o*(A*u+1)-A-.5*(A*A+s)*u)/((A-o)/u-1),A+=l,Math.abs(l)<=he){t=A;break}e=we(this.long0+Math.asin(n*Math.tan(A)/this.a)/Math.sin(t))}else if(Math.abs(i+this.ml0)<=he)t=0,e=we(this.long0+n/this.a);else{o=(this.ml0+i)/this.a,s=n*n/this.a/this.a+o*o,A=o;var c,h,f,p,v;for(a=PN;a;--a)if(v=this.e*Math.sin(A),c=Math.sqrt(1-v*v)*Math.tan(A),h=this.a*uo(this.e0,this.e1,this.e2,this.e3,A),f=this.e0-2*this.e1*Math.cos(2*A)+4*this.e2*Math.cos(4*A)-6*this.e3*Math.cos(6*A),p=h/this.a,l=(o*(c*p+1)-p-.5*c*(p*p+s))/(this.es*Math.sin(2*A)*(p*p+s-2*o*p)/(4*c)+(o-p)*(c*f-2/Math.sin(2*A))-f),A-=l,Math.abs(l)<=he){t=A;break}c=Math.sqrt(1-this.es*Math.pow(Math.sin(t),2))*Math.tan(t),e=we(this.long0+Math.asin(n*c/this.a)/Math.sin(t))}return r.x=e,r.y=t,r}var qet=["Polyconic","poly"],Zet={init:Wet,forward:zet,inverse:Xet,names:qet};function Jet(){this.A=[],this.A[1]=.6399175073,this.A[2]=-.1358797613,this.A[3]=.063294409,this.A[4]=-.02526853,this.A[5]=.0117879,this.A[6]=-.0055161,this.A[7]=.0026906,this.A[8]=-.001333,this.A[9]=67e-5,this.A[10]=-34e-5,this.B_re=[],this.B_im=[],this.B_re[1]=.7557853228,this.B_im[1]=0,this.B_re[2]=.249204646,this.B_im[2]=.003371507,this.B_re[3]=-.001541739,this.B_im[3]=.04105856,this.B_re[4]=-.10162907,this.B_im[4]=.01727609,this.B_re[5]=-.26623489,this.B_im[5]=-.36249218,this.B_re[6]=-.6870983,this.B_im[6]=-1.1651967,this.C_re=[],this.C_im=[],this.C_re[1]=1.3231270439,this.C_im[1]=0,this.C_re[2]=-.577245789,this.C_im[2]=-.007809598,this.C_re[3]=.508307513,this.C_im[3]=-.112208952,this.C_re[4]=-.15094762,this.C_im[4]=.18200602,this.C_re[5]=1.01418179,this.C_im[5]=1.64497696,this.C_re[6]=1.9660549,this.C_im[6]=2.5127645,this.D=[],this.D[1]=1.5627014243,this.D[2]=.5185406398,this.D[3]=-.03333098,this.D[4]=-.1052906,this.D[5]=-.0368594,this.D[6]=.007317,this.D[7]=.0122,this.D[8]=.00394,this.D[9]=-.0013}function trt(r){var e,t=r.x,n=r.y,i=n-this.lat0,a=t-this.long0,o=i/bm*1e-5,s=a,A=1,l=0;for(e=1;e<=10;e++)A=A*o,l=l+this.A[e]*A;var u=l,c=s,h=1,f=0,p,v,m=0,g=0;for(e=1;e<=6;e++)p=h*u-f*c,v=f*u+h*c,h=p,f=v,m=m+this.B_re[e]*h-this.B_im[e]*f,g=g+this.B_im[e]*h+this.B_re[e]*f;return r.x=g*this.a+this.x0,r.y=m*this.a+this.y0,r}function ert(r){var e,t=r.x,n=r.y,i=t-this.x0,a=n-this.y0,o=a/this.a,s=i/this.a,A=1,l=0,u,c,h=0,f=0;for(e=1;e<=6;e++)u=A*o-l*s,c=l*o+A*s,A=u,l=c,h=h+this.C_re[e]*A-this.C_im[e]*l,f=f+this.C_im[e]*A+this.C_re[e]*l;for(var p=0;p<this.iterations;p++){var v=h,m=f,g,_,w=o,C=s;for(e=2;e<=6;e++)g=v*h-m*f,_=m*h+v*f,v=g,m=_,w=w+(e-1)*(this.B_re[e]*v-this.B_im[e]*m),C=C+(e-1)*(this.B_im[e]*v+this.B_re[e]*m);v=1,m=0;var F=this.B_re[1],O=this.B_im[1];for(e=2;e<=6;e++)g=v*h-m*f,_=m*h+v*f,v=g,m=_,F=F+e*(this.B_re[e]*v-this.B_im[e]*m),O=O+e*(this.B_im[e]*v+this.B_re[e]*m);var I=F*F+O*O;h=(w*F+C*O)/I,f=(C*F-w*O)/I}var b=h,L=f,N=1,x=0;for(e=1;e<=9;e++)N=N*b,x=x+this.D[e]*N;var S=this.lat0+x*bm*1e5,P=this.long0+L;return r.x=P,r.y=S,r}var rrt=["New_Zealand_Map_Grid","nzmg"],nrt={init:Jet,forward:trt,inverse:ert,names:rrt};function irt(){}function art(r){var e=r.x,t=r.y,n=we(e-this.long0),i=this.x0+this.a*n,a=this.y0+this.a*Math.log(Math.tan(Math.PI/4+t/2.5))*1.25;return r.x=i,r.y=a,r}function ort(r){r.x-=this.x0,r.y-=this.y0;var e=we(this.long0+r.x/this.a),t=2.5*(Math.atan(Math.exp(.8*r.y/this.a))-Math.PI/4);return r.x=e,r.y=t,r}var srt=["Miller_Cylindrical","mill"],Art={init:irt,forward:art,inverse:ort,names:srt},lrt=20;function urt(){this.sphere?(this.n=1,this.m=0,this.es=0,this.C_y=Math.sqrt((this.m+1)/this.n),this.C_x=this.C_y/(this.m+1)):this.en=u8(this.es)}function crt(r){var e,t,n=r.x,i=r.y;if(n=we(n-this.long0),this.sphere){if(!this.m)i=this.n!==1?Math.asin(this.n*Math.sin(i)):i;else for(var a=this.n*Math.sin(i),o=lrt;o;--o){var s=(this.m*i+Math.sin(i)-a)/(this.m+Math.cos(i));if(i-=s,Math.abs(s)<he)break}e=this.a*this.C_x*n*(this.m+Math.cos(i)),t=this.a*this.C_y*i}else{var A=Math.sin(i),l=Math.cos(i);t=this.a*QE(i,A,l,this.en),e=this.a*n*l/Math.sqrt(1-this.es*A*A)}return r.x=e,r.y=t,r}function hrt(r){var e,t,n,i;return r.x-=this.x0,n=r.x/this.a,r.y-=this.y0,e=r.y/this.a,this.sphere?(e/=this.C_y,n=n/(this.C_x*(this.m+Math.cos(e))),this.m?e=qc((this.m*e+Math.sin(e))/this.n):this.n!==1&&(e=qc(Math.sin(e)/this.n)),n=we(n+this.long0),e=Fv(e)):(e=c8(r.y/this.a,this.es,this.en),i=Math.abs(e),i<ee?(i=Math.sin(e),t=this.long0+r.x*Math.sqrt(1-this.es*i*i)/(this.a*Math.cos(e)),n=we(t)):i-he<ee&&(n=this.long0)),r.x=n,r.y=e,r}var frt=["Sinusoidal","sinu"],prt={init:urt,forward:crt,inverse:hrt,names:frt};function drt(){}function vrt(r){for(var e=r.x,t=r.y,n=we(e-this.long0),i=t,a=Math.PI*Math.sin(t);;){var o=-(i+Math.sin(i)-a)/(1+Math.cos(i));if(i+=o,Math.abs(o)<he)break}i/=2,Math.PI/2-Math.abs(t)<he&&(n=0);var s=.900316316158*this.a*n*Math.cos(i)+this.x0,A=1.4142135623731*this.a*Math.sin(i)+this.y0;return r.x=s,r.y=A,r}function grt(r){var e,t;r.x-=this.x0,r.y-=this.y0,t=r.y/(1.4142135623731*this.a),Math.abs(t)>.999999999999&&(t=.999999999999),e=Math.asin(t);var n=we(this.long0+r.x/(.900316316158*this.a*Math.cos(e)));n<-Math.PI&&(n=-Math.PI),n>Math.PI&&(n=Math.PI),t=(2*e+Math.sin(2*e))/Math.PI,Math.abs(t)>1&&(t=1);var i=Math.asin(t);return r.x=n,r.y=i,r}var mrt=["Mollweide","moll"],yrt={init:drt,forward:vrt,inverse:grt,names:mrt};function _rt(){Math.abs(this.lat1+this.lat2)<he||(this.lat2=this.lat2||this.lat1,this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=Yy(this.es),this.e1=Wy(this.es),this.e2=zy(this.es),this.e3=Xy(this.es),this.sinphi=Math.sin(this.lat1),this.cosphi=Math.cos(this.lat1),this.ms1=hl(this.e,this.sinphi,this.cosphi),this.ml1=uo(this.e0,this.e1,this.e2,this.e3,this.lat1),Math.abs(this.lat1-this.lat2)<he?this.ns=this.sinphi:(this.sinphi=Math.sin(this.lat2),this.cosphi=Math.cos(this.lat2),this.ms2=hl(this.e,this.sinphi,this.cosphi),this.ml2=uo(this.e0,this.e1,this.e2,this.e3,this.lat2),this.ns=(this.ms1-this.ms2)/(this.ml2-this.ml1)),this.g=this.ml1+this.ms1/this.ns,this.ml0=uo(this.e0,this.e1,this.e2,this.e3,this.lat0),this.rh=this.a*(this.g-this.ml0))}function wrt(r){var e=r.x,t=r.y,n;if(this.sphere)n=this.a*(this.g-t);else{var i=uo(this.e0,this.e1,this.e2,this.e3,t);n=this.a*(this.g-i)}var a=this.ns*we(e-this.long0),o=this.x0+n*Math.sin(a),s=this.y0+this.rh-n*Math.cos(a);return r.x=o,r.y=s,r}function Ert(r){r.x-=this.x0,r.y=this.rh-r.y+this.y0;var e,t,n,i;this.ns>=0?(t=Math.sqrt(r.x*r.x+r.y*r.y),e=1):(t=-Math.sqrt(r.x*r.x+r.y*r.y),e=-1);var a=0;if(t!==0&&(a=Math.atan2(e*r.x,e*r.y)),this.sphere)return i=we(this.long0+a/this.ns),n=Fv(this.g-t/this.a),r.x=i,r.y=n,r;var o=this.g-t/this.a;return n=lw(o,this.e0,this.e1,this.e2,this.e3),i=we(this.long0+a/this.ns),r.x=i,r.y=n,r}var Crt=["Equidistant_Conic","eqdc"],Brt={init:_rt,forward:wrt,inverse:Ert,names:Crt};function Trt(){this.R=this.a}function brt(r){var e=r.x,t=r.y,n=we(e-this.long0),i,a;Math.abs(t)<=he&&(i=this.x0+this.R*n,a=this.y0);var o=qc(2*Math.abs(t/Math.PI));(Math.abs(n)<=he||Math.abs(Math.abs(t)-ee)<=he)&&(i=this.x0,t>=0?a=this.y0+Math.PI*this.R*Math.tan(.5*o):a=this.y0+Math.PI*this.R*-Math.tan(.5*o));var s=.5*Math.abs(Math.PI/n-n/Math.PI),A=s*s,l=Math.sin(o),u=Math.cos(o),c=u/(l+u-1),h=c*c,f=c*(2/l-1),p=f*f,v=Math.PI*this.R*(s*(c-p)+Math.sqrt(A*(c-p)*(c-p)-(p+A)*(h-p)))/(p+A);n<0&&(v=-v),i=this.x0+v;var m=A+c;return v=Math.PI*this.R*(f*m-s*Math.sqrt((p+A)*(A+1)-m*m))/(p+A),t>=0?a=this.y0+v:a=this.y0-v,r.x=i,r.y=a,r}function Srt(r){var e,t,n,i,a,o,s,A,l,u,c,h,f;return r.x-=this.x0,r.y-=this.y0,c=Math.PI*this.R,n=r.x/c,i=r.y/c,a=n*n+i*i,o=-Math.abs(i)*(1+a),s=o-2*i*i+n*n,A=-2*o+1+2*i*i+a*a,f=i*i/A+(2*s*s*s/A/A/A-9*o*s/A/A)/27,l=(o-s*s/3/A)/A,u=2*Math.sqrt(-l/3),c=3*f/l/u,Math.abs(c)>1&&(c>=0?c=1:c=-1),h=Math.acos(c)/3,r.y>=0?t=(-u*Math.cos(h+Math.PI/3)-s/3/A)*Math.PI:t=-(-u*Math.cos(h+Math.PI/3)-s/3/A)*Math.PI,Math.abs(n)<he?e=this.long0:e=we(this.long0+Math.PI*(a-1+Math.sqrt(1+2*(n*n-i*i)+a*a))/2/n),r.x=e,r.y=t,r}var xrt=["Van_der_Grinten_I","VanDerGrinten","vandg"],Irt={init:Trt,forward:brt,inverse:Srt,names:xrt};function Lrt(){this.sin_p12=Math.sin(this.lat0),this.cos_p12=Math.cos(this.lat0)}function Frt(r){var e=r.x,t=r.y,n=Math.sin(r.y),i=Math.cos(r.y),a=we(e-this.long0),o,s,A,l,u,c,h,f,p,v,m,g,_,w,C,F,O,I,b,L,N,x,S;return this.sphere?Math.abs(this.sin_p12-1)<=he?(r.x=this.x0+this.a*(ee-t)*Math.sin(a),r.y=this.y0-this.a*(ee-t)*Math.cos(a),r):Math.abs(this.sin_p12+1)<=he?(r.x=this.x0+this.a*(ee+t)*Math.sin(a),r.y=this.y0+this.a*(ee+t)*Math.cos(a),r):(I=this.sin_p12*n+this.cos_p12*i*Math.cos(a),F=Math.acos(I),O=F?F/Math.sin(F):1,r.x=this.x0+this.a*O*i*Math.sin(a),r.y=this.y0+this.a*O*(this.cos_p12*n-this.sin_p12*i*Math.cos(a)),r):(o=Yy(this.es),s=Wy(this.es),A=zy(this.es),l=Xy(this.es),Math.abs(this.sin_p12-1)<=he?(u=this.a*uo(o,s,A,l,ee),c=this.a*uo(o,s,A,l,t),r.x=this.x0+(u-c)*Math.sin(a),r.y=this.y0-(u-c)*Math.cos(a),r):Math.abs(this.sin_p12+1)<=he?(u=this.a*uo(o,s,A,l,ee),c=this.a*uo(o,s,A,l,t),r.x=this.x0+(u+c)*Math.sin(a),r.y=this.y0+(u+c)*Math.cos(a),r):(h=n/i,f=Av(this.a,this.e,this.sin_p12),p=Av(this.a,this.e,n),v=Math.atan((1-this.es)*h+this.es*f*this.sin_p12/(p*i)),m=Math.atan2(Math.sin(a),this.cos_p12*Math.tan(v)-this.sin_p12*Math.cos(a)),m===0?b=Math.asin(this.cos_p12*Math.sin(v)-this.sin_p12*Math.cos(v)):Math.abs(Math.abs(m)-Math.PI)<=he?b=-Math.asin(this.cos_p12*Math.sin(v)-this.sin_p12*Math.cos(v)):b=Math.asin(Math.sin(a)*Math.cos(v)/Math.sin(m)),g=this.e*this.sin_p12/Math.sqrt(1-this.es),_=this.e*this.cos_p12*Math.cos(m)/Math.sqrt(1-this.es),w=g*_,C=_*_,L=b*b,N=L*b,x=N*b,S=x*b,F=f*b*(1-L*C*(1-C)/6+N/8*w*(1-2*C)+x/120*(C*(4-7*C)-3*g*g*(1-7*C))-S/48*w),r.x=this.x0+F*Math.sin(m),r.y=this.y0+F*Math.cos(m),r))}function Ort(r){r.x-=this.x0,r.y-=this.y0;var e,t,n,i,a,o,s,A,l,u,c,h,f,p,v,m,g,_,w,C,F,O,I,b;return this.sphere?(e=Math.sqrt(r.x*r.x+r.y*r.y),e>2*ee*this.a?void 0:(t=e/this.a,n=Math.sin(t),i=Math.cos(t),a=this.long0,Math.abs(e)<=he?o=this.lat0:(o=qc(i*this.sin_p12+r.y*n*this.cos_p12/e),s=Math.abs(this.lat0)-ee,Math.abs(s)<=he?this.lat0>=0?a=we(this.long0+Math.atan2(r.x,-r.y)):a=we(this.long0-Math.atan2(-r.x,r.y)):a=we(this.long0+Math.atan2(r.x*n,e*this.cos_p12*i-r.y*this.sin_p12*n))),r.x=a,r.y=o,r)):(A=Yy(this.es),l=Wy(this.es),u=zy(this.es),c=Xy(this.es),Math.abs(this.sin_p12-1)<=he?(h=this.a*uo(A,l,u,c,ee),e=Math.sqrt(r.x*r.x+r.y*r.y),f=h-e,o=lw(f/this.a,A,l,u,c),a=we(this.long0+Math.atan2(r.x,-1*r.y)),r.x=a,r.y=o,r):Math.abs(this.sin_p12+1)<=he?(h=this.a*uo(A,l,u,c,ee),e=Math.sqrt(r.x*r.x+r.y*r.y),f=e-h,o=lw(f/this.a,A,l,u,c),a=we(this.long0+Math.atan2(r.x,r.y)),r.x=a,r.y=o,r):(e=Math.sqrt(r.x*r.x+r.y*r.y),m=Math.atan2(r.x,r.y),p=Av(this.a,this.e,this.sin_p12),g=Math.cos(m),_=this.e*this.cos_p12*g,w=-_*_/(1-this.es),C=3*this.es*(1-w)*this.sin_p12*this.cos_p12*g/(1-this.es),F=e/p,O=F-w*(1+w)*Math.pow(F,3)/6-C*(1+3*w)*Math.pow(F,4)/24,I=1-w*O*O/2-F*O*O*O/6,v=Math.asin(this.sin_p12*Math.cos(O)+this.cos_p12*Math.sin(O)*g),a=we(this.long0+Math.asin(Math.sin(m)*Math.sin(O)/Math.cos(v))),b=Math.sin(v),o=Math.atan2((b-this.es*I*this.sin_p12)*Math.tan(v),b*(1-this.es)),r.x=a,r.y=o,r))}var Rrt=["Azimuthal_Equidistant","aeqd"],Mrt={init:Lrt,forward:Frt,inverse:Ort,names:Rrt};function Nrt(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0)}function Prt(r){var e,t,n,i,a,o,s,A,l=r.x,u=r.y;return n=we(l-this.long0),e=Math.sin(u),t=Math.cos(u),i=Math.cos(n),o=this.sin_p14*e+this.cos_p14*t*i,a=1,(o>0||Math.abs(o)<=he)&&(s=this.a*a*t*Math.sin(n),A=this.y0+this.a*a*(this.cos_p14*e-this.sin_p14*t*i)),r.x=s,r.y=A,r}function Urt(r){var e,t,n,i,a,o,s;return r.x-=this.x0,r.y-=this.y0,e=Math.sqrt(r.x*r.x+r.y*r.y),t=qc(e/this.a),n=Math.sin(t),i=Math.cos(t),o=this.long0,Math.abs(e)<=he?(s=this.lat0,r.x=o,r.y=s,r):(s=qc(i*this.sin_p14+r.y*n*this.cos_p14/e),a=Math.abs(this.lat0)-ee,Math.abs(a)<=he?(this.lat0>=0?o=we(this.long0+Math.atan2(r.x,-r.y)):o=we(this.long0-Math.atan2(-r.x,r.y)),r.x=o,r.y=s,r):(o=we(this.long0+Math.atan2(r.x*n,e*this.cos_p14*i-r.y*this.sin_p14*n)),r.x=o,r.y=s,r))}var Drt=["ortho"],Qrt={init:Nrt,forward:Prt,inverse:Urt,names:Drt},Yn={FRONT:1,RIGHT:2,BACK:3,LEFT:4,TOP:5,BOTTOM:6},An={AREA_0:1,AREA_1:2,AREA_2:3,AREA_3:4};function krt(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Quadrilateralized Spherical Cube",this.lat0>=ee-sn/2?this.face=Yn.TOP:this.lat0<=-(ee-sn/2)?this.face=Yn.BOTTOM:Math.abs(this.long0)<=sn?this.face=Yn.FRONT:Math.abs(this.long0)<=ee+sn?this.face=this.long0>0?Yn.RIGHT:Yn.LEFT:this.face=Yn.BACK,this.es!==0&&(this.one_minus_f=1-(this.a-this.b)/this.a,this.one_minus_f_squared=this.one_minus_f*this.one_minus_f)}function Hrt(r){var e={x:0,y:0},t,n,i,a,o,s,A={value:0};if(r.x-=this.long0,this.es!==0?t=Math.atan(this.one_minus_f_squared*Math.tan(r.y)):t=r.y,n=r.x,this.face===Yn.TOP)a=ee-t,n>=sn&&n<=ee+sn?(A.value=An.AREA_0,i=n-ee):n>ee+sn||n<=-(ee+sn)?(A.value=An.AREA_1,i=n>0?n-_i:n+_i):n>-(ee+sn)&&n<=-sn?(A.value=An.AREA_2,i=n+ee):(A.value=An.AREA_3,i=n);else if(this.face===Yn.BOTTOM)a=ee+t,n>=sn&&n<=ee+sn?(A.value=An.AREA_0,i=-n+ee):n<sn&&n>=-sn?(A.value=An.AREA_1,i=-n):n<-sn&&n>=-(ee+sn)?(A.value=An.AREA_2,i=-n-ee):(A.value=An.AREA_3,i=n>0?-n+_i:-n-_i);else{var l,u,c,h,f,p,v;this.face===Yn.RIGHT?n=Gd(n,+ee):this.face===Yn.BACK?n=Gd(n,+_i):this.face===Yn.LEFT&&(n=Gd(n,-ee)),h=Math.sin(t),f=Math.cos(t),p=Math.sin(n),v=Math.cos(n),l=f*v,u=f*p,c=h,this.face===Yn.FRONT?(a=Math.acos(l),i=a_(a,c,u,A)):this.face===Yn.RIGHT?(a=Math.acos(u),i=a_(a,c,-l,A)):this.face===Yn.BACK?(a=Math.acos(-l),i=a_(a,c,-u,A)):this.face===Yn.LEFT?(a=Math.acos(-u),i=a_(a,c,l,A)):(a=i=0,A.value=An.AREA_0)}return s=Math.atan(12/_i*(i+Math.acos(Math.sin(i)*Math.cos(sn))-ee)),o=Math.sqrt((1-Math.cos(a))/(Math.cos(s)*Math.cos(s))/(1-Math.cos(Math.atan(1/Math.cos(i))))),A.value===An.AREA_1?s+=ee:A.value===An.AREA_2?s+=_i:A.value===An.AREA_3&&(s+=1.5*_i),e.x=o*Math.cos(s),e.y=o*Math.sin(s),e.x=e.x*this.a+this.x0,e.y=e.y*this.a+this.y0,r.x=e.x,r.y=e.y,r}function Grt(r){var e={lam:0,phi:0},t,n,i,a,o,s,A,l,u,c={value:0};if(r.x=(r.x-this.x0)/this.a,r.y=(r.y-this.y0)/this.a,n=Math.atan(Math.sqrt(r.x*r.x+r.y*r.y)),t=Math.atan2(r.y,r.x),r.x>=0&&r.x>=Math.abs(r.y)?c.value=An.AREA_0:r.y>=0&&r.y>=Math.abs(r.x)?(c.value=An.AREA_1,t-=ee):r.x<0&&-r.x>=Math.abs(r.y)?(c.value=An.AREA_2,t=t<0?t+_i:t-_i):(c.value=An.AREA_3,t+=ee),u=_i/12*Math.tan(t),o=Math.sin(u)/(Math.cos(u)-1/Math.sqrt(2)),s=Math.atan(o),i=Math.cos(t),a=Math.tan(n),A=1-i*i*a*a*(1-Math.cos(Math.atan(1/Math.cos(s)))),A<-1?A=-1:A>1&&(A=1),this.face===Yn.TOP)l=Math.acos(A),e.phi=ee-l,c.value===An.AREA_0?e.lam=s+ee:c.value===An.AREA_1?e.lam=s<0?s+_i:s-_i:c.value===An.AREA_2?e.lam=s-ee:e.lam=s;else if(this.face===Yn.BOTTOM)l=Math.acos(A),e.phi=l-ee,c.value===An.AREA_0?e.lam=-s+ee:c.value===An.AREA_1?e.lam=-s:c.value===An.AREA_2?e.lam=-s-ee:e.lam=s<0?-s-_i:-s+_i;else{var h,f,p;h=A,u=h*h,u>=1?p=0:p=Math.sqrt(1-u)*Math.sin(s),u+=p*p,u>=1?f=0:f=Math.sqrt(1-u),c.value===An.AREA_1?(u=f,f=-p,p=u):c.value===An.AREA_2?(f=-f,p=-p):c.value===An.AREA_3&&(u=f,f=p,p=-u),this.face===Yn.RIGHT?(u=h,h=-f,f=u):this.face===Yn.BACK?(h=-h,f=-f):this.face===Yn.LEFT&&(u=h,h=f,f=-u),e.phi=Math.acos(-p)-ee,e.lam=Math.atan2(f,h),this.face===Yn.RIGHT?e.lam=Gd(e.lam,-ee):this.face===Yn.BACK?e.lam=Gd(e.lam,-_i):this.face===Yn.LEFT&&(e.lam=Gd(e.lam,+ee))}if(this.es!==0){var v,m,g;v=e.phi<0?1:0,m=Math.tan(e.phi),g=this.b/Math.sqrt(m*m+this.one_minus_f_squared),e.phi=Math.atan(Math.sqrt(this.a*this.a-g*g)/(this.one_minus_f*g)),v&&(e.phi=-e.phi)}return e.lam+=this.long0,r.x=e.lam,r.y=e.phi,r}function a_(r,e,t,n){var i;return r<he?(n.value=An.AREA_0,i=0):(i=Math.atan2(e,t),Math.abs(i)<=sn?n.value=An.AREA_0:i>sn&&i<=ee+sn?(n.value=An.AREA_1,i-=ee):i>ee+sn||i<=-(ee+sn)?(n.value=An.AREA_2,i=i>=0?i-_i:i+_i):(n.value=An.AREA_3,i+=ee)),i}function Gd(r,e){var t=r+e;return t<-_i?t+=sy:t>+_i&&(t-=sy),t}var $rt=["Quadrilateralized Spherical Cube","Quadrilateralized_Spherical_Cube","qsc"],Vrt={init:krt,forward:Hrt,inverse:Grt,names:$rt},dS=[[1,22199e-21,-715515e-10,31103e-10],[.9986,-482243e-9,-24897e-9,-13309e-10],[.9954,-83103e-8,-448605e-10,-986701e-12],[.99,-.00135364,-59661e-9,36777e-10],[.9822,-.00167442,-449547e-11,-572411e-11],[.973,-.00214868,-903571e-10,18736e-12],[.96,-.00305085,-900761e-10,164917e-11],[.9427,-.00382792,-653386e-10,-26154e-10],[.9216,-.00467746,-10457e-8,481243e-11],[.8962,-.00536223,-323831e-10,-543432e-11],[.8679,-.00609363,-113898e-9,332484e-11],[.835,-.00698325,-640253e-10,934959e-12],[.7986,-.00755338,-500009e-10,935324e-12],[.7597,-.00798324,-35971e-9,-227626e-11],[.7186,-.00851367,-701149e-10,-86303e-10],[.6732,-.00986209,-199569e-9,191974e-10],[.6213,-.010418,883923e-10,624051e-11],[.5722,-.00906601,182e-6,624051e-11],[.5322,-.00677797,275608e-9,624051e-11]],im=[[-520417e-23,.0124,121431e-23,-845284e-16],[.062,.0124,-126793e-14,422642e-15],[.124,.0124,507171e-14,-160604e-14],[.186,.0123999,-190189e-13,600152e-14],[.248,.0124002,710039e-13,-224e-10],[.31,.0123992,-264997e-12,835986e-13],[.372,.0124029,988983e-12,-311994e-12],[.434,.0123893,-369093e-11,-435621e-12],[.4958,.0123198,-102252e-10,-345523e-12],[.5571,.0121916,-154081e-10,-582288e-12],[.6176,.0119938,-241424e-10,-525327e-12],[.6769,.011713,-320223e-10,-516405e-12],[.7346,.0113541,-397684e-10,-609052e-12],[.7903,.0109107,-489042e-10,-104739e-11],[.8435,.0103431,-64615e-9,-140374e-14],[.8936,.00969686,-64636e-9,-8547e-9],[.9394,.00840947,-192841e-9,-42106e-10],[.9761,.00616527,-256e-6,-42106e-10],[1,.00328947,-319159e-9,-42106e-10]],p8=.8487,d8=1.3523,v8=tl/5,jrt=1/v8,Ld=18,uw=function(r,e){return r[0]+e*(r[1]+e*(r[2]+e*r[3]))},Krt=function(r,e){return r[1]+e*(2*r[2]+e*3*r[3])};function Yrt(r,e,t,n){for(var i=e;n;--n){var a=r(i);if(i-=a,Math.abs(a)<t)break}return i}function Wrt(){this.x0=this.x0||0,this.y0=this.y0||0,this.long0=this.long0||0,this.es=0,this.title=this.title||"Robinson"}function zrt(r){var e=we(r.x-this.long0),t=Math.abs(r.y),n=Math.floor(t*v8);n<0?n=0:n>=Ld&&(n=Ld-1),t=tl*(t-jrt*n);var i={x:uw(dS[n],t)*e,y:uw(im[n],t)};return r.y<0&&(i.y=-i.y),i.x=i.x*this.a*p8+this.x0,i.y=i.y*this.a*d8+this.y0,i}function Xrt(r){var e={x:(r.x-this.x0)/(this.a*p8),y:Math.abs(r.y-this.y0)/(this.a*d8)};if(e.y>=1)e.x/=dS[Ld][0],e.y=r.y<0?-ee:ee;else{var t=Math.floor(e.y*Ld);for(t<0?t=0:t>=Ld&&(t=Ld-1);;)if(im[t][0]>e.y)--t;else if(im[t+1][0]<=e.y)++t;else break;var n=im[t],i=5*(e.y-n[0])/(im[t+1][0]-n[0]);i=Yrt(function(a){return(uw(n,a)-e.y)/Krt(n,a)},i,he,100),e.x/=uw(dS[t],i),e.y=(5*t+i)*da,r.y<0&&(e.y=-e.y)}return e.x=we(e.x+this.long0),e}var qrt=["Robinson","robin"],Zrt={init:Wrt,forward:zrt,inverse:Xrt,names:qrt};function Jrt(){this.name="geocent"}function tnt(r){var e=e8(r,this.es,this.a);return e}function ent(r){var e=r8(r,this.es,this.a,this.b);return e}var rnt=["Geocentric","geocentric","geocent","Geocent"],nnt={init:Jrt,forward:tnt,inverse:ent,names:rnt},ka={N_POLE:0,S_POLE:1,EQUIT:2,OBLIQ:3},Fg={h:{def:1e5,num:!0},azi:{def:0,num:!0,degrees:!0},tilt:{def:0,num:!0,degrees:!0},long0:{def:0,num:!0},lat0:{def:0,num:!0}};function int(){if(Object.keys(Fg).forEach(function(t){if(typeof this[t]>"u")this[t]=Fg[t].def;else{if(Fg[t].num&&isNaN(this[t]))throw new Error("Invalid parameter value, must be numeric "+t+" = "+this[t]);Fg[t].num&&(this[t]=parseFloat(this[t]))}Fg[t].degrees&&(this[t]=this[t]*da)}.bind(this)),Math.abs(Math.abs(this.lat0)-ee)<he?this.mode=this.lat0<0?ka.S_POLE:ka.N_POLE:Math.abs(this.lat0)<he?this.mode=ka.EQUIT:(this.mode=ka.OBLIQ,this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0)),this.pn1=this.h/this.a,this.pn1<=0||this.pn1>1e10)throw new Error("Invalid height");this.p=1+this.pn1,this.rp=1/this.p,this.h1=1/this.pn1,this.pfact=(this.p+1)*this.h1,this.es=0;var r=this.tilt,e=this.azi;this.cg=Math.cos(e),this.sg=Math.sin(e),this.cw=Math.cos(r),this.sw=Math.sin(r)}function ant(r){r.x-=this.long0;var e=Math.sin(r.y),t=Math.cos(r.y),n=Math.cos(r.x),i,a;switch(this.mode){case ka.OBLIQ:a=this.sinph0*e+this.cosph0*t*n;break;case ka.EQUIT:a=t*n;break;case ka.S_POLE:a=-e;break;case ka.N_POLE:a=e;break}switch(a=this.pn1/(this.p-a),i=a*t*Math.sin(r.x),this.mode){case ka.OBLIQ:a*=this.cosph0*e-this.sinph0*t*n;break;case ka.EQUIT:a*=e;break;case ka.N_POLE:a*=-(t*n);break;case ka.S_POLE:a*=t*n;break}var o,s;return o=a*this.cg+i*this.sg,s=1/(o*this.sw*this.h1+this.cw),i=(i*this.cg-a*this.sg)*this.cw*s,a=o*s,r.x=i*this.a,r.y=a*this.a,r}function ont(r){r.x/=this.a,r.y/=this.a;var e={x:r.x,y:r.y},t,n,i;i=1/(this.pn1-r.y*this.sw),t=this.pn1*r.x*i,n=this.pn1*r.y*this.cw*i,r.x=t*this.cg+n*this.sg,r.y=n*this.cg-t*this.sg;var a=kE(r.x,r.y);if(Math.abs(a)<he)e.x=0,e.y=r.y;else{var o,s;switch(s=1-a*a*this.pfact,s=(this.p-Math.sqrt(s))/(this.pn1/a+a/this.pn1),o=Math.sqrt(1-s*s),this.mode){case ka.OBLIQ:e.y=Math.asin(o*this.sinph0+r.y*s*this.cosph0/a),r.y=(o-this.sinph0*Math.sin(e.y))*a,r.x*=s*this.cosph0;break;case ka.EQUIT:e.y=Math.asin(r.y*s/a),r.y=o*a,r.x*=s;break;case ka.N_POLE:e.y=Math.asin(o),r.y=-r.y;break;case ka.S_POLE:e.y=-Math.asin(o);break}e.x=Math.atan2(r.x,r.y)}return r.x=e.x+this.long0,r.y=e.y,r}var snt=["Tilted_Perspective","tpers"],Ant={init:int,forward:ant,inverse:ont,names:snt};function lnt(r){r.Proj.projections.add(u1),r.Proj.projections.add(c1),r.Proj.projections.add(mtt),r.Proj.projections.add(xtt),r.Proj.projections.add(Mtt),r.Proj.projections.add(Qtt),r.Proj.projections.add(jtt),r.Proj.projections.add(Xtt),r.Proj.projections.add(eet),r.Proj.projections.add(oet),r.Proj.projections.add(Bet),r.Proj.projections.add(Fet),r.Proj.projections.add(Pet),r.Proj.projections.add(Get),r.Proj.projections.add(Yet),r.Proj.projections.add(Zet),r.Proj.projections.add(nrt),r.Proj.projections.add(Art),r.Proj.projections.add(prt),r.Proj.projections.add(yrt),r.Proj.projections.add(Brt),r.Proj.projections.add(Irt),r.Proj.projections.add(Mrt),r.Proj.projections.add(Qrt),r.Proj.projections.add(Vrt),r.Proj.projections.add(Zrt),r.Proj.projections.add(nnt),r.Proj.projections.add(Ant)}Do.defaultDatum="WGS84";Do.Proj=al;Do.WGS84=new Do.Proj("WGS84");Do.Point=sv;Do.toPoint=n8;Do.defs=ao;Do.nadgrid=_J;Do.transform=Aw;Do.mgrs=PJ;Do.version="__VERSION__";lnt(Do);function unt(r){var e=Object.keys(r.defs),t=e.length,n,i;for(n=0;n<t;++n){var a=e[n];if(!Ve(a)){var o=r.defs(a),s=o.units;!s&&o.projName==="longlat"&&(s=lo.DEGREES),e4(new Bu({code:a,axisOrientation:o.axis,metersPerUnit:o.to_meter,units:s}))}}for(n=0;n<t;++n){var A=e[n],l=Ve(A);for(i=0;i<t;++i){var u=e[i],c=Ve(u);if(!J6(A,u))if(r.defs[A]===r.defs[u])Jb([l,c]);else{var h=r(A,u);$W(l,c,jM(l,c,h.forward),jM(c,l,h.inverse))}}}}const cnt={name:"ol-projection-register",setup(r){const{projectionName:e,projectionDef:t,projectionExtent:n}=kc(r);return Do.defs(e.value,t.value),unt(Do),{projection:new Bu({code:e.value,extent:n.value})}},props:{projectionName:{type:String},projectionDef:{type:String},projectionExtent:{type:Array}}};function hnt(r,e,t,n,i,a){return Rr("",!0)}var vS=me(cnt,[["render",hnt]]);function cw(r){cw.installed||(cw.installed=!0,r.component(sS.name,sS),r.component(AS.name,AS),r.component(lS.name,lS),r.component(uS.name,uS),r.component(cS.name,cS),r.component(vS.name,vS))}var fnt=Object.freeze(Object.defineProperty({__proto__:null,default:cw,install:cw,Map:sS,View:AS,Feature:lS,Overlay:uS,GeoLocation:cS,Projection:vS},Symbol.toStringTag,{value:"Module"})),Ec={PRELOAD:"preload",USE_INTERIM_TILES_ON_ERROR:"useInterimTilesOnError"},pnt=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),dnt=function(r){pnt(e,r);function e(t){var n=this,i=t||{},a=Ce({},i);return delete a.preload,delete a.useInterimTilesOnError,n=r.call(this,a)||this,n.on,n.once,n.un,n.setPreload(i.preload!==void 0?i.preload:0),n.setUseInterimTilesOnError(i.useInterimTilesOnError!==void 0?i.useInterimTilesOnError:!0),n}return e.prototype.getPreload=function(){return this.get(Ec.PRELOAD)},e.prototype.setPreload=function(t){this.set(Ec.PRELOAD,t)},e.prototype.getUseInterimTilesOnError=function(){return this.get(Ec.USE_INTERIM_TILES_ON_ERROR)},e.prototype.setUseInterimTilesOnError=function(t){this.set(Ec.USE_INTERIM_TILES_ON_ERROR,t)},e.prototype.getData=function(t){return r.prototype.getData.call(this,t)},e}(tp),g8=dnt,vnt=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),gnt=function(r){vnt(e,r);function e(t,n,i){var a=r.call(this)||this,o=i||{};return a.tileCoord=t,a.state=n,a.interimTile=null,a.key="",a.transition_=o.transition===void 0?250:o.transition,a.transitionStarts_={},a.interpolate=!!o.interpolate,a}return e.prototype.changed=function(){this.dispatchEvent(xe.CHANGE)},e.prototype.release=function(){},e.prototype.getKey=function(){return this.key+"/"+this.tileCoord},e.prototype.getInterimTile=function(){if(!this.interimTile)return this;var t=this.interimTile;do{if(t.getState()==be.LOADED)return this.transition_=0,t;t=t.interimTile}while(t);return this},e.prototype.refreshInterimChain=function(){if(this.interimTile){var t=this.interimTile,n=this;do{if(t.getState()==be.LOADED){t.interimTile=null;break}else t.getState()==be.LOADING?n=t:t.getState()==be.IDLE?n.interimTile=t.interimTile:n=t;t=n.interimTile}while(t)}},e.prototype.getTileCoord=function(){return this.tileCoord},e.prototype.getState=function(){return this.state},e.prototype.setState=function(t){if(this.state!==be.ERROR&&this.state>t)throw new Error("Tile load sequence violation");this.state=t,this.changed()},e.prototype.load=function(){Re()},e.prototype.getAlpha=function(t,n){if(!this.transition_)return 1;var i=this.transitionStarts_[t];if(!i)i=n,this.transitionStarts_[t]=i;else if(i===-1)return 1;var a=n-i+1e3/60;return a>=this.transition_?1:nF(a/this.transition_)},e.prototype.inTransition=function(t){return this.transition_?this.transitionStarts_[t]!==-1:!1},e.prototype.endTransition=function(t){this.transition_&&(this.transitionStarts_[t]=-1)},e}(Jf),OF=gnt,mnt=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),ynt=function(r){mnt(e,r);function e(t,n,i,a,o,s){var A=r.call(this,t,n,s)||this;return A.crossOrigin_=a,A.src_=i,A.key=i,A.image_=new Image,a!==null&&(A.image_.crossOrigin=a),A.unlisten_=null,A.tileLoadFunction_=o,A}return e.prototype.getImage=function(){return this.image_},e.prototype.setImage=function(t){this.image_=t,this.state=be.LOADED,this.unlistenImage_(),this.changed()},e.prototype.handleImageError_=function(){this.state=be.ERROR,this.unlistenImage_(),this.image_=_nt(),this.changed()},e.prototype.handleImageLoad_=function(){var t=this.image_;t.naturalWidth&&t.naturalHeight?this.state=be.LOADED:this.state=be.EMPTY,this.unlistenImage_(),this.changed()},e.prototype.load=function(){this.state==be.ERROR&&(this.state=be.IDLE,this.image_=new Image,this.crossOrigin_!==null&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==be.IDLE&&(this.state=be.LOADING,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=BF(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))},e.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},e}(OF);function _nt(){var r=mo(1,1);return r.fillStyle="rgba(0,0,0,0)",r.fillRect(0,0,1,1),r.canvas}var hw=ynt,m8=.5,wnt=10,UN=.25,Ent=function(){function r(e,t,n,i,a,o){this.sourceProj_=e,this.targetProj_=t;var s={},A=ay(this.targetProj_,this.sourceProj_);this.transformInv_=function(w){var C=w[0]+"/"+w[1];return s[C]||(s[C]=A(w)),s[C]},this.maxSourceExtent_=i,this.errorThresholdSquared_=a*a,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!i&&!!this.sourceProj_.getExtent()&&Vr(i)==Vr(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?Vr(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?Vr(this.targetProj_.getExtent()):null;var l=_A(n),u=Py(n),c=Sv(n),h=Ny(n),f=this.transformInv_(l),p=this.transformInv_(u),v=this.transformInv_(c),m=this.transformInv_(h),g=wnt+(o?Math.max(0,Math.ceil(M6(qm(n)/(o*o*256*256)))):0);if(this.addQuad_(l,u,c,h,f,p,v,m,g),this.wrapsXInSource_){var _=1/0;this.triangles_.forEach(function(w,C,F){_=Math.min(_,w.source[0][0],w.source[1][0],w.source[2][0])}),this.triangles_.forEach(function(w){if(Math.max(w.source[0][0],w.source[1][0],w.source[2][0])-_>this.sourceWorldWidth_/2){var C=[[w.source[0][0],w.source[0][1]],[w.source[1][0],w.source[1][1]],[w.source[2][0],w.source[2][1]]];C[0][0]-_>this.sourceWorldWidth_/2&&(C[0][0]-=this.sourceWorldWidth_),C[1][0]-_>this.sourceWorldWidth_/2&&(C[1][0]-=this.sourceWorldWidth_),C[2][0]-_>this.sourceWorldWidth_/2&&(C[2][0]-=this.sourceWorldWidth_);var F=Math.min(C[0][0],C[1][0],C[2][0]),O=Math.max(C[0][0],C[1][0],C[2][0]);O-F<this.sourceWorldWidth_/2&&(w.source=C)}}.bind(this))}s={}}return r.prototype.addTriangle_=function(e,t,n,i,a,o){this.triangles_.push({source:[i,a,o],target:[e,t,n]})},r.prototype.addQuad_=function(e,t,n,i,a,o,s,A,l){var u=ia([a,o,s,A]),c=this.sourceWorldWidth_?Vr(u)/this.sourceWorldWidth_:null,h=this.sourceWorldWidth_,f=this.sourceProj_.canWrapX()&&c>.5&&c<1,p=!1;if(l>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){var v=ia([e,t,n,i]),m=Vr(v)/this.targetWorldWidth_;p=m>UN||p}!f&&this.sourceProj_.isGlobal()&&c&&(p=c>UN||p)}if(!(!p&&this.maxSourceExtent_&&isFinite(u[0])&&isFinite(u[1])&&isFinite(u[2])&&isFinite(u[3])&&!Wn(u,this.maxSourceExtent_))){var g=0;if(!p&&(!isFinite(a[0])||!isFinite(a[1])||!isFinite(o[0])||!isFinite(o[1])||!isFinite(s[0])||!isFinite(s[1])||!isFinite(A[0])||!isFinite(A[1]))){if(l>0)p=!0;else if(g=(!isFinite(a[0])||!isFinite(a[1])?8:0)+(!isFinite(o[0])||!isFinite(o[1])?4:0)+(!isFinite(s[0])||!isFinite(s[1])?2:0)+(!isFinite(A[0])||!isFinite(A[1])?1:0),g!=1&&g!=2&&g!=4&&g!=8)return}if(l>0){if(!p){var _=[(e[0]+n[0])/2,(e[1]+n[1])/2],w=this.transformInv_(_),C=void 0;if(f){var F=(Rc(a[0],h)+Rc(s[0],h))/2;C=F-Rc(w[0],h)}else C=(a[0]+s[0])/2-w[0];var O=(a[1]+s[1])/2-w[1],I=C*C+O*O;p=I>this.errorThresholdSquared_}if(p){if(Math.abs(e[0]-n[0])<=Math.abs(e[1]-n[1])){var b=[(t[0]+n[0])/2,(t[1]+n[1])/2],L=this.transformInv_(b),N=[(i[0]+e[0])/2,(i[1]+e[1])/2],x=this.transformInv_(N);this.addQuad_(e,t,b,N,a,o,L,x,l-1),this.addQuad_(N,b,n,i,x,L,s,A,l-1)}else{var S=[(e[0]+t[0])/2,(e[1]+t[1])/2],P=this.transformInv_(S),U=[(n[0]+i[0])/2,(n[1]+i[1])/2],tt=this.transformInv_(U);this.addQuad_(e,S,U,i,a,P,tt,A,l-1),this.addQuad_(S,t,n,U,P,o,s,tt,l-1)}return}}if(f){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}g&11||this.addTriangle_(e,n,i,a,s,A),g&14||this.addTriangle_(e,n,t,a,s,o),g&&(g&13||this.addTriangle_(t,i,e,o,A,a),g&7||this.addTriangle_(t,i,n,o,A,s))}},r.prototype.calculateSourceExtent=function(){var e=Ni();return this.triangles_.forEach(function(t,n,i){var a=t.source;yf(e,a[0]),yf(e,a[1]),yf(e,a[2])}),e},r.prototype.getTriangles=function(){return this.triangles_},r}(),y8=Ent,lv={imageSmoothingEnabled:!1,msImageSmoothingEnabled:!1},_8={imageSmoothingEnabled:!0,msImageSmoothingEnabled:!0},GB;function DN(r,e,t,n,i){r.beginPath(),r.moveTo(0,0),r.lineTo(e,t),r.lineTo(n,i),r.closePath(),r.save(),r.clip(),r.fillRect(0,0,Math.max(e,n)+1,Math.max(t,i)),r.restore()}function $B(r,e){return Math.abs(r[e*4]-210)>2||Math.abs(r[e*4+3]-.75*255)>2}function Cnt(){if(GB===void 0){var r=document.createElement("canvas").getContext("2d");r.globalCompositeOperation="lighter",r.fillStyle="rgba(210, 0, 0, 0.75)",DN(r,4,5,4,0),DN(r,4,5,0,5);var e=r.getImageData(0,0,3,3).data;GB=$B(e,0)||$B(e,4)||$B(e,8)}return GB}function uy(r,e,t,n){var i=Wc(t,e,r),a=X1(e,n,t),o=e.getMetersPerUnit();o!==void 0&&(a*=o);var s=r.getMetersPerUnit();s!==void 0&&(a/=s);var A=r.getExtent();if(!A||fA(A,i)){var l=X1(r,a,i)/a;isFinite(l)&&l>0&&(a/=l)}return a}function Bnt(r,e,t,n){var i=Ya(t),a=uy(r,e,i,n);return(!isFinite(a)||a<=0)&&BE(t,function(o){return a=uy(r,e,o,n),isFinite(a)&&a>0}),a}function w8(r,e,t,n,i,a,o,s,A,l,u,c){var h=mo(Math.round(t*r),Math.round(t*e));if(c||Ce(h,lv),A.length===0)return h.canvas;h.scale(t,t);function f(C){return Math.round(C*t)/t}h.globalCompositeOperation="lighter";var p=Ni();A.forEach(function(C,F,O){Kc(p,C.extent)});var v=Vr(p),m=Si(p),g=mo(Math.round(t*v/n),Math.round(t*m/n));c||Ce(g,lv);var _=t/n;A.forEach(function(C,F,O){var I=C.extent[0]-p[0],b=-(C.extent[3]-p[3]),L=Vr(C.extent),N=Si(C.extent);C.image.width>0&&C.image.height>0&&g.drawImage(C.image,l,l,C.image.width-2*l,C.image.height-2*l,I*_,b*_,L*_,N*_)});var w=_A(o);return s.getTriangles().forEach(function(C,F,O){var I=C.source,b=C.target,L=I[0][0],N=I[0][1],x=I[1][0],S=I[1][1],P=I[2][0],U=I[2][1],tt=f((b[0][0]-w[0])/a),q=f(-(b[0][1]-w[1])/a),rt=f((b[1][0]-w[0])/a),nt=f(-(b[1][1]-w[1])/a),At=f((b[2][0]-w[0])/a),ct=f(-(b[2][1]-w[1])/a),bt=L,M=N;L=0,N=0,x-=bt,S-=M,P-=bt,U-=M;var Y=[[x,S,0,0,rt-tt],[P,U,0,0,At-tt],[0,0,x,S,nt-q],[0,0,P,U,ct-q]],z=FY(Y);if(z){if(h.save(),h.beginPath(),Cnt()||!c){h.moveTo(rt,nt);for(var H=4,J=tt-rt,ot=q-nt,ut=0;ut<H;ut++)h.lineTo(rt+f((ut+1)*J/H),nt+f(ut*ot/(H-1))),ut!=H-1&&h.lineTo(rt+f((ut+1)*J/H),nt+f((ut+1)*ot/(H-1)));h.lineTo(At,ct)}else h.moveTo(rt,nt),h.lineTo(tt,q),h.lineTo(At,ct);h.clip(),h.transform(z[0],z[2],z[1],z[3],tt,q),h.translate(p[0]-bt,p[3]-M),h.scale(n/t,-n/t),h.drawImage(g.canvas,0,0),h.restore()}}),u&&(h.save(),h.globalCompositeOperation="source-over",h.strokeStyle="black",h.lineWidth=1,s.getTriangles().forEach(function(C,F,O){var I=C.target,b=(I[0][0]-w[0])/a,L=-(I[0][1]-w[1])/a,N=(I[1][0]-w[0])/a,x=-(I[1][1]-w[1])/a,S=(I[2][0]-w[0])/a,P=-(I[2][1]-w[1])/a;h.beginPath(),h.moveTo(N,x),h.lineTo(b,L),h.lineTo(S,P),h.closePath(),h.stroke()}),h.restore()),h.canvas}var Tnt=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),bnt=function(r){Tnt(e,r);function e(t,n,i,a,o,s,A,l,u,c,h,f){var p=r.call(this,o,be.IDLE,{interpolate:!!f})||this;p.renderEdges_=h!==void 0?h:!1,p.pixelRatio_=A,p.gutter_=l,p.canvas_=null,p.sourceTileGrid_=n,p.targetTileGrid_=a,p.wrappedTileCoord_=s||o,p.sourceTiles_=[],p.sourcesListenerKeys_=null,p.sourceZ_=0;var v=a.getTileCoordExtent(p.wrappedTileCoord_),m=p.targetTileGrid_.getExtent(),g=p.sourceTileGrid_.getExtent(),_=m?Ps(v,m):v;if(qm(_)===0)return p.state=be.EMPTY,p;var w=t.getExtent();w&&(g?g=Ps(g,w):g=w);var C=a.getResolution(p.wrappedTileCoord_[0]),F=Bnt(t,i,_,C);if(!isFinite(F)||F<=0)return p.state=be.EMPTY,p;var O=c!==void 0?c:m8;if(p.triangulation_=new y8(t,i,_,g,F*O,C),p.triangulation_.getTriangles().length===0)return p.state=be.EMPTY,p;p.sourceZ_=n.getZForResolution(F);var I=p.triangulation_.calculateSourceExtent();if(g&&(t.canWrapX()?(I[1]=Nn(I[1],g[1],g[3]),I[3]=Nn(I[3],g[1],g[3])):I=Ps(I,g)),!qm(I))p.state=be.EMPTY;else{for(var b=n.getTileRangeForExtentAndZ(I,p.sourceZ_),L=b.minX;L<=b.maxX;L++)for(var N=b.minY;N<=b.maxY;N++){var x=u(p.sourceZ_,L,N,A);x&&p.sourceTiles_.push(x)}p.sourceTiles_.length===0&&(p.state=be.EMPTY)}return p}return e.prototype.getImage=function(){return this.canvas_},e.prototype.reproject_=function(){var t=[];if(this.sourceTiles_.forEach(function(u,c,h){u&&u.getState()==be.LOADED&&t.push({extent:this.sourceTileGrid_.getTileCoordExtent(u.tileCoord),image:u.getImage()})}.bind(this)),this.sourceTiles_.length=0,t.length===0)this.state=be.ERROR;else{var n=this.wrappedTileCoord_[0],i=this.targetTileGrid_.getTileSize(n),a=typeof i=="number"?i:i[0],o=typeof i=="number"?i:i[1],s=this.targetTileGrid_.getResolution(n),A=this.sourceTileGrid_.getResolution(this.sourceZ_),l=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=w8(a,o,this.pixelRatio_,A,this.sourceTileGrid_.getExtent(),s,l,this.triangulation_,t,this.gutter_,this.renderEdges_,this.interpolate),this.state=be.LOADED}this.changed()},e.prototype.load=function(){if(this.state==be.IDLE){this.state=be.LOADING,this.changed();var t=0;this.sourcesListenerKeys_=[],this.sourceTiles_.forEach(function(n,i,a){var o=n.getState();if(o==be.IDLE||o==be.LOADING){t++;var s=je(n,xe.CHANGE,function(A){var l=n.getState();(l==be.LOADED||l==be.ERROR||l==be.EMPTY)&&(Wr(s),t--,t===0&&(this.unlistenSources_(),this.reproject_()))},this);this.sourcesListenerKeys_.push(s)}}.bind(this)),t===0?setTimeout(this.reproject_.bind(this),0):this.sourceTiles_.forEach(function(n,i,a){var o=n.getState();o==be.IDLE&&n.load()})}},e.prototype.unlistenSources_=function(){this.sourcesListenerKeys_.forEach(Wr),this.sourcesListenerKeys_=null},e}(OF),RF=bnt,E8=function(){function r(e,t,n,i){this.minX=e,this.maxX=t,this.minY=n,this.maxY=i}return r.prototype.contains=function(e){return this.containsXY(e[1],e[2])},r.prototype.containsTileRange=function(e){return this.minX<=e.minX&&e.maxX<=this.maxX&&this.minY<=e.minY&&e.maxY<=this.maxY},r.prototype.containsXY=function(e,t){return this.minX<=e&&e<=this.maxX&&this.minY<=t&&t<=this.maxY},r.prototype.equals=function(e){return this.minX==e.minX&&this.minY==e.minY&&this.maxX==e.maxX&&this.maxY==e.maxY},r.prototype.extend=function(e){e.minX<this.minX&&(this.minX=e.minX),e.maxX>this.maxX&&(this.maxX=e.maxX),e.minY<this.minY&&(this.minY=e.minY),e.maxY>this.maxY&&(this.maxY=e.maxY)},r.prototype.getHeight=function(){return this.maxY-this.minY+1},r.prototype.getSize=function(){return[this.getWidth(),this.getHeight()]},r.prototype.getWidth=function(){return this.maxX-this.minX+1},r.prototype.intersects=function(e){return this.minX<=e.maxX&&this.maxX>=e.minX&&this.minY<=e.maxY&&this.maxY>=e.minY},r}();function Wp(r,e,t,n,i){return i!==void 0?(i.minX=r,i.maxX=e,i.minY=t,i.maxY=n,i):new E8(r,e,t,n)}var MF=E8,Snt=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),xnt=function(r){Snt(e,r);function e(t){var n=r.call(this,t)||this;return n.extentChanged=!0,n.renderedExtent_=null,n.renderedPixelRatio,n.renderedProjection=null,n.renderedRevision,n.renderedTiles=[],n.newTiles_=!1,n.tmpExtent=Ni(),n.tmpTileRange_=new MF(0,0,0,0),n}return e.prototype.isDrawableTile=function(t){var n=this.getLayer(),i=t.getState(),a=n.getUseInterimTilesOnError();return i==be.LOADED||i==be.EMPTY||i==be.ERROR&&!a},e.prototype.getTile=function(t,n,i,a){var o=a.pixelRatio,s=a.viewState.projection,A=this.getLayer(),l=A.getSource(),u=l.getTile(t,n,i,o,s);return u.getState()==be.ERROR&&(A.getUseInterimTilesOnError()?A.getPreload()>0&&(this.newTiles_=!0):u.setState(be.LOADED)),this.isDrawableTile(u)||(u=u.getInterimTile()),u},e.prototype.getData=function(t){var n=this.frameState;if(!n)return null;var i=this.getLayer(),a=Bn(n.pixelToCoordinateTransform,t.slice()),o=i.getExtent();if(o&&!fA(o,a))return null;for(var s=n.pixelRatio,A=n.viewState.projection,l=n.viewState,u=i.getRenderSource(),c=u.getTileGridForProjection(l.projection),h=u.getTilePixelRatio(n.pixelRatio),f=c.getZForResolution(l.resolution);f>=c.getMinZoom();--f){var p=c.getTileCoordForCoordAndZ(a,f),v=u.getTile(f,p[1],p[2],s,A);if(!(v instanceof hw||v instanceof RF))return null;if(v.getState()===be.LOADED){var m=c.getOrigin(f),g=ji(c.getTileSize(f)),_=c.getResolution(f),w=Math.floor(h*((a[0]-m[0])/_-p[1]*g[0])),C=Math.floor(h*((m[1]-a[1])/_-p[2]*g[1]));return this.getImageData(v.getImage(),w,C)}}return null},e.prototype.loadedTileCallback=function(t,n,i){return this.isDrawableTile(i)?r.prototype.loadedTileCallback.call(this,t,n,i):!1},e.prototype.prepareFrame=function(t){return!!this.getLayer().getSource()},e.prototype.renderFrame=function(t,n){var i=t.layerStatesArray[t.layerIndex],a=t.viewState,o=a.projection,s=a.resolution,A=a.center,l=a.rotation,u=t.pixelRatio,c=this.getLayer(),h=c.getSource(),f=h.getRevision(),p=h.getTileGridForProjection(o),v=p.getZForResolution(s,h.zDirection),m=p.getResolution(v),g=t.extent,_=i.extent&&cs(i.extent);_&&(g=Ps(g,cs(i.extent)));var w=h.getTilePixelRatio(u),C=Math.round(t.size[0]*w),F=Math.round(t.size[1]*w);if(l){var O=Math.round(Math.sqrt(C*C+F*F));C=O,F=O}var I=m*C/2/w,b=m*F/2/w,L=[A[0]-I,A[1]-b,A[0]+I,A[1]+b],N=p.getTileRangeForExtentAndZ(g,v),x={};x[v]={};var S=this.createLoadedTileFinder(h,o,x),P=this.tmpExtent,U=this.tmpTileRange_;this.newTiles_=!1;for(var tt=N.minX;tt<=N.maxX;++tt)for(var q=N.minY;q<=N.maxY;++q){var rt=this.getTile(v,tt,q,t);if(this.isDrawableTile(rt)){var nt=Ee(this);if(rt.getState()==be.LOADED){x[v][rt.tileCoord.toString()]=rt;var At=rt.inTransition(nt);!this.newTiles_&&(At||this.renderedTiles.indexOf(rt)===-1)&&(this.newTiles_=!0)}if(rt.getAlpha(nt,t.time)===1)continue}var ct=p.getTileCoordChildTileRange(rt.tileCoord,U,P),bt=!1;ct&&(bt=S(v+1,ct)),bt||p.forEachTileCoordParentTileRange(rt.tileCoord,S,U,P)}var M=m/s;vo(this.pixelTransform,t.size[0]/2,t.size[1]/2,1/w,1/w,l,-C/2,-F/2);var Y=kL(this.pixelTransform);this.useContainer(n,Y,i.opacity,this.getBackground(t));var z=this.context,H=z.canvas;My(this.inversePixelTransform,this.pixelTransform),vo(this.tempTransform,C/2,F/2,M,M,0,-C/2,-F/2),H.width!=C||H.height!=F?(H.width=C,H.height=F):this.containerReused||z.clearRect(0,0,C,F),_&&this.clipUnrotated(z,t,_),h.getInterpolate()||Ce(z,lv),this.preRender(z,t),this.renderedTiles.length=0;var J=Object.keys(x).map(Number);J.sort(Vc);var ot,ut,X;i.opacity===1&&(!this.containerReused||h.getOpaque(t.viewState.projection))?J=J.reverse():(ot=[],ut=[]);for(var It=J.length-1;It>=0;--It){var at=J[It],j=h.getTilePixelSize(at,u,o),Z=p.getResolution(at),ft=Z/m,it=j[0]*ft*M,V=j[1]*ft*M,Ot=p.getTileCoordForCoordAndZ(_A(L),at),Mt=p.getTileCoordExtent(Ot),Et=Bn(this.tempTransform,[w*(Mt[0]-L[0])/m,w*(L[3]-Mt[3])/m]),Bt=w*h.getGutterForProjection(o),Ct=x[at];for(var Rt in Ct){var rt=Ct[Rt],Nt=rt.tileCoord,Dt=Ot[1]-Nt[1],Yt=Math.round(Et[0]-(Dt-1)*it),te=Ot[2]-Nt[2],Ae=Math.round(Et[1]-(te-1)*V),tt=Math.round(Et[0]-Dt*it),q=Math.round(Et[1]-te*V),oe=Yt-tt,Jt=Ae-q,fe=v===at,At=fe&&rt.getAlpha(Ee(this),t.time)!==1,qt=!1;if(!At)if(ot){X=[tt,q,tt+oe,q,tt+oe,q+Jt,tt,q+Jt];for(var rr=0,ke=ot.length;rr<ke;++rr)if(v!==at&&at<ut[rr]){var _r=ot[rr];Wn([tt,q,tt+oe,q+Jt],[_r[0],_r[3],_r[4],_r[7]])&&(qt||(z.save(),qt=!0),z.beginPath(),z.moveTo(X[0],X[1]),z.lineTo(X[2],X[3]),z.lineTo(X[4],X[5]),z.lineTo(X[6],X[7]),z.moveTo(_r[6],_r[7]),z.lineTo(_r[4],_r[5]),z.lineTo(_r[2],_r[3]),z.lineTo(_r[0],_r[1]),z.clip())}ot.push(X),ut.push(at)}else z.clearRect(tt,q,oe,Jt);this.drawTileImage(rt,t,tt,q,oe,Jt,Bt,fe),ot&&!At?(qt&&z.restore(),this.renderedTiles.unshift(rt)):this.renderedTiles.push(rt),this.updateUsedTiles(t.usedTiles,h,rt)}}this.renderedRevision=f,this.renderedResolution=m,this.extentChanged=!this.renderedExtent_||!ul(this.renderedExtent_,L),this.renderedExtent_=L,this.renderedPixelRatio=u,this.renderedProjection=o,this.manageTilePyramid(t,h,p,u,o,g,v,c.getPreload()),this.scheduleExpireCache(t,h),this.postRender(z,t),i.extent&&z.restore(),Ce(z,_8),Y!==H.style.transform&&(H.style.transform=Y);var Ne=K6(i.opacity),Pe=this.container;return Ne!==Pe.style.opacity&&(Pe.style.opacity=Ne),this.container},e.prototype.drawTileImage=function(t,n,i,a,o,s,A,l){var u=this.getTileImage(t);if(u){var c=Ee(this),h=l?t.getAlpha(c,n.time):1,f=h!==this.context.globalAlpha;f&&(this.context.save(),this.context.globalAlpha=h),this.context.drawImage(u,A,A,u.width-2*A,u.height-2*A,i,a,o,s),f&&this.context.restore(),h!==1?n.animate=!0:l&&t.endTransition(c)}},e.prototype.getImage=function(){var t=this.context;return t?t.canvas:null},e.prototype.getTileImage=function(t){return t.getImage()},e.prototype.scheduleExpireCache=function(t,n){if(n.canExpireCache()){var i=function(a,o,s){var A=Ee(a);A in s.usedTiles&&a.expireCache(s.viewState.projection,s.usedTiles[A])}.bind(null,n);t.postRenderFunctions.push(i)}},e.prototype.updateUsedTiles=function(t,n,i){var a=Ee(n);a in t||(t[a]={}),t[a][i.getKey()]=!0},e.prototype.manageTilePyramid=function(t,n,i,a,o,s,A,l,u){var c=Ee(n);c in t.wantedTiles||(t.wantedTiles[c]={});var h=t.wantedTiles[c],f=t.tileQueue,p=i.getMinZoom(),v=0,m,g,_,w,C,F;for(F=p;F<=A;++F)for(g=i.getTileRangeForExtentAndZ(s,F,g),_=i.getResolution(F),w=g.minX;w<=g.maxX;++w)for(C=g.minY;C<=g.maxY;++C)A-F<=l?(++v,m=n.getTile(F,w,C,a,o),m.getState()==be.IDLE&&(h[m.getKey()]=!0,f.isKeyQueued(m.getKey())||f.enqueue([m,c,i.getTileCoordCenter(m.tileCoord),_])),u!==void 0&&u(m)):n.useTile(F,w,C,o);n.updateCacheSize(v,o)},e}(EF),C8=xnt,Int=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Lnt=function(r){Int(e,r);function e(t){return r.call(this,t)||this}return e.prototype.createRenderer=function(){return new C8(this)},e}(g8),NF=Lnt;const Fnt={props:{className:{type:String,default:"ol-layer"},opacity:{type:Number,default:1},visible:{type:Boolean,default:!0},extent:{type:Array},zIndex:{type:Number},minResolution:{type:Number},maxResolution:{type:Number},minZoom:{type:Number},maxZoom:{type:Number},title:{type:String},name:{type:String},preview:{type:String},baseLayer:{type:Boolean},properties:{type:Object,default:()=>{}}}};function Ont(r,e,t,n,i,a){return Zn(),Yi("div")}var np=me(Fnt,[["render",Ont]]);const Rnt={extends:np,name:"ol-tile-layer",setup(r){const e=Be("map"),t=Be("overviewMap",null),{properties:n}=Lr(r),i=qe(()=>new NF(n)),a=()=>{t!=null?(t.value.getOverviewMap().addLayer(i.value),t.value.changed()):e.addLayer(i.value)},o=()=>{t!=null?(t.value.getOverviewMap().removeLayer(i.value),t.value.changed()):e.removeLayer(i.value)};return t!=null&&ye(t,()=>{o(),a()}),ur(()=>{a()}),pr(()=>{o()}),Ur("tileLayer",i),{tileLayer:i}},props:{preload:{type:Number,default:1}}};function Mnt(r,e,t,n,i,a){return Zn(),Yi("div",null,[Or(r.$slots,"default")])}var gS=me(Rnt,[["render",Mnt]]),Nnt=function(){function r(e){this.highWaterMark=e!==void 0?e:2048,this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}return r.prototype.canExpireCache=function(){return this.highWaterMark>0&&this.getCount()>this.highWaterMark},r.prototype.expireCache=function(e){for(;this.canExpireCache();)this.pop()},r.prototype.clear=function(){this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null},r.prototype.containsKey=function(e){return this.entries_.hasOwnProperty(e)},r.prototype.forEach=function(e){for(var t=this.oldest_;t;)e(t.value_,t.key_,this),t=t.newer},r.prototype.get=function(e,t){var n=this.entries_[e];return Le(n!==void 0,15),n===this.newest_||(n===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(n.newer.older=n.older,n.older.newer=n.newer),n.newer=null,n.older=this.newest_,this.newest_.newer=n,this.newest_=n),n.value_},r.prototype.remove=function(e){var t=this.entries_[e];return Le(t!==void 0,15),t===this.newest_?(this.newest_=t.older,this.newest_&&(this.newest_.newer=null)):t===this.oldest_?(this.oldest_=t.newer,this.oldest_&&(this.oldest_.older=null)):(t.newer.older=t.older,t.older.newer=t.newer),delete this.entries_[e],--this.count_,t.value_},r.prototype.getCount=function(){return this.count_},r.prototype.getKeys=function(){var e=new Array(this.count_),t=0,n;for(n=this.newest_;n;n=n.older)e[t++]=n.key_;return e},r.prototype.getValues=function(){var e=new Array(this.count_),t=0,n;for(n=this.newest_;n;n=n.older)e[t++]=n.value_;return e},r.prototype.peekLast=function(){return this.oldest_.value_},r.prototype.peekLastKey=function(){return this.oldest_.key_},r.prototype.peekFirstKey=function(){return this.newest_.key_},r.prototype.pop=function(){var e=this.oldest_;return delete this.entries_[e.key_],e.newer&&(e.newer.older=null),this.oldest_=e.newer,this.oldest_||(this.newest_=null),--this.count_,e.value_},r.prototype.replace=function(e,t){this.get(e),this.entries_[e].value_=t},r.prototype.set=function(e,t){Le(!(e in this.entries_),16);var n={key_:e,newer:null,older:this.newest_,value_:t};this.newest_?this.newest_.newer=n:this.oldest_=n,this.newest_=n,this.entries_[e]=n,++this.count_},r.prototype.setSize=function(e){this.highWaterMark=e},r}(),B8=Nnt,Pnt=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Unt=function(r){Pnt(e,r);function e(t){var n=this,i=be.IDLE;return n=r.call(this,t.tileCoord,i,{transition:t.transition,interpolate:t.interpolate})||this,n.loader_=t.loader,n.data_=null,n.error_=null,n}return e.prototype.getData=function(){return this.data_},e.prototype.getError=function(){return this.error_},e.prototype.load=function(){this.state=be.LOADING,this.changed();var t=this;this.loader_().then(function(n){t.data_=n,t.state=be.LOADED,t.changed()}).catch(function(n){t.error_=n,t.state=be.ERROR,t.changed()})},e}(OF),Dnt=Unt,cy=34962,HE=34963,Qnt=35040,PF=35044,h1=35048,knt=5121,Hnt=5123,Gnt=5125,T8=5126,QN=["experimental-webgl","webgl","webkit-3d","moz-webgl"];function b8(r,e){for(var t=Ce({preserveDrawingBuffer:!0,antialias:!uY},e),n=QN.length,i=0;i<n;++i)try{var a=r.getContext(QN[i],t);if(a)return a}catch{}return null}var $nt={STATIC_DRAW:PF,STREAM_DRAW:Qnt,DYNAMIC_DRAW:h1},Vnt=function(){function r(e,t){this.array=null,this.type=e,Le(e===cy||e===HE,62),this.usage=t!==void 0?t:$nt.STATIC_DRAW}return r.prototype.ofSize=function(e){this.array=new(VB(this.type))(e)},r.prototype.fromArray=function(e){var t=VB(this.type);this.array=t.from?t.from(e):new t(e)},r.prototype.fromArrayBuffer=function(e){this.array=new(VB(this.type))(e)},r.prototype.getType=function(){return this.type},r.prototype.getArray=function(){return this.array},r.prototype.getUsage=function(){return this.usage},r.prototype.getSize=function(){return this.array?this.array.length:0},r}();function VB(r){switch(r){case cy:return Float32Array;case HE:return Uint32Array;default:return Float32Array}}var Sm=Vnt,jnt=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();function S8(r,e,t){var n=t?r.LINEAR:r.NEAREST;r.bindTexture(r.TEXTURE_2D,e),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,n),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,n)}function Knt(r,e,t,n){S8(r,e,n),r.texImage2D(r.TEXTURE_2D,0,r.RGBA,r.RGBA,r.UNSIGNED_BYTE,t)}function kN(r,e,t,n,i,a){var o=r.getGL(),s,A;if(t instanceof Float32Array){s=o.FLOAT,r.getExtension("OES_texture_float");var l=r.getExtension("OES_texture_float_linear");A=l!==null}else s=o.UNSIGNED_BYTE,A=!0;S8(o,e,a&&A);var u=t.byteLength/n[1],c=1;u%8===0?c=8:u%4===0?c=4:u%2===0&&(c=2);var h;switch(i){case 1:{h=o.LUMINANCE;break}case 2:{h=o.LUMINANCE_ALPHA;break}case 3:{h=o.RGB;break}case 4:{h=o.RGBA;break}default:throw new Error("Unsupported number of bands: ".concat(i))}var f=o.getParameter(o.UNPACK_ALIGNMENT);o.pixelStorei(o.UNPACK_ALIGNMENT,c),o.texImage2D(o.TEXTURE_2D,0,h,n[0],n[1],0,h,s,t),o.pixelStorei(o.UNPACK_ALIGNMENT,f)}var am=null;function Ynt(){var r=document.createElement("canvas");r.width=1,r.height=1,am=r.getContext("2d")}var Wnt=function(r){jnt(e,r);function e(t){var n=r.call(this)||this;n.tile,n.textures=[],n.handleTileChange_=n.handleTileChange_.bind(n),n.size=ji(t.grid.getTileSize(t.tile.tileCoord[0])),n.tilePixelRatio_=t.tilePixelRatio||1,n.gutter_=t.gutter||0,n.bandCount=NaN,n.helper_=t.helper;var i=new Sm(cy,PF);return i.fromArray([0,1,1,1,1,0,0,0]),n.helper_.flushBufferData(i),n.coords=i,n.setTile(t.tile),n}return e.prototype.setTile=function(t){if(t!==this.tile)if(this.tile&&this.tile.removeEventListener(xe.CHANGE,this.handleTileChange_),this.tile=t,this.textures.length=0,this.loaded=t.getState()===be.LOADED,this.loaded)this.uploadTile_();else{if(t instanceof hw){var n=t.getImage();n instanceof Image&&!n.crossOrigin&&(n.crossOrigin="anonymous")}t.addEventListener(xe.CHANGE,this.handleTileChange_)}},e.prototype.uploadTile_=function(){var t=this.helper_,n=t.getGL(),i=this.tile;if(i instanceof hw||i instanceof RF){var a=i.getImage();if(this.gutter_!==0){var o=this.tilePixelRatio_*this.gutter_,s=Math.round(a.width-2*o),A=Math.round(a.height-2*o),l=mo(s,A);i.interpolate||Ce(l,lv),l.drawImage(a,o,o,s,A,0,0,s,A),a=l.canvas}var u=n.createTexture();this.textures.push(u),this.bandCount=4,Knt(n,u,a,i.interpolate);return}var c=[this.size[0]*this.tilePixelRatio_,this.size[1]*this.tilePixelRatio_],h=i.getData(),f=h instanceof Float32Array,p=c[0]*c[1],v=f?Float32Array:Uint8Array,m=v.BYTES_PER_ELEMENT,g=h.byteLength/c[1];this.bandCount=Math.floor(g/m/c[0]);var _=Math.ceil(this.bandCount/4);if(_===1){var u=n.createTexture();this.textures.push(u),kN(t,u,h,c,this.bandCount,i.interpolate);return}for(var w=new Array(_),C=0;C<_;++C){var u=n.createTexture();this.textures.push(u);var F=C<_-1?4:this.bandCount%4;w[C]=new v(p*F)}for(var O=0,I=0,b=c[0]*this.bandCount,L=0;L<c[1];++L){for(var N=0;N<b;++N){var x=h[I+N],S=Math.floor(O/this.bandCount),P=N%this.bandCount,C=Math.floor(P/4),U=w[C],F=U.length/p,tt=P%4;U[S*F+tt]=x,++O}I+=g/m}for(var C=0;C<_;++C){var u=this.textures[C],U=w[C],F=U.length/p;kN(t,u,U,c,F,i.interpolate)}},e.prototype.handleTileChange_=function(){this.tile.getState()===be.LOADED&&(this.loaded=!0,this.uploadTile_(),this.dispatchEvent(xe.CHANGE))},e.prototype.disposeInternal=function(){var t=this.helper_.getGL();this.helper_.deleteBuffer(this.coords);for(var n=0;n<this.textures.length;++n)t.deleteTexture(this.textures[n]);this.tile.removeEventListener(xe.CHANGE,this.handleTileChange_)},e.prototype.getPixelData=function(t,n){if(!this.loaded)return null;if(t=Math.floor(this.tilePixelRatio_*t),n=Math.floor(this.tilePixelRatio_*n),this.tile instanceof Dnt){var i=this.tile.getData(),a=Math.floor(this.tilePixelRatio_*this.size[0]);if(i instanceof DataView){var o=i.byteLength/(this.size[0]*this.size[1]),s=n*a*o+t*o,A=i.buffer.slice(s,s+o);return new DataView(A)}var l=n*a*this.bandCount+t*this.bandCount;return i.slice(l,l+this.bandCount)}am||Ynt(),am.clearRect(0,0,1,1);var u,c=this.tile.getImage();try{am.drawImage(c,t,n,1,1,0,0,1,1),u=am.getImageData(0,0,1,1).data}catch{return null}return u},e}(Jf),znt=Wnt,o_={LOST:"webglcontextlost",RESTORED:"webglcontextrestored"},Xnt=`
|
||
precision mediump float;
|
||
|
||
attribute vec2 a_position;
|
||
varying vec2 v_texCoord;
|
||
varying vec2 v_screenCoord;
|
||
|
||
uniform vec2 u_screenSize;
|
||
|
||
void main() {
|
||
v_texCoord = a_position * 0.5 + 0.5;
|
||
v_screenCoord = v_texCoord * u_screenSize;
|
||
gl_Position = vec4(a_position, 0.0, 1.0);
|
||
}
|
||
`,qnt=`
|
||
precision mediump float;
|
||
|
||
uniform sampler2D u_image;
|
||
uniform float u_opacity;
|
||
|
||
varying vec2 v_texCoord;
|
||
|
||
void main() {
|
||
gl_FragColor = texture2D(u_image, v_texCoord) * u_opacity;
|
||
}
|
||
`,Znt=function(){function r(e){this.gl_=e.webGlContext;var t=this.gl_;this.scaleRatio_=e.scaleRatio||1,this.renderTargetTexture_=t.createTexture(),this.renderTargetTextureSize_=null,this.frameBuffer_=t.createFramebuffer();var n=t.createShader(t.VERTEX_SHADER);t.shaderSource(n,e.vertexShader||Xnt),t.compileShader(n);var i=t.createShader(t.FRAGMENT_SHADER);t.shaderSource(i,e.fragmentShader||qnt),t.compileShader(i),this.renderTargetProgram_=t.createProgram(),t.attachShader(this.renderTargetProgram_,n),t.attachShader(this.renderTargetProgram_,i),t.linkProgram(this.renderTargetProgram_),this.renderTargetVerticesBuffer_=t.createBuffer();var a=[-1,-1,1,-1,-1,1,1,-1,1,1,-1,1];t.bindBuffer(t.ARRAY_BUFFER,this.renderTargetVerticesBuffer_),t.bufferData(t.ARRAY_BUFFER,new Float32Array(a),t.STATIC_DRAW),this.renderTargetAttribLocation_=t.getAttribLocation(this.renderTargetProgram_,"a_position"),this.renderTargetUniformLocation_=t.getUniformLocation(this.renderTargetProgram_,"u_screenSize"),this.renderTargetOpacityLocation_=t.getUniformLocation(this.renderTargetProgram_,"u_opacity"),this.renderTargetTextureLocation_=t.getUniformLocation(this.renderTargetProgram_,"u_image"),this.uniforms_=[],e.uniforms&&Object.keys(e.uniforms).forEach(function(o){this.uniforms_.push({value:e.uniforms[o],location:t.getUniformLocation(this.renderTargetProgram_,o)})}.bind(this))}return r.prototype.getGL=function(){return this.gl_},r.prototype.init=function(e){var t=this.getGL(),n=[t.drawingBufferWidth*this.scaleRatio_,t.drawingBufferHeight*this.scaleRatio_];if(t.bindFramebuffer(t.FRAMEBUFFER,this.getFrameBuffer()),t.viewport(0,0,n[0],n[1]),!this.renderTargetTextureSize_||this.renderTargetTextureSize_[0]!==n[0]||this.renderTargetTextureSize_[1]!==n[1]){this.renderTargetTextureSize_=n;var i=0,a=t.RGBA,o=0,s=t.RGBA,A=t.UNSIGNED_BYTE,l=null;t.bindTexture(t.TEXTURE_2D,this.renderTargetTexture_),t.texImage2D(t.TEXTURE_2D,i,a,n[0],n[1],o,s,A,l),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,this.renderTargetTexture_,0)}},r.prototype.apply=function(e,t,n,i){var a=this.getGL(),o=e.size;if(a.bindFramebuffer(a.FRAMEBUFFER,t?t.getFrameBuffer():null),a.activeTexture(a.TEXTURE0),a.bindTexture(a.TEXTURE_2D,this.renderTargetTexture_),!t){var s=Ee(a.canvas);if(!e.renderTargets[s]){var A=a.getContextAttributes();A&&A.preserveDrawingBuffer&&(a.clearColor(0,0,0,0),a.clear(a.COLOR_BUFFER_BIT)),e.renderTargets[s]=!0}}a.enable(a.BLEND),a.blendFunc(a.ONE,a.ONE_MINUS_SRC_ALPHA),a.viewport(0,0,a.drawingBufferWidth,a.drawingBufferHeight),a.bindBuffer(a.ARRAY_BUFFER,this.renderTargetVerticesBuffer_),a.useProgram(this.renderTargetProgram_),a.enableVertexAttribArray(this.renderTargetAttribLocation_),a.vertexAttribPointer(this.renderTargetAttribLocation_,2,a.FLOAT,!1,0,0),a.uniform2f(this.renderTargetUniformLocation_,o[0],o[1]),a.uniform1i(this.renderTargetTextureLocation_,0);var l=e.layerStatesArray[e.layerIndex].opacity;a.uniform1f(this.renderTargetOpacityLocation_,l),this.applyUniforms(e),n&&n(a,e),a.drawArrays(a.TRIANGLES,0,6),i&&i(a,e)},r.prototype.getFrameBuffer=function(){return this.frameBuffer_},r.prototype.applyUniforms=function(e){var t=this.getGL(),n,i=1;this.uniforms_.forEach(function(a){if(n=typeof a.value=="function"?a.value(e):a.value,n instanceof HTMLCanvasElement||n instanceof ImageData)a.texture||(a.texture=t.createTexture()),t.activeTexture(t["TEXTURE".concat(i)]),t.bindTexture(t.TEXTURE_2D,a.texture),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),n instanceof ImageData?t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,n.width,n.height,0,t.UNSIGNED_BYTE,new Uint8Array(n.data)):t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,n),t.uniform1i(a.location,i++);else if(Array.isArray(n))switch(n.length){case 2:t.uniform2f(a.location,n[0],n[1]);return;case 3:t.uniform3f(a.location,n[0],n[1],n[2]);return;case 4:t.uniform4f(a.location,n[0],n[1],n[2],n[3]);return;default:return}else typeof n=="number"&&t.uniform1f(a.location,n)})},r}(),HN=Znt;function x8(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function f1(r,e){return r[0]=e[0],r[1]=e[1],r[4]=e[2],r[5]=e[3],r[12]=e[4],r[13]=e[5],r}var Jnt=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),vd={PROJECTION_MATRIX:"u_projectionMatrix",OFFSET_SCALE_MATRIX:"u_offsetScaleMatrix",OFFSET_ROTATION_MATRIX:"u_offsetRotateMatrix",TIME:"u_time",ZOOM:"u_zoom",RESOLUTION:"u_resolution"},Fs={UNSIGNED_BYTE:knt,UNSIGNED_SHORT:Hnt,UNSIGNED_INT:Gnt,FLOAT:T8},fw={};function GN(r){return"shared/"+r}var $N=0;function tit(){var r="unique/"+$N;return $N+=1,r}function eit(r){var e=fw[r];if(!e){var t=document.createElement("canvas");t.style.position="absolute",t.style.left="0",e={users:0,canvas:t},fw[r]=e}return e.users+=1,e.canvas}function rit(r){var e=fw[r];if(e&&(e.users-=1,!(e.users>0))){var t=e.canvas,n=b8(t),i=n.getExtension("WEBGL_lose_context");i&&i.loseContext(),delete fw[r]}}var nit=function(r){Jnt(e,r);function e(t){var n=r.call(this)||this,i=t||{};n.boundHandleWebGLContextLost_=n.handleWebGLContextLost.bind(n),n.boundHandleWebGLContextRestored_=n.handleWebGLContextRestored.bind(n),n.canvasCacheKey_=i.canvasCacheKey?GN(i.canvasCacheKey):tit(),n.canvas_=eit(n.canvasCacheKey_),n.gl_=b8(n.canvas_),n.bufferCache_={},n.extensionCache_={},n.currentProgram_=null,n.canvas_.addEventListener(o_.LOST,n.boundHandleWebGLContextLost_),n.canvas_.addEventListener(o_.RESTORED,n.boundHandleWebGLContextRestored_),n.offsetRotateMatrix_=Ti(),n.offsetScaleMatrix_=Ti(),n.tmpMat4_=x8(),n.uniformLocations_={},n.attribLocations_={},n.uniforms_=[],i.uniforms&&n.setUniforms(i.uniforms);var a=n.getGL();return n.postProcessPasses_=i.postProcesses?i.postProcesses.map(function(o){return new HN({webGlContext:a,scaleRatio:o.scaleRatio,vertexShader:o.vertexShader,fragmentShader:o.fragmentShader,uniforms:o.uniforms})}):[new HN({webGlContext:a})],n.shaderCompileErrors_=null,n.startTime_=Date.now(),n}return e.prototype.setUniforms=function(t){this.uniforms_=[];for(var n in t)this.uniforms_.push({name:n,value:t[n]});this.uniformLocations_={}},e.prototype.canvasCacheKeyMatches=function(t){return this.canvasCacheKey_===GN(t)},e.prototype.getExtension=function(t){if(t in this.extensionCache_)return this.extensionCache_[t];var n=this.gl_.getExtension(t);return this.extensionCache_[t]=n,n},e.prototype.bindBuffer=function(t){var n=this.getGL(),i=Ee(t),a=this.bufferCache_[i];if(!a){var o=n.createBuffer();a={buffer:t,webGlBuffer:o},this.bufferCache_[i]=a}n.bindBuffer(t.getType(),a.webGlBuffer)},e.prototype.flushBufferData=function(t){var n=this.getGL();this.bindBuffer(t),n.bufferData(t.getType(),t.getArray(),t.getUsage())},e.prototype.deleteBuffer=function(t){var n=this.getGL(),i=Ee(t),a=this.bufferCache_[i];a&&!n.isContextLost()&&n.deleteBuffer(a.webGlBuffer),delete this.bufferCache_[i]},e.prototype.disposeInternal=function(){this.canvas_.removeEventListener(o_.LOST,this.boundHandleWebGLContextLost_),this.canvas_.removeEventListener(o_.RESTORED,this.boundHandleWebGLContextRestored_),rit(this.canvasCacheKey_),delete this.gl_,delete this.canvas_},e.prototype.prepareDraw=function(t,n){var i=this.getGL(),a=this.getCanvas(),o=t.size,s=t.pixelRatio;a.width=o[0]*s,a.height=o[1]*s,a.style.width=o[0]+"px",a.style.height=o[1]+"px",i.useProgram(this.currentProgram_);for(var A=this.postProcessPasses_.length-1;A>=0;A--)this.postProcessPasses_[A].init(t);i.bindTexture(i.TEXTURE_2D,null),i.clearColor(0,0,0,0),i.clear(i.COLOR_BUFFER_BIT),i.enable(i.BLEND),i.blendFunc(i.ONE,n?i.ZERO:i.ONE_MINUS_SRC_ALPHA),i.useProgram(this.currentProgram_),this.applyFrameState(t),this.applyUniforms(t)},e.prototype.prepareDrawToRenderTarget=function(t,n,i){var a=this.getGL(),o=n.getSize();a.bindFramebuffer(a.FRAMEBUFFER,n.getFramebuffer()),a.viewport(0,0,o[0],o[1]),a.bindTexture(a.TEXTURE_2D,n.getTexture()),a.clearColor(0,0,0,0),a.clear(a.COLOR_BUFFER_BIT),a.enable(a.BLEND),a.blendFunc(a.ONE,i?a.ZERO:a.ONE_MINUS_SRC_ALPHA),a.useProgram(this.currentProgram_),this.applyFrameState(t),this.applyUniforms(t)},e.prototype.drawElements=function(t,n){var i=this.getGL();this.getExtension("OES_element_index_uint");var a=i.UNSIGNED_INT,o=4,s=n-t,A=t*o;i.drawElements(i.TRIANGLES,s,a,A)},e.prototype.finalizeDraw=function(t,n,i){for(var a=0,o=this.postProcessPasses_.length;a<o;a++)a===o-1?this.postProcessPasses_[a].apply(t,null,n,i):this.postProcessPasses_[a].apply(t,this.postProcessPasses_[a+1])},e.prototype.getCanvas=function(){return this.canvas_},e.prototype.getGL=function(){return this.gl_},e.prototype.applyFrameState=function(t){var n=t.size,i=t.viewState.rotation,a=Em(this.offsetScaleMatrix_);Cm(a,2/n[0],2/n[1]);var o=Em(this.offsetRotateMatrix_);i!==0&&vY(o,-i),this.setUniformMatrixValue(vd.OFFSET_SCALE_MATRIX,f1(this.tmpMat4_,a)),this.setUniformMatrixValue(vd.OFFSET_ROTATION_MATRIX,f1(this.tmpMat4_,o)),this.setUniformFloatValue(vd.TIME,(Date.now()-this.startTime_)*.001),this.setUniformFloatValue(vd.ZOOM,t.viewState.zoom),this.setUniformFloatValue(vd.RESOLUTION,t.viewState.resolution)},e.prototype.applyUniforms=function(t){var n=this.getGL(),i,a=0;this.uniforms_.forEach(function(o){if(i=typeof o.value=="function"?o.value(t):o.value,i instanceof HTMLCanvasElement||i instanceof HTMLImageElement||i instanceof ImageData){o.texture||(o.prevValue=void 0,o.texture=n.createTexture()),n.activeTexture(n["TEXTURE".concat(a)]),n.bindTexture(n.TEXTURE_2D,o.texture),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,n.LINEAR),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,n.CLAMP_TO_EDGE),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,n.CLAMP_TO_EDGE);var s=!(i instanceof HTMLImageElement)||i.complete;s&&o.prevValue!==i&&(o.prevValue=i,n.texImage2D(n.TEXTURE_2D,0,n.RGBA,n.RGBA,n.UNSIGNED_BYTE,i)),n.uniform1i(this.getUniformLocation(o.name),a++)}else if(Array.isArray(i)&&i.length===6)this.setUniformMatrixValue(o.name,f1(this.tmpMat4_,i));else if(Array.isArray(i)&&i.length<=4)switch(i.length){case 2:n.uniform2f(this.getUniformLocation(o.name),i[0],i[1]);return;case 3:n.uniform3f(this.getUniformLocation(o.name),i[0],i[1],i[2]);return;case 4:n.uniform4f(this.getUniformLocation(o.name),i[0],i[1],i[2],i[3]);return;default:return}else typeof i=="number"&&n.uniform1f(this.getUniformLocation(o.name),i)}.bind(this))},e.prototype.useProgram=function(t){if(t==this.currentProgram_)return!1;var n=this.getGL();return n.useProgram(t),this.currentProgram_=t,this.uniformLocations_={},this.attribLocations_={},!0},e.prototype.compileShader=function(t,n){var i=this.getGL(),a=i.createShader(n);return i.shaderSource(a,t),i.compileShader(a),a},e.prototype.getProgram=function(t,n){var i=this.getGL(),a=this.compileShader(t,i.FRAGMENT_SHADER),o=this.compileShader(n,i.VERTEX_SHADER),s=i.createProgram();if(i.attachShader(s,a),i.attachShader(s,o),i.linkProgram(s),!i.getShaderParameter(a,i.COMPILE_STATUS)){var A="Fragment shader compliation failed: ".concat(i.getShaderInfoLog(a));throw new Error(A)}if(i.deleteShader(a),!i.getShaderParameter(o,i.COMPILE_STATUS)){var A="Vertex shader compilation failed: ".concat(i.getShaderInfoLog(o));throw new Error(A)}if(i.deleteShader(o),!i.getProgramParameter(s,i.LINK_STATUS)){var A="GL program linking failed: ".concat(i.getShaderInfoLog(o));throw new Error(A)}return s},e.prototype.getUniformLocation=function(t){return this.uniformLocations_[t]===void 0&&(this.uniformLocations_[t]=this.getGL().getUniformLocation(this.currentProgram_,t)),this.uniformLocations_[t]},e.prototype.getAttributeLocation=function(t){return this.attribLocations_[t]===void 0&&(this.attribLocations_[t]=this.getGL().getAttribLocation(this.currentProgram_,t)),this.attribLocations_[t]},e.prototype.makeProjectionTransform=function(t,n){var i=t.size,a=t.viewState.rotation,o=t.viewState.resolution,s=t.viewState.center;return Em(n),vo(n,0,0,2/(o*i[0]),2/(o*i[1]),-a,-s[0],-s[1]),n},e.prototype.setUniformFloatValue=function(t,n){this.getGL().uniform1f(this.getUniformLocation(t),n)},e.prototype.setUniformFloatVec4=function(t,n){this.getGL().uniform4fv(this.getUniformLocation(t),n)},e.prototype.setUniformMatrixValue=function(t,n){this.getGL().uniformMatrix4fv(this.getUniformLocation(t),!1,n)},e.prototype.enableAttributeArray_=function(t,n,i,a,o){var s=this.getAttributeLocation(t);s<0||(this.getGL().enableVertexAttribArray(s),this.getGL().vertexAttribPointer(s,n,i,!1,a,o))},e.prototype.enableAttributes=function(t){for(var n=iit(t),i=0,a=0;a<t.length;a++){var o=t[a];this.enableAttributeArray_(o.name,o.size,o.type||T8,n,i),i+=o.size*I8(o.type)}},e.prototype.handleWebGLContextLost=function(){Zf(this.bufferCache_),this.currentProgram_=null},e.prototype.handleWebGLContextRestored=function(){},e.prototype.createTexture=function(t,n,i){var a=this.getGL(),o=i||a.createTexture(),s=0,A=a.RGBA,l=0,u=a.RGBA,c=a.UNSIGNED_BYTE;return a.bindTexture(a.TEXTURE_2D,o),n?a.texImage2D(a.TEXTURE_2D,s,A,u,c,n):a.texImage2D(a.TEXTURE_2D,s,A,t[0],t[1],l,u,c,null),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MIN_FILTER,a.LINEAR),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_S,a.CLAMP_TO_EDGE),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_T,a.CLAMP_TO_EDGE),o},e}(yE);function iit(r){for(var e=0,t=0;t<r.length;t++){var n=r[t];e+=n.size*I8(n.type)}return e}function I8(r){switch(r){case Fs.UNSIGNED_BYTE:return Uint8Array.BYTES_PER_ELEMENT;case Fs.UNSIGNED_SHORT:return Uint16Array.BYTES_PER_ELEMENT;case Fs.UNSIGNED_INT:return Uint32Array.BYTES_PER_ELEMENT;case Fs.FLOAT:default:return Float32Array.BYTES_PER_ELEMENT}}var ait=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),jB={GENERATE_BUFFERS:"GENERATE_BUFFERS"},oit=function(r){ait(e,r);function e(t,n){var i=r.call(this,t)||this,a=n||{};return i.inversePixelTransform_=Ti(),i.pixelContext_=null,i.postProcesses_=a.postProcesses,i.uniforms_=a.uniforms,i.helper,t.addChangeListener(Zr.MAP,i.removeHelper.bind(i)),i.dispatchPreComposeEvent=i.dispatchPreComposeEvent.bind(i),i.dispatchPostComposeEvent=i.dispatchPostComposeEvent.bind(i),i}return e.prototype.dispatchPreComposeEvent=function(t,n){var i=this.getLayer();if(i.hasListener(Oo.PRECOMPOSE)){var a=new Bm(Oo.PRECOMPOSE,void 0,n,t);i.dispatchEvent(a)}},e.prototype.dispatchPostComposeEvent=function(t,n){var i=this.getLayer();if(i.hasListener(Oo.POSTCOMPOSE)){var a=new Bm(Oo.POSTCOMPOSE,void 0,n,t);i.dispatchEvent(a)}},e.prototype.reset=function(t){this.uniforms_=t.uniforms,this.helper&&this.helper.setUniforms(this.uniforms_)},e.prototype.removeHelper=function(){this.helper&&(this.helper.dispose(),delete this.helper)},e.prototype.prepareFrame=function(t){if(this.getLayer().getRenderSource()){for(var n=!0,i=-1,a=void 0,o=0,s=t.layerStatesArray.length;o<s;o++){var A=t.layerStatesArray[o].layer,l=A.getRenderer();if(!(l instanceof e)){n=!0;continue}var u=A.getClassName();if((n||u!==a)&&(i+=1,n=!1),a=u,l===this)break}var c="map/"+t.mapId+"/group/"+i;(!this.helper||!this.helper.canvasCacheKeyMatches(c))&&(this.removeHelper(),this.helper=new nit({postProcesses:this.postProcesses_,uniforms:this.uniforms_,canvasCacheKey:c}),a&&(this.helper.getCanvas().className=a),this.afterHelperCreated())}return this.prepareFrameInternal(t)},e.prototype.afterHelperCreated=function(){},e.prototype.prepareFrameInternal=function(t){return!0},e.prototype.disposeInternal=function(){this.removeHelper(),r.prototype.disposeInternal.call(this)},e.prototype.dispatchRenderEvent_=function(t,n,i){var a=this.getLayer();if(a.hasListener(t)){vo(this.inversePixelTransform_,0,0,i.pixelRatio,-i.pixelRatio,0,0,-i.size[1]);var o=new Bm(t,this.inversePixelTransform_,i,n);a.dispatchEvent(o)}},e.prototype.preRender=function(t,n){this.dispatchRenderEvent_(Oo.PRERENDER,t,n)},e.prototype.postRender=function(t,n){this.dispatchRenderEvent_(Oo.POSTRENDER,t,n)},e.prototype.getDataAtPixel=function(t,n,i){var a=Bn([n.pixelRatio,0,0,n.pixelRatio,0,0],t.slice()),o=this.helper.getGL();if(!o)return null;var s=this.getLayer(),A=s.getExtent();if(A){var l=Bn(n.pixelToCoordinateTransform,t.slice());if(!fA(A,l))return null}var u=o.getContextAttributes();if(!u||!u.preserveDrawingBuffer)return new Uint8Array;var c=Math.round(a[0]),h=Math.round(a[1]),f=this.pixelContext_;if(!f){var p=document.createElement("canvas");p.width=1,p.height=1,f=p.getContext("2d"),this.pixelContext_=f}f.clearRect(0,0,1,1);var v;try{f.drawImage(o.canvas,c,h,1,1,0,0,1,1),v=f.getImageData(0,0,1,1).data}catch{return v}return v[3]===0?null:v},e}(M4);function sit(r,e){var t=e||[],n=256,i=n-1;return t[0]=Math.floor(r/n/n/n)/i,t[1]=Math.floor(r/n/n)%n/i,t[2]=Math.floor(r/n)%n/i,t[3]=r%n/i,t}function Ait(r){var e=0,t=256,n=t-1;return e+=Math.round(r[0]*t*t*t*n),e+=Math.round(r[1]*t*t*n),e+=Math.round(r[2]*t*n),e+=Math.round(r[3]*n),e}var L8=oit;function hy(r,e,t,n){return n!==void 0?(n[0]=r,n[1]=e,n[2]=t,n):[r,e,t]}function GE(r,e,t){return r+"/"+e+"/"+t}function fy(r){return GE(r[0],r[1],r[2])}function lit(r){return r.split("/").map(Number)}function F8(r){return(r[1]<<r[0])+r[2]}function uit(r,e){var t=r[0],n=r[1],i=r[2];if(e.getMinZoom()>t||t>e.getMaxZoom())return!1;var a=e.getFullTileRange(t);return a?a.containsXY(n,i):!0}var cit=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),lr={TILE_TEXTURE_ARRAY:"u_tileTextures",TILE_TRANSFORM:"u_tileTransform",TRANSITION_ALPHA:"u_transitionAlpha",DEPTH:"u_depth",TEXTURE_PIXEL_WIDTH:"u_texturePixelWidth",TEXTURE_PIXEL_HEIGHT:"u_texturePixelHeight",TEXTURE_RESOLUTION:"u_textureResolution",TEXTURE_ORIGIN_X:"u_textureOriginX",TEXTURE_ORIGIN_Y:"u_textureOriginY",RENDER_EXTENT:"u_renderExtent",RESOLUTION:"u_resolution",ZOOM:"u_zoom"},p1={TEXTURE_COORD:"a_textureCoord"},hit=[{name:p1.TEXTURE_COORD,size:2,type:Fs.FLOAT}],fit={};function pit(r){return 2*(1-1/(r+1))-1}function VN(r,e,t){t in r||(r[t]=[]),r[t].push(e)}function KB(r,e){var t=r.layerStatesArray[r.layerIndex];t.extent&&(e=Ps(e,cs(t.extent,r.viewState.projection)));var n=t.layer.getRenderSource();if(!n.getWrapX()){var i=n.getTileGridForProjection(r.viewState.projection).getExtent();i&&(e=Ps(e,i))}return e}function YB(r,e){return"".concat(r.getKey(),",").concat(fy(e))}var dit=function(r){cit(e,r);function e(t,n){var i=r.call(this,t,{uniforms:n.uniforms})||this;i.renderComplete=!1,i.tileTransform_=Ti(),i.tempMat4_=x8(),i.tempTileRange_=new MF(0,0,0,0),i.tempTileCoord_=hy(0,0,0),i.tempSize_=[0,0],i.program_,i.vertexShader_=n.vertexShader,i.fragmentShader_=n.fragmentShader,i.indices_=new Sm(HE,PF),i.indices_.fromArray([0,1,3,1,2,3]);var a=n.cacheSize!==void 0?n.cacheSize:512;return i.tileTextureCache_=new B8(a),i.paletteTextures_=n.paletteTextures||[],i.frameState_=null,i}return e.prototype.reset=function(t){r.prototype.reset.call(this,{uniforms:t.uniforms}),this.vertexShader_=t.vertexShader,this.fragmentShader_=t.fragmentShader,this.paletteTextures_=t.paletteTextures||[],this.helper&&(this.program_=this.helper.getProgram(this.fragmentShader_,this.vertexShader_))},e.prototype.afterHelperCreated=function(){this.program_=this.helper.getProgram(this.fragmentShader_,this.vertexShader_),this.helper.flushBufferData(this.indices_)},e.prototype.isDrawableTile_=function(t){var n=this.getLayer(),i=t.getState(),a=n.getUseInterimTilesOnError();return i==be.LOADED||i==be.EMPTY||i==be.ERROR&&!a},e.prototype.prepareFrameInternal=function(t){var n=this.getLayer(),i=n.getRenderSource();return!i||xv(KB(t,t.extent))?!1:i.getState()===Ao.READY},e.prototype.enqueueTiles=function(t,n,i,a){var o=t.viewState,s=this.getLayer(),A=s.getRenderSource(),l=A.getTileGridForProjection(o.projection),u=A.getTilePixelRatio(t.pixelRatio),c=A.getGutterForProjection(o.projection),h=Ee(A);h in t.wantedTiles||(t.wantedTiles[h]={});for(var f=t.wantedTiles[h],p=this.tileTextureCache_,v=Math.max(i-s.getPreload(),l.getMinZoom(),s.getMinZoom()),m=i;m>=v;--m)for(var g=l.getTileRangeForExtentAndZ(n,m,this.tempTileRange_),_=l.getResolution(m),w=g.minX;w<=g.maxX;++w)for(var C=g.minY;C<=g.maxY;++C){var F=hy(m,w,C,this.tempTileCoord_),O=YB(A,F),I=void 0,b=void 0;if(p.containsKey(O)&&(I=p.get(O),b=I.tile),!I||I.tile.key!==A.getKey())if(b=A.getTile(m,w,C,t.pixelRatio,o.projection),!I)I=new znt({tile:b,grid:l,helper:this.helper,tilePixelRatio:u,gutter:c}),p.set(O,I);else if(this.isDrawableTile_(b))I.setTile(b);else{var L=b.getInterimTile();I.setTile(L)}VN(a,I,m);var N=b.getKey();f[N]=!0,b.getState()===be.IDLE&&(t.tileQueue.isKeyQueued(N)||t.tileQueue.enqueue([b,h,l.getTileCoordCenter(F),_]))}},e.prototype.renderFrame=function(t){this.frameState_=t,this.renderComplete=!0;var n=this.helper.getGL();this.preRender(n,t);var i=t.viewState,a=this.getLayer(),o=a.getRenderSource(),s=o.getTileGridForProjection(i.projection),A=KB(t,t.extent),l=s.getZForResolution(i.resolution,o.zDirection),u={};if(t.nextExtent){var c=s.getZForResolution(i.nextResolution,o.zDirection),h=KB(t,t.nextExtent);this.enqueueTiles(t,h,c,u)}this.enqueueTiles(t,A,l,u);for(var f={},p=Ee(this),v=t.time,m=!1,g=u[l],_=0,w=g.length;_<w;++_){var C=g[_],F=C.tile,O=F.tileCoord;if(C.loaded){var I=F.getAlpha(p,v);if(I===1){F.endTransition(p);continue}m=!0;var b=fy(O);f[b]=I}this.renderComplete=!1;var L=this.findAltTiles_(s,O,l+1,u);if(!L)for(var N=s.getMinZoom(),x=l-1;x>=N;--x){var S=this.findAltTiles_(s,O,x,u);if(S)break}}this.helper.useProgram(this.program_),this.helper.prepareDraw(t,!m);for(var P=Object.keys(u).map(Number).sort(Vc),U=i.center[0],tt=i.center[1],q=0,rt=P.length;q<rt;++q)for(var nt=P[q],At=s.getResolution(nt),ct=ji(s.getTileSize(nt),this.tempSize_),bt=s.getOrigin(nt),M=(U-bt[0])/(ct[0]*At),Y=(bt[1]-tt)/(ct[1]*At),z=i.resolution/At,H=pit(nt),J=u[nt],_=0,w=J.length;_<w;++_){var C=J[_];if(C.loaded){var F=C.tile,O=F.tileCoord,b=fy(O),ot=O[1],ut=O[2];vo(this.tileTransform_,0,0,2/(t.size[0]*z/ct[0]),-2/(t.size[1]*z/ct[1]),i.rotation,-(M-ot),-(Y-ut)),this.helper.setUniformMatrixValue(lr.TILE_TRANSFORM,f1(this.tempMat4_,this.tileTransform_)),this.helper.bindBuffer(C.coords),this.helper.bindBuffer(this.indices_),this.helper.enableAttributes(hit);for(var X=0;X<C.textures.length;){var It="TEXTURE"+X,at="".concat(lr.TILE_TEXTURE_ARRAY,"[").concat(X,"]");n.activeTexture(n[It]),n.bindTexture(n.TEXTURE_2D,C.textures[X]),n.uniform1i(this.helper.getUniformLocation(at),X),++X}for(var j=0;j<this.paletteTextures_.length;++j){var Z=this.paletteTextures_[j];n.activeTexture(n["TEXTURE"+X]);var ft=Z.getTexture(n);n.bindTexture(n.TEXTURE_2D,ft),n.uniform1i(this.helper.getUniformLocation(Z.name),X),++X}var I=b in f?f[b]:1;I<1&&(t.animate=!0),this.helper.setUniformFloatValue(lr.TRANSITION_ALPHA,I),this.helper.setUniformFloatValue(lr.DEPTH,H),this.helper.setUniformFloatValue(lr.TEXTURE_PIXEL_WIDTH,ct[0]),this.helper.setUniformFloatValue(lr.TEXTURE_PIXEL_HEIGHT,ct[1]),this.helper.setUniformFloatValue(lr.TEXTURE_RESOLUTION,At),this.helper.setUniformFloatValue(lr.TEXTURE_ORIGIN_X,bt[0]+ot*ct[0]*At),this.helper.setUniformFloatValue(lr.TEXTURE_ORIGIN_Y,bt[1]-ut*ct[1]*At),this.helper.setUniformFloatVec4(lr.RENDER_EXTENT,A),this.helper.setUniformFloatValue(lr.RESOLUTION,i.resolution),this.helper.setUniformFloatValue(lr.ZOOM,i.zoom),this.helper.drawElements(0,this.indices_.getSize())}}this.helper.finalizeDraw(t,this.dispatchPreComposeEvent,this.dispatchPostComposeEvent);for(var it=this.helper.getCanvas(),V=this.tileTextureCache_;V.canExpireCache();){var C=V.pop();C.dispose()}var Ot=function(Mt,Et){o.expireCache(Et.viewState.projection,fit)};return t.postRenderFunctions.push(Ot),this.postRender(n,t),it},e.prototype.getData=function(t){var n=this.helper.getGL();if(!n)return null;var i=this.frameState_;if(!i)return null;var a=this.getLayer(),o=Bn(i.pixelToCoordinateTransform,t.slice()),s=i.viewState,A=a.getExtent();if(A&&!fA(cs(A,s.projection),o))return null;var l=a.getRenderSource(),u=l.getTileGridForProjection(s.projection);if(!l.getWrapX()){var c=u.getExtent();if(c&&!fA(c,o))return null}for(var h=this.tileTextureCache_,f=u.getZForResolution(s.resolution);f>=u.getMinZoom();--f){var p=u.getTileCoordForCoordAndZ(o,f),v=YB(l,p);if(h.containsKey(v)){var m=h.get(v);if(m.loaded){var g=u.getOrigin(f),_=ji(u.getTileSize(f)),w=u.getResolution(f),C=(o[0]-g[0])/w-p[1]*_[0],F=(g[1]-o[1])/w-p[2]*_[1];return m.getPixelData(C,F)}}}return null},e.prototype.findAltTiles_=function(t,n,i,a){var o=t.getTileRangeForTileCoordAndZ(n,i,this.tempTileRange_);if(!o)return!1;for(var s=!0,A=this.tileTextureCache_,l=this.getLayer().getRenderSource(),u=o.minX;u<=o.maxX;++u)for(var c=o.minY;c<=o.maxY;++c){var h=YB(l,[i,u,c]),f=!1;if(A.containsKey(h)){var p=A.get(h);p.loaded&&(VN(a,p,i),f=!0)}f||(s=!1)}return s},e.prototype.removeHelper=function(){if(this.helper){var t=this.tileTextureCache_;t.forEach(function(n){return n.dispose()}),t.clear()}r.prototype.removeHelper.call(this)},e.prototype.disposeInternal=function(){var t=this.helper;if(t){var n=t.getGL();n.deleteProgram(this.program_),delete this.program_,t.deleteBuffer(this.indices_)}r.prototype.disposeInternal.call(this),delete this.indices_,delete this.tileTextureCache_,delete this.frameState_},e}(L8),vit=dit,git=function(){function r(e,t){this.name=e,this.data=t,this.texture_=null}return r.prototype.getTexture=function(e){if(!this.texture_){var t=e.createTexture();e.bindTexture(e.TEXTURE_2D,t),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.NEAREST),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,this.data.length/4,1,0,e.RGBA,e.UNSIGNED_BYTE,this.data),this.texture_=t}return this.texture_},r}(),mit=git,ue={NUMBER:1,STRING:2,COLOR:4,BOOLEAN:8,NUMBER_ARRAY:16,ANY:31,NONE:0},fr={};function fl(r){if(typeof r=="number")return ue.NUMBER;if(typeof r=="boolean")return ue.BOOLEAN;if(typeof r=="string")return RY(r)?ue.COLOR|ue.STRING:ue.STRING;if(!Array.isArray(r))throw new Error("Unhandled value type: ".concat(JSON.stringify(r)));var e=r,t=e.every(function(i){return typeof i=="number"});if(t)return e.length===3||e.length===4?ue.COLOR|ue.NUMBER_ARRAY:ue.NUMBER_ARRAY;if(typeof e[0]!="string")throw new Error("Expected an expression operator but received: ".concat(JSON.stringify(e)));var n=fr[e[0]];if(n===void 0)throw new Error("Unrecognized expression operator: ".concat(JSON.stringify(e)));return n.getReturnType(e.slice(1))}function yit(r){return M6(r)%1===0}function $E(r){var e=r.toString();return e.indexOf(".")===-1?e+".0":e}function O8(r){if(r.length<2||r.length>4)throw new Error("`formatArray` can only output `vec2`, `vec3` or `vec4` arrays.");return"vec".concat(r.length,"(").concat(r.map($E).join(", "),")")}function _it(r){var e=Yc(r).slice();return e.length<4&&e.push(1),O8(e.map(function(t,n){return n<3?t/255:t}))}function pw(r,e){return r.stringLiteralsMap[e]===void 0&&(r.stringLiteralsMap[e]=Object.keys(r.stringLiteralsMap).length),r.stringLiteralsMap[e]}function wit(r,e){return $E(pw(r,e))}function ge(r,e,t){if(Array.isArray(e)&&typeof e[0]=="string"){var n=fr[e[0]];if(n===void 0)throw new Error("Unrecognized expression operator: ".concat(JSON.stringify(e)));return n.toGlsl(r,e.slice(1),t)}var i=fl(e);if((i&ue.NUMBER)>0)return $E(e);if((i&ue.BOOLEAN)>0)return e.toString();if((i&ue.STRING)>0&&(t===void 0||t==ue.STRING))return wit(r,e.toString());if((i&ue.COLOR)>0&&(t===void 0||t==ue.COLOR))return _it(e);if((i&ue.NUMBER_ARRAY)>0)return O8(e);throw new Error("Unexpected expression ".concat(e," (expected type ").concat(t,")"))}function R8(r){if(!(fl(r)&ue.NUMBER))throw new Error("A numeric value was expected, got ".concat(JSON.stringify(r)," instead"))}function Ii(r){for(var e=0;e<r.length;e++)R8(r[e])}function M8(r){if(!(fl(r)&ue.STRING))throw new Error("A string value was expected, got ".concat(JSON.stringify(r)," instead"))}function UF(r){if(!(fl(r)&ue.BOOLEAN))throw new Error("A boolean value was expected, got ".concat(JSON.stringify(r)," instead"))}function Ln(r,e){if(r.length!==e)throw new Error("Exactly ".concat(e," arguments were expected, got ").concat(r.length," instead"))}function oh(r,e){if(r.length<e)throw new Error("At least ".concat(e," arguments were expected, got ").concat(r.length," instead"))}function VE(r,e){if(r.length>e)throw new Error("At most ".concat(e," arguments were expected, got ").concat(r.length," instead"))}function N8(r){if(r.length%2!==0)throw new Error("An even amount of arguments was expected, got ".concat(r," instead"))}function Eit(r){if(r.length%2===0)throw new Error("An odd amount of arguments was expected, got ".concat(r," instead"))}function DF(r,e){if(!yit(e))throw new Error("Could not infer only one type from the following expression: ".concat(JSON.stringify(r)))}fr.get={getReturnType:function(r){return ue.ANY},toGlsl:function(r,e){Ln(e,1),M8(e[0]);var t=e[0].toString();r.attributes.indexOf(t)===-1&&r.attributes.push(t);var n=r.inFragmentShader?"v_":"a_";return n+t}};function QF(r){return"u_var_"+r}fr.var={getReturnType:function(r){return ue.ANY},toGlsl:function(r,e){Ln(e,1),M8(e[0]);var t=e[0].toString();return r.variables.indexOf(t)===-1&&r.variables.push(t),QF(t)}};var P8="u_paletteTextures";fr.palette={getReturnType:function(r){return ue.COLOR},toGlsl:function(r,e){Ln(e,2),R8(e[0]);var t=ge(r,e[0]),n=e[1];if(!Array.isArray(n))throw new Error("The second argument of palette must be an array");for(var i=n.length,a=new Uint8Array(i*4),o=0;o<i;o++){var s=n[o],A=void 0;if(typeof s=="string")A=D6(s);else{if(!Array.isArray(s))throw new Error("The second argument of palette must be an array of strings or colors");var l=s.length;if(l===4)A=s;else{if(l!==3)throw new Error("Expected palette color to have 3 or 4 values, got ".concat(l));A=[s[0],s[1],s[2],1]}}var u=o*4;a[u]=A[0],a[u+1]=A[1],a[u+2]=A[2],a[u+3]=A[3]*255}r.paletteTextures||(r.paletteTextures=[]);var c="".concat(P8,"[").concat(r.paletteTextures.length,"]"),h=new mit(c,a);return r.paletteTextures.push(h),"texture2D(".concat(c,", vec2((").concat(t," + 0.5) / ").concat(i,".0, 0.5))")}};var WB="getBandValue";fr.band={getReturnType:function(r){return ue.NUMBER},toGlsl:function(r,e){oh(e,1),VE(e,3);var t=e[0];if(!(WB in r.functions)){for(var n="",i=r.bandCount||1,a=0;a<i;a++){var o=Math.floor(a/4),s=a%4;s===i-1&&s===1&&(s=3);var A="".concat(lr.TILE_TEXTURE_ARRAY,"[").concat(o,"]");n+=`
|
||
if (band == `.concat(a+1,`.0) {
|
||
return texture2D(`).concat(A,", v_textureCoord + vec2(dx, dy))[").concat(s,`];
|
||
}
|
||
`)}r.functions[WB]=`
|
||
float getBandValue(float band, float xOffset, float yOffset) {
|
||
float dx = xOffset / `.concat(lr.TEXTURE_PIXEL_WIDTH,`;
|
||
float dy = yOffset / `).concat(lr.TEXTURE_PIXEL_HEIGHT,`;
|
||
`).concat(n,`
|
||
}
|
||
`)}var l=ge(r,t),u=ge(r,e[1]||0),c=ge(r,e[2]||0);return"".concat(WB,"(").concat(l,", ").concat(u,", ").concat(c,")")}};fr.time={getReturnType:function(r){return ue.NUMBER},toGlsl:function(r,e){return Ln(e,0),"u_time"}};fr.zoom={getReturnType:function(r){return ue.NUMBER},toGlsl:function(r,e){return Ln(e,0),"u_zoom"}};fr.resolution={getReturnType:function(r){return ue.NUMBER},toGlsl:function(r,e){return Ln(e,0),"u_resolution"}};fr["*"]={getReturnType:function(r){return ue.NUMBER},toGlsl:function(r,e){return Ln(e,2),Ii(e),"(".concat(ge(r,e[0])," * ").concat(ge(r,e[1]),")")}};fr["/"]={getReturnType:function(r){return ue.NUMBER},toGlsl:function(r,e){return Ln(e,2),Ii(e),"(".concat(ge(r,e[0])," / ").concat(ge(r,e[1]),")")}};fr["+"]={getReturnType:function(r){return ue.NUMBER},toGlsl:function(r,e){return Ln(e,2),Ii(e),"(".concat(ge(r,e[0])," + ").concat(ge(r,e[1]),")")}};fr["-"]={getReturnType:function(r){return ue.NUMBER},toGlsl:function(r,e){return Ln(e,2),Ii(e),"(".concat(ge(r,e[0])," - ").concat(ge(r,e[1]),")")}};fr.clamp={getReturnType:function(r){return ue.NUMBER},toGlsl:function(r,e){Ln(e,3),Ii(e);var t=ge(r,e[1]),n=ge(r,e[2]);return"clamp(".concat(ge(r,e[0]),", ").concat(t,", ").concat(n,")")}};fr["%"]={getReturnType:function(r){return ue.NUMBER},toGlsl:function(r,e){return Ln(e,2),Ii(e),"mod(".concat(ge(r,e[0]),", ").concat(ge(r,e[1]),")")}};fr["^"]={getReturnType:function(r){return ue.NUMBER},toGlsl:function(r,e){return Ln(e,2),Ii(e),"pow(".concat(ge(r,e[0]),", ").concat(ge(r,e[1]),")")}};fr.abs={getReturnType:function(r){return ue.NUMBER},toGlsl:function(r,e){return Ln(e,1),Ii(e),"abs(".concat(ge(r,e[0]),")")}};fr.floor={getReturnType:function(r){return ue.NUMBER},toGlsl:function(r,e){return Ln(e,1),Ii(e),"floor(".concat(ge(r,e[0]),")")}};fr.round={getReturnType:function(r){return ue.NUMBER},toGlsl:function(r,e){return Ln(e,1),Ii(e),"floor(".concat(ge(r,e[0])," + 0.5)")}};fr.ceil={getReturnType:function(r){return ue.NUMBER},toGlsl:function(r,e){return Ln(e,1),Ii(e),"ceil(".concat(ge(r,e[0]),")")}};fr.sin={getReturnType:function(r){return ue.NUMBER},toGlsl:function(r,e){return Ln(e,1),Ii(e),"sin(".concat(ge(r,e[0]),")")}};fr.cos={getReturnType:function(r){return ue.NUMBER},toGlsl:function(r,e){return Ln(e,1),Ii(e),"cos(".concat(ge(r,e[0]),")")}};fr.atan={getReturnType:function(r){return ue.NUMBER},toGlsl:function(r,e){return oh(e,1),VE(e,2),Ii(e),e.length===2?"atan(".concat(ge(r,e[0]),", ").concat(ge(r,e[1]),")"):"atan(".concat(ge(r,e[0]),")")}};fr[">"]={getReturnType:function(r){return ue.BOOLEAN},toGlsl:function(r,e){return Ln(e,2),Ii(e),"(".concat(ge(r,e[0])," > ").concat(ge(r,e[1]),")")}};fr[">="]={getReturnType:function(r){return ue.BOOLEAN},toGlsl:function(r,e){return Ln(e,2),Ii(e),"(".concat(ge(r,e[0])," >= ").concat(ge(r,e[1]),")")}};fr["<"]={getReturnType:function(r){return ue.BOOLEAN},toGlsl:function(r,e){return Ln(e,2),Ii(e),"(".concat(ge(r,e[0])," < ").concat(ge(r,e[1]),")")}};fr["<="]={getReturnType:function(r){return ue.BOOLEAN},toGlsl:function(r,e){return Ln(e,2),Ii(e),"(".concat(ge(r,e[0])," <= ").concat(ge(r,e[1]),")")}};function U8(r){return{getReturnType:function(e){return ue.BOOLEAN},toGlsl:function(e,t){Ln(t,2);for(var n=ue.ANY,i=0;i<t.length;i++)n&=fl(t[i]);if(n===ue.NONE)throw new Error("All arguments should be of compatible type, got ".concat(JSON.stringify(t)," instead"));return n&=~ue.COLOR,"(".concat(ge(e,t[0],n)," ").concat(r," ").concat(ge(e,t[1],n),")")}}}fr["=="]=U8("==");fr["!="]=U8("!=");fr["!"]={getReturnType:function(r){return ue.BOOLEAN},toGlsl:function(r,e){return Ln(e,1),UF(e[0]),"(!".concat(ge(r,e[0]),")")}};function D8(r){return{getReturnType:function(e){return ue.BOOLEAN},toGlsl:function(e,t){oh(t,2);for(var n=0;n<t.length;n++)UF(t[n]);var i="";return i=t.map(function(a){return ge(e,a)}).join(" ".concat(r," ")),i="(".concat(i,")"),i}}}fr.all=D8("&&");fr.any=D8("||");fr.between={getReturnType:function(r){return ue.BOOLEAN},toGlsl:function(r,e){Ln(e,3),Ii(e);var t=ge(r,e[1]),n=ge(r,e[2]),i=ge(r,e[0]);return"(".concat(i," >= ").concat(t," && ").concat(i," <= ").concat(n,")")}};fr.array={getReturnType:function(r){return ue.NUMBER_ARRAY},toGlsl:function(r,e){oh(e,2),VE(e,4),Ii(e);var t=e.map(function(n){return ge(r,n,ue.NUMBER)});return"vec".concat(e.length,"(").concat(t.join(", "),")")}};fr.color={getReturnType:function(r){return ue.COLOR},toGlsl:function(r,e){oh(e,3),VE(e,4),Ii(e);var t=e;e.length===3&&t.push(1);var n=e.map(function(i,a){return ge(r,i,ue.NUMBER)+(a<3?" / 255.0":"")});return"vec".concat(e.length,"(").concat(n.join(", "),")")}};fr.interpolate={getReturnType:function(r){for(var e=ue.COLOR|ue.NUMBER,t=3;t<r.length;t+=2)e=e&fl(r[t]);return e},toGlsl:function(r,e,t){N8(e),oh(e,6);var n=e[0],i;switch(n[0]){case"linear":i=1;break;case"exponential":i=n[1];break;default:i=null}if(!i)throw new Error('Invalid interpolation type for "interpolate" operator, received: '.concat(JSON.stringify(n)));var a=t!==void 0?t:ue.ANY,o=fr.interpolate.getReturnType(e)&a;DF(e,o);for(var s=ge(r,e[1]),A=$E(i),l="",u=2;u<e.length-2;u+=2){var c=ge(r,e[u]),h=l||ge(r,e[u+1],o),f=ge(r,e[u+2]),p=ge(r,e[u+3],o);l="mix(".concat(h,", ").concat(p,", pow(clamp((").concat(s," - ").concat(c,") / (").concat(f," - ").concat(c,"), 0.0, 1.0), ").concat(A,"))")}return l}};fr.match={getReturnType:function(r){for(var e=ue.ANY,t=2;t<r.length;t+=2)e=e&fl(r[t]);return e=e&fl(r[r.length-1]),e},toGlsl:function(r,e,t){N8(e),oh(e,4);var n=t!==void 0?t:ue.ANY,i=fr.match.getReturnType(e)&n;DF(e,i);for(var a=ge(r,e[0]),o=ge(r,e[e.length-1],i),s=null,A=e.length-3;A>=1;A-=2){var l=ge(r,e[A]),u=ge(r,e[A+1],i);s="(".concat(a," == ").concat(l," ? ").concat(u," : ").concat(s||o,")")}return s}};fr.case={getReturnType:function(r){for(var e=ue.ANY,t=1;t<r.length;t+=2)e=e&fl(r[t]);return e=e&fl(r[r.length-1]),e},toGlsl:function(r,e,t){Eit(e),oh(e,3);var n=t!==void 0?t:ue.ANY,i=fr.case.getReturnType(e)&n;DF(e,i);for(var a=0;a<e.length-1;a+=2)UF(e[a]);for(var o=ge(r,e[e.length-1],i),s=null,a=e.length-3;a>=0;a-=2){var A=ge(r,e[a]),l=ge(r,e[a+1],i);s="(".concat(A," ? ").concat(l," : ").concat(s||o,")")}return s}};var Cit=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();function jN(r,e){var t=`
|
||
attribute vec2 `.concat(p1.TEXTURE_COORD,`;
|
||
uniform mat4 `).concat(lr.TILE_TRANSFORM,`;
|
||
uniform float `).concat(lr.TEXTURE_PIXEL_WIDTH,`;
|
||
uniform float `).concat(lr.TEXTURE_PIXEL_HEIGHT,`;
|
||
uniform float `).concat(lr.TEXTURE_RESOLUTION,`;
|
||
uniform float `).concat(lr.TEXTURE_ORIGIN_X,`;
|
||
uniform float `).concat(lr.TEXTURE_ORIGIN_Y,`;
|
||
uniform float `).concat(lr.DEPTH,`;
|
||
|
||
varying vec2 v_textureCoord;
|
||
varying vec2 v_mapCoord;
|
||
|
||
void main() {
|
||
v_textureCoord = `).concat(p1.TEXTURE_COORD,`;
|
||
v_mapCoord = vec2(
|
||
`).concat(lr.TEXTURE_ORIGIN_X," + ").concat(lr.TEXTURE_RESOLUTION," * ").concat(lr.TEXTURE_PIXEL_WIDTH,` * v_textureCoord[0],
|
||
`).concat(lr.TEXTURE_ORIGIN_Y," - ").concat(lr.TEXTURE_RESOLUTION," * ").concat(lr.TEXTURE_PIXEL_HEIGHT,` * v_textureCoord[1]
|
||
);
|
||
gl_Position = `).concat(lr.TILE_TRANSFORM," * vec4(").concat(p1.TEXTURE_COORD,", ").concat(lr.DEPTH,`, 1.0);
|
||
}
|
||
`),n={inFragmentShader:!0,variables:[],attributes:[],stringLiteralsMap:{},functions:{},bandCount:e},i=[];if(r.color!==void 0){var a=ge(n,r.color,ue.COLOR);i.push("color = ".concat(a,";"))}if(r.contrast!==void 0){var o=ge(n,r.contrast,ue.NUMBER);i.push("color.rgb = clamp((".concat(o," + 1.0) * color.rgb - (").concat(o," / 2.0), vec3(0.0, 0.0, 0.0), vec3(1.0, 1.0, 1.0));"))}if(r.exposure!==void 0){var s=ge(n,r.exposure,ue.NUMBER);i.push("color.rgb = clamp((".concat(s," + 1.0) * color.rgb, vec3(0.0, 0.0, 0.0), vec3(1.0, 1.0, 1.0));"))}if(r.saturation!==void 0){var A=ge(n,r.saturation,ue.NUMBER);i.push(`
|
||
float saturation = `.concat(A,` + 1.0;
|
||
float sr = (1.0 - saturation) * 0.2126;
|
||
float sg = (1.0 - saturation) * 0.7152;
|
||
float sb = (1.0 - saturation) * 0.0722;
|
||
mat3 saturationMatrix = mat3(
|
||
sr + saturation, sr, sr,
|
||
sg, sg + saturation, sg,
|
||
sb, sb, sb + saturation
|
||
);
|
||
color.rgb = clamp(saturationMatrix * color.rgb, vec3(0.0, 0.0, 0.0), vec3(1.0, 1.0, 1.0));
|
||
`))}if(r.gamma!==void 0){var l=ge(n,r.gamma,ue.NUMBER);i.push("color.rgb = pow(color.rgb, vec3(1.0 / ".concat(l,"));"))}if(r.brightness!==void 0){var u=ge(n,r.brightness,ue.NUMBER);i.push("color.rgb = clamp(color.rgb + ".concat(u,", vec3(0.0, 0.0, 0.0), vec3(1.0, 1.0, 1.0));"))}var c={},h=n.variables.length;if(h>1&&!r.variables)throw new Error("Missing variables in style (expected ".concat(n.variables,")"));for(var f=function(w){var C=n.variables[w];if(!(C in r.variables))throw new Error("Missing '".concat(C,"' in style variables"));var F=QF(C);c[F]=function(){var O=r.variables[C];return typeof O=="string"&&(O=pw(n,O)),O!==void 0?O:-9999999}},p=0;p<h;++p)f(p);var v=Object.keys(c).map(function(w){return"uniform float ".concat(w,";")}),m=Math.ceil(e/4);v.push("uniform sampler2D ".concat(lr.TILE_TEXTURE_ARRAY,"[").concat(m,"];")),n.paletteTextures&&v.push("uniform sampler2D ".concat(P8,"[").concat(n.paletteTextures.length,"];"));var g=Object.keys(n.functions).map(function(w){return n.functions[w]}),_=`
|
||
#ifdef GL_FRAGMENT_PRECISION_HIGH
|
||
precision highp float;
|
||
#else
|
||
precision mediump float;
|
||
#endif
|
||
|
||
varying vec2 v_textureCoord;
|
||
varying vec2 v_mapCoord;
|
||
uniform vec4 `.concat(lr.RENDER_EXTENT,`;
|
||
uniform float `).concat(lr.TRANSITION_ALPHA,`;
|
||
uniform float `).concat(lr.TEXTURE_PIXEL_WIDTH,`;
|
||
uniform float `).concat(lr.TEXTURE_PIXEL_HEIGHT,`;
|
||
uniform float `).concat(lr.RESOLUTION,`;
|
||
uniform float `).concat(lr.ZOOM,`;
|
||
|
||
`).concat(v.join(`
|
||
`),`
|
||
|
||
`).concat(g.join(`
|
||
`),`
|
||
|
||
void main() {
|
||
if (
|
||
v_mapCoord[0] < `).concat(lr.RENDER_EXTENT,`[0] ||
|
||
v_mapCoord[1] < `).concat(lr.RENDER_EXTENT,`[1] ||
|
||
v_mapCoord[0] > `).concat(lr.RENDER_EXTENT,`[2] ||
|
||
v_mapCoord[1] > `).concat(lr.RENDER_EXTENT,`[3]
|
||
) {
|
||
discard;
|
||
}
|
||
|
||
vec4 color = texture2D(`).concat(lr.TILE_TEXTURE_ARRAY,`[0], v_textureCoord);
|
||
|
||
`).concat(i.join(`
|
||
`),`
|
||
|
||
if (color.a == 0.0) {
|
||
discard;
|
||
}
|
||
|
||
gl_FragColor = color;
|
||
gl_FragColor.rgb *= gl_FragColor.a;
|
||
gl_FragColor *= `).concat(lr.TRANSITION_ALPHA,`;
|
||
}`);return{vertexShader:t,fragmentShader:_,uniforms:c,paletteTextures:n.paletteTextures}}var Q8=function(r){Cit(e,r);function e(t){var n=this,i=t?Ce({},t):{},a=i.style||{};delete i.style;var o=i.cacheSize;return delete i.cacheSize,n=r.call(this,i)||this,n.sources_=i.sources,n.renderedSource_=null,n.renderedResolution_=NaN,n.style_=a,n.cacheSize_=o,n.styleVariables_=n.style_.variables||{},n.addChangeListener(Zr.SOURCE,n.handleSourceUpdate_),n}return e.prototype.getSources=function(t,n){var i=this.getSource();return this.sources_?typeof this.sources_=="function"?this.sources_(t,n):this.sources_:i?[i]:[]},e.prototype.getRenderSource=function(){return this.renderedSource_||this.getSource()},e.prototype.getSourceState=function(){var t=this.getRenderSource();return t?t.getState():Ao.UNDEFINED},e.prototype.handleSourceUpdate_=function(){this.getSource()&&this.setStyle(this.style_)},e.prototype.getSourceBandCount_=function(){var t=this.getSource();return t&&"bandCount"in t?t.bandCount:4},e.prototype.createRenderer=function(){var t=jN(this.style_,this.getSourceBandCount_());return new vit(this,{vertexShader:t.vertexShader,fragmentShader:t.fragmentShader,uniforms:t.uniforms,cacheSize:this.cacheSize_,paletteTextures:t.paletteTextures})},e.prototype.renderSources=function(t,n){for(var i=this.getRenderer(),a,o=0,s=n.length;o<s;++o)this.renderedSource_=n[o],i.prepareFrame(t)&&(a=i.renderFrame(t));return a},e.prototype.render=function(t,n){var i=this;this.rendered=!0;for(var a=t.viewState,o=this.getSources(t.extent,a.resolution),s=!0,A=function(f,p){var v=o[f],m=v.getState();if(m==Ao.LOADING){var g=function(){v.getState()==Ao.READY&&(v.removeEventListener("change",g),i.changed())};v.addEventListener("change",g)}s=s&&m==Ao.READY},l=0,u=o.length;l<u;++l)A(l);var c=this.renderSources(t,o);if(this.getRenderer().renderComplete&&s)return this.renderedResolution_=a.resolution,c;if(this.renderedResolution_>.5*a.resolution){var h=this.getSources(t.extent,this.renderedResolution_).filter(function(f){return!o.includes(f)});if(h.length>0)return this.renderSources(t,h)}return c},e.prototype.setStyle=function(t){this.styleVariables_=t.variables||{},this.style_=t;var n=jN(this.style_,this.getSourceBandCount_()),i=this.getRenderer();i.reset({vertexShader:n.vertexShader,fragmentShader:n.fragmentShader,uniforms:n.uniforms,paletteTextures:n.paletteTextures}),this.changed()},e.prototype.updateStyleVariables=function(t){Ce(this.styleVariables_,t),this.changed()},e}(g8);Q8.prototype.dispose;var Bit=Q8;const Tit={extends:np,name:"ol-webgl-tile-layer",setup(r){const e=Be("map"),t=Be("overviewMap",null),{properties:n}=Lr(r),i=qe(()=>new Bit(n)),a=()=>{t!=null?(t.value.getOverviewMap().addLayer(i.value),t.value.changed()):e.addLayer(i.value)},o=()=>{t!=null?(t.value.getOverviewMap().removeLayer(i.value),t.value.changed()):e.removeLayer(i.value)};return t!=null&&ye(t,()=>{o(),a()}),ur(()=>{a()}),pr(()=>{o()}),Ur("tileLayer",i),{tileLayer:i}},props:{preload:{type:Number,default:1}}};function bit(r,e,t,n,i,a){return Zn(),Yi("div",null,[Or(r.$slots,"default")])}var mS=me(Tit,[["render",bit]]),Sit=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),xit=function(r){Sit(e,r);function e(t){var n=t||{};return r.call(this,n)||this}return e}(tp),Iit=xit,Lit=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Fit=function(r){Lit(e,r);function e(t){var n=r.call(this,t)||this;return n.image_=null,n}return e.prototype.getImage=function(){return this.image_?this.image_.getImage():null},e.prototype.prepareFrame=function(t){var n=t.layerStatesArray[t.layerIndex],i=t.pixelRatio,a=t.viewState,o=a.resolution,s=this.getLayer().getSource(),A=t.viewHints,l=t.extent;if(n.extent!==void 0&&(l=Ps(l,cs(n.extent,a.projection))),!A[Sn.ANIMATING]&&!A[Sn.INTERACTING]&&!xv(l))if(s){var u=a.projection,c=s.getImage(l,o,i,u);c&&(this.loadImage(c)?this.image_=c:c.getState()===er.EMPTY&&(this.image_=null))}else this.image_=null;return!!this.image_},e.prototype.getData=function(t){var n=this.frameState;if(!n)return null;var i=this.getLayer(),a=Bn(n.pixelToCoordinateTransform,t.slice()),o=i.getExtent();if(o&&!fA(o,a))return null;var s=this.image_.getExtent(),A=this.image_.getImage(),l=Vr(s),u=Math.floor(A.width*((a[0]-s[0])/l));if(u<0||u>=A.width)return null;var c=Si(s),h=Math.floor(A.height*((s[3]-a[1])/c));return h<0||h>=A.height?null:this.getImageData(A,u,h)},e.prototype.renderFrame=function(t,n){var i=this.image_,a=i.getExtent(),o=i.getResolution(),s=i.getPixelRatio(),A=t.layerStatesArray[t.layerIndex],l=t.pixelRatio,u=t.viewState,c=u.center,h=u.resolution,f=t.size,p=l*o/(h*s),v=Math.round(f[0]*l),m=Math.round(f[1]*l),g=u.rotation;if(g){var _=Math.round(Math.sqrt(v*v+m*m));v=_,m=_}vo(this.pixelTransform,t.size[0]/2,t.size[1]/2,1/l,1/l,g,-v/2,-m/2),My(this.inversePixelTransform,this.pixelTransform);var w=kL(this.pixelTransform);this.useContainer(n,w,A.opacity,this.getBackground(t));var C=this.context,F=C.canvas;F.width!=v||F.height!=m?(F.width=v,F.height=m):this.containerReused||C.clearRect(0,0,v,m);var O=!1,I=!0;if(A.extent){var b=cs(A.extent,u.projection);I=Wn(b,t.extent),O=I&&!us(b,t.extent),O&&this.clipUnrotated(C,t,b)}var L=i.getImage(),N=vo(this.tempTransform,v/2,m/2,p,p,0,s*(a[0]-c[0])/o,s*(c[1]-a[3])/o);this.renderedResolution=o*l/s;var x=L.width*N[0],S=L.height*N[3];if(this.getLayer().getSource().getInterpolate()||Ce(C,lv),this.preRender(C,t),I&&x>=.5&&S>=.5){var P=N[4],U=N[5],tt=A.opacity,q=void 0;tt!==1&&(q=C.globalAlpha,C.globalAlpha=tt),C.drawImage(L,0,0,+L.width,+L.height,Math.round(P),Math.round(U),Math.round(x),Math.round(S)),tt!==1&&(C.globalAlpha=q)}return this.postRender(C,t),O&&C.restore(),Ce(C,_8),w!==F.style.transform&&(F.style.transform=w),this.container},e}(EF),Oit=Fit,Rit=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Mit=function(r){Rit(e,r);function e(t){return r.call(this,t)||this}return e.prototype.createRenderer=function(){return new Oit(this)},e.prototype.getData=function(t){return r.prototype.getData.call(this,t)},e}(Iit),k8=Mit;const Nit={extends:np,name:"ol-image-layer",setup(r){const e=Be("map"),{properties:t}=Lr(r),n=new k8(t);return ye(t,()=>{n.setProperties(t)}),ur(()=>{e.addLayer(n)}),pr(()=>{e.removeLayer(n)}),Ur("imageLayer",n),{imageLayer:n}}};function Pit(r,e,t,n,i,a){return Zn(),Yi("div",null,[Or(r.$slots,"default")])}var yS=me(Nit,[["render",Pit]]);const Uit={extends:np,name:"ol-vector-layer",setup(r){const e=Be("map"),{properties:t}=Lr(r),n=qe(()=>new dl(t));return ye(t,()=>{n.value.setProperties(t)}),ur(()=>{e.addLayer(n.value)}),pr(()=>{e.removeLayer(n.value)}),Ur("vectorLayer",n),Ur("stylable",n),{vectorLayer:n}},props:{renderBuffer:{type:Number,default:100},updateWhileAnimating:{type:Boolean,default:!1},style:{type:Function},updateWhileInteracting:{type:Boolean,default:!1}}};function Dit(r,e,t,n,i,a){return Zn(),Yi("div",null,[Or(r.$slots,"default")])}var _S=me(Uit,[["render",Dit]]),Qit=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),kit=function(r){Qit(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.expireCache=function(t){for(;this.canExpireCache();){var n=this.peekLast();if(n.getKey()in t)break;this.pop().release()}},e.prototype.pruneExceptNewestZ=function(){if(this.getCount()!==0){var t=this.peekFirstKey(),n=lit(t),i=n[0];this.forEach(function(a){a.tileCoord[0]!==i&&(this.remove(fy(a.tileCoord)),a.release())}.bind(this))}},e}(B8),H8=kit,zB={TILELOADSTART:"tileloadstart",TILELOADEND:"tileloadend",TILELOADERROR:"tileloaderror"},Hit=[0,0,0],ac=5,Git=function(){function r(e){this.minZoom=e.minZoom!==void 0?e.minZoom:0,this.resolutions_=e.resolutions,Le(aY(this.resolutions_,function(o,s){return s-o},!0),17);var t;if(!e.origins){for(var n=0,i=this.resolutions_.length-1;n<i;++n)if(!t)t=this.resolutions_[n]/this.resolutions_[n+1];else if(this.resolutions_[n]/this.resolutions_[n+1]!==t){t=void 0;break}}this.zoomFactor_=t,this.maxZoom=this.resolutions_.length-1,this.origin_=e.origin!==void 0?e.origin:null,this.origins_=null,e.origins!==void 0&&(this.origins_=e.origins,Le(this.origins_.length==this.resolutions_.length,20));var a=e.extent;a!==void 0&&!this.origin_&&!this.origins_&&(this.origin_=_A(a)),Le(!this.origin_&&this.origins_||this.origin_&&!this.origins_,18),this.tileSizes_=null,e.tileSizes!==void 0&&(this.tileSizes_=e.tileSizes,Le(this.tileSizes_.length==this.resolutions_.length,19)),this.tileSize_=e.tileSize!==void 0?e.tileSize:this.tileSizes_?null:qL,Le(!this.tileSize_&&this.tileSizes_||this.tileSize_&&!this.tileSizes_,22),this.extent_=a!==void 0?a:null,this.fullTileRanges_=null,this.tmpSize_=[0,0],this.tmpExtent_=[0,0,0,0],e.sizes!==void 0?this.fullTileRanges_=e.sizes.map(function(o,s){var A=new MF(Math.min(0,o[0]),Math.max(o[0]-1,-1),Math.min(0,o[1]),Math.max(o[1]-1,-1));if(a){var l=this.getTileRangeForExtentAndZ(a,s);A.minX=Math.max(l.minX,A.minX),A.maxX=Math.min(l.maxX,A.maxX),A.minY=Math.max(l.minY,A.minY),A.maxY=Math.min(l.maxY,A.maxY)}return A},this):a&&this.calculateTileRanges_(a)}return r.prototype.forEachTileCoord=function(e,t,n){for(var i=this.getTileRangeForExtentAndZ(e,t),a=i.minX,o=i.maxX;a<=o;++a)for(var s=i.minY,A=i.maxY;s<=A;++s)n([t,a,s])},r.prototype.forEachTileCoordParentTileRange=function(e,t,n,i){var a,o,s,A=null,l=e[0]-1;for(this.zoomFactor_===2?(o=e[1],s=e[2]):A=this.getTileCoordExtent(e,i);l>=this.minZoom;){if(this.zoomFactor_===2?(o=Math.floor(o/2),s=Math.floor(s/2),a=Wp(o,o,s,s,n)):a=this.getTileRangeForExtentAndZ(A,l,n),t(l,a))return!0;--l}return!1},r.prototype.getExtent=function(){return this.extent_},r.prototype.getMaxZoom=function(){return this.maxZoom},r.prototype.getMinZoom=function(){return this.minZoom},r.prototype.getOrigin=function(e){return this.origin_?this.origin_:this.origins_[e]},r.prototype.getResolution=function(e){return this.resolutions_[e]},r.prototype.getResolutions=function(){return this.resolutions_},r.prototype.getTileCoordChildTileRange=function(e,t,n){if(e[0]<this.maxZoom){if(this.zoomFactor_===2){var i=e[1]*2,a=e[2]*2;return Wp(i,i+1,a,a+1,t)}var o=this.getTileCoordExtent(e,n||this.tmpExtent_);return this.getTileRangeForExtentAndZ(o,e[0]+1,t)}return null},r.prototype.getTileRangeForTileCoordAndZ=function(e,t,n){if(t>this.maxZoom||t<this.minZoom)return null;var i=e[0],a=e[1],o=e[2];if(t===i)return Wp(a,o,a,o,n);if(this.zoomFactor_){var s=Math.pow(this.zoomFactor_,t-i),A=Math.floor(a*s),l=Math.floor(o*s);if(t<i)return Wp(A,A,l,l,n);var u=Math.floor(s*(a+1))-1,c=Math.floor(s*(o+1))-1;return Wp(A,u,l,c,n)}var h=this.getTileCoordExtent(e,this.tmpExtent_);return this.getTileRangeForExtentAndZ(h,t,n)},r.prototype.getTileRangeExtent=function(e,t,n){var i=this.getOrigin(e),a=this.getResolution(e),o=ji(this.getTileSize(e),this.tmpSize_),s=i[0]+t.minX*o[0]*a,A=i[0]+(t.maxX+1)*o[0]*a,l=i[1]+t.minY*o[1]*a,u=i[1]+(t.maxY+1)*o[1]*a;return Uo(s,l,A,u,n)},r.prototype.getTileRangeForExtentAndZ=function(e,t,n){var i=Hit;this.getTileCoordForXYAndZ_(e[0],e[3],t,!1,i);var a=i[1],o=i[2];return this.getTileCoordForXYAndZ_(e[2],e[1],t,!0,i),Wp(a,i[1],o,i[2],n)},r.prototype.getTileCoordCenter=function(e){var t=this.getOrigin(e[0]),n=this.getResolution(e[0]),i=ji(this.getTileSize(e[0]),this.tmpSize_);return[t[0]+(e[1]+.5)*i[0]*n,t[1]-(e[2]+.5)*i[1]*n]},r.prototype.getTileCoordExtent=function(e,t){var n=this.getOrigin(e[0]),i=this.getResolution(e[0]),a=ji(this.getTileSize(e[0]),this.tmpSize_),o=n[0]+e[1]*a[0]*i,s=n[1]-(e[2]+1)*a[1]*i,A=o+a[0]*i,l=s+a[1]*i;return Uo(o,s,A,l,t)},r.prototype.getTileCoordForCoordAndResolution=function(e,t,n){return this.getTileCoordForXYAndResolution_(e[0],e[1],t,!1,n)},r.prototype.getTileCoordForXYAndResolution_=function(e,t,n,i,a){var o=this.getZForResolution(n),s=n/this.getResolution(o),A=this.getOrigin(o),l=ji(this.getTileSize(o),this.tmpSize_),u=s*(e-A[0])/n/l[0],c=s*(A[1]-t)/n/l[1];return i?(u=_c(u,ac)-1,c=_c(c,ac)-1):(u=Bd(u,ac),c=Bd(c,ac)),hy(o,u,c,a)},r.prototype.getTileCoordForXYAndZ_=function(e,t,n,i,a){var o=this.getOrigin(n),s=this.getResolution(n),A=ji(this.getTileSize(n),this.tmpSize_),l=(e-o[0])/s/A[0],u=(o[1]-t)/s/A[1];return i?(l=_c(l,ac)-1,u=_c(u,ac)-1):(l=Bd(l,ac),u=Bd(u,ac)),hy(n,l,u,a)},r.prototype.getTileCoordForCoordAndZ=function(e,t,n){return this.getTileCoordForXYAndZ_(e[0],e[1],t,!1,n)},r.prototype.getTileCoordResolution=function(e){return this.resolutions_[e[0]]},r.prototype.getTileSize=function(e){return this.tileSize_?this.tileSize_:this.tileSizes_[e]},r.prototype.getFullTileRange=function(e){return this.fullTileRanges_?this.fullTileRanges_[e]:this.extent_?this.getTileRangeForExtentAndZ(this.extent_,e):null},r.prototype.getZForResolution=function(e,t){var n=_E(this.resolutions_,e,t||0);return Nn(n,this.minZoom,this.maxZoom)},r.prototype.calculateTileRanges_=function(e){for(var t=this.resolutions_.length,n=new Array(t),i=this.minZoom;i<t;++i)n[i]=this.getTileRangeForExtentAndZ(e,i);this.fullTileRanges_=n},r}(),kF=Git;function G8(r){var e=r.getDefaultTileGrid();return e||(e=jit(r),r.setDefaultTileGrid(e)),e}function $it(r,e,t){var n=e[0],i=r.getTileCoordCenter(e),a=jE(t);if(fA(a,i))return e;var o=Vr(a),s=Math.ceil((a[0]-i[0])/o);return i[0]+=o*s,r.getTileCoordForCoordAndZ(i,n)}function Vit(r,e,t,n){var i=n!==void 0?n:Zg.TOP_LEFT,a=V8(r,e,t);return new kF({extent:r,origin:I6(r,i),resolutions:a,tileSize:t})}function $8(r){var e=r||{},t=e.extent||Ve("EPSG:3857").getExtent(),n={extent:t,minZoom:e.minZoom,tileSize:e.tileSize,resolutions:V8(t,e.maxZoom,e.tileSize,e.maxResolution)};return new kF(n)}function V8(r,e,t,n){for(var i=e!==void 0?e:SW,a=Si(r),o=Vr(r),s=ji(t!==void 0?t:qL),A=n>0?n:Math.max(o/s[0],a/s[1]),l=i+1,u=new Array(l),c=0;c<l;++c)u[c]=A/Math.pow(2,c);return u}function jit(r,e,t,n){var i=jE(r);return Vit(i,e,t,n)}function jE(r){r=Ve(r);var e=r.getExtent();if(!e){var t=180*pA[lo.DEGREES]/r.getMetersPerUnit();e=Uo(-t,-t,t,t)}return e}var j8=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Kit=function(r){j8(e,r);function e(t){var n=r.call(this,{attributions:t.attributions,attributionsCollapsible:t.attributionsCollapsible,projection:t.projection,state:t.state,wrapX:t.wrapX,interpolate:t.interpolate})||this;n.on,n.once,n.un,n.opaque_=t.opaque!==void 0?t.opaque:!1,n.tilePixelRatio_=t.tilePixelRatio!==void 0?t.tilePixelRatio:1,n.tileGrid=t.tileGrid!==void 0?t.tileGrid:null;var i=[256,256];return n.tileGrid&&ji(n.tileGrid.getTileSize(n.tileGrid.getMinZoom()),i),n.tileCache=new H8(t.cacheSize||0),n.tmpSize=[0,0],n.key_=t.key||"",n.tileOptions={transition:t.transition,interpolate:t.interpolate},n.zDirection=t.zDirection?t.zDirection:0,n}return e.prototype.canExpireCache=function(){return this.tileCache.canExpireCache()},e.prototype.expireCache=function(t,n){var i=this.getTileCacheForProjection(t);i&&i.expireCache(n)},e.prototype.forEachLoadedTile=function(t,n,i,a){var o=this.getTileCacheForProjection(t);if(!o)return!1;for(var s=!0,A,l,u,c=i.minX;c<=i.maxX;++c)for(var h=i.minY;h<=i.maxY;++h)l=GE(n,c,h),u=!1,o.containsKey(l)&&(A=o.get(l),u=A.getState()===be.LOADED,u&&(u=a(A)!==!1)),u||(s=!1);return s},e.prototype.getGutterForProjection=function(t){return 0},e.prototype.getKey=function(){return this.key_},e.prototype.setKey=function(t){this.key_!==t&&(this.key_=t,this.changed())},e.prototype.getOpaque=function(t){return this.opaque_},e.prototype.getResolutions=function(){return this.tileGrid?this.tileGrid.getResolutions():null},e.prototype.getTile=function(t,n,i,a,o){return Re()},e.prototype.getTileGrid=function(){return this.tileGrid},e.prototype.getTileGridForProjection=function(t){return this.tileGrid?this.tileGrid:G8(t)},e.prototype.getTileCacheForProjection=function(t){return Le(XA(this.getProjection(),t),68),this.tileCache},e.prototype.getTilePixelRatio=function(t){return this.tilePixelRatio_},e.prototype.getTilePixelSize=function(t,n,i){var a=this.getTileGridForProjection(i),o=this.getTilePixelRatio(n),s=ji(a.getTileSize(t),this.tmpSize);return o==1?s:h4(s,o,this.tmpSize)},e.prototype.getTileCoordForTileUrlFunction=function(t,n){var i=n!==void 0?n:this.getProjection(),a=this.getTileGridForProjection(i);return this.getWrapX()&&i.isGlobal()&&(t=$it(a,t,i)),uit(t,a)?t:null},e.prototype.clear=function(){this.tileCache.clear()},e.prototype.refresh=function(){this.clear(),r.prototype.refresh.call(this)},e.prototype.updateCacheSize=function(t,n){var i=this.getTileCacheForProjection(n);t>i.highWaterMark&&(i.highWaterMark=t)},e.prototype.useTile=function(t,n,i,a){},e}(NE),Yit=function(r){j8(e,r);function e(t,n){var i=r.call(this,t)||this;return i.tile=n,i}return e}(ko),K8=Kit;function Wit(r,e){var t=/\{z\}/g,n=/\{x\}/g,i=/\{y\}/g,a=/\{-y\}/g;return function(o,s,A){if(o)return r.replace(t,o[0].toString()).replace(n,o[1].toString()).replace(i,o[2].toString()).replace(a,function(){var l=o[0],u=e.getFullTileRange(l);Le(u,55);var c=u.getHeight()-o[2]-1;return c.toString()})}}function zit(r,e){for(var t=r.length,n=new Array(t),i=0;i<t;++i)n[i]=Wit(r[i],e);return dw(n)}function dw(r){return r.length===1?r[0]:function(e,t,n){if(e){var i=F8(e),a=Rc(i,r.length);return r[a](e,t,n)}else return}}function Y8(r){var e=[],t=/\{([a-z])-([a-z])\}/.exec(r);if(t){var n=t[1].charCodeAt(0),i=t[2].charCodeAt(0),a=void 0;for(a=n;a<=i;++a)e.push(r.replace(t[0],String.fromCharCode(a)));return e}if(t=/\{(\d+)-(\d+)\}/.exec(r),t){for(var o=parseInt(t[2],10),s=parseInt(t[1],10);s<=o;s++)e.push(r.replace(t[0],s.toString()));return e}return e.push(r),e}var Xit=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),qit=function(r){Xit(e,r);function e(t){var n=r.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,opaque:t.opaque,projection:t.projection,state:t.state,tileGrid:t.tileGrid,tilePixelRatio:t.tilePixelRatio,wrapX:t.wrapX,transition:t.transition,interpolate:t.interpolate,key:t.key,attributionsCollapsible:t.attributionsCollapsible,zDirection:t.zDirection})||this;return n.generateTileUrlFunction_=n.tileUrlFunction===e.prototype.tileUrlFunction,n.tileLoadFunction=t.tileLoadFunction,t.tileUrlFunction&&(n.tileUrlFunction=t.tileUrlFunction),n.urls=null,t.urls?n.setUrls(t.urls):t.url&&n.setUrl(t.url),n.tileLoadingKeys_={},n}return e.prototype.getTileLoadFunction=function(){return this.tileLoadFunction},e.prototype.getTileUrlFunction=function(){return Object.getPrototypeOf(this).tileUrlFunction===this.tileUrlFunction?this.tileUrlFunction.bind(this):this.tileUrlFunction},e.prototype.getUrls=function(){return this.urls},e.prototype.handleTileChange=function(t){var n=t.target,i=Ee(n),a=n.getState(),o;a==be.LOADING?(this.tileLoadingKeys_[i]=!0,o=zB.TILELOADSTART):i in this.tileLoadingKeys_&&(delete this.tileLoadingKeys_[i],o=a==be.ERROR?zB.TILELOADERROR:a==be.LOADED?zB.TILELOADEND:void 0),o!=null&&this.dispatchEvent(new Yit(o,n))},e.prototype.setTileLoadFunction=function(t){this.tileCache.clear(),this.tileLoadFunction=t,this.changed()},e.prototype.setTileUrlFunction=function(t,n){this.tileUrlFunction=t,this.tileCache.pruneExceptNewestZ(),typeof n<"u"?this.setKey(n):this.changed()},e.prototype.setUrl=function(t){var n=Y8(t);this.urls=n,this.setUrls(n)},e.prototype.setUrls=function(t){this.urls=t;var n=t.join(`
|
||
`);this.generateTileUrlFunction_?this.setTileUrlFunction(zit(t,this.tileGrid),n):this.setKey(n)},e.prototype.tileUrlFunction=function(t,n,i){},e.prototype.useTile=function(t,n,i){var a=GE(t,n,i);this.tileCache.containsKey(a)&&this.tileCache.get(a)},e}(K8),Zit=qit,Jit=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),tat=function(r){Jit(e,r);function e(t){var n=this,i=t.imageSmoothing!==void 0?t.imageSmoothing:!0;return t.interpolate!==void 0&&(i=t.interpolate),n=r.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,opaque:t.opaque,projection:t.projection,state:t.state,tileGrid:t.tileGrid,tileLoadFunction:t.tileLoadFunction?t.tileLoadFunction:eat,tilePixelRatio:t.tilePixelRatio,tileUrlFunction:t.tileUrlFunction,url:t.url,urls:t.urls,wrapX:t.wrapX,transition:t.transition,interpolate:i,key:t.key,attributionsCollapsible:t.attributionsCollapsible,zDirection:t.zDirection})||this,n.crossOrigin=t.crossOrigin!==void 0?t.crossOrigin:null,n.tileClass=t.tileClass!==void 0?t.tileClass:hw,n.tileCacheForProjection={},n.tileGridForProjection={},n.reprojectionErrorThreshold_=t.reprojectionErrorThreshold,n.renderReprojectionEdges_=!1,n}return e.prototype.canExpireCache=function(){if(this.tileCache.canExpireCache())return!0;for(var t in this.tileCacheForProjection)if(this.tileCacheForProjection[t].canExpireCache())return!0;return!1},e.prototype.expireCache=function(t,n){var i=this.getTileCacheForProjection(t);this.tileCache.expireCache(this.tileCache==i?n:{});for(var a in this.tileCacheForProjection){var o=this.tileCacheForProjection[a];o.expireCache(o==i?n:{})}},e.prototype.getGutterForProjection=function(t){return this.getProjection()&&t&&!XA(this.getProjection(),t)?0:this.getGutter()},e.prototype.getGutter=function(){return 0},e.prototype.getKey=function(){var t=r.prototype.getKey.call(this);return this.getInterpolate()||(t+=":disable-interpolation"),t},e.prototype.getOpaque=function(t){return this.getProjection()&&t&&!XA(this.getProjection(),t)?!1:r.prototype.getOpaque.call(this,t)},e.prototype.getTileGridForProjection=function(t){var n=this.getProjection();if(this.tileGrid&&(!n||XA(n,t)))return this.tileGrid;var i=Ee(t);return i in this.tileGridForProjection||(this.tileGridForProjection[i]=G8(t)),this.tileGridForProjection[i]},e.prototype.getTileCacheForProjection=function(t){var n=this.getProjection();if(!n||XA(n,t))return this.tileCache;var i=Ee(t);return i in this.tileCacheForProjection||(this.tileCacheForProjection[i]=new H8(this.tileCache.highWaterMark)),this.tileCacheForProjection[i]},e.prototype.createTile_=function(t,n,i,a,o,s){var A=[t,n,i],l=this.getTileCoordForTileUrlFunction(A,o),u=l?this.tileUrlFunction(l,a,o):void 0,c=new this.tileClass(A,u!==void 0?be.IDLE:be.EMPTY,u!==void 0?u:"",this.crossOrigin,this.tileLoadFunction,this.tileOptions);return c.key=s,c.addEventListener(xe.CHANGE,this.handleTileChange.bind(this)),c},e.prototype.getTile=function(t,n,i,a,o){var s=this.getProjection();if(!s||!o||XA(s,o))return this.getTileInternal(t,n,i,a,s||o);var A=this.getTileCacheForProjection(o),l=[t,n,i],u=void 0,c=fy(l);A.containsKey(c)&&(u=A.get(c));var h=this.getKey();if(u&&u.key==h)return u;var f=this.getTileGridForProjection(s),p=this.getTileGridForProjection(o),v=this.getTileCoordForTileUrlFunction(l,o),m=new RF(s,f,o,p,l,v,this.getTilePixelRatio(a),this.getGutter(),function(g,_,w,C){return this.getTileInternal(g,_,w,C,s)}.bind(this),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.getInterpolate());return m.key=h,u?(m.interimTile=u,m.refreshInterimChain(),A.replace(c,m)):A.set(c,m),m},e.prototype.getTileInternal=function(t,n,i,a,o){var s=null,A=GE(t,n,i),l=this.getKey();if(!this.tileCache.containsKey(A))s=this.createTile_(t,n,i,a,o,l),this.tileCache.set(A,s);else if(s=this.tileCache.get(A),s.key!=l){var u=s;s=this.createTile_(t,n,i,a,o,l),u.getState()==be.IDLE?s.interimTile=u.interimTile:s.interimTile=u,s.refreshInterimChain(),this.tileCache.replace(A,s)}return s},e.prototype.setRenderReprojectionEdges=function(t){if(this.renderReprojectionEdges_!=t){this.renderReprojectionEdges_=t;for(var n in this.tileCacheForProjection)this.tileCacheForProjection[n].clear();this.changed()}},e.prototype.setTileGridForProjection=function(t,n){{var i=Ve(t);if(i){var a=Ee(i);a in this.tileGridForProjection||(this.tileGridForProjection[a]=n)}}},e}(Zit);function eat(r,e){r.getImage().src=e}var KE=tat,W8=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();function rat(r,e,t,n){var i=document.createElement("script"),a="olc_"+Ee(e);function o(){delete window[a],i.parentNode.removeChild(i)}i.async=!0,i.src=r+(r.indexOf("?")==-1?"?":"&")+(n||"callback")+"="+a;var s=setTimeout(function(){o(),t&&t()},1e4);window[a]=function(A){clearTimeout(s),o(),e(A)},document.getElementsByTagName("head")[0].appendChild(i)}(function(r){W8(e,r);function e(t){var n=this,i="Unexpected response status: "+t.status;return n=r.call(this,i)||this,n.name="ResponseError",n.response=t,n}return e})(Error);(function(r){W8(e,r);function e(t){var n=r.call(this,"Failed to issue request")||this;return n.name="ClientError",n.client=t,n}return e})(Error);var nat=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();function iat(r){var e=r[0],t=new Array(e),n=1<<e-1,i,a;for(i=0;i<e;++i)a=48,r[1]&n&&(a+=1),r[2]&n&&(a+=2),t[i]=String.fromCharCode(a),n>>=1;return t.join("")}var aat='<a class="ol-attribution-bing-tos" href="https://www.microsoft.com/maps/product/terms.html" target="_blank">Terms of Use</a>',oat=function(r){nat(e,r);function e(t){var n=this,i=t.hidpi!==void 0?t.hidpi:!1,a=t.imageSmoothing!==void 0?t.imageSmoothing:!0;t.interpolate!==void 0&&(a=t.interpolate),n=r.call(this,{cacheSize:t.cacheSize,crossOrigin:"anonymous",interpolate:a,opaque:!0,projection:Ve("EPSG:3857"),reprojectionErrorThreshold:t.reprojectionErrorThreshold,state:Ao.LOADING,tileLoadFunction:t.tileLoadFunction,tilePixelRatio:i?2:1,wrapX:t.wrapX!==void 0?t.wrapX:!0,transition:t.transition,zDirection:t.zDirection})||this,n.hidpi_=i,n.culture_=t.culture!==void 0?t.culture:"en-us",n.maxZoom_=t.maxZoom!==void 0?t.maxZoom:-1,n.apiKey_=t.key,n.imagerySet_=t.imagerySet;var o="https://dev.virtualearth.net/REST/v1/Imagery/Metadata/"+n.imagerySet_+"?uriScheme=https&include=ImageryProviders&key="+n.apiKey_+"&c="+n.culture_;return rat(o,n.handleImageryMetadataResponse.bind(n),void 0,"jsonp"),n}return e.prototype.getApiKey=function(){return this.apiKey_},e.prototype.getImagerySet=function(){return this.imagerySet_},e.prototype.handleImageryMetadataResponse=function(t){if(t.statusCode!=200||t.statusDescription!="OK"||t.authenticationResultCode!="ValidCredentials"||t.resourceSets.length!=1||t.resourceSets[0].resources.length!=1){this.setState(Ao.ERROR);return}var n=t.resourceSets[0].resources[0],i=this.maxZoom_==-1?n.zoomMax:this.maxZoom_,a=this.getProjection(),o=jE(a),s=this.hidpi_?2:1,A=n.imageWidth==n.imageHeight?n.imageWidth/s:[n.imageWidth/s,n.imageHeight/s],l=$8({extent:o,minZoom:n.zoomMin,maxZoom:i,tileSize:A});this.tileGrid=l;var u=this.culture_,c=this.hidpi_;if(this.tileUrlFunction=dw(n.imageUrlSubdomains.map(function(f){var p=[0,0,0],v=n.imageUrl.replace("{subdomain}",f).replace("{culture}",u);return function(m,g,_){if(m){hy(m[0],m[1],m[2],p);var w=v;return c&&(w+="&dpi=d1&device=mobile"),w.replace("{quadkey}",iat(p))}else return}})),n.imageryProviders){var h=Df(Ve("EPSG:4326"),this.getProjection());this.setAttributions(function(f){var p=[],v=f.viewState,m=this.getTileGrid(),g=m.getZForResolution(v.resolution,this.zDirection),_=m.getTileCoordForCoordAndZ(v.center,g),w=_[0];return n.imageryProviders.map(function(C){for(var F=!1,O=C.coverageAreas,I=0,b=O.length;I<b;++I){var L=O[I];if(w>=L.zoomMin&&w<=L.zoomMax){var N=L.bbox,x=[N[1],N[0],N[3],N[2]],S=VL(x,h);if(Wn(S,f.extent)){F=!0;break}}}F&&p.push(C.attribution)}),p.push(aat),p}.bind(this))}this.setState(Ao.READY)},e}(KE),sat=oat,Aat=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),lat=function(r){Aat(e,r);function e(t){var n=t||{},i=n.imageSmoothing!==void 0?n.imageSmoothing:!0;n.interpolate!==void 0&&(i=n.interpolate);var a=n.projection!==void 0?n.projection:"EPSG:3857",o=n.tileGrid!==void 0?n.tileGrid:$8({extent:jE(a),maxResolution:n.maxResolution,maxZoom:n.maxZoom,minZoom:n.minZoom,tileSize:n.tileSize});return r.call(this,{attributions:n.attributions,cacheSize:n.cacheSize,crossOrigin:n.crossOrigin,interpolate:i,opaque:n.opaque,projection:a,reprojectionErrorThreshold:n.reprojectionErrorThreshold,tileGrid:o,tileLoadFunction:n.tileLoadFunction,tilePixelRatio:n.tilePixelRatio,tileUrlFunction:n.tileUrlFunction,url:n.url,urls:n.urls,wrapX:n.wrapX!==void 0?n.wrapX:!0,transition:n.transition,attributionsCollapsible:n.attributionsCollapsible,zDirection:n.zDirection})||this}return e}(KE),z8=lat,uat=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),cat=function(r){uat(e,r);function e(t){var n=r.call(this,{attributions:t.attributions,wrapX:t.wrapX})||this;return n.resolution=void 0,n.distance=t.distance!==void 0?t.distance:20,n.minDistance=t.minDistance||0,n.interpolationRatio=0,n.features=[],n.geometryFunction=t.geometryFunction||function(i){var a=i.getGeometry();return Le(a.getType()==dt.POINT,10),a},n.createCustomCluster_=t.createCluster,n.source=null,n.boundRefresh_=n.refresh.bind(n),n.updateDistance(n.distance,n.minDistance),n.setSource(t.source||null),n}return e.prototype.clear=function(t){this.features.length=0,r.prototype.clear.call(this,t)},e.prototype.getDistance=function(){return this.distance},e.prototype.getSource=function(){return this.source},e.prototype.loadFeatures=function(t,n,i){this.source.loadFeatures(t,n,i),n!==this.resolution&&(this.resolution=n,this.refresh())},e.prototype.setDistance=function(t){this.updateDistance(t,this.minDistance)},e.prototype.setMinDistance=function(t){this.updateDistance(this.distance,t)},e.prototype.getMinDistance=function(){return this.minDistance},e.prototype.setSource=function(t){this.source&&this.source.removeEventListener(xe.CHANGE,this.boundRefresh_),this.source=t,t&&t.addEventListener(xe.CHANGE,this.boundRefresh_),this.refresh()},e.prototype.refresh=function(){this.clear(),this.cluster(),this.addFeatures(this.features)},e.prototype.updateDistance=function(t,n){var i=t===0?0:Math.min(n,t)/t,a=t!==this.distance||this.interpolationRatio!==i;this.distance=t,this.minDistance=n,this.interpolationRatio=i,a&&this.refresh()},e.prototype.cluster=function(){if(!(this.resolution===void 0||!this.source))for(var t=Ni(),n=this.distance*this.resolution,i=this.source.getFeatures(),a={},o=0,s=i.length;o<s;o++){var A=i[o];if(!(Ee(A)in a)){var l=this.geometryFunction(A);if(l){var u=l.getCoordinates();mf(u,t),go(t,n,t);var c=this.source.getFeaturesInExtent(t).filter(function(h){var f=Ee(h);return f in a?!1:(a[f]=!0,!0)});this.features.push(this.createCluster(c,t))}}}},e.prototype.createCluster=function(t,n){for(var i=[0,0],a=t.length-1;a>=0;--a){var o=this.geometryFunction(t[a]);o?G6(i,o.getCoordinates()):t.splice(a,1)}$6(i,1/t.length);var s=Ya(n),A=this.interpolationRatio,l=new Sr([i[0]*(1-A)+s[0]*A,i[1]*(1-A)+s[1]*A]);return this.createCustomCluster_?this.createCustomCluster_(l,t):new yr({geometry:l,features:t})},e}(Tu),X8=cat,ZA=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function hat(r){if(r.__esModule)return r;var e=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(r).forEach(function(t){var n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:function(){return r[t]}})}),e}var Ga=globalThis&&globalThis.__spreadArray||function(r,e,t){if(t||arguments.length===2)for(var n=0,i=e.length,a;n<i;n++)(a||!(n in e))&&(a||(a=Array.prototype.slice.call(e,0,n)),a[n]=e[n]);return r.concat(a||Array.prototype.slice.call(e))},oo={VERSION1:"version1",VERSION2:"version2",VERSION3:"version3"},Gf={};Gf[oo.VERSION1]={level0:{supports:[],formats:[],qualities:["native"]},level1:{supports:["regionByPx","sizeByW","sizeByH","sizeByPct"],formats:["jpg"],qualities:["native"]},level2:{supports:["regionByPx","regionByPct","sizeByW","sizeByH","sizeByPct","sizeByConfinedWh","sizeByWh"],formats:["jpg","png"],qualities:["native","color","grey","bitonal"]}};Gf[oo.VERSION2]={level0:{supports:[],formats:["jpg"],qualities:["default"]},level1:{supports:["regionByPx","sizeByW","sizeByH","sizeByPct"],formats:["jpg"],qualities:["default"]},level2:{supports:["regionByPx","regionByPct","sizeByW","sizeByH","sizeByPct","sizeByConfinedWh","sizeByDistortedWh","sizeByWh"],formats:["jpg","png"],qualities:["default","bitonal"]}};Gf[oo.VERSION3]={level0:{supports:[],formats:["jpg"],qualities:["default"]},level1:{supports:["regionByPx","regionSquare","sizeByW","sizeByH","sizeByWh"],formats:["jpg"],qualities:["default"]},level2:{supports:["regionByPx","regionSquare","regionByPct","sizeByW","sizeByH","sizeByPct","sizeByConfinedWh","sizeByWh"],formats:["jpg","png"],qualities:["default"]}};Gf.none={none:{supports:[],formats:[],qualities:[]}};var fat=/^https?:\/\/library\.stanford\.edu\/iiif\/image-api\/(?:1\.1\/)?compliance\.html#level[0-2]$/,KN=/^https?:\/\/iiif\.io\/api\/image\/2\/level[0-2](?:\.json)?$/,pat=/(^https?:\/\/iiif\.io\/api\/image\/3\/level[0-2](?:\.json)?$)|(^level[0-2]$)/;function dat(r){var e=r.getComplianceLevelSupportedFeatures();return e===void 0&&(e=Gf[oo.VERSION1].level0),{url:r.imageInfo["@id"]===void 0?void 0:r.imageInfo["@id"].replace(/\/?(?:info\.json)?$/g,""),supports:e.supports,formats:Ga(Ga([],e.formats,!0),[r.imageInfo.formats===void 0?[]:r.imageInfo.formats],!1),qualities:Ga(Ga([],e.qualities,!0),[r.imageInfo.qualities===void 0?[]:r.imageInfo.qualities],!1),resolutions:r.imageInfo.scale_factors,tileSize:r.imageInfo.tile_width!==void 0?r.imageInfo.tile_height!==void 0?[r.imageInfo.tile_width,r.imageInfo.tile_height]:[r.imageInfo.tile_width,r.imageInfo.tile_width]:r.imageInfo.tile_height!=null?[r.imageInfo.tile_height,r.imageInfo.tile_height]:void 0}}function vat(r){var e=r.getComplianceLevelSupportedFeatures(),t=Array.isArray(r.imageInfo.profile)&&r.imageInfo.profile.length>1,n=t&&r.imageInfo.profile[1].supports?r.imageInfo.profile[1].supports:[],i=t&&r.imageInfo.profile[1].formats?r.imageInfo.profile[1].formats:[],a=t&&r.imageInfo.profile[1].qualities?r.imageInfo.profile[1].qualities:[];return{url:r.imageInfo["@id"].replace(/\/?(?:info\.json)?$/g,""),sizes:r.imageInfo.sizes===void 0?void 0:r.imageInfo.sizes.map(function(o){return[o.width,o.height]}),tileSize:r.imageInfo.tiles===void 0?void 0:[r.imageInfo.tiles.map(function(o){return o.width})[0],r.imageInfo.tiles.map(function(o){return o.height===void 0?o.width:o.height})[0]],resolutions:r.imageInfo.tiles===void 0?void 0:r.imageInfo.tiles.map(function(o){return o.scaleFactors})[0],supports:Ga(Ga([],e.supports,!0),n,!0),formats:Ga(Ga([],e.formats,!0),i,!0),qualities:Ga(Ga([],e.qualities,!0),a,!0)}}function gat(r){var e=r.getComplianceLevelSupportedFeatures(),t=r.imageInfo.extraFormats===void 0?e.formats:Ga(Ga([],e.formats,!0),r.imageInfo.extraFormats,!0),n=r.imageInfo.preferredFormats!==void 0&&Array.isArray(r.imageInfo.preferredFormats)&&r.imageInfo.preferredFormats.length>0?r.imageInfo.preferredFormats.filter(function(i){return Ri(["jpg","png","gif"],i)}).reduce(function(i,a){return i===void 0&&Ri(t,a)?a:i},void 0):void 0;return{url:r.imageInfo.id,sizes:r.imageInfo.sizes===void 0?void 0:r.imageInfo.sizes.map(function(i){return[i.width,i.height]}),tileSize:r.imageInfo.tiles===void 0?void 0:[r.imageInfo.tiles.map(function(i){return i.width})[0],r.imageInfo.tiles.map(function(i){return i.height})[0]],resolutions:r.imageInfo.tiles===void 0?void 0:r.imageInfo.tiles.map(function(i){return i.scaleFactors})[0],supports:r.imageInfo.extraFeatures===void 0?e.supports:Ga(Ga([],e.supports,!0),r.imageInfo.extraFeatures,!0),formats:t,qualities:r.imageInfo.extraQualities===void 0?e.qualities:Ga(Ga([],e.qualities,!0),r.imageInfo.extraQualities,!0),preferredFormat:n}}var YE={};YE[oo.VERSION1]=dat;YE[oo.VERSION2]=vat;YE[oo.VERSION3]=gat;var mat=function(){function r(e){this.setImageInfo(e)}return r.prototype.setImageInfo=function(e){typeof e=="string"?this.imageInfo=JSON.parse(e):this.imageInfo=e},r.prototype.getImageApiVersion=function(){if(this.imageInfo!==void 0){var e=this.imageInfo["@context"]||"ol-no-context";typeof e=="string"&&(e=[e]);for(var t=0;t<e.length;t++)switch(e[t]){case"http://library.stanford.edu/iiif/image-api/1.1/context.json":case"http://iiif.io/api/image/1/context.json":return oo.VERSION1;case"http://iiif.io/api/image/2/context.json":return oo.VERSION2;case"http://iiif.io/api/image/3/context.json":return oo.VERSION3;case"ol-no-context":if(this.getComplianceLevelEntryFromProfile(oo.VERSION1)&&this.imageInfo.identifier)return oo.VERSION1;break}Le(!1,61)}},r.prototype.getComplianceLevelEntryFromProfile=function(e){if(!(this.imageInfo===void 0||this.imageInfo.profile===void 0))switch(e===void 0&&(e=this.getImageApiVersion()),e){case oo.VERSION1:if(fat.test(this.imageInfo.profile))return this.imageInfo.profile;break;case oo.VERSION3:if(pat.test(this.imageInfo.profile))return this.imageInfo.profile;break;case oo.VERSION2:if(typeof this.imageInfo.profile=="string"&&KN.test(this.imageInfo.profile))return this.imageInfo.profile;if(Array.isArray(this.imageInfo.profile)&&this.imageInfo.profile.length>0&&typeof this.imageInfo.profile[0]=="string"&&KN.test(this.imageInfo.profile[0]))return this.imageInfo.profile[0];break}},r.prototype.getComplianceLevelFromProfile=function(e){var t=this.getComplianceLevelEntryFromProfile(e);if(t!==void 0){var n=t.match(/level[0-2](?:\.json)?$/g);return Array.isArray(n)?n[0].replace(".json",""):void 0}},r.prototype.getComplianceLevelSupportedFeatures=function(){if(this.imageInfo!==void 0){var e=this.getImageApiVersion(),t=this.getComplianceLevelFromProfile(e);return t===void 0?Gf.none.none:Gf[e][t]}},r.prototype.getTileSourceOptions=function(e){var t=e||{},n=this.getImageApiVersion();if(n!==void 0){var i=n===void 0?void 0:YE[n](this);if(i!==void 0)return{url:i.url,version:n,size:[this.imageInfo.width,this.imageInfo.height],sizes:i.sizes,format:t.format!==void 0&&Ri(i.formats,t.format)?t.format:i.preferredFormat!==void 0?i.preferredFormat:"jpg",supports:i.supports,quality:t.quality&&Ri(i.qualities,t.quality)?t.quality:Ri(i.qualities,"native")?"native":"default",resolutions:Array.isArray(i.resolutions)?i.resolutions.sort(function(a,o){return o-a}):void 0,tileSize:i.tileSize}}},r}(),yat=mat,_at=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),wat=function(r){_at(e,r);function e(t,n,i,a,o,s,A){var l=this,u=t.getExtent(),c=n.getExtent(),h=c?Ps(i,c):i,f=Ya(h),p=uy(t,n,f,a),v=m8,m=new y8(t,n,h,u,p*v,a),g=m.calculateSourceExtent(),_=s(g,p,o),w=_?er.IDLE:er.EMPTY,C=_?_.getPixelRatio():1;return l=r.call(this,i,a,C,w)||this,l.targetProj_=n,l.maxSourceExtent_=u,l.triangulation_=m,l.targetResolution_=a,l.targetExtent_=i,l.sourceImage_=_,l.sourcePixelRatio_=C,l.interpolate_=A,l.canvas_=null,l.sourceListenerKey_=null,l}return e.prototype.disposeInternal=function(){this.state==er.LOADING&&this.unlistenSource_(),r.prototype.disposeInternal.call(this)},e.prototype.getImage=function(){return this.canvas_},e.prototype.getProjection=function(){return this.targetProj_},e.prototype.reproject_=function(){var t=this.sourceImage_.getState();if(t==er.LOADED){var n=Vr(this.targetExtent_)/this.targetResolution_,i=Si(this.targetExtent_)/this.targetResolution_;this.canvas_=w8(n,i,this.sourcePixelRatio_,this.sourceImage_.getResolution(),this.maxSourceExtent_,this.targetResolution_,this.targetExtent_,this.triangulation_,[{extent:this.sourceImage_.getExtent(),image:this.sourceImage_.getImage()}],0,void 0,this.interpolate_)}this.state=t,this.changed()},e.prototype.load=function(){if(this.state==er.IDLE){this.state=er.LOADING,this.changed();var t=this.sourceImage_.getState();t==er.LOADED||t==er.ERROR?this.reproject_():(this.sourceListenerKey_=je(this.sourceImage_,xe.CHANGE,function(n){var i=this.sourceImage_.getState();(i==er.LOADED||i==er.ERROR)&&(this.unlistenSource_(),this.reproject_())},this),this.sourceImage_.load())}},e.prototype.unlistenSource_=function(){Wr(this.sourceListenerKey_),this.sourceListenerKey_=null},e}(N4),Eat=wat,q8=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),XB={IMAGELOADSTART:"imageloadstart",IMAGELOADEND:"imageloadend",IMAGELOADERROR:"imageloaderror"},Cat=function(r){q8(e,r);function e(t,n){var i=r.call(this,t)||this;return i.image=n,i}return e}(ko),Bat=function(r){q8(e,r);function e(t){var n=this,i=t.imageSmoothing!==void 0?t.imageSmoothing:!0;return t.interpolate!==void 0&&(i=t.interpolate),n=r.call(this,{attributions:t.attributions,projection:t.projection,state:t.state,interpolate:i})||this,n.on,n.once,n.un,n.resolutions_=t.resolutions!==void 0?t.resolutions:null,n.reprojectedImage_=null,n.reprojectedRevision_=0,n}return e.prototype.getResolutions=function(){return this.resolutions_},e.prototype.findNearestResolution=function(t){if(this.resolutions_){var n=_E(this.resolutions_,t,0);t=this.resolutions_[n]}return t},e.prototype.getImage=function(t,n,i,a){var o=this.getProjection();if(!o||!a||XA(o,a))return o&&(a=o),this.getImageInternal(t,n,i,a);if(this.reprojectedImage_){if(this.reprojectedRevision_==this.getRevision()&&XA(this.reprojectedImage_.getProjection(),a)&&this.reprojectedImage_.getResolution()==n&&ul(this.reprojectedImage_.getExtent(),t))return this.reprojectedImage_;this.reprojectedImage_.dispose(),this.reprojectedImage_=null}return this.reprojectedImage_=new Eat(o,a,t,n,i,function(s,A,l){return this.getImageInternal(s,A,l,o)}.bind(this),this.getInterpolate()),this.reprojectedRevision_=this.getRevision(),this.reprojectedImage_},e.prototype.getImageInternal=function(t,n,i,a){return Re()},e.prototype.handleImageChange=function(t){var n=t.target,i;switch(n.getState()){case er.LOADING:this.loading=!0,i=XB.IMAGELOADSTART;break;case er.LOADED:this.loading=!1,i=XB.IMAGELOADEND;break;case er.ERROR:this.loading=!1,i=XB.IMAGELOADERROR;break;default:return}this.hasListener(i)&&this.dispatchEvent(new Cat(i,n))},e}(NE);function Z8(r,e){r.getImage().src=e}var J8=Bat;function uv(r,e){var t=[];Object.keys(e).forEach(function(i){e[i]!==null&&e[i]!==void 0&&t.push(i+"="+encodeURIComponent(e[i]))});var n=t.join("&");return r=r.replace(/[?&]$/,""),r=r.indexOf("?")===-1?r+"?":r+"&",r+n}var Tat=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),bat=function(r){Tat(e,r);function e(t){var n=this,i=t.crossOrigin!==void 0?t.crossOrigin:null,a=t.imageLoadFunction!==void 0?t.imageLoadFunction:Z8,o=t.imageSmoothing!==void 0?t.imageSmoothing:!0;return t.interpolate!==void 0&&(o=t.interpolate),n=r.call(this,{attributions:t.attributions,interpolate:o,projection:Ve(t.projection)})||this,n.url_=t.url,n.imageExtent_=t.imageExtent,n.image_=new P4(n.imageExtent_,void 0,1,n.url_,i,a),n.imageSize_=t.imageSize?t.imageSize:null,n.image_.addEventListener(xe.CHANGE,n.handleImageChange.bind(n)),n}return e.prototype.getImageExtent=function(){return this.imageExtent_},e.prototype.getImageInternal=function(t,n,i,a){return Wn(t,this.image_.getExtent())?this.image_:null},e.prototype.getUrl=function(){return this.url_},e.prototype.handleImageChange=function(t){if(this.image_.getState()==er.LOADED){var n=this.image_.getExtent(),i=this.image_.getImage(),a=void 0,o=void 0;this.imageSize_?(a=this.imageSize_[0],o=this.imageSize_[1]):(a=i.width,o=i.height);var s=Vr(n),A=Si(n),l=s/a,u=A/o,c=a,h=o;if(l>u?c=Math.round(s/u):h=Math.round(A/l),c!==a||h!==o){var f=mo(c,h);this.getInterpolate()||Ce(f,lv);var p=f.canvas;f.drawImage(i,0,0,a,o,0,0,p.width,p.height),this.image_.setImage(p)}}r.prototype.handleImageChange.call(this,t)},e}(J8),Sat=bat,Cc="1.3.0",Bc={CARMENTA_SERVER:"carmentaserver",GEOSERVER:"geoserver",MAPSERVER:"mapserver",QGIS:"qgis"},xat=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),oc=4,YN=[101,101],Iat=function(r){xat(e,r);function e(t){var n=this,i=t||{},a=i.imageSmoothing!==void 0?i.imageSmoothing:!0;return i.interpolate!==void 0&&(a=i.interpolate),n=r.call(this,{attributions:i.attributions,interpolate:a,projection:i.projection,resolutions:i.resolutions})||this,n.crossOrigin_=i.crossOrigin!==void 0?i.crossOrigin:null,n.url_=i.url,n.imageLoadFunction_=i.imageLoadFunction!==void 0?i.imageLoadFunction:Z8,n.params_=i.params||{},n.v13_=!0,n.updateV13_(),n.serverType_=i.serverType,n.hidpi_=i.hidpi!==void 0?i.hidpi:!0,n.image_=null,n.imageSize_=[0,0],n.renderedRevision_=0,n.ratio_=i.ratio!==void 0?i.ratio:1.5,n}return e.prototype.getFeatureInfoUrl=function(t,n,i,a){if(this.url_!==void 0){var o=Ve(i),s=this.getProjection();s&&s!==o&&(n=uy(s,o,t,n),t=Wc(t,o,s));var A=_f(t,n,0,YN),l={SERVICE:"WMS",VERSION:Cc,REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:this.params_.LAYERS};Ce(l,this.params_,a);var u=Bd((t[0]-A[0])/n,oc),c=Bd((A[3]-t[1])/n,oc);return l[this.v13_?"I":"X"]=u,l[this.v13_?"J":"Y"]=c,this.getRequestUrl_(A,YN,1,s||o,l)}},e.prototype.getLegendUrl=function(t,n){if(this.url_!==void 0){var i={SERVICE:"WMS",VERSION:Cc,REQUEST:"GetLegendGraphic",FORMAT:"image/png"};if(n===void 0||n.LAYER===void 0){var a=this.params_.LAYERS,o=!Array.isArray(a)||a.length===1;if(!o)return;i.LAYER=a}if(t!==void 0){var s=this.getProjection()?this.getProjection().getMetersPerUnit():1,A=28e-5;i.SCALE=t*s/A}return Ce(i,n),uv(this.url_,i)}},e.prototype.getParams=function(){return this.params_},e.prototype.getImageInternal=function(t,n,i,a){if(this.url_===void 0)return null;n=this.findNearestResolution(n),i!=1&&(!this.hidpi_||this.serverType_===void 0)&&(i=1);var o=n/i,s=Ya(t),A=_c(Vr(t)/o,oc),l=_c(Si(t)/o,oc),u=_f(s,o,0,[A,l]),c=_c(this.ratio_*Vr(t)/o,oc),h=_c(this.ratio_*Si(t)/o,oc),f=_f(s,o,0,[c,h]),p=this.image_;if(p&&this.renderedRevision_==this.getRevision()&&p.getResolution()==n&&p.getPixelRatio()==i&&us(p.getExtent(),u))return p;var v={SERVICE:"WMS",VERSION:Cc,REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0};Ce(v,this.params_),this.imageSize_[0]=OM(Vr(f)/o,oc),this.imageSize_[1]=OM(Si(f)/o,oc);var m=this.getRequestUrl_(f,this.imageSize_,i,a,v);return this.image_=new P4(f,n,i,m,this.crossOrigin_,this.imageLoadFunction_),this.renderedRevision_=this.getRevision(),this.image_.addEventListener(xe.CHANGE,this.handleImageChange.bind(this)),this.image_},e.prototype.getImageLoadFunction=function(){return this.imageLoadFunction_},e.prototype.getRequestUrl_=function(t,n,i,a,o){if(Le(this.url_!==void 0,9),o[this.v13_?"CRS":"SRS"]=a.getCode(),"STYLES"in this.params_||(o.STYLES=""),i!=1)switch(this.serverType_){case Bc.GEOSERVER:var s=90*i+.5|0;"FORMAT_OPTIONS"in o?o.FORMAT_OPTIONS+=";dpi:"+s:o.FORMAT_OPTIONS="dpi:"+s;break;case Bc.MAPSERVER:o.MAP_RESOLUTION=90*i;break;case Bc.CARMENTA_SERVER:case Bc.QGIS:o.DPI=90*i;break;default:Le(!1,8);break}o.WIDTH=n[0],o.HEIGHT=n[1];var A=a.getAxisOrientation(),l;return this.v13_&&A.substr(0,2)=="ne"?l=[t[1],t[0],t[3],t[2]]:l=t,o.BBOX=l.join(","),uv(this.url_,o)},e.prototype.getUrl=function(){return this.url_},e.prototype.setImageLoadFunction=function(t){this.image_=null,this.imageLoadFunction_=t,this.changed()},e.prototype.setUrl=function(t){t!=this.url_&&(this.url_=t,this.image_=null,this.changed())},e.prototype.updateParams=function(t){Ce(this.params_,t),this.updateV13_(),this.image_=null,this.changed()},e.prototype.updateV13_=function(){var t=this.params_.VERSION||Cc;this.v13_=H6(t,"1.3")>=0},e}(J8),Lat=Iat,Fat=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Oat='© <a href="https://www.openstreetmap.org/copyright" target="_blank">OpenStreetMap</a> contributors.',Rat=function(r){Fat(e,r);function e(t){var n=t||{},i=n.imageSmoothing!==void 0?n.imageSmoothing:!0;n.interpolate!==void 0&&(i=n.interpolate);var a;n.attributions!==void 0?a=n.attributions:a=[Oat];var o=n.crossOrigin!==void 0?n.crossOrigin:"anonymous",s=n.url!==void 0?n.url:"https://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png";return r.call(this,{attributions:a,attributionsCollapsible:!1,cacheSize:n.cacheSize,crossOrigin:o,interpolate:i,maxZoom:n.maxZoom!==void 0?n.maxZoom:19,opaque:n.opaque!==void 0?n.opaque:!0,reprojectionErrorThreshold:n.reprojectionErrorThreshold,tileLoadFunction:n.tileLoadFunction,transition:n.transition,url:s,wrapX:n.wrapX,zDirection:n.zDirection})||this}return e}(z8),Mat=Rat,Nat=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Pat=function(r){Nat(e,r);function e(t){var n=this,i=t||{},a=i.imageSmoothing!==void 0?i.imageSmoothing:!0;i.interpolate!==void 0&&(a=i.interpolate);var o=i.params||{},s="TRANSPARENT"in o?o.TRANSPARENT:!0;return n=r.call(this,{attributions:i.attributions,attributionsCollapsible:i.attributionsCollapsible,cacheSize:i.cacheSize,crossOrigin:i.crossOrigin,interpolate:a,opaque:!s,projection:i.projection,reprojectionErrorThreshold:i.reprojectionErrorThreshold,tileClass:i.tileClass,tileGrid:i.tileGrid,tileLoadFunction:i.tileLoadFunction,url:i.url,urls:i.urls,wrapX:i.wrapX!==void 0?i.wrapX:!0,transition:i.transition,zDirection:i.zDirection})||this,n.gutter_=i.gutter!==void 0?i.gutter:0,n.params_=o,n.v13_=!0,n.serverType_=i.serverType,n.hidpi_=i.hidpi!==void 0?i.hidpi:!0,n.tmpExtent_=Ni(),n.updateV13_(),n.setKey(n.getKeyForParams_()),n}return e.prototype.getFeatureInfoUrl=function(t,n,i,a){var o=Ve(i),s=this.getProjection(),A=this.getTileGrid();A||(A=this.getTileGridForProjection(o));var l=A.getZForResolution(n,this.zDirection),u=A.getTileCoordForCoordAndZ(t,l);if(!(A.getResolutions().length<=u[0])){var c=A.getResolution(u[0]),h=A.getTileCoordExtent(u,this.tmpExtent_),f=ji(A.getTileSize(u[0]),this.tmpSize),p=this.gutter_;p!==0&&(f=ZM(f,p,this.tmpSize),h=go(h,c*p,h)),s&&s!==o&&(c=uy(s,o,t,c),h=q1(h,o,s),t=Wc(t,o,s));var v={SERVICE:"WMS",VERSION:Cc,REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:this.params_.LAYERS};Ce(v,this.params_,a);var m=Math.floor((t[0]-h[0])/c),g=Math.floor((h[3]-t[1])/c);return v[this.v13_?"I":"X"]=m,v[this.v13_?"J":"Y"]=g,this.getRequestUrl_(u,f,h,1,s||o,v)}},e.prototype.getLegendUrl=function(t,n){if(this.urls[0]!==void 0){var i={SERVICE:"WMS",VERSION:Cc,REQUEST:"GetLegendGraphic",FORMAT:"image/png"};if(n===void 0||n.LAYER===void 0){var a=this.params_.LAYERS,o=!Array.isArray(a)||a.length===1;if(!o)return;i.LAYER=a}if(t!==void 0){var s=this.getProjection()?this.getProjection().getMetersPerUnit():1,A=28e-5;i.SCALE=t*s/A}return Ce(i,n),uv(this.urls[0],i)}},e.prototype.getGutter=function(){return this.gutter_},e.prototype.getParams=function(){return this.params_},e.prototype.getRequestUrl_=function(t,n,i,a,o,s){var A=this.urls;if(A){if(s.WIDTH=n[0],s.HEIGHT=n[1],s[this.v13_?"CRS":"SRS"]=o.getCode(),"STYLES"in this.params_||(s.STYLES=""),a!=1)switch(this.serverType_){case Bc.GEOSERVER:var l=90*a+.5|0;"FORMAT_OPTIONS"in s?s.FORMAT_OPTIONS+=";dpi:"+l:s.FORMAT_OPTIONS="dpi:"+l;break;case Bc.MAPSERVER:s.MAP_RESOLUTION=90*a;break;case Bc.CARMENTA_SERVER:case Bc.QGIS:s.DPI=90*a;break;default:Le(!1,52);break}var u=o.getAxisOrientation(),c=i;if(this.v13_&&u.substr(0,2)=="ne"){var h=void 0;h=i[0],c[0]=i[1],c[1]=h,h=i[2],c[2]=i[3],c[3]=h}s.BBOX=c.join(",");var f;if(A.length==1)f=A[0];else{var p=Rc(F8(t),A.length);f=A[p]}return uv(f,s)}},e.prototype.getTilePixelRatio=function(t){return!this.hidpi_||this.serverType_===void 0?1:t},e.prototype.getKeyForParams_=function(){var t=0,n=[];for(var i in this.params_)n[t++]=i+"-"+this.params_[i];return n.join("/")},e.prototype.updateParams=function(t){Ce(this.params_,t),this.updateV13_(),this.setKey(this.getKeyForParams_())},e.prototype.updateV13_=function(){var t=this.params_.VERSION||Cc;this.v13_=H6(t,"1.3")>=0},e.prototype.tileUrlFunction=function(t,n,i){var a=this.getTileGrid();if(a||(a=this.getTileGridForProjection(i)),!(a.getResolutions().length<=t[0])){n!=1&&(!this.hidpi_||this.serverType_===void 0)&&(n=1);var o=a.getResolution(t[0]),s=a.getTileCoordExtent(t,this.tmpExtent_),A=ji(a.getTileSize(t[0]),this.tmpSize),l=this.gutter_;l!==0&&(A=ZM(A,l,this.tmpSize),s=go(s,o*l,s)),n!=1&&(A=h4(A,n,this.tmpSize));var u={SERVICE:"WMS",VERSION:Cc,REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0};return Ce(u,this.params_),this.getRequestUrl_(t,A,s,n,i,u)}},e}(KE),Uat=Pat,s_={KVP:"KVP",REST:"REST"},Dat=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Qat=function(r){Dat(e,r);function e(t){var n=r.call(this,{extent:t.extent,origin:t.origin,origins:t.origins,resolutions:t.resolutions,tileSize:t.tileSize,tileSizes:t.tileSizes,sizes:t.sizes})||this;return n.matrixIds_=t.matrixIds,n}return e.prototype.getMatrixId=function(t){return this.matrixIds_[t]},e.prototype.getMatrixIds=function(){return this.matrixIds_},e}(kF),wS=Qat,kat=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Hat=function(r){kat(e,r);function e(t){var n=this,i=t.imageSmoothing!==void 0?t.imageSmoothing:!0;t.interpolate!==void 0&&(i=t.interpolate);var a=t.requestEncoding!==void 0?t.requestEncoding:s_.KVP,o=t.tileGrid,s=t.urls;return s===void 0&&t.url!==void 0&&(s=Y8(t.url)),n=r.call(this,{attributions:t.attributions,attributionsCollapsible:t.attributionsCollapsible,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,interpolate:i,projection:t.projection,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileClass:t.tileClass,tileGrid:o,tileLoadFunction:t.tileLoadFunction,tilePixelRatio:t.tilePixelRatio,urls:s,wrapX:t.wrapX!==void 0?t.wrapX:!1,transition:t.transition,zDirection:t.zDirection})||this,n.version_=t.version!==void 0?t.version:"1.0.0",n.format_=t.format!==void 0?t.format:"image/jpeg",n.dimensions_=t.dimensions!==void 0?t.dimensions:{},n.layer_=t.layer,n.matrixSet_=t.matrixSet,n.style_=t.style,n.requestEncoding_=a,n.setKey(n.getKeyForDimensions_()),s&&s.length>0&&(n.tileUrlFunction=dw(s.map(n.createFromWMTSTemplate.bind(n)))),n}return e.prototype.setUrls=function(t){this.urls=t;var n=t.join(`
|
||
`);this.setTileUrlFunction(dw(t.map(this.createFromWMTSTemplate.bind(this))),n)},e.prototype.getDimensions=function(){return this.dimensions_},e.prototype.getFormat=function(){return this.format_},e.prototype.getLayer=function(){return this.layer_},e.prototype.getMatrixSet=function(){return this.matrixSet_},e.prototype.getRequestEncoding=function(){return this.requestEncoding_},e.prototype.getStyle=function(){return this.style_},e.prototype.getVersion=function(){return this.version_},e.prototype.getKeyForDimensions_=function(){var t=0,n=[];for(var i in this.dimensions_)n[t++]=i+"-"+this.dimensions_[i];return n.join("/")},e.prototype.updateDimensions=function(t){Ce(this.dimensions_,t),this.setKey(this.getKeyForDimensions_())},e.prototype.createFromWMTSTemplate=function(t){var n=this.requestEncoding_,i={layer:this.layer_,style:this.style_,tilematrixset:this.matrixSet_};n==s_.KVP&&Ce(i,{Service:"WMTS",Request:"GetTile",Version:this.version_,Format:this.format_}),t=n==s_.KVP?uv(t,i):t.replace(/\{(\w+?)\}/g,function(s,A){return A.toLowerCase()in i?i[A.toLowerCase()]:s});var a=this.tileGrid,o=this.dimensions_;return function(s,A,l){if(s){var u={TileMatrix:a.getMatrixId(s[0]),TileCol:s[1],TileRow:s[2]};Ce(u,o);var c=t;return n==s_.KVP?c=uv(c,u):c=c.replace(/\{(\w+?)\}/g,function(h,f){return u[f]}),c}else return}},e}(KE),tk=Hat;window.ol&&!ol.ext&&(ol.ext={});var Dr=function(r,e){r.prototype=Object.create(e.prototype),r.prototype.constructor=r};window.ol&&(ol.inherits||(ol.inherits=Dr));window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach);window.Element&&!Element.prototype.remove&&(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)});function WE(r){const e=r.frameState,t=bv(r.inversePixelTransform.slice(),e.coordinateToPixelTransform);return new CF(r.context,e.pixelRatio,e.extent,t,e.viewState.rotation)}window.ol&&(ol.util?ol.util.VERSION||(ol.util.VERSION=ol.VERSION||"6.1.0"):ol.util={VERSION:ol.VERSION||"5.3.0"});var d1=C6.split(".");d1=parseInt(d1[0])*100+parseInt(d1[1]);var ES=function(r,e){var t=r.frameState.pixelRatio;if(d1>605&&t!==1&&e.getImage()instanceof jy){e=e.clone();var n=e.getImage();n.setScale(n.getScale()*t);var i=n.getAnchor();if(n.setDisplacement){var a=n.getDisplacement();a&&(a[0]-=i[0]/t,a[1]+=i[1]/t,n.setAnchor([0,0]))}else i&&(i[0]/=t,i[1]/=t)}return e},ip=function(r){var e=r||{};dl.call(this,e),this.oldcluster=new Tu,this.clusters=[],this.animation={start:!1},this.set("animationDuration",typeof e.animationDuration=="number"?e.animationDuration:700),this.set("animationMethod",e.animationMethod||Ds),this.getSource().on("change",this.saveCluster.bind(this)),this.on(["precompose","prerender"],this.animate.bind(this)),this.on(["postcompose","postrender"],this.postanimate.bind(this))};Dr(ip,dl);ip.prototype.saveCluster=function(){if(this.oldcluster){if(this.oldcluster.clear(),!this.get("animationDuration"))return;var r=this.getSource().getFeatures();r.length&&r[0].get("features")&&(this.oldcluster.addFeatures(this.clusters),this.clusters=r.slice(0),this.sourceChanged=!0)}};ip.prototype.getClusterForFeature=function(r,e){for(var t=0,n;n=e[t];t++){var i=n.get("features");if(i&&i.length){for(var a=0,o;o=i[a];a++)if(r===o)return n}}return!1};ip.prototype.stopAnimation=function(){this.animation.start=!1,this.animation.cA=[],this.animation.cB=[]};ip.prototype.animate=function(r){var e=this.get("animationDuration");if(e){var t=r.frameState.viewState.resolution,n,i,a=this.animation,o=r.frameState.time;if(a.resolution!=t&&this.sourceChanged){var s=r.frameState.extent;for(a.resolution<t?(s=go(s,100*t),a.cA=this.oldcluster.getFeaturesInExtent(s),a.cB=this.getSource().getFeaturesInExtent(s),a.revers=!1):(s=go(s,100*t),a.cA=this.getSource().getFeaturesInExtent(s),a.cB=this.oldcluster.getFeaturesInExtent(s),a.revers=!0),a.clusters=[],n=0,i;i=a.cA[n];n++){var A=i.get("features");if(A&&A.length){var l=this.getClusterForFeature(A[0],a.cB);l&&a.clusters.push({f:i,pt:l.getGeometry().getCoordinates()})}}if(a.resolution=t,this.sourceChanged=!1,!a.clusters.length||a.clusters.length>1e3){this.stopAnimation();return}o=a.start=new Date().getTime()}if(a.start){var u=r.vectorContext||WE(r),c=(o-a.start)/e;c>1&&(this.stopAnimation(),c=1),c=this.get("animationMethod")(c);var h=this.getStyle(),f=typeof h=="function"?h:h.length?function(){return h}:function(){return[h]};for(r.context.save(),r.context.globalAlpha=this.getOpacity(),n=0,l;l=a.clusters[n];n++){var p=l.f.getGeometry().getCoordinates(),v=p[0]-l.pt[0],m=p[1]-l.pt[1];a.revers?(p[0]=l.pt[0]+c*v,p[1]=l.pt[1]+c*m):(p[0]=p[0]-c*v,p[1]=p[1]-c*m);var g=f(l.f,t,!0);if(g.length||(g=[g]),l.f.get("features").length===1&&!v&&!m)A=l.f.get("features")[0];else{var _=new Sr(p);A=new yr(_)}for(var w=0,C;C=g[w];w++)if(C.getText()&&/\n/.test(C.getText().getText())){var F=C.getText().getOffsetX(),O=C.getText().getOffsetY(),I=C.getText().getRotation()||0,b=Number((C.getText().getFont()||"10px").match(/\d+/))*1.2,L=C.getText().getText().split(`
|
||
`),N,x=L.length-1,S=C.clone();L.forEach(function(P,U){switch(U==1&&(S.setImage(),S.setFill(),S.setStroke()),C.getText().getTextBaseline()){case"alphabetic":case"ideographic":case"bottom":{N=x;break}case"hanging":case"top":{N=0;break}default:{N=x/2;break}}S.getText().setOffsetX(F-Math.sin(I)*b*(U-N)),S.getText().setOffsetY(O+Math.cos(I)*b*(U-N)),S.getText().setText(P),u.drawFeature(A,ES(r,S))})}else u.drawFeature(A,ES(r,C))}r.context.restore(),r.frameState.animate=!0,r.context.save(),r.context.beginPath(),r.context.rect(0,0,0,0),r.context.clip(),this.clip_=!0}}};ip.prototype.postanimate=function(r){this.clip_&&(r.context.restore(),this.clip_=!1)};const Gat={extends:np,name:"ol-animated-clusterlayer",setup(r){const e=Be("map"),{properties:t}=Lr(r),n=qe(()=>new ip(yA(qn({},t),{source:new X8({distance:t.distance,geometryFunction:o=>o.getGeometry()})}))),i=qe(()=>n.value.getSource());return ye(t,()=>{n.value.setProperties(t),n.value.changed()}),ur(()=>{e.addLayer(n.value),n.value.changed(),e.changed()}),pr(()=>{e.removeLayer(n.value)}),Ur("vectorLayer",i),Ur("stylable",n),{vectorLayer:n,map:e}},props:{animationDuration:{type:Number,default:700},distance:{type:Number,default:20},animationMethod:{type:Function,default:Ds},updateWhileAnimating:{type:Boolean,default:!1},updateWhileInteracting:{type:Boolean,default:!1}}};function $at(r,e,t,n,i,a){return Zn(),Yi("div",null,[Or(r.$slots,"default")])}var CS=me(Gat,[["render",$at]]),HA=new Uint8Array(4),Vat=function(){function r(e,t){this.helper_=e;var n=e.getGL();this.texture_=n.createTexture(),this.framebuffer_=n.createFramebuffer(),this.size_=t||[1,1],this.data_=new Uint8Array(0),this.dataCacheDirty_=!0,this.updateSize_()}return r.prototype.setSize=function(e){Cu(e,this.size_)||(this.size_[0]=e[0],this.size_[1]=e[1],this.updateSize_())},r.prototype.getSize=function(){return this.size_},r.prototype.clearCachedData=function(){this.dataCacheDirty_=!0},r.prototype.readAll=function(){if(this.dataCacheDirty_){var e=this.size_,t=this.helper_.getGL();t.bindFramebuffer(t.FRAMEBUFFER,this.framebuffer_),t.readPixels(0,0,e[0],e[1],t.RGBA,t.UNSIGNED_BYTE,this.data_),this.dataCacheDirty_=!1}return this.data_},r.prototype.readPixel=function(e,t){if(e<0||t<0||e>this.size_[0]||t>=this.size_[1])return HA[0]=0,HA[1]=0,HA[2]=0,HA[3]=0,HA;this.readAll();var n=Math.floor(e)+(this.size_[1]-Math.floor(t)-1)*this.size_[0];return HA[0]=this.data_[n*4],HA[1]=this.data_[n*4+1],HA[2]=this.data_[n*4+2],HA[3]=this.data_[n*4+3],HA},r.prototype.getTexture=function(){return this.texture_},r.prototype.getFramebuffer=function(){return this.framebuffer_},r.prototype.updateSize_=function(){var e=this.size_,t=this.helper_.getGL();this.texture_=this.helper_.createTexture(e,null,this.texture_),t.bindFramebuffer(t.FRAMEBUFFER,this.framebuffer_),t.viewport(0,0,e[0],e[1]),t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,this.texture_,0),this.data_=new Uint8Array(e[0]*e[1]*4)},r}(),jat=Vat;function Kat(){var r='var e="function"==typeof Object.assign?Object.assign:function(e,n){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),r=1,o=arguments.length;r<o;++r){var i=arguments[r];if(null!=i)for(var f in i)i.hasOwnProperty(f)&&(t[f]=i[f])}return t},n="GENERATE_BUFFERS",t=[],r={vertexPosition:0,indexPosition:0};function o(e,n,t,r,o){e[n+0]=t,e[n+1]=r,e[n+2]=o}function i(e,n,i,f,s,a){var u=3+s,l=e[n+0],v=e[n+1],c=t;c.length=s;for(var g=0;g<c.length;g++)c[g]=e[n+2+g];var b=a?a.vertexPosition:0,h=a?a.indexPosition:0,d=b/u;return o(i,b,l,v,0),c.length&&i.set(c,b+3),o(i,b+=u,l,v,1),c.length&&i.set(c,b+3),o(i,b+=u,l,v,2),c.length&&i.set(c,b+3),o(i,b+=u,l,v,3),c.length&&i.set(c,b+3),b+=u,f[h++]=d,f[h++]=d+1,f[h++]=d+3,f[h++]=d+1,f[h++]=d+2,f[h++]=d+3,r.vertexPosition=b,r.indexPosition=h,r}var f=self;f.onmessage=function(t){var r=t.data;if(r.type===n){for(var o,s=r.customAttributesCount,a=2+s,u=new Float32Array(r.renderInstructions),l=u.length/a,v=4*l*(s+3),c=new Uint32Array(6*l),g=new Float32Array(v),b=0;b<u.length;b+=a)o=i(u,b,g,c,s,o);var h=e({vertexBuffer:g.buffer,indexBuffer:c.buffer,renderInstructions:u.buffer},r);f.postMessage(h,[g.buffer,c.buffer,u.buffer])}};';return new Worker(typeof Blob>"u"?"data:application/javascript;base64,"+Buffer.from(r,"binary").toString("base64"):URL.createObjectURL(new Blob([r],{type:"application/javascript"})))}var Yat=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Wat=function(r){Yat(e,r);function e(t,n){var i=this,a=n.uniforms||{},o=Ti();a[vd.PROJECTION_MATRIX]=o,i=r.call(this,t,{uniforms:a,postProcesses:n.postProcesses})||this,i.ready=!1,i.sourceRevision_=-1,i.verticesBuffer_=new Sm(cy,h1),i.hitVerticesBuffer_=new Sm(cy,h1),i.indicesBuffer_=new Sm(HE,h1),i.vertexShader_=n.vertexShader,i.fragmentShader_=n.fragmentShader,i.program_,i.hitDetectionEnabled_=!!(n.hitFragmentShader&&n.hitVertexShader),i.hitVertexShader_=n.hitVertexShader,i.hitFragmentShader_=n.hitFragmentShader,i.hitProgram_;var s=n.attributes?n.attributes.map(function(l){return{name:"a_"+l.name,size:1,type:Fs.FLOAT}}):[];i.attributes=[{name:"a_position",size:2,type:Fs.FLOAT},{name:"a_index",size:1,type:Fs.FLOAT}].concat(s),i.hitDetectionAttributes=[{name:"a_position",size:2,type:Fs.FLOAT},{name:"a_index",size:1,type:Fs.FLOAT},{name:"a_hitColor",size:4,type:Fs.FLOAT},{name:"a_featureUid",size:1,type:Fs.FLOAT}].concat(s),i.customAttributes=n.attributes?n.attributes:[],i.previousExtent_=Ni(),i.currentTransform_=o,i.renderTransform_=Ti(),i.invertRenderTransform_=Ti(),i.renderInstructions_=new Float32Array(0),i.hitRenderInstructions_=new Float32Array(0),i.hitRenderTarget_,i.generateBuffersRun_=0,i.worker_=Kat(),i.worker_.addEventListener("message",function(l){var u=l.data;if(u.type===jB.GENERATE_BUFFERS){var c=u.projectionTransform;u.hitDetection?(this.hitVerticesBuffer_.fromArrayBuffer(u.vertexBuffer),this.helper.flushBufferData(this.hitVerticesBuffer_)):(this.verticesBuffer_.fromArrayBuffer(u.vertexBuffer),this.helper.flushBufferData(this.verticesBuffer_)),this.indicesBuffer_.fromArrayBuffer(u.indexBuffer),this.helper.flushBufferData(this.indicesBuffer_),this.renderTransform_=c,My(this.invertRenderTransform_,this.renderTransform_),u.hitDetection?this.hitRenderInstructions_=new Float32Array(l.data.renderInstructions):(this.renderInstructions_=new Float32Array(l.data.renderInstructions),u.generateBuffersRun===this.generateBuffersRun_&&(this.ready=!0)),this.getLayer().changed()}}.bind(i)),i.featureCache_={},i.featureCount_=0;var A=i.getLayer().getSource();return i.sourceListenKeys_=[je(A,Gi.ADDFEATURE,i.handleSourceFeatureAdded_,i),je(A,Gi.CHANGEFEATURE,i.handleSourceFeatureChanged_,i),je(A,Gi.REMOVEFEATURE,i.handleSourceFeatureDelete_,i),je(A,Gi.CLEAR,i.handleSourceFeatureClear_,i)],A.forEachFeature(function(l){this.featureCache_[Ee(l)]={feature:l,properties:l.getProperties(),geometry:l.getGeometry()},this.featureCount_++}.bind(i)),i}return e.prototype.afterHelperCreated=function(){this.program_=this.helper.getProgram(this.fragmentShader_,this.vertexShader_),this.hitDetectionEnabled_&&(this.hitProgram_=this.helper.getProgram(this.hitFragmentShader_,this.hitVertexShader_),this.hitRenderTarget_=new jat(this.helper))},e.prototype.handleSourceFeatureAdded_=function(t){var n=t.feature;this.featureCache_[Ee(n)]={feature:n,properties:n.getProperties(),geometry:n.getGeometry()},this.featureCount_++},e.prototype.handleSourceFeatureChanged_=function(t){var n=t.feature;this.featureCache_[Ee(n)]={feature:n,properties:n.getProperties(),geometry:n.getGeometry()}},e.prototype.handleSourceFeatureDelete_=function(t){var n=t.feature;delete this.featureCache_[Ee(n)],this.featureCount_--},e.prototype.handleSourceFeatureClear_=function(){this.featureCache_={},this.featureCount_=0},e.prototype.renderFrame=function(t){var n=this.helper.getGL();this.preRender(n,t);var i=this.indicesBuffer_.getSize();this.helper.drawElements(0,i),this.helper.finalizeDraw(t,this.dispatchPreComposeEvent,this.dispatchPostComposeEvent);var a=this.helper.getCanvas();return this.hitDetectionEnabled_&&(this.renderHitDetection(t),this.hitRenderTarget_.clearCachedData()),this.postRender(n,t),a},e.prototype.prepareFrameInternal=function(t){var n=this.getLayer(),i=n.getSource(),a=t.viewState,o=!t.viewHints[Sn.ANIMATING]&&!t.viewHints[Sn.INTERACTING],s=!ul(this.previousExtent_,t.extent),A=this.sourceRevision_<i.getRevision();if(A&&(this.sourceRevision_=i.getRevision()),o&&(s||A)){var l=a.projection,u=a.resolution,c=n instanceof ME?n.getRenderBuffer():0,h=go(t.extent,c*u);i.loadFeatures(h,u,l),this.rebuildBuffers_(t),this.previousExtent_=t.extent.slice()}return this.helper.makeProjectionTransform(t,this.currentTransform_),bv(this.currentTransform_,this.invertRenderTransform_),this.helper.useProgram(this.program_),this.helper.prepareDraw(t),this.helper.bindBuffer(this.verticesBuffer_),this.helper.bindBuffer(this.indicesBuffer_),this.helper.enableAttributes(this.attributes),!0},e.prototype.rebuildBuffers_=function(t){var n=Ti();this.helper.makeProjectionTransform(t,n);var i=(2+this.customAttributes.length)*this.featureCount_;if((!this.renderInstructions_||this.renderInstructions_.length!==i)&&(this.renderInstructions_=new Float32Array(i)),this.hitDetectionEnabled_){var a=(7+this.customAttributes.length)*this.featureCount_;(!this.hitRenderInstructions_||this.hitRenderInstructions_.length!==a)&&(this.hitRenderInstructions_=new Float32Array(a))}var o,s,A=[],l=[],u=0,c=0,h;for(var f in this.featureCache_)if(o=this.featureCache_[f],s=o.geometry,!(!s||s.getType()!==dt.POINT)){A[0]=s.getFlatCoordinates()[0],A[1]=s.getFlatCoordinates()[1],Bn(n,A),h=sit(c+6,l),this.renderInstructions_[u++]=A[0],this.renderInstructions_[u++]=A[1],this.hitDetectionEnabled_&&(this.hitRenderInstructions_[c++]=A[0],this.hitRenderInstructions_[c++]=A[1],this.hitRenderInstructions_[c++]=h[0],this.hitRenderInstructions_[c++]=h[1],this.hitRenderInstructions_[c++]=h[2],this.hitRenderInstructions_[c++]=h[3],this.hitRenderInstructions_[c++]=Number(f));for(var p=void 0,v=0;v<this.customAttributes.length;v++)p=this.customAttributes[v].callback(o.feature,o.properties),this.renderInstructions_[u++]=p,this.hitDetectionEnabled_&&(this.hitRenderInstructions_[c++]=p)}var m={type:jB.GENERATE_BUFFERS,renderInstructions:this.renderInstructions_.buffer,customAttributesCount:this.customAttributes.length};if(m.projectionTransform=n,m.generateBuffersRun=++this.generateBuffersRun_,this.ready=!1,this.worker_.postMessage(m,[this.renderInstructions_.buffer]),this.renderInstructions_=null,this.hitDetectionEnabled_){var g={type:jB.GENERATE_BUFFERS,renderInstructions:this.hitRenderInstructions_.buffer,customAttributesCount:5+this.customAttributes.length};g.projectionTransform=n,g.hitDetection=!0,this.worker_.postMessage(g,[this.hitRenderInstructions_.buffer]),this.hitRenderInstructions_=null}},e.prototype.forEachFeatureAtCoordinate=function(t,n,i,a,o){if(Le(this.hitDetectionEnabled_,66),!!this.hitRenderInstructions_){var s=Bn(n.coordinateToPixelTransform,t.slice()),A=this.hitRenderTarget_.readPixel(s[0]/2,s[1]/2),l=[A[0]/255,A[1]/255,A[2]/255,A[3]/255],u=Ait(l),c=this.hitRenderInstructions_[u],h=Math.floor(c).toString(),f=this.getLayer().getSource(),p=f.getFeatureByUid(h);if(p)return a(p,this.getLayer(),null)}},e.prototype.renderHitDetection=function(t){if(this.hitVerticesBuffer_.getSize()){this.hitRenderTarget_.setSize([Math.floor(t.size[0]/2),Math.floor(t.size[1]/2)]),this.helper.useProgram(this.hitProgram_),this.helper.prepareDrawToRenderTarget(t,this.hitRenderTarget_,!0),this.helper.bindBuffer(this.hitVerticesBuffer_),this.helper.bindBuffer(this.indicesBuffer_),this.helper.enableAttributes(this.hitDetectionAttributes);var n=this.indicesBuffer_.getSize();this.helper.drawElements(0,n)}},e.prototype.disposeInternal=function(){this.worker_.terminate(),this.layer_=null,this.sourceListenKeys_.forEach(function(t){Wr(t)}),this.sourceListenKeys_=null,r.prototype.disposeInternal.call(this)},e}(L8),ek=Wat,zat=function(){function r(){this.uniforms=[],this.attributes=[],this.varyings=[],this.sizeExpression="vec2(1.0)",this.rotationExpression="0.0",this.offsetExpression="vec2(0.0)",this.colorExpression="vec4(1.0)",this.texCoordExpression="vec4(0.0, 0.0, 1.0, 1.0)",this.discardExpression="false",this.rotateWithView=!1}return r.prototype.addUniform=function(e){return this.uniforms.push(e),this},r.prototype.addAttribute=function(e){return this.attributes.push(e),this},r.prototype.addVarying=function(e,t,n){return this.varyings.push({name:e,type:t,expression:n}),this},r.prototype.setSizeExpression=function(e){return this.sizeExpression=e,this},r.prototype.setRotationExpression=function(e){return this.rotationExpression=e,this},r.prototype.setSymbolOffsetExpression=function(e){return this.offsetExpression=e,this},r.prototype.setColorExpression=function(e){return this.colorExpression=e,this},r.prototype.setTextureCoordinateExpression=function(e){return this.texCoordExpression=e,this},r.prototype.setFragmentDiscardExpression=function(e){return this.discardExpression=e,this},r.prototype.setSymbolRotateWithView=function(e){return this.rotateWithView=e,this},r.prototype.getSizeExpression=function(){return this.sizeExpression},r.prototype.getOffsetExpression=function(){return this.offsetExpression},r.prototype.getColorExpression=function(){return this.colorExpression},r.prototype.getTextureCoordinateExpression=function(){return this.texCoordExpression},r.prototype.getFragmentDiscardExpression=function(){return this.discardExpression},r.prototype.getSymbolVertexShader=function(e){var t=this.rotateWithView?"u_offsetScaleMatrix * u_offsetRotateMatrix":"u_offsetScaleMatrix",n=this.attributes,i=this.varyings;return e&&(n=n.concat("vec4 a_hitColor"),i=i.concat({name:"v_hitColor",type:"vec4",expression:"a_hitColor"})),`precision mediump float;
|
||
uniform mat4 u_projectionMatrix;
|
||
uniform mat4 u_offsetScaleMatrix;
|
||
uniform mat4 u_offsetRotateMatrix;
|
||
uniform float u_time;
|
||
uniform float u_zoom;
|
||
uniform float u_resolution;
|
||
`.concat(this.uniforms.map(function(a){return"uniform "+a+";"}).join(`
|
||
`),`
|
||
attribute vec2 a_position;
|
||
attribute float a_index;
|
||
`).concat(n.map(function(a){return"attribute "+a+";"}).join(`
|
||
`),`
|
||
varying vec2 v_texCoord;
|
||
varying vec2 v_quadCoord;
|
||
`).concat(i.map(function(a){return"varying "+a.type+" "+a.name+";"}).join(`
|
||
`),`
|
||
void main(void) {
|
||
mat4 offsetMatrix = `).concat(t,`;
|
||
vec2 halfSize = `).concat(this.sizeExpression,` * 0.5;
|
||
vec2 offset = `).concat(this.offsetExpression,`;
|
||
float angle = `).concat(this.rotationExpression,`;
|
||
float offsetX;
|
||
float offsetY;
|
||
if (a_index == 0.0) {
|
||
offsetX = (offset.x - halfSize.x) * cos(angle) + (offset.y - halfSize.y) * sin(angle);
|
||
offsetY = (offset.y - halfSize.y) * cos(angle) - (offset.x - halfSize.x) * sin(angle);
|
||
} else if (a_index == 1.0) {
|
||
offsetX = (offset.x + halfSize.x) * cos(angle) + (offset.y - halfSize.y) * sin(angle);
|
||
offsetY = (offset.y - halfSize.y) * cos(angle) - (offset.x + halfSize.x) * sin(angle);
|
||
} else if (a_index == 2.0) {
|
||
offsetX = (offset.x + halfSize.x) * cos(angle) + (offset.y + halfSize.y) * sin(angle);
|
||
offsetY = (offset.y + halfSize.y) * cos(angle) - (offset.x + halfSize.x) * sin(angle);
|
||
} else {
|
||
offsetX = (offset.x - halfSize.x) * cos(angle) + (offset.y + halfSize.y) * sin(angle);
|
||
offsetY = (offset.y + halfSize.y) * cos(angle) - (offset.x - halfSize.x) * sin(angle);
|
||
}
|
||
vec4 offsets = offsetMatrix * vec4(offsetX, offsetY, 0.0, 0.0);
|
||
gl_Position = u_projectionMatrix * vec4(a_position, 0.0, 1.0) + offsets;
|
||
vec4 texCoord = `).concat(this.texCoordExpression,`;
|
||
float u = a_index == 0.0 || a_index == 3.0 ? texCoord.s : texCoord.p;
|
||
float v = a_index == 2.0 || a_index == 3.0 ? texCoord.t : texCoord.q;
|
||
v_texCoord = vec2(u, v);
|
||
u = a_index == 0.0 || a_index == 3.0 ? 0.0 : 1.0;
|
||
v = a_index == 2.0 || a_index == 3.0 ? 0.0 : 1.0;
|
||
v_quadCoord = vec2(u, v);
|
||
`).concat(i.map(function(a){return" "+a.name+" = "+a.expression+";"}).join(`
|
||
`),`
|
||
}`)},r.prototype.getSymbolFragmentShader=function(e){var t=e?" if (gl_FragColor.a < 0.1) { discard; } gl_FragColor = v_hitColor;":"",n=this.varyings;return e&&(n=n.concat({name:"v_hitColor",type:"vec4",expression:"a_hitColor"})),`precision mediump float;
|
||
uniform float u_time;
|
||
uniform float u_zoom;
|
||
uniform float u_resolution;
|
||
`.concat(this.uniforms.map(function(i){return"uniform "+i+";"}).join(`
|
||
`),`
|
||
varying vec2 v_texCoord;
|
||
varying vec2 v_quadCoord;
|
||
`).concat(n.map(function(i){return"varying "+i.type+" "+i.name+";"}).join(`
|
||
`),`
|
||
void main(void) {
|
||
if (`).concat(this.discardExpression,`) { discard; }
|
||
gl_FragColor = `).concat(this.colorExpression,`;
|
||
gl_FragColor.rgb *= gl_FragColor.a;
|
||
`).concat(t,`
|
||
}`)},r}();function Xat(r){var e=r.symbol,t=e.size!==void 0?e.size:1,n=e.color||"white",i=e.textureCoord||[0,0,1,1],a=e.offset||[0,0],o=e.opacity!==void 0?e.opacity:1,s=e.rotation!==void 0?e.rotation:0,A={inFragmentShader:!1,variables:[],attributes:[],stringLiteralsMap:{},functions:{}},l=ge(A,t,ue.NUMBER_ARRAY|ue.NUMBER),u=ge(A,a,ue.NUMBER_ARRAY),c=ge(A,i,ue.NUMBER_ARRAY),h=ge(A,s,ue.NUMBER),f={inFragmentShader:!0,variables:A.variables,attributes:[],stringLiteralsMap:A.stringLiteralsMap,functions:{}},p=ge(f,n,ue.COLOR),v=ge(f,o,ue.NUMBER),m="1.0",g="vec2(".concat(ge(f,t,ue.NUMBER_ARRAY|ue.NUMBER),").x");switch(e.symbolType){case"square":break;case"image":break;case"circle":m="(1.0-smoothstep(1.-4./".concat(g,",1.,dot(v_quadCoord-.5,v_quadCoord-.5)*4.))");break;case"triangle":var _="(v_quadCoord*2.-1.)",w="(atan(".concat(_,".x,").concat(_,".y))");m="(1.0-smoothstep(.5-3./".concat(g,",.5,cos(floor(.5+").concat(w,"/2.094395102)*2.094395102-").concat(w,")*length(").concat(_,")))");break;default:throw new Error("Unexpected symbol type: "+e.symbolType)}var C=new zat().setSizeExpression("vec2(".concat(l,")")).setRotationExpression(h).setSymbolOffsetExpression(u).setTextureCoordinateExpression(c).setSymbolRotateWithView(!!e.rotateWithView).setColorExpression("vec4(".concat(p,".rgb, ").concat(p,".a * ").concat(v," * ").concat(m,")"));if(r.filter){var F=ge(f,r.filter,ue.BOOLEAN);C.setFragmentDiscardExpression("!".concat(F))}var O={};if(f.variables.forEach(function(b){var L=QF(b);C.addUniform("float ".concat(L)),O[L]=function(){if(!r.variables||r.variables[b]===void 0)throw new Error("The following variable is missing from the style: ".concat(b));var N=r.variables[b];return typeof N=="string"&&(N=pw(A,N)),N!==void 0?N:-9999999}}),e.symbolType==="image"&&e.src){var I=new Image;I.crossOrigin=e.crossOrigin===void 0?"anonymous":e.crossOrigin,I.src=e.src,C.addUniform("sampler2D u_texture").setColorExpression(C.getColorExpression()+" * texture2D(u_texture, v_texCoord)"),O.u_texture=I}return f.attributes.forEach(function(b){A.attributes.indexOf(b)===-1&&A.attributes.push(b),C.addVarying("v_".concat(b),"float","a_".concat(b))}),A.attributes.forEach(function(b){C.addAttribute("float a_".concat(b))}),{builder:C,attributes:A.attributes.map(function(b){return{name:b,callback:function(L,N){var x=N[b];return typeof x=="string"&&(x=pw(A,x)),x!==void 0?x:-9999999}}}),uniforms:O}}var qat=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Zat=function(r){qat(e,r);function e(t){var n=this,i=Ce({},t);return n=r.call(this,i)||this,n.parseResult_=Xat(t.style),n.styleVariables_=t.style.variables||{},n.hitDetectionDisabled_=!!t.disableHitDetection,n}return e.prototype.createRenderer=function(){return new ek(this,{vertexShader:this.parseResult_.builder.getSymbolVertexShader(),fragmentShader:this.parseResult_.builder.getSymbolFragmentShader(),hitVertexShader:!this.hitDetectionDisabled_&&this.parseResult_.builder.getSymbolVertexShader(!0),hitFragmentShader:!this.hitDetectionDisabled_&&this.parseResult_.builder.getSymbolFragmentShader(!0),uniforms:this.parseResult_.uniforms,attributes:this.parseResult_.attributes})},e.prototype.updateStyleVariables=function(t){Ce(this.styleVariables_,t),this.changed()},e}(tp),Jat=Zat;const tot={extends:np,name:"ol-webglpoints-layer",setup(r){const e=Be("map"),{properties:t}=Lr(r),n=qe(()=>new Jat(t));return ye(t,()=>{n.value.setProperties(t)}),ur(()=>{e.addLayer(n.value)}),pr(()=>{e.removeLayer(n.value)}),Ur("webglPointsLayer",n),{webglPointsLayer:n}},props:{disableHitDetection:{type:Boolean,default:!1},style:{type:Object,default:()=>({symbol:{symbolType:"circle",size:8,color:"#33AAFF",opacity:.9}})}}};function eot(r,e,t,n,i,a){return Zn(),Yi("div",null,[Or(r.$slots,"default")])}var BS=me(tot,[["render",eot]]),rot=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),tA={BLUR:"blur",GRADIENT:"gradient",RADIUS:"radius"},not=["#00f","#0ff","#0f0","#ff0","#f00"],iot=function(r){rot(e,r);function e(t){var n=this,i=t||{},a=Ce({},i);delete a.gradient,delete a.radius,delete a.blur,delete a.weight,n=r.call(this,a)||this,n.gradient_=null,n.addChangeListener(tA.GRADIENT,n.handleGradientChanged_),n.setGradient(i.gradient?i.gradient:not),n.setBlur(i.blur!==void 0?i.blur:15),n.setRadius(i.radius!==void 0?i.radius:8);var o=i.weight?i.weight:"weight";return typeof o=="string"?n.weightFunction_=function(s){return s.get(o)}:n.weightFunction_=o,n.setRenderOrder(null),n}return e.prototype.getBlur=function(){return this.get(tA.BLUR)},e.prototype.getGradient=function(){return this.get(tA.GRADIENT)},e.prototype.getRadius=function(){return this.get(tA.RADIUS)},e.prototype.handleGradientChanged_=function(){this.gradient_=aot(this.getGradient())},e.prototype.setBlur=function(t){this.set(tA.BLUR,t)},e.prototype.setGradient=function(t){this.set(tA.GRADIENT,t)},e.prototype.setRadius=function(t){this.set(tA.RADIUS,t)},e.prototype.createRenderer=function(){return new ek(this,{className:this.getClassName(),attributes:[{name:"weight",callback:function(t){var n=this.weightFunction_(t);return n!==void 0?Nn(n,0,1):1}.bind(this)}],vertexShader:`
|
||
precision mediump float;
|
||
uniform mat4 u_projectionMatrix;
|
||
uniform mat4 u_offsetScaleMatrix;
|
||
uniform float u_size;
|
||
attribute vec2 a_position;
|
||
attribute float a_index;
|
||
attribute float a_weight;
|
||
|
||
varying vec2 v_texCoord;
|
||
varying float v_weight;
|
||
|
||
void main(void) {
|
||
mat4 offsetMatrix = u_offsetScaleMatrix;
|
||
float offsetX = a_index == 0.0 || a_index == 3.0 ? -u_size / 2.0 : u_size / 2.0;
|
||
float offsetY = a_index == 0.0 || a_index == 1.0 ? -u_size / 2.0 : u_size / 2.0;
|
||
vec4 offsets = offsetMatrix * vec4(offsetX, offsetY, 0.0, 0.0);
|
||
gl_Position = u_projectionMatrix * vec4(a_position, 0.0, 1.0) + offsets;
|
||
float u = a_index == 0.0 || a_index == 3.0 ? 0.0 : 1.0;
|
||
float v = a_index == 0.0 || a_index == 1.0 ? 0.0 : 1.0;
|
||
v_texCoord = vec2(u, v);
|
||
v_weight = a_weight;
|
||
}`,fragmentShader:`
|
||
precision mediump float;
|
||
uniform float u_blurSlope;
|
||
|
||
varying vec2 v_texCoord;
|
||
varying float v_weight;
|
||
|
||
void main(void) {
|
||
vec2 texCoord = v_texCoord * 2.0 - vec2(1.0, 1.0);
|
||
float sqRadius = texCoord.x * texCoord.x + texCoord.y * texCoord.y;
|
||
float value = (1.0 - sqrt(sqRadius)) * u_blurSlope;
|
||
float alpha = smoothstep(0.0, 1.0, value) * v_weight;
|
||
gl_FragColor = vec4(alpha, alpha, alpha, alpha);
|
||
}`,hitVertexShader:`
|
||
precision mediump float;
|
||
uniform mat4 u_projectionMatrix;
|
||
uniform mat4 u_offsetScaleMatrix;
|
||
uniform float u_size;
|
||
attribute vec2 a_position;
|
||
attribute float a_index;
|
||
attribute float a_weight;
|
||
attribute vec4 a_hitColor;
|
||
|
||
varying vec2 v_texCoord;
|
||
varying float v_weight;
|
||
varying vec4 v_hitColor;
|
||
|
||
void main(void) {
|
||
mat4 offsetMatrix = u_offsetScaleMatrix;
|
||
float offsetX = a_index == 0.0 || a_index == 3.0 ? -u_size / 2.0 : u_size / 2.0;
|
||
float offsetY = a_index == 0.0 || a_index == 1.0 ? -u_size / 2.0 : u_size / 2.0;
|
||
vec4 offsets = offsetMatrix * vec4(offsetX, offsetY, 0.0, 0.0);
|
||
gl_Position = u_projectionMatrix * vec4(a_position, 0.0, 1.0) + offsets;
|
||
float u = a_index == 0.0 || a_index == 3.0 ? 0.0 : 1.0;
|
||
float v = a_index == 0.0 || a_index == 1.0 ? 0.0 : 1.0;
|
||
v_texCoord = vec2(u, v);
|
||
v_hitColor = a_hitColor;
|
||
v_weight = a_weight;
|
||
}`,hitFragmentShader:`
|
||
precision mediump float;
|
||
uniform float u_blurSlope;
|
||
|
||
varying vec2 v_texCoord;
|
||
varying float v_weight;
|
||
varying vec4 v_hitColor;
|
||
|
||
void main(void) {
|
||
vec2 texCoord = v_texCoord * 2.0 - vec2(1.0, 1.0);
|
||
float sqRadius = texCoord.x * texCoord.x + texCoord.y * texCoord.y;
|
||
float value = (1.0 - sqrt(sqRadius)) * u_blurSlope;
|
||
float alpha = smoothstep(0.0, 1.0, value) * v_weight;
|
||
if (alpha < 0.05) {
|
||
discard;
|
||
}
|
||
|
||
gl_FragColor = v_hitColor;
|
||
}`,uniforms:{u_size:function(){return(this.get(tA.RADIUS)+this.get(tA.BLUR))*2}.bind(this),u_blurSlope:function(){return this.get(tA.RADIUS)/Math.max(1,this.get(tA.BLUR))}.bind(this)},postProcesses:[{fragmentShader:`
|
||
precision mediump float;
|
||
|
||
uniform sampler2D u_image;
|
||
uniform sampler2D u_gradientTexture;
|
||
uniform float u_opacity;
|
||
|
||
varying vec2 v_texCoord;
|
||
|
||
void main() {
|
||
vec4 color = texture2D(u_image, v_texCoord);
|
||
gl_FragColor.a = color.a * u_opacity;
|
||
gl_FragColor.rgb = texture2D(u_gradientTexture, vec2(0.5, color.a)).rgb;
|
||
gl_FragColor.rgb *= gl_FragColor.a;
|
||
}`,uniforms:{u_gradientTexture:function(){return this.gradient_}.bind(this),u_opacity:function(){return this.getOpacity()}.bind(this)}}]})},e.prototype.renderDeclutter=function(){},e}(ME);function aot(r){for(var e=1,t=256,n=mo(e,t),i=n.createLinearGradient(0,0,e,t),a=1/(r.length-1),o=0,s=r.length;o<s;++o)i.addColorStop(o*a,r[o]);return n.fillStyle=i,n.fillRect(0,0,e,t),n.canvas}var rk=iot;const oot={extends:np,name:"ol-heatmap-layer",setup(r){const e=Be("map"),{properties:t}=Lr(r),n=qe(()=>new rk(t));return ye(t,()=>{n.value.setProperties(t)}),ur(()=>{e.addLayer(n.value)}),pr(()=>{e.removeLayer(n.value)}),Ur("heatmapLayer",n),Ur("stylable",n),{heatmapLayer:n}},props:{weight:{type:Function},extent:{type:Array},blur:{type:Number},radius:{type:Number}}};function sot(r,e,t,n,i,a){return Zn(),Yi("div",null,[Or(r.$slots,"default")])}var TS=me(oot,[["render",sot]]);function vw(r){vw.installed||(vw.installed=!0,r.component(gS.name,gS),r.component(mS.name,mS),r.component(yS.name,yS),r.component(_S.name,_S),r.component(CS.name,CS),r.component(BS.name,BS),r.component(TS.name,TS))}var Aot=Object.freeze(Object.defineProperty({__proto__:null,default:vw,install:vw,TileLayer:gS,WebGLTileLayer:mS,ImageLayer:yS,VectorLayer:_S,AnimatedClusterLayer:CS,WebglPointsLayer:BS,HeatmapLayer:TS},Symbol.toStringTag,{value:"Module"}));const lot={name:"ol-source-xyz",setup(r){const e=Be("tileLayer"),{properties:t}=Lr(r);let n=qe(()=>new z8(t));return ye(n,()=>{e.value.setSource(n.value)}),ye(e,()=>{e.value.setSource(n.value)}),ur(()=>{e.value.setSource(n.value)}),pr(()=>{e.value.setSource(null)}),{layer:e,source:n}},props:{attributions:{type:[String,Array]},url:{type:String},cacheSize:{type:Number,default:2048},crossOrigin:{type:String},maxZoom:{type:Number,default:28},minZoom:{type:Number,default:0},opaque:{type:Boolean},projection:{type:String,default:"EPSG:3857"},reprojectionErrorThreshold:{type:Number,default:.5},tileSize:{type:Array,default:()=>[256,256]},tilePixelRatio:{type:Number,default:1},tileKey:{type:String},transition:{type:Number},tileGrid:{type:Object}}};function uot(r,e,t,n,i,a){return Rr("",!0)}var bS=me(lot,[["render",uot]]);const cot={name:"ol-source-osm",setup(r){const e=Be("tileLayer"),{properties:t}=Lr(r);let n=qe(()=>new Mat(t));return ye(n,()=>{e.value.setSource(n.value)}),ye(e,()=>{e.value.setSource(n.value)}),ur(()=>{e.value.setSource(n.value)}),pr(()=>{e.value.setSource(null)}),{layer:e,source:n}},props:{attributions:{type:String},cacheSize:{type:Number,default:2048},crossOrigin:{type:String,default:"anonymous"},imageSmoothing:{type:Boolean,default:!0},minZoom:{type:Number,default:0},maxZoom:{type:Number,default:19},opaque:{type:Boolean,default:!0},reprojectionErrorThreshold:{type:Number,default:.5},transition:{type:Number,default:250},url:{type:String,default:"https://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png"},wrapX:{type:Boolean,default:!0}}};function hot(r,e,t,n,i,a){return Rr("",!0)}var SS=me(cot,[["render",hot]]);const fot={name:"ol-source-image-static",setup(r){const e=Be("imageLayer"),{properties:t}=Lr(r),n=()=>new Sat(yA(qn({},t),{projection:typeof t.projection=="string"?t.projection:new Bu(qn({},t.projection))}));let i=n();return ye(t,()=>{e.setSource(null),i=n(),e.setSource(i)}),ur(()=>{e.setSource(i)}),pr(()=>{e.setSource(null)}),{layer:e,source:i}},props:{attributions:{type:String},crossOrigin:{type:String},imageExtent:{type:Array},projection:{type:[String,Object]},imageSmoothing:{type:Boolean,default:!0},imageSize:{type:Array},url:{type:String}}};function pot(r,e,t,n,i,a){return Rr("",!0)}var xS=me(fot,[["render",pot]]);const dot={name:"ol-source-wmts",setup(r){const e=Be("tileLayer"),{properties:t}=Lr(r),n=qe(()=>Ve(t.projection).getExtent()),i=qe(()=>_A(n.value)),a=qe(()=>Vr(n.value)/256),o=qe(()=>{const A=new Array(t.tileZoomLevel),l=new Array(t.tileZoomLevel);for(var u=0;u<t.tileZoomLevel;++u)A[u]=a.value/Math.pow(2,u),l[u]=u;return new wS({origin:i.value,resolutions:A,matrixIds:l})}),s=qe(()=>new tk(yA(qn({},t),{projection:typeof t.projection=="string"?t.projection:new Bu(qn({},t.projection)),tileGrid:o.value})));return ye(s,()=>{e.value.setSource(s.value)}),ye(e,()=>{e.value.setSource(s.value)}),ur(()=>{e.value.setSource(s.value)}),pr(()=>{e.value.setSource(null)}),{tileLayer:e,source:s}},props:{tileZoomLevel:{type:Number,default:30},attributions:{type:String},cacheSize:{type:Number},crossOrigin:{type:String},imageSmoothing:{type:Boolean,default:!0},projection:{type:[String,Object],default:"EPSG:3857"},reprojectionErrorThreshold:{type:Number,default:.5},tilePixelRatio:{type:Number,default:1},format:{type:String,default:"image/jpeg"},version:{type:String,default:"1.0.0"},matrixSet:{type:String},dimensions:{type:Object},requestEncoding:{type:String,default:"KVP"},url:{type:String},urls:{type:Array},wrapX:{type:Boolean,default:!1},transition:{type:Number},layer:{type:String},style:{type:String}}};function vot(r,e,t,n,i,a){return Rr("",!0)}var IS=me(dot,[["render",vot]]);const got={name:"ol-source-vector",setup(r){const e=Be("vectorLayer")||Be("heatmapLayer"),{properties:t}=Lr(r);let n=qe(()=>new Tu(t));const i=()=>{e.value.setSource(null),e.value.setSource(n.value),e.value.changed()};return ye(t,()=>{i()}),ye(e,()=>{i()}),ur(()=>{e.value.setSource(n.value)}),pr(()=>{e.value.setSource(null)}),Ur("vectorSource",n),{layer:e,source:n}},props:{attributions:{type:[String,Array]},features:{type:Array,default:()=>[]},format:{type:Object},loader:{type:Function},overlaps:{type:Boolean,default:!0},projection:{type:String,default:"EPSG:3857"},strategy:{type:Function},url:{type:[String,Function]},useSpatialIndex:{type:Boolean,default:!0},wrapX:{type:Boolean,default:!0}}};function mot(r,e,t,n,i,a){return Zn(),Yi("div",null,[Or(r.$slots,"default")])}var LS=me(got,[["render",mot]]);const yot={name:"ol-source-cluster",setup(r){const e=Be("vectorLayer"),{properties:t}=Lr(r);let n=qe(()=>new X8(t));const i=()=>{e.value.setSource(null),e.value.setSource(n.value),e.value.changed()};return ye(t,()=>{i()}),ye(e,()=>{i()}),ur(()=>{e.value.setSource(n.value),e.value.changed()}),pr(()=>{e.value.setSource(null)}),Ur("vectorLayer",n),{layer:e,source:n}},props:{attributions:{type:[String,Array]},distance:{type:Number,default:20},geometryFunction:{type:Function,default:r=>r.getGeometry()},wrapX:{type:Boolean,default:!0}}};function _ot(r,e,t,n,i,a){return Zn(),Yi("div",null,[Or(r.$slots,"default")])}var FS=me(yot,[["render",_ot]]);const wot={name:"ol-source-bingmaps",setup(r){const e=Be("tileLayer"),{properties:t}=Lr(r);let n=qe(()=>new sat(yA(qn({},t),{key:t.apiKey})));return ye(n,()=>{e.value.setSource(n.value)}),ye(e,()=>{e.value.setSource(n.value)}),ur(()=>{e.value.setSource(n.value)}),pr(()=>{e.value.setSource(null)}),{layer:e,source:n}},props:{cacheSize:{type:Number},hidpi:{type:Boolean,default:!1},culture:{type:String,default:"en-us"},apiKey:{type:String},imagerySet:{type:String},imageSmoothing:{type:Boolean,default:!0},maxZoom:{type:Number,default:21},reprojectionErrorThreshold:{type:Number,default:.5},tileLoadFunction:{type:Function,default:(r,e)=>r.getImage().src=e},wrapX:{type:Boolean,default:!0},transition:{type:Number}}};function Eot(r,e,t,n,i,a){return Rr("",!0)}var OS=me(wot,[["render",Eot]]);class Zl extends tk{constructor(e){Zl.layerLabelMap={vec:"cva",ter:"cta",img:"cia"},Zl.layerZoomMap={vec:18,ter:14,img:18};let t=e||{};t.layerType=t.layerType||"vec",t.layerType=t.isLabel?Zl.layerLabelMap[t.layerType]:t.layerType,t.matrixSet=t.projection==="EPSG:4326"||t.projection==="EPSG:4490"?"c":"w",!t.url&&!t.urls&&(t.url="https://t{0-7}.tianditu.gov.cn/{layer}_{proj}/wmts?"),t.tk&&(t.url=`${t.url}tk=${t.tk}`),t.url=t.url.replace("{layer}",t.layerType).replace("{proj}",t.matrixSet);let n=t.tileGrid||Zl.getTileGrid(t.projection||"EPSG:3857"),i=t.crossOrigin!==void 0?t.crossOrigin:"anonymous",a={version:t.version||"1.0.0",format:t.format||"tiles",dimensions:t.dimensions||{},layer:t.layerType,matrixSet:t.matrixSet,tileGrid:n,style:t.style||"default",cacheSize:t.cacheSize,crossOrigin:i,opaque:t.opaque===void 0?!0:t.opaque,maxZoom:Zl.layerZoomMap[t.layerType],reprojectionErrorThreshold:t.reprojectionErrorThreshold,url:t.url,urls:t.urls,projection:t.projection||"EPSG:3857",wrapX:t.wrapX};t.tileProxy&&(a.tileLoadFunction=s),super(a),t.tileProxy&&(this.tileProxy=t.tileProxy);let o=this;function s(A,l){A.getImage().src=o.tileProxy+encodeURIComponent(l)}}static getTileGrid(e){return e==="EPSG:4326"||e==="EPSG:4490"?Zl.default4326TileGrid():Zl.default3857TileGrid()}static default4326TileGrid(){let e=[],t=[];for(let i=1;i<19;i++)e.push(.703125*2/Math.pow(2,i)),t.push(i);return new wS({extent:[-180,-90,180,90],resolutions:e,origin:[-180,90],matrixIds:t,minZoom:1})}static default3857TileGrid(){let e=[],t=[];for(let i=1;i<19;i++)e.push(78271.51696402031*2/Math.pow(2,i)),t.push(i);return new wS({extent:[-200375083427892e-7,-200375083427892e-7,200375083427892e-7,200375083427892e-7],resolutions:e,matrixIds:t,origin:[-200375083427892e-7,200375083427892e-7],minZoom:1})}}const Cot={name:"ol-source-tianditu",setup(r){const e=Be("tileLayer"),{properties:t}=Lr(r);let n=qe(()=>new Zl(t));return ye(n,()=>{e.value.setSource(n.value)}),ye(e,()=>{e.value.setSource(n.value)}),ur(()=>{e.value.setSource(n.value)}),pr(()=>{e.value.setSource(null)}),{layer:e,source:n}},props:{layerType:{type:String,default:"img"},tk:{type:String},isLabel:{type:Boolean,default:!1},cacheSize:{type:Number},crossOrigin:{type:String},projection:{Type:String,default:"EPSG:3857"},hidpi:{type:Boolean,default:!1},requestEncoding:{type:String,default:"KVP"},format:{type:String},version:{type:String,default:"1.0.0"},culture:{type:String,default:"en-us"},matrixSet:{type:String},dimensions:{type:Object,default:()=>{}},imageSmoothing:{type:Boolean,default:!0},maxZoom:{type:Number,default:21},reprojectionErrorThreshold:{type:Number},tileLoadFunction:{type:Function,default:(r,e)=>r.getImage().src=e},wrapX:{type:Boolean,default:!0},transition:{type:Number}}};function Bot(r,e,t,n,i,a){return Rr("",!0)}var RS=me(Cot,[["render",Bot]]);const Tot={name:"ol-source-image-wms",setup(r){const e=Be("imageLayer"),{properties:t}=Lr(r),n=()=>new Lat(yA(qn({},t),{params:{LAYERS:r.layers,STYLES:r.styles,TIME:r.time},projection:typeof t.projection=="string"?t.projection:new Bu(qn({},t.projection))}));let i=n();return ye(t,()=>{e.setSource(null),i=n(),e.setSource(i)}),ur(()=>{e.setSource(i)}),pr(()=>{e.setSource(null)}),{layer:e,source:i}},props:{attributions:{type:String},crossOrigin:{type:String},imageExtent:{type:Array},projection:{type:[String,Object],default:"EPSG:3857"},reprojectionErrorThreshold:{type:Number,default:.5},format:{type:String,default:"image/png"},version:{type:String,default:"1.3.0"},matrixSet:{type:String},serverType:{type:String,default:"mapserver"},imageSmoothing:{type:Boolean,default:!0},layers:{type:[String,Array],required:!0},styles:{type:[String,Array],default:""},time:{type:String},ratio:{type:Number,default:1},imageSize:{type:Array},url:{type:String},params:{type:Object},imageLoadFunction:{type:Function}}};function bot(r,e,t,n,i,a){return Rr("",!0)}var MS=me(Tot,[["render",bot]]);const Sot={name:"ol-source-webglpoints",setup(r){const e=Be("webglPointsLayer"),{properties:t}=Lr(r);let n=qe(()=>new Tu(t));const i=()=>{e.value.setSource(null),e.value.setSource(n.value),e.value.changed()};return ye(t,()=>{i()}),ye(e,()=>{i()}),ur(()=>{e.value.setSource(n.value)}),pr(()=>{e.value.setSource(null)}),Ur("vectorSource",n),{layer:e,source:n}},props:{attributions:{type:[String,Array]},features:{type:Array,default:()=>[]},format:{type:Object},loader:{type:Function},overlaps:{type:Boolean,default:!0},projection:{type:String,default:"EPSG:3857"},strategy:{type:Function},url:{type:[String,Function]},useSpatialIndex:{type:Boolean,default:!0},wrapX:{type:Boolean,default:!0}}};function xot(r,e,t,n,i,a){return Zn(),Yi("div",null,[Or(r.$slots,"default")])}var NS=me(Sot,[["render",xot]]);function gw(r){gw.installed||(gw.installed=!0,r.component(bS.name,bS),r.component(SS.name,SS),r.component(xS.name,xS),r.component(IS.name,IS),r.component(LS.name,LS),r.component(FS.name,FS),r.component(OS.name,OS),r.component(RS.name,RS),r.component(MS.name,MS),r.component(NS.name,NS))}var Iot=Object.freeze(Object.defineProperty({__proto__:null,default:gw,install:gw,SourceXYZ:bS,SourceOSM:SS,SourceImageStatic:xS,SourceWMTS:IS,SourceVector:LS,SourceCluster:FS,SourceTianDiTu:RS,SourceImageWMS:MS,SourceWebglPoints:NS,SourceBingMaps:OS},Symbol.toStringTag,{value:"Module"}));function Wi(r,e,t){const n=Be("map"),i=Be("controlBar",null),a=i!=null?i.value:n,{properties:o}=Lr(e);let s=qe(()=>new r(qn({},o)));return s.value.set("order",t.attrs.order==null?0:t.attrs.order),ye(s,(A,l)=>{a.removeControl&&(a.removeControl(l),a.addControl(A),n.changed())}),ur(()=>{if(a.addControl(s.value),a.controls_!=null){let A=[...a.controls_];A.sort((l,u)=>l.get("order")-u.get("order")),a.controls_=[],A.forEach(l=>{a.addControl(l)}),a.changed()}n.changed()}),pr(()=>{if(a.removeControl)a.removeControl(s.value);else{let A=a.controls_.findIndex(l=>l==s.value);a.controls_.splice(A,1),s.value.dispose()}n.changed()}),{map:n,control:s}}const Lot={name:"ol-fullscreen-control",setup(r,e){const{control:t}=Wi(qz,r,e);return{control:t}},props:{className:{type:String,default:"ol-full-screen"},label:{type:String,default:"⤢"},labelActive:{type:String,default:"×"},activeClassName:{type:String,default:"ol-full-screen-true"},inactiveClassName:{type:String,default:"ol-full-screen-false"},tipLabel:{type:String,default:"Toggle full-screen"},keys:{type:Boolean,default:!1},target:{type:Object,default:void 0},source:{type:Object,default:void 0}}};function Fot(r,e,t,n,i,a){return Rr("",!0)}var PS=me(Lot,[["render",Fot]]);const Oot={name:"ol-mouseposition-control",setup(r,e){const{control:t}=Wi(tX,r,e);return{control:t}},props:{className:{type:String,default:"ol-mouse-position"},coordinateFormat:{type:[String,Function]},projection:{type:String},render:{type:Function},target:{type:HTMLElement},undefinedHTML:{type:String,default:" "}}};function Rot(r,e,t,n,i,a){return Rr("",!0)}var US=me(Oot,[["render",Rot]]);const Mot={name:"ol-attribution-control",setup(r,e){const{control:t}=Wi(v4,r,e);return{control:t}},props:{className:{type:String,default:"ol-attribution"},target:{type:HTMLElement},collapsible:{type:Boolean},collapsed:{type:Boolean,default:!0},tipLabel:{type:String,default:"Attributions"},label:{type:String,default:"i"},expandClassName:{type:String,default:"ol-attribution-expand"},collapseLabel:{type:String,default:"»"},collapseClassName:{type:String,default:"ol-attribution-collapse"},render:{type:Function}}};function Not(r,e,t,n,i,a){return Rr("",!0)}var DS=me(Mot,[["render",Not]]);const Pot={name:"ol-overviewmap-control",setup(r,e){const t=Be("map"),{control:n}=Wi(aX,r,e);return ur(()=>{n.value.setMap(t)}),pr(()=>{n.value.setMap(null)}),Ur("overviewMap",n),{control:n}},props:{className:{type:String,default:"ol-overviewmap"},collapsed:{type:Boolean,default:!0},collapseLabel:{type:String,default:"«"},collapsible:{type:Boolean,default:!0},label:{type:String,default:"»"},render:{type:Function},rotateWithView:{type:Boolean,default:!1},target:{type:HTMLElement},tipLabel:{type:String,default:"Overview map"}}};function Uot(r,e,t,n,i,a){return Zn(),Yi("div",null,[Or(r.$slots,"default")])}var QS=me(Pot,[["render",Uot]]);const Dot={name:"ol-scaleline-control",setup(r,e){const{control:t}=Wi(lX,r,e);return{control:t}},props:{className:{type:String,default:"ol-scale-line"},minWidth:{type:Number,default:64},render:{type:Function},target:{type:HTMLElement},units:{type:String,default:"metric"},bar:{type:Boolean,default:!1},steps:{type:Number,default:4},text:{type:Boolean,default:!1},dpi:{type:Number,default:void 0}}};function Qot(r,e,t,n,i,a){return Rr("",!0)}var kS=me(Dot,[["render",Qot]]);const kot={name:"ol-zoom-control",setup(r,e){const{control:t}=Wi(m4,r,e);return{control:t}},props:{duration:{type:Number,default:250},className:{type:String,default:"ol-zoom"},zoomInClassName:{type:String,default:"ol-zoom-in"},zoomOutClassName:{type:String,default:"ol-zoom-out"},zoomInLabel:{type:String,default:"+"},zoomOutLabel:{type:String,default:"-"},zoomInTipLabel:{type:String,default:"Zoom in"},zoomOutTipLabel:{type:String,default:"Zoom Out"},delta:{type:Number,default:1},target:{type:HTMLElement}}};function Hot(r,e,t,n,i,a){return Rr("",!0)}var HS=me(kot,[["render",Hot]]);const Got={name:"ol-zoomslider-control",setup(r,e){const{control:t}=Wi(hX,r,e);return{control:t}},props:{duration:{type:Number,default:200},className:{type:String,default:"ol-zoomslider"},render:{type:Function}}};function $ot(r,e,t,n,i,a){return Rr("",!0)}var GS=me(Got,[["render",$ot]]);const Vot={name:"ol-zoomtoextent-control",setup(r,e){const{control:t}=Wi(dX,r,e);return{control:t}},props:{className:{type:String,default:"ol-zoom-extent"},target:{type:HTMLElement},label:{type:String,default:"E"},tipLabel:{type:String,default:"Fit to extent"},extent:{type:Array}}};function jot(r,e,t,n,i,a){return Rr("",!0)}var $S=me(Vot,[["render",jot]]);const Kot={name:"ol-rotate-control",setup(r,e){const{control:t}=Wi(g4,r,e);return{control:t}},props:{className:{type:String,default:"ol-rotate"},label:{type:String,default:"⇧"},tipLabel:{type:String,default:"Reset rotation"},compassClassName:{type:String,default:"ol-compass"},duration:{type:Number,default:250},autoHide:{type:Boolean,default:!1},render:{type:Function},resetNorth:{type:Function},target:{type:HTMLElement}}};function Yot(r,e,t,n,i,a){return Rr("",!0)}var WN=me(Kot,[["render",Yot]]),nk={exports:{}},Wot=hat(kz);/*!
|
||
* ol-contextmenu - v4.1.0
|
||
* https://github.com/jonataswalker/ol-contextmenu
|
||
* Built: Sat Aug 15 2020 10:43:26 GMT-0300 (Brasilia Standard Time)
|
||
*/(function(r,e){(function(t,n){r.exports=n(Wot)})(ZA,function(t){function n(L){return L&&typeof L=="object"&&"default"in L?L:{default:L}}var i=n(t),a="ol-ctx-menu",o={namespace:a,container:a+"-container",separator:a+"-separator",submenu:a+"-submenu",hidden:a+"-hidden",icon:a+"-icon",zoomIn:a+"-zoom-in",zoomOut:a+"-zoom-out",unselectable:"ol-unselectable"},s=o,A="beforeopen",l="open",u="close",c="contextmenu",h={width:150,scrollAt:4,eventType:c,defaultItems:!0},f=[{text:"Zoom In",classname:o.zoomIn+" "+o.icon,callback:function(L,N){var x=N.getView();x.animate({zoom:+x.getZoom()+1,duration:700,center:L.coordinate})}},{text:"Zoom Out",classname:o.zoomOut+" "+o.icon,callback:function(L,N){var x=N.getView();x.animate({zoom:+x.getZoom()-1,duration:700,center:L.coordinate})}}];function p(L,N){if(N===void 0&&(N="Assertion failed"),!L)throw typeof Error<"u"?new Error(N):N}function v(L){return/^\d+$/.test(L)}function m(L,N){return L.classList?L.classList.contains(N):C(N).test(L.className)}function g(L,N,x){N===void 0&&(N=window.document);var S=Array.prototype.slice,P=[];if(/^(#?[\w-]+|\.[\w-.]+)$/.test(L))switch(L[0]){case"#":P=[_(L.substr(1))];break;case".":P=S.call(N.getElementsByClassName(L.substr(1).replace(/\./g," ")));break;default:P=S.call(N.getElementsByTagName(L))}else P=S.call(N.querySelectorAll(L));return x?P:P[0]}function _(L){return L=L[0]==="#"?L.substr(1,L.length):L,document.getElementById(L)}function w(L){var N=document.createDocumentFragment(),x=document.createElement("div");for(x.innerHTML=L;x.firstChild;)N.appendChild(x.firstChild);return N}function C(L){return new RegExp("(^|\\s+) "+L+" (\\s+|$)")}function F(L,N,x){L.classList?L.classList.add(N):L.className=(L.className+" "+N).trim(),x&&v(x)&&window.setTimeout(function(){return O(L,N)},x)}function O(L,N,x){L.classList?L.classList.remove(N):L.className=L.className.replace(C(N)," ").trim(),x&&v(x)&&window.setTimeout(function(){return F(L,N)},x)}var I=function(L){return this.Base=L,this.map=void 0,this.viewport=void 0,this.coordinateClicked=void 0,this.pixelClicked=void 0,this.lineHeight=0,this.items={},this.opened=!1,this.submenu={left:L.options.width-15+"px",lastLeft:""},this.eventHandler=this.handleEvent.bind(this),this.eventMapMoveHandler=this.handleMapMoveEvent.bind(this),this};I.prototype.init=function(L){this.map=L,this.viewport=L.getViewport(),this.setListeners(),this.Base.Html.createMenu(),this.lineHeight=this.getItemsLength()>0?this.Base.container.offsetHeight/this.getItemsLength():this.Base.Html.cloneAndGetLineHeight()},I.prototype.getItemsLength=function(){var L=this,N=0;return Object.keys(this.items).forEach(function(x){L.items[x].submenu||L.items[x].separator||N++}),N},I.prototype.getPixelClicked=function(){return this.pixelClicked},I.prototype.getCoordinateClicked=function(){return this.coordinateClicked},I.prototype.positionContainer=function(L){var N=this,x=this.Base.container,S=this.map.getSize(),P=S[1]-L[1],U=S[0]-L[0],tt=x.offsetWidth,q=Math.round(this.lineHeight*this.getItemsLength()),rt=g("li."+s.submenu+">div",x,!0);U>=tt?(x.style.right="auto",x.style.left=L[0]+5+"px"):(x.style.left="auto",x.style.right="15px"),P>=q?(x.style.bottom="auto",x.style.top=L[1]-10+"px"):(x.style.top="auto",x.style.bottom=0),function nt(At,ct,bt){if(Array.isArray(At))At.forEach(function(z){return nt(z,ct,bt)});else for(var M=Array.isArray(ct)?ct:ct.split(/\s+/),Y=M.length;Y--;)m(At,M[Y])&&O(At,M[Y],bt)}(x,s.hidden),rt.length&&(this.submenu.lastLeft=U<2*tt?"-"+tt+"px":this.submenu.left,rt.forEach(function(nt){var At,ct,bt,M={w:window.innerWidth||document.documentElement.clientWidth,h:window.innerHeight||document.documentElement.clientHeight},Y=(ct=(At=nt).getBoundingClientRect(),bt=document.documentElement,{left:ct.left+window.pageXOffset-bt.clientLeft,top:ct.top+window.pageYOffset-bt.clientTop,width:At.offsetWidth,height:At.offsetHeight}),z=Y.height,H=P-z;H<0&&(H=z-(M.h-Y.top),nt.style.top="-"+H+"px"),nt.style.left=N.submenu.lastLeft}))},I.prototype.openMenu=function(L,N){this.Base.dispatchEvent({type:l,pixel:L,coordinate:N}),this.opened=!0,this.positionContainer(L)},I.prototype.closeMenu=function(){this.opened=!1,function L(N,x,S){if(Array.isArray(N))N.forEach(function(tt){return L(tt,x)});else for(var P=Array.isArray(x)?x:x.split(/\s+/),U=P.length;U--;)m(N,P[U])||F(N,P[U],S)}(this.Base.container,s.hidden),this.Base.dispatchEvent({type:u})},I.prototype.setListeners=function(){this.viewport.addEventListener(this.Base.options.eventType,this.eventHandler,!1),this.map.on("movestart",this.eventMapMoveHandler)},I.prototype.removeListeners=function(){this.viewport.removeEventListener(this.Base.options.eventType,this.eventHandler,!1),this.map.un("movestart",this.eventMapMoveHandler)},I.prototype.handleEvent=function(L){var N=this;this.coordinateClicked=this.map.getEventCoordinate(L),this.pixelClicked=this.map.getEventPixel(L),this.Base.dispatchEvent({type:A,pixel:this.pixelClicked,coordinate:this.coordinateClicked}),this.Base.disabled||(this.Base.options.eventType===c&&(L.stopPropagation(),L.preventDefault()),this.openMenu(this.pixelClicked,this.coordinateClicked),L.target.addEventListener("pointerdown",{handleEvent:function(x){N.opened&&(N.closeMenu(),x.stopPropagation(),L.target.removeEventListener(x.type,this,!1))}},!1))},I.prototype.handleMapMoveEvent=function(L){this.closeMenu()},I.prototype.setItemListener=function(L,N){var x,S=this;L&&typeof this.items[N].callback=="function"&&(x=this.items[N].callback,L.addEventListener("click",function(P){P.preventDefault();var U={coordinate:S.getCoordinateClicked(),data:S.items[N].data||null};S.closeMenu(),x(U,S.map)},!1))};var b=function(L){return this.Base=L,this.Base.container=this.container=this.createContainer(!0),this};return b.prototype.createContainer=function(L){var N=document.createElement("div"),x=document.createElement("ul"),S=[s.container,s.unselectable];return L&&S.push(s.hidden),N.className=S.join(" "),N.style.width=parseInt(this.Base.options.width,10)+"px",N.appendChild(x),N},b.prototype.createMenu=function(){var L=[];if("items"in this.Base.options?L=this.Base.options.defaultItems?this.Base.options.items.concat(f):this.Base.options.items:this.Base.options.defaultItems&&(L=f),L.length===0)return!1;L.forEach(this.addMenuEntry,this)},b.prototype.addMenuEntry=function(L){var N,x=this;if(L.items&&Array.isArray(L.items)){L.classname=L.classname||"",N=s.submenu,~L.classname.indexOf(N)||(L.classname=L.classname.length?" "+s.submenu:s.submenu);var S=this.generateHtmlAndPublish(this.container,L),P=this.createContainer();P.style.left=this.Base.Internal.submenu.lastLeft||this.Base.Internal.submenu.left,S.appendChild(P),L.items.forEach(function(U){x.generateHtmlAndPublish(P,U,!0)})}else this.generateHtmlAndPublish(this.container,L)},b.prototype.generateHtmlAndPublish=function(L,N,x){var S,P,U="_"+Math.random().toString(36).substr(2,9),tt=!1;return typeof N=="string"&&N.trim()==="-"?(S=w('<li id="'+U+'" class="'+s.separator+'"><hr></li>'),P=[].slice.call(S.childNodes,0)[0],L.firstChild.appendChild(S),tt=!0):(N.classname=N.classname||"",S=w("<span>"+N.text+"</span>"),P=document.createElement("li"),N.icon&&(N.classname===""?N.classname=s.icon:N.classname.indexOf(s.icon)===-1&&(N.classname+=" "+s.icon),P.setAttribute("style","background-image:url("+N.icon+")")),P.id=U,P.className=N.classname,P.appendChild(S),L.firstChild.appendChild(P)),this.Base.Internal.items[U]={id:U,submenu:x||0,separator:tt,callback:N.callback,data:N.data||null},this.Base.Internal.setItemListener(P,U),P},b.prototype.removeMenuEntry=function(L){var N=g("#"+L,this.container.firstChild);N&&this.container.firstChild.removeChild(N),delete this.Base.Internal.items[L]},b.prototype.cloneAndGetLineHeight=function(){var L=this.container.cloneNode(),N=w("<span>Foo</span>"),x=w("<span>Foo</span>"),S=document.createElement("li"),P=document.createElement("li");S.appendChild(N),P.appendChild(x),L.appendChild(S),L.appendChild(P),this.container.parentNode.appendChild(L);var U=L.offsetHeight/2;return this.container.parentNode.removeChild(L),U},function(L){function N(x){x===void 0&&(x={}),p(typeof x=="object","@param `opt_options` should be object type!"),this.options=function(S,P){var U={};for(var tt in S)U[tt]=S[tt];for(var q in P)U[q]=P[q];return U}(h,x),this.disabled=!1,this.Internal=new I(this),this.Html=new b(this),L.call(this,{element:this.container})}return L&&(N.__proto__=L),N.prototype=Object.create(L&&L.prototype),N.prototype.constructor=N,N.prototype.clear=function(){Object.keys(this.Internal.items).forEach(this.Html.removeMenuEntry,this.Html)},N.prototype.close=function(){this.Internal.closeMenu()},N.prototype.enable=function(){this.disabled=!1},N.prototype.disable=function(){this.disabled=!0},N.prototype.getDefaultItems=function(){return f},N.prototype.countItems=function(){return Object.keys(this.Internal.items).length},N.prototype.extend=function(x){p(Array.isArray(x),"@param `arr` should be an Array."),x.forEach(this.push,this)},N.prototype.isOpen=function(){return this.Internal.opened},N.prototype.updatePosition=function(x){p(Array.isArray(x),"@param `pixel` should be an Array."),this.isOpen()&&this.Internal.positionContainer(x)},N.prototype.pop=function(){var x=Object.keys(this.Internal.items);this.Html.removeMenuEntry(x[x.length-1])},N.prototype.push=function(x){p(x!=null,"@param `item` must be informed."),this.Html.addMenuEntry(x)},N.prototype.shift=function(){this.Html.removeMenuEntry(Object.keys(this.Internal.items)[0])},N.prototype.setMap=function(x){L.prototype.setMap.call(this,x),x?this.Internal.init(x,this):this.Internal.removeListeners()},N}(i.default)})})(nk);var zot=nk.exports;const Xot={name:"ol-context-menu",setup(r,e){const{control:t}=Wi(zot,r,e);return{control:t}},props:{eventType:{type:String,default:"contextmenu"},defaultItems:{type:Boolean,default:!0},width:{type:Number,default:150},items:{type:Array,default:()=>[]}}};function qot(r,e,t,n,i,a){return Rr("",!0)}var VS=me(Xot,[["render",qot]]),Go=function(r){r=r||{};var e=document.createElement("button"),t=document.createElement("div");t.className=(r.className||"ol-swipe")+" ol-unselectable ol-control",t.appendChild(e),t.addEventListener("mousedown",this.move.bind(this)),t.addEventListener("touchstart",this.move.bind(this)),Mr.call(this,{element:t}),this.precomposeRight_=this.precomposeRight.bind(this),this.precomposeLeft_=this.precomposeLeft.bind(this),this.postcompose_=this.postcompose.bind(this),this.layers=[],r.layers&&this.addLayer(r.layers,!1),r.rightLayers&&this.addLayer(r.rightLayers,!0),this.on("propertychange",function(n){if(this.getMap())try{this.getMap().renderSync()}catch{}this.get("orientation")==="horizontal"?(this.element.style.top=this.get("position")*100+"%",this.element.style.left=""):(this.get("orientation")!=="vertical"&&this.set("orientation","vertical"),this.element.style.left=this.get("position")*100+"%",this.element.style.top=""),n.key==="orientation"&&(this.element.classList.remove("horizontal","vertical"),this.element.classList.add(this.get("orientation"))),this.isMoving||this.layers.forEach(function(i){i.layer.getImageRatio&&i.layer.changed()})}.bind(this)),this.set("position",r.position||.5),this.set("orientation",r.orientation||"vertical")};Dr(Go,Mr);Go.prototype.setMap=function(r){var e,t;if(this.getMap()){for(e=0;e<this.layers.length;e++)t=this.layers[e],t.right?t.layer.un(["precompose","prerender"],this.precomposeRight_):t.layer.un(["precompose","prerender"],this.precomposeLeft_),t.layer.un(["postcompose","postrender"],this.postcompose_);try{this.getMap().renderSync()}catch{}}if(Mr.prototype.setMap.call(this,r),r){for(this._listener=[],e=0;e<this.layers.length;e++)t=this.layers[e],t.right?t.layer.on(["precompose","prerender"],this.precomposeRight_):t.layer.on(["precompose","prerender"],this.precomposeLeft_),t.layer.on(["postcompose","postrender"],this.postcompose_);try{r.renderSync()}catch{}}};Go.prototype.isLayer_=function(r){for(var e=0;e<this.layers.length;e++)if(this.layers[e].layer===r)return e;return-1};Go.prototype.addLayer=function(r,e){r instanceof Array||(r=[r]);for(var t=0;t<r.length;t++){var n=r[t];if(this.isLayer_(n)<0&&(this.layers.push({layer:n,right:e}),this.getMap())){e?n.on(["precompose","prerender"],this.precomposeRight_):n.on(["precompose","prerender"],this.precomposeLeft_),n.on(["postcompose","postrender"],this.postcompose_);try{this.getMap().renderSync()}catch{}}}};Go.prototype.removeLayers=function(){var r=[];this.layers.forEach(function(e){r.push(e.layer)}),this.removeLayer(r)};Go.prototype.removeLayer=function(r){r instanceof Array||(r=[r]);for(var e=0;e<r.length;e++){var t=this.isLayer_(r[e]);t>=0&&this.getMap()&&(this.layers[t].right?r[e].un(["precompose","prerender"],this.precomposeRight_):r[e].un(["precompose","prerender"],this.precomposeLeft_),r[e].un(["postcompose","postrender"],this.postcompose_),this.layers.splice(t,1))}if(this.getMap())try{this.getMap().renderSync()}catch{}};Go.prototype.getRectangle=function(){var r;return this.get("orientation")==="vertical"?(r=this.getMap().getSize(),[0,0,r[0]*this.get("position"),r[1]]):(r=this.getMap().getSize(),[0,0,r[0],r[1]*this.get("position")])};Go.prototype.move=function(r){var e=this,t;switch(this._movefn||(this._movefn=this.move.bind(this)),r.type){case"touchcancel":case"touchend":case"mouseup":{e.isMoving=!1,["mouseup","mousemove","touchend","touchcancel","touchmove"].forEach(function(s){document.removeEventListener(s,e._movefn)}),this.layers.forEach(function(s){s.layer.getImageRatio&&s.layer.changed()});break}case"mousedown":case"touchstart":e.isMoving=!0,["mouseup","mousemove","touchend","touchcancel","touchmove"].forEach(function(s){document.addEventListener(s,e._movefn)});case"mousemove":case"touchmove":{if(e.isMoving)if(e.get("orientation")==="vertical"){var n=r.pageX||r.touches&&r.touches.length&&r.touches[0].pageX||r.changedTouches&&r.changedTouches.length&&r.changedTouches[0].pageX;if(!n)break;n-=e.getMap().getTargetElement().getBoundingClientRect().left+window.pageXOffset-document.documentElement.clientLeft,t=e.getMap().getSize()[0];var i=t-Math.min(Math.max(0,t-n),t);t=i/t,e.set("position",t),e.dispatchEvent({type:"moving",size:[i,e.getMap().getSize()[1]],position:[t,0]})}else{var a=r.pageY||r.touches&&r.touches.length&&r.touches[0].pageY||r.changedTouches&&r.changedTouches.length&&r.changedTouches[0].pageY;if(!a)break;a-=e.getMap().getTargetElement().getBoundingClientRect().top+window.pageYOffset-document.documentElement.clientTop,t=e.getMap().getSize()[1];var o=t-Math.min(Math.max(0,t-a),t);t=o/t,e.set("position",t),e.dispatchEvent({type:"moving",size:[e.getMap().getSize()[0],o],position:[0,t]})}break}}};Go.prototype._transformPt=function(r,e){var t=r.inversePixelTransform,n=e[0],i=e[1];return e[0]=t[0]*n+t[2]*i+t[4],e[1]=t[1]*n+t[3]*i+t[5],e};Go.prototype._drawRect=function(r,e){var t=r.inversePixelTransform;if(t){var n=[[e[0][0],e[0][1]],[e[0][0],e[1][1]],[e[1][0],e[1][1]],[e[1][0],e[0][1]],[e[0][0],e[0][1]]];if(r.context.save(),r.target.getImageRatio){var i=-Math.atan2(r.frameState.pixelToCoordinateTransform[1],r.frameState.pixelToCoordinateTransform[0]);r.context.translate(r.frameState.size[0]/2,r.frameState.size[1]/2),r.context.rotate(i),r.context.translate(-r.frameState.size[0]/2,-r.frameState.size[1]/2)}n.forEach(function(o,s){o=[o[0]*t[0]-o[1]*t[1]+t[4],-o[0]*t[2]+o[1]*t[3]+t[5]],s?r.context.lineTo(o[0],o[1]):r.context.moveTo(o[0],o[1])}),r.context.restore()}else{var a=r.frameState.pixelRatio;r.context.rect(e[0][0]*a,e[0][1]*a,e[1][0]*a,e[1][1]*a)}};Go.prototype.precomposeLeft=function(r){var e=r.context;if(e instanceof WebGLRenderingContext){if(r.type==="prerender"){e.clearColor(0,0,0,0),e.clear(e.COLOR_BUFFER_BIT),e.enable(e.SCISSOR_TEST);var t=this.getMap().getSize(),n=this._transformPt(r,[0,t[1]]),i=this._transformPt(r,[t[0],0]),a=i[0]-n[0],o=i[1]-n[1];this.get("orientation")==="vertical"?a=Math.round(a*this.get("position")):(o=Math.round(o*this.get("position")),n[1]+=t[1]-o),e.scissor(n[0],n[1],a,o)}}else{var s=r.frameState.size;e.save(),e.beginPath();var A=[[0,0],[s[0],s[1]]];this.get("orientation")==="vertical"?A[1]=[s[0]*.5+this.getMap().getSize()[0]*(this.get("position")-.5),s[1]]:A[1]=[s[0],s[1]*.5+this.getMap().getSize()[1]*(this.get("position")-.5)],this._drawRect(r,A),e.clip()}};Go.prototype.precomposeRight=function(r){var e=r.context;if(e instanceof WebGLRenderingContext){if(r.type==="prerender"){e.clearColor(0,0,0,0),e.clear(e.COLOR_BUFFER_BIT),e.enable(e.SCISSOR_TEST);var t=this.getMap().getSize(),n=this._transformPt(r,[0,t[1]]),i=this._transformPt(r,[t[0],0]),a=i[0]-n[0],o=i[1]-n[1];this.get("orientation")==="vertical"?(a=Math.round(a*(1-this.get("position"))),n[0]+=t[0]-a):o=Math.round(o*(1-this.get("position"))),e.scissor(n[0],n[1],a,o)}}else{var s=r.frameState.size;e.save(),e.beginPath();var A=[[0,0],[s[0],s[1]]];this.get("orientation")==="vertical"?A[0]=[s[0]*.5+this.getMap().getSize()[0]*(this.get("position")-.5),0]:A[0]=[0,s[1]*.5+this.getMap().getSize()[1]*(this.get("position")-.5)],this._drawRect(r,A),e.clip()}};Go.prototype.postcompose=function(r){if(r.context instanceof WebGLRenderingContext){if(r.type==="postrender"){var e=r.context;e.disable(e.SCISSOR_TEST)}}else r.target.getClassName&&r.target.getClassName()!=="ol-layer"&&r.target.get("declutter")?setTimeout(function(){r.context.restore()},0):r.context.restore()};const Zot={name:"ol-swipe-control",setup(r,e){const{control:t}=Wi(Go,r,e),{layerList:n}=kc(r);return n.value.forEach((i,a)=>{t.value.addLayer(i,a==1)}),{control:t}},props:{layerList:{type:Array},className:{type:String,default:"ol-swipe"},position:{type:Number,default:.5},orientation:{type:String,default:"vertical"}}};function Jot(r,e,t,n,i,a){return Rr("",!0)}var jS=me(Zot,[["render",Jot]]),ys=function(r){r||(r={});var e=document.createElement("div");if(e.classList.add("ol-unselectable","ol-control","ol-bar"),r.className){var t=r.className.split(" ").filter(function(i){return i.length>0});e.classList.add.apply(e.classList,t)}if(r.group&&e.classList.add("ol-group"),Mr.call(this,{element:e,target:r.target}),this.set("toggleOne",r.toggleOne),this.set("autoDeactivate",r.autoDeactivate),this.controls_=[],r.controls instanceof Array)for(var n=0;n<r.controls.length;n++)this.addControl(r.controls[n])};Dr(ys,Mr);ys.prototype.setVisible=function(r){r?this.element.style.display="":this.element.style.display="none"};ys.prototype.getVisible=function(){return this.element.style.display!="none"};ys.prototype.setMap=function(r){Mr.prototype.setMap.call(this,r);for(var e=0;e<this.controls_.length;e++){var t=this.controls_[e];t.setMap(r)}};ys.prototype.getControls=function(){return this.controls_};ys.prototype.setPosition=function(r){this.element.classList.remove("ol-left","ol-top","ol-bottom","ol-right"),r=r.split("-");for(var e=0;e<r.length;e++)switch(r[e]){case"top":case"left":case"bottom":case"right":this.element.classList.add("ol-"+r[e]);break}};ys.prototype.addControl=function(r){this.controls_.push(r),r.setTarget(this.element),this.getMap()&&this.getMap().addControl(r),r.on("change:active",function(e){this.onActivateControl_(e,r)}.bind(this)),r.getActive&&this.onActivateControl_({target:r,active:r.getActive()},r)};ys.prototype.deactivateControls=function(r){for(var e=0;e<this.controls_.length;e++)this.controls_[e]!==r&&this.controls_[e].setActive&&this.controls_[e].setActive(!1)};ys.prototype.getActiveControls=function(){for(var r=[],e=0,t;t=this.controls_[e];e++)t.getActive&&t.getActive()&&r.push(t);return r};ys.prototype.setActive=function(r){if(!r&&this.get("autoDeactivate")&&this.deactivateControls(),r)for(var e=this.getControls(),t=0,n;n=e[t];t++)n.get("autoActivate")&&n.setActive(!0)};ys.prototype.onActivateControl_=function(r,e){if(this.get("toggleOne")){if(r.active){var t;for(t=0;t<this.controls_.length&&this.controls_[t]!==e;t++);if(t==this.controls_.length)return;this.deactivateControls(this.controls_[t])}else if(!this.getActiveControls().length){for(var n=0,i;i=this.controls_[n];n++)if(i.get("autoActivate")){i.setActive(!0);break}}}};ys.prototype.getControlsByName=function(r){var e=this.getControls();return e.filter(function(t){return t.get("name")===r})};const tst={name:"ol-control-bar",setup(r,e){const{control:t}=Wi(ys,r,e);return Ur("controlBar",t),{control:t}},props:{toggleOne:{type:Boolean,default:!0},group:{type:Boolean,default:!0}}};function est(r,e,t,n,i,a){return Or(r.$slots,"default")}var KS=me(tst,[["render",est]]);window.ol&&(ol.ext.input={});var ap=function(r){r=r||{},xi.call(this);var e=this.input=r.input;e||(e=this.input=document.createElement("INPUT"),r.type&&e.setAttribute("type",r.type),r.min!==void 0&&e.setAttribute("min",r.min),r.max!==void 0&&e.setAttribute("max",r.max),r.step!==void 0&&e.setAttribute("step",r.step),r.parent&&r.parent.appendChild(e)),r.disabled&&(e.disabled=!0),r.checked!==void 0&&(e.checked=!!r.checked),r.val!==void 0&&(e.value=r.val),r.hidden&&(e.style.display="none"),e.addEventListener("focus",function(){this.element&&this.element.classList.add("ol-focus")}.bind(this));var t;e.addEventListener("focusout",function(){this.element&&(t&&clearTimeout(t),t=setTimeout(function(){this.element.classList.remove("ol-focus")}.bind(this),0))}.bind(this))};Dr(ap,xi);ap.prototype._listenDrag=function(r,e){var t=function(n){this.moving=!0;var i=function(a){a.type==="pointerup"&&(document.removeEventListener("pointermove",i),document.removeEventListener("pointerup",i),document.removeEventListener("pointercancel",i),setTimeout(function(){this.moving=!1}.bind(this))),a.target===r&&e(a),a.stopPropagation(),a.preventDefault()}.bind(this);document.addEventListener("pointermove",i,!1),document.addEventListener("pointerup",i,!1),document.addEventListener("pointercancel",i,!1),n.stopPropagation(),n.preventDefault()}.bind(this);r.addEventListener("mousedown",t,!1),r.addEventListener("touchstart",t,!1)};ap.prototype.setValue=function(r){r!==void 0&&(this.input.value=r),this.input.dispatchEvent(new Event("change"))};ap.prototype.getValue=function(){return this.input.value};ap.prototype.getInputElement=function(){return this.input};var op=function(r){r=r||{},ap.call(this,r);var e=this.element=document.createElement("LABEL");r.html instanceof Element?e.appendChild(r.html):r.html!==void 0&&(e.innerHTML=r.html),e.className=("ol-ext-check ol-ext-checkbox "+(r.className||"")).trim(),this.input.parentNode&&this.input.parentNode.insertBefore(e,this.input),e.appendChild(this.input),e.appendChild(document.createElement("SPAN")),r.after&&e.appendChild(document.createTextNode(r.after)),this.input.addEventListener("change",function(){this.dispatchEvent({type:"check",checked:this.input.checked,value:this.input.value})}.bind(this))};Dr(op,ap);op.prototype.isChecked=function(){return this.input.checked};var ik=function(r){r=r||{},op.call(this,r),this.element.className=("ol-ext-toggle-switch "+(r.className||"")).trim()};Dr(ik,op);var ak=function(r){r=r||{},op.call(this,r),this.element.className=("ol-ext-check ol-ext-radio "+(r.className||"")).trim()};Dr(ak,op);var yt={};yt.create=function(r,e){e=e||{};var t;if(r==="TEXT")t=document.createTextNode(e.html||""),e.parent&&e.parent.appendChild(t);else{t=document.createElement(r),/button/i.test(r)&&t.setAttribute("type","button");for(var n in e)switch(n){case"className":{e.className&&e.className.trim&&t.setAttribute("class",e.className.trim());break}case"text":{t.innerText=e.text;break}case"html":{e.html instanceof Element?t.appendChild(e.html):e.html!==void 0&&(t.innerHTML=e.html);break}case"parent":{e.parent&&e.parent.appendChild(t);break}case"options":{if(/select/i.test(r))for(var i in e.options)yt.create("OPTION",{html:i,value:e.options[i],parent:t});break}case"style":{this.setStyle(t,e.style);break}case"change":case"click":{yt.addListener(t,n,e[n]);break}case"on":{for(var a in e.on)yt.addListener(t,a,e.on[a]);break}case"checked":{t.checked=!!e.checked;break}default:{t.setAttribute(n,e[n]);break}}}return t};yt.createSwitch=function(r){var e=yt.create("INPUT",{type:"checkbox",on:r.on,click:r.click,change:r.change,parent:r.parent}),t=Object.assign({input:e},r||{});return new ik(t),e};yt.createCheck=function(r){var e=yt.create("INPUT",{name:r.name,type:r.type==="radio"?"radio":"checkbox",on:r.on,parent:r.parent});console.log(e);var t=Object.assign({input:e},r||{});return r.type==="radio"?new ak(t):new op(t),e};yt.setHTML=function(r,e){e instanceof Element?r.appendChild(e):e!==void 0&&(r.innerHTML=e)};yt.appendText=function(r,e){r.appendChild(document.createTextNode(e||""))};yt.addListener=function(r,e,t,n){typeof e=="string"&&(e=e.split(" ")),e.forEach(function(i){r.addEventListener(i,t,n)})};yt.removeListener=function(r,e,t){typeof e=="string"&&(e=e.split(" ")),e.forEach(function(n){r.removeEventListener(n,t)})};yt.show=function(r){r.style.display=""};yt.hide=function(r){r.style.display="none"};yt.hidden=function(r){return yt.getStyle(r,"display")==="none"};yt.toggle=function(r){r.style.display=r.style.display==="none"?"":"none"};yt.setStyle=function(r,e){for(var t in e)switch(t){case"top":case"left":case"bottom":case"right":case"minWidth":case"maxWidth":case"width":case"height":{typeof e[t]=="number"?r.style[t]=e[t]+"px":r.style[t]=e[t];break}default:r.style[t]=e[t]}};yt.getStyle=function(r,e){var t,n=(r.ownerDocument||document).defaultView;if(n&&n.getComputedStyle)e=e.replace(/([A-Z])/g,"-$1").toLowerCase(),t=n.getComputedStyle(r,null).getPropertyValue(e);else if(r.currentStyle&&(e=e.replace(/-(\w)/g,function(i,a){return a.toUpperCase()}),t=r.currentStyle[e],/^\d+(em|pt|%|ex)?$/i.test(t)))return function(i){var a=r.style.left,o=r.runtimeStyle.left;return r.runtimeStyle.left=r.currentStyle.left,r.style.left=i||0,i=r.style.pixelLeft+"px",r.style.left=a,r.runtimeStyle.left=o,i}(t);return/px$/.test(t)?parseInt(t):t};yt.outerHeight=function(r){return r.offsetHeight+yt.getStyle(r,"marginBottom")};yt.outerWidth=function(r){return r.offsetWidth+yt.getStyle(r,"marginLeft")};yt.offsetRect=function(r){var e=r.getBoundingClientRect();return{top:e.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:e.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0),height:e.height||e.bottom-e.top,width:e.width||e.right-e.left}};yt.getFixedOffset=function(r){var e={left:0,top:0},t=function(n){if(!n)return e;if(yt.getStyle(n,"position")==="absolute"&&yt.getStyle(n,"transform")!=="none"){var i=n.getBoundingClientRect();return e.left+=i.left,e.top+=i.top,e}return t(n.offsetParent)};return t(r.offsetParent)};yt.positionRect=function(r,e){var t=0,n=0,i=function(a){if(a)return t+=a.offsetLeft,n+=a.offsetTop,i(a.offsetParent);var o={top:r.offsetTop+n,left:r.offsetLeft+t};return e&&(o.top-=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,o.left-=window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0),o.bottom=o.top+r.offsetHeight,o.right=o.top+r.offsetWidth,o};return i(r.offsetParent)};yt.scrollDiv=function(r,e){e=e||{};var t=!1,n=0,i,a=0,o=typeof e.onmove=="function"?e.onmove:function(){},s=e.vertical?"screenY":"screenX",A=e.vertical?"scrollTop":"scrollLeft",l=!1,u,c,h=0,f=function(){w&&(h++,setTimeout(p))},p=function(){if(w){if(h--,h)return;var I=r.clientHeight,b=r.scrollHeight;u=I/b,w.style.height=u*100+"%",w.style.top=r.scrollTop/b*100+"%",_.style.height=I+"px",I>b-.5?_.classList.add("ol-100pc"):_.classList.remove("ol-100pc")}},v=function(I){I.target.classList.contains("ol-noscroll")||(l=!1,t=I[s],a=new Date,r.classList.add("ol-move"),I.preventDefault(),window.addEventListener("pointermove",m),yt.addListener(window,["pointerup","pointercancel"],F))},m=function(I){if(l=!0,t!==!1){var b=(c?-1/u:1)*(t-I[s]);r[A]+=b,i=new Date,i-a&&(n=(n+b/(i-a))/2),t=I[s],a=i,b&&o(!0)}},g=function(I){var b=I>0?Math.min(100,I/2):Math.max(-100,I/2);I-=b,r[A]+=b,-1<I&&I<1?(l?setTimeout(function(){r.classList.remove("ol-move")}):r.classList.remove("ol-move"),l=!1,o(!1)):setTimeout(function(){g(I)},40)},_,w;if(e.vertical&&e.minibar){var C=function(I){r.removeEventListener("pointermove",C),r.parentNode.classList.add("ol-miniscroll"),w=yt.create("DIV"),_=yt.create("DIV",{className:"ol-scroll",html:w}),r.parentNode.insertBefore(_,r),w.addEventListener("pointerdown",function(b){c=!0,v(b)}),e.mousewheel&&(yt.addListener(_,["mousewheel","DOMMouseScroll","onmousewheel"],function(b){O(b)}),yt.addListener(w,["mousewheel","DOMMouseScroll","onmousewheel"],function(b){O(b)})),r.parentNode.addEventListener("pointerenter",f),window.addEventListener("resize",f),I!==!1&&f()};r.parentNode?C(!1):r.addEventListener("pointermove",C),r.addEventListener("scroll",function(){f()})}r.style["touch-action"]="none",r.style.overflow="hidden",r.classList.add("ol-scrolldiv"),yt.addListener(r,["pointerdown"],function(I){c=!1,v(I)}),r.addEventListener("click",function(I){r.classList.contains("ol-move")&&(I.preventDefault(),I.stopPropagation())},!0);var F=function(I){a=new Date-a,a>100||c?n=0:a>0&&(n=((n||0)+(t-I[s])/a)/2),g(e.animate===!1?0:n*200),t=!1,n=0,a=0,r.classList.contains("ol-move")?r.classList.remove("ol-hasClick"):(r.classList.add("ol-hasClick"),setTimeout(function(){r.classList.remove("ol-hasClick")},500)),c=!1,window.removeEventListener("pointermove",m),yt.removeListener(window,["pointerup","pointercancel"],F)},O=function(I){var b=Math.max(-1,Math.min(1,I.wheelDelta||-I.detail));return r.classList.add("ol-move"),r[A]-=b*30,r.classList.remove("ol-move"),!1};return e.mousewheel&&yt.addListener(r,["mousewheel","DOMMouseScroll","onmousewheel"],O),{refresh:f}};yt.dispatchEvent=function(r,e){var t;try{t=new CustomEvent(r)}catch{t=document.createEvent("CustomEvent"),t.initCustomEvent(r,!0,!0,{})}e.dispatchEvent(t)};var Su=function(r){r=r||{};var e=document.createElement("div");e.className=(r.className||"")+" ol-button ol-unselectable ol-control";var t=this,n=this.button_=document.createElement(/ol-text-button/.test(r.className)?"div":"button");n.type="button",r.title&&(n.title=r.title),r.name&&(n.name=r.name),r.html instanceof Element?n.appendChild(r.html):n.innerHTML=r.html||"";var i=function(a){a&&a.preventDefault&&(a.preventDefault(),a.stopPropagation()),r.handleClick&&r.handleClick.call(t,a)};n.addEventListener("click",i),e.appendChild(n),!r.title&&n.firstElementChild&&(n.title=n.firstElementChild.title),Mr.call(this,{element:e,target:r.target}),r.title&&this.set("title",r.title),r.title&&this.set("title",r.title),r.name&&this.set("name",r.name)};Dr(Su,Mr);Su.prototype.setVisible=function(r){r?yt.show(this.element):yt.hide(this.element)};Su.prototype.setTitle=function(r){this.button_.setAttribute("title",r)};Su.prototype.setHtml=function(r){yt.setHTML(this.button_,r)};Su.prototype.getButtonElement=function(){return this.button_};var ks=function(r){r=r||{};var e=this;this.interaction_=r.interaction,this.interaction_&&(this.interaction_.setActive(r.active),this.interaction_.on("change:active",function(){e.setActive(e.interaction_.getActive())})),r.toggleFn&&(r.onToggle=r.toggleFn),r.handleClick=function(){e.toggle(),r.onToggle&&r.onToggle.call(e,e.getActive())},r.className=(r.className||"")+" ol-toggle",Su.call(this,r),this.set("title",r.title),this.set("autoActivate",r.autoActivate),r.bar&&this.setSubBar(r.bar),this.setActive(r.active),this.setDisable(r.disable)};Dr(ks,Su);ks.prototype.setMap=function(r){!r&&this.getMap()&&(this.interaction_&&this.getMap().removeInteraction(this.interaction_),this.subbar_&&this.getMap().removeControl(this.subbar_)),Su.prototype.setMap.call(this,r),r&&(this.interaction_&&r.addInteraction(this.interaction_),this.subbar_&&r.addControl(this.subbar_))};ks.prototype.getSubBar=function(){return this.subbar_};ks.prototype.setSubBar=function(r){var e=this.getMap();e&&this.subbar_&&e.removeControl(this.subbar_),this.subbar_=r,r&&(this.subbar_.setTarget(this.element),this.subbar_.element.classList.add("ol-option-bar"),e&&e.addControl(this.subbar_))};ks.prototype.getDisable=function(){var r=this.element.querySelector("button");return r&&r.disabled};ks.prototype.setDisable=function(r){this.getDisable()!=r&&(this.element.querySelector("button").disabled=r,r&&this.getActive()&&this.setActive(!1),this.dispatchEvent({type:"change:disable",key:"disable",oldValue:!r,disable:r}))};ks.prototype.getActive=function(){return this.element.classList.contains("ol-active")};ks.prototype.toggle=function(){this.getActive()?this.setActive(!1):this.setActive(!0)};ks.prototype.setActive=function(r){this.interaction_&&this.interaction_.setActive(r),this.subbar_&&this.subbar_.setActive(r),this.getActive()!==r&&(r?this.element.classList.add("ol-active"):this.element.classList.remove("ol-active"),this.dispatchEvent({type:"change:active",key:"active",oldValue:!r,active:r}))};ks.prototype.setInteraction=function(r){this.interaction_=r};ks.prototype.getInteraction=function(){return this.interaction_};const rst={name:"ol-control-toggle",setup(r,e){const{control:t}=Wi(ks,r,e);return{control:t}},props:{html:{type:String},interaction:{type:Object},className:{type:String},title:{type:String},onToggle:{type:Function}}};function nst(r,e,t,n,i,a){return Rr("",!0)}var YS=me(rst,[["render",nst]]);const ist={name:"ol-control-button",setup(r,e){const{control:t}=Wi(Su,r,e);return{control:t}},props:{html:{type:String},name:{type:String},className:{type:String},title:{type:String},handleClick:{type:Function}}};function ast(r,e,t,n,i,a){return Rr("",!0)}var WS=me(ist,[["render",ast]]),Xa=function(r){r=r||{},r.fullscreen&&(r.target=document.body);var e=yt.create("DIV",{className:((r.className||"")+(r.zoom?" ol-zoom":"")+" ol-ext-dialog").trim(),click:function(i){this.get("hideOnBack")&&i.target===e&&this.close(),this.get("hideOnClick")&&this.close()}.bind(this)}),t=yt.create("FORM",{on:{submit:this._onButton("submit")},parent:e});yt.create("H2",{parent:t}),yt.create("DIV",{className:"ol-closebox",click:this._onButton("cancel"),parent:t}),yt.create("DIV",{className:"ol-content",parent:t}),this._progress=yt.create("DIV",{style:{display:"none"},parent:t});var n=yt.create("DIV",{className:"ol-progress-bar",parent:this._progress});this._progressbar=yt.create("DIV",{parent:n}),this._progressMessage=yt.create("DIV",{className:"ol-progress-message",parent:this._progress}),yt.create("DIV",{className:"ol-buttons",parent:t}),Mr.call(this,{element:e,target:r.target}),this.set("closeBox",r.closeBox!==!1),this.set("zoom",!!r.zoom),this.set("hideOnClick",!!r.hideOnClick),this.set("hideOnBack",!!r.hideOnBack),this.set("className",e.className),this.set("closeOnSubmit",r.closeOnSubmit),this.set("buttons",r.buttons),this.setContent(r)};Dr(Xa,Mr);Xa.prototype.show=function(r){r&&((r instanceof Element||typeof r=="string")&&(r={content:r}),this.setContent(r)),this.element.classList.add("ol-visible");var e=this.element.querySelector('input[type="text"],input[type="search"],input[type="number"]');if(e&&e.focus(),this.dispatchEvent({type:"show"}),r){if(r.autoclose){var t=setTimeout(function(){this.hide()}.bind(this),r.autoclose);this.once("hide",function(){clearTimeout(t)})}if(r.hideOnBack){var n=this.get("hideOnBack");this.set("hideOnBack",!0),this.once("hide",function(){this.set("hideOnBack",n)}.bind(this))}}};Xa.prototype.open=function(){this.show()};Xa.prototype.setContentMessage=function(r){if(r!==void 0){var e=this.getContentElement();r instanceof Element&&yt.setHTML(e,""),yt.setHTML(e,r||"")}};Xa.prototype.setTitle=function(r){var e=this.element.querySelector("form");e.querySelector("h2").innerText=r||"",r?e.classList.add("ol-title"):e.classList.remove("ol-title")};Xa.prototype.setContent=function(r){if(r){this.element.className=this.get("className"),typeof r=="string"&&(r={content:r}),r=r||{},this.setProgress(!1),r.max&&this.setProgress(0,r.max),r.progress!==void 0&&this.setProgress(r.progress),this.get("zoom")?this.element.classList.add("ol-zoom"):this.element.classList.remove("ol-zoom"),r.className&&r.className.split(" ").forEach(function(a){this.element.classList.add(a)}.bind(this));var e=this.element.querySelector("form");r.content!==void 0&&(r.content instanceof Element&&yt.setHTML(e.querySelector(".ol-content"),""),yt.setHTML(e.querySelector(".ol-content"),r.content||"")),this.setTitle(r.title),r.closeBox||this.get("closeBox")&&r.closeBox!==!1?e.classList.add("ol-closebox"):e.classList.remove("ol-closebox");var t=this.element.querySelector(".ol-buttons");t.innerHTML="";var n=r.buttons||this.get("buttons");if(n){e.classList.add("ol-button");for(var i in n)yt.create("INPUT",{type:i==="submit"?"submit":"button",value:n[i],click:this._onButton(i,r.onButton),parent:t})}else e.classList.remove("ol-button")}};Xa.prototype.getContentElement=function(){return this.element.querySelector("form .ol-content")};Xa.prototype.setProgress=function(r,e,t){if(r===!1){yt.setStyle(this._progress,{display:"none"});return}if(e>0?this.set("max",Number(e)):e=this.get("max"),!e)yt.setStyle(this._progress,{display:"none"});else{var n=Math.round(r/e*100);yt.setStyle(this._progress,{display:""}),this._progressbar.className=n?"":"notransition",yt.setStyle(this._progressbar,{width:n+"%"})}this._progressMessage.innerHTML="",yt.setHTML(this._progressMessage,t||"")};Xa.prototype._onButton=function(r,e){var t=function(n){n.preventDefault(),(r!=="submit"||this.get("closeOnSubmit")!==!1)&&this.hide();var i=this.getInputs();this.dispatchEvent({type:"button",button:r,inputs:i}),typeof e=="function"&&e(r,i)}.bind(this);return t};Xa.prototype.getInputs=function(){var r={};return["input","textarea","select"].forEach(function(e){this.element.querySelectorAll("form "+e).forEach(function(t){t.className&&t.className.split(" ").forEach(function(n){r[n]=t})})}.bind(this)),r};Xa.prototype.hide=function(){this.element.classList.remove("ol-visible"),this.dispatchEvent({type:"hide"})};Xa.prototype.close=Xa.prototype.hide;Xa.prototype.isOpen=function(){return this.element.classList.contains("ol-visible")};var ost=function(r){if(!r)return null;var e=r.getViewport().getElementsByClassName("ol-fixedoverlay")[0];return e||(r.getViewport().querySelector(".ol-layers")?(e=document.createElement("canvas"),e.className="ol-fixedoverlay",r.getViewport().querySelector(".ol-layers").after(e),r.on("precompose",function(t){e.width=r.getSize()[0]*t.frameState.pixelRatio,e.height=r.getSize()[1]*t.frameState.pixelRatio})):e=r.getViewport().querySelector("canvas")),e},zi=function(r){r||(r={}),this.setStyle(r.style),Mr.call(this,r)};Dr(zi,Mr);zi.prototype.setMap=function(r){this.getCanvas(r);var e=this.getMap();if(this._listener&&(ds(this._listener),this._listener=null),Mr.prototype.setMap.call(this,r),e)try{e.renderSync()}catch{}r&&(this._listener=r.on("postcompose",this._draw.bind(this)))};zi.prototype.getCanvas=function(r){return ost(r)};zi.prototype.getContext=function(r){var e=r.context;if(!e&&this.getMap()){var t=this.getMap().getViewport().getElementsByClassName("ol-fixedoverlay")[0];e=t?t.getContext("2d"):null}return e};zi.prototype.setStyle=function(r){this._style=r||new _a({})};zi.prototype.getStyle=function(){return this._style};zi.prototype.getStroke=function(){var r=this._style.getStroke();return r||this._style.setStroke(new Ki({color:"#000",width:1.25})),this._style.getStroke()};zi.prototype.getFill=function(){var r=this._style.getFill();return r||this._style.setFill(new Ea({color:"#fff"})),this._style.getFill()};zi.prototype.getTextStroke=function(){var r=this._style.getText();return r||(r=new rp({})),r.getStroke()||r.setStroke(new Ki({color:"#fff",width:3})),r.getStroke()};zi.prototype.getTextFill=function(){var r=this._style.getText();return r||(r=new rp({})),r.getFill()||r.setFill(new Ea({color:"#fff"})),r.getFill()};zi.prototype.getTextFont=function(){var r=this._style.getText();return r||(r=new rp({})),r.getFont()||r.setFont("12px sans-serif"),r.getFont()};zi.prototype._draw=function(){console.warn("[CanvasBase] draw function not implemented.")};function sst(r,e){var t=r.canvas,n=e||{},i=n.pixelRatio||Nf,a=n.size;a&&(t.width=a[0]*i,t.height=a[1]*i,t.style.width=a[0]+"px",t.style.height=a[1]+"px");var o=[0,0,t.width,t.height],s=Cm(Ti(),i,i);return new CF(r,i,o,s,0)}var cv=function(r){r=r||{},xi.call(this,r),r.feature&&this.set("feature",r.feature.clone())};Dr(cv,xi);cv.prototype.setTitle=function(r){this.set("title",r||""),this.changed()};cv.prototype.getElement=function(r,e){var t=yt.create("LI",{className:this.get("className"),click:function(n){e(!1),n.stopPropagation()},style:{height:r[1]+"px"},"aria-label":this.get("title")});return yt.create("DIV",{click:function(n){e(!0),n.stopPropagation()},style:{width:r[0]+"px",height:r[1]+"px"},parent:t}),t};window.ol&&!ol.legend&&(ol.legend={});var Ca=function(r){r=r||{},xi.call(this),this._items=new bi;var e=[],t;this._items.on("add",function(n){e.push({item:n.element,on:n.element.on("change",function(){this.refresh()}.bind(this))}),t&&(clearTimeout(t),t=null),t=setTimeout(function(){this.refresh()}.bind(this),0)}.bind(this)),this._items.on("remove",function(n){for(var i=0;i<e;i++)if(n.element===e[i].item){ds(e[i].on),e.splice(i,1);break}t&&(clearTimeout(t),t=null),t=setTimeout(function(){this.refresh()}.bind(this),0)}.bind(this)),this._listElement=yt.create("UL",{className:"ol-legend"}),this._canvas=document.createElement("canvas"),this.set("size",r.size||[40,25],!0),this.set("margin",r.margin===0?0:r.margin||10,!0),this._textStyle=r.textStyle||new rp({font:"16px sans-serif",fill:new Ea({color:"#333"}),backgroundFill:new Ea({color:"rgba(255,255,255,.8)"})}),this._title=new cv({title:r.title||"",className:"ol-title"}),r.titleStyle?this._titleStyle=r.titleStyle:(this._titleStyle=this._textStyle.clone(),this._titleStyle.setFont("bold "+this._titleStyle.getFont())),this.setStyle(r.style),r.items instanceof Array&&r.items.forEach(function(n){this.addItem(n)}.bind(this)),this.refresh()};Dr(Ca,xi);Ca.prototype.setTitle=function(r){this._title.setTitle(r),this.refresh()};Ca.prototype.getTitle=function(){return this._title.get("title")};Ca.prototype.getTextStyle=function(){return this._textStyle};Ca.prototype.set=function(r,e,t){xi.prototype.set.call(this,r,e,t),t||this.refresh()};Ca.prototype.getListElement=function(){return this._listElement};Ca.prototype.getCanvas=function(){return this._canvas};Ca.prototype.setStyle=function(r){this._style=r,this.refresh()};Ca.prototype.addItem=function(r){r instanceof cv?this._items.push(r):this._items.push(new cv(r))};Ca.prototype.getItems=function(){return this._items};Ca.prototype._drawText=function(r,e,t,n){r.save(),r.scale(Nf,Nf),e=e||"";var i=e.split(`
|
||
`);i.length===1?r.fillText(e,t,n):(r.textBaseline="bottom",r.fillText(i[0],t,n),r.textBaseline="top",r.fillText(i[1],t,n)),r.restore()};Ca.prototype._measureText=function(r,e){var t=(e||"").split(`
|
||
`);if(t.length===1)return r.measureText(e);var n=r.measureText(t[0]),i=r.measureText(t[1]);return{width:Math.max(n.width,i.width),height:n.height+i.height}};Ca.prototype.refresh=function(){var r=this._listElement;r.innerHTML="";var e=this.get("margin"),t=this.get("size")[0]+2*e,n=this.get("lineHeight")||this.get("size")[1]+2*e,i=this.getCanvas(),a=i.getContext("2d");a.textAlign="left",a.textBaseline="middle";var o=Nf;a.font=this._titleStyle.getFont();var s=this._measureText(a,this.getTitle("title")).width;this._items.forEach(function(A){A.get("feature")||A.get("typeGeom")?(a.font=A.get("textStyle")?A.get("textStyle").getFont():this._textStyle.getFont(),s=Math.max(s,this._measureText(a,A.get("title")).width+t)):(a.font=A.get("textStyle")?A.get("textStyle").getFont():this._titleStyle.getFont(),s=Math.max(s,this._measureText(a,A.get("title")).width))}.bind(this)),i.width=(s+2*e)*o,i.height=(this._items.getLength()+1)*n*o,i.style.height=(this._items.getLength()+1)*n+"px",a.textBaseline="middle",a.fillStyle=au(this._textStyle.getFill().getColor()),this.getTitle()&&(r.appendChild(this._title.getElement([t,n],function(A){this.dispatchEvent({type:"select",index:-1,symbol:A,item:this._title})}.bind(this))),a.font=this._titleStyle.getFont(),a.textAlign="center",this._drawText(a,this.getTitle(),i.width/o/2,n/2)),this._items.forEach(function(A,l){var u=l+(this.getTitle()?1:0);r.appendChild(A.getElement([t,n],function(h){this.dispatchEvent({type:"select",index:l,symbol:h,item:A})}.bind(this)));var c=A.getProperties();a.textAlign="left",c.feature||c.typeGeom?(i=this.getLegendImage(c,i,u),a.font=A.get("textStyle")?A.get("textStyle").getFont():this._textStyle.getFont(),this._drawText(a,A.get("title"),t+e,(l+1.5)*n)):(a.font=A.get("textStyle")?A.get("textStyle").getFont():this._titleStyle.getFont(),/\bcenter\b/.test(c.className)?(a.textAlign="center",this._drawText(a,A.get("title"),i.width/o/2,(l+1.5)*n)):this._drawText(a,A.get("title"),e,(l+1.5)*n))}.bind(this)),this.dispatchEvent({type:"refresh",width:t,height:(this._items.length+1)*n})};Ca.prototype.getLegendImage=function(r,e,t){return r=r||{},Ca.getLegendImage({className:r.className,feature:r.feature,typeGeom:r.typeGeom,style:r.style||this._style,properties:r.properties,margin:r.margin||this.get("margin"),size:r.size||this.get("size"),lineHeight:r.lineHeight||this.get("lineHeight"),onload:function(){this.refresh()}.bind(this)},e,t)};Ca.getLegendImage=function(r,e,t){r=r||{},typeof r.margin>"u"&&(r.margin=10);var n=r.size||[40,25];r.onload=r.onload||function(){setTimeout(function(){Ca.getLegendImage(r,e,t)},100)};var i=n[0]+2*r.margin,a=r.lineHeight||n[1]+2*r.margin,o=Nf;e||(t=0,e=document.createElement("canvas"),e.width=i*o,e.height=a*o);var s=e.getContext("2d");s.save();var A=sst(s,{pixelRatio:o}),l=r.typeGeom,u,c=r.feature;!c&&l&&(/Point/.test(l)?c=new yr(new Sr([0,0])):/LineString/.test(l)?c=new yr(new tn([0,0])):c=new yr(new Pn([[0,0]])),r.properties&&c.setProperties(r.properties)),c?(u=c.getStyle(),typeof u=="function"&&(u=u(c)),u||(u=typeof r.style=="function"?r.style(c):r.style||[]),l=c.getGeometry().getType()):u=[],u instanceof Array||(u=[u]);var h=i/2,f=a/2,p=n[0]/2,v=n[1]/2,m,g;if(l==="Point"){var _=null;for(m=0;g=u[m];m++){var w=g.getImage();if(w){var C=w.getImage();if(C&&C.complete&&!C.naturalWidth&&(typeof r.onload=="function"&&C.addEventListener("load",function(){setTimeout(function(){r.onload()},100)}),w.load()),w.getAnchor){var F=w.getAnchor();if(F){var O=w.getSize(),I=F[0]-O[0],b=F[1]-O[1];_?Kc(_,[I,b,I+O[0],b+O[1]]):_=[I,b,I+O[0],b+O[1]]}}}}_&&(h=h+(_[2]+_[0])/2,f=f+(_[3]+_[1])/2)}for(f+=t*a||0,m=0;g=u[m];m++)switch(A.setStyle(g),l){case Sr:case"Point":case"MultiPoint":A.drawGeometry(new Sr([h,f]));break;case tn:case"LineString":case"MultiLineString":s.save(),s.rect(r.margin*o,0,n[0]*o,e.height),s.clip(),A.drawGeometry(new tn([[h-p,f],[h+p,f]])),s.restore();break;case Pn:case"Polygon":case"MultiPolygon":A.drawGeometry(new Pn([[[h-p,f-v],[h+p,f-v],[h+p,f+v],[h-p,f+v],[h-p,f-v]]]));break}return s.restore(),e};var wA=function(r){r=r||{};var e=document.createElement("div");if(r.target)e.className=r.className||"ol-legend";else{e.className=(r.className||"ol-legend")+" ol-unselectable ol-control"+(r.collapsible===!1?" ol-uncollapsible":" ol-collapsed");var t=document.createElement("button");t.setAttribute("type","button"),t.addEventListener("click",function(){this.toggle()}.bind(this)),e.appendChild(t),t=document.createElement("button"),t.setAttribute("type","button"),t.className="ol-closebox",t.addEventListener("click",function(){this.toggle()}.bind(this)),e.appendChild(t)}zi.call(this,{element:e,target:r.target}),this._legend=r.legend,this._legend.getCanvas().className="ol-legendImg",e.appendChild(this._legend.getCanvas()),e.appendChild(this._legend.getListElement()),r.collapsible!==!1&&r.collapsed===!1&&this.show(),this._legend.on("select",function(n){this.dispatchEvent(n)}.bind(this)),this._legend.on("refresh",function(){if(this._onCanvas&&this.getMap())try{this.getMap().renderSync()}catch{}}.bind(this))};Dr(wA,zi);wA.prototype.getLegend=function(){return this._legend};wA.prototype.setCanvas=function(r){if(this._onCanvas=r,this.element.style.visibility=r?"hidden":"visible",this.getMap())try{this.getMap().renderSync()}catch{}};wA.prototype.onCanvas=function(){return!!this._onCanvas};wA.prototype._draw=function(r){if(this._onCanvas&&!this.element.classList.contains("ol-collapsed")){var e=this._legend.getCanvas(),t=this.getContext(r),n=t.canvas.height-e.height;t.save(),t.rect(0,n,e.width,e.height);var i="#fff";this._legend.getTextStyle().getBackgroundFill()&&(i=au(this._legend.getTextStyle().getBackgroundFill().getColor())),t.fillStyle=t.strokeStyle=i,t.lineWidth=10,t.lineJoin="round",t.stroke(),t.clearRect(0,n,e.width,e.height),t.fill(),t.drawImage(e,0,n),t.restore()}};wA.prototype.show=function(){if(this.element.classList.contains("ol-collapsed")&&(this.element.classList.remove("ol-collapsed"),this.dispatchEvent({type:"change:collapse",collapsed:!1}),this.getMap()))try{this.getMap().renderSync()}catch{}};wA.prototype.hide=function(){if(!this.element.classList.contains("ol-collapsed")&&(this.element.classList.add("ol-collapsed"),this.dispatchEvent({type:"change:collapse",collapsed:!0}),this.getMap()))try{this.getMap().renderSync()}catch{}};wA.prototype.collapse=function(r){r===!1?this.show():this.hide()};wA.prototype.isCollapsed=function(){return this.element.classList.contains("ol-collapsed")};wA.prototype.toggle=function(){if(this.element.classList.toggle("ol-collapsed"),this.dispatchEvent({type:"change:collapse",collapsed:this.element.classList.contains("ol-collapsed")}),this.getMap())try{this.getMap().renderSync()}catch{}};var sh=function(r){r||(r={});var e=yt.create("DIV",{className:r.className||"ol-print"});r.target||(e.classList.add("ol-unselectable","ol-control"),yt.create("BUTTON",{type:"button",title:r.title||"Print",click:function(){this.print()}.bind(this),parent:e})),Mr.call(this,{element:e,target:r.target}),this.set("immediate",r.immediate),this.set("imageType",r.imageType||"image/jpeg"),this.set("quality",r.quality||.8),this.set("orientation",r.orientation)};Dr(sh,Mr);sh.prototype.toClipboard=function(r,e){try{r.canvas.toBlob(function(t){try{navigator.clipboard.write([new window.ClipboardItem(Object.defineProperty({},t.type,{value:t,enumerable:!0}))]),typeof e=="function"&&e(!0)}catch{typeof e=="function"&&e(!1)}})}catch{typeof e=="function"&&e(!1)}};sh.prototype.copyMap=function(r,e){this.once("print",function(t){this.toClipboard(t,e)}.bind(this)),this.print(r)};sh.prototype._getCanvas=function(r,e,t){var n;if(r.context)t=r.context.canvas;else{if(t)n=t.getContext("2d");else{t=document.createElement("canvas");var i=this.getMap().getSize();t.width=i[0],t.height=i[1],n=t.getContext("2d"),/jp.*g$/.test(e)&&(n.fillStyle=this.get("bgColor")||"white",n.fillRect(0,0,t.width,t.height))}this.getMap().getViewport().querySelectorAll(".ol-layers canvas, canvas.ol-fixedoverlay").forEach(function(a){if(a.width){if(n.save(),a.parentNode.style.opacity==="0")return;n.globalAlpha=parseFloat(a.parentNode.style.opacity)||1,yt.getStyle(a.parentNode,"mix-blend-mode")==="multiply"&&(n.globalCompositeOperation="multiply");var o=yt.getStyle(a,"transform")||yt.getStyle(a,"-webkit-transform");/^matrix/.test(o)?(o=o.replace(/^matrix\(|\)$/g,"").split(","),o.forEach(function(s,A){o[A]=parseFloat(s)}),n.transform(o[0],o[1],o[2],o[3],o[4],o[5]),n.drawImage(a,0,0)):n.drawImage(a,0,0,yt.getStyle(a,"width"),yt.getStyle(a,"height")),n.restore()}}.bind(this))}return t};sh.prototype.fastPrint=function(r,e){r=r||{},this._ol6?requestAnimationFrame(function(){e(this._getCanvas({},r.imageType,r.canvas))}.bind(this)):(this.getMap().once("postcompose",function(t){t.context||(this._ol6=!0),e(this._getCanvas(t,r.imageType,r.canvas))}.bind(this)),this.getMap().render())};sh.prototype.print=function(r){r=r||{};var e=r.imageType||this.get("imageType"),t=r.quality||this.get("quality");if(this.getMap()){if(r.immediate!=="silent"&&this.dispatchEvent(Object.assign({type:"printing"},r)),!r.immediate){setTimeout(function(){r=Object.assign({},r),r.immediate="silent",this.print(r)}.bind(this),200);return}this.getMap().once(this.get("immediate")?"postcompose":"rendercomplete",function(n){var i=this._getCanvas(n,e),a=r.size||[210,297],o=r.format||"a4",s,A,l,u=r.orient||this.get("orientation"),c=typeof r.margin=="number"?r.margin:10;if(i){u!=="landscape"&&u!=="portrait"&&(u=i.width>i.height?"landscape":"portrait"),u==="landscape"&&(a=[a[1],a[0]]);var h=Math.min((a[0]-2*c)/i.width,(a[1]-2*c)/i.height);s=h*i.width,A=h*i.height,l=[(a[0]-s)/2,(a[1]-A)/2]}var f;try{f=i?i.toDataURL(e,t):null}catch{this.dispatchEvent({type:"error",canvas:i});return}var p=Object.assign({type:"print",print:{format:o,orientation:u,unit:"mm",size:a,position:l,imageWidth:s,imageHeight:A},image:f,imageType:e,quality:t,canvas:i},r);this.dispatchEvent(p)}.bind(this)),this.getMap().render()}};var Ah=function(r){r||(r={});var e=yt.create("DIV",{className:(r.className||"")+" ol-control-title ol-unselectable",style:{display:"block",visibility:"hidden"}});zi.call(this,{element:e,style:r.style}),this.setTitle(r.title||""),this.setVisible(r.visible),this.element.style.font=this.getTextFont()};Dr(Ah,zi);Ah.prototype.setStyle=function(r){zi.prototype.setStyle.call(this,r),this.element&&(this.element.style.font=this.getTextFont()),this.getMap()&&this.getMap().render()};Ah.prototype.setTitle=function(r){if(this.element.textContent=r,this.set("title",r),this.getMap())try{this.getMap().renderSync()}catch{}};Ah.prototype.getTitle=function(){return this.get("title")};Ah.prototype.setVisible=function(r){if(this.element.style.display=r?"block":"none",this.getMap())try{this.getMap().renderSync()}catch{}};Ah.prototype.getVisible=function(){return this.element.style.display!=="none"};Ah.prototype._draw=function(r){if(this.getVisible()){var e=this.getContext(r);if(e){var t=r.frameState.pixelRatio;e.save(),e.scale(t,t);var n=this.element.getBoundingClientRect(),i=this.getMap().getViewport().getBoundingClientRect(),a=this.getMap().getSize()[0]/i.width;e.translate(Math.round((n.left-i.left)*a),Math.round((n.top-i.top)*a));var o=this.element.clientHeight,s=this.element.clientWidth,A=s/2;e.beginPath(),e.fillStyle=au(this.getFill().getColor()),e.rect(0,0,s,o),e.fill(),e.closePath(),e.beginPath(),e.fillStyle=au(this.getTextFill().getColor()),e.strokeStyle=au(this.getTextStroke().getColor()),e.lineWidth=this.getTextStroke().getWidth(),e.textAlign="center",e.textBaseline="middle",e.font=this.getTextFont(),e.lineWidth&&e.strokeText(this.getTitle(),A,o/2),e.fillText(this.getTitle(),A,o/2),e.closePath(),e.restore()}}};var zS=function(r,e){var t=r.getView(),n=t.getProjection(),i=t.getCenter(),a=r.getPixelFromCoordinate(i);a[1]+=1;var o=r.getCoordinateFromPixel(a),s=z1(Wc(i,n,"EPSG:4326"),Wc(o,n,"EPSG:4326"));return s*=(e||96)/.0254,s},Ast=function(r,e,t){if(r&&e){var n=e;if(typeof e=="string"&&(n=e.split("/")[1],n||(n=e),n=n.replace(/[^\d]/g,""),n=parseInt(n)),!n)return;var i=r.getView(),a=i.getProjection(),o=i.getCenter(),s=r.getPixelFromCoordinate(o);s[1]+=1;var A=r.getCoordinateFromPixel(s),l=z1(Wc(o,a,"EPSG:4326"),Wc(A,a,"EPSG:4326"));return l*=(t||96)/.0254,i.setResolution(i.getResolution()*n/l),n}},pu=function(r){r||(r={});var e=document.createElement("div");e.className="ol-control ol-compassctrl ol-unselectable ol-hidden"+(r.className?" "+r.className:""),e.style.position="absolute",e.style.visibility="hidden";var t=r.style instanceof Ki?new _a({stroke:r.style}):r.style;r.style||(t=new _a({stroke:new Ki({width:0})})),zi.call(this,{element:e,style:t}),this.set("rotateVithView",r.rotateWithView!==!1),this.setVisible(r.visible!==!1),this.setImage(r.image||r.src)};Dr(pu,zi);pu.prototype.setImage=function(r){if(r instanceof Image)this.img_=r,this.img_.onload=function(){if(this.getMap())try{this.getMap().renderSync()}catch{}}.bind(this);else if(typeof r=="string")switch(r){case"compact":{this.img_=this.compactCompass_(this.element.clientWidth,this.getStroke().getColor());break}case"default":{this.img_=this.defaultCompass_(this.element.clientWidth,this.getStroke().getColor());break}default:{this.img_=new Image,this.img_.onload=function(){if(this.getMap())try{this.getMap().renderSync()}catch{}}.bind(this),this.img_.src=r;break}}else this.img_=this.defaultCompass_(this.element.clientWidth,this.getStroke().getColor())};pu.prototype.compactCompass_=function(r,e){var t=document.createElement("canvas"),n=t.getContext("2d");r=t.width=t.height=r||150;var i=r/2;return n.translate(i,i),n.fillStyle=e||"#963",n.lineWidth=5,n.lineJoin=n.lineCap="round",n.font="bold "+i*.4+"px sans-serif",n.textBaseline="bottom",n.textAlign="center",n.strokeStyle="#fff",n.globalAlpha=.75,n.strokeText("N",0,-i/2),n.globalAlpha=1,n.fillText("N",0,-i/2),n.beginPath(),n.moveTo(0,i/4),n.lineTo(i/3,i/2),n.lineTo(0,-i/2),n.lineTo(-i/3,i/2),n.lineTo(0,i/4),n.lineWidth=12,n.fillStyle="#fff",n.globalAlpha=.75,n.fill(),n.stroke(),n.globalAlpha=1,n.fillStyle=n.strokeStyle=e||"#963",n.lineWidth=5,n.beginPath(),n.moveTo(0,i/4),n.lineTo(0,-i/2),n.lineTo(i/3,i/2),n.lineTo(0,i/4),n.fill(),n.stroke(),n.beginPath(),n.moveTo(0,i/4),n.lineTo(0,-i/2),n.lineTo(-i/3,i/2),n.lineTo(0,i/4),n.stroke(),t};pu.prototype.defaultCompass_=function(r,e){var t=document.createElement("canvas"),n=t.getContext("2d");r=t.width=t.height=r||150;var i=r/2,a=.22*i;function o(A,l){n.fillStyle=e||"#963",n.beginPath(),n.moveTo(0,0),n.lineTo(A,0),n.lineTo(l,l),n.moveTo(0,0),n.lineTo(-A,0),n.lineTo(-l,-l),n.moveTo(0,0),n.lineTo(0,A),n.lineTo(-l,l),n.moveTo(0,0),n.lineTo(0,-A),n.lineTo(l,-l),n.moveTo(0,0),n.fill(),n.stroke()}function s(A,l){n.globalCompositeOperation="destination-out",n.fillStyle="#fff",n.beginPath(),n.moveTo(0,0),n.lineTo(A,0),n.lineTo(l,-l),n.moveTo(0,0),n.lineTo(-A,0),n.lineTo(-l,l),n.moveTo(0,0),n.lineTo(0,A),n.lineTo(l,l),n.moveTo(0,0),n.lineTo(0,-A),n.lineTo(-l,-l),n.moveTo(0,0),n.fill(),n.globalCompositeOperation="source-over",n.beginPath(),n.moveTo(0,0),n.lineTo(A,0),n.lineTo(l,-l),n.moveTo(0,0),n.lineTo(-A,0),n.lineTo(-l,l),n.moveTo(0,0),n.lineTo(0,A),n.lineTo(l,l),n.moveTo(0,0),n.lineTo(0,-A),n.lineTo(-l,-l),n.moveTo(0,0),n.stroke()}return n.translate(i,i),n.strokeStyle=e||"#963",n.lineWidth=1.5,n.beginPath(),n.arc(0,0,r*.41,0,2*Math.PI),n.arc(0,0,r*.44,0,2*Math.PI),n.stroke(),n.rotate(Math.PI/4),o(i*.9,a*.8),s(i*.9,a*.8),n.rotate(-Math.PI/4),o(i,a),s(i,a),t};pu.prototype.getVisible=function(){return yt.getStyle(this.element,"display")==="block"};pu.prototype.setVisible=function(r){r?this.element.classList.add("ol-visible"):this.element.classList.remove("ol-visible"),this.getMap()&&this.getMap().render()};pu.prototype._draw=function(r){var e=this.getContext(r);if(!(!e||!this.getVisible())){var t=e.canvas,n,i=[];for(n=0;n<8;n++)i[n]=[Math.cos(Math.PI*n/8),Math.sin(Math.PI*n/8)];var a=r.frameState.pixelRatio;e.save(),e.scale(a,a);var o=this.element.clientWidth,s=this.element.clientHeight,A={left:this.element.offsetLeft,top:this.element.offsetTop},l=this.img_,u=r.frameState.viewState.rotation;if(e.beginPath(),e.translate(A.left+o/2,A.top+s/2),this.get("rotateVithView")&&e.rotate(u),this.getStroke().getWidth()){e.beginPath(),e.strokeStyle=this.getStroke().getColor(),e.lineWidth=this.getStroke().getWidth();var c=Math.max(t.width,t.height);for(n=0;n<8;n++)e.moveTo(-i[n][0]*c,-i[n][1]*c),e.lineTo(i[n][0]*c,i[n][1]*c);e.stroke()}l.width&&e.drawImage(l,-o/2,-s/2,o,s),e.closePath(),e.restore()}};var Un=function(r){r||(r={}),this._lang=r.lang||"en";var e=yt.create("DIV",{className:(r.className||"ol-print")+" ol-unselectable ol-control"});yt.create("BUTTON",{type:"button",title:r.title||"Print",click:function(){this.print()}.bind(this),parent:e}),Mr.call(this,{element:e}),r.openWindow&&this.on("print",function(S){S.canvas&&window.open().document.write('<img src="'+S.canvas.toDataURL()+'"/>')}),r.target=yt.create("DIV");var t=this._printCtrl=new sh(r);t.on(["print","error","printing"],function(S){i.setAttribute("data-status",S.type),S.clipboard||this.dispatchEvent(S)}.bind(this)),this._compass=new pu({src:r.northImage||"compact",visible:!1,className:"olext-print-compass",style:new Ki({color:"#333",width:0})});var n=this._printDialog=new Xa({target:document.body,closeBox:!0,className:"ol-ext-print-dialog"}),i=n.getContentElement();this._input={};var a=yt.create("DIV",{className:"ol-print-param",parent:i});this._pages=[yt.create("DIV",{className:"ol-page"})];var o=yt.create("DIV",{className:"ol-map",parent:this._pages[0]});yt.create("DIV",{html:this._pages[0],className:"ol-print-map",parent:i}),yt.create("H2",{html:this.i18n("title"),parent:a});var s=yt.create("UL",{parent:a}),A=yt.create("LI",{className:"ol-orientation",parent:s});this._input.orientation={list:A};var l=yt.create("LABEL",{className:"portrait",parent:A});this._input.orientation.portrait=yt.create("INPUT",{type:"radio",name:"ol-print-orientation",value:"portrait",checked:!0,on:{change:function(S){this.setOrientation(S.target.value)}.bind(this)},parent:l}),yt.create("SPAN",{html:this.i18n("portrait"),parent:l}),l=yt.create("LABEL",{className:"landscape",parent:A}),this._input.orientation.landscape=yt.create("INPUT",{type:"radio",name:"ol-print-orientation",value:"landscape",on:{change:function(S){this.setOrientation(S.target.value)}.bind(this)},parent:l}),yt.create("SPAN",{html:this.i18n("landscape"),parent:l});var u;A=yt.create("LI",{html:yt.create("LABEL",{html:this.i18n("size")}),className:"ol-size",parent:s});var c=this._input.size=yt.create("SELECT",{on:{change:function(){this.setSize(c.value||L)}.bind(this)},parent:A});for(u in this.paperSize)yt.create("OPTION",{html:u+(this.paperSize[u]?" - "+this.paperSize[u][0]+"x"+this.paperSize[u][1]+" mm":this.i18n("custom")),value:u,parent:c});A=yt.create("LI",{html:yt.create("LABEL",{html:this.i18n("margin")}),className:"ol-margin",parent:s});var h=this._input.margin=yt.create("SELECT",{on:{change:function(){this.setMargin(h.value)}.bind(this)},parent:A});for(u in this.marginSize)yt.create("OPTION",{html:this.i18n(u)+" - "+this.marginSize[u]+" mm",value:this.marginSize[u],parent:h});A=yt.create("LI",{html:yt.create("LABEL",{html:this.i18n("scale")}),className:"ol-scale",parent:s});var f=this._input.scale=yt.create("SELECT",{on:{change:function(){this.setScale(parseInt(f.value))}.bind(this)},parent:A});Object.keys(this.scales).forEach(function(S){yt.create("OPTION",{html:this.scales[S],value:S,parent:f})}.bind(this)),A=yt.create("LI",{className:"ol-legend",parent:s});var p=yt.createSwitch({html:this.i18n("legend"),checked:!1,on:{change:function(){x.legend.control.setCanvas(p.checked)}.bind(this)},parent:A});A=yt.create("LI",{className:"ol-print-north",parent:s});var v=this._input.north=yt.createSwitch({html:this.i18n("north"),checked:"checked",on:{change:function(){v.checked?this._compass.element.classList.add("ol-print-compass"):this._compass.element.classList.remove("ol-print-compass"),this.getMap().render()}.bind(this)},parent:A});A=yt.create("LI",{className:"ol-print-title",parent:s});var m=yt.createSwitch({html:this.i18n("mapTitle"),checked:!1,on:{change:function(S){x.title.control.setVisible(S.target.checked)}.bind(this)},parent:A}),g=yt.create("INPUT",{type:"text",placeholder:this.i18n("mapTitle"),on:{keydown:function(S){S.keyCode===13&&S.preventDefault()},keyup:function(){x.title.control.setTitle(g.value)},change:function(){x.title.control.setTitle(g.value)}.bind(this)},parent:A}),_=yt.create("DIV",{className:"ol-user-param",parent:a});A=yt.create("LI",{className:"ol-saveas",parent:s});var w=yt.create("DIV",{html:this.i18n("copied"),className:"ol-clipboard-copy",parent:A}),C=yt.create("SELECT",{on:{change:function(){if(this.formats[C.value].clipboard)t.copyMap(this.formats[C.value],function(U){U&&(w.classList.add("visible"),setTimeout(function(){w.classList.remove("visible")},1e3))});else{var S=typeof this.getSize()=="string"?this.getSize():null,P=Object.assign({format:S,size:S?this.paperSize[S]:null,orient:this.getOrientation(),margin:this.getMargin()},this.formats[C.value]);t.print(P)}C.value=""}.bind(this)},parent:A});yt.create("OPTION",{html:this.i18n("saveas"),style:{display:"none"},value:"",parent:C}),this.formats.forEach(function(S,P){if(S.pdf){if(r.pdf===!1)return}else if(S.clipboard){if(r.copy===!1)return}else if(r.save===!1)return;yt.create("OPTION",{html:this.i18n(S.title),value:P,parent:C})}.bind(this)),A=yt.create("LI",{className:"ol-savelegend",parent:s});var F=yt.create("DIV",{html:this.i18n("copied"),className:"ol-clipboard-copy",parent:A}),O=yt.create("SELECT",{on:{change:function(){var S=x.legend.control.getLegend().getCanvas(),P=document.createElement("CANVAS");P.width=S.width,P.height=S.height;var U=P.getContext("2d");if(U.fillStyle="#fff",U.fillRect(0,0,P.width,P.height),U.drawImage(S,0,0),this.formats[O.value].clipboard)P.toBlob(function(bt){try{navigator.clipboard.write([new window.ClipboardItem(Object.defineProperty({},bt.type,{value:bt,enumerable:!0}))]),F.classList.add("visible"),setTimeout(function(){F.classList.remove("visible")},1e3)}catch{}},"image/png");else{var tt;try{tt=P.toDataURL(this.formats[O.value].imageType,this.formats[O.value].quality);var q=typeof this.getSize()=="string"?this.getSize():"A4",rt=P.width/96*25.4,nt=P.height/96*25.4,At=this.paperSize[q];this.getOrientation()==="landscape"&&(At=[At[1],At[0]]);var ct=[(At[0]-rt)/2,(At[1]-nt)/2];this.dispatchEvent({type:"print",print:{legend:!0,format:q,orientation:this.getOrientation(),unit:"mm",size:this.paperSize[q],position:ct,imageWidth:rt,imageHeight:nt},image:tt,imageType:this.formats[O.value].imageType,pdf:this.formats[O.value].pdf,quality:this.formats[O.value].quality,canvas:P})}catch{}}O.value=""}.bind(this)},parent:A});yt.create("OPTION",{html:this.i18n("saveLegend"),style:{display:"none"},value:"",parent:O}),this.formats.forEach(function(S,P){yt.create("OPTION",{html:this.i18n(S.title),value:P,parent:O})}.bind(this));var I=yt.create("DIV",{className:"ol-ext-buttons",parent:a});yt.create("BUTTON",{html:this.i18n("printBt"),type:"submit",click:function(S){S.preventDefault(),window.print()},parent:I}),yt.create("BUTTON",{html:this.i18n("cancel"),type:"button",click:function(){n.hide()},parent:I}),yt.create("DIV",{html:this.i18n("errorMsg"),className:"ol-error",parent:a});var b,L,N,x={};n.on("show",function(){this.dispatchEvent({type:"show",userElement:_,dialog:this._printDialog,page:this.getPage()});var S=this.getMap();S&&(document.body.classList.add("ol-print-document"),b=S.getTargetElement(),L=S.getSize(),typeof this.getSize()=="string"?this.setSize(this.getSize()):this.setSize(L),S.setTarget(o),N&&ds(N),N=S.on("moveend",function(){this.setScale(zS(S))}.bind(this)),this.setScale(zS(S)),x={},this.getMap().getControls().forEach(function(P){P instanceof wA&&(x.legend={control:P}),P instanceof Ah&&(x.title={control:P}),P instanceof pu&&(x.compass?P.element.classList.remove("ol-print-compass"):(this._input.north.checked?P.element.classList.add("ol-print-compass"):P.element.classList.remove("ol-print-compass"),this._compass=P,x.compass={control:P}))}.bind(this)),x.title?(m.checked=x.title.isVisible=x.title.control.getVisible(),g.value=x.title.control.getTitle(),m.parentNode.parentNode.classList.remove("hidden")):m.parentNode.parentNode.classList.add("hidden"),x.legend?(x.legend.ison=x.legend.control.onCanvas(),x.legend.collapsed=x.legend.control.isCollapsed(),x.legend.control.collapse(!1),O.parentNode.classList.remove("hidden"),p.parentNode.parentNode.classList.remove("hidden"),p.checked=!x.legend.collapsed,x.legend.control.setCanvas(!x.legend.collapsed)):(O.parentNode.classList.add("hidden"),p.parentNode.parentNode.classList.add("hidden")))}.bind(this)),n.on("hide",function(){document.body.classList.remove("ol-print-document"),b&&(this.getMap().setTarget(b),b=null,N&&ds(N),x.title&&x.title.control.setVisible(x.title.isVisible),x.legend&&(x.legend.control.setCanvas(x.legend.ison),x.legend.control.collapse(x.legend.collapsed)),this.dispatchEvent({type:"hide"}))}.bind(this)),window.addEventListener("resize",function(){this.setSize()}.bind(this)),r.saveAs&&this.on("print",function(S){S.pdf||S.canvas.toBlob(function(P){var U=(S.print.legend?"legend.":"map.")+S.imageType.replace("image/","");r.saveAs(P,U)},S.imageType,S.quality)}),r.jsPDF&&this.on("print",function(S){if(S.pdf){var P=new r.jsPDF({orientation:S.print.orientation,unit:S.print.unit,format:S.print.size});P.addImage(S.image,"JPEG",S.print.position[0],S.print.position[0],S.print.imageWidth,S.print.imageHeight),P.save(S.print.legend?"legend.pdf":"map.pdf")}})};Dr(Un,Mr);Un.prototype.isOpen=function(){return this._printDialog.isOpen()};Un.addLang=function(r,e){Un.prototype._labels[r]=e};Un.prototype.i18n=function(r){var e=this._labels.en[r]||"bad param";return this._labels[this._lang]&&this._labels[this._lang][r]&&(e=this._labels[this._lang][r]),e};Un.prototype._labels={en:{title:"Print",orientation:"Orientation",portrait:"Portrait",landscape:"Landscape",size:"Page size",custom:"screen size",margin:"Margin",scale:"Scale",legend:"Legend",north:"North arrow",mapTitle:"Map title",saveas:"Save as...",saveLegend:"Save legend...",copied:"✔ Copied to clipboard",errorMsg:"Can't save map canvas...",printBt:"Print...",clipboardFormat:"copy to clipboard...",jpegFormat:"save as jpeg",pngFormat:"save as png",pdfFormat:"save as pdf",none:"none",small:"small",large:"large",cancel:"cancel"},fr:{title:"Imprimer",orientation:"Orientation",portrait:"Portrait",landscape:"Paysage",size:"Taille du papier",custom:"taille écran",margin:"Marges",scale:"Echelle",legend:"Légende",north:"Flèche du nord",mapTitle:"Titre de la carte",saveas:"Enregistrer sous...",saveLegend:"Enregistrer la légende...",copied:"✔ Carte copiée",errorMsg:"Impossible d'enregistrer la carte",printBt:"Imprimer",clipboardFormat:"copier dans le presse-papier...",jpegFormat:"enregistrer un jpeg",pngFormat:"enregistrer un png",pdfFormat:"enregistrer un pdf",none:"aucune",small:"petites",large:"larges",cancel:"annuler"},de:{title:"Drucken",orientation:"Ausrichtung",portrait:"Hochformat",landscape:"Querformat",size:"Papierformat",custom:"Bildschirmgröße",margin:"Rand",scale:"Maßstab",legend:"Legende",north:"Nordpfeil",mapTitle:"Kartentitel",saveas:"Speichern als...",saveLegend:"Legende speichern...",copied:"✔ In die Zwischenablage kopiert",errorMsg:"Kann Karte nicht speichern...",printBt:"Drucken...",clipboardFormat:"in die Zwischenablage kopieren...",jpegFormat:"speichern als jpeg",pngFormat:"speichern als png",pdfFormat:"speichern als pdf",none:"kein",small:"klein",large:"groß",cancel:"abbrechen"},zh:{title:"打印",orientation:"方向",portrait:"纵向",landscape:"横向",size:"页面大小",custom:"屏幕大小",margin:"外边距",scale:"尺度",legend:"图例",north:"指北针",mapTitle:"地图名字",saveas:"保存为...",saveLegend:"保存图例为...",copied:"✔ 已复制到剪贴板",errorMsg:"无法保存地图...",printBt:"打印...",cancel:"取消"}};Un.prototype.paperSize={"":null,A0:[841,1189],A1:[594,841],A2:[420,594],A3:[297,420],A4:[210,297],"US Letter":[215.9,279.4],A5:[148,210],B4:[257,364],B5:[182,257]};Un.prototype.marginSize={none:0,small:5,large:10};Un.prototype.formats=[{title:"clipboardFormat",imageType:"image/png",clipboard:!0},{title:"jpegFormat",imageType:"image/jpeg",quality:.8},{title:"pngFormat",imageType:"image/png",quality:.8},{title:"pdfFormat",imageType:"image/jpeg",pdf:!0}];Un.prototype.scales={" 5000":"1/5.000"," 10000":"1/10.000"," 25000":"1/25.000"," 50000":"1/50.000"," 100000":"1/100.000"," 250000":"1/250.000"," 1000000":"1/1.000.000"};Un.prototype.getOrientation=function(){return this._orientation||"portrait"};Un.prototype.setOrientation=function(r){this._orientation=r==="landscape"?"landscape":"portrait",this._input.orientation[this._orientation].checked=!0,this.setSize()};Un.prototype.getMargin=function(){return this._margin||0};Un.prototype.setMargin=function(r){this._margin=r,this._input.margin.value=r,this.setSize()};Un.prototype.getSize=function(){return this._size};Un.prototype.setSize=function(r){if(this._printDialog.getContentElement().setAttribute("data-status",""),r?this._size=r:r=this._size,!!r){if(typeof r=="string"){for(var e in this.paperSize)e&&new RegExp(e,"i").test(r)&&(r=e);this.paperSize[r]||(r=this._size="A4"),this._input.size.value=r,r=[Math.trunc(this.paperSize[r][0]*96/25.4),Math.trunc(this.paperSize[r][1]*96/25.4)],this.getOrientation()==="landscape"&&(r=[r[1],r[0]]),this.getPage().classList.remove("margin")}else this._input.size.value="",this.getPage().classList.add("margin");var t=this.getPage(),n=t.parentNode.getBoundingClientRect(),i=(n.width-40)/r[0],a=(n.height-40)/r[1],o=Math.min(i,a,1);t.style.width=r[0]+"px",t.style.height=r[1]+"px",t.style["-webkit-transform"]=t.style.transform="translate(-50%,-50%) scale("+o+")";var s=Math.round(5/o);t.style["-webkit-box-shadow"]=t.style["box-shadow"]=s+"px "+s+"px "+s+"px rgba(0,0,0,.6)",t.style.padding=this.getMargin()*96/25.4+"px",this.getMap()&&this.getMap().updateSize(),this.dispatchEvent({type:"dialog:refresh"})}};Un.prototype.getContentElement=function(){return this._printDialog.getContentElement()};Un.prototype.getUserElement=function(){return this._printDialog.getContentElement().querySelector(".ol-user-param")};Un.prototype.getPage=function(){return this._pages[0]};Un.prototype.setMap=function(r){this.getMap()&&(this.getMap().removeControl(this._compass),this.getMap().removeControl(this._printCtrl),this.getMap().removeControl(this._printDialog)),Mr.prototype.setMap.call(this,r),this.getMap()&&(this.getMap().addControl(this._compass),this.getMap().addControl(this._printCtrl),this.getMap().addControl(this._printDialog))};Un.prototype.setScale=function(r){Ast(this.getMap(),r),this._input.scale.value=" "+Math.round(r/100)*100};Un.prototype.getScale=function(){return zS(this.getMap())};Un.prototype.print=function(r){r=r||{},r.size&&this.setSize(r.size),r.scale&&this.setScale(r.scale),r.orientation&&this.setOrientation(r.orientation),r.margin&&this.setMargin(r.margin),this._printDialog.show()};Un.prototype.getrintControl=function(){return this._printCtrl};var HF={exports:{}};(function(r,e){(function(t,n){n()})(ZA,function(){function t(l,u){return typeof u>"u"?u={autoBom:!1}:typeof u!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),u={autoBom:!u}),u.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(l.type)?new Blob(["\uFEFF",l],{type:l.type}):l}function n(l,u,c){var h=new XMLHttpRequest;h.open("GET",l),h.responseType="blob",h.onload=function(){A(h.response,u,c)},h.onerror=function(){console.error("could not download file")},h.send()}function i(l){var u=new XMLHttpRequest;u.open("HEAD",l,!1);try{u.send()}catch{}return 200<=u.status&&299>=u.status}function a(l){try{l.dispatchEvent(new MouseEvent("click"))}catch{var u=document.createEvent("MouseEvents");u.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),l.dispatchEvent(u)}}var o=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof ZA=="object"&&ZA.global===ZA?ZA:void 0,s=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),A=o.saveAs||(typeof window!="object"||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(l,u,c){var h=o.URL||o.webkitURL,f=document.createElement("a");u=u||l.name||"download",f.download=u,f.rel="noopener",typeof l=="string"?(f.href=l,f.origin===location.origin?a(f):i(f.href)?n(l,u,c):a(f,f.target="_blank")):(f.href=h.createObjectURL(l),setTimeout(function(){h.revokeObjectURL(f.href)},4e4),setTimeout(function(){a(f)},0))}:"msSaveOrOpenBlob"in navigator?function(l,u,c){if(u=u||l.name||"download",typeof l!="string")navigator.msSaveOrOpenBlob(t(l,c),u);else if(i(l))n(l,u,c);else{var h=document.createElement("a");h.href=l,h.target="_blank",setTimeout(function(){a(h)})}}:function(l,u,c,h){if(h=h||open("","_blank"),h&&(h.document.title=h.document.body.innerText="downloading..."),typeof l=="string")return n(l,u,c);var f=l.type==="application/octet-stream",p=/constructor/i.test(o.HTMLElement)||o.safari,v=/CriOS\/[\d]+/.test(navigator.userAgent);if((v||f&&p||s)&&typeof FileReader<"u"){var m=new FileReader;m.onloadend=function(){var w=m.result;w=v?w:w.replace(/^data:[^;]*;/,"data:attachment/file;"),h?h.location.href=w:location=w,h=null},m.readAsDataURL(l)}else{var g=o.URL||o.webkitURL,_=g.createObjectURL(l);h?h.location=_:location.href=_,h=null,setTimeout(function(){g.revokeObjectURL(_)},4e4)}});o.saveAs=A.saveAs=A,r.exports=A})})(HF);function gn(r){return gn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gn(r)}var co=Uint8Array,ho=Uint16Array,py=Uint32Array,zE=new co([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),XE=new co([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),XS=new co([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),ok=function(r,e){for(var t=new ho(31),n=0;n<31;++n)t[n]=e+=1<<r[n-1];for(var i=new py(t[30]),n=1;n<30;++n)for(var a=t[n];a<t[n+1];++a)i[a]=a-t[n]<<5|n;return[t,i]},sk=ok(zE,2),Ak=sk[0],qS=sk[1];Ak[28]=258,qS[258]=28;var lk=ok(XE,0),lst=lk[0],zN=lk[1],ZS=new ho(32768);for(var Rn=0;Rn<32768;++Rn){var sc=(Rn&43690)>>>1|(Rn&21845)<<1;sc=(sc&52428)>>>2|(sc&13107)<<2,sc=(sc&61680)>>>4|(sc&3855)<<4,ZS[Rn]=((sc&65280)>>>8|(sc&255)<<8)>>>1}var sl=function(r,e,t){for(var n=r.length,i=0,a=new ho(e);i<n;++i)++a[r[i]-1];var o=new ho(e);for(i=0;i<e;++i)o[i]=o[i-1]+a[i-1]<<1;var s;if(t){s=new ho(1<<e);var A=15-e;for(i=0;i<n;++i)if(r[i])for(var l=i<<4|r[i],u=e-r[i],c=o[r[i]-1]++<<u,h=c|(1<<u)-1;c<=h;++c)s[ZS[c]>>>A]=l}else for(s=new ho(n),i=0;i<n;++i)s[i]=ZS[o[r[i]-1]++]>>>15-r[i];return s},Zc=new co(288);for(var Rn=0;Rn<144;++Rn)Zc[Rn]=8;for(var Rn=144;Rn<256;++Rn)Zc[Rn]=9;for(var Rn=256;Rn<280;++Rn)Zc[Rn]=7;for(var Rn=280;Rn<288;++Rn)Zc[Rn]=8;var dy=new co(32);for(var Rn=0;Rn<32;++Rn)dy[Rn]=5;var ust=sl(Zc,9,0),cst=sl(Zc,9,1),hst=sl(dy,5,0),fst=sl(dy,5,1),qB=function(r){for(var e=r[0],t=1;t<r.length;++t)r[t]>e&&(e=r[t]);return e},eA=function(r,e,t){var n=e/8>>0;return(r[n]|r[n+1]<<8)>>>(e&7)&t},ZB=function(r,e){var t=e/8>>0;return(r[t]|r[t+1]<<8|r[t+2]<<16)>>>(e&7)},GF=function(r){return(r/8>>0)+(r&7&&1)},uk=function(r,e,t){(e==null||e<0)&&(e=0),(t==null||t>r.length)&&(t=r.length);var n=new(r instanceof ho?ho:r instanceof py?py:co)(t-e);return n.set(r.subarray(e,t)),n},pst=function(r,e,t){var n=r.length,i=!e||t,a=!t||t.i;t||(t={}),e||(e=new co(n*3));var o=function(J){var ot=e.length;if(J>ot){var ut=new co(Math.max(ot*2,J));ut.set(e),e=ut}},s=t.f||0,A=t.p||0,l=t.b||0,u=t.l,c=t.d,h=t.m,f=t.n,p=n*8;do{if(!u){t.f=s=eA(r,A,1);var v=eA(r,A+1,3);if(A+=3,v)if(v==1)u=cst,c=fst,h=9,f=5;else if(v==2){var w=eA(r,A,31)+257,C=eA(r,A+10,15)+4,F=w+eA(r,A+5,31)+1;A+=14;for(var O=new co(F),I=new co(19),b=0;b<C;++b)I[XS[b]]=eA(r,A+b*3,7);A+=C*3;var L=qB(I),N=(1<<L)-1;if(!a&&A+F*(L+7)>p)break;for(var x=sl(I,L,1),b=0;b<F;){var S=x[eA(r,A,N)];A+=S&15;var m=S>>>4;if(m<16)O[b++]=m;else{var P=0,U=0;for(m==16?(U=3+eA(r,A,3),A+=2,P=O[b-1]):m==17?(U=3+eA(r,A,7),A+=3):m==18&&(U=11+eA(r,A,127),A+=7);U--;)O[b++]=P}}var tt=O.subarray(0,w),q=O.subarray(w);h=qB(tt),f=qB(q),u=sl(tt,h,1),c=sl(q,f,1)}else throw"invalid block type";else{var m=GF(A)+4,g=r[m-4]|r[m-3]<<8,_=m+g;if(_>n){if(a)throw"unexpected EOF";break}i&&o(l+g),e.set(r.subarray(m,_),l),t.b=l+=g,t.p=A=_*8;continue}if(A>p)throw"unexpected EOF"}i&&o(l+131072);for(var rt=(1<<h)-1,nt=(1<<f)-1,At=h+f+18;a||A+At<p;){var P=u[ZB(r,A)&rt],ct=P>>>4;if(A+=P&15,A>p)throw"unexpected EOF";if(!P)throw"invalid length/literal";if(ct<256)e[l++]=ct;else if(ct==256){u=null;break}else{var bt=ct-254;if(ct>264){var b=ct-257,M=zE[b];bt=eA(r,A,(1<<M)-1)+Ak[b],A+=M}var Y=c[ZB(r,A)&nt],z=Y>>>4;if(!Y)throw"invalid distance";A+=Y&15;var q=lst[z];if(z>3){var M=XE[z];q+=ZB(r,A)&(1<<M)-1,A+=M}if(A>p)throw"unexpected EOF";i&&o(l+131072);for(var H=l+bt;l<H;l+=4)e[l]=e[l-q],e[l+1]=e[l+1-q],e[l+2]=e[l+2-q],e[l+3]=e[l+3-q];l=H}}t.l=u,t.p=A,t.b=l,u&&(s=1,t.m=h,t.d=c,t.n=f)}while(!s);return l==e.length?e:uk(e,0,l)},kl=function(r,e,t){t<<=e&7;var n=e/8>>0;r[n]|=t,r[n+1]|=t>>>8},Og=function(r,e,t){t<<=e&7;var n=e/8>>0;r[n]|=t,r[n+1]|=t>>>8,r[n+2]|=t>>>16},JB=function(r,e){for(var t=[],n=0;n<r.length;++n)r[n]&&t.push({s:n,f:r[n]});var i=t.length,a=t.slice();if(!i)return[new co(0),0];if(i==1){var o=new co(t[0].s+1);return o[t[0].s]=1,[o,1]}t.sort(function(F,O){return F.f-O.f}),t.push({s:-1,f:25001});var s=t[0],A=t[1],l=0,u=1,c=2;for(t[0]={s:-1,f:s.f+A.f,l:s,r:A};u!=i-1;)s=t[t[l].f<t[c].f?l++:c++],A=t[l!=u&&t[l].f<t[c].f?l++:c++],t[u++]={s:-1,f:s.f+A.f,l:s,r:A};for(var h=a[0].s,n=1;n<i;++n)a[n].s>h&&(h=a[n].s);var f=new ho(h+1),p=JS(t[u-1],f,0);if(p>e){var n=0,v=0,m=p-e,g=1<<m;for(a.sort(function(O,I){return f[I.s]-f[O.s]||O.f-I.f});n<i;++n){var _=a[n].s;if(f[_]>e)v+=g-(1<<p-f[_]),f[_]=e;else break}for(v>>>=m;v>0;){var w=a[n].s;f[w]<e?v-=1<<e-f[w]++-1:++n}for(;n>=0&&v;--n){var C=a[n].s;f[C]==e&&(--f[C],++v)}p=e}return[new co(f),p]},JS=function(r,e,t){return r.s==-1?Math.max(JS(r.l,e,t+1),JS(r.r,e,t+1)):e[r.s]=t},XN=function(r){for(var e=r.length;e&&!r[--e];);for(var t=new ho(++e),n=0,i=r[0],a=1,o=function(A){t[n++]=A},s=1;s<=e;++s)if(r[s]==i&&s!=e)++a;else{if(!i&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(i),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(i);a=1,i=r[s]}return[t.subarray(0,n),e]},Rg=function(r,e){for(var t=0,n=0;n<e.length;++n)t+=r[n]*e[n];return t},v1=function(r,e,t){var n=t.length,i=GF(e+2);r[i]=n&255,r[i+1]=n>>>8,r[i+2]=r[i]^255,r[i+3]=r[i+1]^255;for(var a=0;a<n;++a)r[i+a+4]=t[a];return(i+4+n)*8},qN=function(r,e,t,n,i,a,o,s,A,l,u){kl(e,u++,t),++i[256];for(var c=JB(i,15),h=c[0],f=c[1],p=JB(a,15),v=p[0],m=p[1],g=XN(h),_=g[0],w=g[1],C=XN(v),F=C[0],O=C[1],I=new ho(19),b=0;b<_.length;++b)I[_[b]&31]++;for(var b=0;b<F.length;++b)I[F[b]&31]++;for(var L=JB(I,7),N=L[0],x=L[1],S=19;S>4&&!N[XS[S-1]];--S);var P=l+5<<3,U=Rg(i,Zc)+Rg(a,dy)+o,tt=Rg(i,h)+Rg(a,v)+o+14+3*S+Rg(I,N)+(2*I[16]+3*I[17]+7*I[18]);if(P<=U&&P<=tt)return v1(e,u,r.subarray(A,A+l));var q,rt,nt,At;if(kl(e,u,1+(tt<U)),u+=2,tt<U){q=sl(h,f,0),rt=h,nt=sl(v,m,0),At=v;var ct=sl(N,x,0);kl(e,u,w-257),kl(e,u+5,O-1),kl(e,u+10,S-4),u+=14;for(var b=0;b<S;++b)kl(e,u+3*b,N[XS[b]]);u+=3*S;for(var bt=[_,F],M=0;M<2;++M)for(var Y=bt[M],b=0;b<Y.length;++b){var z=Y[b]&31;kl(e,u,ct[z]),u+=N[z],z>15&&(kl(e,u,Y[b]>>>5&127),u+=Y[b]>>>12)}}else q=ust,rt=Zc,nt=hst,At=dy;for(var b=0;b<s;++b)if(n[b]>255){var z=n[b]>>>18&31;Og(e,u,q[z+257]),u+=rt[z+257],z>7&&(kl(e,u,n[b]>>>23&31),u+=zE[z]);var H=n[b]&31;Og(e,u,nt[H]),u+=At[H],H>3&&(Og(e,u,n[b]>>>5&8191),u+=XE[H])}else Og(e,u,q[n[b]]),u+=rt[n[b]];return Og(e,u,q[256]),u+rt[256]},dst=new py([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),vst=new co(0),gst=function(r,e,t,n,i,a){var o=r.length,s=new co(n+o+5*(1+Math.floor(o/7e3))+i),A=s.subarray(n,s.length-i),l=0;if(!e||o<8)for(var u=0;u<=o;u+=65535){var c=u+65535;c<o?l=v1(A,l,r.subarray(u,c)):(A[u]=a,l=v1(A,l,r.subarray(u,o)))}else{for(var h=dst[e-1],f=h>>>13,p=h&8191,v=(1<<t)-1,m=new ho(32768),g=new ho(v+1),_=Math.ceil(t/3),w=2*_,C=function(ft){return(r[ft]^r[ft+1]<<_^r[ft+2]<<w)&v},F=new py(25e3),O=new ho(288),I=new ho(32),b=0,L=0,u=0,N=0,x=0,S=0;u<o;++u){var P=C(u),U=u&32767,tt=g[P];if(m[U]=tt,g[P]=U,x<=u){var q=o-u;if((b>7e3||N>24576)&&q>423){l=qN(r,A,0,F,O,I,L,N,S,u-S,l),N=b=L=0,S=u;for(var rt=0;rt<286;++rt)O[rt]=0;for(var rt=0;rt<30;++rt)I[rt]=0}var nt=2,At=0,ct=p,bt=U-tt&32767;if(q>2&&P==C(u-bt))for(var M=Math.min(f,q)-1,Y=Math.min(32767,u),z=Math.min(258,q);bt<=Y&&--ct&&U!=tt;){if(r[u+nt]==r[u+nt-bt]){for(var H=0;H<z&&r[u+H]==r[u+H-bt];++H);if(H>nt){if(nt=H,At=bt,H>M)break;for(var J=Math.min(bt,H-2),ot=0,rt=0;rt<J;++rt){var ut=u-bt+rt+32768&32767,X=m[ut],It=ut-X+32768&32767;It>ot&&(ot=It,tt=ut)}}}U=tt,tt=m[U],bt+=U-tt+32768&32767}if(At){F[N++]=268435456|qS[nt]<<18|zN[At];var at=qS[nt]&31,j=zN[At]&31;L+=zE[at]+XE[j],++O[257+at],++I[j],x=u+nt,++b}else F[N++]=r[u],++O[r[u]]}}l=qN(r,A,a,F,O,I,L,N,S,u-S,l),a||(l=v1(A,l,vst))}return uk(s,0,n+GF(l)+i)},mst=function(){var r=1,e=0;return{p:function(t){for(var n=r,i=e,a=t.length,o=0;o!=a;){for(var s=Math.min(o+5552,a);o<s;++o)n+=t[o],i+=n;n%=65521,i%=65521}r=n,e=i},d:function(){return(r>>>8<<16|(e&255)<<8|e>>>8)+((r&255)<<23)*2}}},yst=function(r,e,t,n,i){return gst(r,e.level==null?6:e.level,e.mem==null?Math.ceil(Math.max(8,Math.min(13,Math.log(r.length)))*1.5):12+e.mem,t,n,!i)},_st=function(r,e,t){for(;t;++e)r[e]=t,t>>>=8},wst=function(r,e){var t=e.level,n=t==0?0:t<6?1:t==9?3:2;r[0]=120,r[1]=n<<6|(n?32-2*n:1)},Est=function(r){if((r[0]&15)!=8||r[0]>>>4>7||(r[0]<<8|r[1])%31)throw"invalid zlib data";if(r[1]&32)throw"invalid zlib data: preset dictionaries not supported"};function tx(r,e){e===void 0&&(e={});var t=mst();t.p(r);var n=yst(r,e,2,4);return wst(n,e),_st(n,n.length-4,t.d()),n}function Cst(r,e){return pst((Est(r),r.subarray(2,-4)),e)}/** @license
|
||
*
|
||
* jsPDF - PDF Document creation from JavaScript
|
||
* Version 2.5.0 Built on 2021-12-21T09:44:51.866Z
|
||
* CommitID 00000000
|
||
*
|
||
* Copyright (c) 2010-2021 James Hall <james@parall.ax>, https://github.com/MrRio/jsPDF
|
||
* 2015-2021 yWorks GmbH, http://www.yworks.com
|
||
* 2015-2021 Lukas Holländer <lukas.hollaender@yworks.com>, https://github.com/HackbrettXXX
|
||
* 2016-2018 Aras Abbasi <aras.abbasi@gmail.com>
|
||
* 2010 Aaron Spike, https://github.com/acspike
|
||
* 2012 Willow Systems Corporation, https://github.com/willowsystems
|
||
* 2012 Pablo Hess, https://github.com/pablohess
|
||
* 2012 Florian Jenett, https://github.com/fjenett
|
||
* 2013 Warren Weckesser, https://github.com/warrenweckesser
|
||
* 2013 Youssef Beddad, https://github.com/lifof
|
||
* 2013 Lee Driscoll, https://github.com/lsdriscoll
|
||
* 2013 Stefan Slonevskiy, https://github.com/stefslon
|
||
* 2013 Jeremy Morel, https://github.com/jmorel
|
||
* 2013 Christoph Hartmann, https://github.com/chris-rock
|
||
* 2014 Juan Pablo Gaviria, https://github.com/juanpgaviria
|
||
* 2014 James Makes, https://github.com/dollaruw
|
||
* 2014 Diego Casorran, https://github.com/diegocr
|
||
* 2014 Steven Spungin, https://github.com/Flamenco
|
||
* 2014 Kenneth Glassey, https://github.com/Gavvers
|
||
*
|
||
* Permission is hereby granted, free of charge, to any person obtaining
|
||
* a copy of this software and associated documentation files (the
|
||
* "Software"), to deal in the Software without restriction, including
|
||
* without limitation the rights to use, copy, modify, merge, publish,
|
||
* distribute, sublicense, and/or sell copies of the Software, and to
|
||
* permit persons to whom the Software is furnished to do so, subject to
|
||
* the following conditions:
|
||
*
|
||
* The above copyright notice and this permission notice shall be
|
||
* included in all copies or substantial portions of the Software.
|
||
*
|
||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||
*
|
||
* Contributor(s):
|
||
* siefkenj, ahwolf, rickygu, Midnith, saintclair, eaparango,
|
||
* kim3er, mfo, alnorth, Flamenco
|
||
*/var ze=function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this}();function tT(){ze.console&&typeof ze.console.log=="function"&&ze.console.log.apply(ze.console,arguments)}var Cn={log:tT,warn:function(r){ze.console&&(typeof ze.console.warn=="function"?ze.console.warn.apply(ze.console,arguments):tT.call(null,arguments))},error:function(r){ze.console&&(typeof ze.console.error=="function"?ze.console.error.apply(ze.console,arguments):tT(r))}};function eT(r,e,t){var n=new XMLHttpRequest;n.open("GET",r),n.responseType="blob",n.onload=function(){Zh(n.response,e,t)},n.onerror=function(){Cn.error("could not download file")},n.send()}function ZN(r){var e=new XMLHttpRequest;e.open("HEAD",r,!1);try{e.send()}catch{}return e.status>=200&&e.status<=299}function A_(r){try{r.dispatchEvent(new MouseEvent("click"))}catch{var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),r.dispatchEvent(e)}}var xm,ex,Zh=ze.saveAs||((typeof window>"u"?"undefined":gn(window))!=="object"||window!==ze?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(r,e,t){var n=ze.URL||ze.webkitURL,i=document.createElement("a");e=e||r.name||"download",i.download=e,i.rel="noopener",typeof r=="string"?(i.href=r,i.origin!==location.origin?ZN(i.href)?eT(r,e,t):A_(i,i.target="_blank"):A_(i)):(i.href=n.createObjectURL(r),setTimeout(function(){n.revokeObjectURL(i.href)},4e4),setTimeout(function(){A_(i)},0))}:"msSaveOrOpenBlob"in navigator?function(r,e,t){if(e=e||r.name||"download",typeof r=="string")if(ZN(r))eT(r,e,t);else{var n=document.createElement("a");n.href=r,n.target="_blank",setTimeout(function(){A_(n)})}else navigator.msSaveOrOpenBlob(function(i,a){return a===void 0?a={autoBom:!1}:gn(a)!=="object"&&(Cn.warn("Deprecated: Expected third argument to be a object"),a={autoBom:!a}),a.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(i.type)?new Blob([String.fromCharCode(65279),i],{type:i.type}):i}(r,t),e)}:function(r,e,t,n){if((n=n||open("","_blank"))&&(n.document.title=n.document.body.innerText="downloading..."),typeof r=="string")return eT(r,e,t);var i=r.type==="application/octet-stream",a=/constructor/i.test(ze.HTMLElement)||ze.safari,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||i&&a)&&(typeof FileReader>"u"?"undefined":gn(FileReader))==="object"){var s=new FileReader;s.onloadend=function(){var u=s.result;u=o?u:u.replace(/^data:[^;]*;/,"data:attachment/file;"),n?n.location.href=u:location=u,n=null},s.readAsDataURL(r)}else{var A=ze.URL||ze.webkitURL,l=A.createObjectURL(r);n?n.location=l:location.href=l,n=null,setTimeout(function(){A.revokeObjectURL(l)},4e4)}});/**
|
||
* A class to parse color values
|
||
* @author Stoyan Stefanov <sstoo@gmail.com>
|
||
* {@link http://www.phpied.com/rgb-color-parser-in-javascript/}
|
||
* @license Use it if you like it
|
||
*/function ck(r){var e;r=r||"",this.ok=!1,r.charAt(0)=="#"&&(r=r.substr(1,6)),r={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[r=(r=r.replace(/ /g,"")).toLowerCase()]||r;for(var t=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(s){return[parseInt(s[1]),parseInt(s[2]),parseInt(s[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(s){return[parseInt(s[1],16),parseInt(s[2],16),parseInt(s[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(s){return[parseInt(s[1]+s[1],16),parseInt(s[2]+s[2],16),parseInt(s[3]+s[3],16)]}}],n=0;n<t.length;n++){var i=t[n].re,a=t[n].process,o=i.exec(r);o&&(e=a(o),this.r=e[0],this.g=e[1],this.b=e[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var s=this.r.toString(16),A=this.g.toString(16),l=this.b.toString(16);return s.length==1&&(s="0"+s),A.length==1&&(A="0"+A),l.length==1&&(l="0"+l),"#"+s+A+l}}/**
|
||
* @license
|
||
* Joseph Myers does not specify a particular license for his work.
|
||
*
|
||
* Author: Joseph Myers
|
||
* Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js
|
||
*
|
||
* Modified by: Owen Leong
|
||
*/function rT(r,e){var t=r[0],n=r[1],i=r[2],a=r[3];t=Na(t,n,i,a,e[0],7,-680876936),a=Na(a,t,n,i,e[1],12,-389564586),i=Na(i,a,t,n,e[2],17,606105819),n=Na(n,i,a,t,e[3],22,-1044525330),t=Na(t,n,i,a,e[4],7,-176418897),a=Na(a,t,n,i,e[5],12,1200080426),i=Na(i,a,t,n,e[6],17,-1473231341),n=Na(n,i,a,t,e[7],22,-45705983),t=Na(t,n,i,a,e[8],7,1770035416),a=Na(a,t,n,i,e[9],12,-1958414417),i=Na(i,a,t,n,e[10],17,-42063),n=Na(n,i,a,t,e[11],22,-1990404162),t=Na(t,n,i,a,e[12],7,1804603682),a=Na(a,t,n,i,e[13],12,-40341101),i=Na(i,a,t,n,e[14],17,-1502002290),t=Pa(t,n=Na(n,i,a,t,e[15],22,1236535329),i,a,e[1],5,-165796510),a=Pa(a,t,n,i,e[6],9,-1069501632),i=Pa(i,a,t,n,e[11],14,643717713),n=Pa(n,i,a,t,e[0],20,-373897302),t=Pa(t,n,i,a,e[5],5,-701558691),a=Pa(a,t,n,i,e[10],9,38016083),i=Pa(i,a,t,n,e[15],14,-660478335),n=Pa(n,i,a,t,e[4],20,-405537848),t=Pa(t,n,i,a,e[9],5,568446438),a=Pa(a,t,n,i,e[14],9,-1019803690),i=Pa(i,a,t,n,e[3],14,-187363961),n=Pa(n,i,a,t,e[8],20,1163531501),t=Pa(t,n,i,a,e[13],5,-1444681467),a=Pa(a,t,n,i,e[2],9,-51403784),i=Pa(i,a,t,n,e[7],14,1735328473),t=Ua(t,n=Pa(n,i,a,t,e[12],20,-1926607734),i,a,e[5],4,-378558),a=Ua(a,t,n,i,e[8],11,-2022574463),i=Ua(i,a,t,n,e[11],16,1839030562),n=Ua(n,i,a,t,e[14],23,-35309556),t=Ua(t,n,i,a,e[1],4,-1530992060),a=Ua(a,t,n,i,e[4],11,1272893353),i=Ua(i,a,t,n,e[7],16,-155497632),n=Ua(n,i,a,t,e[10],23,-1094730640),t=Ua(t,n,i,a,e[13],4,681279174),a=Ua(a,t,n,i,e[0],11,-358537222),i=Ua(i,a,t,n,e[3],16,-722521979),n=Ua(n,i,a,t,e[6],23,76029189),t=Ua(t,n,i,a,e[9],4,-640364487),a=Ua(a,t,n,i,e[12],11,-421815835),i=Ua(i,a,t,n,e[15],16,530742520),t=Da(t,n=Ua(n,i,a,t,e[2],23,-995338651),i,a,e[0],6,-198630844),a=Da(a,t,n,i,e[7],10,1126891415),i=Da(i,a,t,n,e[14],15,-1416354905),n=Da(n,i,a,t,e[5],21,-57434055),t=Da(t,n,i,a,e[12],6,1700485571),a=Da(a,t,n,i,e[3],10,-1894986606),i=Da(i,a,t,n,e[10],15,-1051523),n=Da(n,i,a,t,e[1],21,-2054922799),t=Da(t,n,i,a,e[8],6,1873313359),a=Da(a,t,n,i,e[15],10,-30611744),i=Da(i,a,t,n,e[6],15,-1560198380),n=Da(n,i,a,t,e[13],21,1309151649),t=Da(t,n,i,a,e[4],6,-145523070),a=Da(a,t,n,i,e[11],10,-1120210379),i=Da(i,a,t,n,e[2],15,718787259),n=Da(n,i,a,t,e[9],21,-343485551),r[0]=Tc(t,r[0]),r[1]=Tc(n,r[1]),r[2]=Tc(i,r[2]),r[3]=Tc(a,r[3])}function qE(r,e,t,n,i,a){return e=Tc(Tc(e,r),Tc(n,a)),Tc(e<<i|e>>>32-i,t)}function Na(r,e,t,n,i,a,o){return qE(e&t|~e&n,r,e,i,a,o)}function Pa(r,e,t,n,i,a,o){return qE(e&n|t&~n,r,e,i,a,o)}function Ua(r,e,t,n,i,a,o){return qE(e^t^n,r,e,i,a,o)}function Da(r,e,t,n,i,a,o){return qE(t^(e|~n),r,e,i,a,o)}function hk(r){var e,t=r.length,n=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=r.length;e+=64)rT(n,Bst(r.substring(e-64,e)));r=r.substring(e-64);var i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<r.length;e++)i[e>>2]|=r.charCodeAt(e)<<(e%4<<3);if(i[e>>2]|=128<<(e%4<<3),e>55)for(rT(n,i),e=0;e<16;e++)i[e]=0;return i[14]=8*t,rT(n,i),n}function Bst(r){var e,t=[];for(e=0;e<64;e+=4)t[e>>2]=r.charCodeAt(e)+(r.charCodeAt(e+1)<<8)+(r.charCodeAt(e+2)<<16)+(r.charCodeAt(e+3)<<24);return t}xm=ze.atob.bind(ze),ex=ze.btoa.bind(ze);var JN="0123456789abcdef".split("");function Tst(r){for(var e="",t=0;t<4;t++)e+=JN[r>>8*t+4&15]+JN[r>>8*t&15];return e}function bst(r){return String.fromCharCode((255&r)>>0,(65280&r)>>8,(16711680&r)>>16,(4278190080&r)>>24)}function rx(r){return hk(r).map(bst).join("")}var Sst=function(r){for(var e=0;e<r.length;e++)r[e]=Tst(r[e]);return r.join("")}(hk("hello"))!="5d41402abc4b2a76b9719d911017c592";function Tc(r,e){if(Sst){var t=(65535&r)+(65535&e);return(r>>16)+(e>>16)+(t>>16)<<16|65535&t}return r+e&4294967295}/**
|
||
* @license
|
||
* FPDF is released under a permissive license: there is no usage restriction.
|
||
* You may embed it freely in your application (commercial or not), with or
|
||
* without modifications.
|
||
*
|
||
* Reference: http://www.fpdf.org/en/script/script37.php
|
||
*/function nx(r,e){var t,n,i,a;if(r!==t){for(var o=(i=r,a=1+(256/r.length>>0),new Array(a+1).join(i)),s=[],A=0;A<256;A++)s[A]=A;var l=0;for(A=0;A<256;A++){var u=s[A];l=(l+u+o.charCodeAt(A))%256,s[A]=s[l],s[l]=u}t=r,n=s}else s=n;var c=e.length,h=0,f=0,p="";for(A=0;A<c;A++)f=(f+(u=s[h=(h+1)%256]))%256,s[h]=s[f],s[f]=u,o=s[(s[h]+s[f])%256],p+=String.fromCharCode(e.charCodeAt(A)^o);return p}/**
|
||
* @license
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
* Author: Owen Leong (@owenl131)
|
||
* Date: 15 Oct 2020
|
||
* References:
|
||
* https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
|
||
* https://github.com/foliojs/pdfkit/blob/master/lib/security.js
|
||
* http://www.fpdf.org/en/script/script37.php
|
||
*/var tP={print:4,modify:8,copy:16,"annot-forms":32};function gd(r,e,t,n){this.v=1,this.r=2;var i=192;r.forEach(function(s){if(tP.perm!==void 0)throw new Error("Invalid permission: "+s);i+=tP[s]}),this.padding="(¿N^NuAd\0NVÿú\b..\0¶Ðh>/\f©þdSiz";var a=(e+this.padding).substr(0,32),o=(t+this.padding).substr(0,32);this.O=this.processOwnerPassword(a,o),this.P=-(1+(255^i)),this.encryptionKey=rx(a+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(n)).substr(0,5),this.U=nx(this.encryptionKey,this.padding)}function md(r){if(/[^\u0000-\u00ff]/.test(r))throw new Error("Invalid PDF Name Object: "+r+", Only accept ASCII characters.");for(var e="",t=r.length,n=0;n<t;n++){var i=r.charCodeAt(n);i<33||i===35||i===37||i===40||i===41||i===47||i===60||i===62||i===91||i===93||i===123||i===125||i>126?e+="#"+("0"+i.toString(16)).slice(-2):e+=r[n]}return e}function eP(r){if(gn(r)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var e={};this.subscribe=function(t,n,i){if(i=i||!1,typeof t!="string"||typeof n!="function"||typeof i!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");e.hasOwnProperty(t)||(e[t]={});var a=Math.random().toString(35);return e[t][a]=[n,!!i],a},this.unsubscribe=function(t){for(var n in e)if(e[n][t])return delete e[n][t],Object.keys(e[n]).length===0&&delete e[n],!0;return!1},this.publish=function(t){if(e.hasOwnProperty(t)){var n=Array.prototype.slice.call(arguments,1),i=[];for(var a in e[t]){var o=e[t][a];try{o[0].apply(r,n)}catch(s){ze.console&&Cn.error("jsPDF PubSub Error",s.message,s)}o[1]&&i.push(a)}i.length&&i.forEach(this.unsubscribe)}},this.getTopics=function(){return e}}function mw(r){if(!(this instanceof mw))return new mw(r);var e="opacity,stroke-opacity".split(",");for(var t in r)r.hasOwnProperty(t)&&e.indexOf(t)>=0&&(this[t]=r[t]);this.id="",this.objectNumber=-1}function fk(r,e){this.gState=r,this.matrix=e,this.id="",this.objectNumber=-1}function rf(r,e,t,n,i){if(!(this instanceof rf))return new rf(r,e,t,n,i);this.type=r==="axial"?2:3,this.coords=e,this.colors=t,fk.call(this,n,i)}function Fd(r,e,t,n,i){if(!(this instanceof Fd))return new Fd(r,e,t,n,i);this.boundingBox=r,this.xStep=e,this.yStep=t,this.stream="",this.cloneIndex=0,fk.call(this,n,i)}function Ke(r){var e,t=typeof arguments[0]=="string"?arguments[0]:"p",n=arguments[1],i=arguments[2],a=arguments[3],o=[],s=1,A=16,l="S",u=null;gn(r=r||{})==="object"&&(t=r.orientation,n=r.unit||n,i=r.format||i,a=r.compress||r.compressPdf||a,(u=r.encryption||null)!==null&&(u.userPassword=u.userPassword||"",u.ownerPassword=u.ownerPassword||"",u.userPermissions=u.userPermissions||[]),s=typeof r.userUnit=="number"?Math.abs(r.userUnit):1,r.precision!==void 0&&(e=r.precision),r.floatPrecision!==void 0&&(A=r.floatPrecision),l=r.defaultPathOperation||"S"),o=r.filters||(a===!0?["FlateEncode"]:o),n=n||"mm",t=(""+(t||"P")).toLowerCase();var c=r.putOnlyUsedFonts||!1,h={},f={internal:{},__private__:{}};f.__private__.PubSub=eP;var p="1.3",v=f.__private__.getPdfVersion=function(){return p};f.__private__.setPdfVersion=function(E){p=E};var m={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};f.__private__.getPageFormats=function(){return m};var g=f.__private__.getPageFormat=function(E){return m[E]};i=i||"a4";var _={COMPAT:"compat",ADVANCED:"advanced"},w=_.COMPAT;function C(){this.saveGraphicsState(),V(new Ue(qt,0,0,-qt,0,Ws()*qt).toString()+" cm"),this.setFontSize(this.getFontSize()/qt),l="n",w=_.ADVANCED}function F(){this.restoreGraphicsState(),l="S",w=_.COMPAT}var O=f.__private__.combineFontStyleAndFontWeight=function(E,k){if(E=="bold"&&k=="normal"||E=="bold"&&k==400||E=="normal"&&k=="italic"||E=="bold"&&k=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return k&&(E=k==400||k==="normal"?E==="italic"?"italic":"normal":k!=700&&k!=="bold"||E!=="normal"?(k==700?"bold":k)+""+E:"bold"),E};f.advancedAPI=function(E){var k=w===_.COMPAT;return k&&C.call(this),typeof E!="function"||(E(this),k&&F.call(this)),this},f.compatAPI=function(E){var k=w===_.ADVANCED;return k&&F.call(this),typeof E!="function"||(E(this),k&&C.call(this)),this},f.isAdvancedAPI=function(){return w===_.ADVANCED};var I,b=function(E){if(w!==_.ADVANCED)throw new Error(E+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},L=f.roundToPrecision=f.__private__.roundToPrecision=function(E,k){var st=e||k;if(isNaN(E)||isNaN(st))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return E.toFixed(st).replace(/0+$/,"")};I=f.hpf=f.__private__.hpf=typeof A=="number"?function(E){if(isNaN(E))throw new Error("Invalid argument passed to jsPDF.hpf");return L(E,A)}:A==="smart"?function(E){if(isNaN(E))throw new Error("Invalid argument passed to jsPDF.hpf");return L(E,E>-1&&E<1?16:5)}:function(E){if(isNaN(E))throw new Error("Invalid argument passed to jsPDF.hpf");return L(E,16)};var N=f.f2=f.__private__.f2=function(E){if(isNaN(E))throw new Error("Invalid argument passed to jsPDF.f2");return L(E,2)},x=f.__private__.f3=function(E){if(isNaN(E))throw new Error("Invalid argument passed to jsPDF.f3");return L(E,3)},S=f.scale=f.__private__.scale=function(E){if(isNaN(E))throw new Error("Invalid argument passed to jsPDF.scale");return w===_.COMPAT?E*qt:w===_.ADVANCED?E:void 0},P=function(E){return w===_.COMPAT?Ws()-E:w===_.ADVANCED?E:void 0},U=function(E){return S(P(E))};f.__private__.setPrecision=f.setPrecision=function(E){typeof parseInt(E,10)=="number"&&(e=parseInt(E,10))};var tt,q="00000000000000000000000000000000",rt=f.__private__.getFileId=function(){return q},nt=f.__private__.setFileId=function(E){return q=E!==void 0&&/^[a-fA-F0-9]{32}$/.test(E)?E.toUpperCase():q.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),u!==null&&(Zi=new gd(u.userPermissions,u.userPassword,u.ownerPassword,q)),q};f.setFileId=function(E){return nt(E),this},f.getFileId=function(){return rt()};var At=f.__private__.convertDateToPDFDate=function(E){var k=E.getTimezoneOffset(),st=k<0?"+":"-",vt=Math.floor(Math.abs(k/60)),xt=Math.abs(k%60),Ut=[st,z(vt),"'",z(xt),"'"].join("");return["D:",E.getFullYear(),z(E.getMonth()+1),z(E.getDate()),z(E.getHours()),z(E.getMinutes()),z(E.getSeconds()),Ut].join("")},ct=f.__private__.convertPDFDateToDate=function(E){var k=parseInt(E.substr(2,4),10),st=parseInt(E.substr(6,2),10)-1,vt=parseInt(E.substr(8,2),10),xt=parseInt(E.substr(10,2),10),Ut=parseInt(E.substr(12,2),10),zt=parseInt(E.substr(14,2),10);return new Date(k,st,vt,xt,Ut,zt,0)},bt=f.__private__.setCreationDate=function(E){var k;if(E===void 0&&(E=new Date),E instanceof Date)k=At(E);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(E))throw new Error("Invalid argument passed to jsPDF.setCreationDate");k=E}return tt=k},M=f.__private__.getCreationDate=function(E){var k=tt;return E==="jsDate"&&(k=ct(tt)),k};f.setCreationDate=function(E){return bt(E),this},f.getCreationDate=function(E){return M(E)};var Y,z=f.__private__.padd2=function(E){return("0"+parseInt(E)).slice(-2)},H=f.__private__.padd2Hex=function(E){return("00"+(E=E.toString())).substr(E.length)},J=0,ot=[],ut=[],X=0,It=[],at=[],j=!1,Z=ut,ft=function(){J=0,X=0,ut=[],ot=[],It=[],pe=Cr(),_t=Cr()};f.__private__.setCustomOutputDestination=function(E){j=!0,Z=E};var it=function(E){j||(Z=E)};f.__private__.resetCustomOutputDestination=function(){j=!1,Z=ut};var V=f.__private__.out=function(E){return E=E.toString(),X+=E.length+1,Z.push(E),Z},Ot=f.__private__.write=function(E){return V(arguments.length===1?E.toString():Array.prototype.join.call(arguments," "))},Mt=f.__private__.getArrayBuffer=function(E){for(var k=E.length,st=new ArrayBuffer(k),vt=new Uint8Array(st);k--;)vt[k]=E.charCodeAt(k);return st},Et=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];f.__private__.getStandardFonts=function(){return Et};var Bt=r.fontSize||16;f.__private__.setFontSize=f.setFontSize=function(E){return Bt=w===_.ADVANCED?E/qt:E,this};var Ct,Rt=f.__private__.getFontSize=f.getFontSize=function(){return w===_.COMPAT?Bt:Bt*qt},Nt=r.R2L||!1;f.__private__.setR2L=f.setR2L=function(E){return Nt=E,this},f.__private__.getR2L=f.getR2L=function(){return Nt};var Dt,Yt=f.__private__.setZoomMode=function(E){var k=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^\d*\.?\d*%$/.test(E))Ct=E;else if(isNaN(E)){if(k.indexOf(E)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+E+'" is not recognized.');Ct=E}else Ct=parseInt(E,10)};f.__private__.getZoomMode=function(){return Ct};var te,Ae=f.__private__.setPageMode=function(E){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(E)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+E+'" is not recognized.');Dt=E};f.__private__.getPageMode=function(){return Dt};var oe=f.__private__.setLayoutMode=function(E){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(E)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+E+'" is not recognized.');te=E};f.__private__.getLayoutMode=function(){return te},f.__private__.setDisplayMode=f.setDisplayMode=function(E,k,st){return Yt(E),oe(k),Ae(st),this};var Jt={title:"",subject:"",author:"",keywords:"",creator:""};f.__private__.getDocumentProperty=function(E){if(Object.keys(Jt).indexOf(E)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return Jt[E]},f.__private__.getDocumentProperties=function(){return Jt},f.__private__.setDocumentProperties=f.setProperties=f.setDocumentProperties=function(E){for(var k in Jt)Jt.hasOwnProperty(k)&&E[k]&&(Jt[k]=E[k]);return this},f.__private__.setDocumentProperty=function(E,k){if(Object.keys(Jt).indexOf(E)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return Jt[E]=k};var fe,qt,rr,ke,_r,Ne={},Pe={},kr=[],se={},ui={},dr={},Jn={},Kr=null,Yr=0,He=[],xr=new eP(f),kn=r.hotfixes||[],mn={},ci={},hi=[],Ue=function E(k,st,vt,xt,Ut,zt){if(!(this instanceof E))return new E(k,st,vt,xt,Ut,zt);isNaN(k)&&(k=1),isNaN(st)&&(st=0),isNaN(vt)&&(vt=0),isNaN(xt)&&(xt=1),isNaN(Ut)&&(Ut=0),isNaN(zt)&&(zt=0),this._matrix=[k,st,vt,xt,Ut,zt]};Object.defineProperty(Ue.prototype,"sx",{get:function(){return this._matrix[0]},set:function(E){this._matrix[0]=E}}),Object.defineProperty(Ue.prototype,"shy",{get:function(){return this._matrix[1]},set:function(E){this._matrix[1]=E}}),Object.defineProperty(Ue.prototype,"shx",{get:function(){return this._matrix[2]},set:function(E){this._matrix[2]=E}}),Object.defineProperty(Ue.prototype,"sy",{get:function(){return this._matrix[3]},set:function(E){this._matrix[3]=E}}),Object.defineProperty(Ue.prototype,"tx",{get:function(){return this._matrix[4]},set:function(E){this._matrix[4]=E}}),Object.defineProperty(Ue.prototype,"ty",{get:function(){return this._matrix[5]},set:function(E){this._matrix[5]=E}}),Object.defineProperty(Ue.prototype,"a",{get:function(){return this._matrix[0]},set:function(E){this._matrix[0]=E}}),Object.defineProperty(Ue.prototype,"b",{get:function(){return this._matrix[1]},set:function(E){this._matrix[1]=E}}),Object.defineProperty(Ue.prototype,"c",{get:function(){return this._matrix[2]},set:function(E){this._matrix[2]=E}}),Object.defineProperty(Ue.prototype,"d",{get:function(){return this._matrix[3]},set:function(E){this._matrix[3]=E}}),Object.defineProperty(Ue.prototype,"e",{get:function(){return this._matrix[4]},set:function(E){this._matrix[4]=E}}),Object.defineProperty(Ue.prototype,"f",{get:function(){return this._matrix[5]},set:function(E){this._matrix[5]=E}}),Object.defineProperty(Ue.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Ue.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Ue.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Ue.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),Ue.prototype.join=function(E){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(I).join(E)},Ue.prototype.multiply=function(E){var k=E.sx*this.sx+E.shy*this.shx,st=E.sx*this.shy+E.shy*this.sy,vt=E.shx*this.sx+E.sy*this.shx,xt=E.shx*this.shy+E.sy*this.sy,Ut=E.tx*this.sx+E.ty*this.shx+this.tx,zt=E.tx*this.shy+E.ty*this.sy+this.ty;return new Ue(k,st,vt,xt,Ut,zt)},Ue.prototype.decompose=function(){var E=this.sx,k=this.shy,st=this.shx,vt=this.sy,xt=this.tx,Ut=this.ty,zt=Math.sqrt(E*E+k*k),ce=(E/=zt)*st+(k/=zt)*vt;st-=E*ce,vt-=k*ce;var De=Math.sqrt(st*st+vt*vt);return ce/=De,E*(vt/=De)<k*(st/=De)&&(E=-E,k=-k,ce=-ce,zt=-zt),{scale:new Ue(zt,0,0,De,0,0),translate:new Ue(1,0,0,1,xt,Ut),rotate:new Ue(E,k,-k,E,0,0),skew:new Ue(1,0,ce,1,0,0)}},Ue.prototype.toString=function(E){return this.join(" ")},Ue.prototype.inversed=function(){var E=this.sx,k=this.shy,st=this.shx,vt=this.sy,xt=this.tx,Ut=this.ty,zt=1/(E*vt-k*st),ce=vt*zt,De=-k*zt,vr=-st*zt,nr=E*zt;return new Ue(ce,De,vr,nr,-ce*xt-vr*Ut,-De*xt-nr*Ut)},Ue.prototype.applyToPoint=function(E){var k=E.x*this.sx+E.y*this.shx+this.tx,st=E.x*this.shy+E.y*this.sy+this.ty;return new Uu(k,st)},Ue.prototype.applyToRectangle=function(E){var k=this.applyToPoint(E),st=this.applyToPoint(new Uu(E.x+E.w,E.y+E.h));return new Bh(k.x,k.y,st.x-k.x,st.y-k.y)},Ue.prototype.clone=function(){var E=this.sx,k=this.shy,st=this.shx,vt=this.sy,xt=this.tx,Ut=this.ty;return new Ue(E,k,st,vt,xt,Ut)},f.Matrix=Ue;var ti=f.matrixMult=function(E,k){return k.multiply(E)},En=new Ue(1,0,0,1,0,0);f.unitMatrix=f.identityMatrix=En;var fi=function(E,k){if(!ui[E]){var st=(k instanceof rf?"Sh":"P")+(Object.keys(se).length+1).toString(10);k.id=st,ui[E]=st,se[st]=k,xr.publish("addPattern",k)}};f.ShadingPattern=rf,f.TilingPattern=Fd,f.addShadingPattern=function(E,k){return b("addShadingPattern()"),fi(E,k),this},f.beginTilingPattern=function(E){b("beginTilingPattern()"),Fp(E.boundingBox[0],E.boundingBox[1],E.boundingBox[2]-E.boundingBox[0],E.boundingBox[3]-E.boundingBox[1],E.matrix)},f.endTilingPattern=function(E,k){b("endTilingPattern()"),k.stream=at[Y].join(`
|
||
`),fi(E,k),xr.publish("endTilingPattern",k),hi.pop().restore()};var un=f.__private__.newObject=function(){var E=Cr();return yn(E,!0),E},Cr=f.__private__.newObjectDeferred=function(){return J++,ot[J]=function(){return X},J},yn=function(E,k){return k=typeof k=="boolean"&&k,ot[E]=X,k&&V(E+" 0 obj"),E},Za=f.__private__.newAdditionalObject=function(){var E={objId:Cr(),content:""};return It.push(E),E},pe=Cr(),_t=Cr(),$t=f.__private__.decodeColorString=function(E){var k=E.split(" ");if(k.length!==2||k[1]!=="g"&&k[1]!=="G")k.length===5&&(k[4]==="k"||k[4]==="K")&&(k=[(1-k[0])*(1-k[3]),(1-k[1])*(1-k[3]),(1-k[2])*(1-k[3]),"r"]);else{var st=parseFloat(k[0]);k=[st,st,st,"r"]}for(var vt="#",xt=0;xt<3;xt++)vt+=("0"+Math.floor(255*parseFloat(k[xt])).toString(16)).slice(-2);return vt},ne=f.__private__.encodeColorString=function(E){var k;typeof E=="string"&&(E={ch1:E});var st=E.ch1,vt=E.ch2,xt=E.ch3,Ut=E.ch4,zt=E.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof st=="string"&&st.charAt(0)!=="#"){var ce=new ck(st);if(ce.ok)st=ce.toHex();else if(!/^\d*\.?\d*$/.test(st))throw new Error('Invalid color "'+st+'" passed to jsPDF.encodeColorString.')}if(typeof st=="string"&&/^#[0-9A-Fa-f]{3}$/.test(st)&&(st="#"+st[1]+st[1]+st[2]+st[2]+st[3]+st[3]),typeof st=="string"&&/^#[0-9A-Fa-f]{6}$/.test(st)){var De=parseInt(st.substr(1),16);st=De>>16&255,vt=De>>8&255,xt=255&De}if(vt===void 0||Ut===void 0&&st===vt&&vt===xt)if(typeof st=="string")k=st+" "+zt[0];else switch(E.precision){case 2:k=N(st/255)+" "+zt[0];break;case 3:default:k=x(st/255)+" "+zt[0]}else if(Ut===void 0||gn(Ut)==="object"){if(Ut&&!isNaN(Ut.a)&&Ut.a===0)return k=["1.","1.","1.",zt[1]].join(" ");if(typeof st=="string")k=[st,vt,xt,zt[1]].join(" ");else switch(E.precision){case 2:k=[N(st/255),N(vt/255),N(xt/255),zt[1]].join(" ");break;default:case 3:k=[x(st/255),x(vt/255),x(xt/255),zt[1]].join(" ")}}else if(typeof st=="string")k=[st,vt,xt,Ut,zt[2]].join(" ");else switch(E.precision){case 2:k=[N(st),N(vt),N(xt),N(Ut),zt[2]].join(" ");break;case 3:default:k=[x(st),x(vt),x(xt),x(Ut),zt[2]].join(" ")}return k},Ze=f.__private__.getFilters=function(){return o},Ir=f.__private__.putStream=function(E){var k=(E=E||{}).data||"",st=E.filters||Ze(),vt=E.alreadyAppliedFilters||[],xt=E.addLength1||!1,Ut=k.length,zt=E.objectId,ce=function(Ji){return Ji};if(u!==null&&zt===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");u!==null&&(ce=Zi.encryptor(zt,0));var De={};st===!0&&(st=["FlateEncode"]);var vr=E.additionalKeyValues||[],nr=(De=Ke.API.processDataByFilters!==void 0?Ke.API.processDataByFilters(k,st):{data:k,reverseChain:[]}).reverseChain+(Array.isArray(vt)?vt.join(" "):vt.toString());if(De.data.length!==0&&(vr.push({key:"Length",value:De.data.length}),xt===!0&&vr.push({key:"Length1",value:Ut})),nr.length!=0)if(nr.split("/").length-1==1)vr.push({key:"Filter",value:nr});else{vr.push({key:"Filter",value:"["+nr+"]"});for(var Br=0;Br<vr.length;Br+=1)if(vr[Br].key==="DecodeParms"){for(var ki=[],Gn=0;Gn<De.reverseChain.split("/").length-1;Gn+=1)ki.push("null");ki.push(vr[Br].value),vr[Br].value="["+ki.join(" ")+"]"}}V("<<");for(var ei=0;ei<vr.length;ei++)V("/"+vr[ei].key+" "+vr[ei].value);V(">>"),De.data.length!==0&&(V("stream"),V(ce(De.data)),V("endstream"))},cn=f.__private__.putPage=function(E){var k=E.number,st=E.data,vt=E.objId,xt=E.contentsObjId;yn(vt,!0),V("<</Type /Page"),V("/Parent "+E.rootDictionaryObjId+" 0 R"),V("/Resources "+E.resourceDictionaryObjId+" 0 R"),V("/MediaBox ["+parseFloat(I(E.mediaBox.bottomLeftX))+" "+parseFloat(I(E.mediaBox.bottomLeftY))+" "+I(E.mediaBox.topRightX)+" "+I(E.mediaBox.topRightY)+"]"),E.cropBox!==null&&V("/CropBox ["+I(E.cropBox.bottomLeftX)+" "+I(E.cropBox.bottomLeftY)+" "+I(E.cropBox.topRightX)+" "+I(E.cropBox.topRightY)+"]"),E.bleedBox!==null&&V("/BleedBox ["+I(E.bleedBox.bottomLeftX)+" "+I(E.bleedBox.bottomLeftY)+" "+I(E.bleedBox.topRightX)+" "+I(E.bleedBox.topRightY)+"]"),E.trimBox!==null&&V("/TrimBox ["+I(E.trimBox.bottomLeftX)+" "+I(E.trimBox.bottomLeftY)+" "+I(E.trimBox.topRightX)+" "+I(E.trimBox.topRightY)+"]"),E.artBox!==null&&V("/ArtBox ["+I(E.artBox.bottomLeftX)+" "+I(E.artBox.bottomLeftY)+" "+I(E.artBox.topRightX)+" "+I(E.artBox.topRightY)+"]"),typeof E.userUnit=="number"&&E.userUnit!==1&&V("/UserUnit "+E.userUnit),xr.publish("putPage",{objId:vt,pageContext:He[k],pageNumber:k,page:st}),V("/Contents "+xt+" 0 R"),V(">>"),V("endobj");var Ut=st.join(`
|
||
`);return w===_.ADVANCED&&(Ut+=`
|
||
Q`),yn(xt,!0),Ir({data:Ut,filters:Ze(),objectId:xt}),V("endobj"),vt},hn=f.__private__.putPages=function(){var E,k,st=[];for(E=1;E<=Yr;E++)He[E].objId=Cr(),He[E].contentsObjId=Cr();for(E=1;E<=Yr;E++)st.push(cn({number:E,data:at[E],objId:He[E].objId,contentsObjId:He[E].contentsObjId,mediaBox:He[E].mediaBox,cropBox:He[E].cropBox,bleedBox:He[E].bleedBox,trimBox:He[E].trimBox,artBox:He[E].artBox,userUnit:He[E].userUnit,rootDictionaryObjId:pe,resourceDictionaryObjId:_t}));yn(pe,!0),V("<</Type /Pages");var vt="/Kids [";for(k=0;k<Yr;k++)vt+=st[k]+" 0 R ";V(vt+"]"),V("/Count "+Yr),V(">>"),V("endobj"),xr.publish("postPutPages")},jo=function(E){xr.publish("putFont",{font:E,out:V,newObject:un,putStream:Ir}),E.isAlreadyPutted!==!0&&(E.objectNumber=un(),V("<<"),V("/Type /Font"),V("/BaseFont /"+md(E.postScriptName)),V("/Subtype /Type1"),typeof E.encoding=="string"&&V("/Encoding /"+E.encoding),V("/FirstChar 32"),V("/LastChar 255"),V(">>"),V("endobj"))},pi=function(){for(var E in Ne)Ne.hasOwnProperty(E)&&(c===!1||c===!0&&h.hasOwnProperty(E))&&jo(Ne[E])},$s=function(E){E.objectNumber=un();var k=[];k.push({key:"Type",value:"/XObject"}),k.push({key:"Subtype",value:"/Form"}),k.push({key:"BBox",value:"["+[I(E.x),I(E.y),I(E.x+E.width),I(E.y+E.height)].join(" ")+"]"}),k.push({key:"Matrix",value:"["+E.matrix.toString()+"]"});var st=E.pages[1].join(`
|
||
`);Ir({data:st,additionalKeyValues:k,objectId:E.objectNumber}),V("endobj")},TA=function(){for(var E in mn)mn.hasOwnProperty(E)&&$s(mn[E])},dh=function(E,k){var st,vt=[],xt=1/(k-1);for(st=0;st<1;st+=xt)vt.push(st);if(vt.push(1),E[0].offset!=0){var Ut={offset:0,color:E[0].color};E.unshift(Ut)}if(E[E.length-1].offset!=1){var zt={offset:1,color:E[E.length-1].color};E.push(zt)}for(var ce="",De=0,vr=0;vr<vt.length;vr++){for(st=vt[vr];st>E[De+1].offset;)De++;var nr=E[De].offset,Br=(st-nr)/(E[De+1].offset-nr),ki=E[De].color,Gn=E[De+1].color;ce+=H(Math.round((1-Br)*ki[0]+Br*Gn[0]).toString(16))+H(Math.round((1-Br)*ki[1]+Br*Gn[1]).toString(16))+H(Math.round((1-Br)*ki[2]+Br*Gn[2]).toString(16))}return ce.trim()},Wv=function(E,k){k||(k=21);var st=un(),vt=dh(E.colors,k),xt=[];xt.push({key:"FunctionType",value:"0"}),xt.push({key:"Domain",value:"[0.0 1.0]"}),xt.push({key:"Size",value:"["+k+"]"}),xt.push({key:"BitsPerSample",value:"8"}),xt.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),xt.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Ir({data:vt,additionalKeyValues:xt,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:st}),V("endobj"),E.objectNumber=un(),V("<< /ShadingType "+E.type),V("/ColorSpace /DeviceRGB");var Ut="/Coords ["+I(parseFloat(E.coords[0]))+" "+I(parseFloat(E.coords[1]))+" ";E.type===2?Ut+=I(parseFloat(E.coords[2]))+" "+I(parseFloat(E.coords[3])):Ut+=I(parseFloat(E.coords[2]))+" "+I(parseFloat(E.coords[3]))+" "+I(parseFloat(E.coords[4]))+" "+I(parseFloat(E.coords[5])),V(Ut+="]"),E.matrix&&V("/Matrix ["+E.matrix.toString()+"]"),V("/Function "+st+" 0 R"),V("/Extend [true true]"),V(">>"),V("endobj")},pp=function(E,k){var st=Cr(),vt=un();k.push({resourcesOid:st,objectOid:vt}),E.objectNumber=vt;var xt=[];xt.push({key:"Type",value:"/Pattern"}),xt.push({key:"PatternType",value:"1"}),xt.push({key:"PaintType",value:"1"}),xt.push({key:"TilingType",value:"1"}),xt.push({key:"BBox",value:"["+E.boundingBox.map(I).join(" ")+"]"}),xt.push({key:"XStep",value:I(E.xStep)}),xt.push({key:"YStep",value:I(E.yStep)}),xt.push({key:"Resources",value:st+" 0 R"}),E.matrix&&xt.push({key:"Matrix",value:"["+E.matrix.toString()+"]"}),Ir({data:E.stream,additionalKeyValues:xt,objectId:E.objectNumber}),V("endobj")},Vs=function(E){var k;for(k in se)se.hasOwnProperty(k)&&(se[k]instanceof rf?Wv(se[k]):se[k]instanceof Fd&&pp(se[k],E))},dp=function(E){for(var k in E.objectNumber=un(),V("<<"),E)switch(k){case"opacity":V("/ca "+N(E[k]));break;case"stroke-opacity":V("/CA "+N(E[k]))}V(">>"),V("endobj")},zv=function(){var E;for(E in dr)dr.hasOwnProperty(E)&&dp(dr[E])},vh=function(){for(var E in V("/XObject <<"),mn)mn.hasOwnProperty(E)&&mn[E].objectNumber>=0&&V("/"+E+" "+mn[E].objectNumber+" 0 R");xr.publish("putXobjectDict"),V(">>")},Xv=function(){Zi.oid=un(),V("<<"),V("/Filter /Standard"),V("/V "+Zi.v),V("/R "+Zi.r),V("/U <"+Zi.toHexString(Zi.U)+">"),V("/O <"+Zi.toHexString(Zi.O)+">"),V("/P "+Zi.P),V(">>"),V("endobj")},vp=function(){for(var E in V("/Font <<"),Ne)Ne.hasOwnProperty(E)&&(c===!1||c===!0&&h.hasOwnProperty(E))&&V("/"+E+" "+Ne[E].objectNumber+" 0 R");V(">>")},gp=function(){if(Object.keys(se).length>0){for(var E in V("/Shading <<"),se)se.hasOwnProperty(E)&&se[E]instanceof rf&&se[E].objectNumber>=0&&V("/"+E+" "+se[E].objectNumber+" 0 R");xr.publish("putShadingPatternDict"),V(">>")}},Tl=function(E){if(Object.keys(se).length>0){for(var k in V("/Pattern <<"),se)se.hasOwnProperty(k)&&se[k]instanceof f.TilingPattern&&se[k].objectNumber>=0&&se[k].objectNumber<E&&V("/"+k+" "+se[k].objectNumber+" 0 R");xr.publish("putTilingPatternDict"),V(">>")}},qv=function(){if(Object.keys(dr).length>0){var E;for(E in V("/ExtGState <<"),dr)dr.hasOwnProperty(E)&&dr[E].objectNumber>=0&&V("/"+E+" "+dr[E].objectNumber+" 0 R");xr.publish("putGStateDict"),V(">>")}},Hn=function(E){yn(E.resourcesOid,!0),V("<<"),V("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),vp(),gp(),Tl(E.objectOid),qv(),vh(),V(">>"),V("endobj")},mp=function(){var E=[];pi(),zv(),TA(),Vs(E),xr.publish("putResources"),E.forEach(Hn),Hn({resourcesOid:_t,objectOid:Number.MAX_SAFE_INTEGER}),xr.publish("postPutResources")},yp=function(){xr.publish("putAdditionalObjects");for(var E=0;E<It.length;E++){var k=It[E];yn(k.objId,!0),V(k.content),V("endobj")}xr.publish("postPutAdditionalObjects")},_p=function(E){Pe[E.fontName]=Pe[E.fontName]||{},Pe[E.fontName][E.fontStyle]=E.id},gh=function(E,k,st,vt,xt){var Ut={id:"F"+(Object.keys(Ne).length+1).toString(10),postScriptName:E,fontName:k,fontStyle:st,encoding:vt,isStandardFont:xt||!1,metadata:{}};return xr.publish("addFont",{font:Ut,instance:this}),Ne[Ut.id]=Ut,_p(Ut),Ut.id},Zv=function(E){for(var k=0,st=Et.length;k<st;k++){var vt=gh.call(this,E[k][0],E[k][1],E[k][2],Et[k][3],!0);c===!1&&(h[vt]=!0);var xt=E[k][0].split("-");_p({id:vt,fontName:xt[0],fontStyle:xt[1]||""})}xr.publish("addFonts",{fonts:Ne,dictionary:Pe})},Ko=function(E){return E.foo=function(){try{return E.apply(this,arguments)}catch(vt){var k=vt.stack||"";~k.indexOf(" at ")&&(k=k.split(" at ")[1]);var st="Error in function "+k.split(`
|
||
`)[0].split("<")[0]+": "+vt.message;if(!ze.console)throw new Error(st);ze.console.error(st,vt),ze.alert&&alert(st)}},E.foo.bar=E,E.foo},Yo=function(E,k){var st,vt,xt,Ut,zt,ce,De,vr,nr;if(xt=(k=k||{}).sourceEncoding||"Unicode",zt=k.outputEncoding,(k.autoencode||zt)&&Ne[fe].metadata&&Ne[fe].metadata[xt]&&Ne[fe].metadata[xt].encoding&&(Ut=Ne[fe].metadata[xt].encoding,!zt&&Ne[fe].encoding&&(zt=Ne[fe].encoding),!zt&&Ut.codePages&&(zt=Ut.codePages[0]),typeof zt=="string"&&(zt=Ut[zt]),zt)){for(De=!1,ce=[],st=0,vt=E.length;st<vt;st++)(vr=zt[E.charCodeAt(st)])?ce.push(String.fromCharCode(vr)):ce.push(E[st]),ce[st].charCodeAt(0)>>8&&(De=!0);E=ce.join("")}for(st=E.length;De===void 0&&st!==0;)E.charCodeAt(st-1)>>8&&(De=!0),st--;if(!De)return E;for(ce=k.noBOM?[]:[254,255],st=0,vt=E.length;st<vt;st++){if((nr=(vr=E.charCodeAt(st))>>8)>>8)throw new Error("Character at position "+st+" of string '"+E+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");ce.push(nr),ce.push(vr-(nr<<8))}return String.fromCharCode.apply(void 0,ce)},Ta=f.__private__.pdfEscape=f.pdfEscape=function(E,k){return Yo(E,k).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},wp=f.__private__.beginPage=function(E){at[++Yr]=[],He[Yr]={objId:0,contentsObjId:0,userUnit:Number(s),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(E[0]),topRightY:Number(E[1])}},Ep(Yr),it(at[Y])},bA=function(E,k){var st,vt,xt;switch(t=k||t,typeof E=="string"&&(st=g(E.toLowerCase()),Array.isArray(st)&&(vt=st[0],xt=st[1])),Array.isArray(E)&&(vt=E[0]*qt,xt=E[1]*qt),isNaN(vt)&&(vt=i[0],xt=i[1]),(vt>14400||xt>14400)&&(Cn.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),vt=Math.min(14400,vt),xt=Math.min(14400,xt)),i=[vt,xt],t.substr(0,1)){case"l":xt>vt&&(i=[xt,vt]);break;case"p":vt>xt&&(i=[xt,vt])}wp(i),Sp(Nu),V(zo),Eh!==0&&V(Eh+" J"),Ch!==0&&V(Ch+" j"),xr.publish("addPage",{pageNumber:Yr})},Jv=function(E){E>0&&E<=Yr&&(at.splice(E,1),He.splice(E,1),Yr--,Y>Yr&&(Y=Yr),this.setPage(Y))},Ep=function(E){E>0&&E<=Yr&&(Y=E)},tg=f.__private__.getNumberOfPages=f.getNumberOfPages=function(){return at.length-1},Cp=function(E,k,st){var vt,xt=void 0;return st=st||{},E=E!==void 0?E:Ne[fe].fontName,k=k!==void 0?k:Ne[fe].fontStyle,vt=E.toLowerCase(),Pe[vt]!==void 0&&Pe[vt][k]!==void 0?xt=Pe[vt][k]:Pe[E]!==void 0&&Pe[E][k]!==void 0?xt=Pe[E][k]:st.disableWarning===!1&&Cn.warn("Unable to look up font label for font '"+E+"', '"+k+"'. Refer to getFontList() for available fonts."),xt||st.noFallback||(xt=Pe.times[k])==null&&(xt=Pe.times.normal),xt},eg=f.__private__.putInfo=function(){var E=un(),k=function(vt){return vt};for(var st in u!==null&&(k=Zi.encryptor(E,0)),V("<<"),V("/Producer ("+Ta(k("jsPDF "+Ke.version))+")"),Jt)Jt.hasOwnProperty(st)&&Jt[st]&&V("/"+st.substr(0,1).toUpperCase()+st.substr(1)+" ("+Ta(k(Jt[st]))+")");V("/CreationDate ("+Ta(k(tt))+")"),V(">>"),V("endobj")},mh=f.__private__.putCatalog=function(E){var k=(E=E||{}).rootDictionaryObjId||pe;switch(un(),V("<<"),V("/Type /Catalog"),V("/Pages "+k+" 0 R"),Ct||(Ct="fullwidth"),Ct){case"fullwidth":V("/OpenAction [3 0 R /FitH null]");break;case"fullheight":V("/OpenAction [3 0 R /FitV null]");break;case"fullpage":V("/OpenAction [3 0 R /Fit]");break;case"original":V("/OpenAction [3 0 R /XYZ null null 1]");break;default:var st=""+Ct;st.substr(st.length-1)==="%"&&(Ct=parseInt(Ct)/100),typeof Ct=="number"&&V("/OpenAction [3 0 R /XYZ null null "+N(Ct)+"]")}switch(te||(te="continuous"),te){case"continuous":V("/PageLayout /OneColumn");break;case"single":V("/PageLayout /SinglePage");break;case"two":case"twoleft":V("/PageLayout /TwoColumnLeft");break;case"tworight":V("/PageLayout /TwoColumnRight")}Dt&&V("/PageMode /"+Dt),xr.publish("putCatalog"),V(">>"),V("endobj")},yh=f.__private__.putTrailer=function(){V("trailer"),V("<<"),V("/Size "+(J+1)),V("/Root "+J+" 0 R"),V("/Info "+(J-1)+" 0 R"),u!==null&&V("/Encrypt "+Zi.oid+" 0 R"),V("/ID [ <"+q+"> <"+q+"> ]"),V(">>")},SA=f.__private__.putHeader=function(){V("%PDF-"+p),V("%ºß¬à")},Fu=f.__private__.putXRef=function(){var E="0000000000";V("xref"),V("0 "+(J+1)),V("0000000000 65535 f ");for(var k=1;k<=J;k++)typeof ot[k]=="function"?V((E+ot[k]()).slice(-10)+" 00000 n "):ot[k]!==void 0?V((E+ot[k]).slice(-10)+" 00000 n "):V("0000000000 00000 n ")},js=f.__private__.buildDocument=function(){ft(),it(ut),xr.publish("buildDocument"),SA(),hn(),yp(),mp(),u!==null&&Xv(),eg(),mh();var E=X;return Fu(),yh(),V("startxref"),V(""+E),V("%%EOF"),it(at[Y]),ut.join(`
|
||
`)},Ou=f.__private__.getBlob=function(E){return new Blob([Mt(E)],{type:"application/pdf"})},Ru=f.output=f.__private__.output=Ko(function(E,k){switch(typeof(k=k||{})=="string"?k={filename:k}:k.filename=k.filename||"generated.pdf",E){case void 0:return js();case"save":f.save(k.filename);break;case"arraybuffer":return Mt(js());case"blob":return Ou(js());case"bloburi":case"bloburl":if(ze.URL!==void 0&&typeof ze.URL.createObjectURL=="function")return ze.URL&&ze.URL.createObjectURL(Ou(js()))||void 0;Cn.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var st="",vt=js();try{st=ex(vt)}catch{st=ex(unescape(encodeURIComponent(vt)))}return"data:application/pdf;filename="+k.filename+";base64,"+st;case"pdfobjectnewwindow":if(Object.prototype.toString.call(ze)==="[object Window]"){var xt='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+(k.pdfObjectUrl||"https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js")+'"><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(k)+");<\/script></body></html>",Ut=ze.open();return Ut!==null&&Ut.document.write(xt),Ut}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(ze)==="[object Window]"){var zt='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(k.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+k.filename+'" width="500px" height="400px" /></body></html>',ce=ze.open();if(ce!==null){ce.document.write(zt);var De=this;ce.document.documentElement.querySelector("#pdfViewer").onload=function(){ce.document.title=k.filename,ce.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(De.output("bloburl"))}}return ce}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(ze)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var vr='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",k)+'"></iframe></body></html>',nr=ze.open();if(nr!==null&&(nr.document.write(vr),nr.document.title=k.filename),nr||typeof safari>"u")return nr;break;case"datauri":case"dataurl":return ze.document.location.href=this.output("datauristring",k);default:return null}}),Bp=function(E){return Array.isArray(kn)===!0&&kn.indexOf(E)>-1};switch(n){case"pt":qt=1;break;case"mm":qt=72/25.4;break;case"cm":qt=72/2.54;break;case"in":qt=72;break;case"px":qt=Bp("px_scaling")==1?.75:96/72;break;case"pc":case"em":qt=12;break;case"ex":qt=6;break;default:if(typeof n!="number")throw new Error("Invalid unit: "+n);qt=n}var Zi=null;bt(),nt();var rg=function(E){return u!==null?Zi.encryptor(E,0):function(k){return k}},Mu=f.__private__.getPageInfo=f.getPageInfo=function(E){if(isNaN(E)||E%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:He[E].objId,pageNumber:E,pageContext:He[E]}},tr=f.__private__.getPageInfoByObjId=function(E){if(isNaN(E)||E%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var k in He)if(He[k].objId===E)break;return Mu(k)},ng=f.__private__.getCurrentPageInfo=f.getCurrentPageInfo=function(){return{objId:He[Y].objId,pageNumber:Y,pageContext:He[Y]}};f.addPage=function(){return bA.apply(this,arguments),this},f.setPage=function(){return Ep.apply(this,arguments),it.call(this,at[Y]),this},f.insertPage=function(E){return this.addPage(),this.movePage(Y,E),this},f.movePage=function(E,k){var st,vt;if(E>k){st=at[E],vt=He[E];for(var xt=E;xt>k;xt--)at[xt]=at[xt-1],He[xt]=He[xt-1];at[k]=st,He[k]=vt,this.setPage(k)}else if(E<k){st=at[E],vt=He[E];for(var Ut=E;Ut<k;Ut++)at[Ut]=at[Ut+1],He[Ut]=He[Ut+1];at[k]=st,He[k]=vt,this.setPage(k)}return this},f.deletePage=function(){return Jv.apply(this,arguments),this},f.__private__.text=f.text=function(E,k,st,vt,xt){var Ut,zt,ce,De,vr,nr,Br,ki,Gn,ei=(vt=vt||{}).scope||this;if(typeof E=="number"&&typeof k=="number"&&(typeof st=="string"||Array.isArray(st))){var Ji=st;st=k,k=E,E=Ji}if(arguments[3]instanceof Ue?(b("The transform parameter of text() with a Matrix value"),Gn=xt):(ce=arguments[4],De=arguments[5],gn(Br=arguments[3])==="object"&&Br!==null||(typeof ce=="string"&&(De=ce,ce=null),typeof Br=="string"&&(De=Br,Br=null),typeof Br=="number"&&(ce=Br,Br=null),vt={flags:Br,angle:ce,align:De})),isNaN(k)||isNaN(st)||E==null)throw new Error("Invalid arguments passed to jsPDF.text");if(E.length===0)return ei;var di="",Xo=!1,Ja=typeof vt.lineHeightFactor=="number"?vt.lineHeightFactor:Sl,Es=ei.internal.scaleFactor;function Op(fn){return fn=fn.split(" ").join(Array(vt.TabLen||9).join(" ")),Ta(fn,Br)}function Rp(fn){for(var pn,$n=fn.concat(),vi=[],qs=$n.length;qs--;)typeof(pn=$n.shift())=="string"?vi.push(pn):Array.isArray(fn)&&(pn.length===1||pn[1]===void 0&&pn[2]===void 0)?vi.push(pn[0]):vi.push([pn[0],pn[1],pn[2]]);return vi}function ua(fn,pn){var $n;if(typeof fn=="string")$n=pn(fn)[0];else if(Array.isArray(fn)){for(var vi,qs,DA=fn.concat(),Yu=[],Mp=DA.length;Mp--;)typeof(vi=DA.shift())=="string"?Yu.push(pn(vi)[0]):Array.isArray(vi)&&typeof vi[0]=="string"&&(qs=pn(vi[0],vi[1],vi[2]),Yu.push([qs[0],qs[1],qs[2]]));$n=Yu}return $n}var ku=!1,bh=!0;if(typeof E=="string")ku=!0;else if(Array.isArray(E)){var Sh=E.concat();zt=[];for(var Hu,ca=Sh.length;ca--;)(typeof(Hu=Sh.shift())!="string"||Array.isArray(Hu)&&typeof Hu[0]!="string")&&(bh=!1);ku=bh}if(ku===!1)throw new Error('Type of text must be string or Array. "'+E+'" is not recognized.');typeof E=="string"&&(E=E.match(/[\r?\n]/)?E.split(/\r\n|\r|\n/g):[E]);var Ll=Bt/ei.internal.scaleFactor,Gu=Ll*(Ja-1);switch(vt.baseline){case"bottom":st-=Gu;break;case"top":st+=Ll-Gu;break;case"hanging":st+=Ll-2*Gu;break;case"middle":st+=Ll/2-Gu}if((nr=vt.maxWidth||0)>0&&(typeof E=="string"?E=ei.splitTextToSize(E,nr):Object.prototype.toString.call(E)==="[object Array]"&&(E=E.reduce(function(fn,pn){return fn.concat(ei.splitTextToSize(pn,nr))},[]))),Ut={text:E,x:k,y:st,options:vt,mutex:{pdfEscape:Ta,activeFontKey:fe,fonts:Ne,activeFontSize:Bt}},xr.publish("preProcessText",Ut),E=Ut.text,ce=(vt=Ut.options).angle,!(Gn instanceof Ue)&&ce&&typeof ce=="number"){ce*=Math.PI/180,vt.rotationDirection===0&&(ce=-ce),w===_.ADVANCED&&(ce=-ce);var $u=Math.cos(ce),xh=Math.sin(ce);Gn=new Ue($u,xh,-xh,$u,0,0)}else ce&&ce instanceof Ue&&(Gn=ce);w!==_.ADVANCED||Gn||(Gn=En),(vr=vt.charSpace||Pu)!==void 0&&(di+=I(S(vr))+` Tc
|
||
`,this.setCharSpace(this.getCharSpace()||0)),(ki=vt.horizontalScale)!==void 0&&(di+=I(100*ki)+` Tz
|
||
`),vt.lang;var Sa=-1,cg=vt.renderingMode!==void 0?vt.renderingMode:vt.stroke,Ih=ei.internal.getCurrentPageInfo().pageContext;switch(cg){case 0:case!1:case"fill":Sa=0;break;case 1:case!0:case"stroke":Sa=1;break;case 2:case"fillThenStroke":Sa=2;break;case 3:case"invisible":Sa=3;break;case 4:case"fillAndAddForClipping":Sa=4;break;case 5:case"strokeAndAddPathForClipping":Sa=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":Sa=6;break;case 7:case"addToPathForClipping":Sa=7}var Lh=Ih.usedRenderingMode!==void 0?Ih.usedRenderingMode:-1;Sa!==-1?di+=Sa+` Tr
|
||
`:Lh!==-1&&(di+=`0 Tr
|
||
`),Sa!==-1&&(Ih.usedRenderingMode=Sa),De=vt.align||"left";var qo,Vu=Bt*Ja,Fh=ei.internal.pageSize.getWidth(),hg=Ne[fe];vr=vt.charSpace||Pu,nr=vt.maxWidth||0,Br=Object.assign({autoencode:!0,noBOM:!0},vt.flags);var MA=[];if(Object.prototype.toString.call(E)==="[object Array]"){var wo;zt=Rp(E),De!=="left"&&(qo=zt.map(function(fn){return ei.getStringUnitWidth(fn,{font:hg,charSpace:vr,fontSize:Bt,doKerning:!1})*Bt/Es}));var Zo,NA=0;if(De==="right"){k-=qo[0],E=[],ca=zt.length;for(var Cs=0;Cs<ca;Cs++)Cs===0?(Zo=Ys(k),wo=FA(st)):(Zo=S(NA-qo[Cs]),wo=-Vu),E.push([zt[Cs],Zo,wo]),NA=qo[Cs]}else if(De==="center"){k-=qo[0]/2,E=[],ca=zt.length;for(var ha=0;ha<ca;ha++)ha===0?(Zo=Ys(k),wo=FA(st)):(Zo=S((NA-qo[ha])/2),wo=-Vu),E.push([zt[ha],Zo,wo]),NA=qo[ha]}else if(De==="left"){E=[],ca=zt.length;for(var ju=0;ju<ca;ju++)E.push(zt[ju])}else{if(De!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');E=[],ca=zt.length,nr=nr!==0?nr:Fh;for(var Bs=0;Bs<ca;Bs++)wo=Bs===0?FA(st):-Vu,Zo=Bs===0?Ys(k):0,Bs<ca-1?MA.push(I(S((nr-qo[Bs])/(zt[Bs].split(" ").length-1)))):MA.push(0),E.push([zt[Bs],Zo,wo])}}var xa=typeof vt.R2L=="boolean"?vt.R2L:Nt;xa===!0&&(E=ua(E,function(fn,pn,$n){return[fn.split("").reverse().join(""),pn,$n]})),Ut={text:E,x:k,y:st,options:vt,mutex:{pdfEscape:Ta,activeFontKey:fe,fonts:Ne,activeFontSize:Bt}},xr.publish("postProcessText",Ut),E=Ut.text,Xo=Ut.mutex.isHex||!1;var Ku=Ne[fe].encoding;Ku!=="WinAnsiEncoding"&&Ku!=="StandardEncoding"||(E=ua(E,function(fn,pn,$n){return[Op(fn),pn,$n]})),zt=Rp(E),E=[];for(var PA,Jo,Ts,UA=0,Fl=1,Ol=Array.isArray(zt[0])?Fl:UA,zs="",Oh=function(fn,pn,$n){var vi="";return $n instanceof Ue?($n=typeof vt.angle=="number"?ti($n,new Ue(1,0,0,1,fn,pn)):ti(new Ue(1,0,0,1,fn,pn),$n),w===_.ADVANCED&&($n=ti(new Ue(1,0,0,-1,0,0),$n)),vi=$n.join(" ")+` Tm
|
||
`):vi=I(fn)+" "+I(pn)+` Td
|
||
`,vi},Eo=0;Eo<zt.length;Eo++){switch(zs="",Ol){case Fl:Ts=(Xo?"<":"(")+zt[Eo][0]+(Xo?">":")"),PA=parseFloat(zt[Eo][1]),Jo=parseFloat(zt[Eo][2]);break;case UA:Ts=(Xo?"<":"(")+zt[Eo]+(Xo?">":")"),PA=Ys(k),Jo=FA(st)}MA!==void 0&&MA[Eo]!==void 0&&(zs=MA[Eo]+` Tw
|
||
`),Eo===0?E.push(zs+Oh(PA,Jo,Gn)+Ts):Ol===UA?E.push(zs+Ts):Ol===Fl&&E.push(zs+Oh(PA,Jo,Gn)+Ts)}E=Ol===UA?E.join(` Tj
|
||
T* `):E.join(` Tj
|
||
`),E+=` Tj
|
||
`;var Xs=`BT
|
||
/`;return Xs+=fe+" "+Bt+` Tf
|
||
`,Xs+=I(Bt*Ja)+` TL
|
||
`,Xs+=Il+`
|
||
`,Xs+=di,Xs+=E,V(Xs+="ET"),h[fe]=!0,ei};var xA=f.__private__.clip=f.clip=function(E){return V(E==="evenodd"?"W*":"W"),this};f.clipEvenOdd=function(){return xA("evenodd")},f.__private__.discardPath=f.discardPath=function(){return V("n"),this};var Wo=f.__private__.isValidStyle=function(E){var k=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(E)!==-1&&(k=!0),k};f.__private__.setDefaultPathOperation=f.setDefaultPathOperation=function(E){return Wo(E)&&(l=E),this};var ig=f.__private__.getStyle=f.getStyle=function(E){var k=l;switch(E){case"D":case"S":k="S";break;case"F":k="f";break;case"FD":case"DF":k="B";break;case"f":case"f*":case"B":case"B*":k=E}return k},ws=f.close=function(){return V("h"),this};f.stroke=function(){return V("S"),this},f.fill=function(E){return IA("f",E),this},f.fillEvenOdd=function(E){return IA("f*",E),this},f.fillStroke=function(E){return IA("B",E),this},f.fillStrokeEvenOdd=function(E){return IA("B*",E),this};var IA=function(E,k){gn(k)==="object"?ag(k,E):V(E)},_h=function(E){E===null||w===_.ADVANCED&&E===void 0||(E=ig(E),V(E))};function Tp(E,k,st,vt,xt){var Ut=new Fd(k||this.boundingBox,st||this.xStep,vt||this.yStep,this.gState,xt||this.matrix);Ut.stream=this.stream;var zt=E+"$$"+this.cloneIndex+++"$$";return fi(zt,Ut),Ut}var ag=function(E,k){var st=ui[E.key],vt=se[st];if(vt instanceof rf)V("q"),V(bp(k)),vt.gState&&f.setGState(vt.gState),V(E.matrix.toString()+" cm"),V("/"+st+" sh"),V("Q");else if(vt instanceof Fd){var xt=new Ue(1,0,0,-1,0,Ws());E.matrix&&(xt=xt.multiply(E.matrix||En),st=Tp.call(vt,E.key,E.boundingBox,E.xStep,E.yStep,xt).id),V("q"),V("/Pattern cs"),V("/"+st+" scn"),vt.gState&&f.setGState(vt.gState),V(k),V("Q")}},bp=function(E){switch(E){case"f":case"F":return"W n";case"f*":return"W* n";case"B":return"W S";case"B*":return"W* S";case"S":return"W S";case"n":return"W n"}},wh=f.moveTo=function(E,k){return V(I(S(E))+" "+I(U(k))+" m"),this},bl=f.lineTo=function(E,k){return V(I(S(E))+" "+I(U(k))+" l"),this},LA=f.curveTo=function(E,k,st,vt,xt,Ut){return V([I(S(E)),I(U(k)),I(S(st)),I(U(vt)),I(S(xt)),I(U(Ut)),"c"].join(" ")),this};f.__private__.line=f.line=function(E,k,st,vt,xt){if(isNaN(E)||isNaN(k)||isNaN(st)||isNaN(vt)||!Wo(xt))throw new Error("Invalid arguments passed to jsPDF.line");return w===_.COMPAT?this.lines([[st-E,vt-k]],E,k,[1,1],xt||"S"):this.lines([[st-E,vt-k]],E,k,[1,1]).stroke()},f.__private__.lines=f.lines=function(E,k,st,vt,xt,Ut){var zt,ce,De,vr,nr,Br,ki,Gn,ei,Ji,di,Xo;if(typeof E=="number"&&(Xo=st,st=k,k=E,E=Xo),vt=vt||[1,1],Ut=Ut||!1,isNaN(k)||isNaN(st)||!Array.isArray(E)||!Array.isArray(vt)||!Wo(xt)||typeof Ut!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(wh(k,st),zt=vt[0],ce=vt[1],vr=E.length,Ji=k,di=st,De=0;De<vr;De++)(nr=E[De]).length===2?(Ji=nr[0]*zt+Ji,di=nr[1]*ce+di,bl(Ji,di)):(Br=nr[0]*zt+Ji,ki=nr[1]*ce+di,Gn=nr[2]*zt+Ji,ei=nr[3]*ce+di,Ji=nr[4]*zt+Ji,di=nr[5]*ce+di,LA(Br,ki,Gn,ei,Ji,di));return Ut&&ws(),_h(xt),this},f.path=function(E){for(var k=0;k<E.length;k++){var st=E[k],vt=st.c;switch(st.op){case"m":wh(vt[0],vt[1]);break;case"l":bl(vt[0],vt[1]);break;case"c":LA.apply(this,vt);break;case"h":ws()}}return this},f.__private__.rect=f.rect=function(E,k,st,vt,xt){if(isNaN(E)||isNaN(k)||isNaN(st)||isNaN(vt)||!Wo(xt))throw new Error("Invalid arguments passed to jsPDF.rect");return w===_.COMPAT&&(vt=-vt),V([I(S(E)),I(U(k)),I(S(st)),I(S(vt)),"re"].join(" ")),_h(xt),this},f.__private__.triangle=f.triangle=function(E,k,st,vt,xt,Ut,zt){if(isNaN(E)||isNaN(k)||isNaN(st)||isNaN(vt)||isNaN(xt)||isNaN(Ut)||!Wo(zt))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[st-E,vt-k],[xt-st,Ut-vt],[E-xt,k-Ut]],E,k,[1,1],zt,!0),this},f.__private__.roundedRect=f.roundedRect=function(E,k,st,vt,xt,Ut,zt){if(isNaN(E)||isNaN(k)||isNaN(st)||isNaN(vt)||isNaN(xt)||isNaN(Ut)||!Wo(zt))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var ce=4/3*(Math.SQRT2-1);return xt=Math.min(xt,.5*st),Ut=Math.min(Ut,.5*vt),this.lines([[st-2*xt,0],[xt*ce,0,xt,Ut-Ut*ce,xt,Ut],[0,vt-2*Ut],[0,Ut*ce,-xt*ce,Ut,-xt,Ut],[2*xt-st,0],[-xt*ce,0,-xt,-Ut*ce,-xt,-Ut],[0,2*Ut-vt],[0,-Ut*ce,xt*ce,-Ut,xt,-Ut]],E+xt,k,[1,1],zt,!0),this},f.__private__.ellipse=f.ellipse=function(E,k,st,vt,xt){if(isNaN(E)||isNaN(k)||isNaN(st)||isNaN(vt)||!Wo(xt))throw new Error("Invalid arguments passed to jsPDF.ellipse");var Ut=4/3*(Math.SQRT2-1)*st,zt=4/3*(Math.SQRT2-1)*vt;return wh(E+st,k),LA(E+st,k-zt,E+Ut,k-vt,E,k-vt),LA(E-Ut,k-vt,E-st,k-zt,E-st,k),LA(E-st,k+zt,E-Ut,k+vt,E,k+vt),LA(E+Ut,k+vt,E+st,k+zt,E+st,k),_h(xt),this},f.__private__.circle=f.circle=function(E,k,st,vt){if(isNaN(E)||isNaN(k)||isNaN(st)||!Wo(vt))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(E,k,st,st,vt)},f.setFont=function(E,k,st){return st&&(k=O(k,st)),fe=Cp(E,k,{disableWarning:!1}),this};var og=f.__private__.getFont=f.getFont=function(){return Ne[Cp.apply(f,arguments)]};f.__private__.getFontList=f.getFontList=function(){var E,k,st={};for(E in Pe)if(Pe.hasOwnProperty(E))for(k in st[E]=[],Pe[E])Pe[E].hasOwnProperty(k)&&st[E].push(k);return st},f.addFont=function(E,k,st,vt,xt){var Ut=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&Ut.indexOf(arguments[3])!==-1?xt=arguments[3]:arguments[3]&&Ut.indexOf(arguments[3])==-1&&(st=O(st,vt)),xt=xt||"Identity-H",gh.call(this,E,k,st,xt)};var Sl,Nu=r.lineWidth||.200025,xl=f.__private__.getLineWidth=f.getLineWidth=function(){return Nu},Sp=f.__private__.setLineWidth=f.setLineWidth=function(E){return Nu=E,V(I(S(E))+" w"),this};f.__private__.setLineDash=Ke.API.setLineDash=Ke.API.setLineDashPattern=function(E,k){if(E=E||[],k=k||0,isNaN(k)||!Array.isArray(E))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return E=E.map(function(st){return I(S(st))}).join(" "),k=I(S(k)),V("["+E+"] "+k+" d"),this};var Ks=f.__private__.getLineHeight=f.getLineHeight=function(){return Bt*Sl};f.__private__.getLineHeight=f.getLineHeight=function(){return Bt*Sl};var xp=f.__private__.setLineHeightFactor=f.setLineHeightFactor=function(E){return typeof(E=E||1.15)=="number"&&(Sl=E),this},Ip=f.__private__.getLineHeightFactor=f.getLineHeightFactor=function(){return Sl};xp(r.lineHeight);var Ys=f.__private__.getHorizontalCoordinate=function(E){return S(E)},FA=f.__private__.getVerticalCoordinate=function(E){return w===_.ADVANCED?E:He[Y].mediaBox.topRightY-He[Y].mediaBox.bottomLeftY-S(E)},sg=f.__private__.getHorizontalCoordinateString=f.getHorizontalCoordinateString=function(E){return I(Ys(E))},ba=f.__private__.getVerticalCoordinateString=f.getVerticalCoordinateString=function(E){return I(FA(E))},zo=r.strokeColor||"0 G";f.__private__.getStrokeColor=f.getDrawColor=function(){return $t(zo)},f.__private__.setStrokeColor=f.setDrawColor=function(E,k,st,vt){return zo=ne({ch1:E,ch2:k,ch3:st,ch4:vt,pdfColorType:"draw",precision:2}),V(zo),this};var OA=r.fillColor||"0 g";f.__private__.getFillColor=f.getFillColor=function(){return $t(OA)},f.__private__.setFillColor=f.setFillColor=function(E,k,st,vt){return OA=ne({ch1:E,ch2:k,ch3:st,ch4:vt,pdfColorType:"fill",precision:2}),V(OA),this};var Il=r.textColor||"0 g",Ag=f.__private__.getTextColor=f.getTextColor=function(){return $t(Il)};f.__private__.setTextColor=f.setTextColor=function(E,k,st,vt){return Il=ne({ch1:E,ch2:k,ch3:st,ch4:vt,pdfColorType:"text",precision:3}),this};var Pu=r.charSpace,lg=f.__private__.getCharSpace=f.getCharSpace=function(){return parseFloat(Pu||0)};f.__private__.setCharSpace=f.setCharSpace=function(E){if(isNaN(E))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return Pu=E,this};var Eh=0;f.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},f.__private__.setLineCap=f.setLineCap=function(E){var k=f.CapJoinStyles[E];if(k===void 0)throw new Error("Line cap style of '"+E+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Eh=k,V(k+" J"),this};var Ch=0;f.__private__.setLineJoin=f.setLineJoin=function(E){var k=f.CapJoinStyles[E];if(k===void 0)throw new Error("Line join style of '"+E+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Ch=k,V(k+" j"),this},f.__private__.setLineMiterLimit=f.__private__.setMiterLimit=f.setLineMiterLimit=f.setMiterLimit=function(E){if(E=E||0,isNaN(E))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return V(I(S(E))+" M"),this},f.GState=mw,f.setGState=function(E){(E=typeof E=="string"?dr[Jn[E]]:Lp(null,E)).equals(Kr)||(V("/"+E.id+" gs"),Kr=E)};var Lp=function(E,k){if(!E||!Jn[E]){var st=!1;for(var vt in dr)if(dr.hasOwnProperty(vt)&&dr[vt].equals(k)){st=!0;break}if(st)k=dr[vt];else{var xt="GS"+(Object.keys(dr).length+1).toString(10);dr[xt]=k,k.id=xt}return E&&(Jn[E]=k.id),xr.publish("addGState",k),k}};f.addGState=function(E,k){return Lp(E,k),this},f.saveGraphicsState=function(){return V("q"),kr.push({key:fe,size:Bt,color:Il}),this},f.restoreGraphicsState=function(){V("Q");var E=kr.pop();return fe=E.key,Bt=E.size,Il=E.color,Kr=null,this},f.setCurrentTransformationMatrix=function(E){return V(E.toString()+" cm"),this},f.comment=function(E){return V("#"+E),this};var Uu=function(E,k){var st=E||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return st},set:function(Ut){isNaN(Ut)||(st=parseFloat(Ut))}});var vt=k||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return vt},set:function(Ut){isNaN(Ut)||(vt=parseFloat(Ut))}});var xt="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return xt},set:function(Ut){xt=Ut.toString()}}),this},Bh=function(E,k,st,vt){Uu.call(this,E,k),this.type="rect";var xt=st||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return xt},set:function(zt){isNaN(zt)||(xt=parseFloat(zt))}});var Ut=vt||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return Ut},set:function(zt){isNaN(zt)||(Ut=parseFloat(zt))}}),this},Th=function(){this.page=Yr,this.currentPage=Y,this.pages=at.slice(0),this.pagesContext=He.slice(0),this.x=rr,this.y=ke,this.matrix=_r,this.width=Qi(Y),this.height=Ws(Y),this.outputDestination=Z,this.id="",this.objectNumber=-1};Th.prototype.restore=function(){Yr=this.page,Y=this.currentPage,He=this.pagesContext,at=this.pages,rr=this.x,ke=this.y,_r=this.matrix,Qu(Y,this.width),RA(Y,this.height),Z=this.outputDestination};var Fp=function(E,k,st,vt,xt){hi.push(new Th),Yr=Y=0,at=[],rr=E,ke=k,_r=xt,wp([st,vt])},ug=function(E){if(ci[E])hi.pop().restore();else{var k=new Th,st="Xo"+(Object.keys(mn).length+1).toString(10);k.id=st,ci[E]=st,mn[st]=k,xr.publish("addFormObject",k),hi.pop().restore()}};for(var Du in f.beginFormObject=function(E,k,st,vt,xt){return Fp(E,k,st,vt,xt),this},f.endFormObject=function(E){return ug(E),this},f.doFormObject=function(E,k){var st=mn[ci[E]];return V("q"),V(k.toString()+" cm"),V("/"+st.id+" Do"),V("Q"),this},f.getFormObject=function(E){var k=mn[ci[E]];return{x:k.x,y:k.y,width:k.width,height:k.height,matrix:k.matrix}},f.save=function(E,k){return E=E||"generated.pdf",(k=k||{}).returnPromise=k.returnPromise||!1,k.returnPromise===!1?(Zh(Ou(js()),E),typeof Zh.unload=="function"&&ze.setTimeout&&setTimeout(Zh.unload,911),this):new Promise(function(st,vt){try{var xt=Zh(Ou(js()),E);typeof Zh.unload=="function"&&ze.setTimeout&&setTimeout(Zh.unload,911),st(xt)}catch(Ut){vt(Ut.message)}})},Ke.API)Ke.API.hasOwnProperty(Du)&&(Du==="events"&&Ke.API.events.length?function(E,k){var st,vt,xt;for(xt=k.length-1;xt!==-1;xt--)st=k[xt][0],vt=k[xt][1],E.subscribe.apply(E,[st].concat(typeof vt=="function"?[vt]:vt))}(xr,Ke.API.events):f[Du]=Ke.API[Du]);var Qi=f.getPageWidth=function(E){return(He[E=E||Y].mediaBox.topRightX-He[E].mediaBox.bottomLeftX)/qt},Qu=f.setPageWidth=function(E,k){He[E].mediaBox.topRightX=k*qt+He[E].mediaBox.bottomLeftX},Ws=f.getPageHeight=function(E){return(He[E=E||Y].mediaBox.topRightY-He[E].mediaBox.bottomLeftY)/qt},RA=f.setPageHeight=function(E,k){He[E].mediaBox.topRightY=k*qt+He[E].mediaBox.bottomLeftY};return f.internal={pdfEscape:Ta,getStyle:ig,getFont:og,getFontSize:Rt,getCharSpace:lg,getTextColor:Ag,getLineHeight:Ks,getLineHeightFactor:Ip,getLineWidth:xl,write:Ot,getHorizontalCoordinate:Ys,getVerticalCoordinate:FA,getCoordinateString:sg,getVerticalCoordinateString:ba,collections:{},newObject:un,newAdditionalObject:Za,newObjectDeferred:Cr,newObjectDeferredBegin:yn,getFilters:Ze,putStream:Ir,events:xr,scaleFactor:qt,pageSize:{getWidth:function(){return Qi(Y)},setWidth:function(E){Qu(Y,E)},getHeight:function(){return Ws(Y)},setHeight:function(E){RA(Y,E)}},encryptionOptions:u,encryption:Zi,getEncryptor:rg,output:Ru,getNumberOfPages:tg,pages:at,out:V,f2:N,f3:x,getPageInfo:Mu,getPageInfoByObjId:tr,getCurrentPageInfo:ng,getPDFVersion:v,Point:Uu,Rectangle:Bh,Matrix:Ue,hasHotfix:Bp},Object.defineProperty(f.internal.pageSize,"width",{get:function(){return Qi(Y)},set:function(E){Qu(Y,E)},enumerable:!0,configurable:!0}),Object.defineProperty(f.internal.pageSize,"height",{get:function(){return Ws(Y)},set:function(E){RA(Y,E)},enumerable:!0,configurable:!0}),Zv.call(f,Et),fe="F1",bA(i,t),xr.publish("initialized"),f}gd.prototype.lsbFirstWord=function(r){return String.fromCharCode(r>>0&255,r>>8&255,r>>16&255,r>>24&255)},gd.prototype.toHexString=function(r){return r.split("").map(function(e){return("0"+(255&e.charCodeAt(0)).toString(16)).slice(-2)}).join("")},gd.prototype.hexToBytes=function(r){for(var e=[],t=0;t<r.length;t+=2)e.push(String.fromCharCode(parseInt(r.substr(t,2),16)));return e.join("")},gd.prototype.processOwnerPassword=function(r,e){return nx(rx(e).substr(0,5),r)},gd.prototype.encryptor=function(r,e){var t=rx(this.encryptionKey+String.fromCharCode(255&r,r>>8&255,r>>16&255,255&e,e>>8&255)).substr(0,10);return function(n){return nx(t,n)}},mw.prototype.equals=function(r){var e,t="id,objectNumber,equals";if(!r||gn(r)!==gn(this))return!1;var n=0;for(e in this)if(!(t.indexOf(e)>=0)){if(this.hasOwnProperty(e)&&!r.hasOwnProperty(e)||this[e]!==r[e])return!1;n++}for(e in r)r.hasOwnProperty(e)&&t.indexOf(e)<0&&n--;return n===0},Ke.API={events:[]},Ke.version="2.5.0";var ii=Ke.API,$F=1,sp=function(r){return r.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},zp=function(r){return r.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},or=function(r){return r.toFixed(2)},Ac=function(r){return r.toFixed(5)};ii.__acroform__={};var $o=function(r,e){r.prototype=Object.create(e.prototype),r.prototype.constructor=r},rP=function(r){return r*$F},VA=function(r){var e=new dk,t=Te.internal.getHeight(r)||0,n=Te.internal.getWidth(r)||0;return e.BBox=[0,0,Number(or(n)),Number(or(t))],e},xst=ii.__acroform__.setBit=function(r,e){if(r=r||0,e=e||0,isNaN(r)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return r|=1<<e},Ist=ii.__acroform__.clearBit=function(r,e){if(r=r||0,e=e||0,isNaN(r)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return r&=~(1<<e)},Lst=ii.__acroform__.getBit=function(r,e){if(isNaN(r)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return r&1<<e?1:0},wi=ii.__acroform__.getBitForPdf=function(r,e){if(isNaN(r)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return Lst(r,e-1)},Ei=ii.__acroform__.setBitForPdf=function(r,e){if(isNaN(r)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return xst(r,e-1)},Ci=ii.__acroform__.clearBitForPdf=function(r,e){if(isNaN(r)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return Ist(r,e-1)},Fst=ii.__acroform__.calculateCoordinates=function(r,e){var t=e.internal.getHorizontalCoordinate,n=e.internal.getVerticalCoordinate,i=r[0],a=r[1],o=r[2],s=r[3],A={};return A.lowerLeft_X=t(i)||0,A.lowerLeft_Y=n(a+s)||0,A.upperRight_X=t(i+o)||0,A.upperRight_Y=n(a)||0,[Number(or(A.lowerLeft_X)),Number(or(A.lowerLeft_Y)),Number(or(A.upperRight_X)),Number(or(A.upperRight_Y))]},Ost=function(r){if(r.appearanceStreamContent)return r.appearanceStreamContent;if(r.V||r.DV){var e=[],t=r._V||r.DV,n=ix(r,t),i=r.scope.internal.getFont(r.fontName,r.fontStyle).id;e.push("/Tx BMC"),e.push("q"),e.push("BT"),e.push(r.scope.__private__.encodeColorString(r.color)),e.push("/"+i+" "+or(n.fontSize)+" Tf"),e.push("1 0 0 1 0 0 Tm"),e.push(n.text),e.push("ET"),e.push("Q"),e.push("EMC");var a=VA(r);return a.scope=r.scope,a.stream=e.join(`
|
||
`),a}},ix=function(r,e){var t=r.fontSize===0?r.maxFontSize:r.fontSize,n={text:"",fontSize:""},i=(e=(e=e.substr(0,1)=="("?e.substr(1):e).substr(e.length-1)==")"?e.substr(0,e.length-1):e).split(" ");i=r.multiline?i.map(function(x){return x.split(`
|
||
`)}):i.map(function(x){return[x]});var a=t,o=Te.internal.getHeight(r)||0;o=o<0?-o:o;var s=Te.internal.getWidth(r)||0;s=s<0?-s:s;var A=function(x,S,P){if(x+1<i.length){var U=S+" "+i[x+1][0];return l_(U,r,P).width<=s-4}return!1};a++;t:for(;a>0;){e="",a--;var l,u,c=l_("3",r,a).height,h=r.multiline?o-a:(o-c)/2,f=h+=2,p=0,v=0,m=0;if(a<=0){e=`(...) Tj
|
||
`,e+="% Width of Text: "+l_(e,r,a=12).width+", FieldWidth:"+s+`
|
||
`;break}for(var g="",_=0,w=0;w<i.length;w++)if(i.hasOwnProperty(w)){var C=!1;if(i[w].length!==1&&m!==i[w].length-1){if((c+2)*(_+2)+2>o)continue t;g+=i[w][m],C=!0,v=w,w--}else{g=(g+=i[w][m]+" ").substr(g.length-1)==" "?g.substr(0,g.length-1):g;var F=parseInt(w),O=A(F,g,a),I=w>=i.length-1;if(O&&!I){g+=" ",m=0;continue}if(O||I){if(I)v=F;else if(r.multiline&&(c+2)*(_+2)+2>o)continue t}else{if(!r.multiline||(c+2)*(_+2)+2>o)continue t;v=F}}for(var b="",L=p;L<=v;L++){var N=i[L];if(r.multiline){if(L===v){b+=N[m]+" ",m=(m+1)%N.length;continue}if(L===p){b+=N[N.length-1]+" ";continue}}b+=N[0]+" "}switch(b=b.substr(b.length-1)==" "?b.substr(0,b.length-1):b,u=l_(b,r,a).width,r.textAlign){case"right":l=s-u-2;break;case"center":l=(s-u)/2;break;case"left":default:l=2}e+=or(l)+" "+or(f)+` Td
|
||
`,e+="("+sp(b)+`) Tj
|
||
`,e+=-or(l)+` 0 Td
|
||
`,f=-(a+2),u=0,p=C?v:v+1,_++,g=""}break}return n.text=e,n.fontSize=a,n},l_=function(r,e,t){var n=e.scope.internal.getFont(e.fontName,e.fontStyle),i=e.scope.getStringUnitWidth(r,{font:n,fontSize:parseFloat(t),charSpace:0})*parseFloat(t);return{height:e.scope.getStringUnitWidth("3",{font:n,fontSize:parseFloat(t),charSpace:0})*parseFloat(t)*1.5,width:i}},Rst={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},Mst=function(r,e){var t={type:"reference",object:r};e.internal.getPageInfo(r.page).pageContext.annotations.find(function(n){return n.type===t.type&&n.object===t.object})===void 0&&e.internal.getPageInfo(r.page).pageContext.annotations.push(t)},Nst=function(r,e){for(var t in r)if(r.hasOwnProperty(t)){var n=t,i=r[t];e.internal.newObjectDeferredBegin(i.objId,!0),gn(i)==="object"&&typeof i.putStream=="function"&&i.putStream(),delete r[n]}},Pst=function(r,e){if(e.scope=r,r.internal!==void 0&&(r.internal.acroformPlugin===void 0||r.internal.acroformPlugin.isInitialized===!1)){if(EA.FieldNum=0,r.internal.acroformPlugin=JSON.parse(JSON.stringify(Rst)),r.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");$F=r.internal.scaleFactor,r.internal.acroformPlugin.acroFormDictionaryRoot=new vk,r.internal.acroformPlugin.acroFormDictionaryRoot.scope=r,r.internal.acroformPlugin.acroFormDictionaryRoot._eventID=r.internal.events.subscribe("postPutResources",function(){(function(t){t.internal.events.unsubscribe(t.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete t.internal.acroformPlugin.acroFormDictionaryRoot._eventID,t.internal.acroformPlugin.printedOut=!0})(r)}),r.internal.events.subscribe("buildDocument",function(){(function(t){t.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var n=t.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var i in n)if(n.hasOwnProperty(i)){var a=n[i];a.objId=void 0,a.hasAnnotation&&Mst(a,t)}})(r)}),r.internal.events.subscribe("putCatalog",function(){(function(t){if(t.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");t.internal.write("/AcroForm "+t.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(r)}),r.internal.events.subscribe("postPutPages",function(t){(function(n,i){var a=!n;for(var o in n||(i.internal.newObjectDeferredBegin(i.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),i.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),n=n||i.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(n.hasOwnProperty(o)){var s=n[o],A=[],l=s.Rect;if(s.Rect&&(s.Rect=Fst(s.Rect,i)),i.internal.newObjectDeferredBegin(s.objId,!0),s.DA=Te.createDefaultAppearanceStream(s),gn(s)==="object"&&typeof s.getKeyValueListForStream=="function"&&(A=s.getKeyValueListForStream()),s.Rect=l,s.hasAppearanceStream&&!s.appearanceStreamContent){var u=Ost(s);A.push({key:"AP",value:"<</N "+u+">>"}),i.internal.acroformPlugin.xForms.push(u)}if(s.appearanceStreamContent){var c="";for(var h in s.appearanceStreamContent)if(s.appearanceStreamContent.hasOwnProperty(h)){var f=s.appearanceStreamContent[h];if(c+="/"+h+" ",c+="<<",Object.keys(f).length>=1||Array.isArray(f)){for(var o in f)if(f.hasOwnProperty(o)){var p=f[o];typeof p=="function"&&(p=p.call(i,s)),c+="/"+o+" "+p+" ",i.internal.acroformPlugin.xForms.indexOf(p)>=0||i.internal.acroformPlugin.xForms.push(p)}}else typeof(p=f)=="function"&&(p=p.call(i,s)),c+="/"+o+" "+p,i.internal.acroformPlugin.xForms.indexOf(p)>=0||i.internal.acroformPlugin.xForms.push(p);c+=">>"}A.push({key:"AP",value:`<<
|
||
`+c+">>"})}i.internal.putStream({additionalKeyValues:A,objectId:s.objId}),i.internal.out("endobj")}a&&Nst(i.internal.acroformPlugin.xForms,i)})(t,r)}),r.internal.acroformPlugin.isInitialized=!0}},pk=ii.__acroform__.arrayToPdfArray=function(r,e,t){var n=function(o){return o};if(Array.isArray(r)){for(var i="[",a=0;a<r.length;a++)switch(a!==0&&(i+=" "),gn(r[a])){case"boolean":case"number":case"object":i+=r[a].toString();break;case"string":r[a].substr(0,1)!=="/"?(e!==void 0&&t&&(n=t.internal.getEncryptor(e)),i+="("+sp(n(r[a].toString()))+")"):i+=r[a].toString()}return i+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},nT=function(r,e,t){var n=function(i){return i};return e!==void 0&&t&&(n=t.internal.getEncryptor(e)),(r=r||"").toString(),r="("+sp(n(r))+")"},el=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(this._objId===void 0){if(this.scope===void 0)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(r){this._objId=r}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};el.prototype.toString=function(){return this.objId+" 0 R"},el.prototype.putStream=function(){var r=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:r,objectId:this.objId}),this.scope.internal.out("endobj")},el.prototype.getKeyValueListForStream=function(){var r=[],e=Object.getOwnPropertyNames(this).filter(function(a){return a!="content"&&a!="appearanceStreamContent"&&a!="scope"&&a!="objId"&&a.substring(0,1)!="_"});for(var t in e)if(Object.getOwnPropertyDescriptor(this,e[t]).configurable===!1){var n=e[t],i=this[n];i&&(Array.isArray(i)?r.push({key:n,value:pk(i,this.objId,this.scope)}):i instanceof el?(i.scope=this.scope,r.push({key:n,value:i.objId+" 0 R"})):typeof i!="function"&&r.push({key:n,value:i}))}return r};var dk=function(){el.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var r,e=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(t){r=t.trim()},get:function(){return r||null}})};$o(dk,el);var vk=function(){el.call(this);var r,e=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return e.length>0?e:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return e}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(r){var t=function(n){return n};return this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),"("+sp(t(r))+")"}},set:function(t){r=t}})};$o(vk,el);var EA=function r(){el.call(this);var e=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return e},set:function(g){if(isNaN(g))throw new Error('Invalid value "'+g+'" for attribute F supplied.');e=g}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return Boolean(wi(e,3))},set:function(g){Boolean(g)===!0?this.F=Ei(e,3):this.F=Ci(e,3)}});var t=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return t},set:function(g){if(isNaN(g))throw new Error('Invalid value "'+g+'" for attribute Ff supplied.');t=g}});var n=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(n.length!==0)return n},set:function(g){n=g!==void 0?g:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[0])?0:n[0]},set:function(g){n[0]=g}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[1])?0:n[1]},set:function(g){n[1]=g}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[2])?0:n[2]},set:function(g){n[2]=g}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[3])?0:n[3]},set:function(g){n[3]=g}});var i="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return i},set:function(g){switch(g){case"/Btn":case"/Tx":case"/Ch":case"/Sig":i=g;break;default:throw new Error('Invalid value "'+g+'" for attribute FT supplied.')}}});var a=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!a||a.length<1){if(this instanceof yw)return;a="FieldObject"+r.FieldNum++}var g=function(_){return _};return this.scope&&(g=this.scope.internal.getEncryptor(this.objId)),"("+sp(g(a))+")"},set:function(g){a=g.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return a},set:function(g){a=g}});var o="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return o},set:function(g){o=g}});var s="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return s},set:function(g){s=g}});var A=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return A},set:function(g){A=g}});var l=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return l===void 0?50/$F:l},set:function(g){l=g}});var u="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return u},set:function(g){u=g}});var c="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!c||this instanceof yw||this instanceof Cf))return nT(c,this.objId,this.scope)},set:function(g){g=g.toString(),c=g}});var h=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(h)return this instanceof aa?h:nT(h,this.objId,this.scope)},set:function(g){g=g.toString(),h=this instanceof aa?g:g.substr(0,1)==="("?zp(g.substr(1,g.length-2)):zp(g)}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof aa?zp(h.substr(1,h.length-1)):h},set:function(g){g=g.toString(),h=this instanceof aa?"/"+g:g}});var f=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(f)return f},set:function(g){this.V=g}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(f)return this instanceof aa?f:nT(f,this.objId,this.scope)},set:function(g){g=g.toString(),f=this instanceof aa?g:g.substr(0,1)==="("?zp(g.substr(1,g.length-2)):zp(g)}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof aa?zp(f.substr(1,f.length-1)):f},set:function(g){g=g.toString(),f=this instanceof aa?"/"+g:g}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var p,v=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return v},set:function(g){g=Boolean(g),v=g}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(p)return p},set:function(g){p=g}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return Boolean(wi(this.Ff,1))},set:function(g){Boolean(g)===!0?this.Ff=Ei(this.Ff,1):this.Ff=Ci(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return Boolean(wi(this.Ff,2))},set:function(g){Boolean(g)===!0?this.Ff=Ei(this.Ff,2):this.Ff=Ci(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return Boolean(wi(this.Ff,3))},set:function(g){Boolean(g)===!0?this.Ff=Ei(this.Ff,3):this.Ff=Ci(this.Ff,3)}});var m=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(m!==null)return m},set:function(g){if([0,1,2].indexOf(g)===-1)throw new Error('Invalid value "'+g+'" for attribute Q supplied.');m=g}}),Object.defineProperty(this,"textAlign",{get:function(){var g;switch(m){case 0:default:g="left";break;case 1:g="center";break;case 2:g="right"}return g},configurable:!0,enumerable:!0,set:function(g){switch(g){case"right":case 2:m=2;break;case"center":case 1:m=1;break;case"left":case 0:default:m=0}}})};$o(EA,el);var $d=function(){EA.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var r=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return r},set:function(t){r=t}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return r},set:function(t){r=t}});var e=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return pk(e,this.objId,this.scope)},set:function(t){var n,i;i=[],typeof(n=t)=="string"&&(i=function(a,o,s){s||(s=1);for(var A,l=[];A=o.exec(a);)l.push(A[s]);return l}(n,/\((.*?)\)/g)),e=i}}),this.getOptions=function(){return e},this.setOptions=function(t){e=t,this.sort&&e.sort()},this.addOption=function(t){t=(t=t||"").toString(),e.push(t),this.sort&&e.sort()},this.removeOption=function(t,n){for(n=n||!1,t=(t=t||"").toString();e.indexOf(t)!==-1&&(e.splice(e.indexOf(t),1),n!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return Boolean(wi(this.Ff,18))},set:function(t){Boolean(t)===!0?this.Ff=Ei(this.Ff,18):this.Ff=Ci(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return Boolean(wi(this.Ff,19))},set:function(t){this.combo===!0&&(Boolean(t)===!0?this.Ff=Ei(this.Ff,19):this.Ff=Ci(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return Boolean(wi(this.Ff,20))},set:function(t){Boolean(t)===!0?(this.Ff=Ei(this.Ff,20),e.sort()):this.Ff=Ci(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(wi(this.Ff,22))},set:function(t){Boolean(t)===!0?this.Ff=Ei(this.Ff,22):this.Ff=Ci(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(wi(this.Ff,23))},set:function(t){Boolean(t)===!0?this.Ff=Ei(this.Ff,23):this.Ff=Ci(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return Boolean(wi(this.Ff,27))},set:function(t){Boolean(t)===!0?this.Ff=Ei(this.Ff,27):this.Ff=Ci(this.Ff,27)}}),this.hasAppearanceStream=!1};$o($d,EA);var Vd=function(){$d.call(this),this.fontName="helvetica",this.combo=!1};$o(Vd,$d);var jd=function(){Vd.call(this),this.combo=!0};$o(jd,Vd);var g1=function(){jd.call(this),this.edit=!0};$o(g1,jd);var aa=function(){EA.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return Boolean(wi(this.Ff,15))},set:function(t){Boolean(t)===!0?this.Ff=Ei(this.Ff,15):this.Ff=Ci(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return Boolean(wi(this.Ff,16))},set:function(t){Boolean(t)===!0?this.Ff=Ei(this.Ff,16):this.Ff=Ci(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return Boolean(wi(this.Ff,17))},set:function(t){Boolean(t)===!0?this.Ff=Ei(this.Ff,17):this.Ff=Ci(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return Boolean(wi(this.Ff,26))},set:function(t){Boolean(t)===!0?this.Ff=Ei(this.Ff,26):this.Ff=Ci(this.Ff,26)}});var r,e={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var t=function(a){return a};if(this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),Object.keys(e).length!==0){var n,i=[];for(n in i.push("<<"),e)i.push("/"+n+" ("+sp(t(e[n]))+")");return i.push(">>"),i.join(`
|
||
`)}},set:function(t){gn(t)==="object"&&(e=t)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return e.CA||""},set:function(t){typeof t=="string"&&(e.CA=t)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return r},set:function(t){r=t}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return r.substr(1,r.length-1)},set:function(t){r="/"+t}})};$o(aa,EA);var m1=function(){aa.call(this),this.pushButton=!0};$o(m1,aa);var Kd=function(){aa.call(this),this.radio=!0,this.pushButton=!1;var r=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return r},set:function(e){r=e!==void 0?e:[]}})};$o(Kd,aa);var yw=function(){var r,e;EA.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return r},set:function(i){r=i}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return e},set:function(i){e=i}});var t,n={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var i=function(s){return s};this.scope&&(i=this.scope.internal.getEncryptor(this.objId));var a,o=[];for(a in o.push("<<"),n)o.push("/"+a+" ("+sp(i(n[a]))+")");return o.push(">>"),o.join(`
|
||
`)},set:function(i){gn(i)==="object"&&(n=i)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return n.CA||""},set:function(i){typeof i=="string"&&(n.CA=i)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return t},set:function(i){t=i}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return t.substr(1,t.length-1)},set:function(i){t="/"+i}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=Te.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};$o(yw,EA),Kd.prototype.setAppearance=function(r){if(!("createAppearanceStream"in r)||!("getCA"in r))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var e in this.Kids)if(this.Kids.hasOwnProperty(e)){var t=this.Kids[e];t.appearanceStreamContent=r.createAppearanceStream(t.optionName),t.caption=r.getCA()}},Kd.prototype.createOption=function(r){var e=new yw;return e.Parent=this,e.optionName=r,this.Kids.push(e),Ust.call(this.scope,e),e};var y1=function(){aa.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=Te.CheckBox.createAppearanceStream()};$o(y1,aa);var Cf=function(){EA.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return Boolean(wi(this.Ff,13))},set:function(e){Boolean(e)===!0?this.Ff=Ei(this.Ff,13):this.Ff=Ci(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(wi(this.Ff,21))},set:function(e){Boolean(e)===!0?this.Ff=Ei(this.Ff,21):this.Ff=Ci(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(wi(this.Ff,23))},set:function(e){Boolean(e)===!0?this.Ff=Ei(this.Ff,23):this.Ff=Ci(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return Boolean(wi(this.Ff,24))},set:function(e){Boolean(e)===!0?this.Ff=Ei(this.Ff,24):this.Ff=Ci(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return Boolean(wi(this.Ff,25))},set:function(e){Boolean(e)===!0?this.Ff=Ei(this.Ff,25):this.Ff=Ci(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return Boolean(wi(this.Ff,26))},set:function(e){Boolean(e)===!0?this.Ff=Ei(this.Ff,26):this.Ff=Ci(this.Ff,26)}});var r=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return r},set:function(e){r=e}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return r},set:function(e){Number.isInteger(e)&&(r=e)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};$o(Cf,EA);var _1=function(){Cf.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return Boolean(wi(this.Ff,14))},set:function(r){Boolean(r)===!0?this.Ff=Ei(this.Ff,14):this.Ff=Ci(this.Ff,14)}}),this.password=!0};$o(_1,Cf);var Te={CheckBox:{createAppearanceStream:function(){return{N:{On:Te.CheckBox.YesNormal},D:{On:Te.CheckBox.YesPushDown,Off:Te.CheckBox.OffPushDown}}},YesPushDown:function(r){var e=VA(r);e.scope=r.scope;var t=[],n=r.scope.internal.getFont(r.fontName,r.fontStyle).id,i=r.scope.__private__.encodeColorString(r.color),a=ix(r,r.caption);return t.push("0.749023 g"),t.push("0 0 "+or(Te.internal.getWidth(r))+" "+or(Te.internal.getHeight(r))+" re"),t.push("f"),t.push("BMC"),t.push("q"),t.push("0 0 1 rg"),t.push("/"+n+" "+or(a.fontSize)+" Tf "+i),t.push("BT"),t.push(a.text),t.push("ET"),t.push("Q"),t.push("EMC"),e.stream=t.join(`
|
||
`),e},YesNormal:function(r){var e=VA(r);e.scope=r.scope;var t=r.scope.internal.getFont(r.fontName,r.fontStyle).id,n=r.scope.__private__.encodeColorString(r.color),i=[],a=Te.internal.getHeight(r),o=Te.internal.getWidth(r),s=ix(r,r.caption);return i.push("1 g"),i.push("0 0 "+or(o)+" "+or(a)+" re"),i.push("f"),i.push("q"),i.push("0 0 1 rg"),i.push("0 0 "+or(o-1)+" "+or(a-1)+" re"),i.push("W"),i.push("n"),i.push("0 g"),i.push("BT"),i.push("/"+t+" "+or(s.fontSize)+" Tf "+n),i.push(s.text),i.push("ET"),i.push("Q"),e.stream=i.join(`
|
||
`),e},OffPushDown:function(r){var e=VA(r);e.scope=r.scope;var t=[];return t.push("0.749023 g"),t.push("0 0 "+or(Te.internal.getWidth(r))+" "+or(Te.internal.getHeight(r))+" re"),t.push("f"),e.stream=t.join(`
|
||
`),e}},RadioButton:{Circle:{createAppearanceStream:function(r){var e={D:{Off:Te.RadioButton.Circle.OffPushDown},N:{}};return e.N[r]=Te.RadioButton.Circle.YesNormal,e.D[r]=Te.RadioButton.Circle.YesPushDown,e},getCA:function(){return"l"},YesNormal:function(r){var e=VA(r);e.scope=r.scope;var t=[],n=Te.internal.getWidth(r)<=Te.internal.getHeight(r)?Te.internal.getWidth(r)/4:Te.internal.getHeight(r)/4;n=Number((.9*n).toFixed(5));var i=Te.internal.Bezier_C,a=Number((n*i).toFixed(5));return t.push("q"),t.push("1 0 0 1 "+Ac(Te.internal.getWidth(r)/2)+" "+Ac(Te.internal.getHeight(r)/2)+" cm"),t.push(n+" 0 m"),t.push(n+" "+a+" "+a+" "+n+" 0 "+n+" c"),t.push("-"+a+" "+n+" -"+n+" "+a+" -"+n+" 0 c"),t.push("-"+n+" -"+a+" -"+a+" -"+n+" 0 -"+n+" c"),t.push(a+" -"+n+" "+n+" -"+a+" "+n+" 0 c"),t.push("f"),t.push("Q"),e.stream=t.join(`
|
||
`),e},YesPushDown:function(r){var e=VA(r);e.scope=r.scope;var t=[],n=Te.internal.getWidth(r)<=Te.internal.getHeight(r)?Te.internal.getWidth(r)/4:Te.internal.getHeight(r)/4;n=Number((.9*n).toFixed(5));var i=Number((2*n).toFixed(5)),a=Number((i*Te.internal.Bezier_C).toFixed(5)),o=Number((n*Te.internal.Bezier_C).toFixed(5));return t.push("0.749023 g"),t.push("q"),t.push("1 0 0 1 "+Ac(Te.internal.getWidth(r)/2)+" "+Ac(Te.internal.getHeight(r)/2)+" cm"),t.push(i+" 0 m"),t.push(i+" "+a+" "+a+" "+i+" 0 "+i+" c"),t.push("-"+a+" "+i+" -"+i+" "+a+" -"+i+" 0 c"),t.push("-"+i+" -"+a+" -"+a+" -"+i+" 0 -"+i+" c"),t.push(a+" -"+i+" "+i+" -"+a+" "+i+" 0 c"),t.push("f"),t.push("Q"),t.push("0 g"),t.push("q"),t.push("1 0 0 1 "+Ac(Te.internal.getWidth(r)/2)+" "+Ac(Te.internal.getHeight(r)/2)+" cm"),t.push(n+" 0 m"),t.push(n+" "+o+" "+o+" "+n+" 0 "+n+" c"),t.push("-"+o+" "+n+" -"+n+" "+o+" -"+n+" 0 c"),t.push("-"+n+" -"+o+" -"+o+" -"+n+" 0 -"+n+" c"),t.push(o+" -"+n+" "+n+" -"+o+" "+n+" 0 c"),t.push("f"),t.push("Q"),e.stream=t.join(`
|
||
`),e},OffPushDown:function(r){var e=VA(r);e.scope=r.scope;var t=[],n=Te.internal.getWidth(r)<=Te.internal.getHeight(r)?Te.internal.getWidth(r)/4:Te.internal.getHeight(r)/4;n=Number((.9*n).toFixed(5));var i=Number((2*n).toFixed(5)),a=Number((i*Te.internal.Bezier_C).toFixed(5));return t.push("0.749023 g"),t.push("q"),t.push("1 0 0 1 "+Ac(Te.internal.getWidth(r)/2)+" "+Ac(Te.internal.getHeight(r)/2)+" cm"),t.push(i+" 0 m"),t.push(i+" "+a+" "+a+" "+i+" 0 "+i+" c"),t.push("-"+a+" "+i+" -"+i+" "+a+" -"+i+" 0 c"),t.push("-"+i+" -"+a+" -"+a+" -"+i+" 0 -"+i+" c"),t.push(a+" -"+i+" "+i+" -"+a+" "+i+" 0 c"),t.push("f"),t.push("Q"),e.stream=t.join(`
|
||
`),e}},Cross:{createAppearanceStream:function(r){var e={D:{Off:Te.RadioButton.Cross.OffPushDown},N:{}};return e.N[r]=Te.RadioButton.Cross.YesNormal,e.D[r]=Te.RadioButton.Cross.YesPushDown,e},getCA:function(){return"8"},YesNormal:function(r){var e=VA(r);e.scope=r.scope;var t=[],n=Te.internal.calculateCross(r);return t.push("q"),t.push("1 1 "+or(Te.internal.getWidth(r)-2)+" "+or(Te.internal.getHeight(r)-2)+" re"),t.push("W"),t.push("n"),t.push(or(n.x1.x)+" "+or(n.x1.y)+" m"),t.push(or(n.x2.x)+" "+or(n.x2.y)+" l"),t.push(or(n.x4.x)+" "+or(n.x4.y)+" m"),t.push(or(n.x3.x)+" "+or(n.x3.y)+" l"),t.push("s"),t.push("Q"),e.stream=t.join(`
|
||
`),e},YesPushDown:function(r){var e=VA(r);e.scope=r.scope;var t=Te.internal.calculateCross(r),n=[];return n.push("0.749023 g"),n.push("0 0 "+or(Te.internal.getWidth(r))+" "+or(Te.internal.getHeight(r))+" re"),n.push("f"),n.push("q"),n.push("1 1 "+or(Te.internal.getWidth(r)-2)+" "+or(Te.internal.getHeight(r)-2)+" re"),n.push("W"),n.push("n"),n.push(or(t.x1.x)+" "+or(t.x1.y)+" m"),n.push(or(t.x2.x)+" "+or(t.x2.y)+" l"),n.push(or(t.x4.x)+" "+or(t.x4.y)+" m"),n.push(or(t.x3.x)+" "+or(t.x3.y)+" l"),n.push("s"),n.push("Q"),e.stream=n.join(`
|
||
`),e},OffPushDown:function(r){var e=VA(r);e.scope=r.scope;var t=[];return t.push("0.749023 g"),t.push("0 0 "+or(Te.internal.getWidth(r))+" "+or(Te.internal.getHeight(r))+" re"),t.push("f"),e.stream=t.join(`
|
||
`),e}}},createDefaultAppearanceStream:function(r){var e=r.scope.internal.getFont(r.fontName,r.fontStyle).id,t=r.scope.__private__.encodeColorString(r.color);return"/"+e+" "+r.fontSize+" Tf "+t}};Te.internal={Bezier_C:.551915024494,calculateCross:function(r){var e=Te.internal.getWidth(r),t=Te.internal.getHeight(r),n=Math.min(e,t);return{x1:{x:(e-n)/2,y:(t-n)/2+n},x2:{x:(e-n)/2+n,y:(t-n)/2},x3:{x:(e-n)/2,y:(t-n)/2},x4:{x:(e-n)/2+n,y:(t-n)/2+n}}}},Te.internal.getWidth=function(r){var e=0;return gn(r)==="object"&&(e=rP(r.Rect[2])),e},Te.internal.getHeight=function(r){var e=0;return gn(r)==="object"&&(e=rP(r.Rect[3])),e};var Ust=ii.addField=function(r){if(Pst(this,r),!(r instanceof EA))throw new Error("Invalid argument passed to jsPDF.addField.");var e;return(e=r).scope.internal.acroformPlugin.printedOut&&(e.scope.internal.acroformPlugin.printedOut=!1,e.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),e.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(e),r.page=r.scope.internal.getCurrentPageInfo().pageNumber,this};ii.AcroFormChoiceField=$d,ii.AcroFormListBox=Vd,ii.AcroFormComboBox=jd,ii.AcroFormEditBox=g1,ii.AcroFormButton=aa,ii.AcroFormPushButton=m1,ii.AcroFormRadioButton=Kd,ii.AcroFormCheckBox=y1,ii.AcroFormTextField=Cf,ii.AcroFormPasswordField=_1,ii.AcroFormAppearance=Te,ii.AcroForm={ChoiceField:$d,ListBox:Vd,ComboBox:jd,EditBox:g1,Button:aa,PushButton:m1,RadioButton:Kd,CheckBox:y1,TextField:Cf,PasswordField:_1,Appearance:Te},Ke.AcroForm={ChoiceField:$d,ListBox:Vd,ComboBox:jd,EditBox:g1,Button:aa,PushButton:m1,RadioButton:Kd,CheckBox:y1,TextField:Cf,PasswordField:_1,Appearance:Te};Ke.AcroForm;function gk(r){return r.reduce(function(e,t,n){return e[t]=n,e},{})}(function(r){r.__addimage__={};var e="UNKNOWN",t={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},n=r.__addimage__.getImageFileTypeByImageData=function(x,S){var P,U,tt,q,rt,nt=e;if((S=S||e)==="RGBA"||x.data!==void 0&&x.data instanceof Uint8ClampedArray&&"height"in x&&"width"in x)return"RGBA";if(O(x))for(rt in t)for(tt=t[rt],P=0;P<tt.length;P+=1){for(q=!0,U=0;U<tt[P].length;U+=1)if(tt[P][U]!==void 0&&tt[P][U]!==x[U]){q=!1;break}if(q===!0){nt=rt;break}}else for(rt in t)for(tt=t[rt],P=0;P<tt.length;P+=1){for(q=!0,U=0;U<tt[P].length;U+=1)if(tt[P][U]!==void 0&&tt[P][U]!==x.charCodeAt(U)){q=!1;break}if(q===!0){nt=rt;break}}return nt===e&&S!==e&&(nt=S),nt},i=function x(S){for(var P=this.internal.write,U=this.internal.putStream,tt=(0,this.internal.getFilters)();tt.indexOf("FlateEncode")!==-1;)tt.splice(tt.indexOf("FlateEncode"),1);S.objectId=this.internal.newObject();var q=[];if(q.push({key:"Type",value:"/XObject"}),q.push({key:"Subtype",value:"/Image"}),q.push({key:"Width",value:S.width}),q.push({key:"Height",value:S.height}),S.colorSpace===m.INDEXED?q.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(S.palette.length/3-1)+" "+("sMask"in S&&S.sMask!==void 0?S.objectId+2:S.objectId+1)+" 0 R]"}):(q.push({key:"ColorSpace",value:"/"+S.colorSpace}),S.colorSpace===m.DEVICE_CMYK&&q.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),q.push({key:"BitsPerComponent",value:S.bitsPerComponent}),"decodeParameters"in S&&S.decodeParameters!==void 0&&q.push({key:"DecodeParms",value:"<<"+S.decodeParameters+">>"}),"transparency"in S&&Array.isArray(S.transparency)){for(var rt="",nt=0,At=S.transparency.length;nt<At;nt++)rt+=S.transparency[nt]+" "+S.transparency[nt]+" ";q.push({key:"Mask",value:"["+rt+"]"})}S.sMask!==void 0&&q.push({key:"SMask",value:S.objectId+1+" 0 R"});var ct=S.filter!==void 0?["/"+S.filter]:void 0;if(U({data:S.data,additionalKeyValues:q,alreadyAppliedFilters:ct,objectId:S.objectId}),P("endobj"),"sMask"in S&&S.sMask!==void 0){var bt="/Predictor "+S.predictor+" /Colors 1 /BitsPerComponent "+S.bitsPerComponent+" /Columns "+S.width,M={width:S.width,height:S.height,colorSpace:"DeviceGray",bitsPerComponent:S.bitsPerComponent,decodeParameters:bt,data:S.sMask};"filter"in S&&(M.filter=S.filter),x.call(this,M)}if(S.colorSpace===m.INDEXED){var Y=this.internal.newObject();U({data:b(new Uint8Array(S.palette)),objectId:Y}),P("endobj")}},a=function(){var x=this.internal.collections.addImage_images;for(var S in x)i.call(this,x[S])},o=function(){var x,S=this.internal.collections.addImage_images,P=this.internal.write;for(var U in S)P("/I"+(x=S[U]).index,x.objectId,"0","R")},s=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",a),this.internal.events.subscribe("putXobjectDict",o))},A=function(){var x=this.internal.collections.addImage_images;return s.call(this),x},l=function(){return Object.keys(this.internal.collections.addImage_images).length},u=function(x){return typeof r["process"+x.toUpperCase()]=="function"},c=function(x){return gn(x)==="object"&&x.nodeType===1},h=function(x,S){if(x.nodeName==="IMG"&&x.hasAttribute("src")){var P=""+x.getAttribute("src");if(P.indexOf("data:image/")===0)return xm(unescape(P).split("base64,").pop());var U=r.loadFile(P,!0);if(U!==void 0)return U}if(x.nodeName==="CANVAS"){if(x.width===0||x.height===0)throw new Error("Given canvas must have data. Canvas width: "+x.width+", height: "+x.height);var tt;switch(S){case"PNG":tt="image/png";break;case"WEBP":tt="image/webp";break;case"JPEG":case"JPG":default:tt="image/jpeg"}return xm(x.toDataURL(tt,1).split("base64,").pop())}},f=function(x){var S=this.internal.collections.addImage_images;if(S){for(var P in S)if(x===S[P].alias)return S[P]}},p=function(x,S,P){return x||S||(x=-96,S=-96),x<0&&(x=-1*P.width*72/x/this.internal.scaleFactor),S<0&&(S=-1*P.height*72/S/this.internal.scaleFactor),x===0&&(x=S*P.width/P.height),S===0&&(S=x*P.height/P.width),[x,S]},v=function(x,S,P,U,tt,q){var rt=p.call(this,P,U,tt),nt=this.internal.getCoordinateString,At=this.internal.getVerticalCoordinateString,ct=A.call(this);if(P=rt[0],U=rt[1],ct[tt.index]=tt,q){q*=Math.PI/180;var bt=Math.cos(q),M=Math.sin(q),Y=function(H){return H.toFixed(4)},z=[Y(bt),Y(M),Y(-1*M),Y(bt),0,0,"cm"]}this.internal.write("q"),q?(this.internal.write([1,"0","0",1,nt(x),At(S+U),"cm"].join(" ")),this.internal.write(z.join(" ")),this.internal.write([nt(P),"0","0",nt(U),"0","0","cm"].join(" "))):this.internal.write([nt(P),"0","0",nt(U),nt(x),At(S+U),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+tt.index+" Do"),this.internal.write("Q")},m=r.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};r.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var g=r.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},_=r.__addimage__.sHashCode=function(x){var S,P,U=0;if(typeof x=="string")for(P=x.length,S=0;S<P;S++)U=(U<<5)-U+x.charCodeAt(S),U|=0;else if(O(x))for(P=x.byteLength/2,S=0;S<P;S++)U=(U<<5)-U+x[S],U|=0;return U},w=r.__addimage__.validateStringAsBase64=function(x){(x=x||"").toString().trim();var S=!0;return x.length===0&&(S=!1),x.length%4!=0&&(S=!1),/^[A-Za-z0-9+/]+$/.test(x.substr(0,x.length-2))===!1&&(S=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(x.substr(-2))===!1&&(S=!1),S},C=r.__addimage__.extractImageFromDataUrl=function(x){var S=(x=x||"").split("base64,"),P=null;if(S.length===2){var U=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(S[0]);Array.isArray(U)&&(P={mimeType:U[1],charset:U[2],data:S[1]})}return P},F=r.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"};r.__addimage__.isArrayBuffer=function(x){return F()&&x instanceof ArrayBuffer};var O=r.__addimage__.isArrayBufferView=function(x){return F()&&typeof Uint32Array<"u"&&(x instanceof Int8Array||x instanceof Uint8Array||typeof Uint8ClampedArray<"u"&&x instanceof Uint8ClampedArray||x instanceof Int16Array||x instanceof Uint16Array||x instanceof Int32Array||x instanceof Uint32Array||x instanceof Float32Array||x instanceof Float64Array)},I=r.__addimage__.binaryStringToUint8Array=function(x){for(var S=x.length,P=new Uint8Array(S),U=0;U<S;U++)P[U]=x.charCodeAt(U);return P},b=r.__addimage__.arrayBufferToBinaryString=function(x){for(var S="",P=O(x)?x:new Uint8Array(x),U=0;U<P.length;U+=8192)S+=String.fromCharCode.apply(null,P.subarray(U,U+8192));return S};r.addImage=function(){var x,S,P,U,tt,q,rt,nt,At;if(typeof arguments[1]=="number"?(S=e,P=arguments[1],U=arguments[2],tt=arguments[3],q=arguments[4],rt=arguments[5],nt=arguments[6],At=arguments[7]):(S=arguments[1],P=arguments[2],U=arguments[3],tt=arguments[4],q=arguments[5],rt=arguments[6],nt=arguments[7],At=arguments[8]),gn(x=arguments[0])==="object"&&!c(x)&&"imageData"in x){var ct=x;x=ct.imageData,S=ct.format||S||e,P=ct.x||P||0,U=ct.y||U||0,tt=ct.w||ct.width||tt,q=ct.h||ct.height||q,rt=ct.alias||rt,nt=ct.compression||nt,At=ct.rotation||ct.angle||At}var bt=this.internal.getFilters();if(nt===void 0&&bt.indexOf("FlateEncode")!==-1&&(nt="SLOW"),isNaN(P)||isNaN(U))throw new Error("Invalid coordinates passed to jsPDF.addImage");s.call(this);var M=L.call(this,x,S,rt,nt);return v.call(this,P,U,tt,q,M,At),this};var L=function(x,S,P,U){var tt,q,rt;if(typeof x=="string"&&n(x)===e){x=unescape(x);var nt=N(x,!1);(nt!==""||(nt=r.loadFile(x,!0))!==void 0)&&(x=nt)}if(c(x)&&(x=h(x,S)),S=n(x,S),!u(S))throw new Error("addImage does not support files of type '"+S+"', please ensure that a plugin for '"+S+"' support is added.");if(((rt=P)==null||rt.length===0)&&(P=function(At){return typeof At=="string"||O(At)?_(At):O(At.data)?_(At.data):null}(x)),(tt=f.call(this,P))||(F()&&(x instanceof Uint8Array||S==="RGBA"||(q=x,x=I(x))),tt=this["process"+S.toUpperCase()](x,l.call(this),P,function(At){return At&&typeof At=="string"&&(At=At.toUpperCase()),At in r.image_compression?At:g.NONE}(U),q)),!tt)throw new Error("An unknown error occurred whilst processing the image.");return tt},N=r.__addimage__.convertBase64ToBinaryString=function(x,S){var P;S=typeof S!="boolean"||S;var U,tt="";if(typeof x=="string"){U=(P=C(x))!==null?P.data:x;try{tt=xm(U)}catch(q){if(S)throw w(U)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+q.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return tt};r.getImageProperties=function(x){var S,P,U="";if(c(x)&&(x=h(x)),typeof x=="string"&&n(x)===e&&((U=N(x,!1))===""&&(U=r.loadFile(x)||""),x=U),P=n(x),!u(P))throw new Error("addImage does not support files of type '"+P+"', please ensure that a plugin for '"+P+"' support is added.");if(!F()||x instanceof Uint8Array||(x=I(x)),!(S=this["process"+P.toUpperCase()](x)))throw new Error("An unknown error occurred whilst processing the image");return S.fileType=P,S}})(Ke.API),function(r){var e=function(t){if(t!==void 0&&t!="")return!0};Ke.API.events.push(["addPage",function(t){this.internal.getPageInfo(t.pageNumber).pageContext.annotations=[]}]),r.events.push(["putPage",function(t){for(var n,i,a,o=this.internal.getCoordinateString,s=this.internal.getVerticalCoordinateString,A=this.internal.getPageInfoByObjId(t.objId),l=t.pageContext.annotations,u=!1,c=0;c<l.length&&!u;c++)switch((n=l[c]).type){case"link":(e(n.options.url)||e(n.options.pageNumber))&&(u=!0);break;case"reference":case"text":case"freetext":u=!0}if(u!=0){this.internal.write("/Annots [");for(var h=0;h<l.length;h++){n=l[h];var f=this.internal.pdfEscape,p=this.internal.getEncryptor(t.objId);switch(n.type){case"reference":this.internal.write(" "+n.object.objId+" 0 R ");break;case"text":var v=this.internal.newAdditionalObject(),m=this.internal.newAdditionalObject(),g=this.internal.getEncryptor(v.objId),_=n.title||"Note";a="<</Type /Annot /Subtype /Text "+(i="/Rect ["+o(n.bounds.x)+" "+s(n.bounds.y+n.bounds.h)+" "+o(n.bounds.x+n.bounds.w)+" "+s(n.bounds.y)+"] ")+"/Contents ("+f(g(n.contents))+")",a+=" /Popup "+m.objId+" 0 R",a+=" /P "+A.objId+" 0 R",a+=" /T ("+f(g(_))+") >>",v.content=a;var w=v.objId+" 0 R";a="<</Type /Annot /Subtype /Popup "+(i="/Rect ["+o(n.bounds.x+30)+" "+s(n.bounds.y+n.bounds.h)+" "+o(n.bounds.x+n.bounds.w+30)+" "+s(n.bounds.y)+"] ")+" /Parent "+w,n.open&&(a+=" /Open true"),a+=" >>",m.content=a,this.internal.write(v.objId,"0 R",m.objId,"0 R");break;case"freetext":i="/Rect ["+o(n.bounds.x)+" "+s(n.bounds.y)+" "+o(n.bounds.x+n.bounds.w)+" "+s(n.bounds.y+n.bounds.h)+"] ";var C=n.color||"#000000";a="<</Type /Annot /Subtype /FreeText "+i+"/Contents ("+f(p(n.contents))+")",a+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+C+")",a+=" /Border [0 0 0]",a+=" >>",this.internal.write(a);break;case"link":if(n.options.name){var F=this.annotations._nameMap[n.options.name];n.options.pageNumber=F.page,n.options.top=F.y}else n.options.top||(n.options.top=0);if(i="/Rect ["+n.finalBounds.x+" "+n.finalBounds.y+" "+n.finalBounds.w+" "+n.finalBounds.h+"] ",a="",n.options.url)a="<</Type /Annot /Subtype /Link "+i+"/Border [0 0 0] /A <</S /URI /URI ("+f(p(n.options.url))+") >>";else if(n.options.pageNumber)switch(a="<</Type /Annot /Subtype /Link "+i+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(n.options.pageNumber).objId+" 0 R",n.options.magFactor=n.options.magFactor||"XYZ",n.options.magFactor){case"Fit":a+=" /Fit]";break;case"FitH":a+=" /FitH "+n.options.top+"]";break;case"FitV":n.options.left=n.options.left||0,a+=" /FitV "+n.options.left+"]";break;case"XYZ":default:var O=s(n.options.top);n.options.left=n.options.left||0,n.options.zoom===void 0&&(n.options.zoom=0),a+=" /XYZ "+n.options.left+" "+O+" "+n.options.zoom+"]"}a!=""&&(a+=" >>",this.internal.write(a))}}this.internal.write("]")}}]),r.createAnnotation=function(t){var n=this.internal.getCurrentPageInfo();switch(t.type){case"link":this.link(t.bounds.x,t.bounds.y,t.bounds.w,t.bounds.h,t);break;case"text":case"freetext":n.pageContext.annotations.push(t)}},r.link=function(t,n,i,a,o){var s=this.internal.getCurrentPageInfo(),A=this.internal.getCoordinateString,l=this.internal.getVerticalCoordinateString;s.pageContext.annotations.push({finalBounds:{x:A(t),y:l(n),w:A(t+i),h:l(n+a)},options:o,type:"link"})},r.textWithLink=function(t,n,i,a){var o,s,A=this.getTextWidth(t),l=this.internal.getLineHeight()/this.internal.scaleFactor;if(a.maxWidth!==void 0){s=a.maxWidth;var u=this.splitTextToSize(t,s).length;o=Math.ceil(l*u)}else s=A,o=l;return this.text(t,n,i,a),i+=.2*l,a.align==="center"&&(n-=A/2),a.align==="right"&&(n-=A),this.link(n,i-l,s,o,a),A},r.getTextWidth=function(t){var n=this.internal.getFontSize();return this.getStringUnitWidth(t)*n/this.internal.scaleFactor}}(Ke.API),function(r){var e={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},t={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},n={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},i=[1570,1571,1573,1575];r.__arabicParser__={};var a=r.__arabicParser__.isInArabicSubstitutionA=function(v){return e[v.charCodeAt(0)]!==void 0},o=r.__arabicParser__.isArabicLetter=function(v){return typeof v=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(v)},s=r.__arabicParser__.isArabicEndLetter=function(v){return o(v)&&a(v)&&e[v.charCodeAt(0)].length<=2},A=r.__arabicParser__.isArabicAlfLetter=function(v){return o(v)&&i.indexOf(v.charCodeAt(0))>=0};r.__arabicParser__.arabicLetterHasIsolatedForm=function(v){return o(v)&&a(v)&&e[v.charCodeAt(0)].length>=1};var l=r.__arabicParser__.arabicLetterHasFinalForm=function(v){return o(v)&&a(v)&&e[v.charCodeAt(0)].length>=2};r.__arabicParser__.arabicLetterHasInitialForm=function(v){return o(v)&&a(v)&&e[v.charCodeAt(0)].length>=3};var u=r.__arabicParser__.arabicLetterHasMedialForm=function(v){return o(v)&&a(v)&&e[v.charCodeAt(0)].length==4},c=r.__arabicParser__.resolveLigatures=function(v){var m=0,g=t,_="",w=0;for(m=0;m<v.length;m+=1)g[v.charCodeAt(m)]!==void 0?(w++,typeof(g=g[v.charCodeAt(m)])=="number"&&(_+=String.fromCharCode(g),g=t,w=0),m===v.length-1&&(g=t,_+=v.charAt(m-(w-1)),m-=w-1,w=0)):(g=t,_+=v.charAt(m-w),m-=w,w=0);return _};r.__arabicParser__.isArabicDiacritic=function(v){return v!==void 0&&n[v.charCodeAt(0)]!==void 0};var h=r.__arabicParser__.getCorrectForm=function(v,m,g){return o(v)?a(v)===!1?-1:!l(v)||!o(m)&&!o(g)||!o(g)&&s(m)||s(v)&&!o(m)||s(v)&&A(m)||s(v)&&s(m)?0:u(v)&&o(m)&&!s(m)&&o(g)&&l(g)?3:s(v)||!o(g)?1:2:-1},f=function(v){var m=0,g=0,_=0,w="",C="",F="",O=(v=v||"").split("\\s+"),I=[];for(m=0;m<O.length;m+=1){for(I.push(""),g=0;g<O[m].length;g+=1)w=O[m][g],C=O[m][g-1],F=O[m][g+1],o(w)?(_=h(w,C,F),I[m]+=_!==-1?String.fromCharCode(e[w.charCodeAt(0)][_]):w):I[m]+=w;I[m]=c(I[m])}return I.join(" ")},p=r.__arabicParser__.processArabic=r.processArabic=function(){var v,m=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,g=[];if(Array.isArray(m)){var _=0;for(g=[],_=0;_<m.length;_+=1)Array.isArray(m[_])?g.push([f(m[_][0]),m[_][1],m[_][2]]):g.push([f(m[_])]);v=g}else v=f(m);return typeof arguments[0]=="string"?v:(arguments[0].text=v,arguments[0])};r.events.push(["preProcessText",p])}(Ke.API),Ke.API.autoPrint=function(r){var e;switch((r=r||{}).variant=r.variant||"non-conform",r.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",function(){e=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+e+" 0 R")})}return this},function(r){var e=function(){var t=void 0;Object.defineProperty(this,"pdf",{get:function(){return t},set:function(s){t=s}});var n=150;Object.defineProperty(this,"width",{get:function(){return n},set:function(s){n=isNaN(s)||Number.isInteger(s)===!1||s<0?150:s,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=n+1)}});var i=300;Object.defineProperty(this,"height",{get:function(){return i},set:function(s){i=isNaN(s)||Number.isInteger(s)===!1||s<0?300:s,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=i+1)}});var a=[];Object.defineProperty(this,"childNodes",{get:function(){return a},set:function(s){a=s}});var o={};Object.defineProperty(this,"style",{get:function(){return o},set:function(s){o=s}}),Object.defineProperty(this,"parentNode",{})};e.prototype.getContext=function(t,n){var i;if((t=t||"2d")!=="2d")return null;for(i in n)this.pdf.context2d.hasOwnProperty(i)&&(this.pdf.context2d[i]=n[i]);return this.pdf.context2d._canvas=this,this.pdf.context2d},e.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},r.events.push(["initialized",function(){this.canvas=new e,this.canvas.pdf=this}])}(Ke.API),function(r){var e={left:0,top:0,bottom:0,right:0},t=!1,n=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},e),this.internal.__cell__.margins.width=this.getPageWidth(),i.call(this))},i=function(){this.internal.__cell__.lastCell=new a,this.internal.__cell__.pages=1},a=function(){var A=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return A},set:function(v){A=v}});var l=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return l},set:function(v){l=v}});var u=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return u},set:function(v){u=v}});var c=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return c},set:function(v){c=v}});var h=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return h},set:function(v){h=v}});var f=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return f},set:function(v){f=v}});var p=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return p},set:function(v){p=v}}),this};a.prototype.clone=function(){return new a(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},a.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},r.setHeaderFunction=function(A){return n.call(this),this.internal.__cell__.headerFunction=typeof A=="function"?A:void 0,this},r.getTextDimensions=function(A,l){n.call(this);var u=(l=l||{}).fontSize||this.getFontSize(),c=l.font||this.getFont(),h=l.scaleFactor||this.internal.scaleFactor,f=0,p=0,v=0,m=this;if(!Array.isArray(A)&&typeof A!="string"){if(typeof A!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");A=String(A)}var g=l.maxWidth;g>0?typeof A=="string"?A=this.splitTextToSize(A,g):Object.prototype.toString.call(A)==="[object Array]"&&(A=A.reduce(function(w,C){return w.concat(m.splitTextToSize(C,g))},[])):A=Array.isArray(A)?A:[A];for(var _=0;_<A.length;_++)f<(v=this.getStringUnitWidth(A[_],{font:c})*u)&&(f=v);return f!==0&&(p=A.length),{w:f/=h,h:Math.max((p*u*this.getLineHeightFactor()-u*(this.getLineHeightFactor()-1))/h,0)}},r.cellAddPage=function(){n.call(this),this.addPage();var A=this.internal.__cell__.margins||e;return this.internal.__cell__.lastCell=new a(A.left,A.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var o=r.cell=function(){var A;A=arguments[0]instanceof a?arguments[0]:new a(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),n.call(this);var l=this.internal.__cell__.lastCell,u=this.internal.__cell__.padding,c=this.internal.__cell__.margins||e,h=this.internal.__cell__.tableHeaderRow,f=this.internal.__cell__.printHeaders;return l.lineNumber!==void 0&&(l.lineNumber===A.lineNumber?(A.x=(l.x||0)+(l.width||0),A.y=l.y||0):l.y+l.height+A.height+c.bottom>this.getPageHeight()?(this.cellAddPage(),A.y=c.top,f&&h&&(this.printHeaderRow(A.lineNumber,!0),A.y+=h[0].height)):A.y=l.y+l.height||A.y),A.text[0]!==void 0&&(this.rect(A.x,A.y,A.width,A.height,t===!0?"FD":void 0),A.align==="right"?this.text(A.text,A.x+A.width-u,A.y+u,{align:"right",baseline:"top"}):A.align==="center"?this.text(A.text,A.x+A.width/2,A.y+u,{align:"center",baseline:"top",maxWidth:A.width-u-u}):this.text(A.text,A.x+u,A.y+u,{align:"left",baseline:"top",maxWidth:A.width-u-u})),this.internal.__cell__.lastCell=A,this};r.table=function(A,l,u,c,h){if(n.call(this),!u)throw new Error("No data for PDF table.");var f,p,v,m,g=[],_=[],w=[],C={},F={},O=[],I=[],b=(h=h||{}).autoSize||!1,L=h.printHeaders!==!1,N=h.css&&h.css["font-size"]!==void 0?16*h.css["font-size"]:h.fontSize||12,x=h.margins||Object.assign({width:this.getPageWidth()},e),S=typeof h.padding=="number"?h.padding:3,P=h.headerBackgroundColor||"#c8c8c8",U=h.headerTextColor||"#000";if(i.call(this),this.internal.__cell__.printHeaders=L,this.internal.__cell__.margins=x,this.internal.__cell__.table_font_size=N,this.internal.__cell__.padding=S,this.internal.__cell__.headerBackgroundColor=P,this.internal.__cell__.headerTextColor=U,this.setFontSize(N),c==null)_=g=Object.keys(u[0]),w=g.map(function(){return"left"});else if(Array.isArray(c)&&gn(c[0])==="object")for(g=c.map(function(ct){return ct.name}),_=c.map(function(ct){return ct.prompt||ct.name||""}),w=c.map(function(ct){return ct.align||"left"}),f=0;f<c.length;f+=1)F[c[f].name]=c[f].width*(19.049976/25.4);else Array.isArray(c)&&typeof c[0]=="string"&&(_=g=c,w=g.map(function(){return"left"}));if(b||Array.isArray(c)&&typeof c[0]=="string")for(f=0;f<g.length;f+=1){for(C[m=g[f]]=u.map(function(ct){return ct[m]}),this.setFont(void 0,"bold"),O.push(this.getTextDimensions(_[f],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),p=C[m],this.setFont(void 0,"normal"),v=0;v<p.length;v+=1)O.push(this.getTextDimensions(p[v],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);F[m]=Math.max.apply(null,O)+S+S,O=[]}if(L){var tt={};for(f=0;f<g.length;f+=1)tt[g[f]]={},tt[g[f]].text=_[f],tt[g[f]].align=w[f];var q=s.call(this,tt,F);I=g.map(function(ct){return new a(A,l,F[ct],q,tt[ct].text,void 0,tt[ct].align)}),this.setTableHeaderRow(I),this.printHeaderRow(1,!1)}var rt=c.reduce(function(ct,bt){return ct[bt.name]=bt.align,ct},{});for(f=0;f<u.length;f+=1){"rowStart"in h&&h.rowStart instanceof Function&&h.rowStart({row:f,data:u[f]},this);var nt=s.call(this,u[f],F);for(v=0;v<g.length;v+=1){var At=u[f][g[v]];"cellStart"in h&&h.cellStart instanceof Function&&h.cellStart({row:f,col:v,data:At},this),o.call(this,new a(A,l,F[g[v]],nt,At,f+2,rt[g[v]]))}}return this.internal.__cell__.table_x=A,this.internal.__cell__.table_y=l,this};var s=function(A,l){var u=this.internal.__cell__.padding,c=this.internal.__cell__.table_font_size,h=this.internal.scaleFactor;return Object.keys(A).map(function(f){var p=A[f];return this.splitTextToSize(p.hasOwnProperty("text")?p.text:p,l[f]-u-u)},this).map(function(f){return this.getLineHeightFactor()*f.length*c/h+u+u},this).reduce(function(f,p){return Math.max(f,p)},0)};r.setTableHeaderRow=function(A){n.call(this),this.internal.__cell__.tableHeaderRow=A},r.printHeaderRow=function(A,l){if(n.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var u;if(t=!0,typeof this.internal.__cell__.headerFunction=="function"){var c=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new a(c[0],c[1],c[2],c[3],void 0,-1)}this.setFont(void 0,"bold");for(var h=[],f=0;f<this.internal.__cell__.tableHeaderRow.length;f+=1){u=this.internal.__cell__.tableHeaderRow[f].clone(),l&&(u.y=this.internal.__cell__.margins.top||0,h.push(u)),u.lineNumber=A;var p=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),o.call(this,u),this.setTextColor(p)}h.length>0&&this.setTableHeaderRow(h),this.setFont(void 0,"normal"),t=!1}}(Ke.API);var mk={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},yk=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],ax=gk(yk),_k=[100,200,300,400,500,600,700,800,900],Dst=gk(_k);function ox(r){var e=r.family.replace(/"|'/g,"").toLowerCase(),t=function(a){return mk[a=a||"normal"]?a:"normal"}(r.style),n=function(a){if(!a)return 400;if(typeof a=="number")return a>=100&&a<=900&&a%100==0?a:400;if(/^\d00$/.test(a))return parseInt(a);switch(a){case"bold":return 700;case"normal":default:return 400}}(r.weight),i=function(a){return typeof ax[a=a||"normal"]=="number"?a:"normal"}(r.stretch);return{family:e,style:t,weight:n,stretch:i,src:r.src||[],ref:r.ref||{name:e,style:[i,t,n].join(" ")}}}function nP(r,e,t,n){var i;for(i=t;i>=0&&i<e.length;i+=n)if(r[e[i]])return r[e[i]];for(i=t;i>=0&&i<e.length;i-=n)if(r[e[i]])return r[e[i]]}var Qst={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},iP={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function aP(r){return[r.stretch,r.style,r.weight,r.family].join(" ")}function kst(r,e,t){for(var n=(t=t||{}).defaultFontFamily||"times",i=Object.assign({},Qst,t.genericFontFamilies||{}),a=null,o=null,s=0;s<e.length;++s)if(i[(a=ox(e[s])).family]&&(a.family=i[a.family]),r.hasOwnProperty(a.family)){o=r[a.family];break}if(!(o=o||r[n]))throw new Error("Could not find a font-family for the rule '"+aP(a)+"' and default family '"+n+"'.");if(o=function(A,l){if(l[A])return l[A];var u=ax[A],c=u<=ax.normal?-1:1,h=nP(l,yk,u,c);if(!h)throw new Error("Could not find a matching font-stretch value for "+A);return h}(a.stretch,o),o=function(A,l){if(l[A])return l[A];for(var u=mk[A],c=0;c<u.length;++c)if(l[u[c]])return l[u[c]];throw new Error("Could not find a matching font-style for "+A)}(a.style,o),!(o=function(A,l){if(l[A])return l[A];if(A===400&&l[500])return l[500];if(A===500&&l[400])return l[400];var u=Dst[A],c=nP(l,_k,u,A<400?-1:1);if(!c)throw new Error("Could not find a matching font-weight for value "+A);return c}(a.weight,o)))throw new Error("Failed to resolve a font for the rule '"+aP(a)+"'.");return o}function oP(r){return r.trimLeft()}function Hst(r,e){for(var t=0;t<r.length;){if(r.charAt(t)===e)return[r.substring(0,t),r.substring(t+1)];t+=1}return null}function Gst(r){var e=r.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return e===null?null:[e[0],r.substring(e[0].length)]}var u_,sP,AP,iT=["times"];(function(r){var e,t,n,i,a,o,s,A,l,u=function(M){return M=M||{},this.isStrokeTransparent=M.isStrokeTransparent||!1,this.strokeOpacity=M.strokeOpacity||1,this.strokeStyle=M.strokeStyle||"#000000",this.fillStyle=M.fillStyle||"#000000",this.isFillTransparent=M.isFillTransparent||!1,this.fillOpacity=M.fillOpacity||1,this.font=M.font||"10px sans-serif",this.textBaseline=M.textBaseline||"alphabetic",this.textAlign=M.textAlign||"left",this.lineWidth=M.lineWidth||1,this.lineJoin=M.lineJoin||"miter",this.lineCap=M.lineCap||"butt",this.path=M.path||[],this.transform=M.transform!==void 0?M.transform.clone():new A,this.globalCompositeOperation=M.globalCompositeOperation||"normal",this.globalAlpha=M.globalAlpha||1,this.clip_path=M.clip_path||[],this.currentPoint=M.currentPoint||new o,this.miterLimit=M.miterLimit||10,this.lastPoint=M.lastPoint||new o,this.lineDashOffset=M.lineDashOffset||0,this.lineDash=M.lineDash||[],this.margin=M.margin||[0,0,0,0],this.prevPageLastElemOffset=M.prevPageLastElemOffset||0,this.ignoreClearRect=typeof M.ignoreClearRect!="boolean"||M.ignoreClearRect,this};r.events.push(["initialized",function(){this.context2d=new c(this),e=this.internal.f2,t=this.internal.getCoordinateString,n=this.internal.getVerticalCoordinateString,i=this.internal.getHorizontalCoordinate,a=this.internal.getVerticalCoordinate,o=this.internal.Point,s=this.internal.Rectangle,A=this.internal.Matrix,l=new u}]);var c=function(M){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var Y=M;Object.defineProperty(this,"pdf",{get:function(){return Y}});var z=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return z},set:function(it){z=Boolean(it)}});var H=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return H},set:function(it){H=Boolean(it)}});var J=0;Object.defineProperty(this,"posX",{get:function(){return J},set:function(it){isNaN(it)||(J=it)}});var ot=0;Object.defineProperty(this,"posY",{get:function(){return ot},set:function(it){isNaN(it)||(ot=it)}}),Object.defineProperty(this,"margin",{get:function(){return l.margin},set:function(it){var V;typeof it=="number"?V=[it,it,it,it]:((V=new Array(4))[0]=it[0],V[1]=it.length>=2?it[1]:V[0],V[2]=it.length>=3?it[2]:V[0],V[3]=it.length>=4?it[3]:V[1]),l.margin=V}});var ut=!1;Object.defineProperty(this,"autoPaging",{get:function(){return ut},set:function(it){ut=it}});var X=0;Object.defineProperty(this,"lastBreak",{get:function(){return X},set:function(it){X=it}});var It=[];Object.defineProperty(this,"pageBreaks",{get:function(){return It},set:function(it){It=it}}),Object.defineProperty(this,"ctx",{get:function(){return l},set:function(it){it instanceof u&&(l=it)}}),Object.defineProperty(this,"path",{get:function(){return l.path},set:function(it){l.path=it}});var at=[];Object.defineProperty(this,"ctxStack",{get:function(){return at},set:function(it){at=it}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(it){var V;V=h(it),this.ctx.fillStyle=V.style,this.ctx.isFillTransparent=V.a===0,this.ctx.fillOpacity=V.a,this.pdf.setFillColor(V.r,V.g,V.b,{a:V.a}),this.pdf.setTextColor(V.r,V.g,V.b,{a:V.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(it){var V=h(it);this.ctx.strokeStyle=V.style,this.ctx.isStrokeTransparent=V.a===0,this.ctx.strokeOpacity=V.a,V.a===0?this.pdf.setDrawColor(255,255,255):(V.a,this.pdf.setDrawColor(V.r,V.g,V.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(it){["butt","round","square"].indexOf(it)!==-1&&(this.ctx.lineCap=it,this.pdf.setLineCap(it))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(it){isNaN(it)||(this.ctx.lineWidth=it,this.pdf.setLineWidth(it))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(it){["bevel","round","miter"].indexOf(it)!==-1&&(this.ctx.lineJoin=it,this.pdf.setLineJoin(it))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(it){isNaN(it)||(this.ctx.miterLimit=it,this.pdf.setMiterLimit(it))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(it){this.ctx.textBaseline=it}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(it){["right","end","center","left","start"].indexOf(it)!==-1&&(this.ctx.textAlign=it)}});var j=null;function Z(it,V){if(j===null){var Ot=function(Mt){var Et=[];return Object.keys(Mt).forEach(function(Bt){Mt[Bt].forEach(function(Ct){var Rt=null;switch(Ct){case"bold":Rt={family:Bt,weight:"bold"};break;case"italic":Rt={family:Bt,style:"italic"};break;case"bolditalic":Rt={family:Bt,weight:"bold",style:"italic"};break;case"":case"normal":Rt={family:Bt}}Rt!==null&&(Rt.ref={name:Bt,style:Ct},Et.push(Rt))})}),Et}(it.getFontList());j=function(Mt){for(var Et={},Bt=0;Bt<Mt.length;++Bt){var Ct=ox(Mt[Bt]),Rt=Ct.family,Nt=Ct.stretch,Dt=Ct.style,Yt=Ct.weight;Et[Rt]=Et[Rt]||{},Et[Rt][Nt]=Et[Rt][Nt]||{},Et[Rt][Nt][Dt]=Et[Rt][Nt][Dt]||{},Et[Rt][Nt][Dt][Yt]=Ct}return Et}(Ot.concat(V))}return j}var ft=null;Object.defineProperty(this,"fontFaces",{get:function(){return ft},set:function(it){j=null,ft=it}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(it){var V;if(this.ctx.font=it,(V=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(it))!==null){var Ot=V[1],Mt=(V[2],V[3]),Et=V[4],Bt=(V[5],V[6]),Ct=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(Et)[2];Et=Math.floor(Ct==="px"?parseFloat(Et)*this.pdf.internal.scaleFactor:Ct==="em"?parseFloat(Et)*this.pdf.getFontSize():parseFloat(Et)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(Et);var Rt=function(Jt){var fe,qt,rr=[],ke=Jt.trim();if(ke==="")return iT;if(ke in iP)return[iP[ke]];for(;ke!=="";){switch(qt=null,fe=(ke=oP(ke)).charAt(0)){case'"':case"'":qt=Hst(ke.substring(1),fe);break;default:qt=Gst(ke)}if(qt===null||(rr.push(qt[0]),(ke=oP(qt[1]))!==""&&ke.charAt(0)!==","))return iT;ke=ke.replace(/^,/,"")}return rr}(Bt);if(this.fontFaces){var Nt=kst(Z(this.pdf,this.fontFaces),Rt.map(function(Jt){return{family:Jt,stretch:"normal",weight:Mt,style:Ot}}));this.pdf.setFont(Nt.ref.name,Nt.ref.style)}else{var Dt="";(Mt==="bold"||parseInt(Mt,10)>=700||Ot==="bold")&&(Dt="bold"),Ot==="italic"&&(Dt+="italic"),Dt.length===0&&(Dt="normal");for(var Yt="",te={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},Ae=0;Ae<Rt.length;Ae++){if(this.pdf.internal.getFont(Rt[Ae],Dt,{noFallback:!0,disableWarning:!0})!==void 0){Yt=Rt[Ae];break}if(Dt==="bolditalic"&&this.pdf.internal.getFont(Rt[Ae],"bold",{noFallback:!0,disableWarning:!0})!==void 0)Yt=Rt[Ae],Dt="bold";else if(this.pdf.internal.getFont(Rt[Ae],"normal",{noFallback:!0,disableWarning:!0})!==void 0){Yt=Rt[Ae],Dt="normal";break}}if(Yt===""){for(var oe=0;oe<Rt.length;oe++)if(te[Rt[oe]]){Yt=te[Rt[oe]];break}}Yt=Yt===""?"Times":Yt,this.pdf.setFont(Yt,Dt)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(it){this.ctx.globalCompositeOperation=it}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(it){this.ctx.globalAlpha=it}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(it){this.ctx.lineDashOffset=it,bt.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(it){this.ctx.lineDash=it,bt.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(it){this.ctx.ignoreClearRect=Boolean(it)}})};c.prototype.setLineDash=function(M){this.lineDash=M},c.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},c.prototype.fill=function(){C.call(this,"fill",!1)},c.prototype.stroke=function(){C.call(this,"stroke",!1)},c.prototype.beginPath=function(){this.path=[{type:"begin"}]},c.prototype.moveTo=function(M,Y){if(isNaN(M)||isNaN(Y))throw Cn.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var z=this.ctx.transform.applyToPoint(new o(M,Y));this.path.push({type:"mt",x:z.x,y:z.y}),this.ctx.lastPoint=new o(M,Y)},c.prototype.closePath=function(){var M=new o(0,0),Y=0;for(Y=this.path.length-1;Y!==-1;Y--)if(this.path[Y].type==="begin"&&gn(this.path[Y+1])==="object"&&typeof this.path[Y+1].x=="number"){M=new o(this.path[Y+1].x,this.path[Y+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new o(M.x,M.y)},c.prototype.lineTo=function(M,Y){if(isNaN(M)||isNaN(Y))throw Cn.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var z=this.ctx.transform.applyToPoint(new o(M,Y));this.path.push({type:"lt",x:z.x,y:z.y}),this.ctx.lastPoint=new o(z.x,z.y)},c.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),C.call(this,null,!0)},c.prototype.quadraticCurveTo=function(M,Y,z,H){if(isNaN(z)||isNaN(H)||isNaN(M)||isNaN(Y))throw Cn.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var J=this.ctx.transform.applyToPoint(new o(z,H)),ot=this.ctx.transform.applyToPoint(new o(M,Y));this.path.push({type:"qct",x1:ot.x,y1:ot.y,x:J.x,y:J.y}),this.ctx.lastPoint=new o(J.x,J.y)},c.prototype.bezierCurveTo=function(M,Y,z,H,J,ot){if(isNaN(J)||isNaN(ot)||isNaN(M)||isNaN(Y)||isNaN(z)||isNaN(H))throw Cn.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var ut=this.ctx.transform.applyToPoint(new o(J,ot)),X=this.ctx.transform.applyToPoint(new o(M,Y)),It=this.ctx.transform.applyToPoint(new o(z,H));this.path.push({type:"bct",x1:X.x,y1:X.y,x2:It.x,y2:It.y,x:ut.x,y:ut.y}),this.ctx.lastPoint=new o(ut.x,ut.y)},c.prototype.arc=function(M,Y,z,H,J,ot){if(isNaN(M)||isNaN(Y)||isNaN(z)||isNaN(H)||isNaN(J))throw Cn.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(ot=Boolean(ot),!this.ctx.transform.isIdentity){var ut=this.ctx.transform.applyToPoint(new o(M,Y));M=ut.x,Y=ut.y;var X=this.ctx.transform.applyToPoint(new o(0,z)),It=this.ctx.transform.applyToPoint(new o(0,0));z=Math.sqrt(Math.pow(X.x-It.x,2)+Math.pow(X.y-It.y,2))}Math.abs(J-H)>=2*Math.PI&&(H=0,J=2*Math.PI),this.path.push({type:"arc",x:M,y:Y,radius:z,startAngle:H,endAngle:J,counterclockwise:ot})},c.prototype.arcTo=function(M,Y,z,H,J){throw new Error("arcTo not implemented.")},c.prototype.rect=function(M,Y,z,H){if(isNaN(M)||isNaN(Y)||isNaN(z)||isNaN(H))throw Cn.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(M,Y),this.lineTo(M+z,Y),this.lineTo(M+z,Y+H),this.lineTo(M,Y+H),this.lineTo(M,Y),this.lineTo(M+z,Y),this.lineTo(M,Y)},c.prototype.fillRect=function(M,Y,z,H){if(isNaN(M)||isNaN(Y)||isNaN(z)||isNaN(H))throw Cn.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!f.call(this)){var J={};this.lineCap!=="butt"&&(J.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(J.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(M,Y,z,H),this.fill(),J.hasOwnProperty("lineCap")&&(this.lineCap=J.lineCap),J.hasOwnProperty("lineJoin")&&(this.lineJoin=J.lineJoin)}},c.prototype.strokeRect=function(M,Y,z,H){if(isNaN(M)||isNaN(Y)||isNaN(z)||isNaN(H))throw Cn.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");p.call(this)||(this.beginPath(),this.rect(M,Y,z,H),this.stroke())},c.prototype.clearRect=function(M,Y,z,H){if(isNaN(M)||isNaN(Y)||isNaN(z)||isNaN(H))throw Cn.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(M,Y,z,H))},c.prototype.save=function(M){M=typeof M!="boolean"||M;for(var Y=this.pdf.internal.getCurrentPageInfo().pageNumber,z=0;z<this.pdf.internal.getNumberOfPages();z++)this.pdf.setPage(z+1),this.pdf.internal.out("q");if(this.pdf.setPage(Y),M){this.ctx.fontSize=this.pdf.internal.getFontSize();var H=new u(this.ctx);this.ctxStack.push(this.ctx),this.ctx=H}},c.prototype.restore=function(M){M=typeof M!="boolean"||M;for(var Y=this.pdf.internal.getCurrentPageInfo().pageNumber,z=0;z<this.pdf.internal.getNumberOfPages();z++)this.pdf.setPage(z+1),this.pdf.internal.out("Q");this.pdf.setPage(Y),M&&this.ctxStack.length!==0&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},c.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var h=function(M){var Y,z,H,J;if(M.isCanvasGradient===!0&&(M=M.getColor()),!M)return{r:0,g:0,b:0,a:0,style:M};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(M))Y=0,z=0,H=0,J=0;else{var ot=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(M);if(ot!==null)Y=parseInt(ot[1]),z=parseInt(ot[2]),H=parseInt(ot[3]),J=1;else if((ot=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(M))!==null)Y=parseInt(ot[1]),z=parseInt(ot[2]),H=parseInt(ot[3]),J=parseFloat(ot[4]);else{if(J=1,typeof M=="string"&&M.charAt(0)!=="#"){var ut=new ck(M);M=ut.ok?ut.toHex():"#000000"}M.length===4?(Y=M.substring(1,2),Y+=Y,z=M.substring(2,3),z+=z,H=M.substring(3,4),H+=H):(Y=M.substring(1,3),z=M.substring(3,5),H=M.substring(5,7)),Y=parseInt(Y,16),z=parseInt(z,16),H=parseInt(H,16)}}return{r:Y,g:z,b:H,a:J,style:M}},f=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},p=function(){return Boolean(this.ctx.isStrokeTransparent||this.globalAlpha==0)};c.prototype.fillText=function(M,Y,z,H){if(isNaN(Y)||isNaN(z)||typeof M!="string")throw Cn.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(H=isNaN(H)?void 0:H,!f.call(this)){var J=nt(this.ctx.transform.rotation),ot=this.ctx.transform.scaleX;S.call(this,{text:M,x:Y,y:z,scale:ot,angle:J,align:this.textAlign,maxWidth:H})}},c.prototype.strokeText=function(M,Y,z,H){if(isNaN(Y)||isNaN(z)||typeof M!="string")throw Cn.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!p.call(this)){H=isNaN(H)?void 0:H;var J=nt(this.ctx.transform.rotation),ot=this.ctx.transform.scaleX;S.call(this,{text:M,x:Y,y:z,scale:ot,renderingMode:"stroke",angle:J,align:this.textAlign,maxWidth:H})}},c.prototype.measureText=function(M){if(typeof M!="string")throw Cn.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var Y=this.pdf,z=this.pdf.internal.scaleFactor,H=Y.internal.getFontSize(),J=Y.getStringUnitWidth(M)*H/Y.internal.scaleFactor,ot=function(ut){var X=(ut=ut||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return X}}),this};return new ot({width:J*=Math.round(96*z/72*1e4)/1e4})},c.prototype.scale=function(M,Y){if(isNaN(M)||isNaN(Y))throw Cn.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var z=new A(M,0,0,Y,0,0);this.ctx.transform=this.ctx.transform.multiply(z)},c.prototype.rotate=function(M){if(isNaN(M))throw Cn.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var Y=new A(Math.cos(M),Math.sin(M),-Math.sin(M),Math.cos(M),0,0);this.ctx.transform=this.ctx.transform.multiply(Y)},c.prototype.translate=function(M,Y){if(isNaN(M)||isNaN(Y))throw Cn.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var z=new A(1,0,0,1,M,Y);this.ctx.transform=this.ctx.transform.multiply(z)},c.prototype.transform=function(M,Y,z,H,J,ot){if(isNaN(M)||isNaN(Y)||isNaN(z)||isNaN(H)||isNaN(J)||isNaN(ot))throw Cn.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var ut=new A(M,Y,z,H,J,ot);this.ctx.transform=this.ctx.transform.multiply(ut)},c.prototype.setTransform=function(M,Y,z,H,J,ot){M=isNaN(M)?1:M,Y=isNaN(Y)?0:Y,z=isNaN(z)?0:z,H=isNaN(H)?1:H,J=isNaN(J)?0:J,ot=isNaN(ot)?0:ot,this.ctx.transform=new A(M,Y,z,H,J,ot)};var v=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};c.prototype.drawImage=function(M,Y,z,H,J,ot,ut,X,It){var at=this.pdf.getImageProperties(M),j=1,Z=1,ft=1,it=1;H!==void 0&&X!==void 0&&(ft=X/H,it=It/J,j=at.width/H*X/H,Z=at.height/J*It/J),ot===void 0&&(ot=Y,ut=z,Y=0,z=0),H!==void 0&&X===void 0&&(X=H,It=J),H===void 0&&X===void 0&&(X=at.width,It=at.height);for(var V,Ot=this.ctx.transform.decompose(),Mt=nt(Ot.rotate.shx),Et=new A,Bt=(Et=(Et=(Et=Et.multiply(Ot.translate)).multiply(Ot.skew)).multiply(Ot.scale)).applyToRectangle(new s(ot-Y*ft,ut-z*it,H*j,J*Z)),Ct=m.call(this,Bt),Rt=[],Nt=0;Nt<Ct.length;Nt+=1)Rt.indexOf(Ct[Nt])===-1&&Rt.push(Ct[Nt]);if(w(Rt),this.autoPaging)for(var Dt=Rt[0],Yt=Rt[Rt.length-1],te=Dt;te<Yt+1;te++){this.pdf.setPage(te);var Ae=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],oe=te===1?this.posY+this.margin[0]:this.margin[0],Jt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],fe=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],qt=te===1?0:Jt+(te-2)*fe;if(this.ctx.clip_path.length!==0){var rr=this.path;V=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=_(V,this.posX+this.margin[3],-qt+oe+this.ctx.prevPageLastElemOffset),F.call(this,"fill",!0),this.path=rr}var ke=JSON.parse(JSON.stringify(Bt));ke=_([ke],this.posX+this.margin[3],-qt+oe+this.ctx.prevPageLastElemOffset)[0];var _r=(te>Dt||te<Yt)&&v.call(this);_r&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Ae,fe,null).clip().discardPath()),this.pdf.addImage(M,"JPEG",ke.x,ke.y,ke.w,ke.h,null,null,Mt),_r&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(M,"JPEG",Bt.x,Bt.y,Bt.w,Bt.h,null,null,Mt)};var m=function(M,Y,z){var H=[];Y=Y||this.pdf.internal.pageSize.width,z=z||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var J=this.posY+this.ctx.prevPageLastElemOffset;switch(M.type){default:case"mt":case"lt":H.push(Math.floor((M.y+J)/z)+1);break;case"arc":H.push(Math.floor((M.y+J-M.radius)/z)+1),H.push(Math.floor((M.y+J+M.radius)/z)+1);break;case"qct":var ot=At(this.ctx.lastPoint.x,this.ctx.lastPoint.y,M.x1,M.y1,M.x,M.y);H.push(Math.floor((ot.y+J)/z)+1),H.push(Math.floor((ot.y+ot.h+J)/z)+1);break;case"bct":var ut=ct(this.ctx.lastPoint.x,this.ctx.lastPoint.y,M.x1,M.y1,M.x2,M.y2,M.x,M.y);H.push(Math.floor((ut.y+J)/z)+1),H.push(Math.floor((ut.y+ut.h+J)/z)+1);break;case"rect":H.push(Math.floor((M.y+J)/z)+1),H.push(Math.floor((M.y+M.h+J)/z)+1)}for(var X=0;X<H.length;X+=1)for(;this.pdf.internal.getNumberOfPages()<H[X];)g.call(this);return H},g=function(){var M=this.fillStyle,Y=this.strokeStyle,z=this.font,H=this.lineCap,J=this.lineWidth,ot=this.lineJoin;this.pdf.addPage(),this.fillStyle=M,this.strokeStyle=Y,this.font=z,this.lineCap=H,this.lineWidth=J,this.lineJoin=ot},_=function(M,Y,z){for(var H=0;H<M.length;H++)switch(M[H].type){case"bct":M[H].x2+=Y,M[H].y2+=z;case"qct":M[H].x1+=Y,M[H].y1+=z;case"mt":case"lt":case"arc":default:M[H].x+=Y,M[H].y+=z}return M},w=function(M){return M.sort(function(Y,z){return Y-z})},C=function(M,Y){for(var z,H,J=this.fillStyle,ot=this.strokeStyle,ut=this.lineCap,X=this.lineWidth,It=Math.abs(X*this.ctx.transform.scaleX),at=this.lineJoin,j=JSON.parse(JSON.stringify(this.path)),Z=JSON.parse(JSON.stringify(this.path)),ft=[],it=0;it<Z.length;it++)if(Z[it].x!==void 0)for(var V=m.call(this,Z[it]),Ot=0;Ot<V.length;Ot+=1)ft.indexOf(V[Ot])===-1&&ft.push(V[Ot]);for(var Mt=0;Mt<ft.length;Mt++)for(;this.pdf.internal.getNumberOfPages()<ft[Mt];)g.call(this);if(w(ft),this.autoPaging)for(var Et=ft[0],Bt=ft[ft.length-1],Ct=Et;Ct<Bt+1;Ct++){this.pdf.setPage(Ct),this.fillStyle=J,this.strokeStyle=ot,this.lineCap=ut,this.lineWidth=It,this.lineJoin=at;var Rt=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Nt=Ct===1?this.posY+this.margin[0]:this.margin[0],Dt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Yt=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],te=Ct===1?0:Dt+(Ct-2)*Yt;if(this.ctx.clip_path.length!==0){var Ae=this.path;z=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=_(z,this.posX+this.margin[3],-te+Nt+this.ctx.prevPageLastElemOffset),F.call(this,M,!0),this.path=Ae}if(H=JSON.parse(JSON.stringify(j)),this.path=_(H,this.posX+this.margin[3],-te+Nt+this.ctx.prevPageLastElemOffset),Y===!1||Ct===0){var oe=(Ct>Et||Ct<Bt)&&v.call(this);oe&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Rt,Yt,null).clip().discardPath()),F.call(this,M,Y),oe&&this.pdf.restoreGraphicsState()}this.lineWidth=X}else this.lineWidth=It,F.call(this,M,Y),this.lineWidth=X;this.path=j},F=function(M,Y){if((M!=="stroke"||Y||!p.call(this))&&(M==="stroke"||Y||!f.call(this))){for(var z,H,J=[],ot=this.path,ut=0;ut<ot.length;ut++){var X=ot[ut];switch(X.type){case"begin":J.push({begin:!0});break;case"close":J.push({close:!0});break;case"mt":J.push({start:X,deltas:[],abs:[]});break;case"lt":var It=J.length;if(ot[ut-1]&&!isNaN(ot[ut-1].x)&&(z=[X.x-ot[ut-1].x,X.y-ot[ut-1].y],It>0)){for(;It>=0;It--)if(J[It-1].close!==!0&&J[It-1].begin!==!0){J[It-1].deltas.push(z),J[It-1].abs.push(X);break}}break;case"bct":z=[X.x1-ot[ut-1].x,X.y1-ot[ut-1].y,X.x2-ot[ut-1].x,X.y2-ot[ut-1].y,X.x-ot[ut-1].x,X.y-ot[ut-1].y],J[J.length-1].deltas.push(z);break;case"qct":var at=ot[ut-1].x+2/3*(X.x1-ot[ut-1].x),j=ot[ut-1].y+2/3*(X.y1-ot[ut-1].y),Z=X.x+2/3*(X.x1-X.x),ft=X.y+2/3*(X.y1-X.y),it=X.x,V=X.y;z=[at-ot[ut-1].x,j-ot[ut-1].y,Z-ot[ut-1].x,ft-ot[ut-1].y,it-ot[ut-1].x,V-ot[ut-1].y],J[J.length-1].deltas.push(z);break;case"arc":J.push({deltas:[],abs:[],arc:!0}),Array.isArray(J[J.length-1].abs)&&J[J.length-1].abs.push(X)}}H=Y?null:M==="stroke"?"stroke":"fill";for(var Ot=!1,Mt=0;Mt<J.length;Mt++)if(J[Mt].arc)for(var Et=J[Mt].abs,Bt=0;Bt<Et.length;Bt++){var Ct=Et[Bt];Ct.type==="arc"?b.call(this,Ct.x,Ct.y,Ct.radius,Ct.startAngle,Ct.endAngle,Ct.counterclockwise,void 0,Y,!Ot):P.call(this,Ct.x,Ct.y),Ot=!0}else if(J[Mt].close===!0)this.pdf.internal.out("h"),Ot=!1;else if(J[Mt].begin!==!0){var Rt=J[Mt].start.x,Nt=J[Mt].start.y;U.call(this,J[Mt].deltas,Rt,Nt),Ot=!0}H&&L.call(this,H),Y&&N.call(this)}},O=function(M){var Y=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,z=Y*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return M-z;case"top":return M+Y-z;case"hanging":return M+Y-2*z;case"middle":return M+Y/2-z;case"ideographic":return M;case"alphabetic":default:return M}},I=function(M){return M+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};c.prototype.createLinearGradient=function(){var M=function(){};return M.colorStops=[],M.addColorStop=function(Y,z){this.colorStops.push([Y,z])},M.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},M.isCanvasGradient=!0,M},c.prototype.createPattern=function(){return this.createLinearGradient()},c.prototype.createRadialGradient=function(){return this.createLinearGradient()};var b=function(M,Y,z,H,J,ot,ut,X,It){for(var at=q.call(this,z,H,J,ot),j=0;j<at.length;j++){var Z=at[j];j===0&&(It?x.call(this,Z.x1+M,Z.y1+Y):P.call(this,Z.x1+M,Z.y1+Y)),tt.call(this,M,Y,Z.x2,Z.y2,Z.x3,Z.y3,Z.x4,Z.y4)}X?N.call(this):L.call(this,ut)},L=function(M){switch(M){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},N=function(){this.pdf.clip(),this.pdf.discardPath()},x=function(M,Y){this.pdf.internal.out(t(M)+" "+n(Y)+" m")},S=function(M){var Y;switch(M.align){case"right":case"end":Y="right";break;case"center":Y="center";break;case"left":case"start":default:Y="left"}var z=this.pdf.getTextDimensions(M.text),H=O.call(this,M.y),J=I.call(this,H)-z.h,ot=this.ctx.transform.applyToPoint(new o(M.x,H)),ut=this.ctx.transform.decompose(),X=new A;X=(X=(X=X.multiply(ut.translate)).multiply(ut.skew)).multiply(ut.scale);for(var It,at,j,Z=this.ctx.transform.applyToRectangle(new s(M.x,H,z.w,z.h)),ft=X.applyToRectangle(new s(M.x,J,z.w,z.h)),it=m.call(this,ft),V=[],Ot=0;Ot<it.length;Ot+=1)V.indexOf(it[Ot])===-1&&V.push(it[Ot]);if(w(V),this.autoPaging)for(var Mt=V[0],Et=V[V.length-1],Bt=Mt;Bt<Et+1;Bt++){this.pdf.setPage(Bt);var Ct=Bt===1?this.posY+this.margin[0]:this.margin[0],Rt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Nt=this.pdf.internal.pageSize.height-this.margin[2],Dt=Nt-this.margin[0],Yt=this.pdf.internal.pageSize.width-this.margin[1],te=Yt-this.margin[3],Ae=Bt===1?0:Rt+(Bt-2)*Dt;if(this.ctx.clip_path.length!==0){var oe=this.path;It=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=_(It,this.posX+this.margin[3],-1*Ae+Ct),F.call(this,"fill",!0),this.path=oe}var Jt=_([JSON.parse(JSON.stringify(ft))],this.posX+this.margin[3],-Ae+Ct+this.ctx.prevPageLastElemOffset)[0];M.scale>=.01&&(at=this.pdf.internal.getFontSize(),this.pdf.setFontSize(at*M.scale),j=this.lineWidth,this.lineWidth=j*M.scale);var fe=this.autoPaging!=="text";if(fe||Jt.y+Jt.h<=Nt){if(fe||Jt.y>=Ct&&Jt.x<=Yt){var qt=fe?M.text:this.pdf.splitTextToSize(M.text,M.maxWidth||Yt-Jt.x)[0],rr=_([JSON.parse(JSON.stringify(Z))],this.posX+this.margin[3],-Ae+Ct+this.ctx.prevPageLastElemOffset)[0],ke=fe&&(Bt>Mt||Bt<Et)&&v.call(this);ke&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],te,Dt,null).clip().discardPath()),this.pdf.text(qt,rr.x,rr.y,{angle:M.angle,align:Y,renderingMode:M.renderingMode}),ke&&this.pdf.restoreGraphicsState()}}else Jt.y<Nt&&(this.ctx.prevPageLastElemOffset+=Nt-Jt.y);M.scale>=.01&&(this.pdf.setFontSize(at),this.lineWidth=j)}else M.scale>=.01&&(at=this.pdf.internal.getFontSize(),this.pdf.setFontSize(at*M.scale),j=this.lineWidth,this.lineWidth=j*M.scale),this.pdf.text(M.text,ot.x+this.posX,ot.y+this.posY,{angle:M.angle,align:Y,renderingMode:M.renderingMode,maxWidth:M.maxWidth}),M.scale>=.01&&(this.pdf.setFontSize(at),this.lineWidth=j)},P=function(M,Y,z,H){z=z||0,H=H||0,this.pdf.internal.out(t(M+z)+" "+n(Y+H)+" l")},U=function(M,Y,z){return this.pdf.lines(M,Y,z,null,null)},tt=function(M,Y,z,H,J,ot,ut,X){this.pdf.internal.out([e(i(z+M)),e(a(H+Y)),e(i(J+M)),e(a(ot+Y)),e(i(ut+M)),e(a(X+Y)),"c"].join(" "))},q=function(M,Y,z,H){for(var J=2*Math.PI,ot=Math.PI/2;Y>z;)Y-=J;var ut=Math.abs(z-Y);ut<J&&H&&(ut=J-ut);for(var X=[],It=H?-1:1,at=Y;ut>1e-5;){var j=at+It*Math.min(ut,ot);X.push(rt.call(this,M,at,j)),ut-=Math.abs(j-at),at=j}return X},rt=function(M,Y,z){var H=(z-Y)/2,J=M*Math.cos(H),ot=M*Math.sin(H),ut=J,X=-ot,It=ut*ut+X*X,at=It+ut*J+X*ot,j=4/3*(Math.sqrt(2*It*at)-at)/(ut*ot-X*J),Z=ut-j*X,ft=X+j*ut,it=Z,V=-ft,Ot=H+Y,Mt=Math.cos(Ot),Et=Math.sin(Ot);return{x1:M*Math.cos(Y),y1:M*Math.sin(Y),x2:Z*Mt-ft*Et,y2:Z*Et+ft*Mt,x3:it*Mt-V*Et,y3:it*Et+V*Mt,x4:M*Math.cos(z),y4:M*Math.sin(z)}},nt=function(M){return 180*M/Math.PI},At=function(M,Y,z,H,J,ot){var ut=M+.5*(z-M),X=Y+.5*(H-Y),It=J+.5*(z-J),at=ot+.5*(H-ot),j=Math.min(M,J,ut,It),Z=Math.max(M,J,ut,It),ft=Math.min(Y,ot,X,at),it=Math.max(Y,ot,X,at);return new s(j,ft,Z-j,it-ft)},ct=function(M,Y,z,H,J,ot,ut,X){var It,at,j,Z,ft,it,V,Ot,Mt,Et,Bt,Ct,Rt,Nt,Dt=z-M,Yt=H-Y,te=J-z,Ae=ot-H,oe=ut-J,Jt=X-ot;for(at=0;at<41;at++)Mt=(V=(j=M+(It=at/40)*Dt)+It*((ft=z+It*te)-j))+It*(ft+It*(J+It*oe-ft)-V),Et=(Ot=(Z=Y+It*Yt)+It*((it=H+It*Ae)-Z))+It*(it+It*(ot+It*Jt-it)-Ot),at==0?(Bt=Mt,Ct=Et,Rt=Mt,Nt=Et):(Bt=Math.min(Bt,Mt),Ct=Math.min(Ct,Et),Rt=Math.max(Rt,Mt),Nt=Math.max(Nt,Et));return new s(Math.round(Bt),Math.round(Ct),Math.round(Rt-Bt),Math.round(Nt-Ct))},bt=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var M,Y,z=(M=this.ctx.lineDash,Y=this.ctx.lineDashOffset,JSON.stringify({lineDash:M,lineDashOffset:Y}));this.prevLineDash!==z&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=z)}}})(Ke.API),function(r){var e=function(a){var o,s,A,l,u,c,h,f,p,v;for(s=[],A=0,l=(a+=o="\0\0\0\0".slice(a.length%4||4)).length;l>A;A+=4)(u=(a.charCodeAt(A)<<24)+(a.charCodeAt(A+1)<<16)+(a.charCodeAt(A+2)<<8)+a.charCodeAt(A+3))!==0?(c=(u=((u=((u=((u=(u-(v=u%85))/85)-(p=u%85))/85)-(f=u%85))/85)-(h=u%85))/85)%85,s.push(c+33,h+33,f+33,p+33,v+33)):s.push(122);return function(m,g){for(var _=g;_>0;_--)m.pop()}(s,o.length),String.fromCharCode.apply(String,s)+"~>"},t=function(a){var o,s,A,l,u,c=String,h="length",f=255,p="charCodeAt",v="slice",m="replace";for(a[v](-2),a=a[v](0,-2)[m](/\s/g,"")[m]("z","!!!!!"),A=[],l=0,u=(a+=o="uuuuu"[v](a[h]%5||5))[h];u>l;l+=5)s=52200625*(a[p](l)-33)+614125*(a[p](l+1)-33)+7225*(a[p](l+2)-33)+85*(a[p](l+3)-33)+(a[p](l+4)-33),A.push(f&s>>24,f&s>>16,f&s>>8,f&s);return function(g,_){for(var w=_;w>0;w--)g.pop()}(A,o[h]),c.fromCharCode.apply(c,A)},n=function(a){var o=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((a=a.replace(/\s/g,"")).indexOf(">")!==-1&&(a=a.substr(0,a.indexOf(">"))),a.length%2&&(a+="0"),o.test(a)===!1)return"";for(var s="",A=0;A<a.length;A+=2)s+=String.fromCharCode("0x"+(a[A]+a[A+1]));return s},i=function(a){for(var o=new Uint8Array(a.length),s=a.length;s--;)o[s]=a.charCodeAt(s);return a=(o=tx(o)).reduce(function(A,l){return A+String.fromCharCode(l)},"")};r.processDataByFilters=function(a,o){var s=0,A=a||"",l=[];for(typeof(o=o||[])=="string"&&(o=[o]),s=0;s<o.length;s+=1)switch(o[s]){case"ASCII85Decode":case"/ASCII85Decode":A=t(A),l.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":A=e(A),l.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":A=n(A),l.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":A=A.split("").map(function(u){return("0"+u.charCodeAt().toString(16)).slice(-2)}).join("")+">",l.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":A=i(A),l.push("/FlateDecode");break;default:throw new Error('The filter: "'+o[s]+'" is not implemented')}return{data:A,reverseChain:l.reverse().join(" ")}}}(Ke.API),function(r){r.loadFile=function(e,t,n){return function(i,a,o){a=a!==!1,o=typeof o=="function"?o:function(){};var s=void 0;try{s=function(A,l,u){var c=new XMLHttpRequest,h=0,f=function(p){var v=p.length,m=[],g=String.fromCharCode;for(h=0;h<v;h+=1)m.push(g(255&p.charCodeAt(h)));return m.join("")};if(c.open("GET",A,!l),c.overrideMimeType("text/plain; charset=x-user-defined"),l===!1&&(c.onload=function(){c.status===200?u(f(this.responseText)):u(void 0)}),c.send(null),l&&c.status===200)return f(c.responseText)}(i,a,o)}catch{}return s}(e,t,n)},r.loadImageFile=r.loadFile}(Ke.API),function(r){function e(){return(ze.html2canvas?Promise.resolve(ze.html2canvas):Promise.resolve().then(function(){return u1t})).catch(function(o){return Promise.reject(new Error("Could not load html2canvas: "+o))}).then(function(o){return o.default?o.default:o})}function t(){return(ze.DOMPurify?Promise.resolve(ze.DOMPurify):Promise.resolve().then(function(){return R1t})).catch(function(o){return Promise.reject(new Error("Could not load dompurify: "+o))}).then(function(o){return o.default?o.default:o})}var n=function(o){var s=gn(o);return s==="undefined"?"undefined":s==="string"||o instanceof String?"string":s==="number"||o instanceof Number?"number":s==="function"||o instanceof Function?"function":o&&o.constructor===Array?"array":o&&o.nodeType===1?"element":s==="object"?"object":"unknown"},i=function(o,s){var A=document.createElement(o);for(var l in s.className&&(A.className=s.className),s.innerHTML&&s.dompurify&&(A.innerHTML=s.dompurify.sanitize(s.innerHTML)),s.style)A.style[l]=s.style[l];return A},a=function o(s){var A=Object.assign(o.convert(Promise.resolve()),JSON.parse(JSON.stringify(o.template))),l=o.convert(Promise.resolve(),A);return l=(l=l.setProgress(1,o,1,[o])).set(s)};(a.prototype=Object.create(Promise.prototype)).constructor=a,a.convert=function(o,s){return o.__proto__=s||a.prototype,o},a.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},a.prototype.from=function(o,s){return this.then(function(){switch(s=s||function(A){switch(n(A)){case"string":return"string";case"element":return A.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(o)){case"string":return this.then(t).then(function(A){return this.set({src:i("div",{innerHTML:o,dompurify:A})})});case"element":return this.set({src:o});case"canvas":return this.set({canvas:o});case"img":return this.set({img:o});default:return this.error("Unknown source type.")}})},a.prototype.to=function(o){switch(o){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},a.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var o={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},s=function A(l,u){for(var c=l.nodeType===3?document.createTextNode(l.nodeValue):l.cloneNode(!1),h=l.firstChild;h;h=h.nextSibling)u!==!0&&h.nodeType===1&&h.nodeName==="SCRIPT"||c.appendChild(A(h,u));return l.nodeType===1&&(l.nodeName==="CANVAS"?(c.width=l.width,c.height=l.height,c.getContext("2d").drawImage(l,0,0)):l.nodeName!=="TEXTAREA"&&l.nodeName!=="SELECT"||(c.value=l.value),c.addEventListener("load",function(){c.scrollTop=l.scrollTop,c.scrollLeft=l.scrollLeft},!0)),c}(this.prop.src,this.opt.html2canvas.javascriptEnabled);s.tagName==="BODY"&&(o.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=i("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=i("div",{className:"html2pdf__container",style:o}),this.prop.container.appendChild(s),this.prop.container.firstChild.appendChild(i("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},a.prototype.toCanvas=function(){var o=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(o).then(e).then(function(s){var A=Object.assign({},this.opt.html2canvas);return delete A.onrendered,s(this.prop.container,A)}).then(function(s){(this.opt.html2canvas.onrendered||function(){})(s),this.prop.canvas=s,document.body.removeChild(this.prop.overlay)})},a.prototype.toContext2d=function(){var o=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(o).then(e).then(function(s){var A=this.opt.jsPDF,l=this.opt.fontFaces,u=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,c=Object.assign({async:!0,allowTaint:!0,scale:u,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete c.onrendered,A.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,A.context2d.posX=this.opt.x,A.context2d.posY=this.opt.y,A.context2d.margin=this.opt.margin,A.context2d.fontFaces=l,l)for(var h=0;h<l.length;++h){var f=l[h],p=f.src.find(function(v){return v.format==="truetype"});p&&A.addFont(p.url,f.ref.name,f.ref.style)}return c.windowHeight=c.windowHeight||0,c.windowHeight=c.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):c.windowHeight,A.context2d.save(!0),s(this.prop.container,c)}).then(function(s){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(s),this.prop.canvas=s,document.body.removeChild(this.prop.overlay)})},a.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var o=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=o})},a.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},a.prototype.output=function(o,s,A){return(A=A||"pdf").toLowerCase()==="img"||A.toLowerCase()==="image"?this.outputImg(o,s):this.outputPdf(o,s)},a.prototype.outputPdf=function(o,s){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(o,s)})},a.prototype.outputImg=function(o){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(o){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+o+'" is not supported.'}})},a.prototype.save=function(o){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(o?{filename:o}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},a.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},a.prototype.set=function(o){if(n(o)!=="object")return this;var s=Object.keys(o||{}).map(function(A){if(A in a.template.prop)return function(){this.prop[A]=o[A]};switch(A){case"margin":return this.setMargin.bind(this,o.margin);case"jsPDF":return function(){return this.opt.jsPDF=o.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,o.pageSize);default:return function(){this.opt[A]=o[A]}}},this);return this.then(function(){return this.thenList(s)})},a.prototype.get=function(o,s){return this.then(function(){var A=o in a.template.prop?this.prop[o]:this.opt[o];return s?s(A):A})},a.prototype.setMargin=function(o){return this.then(function(){switch(n(o)){case"number":o=[o,o,o,o];case"array":if(o.length===2&&(o=[o[0],o[1],o[0],o[1]]),o.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=o}).then(this.setPageSize)},a.prototype.setPageSize=function(o){function s(A,l){return Math.floor(A*l/72*96)}return this.then(function(){(o=o||Ke.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(o.inner={width:o.width-this.opt.margin[1]-this.opt.margin[3],height:o.height-this.opt.margin[0]-this.opt.margin[2]},o.inner.px={width:s(o.inner.width,o.k),height:s(o.inner.height,o.k)},o.inner.ratio=o.inner.height/o.inner.width),this.prop.pageSize=o})},a.prototype.setProgress=function(o,s,A,l){return o!=null&&(this.progress.val=o),s!=null&&(this.progress.state=s),A!=null&&(this.progress.n=A),l!=null&&(this.progress.stack=l),this.progress.ratio=this.progress.val/this.progress.state,this},a.prototype.updateProgress=function(o,s,A,l){return this.setProgress(o?this.progress.val+o:null,s||null,A?this.progress.n+A:null,l?this.progress.stack.concat(l):null)},a.prototype.then=function(o,s){var A=this;return this.thenCore(o,s,function(l,u){return A.updateProgress(null,null,1,[l]),Promise.prototype.then.call(this,function(c){return A.updateProgress(null,l),c}).then(l,u).then(function(c){return A.updateProgress(1),c})})},a.prototype.thenCore=function(o,s,A){A=A||Promise.prototype.then,o&&(o=o.bind(this)),s&&(s=s.bind(this));var l=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?this:a.convert(Object.assign({},this),Promise.prototype),u=A.call(l,o,s);return a.convert(u,this.__proto__)},a.prototype.thenExternal=function(o,s){return Promise.prototype.then.call(this,o,s)},a.prototype.thenList=function(o){var s=this;return o.forEach(function(A){s=s.thenCore(A)}),s},a.prototype.catch=function(o){o&&(o=o.bind(this));var s=Promise.prototype.catch.call(this,o);return a.convert(s,this)},a.prototype.catchExternal=function(o){return Promise.prototype.catch.call(this,o)},a.prototype.error=function(o){return this.then(function(){throw new Error(o)})},a.prototype.using=a.prototype.set,a.prototype.saveAs=a.prototype.save,a.prototype.export=a.prototype.output,a.prototype.run=a.prototype.then,Ke.getPageSize=function(o,s,A){if(gn(o)==="object"){var l=o;o=l.orientation,s=l.unit||s,A=l.format||A}s=s||"mm",A=A||"a4",o=(""+(o||"P")).toLowerCase();var u,c=(""+A).toLowerCase(),h={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(s){case"pt":u=1;break;case"mm":u=72/25.4;break;case"cm":u=72/2.54;break;case"in":u=72;break;case"px":u=.75;break;case"pc":case"em":u=12;break;case"ex":u=6;break;default:throw"Invalid unit: "+s}var f,p=0,v=0;if(h.hasOwnProperty(c))p=h[c][1]/u,v=h[c][0]/u;else try{p=A[1],v=A[0]}catch{throw new Error("Invalid format: "+A)}if(o==="p"||o==="portrait")o="p",v>p&&(f=v,v=p,p=f);else{if(o!=="l"&&o!=="landscape")throw"Invalid orientation: "+o;o="l",p>v&&(f=v,v=p,p=f)}return{width:v,height:p,unit:s,k:u,orientation:o}},r.html=function(o,s){(s=s||{}).callback=s.callback||function(){},s.html2canvas=s.html2canvas||{},s.html2canvas.canvas=s.html2canvas.canvas||this.canvas,s.jsPDF=s.jsPDF||this,s.fontFaces=s.fontFaces?s.fontFaces.map(ox):null;var A=new a(s);return s.worker?A:A.from(o).doCallback()}}(Ke.API),Ke.API.addJS=function(r){return AP=r,this.internal.events.subscribe("postPutResources",function(){u_=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(u_+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),sP=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+AP+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){u_!==void 0&&sP!==void 0&&this.internal.out("/Names <</JavaScript "+u_+" 0 R>>")}),this},function(r){var e;r.events.push(["postPutResources",function(){var t=this,n=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var i=t.outline.render().split(/\r\n/),a=0;a<i.length;a++){var o=i[a],s=n.exec(o);if(s!=null){var A=s[1];t.internal.newObjectDeferredBegin(A,!1)}t.internal.write(o)}if(this.outline.createNamedDestinations){var l=this.internal.pages.length,u=[];for(a=0;a<l;a++){var c=t.internal.newObject();u.push(c);var h=t.internal.getPageInfo(a+1);t.internal.write("<< /D["+h.objId+" 0 R /XYZ null null null]>> endobj")}var f=t.internal.newObject();for(t.internal.write("<< /Names [ "),a=0;a<u.length;a++)t.internal.write("(page_"+(a+1)+")"+u[a]+" 0 R");t.internal.write(" ] >>","endobj"),e=t.internal.newObject(),t.internal.write("<< /Dests "+f+" 0 R"),t.internal.write(">>","endobj")}}]),r.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+e+" 0 R"))}]),r.events.push(["initialized",function(){var t=this;t.outline={createNamedDestinations:!1,root:{children:[]}},t.outline.add=function(n,i,a){var o={title:i,options:a,children:[]};return n==null&&(n=this.root),n.children.push(o),o},t.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=t,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},t.outline.genIds_r=function(n){n.id=t.internal.newObjectDeferred();for(var i=0;i<n.children.length;i++)this.genIds_r(n.children[i])},t.outline.renderRoot=function(n){this.objStart(n),this.line("/Type /Outlines"),n.children.length>0&&(this.line("/First "+this.makeRef(n.children[0])),this.line("/Last "+this.makeRef(n.children[n.children.length-1]))),this.line("/Count "+this.count_r({count:0},n)),this.objEnd()},t.outline.renderItems=function(n){for(var i=this.ctx.pdf.internal.getVerticalCoordinateString,a=0;a<n.children.length;a++){var o=n.children[a];this.objStart(o),this.line("/Title "+this.makeString(o.title)),this.line("/Parent "+this.makeRef(n)),a>0&&this.line("/Prev "+this.makeRef(n.children[a-1])),a<n.children.length-1&&this.line("/Next "+this.makeRef(n.children[a+1])),o.children.length>0&&(this.line("/First "+this.makeRef(o.children[0])),this.line("/Last "+this.makeRef(o.children[o.children.length-1])));var s=this.count=this.count_r({count:0},o);if(s>0&&this.line("/Count "+s),o.options&&o.options.pageNumber){var A=t.internal.getPageInfo(o.options.pageNumber);this.line("/Dest ["+A.objId+" 0 R /XYZ 0 "+i(0)+" 0]")}this.objEnd()}for(var l=0;l<n.children.length;l++)this.renderItems(n.children[l])},t.outline.line=function(n){this.ctx.val+=n+`\r
|
||
`},t.outline.makeRef=function(n){return n.id+" 0 R"},t.outline.makeString=function(n){return"("+t.internal.pdfEscape(n)+")"},t.outline.objStart=function(n){this.ctx.val+=`\r
|
||
`+n.id+` 0 obj\r
|
||
<<\r
|
||
`},t.outline.objEnd=function(){this.ctx.val+=`>> \r
|
||
endobj\r
|
||
`},t.outline.count_r=function(n,i){for(var a=0;a<i.children.length;a++)n.count++,this.count_r(n,i.children[a]);return n.count}}])}(Ke.API),function(r){var e=[192,193,194,195,196,197,198,199];r.processJPEG=function(t,n,i,a,o,s){var A,l=this.decode.DCT_DECODE,u=null;if(typeof t=="string"||this.__addimage__.isArrayBuffer(t)||this.__addimage__.isArrayBufferView(t)){switch(t=o||t,t=this.__addimage__.isArrayBuffer(t)?new Uint8Array(t):t,(A=function(c){for(var h,f=256*c.charCodeAt(4)+c.charCodeAt(5),p=c.length,v={width:0,height:0,numcomponents:1},m=4;m<p;m+=2){if(m+=f,e.indexOf(c.charCodeAt(m+1))!==-1){h=256*c.charCodeAt(m+5)+c.charCodeAt(m+6),v={width:256*c.charCodeAt(m+7)+c.charCodeAt(m+8),height:h,numcomponents:c.charCodeAt(m+9)};break}f=256*c.charCodeAt(m+2)+c.charCodeAt(m+3)}return v}(t=this.__addimage__.isArrayBufferView(t)?this.__addimage__.arrayBufferToBinaryString(t):t)).numcomponents){case 1:s=this.color_spaces.DEVICE_GRAY;break;case 4:s=this.color_spaces.DEVICE_CMYK;break;case 3:s=this.color_spaces.DEVICE_RGB}u={data:t,width:A.width,height:A.height,colorSpace:s,bitsPerComponent:8,filter:l,index:n,alias:i}}return u}}(Ke.API);var Xp,c_,lP,uP,cP,$st=function(){var r,e,t;function n(a){var o,s,A,l,u,c,h,f,p,v,m,g,_,w;for(this.data=a,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},c=null;;){switch(o=this.readUInt32(),p=function(){var C,F;for(F=[],C=0;C<4;++C)F.push(String.fromCharCode(this.data[this.pos++]));return F}.call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(o);break;case"fcTL":c&&this.animation.frames.push(c),this.pos+=4,c={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},u=this.readUInt16(),l=this.readUInt16()||100,c.delay=1e3*u/l,c.disposeOp=this.data[this.pos++],c.blendOp=this.data[this.pos++],c.data=[];break;case"IDAT":case"fdAT":for(p==="fdAT"&&(this.pos+=4,o-=4),a=(c!=null?c.data:void 0)||this.imgData,g=0;0<=o?g<o:g>o;0<=o?++g:--g)a.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(A=this.palette.length/3,this.transparency.indexed=this.read(o),this.transparency.indexed.length>A)throw new Error("More transparent colors than palette size");if((v=A-this.transparency.indexed.length)>0)for(_=0;0<=v?_<v:_>v;0<=v?++_:--_)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(o)[0];break;case 2:this.transparency.rgb=this.read(o)}break;case"tEXt":h=(m=this.read(o)).indexOf(0),f=String.fromCharCode.apply(String,m.slice(0,h)),this.text[f]=String.fromCharCode.apply(String,m.slice(h+1));break;case"IEND":return c&&this.animation.frames.push(c),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=(w=this.colorType)===4||w===6,s=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*s,this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}.call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=o}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}n.prototype.read=function(a){var o,s;for(s=[],o=0;0<=a?o<a:o>a;0<=a?++o:--o)s.push(this.data[this.pos++]);return s},n.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},n.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},n.prototype.decodePixels=function(a){var o=this.pixelBitlength/8,s=new Uint8Array(this.width*this.height*o),A=0,l=this;if(a==null&&(a=this.imgData),a.length===0)return new Uint8Array(0);function u(c,h,f,p){var v,m,g,_,w,C,F,O,I,b,L,N,x,S,P,U,tt,q,rt,nt,At,ct=Math.ceil((l.width-c)/f),bt=Math.ceil((l.height-h)/p),M=l.width==ct&&l.height==bt;for(S=o*ct,N=M?s:new Uint8Array(S*bt),C=a.length,x=0,m=0;x<bt&&A<C;){switch(a[A++]){case 0:for(_=tt=0;tt<S;_=tt+=1)N[m++]=a[A++];break;case 1:for(_=q=0;q<S;_=q+=1)v=a[A++],w=_<o?0:N[m-o],N[m++]=(v+w)%256;break;case 2:for(_=rt=0;rt<S;_=rt+=1)v=a[A++],g=(_-_%o)/o,P=x&&N[(x-1)*S+g*o+_%o],N[m++]=(P+v)%256;break;case 3:for(_=nt=0;nt<S;_=nt+=1)v=a[A++],g=(_-_%o)/o,w=_<o?0:N[m-o],P=x&&N[(x-1)*S+g*o+_%o],N[m++]=(v+Math.floor((w+P)/2))%256;break;case 4:for(_=At=0;At<S;_=At+=1)v=a[A++],g=(_-_%o)/o,w=_<o?0:N[m-o],x===0?P=U=0:(P=N[(x-1)*S+g*o+_%o],U=g&&N[(x-1)*S+(g-1)*o+_%o]),F=w+P-U,O=Math.abs(F-w),b=Math.abs(F-P),L=Math.abs(F-U),I=O<=b&&O<=L?w:b<=L?P:U,N[m++]=(v+I)%256;break;default:throw new Error("Invalid filter algorithm: "+a[A-1])}if(!M){var Y=((h+x*p)*l.width+c)*o,z=x*S;for(_=0;_<ct;_+=1){for(var H=0;H<o;H+=1)s[Y++]=N[z++];Y+=(f-1)*o}}x++}}return a=Cst(a),l.interlaceMethod==1?(u(0,0,8,8),u(4,0,8,8),u(0,4,4,8),u(2,0,4,4),u(0,2,2,4),u(1,0,2,2),u(0,1,1,2)):u(0,0,1,1),s},n.prototype.decodePalette=function(){var a,o,s,A,l,u,c,h,f;for(s=this.palette,u=this.transparency.indexed||[],l=new Uint8Array((u.length||0)+s.length),A=0,a=0,o=c=0,h=s.length;c<h;o=c+=3)l[A++]=s[o],l[A++]=s[o+1],l[A++]=s[o+2],l[A++]=(f=u[a++])!=null?f:255;return l},n.prototype.copyToImageData=function(a,o){var s,A,l,u,c,h,f,p,v,m,g;if(A=this.colors,v=null,s=this.hasAlphaChannel,this.palette.length&&(v=(g=this._decodedPalette)!=null?g:this._decodedPalette=this.decodePalette(),A=4,s=!0),p=(l=a.data||a).length,c=v||o,u=h=0,A===1)for(;u<p;)f=v?4*o[u/4]:h,m=c[f++],l[u++]=m,l[u++]=m,l[u++]=m,l[u++]=s?c[f++]:255,h=f;else for(;u<p;)f=v?4*o[u/4]:h,l[u++]=c[f++],l[u++]=c[f++],l[u++]=c[f++],l[u++]=s?c[f++]:255,h=f},n.prototype.decode=function(){var a;return a=new Uint8Array(this.width*this.height*4),this.copyToImageData(a,this.decodePixels()),a};var i=function(){if(Object.prototype.toString.call(ze)==="[object Window]"){try{e=ze.document.createElement("canvas"),t=e.getContext("2d")}catch{return!1}return!0}return!1};return i(),r=function(a){var o;if(i()===!0)return t.width=a.width,t.height=a.height,t.clearRect(0,0,a.width,a.height),t.putImageData(a,0,0),(o=new Image).src=e.toDataURL(),o;throw new Error("This method requires a Browser with Canvas-capability.")},n.prototype.decodeFrames=function(a){var o,s,A,l,u,c,h,f;if(this.animation){for(f=[],s=u=0,c=(h=this.animation.frames).length;u<c;s=++u)o=h[s],A=a.createImageData(o.width,o.height),l=this.decodePixels(new Uint8Array(o.data)),this.copyToImageData(A,l),o.imageData=A,f.push(o.image=r(A));return f}},n.prototype.renderFrame=function(a,o){var s,A,l;return s=(A=this.animation.frames)[o],l=A[o-1],o===0&&a.clearRect(0,0,this.width,this.height),(l!=null?l.disposeOp:void 0)===1?a.clearRect(l.xOffset,l.yOffset,l.width,l.height):(l!=null?l.disposeOp:void 0)===2&&a.putImageData(l.imageData,l.xOffset,l.yOffset),s.blendOp===0&&a.clearRect(s.xOffset,s.yOffset,s.width,s.height),a.drawImage(s.image,s.xOffset,s.yOffset)},n.prototype.animate=function(a){var o,s,A,l,u,c,h=this;return s=0,c=this.animation,l=c.numFrames,A=c.frames,u=c.numPlays,(o=function(){var f,p;if(f=s++%l,p=A[f],h.renderFrame(a,f),l>1&&s/l<u)return h.animation._timeout=setTimeout(o,p.delay)})()},n.prototype.stopAnimation=function(){var a;return clearTimeout((a=this.animation)!=null?a._timeout:void 0)},n.prototype.render=function(a){var o,s;return a._png&&a._png.stopAnimation(),a._png=this,a.width=this.width,a.height=this.height,o=a.getContext("2d"),this.animation?(this.decodeFrames(o),this.animate(o)):(s=o.createImageData(this.width,this.height),this.copyToImageData(s,this.decodePixels()),o.putImageData(s,0,0))},n}();/**
|
||
* @license
|
||
*
|
||
* Copyright (c) 2014 James Robb, https://github.com/jamesbrobb
|
||
*
|
||
* Permission is hereby granted, free of charge, to any person obtaining
|
||
* a copy of this software and associated documentation files (the
|
||
* "Software"), to deal in the Software without restriction, including
|
||
* without limitation the rights to use, copy, modify, merge, publish,
|
||
* distribute, sublicense, and/or sell copies of the Software, and to
|
||
* permit persons to whom the Software is furnished to do so, subject to
|
||
* the following conditions:
|
||
*
|
||
* The above copyright notice and this permission notice shall be
|
||
* included in all copies or substantial portions of the Software.
|
||
*
|
||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||
* ====================================================================
|
||
*//**
|
||
* @license
|
||
* (c) Dean McNamee <dean@gmail.com>, 2013.
|
||
*
|
||
* https://github.com/deanm/omggif
|
||
*
|
||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||
* of this software and associated documentation files (the "Software"), to
|
||
* deal in the Software without restriction, including without limitation the
|
||
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
||
* sell copies of the Software, and to permit persons to whom the Software is
|
||
* furnished to do so, subject to the following conditions:
|
||
*
|
||
* The above copyright notice and this permission notice shall be included in
|
||
* all copies or substantial portions of the Software.
|
||
*
|
||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||
* IN THE SOFTWARE.
|
||
*
|
||
* omggif is a JavaScript implementation of a GIF 89a encoder and decoder,
|
||
* including animation and compression. It does not rely on any specific
|
||
* underlying system, so should run in the browser, Node, or Plask.
|
||
*/function Vst(r){var e=0;if(r[e++]!==71||r[e++]!==73||r[e++]!==70||r[e++]!==56||(r[e++]+1&253)!=56||r[e++]!==97)throw new Error("Invalid GIF 87a/89a header.");var t=r[e++]|r[e++]<<8,n=r[e++]|r[e++]<<8,i=r[e++],a=i>>7,o=1<<(7&i)+1;r[e++],r[e++];var s=null,A=null;a&&(s=e,A=o,e+=3*o);var l=!0,u=[],c=0,h=null,f=0,p=null;for(this.width=t,this.height=n;l&&e<r.length;)switch(r[e++]){case 33:switch(r[e++]){case 255:if(r[e]!==11||r[e+1]==78&&r[e+2]==69&&r[e+3]==84&&r[e+4]==83&&r[e+5]==67&&r[e+6]==65&&r[e+7]==80&&r[e+8]==69&&r[e+9]==50&&r[e+10]==46&&r[e+11]==48&&r[e+12]==3&&r[e+13]==1&&r[e+16]==0)e+=14,p=r[e++]|r[e++]<<8,e++;else for(e+=12;;){if(!((x=r[e++])>=0))throw Error("Invalid block size");if(x===0)break;e+=x}break;case 249:if(r[e++]!==4||r[e+4]!==0)throw new Error("Invalid graphics extension block.");var v=r[e++];c=r[e++]|r[e++]<<8,h=r[e++],!(1&v)&&(h=null),f=v>>2&7,e++;break;case 254:for(;;){if(!((x=r[e++])>=0))throw Error("Invalid block size");if(x===0)break;e+=x}break;default:throw new Error("Unknown graphic control label: 0x"+r[e-1].toString(16))}break;case 44:var m=r[e++]|r[e++]<<8,g=r[e++]|r[e++]<<8,_=r[e++]|r[e++]<<8,w=r[e++]|r[e++]<<8,C=r[e++],F=C>>6&1,O=1<<(7&C)+1,I=s,b=A,L=!1;C>>7&&(L=!0,I=e,b=O,e+=3*O);var N=e;for(e++;;){var x;if(!((x=r[e++])>=0))throw Error("Invalid block size");if(x===0)break;e+=x}u.push({x:m,y:g,width:_,height:w,has_local_palette:L,palette_offset:I,palette_size:b,data_offset:N,data_length:e-N,transparent_index:h,interlaced:!!F,delay:c,disposal:f});break;case 59:l=!1;break;default:throw new Error("Unknown gif block: 0x"+r[e-1].toString(16))}this.numFrames=function(){return u.length},this.loopCount=function(){return p},this.frameInfo=function(S){if(S<0||S>=u.length)throw new Error("Frame index out of range.");return u[S]},this.decodeAndBlitFrameBGRA=function(S,P){var U=this.frameInfo(S),tt=U.width*U.height,q=new Uint8Array(tt);hP(r,U.data_offset,q,tt);var rt=U.palette_offset,nt=U.transparent_index;nt===null&&(nt=256);var At=U.width,ct=t-At,bt=At,M=4*(U.y*t+U.x),Y=4*((U.y+U.height)*t+U.x),z=M,H=4*ct;U.interlaced===!0&&(H+=4*t*7);for(var J=8,ot=0,ut=q.length;ot<ut;++ot){var X=q[ot];if(bt===0&&(bt=At,(z+=H)>=Y&&(H=4*ct+4*t*(J-1),z=M+(At+ct)*(J<<1),J>>=1)),X===nt)z+=4;else{var It=r[rt+3*X],at=r[rt+3*X+1],j=r[rt+3*X+2];P[z++]=j,P[z++]=at,P[z++]=It,P[z++]=255}--bt}},this.decodeAndBlitFrameRGBA=function(S,P){var U=this.frameInfo(S),tt=U.width*U.height,q=new Uint8Array(tt);hP(r,U.data_offset,q,tt);var rt=U.palette_offset,nt=U.transparent_index;nt===null&&(nt=256);var At=U.width,ct=t-At,bt=At,M=4*(U.y*t+U.x),Y=4*((U.y+U.height)*t+U.x),z=M,H=4*ct;U.interlaced===!0&&(H+=4*t*7);for(var J=8,ot=0,ut=q.length;ot<ut;++ot){var X=q[ot];if(bt===0&&(bt=At,(z+=H)>=Y&&(H=4*ct+4*t*(J-1),z=M+(At+ct)*(J<<1),J>>=1)),X===nt)z+=4;else{var It=r[rt+3*X],at=r[rt+3*X+1],j=r[rt+3*X+2];P[z++]=It,P[z++]=at,P[z++]=j,P[z++]=255}--bt}}}function hP(r,e,t,n){for(var i=r[e++],a=1<<i,o=a+1,s=o+1,A=i+1,l=(1<<A)-1,u=0,c=0,h=0,f=r[e++],p=new Int32Array(4096),v=null;;){for(;u<16&&f!==0;)c|=r[e++]<<u,u+=8,f===1?f=r[e++]:--f;if(u<A)break;var m=c&l;if(c>>=A,u-=A,m!==a){if(m===o)break;for(var g=m<s?m:v,_=0,w=g;w>a;)w=p[w]>>8,++_;var C=w;if(h+_+(g!==m?1:0)>n)return void Cn.log("Warning, gif stream longer than expected.");t[h++]=C;var F=h+=_;for(g!==m&&(t[h++]=C),w=g;_--;)w=p[w],t[--F]=255&w,w>>=8;v!==null&&s<4096&&(p[s++]=v<<8|C,s>=l+1&&A<12&&(++A,l=l<<1|1)),v=m}else s=o+1,l=(1<<(A=i+1))-1,v=null}return h!==n&&Cn.log("Warning, gif stream shorter than expected."),t}/**
|
||
* @license
|
||
Copyright (c) 2008, Adobe Systems Incorporated
|
||
All rights reserved.
|
||
|
||
Redistribution and use in source and binary forms, with or without
|
||
modification, are permitted provided that the following conditions are
|
||
met:
|
||
|
||
* Redistributions of source code must retain the above copyright notice,
|
||
this list of conditions and the following disclaimer.
|
||
|
||
* Redistributions in binary form must reproduce the above copyright
|
||
notice, this list of conditions and the following disclaimer in the
|
||
documentation and/or other materials provided with the distribution.
|
||
|
||
* Neither the name of Adobe Systems Incorporated nor the names of its
|
||
contributors may be used to endorse or promote products derived from
|
||
this software without specific prior written permission.
|
||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
|
||
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
||
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
||
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||
*/function aT(r){var e,t,n,i,a,o=Math.floor,s=new Array(64),A=new Array(64),l=new Array(64),u=new Array(64),c=new Array(65535),h=new Array(65535),f=new Array(64),p=new Array(64),v=[],m=0,g=7,_=new Array(64),w=new Array(64),C=new Array(64),F=new Array(256),O=new Array(2048),I=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],b=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],L=[0,1,2,3,4,5,6,7,8,9,10,11],N=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],x=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],S=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],P=[0,1,2,3,4,5,6,7,8,9,10,11],U=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],tt=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function q(M,Y){for(var z=0,H=0,J=new Array,ot=1;ot<=16;ot++){for(var ut=1;ut<=M[ot];ut++)J[Y[H]]=[],J[Y[H]][0]=z,J[Y[H]][1]=ot,H++,z++;z*=2}return J}function rt(M){for(var Y=M[0],z=M[1]-1;z>=0;)Y&1<<z&&(m|=1<<g),z--,--g<0&&(m==255?(nt(255),nt(0)):nt(m),g=7,m=0)}function nt(M){v.push(M)}function At(M){nt(M>>8&255),nt(255&M)}function ct(M,Y,z,H,J){for(var ot,ut=J[0],X=J[240],It=function(Et,Bt){var Ct,Rt,Nt,Dt,Yt,te,Ae,oe,Jt,fe,qt=0;for(Jt=0;Jt<8;++Jt){Ct=Et[qt],Rt=Et[qt+1],Nt=Et[qt+2],Dt=Et[qt+3],Yt=Et[qt+4],te=Et[qt+5],Ae=Et[qt+6];var rr=Ct+(oe=Et[qt+7]),ke=Ct-oe,_r=Rt+Ae,Ne=Rt-Ae,Pe=Nt+te,kr=Nt-te,se=Dt+Yt,ui=Dt-Yt,dr=rr+se,Jn=rr-se,Kr=_r+Pe,Yr=_r-Pe;Et[qt]=dr+Kr,Et[qt+4]=dr-Kr;var He=.707106781*(Yr+Jn);Et[qt+2]=Jn+He,Et[qt+6]=Jn-He;var xr=.382683433*((dr=ui+kr)-(Yr=Ne+ke)),kn=.5411961*dr+xr,mn=1.306562965*Yr+xr,ci=.707106781*(Kr=kr+Ne),hi=ke+ci,Ue=ke-ci;Et[qt+5]=Ue+kn,Et[qt+3]=Ue-kn,Et[qt+1]=hi+mn,Et[qt+7]=hi-mn,qt+=8}for(qt=0,Jt=0;Jt<8;++Jt){Ct=Et[qt],Rt=Et[qt+8],Nt=Et[qt+16],Dt=Et[qt+24],Yt=Et[qt+32],te=Et[qt+40],Ae=Et[qt+48];var ti=Ct+(oe=Et[qt+56]),En=Ct-oe,fi=Rt+Ae,un=Rt-Ae,Cr=Nt+te,yn=Nt-te,Za=Dt+Yt,pe=Dt-Yt,_t=ti+Za,$t=ti-Za,ne=fi+Cr,Ze=fi-Cr;Et[qt]=_t+ne,Et[qt+32]=_t-ne;var Ir=.707106781*(Ze+$t);Et[qt+16]=$t+Ir,Et[qt+48]=$t-Ir;var cn=.382683433*((_t=pe+yn)-(Ze=un+En)),hn=.5411961*_t+cn,jo=1.306562965*Ze+cn,pi=.707106781*(ne=yn+un),$s=En+pi,TA=En-pi;Et[qt+40]=TA+hn,Et[qt+24]=TA-hn,Et[qt+8]=$s+jo,Et[qt+56]=$s-jo,qt++}for(Jt=0;Jt<64;++Jt)fe=Et[Jt]*Bt[Jt],f[Jt]=fe>0?fe+.5|0:fe-.5|0;return f}(M,Y),at=0;at<64;++at)p[I[at]]=It[at];var j=p[0]-z;z=p[0],j==0?rt(H[0]):(rt(H[h[ot=32767+j]]),rt(c[ot]));for(var Z=63;Z>0&&p[Z]==0;)Z--;if(Z==0)return rt(ut),z;for(var ft,it=1;it<=Z;){for(var V=it;p[it]==0&&it<=Z;)++it;var Ot=it-V;if(Ot>=16){ft=Ot>>4;for(var Mt=1;Mt<=ft;++Mt)rt(X);Ot&=15}ot=32767+p[it],rt(J[(Ot<<4)+h[ot]]),rt(c[ot]),it++}return Z!=63&&rt(ut),z}function bt(M){M=Math.min(Math.max(M,1),100),a!=M&&(function(Y){for(var z=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],H=0;H<64;H++){var J=o((z[H]*Y+50)/100);J=Math.min(Math.max(J,1),255),s[I[H]]=J}for(var ot=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],ut=0;ut<64;ut++){var X=o((ot[ut]*Y+50)/100);X=Math.min(Math.max(X,1),255),A[I[ut]]=X}for(var It=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],at=0,j=0;j<8;j++)for(var Z=0;Z<8;Z++)l[at]=1/(s[I[at]]*It[j]*It[Z]*8),u[at]=1/(A[I[at]]*It[j]*It[Z]*8),at++}(M<50?Math.floor(5e3/M):Math.floor(200-2*M)),a=M)}this.encode=function(M,Y){Y&&bt(Y),v=new Array,m=0,g=7,At(65496),At(65504),At(16),nt(74),nt(70),nt(73),nt(70),nt(0),nt(1),nt(1),nt(0),At(1),At(1),nt(0),nt(0),function(){At(65499),At(132),nt(0);for(var Rt=0;Rt<64;Rt++)nt(s[Rt]);nt(1);for(var Nt=0;Nt<64;Nt++)nt(A[Nt])}(),function(Rt,Nt){At(65472),At(17),nt(8),At(Nt),At(Rt),nt(3),nt(1),nt(17),nt(0),nt(2),nt(17),nt(1),nt(3),nt(17),nt(1)}(M.width,M.height),function(){At(65476),At(418),nt(0);for(var Rt=0;Rt<16;Rt++)nt(b[Rt+1]);for(var Nt=0;Nt<=11;Nt++)nt(L[Nt]);nt(16);for(var Dt=0;Dt<16;Dt++)nt(N[Dt+1]);for(var Yt=0;Yt<=161;Yt++)nt(x[Yt]);nt(1);for(var te=0;te<16;te++)nt(S[te+1]);for(var Ae=0;Ae<=11;Ae++)nt(P[Ae]);nt(17);for(var oe=0;oe<16;oe++)nt(U[oe+1]);for(var Jt=0;Jt<=161;Jt++)nt(tt[Jt])}(),At(65498),At(12),nt(3),nt(1),nt(0),nt(2),nt(17),nt(3),nt(17),nt(0),nt(63),nt(0);var z=0,H=0,J=0;m=0,g=7,this.encode.displayName="_encode_";for(var ot,ut,X,It,at,j,Z,ft,it,V=M.data,Ot=M.width,Mt=M.height,Et=4*Ot,Bt=0;Bt<Mt;){for(ot=0;ot<Et;){for(at=Et*Bt+ot,Z=-1,ft=0,it=0;it<64;it++)j=at+(ft=it>>3)*Et+(Z=4*(7&it)),Bt+ft>=Mt&&(j-=Et*(Bt+1+ft-Mt)),ot+Z>=Et&&(j-=ot+Z-Et+4),ut=V[j++],X=V[j++],It=V[j++],_[it]=(O[ut]+O[X+256>>0]+O[It+512>>0]>>16)-128,w[it]=(O[ut+768>>0]+O[X+1024>>0]+O[It+1280>>0]>>16)-128,C[it]=(O[ut+1280>>0]+O[X+1536>>0]+O[It+1792>>0]>>16)-128;z=ct(_,l,z,e,n),H=ct(w,u,H,t,i),J=ct(C,u,J,t,i),ot+=32}Bt+=8}if(g>=0){var Ct=[];Ct[1]=g+1,Ct[0]=(1<<g+1)-1,rt(Ct)}return At(65497),new Uint8Array(v)},r=r||50,function(){for(var M=String.fromCharCode,Y=0;Y<256;Y++)F[Y]=M(Y)}(),e=q(b,L),t=q(S,P),n=q(N,x),i=q(U,tt),function(){for(var M=1,Y=2,z=1;z<=15;z++){for(var H=M;H<Y;H++)h[32767+H]=z,c[32767+H]=[],c[32767+H][1]=z,c[32767+H][0]=H;for(var J=-(Y-1);J<=-M;J++)h[32767+J]=z,c[32767+J]=[],c[32767+J][1]=z,c[32767+J][0]=Y-1+J;M<<=1,Y<<=1}}(),function(){for(var M=0;M<256;M++)O[M]=19595*M,O[M+256>>0]=38470*M,O[M+512>>0]=7471*M+32768,O[M+768>>0]=-11059*M,O[M+1024>>0]=-21709*M,O[M+1280>>0]=32768*M+8421375,O[M+1536>>0]=-27439*M,O[M+1792>>0]=-5329*M}(),bt(r)}/**
|
||
* @license
|
||
* Copyright (c) 2017 Aras Abbasi
|
||
*
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
*/function rA(r,e){if(this.pos=0,this.buffer=r,this.datav=new DataView(r.buffer),this.is_with_alpha=!!e,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function fP(r){function e(b){if(!b)throw Error("assert :P")}function t(b,L,N){for(var x=0;4>x;x++)if(b[L+x]!=N.charCodeAt(x))return!0;return!1}function n(b,L,N,x,S){for(var P=0;P<S;P++)b[L+P]=N[x+P]}function i(b,L,N,x){for(var S=0;S<x;S++)b[L+S]=N}function a(b){return new Int32Array(b)}function o(b,L){for(var N=[],x=0;x<b;x++)N.push(new L);return N}function s(b,L){var N=[];return function x(S,P,U){for(var tt=U[P],q=0;q<tt&&(S.push(U.length>P+1?[]:new L),!(U.length<P+1));q++)x(S[q],P+1,U)}(N,0,b),N}var A=function(){var b=this;function L(d,y){for(var T=1<<y-1>>>0;d&T;)T>>>=1;return T?(d&T-1)+T:d}function N(d,y,T,R,Q){e(!(R%T));do d[y+(R-=T)]=Q;while(0<R)}function x(d,y,T,R,Q){if(e(2328>=Q),512>=Q)var G=a(512);else if((G=a(Q))==null)return 0;return function($,K,W,et,mt,Lt){var Ft,St,Vt=K,Pt=1<<W,wt=a(16),Tt=a(16);for(e(mt!=0),e(et!=null),e($!=null),e(0<W),St=0;St<mt;++St){if(15<et[St])return 0;++wt[et[St]]}if(wt[0]==mt)return 0;for(Tt[1]=0,Ft=1;15>Ft;++Ft){if(wt[Ft]>1<<Ft)return 0;Tt[Ft+1]=Tt[Ft]+wt[Ft]}for(St=0;St<mt;++St)Ft=et[St],0<et[St]&&(Lt[Tt[Ft]++]=St);if(Tt[15]==1)return(et=new S).g=0,et.value=Lt[0],N($,Vt,1,Pt,et),Pt;var Ht,jt=-1,Gt=Pt-1,de=0,ie=1,Ge=1,le=1<<W;for(St=0,Ft=1,mt=2;Ft<=W;++Ft,mt<<=1){if(ie+=Ge<<=1,0>(Ge-=wt[Ft]))return 0;for(;0<wt[Ft];--wt[Ft])(et=new S).g=Ft,et.value=Lt[St++],N($,Vt+de,mt,le,et),de=L(de,Ft)}for(Ft=W+1,mt=2;15>=Ft;++Ft,mt<<=1){if(ie+=Ge<<=1,0>(Ge-=wt[Ft]))return 0;for(;0<wt[Ft];--wt[Ft]){if(et=new S,(de&Gt)!=jt){for(Vt+=le,Ht=1<<(jt=Ft)-W;15>jt&&!(0>=(Ht-=wt[jt]));)++jt,Ht<<=1;Pt+=le=1<<(Ht=jt-W),$[K+(jt=de&Gt)].g=Ht+W,$[K+jt].value=Vt-K-jt}et.g=Ft-W,et.value=Lt[St++],N($,Vt+(de>>W),mt,le,et),de=L(de,Ft)}}return ie!=2*Tt[15]-1?0:Pt}(d,y,T,R,Q,G)}function S(){this.value=this.g=0}function P(){this.value=this.g=0}function U(){this.G=o(5,S),this.H=a(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=o(ca,P)}function tt(d,y,T,R){e(d!=null),e(y!=null),e(2147483648>R),d.Ca=254,d.I=0,d.b=-8,d.Ka=0,d.oa=y,d.pa=T,d.Jd=y,d.Yc=T+R,d.Zc=4<=R?T+R-4+1:T,ot(d)}function q(d,y){for(var T=0;0<y--;)T|=X(d,128)<<y;return T}function rt(d,y){var T=q(d,y);return ut(d)?-T:T}function nt(d,y,T,R){var Q,G=0;for(e(d!=null),e(y!=null),e(4294967288>R),d.Sb=R,d.Ra=0,d.u=0,d.h=0,4<R&&(R=4),Q=0;Q<R;++Q)G+=y[T+Q]<<8*Q;d.Ra=G,d.bb=R,d.oa=y,d.pa=T}function At(d){for(;8<=d.u&&d.bb<d.Sb;)d.Ra>>>=8,d.Ra+=d.oa[d.pa+d.bb]<<$u-8>>>0,++d.bb,d.u-=8;z(d)&&(d.h=1,d.u=0)}function ct(d,y){if(e(0<=y),!d.h&&y<=Gu){var T=Y(d)&Ll[y];return d.u+=y,At(d),T}return d.h=1,d.u=0}function bt(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function M(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function Y(d){return d.Ra>>>(d.u&$u-1)>>>0}function z(d){return e(d.bb<=d.Sb),d.h||d.bb==d.Sb&&d.u>$u}function H(d,y){d.u=y,d.h=z(d)}function J(d){d.u>=xh&&(e(d.u>=xh),At(d))}function ot(d){e(d!=null&&d.oa!=null),d.pa<d.Zc?(d.I=(d.oa[d.pa++]|d.I<<8)>>>0,d.b+=8):(e(d!=null&&d.oa!=null),d.pa<d.Yc?(d.b+=8,d.I=d.oa[d.pa++]|d.I<<8):d.Ka?d.b=0:(d.I<<=8,d.b+=8,d.Ka=1))}function ut(d){return q(d,1)}function X(d,y){var T=d.Ca;0>d.b&&ot(d);var R=d.b,Q=T*y>>>8,G=(d.I>>>R>Q)+0;for(G?(T-=Q,d.I-=Q+1<<R>>>0):T=Q+1,R=T,Q=0;256<=R;)Q+=8,R>>=8;return R=7^Q+Sa[R],d.b-=R,d.Ca=(T<<R)-1,G}function It(d,y,T){d[y+0]=T>>24&255,d[y+1]=T>>16&255,d[y+2]=T>>8&255,d[y+3]=T>>0&255}function at(d,y){return d[y+0]<<0|d[y+1]<<8}function j(d,y){return at(d,y)|d[y+2]<<16}function Z(d,y){return at(d,y)|at(d,y+2)<<16}function ft(d,y){var T=1<<y;return e(d!=null),e(0<y),d.X=a(T),d.X==null?0:(d.Mb=32-y,d.Xa=y,1)}function it(d,y){e(d!=null),e(y!=null),e(d.Xa==y.Xa),n(y.X,0,d.X,0,1<<y.Xa)}function V(){this.X=[],this.Xa=this.Mb=0}function Ot(d,y,T,R){e(T!=null),e(R!=null);var Q=T[0],G=R[0];return Q==0&&(Q=(d*G+y/2)/y),G==0&&(G=(y*Q+d/2)/d),0>=Q||0>=G?0:(T[0]=Q,R[0]=G,1)}function Mt(d,y){return d+(1<<y)-1>>>y}function Et(d,y){return((4278255360&d)+(4278255360&y)>>>0&4278255360)+((16711935&d)+(16711935&y)>>>0&16711935)>>>0}function Bt(d,y){b[y]=function(T,R,Q,G,$,K,W){var et;for(et=0;et<$;++et){var mt=b[d](K[W+et-1],Q,G+et);K[W+et]=Et(T[R+et],mt)}}}function Ct(){this.ud=this.hd=this.jd=0}function Rt(d,y){return((4278124286&(d^y))>>>1)+(d&y)>>>0}function Nt(d){return 0<=d&&256>d?d:0>d?0:255<d?255:void 0}function Dt(d,y){return Nt(d+(d-y+.5>>1))}function Yt(d,y,T){return Math.abs(y-T)-Math.abs(d-T)}function te(d,y,T,R,Q,G,$){for(R=G[$-1],T=0;T<Q;++T)G[$+T]=R=Et(d[y+T],R)}function Ae(d,y,T,R,Q){var G;for(G=0;G<T;++G){var $=d[y+G],K=$>>8&255,W=16711935&(W=(W=16711935&$)+((K<<16)+K));R[Q+G]=(4278255360&$)+W>>>0}}function oe(d,y){y.jd=d>>0&255,y.hd=d>>8&255,y.ud=d>>16&255}function Jt(d,y,T,R,Q,G){var $;for($=0;$<R;++$){var K=y[T+$],W=K>>>8,et=K,mt=255&(mt=(mt=K>>>16)+((d.jd<<24>>24)*(W<<24>>24)>>>5));et=255&(et=(et=et+((d.hd<<24>>24)*(W<<24>>24)>>>5))+((d.ud<<24>>24)*(mt<<24>>24)>>>5)),Q[G+$]=(4278255360&K)+(mt<<16)+et}}function fe(d,y,T,R,Q){b[y]=function(G,$,K,W,et,mt,Lt,Ft,St){for(W=Lt;W<Ft;++W)for(Lt=0;Lt<St;++Lt)et[mt++]=Q(K[R(G[$++])])},b[d]=function(G,$,K,W,et,mt,Lt){var Ft=8>>G.b,St=G.Ea,Vt=G.K[0],Pt=G.w;if(8>Ft)for(G=(1<<G.b)-1,Pt=(1<<Ft)-1;$<K;++$){var wt,Tt=0;for(wt=0;wt<St;++wt)wt&G||(Tt=R(W[et++])),mt[Lt++]=Q(Vt[Tt&Pt]),Tt>>=Ft}else b["VP8LMapColor"+T](W,et,Vt,Pt,mt,Lt,$,K,St)}}function qt(d,y,T,R,Q){for(T=y+T;y<T;){var G=d[y++];R[Q++]=G>>16&255,R[Q++]=G>>8&255,R[Q++]=G>>0&255}}function rr(d,y,T,R,Q){for(T=y+T;y<T;){var G=d[y++];R[Q++]=G>>16&255,R[Q++]=G>>8&255,R[Q++]=G>>0&255,R[Q++]=G>>24&255}}function ke(d,y,T,R,Q){for(T=y+T;y<T;){var G=($=d[y++])>>16&240|$>>12&15,$=$>>0&240|$>>28&15;R[Q++]=G,R[Q++]=$}}function _r(d,y,T,R,Q){for(T=y+T;y<T;){var G=($=d[y++])>>16&248|$>>13&7,$=$>>5&224|$>>3&31;R[Q++]=G,R[Q++]=$}}function Ne(d,y,T,R,Q){for(T=y+T;y<T;){var G=d[y++];R[Q++]=G>>0&255,R[Q++]=G>>8&255,R[Q++]=G>>16&255}}function Pe(d,y,T,R,Q,G){if(G==0)for(T=y+T;y<T;)It(R,((G=d[y++])[0]>>24|G[1]>>8&65280|G[2]<<8&16711680|G[3]<<24)>>>0),Q+=32;else n(R,Q,d,y,T)}function kr(d,y){b[y][0]=b[d+"0"],b[y][1]=b[d+"1"],b[y][2]=b[d+"2"],b[y][3]=b[d+"3"],b[y][4]=b[d+"4"],b[y][5]=b[d+"5"],b[y][6]=b[d+"6"],b[y][7]=b[d+"7"],b[y][8]=b[d+"8"],b[y][9]=b[d+"9"],b[y][10]=b[d+"10"],b[y][11]=b[d+"11"],b[y][12]=b[d+"12"],b[y][13]=b[d+"13"],b[y][14]=b[d+"0"],b[y][15]=b[d+"0"]}function se(d){return d==Wu||d==fg||d==Mh||d==Hp}function ui(){this.eb=[],this.size=this.A=this.fb=0}function dr(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function Jn(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new ui,this.f.kb=new dr,this.sd=null}function Kr(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function Yr(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function He(d){return alert("todo:WebPSamplerProcessPlane"),d.T}function xr(d,y){var T=d.T,R=y.ba.f.RGBA,Q=R.eb,G=R.fb+d.ka*R.A,$=Bo[y.ba.S],K=d.y,W=d.O,et=d.f,mt=d.N,Lt=d.ea,Ft=d.W,St=y.cc,Vt=y.dc,Pt=y.Mc,wt=y.Nc,Tt=d.ka,Ht=d.ka+d.T,jt=d.U,Gt=jt+1>>1;for(Tt==0?$(K,W,null,null,et,mt,Lt,Ft,et,mt,Lt,Ft,Q,G,null,null,jt):($(y.ec,y.fc,K,W,St,Vt,Pt,wt,et,mt,Lt,Ft,Q,G-R.A,Q,G,jt),++T);Tt+2<Ht;Tt+=2)St=et,Vt=mt,Pt=Lt,wt=Ft,mt+=d.Rc,Ft+=d.Rc,G+=2*R.A,$(K,(W+=2*d.fa)-d.fa,K,W,St,Vt,Pt,wt,et,mt,Lt,Ft,Q,G-R.A,Q,G,jt);return W+=d.fa,d.j+Ht<d.o?(n(y.ec,y.fc,K,W,jt),n(y.cc,y.dc,et,mt,Gt),n(y.Mc,y.Nc,Lt,Ft,Gt),T--):1&Ht||$(K,W,null,null,et,mt,Lt,Ft,et,mt,Lt,Ft,Q,G+R.A,null,null,jt),T}function kn(d,y,T){var R=d.F,Q=[d.J];if(R!=null){var G=d.U,$=y.ba.S,K=$==kp||$==Mh;y=y.ba.f.RGBA;var W=[0],et=d.ka;W[0]=d.T,d.Kb&&(et==0?--W[0]:(--et,Q[0]-=d.width),d.j+d.ka+d.T==d.o&&(W[0]=d.o-d.j-et));var mt=y.eb;et=y.fb+et*y.A,d=Mp(R,Q[0],d.width,G,W,mt,et+(K?0:3),y.A),e(T==W),d&&se($)&&DA(mt,et,K,G,W,y.A)}return 0}function mn(d){var y=d.ma,T=y.ba.S,R=11>T,Q=T==Dp||T==Qp||T==kp||T==Rh||T==12||se(T);if(y.memory=null,y.Ib=null,y.Jb=null,y.Nd=null,!bh(y.Oa,d,Q?11:12))return 0;if(Q&&se(T)&&zt(),d.da)alert("todo:use_scaling");else{if(R){if(y.Ib=He,d.Kb){if(T=d.U+1>>1,y.memory=a(d.U+2*T),y.memory==null)return 0;y.ec=y.memory,y.fc=0,y.cc=y.ec,y.dc=y.fc+d.U,y.Mc=y.cc,y.Nc=y.dc+T,y.Ib=xr,zt()}}else alert("todo:EmitYUV");Q&&(y.Jb=kn,R&&xt())}if(R&&!tB){for(d=0;256>d;++d)eB[d]=89858*(d-128)+Gp>>Js,iB[d]=-22014*(d-128)+Gp,nB[d]=-45773*(d-128),rB[d]=113618*(d-128)+Gp>>Js;for(d=Ml;d<yg;++d)y=76283*(d-16)+Gp>>Js,aB[d-Ml]=Ja(y,255),Uh[d-Ml]=Ja(y+8>>4,15);tB=1}return 1}function ci(d){var y=d.ma,T=d.U,R=d.T;return e(!(1&d.ka)),0>=T||0>=R?0:(T=y.Ib(d,y),y.Jb!=null&&y.Jb(d,y,T),y.Dc+=T,1)}function hi(d){d.ma.memory=null}function Ue(d,y,T,R){return ct(d,8)!=47?0:(y[0]=ct(d,14)+1,T[0]=ct(d,14)+1,R[0]=ct(d,1),ct(d,3)!=0?0:!d.h)}function ti(d,y){if(4>d)return d+1;var T=d-2>>1;return(2+(1&d)<<T)+ct(y,T)+1}function En(d,y){return 120<y?y-120:1<=(T=((T=VC[y-1])>>4)*d+(8-(15&T)))?T:1;var T}function fi(d,y,T){var R=Y(T),Q=d[y+=255&R].g-8;return 0<Q&&(H(T,T.u+8),R=Y(T),y+=d[y].value,y+=R&(1<<Q)-1),H(T,T.u+d[y].g),d[y].value}function un(d,y,T){return T.g+=d.g,T.value+=d.value<<y>>>0,e(8>=T.g),d.g}function Cr(d,y,T){var R=d.xc;return e((y=R==0?0:d.vc[d.md*(T>>R)+(y>>R)])<d.Wb),d.Ya[y]}function yn(d,y,T,R){var Q=d.ab,G=d.c*y,$=d.C;y=$+y;var K=T,W=R;for(R=d.Ta,T=d.Ua;0<Q--;){var et=d.gc[Q],mt=$,Lt=y,Ft=K,St=W,Vt=(W=R,K=T,et.Ea);switch(e(mt<Lt),e(Lt<=et.nc),et.hc){case 2:Lh(Ft,St,(Lt-mt)*Vt,W,K);break;case 0:var Pt=mt,wt=Lt,Tt=W,Ht=K,jt=(le=et).Ea;Pt==0&&(cg(Ft,St,null,null,1,Tt,Ht),te(Ft,St+1,0,0,jt-1,Tt,Ht+1),St+=jt,Ht+=jt,++Pt);for(var Gt=1<<le.b,de=Gt-1,ie=Mt(jt,le.b),Ge=le.K,le=le.w+(Pt>>le.b)*ie;Pt<wt;){var gr=Ge,zr=le,Nr=1;for(Ih(Ft,St,Tt,Ht-jt,1,Tt,Ht);Nr<jt;){var Tr=(Nr&~de)+Gt;Tr>jt&&(Tr=jt),(0,MA[gr[zr++]>>8&15])(Ft,St+ +Nr,Tt,Ht+Nr-jt,Tr-Nr,Tt,Ht+Nr),Nr=Tr}St+=jt,Ht+=jt,++Pt&de||(le+=ie)}Lt!=et.nc&&n(W,K-Vt,W,K+(Lt-mt-1)*Vt,Vt);break;case 1:for(Vt=Ft,wt=St,jt=(Ft=et.Ea)-(Ht=Ft&~(Tt=(St=1<<et.b)-1)),Pt=Mt(Ft,et.b),Gt=et.K,et=et.w+(mt>>et.b)*Pt;mt<Lt;){for(de=Gt,ie=et,Ge=new Ct,le=wt+Ht,gr=wt+Ft;wt<le;)oe(de[ie++],Ge),wo(Ge,Vt,wt,St,W,K),wt+=St,K+=St;wt<gr&&(oe(de[ie++],Ge),wo(Ge,Vt,wt,jt,W,K),wt+=jt,K+=jt),++mt&Tt||(et+=Pt)}break;case 3:if(Ft==W&&St==K&&0<et.b){for(wt=W,Ft=Vt=K+(Lt-mt)*Vt-(Ht=(Lt-mt)*Mt(et.Ea,et.b)),St=W,Tt=K,Pt=[],Ht=(jt=Ht)-1;0<=Ht;--Ht)Pt[Ht]=St[Tt+Ht];for(Ht=jt-1;0<=Ht;--Ht)wt[Ft+Ht]=Pt[Ht];qo(et,mt,Lt,W,Vt,W,K)}else qo(et,mt,Lt,Ft,St,W,K)}K=R,W=T}W!=T&&n(R,T,K,W,G)}function Za(d,y){var T=d.V,R=d.Ba+d.c*d.C,Q=y-d.C;if(e(y<=d.l.o),e(16>=Q),0<Q){var G=d.l,$=d.Ta,K=d.Ua,W=G.width;if(yn(d,Q,T,R),Q=K=[K],e((T=d.C)<(R=y)),e(G.v<G.va),R>G.o&&(R=G.o),T<G.j){var et=G.j-T;T=G.j,Q[0]+=et*W}if(T>=R?T=0:(Q[0]+=4*G.v,G.ka=T-G.j,G.U=G.va-G.v,G.T=R-T,T=1),T){if(K=K[0],11>(T=d.ca).S){var mt=T.f.RGBA,Lt=(R=T.S,Q=G.U,G=G.T,et=mt.eb,mt.A),Ft=G;for(mt=mt.fb+d.Ma*mt.A;0<Ft--;){var St=$,Vt=K,Pt=Q,wt=et,Tt=mt;switch(R){case Up:Zo(St,Vt,Pt,wt,Tt);break;case Dp:NA(St,Vt,Pt,wt,Tt);break;case Wu:NA(St,Vt,Pt,wt,Tt),DA(wt,Tt,0,Pt,1,0);break;case g0:ju(St,Vt,Pt,wt,Tt);break;case Qp:Pe(St,Vt,Pt,wt,Tt,1);break;case fg:Pe(St,Vt,Pt,wt,Tt,1),DA(wt,Tt,0,Pt,1,0);break;case kp:Pe(St,Vt,Pt,wt,Tt,0);break;case Mh:Pe(St,Vt,Pt,wt,Tt,0),DA(wt,Tt,1,Pt,1,0);break;case Rh:Cs(St,Vt,Pt,wt,Tt);break;case Hp:Cs(St,Vt,Pt,wt,Tt),Yu(wt,Tt,Pt,1,0);break;case m0:ha(St,Vt,Pt,wt,Tt);break;default:e(0)}K+=W,mt+=Lt}d.Ma+=G}else alert("todo:EmitRescaledRowsYUVA");e(d.Ma<=T.height)}}d.C=y,e(d.C<=d.i)}function pe(d){var y;if(0<d.ua)return 0;for(y=0;y<d.Wb;++y){var T=d.Ya[y].G,R=d.Ya[y].H;if(0<T[1][R[1]+0].g||0<T[2][R[2]+0].g||0<T[3][R[3]+0].g)return 0}return 1}function _t(d,y,T,R,Q,G){if(d.Z!=0){var $=d.qd,K=d.rd;for(e(es[d.Z]!=null);y<T;++y)es[d.Z]($,K,R,Q,R,Q,G),$=R,K=Q,Q+=G;d.qd=$,d.rd=K}}function $t(d,y){var T=d.l.ma,R=T.Z==0||T.Z==1?d.l.j:d.C;if(R=d.C<R?R:d.C,e(y<=d.l.o),y>R){var Q=d.l.width,G=T.ca,$=T.tb+Q*R,K=d.V,W=d.Ba+d.c*R,et=d.gc;e(d.ab==1),e(et[0].hc==3),Fh(et[0],R,y,K,W,G,$),_t(T,R,y,G,$,Q)}d.C=d.Ma=y}function ne(d,y,T,R,Q,G,$){var K=d.$/R,W=d.$%R,et=d.m,mt=d.s,Lt=T+d.$,Ft=Lt;Q=T+R*Q;var St=T+R*G,Vt=280+mt.ua,Pt=d.Pb?K:16777216,wt=0<mt.ua?mt.Wa:null,Tt=mt.wc,Ht=Lt<St?Cr(mt,W,K):null;e(d.C<G),e(St<=Q);var jt=!1;t:for(;;){for(;jt||Lt<St;){var Gt=0;if(K>=Pt){var de=Lt-T;e((Pt=d).Pb),Pt.wd=Pt.m,Pt.xd=de,0<Pt.s.ua&&it(Pt.s.Wa,Pt.s.vb),Pt=K+KC}if(W&Tt||(Ht=Cr(mt,W,K)),e(Ht!=null),Ht.Qb&&(y[Lt]=Ht.qb,jt=!0),!jt)if(J(et),Ht.jc){Gt=et,de=y;var ie=Lt,Ge=Ht.pd[Y(Gt)&ca-1];e(Ht.jc),256>Ge.g?(H(Gt,Gt.u+Ge.g),de[ie]=Ge.value,Gt=0):(H(Gt,Gt.u+Ge.g-256),e(256<=Ge.value),Gt=Ge.value),Gt==0&&(jt=!0)}else Gt=fi(Ht.G[0],Ht.H[0],et);if(et.h)break;if(jt||256>Gt){if(!jt)if(Ht.nd)y[Lt]=(Ht.qb|Gt<<8)>>>0;else{if(J(et),jt=fi(Ht.G[1],Ht.H[1],et),J(et),de=fi(Ht.G[2],Ht.H[2],et),ie=fi(Ht.G[3],Ht.H[3],et),et.h)break;y[Lt]=(ie<<24|jt<<16|Gt<<8|de)>>>0}if(jt=!1,++Lt,++W>=R&&(W=0,++K,$!=null&&K<=G&&!(K%16)&&$(d,K),wt!=null))for(;Ft<Lt;)Gt=y[Ft++],wt.X[(506832829*Gt&4294967295)>>>wt.Mb]=Gt}else if(280>Gt){if(Gt=ti(Gt-256,et),de=fi(Ht.G[4],Ht.H[4],et),J(et),de=En(R,de=ti(de,et)),et.h)break;if(Lt-T<de||Q-Lt<Gt)break t;for(ie=0;ie<Gt;++ie)y[Lt+ie]=y[Lt+ie-de];for(Lt+=Gt,W+=Gt;W>=R;)W-=R,++K,$!=null&&K<=G&&!(K%16)&&$(d,K);if(e(Lt<=Q),W&Tt&&(Ht=Cr(mt,W,K)),wt!=null)for(;Ft<Lt;)Gt=y[Ft++],wt.X[(506832829*Gt&4294967295)>>>wt.Mb]=Gt}else{if(!(Gt<Vt))break t;for(jt=Gt-280,e(wt!=null);Ft<Lt;)Gt=y[Ft++],wt.X[(506832829*Gt&4294967295)>>>wt.Mb]=Gt;Gt=Lt,e(!(jt>>>(de=wt).Xa)),y[Gt]=de.X[jt],jt=!0}jt||e(et.h==z(et))}if(d.Pb&&et.h&&Lt<Q)e(d.m.h),d.a=5,d.m=d.wd,d.$=d.xd,0<d.s.ua&&it(d.s.vb,d.s.Wa);else{if(et.h)break t;$!=null&&$(d,K>G?G:K),d.a=0,d.$=Lt-T}return 1}return d.a=3,0}function Ze(d){e(d!=null),d.vc=null,d.yc=null,d.Ya=null;var y=d.Wa;y!=null&&(y.X=null),d.vb=null,e(d!=null)}function Ir(){var d=new ug;return d==null?null:(d.a=0,d.xb=w0,kr("Predictor","VP8LPredictors"),kr("Predictor","VP8LPredictors_C"),kr("PredictorAdd","VP8LPredictorsAdd"),kr("PredictorAdd","VP8LPredictorsAdd_C"),Lh=Ae,wo=Jt,Zo=qt,NA=rr,Cs=ke,ha=_r,ju=Ne,b.VP8LMapColor32b=Vu,b.VP8LMapColor8b=hg,d)}function cn(d,y,T,R,Q){var G=1,$=[d],K=[y],W=R.m,et=R.s,mt=null,Lt=0;t:for(;;){if(T)for(;G&&ct(W,1);){var Ft=$,St=K,Vt=R,Pt=1,wt=Vt.m,Tt=Vt.gc[Vt.ab],Ht=ct(wt,2);if(Vt.Oc&1<<Ht)G=0;else{switch(Vt.Oc|=1<<Ht,Tt.hc=Ht,Tt.Ea=Ft[0],Tt.nc=St[0],Tt.K=[null],++Vt.ab,e(4>=Vt.ab),Ht){case 0:case 1:Tt.b=ct(wt,3)+2,Pt=cn(Mt(Tt.Ea,Tt.b),Mt(Tt.nc,Tt.b),0,Vt,Tt.K),Tt.K=Tt.K[0];break;case 3:var jt,Gt=ct(wt,8)+1,de=16<Gt?0:4<Gt?1:2<Gt?2:3;if(Ft[0]=Mt(Tt.Ea,de),Tt.b=de,jt=Pt=cn(Gt,1,0,Vt,Tt.K)){var ie,Ge=Gt,le=Tt,gr=1<<(8>>le.b),zr=a(gr);if(zr==null)jt=0;else{var Nr=le.K[0],Tr=le.w;for(zr[0]=le.K[0][0],ie=1;ie<1*Ge;++ie)zr[ie]=Et(Nr[Tr+ie],zr[ie-1]);for(;ie<4*gr;++ie)zr[ie]=0;le.K[0]=null,le.K[0]=zr,jt=1}}Pt=jt;break;case 2:break;default:e(0)}G=Pt}}if($=$[0],K=K[0],G&&ct(W,1)&&!(G=1<=(Lt=ct(W,4))&&11>=Lt)){R.a=3;break t}var dn;if(dn=G)e:{var nn,ar,ri,Ia=R,ni=$,fa=K,Qr=Lt,ta=T,eo=Ia.m,Li=Ia.s,Vn=[null],La=1,lt=0,B=jC[Qr];r:for(;;){if(ta&&ct(eo,1)){var D=ct(eo,3)+2,ht=Mt(ni,D),Qt=Mt(fa,D),re=ht*Qt;if(!cn(ht,Qt,0,Ia,Vn))break r;for(Vn=Vn[0],Li.xc=D,nn=0;nn<re;++nn){var Zt=Vn[nn]>>8&65535;Vn[nn]=Zt,Zt>=La&&(La=Zt+1)}}if(eo.h)break r;for(ar=0;5>ar;++ar){var Se=y0[ar];!ar&&0<Qr&&(Se+=1<<Qr),lt<Se&&(lt=Se)}var ea=o(La*B,S),Fa=La,jn=o(Fa,U);if(jn==null)var Oa=null;else e(65536>=Fa),Oa=jn;var Ra=a(lt);if(Oa==null||Ra==null||ea==null){Ia.a=1;break r}var kA=ea;for(nn=ri=0;nn<La;++nn){var rs=Oa[nn],ns=rs.G,$p=rs.H,OR=0,S0=1,RR=0;for(ar=0;5>ar;++ar){Se=y0[ar],ns[ar]=kA,$p[ar]=ri,!ar&&0<Qr&&(Se+=1<<Qr);i:{var x0,sB=Se,I0=Ia,Eg=Ra,E9=kA,C9=ri,AB=0,zu=I0.m,B9=ct(zu,1);if(i(Eg,0,0,sB),B9){var T9=ct(zu,1)+1,b9=ct(zu,1),MR=ct(zu,b9==0?1:8);Eg[MR]=1,T9==2&&(Eg[MR=ct(zu,8)]=1);var L0=1}else{var NR=a(19),PR=ct(zu,4)+4;if(19<PR){I0.a=3;var F0=0;break i}for(x0=0;x0<PR;++x0)NR[$C[x0]]=ct(zu,3);var lB=void 0,Cg=void 0,UR=I0,S9=NR,O0=sB,DR=Eg,uB=0,Xu=UR.m,QR=8,kR=o(128,S);n:for(;x(kR,0,7,S9,19);){if(ct(Xu,1)){var x9=2+2*ct(Xu,3);if((lB=2+ct(Xu,x9))>O0)break n}else lB=O0;for(Cg=0;Cg<O0&&lB--;){J(Xu);var HR=kR[0+(127&Y(Xu))];H(Xu,Xu.u+HR.g);var Vp=HR.value;if(16>Vp)DR[Cg++]=Vp,Vp!=0&&(QR=Vp);else{var I9=Vp==16,GR=Vp-16,L9=pg[GR],$R=ct(Xu,Nh[GR])+L9;if(Cg+$R>O0)break n;for(var F9=I9?QR:0;0<$R--;)DR[Cg++]=F9}}uB=1;break n}uB||(UR.a=3),L0=uB}(L0=L0&&!zu.h)&&(AB=x(E9,C9,8,Eg,sB)),L0&&AB!=0?F0=AB:(I0.a=3,F0=0)}if(F0==0)break r;if(S0&&GC[ar]==1&&(S0=kA[ri].g==0),OR+=kA[ri].g,ri+=F0,3>=ar){var Bg,cB=Ra[0];for(Bg=1;Bg<Se;++Bg)Ra[Bg]>cB&&(cB=Ra[Bg]);RR+=cB}}if(rs.nd=S0,rs.Qb=0,S0&&(rs.qb=(ns[3][$p[3]+0].value<<24|ns[1][$p[1]+0].value<<16|ns[2][$p[2]+0].value)>>>0,OR==0&&256>ns[0][$p[0]+0].value&&(rs.Qb=1,rs.qb+=ns[0][$p[0]+0].value<<8)),rs.jc=!rs.Qb&&6>RR,rs.jc){var R0,Pl=rs;for(R0=0;R0<ca;++R0){var qu=R0,Zu=Pl.pd[qu],M0=Pl.G[0][Pl.H[0]+qu];256<=M0.value?(Zu.g=M0.g+256,Zu.value=M0.value):(Zu.g=0,Zu.value=0,qu>>=un(M0,8,Zu),qu>>=un(Pl.G[1][Pl.H[1]+qu],16,Zu),qu>>=un(Pl.G[2][Pl.H[2]+qu],0,Zu),un(Pl.G[3][Pl.H[3]+qu],24,Zu))}}}Li.vc=Vn,Li.Wb=La,Li.Ya=Oa,Li.yc=ea,dn=1;break e}dn=0}if(!(G=dn)){R.a=3;break t}if(0<Lt){if(et.ua=1<<Lt,!ft(et.Wa,Lt)){R.a=1,G=0;break t}}else et.ua=0;var hB=R,VR=$,O9=K,fB=hB.s,pB=fB.xc;if(hB.c=VR,hB.i=O9,fB.md=Mt(VR,pB),fB.wc=pB==0?-1:(1<<pB)-1,T){R.xb=ZC;break t}if((mt=a($*K))==null){R.a=1,G=0;break t}G=(G=ne(R,mt,0,$,K,K,null))&&!W.h;break t}return G?(Q!=null?Q[0]=mt:(e(mt==null),e(T)),R.$=0,T||Ze(et)):Ze(et),G}function hn(d,y){var T=d.c*d.i,R=T+y+16*y;return e(d.c<=y),d.V=a(R),d.V==null?(d.Ta=null,d.Ua=0,d.a=1,0):(d.Ta=d.V,d.Ua=d.Ba+T+y,1)}function jo(d,y){var T=d.C,R=y-T,Q=d.V,G=d.Ba+d.c*T;for(e(y<=d.l.o);0<R;){var $=16<R?16:R,K=d.l.ma,W=d.l.width,et=W*$,mt=K.ca,Lt=K.tb+W*T,Ft=d.Ta,St=d.Ua;yn(d,$,Q,G),bs(Ft,St,mt,Lt,et),_t(K,T,T+$,mt,Lt,W),R-=$,Q+=$*d.c,T+=$}e(T==y),d.C=d.Ma=y}function pi(){this.ub=this.yd=this.td=this.Rb=0}function $s(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function TA(){this.Fb=this.Bb=this.Cb=0,this.Zb=a(4),this.Lb=a(4)}function dh(){this.Yb=function(){var d=[];return function y(T,R,Q){for(var G=Q[R],$=0;$<G&&(T.push(Q.length>R+1?[]:0),!(Q.length<R+1));$++)y(T[$],R+1,Q)}(d,0,[3,11]),d}()}function Wv(){this.jb=a(3),this.Wc=s([4,8],dh),this.Xc=s([4,17],dh)}function pp(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new a(4),this.od=new a(4)}function Vs(){this.ld=this.La=this.dd=this.tc=0}function dp(){this.Na=this.la=0}function zv(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function vh(){this.ad=a(384),this.Za=0,this.Ob=a(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function Xv(){this.uc=this.M=this.Nb=0,this.wa=Array(new Vs),this.Y=0,this.ya=Array(new vh),this.aa=0,this.l=new Tl}function vp(){this.y=a(16),this.f=a(8),this.ea=a(8)}function gp(){this.cb=this.a=0,this.sc="",this.m=new bt,this.Od=new pi,this.Kc=new $s,this.ed=new pp,this.Qa=new TA,this.Ic=this.$c=this.Aa=0,this.D=new Xv,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=o(8,bt),this.ia=0,this.pb=o(4,zv),this.Pa=new Wv,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new vp),this.Hd=0,this.rb=Array(new dp),this.sb=0,this.wa=Array(new Vs),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new vh),this.L=this.aa=0,this.gd=s([4,2],Vs),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function Tl(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function qv(){var d=new gp;return d!=null&&(d.a=0,d.sc="OK",d.cb=0,d.Xb=0,Ph||(Ph=_p)),d}function Hn(d,y,T){return d.a==0&&(d.a=y,d.sc=T,d.cb=0),0}function mp(d,y,T){return 3<=T&&d[y+0]==157&&d[y+1]==1&&d[y+2]==42}function yp(d,y){if(d==null)return 0;if(d.a=0,d.sc="OK",y==null)return Hn(d,2,"null VP8Io passed to VP8GetHeaders()");var T=y.data,R=y.w,Q=y.ha;if(4>Q)return Hn(d,7,"Truncated header.");var G=T[R+0]|T[R+1]<<8|T[R+2]<<16,$=d.Od;if($.Rb=!(1&G),$.td=G>>1&7,$.yd=G>>4&1,$.ub=G>>5,3<$.td)return Hn(d,3,"Incorrect keyframe parameters.");if(!$.yd)return Hn(d,4,"Frame not displayable.");R+=3,Q-=3;var K=d.Kc;if($.Rb){if(7>Q)return Hn(d,7,"cannot parse picture header");if(!mp(T,R,Q))return Hn(d,3,"Bad code word");K.c=16383&(T[R+4]<<8|T[R+3]),K.Td=T[R+4]>>6,K.i=16383&(T[R+6]<<8|T[R+5]),K.Ud=T[R+6]>>6,R+=7,Q-=7,d.za=K.c+15>>4,d.Ub=K.i+15>>4,y.width=K.c,y.height=K.i,y.Da=0,y.j=0,y.v=0,y.va=y.width,y.o=y.height,y.da=0,y.ib=y.width,y.hb=y.height,y.U=y.width,y.T=y.height,i((G=d.Pa).jb,0,255,G.jb.length),e((G=d.Qa)!=null),G.Cb=0,G.Bb=0,G.Fb=1,i(G.Zb,0,0,G.Zb.length),i(G.Lb,0,0,G.Lb)}if($.ub>Q)return Hn(d,7,"bad partition length");tt(G=d.m,T,R,$.ub),R+=$.ub,Q-=$.ub,$.Rb&&(K.Ld=ut(G),K.Kd=ut(G)),K=d.Qa;var W,et=d.Pa;if(e(G!=null),e(K!=null),K.Cb=ut(G),K.Cb){if(K.Bb=ut(G),ut(G)){for(K.Fb=ut(G),W=0;4>W;++W)K.Zb[W]=ut(G)?rt(G,7):0;for(W=0;4>W;++W)K.Lb[W]=ut(G)?rt(G,6):0}if(K.Bb)for(W=0;3>W;++W)et.jb[W]=ut(G)?q(G,8):255}else K.Bb=0;if(G.Ka)return Hn(d,3,"cannot parse segment header");if((K=d.ed).zd=ut(G),K.Tb=q(G,6),K.wb=q(G,3),K.Pc=ut(G),K.Pc&&ut(G)){for(et=0;4>et;++et)ut(G)&&(K.vd[et]=rt(G,6));for(et=0;4>et;++et)ut(G)&&(K.od[et]=rt(G,6))}if(d.L=K.Tb==0?0:K.zd?1:2,G.Ka)return Hn(d,3,"cannot parse filter header");var mt=Q;if(Q=W=R,R=W+mt,K=mt,d.Xb=(1<<q(d.m,2))-1,mt<3*(et=d.Xb))T=7;else{for(W+=3*et,K-=3*et,mt=0;mt<et;++mt){var Lt=T[Q+0]|T[Q+1]<<8|T[Q+2]<<16;Lt>K&&(Lt=K),tt(d.Jc[+mt],T,W,Lt),W+=Lt,K-=Lt,Q+=3}tt(d.Jc[+et],T,W,K),T=W<R?0:5}if(T!=0)return Hn(d,T,"cannot parse partitions");for(T=q(W=d.m,7),Q=ut(W)?rt(W,4):0,R=ut(W)?rt(W,4):0,K=ut(W)?rt(W,4):0,et=ut(W)?rt(W,4):0,W=ut(W)?rt(W,4):0,mt=d.Qa,Lt=0;4>Lt;++Lt){if(mt.Cb){var Ft=mt.Zb[Lt];mt.Fb||(Ft+=T)}else{if(0<Lt){d.pb[Lt]=d.pb[0];continue}Ft=T}var St=d.pb[Lt];St.Sc[0]=dg[Ja(Ft+Q,127)],St.Sc[1]=vg[Ja(Ft+0,127)],St.Eb[0]=2*dg[Ja(Ft+R,127)],St.Eb[1]=101581*vg[Ja(Ft+K,127)]>>16,8>St.Eb[1]&&(St.Eb[1]=8),St.Qc[0]=dg[Ja(Ft+et,117)],St.Qc[1]=vg[Ja(Ft+W,127)],St.lc=Ft+W}if(!$.Rb)return Hn(d,4,"Not a key frame.");for(ut(G),$=d.Pa,T=0;4>T;++T){for(Q=0;8>Q;++Q)for(R=0;3>R;++R)for(K=0;11>K;++K)et=X(G,qC[T][Q][R][K])?q(G,8):zC[T][Q][R][K],$.Wc[T][Q].Yb[R][K]=et;for(Q=0;17>Q;++Q)$.Xc[T][Q]=$.Wc[T][Rl[Q]]}return d.kc=ut(G),d.kc&&(d.Bd=q(G,8)),d.cb=1}function _p(d,y,T,R,Q,G,$){var K=y[Q].Yb[T];for(T=0;16>Q;++Q){if(!X(d,K[T+0]))return Q;for(;!X(d,K[T+1]);)if(K=y[++Q].Yb[0],T=0,Q==16)return 16;var W=y[Q+1].Yb;if(X(d,K[T+2])){var et=d,mt=0;if(X(et,(Ft=K)[(Lt=T)+3]))if(X(et,Ft[Lt+6])){for(K=0,Lt=2*(mt=X(et,Ft[Lt+8]))+(Ft=X(et,Ft[Lt+9+mt])),mt=0,Ft=YC[Lt];Ft[K];++K)mt+=mt+X(et,Ft[K]);mt+=3+(8<<Lt)}else X(et,Ft[Lt+7])?(mt=7+2*X(et,165),mt+=X(et,145)):mt=5+X(et,159);else mt=X(et,Ft[Lt+4])?3+X(et,Ft[Lt+5]):2;K=W[2]}else mt=1,K=W[1];W=$+WC[Q],0>(et=d).b&&ot(et);var Lt,Ft=et.b,St=(Lt=et.Ca>>1)-(et.I>>Ft)>>31;--et.b,et.Ca+=St,et.Ca|=1,et.I-=(Lt+1&St)<<Ft,G[W]=((mt^St)-St)*R[(0<Q)+0]}return 16}function gh(d){var y=d.rb[d.sb-1];y.la=0,y.Na=0,i(d.zc,0,0,d.zc.length),d.ja=0}function Zv(d,y){if(d==null)return 0;if(y==null)return Hn(d,2,"NULL VP8Io parameter in VP8Decode().");if(!d.cb&&!yp(d,y))return 0;if(e(d.cb),y.ac==null||y.ac(y)){y.ob&&(d.L=0);var T=wg[d.L];if(d.L==2?(d.yb=0,d.zb=0):(d.yb=y.v-T>>4,d.zb=y.j-T>>4,0>d.yb&&(d.yb=0),0>d.zb&&(d.zb=0)),d.Va=y.o+15+T>>4,d.Hb=y.va+15+T>>4,d.Hb>d.za&&(d.Hb=d.za),d.Va>d.Ub&&(d.Va=d.Ub),0<d.L){var R=d.ed;for(T=0;4>T;++T){var Q;if(d.Qa.Cb){var G=d.Qa.Lb[T];d.Qa.Fb||(G+=R.Tb)}else G=R.Tb;for(Q=0;1>=Q;++Q){var $=d.gd[T][Q],K=G;if(R.Pc&&(K+=R.vd[0],Q&&(K+=R.od[0])),0<(K=0>K?0:63<K?63:K)){var W=K;0<R.wb&&(W=4<R.wb?W>>2:W>>1)>9-R.wb&&(W=9-R.wb),1>W&&(W=1),$.dd=W,$.tc=2*K+W,$.ld=40<=K?2:15<=K?1:0}else $.tc=0;$.La=Q}}}T=0}else Hn(d,6,"Frame setup failed"),T=d.a;if(T=T==0){if(T){d.$c=0,0<d.Aa||(d.Ic=oB);t:{T=d.Ic,R=4*(W=d.za);var et=32*W,mt=W+1,Lt=0<d.L?W*(0<d.Aa?2:1):0,Ft=(d.Aa==2?2:1)*W;if(($=R+832+(Q=3*(16*T+wg[d.L])/2*et)+(G=d.Fa!=null&&0<d.Fa.length?d.Kc.c*d.Kc.i:0))!=$)T=0;else{if($>d.Vb){if(d.Vb=0,d.Ec=a($),d.Fc=0,d.Ec==null){T=Hn(d,1,"no memory during frame initialization.");break t}d.Vb=$}$=d.Ec,K=d.Fc,d.Ac=$,d.Bc=K,K+=R,d.Gd=o(et,vp),d.Hd=0,d.rb=o(mt+1,dp),d.sb=1,d.wa=Lt?o(Lt,Vs):null,d.Y=0,d.D.Nb=0,d.D.wa=d.wa,d.D.Y=d.Y,0<d.Aa&&(d.D.Y+=W),e(!0),d.oc=$,d.pc=K,K+=832,d.ya=o(Ft,vh),d.aa=0,d.D.ya=d.ya,d.D.aa=d.aa,d.Aa==2&&(d.D.aa+=W),d.R=16*W,d.B=8*W,W=(et=wg[d.L])*d.R,et=et/2*d.B,d.sa=$,d.ta=K+W,d.qa=d.sa,d.ra=d.ta+16*T*d.R+et,d.Ha=d.qa,d.Ia=d.ra+8*T*d.B+et,d.$c=0,K+=Q,d.mb=G?$:null,d.nb=G?K:null,e(K+G<=d.Fc+d.Vb),gh(d),i(d.Ac,d.Bc,0,R),T=1}}if(T){if(y.ka=0,y.y=d.sa,y.O=d.ta,y.f=d.qa,y.N=d.ra,y.ea=d.Ha,y.Vd=d.Ia,y.fa=d.R,y.Rc=d.B,y.F=null,y.J=0,!v0){for(T=-255;255>=T;++T)h0[255+T]=0>T?-T:T;for(T=-1020;1020>=T;++T)f0[1020+T]=-128>T?-128:127<T?127:T;for(T=-112;112>=T;++T)p0[112+T]=-16>T?-16:15<T?15:T;for(T=-255;510>=T;++T)d0[255+T]=0>T?0:255<T?255:T;v0=1}Bs=eg,xa=Jv,PA=Ep,Jo=tg,Ts=Cp,Ku=bA,UA=OA,Fl=Il,Ol=lg,zs=Eh,Oh=Ag,Eo=Pu,Xs=Ch,fn=Lp,pn=Ip,$n=Ys,vi=FA,qs=sg,ts[0]=Wo,ts[1]=yh,ts[2]=ng,ts[3]=xA,ts[4]=ig,ts[5]=IA,ts[6]=ws,ts[7]=_h,ts[8]=ag,ts[9]=Tp,QA[0]=Bp,QA[1]=Fu,QA[2]=js,QA[3]=Ou,QA[4]=Zi,QA[5]=rg,QA[6]=Mu,Zs[0]=LA,Zs[1]=SA,Zs[2]=bp,Zs[3]=wh,Zs[4]=Sl,Zs[5]=og,Zs[6]=Nu,T=1}else T=0}T&&(T=function(St,Vt){for(St.M=0;St.M<St.Va;++St.M){var Pt,wt=St.Jc[St.M&St.Xb],Tt=St.m,Ht=St;for(Pt=0;Pt<Ht.za;++Pt){var jt=Tt,Gt=Ht,de=Gt.Ac,ie=Gt.Bc+4*Pt,Ge=Gt.zc,le=Gt.ya[Gt.aa+Pt];if(Gt.Qa.Bb?le.$b=X(jt,Gt.Pa.jb[0])?2+X(jt,Gt.Pa.jb[2]):X(jt,Gt.Pa.jb[1]):le.$b=0,Gt.kc&&(le.Ad=X(jt,Gt.Bd)),le.Za=!X(jt,145)+0,le.Za){var gr=le.Ob,zr=0;for(Gt=0;4>Gt;++Gt){var Nr,Tr=Ge[0+Gt];for(Nr=0;4>Nr;++Nr){Tr=XC[de[ie+Nr]][Tr];for(var dn=_0[X(jt,Tr[0])];0<dn;)dn=_0[2*dn+X(jt,Tr[dn])];Tr=-dn,de[ie+Nr]=Tr}n(gr,zr,de,ie,4),zr+=4,Ge[0+Gt]=Tr}}else Tr=X(jt,156)?X(jt,128)?1:3:X(jt,163)?2:0,le.Ob[0]=Tr,i(de,ie,Tr,4),i(Ge,0,Tr,4);le.Dd=X(jt,142)?X(jt,114)?X(jt,183)?1:3:2:0}if(Ht.m.Ka)return Hn(St,7,"Premature end-of-partition0 encountered.");for(;St.ja<St.za;++St.ja){if(Ht=wt,jt=(Tt=St).rb[Tt.sb-1],de=Tt.rb[Tt.sb+Tt.ja],Pt=Tt.ya[Tt.aa+Tt.ja],ie=Tt.kc?Pt.Ad:0)jt.la=de.la=0,Pt.Za||(jt.Na=de.Na=0),Pt.Hc=0,Pt.Gc=0,Pt.ia=0;else{var nn,ar;if(jt=de,de=Ht,ie=Tt.Pa.Xc,Ge=Tt.ya[Tt.aa+Tt.ja],le=Tt.pb[Ge.$b],Gt=Ge.ad,gr=0,zr=Tt.rb[Tt.sb-1],Tr=Nr=0,i(Gt,gr,0,384),Ge.Za)var ri=0,Ia=ie[3];else{dn=a(16);var ni=jt.Na+zr.Na;if(ni=Ph(de,ie[1],ni,le.Eb,0,dn,0),jt.Na=zr.Na=(0<ni)+0,1<ni)Bs(dn,0,Gt,gr);else{var fa=dn[0]+3>>3;for(dn=0;256>dn;dn+=16)Gt[gr+dn]=fa}ri=1,Ia=ie[0]}var Qr=15&jt.la,ta=15&zr.la;for(dn=0;4>dn;++dn){var eo=1&ta;for(fa=ar=0;4>fa;++fa)Qr=Qr>>1|(eo=(ni=Ph(de,Ia,ni=eo+(1&Qr),le.Sc,ri,Gt,gr))>ri)<<7,ar=ar<<2|(3<ni?3:1<ni?2:Gt[gr+0]!=0),gr+=16;Qr>>=4,ta=ta>>1|eo<<7,Nr=(Nr<<8|ar)>>>0}for(Ia=Qr,ri=ta>>4,nn=0;4>nn;nn+=2){for(ar=0,Qr=jt.la>>4+nn,ta=zr.la>>4+nn,dn=0;2>dn;++dn){for(eo=1&ta,fa=0;2>fa;++fa)ni=eo+(1&Qr),Qr=Qr>>1|(eo=0<(ni=Ph(de,ie[2],ni,le.Qc,0,Gt,gr)))<<3,ar=ar<<2|(3<ni?3:1<ni?2:Gt[gr+0]!=0),gr+=16;Qr>>=2,ta=ta>>1|eo<<5}Tr|=ar<<4*nn,Ia|=Qr<<4<<nn,ri|=(240&ta)<<nn}jt.la=Ia,zr.la=ri,Ge.Hc=Nr,Ge.Gc=Tr,Ge.ia=43690&Tr?0:le.ia,ie=!(Nr|Tr)}if(0<Tt.L&&(Tt.wa[Tt.Y+Tt.ja]=Tt.gd[Pt.$b][Pt.Za],Tt.wa[Tt.Y+Tt.ja].La|=!ie),Ht.Ka)return Hn(St,7,"Premature end-of-file encountered.")}if(gh(St),Tt=Vt,Ht=1,Pt=(wt=St).D,jt=0<wt.L&&wt.M>=wt.zb&&wt.M<=wt.Va,wt.Aa==0)t:{if(Pt.M=wt.M,Pt.uc=jt,ua(wt,Pt),Ht=1,Pt=(ar=wt.D).Nb,jt=(Tr=wg[wt.L])*wt.R,de=Tr/2*wt.B,dn=16*Pt*wt.R,fa=8*Pt*wt.B,ie=wt.sa,Ge=wt.ta-jt+dn,le=wt.qa,Gt=wt.ra-de+fa,gr=wt.Ha,zr=wt.Ia-de+fa,ta=(Qr=ar.M)==0,Nr=Qr>=wt.Va-1,wt.Aa==2&&ua(wt,ar),ar.uc)for(eo=(ni=wt).D.M,e(ni.D.uc),ar=ni.yb;ar<ni.Hb;++ar){ri=ar,Ia=eo;var Li=(Vn=(Se=ni).D).Nb;nn=Se.R;var Vn=Vn.wa[Vn.Y+ri],La=Se.sa,lt=Se.ta+16*Li*nn+16*ri,B=Vn.dd,D=Vn.tc;if(D!=0)if(e(3<=D),Se.L==1)0<ri&&$n(La,lt,nn,D+4),Vn.La&&qs(La,lt,nn,D),0<Ia&&pn(La,lt,nn,D+4),Vn.La&&vi(La,lt,nn,D);else{var ht=Se.B,Qt=Se.qa,re=Se.ra+8*Li*ht+8*ri,Zt=Se.Ha,Se=Se.Ia+8*Li*ht+8*ri;Li=Vn.ld,0<ri&&(Fl(La,lt,nn,D+4,B,Li),zs(Qt,re,Zt,Se,ht,D+4,B,Li)),Vn.La&&(Eo(La,lt,nn,D,B,Li),fn(Qt,re,Zt,Se,ht,D,B,Li)),0<Ia&&(UA(La,lt,nn,D+4,B,Li),Ol(Qt,re,Zt,Se,ht,D+4,B,Li)),Vn.La&&(Oh(La,lt,nn,D,B,Li),Xs(Qt,re,Zt,Se,ht,D,B,Li))}}if(wt.ia&&alert("todo:DitherRow"),Tt.put!=null){if(ar=16*Qr,Qr=16*(Qr+1),ta?(Tt.y=wt.sa,Tt.O=wt.ta+dn,Tt.f=wt.qa,Tt.N=wt.ra+fa,Tt.ea=wt.Ha,Tt.W=wt.Ia+fa):(ar-=Tr,Tt.y=ie,Tt.O=Ge,Tt.f=le,Tt.N=Gt,Tt.ea=gr,Tt.W=zr),Nr||(Qr-=Tr),Qr>Tt.o&&(Qr=Tt.o),Tt.F=null,Tt.J=null,wt.Fa!=null&&0<wt.Fa.length&&ar<Qr&&(Tt.J=RA(wt,Tt,ar,Qr-ar),Tt.F=wt.mb,Tt.F==null&&Tt.F.length==0)){Ht=Hn(wt,3,"Could not decode alpha data.");break t}ar<Tt.j&&(Tr=Tt.j-ar,ar=Tt.j,e(!(1&Tr)),Tt.O+=wt.R*Tr,Tt.N+=wt.B*(Tr>>1),Tt.W+=wt.B*(Tr>>1),Tt.F!=null&&(Tt.J+=Tt.width*Tr)),ar<Qr&&(Tt.O+=Tt.v,Tt.N+=Tt.v>>1,Tt.W+=Tt.v>>1,Tt.F!=null&&(Tt.J+=Tt.v),Tt.ka=ar-Tt.j,Tt.U=Tt.va-Tt.v,Tt.T=Qr-ar,Ht=Tt.put(Tt))}Pt+1!=wt.Ic||Nr||(n(wt.sa,wt.ta-jt,ie,Ge+16*wt.R,jt),n(wt.qa,wt.ra-de,le,Gt+8*wt.B,de),n(wt.Ha,wt.Ia-de,gr,zr+8*wt.B,de))}if(!Ht)return Hn(St,6,"Output aborted.")}return 1}(d,y)),y.bc!=null&&y.bc(y),T&=1}return T?(d.cb=0,T):0}function Ko(d,y,T,R,Q){Q=d[y+T+32*R]+(Q>>3),d[y+T+32*R]=-256&Q?0>Q?0:255:Q}function Yo(d,y,T,R,Q,G){Ko(d,y,0,T,R+Q),Ko(d,y,1,T,R+G),Ko(d,y,2,T,R-G),Ko(d,y,3,T,R-Q)}function Ta(d){return(20091*d>>16)+d}function wp(d,y,T,R){var Q,G=0,$=a(16);for(Q=0;4>Q;++Q){var K=d[y+0]+d[y+8],W=d[y+0]-d[y+8],et=(35468*d[y+4]>>16)-Ta(d[y+12]),mt=Ta(d[y+4])+(35468*d[y+12]>>16);$[G+0]=K+mt,$[G+1]=W+et,$[G+2]=W-et,$[G+3]=K-mt,G+=4,y++}for(Q=G=0;4>Q;++Q)K=(d=$[G+0]+4)+$[G+8],W=d-$[G+8],et=(35468*$[G+4]>>16)-Ta($[G+12]),Ko(T,R,0,0,K+(mt=Ta($[G+4])+(35468*$[G+12]>>16))),Ko(T,R,1,0,W+et),Ko(T,R,2,0,W-et),Ko(T,R,3,0,K-mt),G++,R+=32}function bA(d,y,T,R){var Q=d[y+0]+4,G=35468*d[y+4]>>16,$=Ta(d[y+4]),K=35468*d[y+1]>>16;Yo(T,R,0,Q+$,d=Ta(d[y+1]),K),Yo(T,R,1,Q+G,d,K),Yo(T,R,2,Q-G,d,K),Yo(T,R,3,Q-$,d,K)}function Jv(d,y,T,R,Q){wp(d,y,T,R),Q&&wp(d,y+16,T,R+4)}function Ep(d,y,T,R){xa(d,y+0,T,R,1),xa(d,y+32,T,R+128,1)}function tg(d,y,T,R){var Q;for(d=d[y+0]+4,Q=0;4>Q;++Q)for(y=0;4>y;++y)Ko(T,R,y,Q,d)}function Cp(d,y,T,R){d[y+0]&&Jo(d,y+0,T,R),d[y+16]&&Jo(d,y+16,T,R+4),d[y+32]&&Jo(d,y+32,T,R+128),d[y+48]&&Jo(d,y+48,T,R+128+4)}function eg(d,y,T,R){var Q,G=a(16);for(Q=0;4>Q;++Q){var $=d[y+0+Q]+d[y+12+Q],K=d[y+4+Q]+d[y+8+Q],W=d[y+4+Q]-d[y+8+Q],et=d[y+0+Q]-d[y+12+Q];G[0+Q]=$+K,G[8+Q]=$-K,G[4+Q]=et+W,G[12+Q]=et-W}for(Q=0;4>Q;++Q)$=(d=G[0+4*Q]+3)+G[3+4*Q],K=G[1+4*Q]+G[2+4*Q],W=G[1+4*Q]-G[2+4*Q],et=d-G[3+4*Q],T[R+0]=$+K>>3,T[R+16]=et+W>>3,T[R+32]=$-K>>3,T[R+48]=et-W>>3,R+=64}function mh(d,y,T){var R,Q=y-32,G=to,$=255-d[Q-1];for(R=0;R<T;++R){var K,W=G,et=$+d[y-1];for(K=0;K<T;++K)d[y+K]=W[et+d[Q+K]];y+=32}}function yh(d,y){mh(d,y,4)}function SA(d,y){mh(d,y,8)}function Fu(d,y){mh(d,y,16)}function js(d,y){var T;for(T=0;16>T;++T)n(d,y+32*T,d,y-32,16)}function Ou(d,y){var T;for(T=16;0<T;--T)i(d,y,d[y-1],16),y+=32}function Ru(d,y,T){var R;for(R=0;16>R;++R)i(y,T+32*R,d,16)}function Bp(d,y){var T,R=16;for(T=0;16>T;++T)R+=d[y-1+32*T]+d[y+T-32];Ru(R>>5,d,y)}function Zi(d,y){var T,R=8;for(T=0;16>T;++T)R+=d[y-1+32*T];Ru(R>>4,d,y)}function rg(d,y){var T,R=8;for(T=0;16>T;++T)R+=d[y+T-32];Ru(R>>4,d,y)}function Mu(d,y){Ru(128,d,y)}function tr(d,y,T){return d+2*y+T+2>>2}function ng(d,y){var T,R=y-32;for(R=new Uint8Array([tr(d[R-1],d[R+0],d[R+1]),tr(d[R+0],d[R+1],d[R+2]),tr(d[R+1],d[R+2],d[R+3]),tr(d[R+2],d[R+3],d[R+4])]),T=0;4>T;++T)n(d,y+32*T,R,0,R.length)}function xA(d,y){var T=d[y-1],R=d[y-1+32],Q=d[y-1+64],G=d[y-1+96];It(d,y+0,16843009*tr(d[y-1-32],T,R)),It(d,y+32,16843009*tr(T,R,Q)),It(d,y+64,16843009*tr(R,Q,G)),It(d,y+96,16843009*tr(Q,G,G))}function Wo(d,y){var T,R=4;for(T=0;4>T;++T)R+=d[y+T-32]+d[y-1+32*T];for(R>>=3,T=0;4>T;++T)i(d,y+32*T,R,4)}function ig(d,y){var T=d[y-1+0],R=d[y-1+32],Q=d[y-1+64],G=d[y-1-32],$=d[y+0-32],K=d[y+1-32],W=d[y+2-32],et=d[y+3-32];d[y+0+96]=tr(R,Q,d[y-1+96]),d[y+1+96]=d[y+0+64]=tr(T,R,Q),d[y+2+96]=d[y+1+64]=d[y+0+32]=tr(G,T,R),d[y+3+96]=d[y+2+64]=d[y+1+32]=d[y+0+0]=tr($,G,T),d[y+3+64]=d[y+2+32]=d[y+1+0]=tr(K,$,G),d[y+3+32]=d[y+2+0]=tr(W,K,$),d[y+3+0]=tr(et,W,K)}function ws(d,y){var T=d[y+1-32],R=d[y+2-32],Q=d[y+3-32],G=d[y+4-32],$=d[y+5-32],K=d[y+6-32],W=d[y+7-32];d[y+0+0]=tr(d[y+0-32],T,R),d[y+1+0]=d[y+0+32]=tr(T,R,Q),d[y+2+0]=d[y+1+32]=d[y+0+64]=tr(R,Q,G),d[y+3+0]=d[y+2+32]=d[y+1+64]=d[y+0+96]=tr(Q,G,$),d[y+3+32]=d[y+2+64]=d[y+1+96]=tr(G,$,K),d[y+3+64]=d[y+2+96]=tr($,K,W),d[y+3+96]=tr(K,W,W)}function IA(d,y){var T=d[y-1+0],R=d[y-1+32],Q=d[y-1+64],G=d[y-1-32],$=d[y+0-32],K=d[y+1-32],W=d[y+2-32],et=d[y+3-32];d[y+0+0]=d[y+1+64]=G+$+1>>1,d[y+1+0]=d[y+2+64]=$+K+1>>1,d[y+2+0]=d[y+3+64]=K+W+1>>1,d[y+3+0]=W+et+1>>1,d[y+0+96]=tr(Q,R,T),d[y+0+64]=tr(R,T,G),d[y+0+32]=d[y+1+96]=tr(T,G,$),d[y+1+32]=d[y+2+96]=tr(G,$,K),d[y+2+32]=d[y+3+96]=tr($,K,W),d[y+3+32]=tr(K,W,et)}function _h(d,y){var T=d[y+0-32],R=d[y+1-32],Q=d[y+2-32],G=d[y+3-32],$=d[y+4-32],K=d[y+5-32],W=d[y+6-32],et=d[y+7-32];d[y+0+0]=T+R+1>>1,d[y+1+0]=d[y+0+64]=R+Q+1>>1,d[y+2+0]=d[y+1+64]=Q+G+1>>1,d[y+3+0]=d[y+2+64]=G+$+1>>1,d[y+0+32]=tr(T,R,Q),d[y+1+32]=d[y+0+96]=tr(R,Q,G),d[y+2+32]=d[y+1+96]=tr(Q,G,$),d[y+3+32]=d[y+2+96]=tr(G,$,K),d[y+3+64]=tr($,K,W),d[y+3+96]=tr(K,W,et)}function Tp(d,y){var T=d[y-1+0],R=d[y-1+32],Q=d[y-1+64],G=d[y-1+96];d[y+0+0]=T+R+1>>1,d[y+2+0]=d[y+0+32]=R+Q+1>>1,d[y+2+32]=d[y+0+64]=Q+G+1>>1,d[y+1+0]=tr(T,R,Q),d[y+3+0]=d[y+1+32]=tr(R,Q,G),d[y+3+32]=d[y+1+64]=tr(Q,G,G),d[y+3+64]=d[y+2+64]=d[y+0+96]=d[y+1+96]=d[y+2+96]=d[y+3+96]=G}function ag(d,y){var T=d[y-1+0],R=d[y-1+32],Q=d[y-1+64],G=d[y-1+96],$=d[y-1-32],K=d[y+0-32],W=d[y+1-32],et=d[y+2-32];d[y+0+0]=d[y+2+32]=T+$+1>>1,d[y+0+32]=d[y+2+64]=R+T+1>>1,d[y+0+64]=d[y+2+96]=Q+R+1>>1,d[y+0+96]=G+Q+1>>1,d[y+3+0]=tr(K,W,et),d[y+2+0]=tr($,K,W),d[y+1+0]=d[y+3+32]=tr(T,$,K),d[y+1+32]=d[y+3+64]=tr(R,T,$),d[y+1+64]=d[y+3+96]=tr(Q,R,T),d[y+1+96]=tr(G,Q,R)}function bp(d,y){var T;for(T=0;8>T;++T)n(d,y+32*T,d,y-32,8)}function wh(d,y){var T;for(T=0;8>T;++T)i(d,y,d[y-1],8),y+=32}function bl(d,y,T){var R;for(R=0;8>R;++R)i(y,T+32*R,d,8)}function LA(d,y){var T,R=8;for(T=0;8>T;++T)R+=d[y+T-32]+d[y-1+32*T];bl(R>>4,d,y)}function og(d,y){var T,R=4;for(T=0;8>T;++T)R+=d[y+T-32];bl(R>>3,d,y)}function Sl(d,y){var T,R=4;for(T=0;8>T;++T)R+=d[y-1+32*T];bl(R>>3,d,y)}function Nu(d,y){bl(128,d,y)}function xl(d,y,T){var R=d[y-T],Q=d[y+0],G=3*(Q-R)+Np[1020+d[y-2*T]-d[y+T]],$=Pp[112+(G+4>>3)];d[y-T]=to[255+R+Pp[112+(G+3>>3)]],d[y+0]=to[255+Q-$]}function Sp(d,y,T,R){var Q=d[y+0],G=d[y+T];return Co[255+d[y-2*T]-d[y-T]]>R||Co[255+G-Q]>R}function Ks(d,y,T,R){return 4*Co[255+d[y-T]-d[y+0]]+Co[255+d[y-2*T]-d[y+T]]<=R}function xp(d,y,T,R,Q){var G=d[y-3*T],$=d[y-2*T],K=d[y-T],W=d[y+0],et=d[y+T],mt=d[y+2*T],Lt=d[y+3*T];return 4*Co[255+K-W]+Co[255+$-et]>R?0:Co[255+d[y-4*T]-G]<=Q&&Co[255+G-$]<=Q&&Co[255+$-K]<=Q&&Co[255+Lt-mt]<=Q&&Co[255+mt-et]<=Q&&Co[255+et-W]<=Q}function Ip(d,y,T,R){var Q=2*R+1;for(R=0;16>R;++R)Ks(d,y+R,T,Q)&&xl(d,y+R,T)}function Ys(d,y,T,R){var Q=2*R+1;for(R=0;16>R;++R)Ks(d,y+R*T,1,Q)&&xl(d,y+R*T,1)}function FA(d,y,T,R){var Q;for(Q=3;0<Q;--Q)Ip(d,y+=4*T,T,R)}function sg(d,y,T,R){var Q;for(Q=3;0<Q;--Q)Ys(d,y+=4,T,R)}function ba(d,y,T,R,Q,G,$,K){for(G=2*G+1;0<Q--;){if(xp(d,y,T,G,$))if(Sp(d,y,T,K))xl(d,y,T);else{var W=d,et=y,mt=T,Lt=W[et-2*mt],Ft=W[et-mt],St=W[et+0],Vt=W[et+mt],Pt=W[et+2*mt],wt=27*(Ht=Np[1020+3*(St-Ft)+Np[1020+Lt-Vt]])+63>>7,Tt=18*Ht+63>>7,Ht=9*Ht+63>>7;W[et-3*mt]=to[255+W[et-3*mt]+Ht],W[et-2*mt]=to[255+Lt+Tt],W[et-mt]=to[255+Ft+wt],W[et+0]=to[255+St-wt],W[et+mt]=to[255+Vt-Tt],W[et+2*mt]=to[255+Pt-Ht]}y+=R}}function zo(d,y,T,R,Q,G,$,K){for(G=2*G+1;0<Q--;){if(xp(d,y,T,G,$))if(Sp(d,y,T,K))xl(d,y,T);else{var W=d,et=y,mt=T,Lt=W[et-mt],Ft=W[et+0],St=W[et+mt],Vt=Pp[112+((Pt=3*(Ft-Lt))+4>>3)],Pt=Pp[112+(Pt+3>>3)],wt=Vt+1>>1;W[et-2*mt]=to[255+W[et-2*mt]+wt],W[et-mt]=to[255+Lt+Pt],W[et+0]=to[255+Ft-Vt],W[et+mt]=to[255+St-wt]}y+=R}}function OA(d,y,T,R,Q,G){ba(d,y,T,1,16,R,Q,G)}function Il(d,y,T,R,Q,G){ba(d,y,1,T,16,R,Q,G)}function Ag(d,y,T,R,Q,G){var $;for($=3;0<$;--$)zo(d,y+=4*T,T,1,16,R,Q,G)}function Pu(d,y,T,R,Q,G){var $;for($=3;0<$;--$)zo(d,y+=4,1,T,16,R,Q,G)}function lg(d,y,T,R,Q,G,$,K){ba(d,y,Q,1,8,G,$,K),ba(T,R,Q,1,8,G,$,K)}function Eh(d,y,T,R,Q,G,$,K){ba(d,y,1,Q,8,G,$,K),ba(T,R,1,Q,8,G,$,K)}function Ch(d,y,T,R,Q,G,$,K){zo(d,y+4*Q,Q,1,8,G,$,K),zo(T,R+4*Q,Q,1,8,G,$,K)}function Lp(d,y,T,R,Q,G,$,K){zo(d,y+4,1,Q,8,G,$,K),zo(T,R+4,1,Q,8,G,$,K)}function Uu(){this.ba=new Jn,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new Yr,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function Bh(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function Th(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function Fp(){this.ua=0,this.Wa=new V,this.vb=new V,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new U,this.yc=new S}function ug(){this.xb=this.a=0,this.l=new Tl,this.ca=new Jn,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new M,this.Pb=0,this.wd=new M,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new Fp,this.ab=0,this.gc=o(4,Th),this.Oc=0}function Du(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Tl,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function Qi(d,y,T,R,Q,G,$){for(d=d==null?0:d[y+0],y=0;y<$;++y)Q[G+y]=d+T[R+y]&255,d=Q[G+y]}function Qu(d,y,T,R,Q,G,$){var K;if(d==null)Qi(null,null,T,R,Q,G,$);else for(K=0;K<$;++K)Q[G+K]=d[y+K]+T[R+K]&255}function Ws(d,y,T,R,Q,G,$){if(d==null)Qi(null,null,T,R,Q,G,$);else{var K,W=d[y+0],et=W,mt=W;for(K=0;K<$;++K)et=mt+(W=d[y+K])-et,mt=T[R+K]+(-256&et?0>et?0:255:et)&255,et=W,Q[G+K]=mt}}function RA(d,y,T,R){var Q=y.width,G=y.o;if(e(d!=null&&y!=null),0>T||0>=R||T+R>G)return null;if(!d.Cc){if(d.ga==null){var $;if(d.ga=new Du,($=d.ga==null)||($=y.width*y.o,e(d.Gb.length==0),d.Gb=a($),d.Uc=0,d.Gb==null?$=0:(d.mb=d.Gb,d.nb=d.Uc,d.rc=null,$=1),$=!$),!$){$=d.ga;var K=d.Fa,W=d.P,et=d.qc,mt=d.mb,Lt=d.nb,Ft=W+1,St=et-1,Vt=$.l;if(e(K!=null&&mt!=null&&y!=null),es[0]=null,es[1]=Qi,es[2]=Qu,es[3]=Ws,$.ca=mt,$.tb=Lt,$.c=y.width,$.i=y.height,e(0<$.c&&0<$.i),1>=et)y=0;else if($.$a=K[W+0]>>0&3,$.Z=K[W+0]>>2&3,$.Lc=K[W+0]>>4&3,W=K[W+0]>>6&3,0>$.$a||1<$.$a||4<=$.Z||1<$.Lc||W)y=0;else if(Vt.put=ci,Vt.ac=mn,Vt.bc=hi,Vt.ma=$,Vt.width=y.width,Vt.height=y.height,Vt.Da=y.Da,Vt.v=y.v,Vt.va=y.va,Vt.j=y.j,Vt.o=y.o,$.$a)t:{e($.$a==1),y=Ir();e:for(;;){if(y==null){y=0;break t}if(e($!=null),$.mc=y,y.c=$.c,y.i=$.i,y.l=$.l,y.l.ma=$,y.l.width=$.c,y.l.height=$.i,y.a=0,nt(y.m,K,Ft,St),!cn($.c,$.i,1,y,null)||(y.ab==1&&y.gc[0].hc==3&&pe(y.s)?($.ic=1,K=y.c*y.i,y.Ta=null,y.Ua=0,y.V=a(K),y.Ba=0,y.V==null?(y.a=1,y=0):y=1):($.ic=0,y=hn(y,$.c)),!y))break e;y=1;break t}$.mc=null,y=0}else y=St>=$.c*$.i;$=!y}if($)return null;d.ga.Lc!=1?d.Ga=0:R=G-T}e(d.ga!=null),e(T+R<=G);t:{if(y=(K=d.ga).c,G=K.l.o,K.$a==0){if(Ft=d.rc,St=d.Vc,Vt=d.Fa,W=d.P+1+T*y,et=d.mb,mt=d.nb+T*y,e(W<=d.P+d.qc),K.Z!=0)for(e(es[K.Z]!=null),$=0;$<R;++$)es[K.Z](Ft,St,Vt,W,et,mt,y),Ft=et,St=mt,mt+=y,W+=y;else for($=0;$<R;++$)n(et,mt,Vt,W,y),Ft=et,St=mt,mt+=y,W+=y;d.rc=Ft,d.Vc=St}else{if(e(K.mc!=null),y=T+R,e(($=K.mc)!=null),e(y<=$.i),$.C>=y)y=1;else if(K.ic||xt(),K.ic){K=$.V,Ft=$.Ba,St=$.c;var Pt=$.i,wt=(Vt=1,W=$.$/St,et=$.$%St,mt=$.m,Lt=$.s,$.$),Tt=St*Pt,Ht=St*y,jt=Lt.wc,Gt=wt<Ht?Cr(Lt,et,W):null;e(wt<=Tt),e(y<=Pt),e(pe(Lt));e:for(;;){for(;!mt.h&&wt<Ht;){if(et&jt||(Gt=Cr(Lt,et,W)),e(Gt!=null),J(mt),256>(Pt=fi(Gt.G[0],Gt.H[0],mt)))K[Ft+wt]=Pt,++wt,++et>=St&&(et=0,++W<=y&&!(W%16)&&$t($,W));else{if(!(280>Pt)){Vt=0;break e}Pt=ti(Pt-256,mt);var de,ie=fi(Gt.G[4],Gt.H[4],mt);if(J(mt),!(wt>=(ie=En(St,ie=ti(ie,mt)))&&Tt-wt>=Pt)){Vt=0;break e}for(de=0;de<Pt;++de)K[Ft+wt+de]=K[Ft+wt+de-ie];for(wt+=Pt,et+=Pt;et>=St;)et-=St,++W<=y&&!(W%16)&&$t($,W);wt<Ht&&et&jt&&(Gt=Cr(Lt,et,W))}e(mt.h==z(mt))}$t($,W>y?y:W);break e}!Vt||mt.h&&wt<Tt?(Vt=0,$.a=mt.h?5:3):$.$=wt,y=Vt}else y=ne($,$.V,$.Ba,$.c,$.i,y,jo);if(!y){R=0;break t}}T+R>=G&&(d.Cc=1),R=1}if(!R)return null;if(d.Cc&&((R=d.ga)!=null&&(R.mc=null),d.ga=null,0<d.Ga))return alert("todo:WebPDequantizeLevels"),null}return d.nb+T*Q}function E(d,y,T,R,Q,G){for(;0<Q--;){var $,K=d,W=y+(T?1:0),et=d,mt=y+(T?0:3);for($=0;$<R;++$){var Lt=et[mt+4*$];Lt!=255&&(Lt*=32897,K[W+4*$+0]=K[W+4*$+0]*Lt>>23,K[W+4*$+1]=K[W+4*$+1]*Lt>>23,K[W+4*$+2]=K[W+4*$+2]*Lt>>23)}y+=G}}function k(d,y,T,R,Q){for(;0<R--;){var G;for(G=0;G<T;++G){var $=d[y+2*G+0],K=15&(et=d[y+2*G+1]),W=4369*K,et=(240&et|et>>4)*W>>16;d[y+2*G+0]=(240&$|$>>4)*W>>16&240|(15&$|$<<4)*W>>16>>4&15,d[y+2*G+1]=240&et|K}y+=Q}}function st(d,y,T,R,Q,G,$,K){var W,et,mt=255;for(et=0;et<Q;++et){for(W=0;W<R;++W){var Lt=d[y+W];G[$+4*W]=Lt,mt&=Lt}y+=T,$+=K}return mt!=255}function vt(d,y,T,R,Q){var G;for(G=0;G<Q;++G)T[R+G]=d[y+G]>>8}function xt(){DA=E,Yu=k,Mp=st,bs=vt}function Ut(d,y,T){b[d]=function(R,Q,G,$,K,W,et,mt,Lt,Ft,St,Vt,Pt,wt,Tt,Ht,jt){var Gt,de=jt-1>>1,ie=K[W+0]|et[mt+0]<<16,Ge=Lt[Ft+0]|St[Vt+0]<<16;e(R!=null);var le=3*ie+Ge+131074>>2;for(y(R[Q+0],255&le,le>>16,Pt,wt),G!=null&&(le=3*Ge+ie+131074>>2,y(G[$+0],255&le,le>>16,Tt,Ht)),Gt=1;Gt<=de;++Gt){var gr=K[W+Gt]|et[mt+Gt]<<16,zr=Lt[Ft+Gt]|St[Vt+Gt]<<16,Nr=ie+gr+Ge+zr+524296,Tr=Nr+2*(gr+Ge)>>3;le=Tr+ie>>1,ie=(Nr=Nr+2*(ie+zr)>>3)+gr>>1,y(R[Q+2*Gt-1],255&le,le>>16,Pt,wt+(2*Gt-1)*T),y(R[Q+2*Gt-0],255&ie,ie>>16,Pt,wt+(2*Gt-0)*T),G!=null&&(le=Nr+Ge>>1,ie=Tr+zr>>1,y(G[$+2*Gt-1],255&le,le>>16,Tt,Ht+(2*Gt-1)*T),y(G[$+2*Gt+0],255&ie,ie>>16,Tt,Ht+(2*Gt+0)*T)),ie=gr,Ge=zr}1&jt||(le=3*ie+Ge+131074>>2,y(R[Q+jt-1],255&le,le>>16,Pt,wt+(jt-1)*T),G!=null&&(le=3*Ge+ie+131074>>2,y(G[$+jt-1],255&le,le>>16,Tt,Ht+(jt-1)*T)))}}function zt(){Bo[Up]=LR,Bo[Dp]=E0,Bo[g0]=gg,Bo[Qp]=C0,Bo[kp]=mg,Bo[Rh]=B0,Bo[m0]=JC,Bo[Wu]=E0,Bo[fg]=C0,Bo[Mh]=mg,Bo[Hp]=B0}function ce(d){return d&~FR?0>d?0:255:d>>_g}function De(d,y){return ce((19077*d>>8)+(26149*y>>8)-14234)}function vr(d,y,T){return ce((19077*d>>8)-(6419*y>>8)-(13320*T>>8)+8708)}function nr(d,y){return ce((19077*d>>8)+(33050*y>>8)-17685)}function Br(d,y,T,R,Q){R[Q+0]=De(d,T),R[Q+1]=vr(d,y,T),R[Q+2]=nr(d,y)}function ki(d,y,T,R,Q){R[Q+0]=nr(d,y),R[Q+1]=vr(d,y,T),R[Q+2]=De(d,T)}function Gn(d,y,T,R,Q){var G=vr(d,y,T);y=G<<3&224|nr(d,y)>>3,R[Q+0]=248&De(d,T)|G>>5,R[Q+1]=y}function ei(d,y,T,R,Q){var G=240&nr(d,y)|15;R[Q+0]=240&De(d,T)|vr(d,y,T)>>4,R[Q+1]=G}function Ji(d,y,T,R,Q){R[Q+0]=255,Br(d,y,T,R,Q+1)}function di(d,y,T,R,Q){ki(d,y,T,R,Q),R[Q+3]=255}function Xo(d,y,T,R,Q){Br(d,y,T,R,Q),R[Q+3]=255}function Ja(d,y){return 0>d?0:d>y?y:d}function Es(d,y,T){b[d]=function(R,Q,G,$,K,W,et,mt,Lt){for(var Ft=mt+(-2&Lt)*T;mt!=Ft;)y(R[Q+0],G[$+0],K[W+0],et,mt),y(R[Q+1],G[$+0],K[W+0],et,mt+T),Q+=2,++$,++W,mt+=2*T;1&Lt&&y(R[Q+0],G[$+0],K[W+0],et,mt)}}function Op(d,y,T){return T==0?d==0?y==0?6:5:y==0?4:0:T}function Rp(d,y,T,R,Q){switch(d>>>30){case 3:xa(y,T,R,Q,0);break;case 2:Ku(y,T,R,Q);break;case 1:Jo(y,T,R,Q)}}function ua(d,y){var T,R,Q=y.M,G=y.Nb,$=d.oc,K=d.pc+40,W=d.oc,et=d.pc+584,mt=d.oc,Lt=d.pc+600;for(T=0;16>T;++T)$[K+32*T-1]=129;for(T=0;8>T;++T)W[et+32*T-1]=129,mt[Lt+32*T-1]=129;for(0<Q?$[K-1-32]=W[et-1-32]=mt[Lt-1-32]=129:(i($,K-32-1,127,21),i(W,et-32-1,127,9),i(mt,Lt-32-1,127,9)),R=0;R<d.za;++R){var Ft=y.ya[y.aa+R];if(0<R){for(T=-1;16>T;++T)n($,K+32*T-4,$,K+32*T+12,4);for(T=-1;8>T;++T)n(W,et+32*T-4,W,et+32*T+4,4),n(mt,Lt+32*T-4,mt,Lt+32*T+4,4)}var St=d.Gd,Vt=d.Hd+R,Pt=Ft.ad,wt=Ft.Hc;if(0<Q&&(n($,K-32,St[Vt].y,0,16),n(W,et-32,St[Vt].f,0,8),n(mt,Lt-32,St[Vt].ea,0,8)),Ft.Za){var Tt=$,Ht=K-32+16;for(0<Q&&(R>=d.za-1?i(Tt,Ht,St[Vt].y[15],4):n(Tt,Ht,St[Vt+1].y,0,4)),T=0;4>T;T++)Tt[Ht+128+T]=Tt[Ht+256+T]=Tt[Ht+384+T]=Tt[Ht+0+T];for(T=0;16>T;++T,wt<<=2)Tt=$,Ht=K+T0[T],ts[Ft.Ob[T]](Tt,Ht),Rp(wt,Pt,16*+T,Tt,Ht)}else if(Tt=Op(R,Q,Ft.Ob[0]),QA[Tt]($,K),wt!=0)for(T=0;16>T;++T,wt<<=2)Rp(wt,Pt,16*+T,$,K+T0[T]);for(T=Ft.Gc,Tt=Op(R,Q,Ft.Dd),Zs[Tt](W,et),Zs[Tt](mt,Lt),wt=Pt,Tt=W,Ht=et,255&(Ft=T>>0)&&(170&Ft?PA(wt,256,Tt,Ht):Ts(wt,256,Tt,Ht)),Ft=mt,wt=Lt,255&(T>>=8)&&(170&T?PA(Pt,320,Ft,wt):Ts(Pt,320,Ft,wt)),Q<d.Ub-1&&(n(St[Vt].y,0,$,K+480,16),n(St[Vt].f,0,W,et+224,8),n(St[Vt].ea,0,mt,Lt+224,8)),T=8*G*d.B,St=d.sa,Vt=d.ta+16*R+16*G*d.R,Pt=d.qa,Ft=d.ra+8*R+T,wt=d.Ha,Tt=d.Ia+8*R+T,T=0;16>T;++T)n(St,Vt+T*d.R,$,K+32*T,16);for(T=0;8>T;++T)n(Pt,Ft+T*d.B,W,et+32*T,8),n(wt,Tt+T*d.B,mt,Lt+32*T,8)}}function ku(d,y,T,R,Q,G,$,K,W){var et=[0],mt=[0],Lt=0,Ft=W!=null?W.kd:0,St=W??new Bh;if(d==null||12>T)return 7;St.data=d,St.w=y,St.ha=T,y=[y],T=[T],St.gb=[St.gb];t:{var Vt=y,Pt=T,wt=St.gb;if(e(d!=null),e(Pt!=null),e(wt!=null),wt[0]=0,12<=Pt[0]&&!t(d,Vt[0],"RIFF")){if(t(d,Vt[0]+8,"WEBP")){wt=3;break t}var Tt=Z(d,Vt[0]+4);if(12>Tt||4294967286<Tt){wt=3;break t}if(Ft&&Tt>Pt[0]-8){wt=7;break t}wt[0]=Tt,Vt[0]+=12,Pt[0]-=12}wt=0}if(wt!=0)return wt;for(Tt=0<St.gb[0],T=T[0];;){t:{var Ht=d;Pt=y,wt=T;var jt=et,Gt=mt,de=Vt=[0];if((le=Lt=[Lt])[0]=0,8>wt[0])wt=7;else{if(!t(Ht,Pt[0],"VP8X")){if(Z(Ht,Pt[0]+4)!=10){wt=3;break t}if(18>wt[0]){wt=7;break t}var ie=Z(Ht,Pt[0]+8),Ge=1+j(Ht,Pt[0]+12);if(2147483648<=Ge*(Ht=1+j(Ht,Pt[0]+15))){wt=3;break t}de!=null&&(de[0]=ie),jt!=null&&(jt[0]=Ge),Gt!=null&&(Gt[0]=Ht),Pt[0]+=18,wt[0]-=18,le[0]=1}wt=0}}if(Lt=Lt[0],Vt=Vt[0],wt!=0)return wt;if(Pt=!!(2&Vt),!Tt&&Lt)return 3;if(G!=null&&(G[0]=!!(16&Vt)),$!=null&&($[0]=Pt),K!=null&&(K[0]=0),$=et[0],Vt=mt[0],Lt&&Pt&&W==null){wt=0;break}if(4>T){wt=7;break}if(Tt&&Lt||!Tt&&!Lt&&!t(d,y[0],"ALPH")){T=[T],St.na=[St.na],St.P=[St.P],St.Sa=[St.Sa];t:{ie=d,wt=y,Tt=T;var le=St.gb;jt=St.na,Gt=St.P,de=St.Sa,Ge=22,e(ie!=null),e(Tt!=null),Ht=wt[0];var gr=Tt[0];for(e(jt!=null),e(de!=null),jt[0]=null,Gt[0]=null,de[0]=0;;){if(wt[0]=Ht,Tt[0]=gr,8>gr){wt=7;break t}var zr=Z(ie,Ht+4);if(4294967286<zr){wt=3;break t}var Nr=8+zr+1&-2;if(Ge+=Nr,0<le&&Ge>le){wt=3;break t}if(!t(ie,Ht,"VP8 ")||!t(ie,Ht,"VP8L")){wt=0;break t}if(gr[0]<Nr){wt=7;break t}t(ie,Ht,"ALPH")||(jt[0]=ie,Gt[0]=Ht+8,de[0]=zr),Ht+=Nr,gr-=Nr}}if(T=T[0],St.na=St.na[0],St.P=St.P[0],St.Sa=St.Sa[0],wt!=0)break}T=[T],St.Ja=[St.Ja],St.xa=[St.xa];t:if(le=d,wt=y,Tt=T,jt=St.gb[0],Gt=St.Ja,de=St.xa,ie=wt[0],Ht=!t(le,ie,"VP8 "),Ge=!t(le,ie,"VP8L"),e(le!=null),e(Tt!=null),e(Gt!=null),e(de!=null),8>Tt[0])wt=7;else{if(Ht||Ge){if(le=Z(le,ie+4),12<=jt&&le>jt-12){wt=3;break t}if(Ft&&le>Tt[0]-8){wt=7;break t}Gt[0]=le,wt[0]+=8,Tt[0]-=8,de[0]=Ge}else de[0]=5<=Tt[0]&&le[ie+0]==47&&!(le[ie+4]>>5),Gt[0]=Tt[0];wt=0}if(T=T[0],St.Ja=St.Ja[0],St.xa=St.xa[0],y=y[0],wt!=0)break;if(4294967286<St.Ja)return 3;if(K==null||Pt||(K[0]=St.xa?2:1),$=[$],Vt=[Vt],St.xa){if(5>T){wt=7;break}K=$,Ft=Vt,Pt=G,d==null||5>T?d=0:5<=T&&d[y+0]==47&&!(d[y+4]>>5)?(Tt=[0],le=[0],jt=[0],nt(Gt=new M,d,y,T),Ue(Gt,Tt,le,jt)?(K!=null&&(K[0]=Tt[0]),Ft!=null&&(Ft[0]=le[0]),Pt!=null&&(Pt[0]=jt[0]),d=1):d=0):d=0}else{if(10>T){wt=7;break}K=Vt,d==null||10>T||!mp(d,y+3,T-3)?d=0:(Ft=d[y+0]|d[y+1]<<8|d[y+2]<<16,Pt=16383&(d[y+7]<<8|d[y+6]),d=16383&(d[y+9]<<8|d[y+8]),1&Ft||3<(Ft>>1&7)||!(Ft>>4&1)||Ft>>5>=St.Ja||!Pt||!d?d=0:($&&($[0]=Pt),K&&(K[0]=d),d=1))}if(!d||($=$[0],Vt=Vt[0],Lt&&(et[0]!=$||mt[0]!=Vt)))return 3;W!=null&&(W[0]=St,W.offset=y-W.w,e(4294967286>y-W.w),e(W.offset==W.ha-T));break}return wt==0||wt==7&&Lt&&W==null?(G!=null&&(G[0]|=St.na!=null&&0<St.na.length),R!=null&&(R[0]=$),Q!=null&&(Q[0]=Vt),0):wt}function bh(d,y,T){var R=y.width,Q=y.height,G=0,$=0,K=R,W=Q;if(y.Da=d!=null&&0<d.Da,y.Da&&(K=d.cd,W=d.bd,G=d.v,$=d.j,11>T||(G&=-2,$&=-2),0>G||0>$||0>=K||0>=W||G+K>R||$+W>Q))return 0;if(y.v=G,y.j=$,y.va=G+K,y.o=$+W,y.U=K,y.T=W,y.da=d!=null&&0<d.da,y.da){if(!Ot(K,W,T=[d.ib],G=[d.hb]))return 0;y.ib=T[0],y.hb=G[0]}return y.ob=d!=null&&d.ob,y.Kb=d==null||!d.Sd,y.da&&(y.ob=y.ib<3*R/4&&y.hb<3*Q/4,y.Kb=0),1}function Sh(d){if(d==null)return 2;if(11>d.S){var y=d.f.RGBA;y.fb+=(d.height-1)*y.A,y.A=-y.A}else y=d.f.kb,d=d.height,y.O+=(d-1)*y.fa,y.fa=-y.fa,y.N+=(d-1>>1)*y.Ab,y.Ab=-y.Ab,y.W+=(d-1>>1)*y.Db,y.Db=-y.Db,y.F!=null&&(y.J+=(d-1)*y.lb,y.lb=-y.lb);return 0}function Hu(d,y,T,R){if(R==null||0>=d||0>=y)return 2;if(T!=null){if(T.Da){var Q=T.cd,G=T.bd,$=-2&T.v,K=-2&T.j;if(0>$||0>K||0>=Q||0>=G||$+Q>d||K+G>y)return 2;d=Q,y=G}if(T.da){if(!Ot(d,y,Q=[T.ib],G=[T.hb]))return 2;d=Q[0],y=G[0]}}R.width=d,R.height=y;t:{var W=R.width,et=R.height;if(d=R.S,0>=W||0>=et||!(d>=Up&&13>d))d=2;else{if(0>=R.Rd&&R.sd==null){$=G=Q=y=0;var mt=(K=W*b0[d])*et;if(11>d||(G=(et+1)/2*(y=(W+1)/2),d==12&&($=(Q=W)*et)),(et=a(mt+2*G+$))==null){d=1;break t}R.sd=et,11>d?((W=R.f.RGBA).eb=et,W.fb=0,W.A=K,W.size=mt):((W=R.f.kb).y=et,W.O=0,W.fa=K,W.Fd=mt,W.f=et,W.N=0+mt,W.Ab=y,W.Cd=G,W.ea=et,W.W=0+mt+G,W.Db=y,W.Ed=G,d==12&&(W.F=et,W.J=0+mt+2*G),W.Tc=$,W.lb=Q)}if(y=1,Q=R.S,G=R.width,$=R.height,Q>=Up&&13>Q)if(11>Q)d=R.f.RGBA,y&=(K=Math.abs(d.A))*($-1)+G<=d.size,y&=K>=G*b0[Q],y&=d.eb!=null;else{d=R.f.kb,K=(G+1)/2,mt=($+1)/2,W=Math.abs(d.fa),et=Math.abs(d.Ab);var Lt=Math.abs(d.Db),Ft=Math.abs(d.lb),St=Ft*($-1)+G;y&=W*($-1)+G<=d.Fd,y&=et*(mt-1)+K<=d.Cd,y=(y&=Lt*(mt-1)+K<=d.Ed)&W>=G&et>=K&Lt>=K,y&=d.y!=null,y&=d.f!=null,y&=d.ea!=null,Q==12&&(y&=Ft>=G,y&=St<=d.Tc,y&=d.F!=null)}else y=0;d=y?0:2}}return d!=0||T!=null&&T.fd&&(d=Sh(R)),d}var ca=64,Ll=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],Gu=24,$u=32,xh=8,Sa=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];Bt("Predictor0","PredictorAdd0"),b.Predictor0=function(){return 4278190080},b.Predictor1=function(d){return d},b.Predictor2=function(d,y,T){return y[T+0]},b.Predictor3=function(d,y,T){return y[T+1]},b.Predictor4=function(d,y,T){return y[T-1]},b.Predictor5=function(d,y,T){return Rt(Rt(d,y[T+1]),y[T+0])},b.Predictor6=function(d,y,T){return Rt(d,y[T-1])},b.Predictor7=function(d,y,T){return Rt(d,y[T+0])},b.Predictor8=function(d,y,T){return Rt(y[T-1],y[T+0])},b.Predictor9=function(d,y,T){return Rt(y[T+0],y[T+1])},b.Predictor10=function(d,y,T){return Rt(Rt(d,y[T-1]),Rt(y[T+0],y[T+1]))},b.Predictor11=function(d,y,T){var R=y[T+0];return 0>=Yt(R>>24&255,d>>24&255,(y=y[T-1])>>24&255)+Yt(R>>16&255,d>>16&255,y>>16&255)+Yt(R>>8&255,d>>8&255,y>>8&255)+Yt(255&R,255&d,255&y)?R:d},b.Predictor12=function(d,y,T){var R=y[T+0];return(Nt((d>>24&255)+(R>>24&255)-((y=y[T-1])>>24&255))<<24|Nt((d>>16&255)+(R>>16&255)-(y>>16&255))<<16|Nt((d>>8&255)+(R>>8&255)-(y>>8&255))<<8|Nt((255&d)+(255&R)-(255&y)))>>>0},b.Predictor13=function(d,y,T){var R=y[T-1];return(Dt((d=Rt(d,y[T+0]))>>24&255,R>>24&255)<<24|Dt(d>>16&255,R>>16&255)<<16|Dt(d>>8&255,R>>8&255)<<8|Dt(d>>0&255,R>>0&255))>>>0};var cg=b.PredictorAdd0;b.PredictorAdd1=te,Bt("Predictor2","PredictorAdd2"),Bt("Predictor3","PredictorAdd3"),Bt("Predictor4","PredictorAdd4"),Bt("Predictor5","PredictorAdd5"),Bt("Predictor6","PredictorAdd6"),Bt("Predictor7","PredictorAdd7"),Bt("Predictor8","PredictorAdd8"),Bt("Predictor9","PredictorAdd9"),Bt("Predictor10","PredictorAdd10"),Bt("Predictor11","PredictorAdd11"),Bt("Predictor12","PredictorAdd12"),Bt("Predictor13","PredictorAdd13");var Ih=b.PredictorAdd2;fe("ColorIndexInverseTransform","MapARGB","32b",function(d){return d>>8&255},function(d){return d}),fe("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(d){return d},function(d){return d>>8&255});var Lh,qo=b.ColorIndexInverseTransform,Vu=b.MapARGB,Fh=b.VP8LColorIndexInverseTransformAlpha,hg=b.MapAlpha,MA=b.VP8LPredictorsAdd=[];MA.length=16,(b.VP8LPredictors=[]).length=16,(b.VP8LPredictorsAdd_C=[]).length=16,(b.VP8LPredictors_C=[]).length=16;var wo,Zo,NA,Cs,ha,ju,Bs,xa,Ku,PA,Jo,Ts,UA,Fl,Ol,zs,Oh,Eo,Xs,fn,pn,$n,vi,qs,DA,Yu,Mp,bs,h0=a(511),f0=a(2041),p0=a(225),d0=a(767),v0=0,Np=f0,Pp=p0,to=d0,Co=h0,Up=0,Dp=1,g0=2,Qp=3,kp=4,Rh=5,m0=6,Wu=7,fg=8,Mh=9,Hp=10,Nh=[2,3,7],pg=[3,3,11],y0=[280,256,256,256,40],GC=[0,1,1,1,0],$C=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],VC=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],jC=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],KC=8,dg=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],vg=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],Ph=null,YC=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],WC=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],_0=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],zC=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],XC=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],qC=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],Rl=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],QA=[],ts=[],Zs=[],ZC=1,w0=2,es=[],Bo=[];Ut("UpsampleRgbLinePair",Br,3),Ut("UpsampleBgrLinePair",ki,3),Ut("UpsampleRgbaLinePair",Xo,4),Ut("UpsampleBgraLinePair",di,4),Ut("UpsampleArgbLinePair",Ji,4),Ut("UpsampleRgba4444LinePair",ei,2),Ut("UpsampleRgb565LinePair",Gn,2);var LR=b.UpsampleRgbLinePair,gg=b.UpsampleBgrLinePair,E0=b.UpsampleRgbaLinePair,C0=b.UpsampleBgraLinePair,mg=b.UpsampleArgbLinePair,B0=b.UpsampleRgba4444LinePair,JC=b.UpsampleRgb565LinePair,Js=16,Gp=1<<Js-1,Ml=-227,yg=482,_g=6,FR=(256<<_g)-1,tB=0,eB=a(256),rB=a(256),nB=a(256),iB=a(256),aB=a(yg-Ml),Uh=a(yg-Ml);Es("YuvToRgbRow",Br,3),Es("YuvToBgrRow",ki,3),Es("YuvToRgbaRow",Xo,4),Es("YuvToBgraRow",di,4),Es("YuvToArgbRow",Ji,4),Es("YuvToRgba4444Row",ei,2),Es("YuvToRgb565Row",Gn,2);var T0=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],wg=[0,2,8],Nl=[8,7,6,4,4,2,2,2,1,1,1,1],oB=1;this.WebPDecodeRGBA=function(d,y,T,R,Q){var G=Dp,$=new Uu,K=new Jn;$.ba=K,K.S=G,K.width=[K.width],K.height=[K.height];var W=K.width,et=K.height,mt=new Kr;if(mt==null||d==null)var Lt=2;else e(mt!=null),Lt=ku(d,y,T,mt.width,mt.height,mt.Pd,mt.Qd,mt.format,null);if(Lt!=0?W=0:(W!=null&&(W[0]=mt.width[0]),et!=null&&(et[0]=mt.height[0]),W=1),W){K.width=K.width[0],K.height=K.height[0],R!=null&&(R[0]=K.width),Q!=null&&(Q[0]=K.height);t:{if(R=new Tl,(Q=new Bh).data=d,Q.w=y,Q.ha=T,Q.kd=1,y=[0],e(Q!=null),((d=ku(Q.data,Q.w,Q.ha,null,null,null,y,null,Q))==0||d==7)&&y[0]&&(d=4),(y=d)==0){if(e($!=null),R.data=Q.data,R.w=Q.w+Q.offset,R.ha=Q.ha-Q.offset,R.put=ci,R.ac=mn,R.bc=hi,R.ma=$,Q.xa){if((d=Ir())==null){$=1;break t}if(function(Ft,St){var Vt=[0],Pt=[0],wt=[0];e:for(;;){if(Ft==null)return 0;if(St==null)return Ft.a=2,0;if(Ft.l=St,Ft.a=0,nt(Ft.m,St.data,St.w,St.ha),!Ue(Ft.m,Vt,Pt,wt)){Ft.a=3;break e}if(Ft.xb=w0,St.width=Vt[0],St.height=Pt[0],!cn(Vt[0],Pt[0],1,Ft,null))break e;return 1}return e(Ft.a!=0),0}(d,R)){if(R=(y=Hu(R.width,R.height,$.Oa,$.ba))==0){e:{R=d;r:for(;;){if(R==null){R=0;break e}if(e(R.s.yc!=null),e(R.s.Ya!=null),e(0<R.s.Wb),e((T=R.l)!=null),e((Q=T.ma)!=null),R.xb!=0){if(R.ca=Q.ba,R.tb=Q.tb,e(R.ca!=null),!bh(Q.Oa,T,Qp)){R.a=2;break r}if(!hn(R,T.width)||T.da)break r;if((T.da||se(R.ca.S))&&xt(),11>R.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),R.ca.f.kb.F!=null&&xt()),R.Pb&&0<R.s.ua&&R.s.vb.X==null&&!ft(R.s.vb,R.s.Wa.Xa)){R.a=1;break r}R.xb=0}if(!ne(R,R.V,R.Ba,R.c,R.i,T.o,Za))break r;Q.Dc=R.Ma,R=1;break e}e(R.a!=0),R=0}R=!R}R&&(y=d.a)}else y=d.a}else{if((d=new qv)==null){$=1;break t}if(d.Fa=Q.na,d.P=Q.P,d.qc=Q.Sa,yp(d,R)){if((y=Hu(R.width,R.height,$.Oa,$.ba))==0){if(d.Aa=0,T=$.Oa,e((Q=d)!=null),T!=null){if(0<(W=0>(W=T.Md)?0:100<W?255:255*W/100)){for(et=mt=0;4>et;++et)12>(Lt=Q.pb[et]).lc&&(Lt.ia=W*Nl[0>Lt.lc?0:Lt.lc]>>3),mt|=Lt.ia;mt&&(alert("todo:VP8InitRandom"),Q.ia=1)}Q.Ga=T.Id,100<Q.Ga?Q.Ga=100:0>Q.Ga&&(Q.Ga=0)}Zv(d,R)||(y=d.a)}}else y=d.a}y==0&&$.Oa!=null&&$.Oa.fd&&(y=Sh($.ba))}$=y}G=$!=0?null:11>G?K.f.RGBA.eb:K.f.kb.y}else G=null;return G};var b0=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function l(b,L){for(var N="",x=0;x<4;x++)N+=String.fromCharCode(b[L++]);return N}function u(b,L){return(b[L+0]<<0|b[L+1]<<8|b[L+2]<<16)>>>0}function c(b,L){return(b[L+0]<<0|b[L+1]<<8|b[L+2]<<16|b[L+3]<<24)>>>0}new A;var h=[0],f=[0],p=[],v=new A,m=r,g=function(b,L){var N={},x=0,S=!1,P=0,U=0;if(N.frames=[],!function(Y,z,H,J){for(var ot=0;ot<J;ot++)if(Y[z+ot]!=H.charCodeAt(ot))return!0;return!1}(b,L,"RIFF",4)){var tt,q;for(c(b,L+=4),L+=8;L<b.length;){var rt=l(b,L),nt=c(b,L+=4);L+=4;var At=nt+(1&nt);switch(rt){case"VP8 ":case"VP8L":N.frames[x]===void 0&&(N.frames[x]={}),(M=N.frames[x]).src_off=S?U:L-8,M.src_size=P+nt+8,x++,S&&(S=!1,P=0,U=0);break;case"VP8X":(M=N.header={}).feature_flags=b[L];var ct=L+4;M.canvas_width=1+u(b,ct),ct+=3,M.canvas_height=1+u(b,ct),ct+=3;break;case"ALPH":S=!0,P=At+8,U=L-8;break;case"ANIM":(M=N.header).bgcolor=c(b,L),ct=L+4,M.loop_count=(tt=b)[(q=ct)+0]<<0|tt[q+1]<<8,ct+=2;break;case"ANMF":var bt,M;(M=N.frames[x]={}).offset_x=2*u(b,L),L+=3,M.offset_y=2*u(b,L),L+=3,M.width=1+u(b,L),L+=3,M.height=1+u(b,L),L+=3,M.duration=u(b,L),L+=3,bt=b[L++],M.dispose=1&bt,M.blend=bt>>1&1}rt!="ANMF"&&(L+=At)}return N}}(m,0);g.response=m,g.rgbaoutput=!0,g.dataurl=!1;var _=g.header?g.header:null,w=g.frames?g.frames:null;if(_){_.loop_counter=_.loop_count,h=[_.canvas_height],f=[_.canvas_width];for(var C=0;C<w.length&&w[C].blend!=0;C++);}var F=w[0],O=v.WebPDecodeRGBA(m,F.src_off,F.src_size,f,h);F.rgba=O,F.imgwidth=f[0],F.imgheight=h[0];for(var I=0;I<f[0]*h[0]*4;I++)p[I]=O[I];return this.width=f,this.height=h,this.data=p,this}(function(r){var e=function(){return typeof tx=="function"},t=function(h,f,p,v){var m=4,g=o;switch(v){case r.image_compression.FAST:m=1,g=a;break;case r.image_compression.MEDIUM:m=6,g=s;break;case r.image_compression.SLOW:m=9,g=A}h=n(h,f,p,g);var _=tx(h,{level:m});return r.__addimage__.arrayBufferToBinaryString(_)},n=function(h,f,p,v){for(var m,g,_,w=h.length/f,C=new Uint8Array(h.length+w),F=u(),O=0;O<w;O+=1){if(_=O*f,m=h.subarray(_,_+f),v)C.set(v(m,p,g),_+O);else{for(var I,b=F.length,L=[];I<b;I+=1)L[I]=F[I](m,p,g);var N=c(L.concat());C.set(L[N],_+O)}g=m}return C},i=function(h){var f=Array.apply([],h);return f.unshift(0),f},a=function(h,f){var p,v=[],m=h.length;v[0]=1;for(var g=0;g<m;g+=1)p=h[g-f]||0,v[g+1]=h[g]-p+256&255;return v},o=function(h,f,p){var v,m=[],g=h.length;m[0]=2;for(var _=0;_<g;_+=1)v=p&&p[_]||0,m[_+1]=h[_]-v+256&255;return m},s=function(h,f,p){var v,m,g=[],_=h.length;g[0]=3;for(var w=0;w<_;w+=1)v=h[w-f]||0,m=p&&p[w]||0,g[w+1]=h[w]+256-(v+m>>>1)&255;return g},A=function(h,f,p){var v,m,g,_,w=[],C=h.length;w[0]=4;for(var F=0;F<C;F+=1)v=h[F-f]||0,m=p&&p[F]||0,g=p&&p[F-f]||0,_=l(v,m,g),w[F+1]=h[F]-_+256&255;return w},l=function(h,f,p){if(h===f&&f===p)return h;var v=Math.abs(f-p),m=Math.abs(h-p),g=Math.abs(h+f-p-p);return v<=m&&v<=g?h:m<=g?f:p},u=function(){return[i,a,o,s,A]},c=function(h){var f=h.map(function(p){return p.reduce(function(v,m){return v+Math.abs(m)},0)});return f.indexOf(Math.min.apply(null,f))};r.processPNG=function(h,f,p,v){var m,g,_,w,C,F,O,I,b,L,N,x,S,P,U,tt=this.decode.FLATE_DECODE,q="";if(this.__addimage__.isArrayBuffer(h)&&(h=new Uint8Array(h)),this.__addimage__.isArrayBufferView(h)){if(h=(_=new $st(h)).imgData,g=_.bits,m=_.colorSpace,C=_.colors,[4,6].indexOf(_.colorType)!==-1){if(_.bits===8){b=(I=_.pixelBitlength==32?new Uint32Array(_.decodePixels().buffer):_.pixelBitlength==16?new Uint16Array(_.decodePixels().buffer):new Uint8Array(_.decodePixels().buffer)).length,N=new Uint8Array(b*_.colors),L=new Uint8Array(b);var rt,nt=_.pixelBitlength-_.bits;for(P=0,U=0;P<b;P++){for(S=I[P],rt=0;rt<nt;)N[U++]=S>>>rt&255,rt+=_.bits;L[P]=S>>>rt&255}}if(_.bits===16){b=(I=new Uint32Array(_.decodePixels().buffer)).length,N=new Uint8Array(b*(32/_.pixelBitlength)*_.colors),L=new Uint8Array(b*(32/_.pixelBitlength)),x=_.colors>1,P=0,U=0;for(var At=0;P<b;)S=I[P++],N[U++]=S>>>0&255,x&&(N[U++]=S>>>16&255,S=I[P++],N[U++]=S>>>0&255),L[At++]=S>>>16&255;g=8}v!==r.image_compression.NONE&&e()?(h=t(N,_.width*_.colors,_.colors,v),O=t(L,_.width,1,v)):(h=N,O=L,tt=void 0)}if(_.colorType===3&&(m=this.color_spaces.INDEXED,F=_.palette,_.transparency.indexed)){var ct=_.transparency.indexed,bt=0;for(P=0,b=ct.length;P<b;++P)bt+=ct[P];if((bt/=255)===b-1&&ct.indexOf(0)!==-1)w=[ct.indexOf(0)];else if(bt!==b){for(I=_.decodePixels(),L=new Uint8Array(I.length),P=0,b=I.length;P<b;P++)L[P]=ct[I[P]];O=t(L,_.width,1)}}var M=function(Y){var z;switch(Y){case r.image_compression.FAST:z=11;break;case r.image_compression.MEDIUM:z=13;break;case r.image_compression.SLOW:z=14;break;default:z=12}return z}(v);return tt===this.decode.FLATE_DECODE&&(q="/Predictor "+M+" "),q+="/Colors "+C+" /BitsPerComponent "+g+" /Columns "+_.width,(this.__addimage__.isArrayBuffer(h)||this.__addimage__.isArrayBufferView(h))&&(h=this.__addimage__.arrayBufferToBinaryString(h)),(O&&this.__addimage__.isArrayBuffer(O)||this.__addimage__.isArrayBufferView(O))&&(O=this.__addimage__.arrayBufferToBinaryString(O)),{alias:p,data:h,index:f,filter:tt,decodeParameters:q,transparency:w,palette:F,sMask:O,predictor:M,width:_.width,height:_.height,bitsPerComponent:g,colorSpace:m}}}})(Ke.API),function(r){r.processGIF89A=function(e,t,n,i){var a=new Vst(e),o=a.width,s=a.height,A=[];a.decodeAndBlitFrameRGBA(0,A);var l={data:A,width:o,height:s},u=new aT(100).encode(l,100);return r.processJPEG.call(this,u,t,n,i)},r.processGIF87A=r.processGIF89A}(Ke.API),rA.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var r=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(r);for(var e=0;e<r;e++){var t=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0);this.palette[e]={red:i,green:n,blue:t,quad:a}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},rA.prototype.parseBGR=function(){this.pos=this.offset;try{var r="bit"+this.bitPP,e=this.width*this.height*4;this.data=new Uint8Array(e),this[r]()}catch(t){Cn.log("bit decode error:"+t)}},rA.prototype.bit1=function(){var r,e=Math.ceil(this.width/8),t=e%4;for(r=this.height-1;r>=0;r--){for(var n=this.bottom_up?r:this.height-1-r,i=0;i<e;i++)for(var a=this.datav.getUint8(this.pos++,!0),o=n*this.width*4+8*i*4,s=0;s<8&&8*i+s<this.width;s++){var A=this.palette[a>>7-s&1];this.data[o+4*s]=A.blue,this.data[o+4*s+1]=A.green,this.data[o+4*s+2]=A.red,this.data[o+4*s+3]=255}t!==0&&(this.pos+=4-t)}},rA.prototype.bit4=function(){for(var r=Math.ceil(this.width/2),e=r%4,t=this.height-1;t>=0;t--){for(var n=this.bottom_up?t:this.height-1-t,i=0;i<r;i++){var a=this.datav.getUint8(this.pos++,!0),o=n*this.width*4+2*i*4,s=a>>4,A=15&a,l=this.palette[s];if(this.data[o]=l.blue,this.data[o+1]=l.green,this.data[o+2]=l.red,this.data[o+3]=255,2*i+1>=this.width)break;l=this.palette[A],this.data[o+4]=l.blue,this.data[o+4+1]=l.green,this.data[o+4+2]=l.red,this.data[o+4+3]=255}e!==0&&(this.pos+=4-e)}},rA.prototype.bit8=function(){for(var r=this.width%4,e=this.height-1;e>=0;e--){for(var t=this.bottom_up?e:this.height-1-e,n=0;n<this.width;n++){var i=this.datav.getUint8(this.pos++,!0),a=t*this.width*4+4*n;if(i<this.palette.length){var o=this.palette[i];this.data[a]=o.red,this.data[a+1]=o.green,this.data[a+2]=o.blue,this.data[a+3]=255}else this.data[a]=255,this.data[a+1]=255,this.data[a+2]=255,this.data[a+3]=255}r!==0&&(this.pos+=4-r)}},rA.prototype.bit15=function(){for(var r=this.width%3,e=parseInt("11111",2),t=this.height-1;t>=0;t--){for(var n=this.bottom_up?t:this.height-1-t,i=0;i<this.width;i++){var a=this.datav.getUint16(this.pos,!0);this.pos+=2;var o=(a&e)/e*255|0,s=(a>>5&e)/e*255|0,A=(a>>10&e)/e*255|0,l=a>>15?255:0,u=n*this.width*4+4*i;this.data[u]=A,this.data[u+1]=s,this.data[u+2]=o,this.data[u+3]=l}this.pos+=r}},rA.prototype.bit16=function(){for(var r=this.width%3,e=parseInt("11111",2),t=parseInt("111111",2),n=this.height-1;n>=0;n--){for(var i=this.bottom_up?n:this.height-1-n,a=0;a<this.width;a++){var o=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(o&e)/e*255|0,A=(o>>5&t)/t*255|0,l=(o>>11)/e*255|0,u=i*this.width*4+4*a;this.data[u]=l,this.data[u+1]=A,this.data[u+2]=s,this.data[u+3]=255}this.pos+=r}},rA.prototype.bit24=function(){for(var r=this.height-1;r>=0;r--){for(var e=this.bottom_up?r:this.height-1-r,t=0;t<this.width;t++){var n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),o=e*this.width*4+4*t;this.data[o]=a,this.data[o+1]=i,this.data[o+2]=n,this.data[o+3]=255}this.pos+=this.width%4}},rA.prototype.bit32=function(){for(var r=this.height-1;r>=0;r--)for(var e=this.bottom_up?r:this.height-1-r,t=0;t<this.width;t++){var n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),s=e*this.width*4+4*t;this.data[s]=a,this.data[s+1]=i,this.data[s+2]=n,this.data[s+3]=o}},rA.prototype.getData=function(){return this.data},function(r){r.processBMP=function(e,t,n,i){var a=new rA(e,!1),o=a.width,s=a.height,A={data:a.getData(),width:o,height:s},l=new aT(100).encode(A,100);return r.processJPEG.call(this,l,t,n,i)}}(Ke.API),fP.prototype.getData=function(){return this.data},function(r){r.processWEBP=function(e,t,n,i){var a=new fP(e),o=a.width,s=a.height,A={data:a.getData(),width:o,height:s},l=new aT(100).encode(A,100);return r.processJPEG.call(this,l,t,n,i)}}(Ke.API),Ke.API.processRGBA=function(r,e,t){for(var n=r.data,i=n.length,a=new Uint8Array(i/4*3),o=new Uint8Array(i/4),s=0,A=0,l=0;l<i;l+=4){var u=n[l],c=n[l+1],h=n[l+2],f=n[l+3];a[s++]=u,a[s++]=c,a[s++]=h,o[A++]=f}var p=this.__addimage__.arrayBufferToBinaryString(a);return{alpha:this.__addimage__.arrayBufferToBinaryString(o),data:p,index:e,alias:t,colorSpace:"DeviceRGB",bitsPerComponent:8,width:r.width,height:r.height}},Ke.API.setLanguage=function(r){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[r]!==void 0&&(this.internal.languageSettings.languageCode=r,this.internal.languageSettings.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},Xp=Ke.API,c_=Xp.getCharWidthsArray=function(r,e){var t,n,i=(e=e||{}).font||this.internal.getFont(),a=e.fontSize||this.internal.getFontSize(),o=e.charSpace||this.internal.getCharSpace(),s=e.widths?e.widths:i.metadata.Unicode.widths,A=s.fof?s.fof:1,l=e.kerning?e.kerning:i.metadata.Unicode.kerning,u=l.fof?l.fof:1,c=e.doKerning!==!1,h=0,f=r.length,p=0,v=s[0]||A,m=[];for(t=0;t<f;t++)n=r.charCodeAt(t),typeof i.metadata.widthOfString=="function"?m.push((i.metadata.widthOfGlyph(i.metadata.characterToGlyph(n))+o*(1e3/a)||0)/1e3):(h=c&&gn(l[n])==="object"&&!isNaN(parseInt(l[n][p],10))?l[n][p]/u:0,m.push((s[n]||v)/A+h)),p=n;return m},lP=Xp.getStringUnitWidth=function(r,e){var t=(e=e||{}).fontSize||this.internal.getFontSize(),n=e.font||this.internal.getFont(),i=e.charSpace||this.internal.getCharSpace();return Xp.processArabic&&(r=Xp.processArabic(r)),typeof n.metadata.widthOfString=="function"?n.metadata.widthOfString(r,t,i)/t:c_.apply(this,arguments).reduce(function(a,o){return a+o},0)},uP=function(r,e,t,n){for(var i=[],a=0,o=r.length,s=0;a!==o&&s+e[a]<t;)s+=e[a],a++;i.push(r.slice(0,a));var A=a;for(s=0;a!==o;)s+e[a]>n&&(i.push(r.slice(A,a)),s=0,A=a),s+=e[a],a++;return A!==a&&i.push(r.slice(A,a)),i},cP=function(r,e,t){t||(t={});var n,i,a,o,s,A,l,u=[],c=[u],h=t.textIndent||0,f=0,p=0,v=r.split(" "),m=c_.apply(this,[" ",t])[0];if(A=t.lineIndent===-1?v[0].length+2:t.lineIndent||0){var g=Array(A).join(" "),_=[];v.map(function(C){(C=C.split(/\s*\n/)).length>1?_=_.concat(C.map(function(F,O){return(O&&F.length?`
|
||
`:"")+F})):_.push(C[0])}),v=_,A=lP.apply(this,[g,t])}for(a=0,o=v.length;a<o;a++){var w=0;if(n=v[a],A&&n[0]==`
|
||
`&&(n=n.substr(1),w=1),h+f+(p=(i=c_.apply(this,[n,t])).reduce(function(C,F){return C+F},0))>e||w){if(p>e){for(s=uP.apply(this,[n,i,e-(h+f),e]),u.push(s.shift()),u=[s.pop()];s.length;)c.push([s.shift()]);p=i.slice(n.length-(u[0]?u[0].length:0)).reduce(function(C,F){return C+F},0)}else u=[n];c.push(u),h=p+A,f=m}else u.push(n),h+=f+p,f=m}return l=A?function(C,F){return(F?g:"")+C.join(" ")}:function(C){return C.join(" ")},c.map(l)},Xp.splitTextToSize=function(r,e,t){var n,i=(t=t||{}).fontSize||this.internal.getFontSize(),a=function(u){if(u.widths&&u.kerning)return{widths:u.widths,kerning:u.kerning};var c=this.internal.getFont(u.fontName,u.fontStyle);return c.metadata.Unicode?{widths:c.metadata.Unicode.widths||{0:1},kerning:c.metadata.Unicode.kerning||{}}:{font:c.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,t);n=Array.isArray(r)?r:String(r).split(/\r?\n/);var o=1*this.internal.scaleFactor*e/i;a.textIndent=t.textIndent?1*t.textIndent*this.internal.scaleFactor/i:0,a.lineIndent=t.lineIndent;var s,A,l=[];for(s=0,A=n.length;s<A;s++)l=l.concat(cP.apply(this,[n[s],o,a]));return l},function(r){r.__fontmetrics__=r.__fontmetrics__||{};for(var e="klmnopqrstuvwxyz",t={},n={},i=0;i<e.length;i++)t[e[i]]="0123456789abcdef"[i],n["0123456789abcdef"[i]]=e[i];var a=function(c){return"0x"+parseInt(c,10).toString(16)},o=r.__fontmetrics__.compress=function(c){var h,f,p,v,m=["{"];for(var g in c){if(h=c[g],isNaN(parseInt(g,10))?f="'"+g+"'":(g=parseInt(g,10),f=(f=a(g).slice(2)).slice(0,-1)+n[f.slice(-1)]),typeof h=="number")h<0?(p=a(h).slice(3),v="-"):(p=a(h).slice(2),v=""),p=v+p.slice(0,-1)+n[p.slice(-1)];else{if(gn(h)!=="object")throw new Error("Don't know what to do with value type "+gn(h)+".");p=o(h)}m.push(f+p)}return m.push("}"),m.join("")},s=r.__fontmetrics__.uncompress=function(c){if(typeof c!="string")throw new Error("Invalid argument passed to uncompress.");for(var h,f,p,v,m={},g=1,_=m,w=[],C="",F="",O=c.length-1,I=1;I<O;I+=1)(v=c[I])=="'"?h?(p=h.join(""),h=void 0):h=[]:h?h.push(v):v=="{"?(w.push([_,p]),_={},p=void 0):v=="}"?((f=w.pop())[0][f[1]]=_,p=void 0,_=f[0]):v=="-"?g=-1:p===void 0?t.hasOwnProperty(v)?(C+=t[v],p=parseInt(C,16)*g,g=1,C=""):C+=v:t.hasOwnProperty(v)?(F+=t[v],_[p]=parseInt(F,16)*g,g=1,p=void 0,F=""):F+=v;return m},A={codePages:["WinAnsiEncoding"],WinAnsiEncoding:s("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},l={Unicode:{Courier:A,"Courier-Bold":A,"Courier-BoldOblique":A,"Courier-Oblique":A,Helvetica:A,"Helvetica-Bold":A,"Helvetica-BoldOblique":A,"Helvetica-Oblique":A,"Times-Roman":A,"Times-Bold":A,"Times-BoldItalic":A,"Times-Italic":A}},u={Unicode:{"Courier-Oblique":s("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":s("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":s("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:s("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":s("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":s("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:s("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:s("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":s("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:s("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":s("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":s("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":s("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":s("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};r.events.push(["addFont",function(c){var h=c.font,f=u.Unicode[h.postScriptName];f&&(h.metadata.Unicode={},h.metadata.Unicode.widths=f.widths,h.metadata.Unicode.kerning=f.kerning);var p=l.Unicode[h.postScriptName];p&&(h.metadata.Unicode.encoding=p,h.encoding=p.codePages[0])}])}(Ke.API),function(r){var e=function(t){for(var n=t.length,i=new Uint8Array(n),a=0;a<n;a++)i[a]=t.charCodeAt(a);return i};r.API.events.push(["addFont",function(t){var n=void 0,i=t.font,a=t.instance;if(!i.isStandardFont){if(a===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");if(typeof(n=a.existsFileInVFS(i.postScriptName)===!1?a.loadFile(i.postScriptName):a.getFileFromVFS(i.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");(function(o,s){s=/^\x00\x01\x00\x00/.test(s)?e(s):e(xm(s)),o.metadata=r.API.TTFFont.open(s),o.metadata.Unicode=o.metadata.Unicode||{encoding:{},kerning:{},widths:[]},o.metadata.glyIdsUsed=[0]})(i,n)}}])}(Ke),function(r){function e(){return(ze.canvg?Promise.resolve(ze.canvg):Promise.resolve().then(function(){return HFt})).catch(function(t){return Promise.reject(new Error("Could not load canvg: "+t))}).then(function(t){return t.default?t.default:t})}Ke.API.addSvgAsImage=function(t,n,i,a,o,s,A,l){if(isNaN(n)||isNaN(i))throw Cn.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(a)||isNaN(o))throw Cn.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var u=document.createElement("canvas");u.width=a,u.height=o;var c=u.getContext("2d");c.fillStyle="#fff",c.fillRect(0,0,u.width,u.height);var h={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},f=this;return e().then(function(p){return p.fromString(c,t,h)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(p){return p.render(h)}).then(function(){f.addImage(u.toDataURL("image/jpeg",1),n,i,a,o,A,l)})}}(),Ke.API.putTotalPages=function(r){var e,t=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(e=new RegExp(r,"g"),t=this.internal.getNumberOfPages()):(e=new RegExp(this.pdfEscape16(r,this.internal.getFont()),"g"),t=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var n=1;n<=this.internal.getNumberOfPages();n++)for(var i=0;i<this.internal.pages[n].length;i++)this.internal.pages[n][i]=this.internal.pages[n][i].replace(e,t);return this},Ke.API.viewerPreferences=function(r,e){var t;r=r||{},e=e||!1;var n,i,a,o={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},s=Object.keys(o),A=[],l=0,u=0,c=0;function h(p,v){var m,g=!1;for(m=0;m<p.length;m+=1)p[m]===v&&(g=!0);return g}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(o)),this.internal.viewerpreferences.isSubscribed=!1),t=this.internal.viewerpreferences.configuration,r==="reset"||e===!0){var f=s.length;for(c=0;c<f;c+=1)t[s[c]].value=t[s[c]].defaultValue,t[s[c]].explicitSet=!1}if(gn(r)==="object"){for(i in r)if(a=r[i],h(s,i)&&a!==void 0){if(t[i].type==="boolean"&&typeof a=="boolean")t[i].value=a;else if(t[i].type==="name"&&h(t[i].valueSet,a))t[i].value=a;else if(t[i].type==="integer"&&Number.isInteger(a))t[i].value=a;else if(t[i].type==="array"){for(l=0;l<a.length;l+=1)if(n=!0,a[l].length===1&&typeof a[l][0]=="number")A.push(String(a[l]-1));else if(a[l].length>1){for(u=0;u<a[l].length;u+=1)typeof a[l][u]!="number"&&(n=!1);n===!0&&A.push([a[l][0]-1,a[l][1]-1].join(" "))}t[i].value="["+A.join(" ")+"]"}else t[i].value=t[i].defaultValue;t[i].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var p,v=[];for(p in t)t[p].explicitSet===!0&&(t[p].type==="name"?v.push("/"+p+" /"+t[p].value):v.push("/"+p+" "+t[p].value));v.length!==0&&this.internal.write(`/ViewerPreferences
|
||
<<
|
||
`+v.join(`
|
||
`)+`
|
||
>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=t,this},function(r){var e=function(){var n='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',i=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),a=unescape(encodeURIComponent(n)),o=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),s=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),A=unescape(encodeURIComponent("</x:xmpmeta>")),l=a.length+o.length+s.length+i.length+A.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+l+" >>"),this.internal.write("stream"),this.internal.write(i+a+o+s+A),this.internal.write("endstream"),this.internal.write("endobj")},t=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};r.addMetadata=function(n,i){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:n,namespaceuri:i||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",t),this.internal.events.subscribe("postPutResources",e)),this}}(Ke.API),function(r){var e=r.API,t=e.pdfEscape16=function(a,o){for(var s,A=o.metadata.Unicode.widths,l=["","0","00","000","0000"],u=[""],c=0,h=a.length;c<h;++c){if(s=o.metadata.characterToGlyph(a.charCodeAt(c)),o.metadata.glyIdsUsed.push(s),o.metadata.toUnicode[s]=a.charCodeAt(c),A.indexOf(s)==-1&&(A.push(s),A.push([parseInt(o.metadata.widthOfGlyph(s),10)])),s=="0")return u.join("");s=s.toString(16),u.push(l[4-s.length],s)}return u.join("")},n=function(a){var o,s,A,l,u,c,h;for(u=`/CIDInit /ProcSet findresource begin
|
||
12 dict begin
|
||
begincmap
|
||
/CIDSystemInfo <<
|
||
/Registry (Adobe)
|
||
/Ordering (UCS)
|
||
/Supplement 0
|
||
>> def
|
||
/CMapName /Adobe-Identity-UCS def
|
||
/CMapType 2 def
|
||
1 begincodespacerange
|
||
<0000><ffff>
|
||
endcodespacerange`,A=[],c=0,h=(s=Object.keys(a).sort(function(f,p){return f-p})).length;c<h;c++)o=s[c],A.length>=100&&(u+=`
|
||
`+A.length+` beginbfchar
|
||
`+A.join(`
|
||
`)+`
|
||
endbfchar`,A=[]),a[o]!==void 0&&a[o]!==null&&typeof a[o].toString=="function"&&(l=("0000"+a[o].toString(16)).slice(-4),o=("0000"+(+o).toString(16)).slice(-4),A.push("<"+o+"><"+l+">"));return A.length&&(u+=`
|
||
`+A.length+` beginbfchar
|
||
`+A.join(`
|
||
`)+`
|
||
endbfchar
|
||
`),u+=`endcmap
|
||
CMapName currentdict /CMap defineresource pop
|
||
end
|
||
end`};e.events.push(["putFont",function(a){(function(o){var s=o.font,A=o.out,l=o.newObject,u=o.putStream;if(s.metadata instanceof r.API.TTFFont&&s.encoding==="Identity-H"){for(var c=s.metadata.Unicode.widths,h=s.metadata.subset.encode(s.metadata.glyIdsUsed,1),f="",p=0;p<h.length;p++)f+=String.fromCharCode(h[p]);var v=l();u({data:f,addLength1:!0,objectId:v}),A("endobj");var m=l();u({data:n(s.metadata.toUnicode),addLength1:!0,objectId:m}),A("endobj");var g=l();A("<<"),A("/Type /FontDescriptor"),A("/FontName /"+md(s.fontName)),A("/FontFile2 "+v+" 0 R"),A("/FontBBox "+r.API.PDFObject.convert(s.metadata.bbox)),A("/Flags "+s.metadata.flags),A("/StemV "+s.metadata.stemV),A("/ItalicAngle "+s.metadata.italicAngle),A("/Ascent "+s.metadata.ascender),A("/Descent "+s.metadata.decender),A("/CapHeight "+s.metadata.capHeight),A(">>"),A("endobj");var _=l();A("<<"),A("/Type /Font"),A("/BaseFont /"+md(s.fontName)),A("/FontDescriptor "+g+" 0 R"),A("/W "+r.API.PDFObject.convert(c)),A("/CIDToGIDMap /Identity"),A("/DW 1000"),A("/Subtype /CIDFontType2"),A("/CIDSystemInfo"),A("<<"),A("/Supplement 0"),A("/Registry (Adobe)"),A("/Ordering ("+s.encoding+")"),A(">>"),A(">>"),A("endobj"),s.objectNumber=l(),A("<<"),A("/Type /Font"),A("/Subtype /Type0"),A("/ToUnicode "+m+" 0 R"),A("/BaseFont /"+md(s.fontName)),A("/Encoding /"+s.encoding),A("/DescendantFonts ["+_+" 0 R]"),A(">>"),A("endobj"),s.isAlreadyPutted=!0}})(a)}]),e.events.push(["putFont",function(a){(function(o){var s=o.font,A=o.out,l=o.newObject,u=o.putStream;if(s.metadata instanceof r.API.TTFFont&&s.encoding==="WinAnsiEncoding"){for(var c=s.metadata.rawData,h="",f=0;f<c.length;f++)h+=String.fromCharCode(c[f]);var p=l();u({data:h,addLength1:!0,objectId:p}),A("endobj");var v=l();u({data:n(s.metadata.toUnicode),addLength1:!0,objectId:v}),A("endobj");var m=l();A("<<"),A("/Descent "+s.metadata.decender),A("/CapHeight "+s.metadata.capHeight),A("/StemV "+s.metadata.stemV),A("/Type /FontDescriptor"),A("/FontFile2 "+p+" 0 R"),A("/Flags 96"),A("/FontBBox "+r.API.PDFObject.convert(s.metadata.bbox)),A("/FontName /"+md(s.fontName)),A("/ItalicAngle "+s.metadata.italicAngle),A("/Ascent "+s.metadata.ascender),A(">>"),A("endobj"),s.objectNumber=l();for(var g=0;g<s.metadata.hmtx.widths.length;g++)s.metadata.hmtx.widths[g]=parseInt(s.metadata.hmtx.widths[g]*(1e3/s.metadata.head.unitsPerEm));A("<</Subtype/TrueType/Type/Font/ToUnicode "+v+" 0 R/BaseFont/"+md(s.fontName)+"/FontDescriptor "+m+" 0 R/Encoding/"+s.encoding+" /FirstChar 29 /LastChar 255 /Widths "+r.API.PDFObject.convert(s.metadata.hmtx.widths)+">>"),A("endobj"),s.isAlreadyPutted=!0}})(a)}]);var i=function(a){var o,s=a.text||"",A=a.x,l=a.y,u=a.options||{},c=a.mutex||{},h=c.pdfEscape,f=c.activeFontKey,p=c.fonts,v=f,m="",g=0,_="",w=p[v].encoding;if(p[v].encoding!=="Identity-H")return{text:s,x:A,y:l,options:u,mutex:c};for(_=s,v=f,Array.isArray(s)&&(_=s[0]),g=0;g<_.length;g+=1)p[v].metadata.hasOwnProperty("cmap")&&(o=p[v].metadata.cmap.unicode.codeMap[_[g].charCodeAt(0)]),o||_[g].charCodeAt(0)<256&&p[v].metadata.hasOwnProperty("Unicode")?m+=_[g]:m+="";var C="";return parseInt(v.slice(1))<14||w==="WinAnsiEncoding"?C=h(m,v).split("").map(function(F){return F.charCodeAt(0).toString(16)}).join(""):w==="Identity-H"&&(C=t(m,p[v])),c.isHex=!0,{text:C,x:A,y:l,options:u,mutex:c}};e.events.push(["postProcessText",function(a){var o=a.text||"",s=[],A={text:o,x:a.x,y:a.y,options:a.options,mutex:a.mutex};if(Array.isArray(o)){var l=0;for(l=0;l<o.length;l+=1)Array.isArray(o[l])&&o[l].length===3?s.push([i(Object.assign({},A,{text:o[l][0]})).text,o[l][1],o[l][2]]):s.push(i(Object.assign({},A,{text:o[l]})).text);a.text=s}else a.text=i(Object.assign({},A,{text:o})).text}])}(Ke),function(r){var e=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};r.existsFileInVFS=function(t){return e.call(this),this.internal.vFS[t]!==void 0},r.addFileToVFS=function(t,n){return e.call(this),this.internal.vFS[t]=n,this},r.getFileFromVFS=function(t){return e.call(this),this.internal.vFS[t]!==void 0?this.internal.vFS[t]:null}}(Ke.API),function(r){r.__bidiEngine__=r.prototype.__bidiEngine__=function(n){var i,a,o,s,A,l,u,c=e,h=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],f=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],p={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},v={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},m=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],g=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),_=!1,w=0;this.__bidiEngine__={};var C=function(x){var S=x.charCodeAt(),P=S>>8,U=v[P];return U!==void 0?c[256*U+(255&S)]:P===252||P===253?"AL":g.test(P)?"L":P===8?"R":"N"},F=function(x){for(var S,P=0;P<x.length;P++){if((S=C(x.charAt(P)))==="L")return!1;if(S==="R")return!0}return!1},O=function(x,S,P,U){var tt,q,rt,nt,At=S[U];switch(At){case"L":case"R":_=!1;break;case"N":case"AN":break;case"EN":_&&(At="AN");break;case"AL":_=!0,At="R";break;case"WS":At="N";break;case"CS":U<1||U+1>=S.length||(tt=P[U-1])!=="EN"&&tt!=="AN"||(q=S[U+1])!=="EN"&&q!=="AN"?At="N":_&&(q="AN"),At=q===tt?q:"N";break;case"ES":At=(tt=U>0?P[U-1]:"B")==="EN"&&U+1<S.length&&S[U+1]==="EN"?"EN":"N";break;case"ET":if(U>0&&P[U-1]==="EN"){At="EN";break}if(_){At="N";break}for(rt=U+1,nt=S.length;rt<nt&&S[rt]==="ET";)rt++;At=rt<nt&&S[rt]==="EN"?"EN":"N";break;case"NSM":if(o&&!s){for(nt=S.length,rt=U+1;rt<nt&&S[rt]==="NSM";)rt++;if(rt<nt){var ct=x[U],bt=ct>=1425&&ct<=2303||ct===64286;if(tt=S[rt],bt&&(tt==="R"||tt==="AL")){At="R";break}}}At=U<1||(tt=S[U-1])==="B"?"N":P[U-1];break;case"B":_=!1,i=!0,At=w;break;case"S":a=!0,At="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":_=!1;break;case"BN":At="N"}return At},I=function(x,S,P){var U=x.split("");return P&&b(U,P,{hiLevel:w}),U.reverse(),S&&S.reverse(),U.join("")},b=function(x,S,P){var U,tt,q,rt,nt,At=-1,ct=x.length,bt=0,M=[],Y=w?f:h,z=[];for(_=!1,i=!1,a=!1,tt=0;tt<ct;tt++)z[tt]=C(x[tt]);for(q=0;q<ct;q++){if(nt=bt,M[q]=O(x,z,M,q),U=240&(bt=Y[nt][p[M[q]]]),bt&=15,S[q]=rt=Y[bt][5],U>0)if(U===16){for(tt=At;tt<q;tt++)S[tt]=1;At=-1}else At=-1;if(Y[bt][6])At===-1&&(At=q);else if(At>-1){for(tt=At;tt<q;tt++)S[tt]=rt;At=-1}z[q]==="B"&&(S[q]=0),P.hiLevel|=rt}a&&function(H,J,ot){for(var ut=0;ut<ot;ut++)if(H[ut]==="S"){J[ut]=w;for(var X=ut-1;X>=0&&H[X]==="WS";X--)J[X]=w}}(z,S,ct)},L=function(x,S,P,U,tt){if(!(tt.hiLevel<x)){if(x===1&&w===1&&!i)return S.reverse(),void(P&&P.reverse());for(var q,rt,nt,At,ct=S.length,bt=0;bt<ct;){if(U[bt]>=x){for(nt=bt+1;nt<ct&&U[nt]>=x;)nt++;for(At=bt,rt=nt-1;At<rt;At++,rt--)q=S[At],S[At]=S[rt],S[rt]=q,P&&(q=P[At],P[At]=P[rt],P[rt]=q);bt=nt}bt++}}},N=function(x,S,P){var U=x.split(""),tt={hiLevel:w};return P||(P=[]),b(U,P,tt),function(q,rt,nt){if(nt.hiLevel!==0&&u)for(var At,ct=0;ct<q.length;ct++)rt[ct]===1&&(At=m.indexOf(q[ct]))>=0&&(q[ct]=m[At+1])}(U,P,tt),L(2,U,S,P,tt),L(1,U,S,P,tt),U.join("")};return this.__bidiEngine__.doBidiReorder=function(x,S,P){if(function(tt,q){if(q)for(var rt=0;rt<tt.length;rt++)q[rt]=rt;s===void 0&&(s=F(tt)),l===void 0&&(l=F(tt))}(x,S),o||!A||l)if(o&&A&&s^l)w=s?1:0,x=I(x,S,P);else if(!o&&A&&l)w=s?1:0,x=N(x,S,P),x=I(x,S);else if(!o||s||A||l){if(o&&!A&&s^l)x=I(x,S),s?(w=0,x=N(x,S,P)):(w=1,x=N(x,S,P),x=I(x,S));else if(o&&s&&!A&&l)w=1,x=N(x,S,P),x=I(x,S);else if(!o&&!A&&s^l){var U=u;s?(w=1,x=N(x,S,P),w=0,u=!1,x=N(x,S,P),u=U):(w=0,x=N(x,S,P),x=I(x,S),w=1,u=!1,x=N(x,S,P),u=U,x=I(x,S))}}else w=0,x=N(x,S,P);else w=s?1:0,x=N(x,S,P);return x},this.__bidiEngine__.setOptions=function(x){x&&(o=x.isInputVisual,A=x.isOutputVisual,s=x.isInputRtl,l=x.isOutputRtl,u=x.isSymmetricSwapping)},this.__bidiEngine__.setOptions(n),this.__bidiEngine__};var e=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],t=new r.__bidiEngine__({isInputVisual:!0});r.API.events.push(["postProcessText",function(n){var i=n.text,a=(n.x,n.y,n.options||{}),o=(n.mutex,a.lang,[]);if(a.isInputVisual=typeof a.isInputVisual!="boolean"||a.isInputVisual,t.setOptions(a),Object.prototype.toString.call(i)==="[object Array]"){var s=0;for(o=[],s=0;s<i.length;s+=1)Object.prototype.toString.call(i[s])==="[object Array]"?o.push([t.doBidiReorder(i[s][0]),i[s][1],i[s][2]]):o.push([t.doBidiReorder(i[s])]);n.text=o}else n.text=t.doBidiReorder(i);t.setOptions({isInputVisual:!0})}])}(Ke),Ke.API.TTFFont=function(){function r(e){var t;if(this.rawData=e,t=this.contents=new Jc(e),this.contents.pos=4,t.readString(4)==="ttcf")throw new Error("TTCF not supported.");t.pos=0,this.parse(),this.subset=new aAt(this),this.registerTTF()}return r.open=function(e){return new r(e)},r.prototype.parse=function(){return this.directory=new jst(this.contents),this.head=new Yst(this),this.name=new Zst(this),this.cmap=new wk(this),this.toUnicode={},this.hhea=new Wst(this),this.maxp=new Jst(this),this.hmtx=new tAt(this),this.post=new Xst(this),this.os2=new zst(this),this.loca=new iAt(this),this.glyf=new eAt(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},r.prototype.registerTTF=function(){var e,t,n,i,a;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var o,s,A,l;for(l=[],o=0,s=(A=this.bbox).length;o<s;o++)e=A[o],l.push(Math.round(e*this.scaleFactor));return l}.call(this),this.stemV=0,this.post.exists?(n=255&(i=this.post.italic_angle),32768&(t=i>>16)&&(t=-(1+(65535^t))),this.italicAngle=+(t+"."+n)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=(a=this.familyClass)===1||a===2||a===3||a===4||a===5||a===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},r.prototype.characterToGlyph=function(e){var t;return((t=this.cmap.unicode)!=null?t.codeMap[e]:void 0)||0},r.prototype.widthOfGlyph=function(e){var t;return t=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(e).advance*t},r.prototype.widthOfString=function(e,t,n){var i,a,o,s;for(o=0,a=0,s=(e=""+e).length;0<=s?a<s:a>s;a=0<=s?++a:--a)i=e.charCodeAt(a),o+=this.widthOfGlyph(this.characterToGlyph(i))+n*(1e3/t)||0;return o*(t/1e3)},r.prototype.lineHeight=function(e,t){var n;return t==null&&(t=!1),n=t?this.lineGap:0,(this.ascender+n-this.decender)/1e3*e},r}();var CA,Jc=function(){function r(e){this.data=e??[],this.pos=0,this.length=this.data.length}return r.prototype.readByte=function(){return this.data[this.pos++]},r.prototype.writeByte=function(e){return this.data[this.pos++]=e},r.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},r.prototype.writeUInt32=function(e){return this.writeByte(e>>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e)},r.prototype.readInt32=function(){var e;return(e=this.readUInt32())>=2147483648?e-4294967296:e},r.prototype.writeInt32=function(e){return e<0&&(e+=4294967296),this.writeUInt32(e)},r.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},r.prototype.writeUInt16=function(e){return this.writeByte(e>>8&255),this.writeByte(255&e)},r.prototype.readInt16=function(){var e;return(e=this.readUInt16())>=32768?e-65536:e},r.prototype.writeInt16=function(e){return e<0&&(e+=65536),this.writeUInt16(e)},r.prototype.readString=function(e){var t,n;for(n=[],t=0;0<=e?t<e:t>e;t=0<=e?++t:--t)n[t]=String.fromCharCode(this.readByte());return n.join("")},r.prototype.writeString=function(e){var t,n,i;for(i=[],t=0,n=e.length;0<=n?t<n:t>n;t=0<=n?++t:--t)i.push(this.writeByte(e.charCodeAt(t)));return i},r.prototype.readShort=function(){return this.readInt16()},r.prototype.writeShort=function(e){return this.writeInt16(e)},r.prototype.readLongLong=function(){var e,t,n,i,a,o,s,A;return e=this.readByte(),t=this.readByte(),n=this.readByte(),i=this.readByte(),a=this.readByte(),o=this.readByte(),s=this.readByte(),A=this.readByte(),128&e?-1*(72057594037927940*(255^e)+281474976710656*(255^t)+1099511627776*(255^n)+4294967296*(255^i)+16777216*(255^a)+65536*(255^o)+256*(255^s)+(255^A)+1):72057594037927940*e+281474976710656*t+1099511627776*n+4294967296*i+16777216*a+65536*o+256*s+A},r.prototype.writeLongLong=function(e){var t,n;return t=Math.floor(e/4294967296),n=4294967295&e,this.writeByte(t>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t),this.writeByte(n>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n)},r.prototype.readInt=function(){return this.readInt32()},r.prototype.writeInt=function(e){return this.writeInt32(e)},r.prototype.read=function(e){var t,n;for(t=[],n=0;0<=e?n<e:n>e;n=0<=e?++n:--n)t.push(this.readByte());return t},r.prototype.write=function(e){var t,n,i,a;for(a=[],n=0,i=e.length;n<i;n++)t=e[n],a.push(this.writeByte(t));return a},r}(),jst=function(){var r;function e(t){var n,i,a;for(this.scalarType=t.readInt(),this.tableCount=t.readShort(),this.searchRange=t.readShort(),this.entrySelector=t.readShort(),this.rangeShift=t.readShort(),this.tables={},i=0,a=this.tableCount;0<=a?i<a:i>a;i=0<=a?++i:--i)n={tag:t.readString(4),checksum:t.readInt(),offset:t.readInt(),length:t.readInt()},this.tables[n.tag]=n}return e.prototype.encode=function(t){var n,i,a,o,s,A,l,u,c,h,f,p,v;for(v in f=Object.keys(t).length,A=Math.log(2),c=16*Math.floor(Math.log(f)/A),o=Math.floor(c/A),u=16*f-c,(i=new Jc).writeInt(this.scalarType),i.writeShort(f),i.writeShort(c),i.writeShort(o),i.writeShort(u),a=16*f,l=i.pos+a,s=null,p=[],t)for(h=t[v],i.writeString(v),i.writeInt(r(h)),i.writeInt(l),i.writeInt(h.length),p=p.concat(h),v==="head"&&(s=l),l+=h.length;l%4;)p.push(0),l++;return i.write(p),n=2981146554-r(i.data),i.pos=s+8,i.writeUInt32(n),i.data},r=function(t){var n,i,a,o;for(t=Ek.call(t);t.length%4;)t.push(0);for(a=new Jc(t),i=0,n=0,o=t.length;n<o;n=n+=4)i+=a.readUInt32();return 4294967295&i},e}(),Kst={}.hasOwnProperty,vl=function(r,e){for(var t in e)Kst.call(e,t)&&(r[t]=e[t]);function n(){this.constructor=r}return n.prototype=e.prototype,r.prototype=new n,r.__super__=e.prototype,r};CA=function(){function r(e){var t;this.file=e,t=this.file.directory.tables[this.tag],this.exists=!!t,t&&(this.offset=t.offset,this.length=t.length,this.parse(this.file.contents))}return r.prototype.parse=function(){},r.prototype.encode=function(){},r.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},r}();var Yst=function(r){function e(){return e.__super__.constructor.apply(this,arguments)}return vl(e,CA),e.prototype.tag="head",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.revision=t.readInt(),this.checkSumAdjustment=t.readInt(),this.magicNumber=t.readInt(),this.flags=t.readShort(),this.unitsPerEm=t.readShort(),this.created=t.readLongLong(),this.modified=t.readLongLong(),this.xMin=t.readShort(),this.yMin=t.readShort(),this.xMax=t.readShort(),this.yMax=t.readShort(),this.macStyle=t.readShort(),this.lowestRecPPEM=t.readShort(),this.fontDirectionHint=t.readShort(),this.indexToLocFormat=t.readShort(),this.glyphDataFormat=t.readShort()},e.prototype.encode=function(t){var n;return(n=new Jc).writeInt(this.version),n.writeInt(this.revision),n.writeInt(this.checkSumAdjustment),n.writeInt(this.magicNumber),n.writeShort(this.flags),n.writeShort(this.unitsPerEm),n.writeLongLong(this.created),n.writeLongLong(this.modified),n.writeShort(this.xMin),n.writeShort(this.yMin),n.writeShort(this.xMax),n.writeShort(this.yMax),n.writeShort(this.macStyle),n.writeShort(this.lowestRecPPEM),n.writeShort(this.fontDirectionHint),n.writeShort(t),n.writeShort(this.glyphDataFormat),n.data},e}(),pP=function(){function r(e,t){var n,i,a,o,s,A,l,u,c,h,f,p,v,m,g,_,w;switch(this.platformID=e.readUInt16(),this.encodingID=e.readShort(),this.offset=t+e.readInt(),c=e.pos,e.pos=this.offset,this.format=e.readUInt16(),this.length=e.readUInt16(),this.language=e.readUInt16(),this.isUnicode=this.platformID===3&&this.encodingID===1&&this.format===4||this.platformID===0&&this.format===4,this.codeMap={},this.format){case 0:for(A=0;A<256;++A)this.codeMap[A]=e.readByte();break;case 4:for(f=e.readUInt16(),h=f/2,e.pos+=6,a=function(){var C,F;for(F=[],A=C=0;0<=h?C<h:C>h;A=0<=h?++C:--C)F.push(e.readUInt16());return F}(),e.pos+=2,v=function(){var C,F;for(F=[],A=C=0;0<=h?C<h:C>h;A=0<=h?++C:--C)F.push(e.readUInt16());return F}(),l=function(){var C,F;for(F=[],A=C=0;0<=h?C<h:C>h;A=0<=h?++C:--C)F.push(e.readUInt16());return F}(),u=function(){var C,F;for(F=[],A=C=0;0<=h?C<h:C>h;A=0<=h?++C:--C)F.push(e.readUInt16());return F}(),i=(this.length-e.pos+this.offset)/2,s=function(){var C,F;for(F=[],A=C=0;0<=i?C<i:C>i;A=0<=i?++C:--C)F.push(e.readUInt16());return F}(),A=g=0,w=a.length;g<w;A=++g)for(m=a[A],n=_=p=v[A];p<=m?_<=m:_>=m;n=p<=m?++_:--_)u[A]===0?o=n+l[A]:(o=s[u[A]/2+(n-p)-(h-A)]||0)!==0&&(o+=l[A]),this.codeMap[n]=65535&o}e.pos=c}return r.encode=function(e,t){var n,i,a,o,s,A,l,u,c,h,f,p,v,m,g,_,w,C,F,O,I,b,L,N,x,S,P,U,tt,q,rt,nt,At,ct,bt,M,Y,z,H,J,ot,ut,X,It,at,j;switch(U=new Jc,o=Object.keys(e).sort(function(Z,ft){return Z-ft}),t){case"macroman":for(v=0,m=function(){var Z=[];for(p=0;p<256;++p)Z.push(0);return Z}(),_={0:0},a={},tt=0,At=o.length;tt<At;tt++)_[X=e[i=o[tt]]]==null&&(_[X]=++v),a[i]={old:e[i],new:_[e[i]]},m[i]=_[e[i]];return U.writeUInt16(1),U.writeUInt16(0),U.writeUInt32(12),U.writeUInt16(0),U.writeUInt16(262),U.writeUInt16(0),U.write(m),{charMap:a,subtable:U.data,maxGlyphID:v+1};case"unicode":for(S=[],c=[],w=0,_={},n={},g=l=null,q=0,ct=o.length;q<ct;q++)_[F=e[i=o[q]]]==null&&(_[F]=++w),n[i]={old:F,new:_[F]},s=_[F]-i,g!=null&&s===l||(g&&c.push(g),S.push(i),l=s),g=i;for(g&&c.push(g),c.push(65535),S.push(65535),N=2*(L=S.length),b=2*Math.pow(Math.log(L)/Math.LN2,2),h=Math.log(b/2)/Math.LN2,I=2*L-b,A=[],O=[],f=[],p=rt=0,bt=S.length;rt<bt;p=++rt){if(x=S[p],u=c[p],x===65535){A.push(0),O.push(0);break}if(x-(P=n[x].new)>=32768)for(A.push(0),O.push(2*(f.length+L-p)),i=nt=x;x<=u?nt<=u:nt>=u;i=x<=u?++nt:--nt)f.push(n[i].new);else A.push(P-x),O.push(0)}for(U.writeUInt16(3),U.writeUInt16(1),U.writeUInt32(12),U.writeUInt16(4),U.writeUInt16(16+8*L+2*f.length),U.writeUInt16(0),U.writeUInt16(N),U.writeUInt16(b),U.writeUInt16(h),U.writeUInt16(I),ot=0,M=c.length;ot<M;ot++)i=c[ot],U.writeUInt16(i);for(U.writeUInt16(0),ut=0,Y=S.length;ut<Y;ut++)i=S[ut],U.writeUInt16(i);for(It=0,z=A.length;It<z;It++)s=A[It],U.writeUInt16(s);for(at=0,H=O.length;at<H;at++)C=O[at],U.writeUInt16(C);for(j=0,J=f.length;j<J;j++)v=f[j],U.writeUInt16(v);return{charMap:n,subtable:U.data,maxGlyphID:w+1}}},r}(),wk=function(r){function e(){return e.__super__.constructor.apply(this,arguments)}return vl(e,CA),e.prototype.tag="cmap",e.prototype.parse=function(t){var n,i,a;for(t.pos=this.offset,this.version=t.readUInt16(),a=t.readUInt16(),this.tables=[],this.unicode=null,i=0;0<=a?i<a:i>a;i=0<=a?++i:--i)n=new pP(t,this.offset),this.tables.push(n),n.isUnicode&&this.unicode==null&&(this.unicode=n);return!0},e.encode=function(t,n){var i,a;return n==null&&(n="macroman"),i=pP.encode(t,n),(a=new Jc).writeUInt16(0),a.writeUInt16(1),i.table=a.data.concat(i.subtable),i},e}(),Wst=function(r){function e(){return e.__super__.constructor.apply(this,arguments)}return vl(e,CA),e.prototype.tag="hhea",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.ascender=t.readShort(),this.decender=t.readShort(),this.lineGap=t.readShort(),this.advanceWidthMax=t.readShort(),this.minLeftSideBearing=t.readShort(),this.minRightSideBearing=t.readShort(),this.xMaxExtent=t.readShort(),this.caretSlopeRise=t.readShort(),this.caretSlopeRun=t.readShort(),this.caretOffset=t.readShort(),t.pos+=8,this.metricDataFormat=t.readShort(),this.numberOfMetrics=t.readUInt16()},e}(),zst=function(r){function e(){return e.__super__.constructor.apply(this,arguments)}return vl(e,CA),e.prototype.tag="OS/2",e.prototype.parse=function(t){if(t.pos=this.offset,this.version=t.readUInt16(),this.averageCharWidth=t.readShort(),this.weightClass=t.readUInt16(),this.widthClass=t.readUInt16(),this.type=t.readShort(),this.ySubscriptXSize=t.readShort(),this.ySubscriptYSize=t.readShort(),this.ySubscriptXOffset=t.readShort(),this.ySubscriptYOffset=t.readShort(),this.ySuperscriptXSize=t.readShort(),this.ySuperscriptYSize=t.readShort(),this.ySuperscriptXOffset=t.readShort(),this.ySuperscriptYOffset=t.readShort(),this.yStrikeoutSize=t.readShort(),this.yStrikeoutPosition=t.readShort(),this.familyClass=t.readShort(),this.panose=function(){var n,i;for(i=[],n=0;n<10;++n)i.push(t.readByte());return i}(),this.charRange=function(){var n,i;for(i=[],n=0;n<4;++n)i.push(t.readInt());return i}(),this.vendorID=t.readString(4),this.selection=t.readShort(),this.firstCharIndex=t.readShort(),this.lastCharIndex=t.readShort(),this.version>0&&(this.ascent=t.readShort(),this.descent=t.readShort(),this.lineGap=t.readShort(),this.winAscent=t.readShort(),this.winDescent=t.readShort(),this.codePageRange=function(){var n,i;for(i=[],n=0;n<2;n=++n)i.push(t.readInt());return i}(),this.version>1))return this.xHeight=t.readShort(),this.capHeight=t.readShort(),this.defaultChar=t.readShort(),this.breakChar=t.readShort(),this.maxContext=t.readShort()},e}(),Xst=function(r){function e(){return e.__super__.constructor.apply(this,arguments)}return vl(e,CA),e.prototype.tag="post",e.prototype.parse=function(t){var n,i,a;switch(t.pos=this.offset,this.format=t.readInt(),this.italicAngle=t.readInt(),this.underlinePosition=t.readShort(),this.underlineThickness=t.readShort(),this.isFixedPitch=t.readInt(),this.minMemType42=t.readInt(),this.maxMemType42=t.readInt(),this.minMemType1=t.readInt(),this.maxMemType1=t.readInt(),this.format){case 65536:break;case 131072:var o;for(i=t.readUInt16(),this.glyphNameIndex=[],o=0;0<=i?o<i:o>i;o=0<=i?++o:--o)this.glyphNameIndex.push(t.readUInt16());for(this.names=[],a=[];t.pos<this.offset+this.length;)n=t.readByte(),a.push(this.names.push(t.readString(n)));return a;case 151552:return i=t.readUInt16(),this.offsets=t.read(i);case 196608:break;case 262144:return this.map=function(){var s,A,l;for(l=[],o=s=0,A=this.file.maxp.numGlyphs;0<=A?s<A:s>A;o=0<=A?++s:--s)l.push(t.readUInt32());return l}.call(this)}},e}(),qst=function(r,e){this.raw=r,this.length=r.length,this.platformID=e.platformID,this.encodingID=e.encodingID,this.languageID=e.languageID},Zst=function(r){function e(){return e.__super__.constructor.apply(this,arguments)}return vl(e,CA),e.prototype.tag="name",e.prototype.parse=function(t){var n,i,a,o,s,A,l,u,c,h,f;for(t.pos=this.offset,t.readShort(),n=t.readShort(),A=t.readShort(),i=[],o=0;0<=n?o<n:o>n;o=0<=n?++o:--o)i.push({platformID:t.readShort(),encodingID:t.readShort(),languageID:t.readShort(),nameID:t.readShort(),length:t.readShort(),offset:this.offset+A+t.readShort()});for(l={},o=c=0,h=i.length;c<h;o=++c)a=i[o],t.pos=a.offset,u=t.readString(a.length),s=new qst(u,a),l[f=a.nameID]==null&&(l[f]=[]),l[a.nameID].push(s);this.strings=l,this.copyright=l[0],this.fontFamily=l[1],this.fontSubfamily=l[2],this.uniqueSubfamily=l[3],this.fontName=l[4],this.version=l[5];try{this.postscriptName=l[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch{this.postscriptName=l[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=l[7],this.manufacturer=l[8],this.designer=l[9],this.description=l[10],this.vendorUrl=l[11],this.designerUrl=l[12],this.license=l[13],this.licenseUrl=l[14],this.preferredFamily=l[15],this.preferredSubfamily=l[17],this.compatibleFull=l[18],this.sampleText=l[19]},e}(),Jst=function(r){function e(){return e.__super__.constructor.apply(this,arguments)}return vl(e,CA),e.prototype.tag="maxp",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.numGlyphs=t.readUInt16(),this.maxPoints=t.readUInt16(),this.maxContours=t.readUInt16(),this.maxCompositePoints=t.readUInt16(),this.maxComponentContours=t.readUInt16(),this.maxZones=t.readUInt16(),this.maxTwilightPoints=t.readUInt16(),this.maxStorage=t.readUInt16(),this.maxFunctionDefs=t.readUInt16(),this.maxInstructionDefs=t.readUInt16(),this.maxStackElements=t.readUInt16(),this.maxSizeOfInstructions=t.readUInt16(),this.maxComponentElements=t.readUInt16(),this.maxComponentDepth=t.readUInt16()},e}(),tAt=function(r){function e(){return e.__super__.constructor.apply(this,arguments)}return vl(e,CA),e.prototype.tag="hmtx",e.prototype.parse=function(t){var n,i,a,o,s,A,l;for(t.pos=this.offset,this.metrics=[],n=0,A=this.file.hhea.numberOfMetrics;0<=A?n<A:n>A;n=0<=A?++n:--n)this.metrics.push({advance:t.readUInt16(),lsb:t.readInt16()});for(a=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var u,c;for(c=[],n=u=0;0<=a?u<a:u>a;n=0<=a?++u:--u)c.push(t.readInt16());return c}(),this.widths=function(){var u,c,h,f;for(f=[],u=0,c=(h=this.metrics).length;u<c;u++)o=h[u],f.push(o.advance);return f}.call(this),i=this.widths[this.widths.length-1],l=[],n=s=0;0<=a?s<a:s>a;n=0<=a?++s:--s)l.push(this.widths.push(i));return l},e.prototype.forGlyph=function(t){return t in this.metrics?this.metrics[t]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[t-this.metrics.length]}},e}(),Ek=[].slice,eAt=function(r){function e(){return e.__super__.constructor.apply(this,arguments)}return vl(e,CA),e.prototype.tag="glyf",e.prototype.parse=function(){return this.cache={}},e.prototype.glyphFor=function(t){var n,i,a,o,s,A,l,u,c,h;return t in this.cache?this.cache[t]:(o=this.file.loca,n=this.file.contents,i=o.indexOf(t),(a=o.lengthOf(t))===0?this.cache[t]=null:(n.pos=this.offset+i,s=(A=new Jc(n.read(a))).readShort(),u=A.readShort(),h=A.readShort(),l=A.readShort(),c=A.readShort(),this.cache[t]=s===-1?new nAt(A,u,h,l,c):new rAt(A,s,u,h,l,c),this.cache[t]))},e.prototype.encode=function(t,n,i){var a,o,s,A,l;for(s=[],o=[],A=0,l=n.length;A<l;A++)a=t[n[A]],o.push(s.length),a&&(s=s.concat(a.encode(i)));return o.push(s.length),{table:s,offsets:o}},e}(),rAt=function(){function r(e,t,n,i,a,o){this.raw=e,this.numberOfContours=t,this.xMin=n,this.yMin=i,this.xMax=a,this.yMax=o,this.compound=!1}return r.prototype.encode=function(){return this.raw.data},r}(),nAt=function(){function r(e,t,n,i,a){var o,s;for(this.raw=e,this.xMin=t,this.yMin=n,this.xMax=i,this.yMax=a,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],o=this.raw;s=o.readShort(),this.glyphOffsets.push(o.pos),this.glyphIDs.push(o.readUInt16()),32&s;)o.pos+=1&s?4:2,128&s?o.pos+=8:64&s?o.pos+=4:8&s&&(o.pos+=2)}return r.prototype.encode=function(){var e,t,n;for(t=new Jc(Ek.call(this.raw.data)),e=0,n=this.glyphIDs.length;e<n;++e)t.pos=this.glyphOffsets[e];return t.data},r}(),iAt=function(r){function e(){return e.__super__.constructor.apply(this,arguments)}return vl(e,CA),e.prototype.tag="loca",e.prototype.parse=function(t){var n,i;return t.pos=this.offset,n=this.file.head.indexToLocFormat,this.offsets=n===0?function(){var a,o;for(o=[],i=0,a=this.length;i<a;i+=2)o.push(2*t.readUInt16());return o}.call(this):function(){var a,o;for(o=[],i=0,a=this.length;i<a;i+=4)o.push(t.readUInt32());return o}.call(this)},e.prototype.indexOf=function(t){return this.offsets[t]},e.prototype.lengthOf=function(t){return this.offsets[t+1]-this.offsets[t]},e.prototype.encode=function(t,n){for(var i=new Uint32Array(this.offsets.length),a=0,o=0,s=0;s<i.length;++s)if(i[s]=a,o<n.length&&n[o]==s){++o,i[s]=a;var A=this.offsets[s],l=this.offsets[s+1]-A;l>0&&(a+=l)}for(var u=new Array(4*i.length),c=0;c<i.length;++c)u[4*c+3]=255&i[c],u[4*c+2]=(65280&i[c])>>8,u[4*c+1]=(16711680&i[c])>>16,u[4*c]=(4278190080&i[c])>>24;return u},e}(),aAt=function(){function r(e){this.font=e,this.subset={},this.unicodes={},this.next=33}return r.prototype.generateCmap=function(){var e,t,n,i,a;for(t in i=this.font.cmap.tables[0].codeMap,e={},a=this.subset)n=a[t],e[t]=i[n];return e},r.prototype.glyphsFor=function(e){var t,n,i,a,o,s,A;for(i={},o=0,s=e.length;o<s;o++)i[a=e[o]]=this.font.glyf.glyphFor(a);for(a in t=[],i)(n=i[a])!=null&&n.compound&&t.push.apply(t,n.glyphIDs);if(t.length>0)for(a in A=this.glyphsFor(t))n=A[a],i[a]=n;return i},r.prototype.encode=function(e,t){var n,i,a,o,s,A,l,u,c,h,f,p,v,m,g;for(i in n=wk.encode(this.generateCmap(),"unicode"),o=this.glyphsFor(e),f={0:0},g=n.charMap)f[(A=g[i]).old]=A.new;for(p in h=n.maxGlyphID,o)p in f||(f[p]=h++);return u=function(_){var w,C;for(w in C={},_)C[_[w]]=w;return C}(f),c=Object.keys(u).sort(function(_,w){return _-w}),v=function(){var _,w,C;for(C=[],_=0,w=c.length;_<w;_++)s=c[_],C.push(u[s]);return C}(),a=this.font.glyf.encode(o,v,f),l=this.font.loca.encode(a.offsets,v),m={cmap:this.font.cmap.raw(),glyf:a.table,loca:l,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(t)},this.font.os2.exists&&(m["OS/2"]=this.font.os2.raw()),this.font.directory.encode(m)},r}();Ke.API.PDFObject=function(){var r;function e(){}return r=function(t,n){return(Array(n+1).join("0")+t).slice(-n)},e.convert=function(t){var n,i,a,o;if(Array.isArray(t))return"["+function(){var s,A,l;for(l=[],s=0,A=t.length;s<A;s++)n=t[s],l.push(e.convert(n));return l}().join(" ")+"]";if(typeof t=="string")return"/"+t;if(t!=null&&t.isString)return"("+t+")";if(t instanceof Date)return"(D:"+r(t.getUTCFullYear(),4)+r(t.getUTCMonth(),2)+r(t.getUTCDate(),2)+r(t.getUTCHours(),2)+r(t.getUTCMinutes(),2)+r(t.getUTCSeconds(),2)+"Z)";if({}.toString.call(t)==="[object Object]"){for(i in a=["<<"],t)o=t[i],a.push("/"+i+" "+e.convert(o));return a.push(">>"),a.join(`
|
||
`)}return""+t},e}();const oAt={name:"ol-control-printdialog",setup(r,e){const{control:t}=Wi(Un,r,e);return t.value.on(["print","error"],function(n){if(n.image)if(n.pdf){var i=new Ke({orientation:n.print.orientation,unit:n.print.unit,format:n.print.size});i.addImage(n.image,"JPEG",n.print.position[0],n.print.position[0],n.print.imageWidth,n.print.imageHeight),i.save(n.print.legend?"legend.pdf":"map.pdf")}else n.canvas.toBlob(function(a){var o=(n.print.legend?"legend.":"map.")+n.imageType.replace("image/","");HF.exports.saveAs(a,o)},n.imageType,n.quality);else console.warn("No canvas to export")}),{control:t}},props:{lang:{type:String}}};function sAt(r,e,t,n,i,a){return Rr("",!0)}var sx=me(oAt,[["render",sAt]]),Ap=function(r){r||(r={});var e=yt.create("DIV",{className:(r.className||"ol-videorec")+" ol-unselectable ol-control"});yt.create("BUTTON",{type:"button",className:"ol-start",title:"start",click:function(){this.start()}.bind(this),parent:e}),yt.create("BUTTON",{type:"button",className:"ol-stop",title:"stop",click:function(){this.stop()}.bind(this),parent:e}),yt.create("BUTTON",{type:"button",className:"ol-pause",title:"pause",click:function(){this.pause()}.bind(this),parent:e}),yt.create("BUTTON",{type:"button",className:"ol-resume",title:"resume",click:function(){this.resume()}.bind(this),parent:e}),Mr.call(this,{element:e,target:r.target}),this.set("framerate",30),this.set("videoBitsPerSecond",5e6),r.videoTarget==="DIALOG"?(this._dialog=new Xa({className:"ol-fullscreen-dialog",target:document.body,closeBox:!0}),this._videoTarget=this._dialog.getContentElement()):this._videoTarget=r.videoTarget,this._printCtrl=new sh({target:yt.create("DIV")})};Dr(Ap,Mr);Ap.prototype.setMap=function(r){this.getMap()&&(this.getMap().removeControl(this._printCtrl),this._dialog&&this.getMap().removeControl(this._dialog)),Mr.prototype.setMap.call(this,r),this.getMap()&&(this.getMap().addControl(this._printCtrl),this._dialog&&this.getMap().addControl(this._dialog))};Ap.prototype.start=function(){var r=this._printCtrl,e=!1;function t(n){e||r.fastPrint({canvas:n},t)}r.fastPrint({},function(n){var i;try{i=n.captureStream(this.get("framerate")||30)}catch(o){this.dispatchEvent({type:"error",error:o});return}this._mediaRecorder=new MediaRecorder(i,{videoBitsPerSecond:this.get("videoBitsPerSecond")||5e6});var a=[];this._mediaRecorder.ondataavailable=function(o){a.push(o.data)},this._mediaRecorder.onstop=function(){e=!0;var o=new Blob(a,{type:"video/mp4"});if(a=[],this._videoTarget instanceof Element){var s;this._videoTarget.tagName==="VIDEO"?s=this._videoTarget:(s=this._videoTarget.querySelector("video"),s||(s=yt.create("VIDEO",{controls:"",parent:this._videoTarget}))),this._dialog&&this._dialog.show(),s.src=URL.createObjectURL(o),this.dispatchEvent({type:"stop",videoURL:s.src})}else this.dispatchEvent({type:"stop",videoURL:URL.createObjectURL(o)})}.bind(this),this._mediaRecorder.onpause=function(){e=!0,this.dispatchEvent({type:"pause"})}.bind(this),this._mediaRecorder.onresume=function(){e=!1,t(n),this.dispatchEvent({type:"resume"})}.bind(this),this._mediaRecorder.onerror=function(o){this.dispatchEvent({type:"error",error:o})}.bind(this),e=!1,t(n),this._mediaRecorder.start(),this.dispatchEvent({type:"start",canvas:n}),this.element.setAttribute("data-state","rec")}.bind(this))};Ap.prototype.stop=function(){this._mediaRecorder&&(this._mediaRecorder.stop(),this._mediaRecorder=null,this.element.setAttribute("data-state","inactive"))};Ap.prototype.pause=function(){this._mediaRecorder&&(this._mediaRecorder.pause(),this.element.setAttribute("data-state","pause"))};Ap.prototype.resume=function(){this._mediaRecorder&&(this._mediaRecorder.resume(),this.element.setAttribute("data-state","rec"))};const AAt={name:"ol-control-videorecorder",emits:["start","stop"],setup(r,e){const{control:t}=Wi(Ap,r,e),{downloadName:n}=kc(r);return t.value.on("start",i=>{e.emit("start",i)}),t.value.on("stop",i=>{e.emit("stop",i),HF.exports.saveAs(i.videoURL,n.value)}),{control:t}},props:{className:{type:String},framerate:{type:Number,default:30},videoBitsPerSecond:{type:Number,default:5e6},videoTarget:{type:String},downloadName:{type:String,default:"mapVideo.mp4"}}};function lAt(r,e,t,n,i,a){return Rr("",!0)}var Ax=me(AAt,[["render",lAt]]),bc={IMAGE:"image",HYBRID:"hybrid",VECTOR:"vector"},uAt=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),cAt={image:[wr.POLYGON,wr.CIRCLE,wr.LINE_STRING,wr.IMAGE,wr.TEXT],hybrid:[wr.POLYGON,wr.LINE_STRING],vector:[]},hAt={hybrid:[wr.IMAGE,wr.TEXT,wr.DEFAULT],vector:[wr.POLYGON,wr.CIRCLE,wr.LINE_STRING,wr.IMAGE,wr.TEXT,wr.DEFAULT]},fAt=function(r){uAt(e,r);function e(t){var n=r.call(this,t)||this;return n.boundHandleStyleImageChange_=n.handleStyleImageChange_.bind(n),n.dirty_=!1,n.renderedLayerRevision_,n.renderedPixelToCoordinateTransform_=null,n.renderedRotation_,n.tmpTransform_=Ti(),n}return e.prototype.prepareTile=function(t,n,i){var a,o=t.getState();return(o===be.LOADED||o===be.ERROR)&&(this.updateExecutorGroup_(t,n,i),this.tileImageNeedsRender_(t)&&(a=!0)),a},e.prototype.getTile=function(t,n,i,a){var o=a.pixelRatio,s=a.viewState,A=s.resolution,l=s.projection,u=this.getLayer(),c=u.getSource().getTile(t,n,i,o,l),h=a.viewHints,f=!(h[Sn.ANIMATING]||h[Sn.INTERACTING]);(f||!c.wantedResolution)&&(c.wantedResolution=A);var p=this.prepareTile(c,o,l);return p&&(f||Date.now()-a.time<8)&&u.getRenderMode()!==bc.VECTOR&&this.renderTileImage_(c,a),r.prototype.getTile.call(this,t,n,i,a)},e.prototype.isDrawableTile=function(t){var n=this.getLayer();return r.prototype.isDrawableTile.call(this,t)&&(n.getRenderMode()===bc.VECTOR?Ee(n)in t.executorGroups:t.hasContext(n))},e.prototype.getTileImage=function(t){return t.getImage(this.getLayer())},e.prototype.prepareFrame=function(t){var n=this.getLayer().getRevision();return this.renderedLayerRevision_!=n&&(this.renderedTiles.length=0),this.renderedLayerRevision_=n,r.prototype.prepareFrame.call(this,t)},e.prototype.updateExecutorGroup_=function(t,n,i){var a=this.getLayer(),o=a.getRevision(),s=a.getRenderOrder()||null,A=t.wantedResolution,l=t.getReplayState(a);if(!(!l.dirty&&l.renderedResolution===A&&l.renderedRevision==o&&l.renderedRenderOrder==s)){var u=a.getSource(),c=a.getDeclutter(),h=u.getTileGrid(),f=u.getTileGridForProjection(i),p=f.getTileCoordExtent(t.wrappedTileCoord),v=u.getSourceTiles(n,i,t),m=Ee(a);delete t.hitDetectionImageData[m],t.executorGroups[m]=[],c&&(t.declutterExecutorGroups[m]=[]);for(var g=function(F,O){var I=v[F];if(I.getState()!=be.LOADED)return"continue";var b=I.tileCoord,L=h.getTileCoordExtent(b),N=Ps(p,L),x=go(N,a.getRenderBuffer()*A,_.tmpExtent),S=ul(L,N)?null:x;l.dirty=!1;var P=new rw(0,x,A,n),U=c?new rw(0,N,A,n):void 0,tt=k4(A,n),q=function(H){var J,ot=H.getStyleFunction()||a.getStyleFunction();if(ot&&(J=ot(H,A)),J){var ut=this.renderFeature(H,tt,J,P,U);this.dirty_=this.dirty_||ut,l.dirty=l.dirty||ut}},rt=I.getFeatures();s&&s!==l.renderedRenderOrder&&rt.sort(s);for(var nt=0,At=rt.length;nt<At;++nt){var ct=rt[nt];(!S||Wn(S,ct.getGeometry().getExtent()))&&q.call(_,ct)}var bt=P.finish(),M=a.getRenderMode()!==bc.VECTOR&&c&&v.length===1?null:N,Y=new nw(M,A,n,u.getOverlaps(),bt,a.getRenderBuffer());if(t.executorGroups[m].push(Y),U){var z=new nw(null,A,n,u.getOverlaps(),U.finish(),a.getRenderBuffer());t.declutterExecutorGroups[m].push(z)}},_=this,w=0,C=v.length;w<C;++w)g(w);l.renderedRevision=o,l.renderedRenderOrder=s,l.renderedResolution=A}},e.prototype.forEachFeatureAtCoordinate=function(t,n,i,a,o){var s=n.viewState.resolution,A=n.viewState.rotation;i=i??0;var l=this.getLayer(),u=l.getSource(),c=u.getTileGridForProjection(n.viewState.projection),h=ia([t]);go(h,s*i,h);for(var f={},p=function(C,F,O){var I=C.getId();I===void 0&&(I=Ee(C));var b=f[I];if(b){if(b!==!0&&O<b.distanceSq){if(O===0)return f[I]=!0,o.splice(o.lastIndexOf(b),1),a(C,l,F);b.geometry=F,b.distanceSq=O}}else{if(O===0)return f[I]=!0,a(C,l,F);o.push(f[I]={feature:C,layer:l,geometry:F,distanceSq:O,callback:a})}},v=this.renderedTiles,m,g=function(C,F){var O=v[C],I=c.getTileCoordExtent(O.wrappedTileCoord);if(!Wn(I,h))return"continue";var b=Ee(l),L=[O.executorGroups[b]],N=O.declutterExecutorGroups[b];N&&L.push(N),L.some(function(x){for(var S=x===N?n.declutterTree.all().map(function(q){return q.value}):null,P=0,U=x.length;P<U;++P){var tt=x[P];if(m=tt.forEachFeatureAtCoordinate(t,s,A,i,p,S),m)return!0}})},_=0,w=v.length;!m&&_<w;++_)g(_);return m},e.prototype.getFeatures=function(t){return new Promise(function(n,i){for(var a=this.getLayer(),o=Ee(a),s=a.getSource(),A=this.renderedProjection,l=A.getExtent(),u=this.renderedResolution,c=s.getTileGridForProjection(A),h=Bn(this.renderedPixelToCoordinateTransform_,t.slice()),f=c.getTileCoordForCoordAndResolution(h,u),p,v=0,m=this.renderedTiles.length;v<m;++v)if(f.toString()===this.renderedTiles[v].tileCoord.toString()){if(p=this.renderedTiles[v],p.getState()===be.LOADED){var g=c.getTileCoordExtent(p.tileCoord);s.getWrapX()&&A.canWrapX()&&!us(l,g)&&XL(h,A);break}p=void 0}if(!p||p.loadingSourceTiles>0){n([]);return}var _=c.getTileCoordExtent(p.wrappedTileCoord),w=_A(_),C=[(h[0]-w[0])/u,(w[1]-h[1])/u],F=p.getSourceTiles().reduce(function(N,x){return N.concat(x.getFeatures())},[]),O=p.hitDetectionImageData[o];if(!O&&!this.animatingOrInteracting_){var I=ji(c.getTileSize(c.getZForResolution(u))),b=this.renderedRotation_,L=[this.getRenderTransform(c.getTileCoordCenter(p.wrappedTileCoord),u,0,ls,I[0]*ls,I[1]*ls,0)];O=U4(I,L,F,a.getStyleFunction(),c.getTileCoordExtent(p.wrappedTileCoord),p.getReplayState(a).renderedResolution,b),p.hitDetectionImageData[o]=O}n(D4(C,F,O))}.bind(this))},e.prototype.handleFontsChanged=function(){var t=this.getLayer();t.getVisible()&&this.renderedLayerRevision_!==void 0&&t.changed()},e.prototype.handleStyleImageChange_=function(t){this.renderIfReadyAndVisible()},e.prototype.renderDeclutter=function(t){var n=this.context,i=n.globalAlpha;n.globalAlpha=this.getLayer().getOpacity();for(var a=t.viewHints,o=!(a[Sn.ANIMATING]||a[Sn.INTERACTING]),s=this.renderedTiles,A=0,l=s.length;A<l;++A){var u=s[A],c=u.declutterExecutorGroups[Ee(this.getLayer())];if(c)for(var h=c.length-1;h>=0;--h)c[h].execute(this.context,1,this.getTileRenderTransform(u,t),t.viewState.rotation,o,void 0,t.declutterTree)}n.globalAlpha=i},e.prototype.getTileRenderTransform=function(t,n){var i=n.pixelRatio,a=n.viewState,o=a.center,s=a.resolution,A=a.rotation,l=n.size,u=Math.round(l[0]*i),c=Math.round(l[1]*i),h=this.getLayer().getSource(),f=h.getTileGridForProjection(n.viewState.projection),p=t.tileCoord,v=f.getTileCoordExtent(t.wrappedTileCoord),m=f.getTileCoordExtent(p,this.tmpExtent)[0]-v[0],g=bv(Cm(this.inversePixelTransform.slice(),1/i,1/i),this.getRenderTransform(o,s,A,i,u,c,m));return g},e.prototype.renderFrame=function(t,n){var i=t.viewHints,a=!(i[Sn.ANIMATING]||i[Sn.INTERACTING]);r.prototype.renderFrame.call(this,t,n),this.renderedPixelToCoordinateTransform_=t.pixelToCoordinateTransform.slice(),this.renderedRotation_=t.viewState.rotation;var o=this.getLayer(),s=o.getRenderMode(),A=this.context,l=A.globalAlpha;A.globalAlpha=o.getOpacity();for(var u=hAt[s],c=t.viewState,h=c.rotation,f=o.getSource(),p=f.getTileGridForProjection(c.projection),v=p.getZForResolution(c.resolution,f.zDirection),m=this.renderedTiles,g=[],_=[],w=m.length-1;w>=0;--w){var C=m[w],F=C.executorGroups[Ee(o)].filter(function(q){return q.hasExecutors(u)});if(F.length!==0){for(var O=this.getTileRenderTransform(C,t),I=C.tileCoord[0],b=!1,L=F[0].getClipCoords(O),N=0,x=g.length;N<x;++N)if(v!==I&&I<_[N]){var S=g[N];Wn([L[0],L[3],L[4],L[7]],[S[0],S[3],S[4],S[7]])&&(b||(A.save(),b=!0),A.beginPath(),A.moveTo(L[0],L[1]),A.lineTo(L[2],L[3]),A.lineTo(L[4],L[5]),A.lineTo(L[6],L[7]),A.moveTo(S[6],S[7]),A.lineTo(S[4],S[5]),A.lineTo(S[2],S[3]),A.lineTo(S[0],S[1]),A.clip())}g.push(L),_.push(I);for(var P=0,U=F.length;P<U;++P){var tt=F[P];tt.execute(A,1,O,h,a,u)}b&&A.restore()}}return A.globalAlpha=l,this.container},e.prototype.renderFeature=function(t,n,i,a,o){if(!i)return!1;var s=!1;if(Array.isArray(i))for(var A=0,l=i.length;A<l;++A)s=iw(a,t,i[A],n,this.boundHandleStyleImageChange_,void 0,o)||s;else s=iw(a,t,i,n,this.boundHandleStyleImageChange_,void 0,o);return s},e.prototype.tileImageNeedsRender_=function(t){var n=this.getLayer();if(n.getRenderMode()===bc.VECTOR)return!1;var i=t.getReplayState(n),a=n.getRevision(),o=t.wantedResolution;return i.renderedTileResolution!==o||i.renderedTileRevision!==a},e.prototype.renderTileImage_=function(t,n){var i=this.getLayer(),a=t.getReplayState(i),o=i.getRevision(),s=t.executorGroups[Ee(i)];a.renderedTileRevision=o;var A=t.wrappedTileCoord,l=A[0],u=i.getSource(),c=n.pixelRatio,h=n.viewState,f=h.projection,p=u.getTileGridForProjection(f),v=p.getResolution(t.tileCoord[0]),m=n.pixelRatio/t.wantedResolution*v,g=p.getResolution(l),_=t.getContext(i);c=Math.round(Math.max(c,m/c));var w=u.getTilePixelSize(l,c,f);_.canvas.width=w[0],_.canvas.height=w[1];var C=c/m;if(C!==1){var F=Em(this.tmpTransform_);Cm(F,C,C),_.setTransform.apply(_,F)}var O=p.getTileCoordExtent(A,this.tmpExtent),I=m/g,b=Em(this.tmpTransform_);Cm(b,I,-I),mY(b,-O[0],-O[3]);for(var L=0,N=s.length;L<N;++L){var x=s[L];x.execute(_,C,b,0,!0,cAt[i.getRenderMode()])}a.renderedTileResolution=t.wantedResolution},e}(C8),pAt=fAt,dAt=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),vAt=function(r){dAt(e,r);function e(t){var n=this,i=t||{},a=Ce({},i);delete a.preload,delete a.useInterimTilesOnError,n=r.call(this,a)||this,n.on,n.once,n.un,i.renderMode===bc.IMAGE&&(console.warn('renderMode: "image" is deprecated. Option ignored.'),i.renderMode=void 0);var o=i.renderMode||bc.HYBRID;return Le(o==bc.HYBRID||o==bc.VECTOR,28),n.renderMode_=o,n.setPreload(i.preload?i.preload:0),n.setUseInterimTilesOnError(i.useInterimTilesOnError!==void 0?i.useInterimTilesOnError:!0),n.getBackground,n.setBackground,n}return e.prototype.createRenderer=function(){return new pAt(this)},e.prototype.getFeatures=function(t){return r.prototype.getFeatures.call(this,t)},e.prototype.getRenderMode=function(){return this.renderMode_},e.prototype.getPreload=function(){return this.get(Ec.PRELOAD)},e.prototype.getUseInterimTilesOnError=function(){return this.get(Ec.USE_INTERIM_TILES_ON_ERROR)},e.prototype.setPreload=function(t){this.set(Ec.PRELOAD,t)},e.prototype.setUseInterimTilesOnError=function(t){this.set(Ec.USE_INTERIM_TILES_ON_ERROR,t)},e}(ME),gAt=vAt,rn=function(r){r=r||{};var e=this;this.dcount=0,this.show_progress=r.show_progress,this.oninfo=typeof r.oninfo=="function"?r.oninfo:null,this.onextent=typeof r.onextent=="function"?r.onextent:null,this.hasextent=r.extent||r.onextent,this.hastrash=r.trash,this.reordering=r.reordering!==!1,this._layers=[],this._layerGroup=r.layerGroup&&r.layerGroup.getLayers?r.layerGroup:null,this.onchangeCheck=typeof r.onchangeCheck=="function"?r.onchangeCheck:null,typeof r.displayInLayerSwitcher=="function"&&(this.displayInLayerSwitcher=r.displayInLayerSwitcher);var t;r.target?t=yt.create("DIV",{className:r.switcherClass||"ol-layerswitcher"}):(t=yt.create("DIV",{className:(r.switcherClass||"ol-layerswitcher")+" ol-unselectable ol-control"}),r.collapsed!==!1?t.classList.add("ol-collapsed"):t.classList.add("ol-forceopen"),this.button=yt.create("BUTTON",{type:"button",parent:t}),this.button.addEventListener("touchstart",function(n){t.classList.toggle("ol-forceopen"),t.classList.add("ol-collapsed"),e.dispatchEvent({type:"toggle",collapsed:t.classList.contains("ol-collapsed")}),n.preventDefault(),e.overflow()}),this.button.addEventListener("click",function(){t.classList.toggle("ol-forceopen"),t.classList.add("ol-collapsed"),e.dispatchEvent({type:"toggle",collapsed:!t.classList.contains("ol-forceopen")}),e.overflow()}),r.mouseover&&(t.addEventListener("mouseleave",function(){t.classList.add("ol-collapsed"),e.dispatchEvent({type:"toggle",collapsed:!0})}),t.addEventListener("mouseover",function(){t.classList.remove("ol-collapsed"),e.dispatchEvent({type:"toggle",collapsed:!1})})),r.minibar&&(r.noScroll=!0),r.noScroll||(this.topv=yt.create("DIV",{className:"ol-switchertopdiv",parent:t,click:function(){e.overflow("+50%")}}),this.botv=yt.create("DIV",{className:"ol-switcherbottomdiv",parent:t,click:function(){e.overflow("-50%")}})),this._noScroll=r.noScroll),this.panel_=yt.create("UL",{className:"panel"}),this.panelContainer_=yt.create("DIV",{className:"panel-container",html:this.panel_,parent:t}),!r.target&&!r.noScroll&&yt.addListener(this.panel_,"mousewheel DOMMouseScroll onmousewheel",function(n){e.overflow(Math.max(-1,Math.min(1,n.wheelDelta||-n.detail)))&&(n.stopPropagation(),n.preventDefault())}),this.header_=yt.create("LI",{className:"ol-header",parent:this.panel_}),Mr.call(this,{element:t,target:r.target}),this.set("drawDelay",r.drawDelay||0),this.set("selection",r.selection),r.minibar&&setTimeout(function(){var n=yt.scrollDiv(this.panelContainer_,{mousewheel:!0,vertical:!0,minibar:!0});this.on(["drawlist","toggle"],function(){n.refresh()})}.bind(this))};Dr(rn,Mr);rn.prototype.tip={up:"up/down",down:"down",info:"informations...",extent:"zoom to extent",trash:"remove layer",plus:"expand/shrink"};rn.prototype.displayInLayerSwitcher=function(r){return r.get("displayInLayerSwitcher")!==!1};rn.prototype.setMap=function(r){if(Mr.prototype.setMap.call(this,r),this.drawPanel(),this._listener)for(var e in this._listener)ds(this._listener[e]);this._listener=null,r&&(this._listener={moveend:r.on("moveend",this.viewChange.bind(this)),size:r.on("change:size",this.overflow.bind(this))},this._layerGroup?this._listener.change=this._layerGroup.getLayers().on("change:length",this.drawPanel.bind(this)):this._listener.change=r.getLayerGroup().getLayers().on("change:length",this.drawPanel.bind(this)))};rn.prototype.show=function(){this.element.classList.add("ol-forceopen"),this.overflow(),self.dispatchEvent({type:"toggle",collapsed:!1})};rn.prototype.hide=function(){this.element.classList.remove("ol-forceopen"),this.overflow(),self.dispatchEvent({type:"toggle",collapsed:!0})};rn.prototype.toggle=function(){this.element.classList.toggle("ol-forceopen"),this.overflow()};rn.prototype.isOpen=function(){return this.element.classList.contains("ol-forceopen")};rn.prototype.setHeader=function(r){yt.setHTML(this.header_,r)};rn.prototype.overflow=function(r){if(this.button&&!this._noScroll){if(yt.hidden(this.panel_)){yt.setStyle(this.element,{height:"auto"});return}var e=yt.outerHeight(this.element),t=yt.outerHeight(this.panel_),n=this.button.offsetTop+yt.outerHeight(this.button),i=this.panel_.offsetTop-n;if(t>e-n){yt.setStyle(this.element,{height:"100%"});var a=this.panel_.querySelectorAll("li.visible .li-content")[0],o=a?2*yt.getStyle(a,"height"):0;switch(r){case 1:i+=o;break;case-1:i-=o;break;case"+50%":i+=Math.round(e/2);break;case"-50%":i-=Math.round(e/2);break}return i+t<=e-3*n/2?(i=e-3*n/2-t,yt.hide(this.botv)):yt.show(this.botv),i>=0?(i=0,yt.hide(this.topv)):yt.show(this.topv),yt.setStyle(this.panel_,{top:i+"px"}),!0}else return yt.setStyle(this.element,{height:"auto"}),yt.setStyle(this.panel_,{top:0}),yt.hide(this.botv),yt.hide(this.topv),!1}else return!1};rn.prototype._setLayerForLI=function(r,e){var t=[];e.getLayers&&t.push(e.getLayers().on("change:length",this.drawPanel.bind(this))),r&&(t.push(e.on("change:opacity",function(){this.setLayerOpacity(e,r)}.bind(this))),t.push(e.on("change:visible",function(){this.setLayerVisibility(e,r)}.bind(this)))),t.push(e.on("propertychange",function(n){(n.key==="displayInLayerSwitcher"||n.key==="openInLayerSwitcher")&&this.drawPanel(n)}.bind(this))),this._layers.push({li:r,layer:e,listeners:t})};rn.prototype.setLayerOpacity=function(r,e){var t=e.querySelector(".layerswitcher-opacity-cursor");t&&(t.style.left=r.getOpacity()*100+"%"),this.dispatchEvent({type:"layer:opacity",layer:r})};rn.prototype.setLayerVisibility=function(r,e){var t=e.querySelector(".ol-visibility");t&&(t.checked=r.getVisible()),r.getVisible()?e.classList.add("ol-visible"):e.classList.remove("ol-visible"),this.dispatchEvent({type:"layer:visible",layer:r})};rn.prototype._clearLayerForLI=function(){this._layers.forEach(function(r){r.listeners.forEach(function(e){ds(e)})}),this._layers=[]};rn.prototype._getLayerForLI=function(r){for(var e=0,t;t=this._layers[e];e++)if(t.li===r)return t.layer;return null};rn.prototype.viewChange=function(){this.panel_.querySelectorAll("li").forEach(function(r){var e=this._getLayerForLI(r);e&&(this.testLayerVisibility(e)?r.classList.remove("ol-layer-hidden"):r.classList.add("ol-layer-hidden"))}.bind(this))};rn.prototype.getPanel=function(){return this.panelContainer_};rn.prototype.drawPanel=function(){if(this.getMap()){var r=this;this.dcount++,setTimeout(function(){r.drawPanel_()},this.get("drawDelay")||0)}};rn.prototype.drawPanel_=function(){if(!(--this.dcount||this.dragging_)){var r=this.panelContainer_.scrollTop;this._clearLayerForLI(),this.panel_.querySelectorAll("li").forEach(function(e){e.classList.contains("ol-header")||e.remove()}.bind(this)),this._layerGroup?this.drawList(this.panel_,this._layerGroup.getLayers()):this.getMap()&&this.drawList(this.panel_,this.getMap().getLayers()),this.panelContainer_.scrollTop=r}};rn.prototype.switchLayerVisibility=function(r,e){r.get("baseLayer")?(r.getVisible()||r.setVisible(!0),e.forEach(function(t){r!==t&&t.get("baseLayer")&&t.getVisible()&&t.setVisible(!1)})):r.setVisible(!r.getVisible())};rn.prototype.testLayerVisibility=function(r){if(!this.getMap())return!0;var e=this.getMap().getView().getResolution(),t=this.getMap().getView().getZoom();if(r.getMaxResolution()<=e||r.getMinResolution()>=e)return!1;if(r.getMinZoom&&(r.getMinZoom()>=t||r.getMaxZoom()<t))return!1;var n=r.getExtent();if(n){var i=this.getMap().getView().calculateExtent(this.getMap().getSize());return Wn(i,n)}return!0};rn.prototype.dragOrdering_=function(r){r.stopPropagation(),r.preventDefault();var e=this,t=r.currentTarget.parentNode.parentNode,n=!0,i=this.panel_,a,o=r.pageY||r.touches&&r.touches.length&&r.touches[0].pageY||r.changedTouches&&r.changedTouches.length&&r.changedTouches[0].pageY,s,A,l,u;t.parentNode.classList.add("drag");function c(){if(s){var f=l,p=e.getSelection()===f;if(f&&s){var v;u?v=u.getLayers():v=e._layerGroup?e._layerGroup.getLayers():e.getMap().getLayers();for(var m=v.getArray(),g=0;g<m.length;g++)if(m[g]==f){v.removeAt(g);break}for(var _=0;_<m.length;_++)if(m[_]===s){g>_?v.insertAt(_,f):v.insertAt(_+1,f);break}}p&&e.selectLayer(f),e.dispatchEvent({type:"reorder-end",layer:f,group:u})}t.parentNode.querySelectorAll("li").forEach(function(w){w.classList.remove("dropover"),w.classList.remove("dropover-after"),w.classList.remove("dropover-before")}),t.classList.remove("drag"),t.parentNode.classList.remove("drag"),e.element.classList.remove("drag"),A&&A.remove(),yt.removeListener(document,"mousemove touchmove",h),yt.removeListener(document,"mouseup touchend touchcancel",c)}function h(f){if(a=f.pageY||f.touches&&f.touches.length&&f.touches[0].pageY||f.changedTouches&&f.changedTouches.length&&f.changedTouches[0].pageY,n&&Math.abs(o-a)>2&&(n=!1,t.classList.add("drag"),l=e._getLayerForLI(t),s=!1,u=e._getLayerForLI(t.parentNode.parentNode),A=yt.create("LI",{className:"ol-dragover",html:t.innerHTML,style:{position:"absolute","z-index":1e4,left:t.offsetLeft,opacity:.5,width:yt.outerWidth(t),height:yt.getStyle(t,"height")},parent:i}),e.element.classList.add("drag"),e.dispatchEvent({type:"reorder-start",layer:l,group:u})),!n){f.preventDefault(),f.stopPropagation(),yt.setStyle(A,{top:a-yt.offsetRect(i).top+i.scrollTop+5});var p;for(f.touches?p=document.elementFromPoint(f.touches[0].clientX,f.touches[0].clientY):p=f.target,p.classList.contains("ol-switcherbottomdiv")?e.overflow(-1):p.classList.contains("ol-switchertopdiv")&&e.overflow(1);p&&p.tagName!=="LI";)p=p.parentNode;(!p||!p.classList.contains("dropover"))&&t.parentNode.querySelectorAll("li").forEach(function(v){v.classList.remove("dropover"),v.classList.remove("dropover-after"),v.classList.remove("dropover-before")}),p&&p.parentNode.classList.contains("drag")&&p!==t?(s=e._getLayerForLI(p),s&&!s.get("allwaysOnTop")==!l.get("allwaysOnTop")?(p.classList.add("dropover"),p.classList.add(t.offsetTop<p.offsetTop?"dropover-after":"dropover-before")):s=!1,yt.show(A)):(s=!1,p===t?yt.hide(A):yt.show(A)),s?A.classList.remove("forbidden"):A.classList.add("forbidden")}}yt.addListener(document,"mousemove touchmove",h),yt.addListener(document,"mouseup touchend touchcancel",c)};rn.prototype.dragOpacity_=function(r){r.stopPropagation(),r.preventDefault();var e=this,t=r.target,n=this._getLayerForLI(t.parentNode.parentNode.parentNode);if(!n)return;var i=r.pageX||r.touches&&r.touches.length&&r.touches[0].pageX||r.changedTouches&&r.changedTouches.length&&r.changedTouches[0].pageX,a=yt.getStyle(t,"left")-i;e.dragging_=!0;function o(){yt.removeListener(document,"mouseup touchend touchcancel",o),yt.removeListener(document,"mousemove touchmove",s),e.dragging_=!1}function s(A){var l=A.pageX||A.touches&&A.touches.length&&A.touches[0].pageX||A.changedTouches&&A.changedTouches.length&&A.changedTouches[0].pageX,u=(a+l)/yt.getStyle(t.parentNode,"width"),c=Math.max(0,Math.min(1,u));yt.setStyle(t,{left:c*100+"%"}),t.parentNode.nextElementSibling.innerHTML=Math.round(c*100),n.setOpacity(c)}yt.addListener(document,"mouseup touchend touchcancel",o),yt.addListener(document,"mousemove touchmove",s)};rn.prototype.drawList=function(r,e){var t=this,n=e.getArray(),i=function(u){u.stopPropagation(),u.preventDefault();var c=t._getLayerForLI(this.parentNode.parentNode);t.switchLayerVisibility(c,e),t.get("selection")&&c.getVisible()&&t.selectLayer(c),t.onchangeCheck&&t.onchangeCheck(c)};function a(u){u.stopPropagation(),u.preventDefault();var c=t._getLayerForLI(this.parentNode.parentNode);t.oninfo(c),t.dispatchEvent({type:"info",layer:c})}function o(u){u.stopPropagation(),u.preventDefault();var c=t._getLayerForLI(this.parentNode.parentNode);t.onextent?t.onextent(c):t.getMap().getView().fit(c.getExtent(),t.getMap().getSize()),t.dispatchEvent({type:"extent",layer:c})}function s(u){u.stopPropagation(),u.preventDefault();var c=this.parentNode.parentNode.parentNode.parentNode,h,f=t._getLayerForLI(c);f?(h=t._getLayerForLI(this.parentNode.parentNode),f.getLayers().remove(h),f.getLayers().getLength()==0&&!f.get("noSwitcherDelete")&&s.call(c.querySelectorAll(".layerTrash")[0],u)):(c=this.parentNode.parentNode,t.getMap().removeLayer(t._getLayerForLI(c)))}function A(u){if(!this.displayInLayerSwitcher(u)){this._setLayerForLI(null,u);return}var c=yt.create("LI",{className:(u.getVisible()?"visible ":" ")+(u.get("baseLayer")?"baselayer":""),parent:r});this._setLayerForLI(c,u),this._selectedLayer===u&&c.classList.add("ol-layer-select");var h=yt.create("DIV",{className:"ol-layerswitcher-buttons",parent:c}),f=yt.create("DIV",{className:"li-content",parent:c});yt.create("INPUT",{type:u.get("baseLayer")?"radio":"checkbox",className:"ol-visibility",checked:u.getVisible(),click:i,parent:f});var p=yt.create("LABEL",{title:u.get("title")||u.get("name"),click:i,unselectable:"on",style:{userSelect:"none"},parent:f});if(p.addEventListener("selectstart",function(){return!1}),yt.create("SPAN",{html:u.get("title")||u.get("name"),click:function(C){this.get("selection")&&(C.stopPropagation(),this.selectLayer(u))}.bind(this),parent:p}),this.reordering&&(l<n.length-1&&(u.get("allwaysOnTop")||!n[l+1].get("allwaysOnTop"))||l>0&&(!u.get("allwaysOnTop")||n[l-1].get("allwaysOnTop")))&&yt.create("DIV",{className:"layerup ol-noscroll",title:this.tip.up,on:{"mousedown touchstart":function(C){t.dragOrdering_(C)}},parent:h}),u.getLayers){var v=0;u.getLayers().forEach(function(C){t.displayInLayerSwitcher(C)&&v++}),v&&yt.create("DIV",{className:u.get("openInLayerSwitcher")?"collapse-layers":"expend-layers",title:this.tip.plus,click:function(){var C=t._getLayerForLI(this.parentNode.parentNode);C.set("openInLayerSwitcher",!C.get("openInLayerSwitcher"))},parent:h})}if(this.oninfo&&yt.create("DIV",{className:"layerInfo",title:this.tip.info,click:a,parent:h}),this.hastrash&&!u.get("noSwitcherDelete")&&yt.create("DIV",{className:"layerTrash",title:this.tip.trash,click:s,parent:h}),this.hasextent&&n[l].getExtent()){var m=n[l].getExtent();m.length==4&&m[0]<m[2]&&m[1]<m[3]&&yt.create("DIV",{className:"layerExtent",title:this.tip.extent,click:o,parent:h})}if(this.show_progress&&u instanceof NF){var g=yt.create("DIV",{className:"layerswitcher-progress",parent:f});this.setprogress_(u),u.layerswitcher_progress=yt.create("DIV",{parent:g})}var _=yt.create("DIV",{className:"layerswitcher-opacity",click:function(C){if(C.target===this){C.stopPropagation(),C.preventDefault();var F=Math.max(0,Math.min(1,C.offsetX/yt.getStyle(this,"width")));t._getLayerForLI(this.parentNode.parentNode).setOpacity(F)}},parent:f});if(yt.create("DIV",{className:"layerswitcher-opacity-cursor ol-noscroll",style:{left:u.getOpacity()*100+"%"},on:{"mousedown touchstart":function(C){t.dragOpacity_(C)}},parent:_}),yt.create("DIV",{className:"layerswitcher-opacity-label",html:Math.round(u.getOpacity()*100),parent:f}),u.getLayers&&(c.classList.add("ol-layer-group"),u.get("openInLayerSwitcher")===!0)){var w=yt.create("UL",{parent:c});this.drawList(w,u.getLayers())}c.classList.add(this.getLayerClass(u)),this.dispatchEvent({type:"drawlist",layer:u,li:c})}for(var l=n.length-1;l>=0;l--)A.call(this,n[l]);this.viewChange(),r===this.panel_&&this.overflow()};rn.prototype.getLayerClass=function(r){return r?r.getLayers?"ol-layer-group":r instanceof dl?"ol-layer-vector":r instanceof gAt?"ol-layer-vectortile":r instanceof NF?"ol-layer-tile":r instanceof k8?"ol-layer-image":r instanceof rk?"ol-layer-heatmap":r.getFeatures?"ol-layer-vectorimage":"unknown":"none"};rn.prototype.selectLayer=function(r,e){if(!r){if(!this.getMap())return;r=this.getMap().getLayers().item(this.getMap().getLayers().getLength()-1)}this._selectedLayer=r,this.drawPanel(),e||this.dispatchEvent({type:"select",layer:r})};rn.prototype.getSelection=function(){return this._selectedLayer};rn.prototype.setprogress_=function(r){if(!r.layerswitcher_progress){var e=0,t=0,n=function(){t===e?(t=e=0,yt.setStyle(r.layerswitcher_progress,{width:0})):yt.setStyle(r.layerswitcher_progress,{width:(e/t*100).toFixed(1)+"%"})};r.getSource().on("tileloadstart",function(){t++,n()}),r.getSource().on("tileloadend",function(){e++,n()}),r.getSource().on("tileloaderror",function(){e++,n()})}};const mAt={name:"ol-layerswitcher-control",setup(r,e){const{control:t}=Wi(rn,r,e);return{control:t}},props:{selection:{type:Boolean},displayInLayerSwitcher:{type:Function},show_progress:{type:Boolean,default:!1},mouseover:{type:Boolean,default:!1},reordering:{type:Boolean,default:!0},trash:{type:Boolean,default:!1},oninfo:{type:Function},extent:{type:Boolean},onextent:{type:Function},drawDelay:{type:Number},collapsed:{type:Boolean,default:!0},layerGroup:{type:Object},noScroll:{type:Boolean,default:!1}}};function yAt(r,e,t,n,i,a){return Rr("",!0)}var _w=me(mAt,[["render",yAt]]);NE.prototype.getPreview=function(){return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAk6QAAJOkBUCTn+AAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAANeSURBVHic7ZpPiE1RHMc/780MBhkik79JSUlIUbOxI+wkI2yRhYSUlJLNpJF/xcpiJBmZGBZsNM1CkmhKITGkGbH0/BuPmXnP4rxbb/TOn3fvOffeec6nfqvb/b7f93fveeec37ng8Xg8Ho/nf6Uu4d+fDswFssCvhHOJhaXAMeApMAQUyyIPPAdOAiuTStAVy4EHjDWsix5gdRLJ2mY34ulWYz6IEeA4kIk9awtkgTOEM/5vdAKT4k0/Ou3YMR/ELcbRm9AKFLBbgCJwNE4TYZkJfMG++SIwDCyLz0o4bI17WdyJz0r1TAZ+oDcxCBwAFgIzEIuhvcBbg3sLwOK4DFXLFvQGniCGSSUagS4DjUPOHESkA3XiOWCORqMR6Nfo9DjI3QqPUSd+ylBnv0Zn0GrWFvmIOvGNhjqrNDp/EAutyFgRKUM2tgO+Gur81FxvAKYZaimxXYBvmuuLDHWWaK4X0RfJCNsF6NdcbzXU2a65PohYFKWOc+jn8PUajbWIXaBKp9NB7lZYh34OzwFbFfd/NtDYYSth27urLGIm0M31AL3APWAAmIooymaDnPIl/Vz4NN1yHrd7gcvxWQnHAuA3bsyPop8hUsE13BSgK04TUViBeFo2zedJ8S6wElexW4D2eNOPTjNi6WvD/DtEr8E6tk6GGoAmxFY2iFHE9NZiQf8gogiB9gTEH23izAZuE77vHyU+ANucO1QwD3hD/MbLowAcdm20EmkwXx4n3NodS9rMB2HabYpEWs0HcRqHp0fNwAvJD+eBTZr7p6BvmQVxUaEzEbiruNfJekH15L8jtrEm7JJolEcOmKXRqQOuKDQuY7HZY8s8iNfzkSLxIuI43FTrkkLnOlBfRW4VsWk+oAX5weknxFAxJQNckGgVgZuIRVoomoGXEmGTMa+iQ6K7M4SW7k24QYgiuDQPYinbhugiF4H3RGtzZYCzyIvQXfpNI1ybLyeLpf5+iTbkRbiP2EcocTHm4+YI8iI8RFHwWjAfsA95Q+YZFU6wasl8wB7kReijtNbIILa0vcg/PRlGfPQwHmlCviDqAzaA+OREtzqr1ejOIDorxlNEjTGUBV4nnUWCvAJxGDlA8q9j3DEArAn2zvXAfOwfl6eVAmJrPpJ0Ih6Px+PxeJLjLwPul3vj5d0eAAAAAElFTkSuQmCC"};K8.prototype.getPreview=function(r,e){r||(r=[21020,6355964]),e||(e=150);var t=this.getTileGrid().getTileCoordForCoordAndResolution(r,e),n=this.getTileUrlFunction();return n.call(this,t,this.getProjection())};Uat.prototype.getPreview=function(r,e){r||(r=[21020,6355964]),e||(e=150);var t=this.getTileUrlFunction();if(t){var n=this.getTileGrid()||this.getTileGridForProjection(this.getProjection()),i=n.getTileCoordForCoordAndResolution(r,e);return t.call(this,i,1,this.getProjection())}var a=this.getGetFeatureInfoUrl?this.getGetFeatureInfoUrl(r,e,this.getProjection()||"EPSG:3857",{}):this.getFeatureInfoUrl(r,e,this.getProjection()||"EPSG:3857",{});return a=a.replace(/getfeatureinfo/i,"GetMap"),a};tp.prototype.getPreview=function(r,e,t){if(this.get("preview"))return[this.get("preview")];if(e||(e=150),e<this.getMinResolution()||e>this.getMaxResolution()){var n=this.getMinResolution(),i=this.getMaxResolution();for(i>1e5&&(i=156543),n<.15&&(n=.15),e=i;i>n;)n*=2,i/=2,e=n}var a=this.getExtent();return r||(r=[21020,6355964]),a&&!fA(a,r)&&(r=[(a[0]+a[2])/2,(a[1]+a[3])/2]),t&&(r=Wc(r,t,this.getSource().getProjection())),this.getSource&&this.getSource()?[this.getSource().getPreview(r,e)]:[]};Dy.prototype.getPreview=function(r,e){if(this.get("preview"))return[this.get("preview")];var t=[];if(this.getLayers)for(var n=this.getLayers().getArray(),i=0;i<n.length;i++)t=t.concat(n[i].getPreview(r,e));return t};var ZE=function(r){r=r||{},r.switcherClass="ol-layerswitcher-image",r.mouseover!==!1&&(r.mouseover=!0),rn.call(this,r)};Dr(ZE,rn);ZE.prototype.drawList=function(r,e){var t=this,n=function(i){i.preventDefault();var a=t._getLayerForLI(this);t.switchLayerVisibility(a,e),i.type=="touchstart"&&t.element.classList.add("ol-collapsed")};yt.setStyle(r,{height:"auto"}),e.forEach(function(i){if(t.displayInLayerSwitcher(i)){var a=i.getPreview?i.getPreview():["none"],o=yt.create("LI",{className:"ol-imgcontainer"+(i.getVisible()?" ol-visible":""),on:{"touchstart click":n},parent:r});t._setLayerForLI(o,i),a.forEach(function(s){yt.create("IMG",{src:s,parent:o})}),yt.create("p",{html:i.get("title")||i.get("name"),parent:o}),t.testLayerVisibility(i)&&o.classList.add("ol-layer-hidden")}})};ZE.prototype.overflow=function(){};const _At={name:"ol-layerswitcherimage-control",extends:_w,setup(r,e){const{control:t}=Wi(ZE,r,e);return{control:t}}};function wAt(r,e,t,n,i,a){return Rr("",!0)}var lx=me(_At,[["render",wAt]]),Ka=function(r){r||(r={});var e=document.createElement("div");if(r.target)e=yt.create("DIV",{className:r.className||"ol-mapzone"});else{e=yt.create("DIV",{className:(r.className||"ol-mapzone")+" ol-unselectable ol-control ol-collapsed"});var t=yt.create("BUTTON",{type:"button",on:{click:function(){e.classList.toggle("ol-collapsed"),n.forEach(function(i){i.updateSize()})}.bind(this)},parent:e});yt.create("I",{parent:t})}Mr.call(this,{element:e,target:r.target}),this.set("centerOnClick",r.centerOnClick);var n=this._maps=[];this._projection=r.projection,this._layer=r.layer,r.zones.forEach(this.addZone.bind(this)),setTimeout(function(){n.forEach(function(i){i.updateSize()})})};Dr(Ka,Mr);Ka.prototype.setCollapsed=function(r){r?(this.element.classList.remove("ol-collapsed"),this.getMaps().forEach(function(e){e.updateSize()})):this.element.classList.add("ol-collapsed")};Ka.prototype.getCollapsed=function(){return this.element.classList.contains("ol-collapsed")};Ka.prototype.setVisible=Ka.prototype.setCollapsed;Ka.prototype.getMaps=function(){return this._maps};Ka.prototype.getLength=function(){return this._maps.length};Ka.prototype.addZone=function(r){var e=new qA({zoom:6,center:[0,0],projection:this._projection}),t;r.map?t=q1(r.map.getView().calculateExtent(),r.map.getView().getProjection(),e.getProjection()):t=q1(r.extent,"EPSG:4326",e.getProjection());var n=yt.create("DIV",{className:"ol-mapzonezone",parent:this.element,click:function(){var o=-1;this._maps.forEach(function(s,A){s.get("zone")===r&&(o=A)}),this.dispatchEvent({type:"select",zone:r,index:o,coordinate:Ya(t),extent:t}),this.get("centerOnClick")!==!1&&this.getMap().getView().fit(t),this.setVisible(!1)}.bind(this)}),i;r.layer?i=r.layer:typeof this._layer=="function"?i=this._layer(r):i=new this._layer.constructor({source:this._layer.getSource()});var a=new UE({target:n,view:e,controls:[],interactions:[],layers:[i]});a.set("zone",r),this._maps.push(a),e.fit(t),yt.create("P",{html:r.title,parent:n})};Ka.prototype.removeZone=function(r){var e=this.element.querySelectorAll(".ol-mapzonezone")[r];e&&(e.remove(),this._maps.splice(r,1))};Ka.zones={};Ka.zones.DOM=[{title:"Guadeloupe",extent:[-61.898594315312444,15.75623038647845,-60.957887532935324,16.575317670979473]},{title:"Guyane",extent:[-54.72525931072715,2.1603763430019,-51.528236062921344,5.7984307809552575]},{title:"Martinique",extent:[-61.257556528564756,14.387506317407514,-60.76934912110432,14.895067461729951]},{title:"Mayotte",extent:[44.959844536967815,-13.01674138212816,45.35328866510648,-12.65521942207829]},{title:"La réunion",extent:[55.17059012967656,-21.407680069231688,55.88195702001797,-20.85560221637526]}];Ka.zones.TOM=[{title:"Polynésie Française",extent:[206.23664226630862,-22.189040615809787,221.85920743981987,-10.835039595040698]},{title:"Nouvelle Calédonie",extent:[163.76420580160925,-22.581641092751838,167.66984709498706,-19.816411635668445]},{title:"St-Pierre et Miquelon",extent:[-56.453698765748676,46.74449858188555,-56.0980198121544,47.14669874229787]},{title:"Wallis et Futuna",extent:[181.7588623143665,-14.7341169873267,183.95612353301715,-13.134720799175085]},{title:"St-Martin St-Barthélemy",extent:[-63.1726389501678,17.806097291313506,-62.7606535945649,18.13267688837938]}];Ka.zones.DOMTOM=[{title:"Métropole",extent:[-5.318421740712579,41.16082274292913,9.73284186155716,51.21957336557702]}].concat(Ka.zones.DOM,Ka.zones.TOM);const EAt={name:"ol-zone-control",setup(r,e){const{control:t}=Wi(Ka,r,e);return{control:t}},props:{className:{type:String},zones:{type:Array},layer:{type:[Object,Function]},projection:{type:String,default:"EPSG:3857"},centerOnClick:{type:Boolean,default:!0}}};function CAt(r,e,t,n,i,a){return Rr("",!0)}var ux=me(EAt,[["render",CAt]]);function ww(r){ww.installed||(ww.installed=!0,r.component(PS.name,PS),r.component(US.name,US),r.component(DS.name,DS),r.component(QS.name,QS),r.component(kS.name,kS),r.component(HS.name,HS),r.component(GS.name,GS),r.component($S.name,$S),r.component(WN.name,WN),r.component(VS.name,VS),r.component(jS.name,jS),r.component(KS.name,KS),r.component(YS.name,YS),r.component(WS.name,WS),r.component(sx.name,sx),r.component(Ax.name,Ax),r.component(_w.name,_w),r.component(lx.name,lx),r.component(ux.name,ux))}var BAt=Object.freeze(Object.defineProperty({__proto__:null,default:ww,install:ww,FullScreenControl:PS,MousePositionControl:US,AttributionControl:DS,OverviewMapControl:QS,ScaleLineControl:kS,ZoomControl:HS,ZoomSliderControl:GS,ZoomToExtentControl:$S,ContextMenuControl:VS,SwipeControl:jS,ControlBar:KS,ToggleControl:YS,ButtonControl:WS,PrintDialog:sx,VideoRecorderControl:Ax,LayerSwitcherControl:_w,LayerSwitcherImageControl:lx,ZoneControl:ux},Symbol.toStringTag,{value:"Module"}));function Ov(r,e){const t=Be("feature"),{properties:n}=Lr(e);let i=qe(()=>new r(...Object.values(n)));return ye(n,()=>{t.value.setGeometry(i.value),t.value.changed()}),ye(t,()=>{t.value.setGeometry(i.value)}),ur(()=>{t.value.setGeometry(i.value)}),pr(()=>{t.value.setGeometry(null)}),{geometry:i}}const TAt={name:"ol-geom-point",setup(r){const{geometry:e}=Ov(Sr,r);return{geometry:e}},props:{coordinates:{type:Array},opt_layout:{type:String,default:"XY"}}};function bAt(r,e,t,n,i,a){return Rr("",!0)}var cx=me(TAt,[["render",bAt]]);const SAt={name:"ol-geom-line-string",setup(r){const{geometry:e}=Ov(tn,r);return{geometry:e}},props:{coordinates:{type:Array},opt_layout:{type:String,default:"XY"}}};function xAt(r,e,t,n,i,a){return Rr("",!0)}var hx=me(SAt,[["render",xAt]]);const IAt={name:"ol-geom-polygon",setup(r){const{geometry:e}=Ov(Pn,r);return{geometry:e}},props:{coordinates:{type:Array},opt_layout:{type:String,default:"XY"}}};function LAt(r,e,t,n,i,a){return Rr("",!0)}var fx=me(IAt,[["render",LAt]]);const FAt={name:"ol-geom-multi-point",setup(r){const{geometry:e}=Ov(Qs,r);return{geometry:e}},props:{coordinates:{type:Array},opt_layout:{type:String,default:"XY"}}};function OAt(r,e,t,n,i,a){return Rr("",!0)}var px=me(FAt,[["render",OAt]]);const RAt={name:"ol-geom-multi-line-string",setup(r){const{geometry:e}=Ov(Wa,r);return{geometry:e}},props:{coordinates:{type:Array},opt_layout:{type:String,default:"XY"}}};function MAt(r,e,t,n,i,a){return Rr("",!0)}var dx=me(RAt,[["render",MAt]]);const NAt={name:"ol-geom-multi-polygon",setup(r){const{geometry:e}=Ov(za,r);return{geometry:e}},props:{coordinates:{type:Array},opt_layout:{type:String,default:"XY"}}};function PAt(r,e,t,n,i,a){return Rr("",!0)}var vx=me(NAt,[["render",PAt]]);function Ew(r){Ew.installed||(Ew.installed=!0,r.component(cx.name,cx),r.component(hx.name,hx),r.component(fx.name,fx),r.component(px.name,px),r.component(dx.name,dx),r.component(vx.name,vx))}var UAt=Object.freeze(Object.defineProperty({__proto__:null,default:Ew,install:Ew,Point:cx,LineString:hx,Polygon:fx,MultiPoint:px,MultiLineString:dx,MultiPolygon:vx},Symbol.toStringTag,{value:"Module"}));const DAt={name:"ol-style",setup(r){const e=Be("stylable",null),{properties:t}=Lr(r);let n=qe(()=>new _a(t));const i=o=>{if(e instanceof TF||e instanceof bF){e.getOverlay().setStyle(o),e.value.dispatchEvent("styleChanged");return}try{e.value.setStyle(o),e.value.changed(),e.value.dispatchEvent("styleChanged")}catch{e.value.style_=o,e.value.values_.style=o,e.value.changed(),e.value.dispatchEvent("styleChanged")}},a=qe(()=>o=>(t.overrideStyleFunction!=null&&t.overrideStyleFunction(o,n.value),n.value));return ye(t,()=>{t.overrideStyleFunction==null?i(n.value):i(a.value)}),ur(()=>{t.overrideStyleFunction==null?i(n.value):i(a.value)}),pr(()=>{i(null)}),Ur("style",n),Ur("styledObj",e),{style:n}},props:{zIndex:{type:Number},overrideStyleFunction:{type:Function}}};function QAt(r,e,t,n,i,a){return Zn(),Yi("div",null,[Or(r.$slots,"default")])}var gx=me(DAt,[["render",QAt]]);const kAt={name:"ol-style-circle",setup(r){const e=Be("style",null),t=Be("styledObj",null),{properties:n}=Lr(r),i=s=>new Gy(yA(qn({},s),{fill:new Ea,stroke:new Ki}));let a=qe(()=>i(n));const o=()=>{e.value.setImage(null),e.value.setImage(a.value),t.value.changed()};ye(n,()=>{o()}),ye(e,()=>{o()}),ur(()=>{e.value.setImage(a.value)}),pr(()=>{e.value.setImage(null)}),Ur("circle",a),Ur("styledObj",t)},props:{radius:{type:Number},scale:{type:Number}}};function HAt(r,e,t,n,i,a){return Zn(),Yi("div",null,[Or(r.$slots,"default")])}var mx=me(kAt,[["render",HAt]]);const GAt={name:"ol-style-stroke",setup(r){const e=Be("style",null),t=Be("circle",null),n=Be("styledObj",null),{properties:i}=Lr(r);if(e!=null&&t==null){let a=new Ki(i);e.value.setStroke(a);const o=()=>{e.value.setStroke(null),a=new Ki(i),e.value.setStroke(a)};ye(i,()=>{o()}),ye(e,()=>{o()}),ur(()=>{e.value.setStroke(a)}),pr(()=>{e.value.setStroke(null)})}else if(t!=null){const a=o=>{t.value.getStroke().setColor(o.color),t.value.getStroke().setLineCap(o.lineCap),t.value.getStroke().setLineDash(o.lineDash),t.value.getStroke().setLineDashOffset(o.lineDashOffset),t.value.getStroke().setLineJoin(o.lineJoin),t.value.getStroke().setMiterLimit(o.miterLimit),t.value.getStroke().setWidth(o.width),t.value.setRadius(t.value.getRadius());try{n.value.changed()}catch{n.changed()}};a(i),ye(i,o=>{a(o)}),ye(t,()=>{a(i)})}},props:{color:{type:String},lineCap:{type:String,default:"round"},lineJoin:{type:String,default:"round"},lineDash:{type:Array},lineDashOffset:{type:Number,default:0},miterLimit:{type:Number,default:10},width:{type:Number,default:1}}};function $At(r,e,t,n,i,a){return Rr("",!0)}var yx=me(GAt,[["render",$At]]);const VAt={name:"ol-style-fill",setup(r){const e=Be("style",null),t=Be("circle",null),n=Be("styledObj",null),{properties:i}=Lr(r);if(e!=null&&t==null){let a=new Ea(i);e.value.setFill(a);const o=()=>{e.value.setFill(null),a=new Ea(i),e.value.setFill(a)};ye(i,()=>{o()}),ye(e,()=>{o()}),ur(()=>{e.value.setFill(a)}),pr(()=>{e.value.setFill(null)})}else if(t!=null){const a=o=>{t.value.getFill().setColor(o),t.value.setRadius(t.value.getRadius());try{n.value.changed()}catch{n.changed()}};a(i.color),ye(i,()=>{a(i.color)}),ye(t,()=>{a(i.color)})}},props:{color:{type:String}}};function jAt(r,e,t,n,i,a){return Rr("",!0)}var _x=me(VAt,[["render",jAt]]);const KAt={name:"ol-style-icon",setup(r){const e=Be("style",null),t=Be("styledObj",null),{properties:n}=Lr(r);let i=qe(()=>{let o=new jy(n);return o.load(),o});const a=()=>{e.value.setImage(null),e.value.setImage(i.value),t.value.changed()};ye(n,()=>{a()}),ye(e,()=>{a()}),ur(()=>{e.value.setImage(i.value)}),pr(()=>{e.value.setImage(null)})},props:{anchor:{type:Array},anchorOrigin:{type:String,default:"top-left"},anchorXUnits:{type:String,default:"fraction"},color:{type:String},crossOrigin:{type:String},img:{type:[HTMLImageElement,HTMLCanvasElement]},offset:{type:Array,default:()=>[0,0]},displacement:{type:Array,default:()=>[0,0]},offsetOrigin:{type:String,default:"top-left"},opacity:{type:Number,default:1},scale:{type:Number,default:1},rotateWithView:{type:Boolean,default:!1},rotation:{type:Number,default:0},size:{type:Array},imgSize:{type:Array},src:{type:String}}};function YAt(r,e,t,n,i,a){return Rr("",!0)}var wx=me(KAt,[["render",YAt]]);const WAt={name:"ol-style-text",setup(r){const e=Be("style",null),t=Be("styledObj",null),{properties:n}=Lr(r),i=s=>new rp(yA(qn({},s),{fill:new Ea,stroke:new Ki}));let a=qe(()=>i(n));const o=()=>{e.value.setText(null),e.value.setText(a.value),t.value.changed()};ye(n,()=>{o()}),ye(e,()=>{o()}),ur(()=>{e.value.setText(a.value)}),pr(()=>{e.value.setText(null)}),Ur("style",a),Ur("styledObj",t)},props:{font:{type:String},maxAngle:{type:Number,default:Math.PI/4},offsetX:{type:Number,default:0},offsetY:{type:Number,default:0},overflow:{type:Boolean,default:!1},placement:{type:String,default:"point"},scale:{type:Number},rotateWithView:{type:Boolean,default:!1},rotation:{type:Number,default:0},text:{type:String},textAlign:{type:String},textBaseline:{type:String,default:"middle"},padding:{type:Array,default:()=>[0,0,0,0]}}};function zAt(r,e,t,n,i,a){return Zn(),Yi("div",null,[Or(r.$slots,"default")])}var Ex=me(WAt,[["render",zAt]]),hv=function(r,e){var t=r[0]-e[0],n=r[1]-e[1];return Math.sqrt(t*t+n*n)},Mg=function(r,e){return r[0]==e[0]&&r[1]==e[1]},Ck;(function(){function r(t,n){var i;for(let a=t.length-1;a>0;a--)(t[a][0]>n&&t[a-1][0]<n||t[a][0]<n&&t[a-1][0]>n)&&(i=[n,(n-t[a][0])/(t[a-1][0]-t[a][0])*(t[a-1][1]-t[a][1])+t[a][1]],t.splice(a,0,i))}function e(t,n){var i;for(let a=t.length-1;a>0;a--)(t[a][1]>n&&t[a-1][1]<n||t[a][1]<n&&t[a-1][1]>n)&&(i=[(n-t[a][1])/(t[a-1][1]-t[a][1])*(t[a-1][0]-t[a][0])+t[a][0],n],t.splice(a,0,i))}Ck=function(t,n){var i=n.getType()==="Polygon";if(!i&&n.getType()!=="MultiPolygon")return null;var a=n.getCoordinates();return i&&(a=[a]),a.forEach(function(o){o.forEach(function(s){r(s,t[0]),r(s,t[2]),e(s,t[1]),e(s,t[3])})}),a.forEach(function(o){o.forEach(function(s){s.forEach(function(A){A[0]<t[0]?A[0]=t[0]:A[0]>t[2]&&(A[0]=t[2]),A[1]<t[1]?A[1]=t[1]:A[1]>t[3]&&(A[1]=t[3])})})}),i?new Pn(a[0]):new za(a)}})();var JE=function(r,e,t,n){var i=[];n!==!1&&i.push(r);var a=hv(r,e);if(a){var o=Math.round(a/t);if(o>1)for(var s=(e[0]-r[0])/o,A=(e[1]-r[1])/o,l=1;l<o;l++)i.push([r[0]+s*l,r[1]+A*l])}return i.push(e),i};tn.prototype.sampleAt=function(r){for(var e=this.getCoordinates(),t=[],n=1;n<e.length;n++)t=t.concat(JE(e[n-1],e[n],r,n===1));return new tn(t)};Wa.prototype.sampleAt=function(r){var e=this.getCoordinates(),t=[];return e.forEach(function(n){for(var i=[],a=1;a<n.length;a++)i=i.concat(JE(n[a-1],n[a],r,a===1));t.push(i)}),new Wa(t)};Pn.prototype.sampleAt=function(r){var e=this.getCoordinates(),t=[];return e.forEach(function(n){for(var i=[],a=1;a<n.length;a++)i=i.concat(JE(n[a-1],n[a],r,a===1));t.push(i)}),new Pn(t)};za.prototype.sampleAt=function(r){var e=this.getCoordinates(),t=[];return e.forEach(function(n){var i=[];t.push(i),n.forEach(function(a){for(var o=[],s=1;s<a.length;s++)o=o.concat(JE(a[s-1],a[s],r,s===1));i.push(o)})}),new za(t)};_F.prototype.intersection=function(r,e){if(r.sampleAt){var t=go(this.getCenter().concat(this.getCenter()),this.getRadius());r=Ck(t,r),r=r.simplify(e);var n=this.getCenter(),i=this.getRadius(),a=r.sampleAt(e).getCoordinates();switch(r.getType()){case"Polygon":a=[a];case"MultiPolygon":{var o=!1,s=[];return a.forEach(function(A){var l=[];s.push(l),A.forEach(function(u){var c=[];l.push(c),u.forEach(function(h){var f=hv(n,h);f>i?(o=!0,c.push([n[0]+i/f*(h[0]-n[0]),n[1]+i/f*(h[1]-n[1])])):c.push(h)})})}),o?r.getType()==="Polygon"?new Pn(s[0]):new za(s):r}}}else console.warn("[ol/geom/Circle~intersection] Unsupported geometry type: "+r.getType());return r};tn.prototype.splitAt=function(r,e){var t;if(!r)return[this];if(e||(e=1e-10),r.length&&r[0].length){var n=[this];for(t=0;t<r.length;t++){for(var i=[],a=0;a<n.length;a++){var o=n[a].splitAt(r[t],e);i=i.concat(o)}n=i}return n}if(Mg(r,this.getFirstCoordinate())||Mg(r,this.getLastCoordinate()))return[this];var s=this.getCoordinates(),A=[s[0]],l=[];for(t=0;t<s.length-1;t++)if(!Mg(s[t],s[t+1])){if(Mg(r,s[t+1]))A.push(s[t+1]),l.push(new tn(A)),A=[];else if(!Mg(r,s[t])){var u,c,h=!1;s[t][0]==s[t+1][0]?(u=(s[t][1]-r[1])/(s[t][1]-s[t+1][1]),h=s[t][0]==r[0]&&0<u&&u<=1):s[t][1]==s[t+1][1]?(u=(s[t][0]-r[0])/(s[t][0]-s[t+1][0]),h=s[t][1]==r[1]&&0<u&&u<=1):(u=(s[t][0]-r[0])/(s[t][0]-s[t+1][0]),c=(s[t][1]-r[1])/(s[t][1]-s[t+1][1]),h=Math.abs(u-c)<=e&&0<u&&u<=1),h&&(A.push(r),l.push(new tn(A)),A=[r])}A.push(s[t+1])}return A.length>1&&l.push(new tn(A)),l.length?l:[this]};var Ui=function(r){r||(r={}),_a.call(this,{renderer:this._render.bind(this),stroke:r.stroke,text:r.text,zIndex:r.zIndex,geometry:r.geometry}),this._visible=r.visible!==!1,typeof r.width=="function"?this._widthFn=r.width:this.setWidth(r.width),this.setWidth2(r.width2),typeof r.color=="function"?this._colorFn=r.color:this.setColor(r.color),this.setColor2(r.color2),this.setLineCap(r.lineCap),this.setArrow(r.arrow),this.setArrowSize(r.arrowSize),this.setArrowColor(r.arrowColor),this._offset=[0,0],this.setOffset(r.offset0,0),this.setOffset(r.offset1,1),this._noOverlap=r.noOverlap};Dr(Ui,_a);Ui.prototype.setWidth=function(r){this._width=r||0};Ui.prototype.setWidth2=function(r){this._width2=r};Ui.prototype.getOffset=function(r){return this._offset[r]};Ui.prototype.setOffset=function(r,e){switch(r=Math.max(0,parseFloat(r)),e){case 0:{this._offset[0]=r;break}case 1:{this._offset[1]=r;break}}};Ui.prototype.setLineCap=function(r){this._lineCap=r==="round"?"round":"butt"};Ui.prototype.getWidth=function(r,e){if(this._widthFn)return this._widthFn(r,e);var t=typeof this._width2=="number"?this._width2:this._width;return this._width+(t-this._width)*e};Ui.prototype.setColor=function(r){try{this._color=Yc(r)}catch{this._color=[0,0,0,1]}};Ui.prototype.setColor2=function(r){try{this._color2=Yc(r)}catch{this._color2=null}};Ui.prototype.setArrowColor=function(r){try{this._acolor=au(r)}catch{this._acolor=null}};Ui.prototype.getColor=function(r,e){if(this._colorFn)return au(this._colorFn(r,e));var t=this._color,n=this._color2||this._color;return"rgba("+ +Math.round(t[0]+(n[0]-t[0])*e)+","+Math.round(t[1]+(n[1]-t[1])*e)+","+Math.round(t[2]+(n[2]-t[2])*e)+","+(t[3]+(n[3]-t[3])*e)+")"};Ui.prototype.getArrow=function(){return this._arrow};Ui.prototype.setArrow=function(r){this._arrow=parseInt(r),(this._arrow<-1||this._arrow>2)&&(this._arrow=0)};Ui.prototype.getArrowSize=function(){return this._arrowSize||[16,16]};Ui.prototype.setArrowSize=function(r){Array.isArray(r)?this._arrowSize=r:typeof r=="number"&&(this._arrowSize=[r,r])};Ui.prototype.drawArrow=function(r,e,t,n,i){var a=this.getArrowSize()[0]*i,o=hv(e,t),s=(e[0]-t[0])/o,A=(e[1]-t[1])/o;n=Math.max(this.getArrowSize()[1]/2,n/2)*i,r.beginPath(),r.moveTo(e[0],e[1]),r.lineTo(e[0]-a*s+n*A,e[1]-a*A-n*s),r.lineTo(e[0]-a*s-n*A,e[1]-a*A+n*s),r.lineTo(e[0],e[1]),r.fill()};Ui.prototype._render=function(r,e){if(e.geometry.getType()==="LineString"){var t,n,i,a=e.context;if(!this._visible){var o=e.pixelRatio/e.resolution,s=Math.cos(e.rotation),A=Math.sin(e.rotation);n=e.geometry.getCoordinates();var l=r[0][0]-n[0][0]*o*s-n[0][1]*o*A,u=r[0][1]-n[0][0]*o*A+n[0][1]*o*s;for(r=[],t=0;i=n[t];t++)r[t]=[l+i[0]*o*s+i[1]*o*A,u+i[0]*o*A-i[1]*o*s,i[2]]}var c=this.getArrowSize()[0]*e.pixelRatio;a.save(),this.getOffset(0)&&this._splitAsize(r,this.getOffset(0)*e.pixelRatio),this.getOffset(1)&&this._splitAsize(r,this.getOffset(1)*e.pixelRatio,!0),r.length>1&&(this.getArrow()===-1||this.getArrow()===2)&&(i=this._splitAsize(r,c),this._acolor?a.fillStyle=this._acolor:a.fillStyle=this.getColor(e.feature,0),this.drawArrow(a,i[0],i[1],this.getWidth(e.feature,0),e.pixelRatio)),r.length>1&&this.getArrow()>0&&(i=this._splitAsize(r,c,!0),this._acolor?a.fillStyle=this._acolor:a.fillStyle=this.getColor(e.feature,1),this.drawArrow(a,i[0],i[1],this.getWidth(e.feature,1),e.pixelRatio));var h=this._splitInto(r,255,2),f=0,p=h.length;if(a.lineJoin="round",a.lineCap=this._lineCap||"butt",h.length>1)for(f=0;f<h.length;f++){var v=f/p;for(n=h[f],a.lineWidth=this.getWidth(e.feature,v)*e.pixelRatio,a.strokeStyle=this.getColor(e.feature,v),a.beginPath(),a.moveTo(n[0][0],n[0][1]),t=1;i=n[t];t++)a.lineTo(i[0],i[1]);a.stroke()}a.restore()}};Ui.prototype._splitAsize=function(r,e,t){var n,i,a,o,s=0;for(t?a=r.pop():a=r.shift(),n=a;r.length;){if(t?i=r.pop():i=r.shift(),o=hv(n,i),s+o>e){n=[n[0]+(i[0]-n[0])*(e-s)/o,n[1]+(i[1]-n[1])*(e-s)/o],o=hv(n,a),t?(r.push(i),r.push(n),r.push([n[0]+(a[0]-n[0])/o,n[1]+(a[1]-n[1])/o])):(r.unshift(i),r.unshift(n),r.unshift([n[0]+(a[0]-n[0])/o,n[1]+(a[1]-n[1])/o]));break}s+=o,n=i}return[a,n]};Ui.prototype._splitInto=function(r,e,t){var n,i,a=this._noOverlap?1:.9,o=[],s,A=0;for(n=1;i=r[n];n++)A+=hv(r[n-1],i);var l=Math.max(t||2,A/(e||255)),u=r[0];A=0;var c=[u];for(n=1,i=r[1];n<r.length;){var h=i[0]-u[0],f=i[1]-u[1];if(s=Math.sqrt(h*h+f*f),A+s>l){var p=(l-A)/s;c.push([u[0]+h*p,u[1]+f*p]),o.push(c),u=[u[0]+h*p*a,u[1]+f*p*a],c=[u],A=0}else A+=s,u=i,c.push(u),n++,i=r[n]}return o.push(c),o};const XAt={name:"ol-style-flowline",setup(r){const e=Be("stylable",null),{properties:t}=Lr(r);let n=qe(()=>new Ui(t));const i=o=>{if(e instanceof TF||e instanceof bF){e.getOverlay().setStyle(o),e.value.dispatchEvent("styleChanged");return}try{e.value.setStyle(o),e.value.changed(),e.value.dispatchEvent("styleChanged")}catch{e.value.style_=o,e.value.values_.style=o,e.value.changed(),e.value.dispatchEvent("styleChanged")}},a=qe(()=>o=>(t.overrideStyleFunction!=null&&t.overrideStyleFunction(o,n.value),n.value));return ye(t,()=>{t.overrideStyleFunction==null?i(n.value):i(a.value)}),ur(()=>{t.overrideStyleFunction==null?i(n.value):i(a.value)}),pr(()=>{i(null)}),{style:n}},props:{color:{type:[String,Function]},color2:{type:String},width:{type:[Number,Function]},width2:{type:Number},arrow:{type:Number},arrowColor:{type:String}}};function qAt(r,e,t,n,i,a){return Zn(),Yi("div",null,[Or(r.$slots,"default")])}var Cx=me(XAt,[["render",qAt]]);function Cw(r){Cw.installed||(Cw.installed=!0,r.component(gx.name,gx),r.component(mx.name,mx),r.component(yx.name,yx),r.component(_x.name,_x),r.component(wx.name,wx),r.component(Ex.name,Ex),r.component(Cx.name,Cx))}var ZAt=Object.freeze(Object.defineProperty({__proto__:null,default:Cw,install:Cw,Style:gx,Stroke:yx,Fill:_x,Icon:wx,Text:Ex,FlowLine:Cx,Circle:mx},Symbol.toStringTag,{value:"Module"}));const JAt={name:"ol-interaction-select",emits:["select"],setup(r,{emit:e}){const t=Be("map"),{properties:n}=Lr(r);let i=qe(()=>{let a=new PE(yA(qn({},n),{style:new _a}));return a.on("select",o=>{e("select",o)}),a});return ye(i,(a,o)=>{t.removeInteraction(o),t.addInteraction(a),t.changed()}),ur(()=>{t.addInteraction(i.value)}),pr(()=>{t.removeInteraction(i.value)}),Ur("stylable",i),{select:i}},props:{multi:{type:Boolean,default:!1},condition:{type:Function},filter:{type:Function},features:{type:[bi,Object]},hitTolerance:{type:Number,default:0,validator:r=>r>=0}}};function tlt(r,e,t,n,i,a){return Or(r.$slots,"default")}var Bx=me(JAt,[["render",tlt]]),lh=function(r){r=r||{},this.pointRadius=r.pointRadius||12,this.circleMaxObjects=r.circleMaxObjects||10,this.maxObjects=r.maxObjects||60,this.spiral=r.spiral!==!1,this.animate=r.animate,this.animationDuration=r.animationDuration||500,this.selectCluster_=r.selectCluster!==!1,this._autoClose=r.autoClose!==!1;var e=this.overlayLayer_=new dl({source:new Tu({features:new bi,wrapX:r.wrapX,useSpatialIndex:!0}),name:"Cluster overlay",updateWhileAnimating:!0,updateWhileInteracting:!0,displayInLayerSwitcher:!1,style:r.featureStyle});if(r.layers)if(typeof r.layers=="function"){var t=r.layers;r.layers=function(i){return i===e||t(i)}}else r.layers.push&&r.layers.push(this.overlayLayer_);if(r.filter){var n=r.filter;r.filter=function(i,a){return!a&&i.get("selectclusterlink")?!1:n(i,a)}}else r.filter=function(i,a){return!(!a&&i.get("selectclusterlink"))};this.filter_=r.filter,!this._autoClose&&!r.toggleCondition&&(r.toggleCondition=OE),PE.call(this,r),this.on("select",this.selectCluster.bind(this))};Dr(lh,PE);lh.prototype.setMap=function(r){this.getMap()&&this.getMap().removeLayer(this.overlayLayer_),this._listener&&ds(this._listener),this._listener=null,PE.prototype.setMap.call(this,r),this.overlayLayer_.setMap(r),r&&r.getView()&&(this._listener=r.getView().on("change:resolution",this.clear.bind(this)))};lh.prototype.clear=function(){this.getFeatures().clear(),this.overlayLayer_.getSource().clear()};lh.prototype.getLayer=function(){return this.overlayLayer_};lh.prototype.selectCluster=function(r){if(r instanceof yr&&(r={selected:[r]}),!r.selected.length){this._autoClose?this.clear():r.deselected.forEach(_=>{_.get("selectcluserfeatures").forEach(C=>{this.overlayLayer_.getSource().removeFeature(C)})});return}var e=r.selected[0];if(!e.get("selectclusterfeature")){var t=this.overlayLayer_.getSource();this._autoClose&&t.clear();var n=e.get("features");if(!(!n||n.length==1)){this.selectCluster_||this.getFeatures().clear();var i=e.getGeometry().getCoordinates(),a=this.getMap().getView().getResolution(),o,s,A,l,u,c,h,f=[];if(!this.spiral||n.length<=this.circleMaxObjects)for(l=Math.min(n.length,this.circleMaxObjects),o=a*this.pointRadius*(.5+l/4),A=0;A<l;A++)s=2*Math.PI*A/l,(l==2||l==4)&&(s+=Math.PI/4),u=[i[0]+o*Math.sin(s),i[1]+o*Math.cos(s)],c=new yr({selectclusterfeature:!0,features:[n[A]],geometry:new Sr(u)}),c.setStyle(n[A].getStyle()),f.push(c),h=new yr({selectclusterlink:!0,geometry:new tn([i,u])}),f.push(h);else{s=0;var p=2*this.pointRadius;for(l=Math.min(this.maxObjects,n.length),A=0;A<l;A++){o=p/2+p*s/(2*Math.PI),s=s+(p+.1)/o;var v=a*o*Math.sin(s),m=a*o*Math.cos(s);u=[i[0]+v,i[1]+m],c=new yr({selectclusterfeature:!0,features:[n[A]],geometry:new Sr(u)}),c.setStyle(n[A].getStyle()),f.push(c),h=new yr({selectclusterlink:!0,geometry:new tn([i,u])}),f.push(h)}}e.set("selectcluserfeatures",f),this.animate?this.animateCluster_(i,f):t.addFeatures(f)}}};lh.prototype.animateCluster_=function(r,e){if(this.listenerKey_&&ds(this.listenerKey_),!e.length)return;var t=this.overlayLayer_.getStyle(),n=typeof t=="function"?t:t.length?function(){return t}:function(){return[t]},i=this.animationDuration||500,a=new Date().getTime();function o(A){for(var l=A.vectorContext||WE(A),u=A.frameState.pixelRatio,c=this.getMap().getView().getResolution(),h=Ds((A.frameState.time-a)/i),f=0,p;p=e[f];f++)if(p.get("features")){var v=p.getGeometry().getCoordinates();v[0]=r[0]+h*(v[0]-r[0]),v[1]=r[1]+h*(v[1]-r[1]);for(var m=new Sr(v),g=n(p,c),_=0;_<g.length;_++){var w,C=UE.prototype.getFeaturesAtPixel?!1:g[_].getImage();C&&(w=C.getScale(),C.setScale(u)),l.setStyle?(l.setStyle(g[_]),l.drawGeometry(m)):(l.setImageStyle(C),l.drawPointGeometry(m)),C&&C.setScale(w)}}if(h>1){ds(this.listenerKey_),this.overlayLayer_.getSource().addFeatures(e),this.overlayLayer_.changed();return}A.frameState.animate=!0}this.listenerKey_=this.overlayLayer_.on(["postcompose","postrender"],o.bind(this));var s=new yr(new Sr(this.getMap().getView().getCenter()));s.setStyle(new _a({image:new Gy({})})),this.overlayLayer_.getSource().addFeature(s)};lh.prototype.getClusterExtent=function(r){if(!r.get("features"))return null;var e=Ni();return r.get("features").forEach(function(t){e=Kc(e,t.getGeometry().getExtent())}),e[0]===e[2]&&e[1]===e[3]?null:e};const elt={name:"ol-interaction-clusterselect",emits:["select"],setup(r,{emit:e}){const t=Be("map"),{properties:n}=Lr(r);let i=qe(()=>{let a=new lh(yA(qn({},n),{style:new _a}));return a.on("select",o=>{e("select",o)}),a});ye(i,(a,o)=>{t.removeInteraction(o),t.addInteraction(a),t.changed()}),ur(()=>{t.addInteraction(i.value)}),pr(()=>{t.removeInteraction(i.value)}),Ur("stylable",i)},props:{multi:{type:Boolean,default:!1},condition:{type:Function},filter:{type:Function},pointRadius:{type:Number,default:7},animate:{type:Boolean,default:!0},featureStyle:{type:Function},style:{type:Function}}};function rlt(r,e,t,n,i,a){return Or(r.$slots,"default")}var Tx=me(elt,[["render",rlt]]);const nlt={name:"ol-interaction-draw",emits:["drawstart","drawend"],setup(r,{emit:e}){const t=Be("map"),n=Be("vectorSource"),{type:i,clickTolerance:a,dragVertexDelay:o,snapTolerance:s,stopClick:A,maxPoints:l,minPoints:u,finishCondition:c,geometryFunction:h,geometryName:f,condition:p,freehand:v,freehandCondition:m,wrapX:g}=kc(r);let _=()=>{let C=new TF({source:n.value,type:i.value,clickTolerance:a.value,dragVertexDelay:o.value,snapTolerance:s.value,stopClick:A.value,maxPoints:l.value,minPoints:u.value,finishCondition:c.value,geometryFunction:h.value,geometryName:f.value,condition:p.value,freehand:v.value,freehandCondition:m.value,wrapX:g.value});return C.on("drawstart",F=>{e("drawstart",F)}),C.on("drawend",F=>{e("drawend",F)}),C},w=_();ye([i,a,o,s,A,l,u,c,h,f,p,v,m,g],()=>{t.removeInteraction(w),w=_(),t.addInteraction(w),w.changed(),t.changed()}),ur(()=>{t.addInteraction(w)}),pr(()=>{t.removeInteraction(w)}),Ur("stylable",w)},props:{type:{type:String,required:!0},clickTolerance:{type:Number,default:6},dragVertexDelay:{type:Number,default:500},snapTolerance:{type:Number,default:12},stopClick:{type:Boolean,default:!1},maxPoints:{type:Number},minPoints:{type:Number},finishCondition:{type:Function},geometryFunction:{type:Function},geometryName:{type:String},condition:{type:Function},freehand:{type:Boolean,default:!1},freehandCondition:{type:Function},wrapX:{type:Boolean,default:!1}}};function ilt(r,e,t,n,i,a){return Or(r.$slots,"default")}var bx=me(nlt,[["render",ilt]]);const alt={name:"ol-interaction-snap",setup(r){const e=Be("map"),t=Be("vectorSource"),{properties:n}=Lr(r);let i=()=>new dZ(yA(qn({},n),{source:t.value})),a=i();ye(n,()=>{e.removeInteraction(a),a=i(),e.addInteraction(a),e.changed()}),ur(()=>{e.addInteraction(a)}),pr(()=>{e.removeInteraction(a)})},props:{vertex:{type:Boolean,default:!0},edge:{type:Boolean,default:!0},pixelTolerance:{type:Number,default:10}}};function olt(r,e,t,n,i,a){return Or(r.$slots,"default")}var Sx=me(alt,[["render",olt]]);const slt={name:"ol-interaction-modify",emits:["modifystart","modifyend"],setup(r,{emit:e}){const t=Be("map"),n=Be("vectorSource"),{features:i,condition:a,deleteCondition:o,insertVertexCondition:s,pixelTolerance:A,wrapX:l,hitDetection:u}=kc(r);let c=()=>{let f=new bF({source:n.value,features:i.value,condition:a.value,deleteCondition:o.value,insertVertexCondition:s.value,pixelTolerance:A.value,wrapX:l.value,hitDetection:u.value});return f.on("modifystart",p=>{e("modifystart",p)}),f.on("modifyend",p=>{e("modifyend",p)}),f},h=c();ye([a,o,s,A,l,u],()=>{t.removeInteraction(h),h=c(),t.addInteraction(h),h.changed(),t.changed()}),ur(()=>{t.addInteraction(h)}),pr(()=>{t.removeInteraction(h)}),Ur("stylable",h)},props:{condition:{type:Function},deleteCondition:{type:Function},insertVertexCondition:{type:Function},pixelTolerance:{type:Number,default:10},wrapX:{type:Boolean,default:!1},hitDetection:{type:Boolean},features:{type:[bi,Object]}}};function Alt(r,e,t,n,i,a){return Or(r.$slots,"default")}var xx=me(slt,[["render",Alt]]),li=function(r){r||(r={});var e=this;this.selection_=new bi,this.handles_=new bi,this.overlayLayer_=new dl({source:new Tu({features:this.handles_,useSpatialIndex:!1,wrapX:!1}),name:"Transform overlay",displayInLayerSwitcher:!1,style:function(t){return e.style[(t.get("handle")||"default")+(t.get("constraint")||"")+(t.get("option")||"")]}}),ms.call(this,{handleDownEvent:this.handleDownEvent_,handleDragEvent:this.handleDragEvent_,handleMoveEvent:this.handleMoveEvent_,handleUpEvent:this.handleUpEvent_}),this.features_=r.features,typeof r.filter=="function"&&(this._filter=r.filter),this.layers_=r.layers?r.layers instanceof Array?r.layers:[r.layers]:null,this._handleEvent=r.condition||function(){return!0},this.addFn_=r.addCondition||function(){return!1},this.set("translateFeature",r.translateFeature!==!1),this.set("translate",r.translate!==!1),this.set("translateBBox",r.translateBBox===!0),this.set("stretch",r.stretch!==!1),this.set("scale",r.scale!==!1),this.set("rotate",r.rotate!==!1),this.set("keepAspectRatio",r.keepAspectRatio||function(t){return t.originalEvent.shiftKey}),this.set("modifyCenter",r.modifyCenter||function(t){return t.originalEvent.metaKey||t.originalEvent.ctrlKey}),this.set("noFlip",r.noFlip||!1),this.set("selection",r.selection!==!1),this.set("hitTolerance",r.hitTolerance||0),this.set("enableRotatedTransform",r.enableRotatedTransform||!1),this.set("keepRectangle",r.keepRectangle||!1),this.on("propertychange",function(){this.drawSketch_()}),this.setDefaultStyle()};Dr(li,ms);li.prototype.Cursors={default:"auto",select:"pointer",translate:"move",rotate:"move",rotate0:"move",scale:"nesw-resize",scale1:"nwse-resize",scale2:"nesw-resize",scale3:"nwse-resize",scalev:"ew-resize",scaleh1:"ns-resize",scalev2:"ew-resize",scaleh3:"ns-resize"};li.prototype.setMap=function(r){var e=this.getMap();if(e){var t=e.getTargetElement();e.removeLayer(this.overlayLayer_),this.previousCursor_&&t&&(t.style.cursor=this.previousCursor_),this.previousCursor_=void 0}ms.prototype.setMap.call(this,r),this.overlayLayer_.setMap(r),r===null&&this.select(null),r!==null&&(this.isTouch=/touch/.test(r.getViewport().className),this.setDefaultStyle())};li.prototype.setActive=function(r){this.select(null),this.overlayLayer_.setVisible(r),ms.prototype.setActive.call(this,r)};li.prototype.setDefaultStyle=function(r){r=r||{};var e=r.pointStroke||new Ki({color:[255,0,0,1],width:1}),t=r.stroke||new Ki({color:[255,0,0,1],width:1,lineDash:[4,4]}),n=r.fill||new Ea({color:[255,0,0,.01]}),i=r.pointFill||new Ea({color:[255,255,255,.8]}),a=new s1({fill:i,stroke:e,radius:this.isTouch?12:6,displacement:this.isTouch?[24,-24]:[12,-12],points:15});a.setDisplacement||(a.getAnchor()[0]=this.isTouch?-10:-5);var o=new s1({fill:i,stroke:e,radius:this.isTouch?16:8,points:4,angle:Math.PI/4}),s=new s1({fill:i,stroke:e,radius:this.isTouch?12:6,points:4,angle:Math.PI/4});function A(l,u,c){return[new _a({image:l,stroke:u,fill:c})]}this.style={default:A(o,t,n),translate:A(o,e,i),rotate:A(a,e,i),rotate0:A(o,e,i),scale:A(o,e,i),scale1:A(o,e,i),scale2:A(o,e,i),scale3:A(o,e,i),scalev:A(s,e,i),scaleh1:A(s,e,i),scalev2:A(s,e,i),scaleh3:A(s,e,i)},this.drawSketch_()};li.prototype.setStyle=function(r,e){if(e){e instanceof Array?this.style[r]=e:this.style[r]=[e];for(var t=0;t<this.style[r].length;t++){var n=this.style[r][t].getImage();n&&(r=="rotate"&&(n.getAnchor()[0]=-5),this.isTouch&&n.setScale(1.8));var i=this.style[r][t].getText();i&&(r=="rotate"&&i.setOffsetX(this.isTouch?14:7),this.isTouch&&i.setScale(1.8))}this.drawSketch_()}};li.prototype.getFeatureAtPixel_=function(r){var e=this;return this.getMap().forEachFeatureAtPixel(r,function(t,n){var i=!1;if(!n){if(t===e.bbox_)return e.get("translateBBox")?{feature:t,handle:"translate",constraint:"",option:""}:!1;if(e.handles_.forEach(function(o){o===t&&(i=!0)}),i)return{feature:t,handle:t.get("handle"),constraint:t.get("constraint"),option:t.get("option")}}if(!e.get("selection"))return e.selection_.getArray().some(function(o){return t===o})?{feature:t}:null;if(e._filter)return e._filter(t,n)?{feature:t}:null;if(e.layers_){for(var a=0;a<e.layers_.length;a++)if(e.layers_[a]===n)return{feature:t};return null}else return e.features_?(e.features_.forEach(function(o){o===t&&(i=!0)}),i?{feature:t}:null):{feature:t}},{hitTolerance:this.get("hitTolerance")})||{}};li.prototype.getGeometryRotateToZero_=function(r,e){var t=r.getGeometry(),n=this.getMap().getView().getRotation();if(n===0||!this.get("enableRotatedTransform"))return e?t.clone():t;var i=t.clone();return i.rotate(n*-1,this.getMap().getView().getCenter()),i};li.prototype._isRectangle=function(r){if(this.get("keepRectangle")&&r.getType()==="Polygon"){var e=r.getCoordinates()[0];return e.length===5}return!1};li.prototype.drawSketch_=function(r){var e,t,n,i=this.selection_.item(0)&&this._isRectangle(this.selection_.item(0).getGeometry());if(this.overlayLayer_.getSource().clear(),!!this.selection_.getLength()){var a=this.getMap().getView().getRotation(),o=this.getGeometryRotateToZero_(this.selection_.item(0)).getExtent(),s;if(i&&(s=this.getGeometryRotateToZero_(this.selection_.item(0)).getCoordinates()[0].slice(0,4),s.unshift(s[3])),o=go(o,0),this.selection_.forEach(function(c){var h=this.getGeometryRotateToZero_(c).getExtent();Kc(o,h)}.bind(this)),r===!0)this.ispt_||(this.overlayLayer_.getSource().addFeature(new yr({geometry:new Sr(this.center_),handle:"rotate0"})),n=zc(o),this.get("enableRotatedTransform")&&a!==0&&n.rotate(a,this.getMap().getView().getCenter()),t=this.bbox_=new yr(n),this.overlayLayer_.getSource().addFeature(t));else{if(this.ispt_){var A=this.getMap().getPixelFromCoordinate([o[0],o[1]]);A&&(o=ia([this.getMap().getCoordinateFromPixel([A[0]-10,A[1]-10]),this.getMap().getCoordinateFromPixel([A[0]+10,A[1]+10])]))}n=i?new Pn([s]):zc(o),this.get("enableRotatedTransform")&&a!==0&&n.rotate(a,this.getMap().getView().getCenter()),t=this.bbox_=new yr(n);var l=[],u=n.getCoordinates()[0];if(!this.ispt_){if(l.push(t),!this.iscircle_&&this.get("stretch")&&this.get("scale"))for(e=0;e<u.length-1;e++)t=new yr({geometry:new Sr([(u[e][0]+u[e+1][0])/2,(u[e][1]+u[e+1][1])/2]),handle:"scale",constraint:e%2?"h":"v",option:e}),l.push(t);if(this.get("scale"))for(e=0;e<u.length-1;e++)t=new yr({geometry:new Sr(u[e]),handle:"scale",option:e}),l.push(t);this.get("translate")&&!this.get("translateFeature")&&(t=new yr({geometry:new Sr([(u[0][0]+u[2][0])/2,(u[0][1]+u[2][1])/2]),handle:"translate"}),l.push(t))}!this.iscircle_&&this.get("rotate")&&(t=new yr({geometry:new Sr(u[3]),handle:"rotate"}),l.push(t)),this.overlayLayer_.getSource().addFeatures(l)}}};li.prototype.select=function(r,e){if(!r){this.selection_.clear(),this.drawSketch_();return}if(!(!r.getGeometry||!r.getGeometry())){if(e)this.selection_.push(r);else{var t=this.selection_.getArray().indexOf(r);this.selection_.removeAt(t)}this.ispt_=this.selection_.getLength()===1?this.selection_.item(0).getGeometry().getType()=="Point":!1,this.iscircle_=this.selection_.getLength()===1?this.selection_.item(0).getGeometry().getType()=="Circle":!1,this.drawSketch_(),this.watchFeatures_(),this.dispatchEvent({type:"select",feature:r,features:this.selection_})}};li.prototype.setSelection=function(r){this.selection_.clear(),r.forEach(function(e){this.selection_.push(e)}.bind(this)),this.ispt_=this.selection_.getLength()===1?this.selection_.item(0).getGeometry().getType()=="Point":!1,this.iscircle_=this.selection_.getLength()===1?this.selection_.item(0).getGeometry().getType()=="Circle":!1,this.drawSketch_(),this.watchFeatures_(),this.dispatchEvent({type:"select",features:this.selection_})};li.prototype.watchFeatures_=function(){this._featureListeners&&this._featureListeners.forEach(function(r){ds(r)}),this._featureListeners=[],this.selection_.forEach(function(r){this._featureListeners.push(r.on("change",function(){this.isUpdating_||this.drawSketch_()}.bind(this)))}.bind(this))};li.prototype.handleDownEvent_=function(r){if(this._handleEvent(r,this.selection_)){var e=this.getFeatureAtPixel_(r.pixel),t=e.feature;if(this.selection_.getLength()&&this.selection_.getArray().indexOf(t)>=0&&(this.ispt_&&this.get("translate")||this.get("translateFeature"))&&(e.handle="translate"),e.handle){this.mode_=e.handle,this.opt_=e.option,this.constraint_=e.constraint;var n=this.getMap().getView().getRotation();this.coordinate_=r.coordinate,this.pixel_=r.pixel,this.geoms_=[],this.rotatedGeoms_=[];for(var i=Ni(),a=Ni(),o=0,s;s=this.selection_.item(o);o++)if(this.geoms_.push(s.getGeometry().clone()),i=Kc(i,s.getGeometry().getExtent()),this.get("enableRotatedTransform")&&n!==0){var A=this.getGeometryRotateToZero_(s,!0);this.rotatedGeoms_.push(A),a=Kc(a,A.getExtent())}if(this.extent_=zc(i).getCoordinates()[0],this.get("enableRotatedTransform")&&n!==0&&(this.rotatedExtent_=zc(a).getCoordinates()[0]),this.mode_==="rotate"){this.center_=this.getCenter()||Ya(i);var l=r.map.getTargetElement();l.style.cursor=this.Cursors.rotate0,this.previousCursor_=l.style.cursor}else this.center_=Ya(i);return this.angle_=Math.atan2(this.center_[1]-r.coordinate[1],this.center_[0]-r.coordinate[0]),this.dispatchEvent({type:this.mode_+"start",feature:this.selection_.item(0),features:this.selection_,pixel:r.pixel,coordinate:r.coordinate}),!0}else if(this.get("selection")){if(t){this.addFn_(r)||this.selection_.clear();var u=this.selection_.getArray().indexOf(t);u<0?this.selection_.push(t):this.selection_.removeAt(u)}else this.selection_.clear();return this.ispt_=this.selection_.getLength()===1?this.selection_.item(0).getGeometry().getType()=="Point":!1,this.iscircle_=this.selection_.getLength()===1?this.selection_.item(0).getGeometry().getType()=="Circle":!1,this.drawSketch_(),this.watchFeatures_(),this.dispatchEvent({type:"select",feature:t,features:this.selection_,pixel:r.pixel,coordinate:r.coordinate}),!1}}};li.prototype.getFeatures=function(){return this.selection_};li.prototype.getCenter=function(){return this.get("center")};li.prototype.setCenter=function(r){return this.set("center",r)};function Hl(r,e){var t=(r[0]*e[0]+r[1]*e[1])/(e[0]*e[0]+e[1]*e[1]);return[e[0]*t,e[1]*t]}function To(r,e){return[e[0]-r[0],e[1]-r[1]]}function ro(r,e){return[r[0]+e[0],r[1]+e[1]]}li.prototype.handleDragEvent_=function(r){if(this._handleEvent(r,this.features_)){var e=this.getMap().getView().getRotation(),t,n,i,a,o=[this.coordinate_[0],this.coordinate_[1]],s=[r.coordinate[0],r.coordinate[1]];switch(this.isUpdating_=!0,this.mode_){case"rotate":{var A=Math.atan2(this.center_[1]-s[1],this.center_[0]-s[0]);if(!this.ispt)for(t=0,i;i=this.selection_.item(t);t++)a=this.geoms_[t].clone(),a.rotate(A-this.angle_,this.center_),a.getType()=="Circle"&&a.setCenterAndRadius(a.getCenter(),a.getRadius()),i.setGeometry(a);this.drawSketch_(!0),this.dispatchEvent({type:"rotating",feature:this.selection_.item(0),features:this.selection_,angle:A-this.angle_,pixel:r.pixel,coordinate:r.coordinate});break}case"translate":{var l=s[0]-o[0],u=s[1]-o[1];for(t=0,i;i=this.selection_.item(t);t++)i.getGeometry().translate(l,u);this.handles_.forEach(function(b){b.getGeometry().translate(l,u)}),this.coordinate_=r.coordinate,this.dispatchEvent({type:"translating",feature:this.selection_.item(0),features:this.selection_,delta:[l,u],pixel:r.pixel,coordinate:r.coordinate});break}case"scale":{var c=this.center_;if(this.get("modifyCenter")(r)){var h=this.extent_;this.get("enableRotatedTransform")&&e!==0&&(h=this.rotatedExtent_),c=h[(Number(this.opt_)+2)%4]}var f=this.geoms_.length==1&&this._isRectangle(this.geoms_[0]),p=this.constraint_,v=this.opt_,m=this.coordinate_,g=r.coordinate;if(this.get("enableRotatedTransform")&&e!==0){var _=new Sr(this.coordinate_);_.rotate(e*-1,c),m=_.getCoordinates();var w=new Sr(r.coordinate);w.rotate(e*-1,c),g=w.getCoordinates()}var C=(g[0]-c[0])/(m[0]-c[0]),F=(g[1]-c[1])/(m[1]-c[1]),O=[g[0]-m[0],g[1]-m[1]];if(this.get("enableRotatedTransform")&&e!==0){var I=new Sr(c);I.rotate(e*-1,this.getMap().getView().getCenter()),c=I.getCoordinates()}for(this.get("noFlip")&&(C<0&&(C=-C),F<0&&(F=-F)),this.constraint_?this.constraint_=="h"?C=1:F=1:this.get("keepAspectRatio")(r)&&(C=F=Math.min(C,F)),t=0,i;i=this.selection_.item(t);t++)a=e===0||!this.get("enableRotatedTransform")?this.geoms_[t].clone():this.rotatedGeoms_[t].clone(),a.applyTransform(function(b,L,N){if(N<2)return L;if(f){var x=[[6],[0,8],[2],[4]],S=[b[0],b[1]],P=[b[2],b[3]],U=[b[4],b[5]],tt=[b[6],b[7]],q=[b[8],b[9]];if(p){var rt=v%2===0?To(S,P):To(tt,S),nt=Hl(O,rt),At=v+1<x.length?v+1:0,ct=[...x[v],...x[At]];for(n=0;n<b.length;n+=N)L[n]=ct.includes(n)?b[n]+nt[0]:b[n],L[n+1]=ct.includes(n)?b[n+1]+nt[1]:b[n+1]}else{var bt,M;switch(v){case 0:O=To(tt,g),bt=Hl(O,To(U,tt)),M=Hl(O,To(S,tt)),[L[0],L[1]]=ro(S,bt),[L[4],L[5]]=ro(U,M),[L[6],L[7]]=ro(tt,O),[L[8],L[9]]=ro(q,bt);break;case 1:O=To(S,g),bt=Hl(O,To(tt,S)),M=Hl(O,To(P,S)),[L[0],L[1]]=ro(S,O),[L[2],L[3]]=ro(P,bt),[L[6],L[7]]=ro(tt,M),[L[8],L[9]]=ro(q,O);break;case 2:O=To(P,g),bt=Hl(O,To(S,P)),M=Hl(O,To(U,P)),[L[0],L[1]]=ro(S,M),[L[2],L[3]]=ro(P,O),[L[4],L[5]]=ro(U,bt),[L[8],L[9]]=ro(q,M);break;case 3:O=To(U,g),bt=Hl(O,To(P,U)),M=Hl(O,To(tt,U)),[L[2],L[3]]=ro(P,M),[L[4],L[5]]=ro(U,O),[L[6],L[7]]=ro(tt,bt);break}}}else for(n=0;n<b.length;n+=N)C!=1&&(L[n]=c[0]+(b[n]-c[0])*C),F!=1&&(L[n+1]=c[1]+(b[n+1]-c[1])*F);return a.getType()=="Circle"&&a.setCenterAndRadius(a.getCenter(),a.getRadius()),L}),this.get("enableRotatedTransform")&&e!==0&&a.rotate(e,this.getMap().getView().getCenter()),i.setGeometry(a);this.drawSketch_(),this.dispatchEvent({type:"scaling",feature:this.selection_.item(0),features:this.selection_,scale:[C,F],pixel:r.pixel,coordinate:r.coordinate});break}}this.isUpdating_=!1}};li.prototype.handleMoveEvent_=function(r){if(this._handleEvent(r,this.features_)&&!this.mode_){var e=this.getFeatureAtPixel_(r.pixel),t=r.map.getTargetElement();if(e.feature){var n=e.handle?this.Cursors[(e.handle||"default")+(e.constraint||"")+(e.option||"")]:this.Cursors.select;this.previousCursor_===void 0&&(this.previousCursor_=t.style.cursor),t.style.cursor=n}else this.previousCursor_!==void 0&&(t.style.cursor=this.previousCursor_),this.previousCursor_=void 0}};li.prototype.handleUpEvent_=function(r){if(this.mode_==="rotate"){var e=r.map.getTargetElement();e.style.cursor=this.Cursors.default,this.previousCursor_=void 0}return this.dispatchEvent({type:this.mode_+"end",feature:this.selection_.item(0),features:this.selection_,oldgeom:this.geoms_[0],oldgeoms:this.geoms_}),this.drawSketch_(),this.mode_=null,!1};li.prototype.getFeatures=function(){return this.selection_};const llt={name:"ol-interaction-transform",setup(r){const e=Be("map"),{properties:t}=Lr(r);let n=qe(()=>new li(qn({},t)));ye(n,(i,a)=>{e.removeInteraction(a),e.addInteraction(i),e.changed()}),ur(()=>{e.addInteraction(n.value)}),pr(()=>{e.removeInteraction(n.value)}),Ur("stylable",n)},props:{enableRotatedTransform:{type:Boolean,default:!1},condition:{type:Function},addCondition:{type:Function},filter:{type:Function},layers:{type:Array},hitTolerance:{type:Number,default:2},translateFeature:{type:Boolean,default:!0},scale:{type:Boolean,default:!0},rotate:{type:Boolean,default:!0},keepAspectRatio:{type:Boolean,default:!1},translate:{type:Boolean,default:!0},stretch:{type:Boolean,default:!0}}};function ult(r,e,t,n,i,a){return Or(r.$slots,"default")}var Ix=me(llt,[["render",ult]]);const clt={name:"ol-interaction-dragrotatezoom",setup(r){const e=Be("map"),{properties:t}=Lr(r);let n=qe(()=>new hq(qn({},t)));ye(n,(i,a)=>{e.removeInteraction(a),e.addInteraction(i),e.changed()}),ur(()=>{e.addInteraction(n.value)}),pr(()=>{e.removeInteraction(n.value)})},props:{condition:{type:Function},duration:{type:Number,default:400}}};function hlt(r,e,t,n,i,a){return Or(r.$slots,"default")}var Lx=me(clt,[["render",hlt]]);function Bw(r){Bw.installed||(Bw.installed=!0,r.component(Bx.name,Bx),r.component(Tx.name,Tx),r.component(bx.name,bx),r.component(Sx.name,Sx),r.component(xx.name,xx),r.component(Ix.name,Ix),r.component(Lx.name,Lx))}var flt=Object.freeze(Object.defineProperty({__proto__:null,default:Bw,install:Bw,SelectInteraction:Bx,ClusterSelectInteraction:Tx,DrawInteraction:bx,SnapInteraction:Sx,ModifyInteraction:xx,TransformInteraction:Ix,DragRotateAndZoomInteraction:Lx},Symbol.toStringTag,{value:"Module"}));const plt={setup(){const r=Be("map"),e=Be("vectorLayer");return{map:r,vectorLayer:e}},props:{duration:{type:Number,default:1e3},revers:{type:Boolean,default:!1},repeat:{type:Number,default:0},fade:{type:Function},easing:{type:Function,default:Ds}}};function dlt(r,e,t,n,i,a){return Or(r.$slots,"default")}var vA=me(plt,[["render",dlt]]),Xi=function(r){r=r||{},this.duration_=typeof r.duration=="number"?r.duration>=0?r.duration:0:1e3,this.fade_=typeof r.fade=="function"?r.fade:null,this.repeat_=Number(r.repeat);var e=typeof r.easing=="function"?r.easing:iF;r.revers?this.easing_=function(t){return 1-e(t)}:this.easing_=e,this.hiddenStyle=r.hiddenStyle,xi.call(this)};Dr(Xi,xi);Xi.hiddenStyle=new _a({image:new Gy({}),stroke:new Ki({color:"transparent"})});Xi.prototype.drawGeom_=function(r,e,t){this.fade_&&(r.context.globalAlpha=this.fade_(1-r.elapsed));for(var n=r.style,i=0;i<n.length;i++)try{var a=r.vectorContext||WE(r),o=ES(r,n[i]);a.setStyle(o),o.getZIndex()<0?a.drawGeometry(t||e):a.drawGeometry(e)}catch{}};Xi.prototype.animate=function(){return!1};UE.prototype.animateFeature=function(r,e){var t=this._featureAnimationLayer;t||(t=this._featureAnimationLayer=new dl({source:new Tu}),t.setMap(this)),t.getSource().addFeature(r);var n=e.on("animationend",function(i){i.feature===r&&(t.getSource().removeFeature(r),ds(n))});t.animateFeature(r,e)};YL.prototype.animateFeature=function(r,e,t){var n=this,i,a=r.getStyle(),o=a||(this.getStyleFunction?this.getStyleFunction()(r):null);o||(o=[]),o instanceof Array||(o=[o]);var s={vectorContext:null,frameState:null,start:0,time:0,elapsed:0,extent:!1,feature:r,geom:r.getGeometry(),typeGeom:r.getGeometry().getType(),bbox:r.getGeometry().getExtent(),coord:Ya(r.getGeometry().getExtent()),style:o};e instanceof Array||(e=[e]);for(var A=e.length-1;A>=0;A--)e[A].duration_===0&&e.splice(A,1);var l=0,u=0,c=t&&this.getFilters?this.getFilters():[];function h(v){s.type=v.type;try{s.vectorContext=v.vectorContext||WE(v)}catch{}if(s.frameState=v.frameState,s.inversePixelTransform=v.inversePixelTransform,s.extent||(s.extent=v.frameState.extent,s.start=v.frameState.time,s.context=v.context),s.time=v.frameState.time-s.start,s.elapsed=s.time/e[u].duration_,s.elapsed>1&&(s.elapsed=1),v.context.save(),c.forEach(function(g){g.get("active")&&g.precompose(v)}),this.getOpacity&&(v.context.globalAlpha=this.getOpacity()),!e[u].animate(s))l++,l<e[u].repeat_?s.extent=!1:u<e.length-1?(e[u].dispatchEvent({type:"animationend",feature:r}),u++,l=0,s.extent=!1):f();else{var m={type:"animating",step:u,start:s.start,time:s.time,elapsed:s.elapsed,rotation:s.rotation||0,geom:s.geom,coordinate:s.coord,feature:r};e[u].dispatchEvent(m),n.dispatchEvent(m)}c.forEach(function(g){g.get("active")&&g.postcompose(v)}),v.context.restore(),v.frameState.animate=!0}function f(v){ds(i),i=null,r.setStyle(a);var m={type:"animationend",feature:r};if(v)for(var g in v)v.hasOwnProperty(g)&&(m[g]=v[g]);e[u].dispatchEvent(m),n.dispatchEvent(m)}function p(v){if(e.length&&!i){if(i=n.on(["postcompose","postrender"],h.bind(n)),n.renderSync)try{n.renderSync()}catch{}else n.changed();r.setStyle(e[u].hiddenStyle||Xi.hiddenStyle);var m={type:"animationstart",feature:r};if(v)for(var g in v)v.hasOwnProperty(g)&&(m[g]=v[g]);e[u].dispatchEvent(m),n.dispatchEvent(m)}}return p(),{start:p,stop:f,isPlaying:function(){return!!i}}};var VF=function(r){r=r||{},this.speed_=r.speed||0,Xi.call(this,r),this.side_=r.side||"top"};Dr(VF,Xi);VF.prototype.animate=function(r){if(!r.time){var e=r.frameState.viewState.rotation,t=r.frameState.size[1]*r.frameState.viewState.resolution;this.side_!="top"&&(t*=-1),this.dx=-Math.sin(e)*t,this.dy=Math.cos(e)*t,this.speed_&&(this.duration_=t/this.speed_/r.frameState.viewState.resolution)}var n=r.geom.clone();return n.translate(this.dx*(1-this.easing_(r.elapsed)),this.dy*(1-this.easing_(r.elapsed))),this.drawGeom_(r,n,r.geom),r.time<=this.duration_};function lp(r,e){const{map:t,vectorLayer:n}=vA.setup(),{properties:i}=Lr(e),a=qe(()=>new r(qn({},i)));return Ur("animation",a),{map:t,vectorLayer:n,animation:a,properties:i}}const vlt={name:"ol-animation-drop",extends:vA,setup(r){const{map:e,vectorLayer:t,properties:n}=lp(VF,r);return{map:e,vectorLayer:t,properties:n}},props:{side:{type:Number,default:0},speed:{type:Number,default:0}}};function glt(r,e,t,n,i,a){return Or(r.$slots,"default")}var Fx=me(vlt,[["render",glt]]),jF=function(r){r=r||{},Xi.call(this,r),this.amplitude_=r.amplitude||40,this.bounce_=-Math.PI*(r.bounce||6),this.horizontal_=r.horizontal};Dr(jF,Xi);jF.prototype.animate=function(r){var e=r.geom.clone(),t=r.geom.clone(),n=this.easing_(r.elapsed);return n=Math.sin(this.bounce_*n)*this.amplitude_*(1-n)*r.frameState.viewState.resolution,this.horizontal_?(e.translate(n,0),t.translate(n,0)):e.translate(0,n),this.drawGeom_(r,e,t),r.time<=this.duration_};const mlt={name:"ol-animation-shake",extends:vA,setup(r){const{map:e,vectorLayer:t,properties:n,animation:i}=lp(jF,r);return{map:e,vectorLayer:t,properties:n,animation:i}},props:{bounce:{type:Number,default:6},amplitude:{type:Number,default:40},horizontal:{type:Boolean,default:!1}}};function ylt(r,e,t,n,i,a){return Or(r.$slots,"default")}var Ox=me(mlt,[["render",ylt]]),qy=function(r){r=r||{},Xi.call(this,r),this.set("zoomout",r.zoomOut)};Dr(qy,Xi);var _lt=function(r){r=r||{},r.zoomOut=!0,qy.call(this,r)};Dr(_lt,qy);qy.prototype.animate=function(r){var e=this.easing_(r.elapsed);if(e){this.get("zoomout")&&(e=1/e);var t=r.style,n,i,a=[];for(n=0;n<t.length;n++)i=t[n].getImage(),i&&(a[n]=i.getScale(),r.type==="postrender"?i.setScale(a[n]*e/r.frameState.pixelRatio):i.setScale(a[n]*e));for(this.drawGeom_(r,r.geom),n=0;n<t.length;n++)i=t[n].getImage(),i&&i.setScale(a[n])}return r.time<=this.duration_};const wlt={name:"ol-animation-zoom",extends:vA,setup(r){const{map:e,vectorLayer:t,properties:n}=lp(qy,r);return{map:e,vectorLayer:t,properties:n}},props:{zoomOut:{type:Boolean,default:!1}}};function Elt(r,e,t,n,i,a){return Or(r.$slots,"default")}var Rx=me(wlt,[["render",Elt]]),KF=function(r){Xi.call(this,r)};Dr(KF,Xi);KF.prototype.animate=function(r){var e=this.easing_(r.elapsed);if(e){r.context.save();var t=r.frameState.pixelRatio;r.context.globalAlpha=e,r.context.scale(e,1/e);var n=r.frameState.coordinateToPixelTransform,i=(1/e-1)*t*(n[0]*r.coord[0]+n[1]*r.coord[1]+n[4]),a=(e-1)*t*(n[2]*r.coord[0]+n[3]*r.coord[1]+n[5]);r.context.translate(i,a),this.drawGeom_(r,r.geom),r.context.restore()}return r.time<=this.duration_};const Clt={name:"ol-animation-teleport",extends:vA,setup(r){const{map:e,vectorLayer:t,properties:n}=lp(KF,r);return{map:e,vectorLayer:t,properties:n}},props:{}};function Blt(r,e,t,n,i,a){return Or(r.$slots,"default")}var Mx=me(Clt,[["render",Blt]]),YF=function(r){r=r||{},this.speed_=r.speed||0,Xi.call(this,r)};Dr(YF,Xi);YF.prototype.animate=function(r){return r.context.globalAlpha=this.easing_(r.elapsed),this.drawGeom_(r,r.geom),r.time<=this.duration_};const Tlt={name:"ol-animation-fade",extends:vA,setup(r){const{map:e,vectorLayer:t,properties:n}=lp(YF,r);return{map:e,vectorLayer:t,properties:n}}};function blt(r,e,t,n,i,a){return Or(r.$slots,"default")}var Nx=me(Tlt,[["render",blt]]),WF=function(r){r=r||{},this.speed_=r.speed||0,Xi.call(this,r),this.side_=r.side||"left"};Dr(WF,Xi);WF.prototype.animate=function(r){r.time||(this.side_=="left"?this.dx=r.extent[0]-r.bbox[2]:this.dx=r.extent[2]-r.bbox[0],this.speed_&&(this.duration_=Math.abs(this.dx)/this.speed_/r.frameState.viewState.resolution));var e=r.geom.clone();return e.translate(this.dx*(1-this.easing_(r.elapsed)),0),this.drawGeom_(r,e),r.time<=this.duration_};const Slt={name:"ol-animation-slide",extends:vA,setup(r){const{map:e,vectorLayer:t,properties:n}=lp(WF,r);return{map:e,vectorLayer:t,properties:n}},props:{speed:{type:Number,default:0}}};function xlt(r,e,t,n,i,a){return Or(r.$slots,"default")}var Px=me(Slt,[["render",xlt]]),zF=function(r){switch(r=r||{},Xi.call(this,r),this.speed_=r.speed||0,this.path_=r.path,r.rotate){case!0:case 0:this.rotate_=0;break;default:this.rotate_=r.rotate||!1;break}this.path_&&this.path_.getGeometry&&(this.path_=this.path_.getGeometry()),this.path_&&this.path_.getLineString&&(this.path_=this.path_.getLineString()),this.path_.getLength?(this.dist_=this.path_.getLength(),this.path_&&this.path_.getCoordinates&&(this.path_=this.path_.getCoordinates())):this.dist_=0,this.speed_>0&&(this.duration_=this.dist_/this.speed_)};Dr(zF,Xi);zF.prototype.animate=function(r){if(!r.time&&!this.dist_)return!1;var e=this.dist_*this.easing_(r.elapsed),t,n,i,a,o,s,A=0;n=this.path_[0];for(var l=1;l<this.path_.length;l++){if(t=n,n=this.path_[l],a=n[0]-t[0],o=n[1]-t[1],s=Math.sqrt(a*a+o*o),s&&A+s>=e){i=(e-A)/s,n=[t[0]+(n[0]-t[0])*i,t[1]+(n[1]-t[1])*i];break}A+=s}var u=r.style;if(r.rotation=Math.PI/2+Math.atan2(t[1]-n[1],t[0]-n[0]),this.rotate_!==!1){var c=[],h=this.rotate_-r.rotation+r.frameState.viewState.rotation;r.rotation=Math.PI/2+Math.atan2(t[1]-n[1],t[0]-n[0]);for(var f=0;i=r.style[f];f++)i.getImage()&&i.getImage().setRotation(h),c.push(i);r.style=c}return r.geom.setCoordinates(n),this.drawGeom_(r,r.geom),r.style=u,r.time<=this.duration_};const Ilt={name:"ol-animation-path",extends:vA,setup(r){const{map:e,vectorLayer:t,properties:n}=lp(zF,r);return{map:e,vectorLayer:t,properties:n}},props:{rotate:{type:Boolean,default:!1},speed:{type:Number,default:0},path:{type:Object}}};function Llt(r,e,t,n,i,a){return Or(r.$slots,"default")}var Ux=me(Ilt,[["render",Llt]]);function Tw(r){Tw.installed||(Tw.installed=!0,r.component(vA.name,vA),r.component(Fx.name,Fx),r.component(Ox.name,Ox),r.component(Rx.name,Rx),r.component(Mx.name,Mx),r.component(Nx.name,Nx),r.component(Px.name,Px),r.component(Ux.name,Ux))}var Flt=Object.freeze(Object.defineProperty({__proto__:null,default:Tw,install:Tw,FeatureAnimation:vA,DropAnimation:Fx,ShakeAnimation:Ox,ZoomAnimation:Rx,TeleportAnimation:Mx,FadeAnimation:Nx,PathAnimation:Ux,SlideAnimation:Px},Symbol.toStringTag,{value:"Module"})),Olt=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Rlt=function(r){Olt(e,r);function e(t){var n=r.call(this)||this;return n.geometries_=t||null,n.changeEventsKeys_=[],n.listenGeometriesChange_(),n}return e.prototype.unlistenGeometriesChange_=function(){this.changeEventsKeys_.forEach(Wr),this.changeEventsKeys_.length=0},e.prototype.listenGeometriesChange_=function(){if(this.geometries_)for(var t=0,n=this.geometries_.length;t<n;++t)this.changeEventsKeys_.push(je(this.geometries_[t],xe.CHANGE,this.changed,this))},e.prototype.clone=function(){var t=new e(null);return t.setGeometries(this.geometries_),t.applyProperties(this),t},e.prototype.closestPointXY=function(t,n,i,a){if(a<ih(this.getExtent(),t,n))return a;for(var o=this.geometries_,s=0,A=o.length;s<A;++s)a=o[s].closestPointXY(t,n,i,a);return a},e.prototype.containsXY=function(t,n){for(var i=this.geometries_,a=0,o=i.length;a<o;++a)if(i[a].containsXY(t,n))return!0;return!1},e.prototype.computeExtent=function(t){ah(t);for(var n=this.geometries_,i=0,a=n.length;i<a;++i)Kc(t,n[i].getExtent());return t},e.prototype.getGeometries=function(){return dP(this.geometries_)},e.prototype.getGeometriesArray=function(){return this.geometries_},e.prototype.getGeometriesArrayRecursive=function(){for(var t=[],n=this.geometries_,i=0,a=n.length;i<a;++i)n[i].getType()===this.getType()?t=t.concat(n[i].getGeometriesArrayRecursive()):t.push(n[i]);return t},e.prototype.getSimplifiedGeometry=function(t){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),t<0||this.simplifiedGeometryMaxMinSquaredTolerance!==0&&t<this.simplifiedGeometryMaxMinSquaredTolerance)return this;for(var n=[],i=this.geometries_,a=!1,o=0,s=i.length;o<s;++o){var A=i[o],l=A.getSimplifiedGeometry(t);n.push(l),l!==A&&(a=!0)}if(a){var u=new e(null);return u.setGeometriesArray(n),u}else return this.simplifiedGeometryMaxMinSquaredTolerance=t,this},e.prototype.getType=function(){return dt.GEOMETRY_COLLECTION},e.prototype.intersectsExtent=function(t){for(var n=this.geometries_,i=0,a=n.length;i<a;++i)if(n[i].intersectsExtent(t))return!0;return!1},e.prototype.isEmpty=function(){return this.geometries_.length===0},e.prototype.rotate=function(t,n){for(var i=this.geometries_,a=0,o=i.length;a<o;++a)i[a].rotate(t,n);this.changed()},e.prototype.scale=function(t,n,i){var a=i;a||(a=Ya(this.getExtent()));for(var o=this.geometries_,s=0,A=o.length;s<A;++s)o[s].scale(t,n,a);this.changed()},e.prototype.setGeometries=function(t){this.setGeometriesArray(dP(t))},e.prototype.setGeometriesArray=function(t){this.unlistenGeometriesChange_(),this.geometries_=t,this.listenGeometriesChange_(),this.changed()},e.prototype.applyTransform=function(t){for(var n=this.geometries_,i=0,a=n.length;i<a;++i)n[i].applyTransform(t);this.changed()},e.prototype.translate=function(t,n){for(var i=this.geometries_,a=0,o=i.length;a<o;++a)i[a].translate(t,n);this.changed()},e.prototype.disposeInternal=function(){this.unlistenGeometriesChange_(),r.prototype.disposeInternal.call(this)},e}(SE);function dP(r){for(var e=[],t=0,n=r.length;t<n;++t)e.push(r[t].clone());return e}var wa=Rlt,Mlt=Object.freeze(Object.defineProperty({__proto__:null,Circle:_F,Geometry:SE,GeometryCollection:wa,LinearRing:ov,LineString:tn,MultiLineString:Wa,MultiPoint:Qs,MultiPolygon:za,Point:Sr,Polygon:Pn,SimpleGeometry:dA},Symbol.toStringTag,{value:"Module"})),Nlt=function(){function r(){this.dataProjection=void 0,this.defaultFeatureProjection=void 0,this.supportedMediaTypes=null}return r.prototype.getReadOptions=function(e,t){var n;if(t){var i=t.dataProjection?Ve(t.dataProjection):this.readProjection(e);t.extent&&i&&i.getUnits()===lo.TILE_PIXELS&&(i=Ve(i),i.setWorldExtent(t.extent)),n={dataProjection:i,featureProjection:t.featureProjection}}return this.adaptOptions(n)},r.prototype.adaptOptions=function(e){return Ce({dataProjection:this.dataProjection,featureProjection:this.defaultFeatureProjection},e)},r.prototype.getType=function(){return Re()},r.prototype.readFeature=function(e,t){return Re()},r.prototype.readFeatures=function(e,t){return Re()},r.prototype.readGeometry=function(e,t){return Re()},r.prototype.readProjection=function(e){return Re()},r.prototype.writeFeature=function(e,t){return Re()},r.prototype.writeFeatures=function(e,t){return Re()},r.prototype.writeGeometry=function(e,t){return Re()},r}(),Zy=Nlt;function Qn(r,e,t){var n=t?Ve(t.featureProjection):null,i=t?Ve(t.dataProjection):null,a;if(n&&i&&!XA(n,i)?a=(e?r.clone():r).transform(e?n:i,e?i:n):a=r,e&&t&&t.decimals!==void 0){var o=Math.pow(10,t.decimals),s=function(A){for(var l=0,u=A.length;l<u;++l)A[l]=Math.round(A[l]*o)/o;return A};a===r&&(a=r.clone()),a.applyTransform(s)}return a}function XF(r,e){var t=e?Ve(e.featureProjection):null,n=e?Ve(e.dataProjection):null;return t&&n&&!XA(t,n)?q1(r,n,t):r}var Plt=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Ult=function(r){Plt(e,r);function e(){return r.call(this)||this}return e.prototype.getType=function(){return lA.JSON},e.prototype.readFeature=function(t,n){return this.readFeatureFromObject(h_(t),this.getReadOptions(t,n))},e.prototype.readFeatures=function(t,n){return this.readFeaturesFromObject(h_(t),this.getReadOptions(t,n))},e.prototype.readFeatureFromObject=function(t,n){return Re()},e.prototype.readFeaturesFromObject=function(t,n){return Re()},e.prototype.readGeometry=function(t,n){return this.readGeometryFromObject(h_(t),this.getReadOptions(t,n))},e.prototype.readGeometryFromObject=function(t,n){return Re()},e.prototype.readProjection=function(t){return this.readProjectionFromObject(h_(t))},e.prototype.readProjectionFromObject=function(t){return Re()},e.prototype.writeFeature=function(t,n){return JSON.stringify(this.writeFeatureObject(t,n))},e.prototype.writeFeatureObject=function(t,n){return Re()},e.prototype.writeFeatures=function(t,n){return JSON.stringify(this.writeFeaturesObject(t,n))},e.prototype.writeFeaturesObject=function(t,n){return Re()},e.prototype.writeGeometry=function(t,n){return JSON.stringify(this.writeGeometryObject(t,n))},e.prototype.writeGeometryObject=function(t,n){return Re()},e}(Zy);function h_(r){if(typeof r=="string"){var e=JSON.parse(r);return e||null}else return r!==null?r:null}var qF=Ult,Dlt=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),up={};up[dt.POINT]=Hlt;up[dt.LINE_STRING]=Glt;up[dt.POLYGON]=Klt;up[dt.MULTI_POINT]=Vlt;up[dt.MULTI_LINE_STRING]=$lt;up[dt.MULTI_POLYGON]=jlt;var cp={};cp[dt.POINT]=Ylt;cp[dt.LINE_STRING]=Wlt;cp[dt.POLYGON]=zlt;cp[dt.MULTI_POINT]=qlt;cp[dt.MULTI_LINE_STRING]=Xlt;cp[dt.MULTI_POLYGON]=Zlt;var Qlt=function(r){Dlt(e,r);function e(t){var n=this,i=t||{};return n=r.call(this)||this,n.geometryName_=i.geometryName,n}return e.prototype.readFeatureFromObject=function(t,n,i){var a=t,o=vP(a.geometry,n),s=new yr;if(this.geometryName_&&s.setGeometryName(this.geometryName_),s.setGeometry(o),a.attributes){s.setProperties(a.attributes,!0);var A=a.attributes[i];A!==void 0&&s.setId(A)}return s},e.prototype.readFeaturesFromObject=function(t,n){var i=n||{};if(t.features){for(var a=t,o=[],s=a.features,A=0,l=s.length;A<l;++A)o.push(this.readFeatureFromObject(s[A],i,t.objectIdFieldName));return o}else return[this.readFeatureFromObject(t,i)]},e.prototype.readGeometryFromObject=function(t,n){return vP(t,n)},e.prototype.readProjectionFromObject=function(t){if(t.spatialReference&&t.spatialReference.wkid!==void 0){var n=t.spatialReference,i=n.wkid;return Ve("EPSG:"+i)}else return null},e.prototype.writeGeometryObject=function(t,n){return gP(t,this.adaptOptions(n))},e.prototype.writeFeatureObject=function(t,n){n=this.adaptOptions(n);var i={};if(!t.hasProperties())return i.attributes={},i;var a=t.getProperties(),o=t.getGeometry();if(o){i.geometry=gP(o,n);var s=n&&(n.dataProjection||n.featureProjection);s&&(i.geometry.spatialReference={wkid:Number(Ve(s).getCode().split(":").pop())}),delete a[t.getGeometryName()]}return Uf(a)?i.attributes={}:i.attributes=a,i},e.prototype.writeFeaturesObject=function(t,n){n=this.adaptOptions(n);for(var i=[],a=0,o=t.length;a<o;++a)i.push(this.writeFeatureObject(t[a],n));return{features:i}},e}(qF);function vP(r,e){var t,n;if(!r)return null;var i;if(typeof r.x=="number"&&typeof r.y=="number")i=dt.POINT;else if(r.points)i=dt.MULTI_POINT;else if(r.paths){var a=r;a.paths.length===1?i=dt.LINE_STRING:i=dt.MULTI_LINE_STRING}else if(r.rings){var o=r,s=Rv(o),A=klt(o.rings,s);A.length===1?(i=dt.POLYGON,r=Ce({},r,(t={},t.rings=A[0],t))):(i=dt.MULTI_POLYGON,r=Ce({},r,(n={},n.rings=A,n)))}var l=up[i];return Qn(l(r),!1,e)}function klt(r,e){var t=[],n=[],i=[],a,o;for(a=0,o=r.length;a<o;++a){t.length=0,ky(t,0,r[a],e.length);var s=IE(t,0,t.length,e.length);s?n.push([r[a]]):i.push(r[a])}for(;i.length;){var A=i.shift(),l=!1;for(a=n.length-1;a>=0;a--){var u=n[a][0],c=us(new ov(u).getExtent(),new ov(A).getExtent());if(c){n[a].push(A),l=!0;break}}l||n.push([A.reverse()])}return n}function Hlt(r){var e;return r.m!==void 0&&r.z!==void 0?e=new Sr([r.x,r.y,r.z,r.m],ae.XYZM):r.z!==void 0?e=new Sr([r.x,r.y,r.z],ae.XYZ):r.m!==void 0?e=new Sr([r.x,r.y,r.m],ae.XYM):e=new Sr([r.x,r.y]),e}function Glt(r){var e=Rv(r);return new tn(r.paths[0],e)}function $lt(r){var e=Rv(r);return new Wa(r.paths,e)}function Rv(r){var e=ae.XY;return r.hasZ===!0&&r.hasM===!0?e=ae.XYZM:r.hasZ===!0?e=ae.XYZ:r.hasM===!0&&(e=ae.XYM),e}function Vlt(r){var e=Rv(r);return new Qs(r.points,e)}function jlt(r){var e=Rv(r);return new za(r.rings,e)}function Klt(r){var e=Rv(r);return new Pn(r.rings,e)}function Ylt(r,e){var t=r.getCoordinates(),n,i=r.getLayout();return i===ae.XYZ?n={x:t[0],y:t[1],z:t[2]}:i===ae.XYM?n={x:t[0],y:t[1],m:t[2]}:i===ae.XYZM?n={x:t[0],y:t[1],z:t[2],m:t[3]}:i===ae.XY?n={x:t[0],y:t[1]}:Le(!1,34),n}function Jy(r){var e=r.getLayout();return{hasZ:e===ae.XYZ||e===ae.XYZM,hasM:e===ae.XYM||e===ae.XYZM}}function Wlt(r,e){var t=Jy(r);return{hasZ:t.hasZ,hasM:t.hasM,paths:[r.getCoordinates()]}}function zlt(r,e){var t=Jy(r);return{hasZ:t.hasZ,hasM:t.hasM,rings:r.getCoordinates(!1)}}function Xlt(r,e){var t=Jy(r);return{hasZ:t.hasZ,hasM:t.hasM,paths:r.getCoordinates()}}function qlt(r,e){var t=Jy(r);return{hasZ:t.hasZ,hasM:t.hasM,points:r.getCoordinates()}}function Zlt(r,e){for(var t=Jy(r),n=r.getCoordinates(!1),i=[],a=0;a<n.length;a++)for(var o=n[a].length-1;o>=0;o--)i.push(n[a][o]);return{hasZ:t.hasZ,hasM:t.hasM,rings:i}}function gP(r,e){var t=cp[r.getType()];return t(Qn(r,!0,e),e)}var Jlt=Qlt,tut=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),eut=function(r){tut(e,r);function e(t){var n=this,i=t||{};return n=r.call(this)||this,n.dataProjection=Ve(i.dataProjection?i.dataProjection:"EPSG:4326"),i.featureProjection&&(n.defaultFeatureProjection=Ve(i.featureProjection)),n.geometryName_=i.geometryName,n.extractGeometryName_=i.extractGeometryName,n.supportedMediaTypes=["application/geo+json","application/vnd.geo+json"],n}return e.prototype.readFeatureFromObject=function(t,n){var i=null;t.type==="Feature"?i=t:i={type:"Feature",geometry:t,properties:null};var a=Dx(i.geometry,n),o=new yr;return this.geometryName_?o.setGeometryName(this.geometryName_):this.extractGeometryName_&&"geometry_name"in i!==void 0&&o.setGeometryName(i.geometry_name),o.setGeometry(a),"id"in i&&o.setId(i.id),i.properties&&o.setProperties(i.properties,!0),o},e.prototype.readFeaturesFromObject=function(t,n){var i=t,a=null;if(i.type==="FeatureCollection"){var o=t;a=[];for(var s=o.features,A=0,l=s.length;A<l;++A)a.push(this.readFeatureFromObject(s[A],n))}else a=[this.readFeatureFromObject(t,n)];return a},e.prototype.readGeometryFromObject=function(t,n){return Dx(t,n)},e.prototype.readProjectionFromObject=function(t){var n=t.crs,i;return n?n.type=="name"?i=Ve(n.properties.name):n.type==="EPSG"?i=Ve("EPSG:"+n.properties.code):Le(!1,36):i=this.dataProjection,i},e.prototype.writeFeatureObject=function(t,n){n=this.adaptOptions(n);var i={type:"Feature",geometry:null,properties:null},a=t.getId();if(a!==void 0&&(i.id=a),!t.hasProperties())return i;var o=t.getProperties(),s=t.getGeometry();return s&&(i.geometry=Qx(s,n),delete o[t.getGeometryName()]),Uf(o)||(i.properties=o),i},e.prototype.writeFeaturesObject=function(t,n){n=this.adaptOptions(n);for(var i=[],a=0,o=t.length;a<o;++a)i.push(this.writeFeatureObject(t[a],n));return{type:"FeatureCollection",features:i}},e.prototype.writeGeometryObject=function(t,n){return Qx(t,this.adaptOptions(n))},e}(qF);function Dx(r,e){if(!r)return null;var t;switch(r.type){case dt.POINT:{t=nut(r);break}case dt.LINE_STRING:{t=iut(r);break}case dt.POLYGON:{t=Aut(r);break}case dt.MULTI_POINT:{t=out(r);break}case dt.MULTI_LINE_STRING:{t=aut(r);break}case dt.MULTI_POLYGON:{t=sut(r);break}case dt.GEOMETRY_COLLECTION:{t=rut(r);break}default:throw new Error("Unsupported GeoJSON type: "+r.type)}return Qn(t,!1,e)}function rut(r,e){var t=r.geometries.map(function(n){return Dx(n,e)});return new wa(t)}function nut(r){return new Sr(r.coordinates)}function iut(r){return new tn(r.coordinates)}function aut(r){return new Wa(r.coordinates)}function out(r){return new Qs(r.coordinates)}function sut(r){return new za(r.coordinates)}function Aut(r){return new Pn(r.coordinates)}function Qx(r,e){r=Qn(r,!0,e);var t=r.getType(),n;switch(t){case dt.POINT:{n=put(r);break}case dt.LINE_STRING:{n=uut(r);break}case dt.POLYGON:{n=dut(r,e);break}case dt.MULTI_POINT:{n=hut(r);break}case dt.MULTI_LINE_STRING:{n=cut(r);break}case dt.MULTI_POLYGON:{n=fut(r,e);break}case dt.GEOMETRY_COLLECTION:{n=lut(r,e);break}case dt.CIRCLE:{n={type:"GeometryCollection",geometries:[]};break}default:throw new Error("Unsupported geometry type: "+t)}return n}function lut(r,e){var t=r.getGeometriesArray().map(function(n){var i=Ce({},e);return delete i.featureProjection,Qx(n,i)});return{type:"GeometryCollection",geometries:t}}function uut(r,e){return{type:"LineString",coordinates:r.getCoordinates()}}function cut(r,e){return{type:"MultiLineString",coordinates:r.getCoordinates()}}function hut(r,e){return{type:"MultiPoint",coordinates:r.getCoordinates()}}function fut(r,e){var t;return e&&(t=e.rightHanded),{type:"MultiPolygon",coordinates:r.getCoordinates(t)}}function put(r,e){return{type:"Point",coordinates:r.getCoordinates()}}function dut(r,e){var t;return e&&(t=e.rightHanded),{type:"Polygon",coordinates:r.getCoordinates(t)}}var vut=eut,$f="http://www.w3.org/2001/XMLSchema-instance";function Je(r,e){return Mv().createElementNS(r,e)}function yo(r,e){return Bk(r,e,[]).join("")}function Bk(r,e,t){if(r.nodeType==Node.CDATA_SECTION_NODE||r.nodeType==Node.TEXT_NODE)e?t.push(String(r.nodeValue).replace(/(\r\n|\r|\n)/g,"")):t.push(r.nodeValue);else{var n=void 0;for(n=r.firstChild;n;n=n.nextSibling)Bk(n,e,t)}return t}function rl(r){return"documentElement"in r}function gut(r,e,t){return r.getAttributeNS(e,t)||""}function nl(r){return new DOMParser().parseFromString(r,"application/xml")}function mP(r,e){return function(t,n){var i=r.call(e!==void 0?e:this,t,n);if(i!==void 0){var a=n[n.length-1];Jr(a,i)}}}function Ie(r,e){return function(t,n){var i=r.call(e!==void 0?e:this,t,n);if(i!==void 0){var a=n[n.length-1];a.push(i)}}}function $e(r,e){return function(t,n){var i=r.call(e!==void 0?e:this,t,n);i!==void 0&&(n[n.length-1]=i)}}function bn(r,e,t){return function(n,i){var a=r.call(t!==void 0?t:this,n,i);if(a!==void 0){var o=i[i.length-1],s=e!==void 0?e:n.localName,A=void 0;s in o?A=o[s]:(A=[],o[s]=A),A.push(a)}}}function pt(r,e,t){return function(n,i){var a=r.call(t!==void 0?t:this,n,i);if(a!==void 0){var o=i[i.length-1],s=e!==void 0?e:n.localName;o[s]=a}}}function gt(r,e){return function(t,n,i){r.call(e!==void 0?e:this,t,n,i);var a=i[i.length-1],o=a.node;o.appendChild(t)}}function Tk(r,e){var t,n;return function(i,a,o){if(t===void 0){t={};var s={};s[i.localName]=r,t[i.namespaceURI]=s,n=zn(i.localName)}bk(t,n,a,o)}}function zn(r,e){var t=r;return function(n,i,a){var o=i[i.length-1],s=o.node,A=t;A===void 0&&(A=a);var l=e!==void 0?e:s.namespaceURI;return Je(l,A)}}var sa=zn();function Qo(r,e){for(var t=e.length,n=new Array(t),i=0;i<t;++i)n[i]=r[e[i]];return n}function kt(r,e,t){var n=t!==void 0?t:{},i,a;for(i=0,a=r.length;i<a;++i)n[r[i]]=e;return n}function No(r,e,t,n){var i;for(i=e.firstElementChild;i;i=i.nextElementSibling){var a=r[i.namespaceURI];if(a!==void 0){var o=a[i.localName];o!==void 0&&o.call(n,i,t)}}}function Kt(r,e,t,n,i){return n.push(r),No(e,t,n,i),n.pop()}function bk(r,e,t,n,i,a){for(var o=(i!==void 0?i:t).length,s,A,l=0;l<o;++l)s=t[l],s!==void 0&&(A=e.call(a!==void 0?a:this,s,n,i!==void 0?i[l]:void 0),A!==void 0&&r[A.namespaceURI][A.localName].call(a,A,s,n))}function Xe(r,e,t,n,i,a,o){return i.push(r),bk(e,t,n,i,a,o),i.pop()}var oT=void 0;function mut(){return oT===void 0&&typeof XMLSerializer<"u"&&(oT=new XMLSerializer),oT}var sT=void 0;function Mv(){return sT===void 0&&typeof document<"u"&&(sT=document.implementation.createDocument("","",null)),sT}var yut=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),_ut=function(r){yut(e,r);function e(){var t=r.call(this)||this;return t.xmlSerializer_=mut(),t}return e.prototype.getType=function(){return lA.XML},e.prototype.readFeature=function(t,n){if(t)if(typeof t=="string"){var i=nl(t);return this.readFeatureFromDocument(i,n)}else return rl(t)?this.readFeatureFromDocument(t,n):this.readFeatureFromNode(t,n);else return null},e.prototype.readFeatureFromDocument=function(t,n){var i=this.readFeaturesFromDocument(t,n);return i.length>0?i[0]:null},e.prototype.readFeatureFromNode=function(t,n){return null},e.prototype.readFeatures=function(t,n){if(t)if(typeof t=="string"){var i=nl(t);return this.readFeaturesFromDocument(i,n)}else return rl(t)?this.readFeaturesFromDocument(t,n):this.readFeaturesFromNode(t,n);else return[]},e.prototype.readFeaturesFromDocument=function(t,n){for(var i=[],a=t.firstChild;a;a=a.nextSibling)a.nodeType==Node.ELEMENT_NODE&&Jr(i,this.readFeaturesFromNode(a,n));return i},e.prototype.readFeaturesFromNode=function(t,n){return Re()},e.prototype.readGeometry=function(t,n){if(t)if(typeof t=="string"){var i=nl(t);return this.readGeometryFromDocument(i,n)}else return rl(t)?this.readGeometryFromDocument(t,n):this.readGeometryFromNode(t,n);else return null},e.prototype.readGeometryFromDocument=function(t,n){return null},e.prototype.readGeometryFromNode=function(t,n){return null},e.prototype.readProjection=function(t){if(t)if(typeof t=="string"){var n=nl(t);return this.readProjectionFromDocument(n)}else return rl(t)?this.readProjectionFromDocument(t):this.readProjectionFromNode(t);else return null},e.prototype.readProjectionFromDocument=function(t){return this.dataProjection},e.prototype.readProjectionFromNode=function(t){return this.dataProjection},e.prototype.writeFeature=function(t,n){var i=this.writeFeatureNode(t,n);return this.xmlSerializer_.serializeToString(i)},e.prototype.writeFeatureNode=function(t,n){return null},e.prototype.writeFeatures=function(t,n){var i=this.writeFeaturesNode(t,n);return this.xmlSerializer_.serializeToString(i)},e.prototype.writeFeaturesNode=function(t,n){return null},e.prototype.writeGeometry=function(t,n){var i=this.writeGeometryNode(t,n);return this.xmlSerializer_.serializeToString(i)},e.prototype.writeGeometryNode=function(t,n){return null},e}(Zy),t0=_ut,wut=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Au="http://www.opengis.net/gml",Eut=/^[\s\xa0]*$/,si=function(r){wut(e,r);function e(t){var n=r.call(this)||this,i=t||{};return n.featureType=i.featureType,n.featureNS=i.featureNS,n.srsName=i.srsName,n.schemaLocation="",n.FEATURE_COLLECTION_PARSERS={},n.FEATURE_COLLECTION_PARSERS[n.namespace]={featureMember:Ie(n.readFeaturesInternal),featureMembers:$e(n.readFeaturesInternal)},n.supportedMediaTypes=["application/gml+xml"],n}return e.prototype.readFeaturesInternal=function(t,n){var i=t.localName,a=null;if(i=="FeatureCollection")a=Kt([],this.FEATURE_COLLECTION_PARSERS,t,n,this);else if(i=="featureMembers"||i=="featureMember"||i=="member"){var o=n[0],s=o.featureType,A=o.featureNS,l="p",u="p0";if(!s&&t.childNodes){s=[],A={};for(var c=0,h=t.childNodes.length;c<h;++c){var f=t.childNodes[c];if(f.nodeType===1){var p=f.nodeName.split(":").pop();if(s.indexOf(p)===-1){var v="",m=0,g=f.namespaceURI;for(var _ in A){if(A[_]===g){v=_;break}++m}v||(v=l+m,A[v]=g),s.push(v+":"+p)}}}i!="featureMember"&&(o.featureType=s,o.featureNS=A)}if(typeof A=="string"){var w=A;A={},A[u]=w}var C={},F=Array.isArray(s)?s:[s];for(var O in A){for(var I={},c=0,h=F.length;c<h;++c){var b=F[c].indexOf(":")===-1?u:F[c].split(":")[0];b===O&&(I[F[c].split(":").pop()]=i=="featureMembers"?Ie(this.readFeatureElement,this):$e(this.readFeatureElement,this))}C[A[O]]=I}i=="featureMember"||i=="member"?a=Kt(void 0,C,t,n):a=Kt([],C,t,n)}return a===null&&(a=[]),a},e.prototype.readGeometryOrExtent=function(t,n){var i=n[0];return i.srsName=t.firstElementChild.getAttribute("srsName"),i.srsDimension=t.firstElementChild.getAttribute("srsDimension"),Kt(null,this.GEOMETRY_PARSERS,t,n,this)},e.prototype.readExtentElement=function(t,n){var i=n[0],a=this.readGeometryOrExtent(t,n);return a?XF(a,i):void 0},e.prototype.readGeometryElement=function(t,n){var i=n[0],a=this.readGeometryOrExtent(t,n);return a?Qn(a,!1,i):void 0},e.prototype.readFeatureElementInternal=function(t,n,i){for(var a,o={},s=t.firstElementChild;s;s=s.nextElementSibling){var A=void 0,l=s.localName;s.childNodes.length===0||s.childNodes.length===1&&(s.firstChild.nodeType===3||s.firstChild.nodeType===4)?(A=yo(s,!1),Eut.test(A)&&(A=void 0)):(i&&(A=l==="boundedBy"?this.readExtentElement(s,n):this.readGeometryElement(s,n)),A?l!=="boundedBy"&&(a=l):A=this.readFeatureElementInternal(s,n,!1)),o[l]?(o[l]instanceof Array||(o[l]=[o[l]]),o[l].push(A)):o[l]=A;var u=s.attributes.length;if(u>0){o[l]={_content_:o[l]};for(var c=0;c<u;c++){var h=s.attributes[c].name;o[l][h]=s.attributes[c].value}}}if(i){var f=new yr(o);a&&f.setGeometryName(a);var p=t.getAttribute("fid")||gut(t,this.namespace,"id");return p&&f.setId(p),f}else return o},e.prototype.readFeatureElement=function(t,n){return this.readFeatureElementInternal(t,n,!0)},e.prototype.readPoint=function(t,n){var i=this.readFlatCoordinatesFromNode(t,n);if(i)return new Sr(i,ae.XYZ)},e.prototype.readMultiPoint=function(t,n){var i=Kt([],this.MULTIPOINT_PARSERS,t,n,this);if(i)return new Qs(i)},e.prototype.readMultiLineString=function(t,n){var i=Kt([],this.MULTILINESTRING_PARSERS,t,n,this);if(i)return new Wa(i)},e.prototype.readMultiPolygon=function(t,n){var i=Kt([],this.MULTIPOLYGON_PARSERS,t,n,this);if(i)return new za(i)},e.prototype.pointMemberParser=function(t,n){No(this.POINTMEMBER_PARSERS,t,n,this)},e.prototype.lineStringMemberParser=function(t,n){No(this.LINESTRINGMEMBER_PARSERS,t,n,this)},e.prototype.polygonMemberParser=function(t,n){No(this.POLYGONMEMBER_PARSERS,t,n,this)},e.prototype.readLineString=function(t,n){var i=this.readFlatCoordinatesFromNode(t,n);if(i){var a=new tn(i,ae.XYZ);return a}else return},e.prototype.readFlatLinearRing=function(t,n){var i=Kt(null,this.GEOMETRY_FLAT_COORDINATES_PARSERS,t,n,this);if(i)return i},e.prototype.readLinearRing=function(t,n){var i=this.readFlatCoordinatesFromNode(t,n);if(i)return new ov(i,ae.XYZ)},e.prototype.readPolygon=function(t,n){var i=Kt([null],this.FLAT_LINEAR_RINGS_PARSERS,t,n,this);if(i&&i[0]){var a=i[0],o=[a.length],s=void 0,A=void 0;for(s=1,A=i.length;s<A;++s)Jr(a,i[s]),o.push(a.length);return new Pn(a,ae.XYZ,o)}else return},e.prototype.readFlatCoordinatesFromNode=function(t,n){return Kt(null,this.GEOMETRY_FLAT_COORDINATES_PARSERS,t,n,this)},e.prototype.readGeometryFromNode=function(t,n){var i=this.readGeometryElement(t,[this.getReadOptions(t,n||{})]);return i||null},e.prototype.readFeaturesFromNode=function(t,n){var i={featureType:this.featureType,featureNS:this.featureNS};n&&Ce(i,this.getReadOptions(t,n));var a=this.readFeaturesInternal(t,[i]);return a||[]},e.prototype.readProjectionFromNode=function(t){return Ve(this.srsName?this.srsName:t.firstElementChild.getAttribute("srsName"))},e}(t0);si.prototype.namespace=Au;si.prototype.FLAT_LINEAR_RINGS_PARSERS={"http://www.opengis.net/gml":{}};si.prototype.GEOMETRY_FLAT_COORDINATES_PARSERS={"http://www.opengis.net/gml":{}};si.prototype.GEOMETRY_PARSERS={"http://www.opengis.net/gml":{}};si.prototype.MULTIPOINT_PARSERS={"http://www.opengis.net/gml":{pointMember:Ie(si.prototype.pointMemberParser),pointMembers:Ie(si.prototype.pointMemberParser)}};si.prototype.MULTILINESTRING_PARSERS={"http://www.opengis.net/gml":{lineStringMember:Ie(si.prototype.lineStringMemberParser),lineStringMembers:Ie(si.prototype.lineStringMemberParser)}};si.prototype.MULTIPOLYGON_PARSERS={"http://www.opengis.net/gml":{polygonMember:Ie(si.prototype.polygonMemberParser),polygonMembers:Ie(si.prototype.polygonMemberParser)}};si.prototype.POINTMEMBER_PARSERS={"http://www.opengis.net/gml":{Point:Ie(si.prototype.readFlatCoordinatesFromNode)}};si.prototype.LINESTRINGMEMBER_PARSERS={"http://www.opengis.net/gml":{LineString:Ie(si.prototype.readLineString)}};si.prototype.POLYGONMEMBER_PARSERS={"http://www.opengis.net/gml":{Polygon:Ie(si.prototype.readPolygon)}};si.prototype.RING_PARSERS={"http://www.opengis.net/gml":{LinearRing:$e(si.prototype.readFlatLinearRing)}};var Er=si;function th(r){var e=yo(r,!1);return Bf(e)}function Bf(r){var e=/^\s*(true|1)|(false|0)\s*$/.exec(r);if(e)return e[1]!==void 0||!1}function ZF(r){var e=yo(r,!1),t=Date.parse(e);return isNaN(t)?void 0:t/1e3}function $r(r){var e=yo(r,!1);return tu(e)}function tu(r){var e=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*$/i.exec(r);if(e)return parseFloat(e[1])}function Bi(r){var e=yo(r,!1);return nu(e)}function nu(r){var e=/^\s*(\d+)\s*$/.exec(r);if(e)return parseInt(e[1],10)}function Xt(r){return yo(r,!1).trim()}function fv(r,e){Ye(r,e?"1":"0")}function Cut(r,e){r.appendChild(Mv().createCDATASection(e))}function But(r,e){var t=new Date(e*1e3),n=t.getUTCFullYear()+"-"+Sg(t.getUTCMonth()+1,2)+"-"+Sg(t.getUTCDate(),2)+"T"+Sg(t.getUTCHours(),2)+":"+Sg(t.getUTCMinutes(),2)+":"+Sg(t.getUTCSeconds(),2)+"Z";r.appendChild(Mv().createTextNode(n))}function Lo(r,e){var t=e.toPrecision();r.appendChild(Mv().createTextNode(t))}function bw(r,e){var t=e.toString();r.appendChild(Mv().createTextNode(t))}function Ye(r,e){r.appendChild(Mv().createTextNode(e))}var Tut=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),but=Au+" http://schemas.opengis.net/gml/2.1.2/feature.xsd",Sut={MultiLineString:"lineStringMember",MultiCurve:"curveMember",MultiPolygon:"polygonMember",MultiSurface:"surfaceMember"},Pr=function(r){Tut(e,r);function e(t){var n=this,i=t||{};return n=r.call(this,i)||this,n.FEATURE_COLLECTION_PARSERS[Au].featureMember=Ie(n.readFeaturesInternal),n.schemaLocation=i.schemaLocation?i.schemaLocation:but,n}return e.prototype.readFlatCoordinates=function(t,n){var i=yo(t,!1).replace(/^\s*|\s*$/g,""),a=n[0],o=a.srsName,s="enu";if(o){var A=Ve(o);A&&(s=A.getAxisOrientation())}for(var l=i.trim().split(/\s+/),u=[],c=0,h=l.length;c<h;c++){var f=l[c].split(/,+/),p=parseFloat(f[0]),v=parseFloat(f[1]),m=f.length===3?parseFloat(f[2]):0;s.substr(0,2)==="en"?u.push(p,v,m):u.push(v,p,m)}return u},e.prototype.readBox=function(t,n){var i=Kt([null],this.BOX_PARSERS_,t,n,this);return Uo(i[1][0],i[1][1],i[1][3],i[1][4])},e.prototype.innerBoundaryIsParser=function(t,n){var i=Kt(void 0,this.RING_PARSERS,t,n,this);if(i){var a=n[n.length-1];a.push(i)}},e.prototype.outerBoundaryIsParser=function(t,n){var i=Kt(void 0,this.RING_PARSERS,t,n,this);if(i){var a=n[n.length-1];a[0]=i}},e.prototype.GEOMETRY_NODE_FACTORY_=function(t,n,i){var a=n[n.length-1],o=a.multiSurface,s=a.surface,A=a.multiCurve,l;return Array.isArray(t)?l="Envelope":(l=t.getType(),l==="MultiPolygon"&&o===!0?l="MultiSurface":l==="Polygon"&&s===!0?l="Surface":l==="MultiLineString"&&A===!0&&(l="MultiCurve")),Je("http://www.opengis.net/gml",l)},e.prototype.writeFeatureElement=function(t,n,i){var a=n.getId();a&&t.setAttribute("fid",a);var o=i[i.length-1],s=o.featureNS,A=n.getGeometryName();o.serializers||(o.serializers={},o.serializers[s]={});var l=[],u=[];if(n.hasProperties()){var c=n.getProperties();for(var h in c){var f=c[h];f!==null&&(l.push(h),u.push(f),h==A||typeof f.getSimplifiedGeometry=="function"?h in o.serializers[s]||(o.serializers[s][h]=gt(this.writeGeometryElement,this)):h in o.serializers[s]||(o.serializers[s][h]=gt(Ye)))}}var p=Ce({},o);p.node=t,Xe(p,o.serializers,zn(void 0,s),u,i,l)},e.prototype.writeCurveOrLineString=function(t,n,i){var a=i[i.length-1],o=a.srsName;if(t.nodeName!=="LineStringSegment"&&o&&t.setAttribute("srsName",o),t.nodeName==="LineString"||t.nodeName==="LineStringSegment"){var s=this.createCoordinatesNode_(t.namespaceURI);t.appendChild(s),this.writeCoordinates_(s,n,i)}else if(t.nodeName==="Curve"){var A=Je(t.namespaceURI,"segments");t.appendChild(A),this.writeCurveSegments_(A,n,i)}},e.prototype.writeLineStringOrCurveMember=function(t,n,i){var a=this.GEOMETRY_NODE_FACTORY_(n,i);a&&(t.appendChild(a),this.writeCurveOrLineString(a,n,i))},e.prototype.writeMultiCurveOrLineString=function(t,n,i){var a=i[i.length-1],o=a.hasZ,s=a.srsName,A=a.curve;s&&t.setAttribute("srsName",s);var l=n.getLineStrings();Xe({node:t,hasZ:o,srsName:s,curve:A},this.LINESTRINGORCURVEMEMBER_SERIALIZERS,this.MULTIGEOMETRY_MEMBER_NODE_FACTORY_,l,i,void 0,this)},e.prototype.writeGeometryElement=function(t,n,i){var a=i[i.length-1],o=Ce({},a);o.node=t;var s;Array.isArray(n)?s=XF(n,a):s=Qn(n,!0,a),Xe(o,this.GEOMETRY_SERIALIZERS,this.GEOMETRY_NODE_FACTORY_,[s],i,void 0,this)},e.prototype.createCoordinatesNode_=function(t){var n=Je(t,"coordinates");return n.setAttribute("decimal","."),n.setAttribute("cs",","),n.setAttribute("ts"," "),n},e.prototype.writeCoordinates_=function(t,n,i){for(var a=i[i.length-1],o=a.hasZ,s=a.srsName,A=n.getCoordinates(),l=A.length,u=new Array(l),c=0;c<l;++c){var h=A[c];u[c]=this.getCoords_(h,s,o)}Ye(t,u.join(" "))},e.prototype.writeCurveSegments_=function(t,n,i){var a=Je(t.namespaceURI,"LineStringSegment");t.appendChild(a),this.writeCurveOrLineString(a,n,i)},e.prototype.writeSurfaceOrPolygon=function(t,n,i){var a=i[i.length-1],o=a.hasZ,s=a.srsName;if(t.nodeName!=="PolygonPatch"&&s&&t.setAttribute("srsName",s),t.nodeName==="Polygon"||t.nodeName==="PolygonPatch"){var A=n.getLinearRings();Xe({node:t,hasZ:o,srsName:s},this.RING_SERIALIZERS,this.RING_NODE_FACTORY_,A,i,void 0,this)}else if(t.nodeName==="Surface"){var l=Je(t.namespaceURI,"patches");t.appendChild(l),this.writeSurfacePatches_(l,n,i)}},e.prototype.RING_NODE_FACTORY_=function(t,n,i){var a=n[n.length-1],o=a.node,s=a.exteriorWritten;return s===void 0&&(a.exteriorWritten=!0),Je(o.namespaceURI,s!==void 0?"innerBoundaryIs":"outerBoundaryIs")},e.prototype.writeSurfacePatches_=function(t,n,i){var a=Je(t.namespaceURI,"PolygonPatch");t.appendChild(a),this.writeSurfaceOrPolygon(a,n,i)},e.prototype.writeRing=function(t,n,i){var a=Je(t.namespaceURI,"LinearRing");t.appendChild(a),this.writeLinearRing(a,n,i)},e.prototype.getCoords_=function(t,n,i){var a="enu";n&&(a=Ve(n).getAxisOrientation());var o=a.substr(0,2)==="en"?t[0]+","+t[1]:t[1]+","+t[0];if(i){var s=t[2]||0;o+=","+s}return o},e.prototype.writePoint=function(t,n,i){var a=i[i.length-1],o=a.hasZ,s=a.srsName;s&&t.setAttribute("srsName",s);var A=this.createCoordinatesNode_(t.namespaceURI);t.appendChild(A);var l=n.getCoordinates(),u=this.getCoords_(l,s,o);Ye(A,u)},e.prototype.writeMultiPoint=function(t,n,i){var a=i[i.length-1],o=a.hasZ,s=a.srsName;s&&t.setAttribute("srsName",s);var A=n.getPoints();Xe({node:t,hasZ:o,srsName:s},this.POINTMEMBER_SERIALIZERS,zn("pointMember"),A,i,void 0,this)},e.prototype.writePointMember=function(t,n,i){var a=Je(t.namespaceURI,"Point");t.appendChild(a),this.writePoint(a,n,i)},e.prototype.writeLinearRing=function(t,n,i){var a=i[i.length-1],o=a.srsName;o&&t.setAttribute("srsName",o);var s=this.createCoordinatesNode_(t.namespaceURI);t.appendChild(s),this.writeCoordinates_(s,n,i)},e.prototype.writeMultiSurfaceOrPolygon=function(t,n,i){var a=i[i.length-1],o=a.hasZ,s=a.srsName,A=a.surface;s&&t.setAttribute("srsName",s);var l=n.getPolygons();Xe({node:t,hasZ:o,srsName:s,surface:A},this.SURFACEORPOLYGONMEMBER_SERIALIZERS,this.MULTIGEOMETRY_MEMBER_NODE_FACTORY_,l,i,void 0,this)},e.prototype.writeSurfaceOrPolygonMember=function(t,n,i){var a=this.GEOMETRY_NODE_FACTORY_(n,i);a&&(t.appendChild(a),this.writeSurfaceOrPolygon(a,n,i))},e.prototype.writeEnvelope=function(t,n,i){var a=i[i.length-1],o=a.srsName;o&&t.setAttribute("srsName",o);var s=["lowerCorner","upperCorner"],A=[n[0]+" "+n[1],n[2]+" "+n[3]];Xe({node:t},this.ENVELOPE_SERIALIZERS,sa,A,i,s,this)},e.prototype.MULTIGEOMETRY_MEMBER_NODE_FACTORY_=function(t,n,i){var a=n[n.length-1].node;return Je("http://www.opengis.net/gml",Sut[a.nodeName])},e}(Er);Pr.prototype.GEOMETRY_FLAT_COORDINATES_PARSERS={"http://www.opengis.net/gml":{coordinates:$e(Pr.prototype.readFlatCoordinates)}};Pr.prototype.FLAT_LINEAR_RINGS_PARSERS={"http://www.opengis.net/gml":{innerBoundaryIs:Pr.prototype.innerBoundaryIsParser,outerBoundaryIs:Pr.prototype.outerBoundaryIsParser}};Pr.prototype.BOX_PARSERS_={"http://www.opengis.net/gml":{coordinates:Ie(Pr.prototype.readFlatCoordinates)}};Pr.prototype.GEOMETRY_PARSERS={"http://www.opengis.net/gml":{Point:$e(Er.prototype.readPoint),MultiPoint:$e(Er.prototype.readMultiPoint),LineString:$e(Er.prototype.readLineString),MultiLineString:$e(Er.prototype.readMultiLineString),LinearRing:$e(Er.prototype.readLinearRing),Polygon:$e(Er.prototype.readPolygon),MultiPolygon:$e(Er.prototype.readMultiPolygon),Box:$e(Pr.prototype.readBox)}};Pr.prototype.GEOMETRY_SERIALIZERS={"http://www.opengis.net/gml":{Curve:gt(Pr.prototype.writeCurveOrLineString),MultiCurve:gt(Pr.prototype.writeMultiCurveOrLineString),Point:gt(Pr.prototype.writePoint),MultiPoint:gt(Pr.prototype.writeMultiPoint),LineString:gt(Pr.prototype.writeCurveOrLineString),MultiLineString:gt(Pr.prototype.writeMultiCurveOrLineString),LinearRing:gt(Pr.prototype.writeLinearRing),Polygon:gt(Pr.prototype.writeSurfaceOrPolygon),MultiPolygon:gt(Pr.prototype.writeMultiSurfaceOrPolygon),Surface:gt(Pr.prototype.writeSurfaceOrPolygon),MultiSurface:gt(Pr.prototype.writeMultiSurfaceOrPolygon),Envelope:gt(Pr.prototype.writeEnvelope)}};Pr.prototype.LINESTRINGORCURVEMEMBER_SERIALIZERS={"http://www.opengis.net/gml":{lineStringMember:gt(Pr.prototype.writeLineStringOrCurveMember),curveMember:gt(Pr.prototype.writeLineStringOrCurveMember)}};Pr.prototype.RING_SERIALIZERS={"http://www.opengis.net/gml":{outerBoundaryIs:gt(Pr.prototype.writeRing),innerBoundaryIs:gt(Pr.prototype.writeRing)}};Pr.prototype.POINTMEMBER_SERIALIZERS={"http://www.opengis.net/gml":{pointMember:gt(Pr.prototype.writePointMember)}};Pr.prototype.SURFACEORPOLYGONMEMBER_SERIALIZERS={"http://www.opengis.net/gml":{surfaceMember:gt(Pr.prototype.writeSurfaceOrPolygonMember),polygonMember:gt(Pr.prototype.writeSurfaceOrPolygonMember)}};Pr.prototype.ENVELOPE_SERIALIZERS={"http://www.opengis.net/gml":{lowerCorner:gt(Ye),upperCorner:gt(Ye)}};var Nv=Pr,xut=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Iut=Au+" http://schemas.opengis.net/gml/3.1.1/profiles/gmlsfProfile/1.0.0/gmlsf.xsd",Lut={MultiLineString:"lineStringMember",MultiCurve:"curveMember",MultiPolygon:"polygonMember",MultiSurface:"surfaceMember"},Oe=function(r){xut(e,r);function e(t){var n=this,i=t||{};return n=r.call(this,i)||this,n.surface_=i.surface!==void 0?i.surface:!1,n.curve_=i.curve!==void 0?i.curve:!1,n.multiCurve_=i.multiCurve!==void 0?i.multiCurve:!0,n.multiSurface_=i.multiSurface!==void 0?i.multiSurface:!0,n.schemaLocation=i.schemaLocation?i.schemaLocation:Iut,n.hasZ=i.hasZ!==void 0?i.hasZ:!1,n}return e.prototype.readMultiCurve=function(t,n){var i=Kt([],this.MULTICURVE_PARSERS,t,n,this);if(i){var a=new Wa(i);return a}else return},e.prototype.readMultiSurface=function(t,n){var i=Kt([],this.MULTISURFACE_PARSERS,t,n,this);if(i)return new za(i)},e.prototype.curveMemberParser=function(t,n){No(this.CURVEMEMBER_PARSERS,t,n,this)},e.prototype.surfaceMemberParser=function(t,n){No(this.SURFACEMEMBER_PARSERS,t,n,this)},e.prototype.readPatch=function(t,n){return Kt([null],this.PATCHES_PARSERS,t,n,this)},e.prototype.readSegment=function(t,n){return Kt([null],this.SEGMENTS_PARSERS,t,n,this)},e.prototype.readPolygonPatch=function(t,n){return Kt([null],this.FLAT_LINEAR_RINGS_PARSERS,t,n,this)},e.prototype.readLineStringSegment=function(t,n){return Kt([null],this.GEOMETRY_FLAT_COORDINATES_PARSERS,t,n,this)},e.prototype.interiorParser=function(t,n){var i=Kt(void 0,this.RING_PARSERS,t,n,this);if(i){var a=n[n.length-1];a.push(i)}},e.prototype.exteriorParser=function(t,n){var i=Kt(void 0,this.RING_PARSERS,t,n,this);if(i){var a=n[n.length-1];a[0]=i}},e.prototype.readSurface=function(t,n){var i=Kt([null],this.SURFACE_PARSERS,t,n,this);if(i&&i[0]){var a=i[0],o=[a.length],s=void 0,A=void 0;for(s=1,A=i.length;s<A;++s)Jr(a,i[s]),o.push(a.length);return new Pn(a,ae.XYZ,o)}else return},e.prototype.readCurve=function(t,n){var i=Kt([null],this.CURVE_PARSERS,t,n,this);if(i){var a=new tn(i,ae.XYZ);return a}else return},e.prototype.readEnvelope=function(t,n){var i=Kt([null],this.ENVELOPE_PARSERS,t,n,this);return Uo(i[1][0],i[1][1],i[2][0],i[2][1])},e.prototype.readFlatPos=function(t,n){for(var i=yo(t,!1),a=/^\s*([+\-]?\d*\.?\d+(?:[eE][+\-]?\d+)?)\s*/,o=[],s;s=a.exec(i);)o.push(parseFloat(s[1])),i=i.substr(s[0].length);if(i===""){var A=n[0],l=A.srsName,u="enu";if(l){var c=Ve(l);u=c.getAxisOrientation()}if(u==="neu"){var h=void 0,f=void 0;for(h=0,f=o.length;h<f;h+=3){var p=o[h],v=o[h+1];o[h]=v,o[h+1]=p}}var m=o.length;if(m==2&&o.push(0),m!==0)return o}},e.prototype.readFlatPosList=function(t,n){var i=yo(t,!1).replace(/^\s*|\s*$/g,""),a=n[0],o=a.srsName,s=a.srsDimension,A="enu";if(o){var l=Ve(o);A=l.getAxisOrientation()}var u=i.split(/\s+/),c=2;t.getAttribute("srsDimension")?c=nu(t.getAttribute("srsDimension")):t.getAttribute("dimension")?c=nu(t.getAttribute("dimension")):t.parentNode.getAttribute("srsDimension")?c=nu(t.parentNode.getAttribute("srsDimension")):s&&(c=nu(s));for(var h,f,p,v=[],m=0,g=u.length;m<g;m+=c)h=parseFloat(u[m]),f=parseFloat(u[m+1]),p=c===3?parseFloat(u[m+2]):0,A.substr(0,2)==="en"?v.push(h,f,p):v.push(f,h,p);return v},e.prototype.writePos_=function(t,n,i){var a=i[i.length-1],o=a.hasZ,s=o?"3":"2";t.setAttribute("srsDimension",s);var A=a.srsName,l="enu";A&&(l=Ve(A).getAxisOrientation());var u=n.getCoordinates(),c;if(l.substr(0,2)==="en"?c=u[0]+" "+u[1]:c=u[1]+" "+u[0],o){var h=u[2]||0;c+=" "+h}Ye(t,c)},e.prototype.getCoords_=function(t,n,i){var a="enu";n&&(a=Ve(n).getAxisOrientation());var o=a.substr(0,2)==="en"?t[0]+" "+t[1]:t[1]+" "+t[0];if(i){var s=t[2]||0;o+=" "+s}return o},e.prototype.writePosList_=function(t,n,i){var a=i[i.length-1],o=a.hasZ,s=o?"3":"2";t.setAttribute("srsDimension",s);for(var A=a.srsName,l=n.getCoordinates(),u=l.length,c=new Array(u),h,f=0;f<u;++f)h=l[f],c[f]=this.getCoords_(h,A,o);Ye(t,c.join(" "))},e.prototype.writePoint=function(t,n,i){var a=i[i.length-1],o=a.srsName;o&&t.setAttribute("srsName",o);var s=Je(t.namespaceURI,"pos");t.appendChild(s),this.writePos_(s,n,i)},e.prototype.writeEnvelope=function(t,n,i){var a=i[i.length-1],o=a.srsName;o&&t.setAttribute("srsName",o);var s=["lowerCorner","upperCorner"],A=[n[0]+" "+n[1],n[2]+" "+n[3]];Xe({node:t},this.ENVELOPE_SERIALIZERS,sa,A,i,s,this)},e.prototype.writeLinearRing=function(t,n,i){var a=i[i.length-1],o=a.srsName;o&&t.setAttribute("srsName",o);var s=Je(t.namespaceURI,"posList");t.appendChild(s),this.writePosList_(s,n,i)},e.prototype.RING_NODE_FACTORY_=function(t,n,i){var a=n[n.length-1],o=a.node,s=a.exteriorWritten;return s===void 0&&(a.exteriorWritten=!0),Je(o.namespaceURI,s!==void 0?"interior":"exterior")},e.prototype.writeSurfaceOrPolygon=function(t,n,i){var a=i[i.length-1],o=a.hasZ,s=a.srsName;if(t.nodeName!=="PolygonPatch"&&s&&t.setAttribute("srsName",s),t.nodeName==="Polygon"||t.nodeName==="PolygonPatch"){var A=n.getLinearRings();Xe({node:t,hasZ:o,srsName:s},this.RING_SERIALIZERS,this.RING_NODE_FACTORY_,A,i,void 0,this)}else if(t.nodeName==="Surface"){var l=Je(t.namespaceURI,"patches");t.appendChild(l),this.writeSurfacePatches_(l,n,i)}},e.prototype.writeCurveOrLineString=function(t,n,i){var a=i[i.length-1],o=a.srsName;if(t.nodeName!=="LineStringSegment"&&o&&t.setAttribute("srsName",o),t.nodeName==="LineString"||t.nodeName==="LineStringSegment"){var s=Je(t.namespaceURI,"posList");t.appendChild(s),this.writePosList_(s,n,i)}else if(t.nodeName==="Curve"){var A=Je(t.namespaceURI,"segments");t.appendChild(A),this.writeCurveSegments_(A,n,i)}},e.prototype.writeMultiSurfaceOrPolygon=function(t,n,i){var a=i[i.length-1],o=a.hasZ,s=a.srsName,A=a.surface;s&&t.setAttribute("srsName",s);var l=n.getPolygons();Xe({node:t,hasZ:o,srsName:s,surface:A},this.SURFACEORPOLYGONMEMBER_SERIALIZERS,this.MULTIGEOMETRY_MEMBER_NODE_FACTORY_,l,i,void 0,this)},e.prototype.writeMultiPoint=function(t,n,i){var a=i[i.length-1],o=a.srsName,s=a.hasZ;o&&t.setAttribute("srsName",o);var A=n.getPoints();Xe({node:t,hasZ:s,srsName:o},this.POINTMEMBER_SERIALIZERS,zn("pointMember"),A,i,void 0,this)},e.prototype.writeMultiCurveOrLineString=function(t,n,i){var a=i[i.length-1],o=a.hasZ,s=a.srsName,A=a.curve;s&&t.setAttribute("srsName",s);var l=n.getLineStrings();Xe({node:t,hasZ:o,srsName:s,curve:A},this.LINESTRINGORCURVEMEMBER_SERIALIZERS,this.MULTIGEOMETRY_MEMBER_NODE_FACTORY_,l,i,void 0,this)},e.prototype.writeRing=function(t,n,i){var a=Je(t.namespaceURI,"LinearRing");t.appendChild(a),this.writeLinearRing(a,n,i)},e.prototype.writeSurfaceOrPolygonMember=function(t,n,i){var a=this.GEOMETRY_NODE_FACTORY_(n,i);a&&(t.appendChild(a),this.writeSurfaceOrPolygon(a,n,i))},e.prototype.writePointMember=function(t,n,i){var a=Je(t.namespaceURI,"Point");t.appendChild(a),this.writePoint(a,n,i)},e.prototype.writeLineStringOrCurveMember=function(t,n,i){var a=this.GEOMETRY_NODE_FACTORY_(n,i);a&&(t.appendChild(a),this.writeCurveOrLineString(a,n,i))},e.prototype.writeSurfacePatches_=function(t,n,i){var a=Je(t.namespaceURI,"PolygonPatch");t.appendChild(a),this.writeSurfaceOrPolygon(a,n,i)},e.prototype.writeCurveSegments_=function(t,n,i){var a=Je(t.namespaceURI,"LineStringSegment");t.appendChild(a),this.writeCurveOrLineString(a,n,i)},e.prototype.writeGeometryElement=function(t,n,i){var a=i[i.length-1],o=Ce({},a);o.node=t;var s;Array.isArray(n)?s=XF(n,a):s=Qn(n,!0,a),Xe(o,this.GEOMETRY_SERIALIZERS,this.GEOMETRY_NODE_FACTORY_,[s],i,void 0,this)},e.prototype.writeFeatureElement=function(t,n,i){var a=n.getId();a&&t.setAttribute("fid",a);var o=i[i.length-1],s=o.featureNS,A=n.getGeometryName();o.serializers||(o.serializers={},o.serializers[s]={});var l=[],u=[];if(n.hasProperties()){var c=n.getProperties();for(var h in c){var f=c[h];f!==null&&(l.push(h),u.push(f),h==A||typeof f.getSimplifiedGeometry=="function"?h in o.serializers[s]||(o.serializers[s][h]=gt(this.writeGeometryElement,this)):h in o.serializers[s]||(o.serializers[s][h]=gt(Ye)))}}var p=Ce({},o);p.node=t,Xe(p,o.serializers,zn(void 0,s),u,i,l)},e.prototype.writeFeatureMembers_=function(t,n,i){var a=i[i.length-1],o=a.featureType,s=a.featureNS,A={};A[s]={},A[s][o]=gt(this.writeFeatureElement,this);var l=Ce({},a);l.node=t,Xe(l,A,zn(o,s),n,i)},e.prototype.MULTIGEOMETRY_MEMBER_NODE_FACTORY_=function(t,n,i){var a=n[n.length-1].node;return Je(this.namespace,Lut[a.nodeName])},e.prototype.GEOMETRY_NODE_FACTORY_=function(t,n,i){var a=n[n.length-1],o=a.multiSurface,s=a.surface,A=a.curve,l=a.multiCurve,u;return Array.isArray(t)?u="Envelope":(u=t.getType(),u==="MultiPolygon"&&o===!0?u="MultiSurface":u==="Polygon"&&s===!0?u="Surface":u==="LineString"&&A===!0?u="Curve":u==="MultiLineString"&&l===!0&&(u="MultiCurve")),Je(this.namespace,u)},e.prototype.writeGeometryNode=function(t,n){n=this.adaptOptions(n);var i=Je(this.namespace,"geom"),a={node:i,hasZ:this.hasZ,srsName:this.srsName,curve:this.curve_,surface:this.surface_,multiSurface:this.multiSurface_,multiCurve:this.multiCurve_};return n&&Ce(a,n),this.writeGeometryElement(i,t,[a]),i},e.prototype.writeFeaturesNode=function(t,n){n=this.adaptOptions(n);var i=Je(this.namespace,"featureMembers");i.setAttributeNS($f,"xsi:schemaLocation",this.schemaLocation);var a={srsName:this.srsName,hasZ:this.hasZ,curve:this.curve_,surface:this.surface_,multiSurface:this.multiSurface_,multiCurve:this.multiCurve_,featureNS:this.featureNS,featureType:this.featureType};return n&&Ce(a,n),this.writeFeatureMembers_(i,t,[a]),i},e}(Er);Oe.prototype.GEOMETRY_FLAT_COORDINATES_PARSERS={"http://www.opengis.net/gml":{pos:$e(Oe.prototype.readFlatPos),posList:$e(Oe.prototype.readFlatPosList),coordinates:$e(Nv.prototype.readFlatCoordinates)}};Oe.prototype.FLAT_LINEAR_RINGS_PARSERS={"http://www.opengis.net/gml":{interior:Oe.prototype.interiorParser,exterior:Oe.prototype.exteriorParser}};Oe.prototype.GEOMETRY_PARSERS={"http://www.opengis.net/gml":{Point:$e(Er.prototype.readPoint),MultiPoint:$e(Er.prototype.readMultiPoint),LineString:$e(Er.prototype.readLineString),MultiLineString:$e(Er.prototype.readMultiLineString),LinearRing:$e(Er.prototype.readLinearRing),Polygon:$e(Er.prototype.readPolygon),MultiPolygon:$e(Er.prototype.readMultiPolygon),Surface:$e(Oe.prototype.readSurface),MultiSurface:$e(Oe.prototype.readMultiSurface),Curve:$e(Oe.prototype.readCurve),MultiCurve:$e(Oe.prototype.readMultiCurve),Envelope:$e(Oe.prototype.readEnvelope)}};Oe.prototype.MULTICURVE_PARSERS={"http://www.opengis.net/gml":{curveMember:Ie(Oe.prototype.curveMemberParser),curveMembers:Ie(Oe.prototype.curveMemberParser)}};Oe.prototype.MULTISURFACE_PARSERS={"http://www.opengis.net/gml":{surfaceMember:Ie(Oe.prototype.surfaceMemberParser),surfaceMembers:Ie(Oe.prototype.surfaceMemberParser)}};Oe.prototype.CURVEMEMBER_PARSERS={"http://www.opengis.net/gml":{LineString:Ie(Er.prototype.readLineString),Curve:Ie(Oe.prototype.readCurve)}};Oe.prototype.SURFACEMEMBER_PARSERS={"http://www.opengis.net/gml":{Polygon:Ie(Er.prototype.readPolygon),Surface:Ie(Oe.prototype.readSurface)}};Oe.prototype.SURFACE_PARSERS={"http://www.opengis.net/gml":{patches:$e(Oe.prototype.readPatch)}};Oe.prototype.CURVE_PARSERS={"http://www.opengis.net/gml":{segments:$e(Oe.prototype.readSegment)}};Oe.prototype.ENVELOPE_PARSERS={"http://www.opengis.net/gml":{lowerCorner:Ie(Oe.prototype.readFlatPosList),upperCorner:Ie(Oe.prototype.readFlatPosList)}};Oe.prototype.PATCHES_PARSERS={"http://www.opengis.net/gml":{PolygonPatch:$e(Oe.prototype.readPolygonPatch)}};Oe.prototype.SEGMENTS_PARSERS={"http://www.opengis.net/gml":{LineStringSegment:$e(Oe.prototype.readLineStringSegment)}};Oe.prototype.writeFeatures;Oe.prototype.RING_SERIALIZERS={"http://www.opengis.net/gml":{exterior:gt(Oe.prototype.writeRing),interior:gt(Oe.prototype.writeRing)}};Oe.prototype.ENVELOPE_SERIALIZERS={"http://www.opengis.net/gml":{lowerCorner:gt(Ye),upperCorner:gt(Ye)}};Oe.prototype.SURFACEORPOLYGONMEMBER_SERIALIZERS={"http://www.opengis.net/gml":{surfaceMember:gt(Oe.prototype.writeSurfaceOrPolygonMember),polygonMember:gt(Oe.prototype.writeSurfaceOrPolygonMember)}};Oe.prototype.POINTMEMBER_SERIALIZERS={"http://www.opengis.net/gml":{pointMember:gt(Oe.prototype.writePointMember)}};Oe.prototype.LINESTRINGORCURVEMEMBER_SERIALIZERS={"http://www.opengis.net/gml":{lineStringMember:gt(Oe.prototype.writeLineStringOrCurveMember),curveMember:gt(Oe.prototype.writeLineStringOrCurveMember)}};Oe.prototype.GEOMETRY_SERIALIZERS={"http://www.opengis.net/gml":{Curve:gt(Oe.prototype.writeCurveOrLineString),MultiCurve:gt(Oe.prototype.writeMultiCurveOrLineString),Point:gt(Oe.prototype.writePoint),MultiPoint:gt(Oe.prototype.writeMultiPoint),LineString:gt(Oe.prototype.writeCurveOrLineString),MultiLineString:gt(Oe.prototype.writeMultiCurveOrLineString),LinearRing:gt(Oe.prototype.writeLinearRing),Polygon:gt(Oe.prototype.writeSurfaceOrPolygon),MultiPolygon:gt(Oe.prototype.writeMultiSurfaceOrPolygon),Surface:gt(Oe.prototype.writeSurfaceOrPolygon),MultiSurface:gt(Oe.prototype.writeMultiSurfaceOrPolygon),Envelope:gt(Oe.prototype.writeEnvelope)}};var hr=Oe,JF=hr;JF.prototype.writeFeatures;JF.prototype.writeFeaturesNode;var Fut=JF,Out=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Pi=[null,"http://www.topografix.com/GPX/1/0","http://www.topografix.com/GPX/1/1"],Rut="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd",Mut={rte:Sk,trk:xk,wpt:Ik},Nut=kt(Pi,{rte:Ie(Sk),trk:Ie(xk),wpt:Ie(Ik)}),Put=kt(Pi,{text:pt(Xt,"linkText"),type:pt(Xt,"linkType")}),Uut=kt(Pi,{rte:gt(sct),trk:gt(Act),wpt:gt(uct)}),Dut=function(r){Out(e,r);function e(t){var n=r.call(this)||this,i=t||{};return n.dataProjection=Ve("EPSG:4326"),n.readExtensions_=i.readExtensions,n}return e.prototype.handleReadExtensions_=function(t){t||(t=[]);for(var n=0,i=t.length;n<i;++n){var a=t[n];if(this.readExtensions_){var o=a.get("extensionsNode_")||null;this.readExtensions_(a,o)}a.set("extensionsNode_",void 0)}},e.prototype.readFeatureFromNode=function(t,n){if(!Ri(Pi,t.namespaceURI))return null;var i=Mut[t.localName];if(!i)return null;var a=i(t,[this.getReadOptions(t,n)]);return a?(this.handleReadExtensions_([a]),a):null},e.prototype.readFeaturesFromNode=function(t,n){if(!Ri(Pi,t.namespaceURI))return[];if(t.localName=="gpx"){var i=Kt([],Nut,t,[this.getReadOptions(t,n)]);return i?(this.handleReadExtensions_(i),i):[]}return[]},e.prototype.writeFeaturesNode=function(t,n){n=this.adaptOptions(n);var i=Je("http://www.topografix.com/GPX/1/1","gpx"),a="http://www.w3.org/2000/xmlns/";return i.setAttributeNS(a,"xmlns:xsi",$f),i.setAttributeNS($f,"xsi:schemaLocation",Rut),i.setAttribute("version","1.1"),i.setAttribute("creator","OpenLayers"),Xe({node:i},Uut,nct,t,[n]),i},e}(t0),Qut=kt(Pi,{name:pt(Xt),cmt:pt(Xt),desc:pt(Xt),src:pt(Xt),link:rO,number:pt(Bi),extensions:nO,type:pt(Xt),rtept:ict}),kut=kt(Pi,{ele:pt($r),time:pt(ZF)}),Hut=kt(Pi,{name:pt(Xt),cmt:pt(Xt),desc:pt(Xt),src:pt(Xt),link:rO,number:pt(Bi),type:pt(Xt),extensions:nO,trkseg:oct}),Gut=kt(Pi,{trkpt:act}),$ut=kt(Pi,{ele:pt($r),time:pt(ZF)}),Vut=kt(Pi,{ele:pt($r),time:pt(ZF),magvar:pt($r),geoidheight:pt($r),name:pt(Xt),cmt:pt(Xt),desc:pt(Xt),src:pt(Xt),link:rO,sym:pt(Xt),type:pt(Xt),fix:pt(Xt),sat:pt(Bi),hdop:pt($r),vdop:pt($r),pdop:pt($r),ageofdgpsdata:pt($r),dgpsid:pt(Bi),extensions:nO}),jut=["text","type"],Kut=kt(Pi,{text:gt(Ye),type:gt(Ye)}),Yut=kt(Pi,["name","cmt","desc","src","link","number","type","rtept"]),Wut=kt(Pi,{name:gt(Ye),cmt:gt(Ye),desc:gt(Ye),src:gt(Ye),link:gt(iO),number:gt(bw),type:gt(Ye),rtept:Tk(gt(aO))}),zut=kt(Pi,["ele","time"]),Xut=kt(Pi,["name","cmt","desc","src","link","number","type","trkseg"]),qut=kt(Pi,{name:gt(Ye),cmt:gt(Ye),desc:gt(Ye),src:gt(Ye),link:gt(iO),number:gt(bw),type:gt(Ye),trkseg:Tk(gt(lct))}),Zut=zn("trkpt"),Jut=kt(Pi,{trkpt:gt(aO)}),tct=kt(Pi,["ele","time","magvar","geoidheight","name","cmt","desc","src","link","sym","type","fix","sat","hdop","vdop","pdop","ageofdgpsdata","dgpsid"]),ect=kt(Pi,{ele:gt(Lo),time:gt(But),magvar:gt(Lo),geoidheight:gt(Lo),name:gt(Ye),cmt:gt(Ye),desc:gt(Ye),src:gt(Ye),link:gt(iO),sym:gt(Ye),type:gt(Ye),fix:gt(Ye),sat:gt(bw),hdop:gt(Lo),vdop:gt(Lo),pdop:gt(Lo),ageofdgpsdata:gt(Lo),dgpsid:gt(bw)}),rct={Point:"wpt",LineString:"rte",MultiLineString:"trk"};function nct(r,e,t){var n=r.getGeometry();if(n){var i=rct[n.getType()];if(i){var a=e[e.length-1].node;return Je(a.namespaceURI,i)}}}function tO(r,e,t,n){return r.push(parseFloat(t.getAttribute("lon")),parseFloat(t.getAttribute("lat"))),"ele"in n?(r.push(n.ele),delete n.ele,e.hasZ=!0):r.push(0),"time"in n?(r.push(n.time),delete n.time,e.hasM=!0):r.push(0),r}function eO(r,e,t){var n=ae.XY,i=2;if(r.hasZ&&r.hasM?(n=ae.XYZM,i=4):r.hasZ?(n=ae.XYZ,i=3):r.hasM&&(n=ae.XYM,i=3),i!==4){for(var a=0,o=e.length/4;a<o;a++)e[a*i]=e[a*4],e[a*i+1]=e[a*4+1],r.hasZ&&(e[a*i+2]=e[a*4+2]),r.hasM&&(e[a*i+2]=e[a*4+3]);if(e.length=e.length/4*i,t)for(var a=0,o=t.length;a<o;a++)t[a]=t[a]/4*i}return n}function rO(r,e){var t=e[e.length-1],n=r.getAttribute("href");n!==null&&(t.link=n),No(Put,r,e)}function nO(r,e){var t=e[e.length-1];t.extensionsNode_=r}function ict(r,e){var t=Kt({},kut,r,e);if(t){var n=e[e.length-1],i=n.flatCoordinates,a=n.layoutOptions;tO(i,a,r,t)}}function act(r,e){var t=Kt({},$ut,r,e);if(t){var n=e[e.length-1],i=n.flatCoordinates,a=n.layoutOptions;tO(i,a,r,t)}}function oct(r,e){var t=e[e.length-1];No(Gut,r,e);var n=t.flatCoordinates,i=t.ends;i.push(n.length)}function Sk(r,e){var t=e[0],n=Kt({flatCoordinates:[],layoutOptions:{}},Qut,r,e);if(n){var i=n.flatCoordinates;delete n.flatCoordinates;var a=n.layoutOptions;delete n.layoutOptions;var o=eO(a,i),s=new tn(i,o);Qn(s,!1,t);var A=new yr(s);return A.setProperties(n,!0),A}}function xk(r,e){var t=e[0],n=Kt({flatCoordinates:[],ends:[],layoutOptions:{}},Hut,r,e);if(n){var i=n.flatCoordinates;delete n.flatCoordinates;var a=n.ends;delete n.ends;var o=n.layoutOptions;delete n.layoutOptions;var s=eO(o,i,a),A=new Wa(i,s,a);Qn(A,!1,t);var l=new yr(A);return l.setProperties(n,!0),l}}function Ik(r,e){var t=e[0],n=Kt({},Vut,r,e);if(n){var i={},a=tO([],i,r,n),o=eO(i,a),s=new Sr(a,o);Qn(s,!1,t);var A=new yr(s);return A.setProperties(n,!0),A}}function iO(r,e,t){r.setAttribute("href",e);var n=t[t.length-1],i=n.properties,a=[i.linkText,i.linkType];Xe({node:r},Kut,sa,a,t,jut)}function aO(r,e,t){var n=t[t.length-1],i=n.node,a=i.namespaceURI,o=n.properties;r.setAttributeNS(null,"lat",String(e[1])),r.setAttributeNS(null,"lon",String(e[0]));var s=n.geometryLayout;switch(s){case ae.XYZM:e[3]!==0&&(o.time=e[3]);case ae.XYZ:e[2]!==0&&(o.ele=e[2]);break;case ae.XYM:e[2]!==0&&(o.time=e[2]);break}var A=r.nodeName=="rtept"?zut[a]:tct[a],l=Qo(o,A);Xe({node:r,properties:o},ect,sa,l,t,A)}function sct(r,e,t){var n=t[0],i=e.getProperties(),a={node:r};a.properties=i;var o=e.getGeometry();if(o.getType()==dt.LINE_STRING){var s=Qn(o,!0,n);a.geometryLayout=s.getLayout(),i.rtept=s.getCoordinates()}var A=t[t.length-1].node,l=Yut[A.namespaceURI],u=Qo(i,l);Xe(a,Wut,sa,u,t,l)}function Act(r,e,t){var n=t[0],i=e.getProperties(),a={node:r};a.properties=i;var o=e.getGeometry();if(o.getType()==dt.MULTI_LINE_STRING){var s=Qn(o,!0,n);i.trkseg=s.getLineStrings()}var A=t[t.length-1].node,l=Xut[A.namespaceURI],u=Qo(i,l);Xe(a,qut,sa,u,t,l)}function lct(r,e,t){var n={node:r};n.geometryLayout=e.getLayout(),n.properties={},Xe(n,Jut,Zut,e.getCoordinates(),t)}function uct(r,e,t){var n=t[0],i=t[t.length-1];i.properties=e.getProperties();var a=e.getGeometry();if(a.getType()==dt.POINT){var o=Qn(a,!0,n);i.geometryLayout=o.getLayout(),aO(r,o.getCoordinates(),t)}}var cct=Dut,hct=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),fct=function(r){hct(e,r);function e(){return r.call(this)||this}return e.prototype.getType=function(){return lA.TEXT},e.prototype.readFeature=function(t,n){return this.readFeatureFromText(f_(t),this.adaptOptions(n))},e.prototype.readFeatureFromText=function(t,n){return Re()},e.prototype.readFeatures=function(t,n){return this.readFeaturesFromText(f_(t),this.adaptOptions(n))},e.prototype.readFeaturesFromText=function(t,n){return Re()},e.prototype.readGeometry=function(t,n){return this.readGeometryFromText(f_(t),this.adaptOptions(n))},e.prototype.readGeometryFromText=function(t,n){return Re()},e.prototype.readProjection=function(t){return this.readProjectionFromText(f_(t))},e.prototype.readProjectionFromText=function(t){return this.dataProjection},e.prototype.writeFeature=function(t,n){return this.writeFeatureText(t,this.adaptOptions(n))},e.prototype.writeFeatureText=function(t,n){return Re()},e.prototype.writeFeatures=function(t,n){return this.writeFeaturesText(t,this.adaptOptions(n))},e.prototype.writeFeaturesText=function(t,n){return Re()},e.prototype.writeGeometry=function(t,n){return this.writeGeometryText(t,this.adaptOptions(n))},e.prototype.writeGeometryText=function(t,n){return Re()},e}(Zy);function f_(r){return typeof r=="string"?r:""}var oO=fct,pct=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Ng={BAROMETRIC:"barometric",GPS:"gps",NONE:"none"},dct=/^B(\d{2})(\d{2})(\d{2})(\d{2})(\d{5})([NS])(\d{3})(\d{5})([EW])([AV])(\d{5})(\d{5})/,vct=/^H.([A-Z]{3}).*?:(.*)/,gct=/^HFDTE(\d{2})(\d{2})(\d{2})/,mct=/\r\n|\r|\n/,yct=function(r){pct(e,r);function e(t){var n=r.call(this)||this,i=t||{};return n.dataProjection=Ve("EPSG:4326"),n.altitudeMode_=i.altitudeMode?i.altitudeMode:Ng.NONE,n}return e.prototype.readFeatureFromText=function(t,n){var i=this.altitudeMode_,a=t.split(mct),o={},s=[],A=2e3,l=0,u=1,c=-1,h,f;for(h=0,f=a.length;h<f;++h){var p=a[h],v=void 0;if(p.charAt(0)=="B"){if(v=dct.exec(p),v){var m=parseInt(v[1],10),g=parseInt(v[2],10),_=parseInt(v[3],10),w=parseInt(v[4],10)+parseInt(v[5],10)/6e4;v[6]=="S"&&(w=-w);var C=parseInt(v[7],10)+parseInt(v[8],10)/6e4;if(v[9]=="W"&&(C=-C),s.push(C,w),i!=Ng.NONE){var F=void 0;i==Ng.GPS?F=parseInt(v[11],10):i==Ng.BAROMETRIC?F=parseInt(v[12],10):F=0,s.push(F)}var O=Date.UTC(A,l,u,m,g,_);O<c&&(O=Date.UTC(A,l,u+1,m,g,_)),s.push(O/1e3),c=O}}else p.charAt(0)=="H"&&(v=gct.exec(p),v?(u=parseInt(v[1],10),l=parseInt(v[2],10)-1,A=2e3+parseInt(v[3],10)):(v=vct.exec(p),v&&(o[v[1]]=v[2].trim())))}if(s.length===0)return null;var I=i==Ng.NONE?ae.XYM:ae.XYZM,b=new tn(s,I),L=new yr(Qn(b,!1,n));return L.setProperties(o,!0),L},e.prototype.readFeaturesFromText=function(t,n){var i=this.readFeatureFromText(t,n);return i?[i]:[]},e}(oO),_ct=yct,wct=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),xu=["http://www.google.com/kml/ext/2.2"],Me=[null,"http://earth.google.com/kml/2.0","http://earth.google.com/kml/2.1","http://earth.google.com/kml/2.2","http://www.opengis.net/kml/2.2"],Ect="http://www.opengis.net/kml/2.2 https://developers.google.com/kml/schema/kml22gx.xsd",yP={fraction:so.FRACTION,pixels:so.PIXELS,insetPixels:so.PIXELS},Cct=kt(Me,{ExtendedData:Vk,Region:jk,MultiGeometry:pt(Hk,"geometry"),LineString:pt(Qk,"geometry"),LinearRing:pt(kk,"geometry"),Point:pt(Gk,"geometry"),Polygon:pt($k,"geometry"),Style:pt(lO),StyleMap:aht,address:pt(Xt),description:pt(Xt),name:pt(Xt),open:pt(th),phoneNumber:pt(Xt),styleUrl:pt(Mk),visibility:pt(th)},kt(xu,{MultiTrack:pt(Kct,"geometry"),Track:pt(Dk,"geometry")})),Bct=kt(Me,{ExtendedData:Vk,Region:jk,Link:ght,address:pt(Xt),description:pt(Xt),name:pt(Xt),open:pt(th),phoneNumber:pt(Xt),visibility:pt(th)}),Tct=kt(Me,{href:pt(Rk)}),Lk=kt(Me,{LatLonAltBox:uht,Lod:hht}),bct=kt(Me,["Document","Placemark"]),Sct=kt(Me,{Document:gt(Tht),Placemark:gt(Wk)}),Yd,w1=null,kx,Im,Lm,Fm,Sw,Hx=null,sO,Gx=null,$x,uf=null,_P=null,Vx=null;function xw(r){return 32/Math.min(r[0],r[1])}function xct(){Yd=[255,255,255,1],w1=new Ea({color:Yd}),kx=[20,2],Im=so.PIXELS,Lm=so.PIXELS,Fm=[64,64],Sw="https://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png",Hx=new jy({anchor:kx,anchorOrigin:Hi.BOTTOM_LEFT,anchorXUnits:Im,anchorYUnits:Lm,crossOrigin:"anonymous",rotation:0,scale:xw(Fm),size:Fm,src:Sw}),sO="NO_IMAGE",Gx=new Ki({color:Yd,width:1}),$x=new Ki({color:[51,51,51,1],width:2}),uf=new rp({font:"bold 16px Helvetica",fill:w1,stroke:$x,scale:.8}),_P=new _a({fill:w1,image:Hx,text:uf,stroke:Gx,zIndex:0}),Vx=[_P]}var p_;function Ict(r){return r}var Lct=function(r){wct(e,r);function e(t){var n=r.call(this)||this,i=t||{};return Vx||xct(),n.dataProjection=Ve("EPSG:4326"),n.defaultStyle_=i.defaultStyle?i.defaultStyle:Vx,n.extractStyles_=i.extractStyles!==void 0?i.extractStyles:!0,n.writeStyles_=i.writeStyles!==void 0?i.writeStyles:!0,n.sharedStyles_={},n.showPointNames_=i.showPointNames!==void 0?i.showPointNames:!0,n.crossOrigin_=i.crossOrigin!==void 0?i.crossOrigin:"anonymous",n.iconUrlFunction_=i.iconUrlFunction?i.iconUrlFunction:Ict,n.supportedMediaTypes=["application/vnd.google-earth.kml+xml"],n}return e.prototype.readDocumentOrFolder_=function(t,n){var i=kt(Me,{Document:mP(this.readDocumentOrFolder_,this),Folder:mP(this.readDocumentOrFolder_,this),Placemark:Ie(this.readPlacemark_,this),Style:this.readSharedStyle_.bind(this),StyleMap:this.readSharedStyleMap_.bind(this)}),a=Kt([],i,t,n,this);if(a)return a},e.prototype.readPlacemark_=function(t,n){var i=Kt({geometry:null},Cct,t,n,this);if(i){var a=new yr,o=t.getAttribute("id");o!==null&&a.setId(o);var s=n[0],A=i.geometry;if(A&&Qn(A,!1,s),a.setGeometry(A),delete i.geometry,this.extractStyles_){var l=i.Style,u=i.styleUrl,c=Oct(l,u,this.defaultStyle_,this.sharedStyles_,this.showPointNames_);a.setStyle(c)}return delete i.Style,a.setProperties(i,!0),a}},e.prototype.readSharedStyle_=function(t,n){var i=t.getAttribute("id");if(i!==null){var a=lO.call(this,t,n);if(a){var o=void 0,s=t.baseURI;if((!s||s=="about:blank")&&(s=window.location.href),s){var A=new URL("#"+i,s);o=A.href}else o="#"+i;this.sharedStyles_[o]=a}}},e.prototype.readSharedStyleMap_=function(t,n){var i=t.getAttribute("id");if(i!==null){var a=Pk.call(this,t,n);if(a){var o,s=t.baseURI;if((!s||s=="about:blank")&&(s=window.location.href),s){var A=new URL("#"+i,s);o=A.href}else o="#"+i;this.sharedStyles_[o]=a}}},e.prototype.readFeatureFromNode=function(t,n){if(!Ri(Me,t.namespaceURI))return null;var i=this.readPlacemark_(t,[this.getReadOptions(t,n)]);return i||null},e.prototype.readFeaturesFromNode=function(t,n){if(!Ri(Me,t.namespaceURI))return[];var i,a=t.localName;if(a=="Document"||a=="Folder")return i=this.readDocumentOrFolder_(t,[this.getReadOptions(t,n)]),i||[];if(a=="Placemark"){var o=this.readPlacemark_(t,[this.getReadOptions(t,n)]);return o?[o]:[]}else if(a=="kml"){i=[];for(var s=t.firstElementChild;s;s=s.nextElementSibling){var A=this.readFeaturesFromNode(s,n);A&&Jr(i,A)}return i}else return[]},e.prototype.readName=function(t){if(t)if(typeof t=="string"){var n=nl(t);return this.readNameFromDocument(n)}else return rl(t)?this.readNameFromDocument(t):this.readNameFromNode(t);else return},e.prototype.readNameFromDocument=function(t){for(var n=t.firstChild;n;n=n.nextSibling)if(n.nodeType==Node.ELEMENT_NODE){var i=this.readNameFromNode(n);if(i)return i}},e.prototype.readNameFromNode=function(t){for(var n=t.firstElementChild;n;n=n.nextElementSibling)if(Ri(Me,n.namespaceURI)&&n.localName=="name")return Xt(n);for(var n=t.firstElementChild;n;n=n.nextElementSibling){var i=n.localName;if(Ri(Me,n.namespaceURI)&&(i=="Document"||i=="Folder"||i=="Placemark"||i=="kml")){var a=this.readNameFromNode(n);if(a)return a}}},e.prototype.readNetworkLinks=function(t){var n=[];if(typeof t=="string"){var i=nl(t);Jr(n,this.readNetworkLinksFromDocument(i))}else rl(t)?Jr(n,this.readNetworkLinksFromDocument(t)):Jr(n,this.readNetworkLinksFromNode(t));return n},e.prototype.readNetworkLinksFromDocument=function(t){for(var n=[],i=t.firstChild;i;i=i.nextSibling)i.nodeType==Node.ELEMENT_NODE&&Jr(n,this.readNetworkLinksFromNode(i));return n},e.prototype.readNetworkLinksFromNode=function(t){for(var n=[],i=t.firstElementChild;i;i=i.nextElementSibling)if(Ri(Me,i.namespaceURI)&&i.localName=="NetworkLink"){var a=Kt({},Bct,i,[]);n.push(a)}for(var i=t.firstElementChild;i;i=i.nextElementSibling){var o=i.localName;Ri(Me,i.namespaceURI)&&(o=="Document"||o=="Folder"||o=="kml")&&Jr(n,this.readNetworkLinksFromNode(i))}return n},e.prototype.readRegion=function(t){var n=[];if(typeof t=="string"){var i=nl(t);Jr(n,this.readRegionFromDocument(i))}else rl(t)?Jr(n,this.readRegionFromDocument(t)):Jr(n,this.readRegionFromNode(t));return n},e.prototype.readRegionFromDocument=function(t){for(var n=[],i=t.firstChild;i;i=i.nextSibling)i.nodeType==Node.ELEMENT_NODE&&Jr(n,this.readRegionFromNode(i));return n},e.prototype.readRegionFromNode=function(t){for(var n=[],i=t.firstElementChild;i;i=i.nextElementSibling)if(Ri(Me,i.namespaceURI)&&i.localName=="Region"){var a=Kt({},Lk,i,[]);n.push(a)}for(var i=t.firstElementChild;i;i=i.nextElementSibling){var o=i.localName;Ri(Me,i.namespaceURI)&&(o=="Document"||o=="Folder"||o=="kml")&&Jr(n,this.readRegionFromNode(i))}return n},e.prototype.writeFeaturesNode=function(t,n){n=this.adaptOptions(n);var i=Je(Me[4],"kml"),a="http://www.w3.org/2000/xmlns/";i.setAttributeNS(a,"xmlns:gx",xu[0]),i.setAttributeNS(a,"xmlns:xsi",$f),i.setAttributeNS($f,"xsi:schemaLocation",Ect);var o={node:i},s={};t.length>1?s.Document=t:t.length==1&&(s.Placemark=t[0]);var A=bct[i.namespaceURI],l=Qo(s,A);return Xe(o,Sct,sa,l,[n],A,this),i},e}(t0);function Fct(r,e){var t=[0,0],n="start",i=r.getImage();if(i){var a=i.getSize();if(a&&a.length==2){var o=i.getScaleArray(),s=i.getAnchor();t[0]=o[0]*(a[0]-s[0]),t[1]=o[1]*(a[1]/2-s[1]),n="left"}}var A=r.getText();A?(A=A.clone(),A.setFont(A.getFont()||uf.getFont()),A.setScale(A.getScale()||uf.getScale()),A.setFill(A.getFill()||uf.getFill()),A.setStroke(A.getStroke()||$x)):A=uf.clone(),A.setText(e),A.setOffsetX(t[0]),A.setOffsetY(t[1]),A.setTextAlign(n);var l=new _a({image:i,text:A});return l}function Oct(r,e,t,n,i){return function(a,o){var s=i,A="",l=[];if(s){var u=a.getGeometry();if(u)if(u instanceof wa)l=u.getGeometriesArrayRecursive().filter(function(v){var m=v.getType();return m===dt.POINT||m===dt.MULTI_POINT}),s=l.length>0;else{var c=u.getType();s=c===dt.POINT||c===dt.MULTI_POINT}}s&&(A=a.get("name"),s=s&&!!A,s&&A.search(/&[^&]+;/)>-1&&(p_||(p_=document.createElement("textarea")),p_.innerHTML=A,A=p_.value));var h=t;if(r?h=r:e&&(h=Fk(e,t,n)),s){var f=Fct(h[0],A);if(l.length>0){f.setGeometry(new wa(l));var p=new _a({geometry:h[0].getGeometry(),image:null,fill:h[0].getFill(),stroke:h[0].getStroke(),text:null});return[f,p].concat(h.slice(1))}return f}return h}}function Fk(r,e,t){return Array.isArray(r)?r:typeof r=="string"?Fk(t[r],e,t):e}function tC(r){var e=yo(r,!1),t=/^\s*#?\s*([0-9A-Fa-f]{8})\s*$/.exec(e);if(t){var n=t[1];return[parseInt(n.substr(6,2),16),parseInt(n.substr(4,2),16),parseInt(n.substr(2,2),16),parseInt(n.substr(0,2),16)/255]}else return}function Ok(r){var e=yo(r,!1),t=[];e=e.replace(/\s*,\s*/g,",");for(var n=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?),([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)(?:\s+|,|$)(?:([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)(?:\s+|$))?\s*/i,i;i=n.exec(e);){var a=parseFloat(i[1]),o=parseFloat(i[2]),s=i[3]?parseFloat(i[3]):0;t.push(a,o,s),e=e.substr(i[0].length)}if(e==="")return t}function Rk(r){var e=yo(r,!1).trim(),t=r.baseURI;if((!t||t=="about:blank")&&(t=window.location.href),t){var n=new URL(e,t);return n.href}else return e}function Mk(r){var e=yo(r,!1).trim().replace(/^(?!.*#)/,"#"),t=r.baseURI;if((!t||t=="about:blank")&&(t=window.location.href),t){var n=new URL(e,t);return n.href}else return e}function Rct(r){var e=r.getAttribute("xunits"),t=r.getAttribute("yunits"),n;return e!=="insetPixels"?t!=="insetPixels"?n=Hi.BOTTOM_LEFT:n=Hi.TOP_LEFT:t!=="insetPixels"?n=Hi.BOTTOM_RIGHT:n=Hi.TOP_RIGHT,{x:parseFloat(r.getAttribute("x")),xunits:yP[e],y:parseFloat(r.getAttribute("y")),yunits:yP[t],origin:n}}function Nk(r){return $r(r)}var Mct=kt(Me,{Pair:iht});function Pk(r,e){return Kt(void 0,Mct,r,e,this)}var Nct=kt(Me,{Icon:pt(zct),color:pt(tC),heading:pt($r),hotSpot:pt(Rct),scale:pt(Nk)});function Pct(r,e){var t=Kt({},Nct,r,e);if(t){var n=e[e.length-1],i="Icon"in t?t.Icon:{},a=!("Icon"in t)||Object.keys(i).length>0,o,s=i.href;s?o=s:a&&(o=Sw);var A,l,u,c=Hi.BOTTOM_LEFT,h=t.hotSpot;h?(A=[h.x,h.y],l=h.xunits,u=h.yunits,c=h.origin):/^http:\/\/maps\.(?:google|gstatic)\.com\//.test(o)&&(/pushpin/.test(o)?(A=kx,l=Im,u=Lm):/arrow-reverse/.test(o)?(A=[54,42],l=Im,u=Lm):/paddle/.test(o)&&(A=[32,1],l=Im,u=Lm));var f,p=i.x,v=i.y;p!==void 0&&v!==void 0&&(f=[p,v]);var m,g=i.w,_=i.h;g!==void 0&&_!==void 0&&(m=[g,_]);var w,C=t.heading;C!==void 0&&(w=Oc(C));var F=t.scale,O=t.color;if(a){o==Sw&&(m=Fm);var I=new jy({anchor:A,anchorOrigin:c,anchorXUnits:l,anchorYUnits:u,crossOrigin:this.crossOrigin_,offset:f,offsetOrigin:Hi.BOTTOM_LEFT,rotation:w,scale:F,size:m,src:this.iconUrlFunction_(o),color:O}),b=I.getScaleArray()[0],L=I.getSize();if(L===null){var N=I.getImageState();if(N===er.IDLE||N===er.LOADING){var x=function(){var P=I.getImageState();if(!(P===er.IDLE||P===er.LOADING)){var U=I.getSize();if(U&&U.length==2){var tt=xw(U);I.setScale(b*tt)}I.unlistenImageChange(x)}};I.listenImageChange(x),N===er.IDLE&&I.load()}}else if(L.length==2){var S=xw(L);I.setScale(b*S)}n.imageStyle=I}else n.imageStyle=sO}}var Uct=kt(Me,{color:pt(tC),scale:pt(Nk)});function Dct(r,e){var t=Kt({},Uct,r,e);if(t){var n=e[e.length-1],i=new rp({fill:new Ea({color:"color"in t?t.color:Yd}),scale:t.scale});n.textStyle=i}}var Qct=kt(Me,{color:pt(tC),width:pt($r)});function kct(r,e){var t=Kt({},Qct,r,e);if(t){var n=e[e.length-1],i=new Ki({color:"color"in t?t.color:Yd,width:"width"in t?t.width:1});n.strokeStyle=i}}var Hct=kt(Me,{color:pt(tC),fill:pt(th),outline:pt(th)});function Gct(r,e){var t=Kt({},Hct,r,e);if(t){var n=e[e.length-1],i=new Ea({color:"color"in t?t.color:Yd});n.fillStyle=i;var a=t.fill;a!==void 0&&(n.fill=a);var o=t.outline;o!==void 0&&(n.outline=o)}}var $ct=kt(Me,{coordinates:$e(Ok)});function Uk(r,e){return Kt(null,$ct,r,e)}function Vct(r,e){var t=e[e.length-1],n=t.coordinates,i=yo(r,!1),a=/^\s*([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s+([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s+([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s*$/i,o=a.exec(i);if(o){var s=parseFloat(o[1]),A=parseFloat(o[2]),l=parseFloat(o[3]);n.push([s,A,l])}else n.push([])}var jct=kt(xu,{Track:Ie(Dk)});function Kct(r,e){var t=Kt([],jct,r,e);if(t)return new Wa(t)}var Yct=kt(Me,{when:mht},kt(xu,{coord:Vct}));function Dk(r,e){var t=Kt({coordinates:[],whens:[]},Yct,r,e);if(t){for(var n=[],i=t.coordinates,a=t.whens,o=0,s=Math.min(i.length,a.length);o<s;++o)i[o].length==3&&n.push(i[o][0],i[o][1],i[o][2],a[o]);return new tn(n,ae.XYZM)}}var Wct=kt(Me,{href:pt(Rk)},kt(xu,{x:pt($r),y:pt($r),w:pt($r),h:pt($r)}));function zct(r,e){var t=Kt({},Wct,r,e);return t||null}var Xct=kt(Me,{coordinates:$e(Ok)});function AO(r,e){return Kt(null,Xct,r,e)}var eC=kt(Me,{extrude:pt(th),tessellate:pt(th),altitudeMode:pt(Xt)});function Qk(r,e){var t=Kt({},eC,r,e),n=AO(r,e);if(n){var i=new tn(n,ae.XYZ);return i.setProperties(t,!0),i}else return}function kk(r,e){var t=Kt({},eC,r,e),n=AO(r,e);if(n){var i=new Pn(n,ae.XYZ,[n.length]);return i.setProperties(t,!0),i}else return}var qct=kt(Me,{LineString:Ie(Qk),LinearRing:Ie(kk),MultiGeometry:Ie(Hk),Point:Ie(Gk),Polygon:Ie($k)});function Hk(r,e){var t=Kt([],qct,r,e);if(!t)return null;if(t.length===0)return new wa(t);for(var n,i=!0,a=t[0].getType(),o,s=1,A=t.length;s<A;++s)if(o=t[s],o.getType()!=a){i=!1;break}if(i){var l=void 0,u=void 0;if(a==dt.POINT){var c=t[0];l=c.getLayout(),u=c.getFlatCoordinates();for(var s=1,A=t.length;s<A;++s)o=t[s],Jr(u,o.getFlatCoordinates());n=new Qs(u,l),AT(n,t)}else a==dt.LINE_STRING?(n=new Wa(t),AT(n,t)):a==dt.POLYGON?(n=new za(t),AT(n,t)):a==dt.GEOMETRY_COLLECTION?n=new wa(t):Le(!1,37)}else n=new wa(t);return n}function Gk(r,e){var t=Kt({},eC,r,e),n=AO(r,e);if(n){var i=new Sr(n,ae.XYZ);return i.setProperties(t,!0),i}else return}var Zct=kt(Me,{innerBoundaryIs:pht,outerBoundaryIs:vht});function $k(r,e){var t=Kt({},eC,r,e),n=Kt([null],Zct,r,e);if(n&&n[0]){for(var i=n[0],a=[i.length],o=1,s=n.length;o<s;++o)Jr(i,n[o]),a.push(i.length);var A=new Pn(i,ae.XYZ,a);return A.setProperties(t,!0),A}else return}var Jct=kt(Me,{IconStyle:Pct,LabelStyle:Dct,LineStyle:kct,PolyStyle:Gct});function lO(r,e){var t=Kt({},Jct,r,e,this);if(!t)return null;var n="fillStyle"in t?t.fillStyle:w1,i=t.fill;i!==void 0&&!i&&(n=null);var a;"imageStyle"in t?t.imageStyle!=sO&&(a=t.imageStyle):a=Hx;var o="textStyle"in t?t.textStyle:uf,s="strokeStyle"in t?t.strokeStyle:Gx,A=t.outline;return A!==void 0&&!A?[new _a({geometry:function(l){var u=l.getGeometry(),c=u.getType();if(c===dt.GEOMETRY_COLLECTION){var h=u;return new wa(h.getGeometriesArrayRecursive().filter(function(f){var p=f.getType();return p!==dt.POLYGON&&p!==dt.MULTI_POLYGON}))}else if(c!==dt.POLYGON&&c!==dt.MULTI_POLYGON)return u},fill:n,image:a,stroke:s,text:o,zIndex:void 0}),new _a({geometry:function(l){var u=l.getGeometry(),c=u.getType();if(c===dt.GEOMETRY_COLLECTION){var h=u;return new wa(h.getGeometriesArrayRecursive().filter(function(f){var p=f.getType();return p===dt.POLYGON||p===dt.MULTI_POLYGON}))}else if(c===dt.POLYGON||c===dt.MULTI_POLYGON)return u},fill:n,stroke:null,zIndex:void 0})]:[new _a({fill:n,image:a,stroke:s,text:o,zIndex:void 0})]}function AT(r,e){var t=e.length,n=new Array(e.length),i=new Array(e.length),a=new Array(e.length),o,s,A;o=!1,s=!1,A=!1;for(var l=0;l<t;++l){var u=e[l];n[l]=u.get("extrude"),i[l]=u.get("tessellate"),a[l]=u.get("altitudeMode"),o=o||n[l]!==void 0,s=s||i[l]!==void 0,A=A||a[l]}o&&r.set("extrude",n),s&&r.set("tessellate",i),A&&r.set("altitudeMode",a)}var tht=kt(Me,{displayName:pt(Xt),value:pt(Xt)});function eht(r,e){var t=r.getAttribute("name");No(tht,r,e);var n=e[e.length-1];t&&n.displayName?n[t]={value:n.value,displayName:n.displayName,toString:function(){return n.value}}:t!==null?n[t]=n.value:n.displayName!==null&&(n[n.displayName]=n.value),delete n.value}var rht=kt(Me,{Data:eht,SchemaData:sht});function Vk(r,e){No(rht,r,e)}function jk(r,e){No(Lk,r,e)}var nht=kt(Me,{Style:pt(lO),key:pt(Xt),styleUrl:pt(Mk)});function iht(r,e){var t=Kt({},nht,r,e,this);if(t){var n=t.key;if(n&&n=="normal"){var i=t.styleUrl;i&&(e[e.length-1]=i);var a=t.Style;a&&(e[e.length-1]=a)}}}function aht(r,e){var t=Pk.call(this,r,e);if(t){var n=e[e.length-1];Array.isArray(t)?n.Style=t:typeof t=="string"?n.styleUrl=t:Le(!1,38)}}var oht=kt(Me,{SimpleData:Aht});function sht(r,e){No(oht,r,e)}function Aht(r,e){var t=r.getAttribute("name");if(t!==null){var n=Xt(r),i=e[e.length-1];i[t]=n}}var lht=kt(Me,{altitudeMode:pt(Xt),minAltitude:pt($r),maxAltitude:pt($r),north:pt($r),south:pt($r),east:pt($r),west:pt($r)});function uht(r,e){var t=Kt({},lht,r,e);if(t){var n=e[e.length-1],i=[parseFloat(t.west),parseFloat(t.south),parseFloat(t.east),parseFloat(t.north)];n.extent=i,n.altitudeMode=t.altitudeMode,n.minAltitude=parseFloat(t.minAltitude),n.maxAltitude=parseFloat(t.maxAltitude)}}var cht=kt(Me,{minLodPixels:pt($r),maxLodPixels:pt($r),minFadeExtent:pt($r),maxFadeExtent:pt($r)});function hht(r,e){var t=Kt({},cht,r,e);if(t){var n=e[e.length-1];n.minLodPixels=parseFloat(t.minLodPixels),n.maxLodPixels=parseFloat(t.maxLodPixels),n.minFadeExtent=parseFloat(t.minFadeExtent),n.maxFadeExtent=parseFloat(t.maxFadeExtent)}}var fht=kt(Me,{LinearRing:Ie(Uk)});function pht(r,e){var t=Kt([],fht,r,e);if(t.length>0){var n=e[e.length-1];n.push.apply(n,t)}}var dht=kt(Me,{LinearRing:$e(Uk)});function vht(r,e){var t=Kt(void 0,dht,r,e);if(t){var n=e[e.length-1];n[0]=t}}function ght(r,e){No(Tct,r,e)}function mht(r,e){var t=e[e.length-1],n=t.whens,i=yo(r,!1),a=Date.parse(i);n.push(isNaN(a)?0:a)}function rC(r,e){for(var t=Yc(e),n=t.length==4?t[3]:1,i=[n*255,t[2],t[1],t[0]],a=0;a<4;++a){var o=Math.floor(i[a]).toString(16);i[a]=o.length==1?"0"+o:o}Ye(r,i.join(""))}function yht(r,e,t){var n=t[t.length-1],i=n.layout,a=n.stride,o;i==ae.XY||i==ae.XYM?o=2:i==ae.XYZ||i==ae.XYZM?o=3:Le(!1,34);var s=e.length,A="";if(s>0){A+=e[0];for(var l=1;l<o;++l)A+=","+e[l];for(var u=a;u<s;u+=a){A+=" "+e[u];for(var l=1;l<o;++l)A+=","+e[u+l]}}Ye(r,A)}var E1=kt(Me,{Data:gt(_ht),value:gt(Eht),displayName:gt(wht)});function _ht(r,e,t){r.setAttribute("name",e.name);var n={node:r},i=e.value;typeof i=="object"?(i!==null&&i.displayName&&Xe(n,E1,sa,[i.displayName],t,["displayName"]),i!==null&&i.value&&Xe(n,E1,sa,[i.value],t,["value"])):Xe(n,E1,sa,[i],t,["value"])}function wht(r,e){Cut(r,e)}function Eht(r,e){Ye(r,e)}var Cht=kt(Me,{Placemark:gt(Wk)}),Bht=function(r,e,t){var n=e[e.length-1].node;return Je(n.namespaceURI,"Placemark")};function Tht(r,e,t){var n={node:r};Xe(n,Cht,Bht,e,t,void 0,this)}var bht=zn("Data");function Sht(r,e,t){for(var n={node:r},i=e.names,a=e.values,o=i.length,s=0;s<o;s++)Xe(n,E1,bht,[{name:i[s],value:a[s]}],t)}var wP=kt(Me,["href"],kt(xu,["x","y","w","h"])),EP=kt(Me,{href:gt(Ye)},kt(xu,{x:gt(Lo),y:gt(Lo),w:gt(Lo),h:gt(Lo)})),xht=function(r,e,t){return Je(xu[0],"gx:"+t)};function Iht(r,e,t){var n={node:r},i=t[t.length-1].node,a=wP[i.namespaceURI],o=Qo(e,a);Xe(n,EP,sa,o,t,a),a=wP[xu[0]],o=Qo(e,a),Xe(n,EP,xht,o,t,a)}var Lht=kt(Me,["scale","heading","Icon","color","hotSpot"]),Fht=kt(Me,{Icon:gt(Iht),color:gt(rC),heading:gt(Lo),hotSpot:gt(ift),scale:gt(Xk)});function Oht(r,e,t){var n={node:r},i={},a=e.getSrc(),o=e.getSize(),s=e.getImageSize(),A={href:a};if(o){A.w=o[0],A.h=o[1];var l=e.getAnchor(),u=e.getOrigin();if(u&&s&&u[0]!==0&&u[1]!==o[1]&&(A.x=u[0],A.y=s[1]-(u[1]+o[1])),l&&(l[0]!==o[0]/2||l[1]!==o[1]/2)){var c={x:l[0],xunits:so.PIXELS,y:o[1]-l[1],yunits:so.PIXELS};i.hotSpot=c}}i.Icon=A;var h=e.getScaleArray()[0],f=o;if(f===null&&(f=Fm),f.length==2){var p=xw(f);h=h/p}h!==1&&(i.scale=h);var v=e.getRotation();v!==0&&(i.heading=v);var m=e.getColor();m&&(i.color=m);var g=t[t.length-1].node,_=Lht[g.namespaceURI],w=Qo(i,_);Xe(n,Fht,sa,w,t,_)}var Rht=kt(Me,["color","scale"]),Mht=kt(Me,{color:gt(rC),scale:gt(Xk)});function Nht(r,e,t){var n={node:r},i={},a=e.getFill();a&&(i.color=a.getColor());var o=e.getScale();o&&o!==1&&(i.scale=o);var s=t[t.length-1].node,A=Rht[s.namespaceURI],l=Qo(i,A);Xe(n,Mht,sa,l,t,A)}var Pht=kt(Me,["color","width"]),Uht=kt(Me,{color:gt(rC),width:gt(Lo)});function Dht(r,e,t){var n={node:r},i={color:e.getColor(),width:Number(e.getWidth())||1},a=t[t.length-1].node,o=Pht[a.namespaceURI],s=Qo(i,o);Xe(n,Uht,sa,s,t,o)}var Qht={Point:"Point",LineString:"LineString",LinearRing:"LinearRing",Polygon:"Polygon",MultiPoint:"MultiGeometry",MultiLineString:"MultiGeometry",MultiPolygon:"MultiGeometry",GeometryCollection:"MultiGeometry"},Kk=function(r,e,t){if(r){var n=e[e.length-1].node;return Je(n.namespaceURI,Qht[r.getType()])}},kht=zn("Point"),Hht=zn("LineString"),Ght=zn("LinearRing"),$ht=zn("Polygon"),Vht=kt(Me,{LineString:gt(Wd),Point:gt(Wd),Polygon:gt(zk),GeometryCollection:gt(Yk)});function Yk(r,e,t){var n={node:r},i=e.getType(),a=[],o;i===dt.GEOMETRY_COLLECTION?(e.getGeometriesArrayRecursive().forEach(function(s){var A=s.getType();A===dt.MULTI_POINT?a=a.concat(s.getPoints()):A===dt.MULTI_LINE_STRING?a=a.concat(s.getLineStrings()):A===dt.MULTI_POLYGON?a=a.concat(s.getPolygons()):A===dt.POINT||A===dt.LINE_STRING||A===dt.POLYGON?a.push(s):Le(!1,39)}),o=Kk):i===dt.MULTI_POINT?(a=e.getPoints(),o=kht):i===dt.MULTI_LINE_STRING?(a=e.getLineStrings(),o=Hht):i===dt.MULTI_POLYGON?(a=e.getPolygons(),o=$ht):Le(!1,39),Xe(n,Vht,o,a,t)}var jht=kt(Me,{LinearRing:gt(Wd)});function CP(r,e,t){var n={node:r};Xe(n,jht,Ght,[e],t)}var lT=kt(Me,{ExtendedData:gt(Sht),MultiGeometry:gt(Yk),LineString:gt(Wd),LinearRing:gt(Wd),Point:gt(Wd),Polygon:gt(zk),Style:gt(nft),address:gt(Ye),description:gt(Ye),name:gt(Ye),open:gt(fv),phoneNumber:gt(Ye),styleUrl:gt(Ye),visibility:gt(fv)}),Kht=kt(Me,["name","open","visibility","address","phoneNumber","description","styleUrl","Style"]),Yht=zn("ExtendedData");function Wk(r,e,t){var n={node:r};e.getId()&&r.setAttribute("id",e.getId());var i=e.getProperties(),a={address:1,description:1,name:1,open:1,phoneNumber:1,styleUrl:1,visibility:1};a[e.getGeometryName()]=1;var o=Object.keys(i||{}).sort().filter(function(F){return!a[F]}),s=e.getStyleFunction();if(s){var A=s(e,0);if(A){var l=Array.isArray(A)?A:[A],u=l;if(e.getGeometry()&&(u=l.filter(function(F){var O=F.getGeometryFunction()(e);if(O){var I=O.getType();return I===dt.GEOMETRY_COLLECTION?O.getGeometriesArrayRecursive().filter(function(b){var L=b.getType();return L===dt.POINT||L===dt.MULTI_POINT}).length:I===dt.POINT||I===dt.MULTI_POINT}})),this.writeStyles_){var c=l,h=l;e.getGeometry()&&(c=l.filter(function(F){var O=F.getGeometryFunction()(e);if(O){var I=O.getType();return I===dt.GEOMETRY_COLLECTION?O.getGeometriesArrayRecursive().filter(function(b){var L=b.getType();return L===dt.LINE_STRING||L===dt.MULTI_LINE_STRING}).length:I===dt.LINE_STRING||I===dt.MULTI_LINE_STRING}}),h=l.filter(function(F){var O=F.getGeometryFunction()(e);if(O){var I=O.getType();return I===dt.GEOMETRY_COLLECTION?O.getGeometriesArrayRecursive().filter(function(b){var L=b.getType();return L===dt.POLYGON||L===dt.MULTI_POLYGON}).length:I===dt.POLYGON||I===dt.MULTI_POLYGON}})),i.Style={pointStyles:u,lineStyles:c,polyStyles:h}}if(u.length&&i.name===void 0){var f=u[0].getText();f&&(i.name=f.getText())}}}var p=t[t.length-1].node,v=Kht[p.namespaceURI],m=Qo(i,v);if(Xe(n,lT,sa,m,t,v),o.length>0){var g=Qo(i,o),_={names:o,values:g};Xe(n,lT,Yht,[_],t)}var w=t[0],C=e.getGeometry();C&&(C=Qn(C,!0,w)),Xe(n,lT,Kk,[C],t)}var Wht=kt(Me,["extrude","tessellate","altitudeMode","coordinates"]),zht=kt(Me,{extrude:gt(fv),tessellate:gt(fv),altitudeMode:gt(Ye),coordinates:gt(yht)});function Wd(r,e,t){var n=e.getFlatCoordinates(),i={node:r};i.layout=e.getLayout(),i.stride=e.getStride();var a=e.getProperties();a.coordinates=n;var o=t[t.length-1].node,s=Wht[o.namespaceURI],A=Qo(a,s);Xe(i,zht,sa,A,t,s)}var Xht=kt(Me,["color","fill","outline"]),BP=kt(Me,{outerBoundaryIs:gt(CP),innerBoundaryIs:gt(CP)}),qht=zn("innerBoundaryIs"),Zht=zn("outerBoundaryIs");function zk(r,e,t){var n=e.getLinearRings(),i=n.shift(),a={node:r};Xe(a,BP,qht,n,t),Xe(a,BP,Zht,[i],t)}var Jht=kt(Me,{color:gt(rC),fill:gt(fv),outline:gt(fv)});function tft(r,e,t){var n={node:r},i=e.getFill(),a=e.getStroke(),o={color:i?i.getColor():void 0,fill:i?void 0:!1,outline:a?void 0:!1},s=t[t.length-1].node,A=Xht[s.namespaceURI],l=Qo(o,A);Xe(n,Jht,sa,l,t,A)}function Xk(r,e){Lo(r,Math.round(e*1e6)/1e6)}var eft=kt(Me,["IconStyle","LabelStyle","LineStyle","PolyStyle"]),rft=kt(Me,{IconStyle:gt(Oht),LabelStyle:gt(Nht),LineStyle:gt(Dht),PolyStyle:gt(tft)});function nft(r,e,t){var n={node:r},i={};if(e.pointStyles.length){var a=e.pointStyles[0].getText();a&&(i.LabelStyle=a);var o=e.pointStyles[0].getImage();o&&typeof o.getSrc=="function"&&(i.IconStyle=o)}if(e.lineStyles.length){var s=e.lineStyles[0].getStroke();s&&(i.LineStyle=s)}if(e.polyStyles.length){var s=e.polyStyles[0].getStroke();s&&!i.LineStyle&&(i.LineStyle=s),i.PolyStyle=e.polyStyles[0]}var A=t[t.length-1].node,l=eft[A.namespaceURI],u=Qo(i,l);Xe(n,rft,sa,u,t,l)}function ift(r,e){r.setAttribute("x",String(e.x)),r.setAttribute("y",String(e.y)),r.setAttribute("xunits",e.xunits),r.setAttribute("yunits",e.yunits)}var aft=Lct,uO={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */uO.read=function(r,e,t,n,i){var a,o,s=i*8-n-1,A=(1<<s)-1,l=A>>1,u=-7,c=t?i-1:0,h=t?-1:1,f=r[e+c];for(c+=h,a=f&(1<<-u)-1,f>>=-u,u+=s;u>0;a=a*256+r[e+c],c+=h,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=n;u>0;o=o*256+r[e+c],c+=h,u-=8);if(a===0)a=1-l;else{if(a===A)return o?NaN:(f?-1:1)*(1/0);o=o+Math.pow(2,n),a=a-l}return(f?-1:1)*o*Math.pow(2,a-n)};uO.write=function(r,e,t,n,i,a){var o,s,A,l=a*8-i-1,u=(1<<l)-1,c=u>>1,h=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:a-1,p=n?1:-1,v=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,o=u):(o=Math.floor(Math.log(e)/Math.LN2),e*(A=Math.pow(2,-o))<1&&(o--,A*=2),o+c>=1?e+=h/A:e+=h*Math.pow(2,1-c),e*A>=2&&(o++,A/=2),o+c>=u?(s=0,o=u):o+c>=1?(s=(e*A-1)*Math.pow(2,i),o=o+c):(s=e*Math.pow(2,c-1)*Math.pow(2,i),o=0));i>=8;r[t+f]=s&255,f+=p,s/=256,i-=8);for(o=o<<i|s,l+=i;l>0;r[t+f]=o&255,f+=p,o/=256,l-=8);r[t+f-p]|=v*128};var oft=Xr,d_=uO;function Xr(r){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(r)?r:new Uint8Array(r||0),this.pos=0,this.type=0,this.length=this.buf.length}Xr.Varint=0;Xr.Fixed64=1;Xr.Bytes=2;Xr.Fixed32=5;var jx=(1<<16)*(1<<16),TP=1/jx,sft=12,qk=typeof TextDecoder>"u"?null:new TextDecoder("utf8");Xr.prototype={destroy:function(){this.buf=null},readFields:function(r,e,t){for(t=t||this.length;this.pos<t;){var n=this.readVarint(),i=n>>3,a=this.pos;this.type=n&7,r(i,e,this),this.pos===a&&this.skip(n)}return e},readMessage:function(r,e){return this.readFields(r,e,this.readVarint()+this.pos)},readFixed32:function(){var r=v_(this.buf,this.pos);return this.pos+=4,r},readSFixed32:function(){var r=SP(this.buf,this.pos);return this.pos+=4,r},readFixed64:function(){var r=v_(this.buf,this.pos)+v_(this.buf,this.pos+4)*jx;return this.pos+=8,r},readSFixed64:function(){var r=v_(this.buf,this.pos)+SP(this.buf,this.pos+4)*jx;return this.pos+=8,r},readFloat:function(){var r=d_.read(this.buf,this.pos,!0,23,4);return this.pos+=4,r},readDouble:function(){var r=d_.read(this.buf,this.pos,!0,52,8);return this.pos+=8,r},readVarint:function(r){var e=this.buf,t,n;return n=e[this.pos++],t=n&127,n<128||(n=e[this.pos++],t|=(n&127)<<7,n<128)||(n=e[this.pos++],t|=(n&127)<<14,n<128)||(n=e[this.pos++],t|=(n&127)<<21,n<128)?t:(n=e[this.pos],t|=(n&15)<<28,Aft(t,r,this))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var r=this.readVarint();return r%2===1?(r+1)/-2:r/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var r=this.readVarint()+this.pos,e=this.pos;return this.pos=r,r-e>=sft&&qk?Eft(this.buf,e,r):wft(this.buf,e,r)},readBytes:function(){var r=this.readVarint()+this.pos,e=this.buf.subarray(this.pos,r);return this.pos=r,e},readPackedVarint:function(r,e){if(this.type!==Xr.Bytes)return r.push(this.readVarint(e));var t=Gl(this);for(r=r||[];this.pos<t;)r.push(this.readVarint(e));return r},readPackedSVarint:function(r){if(this.type!==Xr.Bytes)return r.push(this.readSVarint());var e=Gl(this);for(r=r||[];this.pos<e;)r.push(this.readSVarint());return r},readPackedBoolean:function(r){if(this.type!==Xr.Bytes)return r.push(this.readBoolean());var e=Gl(this);for(r=r||[];this.pos<e;)r.push(this.readBoolean());return r},readPackedFloat:function(r){if(this.type!==Xr.Bytes)return r.push(this.readFloat());var e=Gl(this);for(r=r||[];this.pos<e;)r.push(this.readFloat());return r},readPackedDouble:function(r){if(this.type!==Xr.Bytes)return r.push(this.readDouble());var e=Gl(this);for(r=r||[];this.pos<e;)r.push(this.readDouble());return r},readPackedFixed32:function(r){if(this.type!==Xr.Bytes)return r.push(this.readFixed32());var e=Gl(this);for(r=r||[];this.pos<e;)r.push(this.readFixed32());return r},readPackedSFixed32:function(r){if(this.type!==Xr.Bytes)return r.push(this.readSFixed32());var e=Gl(this);for(r=r||[];this.pos<e;)r.push(this.readSFixed32());return r},readPackedFixed64:function(r){if(this.type!==Xr.Bytes)return r.push(this.readFixed64());var e=Gl(this);for(r=r||[];this.pos<e;)r.push(this.readFixed64());return r},readPackedSFixed64:function(r){if(this.type!==Xr.Bytes)return r.push(this.readSFixed64());var e=Gl(this);for(r=r||[];this.pos<e;)r.push(this.readSFixed64());return r},skip:function(r){var e=r&7;if(e===Xr.Varint)for(;this.buf[this.pos++]>127;);else if(e===Xr.Bytes)this.pos=this.readVarint()+this.pos;else if(e===Xr.Fixed32)this.pos+=4;else if(e===Xr.Fixed64)this.pos+=8;else throw new Error("Unimplemented type: "+e)},writeTag:function(r,e){this.writeVarint(r<<3|e)},realloc:function(r){for(var e=this.length||16;e<this.pos+r;)e*=2;if(e!==this.length){var t=new Uint8Array(e);t.set(this.buf),this.buf=t,this.length=e}},finish:function(){return this.length=this.pos,this.pos=0,this.buf.subarray(0,this.length)},writeFixed32:function(r){this.realloc(4),Zp(this.buf,r,this.pos),this.pos+=4},writeSFixed32:function(r){this.realloc(4),Zp(this.buf,r,this.pos),this.pos+=4},writeFixed64:function(r){this.realloc(8),Zp(this.buf,r&-1,this.pos),Zp(this.buf,Math.floor(r*TP),this.pos+4),this.pos+=8},writeSFixed64:function(r){this.realloc(8),Zp(this.buf,r&-1,this.pos),Zp(this.buf,Math.floor(r*TP),this.pos+4),this.pos+=8},writeVarint:function(r){if(r=+r||0,r>268435455||r<0){lft(r,this);return}this.realloc(4),this.buf[this.pos++]=r&127|(r>127?128:0),!(r<=127)&&(this.buf[this.pos++]=(r>>>=7)&127|(r>127?128:0),!(r<=127)&&(this.buf[this.pos++]=(r>>>=7)&127|(r>127?128:0),!(r<=127)&&(this.buf[this.pos++]=r>>>7&127)))},writeSVarint:function(r){this.writeVarint(r<0?-r*2-1:r*2)},writeBoolean:function(r){this.writeVarint(Boolean(r))},writeString:function(r){r=String(r),this.realloc(r.length*4),this.pos++;var e=this.pos;this.pos=Cft(this.buf,r,this.pos);var t=this.pos-e;t>=128&&bP(e,t,this),this.pos=e-1,this.writeVarint(t),this.pos+=t},writeFloat:function(r){this.realloc(4),d_.write(this.buf,r,this.pos,!0,23,4),this.pos+=4},writeDouble:function(r){this.realloc(8),d_.write(this.buf,r,this.pos,!0,52,8),this.pos+=8},writeBytes:function(r){var e=r.length;this.writeVarint(e),this.realloc(e);for(var t=0;t<e;t++)this.buf[this.pos++]=r[t]},writeRawMessage:function(r,e){this.pos++;var t=this.pos;r(e,this);var n=this.pos-t;n>=128&&bP(t,n,this),this.pos=t-1,this.writeVarint(n),this.pos+=n},writeMessage:function(r,e,t){this.writeTag(r,Xr.Bytes),this.writeRawMessage(e,t)},writePackedVarint:function(r,e){e.length&&this.writeMessage(r,hft,e)},writePackedSVarint:function(r,e){e.length&&this.writeMessage(r,fft,e)},writePackedBoolean:function(r,e){e.length&&this.writeMessage(r,vft,e)},writePackedFloat:function(r,e){e.length&&this.writeMessage(r,pft,e)},writePackedDouble:function(r,e){e.length&&this.writeMessage(r,dft,e)},writePackedFixed32:function(r,e){e.length&&this.writeMessage(r,gft,e)},writePackedSFixed32:function(r,e){e.length&&this.writeMessage(r,mft,e)},writePackedFixed64:function(r,e){e.length&&this.writeMessage(r,yft,e)},writePackedSFixed64:function(r,e){e.length&&this.writeMessage(r,_ft,e)},writeBytesField:function(r,e){this.writeTag(r,Xr.Bytes),this.writeBytes(e)},writeFixed32Field:function(r,e){this.writeTag(r,Xr.Fixed32),this.writeFixed32(e)},writeSFixed32Field:function(r,e){this.writeTag(r,Xr.Fixed32),this.writeSFixed32(e)},writeFixed64Field:function(r,e){this.writeTag(r,Xr.Fixed64),this.writeFixed64(e)},writeSFixed64Field:function(r,e){this.writeTag(r,Xr.Fixed64),this.writeSFixed64(e)},writeVarintField:function(r,e){this.writeTag(r,Xr.Varint),this.writeVarint(e)},writeSVarintField:function(r,e){this.writeTag(r,Xr.Varint),this.writeSVarint(e)},writeStringField:function(r,e){this.writeTag(r,Xr.Bytes),this.writeString(e)},writeFloatField:function(r,e){this.writeTag(r,Xr.Fixed32),this.writeFloat(e)},writeDoubleField:function(r,e){this.writeTag(r,Xr.Fixed64),this.writeDouble(e)},writeBooleanField:function(r,e){this.writeVarintField(r,Boolean(e))}};function Aft(r,e,t){var n=t.buf,i,a;if(a=n[t.pos++],i=(a&112)>>4,a<128||(a=n[t.pos++],i|=(a&127)<<3,a<128)||(a=n[t.pos++],i|=(a&127)<<10,a<128)||(a=n[t.pos++],i|=(a&127)<<17,a<128)||(a=n[t.pos++],i|=(a&127)<<24,a<128)||(a=n[t.pos++],i|=(a&1)<<31,a<128))return qp(r,i,e);throw new Error("Expected varint not more than 10 bytes")}function Gl(r){return r.type===Xr.Bytes?r.readVarint()+r.pos:r.pos+1}function qp(r,e,t){return t?e*4294967296+(r>>>0):(e>>>0)*4294967296+(r>>>0)}function lft(r,e){var t,n;if(r>=0?(t=r%4294967296|0,n=r/4294967296|0):(t=~(-r%4294967296),n=~(-r/4294967296),t^4294967295?t=t+1|0:(t=0,n=n+1|0)),r>=18446744073709552e3||r<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");e.realloc(10),uft(t,n,e),cft(n,e)}function uft(r,e,t){t.buf[t.pos++]=r&127|128,r>>>=7,t.buf[t.pos++]=r&127|128,r>>>=7,t.buf[t.pos++]=r&127|128,r>>>=7,t.buf[t.pos++]=r&127|128,r>>>=7,t.buf[t.pos]=r&127}function cft(r,e){var t=(r&7)<<4;e.buf[e.pos++]|=t|((r>>>=3)?128:0),r&&(e.buf[e.pos++]=r&127|((r>>>=7)?128:0),r&&(e.buf[e.pos++]=r&127|((r>>>=7)?128:0),r&&(e.buf[e.pos++]=r&127|((r>>>=7)?128:0),r&&(e.buf[e.pos++]=r&127|((r>>>=7)?128:0),r&&(e.buf[e.pos++]=r&127)))))}function bP(r,e,t){var n=e<=16383?1:e<=2097151?2:e<=268435455?3:Math.floor(Math.log(e)/(Math.LN2*7));t.realloc(n);for(var i=t.pos-1;i>=r;i--)t.buf[i+n]=t.buf[i]}function hft(r,e){for(var t=0;t<r.length;t++)e.writeVarint(r[t])}function fft(r,e){for(var t=0;t<r.length;t++)e.writeSVarint(r[t])}function pft(r,e){for(var t=0;t<r.length;t++)e.writeFloat(r[t])}function dft(r,e){for(var t=0;t<r.length;t++)e.writeDouble(r[t])}function vft(r,e){for(var t=0;t<r.length;t++)e.writeBoolean(r[t])}function gft(r,e){for(var t=0;t<r.length;t++)e.writeFixed32(r[t])}function mft(r,e){for(var t=0;t<r.length;t++)e.writeSFixed32(r[t])}function yft(r,e){for(var t=0;t<r.length;t++)e.writeFixed64(r[t])}function _ft(r,e){for(var t=0;t<r.length;t++)e.writeSFixed64(r[t])}function v_(r,e){return(r[e]|r[e+1]<<8|r[e+2]<<16)+r[e+3]*16777216}function Zp(r,e,t){r[t]=e,r[t+1]=e>>>8,r[t+2]=e>>>16,r[t+3]=e>>>24}function SP(r,e){return(r[e]|r[e+1]<<8|r[e+2]<<16)+(r[e+3]<<24)}function wft(r,e,t){for(var n="",i=e;i<t;){var a=r[i],o=null,s=a>239?4:a>223?3:a>191?2:1;if(i+s>t)break;var A,l,u;s===1?a<128&&(o=a):s===2?(A=r[i+1],(A&192)===128&&(o=(a&31)<<6|A&63,o<=127&&(o=null))):s===3?(A=r[i+1],l=r[i+2],(A&192)===128&&(l&192)===128&&(o=(a&15)<<12|(A&63)<<6|l&63,(o<=2047||o>=55296&&o<=57343)&&(o=null))):s===4&&(A=r[i+1],l=r[i+2],u=r[i+3],(A&192)===128&&(l&192)===128&&(u&192)===128&&(o=(a&15)<<18|(A&63)<<12|(l&63)<<6|u&63,(o<=65535||o>=1114112)&&(o=null))),o===null?(o=65533,s=1):o>65535&&(o-=65536,n+=String.fromCharCode(o>>>10&1023|55296),o=56320|o&1023),n+=String.fromCharCode(o),i+=s}return n}function Eft(r,e,t){return qk.decode(r.subarray(e,t))}function Cft(r,e,t){for(var n=0,i,a;n<e.length;n++){if(i=e.charCodeAt(n),i>55295&&i<57344)if(a)if(i<56320){r[t++]=239,r[t++]=191,r[t++]=189,a=i;continue}else i=a-55296<<10|i-56320|65536,a=null;else{i>56319||n+1===e.length?(r[t++]=239,r[t++]=191,r[t++]=189):a=i;continue}else a&&(r[t++]=239,r[t++]=191,r[t++]=189,a=null);i<128?r[t++]=i:(i<2048?r[t++]=i>>6|192:(i<65536?r[t++]=i>>12|224:(r[t++]=i>>18|240,r[t++]=i>>12&63|128),r[t++]=i>>6&63|128),r[t++]=i&63|128)}return t}var xP=Ti(),vy=function(){function r(e,t,n,i,a){this.styleFunction,this.extent_,this.id_=a,this.type_=e,this.flatCoordinates_=t,this.flatInteriorPoints_=null,this.flatMidpoints_=null,this.ends_=n,this.properties_=i}return r.prototype.get=function(e){return this.properties_[e]},r.prototype.getExtent=function(){return this.extent_||(this.extent_=this.type_===dt.POINT?mf(this.flatCoordinates_):CE(this.flatCoordinates_,0,this.flatCoordinates_.length,2)),this.extent_},r.prototype.getFlatInteriorPoint=function(){if(!this.flatInteriorPoints_){var e=Ya(this.getExtent());this.flatInteriorPoints_=fF(this.flatCoordinates_,0,this.ends_,2,e,0)}return this.flatInteriorPoints_},r.prototype.getFlatInteriorPoints=function(){if(!this.flatInteriorPoints_){var e=x4(this.flatCoordinates_,0,this.ends_,2);this.flatInteriorPoints_=s4(this.flatCoordinates_,0,this.ends_,2,e)}return this.flatInteriorPoints_},r.prototype.getFlatMidpoint=function(){return this.flatMidpoints_||(this.flatMidpoints_=tw(this.flatCoordinates_,0,this.flatCoordinates_.length,2,.5)),this.flatMidpoints_},r.prototype.getFlatMidpoints=function(){if(!this.flatMidpoints_){this.flatMidpoints_=[];for(var e=this.flatCoordinates_,t=0,n=this.ends_,i=0,a=n.length;i<a;++i){var o=n[i],s=tw(e,t,o,2,.5);Jr(this.flatMidpoints_,s),t=o}}return this.flatMidpoints_},r.prototype.getId=function(){return this.id_},r.prototype.getOrientedFlatCoordinates=function(){return this.flatCoordinates_},r.prototype.getGeometry=function(){return this},r.prototype.getSimplifiedGeometry=function(e){return this},r.prototype.simplifyTransformed=function(e,t){return this},r.prototype.getProperties=function(){return this.properties_},r.prototype.getStride=function(){return 2},r.prototype.getStyleFunction=function(){return this.styleFunction},r.prototype.getType=function(){return this.type_},r.prototype.transform=function(e){e=Ve(e);var t=e.getExtent(),n=e.getWorldExtent();if(t&&n){var i=Si(n)/Si(t);vo(xP,n[0],n[3],i,-i,0,0,0),Mc(this.flatCoordinates_,0,this.flatCoordinates_.length,2,xP,this.flatCoordinates_)}},r.prototype.getEnds=function(){return this.ends_},r}();vy.prototype.getEndss=vy.prototype.getEnds;vy.prototype.getFlatCoordinates=vy.prototype.getOrientedFlatCoordinates;var IP=vy,Bft=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Tft=function(r){Bft(e,r);function e(t){var n=r.call(this)||this,i=t||{};return n.dataProjection=new Bu({code:"",units:lo.TILE_PIXELS}),n.featureClass_=i.featureClass?i.featureClass:IP,n.geometryName_=i.geometryName,n.layerName_=i.layerName?i.layerName:"layer",n.layers_=i.layers?i.layers:null,n.idProperty_=i.idProperty,n.supportedMediaTypes=["application/vnd.mapbox-vector-tile","application/x-protobuf"],n}return e.prototype.readRawGeometry_=function(t,n,i,a){t.pos=n.geometry;for(var o=t.readVarint()+t.pos,s=1,A=0,l=0,u=0,c=0,h=0;t.pos<o;){if(!A){var f=t.readVarint();s=f&7,A=f>>3}A--,s===1||s===2?(l+=t.readSVarint(),u+=t.readSVarint(),s===1&&c>h&&(a.push(c),h=c),i.push(l,u),c+=2):s===7?c>h&&(i.push(i[h],i[h+1]),c+=2):Le(!1,59)}c>h&&(a.push(c),h=c)},e.prototype.createFeature_=function(t,n,i){var a=n.type;if(a===0)return null;var o,s=n.properties,A;this.idProperty_?(A=s[this.idProperty_],delete s[this.idProperty_]):A=n.id,s[this.layerName_]=n.layer.name;var l=[],u=[];this.readRawGeometry_(t,n,l,u);var c=Lft(a,u.length);if(this.featureClass_===IP)o=new this.featureClass_(c,l,u,s,A),o.transform(i.dataProjection);else{var h=void 0;if(c==dt.POLYGON){var f=Tz(l,u);h=f.length>1?new za(l,ae.XY,f):new Pn(l,ae.XY,u)}else h=c===dt.POINT?new Sr(l,ae.XY):c===dt.LINE_STRING?new tn(l,ae.XY):c===dt.POLYGON?new Pn(l,ae.XY,u):c===dt.MULTI_POINT?new Qs(l,ae.XY):c===dt.MULTI_LINE_STRING?new Wa(l,ae.XY,u):null;var p=this.featureClass_;o=new p,this.geometryName_&&o.setGeometryName(this.geometryName_);var v=Qn(h,!1,i);o.setGeometry(v),A!==void 0&&o.setId(A),o.setProperties(s,!0)}return o},e.prototype.getType=function(){return lA.ARRAY_BUFFER},e.prototype.readFeatures=function(t,n){var i=this.layers_,a=this.adaptOptions(n),o=Ve(a.dataProjection);o.setWorldExtent(a.extent),a.dataProjection=o;var s=new oft(t),A=s.readFields(bft,{}),l=[];for(var u in A)if(!(i&&i.indexOf(u)==-1)){var c=A[u],h=c?[0,0,c.extent,c.extent]:null;o.setExtent(h);for(var f=0,p=c.length;f<p;++f){var v=Ift(s,c,f),m=this.createFeature_(s,v,a);m!==null&&l.push(m)}}return l},e.prototype.readProjection=function(t){return this.dataProjection},e.prototype.setLayers=function(t){this.layers_=t},e}(Zy);function bft(r,e,t){if(r===3){var n={keys:[],values:[],features:[]},i=t.readVarint()+t.pos;t.readFields(Sft,n,i),n.length=n.features.length,n.length&&(e[n.name]=n)}}function Sft(r,e,t){if(r===15)e.version=t.readVarint();else if(r===1)e.name=t.readString();else if(r===5)e.extent=t.readVarint();else if(r===2)e.features.push(t.pos);else if(r===3)e.keys.push(t.readString());else if(r===4){for(var n=null,i=t.readVarint()+t.pos;t.pos<i;)r=t.readVarint()>>3,n=r===1?t.readString():r===2?t.readFloat():r===3?t.readDouble():r===4?t.readVarint64():r===5?t.readVarint():r===6?t.readSVarint():r===7?t.readBoolean():null;e.values.push(n)}}function xft(r,e,t){if(r==1)e.id=t.readVarint();else if(r==2)for(var n=t.readVarint()+t.pos;t.pos<n;){var i=e.layer.keys[t.readVarint()],a=e.layer.values[t.readVarint()];e.properties[i]=a}else r==3?e.type=t.readVarint():r==4&&(e.geometry=t.pos)}function Ift(r,e,t){r.pos=e.features[t];var n=r.readVarint()+r.pos,i={layer:e,type:0,properties:{}};return r.readFields(xft,i,n),i}function Lft(r,e){var t;return r===1?t=e===1?dt.POINT:dt.MULTI_POINT:r===2?t=e===1?dt.LINE_STRING:dt.MULTI_LINE_STRING:r===3&&(t=dt.POLYGON),t}var Fft=Tft,Oft=function(){function r(){}return r.prototype.read=function(e){if(e)if(typeof e=="string"){var t=nl(e);return this.readFromDocument(t)}else return rl(e)?this.readFromDocument(e):this.readFromNode(e);else return null},r.prototype.readFromDocument=function(e){for(var t=e.firstChild;t;t=t.nextSibling)if(t.nodeType==Node.ELEMENT_NODE)return this.readFromNode(t);return null},r.prototype.readFromNode=function(e){},r}(),cO=Oft,Rft="http://www.w3.org/1999/xlink";function Pv(r){return r.getAttributeNS(Rft,"href")}var Mft=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Vo=[null,"http://www.opengis.net/ows/1.1"],Nft=kt(Vo,{ServiceIdentification:pt(opt),ServiceProvider:pt(Apt),OperationsMetadata:pt(ipt)}),Pft=function(r){Mft(e,r);function e(){return r.call(this)||this}return e.prototype.readFromNode=function(t){var n=Kt({},Nft,t,[]);return n||null},e}(cO),Uft=kt(Vo,{DeliveryPoint:pt(Xt),City:pt(Xt),AdministrativeArea:pt(Xt),PostalCode:pt(Xt),Country:pt(Xt),ElectronicMailAddress:pt(Xt)}),Dft=kt(Vo,{Value:bn(lpt)}),Qft=kt(Vo,{AllowedValues:pt(qft)}),kft=kt(Vo,{Phone:pt(apt),Address:pt(Xft)}),Hft=kt(Vo,{HTTP:pt(rpt)}),Gft=kt(Vo,{Get:bn(ept),Post:void 0}),$ft=kt(Vo,{DCP:pt(tpt)}),Vft=kt(Vo,{Operation:npt}),jft=kt(Vo,{Voice:pt(Xt),Facsimile:pt(Xt)}),Kft=kt(Vo,{Constraint:bn(Zft)}),Yft=kt(Vo,{IndividualName:pt(Xt),PositionName:pt(Xt),ContactInfo:pt(Jft)}),Wft=kt(Vo,{Abstract:pt(Xt),AccessConstraints:pt(Xt),Fees:pt(Xt),Title:pt(Xt),ServiceTypeVersion:pt(Xt),ServiceType:pt(Xt)}),zft=kt(Vo,{ProviderName:pt(Xt),ProviderSite:pt(Pv),ServiceContact:pt(spt)});function Xft(r,e){return Kt({},Uft,r,e)}function qft(r,e){return Kt({},Dft,r,e)}function Zft(r,e){var t=r.getAttribute("name");if(t)return Kt({name:t},Qft,r,e)}function Jft(r,e){return Kt({},kft,r,e)}function tpt(r,e){return Kt({},Hft,r,e)}function ept(r,e){var t=Pv(r);if(t)return Kt({href:t},Kft,r,e)}function rpt(r,e){return Kt({},Gft,r,e)}function npt(r,e){var t=r.getAttribute("name"),n=Kt({},$ft,r,e);if(n){var i=e[e.length-1];i[t]=n}}function ipt(r,e){return Kt({},Vft,r,e)}function apt(r,e){return Kt({},jft,r,e)}function opt(r,e){return Kt({},Wft,r,e)}function spt(r,e){return Kt({},Yft,r,e)}function Apt(r,e){return Kt({},zft,r,e)}function lpt(r,e){return Xt(r)}var Zk=Pft;function LP(r,e,t,n,i,a){var o,s;i!==void 0?(o=i,s=a!==void 0?a:0):(o=[],s=0);for(var A=e;A<t;){var l=r[A++];o[s++]=r[A++],o[s++]=l;for(var u=2;u<n;++u)o[s++]=r[A++]}return o.length=s,o}var upt=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),cpt=function(r){upt(e,r);function e(t){var n=r.call(this)||this,i=t||{};return n.dataProjection=Ve("EPSG:4326"),n.factor_=i.factor?i.factor:1e5,n.geometryLayout_=i.geometryLayout?i.geometryLayout:ae.XY,n}return e.prototype.readFeatureFromText=function(t,n){var i=this.readGeometryFromText(t,n);return new yr(i)},e.prototype.readFeaturesFromText=function(t,n){var i=this.readFeatureFromText(t,n);return[i]},e.prototype.readGeometryFromText=function(t,n){var i=tS(this.geometryLayout_),a=fpt(t,i,this.factor_);LP(a,0,a.length,i,a);var o=ru(a,0,a.length,i),s=new tn(o,this.geometryLayout_);return Qn(s,!1,this.adaptOptions(n))},e.prototype.writeFeatureText=function(t,n){var i=t.getGeometry();return i?this.writeGeometryText(i,n):(Le(!1,40),"")},e.prototype.writeFeaturesText=function(t,n){return this.writeFeatureText(t[0],n)},e.prototype.writeGeometryText=function(t,n){t=Qn(t,!0,this.adaptOptions(n));var i=t.getFlatCoordinates(),a=t.getStride();return LP(i,0,i.length,a,i),hpt(i,a,this.factor_)},e}(oO);function hpt(r,e,t){var n=t||1e5,i,a=new Array(e);for(i=0;i<e;++i)a[i]=0;for(var o=0,s=r.length;o<s;)for(i=0;i<e;++i,++o){var A=r[o],l=A-a[i];a[i]=A,r[o]=l}return ppt(r,n)}function fpt(r,e,t){var n=t||1e5,i,a=new Array(e);for(i=0;i<e;++i)a[i]=0;for(var o=dpt(r,n),s=0,A=o.length;s<A;)for(i=0;i<e;++i,++s)a[i]+=o[s],o[s]=a[i];return o}function ppt(r,e){for(var t=e||1e5,n=0,i=r.length;n<i;++n)r[n]=Math.round(r[n]*t);return vpt(r)}function dpt(r,e){for(var t=e||1e5,n=gpt(r),i=0,a=n.length;i<a;++i)n[i]/=t;return n}function vpt(r){for(var e=0,t=r.length;e<t;++e){var n=r[e];r[e]=n<0?~(n<<1):n<<1}return mpt(r)}function gpt(r){for(var e=ypt(r),t=0,n=e.length;t<n;++t){var i=e[t];e[t]=i&1?~(i>>1):i>>1}return e}function mpt(r){for(var e="",t=0,n=r.length;t<n;++t)e+=_pt(r[t]);return e}function ypt(r){for(var e=[],t=0,n=0,i=0,a=r.length;i<a;++i){var o=r.charCodeAt(i)-63;t|=(o&31)<<n,o<32?(e.push(t),t=0,n=0):n+=5}return e}function _pt(r){for(var e,t="";r>=32;)e=(32|r&31)+63,t+=String.fromCharCode(e),r>>=5;return e=r+63,t+=String.fromCharCode(e),t}var wpt=cpt,Ept=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Cpt=function(r){Ept(e,r);function e(t){var n=r.call(this)||this,i=t||{};return n.layerName_=i.layerName,n.layers_=i.layers?i.layers:null,n.dataProjection=Ve(i.dataProjection?i.dataProjection:"EPSG:4326"),n}return e.prototype.readFeaturesFromObject=function(t,n){if(t.type=="Topology"){var i=t,a=void 0,o=null,s=null;i.transform&&(a=i.transform,o=a.scale,s=a.translate);var A=i.arcs;a&&Opt(A,o,s);var l=[],u=i.objects,c=this.layerName_,h=void 0;for(var f in u)this.layers_&&this.layers_.indexOf(f)==-1||(u[f].type==="GeometryCollection"?(h=u[f],l.push.apply(l,Fpt(h,A,o,s,c,f,n))):(h=u[f],l.push(Jk(h,A,o,s,c,f,n))));return l}else return[]},e.prototype.readProjectionFromObject=function(t){return this.dataProjection},e}(qF),Bpt={Point:Tpt,LineString:Spt,Polygon:Ipt,MultiPoint:bpt,MultiLineString:xpt,MultiPolygon:Lpt};function nC(r,e){for(var t=[],n,i=0,a=r.length;i<a;++i)if(n=r[i],i>0&&t.pop(),n>=0)for(var o=e[n],s=0,A=o.length;s<A;++s)t.push(o[s].slice(0));else for(var o=e[~n],s=o.length-1;s>=0;--s)t.push(o[s].slice(0));return t}function Tpt(r,e,t){var n=r.coordinates;return e&&t&&hO(n,e,t),new Sr(n)}function bpt(r,e,t){var n=r.coordinates;if(e&&t)for(var i=0,a=n.length;i<a;++i)hO(n[i],e,t);return new Qs(n)}function Spt(r,e){var t=nC(r.arcs,e);return new tn(t)}function xpt(r,e){for(var t=[],n=0,i=r.arcs.length;n<i;++n)t[n]=nC(r.arcs[n],e);return new Wa(t)}function Ipt(r,e){for(var t=[],n=0,i=r.arcs.length;n<i;++n)t[n]=nC(r.arcs[n],e);return new Pn(t)}function Lpt(r,e){for(var t=[],n=0,i=r.arcs.length;n<i;++n){for(var a=r.arcs[n],o=[],s=0,A=a.length;s<A;++s)o[s]=nC(a[s],e);t[n]=o}return new za(t)}function Fpt(r,e,t,n,i,a,o){for(var s=r.geometries,A=[],l=0,u=s.length;l<u;++l)A[l]=Jk(s[l],e,t,n,i,a,o);return A}function Jk(r,e,t,n,i,a,o){var s=null,A=r.type;if(A){var l=Bpt[A];A==="Point"||A==="MultiPoint"?s=l(r,t,n):s=l(r,e),s=Qn(s,!1,o)}var u=new yr({geometry:s});r.id!==void 0&&u.setId(r.id);var c=r.properties;return i&&(c||(c={}),c[i]=a),c&&u.setProperties(c,!0),u}function Opt(r,e,t){for(var n=0,i=r.length;n<i;++n)Rpt(r[n],e,t)}function Rpt(r,e,t){for(var n=0,i=0,a=0,o=r.length;a<o;++a){var s=r[a];n+=s[0],i+=s[1],s[0]=n,s[1]=i,hO(s,e,t)}}function hO(r,e,t){r[0]=r[0]*e[0]+t[0],r[1]=r[1]*e[1]+t[1]}var Mpt=Cpt,Npt=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),en=function(r){Npt(e,r);function e(t){var n=this,i=t||{};return n=r.call(this,i)||this,n.schemaLocation=i.schemaLocation?i.schemaLocation:n.namespace+" http://schemas.opengis.net/gml/3.2.1/gml.xsd",n}return e}(hr);en.prototype.namespace="http://www.opengis.net/gml/3.2";en.prototype.GEOMETRY_FLAT_COORDINATES_PARSERS={"http://www.opengis.net/gml/3.2":{pos:$e(hr.prototype.readFlatPos),posList:$e(hr.prototype.readFlatPosList),coordinates:$e(Nv.prototype.readFlatCoordinates)}};en.prototype.FLAT_LINEAR_RINGS_PARSERS={"http://www.opengis.net/gml/3.2":{interior:hr.prototype.interiorParser,exterior:hr.prototype.exteriorParser}};en.prototype.GEOMETRY_PARSERS={"http://www.opengis.net/gml/3.2":{Point:$e(Er.prototype.readPoint),MultiPoint:$e(Er.prototype.readMultiPoint),LineString:$e(Er.prototype.readLineString),MultiLineString:$e(Er.prototype.readMultiLineString),LinearRing:$e(Er.prototype.readLinearRing),Polygon:$e(Er.prototype.readPolygon),MultiPolygon:$e(Er.prototype.readMultiPolygon),Surface:$e(en.prototype.readSurface),MultiSurface:$e(hr.prototype.readMultiSurface),Curve:$e(en.prototype.readCurve),MultiCurve:$e(hr.prototype.readMultiCurve),Envelope:$e(en.prototype.readEnvelope)}};en.prototype.MULTICURVE_PARSERS={"http://www.opengis.net/gml/3.2":{curveMember:Ie(hr.prototype.curveMemberParser),curveMembers:Ie(hr.prototype.curveMemberParser)}};en.prototype.MULTISURFACE_PARSERS={"http://www.opengis.net/gml/3.2":{surfaceMember:Ie(hr.prototype.surfaceMemberParser),surfaceMembers:Ie(hr.prototype.surfaceMemberParser)}};en.prototype.CURVEMEMBER_PARSERS={"http://www.opengis.net/gml/3.2":{LineString:Ie(Er.prototype.readLineString),Curve:Ie(hr.prototype.readCurve)}};en.prototype.SURFACEMEMBER_PARSERS={"http://www.opengis.net/gml/3.2":{Polygon:Ie(Er.prototype.readPolygon),Surface:Ie(hr.prototype.readSurface)}};en.prototype.SURFACE_PARSERS={"http://www.opengis.net/gml/3.2":{patches:$e(hr.prototype.readPatch)}};en.prototype.CURVE_PARSERS={"http://www.opengis.net/gml/3.2":{segments:$e(hr.prototype.readSegment)}};en.prototype.ENVELOPE_PARSERS={"http://www.opengis.net/gml/3.2":{lowerCorner:Ie(hr.prototype.readFlatPosList),upperCorner:Ie(hr.prototype.readFlatPosList)}};en.prototype.PATCHES_PARSERS={"http://www.opengis.net/gml/3.2":{PolygonPatch:$e(hr.prototype.readPolygonPatch)}};en.prototype.SEGMENTS_PARSERS={"http://www.opengis.net/gml/3.2":{LineStringSegment:$e(hr.prototype.readLineStringSegment)}};en.prototype.MULTIPOINT_PARSERS={"http://www.opengis.net/gml/3.2":{pointMember:Ie(Er.prototype.pointMemberParser),pointMembers:Ie(Er.prototype.pointMemberParser)}};en.prototype.MULTILINESTRING_PARSERS={"http://www.opengis.net/gml/3.2":{lineStringMember:Ie(Er.prototype.lineStringMemberParser),lineStringMembers:Ie(Er.prototype.lineStringMemberParser)}};en.prototype.MULTIPOLYGON_PARSERS={"http://www.opengis.net/gml/3.2":{polygonMember:Ie(Er.prototype.polygonMemberParser),polygonMembers:Ie(Er.prototype.polygonMemberParser)}};en.prototype.POINTMEMBER_PARSERS={"http://www.opengis.net/gml/3.2":{Point:Ie(Er.prototype.readFlatCoordinatesFromNode)}};en.prototype.LINESTRINGMEMBER_PARSERS={"http://www.opengis.net/gml/3.2":{LineString:Ie(Er.prototype.readLineString)}};en.prototype.POLYGONMEMBER_PARSERS={"http://www.opengis.net/gml/3.2":{Polygon:Ie(Er.prototype.readPolygon)}};en.prototype.RING_PARSERS={"http://www.opengis.net/gml/3.2":{LinearRing:$e(Er.prototype.readFlatLinearRing)}};en.prototype.RING_SERIALIZERS={"http://www.opengis.net/gml/3.2":{exterior:gt(hr.prototype.writeRing),interior:gt(hr.prototype.writeRing)}};en.prototype.ENVELOPE_SERIALIZERS={"http://www.opengis.net/gml/3.2":{lowerCorner:gt(Ye),upperCorner:gt(Ye)}};en.prototype.SURFACEORPOLYGONMEMBER_SERIALIZERS={"http://www.opengis.net/gml/3.2":{surfaceMember:gt(hr.prototype.writeSurfaceOrPolygonMember),polygonMember:gt(hr.prototype.writeSurfaceOrPolygonMember)}};en.prototype.POINTMEMBER_SERIALIZERS={"http://www.opengis.net/gml/3.2":{pointMember:gt(hr.prototype.writePointMember)}};en.prototype.LINESTRINGORCURVEMEMBER_SERIALIZERS={"http://www.opengis.net/gml/3.2":{lineStringMember:gt(hr.prototype.writeLineStringOrCurveMember),curveMember:gt(hr.prototype.writeLineStringOrCurveMember)}};en.prototype.GEOMETRY_SERIALIZERS={"http://www.opengis.net/gml/3.2":{Curve:gt(hr.prototype.writeCurveOrLineString),MultiCurve:gt(hr.prototype.writeMultiCurveOrLineString),Point:gt(en.prototype.writePoint),MultiPoint:gt(hr.prototype.writeMultiPoint),LineString:gt(hr.prototype.writeCurveOrLineString),MultiLineString:gt(hr.prototype.writeMultiCurveOrLineString),LinearRing:gt(hr.prototype.writeLinearRing),Polygon:gt(hr.prototype.writeSurfaceOrPolygon),MultiPolygon:gt(hr.prototype.writeMultiSurfaceOrPolygon),Surface:gt(hr.prototype.writeSurfaceOrPolygon),MultiSurface:gt(hr.prototype.writeMultiSurfaceOrPolygon),Envelope:gt(hr.prototype.writeEnvelope)}};var fO=en,Ppt=function(){function r(e){this.tagName_=e}return r.prototype.getTagName=function(){return this.tagName_},r}(),tH=Ppt,Upt=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Dpt=function(r){Upt(e,r);function e(t,n){var i=r.call(this,t)||this;return i.conditions=n,Le(i.conditions.length>=2,57),i}return e}(tH),Qpt=Dpt,kpt=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Hpt=function(r){kpt(e,r);function e(t){return r.call(this,"And",Array.prototype.slice.call(arguments))||this}return e}(Qpt),Gpt=Hpt,$pt=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Vpt=function(r){$pt(e,r);function e(t,n,i){var a=r.call(this,"BBOX")||this;if(a.geometryName=t,a.extent=n,n.length!==4)throw new Error("Expected an extent with four values ([minX, minY, maxX, maxY])");return a.srsName=i,a}return e}(tH),jpt=Vpt;function Kpt(r){var e=[null].concat(Array.prototype.slice.call(arguments));return new(Function.prototype.bind.apply(Gpt,e))}function Ypt(r,e,t){return new jpt(r,e,t)}var Wpt=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),FP={"http://www.opengis.net/gml":{boundedBy:pt(Er.prototype.readExtentElement,"bounds")},"http://www.opengis.net/wfs/2.0":{member:Ie(Er.prototype.readFeaturesInternal)}},zpt={"http://www.opengis.net/wfs":{totalInserted:pt(Bi),totalUpdated:pt(Bi),totalDeleted:pt(Bi)},"http://www.opengis.net/wfs/2.0":{totalInserted:pt(Bi),totalUpdated:pt(Bi),totalDeleted:pt(Bi)}},Xpt={"http://www.opengis.net/wfs":{TransactionSummary:pt(RP,"transactionSummary"),InsertResults:pt(NP,"insertIds")},"http://www.opengis.net/wfs/2.0":{TransactionSummary:pt(RP,"transactionSummary"),InsertResults:pt(NP,"insertIds")}},qpt={"http://www.opengis.net/wfs":{PropertyName:gt(Ye)},"http://www.opengis.net/wfs/2.0":{PropertyName:gt(Ye)}},eH={"http://www.opengis.net/wfs":{Insert:gt(PP),Update:gt(DP),Delete:gt(UP),Property:gt(QP),Native:gt(kP)},"http://www.opengis.net/wfs/2.0":{Insert:gt(PP),Update:gt(DP),Delete:gt(UP),Property:gt(QP),Native:gt(kP)}},rH="feature",pO="http://www.w3.org/2000/xmlns/",dO={"2.0.0":"http://www.opengis.net/ogc/1.1","1.1.0":"http://www.opengis.net/ogc","1.0.0":"http://www.opengis.net/ogc"},Kx={"2.0.0":"http://www.opengis.net/wfs/2.0","1.1.0":"http://www.opengis.net/wfs","1.0.0":"http://www.opengis.net/wfs"},vO={"2.0.0":"http://www.opengis.net/fes/2.0","1.1.0":"http://www.opengis.net/fes","1.0.0":"http://www.opengis.net/fes"},OP={"2.0.0":"http://www.opengis.net/wfs/2.0 http://schemas.opengis.net/wfs/2.0/wfs.xsd","1.1.0":"http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd","1.0.0":"http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.0.0/wfs.xsd"},gO={"2.0.0":fO,"1.1.0":hr,"1.0.0":Nv},Zpt="1.1.0",Jpt=function(r){Wpt(e,r);function e(t){var n=r.call(this)||this,i=t||{};return n.version_=i.version?i.version:Zpt,n.featureType_=i.featureType,n.featureNS_=i.featureNS,n.gmlFormat_=i.gmlFormat?i.gmlFormat:new gO[n.version_],n.schemaLocation_=i.schemaLocation?i.schemaLocation:OP[n.version_],n}return e.prototype.getFeatureType=function(){return this.featureType_},e.prototype.setFeatureType=function(t){this.featureType_=t},e.prototype.readFeaturesFromNode=function(t,n){var i={node:t};Ce(i,{featureType:this.featureType_,featureNS:this.featureNS_}),Ce(i,this.getReadOptions(t,n||{}));var a=[i],o;this.version_==="2.0.0"?o=FP:o=this.gmlFormat_.FEATURE_COLLECTION_PARSERS;var s=Kt([],o,t,a,this.gmlFormat_);return s||(s=[]),s},e.prototype.readTransactionResponse=function(t){if(t)if(typeof t=="string"){var n=nl(t);return this.readTransactionResponseFromDocument(n)}else return rl(t)?this.readTransactionResponseFromDocument(t):this.readTransactionResponseFromNode(t);else return},e.prototype.readFeatureCollectionMetadata=function(t){if(t)if(typeof t=="string"){var n=nl(t);return this.readFeatureCollectionMetadataFromDocument(n)}else return rl(t)?this.readFeatureCollectionMetadataFromDocument(t):this.readFeatureCollectionMetadataFromNode(t);else return},e.prototype.readFeatureCollectionMetadataFromDocument=function(t){for(var n=t.firstChild;n;n=n.nextSibling)if(n.nodeType==Node.ELEMENT_NODE)return this.readFeatureCollectionMetadataFromNode(n)},e.prototype.readFeatureCollectionMetadataFromNode=function(t){var n={},i=nu(t.getAttribute("numberOfFeatures"));return n.numberOfFeatures=i,Kt(n,FP,t,[],this.gmlFormat_)},e.prototype.readTransactionResponseFromDocument=function(t){for(var n=t.firstChild;n;n=n.nextSibling)if(n.nodeType==Node.ELEMENT_NODE)return this.readTransactionResponseFromNode(n)},e.prototype.readTransactionResponseFromNode=function(t){return Kt({},Xpt,t,[])},e.prototype.writeGetFeature=function(t){var n=this,i=Je(Kx[this.version_],"GetFeature");i.setAttribute("service","WFS"),i.setAttribute("version",this.version_),t.handle&&i.setAttribute("handle",t.handle),t.outputFormat&&i.setAttribute("outputFormat",t.outputFormat),t.maxFeatures!==void 0&&i.setAttribute("maxFeatures",String(t.maxFeatures)),t.resultType&&i.setAttribute("resultType",t.resultType),t.startIndex!==void 0&&i.setAttribute("startIndex",String(t.startIndex)),t.count!==void 0&&i.setAttribute("count",String(t.count)),t.viewParams!==void 0&&i.setAttribute("viewParams",t.viewParams),i.setAttributeNS($f,"xsi:schemaLocation",this.schemaLocation_);var a={node:i};if(Ce(a,{version:this.version_,srsName:t.srsName,featureNS:t.featureNS?t.featureNS:this.featureNS_,featurePrefix:t.featurePrefix,propertyNames:t.propertyNames?t.propertyNames:[]}),Le(Array.isArray(t.featureTypes),11),typeof t.featureTypes[0]=="string"){var o=t.filter;t.bbox&&(Le(t.geometryName,12),o=this.combineBboxAndFilter(t.geometryName,t.bbox,t.srsName,o)),Ce(a,{geometryName:t.geometryName,filter:o}),XP(i,t.featureTypes,[a])}else t.featureTypes.forEach(function(s){var A=n.combineBboxAndFilter(s.geometryName,s.bbox,t.srsName,t.filter);Ce(a,{geometryName:s.geometryName,filter:A}),XP(i,[s.name],[a])});return i},e.prototype.combineBboxAndFilter=function(t,n,i,a){var o=Ypt(t,n,i);return a?Kpt(a,o):o},e.prototype.writeTransaction=function(t,n,i,a){var o=[],s=a.version?a.version:this.version_,A=Je(Kx[s],"Transaction");A.setAttribute("service","WFS"),A.setAttribute("version",s);var l;a&&(l=a.gmlOptions?a.gmlOptions:{},a.handle&&A.setAttribute("handle",a.handle)),A.setAttributeNS($f,"xsi:schemaLocation",OP[s]);var u=tdt(A,l,s,a);return t&&g_("Insert",t,o,u),n&&g_("Update",n,o,u),i&&g_("Delete",i,o,u),a.nativeElements&&g_("Native",a.nativeElements,o,u),A},e.prototype.readProjectionFromDocument=function(t){for(var n=t.firstChild;n;n=n.nextSibling)if(n.nodeType==Node.ELEMENT_NODE)return this.readProjectionFromNode(n);return null},e.prototype.readProjectionFromNode=function(t){if(t.firstElementChild&&t.firstElementChild.firstElementChild){t=t.firstElementChild.firstElementChild;for(var n=t.firstElementChild;n;n=n.nextElementSibling)if(!(n.childNodes.length===0||n.childNodes.length===1&&n.firstChild.nodeType===3)){var i=[{}];return this.gmlFormat_.readGeometryElement(n,i),Ve(i.pop().srsName)}}return null},e}(t0);function tdt(r,e,t,n){var i=n.featurePrefix?n.featurePrefix:rH,a;t==="1.0.0"?a=2:t==="1.1.0"?a=3:t==="2.0.0"&&(a=3.2);var o=Ce({node:r},{version:t,featureNS:n.featureNS,featureType:n.featureType,featurePrefix:i,gmlVersion:a,hasZ:n.hasZ,srsName:n.srsName},e);return o}function g_(r,e,t,n){Xe(n,eH,zn(r),e,t)}function RP(r,e){return Kt({},zpt,r,e)}var edt={"http://www.opengis.net/ogc":{FeatureId:Ie(function(r,e){return r.getAttribute("fid")})},"http://www.opengis.net/ogc/1.1":{FeatureId:Ie(function(r,e){return r.getAttribute("fid")})}};function MP(r,e){No(edt,r,e)}var rdt={"http://www.opengis.net/wfs":{Feature:MP},"http://www.opengis.net/wfs/2.0":{Feature:MP}};function NP(r,e){return Kt([],rdt,r,e)}function PP(r,e,t){var n=t[t.length-1],i=n.featureType,a=n.featureNS,o=n.gmlVersion,s=Je(a,i);r.appendChild(s),o===2?Nv.prototype.writeFeatureElement(s,e,t):o===3?hr.prototype.writeFeatureElement(s,e,t):fO.prototype.writeFeatureElement(s,e,t)}function nH(r,e,t){var n=t[t.length-1],i=n.version,a=dO[i],o=Je(a,"Filter"),s=Je(a,"FeatureId");o.appendChild(s),s.setAttribute("fid",e),r.appendChild(o)}function mO(r,e){r=r||rH;var t=r+":";return e.indexOf(t)===0?e:t+e}function UP(r,e,t){var n=t[t.length-1];Le(e.getId()!==void 0,26);var i=n.featureType,a=n.featurePrefix,o=n.featureNS,s=mO(a,i);r.setAttribute("typeName",s),r.setAttributeNS(pO,"xmlns:"+a,o);var A=e.getId();A!==void 0&&nH(r,A,t)}function DP(r,e,t){var n=t[t.length-1];Le(e.getId()!==void 0,27);var i=n.version,a=n.featureType,o=n.featurePrefix,s=n.featureNS,A=mO(o,a),l=e.getGeometryName();r.setAttribute("typeName",A),r.setAttributeNS(pO,"xmlns:"+o,s);var u=e.getId();if(u!==void 0){for(var c=e.getKeys(),h=[],f=0,p=c.length;f<p;f++){var v=e.get(c[f]);if(v!==void 0){var m=c[f];v&&typeof v.getSimplifiedGeometry=="function"&&(m=l),h.push({name:m,value:v})}}Xe({version:i,gmlVersion:n.gmlVersion,node:r,hasZ:n.hasZ,srsName:n.srsName},eH,zn("Property"),h,t),nH(r,u,t)}}function QP(r,e,t){var n=t[t.length-1],i=n.version,a=Kx[i],o=Je(a,"Name"),s=n.gmlVersion;if(r.appendChild(o),Ye(o,e.name),e.value!==void 0&&e.value!==null){var A=Je(a,"Value");r.appendChild(A),e.value&&typeof e.value.getSimplifiedGeometry=="function"?s===2?Nv.prototype.writeGeometryElement(A,e.value,t):s===3?hr.prototype.writeGeometryElement(A,e.value,t):fO.prototype.writeGeometryElement(A,e.value,t):Ye(A,e.value)}}function kP(r,e,t){e.vendorId&&r.setAttribute("vendorId",e.vendorId),e.safeToIgnore!==void 0&&r.setAttribute("safeToIgnore",String(e.safeToIgnore)),e.value!==void 0&&Ye(r,e.value)}var iC={"http://www.opengis.net/wfs":{Query:gt(HP)},"http://www.opengis.net/wfs/2.0":{Query:gt(HP)},"http://www.opengis.net/ogc":{During:gt(VP),And:gt(m_),Or:gt(m_),Not:gt(jP),BBOX:gt(GP),Contains:gt(hc),Intersects:gt(hc),Within:gt(hc),DWithin:gt($P),PropertyIsEqualTo:gt(xs),PropertyIsNotEqualTo:gt(xs),PropertyIsLessThan:gt(xs),PropertyIsLessThanOrEqualTo:gt(xs),PropertyIsGreaterThan:gt(xs),PropertyIsGreaterThanOrEqualTo:gt(xs),PropertyIsNull:gt(KP),PropertyIsBetween:gt(YP),PropertyIsLike:gt(WP)},"http://www.opengis.net/fes/2.0":{During:gt(VP),And:gt(m_),Or:gt(m_),Not:gt(jP),BBOX:gt(GP),Contains:gt(hc),Disjoint:gt(hc),Intersects:gt(hc),ResourceId:gt(idt),Within:gt(hc),DWithin:gt($P),PropertyIsEqualTo:gt(xs),PropertyIsNotEqualTo:gt(xs),PropertyIsLessThan:gt(xs),PropertyIsLessThanOrEqualTo:gt(xs),PropertyIsGreaterThan:gt(xs),PropertyIsGreaterThanOrEqualTo:gt(xs),PropertyIsNull:gt(KP),PropertyIsBetween:gt(YP),PropertyIsLike:gt(WP)}};function HP(r,e,t){var n=t[t.length-1],i=n.version,a=n.featurePrefix,o=n.featureNS,s=n.propertyNames,A=n.srsName,l;a?l=mO(a,e):l=e;var u;i==="2.0.0"?u="typeNames":u="typeName",r.setAttribute(u,l),A&&r.setAttribute("srsName",A),o&&r.setAttributeNS(pO,"xmlns:"+a,o);var c=Ce({},n);c.node=r,Xe(c,qpt,zn("PropertyName"),s,t);var h=n.filter;if(h){var f=Je(aC(i),"Filter");r.appendChild(f),ndt(f,h,t)}}function ndt(r,e,t){var n=t[t.length-1],i={node:r};Ce(i,{context:n}),Xe(i,iC,zn(e.getTagName()),[e],t)}function GP(r,e,t){var n=t[t.length-1],i=n.context,a=i.version;n.srsName=e.srsName;var o=gO[a];Uv(a,r,e.geometryName),o.prototype.writeGeometryElement(r,e.extent,t)}function idt(r,e,t){r.setAttribute("rid",e.rid)}function hc(r,e,t){var n=t[t.length-1],i=n.context,a=i.version;n.srsName=e.srsName;var o=gO[a];Uv(a,r,e.geometryName),o.prototype.writeGeometryElement(r,e.geometry,t)}function $P(r,e,t){var n=t[t.length-1],i=n.context,a=i.version;hc(r,e,t);var o=Je(aC(a),"Distance");Ye(o,e.distance.toString()),a==="2.0.0"?o.setAttribute("uom",e.unit):o.setAttribute("units",e.unit),r.appendChild(o)}function VP(r,e,t){var n=t[t.length-1],i=n.context,a=i.version;Iw(vO[a],"ValueReference",r,e.propertyName);var o=Je(Au,"TimePeriod");r.appendChild(o);var s=Je(Au,"begin");o.appendChild(s),zP(s,e.begin);var A=Je(Au,"end");o.appendChild(A),zP(A,e.end)}function m_(r,e,t){var n=t[t.length-1],i=n.context,a={node:r};Ce(a,{context:i});for(var o=e.conditions,s=0,A=o.length;s<A;++s){var l=o[s];Xe(a,iC,zn(l.getTagName()),[l],t)}}function jP(r,e,t){var n=t[t.length-1],i=n.context,a={node:r};Ce(a,{context:i});var o=e.condition;Xe(a,iC,zn(o.getTagName()),[o],t)}function xs(r,e,t){var n=t[t.length-1],i=n.context,a=i.version;e.matchCase!==void 0&&r.setAttribute("matchCase",e.matchCase.toString()),Uv(a,r,e.propertyName),Lw(a,r,""+e.expression)}function KP(r,e,t){var n=t[t.length-1],i=n.context,a=i.version;Uv(a,r,e.propertyName)}function YP(r,e,t){var n=t[t.length-1],i=n.context,a=i.version,o=aC(a);Uv(a,r,e.propertyName);var s=Je(o,"LowerBoundary");r.appendChild(s),Lw(a,s,""+e.lowerBoundary);var A=Je(o,"UpperBoundary");r.appendChild(A),Lw(a,A,""+e.upperBoundary)}function WP(r,e,t){var n=t[t.length-1],i=n.context,a=i.version;r.setAttribute("wildCard",e.wildCard),r.setAttribute("singleChar",e.singleChar),r.setAttribute("escapeChar",e.escapeChar),e.matchCase!==void 0&&r.setAttribute("matchCase",e.matchCase.toString()),Uv(a,r,e.propertyName),Lw(a,r,""+e.pattern)}function Iw(r,e,t,n){var i=Je(r,e);Ye(i,n),t.appendChild(i)}function Lw(r,e,t){Iw(aC(r),"Literal",e,t)}function Uv(r,e,t){r==="2.0.0"?Iw(vO[r],"ValueReference",e,t):Iw(dO[r],"PropertyName",e,t)}function zP(r,e){var t=Je(Au,"TimeInstant");r.appendChild(t);var n=Je(Au,"timePosition");t.appendChild(n),Ye(n,e)}function XP(r,e,t){var n=t[t.length-1],i=Ce({},n);i.node=r,Xe(i,iC,zn("Query"),e,t)}function aC(r){var e;return r==="2.0.0"?e=vO[r]:e=dO[r],e}var adt=Jpt,odt=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),on={POINT:1,LINE_STRING:2,POLYGON:3,MULTI_POINT:4,MULTI_LINE_STRING:5,MULTI_POLYGON:6,GEOMETRY_COLLECTION:7,POLYHEDRAL_SURFACE:15,TIN:16,TRIANGLE:17},qP=function(){function r(e){this.view_=e,this.pos_=0,this.initialized_=!1,this.isLittleEndian_=!1,this.hasZ_=!1,this.hasM_=!1,this.srid_=null,this.layout_=ae.XY}return r.prototype.readUint8=function(){return this.view_.getUint8(this.pos_++)},r.prototype.readUint32=function(e){return this.view_.getUint32((this.pos_+=4)-4,e!==void 0?e:this.isLittleEndian_)},r.prototype.readDouble=function(e){return this.view_.getFloat64((this.pos_+=8)-8,e!==void 0?e:this.isLittleEndian_)},r.prototype.readPoint=function(){var e=[];return e.push(this.readDouble()),e.push(this.readDouble()),this.hasZ_&&e.push(this.readDouble()),this.hasM_&&e.push(this.readDouble()),e},r.prototype.readLineString=function(){for(var e=this.readUint32(),t=[],n=0;n<e;n++)t.push(this.readPoint());return t},r.prototype.readPolygon=function(){for(var e=this.readUint32(),t=[],n=0;n<e;n++)t.push(this.readLineString());return t},r.prototype.readWkbHeader=function(e){var t=this.readUint8(),n=t>0,i=this.readUint32(n),a=Math.floor((i&268435455)/1e3),o=Boolean(i&2147483648)||a===1||a===3,s=Boolean(i&1073741824)||a===2||a===3,A=Boolean(i&536870912),l=(i&268435455)%1e3,u=["XY",o?"Z":"",s?"M":""].join(""),c=A?this.readUint32(n):null;if(e!==void 0&&e!==l)throw new Error("Unexpected WKB geometry type "+l);if(this.initialized_){if(this.isLittleEndian_!==n)throw new Error("Inconsistent endian");if(this.layout_!==u)throw new Error("Inconsistent geometry layout");if(c&&this.srid_!==c)throw new Error("Inconsistent coordinate system (SRID)")}else this.isLittleEndian_=n,this.hasZ_=o,this.hasM_=s,this.layout_=u,this.srid_=c,this.initialized_=!0;return l},r.prototype.readWkbPayload=function(e){switch(e){case on.POINT:return this.readPoint();case on.LINE_STRING:return this.readLineString();case on.POLYGON:case on.TRIANGLE:return this.readPolygon();case on.MULTI_POINT:return this.readMultiPoint();case on.MULTI_LINE_STRING:return this.readMultiLineString();case on.MULTI_POLYGON:case on.POLYHEDRAL_SURFACE:case on.TIN:return this.readMultiPolygon();case on.GEOMETRY_COLLECTION:return this.readGeometryCollection();default:throw new Error("Unsupported WKB geometry type "+e+" is found")}},r.prototype.readWkbBlock=function(e){return this.readWkbPayload(this.readWkbHeader(e))},r.prototype.readWkbCollection=function(e,t){for(var n=this.readUint32(),i=[],a=0;a<n;a++){var o=e.call(this,t);o&&i.push(o)}return i},r.prototype.readMultiPoint=function(){return this.readWkbCollection(this.readWkbBlock,on.POINT)},r.prototype.readMultiLineString=function(){return this.readWkbCollection(this.readWkbBlock,on.LINE_STRING)},r.prototype.readMultiPolygon=function(){return this.readWkbCollection(this.readWkbBlock,on.POLYGON)},r.prototype.readGeometryCollection=function(){return this.readWkbCollection(this.readGeometry)},r.prototype.readGeometry=function(){var e=this.readWkbHeader(),t=this.readWkbPayload(e);switch(e){case on.POINT:return new Sr(t,this.layout_);case on.LINE_STRING:return new tn(t,this.layout_);case on.POLYGON:case on.TRIANGLE:return new Pn(t,this.layout_);case on.MULTI_POINT:return new Qs(t,this.layout_);case on.MULTI_LINE_STRING:return new Wa(t,this.layout_);case on.MULTI_POLYGON:case on.POLYHEDRAL_SURFACE:case on.TIN:return new za(t,this.layout_);case on.GEOMETRY_COLLECTION:return new wa(t);default:return null}},r.prototype.getSrid=function(){return this.srid_},r}(),sdt=function(){function r(e){e=e||{},this.layout_=e.layout,this.isLittleEndian_=e.littleEndian!==!1,this.isEWKB_=e.ewkb!==!1,this.writeQueue_=[],this.nodata_=Ce({X:0,Y:0,Z:0,M:0},e.nodata)}return r.prototype.writeUint8=function(e){this.writeQueue_.push([1,e])},r.prototype.writeUint32=function(e){this.writeQueue_.push([4,e])},r.prototype.writeDouble=function(e){this.writeQueue_.push([8,e])},r.prototype.writePoint=function(e,t){for(var n=Ce.apply(null,t.split("").map(function(s,A){var l;return l={},l[s]=e[A],l})),i=0,a=this.layout_;i<a.length;i++){var o=a[i];this.writeDouble(o in n?n[o]:this.nodata_[o])}},r.prototype.writeLineString=function(e,t){this.writeUint32(e.length);for(var n=0;n<e.length;n++)this.writePoint(e[n],t)},r.prototype.writePolygon=function(e,t){this.writeUint32(e.length);for(var n=0;n<e.length;n++)this.writeLineString(e[n],t)},r.prototype.writeWkbHeader=function(e,t){e%=1e3,this.layout_.indexOf("Z")>=0&&(e+=this.isEWKB_?2147483648:1e3),this.layout_.indexOf("M")>=0&&(e+=this.isEWKB_?1073741824:2e3),this.isEWKB_&&Number.isInteger(t)&&(e|=536870912),this.writeUint8(this.isLittleEndian_?1:0),this.writeUint32(e),this.isEWKB_&&Number.isInteger(t)&&this.writeUint32(t)},r.prototype.writeMultiPoint=function(e,t){this.writeUint32(e.length);for(var n=0;n<e.length;n++)this.writeWkbHeader(1),this.writePoint(e[n],t)},r.prototype.writeMultiLineString=function(e,t){this.writeUint32(e.length);for(var n=0;n<e.length;n++)this.writeWkbHeader(2),this.writeLineString(e[n],t)},r.prototype.writeMultiPolygon=function(e,t){this.writeUint32(e.length);for(var n=0;n<e.length;n++)this.writeWkbHeader(3),this.writePolygon(e[n],t)},r.prototype.writeGeometryCollection=function(e){this.writeUint32(e.length);for(var t=0;t<e.length;t++)this.writeGeometry(e[t])},r.prototype.findMinimumLayout=function(e,t){t===void 0&&(t=ae.XYZM);var n=function(o,s){return o===s?o:o===ae.XYZM?s:s===ae.XYZM?o:ae.XY};if(e instanceof dA)return n(e.getLayout(),t);if(e instanceof wa)for(var i=e.getGeometriesArray(),a=0;a<i.length&&t!==ae.XY;a++)t=this.findMinimumLayout(i[a],t);return t},r.prototype.writeGeometry=function(e,t){var n,i,a=(n={},n[dt.POINT]=on.POINT,n[dt.LINE_STRING]=on.LINE_STRING,n[dt.POLYGON]=on.POLYGON,n[dt.MULTI_POINT]=on.MULTI_POINT,n[dt.MULTI_LINE_STRING]=on.MULTI_LINE_STRING,n[dt.MULTI_POLYGON]=on.MULTI_POLYGON,n[dt.GEOMETRY_COLLECTION]=on.GEOMETRY_COLLECTION,n),o=e.getType(),s=a[o];if(!s)throw new Error("GeometryType "+o+" is not supported");if(this.layout_||(this.layout_=this.findMinimumLayout(e)),this.writeWkbHeader(s,t),e instanceof dA){var A=(i={},i[dt.POINT]=this.writePoint,i[dt.LINE_STRING]=this.writeLineString,i[dt.POLYGON]=this.writePolygon,i[dt.MULTI_POINT]=this.writeMultiPoint,i[dt.MULTI_LINE_STRING]=this.writeMultiLineString,i[dt.MULTI_POLYGON]=this.writeMultiPolygon,i);A[o].call(this,e.getCoordinates(),e.getLayout())}else e instanceof wa&&this.writeGeometryCollection(e.getGeometriesArray())},r.prototype.getBuffer=function(){var e=this,t=this.writeQueue_.reduce(function(o,s){return o+s[0]},0),n=new ArrayBuffer(t),i=new DataView(n),a=0;return this.writeQueue_.forEach(function(o){switch(o[0]){case 1:i.setUint8(a,o[1]);break;case 4:i.setUint32(a,o[1],e.isLittleEndian_);break;case 8:i.setFloat64(a,o[1],e.isLittleEndian_);break}a+=o[0]}),n},r}(),Adt=function(r){odt(e,r);function e(t){var n=r.call(this)||this,i=t||{};return n.splitCollection=Boolean(i.splitCollection),n.viewCache_=null,n.hex_=i.hex!==!1,n.littleEndian_=i.littleEndian!==!1,n.ewkb_=i.ewkb!==!1,n.layout_=i.geometryLayout,n.nodataZ_=i.nodataZ||0,n.nodataM_=i.nodataM||0,n.srid_=i.srid,n}return e.prototype.getType=function(){return this.hex_?lA.TEXT:lA.ARRAY_BUFFER},e.prototype.readFeature=function(t,n){return new yr({geometry:this.readGeometry(t,n)})},e.prototype.readFeatures=function(t,n){var i=[],a=this.readGeometry(t,n);return this.splitCollection&&a instanceof wa?i=a.getGeometriesArray():i=[a],i.map(function(o){return new yr({geometry:o})})},e.prototype.readGeometry=function(t,n){var i=ZP(t);if(!i)return null;var a=new qP(i),o=a.readGeometry();this.viewCache_=i;var s=this.getReadOptions(t,n);return this.viewCache_=null,Qn(o,!1,s)},e.prototype.readProjection=function(t){var n=this.viewCache_||ZP(t);if(n){var i=new qP(n);return i.readWkbHeader(),i.getSrid()&&Ve("EPSG:"+i.getSrid())||void 0}},e.prototype.writeFeature=function(t,n){return this.writeGeometry(t.getGeometry(),n)},e.prototype.writeFeatures=function(t,n){return this.writeGeometry(new wa(t.map(function(i){return i.getGeometry()})),n)},e.prototype.writeGeometry=function(t,n){var i=this.adaptOptions(n),a=new sdt({layout:this.layout_,littleEndian:this.littleEndian_,ewkb:this.ewkb_,nodata:{Z:this.nodataZ_,M:this.nodataM_}}),o=Number.isInteger(this.srid_)?Number(this.srid_):null;if(this.srid_!==!1&&!Number.isInteger(this.srid_)){var s=i.dataProjection&&Ve(i.dataProjection);if(s){var A=s.getCode();A.indexOf("EPSG:")===0&&(o=Number(A.substring(5)))}}a.writeGeometry(Qn(t,!0,i),o);var l=a.getBuffer();return this.hex_?ldt(l):l},e}(Zy);function ldt(r){var e=new Uint8Array(r);return Array.from(e.values()).map(function(t){return(t<16?"0":"")+Number(t).toString(16).toUpperCase()}).join("")}function udt(r){for(var e=new Uint8Array(r.length/2),t=0;t<r.length/2;t++)e[t]=parseInt(r.substr(t*2,2),16);return new DataView(e.buffer)}function ZP(r){return typeof r=="string"?udt(r):ArrayBuffer.isView(r)?r instanceof DataView?r:new DataView(r.buffer,r.byteOffset,r.byteLength):r instanceof ArrayBuffer?new DataView(r):null}var cdt=Adt,hdt=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),fdt={POINT:Sr,LINESTRING:tn,POLYGON:Pn,MULTIPOINT:Qs,MULTILINESTRING:Wa,MULTIPOLYGON:za},iH="EMPTY",aH="Z",oH="M",pdt="ZM",qr={START:0,TEXT:1,LEFT_PAREN:2,RIGHT_PAREN:3,NUMBER:4,COMMA:5,EOF:6};for(var ddt in dt)dt[ddt].toUpperCase();var vdt=function(){function r(e){this.wkt=e,this.index_=-1}return r.prototype.isAlpha_=function(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"},r.prototype.isNumeric_=function(e,t){var n=t!==void 0?t:!1;return e>="0"&&e<="9"||e=="."&&!n},r.prototype.isWhiteSpace_=function(e){return e==" "||e==" "||e=="\r"||e==`
|
||
`},r.prototype.nextChar_=function(){return this.wkt.charAt(++this.index_)},r.prototype.nextToken=function(){var e=this.nextChar_(),t=this.index_,n=e,i;if(e=="(")i=qr.LEFT_PAREN;else if(e==",")i=qr.COMMA;else if(e==")")i=qr.RIGHT_PAREN;else if(this.isNumeric_(e)||e=="-")i=qr.NUMBER,n=this.readNumber_();else if(this.isAlpha_(e))i=qr.TEXT,n=this.readText_();else{if(this.isWhiteSpace_(e))return this.nextToken();if(e==="")i=qr.EOF;else throw new Error("Unexpected character: "+e)}return{position:t,value:n,type:i}},r.prototype.readNumber_=function(){var e,t=this.index_,n=!1,i=!1;do e=="."?n=!0:(e=="e"||e=="E")&&(i=!0),e=this.nextChar_();while(this.isNumeric_(e,n)||!i&&(e=="e"||e=="E")||i&&(e=="-"||e=="+"));return parseFloat(this.wkt.substring(t,this.index_--))},r.prototype.readText_=function(){var e,t=this.index_;do e=this.nextChar_();while(this.isAlpha_(e));return this.wkt.substring(t,this.index_--).toUpperCase()},r}(),gdt=function(){function r(e){this.lexer_=e,this.token_={position:0,type:qr.START},this.layout_=ae.XY}return r.prototype.consume_=function(){this.token_=this.lexer_.nextToken()},r.prototype.isTokenType=function(e){return this.token_.type==e},r.prototype.match=function(e){var t=this.isTokenType(e);return t&&this.consume_(),t},r.prototype.parse=function(){return this.consume_(),this.parseGeometry_()},r.prototype.parseGeometryLayout_=function(){var e=ae.XY,t=this.token_;if(this.isTokenType(qr.TEXT)){var n=t.value;n===aH?e=ae.XYZ:n===oH?e=ae.XYM:n===pdt&&(e=ae.XYZM),e!==ae.XY&&this.consume_()}return e},r.prototype.parseGeometryCollectionText_=function(){if(this.match(qr.LEFT_PAREN)){var e=[];do e.push(this.parseGeometry_());while(this.match(qr.COMMA));if(this.match(qr.RIGHT_PAREN))return e}throw new Error(this.formatErrorMessage_())},r.prototype.parsePointText_=function(){if(this.match(qr.LEFT_PAREN)){var e=this.parsePoint_();if(this.match(qr.RIGHT_PAREN))return e}throw new Error(this.formatErrorMessage_())},r.prototype.parseLineStringText_=function(){if(this.match(qr.LEFT_PAREN)){var e=this.parsePointList_();if(this.match(qr.RIGHT_PAREN))return e}throw new Error(this.formatErrorMessage_())},r.prototype.parsePolygonText_=function(){if(this.match(qr.LEFT_PAREN)){var e=this.parseLineStringTextList_();if(this.match(qr.RIGHT_PAREN))return e}throw new Error(this.formatErrorMessage_())},r.prototype.parseMultiPointText_=function(){if(this.match(qr.LEFT_PAREN)){var e=void 0;if(this.token_.type==qr.LEFT_PAREN?e=this.parsePointTextList_():e=this.parsePointList_(),this.match(qr.RIGHT_PAREN))return e}throw new Error(this.formatErrorMessage_())},r.prototype.parseMultiLineStringText_=function(){if(this.match(qr.LEFT_PAREN)){var e=this.parseLineStringTextList_();if(this.match(qr.RIGHT_PAREN))return e}throw new Error(this.formatErrorMessage_())},r.prototype.parseMultiPolygonText_=function(){if(this.match(qr.LEFT_PAREN)){var e=this.parsePolygonTextList_();if(this.match(qr.RIGHT_PAREN))return e}throw new Error(this.formatErrorMessage_())},r.prototype.parsePoint_=function(){for(var e=[],t=this.layout_.length,n=0;n<t;++n){var i=this.token_;if(this.match(qr.NUMBER))e.push(i.value);else break}if(e.length==t)return e;throw new Error(this.formatErrorMessage_())},r.prototype.parsePointList_=function(){for(var e=[this.parsePoint_()];this.match(qr.COMMA);)e.push(this.parsePoint_());return e},r.prototype.parsePointTextList_=function(){for(var e=[this.parsePointText_()];this.match(qr.COMMA);)e.push(this.parsePointText_());return e},r.prototype.parseLineStringTextList_=function(){for(var e=[this.parseLineStringText_()];this.match(qr.COMMA);)e.push(this.parseLineStringText_());return e},r.prototype.parsePolygonTextList_=function(){for(var e=[this.parsePolygonText_()];this.match(qr.COMMA);)e.push(this.parsePolygonText_());return e},r.prototype.isEmptyGeometry_=function(){var e=this.isTokenType(qr.TEXT)&&this.token_.value==iH;return e&&this.consume_(),e},r.prototype.formatErrorMessage_=function(){return"Unexpected `"+this.token_.value+"` at position "+this.token_.position+" in `"+this.lexer_.wkt+"`"},r.prototype.parseGeometry_=function(){var e=this.token_;if(this.match(qr.TEXT)){var t=e.value;this.layout_=this.parseGeometryLayout_();var n=this.isEmptyGeometry_();if(t=="GEOMETRYCOLLECTION"){if(n)return new wa([]);var i=this.parseGeometryCollectionText_();return new wa(i)}else{var a=fdt[t];if(!a)throw new Error("Invalid geometry type: "+t);var o=void 0;if(n)t=="POINT"?o=[NaN,NaN]:o=[];else switch(t){case"POINT":{o=this.parsePointText_();break}case"LINESTRING":{o=this.parseLineStringText_();break}case"POLYGON":{o=this.parsePolygonText_();break}case"MULTIPOINT":{o=this.parseMultiPointText_();break}case"MULTILINESTRING":{o=this.parseMultiLineStringText_();break}case"MULTIPOLYGON":{o=this.parseMultiPolygonText_();break}}return new a(o,this.layout_)}}throw new Error(this.formatErrorMessage_())},r}(),mdt=function(r){hdt(e,r);function e(t){var n=r.call(this)||this,i=t||{};return n.splitCollection_=i.splitCollection!==void 0?i.splitCollection:!1,n}return e.prototype.parse_=function(t){var n=new vdt(t),i=new gdt(n);return i.parse()},e.prototype.readFeatureFromText=function(t,n){var i=this.readGeometryFromText(t,n),a=new yr;return a.setGeometry(i),a},e.prototype.readFeaturesFromText=function(t,n){var i=[],a=this.readGeometryFromText(t,n);this.splitCollection_&&a.getType()==dt.GEOMETRY_COLLECTION?i=a.getGeometriesArray():i=[a];for(var o=[],s=0,A=i.length;s<A;++s){var l=new yr;l.setGeometry(i[s]),o.push(l)}return o},e.prototype.readGeometryFromText=function(t,n){var i=this.parse_(t);return Qn(i,!1,n)},e.prototype.writeFeatureText=function(t,n){var i=t.getGeometry();return i?this.writeGeometryText(i,n):""},e.prototype.writeFeaturesText=function(t,n){if(t.length==1)return this.writeFeatureText(t[0],n);for(var i=[],a=0,o=t.length;a<o;++a)i.push(t[a].getGeometry());var s=new wa(i);return this.writeGeometryText(s,n)},e.prototype.writeGeometryText=function(t,n){return lH(Qn(t,!0,n))},e}(oO);function sH(r){var e=r.getCoordinates();return e.length===0?"":e.join(" ")}function ydt(r){for(var e=[],t=r.getPoints(),n=0,i=t.length;n<i;++n)e.push("("+sH(t[n])+")");return e.join(",")}function _dt(r){for(var e=[],t=r.getGeometries(),n=0,i=t.length;n<i;++n)e.push(lH(t[n]));return e.join(",")}function yO(r){for(var e=r.getCoordinates(),t=[],n=0,i=e.length;n<i;++n)t.push(e[n].join(" "));return t.join(",")}function wdt(r){for(var e=[],t=r.getLineStrings(),n=0,i=t.length;n<i;++n)e.push("("+yO(t[n])+")");return e.join(",")}function AH(r){for(var e=[],t=r.getLinearRings(),n=0,i=t.length;n<i;++n)e.push("("+yO(t[n])+")");return e.join(",")}function Edt(r){for(var e=[],t=r.getPolygons(),n=0,i=t.length;n<i;++n)e.push("("+AH(t[n])+")");return e.join(",")}function Cdt(r){var e=r.getLayout(),t="";return(e===ae.XYZ||e===ae.XYZM)&&(t+=aH),(e===ae.XYM||e===ae.XYZM)&&(t+=oH),t}var Bdt={Point:sH,LineString:yO,Polygon:AH,MultiPoint:ydt,MultiLineString:wdt,MultiPolygon:Edt,GeometryCollection:_dt};function lH(r){var e=r.getType(),t=Bdt[e],n=t(r);if(e=e.toUpperCase(),typeof r.getFlatCoordinates=="function"){var i=Cdt(r);i.length>0&&(e+=" "+i)}return n.length===0?e+" "+iH:e+"("+n+")"}var Tdt=mdt,bdt=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Ba=[null,"http://www.opengis.net/wms"],Sdt=kt(Ba,{Service:pt(Wdt),Capability:pt(Ydt)}),xdt=kt(Ba,{Request:pt(evt),Exception:pt(Zdt),Layer:pt(Jdt)}),Idt=function(r){bdt(e,r);function e(){var t=r.call(this)||this;return t.version=void 0,t}return e.prototype.readFromNode=function(t){this.version=t.getAttribute("version").trim();var n=Kt({version:this.version},Sdt,t,[]);return n||null},e}(cO),Ldt=kt(Ba,{Name:pt(Xt),Title:pt(Xt),Abstract:pt(Xt),KeywordList:pt(fH),OnlineResource:pt(Pv),ContactInformation:pt(zdt),Fees:pt(Xt),AccessConstraints:pt(Xt),LayerLimit:pt(Bi),MaxWidth:pt(Bi),MaxHeight:pt(Bi)}),Fdt=kt(Ba,{ContactPersonPrimary:pt(Xdt),ContactPosition:pt(Xt),ContactAddress:pt(qdt),ContactVoiceTelephone:pt(Xt),ContactFacsimileTelephone:pt(Xt),ContactElectronicMailAddress:pt(Xt)}),Odt=kt(Ba,{ContactPerson:pt(Xt),ContactOrganization:pt(Xt)}),Rdt=kt(Ba,{AddressType:pt(Xt),Address:pt(Xt),City:pt(Xt),StateOrProvince:pt(Xt),PostCode:pt(Xt),Country:pt(Xt)}),Mdt=kt(Ba,{Format:Ie(Xt)}),uH=kt(Ba,{Name:pt(Xt),Title:pt(Xt),Abstract:pt(Xt),KeywordList:pt(fH),CRS:bn(Xt),EX_GeographicBoundingBox:pt(Kdt),BoundingBox:bn(jdt),Dimension:bn(tvt),Attribution:pt(Vdt),AuthorityURL:bn(ivt),Identifier:bn(Xt),MetadataURL:bn(avt),DataURL:bn(du),FeatureListURL:bn(du),Style:bn(ovt),MinScaleDenominator:pt($r),MaxScaleDenominator:pt($r),Layer:bn(cH)}),Ndt=kt(Ba,{Title:pt(Xt),OnlineResource:pt(Pv),LogoURL:pt(hH)}),Pdt=kt(Ba,{westBoundLongitude:pt($r),eastBoundLongitude:pt($r),southBoundLatitude:pt($r),northBoundLatitude:pt($r)}),Udt=kt(Ba,{GetCapabilities:pt(uT),GetMap:pt(uT),GetFeatureInfo:pt(uT)}),Ddt=kt(Ba,{Format:bn(Xt),DCPType:bn(rvt)}),Qdt=kt(Ba,{HTTP:pt(nvt)}),kdt=kt(Ba,{Get:pt(du),Post:pt(du)}),Hdt=kt(Ba,{Name:pt(Xt),Title:pt(Xt),Abstract:pt(Xt),LegendURL:bn(hH),StyleSheetURL:pt(du),StyleURL:pt(du)}),Gdt=kt(Ba,{Format:pt(Xt),OnlineResource:pt(Pv)}),$dt=kt(Ba,{Keyword:Ie(Xt)});function Vdt(r,e){return Kt({},Ndt,r,e)}function jdt(r,e){var t=[tu(r.getAttribute("minx")),tu(r.getAttribute("miny")),tu(r.getAttribute("maxx")),tu(r.getAttribute("maxy"))],n=[tu(r.getAttribute("resx")),tu(r.getAttribute("resy"))];return{crs:r.getAttribute("CRS"),extent:t,res:n}}function Kdt(r,e){var t=Kt({},Pdt,r,e);if(t){var n=t.westBoundLongitude,i=t.southBoundLatitude,a=t.eastBoundLongitude,o=t.northBoundLatitude;if(!(n===void 0||i===void 0||a===void 0||o===void 0))return[n,i,a,o]}}function Ydt(r,e){return Kt({},xdt,r,e)}function Wdt(r,e){return Kt({},Ldt,r,e)}function zdt(r,e){return Kt({},Fdt,r,e)}function Xdt(r,e){return Kt({},Odt,r,e)}function qdt(r,e){return Kt({},Rdt,r,e)}function Zdt(r,e){return Kt([],Mdt,r,e)}function Jdt(r,e){var t=Kt({},uH,r,e);return t.Layer===void 0?Object.assign(t,cH(r,e)):t}function cH(r,e){var t=e[e.length-1],n=Kt({},uH,r,e);if(n){var i=Bf(r.getAttribute("queryable"));i===void 0&&(i=t.queryable),n.queryable=i!==void 0?i:!1;var a=nu(r.getAttribute("cascaded"));a===void 0&&(a=t.cascaded),n.cascaded=a;var o=Bf(r.getAttribute("opaque"));o===void 0&&(o=t.opaque),n.opaque=o!==void 0?o:!1;var s=Bf(r.getAttribute("noSubsets"));s===void 0&&(s=t.noSubsets),n.noSubsets=s!==void 0?s:!1;var A=tu(r.getAttribute("fixedWidth"));A||(A=t.fixedWidth),n.fixedWidth=A;var l=tu(r.getAttribute("fixedHeight"));l||(l=t.fixedHeight),n.fixedHeight=l;var u=["Style","CRS","AuthorityURL"];u.forEach(function(h){if(h in t){var f=n[h]||[];n[h]=f.concat(t[h])}});var c=["EX_GeographicBoundingBox","BoundingBox","Dimension","Attribution","MinScaleDenominator","MaxScaleDenominator"];return c.forEach(function(h){if(!(h in n)){var f=t[h];n[h]=f}}),n}}function tvt(r,e){var t={name:r.getAttribute("name"),units:r.getAttribute("units"),unitSymbol:r.getAttribute("unitSymbol"),default:r.getAttribute("default"),multipleValues:Bf(r.getAttribute("multipleValues")),nearestValue:Bf(r.getAttribute("nearestValue")),current:Bf(r.getAttribute("current")),values:Xt(r)};return t}function du(r,e){return Kt({},Gdt,r,e)}function evt(r,e){return Kt({},Udt,r,e)}function rvt(r,e){return Kt({},Qdt,r,e)}function nvt(r,e){return Kt({},kdt,r,e)}function uT(r,e){return Kt({},Ddt,r,e)}function hH(r,e){var t=du(r,e);if(t){var n=[nu(r.getAttribute("width")),nu(r.getAttribute("height"))];return t.size=n,t}}function ivt(r,e){var t=du(r,e);if(t)return t.name=r.getAttribute("name"),t}function avt(r,e){var t=du(r,e);if(t)return t.type=r.getAttribute("type"),t}function ovt(r,e){return Kt({},Hdt,r,e)}function fH(r,e){return Kt([],$dt,r,e)}var svt=Idt,Avt=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),lvt="_feature",uvt="_layer",cvt=function(r){Avt(e,r);function e(t){var n=r.call(this)||this,i=t||{};return n.featureNS_="http://mapserver.gis.umn.edu/mapserver",n.gmlFormat_=new Nv,n.layers_=i.layers?i.layers:null,n}return e.prototype.getLayers=function(){return this.layers_},e.prototype.setLayers=function(t){this.layers_=t},e.prototype.readFeatures_=function(t,n){t.setAttribute("namespaceURI",this.featureNS_);var i=t.localName,a=[];if(t.childNodes.length===0)return a;if(i=="msGMLOutput")for(var o=0,s=t.childNodes.length;o<s;o++){var A=t.childNodes[o];if(A.nodeType===Node.ELEMENT_NODE){var l=A,u=n[0],c=uvt,h=l.localName.replace(c,"");if(!(this.layers_&&!Ri(this.layers_,h))){var f=h+lvt;u.featureType=f,u.featureNS=this.featureNS_;var p={};p[f]=Ie(this.gmlFormat_.readFeatureElement,this.gmlFormat_);var v=kt([u.featureNS,null],p);l.setAttribute("namespaceURI",this.featureNS_);var m=Kt([],v,l,n,this.gmlFormat_);m&&Jr(a,m)}}}if(i=="FeatureCollection"){var g=Kt([],this.gmlFormat_.FEATURE_COLLECTION_PARSERS,t,[{}],this.gmlFormat_);g&&(a=g)}return a},e.prototype.readFeaturesFromNode=function(t,n){var i={};return n&&Ce(i,this.getReadOptions(t,n)),this.readFeatures_(t,[i])},e}(t0),hvt=cvt,fvt=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),gl=[null,"http://www.opengis.net/wmts/1.0"],Dv=[null,"http://www.opengis.net/ows/1.1"],pvt=kt(gl,{Contents:pt(bvt)}),dvt=function(r){fvt(e,r);function e(){var t=r.call(this)||this;return t.owsParser_=new Zk,t}return e.prototype.readFromNode=function(t){var n=t.getAttribute("version");n&&(n=n.trim());var i=this.owsParser_.readFromNode(t);return i?(i.version=n,i=Kt(i,pvt,t,[]),i||null):null},e}(cO),vvt=kt(gl,{Layer:bn(Svt),TileMatrixSet:bn(xvt)}),gvt=kt(gl,{Style:bn(Ivt),Format:bn(Xt),TileMatrixSetLink:bn(Lvt),Dimension:bn(Fvt),ResourceURL:bn(Ovt)},kt(Dv,{Title:pt(Xt),Abstract:pt(Xt),WGS84BoundingBox:pt(pH),Identifier:pt(Xt)})),mvt=kt(gl,{LegendURL:bn(Rvt)},kt(Dv,{Title:pt(Xt),Identifier:pt(Xt)})),yvt=kt(gl,{TileMatrixSet:pt(Xt),TileMatrixSetLimits:pt(Nvt)}),_vt=kt(gl,{TileMatrixLimits:Ie(Pvt)}),wvt=kt(gl,{TileMatrix:pt(Xt),MinTileRow:pt(Bi),MaxTileRow:pt(Bi),MinTileCol:pt(Bi),MaxTileCol:pt(Bi)}),Evt=kt(gl,{Default:pt(Xt),Value:bn(Xt)},kt(Dv,{Identifier:pt(Xt)})),Cvt=kt(Dv,{LowerCorner:Ie(Yx),UpperCorner:Ie(Yx)}),Bvt=kt(gl,{WellKnownScaleSet:pt(Xt),TileMatrix:bn(Mvt)},kt(Dv,{SupportedCRS:pt(Xt),Identifier:pt(Xt),BoundingBox:pt(pH)})),Tvt=kt(gl,{TopLeftCorner:pt(Yx),ScaleDenominator:pt($r),TileWidth:pt(Bi),TileHeight:pt(Bi),MatrixWidth:pt(Bi),MatrixHeight:pt(Bi)},kt(Dv,{Identifier:pt(Xt)}));function bvt(r,e){return Kt({},vvt,r,e)}function Svt(r,e){return Kt({},gvt,r,e)}function xvt(r,e){return Kt({},Bvt,r,e)}function Ivt(r,e){var t=Kt({},mvt,r,e);if(t){var n=r.getAttribute("isDefault")==="true";return t.isDefault=n,t}}function Lvt(r,e){return Kt({},yvt,r,e)}function Fvt(r,e){return Kt({},Evt,r,e)}function Ovt(r,e){var t=r.getAttribute("format"),n=r.getAttribute("template"),i=r.getAttribute("resourceType"),a={};return t&&(a.format=t),n&&(a.template=n),i&&(a.resourceType=i),a}function pH(r,e){var t=Kt([],Cvt,r,e);if(t.length==2)return ia(t)}function Rvt(r,e){var t={};return t.format=r.getAttribute("format"),t.href=Pv(r),t}function Yx(r,e){var t=Xt(r).split(/\s+/);if(!(!t||t.length!=2)){var n=+t[0],i=+t[1];if(!(isNaN(n)||isNaN(i)))return[n,i]}}function Mvt(r,e){return Kt({},Tvt,r,e)}function Nvt(r,e){return Kt([],_vt,r,e)}function Pvt(r,e){return Kt({},wvt,r,e)}var Uvt=dvt,Dvt=Object.freeze(Object.defineProperty({__proto__:null,EsriJSON:Jlt,GeoJSON:vut,GML:Fut,GPX:cct,IGC:_ct,IIIFInfo:yat,KML:aft,MVT:Fft,OWS:Zk,Polyline:wpt,TopoJSON:Mpt,WFS:adt,WKB:cdt,WKT:Tdt,WMSCapabilities:svt,WMSGetFeatureInfo:hvt,WMTSCapabilities:Uvt},Symbol.toStringTag,{value:"Module"}));function Wx(r){if(Wx.installed){console.error("OPENLAYERS MAP ALREADY INSTALLED");return}Wx.installed=!0,r.use(fnt),r.use(Aot),r.use(Iot),r.use(BAt),r.use(UAt),r.use(ZAt),r.use(flt),r.use(Flt),r.provide("ol-feature",yr),r.provide("ol-geom",Mlt),r.provide("ol-animations",JW),r.provide("ol-format",Dvt),r.provide("ol-loadingstrategy",J3),r.provide("ol-selectconditions",OX),r.provide("ol-extent",xY)}/*!
|
||
* html2canvas 1.4.1 <https://html2canvas.hertzen.com>
|
||
* Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
|
||
* Released under MIT License
|
||
*//*! *****************************************************************************
|
||
Copyright (c) Microsoft Corporation.
|
||
|
||
Permission to use, copy, modify, and/or distribute this software for any
|
||
purpose with or without fee is hereby granted.
|
||
|
||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||
PERFORMANCE OF THIS SOFTWARE.
|
||
***************************************************************************** */var zx=function(r,e){return zx=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])},zx(r,e)};function BA(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");zx(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var Xx=function(){return Xx=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Xx.apply(this,arguments)};function io(r,e,t,n){function i(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(u){try{l(n.next(u))}catch(c){o(c)}}function A(u){try{l(n.throw(u))}catch(c){o(c)}}function l(u){u.done?a(u.value):i(u.value).then(s,A)}l((n=n.apply(r,e||[])).next())})}function Qa(r,e){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(l){return function(u){return A([l,u])}}function A(l){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,i&&(a=l[0]&2?i.return:l[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,l[1])).done)return a;switch(i=0,a&&(l=[l[0]&2,a.value]),l[0]){case 0:case 1:a=l;break;case 4:return t.label++,{value:l[1],done:!1};case 5:t.label++,i=l[1],l=[0];continue;case 7:l=t.ops.pop(),t.trys.pop();continue;default:if(a=t.trys,!(a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]<a[3])){t.label=l[1];break}if(l[0]===6&&t.label<a[1]){t.label=a[1],a=l;break}if(a&&t.label<a[2]){t.label=a[2],t.ops.push(l);break}a[2]&&t.ops.pop(),t.trys.pop();continue}l=e.call(r,t)}catch(u){l=[6,u],i=0}finally{n=a=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function y_(r,e,t){if(t||arguments.length===2)for(var n=0,i=e.length,a;n<i;n++)(a||!(n in e))&&(a||(a=Array.prototype.slice.call(e,0,n)),a[n]=e[n]);return r.concat(a||e)}var vu=function(){function r(e,t,n,i){this.left=e,this.top=t,this.width=n,this.height=i}return r.prototype.add=function(e,t,n,i){return new r(this.left+e,this.top+t,this.width+n,this.height+i)},r.fromClientRect=function(e,t){return new r(t.left+e.windowBounds.left,t.top+e.windowBounds.top,t.width,t.height)},r.fromDOMRectList=function(e,t){var n=Array.from(t).find(function(i){return i.width!==0});return n?new r(n.left+e.windowBounds.left,n.top+e.windowBounds.top,n.width,n.height):r.EMPTY},r.EMPTY=new r(0,0,0,0),r}(),oC=function(r,e){return vu.fromClientRect(r,e.getBoundingClientRect())},Qvt=function(r){var e=r.body,t=r.documentElement;if(!e||!t)throw new Error("Unable to get document size");var n=Math.max(Math.max(e.scrollWidth,t.scrollWidth),Math.max(e.offsetWidth,t.offsetWidth),Math.max(e.clientWidth,t.clientWidth)),i=Math.max(Math.max(e.scrollHeight,t.scrollHeight),Math.max(e.offsetHeight,t.offsetHeight),Math.max(e.clientHeight,t.clientHeight));return new vu(0,0,n,i)},sC=function(r){for(var e=[],t=0,n=r.length;t<n;){var i=r.charCodeAt(t++);if(i>=55296&&i<=56319&&t<n){var a=r.charCodeAt(t++);(a&64512)===56320?e.push(((i&1023)<<10)+(a&1023)+65536):(e.push(i),t--)}else e.push(i)}return e},yi=function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,r);var t=r.length;if(!t)return"";for(var n=[],i=-1,a="";++i<t;){var o=r[i];o<=65535?n.push(o):(o-=65536,n.push((o>>10)+55296,o%1024+56320)),(i+1===t||n.length>16384)&&(a+=String.fromCharCode.apply(String,n),n.length=0)}return a},JP="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",kvt=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var __=0;__<JP.length;__++)kvt[JP.charCodeAt(__)]=__;var t5="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",om=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var w_=0;w_<t5.length;w_++)om[t5.charCodeAt(w_)]=w_;var Hvt=function(r){var e=r.length*.75,t=r.length,n,i=0,a,o,s,A;r[r.length-1]==="="&&(e--,r[r.length-2]==="="&&e--);var l=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(e):new Array(e),u=Array.isArray(l)?l:new Uint8Array(l);for(n=0;n<t;n+=4)a=om[r.charCodeAt(n)],o=om[r.charCodeAt(n+1)],s=om[r.charCodeAt(n+2)],A=om[r.charCodeAt(n+3)],u[i++]=a<<2|o>>4,u[i++]=(o&15)<<4|s>>2,u[i++]=(s&3)<<6|A&63;return l},Gvt=function(r){for(var e=r.length,t=[],n=0;n<e;n+=2)t.push(r[n+1]<<8|r[n]);return t},$vt=function(r){for(var e=r.length,t=[],n=0;n<e;n+=4)t.push(r[n+3]<<24|r[n+2]<<16|r[n+1]<<8|r[n]);return t},Tf=5,_O=6+5,cT=2,Vvt=_O-Tf,dH=65536>>Tf,jvt=1<<Tf,hT=jvt-1,Kvt=1024>>Tf,Yvt=dH+Kvt,Wvt=Yvt,zvt=32,Xvt=Wvt+zvt,qvt=65536>>_O,Zvt=1<<Vvt,Jvt=Zvt-1,e5=function(r,e,t){return r.slice?r.slice(e,t):new Uint16Array(Array.prototype.slice.call(r,e,t))},tgt=function(r,e,t){return r.slice?r.slice(e,t):new Uint32Array(Array.prototype.slice.call(r,e,t))},egt=function(r,e){var t=Hvt(r),n=Array.isArray(t)?$vt(t):new Uint32Array(t),i=Array.isArray(t)?Gvt(t):new Uint16Array(t),a=24,o=e5(i,a/2,n[4]/2),s=n[5]===2?e5(i,(a+n[4])/2):tgt(n,Math.ceil((a+n[4])/4));return new rgt(n[0],n[1],n[2],n[3],o,s)},rgt=function(){function r(e,t,n,i,a,o){this.initialValue=e,this.errorValue=t,this.highStart=n,this.highValueIndex=i,this.index=a,this.data=o}return r.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=this.index[e>>Tf],t=(t<<cT)+(e&hT),this.data[t];if(e<=65535)return t=this.index[dH+(e-55296>>Tf)],t=(t<<cT)+(e&hT),this.data[t];if(e<this.highStart)return t=Xvt-qvt+(e>>_O),t=this.index[t],t+=e>>Tf&Jvt,t=this.index[t],t=(t<<cT)+(e&hT),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},r}(),r5="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ngt=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var E_=0;E_<r5.length;E_++)ngt[r5.charCodeAt(E_)]=E_;var igt="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",n5=50,agt=1,vH=2,gH=3,ogt=4,sgt=5,i5=7,mH=8,a5=9,Sc=10,qx=11,o5=12,Zx=13,Agt=14,sm=15,Jx=16,C_=17,Pg=18,lgt=19,s5=20,tI=21,Ug=22,fT=23,Jp=24,as=25,Am=26,lm=27,td=28,ugt=29,nf=30,cgt=31,B_=32,T_=33,eI=34,rI=35,nI=36,gy=37,iI=38,C1=39,B1=40,pT=41,yH=42,hgt=43,fgt=[9001,65288],_H="!",Fr="×",b_="÷",aI=egt(igt),$l=[nf,nI],oI=[agt,vH,gH,sgt],wH=[Sc,mH],A5=[lm,Am],pgt=oI.concat(wH),l5=[iI,C1,B1,eI,rI],dgt=[sm,Zx],vgt=function(r,e){e===void 0&&(e="strict");var t=[],n=[],i=[];return r.forEach(function(a,o){var s=aI.get(a);if(s>n5?(i.push(!0),s-=n5):i.push(!1),["normal","auto","loose"].indexOf(e)!==-1&&[8208,8211,12316,12448].indexOf(a)!==-1)return n.push(o),t.push(Jx);if(s===ogt||s===qx){if(o===0)return n.push(o),t.push(nf);var A=t[o-1];return pgt.indexOf(A)===-1?(n.push(n[o-1]),t.push(A)):(n.push(o),t.push(nf))}if(n.push(o),s===cgt)return t.push(e==="strict"?tI:gy);if(s===yH||s===ugt)return t.push(nf);if(s===hgt)return a>=131072&&a<=196605||a>=196608&&a<=262141?t.push(gy):t.push(nf);t.push(s)}),[n,t,i]},dT=function(r,e,t,n){var i=n[t];if(Array.isArray(r)?r.indexOf(i)!==-1:r===i)for(var a=t;a<=n.length;){a++;var o=n[a];if(o===e)return!0;if(o!==Sc)break}if(i===Sc)for(var a=t;a>0;){a--;var s=n[a];if(Array.isArray(r)?r.indexOf(s)!==-1:r===s)for(var A=t;A<=n.length;){A++;var o=n[A];if(o===e)return!0;if(o!==Sc)break}if(s!==Sc)break}return!1},u5=function(r,e){for(var t=r;t>=0;){var n=e[t];if(n===Sc)t--;else return n}return 0},ggt=function(r,e,t,n,i){if(t[n]===0)return Fr;var a=n-1;if(Array.isArray(i)&&i[a]===!0)return Fr;var o=a-1,s=a+1,A=e[a],l=o>=0?e[o]:0,u=e[s];if(A===vH&&u===gH)return Fr;if(oI.indexOf(A)!==-1)return _H;if(oI.indexOf(u)!==-1||wH.indexOf(u)!==-1)return Fr;if(u5(a,e)===mH)return b_;if(aI.get(r[a])===qx||(A===B_||A===T_)&&aI.get(r[s])===qx||A===i5||u===i5||A===a5||[Sc,Zx,sm].indexOf(A)===-1&&u===a5||[C_,Pg,lgt,Jp,td].indexOf(u)!==-1||u5(a,e)===Ug||dT(fT,Ug,a,e)||dT([C_,Pg],tI,a,e)||dT(o5,o5,a,e))return Fr;if(A===Sc)return b_;if(A===fT||u===fT)return Fr;if(u===Jx||A===Jx)return b_;if([Zx,sm,tI].indexOf(u)!==-1||A===Agt||l===nI&&dgt.indexOf(A)!==-1||A===td&&u===nI||u===s5||$l.indexOf(u)!==-1&&A===as||$l.indexOf(A)!==-1&&u===as||A===lm&&[gy,B_,T_].indexOf(u)!==-1||[gy,B_,T_].indexOf(A)!==-1&&u===Am||$l.indexOf(A)!==-1&&A5.indexOf(u)!==-1||A5.indexOf(A)!==-1&&$l.indexOf(u)!==-1||[lm,Am].indexOf(A)!==-1&&(u===as||[Ug,sm].indexOf(u)!==-1&&e[s+1]===as)||[Ug,sm].indexOf(A)!==-1&&u===as||A===as&&[as,td,Jp].indexOf(u)!==-1)return Fr;if([as,td,Jp,C_,Pg].indexOf(u)!==-1)for(var c=a;c>=0;){var h=e[c];if(h===as)return Fr;if([td,Jp].indexOf(h)!==-1)c--;else break}if([lm,Am].indexOf(u)!==-1)for(var c=[C_,Pg].indexOf(A)!==-1?o:a;c>=0;){var h=e[c];if(h===as)return Fr;if([td,Jp].indexOf(h)!==-1)c--;else break}if(iI===A&&[iI,C1,eI,rI].indexOf(u)!==-1||[C1,eI].indexOf(A)!==-1&&[C1,B1].indexOf(u)!==-1||[B1,rI].indexOf(A)!==-1&&u===B1||l5.indexOf(A)!==-1&&[s5,Am].indexOf(u)!==-1||l5.indexOf(u)!==-1&&A===lm||$l.indexOf(A)!==-1&&$l.indexOf(u)!==-1||A===Jp&&$l.indexOf(u)!==-1||$l.concat(as).indexOf(A)!==-1&&u===Ug&&fgt.indexOf(r[s])===-1||$l.concat(as).indexOf(u)!==-1&&A===Pg)return Fr;if(A===pT&&u===pT){for(var f=t[a],p=1;f>0&&(f--,e[f]===pT);)p++;if(p%2!==0)return Fr}return A===B_&&u===T_?Fr:b_},mgt=function(r,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var t=vgt(r,e.lineBreak),n=t[0],i=t[1],a=t[2];(e.wordBreak==="break-all"||e.wordBreak==="break-word")&&(i=i.map(function(s){return[as,nf,yH].indexOf(s)!==-1?gy:s}));var o=e.wordBreak==="keep-all"?a.map(function(s,A){return s&&r[A]>=19968&&r[A]<=40959}):void 0;return[n,i,o]},ygt=function(){function r(e,t,n,i){this.codePoints=e,this.required=t===_H,this.start=n,this.end=i}return r.prototype.slice=function(){return yi.apply(void 0,this.codePoints.slice(this.start,this.end))},r}(),_gt=function(r,e){var t=sC(r),n=mgt(t,e),i=n[0],a=n[1],o=n[2],s=t.length,A=0,l=0;return{next:function(){if(l>=s)return{done:!0,value:null};for(var u=Fr;l<s&&(u=ggt(t,a,i,++l,o))===Fr;);if(u!==Fr||l===s){var c=new ygt(t,u,A,l);return A=l,{value:c,done:!1}}return{done:!0,value:null}}}},wgt=1<<0,Egt=1<<1,e0=1<<2,c5=1<<3,Fw=10,h5=47,Om=92,Cgt=9,Bgt=32,S_=34,Dg=61,Tgt=35,bgt=36,Sgt=37,x_=39,I_=40,Qg=41,xgt=95,Fo=45,Igt=33,Lgt=60,Fgt=62,Ogt=64,Rgt=91,Mgt=93,Ngt=61,Pgt=123,L_=63,Ugt=125,f5=124,Dgt=126,Qgt=128,p5=65533,vT=42,cf=43,kgt=44,Hgt=58,Ggt=59,my=46,$gt=0,Vgt=8,jgt=11,Kgt=14,Ygt=31,Wgt=127,GA=-1,EH=48,CH=97,BH=101,zgt=102,Xgt=117,qgt=122,TH=65,bH=69,SH=70,Zgt=85,Jgt=90,Ha=function(r){return r>=EH&&r<=57},tmt=function(r){return r>=55296&&r<=57343},ed=function(r){return Ha(r)||r>=TH&&r<=SH||r>=CH&&r<=zgt},emt=function(r){return r>=CH&&r<=qgt},rmt=function(r){return r>=TH&&r<=Jgt},nmt=function(r){return emt(r)||rmt(r)},imt=function(r){return r>=Qgt},F_=function(r){return r===Fw||r===Cgt||r===Bgt},Ow=function(r){return nmt(r)||imt(r)||r===xgt},d5=function(r){return Ow(r)||Ha(r)||r===Fo},amt=function(r){return r>=$gt&&r<=Vgt||r===jgt||r>=Kgt&&r<=Ygt||r===Wgt},gc=function(r,e){return r!==Om?!1:e!==Fw},O_=function(r,e,t){return r===Fo?Ow(e)||gc(e,t):Ow(r)?!0:!!(r===Om&&gc(r,e))},gT=function(r,e,t){return r===cf||r===Fo?Ha(e)?!0:e===my&&Ha(t):Ha(r===my?e:r)},omt=function(r){var e=0,t=1;(r[e]===cf||r[e]===Fo)&&(r[e]===Fo&&(t=-1),e++);for(var n=[];Ha(r[e]);)n.push(r[e++]);var i=n.length?parseInt(yi.apply(void 0,n),10):0;r[e]===my&&e++;for(var a=[];Ha(r[e]);)a.push(r[e++]);var o=a.length,s=o?parseInt(yi.apply(void 0,a),10):0;(r[e]===bH||r[e]===BH)&&e++;var A=1;(r[e]===cf||r[e]===Fo)&&(r[e]===Fo&&(A=-1),e++);for(var l=[];Ha(r[e]);)l.push(r[e++]);var u=l.length?parseInt(yi.apply(void 0,l),10):0;return t*(i+s*Math.pow(10,-o))*Math.pow(10,A*u)},smt={type:2},Amt={type:3},lmt={type:4},umt={type:13},cmt={type:8},hmt={type:21},fmt={type:9},pmt={type:10},dmt={type:11},vmt={type:12},gmt={type:14},R_={type:23},mmt={type:1},ymt={type:25},_mt={type:24},wmt={type:26},Emt={type:27},Cmt={type:28},Bmt={type:29},Tmt={type:31},sI={type:32},xH=function(){function r(){this._value=[]}return r.prototype.write=function(e){this._value=this._value.concat(sC(e))},r.prototype.read=function(){for(var e=[],t=this.consumeToken();t!==sI;)e.push(t),t=this.consumeToken();return e},r.prototype.consumeToken=function(){var e=this.consumeCodePoint();switch(e){case S_:return this.consumeStringToken(S_);case Tgt:var t=this.peekCodePoint(0),n=this.peekCodePoint(1),i=this.peekCodePoint(2);if(d5(t)||gc(n,i)){var a=O_(t,n,i)?Egt:wgt,o=this.consumeName();return{type:5,value:o,flags:a}}break;case bgt:if(this.peekCodePoint(0)===Dg)return this.consumeCodePoint(),umt;break;case x_:return this.consumeStringToken(x_);case I_:return smt;case Qg:return Amt;case vT:if(this.peekCodePoint(0)===Dg)return this.consumeCodePoint(),gmt;break;case cf:if(gT(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case kgt:return lmt;case Fo:var s=e,A=this.peekCodePoint(0),l=this.peekCodePoint(1);if(gT(s,A,l))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(O_(s,A,l))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(A===Fo&&l===Fgt)return this.consumeCodePoint(),this.consumeCodePoint(),_mt;break;case my:if(gT(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case h5:if(this.peekCodePoint(0)===vT)for(this.consumeCodePoint();;){var u=this.consumeCodePoint();if(u===vT&&(u=this.consumeCodePoint(),u===h5))return this.consumeToken();if(u===GA)return this.consumeToken()}break;case Hgt:return wmt;case Ggt:return Emt;case Lgt:if(this.peekCodePoint(0)===Igt&&this.peekCodePoint(1)===Fo&&this.peekCodePoint(2)===Fo)return this.consumeCodePoint(),this.consumeCodePoint(),ymt;break;case Ogt:var c=this.peekCodePoint(0),h=this.peekCodePoint(1),f=this.peekCodePoint(2);if(O_(c,h,f)){var o=this.consumeName();return{type:7,value:o}}break;case Rgt:return Cmt;case Om:if(gc(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case Mgt:return Bmt;case Ngt:if(this.peekCodePoint(0)===Dg)return this.consumeCodePoint(),cmt;break;case Pgt:return dmt;case Ugt:return vmt;case Xgt:case Zgt:var p=this.peekCodePoint(0),v=this.peekCodePoint(1);return p===cf&&(ed(v)||v===L_)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken();case f5:if(this.peekCodePoint(0)===Dg)return this.consumeCodePoint(),fmt;if(this.peekCodePoint(0)===f5)return this.consumeCodePoint(),hmt;break;case Dgt:if(this.peekCodePoint(0)===Dg)return this.consumeCodePoint(),pmt;break;case GA:return sI}return F_(e)?(this.consumeWhiteSpace(),Tmt):Ha(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):Ow(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:6,value:yi(e)}},r.prototype.consumeCodePoint=function(){var e=this._value.shift();return typeof e>"u"?-1:e},r.prototype.reconsumeCodePoint=function(e){this._value.unshift(e)},r.prototype.peekCodePoint=function(e){return e>=this._value.length?-1:this._value[e]},r.prototype.consumeUnicodeRangeToken=function(){for(var e=[],t=this.consumeCodePoint();ed(t)&&e.length<6;)e.push(t),t=this.consumeCodePoint();for(var n=!1;t===L_&&e.length<6;)e.push(t),t=this.consumeCodePoint(),n=!0;if(n){var i=parseInt(yi.apply(void 0,e.map(function(A){return A===L_?EH:A})),16),a=parseInt(yi.apply(void 0,e.map(function(A){return A===L_?SH:A})),16);return{type:30,start:i,end:a}}var o=parseInt(yi.apply(void 0,e),16);if(this.peekCodePoint(0)===Fo&&ed(this.peekCodePoint(1))){this.consumeCodePoint(),t=this.consumeCodePoint();for(var s=[];ed(t)&&s.length<6;)s.push(t),t=this.consumeCodePoint();var a=parseInt(yi.apply(void 0,s),16);return{type:30,start:o,end:a}}else return{type:30,start:o,end:o}},r.prototype.consumeIdentLikeToken=function(){var e=this.consumeName();return e.toLowerCase()==="url"&&this.peekCodePoint(0)===I_?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===I_?(this.consumeCodePoint(),{type:19,value:e}):{type:20,value:e}},r.prototype.consumeUrlToken=function(){var e=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===GA)return{type:22,value:""};var t=this.peekCodePoint(0);if(t===x_||t===S_){var n=this.consumeStringToken(this.consumeCodePoint());return n.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===GA||this.peekCodePoint(0)===Qg)?(this.consumeCodePoint(),{type:22,value:n.value}):(this.consumeBadUrlRemnants(),R_)}for(;;){var i=this.consumeCodePoint();if(i===GA||i===Qg)return{type:22,value:yi.apply(void 0,e)};if(F_(i))return this.consumeWhiteSpace(),this.peekCodePoint(0)===GA||this.peekCodePoint(0)===Qg?(this.consumeCodePoint(),{type:22,value:yi.apply(void 0,e)}):(this.consumeBadUrlRemnants(),R_);if(i===S_||i===x_||i===I_||amt(i))return this.consumeBadUrlRemnants(),R_;if(i===Om)if(gc(i,this.peekCodePoint(0)))e.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),R_;else e.push(i)}},r.prototype.consumeWhiteSpace=function(){for(;F_(this.peekCodePoint(0));)this.consumeCodePoint()},r.prototype.consumeBadUrlRemnants=function(){for(;;){var e=this.consumeCodePoint();if(e===Qg||e===GA)return;gc(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},r.prototype.consumeStringSlice=function(e){for(var t=5e4,n="";e>0;){var i=Math.min(t,e);n+=yi.apply(void 0,this._value.splice(0,i)),e-=i}return this._value.shift(),n},r.prototype.consumeStringToken=function(e){var t="",n=0;do{var i=this._value[n];if(i===GA||i===void 0||i===e)return t+=this.consumeStringSlice(n),{type:0,value:t};if(i===Fw)return this._value.splice(0,n),mmt;if(i===Om){var a=this._value[n+1];a!==GA&&a!==void 0&&(a===Fw?(t+=this.consumeStringSlice(n),n=-1,this._value.shift()):gc(i,a)&&(t+=this.consumeStringSlice(n),t+=yi(this.consumeEscapedCodePoint()),n=-1))}n++}while(!0)},r.prototype.consumeNumber=function(){var e=[],t=e0,n=this.peekCodePoint(0);for((n===cf||n===Fo)&&e.push(this.consumeCodePoint());Ha(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0);var i=this.peekCodePoint(1);if(n===my&&Ha(i))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=c5;Ha(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0),i=this.peekCodePoint(1);var a=this.peekCodePoint(2);if((n===bH||n===BH)&&((i===cf||i===Fo)&&Ha(a)||Ha(i)))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=c5;Ha(this.peekCodePoint(0));)e.push(this.consumeCodePoint());return[omt(e),t]},r.prototype.consumeNumericToken=function(){var e=this.consumeNumber(),t=e[0],n=e[1],i=this.peekCodePoint(0),a=this.peekCodePoint(1),o=this.peekCodePoint(2);if(O_(i,a,o)){var s=this.consumeName();return{type:15,number:t,flags:n,unit:s}}return i===Sgt?(this.consumeCodePoint(),{type:16,number:t,flags:n}):{type:17,number:t,flags:n}},r.prototype.consumeEscapedCodePoint=function(){var e=this.consumeCodePoint();if(ed(e)){for(var t=yi(e);ed(this.peekCodePoint(0))&&t.length<6;)t+=yi(this.consumeCodePoint());F_(this.peekCodePoint(0))&&this.consumeCodePoint();var n=parseInt(t,16);return n===0||tmt(n)||n>1114111?p5:n}return e===GA?p5:e},r.prototype.consumeName=function(){for(var e="";;){var t=this.consumeCodePoint();if(d5(t))e+=yi(t);else if(gc(t,this.peekCodePoint(0)))e+=yi(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(t),e}},r}(),IH=function(){function r(e){this._tokens=e}return r.create=function(e){var t=new xH;return t.write(e),new r(t.read())},r.parseValue=function(e){return r.create(e).parseComponentValue()},r.parseValues=function(e){return r.create(e).parseComponentValues()},r.prototype.parseComponentValue=function(){for(var e=this.consumeToken();e.type===31;)e=this.consumeToken();if(e.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);var t=this.consumeComponentValue();do e=this.consumeToken();while(e.type===31);if(e.type===32)return t;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},r.prototype.parseComponentValues=function(){for(var e=[];;){var t=this.consumeComponentValue();if(t.type===32)return e;e.push(t),e.push()}},r.prototype.consumeComponentValue=function(){var e=this.consumeToken();switch(e.type){case 11:case 28:case 2:return this.consumeSimpleBlock(e.type);case 19:return this.consumeFunction(e)}return e},r.prototype.consumeSimpleBlock=function(e){for(var t={type:e,values:[]},n=this.consumeToken();;){if(n.type===32||Smt(n,e))return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue()),n=this.consumeToken()}},r.prototype.consumeFunction=function(e){for(var t={name:e.value,values:[],type:18};;){var n=this.consumeToken();if(n.type===32||n.type===3)return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue())}},r.prototype.consumeToken=function(){var e=this._tokens.shift();return typeof e>"u"?sI:e},r.prototype.reconsumeToken=function(e){this._tokens.unshift(e)},r}(),r0=function(r){return r.type===15},Qv=function(r){return r.type===17},wn=function(r){return r.type===20},bmt=function(r){return r.type===0},AI=function(r,e){return wn(r)&&r.value===e},LH=function(r){return r.type!==31},pv=function(r){return r.type!==31&&r.type!==4},ml=function(r){var e=[],t=[];return r.forEach(function(n){if(n.type===4){if(t.length===0)throw new Error("Error parsing function args, zero tokens for arg");e.push(t),t=[];return}n.type!==31&&t.push(n)}),t.length&&e.push(t),e},Smt=function(r,e){return e===11&&r.type===12||e===28&&r.type===29?!0:e===2&&r.type===3},eh=function(r){return r.type===17||r.type===15},Mi=function(r){return r.type===16||eh(r)},FH=function(r){return r.length>1?[r[0],r[1]]:[r[0]]},ya={type:17,number:0,flags:e0},wO={type:16,number:50,flags:e0},xc={type:16,number:100,flags:e0},um=function(r,e,t){var n=r[0],i=r[1];return[xn(n,e),xn(typeof i<"u"?i:n,t)]},xn=function(r,e){if(r.type===16)return r.number/100*e;if(r0(r))switch(r.unit){case"rem":case"em":return 16*r.number;case"px":default:return r.number}return r.number},OH="deg",RH="grad",MH="rad",NH="turn",AC={name:"angle",parse:function(r,e){if(e.type===15)switch(e.unit){case OH:return Math.PI*e.number/180;case RH:return Math.PI/200*e.number;case MH:return e.number;case NH:return Math.PI*2*e.number}throw new Error("Unsupported angle type")}},PH=function(r){return r.type===15&&(r.unit===OH||r.unit===RH||r.unit===MH||r.unit===NH)},UH=function(r){var e=r.filter(wn).map(function(t){return t.value}).join(" ");switch(e){case"to bottom right":case"to right bottom":case"left top":case"top left":return[ya,ya];case"to top":case"bottom":return Ms(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[ya,xc];case"to right":case"left":return Ms(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[xc,xc];case"to bottom":case"top":return Ms(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[xc,ya];case"to left":case"right":return Ms(270)}return 0},Ms=function(r){return Math.PI*r/180},Pc={name:"color",parse:function(r,e){if(e.type===18){var t=xmt[e.name];if(typeof t>"u")throw new Error('Attempting to parse an unsupported color function "'+e.name+'"');return t(r,e.values)}if(e.type===5){if(e.value.length===3){var n=e.value.substring(0,1),i=e.value.substring(1,2),a=e.value.substring(2,3);return Ic(parseInt(n+n,16),parseInt(i+i,16),parseInt(a+a,16),1)}if(e.value.length===4){var n=e.value.substring(0,1),i=e.value.substring(1,2),a=e.value.substring(2,3),o=e.value.substring(3,4);return Ic(parseInt(n+n,16),parseInt(i+i,16),parseInt(a+a,16),parseInt(o+o,16)/255)}if(e.value.length===6){var n=e.value.substring(0,2),i=e.value.substring(2,4),a=e.value.substring(4,6);return Ic(parseInt(n,16),parseInt(i,16),parseInt(a,16),1)}if(e.value.length===8){var n=e.value.substring(0,2),i=e.value.substring(2,4),a=e.value.substring(4,6),o=e.value.substring(6,8);return Ic(parseInt(n,16),parseInt(i,16),parseInt(a,16),parseInt(o,16)/255)}}if(e.type===20){var s=lu[e.value.toUpperCase()];if(typeof s<"u")return s}return lu.TRANSPARENT}},Uc=function(r){return(255&r)===0},ra=function(r){var e=255&r,t=255&r>>8,n=255&r>>16,i=255&r>>24;return e<255?"rgba("+i+","+n+","+t+","+e/255+")":"rgb("+i+","+n+","+t+")"},Ic=function(r,e,t,n){return(r<<24|e<<16|t<<8|Math.round(n*255)<<0)>>>0},v5=function(r,e){if(r.type===17)return r.number;if(r.type===16){var t=e===3?1:255;return e===3?r.number/100*t:Math.round(r.number/100*t)}return 0},g5=function(r,e){var t=e.filter(pv);if(t.length===3){var n=t.map(v5),i=n[0],a=n[1],o=n[2];return Ic(i,a,o,1)}if(t.length===4){var s=t.map(v5),i=s[0],a=s[1],o=s[2],A=s[3];return Ic(i,a,o,A)}return 0};function mT(r,e,t){return t<0&&(t+=1),t>=1&&(t-=1),t<1/6?(e-r)*t*6+r:t<1/2?e:t<2/3?(e-r)*6*(2/3-t)+r:r}var m5=function(r,e){var t=e.filter(pv),n=t[0],i=t[1],a=t[2],o=t[3],s=(n.type===17?Ms(n.number):AC.parse(r,n))/(Math.PI*2),A=Mi(i)?i.number/100:0,l=Mi(a)?a.number/100:0,u=typeof o<"u"&&Mi(o)?xn(o,1):1;if(A===0)return Ic(l*255,l*255,l*255,1);var c=l<=.5?l*(A+1):l+A-l*A,h=l*2-c,f=mT(h,c,s+1/3),p=mT(h,c,s),v=mT(h,c,s-1/3);return Ic(f*255,p*255,v*255,u)},xmt={hsl:m5,hsla:m5,rgb:g5,rgba:g5},Rm=function(r,e){return Pc.parse(r,IH.create(e).parseComponentValue())},lu={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},Imt={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(r,e){return e.map(function(t){if(wn(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Lmt={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},lC=function(r,e){var t=Pc.parse(r,e[0]),n=e[1];return n&&Mi(n)?{color:t,stop:n}:{color:t,stop:null}},y5=function(r,e){var t=r[0],n=r[r.length-1];t.stop===null&&(t.stop=ya),n.stop===null&&(n.stop=xc);for(var i=[],a=0,o=0;o<r.length;o++){var s=r[o].stop;if(s!==null){var A=xn(s,e);A>a?i.push(A):i.push(a),a=A}else i.push(null)}for(var l=null,o=0;o<i.length;o++){var u=i[o];if(u===null)l===null&&(l=o);else if(l!==null){for(var c=o-l,h=i[l-1],f=(u-h)/(c+1),p=1;p<=c;p++)i[l+p-1]=f*p;l=null}}return r.map(function(v,m){var g=v.color;return{color:g,stop:Math.max(Math.min(1,i[m]/e),0)}})},Fmt=function(r,e,t){var n=e/2,i=t/2,a=xn(r[0],e)-n,o=i-xn(r[1],t);return(Math.atan2(o,a)+Math.PI*2)%(Math.PI*2)},Omt=function(r,e,t){var n=typeof r=="number"?r:Fmt(r,e,t),i=Math.abs(e*Math.sin(n))+Math.abs(t*Math.cos(n)),a=e/2,o=t/2,s=i/2,A=Math.sin(n-Math.PI/2)*s,l=Math.cos(n-Math.PI/2)*s;return[i,a-l,a+l,o-A,o+A]},iA=function(r,e){return Math.sqrt(r*r+e*e)},_5=function(r,e,t,n,i){var a=[[0,0],[0,e],[r,0],[r,e]];return a.reduce(function(o,s){var A=s[0],l=s[1],u=iA(t-A,n-l);return(i?u<o.optimumDistance:u>o.optimumDistance)?{optimumCorner:s,optimumDistance:u}:o},{optimumDistance:i?1/0:-1/0,optimumCorner:null}).optimumCorner},Rmt=function(r,e,t,n,i){var a=0,o=0;switch(r.size){case 0:r.shape===0?a=o=Math.min(Math.abs(e),Math.abs(e-n),Math.abs(t),Math.abs(t-i)):r.shape===1&&(a=Math.min(Math.abs(e),Math.abs(e-n)),o=Math.min(Math.abs(t),Math.abs(t-i)));break;case 2:if(r.shape===0)a=o=Math.min(iA(e,t),iA(e,t-i),iA(e-n,t),iA(e-n,t-i));else if(r.shape===1){var s=Math.min(Math.abs(t),Math.abs(t-i))/Math.min(Math.abs(e),Math.abs(e-n)),A=_5(n,i,e,t,!0),l=A[0],u=A[1];a=iA(l-e,(u-t)/s),o=s*a}break;case 1:r.shape===0?a=o=Math.max(Math.abs(e),Math.abs(e-n),Math.abs(t),Math.abs(t-i)):r.shape===1&&(a=Math.max(Math.abs(e),Math.abs(e-n)),o=Math.max(Math.abs(t),Math.abs(t-i)));break;case 3:if(r.shape===0)a=o=Math.max(iA(e,t),iA(e,t-i),iA(e-n,t),iA(e-n,t-i));else if(r.shape===1){var s=Math.max(Math.abs(t),Math.abs(t-i))/Math.max(Math.abs(e),Math.abs(e-n)),c=_5(n,i,e,t,!1),l=c[0],u=c[1];a=iA(l-e,(u-t)/s),o=s*a}break}return Array.isArray(r.size)&&(a=xn(r.size[0],n),o=r.size.length===2?xn(r.size[1],i):a),[a,o]},Mmt=function(r,e){var t=Ms(180),n=[];return ml(e).forEach(function(i,a){if(a===0){var o=i[0];if(o.type===20&&o.value==="to"){t=UH(i);return}else if(PH(o)){t=AC.parse(r,o);return}}var s=lC(r,i);n.push(s)}),{angle:t,stops:n,type:1}},M_=function(r,e){var t=Ms(180),n=[];return ml(e).forEach(function(i,a){if(a===0){var o=i[0];if(o.type===20&&["top","left","right","bottom"].indexOf(o.value)!==-1){t=UH(i);return}else if(PH(o)){t=(AC.parse(r,o)+Ms(270))%Ms(360);return}}var s=lC(r,i);n.push(s)}),{angle:t,stops:n,type:1}},Nmt=function(r,e){var t=Ms(180),n=[],i=1,a=0,o=3,s=[];return ml(e).forEach(function(A,l){var u=A[0];if(l===0){if(wn(u)&&u.value==="linear"){i=1;return}else if(wn(u)&&u.value==="radial"){i=2;return}}if(u.type===18){if(u.name==="from"){var c=Pc.parse(r,u.values[0]);n.push({stop:ya,color:c})}else if(u.name==="to"){var c=Pc.parse(r,u.values[0]);n.push({stop:xc,color:c})}else if(u.name==="color-stop"){var h=u.values.filter(pv);if(h.length===2){var c=Pc.parse(r,h[1]),f=h[0];Qv(f)&&n.push({stop:{type:16,number:f.number*100,flags:f.flags},color:c})}}}}),i===1?{angle:(t+Ms(180))%Ms(360),stops:n,type:i}:{size:o,shape:a,stops:n,position:s,type:i}},DH="closest-side",QH="farthest-side",kH="closest-corner",HH="farthest-corner",GH="circle",$H="ellipse",VH="cover",jH="contain",Pmt=function(r,e){var t=0,n=3,i=[],a=[];return ml(e).forEach(function(o,s){var A=!0;if(s===0){var l=!1;A=o.reduce(function(c,h){if(l)if(wn(h))switch(h.value){case"center":return a.push(wO),c;case"top":case"left":return a.push(ya),c;case"right":case"bottom":return a.push(xc),c}else(Mi(h)||eh(h))&&a.push(h);else if(wn(h))switch(h.value){case GH:return t=0,!1;case $H:return t=1,!1;case"at":return l=!0,!1;case DH:return n=0,!1;case VH:case QH:return n=1,!1;case jH:case kH:return n=2,!1;case HH:return n=3,!1}else if(eh(h)||Mi(h))return Array.isArray(n)||(n=[]),n.push(h),!1;return c},A)}if(A){var u=lC(r,o);i.push(u)}}),{size:n,shape:t,stops:i,position:a,type:2}},N_=function(r,e){var t=0,n=3,i=[],a=[];return ml(e).forEach(function(o,s){var A=!0;if(s===0?A=o.reduce(function(u,c){if(wn(c))switch(c.value){case"center":return a.push(wO),!1;case"top":case"left":return a.push(ya),!1;case"right":case"bottom":return a.push(xc),!1}else if(Mi(c)||eh(c))return a.push(c),!1;return u},A):s===1&&(A=o.reduce(function(u,c){if(wn(c))switch(c.value){case GH:return t=0,!1;case $H:return t=1,!1;case jH:case DH:return n=0,!1;case QH:return n=1,!1;case kH:return n=2,!1;case VH:case HH:return n=3,!1}else if(eh(c)||Mi(c))return Array.isArray(n)||(n=[]),n.push(c),!1;return u},A)),A){var l=lC(r,o);i.push(l)}}),{size:n,shape:t,stops:i,position:a,type:2}},Umt=function(r){return r.type===1},Dmt=function(r){return r.type===2},EO={name:"image",parse:function(r,e){if(e.type===22){var t={url:e.value,type:0};return r.cache.addImage(e.value),t}if(e.type===18){var n=KH[e.name];if(typeof n>"u")throw new Error('Attempting to parse an unsupported image function "'+e.name+'"');return n(r,e.values)}throw new Error("Unsupported image type "+e.type)}};function Qmt(r){return!(r.type===20&&r.value==="none")&&(r.type!==18||!!KH[r.name])}var KH={"linear-gradient":Mmt,"-moz-linear-gradient":M_,"-ms-linear-gradient":M_,"-o-linear-gradient":M_,"-webkit-linear-gradient":M_,"radial-gradient":Pmt,"-moz-radial-gradient":N_,"-ms-radial-gradient":N_,"-o-radial-gradient":N_,"-webkit-radial-gradient":N_,"-webkit-gradient":Nmt},kmt={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(r,e){if(e.length===0)return[];var t=e[0];return t.type===20&&t.value==="none"?[]:e.filter(function(n){return pv(n)&&Qmt(n)}).map(function(n){return EO.parse(r,n)})}},Hmt={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(r,e){return e.map(function(t){if(wn(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Gmt={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(r,e){return ml(e).map(function(t){return t.filter(Mi)}).map(FH)}},$mt={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(r,e){return ml(e).map(function(t){return t.filter(wn).map(function(n){return n.value}).join(" ")}).map(Vmt)}},Vmt=function(r){switch(r){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},zd;(function(r){r.AUTO="auto",r.CONTAIN="contain",r.COVER="cover"})(zd||(zd={}));var jmt={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(r,e){return ml(e).map(function(t){return t.filter(Kmt)})}},Kmt=function(r){return wn(r)||Mi(r)},uC=function(r){return{name:"border-"+r+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Ymt=uC("top"),Wmt=uC("right"),zmt=uC("bottom"),Xmt=uC("left"),cC=function(r){return{name:"border-radius-"+r,initialValue:"0 0",prefix:!1,type:1,parse:function(e,t){return FH(t.filter(Mi))}}},qmt=cC("top-left"),Zmt=cC("top-right"),Jmt=cC("bottom-right"),tyt=cC("bottom-left"),hC=function(r){return{name:"border-"+r+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(e,t){switch(t){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},eyt=hC("top"),ryt=hC("right"),nyt=hC("bottom"),iyt=hC("left"),fC=function(r){return{name:"border-"+r+"-width",initialValue:"0",type:0,prefix:!1,parse:function(e,t){return r0(t)?t.number:0}}},ayt=fC("top"),oyt=fC("right"),syt=fC("bottom"),Ayt=fC("left"),lyt={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},uyt={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(r,e){switch(e){case"rtl":return 1;case"ltr":default:return 0}}},cyt={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(r,e){return e.filter(wn).reduce(function(t,n){return t|hyt(n.value)},0)}},hyt=function(r){switch(r){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},fyt={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(r,e){switch(e){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},pyt={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(r,e){return e.type===20&&e.value==="normal"?0:e.type===17||e.type===15?e.number:0}},Rw;(function(r){r.NORMAL="normal",r.STRICT="strict"})(Rw||(Rw={}));var dyt={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(r,e){switch(e){case"strict":return Rw.STRICT;case"normal":default:return Rw.NORMAL}}},vyt={name:"line-height",initialValue:"normal",prefix:!1,type:4},w5=function(r,e){return wn(r)&&r.value==="normal"?1.2*e:r.type===17?e*r.number:Mi(r)?xn(r,e):e},gyt={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(r,e){return e.type===20&&e.value==="none"?null:EO.parse(r,e)}},myt={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(r,e){switch(e){case"inside":return 0;case"outside":default:return 1}}},lI={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(r,e){switch(e){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},pC=function(r){return{name:"margin-"+r,initialValue:"0",prefix:!1,type:4}},yyt=pC("top"),_yt=pC("right"),wyt=pC("bottom"),Eyt=pC("left"),Cyt={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(r,e){return e.filter(wn).map(function(t){switch(t.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},Byt={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(r,e){switch(e){case"break-word":return"break-word";case"normal":default:return"normal"}}},dC=function(r){return{name:"padding-"+r,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Tyt=dC("top"),byt=dC("right"),Syt=dC("bottom"),xyt=dC("left"),Iyt={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(r,e){switch(e){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},Lyt={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(r,e){switch(e){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},Fyt={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(r,e){return e.length===1&&AI(e[0],"none")?[]:ml(e).map(function(t){for(var n={color:lu.TRANSPARENT,offsetX:ya,offsetY:ya,blur:ya},i=0,a=0;a<t.length;a++){var o=t[a];eh(o)?(i===0?n.offsetX=o:i===1?n.offsetY=o:n.blur=o,i++):n.color=Pc.parse(r,o)}return n})}},Oyt={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(r,e){switch(e){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},Ryt={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(r,e){if(e.type===20&&e.value==="none")return null;if(e.type===18){var t=Pyt[e.name];if(typeof t>"u")throw new Error('Attempting to parse an unsupported transform function "'+e.name+'"');return t(e.values)}return null}},Myt=function(r){var e=r.filter(function(t){return t.type===17}).map(function(t){return t.number});return e.length===6?e:null},Nyt=function(r){var e=r.filter(function(A){return A.type===17}).map(function(A){return A.number}),t=e[0],n=e[1];e[2],e[3];var i=e[4],a=e[5];e[6],e[7],e[8],e[9],e[10],e[11];var o=e[12],s=e[13];return e[14],e[15],e.length===16?[t,n,i,a,o,s]:null},Pyt={matrix:Myt,matrix3d:Nyt},E5={type:16,number:50,flags:e0},Uyt=[E5,E5],Dyt={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(r,e){var t=e.filter(Mi);return t.length!==2?Uyt:[t[0],t[1]]}},Qyt={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(r,e){switch(e){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},Mm;(function(r){r.NORMAL="normal",r.BREAK_ALL="break-all",r.KEEP_ALL="keep-all"})(Mm||(Mm={}));var kyt={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(r,e){switch(e){case"break-all":return Mm.BREAK_ALL;case"keep-all":return Mm.KEEP_ALL;case"normal":default:return Mm.NORMAL}}},Hyt={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(r,e){if(e.type===20)return{auto:!0,order:0};if(Qv(e))return{auto:!1,order:e.number};throw new Error("Invalid z-index number parsed")}},YH={name:"time",parse:function(r,e){if(e.type===15)switch(e.unit.toLowerCase()){case"s":return 1e3*e.number;case"ms":return e.number}throw new Error("Unsupported time type")}},Gyt={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(r,e){return Qv(e)?e.number:1}},$yt={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Vyt={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(r,e){return e.filter(wn).map(function(t){switch(t.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(t){return t!==0})}},jyt={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(r,e){var t=[],n=[];return e.forEach(function(i){switch(i.type){case 20:case 0:t.push(i.value);break;case 17:t.push(i.number.toString());break;case 4:n.push(t.join(" ")),t.length=0;break}}),t.length&&n.push(t.join(" ")),n.map(function(i){return i.indexOf(" ")===-1?i:"'"+i+"'"})}},Kyt={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},Yyt={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(r,e){if(Qv(e))return e.number;if(wn(e))switch(e.value){case"bold":return 700;case"normal":default:return 400}return 400}},Wyt={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(r,e){return e.filter(wn).map(function(t){return t.value})}},zyt={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(r,e){switch(e){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},$i=function(r,e){return(r&e)!==0},Xyt={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(r,e){if(e.length===0)return[];var t=e[0];return t.type===20&&t.value==="none"?[]:e}},qyt={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(r,e){if(e.length===0)return null;var t=e[0];if(t.type===20&&t.value==="none")return null;for(var n=[],i=e.filter(LH),a=0;a<i.length;a++){var o=i[a],s=i[a+1];if(o.type===20){var A=s&&Qv(s)?s.number:1;n.push({counter:o.value,increment:A})}}return n}},Zyt={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(r,e){if(e.length===0)return[];for(var t=[],n=e.filter(LH),i=0;i<n.length;i++){var a=n[i],o=n[i+1];if(wn(a)&&a.value!=="none"){var s=o&&Qv(o)?o.number:0;t.push({counter:a.value,reset:s})}}return t}},Jyt={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(r,e){return e.filter(r0).map(function(t){return YH.parse(r,t)})}},t0t={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(r,e){if(e.length===0)return null;var t=e[0];if(t.type===20&&t.value==="none")return null;var n=[],i=e.filter(bmt);if(i.length%2!==0)return null;for(var a=0;a<i.length;a+=2){var o=i[a].value,s=i[a+1].value;n.push({open:o,close:s})}return n}},C5=function(r,e,t){if(!r)return"";var n=r[Math.min(e,r.length-1)];return n?t?n.open:n.close:""},e0t={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(r,e){return e.length===1&&AI(e[0],"none")?[]:ml(e).map(function(t){for(var n={color:255,offsetX:ya,offsetY:ya,blur:ya,spread:ya,inset:!1},i=0,a=0;a<t.length;a++){var o=t[a];AI(o,"inset")?n.inset=!0:eh(o)?(i===0?n.offsetX=o:i===1?n.offsetY=o:i===2?n.blur=o:n.spread=o,i++):n.color=Pc.parse(r,o)}return n})}},r0t={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(r,e){var t=[0,1,2],n=[];return e.filter(wn).forEach(function(i){switch(i.value){case"stroke":n.push(1);break;case"fill":n.push(0);break;case"markers":n.push(2);break}}),t.forEach(function(i){n.indexOf(i)===-1&&n.push(i)}),n}},n0t={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},i0t={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(r,e){return r0(e)?e.number:0}},a0t=function(){function r(e,t){var n,i;this.animationDuration=_e(e,Jyt,t.animationDuration),this.backgroundClip=_e(e,Imt,t.backgroundClip),this.backgroundColor=_e(e,Lmt,t.backgroundColor),this.backgroundImage=_e(e,kmt,t.backgroundImage),this.backgroundOrigin=_e(e,Hmt,t.backgroundOrigin),this.backgroundPosition=_e(e,Gmt,t.backgroundPosition),this.backgroundRepeat=_e(e,$mt,t.backgroundRepeat),this.backgroundSize=_e(e,jmt,t.backgroundSize),this.borderTopColor=_e(e,Ymt,t.borderTopColor),this.borderRightColor=_e(e,Wmt,t.borderRightColor),this.borderBottomColor=_e(e,zmt,t.borderBottomColor),this.borderLeftColor=_e(e,Xmt,t.borderLeftColor),this.borderTopLeftRadius=_e(e,qmt,t.borderTopLeftRadius),this.borderTopRightRadius=_e(e,Zmt,t.borderTopRightRadius),this.borderBottomRightRadius=_e(e,Jmt,t.borderBottomRightRadius),this.borderBottomLeftRadius=_e(e,tyt,t.borderBottomLeftRadius),this.borderTopStyle=_e(e,eyt,t.borderTopStyle),this.borderRightStyle=_e(e,ryt,t.borderRightStyle),this.borderBottomStyle=_e(e,nyt,t.borderBottomStyle),this.borderLeftStyle=_e(e,iyt,t.borderLeftStyle),this.borderTopWidth=_e(e,ayt,t.borderTopWidth),this.borderRightWidth=_e(e,oyt,t.borderRightWidth),this.borderBottomWidth=_e(e,syt,t.borderBottomWidth),this.borderLeftWidth=_e(e,Ayt,t.borderLeftWidth),this.boxShadow=_e(e,e0t,t.boxShadow),this.color=_e(e,lyt,t.color),this.direction=_e(e,uyt,t.direction),this.display=_e(e,cyt,t.display),this.float=_e(e,fyt,t.cssFloat),this.fontFamily=_e(e,jyt,t.fontFamily),this.fontSize=_e(e,Kyt,t.fontSize),this.fontStyle=_e(e,zyt,t.fontStyle),this.fontVariant=_e(e,Wyt,t.fontVariant),this.fontWeight=_e(e,Yyt,t.fontWeight),this.letterSpacing=_e(e,pyt,t.letterSpacing),this.lineBreak=_e(e,dyt,t.lineBreak),this.lineHeight=_e(e,vyt,t.lineHeight),this.listStyleImage=_e(e,gyt,t.listStyleImage),this.listStylePosition=_e(e,myt,t.listStylePosition),this.listStyleType=_e(e,lI,t.listStyleType),this.marginTop=_e(e,yyt,t.marginTop),this.marginRight=_e(e,_yt,t.marginRight),this.marginBottom=_e(e,wyt,t.marginBottom),this.marginLeft=_e(e,Eyt,t.marginLeft),this.opacity=_e(e,Gyt,t.opacity);var a=_e(e,Cyt,t.overflow);this.overflowX=a[0],this.overflowY=a[a.length>1?1:0],this.overflowWrap=_e(e,Byt,t.overflowWrap),this.paddingTop=_e(e,Tyt,t.paddingTop),this.paddingRight=_e(e,byt,t.paddingRight),this.paddingBottom=_e(e,Syt,t.paddingBottom),this.paddingLeft=_e(e,xyt,t.paddingLeft),this.paintOrder=_e(e,r0t,t.paintOrder),this.position=_e(e,Lyt,t.position),this.textAlign=_e(e,Iyt,t.textAlign),this.textDecorationColor=_e(e,$yt,(n=t.textDecorationColor)!==null&&n!==void 0?n:t.color),this.textDecorationLine=_e(e,Vyt,(i=t.textDecorationLine)!==null&&i!==void 0?i:t.textDecoration),this.textShadow=_e(e,Fyt,t.textShadow),this.textTransform=_e(e,Oyt,t.textTransform),this.transform=_e(e,Ryt,t.transform),this.transformOrigin=_e(e,Dyt,t.transformOrigin),this.visibility=_e(e,Qyt,t.visibility),this.webkitTextStrokeColor=_e(e,n0t,t.webkitTextStrokeColor),this.webkitTextStrokeWidth=_e(e,i0t,t.webkitTextStrokeWidth),this.wordBreak=_e(e,kyt,t.wordBreak),this.zIndex=_e(e,Hyt,t.zIndex)}return r.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},r.prototype.isTransparent=function(){return Uc(this.backgroundColor)},r.prototype.isTransformed=function(){return this.transform!==null},r.prototype.isPositioned=function(){return this.position!==0},r.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},r.prototype.isFloating=function(){return this.float!==0},r.prototype.isInlineLevel=function(){return $i(this.display,4)||$i(this.display,33554432)||$i(this.display,268435456)||$i(this.display,536870912)||$i(this.display,67108864)||$i(this.display,134217728)},r}(),o0t=function(){function r(e,t){this.content=_e(e,Xyt,t.content),this.quotes=_e(e,t0t,t.quotes)}return r}(),B5=function(){function r(e,t){this.counterIncrement=_e(e,qyt,t.counterIncrement),this.counterReset=_e(e,Zyt,t.counterReset)}return r}(),_e=function(r,e,t){var n=new xH,i=t!==null&&typeof t<"u"?t.toString():e.initialValue;n.write(i);var a=new IH(n.read());switch(e.type){case 2:var o=a.parseComponentValue();return e.parse(r,wn(o)?o.value:e.initialValue);case 0:return e.parse(r,a.parseComponentValue());case 1:return e.parse(r,a.parseComponentValues());case 4:return a.parseComponentValue();case 3:switch(e.format){case"angle":return AC.parse(r,a.parseComponentValue());case"color":return Pc.parse(r,a.parseComponentValue());case"image":return EO.parse(r,a.parseComponentValue());case"length":var s=a.parseComponentValue();return eh(s)?s:ya;case"length-percentage":var A=a.parseComponentValue();return Mi(A)?A:ya;case"time":return YH.parse(r,a.parseComponentValue())}break}},s0t="data-html2canvas-debug",A0t=function(r){var e=r.getAttribute(s0t);switch(e){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},uI=function(r,e){var t=A0t(r);return t===1||e===t},yl=function(){function r(e,t){if(this.context=e,this.textNodes=[],this.elements=[],this.flags=0,uI(t,3))debugger;this.styles=new a0t(e,window.getComputedStyle(t,null)),fI(t)&&(this.styles.animationDuration.some(function(n){return n>0})&&(t.style.animationDuration="0s"),this.styles.transform!==null&&(t.style.transform="none")),this.bounds=oC(this.context,t),uI(t,4)&&(this.flags|=16)}return r}(),l0t="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",T5="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",cm=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var P_=0;P_<T5.length;P_++)cm[T5.charCodeAt(P_)]=P_;var u0t=function(r){var e=r.length*.75,t=r.length,n,i=0,a,o,s,A;r[r.length-1]==="="&&(e--,r[r.length-2]==="="&&e--);var l=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(e):new Array(e),u=Array.isArray(l)?l:new Uint8Array(l);for(n=0;n<t;n+=4)a=cm[r.charCodeAt(n)],o=cm[r.charCodeAt(n+1)],s=cm[r.charCodeAt(n+2)],A=cm[r.charCodeAt(n+3)],u[i++]=a<<2|o>>4,u[i++]=(o&15)<<4|s>>2,u[i++]=(s&3)<<6|A&63;return l},c0t=function(r){for(var e=r.length,t=[],n=0;n<e;n+=2)t.push(r[n+1]<<8|r[n]);return t},h0t=function(r){for(var e=r.length,t=[],n=0;n<e;n+=4)t.push(r[n+3]<<24|r[n+2]<<16|r[n+1]<<8|r[n]);return t},bf=5,CO=6+5,yT=2,f0t=CO-bf,WH=65536>>bf,p0t=1<<bf,_T=p0t-1,d0t=1024>>bf,v0t=WH+d0t,g0t=v0t,m0t=32,y0t=g0t+m0t,_0t=65536>>CO,w0t=1<<f0t,E0t=w0t-1,b5=function(r,e,t){return r.slice?r.slice(e,t):new Uint16Array(Array.prototype.slice.call(r,e,t))},C0t=function(r,e,t){return r.slice?r.slice(e,t):new Uint32Array(Array.prototype.slice.call(r,e,t))},B0t=function(r,e){var t=u0t(r),n=Array.isArray(t)?h0t(t):new Uint32Array(t),i=Array.isArray(t)?c0t(t):new Uint16Array(t),a=24,o=b5(i,a/2,n[4]/2),s=n[5]===2?b5(i,(a+n[4])/2):C0t(n,Math.ceil((a+n[4])/4));return new T0t(n[0],n[1],n[2],n[3],o,s)},T0t=function(){function r(e,t,n,i,a,o){this.initialValue=e,this.errorValue=t,this.highStart=n,this.highValueIndex=i,this.index=a,this.data=o}return r.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=this.index[e>>bf],t=(t<<yT)+(e&_T),this.data[t];if(e<=65535)return t=this.index[WH+(e-55296>>bf)],t=(t<<yT)+(e&_T),this.data[t];if(e<this.highStart)return t=y0t-_0t+(e>>CO),t=this.index[t],t+=e>>bf&E0t,t=this.index[t],t=(t<<yT)+(e&_T),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},r}(),S5="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b0t=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var U_=0;U_<S5.length;U_++)b0t[S5.charCodeAt(U_)]=U_;var S0t=1,wT=2,ET=3,x5=4,I5=5,x0t=7,L5=8,CT=9,BT=10,F5=11,O5=12,R5=13,M5=14,TT=15,I0t=function(r){for(var e=[],t=0,n=r.length;t<n;){var i=r.charCodeAt(t++);if(i>=55296&&i<=56319&&t<n){var a=r.charCodeAt(t++);(a&64512)===56320?e.push(((i&1023)<<10)+(a&1023)+65536):(e.push(i),t--)}else e.push(i)}return e},L0t=function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,r);var t=r.length;if(!t)return"";for(var n=[],i=-1,a="";++i<t;){var o=r[i];o<=65535?n.push(o):(o-=65536,n.push((o>>10)+55296,o%1024+56320)),(i+1===t||n.length>16384)&&(a+=String.fromCharCode.apply(String,n),n.length=0)}return a},F0t=B0t(l0t),Ls="×",bT="÷",O0t=function(r){return F0t.get(r)},R0t=function(r,e,t){var n=t-2,i=e[n],a=e[t-1],o=e[t];if(a===wT&&o===ET)return Ls;if(a===wT||a===ET||a===x5||o===wT||o===ET||o===x5)return bT;if(a===L5&&[L5,CT,F5,O5].indexOf(o)!==-1||(a===F5||a===CT)&&(o===CT||o===BT)||(a===O5||a===BT)&&o===BT||o===R5||o===I5||o===x0t||a===S0t)return Ls;if(a===R5&&o===M5){for(;i===I5;)i=e[--n];if(i===M5)return Ls}if(a===TT&&o===TT){for(var s=0;i===TT;)s++,i=e[--n];if(s%2===0)return Ls}return bT},M0t=function(r){var e=I0t(r),t=e.length,n=0,i=0,a=e.map(O0t);return{next:function(){if(n>=t)return{done:!0,value:null};for(var o=Ls;n<t&&(o=R0t(e,a,++n))===Ls;);if(o!==Ls||n===t){var s=L0t.apply(null,e.slice(i,n));return i=n,{value:s,done:!1}}return{done:!0,value:null}}}},N0t=function(r){for(var e=M0t(r),t=[],n;!(n=e.next()).done;)n.value&&t.push(n.value.slice());return t},P0t=function(r){var e=123;if(r.createRange){var t=r.createRange();if(t.getBoundingClientRect){var n=r.createElement("boundtest");n.style.height=e+"px",n.style.display="block",r.body.appendChild(n),t.selectNode(n);var i=t.getBoundingClientRect(),a=Math.round(i.height);if(r.body.removeChild(n),a===e)return!0}}return!1},U0t=function(r){var e=r.createElement("boundtest");e.style.width="50px",e.style.display="block",e.style.fontSize="12px",e.style.letterSpacing="0px",e.style.wordSpacing="0px",r.body.appendChild(e);var t=r.createRange();e.innerHTML=typeof"".repeat=="function"?"👨".repeat(10):"";var n=e.firstChild,i=sC(n.data).map(function(A){return yi(A)}),a=0,o={},s=i.every(function(A,l){t.setStart(n,a),t.setEnd(n,a+A.length);var u=t.getBoundingClientRect();a+=A.length;var c=u.x>o.x||u.y>o.y;return o=u,l===0?!0:c});return r.body.removeChild(e),s},D0t=function(){return typeof new Image().crossOrigin<"u"},Q0t=function(){return typeof new XMLHttpRequest().responseType=="string"},k0t=function(r){var e=new Image,t=r.createElement("canvas"),n=t.getContext("2d");if(!n)return!1;e.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{n.drawImage(e,0,0),t.toDataURL()}catch{return!1}return!0},N5=function(r){return r[0]===0&&r[1]===255&&r[2]===0&&r[3]===255},H0t=function(r){var e=r.createElement("canvas"),t=100;e.width=t,e.height=t;var n=e.getContext("2d");if(!n)return Promise.reject(!1);n.fillStyle="rgb(0, 255, 0)",n.fillRect(0,0,t,t);var i=new Image,a=e.toDataURL();i.src=a;var o=cI(t,t,0,0,i);return n.fillStyle="red",n.fillRect(0,0,t,t),P5(o).then(function(s){n.drawImage(s,0,0);var A=n.getImageData(0,0,t,t).data;n.fillStyle="red",n.fillRect(0,0,t,t);var l=r.createElement("div");return l.style.backgroundImage="url("+a+")",l.style.height=t+"px",N5(A)?P5(cI(t,t,0,0,l)):Promise.reject(!1)}).then(function(s){return n.drawImage(s,0,0),N5(n.getImageData(0,0,t,t).data)}).catch(function(){return!1})},cI=function(r,e,t,n,i){var a="http://www.w3.org/2000/svg",o=document.createElementNS(a,"svg"),s=document.createElementNS(a,"foreignObject");return o.setAttributeNS(null,"width",r.toString()),o.setAttributeNS(null,"height",e.toString()),s.setAttributeNS(null,"width","100%"),s.setAttributeNS(null,"height","100%"),s.setAttributeNS(null,"x",t.toString()),s.setAttributeNS(null,"y",n.toString()),s.setAttributeNS(null,"externalResourcesRequired","true"),o.appendChild(s),s.appendChild(i),o},P5=function(r){return new Promise(function(e,t){var n=new Image;n.onload=function(){return e(n)},n.onerror=t,n.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(r))})},va={get SUPPORT_RANGE_BOUNDS(){var r=P0t(document);return Object.defineProperty(va,"SUPPORT_RANGE_BOUNDS",{value:r}),r},get SUPPORT_WORD_BREAKING(){var r=va.SUPPORT_RANGE_BOUNDS&&U0t(document);return Object.defineProperty(va,"SUPPORT_WORD_BREAKING",{value:r}),r},get SUPPORT_SVG_DRAWING(){var r=k0t(document);return Object.defineProperty(va,"SUPPORT_SVG_DRAWING",{value:r}),r},get SUPPORT_FOREIGNOBJECT_DRAWING(){var r=typeof Array.from=="function"&&typeof window.fetch=="function"?H0t(document):Promise.resolve(!1);return Object.defineProperty(va,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:r}),r},get SUPPORT_CORS_IMAGES(){var r=D0t();return Object.defineProperty(va,"SUPPORT_CORS_IMAGES",{value:r}),r},get SUPPORT_RESPONSE_TYPE(){var r=Q0t();return Object.defineProperty(va,"SUPPORT_RESPONSE_TYPE",{value:r}),r},get SUPPORT_CORS_XHR(){var r="withCredentials"in new XMLHttpRequest;return Object.defineProperty(va,"SUPPORT_CORS_XHR",{value:r}),r},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var r=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(va,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:r}),r}},Nm=function(){function r(e,t){this.text=e,this.bounds=t}return r}(),G0t=function(r,e,t,n){var i=j0t(e,t),a=[],o=0;return i.forEach(function(s){if(t.textDecorationLine.length||s.trim().length>0)if(va.SUPPORT_RANGE_BOUNDS){var A=U5(n,o,s.length).getClientRects();if(A.length>1){var l=BO(s),u=0;l.forEach(function(h){a.push(new Nm(h,vu.fromDOMRectList(r,U5(n,u+o,h.length).getClientRects()))),u+=h.length})}else a.push(new Nm(s,vu.fromDOMRectList(r,A)))}else{var c=n.splitText(s.length);a.push(new Nm(s,$0t(r,n))),n=c}else va.SUPPORT_RANGE_BOUNDS||(n=n.splitText(s.length));o+=s.length}),a},$0t=function(r,e){var t=e.ownerDocument;if(t){var n=t.createElement("html2canvaswrapper");n.appendChild(e.cloneNode(!0));var i=e.parentNode;if(i){i.replaceChild(n,e);var a=oC(r,n);return n.firstChild&&i.replaceChild(n.firstChild,n),a}}return vu.EMPTY},U5=function(r,e,t){var n=r.ownerDocument;if(!n)throw new Error("Node has no owner document");var i=n.createRange();return i.setStart(r,e),i.setEnd(r,e+t),i},BO=function(r){if(va.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(e.segment(r)).map(function(t){return t.segment})}return N0t(r)},V0t=function(r,e){if(va.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(t.segment(r)).map(function(n){return n.segment})}return Y0t(r,e)},j0t=function(r,e){return e.letterSpacing!==0?BO(r):V0t(r,e)},K0t=[32,160,4961,65792,65793,4153,4241],Y0t=function(r,e){for(var t=_gt(r,{lineBreak:e.lineBreak,wordBreak:e.overflowWrap==="break-word"?"break-word":e.wordBreak}),n=[],i,a=function(){if(i.value){var o=i.value.slice(),s=sC(o),A="";s.forEach(function(l){K0t.indexOf(l)===-1?A+=yi(l):(A.length&&n.push(A),n.push(yi(l)),A="")}),A.length&&n.push(A)}};!(i=t.next()).done;)a();return n},W0t=function(){function r(e,t,n){this.text=z0t(t.data,n.textTransform),this.textBounds=G0t(e,this.text,n,t)}return r}(),z0t=function(r,e){switch(e){case 1:return r.toLowerCase();case 3:return r.replace(X0t,q0t);case 2:return r.toUpperCase();default:return r}},X0t=/(^|\s|:|-|\(|\))([a-z])/g,q0t=function(r,e,t){return r.length>0?e+t.toUpperCase():r},zH=function(r){BA(e,r);function e(t,n){var i=r.call(this,t,n)||this;return i.src=n.currentSrc||n.src,i.intrinsicWidth=n.naturalWidth,i.intrinsicHeight=n.naturalHeight,i.context.cache.addImage(i.src),i}return e}(yl),XH=function(r){BA(e,r);function e(t,n){var i=r.call(this,t,n)||this;return i.canvas=n,i.intrinsicWidth=n.width,i.intrinsicHeight=n.height,i}return e}(yl),qH=function(r){BA(e,r);function e(t,n){var i=r.call(this,t,n)||this,a=new XMLSerializer,o=oC(t,n);return n.setAttribute("width",o.width+"px"),n.setAttribute("height",o.height+"px"),i.svg="data:image/svg+xml,"+encodeURIComponent(a.serializeToString(n)),i.intrinsicWidth=n.width.baseVal.value,i.intrinsicHeight=n.height.baseVal.value,i.context.cache.addImage(i.svg),i}return e}(yl),ZH=function(r){BA(e,r);function e(t,n){var i=r.call(this,t,n)||this;return i.value=n.value,i}return e}(yl),hI=function(r){BA(e,r);function e(t,n){var i=r.call(this,t,n)||this;return i.start=n.start,i.reversed=typeof n.reversed=="boolean"&&n.reversed===!0,i}return e}(yl),Z0t=[{type:15,flags:0,unit:"px",number:3}],J0t=[{type:16,flags:0,number:50}],t_t=function(r){return r.width>r.height?new vu(r.left+(r.width-r.height)/2,r.top,r.height,r.height):r.width<r.height?new vu(r.left,r.top+(r.height-r.width)/2,r.width,r.width):r},e_t=function(r){var e=r.type===r_t?new Array(r.value.length+1).join("•"):r.value;return e.length===0?r.placeholder||"":e},Mw="checkbox",Nw="radio",r_t="password",D5=707406591,TO=function(r){BA(e,r);function e(t,n){var i=r.call(this,t,n)||this;switch(i.type=n.type.toLowerCase(),i.checked=n.checked,i.value=e_t(n),(i.type===Mw||i.type===Nw)&&(i.styles.backgroundColor=3739148031,i.styles.borderTopColor=i.styles.borderRightColor=i.styles.borderBottomColor=i.styles.borderLeftColor=2779096575,i.styles.borderTopWidth=i.styles.borderRightWidth=i.styles.borderBottomWidth=i.styles.borderLeftWidth=1,i.styles.borderTopStyle=i.styles.borderRightStyle=i.styles.borderBottomStyle=i.styles.borderLeftStyle=1,i.styles.backgroundClip=[0],i.styles.backgroundOrigin=[0],i.bounds=t_t(i.bounds)),i.type){case Mw:i.styles.borderTopRightRadius=i.styles.borderTopLeftRadius=i.styles.borderBottomRightRadius=i.styles.borderBottomLeftRadius=Z0t;break;case Nw:i.styles.borderTopRightRadius=i.styles.borderTopLeftRadius=i.styles.borderBottomRightRadius=i.styles.borderBottomLeftRadius=J0t;break}return i}return e}(yl),JH=function(r){BA(e,r);function e(t,n){var i=r.call(this,t,n)||this,a=n.options[n.selectedIndex||0];return i.value=a&&a.text||"",i}return e}(yl),tG=function(r){BA(e,r);function e(t,n){var i=r.call(this,t,n)||this;return i.value=n.value,i}return e}(yl),eG=function(r){BA(e,r);function e(t,n){var i=r.call(this,t,n)||this;i.src=n.src,i.width=parseInt(n.width,10)||0,i.height=parseInt(n.height,10)||0,i.backgroundColor=i.styles.backgroundColor;try{if(n.contentWindow&&n.contentWindow.document&&n.contentWindow.document.documentElement){i.tree=nG(t,n.contentWindow.document.documentElement);var a=n.contentWindow.document.documentElement?Rm(t,getComputedStyle(n.contentWindow.document.documentElement).backgroundColor):lu.TRANSPARENT,o=n.contentWindow.document.body?Rm(t,getComputedStyle(n.contentWindow.document.body).backgroundColor):lu.TRANSPARENT;i.backgroundColor=Uc(a)?Uc(o)?i.styles.backgroundColor:o:a}}catch{}return i}return e}(yl),n_t=["OL","UL","MENU"],T1=function(r,e,t,n){for(var i=e.firstChild,a=void 0;i;i=a)if(a=i.nextSibling,iG(i)&&i.data.trim().length>0)t.textNodes.push(new W0t(r,i,t.styles));else if(Od(i))if(AG(i)&&i.assignedNodes)i.assignedNodes().forEach(function(s){return T1(r,s,t,n)});else{var o=rG(r,i);o.styles.isVisible()&&(i_t(i,o,n)?o.flags|=4:a_t(o.styles)&&(o.flags|=2),n_t.indexOf(i.tagName)!==-1&&(o.flags|=8),t.elements.push(o),i.slot,i.shadowRoot?T1(r,i.shadowRoot,o,n):!Pw(i)&&!aG(i)&&!Uw(i)&&T1(r,i,o,n))}},rG=function(r,e){return pI(e)?new zH(r,e):oG(e)?new XH(r,e):aG(e)?new qH(r,e):o_t(e)?new ZH(r,e):s_t(e)?new hI(r,e):A_t(e)?new TO(r,e):Uw(e)?new JH(r,e):Pw(e)?new tG(r,e):sG(e)?new eG(r,e):new yl(r,e)},nG=function(r,e){var t=rG(r,e);return t.flags|=4,T1(r,e,t,t),t},i_t=function(r,e,t){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||bO(r)&&t.styles.isTransparent()},a_t=function(r){return r.isPositioned()||r.isFloating()},iG=function(r){return r.nodeType===Node.TEXT_NODE},Od=function(r){return r.nodeType===Node.ELEMENT_NODE},fI=function(r){return Od(r)&&typeof r.style<"u"&&!b1(r)},b1=function(r){return typeof r.className=="object"},o_t=function(r){return r.tagName==="LI"},s_t=function(r){return r.tagName==="OL"},A_t=function(r){return r.tagName==="INPUT"},l_t=function(r){return r.tagName==="HTML"},aG=function(r){return r.tagName==="svg"},bO=function(r){return r.tagName==="BODY"},oG=function(r){return r.tagName==="CANVAS"},Q5=function(r){return r.tagName==="VIDEO"},pI=function(r){return r.tagName==="IMG"},sG=function(r){return r.tagName==="IFRAME"},k5=function(r){return r.tagName==="STYLE"},u_t=function(r){return r.tagName==="SCRIPT"},Pw=function(r){return r.tagName==="TEXTAREA"},Uw=function(r){return r.tagName==="SELECT"},AG=function(r){return r.tagName==="SLOT"},H5=function(r){return r.tagName.indexOf("-")>0},c_t=function(){function r(){this.counters={}}return r.prototype.getCounterValue=function(e){var t=this.counters[e];return t&&t.length?t[t.length-1]:1},r.prototype.getCounterValues=function(e){var t=this.counters[e];return t||[]},r.prototype.pop=function(e){var t=this;e.forEach(function(n){return t.counters[n].pop()})},r.prototype.parse=function(e){var t=this,n=e.counterIncrement,i=e.counterReset,a=!0;n!==null&&n.forEach(function(s){var A=t.counters[s.counter];A&&s.increment!==0&&(a=!1,A.length||A.push(1),A[Math.max(0,A.length-1)]+=s.increment)});var o=[];return a&&i.forEach(function(s){var A=t.counters[s.counter];o.push(s.counter),A||(A=t.counters[s.counter]=[]),A.push(s.reset)}),o},r}(),G5={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},$5={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},h_t={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},f_t={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},rd=function(r,e,t,n,i,a){return r<e||r>t?yy(r,i,a.length>0):n.integers.reduce(function(o,s,A){for(;r>=s;)r-=s,o+=n.values[A];return o},"")+a},lG=function(r,e,t,n){var i="";do t||r--,i=n(r)+i,r/=e;while(r*e>=e);return i},gi=function(r,e,t,n,i){var a=t-e+1;return(r<0?"-":"")+(lG(Math.abs(r),a,n,function(o){return yi(Math.floor(o%a)+e)})+i)},$h=function(r,e,t){t===void 0&&(t=". ");var n=e.length;return lG(Math.abs(r),n,!1,function(i){return e[Math.floor(i%n)]})+t},yd=1<<0,fc=1<<1,pc=1<<2,hm=1<<3,Vl=function(r,e,t,n,i,a){if(r<-9999||r>9999)return yy(r,4,i.length>0);var o=Math.abs(r),s=i;if(o===0)return e[0]+s;for(var A=0;o>0&&A<=4;A++){var l=o%10;l===0&&$i(a,yd)&&s!==""?s=e[l]+s:l>1||l===1&&A===0||l===1&&A===1&&$i(a,fc)||l===1&&A===1&&$i(a,pc)&&r>100||l===1&&A>1&&$i(a,hm)?s=e[l]+(A>0?t[A-1]:"")+s:l===1&&A>0&&(s=t[A-1]+s),o=Math.floor(o/10)}return(r<0?n:"")+s},V5="十百千萬",j5="拾佰仟萬",K5="マイナス",ST="마이너스",yy=function(r,e,t){var n=t?". ":"",i=t?"、":"",a=t?", ":"",o=t?" ":"";switch(e){case 0:return"•"+o;case 1:return"◦"+o;case 2:return"◾"+o;case 5:var s=gi(r,48,57,!0,n);return s.length<4?"0"+s:s;case 4:return $h(r,"〇一二三四五六七八九",i);case 6:return rd(r,1,3999,G5,3,n).toLowerCase();case 7:return rd(r,1,3999,G5,3,n);case 8:return gi(r,945,969,!1,n);case 9:return gi(r,97,122,!1,n);case 10:return gi(r,65,90,!1,n);case 11:return gi(r,1632,1641,!0,n);case 12:case 49:return rd(r,1,9999,$5,3,n);case 35:return rd(r,1,9999,$5,3,n).toLowerCase();case 13:return gi(r,2534,2543,!0,n);case 14:case 30:return gi(r,6112,6121,!0,n);case 15:return $h(r,"子丑寅卯辰巳午未申酉戌亥",i);case 16:return $h(r,"甲乙丙丁戊己庚辛壬癸",i);case 17:case 48:return Vl(r,"零一二三四五六七八九",V5,"負",i,fc|pc|hm);case 47:return Vl(r,"零壹貳參肆伍陸柒捌玖",j5,"負",i,yd|fc|pc|hm);case 42:return Vl(r,"零一二三四五六七八九",V5,"负",i,fc|pc|hm);case 41:return Vl(r,"零壹贰叁肆伍陆柒捌玖",j5,"负",i,yd|fc|pc|hm);case 26:return Vl(r,"〇一二三四五六七八九","十百千万",K5,i,0);case 25:return Vl(r,"零壱弐参四伍六七八九","拾百千万",K5,i,yd|fc|pc);case 31:return Vl(r,"영일이삼사오육칠팔구","십백천만",ST,a,yd|fc|pc);case 33:return Vl(r,"零一二三四五六七八九","十百千萬",ST,a,0);case 32:return Vl(r,"零壹貳參四五六七八九","拾百千",ST,a,yd|fc|pc);case 18:return gi(r,2406,2415,!0,n);case 20:return rd(r,1,19999,f_t,3,n);case 21:return gi(r,2790,2799,!0,n);case 22:return gi(r,2662,2671,!0,n);case 22:return rd(r,1,10999,h_t,3,n);case 23:return $h(r,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return $h(r,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return gi(r,3302,3311,!0,n);case 28:return $h(r,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",i);case 29:return $h(r,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",i);case 34:return gi(r,3792,3801,!0,n);case 37:return gi(r,6160,6169,!0,n);case 38:return gi(r,4160,4169,!0,n);case 39:return gi(r,2918,2927,!0,n);case 40:return gi(r,1776,1785,!0,n);case 43:return gi(r,3046,3055,!0,n);case 44:return gi(r,3174,3183,!0,n);case 45:return gi(r,3664,3673,!0,n);case 46:return gi(r,3872,3881,!0,n);case 3:default:return gi(r,48,57,!0,n)}},uG="data-html2canvas-ignore",Y5=function(){function r(e,t,n){if(this.context=e,this.options=n,this.scrolledElements=[],this.referenceElement=t,this.counters=new c_t,this.quoteDepth=0,!t.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(t.ownerDocument.documentElement,!1)}return r.prototype.toIFrame=function(e,t){var n=this,i=p_t(e,t);if(!i.contentWindow)return Promise.reject("Unable to find iframe window");var a=e.defaultView.pageXOffset,o=e.defaultView.pageYOffset,s=i.contentWindow,A=s.document,l=g_t(i).then(function(){return io(n,void 0,void 0,function(){var u,c;return Qa(this,function(h){switch(h.label){case 0:return this.scrolledElements.forEach(w_t),s&&(s.scrollTo(t.left,t.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(s.scrollY!==t.top||s.scrollX!==t.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(s.scrollX-t.left,s.scrollY-t.top,0,0))),u=this.options.onclone,c=this.clonedReferenceElement,typeof c>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:A.fonts&&A.fonts.ready?[4,A.fonts.ready]:[3,2];case 1:h.sent(),h.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,v_t(A)]:[3,4];case 3:h.sent(),h.label=4;case 4:return typeof u=="function"?[2,Promise.resolve().then(function(){return u(A,c)}).then(function(){return i})]:[2,i]}})})});return A.open(),A.write(y_t(document.doctype)+"<html></html>"),__t(this.referenceElement.ownerDocument,a,o),A.replaceChild(A.adoptNode(this.documentElement),A.documentElement),A.close(),l},r.prototype.createElementClone=function(e){if(uI(e,2))debugger;if(oG(e))return this.createCanvasClone(e);if(Q5(e))return this.createVideoClone(e);if(k5(e))return this.createStyleClone(e);var t=e.cloneNode(!1);return pI(t)&&(pI(e)&&e.currentSrc&&e.currentSrc!==e.src&&(t.src=e.currentSrc,t.srcset=""),t.loading==="lazy"&&(t.loading="eager")),H5(t)?this.createCustomElementClone(t):t},r.prototype.createCustomElementClone=function(e){var t=document.createElement("html2canvascustomelement");return xT(e.style,t),t},r.prototype.createStyleClone=function(e){try{var t=e.sheet;if(t&&t.cssRules){var n=[].slice.call(t.cssRules,0).reduce(function(a,o){return o&&typeof o.cssText=="string"?a+o.cssText:a},""),i=e.cloneNode(!1);return i.textContent=n,i}}catch(a){if(this.context.logger.error("Unable to access cssRules property",a),a.name!=="SecurityError")throw a}return e.cloneNode(!1)},r.prototype.createCanvasClone=function(e){var t;if(this.options.inlineImages&&e.ownerDocument){var n=e.ownerDocument.createElement("img");try{return n.src=e.toDataURL(),n}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",e)}}var i=e.cloneNode(!1);try{i.width=e.width,i.height=e.height;var a=e.getContext("2d"),o=i.getContext("2d");if(o)if(!this.options.allowTaint&&a)o.putImageData(a.getImageData(0,0,e.width,e.height),0,0);else{var s=(t=e.getContext("webgl2"))!==null&&t!==void 0?t:e.getContext("webgl");if(s){var A=s.getContextAttributes();(A==null?void 0:A.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",e)}o.drawImage(e,0,0)}return i}catch{this.context.logger.info("Unable to clone canvas as it is tainted",e)}return i},r.prototype.createVideoClone=function(e){var t=e.ownerDocument.createElement("canvas");t.width=e.offsetWidth,t.height=e.offsetHeight;var n=t.getContext("2d");try{return n&&(n.drawImage(e,0,0,t.width,t.height),this.options.allowTaint||n.getImageData(0,0,t.width,t.height)),t}catch{this.context.logger.info("Unable to clone video as it is tainted",e)}var i=e.ownerDocument.createElement("canvas");return i.width=e.offsetWidth,i.height=e.offsetHeight,i},r.prototype.appendChildNode=function(e,t,n){(!Od(t)||!u_t(t)&&!t.hasAttribute(uG)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(t)))&&(!this.options.copyStyles||!Od(t)||!k5(t))&&e.appendChild(this.cloneNode(t,n))},r.prototype.cloneChildNodes=function(e,t,n){for(var i=this,a=e.shadowRoot?e.shadowRoot.firstChild:e.firstChild;a;a=a.nextSibling)if(Od(a)&&AG(a)&&typeof a.assignedNodes=="function"){var o=a.assignedNodes();o.length&&o.forEach(function(s){return i.appendChildNode(t,s,n)})}else this.appendChildNode(t,a,n)},r.prototype.cloneNode=function(e,t){if(iG(e))return document.createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);var n=e.ownerDocument.defaultView;if(n&&Od(e)&&(fI(e)||b1(e))){var i=this.createElementClone(e);i.style.transitionProperty="none";var a=n.getComputedStyle(e),o=n.getComputedStyle(e,":before"),s=n.getComputedStyle(e,":after");this.referenceElement===e&&fI(i)&&(this.clonedReferenceElement=i),bO(i)&&B_t(i);var A=this.counters.parse(new B5(this.context,a)),l=this.resolvePseudoContent(e,i,o,Pm.BEFORE);H5(e)&&(t=!0),Q5(e)||this.cloneChildNodes(e,i,t),l&&i.insertBefore(l,i.firstChild);var u=this.resolvePseudoContent(e,i,s,Pm.AFTER);return u&&i.appendChild(u),this.counters.pop(A),(a&&(this.options.copyStyles||b1(e))&&!sG(e)||t)&&xT(a,i),(e.scrollTop!==0||e.scrollLeft!==0)&&this.scrolledElements.push([i,e.scrollLeft,e.scrollTop]),(Pw(e)||Uw(e))&&(Pw(i)||Uw(i))&&(i.value=e.value),i}return e.cloneNode(!1)},r.prototype.resolvePseudoContent=function(e,t,n,i){var a=this;if(n){var o=n.content,s=t.ownerDocument;if(!(!s||!o||o==="none"||o==="-moz-alt-content"||n.display==="none")){this.counters.parse(new B5(this.context,n));var A=new o0t(this.context,n),l=s.createElement("html2canvaspseudoelement");xT(n,l),A.content.forEach(function(c){if(c.type===0)l.appendChild(s.createTextNode(c.value));else if(c.type===22){var h=s.createElement("img");h.src=c.value,h.style.opacity="1",l.appendChild(h)}else if(c.type===18){if(c.name==="attr"){var f=c.values.filter(wn);f.length&&l.appendChild(s.createTextNode(e.getAttribute(f[0].value)||""))}else if(c.name==="counter"){var p=c.values.filter(pv),v=p[0],m=p[1];if(v&&wn(v)){var g=a.counters.getCounterValue(v.value),_=m&&wn(m)?lI.parse(a.context,m.value):3;l.appendChild(s.createTextNode(yy(g,_,!1)))}}else if(c.name==="counters"){var w=c.values.filter(pv),v=w[0],C=w[1],m=w[2];if(v&&wn(v)){var F=a.counters.getCounterValues(v.value),O=m&&wn(m)?lI.parse(a.context,m.value):3,I=C&&C.type===0?C.value:"",b=F.map(function(x){return yy(x,O,!1)}).join(I);l.appendChild(s.createTextNode(b))}}}else if(c.type===20)switch(c.value){case"open-quote":l.appendChild(s.createTextNode(C5(A.quotes,a.quoteDepth++,!0)));break;case"close-quote":l.appendChild(s.createTextNode(C5(A.quotes,--a.quoteDepth,!1)));break;default:l.appendChild(s.createTextNode(c.value))}}),l.className=dI+" "+vI;var u=i===Pm.BEFORE?" "+dI:" "+vI;return b1(t)?t.className.baseValue+=u:t.className+=u,l}}},r.destroy=function(e){return e.parentNode?(e.parentNode.removeChild(e),!0):!1},r}(),Pm;(function(r){r[r.BEFORE=0]="BEFORE",r[r.AFTER=1]="AFTER"})(Pm||(Pm={}));var p_t=function(r,e){var t=r.createElement("iframe");return t.className="html2canvas-container",t.style.visibility="hidden",t.style.position="fixed",t.style.left="-10000px",t.style.top="0px",t.style.border="0",t.width=e.width.toString(),t.height=e.height.toString(),t.scrolling="no",t.setAttribute(uG,"true"),r.body.appendChild(t),t},d_t=function(r){return new Promise(function(e){if(r.complete){e();return}if(!r.src){e();return}r.onload=e,r.onerror=e})},v_t=function(r){return Promise.all([].slice.call(r.images,0).map(d_t))},g_t=function(r){return new Promise(function(e,t){var n=r.contentWindow;if(!n)return t("No window assigned for iframe");var i=n.document;n.onload=r.onload=function(){n.onload=r.onload=null;var a=setInterval(function(){i.body.childNodes.length>0&&i.readyState==="complete"&&(clearInterval(a),e(r))},50)}})},m_t=["all","d","content"],xT=function(r,e){for(var t=r.length-1;t>=0;t--){var n=r.item(t);m_t.indexOf(n)===-1&&e.style.setProperty(n,r.getPropertyValue(n))}return e},y_t=function(r){var e="";return r&&(e+="<!DOCTYPE ",r.name&&(e+=r.name),r.internalSubset&&(e+=r.internalSubset),r.publicId&&(e+='"'+r.publicId+'"'),r.systemId&&(e+='"'+r.systemId+'"'),e+=">"),e},__t=function(r,e,t){r&&r.defaultView&&(e!==r.defaultView.pageXOffset||t!==r.defaultView.pageYOffset)&&r.defaultView.scrollTo(e,t)},w_t=function(r){var e=r[0],t=r[1],n=r[2];e.scrollLeft=t,e.scrollTop=n},E_t=":before",C_t=":after",dI="___html2canvas___pseudoelement_before",vI="___html2canvas___pseudoelement_after",W5=`{
|
||
content: "" !important;
|
||
display: none !important;
|
||
}`,B_t=function(r){T_t(r,"."+dI+E_t+W5+`
|
||
.`+vI+C_t+W5)},T_t=function(r,e){var t=r.ownerDocument;if(t){var n=t.createElement("style");n.textContent=e,r.appendChild(n)}},cG=function(){function r(){}return r.getOrigin=function(e){var t=r._link;return t?(t.href=e,t.href=t.href,t.protocol+t.hostname+t.port):"about:blank"},r.isSameOrigin=function(e){return r.getOrigin(e)===r._origin},r.setContext=function(e){r._link=e.document.createElement("a"),r._origin=r.getOrigin(e.location.href)},r._origin="about:blank",r}(),b_t=function(){function r(e,t){this.context=e,this._options=t,this._cache={}}return r.prototype.addImage=function(e){var t=Promise.resolve();return this.has(e)||(LT(e)||L_t(e))&&(this._cache[e]=this.loadImage(e)).catch(function(){}),t},r.prototype.match=function(e){return this._cache[e]},r.prototype.loadImage=function(e){return io(this,void 0,void 0,function(){var t,n,i,a,o=this;return Qa(this,function(s){switch(s.label){case 0:return t=cG.isSameOrigin(e),n=!IT(e)&&this._options.useCORS===!0&&va.SUPPORT_CORS_IMAGES&&!t,i=!IT(e)&&!t&&!LT(e)&&typeof this._options.proxy=="string"&&va.SUPPORT_CORS_XHR&&!n,!t&&this._options.allowTaint===!1&&!IT(e)&&!LT(e)&&!i&&!n?[2]:(a=e,i?[4,this.proxy(a)]:[3,2]);case 1:a=s.sent(),s.label=2;case 2:return this.context.logger.debug("Added image "+e.substring(0,256)),[4,new Promise(function(A,l){var u=new Image;u.onload=function(){return A(u)},u.onerror=l,(F_t(a)||n)&&(u.crossOrigin="anonymous"),u.src=a,u.complete===!0&&setTimeout(function(){return A(u)},500),o._options.imageTimeout>0&&setTimeout(function(){return l("Timed out ("+o._options.imageTimeout+"ms) loading image")},o._options.imageTimeout)})];case 3:return[2,s.sent()]}})})},r.prototype.has=function(e){return typeof this._cache[e]<"u"},r.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},r.prototype.proxy=function(e){var t=this,n=this._options.proxy;if(!n)throw new Error("No proxy defined");var i=e.substring(0,256);return new Promise(function(a,o){var s=va.SUPPORT_RESPONSE_TYPE?"blob":"text",A=new XMLHttpRequest;A.onload=function(){if(A.status===200)if(s==="text")a(A.response);else{var c=new FileReader;c.addEventListener("load",function(){return a(c.result)},!1),c.addEventListener("error",function(h){return o(h)},!1),c.readAsDataURL(A.response)}else o("Failed to proxy resource "+i+" with status code "+A.status)},A.onerror=o;var l=n.indexOf("?")>-1?"&":"?";if(A.open("GET",""+n+l+"url="+encodeURIComponent(e)+"&responseType="+s),s!=="text"&&A instanceof XMLHttpRequest&&(A.responseType=s),t._options.imageTimeout){var u=t._options.imageTimeout;A.timeout=u,A.ontimeout=function(){return o("Timed out ("+u+"ms) proxying "+i)}}A.send()})},r}(),S_t=/^data:image\/svg\+xml/i,x_t=/^data:image\/.*;base64,/i,I_t=/^data:image\/.*/i,L_t=function(r){return va.SUPPORT_SVG_DRAWING||!O_t(r)},IT=function(r){return I_t.test(r)},F_t=function(r){return x_t.test(r)},LT=function(r){return r.substr(0,4)==="blob"},O_t=function(r){return r.substr(-3).toLowerCase()==="svg"||S_t.test(r)},ve=function(){function r(e,t){this.type=0,this.x=e,this.y=t}return r.prototype.add=function(e,t){return new r(this.x+e,this.y+t)},r}(),nd=function(r,e,t){return new ve(r.x+(e.x-r.x)*t,r.y+(e.y-r.y)*t)},D_=function(){function r(e,t,n,i){this.type=1,this.start=e,this.startControl=t,this.endControl=n,this.end=i}return r.prototype.subdivide=function(e,t){var n=nd(this.start,this.startControl,e),i=nd(this.startControl,this.endControl,e),a=nd(this.endControl,this.end,e),o=nd(n,i,e),s=nd(i,a,e),A=nd(o,s,e);return t?new r(this.start,n,o,A):new r(A,s,a,this.end)},r.prototype.add=function(e,t){return new r(this.start.add(e,t),this.startControl.add(e,t),this.endControl.add(e,t),this.end.add(e,t))},r.prototype.reverse=function(){return new r(this.end,this.endControl,this.startControl,this.start)},r}(),Os=function(r){return r.type===1},R_t=function(){function r(e){var t=e.styles,n=e.bounds,i=um(t.borderTopLeftRadius,n.width,n.height),a=i[0],o=i[1],s=um(t.borderTopRightRadius,n.width,n.height),A=s[0],l=s[1],u=um(t.borderBottomRightRadius,n.width,n.height),c=u[0],h=u[1],f=um(t.borderBottomLeftRadius,n.width,n.height),p=f[0],v=f[1],m=[];m.push((a+A)/n.width),m.push((p+c)/n.width),m.push((o+v)/n.height),m.push((l+h)/n.height);var g=Math.max.apply(Math,m);g>1&&(a/=g,o/=g,A/=g,l/=g,c/=g,h/=g,p/=g,v/=g);var _=n.width-A,w=n.height-h,C=n.width-c,F=n.height-v,O=t.borderTopWidth,I=t.borderRightWidth,b=t.borderBottomWidth,L=t.borderLeftWidth,N=xn(t.paddingTop,e.bounds.width),x=xn(t.paddingRight,e.bounds.width),S=xn(t.paddingBottom,e.bounds.width),P=xn(t.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=a>0||o>0?Dn(n.left+L/3,n.top+O/3,a-L/3,o-O/3,an.TOP_LEFT):new ve(n.left+L/3,n.top+O/3),this.topRightBorderDoubleOuterBox=a>0||o>0?Dn(n.left+_,n.top+O/3,A-I/3,l-O/3,an.TOP_RIGHT):new ve(n.left+n.width-I/3,n.top+O/3),this.bottomRightBorderDoubleOuterBox=c>0||h>0?Dn(n.left+C,n.top+w,c-I/3,h-b/3,an.BOTTOM_RIGHT):new ve(n.left+n.width-I/3,n.top+n.height-b/3),this.bottomLeftBorderDoubleOuterBox=p>0||v>0?Dn(n.left+L/3,n.top+F,p-L/3,v-b/3,an.BOTTOM_LEFT):new ve(n.left+L/3,n.top+n.height-b/3),this.topLeftBorderDoubleInnerBox=a>0||o>0?Dn(n.left+L*2/3,n.top+O*2/3,a-L*2/3,o-O*2/3,an.TOP_LEFT):new ve(n.left+L*2/3,n.top+O*2/3),this.topRightBorderDoubleInnerBox=a>0||o>0?Dn(n.left+_,n.top+O*2/3,A-I*2/3,l-O*2/3,an.TOP_RIGHT):new ve(n.left+n.width-I*2/3,n.top+O*2/3),this.bottomRightBorderDoubleInnerBox=c>0||h>0?Dn(n.left+C,n.top+w,c-I*2/3,h-b*2/3,an.BOTTOM_RIGHT):new ve(n.left+n.width-I*2/3,n.top+n.height-b*2/3),this.bottomLeftBorderDoubleInnerBox=p>0||v>0?Dn(n.left+L*2/3,n.top+F,p-L*2/3,v-b*2/3,an.BOTTOM_LEFT):new ve(n.left+L*2/3,n.top+n.height-b*2/3),this.topLeftBorderStroke=a>0||o>0?Dn(n.left+L/2,n.top+O/2,a-L/2,o-O/2,an.TOP_LEFT):new ve(n.left+L/2,n.top+O/2),this.topRightBorderStroke=a>0||o>0?Dn(n.left+_,n.top+O/2,A-I/2,l-O/2,an.TOP_RIGHT):new ve(n.left+n.width-I/2,n.top+O/2),this.bottomRightBorderStroke=c>0||h>0?Dn(n.left+C,n.top+w,c-I/2,h-b/2,an.BOTTOM_RIGHT):new ve(n.left+n.width-I/2,n.top+n.height-b/2),this.bottomLeftBorderStroke=p>0||v>0?Dn(n.left+L/2,n.top+F,p-L/2,v-b/2,an.BOTTOM_LEFT):new ve(n.left+L/2,n.top+n.height-b/2),this.topLeftBorderBox=a>0||o>0?Dn(n.left,n.top,a,o,an.TOP_LEFT):new ve(n.left,n.top),this.topRightBorderBox=A>0||l>0?Dn(n.left+_,n.top,A,l,an.TOP_RIGHT):new ve(n.left+n.width,n.top),this.bottomRightBorderBox=c>0||h>0?Dn(n.left+C,n.top+w,c,h,an.BOTTOM_RIGHT):new ve(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=p>0||v>0?Dn(n.left,n.top+F,p,v,an.BOTTOM_LEFT):new ve(n.left,n.top+n.height),this.topLeftPaddingBox=a>0||o>0?Dn(n.left+L,n.top+O,Math.max(0,a-L),Math.max(0,o-O),an.TOP_LEFT):new ve(n.left+L,n.top+O),this.topRightPaddingBox=A>0||l>0?Dn(n.left+Math.min(_,n.width-I),n.top+O,_>n.width+I?0:Math.max(0,A-I),Math.max(0,l-O),an.TOP_RIGHT):new ve(n.left+n.width-I,n.top+O),this.bottomRightPaddingBox=c>0||h>0?Dn(n.left+Math.min(C,n.width-L),n.top+Math.min(w,n.height-b),Math.max(0,c-I),Math.max(0,h-b),an.BOTTOM_RIGHT):new ve(n.left+n.width-I,n.top+n.height-b),this.bottomLeftPaddingBox=p>0||v>0?Dn(n.left+L,n.top+Math.min(F,n.height-b),Math.max(0,p-L),Math.max(0,v-b),an.BOTTOM_LEFT):new ve(n.left+L,n.top+n.height-b),this.topLeftContentBox=a>0||o>0?Dn(n.left+L+P,n.top+O+N,Math.max(0,a-(L+P)),Math.max(0,o-(O+N)),an.TOP_LEFT):new ve(n.left+L+P,n.top+O+N),this.topRightContentBox=A>0||l>0?Dn(n.left+Math.min(_,n.width+L+P),n.top+O+N,_>n.width+L+P?0:A-L+P,l-(O+N),an.TOP_RIGHT):new ve(n.left+n.width-(I+x),n.top+O+N),this.bottomRightContentBox=c>0||h>0?Dn(n.left+Math.min(C,n.width-(L+P)),n.top+Math.min(w,n.height+O+N),Math.max(0,c-(I+x)),h-(b+S),an.BOTTOM_RIGHT):new ve(n.left+n.width-(I+x),n.top+n.height-(b+S)),this.bottomLeftContentBox=p>0||v>0?Dn(n.left+L+P,n.top+F,Math.max(0,p-(L+P)),v-(b+S),an.BOTTOM_LEFT):new ve(n.left+L+P,n.top+n.height-(b+S))}return r}(),an;(function(r){r[r.TOP_LEFT=0]="TOP_LEFT",r[r.TOP_RIGHT=1]="TOP_RIGHT",r[r.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",r[r.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(an||(an={}));var Dn=function(r,e,t,n,i){var a=4*((Math.sqrt(2)-1)/3),o=t*a,s=n*a,A=r+t,l=e+n;switch(i){case an.TOP_LEFT:return new D_(new ve(r,l),new ve(r,l-s),new ve(A-o,e),new ve(A,e));case an.TOP_RIGHT:return new D_(new ve(r,e),new ve(r+o,e),new ve(A,l-s),new ve(A,l));case an.BOTTOM_RIGHT:return new D_(new ve(A,e),new ve(A,e+s),new ve(r+o,l),new ve(r,l));case an.BOTTOM_LEFT:default:return new D_(new ve(A,l),new ve(A-o,l),new ve(r,e+s),new ve(r,e))}},Dw=function(r){return[r.topLeftBorderBox,r.topRightBorderBox,r.bottomRightBorderBox,r.bottomLeftBorderBox]},M_t=function(r){return[r.topLeftContentBox,r.topRightContentBox,r.bottomRightContentBox,r.bottomLeftContentBox]},Qw=function(r){return[r.topLeftPaddingBox,r.topRightPaddingBox,r.bottomRightPaddingBox,r.bottomLeftPaddingBox]},N_t=function(){function r(e,t,n){this.offsetX=e,this.offsetY=t,this.matrix=n,this.type=0,this.target=6}return r}(),Q_=function(){function r(e,t){this.path=e,this.target=t,this.type=1}return r}(),P_t=function(){function r(e){this.opacity=e,this.type=2,this.target=6}return r}(),U_t=function(r){return r.type===0},hG=function(r){return r.type===1},D_t=function(r){return r.type===2},z5=function(r,e){return r.length===e.length?r.some(function(t,n){return t===e[n]}):!1},Q_t=function(r,e,t,n,i){return r.map(function(a,o){switch(o){case 0:return a.add(e,t);case 1:return a.add(e+n,t);case 2:return a.add(e+n,t+i);case 3:return a.add(e,t+i)}return a})},fG=function(){function r(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return r}(),pG=function(){function r(e,t){if(this.container=e,this.parent=t,this.effects=[],this.curves=new R_t(this.container),this.container.styles.opacity<1&&this.effects.push(new P_t(this.container.styles.opacity)),this.container.styles.transform!==null){var n=this.container.bounds.left+this.container.styles.transformOrigin[0].number,i=this.container.bounds.top+this.container.styles.transformOrigin[1].number,a=this.container.styles.transform;this.effects.push(new N_t(n,i,a))}if(this.container.styles.overflowX!==0){var o=Dw(this.curves),s=Qw(this.curves);z5(o,s)?this.effects.push(new Q_(o,6)):(this.effects.push(new Q_(o,2)),this.effects.push(new Q_(s,4)))}}return r.prototype.getEffects=function(e){for(var t=[2,3].indexOf(this.container.styles.position)===-1,n=this.parent,i=this.effects.slice(0);n;){var a=n.effects.filter(function(A){return!hG(A)});if(t||n.container.styles.position!==0||!n.parent){if(i.unshift.apply(i,a),t=[2,3].indexOf(n.container.styles.position)===-1,n.container.styles.overflowX!==0){var o=Dw(n.curves),s=Qw(n.curves);z5(o,s)||i.unshift(new Q_(s,6))}}else i.unshift.apply(i,a);n=n.parent}return i.filter(function(A){return $i(A.target,e)})},r}(),gI=function(r,e,t,n){r.container.elements.forEach(function(i){var a=$i(i.flags,4),o=$i(i.flags,2),s=new pG(i,r);$i(i.styles.display,2048)&&n.push(s);var A=$i(i.flags,8)?[]:n;if(a||o){var l=a||i.styles.isPositioned()?t:e,u=new fG(s);if(i.styles.isPositioned()||i.styles.opacity<1||i.styles.isTransformed()){var c=i.styles.zIndex.order;if(c<0){var h=0;l.negativeZIndex.some(function(p,v){return c>p.element.container.styles.zIndex.order?(h=v,!1):h>0}),l.negativeZIndex.splice(h,0,u)}else if(c>0){var f=0;l.positiveZIndex.some(function(p,v){return c>=p.element.container.styles.zIndex.order?(f=v+1,!1):f>0}),l.positiveZIndex.splice(f,0,u)}else l.zeroOrAutoZIndexOrTransformedOrOpacity.push(u)}else i.styles.isFloating()?l.nonPositionedFloats.push(u):l.nonPositionedInlineLevel.push(u);gI(s,u,a?u:t,A)}else i.styles.isInlineLevel()?e.inlineLevel.push(s):e.nonInlineLevel.push(s),gI(s,e,t,A);$i(i.flags,8)&&dG(i,A)})},dG=function(r,e){for(var t=r instanceof hI?r.start:1,n=r instanceof hI?r.reversed:!1,i=0;i<e.length;i++){var a=e[i];a.container instanceof ZH&&typeof a.container.value=="number"&&a.container.value!==0&&(t=a.container.value),a.listValue=yy(t,a.container.styles.listStyleType,!0),t+=n?-1:1}},k_t=function(r){var e=new pG(r,null),t=new fG(e),n=[];return gI(e,t,t,n),dG(e.container,n),t},X5=function(r,e){switch(e){case 0:return Ns(r.topLeftBorderBox,r.topLeftPaddingBox,r.topRightBorderBox,r.topRightPaddingBox);case 1:return Ns(r.topRightBorderBox,r.topRightPaddingBox,r.bottomRightBorderBox,r.bottomRightPaddingBox);case 2:return Ns(r.bottomRightBorderBox,r.bottomRightPaddingBox,r.bottomLeftBorderBox,r.bottomLeftPaddingBox);case 3:default:return Ns(r.bottomLeftBorderBox,r.bottomLeftPaddingBox,r.topLeftBorderBox,r.topLeftPaddingBox)}},H_t=function(r,e){switch(e){case 0:return Ns(r.topLeftBorderBox,r.topLeftBorderDoubleOuterBox,r.topRightBorderBox,r.topRightBorderDoubleOuterBox);case 1:return Ns(r.topRightBorderBox,r.topRightBorderDoubleOuterBox,r.bottomRightBorderBox,r.bottomRightBorderDoubleOuterBox);case 2:return Ns(r.bottomRightBorderBox,r.bottomRightBorderDoubleOuterBox,r.bottomLeftBorderBox,r.bottomLeftBorderDoubleOuterBox);case 3:default:return Ns(r.bottomLeftBorderBox,r.bottomLeftBorderDoubleOuterBox,r.topLeftBorderBox,r.topLeftBorderDoubleOuterBox)}},G_t=function(r,e){switch(e){case 0:return Ns(r.topLeftBorderDoubleInnerBox,r.topLeftPaddingBox,r.topRightBorderDoubleInnerBox,r.topRightPaddingBox);case 1:return Ns(r.topRightBorderDoubleInnerBox,r.topRightPaddingBox,r.bottomRightBorderDoubleInnerBox,r.bottomRightPaddingBox);case 2:return Ns(r.bottomRightBorderDoubleInnerBox,r.bottomRightPaddingBox,r.bottomLeftBorderDoubleInnerBox,r.bottomLeftPaddingBox);case 3:default:return Ns(r.bottomLeftBorderDoubleInnerBox,r.bottomLeftPaddingBox,r.topLeftBorderDoubleInnerBox,r.topLeftPaddingBox)}},$_t=function(r,e){switch(e){case 0:return k_(r.topLeftBorderStroke,r.topRightBorderStroke);case 1:return k_(r.topRightBorderStroke,r.bottomRightBorderStroke);case 2:return k_(r.bottomRightBorderStroke,r.bottomLeftBorderStroke);case 3:default:return k_(r.bottomLeftBorderStroke,r.topLeftBorderStroke)}},k_=function(r,e){var t=[];return Os(r)?t.push(r.subdivide(.5,!1)):t.push(r),Os(e)?t.push(e.subdivide(.5,!0)):t.push(e),t},Ns=function(r,e,t,n){var i=[];return Os(r)?i.push(r.subdivide(.5,!1)):i.push(r),Os(t)?i.push(t.subdivide(.5,!0)):i.push(t),Os(n)?i.push(n.subdivide(.5,!0).reverse()):i.push(n),Os(e)?i.push(e.subdivide(.5,!1).reverse()):i.push(e),i},vG=function(r){var e=r.bounds,t=r.styles;return e.add(t.borderLeftWidth,t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth),-(t.borderTopWidth+t.borderBottomWidth))},kw=function(r){var e=r.styles,t=r.bounds,n=xn(e.paddingLeft,t.width),i=xn(e.paddingRight,t.width),a=xn(e.paddingTop,t.width),o=xn(e.paddingBottom,t.width);return t.add(n+e.borderLeftWidth,a+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+n+i),-(e.borderTopWidth+e.borderBottomWidth+a+o))},V_t=function(r,e){return r===0?e.bounds:r===2?kw(e):vG(e)},j_t=function(r,e){return r===0?e.bounds:r===2?kw(e):vG(e)},FT=function(r,e,t){var n=V_t(_d(r.styles.backgroundOrigin,e),r),i=j_t(_d(r.styles.backgroundClip,e),r),a=K_t(_d(r.styles.backgroundSize,e),t,n),o=a[0],s=a[1],A=um(_d(r.styles.backgroundPosition,e),n.width-o,n.height-s),l=Y_t(_d(r.styles.backgroundRepeat,e),A,a,n,i),u=Math.round(n.left+A[0]),c=Math.round(n.top+A[1]);return[l,u,c,o,s]},id=function(r){return wn(r)&&r.value===zd.AUTO},H_=function(r){return typeof r=="number"},K_t=function(r,e,t){var n=e[0],i=e[1],a=e[2],o=r[0],s=r[1];if(!o)return[0,0];if(Mi(o)&&s&&Mi(s))return[xn(o,t.width),xn(s,t.height)];var A=H_(a);if(wn(o)&&(o.value===zd.CONTAIN||o.value===zd.COVER)){if(H_(a)){var l=t.width/t.height;return l<a!=(o.value===zd.COVER)?[t.width,t.width/a]:[t.height*a,t.height]}return[t.width,t.height]}var u=H_(n),c=H_(i),h=u||c;if(id(o)&&(!s||id(s))){if(u&&c)return[n,i];if(!A&&!h)return[t.width,t.height];if(h&&A){var f=u?n:i*a,p=c?i:n/a;return[f,p]}var v=u?n:t.width,m=c?i:t.height;return[v,m]}if(A){var g=0,_=0;return Mi(o)?g=xn(o,t.width):Mi(s)&&(_=xn(s,t.height)),id(o)?g=_*a:(!s||id(s))&&(_=g/a),[g,_]}var w=null,C=null;if(Mi(o)?w=xn(o,t.width):s&&Mi(s)&&(C=xn(s,t.height)),w!==null&&(!s||id(s))&&(C=u&&c?w/n*i:t.height),C!==null&&id(o)&&(w=u&&c?C/i*n:t.width),w!==null&&C!==null)return[w,C];throw new Error("Unable to calculate background-size for element")},_d=function(r,e){var t=r[e];return typeof t>"u"?r[0]:t},Y_t=function(r,e,t,n,i){var a=e[0],o=e[1],s=t[0],A=t[1];switch(r){case 2:return[new ve(Math.round(n.left),Math.round(n.top+o)),new ve(Math.round(n.left+n.width),Math.round(n.top+o)),new ve(Math.round(n.left+n.width),Math.round(A+n.top+o)),new ve(Math.round(n.left),Math.round(A+n.top+o))];case 3:return[new ve(Math.round(n.left+a),Math.round(n.top)),new ve(Math.round(n.left+a+s),Math.round(n.top)),new ve(Math.round(n.left+a+s),Math.round(n.height+n.top)),new ve(Math.round(n.left+a),Math.round(n.height+n.top))];case 1:return[new ve(Math.round(n.left+a),Math.round(n.top+o)),new ve(Math.round(n.left+a+s),Math.round(n.top+o)),new ve(Math.round(n.left+a+s),Math.round(n.top+o+A)),new ve(Math.round(n.left+a),Math.round(n.top+o+A))];default:return[new ve(Math.round(i.left),Math.round(i.top)),new ve(Math.round(i.left+i.width),Math.round(i.top)),new ve(Math.round(i.left+i.width),Math.round(i.height+i.top)),new ve(Math.round(i.left),Math.round(i.height+i.top))]}},W_t="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",q5="Hidden Text",z_t=function(){function r(e){this._data={},this._document=e}return r.prototype.parseMetrics=function(e,t){var n=this._document.createElement("div"),i=this._document.createElement("img"),a=this._document.createElement("span"),o=this._document.body;n.style.visibility="hidden",n.style.fontFamily=e,n.style.fontSize=t,n.style.margin="0",n.style.padding="0",n.style.whiteSpace="nowrap",o.appendChild(n),i.src=W_t,i.width=1,i.height=1,i.style.margin="0",i.style.padding="0",i.style.verticalAlign="baseline",a.style.fontFamily=e,a.style.fontSize=t,a.style.margin="0",a.style.padding="0",a.appendChild(this._document.createTextNode(q5)),n.appendChild(a),n.appendChild(i);var s=i.offsetTop-a.offsetTop+2;n.removeChild(a),n.appendChild(this._document.createTextNode(q5)),n.style.lineHeight="normal",i.style.verticalAlign="super";var A=i.offsetTop-n.offsetTop+2;return o.removeChild(n),{baseline:s,middle:A}},r.prototype.getMetrics=function(e,t){var n=e+" "+t;return typeof this._data[n]>"u"&&(this._data[n]=this.parseMetrics(e,t)),this._data[n]},r}(),gG=function(){function r(e,t){this.context=e,this.options=t}return r}(),X_t=1e4,q_t=function(r){BA(e,r);function e(t,n){var i=r.call(this,t,n)||this;return i._activeEffects=[],i.canvas=n.canvas?n.canvas:document.createElement("canvas"),i.ctx=i.canvas.getContext("2d"),n.canvas||(i.canvas.width=Math.floor(n.width*n.scale),i.canvas.height=Math.floor(n.height*n.scale),i.canvas.style.width=n.width+"px",i.canvas.style.height=n.height+"px"),i.fontMetrics=new z_t(document),i.ctx.scale(i.options.scale,i.options.scale),i.ctx.translate(-n.x,-n.y),i.ctx.textBaseline="bottom",i._activeEffects=[],i.context.logger.debug("Canvas renderer initialized ("+n.width+"x"+n.height+") with scale "+n.scale),i}return e.prototype.applyEffects=function(t){for(var n=this;this._activeEffects.length;)this.popEffect();t.forEach(function(i){return n.applyEffect(i)})},e.prototype.applyEffect=function(t){this.ctx.save(),D_t(t)&&(this.ctx.globalAlpha=t.opacity),U_t(t)&&(this.ctx.translate(t.offsetX,t.offsetY),this.ctx.transform(t.matrix[0],t.matrix[1],t.matrix[2],t.matrix[3],t.matrix[4],t.matrix[5]),this.ctx.translate(-t.offsetX,-t.offsetY)),hG(t)&&(this.path(t.path),this.ctx.clip()),this._activeEffects.push(t)},e.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},e.prototype.renderStack=function(t){return io(this,void 0,void 0,function(){var n;return Qa(this,function(i){switch(i.label){case 0:return n=t.element.container.styles,n.isVisible()?[4,this.renderStackContent(t)]:[3,2];case 1:i.sent(),i.label=2;case 2:return[2]}})})},e.prototype.renderNode=function(t){return io(this,void 0,void 0,function(){return Qa(this,function(n){switch(n.label){case 0:if($i(t.container.flags,16))debugger;return t.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(t)]:[3,3];case 1:return n.sent(),[4,this.renderNodeContent(t)];case 2:n.sent(),n.label=3;case 3:return[2]}})})},e.prototype.renderTextWithLetterSpacing=function(t,n,i){var a=this;if(n===0)this.ctx.fillText(t.text,t.bounds.left,t.bounds.top+i);else{var o=BO(t.text);o.reduce(function(s,A){return a.ctx.fillText(A,s,t.bounds.top+i),s+a.ctx.measureText(A).width},t.bounds.left)}},e.prototype.createFontStyle=function(t){var n=t.fontVariant.filter(function(o){return o==="normal"||o==="small-caps"}).join(""),i=r1t(t.fontFamily).join(", "),a=r0(t.fontSize)?""+t.fontSize.number+t.fontSize.unit:t.fontSize.number+"px";return[[t.fontStyle,n,t.fontWeight,a,i].join(" "),i,a]},e.prototype.renderTextNode=function(t,n){return io(this,void 0,void 0,function(){var i,a,o,s,A,l,u,c,h=this;return Qa(this,function(f){return i=this.createFontStyle(n),a=i[0],o=i[1],s=i[2],this.ctx.font=a,this.ctx.direction=n.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",A=this.fontMetrics.getMetrics(o,s),l=A.baseline,u=A.middle,c=n.paintOrder,t.textBounds.forEach(function(p){c.forEach(function(v){switch(v){case 0:h.ctx.fillStyle=ra(n.color),h.renderTextWithLetterSpacing(p,n.letterSpacing,l);var m=n.textShadow;m.length&&p.text.trim().length&&(m.slice(0).reverse().forEach(function(g){h.ctx.shadowColor=ra(g.color),h.ctx.shadowOffsetX=g.offsetX.number*h.options.scale,h.ctx.shadowOffsetY=g.offsetY.number*h.options.scale,h.ctx.shadowBlur=g.blur.number,h.renderTextWithLetterSpacing(p,n.letterSpacing,l)}),h.ctx.shadowColor="",h.ctx.shadowOffsetX=0,h.ctx.shadowOffsetY=0,h.ctx.shadowBlur=0),n.textDecorationLine.length&&(h.ctx.fillStyle=ra(n.textDecorationColor||n.color),n.textDecorationLine.forEach(function(g){switch(g){case 1:h.ctx.fillRect(p.bounds.left,Math.round(p.bounds.top+l),p.bounds.width,1);break;case 2:h.ctx.fillRect(p.bounds.left,Math.round(p.bounds.top),p.bounds.width,1);break;case 3:h.ctx.fillRect(p.bounds.left,Math.ceil(p.bounds.top+u),p.bounds.width,1);break}}));break;case 1:n.webkitTextStrokeWidth&&p.text.trim().length&&(h.ctx.strokeStyle=ra(n.webkitTextStrokeColor),h.ctx.lineWidth=n.webkitTextStrokeWidth,h.ctx.lineJoin=window.chrome?"miter":"round",h.ctx.strokeText(p.text,p.bounds.left,p.bounds.top+l)),h.ctx.strokeStyle="",h.ctx.lineWidth=0,h.ctx.lineJoin="miter";break}})}),[2]})})},e.prototype.renderReplacedElement=function(t,n,i){if(i&&t.intrinsicWidth>0&&t.intrinsicHeight>0){var a=kw(t),o=Qw(n);this.path(o),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(i,0,0,t.intrinsicWidth,t.intrinsicHeight,a.left,a.top,a.width,a.height),this.ctx.restore()}},e.prototype.renderNodeContent=function(t){return io(this,void 0,void 0,function(){var n,i,a,o,s,A,_,_,l,u,c,h,C,f,p,F,v,m,g,_,w,C,F;return Qa(this,function(O){switch(O.label){case 0:this.applyEffects(t.getEffects(4)),n=t.container,i=t.curves,a=n.styles,o=0,s=n.textNodes,O.label=1;case 1:return o<s.length?(A=s[o],[4,this.renderTextNode(A,a)]):[3,4];case 2:O.sent(),O.label=3;case 3:return o++,[3,1];case 4:if(!(n instanceof zH))return[3,8];O.label=5;case 5:return O.trys.push([5,7,,8]),[4,this.context.cache.match(n.src)];case 6:return _=O.sent(),this.renderReplacedElement(n,i,_),[3,8];case 7:return O.sent(),this.context.logger.error("Error loading image "+n.src),[3,8];case 8:if(n instanceof XH&&this.renderReplacedElement(n,i,n.canvas),!(n instanceof qH))return[3,12];O.label=9;case 9:return O.trys.push([9,11,,12]),[4,this.context.cache.match(n.svg)];case 10:return _=O.sent(),this.renderReplacedElement(n,i,_),[3,12];case 11:return O.sent(),this.context.logger.error("Error loading svg "+n.svg.substring(0,255)),[3,12];case 12:return n instanceof eG&&n.tree?(l=new e(this.context,{scale:this.options.scale,backgroundColor:n.backgroundColor,x:0,y:0,width:n.width,height:n.height}),[4,l.render(n.tree)]):[3,14];case 13:u=O.sent(),n.width&&n.height&&this.ctx.drawImage(u,0,0,n.width,n.height,n.bounds.left,n.bounds.top,n.bounds.width,n.bounds.height),O.label=14;case 14:if(n instanceof TO&&(c=Math.min(n.bounds.width,n.bounds.height),n.type===Mw?n.checked&&(this.ctx.save(),this.path([new ve(n.bounds.left+c*.39363,n.bounds.top+c*.79),new ve(n.bounds.left+c*.16,n.bounds.top+c*.5549),new ve(n.bounds.left+c*.27347,n.bounds.top+c*.44071),new ve(n.bounds.left+c*.39694,n.bounds.top+c*.5649),new ve(n.bounds.left+c*.72983,n.bounds.top+c*.23),new ve(n.bounds.left+c*.84,n.bounds.top+c*.34085),new ve(n.bounds.left+c*.39363,n.bounds.top+c*.79)]),this.ctx.fillStyle=ra(D5),this.ctx.fill(),this.ctx.restore()):n.type===Nw&&n.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(n.bounds.left+c/2,n.bounds.top+c/2,c/4,0,Math.PI*2,!0),this.ctx.fillStyle=ra(D5),this.ctx.fill(),this.ctx.restore())),Z_t(n)&&n.value.length){switch(h=this.createFontStyle(a),C=h[0],f=h[1],p=this.fontMetrics.getMetrics(C,f).baseline,this.ctx.font=C,this.ctx.fillStyle=ra(a.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=t1t(n.styles.textAlign),F=kw(n),v=0,n.styles.textAlign){case 1:v+=F.width/2;break;case 2:v+=F.width;break}m=F.add(v,0,0,-F.height/2+1),this.ctx.save(),this.path([new ve(F.left,F.top),new ve(F.left+F.width,F.top),new ve(F.left+F.width,F.top+F.height),new ve(F.left,F.top+F.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Nm(n.value,m),a.letterSpacing,p),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!$i(n.styles.display,2048))return[3,20];if(n.styles.listStyleImage===null)return[3,19];if(g=n.styles.listStyleImage,g.type!==0)return[3,18];_=void 0,w=g.url,O.label=15;case 15:return O.trys.push([15,17,,18]),[4,this.context.cache.match(w)];case 16:return _=O.sent(),this.ctx.drawImage(_,n.bounds.left-(_.width+10),n.bounds.top),[3,18];case 17:return O.sent(),this.context.logger.error("Error loading list-style-image "+w),[3,18];case 18:return[3,20];case 19:t.listValue&&n.styles.listStyleType!==-1&&(C=this.createFontStyle(a)[0],this.ctx.font=C,this.ctx.fillStyle=ra(a.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",F=new vu(n.bounds.left,n.bounds.top+xn(n.styles.paddingTop,n.bounds.width),n.bounds.width,w5(a.lineHeight,a.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Nm(t.listValue,F),a.letterSpacing,w5(a.lineHeight,a.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),O.label=20;case 20:return[2]}})})},e.prototype.renderStackContent=function(t){return io(this,void 0,void 0,function(){var n,i,g,a,o,g,s,A,g,l,u,g,c,h,g,f,p,g,v,m,g;return Qa(this,function(_){switch(_.label){case 0:if($i(t.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(t.element)];case 1:_.sent(),n=0,i=t.negativeZIndex,_.label=2;case 2:return n<i.length?(g=i[n],[4,this.renderStack(g)]):[3,5];case 3:_.sent(),_.label=4;case 4:return n++,[3,2];case 5:return[4,this.renderNodeContent(t.element)];case 6:_.sent(),a=0,o=t.nonInlineLevel,_.label=7;case 7:return a<o.length?(g=o[a],[4,this.renderNode(g)]):[3,10];case 8:_.sent(),_.label=9;case 9:return a++,[3,7];case 10:s=0,A=t.nonPositionedFloats,_.label=11;case 11:return s<A.length?(g=A[s],[4,this.renderStack(g)]):[3,14];case 12:_.sent(),_.label=13;case 13:return s++,[3,11];case 14:l=0,u=t.nonPositionedInlineLevel,_.label=15;case 15:return l<u.length?(g=u[l],[4,this.renderStack(g)]):[3,18];case 16:_.sent(),_.label=17;case 17:return l++,[3,15];case 18:c=0,h=t.inlineLevel,_.label=19;case 19:return c<h.length?(g=h[c],[4,this.renderNode(g)]):[3,22];case 20:_.sent(),_.label=21;case 21:return c++,[3,19];case 22:f=0,p=t.zeroOrAutoZIndexOrTransformedOrOpacity,_.label=23;case 23:return f<p.length?(g=p[f],[4,this.renderStack(g)]):[3,26];case 24:_.sent(),_.label=25;case 25:return f++,[3,23];case 26:v=0,m=t.positiveZIndex,_.label=27;case 27:return v<m.length?(g=m[v],[4,this.renderStack(g)]):[3,30];case 28:_.sent(),_.label=29;case 29:return v++,[3,27];case 30:return[2]}})})},e.prototype.mask=function(t){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(t.slice(0).reverse()),this.ctx.closePath()},e.prototype.path=function(t){this.ctx.beginPath(),this.formatPath(t),this.ctx.closePath()},e.prototype.formatPath=function(t){var n=this;t.forEach(function(i,a){var o=Os(i)?i.start:i;a===0?n.ctx.moveTo(o.x,o.y):n.ctx.lineTo(o.x,o.y),Os(i)&&n.ctx.bezierCurveTo(i.startControl.x,i.startControl.y,i.endControl.x,i.endControl.y,i.end.x,i.end.y)})},e.prototype.renderRepeat=function(t,n,i,a){this.path(t),this.ctx.fillStyle=n,this.ctx.translate(i,a),this.ctx.fill(),this.ctx.translate(-i,-a)},e.prototype.resizeImage=function(t,n,i){var a;if(t.width===n&&t.height===i)return t;var o=(a=this.canvas.ownerDocument)!==null&&a!==void 0?a:document,s=o.createElement("canvas");s.width=Math.max(1,n),s.height=Math.max(1,i);var A=s.getContext("2d");return A.drawImage(t,0,0,t.width,t.height,0,0,n,i),s},e.prototype.renderBackgroundImage=function(t){return io(this,void 0,void 0,function(){var n,i,a,o,s,A;return Qa(this,function(l){switch(l.label){case 0:n=t.styles.backgroundImage.length-1,i=function(u){var c,h,f,N,q,rt,P,U,b,p,N,q,rt,P,U,v,m,g,_,w,C,F,O,I,b,L,N,x,S,P,U,tt,q,rt,nt,At,ct,bt,M,Y,z,H;return Qa(this,function(J){switch(J.label){case 0:if(u.type!==0)return[3,5];c=void 0,h=u.url,J.label=1;case 1:return J.trys.push([1,3,,4]),[4,a.context.cache.match(h)];case 2:return c=J.sent(),[3,4];case 3:return J.sent(),a.context.logger.error("Error loading background-image "+h),[3,4];case 4:return c&&(f=FT(t,n,[c.width,c.height,c.width/c.height]),N=f[0],q=f[1],rt=f[2],P=f[3],U=f[4],b=a.ctx.createPattern(a.resizeImage(c,P,U),"repeat"),a.renderRepeat(N,b,q,rt)),[3,6];case 5:Umt(u)?(p=FT(t,n,[null,null,null]),N=p[0],q=p[1],rt=p[2],P=p[3],U=p[4],v=Omt(u.angle,P,U),m=v[0],g=v[1],_=v[2],w=v[3],C=v[4],F=document.createElement("canvas"),F.width=P,F.height=U,O=F.getContext("2d"),I=O.createLinearGradient(g,w,_,C),y5(u.stops,m).forEach(function(ot){return I.addColorStop(ot.stop,ra(ot.color))}),O.fillStyle=I,O.fillRect(0,0,P,U),P>0&&U>0&&(b=a.ctx.createPattern(F,"repeat"),a.renderRepeat(N,b,q,rt))):Dmt(u)&&(L=FT(t,n,[null,null,null]),N=L[0],x=L[1],S=L[2],P=L[3],U=L[4],tt=u.position.length===0?[wO]:u.position,q=xn(tt[0],P),rt=xn(tt[tt.length-1],U),nt=Rmt(u,q,rt,P,U),At=nt[0],ct=nt[1],At>0&&ct>0&&(bt=a.ctx.createRadialGradient(x+q,S+rt,0,x+q,S+rt,At),y5(u.stops,At*2).forEach(function(ot){return bt.addColorStop(ot.stop,ra(ot.color))}),a.path(N),a.ctx.fillStyle=bt,At!==ct?(M=t.bounds.left+.5*t.bounds.width,Y=t.bounds.top+.5*t.bounds.height,z=ct/At,H=1/z,a.ctx.save(),a.ctx.translate(M,Y),a.ctx.transform(1,0,0,z,0,0),a.ctx.translate(-M,-Y),a.ctx.fillRect(x,H*(S-Y)+Y,P,U*H),a.ctx.restore()):a.ctx.fill())),J.label=6;case 6:return n--,[2]}})},a=this,o=0,s=t.styles.backgroundImage.slice(0).reverse(),l.label=1;case 1:return o<s.length?(A=s[o],[5,i(A)]):[3,4];case 2:l.sent(),l.label=3;case 3:return o++,[3,1];case 4:return[2]}})})},e.prototype.renderSolidBorder=function(t,n,i){return io(this,void 0,void 0,function(){return Qa(this,function(a){return this.path(X5(i,n)),this.ctx.fillStyle=ra(t),this.ctx.fill(),[2]})})},e.prototype.renderDoubleBorder=function(t,n,i,a){return io(this,void 0,void 0,function(){var o,s;return Qa(this,function(A){switch(A.label){case 0:return n<3?[4,this.renderSolidBorder(t,i,a)]:[3,2];case 1:return A.sent(),[2];case 2:return o=H_t(a,i),this.path(o),this.ctx.fillStyle=ra(t),this.ctx.fill(),s=G_t(a,i),this.path(s),this.ctx.fill(),[2]}})})},e.prototype.renderNodeBackgroundAndBorders=function(t){return io(this,void 0,void 0,function(){var n,i,a,o,s,A,l,u,c=this;return Qa(this,function(h){switch(h.label){case 0:return this.applyEffects(t.getEffects(2)),n=t.container.styles,i=!Uc(n.backgroundColor)||n.backgroundImage.length,a=[{style:n.borderTopStyle,color:n.borderTopColor,width:n.borderTopWidth},{style:n.borderRightStyle,color:n.borderRightColor,width:n.borderRightWidth},{style:n.borderBottomStyle,color:n.borderBottomColor,width:n.borderBottomWidth},{style:n.borderLeftStyle,color:n.borderLeftColor,width:n.borderLeftWidth}],o=J_t(_d(n.backgroundClip,0),t.curves),i||n.boxShadow.length?(this.ctx.save(),this.path(o),this.ctx.clip(),Uc(n.backgroundColor)||(this.ctx.fillStyle=ra(n.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(t.container)]):[3,2];case 1:h.sent(),this.ctx.restore(),n.boxShadow.slice(0).reverse().forEach(function(f){c.ctx.save();var p=Dw(t.curves),v=f.inset?0:X_t,m=Q_t(p,-v+(f.inset?1:-1)*f.spread.number,(f.inset?1:-1)*f.spread.number,f.spread.number*(f.inset?-2:2),f.spread.number*(f.inset?-2:2));f.inset?(c.path(p),c.ctx.clip(),c.mask(m)):(c.mask(p),c.ctx.clip(),c.path(m)),c.ctx.shadowOffsetX=f.offsetX.number+v,c.ctx.shadowOffsetY=f.offsetY.number,c.ctx.shadowColor=ra(f.color),c.ctx.shadowBlur=f.blur.number,c.ctx.fillStyle=f.inset?ra(f.color):"rgba(0,0,0,1)",c.ctx.fill(),c.ctx.restore()}),h.label=2;case 2:s=0,A=0,l=a,h.label=3;case 3:return A<l.length?(u=l[A],u.style!==0&&!Uc(u.color)&&u.width>0?u.style!==2?[3,5]:[4,this.renderDashedDottedBorder(u.color,u.width,s,t.curves,2)]:[3,11]):[3,13];case 4:return h.sent(),[3,11];case 5:return u.style!==3?[3,7]:[4,this.renderDashedDottedBorder(u.color,u.width,s,t.curves,3)];case 6:return h.sent(),[3,11];case 7:return u.style!==4?[3,9]:[4,this.renderDoubleBorder(u.color,u.width,s,t.curves)];case 8:return h.sent(),[3,11];case 9:return[4,this.renderSolidBorder(u.color,s,t.curves)];case 10:h.sent(),h.label=11;case 11:s++,h.label=12;case 12:return A++,[3,3];case 13:return[2]}})})},e.prototype.renderDashedDottedBorder=function(t,n,i,a,o){return io(this,void 0,void 0,function(){var s,A,l,u,c,h,f,p,v,m,g,_,w,C,F,O,F,O;return Qa(this,function(I){return this.ctx.save(),s=$_t(a,i),A=X5(a,i),o===2&&(this.path(A),this.ctx.clip()),Os(A[0])?(l=A[0].start.x,u=A[0].start.y):(l=A[0].x,u=A[0].y),Os(A[1])?(c=A[1].end.x,h=A[1].end.y):(c=A[1].x,h=A[1].y),i===0||i===2?f=Math.abs(l-c):f=Math.abs(u-h),this.ctx.beginPath(),o===3?this.formatPath(s):this.formatPath(A.slice(0,2)),p=n<3?n*3:n*2,v=n<3?n*2:n,o===3&&(p=n,v=n),m=!0,f<=p*2?m=!1:f<=p*2+v?(g=f/(2*p+v),p*=g,v*=g):(_=Math.floor((f+v)/(p+v)),w=(f-_*p)/(_-1),C=(f-(_+1)*p)/_,v=C<=0||Math.abs(v-w)<Math.abs(v-C)?w:C),m&&(o===3?this.ctx.setLineDash([0,p+v]):this.ctx.setLineDash([p,v])),o===3?(this.ctx.lineCap="round",this.ctx.lineWidth=n):this.ctx.lineWidth=n*2+1.1,this.ctx.strokeStyle=ra(t),this.ctx.stroke(),this.ctx.setLineDash([]),o===2&&(Os(A[0])&&(F=A[3],O=A[0],this.ctx.beginPath(),this.formatPath([new ve(F.end.x,F.end.y),new ve(O.start.x,O.start.y)]),this.ctx.stroke()),Os(A[1])&&(F=A[1],O=A[2],this.ctx.beginPath(),this.formatPath([new ve(F.end.x,F.end.y),new ve(O.start.x,O.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},e.prototype.render=function(t){return io(this,void 0,void 0,function(){var n;return Qa(this,function(i){switch(i.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=ra(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),n=k_t(t),[4,this.renderStack(n)];case 1:return i.sent(),this.applyEffects([]),[2,this.canvas]}})})},e}(gG),Z_t=function(r){return r instanceof tG||r instanceof JH?!0:r instanceof TO&&r.type!==Nw&&r.type!==Mw},J_t=function(r,e){switch(r){case 0:return Dw(e);case 2:return M_t(e);case 1:default:return Qw(e)}},t1t=function(r){switch(r){case 1:return"center";case 2:return"right";case 0:default:return"left"}},e1t=["-apple-system","system-ui"],r1t=function(r){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?r.filter(function(e){return e1t.indexOf(e)===-1}):r},n1t=function(r){BA(e,r);function e(t,n){var i=r.call(this,t,n)||this;return i.canvas=n.canvas?n.canvas:document.createElement("canvas"),i.ctx=i.canvas.getContext("2d"),i.options=n,i.canvas.width=Math.floor(n.width*n.scale),i.canvas.height=Math.floor(n.height*n.scale),i.canvas.style.width=n.width+"px",i.canvas.style.height=n.height+"px",i.ctx.scale(i.options.scale,i.options.scale),i.ctx.translate(-n.x,-n.y),i.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+n.width+"x"+n.height+" at "+n.x+","+n.y+") with scale "+n.scale),i}return e.prototype.render=function(t){return io(this,void 0,void 0,function(){var n,i;return Qa(this,function(a){switch(a.label){case 0:return n=cI(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,t),[4,i1t(n)];case 1:return i=a.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=ra(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(i,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},e}(gG),i1t=function(r){return new Promise(function(e,t){var n=new Image;n.onload=function(){e(n)},n.onerror=t,n.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(r))})},a1t=function(){function r(e){var t=e.id,n=e.enabled;this.id=t,this.enabled=n,this.start=Date.now()}return r.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,y_([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},r.prototype.getTime=function(){return Date.now()-this.start},r.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,y_([this.id,this.getTime()+"ms"],e))},r.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,y_([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},r.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,y_([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},r.instances={},r}(),o1t=function(){function r(e,t){var n;this.windowBounds=t,this.instanceName="#"+r.instanceCount++,this.logger=new a1t({id:this.instanceName,enabled:e.logging}),this.cache=(n=e.cache)!==null&&n!==void 0?n:new b_t(this,e)}return r.instanceCount=1,r}(),s1t=function(r,e){return e===void 0&&(e={}),A1t(r,e)};typeof window<"u"&&cG.setContext(window);var A1t=function(r,e){return io(void 0,void 0,void 0,function(){var t,n,i,a,o,s,A,l,u,c,h,f,p,v,m,g,_,w,C,F,I,O,I,b,L,N,x,S,P,U,tt,q,rt,nt,At,ct,bt,M,Y,z;return Qa(this,function(H){switch(H.label){case 0:if(!r||typeof r!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(t=r.ownerDocument,!t)throw new Error("Element is not attached to a Document");if(n=t.defaultView,!n)throw new Error("Document is not attached to a Window");return i={allowTaint:(b=e.allowTaint)!==null&&b!==void 0?b:!1,imageTimeout:(L=e.imageTimeout)!==null&&L!==void 0?L:15e3,proxy:e.proxy,useCORS:(N=e.useCORS)!==null&&N!==void 0?N:!1},a=Xx({logging:(x=e.logging)!==null&&x!==void 0?x:!0,cache:e.cache},i),o={windowWidth:(S=e.windowWidth)!==null&&S!==void 0?S:n.innerWidth,windowHeight:(P=e.windowHeight)!==null&&P!==void 0?P:n.innerHeight,scrollX:(U=e.scrollX)!==null&&U!==void 0?U:n.pageXOffset,scrollY:(tt=e.scrollY)!==null&&tt!==void 0?tt:n.pageYOffset},s=new vu(o.scrollX,o.scrollY,o.windowWidth,o.windowHeight),A=new o1t(a,s),l=(q=e.foreignObjectRendering)!==null&&q!==void 0?q:!1,u={allowTaint:(rt=e.allowTaint)!==null&&rt!==void 0?rt:!1,onclone:e.onclone,ignoreElements:e.ignoreElements,inlineImages:l,copyStyles:l},A.logger.debug("Starting document clone with size "+s.width+"x"+s.height+" scrolled to "+-s.left+","+-s.top),c=new Y5(A,r,u),h=c.clonedReferenceElement,h?[4,c.toIFrame(t,s)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return f=H.sent(),p=bO(h)||l_t(h)?Qvt(h.ownerDocument):oC(A,h),v=p.width,m=p.height,g=p.left,_=p.top,w=l1t(A,h,e.backgroundColor),C={canvas:e.canvas,backgroundColor:w,scale:(At=(nt=e.scale)!==null&&nt!==void 0?nt:n.devicePixelRatio)!==null&&At!==void 0?At:1,x:((ct=e.x)!==null&&ct!==void 0?ct:0)+g,y:((bt=e.y)!==null&&bt!==void 0?bt:0)+_,width:(M=e.width)!==null&&M!==void 0?M:Math.ceil(v),height:(Y=e.height)!==null&&Y!==void 0?Y:Math.ceil(m)},l?(A.logger.debug("Document cloned, using foreign object rendering"),I=new n1t(A,C),[4,I.render(h)]):[3,3];case 2:return F=H.sent(),[3,5];case 3:return A.logger.debug("Document cloned, element located at "+g+","+_+" with size "+v+"x"+m+" using computed rendering"),A.logger.debug("Starting DOM parsing"),O=nG(A,h),w===O.styles.backgroundColor&&(O.styles.backgroundColor=lu.TRANSPARENT),A.logger.debug("Starting renderer for element at "+C.x+","+C.y+" with size "+C.width+"x"+C.height),I=new q_t(A,C),[4,I.render(O)];case 4:F=H.sent(),H.label=5;case 5:return(!((z=e.removeContainer)!==null&&z!==void 0)||z)&&(Y5.destroy(f)||A.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),A.logger.debug("Finished rendering"),[2,F]}})})},l1t=function(r,e,t){var n=e.ownerDocument,i=n.documentElement?Rm(r,getComputedStyle(n.documentElement).backgroundColor):lu.TRANSPARENT,a=n.body?Rm(r,getComputedStyle(n.body).backgroundColor):lu.TRANSPARENT,o=typeof t=="string"?Rm(r,t):t===null?lu.TRANSPARENT:4294967295;return e===n.documentElement?Uc(i)?Uc(a)?o:a:i:o},u1t=Object.freeze(Object.defineProperty({__proto__:null,default:s1t},Symbol.toStringTag,{value:"Module"}));/*! @license DOMPurify 2.3.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.3.5/LICENSE */function c1t(r){if(Array.isArray(r)){for(var e=0,t=Array(r.length);e<r.length;e++)t[e]=r[e];return t}else return Array.from(r)}var h1t=Object.hasOwnProperty,Z5=Object.setPrototypeOf,f1t=Object.isFrozen,p1t=Object.getPrototypeOf,d1t=Object.getOwnPropertyDescriptor,_o=Object.freeze,gu=Object.seal,v1t=Object.create,mG=typeof Reflect<"u"&&Reflect,Hw=mG.apply,mI=mG.construct;Hw||(Hw=function(e,t,n){return e.apply(t,n)});_o||(_o=function(e){return e});gu||(gu=function(e){return e});mI||(mI=function(e,t){return new(Function.prototype.bind.apply(e,[null].concat(c1t(t))))});var g1t=gA(Array.prototype.forEach),J5=gA(Array.prototype.pop),kg=gA(Array.prototype.push),S1=gA(String.prototype.toLowerCase),tU=gA(String.prototype.match),lc=gA(String.prototype.replace),m1t=gA(String.prototype.indexOf),y1t=gA(String.prototype.trim),is=gA(RegExp.prototype.test),OT=_1t(TypeError);function gA(r){return function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return Hw(r,e,n)}}function _1t(r){return function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return mI(r,t)}}function br(r,e){Z5&&Z5(r,null);for(var t=e.length;t--;){var n=e[t];if(typeof n=="string"){var i=S1(n);i!==n&&(f1t(e)||(e[t]=i),n=i)}r[n]=!0}return r}function Vh(r){var e=v1t(null),t=void 0;for(t in r)Hw(h1t,r,[t])&&(e[t]=r[t]);return e}function G_(r,e){for(;r!==null;){var t=d1t(r,e);if(t){if(t.get)return gA(t.get);if(typeof t.value=="function")return gA(t.value)}r=p1t(r)}function n(i){return console.warn("fallback value for",i),null}return n}var eU=_o(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),RT=_o(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),MT=_o(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),w1t=_o(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),NT=_o(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),E1t=_o(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),rU=_o(["#text"]),nU=_o(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),PT=_o(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),iU=_o(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),$_=_o(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),C1t=gu(/\{\{[\s\S]*|[\s\S]*\}\}/gm),B1t=gu(/<%[\s\S]*|[\s\S]*%>/gm),T1t=gu(/^data-[\-\w.\u00B7-\uFFFF]/),b1t=gu(/^aria-[\-\w]+$/),S1t=gu(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),x1t=gu(/^(?:\w+script|data):/i),I1t=gu(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),fm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r};function $A(r){if(Array.isArray(r)){for(var e=0,t=Array(r.length);e<r.length;e++)t[e]=r[e];return t}else return Array.from(r)}var L1t=function(){return typeof window>"u"?null:window},F1t=function(e,t){if((typeof e>"u"?"undefined":fm(e))!=="object"||typeof e.createPolicy!="function")return null;var n=null,i="data-tt-policy-suffix";t.currentScript&&t.currentScript.hasAttribute(i)&&(n=t.currentScript.getAttribute(i));var a="dompurify"+(n?"#"+n:"");try{return e.createPolicy(a,{createHTML:function(s){return s}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}};function yG(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:L1t(),e=function(_t){return yG(_t)};if(e.version="2.3.5",e.removed=[],!r||!r.document||r.document.nodeType!==9)return e.isSupported=!1,e;var t=r.document,n=r.document,i=r.DocumentFragment,a=r.HTMLTemplateElement,o=r.Node,s=r.Element,A=r.NodeFilter,l=r.NamedNodeMap,u=l===void 0?r.NamedNodeMap||r.MozNamedAttrMap:l,c=r.HTMLFormElement,h=r.DOMParser,f=r.trustedTypes,p=s.prototype,v=G_(p,"cloneNode"),m=G_(p,"nextSibling"),g=G_(p,"childNodes"),_=G_(p,"parentNode");if(typeof a=="function"){var w=n.createElement("template");w.content&&w.content.ownerDocument&&(n=w.content.ownerDocument)}var C=F1t(f,t),F=C?C.createHTML(""):"",O=n,I=O.implementation,b=O.createNodeIterator,L=O.createDocumentFragment,N=O.getElementsByTagName,x=t.importNode,S={};try{S=Vh(n).documentMode?n.documentMode:{}}catch{}var P={};e.isSupported=typeof _=="function"&&I&&typeof I.createHTMLDocument<"u"&&S!==9;var U=C1t,tt=B1t,q=T1t,rt=b1t,nt=x1t,At=I1t,ct=S1t,bt=null,M=br({},[].concat($A(eU),$A(RT),$A(MT),$A(NT),$A(rU))),Y=null,z=br({},[].concat($A(nU),$A(PT),$A(iU),$A($_))),H=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),J=null,ot=null,ut=!0,X=!0,It=!1,at=!1,j=!1,Z=!1,ft=!1,it=!1,V=!1,Ot=!1,Mt=!0,Et=!0,Bt=!1,Ct={},Rt=null,Nt=br({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Dt=null,Yt=br({},["audio","video","img","source","image","track"]),te=null,Ae=br({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),oe="http://www.w3.org/1998/Math/MathML",Jt="http://www.w3.org/2000/svg",fe="http://www.w3.org/1999/xhtml",qt=fe,rr=!1,ke=void 0,_r=["application/xhtml+xml","text/html"],Ne="text/html",Pe=void 0,kr=null,se=n.createElement("form"),ui=function(_t){return _t instanceof RegExp||_t instanceof Function},dr=function(_t){kr&&kr===_t||((!_t||(typeof _t>"u"?"undefined":fm(_t))!=="object")&&(_t={}),_t=Vh(_t),bt="ALLOWED_TAGS"in _t?br({},_t.ALLOWED_TAGS):M,Y="ALLOWED_ATTR"in _t?br({},_t.ALLOWED_ATTR):z,te="ADD_URI_SAFE_ATTR"in _t?br(Vh(Ae),_t.ADD_URI_SAFE_ATTR):Ae,Dt="ADD_DATA_URI_TAGS"in _t?br(Vh(Yt),_t.ADD_DATA_URI_TAGS):Yt,Rt="FORBID_CONTENTS"in _t?br({},_t.FORBID_CONTENTS):Nt,J="FORBID_TAGS"in _t?br({},_t.FORBID_TAGS):{},ot="FORBID_ATTR"in _t?br({},_t.FORBID_ATTR):{},Ct="USE_PROFILES"in _t?_t.USE_PROFILES:!1,ut=_t.ALLOW_ARIA_ATTR!==!1,X=_t.ALLOW_DATA_ATTR!==!1,It=_t.ALLOW_UNKNOWN_PROTOCOLS||!1,at=_t.SAFE_FOR_TEMPLATES||!1,j=_t.WHOLE_DOCUMENT||!1,it=_t.RETURN_DOM||!1,V=_t.RETURN_DOM_FRAGMENT||!1,Ot=_t.RETURN_TRUSTED_TYPE||!1,ft=_t.FORCE_BODY||!1,Mt=_t.SANITIZE_DOM!==!1,Et=_t.KEEP_CONTENT!==!1,Bt=_t.IN_PLACE||!1,ct=_t.ALLOWED_URI_REGEXP||ct,qt=_t.NAMESPACE||fe,_t.CUSTOM_ELEMENT_HANDLING&&ui(_t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(H.tagNameCheck=_t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),_t.CUSTOM_ELEMENT_HANDLING&&ui(_t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(H.attributeNameCheck=_t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),_t.CUSTOM_ELEMENT_HANDLING&&typeof _t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(H.allowCustomizedBuiltInElements=_t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ke=_r.indexOf(_t.PARSER_MEDIA_TYPE)===-1?ke=Ne:ke=_t.PARSER_MEDIA_TYPE,Pe=ke==="application/xhtml+xml"?function($t){return $t}:S1,at&&(X=!1),V&&(it=!0),Ct&&(bt=br({},[].concat($A(rU))),Y=[],Ct.html===!0&&(br(bt,eU),br(Y,nU)),Ct.svg===!0&&(br(bt,RT),br(Y,PT),br(Y,$_)),Ct.svgFilters===!0&&(br(bt,MT),br(Y,PT),br(Y,$_)),Ct.mathMl===!0&&(br(bt,NT),br(Y,iU),br(Y,$_))),_t.ADD_TAGS&&(bt===M&&(bt=Vh(bt)),br(bt,_t.ADD_TAGS)),_t.ADD_ATTR&&(Y===z&&(Y=Vh(Y)),br(Y,_t.ADD_ATTR)),_t.ADD_URI_SAFE_ATTR&&br(te,_t.ADD_URI_SAFE_ATTR),_t.FORBID_CONTENTS&&(Rt===Nt&&(Rt=Vh(Rt)),br(Rt,_t.FORBID_CONTENTS)),Et&&(bt["#text"]=!0),j&&br(bt,["html","head","body"]),bt.table&&(br(bt,["tbody"]),delete J.tbody),_o&&_o(_t),kr=_t)},Jn=br({},["mi","mo","mn","ms","mtext"]),Kr=br({},["foreignobject","desc","title","annotation-xml"]),Yr=br({},RT);br(Yr,MT),br(Yr,w1t);var He=br({},NT);br(He,E1t);var xr=function(_t){var $t=_(_t);(!$t||!$t.tagName)&&($t={namespaceURI:fe,tagName:"template"});var ne=S1(_t.tagName),Ze=S1($t.tagName);if(_t.namespaceURI===Jt)return $t.namespaceURI===fe?ne==="svg":$t.namespaceURI===oe?ne==="svg"&&(Ze==="annotation-xml"||Jn[Ze]):Boolean(Yr[ne]);if(_t.namespaceURI===oe)return $t.namespaceURI===fe?ne==="math":$t.namespaceURI===Jt?ne==="math"&&Kr[Ze]:Boolean(He[ne]);if(_t.namespaceURI===fe){if($t.namespaceURI===Jt&&!Kr[Ze]||$t.namespaceURI===oe&&!Jn[Ze])return!1;var Ir=br({},["title","style","font","a","script"]);return!He[ne]&&(Ir[ne]||!Yr[ne])}return!1},kn=function(_t){kg(e.removed,{element:_t});try{_t.parentNode.removeChild(_t)}catch{try{_t.outerHTML=F}catch{_t.remove()}}},mn=function(_t,$t){try{kg(e.removed,{attribute:$t.getAttributeNode(_t),from:$t})}catch{kg(e.removed,{attribute:null,from:$t})}if($t.removeAttribute(_t),_t==="is"&&!Y[_t])if(it||V)try{kn($t)}catch{}else try{$t.setAttribute(_t,"")}catch{}},ci=function(_t){var $t=void 0,ne=void 0;if(ft)_t="<remove></remove>"+_t;else{var Ze=tU(_t,/^[\r\n\t ]+/);ne=Ze&&Ze[0]}ke==="application/xhtml+xml"&&(_t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+_t+"</body></html>");var Ir=C?C.createHTML(_t):_t;if(qt===fe)try{$t=new h().parseFromString(Ir,ke)}catch{}if(!$t||!$t.documentElement){$t=I.createDocument(qt,"template",null);try{$t.documentElement.innerHTML=rr?"":Ir}catch{}}var cn=$t.body||$t.documentElement;return _t&&ne&&cn.insertBefore(n.createTextNode(ne),cn.childNodes[0]||null),qt===fe?N.call($t,j?"html":"body")[0]:j?$t.documentElement:cn},hi=function(_t){return b.call(_t.ownerDocument||_t,_t,A.SHOW_ELEMENT|A.SHOW_COMMENT|A.SHOW_TEXT,null,!1)},Ue=function(_t){return _t instanceof c&&(typeof _t.nodeName!="string"||typeof _t.textContent!="string"||typeof _t.removeChild!="function"||!(_t.attributes instanceof u)||typeof _t.removeAttribute!="function"||typeof _t.setAttribute!="function"||typeof _t.namespaceURI!="string"||typeof _t.insertBefore!="function")},ti=function(_t){return(typeof o>"u"?"undefined":fm(o))==="object"?_t instanceof o:_t&&(typeof _t>"u"?"undefined":fm(_t))==="object"&&typeof _t.nodeType=="number"&&typeof _t.nodeName=="string"},En=function(_t,$t,ne){P[_t]&&g1t(P[_t],function(Ze){Ze.call(e,$t,ne,kr)})},fi=function(_t){var $t=void 0;if(En("beforeSanitizeElements",_t,null),Ue(_t)||tU(_t.nodeName,/[\u0080-\uFFFF]/))return kn(_t),!0;var ne=Pe(_t.nodeName);if(En("uponSanitizeElement",_t,{tagName:ne,allowedTags:bt}),!ti(_t.firstElementChild)&&(!ti(_t.content)||!ti(_t.content.firstElementChild))&&is(/<[/\w]/g,_t.innerHTML)&&is(/<[/\w]/g,_t.textContent)||ne==="select"&&is(/<template/i,_t.innerHTML))return kn(_t),!0;if(!bt[ne]||J[ne]){if(Et&&!Rt[ne]){var Ze=_(_t)||_t.parentNode,Ir=g(_t)||_t.childNodes;if(Ir&&Ze)for(var cn=Ir.length,hn=cn-1;hn>=0;--hn)Ze.insertBefore(v(Ir[hn],!0),m(_t))}return!J[ne]&&Cr(ne)&&(H.tagNameCheck instanceof RegExp&&is(H.tagNameCheck,ne)||H.tagNameCheck instanceof Function&&H.tagNameCheck(ne))?!1:(kn(_t),!0)}return _t instanceof s&&!xr(_t)||(ne==="noscript"||ne==="noembed")&&is(/<\/no(script|embed)/i,_t.innerHTML)?(kn(_t),!0):(at&&_t.nodeType===3&&($t=_t.textContent,$t=lc($t,U," "),$t=lc($t,tt," "),_t.textContent!==$t&&(kg(e.removed,{element:_t.cloneNode()}),_t.textContent=$t)),En("afterSanitizeElements",_t,null),!1)},un=function(_t,$t,ne){if(Mt&&($t==="id"||$t==="name")&&(ne in n||ne in se))return!1;if(!(X&&!ot[$t]&&is(q,$t))){if(!(ut&&is(rt,$t))){if(!Y[$t]||ot[$t]){if(!(Cr(_t)&&(H.tagNameCheck instanceof RegExp&&is(H.tagNameCheck,_t)||H.tagNameCheck instanceof Function&&H.tagNameCheck(_t))&&(H.attributeNameCheck instanceof RegExp&&is(H.attributeNameCheck,$t)||H.attributeNameCheck instanceof Function&&H.attributeNameCheck($t))||$t==="is"&&H.allowCustomizedBuiltInElements&&(H.tagNameCheck instanceof RegExp&&is(H.tagNameCheck,ne)||H.tagNameCheck instanceof Function&&H.tagNameCheck(ne))))return!1}else if(!te[$t]){if(!is(ct,lc(ne,At,""))){if(!(($t==="src"||$t==="xlink:href"||$t==="href")&&_t!=="script"&&m1t(ne,"data:")===0&&Dt[_t])){if(!(It&&!is(nt,lc(ne,At,"")))){if(ne)return!1}}}}}}return!0},Cr=function(_t){return _t.indexOf("-")>0},yn=function(_t){var $t=void 0,ne=void 0,Ze=void 0,Ir=void 0;En("beforeSanitizeAttributes",_t,null);var cn=_t.attributes;if(cn){var hn={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Y};for(Ir=cn.length;Ir--;){$t=cn[Ir];var jo=$t,pi=jo.name,$s=jo.namespaceURI;if(ne=y1t($t.value),Ze=Pe(pi),hn.attrName=Ze,hn.attrValue=ne,hn.keepAttr=!0,hn.forceKeepAttr=void 0,En("uponSanitizeAttribute",_t,hn),ne=hn.attrValue,!hn.forceKeepAttr&&(mn(pi,_t),!!hn.keepAttr)){if(is(/\/>/i,ne)){mn(pi,_t);continue}at&&(ne=lc(ne,U," "),ne=lc(ne,tt," "));var TA=Pe(_t.nodeName);if(un(TA,Ze,ne))try{$s?_t.setAttributeNS($s,pi,ne):_t.setAttribute(pi,ne),J5(e.removed)}catch{}}}En("afterSanitizeAttributes",_t,null)}},Za=function pe(_t){var $t=void 0,ne=hi(_t);for(En("beforeSanitizeShadowDOM",_t,null);$t=ne.nextNode();)En("uponSanitizeShadowNode",$t,null),!fi($t)&&($t.content instanceof i&&pe($t.content),yn($t));En("afterSanitizeShadowDOM",_t,null)};return e.sanitize=function(pe,_t){var $t=void 0,ne=void 0,Ze=void 0,Ir=void 0,cn=void 0;if(rr=!pe,rr&&(pe="<!-->"),typeof pe!="string"&&!ti(pe)){if(typeof pe.toString!="function")throw OT("toString is not a function");if(pe=pe.toString(),typeof pe!="string")throw OT("dirty is not a string, aborting")}if(!e.isSupported){if(fm(r.toStaticHTML)==="object"||typeof r.toStaticHTML=="function"){if(typeof pe=="string")return r.toStaticHTML(pe);if(ti(pe))return r.toStaticHTML(pe.outerHTML)}return pe}if(Z||dr(_t),e.removed=[],typeof pe=="string"&&(Bt=!1),Bt){if(pe.nodeName){var hn=Pe(pe.nodeName);if(!bt[hn]||J[hn])throw OT("root node is forbidden and cannot be sanitized in-place")}}else if(pe instanceof o)$t=ci("<!---->"),ne=$t.ownerDocument.importNode(pe,!0),ne.nodeType===1&&ne.nodeName==="BODY"||ne.nodeName==="HTML"?$t=ne:$t.appendChild(ne);else{if(!it&&!at&&!j&&pe.indexOf("<")===-1)return C&&Ot?C.createHTML(pe):pe;if($t=ci(pe),!$t)return it?null:Ot?F:""}$t&&ft&&kn($t.firstChild);for(var jo=hi(Bt?pe:$t);Ze=jo.nextNode();)Ze.nodeType===3&&Ze===Ir||fi(Ze)||(Ze.content instanceof i&&Za(Ze.content),yn(Ze),Ir=Ze);if(Ir=null,Bt)return pe;if(it){if(V)for(cn=L.call($t.ownerDocument);$t.firstChild;)cn.appendChild($t.firstChild);else cn=$t;return Y.shadowroot&&(cn=x.call(t,cn,!0)),cn}var pi=j?$t.outerHTML:$t.innerHTML;return at&&(pi=lc(pi,U," "),pi=lc(pi,tt," ")),C&&Ot?C.createHTML(pi):pi},e.setConfig=function(pe){dr(pe),Z=!0},e.clearConfig=function(){kr=null,Z=!1},e.isValidAttribute=function(pe,_t,$t){kr||dr({});var ne=Pe(pe),Ze=Pe(_t);return un(ne,Ze,$t)},e.addHook=function(pe,_t){typeof _t=="function"&&(P[pe]=P[pe]||[],kg(P[pe],_t))},e.removeHook=function(pe){P[pe]&&J5(P[pe])},e.removeHooks=function(pe){P[pe]&&(P[pe]=[])},e.removeAllHooks=function(){P={}},e}var O1t=yG(),R1t=Object.freeze(Object.defineProperty({__proto__:null,default:O1t},Symbol.toStringTag,{value:"Module"})),V_=function(r){return r&&r.Math==Math&&r},cr=V_(typeof globalThis=="object"&&globalThis)||V_(typeof window=="object"&&window)||V_(typeof self=="object"&&self)||V_(typeof ZA=="object"&&ZA)||function(){return this}()||Function("return this")(),kv={},Di=function(r){try{return!!r()}catch{return!0}},M1t=Di,Iu=!M1t(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),N1t=Di,vC=!N1t(function(){var r=function(){}.bind();return typeof r!="function"||r.hasOwnProperty("prototype")}),P1t=vC,j_=Function.prototype.call,_s=P1t?j_.bind(j_):function(){return j_.apply(j_,arguments)},_G={},wG={}.propertyIsEnumerable,EG=Object.getOwnPropertyDescriptor,U1t=EG&&!wG.call({1:2},1);_G.f=U1t?function(e){var t=EG(this,e);return!!t&&t.enumerable}:wG;var gC=function(r,e){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:e}},CG=vC,BG=Function.prototype,D1t=BG.bind,yI=BG.call,Q1t=CG&&D1t.bind(yI,yI),Fn=CG?function(r){return r&&Q1t(r)}:function(r){return r&&function(){return yI.apply(r,arguments)}},TG=Fn,k1t=TG({}.toString),H1t=TG("".slice),Hv=function(r){return H1t(k1t(r),8,-1)},G1t=cr,$1t=Fn,V1t=Di,j1t=Hv,UT=G1t.Object,K1t=$1t("".split),bG=V1t(function(){return!UT("z").propertyIsEnumerable(0)})?function(r){return j1t(r)=="String"?K1t(r,""):UT(r)}:UT,Y1t=cr,W1t=Y1t.TypeError,_l=function(r){if(r==null)throw W1t("Can't call method on "+r);return r},z1t=bG,X1t=_l,n0=function(r){return z1t(X1t(r))},qi=function(r){return typeof r=="function"},q1t=qi,uh=function(r){return typeof r=="object"?r!==null:q1t(r)},DT=cr,Z1t=qi,J1t=function(r){return Z1t(r)?r:void 0},hp=function(r,e){return arguments.length<2?J1t(DT[r]):DT[r]&&DT[r][e]},twt=Fn,mC=twt({}.isPrototypeOf),ewt=hp,yC=ewt("navigator","userAgent")||"",SG=cr,QT=yC,aU=SG.process,oU=SG.Deno,sU=aU&&aU.versions||oU&&oU.version,AU=sU&&sU.v8,sA,Gw;AU&&(sA=AU.split("."),Gw=sA[0]>0&&sA[0]<4?1:+(sA[0]+sA[1]));!Gw&&QT&&(sA=QT.match(/Edge\/(\d+)/),(!sA||sA[1]>=74)&&(sA=QT.match(/Chrome\/(\d+)/),sA&&(Gw=+sA[1])));var SO=Gw,lU=SO,rwt=Di,xG=!!Object.getOwnPropertySymbols&&!rwt(function(){var r=Symbol();return!String(r)||!(Object(r)instanceof Symbol)||!Symbol.sham&&lU&&lU<41}),nwt=xG,IG=nwt&&!Symbol.sham&&typeof Symbol.iterator=="symbol",iwt=cr,awt=hp,owt=qi,swt=mC,Awt=IG,lwt=iwt.Object,LG=Awt?function(r){return typeof r=="symbol"}:function(r){var e=awt("Symbol");return owt(e)&&swt(e.prototype,lwt(r))},uwt=cr,cwt=uwt.String,_C=function(r){try{return cwt(r)}catch{return"Object"}},hwt=cr,fwt=qi,pwt=_C,dwt=hwt.TypeError,Gv=function(r){if(fwt(r))return r;throw dwt(pwt(r)+" is not a function")},vwt=Gv,$v=function(r,e){var t=r[e];return t==null?void 0:vwt(t)},gwt=cr,kT=_s,HT=qi,GT=uh,mwt=gwt.TypeError,ywt=function(r,e){var t,n;if(e==="string"&&HT(t=r.toString)&&!GT(n=kT(t,r))||HT(t=r.valueOf)&&!GT(n=kT(t,r))||e!=="string"&&HT(t=r.toString)&&!GT(n=kT(t,r)))return n;throw mwt("Can't convert object to primitive value")},wC={exports:{}},uU=cr,_wt=Object.defineProperty,xO=function(r,e){try{_wt(uU,r,{value:e,configurable:!0,writable:!0})}catch{uU[r]=e}return e},wwt=cr,Ewt=xO,cU="__core-js_shared__",Cwt=wwt[cU]||Ewt(cU,{}),IO=Cwt,hU=IO;(wC.exports=function(r,e){return hU[r]||(hU[r]=e!==void 0?e:{})})("versions",[]).push({version:"3.20.3",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.20.3/LICENSE",source:"https://github.com/zloirock/core-js"});var Bwt=cr,Twt=_l,bwt=Bwt.Object,EC=function(r){return bwt(Twt(r))},Swt=Fn,xwt=EC,Iwt=Swt({}.hasOwnProperty),wl=Object.hasOwn||function(e,t){return Iwt(xwt(e),t)},Lwt=Fn,Fwt=0,Owt=Math.random(),Rwt=Lwt(1 .toString),FG=function(r){return"Symbol("+(r===void 0?"":r)+")_"+Rwt(++Fwt+Owt,36)},Mwt=cr,Nwt=wC.exports,fU=wl,Pwt=FG,pU=xG,OG=IG,ad=Nwt("wks"),Sf=Mwt.Symbol,dU=Sf&&Sf.for,Uwt=OG?Sf:Sf&&Sf.withoutSetter||Pwt,la=function(r){if(!fU(ad,r)||!(pU||typeof ad[r]=="string")){var e="Symbol."+r;pU&&fU(Sf,r)?ad[r]=Sf[r]:OG&&dU?ad[r]=dU(e):ad[r]=Uwt(e)}return ad[r]},Dwt=cr,Qwt=_s,vU=uh,gU=LG,kwt=$v,Hwt=ywt,Gwt=la,$wt=Dwt.TypeError,Vwt=Gwt("toPrimitive"),jwt=function(r,e){if(!vU(r)||gU(r))return r;var t=kwt(r,Vwt),n;if(t){if(e===void 0&&(e="default"),n=Qwt(t,r,e),!vU(n)||gU(n))return n;throw $wt("Can't convert object to primitive value")}return e===void 0&&(e="number"),Hwt(r,e)},Kwt=jwt,Ywt=LG,LO=function(r){var e=Kwt(r,"string");return Ywt(e)?e:e+""},Wwt=cr,mU=uh,_I=Wwt.document,zwt=mU(_I)&&mU(_I.createElement),CC=function(r){return zwt?_I.createElement(r):{}},Xwt=Iu,qwt=Di,Zwt=CC,RG=!Xwt&&!qwt(function(){return Object.defineProperty(Zwt("div"),"a",{get:function(){return 7}}).a!=7}),Jwt=Iu,tEt=_s,eEt=_G,rEt=gC,nEt=n0,iEt=LO,aEt=wl,oEt=RG,yU=Object.getOwnPropertyDescriptor;kv.f=Jwt?yU:function(e,t){if(e=nEt(e),t=iEt(t),oEt)try{return yU(e,t)}catch{}if(aEt(e,t))return rEt(!tEt(eEt.f,e,t),e[t])};var Lu={},sEt=Iu,AEt=Di,MG=sEt&&AEt(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42}),NG=cr,lEt=uh,uEt=NG.String,cEt=NG.TypeError,qa=function(r){if(lEt(r))return r;throw cEt(uEt(r)+" is not an object")},hEt=cr,fEt=Iu,pEt=RG,dEt=MG,K_=qa,_U=LO,vEt=hEt.TypeError,$T=Object.defineProperty,gEt=Object.getOwnPropertyDescriptor,VT="enumerable",jT="configurable",KT="writable";Lu.f=fEt?dEt?function(e,t,n){if(K_(e),t=_U(t),K_(n),typeof e=="function"&&t==="prototype"&&"value"in n&&KT in n&&!n[KT]){var i=gEt(e,t);i&&i[KT]&&(e[t]=n.value,n={configurable:jT in n?n[jT]:i[jT],enumerable:VT in n?n[VT]:i[VT],writable:!1})}return $T(e,t,n)}:$T:function(e,t,n){if(K_(e),t=_U(t),K_(n),pEt)try{return $T(e,t,n)}catch{}if("get"in n||"set"in n)throw vEt("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var mEt=Iu,yEt=Lu,_Et=gC,Vv=mEt?function(r,e,t){return yEt.f(r,e,_Et(1,t))}:function(r,e,t){return r[e]=t,r},ch={exports:{}},wEt=Fn,EEt=qi,wI=IO,CEt=wEt(Function.toString);EEt(wI.inspectSource)||(wI.inspectSource=function(r){return CEt(r)});var BC=wI.inspectSource,BEt=cr,TEt=qi,bEt=BC,wU=BEt.WeakMap,SEt=TEt(wU)&&/native code/.test(bEt(wU)),xEt=wC.exports,IEt=FG,EU=xEt("keys"),FO=function(r){return EU[r]||(EU[r]=IEt(r))},OO={},LEt=SEt,PG=cr,YT=Fn,FEt=uh,OEt=Vv,WT=wl,zT=IO,REt=FO,MEt=OO,CU="Object already initialized",EI=PG.TypeError,NEt=PG.WeakMap,$w,_y,Vw,PEt=function(r){return Vw(r)?_y(r):$w(r,{})},UEt=function(r){return function(e){var t;if(!FEt(e)||(t=_y(e)).type!==r)throw EI("Incompatible receiver, "+r+" required");return t}};if(LEt||zT.state){var jh=zT.state||(zT.state=new NEt),DEt=YT(jh.get),BU=YT(jh.has),QEt=YT(jh.set);$w=function(r,e){if(BU(jh,r))throw new EI(CU);return e.facade=r,QEt(jh,r,e),e},_y=function(r){return DEt(jh,r)||{}},Vw=function(r){return BU(jh,r)}}else{var od=REt("state");MEt[od]=!0,$w=function(r,e){if(WT(r,od))throw new EI(CU);return e.facade=r,OEt(r,od,e),e},_y=function(r){return WT(r,od)?r[od]:{}},Vw=function(r){return WT(r,od)}}var TC={set:$w,get:_y,has:Vw,enforce:PEt,getterFor:UEt},CI=Iu,kEt=wl,UG=Function.prototype,HEt=CI&&Object.getOwnPropertyDescriptor,RO=kEt(UG,"name"),GEt=RO&&function(){}.name==="something",$Et=RO&&(!CI||CI&&HEt(UG,"name").configurable),bC={EXISTS:RO,PROPER:GEt,CONFIGURABLE:$Et},VEt=cr,TU=qi,jEt=wl,bU=Vv,KEt=xO,YEt=BC,DG=TC,WEt=bC.CONFIGURABLE,zEt=DG.get,XEt=DG.enforce,qEt=String(String).split("String");(ch.exports=function(r,e,t,n){var i=n?!!n.unsafe:!1,a=n?!!n.enumerable:!1,o=n?!!n.noTargetGet:!1,s=n&&n.name!==void 0?n.name:e,A;if(TU(t)&&(String(s).slice(0,7)==="Symbol("&&(s="["+String(s).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!jEt(t,"name")||WEt&&t.name!==s)&&bU(t,"name",s),A=XEt(t),A.source||(A.source=qEt.join(typeof s=="string"?s:""))),r===VEt){a?r[e]=t:KEt(e,t);return}else i?!o&&r[e]&&(a=!0):delete r[e];a?r[e]=t:bU(r,e,t)})(Function.prototype,"toString",function(){return TU(this)&&zEt(this).source||YEt(this)});var QG={},ZEt=Math.ceil,JEt=Math.floor,SC=function(r){var e=+r;return e!==e||e===0?0:(e>0?JEt:ZEt)(e)},tCt=SC,eCt=Math.max,rCt=Math.min,kG=function(r,e){var t=tCt(r);return t<0?eCt(t+e,0):rCt(t,e)},nCt=SC,iCt=Math.min,jv=function(r){return r>0?iCt(nCt(r),9007199254740991):0},aCt=jv,xC=function(r){return aCt(r.length)},oCt=n0,sCt=kG,ACt=xC,SU=function(r){return function(e,t,n){var i=oCt(e),a=ACt(i),o=sCt(n,a),s;if(r&&t!=t){for(;a>o;)if(s=i[o++],s!=s)return!0}else for(;a>o;o++)if((r||o in i)&&i[o]===t)return r||o||0;return!r&&-1}},HG={includes:SU(!0),indexOf:SU(!1)},lCt=Fn,XT=wl,uCt=n0,cCt=HG.indexOf,hCt=OO,xU=lCt([].push),GG=function(r,e){var t=uCt(r),n=0,i=[],a;for(a in t)!XT(hCt,a)&&XT(t,a)&&xU(i,a);for(;e.length>n;)XT(t,a=e[n++])&&(~cCt(i,a)||xU(i,a));return i},MO=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],fCt=GG,pCt=MO,dCt=pCt.concat("length","prototype");QG.f=Object.getOwnPropertyNames||function(e){return fCt(e,dCt)};var $G={};$G.f=Object.getOwnPropertySymbols;var vCt=hp,gCt=Fn,mCt=QG,yCt=$G,_Ct=qa,wCt=gCt([].concat),ECt=vCt("Reflect","ownKeys")||function(e){var t=mCt.f(_Ct(e)),n=yCt.f;return n?wCt(t,n(e)):t},IU=wl,CCt=ECt,BCt=kv,TCt=Lu,bCt=function(r,e,t){for(var n=CCt(e),i=TCt.f,a=BCt.f,o=0;o<n.length;o++){var s=n[o];!IU(r,s)&&!(t&&IU(t,s))&&i(r,s,a(e,s))}},SCt=Di,xCt=qi,ICt=/#|\.prototype\./,i0=function(r,e){var t=FCt[LCt(r)];return t==RCt?!0:t==OCt?!1:xCt(e)?SCt(e):!!e},LCt=i0.normalize=function(r){return String(r).replace(ICt,".").toLowerCase()},FCt=i0.data={},OCt=i0.NATIVE="N",RCt=i0.POLYFILL="P",VG=i0,qT=cr,MCt=kv.f,NCt=Vv,PCt=ch.exports,UCt=xO,DCt=bCt,QCt=VG,El=function(r,e){var t=r.target,n=r.global,i=r.stat,a,o,s,A,l,u;if(n?o=qT:i?o=qT[t]||UCt(t,{}):o=(qT[t]||{}).prototype,o)for(s in e){if(l=e[s],r.noTargetGet?(u=MCt(o,s),A=u&&u.value):A=o[s],a=QCt(n?s:t+(i?".":"#")+s,r.forced),!a&&A!==void 0){if(typeof l==typeof A)continue;DCt(l,A)}(r.sham||A&&A.sham)&&NCt(l,"sham",!0),PCt(o,s,l,r)}},kCt=cr,HCt=kCt.Promise,GCt=ch.exports,$Ct=function(r,e,t){for(var n in e)GCt(r,n,e[n],t);return r},jG=cr,VCt=qi,jCt=jG.String,KCt=jG.TypeError,YCt=function(r){if(typeof r=="object"||VCt(r))return r;throw KCt("Can't set "+jCt(r)+" as a prototype")},WCt=Fn,zCt=qa,XCt=YCt,KG=Object.setPrototypeOf||("__proto__"in{}?function(){var r=!1,e={},t;try{t=WCt(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),t(e,[]),r=e instanceof Array}catch{}return function(i,a){return zCt(i),XCt(a),r?t(i,a):i.__proto__=a,i}}():void 0),qCt=Lu.f,ZCt=wl,JCt=la,LU=JCt("toStringTag"),NO=function(r,e,t){r&&!t&&(r=r.prototype),r&&!ZCt(r,LU)&&qCt(r,LU,{configurable:!0,value:e})},tBt=hp,eBt=Lu,rBt=la,nBt=Iu,FU=rBt("species"),iBt=function(r){var e=tBt(r),t=eBt.f;nBt&&e&&!e[FU]&&t(e,FU,{configurable:!0,get:function(){return this}})},aBt=cr,oBt=mC,sBt=aBt.TypeError,ABt=function(r,e){if(oBt(e,r))return r;throw sBt("Incorrect invocation")},OU=Fn,lBt=Gv,uBt=vC,cBt=OU(OU.bind),PO=function(r,e){return lBt(r),e===void 0?r:uBt?cBt(r,e):function(){return r.apply(e,arguments)}},a0={},hBt=la,fBt=a0,pBt=hBt("iterator"),dBt=Array.prototype,vBt=function(r){return r!==void 0&&(fBt.Array===r||dBt[pBt]===r)},gBt=la,mBt=gBt("toStringTag"),YG={};YG[mBt]="z";var yBt=String(YG)==="[object z]",_Bt=cr,wBt=yBt,EBt=qi,x1=Hv,CBt=la,BBt=CBt("toStringTag"),TBt=_Bt.Object,bBt=x1(function(){return arguments}())=="Arguments",SBt=function(r,e){try{return r[e]}catch{}},UO=wBt?x1:function(r){var e,t,n;return r===void 0?"Undefined":r===null?"Null":typeof(t=SBt(e=TBt(r),BBt))=="string"?t:bBt?x1(e):(n=x1(e))=="Object"&&EBt(e.callee)?"Arguments":n},xBt=UO,RU=$v,IBt=a0,LBt=la,FBt=LBt("iterator"),WG=function(r){if(r!=null)return RU(r,FBt)||RU(r,"@@iterator")||IBt[xBt(r)]},OBt=cr,RBt=_s,MBt=Gv,NBt=qa,PBt=_C,UBt=WG,DBt=OBt.TypeError,QBt=function(r,e){var t=arguments.length<2?UBt(r):e;if(MBt(t))return NBt(RBt(t,r));throw DBt(PBt(r)+" is not iterable")},kBt=_s,MU=qa,HBt=$v,GBt=function(r,e,t){var n,i;MU(r);try{if(n=HBt(r,"return"),!n){if(e==="throw")throw t;return t}n=kBt(n,r)}catch(a){i=!0,n=a}if(e==="throw")throw t;if(i)throw n;return MU(n),t},$Bt=cr,VBt=PO,jBt=_s,KBt=qa,YBt=_C,WBt=vBt,zBt=xC,NU=mC,XBt=QBt,qBt=WG,PU=GBt,ZBt=$Bt.TypeError,I1=function(r,e){this.stopped=r,this.result=e},UU=I1.prototype,JBt=function(r,e,t){var n=t&&t.that,i=!!(t&&t.AS_ENTRIES),a=!!(t&&t.IS_ITERATOR),o=!!(t&&t.INTERRUPTED),s=VBt(e,n),A,l,u,c,h,f,p,v=function(g){return A&&PU(A,"normal",g),new I1(!0,g)},m=function(g){return i?(KBt(g),o?s(g[0],g[1],v):s(g[0],g[1])):o?s(g,v):s(g)};if(a)A=r;else{if(l=qBt(r),!l)throw ZBt(YBt(r)+" is not iterable");if(WBt(l)){for(u=0,c=zBt(r);c>u;u++)if(h=m(r[u]),h&&NU(UU,h))return h;return new I1(!1)}A=XBt(r,l)}for(f=A.next;!(p=jBt(f,A)).done;){try{h=m(p.value)}catch(g){PU(A,"throw",g)}if(typeof h=="object"&&h&&NU(UU,h))return h}return new I1(!1)},tTt=la,zG=tTt("iterator"),XG=!1;try{var eTt=0,DU={next:function(){return{done:!!eTt++}},return:function(){XG=!0}};DU[zG]=function(){return this},Array.from(DU,function(){throw 2})}catch{}var rTt=function(r,e){if(!e&&!XG)return!1;var t=!1;try{var n={};n[zG]=function(){return{next:function(){return{done:t=!0}}}},r(n)}catch{}return t},nTt=Fn,iTt=Di,qG=qi,aTt=UO,oTt=hp,sTt=BC,ZG=function(){},ATt=[],JG=oTt("Reflect","construct"),DO=/^\s*(?:class|function)\b/,lTt=nTt(DO.exec),uTt=!DO.exec(ZG),Hg=function(e){if(!qG(e))return!1;try{return JG(ZG,ATt,e),!0}catch{return!1}},t7=function(e){if(!qG(e))return!1;switch(aTt(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return uTt||!!lTt(DO,sTt(e))}catch{return!0}};t7.sham=!0;var cTt=!JG||iTt(function(){var r;return Hg(Hg.call)||!Hg(Object)||!Hg(function(){r=!0})||r})?t7:Hg,hTt=cr,fTt=cTt,pTt=_C,dTt=hTt.TypeError,vTt=function(r){if(fTt(r))return r;throw dTt(pTt(r)+" is not a constructor")},QU=qa,gTt=vTt,mTt=la,yTt=mTt("species"),e7=function(r,e){var t=QU(r).constructor,n;return t===void 0||(n=QU(t)[yTt])==null?e:gTt(n)},_Tt=vC,r7=Function.prototype,kU=r7.apply,HU=r7.call,QO=typeof Reflect=="object"&&Reflect.apply||(_Tt?HU.bind(kU):function(){return HU.apply(kU,arguments)}),wTt=hp,n7=wTt("document","documentElement"),ETt=Fn,CTt=ETt([].slice),BTt=yC,i7=/(?:ipad|iphone|ipod).*applewebkit/i.test(BTt),TTt=Hv,bTt=cr,IC=TTt(bTt.process)=="process",hs=cr,STt=QO,xTt=PO,GU=qi,ITt=wl,LTt=Di,$U=n7,FTt=CTt,VU=CC,OTt=i7,RTt=IC,BI=hs.setImmediate,TI=hs.clearImmediate,MTt=hs.process,ZT=hs.Dispatch,NTt=hs.Function,jU=hs.MessageChannel,PTt=hs.String,JT=0,Um={},KU="onreadystatechange",wy,Kh,tb,eb;try{wy=hs.location}catch{}var kO=function(r){if(ITt(Um,r)){var e=Um[r];delete Um[r],e()}},rb=function(r){return function(){kO(r)}},YU=function(r){kO(r.data)},WU=function(r){hs.postMessage(PTt(r),wy.protocol+"//"+wy.host)};(!BI||!TI)&&(BI=function(e){var t=FTt(arguments,1);return Um[++JT]=function(){STt(GU(e)?e:NTt(e),void 0,t)},Kh(JT),JT},TI=function(e){delete Um[e]},RTt?Kh=function(r){MTt.nextTick(rb(r))}:ZT&&ZT.now?Kh=function(r){ZT.now(rb(r))}:jU&&!OTt?(tb=new jU,eb=tb.port2,tb.port1.onmessage=YU,Kh=xTt(eb.postMessage,eb)):hs.addEventListener&&GU(hs.postMessage)&&!hs.importScripts&&wy&&wy.protocol!=="file:"&&!LTt(WU)?(Kh=WU,hs.addEventListener("message",YU,!1)):KU in VU("script")?Kh=function(r){$U.appendChild(VU("script"))[KU]=function(){$U.removeChild(this),kO(r)}}:Kh=function(r){setTimeout(rb(r),0)});var a7={set:BI,clear:TI},UTt=yC,DTt=cr,QTt=/ipad|iphone|ipod/i.test(UTt)&&DTt.Pebble!==void 0,kTt=yC,HTt=/web0s(?!.*chrome)/i.test(kTt),Vf=cr,zU=PO,GTt=kv.f,nb=a7.set,$Tt=i7,VTt=QTt,jTt=HTt,ib=IC,XU=Vf.MutationObserver||Vf.WebKitMutationObserver,qU=Vf.document,ZU=Vf.process,Y_=Vf.Promise,JU=GTt(Vf,"queueMicrotask"),o7=JU&&JU.value,Gg,af,Dm,wd,ab,ob,W_,t2;o7||(Gg=function(){var r,e;for(ib&&(r=ZU.domain)&&r.exit();af;){e=af.fn,af=af.next;try{e()}catch(t){throw af?wd():Dm=void 0,t}}Dm=void 0,r&&r.enter()},!$Tt&&!ib&&!jTt&&XU&&qU?(ab=!0,ob=qU.createTextNode(""),new XU(Gg).observe(ob,{characterData:!0}),wd=function(){ob.data=ab=!ab}):!VTt&&Y_&&Y_.resolve?(W_=Y_.resolve(void 0),W_.constructor=Y_,t2=zU(W_.then,W_),wd=function(){t2(Gg)}):ib?wd=function(){ZU.nextTick(Gg)}:(nb=zU(nb,Vf),wd=function(){nb(Gg)}));var KTt=o7||function(r){var e={fn:r,next:void 0};Dm&&(Dm.next=e),af||(af=e,wd()),Dm=e},HO={},e2=Gv,YTt=function(r){var e,t;this.promise=new r(function(n,i){if(e!==void 0||t!==void 0)throw TypeError("Bad Promise constructor");e=n,t=i}),this.resolve=e2(e),this.reject=e2(t)};HO.f=function(r){return new YTt(r)};var WTt=qa,zTt=uh,XTt=HO,qTt=function(r,e){if(WTt(r),zTt(e)&&e.constructor===r)return e;var t=XTt.f(r),n=t.resolve;return n(e),t.promise},ZTt=cr,JTt=function(r,e){var t=ZTt.console;t&&t.error&&(arguments.length==1?t.error(r):t.error(r,e))},tbt=function(r){try{return{error:!1,value:r()}}catch(e){return{error:!0,value:e}}},s7=function(){this.head=null,this.tail=null};s7.prototype={add:function(r){var e={item:r,next:null};this.head?this.tail.next=e:this.head=e,this.tail=e},get:function(){var r=this.head;if(r)return this.head=r.next,this.tail===r&&(this.tail=null),r.item}};var ebt=s7,rbt=typeof window=="object",LC=El,mu=cr,nbt=hp,yu=_s,jw=HCt,r2=ch.exports,ibt=$Ct,n2=KG,abt=NO,obt=iBt,bI=Gv,Qm=qi,sbt=uh,Abt=ABt,lbt=BC,i2=JBt,ubt=rTt,cbt=e7,A7=a7.set,GO=KTt,hbt=qTt,fbt=JTt,l7=HO,SI=tbt,pbt=ebt,$O=TC,dbt=VG,vbt=la,gbt=rbt,Kw=IC,a2=SO,mbt=vbt("species"),Cl="Promise",o2=$O.getterFor(Cl),ybt=$O.set,_bt=$O.getterFor(Cl),Jh=jw&&jw.prototype,uA=jw,$g=Jh,u7=mu.TypeError,xI=mu.document,VO=mu.process,dv=l7.f,wbt=dv,Ebt=!!(xI&&xI.createEvent&&mu.dispatchEvent),c7=Qm(mu.PromiseRejectionEvent),h7="unhandledrejection",Cbt="rejectionhandled",s2=0,f7=1,Bbt=2,jO=1,p7=2,II=!1,z_,A2,d7,l2,o0=dbt(Cl,function(){var r=lbt(uA),e=r!==String(uA);if(!e&&a2===66)return!0;if(a2>=51&&/native code/.test(r))return!1;var t=new uA(function(a){a(1)}),n=function(a){a(function(){},function(){})},i=t.constructor={};return i[mbt]=n,II=t.then(function(){})instanceof n,II?!e&&gbt&&!c7:!0}),Tbt=o0||!ubt(function(r){uA.all(r).catch(function(){})}),v7=function(r){var e;return sbt(r)&&Qm(e=r.then)?e:!1},g7=function(r,e){var t=e.value,n=e.state==f7,i=n?r.ok:r.fail,a=r.resolve,o=r.reject,s=r.domain,A,l,u;try{i?(n||(e.rejection===p7&&Sbt(e),e.rejection=jO),i===!0?A=t:(s&&s.enter(),A=i(t),s&&(s.exit(),u=!0)),A===r.promise?o(u7("Promise-chain cycle")):(l=v7(A))?yu(l,A,a,o):a(A)):o(t)}catch(c){s&&!u&&s.exit(),o(c)}},m7=function(r,e){r.notified||(r.notified=!0,GO(function(){for(var t=r.reactions,n;n=t.get();)g7(n,r);r.notified=!1,e&&!r.rejection&&bbt(r)}))},y7=function(r,e,t){var n,i;Ebt?(n=xI.createEvent("Event"),n.promise=e,n.reason=t,n.initEvent(r,!1,!0),mu.dispatchEvent(n)):n={promise:e,reason:t},!c7&&(i=mu["on"+r])?i(n):r===h7&&fbt("Unhandled promise rejection",t)},bbt=function(r){yu(A7,mu,function(){var e=r.facade,t=r.value,n=u2(r),i;if(n&&(i=SI(function(){Kw?VO.emit("unhandledRejection",t,e):y7(h7,e,t)}),r.rejection=Kw||u2(r)?p7:jO,i.error))throw i.value})},u2=function(r){return r.rejection!==jO&&!r.parent},Sbt=function(r){yu(A7,mu,function(){var e=r.facade;Kw?VO.emit("rejectionHandled",e):y7(Cbt,e,r.value)})},Rd=function(r,e,t){return function(n){r(e,n,t)}},Xd=function(r,e,t){r.done||(r.done=!0,t&&(r=t),r.value=e,r.state=Bbt,m7(r,!0))},LI=function(r,e,t){if(!r.done){r.done=!0,t&&(r=t);try{if(r.facade===e)throw u7("Promise can't be resolved itself");var n=v7(e);n?GO(function(){var i={done:!1};try{yu(n,e,Rd(LI,i,r),Rd(Xd,i,r))}catch(a){Xd(i,a,r)}}):(r.value=e,r.state=f7,m7(r,!1))}catch(i){Xd({done:!1},i,r)}}};if(o0&&(uA=function(e){Abt(this,$g),bI(e),yu(z_,this);var t=o2(this);try{e(Rd(LI,t),Rd(Xd,t))}catch(n){Xd(t,n)}},$g=uA.prototype,z_=function(e){ybt(this,{type:Cl,done:!1,notified:!1,parent:!1,reactions:new pbt,rejection:!1,state:s2,value:void 0})},z_.prototype=ibt($g,{then:function(e,t){var n=_bt(this),i=dv(cbt(this,uA));return n.parent=!0,i.ok=Qm(e)?e:!0,i.fail=Qm(t)&&t,i.domain=Kw?VO.domain:void 0,n.state==s2?n.reactions.add(i):GO(function(){g7(i,n)}),i.promise},catch:function(r){return this.then(void 0,r)}}),A2=function(){var r=new z_,e=o2(r);this.promise=r,this.resolve=Rd(LI,e),this.reject=Rd(Xd,e)},l7.f=dv=function(r){return r===uA||r===d7?new A2(r):wbt(r)},Qm(jw)&&Jh!==Object.prototype)){l2=Jh.then,II||(r2(Jh,"then",function(e,t){var n=this;return new uA(function(i,a){yu(l2,n,i,a)}).then(e,t)},{unsafe:!0}),r2(Jh,"catch",$g.catch,{unsafe:!0}));try{delete Jh.constructor}catch{}n2&&n2(Jh,$g)}LC({global:!0,wrap:!0,forced:o0},{Promise:uA});abt(uA,Cl,!1);obt(Cl);d7=nbt(Cl);LC({target:Cl,stat:!0,forced:o0},{reject:function(e){var t=dv(this);return yu(t.reject,void 0,e),t.promise}});LC({target:Cl,stat:!0,forced:o0},{resolve:function(e){return hbt(this,e)}});LC({target:Cl,stat:!0,forced:Tbt},{all:function(e){var t=this,n=dv(t),i=n.resolve,a=n.reject,o=SI(function(){var s=bI(t.resolve),A=[],l=0,u=1;i2(e,function(c){var h=l++,f=!1;u++,yu(s,t,c).then(function(p){f||(f=!0,A[h]=p,--u||i(A))},a)}),--u||i(A)});return o.error&&a(o.value),n.promise},race:function(e){var t=this,n=dv(t),i=n.reject,a=SI(function(){var o=bI(t.resolve);i2(e,function(s){yu(o,t,s).then(n.resolve,i)})});return a.error&&i(a.value),n.promise}});function c2(r,e,t,n,i,a,o){try{var s=r[a](o),A=s.value}catch(l){t(l);return}s.done?e(A):Promise.resolve(A).then(n,i)}function _u(r){return function(){var e=this,t=arguments;return new Promise(function(n,i){var a=r.apply(e,t);function o(A){c2(a,n,i,o,s,"next",A)}function s(A){c2(a,n,i,o,s,"throw",A)}o(void 0)})}}var xbt=cr,Ibt=UO,Lbt=xbt.String,Bl=function(r){if(Ibt(r)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Lbt(r)},Fbt=qa,_7=function(){var r=Fbt(this),e="";return r.global&&(e+="g"),r.ignoreCase&&(e+="i"),r.multiline&&(e+="m"),r.dotAll&&(e+="s"),r.unicode&&(e+="u"),r.sticky&&(e+="y"),e},KO=Di,Obt=cr,YO=Obt.RegExp,WO=KO(function(){var r=YO("a","y");return r.lastIndex=2,r.exec("abcd")!=null}),Rbt=WO||KO(function(){return!YO("a","y").sticky}),Mbt=WO||KO(function(){var r=YO("^r","gy");return r.lastIndex=2,r.exec("str")!=null}),w7={BROKEN_CARET:Mbt,MISSED_STICKY:Rbt,UNSUPPORTED_Y:WO},E7={},Nbt=GG,Pbt=MO,Ubt=Object.keys||function(e){return Nbt(e,Pbt)},Dbt=Iu,Qbt=MG,kbt=Lu,Hbt=qa,Gbt=n0,$bt=Ubt;E7.f=Dbt&&!Qbt?Object.defineProperties:function(e,t){Hbt(e);for(var n=Gbt(t),i=$bt(t),a=i.length,o=0,s;a>o;)kbt.f(e,s=i[o++],n[s]);return e};var Vbt=qa,jbt=E7,h2=MO,Kbt=OO,Ybt=n7,Wbt=CC,zbt=FO,f2=">",p2="<",FI="prototype",OI="script",C7=zbt("IE_PROTO"),sb=function(){},B7=function(r){return p2+OI+f2+r+p2+"/"+OI+f2},d2=function(r){r.write(B7("")),r.close();var e=r.parentWindow.Object;return r=null,e},Xbt=function(){var r=Wbt("iframe"),e="java"+OI+":",t;return r.style.display="none",Ybt.appendChild(r),r.src=String(e),t=r.contentWindow.document,t.open(),t.write(B7("document.F=Object")),t.close(),t.F},X_,L1=function(){try{X_=new ActiveXObject("htmlfile")}catch{}L1=typeof document<"u"?document.domain&&X_?d2(X_):Xbt():d2(X_);for(var r=h2.length;r--;)delete L1[FI][h2[r]];return L1()};Kbt[C7]=!0;var zO=Object.create||function(e,t){var n;return e!==null?(sb[FI]=Vbt(e),n=new sb,sb[FI]=null,n[C7]=e):n=L1(),t===void 0?n:jbt.f(n,t)},qbt=Di,Zbt=cr,Jbt=Zbt.RegExp,tSt=qbt(function(){var r=Jbt(".","s");return!(r.dotAll&&r.exec(`
|
||
`)&&r.flags==="s")}),eSt=Di,rSt=cr,nSt=rSt.RegExp,iSt=eSt(function(){var r=nSt("(?<a>b)","g");return r.exec("b").groups.a!=="b"||"b".replace(r,"$<a>c")!=="bc"}),Md=_s,FC=Fn,aSt=Bl,oSt=_7,sSt=w7,ASt=wC.exports,lSt=zO,uSt=TC.get,cSt=tSt,hSt=iSt,fSt=ASt("native-string-replace",String.prototype.replace),Yw=RegExp.prototype.exec,RI=Yw,pSt=FC("".charAt),dSt=FC("".indexOf),vSt=FC("".replace),Ab=FC("".slice),MI=function(){var r=/a/,e=/b*/g;return Md(Yw,r,"a"),Md(Yw,e,"a"),r.lastIndex!==0||e.lastIndex!==0}(),T7=sSt.BROKEN_CARET,NI=/()??/.exec("")[1]!==void 0,gSt=MI||NI||T7||cSt||hSt;gSt&&(RI=function(e){var t=this,n=uSt(t),i=aSt(e),a=n.raw,o,s,A,l,u,c,h;if(a)return a.lastIndex=t.lastIndex,o=Md(RI,a,i),t.lastIndex=a.lastIndex,o;var f=n.groups,p=T7&&t.sticky,v=Md(oSt,t),m=t.source,g=0,_=i;if(p&&(v=vSt(v,"y",""),dSt(v,"g")===-1&&(v+="g"),_=Ab(i,t.lastIndex),t.lastIndex>0&&(!t.multiline||t.multiline&&pSt(i,t.lastIndex-1)!==`
|
||
`)&&(m="(?: "+m+")",_=" "+_,g++),s=new RegExp("^(?:"+m+")",v)),NI&&(s=new RegExp("^"+m+"$(?!\\s)",v)),MI&&(A=t.lastIndex),l=Md(Yw,p?s:t,_),p?l?(l.input=Ab(l.input,g),l[0]=Ab(l[0],g),l.index=t.lastIndex,t.lastIndex+=l[0].length):t.lastIndex=0:MI&&l&&(t.lastIndex=t.global?l.index+l[0].length:A),NI&&l&&l.length>1&&Md(fSt,l[0],s,function(){for(u=1;u<arguments.length-2;u++)arguments[u]===void 0&&(l[u]=void 0)}),l&&f)for(l.groups=c=lSt(null),u=0;u<f.length;u++)h=f[u],c[h[0]]=l[h[1]];return l});var OC=RI,mSt=El,v2=OC;mSt({target:"RegExp",proto:!0,forced:/./.exec!==v2},{exec:v2});var g2=Fn,m2=ch.exports,ySt=OC,y2=Di,b7=la,_St=Vv,wSt=b7("species"),lb=RegExp.prototype,XO=function(r,e,t,n){var i=b7(r),a=!y2(function(){var l={};return l[i]=function(){return 7},""[r](l)!=7}),o=a&&!y2(function(){var l=!1,u=/a/;return r==="split"&&(u={},u.constructor={},u.constructor[wSt]=function(){return u},u.flags="",u[i]=/./[i]),u.exec=function(){return l=!0,null},u[i](""),!l});if(!a||!o||t){var s=g2(/./[i]),A=e(i,""[r],function(l,u,c,h,f){var p=g2(l),v=u.exec;return v===ySt||v===lb.exec?a&&!f?{done:!0,value:s(u,c,h)}:{done:!0,value:p(c,u,h)}:{done:!1}});m2(String.prototype,r,A[0]),m2(lb,i,A[1])}n&&_St(lb[i],"sham",!0)},qO=Fn,ESt=SC,CSt=Bl,BSt=_l,TSt=qO("".charAt),_2=qO("".charCodeAt),bSt=qO("".slice),w2=function(r){return function(e,t){var n=CSt(BSt(e)),i=ESt(t),a=n.length,o,s;return i<0||i>=a?r?"":void 0:(o=_2(n,i),o<55296||o>56319||i+1===a||(s=_2(n,i+1))<56320||s>57343?r?TSt(n,i):o:r?bSt(n,i,i+2):(o-55296<<10)+(s-56320)+65536)}},SSt={codeAt:w2(!1),charAt:w2(!0)},xSt=SSt.charAt,ZO=function(r,e,t){return e+(t?xSt(r,e).length:1)},ISt=cr,E2=_s,LSt=qa,FSt=qi,OSt=Hv,RSt=OC,MSt=ISt.TypeError,JO=function(r,e){var t=r.exec;if(FSt(t)){var n=E2(t,r,e);return n!==null&&LSt(n),n}if(OSt(r)==="RegExp")return E2(RSt,r,e);throw MSt("RegExp#exec called on incompatible receiver")},NSt=_s,PSt=XO,USt=qa,DSt=jv,ub=Bl,QSt=_l,kSt=$v,HSt=ZO,C2=JO;PSt("match",function(r,e,t){return[function(i){var a=QSt(this),o=i==null?void 0:kSt(i,r);return o?NSt(o,i,a):new RegExp(i)[r](ub(a))},function(n){var i=USt(this),a=ub(n),o=t(e,i,a);if(o.done)return o.value;if(!i.global)return C2(i,a);var s=i.unicode;i.lastIndex=0;for(var A=[],l=0,u;(u=C2(i,a))!==null;){var c=ub(u[0]);A[l]=c,c===""&&(i.lastIndex=HSt(a,DSt(i.lastIndex),s)),l++}return l===0?null:A}]});var tR=Fn,GSt=EC,$St=Math.floor,cb=tR("".charAt),VSt=tR("".replace),hb=tR("".slice),jSt=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,KSt=/\$([$&'`]|\d{1,2})/g,YSt=function(r,e,t,n,i,a){var o=t+r.length,s=n.length,A=KSt;return i!==void 0&&(i=GSt(i),A=jSt),VSt(a,A,function(l,u){var c;switch(cb(u,0)){case"$":return"$";case"&":return r;case"`":return hb(e,0,t);case"'":return hb(e,o);case"<":c=i[hb(u,1,-1)];break;default:var h=+u;if(h===0)return l;if(h>s){var f=$St(h/10);return f===0?l:f<=s?n[f-1]===void 0?cb(u,1):n[f-1]+cb(u,1):l}c=n[h-1]}return c===void 0?"":c})},WSt=QO,B2=_s,RC=Fn,zSt=XO,XSt=Di,qSt=qa,ZSt=qi,JSt=SC,txt=jv,sd=Bl,ext=_l,rxt=ZO,nxt=$v,ixt=YSt,axt=JO,oxt=la,PI=oxt("replace"),sxt=Math.max,Axt=Math.min,lxt=RC([].concat),fb=RC([].push),T2=RC("".indexOf),b2=RC("".slice),uxt=function(r){return r===void 0?r:String(r)},cxt=function(){return"a".replace(/./,"$0")==="$0"}(),S2=function(){return/./[PI]?/./[PI]("a","$0")==="":!1}(),hxt=!XSt(function(){var r=/./;return r.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(r,"$<a>")!=="7"});zSt("replace",function(r,e,t){var n=S2?"$":"$0";return[function(a,o){var s=ext(this),A=a==null?void 0:nxt(a,PI);return A?B2(A,a,s,o):B2(e,sd(s),a,o)},function(i,a){var o=qSt(this),s=sd(i);if(typeof a=="string"&&T2(a,n)===-1&&T2(a,"$<")===-1){var A=t(e,o,s,a);if(A.done)return A.value}var l=ZSt(a);l||(a=sd(a));var u=o.global;if(u){var c=o.unicode;o.lastIndex=0}for(var h=[];;){var f=axt(o,s);if(f===null||(fb(h,f),!u))break;var p=sd(f[0]);p===""&&(o.lastIndex=rxt(s,txt(o.lastIndex),c))}for(var v="",m=0,g=0;g<h.length;g++){f=h[g];for(var _=sd(f[0]),w=sxt(Axt(JSt(f.index),s.length),0),C=[],F=1;F<f.length;F++)fb(C,uxt(f[F]));var O=f.groups;if(l){var I=lxt([_],C,w,s);O!==void 0&&fb(I,O);var b=sd(WSt(a,void 0,I))}else b=ixt(_,s,w,C,O,a);w>=m&&(v+=b2(s,m,w)+b,m=w+_.length)}return v+b2(s,m)}]},!hxt||!cxt||S2);var fxt=uh,pxt=Hv,dxt=la,vxt=dxt("match"),S7=function(r){var e;return fxt(r)&&((e=r[vxt])!==void 0?!!e:pxt(r)=="RegExp")},gxt=cr,mxt=S7,yxt=gxt.TypeError,eR=function(r){if(mxt(r))throw yxt("The method doesn't accept regular expressions");return r},_xt=la,wxt=_xt("match"),rR=function(r){var e=/./;try{"/./"[r](e)}catch{try{return e[wxt]=!1,"/./"[r](e)}catch{}}return!1},Ext=El,x7=Fn,Cxt=kv.f,Bxt=jv,x2=Bl,Txt=eR,bxt=_l,Sxt=rR,I2=x7("".startsWith),xxt=x7("".slice),Ixt=Math.min,I7=Sxt("startsWith"),Lxt=!I7&&!!function(){var r=Cxt(String.prototype,"startsWith");return r&&!r.writable}();Ext({target:"String",proto:!0,forced:!Lxt&&!I7},{startsWith:function(e){var t=x2(bxt(this));Txt(e);var n=Bxt(Ixt(arguments.length>1?arguments[1]:void 0,t.length)),i=x2(e);return I2?I2(t,i,n):xxt(t,n,n+i.length)===i}});var Fxt=la,Oxt=zO,Rxt=Lu,UI=Fxt("unscopables"),DI=Array.prototype;DI[UI]==null&&Rxt.f(DI,UI,{configurable:!0,value:Oxt(null)});var Mxt=function(r){DI[UI][r]=!0},Nxt=Di,Pxt=!Nxt(function(){function r(){}return r.prototype.constructor=null,Object.getPrototypeOf(new r)!==r.prototype}),Uxt=cr,Dxt=wl,Qxt=qi,kxt=EC,Hxt=FO,Gxt=Pxt,L2=Hxt("IE_PROTO"),QI=Uxt.Object,$xt=QI.prototype,L7=Gxt?QI.getPrototypeOf:function(r){var e=kxt(r);if(Dxt(e,L2))return e[L2];var t=e.constructor;return Qxt(t)&&e instanceof t?t.prototype:e instanceof QI?$xt:null},Vxt=Di,jxt=qi,F2=L7,Kxt=ch.exports,Yxt=la,kI=Yxt("iterator"),F7=!1,jf,pb,db;[].keys&&(db=[].keys(),"next"in db?(pb=F2(F2(db)),pb!==Object.prototype&&(jf=pb)):F7=!0);var Wxt=jf==null||Vxt(function(){var r={};return jf[kI].call(r)!==r});Wxt&&(jf={});jxt(jf[kI])||Kxt(jf,kI,function(){return this});var O7={IteratorPrototype:jf,BUGGY_SAFARI_ITERATORS:F7},zxt=O7.IteratorPrototype,Xxt=zO,qxt=gC,Zxt=NO,Jxt=a0,tIt=function(){return this},eIt=function(r,e,t,n){var i=e+" Iterator";return r.prototype=Xxt(zxt,{next:qxt(+!n,t)}),Zxt(r,i,!1),Jxt[i]=tIt,r},rIt=El,nIt=_s,R7=bC,iIt=qi,aIt=eIt,O2=L7,R2=KG,oIt=NO,sIt=Vv,vb=ch.exports,AIt=la,lIt=a0,M7=O7,uIt=R7.PROPER,cIt=R7.CONFIGURABLE,M2=M7.IteratorPrototype,q_=M7.BUGGY_SAFARI_ITERATORS,Vg=AIt("iterator"),N2="keys",jg="values",P2="entries",hIt=function(){return this},fIt=function(r,e,t,n,i,a,o){aIt(t,e,n);var s=function(g){if(g===i&&h)return h;if(!q_&&g in u)return u[g];switch(g){case N2:return function(){return new t(this,g)};case jg:return function(){return new t(this,g)};case P2:return function(){return new t(this,g)}}return function(){return new t(this)}},A=e+" Iterator",l=!1,u=r.prototype,c=u[Vg]||u["@@iterator"]||i&&u[i],h=!q_&&c||s(i),f=e=="Array"&&u.entries||c,p,v,m;if(f&&(p=O2(f.call(new r)),p!==Object.prototype&&p.next&&(O2(p)!==M2&&(R2?R2(p,M2):iIt(p[Vg])||vb(p,Vg,hIt)),oIt(p,A,!0))),uIt&&i==jg&&c&&c.name!==jg&&(cIt?sIt(u,"name",jg):(l=!0,h=function(){return nIt(c,this)})),i)if(v={values:s(jg),keys:a?h:s(N2),entries:s(P2)},o)for(m in v)(q_||l||!(m in u))&&vb(u,m,v[m]);else rIt({target:e,proto:!0,forced:q_||l},v);return u[Vg]!==h&&vb(u,Vg,h,{name:i}),lIt[e]=h,v},pIt=n0,nR=Mxt,U2=a0,N7=TC,dIt=Lu.f,vIt=fIt,gIt=Iu,P7="Array Iterator",mIt=N7.set,yIt=N7.getterFor(P7),_It=vIt(Array,"Array",function(r,e){mIt(this,{type:P7,target:pIt(r),index:0,kind:e})},function(){var r=yIt(this),e=r.target,t=r.kind,n=r.index++;return!e||n>=e.length?(r.target=void 0,{value:void 0,done:!0}):t=="keys"?{value:n,done:!1}:t=="values"?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}},"values"),D2=U2.Arguments=U2.Array;nR("keys");nR("values");nR("entries");if(gIt&&D2.name!=="values")try{dIt(D2,"name",{value:"values"})}catch{}var wIt={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},EIt=CC,gb=EIt("span").classList,Q2=gb&&gb.constructor&&gb.constructor.prototype,CIt=Q2===Object.prototype?void 0:Q2,k2=cr,U7=wIt,BIt=CIt,pm=_It,mb=Vv,D7=la,yb=D7("iterator"),H2=D7("toStringTag"),_b=pm.values,Q7=function(r,e){if(r){if(r[yb]!==_b)try{mb(r,yb,_b)}catch{r[yb]=_b}if(r[H2]||mb(r,H2,e),U7[e]){for(var t in pm)if(r[t]!==pm[t])try{mb(r,t,pm[t])}catch{r[t]=pm[t]}}}};for(var wb in U7)Q7(k2[wb]&&k2[wb].prototype,wb);Q7(BIt,"DOMTokenList");function iR(r,e,t){return e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var TIt=cr,bIt=Gv,SIt=EC,xIt=bG,IIt=xC,LIt=TIt.TypeError,G2=function(r){return function(e,t,n,i){bIt(t);var a=SIt(e),o=xIt(a),s=IIt(a),A=r?s-1:0,l=r?-1:1;if(n<2)for(;;){if(A in o){i=o[A],A+=l;break}if(A+=l,r?A<0:s<=A)throw LIt("Reduce of empty array with no initial value")}for(;r?A>=0:s>A;A+=l)A in o&&(i=t(i,o[A],A,a));return i}},FIt={left:G2(!1),right:G2(!0)},OIt=Di,k7=function(r,e){var t=[][r];return!!t&&OIt(function(){t.call(null,e||function(){throw 1},1)})},RIt=El,MIt=FIt.left,NIt=k7,$2=SO,PIt=IC,UIt=NIt("reduce"),DIt=!PIt&&$2>79&&$2<83;RIt({target:"Array",proto:!0,forced:!UIt||DIt},{reduce:function(e){var t=arguments.length;return MIt(this,e,t,t>1?arguments[1]:void 0)}});var QIt=El,H7=Fn,kIt=kv.f,HIt=jv,V2=Bl,GIt=eR,$It=_l,VIt=rR,j2=H7("".endsWith),jIt=H7("".slice),KIt=Math.min,G7=VIt("endsWith"),YIt=!G7&&!!function(){var r=kIt(String.prototype,"endsWith");return r&&!r.writable}();QIt({target:"String",proto:!0,forced:!YIt&&!G7},{endsWith:function(e){var t=V2($It(this));GIt(e);var n=arguments.length>1?arguments[1]:void 0,i=t.length,a=n===void 0?i:KIt(HIt(n),i),o=V2(e);return j2?j2(t,o,a):jIt(t,a-o.length,a)===o}});var WIt=LO,zIt=Lu,XIt=gC,qIt=function(r,e,t){var n=WIt(e);n in r?zIt.f(r,n,XIt(0,t)):r[n]=t},ZIt=cr,K2=kG,JIt=xC,tLt=qIt,eLt=ZIt.Array,rLt=Math.max,nLt=function(r,e,t){for(var n=JIt(r),i=K2(e,n),a=K2(t===void 0?n:t,n),o=eLt(rLt(a-i,0)),s=0;i<a;i++,s++)tLt(o,s,r[i]);return o.length=s,o},iLt=QO,Kg=_s,aR=Fn,aLt=XO,oLt=S7,sLt=qa,Y2=_l,ALt=e7,lLt=ZO,uLt=jv,Eb=Bl,cLt=$v,W2=nLt,z2=JO,hLt=OC,fLt=w7,pLt=Di,Ad=fLt.UNSUPPORTED_Y,X2=4294967295,dLt=Math.min,$7=[].push,vLt=aR(/./.exec),ld=aR($7),Yg=aR("".slice),gLt=!pLt(function(){var r=/(?:)/,e=r.exec;r.exec=function(){return e.apply(this,arguments)};var t="ab".split(r);return t.length!==2||t[0]!=="a"||t[1]!=="b"});aLt("split",function(r,e,t){var n;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?n=function(i,a){var o=Eb(Y2(this)),s=a===void 0?X2:a>>>0;if(s===0)return[];if(i===void 0)return[o];if(!oLt(i))return Kg(e,o,i,s);for(var A=[],l=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(i.sticky?"y":""),u=0,c=new RegExp(i.source,l+"g"),h,f,p;(h=Kg(hLt,c,o))&&(f=c.lastIndex,!(f>u&&(ld(A,Yg(o,u,h.index)),h.length>1&&h.index<o.length&&iLt($7,A,W2(h,1)),p=h[0].length,u=f,A.length>=s)));)c.lastIndex===h.index&&c.lastIndex++;return u===o.length?(p||!vLt(c,""))&&ld(A,""):ld(A,Yg(o,u)),A.length>s?W2(A,0,s):A}:"0".split(void 0,0).length?n=function(i,a){return i===void 0&&a===0?[]:Kg(e,this,i,a)}:n=e,[function(a,o){var s=Y2(this),A=a==null?void 0:cLt(a,r);return A?Kg(A,a,s,o):Kg(n,Eb(s),a,o)},function(i,a){var o=sLt(this),s=Eb(i),A=t(n,o,s,a,n!==e);if(A.done)return A.value;var l=ALt(o,RegExp),u=o.unicode,c=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(Ad?"g":"y"),h=new l(Ad?"^(?:"+o.source+")":o,c),f=a===void 0?X2:a>>>0;if(f===0)return[];if(s.length===0)return z2(h,s)===null?[s]:[];for(var p=0,v=0,m=[];v<s.length;){h.lastIndex=Ad?0:v;var g=z2(h,Ad?Yg(s,v):s),_;if(g===null||(_=dLt(uLt(h.lastIndex+(Ad?v:0)),s.length))===p)v=lLt(s,v,u);else{if(ld(m,Yg(s,p,v)),m.length===f)return m;for(var w=1;w<=g.length-1;w++)if(ld(m,g[w]),m.length===f)return m;v=p=_}}return ld(m,Yg(s,p)),m}]},!gLt,Ad);var MC={exports:{}},dm={exports:{}};(function(){var r,e,t,n,i,a;typeof performance<"u"&&performance!==null&&performance.now?dm.exports=function(){return performance.now()}:typeof process<"u"&&process!==null&&process.hrtime?(dm.exports=function(){return(r()-i)/1e6},e=process.hrtime,r=function(){var o;return o=e(),o[0]*1e9+o[1]},n=r(),a=process.uptime()*1e9,i=n-a):Date.now?(dm.exports=function(){return Date.now()-t},t=Date.now()):(dm.exports=function(){return new Date().getTime()-t},t=new Date().getTime())}).call(ZA);var mLt=dm.exports,uu=typeof window>"u"?ZA:window,Z_=["moz","webkit"],qd="AnimationFrame",vv=uu["request"+qd],Ey=uu["cancel"+qd]||uu["cancelRequest"+qd];for(var Wg=0;!vv&&Wg<Z_.length;Wg++)vv=uu[Z_[Wg]+"Request"+qd],Ey=uu[Z_[Wg]+"Cancel"+qd]||uu[Z_[Wg]+"CancelRequest"+qd];if(!vv||!Ey){var Cb=0,q2=0,Yh=[],yLt=1e3/60;vv=function(r){if(Yh.length===0){var e=mLt(),t=Math.max(0,yLt-(e-Cb));Cb=t+e,setTimeout(function(){var n=Yh.slice(0);Yh.length=0;for(var i=0;i<n.length;i++)if(!n[i].cancelled)try{n[i].callback(Cb)}catch(a){setTimeout(function(){throw a},0)}},Math.round(t))}return Yh.push({handle:++q2,callback:r,cancelled:!1}),q2},Ey=function(r){for(var e=0;e<Yh.length;e++)Yh[e].handle===r&&(Yh[e].cancelled=!0)}}MC.exports=function(r){return vv.call(uu,r)};MC.exports.cancel=function(){Ey.apply(uu,arguments)};MC.exports.polyfill=function(r){r||(r=uu),r.requestAnimationFrame=vv,r.cancelAnimationFrame=Ey};var Bb=MC.exports,V7=`
|
||
\v\f\r \u2028\u2029\uFEFF`,_Lt=Fn,wLt=_l,ELt=Bl,CLt=V7,Z2=_Lt("".replace),Ww="["+CLt+"]",BLt=RegExp("^"+Ww+Ww+"*"),TLt=RegExp(Ww+Ww+"*$"),Tb=function(r){return function(e){var t=ELt(wLt(e));return r&1&&(t=Z2(t,BLt,"")),r&2&&(t=Z2(t,TLt,"")),t}},bLt={start:Tb(1),end:Tb(2),trim:Tb(3)},SLt=bC.PROPER,xLt=Di,J2=V7,tD="
",ILt=function(r){return xLt(function(){return!!J2[r]()||tD[r]()!==tD||SLt&&J2[r].name!==r})},LLt=El,FLt=bLt.trim,OLt=ILt;LLt({target:"String",proto:!0,forced:OLt("trim")},{trim:function(){return FLt(this)}});var HI=function(r){this.ok=!1,this.alpha=1,r.charAt(0)=="#"&&(r=r.substr(1,6)),r=r.replace(/ /g,""),r=r.toLowerCase();var e={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};r=e[r]||r;for(var t=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(A){return[parseInt(A[1]),parseInt(A[2]),parseInt(A[3]),parseFloat(A[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(A){return[parseInt(A[1]),parseInt(A[2]),parseInt(A[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(A){return[parseInt(A[1],16),parseInt(A[2],16),parseInt(A[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(A){return[parseInt(A[1]+A[1],16),parseInt(A[2]+A[2],16),parseInt(A[3]+A[3],16)]}}],n=0;n<t.length;n++){var i=t[n].re,a=t[n].process,o=i.exec(r);if(o){var s=a(o);this.r=s[0],this.g=s[1],this.b=s[2],s.length>3&&(this.alpha=s[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var A=this.r.toString(16),l=this.g.toString(16),u=this.b.toString(16);return A.length==1&&(A="0"+A),l.length==1&&(l="0"+l),u.length==1&&(u="0"+u),"#"+A+l+u},this.getHelpXML=function(){for(var A=new Array,l=0;l<t.length;l++)for(var u=t[l].example,c=0;c<u.length;c++)A[A.length]=u[c];for(var h in e)A[A.length]=h;var f=document.createElement("ul");f.setAttribute("id","rgbcolor-examples");for(var l=0;l<A.length;l++)try{var p=document.createElement("li"),v=new RGBColor(A[l]),m=document.createElement("div");m.style.cssText="margin: 3px; border: 1px solid black; background:"+v.toHex()+"; color:"+v.toHex(),m.appendChild(document.createTextNode("test"));var g=document.createTextNode(" "+A[l]+" -> "+v.toRGB()+" -> "+v.toHex());p.appendChild(m),p.appendChild(g),f.appendChild(p)}catch{}return f}},RLt=El,MLt=Fn,NLt=eR,PLt=_l,eD=Bl,ULt=rR,DLt=MLt("".indexOf);RLt({target:"String",proto:!0,forced:!ULt("includes")},{includes:function(e){return!!~DLt(eD(PLt(this)),eD(NLt(e)),arguments.length>1?arguments[1]:void 0)}});var QLt=El,kLt=Fn,HLt=HG.indexOf,GLt=k7,GI=kLt([].indexOf),rD=!!GI&&1/GI([1],1,-0)<0,$Lt=GLt("indexOf");QLt({target:"Array",proto:!0,forced:rD||!$Lt},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return rD?GI(this,e,t)||0:HLt(this,e,t)}});var VLt=Hv,jLt=Array.isArray||function(e){return VLt(e)=="Array"},KLt=El,YLt=Fn,WLt=jLt,zLt=YLt([].reverse),nD=[1,2];KLt({target:"Array",proto:!0,forced:String(nD)===String(nD.reverse())},{reverse:function(){return WLt(this)&&(this.length=this.length),zLt(this)}});/*! *****************************************************************************
|
||
Copyright (c) Microsoft Corporation.
|
||
|
||
Permission to use, copy, modify, and/or distribute this software for any
|
||
purpose with or without fee is hereby granted.
|
||
|
||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||
PERFORMANCE OF THIS SOFTWARE.
|
||
***************************************************************************** */var j7=function(r,e){return(j7=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])})(r,e)};function K7(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function t(){this.constructor=r}j7(r,e),r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}function XLt(r){var e="";Array.isArray(r)||(r=[r]);for(var t=0;t<r.length;t++){var n=r[t];if(n.type===Wt.CLOSE_PATH)e+="z";else if(n.type===Wt.HORIZ_LINE_TO)e+=(n.relative?"h":"H")+n.x;else if(n.type===Wt.VERT_LINE_TO)e+=(n.relative?"v":"V")+n.y;else if(n.type===Wt.MOVE_TO)e+=(n.relative?"m":"M")+n.x+" "+n.y;else if(n.type===Wt.LINE_TO)e+=(n.relative?"l":"L")+n.x+" "+n.y;else if(n.type===Wt.CURVE_TO)e+=(n.relative?"c":"C")+n.x1+" "+n.y1+" "+n.x2+" "+n.y2+" "+n.x+" "+n.y;else if(n.type===Wt.SMOOTH_CURVE_TO)e+=(n.relative?"s":"S")+n.x2+" "+n.y2+" "+n.x+" "+n.y;else if(n.type===Wt.QUAD_TO)e+=(n.relative?"q":"Q")+n.x1+" "+n.y1+" "+n.x+" "+n.y;else if(n.type===Wt.SMOOTH_QUAD_TO)e+=(n.relative?"t":"T")+n.x+" "+n.y;else{if(n.type!==Wt.ARC)throw new Error('Unexpected command type "'+n.type+'" at index '+t+".");e+=(n.relative?"a":"A")+n.rX+" "+n.rY+" "+n.xRot+" "+ +n.lArcFlag+" "+ +n.sweepFlag+" "+n.x+" "+n.y}}return e}function $I(r,e){var t=r[0],n=r[1];return[t*Math.cos(e)-n*Math.sin(e),t*Math.sin(e)+n*Math.cos(e)]}function aA(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];for(var t=0;t<r.length;t++)if(typeof r[t]!="number")throw new Error("assertNumbers arguments["+t+"] is not a number. "+typeof r[t]+" == typeof "+r[t]);return!0}var mc=Math.PI;function bb(r,e,t){r.lArcFlag=r.lArcFlag===0?0:1,r.sweepFlag=r.sweepFlag===0?0:1;var n=r.rX,i=r.rY,a=r.x,o=r.y;n=Math.abs(r.rX),i=Math.abs(r.rY);var s=$I([(e-a)/2,(t-o)/2],-r.xRot/180*mc),A=s[0],l=s[1],u=Math.pow(A,2)/Math.pow(n,2)+Math.pow(l,2)/Math.pow(i,2);1<u&&(n*=Math.sqrt(u),i*=Math.sqrt(u)),r.rX=n,r.rY=i;var c=Math.pow(n,2)*Math.pow(l,2)+Math.pow(i,2)*Math.pow(A,2),h=(r.lArcFlag!==r.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(n,2)*Math.pow(i,2)-c)/c)),f=n*l/i*h,p=-i*A/n*h,v=$I([f,p],r.xRot/180*mc);r.cX=v[0]+(e+a)/2,r.cY=v[1]+(t+o)/2,r.phi1=Math.atan2((l-p)/i,(A-f)/n),r.phi2=Math.atan2((-l-p)/i,(-A-f)/n),r.sweepFlag===0&&r.phi2>r.phi1&&(r.phi2-=2*mc),r.sweepFlag===1&&r.phi2<r.phi1&&(r.phi2+=2*mc),r.phi1*=180/mc,r.phi2*=180/mc}function iD(r,e,t){aA(r,e,t);var n=r*r+e*e-t*t;if(0>n)return[];if(n===0)return[[r*t/(r*r+e*e),e*t/(r*r+e*e)]];var i=Math.sqrt(n);return[[(r*t+e*i)/(r*r+e*e),(e*t-r*i)/(r*r+e*e)],[(r*t-e*i)/(r*r+e*e),(e*t+r*i)/(r*r+e*e)]]}var Oi,jl=Math.PI/180;function aD(r,e,t){return(1-t)*r+t*e}function oD(r,e,t,n){return r+Math.cos(n/180*mc)*e+Math.sin(n/180*mc)*t}function sD(r,e,t,n){var i=1e-6,a=e-r,o=t-e,s=3*a+3*(n-t)-6*o,A=6*(o-a),l=3*a;return Math.abs(s)<i?[-l/A]:function(u,c,h){h===void 0&&(h=1e-6);var f=u*u/4-c;if(f<-h)return[];if(f<=h)return[-u/2];var p=Math.sqrt(f);return[-u/2-p,-u/2+p]}(A/s,l/s,i)}function AD(r,e,t,n,i){var a=1-i;return r*(a*a*a)+e*(3*a*a*i)+t*(3*a*i*i)+n*(i*i*i)}(function(r){function e(){return i(function(s,A,l){return s.relative&&(s.x1!==void 0&&(s.x1+=A),s.y1!==void 0&&(s.y1+=l),s.x2!==void 0&&(s.x2+=A),s.y2!==void 0&&(s.y2+=l),s.x!==void 0&&(s.x+=A),s.y!==void 0&&(s.y+=l),s.relative=!1),s})}function t(){var s=NaN,A=NaN,l=NaN,u=NaN;return i(function(c,h,f){return c.type&Wt.SMOOTH_CURVE_TO&&(c.type=Wt.CURVE_TO,s=isNaN(s)?h:s,A=isNaN(A)?f:A,c.x1=c.relative?h-s:2*h-s,c.y1=c.relative?f-A:2*f-A),c.type&Wt.CURVE_TO?(s=c.relative?h+c.x2:c.x2,A=c.relative?f+c.y2:c.y2):(s=NaN,A=NaN),c.type&Wt.SMOOTH_QUAD_TO&&(c.type=Wt.QUAD_TO,l=isNaN(l)?h:l,u=isNaN(u)?f:u,c.x1=c.relative?h-l:2*h-l,c.y1=c.relative?f-u:2*f-u),c.type&Wt.QUAD_TO?(l=c.relative?h+c.x1:c.x1,u=c.relative?f+c.y1:c.y1):(l=NaN,u=NaN),c})}function n(){var s=NaN,A=NaN;return i(function(l,u,c){if(l.type&Wt.SMOOTH_QUAD_TO&&(l.type=Wt.QUAD_TO,s=isNaN(s)?u:s,A=isNaN(A)?c:A,l.x1=l.relative?u-s:2*u-s,l.y1=l.relative?c-A:2*c-A),l.type&Wt.QUAD_TO){s=l.relative?u+l.x1:l.x1,A=l.relative?c+l.y1:l.y1;var h=l.x1,f=l.y1;l.type=Wt.CURVE_TO,l.x1=((l.relative?0:u)+2*h)/3,l.y1=((l.relative?0:c)+2*f)/3,l.x2=(l.x+2*h)/3,l.y2=(l.y+2*f)/3}else s=NaN,A=NaN;return l})}function i(s){var A=0,l=0,u=NaN,c=NaN;return function(h){if(isNaN(u)&&!(h.type&Wt.MOVE_TO))throw new Error("path must start with moveto");var f=s(h,A,l,u,c);return h.type&Wt.CLOSE_PATH&&(A=u,l=c),h.x!==void 0&&(A=h.relative?A+h.x:h.x),h.y!==void 0&&(l=h.relative?l+h.y:h.y),h.type&Wt.MOVE_TO&&(u=A,c=l),f}}function a(s,A,l,u,c,h){return aA(s,A,l,u,c,h),i(function(f,p,v,m){var g=f.x1,_=f.x2,w=f.relative&&!isNaN(m),C=f.x!==void 0?f.x:w?0:p,F=f.y!==void 0?f.y:w?0:v;function O(M){return M*M}f.type&Wt.HORIZ_LINE_TO&&A!==0&&(f.type=Wt.LINE_TO,f.y=f.relative?0:v),f.type&Wt.VERT_LINE_TO&&l!==0&&(f.type=Wt.LINE_TO,f.x=f.relative?0:p),f.x!==void 0&&(f.x=f.x*s+F*l+(w?0:c)),f.y!==void 0&&(f.y=C*A+f.y*u+(w?0:h)),f.x1!==void 0&&(f.x1=f.x1*s+f.y1*l+(w?0:c)),f.y1!==void 0&&(f.y1=g*A+f.y1*u+(w?0:h)),f.x2!==void 0&&(f.x2=f.x2*s+f.y2*l+(w?0:c)),f.y2!==void 0&&(f.y2=_*A+f.y2*u+(w?0:h));var I=s*u-A*l;if(f.xRot!==void 0&&(s!==1||A!==0||l!==0||u!==1))if(I===0)delete f.rX,delete f.rY,delete f.xRot,delete f.lArcFlag,delete f.sweepFlag,f.type=Wt.LINE_TO;else{var b=f.xRot*Math.PI/180,L=Math.sin(b),N=Math.cos(b),x=1/O(f.rX),S=1/O(f.rY),P=O(N)*x+O(L)*S,U=2*L*N*(x-S),tt=O(L)*x+O(N)*S,q=P*u*u-U*A*u+tt*A*A,rt=U*(s*u+A*l)-2*(P*l*u+tt*s*A),nt=P*l*l-U*s*l+tt*s*s,At=(Math.atan2(rt,q-nt)+Math.PI)%Math.PI/2,ct=Math.sin(At),bt=Math.cos(At);f.rX=Math.abs(I)/Math.sqrt(q*O(bt)+rt*ct*bt+nt*O(ct)),f.rY=Math.abs(I)/Math.sqrt(q*O(ct)-rt*ct*bt+nt*O(bt)),f.xRot=180*At/Math.PI}return f.sweepFlag!==void 0&&0>I&&(f.sweepFlag=+!f.sweepFlag),f})}function o(){return function(s){var A={};for(var l in s)A[l]=s[l];return A}}r.ROUND=function(s){function A(l){return Math.round(l*s)/s}return s===void 0&&(s=1e13),aA(s),function(l){return l.x1!==void 0&&(l.x1=A(l.x1)),l.y1!==void 0&&(l.y1=A(l.y1)),l.x2!==void 0&&(l.x2=A(l.x2)),l.y2!==void 0&&(l.y2=A(l.y2)),l.x!==void 0&&(l.x=A(l.x)),l.y!==void 0&&(l.y=A(l.y)),l.rX!==void 0&&(l.rX=A(l.rX)),l.rY!==void 0&&(l.rY=A(l.rY)),l}},r.TO_ABS=e,r.TO_REL=function(){return i(function(s,A,l){return s.relative||(s.x1!==void 0&&(s.x1-=A),s.y1!==void 0&&(s.y1-=l),s.x2!==void 0&&(s.x2-=A),s.y2!==void 0&&(s.y2-=l),s.x!==void 0&&(s.x-=A),s.y!==void 0&&(s.y-=l),s.relative=!0),s})},r.NORMALIZE_HVZ=function(s,A,l){return s===void 0&&(s=!0),A===void 0&&(A=!0),l===void 0&&(l=!0),i(function(u,c,h,f,p){if(isNaN(f)&&!(u.type&Wt.MOVE_TO))throw new Error("path must start with moveto");return A&&u.type&Wt.HORIZ_LINE_TO&&(u.type=Wt.LINE_TO,u.y=u.relative?0:h),l&&u.type&Wt.VERT_LINE_TO&&(u.type=Wt.LINE_TO,u.x=u.relative?0:c),s&&u.type&Wt.CLOSE_PATH&&(u.type=Wt.LINE_TO,u.x=u.relative?f-c:f,u.y=u.relative?p-h:p),u.type&Wt.ARC&&(u.rX===0||u.rY===0)&&(u.type=Wt.LINE_TO,delete u.rX,delete u.rY,delete u.xRot,delete u.lArcFlag,delete u.sweepFlag),u})},r.NORMALIZE_ST=t,r.QT_TO_C=n,r.INFO=i,r.SANITIZE=function(s){s===void 0&&(s=0),aA(s);var A=NaN,l=NaN,u=NaN,c=NaN;return i(function(h,f,p,v,m){var g=Math.abs,_=!1,w=0,C=0;if(h.type&Wt.SMOOTH_CURVE_TO&&(w=isNaN(A)?0:f-A,C=isNaN(l)?0:p-l),h.type&(Wt.CURVE_TO|Wt.SMOOTH_CURVE_TO)?(A=h.relative?f+h.x2:h.x2,l=h.relative?p+h.y2:h.y2):(A=NaN,l=NaN),h.type&Wt.SMOOTH_QUAD_TO?(u=isNaN(u)?f:2*f-u,c=isNaN(c)?p:2*p-c):h.type&Wt.QUAD_TO?(u=h.relative?f+h.x1:h.x1,c=h.relative?p+h.y1:h.y2):(u=NaN,c=NaN),h.type&Wt.LINE_COMMANDS||h.type&Wt.ARC&&(h.rX===0||h.rY===0||!h.lArcFlag)||h.type&Wt.CURVE_TO||h.type&Wt.SMOOTH_CURVE_TO||h.type&Wt.QUAD_TO||h.type&Wt.SMOOTH_QUAD_TO){var F=h.x===void 0?0:h.relative?h.x:h.x-f,O=h.y===void 0?0:h.relative?h.y:h.y-p;w=isNaN(u)?h.x1===void 0?w:h.relative?h.x:h.x1-f:u-f,C=isNaN(c)?h.y1===void 0?C:h.relative?h.y:h.y1-p:c-p;var I=h.x2===void 0?0:h.relative?h.x:h.x2-f,b=h.y2===void 0?0:h.relative?h.y:h.y2-p;g(F)<=s&&g(O)<=s&&g(w)<=s&&g(C)<=s&&g(I)<=s&&g(b)<=s&&(_=!0)}return h.type&Wt.CLOSE_PATH&&g(f-v)<=s&&g(p-m)<=s&&(_=!0),_?[]:h})},r.MATRIX=a,r.ROTATE=function(s,A,l){A===void 0&&(A=0),l===void 0&&(l=0),aA(s,A,l);var u=Math.sin(s),c=Math.cos(s);return a(c,u,-u,c,A-A*c+l*u,l-A*u-l*c)},r.TRANSLATE=function(s,A){return A===void 0&&(A=0),aA(s,A),a(1,0,0,1,s,A)},r.SCALE=function(s,A){return A===void 0&&(A=s),aA(s,A),a(s,0,0,A,0,0)},r.SKEW_X=function(s){return aA(s),a(1,0,Math.atan(s),1,0,0)},r.SKEW_Y=function(s){return aA(s),a(1,Math.atan(s),0,1,0,0)},r.X_AXIS_SYMMETRY=function(s){return s===void 0&&(s=0),aA(s),a(-1,0,0,1,s,0)},r.Y_AXIS_SYMMETRY=function(s){return s===void 0&&(s=0),aA(s),a(1,0,0,-1,0,s)},r.A_TO_C=function(){return i(function(s,A,l){return Wt.ARC===s.type?function(u,c,h){var f,p,v,m;u.cX||bb(u,c,h);for(var g=Math.min(u.phi1,u.phi2),_=Math.max(u.phi1,u.phi2)-g,w=Math.ceil(_/90),C=new Array(w),F=c,O=h,I=0;I<w;I++){var b=aD(u.phi1,u.phi2,I/w),L=aD(u.phi1,u.phi2,(I+1)/w),N=L-b,x=4/3*Math.tan(N*jl/4),S=[Math.cos(b*jl)-x*Math.sin(b*jl),Math.sin(b*jl)+x*Math.cos(b*jl)],P=S[0],U=S[1],tt=[Math.cos(L*jl),Math.sin(L*jl)],q=tt[0],rt=tt[1],nt=[q+x*Math.sin(L*jl),rt-x*Math.cos(L*jl)],At=nt[0],ct=nt[1];C[I]={relative:u.relative,type:Wt.CURVE_TO};var bt=function(M,Y){var z=$I([M*u.rX,Y*u.rY],u.xRot),H=z[0],J=z[1];return[u.cX+H,u.cY+J]};f=bt(P,U),C[I].x1=f[0],C[I].y1=f[1],p=bt(At,ct),C[I].x2=p[0],C[I].y2=p[1],v=bt(q,rt),C[I].x=v[0],C[I].y=v[1],u.relative&&(C[I].x1-=F,C[I].y1-=O,C[I].x2-=F,C[I].y2-=O,C[I].x-=F,C[I].y-=O),F=(m=[C[I].x,C[I].y])[0],O=m[1]}return C}(s,s.relative?0:A,s.relative?0:l):s})},r.ANNOTATE_ARCS=function(){return i(function(s,A,l){return s.relative&&(A=0,l=0),Wt.ARC===s.type&&bb(s,A,l),s})},r.CLONE=o,r.CALCULATE_BOUNDS=function(){var s=function(h){var f={};for(var p in h)f[p]=h[p];return f},A=e(),l=n(),u=t(),c=i(function(h,f,p){var v=u(l(A(s(h))));function m(ct){ct>c.maxX&&(c.maxX=ct),ct<c.minX&&(c.minX=ct)}function g(ct){ct>c.maxY&&(c.maxY=ct),ct<c.minY&&(c.minY=ct)}if(v.type&Wt.DRAWING_COMMANDS&&(m(f),g(p)),v.type&Wt.HORIZ_LINE_TO&&m(v.x),v.type&Wt.VERT_LINE_TO&&g(v.y),v.type&Wt.LINE_TO&&(m(v.x),g(v.y)),v.type&Wt.CURVE_TO){m(v.x),g(v.y);for(var _=0,w=sD(f,v.x1,v.x2,v.x);_<w.length;_++)0<(At=w[_])&&1>At&&m(AD(f,v.x1,v.x2,v.x,At));for(var C=0,F=sD(p,v.y1,v.y2,v.y);C<F.length;C++)0<(At=F[C])&&1>At&&g(AD(p,v.y1,v.y2,v.y,At))}if(v.type&Wt.ARC){m(v.x),g(v.y),bb(v,f,p);for(var O=v.xRot/180*Math.PI,I=Math.cos(O)*v.rX,b=Math.sin(O)*v.rX,L=-Math.sin(O)*v.rY,N=Math.cos(O)*v.rY,x=v.phi1<v.phi2?[v.phi1,v.phi2]:-180>v.phi2?[v.phi2+360,v.phi1+360]:[v.phi2,v.phi1],S=x[0],P=x[1],U=function(ct){var bt=ct[0],M=ct[1],Y=180*Math.atan2(M,bt)/Math.PI;return Y<S?Y+360:Y},tt=0,q=iD(L,-I,0).map(U);tt<q.length;tt++)(At=q[tt])>S&&At<P&&m(oD(v.cX,I,L,At));for(var rt=0,nt=iD(N,-b,0).map(U);rt<nt.length;rt++){var At;(At=nt[rt])>S&&At<P&&g(oD(v.cY,b,N,At))}}return h});return c.minX=1/0,c.maxX=-1/0,c.minY=1/0,c.maxY=-1/0,c}})(Oi||(Oi={}));var nA,Y7=function(){function r(){}return r.prototype.round=function(e){return this.transform(Oi.ROUND(e))},r.prototype.toAbs=function(){return this.transform(Oi.TO_ABS())},r.prototype.toRel=function(){return this.transform(Oi.TO_REL())},r.prototype.normalizeHVZ=function(e,t,n){return this.transform(Oi.NORMALIZE_HVZ(e,t,n))},r.prototype.normalizeST=function(){return this.transform(Oi.NORMALIZE_ST())},r.prototype.qtToC=function(){return this.transform(Oi.QT_TO_C())},r.prototype.aToC=function(){return this.transform(Oi.A_TO_C())},r.prototype.sanitize=function(e){return this.transform(Oi.SANITIZE(e))},r.prototype.translate=function(e,t){return this.transform(Oi.TRANSLATE(e,t))},r.prototype.scale=function(e,t){return this.transform(Oi.SCALE(e,t))},r.prototype.rotate=function(e,t,n){return this.transform(Oi.ROTATE(e,t,n))},r.prototype.matrix=function(e,t,n,i,a,o){return this.transform(Oi.MATRIX(e,t,n,i,a,o))},r.prototype.skewX=function(e){return this.transform(Oi.SKEW_X(e))},r.prototype.skewY=function(e){return this.transform(Oi.SKEW_Y(e))},r.prototype.xSymmetry=function(e){return this.transform(Oi.X_AXIS_SYMMETRY(e))},r.prototype.ySymmetry=function(e){return this.transform(Oi.Y_AXIS_SYMMETRY(e))},r.prototype.annotateArcs=function(){return this.transform(Oi.ANNOTATE_ARCS())},r}(),qLt=function(r){return r===" "||r===" "||r==="\r"||r===`
|
||
`},lD=function(r){return"0".charCodeAt(0)<=r.charCodeAt(0)&&r.charCodeAt(0)<="9".charCodeAt(0)},ZLt=function(r){function e(){var t=r.call(this)||this;return t.curNumber="",t.curCommandType=-1,t.curCommandRelative=!1,t.canParseCommandOrComma=!0,t.curNumberHasExp=!1,t.curNumberHasExpDigits=!1,t.curNumberHasDecimal=!1,t.curArgs=[],t}return K7(e,r),e.prototype.finish=function(t){if(t===void 0&&(t=[]),this.parse(" ",t),this.curArgs.length!==0||!this.canParseCommandOrComma)throw new SyntaxError("Unterminated command at the path end.");return t},e.prototype.parse=function(t,n){var i=this;n===void 0&&(n=[]);for(var a=function(c){n.push(c),i.curArgs.length=0,i.canParseCommandOrComma=!0},o=0;o<t.length;o++){var s=t[o],A=!(this.curCommandType!==Wt.ARC||this.curArgs.length!==3&&this.curArgs.length!==4||this.curNumber.length!==1||this.curNumber!=="0"&&this.curNumber!=="1"),l=lD(s)&&(this.curNumber==="0"&&s==="0"||A);if(!lD(s)||l)if(s!=="e"&&s!=="E")if(s!=="-"&&s!=="+"||!this.curNumberHasExp||this.curNumberHasExpDigits)if(s!=="."||this.curNumberHasExp||this.curNumberHasDecimal||A){if(this.curNumber&&this.curCommandType!==-1){var u=Number(this.curNumber);if(isNaN(u))throw new SyntaxError("Invalid number ending at "+o);if(this.curCommandType===Wt.ARC){if(this.curArgs.length===0||this.curArgs.length===1){if(0>u)throw new SyntaxError('Expected positive number, got "'+u+'" at index "'+o+'"')}else if((this.curArgs.length===3||this.curArgs.length===4)&&this.curNumber!=="0"&&this.curNumber!=="1")throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+o+'"')}this.curArgs.push(u),this.curArgs.length===JLt[this.curCommandType]&&(Wt.HORIZ_LINE_TO===this.curCommandType?a({type:Wt.HORIZ_LINE_TO,relative:this.curCommandRelative,x:u}):Wt.VERT_LINE_TO===this.curCommandType?a({type:Wt.VERT_LINE_TO,relative:this.curCommandRelative,y:u}):this.curCommandType===Wt.MOVE_TO||this.curCommandType===Wt.LINE_TO||this.curCommandType===Wt.SMOOTH_QUAD_TO?(a({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),Wt.MOVE_TO===this.curCommandType&&(this.curCommandType=Wt.LINE_TO)):this.curCommandType===Wt.CURVE_TO?a({type:Wt.CURVE_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x2:this.curArgs[2],y2:this.curArgs[3],x:this.curArgs[4],y:this.curArgs[5]}):this.curCommandType===Wt.SMOOTH_CURVE_TO?a({type:Wt.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===Wt.QUAD_TO?a({type:Wt.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===Wt.ARC&&a({type:Wt.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber="",this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(!qLt(s))if(s===","&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if(s!=="+"&&s!=="-"&&s!==".")if(l)this.curNumber=s,this.curNumberHasDecimal=!1;else{if(this.curArgs.length!==0)throw new SyntaxError("Unterminated command at index "+o+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+s+'" at index '+o+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,s!=="z"&&s!=="Z")if(s==="h"||s==="H")this.curCommandType=Wt.HORIZ_LINE_TO,this.curCommandRelative=s==="h";else if(s==="v"||s==="V")this.curCommandType=Wt.VERT_LINE_TO,this.curCommandRelative=s==="v";else if(s==="m"||s==="M")this.curCommandType=Wt.MOVE_TO,this.curCommandRelative=s==="m";else if(s==="l"||s==="L")this.curCommandType=Wt.LINE_TO,this.curCommandRelative=s==="l";else if(s==="c"||s==="C")this.curCommandType=Wt.CURVE_TO,this.curCommandRelative=s==="c";else if(s==="s"||s==="S")this.curCommandType=Wt.SMOOTH_CURVE_TO,this.curCommandRelative=s==="s";else if(s==="q"||s==="Q")this.curCommandType=Wt.QUAD_TO,this.curCommandRelative=s==="q";else if(s==="t"||s==="T")this.curCommandType=Wt.SMOOTH_QUAD_TO,this.curCommandRelative=s==="t";else{if(s!=="a"&&s!=="A")throw new SyntaxError('Unexpected character "'+s+'" at index '+o+".");this.curCommandType=Wt.ARC,this.curCommandRelative=s==="a"}else n.push({type:Wt.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=s,this.curNumberHasDecimal=s==="."}else this.curNumber+=s,this.curNumberHasDecimal=!0;else this.curNumber+=s;else this.curNumber+=s,this.curNumberHasExp=!0;else this.curNumber+=s,this.curNumberHasExpDigits=this.curNumberHasExp}return n},e.prototype.transform=function(t){return Object.create(this,{parse:{value:function(n,i){i===void 0&&(i=[]);for(var a=0,o=Object.getPrototypeOf(this).parse.call(this,n);a<o.length;a++){var s=o[a],A=t(s);Array.isArray(A)?i.push.apply(i,A):i.push(A)}return i}}})},e}(Y7),Wt=function(r){function e(t){var n=r.call(this)||this;return n.commands=typeof t=="string"?e.parse(t):t,n}return K7(e,r),e.prototype.encode=function(){return e.encode(this.commands)},e.prototype.getBounds=function(){var t=Oi.CALCULATE_BOUNDS();return this.transform(t),t},e.prototype.transform=function(t){for(var n=[],i=0,a=this.commands;i<a.length;i++){var o=t(a[i]);Array.isArray(o)?n.push.apply(n,o):n.push(o)}return this.commands=n,this},e.encode=function(t){return XLt(t)},e.parse=function(t){var n=new ZLt,i=[];return n.parse(t,i),n.finish(i),i},e.CLOSE_PATH=1,e.MOVE_TO=2,e.HORIZ_LINE_TO=4,e.VERT_LINE_TO=8,e.LINE_TO=16,e.CURVE_TO=32,e.SMOOTH_CURVE_TO=64,e.QUAD_TO=128,e.SMOOTH_QUAD_TO=256,e.ARC=512,e.LINE_COMMANDS=e.LINE_TO|e.HORIZ_LINE_TO|e.VERT_LINE_TO,e.DRAWING_COMMANDS=e.HORIZ_LINE_TO|e.VERT_LINE_TO|e.LINE_TO|e.CURVE_TO|e.SMOOTH_CURVE_TO|e.QUAD_TO|e.SMOOTH_QUAD_TO|e.ARC,e}(Y7),JLt=((nA={})[Wt.MOVE_TO]=2,nA[Wt.LINE_TO]=2,nA[Wt.HORIZ_LINE_TO]=1,nA[Wt.VERT_LINE_TO]=1,nA[Wt.CLOSE_PATH]=0,nA[Wt.QUAD_TO]=4,nA[Wt.SMOOTH_QUAD_TO]=2,nA[Wt.CURVE_TO]=6,nA[Wt.SMOOTH_CURVE_TO]=4,nA[Wt.ARC]=7,nA),tFt=Fn,eFt=bC.PROPER,rFt=ch.exports,nFt=qa,iFt=mC,uD=Bl,aFt=Di,oFt=_7,oR="toString",VI=RegExp.prototype,W7=VI[oR],sFt=tFt(oFt),AFt=aFt(function(){return W7.call({source:"a",flags:"b"})!="/a/b"}),lFt=eFt&&W7.name!=oR;(AFt||lFt)&&rFt(RegExp.prototype,oR,function(){var e=nFt(this),t=uD(e.source),n=e.flags,i=uD(n===void 0&&iFt(VI,e)&&!("flags"in VI)?sFt(e):n);return"/"+t+"/"+i},{unsafe:!0});function F1(r){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?F1=function(e){return typeof e}:F1=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},F1(r)}function uFt(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}var cFt=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],hFt=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function fFt(r,e,t,n,i){if(typeof r=="string"&&(r=document.getElementById(r)),!r||F1(r)!=="object"||!("getContext"in r))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var a=r.getContext("2d");try{return a.getImageData(e,t,n,i)}catch(o){throw new Error("unable to access image data: "+o)}}function pFt(r,e,t,n,i,a){if(!(isNaN(a)||a<1)){a|=0;var o=fFt(r,e,t,n,i);o=dFt(o,e,t,n,i,a),r.getContext("2d").putImageData(o,e,t)}}function dFt(r,e,t,n,i,a){for(var o=r.data,s=2*a+1,A=n-1,l=i-1,u=a+1,c=u*(u+1)/2,h=new cD,f=h,p,v=1;v<s;v++)f=f.next=new cD,v===u&&(p=f);f.next=h;for(var m=null,g=null,_=0,w=0,C=cFt[a],F=hFt[a],O=0;O<i;O++){f=h;for(var I=o[w],b=o[w+1],L=o[w+2],N=o[w+3],x=0;x<u;x++)f.r=I,f.g=b,f.b=L,f.a=N,f=f.next;for(var S=0,P=0,U=0,tt=0,q=u*I,rt=u*b,nt=u*L,At=u*N,ct=c*I,bt=c*b,M=c*L,Y=c*N,z=1;z<u;z++){var H=w+((A<z?A:z)<<2),J=o[H],ot=o[H+1],ut=o[H+2],X=o[H+3],It=u-z;ct+=(f.r=J)*It,bt+=(f.g=ot)*It,M+=(f.b=ut)*It,Y+=(f.a=X)*It,S+=J,P+=ot,U+=ut,tt+=X,f=f.next}m=h,g=p;for(var at=0;at<n;at++){var j=Y*C>>F;if(o[w+3]=j,j!==0){var Z=255/j;o[w]=(ct*C>>F)*Z,o[w+1]=(bt*C>>F)*Z,o[w+2]=(M*C>>F)*Z}else o[w]=o[w+1]=o[w+2]=0;ct-=q,bt-=rt,M-=nt,Y-=At,q-=m.r,rt-=m.g,nt-=m.b,At-=m.a;var ft=at+a+1;ft=_+(ft<A?ft:A)<<2,S+=m.r=o[ft],P+=m.g=o[ft+1],U+=m.b=o[ft+2],tt+=m.a=o[ft+3],ct+=S,bt+=P,M+=U,Y+=tt,m=m.next;var it=g,V=it.r,Ot=it.g,Mt=it.b,Et=it.a;q+=V,rt+=Ot,nt+=Mt,At+=Et,S-=V,P-=Ot,U-=Mt,tt-=Et,g=g.next,w+=4}_+=n}for(var Bt=0;Bt<n;Bt++){w=Bt<<2;var Ct=o[w],Rt=o[w+1],Nt=o[w+2],Dt=o[w+3],Yt=u*Ct,te=u*Rt,Ae=u*Nt,oe=u*Dt,Jt=c*Ct,fe=c*Rt,qt=c*Nt,rr=c*Dt;f=h;for(var ke=0;ke<u;ke++)f.r=Ct,f.g=Rt,f.b=Nt,f.a=Dt,f=f.next;for(var _r=n,Ne=0,Pe=0,kr=0,se=0,ui=1;ui<=a;ui++){w=_r+Bt<<2;var dr=u-ui;Jt+=(f.r=Ct=o[w])*dr,fe+=(f.g=Rt=o[w+1])*dr,qt+=(f.b=Nt=o[w+2])*dr,rr+=(f.a=Dt=o[w+3])*dr,se+=Ct,Ne+=Rt,Pe+=Nt,kr+=Dt,f=f.next,ui<l&&(_r+=n)}w=Bt,m=h,g=p;for(var Jn=0;Jn<i;Jn++){var Kr=w<<2;o[Kr+3]=Dt=rr*C>>F,Dt>0?(Dt=255/Dt,o[Kr]=(Jt*C>>F)*Dt,o[Kr+1]=(fe*C>>F)*Dt,o[Kr+2]=(qt*C>>F)*Dt):o[Kr]=o[Kr+1]=o[Kr+2]=0,Jt-=Yt,fe-=te,qt-=Ae,rr-=oe,Yt-=m.r,te-=m.g,Ae-=m.b,oe-=m.a,Kr=Bt+((Kr=Jn+u)<l?Kr:l)*n<<2,Jt+=se+=m.r=o[Kr],fe+=Ne+=m.g=o[Kr+1],qt+=Pe+=m.b=o[Kr+2],rr+=kr+=m.a=o[Kr+3],m=m.next,Yt+=Ct=g.r,te+=Rt=g.g,Ae+=Nt=g.b,oe+=Dt=g.a,se-=Ct,Ne-=Rt,Pe-=Nt,kr-=Dt,g=g.next,w+=n}}return r}var cD=function r(){uFt(this,r),this.r=0,this.g=0,this.b=0,this.a=0,this.next=null};function vFt(){var{DOMParser:r}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:r,createCanvas(t,n){return new OffscreenCanvas(t,n)},createImage(t){return _u(function*(){var n=yield fetch(t),i=yield n.blob(),a=yield createImageBitmap(i);return a})()}};return(typeof DOMParser<"u"||typeof r>"u")&&Reflect.deleteProperty(e,"DOMParser"),e}function gFt(r){var{DOMParser:e,canvas:t,fetch:n}=r;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:e,fetch:n,createCanvas:t.createCanvas,createImage:t.loadImage}}var mFt=Object.freeze({__proto__:null,offscreen:vFt,node:gFt});function fp(r){return r.replace(/(?!\u3000)\s+/gm," ")}function z7(r){return r.replace(/^[\n \t]+/,"")}function X7(r){return r.replace(/[\n \t]+$/,"")}function Po(r){var e=(r||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[];return e.map(parseFloat)}var yFt=/^[A-Z-]+$/;function q7(r){return yFt.test(r)?r.toLowerCase():r}function sR(r){var e=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(r)||[];return e[2]||e[3]||e[4]}function Z7(r){if(!r.startsWith("rgb"))return r;var e=3,t=r.replace(/\d+(\.\d+)?/g,(n,i)=>e--&&i?String(Math.round(parseFloat(n))):n);return t}var _Ft=/(\[[^\]]+\])/g,wFt=/(#[^\s+>~.[:]+)/g,EFt=/(\.[^\s+>~.[:]+)/g,CFt=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,BFt=/(:[\w-]+\([^)]*\))/gi,TFt=/(:[^\s+>~.[:]+)/g,bFt=/([^\s+>~.[:]+)/g;function Wh(r,e){var t=e.exec(r);return t?[r.replace(e," "),t.length]:[r,0]}function J7(r){var e=[0,0,0],t=r.replace(/:not\(([^)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),n=0;return[t,n]=Wh(t,_Ft),e[1]+=n,[t,n]=Wh(t,wFt),e[0]+=n,[t,n]=Wh(t,EFt),e[1]+=n,[t,n]=Wh(t,CFt),e[2]+=n,[t,n]=Wh(t,BFt),e[1]+=n,[t,n]=Wh(t,TFt),e[1]+=n,t=t.replace(/[*\s+>~]/g," ").replace(/[#.]/g," "),[t,n]=Wh(t,bFt),e[2]+=n,e.join("")}var xf=1e-8;function jI(r){return Math.sqrt(Math.pow(r[0],2)+Math.pow(r[1],2))}function zw(r,e){return(r[0]*e[0]+r[1]*e[1])/(jI(r)*jI(e))}function KI(r,e){return(r[0]*e[1]<r[1]*e[0]?-1:1)*Math.acos(zw(r,e))}function YI(r){return r*r*r}function WI(r){return 3*r*r*(1-r)}function zI(r){return 3*r*(1-r)*(1-r)}function XI(r){return(1-r)*(1-r)*(1-r)}function qI(r){return r*r}function ZI(r){return 2*r*(1-r)}function JI(r){return(1-r)*(1-r)}class Qe{constructor(e,t,n){this.document=e,this.name=t,this.value=n,this.isNormalizedColor=!1}static empty(e){return new Qe(e,"EMPTY","")}split(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:" ",{document:t,name:n}=this;return fp(this.getString()).trim().split(e).map(i=>new Qe(t,n,i))}hasValue(e){var{value:t}=this;return t!==null&&t!==""&&(e||t!==0)&&typeof t<"u"}isString(e){var{value:t}=this,n=typeof t=="string";return!n||!e?n:e.test(t)}isUrlDefinition(){return this.isString(/^url\(/)}isPixels(){if(!this.hasValue())return!1;var e=this.getString();switch(!0){case e.endsWith("px"):case/^[0-9]+$/.test(e):return!0;default:return!1}}setValue(e){return this.value=e,this}getValue(e){return typeof e>"u"||this.hasValue()?this.value:e}getNumber(e){if(!this.hasValue())return typeof e>"u"?0:parseFloat(e);var{value:t}=this,n=parseFloat(t);return this.isString(/%$/)&&(n/=100),n}getString(e){return typeof e>"u"||this.hasValue()?typeof this.value>"u"?"":String(this.value):String(e)}getColor(e){var t=this.getString(e);return this.isNormalizedColor||(this.isNormalizedColor=!0,t=Z7(t),this.value=t),t}getDpi(){return 96}getRem(){return this.document.rootEmSize}getEm(){return this.document.emSize}getUnits(){return this.getString().replace(/[0-9.-]/g,"")}getPixels(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!this.hasValue())return 0;var[n,i]=typeof e=="boolean"?[void 0,e]:[e],{viewPort:a}=this.document.screen;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(a.computeSize("x"),a.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(a.computeSize("x"),a.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*a.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*a.computeSize("y");case this.isString(/rem$/):return this.getNumber()*this.getRem();case this.isString(/em$/):return this.getNumber()*this.getEm();case this.isString(/ex$/):return this.getNumber()*this.getEm()/2;case this.isString(/px$/):return this.getNumber();case this.isString(/pt$/):return this.getNumber()*this.getDpi()*(1/72);case this.isString(/pc$/):return this.getNumber()*15;case this.isString(/cm$/):return this.getNumber()*this.getDpi()/2.54;case this.isString(/mm$/):return this.getNumber()*this.getDpi()/25.4;case this.isString(/in$/):return this.getNumber()*this.getDpi();case(this.isString(/%$/)&&i):return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*a.computeSize(n);default:{var o=this.getNumber();return t&&o<1?o*a.computeSize(n):o}}}getMilliseconds(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():this.getNumber()*1e3:0}getRadians(){if(!this.hasValue())return 0;switch(!0){case this.isString(/deg$/):return this.getNumber()*(Math.PI/180);case this.isString(/grad$/):return this.getNumber()*(Math.PI/200);case this.isString(/rad$/):return this.getNumber();default:return this.getNumber()*(Math.PI/180)}}getDefinition(){var e=this.getString(),t=/#([^)'"]+)/.exec(e);return t&&(t=t[1]),t||(t=e),this.document.definitions[t]}getFillStyleDefinition(e,t){var n=this.getDefinition();if(!n)return null;if(typeof n.createGradient=="function")return n.createGradient(this.document.ctx,e,t);if(typeof n.createPattern=="function"){if(n.getHrefAttribute().hasValue()){var i=n.getAttribute("patternTransform");n=n.getHrefAttribute().getDefinition(),i.hasValue()&&n.getAttribute("patternTransform",!0).setValue(i.value)}return n.createPattern(this.document.ctx,e,t)}return null}getTextBaseline(){return this.hasValue()?Qe.textBaselineMapping[this.getString()]:null}addOpacity(e){for(var t=this.getColor(),n=t.length,i=0,a=0;a<n&&(t[a]===","&&i++,i!==3);a++);if(e.hasValue()&&this.isString()&&i!==3){var o=new HI(t);o.ok&&(o.alpha=e.getNumber(),t=o.toRGBA())}return new Qe(this.document,this.name,t)}}Qe.textBaselineMapping={baseline:"alphabetic","before-edge":"top","text-before-edge":"top",middle:"middle",central:"middle","after-edge":"bottom","text-after-edge":"bottom",ideographic:"ideographic",alphabetic:"alphabetic",hanging:"hanging",mathematical:"alphabetic"};class t${constructor(){this.viewPorts=[]}clear(){this.viewPorts=[]}setCurrent(e,t){this.viewPorts.push({width:e,height:t})}removeCurrent(){this.viewPorts.pop()}getCurrent(){var{viewPorts:e}=this;return e[e.length-1]}get width(){return this.getCurrent().width}get height(){return this.getCurrent().height}computeSize(e){return typeof e=="number"?e:e==="x"?this.width:e==="y"?this.height:Math.sqrt(Math.pow(this.width,2)+Math.pow(this.height,2))/Math.sqrt(2)}}class oi{constructor(e,t){this.x=e,this.y=t}static parse(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,[n=t,i=t]=Po(e);return new oi(n,i)}static parseScale(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,[n=t,i=n]=Po(e);return new oi(n,i)}static parsePath(e){for(var t=Po(e),n=t.length,i=[],a=0;a<n;a+=2)i.push(new oi(t[a],t[a+1]));return i}angleTo(e){return Math.atan2(e.y-this.y,e.x-this.x)}applyTransform(e){var{x:t,y:n}=this,i=t*e[0]+n*e[2]+e[4],a=t*e[1]+n*e[3]+e[5];this.x=i,this.y=a}}class e${constructor(e){this.screen=e,this.working=!1,this.events=[],this.eventElements=[],this.onClick=this.onClick.bind(this),this.onMouseMove=this.onMouseMove.bind(this)}isWorking(){return this.working}start(){if(!this.working){var{screen:e,onClick:t,onMouseMove:n}=this,i=e.ctx.canvas;i.onclick=t,i.onmousemove=n,this.working=!0}}stop(){if(this.working){var e=this.screen.ctx.canvas;this.working=!1,e.onclick=null,e.onmousemove=null}}hasEvents(){return this.working&&this.events.length>0}runEvents(){if(this.working){var{screen:e,events:t,eventElements:n}=this,{style:i}=e.ctx.canvas;i&&(i.cursor=""),t.forEach((a,o)=>{for(var{run:s}=a,A=n[o];A;)s(A),A=A.parent}),this.events=[],this.eventElements=[]}}checkPath(e,t){if(!(!this.working||!t)){var{events:n,eventElements:i}=this;n.forEach((a,o)=>{var{x:s,y:A}=a;!i[o]&&t.isPointInPath&&t.isPointInPath(s,A)&&(i[o]=e)})}}checkBoundingBox(e,t){if(!(!this.working||!t)){var{events:n,eventElements:i}=this;n.forEach((a,o)=>{var{x:s,y:A}=a;!i[o]&&t.isPointInBox(s,A)&&(i[o]=e)})}}mapXY(e,t){for(var{window:n,ctx:i}=this.screen,a=new oi(e,t),o=i.canvas;o;)a.x-=o.offsetLeft,a.y-=o.offsetTop,o=o.offsetParent;return n.scrollX&&(a.x+=n.scrollX),n.scrollY&&(a.y+=n.scrollY),a}onClick(e){var{x:t,y:n}=this.mapXY(e.clientX,e.clientY);this.events.push({type:"onclick",x:t,y:n,run(i){i.onClick&&i.onClick()}})}onMouseMove(e){var{x:t,y:n}=this.mapXY(e.clientX,e.clientY);this.events.push({type:"onmousemove",x:t,y:n,run(i){i.onMouseMove&&i.onMouseMove()}})}}var r$=typeof window<"u"?window:null,n$=typeof fetch<"u"?fetch.bind(void 0):null;class s0{constructor(e){var{fetch:t=n$,window:n=r$}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.ctx=e,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new t$,this.mouse=new e$(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=n,this.fetch=t}wait(e){this.waits.push(e)}ready(){return this.readyPromise?this.readyPromise:Promise.resolve()}isReady(){if(this.isReadyLock)return!0;var e=this.waits.every(t=>t());return e&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=e,e}setDefaults(e){e.strokeStyle="rgba(0,0,0,0)",e.lineCap="butt",e.lineJoin="miter",e.miterLimit=4}setViewBox(e){var{document:t,ctx:n,aspectRatio:i,width:a,desiredWidth:o,height:s,desiredHeight:A,minX:l=0,minY:u=0,refX:c,refY:h,clip:f=!1,clipX:p=0,clipY:v=0}=e,m=fp(i).replace(/^defer\s/,""),[g,_]=m.split(" "),w=g||"xMidYMid",C=_||"meet",F=a/o,O=s/A,I=Math.min(F,O),b=Math.max(F,O),L=o,N=A;C==="meet"&&(L*=I,N*=I),C==="slice"&&(L*=b,N*=b);var x=new Qe(t,"refX",c),S=new Qe(t,"refY",h),P=x.hasValue()&&S.hasValue();if(P&&n.translate(-I*x.getPixels("x"),-I*S.getPixels("y")),f){var U=I*p,tt=I*v;n.beginPath(),n.moveTo(U,tt),n.lineTo(a,tt),n.lineTo(a,s),n.lineTo(U,s),n.closePath(),n.clip()}if(!P){var q=C==="meet"&&I===O,rt=C==="slice"&&b===O,nt=C==="meet"&&I===F,At=C==="slice"&&b===F;w.startsWith("xMid")&&(q||rt)&&n.translate(a/2-L/2,0),w.endsWith("YMid")&&(nt||At)&&n.translate(0,s/2-N/2),w.startsWith("xMax")&&(q||rt)&&n.translate(a-L,0),w.endsWith("YMax")&&(nt||At)&&n.translate(0,s-N)}switch(!0){case w==="none":n.scale(F,O);break;case C==="meet":n.scale(I,I);break;case C==="slice":n.scale(b,b);break}n.translate(-l,-u)}start(e){var{enableRedraw:t=!1,ignoreMouse:n=!1,ignoreAnimation:i=!1,ignoreDimensions:a=!1,ignoreClear:o=!1,forceRedraw:s,scaleWidth:A,scaleHeight:l,offsetX:u,offsetY:c}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{FRAMERATE:h,mouse:f}=this,p=1e3/h;if(this.frameDuration=p,this.readyPromise=new Promise(w=>{this.resolveReady=w}),this.isReady()&&this.render(e,a,o,A,l,u,c),!!t){var v=Date.now(),m=v,g=0,_=()=>{v=Date.now(),g=v-m,g>=p&&(m=v-g%p,this.shouldUpdate(i,s)&&(this.render(e,a,o,A,l,u,c),f.runEvents())),this.intervalId=Bb(_)};n||f.start(),this.intervalId=Bb(_)}}stop(){this.intervalId&&(Bb.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}shouldUpdate(e,t){if(!e){var{frameDuration:n}=this,i=this.animations.reduce((a,o)=>o.update(n)||a,!1);if(i)return!0}return!!(typeof t=="function"&&t()||!this.isReadyLock&&this.isReady()||this.mouse.hasEvents())}render(e,t,n,i,a,o,s){var{CLIENT_WIDTH:A,CLIENT_HEIGHT:l,viewPort:u,ctx:c,isFirstRender:h}=this,f=c.canvas;u.clear(),f.width&&f.height?u.setCurrent(f.width,f.height):u.setCurrent(A,l);var p=e.getStyle("width"),v=e.getStyle("height");!t&&(h||typeof i!="number"&&typeof a!="number")&&(p.hasValue()&&(f.width=p.getPixels("x"),f.style&&(f.style.width="".concat(f.width,"px"))),v.hasValue()&&(f.height=v.getPixels("y"),f.style&&(f.style.height="".concat(f.height,"px"))));var m=f.clientWidth||f.width,g=f.clientHeight||f.height;if(t&&p.hasValue()&&v.hasValue()&&(m=p.getPixels("x"),g=v.getPixels("y")),u.setCurrent(m,g),typeof o=="number"&&e.getAttribute("x",!0).setValue(o),typeof s=="number"&&e.getAttribute("y",!0).setValue(s),typeof i=="number"||typeof a=="number"){var _=Po(e.getAttribute("viewBox").getString()),w=0,C=0;if(typeof i=="number"){var F=e.getStyle("width");F.hasValue()?w=F.getPixels("x")/i:isNaN(_[2])||(w=_[2]/i)}if(typeof a=="number"){var O=e.getStyle("height");O.hasValue()?C=O.getPixels("y")/a:isNaN(_[3])||(C=_[3]/a)}w||(w=C),C||(C=w),e.getAttribute("width",!0).setValue(i),e.getAttribute("height",!0).setValue(a);var I=e.getStyle("transform",!0,!0);I.setValue("".concat(I.getString()," scale(").concat(1/w,", ").concat(1/C,")"))}n||c.clearRect(0,0,m,g),e.render(c),h&&(this.isFirstRender=!1)}}s0.defaultWindow=r$;s0.defaultFetch=n$;var{defaultFetch:SFt}=s0,xFt=typeof DOMParser<"u"?DOMParser:null;class O1{constructor(){var{fetch:e=SFt,DOMParser:t=xFt}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.fetch=e,this.DOMParser=t}parse(e){var t=this;return _u(function*(){return e.startsWith("<")?t.parseFromString(e):t.load(e)})()}parseFromString(e){var t=new this.DOMParser;try{return this.checkDocument(t.parseFromString(e,"image/svg+xml"))}catch{return this.checkDocument(t.parseFromString(e,"text/xml"))}}checkDocument(e){var t=e.getElementsByTagName("parsererror")[0];if(t)throw new Error(t.textContent);return e}load(e){var t=this;return _u(function*(){var n=yield t.fetch(e),i=yield n.text();return t.parseFromString(i)})()}}class i${constructor(e,t){this.type="translate",this.point=null,this.point=oi.parse(t)}apply(e){var{x:t,y:n}=this.point;e.translate(t||0,n||0)}unapply(e){var{x:t,y:n}=this.point;e.translate(-1*t||0,-1*n||0)}applyToPoint(e){var{x:t,y:n}=this.point;e.applyTransform([1,0,0,1,t||0,n||0])}}class a${constructor(e,t,n){this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var i=Po(t);this.angle=new Qe(e,"angle",i[0]),this.originX=n[0],this.originY=n[1],this.cx=i[1]||0,this.cy=i[2]||0}apply(e){var{cx:t,cy:n,originX:i,originY:a,angle:o}=this,s=t+i.getPixels("x"),A=n+a.getPixels("y");e.translate(s,A),e.rotate(o.getRadians()),e.translate(-s,-A)}unapply(e){var{cx:t,cy:n,originX:i,originY:a,angle:o}=this,s=t+i.getPixels("x"),A=n+a.getPixels("y");e.translate(s,A),e.rotate(-1*o.getRadians()),e.translate(-s,-A)}applyToPoint(e){var{cx:t,cy:n,angle:i}=this,a=i.getRadians();e.applyTransform([1,0,0,1,t||0,n||0]),e.applyTransform([Math.cos(a),Math.sin(a),-Math.sin(a),Math.cos(a),0,0]),e.applyTransform([1,0,0,1,-t||0,-n||0])}}class o${constructor(e,t,n){this.type="scale",this.scale=null,this.originX=null,this.originY=null;var i=oi.parseScale(t);(i.x===0||i.y===0)&&(i.x=xf,i.y=xf),this.scale=i,this.originX=n[0],this.originY=n[1]}apply(e){var{scale:{x:t,y:n},originX:i,originY:a}=this,o=i.getPixels("x"),s=a.getPixels("y");e.translate(o,s),e.scale(t,n||t),e.translate(-o,-s)}unapply(e){var{scale:{x:t,y:n},originX:i,originY:a}=this,o=i.getPixels("x"),s=a.getPixels("y");e.translate(o,s),e.scale(1/t,1/n||t),e.translate(-o,-s)}applyToPoint(e){var{x:t,y:n}=this.scale;e.applyTransform([t||0,0,0,n||0,0,0])}}class AR{constructor(e,t,n){this.type="matrix",this.matrix=[],this.originX=null,this.originY=null,this.matrix=Po(t),this.originX=n[0],this.originY=n[1]}apply(e){var{originX:t,originY:n,matrix:i}=this,a=t.getPixels("x"),o=n.getPixels("y");e.translate(a,o),e.transform(i[0],i[1],i[2],i[3],i[4],i[5]),e.translate(-a,-o)}unapply(e){var{originX:t,originY:n,matrix:i}=this,a=i[0],o=i[2],s=i[4],A=i[1],l=i[3],u=i[5],c=0,h=0,f=1,p=1/(a*(l*f-u*h)-o*(A*f-u*c)+s*(A*h-l*c)),v=t.getPixels("x"),m=n.getPixels("y");e.translate(v,m),e.transform(p*(l*f-u*h),p*(u*c-A*f),p*(s*h-o*f),p*(a*f-s*c),p*(o*u-s*l),p*(s*A-a*u)),e.translate(-v,-m)}applyToPoint(e){e.applyTransform(this.matrix)}}class lR extends AR{constructor(e,t,n){super(e,t,n),this.type="skew",this.angle=null,this.angle=new Qe(e,"angle",t)}}class s$ extends lR{constructor(e,t,n){super(e,t,n),this.type="skewX",this.matrix=[1,0,Math.tan(this.angle.getRadians()),1,0,0]}}class A$ extends lR{constructor(e,t,n){super(e,t,n),this.type="skewY",this.matrix=[1,Math.tan(this.angle.getRadians()),0,1,0,0]}}function IFt(r){return fp(r).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}function LFt(r){var[e,t]=r.split("(");return[e.trim(),t.trim().replace(")","")]}class rh{constructor(e,t,n){this.document=e,this.transforms=[];var i=IFt(t);i.forEach(a=>{if(a!=="none"){var[o,s]=LFt(a),A=rh.transformTypes[o];typeof A<"u"&&this.transforms.push(new A(this.document,s,n))}})}static fromElement(e,t){var n=t.getStyle("transform",!1,!0),[i,a=i]=t.getStyle("transform-origin",!1,!0).split(),o=[i,a];return n.hasValue()?new rh(e,n.getString(),o):null}apply(e){for(var{transforms:t}=this,n=t.length,i=0;i<n;i++)t[i].apply(e)}unapply(e){for(var{transforms:t}=this,n=t.length,i=n-1;i>=0;i--)t[i].unapply(e)}applyToPoint(e){for(var{transforms:t}=this,n=t.length,i=0;i<n;i++)t[i].applyToPoint(e)}}rh.transformTypes={translate:i$,rotate:a$,scale:o$,matrix:AR,skewX:s$,skewY:A$};class In{constructor(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(this.document=e,this.node=t,this.captureTextNodes=n,this.attributes={},this.styles={},this.stylesSpecificity={},this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],!(!t||t.nodeType!==1)){if(Array.from(t.attributes).forEach(s=>{var A=q7(s.nodeName);this.attributes[A]=new Qe(e,A,s.value)}),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()){var i=this.getAttribute("style").getString().split(";").map(s=>s.trim());i.forEach(s=>{if(s){var[A,l]=s.split(":").map(u=>u.trim());this.styles[A]=new Qe(e,A,l)}})}var{definitions:a}=e,o=this.getAttribute("id");o.hasValue()&&(a[o.getString()]||(a[o.getString()]=this)),Array.from(t.childNodes).forEach(s=>{if(s.nodeType===1)this.addChild(s);else if(n&&(s.nodeType===3||s.nodeType===4)){var A=e.createTextNode(s);A.getText().length>0&&this.addChild(A)}})}}getAttribute(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=this.attributes[e];if(!n&&t){var i=new Qe(this.document,e,"");return this.attributes[e]=i,i}return n||Qe.empty(this.document)}getHrefAttribute(){for(var e in this.attributes)if(e==="href"||e.endsWith(":href"))return this.attributes[e];return Qe.empty(this.document)}getStyle(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=this.styles[e];if(i)return i;var a=this.getAttribute(e);if(a!=null&&a.hasValue())return this.styles[e]=a,a;if(!n){var{parent:o}=this;if(o){var s=o.getStyle(e);if(s!=null&&s.hasValue())return s}}if(t){var A=new Qe(this.document,e,"");return this.styles[e]=A,A}return i||Qe.empty(this.document)}render(e){if(!(this.getStyle("display").getString()==="none"||this.getStyle("visibility").getString()==="hidden")){if(e.save(),this.getStyle("mask").hasValue()){var t=this.getStyle("mask").getDefinition();t&&(this.applyEffects(e),t.apply(e,this))}else if(this.getStyle("filter").getValue("none")!=="none"){var n=this.getStyle("filter").getDefinition();n&&(this.applyEffects(e),n.apply(e,this))}else this.setContext(e),this.renderChildren(e),this.clearContext(e);e.restore()}}setContext(e){}applyEffects(e){var t=rh.fromElement(this.document,this);t&&t.apply(e);var n=this.getStyle("clip-path",!1,!0);if(n.hasValue()){var i=n.getDefinition();i&&i.apply(e)}}clearContext(e){}renderChildren(e){this.children.forEach(t=>{t.render(e)})}addChild(e){var t=e instanceof In?e:this.document.createElement(e);t.parent=this,In.ignoreChildTypes.includes(t.type)||this.children.push(t)}matchesSelector(e){var{node:t}=this;if(typeof t.matches=="function")return t.matches(e);var n=t.getAttribute("class");return!n||n===""?!1:n.split(" ").some(i=>".".concat(i)===e)}addStylesFromStyleDefinition(){var{styles:e,stylesSpecificity:t}=this.document;for(var n in e)if(!n.startsWith("@")&&this.matchesSelector(n)){var i=e[n],a=t[n];if(i)for(var o in i){var s=this.stylesSpecificity[o];typeof s>"u"&&(s="000"),a>=s&&(this.styles[o]=i[o],this.stylesSpecificity[o]=a)}}}removeStyles(e,t){var n=t.reduce((i,a)=>{var o=e.getStyle(a);if(!o.hasValue())return i;var s=o.getString();return o.setValue(""),[...i,[a,s]]},[]);return n}restoreStyles(e,t){t.forEach(n=>{var[i,a]=n;e.getStyle(i,!0).setValue(a)})}}In.ignoreChildTypes=["title"];class l$ extends In{constructor(e,t,n){super(e,t,n)}}function FFt(r){var e=r.trim();return/^('|")/.test(e)?e:'"'.concat(e,'"')}function OFt(r){return typeof process>"u"?r:r.trim().split(",").map(FFt).join(",")}function RFt(r){if(!r)return"";var e=r.trim().toLowerCase();switch(e){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return e;default:return/^oblique\s+(-|)\d+deg$/.test(e)?e:""}}function MFt(r){if(!r)return"";var e=r.trim().toLowerCase();switch(e){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return e;default:return/^[\d.]+$/.test(e)?e:""}}class Va{constructor(e,t,n,i,a,o){var s=o?typeof o=="string"?Va.parse(o):o:{};this.fontFamily=a||s.fontFamily,this.fontSize=i||s.fontSize,this.fontStyle=e||s.fontStyle,this.fontWeight=n||s.fontWeight,this.fontVariant=t||s.fontVariant}static parse(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n="",i="",a="",o="",s="",A=fp(e).trim().split(" "),l={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return A.forEach(u=>{switch(!0){case(!l.fontStyle&&Va.styles.includes(u)):u!=="inherit"&&(n=u),l.fontStyle=!0;break;case(!l.fontVariant&&Va.variants.includes(u)):u!=="inherit"&&(i=u),l.fontStyle=!0,l.fontVariant=!0;break;case(!l.fontWeight&&Va.weights.includes(u)):u!=="inherit"&&(a=u),l.fontStyle=!0,l.fontVariant=!0,l.fontWeight=!0;break;case!l.fontSize:u!=="inherit"&&([o]=u.split("/")),l.fontStyle=!0,l.fontVariant=!0,l.fontWeight=!0,l.fontSize=!0;break;default:u!=="inherit"&&(s+=u)}}),new Va(n,i,a,o,s,t)}toString(){return[RFt(this.fontStyle),this.fontVariant,MFt(this.fontWeight),this.fontSize,OFt(this.fontFamily)].join(" ").trim()}}Va.styles="normal|italic|oblique|inherit";Va.variants="normal|small-caps|inherit";Va.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";class Hs{constructor(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Number.NaN,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.NaN,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Number.NaN,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Number.NaN;this.x1=e,this.y1=t,this.x2=n,this.y2=i,this.addPoint(e,t),this.addPoint(n,i)}get x(){return this.x1}get y(){return this.y1}get width(){return this.x2-this.x1}get height(){return this.y2-this.y1}addPoint(e,t){typeof e<"u"&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=e,this.x2=e),e<this.x1&&(this.x1=e),e>this.x2&&(this.x2=e)),typeof t<"u"&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=t,this.y2=t),t<this.y1&&(this.y1=t),t>this.y2&&(this.y2=t))}addX(e){this.addPoint(e,null)}addY(e){this.addPoint(null,e)}addBoundingBox(e){if(e){var{x1:t,y1:n,x2:i,y2:a}=e;this.addPoint(t,n),this.addPoint(i,a)}}sumCubic(e,t,n,i,a){return Math.pow(1-e,3)*t+3*Math.pow(1-e,2)*e*n+3*(1-e)*Math.pow(e,2)*i+Math.pow(e,3)*a}bezierCurveAdd(e,t,n,i,a){var o=6*t-12*n+6*i,s=-3*t+9*n-9*i+3*a,A=3*n-3*t;if(s===0){if(o===0)return;var l=-A/o;0<l&&l<1&&(e?this.addX(this.sumCubic(l,t,n,i,a)):this.addY(this.sumCubic(l,t,n,i,a)));return}var u=Math.pow(o,2)-4*A*s;if(!(u<0)){var c=(-o+Math.sqrt(u))/(2*s);0<c&&c<1&&(e?this.addX(this.sumCubic(c,t,n,i,a)):this.addY(this.sumCubic(c,t,n,i,a)));var h=(-o-Math.sqrt(u))/(2*s);0<h&&h<1&&(e?this.addX(this.sumCubic(h,t,n,i,a)):this.addY(this.sumCubic(h,t,n,i,a)))}}addBezierCurve(e,t,n,i,a,o,s,A){this.addPoint(e,t),this.addPoint(s,A),this.bezierCurveAdd(!0,e,n,a,s),this.bezierCurveAdd(!1,t,i,o,A)}addQuadraticCurve(e,t,n,i,a,o){var s=e+.6666666666666666*(n-e),A=t+2/3*(i-t),l=s+1/3*(a-e),u=A+1/3*(o-t);this.addBezierCurve(e,t,s,l,A,u,a,o)}isPointInBox(e,t){var{x1:n,y1:i,x2:a,y2:o}=this;return n<=e&&e<=a&&i<=t&&t<=o}}class Ar extends Wt{constructor(e){super(e.replace(/([+\-.])\s+/gm,"$1").replace(/[^MmZzLlHhVvCcSsQqTtAae\d\s.,+-].*/g,"")),this.control=null,this.start=null,this.current=null,this.command=null,this.commands=this.commands,this.i=-1,this.previousCommand=null,this.points=[],this.angles=[]}reset(){this.i=-1,this.command=null,this.previousCommand=null,this.start=new oi(0,0),this.control=new oi(0,0),this.current=new oi(0,0),this.points=[],this.angles=[]}isEnd(){var{i:e,commands:t}=this;return e>=t.length-1}next(){var e=this.commands[++this.i];return this.previousCommand=this.command,this.command=e,e}getPoint(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"x",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"y",n=new oi(this.command[e],this.command[t]);return this.makeAbsolute(n)}getAsControlPoint(e,t){var n=this.getPoint(e,t);return this.control=n,n}getAsCurrentPoint(e,t){var n=this.getPoint(e,t);return this.current=n,n}getReflectedControlPoint(){var e=this.previousCommand.type;if(e!==Wt.CURVE_TO&&e!==Wt.SMOOTH_CURVE_TO&&e!==Wt.QUAD_TO&&e!==Wt.SMOOTH_QUAD_TO)return this.current;var{current:{x:t,y:n},control:{x:i,y:a}}=this,o=new oi(2*t-i,2*n-a);return o}makeAbsolute(e){if(this.command.relative){var{x:t,y:n}=this.current;e.x+=t,e.y+=n}return e}addMarker(e,t,n){var{points:i,angles:a}=this;n&&a.length>0&&!a[a.length-1]&&(a[a.length-1]=i[i.length-1].angleTo(n)),this.addMarkerAngle(e,t?t.angleTo(e):null)}addMarkerAngle(e,t){this.points.push(e),this.angles.push(t)}getMarkerPoints(){return this.points}getMarkerAngles(){for(var{angles:e}=this,t=e.length,n=0;n<t;n++)if(!e[n]){for(var i=n+1;i<t;i++)if(e[i]){e[n]=e[i];break}}return e}}class hh extends In{constructor(){super(...arguments),this.modifiedEmSizeStack=!1}calculateOpacity(){for(var e=1,t=this;t;){var n=t.getStyle("opacity",!1,!0);n.hasValue(!0)&&(e*=n.getNumber()),t=t.parent}return e}setContext(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!t){var n=this.getStyle("fill"),i=this.getStyle("fill-opacity"),a=this.getStyle("stroke"),o=this.getStyle("stroke-opacity");if(n.isUrlDefinition()){var s=n.getFillStyleDefinition(this,i);s&&(e.fillStyle=s)}else if(n.hasValue()){n.getString()==="currentColor"&&n.setValue(this.getStyle("color").getColor());var A=n.getColor();A!=="inherit"&&(e.fillStyle=A==="none"?"rgba(0,0,0,0)":A)}if(i.hasValue()){var l=new Qe(this.document,"fill",e.fillStyle).addOpacity(i).getColor();e.fillStyle=l}if(a.isUrlDefinition()){var u=a.getFillStyleDefinition(this,o);u&&(e.strokeStyle=u)}else if(a.hasValue()){a.getString()==="currentColor"&&a.setValue(this.getStyle("color").getColor());var c=a.getString();c!=="inherit"&&(e.strokeStyle=c==="none"?"rgba(0,0,0,0)":c)}if(o.hasValue()){var h=new Qe(this.document,"stroke",e.strokeStyle).addOpacity(o).getString();e.strokeStyle=h}var f=this.getStyle("stroke-width");if(f.hasValue()){var p=f.getPixels();e.lineWidth=p||xf}var v=this.getStyle("stroke-linecap"),m=this.getStyle("stroke-linejoin"),g=this.getStyle("stroke-miterlimit"),_=this.getStyle("stroke-dasharray"),w=this.getStyle("stroke-dashoffset");if(v.hasValue()&&(e.lineCap=v.getString()),m.hasValue()&&(e.lineJoin=m.getString()),g.hasValue()&&(e.miterLimit=g.getNumber()),_.hasValue()&&_.getString()!=="none"){var C=Po(_.getString());typeof e.setLineDash<"u"?e.setLineDash(C):typeof e.webkitLineDash<"u"?e.webkitLineDash=C:typeof e.mozDash<"u"&&!(C.length===1&&C[0]===0)&&(e.mozDash=C);var F=w.getPixels();typeof e.lineDashOffset<"u"?e.lineDashOffset=F:typeof e.webkitLineDashOffset<"u"?e.webkitLineDashOffset=F:typeof e.mozDashOffset<"u"&&(e.mozDashOffset=F)}}if(this.modifiedEmSizeStack=!1,typeof e.font<"u"){var O=this.getStyle("font"),I=this.getStyle("font-style"),b=this.getStyle("font-variant"),L=this.getStyle("font-weight"),N=this.getStyle("font-size"),x=this.getStyle("font-family"),S=new Va(I.getString(),b.getString(),L.getString(),N.hasValue()?"".concat(N.getPixels(!0),"px"):"",x.getString(),Va.parse(O.getString(),e.font));I.setValue(S.fontStyle),b.setValue(S.fontVariant),L.setValue(S.fontWeight),N.setValue(S.fontSize),x.setValue(S.fontFamily),e.font=S.toString(),N.isPixels()&&(this.document.emSize=N.getPixels(),this.modifiedEmSizeStack=!0)}t||(this.applyEffects(e),e.globalAlpha=this.calculateOpacity())}clearContext(e){super.clearContext(e),this.modifiedEmSizeStack&&this.document.popEmSize()}}class ln extends hh{constructor(e,t,n){super(e,t,n),this.type="path",this.pathParser=null,this.pathParser=new Ar(this.getAttribute("d").getString())}path(e){var{pathParser:t}=this,n=new Hs;for(t.reset(),e&&e.beginPath();!t.isEnd();)switch(t.next().type){case Ar.MOVE_TO:this.pathM(e,n);break;case Ar.LINE_TO:this.pathL(e,n);break;case Ar.HORIZ_LINE_TO:this.pathH(e,n);break;case Ar.VERT_LINE_TO:this.pathV(e,n);break;case Ar.CURVE_TO:this.pathC(e,n);break;case Ar.SMOOTH_CURVE_TO:this.pathS(e,n);break;case Ar.QUAD_TO:this.pathQ(e,n);break;case Ar.SMOOTH_QUAD_TO:this.pathT(e,n);break;case Ar.ARC:this.pathA(e,n);break;case Ar.CLOSE_PATH:this.pathZ(e,n);break}return n}getBoundingBox(e){return this.path()}getMarkers(){var{pathParser:e}=this,t=e.getMarkerPoints(),n=e.getMarkerAngles(),i=t.map((a,o)=>[a,n[o]]);return i}renderChildren(e){this.path(e),this.document.screen.mouse.checkPath(this,e);var t=this.getStyle("fill-rule");e.fillStyle!==""&&(t.getString("inherit")!=="inherit"?e.fill(t.getString()):e.fill()),e.strokeStyle!==""&&(this.getAttribute("vector-effect").getString()==="non-scaling-stroke"?(e.save(),e.setTransform(1,0,0,1,0,0),e.stroke(),e.restore()):e.stroke());var n=this.getMarkers();if(n){var i=n.length-1,a=this.getStyle("marker-start"),o=this.getStyle("marker-mid"),s=this.getStyle("marker-end");if(a.isUrlDefinition()){var A=a.getDefinition(),[l,u]=n[0];A.render(e,l,u)}if(o.isUrlDefinition())for(var c=o.getDefinition(),h=1;h<i;h++){var[f,p]=n[h];c.render(e,f,p)}if(s.isUrlDefinition()){var v=s.getDefinition(),[m,g]=n[i];v.render(e,m,g)}}}static pathM(e){var t=e.getAsCurrentPoint();return e.start=e.current,{point:t}}pathM(e,t){var{pathParser:n}=this,{point:i}=ln.pathM(n),{x:a,y:o}=i;n.addMarker(i),t.addPoint(a,o),e&&e.moveTo(a,o)}static pathL(e){var{current:t}=e,n=e.getAsCurrentPoint();return{current:t,point:n}}pathL(e,t){var{pathParser:n}=this,{current:i,point:a}=ln.pathL(n),{x:o,y:s}=a;n.addMarker(a,i),t.addPoint(o,s),e&&e.lineTo(o,s)}static pathH(e){var{current:t,command:n}=e,i=new oi((n.relative?t.x:0)+n.x,t.y);return e.current=i,{current:t,point:i}}pathH(e,t){var{pathParser:n}=this,{current:i,point:a}=ln.pathH(n),{x:o,y:s}=a;n.addMarker(a,i),t.addPoint(o,s),e&&e.lineTo(o,s)}static pathV(e){var{current:t,command:n}=e,i=new oi(t.x,(n.relative?t.y:0)+n.y);return e.current=i,{current:t,point:i}}pathV(e,t){var{pathParser:n}=this,{current:i,point:a}=ln.pathV(n),{x:o,y:s}=a;n.addMarker(a,i),t.addPoint(o,s),e&&e.lineTo(o,s)}static pathC(e){var{current:t}=e,n=e.getPoint("x1","y1"),i=e.getAsControlPoint("x2","y2"),a=e.getAsCurrentPoint();return{current:t,point:n,controlPoint:i,currentPoint:a}}pathC(e,t){var{pathParser:n}=this,{current:i,point:a,controlPoint:o,currentPoint:s}=ln.pathC(n);n.addMarker(s,o,a),t.addBezierCurve(i.x,i.y,a.x,a.y,o.x,o.y,s.x,s.y),e&&e.bezierCurveTo(a.x,a.y,o.x,o.y,s.x,s.y)}static pathS(e){var{current:t}=e,n=e.getReflectedControlPoint(),i=e.getAsControlPoint("x2","y2"),a=e.getAsCurrentPoint();return{current:t,point:n,controlPoint:i,currentPoint:a}}pathS(e,t){var{pathParser:n}=this,{current:i,point:a,controlPoint:o,currentPoint:s}=ln.pathS(n);n.addMarker(s,o,a),t.addBezierCurve(i.x,i.y,a.x,a.y,o.x,o.y,s.x,s.y),e&&e.bezierCurveTo(a.x,a.y,o.x,o.y,s.x,s.y)}static pathQ(e){var{current:t}=e,n=e.getAsControlPoint("x1","y1"),i=e.getAsCurrentPoint();return{current:t,controlPoint:n,currentPoint:i}}pathQ(e,t){var{pathParser:n}=this,{current:i,controlPoint:a,currentPoint:o}=ln.pathQ(n);n.addMarker(o,a,a),t.addQuadraticCurve(i.x,i.y,a.x,a.y,o.x,o.y),e&&e.quadraticCurveTo(a.x,a.y,o.x,o.y)}static pathT(e){var{current:t}=e,n=e.getReflectedControlPoint();e.control=n;var i=e.getAsCurrentPoint();return{current:t,controlPoint:n,currentPoint:i}}pathT(e,t){var{pathParser:n}=this,{current:i,controlPoint:a,currentPoint:o}=ln.pathT(n);n.addMarker(o,a,a),t.addQuadraticCurve(i.x,i.y,a.x,a.y,o.x,o.y),e&&e.quadraticCurveTo(a.x,a.y,o.x,o.y)}static pathA(e){var{current:t,command:n}=e,{rX:i,rY:a,xRot:o,lArcFlag:s,sweepFlag:A}=n,l=o*(Math.PI/180),u=e.getAsCurrentPoint(),c=new oi(Math.cos(l)*(t.x-u.x)/2+Math.sin(l)*(t.y-u.y)/2,-Math.sin(l)*(t.x-u.x)/2+Math.cos(l)*(t.y-u.y)/2),h=Math.pow(c.x,2)/Math.pow(i,2)+Math.pow(c.y,2)/Math.pow(a,2);h>1&&(i*=Math.sqrt(h),a*=Math.sqrt(h));var f=(s===A?-1:1)*Math.sqrt((Math.pow(i,2)*Math.pow(a,2)-Math.pow(i,2)*Math.pow(c.y,2)-Math.pow(a,2)*Math.pow(c.x,2))/(Math.pow(i,2)*Math.pow(c.y,2)+Math.pow(a,2)*Math.pow(c.x,2)));isNaN(f)&&(f=0);var p=new oi(f*i*c.y/a,f*-a*c.x/i),v=new oi((t.x+u.x)/2+Math.cos(l)*p.x-Math.sin(l)*p.y,(t.y+u.y)/2+Math.sin(l)*p.x+Math.cos(l)*p.y),m=KI([1,0],[(c.x-p.x)/i,(c.y-p.y)/a]),g=[(c.x-p.x)/i,(c.y-p.y)/a],_=[(-c.x-p.x)/i,(-c.y-p.y)/a],w=KI(g,_);return zw(g,_)<=-1&&(w=Math.PI),zw(g,_)>=1&&(w=0),{currentPoint:u,rX:i,rY:a,sweepFlag:A,xAxisRotation:l,centp:v,a1:m,ad:w}}pathA(e,t){var{pathParser:n}=this,{currentPoint:i,rX:a,rY:o,sweepFlag:s,xAxisRotation:A,centp:l,a1:u,ad:c}=ln.pathA(n),h=1-s?1:-1,f=u+h*(c/2),p=new oi(l.x+a*Math.cos(f),l.y+o*Math.sin(f));if(n.addMarkerAngle(p,f-h*Math.PI/2),n.addMarkerAngle(i,f-h*Math.PI),t.addPoint(i.x,i.y),e&&!isNaN(u)&&!isNaN(c)){var v=a>o?a:o,m=a>o?1:a/o,g=a>o?o/a:1;e.translate(l.x,l.y),e.rotate(A),e.scale(m,g),e.arc(0,0,v,u,u+c,Boolean(1-s)),e.scale(1/m,1/g),e.rotate(-A),e.translate(-l.x,-l.y)}}static pathZ(e){e.current=e.start}pathZ(e,t){ln.pathZ(this.pathParser),e&&t.x1!==t.x2&&t.y1!==t.y2&&e.closePath()}}class uR extends ln{constructor(e,t,n){super(e,t,n),this.type="glyph",this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber(),this.unicode=this.getAttribute("unicode").getString(),this.arabicForm=this.getAttribute("arabic-form").getString()}}class fh extends hh{constructor(e,t,n){super(e,t,new.target===fh?!0:n),this.type="text",this.x=0,this.y=0,this.measureCache=-1}setContext(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;super.setContext(e,t);var n=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();n&&(e.textBaseline=n)}initializeCoordinates(e){this.x=this.getAttribute("x").getPixels("x"),this.y=this.getAttribute("y").getPixels("y");var t=this.getAttribute("dx"),n=this.getAttribute("dy");t.hasValue()&&(this.x+=t.getPixels("x")),n.hasValue()&&(this.y+=n.getPixels("y")),this.x+=this.getAnchorDelta(e,this,0)}getBoundingBox(e){if(this.type!=="text")return this.getTElementBoundingBox(e);this.initializeCoordinates(e);var t=null;return this.children.forEach((n,i)=>{var a=this.getChildBoundingBox(e,this,this,i);t?t.addBoundingBox(a):t=a}),t}getFontSize(){var{document:e,parent:t}=this,n=Va.parse(e.ctx.font).fontSize,i=t.getStyle("font-size").getNumber(n);return i}getTElementBoundingBox(e){var t=this.getFontSize();return new Hs(this.x,this.y-t,this.x+this.measureText(e),this.y)}getGlyph(e,t,n){var i=t[n],a=null;if(e.isArabic){var o=t.length,s=t[n-1],A=t[n+1],l="isolated";if((n===0||s===" ")&&n<o-2&&A!==" "&&(l="terminal"),n>0&&s!==" "&&n<o-2&&A!==" "&&(l="medial"),n>0&&s!==" "&&(n===o-1||A===" ")&&(l="initial"),typeof e.glyphs[i]<"u"){var u=e.glyphs[i];a=u instanceof uR?u:u[l]}}else a=e.glyphs[i];return a||(a=e.missingGlyph),a}getText(){return""}getTextFromNode(e){var t=e||this.node,n=Array.from(t.parentNode.childNodes),i=n.indexOf(t),a=n.length-1,o=fp(t.textContent||"");return i===0&&(o=z7(o)),i===a&&(o=X7(o)),o}renderChildren(e){if(this.type!=="text"){this.renderTElementChildren(e);return}this.initializeCoordinates(e),this.children.forEach((n,i)=>{this.renderChild(e,this,this,i)});var{mouse:t}=this.document.screen;t.isWorking()&&t.checkBoundingBox(this,this.getBoundingBox(e))}renderTElementChildren(e){var{document:t,parent:n}=this,i=this.getText(),a=n.getStyle("font-family").getDefinition();if(a){for(var{unitsPerEm:o}=a.fontFace,s=Va.parse(t.ctx.font),A=n.getStyle("font-size").getNumber(s.fontSize),l=n.getStyle("font-style").getString(s.fontStyle),u=A/o,c=a.isRTL?i.split("").reverse().join(""):i,h=Po(n.getAttribute("dx").getString()),f=c.length,p=0;p<f;p++){var v=this.getGlyph(a,c,p);e.translate(this.x,this.y),e.scale(u,-u);var m=e.lineWidth;e.lineWidth=e.lineWidth*o/A,l==="italic"&&e.transform(1,0,.4,1,0,0),v.render(e),l==="italic"&&e.transform(1,0,-.4,1,0,0),e.lineWidth=m,e.scale(1/u,-1/u),e.translate(-this.x,-this.y),this.x+=A*(v.horizAdvX||a.horizAdvX)/o,typeof h[p]<"u"&&!isNaN(h[p])&&(this.x+=h[p])}return}var{x:g,y:_}=this;e.fillStyle&&e.fillText(i,g,_),e.strokeStyle&&e.strokeText(i,g,_)}getAnchorDelta(e,t,n){var i=this.getStyle("text-anchor").getString("start");if(i!=="start"){for(var{children:a}=t,o=a.length,s=null,A=0,l=n;l<o&&(s=a[l],!(l>n&&s.getAttribute("x").hasValue()||s.getAttribute("text-anchor").hasValue()));l++)A+=s.measureTextRecursive(e);return-1*(i==="end"?A:A/2)}return 0}adjustChildCoordinates(e,t,n,i){var a=n.children[i];if(typeof a.measureText!="function")return a;e.save(),a.setContext(e,!0);var o=a.getAttribute("x"),s=a.getAttribute("y"),A=a.getAttribute("dx"),l=a.getAttribute("dy"),u=a.getAttribute("text-anchor").getString("start");if(i===0&&a.type!=="textNode"&&(o.hasValue()||o.setValue(t.getAttribute("x").getValue("0")),s.hasValue()||s.setValue(t.getAttribute("y").getValue("0")),A.hasValue()||A.setValue(t.getAttribute("dx").getValue("0")),l.hasValue()||l.setValue(t.getAttribute("dy").getValue("0"))),o.hasValue()){if(a.x=o.getPixels("x")+t.getAnchorDelta(e,n,i),u!=="start"){var c=a.measureTextRecursive(e);a.x+=-1*(u==="end"?c:c/2)}A.hasValue()&&(a.x+=A.getPixels("x"))}else{if(u!=="start"){var h=a.measureTextRecursive(e);t.x+=-1*(u==="end"?h:h/2)}A.hasValue()&&(t.x+=A.getPixels("x")),a.x=t.x}return t.x=a.x+a.measureText(e),s.hasValue()?(a.y=s.getPixels("y"),l.hasValue()&&(a.y+=l.getPixels("y"))):(l.hasValue()&&(t.y+=l.getPixels("y")),a.y=t.y),t.y=a.y,a.clearContext(e),e.restore(),a}getChildBoundingBox(e,t,n,i){var a=this.adjustChildCoordinates(e,t,n,i);if(typeof a.getBoundingBox!="function")return null;var o=a.getBoundingBox(e);return o?(a.children.forEach((s,A)=>{var l=t.getChildBoundingBox(e,t,a,A);o.addBoundingBox(l)}),o):null}renderChild(e,t,n,i){var a=this.adjustChildCoordinates(e,t,n,i);a.render(e),a.children.forEach((o,s)=>{t.renderChild(e,t,a,s)})}measureTextRecursive(e){var t=this.children.reduce((n,i)=>n+i.measureTextRecursive(e),this.measureText(e));return t}measureText(e){var{measureCache:t}=this;if(~t)return t;var n=this.getText(),i=this.measureTargetText(e,n);return this.measureCache=i,i}measureTargetText(e,t){if(!t.length)return 0;var{parent:n}=this,i=n.getStyle("font-family").getDefinition();if(i){for(var a=this.getFontSize(),o=i.isRTL?t.split("").reverse().join(""):t,s=Po(n.getAttribute("dx").getString()),A=o.length,l=0,u=0;u<A;u++){var c=this.getGlyph(i,o,u);l+=(c.horizAdvX||i.horizAdvX)*a/i.fontFace.unitsPerEm,typeof s[u]<"u"&&!isNaN(s[u])&&(l+=s[u])}return l}if(!e.measureText)return t.length*10;e.save(),this.setContext(e,!0);var{width:h}=e.measureText(t);return this.clearContext(e),e.restore(),h}}class A0 extends fh{constructor(e,t,n){super(e,t,new.target===A0?!0:n),this.type="tspan",this.text=this.children.length>0?"":this.getTextFromNode()}getText(){return this.text}}class NFt extends A0{constructor(){super(...arguments),this.type="textNode"}}let Kv=class extends hh{constructor(){super(...arguments),this.type="svg",this.root=!1}setContext(e){var t,{document:n}=this,{screen:i,window:a}=n,o=e.canvas;if(i.setDefaults(e),o.style&&typeof e.font<"u"&&a&&typeof a.getComputedStyle<"u"){e.font=a.getComputedStyle(o).getPropertyValue("font");var s=new Qe(n,"fontSize",Va.parse(e.font).fontSize);s.hasValue()&&(n.rootEmSize=s.getPixels("y"),n.emSize=n.rootEmSize)}this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0);var{width:A,height:l}=i.viewPort;this.getStyle("width").hasValue()||this.getStyle("width",!0).setValue("100%"),this.getStyle("height").hasValue()||this.getStyle("height",!0).setValue("100%"),this.getStyle("color").hasValue()||this.getStyle("color",!0).setValue("black");var u=this.getAttribute("refX"),c=this.getAttribute("refY"),h=this.getAttribute("viewBox"),f=h.hasValue()?Po(h.getString()):null,p=!this.root&&this.getStyle("overflow").getValue("hidden")!=="visible",v=0,m=0,g=0,_=0;f&&(v=f[0],m=f[1]),this.root||(A=this.getStyle("width").getPixels("x"),l=this.getStyle("height").getPixels("y"),this.type==="marker"&&(g=v,_=m,v=0,m=0)),i.viewPort.setCurrent(A,l),this.node&&(!this.parent||((t=this.node.parentNode)===null||t===void 0?void 0:t.nodeName)==="foreignObject")&&this.getStyle("transform",!1,!0).hasValue()&&!this.getStyle("transform-origin",!1,!0).hasValue()&&this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),super.setContext(e),e.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),f&&(A=f[2],l=f[3]),n.setViewBox({ctx:e,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:i.viewPort.width,desiredWidth:A,height:i.viewPort.height,desiredHeight:l,minX:v,minY:m,refX:u.getValue(),refY:c.getValue(),clip:p,clipX:g,clipY:_}),f&&(i.viewPort.removeCurrent(),i.viewPort.setCurrent(A,l))}clearContext(e){super.clearContext(e),this.document.screen.viewPort.removeCurrent()}resize(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=this.getAttribute("width",!0),a=this.getAttribute("height",!0),o=this.getAttribute("viewBox"),s=this.getAttribute("style"),A=i.getNumber(0),l=a.getNumber(0);if(n)if(typeof n=="string")this.getAttribute("preserveAspectRatio",!0).setValue(n);else{var u=this.getAttribute("preserveAspectRatio");u.hasValue()&&u.setValue(u.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}if(i.setValue(e),a.setValue(t),o.hasValue()||o.setValue("0 0 ".concat(A||e," ").concat(l||t)),s.hasValue()){var c=this.getStyle("width"),h=this.getStyle("height");c.hasValue()&&c.setValue("".concat(e,"px")),h.hasValue()&&h.setValue("".concat(t,"px"))}}};class cR extends ln{constructor(){super(...arguments),this.type="rect"}path(e){var t=this.getAttribute("x").getPixels("x"),n=this.getAttribute("y").getPixels("y"),i=this.getStyle("width",!1,!0).getPixels("x"),a=this.getStyle("height",!1,!0).getPixels("y"),o=this.getAttribute("rx"),s=this.getAttribute("ry"),A=o.getPixels("x"),l=s.getPixels("y");if(o.hasValue()&&!s.hasValue()&&(l=A),s.hasValue()&&!o.hasValue()&&(A=l),A=Math.min(A,i/2),l=Math.min(l,a/2),e){var u=4*((Math.sqrt(2)-1)/3);e.beginPath(),a>0&&i>0&&(e.moveTo(t+A,n),e.lineTo(t+i-A,n),e.bezierCurveTo(t+i-A+u*A,n,t+i,n+l-u*l,t+i,n+l),e.lineTo(t+i,n+a-l),e.bezierCurveTo(t+i,n+a-l+u*l,t+i-A+u*A,n+a,t+i-A,n+a),e.lineTo(t+A,n+a),e.bezierCurveTo(t+A-u*A,n+a,t,n+a-l+u*l,t,n+a-l),e.lineTo(t,n+l),e.bezierCurveTo(t,n+l-u*l,t+A-u*A,n,t+A,n),e.closePath())}return new Hs(t,n,t+i,n+a)}getMarkers(){return null}}class u$ extends ln{constructor(){super(...arguments),this.type="circle"}path(e){var t=this.getAttribute("cx").getPixels("x"),n=this.getAttribute("cy").getPixels("y"),i=this.getAttribute("r").getPixels();return e&&i>0&&(e.beginPath(),e.arc(t,n,i,0,Math.PI*2,!1),e.closePath()),new Hs(t-i,n-i,t+i,n+i)}getMarkers(){return null}}class c$ extends ln{constructor(){super(...arguments),this.type="ellipse"}path(e){var t=4*((Math.sqrt(2)-1)/3),n=this.getAttribute("rx").getPixels("x"),i=this.getAttribute("ry").getPixels("y"),a=this.getAttribute("cx").getPixels("x"),o=this.getAttribute("cy").getPixels("y");return e&&n>0&&i>0&&(e.beginPath(),e.moveTo(a+n,o),e.bezierCurveTo(a+n,o+t*i,a+t*n,o+i,a,o+i),e.bezierCurveTo(a-t*n,o+i,a-n,o+t*i,a-n,o),e.bezierCurveTo(a-n,o-t*i,a-t*n,o-i,a,o-i),e.bezierCurveTo(a+t*n,o-i,a+n,o-t*i,a+n,o),e.closePath()),new Hs(a-n,o-i,a+n,o+i)}getMarkers(){return null}}class h$ extends ln{constructor(){super(...arguments),this.type="line"}getPoints(){return[new oi(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new oi(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}path(e){var[{x:t,y:n},{x:i,y:a}]=this.getPoints();return e&&(e.beginPath(),e.moveTo(t,n),e.lineTo(i,a)),new Hs(t,n,i,a)}getMarkers(){var[e,t]=this.getPoints(),n=e.angleTo(t);return[[e,n],[t,n]]}}class hR extends ln{constructor(e,t,n){super(e,t,n),this.type="polyline",this.points=[],this.points=oi.parsePath(this.getAttribute("points").getString())}path(e){var{points:t}=this,[{x:n,y:i}]=t,a=new Hs(n,i);return e&&(e.beginPath(),e.moveTo(n,i)),t.forEach(o=>{var{x:s,y:A}=o;a.addPoint(s,A),e&&e.lineTo(s,A)}),a}getMarkers(){var{points:e}=this,t=e.length-1,n=[];return e.forEach((i,a)=>{a!==t&&n.push([i,i.angleTo(e[a+1])])}),n.length>0&&n.push([e[e.length-1],n[n.length-1][1]]),n}}class f$ extends hR{constructor(){super(...arguments),this.type="polygon"}path(e){var t=super.path(e),[{x:n,y:i}]=this.points;return e&&(e.lineTo(n,i),e.closePath()),t}}class p$ extends In{constructor(){super(...arguments),this.type="pattern"}createPattern(e,t,n){var i=this.getStyle("width").getPixels("x",!0),a=this.getStyle("height").getPixels("y",!0),o=new Kv(this.document,null);o.attributes.viewBox=new Qe(this.document,"viewBox",this.getAttribute("viewBox").getValue()),o.attributes.width=new Qe(this.document,"width","".concat(i,"px")),o.attributes.height=new Qe(this.document,"height","".concat(a,"px")),o.attributes.transform=new Qe(this.document,"transform",this.getAttribute("patternTransform").getValue()),o.children=this.children;var s=this.document.createCanvas(i,a),A=s.getContext("2d"),l=this.getAttribute("x"),u=this.getAttribute("y");l.hasValue()&&u.hasValue()&&A.translate(l.getPixels("x",!0),u.getPixels("y",!0)),n.hasValue()?this.styles["fill-opacity"]=n:Reflect.deleteProperty(this.styles,"fill-opacity");for(var c=-1;c<=1;c++)for(var h=-1;h<=1;h++)A.save(),o.attributes.x=new Qe(this.document,"x",c*s.width),o.attributes.y=new Qe(this.document,"y",h*s.height),o.render(A),A.restore();var f=e.createPattern(s,"repeat");return f}}class d$ extends In{constructor(){super(...arguments),this.type="marker"}render(e,t,n){if(t){var{x:i,y:a}=t,o=this.getAttribute("orient").getString("auto"),s=this.getAttribute("markerUnits").getString("strokeWidth");e.translate(i,a),o==="auto"&&e.rotate(n),s==="strokeWidth"&&e.scale(e.lineWidth,e.lineWidth),e.save();var A=new Kv(this.document,null);A.type=this.type,A.attributes.viewBox=new Qe(this.document,"viewBox",this.getAttribute("viewBox").getValue()),A.attributes.refX=new Qe(this.document,"refX",this.getAttribute("refX").getValue()),A.attributes.refY=new Qe(this.document,"refY",this.getAttribute("refY").getValue()),A.attributes.width=new Qe(this.document,"width",this.getAttribute("markerWidth").getValue()),A.attributes.height=new Qe(this.document,"height",this.getAttribute("markerHeight").getValue()),A.attributes.overflow=new Qe(this.document,"overflow",this.getAttribute("overflow").getValue()),A.attributes.fill=new Qe(this.document,"fill",this.getAttribute("fill").getColor("black")),A.attributes.stroke=new Qe(this.document,"stroke",this.getAttribute("stroke").getValue("none")),A.children=this.children,A.render(e),e.restore(),s==="strokeWidth"&&e.scale(1/e.lineWidth,1/e.lineWidth),o==="auto"&&e.rotate(-n),e.translate(-i,-a)}}}class v$ extends In{constructor(){super(...arguments),this.type="defs"}render(){}}class NC extends hh{constructor(){super(...arguments),this.type="g"}getBoundingBox(e){var t=new Hs;return this.children.forEach(n=>{t.addBoundingBox(n.getBoundingBox(e))}),t}}class fR extends In{constructor(e,t,n){super(e,t,n),this.attributesToInherit=["gradientUnits"],this.stops=[];var{stops:i,children:a}=this;a.forEach(o=>{o.type==="stop"&&i.push(o)})}getGradientUnits(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}createGradient(e,t,n){var i=this;this.getHrefAttribute().hasValue()&&(i=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(i));var{stops:a}=i,o=this.getGradient(e,t);if(!o)return this.addParentOpacity(n,a[a.length-1].color);if(a.forEach(m=>{o.addColorStop(m.offset,this.addParentOpacity(n,m.color))}),this.getAttribute("gradientTransform").hasValue()){var{document:s}=this,{MAX_VIRTUAL_PIXELS:A,viewPort:l}=s.screen,[u]=l.viewPorts,c=new cR(s,null);c.attributes.x=new Qe(s,"x",-A/3),c.attributes.y=new Qe(s,"y",-A/3),c.attributes.width=new Qe(s,"width",A),c.attributes.height=new Qe(s,"height",A);var h=new NC(s,null);h.attributes.transform=new Qe(s,"transform",this.getAttribute("gradientTransform").getValue()),h.children=[c];var f=new Kv(s,null);f.attributes.x=new Qe(s,"x",0),f.attributes.y=new Qe(s,"y",0),f.attributes.width=new Qe(s,"width",u.width),f.attributes.height=new Qe(s,"height",u.height),f.children=[h];var p=s.createCanvas(u.width,u.height),v=p.getContext("2d");return v.fillStyle=o,f.render(v),v.createPattern(p,"no-repeat")}return o}inheritStopContainer(e){this.attributesToInherit.forEach(t=>{!this.getAttribute(t).hasValue()&&e.getAttribute(t).hasValue()&&this.getAttribute(t,!0).setValue(e.getAttribute(t).getValue())})}addParentOpacity(e,t){if(e.hasValue()){var n=new Qe(this.document,"color",t);return n.addOpacity(e).getColor()}return t}}class g$ extends fR{constructor(e,t,n){super(e,t,n),this.type="linearGradient",this.attributesToInherit.push("x1","y1","x2","y2")}getGradient(e,t){var n=this.getGradientUnits()==="objectBoundingBox",i=n?t.getBoundingBox(e):null;if(n&&!i)return null;!this.getAttribute("x1").hasValue()&&!this.getAttribute("y1").hasValue()&&!this.getAttribute("x2").hasValue()&&!this.getAttribute("y2").hasValue()&&(this.getAttribute("x1",!0).setValue(0),this.getAttribute("y1",!0).setValue(0),this.getAttribute("x2",!0).setValue(1),this.getAttribute("y2",!0).setValue(0));var a=n?i.x+i.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),o=n?i.y+i.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),s=n?i.x+i.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),A=n?i.y+i.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return a===s&&o===A?null:e.createLinearGradient(a,o,s,A)}}class m$ extends fR{constructor(e,t,n){super(e,t,n),this.type="radialGradient",this.attributesToInherit.push("cx","cy","r","fx","fy","fr")}getGradient(e,t){var n=this.getGradientUnits()==="objectBoundingBox",i=t.getBoundingBox(e);if(n&&!i)return null;this.getAttribute("cx").hasValue()||this.getAttribute("cx",!0).setValue("50%"),this.getAttribute("cy").hasValue()||this.getAttribute("cy",!0).setValue("50%"),this.getAttribute("r").hasValue()||this.getAttribute("r",!0).setValue("50%");var a=n?i.x+i.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),o=n?i.y+i.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),s=a,A=o;this.getAttribute("fx").hasValue()&&(s=n?i.x+i.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(A=n?i.y+i.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var l=n?(i.width+i.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),u=this.getAttribute("fr").getPixels();return e.createRadialGradient(s,A,u,a,o,l)}}class y$ extends In{constructor(e,t,n){super(e,t,n),this.type="stop";var i=Math.max(0,Math.min(1,this.getAttribute("offset").getNumber())),a=this.getStyle("stop-opacity"),o=this.getStyle("stop-color",!0);o.getString()===""&&o.setValue("#000"),a.hasValue()&&(o=o.addOpacity(a)),this.offset=i,this.color=o.getColor()}}class PC extends In{constructor(e,t,n){super(e,t,n),this.type="animate",this.duration=0,this.initialValue=null,this.initialUnits="",this.removed=!1,this.frozen=!1,e.screen.animations.push(this),this.begin=this.getAttribute("begin").getMilliseconds(),this.maxDuration=this.begin+this.getAttribute("dur").getMilliseconds(),this.from=this.getAttribute("from"),this.to=this.getAttribute("to"),this.values=new Qe(e,"values",null);var i=this.getAttribute("values");i.hasValue()&&this.values.setValue(i.getString().split(";"))}getProperty(){var e=this.getAttribute("attributeType").getString(),t=this.getAttribute("attributeName").getString();return e==="CSS"?this.parent.getStyle(t,!0):this.parent.getAttribute(t,!0)}calcValue(){var{initialUnits:e}=this,{progress:t,from:n,to:i}=this.getProgress(),a=n.getNumber()+(i.getNumber()-n.getNumber())*t;return e==="%"&&(a*=100),"".concat(a).concat(e)}update(e){var{parent:t}=this,n=this.getProperty();if(this.initialValue||(this.initialValue=n.getString(),this.initialUnits=n.getUnits()),this.duration>this.maxDuration){var i=this.getAttribute("fill").getString("remove");if(this.getAttribute("repeatCount").getString()==="indefinite"||this.getAttribute("repeatDur").getString()==="indefinite")this.duration=0;else if(i==="freeze"&&!this.frozen)this.frozen=!0,t.animationFrozen=!0,t.animationFrozenValue=n.getString();else if(i==="remove"&&!this.removed)return this.removed=!0,n.setValue(t.animationFrozen?t.animationFrozenValue:this.initialValue),!0;return!1}this.duration+=e;var a=!1;if(this.begin<this.duration){var o=this.calcValue(),s=this.getAttribute("type");if(s.hasValue()){var A=s.getString();o="".concat(A,"(").concat(o,")")}n.setValue(o),a=!0}return a}getProgress(){var{document:e,values:t}=this,n={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};if(t.hasValue()){var i=n.progress*(t.getValue().length-1),a=Math.floor(i),o=Math.ceil(i);n.from=new Qe(e,"from",parseFloat(t.getValue()[a])),n.to=new Qe(e,"to",parseFloat(t.getValue()[o])),n.progress=(i-a)/(o-a)}else n.from=this.from,n.to=this.to;return n}}class _$ extends PC{constructor(){super(...arguments),this.type="animateColor"}calcValue(){var{progress:e,from:t,to:n}=this.getProgress(),i=new HI(t.getColor()),a=new HI(n.getColor());if(i.ok&&a.ok){var o=i.r+(a.r-i.r)*e,s=i.g+(a.g-i.g)*e,A=i.b+(a.b-i.b)*e;return"rgb(".concat(Math.floor(o),", ").concat(Math.floor(s),", ").concat(Math.floor(A),")")}return this.getAttribute("from").getColor()}}class w$ extends PC{constructor(){super(...arguments),this.type="animateTransform"}calcValue(){var{progress:e,from:t,to:n}=this.getProgress(),i=Po(t.getString()),a=Po(n.getString()),o=i.map((s,A)=>{var l=a[A];return s+(l-s)*e}).join(" ");return o}}class E$ extends In{constructor(e,t,n){super(e,t,n),this.type="font",this.glyphs={},this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber();var{definitions:i}=e,{children:a}=this;for(var o of a)switch(o.type){case"font-face":{this.fontFace=o;var s=o.getStyle("font-family");s.hasValue()&&(i[s.getString()]=this);break}case"missing-glyph":this.missingGlyph=o;break;case"glyph":{var A=o;A.arabicForm?(this.isRTL=!0,this.isArabic=!0,typeof this.glyphs[A.unicode]>"u"&&(this.glyphs[A.unicode]={}),this.glyphs[A.unicode][A.arabicForm]=A):this.glyphs[A.unicode]=A;break}}}render(){}}class C$ extends In{constructor(e,t,n){super(e,t,n),this.type="font-face",this.ascent=this.getAttribute("ascent").getNumber(),this.descent=this.getAttribute("descent").getNumber(),this.unitsPerEm=this.getAttribute("units-per-em").getNumber()}}class B$ extends ln{constructor(){super(...arguments),this.type="missing-glyph",this.horizAdvX=0}}class T$ extends fh{constructor(){super(...arguments),this.type="tref"}getText(){var e=this.getHrefAttribute().getDefinition();if(e){var t=e.children[0];if(t)return t.getText()}return""}}class b$ extends fh{constructor(e,t,n){super(e,t,n),this.type="a";var{childNodes:i}=t,a=i[0],o=i.length>0&&Array.from(i).every(s=>s.nodeType===3);this.hasText=o,this.text=o?this.getTextFromNode(a):""}getText(){return this.text}renderChildren(e){if(this.hasText){super.renderChildren(e);var{document:t,x:n,y:i}=this,{mouse:a}=t.screen,o=new Qe(t,"fontSize",Va.parse(t.ctx.font).fontSize);a.isWorking()&&a.checkBoundingBox(this,new Hs(n,i-o.getPixels("y"),n+this.measureText(e),i))}else if(this.children.length>0){var s=new NC(this.document,null);s.children=this.children,s.parent=this,s.render(e)}}onClick(){var{window:e}=this.document;e&&e.open(this.getHrefAttribute().getString())}onMouseMove(){var e=this.document.ctx;e.canvas.style.cursor="pointer"}}function hD(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,n)}return t}function J_(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?hD(Object(t),!0).forEach(function(n){iR(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):hD(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}class S$ extends fh{constructor(e,t,n){super(e,t,n),this.type="textPath",this.textWidth=0,this.textHeight=0,this.pathLength=-1,this.glyphInfo=null,this.letterSpacingCache=[],this.measuresCache=new Map([["",0]]);var i=this.getHrefAttribute().getDefinition();this.text=this.getTextFromNode(),this.dataArray=this.parsePathData(i)}getText(){return this.text}path(e){var{dataArray:t}=this;e&&e.beginPath(),t.forEach(n=>{var{type:i,points:a}=n;switch(i){case Ar.LINE_TO:e&&e.lineTo(a[0],a[1]);break;case Ar.MOVE_TO:e&&e.moveTo(a[0],a[1]);break;case Ar.CURVE_TO:e&&e.bezierCurveTo(a[0],a[1],a[2],a[3],a[4],a[5]);break;case Ar.QUAD_TO:e&&e.quadraticCurveTo(a[0],a[1],a[2],a[3]);break;case Ar.ARC:{var[o,s,A,l,u,c,h,f]=a,p=A>l?A:l,v=A>l?1:A/l,m=A>l?l/A:1;e&&(e.translate(o,s),e.rotate(h),e.scale(v,m),e.arc(0,0,p,u,u+c,Boolean(1-f)),e.scale(1/v,1/m),e.rotate(-h),e.translate(-o,-s));break}case Ar.CLOSE_PATH:e&&e.closePath();break}})}renderChildren(e){this.setTextData(e),e.save();var t=this.parent.getStyle("text-decoration").getString(),n=this.getFontSize(),{glyphInfo:i}=this,a=e.fillStyle;t==="underline"&&e.beginPath(),i.forEach((o,s)=>{var{p0:A,p1:l,rotation:u,text:c}=o;e.save(),e.translate(A.x,A.y),e.rotate(u),e.fillStyle&&e.fillText(c,0,0),e.strokeStyle&&e.strokeText(c,0,0),e.restore(),t==="underline"&&(s===0&&e.moveTo(A.x,A.y+n/8),e.lineTo(l.x,l.y+n/5))}),t==="underline"&&(e.lineWidth=n/20,e.strokeStyle=a,e.stroke(),e.closePath()),e.restore()}getLetterSpacingAt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return this.letterSpacingCache[e]||0}findSegmentToFitChar(e,t,n,i,a,o,s,A,l){var u=o,c=this.measureText(e,A);A===" "&&t==="justify"&&n<i&&(c+=(i-n)/a),l>-1&&(u+=this.getLetterSpacingAt(l));var h=this.textHeight/20,f=this.getEquidistantPointOnPath(u,h,0),p=this.getEquidistantPointOnPath(u+c,h,0),v={p0:f,p1:p},m=f&&p?Math.atan2(p.y-f.y,p.x-f.x):0;if(s){var g=Math.cos(Math.PI/2+m)*s,_=Math.cos(-m)*s;v.p0=J_(J_({},f),{},{x:f.x+g,y:f.y+_}),v.p1=J_(J_({},p),{},{x:p.x+g,y:p.y+_})}return u+=c,{offset:u,segment:v,rotation:m}}measureText(e,t){var{measuresCache:n}=this,i=t||this.getText();if(n.has(i))return n.get(i);var a=this.measureTargetText(e,i);return n.set(i,a),a}setTextData(e){if(!this.glyphInfo){var t=this.getText(),n=t.split(""),i=t.split(" ").length-1,a=this.parent.getAttribute("dx").split().map(C=>C.getPixels("x")),o=this.parent.getAttribute("dy").getPixels("y"),s=this.parent.getStyle("text-anchor").getString("start"),A=this.getStyle("letter-spacing"),l=this.parent.getStyle("letter-spacing"),u=0;!A.hasValue()||A.getValue()==="inherit"?u=l.getPixels():A.hasValue()&&A.getValue()!=="initial"&&A.getValue()!=="unset"&&(u=A.getPixels());var c=[],h=t.length;this.letterSpacingCache=c;for(var f=0;f<h;f++)c.push(typeof a[f]<"u"?a[f]:u);var p=c.reduce((C,F,O)=>O===0?0:C+F||0,0),v=this.measureText(e),m=Math.max(v+p,0);this.textWidth=v,this.textHeight=this.getFontSize(),this.glyphInfo=[];var g=this.getPathLength(),_=this.getStyle("startOffset").getNumber(0)*g,w=0;(s==="middle"||s==="center")&&(w=-m/2),(s==="end"||s==="right")&&(w=-m),w+=_,n.forEach((C,F)=>{var{offset:O,segment:I,rotation:b}=this.findSegmentToFitChar(e,s,m,g,i,w,o,C,F);w=O,!(!I.p0||!I.p1)&&this.glyphInfo.push({text:n[F],p0:I.p0,p1:I.p1,rotation:b})})}}parsePathData(e){if(this.pathLength=-1,!e)return[];var t=[],{pathParser:n}=e;for(n.reset();!n.isEnd();){var{current:i}=n,a=i?i.x:0,o=i?i.y:0,s=n.next(),A=s.type,l=[];switch(s.type){case Ar.MOVE_TO:this.pathM(n,l);break;case Ar.LINE_TO:A=this.pathL(n,l);break;case Ar.HORIZ_LINE_TO:A=this.pathH(n,l);break;case Ar.VERT_LINE_TO:A=this.pathV(n,l);break;case Ar.CURVE_TO:this.pathC(n,l);break;case Ar.SMOOTH_CURVE_TO:A=this.pathS(n,l);break;case Ar.QUAD_TO:this.pathQ(n,l);break;case Ar.SMOOTH_QUAD_TO:A=this.pathT(n,l);break;case Ar.ARC:l=this.pathA(n);break;case Ar.CLOSE_PATH:ln.pathZ(n);break}s.type!==Ar.CLOSE_PATH?t.push({type:A,points:l,start:{x:a,y:o},pathLength:this.calcLength(a,o,A,l)}):t.push({type:Ar.CLOSE_PATH,points:[],pathLength:0})}return t}pathM(e,t){var{x:n,y:i}=ln.pathM(e).point;t.push(n,i)}pathL(e,t){var{x:n,y:i}=ln.pathL(e).point;return t.push(n,i),Ar.LINE_TO}pathH(e,t){var{x:n,y:i}=ln.pathH(e).point;return t.push(n,i),Ar.LINE_TO}pathV(e,t){var{x:n,y:i}=ln.pathV(e).point;return t.push(n,i),Ar.LINE_TO}pathC(e,t){var{point:n,controlPoint:i,currentPoint:a}=ln.pathC(e);t.push(n.x,n.y,i.x,i.y,a.x,a.y)}pathS(e,t){var{point:n,controlPoint:i,currentPoint:a}=ln.pathS(e);return t.push(n.x,n.y,i.x,i.y,a.x,a.y),Ar.CURVE_TO}pathQ(e,t){var{controlPoint:n,currentPoint:i}=ln.pathQ(e);t.push(n.x,n.y,i.x,i.y)}pathT(e,t){var{controlPoint:n,currentPoint:i}=ln.pathT(e);return t.push(n.x,n.y,i.x,i.y),Ar.QUAD_TO}pathA(e){var{rX:t,rY:n,sweepFlag:i,xAxisRotation:a,centp:o,a1:s,ad:A}=ln.pathA(e);return i===0&&A>0&&(A-=2*Math.PI),i===1&&A<0&&(A+=2*Math.PI),[o.x,o.y,t,n,s,A,a,i]}calcLength(e,t,n,i){var a=0,o=null,s=null,A=0;switch(n){case Ar.LINE_TO:return this.getLineLength(e,t,i[0],i[1]);case Ar.CURVE_TO:for(a=0,o=this.getPointOnCubicBezier(0,e,t,i[0],i[1],i[2],i[3],i[4],i[5]),A=.01;A<=1;A+=.01)s=this.getPointOnCubicBezier(A,e,t,i[0],i[1],i[2],i[3],i[4],i[5]),a+=this.getLineLength(o.x,o.y,s.x,s.y),o=s;return a;case Ar.QUAD_TO:for(a=0,o=this.getPointOnQuadraticBezier(0,e,t,i[0],i[1],i[2],i[3]),A=.01;A<=1;A+=.01)s=this.getPointOnQuadraticBezier(A,e,t,i[0],i[1],i[2],i[3]),a+=this.getLineLength(o.x,o.y,s.x,s.y),o=s;return a;case Ar.ARC:{a=0;var l=i[4],u=i[5],c=i[4]+u,h=Math.PI/180;if(Math.abs(l-c)<h&&(h=Math.abs(l-c)),o=this.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],l,0),u<0)for(A=l-h;A>c;A-=h)s=this.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],A,0),a+=this.getLineLength(o.x,o.y,s.x,s.y),o=s;else for(A=l+h;A<c;A+=h)s=this.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],A,0),a+=this.getLineLength(o.x,o.y,s.x,s.y),o=s;return s=this.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],c,0),a+=this.getLineLength(o.x,o.y,s.x,s.y),a}}return 0}getPointOnLine(e,t,n,i,a){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:t,s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:n,A=(a-n)/(i-t+xf),l=Math.sqrt(e*e/(1+A*A));i<t&&(l*=-1);var u=A*l,c=null;if(i===t)c={x:o,y:s+u};else if((s-n)/(o-t+xf)===A)c={x:o+l,y:s+u};else{var h=0,f=0,p=this.getLineLength(t,n,i,a);if(p<xf)return null;var v=(o-t)*(i-t)+(s-n)*(a-n);v/=p*p,h=t+v*(i-t),f=n+v*(a-n);var m=this.getLineLength(o,s,h,f),g=Math.sqrt(e*e-m*m);l=Math.sqrt(g*g/(1+A*A)),i<t&&(l*=-1),u=A*l,c={x:h+l,y:f+u}}return c}getPointOnPath(e){var t=this.getPathLength(),n=0,i=null;if(e<-5e-5||e-5e-5>t)return null;var{dataArray:a}=this;for(var o of a){if(o&&(o.pathLength<5e-5||n+o.pathLength+5e-5<e)){n+=o.pathLength;continue}var s=e-n,A=0;switch(o.type){case Ar.LINE_TO:i=this.getPointOnLine(s,o.start.x,o.start.y,o.points[0],o.points[1],o.start.x,o.start.y);break;case Ar.ARC:{var l=o.points[4],u=o.points[5],c=o.points[4]+u;if(A=l+s/o.pathLength*u,u<0&&A<c||u>=0&&A>c)break;i=this.getPointOnEllipticalArc(o.points[0],o.points[1],o.points[2],o.points[3],A,o.points[6]);break}case Ar.CURVE_TO:A=s/o.pathLength,A>1&&(A=1),i=this.getPointOnCubicBezier(A,o.start.x,o.start.y,o.points[0],o.points[1],o.points[2],o.points[3],o.points[4],o.points[5]);break;case Ar.QUAD_TO:A=s/o.pathLength,A>1&&(A=1),i=this.getPointOnQuadraticBezier(A,o.start.x,o.start.y,o.points[0],o.points[1],o.points[2],o.points[3]);break}if(i)return i;break}return null}getLineLength(e,t,n,i){return Math.sqrt((n-e)*(n-e)+(i-t)*(i-t))}getPathLength(){return this.pathLength===-1&&(this.pathLength=this.dataArray.reduce((e,t)=>t.pathLength>0?e+t.pathLength:e,0)),this.pathLength}getPointOnCubicBezier(e,t,n,i,a,o,s,A,l){var u=A*YI(e)+o*WI(e)+i*zI(e)+t*XI(e),c=l*YI(e)+s*WI(e)+a*zI(e)+n*XI(e);return{x:u,y:c}}getPointOnQuadraticBezier(e,t,n,i,a,o,s){var A=o*qI(e)+i*ZI(e)+t*JI(e),l=s*qI(e)+a*ZI(e)+n*JI(e);return{x:A,y:l}}getPointOnEllipticalArc(e,t,n,i,a,o){var s=Math.cos(o),A=Math.sin(o),l={x:n*Math.cos(a),y:i*Math.sin(a)};return{x:e+(l.x*s-l.y*A),y:t+(l.x*A+l.y*s)}}buildEquidistantCache(e,t){var n=this.getPathLength(),i=t||.25,a=e||n/100;if(!this.equidistantCache||this.equidistantCache.step!==a||this.equidistantCache.precision!==i){this.equidistantCache={step:a,precision:i,points:[]};for(var o=0,s=0;s<=n;s+=i){var A=this.getPointOnPath(s),l=this.getPointOnPath(s+i);!A||!l||(o+=this.getLineLength(A.x,A.y,l.x,l.y),o>=a&&(this.equidistantCache.points.push({x:A.x,y:A.y,distance:s}),o-=a))}}}getEquidistantPointOnPath(e,t,n){if(this.buildEquidistantCache(t,n),e<0||e-this.getPathLength()>5e-5)return null;var i=Math.round(e/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[i]||null}}var PFt=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i;class x$ extends hh{constructor(e,t,n){super(e,t,n),this.type="image",this.loaded=!1;var i=this.getHrefAttribute().getString();if(i){var a=i.endsWith(".svg")||/^\s*data:image\/svg\+xml/i.test(i);e.images.push(this),a?this.loadSvg(i):this.loadImage(i),this.isSvg=a}}loadImage(e){var t=this;return _u(function*(){try{var n=yield t.document.createImage(e);t.image=n}catch(i){console.error('Error while loading image "'.concat(e,'":'),i)}t.loaded=!0})()}loadSvg(e){var t=this;return _u(function*(){var n=PFt.exec(e);if(n){var i=n[5];n[4]==="base64"?t.image=atob(i):t.image=decodeURIComponent(i)}else try{var a=yield t.document.fetch(e),o=yield a.text();t.image=o}catch(s){console.error('Error while loading image "'.concat(e,'":'),s)}t.loaded=!0})()}renderChildren(e){var{document:t,image:n,loaded:i}=this,a=this.getAttribute("x").getPixels("x"),o=this.getAttribute("y").getPixels("y"),s=this.getStyle("width").getPixels("x"),A=this.getStyle("height").getPixels("y");if(!(!i||!n||!s||!A)){if(e.save(),e.translate(a,o),this.isSvg){var l=t.canvg.forkString(e,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:s,scaleHeight:A});l.document.documentElement.parent=this,l.render()}else{var u=this.image;t.setViewBox({ctx:e,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:s,desiredWidth:u.width,height:A,desiredHeight:u.height}),this.loaded&&(typeof u.complete>"u"||u.complete)&&e.drawImage(u,0,0)}e.restore()}}getBoundingBox(){var e=this.getAttribute("x").getPixels("x"),t=this.getAttribute("y").getPixels("y"),n=this.getStyle("width").getPixels("x"),i=this.getStyle("height").getPixels("y");return new Hs(e,t,e+n,t+i)}}class I$ extends hh{constructor(){super(...arguments),this.type="symbol"}render(e){}}class L${constructor(e){this.document=e,this.loaded=!1,e.fonts.push(this)}load(e,t){var n=this;return _u(function*(){try{var{document:i}=n,a=yield i.canvg.parser.load(t),o=a.getElementsByTagName("font");Array.from(o).forEach(s=>{var A=i.createElement(s);i.definitions[e]=A})}catch(s){console.error('Error while loading font "'.concat(t,'":'),s)}n.loaded=!0})()}}class pR extends In{constructor(e,t,n){super(e,t,n),this.type="style";var i=fp(Array.from(t.childNodes).map(o=>o.textContent).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")),a=i.split("}");a.forEach(o=>{var s=o.trim();if(s){var A=s.split("{"),l=A[0].split(","),u=A[1].split(";");l.forEach(c=>{var h=c.trim();if(h){var f=e.styles[h]||{};if(u.forEach(m=>{var g=m.indexOf(":"),_=m.substr(0,g).trim(),w=m.substr(g+1,m.length-g).trim();_&&w&&(f[_]=new Qe(e,_,w))}),e.styles[h]=f,e.stylesSpecificity[h]=J7(h),h==="@font-face"){var p=f["font-family"].getString().replace(/"|'/g,""),v=f.src.getString().split(",");v.forEach(m=>{if(m.indexOf('format("svg")')>0){var g=sR(m);g&&new L$(e).load(p,g)}})}}})}})}}pR.parseExternalUrl=sR;class F$ extends hh{constructor(){super(...arguments),this.type="use"}setContext(e){super.setContext(e);var t=this.getAttribute("x"),n=this.getAttribute("y");t.hasValue()&&e.translate(t.getPixels("x"),0),n.hasValue()&&e.translate(0,n.getPixels("y"))}path(e){var{element:t}=this;t&&t.path(e)}renderChildren(e){var{document:t,element:n}=this;if(n){var i=n;if(n.type==="symbol"&&(i=new Kv(t,null),i.attributes.viewBox=new Qe(t,"viewBox",n.getAttribute("viewBox").getString()),i.attributes.preserveAspectRatio=new Qe(t,"preserveAspectRatio",n.getAttribute("preserveAspectRatio").getString()),i.attributes.overflow=new Qe(t,"overflow",n.getAttribute("overflow").getString()),i.children=n.children,n.styles.opacity=new Qe(t,"opacity",this.calculateOpacity())),i.type==="svg"){var a=this.getStyle("width",!1,!0),o=this.getStyle("height",!1,!0);a.hasValue()&&(i.attributes.width=new Qe(t,"width",a.getString())),o.hasValue()&&(i.attributes.height=new Qe(t,"height",o.getString()))}var s=i.parent;i.parent=this,i.render(e),i.parent=s}}getBoundingBox(e){var{element:t}=this;return t?t.getBoundingBox(e):null}elementTransform(){var{document:e,element:t}=this;return rh.fromElement(e,t)}get element(){return this.cachedElement||(this.cachedElement=this.getHrefAttribute().getDefinition()),this.cachedElement}}function t1(r,e,t,n,i,a){return r[t*n*4+e*4+a]}function e1(r,e,t,n,i,a,o){r[t*n*4+e*4+a]=o}function Fi(r,e,t){var n=r[e];return n*t}function Kl(r,e,t,n){return e+Math.cos(r)*t+Math.sin(r)*n}class dR extends In{constructor(e,t,n){super(e,t,n),this.type="feColorMatrix";var i=Po(this.getAttribute("values").getString());switch(this.getAttribute("type").getString("matrix")){case"saturate":{var a=i[0];i=[.213+.787*a,.715-.715*a,.072-.072*a,0,0,.213-.213*a,.715+.285*a,.072-.072*a,0,0,.213-.213*a,.715-.715*a,.072+.928*a,0,0,0,0,0,1,0,0,0,0,0,1];break}case"hueRotate":{var o=i[0]*Math.PI/180;i=[Kl(o,.213,.787,-.213),Kl(o,.715,-.715,-.715),Kl(o,.072,-.072,.928),0,0,Kl(o,.213,-.213,.143),Kl(o,.715,.285,.14),Kl(o,.072,-.072,-.283),0,0,Kl(o,.213,-.213,-.787),Kl(o,.715,-.715,.715),Kl(o,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break}case"luminanceToAlpha":i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1];break}this.matrix=i,this.includeOpacity=this.getAttribute("includeOpacity").hasValue()}apply(e,t,n,i,a){for(var{includeOpacity:o,matrix:s}=this,A=e.getImageData(0,0,i,a),l=0;l<a;l++)for(var u=0;u<i;u++){var c=t1(A.data,u,l,i,a,0),h=t1(A.data,u,l,i,a,1),f=t1(A.data,u,l,i,a,2),p=t1(A.data,u,l,i,a,3),v=Fi(s,0,c)+Fi(s,1,h)+Fi(s,2,f)+Fi(s,3,p)+Fi(s,4,1),m=Fi(s,5,c)+Fi(s,6,h)+Fi(s,7,f)+Fi(s,8,p)+Fi(s,9,1),g=Fi(s,10,c)+Fi(s,11,h)+Fi(s,12,f)+Fi(s,13,p)+Fi(s,14,1),_=Fi(s,15,c)+Fi(s,16,h)+Fi(s,17,f)+Fi(s,18,p)+Fi(s,19,1);o&&(v=0,m=0,g=0,_*=p/255),e1(A.data,u,l,i,a,0,v),e1(A.data,u,l,i,a,1,m),e1(A.data,u,l,i,a,2,g),e1(A.data,u,l,i,a,3,_)}e.clearRect(0,0,i,a),e.putImageData(A,0,0)}}class l0 extends In{constructor(){super(...arguments),this.type="mask"}apply(e,t){var{document:n}=this,i=this.getAttribute("x").getPixels("x"),a=this.getAttribute("y").getPixels("y"),o=this.getStyle("width").getPixels("x"),s=this.getStyle("height").getPixels("y");if(!o&&!s){var A=new Hs;this.children.forEach(p=>{A.addBoundingBox(p.getBoundingBox(e))}),i=Math.floor(A.x1),a=Math.floor(A.y1),o=Math.floor(A.width),s=Math.floor(A.height)}var l=this.removeStyles(t,l0.ignoreStyles),u=n.createCanvas(i+o,a+s),c=u.getContext("2d");n.screen.setDefaults(c),this.renderChildren(c),new dR(n,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(c,0,0,i+o,a+s);var h=n.createCanvas(i+o,a+s),f=h.getContext("2d");n.screen.setDefaults(f),t.render(f),f.globalCompositeOperation="destination-in",f.fillStyle=c.createPattern(u,"no-repeat"),f.fillRect(0,0,i+o,a+s),e.fillStyle=f.createPattern(h,"no-repeat"),e.fillRect(0,0,i+o,a+s),this.restoreStyles(t,l)}render(e){}}l0.ignoreStyles=["mask","transform","clip-path"];var fD=()=>{};class O$ extends In{constructor(){super(...arguments),this.type="clipPath"}apply(e){var{document:t}=this,n=Reflect.getPrototypeOf(e),{beginPath:i,closePath:a}=e;n&&(n.beginPath=fD,n.closePath=fD),Reflect.apply(i,e,[]),this.children.forEach(o=>{if(!(typeof o.path>"u")){var s=typeof o.elementTransform<"u"?o.elementTransform():null;s||(s=rh.fromElement(t,o)),s&&s.apply(e),o.path(e),n&&(n.closePath=a),s&&s.unapply(e)}}),Reflect.apply(a,e,[]),e.clip(),n&&(n.beginPath=i,n.closePath=a)}render(e){}}class u0 extends In{constructor(){super(...arguments),this.type="filter"}apply(e,t){var{document:n,children:i}=this,a=t.getBoundingBox(e);if(a){var o=0,s=0;i.forEach(g=>{var _=g.extraFilterDistance||0;o=Math.max(o,_),s=Math.max(s,_)});var A=Math.floor(a.width),l=Math.floor(a.height),u=A+2*o,c=l+2*s;if(!(u<1||c<1)){var h=Math.floor(a.x),f=Math.floor(a.y),p=this.removeStyles(t,u0.ignoreStyles),v=n.createCanvas(u,c),m=v.getContext("2d");n.screen.setDefaults(m),m.translate(-h+o,-f+s),t.render(m),i.forEach(g=>{typeof g.apply=="function"&&g.apply(m,0,0,u,c)}),e.drawImage(v,0,0,u,c,h-o,f-s,u,c),this.restoreStyles(t,p)}}}render(e){}}u0.ignoreStyles=["filter","transform","clip-path"];class R$ extends In{constructor(e,t,n){super(e,t,n),this.type="feDropShadow",this.addStylesFromStyleDefinition()}apply(e,t,n,i,a){}}class M$ extends In{constructor(){super(...arguments),this.type="feMorphology"}apply(e,t,n,i,a){}}class N$ extends In{constructor(){super(...arguments),this.type="feComposite"}apply(e,t,n,i,a){}}class P$ extends In{constructor(e,t,n){super(e,t,n),this.type="feGaussianBlur",this.blurRadius=Math.floor(this.getAttribute("stdDeviation").getNumber()),this.extraFilterDistance=this.blurRadius}apply(e,t,n,i,a){var{document:o,blurRadius:s}=this,A=o.window?o.window.document.body:null,l=e.canvas;l.id=o.getUniqueId(),A&&(l.style.display="none",A.appendChild(l)),pFt(l,t,n,i,a,s),A&&A.removeChild(l)}}class U$ extends In{constructor(){super(...arguments),this.type="title"}}class D$ extends In{constructor(){super(...arguments),this.type="desc"}}var UFt={svg:Kv,rect:cR,circle:u$,ellipse:c$,line:h$,polyline:hR,polygon:f$,path:ln,pattern:p$,marker:d$,defs:v$,linearGradient:g$,radialGradient:m$,stop:y$,animate:PC,animateColor:_$,animateTransform:w$,font:E$,"font-face":C$,"missing-glyph":B$,glyph:uR,text:fh,tspan:A0,tref:T$,a:b$,textPath:S$,image:x$,g:NC,symbol:I$,style:pR,use:F$,mask:l0,clipPath:O$,filter:u0,feDropShadow:R$,feMorphology:M$,feComposite:N$,feColorMatrix:dR,feGaussianBlur:P$,title:U$,desc:D$};function pD(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,n)}return t}function DFt(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?pD(Object(t),!0).forEach(function(n){iR(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):pD(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function QFt(r,e){var t=document.createElement("canvas");return t.width=r,t.height=e,t}function kFt(r){return tL.apply(this,arguments)}function tL(){return tL=_u(function*(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t=document.createElement("img");return e&&(t.crossOrigin="Anonymous"),new Promise((n,i)=>{t.onload=()=>{n(t)},t.onerror=(a,o,s,A,l)=>{i(l)},t.src=r})}),tL.apply(this,arguments)}class cu{constructor(e){var{rootEmSize:t=12,emSize:n=12,createCanvas:i=cu.createCanvas,createImage:a=cu.createImage,anonymousCrossOrigin:o}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.canvg=e,this.definitions={},this.styles={},this.stylesSpecificity={},this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=e.screen,this.rootEmSize=t,this.emSize=n,this.createCanvas=i,this.createImage=this.bindCreateImage(a,o),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}bindCreateImage(e,t){return typeof t=="boolean"?(n,i)=>e(n,typeof i=="boolean"?i:t):e}get window(){return this.screen.window}get fetch(){return this.screen.fetch}get ctx(){return this.screen.ctx}get emSize(){var{emSizeStack:e}=this;return e[e.length-1]}set emSize(e){var{emSizeStack:t}=this;t.push(e)}popEmSize(){var{emSizeStack:e}=this;e.pop()}getUniqueId(){return"canvg".concat(++this.uniqueId)}isImagesLoaded(){return this.images.every(e=>e.loaded)}isFontsLoaded(){return this.fonts.every(e=>e.loaded)}createDocumentElement(e){var t=this.createElement(e.documentElement);return t.root=!0,t.addStylesFromStyleDefinition(),this.documentElement=t,t}createElement(e){var t=e.nodeName.replace(/^[^:]+:/,""),n=cu.elementTypes[t];return typeof n<"u"?new n(this,e):new l$(this,e)}createTextNode(e){return new NFt(this,e)}setViewBox(e){this.screen.setViewBox(DFt({document:this},e))}}cu.createCanvas=QFt;cu.createImage=kFt;cu.elementTypes=UFt;function dD(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,n)}return t}function zh(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?dD(Object(t),!0).forEach(function(n){iR(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):dD(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}class hf{constructor(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.parser=new O1(n),this.screen=new s0(e,n),this.options=n;var i=new cu(this,n),a=i.createDocumentElement(t);this.document=i,this.documentElement=a}static from(e,t){var n=arguments;return _u(function*(){var i=n.length>2&&n[2]!==void 0?n[2]:{},a=new O1(i),o=yield a.parse(t);return new hf(e,o,i)})()}static fromString(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=new O1(n),a=i.parseFromString(t);return new hf(e,a,n)}fork(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return hf.from(e,t,zh(zh({},this.options),n))}forkString(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return hf.fromString(e,t,zh(zh({},this.options),n))}ready(){return this.screen.ready()}isReady(){return this.screen.isReady()}render(){var e=arguments,t=this;return _u(function*(){var n=e.length>0&&e[0]!==void 0?e[0]:{};t.start(zh({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},n)),yield t.ready(),t.stop()})()}start(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{documentElement:t,screen:n,options:i}=this;n.start(t,zh(zh({enableRedraw:!0},i),e))}stop(){this.screen.stop()}resize(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this.documentElement.resize(e,t,n)}}var HFt=Object.freeze(Object.defineProperty({__proto__:null,default:hf,AElement:b$,AnimateColorElement:_$,AnimateElement:PC,AnimateTransformElement:w$,BoundingBox:Hs,CB1:YI,CB2:WI,CB3:zI,CB4:XI,Canvg:hf,CircleElement:u$,ClipPathElement:O$,DefsElement:v$,DescElement:D$,Document:cu,Element:In,EllipseElement:c$,FeColorMatrixElement:dR,FeCompositeElement:N$,FeDropShadowElement:R$,FeGaussianBlurElement:P$,FeMorphologyElement:M$,FilterElement:u0,Font:Va,FontElement:E$,FontFaceElement:C$,GElement:NC,GlyphElement:uR,GradientElement:fR,ImageElement:x$,LineElement:h$,LinearGradientElement:g$,MarkerElement:d$,MaskElement:l0,Matrix:AR,MissingGlyphElement:B$,Mouse:e$,PSEUDO_ZERO:xf,Parser:O1,PathElement:ln,PathParser:Ar,PatternElement:p$,Point:oi,PolygonElement:f$,PolylineElement:hR,Property:Qe,QB1:qI,QB2:ZI,QB3:JI,RadialGradientElement:m$,RectElement:cR,RenderedElement:hh,Rotate:a$,SVGElement:Kv,SVGFontLoader:L$,Scale:o$,Screen:s0,Skew:lR,SkewX:s$,SkewY:A$,StopElement:y$,StyleElement:pR,SymbolElement:I$,TRefElement:T$,TSpanElement:A0,TextElement:fh,TextPathElement:S$,TitleElement:U$,Transform:rh,Translate:i$,UnknownElement:l$,UseElement:F$,ViewPort:t$,compressSpaces:fp,getSelectorSpecificity:J7,normalizeAttributeName:q7,normalizeColor:Z7,parseExternalUrl:sR,presets:mFt,toNumbers:Po,trimLeft:z7,trimRight:X7,vectorMagnitude:jI,vectorsAngle:KI,vectorsRatio:zw},Symbol.toStringTag,{value:"Module"}));var Q$=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function k$(r){if(r.__esModule)return r;var e=r.default;if(typeof e=="function"){var t=function n(){if(this instanceof n){var i=[null];i.push.apply(i,arguments);var a=Function.bind.apply(e,i);return new a}return e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(r).forEach(function(n){var i=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:function(){return r[n]}})}),t}var eL={},GFt={get exports(){return eL},set exports(r){eL=r}};const $Ft=k$(KK);(function(r,e){(function(n,i){r.exports=i($Ft)})(Q$,t=>(()=>{var n={657:(s,A)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.default=(l,u)=>{const c=l.__vccOpts||l;for(const[h,f]of u)c[h]=f;return c}},976:s=>{s.exports=t}},i={};function a(s){var A=i[s];if(A!==void 0)return A.exports;var l=i[s]={exports:{}};return n[s](l,l.exports,a),l.exports}a.d=(s,A)=>{for(var l in A)a.o(A,l)&&!a.o(s,l)&&Object.defineProperty(s,l,{enumerable:!0,get:A[l]})},a.o=(s,A)=>Object.prototype.hasOwnProperty.call(s,A),a.r=s=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})};var o={};return(()=>{a.r(o),a.d(o,{Component:()=>H,LoadingPlugin:()=>ot,default:()=>ut,useLoading:()=>J});var s=a(976);function A(X){var It;typeof X.remove<"u"?X.remove():(It=X.parentNode)==null||It.removeChild(X)}function l(X,It,at){let j=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const Z=(0,s.h)(X,It,j),ft=document.createElement("div");return ft.classList.add("vld-container"),at.appendChild(ft),(0,s.render)(Z,ft),Z.component}function u(){return typeof window<"u"}const c=u()?window.HTMLElement:Object,h=["aria-busy"],f={class:"vl-icon"};function p(X,It,at,j,Z,ft){return(0,s.openBlock)(),(0,s.createBlock)(s.Transition,{name:X.transition},{default:(0,s.withCtx)(()=>[(0,s.withDirectives)((0,s.createElementVNode)("div",{tabindex:"0",class:(0,s.normalizeClass)(["vl-overlay vl-active",{"vl-full-page":X.isFullPage}]),"aria-busy":X.isActive,"aria-label":"Loading",style:(0,s.normalizeStyle)({zIndex:X.zIndex})},[(0,s.createElementVNode)("div",{class:"vl-background",onClick:It[0]||(It[0]=(0,s.withModifiers)(function(){return X.cancel&&X.cancel(...arguments)},["prevent"])),style:(0,s.normalizeStyle)(X.bgStyle)},null,4),(0,s.createElementVNode)("div",f,[(0,s.renderSlot)(X.$slots,"before"),(0,s.renderSlot)(X.$slots,"default",{},()=>[((0,s.openBlock)(),(0,s.createBlock)((0,s.resolveDynamicComponent)(X.loader),{color:X.color,width:X.width,height:X.height},null,8,["color","width","height"]))]),(0,s.renderSlot)(X.$slots,"after")])],14,h),[[s.vShow,X.isActive]])]),_:3},8,["name"])}const v={mounted(){this.enforceFocus&&document.addEventListener("focusin",this.focusIn)},methods:{focusIn(X){if(!this.isActive||X.target===this.$el||this.$el.contains(X.target))return;let It=this.container?this.container:this.isFullPage?null:this.$el.parentElement;(this.isFullPage||It&&It.contains(X.target))&&(X.preventDefault(),this.$el.focus())}},beforeUnmount(){document.removeEventListener("focusin",this.focusIn)}},m=["width","height","stroke"],_=[(0,s.createStaticVNode)('<g fill="none" fill-rule="evenodd"><g transform="translate(1 1)" stroke-width="2"><circle stroke-opacity=".25" cx="18" cy="18" r="18"></circle><path d="M36 18c0-9.94-8.06-18-18-18"><animateTransform attributeName="transform" type="rotate" from="0 18 18" to="360 18 18" dur="0.8s" repeatCount="indefinite"></animateTransform></path></g></g>',1)];function w(X,It,at,j,Z,ft){return(0,s.openBlock)(),(0,s.createElementBlock)("svg",{viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg",width:X.width,height:X.height,stroke:X.color},_,8,m)}const C=(0,s.defineComponent)({name:"spinner",props:{color:{type:String,default:"#000"},height:{type:Number,default:64},width:{type:Number,default:64}}});var F=a(657);const I=(0,F.default)(C,[["render",w]]),b=["fill","width","height"],N=[(0,s.createStaticVNode)('<circle cx="15" cy="15" r="15"><animate attributeName="r" from="15" to="15" begin="0s" dur="0.8s" values="15;9;15" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="fill-opacity" from="1" to="1" begin="0s" dur="0.8s" values="1;.5;1" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="60" cy="15" r="9" fill-opacity="0.3"><animate attributeName="r" from="9" to="9" begin="0s" dur="0.8s" values="9;15;9" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="fill-opacity" from="0.5" to="0.5" begin="0s" dur="0.8s" values=".5;1;.5" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="105" cy="15" r="15"><animate attributeName="r" from="15" to="15" begin="0s" dur="0.8s" values="15;9;15" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="fill-opacity" from="1" to="1" begin="0s" dur="0.8s" values="1;.5;1" calcMode="linear" repeatCount="indefinite"></animate></circle>',3)];function x(X,It,at,j,Z,ft){return(0,s.openBlock)(),(0,s.createElementBlock)("svg",{viewBox:"0 0 120 30",xmlns:"http://www.w3.org/2000/svg",fill:X.color,width:X.width,height:X.height},N,8,b)}const S=(0,s.defineComponent)({name:"dots",props:{color:{type:String,default:"#000"},height:{type:Number,default:240},width:{type:Number,default:60}}}),U=(0,F.default)(S,[["render",x]]),tt=["height","width","fill"],rt=[(0,s.createStaticVNode)('<rect x="0" y="13" width="4" height="5"><animate attributeName="height" attributeType="XML" values="5;21;5" begin="0s" dur="0.6s" repeatCount="indefinite"></animate><animate attributeName="y" attributeType="XML" values="13; 5; 13" begin="0s" dur="0.6s" repeatCount="indefinite"></animate></rect><rect x="10" y="13" width="4" height="5"><animate attributeName="height" attributeType="XML" values="5;21;5" begin="0.15s" dur="0.6s" repeatCount="indefinite"></animate><animate attributeName="y" attributeType="XML" values="13; 5; 13" begin="0.15s" dur="0.6s" repeatCount="indefinite"></animate></rect><rect x="20" y="13" width="4" height="5"><animate attributeName="height" attributeType="XML" values="5;21;5" begin="0.3s" dur="0.6s" repeatCount="indefinite"></animate><animate attributeName="y" attributeType="XML" values="13; 5; 13" begin="0.3s" dur="0.6s" repeatCount="indefinite"></animate></rect>',3)];function nt(X,It,at,j,Z,ft){return(0,s.openBlock)(),(0,s.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 30 30",height:X.height,width:X.width,fill:X.color},rt,8,tt)}const At=(0,s.defineComponent)({name:"bars",props:{color:{type:String,default:"#000"},height:{type:Number,default:40},width:{type:Number,default:40}}}),M={Spinner:I,Dots:U,Bars:(0,F.default)(At,[["render",nt]])},Y=(0,s.defineComponent)({name:"VueLoading",mixins:[v],props:{active:Boolean,programmatic:Boolean,container:[Object,Function,c],isFullPage:{type:Boolean,default:!0},enforceFocus:{type:Boolean,default:!0},lockScroll:Boolean,transition:{type:String,default:"fade"},canCancel:Boolean,onCancel:{type:Function,default:()=>{}},color:String,backgroundColor:String,opacity:Number,width:Number,height:Number,zIndex:Number,loader:{type:String,default:"spinner"}},components:M,emits:["hide","update:active"],data(){return{isActive:this.active}},mounted(){document.addEventListener("keyup",this.keyPress)},methods:{cancel(){!this.canCancel||!this.isActive||(this.hide(),this.onCancel.apply(null,arguments))},hide(){this.$emit("hide"),this.$emit("update:active",!1),this.programmatic&&(this.isActive=!1,setTimeout(()=>{const X=this.$el.parentElement;(0,s.render)(null,X),A(X)},150))},disableScroll(){this.isFullPage&&this.lockScroll&&document.body.classList.add("vl-shown")},enableScroll(){this.isFullPage&&this.lockScroll&&document.body.classList.remove("vl-shown")},keyPress(X){X.keyCode===27&&this.cancel()}},watch:{active(X){this.isActive=X},isActive(X){X?this.disableScroll():this.enableScroll()}},computed:{bgStyle(){return{background:this.backgroundColor,opacity:this.opacity}}},beforeUnmount(){document.removeEventListener("keyup",this.keyPress)}}),H=(0,F.default)(Y,[["render",p]]);function J(){let X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},It=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return{show(){let at=arguments.length>0&&arguments[0]!==void 0?arguments[0]:X,j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:It;const ft={...X,...at,...{programmatic:!0,lockScroll:!0,isFullPage:!1,active:!0}};let it=ft.container;ft.container||(it=document.body,ft.isFullPage=!0);const V={...It,...j};return{hide:l(H,ft,it,V).ctx.hide}}}}const ot=function(X){let It=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},at=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const j=J(It,at);X.config.globalProperties.$loading=j,X.provide("$loading",j)},ut=H})(),o})())})(GFt);/*!
|
||
* vue-router v4.1.6
|
||
* (c) 2022 Eduardo San Martin Morote
|
||
* @license MIT
|
||
*/const Ed=typeof window<"u";function VFt(r){return r.__esModule||r[Symbol.toStringTag]==="Module"}const vn=Object.assign;function Sb(r,e){const t={};for(const n in e){const i=e[n];t[n]=mA(i)?i.map(r):r(i)}return t}const km=()=>{},mA=Array.isArray,jFt=/\/$/,KFt=r=>r.replace(jFt,"");function xb(r,e,t="/"){let n,i={},a="",o="";const s=e.indexOf("#");let A=e.indexOf("?");return s<A&&s>=0&&(A=-1),A>-1&&(n=e.slice(0,A),a=e.slice(A+1,s>-1?s:e.length),i=r(a)),s>-1&&(n=n||e.slice(0,s),o=e.slice(s,e.length)),n=XFt(n??e,t),{fullPath:n+(a&&"?")+a+o,path:n,query:i,hash:o}}function YFt(r,e){const t=e.query?r(e.query):"";return e.path+(t&&"?")+t+(e.hash||"")}function vD(r,e){return!e||!r.toLowerCase().startsWith(e.toLowerCase())?r:r.slice(e.length)||"/"}function WFt(r,e,t){const n=e.matched.length-1,i=t.matched.length-1;return n>-1&&n===i&&gv(e.matched[n],t.matched[i])&&H$(e.params,t.params)&&r(e.query)===r(t.query)&&e.hash===t.hash}function gv(r,e){return(r.aliasOf||r)===(e.aliasOf||e)}function H$(r,e){if(Object.keys(r).length!==Object.keys(e).length)return!1;for(const t in r)if(!zFt(r[t],e[t]))return!1;return!0}function zFt(r,e){return mA(r)?gD(r,e):mA(e)?gD(e,r):r===e}function gD(r,e){return mA(e)?r.length===e.length&&r.every((t,n)=>t===e[n]):r.length===1&&r[0]===e}function XFt(r,e){if(r.startsWith("/"))return r;if(!r)return e;const t=e.split("/"),n=r.split("/");let i=t.length-1,a,o;for(a=0;a<n.length;a++)if(o=n[a],o!==".")if(o==="..")i>1&&i--;else break;return t.slice(0,i).join("/")+"/"+n.slice(a-(a===n.length?1:0)).join("/")}var Cy;(function(r){r.pop="pop",r.push="push"})(Cy||(Cy={}));var Hm;(function(r){r.back="back",r.forward="forward",r.unknown=""})(Hm||(Hm={}));function qFt(r){if(!r)if(Ed){const e=document.querySelector("base");r=e&&e.getAttribute("href")||"/",r=r.replace(/^\w+:\/\/[^\/]+/,"")}else r="/";return r[0]!=="/"&&r[0]!=="#"&&(r="/"+r),KFt(r)}const ZFt=/^[^#]+#/;function JFt(r,e){return r.replace(ZFt,"#")+e}function tOt(r,e){const t=document.documentElement.getBoundingClientRect(),n=r.getBoundingClientRect();return{behavior:e.behavior,left:n.left-t.left-(e.left||0),top:n.top-t.top-(e.top||0)}}const UC=()=>({left:window.pageXOffset,top:window.pageYOffset});function eOt(r){let e;if("el"in r){const t=r.el,n=typeof t=="string"&&t.startsWith("#"),i=typeof t=="string"?n?document.getElementById(t.slice(1)):document.querySelector(t):t;if(!i)return;e=tOt(i,r)}else e=r;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.pageXOffset,e.top!=null?e.top:window.pageYOffset)}function mD(r,e){return(history.state?history.state.position-e:-1)+r}const rL=new Map;function rOt(r,e){rL.set(r,e)}function nOt(r){const e=rL.get(r);return rL.delete(r),e}let iOt=()=>location.protocol+"//"+location.host;function G$(r,e){const{pathname:t,search:n,hash:i}=e,a=r.indexOf("#");if(a>-1){let s=i.includes(r.slice(a))?r.slice(a).length:1,A=i.slice(s);return A[0]!=="/"&&(A="/"+A),vD(A,"")}return vD(t,r)+n+i}function aOt(r,e,t,n){let i=[],a=[],o=null;const s=({state:h})=>{const f=G$(r,location),p=t.value,v=e.value;let m=0;if(h){if(t.value=f,e.value=h,o&&o===p){o=null;return}m=v?h.position-v.position:0}else n(f);i.forEach(g=>{g(t.value,p,{delta:m,type:Cy.pop,direction:m?m>0?Hm.forward:Hm.back:Hm.unknown})})};function A(){o=t.value}function l(h){i.push(h);const f=()=>{const p=i.indexOf(h);p>-1&&i.splice(p,1)};return a.push(f),f}function u(){const{history:h}=window;h.state&&h.replaceState(vn({},h.state,{scroll:UC()}),"")}function c(){for(const h of a)h();a=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",u),{pauseListeners:A,listen:l,destroy:c}}function yD(r,e,t,n=!1,i=!1){return{back:r,current:e,forward:t,replaced:n,position:window.history.length,scroll:i?UC():null}}function oOt(r){const{history:e,location:t}=window,n={value:G$(r,t)},i={value:e.state};i.value||a(n.value,{back:null,current:n.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function a(A,l,u){const c=r.indexOf("#"),h=c>-1?(t.host&&document.querySelector("base")?r:r.slice(c))+A:iOt()+r+A;try{e[u?"replaceState":"pushState"](l,"",h),i.value=l}catch(f){console.error(f),t[u?"replace":"assign"](h)}}function o(A,l){const u=vn({},e.state,yD(i.value.back,A,i.value.forward,!0),l,{position:i.value.position});a(A,u,!0),n.value=A}function s(A,l){const u=vn({},i.value,e.state,{forward:A,scroll:UC()});a(u.current,u,!0);const c=vn({},yD(n.value,A,null),{position:u.position+1},l);a(A,c,!1),n.value=A}return{location:n,state:i,push:s,replace:o}}function sOt(r){r=qFt(r);const e=oOt(r),t=aOt(r,e.state,e.location,e.replace);function n(a,o=!0){o||t.pauseListeners(),history.go(a)}const i=vn({location:"",base:r,go:n,createHref:JFt.bind(null,r)},e,t);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>e.state.value}),i}function AOt(r){return typeof r=="string"||r&&typeof r=="object"}function $$(r){return typeof r=="string"||typeof r=="symbol"}const uc={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},V$=Symbol("");var _D;(function(r){r[r.aborted=4]="aborted",r[r.cancelled=8]="cancelled",r[r.duplicated=16]="duplicated"})(_D||(_D={}));function mv(r,e){return vn(new Error,{type:r,[V$]:!0},e)}function Yl(r,e){return r instanceof Error&&V$ in r&&(e==null||!!(r.type&e))}const wD="[^/]+?",lOt={sensitive:!1,strict:!1,start:!0,end:!0},uOt=/[.+*?^${}()[\]/\\]/g;function cOt(r,e){const t=vn({},lOt,e),n=[];let i=t.start?"^":"";const a=[];for(const l of r){const u=l.length?[]:[90];t.strict&&!l.length&&(i+="/");for(let c=0;c<l.length;c++){const h=l[c];let f=40+(t.sensitive?.25:0);if(h.type===0)c||(i+="/"),i+=h.value.replace(uOt,"\\$&"),f+=40;else if(h.type===1){const{value:p,repeatable:v,optional:m,regexp:g}=h;a.push({name:p,repeatable:v,optional:m});const _=g||wD;if(_!==wD){f+=10;try{new RegExp(`(${_})`)}catch(C){throw new Error(`Invalid custom RegExp for param "${p}" (${_}): `+C.message)}}let w=v?`((?:${_})(?:/(?:${_}))*)`:`(${_})`;c||(w=m&&l.length<2?`(?:/${w})`:"/"+w),m&&(w+="?"),i+=w,f+=20,m&&(f+=-8),v&&(f+=-20),_===".*"&&(f+=-50)}u.push(f)}n.push(u)}if(t.strict&&t.end){const l=n.length-1;n[l][n[l].length-1]+=.7000000000000001}t.strict||(i+="/?"),t.end?i+="$":t.strict&&(i+="(?:/|$)");const o=new RegExp(i,t.sensitive?"":"i");function s(l){const u=l.match(o),c={};if(!u)return null;for(let h=1;h<u.length;h++){const f=u[h]||"",p=a[h-1];c[p.name]=f&&p.repeatable?f.split("/"):f}return c}function A(l){let u="",c=!1;for(const h of r){(!c||!u.endsWith("/"))&&(u+="/"),c=!1;for(const f of h)if(f.type===0)u+=f.value;else if(f.type===1){const{value:p,repeatable:v,optional:m}=f,g=p in l?l[p]:"";if(mA(g)&&!v)throw new Error(`Provided param "${p}" is an array but it is not repeatable (* or + modifiers)`);const _=mA(g)?g.join("/"):g;if(!_)if(m)h.length<2&&(u.endsWith("/")?u=u.slice(0,-1):c=!0);else throw new Error(`Missing required param "${p}"`);u+=_}}return u||"/"}return{re:o,score:n,keys:a,parse:s,stringify:A}}function hOt(r,e){let t=0;for(;t<r.length&&t<e.length;){const n=e[t]-r[t];if(n)return n;t++}return r.length<e.length?r.length===1&&r[0]===40+40?-1:1:r.length>e.length?e.length===1&&e[0]===40+40?1:-1:0}function fOt(r,e){let t=0;const n=r.score,i=e.score;for(;t<n.length&&t<i.length;){const a=hOt(n[t],i[t]);if(a)return a;t++}if(Math.abs(i.length-n.length)===1){if(ED(n))return 1;if(ED(i))return-1}return i.length-n.length}function ED(r){const e=r[r.length-1];return r.length>0&&e[e.length-1]<0}const pOt={type:0,value:""},dOt=/[a-zA-Z0-9_]/;function vOt(r){if(!r)return[[]];if(r==="/")return[[pOt]];if(!r.startsWith("/"))throw new Error(`Invalid path "${r}"`);function e(f){throw new Error(`ERR (${t})/"${l}": ${f}`)}let t=0,n=t;const i=[];let a;function o(){a&&i.push(a),a=[]}let s=0,A,l="",u="";function c(){l&&(t===0?a.push({type:0,value:l}):t===1||t===2||t===3?(a.length>1&&(A==="*"||A==="+")&&e(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:l,regexp:u,repeatable:A==="*"||A==="+",optional:A==="*"||A==="?"})):e("Invalid state to consume buffer"),l="")}function h(){l+=A}for(;s<r.length;){if(A=r[s++],A==="\\"&&t!==2){n=t,t=4;continue}switch(t){case 0:A==="/"?(l&&c(),o()):A===":"?(c(),t=1):h();break;case 4:h(),t=n;break;case 1:A==="("?t=2:dOt.test(A)?h():(c(),t=0,A!=="*"&&A!=="?"&&A!=="+"&&s--);break;case 2:A===")"?u[u.length-1]=="\\"?u=u.slice(0,-1)+A:t=3:u+=A;break;case 3:c(),t=0,A!=="*"&&A!=="?"&&A!=="+"&&s--,u="";break;default:e("Unknown state");break}}return t===2&&e(`Unfinished custom RegExp for param "${l}"`),c(),o(),i}function gOt(r,e,t){const n=cOt(vOt(r.path),t),i=vn(n,{record:r,parent:e,children:[],alias:[]});return e&&!i.record.aliasOf==!e.record.aliasOf&&e.children.push(i),i}function mOt(r,e){const t=[],n=new Map;e=TD({strict:!1,end:!0,sensitive:!1},e);function i(u){return n.get(u)}function a(u,c,h){const f=!h,p=yOt(u);p.aliasOf=h&&h.record;const v=TD(e,u),m=[p];if("alias"in u){const w=typeof u.alias=="string"?[u.alias]:u.alias;for(const C of w)m.push(vn({},p,{components:h?h.record.components:p.components,path:C,aliasOf:h?h.record:p}))}let g,_;for(const w of m){const{path:C}=w;if(c&&C[0]!=="/"){const F=c.record.path,O=F[F.length-1]==="/"?"":"/";w.path=c.record.path+(C&&O+C)}if(g=gOt(w,c,v),h?h.alias.push(g):(_=_||g,_!==g&&_.alias.push(g),f&&u.name&&!BD(g)&&o(u.name)),p.children){const F=p.children;for(let O=0;O<F.length;O++)a(F[O],g,h&&h.children[O])}h=h||g,(g.record.components&&Object.keys(g.record.components).length||g.record.name||g.record.redirect)&&A(g)}return _?()=>{o(_)}:km}function o(u){if($$(u)){const c=n.get(u);c&&(n.delete(u),t.splice(t.indexOf(c),1),c.children.forEach(o),c.alias.forEach(o))}else{const c=t.indexOf(u);c>-1&&(t.splice(c,1),u.record.name&&n.delete(u.record.name),u.children.forEach(o),u.alias.forEach(o))}}function s(){return t}function A(u){let c=0;for(;c<t.length&&fOt(u,t[c])>=0&&(u.record.path!==t[c].record.path||!j$(u,t[c]));)c++;t.splice(c,0,u),u.record.name&&!BD(u)&&n.set(u.record.name,u)}function l(u,c){let h,f={},p,v;if("name"in u&&u.name){if(h=n.get(u.name),!h)throw mv(1,{location:u});v=h.record.name,f=vn(CD(c.params,h.keys.filter(_=>!_.optional).map(_=>_.name)),u.params&&CD(u.params,h.keys.map(_=>_.name))),p=h.stringify(f)}else if("path"in u)p=u.path,h=t.find(_=>_.re.test(p)),h&&(f=h.parse(p),v=h.record.name);else{if(h=c.name?n.get(c.name):t.find(_=>_.re.test(c.path)),!h)throw mv(1,{location:u,currentLocation:c});v=h.record.name,f=vn({},c.params,u.params),p=h.stringify(f)}const m=[];let g=h;for(;g;)m.unshift(g.record),g=g.parent;return{name:v,path:p,params:f,matched:m,meta:wOt(m)}}return r.forEach(u=>a(u)),{addRoute:a,resolve:l,removeRoute:o,getRoutes:s,getRecordMatcher:i}}function CD(r,e){const t={};for(const n of e)n in r&&(t[n]=r[n]);return t}function yOt(r){return{path:r.path,redirect:r.redirect,name:r.name,meta:r.meta||{},aliasOf:void 0,beforeEnter:r.beforeEnter,props:_Ot(r),children:r.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in r?r.components||null:r.component&&{default:r.component}}}function _Ot(r){const e={},t=r.props||!1;if("component"in r)e.default=t;else for(const n in r.components)e[n]=typeof t=="boolean"?t:t[n];return e}function BD(r){for(;r;){if(r.record.aliasOf)return!0;r=r.parent}return!1}function wOt(r){return r.reduce((e,t)=>vn(e,t.meta),{})}function TD(r,e){const t={};for(const n in r)t[n]=n in e?e[n]:r[n];return t}function j$(r,e){return e.children.some(t=>t===r||j$(r,t))}const K$=/#/g,EOt=/&/g,COt=/\//g,BOt=/=/g,TOt=/\?/g,Y$=/\+/g,bOt=/%5B/g,SOt=/%5D/g,W$=/%5E/g,xOt=/%60/g,z$=/%7B/g,IOt=/%7C/g,X$=/%7D/g,LOt=/%20/g;function vR(r){return encodeURI(""+r).replace(IOt,"|").replace(bOt,"[").replace(SOt,"]")}function FOt(r){return vR(r).replace(z$,"{").replace(X$,"}").replace(W$,"^")}function nL(r){return vR(r).replace(Y$,"%2B").replace(LOt,"+").replace(K$,"%23").replace(EOt,"%26").replace(xOt,"`").replace(z$,"{").replace(X$,"}").replace(W$,"^")}function OOt(r){return nL(r).replace(BOt,"%3D")}function ROt(r){return vR(r).replace(K$,"%23").replace(TOt,"%3F")}function MOt(r){return r==null?"":ROt(r).replace(COt,"%2F")}function Xw(r){try{return decodeURIComponent(""+r)}catch{}return""+r}function NOt(r){const e={};if(r===""||r==="?")return e;const n=(r[0]==="?"?r.slice(1):r).split("&");for(let i=0;i<n.length;++i){const a=n[i].replace(Y$," "),o=a.indexOf("="),s=Xw(o<0?a:a.slice(0,o)),A=o<0?null:Xw(a.slice(o+1));if(s in e){let l=e[s];mA(l)||(l=e[s]=[l]),l.push(A)}else e[s]=A}return e}function bD(r){let e="";for(let t in r){const n=r[t];if(t=OOt(t),n==null){n!==void 0&&(e+=(e.length?"&":"")+t);continue}(mA(n)?n.map(a=>a&&nL(a)):[n&&nL(n)]).forEach(a=>{a!==void 0&&(e+=(e.length?"&":"")+t,a!=null&&(e+="="+a))})}return e}function POt(r){const e={};for(const t in r){const n=r[t];n!==void 0&&(e[t]=mA(n)?n.map(i=>i==null?null:""+i):n==null?n:""+n)}return e}const UOt=Symbol(""),SD=Symbol(""),gR=Symbol(""),q$=Symbol(""),iL=Symbol("");function zg(){let r=[];function e(n){return r.push(n),()=>{const i=r.indexOf(n);i>-1&&r.splice(i,1)}}function t(){r=[]}return{add:e,list:()=>r,reset:t}}function yc(r,e,t,n,i){const a=n&&(n.enterCallbacks[i]=n.enterCallbacks[i]||[]);return()=>new Promise((o,s)=>{const A=c=>{c===!1?s(mv(4,{from:t,to:e})):c instanceof Error?s(c):AOt(c)?s(mv(2,{from:e,to:c})):(a&&n.enterCallbacks[i]===a&&typeof c=="function"&&a.push(c),o())},l=r.call(n&&n.instances[i],e,t,A);let u=Promise.resolve(l);r.length<3&&(u=u.then(A)),u.catch(c=>s(c))})}function Ib(r,e,t,n){const i=[];for(const a of r)for(const o in a.components){let s=a.components[o];if(!(e!=="beforeRouteEnter"&&!a.instances[o]))if(DOt(s)){const l=(s.__vccOpts||s)[e];l&&i.push(yc(l,t,n,a,o))}else{let A=s();i.push(()=>A.then(l=>{if(!l)return Promise.reject(new Error(`Couldn't resolve component "${o}" at "${a.path}"`));const u=VFt(l)?l.default:l;a.components[o]=u;const h=(u.__vccOpts||u)[e];return h&&yc(h,t,n,a,o)()}))}}return i}function DOt(r){return typeof r=="object"||"displayName"in r||"props"in r||"__vccOpts"in r}function xD(r){const e=Be(gR),t=Be(q$),n=qe(()=>e.resolve(df(r.to))),i=qe(()=>{const{matched:A}=n.value,{length:l}=A,u=A[l-1],c=t.matched;if(!u||!c.length)return-1;const h=c.findIndex(gv.bind(null,u));if(h>-1)return h;const f=ID(A[l-2]);return l>1&&ID(u)===f&&c[c.length-1].path!==f?c.findIndex(gv.bind(null,A[l-2])):h}),a=qe(()=>i.value>-1&&GOt(t.params,n.value.params)),o=qe(()=>i.value>-1&&i.value===t.matched.length-1&&H$(t.params,n.value.params));function s(A={}){return HOt(A)?e[df(r.replace)?"replace":"push"](df(r.to)).catch(km):Promise.resolve()}return{route:n,href:qe(()=>n.value.href),isActive:a,isExactActive:o,navigate:s}}const QOt=Fy({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"}},useLink:xD,setup(r,{slots:e}){const t=zf(xD(r)),{options:n}=Be(gR),i=qe(()=>({[LD(r.activeClass,n.linkActiveClass,"router-link-active")]:t.isActive,[LD(r.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:t.isExactActive}));return()=>{const a=e.default&&e.default(t);return r.custom?a:gE("a",{"aria-current":t.isExactActive?r.ariaCurrentValue:null,href:t.href,onClick:t.navigate,class:i.value},a)}}}),kOt=QOt;function HOt(r){if(!(r.metaKey||r.altKey||r.ctrlKey||r.shiftKey)&&!r.defaultPrevented&&!(r.button!==void 0&&r.button!==0)){if(r.currentTarget&&r.currentTarget.getAttribute){const e=r.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return r.preventDefault&&r.preventDefault(),!0}}function GOt(r,e){for(const t in e){const n=e[t],i=r[t];if(typeof n=="string"){if(n!==i)return!1}else if(!mA(i)||i.length!==n.length||n.some((a,o)=>a!==i[o]))return!1}return!0}function ID(r){return r?r.aliasOf?r.aliasOf.path:r.path:""}const LD=(r,e,t)=>r??e??t,$Ot=Fy({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(r,{attrs:e,slots:t}){const n=Be(iL),i=qe(()=>r.route||n.value),a=Be(SD,0),o=qe(()=>{let l=df(a);const{matched:u}=i.value;let c;for(;(c=u[l])&&!c.components;)l++;return l}),s=qe(()=>i.value.matched[o.value]);Ur(SD,qe(()=>o.value+1)),Ur(UOt,s),Ur(iL,i);const A=Io();return ye(()=>[A.value,s.value,r.name],([l,u,c],[h,f,p])=>{u&&(u.instances[c]=l,f&&f!==u&&l&&l===h&&(u.leaveGuards.size||(u.leaveGuards=f.leaveGuards),u.updateGuards.size||(u.updateGuards=f.updateGuards))),l&&u&&(!f||!gv(u,f)||!h)&&(u.enterCallbacks[c]||[]).forEach(v=>v(l))},{flush:"post"}),()=>{const l=i.value,u=r.name,c=s.value,h=c&&c.components[u];if(!h)return FD(t.default,{Component:h,route:l});const f=c.props[u],p=f?f===!0?l.params:typeof f=="function"?f(l):f:null,m=gE(h,vn({},p,e,{onVnodeUnmounted:g=>{g.component.isUnmounted&&(c.instances[u]=null)},ref:A}));return FD(t.default,{Component:m,route:l})||m}}});function FD(r,e){if(!r)return null;const t=r(e);return t.length===1?t[0]:t}const VOt=$Ot;function jOt(r){const e=mOt(r.routes,r),t=r.parseQuery||NOt,n=r.stringifyQuery||bD,i=r.history,a=zg(),o=zg(),s=zg(),A=oQ(uc);let l=uc;Ed&&r.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Sb.bind(null,H=>""+H),c=Sb.bind(null,MOt),h=Sb.bind(null,Xw);function f(H,J){let ot,ut;return $$(H)?(ot=e.getRecordMatcher(H),ut=J):ut=H,e.addRoute(ut,ot)}function p(H){const J=e.getRecordMatcher(H);J&&e.removeRoute(J)}function v(){return e.getRoutes().map(H=>H.record)}function m(H){return!!e.getRecordMatcher(H)}function g(H,J){if(J=vn({},J||A.value),typeof H=="string"){const j=xb(t,H,J.path),Z=e.resolve({path:j.path},J),ft=i.createHref(j.fullPath);return vn(j,Z,{params:h(Z.params),hash:Xw(j.hash),redirectedFrom:void 0,href:ft})}let ot;if("path"in H)ot=vn({},H,{path:xb(t,H.path,J.path).path});else{const j=vn({},H.params);for(const Z in j)j[Z]==null&&delete j[Z];ot=vn({},H,{params:c(H.params)}),J.params=c(J.params)}const ut=e.resolve(ot,J),X=H.hash||"";ut.params=u(h(ut.params));const It=YFt(n,vn({},H,{hash:FOt(X),path:ut.path})),at=i.createHref(It);return vn({fullPath:It,hash:X,query:n===bD?POt(H.query):H.query||{}},ut,{redirectedFrom:void 0,href:at})}function _(H){return typeof H=="string"?xb(t,H,A.value.path):vn({},H)}function w(H,J){if(l!==H)return mv(8,{from:J,to:H})}function C(H){return I(H)}function F(H){return C(vn(_(H),{replace:!0}))}function O(H){const J=H.matched[H.matched.length-1];if(J&&J.redirect){const{redirect:ot}=J;let ut=typeof ot=="function"?ot(H):ot;return typeof ut=="string"&&(ut=ut.includes("?")||ut.includes("#")?ut=_(ut):{path:ut},ut.params={}),vn({query:H.query,hash:H.hash,params:"path"in ut?{}:H.params},ut)}}function I(H,J){const ot=l=g(H),ut=A.value,X=H.state,It=H.force,at=H.replace===!0,j=O(ot);if(j)return I(vn(_(j),{state:typeof j=="object"?vn({},X,j.state):X,force:It,replace:at}),J||ot);const Z=ot;Z.redirectedFrom=J;let ft;return!It&&WFt(n,ut,ot)&&(ft=mv(16,{to:Z,from:ut}),ct(ut,ut,!0,!1)),(ft?Promise.resolve(ft):L(Z,ut)).catch(it=>Yl(it)?Yl(it,2)?it:At(it):rt(it,Z,ut)).then(it=>{if(it){if(Yl(it,2))return I(vn({replace:at},_(it.to),{state:typeof it.to=="object"?vn({},X,it.to.state):X,force:It}),J||Z)}else it=x(Z,ut,!0,at,X);return N(Z,ut,it),it})}function b(H,J){const ot=w(H,J);return ot?Promise.reject(ot):Promise.resolve()}function L(H,J){let ot;const[ut,X,It]=KOt(H,J);ot=Ib(ut.reverse(),"beforeRouteLeave",H,J);for(const j of ut)j.leaveGuards.forEach(Z=>{ot.push(yc(Z,H,J))});const at=b.bind(null,H,J);return ot.push(at),ud(ot).then(()=>{ot=[];for(const j of a.list())ot.push(yc(j,H,J));return ot.push(at),ud(ot)}).then(()=>{ot=Ib(X,"beforeRouteUpdate",H,J);for(const j of X)j.updateGuards.forEach(Z=>{ot.push(yc(Z,H,J))});return ot.push(at),ud(ot)}).then(()=>{ot=[];for(const j of H.matched)if(j.beforeEnter&&!J.matched.includes(j))if(mA(j.beforeEnter))for(const Z of j.beforeEnter)ot.push(yc(Z,H,J));else ot.push(yc(j.beforeEnter,H,J));return ot.push(at),ud(ot)}).then(()=>(H.matched.forEach(j=>j.enterCallbacks={}),ot=Ib(It,"beforeRouteEnter",H,J),ot.push(at),ud(ot))).then(()=>{ot=[];for(const j of o.list())ot.push(yc(j,H,J));return ot.push(at),ud(ot)}).catch(j=>Yl(j,8)?j:Promise.reject(j))}function N(H,J,ot){for(const ut of s.list())ut(H,J,ot)}function x(H,J,ot,ut,X){const It=w(H,J);if(It)return It;const at=J===uc,j=Ed?history.state:{};ot&&(ut||at?i.replace(H.fullPath,vn({scroll:at&&j&&j.scroll},X)):i.push(H.fullPath,X)),A.value=H,ct(H,J,ot,at),At()}let S;function P(){S||(S=i.listen((H,J,ot)=>{if(!z.listening)return;const ut=g(H),X=O(ut);if(X){I(vn(X,{replace:!0}),ut).catch(km);return}l=ut;const It=A.value;Ed&&rOt(mD(It.fullPath,ot.delta),UC()),L(ut,It).catch(at=>Yl(at,12)?at:Yl(at,2)?(I(at.to,ut).then(j=>{Yl(j,20)&&!ot.delta&&ot.type===Cy.pop&&i.go(-1,!1)}).catch(km),Promise.reject()):(ot.delta&&i.go(-ot.delta,!1),rt(at,ut,It))).then(at=>{at=at||x(ut,It,!1),at&&(ot.delta&&!Yl(at,8)?i.go(-ot.delta,!1):ot.type===Cy.pop&&Yl(at,20)&&i.go(-1,!1)),N(ut,It,at)}).catch(km)}))}let U=zg(),tt=zg(),q;function rt(H,J,ot){At(H);const ut=tt.list();return ut.length?ut.forEach(X=>X(H,J,ot)):console.error(H),Promise.reject(H)}function nt(){return q&&A.value!==uc?Promise.resolve():new Promise((H,J)=>{U.add([H,J])})}function At(H){return q||(q=!H,P(),U.list().forEach(([J,ot])=>H?ot(H):J()),U.reset()),H}function ct(H,J,ot,ut){const{scrollBehavior:X}=r;if(!Ed||!X)return Promise.resolve();const It=!ot&&nOt(mD(H.fullPath,0))||(ut||!ot)&&history.state&&history.state.scroll||null;return oE().then(()=>X(H,J,It)).then(at=>at&&eOt(at)).catch(at=>rt(at,H,J))}const bt=H=>i.go(H);let M;const Y=new Set,z={currentRoute:A,listening:!0,addRoute:f,removeRoute:p,hasRoute:m,getRoutes:v,resolve:g,options:r,push:C,replace:F,go:bt,back:()=>bt(-1),forward:()=>bt(1),beforeEach:a.add,beforeResolve:o.add,afterEach:s.add,onError:tt.add,isReady:nt,install(H){const J=this;H.component("RouterLink",kOt),H.component("RouterView",VOt),H.config.globalProperties.$router=J,Object.defineProperty(H.config.globalProperties,"$route",{enumerable:!0,get:()=>df(A)}),Ed&&!M&&A.value===uc&&(M=!0,C(i.location).catch(X=>{}));const ot={};for(const X in uc)ot[X]=qe(()=>A.value[X]);H.provide(gR,J),H.provide(q$,zf(ot)),H.provide(iL,A);const ut=H.unmount;Y.add(H),H.unmount=function(){Y.delete(H),Y.size<1&&(l=uc,S&&S(),S=null,A.value=uc,M=!1,q=!1),ut()}}};return z}function ud(r){return r.reduce((e,t)=>e.then(()=>t()),Promise.resolve())}function KOt(r,e){const t=[],n=[],i=[],a=Math.max(e.matched.length,r.matched.length);for(let o=0;o<a;o++){const s=e.matched[o];s&&(r.matched.find(l=>gv(l,s))?n.push(s):t.push(s));const A=r.matched[o];A&&(e.matched.find(l=>gv(l,A))||i.push(A))}return[t,n,i]}const YOt="modulepreload",WOt=function(r){return"/"+r},OD={},r1=function(e,t,n){if(!t||t.length===0)return e();const i=document.getElementsByTagName("link");return Promise.all(t.map(a=>{if(a=WOt(a),a in OD)return;OD[a]=!0;const o=a.endsWith(".css"),s=o?'[rel="stylesheet"]':"";if(!!n)for(let u=i.length-1;u>=0;u--){const c=i[u];if(c.href===a&&(!o||c.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${a}"]${s}`))return;const l=document.createElement("link");if(l.rel=o?"stylesheet":YOt,o||(l.as="script",l.crossOrigin=""),l.href=a,document.head.appendChild(l),o)return new Promise((u,c)=>{l.addEventListener("load",u),l.addEventListener("error",()=>c(new Error(`Unable to preload CSS for ${a}`)))})})).then(()=>e())},zOt=(r,e)=>{const t=r[e];return t?typeof t=="function"?t():Promise.resolve(t):new Promise((n,i)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(i.bind(null,new Error("Unknown variable dynamic import: "+e)))})};function n1(r){return()=>zOt(Object.assign({"../pages/InsightsPage.vue":()=>r1(()=>import("./InsightsPage-4addc08f.js"),["assets/InsightsPage-4addc08f.js","assets/navbar-764b96b5.js","assets/navbar-df4836e9.css","assets/InsightsPage-d4adcdf9.css"]),"../pages/MapPage.vue":()=>r1(()=>import("./MapPage-12ef7403.js"),["assets/MapPage-12ef7403.js","assets/navbar-764b96b5.js","assets/navbar-df4836e9.css","assets/MapPage-56e92111.css"]),"../pages/loginpage.vue":()=>r1(()=>import("./loginpage-acff9941.js"),["assets/loginpage-acff9941.js","assets/loginpage-caea8f93.css"]),"../pages/signup.vue":()=>r1(()=>import("./signup-c9878365.js"),["assets/signup-c9878365.js","assets/signup-ceddb310.css"])}),`../pages/${r}.vue`)}const XOt=[{path:"/",component:n1("MapPage")},{path:"/insights",component:n1("InsightsPage")},{path:"/signup",component:n1("signup")},{path:"/login",component:n1("loginpage")}];var RD={},qOt={get exports(){return RD},set exports(r){RD=r}},fo="top",vs="bottom",gs="right",po="left",DC="auto",Yv=[fo,vs,gs,po],Kf="start",yv="end",Z$="clippingParents",mR="viewport",Cd="popper",J$="reference",aL=Yv.reduce(function(r,e){return r.concat([e+"-"+Kf,e+"-"+yv])},[]),yR=[].concat(Yv,[DC]).reduce(function(r,e){return r.concat([e,e+"-"+Kf,e+"-"+yv])},[]),t9="beforeRead",e9="read",r9="afterRead",n9="beforeMain",i9="main",a9="afterMain",o9="beforeWrite",s9="write",A9="afterWrite",l9=[t9,e9,r9,n9,i9,a9,o9,s9,A9];function pl(r){return r?(r.nodeName||"").toLowerCase():null}function Gs(r){if(r==null)return window;if(r.toString()!=="[object Window]"){var e=r.ownerDocument;return e&&e.defaultView||window}return r}function Yf(r){var e=Gs(r).Element;return r instanceof e||r instanceof Element}function Us(r){var e=Gs(r).HTMLElement;return r instanceof e||r instanceof HTMLElement}function _R(r){if(typeof ShadowRoot>"u")return!1;var e=Gs(r).ShadowRoot;return r instanceof e||r instanceof ShadowRoot}function ZOt(r){var e=r.state;Object.keys(e.elements).forEach(function(t){var n=e.styles[t]||{},i=e.attributes[t]||{},a=e.elements[t];!Us(a)||!pl(a)||(Object.assign(a.style,n),Object.keys(i).forEach(function(o){var s=i[o];s===!1?a.removeAttribute(o):a.setAttribute(o,s===!0?"":s)}))})}function JOt(r){var e=r.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),function(){Object.keys(e.elements).forEach(function(n){var i=e.elements[n],a=e.attributes[n]||{},o=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:t[n]),s=o.reduce(function(A,l){return A[l]="",A},{});!Us(i)||!pl(i)||(Object.assign(i.style,s),Object.keys(a).forEach(function(A){i.removeAttribute(A)}))})}}const wR={name:"applyStyles",enabled:!0,phase:"write",fn:ZOt,effect:JOt,requires:["computeStyles"]};function Al(r){return r.split("-")[0]}var If=Math.max,qw=Math.min,_v=Math.round;function oL(){var r=navigator.userAgentData;return r!=null&&r.brands?r.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function u9(){return!/^((?!chrome|android).)*safari/i.test(oL())}function wv(r,e,t){e===void 0&&(e=!1),t===void 0&&(t=!1);var n=r.getBoundingClientRect(),i=1,a=1;e&&Us(r)&&(i=r.offsetWidth>0&&_v(n.width)/r.offsetWidth||1,a=r.offsetHeight>0&&_v(n.height)/r.offsetHeight||1);var o=Yf(r)?Gs(r):window,s=o.visualViewport,A=!u9()&&t,l=(n.left+(A&&s?s.offsetLeft:0))/i,u=(n.top+(A&&s?s.offsetTop:0))/a,c=n.width/i,h=n.height/a;return{width:c,height:h,top:u,right:l+c,bottom:u+h,left:l,x:l,y:u}}function ER(r){var e=wv(r),t=r.offsetWidth,n=r.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:r.offsetLeft,y:r.offsetTop,width:t,height:n}}function c9(r,e){var t=e.getRootNode&&e.getRootNode();if(r.contains(e))return!0;if(t&&_R(t)){var n=e;do{if(n&&r.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function wu(r){return Gs(r).getComputedStyle(r)}function tRt(r){return["table","td","th"].indexOf(pl(r))>=0}function ph(r){return((Yf(r)?r.ownerDocument:r.document)||window.document).documentElement}function QC(r){return pl(r)==="html"?r:r.assignedSlot||r.parentNode||(_R(r)?r.host:null)||ph(r)}function MD(r){return!Us(r)||wu(r).position==="fixed"?null:r.offsetParent}function eRt(r){var e=/firefox/i.test(oL()),t=/Trident/i.test(oL());if(t&&Us(r)){var n=wu(r);if(n.position==="fixed")return null}var i=QC(r);for(_R(i)&&(i=i.host);Us(i)&&["html","body"].indexOf(pl(i))<0;){var a=wu(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||e&&a.willChange==="filter"||e&&a.filter&&a.filter!=="none")return i;i=i.parentNode}return null}function c0(r){for(var e=Gs(r),t=MD(r);t&&tRt(t)&&wu(t).position==="static";)t=MD(t);return t&&(pl(t)==="html"||pl(t)==="body"&&wu(t).position==="static")?e:t||eRt(r)||e}function CR(r){return["top","bottom"].indexOf(r)>=0?"x":"y"}function Gm(r,e,t){return If(r,qw(e,t))}function rRt(r,e,t){var n=Gm(r,e,t);return n>t?t:n}function h9(){return{top:0,right:0,bottom:0,left:0}}function f9(r){return Object.assign({},h9(),r)}function p9(r,e){return e.reduce(function(t,n){return t[n]=r,t},{})}var nRt=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,f9(typeof e!="number"?e:p9(e,Yv))};function iRt(r){var e,t=r.state,n=r.name,i=r.options,a=t.elements.arrow,o=t.modifiersData.popperOffsets,s=Al(t.placement),A=CR(s),l=[po,gs].indexOf(s)>=0,u=l?"height":"width";if(!(!a||!o)){var c=nRt(i.padding,t),h=ER(a),f=A==="y"?fo:po,p=A==="y"?vs:gs,v=t.rects.reference[u]+t.rects.reference[A]-o[A]-t.rects.popper[u],m=o[A]-t.rects.reference[A],g=c0(a),_=g?A==="y"?g.clientHeight||0:g.clientWidth||0:0,w=v/2-m/2,C=c[f],F=_-h[u]-c[p],O=_/2-h[u]/2+w,I=Gm(C,O,F),b=A;t.modifiersData[n]=(e={},e[b]=I,e.centerOffset=I-O,e)}}function aRt(r){var e=r.state,t=r.options,n=t.element,i=n===void 0?"[data-popper-arrow]":n;i!=null&&(typeof i=="string"&&(i=e.elements.popper.querySelector(i),!i)||c9(e.elements.popper,i)&&(e.elements.arrow=i))}const d9={name:"arrow",enabled:!0,phase:"main",fn:iRt,effect:aRt,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ev(r){return r.split("-")[1]}var oRt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function sRt(r){var e=r.x,t=r.y,n=window,i=n.devicePixelRatio||1;return{x:_v(e*i)/i||0,y:_v(t*i)/i||0}}function ND(r){var e,t=r.popper,n=r.popperRect,i=r.placement,a=r.variation,o=r.offsets,s=r.position,A=r.gpuAcceleration,l=r.adaptive,u=r.roundOffsets,c=r.isFixed,h=o.x,f=h===void 0?0:h,p=o.y,v=p===void 0?0:p,m=typeof u=="function"?u({x:f,y:v}):{x:f,y:v};f=m.x,v=m.y;var g=o.hasOwnProperty("x"),_=o.hasOwnProperty("y"),w=po,C=fo,F=window;if(l){var O=c0(t),I="clientHeight",b="clientWidth";if(O===Gs(t)&&(O=ph(t),wu(O).position!=="static"&&s==="absolute"&&(I="scrollHeight",b="scrollWidth")),O=O,i===fo||(i===po||i===gs)&&a===yv){C=vs;var L=c&&O===F&&F.visualViewport?F.visualViewport.height:O[I];v-=L-n.height,v*=A?1:-1}if(i===po||(i===fo||i===vs)&&a===yv){w=gs;var N=c&&O===F&&F.visualViewport?F.visualViewport.width:O[b];f-=N-n.width,f*=A?1:-1}}var x=Object.assign({position:s},l&&oRt),S=u===!0?sRt({x:f,y:v}):{x:f,y:v};if(f=S.x,v=S.y,A){var P;return Object.assign({},x,(P={},P[C]=_?"0":"",P[w]=g?"0":"",P.transform=(F.devicePixelRatio||1)<=1?"translate("+f+"px, "+v+"px)":"translate3d("+f+"px, "+v+"px, 0)",P))}return Object.assign({},x,(e={},e[C]=_?v+"px":"",e[w]=g?f+"px":"",e.transform="",e))}function ARt(r){var e=r.state,t=r.options,n=t.gpuAcceleration,i=n===void 0?!0:n,a=t.adaptive,o=a===void 0?!0:a,s=t.roundOffsets,A=s===void 0?!0:s,l={placement:Al(e.placement),variation:Ev(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,ND(Object.assign({},l,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:A})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,ND(Object.assign({},l,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:A})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const BR={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ARt,data:{}};var i1={passive:!0};function lRt(r){var e=r.state,t=r.instance,n=r.options,i=n.scroll,a=i===void 0?!0:i,o=n.resize,s=o===void 0?!0:o,A=Gs(e.elements.popper),l=[].concat(e.scrollParents.reference,e.scrollParents.popper);return a&&l.forEach(function(u){u.addEventListener("scroll",t.update,i1)}),s&&A.addEventListener("resize",t.update,i1),function(){a&&l.forEach(function(u){u.removeEventListener("scroll",t.update,i1)}),s&&A.removeEventListener("resize",t.update,i1)}}const TR={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:lRt,data:{}};var uRt={left:"right",right:"left",bottom:"top",top:"bottom"};function R1(r){return r.replace(/left|right|bottom|top/g,function(e){return uRt[e]})}var cRt={start:"end",end:"start"};function PD(r){return r.replace(/start|end/g,function(e){return cRt[e]})}function bR(r){var e=Gs(r),t=e.pageXOffset,n=e.pageYOffset;return{scrollLeft:t,scrollTop:n}}function SR(r){return wv(ph(r)).left+bR(r).scrollLeft}function hRt(r,e){var t=Gs(r),n=ph(r),i=t.visualViewport,a=n.clientWidth,o=n.clientHeight,s=0,A=0;if(i){a=i.width,o=i.height;var l=u9();(l||!l&&e==="fixed")&&(s=i.offsetLeft,A=i.offsetTop)}return{width:a,height:o,x:s+SR(r),y:A}}function fRt(r){var e,t=ph(r),n=bR(r),i=(e=r.ownerDocument)==null?void 0:e.body,a=If(t.scrollWidth,t.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=If(t.scrollHeight,t.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-n.scrollLeft+SR(r),A=-n.scrollTop;return wu(i||t).direction==="rtl"&&(s+=If(t.clientWidth,i?i.clientWidth:0)-a),{width:a,height:o,x:s,y:A}}function xR(r){var e=wu(r),t=e.overflow,n=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+i+n)}function v9(r){return["html","body","#document"].indexOf(pl(r))>=0?r.ownerDocument.body:Us(r)&&xR(r)?r:v9(QC(r))}function $m(r,e){var t;e===void 0&&(e=[]);var n=v9(r),i=n===((t=r.ownerDocument)==null?void 0:t.body),a=Gs(n),o=i?[a].concat(a.visualViewport||[],xR(n)?n:[]):n,s=e.concat(o);return i?s:s.concat($m(QC(o)))}function sL(r){return Object.assign({},r,{left:r.x,top:r.y,right:r.x+r.width,bottom:r.y+r.height})}function pRt(r,e){var t=wv(r,!1,e==="fixed");return t.top=t.top+r.clientTop,t.left=t.left+r.clientLeft,t.bottom=t.top+r.clientHeight,t.right=t.left+r.clientWidth,t.width=r.clientWidth,t.height=r.clientHeight,t.x=t.left,t.y=t.top,t}function UD(r,e,t){return e===mR?sL(hRt(r,t)):Yf(e)?pRt(e,t):sL(fRt(ph(r)))}function dRt(r){var e=$m(QC(r)),t=["absolute","fixed"].indexOf(wu(r).position)>=0,n=t&&Us(r)?c0(r):r;return Yf(n)?e.filter(function(i){return Yf(i)&&c9(i,n)&&pl(i)!=="body"}):[]}function vRt(r,e,t,n){var i=e==="clippingParents"?dRt(r):[].concat(e),a=[].concat(i,[t]),o=a[0],s=a.reduce(function(A,l){var u=UD(r,l,n);return A.top=If(u.top,A.top),A.right=qw(u.right,A.right),A.bottom=qw(u.bottom,A.bottom),A.left=If(u.left,A.left),A},UD(r,o,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function g9(r){var e=r.reference,t=r.element,n=r.placement,i=n?Al(n):null,a=n?Ev(n):null,o=e.x+e.width/2-t.width/2,s=e.y+e.height/2-t.height/2,A;switch(i){case fo:A={x:o,y:e.y-t.height};break;case vs:A={x:o,y:e.y+e.height};break;case gs:A={x:e.x+e.width,y:s};break;case po:A={x:e.x-t.width,y:s};break;default:A={x:e.x,y:e.y}}var l=i?CR(i):null;if(l!=null){var u=l==="y"?"height":"width";switch(a){case Kf:A[l]=A[l]-(e[u]/2-t[u]/2);break;case yv:A[l]=A[l]+(e[u]/2-t[u]/2);break}}return A}function Cv(r,e){e===void 0&&(e={});var t=e,n=t.placement,i=n===void 0?r.placement:n,a=t.strategy,o=a===void 0?r.strategy:a,s=t.boundary,A=s===void 0?Z$:s,l=t.rootBoundary,u=l===void 0?mR:l,c=t.elementContext,h=c===void 0?Cd:c,f=t.altBoundary,p=f===void 0?!1:f,v=t.padding,m=v===void 0?0:v,g=f9(typeof m!="number"?m:p9(m,Yv)),_=h===Cd?J$:Cd,w=r.rects.popper,C=r.elements[p?_:h],F=vRt(Yf(C)?C:C.contextElement||ph(r.elements.popper),A,u,o),O=wv(r.elements.reference),I=g9({reference:O,element:w,strategy:"absolute",placement:i}),b=sL(Object.assign({},w,I)),L=h===Cd?b:O,N={top:F.top-L.top+g.top,bottom:L.bottom-F.bottom+g.bottom,left:F.left-L.left+g.left,right:L.right-F.right+g.right},x=r.modifiersData.offset;if(h===Cd&&x){var S=x[i];Object.keys(N).forEach(function(P){var U=[gs,vs].indexOf(P)>=0?1:-1,tt=[fo,vs].indexOf(P)>=0?"y":"x";N[P]+=S[tt]*U})}return N}function gRt(r,e){e===void 0&&(e={});var t=e,n=t.placement,i=t.boundary,a=t.rootBoundary,o=t.padding,s=t.flipVariations,A=t.allowedAutoPlacements,l=A===void 0?yR:A,u=Ev(n),c=u?s?aL:aL.filter(function(p){return Ev(p)===u}):Yv,h=c.filter(function(p){return l.indexOf(p)>=0});h.length===0&&(h=c);var f=h.reduce(function(p,v){return p[v]=Cv(r,{placement:v,boundary:i,rootBoundary:a,padding:o})[Al(v)],p},{});return Object.keys(f).sort(function(p,v){return f[p]-f[v]})}function mRt(r){if(Al(r)===DC)return[];var e=R1(r);return[PD(r),e,PD(e)]}function yRt(r){var e=r.state,t=r.options,n=r.name;if(!e.modifiersData[n]._skip){for(var i=t.mainAxis,a=i===void 0?!0:i,o=t.altAxis,s=o===void 0?!0:o,A=t.fallbackPlacements,l=t.padding,u=t.boundary,c=t.rootBoundary,h=t.altBoundary,f=t.flipVariations,p=f===void 0?!0:f,v=t.allowedAutoPlacements,m=e.options.placement,g=Al(m),_=g===m,w=A||(_||!p?[R1(m)]:mRt(m)),C=[m].concat(w).reduce(function(z,H){return z.concat(Al(H)===DC?gRt(e,{placement:H,boundary:u,rootBoundary:c,padding:l,flipVariations:p,allowedAutoPlacements:v}):H)},[]),F=e.rects.reference,O=e.rects.popper,I=new Map,b=!0,L=C[0],N=0;N<C.length;N++){var x=C[N],S=Al(x),P=Ev(x)===Kf,U=[fo,vs].indexOf(S)>=0,tt=U?"width":"height",q=Cv(e,{placement:x,boundary:u,rootBoundary:c,altBoundary:h,padding:l}),rt=U?P?gs:po:P?vs:fo;F[tt]>O[tt]&&(rt=R1(rt));var nt=R1(rt),At=[];if(a&&At.push(q[S]<=0),s&&At.push(q[rt]<=0,q[nt]<=0),At.every(function(z){return z})){L=x,b=!1;break}I.set(x,At)}if(b)for(var ct=p?3:1,bt=function(H){var J=C.find(function(ot){var ut=I.get(ot);if(ut)return ut.slice(0,H).every(function(X){return X})});if(J)return L=J,"break"},M=ct;M>0;M--){var Y=bt(M);if(Y==="break")break}e.placement!==L&&(e.modifiersData[n]._skip=!0,e.placement=L,e.reset=!0)}}const m9={name:"flip",enabled:!0,phase:"main",fn:yRt,requiresIfExists:["offset"],data:{_skip:!1}};function DD(r,e,t){return t===void 0&&(t={x:0,y:0}),{top:r.top-e.height-t.y,right:r.right-e.width+t.x,bottom:r.bottom-e.height+t.y,left:r.left-e.width-t.x}}function QD(r){return[fo,gs,vs,po].some(function(e){return r[e]>=0})}function _Rt(r){var e=r.state,t=r.name,n=e.rects.reference,i=e.rects.popper,a=e.modifiersData.preventOverflow,o=Cv(e,{elementContext:"reference"}),s=Cv(e,{altBoundary:!0}),A=DD(o,n),l=DD(s,i,a),u=QD(A),c=QD(l);e.modifiersData[t]={referenceClippingOffsets:A,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:c},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":c})}const y9={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:_Rt};function wRt(r,e,t){var n=Al(r),i=[po,fo].indexOf(n)>=0?-1:1,a=typeof t=="function"?t(Object.assign({},e,{placement:r})):t,o=a[0],s=a[1];return o=o||0,s=(s||0)*i,[po,gs].indexOf(n)>=0?{x:s,y:o}:{x:o,y:s}}function ERt(r){var e=r.state,t=r.options,n=r.name,i=t.offset,a=i===void 0?[0,0]:i,o=yR.reduce(function(u,c){return u[c]=wRt(c,e.rects,a),u},{}),s=o[e.placement],A=s.x,l=s.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=A,e.modifiersData.popperOffsets.y+=l),e.modifiersData[n]=o}const _9={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:ERt};function CRt(r){var e=r.state,t=r.name;e.modifiersData[t]=g9({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const IR={name:"popperOffsets",enabled:!0,phase:"read",fn:CRt,data:{}};function BRt(r){return r==="x"?"y":"x"}function TRt(r){var e=r.state,t=r.options,n=r.name,i=t.mainAxis,a=i===void 0?!0:i,o=t.altAxis,s=o===void 0?!1:o,A=t.boundary,l=t.rootBoundary,u=t.altBoundary,c=t.padding,h=t.tether,f=h===void 0?!0:h,p=t.tetherOffset,v=p===void 0?0:p,m=Cv(e,{boundary:A,rootBoundary:l,padding:c,altBoundary:u}),g=Al(e.placement),_=Ev(e.placement),w=!_,C=CR(g),F=BRt(C),O=e.modifiersData.popperOffsets,I=e.rects.reference,b=e.rects.popper,L=typeof v=="function"?v(Object.assign({},e.rects,{placement:e.placement})):v,N=typeof L=="number"?{mainAxis:L,altAxis:L}:Object.assign({mainAxis:0,altAxis:0},L),x=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,S={x:0,y:0};if(O){if(a){var P,U=C==="y"?fo:po,tt=C==="y"?vs:gs,q=C==="y"?"height":"width",rt=O[C],nt=rt+m[U],At=rt-m[tt],ct=f?-b[q]/2:0,bt=_===Kf?I[q]:b[q],M=_===Kf?-b[q]:-I[q],Y=e.elements.arrow,z=f&&Y?ER(Y):{width:0,height:0},H=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:h9(),J=H[U],ot=H[tt],ut=Gm(0,I[q],z[q]),X=w?I[q]/2-ct-ut-J-N.mainAxis:bt-ut-J-N.mainAxis,It=w?-I[q]/2+ct+ut+ot+N.mainAxis:M+ut+ot+N.mainAxis,at=e.elements.arrow&&c0(e.elements.arrow),j=at?C==="y"?at.clientTop||0:at.clientLeft||0:0,Z=(P=x==null?void 0:x[C])!=null?P:0,ft=rt+X-Z-j,it=rt+It-Z,V=Gm(f?qw(nt,ft):nt,rt,f?If(At,it):At);O[C]=V,S[C]=V-rt}if(s){var Ot,Mt=C==="x"?fo:po,Et=C==="x"?vs:gs,Bt=O[F],Ct=F==="y"?"height":"width",Rt=Bt+m[Mt],Nt=Bt-m[Et],Dt=[fo,po].indexOf(g)!==-1,Yt=(Ot=x==null?void 0:x[F])!=null?Ot:0,te=Dt?Rt:Bt-I[Ct]-b[Ct]-Yt+N.altAxis,Ae=Dt?Bt+I[Ct]+b[Ct]-Yt-N.altAxis:Nt,oe=f&&Dt?rRt(te,Bt,Ae):Gm(f?te:Rt,Bt,f?Ae:Nt);O[F]=oe,S[F]=oe-Bt}e.modifiersData[n]=S}}const w9={name:"preventOverflow",enabled:!0,phase:"main",fn:TRt,requiresIfExists:["offset"]};function bRt(r){return{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}}function SRt(r){return r===Gs(r)||!Us(r)?bR(r):bRt(r)}function xRt(r){var e=r.getBoundingClientRect(),t=_v(e.width)/r.offsetWidth||1,n=_v(e.height)/r.offsetHeight||1;return t!==1||n!==1}function IRt(r,e,t){t===void 0&&(t=!1);var n=Us(e),i=Us(e)&&xRt(e),a=ph(e),o=wv(r,i,t),s={scrollLeft:0,scrollTop:0},A={x:0,y:0};return(n||!n&&!t)&&((pl(e)!=="body"||xR(a))&&(s=SRt(e)),Us(e)?(A=wv(e,!0),A.x+=e.clientLeft,A.y+=e.clientTop):a&&(A.x=SR(a))),{x:o.left+s.scrollLeft-A.x,y:o.top+s.scrollTop-A.y,width:o.width,height:o.height}}function LRt(r){var e=new Map,t=new Set,n=[];r.forEach(function(a){e.set(a.name,a)});function i(a){t.add(a.name);var o=[].concat(a.requires||[],a.requiresIfExists||[]);o.forEach(function(s){if(!t.has(s)){var A=e.get(s);A&&i(A)}}),n.push(a)}return r.forEach(function(a){t.has(a.name)||i(a)}),n}function FRt(r){var e=LRt(r);return l9.reduce(function(t,n){return t.concat(e.filter(function(i){return i.phase===n}))},[])}function ORt(r){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(r())})})),e}}function RRt(r){var e=r.reduce(function(t,n){var i=t[n.name];return t[n.name]=i?Object.assign({},i,n,{options:Object.assign({},i.options,n.options),data:Object.assign({},i.data,n.data)}):n,t},{});return Object.keys(e).map(function(t){return e[t]})}var kD={placement:"bottom",modifiers:[],strategy:"absolute"};function HD(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return!e.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function kC(r){r===void 0&&(r={});var e=r,t=e.defaultModifiers,n=t===void 0?[]:t,i=e.defaultOptions,a=i===void 0?kD:i;return function(s,A,l){l===void 0&&(l=a);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},kD,a),modifiersData:{},elements:{reference:s,popper:A},attributes:{},styles:{}},c=[],h=!1,f={state:u,setOptions:function(g){var _=typeof g=="function"?g(u.options):g;v(),u.options=Object.assign({},a,u.options,_),u.scrollParents={reference:Yf(s)?$m(s):s.contextElement?$m(s.contextElement):[],popper:$m(A)};var w=FRt(RRt([].concat(n,u.options.modifiers)));return u.orderedModifiers=w.filter(function(C){return C.enabled}),p(),f.update()},forceUpdate:function(){if(!h){var g=u.elements,_=g.reference,w=g.popper;if(HD(_,w)){u.rects={reference:IRt(_,c0(w),u.options.strategy==="fixed"),popper:ER(w)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(N){return u.modifiersData[N.name]=Object.assign({},N.data)});for(var C=0;C<u.orderedModifiers.length;C++){if(u.reset===!0){u.reset=!1,C=-1;continue}var F=u.orderedModifiers[C],O=F.fn,I=F.options,b=I===void 0?{}:I,L=F.name;typeof O=="function"&&(u=O({state:u,options:b,name:L,instance:f})||u)}}}},update:ORt(function(){return new Promise(function(m){f.forceUpdate(),m(u)})}),destroy:function(){v(),h=!0}};if(!HD(s,A))return f;f.setOptions(l).then(function(m){!h&&l.onFirstUpdate&&l.onFirstUpdate(m)});function p(){u.orderedModifiers.forEach(function(m){var g=m.name,_=m.options,w=_===void 0?{}:_,C=m.effect;if(typeof C=="function"){var F=C({state:u,name:g,instance:f,options:w}),O=function(){};c.push(F||O)}})}function v(){c.forEach(function(m){return m()}),c=[]}return f}}var MRt=kC(),NRt=[TR,IR,BR,wR],PRt=kC({defaultModifiers:NRt}),URt=[TR,IR,BR,wR,_9,m9,w9,d9,y9],DRt=kC({defaultModifiers:URt});const QRt=Object.freeze(Object.defineProperty({__proto__:null,afterMain:a9,afterRead:r9,afterWrite:A9,applyStyles:wR,arrow:d9,auto:DC,basePlacements:Yv,beforeMain:n9,beforeRead:t9,beforeWrite:o9,bottom:vs,clippingParents:Z$,computeStyles:BR,createPopper:DRt,createPopperBase:MRt,createPopperLite:PRt,detectOverflow:Cv,end:yv,eventListeners:TR,flip:m9,hide:y9,left:po,main:i9,modifierPhases:l9,offset:_9,placements:yR,popper:Cd,popperGenerator:kC,popperOffsets:IR,preventOverflow:w9,read:e9,reference:J$,right:gs,start:Kf,top:fo,variationPlacements:aL,viewport:mR,write:s9},Symbol.toStringTag,{value:"Module"})),kRt=k$(QRt);/*!
|
||
* Bootstrap v5.2.3 (https://getbootstrap.com/)
|
||
* Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||
*/(function(r,e){(function(t,n){r.exports=n(kRt)})(Q$,function(t){function n(lt){if(lt&<.__esModule)return lt;const B=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(lt){for(const D in lt)if(D!=="default"){const ht=Object.getOwnPropertyDescriptor(lt,D);Object.defineProperty(B,D,ht.get?ht:{enumerable:!0,get:()=>lt[D]})}}return B.default=lt,Object.freeze(B)}const i=n(t),a=1e6,o=1e3,s="transitionend",A=lt=>lt==null?`${lt}`:Object.prototype.toString.call(lt).match(/\s([a-z]+)/i)[1].toLowerCase(),l=lt=>{do lt+=Math.floor(Math.random()*a);while(document.getElementById(lt));return lt},u=lt=>{let B=lt.getAttribute("data-bs-target");if(!B||B==="#"){let D=lt.getAttribute("href");if(!D||!D.includes("#")&&!D.startsWith("."))return null;D.includes("#")&&!D.startsWith("#")&&(D=`#${D.split("#")[1]}`),B=D&&D!=="#"?D.trim():null}return B},c=lt=>{const B=u(lt);return B&&document.querySelector(B)?B:null},h=lt=>{const B=u(lt);return B?document.querySelector(B):null},f=lt=>{if(!lt)return 0;let{transitionDuration:B,transitionDelay:D}=window.getComputedStyle(lt);const ht=Number.parseFloat(B),Qt=Number.parseFloat(D);return!ht&&!Qt?0:(B=B.split(",")[0],D=D.split(",")[0],(Number.parseFloat(B)+Number.parseFloat(D))*o)},p=lt=>{lt.dispatchEvent(new Event(s))},v=lt=>!lt||typeof lt!="object"?!1:(typeof lt.jquery<"u"&&(lt=lt[0]),typeof lt.nodeType<"u"),m=lt=>v(lt)?lt.jquery?lt[0]:lt:typeof lt=="string"&<.length>0?document.querySelector(lt):null,g=lt=>{if(!v(lt)||lt.getClientRects().length===0)return!1;const B=getComputedStyle(lt).getPropertyValue("visibility")==="visible",D=lt.closest("details:not([open])");if(!D)return B;if(D!==lt){const ht=lt.closest("summary");if(ht&&ht.parentNode!==D||ht===null)return!1}return B},_=lt=>!lt||lt.nodeType!==Node.ELEMENT_NODE||lt.classList.contains("disabled")?!0:typeof lt.disabled<"u"?lt.disabled:lt.hasAttribute("disabled")&<.getAttribute("disabled")!=="false",w=lt=>{if(!document.documentElement.attachShadow)return null;if(typeof lt.getRootNode=="function"){const B=lt.getRootNode();return B instanceof ShadowRoot?B:null}return lt instanceof ShadowRoot?lt:lt.parentNode?w(lt.parentNode):null},C=()=>{},F=lt=>{lt.offsetHeight},O=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,I=[],b=lt=>{document.readyState==="loading"?(I.length||document.addEventListener("DOMContentLoaded",()=>{for(const B of I)B()}),I.push(lt)):lt()},L=()=>document.documentElement.dir==="rtl",N=lt=>{b(()=>{const B=O();if(B){const D=lt.NAME,ht=B.fn[D];B.fn[D]=lt.jQueryInterface,B.fn[D].Constructor=lt,B.fn[D].noConflict=()=>(B.fn[D]=ht,lt.jQueryInterface)}})},x=lt=>{typeof lt=="function"&<()},S=(lt,B,D=!0)=>{if(!D){x(lt);return}const ht=5,Qt=f(B)+ht;let re=!1;const Zt=({target:Se})=>{Se===B&&(re=!0,B.removeEventListener(s,Zt),x(lt))};B.addEventListener(s,Zt),setTimeout(()=>{re||p(B)},Qt)},P=(lt,B,D,ht)=>{const Qt=lt.length;let re=lt.indexOf(B);return re===-1?!D&&ht?lt[Qt-1]:lt[0]:(re+=D?1:-1,ht&&(re=(re+Qt)%Qt),lt[Math.max(0,Math.min(re,Qt-1))])},U=/[^.]*(?=\..*)\.|.*/,tt=/\..*/,q=/::\d+$/,rt={};let nt=1;const At={mouseenter:"mouseover",mouseleave:"mouseout"},ct=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function bt(lt,B){return B&&`${B}::${nt++}`||lt.uidEvent||nt++}function M(lt){const B=bt(lt);return lt.uidEvent=B,rt[B]=rt[B]||{},rt[B]}function Y(lt,B){return function D(ht){return j(ht,{delegateTarget:lt}),D.oneOff&&at.off(lt,ht.type,B),B.apply(lt,[ht])}}function z(lt,B,D){return function ht(Qt){const re=lt.querySelectorAll(B);for(let{target:Zt}=Qt;Zt&&Zt!==this;Zt=Zt.parentNode)for(const Se of re)if(Se===Zt)return j(Qt,{delegateTarget:Zt}),ht.oneOff&&at.off(lt,Qt.type,B,D),D.apply(Zt,[Qt])}}function H(lt,B,D=null){return Object.values(lt).find(ht=>ht.callable===B&&ht.delegationSelector===D)}function J(lt,B,D){const ht=typeof B=="string",Qt=ht?D:B||D;let re=It(lt);return ct.has(re)||(re=lt),[ht,Qt,re]}function ot(lt,B,D,ht,Qt){if(typeof B!="string"||!lt)return;let[re,Zt,Se]=J(B,D,ht);B in At&&(Zt=(rs=>function(ns){if(!ns.relatedTarget||ns.relatedTarget!==ns.delegateTarget&&!ns.delegateTarget.contains(ns.relatedTarget))return rs.call(this,ns)})(Zt));const ea=M(lt),Fa=ea[Se]||(ea[Se]={}),jn=H(Fa,Zt,re?D:null);if(jn){jn.oneOff=jn.oneOff&&Qt;return}const Oa=bt(Zt,B.replace(U,"")),Ra=re?z(lt,D,Zt):Y(lt,Zt);Ra.delegationSelector=re?D:null,Ra.callable=Zt,Ra.oneOff=Qt,Ra.uidEvent=Oa,Fa[Oa]=Ra,lt.addEventListener(Se,Ra,re)}function ut(lt,B,D,ht,Qt){const re=H(B[D],ht,Qt);re&&(lt.removeEventListener(D,re,Boolean(Qt)),delete B[D][re.uidEvent])}function X(lt,B,D,ht){const Qt=B[D]||{};for(const re of Object.keys(Qt))if(re.includes(ht)){const Zt=Qt[re];ut(lt,B,D,Zt.callable,Zt.delegationSelector)}}function It(lt){return lt=lt.replace(tt,""),At[lt]||lt}const at={on(lt,B,D,ht){ot(lt,B,D,ht,!1)},one(lt,B,D,ht){ot(lt,B,D,ht,!0)},off(lt,B,D,ht){if(typeof B!="string"||!lt)return;const[Qt,re,Zt]=J(B,D,ht),Se=Zt!==B,ea=M(lt),Fa=ea[Zt]||{},jn=B.startsWith(".");if(typeof re<"u"){if(!Object.keys(Fa).length)return;ut(lt,ea,Zt,re,Qt?D:null);return}if(jn)for(const Oa of Object.keys(ea))X(lt,ea,Oa,B.slice(1));for(const Oa of Object.keys(Fa)){const Ra=Oa.replace(q,"");if(!Se||B.includes(Ra)){const kA=Fa[Oa];ut(lt,ea,Zt,kA.callable,kA.delegationSelector)}}},trigger(lt,B,D){if(typeof B!="string"||!lt)return null;const ht=O(),Qt=It(B),re=B!==Qt;let Zt=null,Se=!0,ea=!0,Fa=!1;re&&ht&&(Zt=ht.Event(B,D),ht(lt).trigger(Zt),Se=!Zt.isPropagationStopped(),ea=!Zt.isImmediatePropagationStopped(),Fa=Zt.isDefaultPrevented());let jn=new Event(B,{bubbles:Se,cancelable:!0});return jn=j(jn,D),Fa&&jn.preventDefault(),ea&<.dispatchEvent(jn),jn.defaultPrevented&&Zt&&Zt.preventDefault(),jn}};function j(lt,B){for(const[D,ht]of Object.entries(B||{}))try{lt[D]=ht}catch{Object.defineProperty(lt,D,{configurable:!0,get(){return ht}})}return lt}const Z=new Map,ft={set(lt,B,D){Z.has(lt)||Z.set(lt,new Map);const ht=Z.get(lt);if(!ht.has(B)&&ht.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(ht.keys())[0]}.`);return}ht.set(B,D)},get(lt,B){return Z.has(lt)&&Z.get(lt).get(B)||null},remove(lt,B){if(!Z.has(lt))return;const D=Z.get(lt);D.delete(B),D.size===0&&Z.delete(lt)}};function it(lt){if(lt==="true")return!0;if(lt==="false")return!1;if(lt===Number(lt).toString())return Number(lt);if(lt===""||lt==="null")return null;if(typeof lt!="string")return lt;try{return JSON.parse(decodeURIComponent(lt))}catch{return lt}}function V(lt){return lt.replace(/[A-Z]/g,B=>`-${B.toLowerCase()}`)}const Ot={setDataAttribute(lt,B,D){lt.setAttribute(`data-bs-${V(B)}`,D)},removeDataAttribute(lt,B){lt.removeAttribute(`data-bs-${V(B)}`)},getDataAttributes(lt){if(!lt)return{};const B={},D=Object.keys(lt.dataset).filter(ht=>ht.startsWith("bs")&&!ht.startsWith("bsConfig"));for(const ht of D){let Qt=ht.replace(/^bs/,"");Qt=Qt.charAt(0).toLowerCase()+Qt.slice(1,Qt.length),B[Qt]=it(lt.dataset[ht])}return B},getDataAttribute(lt,B){return it(lt.getAttribute(`data-bs-${V(B)}`))}};class Mt{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(B){return B=this._mergeConfigObj(B),B=this._configAfterMerge(B),this._typeCheckConfig(B),B}_configAfterMerge(B){return B}_mergeConfigObj(B,D){const ht=v(D)?Ot.getDataAttribute(D,"config"):{};return{...this.constructor.Default,...typeof ht=="object"?ht:{},...v(D)?Ot.getDataAttributes(D):{},...typeof B=="object"?B:{}}}_typeCheckConfig(B,D=this.constructor.DefaultType){for(const ht of Object.keys(D)){const Qt=D[ht],re=B[ht],Zt=v(re)?"element":A(re);if(!new RegExp(Qt).test(Zt))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${ht}" provided type "${Zt}" but expected type "${Qt}".`)}}}const Et="5.2.3";class Bt extends Mt{constructor(B,D){super(),B=m(B),B&&(this._element=B,this._config=this._getConfig(D),ft.set(this._element,this.constructor.DATA_KEY,this))}dispose(){ft.remove(this._element,this.constructor.DATA_KEY),at.off(this._element,this.constructor.EVENT_KEY);for(const B of Object.getOwnPropertyNames(this))this[B]=null}_queueCallback(B,D,ht=!0){S(B,D,ht)}_getConfig(B){return B=this._mergeConfigObj(B,this._element),B=this._configAfterMerge(B),this._typeCheckConfig(B),B}static getInstance(B){return ft.get(m(B),this.DATA_KEY)}static getOrCreateInstance(B,D={}){return this.getInstance(B)||new this(B,typeof D=="object"?D:null)}static get VERSION(){return Et}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(B){return`${B}${this.EVENT_KEY}`}}const Ct=(lt,B="hide")=>{const D=`click.dismiss${lt.EVENT_KEY}`,ht=lt.NAME;at.on(document,D,`[data-bs-dismiss="${ht}"]`,function(Qt){if(["A","AREA"].includes(this.tagName)&&Qt.preventDefault(),_(this))return;const re=h(this)||this.closest(`.${ht}`);lt.getOrCreateInstance(re)[B]()})},Rt="alert",Dt=".bs.alert",Yt=`close${Dt}`,te=`closed${Dt}`,Ae="fade",oe="show";class Jt extends Bt{static get NAME(){return Rt}close(){if(at.trigger(this._element,Yt).defaultPrevented)return;this._element.classList.remove(oe);const D=this._element.classList.contains(Ae);this._queueCallback(()=>this._destroyElement(),this._element,D)}_destroyElement(){this._element.remove(),at.trigger(this._element,te),this.dispose()}static jQueryInterface(B){return this.each(function(){const D=Jt.getOrCreateInstance(this);if(typeof B=="string"){if(D[B]===void 0||B.startsWith("_")||B==="constructor")throw new TypeError(`No method named "${B}"`);D[B](this)}})}}Ct(Jt,"close"),N(Jt);const fe="button",rr=".bs.button",ke=".data-api",_r="active",Ne='[data-bs-toggle="button"]',Pe=`click${rr}${ke}`;class kr extends Bt{static get NAME(){return fe}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(_r))}static jQueryInterface(B){return this.each(function(){const D=kr.getOrCreateInstance(this);B==="toggle"&&D[B]()})}}at.on(document,Pe,Ne,lt=>{lt.preventDefault();const B=lt.target.closest(Ne);kr.getOrCreateInstance(B).toggle()}),N(kr);const se={find(lt,B=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(B,lt))},findOne(lt,B=document.documentElement){return Element.prototype.querySelector.call(B,lt)},children(lt,B){return[].concat(...lt.children).filter(D=>D.matches(B))},parents(lt,B){const D=[];let ht=lt.parentNode.closest(B);for(;ht;)D.push(ht),ht=ht.parentNode.closest(B);return D},prev(lt,B){let D=lt.previousElementSibling;for(;D;){if(D.matches(B))return[D];D=D.previousElementSibling}return[]},next(lt,B){let D=lt.nextElementSibling;for(;D;){if(D.matches(B))return[D];D=D.nextElementSibling}return[]},focusableChildren(lt){const B=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(D=>`${D}:not([tabindex^="-"])`).join(",");return this.find(B,lt).filter(D=>!_(D)&&g(D))}},ui="swipe",dr=".bs.swipe",Jn=`touchstart${dr}`,Kr=`touchmove${dr}`,Yr=`touchend${dr}`,He=`pointerdown${dr}`,xr=`pointerup${dr}`,kn="touch",mn="pen",ci="pointer-event",hi=40,Ue={endCallback:null,leftCallback:null,rightCallback:null},ti={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class En extends Mt{constructor(B,D){super(),this._element=B,!(!B||!En.isSupported())&&(this._config=this._getConfig(D),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return Ue}static get DefaultType(){return ti}static get NAME(){return ui}dispose(){at.off(this._element,dr)}_start(B){if(!this._supportPointerEvents){this._deltaX=B.touches[0].clientX;return}this._eventIsPointerPenTouch(B)&&(this._deltaX=B.clientX)}_end(B){this._eventIsPointerPenTouch(B)&&(this._deltaX=B.clientX-this._deltaX),this._handleSwipe(),x(this._config.endCallback)}_move(B){this._deltaX=B.touches&&B.touches.length>1?0:B.touches[0].clientX-this._deltaX}_handleSwipe(){const B=Math.abs(this._deltaX);if(B<=hi)return;const D=B/this._deltaX;this._deltaX=0,D&&x(D>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(at.on(this._element,He,B=>this._start(B)),at.on(this._element,xr,B=>this._end(B)),this._element.classList.add(ci)):(at.on(this._element,Jn,B=>this._start(B)),at.on(this._element,Kr,B=>this._move(B)),at.on(this._element,Yr,B=>this._end(B)))}_eventIsPointerPenTouch(B){return this._supportPointerEvents&&(B.pointerType===mn||B.pointerType===kn)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const fi="carousel",Cr=".bs.carousel",yn=".data-api",Za="ArrowLeft",pe="ArrowRight",_t=500,$t="next",ne="prev",Ze="left",Ir="right",cn=`slide${Cr}`,hn=`slid${Cr}`,jo=`keydown${Cr}`,pi=`mouseenter${Cr}`,$s=`mouseleave${Cr}`,TA=`dragstart${Cr}`,dh=`load${Cr}${yn}`,Wv=`click${Cr}${yn}`,pp="carousel",Vs="active",dp="slide",zv="carousel-item-end",vh="carousel-item-start",Xv="carousel-item-next",vp="carousel-item-prev",gp=".active",Tl=".carousel-item",qv=gp+Tl,Hn=".carousel-item img",mp=".carousel-indicators",yp="[data-bs-slide], [data-bs-slide-to]",_p='[data-bs-ride="carousel"]',gh={[Za]:Ir,[pe]:Ze},Zv={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},Ko={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Yo extends Bt{constructor(B,D){super(B,D),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=se.findOne(mp,this._element),this._addEventListeners(),this._config.ride===pp&&this.cycle()}static get Default(){return Zv}static get DefaultType(){return Ko}static get NAME(){return fi}next(){this._slide($t)}nextWhenVisible(){!document.hidden&&g(this._element)&&this.next()}prev(){this._slide(ne)}pause(){this._isSliding&&p(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){at.one(this._element,hn,()=>this.cycle());return}this.cycle()}}to(B){const D=this._getItems();if(B>D.length-1||B<0)return;if(this._isSliding){at.one(this._element,hn,()=>this.to(B));return}const ht=this._getItemIndex(this._getActive());if(ht===B)return;const Qt=B>ht?$t:ne;this._slide(Qt,D[B])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(B){return B.defaultInterval=B.interval,B}_addEventListeners(){this._config.keyboard&&at.on(this._element,jo,B=>this._keydown(B)),this._config.pause==="hover"&&(at.on(this._element,pi,()=>this.pause()),at.on(this._element,$s,()=>this._maybeEnableCycle())),this._config.touch&&En.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const ht of se.find(Hn,this._element))at.on(ht,TA,Qt=>Qt.preventDefault());const D={leftCallback:()=>this._slide(this._directionToOrder(Ze)),rightCallback:()=>this._slide(this._directionToOrder(Ir)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),_t+this._config.interval))}};this._swipeHelper=new En(this._element,D)}_keydown(B){if(/input|textarea/i.test(B.target.tagName))return;const D=gh[B.key];D&&(B.preventDefault(),this._slide(this._directionToOrder(D)))}_getItemIndex(B){return this._getItems().indexOf(B)}_setActiveIndicatorElement(B){if(!this._indicatorsElement)return;const D=se.findOne(gp,this._indicatorsElement);D.classList.remove(Vs),D.removeAttribute("aria-current");const ht=se.findOne(`[data-bs-slide-to="${B}"]`,this._indicatorsElement);ht&&(ht.classList.add(Vs),ht.setAttribute("aria-current","true"))}_updateInterval(){const B=this._activeElement||this._getActive();if(!B)return;const D=Number.parseInt(B.getAttribute("data-bs-interval"),10);this._config.interval=D||this._config.defaultInterval}_slide(B,D=null){if(this._isSliding)return;const ht=this._getActive(),Qt=B===$t,re=D||P(this._getItems(),ht,Qt,this._config.wrap);if(re===ht)return;const Zt=this._getItemIndex(re),Se=kA=>at.trigger(this._element,kA,{relatedTarget:re,direction:this._orderToDirection(B),from:this._getItemIndex(ht),to:Zt});if(Se(cn).defaultPrevented||!ht||!re)return;const Fa=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(Zt),this._activeElement=re;const jn=Qt?vh:zv,Oa=Qt?Xv:vp;re.classList.add(Oa),F(re),ht.classList.add(jn),re.classList.add(jn);const Ra=()=>{re.classList.remove(jn,Oa),re.classList.add(Vs),ht.classList.remove(Vs,Oa,jn),this._isSliding=!1,Se(hn)};this._queueCallback(Ra,ht,this._isAnimated()),Fa&&this.cycle()}_isAnimated(){return this._element.classList.contains(dp)}_getActive(){return se.findOne(qv,this._element)}_getItems(){return se.find(Tl,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(B){return L()?B===Ze?ne:$t:B===Ze?$t:ne}_orderToDirection(B){return L()?B===ne?Ze:Ir:B===ne?Ir:Ze}static jQueryInterface(B){return this.each(function(){const D=Yo.getOrCreateInstance(this,B);if(typeof B=="number"){D.to(B);return}if(typeof B=="string"){if(D[B]===void 0||B.startsWith("_")||B==="constructor")throw new TypeError(`No method named "${B}"`);D[B]()}})}}at.on(document,Wv,yp,function(lt){const B=h(this);if(!B||!B.classList.contains(pp))return;lt.preventDefault();const D=Yo.getOrCreateInstance(B),ht=this.getAttribute("data-bs-slide-to");if(ht){D.to(ht),D._maybeEnableCycle();return}if(Ot.getDataAttribute(this,"slide")==="next"){D.next(),D._maybeEnableCycle();return}D.prev(),D._maybeEnableCycle()}),at.on(window,dh,()=>{const lt=se.find(_p);for(const B of lt)Yo.getOrCreateInstance(B)}),N(Yo);const Ta="collapse",bA=".bs.collapse",Jv=".data-api",Ep=`show${bA}`,tg=`shown${bA}`,Cp=`hide${bA}`,eg=`hidden${bA}`,mh=`click${bA}${Jv}`,yh="show",SA="collapse",Fu="collapsing",js="collapsed",Ou=`:scope .${SA} .${SA}`,Ru="collapse-horizontal",Bp="width",Zi="height",rg=".collapse.show, .collapse.collapsing",Mu='[data-bs-toggle="collapse"]',tr={parent:null,toggle:!0},ng={parent:"(null|element)",toggle:"boolean"};class xA extends Bt{constructor(B,D){super(B,D),this._isTransitioning=!1,this._triggerArray=[];const ht=se.find(Mu);for(const Qt of ht){const re=c(Qt),Zt=se.find(re).filter(Se=>Se===this._element);re!==null&&Zt.length&&this._triggerArray.push(Qt)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return tr}static get DefaultType(){return ng}static get NAME(){return Ta}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let B=[];if(this._config.parent&&(B=this._getFirstLevelChildren(rg).filter(Se=>Se!==this._element).map(Se=>xA.getOrCreateInstance(Se,{toggle:!1}))),B.length&&B[0]._isTransitioning||at.trigger(this._element,Ep).defaultPrevented)return;for(const Se of B)Se.hide();const ht=this._getDimension();this._element.classList.remove(SA),this._element.classList.add(Fu),this._element.style[ht]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const Qt=()=>{this._isTransitioning=!1,this._element.classList.remove(Fu),this._element.classList.add(SA,yh),this._element.style[ht]="",at.trigger(this._element,tg)},Zt=`scroll${ht[0].toUpperCase()+ht.slice(1)}`;this._queueCallback(Qt,this._element,!0),this._element.style[ht]=`${this._element[Zt]}px`}hide(){if(this._isTransitioning||!this._isShown()||at.trigger(this._element,Cp).defaultPrevented)return;const D=this._getDimension();this._element.style[D]=`${this._element.getBoundingClientRect()[D]}px`,F(this._element),this._element.classList.add(Fu),this._element.classList.remove(SA,yh);for(const Qt of this._triggerArray){const re=h(Qt);re&&!this._isShown(re)&&this._addAriaAndCollapsedClass([Qt],!1)}this._isTransitioning=!0;const ht=()=>{this._isTransitioning=!1,this._element.classList.remove(Fu),this._element.classList.add(SA),at.trigger(this._element,eg)};this._element.style[D]="",this._queueCallback(ht,this._element,!0)}_isShown(B=this._element){return B.classList.contains(yh)}_configAfterMerge(B){return B.toggle=Boolean(B.toggle),B.parent=m(B.parent),B}_getDimension(){return this._element.classList.contains(Ru)?Bp:Zi}_initializeChildren(){if(!this._config.parent)return;const B=this._getFirstLevelChildren(Mu);for(const D of B){const ht=h(D);ht&&this._addAriaAndCollapsedClass([D],this._isShown(ht))}}_getFirstLevelChildren(B){const D=se.find(Ou,this._config.parent);return se.find(B,this._config.parent).filter(ht=>!D.includes(ht))}_addAriaAndCollapsedClass(B,D){if(B.length)for(const ht of B)ht.classList.toggle(js,!D),ht.setAttribute("aria-expanded",D)}static jQueryInterface(B){const D={};return typeof B=="string"&&/show|hide/.test(B)&&(D.toggle=!1),this.each(function(){const ht=xA.getOrCreateInstance(this,D);if(typeof B=="string"){if(typeof ht[B]>"u")throw new TypeError(`No method named "${B}"`);ht[B]()}})}}at.on(document,mh,Mu,function(lt){(lt.target.tagName==="A"||lt.delegateTarget&<.delegateTarget.tagName==="A")&<.preventDefault();const B=c(this),D=se.find(B);for(const ht of D)xA.getOrCreateInstance(ht,{toggle:!1}).toggle()}),N(xA);const Wo="dropdown",ws=".bs.dropdown",IA=".data-api",_h="Escape",Tp="Tab",ag="ArrowUp",bp="ArrowDown",wh=2,bl=`hide${ws}`,LA=`hidden${ws}`,og=`show${ws}`,Sl=`shown${ws}`,Nu=`click${ws}${IA}`,xl=`keydown${ws}${IA}`,Sp=`keyup${ws}${IA}`,Ks="show",xp="dropup",Ip="dropend",Ys="dropstart",FA="dropup-center",sg="dropdown-center",ba='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',zo=`${ba}.${Ks}`,OA=".dropdown-menu",Il=".navbar",Ag=".navbar-nav",Pu=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",lg=L()?"top-end":"top-start",Eh=L()?"top-start":"top-end",Ch=L()?"bottom-end":"bottom-start",Lp=L()?"bottom-start":"bottom-end",Uu=L()?"left-start":"right-start",Bh=L()?"right-start":"left-start",Th="top",Fp="bottom",ug={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Du={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Qi extends Bt{constructor(B,D){super(B,D),this._popper=null,this._parent=this._element.parentNode,this._menu=se.next(this._element,OA)[0]||se.prev(this._element,OA)[0]||se.findOne(OA,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return ug}static get DefaultType(){return Du}static get NAME(){return Wo}toggle(){return this._isShown()?this.hide():this.show()}show(){if(_(this._element)||this._isShown())return;const B={relatedTarget:this._element};if(!at.trigger(this._element,og,B).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(Ag))for(const ht of[].concat(...document.body.children))at.on(ht,"mouseover",C);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Ks),this._element.classList.add(Ks),at.trigger(this._element,Sl,B)}}hide(){if(_(this._element)||!this._isShown())return;const B={relatedTarget:this._element};this._completeHide(B)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(B){if(!at.trigger(this._element,bl,B).defaultPrevented){if("ontouchstart"in document.documentElement)for(const ht of[].concat(...document.body.children))at.off(ht,"mouseover",C);this._popper&&this._popper.destroy(),this._menu.classList.remove(Ks),this._element.classList.remove(Ks),this._element.setAttribute("aria-expanded","false"),Ot.removeDataAttribute(this._menu,"popper"),at.trigger(this._element,LA,B)}}_getConfig(B){if(B=super._getConfig(B),typeof B.reference=="object"&&!v(B.reference)&&typeof B.reference.getBoundingClientRect!="function")throw new TypeError(`${Wo.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return B}_createPopper(){if(typeof i>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let B=this._element;this._config.reference==="parent"?B=this._parent:v(this._config.reference)?B=m(this._config.reference):typeof this._config.reference=="object"&&(B=this._config.reference);const D=this._getPopperConfig();this._popper=i.createPopper(B,this._menu,D)}_isShown(){return this._menu.classList.contains(Ks)}_getPlacement(){const B=this._parent;if(B.classList.contains(Ip))return Uu;if(B.classList.contains(Ys))return Bh;if(B.classList.contains(FA))return Th;if(B.classList.contains(sg))return Fp;const D=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return B.classList.contains(xp)?D?Eh:lg:D?Lp:Ch}_detectNavbar(){return this._element.closest(Il)!==null}_getOffset(){const{offset:B}=this._config;return typeof B=="string"?B.split(",").map(D=>Number.parseInt(D,10)):typeof B=="function"?D=>B(D,this._element):B}_getPopperConfig(){const B={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(Ot.setDataAttribute(this._menu,"popper","static"),B.modifiers=[{name:"applyStyles",enabled:!1}]),{...B,...typeof this._config.popperConfig=="function"?this._config.popperConfig(B):this._config.popperConfig}}_selectMenuItem({key:B,target:D}){const ht=se.find(Pu,this._menu).filter(Qt=>g(Qt));ht.length&&P(ht,D,B===bp,!ht.includes(D)).focus()}static jQueryInterface(B){return this.each(function(){const D=Qi.getOrCreateInstance(this,B);if(typeof B=="string"){if(typeof D[B]>"u")throw new TypeError(`No method named "${B}"`);D[B]()}})}static clearMenus(B){if(B.button===wh||B.type==="keyup"&&B.key!==Tp)return;const D=se.find(zo);for(const ht of D){const Qt=Qi.getInstance(ht);if(!Qt||Qt._config.autoClose===!1)continue;const re=B.composedPath(),Zt=re.includes(Qt._menu);if(re.includes(Qt._element)||Qt._config.autoClose==="inside"&&!Zt||Qt._config.autoClose==="outside"&&Zt||Qt._menu.contains(B.target)&&(B.type==="keyup"&&B.key===Tp||/input|select|option|textarea|form/i.test(B.target.tagName)))continue;const Se={relatedTarget:Qt._element};B.type==="click"&&(Se.clickEvent=B),Qt._completeHide(Se)}}static dataApiKeydownHandler(B){const D=/input|textarea/i.test(B.target.tagName),ht=B.key===_h,Qt=[ag,bp].includes(B.key);if(!Qt&&!ht||D&&!ht)return;B.preventDefault();const re=this.matches(ba)?this:se.prev(this,ba)[0]||se.next(this,ba)[0]||se.findOne(ba,B.delegateTarget.parentNode),Zt=Qi.getOrCreateInstance(re);if(Qt){B.stopPropagation(),Zt.show(),Zt._selectMenuItem(B);return}Zt._isShown()&&(B.stopPropagation(),Zt.hide(),re.focus())}}at.on(document,xl,ba,Qi.dataApiKeydownHandler),at.on(document,xl,OA,Qi.dataApiKeydownHandler),at.on(document,Nu,Qi.clearMenus),at.on(document,Sp,Qi.clearMenus),at.on(document,Nu,ba,function(lt){lt.preventDefault(),Qi.getOrCreateInstance(this).toggle()}),N(Qi);const Qu=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Ws=".sticky-top",RA="padding-right",E="margin-right";class k{constructor(){this._element=document.body}getWidth(){const B=document.documentElement.clientWidth;return Math.abs(window.innerWidth-B)}hide(){const B=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,RA,D=>D+B),this._setElementAttributes(Qu,RA,D=>D+B),this._setElementAttributes(Ws,E,D=>D-B)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,RA),this._resetElementAttributes(Qu,RA),this._resetElementAttributes(Ws,E)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(B,D,ht){const Qt=this.getWidth(),re=Zt=>{if(Zt!==this._element&&window.innerWidth>Zt.clientWidth+Qt)return;this._saveInitialAttribute(Zt,D);const Se=window.getComputedStyle(Zt).getPropertyValue(D);Zt.style.setProperty(D,`${ht(Number.parseFloat(Se))}px`)};this._applyManipulationCallback(B,re)}_saveInitialAttribute(B,D){const ht=B.style.getPropertyValue(D);ht&&Ot.setDataAttribute(B,D,ht)}_resetElementAttributes(B,D){const ht=Qt=>{const re=Ot.getDataAttribute(Qt,D);if(re===null){Qt.style.removeProperty(D);return}Ot.removeDataAttribute(Qt,D),Qt.style.setProperty(D,re)};this._applyManipulationCallback(B,ht)}_applyManipulationCallback(B,D){if(v(B)){D(B);return}for(const ht of se.find(B,this._element))D(ht)}}const st="backdrop",vt="fade",xt="show",Ut=`mousedown.bs.${st}`,zt={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},ce={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class De extends Mt{constructor(B){super(),this._config=this._getConfig(B),this._isAppended=!1,this._element=null}static get Default(){return zt}static get DefaultType(){return ce}static get NAME(){return st}show(B){if(!this._config.isVisible){x(B);return}this._append();const D=this._getElement();this._config.isAnimated&&F(D),D.classList.add(xt),this._emulateAnimation(()=>{x(B)})}hide(B){if(!this._config.isVisible){x(B);return}this._getElement().classList.remove(xt),this._emulateAnimation(()=>{this.dispose(),x(B)})}dispose(){this._isAppended&&(at.off(this._element,Ut),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const B=document.createElement("div");B.className=this._config.className,this._config.isAnimated&&B.classList.add(vt),this._element=B}return this._element}_configAfterMerge(B){return B.rootElement=m(B.rootElement),B}_append(){if(this._isAppended)return;const B=this._getElement();this._config.rootElement.append(B),at.on(B,Ut,()=>{x(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(B){S(B,this._getElement(),this._config.isAnimated)}}const vr="focustrap",Br=".bs.focustrap",ki=`focusin${Br}`,Gn=`keydown.tab${Br}`,ei="Tab",Ji="forward",di="backward",Xo={autofocus:!0,trapElement:null},Ja={autofocus:"boolean",trapElement:"element"};class Es extends Mt{constructor(B){super(),this._config=this._getConfig(B),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return Xo}static get DefaultType(){return Ja}static get NAME(){return vr}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),at.off(document,Br),at.on(document,ki,B=>this._handleFocusin(B)),at.on(document,Gn,B=>this._handleKeydown(B)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,at.off(document,Br))}_handleFocusin(B){const{trapElement:D}=this._config;if(B.target===document||B.target===D||D.contains(B.target))return;const ht=se.focusableChildren(D);ht.length===0?D.focus():this._lastTabNavDirection===di?ht[ht.length-1].focus():ht[0].focus()}_handleKeydown(B){B.key===ei&&(this._lastTabNavDirection=B.shiftKey?di:Ji)}}const Op="modal",ua=".bs.modal",ku=".data-api",bh="Escape",Sh=`hide${ua}`,Hu=`hidePrevented${ua}`,ca=`hidden${ua}`,Ll=`show${ua}`,Gu=`shown${ua}`,$u=`resize${ua}`,xh=`click.dismiss${ua}`,Sa=`mousedown.dismiss${ua}`,cg=`keydown.dismiss${ua}`,Ih=`click${ua}${ku}`,Lh="modal-open",qo="fade",Vu="show",Fh="modal-static",hg=".modal.show",MA=".modal-dialog",wo=".modal-body",Zo='[data-bs-toggle="modal"]',NA={backdrop:!0,focus:!0,keyboard:!0},Cs={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class ha extends Bt{constructor(B,D){super(B,D),this._dialog=se.findOne(MA,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new k,this._addEventListeners()}static get Default(){return NA}static get DefaultType(){return Cs}static get NAME(){return Op}toggle(B){return this._isShown?this.hide():this.show(B)}show(B){this._isShown||this._isTransitioning||at.trigger(this._element,Ll,{relatedTarget:B}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Lh),this._adjustDialog(),this._backdrop.show(()=>this._showElement(B)))}hide(){!this._isShown||this._isTransitioning||at.trigger(this._element,Sh).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Vu),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){for(const B of[window,this._dialog])at.off(B,ua);this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new De({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Es({trapElement:this._element})}_showElement(B){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const D=se.findOne(wo,this._dialog);D&&(D.scrollTop=0),F(this._element),this._element.classList.add(Vu);const ht=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,at.trigger(this._element,Gu,{relatedTarget:B})};this._queueCallback(ht,this._dialog,this._isAnimated())}_addEventListeners(){at.on(this._element,cg,B=>{if(B.key===bh){if(this._config.keyboard){B.preventDefault(),this.hide();return}this._triggerBackdropTransition()}}),at.on(window,$u,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),at.on(this._element,Sa,B=>{at.one(this._element,xh,D=>{if(!(this._element!==B.target||this._element!==D.target)){if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(Lh),this._resetAdjustments(),this._scrollBar.reset(),at.trigger(this._element,ca)})}_isAnimated(){return this._element.classList.contains(qo)}_triggerBackdropTransition(){if(at.trigger(this._element,Hu).defaultPrevented)return;const D=this._element.scrollHeight>document.documentElement.clientHeight,ht=this._element.style.overflowY;ht==="hidden"||this._element.classList.contains(Fh)||(D||(this._element.style.overflowY="hidden"),this._element.classList.add(Fh),this._queueCallback(()=>{this._element.classList.remove(Fh),this._queueCallback(()=>{this._element.style.overflowY=ht},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const B=this._element.scrollHeight>document.documentElement.clientHeight,D=this._scrollBar.getWidth(),ht=D>0;if(ht&&!B){const Qt=L()?"paddingLeft":"paddingRight";this._element.style[Qt]=`${D}px`}if(!ht&&B){const Qt=L()?"paddingRight":"paddingLeft";this._element.style[Qt]=`${D}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(B,D){return this.each(function(){const ht=ha.getOrCreateInstance(this,B);if(typeof B=="string"){if(typeof ht[B]>"u")throw new TypeError(`No method named "${B}"`);ht[B](D)}})}}at.on(document,Ih,Zo,function(lt){const B=h(this);["A","AREA"].includes(this.tagName)&<.preventDefault(),at.one(B,Ll,Qt=>{Qt.defaultPrevented||at.one(B,ca,()=>{g(this)&&this.focus()})});const D=se.findOne(hg);D&&ha.getInstance(D).hide(),ha.getOrCreateInstance(B).toggle(this)}),Ct(ha),N(ha);const ju="offcanvas",xa=".bs.offcanvas",Ku=".data-api",PA=`load${xa}${Ku}`,Jo="Escape",Ts="show",UA="showing",Fl="hiding",Ol="offcanvas-backdrop",zs=".offcanvas.show",Oh=`show${xa}`,Eo=`shown${xa}`,Xs=`hide${xa}`,fn=`hidePrevented${xa}`,pn=`hidden${xa}`,$n=`resize${xa}`,vi=`click${xa}${Ku}`,qs=`keydown.dismiss${xa}`,DA='[data-bs-toggle="offcanvas"]',Yu={backdrop:!0,keyboard:!0,scroll:!1},Mp={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class bs extends Bt{constructor(B,D){super(B,D),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Yu}static get DefaultType(){return Mp}static get NAME(){return ju}toggle(B){return this._isShown?this.hide():this.show(B)}show(B){if(this._isShown||at.trigger(this._element,Oh,{relatedTarget:B}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new k().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(UA);const ht=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(Ts),this._element.classList.remove(UA),at.trigger(this._element,Eo,{relatedTarget:B})};this._queueCallback(ht,this._element,!0)}hide(){if(!this._isShown||at.trigger(this._element,Xs).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Fl),this._backdrop.hide();const D=()=>{this._element.classList.remove(Ts,Fl),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new k().reset(),at.trigger(this._element,pn)};this._queueCallback(D,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const B=()=>{if(this._config.backdrop==="static"){at.trigger(this._element,fn);return}this.hide()},D=Boolean(this._config.backdrop);return new De({className:Ol,isVisible:D,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:D?B:null})}_initializeFocusTrap(){return new Es({trapElement:this._element})}_addEventListeners(){at.on(this._element,qs,B=>{if(B.key===Jo){if(!this._config.keyboard){at.trigger(this._element,fn);return}this.hide()}})}static jQueryInterface(B){return this.each(function(){const D=bs.getOrCreateInstance(this,B);if(typeof B=="string"){if(D[B]===void 0||B.startsWith("_")||B==="constructor")throw new TypeError(`No method named "${B}"`);D[B](this)}})}}at.on(document,vi,DA,function(lt){const B=h(this);if(["A","AREA"].includes(this.tagName)&<.preventDefault(),_(this))return;at.one(B,pn,()=>{g(this)&&this.focus()});const D=se.findOne(zs);D&&D!==B&&bs.getInstance(D).hide(),bs.getOrCreateInstance(B).toggle(this)}),at.on(window,PA,()=>{for(const lt of se.find(zs))bs.getOrCreateInstance(lt).show()}),at.on(window,$n,()=>{for(const lt of se.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(lt).position!=="fixed"&&bs.getOrCreateInstance(lt).hide()}),Ct(bs),N(bs);const h0=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),f0=/^aria-[\w-]*$/i,p0=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,d0=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,v0=(lt,B)=>{const D=lt.nodeName.toLowerCase();return B.includes(D)?h0.has(D)?Boolean(p0.test(lt.nodeValue)||d0.test(lt.nodeValue)):!0:B.filter(ht=>ht instanceof RegExp).some(ht=>ht.test(D))},Np={"*":["class","dir","id","lang","role",f0],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]};function Pp(lt,B,D){if(!lt.length)return lt;if(D&&typeof D=="function")return D(lt);const Qt=new window.DOMParser().parseFromString(lt,"text/html"),re=[].concat(...Qt.body.querySelectorAll("*"));for(const Zt of re){const Se=Zt.nodeName.toLowerCase();if(!Object.keys(B).includes(Se)){Zt.remove();continue}const ea=[].concat(...Zt.attributes),Fa=[].concat(B["*"]||[],B[Se]||[]);for(const jn of ea)v0(jn,Fa)||Zt.removeAttribute(jn.nodeName)}return Qt.body.innerHTML}const to="TemplateFactory",Co={allowList:Np,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},Up={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},Dp={entry:"(string|element|function|null)",selector:"(string|element)"};class g0 extends Mt{constructor(B){super(),this._config=this._getConfig(B)}static get Default(){return Co}static get DefaultType(){return Up}static get NAME(){return to}getContent(){return Object.values(this._config.content).map(B=>this._resolvePossibleFunction(B)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(B){return this._checkContent(B),this._config.content={...this._config.content,...B},this}toHtml(){const B=document.createElement("div");B.innerHTML=this._maybeSanitize(this._config.template);for(const[Qt,re]of Object.entries(this._config.content))this._setContent(B,re,Qt);const D=B.children[0],ht=this._resolvePossibleFunction(this._config.extraClass);return ht&&D.classList.add(...ht.split(" ")),D}_typeCheckConfig(B){super._typeCheckConfig(B),this._checkContent(B.content)}_checkContent(B){for(const[D,ht]of Object.entries(B))super._typeCheckConfig({selector:D,entry:ht},Dp)}_setContent(B,D,ht){const Qt=se.findOne(ht,B);if(Qt){if(D=this._resolvePossibleFunction(D),!D){Qt.remove();return}if(v(D)){this._putElementInTemplate(m(D),Qt);return}if(this._config.html){Qt.innerHTML=this._maybeSanitize(D);return}Qt.textContent=D}}_maybeSanitize(B){return this._config.sanitize?Pp(B,this._config.allowList,this._config.sanitizeFn):B}_resolvePossibleFunction(B){return typeof B=="function"?B(this):B}_putElementInTemplate(B,D){if(this._config.html){D.innerHTML="",D.append(B);return}D.textContent=B.textContent}}const Qp="tooltip",kp=new Set(["sanitize","allowList","sanitizeFn"]),Rh="fade",m0="modal",Wu="show",fg=".tooltip-inner",Mh=`.${m0}`,Hp="hide.bs.modal",Nh="hover",pg="focus",y0="click",GC="manual",$C="hide",VC="hidden",jC="show",KC="shown",dg="inserted",vg="click",Ph="focusin",YC="focusout",WC="mouseenter",_0="mouseleave",zC={AUTO:"auto",TOP:"top",RIGHT:L()?"left":"right",BOTTOM:"bottom",LEFT:L()?"right":"left"},XC={allowList:Np,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,0],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},qC={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class Rl extends Bt{constructor(B,D){if(typeof i>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(B,D),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return XC}static get DefaultType(){return qC}static get NAME(){return Qp}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),at.off(this._element.closest(Mh),Hp,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;const B=at.trigger(this._element,this.constructor.eventName(jC)),ht=(w(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(B.defaultPrevented||!ht)return;this._disposePopper();const Qt=this._getTipElement();this._element.setAttribute("aria-describedby",Qt.getAttribute("id"));const{container:re}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(re.append(Qt),at.trigger(this._element,this.constructor.eventName(dg))),this._popper=this._createPopper(Qt),Qt.classList.add(Wu),"ontouchstart"in document.documentElement)for(const Se of[].concat(...document.body.children))at.on(Se,"mouseover",C);const Zt=()=>{at.trigger(this._element,this.constructor.eventName(KC)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(Zt,this.tip,this._isAnimated())}hide(){if(!this._isShown()||at.trigger(this._element,this.constructor.eventName($C)).defaultPrevented)return;if(this._getTipElement().classList.remove(Wu),"ontouchstart"in document.documentElement)for(const Qt of[].concat(...document.body.children))at.off(Qt,"mouseover",C);this._activeTrigger[y0]=!1,this._activeTrigger[pg]=!1,this._activeTrigger[Nh]=!1,this._isHovered=null;const ht=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),at.trigger(this._element,this.constructor.eventName(VC)))};this._queueCallback(ht,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(B){const D=this._getTemplateFactory(B).toHtml();if(!D)return null;D.classList.remove(Rh,Wu),D.classList.add(`bs-${this.constructor.NAME}-auto`);const ht=l(this.constructor.NAME).toString();return D.setAttribute("id",ht),this._isAnimated()&&D.classList.add(Rh),D}setContent(B){this._newContent=B,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(B){return this._templateFactory?this._templateFactory.changeContent(B):this._templateFactory=new g0({...this._config,content:B,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[fg]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(B){return this.constructor.getOrCreateInstance(B.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(Rh)}_isShown(){return this.tip&&this.tip.classList.contains(Wu)}_createPopper(B){const D=typeof this._config.placement=="function"?this._config.placement.call(this,B,this._element):this._config.placement,ht=zC[D.toUpperCase()];return i.createPopper(this._element,B,this._getPopperConfig(ht))}_getOffset(){const{offset:B}=this._config;return typeof B=="string"?B.split(",").map(D=>Number.parseInt(D,10)):typeof B=="function"?D=>B(D,this._element):B}_resolvePossibleFunction(B){return typeof B=="function"?B.call(this._element):B}_getPopperConfig(B){const D={placement:B,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:ht=>{this._getTipElement().setAttribute("data-popper-placement",ht.state.placement)}}]};return{...D,...typeof this._config.popperConfig=="function"?this._config.popperConfig(D):this._config.popperConfig}}_setListeners(){const B=this._config.trigger.split(" ");for(const D of B)if(D==="click")at.on(this._element,this.constructor.eventName(vg),this._config.selector,ht=>{this._initializeOnDelegatedTarget(ht).toggle()});else if(D!==GC){const ht=D===Nh?this.constructor.eventName(WC):this.constructor.eventName(Ph),Qt=D===Nh?this.constructor.eventName(_0):this.constructor.eventName(YC);at.on(this._element,ht,this._config.selector,re=>{const Zt=this._initializeOnDelegatedTarget(re);Zt._activeTrigger[re.type==="focusin"?pg:Nh]=!0,Zt._enter()}),at.on(this._element,Qt,this._config.selector,re=>{const Zt=this._initializeOnDelegatedTarget(re);Zt._activeTrigger[re.type==="focusout"?pg:Nh]=Zt._element.contains(re.relatedTarget),Zt._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},at.on(this._element.closest(Mh),Hp,this._hideModalHandler)}_fixTitle(){const B=this._element.getAttribute("title");B&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",B),this._element.setAttribute("data-bs-original-title",B),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(B,D){clearTimeout(this._timeout),this._timeout=setTimeout(B,D)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(B){const D=Ot.getDataAttributes(this._element);for(const ht of Object.keys(D))kp.has(ht)&&delete D[ht];return B={...D,...typeof B=="object"&&B?B:{}},B=this._mergeConfigObj(B),B=this._configAfterMerge(B),this._typeCheckConfig(B),B}_configAfterMerge(B){return B.container=B.container===!1?document.body:m(B.container),typeof B.delay=="number"&&(B.delay={show:B.delay,hide:B.delay}),typeof B.title=="number"&&(B.title=B.title.toString()),typeof B.content=="number"&&(B.content=B.content.toString()),B}_getDelegateConfig(){const B={};for(const D in this._config)this.constructor.Default[D]!==this._config[D]&&(B[D]=this._config[D]);return B.selector=!1,B.trigger="manual",B}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(B){return this.each(function(){const D=Rl.getOrCreateInstance(this,B);if(typeof B=="string"){if(typeof D[B]>"u")throw new TypeError(`No method named "${B}"`);D[B]()}})}}N(Rl);const QA="popover",ts=".popover-header",Zs=".popover-body",ZC={...Rl.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},w0={...Rl.DefaultType,content:"(null|string|element|function)"};class es extends Rl{static get Default(){return ZC}static get DefaultType(){return w0}static get NAME(){return QA}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[ts]:this._getTitle(),[Zs]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(B){return this.each(function(){const D=es.getOrCreateInstance(this,B);if(typeof B=="string"){if(typeof D[B]>"u")throw new TypeError(`No method named "${B}"`);D[B]()}})}}N(es);const Bo="scrollspy",gg=".bs.scrollspy",E0=".data-api",C0=`activate${gg}`,mg=`click${gg}`,B0=`load${gg}${E0}`,JC="dropdown-item",Js="active",Gp='[data-bs-spy="scroll"]',Ml="[href]",yg=".nav, .list-group",_g=".nav-link",eB=`${_g}, .nav-item > ${_g}, .list-group-item`,rB=".dropdown",nB=".dropdown-toggle",iB={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},aB={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Uh extends Bt{constructor(B,D){super(B,D),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return iB}static get DefaultType(){return aB}static get NAME(){return Bo}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const B of this._observableSections.values())this._observer.observe(B)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(B){return B.target=m(B.target)||document.body,B.rootMargin=B.offset?`${B.offset}px 0px -30%`:B.rootMargin,typeof B.threshold=="string"&&(B.threshold=B.threshold.split(",").map(D=>Number.parseFloat(D))),B}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(at.off(this._config.target,mg),at.on(this._config.target,mg,Ml,B=>{const D=this._observableSections.get(B.target.hash);if(D){B.preventDefault();const ht=this._rootElement||window,Qt=D.offsetTop-this._element.offsetTop;if(ht.scrollTo){ht.scrollTo({top:Qt,behavior:"smooth"});return}ht.scrollTop=Qt}}))}_getNewObserver(){const B={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(D=>this._observerCallback(D),B)}_observerCallback(B){const D=Zt=>this._targetLinks.get(`#${Zt.target.id}`),ht=Zt=>{this._previousScrollData.visibleEntryTop=Zt.target.offsetTop,this._process(D(Zt))},Qt=(this._rootElement||document.documentElement).scrollTop,re=Qt>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=Qt;for(const Zt of B){if(!Zt.isIntersecting){this._activeTarget=null,this._clearActiveClass(D(Zt));continue}const Se=Zt.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(re&&Se){if(ht(Zt),!Qt)return;continue}!re&&!Se&&ht(Zt)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const B=se.find(Ml,this._config.target);for(const D of B){if(!D.hash||_(D))continue;const ht=se.findOne(D.hash,this._element);g(ht)&&(this._targetLinks.set(D.hash,D),this._observableSections.set(D.hash,ht))}}_process(B){this._activeTarget!==B&&(this._clearActiveClass(this._config.target),this._activeTarget=B,B.classList.add(Js),this._activateParents(B),at.trigger(this._element,C0,{relatedTarget:B}))}_activateParents(B){if(B.classList.contains(JC)){se.findOne(nB,B.closest(rB)).classList.add(Js);return}for(const D of se.parents(B,yg))for(const ht of se.prev(D,eB))ht.classList.add(Js)}_clearActiveClass(B){B.classList.remove(Js);const D=se.find(`${Ml}.${Js}`,B);for(const ht of D)ht.classList.remove(Js)}static jQueryInterface(B){return this.each(function(){const D=Uh.getOrCreateInstance(this,B);if(typeof B=="string"){if(D[B]===void 0||B.startsWith("_")||B==="constructor")throw new TypeError(`No method named "${B}"`);D[B]()}})}}at.on(window,B0,()=>{for(const lt of se.find(Gp))Uh.getOrCreateInstance(lt)}),N(Uh);const T0="tab",Nl=".bs.tab",oB=`hide${Nl}`,b0=`hidden${Nl}`,d=`show${Nl}`,y=`shown${Nl}`,T=`click${Nl}`,R=`keydown${Nl}`,Q=`load${Nl}`,G="ArrowLeft",$="ArrowRight",K="ArrowUp",W="ArrowDown",et="active",mt="fade",Lt="show",Ft="dropdown",St=".dropdown-toggle",Vt=".dropdown-menu",Pt=":not(.dropdown-toggle)",wt='.list-group, .nav, [role="tablist"]',Tt=".nav-item, .list-group-item",Ht=`.nav-link${Pt}, .list-group-item${Pt}, [role="tab"]${Pt}`,jt='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Gt=`${Ht}, ${jt}`,de=`.${et}[data-bs-toggle="tab"], .${et}[data-bs-toggle="pill"], .${et}[data-bs-toggle="list"]`;class ie extends Bt{constructor(B){super(B),this._parent=this._element.closest(wt),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),at.on(this._element,R,D=>this._keydown(D)))}static get NAME(){return T0}show(){const B=this._element;if(this._elemIsActive(B))return;const D=this._getActiveElem(),ht=D?at.trigger(D,oB,{relatedTarget:B}):null;at.trigger(B,d,{relatedTarget:D}).defaultPrevented||ht&&ht.defaultPrevented||(this._deactivate(D,B),this._activate(B,D))}_activate(B,D){if(!B)return;B.classList.add(et),this._activate(h(B));const ht=()=>{if(B.getAttribute("role")!=="tab"){B.classList.add(Lt);return}B.removeAttribute("tabindex"),B.setAttribute("aria-selected",!0),this._toggleDropDown(B,!0),at.trigger(B,y,{relatedTarget:D})};this._queueCallback(ht,B,B.classList.contains(mt))}_deactivate(B,D){if(!B)return;B.classList.remove(et),B.blur(),this._deactivate(h(B));const ht=()=>{if(B.getAttribute("role")!=="tab"){B.classList.remove(Lt);return}B.setAttribute("aria-selected",!1),B.setAttribute("tabindex","-1"),this._toggleDropDown(B,!1),at.trigger(B,b0,{relatedTarget:D})};this._queueCallback(ht,B,B.classList.contains(mt))}_keydown(B){if(![G,$,K,W].includes(B.key))return;B.stopPropagation(),B.preventDefault();const D=[$,W].includes(B.key),ht=P(this._getChildren().filter(Qt=>!_(Qt)),B.target,D,!0);ht&&(ht.focus({preventScroll:!0}),ie.getOrCreateInstance(ht).show())}_getChildren(){return se.find(Gt,this._parent)}_getActiveElem(){return this._getChildren().find(B=>this._elemIsActive(B))||null}_setInitialAttributes(B,D){this._setAttributeIfNotExists(B,"role","tablist");for(const ht of D)this._setInitialAttributesOnChild(ht)}_setInitialAttributesOnChild(B){B=this._getInnerElement(B);const D=this._elemIsActive(B),ht=this._getOuterElement(B);B.setAttribute("aria-selected",D),ht!==B&&this._setAttributeIfNotExists(ht,"role","presentation"),D||B.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(B,"role","tab"),this._setInitialAttributesOnTargetPanel(B)}_setInitialAttributesOnTargetPanel(B){const D=h(B);D&&(this._setAttributeIfNotExists(D,"role","tabpanel"),B.id&&this._setAttributeIfNotExists(D,"aria-labelledby",`#${B.id}`))}_toggleDropDown(B,D){const ht=this._getOuterElement(B);if(!ht.classList.contains(Ft))return;const Qt=(re,Zt)=>{const Se=se.findOne(re,ht);Se&&Se.classList.toggle(Zt,D)};Qt(St,et),Qt(Vt,Lt),ht.setAttribute("aria-expanded",D)}_setAttributeIfNotExists(B,D,ht){B.hasAttribute(D)||B.setAttribute(D,ht)}_elemIsActive(B){return B.classList.contains(et)}_getInnerElement(B){return B.matches(Gt)?B:se.findOne(Gt,B)}_getOuterElement(B){return B.closest(Tt)||B}static jQueryInterface(B){return this.each(function(){const D=ie.getOrCreateInstance(this);if(typeof B=="string"){if(D[B]===void 0||B.startsWith("_")||B==="constructor")throw new TypeError(`No method named "${B}"`);D[B]()}})}}at.on(document,T,jt,function(lt){["A","AREA"].includes(this.tagName)&<.preventDefault(),!_(this)&&ie.getOrCreateInstance(this).show()}),at.on(window,Q,()=>{for(const lt of se.find(de))ie.getOrCreateInstance(lt)}),N(ie);const Ge="toast",gr=".bs.toast",zr=`mouseover${gr}`,Nr=`mouseout${gr}`,Tr=`focusin${gr}`,dn=`focusout${gr}`,nn=`hide${gr}`,ar=`hidden${gr}`,ri=`show${gr}`,Ia=`shown${gr}`,ni="fade",fa="hide",Qr="show",ta="showing",eo={animation:"boolean",autohide:"boolean",delay:"number"},Li={animation:!0,autohide:!0,delay:5e3};class Vn extends Bt{constructor(B,D){super(B,D),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return Li}static get DefaultType(){return eo}static get NAME(){return Ge}show(){if(at.trigger(this._element,ri).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(ni);const D=()=>{this._element.classList.remove(ta),at.trigger(this._element,Ia),this._maybeScheduleHide()};this._element.classList.remove(fa),F(this._element),this._element.classList.add(Qr,ta),this._queueCallback(D,this._element,this._config.animation)}hide(){if(!this.isShown()||at.trigger(this._element,nn).defaultPrevented)return;const D=()=>{this._element.classList.add(fa),this._element.classList.remove(ta,Qr),at.trigger(this._element,ar)};this._element.classList.add(ta),this._queueCallback(D,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(Qr),super.dispose()}isShown(){return this._element.classList.contains(Qr)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(B,D){switch(B.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=D;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=D;break}}if(D){this._clearTimeout();return}const ht=B.relatedTarget;this._element===ht||this._element.contains(ht)||this._maybeScheduleHide()}_setListeners(){at.on(this._element,zr,B=>this._onInteraction(B,!0)),at.on(this._element,Nr,B=>this._onInteraction(B,!1)),at.on(this._element,Tr,B=>this._onInteraction(B,!0)),at.on(this._element,dn,B=>this._onInteraction(B,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(B){return this.each(function(){const D=Vn.getOrCreateInstance(this,B);if(typeof B=="string"){if(typeof D[B]>"u")throw new TypeError(`No method named "${B}"`);D[B](this)}})}}return Ct(Vn),N(Vn),{Alert:Jt,Button:kr,Carousel:Yo,Collapse:xA,Dropdown:Qi,Modal:ha,Offcanvas:bs,Popover:es,ScrollSpy:Uh,Tab:ie,Toast:Vn,Tooltip:Rl}})})(qOt);let HRt=jOt({history:sOt(),routes:XOt});const HC=w6(XK);HC.use(HRt);HC.use(Wx);HC.use(eL.LoadingPlugin);HC.mount("#app");export{ga as F,PL as T,YK as _,Mn as a,RL as b,Yi as c,Rr as d,fj as e,VV as f,zf as g,ML as h,Io as i,pE as j,QK as k,Zn as o,$V as p,LQ as r,$9 as t,CL as w};
|